@lacneu/atrium 0.8.1 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -127,7 +127,7 @@ Alternatively, you can use your own component as a description by assigning it a
|
|
|
127
127
|
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return N.useEffect(()=>{document.getElementById(e.current?.getAttribute(`aria-describedby`))||console.warn(t)},[t,e]),null},Wx=Ax,Gx=jx,Kx=Mx,qx=Px,Jx=Bx,Yx=Hx,Xx=Ix,Zx=Rx;function Qx(e){let t=N.useRef({value:e,previous:e});return N.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function $x(e){let[t,n]=N.useState(void 0);return Gy(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var eS=`Checkbox`,[tS,Eoe]=Uy(eS),[nS,rS]=tS(eS);function iS(e){let{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:c,required:l,value:u=`on`,internal_do_not_use_render:d}=e,[f,p]=Ky({prop:n,defaultProp:i??!1,onChange:c,caller:eS}),[m,h]=N.useState(null),[g,_]=N.useState(null),v=N.useRef(!1),y=m?!!o||!!m.closest(`form`):!0,b={checked:f,disabled:a,setChecked:p,control:m,setControl:h,name:s,form:o,value:u,hasConsumerStoppedPropagationRef:v,required:l,defaultChecked:pS(i)?!1:i,isFormControl:y,bubbleInput:g,setBubbleInput:_};return(0,I.jsx)(nS,{scope:t,...b,children:fS(d)?d(b):r})}var aS=`CheckboxTrigger`,oS=N.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i)=>{let{control:a,value:o,disabled:s,checked:c,required:l,setControl:u,setChecked:d,hasConsumerStoppedPropagationRef:f,isFormControl:p,bubbleInput:m}=rS(aS,e),h=yy(i,u),g=N.useRef(c);return N.useEffect(()=>{let e=a?.form;if(e){let t=()=>d(g.current);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[a,d]),(0,I.jsx)(Oy.button,{type:`button`,role:`checkbox`,"aria-checked":pS(c)?`mixed`:c,"aria-required":l,"data-state":mS(c),"data-disabled":s?``:void 0,disabled:s,value:o,...r,ref:h,onKeyDown:K(t,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:K(n,e=>{d(e=>pS(e)?!0:!e),m&&p&&(f.current=e.isPropagationStopped(),f.current||e.stopPropagation())})})});oS.displayName=aS;var sS=N.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return(0,I.jsx)(iS,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(oS,{...d,ref:t,__scopeCheckbox:n}),e&&(0,I.jsx)(dS,{__scopeCheckbox:n})]})})});sS.displayName=eS;var cS=`CheckboxIndicator`,lS=N.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:r,...i}=e,a=rS(cS,n);return(0,I.jsx)(qy,{present:r||pS(a.checked)||a.checked===!0,children:(0,I.jsx)(Oy.span,{"data-state":mS(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t,style:{pointerEvents:`none`,...e.style}})})});lS.displayName=cS;var uS=`CheckboxBubbleInput`,dS=N.forwardRef(({__scopeCheckbox:e,...t},n)=>{let{control:r,hasConsumerStoppedPropagationRef:i,checked:a,defaultChecked:o,required:s,disabled:c,name:l,value:u,form:d,bubbleInput:f,setBubbleInput:p}=rS(uS,e),m=yy(n,p),h=Qx(a),g=$x(r);N.useEffect(()=>{let e=f;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=!i.current;if(h!==a&&n){let t=new Event(`click`,{bubbles:r});e.indeterminate=pS(a),n.call(e,pS(a)?!1:a),e.dispatchEvent(t)}},[f,h,a,i]);let _=N.useRef(pS(a)?!1:a);return(0,I.jsx)(Oy.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:o??_.current,required:s,disabled:c,name:l,value:u,form:d,...t,tabIndex:-1,ref:m,style:{...t.style,...g,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})});dS.displayName=uS;function fS(e){return typeof e==`function`}function pS(e){return e===`indeterminate`}function mS(e){return pS(e)?`indeterminate`:e?`checked`:`unchecked`}var hS=[`top`,`right`,`bottom`,`left`],gS=Math.min,_S=Math.max,vS=Math.round,yS=Math.floor,bS=e=>({x:e,y:e}),Doe={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function xS(e,t,n){return _S(e,gS(t,n))}function SS(e,t){return typeof e==`function`?e(t):e}function CS(e){return e.split(`-`)[0]}function wS(e){return e.split(`-`)[1]}function TS(e){return e===`x`?`y`:`x`}function ES(e){return e===`y`?`height`:`width`}function DS(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function OS(e){return TS(DS(e))}function Ooe(e,t,n){n===void 0&&(n=!1);let r=wS(e),i=OS(e),a=ES(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=MS(o)),[o,MS(o)]}function koe(e){let t=MS(e);return[kS(e),t,kS(t)]}function kS(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var AS=[`left`,`right`],jS=[`right`,`left`],Aoe=[`top`,`bottom`],joe=[`bottom`,`top`];function Moe(e,t,n){switch(e){case`top`:case`bottom`:return n?t?jS:AS:t?AS:jS;case`left`:case`right`:return t?Aoe:joe;default:return[]}}function Noe(e,t,n,r){let i=wS(e),a=Moe(CS(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(kS)))),a}function MS(e){let t=CS(e);return Doe[t]+e.slice(t.length)}function Poe(e){return{top:0,right:0,bottom:0,left:0,...e}}function NS(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Poe(e)}function PS(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function FS(e,t,n){let{reference:r,floating:i}=e,a=DS(t),o=OS(t),s=ES(o),c=CS(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(wS(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function Foe(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=SS(t,e),p=NS(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=PS(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=PS(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Ioe=50,Loe=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Foe},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=FS(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Ioe&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=FS(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Roe=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=SS(e,t)||{};if(l==null)return{};let d=NS(u),f={x:n,y:r},p=OS(i),m=ES(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=gS(d[_],T),D=gS(d[v],T),O=E,ee=C-h[m]-D,te=C/2-h[m]/2+w,k=xS(O,te,ee),A=!c.arrow&&wS(i)!=null&&te!==k&&a.reference[m]/2-(te<O?E:D)-h[m]/2<0,j=A?te<O?te-O:te-ee:0;return{[p]:f[p]+j,data:{[p]:k,centerOffset:te-k-j,...A&&{alignmentOffset:j}},reset:A}}}),zoe=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=SS(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=CS(r),_=DS(o),v=CS(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[MS(o)]:koe(o)),x=p!==`none`;!d&&x&&b.push(...Noe(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Ooe(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==DS(t))||T.every(e=>DS(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=DS(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function IS(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function LS(e){return hS.some(t=>e[t]>=0)}var Boe=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=SS(e,t);switch(i){case`referenceHidden`:{let e=IS(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:LS(e)}}}case`escaped`:{let e=IS(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:LS(e)}}}default:return{}}}}},RS=new Set([`left`,`top`]);async function Voe(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=CS(n),s=wS(n),c=DS(n)===`y`,l=RS.has(o)?-1:1,u=a&&c?-1:1,d=SS(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Hoe=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Voe(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Uoe=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=SS(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=DS(CS(i)),p=TS(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=xS(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=xS(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},Woe=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=SS(e,t),u={x:n,y:r},d=DS(i),f=TS(d),p=u[f],m=u[d],h=SS(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=RS.has(CS(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Goe=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=SS(e,t),u=await o.detectOverflow(t,l),d=CS(i),f=wS(i),p=DS(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=gS(h-u[g],v),x=gS(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=_S(u.left,0),t=_S(u.right,0),n=_S(u.top,0),r=_S(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:_S(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:_S(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function zS(){return typeof window<`u`}function BS(e){return US(e)?(e.nodeName||``).toLowerCase():`#document`}function VS(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function HS(e){return((US(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function US(e){return zS()?e instanceof Node||e instanceof VS(e).Node:!1}function WS(e){return zS()?e instanceof Element||e instanceof VS(e).Element:!1}function GS(e){return zS()?e instanceof HTMLElement||e instanceof VS(e).HTMLElement:!1}function KS(e){return!zS()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof VS(e).ShadowRoot}function qS(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=eC(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Koe(e){return/^(table|td|th)$/.test(BS(e))}function JS(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var qoe=/transform|translate|scale|rotate|perspective|filter/,Joe=/paint|layout|strict|content/,YS=e=>!!e&&e!==`none`,XS;function ZS(e){let t=WS(e)?eC(e):e;return YS(t.transform)||YS(t.translate)||YS(t.scale)||YS(t.rotate)||YS(t.perspective)||!QS()&&(YS(t.backdropFilter)||YS(t.filter))||qoe.test(t.willChange||``)||Joe.test(t.contain||``)}function Yoe(e){let t=nC(e);for(;GS(t)&&!$S(t);){if(ZS(t))return t;if(JS(t))return null;t=nC(t)}return null}function QS(){return XS??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),XS}function $S(e){return/^(html|body|#document)$/.test(BS(e))}function eC(e){return VS(e).getComputedStyle(e)}function tC(e){return WS(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function nC(e){if(BS(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||KS(e)&&e.host||HS(e);return KS(t)?t.host:t}function rC(e){let t=nC(e);return $S(t)?e.ownerDocument?e.ownerDocument.body:e.body:GS(t)&&qS(t)?t:rC(t)}function iC(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=rC(e),i=r===e.ownerDocument?.body,a=VS(r);if(i){let e=aC(a);return t.concat(a,a.visualViewport||[],qS(r)?r:[],e&&n?iC(e):[])}else return t.concat(r,iC(r,[],n))}function aC(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function oC(e){let t=eC(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=GS(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=vS(n)!==a||vS(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function sC(e){return WS(e)?e:e.contextElement}function cC(e){let t=sC(e);if(!GS(t))return bS(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=oC(t),o=(a?vS(n.width):n.width)/r,s=(a?vS(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Xoe=bS(0);function lC(e){let t=VS(e);return!QS()||!t.visualViewport?Xoe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Zoe(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==VS(e)?!1:t}function uC(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=sC(e),o=bS(1);t&&(r?WS(r)&&(o=cC(r)):o=cC(e));let s=Zoe(a,n,r)?lC(a):bS(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=VS(a),t=r&&WS(r)?VS(r):r,n=e,i=aC(n);for(;i&&r&&t!==n;){let e=cC(i),t=i.getBoundingClientRect(),r=eC(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=VS(i),i=aC(n)}}return PS({width:u,height:d,x:c,y:l})}function dC(e,t){let n=tC(e).scrollLeft;return t?t.left+n:uC(HS(e)).left+n}function fC(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-dC(e,n),y:n.top+t.scrollTop}}function Qoe(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=HS(r),s=t?JS(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=bS(1),u=bS(0),d=GS(r);if((d||!d&&!a)&&((BS(r)!==`body`||qS(o))&&(c=tC(r)),d)){let e=uC(r);l=cC(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?fC(o,c):bS(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function $oe(e){return Array.from(e.getClientRects())}function ese(e){let t=HS(e),n=tC(e),r=e.ownerDocument.body,i=_S(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=_S(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+dC(e),s=-n.scrollTop;return eC(r).direction===`rtl`&&(o+=_S(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var pC=25;function tse(e,t){let n=VS(e),r=HS(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=QS();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=dC(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=pC&&(a-=o)}else l<=pC&&(a+=l);return{width:a,height:o,x:s,y:c}}function nse(e,t){let n=uC(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=GS(e)?cC(e):bS(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function mC(e,t,n){let r;if(t===`viewport`)r=tse(e,n);else if(t===`document`)r=ese(HS(e));else if(WS(t))r=nse(t,n);else{let n=lC(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return PS(r)}function hC(e,t){let n=nC(e);return n===t||!WS(n)||$S(n)?!1:eC(n).position===`fixed`||hC(n,t)}function rse(e,t){let n=t.get(e);if(n)return n;let r=iC(e,[],!1).filter(e=>WS(e)&&BS(e)!==`body`),i=null,a=eC(e).position===`fixed`,o=a?nC(e):e;for(;WS(o)&&!$S(o);){let t=eC(o),n=ZS(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||qS(o)&&!n&&hC(e,o))?r=r.filter(e=>e!==o):i=t,o=nC(o)}return t.set(e,r),r}function ise(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?JS(t)?[]:rse(t,this._c):[].concat(n),r],o=mC(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=mC(t,a[e],i);s=_S(n.top,s),c=gS(n.right,c),l=gS(n.bottom,l),u=_S(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function ase(e){let{width:t,height:n}=oC(e);return{width:t,height:n}}function ose(e,t,n){let r=GS(t),i=HS(t),a=n===`fixed`,o=uC(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=bS(0);function l(){c.x=dC(i)}if(r||!r&&!a)if((BS(t)!==`body`||qS(i))&&(s=tC(t)),r){let e=uC(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?fC(i,s):bS(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function gC(e){return eC(e).position===`static`}function _C(e,t){if(!GS(e)||eC(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return HS(e)===n&&(n=n.ownerDocument.body),n}function vC(e,t){let n=VS(e);if(JS(e))return n;if(!GS(e)){let t=nC(e);for(;t&&!$S(t);){if(WS(t)&&!gC(t))return t;t=nC(t)}return n}let r=_C(e,t);for(;r&&Koe(r)&&gC(r);)r=_C(r,t);return r&&$S(r)&&gC(r)&&!ZS(r)?n:r||Yoe(e)||n}var sse=async function(e){let t=this.getOffsetParent||vC,n=this.getDimensions,r=await n(e.floating);return{reference:ose(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function cse(e){return eC(e).direction===`rtl`}var lse={convertOffsetParentRelativeRectToViewportRelativeRect:Qoe,getDocumentElement:HS,getClippingRect:ise,getOffsetParent:vC,getElementRects:sse,getClientRects:$oe,getDimensions:ase,getScale:cC,isElement:WS,isRTL:cse};function yC(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function use(e,t){let n=null,r,i=HS(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=yS(d),h=yS(i.clientWidth-(u+f)),g=yS(i.clientHeight-(d+p)),_=yS(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:_S(0,gS(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!yC(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function dse(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=sC(e),u=i||a?[...l?iC(l):[],...t?iC(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?use(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?uC(e):null;c&&g();function g(){let t=uC(e);h&&!yC(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var fse=Hoe,pse=Uoe,mse=zoe,hse=Goe,gse=Boe,bC=Roe,_se=Woe,vse=(e,t,n)=>{let r=new Map,i={platform:lse,...n},a={...i.platform,_c:r};return Loe(e,t,{...i,platform:a})},xC=typeof document<`u`?N.useLayoutEffect:function(){};function SC(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!SC(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!SC(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function CC(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function wC(e,t){let n=CC(e);return Math.round(t*n)/n}function TC(e){let t=N.useRef(e);return xC(()=>{t.current=e}),t}function yse(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=N.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=N.useState(r);SC(f,r)||p(r);let[m,h]=N.useState(null),[g,_]=N.useState(null),v=N.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=N.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=N.useRef(null),C=N.useRef(null),w=N.useRef(u),T=c!=null,E=TC(c),D=TC(i),O=TC(l),ee=N.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),vse(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};te.current&&!SC(w.current,t)&&(w.current=t,ls.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);xC(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let te=N.useRef(!1);xC(()=>(te.current=!0,()=>{te.current=!1}),[]),xC(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,ee);ee()}},[b,x,ee,E,T]);let k=N.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),A=N.useMemo(()=>({reference:b,floating:x}),[b,x]),j=N.useMemo(()=>{let e={position:n,left:0,top:0};if(!A.floating)return e;let t=wC(A.floating,u.x),r=wC(A.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...CC(A.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,A.floating,u.x,u.y]);return N.useMemo(()=>({...u,update:ee,refs:k,elements:A,floatingStyles:j}),[u,ee,k,A,j])}var bse=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:bC({element:r.current,padding:i}).fn(n):r?bC({element:r,padding:i}).fn(n):{}}}},xse=(e,t)=>{let n=fse(e);return{name:n.name,fn:n.fn,options:[e,t]}},Sse=(e,t)=>{let n=pse(e);return{name:n.name,fn:n.fn,options:[e,t]}},Cse=(e,t)=>({fn:_se(e).fn,options:[e,t]}),wse=(e,t)=>{let n=mse(e);return{name:n.name,fn:n.fn,options:[e,t]}},Tse=(e,t)=>{let n=hse(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ese=(e,t)=>{let n=gse(e);return{name:n.name,fn:n.fn,options:[e,t]}},Dse=(e,t)=>{let n=bse(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ose=`Arrow`,EC=N.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,I.jsx)(Oy.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,I.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});EC.displayName=Ose;var kse=EC,DC=`Popper`,[OC,kC]=Uy(DC),[Ase,AC]=OC(DC),jC=e=>{let{__scopePopper:t,children:n}=e,[r,i]=N.useState(null),[a,o]=N.useState(void 0);return(0,I.jsx)(Ase,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})};jC.displayName=DC;var MC=`PopperAnchor`,NC=N.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=AC(MC,n),o=N.useRef(null),s=a.onAnchorChange,c=yy(t,N.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=N.useRef(null);N.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&RC(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,I.jsx)(Oy.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})});NC.displayName=MC;var PC=`PopperContent`,[jse,Mse]=OC(PC),FC=N.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l,collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:m,...h}=e,g=AC(PC,n),[_,v]=N.useState(null),y=yy(t,e=>v(e)),[b,x]=N.useState(null),S=$x(b),C=S?.width??0,w=S?.height??0,T=r+(a===`center`?``:`-`+a),E=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},D=l?Array.isArray(l)?l:[l]:void 0,O=D!==void 0&&D.length>0,ee={padding:E,boundary:D?.filter(Pse),altBoundary:O},{refs:te,floatingStyles:k,placement:A,isPositioned:j,middlewareData:ne}=yse({strategy:`fixed`,placement:T,whileElementsMounted:(...e)=>dse(...e,{animationFrame:p===`always`}),elements:{reference:g.anchor},middleware:[xse({mainAxis:i+w,alignmentAxis:o}),c&&Sse({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?Cse():void 0,...ee}),c&&wse({...ee}),Tse({...ee,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),b&&Dse({element:b,padding:s}),Fse({arrowWidth:C,arrowHeight:w}),f&&Ese({strategy:`referenceHidden`,...ee})]}),re=g.setPlacementState;Gy(()=>(re(A),()=>{re(void 0)}),[A,re]);let[M,ie]=RC(A),ae=Py(m);Gy(()=>{j&&ae?.()},[j,ae]);let oe=ne.arrow?.x,se=ne.arrow?.y,ce=ne.arrow?.centerOffset!==0,[le,ue]=N.useState();return Gy(()=>{_&&ue(window.getComputedStyle(_).zIndex)},[_]),(0,I.jsx)(`div`,{ref:te.setFloating,"data-radix-popper-content-wrapper":``,style:{...k,transform:j?k.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:le,"--radix-popper-transform-origin":[ne.transformOrigin?.x,ne.transformOrigin?.y].join(` `),...ne.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,I.jsx)(jse,{scope:n,placedSide:M,placedAlign:ie,onArrowChange:x,arrowX:oe,arrowY:se,shouldHideArrow:ce,children:(0,I.jsx)(Oy.div,{"data-side":M,"data-align":ie,...h,ref:y,style:{...h.style,animation:j?void 0:`none`}})})})});FC.displayName=PC;var IC=`PopperArrow`,Nse={top:`bottom`,right:`left`,bottom:`top`,left:`right`},LC=N.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=Mse(IC,n),a=Nse[i.placedSide];return(0,I.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,I.jsx)(kse,{...r,ref:t,style:{...r.style,display:`block`}})})});LC.displayName=IC;function Pse(e){return e!==null}var Fse=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=RC(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function RC(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var zC=jC,BC=NC,VC=FC,HC=LC,UC=`rovingFocusGroup.onEntryFocus`,Ise={bubbles:!1,cancelable:!0},WC=`RovingFocusGroup`,[GC,KC,Lse]=Wy(WC),[Rse,qC]=Uy(WC,[Lse]),[zse,Bse]=Rse(WC),JC=N.forwardRef((e,t)=>(0,I.jsx)(GC.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,I.jsx)(GC.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,I.jsx)(Vse,{...e,ref:t})})}));JC.displayName=WC;var Vse=N.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=N.useRef(null),p=yy(t,f),m=Zy(a),[h,g]=Ky({prop:o,defaultProp:s??null,onChange:c,caller:WC}),[_,v]=N.useState(!1),y=Py(l),b=KC(n),x=N.useRef(!1),[S,C]=N.useState(0);return N.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(UC,y),()=>e.removeEventListener(UC,y)},[y]),(0,I.jsx)(zse,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:N.useCallback(e=>g(e),[g]),onItemShiftTab:N.useCallback(()=>v(!0),[]),onFocusableItemAdd:N.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:N.useCallback(()=>C(e=>e-1),[]),children:(0,I.jsx)(Oy.div,{tabIndex:_||S===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:K(e.onMouseDown,()=>{x.current=!0}),onFocus:K(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(UC,Ise);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);ZC([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}x.current=!1}),onBlur:K(e.onBlur,()=>v(!1))})})}),YC=`RovingFocusGroupItem`,XC=N.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=Xy(),l=a||c,u=Bse(YC,n),d=u.currentTabStopId===l,f=KC(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u;return N.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),(0,I.jsx)(GC.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,I.jsx)(Oy.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:K(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:K(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:K(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=Wse(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?Gse(n,r+1):n.slice(r+1)}setTimeout(()=>ZC(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})});XC.displayName=YC;var Hse={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Use(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function Wse(e,t,n){let r=Use(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return Hse[r]}function ZC(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Gse(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var QC=JC,$C=XC,ew=[`Enter`,` `],Kse=[`ArrowDown`,`PageUp`,`Home`],tw=[`ArrowUp`,`PageDown`,`End`],qse=[...Kse,...tw],Jse={ltr:[...ew,`ArrowRight`],rtl:[...ew,`ArrowLeft`]},Yse={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},nw=`Menu`,[rw,Xse,Zse]=Wy(nw),[iw,aw]=Uy(nw,[Zse,kC,qC]),ow=kC(),sw=qC(),[cw,lw]=iw(nw),[Qse,uw]=iw(nw),dw=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=ow(t),[c,l]=N.useState(null),u=N.useRef(!1),d=Py(a),f=Zy(i);return N.useEffect(()=>{let e=()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>u.current=!1;return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),(0,I.jsx)(zC,{...s,children:(0,I.jsx)(cw,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,I.jsx)(Qse,{scope:t,onClose:N.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})};dw.displayName=nw;var $se=`MenuAnchor`,fw=N.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=ow(n);return(0,I.jsx)(BC,{...i,...r,ref:t})});fw.displayName=$se;var pw=`MenuPortal`,[ece,mw]=iw(pw,{forceMount:void 0}),hw=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=lw(pw,t);return(0,I.jsx)(ece,{scope:t,forceMount:n,children:(0,I.jsx)(qy,{present:n||a.open,children:(0,I.jsx)(pb,{asChild:!0,container:i,children:r})})})};hw.displayName=pw;var gw=`MenuContent`,[tce,_w]=iw(gw),vw=N.forwardRef((e,t)=>{let n=mw(gw,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=lw(gw,e.__scopeMenu),o=uw(gw,e.__scopeMenu);return(0,I.jsx)(rw.Provider,{scope:e.__scopeMenu,children:(0,I.jsx)(qy,{present:r||a.open,children:(0,I.jsx)(rw.Slot,{scope:e.__scopeMenu,children:o.modal?(0,I.jsx)(nce,{...i,ref:t}):(0,I.jsx)(rce,{...i,ref:t})})})})}),nce=N.forwardRef((e,t)=>{let n=lw(gw,e.__scopeMenu),r=N.useRef(null),i=yy(t,r);return N.useEffect(()=>{let e=r.current;if(e)return Xb(e)},[]),(0,I.jsx)(yw,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:K(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),rce=N.forwardRef((e,t)=>{let n=lw(gw,e.__scopeMenu);return(0,I.jsx)(yw,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),ice=Sy(`MenuContent.ScrollLock`),yw=N.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,g=lw(gw,n),_=uw(gw,n),v=ow(n),y=sw(n),b=Xse(n),[x,S]=N.useState(null),C=N.useRef(null),w=yy(t,C,g.onContentChange),T=N.useRef(0),E=N.useRef(``),D=N.useRef(0),O=N.useRef(null),ee=N.useRef(`right`),te=N.useRef(0),k=m?Wb:N.Fragment,A=m?{as:ice,allowPinchZoom:!0}:void 0,j=e=>{let t=E.current+e,n=b().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=_ce(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;(function e(t){E.current=t,window.clearTimeout(T.current),t!==``&&(T.current=window.setTimeout(()=>e(``),1e3))})(t),o&&setTimeout(()=>o.focus())};N.useEffect(()=>()=>window.clearTimeout(T.current),[]),gb();let ne=N.useCallback(e=>ee.current===O.current?.side&&yce(e,O.current?.area),[]);return(0,I.jsx)(tce,{scope:n,searchRef:E,onItemEnter:N.useCallback(e=>{ne(e)&&e.preventDefault()},[ne]),onItemLeave:N.useCallback(e=>{ne(e)||(C.current?.focus(),S(null))},[ne]),onTriggerLeave:N.useCallback(e=>{ne(e)&&e.preventDefault()},[ne]),pointerGraceTimerRef:D,onPointerGraceIntentChange:N.useCallback(e=>{O.current=e},[]),children:(0,I.jsx)(k,{...A,children:(0,I.jsx)(sb,{asChild:!0,trapped:i,onMountAutoFocus:K(a,e=>{e.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,I.jsx)(tb,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,I.jsx)(QC,{asChild:!0,...y,dir:_.dir,orientation:`vertical`,loop:r,currentTabStopId:x,onCurrentTabStopIdChange:S,onEntryFocus:K(c,e=>{_.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,I.jsx)(VC,{role:`menu`,"aria-orientation":`vertical`,"data-state":Hw(g.open),"data-radix-menu-content":``,dir:_.dir,...v,...h,ref:w,style:{outline:`none`,...h.style},onKeyDown:K(h.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&j(e.key));let i=C.current;if(e.target!==i||!qse.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled).map(e=>e.ref.current);tw.includes(e.key)&&a.reverse(),hce(a)}),onBlur:K(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(T.current),E.current=``)}),onPointerMove:K(e.onPointerMove,Gw(e=>{let t=e.target,n=te.current!==e.clientX;e.currentTarget.contains(t)&&n&&(ee.current=e.clientX>te.current?`right`:`left`,te.current=e.clientX)}))})})})})})})});vw.displayName=gw;var ace=`MenuGroup`,bw=N.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,I.jsx)(Oy.div,{role:`group`,...r,ref:t})});bw.displayName=ace;var oce=`MenuLabel`,xw=N.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,I.jsx)(Oy.div,{...r,ref:t})});xw.displayName=oce;var Sw=`MenuItem`,Cw=`menu.itemSelect`,ww=N.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,a=N.useRef(null),o=uw(Sw,e.__scopeMenu),s=_w(Sw,e.__scopeMenu),c=yy(t,a),l=N.useRef(!1),u=()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(Cw,{bubbles:!0,cancelable:!0});e.addEventListener(Cw,e=>r?.(e),{once:!0}),ky(e,t),t.defaultPrevented?l.current=!1:o.onClose()}};return(0,I.jsx)(Tw,{...i,ref:c,disabled:n,onClick:K(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:K(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:K(e.onKeyDown,e=>{let t=s.searchRef.current!==``;n||t&&e.key===` `||ew.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});ww.displayName=Sw;var Tw=N.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=_w(Sw,n),s=sw(n),c=N.useRef(null),l=yy(t,c),[u,d]=N.useState(!1),[f,p]=N.useState(``);return N.useEffect(()=>{let e=c.current;e&&p((e.textContent??``).trim())},[a.children]),(0,I.jsx)(rw.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,I.jsx)($C,{asChild:!0,...s,focusable:!r,children:(0,I.jsx)(Oy.div,{role:`menuitem`,"data-highlighted":u?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:K(e.onPointerMove,Gw(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:K(e.onPointerLeave,Gw(e=>o.onItemLeave(e))),onFocus:K(e.onFocus,()=>d(!0)),onBlur:K(e.onBlur,()=>d(!1))})})})}),sce=`MenuCheckboxItem`,Ew=N.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,I.jsx)(Mw,{scope:e.__scopeMenu,checked:n,children:(0,I.jsx)(ww,{role:`menuitemcheckbox`,"aria-checked":Uw(n)?`mixed`:n,...i,ref:t,"data-state":Ww(n),onSelect:K(i.onSelect,()=>r?.(Uw(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Ew.displayName=sce;var Dw=`MenuRadioGroup`,[cce,lce]=iw(Dw,{value:void 0,onValueChange:()=>{}}),Ow=N.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=Py(r);return(0,I.jsx)(cce,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,I.jsx)(bw,{...i,ref:t})})});Ow.displayName=Dw;var kw=`MenuRadioItem`,Aw=N.forwardRef((e,t)=>{let{value:n,...r}=e,i=lce(kw,e.__scopeMenu),a=n===i.value;return(0,I.jsx)(Mw,{scope:e.__scopeMenu,checked:a,children:(0,I.jsx)(ww,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":Ww(a),onSelect:K(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Aw.displayName=kw;var jw=`MenuItemIndicator`,[Mw,uce]=iw(jw,{checked:!1}),Nw=N.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=uce(jw,n);return(0,I.jsx)(qy,{present:r||Uw(a.checked)||a.checked===!0,children:(0,I.jsx)(Oy.span,{...i,ref:t,"data-state":Ww(a.checked)})})});Nw.displayName=jw;var dce=`MenuSeparator`,Pw=N.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,I.jsx)(Oy.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});Pw.displayName=dce;var fce=`MenuArrow`,Fw=N.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=ow(n);return(0,I.jsx)(HC,{...i,...r,ref:t})});Fw.displayName=fce;var Iw=`MenuSub`,[pce,Lw]=iw(Iw),mce=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=lw(Iw,t),o=ow(t),[s,c]=N.useState(null),[l,u]=N.useState(null),d=Py(i);return N.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),(0,I.jsx)(zC,{...o,children:(0,I.jsx)(cw,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:u,children:(0,I.jsx)(pce,{scope:t,contentId:Xy(),triggerId:Xy(),trigger:s,onTriggerChange:c,children:n})})})};mce.displayName=Iw;var Rw=`MenuSubTrigger`,zw=N.forwardRef((e,t)=>{let n=lw(Rw,e.__scopeMenu),r=uw(Rw,e.__scopeMenu),i=Lw(Rw,e.__scopeMenu),a=_w(Rw,e.__scopeMenu),o=N.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,l={__scopeMenu:e.__scopeMenu},u=N.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return N.useEffect(()=>u,[u]),N.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),c(null)}},[s,c]),(0,I.jsx)(fw,{asChild:!0,...l,children:(0,I.jsx)(Tw,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":n.open?i.contentId:void 0,"data-state":Hw(n.open),...e,ref:vy(t,i.onTriggerChange),onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:K(e.onPointerMove,Gw(t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:K(e.onPointerLeave,Gw(e=>{u();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,c=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:c,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:K(e.onKeyDown,t=>{let i=a.searchRef.current!==``;e.disabled||i&&t.key===` `||Jse[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});zw.displayName=Rw;var Bw=`MenuSubContent`,Vw=N.forwardRef((e,t)=>{let n=mw(gw,e.__scopeMenu),{forceMount:r=n.forceMount,align:i=`start`,...a}=e,o=lw(gw,e.__scopeMenu),s=uw(gw,e.__scopeMenu),c=Lw(Bw,e.__scopeMenu),l=N.useRef(null),u=yy(t,l);return(0,I.jsx)(rw.Provider,{scope:e.__scopeMenu,children:(0,I.jsx)(qy,{present:r||o.open,children:(0,I.jsx)(rw.Slot,{scope:e.__scopeMenu,children:(0,I.jsx)(yw,{id:c.contentId,"aria-labelledby":c.triggerId,...a,ref:u,align:i,side:s.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:K(e.onFocusOutside,e=>{e.target!==c.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:K(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:K(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=Yse[s.dir].includes(e.key);t&&n&&(o.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})});Vw.displayName=Bw;function Hw(e){return e?`open`:`closed`}function Uw(e){return e===`indeterminate`}function Ww(e){return Uw(e)?`indeterminate`:e?`checked`:`unchecked`}function hce(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function gce(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function _ce(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=gce(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function vce(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function yce(e,t){return t?vce({x:e.clientX,y:e.clientY},t):!1}function Gw(e){return t=>t.pointerType===`mouse`?e(t):void 0}var bce=dw,xce=fw,Sce=hw,Cce=vw,wce=bw,Tce=xw,Ece=ww,Dce=Ew,Oce=Ow,kce=Aw,Ace=Nw,jce=Pw,Mce=Fw,Nce=zw,Pce=Vw,Kw=`DropdownMenu`,[Fce,Ice]=Uy(Kw,[aw]),qw=aw(),[Lce,Jw]=Fce(Kw),Yw=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=qw(t),l=N.useRef(null),[u,d]=Ky({prop:i,defaultProp:a??!1,onChange:o,caller:Kw});return(0,I.jsx)(Lce,{scope:t,triggerId:Xy(),triggerRef:l,contentId:Xy(),open:u,onOpenChange:d,onOpenToggle:N.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,I.jsx)(bce,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})};Yw.displayName=Kw;var Xw=`DropdownMenuTrigger`,Zw=N.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=Jw(Xw,n),o=qw(n);return(0,I.jsx)(xce,{asChild:!0,...o,children:(0,I.jsx)(Oy.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:vy(t,a.triggerRef),onPointerDown:K(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:K(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})});Zw.displayName=Xw;var Rce=`DropdownMenuPortal`,Qw=e=>{let{__scopeDropdownMenu:t,...n}=e,r=qw(t);return(0,I.jsx)(Sce,{...r,...n})};Qw.displayName=Rce;var $w=`DropdownMenuContent`,eT=N.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Jw($w,n),a=qw(n),o=N.useRef(!1);return(0,I.jsx)(Cce,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:K(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:K(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});eT.displayName=$w;var zce=`DropdownMenuGroup`,Bce=N.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=qw(n);return(0,I.jsx)(wce,{...i,...r,ref:t})});Bce.displayName=zce;var Vce=`DropdownMenuLabel`,tT=N.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=qw(n);return(0,I.jsx)(Tce,{...i,...r,ref:t})});tT.displayName=Vce;var Hce=`DropdownMenuItem`,nT=N.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=qw(n);return(0,I.jsx)(Ece,{...i,...r,ref:t})});nT.displayName=Hce;var Uce=`DropdownMenuCheckboxItem`,Wce=N.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=qw(n);return(0,I.jsx)(Dce,{...i,...r,ref:t})});Wce.displayName=Uce;var Gce=`DropdownMenuRadioGroup`,rT=N.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=qw(n);return(0,I.jsx)(Oce,{...i,...r,ref:t})});rT.displayName=Gce;var Kce=`DropdownMenuRadioItem`,iT=N.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=qw(n);return(0,I.jsx)(kce,{...i,...r,ref:t})});iT.displayName=Kce;var qce=`DropdownMenuItemIndicator`,aT=N.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=qw(n);return(0,I.jsx)(Ace,{...i,...r,ref:t})});aT.displayName=qce;var Jce=`DropdownMenuSeparator`,oT=N.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=qw(n);return(0,I.jsx)(jce,{...i,...r,ref:t})});oT.displayName=Jce;var Yce=`DropdownMenuArrow`,Xce=N.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=qw(n);return(0,I.jsx)(Mce,{...i,...r,ref:t})});Xce.displayName=Yce;var Zce=`DropdownMenuSubTrigger`,Qce=N.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=qw(n);return(0,I.jsx)(Nce,{...i,...r,ref:t})});Qce.displayName=Zce;var $ce=`DropdownMenuSubContent`,ele=N.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=qw(n);return(0,I.jsx)(Pce,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});ele.displayName=$ce;var tle=Yw,nle=Zw,rle=Qw,ile=eT,ale=tT,ole=nT,sle=rT,cle=iT,lle=aT,ule=oT;function sT(e,[t,n]){return Math.min(n,Math.max(t,e))}var cT=`Popover`,[lT,dle]=Uy(cT,[kC]),uT=kC(),[fle,dT]=lT(cT),fT=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=uT(t),c=N.useRef(null),[l,u]=N.useState(!1),[d,f]=Ky({prop:r,defaultProp:i??!1,onChange:a,caller:cT});return(0,I.jsx)(zC,{...s,children:(0,I.jsx)(fle,{scope:t,contentId:Xy(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:N.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:l,onCustomAnchorAdd:N.useCallback(()=>u(!0),[]),onCustomAnchorRemove:N.useCallback(()=>u(!1),[]),modal:o,children:n})})};fT.displayName=cT;var pT=`PopoverAnchor`,ple=N.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=dT(pT,n),a=uT(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return N.useEffect(()=>(o(),()=>s()),[o,s]),(0,I.jsx)(BC,{...a,...r,ref:t})});ple.displayName=pT;var mT=`PopoverTrigger`,hT=N.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=dT(mT,n),a=uT(n),o=yy(t,i.triggerRef),s=(0,I.jsx)(Oy.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":ST(i.open),...r,ref:o,onClick:K(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,I.jsx)(BC,{asChild:!0,...a,children:s})});hT.displayName=mT;var gT=`PopoverPortal`,[mle,hle]=lT(gT,{forceMount:void 0}),_T=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=dT(gT,t);return(0,I.jsx)(mle,{scope:t,forceMount:n,children:(0,I.jsx)(qy,{present:n||a.open,children:(0,I.jsx)(pb,{asChild:!0,container:i,children:r})})})};_T.displayName=gT;var vT=`PopoverContent`,yT=N.forwardRef((e,t)=>{let n=hle(vT,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=dT(vT,e.__scopePopover);return(0,I.jsx)(qy,{present:r||a.open,children:a.modal?(0,I.jsx)(_le,{...i,ref:t}):(0,I.jsx)(vle,{...i,ref:t})})});yT.displayName=vT;var gle=Sy(`PopoverContent.RemoveScroll`),_le=N.forwardRef((e,t)=>{let n=dT(vT,e.__scopePopover),r=N.useRef(null),i=yy(t,r),a=N.useRef(!1);return N.useEffect(()=>{let e=r.current;if(e)return Xb(e)},[]),(0,I.jsx)(Wb,{as:gle,allowPinchZoom:!0,children:(0,I.jsx)(bT,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:K(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:K(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;a.current=t.button===2||n},{checkForDefaultPrevented:!1}),onFocusOutside:K(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),vle=N.forwardRef((e,t)=>{let n=dT(vT,e.__scopePopover),r=N.useRef(!1),i=N.useRef(!1);return(0,I.jsx)(bT,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),bT=N.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=dT(vT,n),p=uT(n);return gb(),(0,I.jsx)(sb,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,I.jsx)(tb,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),children:(0,I.jsx)(VC,{"data-state":ST(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),xT=`PopoverClose`,yle=N.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=dT(xT,n);return(0,I.jsx)(Oy.button,{type:`button`,...r,ref:t,onClick:K(e.onClick,()=>i.onOpenChange(!1))})});yle.displayName=xT;var ble=`PopoverArrow`,xle=N.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=uT(n);return(0,I.jsx)(HC,{...i,...r,ref:t})});xle.displayName=ble;function ST(e){return e?`open`:`closed`}var CT=fT,wT=hT,TT=_T,ET=yT,Sle=[` `,`Enter`,`ArrowUp`,`ArrowDown`],Cle=[` `,`Enter`],DT=`Select`,[OT,kT,wle]=Wy(DT),[AT,Tle]=Uy(DT,[wle,kC]),jT=kC(),[Ele,MT]=AT(DT),[Dle,Ole]=AT(DT),kle=`SelectProvider`;function NT(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:f,required:p,form:m,internal_do_not_use_render:h}=e,g=jT(t),[_,v]=N.useState(null),[y,b]=N.useState(null),[x,S]=N.useState(!1),C=Zy(l),[w,T]=Ky({prop:r,defaultProp:i??!1,onChange:a,caller:DT}),[E,D]=Ky({prop:o,defaultProp:s,onChange:c,caller:DT}),O=N.useRef(null),ee=_?!!m||!!_.closest(`form`):!0,[te,k]=N.useState(new Set),A=Xy(),j=Array.from(te).map(e=>e.props.value).join(`;`),ne=N.useCallback(e=>{k(t=>new Set(t).add(e))},[]),re=N.useCallback(e=>{k(t=>{let n=new Set(t);return n.delete(e),n})},[]),M={required:p,trigger:_,onTriggerChange:v,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:x,onValueNodeHasChildrenChange:S,contentId:A,value:E,onValueChange:D,open:w,onOpenChange:T,dir:C,triggerPointerDownPosRef:O,disabled:f,name:u,autoComplete:d,form:m,nativeOptions:te,nativeSelectKey:j,isFormControl:ee};return(0,I.jsx)(zC,{...g,children:(0,I.jsx)(Ele,{scope:t,...M,children:(0,I.jsx)(OT.Provider,{scope:t,children:(0,I.jsx)(Dle,{scope:t,onNativeOptionAdd:ne,onNativeOptionRemove:re,children:Kle(h)?h(M):n})})})})}NT.displayName=kle;var PT=e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,I.jsx)(NT,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,I.jsxs)(I.Fragment,{children:[n,e?(0,I.jsx)(gE,{__scopeSelect:t}):null]})})};PT.displayName=DT;var FT=`SelectTrigger`,IT=N.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...i}=e,a=jT(n),o=MT(FT,n),s=o.disabled||r,c=yy(t,o.onTriggerChange),l=kT(n),u=N.useRef(`touch`),[d,f,p]=vE(e=>{let t=l().filter(e=>!e.disabled),n=yE(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onValueChange(n.value)}),m=e=>{s||(o.onOpenChange(!0),p()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,I.jsx)(BC,{asChild:!0,...a,children:(0,I.jsx)(Oy.button,{type:`button`,role:`combobox`,"aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":_E(o.value)?``:void 0,...i,ref:c,onClick:K(i.onClick,e=>{e.currentTarget.focus(),u.current!==`mouse`&&m(e)}),onPointerDown:K(i.onPointerDown,e=>{u.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(m(e),e.preventDefault())}),onKeyDown:K(i.onKeyDown,e=>{let t=d.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&f(e.key),!(t&&e.key===` `)&&Sle.includes(e.key)&&(m(),e.preventDefault())})})})});IT.displayName=FT;var LT=`SelectValue`,RT=N.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=MT(LT,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=yy(t,c.onValueNodeChange);Gy(()=>{l(u)},[l,u]);let f=_E(c.value);return(0,I.jsx)(Oy.span,{...s,asChild:f?!1:s.asChild,ref:d,style:{pointerEvents:`none`},children:(0,I.jsx)(N.Fragment,{children:f?o:a},f?`placeholder`:`value`)})});RT.displayName=LT;var Ale=`SelectIcon`,zT=N.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...i}=e;return(0,I.jsx)(Oy.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})});zT.displayName=Ale;var BT=`SelectPortal`,[jle,Mle]=AT(BT,{forceMount:void 0}),VT=e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,I.jsx)(jle,{scope:e.__scopeSelect,forceMount:n,children:(0,I.jsx)(pb,{asChild:!0,...r})})};VT.displayName=BT;var HT=`SelectContent`,UT=N.forwardRef((e,t)=>{let n=Mle(HT,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,a=MT(HT,e.__scopeSelect),[o,s]=N.useState();return Gy(()=>{s(new DocumentFragment)},[]),(0,I.jsx)(qy,{present:r||a.open,children:({present:e})=>e?(0,I.jsx)(JT,{...i,ref:t}):(0,I.jsx)(WT,{...i,fragment:o})})});UT.displayName=HT;var WT=N.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,fragment:i}=e;return i?ls.createPortal((0,I.jsx)(KT,{scope:n,children:(0,I.jsx)(OT.Slot,{scope:n,children:(0,I.jsx)(`div`,{ref:t,children:r})})}),i):null});WT.displayName=`SelectContentFragment`;var GT=10,[KT,qT]=AT(HT),Nle=`SelectContentImpl`,Ple=Sy(`SelectContent.RemoveScroll`),JT=N.forwardRef((e,t)=>{let{__scopeSelect:n}=e,{position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g,..._}=e,v=MT(HT,n),[y,b]=N.useState(null),[x,S]=N.useState(null),C=yy(t,e=>b(e)),[w,T]=N.useState(null),[E,D]=N.useState(null),O=kT(n),[ee,te]=N.useState(!1),k=N.useRef(!1);N.useEffect(()=>{if(y)return Xb(y)},[y]),gb();let A=N.useCallback(e=>{let[t,...n]=O().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&x&&(x.scrollTop=0),n===r&&x&&(x.scrollTop=x.scrollHeight),n?.focus(),document.activeElement!==i))return},[O,x]),j=N.useCallback(()=>A([w,y]),[A,w,y]);N.useEffect(()=>{ee&&j()},[ee,j]);let{onOpenChange:ne,triggerPointerDownPosRef:re}=v;N.useEffect(()=>{if(y){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(re.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(re.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(y)||ne(!1),document.removeEventListener(`pointermove`,t),re.current=null};return re.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[y,ne,re]),N.useEffect(()=>{let e=()=>ne(!1);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[ne]);let[M,ie]=vE(e=>{let t=O().filter(e=>!e.disabled),n=yE(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current.focus())}),ae=N.useCallback((e,t,n)=>{let r=!k.current&&!n;(v.value!==void 0&&v.value===t||r)&&(T(e),r&&(k.current=!0))},[v.value]),oe=N.useCallback(()=>y?.focus(),[y]),se=N.useCallback((e,t,n)=>{let r=!k.current&&!n;(v.value!==void 0&&v.value===t||r)&&D(e)},[v.value]),ce=r===`popper`?XT:YT,le=ce===XT?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g}:{};return(0,I.jsx)(KT,{scope:n,content:y,viewport:x,onViewportChange:S,itemRefCallback:ae,selectedItem:w,onItemLeave:oe,itemTextRefCallback:se,focusSelectedItem:j,selectedItemText:E,position:r,isPositioned:ee,searchRef:M,children:(0,I.jsx)(Wb,{as:Ple,allowPinchZoom:!0,children:(0,I.jsx)(sb,{asChild:!0,trapped:v.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:K(i,e=>{v.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,I.jsx)(tb,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:(0,I.jsx)(ce,{role:`listbox`,id:v.contentId,"data-state":v.open?`open`:`closed`,dir:v.dir,onContextMenu:e=>e.preventDefault(),..._,...le,onPlaced:()=>te(!0),ref:C,style:{display:`flex`,flexDirection:`column`,outline:`none`,..._.style},onKeyDown:K(_.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&ie(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=O().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>A(t)),e.preventDefault()}})})})})})})});JT.displayName=Nle;var Fle=`SelectItemAlignedPosition`,YT=N.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...i}=e,a=MT(HT,n),o=qT(HT,n),[s,c]=N.useState(null),[l,u]=N.useState(null),d=yy(t,e=>u(e)),f=kT(n),p=N.useRef(!1),m=N.useRef(!0),{viewport:h,selectedItem:g,selectedItemText:_,focusSelectedItem:v}=o,y=N.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&h&&g&&_){let e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=_.getBoundingClientRect();if(a.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-GT,d=sT(a,[GT,Math.max(GT,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-GT,d=sT(a,[GT,Math.max(GT,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=f(),c=window.innerHeight-GT*2,u=h.scrollHeight,d=window.getComputedStyle(l),m=parseInt(d.borderTopWidth,10),v=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=m+v+u+b+y,S=Math.min(g.offsetHeight*5,x),C=window.getComputedStyle(h),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-GT,D=c-E,O=g.offsetHeight/2,ee=g.offsetTop+O,te=m+v+ee,k=x-te;if(te<=E){let e=o.length>0&&g===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=l.clientHeight-h.offsetTop-h.offsetHeight,n=te+Math.max(D,O+(e?T:0)+t+y);s.style.height=n+`px`}else{let e=o.length>0&&g===o[0].ref.current;s.style.top=`0px`;let t=Math.max(E,m+h.offsetTop+(e?w:0)+O)+k;s.style.height=t+`px`,h.scrollTop=te-E+h.offsetTop}s.style.margin=`${GT}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,s,l,h,g,_,a.dir,r]);Gy(()=>y(),[y]);let[b,x]=N.useState();return Gy(()=>{l&&x(window.getComputedStyle(l).zIndex)},[l]),(0,I.jsx)(Lle,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:N.useCallback(e=>{e&&m.current===!0&&(y(),v?.(),m.current=!1)},[y,v]),children:(0,I.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:b},children:(0,I.jsx)(Oy.div,{...i,ref:d,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})});YT.displayName=Fle;var Ile=`SelectPopperPosition`,XT=N.forwardRef((e,t)=>{let{__scopeSelect:n,align:r=`start`,collisionPadding:i=GT,...a}=e,o=jT(n);return(0,I.jsx)(VC,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})});XT.displayName=Ile;var[Lle,ZT]=AT(HT,{}),QT=`SelectViewport`,$T=N.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...i}=e,a=qT(QT,n),o=ZT(QT,n),s=yy(t,a.onViewportChange),c=N.useRef(0);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,I.jsx)(OT.Slot,{scope:n,children:(0,I.jsx)(Oy.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:K(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-GT*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}c.current=t.scrollTop})})})]})});$T.displayName=QT;var eE=`SelectGroup`,[Rle,zle]=AT(eE),Ble=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=Xy();return(0,I.jsx)(Rle,{scope:n,id:i,children:(0,I.jsx)(Oy.div,{role:`group`,"aria-labelledby":i,...r,ref:t})})});Ble.displayName=eE;var tE=`SelectLabel`,Vle=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=zle(tE,n);return(0,I.jsx)(Oy.div,{id:i.id,...r,ref:t})});Vle.displayName=tE;var nE=`SelectItem`,[Hle,rE]=AT(nE),iE=N.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=MT(nE,n),c=qT(nE,n),l=s.value===r,[u,d]=N.useState(a??``),[f,p]=N.useState(!1),m=yy(t,e=>c.itemRefCallback?.(e,r,i)),h=Xy(),g=N.useRef(`touch`),_=()=>{i||(s.onValueChange(r),s.onOpenChange(!1))};if(r===``)throw Error(`A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.`);return(0,I.jsx)(Hle,{scope:n,value:r,disabled:i,textId:h,isSelected:l,onItemTextChange:N.useCallback(e=>{d(t=>t||(e?.textContent??``).trim())},[]),children:(0,I.jsx)(OT.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:(0,I.jsx)(Oy.div,{role:`option`,"aria-labelledby":h,"data-highlighted":f?``:void 0,"aria-selected":l&&f,"data-state":l?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:m,onFocus:K(o.onFocus,()=>p(!0)),onBlur:K(o.onBlur,()=>p(!1)),onClick:K(o.onClick,()=>{g.current!==`mouse`&&_()}),onPointerUp:K(o.onPointerUp,()=>{g.current===`mouse`&&_()}),onPointerDown:K(o.onPointerDown,e=>{g.current=e.pointerType}),onPointerMove:K(o.onPointerMove,e=>{g.current=e.pointerType,i?c.onItemLeave?.():g.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:K(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:K(o.onKeyDown,e=>{c.searchRef?.current!==``&&e.key===` `||(Cle.includes(e.key)&&_(),e.key===` `&&e.preventDefault())})})})})});iE.displayName=nE;var aE=`SelectItemText`,oE=N.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,...a}=e,o=MT(aE,n),s=qT(aE,n),c=rE(aE,n),l=Ole(aE,n),[u,d]=N.useState(null),f=yy(t,e=>d(e),c.onItemTextChange,e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),p=u?.textContent,m=N.useMemo(()=>(0,I.jsx)(`option`,{value:c.value,disabled:c.disabled,children:p},c.value),[c.disabled,c.value,p]),{onNativeOptionAdd:h,onNativeOptionRemove:g}=l;return Gy(()=>(h(m),()=>g(m)),[h,g,m]),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Oy.span,{id:c.textId,...a,ref:f}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?ls.createPortal(a.children,o.valueNode):null]})});oE.displayName=aE;var sE=`SelectItemIndicator`,cE=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return rE(sE,n).isSelected?(0,I.jsx)(Oy.span,{"aria-hidden":!0,...r,ref:t}):null});cE.displayName=sE;var lE=`SelectScrollUpButton`,uE=N.forwardRef((e,t)=>{let n=qT(lE,e.__scopeSelect),r=ZT(lE,e.__scopeSelect),[i,a]=N.useState(!1),o=yy(t,r.onScrollButtonChange);return Gy(()=>{if(n.viewport&&n.isPositioned){let e=function(){a(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,I.jsx)(pE,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null});uE.displayName=lE;var dE=`SelectScrollDownButton`,fE=N.forwardRef((e,t)=>{let n=qT(dE,e.__scopeSelect),r=ZT(dE,e.__scopeSelect),[i,a]=N.useState(!1),o=yy(t,r.onScrollButtonChange);return Gy(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,I.jsx)(pE,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null});fE.displayName=dE;var pE=N.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=qT(`SelectScrollButton`,n),o=N.useRef(null),s=kT(n),c=N.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return N.useEffect(()=>()=>c(),[c]),Gy(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,I.jsx)(Oy.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:K(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:K(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:K(i.onPointerLeave,()=>{c()})})}),Ule=`SelectSeparator`,Wle=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,I.jsx)(Oy.div,{"aria-hidden":!0,...r,ref:t})});Wle.displayName=Ule;var mE=`SelectArrow`,Gle=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=jT(n);return qT(mE,n).position===`popper`?(0,I.jsx)(HC,{...i,...r,ref:t}):null});Gle.displayName=mE;var hE=`SelectBubbleInput`,gE=N.forwardRef(({__scopeSelect:e,...t},n)=>{let r=MT(hE,e),{value:i,onValueChange:a,required:o,disabled:s,name:c,autoComplete:l,form:u}=r,{nativeOptions:d,nativeSelectKey:f}=r,p=N.useRef(null),m=yy(n,p),h=i??``,g=Qx(h);return N.useEffect(()=>{let e=p.current;if(!e)return;let t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set;if(g!==h&&n){let t=new Event(`change`,{bubbles:!0});n.call(e,h),e.dispatchEvent(t)}},[g,h]),(0,I.jsxs)(Oy.select,{"aria-hidden":!0,required:o,tabIndex:-1,name:c,autoComplete:l,disabled:s,form:u,onChange:e=>a(e.target.value),...t,style:{...Vy,...t.style},ref:m,defaultValue:h,children:[_E(i)?(0,I.jsx)(`option`,{value:``}):null,Array.from(d)]},f)});gE.displayName=hE;function Kle(e){return typeof e==`function`}function _E(e){return e===``||e===void 0}function vE(e){let t=Py(e),n=N.useRef(``),r=N.useRef(0),i=N.useCallback(e=>{let i=n.current+e;t(i),(function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))})(i)},[t]),a=N.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return N.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function yE(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=qle(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function qle(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var bE=`Tabs`,[Jle,Yle]=Uy(bE,[qC]),xE=qC(),[Xle,SE]=Jle(bE),CE=N.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o=`horizontal`,dir:s,activationMode:c=`automatic`,...l}=e,u=Zy(s),[d,f]=Ky({prop:r,onChange:i,defaultProp:a??``,caller:bE});return(0,I.jsx)(Xle,{scope:n,baseId:Xy(),value:d,onValueChange:f,orientation:o,dir:u,activationMode:c,children:(0,I.jsx)(Oy.div,{dir:u,"data-orientation":o,...l,ref:t})})});CE.displayName=bE;var wE=`TabsList`,TE=N.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,a=SE(wE,n),o=xE(n);return(0,I.jsx)(QC,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:(0,I.jsx)(Oy.div,{role:`tablist`,"aria-orientation":a.orientation,...i,ref:t})})});TE.displayName=wE;var EE=`TabsTrigger`,DE=N.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=SE(EE,n),s=xE(n),c=AE(o.baseId,r),l=jE(o.baseId,r),u=r===o.value;return(0,I.jsx)($C,{asChild:!0,...s,focusable:!i,active:u,children:(0,I.jsx)(Oy.button,{type:`button`,role:`tab`,"aria-selected":u,"aria-controls":l,"data-state":u?`active`:`inactive`,"data-disabled":i?``:void 0,disabled:i,id:c,...a,ref:t,onMouseDown:K(e.onMouseDown,e=>{!i&&e.button===0&&e.ctrlKey===!1?o.onValueChange(r):e.preventDefault()}),onKeyDown:K(e.onKeyDown,e=>{[` `,`Enter`].includes(e.key)&&o.onValueChange(r)}),onFocus:K(e.onFocus,()=>{let e=o.activationMode!==`manual`;!u&&!i&&e&&o.onValueChange(r)})})})});DE.displayName=EE;var OE=`TabsContent`,kE=N.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,forceMount:i,children:a,...o}=e,s=SE(OE,n),c=AE(s.baseId,r),l=jE(s.baseId,r),u=r===s.value,d=N.useRef(u);return N.useEffect(()=>{let e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,I.jsx)(qy,{present:i||u,children:({present:n})=>(0,I.jsx)(Oy.div,{"data-state":u?`active`:`inactive`,"data-orientation":s.orientation,role:`tabpanel`,"aria-labelledby":c,hidden:!n,id:l,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:d.current?`0s`:void 0},children:n&&a})})});kE.displayName=OE;function AE(e,t){return`${e}-trigger-${t}`}function jE(e,t){return`${e}-content-${t}`}var Zle=CE,Qle=TE,$le=DE,eue=kE,[ME,tue]=Uy(`Tooltip`,[kC]),NE=kC(),PE=`TooltipProvider`,nue=700,FE=`tooltip.open`,[rue,IE]=ME(PE),LE=e=>{let{__scopeTooltip:t,delayDuration:n=nue,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=N.useRef(!0),s=N.useRef(!1),c=N.useRef(0);return N.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,I.jsx)(rue,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:N.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:N.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:N.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};LE.displayName=PE;var RE=`Tooltip`,[iue,zE]=ME(RE),BE=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=IE(RE,e.__scopeTooltip),l=NE(t),[u,d]=N.useState(null),f=Xy(),p=N.useRef(0),m=o??c.disableHoverableContent,h=s??c.delayDuration,g=N.useRef(!1),[_,v]=Ky({prop:r,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(FE))):c.onClose(),a?.(e)},caller:RE}),y=N.useMemo(()=>_?g.current?`delayed-open`:`instant-open`:`closed`,[_]),b=N.useCallback(()=>{window.clearTimeout(p.current),p.current=0,g.current=!1,v(!0)},[v]),x=N.useCallback(()=>{window.clearTimeout(p.current),p.current=0,v(!1)},[v]),S=N.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{g.current=!0,v(!0),p.current=0},h)},[h,v]);return N.useEffect(()=>()=>{p.current&&=(window.clearTimeout(p.current),0)},[]),(0,I.jsx)(zC,{...l,children:(0,I.jsx)(iue,{scope:t,contentId:f,open:_,stateAttribute:y,trigger:u,onTriggerChange:d,onTriggerEnter:N.useCallback(()=>{c.isOpenDelayedRef.current?S():b()},[c.isOpenDelayedRef,S,b]),onTriggerLeave:N.useCallback(()=>{m?x():(window.clearTimeout(p.current),p.current=0)},[x,m]),onOpen:b,onClose:x,disableHoverableContent:m,children:n})})};BE.displayName=RE;var VE=`TooltipTrigger`,HE=N.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=zE(VE,n),a=IE(VE,n),o=NE(n),s=yy(t,N.useRef(null),i.onTriggerChange),c=N.useRef(!1),l=N.useRef(!1),u=N.useCallback(()=>c.current=!1,[]);return N.useEffect(()=>()=>document.removeEventListener(`pointerup`,u),[u]),(0,I.jsx)(BC,{asChild:!0,...o,children:(0,I.jsx)(Oy.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:K(e.onPointerMove,e=>{e.pointerType!==`touch`&&!l.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),l.current=!0)}),onPointerLeave:K(e.onPointerLeave,()=>{i.onTriggerLeave(),l.current=!1}),onPointerDown:K(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener(`pointerup`,u,{once:!0})}),onFocus:K(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:K(e.onBlur,i.onClose),onClick:K(e.onClick,i.onClose)})})});HE.displayName=VE;var UE=`TooltipPortal`,[aue,oue]=ME(UE,{forceMount:void 0}),WE=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=zE(UE,t);return(0,I.jsx)(aue,{scope:t,forceMount:n,children:(0,I.jsx)(qy,{present:n||a.open,children:(0,I.jsx)(pb,{asChild:!0,container:i,children:r})})})};WE.displayName=UE;var GE=`TooltipContent`,KE=N.forwardRef((e,t)=>{let n=oue(GE,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=zE(GE,e.__scopeTooltip);return(0,I.jsx)(qy,{present:r||o.open,children:o.disableHoverableContent?(0,I.jsx)(qE,{side:i,...a,ref:t}):(0,I.jsx)(sue,{side:i,...a,ref:t})})}),sue=N.forwardRef((e,t)=>{let n=zE(GE,e.__scopeTooltip),r=IE(GE,e.__scopeTooltip),i=N.useRef(null),a=yy(t,i),[o,s]=N.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=N.useCallback(()=>{s(null),d(!1)},[d]),p=N.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=fue(r,due(r,n.getBoundingClientRect())),a=pue(t.getBoundingClientRect());s(hue([...i,...a])),d(!0)},[d]);return N.useEffect(()=>()=>f(),[f]),N.useEffect(()=>{if(c&&u){let e=e=>p(e,u),t=e=>p(e,c);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),N.useEffect(()=>{if(o){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!mue(n,o);r?f():i&&(f(),l())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,I.jsx)(qE,{...e,ref:a})}),[cue,lue]=ME(RE,{isInside:!1}),uue=Ty(`TooltipContent`),qE=N.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,c=zE(GE,n),l=NE(n),{onClose:u}=c;return N.useEffect(()=>(document.addEventListener(FE,u),()=>document.removeEventListener(FE,u)),[u]),N.useEffect(()=>{if(c.trigger){let e=e=>{e.target instanceof Node&&e.target.contains(c.trigger)&&u()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[c.trigger,u]),(0,I.jsx)(tb,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:(0,I.jsxs)(VC,{"data-state":c.stateAttribute,...l,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,I.jsx)(uue,{children:r}),(0,I.jsx)(cue,{scope:n,isInside:!0,children:(0,I.jsx)(qie,{id:c.contentId,role:`tooltip`,children:i||r})})]})})});KE.displayName=GE;var JE=`TooltipArrow`,YE=N.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=NE(n);return lue(JE,n).isInside?null:(0,I.jsx)(HC,{...i,...r,ref:t})});YE.displayName=JE;function due(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function fue(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function pue(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function mue(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function hue(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),gue(t)}function gue(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var _ue=LE,vue=BE,yue=HE,bue=WE,xue=KE,Sue=YE,XE=(0,H.forwardRef)((e,t)=>(0,I.jsx)(Ay.div,{...e,ref:t}));XE.displayName=`AttachmentPrimitive.Root`;var ZE=(0,H.forwardRef)((e,t)=>{let n=G(e=>{let t=e.attachment.name.split(`.`);return t.length>1?t.pop():``});return(0,I.jsxs)(Ay.div,{...e,ref:t,children:[`.`,n]})});ZE.displayName=`AttachmentPrimitive.unstable_Thumb`;var QE=()=>(0,I.jsx)(I.Fragment,{children:G(e=>e.attachment.name)});QE.displayName=`AttachmentPrimitive.Name`;var Cue=Ny(`AttachmentPrimitive.Remove`,()=>{let e=Dg();return W(()=>{e.attachment().remove()},[e])}),$E=xy({Name:()=>QE,Remove:()=>Cue,Root:()=>XE,unstable_Thumb:()=>ZE}),wue=e=>G(t=>{let{role:n,attachments:r,parts:i,branchCount:a,isLast:o,speech:s,isCopied:c,isHovering:l}=t.message;return!(e.hasBranches===!0&&a<2||e.user&&n!==`user`||e.assistant&&n!==`assistant`||e.system&&n!==`system`||e.lastOrHover===!0&&!l&&!o||e.last!==void 0&&e.last!==o||e.copied===!0&&!c||e.copied===!1&&c||e.speaking===!0&&s==null||e.speaking===!1&&s!=null||e.hasAttachments===!0&&(n!==`user`||!r?.length)||e.hasAttachments===!1&&n===`user`&&r?.length||e.hasContent===!0&&i.length===0||e.hasContent===!1&&i.length>0||e.submittedFeedback!==void 0&&(t.message.metadata.submittedFeedback?.type??null)!==e.submittedFeedback)}),eD=({children:e,...t})=>wue(t)?e:null;eD.displayName=`MessagePrimitive.If`;var tD=(0,H.createContext)(null),nD=()=>Dh(tD),Tue=({children:e})=>{let t=Sh(new Map),n=Sh([]),r=W(()=>{let e=Array.from(t.current.entries());e.sort((e,t)=>t[1]-e[1]),n.current=e.map(([e])=>e)},[]),i=W((e,n)=>{let i=n?.priority??0;return t.current.set(e,i),r(),()=>{t.current.delete(e),r()}},[r]),a=W(()=>n.current,[]),o=U(()=>({register:i,getPlugins:a}),[i,a]);return(0,I.jsx)(tD.Provider,{value:o,children:e})},rD=(0,H.createContext)(null),iD=(0,H.createContext)(null),aD=()=>{let e=Dh(rD);if(!e)throw Error(`useTriggerPopoverRootContext must be used within ComposerPrimitive.TriggerPopoverRoot`);return e},oD=()=>Dh(rD),Eue=()=>{let e=Dh(iD);if(!e)throw Error(`useTriggerPopoverAriaPublish must be used within ComposerPrimitive.TriggerPopoverRoot`);return e},Due=()=>{let e=aD();return(0,H.useSyncExternalStore)(e.subscribe,e.getTriggers,e.getTriggers)},Oue=new Map,sD=()=>()=>{},cD=()=>Oue,kue=()=>{let e=oD();return(0,H.useSyncExternalStore)(e?e.subscribe:sD,e?e.getTriggers:cD,e?e.getTriggers:cD)},lD=()=>null,Aue=()=>{let e=oD();return(0,H.useSyncExternalStore)(e?e.subscribeAria:sD,e?e.getActiveAria:lD,e?e.getActiveAria:lD)};function uD(){let e=Sh(new Set);return{notify:W(()=>{for(let t of e.current)t()},[]),subscribe:W(t=>(e.current.add(t),()=>{e.current.delete(t)}),[])}}var dD=({children:e})=>{let t=Sh(new Map),n=Sh(new Set),{notify:r,subscribe:i}=uD(),a=W(e=>{let{char:i}=e;if(t.current.has(i))return()=>{};let a=new Map(t.current);a.set(i,e),t.current=a,r();for(let t of n.current)t.added(e);return()=>{let e=new Map(t.current);e.delete(i),t.current=e,r();for(let e of n.current)e.removed(i)}},[r]),o=W(()=>t.current,[]),s=W(e=>(n.current.add(e),()=>{n.current.delete(e)}),[]),c=Sh(null),l=Sh(null),{notify:u,subscribe:d}=uD(),f=W((e,t)=>{if(t===null){if(l.current!==e)return;c.current=null,l.current=null,u();return}let n=c.current;l.current===e&&n!==null&&n.popoverId===t.popoverId&&n.highlightedItemId===t.highlightedItemId||(c.current=t,l.current=e,u())},[u]),p=W(()=>c.current,[]),m=U(()=>({register:a,getTriggers:o,subscribe:i,subscribeLifecycle:s,getActiveAria:p,subscribeAria:d}),[a,o,i,s,p,d]),h=U(()=>({setActiveAria:f}),[f]);return(0,I.jsx)(rD.Provider,{value:m,children:(0,I.jsx)(iD.Provider,{value:h,children:e})})},fD=({children:e})=>nD()?(0,I.jsx)(dD,{children:e}):(0,I.jsx)(Tue,{children:(0,I.jsx)(dD,{children:e})});fD.displayName=`ComposerPrimitive.TriggerPopoverRoot`;var pD=/\s/u;function jue(e,t,n){let r=e.slice(0,n);for(let e=r.length-1;e>=0;e--){let n=r[e];if(pD.test(n))return null;if(r.startsWith(t,e)){if(e>0&&!pD.test(r[e-1]))continue;return{query:r.slice(e+t.length),offset:e}}}return null}var Mue=kh(function({text:e,triggerChar:t}){let[n,r]=xh(e.length),i=U(()=>jue(e,t,Math.min(n,e.length)),[n,e,t]);return{trigger:i,query:i?.query??``,setCursorPosition:r}});function Nue(e){return`type`in e}var Pue=kh(function({navigableList:e,isSearchMode:t,activeCategoryId:n,query:r,popoverId:i,open:a,selectItem:o,selectCategory:s,goBack:c,close:l}){let[u,d]=xh(0);Ch(()=>{d(0)},[e]),Ch(()=>{d(0)},[t,n]);let f=Th(t=>{t<0||t>=e.length||t!==u&&d(t)}),p=Th(t=>{if(!a)return!1;switch(t.key){case`ArrowDown`:return t.preventDefault(),d(t=>{let n=e.length;return n===0?0:t<n-1?t+1:0}),!0;case`ArrowUp`:return t.preventDefault(),d(t=>{let n=e.length;return n===0?0:t>0?t-1:n-1}),!0;case`Enter`:case`Tab`:{if(t.shiftKey)return!1;t.preventDefault();let n=e[u];return n&&(Nue(n)?o(n):s(n.id)),!0}case`Escape`:return t.preventDefault(),l(),!0;case`Backspace`:return n&&r===``?(t.preventDefault(),c(),!0):!1;default:return!1}}),m=e[u];return{highlightedIndex:u,highlightedItemId:a&&m?`${i}-option-${m.id}`:void 0,highlightIndex:f,handleKeyDown:p}});function mD(e,t){return e.id.toLowerCase().includes(t)||e.label.toLowerCase().includes(t)||(e.description?.toLowerCase().includes(t)??!1)}var Fue=kh(function({adapter:e,query:t,open:n}){let[r,i]=xh(null);Ch(()=>{n||i(null)},[n]);let a=U(()=>!n||!e?[]:e.categories(),[n,e]),o=n?r:null,s=U(()=>!o||!e?[]:e.categoryItems(o),[o,e]),c=U(()=>{if(!n||!e||o||!t&&a.length>0)return null;if(e.search)return e.search(t);let r=[],i=t.toLowerCase();for(let t of a)for(let n of e.categoryItems(t.id))mD(n,i)&&r.push(n);return r},[n,e,t,o,a]),l=c!==null,u=U(()=>{if(l)return[];if(!t)return a;let e=t.toLowerCase();return a.filter(t=>t.label.toLowerCase().includes(e))},[a,t,l]),d=U(()=>{if(l)return c??[];if(!t)return s;let e=t.toLowerCase();return s.filter(t=>mD(t,e))},[s,t,l,c]);return{categories:u,items:d,isSearchMode:l,activeCategoryId:o,navigableList:U(()=>l?c??[]:o?d:u,[l,c,o,d,u]),selectCategory:Th(e=>{i(e)}),goBack:Th(()=>{i(null)})}}),Iue=kh(function({behavior:e,trigger:t,aui:n,triggerChar:r,setCursorPosition:i,onSelected:a}){let o=Sh(null),s=Th(e=>(o.current=e,()=>{o.current===e&&(o.current=null)}));return{selectItem:Th(i=>{if(!t||!e)return;if(o.current?.(i)){a();return}let s=n.composer().getState().text,c=s.slice(0,t.offset),l=s.slice(t.offset+r.length+t.query.length),u=()=>{let t=e.formatter.serialize(i);n.composer().setText(c+t+(l.startsWith(` `)?l:` ${l}`))};e.kind===`directive`?(u(),e.onInserted?.(i)):(e.removeOnExecute?n.composer().setText(c+(l.startsWith(` `)?l.slice(1):l)):u(),e.onExecute(i)),a()}),close:Th(()=>{a(),t&&i(t.offset)}),registerSelectItemOverride:s}}),Lue=kh(function({adapter:e,text:t,triggerChar:n,behavior:r,aui:i,popoverId:a}){let o=Wh(Mue({text:t,triggerChar:n})),s=o.trigger!==null&&e!==void 0&&r!==void 0,c=Wh(Fue({adapter:e,query:o.query,open:s})),l=Th(()=>{c.goBack()}),u=Wh(Iue({behavior:r,trigger:o.trigger,aui:i,triggerChar:n,setCursorPosition:o.setCursorPosition,onSelected:l})),d=Wh(Pue({navigableList:c.navigableList,isSearchMode:c.isSearchMode,activeCategoryId:c.activeCategoryId,query:o.query,popoverId:a,open:s,selectItem:u.selectItem,selectCategory:c.selectCategory,goBack:c.goBack,close:u.close}));return{open:s,query:o.query,activeCategoryId:c.activeCategoryId,categories:c.categories,items:c.items,highlightedIndex:d.highlightedIndex,isSearchMode:c.isSearchMode,popoverId:a,highlightedItemId:d.highlightedItemId,selectCategory:c.selectCategory,goBack:c.goBack,selectItem:u.selectItem,close:u.close,highlightIndex:d.highlightIndex,handleKeyDown:d.handleKeyDown,setCursorPosition:o.setCursorPosition,registerSelectItemOverride:u.registerSelectItemOverride}}),hD=(0,H.createContext)(null),gD=()=>{let e=Dh(hD);if(!e)throw Error(`useTriggerPopoverScopeContext must be used within ComposerPrimitive.TriggerPopover`);return e},Rue=()=>Dh(hD),_D=(0,H.createContext)(null),vD=()=>{let e=Dh(_D);if(!e)throw Error(`TriggerPopover.Directive / TriggerPopover.Action must be rendered inside ComposerPrimitive.TriggerPopover`);return e},yD=(0,H.forwardRef)(({char:e,adapter:t,"aria-label":n,children:r,...i},a)=>{let o=Dg(),s=G(e=>e.composer.text),c=(0,H.useId)(),l=Sh(null),[u,d]=xh(null),f=Sh(0),p=W(e=>(f.current+=1,l.current=e,d(e),()=>{f.current=Math.max(0,f.current-1),l.current===e&&(l.current=null,d(null))}),[e]),m=U(()=>({register:p}),[p]),h=Wh(Lue({adapter:t,text:s,triggerChar:e,behavior:u??void 0,aui:o,popoverId:c})),g=Sh(h);g.current=h;let _=aD();Ch(()=>_.register({char:e,...u?{behavior:u}:{},resource:g.current}),[_,e,u]);let v=nD();Ch(()=>{if(v)return v.register(g.current)},[v]);let y=u!==null&&h.open,b=Eue();return Ch(()=>{if(y)return()=>{b.setActiveAria(e,null)}},[b,e,y]),Ch(()=>{y&&b.setActiveAria(e,{popoverId:c,highlightedItemId:h.highlightedItemId})},[b,e,c,y,h.highlightedItemId]),(0,I.jsx)(_D.Provider,{value:m,children:(0,I.jsx)(hD.Provider,{value:h,children:y?(0,I.jsx)(Ay.div,{role:`listbox`,id:c,"aria-label":n??`Suggestions`,"aria-activedescendant":h.highlightedItemId,"data-state":`open`,...i,ref:a,children:r}):r})})});yD.displayName=`ComposerPrimitive.TriggerPopover`;var bD=()=>{let{disabled:e,send:t}=Zre(),n=W(()=>t(),[t]);return e?null:n},zue=Ny(`ComposerPrimitive.Send`,bD),xD=(0,H.forwardRef)(({onSubmit:e,...t},n)=>{let r=bD(),i=e=>{e.preventDefault(),r&&r()};return(0,I.jsx)(Ay.form,{...t,ref:n,onSubmit:K(e,i)})});xD.displayName=`ComposerPrimitive.Root`;var SD=e=>{let t=Py(e),n=cy(e=>e.onScrollToBottom);Ch(()=>n(t),[n,t])},Bue=()=>!1,Vue=()=>{},Hue=e=>(0,H.useSyncExternalStore)(W(t=>{if(typeof window>`u`||e===null)return Vue;let n=window.matchMedia(e);return n.addEventListener(`change`,t),()=>n.removeEventListener(`change`,t)},[e]),W(()=>typeof window>`u`||e===null?!1:window.matchMedia(e).matches,[e]),Bue);function CD(){return CD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CD.apply(null,arguments)}function Uue(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Wue=N.useLayoutEffect,Gue=function(e){var t=N.useRef(e);return Wue(function(){t.current=e}),t},wD=function(e,t){if(typeof e==`function`){e(t);return}e.current=t},Kue=function(e,t){var n=N.useRef();return N.useCallback(function(r){e.current=r,n.current&&wD(n.current,null),n.current=t,t&&wD(t,r)},[t])},TD={"min-height":`0`,"max-height":`none`,height:`0`,visibility:`hidden`,overflow:`hidden`,position:`absolute`,"z-index":`-1000`,top:`0`,right:`0`,display:`block`},ED=function(e){Object.keys(TD).forEach(function(t){e.style.setProperty(t,TD[t],`important`)})},DD=null,OD=function(e,t){var n=e.scrollHeight;return t.sizingStyle.boxSizing===`border-box`?n+t.borderSize:n-t.paddingSize};function que(e,t,n,r){n===void 0&&(n=1),r===void 0&&(r=1/0),DD||(DD=document.createElement(`textarea`),DD.setAttribute(`tabindex`,`-1`),DD.setAttribute(`aria-hidden`,`true`),ED(DD)),DD.parentNode===null&&document.body.appendChild(DD);var i=e.paddingSize,a=e.borderSize,o=e.sizingStyle,s=o.boxSizing;Object.keys(o).forEach(function(e){var t=e;DD.style[t]=o[t]}),ED(DD),DD.value=t;var c=OD(DD,e);DD.value=t,c=OD(DD,e),DD.value=`x`;var l=DD.scrollHeight-i,u=l*n;s===`border-box`&&(u=u+i+a),c=Math.max(u,c);var d=l*r;return s===`border-box`&&(d=d+i+a),c=Math.min(d,c),[c,l]}var kD=function(){},Jue=function(e,t){return e.reduce(function(e,n){return e[n]=t[n],e},{})},Yue=[`borderBottomWidth`,`borderLeftWidth`,`borderRightWidth`,`borderTopWidth`,`boxSizing`,`fontFamily`,`fontSize`,`fontStyle`,`fontWeight`,`letterSpacing`,`lineHeight`,`paddingBottom`,`paddingLeft`,`paddingRight`,`paddingTop`,`tabSize`,`textIndent`,`textRendering`,`textTransform`,`width`,`wordBreak`,`wordSpacing`,`scrollbarGutter`],Xue=!!document.documentElement.currentStyle,Zue=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var n=Jue(Yue,t),r=n.boxSizing;return r===``?null:(Xue&&r===`border-box`&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+`px`),{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)})};function AD(e,t,n){var r=Gue(n);N.useLayoutEffect(function(){var n=function(e){return r.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}},[])}var Que=function(e,t){AD(document.body,`reset`,function(n){e.current.form===n.target&&t(n)})},$ue=function(e){AD(window,`resize`,e)},ede=function(e){AD(document.fonts,`loadingdone`,e)},tde=[`cacheMeasurements`,`maxRows`,`minRows`,`onChange`,`onHeightChange`],nde=N.forwardRef(function(e,t){var n=e.cacheMeasurements,r=e.maxRows,i=e.minRows,a=e.onChange,o=a===void 0?kD:a,s=e.onHeightChange,c=s===void 0?kD:s,l=Uue(e,tde),u=l.value!==void 0,d=N.useRef(null),f=Kue(d,t),p=N.useRef(0),m=N.useRef(),h=function(){var e=d.current,t=n&&m.current?m.current:Zue(e);if(t){m.current=t;var a=que(t,e.value||e.placeholder||`x`,i,r),o=a[0],s=a[1];p.current!==o&&(p.current=o,e.style.setProperty(`height`,o+`px`,`important`),c(o,{rowHeight:s}))}};return N.useLayoutEffect(h),Que(d,function(){if(!u){var e=d.current.value;requestAnimationFrame(function(){var t=d.current;t&&e!==t.value&&h()})}}),$ue(h),ede(h),N.createElement(`textarea`,CD({},l,{onChange:function(e){u||h(),o(e)},ref:f}))}),rde=`(pointer: coarse) and (not (any-pointer: fine))`,jD=(0,H.forwardRef)(({autoFocus:e=!1,asChild:t,render:n,disabled:r,onChange:i,onKeyDown:a,onPaste:o,onSelect:s,submitOnEnter:c,submitMode:l,cancelOnEscape:u=!0,unstable_focusOnRunStart:d=!0,unstable_focusOnScrollToBottom:f=!0,unstable_focusOnThreadSwitched:p=!0,unstable_insertNewlineOnTouchEnter:m=!1,addAttachmentOnPaste:h=!0,...g},_)=>{let v=Dg(),y=nD(),b=Aue(),x=l??(c===!1?`none`:`enter`),S=Hue(m?rde:null),C=m&&S&&x===`enter`?`none`:x,w=G(e=>e.composer.isEditing?e.composer.text:``),T=G(e=>e.thread.isDisabled||e.composer.dictation?.inputDisabled)||r,E=Sh(null),D=yy(_,E),O=Sh(!1);Fy(e=>{if(!E.current?.contains(e.target))return;if(y){for(let t of y.getPlugins())if(t.handleKeyDown(e))return}if(!u)return;let t=v.composer();t.getState().canCancel&&(t.cancel(),e.preventDefault())});let ee=e=>{if(!T&&!e.nativeEvent.isComposing){if(y){for(let t of y.getPlugins())if(t.handleKeyDown(e))return}if(e.key===`Enter`){let t=v.thread().getState(),n=t.capabilities.queue;if(e.shiftKey&&(e.ctrlKey||e.metaKey)&&n&&x!==`none`&&v.composer().getState().canSend){e.preventDefault(),v.composer().send({steer:!0});return}if(e.shiftKey||t.isRunning&&!n)return;let r=!1;C===`ctrlEnter`?r=e.ctrlKey||e.metaKey:C===`enter`&&(r=!0),r&&(e.preventDefault(),E.current?.closest(`form`)?.requestSubmit())}}},te=async e=>{if(!h)return;let t=v.thread().getState().capabilities,n=Array.from(e.clipboardData?.files||[]);if(t.attachments&&n.length>0)try{e.preventDefault(),await Promise.all(n.map(e=>v.composer().addAttachment(e)))}catch(e){console.error(`Error adding attachment:`,e)}},k=e&&!T,A=W(()=>{let e=E.current;!e||!k||(e.focus({preventScroll:!0}),e.setSelectionRange(e.value.length,e.value.length))},[k]);Ch(()=>A(),[A]),SD(()=>{v.composer().getState().type===`thread`&&f&&A()}),Ch(()=>{if(!(v.composer().getState().type!==`thread`||!d))return v.on(`thread.runStart`,A)},[d,A,v]),Ch(()=>{if(!(v.composer().getState().type!==`thread`||!p))return v.on(`threadListItem.switchedTo`,A)},[p,A,v]);let j=b?{"aria-controls":b.popoverId,"aria-expanded":!0,"aria-haspopup":`listbox`,"aria-activedescendant":b.highlightedItemId}:{},ne={name:`input`,value:w,...g,...j,ref:D,disabled:T,onChange:K(i,e=>{if(!v.composer().getState().isEditing)return;let t=e.nativeEvent.isComposing===!0;O.current&&!t&&(O.current=!1);let n=t||O.current;if(Nh(()=>{v.composer().setText(e.target.value)}),n)return;let r=e.target.selectionStart??e.target.value.length;if(y)for(let e of y.getPlugins())e.setCursorPosition(r)}),onKeyDown:K(a,ee),onCompositionStart:K(g.onCompositionStart,()=>{O.current=!0}),onCompositionEnd:K(g.onCompositionEnd,e=>{if(O.current=!1,!v.composer().getState().isEditing)return;let t=e.target;Nh(()=>{v.composer().setText(t.value)});let n=t.selectionStart??t.value.length;if(y)for(let e of y.getPlugins())e.setCursorPosition(n)}),onSelect:K(s,e=>{if(O.current)return;let t=e.target,n=t.selectionStart??t.value.length;if(y)for(let e of y.getPlugins())e.setCursorPosition(n)}),onPaste:K(o,te)};if(n&&(0,H.isValidElement)(n)){let e=g.children===void 0?n.props.children:g.children;return(0,I.jsx)(Cy,{...ne,children:(0,H.cloneElement)(n,void 0,e)})}return(0,I.jsx)(t?Cy:nde,{...ne})});jD.displayName=`ComposerPrimitive.Input`;var ide=Ny(`ComposerPrimitive.Cancel`,()=>{let{disabled:e,cancel:t}=Qre();return e?null:t}),ade=Ny(`ComposerPrimitive.AddAttachment`,({multiple:e=!0}={})=>{let{disabled:t,addAttachment:n}=eie(),r=Dg(),i=W(()=>{let t=document.createElement(`input`);t.type=`file`,t.multiple=e,t.hidden=!0;let i=r.composer().getState().attachmentAccept;i!==`*`&&(t.accept=i),document.body.appendChild(t),t.onchange=e=>{let r=e.target.files;if(r){for(let e of r)n(e);document.body.removeChild(t)}},t.oncancel=()=>{(!t.files||t.files.length===0)&&document.body.removeChild(t)},t.click()},[r,e,n]);return t?null:i},[`multiple`]),MD=(0,H.forwardRef)(({disabled:e,asChild:t=!1,render:n,children:r,...i},a)=>{let[o,s]=xh(!1),c=Dg(),l=W(t=>{e||(t.preventDefault(),s(!0))},[e]),u=W(t=>{e||(t.preventDefault(),o||s(!0))},[e,o]),d=W(t=>{if(e)return;t.preventDefault();let n=t.relatedTarget;n&&t.currentTarget.contains(n)||s(!1)},[e]),f=W(async t=>{if(e)return;t.preventDefault(),s(!1);let n=Array.from(t.dataTransfer.files);await Promise.all(n.map(async e=>{try{await c.composer().addAttachment(e)}catch(e){console.error(`Failed to add attachment:`,e)}}))},[e,c]),p={...o?{"data-dragging":`true`}:null,...i,onDragEnterCapture:K(i.onDragEnterCapture,l),onDragOverCapture:K(i.onDragOverCapture,u),onDragLeaveCapture:K(i.onDragLeaveCapture,d),onDropCapture:K(i.onDropCapture,f),ref:a};if(n&&(0,H.isValidElement)(n)){let e=r===void 0?n.props.children:r;return(0,I.jsx)(Cy,{...p,children:(0,H.cloneElement)(n,void 0,e)})}return(0,I.jsx)(t?Cy:`div`,{...p,children:r})});MD.displayName=`ComposerPrimitive.AttachmentDropzone`;var ode=Ny(`ComposerPrimitive.Dictate`,()=>{let{disabled:e,startDictation:t}=$re();return e?null:t}),sde=Ny(`ComposerPrimitive.StopDictation`,()=>{let e=Dg(),t=G(e=>e.composer.dictation!=null),n=W(()=>{e.composer().stopDictation()},[e]);return t?n:null}),ND=(0,H.forwardRef)(({children:e,...t},n)=>{let r=G(e=>e.composer.dictation?.transcript);return r?(0,I.jsx)(Ay.span,{...t,ref:n,children:e??r}):null});ND.displayName=`ComposerPrimitive.DictationTranscript`;var PD=(0,H.forwardRef)((e,t)=>G(e=>e.composer.quote)?(0,I.jsx)(Ay.div,{...e,ref:t}):null);PD.displayName=`ComposerPrimitive.Quote`;var FD=(0,H.forwardRef)(({children:e,...t},n)=>{let r=G(e=>e.composer.quote?.text);return r?(0,I.jsx)(Ay.span,{...t,ref:n,children:e??r}):null});FD.displayName=`ComposerPrimitive.QuoteText`;var ID=(0,H.forwardRef)(({onClick:e,...t},n)=>{let r=Dg(),i=W(()=>{r.composer().setQuote(void 0)},[r]);return(0,I.jsx)(Ay.button,{type:`button`,...t,ref:n,onClick:K(e,i)})});ID.displayName=`ComposerPrimitive.QuoteDismiss`;var LD=(0,H.forwardRef)(({children:e,"aria-label":t,...n},r)=>{let{categories:i,activeCategoryId:a,isSearchMode:o,open:s}=gD();return!s||a||o?null:(0,I.jsx)(Ay.div,{role:`group`,"aria-label":t??`Categories`,...n,ref:r,children:e(i)})});LD.displayName=`ComposerPrimitive.TriggerPopoverCategories`;var RD=(0,H.forwardRef)(({categoryId:e,onClick:t,onMouseMove:n,...r},i)=>{let{selectCategory:a,highlightIndex:o,categories:s,highlightedIndex:c,activeCategoryId:l,isSearchMode:u,popoverId:d}=gD(),f=W(()=>{a(e)},[a,e]),p=s.findIndex(t=>t.id===e),m=!l&&!u&&p===c,h=W(()=>{o(p)},[o,p]);return(0,I.jsx)(Ay.button,{type:`button`,role:`option`,id:`${d}-option-${e}`,"aria-selected":m,"data-highlighted":m?``:void 0,...r,ref:i,onClick:K(t,f),onMouseMove:K(n,h)})});RD.displayName=`ComposerPrimitive.TriggerPopoverCategoryItem`;var zD=(0,H.forwardRef)(({children:e,"aria-label":t,...n},r)=>{let{items:i,activeCategoryId:a,isSearchMode:o,open:s}=gD();return!s||!a&&!o?null:(0,I.jsx)(Ay.div,{role:`group`,"aria-label":t??`Items`,...n,ref:r,children:e(i)})});zD.displayName=`ComposerPrimitive.TriggerPopoverItems`;var BD=(0,H.forwardRef)(({item:e,index:t,onClick:n,onMouseMove:r,...i},a)=>{let{selectItem:o,highlightIndex:s,items:c,highlightedIndex:l,activeCategoryId:u,isSearchMode:d,popoverId:f}=gD(),p=W(()=>{o(e)},[o,e]),m=t??c.findIndex(t=>t.id===e.id),h=(d||u!==null)&&m===l,g=W(()=>{s(m)},[s,m]);return(0,I.jsx)(Ay.button,{type:`button`,role:`option`,id:`${f}-option-${e.id}`,"aria-selected":h,"data-highlighted":h?``:void 0,...i,ref:a,onClick:K(n,p),onMouseMove:K(r,g)})});BD.displayName=`ComposerPrimitive.TriggerPopoverItem`;var VD=(0,H.forwardRef)(({onClick:e,...t},n)=>{let{activeCategoryId:r,isSearchMode:i,goBack:a,open:o}=gD();return!o||!r||i?null:(0,I.jsx)(Ay.button,{type:`button`,...t,ref:n,onClick:K(e,a)})});VD.displayName=`ComposerPrimitive.TriggerPopoverBack`;var HD=({formatter:e,onExecute:t,removeOnExecute:n})=>{let{register:r}=vD(),i=Sh(t);return i.current=t,Ch(()=>r({kind:`action`,formatter:e??ay,onExecute:e=>i.current(e),...n===void 0?{}:{removeOnExecute:n}}),[r,e,n]),null};HD.displayName=`ComposerPrimitive.TriggerPopoverAction`;var UD=({formatter:e,onInserted:t})=>{let{register:n}=vD(),r=Sh(t);return r.current=t,Ch(()=>n({kind:`directive`,formatter:e??ay,onInserted:e=>r.current?.(e)}),[n,e]),null};UD.displayName=`ComposerPrimitive.TriggerPopoverDirective`;var cde=Object.assign(yD,{Directive:UD,Action:HD}),WD=xy({AddAttachment:()=>ade,AttachmentByIndex:()=>Yv,AttachmentDropzone:()=>MD,Attachments:()=>Zv,Cancel:()=>ide,Dictate:()=>ode,DictationTranscript:()=>ND,If:()=>iy,Input:()=>jD,Queue:()=>Qv,Quote:()=>PD,QuoteDismiss:()=>ID,QuoteText:()=>FD,Root:()=>xD,Send:()=>zue,StopDictation:()=>sde,Unstable_TriggerPopover:()=>cde,Unstable_TriggerPopoverBack:()=>VD,Unstable_TriggerPopoverCategories:()=>LD,Unstable_TriggerPopoverCategoryItem:()=>RD,Unstable_TriggerPopoverItem:()=>BD,Unstable_TriggerPopoverItems:()=>zD,Unstable_TriggerPopoverRoot:()=>fD,unstable_useTriggerPopoverRootContext:()=>aD,unstable_useTriggerPopoverRootContextOptional:()=>oD,unstable_useTriggerPopoverScopeContext:()=>gD,unstable_useTriggerPopoverScopeContextOptional:()=>Rue,unstable_useTriggerPopoverTriggers:()=>Due,unstable_useTriggerPopoverTriggersOptional:()=>kue}),GD=()=>G(e=>{if(e.part.type!==`text`&&e.part.type!==`reasoning`)throw Error(`MessagePartText can only be used inside text or reasoning message parts.`);return e.part}),lde=()=>G(e=>{if(e.part.type!==`image`)throw Error(`MessagePartImage can only be used inside image message parts.`);return e.part}),KD=(0,H.createContext)(null),ude=e=>({useSmoothStatus:zg(()=>e)}),dde=({children:e})=>{let t=qD({optional:!0}),n=Dg(),[r]=xh(()=>ude(n.part().getState().status));return t?e:(0,I.jsx)(KD.Provider,{value:r,children:e})},fde=e=>{let t=(0,H.forwardRef)((t,n)=>(0,I.jsx)(dde,{children:(0,I.jsx)(e,{...t,ref:n})}));return t.displayName=e.displayName,t};function qD(e){let t=Dh(KD);if(!e?.optional&&!t)throw Error(`This component must be used within a SmoothContextProvider.`);return t}var{useSmoothStatus:pde,useSmoothStatusStore:mde}=oy(qD,`useSmoothStatus`),hde=class{currentText;setText;animationFrameId=null;lastUpdateTime=Date.now();targetText=``;constructor(e,t){this.currentText=e,this.setText=t}start(){this.animationFrameId===null&&(this.lastUpdateTime=Date.now(),this.animate())}stop(){this.animationFrameId!==null&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null)}animate=()=>{let e=Date.now(),t=e-this.lastUpdateTime,n=this.targetText.length-this.currentText.length,r=Math.min(5,250/n),i=0;for(;t>=r&&i<n;)i++,t-=r;i===n?this.animationFrameId=null:this.animationFrameId=requestAnimationFrame(this.animate),i!==0&&(this.currentText=this.targetText.slice(0,this.currentText.length+i),this.lastUpdateTime=e-t,this.setText(this.currentText))}},JD=Object.freeze({type:`running`}),YD=(e,t=!1)=>{let{text:n}=e,[r,i]=xh(e.status.type===`running`?``:n),a=Dg(),o=G(()=>a.part()),[s,c]=xh(o);(o!==s||!n.startsWith(r))&&(c(o),i(e.status.type===`running`?``:n));let l=mde({optional:!0}),u=Py(t=>{if(i(t),l){let n=r!==t||e.status.type===`running`?JD:e.status;dy(l).setState(n,!0)}});Ch(()=>{if(l){let i=t&&(r!==n||e.status.type===`running`)?JD:e.status;dy(l).setState(i,!0)}},[l,t,n,r,e.status]);let[d]=xh(new hde(r,u)),f=Sh(o);return Ch(()=>{if(!t){d.stop();return}let r=f.current!==o;if(f.current=o,r||!n.startsWith(d.targetText)){e.status.type===`running`?(d.currentText=``,d.targetText=n,d.start()):(d.currentText=n,d.targetText=n,d.stop());return}d.targetText=n,d.start()},[d,t,n,e.status.type,o]),Ch(()=>()=>{d.stop()},[d]),U(()=>t?{type:`text`,text:r,status:n===r?e.status:JD}:e,[t,r,e,n])},XD=(0,H.forwardRef)(({smooth:e=!0,component:t=`span`,...n},r)=>{let{text:i,status:a}=YD(GD(),e);return(0,I.jsx)(t,{"data-status":a.type,...n,ref:r,children:i})});XD.displayName=`MessagePartPrimitive.Text`;var ZD=(0,H.forwardRef)((e,t)=>{let{image:n}=lde();return(0,I.jsx)(Ay.img,{src:n,...e,ref:t})});ZD.displayName=`MessagePartPrimitive.Image`;var QD=e=>{let t=Sh(void 0);return W(n=>{t.current&&=(t.current(),void 0),n&&(t.current=e(n))},[e])},$D=(e,t)=>{let n=e.trim().match(/^(\d+(?:\.\d+)?|\.\d+)(em|px|rem)$/);if(!n)return 1/0;let r=Number(n[1]),i=n[2];return i===`px`?r:i===`em`?r*(parseFloat(getComputedStyle(t).fontSize)||16):i===`rem`?r*(parseFloat(getComputedStyle(document.documentElement).fontSize)||16):1/0},gde=e=>e.dataset.messageId,_de=()=>{let e=document.createElement(`div`);return e.dataset.auiTopAnchorReserve=``,e.style.height=`0px`,e.style.flexShrink=`0`,e.style.pointerEvents=`none`,e.setAttribute(`aria-hidden`,`true`),e},eO=(e,t)=>{let n=`${t}px`;return e.style.height===n?!1:(e.style.height=n,!0)},vde=e=>{let t=window.devicePixelRatio||1;return Math.round(e*t)/t},tO=()=>{let e=Dg(),t=G(()=>e.message());return QD(W(e=>{let n=()=>{t.setIsHovering(!0)},r=()=>{t.setIsHovering(!1)};return e.addEventListener(`mouseenter`,n),e.addEventListener(`mouseleave`,r),e.matches(`:hover`)&&queueMicrotask(()=>t.setIsHovering(!0)),()=>{e.removeEventListener(`mouseenter`,n),e.removeEventListener(`mouseleave`,r),t.setIsHovering(!1)}},[t]))},yde=()=>{let e=cy(e=>e.topAnchorTurn?.anchorId);return G(t=>t.message.role===`user`&&t.message.index>0&&t.message.index===t.thread.messages.length-2&&t.thread.messages.at(-1)?.role===`assistant`&&(t.message.id===e||t.thread.isRunning))},bde=()=>{let e=cy(e=>e.topAnchorTurn?.targetId);return G(t=>t.message.isLast&&t.message.role===`assistant`&&t.message.index>=1&&t.thread.messages.at(t.message.index-1)?.role===`user`&&(t.message.id===e||t.thread.isRunning))},xde=(e,t)=>QD(W(n=>{if(e)return t.getState().registerAnchorElement(n)},[e,t])),Sde=({active:e,threadViewportStore:t})=>QD(W(n=>{if(!e)return;let r=t.getState(),i=r.topAnchorMessageClamp;return r.registerAnchorTargetElement(n,{tallerThan:$D(i.tallerThan,n),visibleHeight:$D(i.visibleHeight,n)})},[e,t])),Cde=({forwardedRef:e,...t})=>{let n=yy(e,tO()),r=G(e=>e.message.id);return(0,I.jsx)(Ay.div,{...t,ref:n,"data-message-id":r})},wde=({forwardedRef:e,threadViewportStore:t,...n})=>{let r=tO(),i=yde(),a=bde(),o=yy(e,r,xde(i,t),Sde({active:a,threadViewportStore:t})),s=G(e=>e.message.id);return(0,I.jsx)(Ay.div,{...n,ref:o,"data-message-id":s,"data-aui-top-anchor-user":i?``:void 0,"data-aui-top-anchor-target":a?``:void 0})},nO=(0,H.forwardRef)((e,t)=>{let n=ly();return n.getState().turnAnchor===`top`?(0,I.jsx)(wde,{...e,forwardedRef:t,threadViewportStore:n}):(0,I.jsx)(Cde,{...e,forwardedRef:t})});nO.displayName=`MessagePrimitive.Root`;var rO={...jv,Text:()=>(0,I.jsxs)(`p`,{style:{whiteSpace:`pre-line`},children:[(0,I.jsx)(XD,{}),(0,I.jsx)($v,{children:(0,I.jsx)(`span`,{style:{fontFamily:`revert`},children:` ●`})})]}),Image:()=>(0,I.jsx)(ZD,{})},iO=e=>{if(`children`in e)return(0,I.jsx)(Rv,{children:e.children});let{components:t,...n}=e;return(0,I.jsx)(Rv,{components:t?{Text:t.Text??rO.Text,Image:t.Image??rO.Image,Reasoning:t.Reasoning??jv.Reasoning,Source:t.Source??jv.Source,File:t.File??jv.File,Unstable_Audio:t.Unstable_Audio??jv.Unstable_Audio,...`ChainOfThought`in t?{ChainOfThought:t.ChainOfThought}:{tools:t.tools,data:t.data,ToolGroup:t.ToolGroup??jv.ToolGroup,ReasoningGroup:t.ReasoningGroup??jv.ReasoningGroup},Empty:t.Empty,Quote:t.Quote,generativeUI:t.generativeUI}:rO,...n})};iO.displayName=`MessagePrimitive.Parts`;var aO=({children:e})=>lie()===void 0?null:e;aO.displayName=`MessagePrimitive.Error`;var Tde=e=>{let t=new Map;for(let n=0;n<e.length;n++){let r=e[n]?.parentId??`__ungrouped_${n}`,i=t.get(r)??[];i.push(n),t.set(r,i)}let n=[];for(let[e,r]of t){let t=e.startsWith(`__ungrouped_`)?void 0:e;n.push({groupKey:t,indices:r})}return n},Ede=e=>{let t=G(e=>e.message.parts);return U(()=>t.length===0?[]:e(t),[t,e])},Dde=({Fallback:e,...t})=>{let n=G(n=>{let r=n.tools.tools[t.toolName]??e;return Array.isArray(r)?r[0]??e:r});return n?(0,I.jsx)(n,{...t}):null},Ode=({Fallback:e,...t})=>{let n=G(n=>{let r=n.dataRenderers.renderers[t.name]??e;return Array.isArray(r)?r[0]??e:r});return n?(0,I.jsx)(n,{...t}):null},oO={Text:()=>(0,I.jsxs)(`p`,{style:{whiteSpace:`pre-line`},children:[(0,I.jsx)(XD,{}),(0,I.jsx)($v,{children:(0,I.jsx)(`span`,{style:{fontFamily:`revert`},children:` ●`})})]}),Reasoning:()=>null,Source:()=>null,Image:()=>(0,I.jsx)(ZD,{}),File:()=>null,Unstable_Audio:()=>null,Group:({children:e})=>e},kde=({components:{Text:e=oO.Text,Reasoning:t=oO.Reasoning,Image:n=oO.Image,Source:r=oO.Source,File:i=oO.File,Unstable_Audio:a=oO.Unstable_Audio,tools:o={},data:s}={}})=>{let c=Dg(),l=G(e=>e.part),u=l.type;if(u===`tool-call`){let e=c.part().addToolResult,t=c.part().resumeToolCall,n=c.part().respondToToolApproval;if(`Override`in o)return(0,I.jsx)(o.Override,{...l,addResult:e,resume:t,respondToApproval:n});let r=o.by_name?.[l.toolName]??o.Fallback;return(0,I.jsx)(Dde,{...l,Fallback:r,addResult:e,resume:t,respondToApproval:n})}if(l.status?.type===`requires-action`)throw Error(`Encountered unexpected requires-action status`);switch(u){case`text`:return(0,I.jsx)(e,{...l});case`reasoning`:return(0,I.jsx)(t,{...l});case`source`:return(0,I.jsx)(r,{...l});case`image`:return(0,I.jsx)(n,{...l});case`file`:return(0,I.jsx)(i,{...l});case`audio`:return(0,I.jsx)(a,{...l});case`data`:{let e=s?.by_name?.[l.name]??s?.Fallback;return(0,I.jsx)(Ode,{...l,Fallback:e})}default:return console.warn(`Unknown message part type: ${u}`),null}},Ade=(0,H.memo)(({partIndex:e,components:t})=>(0,I.jsx)(o_,{index:e,children:(0,I.jsx)(kde,{components:t})}),(e,t)=>e.partIndex===t.partIndex&&e.components?.Text===t.components?.Text&&e.components?.Reasoning===t.components?.Reasoning&&e.components?.Source===t.components?.Source&&e.components?.Image===t.components?.Image&&e.components?.File===t.components?.File&&e.components?.Unstable_Audio===t.components?.Unstable_Audio&&e.components?.tools===t.components?.tools&&e.components?.data===t.components?.data&&e.components?.Group===t.components?.Group),jde=({status:e,component:t})=>(0,I.jsx)(s_,{text:``,isRunning:e.type===`running`,children:(0,I.jsx)(t,{type:`text`,text:``,status:e})}),Mde=Object.freeze({type:`complete`}),Nde=(0,H.memo)(({components:e})=>{let t=G(e=>e.message.status??Mde);return e?.Empty?(0,I.jsx)(e.Empty,{status:t}):(0,I.jsx)(jde,{status:t,component:e?.Text??oO.Text})},(e,t)=>e.components?.Empty===t.components?.Empty&&e.components?.Text===t.components?.Text),sO=({groupingFunction:e,components:t})=>{let n=G(e=>e.message.parts.length),r=Ede(e);return(0,I.jsx)(I.Fragment,{children:U(()=>n===0?(0,I.jsx)(Nde,{components:t}):r.map((e,n)=>(0,I.jsx)(t?.Group??oO.Group,{groupKey:e.groupKey,indices:e.indices,children:e.indices.map(e=>(0,I.jsx)(Ade,{partIndex:e,components:t},e))},`group-${n}-${e.groupKey??`ungrouped`}`)),[r,t,n])})};sO.displayName=`MessagePrimitive.Unstable_PartsGrouped`;var cO=({components:e,...t})=>(0,I.jsx)(sO,{...t,components:e,groupingFunction:Tde});cO.displayName=`MessagePrimitive.Unstable_PartsGroupedByParentId`;var lO=xy({AttachmentByIndex:()=>Gv,Attachments:()=>qv,Content:()=>iO,Error:()=>aO,GenerativeUI:()=>wv,GroupedParts:()=>Hv,If:()=>eD,PartByIndex:()=>Mv,Parts:()=>iO,Quote:()=>Uv,Root:()=>nO,Unstable_PartsGrouped:()=>sO,Unstable_PartsGroupedByParentId:()=>cO}),Pde=e=>{let t=Py(e);return QD(W(e=>{let n=new ResizeObserver(()=>{t()}),r=new MutationObserver(e=>{e.some(e=>e.type!==`attributes`||e.attributeName!==`style`)&&t()});return n.observe(e),r.observe(e,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),()=>{n.disconnect(),r.disconnect()}},[t]))},Fde=({autoScroll:e,scrollToBottomOnRunStart:t=!0,scrollToBottomOnInitialize:n=!0,scrollToBottomOnThreadSwitch:r=!0})=>{let i=Sh(null),a=G(e=>e.thread.messages.length>0),o=Sh(!1),s=Sh(null),c=ly();e===void 0&&(e=c.getState().turnAnchor!==`top`);let l=Sh(0),u=Sh(0),d=Sh(0),f=Sh(0),p=Sh(null),m=W(e=>{let t=i.current;t&&(p.current=e,t.scrollTo({top:t.scrollHeight,behavior:e}))},[]),h=W(e=>{p.current=e,s.current!==null&&cancelAnimationFrame(s.current),s.current=requestAnimationFrame(()=>{s.current=null,m(e)})},[m]);wh(()=>()=>{s.current!==null&&cancelAnimationFrame(s.current)},[]);let g=W(()=>{let e=c.getState();return e.turnAnchor===`top`&&e.element.viewport===i.current&&e.element.anchor!==null},[c]),_=()=>{let e=i.current;if(!e)return;let t=c.getState().isAtBottom,n=Math.abs(e.scrollHeight-e.scrollTop-e.clientHeight)<=1||e.scrollHeight<=e.clientHeight;!n&&l.current<e.scrollTop||(n?e.scrollHeight>e.clientHeight+1&&(p.current=null):l.current>e.scrollTop&&u.current===e.scrollHeight&&(p.current=null),(n||p.current===null)&&n!==t&&dy(c).setState({isAtBottom:n})),l.current=e.scrollTop,u.current=e.scrollHeight},v=Pde(()=>{let t=i.current;if(!t)return;let{scrollHeight:n,clientHeight:r}=t;if(n===d.current&&r===f.current)return;d.current=n,f.current=r;let a=p.current;a&&g()?p.current=null:a?m(a):e&&c.getState().isAtBottom&&m(`instant`),_()}),y=QD(e=>(e.addEventListener(`scroll`,_),()=>{e.removeEventListener(`scroll`,_)}));return wh(()=>{if(n){if(!a){o.current=!1;return}o.current||(o.current=!0,p.current===null&&h(`instant`))}},[a,h,n]),SD(({behavior:e})=>{m(e)}),Ag(`thread.runStart`,()=>{t&&c.getState().turnAnchor!==`top`&&h(`auto`)}),Ag(`threadListItem.switchedTo`,()=>{r&&h(`instant`)}),yy(v,y,i)},uO=(0,H.forwardRef)((e,t)=>(0,I.jsx)(Ay.div,{...e,ref:t}));uO.displayName=`ThreadPrimitive.Root`;var dO=({children:e})=>G(e=>e.thread.isEmpty)?e:null;dO.displayName=`ThreadPrimitive.Empty`;var Ide=e=>G(t=>!(e.empty===!0&&!t.thread.isEmpty||e.empty===!1&&t.thread.isEmpty||e.running===!0&&!t.thread.isRunning||e.running===!1&&t.thread.isRunning||e.disabled===!0&&!t.thread.isDisabled||e.disabled===!1&&t.thread.isDisabled)),fO=({children:e,...t})=>Ide(t)?e:null;fO.displayName=`ThreadPrimitive.If`;var pO=(e,t)=>QD(W(n=>{if(!e)return;let r=e(),i=()=>{let e=t?t(n):n.offsetHeight;r.setHeight(e)},a=new ResizeObserver(i);return a.observe(n),i(),()=>{a.disconnect(),r.unregister()}},[e,t])),mO=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},Lde=(e,t)=>{let n=0,r=e;for(;r&&r!==t;)n+=r.offsetTop,r=r.offsetParent;return r===t?n:mO(e)-mO(t)},hO=({viewport:e,anchor:t,tallerThan:n,visibleHeight:r})=>{let i=Lde(t,e),a=t.offsetHeight;return i+Math.max(0,a-(a<=n?a:r))},Rde=({scrollHeight:e,...t})=>{let{viewport:n}=t,r=hO(t)+n.clientHeight;return Math.max(0,r-e)},zde=({viewport:e,reserve:t,...n})=>Rde({viewport:e,...n,scrollHeight:e.scrollHeight-t.offsetHeight}),Bde=e=>{let t=new ResizeObserver(e),n=new MutationObserver(e),r=null,i=null,a=null,o=()=>{t.disconnect(),n.disconnect(),r=null,i=null,a=null};return{target:(e,s,c)=>{r===e&&i===s&&a===c||(o(),t.observe(e),t.observe(s),t.observe(c),n.observe(c,{childList:!0,subtree:!0,characterData:!0}),r=e,i=s,a=c)},disconnect:o}},Vde=e=>{let t=null;return{schedule:()=>{t===null&&(t=requestAnimationFrame(()=>{t=null,e()}))},cancel:()=>{t!==null&&(cancelAnimationFrame(t),t=null)}}},Hde=e=>{let t=null,n;function r(){let r=e.getState(),{viewport:o,anchor:s,target:c}=r.element,l=r.targetConfig;if(r.turnAnchor!==`top`||!o||!s||!c||!l){a.disconnect(),t&&(eO(t,0),t.remove());return}if(t??=_de(),(t.parentElement!==c.parentElement||t.previousElementSibling!==c)&&c.after(t),a.target(o,s,c),eO(t,zde({viewport:o,anchor:s,reserve:t,...l}))){i.schedule();return}let u=gde(s);if(u!==void 0&&n===u)return;let d=vde(hO({viewport:o,anchor:s,...l}));Math.abs(o.scrollTop-d)>1&&o.scrollTo({top:d,behavior:`smooth`}),u!==void 0&&(n=u)}let i=Vde(r),a=Bde(i.schedule);i.schedule();let o=e.subscribe(i.schedule);return()=>{i.cancel(),o(),a.disconnect(),t?.remove()}},Ude=e=>{let t=ly();wh(()=>{if(e)return Hde(t)},[e,t])},gO=({isRunning:e,messages:t})=>{if(!e)return null;let n=t.at(-1),r=t.at(-2);return r?.role!==`user`||n?.role!==`assistant`?null:{anchorId:r.id,targetId:n.id}},Wde=e=>gO(e)?.anchorId,Gde=e=>gO(e)?.targetId,Kde=()=>pO(cy(e=>e.registerViewport),W(e=>e.clientHeight,[])),qde=()=>QD(cy(e=>e.registerViewportElement)),Jde=e=>{let t=ly(),n=G(t=>{if(e)return Wde(t.thread)}),r=G(t=>{if(e)return Gde(t.thread)}),i=U(()=>!n||!r?null:{anchorId:n,targetId:r},[n,r]);wh(()=>{if(!i)return;let e=t.getState(),n=e.topAnchorTurn;n?.anchorId===i.anchorId&&n.targetId===i.targetId||e.setTopAnchorTurn(i)},[i,t]);let a=W(()=>{t.getState().setTopAnchorTurn(null)},[t]);Ag(`thread.initialize`,a),Ag(`threadListItem.switchedTo`,a)},_O=(0,H.forwardRef)(({autoScroll:e,scrollToBottomOnRunStart:t,scrollToBottomOnInitialize:n,scrollToBottomOnThreadSwitch:r,children:i,...a},o)=>{let s=Fde({autoScroll:e,scrollToBottomOnRunStart:t,scrollToBottomOnInitialize:n,scrollToBottomOnThreadSwitch:r}),c=Kde(),l=qde(),u=ly().getState().turnAnchor===`top`;Jde(u),Ude(u);let d=yy(o,s,c,l);return(0,I.jsx)(Ay.div,{...a,ref:d,children:i})});_O.displayName=`ThreadPrimitive.ViewportScrollable`;var vO=(0,H.forwardRef)(({turnAnchor:e,topAnchorMessageClamp:t,...n},r)=>(0,I.jsx)(fy,{options:{turnAnchor:e,topAnchorMessageClamp:t},children:(0,I.jsx)(_O,{...n,ref:r})}));vO.displayName=`ThreadPrimitive.Viewport`;var yO=(0,H.forwardRef)((e,t)=>{let n=yy(t,pO(cy(e=>e.registerContentInset),W(e=>{let t=parseFloat(getComputedStyle(e).marginTop)||0;return e.offsetHeight+t},[])));return(0,I.jsx)(Ay.div,{...e,ref:n})});yO.displayName=`ThreadPrimitive.ViewportFooter`;var Yde=Ny(`ThreadPrimitive.ScrollToBottom`,({behavior:e}={})=>{let t=cy(e=>e.isAtBottom),n=ly(),r=W(()=>{n.getState().scrollToBottom({behavior:e})},[n,e]);return t?null:r},[`behavior`]),Xde=Ny(`ThreadPrimitive.Suggestion`,({prompt:e,send:t,clearComposer:n,autoSend:r,method:i})=>{let{disabled:a,trigger:o}=cie({prompt:e,send:t??r??!1,clearComposer:n});return a?null:o},[`prompt`,`send`,`clearComposer`,`autoSend`,`method`]),bO=xy({Empty:()=>dO,If:()=>fO,MessageByIndex:()=>vv,Messages:()=>xre,Root:()=>uO,ScrollToBottom:()=>Yde,Suggestion:()=>Xde,SuggestionByIndex:()=>ty,Suggestions:()=>Yre,Viewport:()=>vO,ViewportFooter:()=>yO,ViewportProvider:()=>fy}),Zde=xy({AssistantRuntimeImpl:()=>A_,BaseAssistantRuntimeCore:()=>j_,CompositeContextProvider:()=>Kh,DefaultThreadComposerRuntimeCore:()=>X_,MessageRepository:()=>H_,ThreadRuntimeImpl:()=>E_,fromThreadMessageLike:()=>z_,generateId:()=>F_,getAutoStatus:()=>L_,splitLocalRuntimeOptions:()=>uie,useComposerInputPluginRegistryOptional:()=>nD,useSmooth:()=>YD,useSmoothStatus:()=>pde,withSmoothContextProvider:()=>fde}),xO=typeof window<`u`&&window.location?window.location.hostname:``,SO=e=>`oc.brand.${e}`;function Qde(e){if(typeof e!=`object`||!e||Array.isArray(e)||!(`tokens`in e))return!1;let t=e.tokens;if(t===null)return!0;if(typeof t!=`object`)return!1;let n=t.colors;return typeof n==`object`&&!!n&&`light`in n&&`dark`in n}function $de(e){try{let t=localStorage.getItem(SO(e));if(!t)return null;let n=JSON.parse(t);return Qde(n)?n:null}catch{return null}}function efe(e,t){try{localStorage.setItem(SO(e),JSON.stringify(t))}catch{}}var tfe=`background.foreground.card.card-foreground.popover.popover-foreground.primary.primary-foreground.secondary.secondary-foreground.muted.muted-foreground.accent.accent-foreground.destructive.destructive-foreground.border.input.ring.chart-1.chart-2.chart-3.chart-4.chart-5.sidebar.sidebar-foreground.sidebar-primary.sidebar-primary-foreground.sidebar-accent.sidebar-accent-foreground.sidebar-border.sidebar-ring`.split(`.`),CO=[{key:`ocean`,name:`Ocean`,tokens:{colors:{light:{background:`oklch(0.985 0.012 230)`,foreground:`oklch(0.22 0.04 245)`,card:`oklch(0.995 0.008 230)`,"card-foreground":`oklch(0.22 0.04 245)`,popover:`oklch(0.995 0.008 230)`,"popover-foreground":`oklch(0.22 0.04 245)`,primary:`oklch(0.55 0.13 235)`,"primary-foreground":`oklch(0.99 0.01 230)`,secondary:`oklch(0.93 0.03 220)`,"secondary-foreground":`oklch(0.28 0.05 240)`,muted:`oklch(0.94 0.02 225)`,"muted-foreground":`oklch(0.5 0.04 235)`,accent:`oklch(0.9 0.05 200)`,"accent-foreground":`oklch(0.28 0.06 230)`,border:`oklch(0.88 0.03 225)`,input:`oklch(0.88 0.03 225)`,ring:`oklch(0.55 0.13 235)`,"chart-1":`oklch(0.6 0.13 235)`,"chart-2":`oklch(0.65 0.12 200)`,"chart-3":`oklch(0.55 0.1 260)`,"chart-4":`oklch(0.7 0.11 180)`,"chart-5":`oklch(0.5 0.12 215)`,sidebar:`oklch(0.96 0.02 228)`,"sidebar-foreground":`oklch(0.24 0.04 245)`,"sidebar-primary":`oklch(0.55 0.13 235)`,"sidebar-primary-foreground":`oklch(0.99 0.01 230)`,"sidebar-accent":`oklch(0.9 0.05 200)`,"sidebar-accent-foreground":`oklch(0.28 0.06 230)`,"sidebar-border":`oklch(0.87 0.03 225)`,"sidebar-ring":`oklch(0.55 0.13 235)`},dark:{background:`oklch(0.2 0.03 245)`,foreground:`oklch(0.95 0.02 225)`,card:`oklch(0.25 0.04 245)`,"card-foreground":`oklch(0.95 0.02 225)`,popover:`oklch(0.25 0.04 245)`,"popover-foreground":`oklch(0.95 0.02 225)`,primary:`oklch(0.7 0.12 230)`,"primary-foreground":`oklch(0.18 0.04 245)`,secondary:`oklch(0.3 0.04 240)`,"secondary-foreground":`oklch(0.95 0.02 225)`,muted:`oklch(0.3 0.03 242)`,"muted-foreground":`oklch(0.72 0.04 228)`,accent:`oklch(0.4 0.07 210)`,"accent-foreground":`oklch(0.96 0.02 220)`,border:`oklch(0.35 0.03 242)`,input:`oklch(0.35 0.03 242)`,ring:`oklch(0.7 0.12 230)`,"chart-1":`oklch(0.7 0.13 230)`,"chart-2":`oklch(0.72 0.12 195)`,"chart-3":`oklch(0.65 0.11 260)`,"chart-4":`oklch(0.76 0.1 180)`,"chart-5":`oklch(0.62 0.12 215)`,sidebar:`oklch(0.23 0.04 246)`,"sidebar-foreground":`oklch(0.95 0.02 225)`,"sidebar-primary":`oklch(0.7 0.12 230)`,"sidebar-primary-foreground":`oklch(0.18 0.04 245)`,"sidebar-accent":`oklch(0.4 0.07 210)`,"sidebar-accent-foreground":`oklch(0.96 0.02 220)`,"sidebar-border":`oklch(0.34 0.03 242)`,"sidebar-ring":`oklch(0.7 0.12 230)`}},radius:`0.75rem`,fontSans:`ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif`}},{key:`forest`,name:`Forest`,tokens:{colors:{light:{background:`oklch(0.985 0.012 130)`,foreground:`oklch(0.24 0.04 145)`,card:`oklch(0.995 0.008 130)`,"card-foreground":`oklch(0.24 0.04 145)`,popover:`oklch(0.995 0.008 130)`,"popover-foreground":`oklch(0.24 0.04 145)`,primary:`oklch(0.52 0.12 150)`,"primary-foreground":`oklch(0.99 0.01 130)`,secondary:`oklch(0.93 0.04 130)`,"secondary-foreground":`oklch(0.3 0.05 150)`,muted:`oklch(0.94 0.03 135)`,"muted-foreground":`oklch(0.5 0.04 145)`,accent:`oklch(0.9 0.06 115)`,"accent-foreground":`oklch(0.3 0.06 150)`,border:`oklch(0.88 0.03 135)`,input:`oklch(0.88 0.03 135)`,ring:`oklch(0.52 0.12 150)`,"chart-1":`oklch(0.58 0.13 150)`,"chart-2":`oklch(0.68 0.12 120)`,"chart-3":`oklch(0.6 0.11 95)`,"chart-4":`oklch(0.55 0.1 175)`,"chart-5":`oklch(0.5 0.12 140)`,sidebar:`oklch(0.96 0.02 132)`,"sidebar-foreground":`oklch(0.26 0.04 145)`,"sidebar-primary":`oklch(0.52 0.12 150)`,"sidebar-primary-foreground":`oklch(0.99 0.01 130)`,"sidebar-accent":`oklch(0.9 0.06 115)`,"sidebar-accent-foreground":`oklch(0.3 0.06 150)`,"sidebar-border":`oklch(0.87 0.03 135)`,"sidebar-ring":`oklch(0.52 0.12 150)`},dark:{background:`oklch(0.2 0.03 150)`,foreground:`oklch(0.95 0.02 130)`,card:`oklch(0.25 0.04 150)`,"card-foreground":`oklch(0.95 0.02 130)`,popover:`oklch(0.25 0.04 150)`,"popover-foreground":`oklch(0.95 0.02 130)`,primary:`oklch(0.68 0.13 145)`,"primary-foreground":`oklch(0.18 0.04 150)`,secondary:`oklch(0.3 0.04 148)`,"secondary-foreground":`oklch(0.95 0.02 130)`,muted:`oklch(0.3 0.03 150)`,"muted-foreground":`oklch(0.72 0.04 135)`,accent:`oklch(0.4 0.07 120)`,"accent-foreground":`oklch(0.96 0.02 125)`,border:`oklch(0.35 0.03 148)`,input:`oklch(0.35 0.03 148)`,ring:`oklch(0.68 0.13 145)`,"chart-1":`oklch(0.68 0.14 148)`,"chart-2":`oklch(0.74 0.12 120)`,"chart-3":`oklch(0.68 0.11 95)`,"chart-4":`oklch(0.62 0.1 175)`,"chart-5":`oklch(0.6 0.12 140)`,sidebar:`oklch(0.23 0.04 150)`,"sidebar-foreground":`oklch(0.95 0.02 130)`,"sidebar-primary":`oklch(0.68 0.13 145)`,"sidebar-primary-foreground":`oklch(0.18 0.04 150)`,"sidebar-accent":`oklch(0.4 0.07 120)`,"sidebar-accent-foreground":`oklch(0.96 0.02 125)`,"sidebar-border":`oklch(0.34 0.03 148)`,"sidebar-ring":`oklch(0.68 0.13 145)`}},radius:`0.375rem`,fontSans:`Georgia, Cambria, 'Times New Roman', Times, serif`}},{key:`dusk`,name:`Dusk`,tokens:{colors:{light:{background:`oklch(0.985 0.012 300)`,foreground:`oklch(0.24 0.05 300)`,card:`oklch(0.995 0.008 300)`,"card-foreground":`oklch(0.24 0.05 300)`,popover:`oklch(0.995 0.008 300)`,"popover-foreground":`oklch(0.24 0.05 300)`,primary:`oklch(0.55 0.16 300)`,"primary-foreground":`oklch(0.99 0.01 300)`,secondary:`oklch(0.93 0.04 310)`,"secondary-foreground":`oklch(0.3 0.06 300)`,muted:`oklch(0.94 0.03 305)`,"muted-foreground":`oklch(0.5 0.05 300)`,accent:`oklch(0.9 0.07 70)`,"accent-foreground":`oklch(0.32 0.08 60)`,border:`oklch(0.88 0.03 305)`,input:`oklch(0.88 0.03 305)`,ring:`oklch(0.55 0.16 300)`,"chart-1":`oklch(0.58 0.17 300)`,"chart-2":`oklch(0.7 0.15 70)`,"chart-3":`oklch(0.55 0.15 330)`,"chart-4":`oklch(0.65 0.14 35)`,"chart-5":`oklch(0.5 0.16 280)`,sidebar:`oklch(0.96 0.02 303)`,"sidebar-foreground":`oklch(0.26 0.05 300)`,"sidebar-primary":`oklch(0.55 0.16 300)`,"sidebar-primary-foreground":`oklch(0.99 0.01 300)`,"sidebar-accent":`oklch(0.9 0.07 70)`,"sidebar-accent-foreground":`oklch(0.32 0.08 60)`,"sidebar-border":`oklch(0.87 0.03 305)`,"sidebar-ring":`oklch(0.55 0.16 300)`},dark:{background:`oklch(0.2 0.04 300)`,foreground:`oklch(0.95 0.02 305)`,card:`oklch(0.25 0.05 300)`,"card-foreground":`oklch(0.95 0.02 305)`,popover:`oklch(0.25 0.05 300)`,"popover-foreground":`oklch(0.95 0.02 305)`,primary:`oklch(0.72 0.15 300)`,"primary-foreground":`oklch(0.18 0.04 300)`,secondary:`oklch(0.3 0.05 305)`,"secondary-foreground":`oklch(0.95 0.02 305)`,muted:`oklch(0.3 0.04 303)`,"muted-foreground":`oklch(0.72 0.05 305)`,accent:`oklch(0.45 0.1 65)`,"accent-foreground":`oklch(0.96 0.02 70)`,border:`oklch(0.35 0.04 303)`,input:`oklch(0.35 0.04 303)`,ring:`oklch(0.72 0.15 300)`,"chart-1":`oklch(0.72 0.16 300)`,"chart-2":`oklch(0.78 0.14 70)`,"chart-3":`oklch(0.68 0.15 330)`,"chart-4":`oklch(0.72 0.13 35)`,"chart-5":`oklch(0.64 0.16 280)`,sidebar:`oklch(0.23 0.05 300)`,"sidebar-foreground":`oklch(0.95 0.02 305)`,"sidebar-primary":`oklch(0.72 0.15 300)`,"sidebar-primary-foreground":`oklch(0.18 0.04 300)`,"sidebar-accent":`oklch(0.45 0.1 65)`,"sidebar-accent-foreground":`oklch(0.96 0.02 70)`,"sidebar-border":`oklch(0.34 0.04 303)`,"sidebar-ring":`oklch(0.72 0.15 300)`}},radius:`1rem`,fontSans:`ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace`}}];new Set(CO.map(e=>e.key));function wO(e){let t=e??localStorage.getItem(`oc.theme`)??`system`,n=()=>t===`system`?window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:t,[r,i]=(0,N.useState)(n);return(0,N.useEffect)(()=>{if(i(n()),t!==`system`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`),r=()=>i(e.matches?`dark`:`light`);return e.addEventListener(`change`,r),()=>e.removeEventListener(`change`,r)},[t]),r}function nfe(e,t){let n=document.documentElement.style,r=e?.colors?.[t];for(let e of tfe){let t=r?.[e];t===void 0?n.removeProperty(`--`+e):n.setProperty(`--`+e,t)}e?.radius===void 0?n.removeProperty(`--radius`):n.setProperty(`--radius`,e.radius),e?.fontSans===void 0?n.removeProperty(`--ui-font-sans`):n.setProperty(`--ui-font-sans`,e.fontSans),e?.fontMono===void 0?n.removeProperty(`--ui-font-mono`):n.setProperty(`--ui-font-mono`,e.fontMono)}function TO(e,t){(0,N.useEffect)(()=>{nfe(e??null,t)},[e,t])}var EO=new Map,DO={active:!1,percent:0,count:0},OO=new Set;function kO(){let e=0,t=0;for(let n of EO.values())e+=n.loaded,t+=n.total;let n=EO.size;DO={active:n>0,percent:t>0?Math.min(100,Math.round(e/t*100)):0,count:n};for(let e of OO)e()}var AO={subscribe(e){return OO.add(e),()=>OO.delete(e)},getSnapshot(){return DO},report(e,t,n){EO.set(e,{loaded:t,total:n}),kO()},clear(e){EO.delete(e)&&kO()}};function jO(e,t){return(t===`dark`?e?.logoDarkUrl:e?.logoLightUrl)??(t===`dark`?e?.logoLightUrl:e?.logoDarkUrl)??null}function rfe(e){let t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?`?`:t.length===1?t[0].slice(0,2).toUpperCase():(t[0][0]+t[1][0]).toUpperCase()}function MO({className:e}){return(0,I.jsxs)(`svg`,{className:e,viewBox:`0 0 64 64`,fill:`none`,"aria-hidden":`true`,children:[(0,I.jsx)(`path`,{d:`M25 15H15V49H25`,stroke:`currentColor`,strokeWidth:`6.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,I.jsx)(`path`,{d:`M39 15H49V49H39`,stroke:`currentColor`,strokeWidth:`6.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,I.jsx)(`polyline`,{points:`20 33 26 33 29 25 33 41 37 29 41 33 44 33`,stroke:`currentColor`,strokeWidth:`3.4`,strokeLinecap:`round`,strokeLinejoin:`round`})]})}var ife={},NO=[`fr`,`en`],afe=`PARAGLIDE_LOCALE`,PO=[`localStorage`,`baseLocale`],FO=[],IO,LO;function ofe(e){if(FO.length===0)return;let t=typeof e==`string`?e:e.href;if(IO===t)return LO;let n=new URL(t,`http://dummy.com`),r;for(let e of FO)if(new ife(e.match,n.href).exec(n.href)){r=e;break}return IO=t,LO=r,r}function RO(e){let t=ofe(e);return t&&t.exclude!==!0&&Array.isArray(t.strategy)?t.strategy:PO}var zO=void 0;globalThis.__paraglide=globalThis.__paraglide??{},globalThis.__paraglide.ssr=globalThis.__paraglide.ssr??{};var BO=!1,q=()=>{if(zO){let e=zO?.getStore()?.locale;if(e)return e}let e=PO;typeof window<`u`&&window.location?.href&&(e=RO(window.location.href));let t=sfe(e,typeof window<`u`?window.location?.href:void 0);if(t)return BO||(BO=!0,VO(t,{reload:!1})),t;throw Error(`No locale found. Read the docs https://inlang.com/m/gerre34r/library-inlang-paraglideJs/errors#no-locale-found`)};function sfe(e,t){let n;for(let t of e){if(t===`baseLocale`)n=`fr`;else if(t===`localStorage`)n=localStorage.getItem(`PARAGLIDE_LOCALE`)??void 0;else if(WO(t)&&UO.has(t)){let e=UO.get(t);if(e){let t=e.getLocale();if(t instanceof Promise)continue;if(t!==void 0)return lfe(t)}}let e=HO(n);if(e)return e}}var cfe=e=>{e?window.location.href=e:window.location.reload()},VO=(e,t)=>{let n={reload:!0,...t},r;try{r=q()}catch{}let i=[],a=PO;typeof window<`u`&&window.location?.href&&(a=RO(window.location.href));for(let t of a)if(t===`baseLocale`)continue;else if(t===`localStorage`&&typeof window<`u`)localStorage.setItem(afe,e);else if(WO(t)&&UO.has(t)){let n=UO.get(t);if(n){let r=n.setLocale(e);r instanceof Promise&&(r=r.catch(e=>{throw Error(`Custom strategy "${t}" setLocale failed.`,{cause:e})}),i.push(r))}}let o=()=>{n.reload&&window.location&&e!==r&&cfe(void 0)};if(i.length)return Promise.all(i).then(()=>{o()});o()};function HO(e){if(typeof e!=`string`)return;let t=e.toLowerCase();for(let e of NO)if(e.toLowerCase()===t)return e}function lfe(e){let t=HO(e);if(t)return t;throw Error(`Invalid locale: ${e}. Expected one of: ${NO.join(`, `)}`)}var UO=new Map;function WO(e){return typeof e==`string`&&/^custom-[A-Za-z0-9_-]+$/.test(e)}var ufe=e=>`Fichier trop volumineux (${e?.size} Mo, max ${e?.max} Mo). Réduisez-le (p. ex. compressez les images) et réessayez.`,dfe=e=>`File too large (${e?.size} MB, max ${e?.max} MB). Reduce it (e.g. compress images) and try again.`,ffe=((e,t={})=>(t.locale??q())===`fr`?ufe(e):dfe(e)),pfe=()=>`Chargement…`,GO=()=>`Loading…`,KO=((e={},t={})=>(t.locale??q())===`fr`?pfe(e):GO(e)),qO=()=>`Thème`,JO=()=>`Theme`,YO=((e={},t={})=>(t.locale??q())===`fr`?qO(e):JO(e)),XO=()=>`Clair`,ZO=()=>`Light`,QO=((e={},t={})=>(t.locale??q())===`fr`?XO(e):ZO(e)),$O=()=>`Sombre`,ek=()=>`Dark`,tk=((e={},t={})=>(t.locale??q())===`fr`?$O(e):ek(e)),nk=()=>`Système`,rk=()=>`System`,ik=((e={},t={})=>(t.locale??q())===`fr`?nk(e):rk(e)),ak=()=>`Défaut de l’app`,ok=()=>`App default`,sk=((e={},t={})=>(t.locale??q())===`fr`?ak(e):ok(e)),ck=()=>`Se déconnecter`,lk=()=>`Sign out`,uk=((e={},t={})=>(t.locale??q())===`fr`?ck(e):lk(e)),dk=()=>`Préférences`,fk=()=>`Preferences`,pk=((e={},t={})=>(t.locale??q())===`fr`?dk(e):fk(e)),mk=()=>`Nom affiché`,hk=()=>`Display name`,gk=((e={},t={})=>(t.locale??q())===`fr`?mk(e):hk(e)),_k=()=>`Le nom et prénom affichés dans la liste des utilisateurs et le menu de compte. Vous pouvez le modifier à tout moment.`,vk=()=>`The name shown in the user list and the account menu. You can change it at any time.`,yk=((e={},t={})=>(t.locale??q())===`fr`?_k(e):vk(e)),bk=()=>`Votre nom et prénom`,xk=()=>`Your name`,Sk=((e={},t={})=>(t.locale??q())===`fr`?bk(e):xk(e)),Ck=()=>`Laissez vide pour n’afficher que votre email.`,wk=()=>`Leave empty to show only your email.`,Tk=((e={},t={})=>(t.locale??q())===`fr`?Ck(e):wk(e)),Ek=()=>`Nom affiché mis à jour.`,Dk=()=>`Display name updated.`,Ok=((e={},t={})=>(t.locale??q())===`fr`?Ek(e):Dk(e)),kk=()=>`Échec de la mise à jour du nom`,Ak=()=>`Failed to update the name`,jk=((e={},t={})=>(t.locale??q())===`fr`?kk(e):Ak(e)),Mk=()=>`Langue`,Nk=()=>`Language`,Pk=((e={},t={})=>(t.locale??q())===`fr`?Mk(e):Nk(e)),Fk=()=>`Choisissez la langue de l’interface. « Défaut de l’app » suit le réglage de l’administrateur.`,Ik=()=>`Choose the interface language. “App default” follows the administrator setting.`,Lk=((e={},t={})=>(t.locale??q())===`fr`?Fk(e):Ik(e)),Rk=()=>`Le changement de langue recharge la page une fois.`,zk=()=>`Changing the language reloads the page once.`,Bk=((e={},t={})=>(t.locale??q())===`fr`?Rk(e):zk(e)),Vk=()=>`Interface`,Hk=()=>`Interface`,Uk=((e={},t={})=>(t.locale??q())===`fr`?Vk(e):Hk(e)),Wk=()=>`Activez ou masquez des éléments d’interface. Les options grisées sont verrouillées par l’administrateur.`,Gk=()=>`Enable or hide interface elements. Greyed options are locked by the administrator.`,Kk=((e={},t={})=>(t.locale??q())===`fr`?Wk(e):Gk(e)),qk=()=>`Français`,Jk=()=>`French`,Yk=((e={},t={})=>(t.locale??q())===`fr`?qk(e):Jk(e)),Xk=()=>`Anglais`,Zk=()=>`English`,Qk=((e={},t={})=>(t.locale??q())===`fr`?Xk(e):Zk(e)),$k=()=>`Fichiers`,eA=()=>`Files`,tA=((e={},t={})=>(t.locale??q())===`fr`?$k(e):eA(e)),nA=()=>`Tous les fichiers échangés dans vos conversations (envoyés et reçus).`,rA=()=>`Every file exchanged across your conversations (sent and received).`,iA=((e={},t={})=>(t.locale??q())===`fr`?nA(e):rA(e)),aA=()=>`Sens`,oA=()=>`Direction`,sA=((e={},t={})=>(t.locale??q())===`fr`?aA(e):oA(e)),cA=()=>`Tous les sens`,lA=()=>`All directions`,uA=((e={},t={})=>(t.locale??q())===`fr`?cA(e):lA(e)),dA=()=>`Envoyé`,fA=()=>`Sent`,pA=((e={},t={})=>(t.locale??q())===`fr`?dA(e):fA(e)),mA=()=>`Reçu`,hA=()=>`Received`,gA=((e={},t={})=>(t.locale??q())===`fr`?mA(e):hA(e)),_A=()=>`Conversation`,vA=()=>`Conversation`,yA=((e={},t={})=>(t.locale??q())===`fr`?_A(e):vA(e)),bA=()=>`Toutes les conversations`,xA=()=>`All conversations`,SA=((e={},t={})=>(t.locale??q())===`fr`?bA(e):xA(e)),CA=()=>`Bridge`,wA=()=>`Bridge`,TA=((e={},t={})=>(t.locale??q())===`fr`?CA(e):wA(e)),EA=()=>`Tous les bridges`,DA=()=>`All bridges`,OA=((e={},t={})=>(t.locale??q())===`fr`?EA(e):DA(e)),kA=()=>`Type`,AA=()=>`Type`,jA=((e={},t={})=>(t.locale??q())===`fr`?kA(e):AA(e)),MA=()=>`Tous les types`,NA=()=>`All types`,PA=((e={},t={})=>(t.locale??q())===`fr`?MA(e):NA(e)),FA=()=>`Image`,IA=()=>`Image`,LA=((e={},t={})=>(t.locale??q())===`fr`?FA(e):IA(e)),RA=()=>`Audio`,zA=()=>`Audio`,BA=((e={},t={})=>(t.locale??q())===`fr`?RA(e):zA(e)),VA=()=>`Vidéo`,HA=()=>`Video`,UA=((e={},t={})=>(t.locale??q())===`fr`?VA(e):HA(e)),WA=()=>`PDF`,GA=()=>`PDF`,KA=((e={},t={})=>(t.locale??q())===`fr`?WA(e):GA(e)),qA=()=>`Document`,JA=()=>`Document`,YA=((e={},t={})=>(t.locale??q())===`fr`?qA(e):JA(e)),XA=()=>`Archive`,ZA=()=>`Archive`,QA=((e={},t={})=>(t.locale??q())===`fr`?XA(e):ZA(e)),$A=()=>`Autre`,ej=()=>`Other`,tj=((e={},t={})=>(t.locale??q())===`fr`?$A(e):ej(e)),nj=()=>`Nom`,rj=()=>`Name`,ij=((e={},t={})=>(t.locale??q())===`fr`?nj(e):rj(e)),aj=()=>`Type`,oj=()=>`Type`,sj=((e={},t={})=>(t.locale??q())===`fr`?aj(e):oj(e)),cj=()=>`Sens`,lj=()=>`Direction`,uj=((e={},t={})=>(t.locale??q())===`fr`?cj(e):lj(e)),dj=()=>`Conversation`,fj=()=>`Conversation`,pj=((e={},t={})=>(t.locale??q())===`fr`?dj(e):fj(e)),mj=()=>`Date`,hj=()=>`Date`,gj=((e={},t={})=>(t.locale??q())===`fr`?mj(e):hj(e)),_j=()=>`Action`,vj=()=>`Action`,yj=((e={},t={})=>(t.locale??q())===`fr`?_j(e):vj(e)),bj=()=>`Télécharger`,xj=()=>`Download`,Sj=((e={},t={})=>(t.locale??q())===`fr`?bj(e):xj(e)),Cj=()=>`Réinitialiser`,wj=()=>`Reset`,Tj=((e={},t={})=>(t.locale??q())===`fr`?Cj(e):wj(e)),Ej=()=>`Actions`,Dj=()=>`Actions`,Oj=((e={},t={})=>(t.locale??q())===`fr`?Ej(e):Dj(e)),kj=()=>`Supprimer`,Aj=()=>`Delete`,jj=((e={},t={})=>(t.locale??q())===`fr`?kj(e):Aj(e)),Mj=()=>`Fichier supprimé`,Nj=()=>`File removed`,Pj=((e={},t={})=>(t.locale??q())===`fr`?Mj(e):Nj(e)),Fj=()=>`Échec de la suppression du fichier`,Ij=()=>`Could not remove the file`,Lj=((e={},t={})=>(t.locale??q())===`fr`?Fj(e):Ij(e)),Rj=()=>`Supprimer ce fichier ?`,zj=()=>`Remove this file?`,Bj=((e={},t={})=>(t.locale??q())===`fr`?Rj(e):zj(e)),Vj=()=>`Il sera retiré de vos fichiers. La conversation où il a été échangé n'est pas modifiée.`,Hj=()=>`It will be removed from your files. The conversation where it was exchanged is unchanged.`,Uj=((e={},t={})=>(t.locale??q())===`fr`?Vj(e):Hj(e)),Wj=()=>`Indisponible`,Gj=()=>`Unavailable`,Kj=((e={},t={})=>(t.locale??q())===`fr`?Wj(e):Gj(e)),qj=()=>`Aucun fichier pour le moment.`,Jj=()=>`No files yet.`,Yj=((e={},t={})=>(t.locale??q())===`fr`?qj(e):Jj(e)),Xj=()=>`Aucun fichier ne correspond aux filtres.`,Zj=()=>`No files match the filters.`,Qj=((e={},t={})=>(t.locale??q())===`fr`?Xj(e):Zj(e)),$j=e=>`Affichage des ${e?.cap} fichiers les plus récents.`,eM=e=>`Showing the ${e?.cap} most recent files.`,tM=((e,t={})=>(t.locale??q())===`fr`?$j(e):eM(e)),nM=()=>`Apparence`,rM=()=>`Appearance`,iM=((e={},t={})=>(t.locale??q())===`fr`?nM(e):rM(e)),aM=()=>`Thème par défaut de l’application`,oM=()=>`Default app theme`,sM=((e={},t={})=>(t.locale??q())===`fr`?aM(e):oM(e)),cM=()=>`Appliqué aux utilisateurs sans préférence personnelle.`,lM=()=>`Applied to users without a personal preference.`,uM=((e={},t={})=>(t.locale??q())===`fr`?cM(e):lM(e)),dM=()=>`Langue par défaut de l’application`,fM=()=>`Default app language`,pM=((e={},t={})=>(t.locale??q())===`fr`?dM(e):fM(e)),mM=()=>`Langue des nouveaux utilisateurs qui n’ont pas encore choisi la leur.`,hM=()=>`Language for new users who haven’t picked their own yet.`,gM=((e={},t={})=>(t.locale??q())===`fr`?mM(e):hM(e)),_M=()=>`Si vous n’avez pas défini votre propre langue, changer ce défaut rechargera votre vue.`,vM=()=>`If you haven’t set your own language, changing this default will reload your view.`,yM=((e={},t={})=>(t.locale??q())===`fr`?_M(e):vM(e)),bM=()=>`Référence des composants (design)`,xM=()=>`Component reference (design)`,SM=((e={},t={})=>(t.locale??q())===`fr`?bM(e):xM(e)),CM=()=>`Administration de l’apparence`,wM=()=>`Appearance administration`,TM=((e={},t={})=>(t.locale??q())===`fr`?CM(e):wM(e)),EM=()=>`Réservé aux administrateurs. S’applique à toute l’organisation.`,DM=()=>`Admins only. Applies to the whole organization.`,OM=((e={},t={})=>(t.locale??q())===`fr`?EM(e):DM(e)),kM=()=>`Ma charte graphique`,AM=()=>`My graphic chart`,jM=((e={},t={})=>(t.locale??q())===`fr`?kM(e):AM(e)),MM=()=>`Choisissez la palette appliquée à votre interface, en clair comme en sombre.`,NM=()=>`Pick the palette applied to your interface, in light and dark.`,PM=((e={},t={})=>(t.locale??q())===`fr`?MM(e):NM(e)),FM=()=>`Défaut de l’application`,IM=()=>`Application default`,LM=((e={},t={})=>(t.locale??q())===`fr`?FM(e):IM(e)),RM=()=>`Suit le défaut de l’application.`,zM=()=>`Follows the application default.`,BM=((e={},t={})=>(t.locale??q())===`fr`?RM(e):zM(e)),VM=()=>`Commune`,HM=()=>`Common`,UM=((e={},t={})=>(t.locale??q())===`fr`?VM(e):HM(e)),WM=()=>`La vôtre`,GM=()=>`Yours`,KM=((e={},t={})=>(t.locale??q())===`fr`?WM(e):GM(e)),qM=e=>`Via le groupe ${e?.group}`,JM=e=>`Via group ${e?.group}`,YM=((e,t={})=>(t.locale??q())===`fr`?qM(e):JM(e)),XM=()=>`Aucune charte disponible pour le moment.`,ZM=()=>`No chart available yet.`,QM=((e={},t={})=>(t.locale??q())===`fr`?XM(e):ZM(e)),$M=()=>`Charte par défaut de l’application`,eN=()=>`Application default chart`,tN=((e={},t={})=>(t.locale??q())===`fr`?$M(e):eN(e)),nN=()=>`Appliquée aux utilisateurs sans charte personnelle.`,rN=()=>`Applied to users without a personal chart.`,iN=((e={},t={})=>(t.locale??q())===`fr`?nN(e):rN(e)),aN=()=>`Pools de chartes par groupe`,oN=()=>`Group chart pools`,sN=((e={},t={})=>(t.locale??q())===`fr`?aN(e):oN(e)),cN=()=>`Définissez le pool de chaque charte : les groupes qui PEUVENT la proposer. Un gestionnaire de groupe choisit ensuite dans son pool (onglet Groupes). Une charte reste commune tant qu’aucun groupe ne l’a sélectionnée.`,lN=()=>`Define each chart's pool: the groups that MAY offer it. A group manager then selects from its pool (Groups tab). A chart stays common until a group actually selects it.`,uN=((e={},t={})=>(t.locale??q())===`fr`?cN(e):lN(e)),dN=()=>`Charte par domaine`,fN=()=>`Chart by domain`,pN=((e={},t={})=>(t.locale??q())===`fr`?dN(e):fN(e)),mN=()=>`Associez un domaine à une charte publique (intégrée ou commune) : elle devient la charte par défaut sur cet hôte, page de connexion comprise.`,hN=()=>`Map a domain to a public chart (builtin or common): it becomes the default chart on that host, including the login page.`,gN=((e={},t={})=>(t.locale??q())===`fr`?mN(e):hN(e)),_N=()=>`Commune`,vN=()=>`Common`,yN=((e={},t={})=>(t.locale??q())===`fr`?_N(e):vN(e)),bN=()=>`Restreinte`,xN=()=>`Restricted`,SN=((e={},t={})=>(t.locale??q())===`fr`?bN(e):xN(e)),CN=()=>`Défaut`,wN=()=>`Default`,TN=((e={},t={})=>(t.locale??q())===`fr`?CN(e):wN(e)),EN=()=>`Aucun groupe à associer.`,DN=()=>`No group to attach.`,ON=((e={},t={})=>(t.locale??q())===`fr`?EN(e):DN(e)),kN=()=>`Disponible aux groupes (pool)`,AN=()=>`Available to groups (pool)`,jN=((e={},t={})=>(t.locale??q())===`fr`?kN(e):AN(e)),MN=()=>`Ajouter au pool d'un groupe…`,NN=()=>`Add to a group's pool…`,PN=((e={},t={})=>(t.locale??q())===`fr`?MN(e):NN(e)),FN=e=>`Retirer ${e?.group} du pool`,IN=e=>`Remove ${e?.group} from the pool`,LN=((e,t={})=>(t.locale??q())===`fr`?FN(e):IN(e)),RN=()=>`Importer une charte`,zN=()=>`Import a chart`,BN=((e={},t={})=>(t.locale??q())===`fr`?RN(e):zN(e)),VN=()=>`Collez le JSON d’une charte (ou choisissez un fichier .json) pour créer votre charte personnelle. Les couleurs doivent être au format oklch ; les valeurs sont validées et nettoyées côté serveur.`,HN=()=>`Paste a chart's JSON (or pick a .json file) to create your personal chart. Colors must be in oklch format; values are validated and sanitized server-side.`,UN=((e={},t={})=>(t.locale??q())===`fr`?VN(e):HN(e)),WN=()=>`Nom de la charte`,GN=()=>`Chart name`,KN=((e={},t={})=>(t.locale??q())===`fr`?WN(e):GN(e)),qN=()=>`Ma charte`,JN=()=>`My chart`,YN=((e={},t={})=>(t.locale??q())===`fr`?qN(e):JN(e)),XN=()=>`JSON des tokens`,ZN=()=>`Tokens JSON`,QN=((e={},t={})=>(t.locale??q())===`fr`?XN(e):ZN(e)),$N=()=>`Collez ici le JSON des tokens (colors.light / colors.dark en oklch, radius, fontSans, fontMono)…`,eP=()=>`Paste the tokens JSON here (colors.light / colors.dark in oklch, radius, fontSans, fontMono)…`,tP=((e={},t={})=>(t.locale??q())===`fr`?$N(e):eP(e)),nP=()=>`Charger un fichier .json`,rP=()=>`Load a .json file`,iP=((e={},t={})=>(t.locale??q())===`fr`?nP(e):rP(e)),aP=()=>`Importer`,oP=()=>`Import`,sP=((e={},t={})=>(t.locale??q())===`fr`?aP(e):oP(e)),cP=()=>`JSON invalide : impossible d’analyser le contenu.`,lP=()=>`Invalid JSON: could not parse the content.`,uP=((e={},t={})=>(t.locale??q())===`fr`?cP(e):lP(e)),dP=()=>`Charte importée.`,fP=()=>`Chart imported.`,pP=((e={},t={})=>(t.locale??q())===`fr`?dP(e):fP(e)),mP=()=>`Indiquez un nom de charte.`,hP=()=>`Please provide a chart name.`,gP=((e={},t={})=>(t.locale??q())===`fr`?mP(e):hP(e)),_P=()=>`Mes chartes`,vP=()=>`My charts`,yP=((e={},t={})=>(t.locale??q())===`fr`?_P(e):vP(e)),bP=()=>`Les chartes que vous avez importées. Vous pouvez les renommer, modifier leurs tokens, les associer à vos groupes ou les supprimer.`,xP=()=>`The charts you have imported. You can rename them, edit their tokens, associate them with your groups, or delete them.`,SP=((e={},t={})=>(t.locale??q())===`fr`?bP(e):xP(e)),CP=()=>`Vous n’avez pas encore importé de charte.`,wP=()=>`You haven't imported any chart yet.`,TP=((e={},t={})=>(t.locale??q())===`fr`?CP(e):wP(e)),EP=()=>`Modifier`,DP=()=>`Edit`,OP=((e={},t={})=>(t.locale??q())===`fr`?EP(e):DP(e)),kP=()=>`Supprimer`,AP=()=>`Delete`,jP=((e={},t={})=>(t.locale??q())===`fr`?kP(e):AP(e)),MP=()=>`Logo de marque`,NP=()=>`Brand logo`,PP=((e={},t={})=>(t.locale??q())===`fr`?MP(e):NP(e)),FP=()=>`Mode clair`,IP=()=>`Light mode`,LP=((e={},t={})=>(t.locale??q())===`fr`?FP(e):IP(e)),RP=()=>`Mode sombre`,zP=()=>`Dark mode`,BP=((e={},t={})=>(t.locale??q())===`fr`?RP(e):zP(e)),VP=()=>`Téléverser`,HP=()=>`Upload`,UP=((e={},t={})=>(t.locale??q())===`fr`?VP(e):HP(e)),WP=()=>`Remplacer`,GP=()=>`Replace`,KP=((e={},t={})=>(t.locale??q())===`fr`?WP(e):GP(e)),qP=()=>`Retirer`,JP=()=>`Remove`,YP=((e={},t={})=>(t.locale??q())===`fr`?qP(e):JP(e)),XP=()=>`Générer depuis l’autre mode`,ZP=()=>`Generate from the other mode`,QP=((e={},t={})=>(t.locale??q())===`fr`?XP(e):ZP(e)),$P=()=>`Traitement…`,eF=()=>`Processing…`,tF=((e={},t={})=>(t.locale??q())===`fr`?$P(e):eF(e)),nF=()=>`Le fichier doit être une image.`,rF=()=>`The file must be an image.`,iF=((e={},t={})=>(t.locale??q())===`fr`?nF(e):rF(e)),aF=()=>`Image trop volumineuse (max 12 Mo).`,oF=()=>`Image too large (max 12 MB).`,sF=((e={},t={})=>(t.locale??q())===`fr`?aF(e):oF(e)),cF=()=>`Format d’image non pris en charge.`,lF=()=>`Unsupported image format.`,uF=((e={},t={})=>(t.locale??q())===`fr`?cF(e):lF(e)),dF=()=>`Traitement de l’image impossible.`,fF=()=>`Could not process the image.`,pF=((e={},t={})=>(t.locale??q())===`fr`?dF(e):fF(e)),mF=()=>`Encodage de l’image impossible.`,hF=()=>`Could not encode the image.`,gF=((e={},t={})=>(t.locale??q())===`fr`?mF(e):hF(e)),_F=()=>`Domaines (admin)`,vF=()=>`Domains (admin)`,yF=((e={},t={})=>(t.locale??q())===`fr`?_F(e):vF(e)),bF=()=>`Quand Atrium est ouvert sur ce domaine, cette charte s’applique par défaut (page de connexion incluse). Ex. chat.acme.com ou *.acme.com.`,xF=()=>`When Atrium is opened on this domain, this chart applies by default (including the login page). E.g. chat.acme.com or *.acme.com.`,SF=((e={},t={})=>(t.locale??q())===`fr`?bF(e):xF(e)),CF=()=>`chat.acme.com ou *.acme.com`,wF=()=>`chat.acme.com or *.acme.com`,TF=((e={},t={})=>(t.locale??q())===`fr`?CF(e):wF(e)),EF=()=>`Ajouter`,DF=()=>`Add`,OF=((e={},t={})=>(t.locale??q())===`fr`?EF(e):DF(e)),kF=()=>`Aucun domaine.`,AF=()=>`No domain.`,jF=((e={},t={})=>(t.locale??q())===`fr`?kF(e):AF(e)),MF=e=>`Retirer ${e?.domain}`,NF=e=>`Remove ${e?.domain}`,PF=((e,t={})=>(t.locale??q())===`fr`?MF(e):NF(e)),FF=()=>`Enregistrer`,IF=()=>`Save`,LF=((e={},t={})=>(t.locale??q())===`fr`?FF(e):IF(e)),RF=()=>`Annuler`,zF=()=>`Cancel`,BF=((e={},t={})=>(t.locale??q())===`fr`?RF(e):zF(e)),VF=()=>`Nom`,HF=()=>`Name`,UF=((e={},t={})=>(t.locale??q())===`fr`?VF(e):HF(e)),WF=()=>`Tokens (JSON)`,GF=()=>`Tokens (JSON)`,KF=((e={},t={})=>(t.locale??q())===`fr`?WF(e):GF(e)),qF=()=>`Supprimer définitivement cette charte ?`,JF=()=>`Permanently delete this chart?`,YF=((e={},t={})=>(t.locale??q())===`fr`?qF(e):JF(e)),XF=()=>`Chartes personnalisées`,ZF=()=>`Custom charts`,QF=((e={},t={})=>(t.locale??q())===`fr`?XF(e):ZF(e)),$F=()=>`Gérez les chartes importées par les utilisateurs : promouvoir en commune (offerte à tous) ou supprimer.`,eI=()=>`Manage charts imported by users: promote to common (offered to everyone) or delete.`,tI=((e={},t={})=>(t.locale??q())===`fr`?$F(e):eI(e)),nI=e=>`Propriétaire : ${e?.owner}`,rI=e=>`Owner: ${e?.owner}`,iI=((e,t={})=>(t.locale??q())===`fr`?nI(e):rI(e)),aI=()=>`Personnelle`,oI=()=>`Personal`,sI=((e={},t={})=>(t.locale??q())===`fr`?aI(e):oI(e)),cI=()=>`Commune`,lI=()=>`Common`,uI=((e={},t={})=>(t.locale??q())===`fr`?cI(e):lI(e)),dI=()=>`Promouvoir en commune`,fI=()=>`Promote to common`,pI=((e={},t={})=>(t.locale??q())===`fr`?dI(e):fI(e)),mI=()=>`Supprimer`,hI=()=>`Delete`,gI=((e={},t={})=>(t.locale??q())===`fr`?mI(e):hI(e)),_I=()=>`Aucune charte personnalisée pour le moment.`,vI=()=>`No custom chart yet.`,yI=((e={},t={})=>(t.locale??q())===`fr`?_I(e):vI(e)),bI=()=>`Messages`,xI=()=>`Messages`,SI=((e={},t={})=>(t.locale??q())===`fr`?bI(e):xI(e)),CI=()=>`Composeur`,wI=()=>`Composer`,TI=((e={},t={})=>(t.locale??q())===`fr`?CI(e):wI(e)),EI=()=>`Barre latérale`,DI=()=>`Sidebar`,OI=((e={},t={})=>(t.locale??q())===`fr`?EI(e):DI(e)),kI=()=>`Autre`,AI=()=>`Other`,jI=((e={},t={})=>(t.locale??q())===`fr`?kI(e):AI(e)),MI=()=>`Vue source des messages`,NI=()=>`Message source view`,PI=((e={},t={})=>(t.locale??q())===`fr`?MI(e):NI(e)),FI=()=>`Le bouton </> qui montre le texte brut exact d’un message.`,II=()=>`The </> button that shows a message’s exact raw text.`,LI=((e={},t={})=>(t.locale??q())===`fr`?FI(e):II(e)),RI=()=>`Signaler un problème`,zI=()=>`Report a problem`,BI=((e={},t={})=>(t.locale??q())===`fr`?RI(e):zI(e)),VI=()=>`Le drapeau qui envoie un signalement (feedback) sur un message.`,HI=()=>`The flag that sends feedback about a message.`,UI=((e={},t={})=>(t.locale??q())===`fr`?VI(e):HI(e)),WI=()=>`Copier les réponses de l’IA`,GI=()=>`Copy AI replies`,KI=((e={},t={})=>(t.locale??q())===`fr`?WI(e):GI(e)),qI=()=>`Copier vos messages`,JI=()=>`Copy your messages`,YI=((e={},t={})=>(t.locale??q())===`fr`?qI(e):JI(e)),XI=()=>`Supprimer un message`,ZI=()=>`Delete a message`,QI=((e={},t={})=>(t.locale??q())===`fr`?XI(e):ZI(e)),$I=()=>`Activité des outils`,eL=()=>`Tool activity`,tL=((e={},t={})=>(t.locale??q())===`fr`?$I(e):eL(e)),nL=()=>`Affiche l’activité des outils et les sources dans la conversation (vue d’analyse, avec détail dépliable). Désactivé : vue épurée centrée sur le contenu — le signal « traitement en cours » reste visible.`,rL=()=>`Shows tool activity and sources in the conversation (analysis view, with expandable detail). Off: a clean, content-focused view — the “processing in progress” signal stays visible.`,iL=((e={},t={})=>(t.locale??q())===`fr`?nL(e):rL(e)),aL=()=>`Saisie vocale (micro)`,oL=()=>`Voice input (mic)`,sL=((e={},t={})=>(t.locale??q())===`fr`?aL(e):oL(e)),cL=()=>`Le bouton micro dans le composeur.`,lL=()=>`The mic button in the composer.`,uL=((e={},t={})=>(t.locale??q())===`fr`?cL(e):lL(e)),dL=()=>`Âge des conversations`,fL=()=>`Conversation age`,pL=((e={},t={})=>(t.locale??q())===`fr`?dL(e):fL(e)),mL=()=>`Afficher l’ancienneté de chaque conversation (ex. « 3j », « 2sem ») dans la liste à gauche.`,hL=()=>`Show each conversation’s age (e.g. “3d”, “2w”) in the left list.`,gL=((e={},t={})=>(t.locale??q())===`fr`?mL(e):hL(e)),_L=()=>`Bridge des conversations`,vL=()=>`Conversation bridge`,yL=((e={},t={})=>(t.locale??q())===`fr`?_L(e):vL(e)),bL=()=>`Marquer le bridge (OpenClaw / Hermes) de chaque conversation dans la liste à gauche. Apparaît uniquement si vos conversations utilisent plusieurs bridges.`,xL=()=>`Tag each conversation’s bridge (OpenClaw / Hermes) in the left list. Shown only if your conversations use more than one bridge.`,SL=((e={},t={})=>(t.locale??q())===`fr`?bL(e):xL(e)),CL=()=>`Filtrer les préférences…`,wL=()=>`Filter preferences…`,TL=((e={},t={})=>(t.locale??q())===`fr`?CL(e):wL(e)),EL=()=>`Aucune préférence ne correspond.`,DL=()=>`No preference matches.`,OL=((e={},t={})=>(t.locale??q())===`fr`?EL(e):DL(e)),kL=()=>`Non activé`,AL=()=>`Not enabled`,jL=((e={},t={})=>(t.locale??q())===`fr`?kL(e):AL(e)),ML=()=>`défaut`,NL=()=>`default`,PL=((e={},t={})=>(t.locale??q())===`fr`?ML(e):NL(e)),FL=()=>`Réinitialiser`,IL=()=>`Reset`,LL=((e={},t={})=>(t.locale??q())===`fr`?FL(e):IL(e)),RL=()=>`Gérer les défauts et verrous`,zL=()=>`Manage defaults and locks`,BL=((e={},t={})=>(t.locale??q())===`fr`?RL(e):zL(e)),VL=()=>`Défaut admin`,HL=()=>`Admin default`,UL=((e={},t={})=>(t.locale??q())===`fr`?VL(e):HL(e)),WL=()=>`Fonctionnalité activée (système)`,GL=()=>`Feature enabled (system)`,KL=((e={},t={})=>(t.locale??q())===`fr`?WL(e):GL(e)),qL=()=>`Configurez l’interface : activez les fonctionnalités système et définissez les valeurs par défaut héritées par les utilisateurs (chacun peut ensuite les redéfinir dans ses propres préférences).`,JL=()=>`Configure the interface: enable system features and set the defaults users inherit (each can then override them in their own preferences).`,YL=((e={},t={})=>(t.locale??q())===`fr`?qL(e):JL(e)),XL=()=>`Une fonctionnalité non activée ici ne peut pas être activée par les utilisateurs (option grisée).`,ZL=()=>`A feature not enabled here cannot be turned on by users (greyed out).`,QL=((e={},t={})=>(t.locale??q())===`fr`?XL(e):ZL(e)),$L=()=>`Active le pipeline vocal. Tant que c’est désactivé, l’option reste grisée et non activable par les utilisateurs.`,eR=()=>`Enables the voice pipeline. While off, the option stays greyed and users can’t turn it on.`,tR=((e={},t={})=>(t.locale??q())===`fr`?$L(e):eR(e)),nR=()=>`« Hérité » = la valeur intégrée par défaut de l’application.`,rR=()=>`“Inherited” = the app’s built-in default value.`,iR=((e={},t={})=>(t.locale??q())===`fr`?nR(e):rR(e)),aR=()=>`Activé`,oR=()=>`On`,sR=((e={},t={})=>(t.locale??q())===`fr`?aR(e):oR(e)),cR=()=>`Désactivé`,lR=()=>`Off`,uR=((e={},t={})=>(t.locale??q())===`fr`?cR(e):lR(e)),dR=()=>`Hérité`,fR=()=>`Inherited`,pR=((e={},t={})=>(t.locale??q())===`fr`?dR(e):fR(e)),mR=()=>`Comptes de service pour les agents OpenClaw (auth par clé API). Le texte en clair d’une clé n’est affiché qu’une seule fois à sa création — il n’est jamais stocké ni récupérable ensuite.`,hR=()=>`Service accounts for OpenClaw agents (API key auth). A key's plaintext is shown only once at creation — it is never stored nor retrievable afterwards.`,gR=((e={},t={})=>(t.locale??q())===`fr`?mR(e):hR(e)),_R=()=>`Rechercher un compte`,vR=()=>`Search an account`,yR=((e={},t={})=>(t.locale??q())===`fr`?_R(e):vR(e)),bR=()=>`Rôle`,xR=()=>`Role`,SR=((e={},t={})=>(t.locale??q())===`fr`?bR(e):xR(e)),CR=()=>`Tous les rôles`,wR=()=>`All roles`,TR=((e={},t={})=>(t.locale??q())===`fr`?CR(e):wR(e)),ER=()=>`Tous les statuts`,DR=()=>`All statuses`,OR=((e={},t={})=>(t.locale??q())===`fr`?ER(e):DR(e)),kR=()=>`actif`,AR=()=>`active`,jR=((e={},t={})=>(t.locale??q())===`fr`?kR(e):AR(e)),MR=()=>`désactivé`,NR=()=>`disabled`,PR=((e={},t={})=>(t.locale??q())===`fr`?MR(e):NR(e)),FR=()=>`Comptes de service`,IR=()=>`Service accounts`,LR=((e={},t={})=>(t.locale??q())===`fr`?FR(e):IR(e)),RR=()=>`Ajouter un compte`,zR=()=>`Add an account`,BR=((e={},t={})=>(t.locale??q())===`fr`?RR(e):zR(e)),VR=()=>`Aucun compte de service.`,HR=()=>`No service account.`,UR=((e={},t={})=>(t.locale??q())===`fr`?VR(e):HR(e)),WR=()=>`Générer une clé API`,GR=()=>`Generate an API key`,KR=((e={},t={})=>(t.locale??q())===`fr`?WR(e):GR(e)),qR=()=>`Masquer les clés`,JR=()=>`Hide keys`,YR=((e={},t={})=>(t.locale??q())===`fr`?qR(e):JR(e)),XR=()=>`Afficher les clés`,ZR=()=>`Show keys`,QR=((e={},t={})=>(t.locale??q())===`fr`?XR(e):ZR(e)),$R=()=>`Modifier`,ez=()=>`Edit`,tz=((e={},t={})=>(t.locale??q())===`fr`?$R(e):ez(e)),nz=()=>`Supprimer le compte`,rz=()=>`Delete account`,iz=((e={},t={})=>(t.locale??q())===`fr`?nz(e):rz(e)),az=()=>`Replier`,oz=()=>`Collapse`,sz=((e={},t={})=>(t.locale??q())===`fr`?az(e):oz(e)),cz=()=>`Déplier`,lz=()=>`Expand`,uz=((e={},t={})=>(t.locale??q())===`fr`?cz(e):lz(e)),dz=()=>`Nom`,fz=()=>`Name`,pz=((e={},t={})=>(t.locale??q())===`fr`?dz(e):fz(e)),mz=()=>`Rôle`,hz=()=>`Role`,gz=((e={},t={})=>(t.locale??q())===`fr`?mz(e):hz(e)),_z=()=>`Statut`,vz=()=>`Status`,yz=((e={},t={})=>(t.locale??q())===`fr`?_z(e):vz(e)),bz=()=>`Expiration de la prochaine clé`,xz=()=>`Next key expiry`,Sz=((e={},t={})=>(t.locale??q())===`fr`?bz(e):xz(e)),Cz=()=>`Clés`,wz=()=>`Keys`,Tz=((e={},t={})=>(t.locale??q())===`fr`?Cz(e):wz(e)),Ez=()=>`génération…`,Dz=()=>`generating…`,Oz=((e={},t={})=>(t.locale??q())===`fr`?Ez(e):Dz(e)),kz=e=>`${e?.count} active(s)`,Az=e=>`${e?.count} active`,jz=((e,t={})=>(t.locale??q())===`fr`?kz(e):Az(e)),Mz=()=>`Modifier le compte de service`,Nz=()=>`Edit service account`,Pz=((e={},t={})=>(t.locale??q())===`fr`?Mz(e):Nz(e)),Fz=()=>`Modifier le nom, le rôle et la description.`,Iz=()=>`Update the name, role and description.`,Lz=((e={},t={})=>(t.locale??q())===`fr`?Fz(e):Iz(e)),Rz=()=>`Enregistrer`,zz=()=>`Save`,Bz=((e={},t={})=>(t.locale??q())===`fr`?Rz(e):zz(e)),Vz=()=>`Nouveau compte de service`,Hz=()=>`New service account`,Uz=((e={},t={})=>(t.locale??q())===`fr`?Vz(e):Hz(e)),Wz=()=>`Principal authentifié par clé API (jamais un humain).`,Gz=()=>`Principal authenticated by API key (never a human).`,Kz=((e={},t={})=>(t.locale??q())===`fr`?Wz(e):Gz(e)),qz=()=>`Ajouter`,Jz=()=>`Add`,Yz=((e={},t={})=>(t.locale??q())===`fr`?qz(e):Jz(e)),Xz=()=>`Nom`,Zz=()=>`Name`,Qz=((e={},t={})=>(t.locale??q())===`fr`?Xz(e):Zz(e)),$z=()=>`Rôle`,eB=()=>`Role`,tB=((e={},t={})=>(t.locale??q())===`fr`?$z(e):eB(e)),nB=()=>`Choisir un rôle`,rB=()=>`Choose a role`,iB=((e={},t={})=>(t.locale??q())===`fr`?nB(e):rB(e)),aB=()=>`Description (optionnel)`,oB=()=>`Description (optional)`,sB=((e={},t={})=>(t.locale??q())===`fr`?aB(e):oB(e)),cB=()=>`Échec de la création du compte`,lB=()=>`Failed to create the account`,uB=((e={},t={})=>(t.locale??q())===`fr`?cB(e):lB(e)),dB=()=>`Échec de la modification du compte`,fB=()=>`Failed to update the account`,pB=((e={},t={})=>(t.locale??q())===`fr`?dB(e):fB(e)),mB=()=>`Compte de service mis à jour.`,hB=()=>`Service account updated.`,gB=((e={},t={})=>(t.locale??q())===`fr`?mB(e):hB(e)),_B=()=>`Échec de la génération de la clé`,vB=()=>`Failed to generate the key`,yB=((e={},t={})=>(t.locale??q())===`fr`?_B(e):vB(e)),bB=()=>`Supprimer ce compte de service ?`,xB=()=>`Delete this service account?`,SB=((e={},t={})=>(t.locale??q())===`fr`?bB(e):xB(e)),CB=()=>`Le compte`,wB=()=>`The account`,TB=((e={},t={})=>(t.locale??q())===`fr`?CB(e):wB(e)),EB=()=>`et`,DB=()=>`and`,OB=((e={},t={})=>(t.locale??q())===`fr`?EB(e):DB(e)),kB=()=>`toutes ses clés API`,AB=()=>`all its API keys`,jB=((e={},t={})=>(t.locale??q())===`fr`?kB(e):AB(e)),MB=()=>`seront supprimés définitivement. Cette action est irréversible. Tapez le nom du compte pour confirmer.`,NB=()=>`will be permanently deleted. This action is irreversible. Type the account name to confirm.`,PB=((e={},t={})=>(t.locale??q())===`fr`?MB(e):NB(e)),FB=()=>`Supprimer`,IB=()=>`Delete`,LB=((e={},t={})=>(t.locale??q())===`fr`?FB(e):IB(e)),RB=()=>`Compte de service supprimé`,zB=()=>`Service account deleted`,BB=((e={},t={})=>(t.locale??q())===`fr`?RB(e):zB(e)),VB=()=>`Échec de la suppression du compte`,HB=()=>`Failed to delete the account`,UB=((e={},t={})=>(t.locale??q())===`fr`?VB(e):HB(e)),WB=()=>`Révoquer cette clé API ?`,GB=()=>`Revoke this API key?`,KB=((e={},t={})=>(t.locale??q())===`fr`?WB(e):GB(e)),qB=()=>`La clé`,JB=()=>`The key`,YB=((e={},t={})=>(t.locale??q())===`fr`?qB(e):JB(e)),XB=()=>`sera désactivée immédiatement et ne pourra plus authentifier de requêtes. Cette action est irréversible.`,ZB=()=>`will be disabled immediately and will no longer be able to authenticate requests. This action is irreversible.`,QB=((e={},t={})=>(t.locale??q())===`fr`?XB(e):ZB(e)),$B=()=>`Révoquer`,eV=()=>`Revoke`,tV=((e={},t={})=>(t.locale??q())===`fr`?$B(e):eV(e)),nV=()=>`Échec de la révocation`,rV=()=>`Failed to revoke`,iV=((e={},t={})=>(t.locale??q())===`fr`?nV(e):rV(e)),aV=()=>`Clés de`,oV=()=>`Keys of`,sV=((e={},t={})=>(t.locale??q())===`fr`?aV(e):oV(e)),cV=()=>`Aucune clé pour ce compte.`,lV=()=>`No key for this account.`,uV=((e={},t={})=>(t.locale??q())===`fr`?cV(e):lV(e)),dV=()=>`Clé`,fV=()=>`Key`,pV=((e={},t={})=>(t.locale??q())===`fr`?dV(e):fV(e)),mV=()=>`Rôle`,hV=()=>`Role`,gV=((e={},t={})=>(t.locale??q())===`fr`?mV(e):hV(e)),_V=()=>`Créée`,vV=()=>`Created`,yV=((e={},t={})=>(t.locale??q())===`fr`?_V(e):vV(e)),bV=()=>`Dernier usage`,xV=()=>`Last used`,SV=((e={},t={})=>(t.locale??q())===`fr`?bV(e):xV(e)),CV=()=>`Expiration`,wV=()=>`Expiry`,TV=((e={},t={})=>(t.locale??q())===`fr`?CV(e):wV(e)),EV=()=>`Statut`,DV=()=>`Status`,OV=((e={},t={})=>(t.locale??q())===`fr`?EV(e):DV(e)),kV=()=>`Révocation…`,AV=()=>`Revoking…`,jV=((e={},t={})=>(t.locale??q())===`fr`?kV(e):AV(e)),MV=()=>`Révoquer`,NV=()=>`Revoke`,PV=((e={},t={})=>(t.locale??q())===`fr`?MV(e):NV(e)),FV=()=>`Clé API créée`,IV=()=>`API key created`,LV=((e={},t={})=>(t.locale??q())===`fr`?FV(e):IV(e)),RV=e=>`Pour le compte « ${e?.name} ». Copiez-la maintenant.`,zV=e=>`For the account « ${e?.name} ». Copy it now.`,BV=((e,t={})=>(t.locale??q())===`fr`?RV(e):zV(e)),VV=()=>`Stockez cette clé en lieu sûr. Vous ne la reverrez plus jamais. Pour la remplacer, il faudra la révoquer et en générer une nouvelle.`,HV=()=>`Store this key in a safe place. You will never see it again. To replace it, you will have to revoke it and generate a new one.`,UV=((e={},t={})=>(t.locale??q())===`fr`?VV(e):HV(e)),WV=()=>`Copier la clé`,GV=()=>`Copy the key`,KV=((e={},t={})=>(t.locale??q())===`fr`?WV(e):GV(e)),qV=()=>`Copié`,JV=()=>`Copied`,YV=((e={},t={})=>(t.locale??q())===`fr`?qV(e):JV(e)),XV=()=>`Copier`,ZV=()=>`Copy`,QV=((e={},t={})=>(t.locale??q())===`fr`?XV(e):ZV(e)),$V=()=>`J’ai copié la clé`,eH=()=>`I have copied the key`,tH=((e={},t={})=>(t.locale??q())===`fr`?$V(e):eH(e)),nH=()=>`Jamais`,rH=()=>`Never`,iH=((e={},t={})=>(t.locale??q())===`fr`?nH(e):rH(e)),aH=()=>`30 jours`,oH=()=>`30 days`,sH=((e={},t={})=>(t.locale??q())===`fr`?aH(e):oH(e)),cH=()=>`90 jours`,lH=()=>`90 days`,uH=((e={},t={})=>(t.locale??q())===`fr`?cH(e):lH(e)),dH=()=>`Jamais`,fH=()=>`Never`,pH=((e={},t={})=>(t.locale??q())===`fr`?dH(e):fH(e)),mH=()=>`révoquée`,hH=()=>`revoked`,gH=((e={},t={})=>(t.locale??q())===`fr`?mH(e):hH(e)),_H=()=>`expirée`,vH=()=>`expired`,yH=((e={},t={})=>(t.locale??q())===`fr`?_H(e):vH(e)),bH=()=>`active`,xH=()=>`active`,SH=((e={},t={})=>(t.locale??q())===`fr`?bH(e):xH(e)),CH=()=>`Sélectionnez ou créez une conversation pour commencer.`,wH=()=>`Select or create a chat to begin.`,TH=((e={},t={})=>(t.locale??q())===`fr`?CH(e):wH(e)),EH=()=>`Conversation introuvable`,DH=()=>`Conversation not found`,OH=((e={},t={})=>(t.locale??q())===`fr`?EH(e):DH(e)),kH=()=>`Ce lien ne correspond à aucune conversation. Elle a peut-être été supprimée, ou l’adresse est incomplète.`,AH=()=>`This link does not match any conversation. It may have been deleted, or the address is incomplete.`,jH=((e={},t={})=>(t.locale??q())===`fr`?kH(e):AH(e)),MH=()=>`Nouvelle conversation`,NH=()=>`New conversation`,PH=((e={},t={})=>(t.locale??q())===`fr`?MH(e):NH(e)),FH=()=>`Derniers messages`,IH=()=>`Latest messages`,LH=((e={},t={})=>(t.locale??q())===`fr`?FH(e):IH(e)),RH=()=>`Le service de chat est momentanément indisponible. L’envoi de message est suspendu — réessayez dans un instant. Si cela persiste, contactez votre administrateur.`,zH=()=>`The chat service is temporarily unavailable. Sending messages is suspended — try again in a moment. If this persists, contact your administrator.`,BH=((e={},t={})=>(t.locale??q())===`fr`?RH(e):zH(e)),VH=()=>`Ce chat est en lecture seule : l’agent associé ne t’est plus disponible (ton accès aux agents a été modifié). Démarre un nouveau chat avec un agent disponible.`,HH=()=>`This chat is read-only: its agent is no longer available to you (your agent access was changed). Start a new chat with an available agent.`,UH=((e={},t={})=>(t.locale??q())===`fr`?VH(e):HH(e)),WH=()=>`Réponse reçue.`,GH=()=>`Reply received.`,KH=((e={},t={})=>(t.locale??q())===`fr`?WH(e):GH(e)),qH=()=>`Comment puis-je aider ?`,JH=()=>`How can I help?`,YH=((e={},t={})=>(t.locale??q())===`fr`?qH(e):JH(e)),XH=()=>`Conversation`,ZH=()=>`Conversation`,QH=((e={},t={})=>(t.locale??q())===`fr`?XH(e):ZH(e)),$H=e=>`Agent de cette conversation : ${e?.name}`,eU=e=>`Agent for this conversation: ${e?.name}`,tU=((e,t={})=>(t.locale??q())===`fr`?$H(e):eU(e)),nU=()=>` (agent par défaut)`,rU=()=>` (default agent)`,iU=((e={},t={})=>(t.locale??q())===`fr`?nU(e):rU(e)),aU=()=>` — cet agent n’existe plus sur la gateway`,oU=()=>` — this agent no longer exists on the gateway`,sU=((e={},t={})=>(t.locale??q())===`fr`?aU(e):oU(e)),cU=()=>` — état non confirmé (gateway injoignable)`,lU=()=>` — state not confirmed (gateway unreachable)`,uU=((e={},t={})=>(t.locale??q())===`fr`?cU(e):lU(e)),dU=e=>`Instance : ${e?.instance}`,fU=e=>`Instance: ${e?.instance}`,pU=((e,t={})=>(t.locale??q())===`fr`?dU(e):fU(e)),mU=()=>`Modèle`,hU=()=>`Model`,gU=((e={},t={})=>(t.locale??q())===`fr`?mU(e):hU(e)),_U=e=>`Modèle · ${e?.provider}`,vU=e=>`Model · ${e?.provider}`,yU=((e,t={})=>(t.locale??q())===`fr`?_U(e):vU(e)),bU=()=>`Niveau de réflexion hérité de l’agent`,xU=()=>`Thinking level inherited from the agent`,SU=((e={},t={})=>(t.locale??q())===`fr`?bU(e):xU(e)),CU=()=>`Niveau de réflexion (spécifique à ce chat)`,wU=()=>`Thinking level (specific to this chat)`,TU=((e={},t={})=>(t.locale??q())===`fr`?CU(e):wU(e)),EU=()=>`Réflexion`,DU=()=>`Thinking`,OU=((e={},t={})=>(t.locale??q())===`fr`?EU(e):DU(e)),kU=()=>`héritée`,AU=()=>`inherited`,jU=((e={},t={})=>(t.locale??q())===`fr`?kU(e):AU(e)),MU=e=>`Contexte utilisé : ${e?.pct}% (${e?.used} / ${e?.total} tokens)`,NU=e=>`Context used: ${e?.pct}% (${e?.used} / ${e?.total} tokens)`,PU=((e,t={})=>(t.locale??q())===`fr`?MU(e):NU(e)),FU=()=>`Contexte`,IU=()=>`Context`,LU=((e={},t={})=>(t.locale??q())===`fr`?FU(e):IU(e)),RU=()=>`Exporter la conversation`,zU=()=>`Export the conversation`,BU=((e={},t={})=>(t.locale??q())===`fr`?RU(e):zU(e)),VU=()=>`Exporter`,HU=()=>`Export`,UU=((e={},t={})=>(t.locale??q())===`fr`?VU(e):HU(e)),WU=()=>`Markdown (.md)`,GU=()=>`Markdown (.md)`,KU=((e={},t={})=>(t.locale??q())===`fr`?WU(e):GU(e)),qU=()=>`JSON (.json)`,JU=()=>`JSON (.json)`,YU=((e={},t={})=>(t.locale??q())===`fr`?qU(e):JU(e)),XU=()=>`Réglages avancés (réflexion, modèle)`,ZU=()=>`Advanced settings (thinking, model)`,QU=((e={},t={})=>(t.locale??q())===`fr`?XU(e):ZU(e)),$U=()=>`Avancé`,eW=()=>`Advanced`,tW=((e={},t={})=>(t.locale??q())===`fr`?$U(e):eW(e)),nW=()=>`Supprimer et régénérer cette réponse ?`,rW=()=>`Delete and regenerate this reply?`,iW=((e={},t={})=>(t.locale??q())===`fr`?nW(e):rW(e)),aW=()=>`Cette réponse sera supprimée, puis régénérée à partir de votre dernier message.`,oW=()=>`This reply will be deleted, then regenerated from your last message.`,sW=((e={},t={})=>(t.locale??q())===`fr`?aW(e):oW(e)),cW=()=>`Régénérer`,lW=()=>`Regenerate`,uW=((e={},t={})=>(t.locale??q())===`fr`?cW(e):lW(e)),dW=()=>`Annuler`,fW=()=>`Cancel`,pW=((e={},t={})=>(t.locale??q())===`fr`?dW(e):fW(e)),mW=()=>`Supprimer ce message et les suivants ?`,hW=()=>`Delete this message and the following ones?`,gW=((e={},t={})=>(t.locale??q())===`fr`?mW(e):hW(e)),_W=()=>`Ce message et tous les messages qui le suivent seront supprimés de la conversation. Cette action est irréversible.`,vW=()=>`This message and all messages following it will be deleted from the conversation. This action is irreversible.`,yW=((e={},t={})=>(t.locale??q())===`fr`?_W(e):vW(e)),bW=()=>`Supprimer`,xW=()=>`Delete`,SW=((e={},t={})=>(t.locale??q())===`fr`?bW(e):xW(e)),CW=()=>`Supprimer et régénérer la réponse`,wW=()=>`Delete and regenerate the reply`,TW=((e={},t={})=>(t.locale??q())===`fr`?CW(e):wW(e)),EW=()=>`Supprimer ce message et les suivants`,DW=()=>`Delete this message and the following ones`,OW=((e={},t={})=>(t.locale??q())===`fr`?EW(e):DW(e)),kW=()=>`Supprimer le message`,AW=()=>`Delete the message`,jW=((e={},t={})=>(t.locale??q())===`fr`?kW(e):AW(e)),MW=()=>`La suppression a échoué`,NW=()=>`Delete failed`,PW=((e={},t={})=>(t.locale??q())===`fr`?MW(e):NW(e)),FW=()=>`Sources`,IW=()=>`Sources`,LW=((e={},t={})=>(t.locale??q())===`fr`?FW(e):IW(e)),RW=()=>`1 souvenir`,zW=()=>`1 memory`,BW=((e={},t={})=>(t.locale??q())===`fr`?RW(e):zW(e)),VW=e=>`${e?.count} souvenirs`,HW=e=>`${e?.count} memories`,UW=((e,t={})=>(t.locale??q())===`fr`?VW(e):HW(e)),WW=()=>`1 document`,GW=()=>`1 document`,KW=((e={},t={})=>(t.locale??q())===`fr`?WW(e):GW(e)),qW=e=>`${e?.count} documents`,JW=e=>`${e?.count} documents`,YW=((e,t={})=>(t.locale??q())===`fr`?qW(e):JW(e)),XW=()=>`Mémoire conversationnelle`,ZW=()=>`Conversational memory`,QW=((e={},t={})=>(t.locale??q())===`fr`?XW(e):ZW(e)),$W=()=>`Documents`,eG=()=>`Documents`,tG=((e={},t={})=>(t.locale??q())===`fr`?$W(e):eG(e)),nG=e=>`score ${e?.score}`,rG=e=>`score ${e?.score}`,iG=((e,t={})=>(t.locale??q())===`fr`?nG(e):rG(e)),aG=()=>`(sans titre)`,oG=()=>`(untitled)`,sG=((e={},t={})=>(t.locale??q())===`fr`?aG(e):oG(e)),cG=()=>`Sources de la réponse`,lG=()=>`Sources of the reply`,uG=((e={},t={})=>(t.locale??q())===`fr`?cG(e):lG(e)),dG=()=>`Voir les sources de la réponse`,fG=()=>`View the sources of the reply`,pG=((e={},t={})=>(t.locale??q())===`fr`?dG(e):fG(e)),mG=()=>`Rechercher dans les sources…`,hG=()=>`Search the sources…`,gG=((e={},t={})=>(t.locale??q())===`fr`?mG(e):hG(e)),_G=()=>`Aucune source ne correspond à votre recherche.`,vG=()=>`No source matches your search.`,yG=((e={},t={})=>(t.locale??q())===`fr`?_G(e):vG(e)),bG=()=>`Tout sélectionner`,xG=()=>`Select all`,SG=((e={},t={})=>(t.locale??q())===`fr`?bG(e):xG(e)),CG=e=>`${e?.count} document(s) sélectionné(s)`,wG=e=>`${e?.count} document(s) selected`,TG=((e,t={})=>(t.locale??q())===`fr`?CG(e):wG(e)),EG=()=>`Joindre les documents`,DG=()=>`Attach the documents`,OG=((e={},t={})=>(t.locale??q())===`fr`?EG(e):DG(e)),kG=()=>`Récupère les fichiers sources des documents cochés en liens téléchargeables (slot « Source d'origine »).`,AG=()=>`Fetches the checked documents' source files as downloadable links (the "Original source" slot).`,jG=((e={},t={})=>(t.locale??q())===`fr`?kG(e):AG(e)),MG=e=>`${e?.count} document(s) joint(s) téléchargeable(s) — ouvrir le panneau Sources`,NG=e=>`${e?.count} attached document(s) available for download — open the Sources panel`,PG=((e,t={})=>(t.locale??q())===`fr`?MG(e):NG(e)),FG=()=>`Source d'origine`,IG=()=>`Original source`,LG=((e={},t={})=>(t.locale??q())===`fr`?FG(e):IG(e)),RG=()=>`Aucun agent documentaire configuré`,zG=()=>`No documentary agent configured`,BG=((e={},t={})=>(t.locale??q())===`fr`?RG(e):zG(e)),VG=()=>`Récupération des documents en cours…`,HG=()=>`Fetching the documents…`,UG=((e={},t={})=>(t.locale??q())===`fr`?VG(e):HG(e)),WG=()=>`Récupération des documents lancée — voir le panneau Sources`,GG=()=>`Document fetch started — see the Sources panel`,KG=((e={},t={})=>(t.locale??q())===`fr`?WG(e):GG(e)),qG=()=>`Impossible de lancer la récupération des documents`,JG=()=>`Could not start the document fetch`,YG=((e={},t={})=>(t.locale??q())===`fr`?qG(e):JG(e)),XG=()=>`Récupération…`,ZG=()=>`Fetching…`,QG=((e={},t={})=>(t.locale??q())===`fr`?XG(e):ZG(e)),$G=()=>`Télécharger la source`,eK=()=>`Download the source`,tK=((e={},t={})=>(t.locale??q())===`fr`?$G(e):eK(e)),nK=()=>`Source introuvable`,rK=()=>`Source not found`,iK=((e={},t={})=>(t.locale??q())===`fr`?nK(e):rK(e)),aK=()=>`Voir plus`,oK=()=>`Show more`,sK=((e={},t={})=>(t.locale??q())===`fr`?aK(e):oK(e)),cK=()=>`Voir moins`,lK=()=>`Show less`,uK=((e={},t={})=>(t.locale??q())===`fr`?cK(e):lK(e)),dK=()=>`Fermer le panneau des sources`,fK=()=>`Close the sources panel`,pK=((e={},t={})=>(t.locale??q())===`fr`?dK(e):fK(e)),mK=()=>`Redimensionner le panneau des sources`,hK=()=>`Resize the sources panel`,gK=((e={},t={})=>(t.locale??q())===`fr`?mK(e):hK(e)),_K=e=>`Source · texte brut exact · ${e?.count} caractère`,vK=e=>`Source · exact raw text · ${e?.count} character`,yK=((e,t={})=>(t.locale??q())===`fr`?_K(e):vK(e)),bK=e=>`Source · texte brut exact · ${e?.count} caractères`,xK=e=>`Source · exact raw text · ${e?.count} characters`,SK=((e,t={})=>(t.locale??q())===`fr`?bK(e):xK(e)),CK=()=>`Copier la source exacte`,wK=()=>`Copy the exact source`,TK=((e={},t={})=>(t.locale??q())===`fr`?CK(e):wK(e)),EK=()=>`(aucun texte)`,DK=()=>`(no text)`,OK=((e={},t={})=>(t.locale??q())===`fr`?EK(e):DK(e)),kK=()=>`Afficher le message rendu`,AK=()=>`Show the rendered message`,jK=((e={},t={})=>(t.locale??q())===`fr`?kK(e):AK(e)),MK=()=>`Afficher la source (texte brut exact)`,NK=()=>`Show the source (exact raw text)`,PK=((e={},t={})=>(t.locale??q())===`fr`?MK(e):NK(e)),FK=()=>`Afficher la source du message`,IK=()=>`Show the message source`,LK=((e={},t={})=>(t.locale??q())===`fr`?FK(e):IK(e)),RK=()=>`Copier le message`,zK=()=>`Copy the message`,BK=((e={},t={})=>(t.locale??q())===`fr`?RK(e):zK(e)),VK=()=>`Envoi…`,HK=()=>`Sending…`,UK=((e={},t={})=>(t.locale??q())===`fr`?VK(e):HK(e)),WK=e=>`${e?.name} traite votre message…`,GK=e=>`${e?.name} is processing your message…`,KK=((e,t={})=>(t.locale??q())===`fr`?WK(e):GK(e)),qK=e=>`L'agent ${e?.name} traite votre message…`,JK=e=>`The agent ${e?.name} is processing your message…`,YK=((e,t={})=>(t.locale??q())===`fr`?qK(e):JK(e)),XK=()=>`Copier la réponse`,ZK=()=>`Copy the reply`,QK=((e={},t={})=>(t.locale??q())===`fr`?XK(e):ZK(e)),$K=()=>`Chat indisponible…`,eq=()=>`Chat unavailable…`,tq=((e={},t={})=>(t.locale??q())===`fr`?$K(e):eq(e)),nq=()=>`Message OpenClaw…`,rq=()=>`Message OpenClaw…`,iq=((e={},t={})=>(t.locale??q())===`fr`?nq(e):rq(e)),aq=()=>`Joindre un fichier`,oq=()=>`Attach a file`,sq=((e={},t={})=>(t.locale??q())===`fr`?aq(e):oq(e)),cq=()=>`échec`,lq=()=>`failed`,uq=((e={},t={})=>(t.locale??q())===`fr`?cq(e):lq(e)),dq=e=>`Téléversement du fichier… ${e?.percent}%`,fq=e=>`Uploading file… ${e?.percent}%`,pq=((e,t={})=>(t.locale??q())===`fr`?dq(e):fq(e)),mq=e=>`Téléversement de ${e?.count} fichiers… ${e?.percent}%`,hq=e=>`Uploading ${e?.count} files… ${e?.percent}%`,gq=((e,t={})=>(t.locale??q())===`fr`?mq(e):hq(e)),_q=()=>`Retirer la pièce jointe`,vq=()=>`Remove attachment`,yq=((e={},t={})=>(t.locale??q())===`fr`?_q(e):vq(e)),bq=()=>`Masquer l'activité des outils et revenir à la vue épurée`,xq=()=>`Hide tool activity and return to the clean view`,Sq=((e={},t={})=>(t.locale??q())===`fr`?bq(e):xq(e)),Cq=()=>`Afficher l'activité des outils (traitements réalisés et en cours)`,wq=()=>`Show tool activity (completed and in-progress processing)`,Tq=((e={},t={})=>(t.locale??q())===`fr`?Cq(e):wq(e)),Eq=()=>`Outils`,Dq=()=>`Tools`,Oq=((e={},t={})=>(t.locale??q())===`fr`?Eq(e):Dq(e)),kq=e=>`${e?.count} appel d'outil`,Aq=e=>`${e?.count} tool call`,jq=((e,t={})=>(t.locale??q())===`fr`?kq(e):Aq(e)),Mq=e=>`${e?.count} appels d'outils`,Nq=e=>`${e?.count} tool calls`,Pq=((e,t={})=>(t.locale??q())===`fr`?Mq(e):Nq(e)),Fq=()=>`Terminé`,Iq=()=>`Done`,Lq=((e={},t={})=>(t.locale??q())===`fr`?Fq(e):Iq(e)),Rq=()=>`Échec`,zq=()=>`Failed`,Bq=((e={},t={})=>(t.locale??q())===`fr`?Rq(e):zq(e)),Vq=e=>`exit ${e?.code}`,Hq=e=>`exit ${e?.code}`,Uq=((e,t={})=>(t.locale??q())===`fr`?Vq(e):Hq(e)),Wq=e=>`${e?.ms} ms`,Gq=e=>`${e?.ms} ms`,Kq=((e,t={})=>(t.locale??q())===`fr`?Wq(e):Gq(e)),qq=()=>`Sortie non transmise par la passerelle`,Jq=()=>`Output not transmitted by the gateway`,Yq=((e={},t={})=>(t.locale??q())===`fr`?qq(e):Jq(e)),Xq=()=>`en cours`,Zq=()=>`running`,Qq=((e={},t={})=>(t.locale??q())===`fr`?Xq(e):Zq(e)),$q=()=>`terminé`,eJ=()=>`done`,tJ=((e={},t={})=>(t.locale??q())===`fr`?$q(e):eJ(e)),nJ=()=>`Afficher le détail des appels d'outils`,rJ=()=>`Show tool call details`,iJ=((e={},t={})=>(t.locale??q())===`fr`?nJ(e):rJ(e)),aJ=()=>`Masquer le détail des appels d'outils`,oJ=()=>`Hide tool call details`,sJ=((e={},t={})=>(t.locale??q())===`fr`?aJ(e):oJ(e)),cJ=()=>`Dictée vocale — bientôt disponible`,lJ=()=>`Voice dictation — coming soon`,uJ=((e={},t={})=>(t.locale??q())===`fr`?cJ(e):lJ(e)),dJ=()=>`Dictée vocale (bientôt disponible)`,fJ=()=>`Voice dictation (coming soon)`,pJ=((e={},t={})=>(t.locale??q())===`fr`?dJ(e):fJ(e)),mJ=()=>`Envoi indisponible (service de chat hors ligne)`,hJ=()=>`Sending unavailable (chat service offline)`,gJ=((e={},t={})=>(t.locale??q())===`fr`?mJ(e):hJ(e)),_J=()=>`Envoyer`,vJ=()=>`Send`,yJ=((e={},t={})=>(t.locale??q())===`fr`?_J(e):vJ(e)),bJ=()=>`Réponse en cours…`,xJ=()=>`Response in progress…`,SJ=((e={},t={})=>(t.locale??q())===`fr`?bJ(e):xJ(e)),CJ=()=>`Mettre en file (envoyé après la réponse en cours)`,wJ=()=>`Queue (sent after the current reply)`,TJ=((e={},t={})=>(t.locale??q())===`fr`?CJ(e):wJ(e)),EJ=()=>`Envoyer après la réponse en cours`,DJ=()=>`Send after the current reply`,OJ=((e={},t={})=>(t.locale??q())===`fr`?EJ(e):DJ(e)),kJ=()=>`Trop de messages en attente. Patientez la fin de la réponse en cours.`,AJ=()=>`Too many messages waiting. Wait for the current reply to finish.`,jJ=((e={},t={})=>(t.locale??q())===`fr`?kJ(e):AJ(e)),MJ=()=>`Impossible de mettre le message en file. Réessayez.`,NJ=()=>`Could not queue the message. Try again.`,PJ=((e={},t={})=>(t.locale??q())===`fr`?MJ(e):NJ(e)),FJ=()=>`Chargement…`,IJ=()=>`Loading…`,LJ=((e={},t={})=>(t.locale??q())===`fr`?FJ(e):IJ(e)),RJ=()=>`Configuration des intégrations.`,zJ=()=>`Integrations configuration.`,BJ=((e={},t={})=>(t.locale??q())===`fr`?RJ(e):zJ(e)),VJ=()=>`Aucune clé API ici`,HJ=()=>`No API key here`,UJ=((e={},t={})=>(t.locale??q())===`fr`?VJ(e):HJ(e)),WJ=()=>`— elles vivent dans l'environnement du déploiement ; un champ vide retombe sur la variable d'environnement puis le défaut. L'indicateur « configuré » reflète la présence de la clé côté serveur.`,GJ=()=>`— they live in the deployment environment; an empty field falls back to the environment variable then the default. The "configured" indicator reflects the presence of the key on the server side.`,KJ=((e={},t={})=>(t.locale??q())===`fr`?WJ(e):GJ(e)),qJ=()=>`actif`,JJ=()=>`active`,YJ=((e={},t={})=>(t.locale??q())===`fr`?qJ(e):JJ(e)),XJ=()=>`en pause`,ZJ=()=>`paused`,QJ=((e={},t={})=>(t.locale??q())===`fr`?XJ(e):ZJ(e)),$J=()=>`clé manquante (env)`,eY=()=>`key missing (env)`,tY=((e={},t={})=>(t.locale??q())===`fr`?$J(e):eY(e)),nY=()=>`appliqué par le bridge (à venir)`,rY=()=>`applied by the bridge (coming soon)`,iY=((e={},t={})=>(t.locale??q())===`fr`?nY(e):rY(e)),aY=()=>`Export des traces. Clés : LANGFUSE_PUBLIC_KEY / LANGFUSE_SECRET_KEY (env).`,oY=()=>`Trace export. Keys: LANGFUSE_PUBLIC_KEY / LANGFUSE_SECRET_KEY (env).`,sY=((e={},t={})=>(t.locale??q())===`fr`?aY(e):oY(e)),cY=()=>`Export des traces. Clé : OPIK_API_KEY (env).`,lY=()=>`Trace export. Key: OPIK_API_KEY (env).`,uY=((e={},t={})=>(t.locale??q())===`fr`?cY(e):lY(e)),dY=()=>`Host`,fY=()=>`Host`,pY=((e={},t={})=>(t.locale??q())===`fr`?dY(e):fY(e)),mY=()=>`Base URL`,hY=()=>`Base URL`,gY=((e={},t={})=>(t.locale??q())===`fr`?mY(e):hY(e)),_Y=()=>`Workspace`,vY=()=>`Workspace`,yY=((e={},t={})=>(t.locale??q())===`fr`?_Y(e):vY(e)),bY=()=>`(défaut serveur)`,xY=()=>`(server default)`,SY=((e={},t={})=>(t.locale??q())===`fr`?bY(e):xY(e)),CY=()=>`Activé (expédition des traces)`,wY=()=>`Enabled (trace shipping)`,TY=((e={},t={})=>(t.locale??q())===`fr`?CY(e):wY(e)),EY=()=>`Synthèse vocale (TTS)`,DY=()=>`Text-to-speech (TTS)`,OY=((e={},t={})=>(t.locale??q())===`fr`?EY(e):DY(e)),kY=()=>`Lecture audio des réponses. Clé du provider via env (ex. OPENAI_API_KEY, ELEVENLABS_API_KEY).`,AY=()=>`Audio playback of replies. Provider key via env (e.g. OPENAI_API_KEY, ELEVENLABS_API_KEY).`,jY=((e={},t={})=>(t.locale??q())===`fr`?kY(e):AY(e)),MY=()=>`Mode auto`,NY=()=>`Auto mode`,PY=((e={},t={})=>(t.locale??q())===`fr`?MY(e):NY(e)),FY=()=>`Désactivé`,IY=()=>`Disabled`,LY=((e={},t={})=>(t.locale??q())===`fr`?FY(e):IY(e)),RY=()=>`Toujours`,zY=()=>`Always`,BY=((e={},t={})=>(t.locale??q())===`fr`?RY(e):zY(e)),VY=()=>`Après un message vocal`,HY=()=>`After a voice message`,UY=((e={},t={})=>(t.locale??q())===`fr`?VY(e):HY(e)),WY=()=>`Sur directive [[tts:…]]`,GY=()=>`On [[tts:…]] directive`,KY=((e={},t={})=>(t.locale??q())===`fr`?WY(e):GY(e)),qY=()=>`Provider`,JY=()=>`Provider`,YY=((e={},t={})=>(t.locale??q())===`fr`?qY(e):JY(e)),XY=()=>`Microsoft (sans clé)`,ZY=()=>`Microsoft (no key)`,QY=((e={},t={})=>(t.locale??q())===`fr`?XY(e):ZY(e)),$Y=()=>`Modèle`,eX=()=>`Model`,tX=((e={},t={})=>(t.locale??q())===`fr`?$Y(e):eX(e)),nX=()=>`Voix`,rX=()=>`Voice`,iX=((e={},t={})=>(t.locale??q())===`fr`?nX(e):rX(e)),aX=()=>`speakerVoiceId / nom de voix`,oX=()=>`speakerVoiceId / voice name`,sX=((e={},t={})=>(t.locale??q())===`fr`?aX(e):oX(e)),cX=()=>`Mode conversation (Talk / STS)`,lX=()=>`Conversation mode (Talk / STS)`,uX=((e={},t={})=>(t.locale??q())===`fr`?cX(e):lX(e)),dX=()=>`OpenAI realtime : OPENAI_API_KEY présent (env). Le navigateur recevra un jeton éphémère minté côté serveur — jamais la clé brute.`,fX=()=>`OpenAI realtime: OPENAI_API_KEY present (env). The browser will receive an ephemeral token minted server-side — never the raw key.`,pX=((e={},t={})=>(t.locale??q())===`fr`?dX(e):fX(e)),mX=()=>`OpenAI realtime : OPENAI_API_KEY ABSENT (env). À définir côté déploiement pour activer gpt-realtime.`,hX=()=>`OpenAI realtime: OPENAI_API_KEY ABSENT (env). To be set on the deployment side to enable gpt-realtime.`,gX=((e={},t={})=>(t.locale??q())===`fr`?mX(e):hX(e)),_X=()=>`Activer le mode conversation`,vX=()=>`Enable conversation mode`,yX=((e={},t={})=>(t.locale??q())===`fr`?_X(e):vX(e)),bX=()=>`Provider realtime`,xX=()=>`Realtime provider`,SX=((e={},t={})=>(t.locale??q())===`fr`?bX(e):xX(e)),CX=()=>`Modèle realtime`,wX=()=>`Realtime model`,TX=((e={},t={})=>(t.locale??q())===`fr`?CX(e):wX(e)),EX=()=>`Transport`,DX=()=>`Transport`,OX=((e={},t={})=>(t.locale??q())===`fr`?EX(e):DX(e)),kX=()=>`WebRTC (navigateur)`,AX=()=>`WebRTC (browser)`,jX=((e={},t={})=>(t.locale??q())===`fr`?kX(e):AX(e)),MX=()=>`Locale`,NX=()=>`Locale`,PX=((e={},t={})=>(t.locale??q())===`fr`?MX(e):NX(e)),FX=()=>`Interrompre la lecture quand l'utilisateur parle`,IX=()=>`Interrupt playback when the user speaks`,LX=((e={},t={})=>(t.locale??q())===`fr`?FX(e):IX(e)),RX=()=>`Voice wake (mot d'activation)`,zX=()=>`Voice wake (wake word)`,BX=((e={},t={})=>(t.locale??q())===`fr`?RX(e):zX(e)),VX=()=>`non câblable dans le navigateur`,HX=()=>`not wireable in the browser`,UX=((e={},t={})=>(t.locale??q())===`fr`?VX(e):HX(e)),WX=()=>`OpenClaw gère le voice-wake côté Gateway avec détection native macOS/iOS (Android = micro manuel) ; le navigateur n'est pas une plateforme supportée. Le câbler dans ce webchat nécessiterait un moteur wake-word côté client (type Porcupine) que nous bâtirions — hors de OpenClaw. Configuration des déclencheurs : RPC gateway`,GX=()=>`OpenClaw handles voice-wake on the Gateway side with native macOS/iOS detection (Android = manual mic); the browser is not a supported platform. Wiring it into this webchat would require a client-side wake-word engine (Porcupine-style) that we would build — outside OpenClaw. Trigger configuration: gateway RPC`,KX=((e={},t={})=>(t.locale??q())===`fr`?WX(e):GX(e)),qX=()=>`Curseurs d'expédition`,JX=()=>`Shipping cursors`,YX=((e={},t={})=>(t.locale??q())===`fr`?qX(e):JX(e)),XX=()=>`Aucun curseur — aucune trace n'a encore été expédiée.`,ZX=()=>`No cursor — no trace has been shipped yet.`,QX=((e={},t={})=>(t.locale??q())===`fr`?XX(e):ZX(e)),$X=()=>`Vendeur`,eZ=()=>`Vendor`,tZ=((e={},t={})=>(t.locale??q())===`fr`?$X(e):eZ(e)),nZ=()=>`Dernier envoi`,rZ=()=>`Last send`,iZ=((e={},t={})=>(t.locale??q())===`fr`?nZ(e):rZ(e)),aZ=()=>`Échecs consécutifs`,oZ=()=>`Consecutive failures`,sZ=((e={},t={})=>(t.locale??q())===`fr`?aZ(e):oZ(e)),cZ=()=>`Dernier statut HTTP`,lZ=()=>`Last HTTP status`,uZ=((e={},t={})=>(t.locale??q())===`fr`?cZ(e):lZ(e)),dZ=()=>`Dernière erreur`,fZ=()=>`Last error`,pZ=((e={},t={})=>(t.locale??q())===`fr`?dZ(e):fZ(e)),mZ=()=>`Mots modifiés / altérés`,hZ=()=>`Modified / altered words`,gZ=((e={},t={})=>(t.locale??q())===`fr`?mZ(e):hZ(e)),_Z=()=>`Réponse incorrecte`,vZ=()=>`Incorrect answer`,yZ=((e={},t={})=>(t.locale??q())===`fr`?_Z(e):vZ(e)),bZ=()=>`Incohérence`,xZ=()=>`Inconsistency`,SZ=((e={},t={})=>(t.locale??q())===`fr`?bZ(e):xZ(e)),CZ=()=>`Formatage`,wZ=()=>`Formatting`,TZ=((e={},t={})=>(t.locale??q())===`fr`?CZ(e):wZ(e)),EZ=()=>`Latence`,DZ=()=>`Latency`,OZ=((e={},t={})=>(t.locale??q())===`fr`?EZ(e):DZ(e)),kZ=()=>`Erreur API`,AZ=()=>`API error`,jZ=((e={},t={})=>(t.locale??q())===`fr`?kZ(e):AZ(e)),MZ=()=>`Autre`,NZ=()=>`Other`,PZ=((e={},t={})=>(t.locale??q())===`fr`?MZ(e):NZ(e)),FZ=()=>`reçu = stocké`,IZ=()=>`received = stored`,LZ=((e={},t={})=>(t.locale??q())===`fr`?FZ(e):IZ(e)),RZ=()=>`affichage fidèle ✓`,zZ=()=>`faithful display ✓`,BZ=((e={},t={})=>(t.locale??q())===`fr`?RZ(e):zZ(e)),VZ=()=>`écart ⚠`,HZ=()=>`mismatch ⚠`,UZ=((e={},t={})=>(t.locale??q())===`fr`?VZ(e):HZ(e)),WZ=()=>`régénération`,GZ=()=>`regeneration`,KZ=((e={},t={})=>(t.locale??q())===`fr`?WZ(e):GZ(e)),qZ=()=>`Commentaire du rapporteur`,mfe=()=>`Reporter's comment`,hfe=((e={},t={})=>(t.locale??q())===`fr`?qZ(e):mfe(e)),gfe=()=>`Échange avec l'utilisateur`,_fe=()=>`Exchange with the user`,vfe=((e={},t={})=>(t.locale??q())===`fr`?gfe(e):_fe(e)),yfe=()=>`Administrateur`,bfe=()=>`Administrator`,xfe=((e={},t={})=>(t.locale??q())===`fr`?yfe(e):bfe(e)),Sfe=()=>`Utilisateur`,Cfe=()=>`User`,wfe=((e={},t={})=>(t.locale??q())===`fr`?Sfe(e):Cfe(e)),Tfe=()=>`Aucune réponse envoyée.`,Efe=()=>`No reply sent.`,Dfe=((e={},t={})=>(t.locale??q())===`fr`?Tfe(e):Efe(e)),Ofe=()=>`Répondre à l'utilisateur (visible dans sa zone de notification)…`,kfe=()=>`Reply to the user (visible in their notification area)…`,Afe=((e={},t={})=>(t.locale??q())===`fr`?Ofe(e):kfe(e)),jfe=()=>`Envoi…`,Mfe=()=>`Sending…`,Nfe=((e={},t={})=>(t.locale??q())===`fr`?jfe(e):Mfe(e)),Pfe=()=>`Répondre`,Ffe=()=>`Reply`,Ife=((e={},t={})=>(t.locale??q())===`fr`?Pfe(e):Ffe(e)),Lfe=()=>`Texte stocké (serveur, autoritatif)`,Rfe=()=>`Stored text (server, authoritative)`,zfe=((e={},t={})=>(t.locale??q())===`fr`?Lfe(e):Rfe(e)),Bfe=()=>`(vide)`,Vfe=()=>`(empty)`,JZ=((e={},t={})=>(t.locale??q())===`fr`?Bfe(e):Vfe(e)),Hfe=()=>`Texte affiché (navigateur, au signalement)`,Ufe=()=>`Displayed text (browser, at report time)`,Wfe=((e={},t={})=>(t.locale??q())===`fr`?Hfe(e):Ufe(e)),Gfe=()=>`Prompt générateur`,Kfe=()=>`Generator prompt`,qfe=((e={},t={})=>(t.locale??q())===`fr`?Gfe(e):Kfe(e)),Jfe=e=>`Contexte figé (${e?.count} tours${e?.truncated})`,Yfe=e=>`Frozen context (${e?.count} turns${e?.truncated})`,Xfe=((e,t={})=>(t.locale??q())===`fr`?Jfe(e):Yfe(e)),Zfe=()=>`, tronqué`,Qfe=()=>`, truncated`,$fe=((e={},t={})=>(t.locale??q())===`fr`?Zfe(e):Qfe(e)),epe=()=>`Payload dispatché (outbox)`,tpe=()=>`Dispatched payload (outbox)`,npe=((e={},t={})=>(t.locale??q())===`fr`?epe(e):tpe(e)),rpe=()=>`Extensions de correction détectées (peuvent altérer le texte)`,ipe=()=>`Correction extensions detected (may alter the text)`,ape=((e={},t={})=>(t.locale??q())===`fr`?rpe(e):ipe(e)),ope=()=>`Environnement client`,spe=()=>`Client environment`,cpe=((e={},t={})=>(t.locale??q())===`fr`?ope(e):spe(e)),lpe=e=>`thème ${e?.theme}`,upe=e=>`theme ${e?.theme}`,dpe=((e,t={})=>(t.locale??q())===`fr`?lpe(e):upe(e)),fpe=()=>`Plugins :`,ppe=()=>`Plugins:`,mpe=((e={},t={})=>(t.locale??q())===`fr`?fpe(e):ppe(e)),hpe=()=>`(navigator.plugins — neutralisé/partiel dans les navigateurs modernes)`,gpe=()=>`(navigator.plugins — neutralized/partial in modern browsers)`,_pe=((e={},t={})=>(t.locale??q())===`fr`?hpe(e):gpe(e)),vpe=()=>`Signalements « Report Feedback » enregistrés. La liste est en métadonnées ; ouvrir le détail lit le contenu figé et`,ype=()=>`Recorded "Report Feedback" reports. The list shows metadata; opening the detail reads the frozen content and`,bpe=((e={},t={})=>(t.locale??q())===`fr`?vpe(e):ype(e)),xpe=()=>`trace cet accès dans l'Audit`,Spe=()=>`traces this access in the Audit`,Cpe=((e={},t={})=>(t.locale??q())===`fr`?xpe(e):Spe(e)),wpe=()=>`(lecture de contenu d'un autre utilisateur). Fenêtre récente bornée.`,Tpe=()=>`(reading another user's content). Bounded recent window.`,Epe=((e={},t={})=>(t.locale??q())===`fr`?wpe(e):Tpe(e)),Dpe=()=>`Signalements`,Ope=()=>`Reports`,kpe=((e={},t={})=>(t.locale??q())===`fr`?Dpe(e):Ope(e)),Ape=()=>`Aucun signalement pour l'instant.`,jpe=()=>`No reports yet.`,Mpe=((e={},t={})=>(t.locale??q())===`fr`?Ape(e):jpe(e)),Npe=()=>`Quand`,Ppe=()=>`When`,Fpe=((e={},t={})=>(t.locale??q())===`fr`?Npe(e):Ppe(e)),Ipe=()=>`Catégorie`,Lpe=()=>`Category`,Rpe=((e={},t={})=>(t.locale??q())===`fr`?Ipe(e):Lpe(e)),zpe=()=>`Type`,Bpe=()=>`Type`,Vpe=((e={},t={})=>(t.locale??q())===`fr`?zpe(e):Bpe(e)),Hpe=()=>`user`,Upe=()=>`user`,Wpe=((e={},t={})=>(t.locale??q())===`fr`?Hpe(e):Upe(e)),Gpe=()=>`AI`,Kpe=()=>`AI`,qpe=((e={},t={})=>(t.locale??q())===`fr`?Gpe(e):Kpe(e)),Jpe=()=>`Rapporteur`,Ype=()=>`Reporter`,Xpe=((e={},t={})=>(t.locale??q())===`fr`?Jpe(e):Ype(e)),Zpe=e=>`(via ${e?.operator})`,Qpe=e=>`(via ${e?.operator})`,$pe=((e,t={})=>(t.locale??q())===`fr`?Zpe(e):Qpe(e)),eme=()=>`Fidélité`,tme=()=>`Fidelity`,nme=((e={},t={})=>(t.locale??q())===`fr`?eme(e):tme(e)),rme=()=>`Note`,ime=()=>`Note`,ame=((e={},t={})=>(t.locale??q())===`fr`?rme(e):ime(e)),ome=()=>`Statut`,sme=()=>`Status`,cme=((e={},t={})=>(t.locale??q())===`fr`?ome(e):sme(e)),lme=()=>`Répondu`,ume=()=>`Answered`,dme=((e={},t={})=>(t.locale??q())===`fr`?lme(e):ume(e)),fme=()=>`En attente`,pme=()=>`Pending`,mme=((e={},t={})=>(t.locale??q())===`fr`?fme(e):pme(e)),hme=()=>`Clos par l'utilisateur`,gme=()=>`Closed by user`,_me=((e={},t={})=>(t.locale??q())===`fr`?hme(e):gme(e)),vme=()=>`Raison de clôture`,yme=()=>`Close reason`,bme=((e={},t={})=>(t.locale??q())===`fr`?vme(e):yme(e)),xme=()=>`Masquer`,Sme=()=>`Hide`,Cme=((e={},t={})=>(t.locale??q())===`fr`?xme(e):Sme(e)),wme=()=>`Voir le détail`,Tme=()=>`View detail`,Eme=((e={},t={})=>(t.locale??q())===`fr`?wme(e):Tme(e)),Dme=()=>`Supprimer`,Ome=()=>`Delete`,kme=((e={},t={})=>(t.locale??q())===`fr`?Dme(e):Ome(e)),Ame=()=>`Supprimer ce signalement ?`,jme=()=>`Delete this report?`,Mme=((e={},t={})=>(t.locale??q())===`fr`?Ame(e):jme(e)),Nme=()=>`L'instantané forensique figé sera définitivement supprimé. Cette action est irréversible.`,Pme=()=>`The frozen forensic snapshot will be permanently deleted. This action is irreversible.`,Fme=((e={},t={})=>(t.locale??q())===`fr`?Nme(e):Pme(e)),Ime=()=>`Supprimer`,Lme=()=>`Delete`,Rme=((e={},t={})=>(t.locale??q())===`fr`?Ime(e):Lme(e)),zme=()=>`Aucun onglet`,Bme=()=>`No tabs`,Vme=((e={},t={})=>(t.locale??q())===`fr`?zme(e):Bme(e)),Hme=e=>`${e?.count} onglets`,Ume=e=>`${e?.count} tabs`,Wme=((e,t={})=>(t.locale??q())===`fr`?Hme(e):Ume(e)),Gme=()=>`Onglets Settings autorisés`,Kme=()=>`Allowed Settings tabs`,qme=((e={},t={})=>(t.locale??q())===`fr`?Gme(e):Kme(e)),Jme=()=>`Changement de rôle refusé`,Yme=()=>`Role change refused`,Xme=((e={},t={})=>(t.locale??q())===`fr`?Jme(e):Yme(e)),Zme=()=>`Mise à jour des permissions refusée`,Qme=()=>`Permission update refused`,$me=((e={},t={})=>(t.locale??q())===`fr`?Zme(e):Qme(e)),ehe=()=>`Rechercher (email, nom)`,the=()=>`Search (email, name)`,nhe=((e={},t={})=>(t.locale??q())===`fr`?ehe(e):the(e)),rhe=()=>`Tous les rôles`,ihe=()=>`All roles`,ahe=((e={},t={})=>(t.locale??q())===`fr`?rhe(e):ihe(e)),ohe=()=>`Utilisateurs`,she=()=>`Users`,che=((e={},t={})=>(t.locale??q())===`fr`?ohe(e):she(e)),lhe=()=>`Aucun utilisateur.`,uhe=()=>`No users.`,dhe=((e={},t={})=>(t.locale??q())===`fr`?lhe(e):uhe(e)),fhe=()=>`Voir comme cet utilisateur`,phe=()=>`View as this user`,mhe=((e={},t={})=>(t.locale??q())===`fr`?fhe(e):phe(e)),hhe=()=>`Supprimer l’utilisateur`,ghe=()=>`Delete user`,_he=((e={},t={})=>(t.locale??q())===`fr`?hhe(e):ghe(e)),vhe=()=>`Supprimer cet utilisateur ?`,yhe=()=>`Delete this user?`,bhe=((e={},t={})=>(t.locale??q())===`fr`?vhe(e):yhe(e)),xhe=e=>`« ${e?.user} » et toutes ses données (conversations, fichiers, accès) seront définitivement supprimés. Cette action est irréversible.`,She=e=>`“${e?.user}” and all their data (conversations, files, access) will be permanently deleted. This action cannot be undone.`,Che=((e,t={})=>(t.locale??q())===`fr`?xhe(e):She(e)),whe=()=>`SUPPRIMER`,The=()=>`DELETE`,Ehe=((e={},t={})=>(t.locale??q())===`fr`?whe(e):The(e)),Dhe=()=>`Supprimer définitivement`,Ohe=()=>`Delete permanently`,khe=((e={},t={})=>(t.locale??q())===`fr`?Dhe(e):Ohe(e)),Ahe=()=>`Suppression de l’utilisateur refusée`,jhe=()=>`User deletion refused`,Mhe=((e={},t={})=>(t.locale??q())===`fr`?Ahe(e):jhe(e)),Nhe=e=>`Utilisateur « ${e?.user} » supprimé.`,Phe=e=>`User “${e?.user}” deleted.`,Fhe=((e,t={})=>(t.locale??q())===`fr`?Nhe(e):Phe(e)),Ihe=()=>`Renommer`,Lhe=()=>`Rename`,Rhe=((e={},t={})=>(t.locale??q())===`fr`?Ihe(e):Lhe(e)),zhe=()=>`Renommer l’utilisateur`,Bhe=()=>`Rename user`,Vhe=((e={},t={})=>(t.locale??q())===`fr`?zhe(e):Bhe(e)),Hhe=e=>`Nom affiché pour « ${e?.user} »`,Uhe=e=>`Display name for “${e?.user}”`,Whe=((e,t={})=>(t.locale??q())===`fr`?Hhe(e):Uhe(e)),Ghe=()=>`Nom et prénom`,Khe=()=>`Name`,qhe=((e={},t={})=>(t.locale??q())===`fr`?Ghe(e):Khe(e)),Jhe=()=>`Nom mis à jour.`,Yhe=()=>`Name updated.`,Xhe=((e={},t={})=>(t.locale??q())===`fr`?Jhe(e):Yhe(e)),Zhe=()=>`Renommage refusé`,Qhe=()=>`Rename refused`,$he=((e={},t={})=>(t.locale??q())===`fr`?Zhe(e):Qhe(e)),ege=()=>`Utilisateur`,tge=()=>`User`,nge=((e={},t={})=>(t.locale??q())===`fr`?ege(e):tge(e)),rge=()=>`Rôle`,ige=()=>`Role`,age=((e={},t={})=>(t.locale??q())===`fr`?rge(e):ige(e)),oge=()=>`Accès Settings`,sge=()=>`Settings access`,cge=((e={},t={})=>(t.locale??q())===`fr`?oge(e):sge(e)),lge=()=>`Tous (admin)`,uge=()=>`All (admin)`,dge=((e={},t={})=>(t.locale??q())===`fr`?lge(e):uge(e)),fge=()=>`Agents`,pge=()=>`Agents`,YZ=((e={},t={})=>(t.locale??q())===`fr`?fge(e):pge(e)),mge=()=>`Gérer les agents`,hge=()=>`Manage agents`,XZ=((e={},t={})=>(t.locale??q())===`fr`?mge(e):hge(e)),gge=()=>`Échec de l’enregistrement de l’instance`,_ge=()=>`Failed to save instance`,vge=((e={},t={})=>(t.locale??q())===`fr`?gge(e):_ge(e)),yge=()=>`Les agents sont `,bge=()=>`Agents are `,xge=((e={},t={})=>(t.locale??q())===`fr`?yge(e):bge(e)),Sge=()=>`découverts par le bridge`,Cge=()=>`discovered by the bridge`,wge=((e={},t={})=>(t.locale??q())===`fr`?Sge(e):Cge(e)),Tge=()=>` (jamais saisis à la main). Les identifiants gateway (token, device, clé API) se configurent par instance via « Identifiants » — chiffrés au repos.`,Ege=()=>` (never entered by hand). Gateway credentials (token, device identity, API key) are set per instance via “Credentials” — encrypted at rest.`,Dge=((e={},t={})=>(t.locale??q())===`fr`?Tge(e):Ege(e)),Oge=()=>`Instances`,kge=()=>`Instances`,Age=((e={},t={})=>(t.locale??q())===`fr`?Oge(e):kge(e)),jge=()=>`Ajouter une instance`,Mge=()=>`Add instance`,Nge=((e={},t={})=>(t.locale??q())===`fr`?jge(e):Mge(e)),Pge=()=>`Aucune instance.`,Fge=()=>`No instances.`,Ige=((e={},t={})=>(t.locale??q())===`fr`?Pge(e):Fge(e)),Lge=()=>`Nom`,Rge=()=>`Name`,zge=((e={},t={})=>(t.locale??q())===`fr`?Lge(e):Rge(e)),Bge=()=>`Bridge`,Vge=()=>`Bridge`,Hge=((e={},t={})=>(t.locale??q())===`fr`?Bge(e):Vge(e)),Uge=()=>`Gateway URL`,Wge=()=>`Gateway URL`,Gge=((e={},t={})=>(t.locale??q())===`fr`?Uge(e):Wge(e)),Kge=()=>`Affichage`,qge=()=>`Display`,Jge=((e={},t={})=>(t.locale??q())===`fr`?Kge(e):qge(e)),Yge=()=>`Configurer le bridge`,Xge=()=>`Configure bridge`,Zge=((e={},t={})=>(t.locale??q())===`fr`?Yge(e):Xge(e)),Qge=()=>`Supprimer`,$ge=()=>`Delete`,ZZ=((e={},t={})=>(t.locale??q())===`fr`?Qge(e):$ge(e)),e_e=()=>`Nouvelle instance`,t_e=()=>`New instance`,n_e=((e={},t={})=>(t.locale??q())===`fr`?e_e(e):t_e(e)),r_e=()=>`Modifier`,i_e=()=>`Edit`,a_e=((e={},t={})=>(t.locale??q())===`fr`?r_e(e):i_e(e)),o_e=()=>`Modifier l'instance`,s_e=()=>`Edit instance`,c_e=((e={},t={})=>(t.locale??q())===`fr`?o_e(e):s_e(e)),l_e=()=>`Le nom est la clé de routage et ne peut pas être modifié après création.`,u_e=()=>`The name is the routing key and can't be changed after creation.`,d_e=((e={},t={})=>(t.locale??q())===`fr`?l_e(e):u_e(e)),f_e=()=>`Métadonnées non-secrètes.`,p_e=()=>`Non-secret metadata.`,m_e=((e={},t={})=>(t.locale??q())===`fr`?f_e(e):p_e(e)),h_e=()=>`Enregistrer`,g_e=()=>`Save`,QZ=((e={},t={})=>(t.locale??q())===`fr`?h_e(e):g_e(e)),__e=()=>`Nom de l’instance (ex. main)`,v_e=()=>`Instance name (e.g. main)`,y_e=((e={},t={})=>(t.locale??q())===`fr`?__e(e):v_e(e)),b_e=()=>`Technologie (bridge)`,x_e=()=>`Technology (bridge)`,S_e=((e={},t={})=>(t.locale??q())===`fr`?b_e(e):x_e(e)),C_e=()=>`Gateway URL (ws(s)://)`,w_e=()=>`Gateway URL (ws(s)://)`,T_e=((e={},t={})=>(t.locale??q())===`fr`?C_e(e):w_e(e)),E_e=()=>`URL du bridge`,D_e=()=>`Bridge URL`,O_e=((e={},t={})=>(t.locale??q())===`fr`?E_e(e):D_e(e)),k_e=()=>`http://bridge-host:8787 — sinon le BRIDGE_URL du déploiement`,A_e=()=>`http://bridge-host:8787 — else the deployment BRIDGE_URL`,j_e=((e={},t={})=>(t.locale??q())===`fr`?k_e(e):A_e(e)),M_e=()=>`Nom affiché (optionnel)`,N_e=()=>`Display name (optional)`,P_e=((e={},t={})=>(t.locale??q())===`fr`?M_e(e):N_e(e)),F_e=()=>`Version de la gateway (optionnel)`,I_e=()=>`Gateway version (optional)`,L_e=((e={},t={})=>(t.locale??q())===`fr`?F_e(e):I_e(e)),R_e=()=>`ex. 2026.6.5 — repli de compatibilité`,z_e=()=>`e.g. 2026.6.5 — compat fallback`,B_e=((e={},t={})=>(t.locale??q())===`fr`?R_e(e):z_e(e)),V_e=()=>`URL HTTP média (optionnel)`,H_e=()=>`Media HTTP URL (optional)`,U_e=((e={},t={})=>(t.locale??q())===`fr`?V_e(e):H_e(e)),W_e=()=>`Seulement si le média est servi sur un autre hôte/port`,G_e=()=>`Only if media is served on another host/port`,K_e=((e={},t={})=>(t.locale??q())===`fr`?W_e(e):G_e(e)),q_e=()=>`Identifiants`,J_e=()=>`Credentials`,Y_e=((e={},t={})=>(t.locale??q())===`fr`?q_e(e):J_e(e)),X_e=e=>`Identifiants de la gateway — instance « ${e?.instance} »`,Z_e=e=>`Gateway credentials — instance « ${e?.instance} »`,Q_e=((e,t={})=>(t.locale??q())===`fr`?X_e(e):Z_e(e)),$_e=()=>`Stockés chiffrés au repos. En écriture seule : une valeur n'est jamais réaffichée — définissez-la, remplacez-la ou effacez-la.`,eve=()=>`Stored encrypted at rest. Write-only: a value is never shown again — set or replace it, or clear it.`,tve=((e={},t={})=>(t.locale??q())===`fr`?$_e(e):eve(e)),nve=()=>`Jeton opérateur`,rve=()=>`Operator token`,ive=((e={},t={})=>(t.locale??q())===`fr`?nve(e):rve(e)),ave=()=>`Identité d'appareil (JSON Ed25519)`,ove=()=>`Device identity (Ed25519 JSON)`,sve=((e={},t={})=>(t.locale??q())===`fr`?ave(e):ove(e)),cve=()=>`Clé API`,lve=()=>`API key`,uve=((e={},t={})=>(t.locale??q())===`fr`?cve(e):lve(e)),dve=()=>`Configuré`,fve=()=>`Configured`,$Z=((e={},t={})=>(t.locale??q())===`fr`?dve(e):fve(e)),pve=()=>`Non défini`,mve=()=>`Not set`,eQ=((e={},t={})=>(t.locale??q())===`fr`?pve(e):mve(e)),hve=()=>`Saisir la valeur…`,gve=()=>`Enter value…`,_ve=((e={},t={})=>(t.locale??q())===`fr`?hve(e):gve(e)),vve=()=>`Remplacer la valeur…`,yve=()=>`Replace value…`,bve=((e={},t={})=>(t.locale??q())===`fr`?vve(e):yve(e)),xve=()=>`Définir`,Sve=()=>`Set`,Cve=((e={},t={})=>(t.locale??q())===`fr`?xve(e):Sve(e)),wve=()=>`Effacer`,Tve=()=>`Clear`,Eve=((e={},t={})=>(t.locale??q())===`fr`?wve(e):Tve(e)),Dve=()=>`Identifiant enregistré`,Ove=()=>`Credential saved`,kve=((e={},t={})=>(t.locale??q())===`fr`?Dve(e):Ove(e)),Ave=()=>`Impossible d'enregistrer l'identifiant`,jve=()=>`Could not save the credential`,tQ=((e={},t={})=>(t.locale??q())===`fr`?Ave(e):jve(e)),Mve=()=>`Identifiant effacé`,Nve=()=>`Credential cleared`,Pve=((e={},t={})=>(t.locale??q())===`fr`?Mve(e):Nve(e)),Fve=()=>`Générer`,Ive=()=>`Generate`,Lve=((e={},t={})=>(t.locale??q())===`fr`?Fve(e):Ive(e)),Rve=()=>`Crée une identité Ed25519 côté serveur (la clé privée ne touche jamais le navigateur) et l'enregistre. Vous l'appairerez ensuite sur la gateway.`,zve=()=>`Mints an Ed25519 identity server-side (the private key never reaches the browser) and saves it. You'll then pair it on the gateway.`,Bve=((e={},t={})=>(t.locale??q())===`fr`?Rve(e):zve(e)),Vve=()=>`Identité générée et enregistrée`,Hve=()=>`Device identity generated and saved`,nQ=((e={},t={})=>(t.locale??q())===`fr`?Vve(e):Hve(e)),Uve=()=>`Appairez cet appareil sur votre gateway avec :`,Wve=()=>`Pair this device on your gateway with:`,Gve=((e={},t={})=>(t.locale??q())===`fr`?Uve(e):Wve(e)),Kve=()=>`Impossible de générer l'identité d'appareil`,qve=()=>`Could not generate the device identity`,Jve=((e={},t={})=>(t.locale??q())===`fr`?Kve(e):qve(e)),Yve=()=>`Synchroniser maintenant`,Xve=()=>`Sync now`,Zve=((e={},t={})=>(t.locale??q())===`fr`?Yve(e):Xve(e)),Qve=()=>`Synchronisation…`,$ve=()=>`Syncing…`,eye=((e={},t={})=>(t.locale??q())===`fr`?Qve(e):$ve(e)),tye=()=>`Synchronisation effectuée`,nye=()=>`Synced`,rye=((e={},t={})=>(t.locale??q())===`fr`?tye(e):nye(e)),iye=()=>`Échec de la synchronisation`,aye=()=>`Sync failed`,oye=((e={},t={})=>(t.locale??q())===`fr`?iye(e):aye(e)),sye=()=>`Aucun agent récupéré — appairez l'appareil sur la gateway (ou vérifiez la configuration de l'instance), puis re-synchronisez`,cye=()=>`No agents retrieved — pair the device on the gateway (or check the instance configuration), then sync again`,lye=((e={},t={})=>(t.locale??q())===`fr`?sye(e):cye(e)),uye=()=>`Aucun bridge ne sert cette instance — définissez son « Bridge URL » dans Settings → Agents → Instances.`,dye=()=>`No bridge serves this instance — set its “Bridge URL” in Settings → Agents → Instances.`,fye=((e={},t={})=>(t.locale??q())===`fr`?uye(e):dye(e)),pye=()=>`Configuration Convex incomplète : BRIDGE_SHARED_SECRET manquant sur le déploiement.`,mye=()=>`Convex deployment is misconfigured: BRIDGE_SHARED_SECRET is missing.`,hye=((e={},t={})=>(t.locale??q())===`fr`?pye(e):mye(e)),gye=()=>`Bridge injoignable — vérifiez qu'il tourne et que son URL est correcte.`,_ye=()=>`Bridge unreachable — check it is running and its URL is correct.`,vye=((e={},t={})=>(t.locale??q())===`fr`?gye(e):_ye(e)),yye=()=>`Le bridge a rejeté l'authentification — BRIDGE_SHARED_SECRET désynchronisé entre Convex et le bridge.`,bye=()=>`The bridge rejected authentication — BRIDGE_SHARED_SECRET is out of sync between Convex and the bridge.`,xye=((e={},t={})=>(t.locale??q())===`fr`?yye(e):bye(e)),Sye=()=>`Le bridge ne sert pas cette instance — son secret doit figurer dans BRIDGE_INSTANCE_SECRETS et ses identifiants doivent être valides.`,Cye=()=>`The bridge does not serve this instance — its secret must be in BRIDGE_INSTANCE_SECRETS and its credentials must be valid.`,wye=((e={},t={})=>(t.locale??q())===`fr`?Sye(e):Cye(e)),Tye=()=>`Force le bridge à prendre en compte les identifiants et à récupérer les agents depuis la gateway maintenant (sinon ~2 min via le cron). Déclenche aussi l'appairage si l'appareil n'est pas encore appairé.`,Eye=()=>`Forces the bridge to take the credentials into account and fetch the agents from the gateway now (otherwise ~2 min via the cron). Also triggers pairing if the device is not yet paired.`,Dye=((e={},t={})=>(t.locale??q())===`fr`?Tye(e):Eye(e)),Oye=()=>`Secret du bridge (bridge → Convex)`,kye=()=>`Bridge secret (bridge → Convex)`,Aye=((e={},t={})=>(t.locale??q())===`fr`?Oye(e):kye(e)),jye=()=>`Authentifie CE bridge auprès de Convex et le lie à cette instance, afin que le bridge ne puisse lire que les secrets de cette gateway. À définir dans l'environnement du bridge. Affiché une seule fois à la génération.`,Mye=()=>`Authenticates THIS bridge to Convex and ties it to this instance, so the bridge can only ever read this gateway's secrets. Set it in the bridge's environment. Shown once at generation.`,Nye=((e={},t={})=>(t.locale??q())===`fr`?jye(e):Mye(e)),Pye=()=>`Générer`,Fye=()=>`Generate`,Iye=((e={},t={})=>(t.locale??q())===`fr`?Pye(e):Fye(e)),Lye=()=>`Régénérer`,Rye=()=>`Regenerate`,zye=((e={},t={})=>(t.locale??q())===`fr`?Lye(e):Rye(e)),Bye=()=>`Révoquer`,Vye=()=>`Revoke`,Hye=((e={},t={})=>(t.locale??q())===`fr`?Bye(e):Vye(e)),Uye=()=>`Secret du bridge révoqué`,Wye=()=>`Bridge secret revoked`,Gye=((e={},t={})=>(t.locale??q())===`fr`?Uye(e):Wye(e)),Kye=()=>`Impossible de générer le secret du bridge`,qye=()=>`Could not generate the bridge secret`,rQ=((e={},t={})=>(t.locale??q())===`fr`?Kye(e):qye(e)),Jye=()=>`Copiez ce secret maintenant — il ne sera plus jamais affiché. Placez-le dans la variable d'environnement du bridge.`,Yye=()=>`Copy this secret now — it is never shown again. Put it in the bridge's environment variable.`,Xye=((e={},t={})=>(t.locale??q())===`fr`?Jye(e):Yye(e)),Zye=()=>`J'ai copié le secret`,Qye=()=>`I've copied the secret`,iQ=((e={},t={})=>(t.locale??q())===`fr`?Zye(e):Qye(e)),$ye=e=>`Agents — instance « ${e?.name} »`,ebe=e=>`Agents — instance « ${e?.name} »`,tbe=((e,t={})=>(t.locale??q())===`fr`?$ye(e):ebe(e)),nbe=()=>`Les agents sont découverts par le bridge. Coche ceux à rendre disponibles en aval (assignables aux groupes/users), et choisis un défaut. Un agent désactivé reste listé mais grisé.`,rbe=()=>`Agents are discovered by the bridge. Tick the ones to make available downstream (assignable to groups/users), and pick one default. A disabled agent stays listed but greyed.`,ibe=((e={},t={})=>(t.locale??q())===`fr`?nbe(e):rbe(e)),abe=()=>`Impossible de mettre à jour l’agent`,obe=()=>`Could not update the agent`,aQ=((e={},t={})=>(t.locale??q())===`fr`?abe(e):obe(e)),sbe=()=>`Types`,cbe=()=>`Types`,lbe=((e={},t={})=>(t.locale??q())===`fr`?sbe(e):cbe(e)),ube=()=>`Gérer`,dbe=()=>`Manage`,fbe=((e={},t={})=>(t.locale??q())===`fr`?ube(e):dbe(e)),pbe=()=>`Types de l'agent`,mbe=()=>`Agent types`,hbe=((e={},t={})=>(t.locale??q())===`fr`?pbe(e):mbe(e)),gbe=()=>`Un agent peut avoir plusieurs types. Chaque type indique à Atrium comment l'agent peut être utilisé.`,_be=()=>`An agent may hold several types. Each type tells Atrium how the agent can be used.`,vbe=((e={},t={})=>(t.locale??q())===`fr`?gbe(e):_be(e)),ybe=()=>`Conversationnel`,bbe=()=>`Conversational`,xbe=((e={},t={})=>(t.locale??q())===`fr`?ybe(e):bbe(e)),Sbe=()=>`Agent de chat standard — répond aux messages des utilisateurs dans une conversation.`,Cbe=()=>`Standard chat agent — answers users' messages in a conversation.`,wbe=((e={},t={})=>(t.locale??q())===`fr`?Sbe(e):Cbe(e)),Tbe=()=>`Source documentaire`,Ebe=()=>`Documentary source`,Dbe=((e={},t={})=>(t.locale??q())===`fr`?Tbe(e):Ebe(e)),Obe=()=>`Agent spécialisé appelé par une action Atrium dédiée pour exploiter une source documentaire — pas de chat direct.`,kbe=()=>`Specialised agent invoked by a dedicated Atrium action to exploit a documentary source — not used for direct chat.`,Abe=((e={},t={})=>(t.locale??q())===`fr`?Obe(e):kbe(e)),jbe=()=>`Définir par défaut`,Mbe=()=>`Set as default`,Nbe=((e={},t={})=>(t.locale??q())===`fr`?jbe(e):Mbe(e)),Pbe=()=>`Retirer`,Fbe=()=>`Remove`,Ibe=((e={},t={})=>(t.locale??q())===`fr`?Pbe(e):Fbe(e)),Lbe=e=>`Retirer ${e?.name} ?`,Rbe=e=>`Remove ${e?.name}?`,zbe=((e,t={})=>(t.locale??q())===`fr`?Lbe(e):Rbe(e)),Bbe=()=>`Cet agent n’existe plus sur le gateway. Le retirer le supprime aussi de la liste d’agents de chaque groupe et utilisateur. Action irréversible.`,Vbe=()=>`This agent no longer exists on the gateway. Removing it also removes it from every group's and user's agent list. This cannot be undone.`,Hbe=((e={},t={})=>(t.locale??q())===`fr`?Bbe(e):Vbe(e)),Ube=()=>`Retirer`,Wbe=()=>`Remove`,Gbe=((e={},t={})=>(t.locale??q())===`fr`?Ube(e):Wbe(e)),Kbe=()=>`Agent retiré`,qbe=()=>`Agent removed`,Jbe=((e={},t={})=>(t.locale??q())===`fr`?Kbe(e):qbe(e)),Ybe=()=>`Chargement…`,Xbe=()=>`Loading…`,Zbe=((e={},t={})=>(t.locale??q())===`fr`?Ybe(e):Xbe(e)),Qbe=()=>`Jamais sondé.`,$be=()=>`Never polled.`,exe=((e={},t={})=>(t.locale??q())===`fr`?Qbe(e):$be(e)),txe=()=>`Découverte OK.`,nxe=()=>`Discovery OK.`,rxe=((e={},t={})=>(t.locale??q())===`fr`?txe(e):nxe(e)),ixe=e=>`Hors-ligne (${e?.error}) — dernier bon résultat servi.`,axe=e=>`Offline (${e?.error}) — last good result served.`,oxe=((e,t={})=>(t.locale??q())===`fr`?ixe(e):axe(e)),sxe=()=>`Aucun agent découvert.`,cxe=()=>`No agent discovered.`,lxe=((e={},t={})=>(t.locale??q())===`fr`?sxe(e):cxe(e)),uxe=()=>`défaut`,dxe=()=>`default`,oQ=((e={},t={})=>(t.locale??q())===`fr`?uxe(e):dxe(e)),fxe=()=>`supprimé`,pxe=()=>`removed`,mxe=((e={},t={})=>(t.locale??q())===`fr`?fxe(e):pxe(e)),hxe=()=>`Trace des actions effectuées sous usurpation d’identité : qui a réellement agi (acteur réel) et au nom de quel utilisateur. Le contenu des messages n’est jamais enregistré.`,gxe=()=>`Trace of actions performed under impersonation: who really acted (real actor) and on behalf of which user. Message content is never recorded.`,_xe=((e={},t={})=>(t.locale??q())===`fr`?hxe(e):gxe(e)),vxe=()=>`Fenêtre récente bornée — une plage antérieure peut être partielle.`,yxe=()=>`Bounded recent window — an earlier range may be partial.`,bxe=((e={},t={})=>(t.locale??q())===`fr`?vxe(e):yxe(e)),xxe=()=>`Rechercher (action, acteur, ressource)`,Sxe=()=>`Search (action, actor, resource)`,Cxe=((e={},t={})=>(t.locale??q())===`fr`?xxe(e):Sxe(e)),wxe=()=>`Action`,Txe=()=>`Action`,sQ=((e={},t={})=>(t.locale??q())===`fr`?wxe(e):Txe(e)),Exe=()=>`Toutes les actions`,Dxe=()=>`All actions`,Oxe=((e={},t={})=>(t.locale??q())===`fr`?Exe(e):Dxe(e)),kxe=()=>`Usurpation : toutes`,Axe=()=>`Impersonation: all`,jxe=((e={},t={})=>(t.locale??q())===`fr`?kxe(e):Axe(e)),Mxe=()=>`Sous usurpation`,Nxe=()=>`Under impersonation`,Pxe=((e={},t={})=>(t.locale??q())===`fr`?Mxe(e):Nxe(e)),Fxe=()=>`Sans usurpation`,Ixe=()=>`Without impersonation`,Lxe=((e={},t={})=>(t.locale??q())===`fr`?Fxe(e):Ixe(e)),Rxe=()=>`Ressource`,zxe=()=>`Resource`,cQ=((e={},t={})=>(t.locale??q())===`fr`?Rxe(e):zxe(e)),Bxe=()=>`Toutes les ressources`,Vxe=()=>`All resources`,Hxe=((e={},t={})=>(t.locale??q())===`fr`?Bxe(e):Vxe(e)),Uxe=()=>`Audit`,Wxe=()=>`Audit`,Gxe=((e={},t={})=>(t.locale??q())===`fr`?Uxe(e):Wxe(e)),Kxe=()=>`Aucune action tracée pour l’instant.`,qxe=()=>`No action traced yet.`,Jxe=((e={},t={})=>(t.locale??q())===`fr`?Kxe(e):qxe(e)),Yxe=()=>`Quand`,Xxe=()=>`When`,Zxe=((e={},t={})=>(t.locale??q())===`fr`?Yxe(e):Xxe(e)),Qxe=()=>`Acteur réel`,$xe=()=>`Real actor`,eSe=((e={},t={})=>(t.locale??q())===`fr`?Qxe(e):$xe(e)),tSe=()=>`Au nom de`,nSe=()=>`On behalf of`,rSe=((e={},t={})=>(t.locale??q())===`fr`?tSe(e):nSe(e)),iSe=()=>`Traces`,aSe=()=>`Traces`,oSe=((e={},t={})=>(t.locale??q())===`fr`?iSe(e):aSe(e)),sSe=()=>`KPI`,cSe=()=>`KPI`,lSe=((e={},t={})=>(t.locale??q())===`fr`?sSe(e):cSe(e)),uSe=()=>`OpenClaw / Anomalies`,dSe=()=>`OpenClaw / Anomalies`,fSe=((e={},t={})=>(t.locale??q())===`fr`?uSe(e):dSe(e)),pSe=()=>`Chats`,mSe=()=>`Chats`,hSe=((e={},t={})=>(t.locale??q())===`fr`?pSe(e):mSe(e)),gSe=()=>`Admin`,_Se=()=>`Admin`,vSe=((e={},t={})=>(t.locale??q())===`fr`?gSe(e):_Se(e)),ySe=()=>`Lire`,bSe=()=>`Read`,lQ=((e={},t={})=>(t.locale??q())===`fr`?ySe(e):bSe(e)),xSe=()=>`Contenu`,SSe=()=>`Content`,CSe=((e={},t={})=>(t.locale??q())===`fr`?xSe(e):SSe(e)),wSe=()=>`Écrire`,TSe=()=>`Write`,uQ=((e={},t={})=>(t.locale??q())===`fr`?wSe(e):TSe(e)),ESe=()=>`Requête`,DSe=()=>`Query`,OSe=((e={},t={})=>(t.locale??q())===`fr`?ESe(e):DSe(e)),kSe=()=>`Anomalies`,ASe=()=>`Anomalies`,jSe=((e={},t={})=>(t.locale??q())===`fr`?kSe(e):ASe(e)),MSe=()=>`Signaler`,NSe=()=>`Report`,PSe=((e={},t={})=>(t.locale??q())===`fr`?MSe(e):NSe(e)),FSe=()=>`Gérer`,ISe=()=>`Manage`,LSe=((e={},t={})=>(t.locale??q())===`fr`?FSe(e):ISe(e)),RSe=()=>`Auto-correction`,zSe=()=>`Self-heal`,BSe=((e={},t={})=>(t.locale??q())===`fr`?RSe(e):zSe(e)),VSe=e=>`${e?.key} — accès au contenu brut (PHI), à accorder avec prudence`,HSe=e=>`${e?.key} — access to raw content (PHI), grant with caution`,USe=((e,t={})=>(t.locale??q())===`fr`?VSe(e):HSe(e)),WSe=()=>`Échec de l’initialisation des rôles`,GSe=()=>`Failed to initialize roles`,KSe=((e={},t={})=>(t.locale??q())===`fr`?WSe(e):GSe(e)),qSe=e=>`Modifier le rôle intégré « ${e?.name} » ?`,JSe=e=>`Edit the built-in role “${e?.name}”?`,YSe=((e,t={})=>(t.locale??q())===`fr`?qSe(e):JSe(e)),XSe=()=>`Les rôles intégrés sont la base du modèle de permissions. Les modifier peut affecter les comptes existants. Continuer ?`,ZSe=()=>`Built-in roles are the foundation of the permission model. Editing them may affect existing accounts. Continue?`,QSe=((e={},t={})=>(t.locale??q())===`fr`?XSe(e):ZSe(e)),$Se=()=>`Modifier`,eCe=()=>`Edit`,tCe=((e={},t={})=>(t.locale??q())===`fr`?$Se(e):eCe(e)),nCe=()=>`Échec de la mise à jour des permissions`,rCe=()=>`Failed to update permissions`,iCe=((e={},t={})=>(t.locale??q())===`fr`?nCe(e):rCe(e)),aCe=()=>`Échec de la création du rôle`,oCe=()=>`Failed to create role`,sCe=((e={},t={})=>(t.locale??q())===`fr`?aCe(e):oCe(e)),cCe=()=>`Matrice de permissions. Lignes = rôles (intégrés + personnalisés), colonnes = clés de permission. Le rôle`,lCe=()=>`Permission matrix. Rows = roles (built-in + custom), columns = permission keys. The`,uCe=((e={},t={})=>(t.locale??q())===`fr`?cCe(e):lCe(e)),dCe=()=>`détient le joker « * » (toutes les permissions) et est verrouillé. La colonne`,fCe=()=>`role holds the “*” wildcard (all permissions) and is locked. The`,pCe=((e={},t={})=>(t.locale??q())===`fr`?dCe(e):fCe(e)),mCe=()=>`donne accès au contenu brut (PHI) — à n’accorder qu’à bon escient.`,hCe=()=>`column grants access to raw content (PHI) — grant only when justified.`,gCe=((e={},t={})=>(t.locale??q())===`fr`?mCe(e):hCe(e)),_Ce=()=>`Rôles`,vCe=()=>`Roles`,yCe=((e={},t={})=>(t.locale??q())===`fr`?_Ce(e):vCe(e)),bCe=()=>`Ajouter un rôle`,xCe=()=>`Add a role`,SCe=((e={},t={})=>(t.locale??q())===`fr`?bCe(e):xCe(e)),CCe=()=>`Chargement…`,wCe=()=>`Loading…`,TCe=((e={},t={})=>(t.locale??q())===`fr`?CCe(e):wCe(e)),ECe=()=>`Initialisation des rôles…`,DCe=()=>`Initializing roles…`,OCe=((e={},t={})=>(t.locale??q())===`fr`?ECe(e):DCe(e)),kCe=()=>`Rôle`,ACe=()=>`Role`,jCe=((e={},t={})=>(t.locale??q())===`fr`?kCe(e):ACe(e)),MCe=()=>`intégré`,NCe=()=>`built-in`,PCe=((e={},t={})=>(t.locale??q())===`fr`?MCe(e):NCe(e)),FCe=()=>`personnalisé`,ICe=()=>`custom`,LCe=((e={},t={})=>(t.locale??q())===`fr`?FCe(e):ICe(e)),RCe=()=>`Authentifié mais pas encore approuvé — l’accès est bloqué tant qu’un administrateur n’a pas validé le compte.`,zCe=()=>`Authenticated but not yet approved — access is blocked until an admin approves the account.`,BCe=((e={},t={})=>(t.locale??q())===`fr`?RCe(e):zCe(e)),VCe=()=>`Personne approuvée, avec accès au chat.`,HCe=()=>`Approved person with chat access.`,UCe=((e={},t={})=>(t.locale??q())===`fr`?VCe(e):HCe(e)),WCe=()=>`Accès total (superset) : gère les utilisateurs, rôles, agents, instances et l’observabilité.`,GCe=()=>`Full access (superset): manages users, roles, agents, instances and observability.`,KCe=((e={},t={})=>(t.locale??q())===`fr`?WCe(e):GCe(e)),qCe=()=>`Compte de service en LECTURE SEULE pour superviser : voit les traces, KPI, anomalies et l’état du bridge/version via l’API. Ne peut rien écrire ni déclencher.`,JCe=()=>`READ-ONLY service account for monitoring: views traces, KPIs, anomalies and bridge/version status through the API. Cannot write or trigger anything.`,YCe=((e={},t={})=>(t.locale??q())===`fr`?qCe(e):JCe(e)),XCe=()=>`Compte de service pour un agent OpenClaw lui-même : tout ce que voit l’observateur, PLUS interroger OpenClaw et SIGNALER des anomalies (écriture — ex. heartbeat / auto-réparation). À utiliser pour un agent automatisé, pas pour un humain qui consulte les tableaux de bord.`,ZCe=()=>`Service account for an OpenClaw agent itself: the observer's read access PLUS querying OpenClaw and REPORTING anomalies (write — e.g. heartbeat / self-repair). Use it for an automated agent, not a human watching dashboards.`,QCe=((e={},t={})=>(t.locale??q())===`fr`?XCe(e):ZCe(e)),$Ce=()=>`Accordé via « * » (toutes les permissions)`,ewe=()=>`Granted via “*” (all permissions)`,twe=((e={},t={})=>(t.locale??q())===`fr`?$Ce(e):ewe(e)),nwe=()=>`Écriture en cours…`,rwe=()=>`Writing…`,iwe=((e={},t={})=>(t.locale??q())===`fr`?nwe(e):rwe(e)),awe=()=>`Nouveau rôle`,owe=()=>`New role`,swe=((e={},t={})=>(t.locale??q())===`fr`?awe(e):owe(e)),cwe=()=>`Rôle personnalisé. Ajustez les permissions dans la matrice après création.`,lwe=()=>`Custom role. Adjust the permissions in the matrix after creation.`,uwe=((e={},t={})=>(t.locale??q())===`fr`?cwe(e):lwe(e)),dwe=()=>`Créer`,fwe=()=>`Create`,pwe=((e={},t={})=>(t.locale??q())===`fr`?dwe(e):fwe(e)),mwe=()=>`Clé (identifiant stable)`,hwe=()=>`Key (stable identifier)`,gwe=((e={},t={})=>(t.locale??q())===`fr`?mwe(e):hwe(e)),_we=()=>`ex. analyst`,vwe=()=>`e.g. analyst`,ywe=((e={},t={})=>(t.locale??q())===`fr`?_we(e):vwe(e)),bwe=()=>`Nom affiché`,xwe=()=>`Display name`,Swe=((e={},t={})=>(t.locale??q())===`fr`?bwe(e):xwe(e)),Cwe=()=>`Description (optionnel)`,wwe=()=>`Description (optional)`,Twe=((e={},t={})=>(t.locale??q())===`fr`?Cwe(e):wwe(e)),Ewe=()=>`Ouvertes`,Dwe=()=>`Open`,Owe=((e={},t={})=>(t.locale??q())===`fr`?Ewe(e):Dwe(e)),kwe=()=>`En sourdine`,Awe=()=>`Muted`,jwe=((e={},t={})=>(t.locale??q())===`fr`?kwe(e):Awe(e)),Mwe=()=>`Résolues`,Nwe=()=>`Resolved`,Pwe=((e={},t={})=>(t.locale??q())===`fr`?Mwe(e):Nwe(e)),Fwe=()=>`Résoudre cette anomalie ?`,Iwe=()=>`Resolve this anomaly?`,Lwe=((e={},t={})=>(t.locale??q())===`fr`?Fwe(e):Iwe(e)),Rwe=()=>`L’anomalie`,zwe=()=>`The anomaly`,Bwe=((e={},t={})=>(t.locale??q())===`fr`?Rwe(e):zwe(e)),Vwe=()=>`sera marquée comme`,Hwe=()=>`will be marked as`,Uwe=((e={},t={})=>(t.locale??q())===`fr`?Vwe(e):Hwe(e)),Wwe=()=>`résolue`,Gwe=()=>`resolved`,Kwe=((e={},t={})=>(t.locale??q())===`fr`?Wwe(e):Gwe(e)),qwe=()=>`Elle sortira du décompte des anomalies ouvertes (signal de self-repair OpenClaw).`,Jwe=()=>`It will be removed from the open anomalies count (OpenClaw self-repair signal).`,Ywe=((e={},t={})=>(t.locale??q())===`fr`?qwe(e):Jwe(e)),Xwe=()=>`Résoudre`,Zwe=()=>`Resolve`,Qwe=((e={},t={})=>(t.locale??q())===`fr`?Xwe(e):Zwe(e)),$we=()=>`Anomalie résolue`,eTe=()=>`Anomaly resolved`,tTe=((e={},t={})=>(t.locale??q())===`fr`?$we(e):eTe(e)),nTe=()=>`Échec de la résolution`,rTe=()=>`Resolution failed`,iTe=((e={},t={})=>(t.locale??q())===`fr`?nTe(e):rTe(e)),aTe=()=>`Anomalie acquittée`,oTe=()=>`Anomaly acknowledged`,sTe=((e={},t={})=>(t.locale??q())===`fr`?aTe(e):oTe(e)),cTe=()=>`Échec de l’acquittement`,lTe=()=>`Acknowledgement failed`,uTe=((e={},t={})=>(t.locale??q())===`fr`?cTe(e):lTe(e)),dTe=()=>`Anomalies détectées (cron) ou signalées par les agents OpenClaw. Données non-PHI uniquement (type, sévérité, message, corrélation).`,fTe=()=>`Anomalies detected (cron) or reported by OpenClaw agents. Non-PHI data only (type, severity, message, correlation).`,pTe=((e={},t={})=>(t.locale??q())===`fr`?dTe(e):fTe(e)),mTe=()=>`Ouverte`,hTe=()=>`Open`,gTe=((e={},t={})=>(t.locale??q())===`fr`?mTe(e):hTe(e)),_Te=()=>`= active, elle alerte et compte dans le heartbeat.`,vTe=()=>`= active, it alerts and counts in the heartbeat.`,yTe=((e={},t={})=>(t.locale??q())===`fr`?_Te(e):vTe(e)),bTe=()=>`En sourdine`,xTe=()=>`Muted`,STe=((e={},t={})=>(t.locale??q())===`fr`?bTe(e):xTe(e)),CTe=()=>`= vue, plus d'alerte, mais pas forcément corrigée (les admins sont notifiés des nouvelles anomalies).`,wTe=()=>`= seen, no more alerts, but not necessarily fixed (admins are notified of new anomalies).`,TTe=((e={},t={})=>(t.locale??q())===`fr`?CTe(e):wTe(e)),ETe=()=>`Résolue`,DTe=()=>`Resolved`,OTe=((e={},t={})=>(t.locale??q())===`fr`?ETe(e):DTe(e)),kTe=()=>`= le problème est réglé (le détecteur résout automatiquement quand la condition cesse). Les deux la sortent du décompte heartbeat.`,ATe=()=>`= the problem is fixed (the detector resolves automatically when the condition clears). Both remove it from the heartbeat count.`,jTe=((e={},t={})=>(t.locale??q())===`fr`?kTe(e):ATe(e)),MTe=()=>`La plage temporelle filtre la fenêtre récente — une plage antérieure peut être partielle.`,NTe=()=>`The time range filters the recent window — an earlier range may be partial.`,PTe=((e={},t={})=>(t.locale??q())===`fr`?MTe(e):NTe(e)),FTe=()=>`Rechercher (message, type, corrélation)`,ITe=()=>`Search (message, type, correlation)`,LTe=((e={},t={})=>(t.locale??q())===`fr`?FTe(e):ITe(e)),RTe=()=>`Tous les statuts`,zTe=()=>`All statuses`,BTe=((e={},t={})=>(t.locale??q())===`fr`?RTe(e):zTe(e)),VTe=()=>`Sévérité`,HTe=()=>`Severity`,dQ=((e={},t={})=>(t.locale??q())===`fr`?VTe(e):HTe(e)),UTe=()=>`Toutes sévérités`,WTe=()=>`All severities`,GTe=((e={},t={})=>(t.locale??q())===`fr`?UTe(e):WTe(e)),KTe=()=>`Source`,qTe=()=>`Source`,fQ=((e={},t={})=>(t.locale??q())===`fr`?KTe(e):qTe(e)),JTe=()=>`Toutes sources`,YTe=()=>`All sources`,XTe=((e={},t={})=>(t.locale??q())===`fr`?JTe(e):YTe(e)),ZTe=()=>`Type`,QTe=()=>`Type`,pQ=((e={},t={})=>(t.locale??q())===`fr`?ZTe(e):QTe(e)),$Te=()=>`Tous les types`,eEe=()=>`All types`,tEe=((e={},t={})=>(t.locale??q())===`fr`?$Te(e):eEe(e)),nEe=()=>`Anomalies`,rEe=()=>`Anomalies`,iEe=((e={},t={})=>(t.locale??q())===`fr`?nEe(e):rEe(e)),aEe=()=>`Aucune anomalie ouverte. 🎉`,oEe=()=>`No open anomalies. 🎉`,sEe=((e={},t={})=>(t.locale??q())===`fr`?aEe(e):oEe(e)),cEe=()=>`Aucune anomalie enregistrée.`,lEe=()=>`No anomalies recorded.`,uEe=((e={},t={})=>(t.locale??q())===`fr`?cEe(e):lEe(e)),dEe=()=>`Résoudre (corrigé)`,fEe=()=>`Resolve (fixed)`,pEe=((e={},t={})=>(t.locale??q())===`fr`?dEe(e):fEe(e)),mEe=()=>`Marquer comme vue (sourdine)`,hEe=()=>`Mark as seen (mute)`,gEe=((e={},t={})=>(t.locale??q())===`fr`?mEe(e):hEe(e)),_Ee=()=>`Quand`,vEe=()=>`When`,yEe=((e={},t={})=>(t.locale??q())===`fr`?_Ee(e):vEe(e)),bEe=()=>`Statut`,xEe=()=>`Status`,SEe=((e={},t={})=>(t.locale??q())===`fr`?bEe(e):xEe(e)),CEe=()=>`Message`,wEe=()=>`Message`,TEe=((e={},t={})=>(t.locale??q())===`fr`?CEe(e):wEe(e)),EEe=()=>`Cause & correctif`,DEe=()=>`Cause & fix`,OEe=((e={},t={})=>(t.locale??q())===`fr`?EEe(e):DEe(e)),kEe=()=>`Corrélation`,AEe=()=>`Correlation`,jEe=((e={},t={})=>(t.locale??q())===`fr`?kEe(e):AEe(e)),MEe=()=>`Voir la trace`,NEe=()=>`View trace`,PEe=((e={},t={})=>(t.locale??q())===`fr`?MEe(e):NEe(e)),FEe=()=>`ouverte`,IEe=()=>`open`,LEe=((e={},t={})=>(t.locale??q())===`fr`?FEe(e):IEe(e)),REe=()=>`en sourdine`,zEe=()=>`muted`,BEe=((e={},t={})=>(t.locale??q())===`fr`?REe(e):zEe(e)),VEe=()=>`résolue`,HEe=()=>`resolved`,UEe=((e={},t={})=>(t.locale??q())===`fr`?VEe(e):HEe(e)),WEe=()=>`Réponse incorrecte`,GEe=()=>`Incorrect response`,KEe=((e={},t={})=>(t.locale??q())===`fr`?WEe(e):GEe(e)),qEe=()=>`Incohérence`,JEe=()=>`Inconsistency`,YEe=((e={},t={})=>(t.locale??q())===`fr`?qEe(e):JEe(e)),XEe=()=>`Mots / orthographe erronés`,ZEe=()=>`Wrong words / spelling`,QEe=((e={},t={})=>(t.locale??q())===`fr`?XEe(e):ZEe(e)),$Ee=()=>`Formatage`,eDe=()=>`Formatting`,tDe=((e={},t={})=>(t.locale??q())===`fr`?$Ee(e):eDe(e)),nDe=()=>`Latence`,rDe=()=>`Latency`,iDe=((e={},t={})=>(t.locale??q())===`fr`?nDe(e):rDe(e)),aDe=()=>`Erreur API`,oDe=()=>`API error`,sDe=((e={},t={})=>(t.locale??q())===`fr`?aDe(e):oDe(e)),cDe=()=>`Autre`,lDe=()=>`Other`,mQ=((e={},t={})=>(t.locale??q())===`fr`?cDe(e):lDe(e)),uDe=()=>`Mots modifiés à l'envoi`,dDe=()=>`Words altered on send`,fDe=((e={},t={})=>(t.locale??q())===`fr`?uDe(e):dDe(e)),pDe=()=>`Caractères / mise en forme altérés`,mDe=()=>`Characters / formatting altered`,hDe=((e={},t={})=>(t.locale??q())===`fr`?pDe(e):mDe(e)),gDe=()=>`Signaler un problème`,_De=()=>`Report an issue`,vDe=((e={},t={})=>(t.locale??q())===`fr`?gDe(e):_De(e)),yDe=()=>`Merci. Un instantané complet de ce message a été figé pour analyse.`,bDe=()=>`Thank you. A complete snapshot of this message has been frozen for analysis.`,xDe=((e={},t={})=>(t.locale??q())===`fr`?yDe(e):bDe(e)),SDe=()=>`Signalez un problème avec votre message tel qu'il a été envoyé. Un instantané forensique exact est enregistré.`,CDe=()=>`Report an issue with your message as it was sent. An exact forensic snapshot is recorded.`,wDe=((e={},t={})=>(t.locale??q())===`fr`?SDe(e):CDe(e)),TDe=()=>`Signalez un problème avec cette réponse. Un instantané forensique exact est enregistré au moment de l'envoi.`,EDe=()=>`Report an issue with this response. An exact forensic snapshot is recorded at send time.`,DDe=((e={},t={})=>(t.locale??q())===`fr`?TDe(e):EDe(e)),ODe=()=>`✓ Le texte affiché (vue source) correspond exactement, caractère pour caractère, au texte stocké côté serveur. La comparaison est figée comme preuve.`,kDe=()=>`✓ The displayed text (source view) matches exactly, character for character, the text stored on the server. The comparison is frozen as evidence.`,ADe=((e={},t={})=>(t.locale??q())===`fr`?ODe(e):kDe(e)),jDe=()=>`⚠ Écart détecté entre le texte affiché (vue source) et le texte stocké. L'instantané a figé les deux versions.`,MDe=()=>`⚠ Discrepancy detected between the displayed text (source view) and the stored text. The snapshot has frozen both versions.`,NDe=((e={},t={})=>(t.locale??q())===`fr`?jDe(e):MDe(e)),PDe=()=>`Instantané enregistré. Pour vérifier que l'affichage n'altère aucun caractère, ouvrez la vue source (</>) sur ce message puis signalez à nouveau : la comparaison portera alors sur le texte réellement affiché par le navigateur.`,FDe=()=>`Snapshot recorded. To verify that the display does not alter any character, open the source view (</>) on this message then report again: the comparison will then be on the text actually rendered by the browser.`,IDe=((e={},t={})=>(t.locale??q())===`fr`?PDe(e):FDe(e)),LDe=()=>`Catégorie`,RDe=()=>`Category`,zDe=((e={},t={})=>(t.locale??q())===`fr`?LDe(e):RDe(e)),BDe=()=>`Choisir une catégorie`,VDe=()=>`Choose a category`,HDe=((e={},t={})=>(t.locale??q())===`fr`?BDe(e):VDe(e)),UDe=()=>`Commentaire`,WDe=()=>`Comment`,GDe=((e={},t={})=>(t.locale??q())===`fr`?UDe(e):WDe(e)),KDe=()=>`Décrivez le problème…`,qDe=()=>`Describe the issue…`,JDe=((e={},t={})=>(t.locale??q())===`fr`?KDe(e):qDe(e)),YDe=()=>`Fermer`,XDe=()=>`Close`,ZDe=((e={},t={})=>(t.locale??q())===`fr`?YDe(e):XDe(e)),QDe=()=>`Annuler`,$De=()=>`Cancel`,eOe=((e={},t={})=>(t.locale??q())===`fr`?QDe(e):$De(e)),tOe=()=>`Envoi…`,nOe=()=>`Sending…`,rOe=((e={},t={})=>(t.locale??q())===`fr`?tOe(e):nOe(e)),iOe=()=>`Envoyer`,aOe=()=>`Send`,oOe=((e={},t={})=>(t.locale??q())===`fr`?iOe(e):aOe(e)),sOe=()=>`Problème signalé`,cOe=()=>`Issue reported`,lOe=((e={},t={})=>(t.locale??q())===`fr`?sOe(e):cOe(e)),uOe=()=>`Signaler un problème`,dOe=()=>`Report an issue`,fOe=((e={},t={})=>(t.locale??q())===`fr`?uOe(e):dOe(e)),pOe=()=>`Signaler un problème avec ce message`,mOe=()=>`Report an issue with this message`,hOe=((e={},t={})=>(t.locale??q())===`fr`?pOe(e):mOe(e)),gOe=()=>`Événements récents (fenêtre bornée, plus récents d’abord). Toutes les traces sont des métadonnées `,_Oe=()=>`Recent events (bounded window, newest first). All traces are redacted metadata `,vOe=((e={},t={})=>(t.locale??q())===`fr`?gOe(e):_Oe(e)),yOe=()=>`expurgées`,bOe=()=>`redacted`,xOe=((e={},t={})=>(t.locale??q())===`fr`?yOe(e):bOe(e)),SOe=()=>` : aucun contenu de message, pièce jointe ou jeton n’est stocké — uniquement des longueurs, codes et indicateurs.`,COe=()=>`: no message content, attachment or token is stored — only lengths, codes and flags.`,wOe=((e={},t={})=>(t.locale??q())===`fr`?SOe(e):COe(e)),TOe=()=>`La plage temporelle filtre la fenêtre récente — une plage antérieure peut être partielle.`,EOe=()=>`The time range filters the recent window — an older range may be partial.`,DOe=((e={},t={})=>(t.locale??q())===`fr`?TOe(e):EOe(e)),OOe=()=>`Rechercher (kind, principal, rôle, route, correlationId)`,kOe=()=>`Search (kind, principal, role, route, correlationId)`,AOe=((e={},t={})=>(t.locale??q())===`fr`?OOe(e):kOe(e)),jOe=()=>`Statut`,MOe=()=>`Status`,NOe=((e={},t={})=>(t.locale??q())===`fr`?jOe(e):MOe(e)),POe=()=>`Tous statuts`,FOe=()=>`All statuses`,IOe=((e={},t={})=>(t.locale??q())===`fr`?POe(e):FOe(e)),LOe=()=>`Principal`,ROe=()=>`Principal`,zOe=((e={},t={})=>(t.locale??q())===`fr`?LOe(e):ROe(e)),BOe=()=>`Tous principaux`,VOe=()=>`All principals`,HOe=((e={},t={})=>(t.locale??q())===`fr`?BOe(e):VOe(e)),UOe=()=>`Direction`,WOe=()=>`Direction`,GOe=((e={},t={})=>(t.locale??q())===`fr`?UOe(e):WOe(e)),KOe=()=>`Toutes directions`,qOe=()=>`All directions`,JOe=((e={},t={})=>(t.locale??q())===`fr`?KOe(e):qOe(e)),YOe=()=>`Rôle`,XOe=()=>`Role`,ZOe=((e={},t={})=>(t.locale??q())===`fr`?YOe(e):XOe(e)),QOe=()=>`Tous les rôles`,$Oe=()=>`All roles`,eke=((e={},t={})=>(t.locale??q())===`fr`?QOe(e):$Oe(e)),tke=()=>`Tous les kinds`,nke=()=>`All kinds`,rke=((e={},t={})=>(t.locale??q())===`fr`?tke(e):nke(e)),ike=()=>`tous les kinds`,ake=()=>`all kinds`,oke=((e={},t={})=>(t.locale??q())===`fr`?ike(e):ake(e)),ske=e=>`${e?.count} lignes`,cke=e=>`${e?.count} rows`,lke=((e,t={})=>(t.locale??q())===`fr`?ske(e):cke(e)),uke=()=>`Effacer le filtre de corrélation`,dke=()=>`Clear correlation filter`,fke=((e={},t={})=>(t.locale??q())===`fr`?uke(e):dke(e)),pke=()=>`filtre: correlationId=`,mke=()=>`filter: correlationId=`,hke=((e={},t={})=>(t.locale??q())===`fr`?pke(e):mke(e)),gke=()=>`Effacer`,_ke=()=>`Clear`,vke=((e={},t={})=>(t.locale??q())===`fr`?gke(e):_ke(e)),yke=()=>`Traces`,bke=()=>`Traces`,xke=((e={},t={})=>(t.locale??q())===`fr`?yke(e):bke(e)),Ske=()=>`Aucun événement pour cette corrélation dans la fenêtre.`,Cke=()=>`No event for this correlation in the window.`,wke=((e={},t={})=>(t.locale??q())===`fr`?Ske(e):Cke(e)),Tke=()=>`Aucun événement tracé pour l’instant.`,Eke=()=>`No traced event yet.`,Dke=((e={},t={})=>(t.locale??q())===`fr`?Tke(e):Eke(e)),Oke=()=>`Quand`,kke=()=>`When`,Ake=((e={},t={})=>(t.locale??q())===`fr`?Oke(e):kke(e)),jke=()=>`Kind`,Mke=()=>`Kind`,Nke=((e={},t={})=>(t.locale??q())===`fr`?jke(e):Mke(e)),Pke=()=>`Résultat`,Fke=()=>`Result`,Ike=((e={},t={})=>(t.locale??q())===`fr`?Pke(e):Fke(e)),Lke=()=>`ok`,Rke=()=>`ok`,zke=((e={},t={})=>(t.locale??q())===`fr`?Lke(e):Rke(e)),Bke=()=>`Direction`,Vke=()=>`Direction`,Hke=((e={},t={})=>(t.locale??q())===`fr`?Bke(e):Vke(e)),Uke=()=>`Principal`,Wke=()=>`Principal`,Gke=((e={},t={})=>(t.locale??q())===`fr`?Uke(e):Wke(e)),Kke=()=>`Rôle`,qke=()=>`Role`,Jke=((e={},t={})=>(t.locale??q())===`fr`?Kke(e):qke(e)),Yke=()=>`Route`,Xke=()=>`Route`,Zke=((e={},t={})=>(t.locale??q())===`fr`?Yke(e):Xke(e)),Qke=()=>`Statut`,$ke=()=>`Status`,eAe=((e={},t={})=>(t.locale??q())===`fr`?Qke(e):$ke(e)),tAe=()=>`Latence`,nAe=()=>`Latency`,rAe=((e={},t={})=>(t.locale??q())===`fr`?tAe(e):nAe(e)),iAe=()=>`Corrélation`,aAe=()=>`Correlation`,oAe=((e={},t={})=>(t.locale??q())===`fr`?iAe(e):aAe(e)),sAe=()=>`Suivre ce tour (filtrer par correlationId)`,cAe=()=>`Follow this turn (filter by correlationId)`,lAe=((e={},t={})=>(t.locale??q())===`fr`?sAe(e):cAe(e)),uAe=()=>`Meta`,dAe=()=>`Meta`,fAe=((e={},t={})=>(t.locale??q())===`fr`?uAe(e):dAe(e)),pAe=()=>`Voir`,mAe=()=>`View`,hAe=((e={},t={})=>(t.locale??q())===`fr`?pAe(e):mAe(e)),gAe=()=>`Meta ·`,_Ae=()=>`Meta ·`,vAe=((e={},t={})=>(t.locale??q())===`fr`?gAe(e):_Ae(e)),yAe=()=>`expurgé`,bAe=()=>`redacted`,xAe=((e={},t={})=>(t.locale??q())===`fr`?yAe(e):bAe(e)),SAe=()=>`Métadonnées non-PHI uniquement (longueurs, codes, indicateurs). Aucun contenu de message n’est stocké.`,CAe=()=>`Non-PHI metadata only (lengths, codes, flags). No message content is stored.`,wAe=((e={},t={})=>(t.locale??q())===`fr`?SAe(e):CAe(e)),TAe=()=>`Chargement…`,EAe=()=>`Loading…`,hQ=((e={},t={})=>(t.locale??q())===`fr`?TAe(e):EAe(e)),DAe=()=>`Connexion refusée. Le domaine de ce compte n’est pas autorisé.`,OAe=()=>`Sign-in refused. This account’s email domain is not allowed.`,kAe=((e={},t={})=>(t.locale??q())===`fr`?DAe(e):OAe(e)),AAe=()=>`Bon retour`,jAe=()=>`Welcome back`,MAe=((e={},t={})=>(t.locale??q())===`fr`?AAe(e):jAe(e)),NAe=()=>`Connectez-vous pour continuer`,PAe=()=>`Sign in to continue`,FAe=((e={},t={})=>(t.locale??q())===`fr`?NAe(e):PAe(e)),IAe=()=>`Se connecter avec Google`,LAe=()=>`Sign in with Google`,RAe=((e={},t={})=>(t.locale??q())===`fr`?IAe(e):LAe(e)),zAe=()=>`Aucun mode de connexion configuré.`,BAe=()=>`No sign-in method configured.`,VAe=((e={},t={})=>(t.locale??q())===`fr`?zAe(e):BAe(e)),HAe=()=>`Continuer (dev, sans compte)`,UAe=()=>`Continue (dev, no account)`,WAe=((e={},t={})=>(t.locale??q())===`fr`?HAe(e):UAe(e)),GAe=()=>`Compte`,KAe=()=>`Account`,qAe=((e={},t={})=>(t.locale??q())===`fr`?GAe(e):KAe(e)),JAe=()=>`En attente d’approbation`,YAe=()=>`Awaiting approval`,XAe=((e={},t={})=>(t.locale??q())===`fr`?JAe(e):YAe(e)),ZAe=()=>`Ton compte est créé mais doit être approuvé par un administrateur avant d’accéder au chat.`,QAe=()=>`Your account has been created but must be approved by an administrator before you can access the chat.`,$Ae=((e={},t={})=>(t.locale??q())===`fr`?ZAe(e):QAe(e)),eje=()=>`Vous explorez l’application en tant que`,tje=()=>`You are exploring the application as`,nje=((e={},t={})=>(t.locale??q())===`fr`?eje(e):tje(e)),rje=()=>`. Toute action est exécutée et tracée en votre nom (`,ije=()=>`. Every action is executed and traced in your name (`,aje=((e={},t={})=>(t.locale??q())===`fr`?rje(e):ije(e)),oje=()=>`).`,sje=()=>`).`,cje=((e={},t={})=>(t.locale??q())===`fr`?oje(e):sje(e)),lje=()=>`Quitter`,uje=()=>`Exit`,dje=((e={},t={})=>(t.locale??q())===`fr`?lje(e):uje(e)),fje=()=>`Afficher la barre latérale`,pje=()=>`Show sidebar`,mje=((e={},t={})=>(t.locale??q())===`fr`?fje(e):pje(e)),hje=()=>`Réduire la barre latérale`,gje=()=>`Collapse sidebar`,_je=((e={},t={})=>(t.locale??q())===`fr`?hje(e):gje(e)),vje=()=>`Paramètres`,yje=()=>`Settings`,bje=((e={},t={})=>(t.locale??q())===`fr`?vje(e):yje(e)),xje=()=>`Redimensionner la barre latérale`,Sje=()=>`Resize sidebar`,Cje=((e={},t={})=>(t.locale??q())===`fr`?xje(e):Sje(e)),wje=()=>`Accès non autorisé`,Tje=()=>`Access denied`,Eje=((e={},t={})=>(t.locale??q())===`fr`?wje(e):Tje(e)),Dje=()=>`Vous n’avez pas la permission de consulter cet onglet. Choisissez un onglet disponible dans le menu, ou contactez votre administrateur.`,Oje=()=>`You do not have permission to view this tab. Choose an available tab from the menu, or contact your administrator.`,kje=((e={},t={})=>(t.locale??q())===`fr`?Dje(e):Oje(e)),Aje=()=>`Une erreur est survenue`,jje=()=>`Something went wrong`,Mje=((e={},t={})=>(t.locale??q())===`fr`?Aje(e):jje(e)),Nje=()=>`Cette page n’a pas pu être affichée. Réessayez, ou revenez à l’accueil. Si le problème persiste, contactez votre administrateur.`,Pje=()=>`This page could not be displayed. Try again, or return home. If the problem persists, contact your administrator.`,Fje=((e={},t={})=>(t.locale??q())===`fr`?Nje(e):Pje(e)),Ije=()=>`Réessayer`,Lje=()=>`Retry`,Rje=((e={},t={})=>(t.locale??q())===`fr`?Ije(e):Lje(e)),zje=()=>`Accueil`,Bje=()=>`Home`,gQ=((e={},t={})=>(t.locale??q())===`fr`?zje(e):Bje(e)),Vje=()=>`Page introuvable`,Hje=()=>`Page not found`,Uje=((e={},t={})=>(t.locale??q())===`fr`?Vje(e):Hje(e)),Wje=()=>`Cette adresse ne correspond à aucune page de l’application.`,Gje=()=>`This address does not match any page in the application.`,Kje=((e={},t={})=>(t.locale??q())===`fr`?Wje(e):Gje(e)),qje=e=>`Agents de ${e?.user}`,Jje=e=>`${e?.user}'s agents`,Yje=((e,t={})=>(t.locale??q())===`fr`?qje(e):Jje(e)),Xje=()=>`Associez les agents découverts (par instance) et désignez l'agent par défaut. Au moins un agent est requis pour créer des conversations.`,Zje=()=>`Assign the discovered agents (per instance) and designate the default agent. At least one agent is required to create conversations.`,Qje=((e={},t={})=>(t.locale??q())===`fr`?Xje(e):Zje(e)),$je=()=>`Agents des groupes du membre. Cochez pour restreindre à une sélection ; sans coche, le membre voit tous ces agents.`,eMe=()=>`The member's group agents. Check to restrict to a selection; with none checked, the member sees all of them.`,tMe=((e={},t={})=>(t.locale??q())===`fr`?$je(e):eMe(e)),nMe=()=>`Le membre n'appartient à aucun groupe : il voit tous les agents. Cochez pour restreindre à une sélection.`,rMe=()=>`The member belongs to no group, so they see every agent. Check to restrict to a selection.`,iMe=((e={},t={})=>(t.locale??q())===`fr`?nMe(e):rMe(e)),aMe=()=>`Chargement…`,oMe=()=>`Loading…`,sMe=((e={},t={})=>(t.locale??q())===`fr`?aMe(e):oMe(e)),cMe=()=>`Mise à jour de l'accès refusée`,lMe=()=>`Access update denied`,uMe=((e={},t={})=>(t.locale??q())===`fr`?cMe(e):lMe(e)),dMe=()=>`Définition de l'agent par défaut refusée`,fMe=()=>`Setting the default agent was denied`,pMe=((e={},t={})=>(t.locale??q())===`fr`?dMe(e):fMe(e)),mMe=()=>`Aucun agent découvert.`,hMe=()=>`No agent discovered.`,gMe=((e={},t={})=>(t.locale??q())===`fr`?mMe(e):hMe(e)),_Me=e=>`Assigner ${e?.name}`,vMe=e=>`Assign ${e?.name}`,yMe=((e,t={})=>(t.locale??q())===`fr`?_Me(e):vMe(e)),bMe=()=>`supprimé`,xMe=()=>`removed`,SMe=((e={},t={})=>(t.locale??q())===`fr`?bMe(e):xMe(e)),CMe=()=>`hors groupe`,wMe=()=>`outside group`,TMe=((e={},t={})=>(t.locale??q())===`fr`?CMe(e):wMe(e)),EMe=()=>`Agent par défaut`,DMe=()=>`Default agent`,_Q=((e={},t={})=>(t.locale??q())===`fr`?EMe(e):DMe(e)),OMe=()=>`Définir comme agent par défaut`,kMe=()=>`Set as default agent`,vQ=((e={},t={})=>(t.locale??q())===`fr`?OMe(e):kMe(e)),AMe=e=>`Configurer l'instance « ${e?.instance} »`,jMe=e=>`Configure instance « ${e?.instance} »`,MMe=((e,t={})=>(t.locale??q())===`fr`?AMe(e):jMe(e)),NMe=()=>`Configurer`,PMe=()=>`Configure`,yQ=((e={},t={})=>(t.locale??q())===`fr`?NMe(e):PMe(e)),FMe=()=>`Config non-secrète du bridge, appliquée à chaud au message suivant (sans redémarrage). Les secrets (tokens, device identity) vivent dans l’environnement du bridge, jamais ici.`,IMe=()=>`Non-secret bridge config, applied hot on the next message (no restart). Secrets (tokens, device identity) live in the bridge environment, never here.`,LMe=((e={},t={})=>(t.locale??q())===`fr`?FMe(e):IMe(e)),RMe=()=>`Aucune instance — ajoutez-en une dans Agents › Instances d’abord.`,zMe=()=>`No instances yet — add one under Agents › Instances first.`,BMe=((e={},t={})=>(t.locale??q())===`fr`?RMe(e):zMe(e)),VMe=()=>`Mode média sortant`,HMe=()=>`Outbound media mode`,UMe=((e={},t={})=>(t.locale??q())===`fr`?VMe(e):HMe(e)),WMe=()=>`Mode média entrant`,GMe=()=>`Inbound media mode`,KMe=((e={},t={})=>(t.locale??q())===`fr`?WMe(e):GMe(e)),qMe=()=>`Taille média max (Mo)`,JMe=()=>`Max media size (MB)`,YMe=((e={},t={})=>(t.locale??q())===`fr`?qMe(e):JMe(e)),XMe=()=>`Ré-hydratation de session`,ZMe=()=>`Session re-hydration`,QMe=((e={},t={})=>(t.locale??q())===`fr`?XMe(e):ZMe(e)),$Me=()=>`Enregistrer`,eNe=()=>`Save`,tNe=((e={},t={})=>(t.locale??q())===`fr`?$Me(e):eNe(e)),nNe=()=>`Impossible d’enregistrer la configuration`,rNe=()=>`Could not save the configuration`,iNe=((e={},t={})=>(t.locale??q())===`fr`?nNe(e):rNe(e)),aNe=()=>`Comment le bridge récupère les fichiers SORTANTS (générés par l’agent) pour les héberger : gateway-http (via HTTP depuis la gateway — aucun système de fichiers partagé requis, défaut portable), shared-fs (lit un volume partagé monté), ou off (aucune pièce jointe sortante).`,oNe=()=>`How the bridge fetches OUTBOUND (agent-generated) files to host them: gateway-http (over HTTP from the gateway — no shared filesystem needed, the portable default), shared-fs (read a mounted shared volume), or off (no outbound attachments).`,sNe=((e={},t={})=>(t.locale??q())===`fr`?aNe(e):oNe(e)),cNe=()=>`Comment les fichiers téléversés atteignent l’agent : inline (base64 dans la trame du chat — plafonné par la taille de trame de la gateway), ou shared-fs (streamé vers un volume partagé et référencé par chemin — toute taille, pour les grosses vidéos/audio/docs).`,lNe=()=>`How user-uploaded files reach the agent: inline (base64 in the chat frame — capped by the gateway frame size), or shared-fs (streamed to a shared volume and referenced by path — any size, for large videos/audio/docs).`,uNe=((e={},t={})=>(t.locale??q())===`fr`?cNe(e):lNe(e)),dNe=()=>`Plafond de taille par fichier (Mo). En mode shared-fs il peut être élevé (les fichiers sont streamés sur disque) ; pour l’inline, la vraie limite est la taille de trame de la gateway.`,fNe=()=>`Per-file size cap (MB). In shared-fs mode this can be large (files stream to disk); for inline files the gateway frame size is the real limit.`,pNe=((e={},t={})=>(t.locale??q())===`fr`?dNe(e):fNe(e)),mNe=()=>`Sur une session gateway fraîche/réinitialisée, renvoie les tours précédents pour que le contexte du modèle corresponde au fil visible. Désactiver pour n’envoyer que le message courant.`,hNe=()=>`On a fresh/rolled gateway session, re-send prior turns so the model's context matches the visible thread. Disable to always send only the current message.`,gNe=((e={},t={})=>(t.locale??q())===`fr`?mNe(e):hNe(e)),_Ne=()=>`Chemin entrant (vu par l’agent)`,vNe=()=>`Inbound path (agent view)`,yNe=((e={},t={})=>(t.locale??q())===`fr`?_Ne(e):vNe(e)),bNe=()=>`Le chemin DANS le conteneur de la gateway où l’agent LIT les fichiers entrants déposés — le montage du volume partagé côté gateway (ex. /home/node/.openclaw/media/inbound). Doit correspondre à ton montage de volume Docker.`,xNe=()=>`The path INSIDE the gateway container where the agent READS staged inbound files — the gateway's mount of the shared volume (e.g. /home/node/.openclaw/media/inbound). Must match your Docker volume mount.`,SNe=((e={},t={})=>(t.locale??q())===`fr`?bNe(e):xNe(e)),CNe=()=>`Chemin sortant (vu par l’agent)`,wNe=()=>`Outbound path (agent view)`,TNe=((e={},t={})=>(t.locale??q())===`fr`?CNe(e):wNe(e)),ENe=()=>`Le chemin DANS le conteneur de la gateway où l’agent ÉCRIT un fichier généré avant d’émettre MEDIA:<chemin> (ex. /home/node/.openclaw/media/outbound). Doit être accessible en écriture par l’agent dans le conteneur.`,DNe=()=>`The path INSIDE the gateway container where the agent WRITES a generated file before emitting MEDIA:<path> (e.g. /home/node/.openclaw/media/outbound). Must be writable by the agent in the container.`,ONe=((e={},t={})=>(t.locale??q())===`fr`?ENe(e):DNe(e)),kNe=()=>`Vérifier les chemins`,ANe=()=>`Check paths`,jNe=((e={},t={})=>(t.locale??q())===`fr`?kNe(e):ANe(e)),MNe=()=>`Vérification…`,NNe=()=>`Checking…`,PNe=((e={},t={})=>(t.locale??q())===`fr`?MNe(e):NNe(e)),FNe=()=>`Échec de la vérification des chemins`,INe=()=>`Path check failed`,LNe=((e={},t={})=>(t.locale??q())===`fr`?FNe(e):INe(e)),RNe=()=>`Vérifie l’accès du BRIDGE aux dossiers partagés. Le montage côté agent (dans le conteneur de la gateway) est à vérifier séparément.`,zNe=()=>`Checks the BRIDGE's access to the shared dirs. The agent-side mount (inside the gateway container) must be verified separately.`,BNe=((e={},t={})=>(t.locale??q())===`fr`?RNe(e):zNe(e)),VNe=()=>`Entrant (écriture bridge)`,HNe=()=>`Inbound (bridge write)`,UNe=((e={},t={})=>(t.locale??q())===`fr`?VNe(e):HNe(e)),WNe=()=>`Sortant (lecture bridge)`,GNe=()=>`Outbound (bridge read)`,KNe=((e={},t={})=>(t.locale??q())===`fr`?WNe(e):GNe(e)),qNe=()=>`Accessible`,JNe=()=>`Accessible`,YNe=((e={},t={})=>(t.locale??q())===`fr`?qNe(e):JNe(e)),XNe=()=>`Non concerné (pas shared-fs)`,ZNe=()=>`Not applicable (not shared-fs)`,QNe=((e={},t={})=>(t.locale??q())===`fr`?XNe(e):ZNe(e)),$Ne=()=>`Bridge injoignable — vérification impossible`,ePe=()=>`Bridge unreachable — could not check`,tPe=((e={},t={})=>(t.locale??q())===`fr`?$Ne(e):ePe(e)),nPe=e=>`Bridge joignable mais la vérification a échoué (${e?.reason})`,rPe=e=>`Bridge reachable but the check failed (${e?.reason})`,iPe=((e,t={})=>(t.locale??q())===`fr`?nPe(e):rPe(e)),aPe=()=>`Santé du bridge — sondage actif toutes les minutes. Données non-secrètes uniquement : joignabilité, état des connexions, dernière cause d’échec. Les secrets (tokens, device identity) vivent dans l’environnement du bridge, jamais ici.`,oPe=()=>`Bridge health — active poll every minute. Non-secret data only: reachability, connection states, last failure cause. Secrets (tokens, device identity) live in the bridge environment, never here.`,sPe=((e={},t={})=>(t.locale??q())===`fr`?aPe(e):oPe(e)),cPe=()=>`Chargement…`,lPe=()=>`Loading…`,bQ=((e={},t={})=>(t.locale??q())===`fr`?cPe(e):lPe(e)),uPe=()=>`Aucun relevé pour l’instant — le sondage tourne chaque minute. Reviens dans un moment.`,dPe=()=>`No reading yet — the poll runs every minute. Check back in a moment.`,fPe=((e={},t={})=>(t.locale??q())===`fr`?uPe(e):dPe(e)),pPe=()=>`Bridge opérationnel`,mPe=()=>`Bridge operational`,hPe=((e={},t={})=>(t.locale??q())===`fr`?pPe(e):mPe(e)),gPe=()=>`Bridge injoignable`,_Pe=()=>`Bridge unreachable`,vPe=((e={},t={})=>(t.locale??q())===`fr`?gPe(e):_Pe(e)),yPe=e=>`Bridge : ${e?.count} connexion(s) en erreur`,bPe=e=>`Bridge: ${e?.count} connection(s) in error`,xPe=((e,t={})=>(t.locale??q())===`fr`?yPe(e):bPe(e)),SPe=e=>`Vérifié à ${e?.time}`,CPe=e=>`Checked at ${e?.time}`,wPe=((e,t={})=>(t.locale??q())===`fr`?SPe(e):CPe(e)),TPe=e=>`· Bridge démarré le ${e?.time}`,EPe=e=>`· Bridge started on ${e?.time}`,DPe=((e,t={})=>(t.locale??q())===`fr`?TPe(e):EPe(e)),OPe=()=>`↗ Anomalies`,kPe=()=>`↗ Anomalies`,APe=((e={},t={})=>(t.locale??q())===`fr`?OPe(e):kPe(e)),jPe=e=>`Connexions (${e?.count})`,MPe=e=>`Connections (${e?.count})`,NPe=((e,t={})=>(t.locale??q())===`fr`?jPe(e):MPe(e)),PPe=()=>`Aucune connexion encore éprouvée. L’état d’une connexion apparaît dès qu’un message la sollicite (le bridge se connecte à la demande).`,FPe=()=>`No connection tested yet. A connection's state appears as soon as a message exercises it (the bridge connects on demand).`,IPe=((e={},t={})=>(t.locale??q())===`fr`?PPe(e):FPe(e)),LPe=e=>`${e?.ok} OK · ${e?.errors} échec(s) · ${e?.attempts} tentative(s)`,RPe=e=>`${e?.ok} OK · ${e?.errors} failure(s) · ${e?.attempts} attempt(s)`,zPe=((e,t={})=>(t.locale??q())===`fr`?LPe(e):RPe(e)),BPe=e=>`Rejeté par la passerelle : ${e?.label} — pas une défaillance du bridge.`,VPe=e=>`Rejected by the gateway: ${e?.label} — not a bridge fault.`,HPe=((e,t={})=>(t.locale??q())===`fr`?BPe(e):VPe(e)),UPe=()=>`Filtrer par cible ou hôte…`,WPe=()=>`Filter by target or host…`,GPe=((e={},t={})=>(t.locale??q())===`fr`?UPe(e):WPe(e)),KPe=()=>`Tous`,qPe=()=>`All`,xQ=((e={},t={})=>(t.locale??q())===`fr`?KPe(e):qPe(e)),JPe=()=>`État`,YPe=()=>`State`,XPe=((e={},t={})=>(t.locale??q())===`fr`?JPe(e):YPe(e)),ZPe=()=>`Instance`,QPe=()=>`Instance`,$Pe=((e={},t={})=>(t.locale??q())===`fr`?ZPe(e):QPe(e)),eFe=()=>`Version`,tFe=()=>`Version`,nFe=((e={},t={})=>(t.locale??q())===`fr`?eFe(e):tFe(e)),rFe=()=>`Aucune connexion ne correspond aux filtres.`,iFe=()=>`No connection matches the filters.`,aFe=((e={},t={})=>(t.locale??q())===`fr`?rFe(e):iFe(e)),oFe=()=>`Cible`,sFe=()=>`Target`,cFe=((e={},t={})=>(t.locale??q())===`fr`?oFe(e):sFe(e)),lFe=()=>`État`,uFe=()=>`State`,dFe=((e={},t={})=>(t.locale??q())===`fr`?lFe(e):uFe(e)),fFe=()=>`Instance`,pFe=()=>`Instance`,mFe=((e={},t={})=>(t.locale??q())===`fr`?fFe(e):pFe(e)),hFe=()=>`Hôte passerelle`,gFe=()=>`Gateway host`,_Fe=((e={},t={})=>(t.locale??q())===`fr`?hFe(e):gFe(e)),vFe=()=>`Version`,yFe=()=>`Version`,bFe=((e={},t={})=>(t.locale??q())===`fr`?vFe(e):yFe(e)),xFe=()=>`Stats`,SFe=()=>`Stats`,CFe=((e={},t={})=>(t.locale??q())===`fr`?xFe(e):SFe(e)),wFe=()=>`Dernier OK`,TFe=()=>`Last OK`,EFe=((e={},t={})=>(t.locale??q())===`fr`?wFe(e):TFe(e)),DFe=()=>`connectée`,OFe=()=>`connected`,SQ=((e={},t={})=>(t.locale??q())===`fr`?DFe(e):OFe(e)),kFe=()=>`erreur`,AFe=()=>`error`,CQ=((e={},t={})=>(t.locale??q())===`fr`?kFe(e):AFe(e)),jFe=()=>`inactive`,MFe=()=>`inactive`,wQ=((e={},t={})=>(t.locale??q())===`fr`?jFe(e):MFe(e)),NFe=()=>`5 dernières minutes`,PFe=()=>`Last 5 minutes`,FFe=((e={},t={})=>(t.locale??q())===`fr`?NFe(e):PFe(e)),IFe=()=>`15 dernières minutes`,LFe=()=>`Last 15 minutes`,RFe=((e={},t={})=>(t.locale??q())===`fr`?IFe(e):LFe(e)),zFe=()=>`30 dernières minutes`,BFe=()=>`Last 30 minutes`,VFe=((e={},t={})=>(t.locale??q())===`fr`?zFe(e):BFe(e)),HFe=()=>`Dernière heure`,UFe=()=>`Last hour`,WFe=((e={},t={})=>(t.locale??q())===`fr`?HFe(e):UFe(e)),GFe=()=>`3 dernières heures`,KFe=()=>`Last 3 hours`,qFe=((e={},t={})=>(t.locale??q())===`fr`?GFe(e):KFe(e)),JFe=()=>`6 dernières heures`,YFe=()=>`Last 6 hours`,XFe=((e={},t={})=>(t.locale??q())===`fr`?JFe(e):YFe(e)),ZFe=()=>`12 dernières heures`,QFe=()=>`Last 12 hours`,$Fe=((e={},t={})=>(t.locale??q())===`fr`?ZFe(e):QFe(e)),eIe=()=>`Dernières 24 heures`,tIe=()=>`Last 24 hours`,nIe=((e={},t={})=>(t.locale??q())===`fr`?eIe(e):tIe(e)),rIe=()=>`2 derniers jours`,iIe=()=>`Last 2 days`,aIe=((e={},t={})=>(t.locale??q())===`fr`?rIe(e):iIe(e)),oIe=()=>`7 derniers jours`,sIe=()=>`Last 7 days`,cIe=((e={},t={})=>(t.locale??q())===`fr`?oIe(e):sIe(e)),lIe=()=>`30 derniers jours`,uIe=()=>`Last 30 days`,dIe=((e={},t={})=>(t.locale??q())===`fr`?lIe(e):uIe(e)),fIe=()=>`90 derniers jours`,pIe=()=>`Last 90 days`,mIe=((e={},t={})=>(t.locale??q())===`fr`?fIe(e):pIe(e)),hIe=()=>`Appels API`,gIe=()=>`API calls`,_Ie=((e={},t={})=>(t.locale??q())===`fr`?hIe(e):gIe(e)),vIe=()=>`Erreurs API`,yIe=()=>`API errors`,bIe=((e={},t={})=>(t.locale??q())===`fr`?vIe(e):yIe(e)),xIe=()=>`Latence moyenne`,SIe=()=>`Average latency`,CIe=((e={},t={})=>(t.locale??q())===`fr`?xIe(e):SIe(e)),wIe=()=>`Ingestion OpenClaw`,TIe=()=>`OpenClaw ingest`,EIe=((e={},t={})=>(t.locale??q())===`fr`?wIe(e):TIe(e)),DIe=()=>`Messages envoyés`,OIe=()=>`Messages sent`,kIe=((e={},t={})=>(t.locale??q())===`fr`?DIe(e):OIe(e)),AIe=()=>`Erreurs de stream`,jIe=()=>`Stream errors`,MIe=((e={},t={})=>(t.locale??q())===`fr`?AIe(e):jIe(e)),NIe=()=>`Indicateurs agrégés par heure à partir des traces expurgées (métadonnées non-PHI uniquement). Mise à jour en direct (useQuery) — le rollup tourne chaque heure.`,PIe=()=>`Hourly aggregated indicators from redacted traces (non-PHI metadata only). Live updates (useQuery) — the rollup runs every hour.`,FIe=((e={},t={})=>(t.locale??q())===`fr`?NIe(e):PIe(e)),IIe=()=>`La plage filtre l’historique des rollups — une plage antérieure peut être partielle.`,LIe=()=>`The range filters the rollup history — an earlier range may be partial.`,RIe=((e={},t={})=>(t.locale??q())===`fr`?IIe(e):LIe(e)),zIe=()=>`Chargement des KPI…`,BIe=()=>`Loading KPIs…`,VIe=((e={},t={})=>(t.locale??q())===`fr`?zIe(e):BIe(e)),HIe=()=>`Aucune donnée KPI — le rollup tourne chaque heure ; lance-le ou attends.`,UIe=()=>`No KPI data — the rollup runs every hour; run it or wait.`,WIe=((e={},t={})=>(t.locale??q())===`fr`?HIe(e):UIe(e)),GIe=e=>`dernier : ${e?.value}`,KIe=e=>`latest: ${e?.value}`,qIe=((e,t={})=>(t.locale??q())===`fr`?GIe(e):KIe(e)),JIe=()=>`aucune donnée`,YIe=()=>`no data`,XIe=((e={},t={})=>(t.locale??q())===`fr`?JIe(e):YIe(e)),ZIe=e=>`${e?.count} h`,QIe=e=>`${e?.count} h`,$Ie=((e,t={})=>(t.locale??q())===`fr`?ZIe(e):QIe(e)),eLe=e=>`Série horaire (max ${e?.max} ${e?.unit})`,tLe=e=>`Hourly series (max ${e?.max} ${e?.unit})`,nLe=((e,t={})=>(t.locale??q())===`fr`?eLe(e):tLe(e)),rLe=()=>`Mode dev — comptes & rôles`,iLe=()=>`Dev mode — accounts & roles`,aLe=((e={},t={})=>(t.locale??q())===`fr`?rLe(e):iLe(e)),oLe=()=>`Mode dev — comptes & rôles`,sLe=()=>`Dev mode — accounts & roles`,cLe=((e={},t={})=>(t.locale??q())===`fr`?oLe(e):sLe(e)),lLe=()=>`Change de rôle et « agis en tant que » pour tester plusieurs utilisateurs sans CLI. Visible uniquement en dev.`,uLe=()=>`Change roles and “act as” to test multiple users without the CLI. Visible in dev only.`,dLe=((e={},t={})=>(t.locale??q())===`fr`?lLe(e):uLe(e)),fLe=e=>`Moi — ${e?.canonical}`,pLe=e=>`Me — ${e?.canonical}`,mLe=((e,t={})=>(t.locale??q())===`fr`?fLe(e):pLe(e)),hLe=()=>`Devenir admin`,gLe=()=>`Become admin`,_Le=((e={},t={})=>(t.locale??q())===`fr`?hLe(e):gLe(e)),vLe=()=>`Devenir user`,yLe=()=>`Become user`,bLe=((e={},t={})=>(t.locale??q())===`fr`?vLe(e):yLe(e)),xLe=()=>`Devenir pending`,SLe=()=>`Become pending`,CLe=((e={},t={})=>(t.locale??q())===`fr`?xLe(e):SLe(e)),wLe=()=>`Tu agis en tant que`,TLe=()=>`You are acting as`,ELe=((e={},t={})=>(t.locale??q())===`fr`?wLe(e):TLe(e)),DLe=()=>`Arrêter`,OLe=()=>`Stop`,kLe=((e={},t={})=>(t.locale??q())===`fr`?DLe(e):OLe(e)),ALe=()=>`Aucun autre compte. Déconnecte-toi puis reconnecte-toi (nouvelle identité anonyme) — elle sera active immédiatement.`,jLe=()=>`No other account. Sign out then sign back in (new anonymous identity) — it will be active immediately.`,MLe=((e={},t={})=>(t.locale??q())===`fr`?ALe(e):jLe(e)),NLe=()=>`Deviens admin d'abord`,PLe=()=>`Become admin first`,FLe=((e={},t={})=>(t.locale??q())===`fr`?NLe(e):PLe(e)),ILe=()=>`Un compte pending ne peut pas être impersonné`,LLe=()=>`A pending account cannot be impersonated`,RLe=((e={},t={})=>(t.locale??q())===`fr`?ILe(e):LLe(e)),zLe=()=>`Agir en tant que cet utilisateur`,BLe=()=>`Act as this user`,VLe=((e={},t={})=>(t.locale??q())===`fr`?zLe(e):BLe(e)),HLe=()=>`Agir en tant que`,ULe=()=>`Act as`,WLe=((e={},t={})=>(t.locale??q())===`fr`?HLe(e):ULe(e)),GLe=()=>`Nouveau chat`,KLe=()=>`New chat`,qLe=((e={},t={})=>(t.locale??q())===`fr`?GLe(e):KLe(e)),JLe=()=>`Nouveau projet`,YLe=()=>`New project`,TQ=((e={},t={})=>(t.locale??q())===`fr`?JLe(e):YLe(e)),XLe=()=>`Nom du projet`,ZLe=()=>`Project name`,QLe=((e={},t={})=>(t.locale??q())===`fr`?XLe(e):ZLe(e)),$Le=()=>`ex. Travail`,eRe=()=>`e.g. Work`,tRe=((e={},t={})=>(t.locale??q())===`fr`?$Le(e):eRe(e)),nRe=()=>`Créer`,rRe=()=>`Create`,iRe=((e={},t={})=>(t.locale??q())===`fr`?nRe(e):rRe(e)),aRe=()=>`Épinglés`,oRe=()=>`Pinned`,sRe=((e={},t={})=>(t.locale??q())===`fr`?aRe(e):oRe(e)),cRe=()=>`Glissez un chat ici`,lRe=()=>`Drop a chat here`,uRe=((e={},t={})=>(t.locale??q())===`fr`?cRe(e):lRe(e)),dRe=()=>`Chats`,fRe=()=>`Chats`,pRe=((e={},t={})=>(t.locale??q())===`fr`?dRe(e):fRe(e)),mRe=()=>`Sans titre`,hRe=()=>`Untitled`,EQ=((e={},t={})=>(t.locale??q())===`fr`?mRe(e):hRe(e)),gRe=()=>`Lecture seule — l'agent associé ne t'est plus disponible`,_Re=()=>`Read-only — its agent is no longer available to you`,DQ=((e={},t={})=>(t.locale??q())===`fr`?gRe(e):_Re(e)),vRe=()=>`Supprimer le projet`,yRe=()=>`Delete project`,OQ=((e={},t={})=>(t.locale??q())===`fr`?vRe(e):yRe(e)),bRe=e=>`Supprimer le projet « ${e?.name} » ?`,xRe=e=>`Delete project "${e?.name}"?`,SRe=((e,t={})=>(t.locale??q())===`fr`?bRe(e):xRe(e)),CRe=e=>`Cette action est irréversible : elle supprimera aussi définitivement ${e?.count} conversation(s) et tous leurs messages.`,wRe=e=>`This action is irreversible: it will also permanently delete ${e?.count} conversation(s) and all their messages.`,TRe=((e,t={})=>(t.locale??q())===`fr`?CRe(e):wRe(e)),ERe=()=>`Cette action est irréversible.`,DRe=()=>`This action is irreversible.`,ORe=((e={},t={})=>(t.locale??q())===`fr`?ERe(e):DRe(e)),kRe=()=>`Supprimer`,ARe=()=>`Delete`,kQ=((e={},t={})=>(t.locale??q())===`fr`?kRe(e):ARe(e)),jRe=()=>`Déplacer / réordonner`,MRe=()=>`Move / reorder`,NRe=((e={},t={})=>(t.locale??q())===`fr`?jRe(e):MRe(e)),PRe=()=>`Actions`,FRe=()=>`Actions`,IRe=((e={},t={})=>(t.locale??q())===`fr`?PRe(e):FRe(e)),LRe=()=>`Renommer`,RRe=()=>`Rename`,zRe=((e={},t={})=>(t.locale??q())===`fr`?LRe(e):RRe(e)),BRe=()=>`Désépingler`,VRe=()=>`Unpin`,HRe=((e={},t={})=>(t.locale??q())===`fr`?BRe(e):VRe(e)),URe=()=>`Épingler`,WRe=()=>`Pin`,GRe=((e={},t={})=>(t.locale??q())===`fr`?URe(e):WRe(e)),KRe=()=>`Couleur`,qRe=()=>`Color`,JRe=((e={},t={})=>(t.locale??q())===`fr`?KRe(e):qRe(e)),YRe=()=>`Aucune couleur`,XRe=()=>`No color`,ZRe=((e={},t={})=>(t.locale??q())===`fr`?YRe(e):XRe(e)),QRe=()=>`Supprimer ce chat ?`,$Re=()=>`Delete this chat?`,eze=((e={},t={})=>(t.locale??q())===`fr`?QRe(e):$Re(e)),tze=()=>`Cette action est irréversible et supprimera ses messages.`,nze=()=>`This action is irreversible and will delete its messages.`,rze=((e={},t={})=>(t.locale??q())===`fr`?tze(e):nze(e)),ize=e=>`Bridge : ${e?.provider}`,aze=e=>`Bridge: ${e?.provider}`,oze=((e,t={})=>(t.locale??q())===`fr`?ize(e):aze(e)),sze=()=>`Renommer le chat`,cze=()=>`Rename chat`,lze=((e={},t={})=>(t.locale??q())===`fr`?sze(e):cze(e)),uze=()=>`Titre`,dze=()=>`Title`,fze=((e={},t={})=>(t.locale??q())===`fr`?uze(e):dze(e)),pze=()=>`Réflexion…`,mze=()=>`Thinking…`,hze=((e={},t={})=>(t.locale??q())===`fr`?pze(e):mze(e)),gze=()=>`Génération…`,_ze=()=>`Generating…`,vze=((e={},t={})=>(t.locale??q())===`fr`?gze(e):_ze(e)),yze=()=>`Erreur`,bze=()=>`Error`,xze=((e={},t={})=>(t.locale??q())===`fr`?yze(e):bze(e)),Sze=()=>`La réponse a été générée côté agent mais n’a pas pu être finalisée (connexion au bridge interrompue en cours de route). Vous pouvez supprimer ou régénérer ce message.`,Cze=()=>`The reply was generated on the agent side but could not be finalized (the bridge connection dropped mid-stream). You can delete or regenerate this message.`,wze=((e={},t={})=>(t.locale??q())===`fr`?Sze(e):Cze(e)),Tze=()=>`Interrompu`,Eze=()=>`Stopped`,Dze=((e={},t={})=>(t.locale??q())===`fr`?Tze(e):Eze(e)),Oze=()=>`contient`,kze=()=>`contains`,Aze=((e={},t={})=>(t.locale??q())===`fr`?Oze(e):kze(e)),jze=()=>`Filtre avancé`,Mze=()=>`Advanced filter`,Nze=((e={},t={})=>(t.locale??q())===`fr`?jze(e):Mze(e)),Pze=()=>`Aucun critère. Ajoutez une condition (toutes les conditions sont cumulées avec ET).`,Fze=()=>`No criteria. Add a condition (all conditions are combined with AND).`,Ize=((e={},t={})=>(t.locale??q())===`fr`?Pze(e):Fze(e)),Lze=()=>`Champ`,Rze=()=>`Field`,zze=((e={},t={})=>(t.locale??q())===`fr`?Lze(e):Rze(e)),Bze=()=>`Valeur`,Vze=()=>`Value`,Hze=((e={},t={})=>(t.locale??q())===`fr`?Bze(e):Vze(e)),Uze=()=>`Supprimer la condition`,Wze=()=>`Remove condition`,Gze=((e={},t={})=>(t.locale??q())===`fr`?Uze(e):Wze(e)),Kze=()=>`Ajouter une condition`,qze=()=>`Add condition`,Jze=((e={},t={})=>(t.locale??q())===`fr`?Kze(e):qze(e)),Yze=()=>`Bridge : pas encore de relevé (sondage chaque minute)`,Xze=()=>`Bridge: no reading yet (polled every minute)`,Zze=((e={},t={})=>(t.locale??q())===`fr`?Yze(e):Xze(e)),Qze=()=>`Bridge opérationnel`,$ze=()=>`Bridge operational`,eBe=((e={},t={})=>(t.locale??q())===`fr`?Qze(e):$ze(e)),tBe=e=>` · vérifié à ${e?.time}`,nBe=e=>` · verified at ${e?.time}`,rBe=((e,t={})=>(t.locale??q())===`fr`?tBe(e):nBe(e)),iBe=e=>`Bridge indisponible (${e?.reason}) — ouvre l’onglet Bridge pour le détail`,aBe=e=>`Bridge unavailable (${e?.reason}) — open the Bridge tab for details`,oBe=((e,t={})=>(t.locale??q())===`fr`?iBe(e):aBe(e)),sBe=()=>`Utilisateur`,cBe=()=>`User`,lBe=((e={},t={})=>(t.locale??q())===`fr`?sBe(e):cBe(e)),uBe=()=>`Système`,dBe=()=>`System`,fBe=((e={},t={})=>(t.locale??q())===`fr`?uBe(e):dBe(e)),pBe=()=>`[Export limité aux 200 messages les plus récents de cette conversation]`,mBe=()=>`[Export limited to the 200 most recent messages of this conversation]`,hBe=((e={},t={})=>(t.locale??q())===`fr`?pBe(e):mBe(e)),gBe=()=>`Conversation`,_Be=()=>`Conversation`,AQ=((e={},t={})=>(t.locale??q())===`fr`?gBe(e):_Be(e)),vBe=e=>`Exporté le ${e?.date}`,yBe=e=>`Exported on ${e?.date}`,bBe=((e,t={})=>(t.locale??q())===`fr`?vBe(e):yBe(e)),xBe=e=>`[fichier : ${e?.name}]`,SBe=e=>`[file: ${e?.name}]`,CBe=((e,t={})=>(t.locale??q())===`fr`?xBe(e):SBe(e)),wBe=()=>`Rechercher dans les conversations`,TBe=()=>`Search conversations`,EBe=((e={},t={})=>(t.locale??q())===`fr`?wBe(e):TBe(e)),DBe=()=>`Rechercher…`,OBe=()=>`Search…`,kBe=((e={},t={})=>(t.locale??q())===`fr`?DBe(e):OBe(e)),ABe=()=>`Rechercher dans les conversations`,jBe=()=>`Search conversations`,MBe=((e={},t={})=>(t.locale??q())===`fr`?ABe(e):jBe(e)),NBe=()=>`Rechercher dans toutes les conversations…`,PBe=()=>`Search across all conversations…`,FBe=((e={},t={})=>(t.locale??q())===`fr`?NBe(e):PBe(e)),IBe=()=>`Recherche`,LBe=()=>`Search`,RBe=((e={},t={})=>(t.locale??q())===`fr`?IBe(e):LBe(e)),zBe=e=>`Tapez au moins ${e?.count} caractères pour rechercher.`,BBe=e=>`Type at least ${e?.count} characters to search.`,VBe=((e,t={})=>(t.locale??q())===`fr`?zBe(e):BBe(e)),HBe=()=>`Recherche…`,UBe=()=>`Searching…`,WBe=((e={},t={})=>(t.locale??q())===`fr`?HBe(e):UBe(e)),GBe=e=>`Aucune conversation ne correspond à « ${e?.term} ».`,KBe=e=>`No conversation matches “${e?.term}”.`,qBe=((e,t={})=>(t.locale??q())===`fr`?GBe(e):KBe(e)),JBe=()=>`Nouveau chat`,YBe=()=>`New chat`,XBe=((e={},t={})=>(t.locale??q())===`fr`?JBe(e):YBe(e)),ZBe=()=>`Titre`,QBe=()=>`Title`,$Be=((e={},t={})=>(t.locale??q())===`fr`?ZBe(e):QBe(e)),eVe=()=>`Message`,tVe=()=>`Message`,nVe=((e={},t={})=>(t.locale??q())===`fr`?eVe(e):tVe(e)),rVe=()=>`naviguer`,iVe=()=>`navigate`,aVe=((e={},t={})=>(t.locale??q())===`fr`?rVe(e):iVe(e)),oVe=()=>`ouvrir`,sVe=()=>`open`,cVe=((e={},t={})=>(t.locale??q())===`fr`?oVe(e):sVe(e)),lVe=()=>`Échap`,uVe=()=>`Esc`,dVe=((e={},t={})=>(t.locale??q())===`fr`?lVe(e):uVe(e)),fVe=()=>`fermer`,pVe=()=>`close`,mVe=((e={},t={})=>(t.locale??q())===`fr`?fVe(e):pVe(e)),hVe=()=>`Choisir un agent`,gVe=()=>`Choose an agent`,_Ve=((e={},t={})=>(t.locale??q())===`fr`?hVe(e):gVe(e)),vVe=()=>`Sélectionnez l’agent (et l’instance) pour cette conversation.`,yVe=()=>`Select the agent (and instance) for this conversation.`,bVe=((e={},t={})=>(t.locale??q())===`fr`?vVe(e):yVe(e)),xVe=()=>`Chargement…`,SVe=()=>`Loading…`,CVe=((e={},t={})=>(t.locale??q())===`fr`?xVe(e):SVe(e)),wVe=()=>`Aucun agent ne vous est assigné. Contactez votre administrateur pour qu’il vous en attribue un.`,TVe=()=>`No agent is assigned to you. Contact your administrator to have one assigned.`,EVe=((e={},t={})=>(t.locale??q())===`fr`?wVe(e):TVe(e)),DVe=()=>`Rechercher un agent…`,OVe=()=>`Search for an agent…`,kVe=((e={},t={})=>(t.locale??q())===`fr`?DVe(e):OVe(e)),AVe=()=>`Rechercher un agent`,jVe=()=>`Search for an agent`,MVe=((e={},t={})=>(t.locale??q())===`fr`?AVe(e):jVe(e)),NVe=()=>`Cet agent n’existe plus sur la gateway`,PVe=()=>`This agent no longer exists on the gateway`,FVe=((e={},t={})=>(t.locale??q())===`fr`?NVe(e):PVe(e)),IVe=()=>`Agent par défaut`,LVe=()=>`Default agent`,RVe=((e={},t={})=>(t.locale??q())===`fr`?IVe(e):LVe(e)),zVe=()=>`Rechercher`,BVe=()=>`Search`,VVe=((e={},t={})=>(t.locale??q())===`fr`?zVe(e):BVe(e)),HVe=()=>`Réinitialiser`,UVe=()=>`Reset`,WVe=((e={},t={})=>(t.locale??q())===`fr`?HVe(e):UVe(e)),GVe=()=>`Ajouter`,KVe=()=>`Add`,qVe=((e={},t={})=>(t.locale??q())===`fr`?GVe(e):KVe(e)),JVe=()=>`Aucun élément.`,YVe=()=>`No items.`,XVe=((e={},t={})=>(t.locale??q())===`fr`?JVe(e):YVe(e)),ZVe=()=>`Chargement…`,QVe=()=>`Loading…`,$Ve=((e={},t={})=>(t.locale??q())===`fr`?ZVe(e):QVe(e)),eHe=()=>`Tout sélectionner`,tHe=()=>`Select all`,nHe=((e={},t={})=>(t.locale??q())===`fr`?eHe(e):tHe(e)),rHe=()=>`Sélectionner la ligne`,iHe=()=>`Select row`,aHe=((e={},t={})=>(t.locale??q())===`fr`?rHe(e):iHe(e)),oHe=()=>`Actions`,sHe=()=>`Actions`,cHe=((e={},t={})=>(t.locale??q())===`fr`?oHe(e):sHe(e)),lHe=e=>`Trier par ${e?.column}`,uHe=e=>`Sort by ${e?.column}`,dHe=((e,t={})=>(t.locale??q())===`fr`?lHe(e):uHe(e)),fHe=()=>`Agent introuvable`,pHe=()=>`Agent not found`,mHe=((e={},t={})=>(t.locale??q())===`fr`?fHe(e):pHe(e)),hHe=()=>`L’agent configuré n’existe plus sur la passerelle. Vérifiez OPENCLAW_AGENT_ID dans le .env du bridge (il doit correspondre à un agent réel de la passerelle).`,gHe=()=>`The configured agent no longer exists on the gateway. Check OPENCLAW_AGENT_ID in the bridge .env (it must match a real gateway agent).`,_He=((e={},t={})=>(t.locale??q())===`fr`?hHe(e):gHe(e)),vHe=()=>`Authentification refusée`,yHe=()=>`Authentication refused`,bHe=((e={},t={})=>(t.locale??q())===`fr`?vHe(e):yHe(e)),xHe=()=>`Le token opérateur ne correspond pas au device pairé. Re-pairez un device dédié au bridge sur la passerelle et reportez son token + device identity.`,SHe=()=>`The operator token does not match the paired device. Re-pair a dedicated bridge device on the gateway and report its token + device identity.`,CHe=((e={},t={})=>(t.locale??q())===`fr`?xHe(e):SHe(e)),wHe=()=>`Signature device impossible`,THe=()=>`Device signing failed`,EHe=((e={},t={})=>(t.locale??q())===`fr`?wHe(e):THe(e)),DHe=()=>`La clé privée du device identity ne se décode pas. Vérifiez OPENCLAW_DEVICE_IDENTITY (format JSON, \\n simples) — voir fix-devid.mjs.`,OHe=()=>`The device identity private key won’t decode. Check OPENCLAW_DEVICE_IDENTITY (JSON format, single \\n) — see fix-devid.mjs.`,kHe=((e={},t={})=>(t.locale??q())===`fr`?DHe(e):OHe(e)),AHe=()=>`Portée insuffisante`,jHe=()=>`Insufficient scope`,MHe=((e={},t={})=>(t.locale??q())===`fr`?AHe(e):jHe(e)),NHe=()=>`Le pairing du device n’a pas la portée requise (operator.admin). Approuvez/élevez la portée du device sur la passerelle.`,PHe=()=>`The device pairing lacks the required scope (operator.admin). Approve/elevate the device scope on the gateway.`,FHe=((e={},t={})=>(t.locale??q())===`fr`?NHe(e):PHe(e)),IHe=()=>`Délai dépassé`,LHe=()=>`Timed out`,RHe=((e={},t={})=>(t.locale??q())===`fr`?IHe(e):LHe(e)),zHe=()=>`La passerelle n’a pas répondu à temps. Vérifiez qu’elle est démarrée et joignable (OPENCLAW_GATEWAY_URL).`,BHe=()=>`The gateway did not respond in time. Check it’s started and reachable (OPENCLAW_GATEWAY_URL).`,VHe=((e={},t={})=>(t.locale??q())===`fr`?zHe(e):BHe(e)),HHe=()=>`Passerelle déconnectée`,UHe=()=>`Gateway disconnected`,WHe=((e={},t={})=>(t.locale??q())===`fr`?HHe(e):UHe(e)),GHe=()=>`La connexion à la passerelle a été coupée. Vérifiez l’état du conteneur OpenClaw et l’URL/port de la passerelle.`,KHe=()=>`The connection to the gateway dropped. Check the OpenClaw container state and the gateway URL/port.`,qHe=((e={},t={})=>(t.locale??q())===`fr`?GHe(e):KHe(e)),JHe=()=>`Bridge injoignable`,YHe=()=>`Bridge unreachable`,XHe=((e={},t={})=>(t.locale??q())===`fr`?JHe(e):YHe(e)),ZHe=()=>`Convex n’a pas pu joindre le bridge. Vérifiez que le conteneur bridge tourne et BRIDGE_URL (http://<ip-hôte>:8787).`,QHe=()=>`Convex could not reach the bridge. Check the bridge container is running and BRIDGE_URL (http://<host-ip>:8787).`,$He=((e={},t={})=>(t.locale??q())===`fr`?ZHe(e):QHe(e)),eUe=()=>`Pièce jointe trop volumineuse`,tUe=()=>`Attachment too large`,nUe=((e={},t={})=>(t.locale??q())===`fr`?eUe(e):tUe(e)),rUe=()=>`La passerelle a refusé la pièce jointe car elle dépasse la taille qu’elle accepte (limite de mise en sandbox de l’agent). Réduisez la taille du fichier, ou retirez la pièce jointe et envoyez le texte seul.`,iUe=()=>`The gateway refused the attachment because it exceeds the size it accepts (the agent's sandbox staging limit). Use a smaller file, or remove the attachment and send the text alone.`,aUe=((e={},t={})=>(t.locale??q())===`fr`?rUe(e):iUe(e)),oUe=()=>`Pièce jointe non traitée`,sUe=()=>`Attachment could not be processed`,cUe=((e={},t={})=>(t.locale??q())===`fr`?oUe(e):sUe(e)),lUe=()=>`La passerelle n’a pas pu analyser/préparer la pièce jointe. Bug connu de la passerelle (le validateur base64 déborde sur les gros fichiers, RangeError) — à corriger côté passerelle (isValidBase64). En attendant : un fichier plus petit passe, ou envoyez le texte sans pièce jointe.`,uUe=()=>`The gateway could not parse/stage the attachment. Known gateway bug (its base64 validator overflows on large files — RangeError); fix it gateway-side (isValidBase64). Meanwhile: a smaller file works, or send the text without the attachment.`,dUe=((e={},t={})=>(t.locale??q())===`fr`?lUe(e):uUe(e)),fUe=()=>`Requête invalide`,pUe=()=>`Invalid request`,mUe=((e={},t={})=>(t.locale??q())===`fr`?fUe(e):pUe(e)),hUe=()=>`La passerelle a rejeté la requête. Consultez les logs du bridge pour le détail brut.`,gUe=()=>`The gateway rejected the request. Check the bridge logs for the raw detail.`,_Ue=((e={},t={})=>(t.locale??q())===`fr`?hUe(e):gUe(e)),vUe=()=>`Bridge non configuré`,yUe=()=>`Bridge not configured`,bUe=((e={},t={})=>(t.locale??q())===`fr`?vUe(e):yUe(e)),xUe=()=>`BRIDGE_URL / BRIDGE_SHARED_SECRET ne sont pas définis côté Convex (npx convex env set).`,SUe=()=>`BRIDGE_URL / BRIDGE_SHARED_SECRET are not set on the Convex side (npx convex env set).`,CUe=((e={},t={})=>(t.locale??q())===`fr`?xUe(e):SUe(e)),wUe=()=>`Utilisateur non routé`,TUe=()=>`User not routed`,EUe=((e={},t={})=>(t.locale??q())===`fr`?wUe(e):TUe(e)),DUe=()=>`Ce compte n’est rattaché à aucune instance. Settings → Users → Override instance, ou affectez un groupe.`,OUe=()=>`This account is not attached to any instance. Settings → Users → Override instance, or assign a group.`,kUe=((e={},t={})=>(t.locale??q())===`fr`?DUe(e):OUe(e)),AUe=()=>`Erreur passerelle`,jUe=()=>`Gateway error`,MUe=((e={},t={})=>(t.locale??q())===`fr`?AUe(e):jUe(e)),NUe=()=>`Cause non catégorisée. Consultez les logs du bridge pour le message brut.`,PUe=()=>`Uncategorized cause. Check the bridge logs for the raw message.`,FUe=((e={},t={})=>(t.locale??q())===`fr`?NUe(e):PUe(e)),IUe=()=>`Cause inconnue`,LUe=()=>`Unknown cause`,RUe=((e={},t={})=>(t.locale??q())===`fr`?IUe(e):LUe(e)),zUe=()=>`Aucun code de cause n’a été remonté (bridge antérieur à cette version ?). Consultez les logs du bridge.`,BUe=()=>`No cause code was reported (bridge older than this version?). Check the bridge logs.`,VUe=((e={},t={})=>(t.locale??q())===`fr`?zUe(e):BUe(e)),HUe=()=>`Cause non répertoriée — voir les logs du bridge.`,UUe=()=>`Cause not catalogued — see the bridge logs.`,WUe=((e={},t={})=>(t.locale??q())===`fr`?HUe(e):UUe(e)),GUe=e=>`Notifications (${e?.count} non lues)`,KUe=e=>`Notifications (${e?.count} unread)`,qUe=((e,t={})=>(t.locale??q())===`fr`?GUe(e):KUe(e)),JUe=()=>`Notifications`,YUe=()=>`Notifications`,XUe=((e={},t={})=>(t.locale??q())===`fr`?JUe(e):YUe(e)),ZUe=()=>`Notifications`,QUe=()=>`Notifications`,$Ue=((e={},t={})=>(t.locale??q())===`fr`?ZUe(e):QUe(e)),eWe=()=>`Tout lu`,tWe=()=>`Mark all read`,nWe=((e={},t={})=>(t.locale??q())===`fr`?eWe(e):tWe(e)),rWe=()=>`Tout effacer`,iWe=()=>`Clear all`,aWe=((e={},t={})=>(t.locale??q())===`fr`?rWe(e):iWe(e)),oWe=()=>`Aucune notification.`,sWe=()=>`No notifications.`,cWe=((e={},t={})=>(t.locale??q())===`fr`?oWe(e):sWe(e)),lWe=()=>`Marquer comme lue`,uWe=()=>`Mark as read`,jQ=((e={},t={})=>(t.locale??q())===`fr`?lWe(e):uWe(e)),dWe=()=>`Effacer la notification`,fWe=()=>`Clear notification`,MQ=((e={},t={})=>(t.locale??q())===`fr`?dWe(e):fWe(e)),pWe=()=>`Mes signalements`,mWe=()=>`My reports`,hWe=((e={},t={})=>(t.locale??q())===`fr`?pWe(e):mWe(e)),gWe=()=>`Répondu`,_We=()=>`Answered`,vWe=((e={},t={})=>(t.locale??q())===`fr`?gWe(e):_We(e)),yWe=()=>`En attente`,bWe=()=>`Pending`,xWe=((e={},t={})=>(t.locale??q())===`fr`?yWe(e):bWe(e)),SWe=()=>`Administrateur`,CWe=()=>`Administrator`,wWe=((e={},t={})=>(t.locale??q())===`fr`?SWe(e):CWe(e)),TWe=()=>`Vous`,EWe=()=>`You`,DWe=((e={},t={})=>(t.locale??q())===`fr`?TWe(e):EWe(e)),OWe=()=>`Voir la conversation`,kWe=()=>`View the conversation`,AWe=((e={},t={})=>(t.locale??q())===`fr`?OWe(e):kWe(e)),jWe=()=>`Message signalé`,MWe=()=>`Reported message`,NWe=((e={},t={})=>(t.locale??q())===`fr`?jWe(e):MWe(e)),PWe=()=>`Clore le signalement`,FWe=()=>`Close report`,NQ=((e={},t={})=>(t.locale??q())===`fr`?PWe(e):FWe(e)),IWe=()=>`Pourquoi clore ce signalement ? (facultatif)`,LWe=()=>`Why close this report? (optional)`,RWe=((e={},t={})=>(t.locale??q())===`fr`?IWe(e):LWe(e)),zWe=()=>`Clore`,BWe=()=>`Close`,VWe=((e={},t={})=>(t.locale??q())===`fr`?zWe(e):BWe(e)),HWe=()=>`Annuler`,UWe=()=>`Cancel`,WWe=((e={},t={})=>(t.locale??q())===`fr`?HWe(e):UWe(e)),GWe=()=>`Réponse à votre signalement`,KWe=()=>`Reply to your report`,qWe=((e={},t={})=>(t.locale??q())===`fr`?GWe(e):KWe(e)),JWe=()=>`Un administrateur a répondu à un signalement que vous avez envoyé.`,YWe=()=>`An administrator replied to a report you sent.`,XWe=((e={},t={})=>(t.locale??q())===`fr`?JWe(e):YWe(e)),ZWe=()=>`Mots modifiés / altérés`,QWe=()=>`Modified / altered words`,$We=((e={},t={})=>(t.locale??q())===`fr`?ZWe(e):QWe(e)),eGe=()=>`Réponse incorrecte`,tGe=()=>`Incorrect answer`,nGe=((e={},t={})=>(t.locale??q())===`fr`?eGe(e):tGe(e)),rGe=()=>`Incohérence`,iGe=()=>`Incoherence`,aGe=((e={},t={})=>(t.locale??q())===`fr`?rGe(e):iGe(e)),oGe=()=>`Formatage`,sGe=()=>`Formatting`,cGe=((e={},t={})=>(t.locale??q())===`fr`?oGe(e):sGe(e)),lGe=()=>`Latence`,uGe=()=>`Latency`,dGe=((e={},t={})=>(t.locale??q())===`fr`?lGe(e):uGe(e)),fGe=()=>`Erreur API`,pGe=()=>`API error`,mGe=((e={},t={})=>(t.locale??q())===`fr`?fGe(e):pGe(e)),hGe=()=>`Autre`,gGe=()=>`Other`,_Ge=((e={},t={})=>(t.locale??q())===`fr`?hGe(e):gGe(e)),vGe=()=>`Utilisateurs`,yGe=()=>`Users`,bGe=((e={},t={})=>(t.locale??q())===`fr`?vGe(e):yGe(e)),xGe=()=>`Instances`,SGe=()=>`Instances`,CGe=((e={},t={})=>(t.locale??q())===`fr`?xGe(e):SGe(e)),wGe=()=>`Bridge`,TGe=()=>`Bridge`,EGe=((e={},t={})=>(t.locale??q())===`fr`?wGe(e):TGe(e)),DGe=()=>`Comptes de service`,OGe=()=>`Service accounts`,kGe=((e={},t={})=>(t.locale??q())===`fr`?DGe(e):OGe(e)),AGe=()=>`Rôles`,jGe=()=>`Roles`,MGe=((e={},t={})=>(t.locale??q())===`fr`?AGe(e):jGe(e)),NGe=()=>`Traces`,PGe=()=>`Traces`,FGe=((e={},t={})=>(t.locale??q())===`fr`?NGe(e):PGe(e)),IGe=()=>`KPI`,LGe=()=>`KPI`,RGe=((e={},t={})=>(t.locale??q())===`fr`?IGe(e):LGe(e)),zGe=()=>`Anomalies`,BGe=()=>`Anomalies`,VGe=((e={},t={})=>(t.locale??q())===`fr`?zGe(e):BGe(e)),HGe=()=>`Intégrations`,UGe=()=>`Integrations`,WGe=((e={},t={})=>(t.locale??q())===`fr`?HGe(e):UGe(e)),GGe=()=>`Audit`,KGe=()=>`Audit`,qGe=((e={},t={})=>(t.locale??q())===`fr`?GGe(e):KGe(e)),JGe=()=>`Feedbacks`,YGe=()=>`Feedbacks`,XGe=((e={},t={})=>(t.locale??q())===`fr`?JGe(e):YGe(e)),ZGe=()=>`Groupes`,QGe=()=>`Groups`,$Ge=((e={},t={})=>(t.locale??q())===`fr`?ZGe(e):QGe(e)),eKe=()=>`Accès`,tKe=()=>`Access`,nKe=((e={},t={})=>(t.locale??q())===`fr`?eKe(e):tKe(e)),rKe=()=>`Inspectez les accès d’un utilisateur : ses groupes, les agents et chartes qui lui sont disponibles (avec leur provenance) et ses permissions effectives. Lecture seule.`,iKe=()=>`Inspect a user’s access: their groups, the agents and charts available to them (with provenance), and their effective permissions. Read-only.`,aKe=((e={},t={})=>(t.locale??q())===`fr`?rKe(e):iKe(e)),oKe=()=>`Choisir un utilisateur`,sKe=()=>`Pick a user`,PQ=((e={},t={})=>(t.locale??q())===`fr`?oKe(e):sKe(e)),cKe=()=>`Sélectionnez un utilisateur pour voir ses accès.`,lKe=()=>`Select a user to see their access.`,uKe=((e={},t={})=>(t.locale??q())===`fr`?cKe(e):lKe(e)),dKe=()=>`Identité`,fKe=()=>`Identity`,pKe=((e={},t={})=>(t.locale??q())===`fr`?dKe(e):fKe(e)),mKe=()=>`Groupes`,hKe=()=>`Groups`,gKe=((e={},t={})=>(t.locale??q())===`fr`?mKe(e):hKe(e)),_Ke=()=>`Agents disponibles`,vKe=()=>`Available agents`,yKe=((e={},t={})=>(t.locale??q())===`fr`?_Ke(e):vKe(e)),bKe=()=>`Chartes disponibles`,xKe=()=>`Available charts`,SKe=((e={},t={})=>(t.locale??q())===`fr`?bKe(e):xKe(e)),CKe=()=>`Permissions effectives`,wKe=()=>`Effective permissions`,TKe=((e={},t={})=>(t.locale??q())===`fr`?CKe(e):wKe(e)),EKe=()=>`Aucun`,DKe=()=>`None`,FQ=((e={},t={})=>(t.locale??q())===`fr`?EKe(e):DKe(e)),OKe=()=>`Défaut`,kKe=()=>`Default`,AKe=((e={},t={})=>(t.locale??q())===`fr`?OKe(e):kKe(e)),jKe=()=>`Direct`,MKe=()=>`Direct`,NKe=((e={},t={})=>(t.locale??q())===`fr`?jKe(e):MKe(e)),PKe=()=>`Tous les agents (aucun groupe)`,FKe=()=>`All agents (no group)`,IKe=((e={},t={})=>(t.locale??q())===`fr`?PKe(e):FKe(e)),LKe=e=>`Groupe : ${e?.group}`,RKe=e=>`Group: ${e?.group}`,IQ=((e,t={})=>(t.locale??q())===`fr`?LKe(e):RKe(e)),zKe=()=>`Commune`,BKe=()=>`Common`,VKe=((e={},t={})=>(t.locale??q())===`fr`?zKe(e):BKe(e)),HKe=()=>`Perso`,UKe=()=>`Personal`,WKe=((e={},t={})=>(t.locale??q())===`fr`?HKe(e):UKe(e)),GKe=()=>`Groupes`,KKe=()=>`Groups`,qKe=((e={},t={})=>(t.locale??q())===`fr`?GKe(e):KKe(e)),JKe=()=>`Regroupez des utilisateurs et partagez des agents par groupe. Chaque membre hérite des agents du groupe en plus de ses agents directs.`,YKe=()=>`Group users and share agents by group. Each member inherits the group's agents on top of their direct agents.`,XKe=((e={},t={})=>(t.locale??q())===`fr`?JKe(e):YKe(e)),ZKe=()=>`Nouveau groupe`,QKe=()=>`New group`,$Ke=((e={},t={})=>(t.locale??q())===`fr`?ZKe(e):QKe(e)),eqe=()=>`Aucun groupe pour le moment.`,tqe=()=>`No groups yet.`,nqe=((e={},t={})=>(t.locale??q())===`fr`?eqe(e):tqe(e)),rqe=()=>`Nom`,iqe=()=>`Name`,aqe=((e={},t={})=>(t.locale??q())===`fr`?rqe(e):iqe(e)),oqe=()=>`Membres`,sqe=()=>`Members`,cqe=((e={},t={})=>(t.locale??q())===`fr`?oqe(e):sqe(e)),lqe=()=>`Agents`,uqe=()=>`Agents`,dqe=((e={},t={})=>(t.locale??q())===`fr`?lqe(e):uqe(e)),fqe=()=>`Chartes`,pqe=()=>`Charts`,mqe=((e={},t={})=>(t.locale??q())===`fr`?fqe(e):pqe(e)),hqe=()=>`Filtrer les groupes (nom, membre, agent, charte)…`,gqe=()=>`Filter groups (name, member, agent, chart)…`,_qe=((e={},t={})=>(t.locale??q())===`fr`?hqe(e):gqe(e)),vqe=()=>`Gérer`,yqe=()=>`Manage`,bqe=((e={},t={})=>(t.locale??q())===`fr`?vqe(e):yqe(e)),xqe=()=>`Renommer`,Sqe=()=>`Rename`,Cqe=((e={},t={})=>(t.locale??q())===`fr`?xqe(e):Sqe(e)),wqe=()=>`Supprimer`,Tqe=()=>`Delete`,Eqe=((e={},t={})=>(t.locale??q())===`fr`?wqe(e):Tqe(e)),Dqe=()=>`Enregistrer`,Oqe=()=>`Save`,kqe=((e={},t={})=>(t.locale??q())===`fr`?Dqe(e):Oqe(e)),Aqe=()=>`Annuler`,jqe=()=>`Cancel`,Mqe=((e={},t={})=>(t.locale??q())===`fr`?Aqe(e):jqe(e)),Nqe=()=>`Nouveau groupe`,Pqe=()=>`New group`,Fqe=((e={},t={})=>(t.locale??q())===`fr`?Nqe(e):Pqe(e)),Iqe=()=>`Renommer le groupe`,Lqe=()=>`Rename group`,Rqe=((e={},t={})=>(t.locale??q())===`fr`?Iqe(e):Lqe(e)),zqe=()=>`Le nom est libre ; un identifiant stable est généré automatiquement.`,Bqe=()=>`The name is free-form; a stable identifier is generated automatically.`,Vqe=((e={},t={})=>(t.locale??q())===`fr`?zqe(e):Bqe(e)),Hqe=()=>`Nom`,Uqe=()=>`Name`,Wqe=((e={},t={})=>(t.locale??q())===`fr`?Hqe(e):Uqe(e)),Gqe=()=>`Description`,Kqe=()=>`Description`,qqe=((e={},t={})=>(t.locale??q())===`fr`?Gqe(e):Kqe(e)),Jqe=e=>`Supprimer le groupe « ${e?.name} » ?`,Yqe=e=>`Delete group "${e?.name}"?`,Xqe=((e,t={})=>(t.locale??q())===`fr`?Jqe(e):Yqe(e)),Zqe=()=>`Cette action supprime le groupe, ses adhésions et les agents partagés. Elle est irréversible.`,Qqe=()=>`This deletes the group, its memberships and shared agents. It cannot be undone.`,$qe=((e={},t={})=>(t.locale??q())===`fr`?Zqe(e):Qqe(e)),eJe=()=>`Supprimer le groupe`,tJe=()=>`Delete group`,nJe=((e={},t={})=>(t.locale??q())===`fr`?eJe(e):tJe(e)),rJe=e=>`Gérer « ${e?.name} »`,iJe=e=>`Manage "${e?.name}"`,aJe=((e,t={})=>(t.locale??q())===`fr`?rJe(e):iJe(e)),oJe=()=>`Ajoutez ou retirez des membres et partagez des agents découverts avec ce groupe.`,sJe=()=>`Add or remove members and share discovered agents with this group.`,cJe=((e={},t={})=>(t.locale??q())===`fr`?oJe(e):sJe(e)),lJe=()=>`Membres`,uJe=()=>`Members`,dJe=((e={},t={})=>(t.locale??q())===`fr`?lJe(e):uJe(e)),fJe=()=>`Rechercher un utilisateur…`,pJe=()=>`Search a user…`,mJe=((e={},t={})=>(t.locale??q())===`fr`?fJe(e):pJe(e)),hJe=()=>`Agents partagés`,gJe=()=>`Shared agents`,_Je=((e={},t={})=>(t.locale??q())===`fr`?hJe(e):gJe(e)),vJe=()=>`Rechercher un agent…`,yJe=()=>`Search an agent…`,bJe=((e={},t={})=>(t.locale??q())===`fr`?vJe(e):yJe(e)),xJe=()=>`Aucun résultat.`,SJe=()=>`No results.`,CJe=((e={},t={})=>(t.locale??q())===`fr`?xJe(e):SJe(e)),wJe=()=>`Tout sélectionner`,TJe=()=>`Select all`,LQ=((e={},t={})=>(t.locale??q())===`fr`?wJe(e):TJe(e)),EJe=()=>`Précédent`,DJe=()=>`Previous`,OJe=((e={},t={})=>(t.locale??q())===`fr`?EJe(e):DJe(e)),kJe=()=>`Suivant`,AJe=()=>`Next`,jJe=((e={},t={})=>(t.locale??q())===`fr`?kJe(e):AJe(e)),MJe=e=>`Page ${e?.page} sur ${e?.pages}`,NJe=e=>`Page ${e?.page} of ${e?.pages}`,PJe=((e,t={})=>(t.locale??q())===`fr`?MJe(e):NJe(e)),FJe=()=>`Administrateur`,IJe=()=>`Admin`,LJe=((e={},t={})=>(t.locale??q())===`fr`?FJe(e):IJe(e)),RJe=()=>`Utilisateur`,zJe=()=>`User`,BJe=((e={},t={})=>(t.locale??q())===`fr`?RJe(e):zJe(e)),VJe=()=>`En attente`,HJe=()=>`Pending`,UJe=((e={},t={})=>(t.locale??q())===`fr`?VJe(e):HJe(e)),WJe=e=>`Basculer l'adhésion de ${e?.user}`,GJe=e=>`Toggle membership of ${e?.user}`,KJe=((e,t={})=>(t.locale??q())===`fr`?WJe(e):GJe(e)),qJe=e=>`Partager l'agent ${e?.name}`,JJe=e=>`Share agent ${e?.name}`,YJe=((e,t={})=>(t.locale??q())===`fr`?qJe(e):JJe(e)),XJe=()=>`Chargement…`,ZJe=()=>`Loading…`,RQ=((e={},t={})=>(t.locale??q())===`fr`?XJe(e):ZJe(e)),QJe=()=>`Chargement des agents…`,$Je=()=>`Loading agents…`,eYe=((e={},t={})=>(t.locale??q())===`fr`?QJe(e):$Je(e)),tYe=()=>`Aucun utilisateur.`,nYe=()=>`No users.`,rYe=((e={},t={})=>(t.locale??q())===`fr`?tYe(e):nYe(e)),iYe=()=>`Aucune instance configurée.`,aYe=()=>`No instances configured.`,oYe=((e={},t={})=>(t.locale??q())===`fr`?iYe(e):aYe(e)),sYe=()=>`Aucun agent découvert.`,cYe=()=>`No discovered agents.`,lYe=((e={},t={})=>(t.locale??q())===`fr`?sYe(e):cYe(e)),uYe=()=>`Instance hors ligne ; agents indisponibles.`,dYe=()=>`Instance offline; agents unavailable.`,fYe=((e={},t={})=>(t.locale??q())===`fr`?uYe(e):dYe(e)),pYe=()=>`hors ligne`,mYe=()=>`offline`,hYe=((e={},t={})=>(t.locale??q())===`fr`?pYe(e):mYe(e)),gYe=()=>`retiré`,_Ye=()=>`removed`,vYe=((e={},t={})=>(t.locale??q())===`fr`?gYe(e):_Ye(e)),yYe=()=>`Agent par défaut de l'instance`,bYe=()=>`Instance default agent`,zQ=((e={},t={})=>(t.locale??q())===`fr`?yYe(e):bYe(e)),xYe=()=>`Chartes`,SYe=()=>`Charts`,CYe=((e={},t={})=>(t.locale??q())===`fr`?xYe(e):SYe(e)),wYe=()=>`Aucune charte disponible pour ce groupe pour l'instant. Demandez à un administrateur d'ajouter des chartes au pool de ce groupe.`,TYe=()=>`No charts available for this group yet. Ask an admin to add charts to this group's pool.`,EYe=((e={},t={})=>(t.locale??q())===`fr`?wYe(e):TYe(e)),DYe=()=>`Ajoutez des chartes au pool de ce groupe ci-dessous, puis sélectionnez celles que le groupe propose.`,OYe=()=>`Add charts to this group's pool below, then select which ones the group offers.`,kYe=((e={},t={})=>(t.locale??q())===`fr`?DYe(e):OYe(e)),AYe=()=>`Ajouter une charte au pool…`,jYe=()=>`Add a chart to the pool…`,MYe=((e={},t={})=>(t.locale??q())===`fr`?AYe(e):jYe(e)),NYe=e=>`Retirer ${e?.name} du pool`,PYe=e=>`Remove ${e?.name} from the pool`,BQ=((e,t={})=>(t.locale??q())===`fr`?NYe(e):PYe(e)),FYe=e=>`Proposer la charte ${e?.name} à ce groupe`,IYe=e=>`Offer chart ${e?.name} to this group`,LYe=((e,t={})=>(t.locale??q())===`fr`?FYe(e):IYe(e)),RYe=()=>`Charte par défaut du groupe`,zYe=()=>`Group default chart`,VQ=((e={},t={})=>(t.locale??q())===`fr`?RYe(e):zYe(e)),BYe=()=>`Définir par défaut`,VYe=()=>`Set as default`,HYe=((e={},t={})=>(t.locale??q())===`fr`?BYe(e):VYe(e)),UYe=()=>`Gestionnaire`,WYe=()=>`Manager`,HQ=((e={},t={})=>(t.locale??q())===`fr`?UYe(e):WYe(e)),GYe=()=>`Promouvoir gestionnaire`,KYe=()=>`Promote to manager`,UQ=((e={},t={})=>(t.locale??q())===`fr`?GYe(e):KYe(e)),qYe=()=>`Retirer gestionnaire`,JYe=()=>`Remove manager`,WQ=((e={},t={})=>(t.locale??q())===`fr`?qYe(e):JYe(e)),YYe=()=>`Changement de gestionnaire refusé`,XYe=()=>`Manager change rejected`,ZYe=((e={},t={})=>(t.locale??q())===`fr`?YYe(e):XYe(e)),QYe=()=>`Mise à jour de la charte refusée`,$Ye=()=>`Chart update rejected`,GQ=((e={},t={})=>(t.locale??q())===`fr`?QYe(e):$Ye(e)),eXe=()=>`Enregistrement du groupe refusé`,tXe=()=>`Group save rejected`,nXe=((e={},t={})=>(t.locale??q())===`fr`?eXe(e):tXe(e)),rXe=()=>`Suppression du groupe refusée`,iXe=()=>`Group deletion rejected`,aXe=((e={},t={})=>(t.locale??q())===`fr`?rXe(e):iXe(e)),oXe=()=>`Mise à jour de l'adhésion refusée`,sXe=()=>`Membership update rejected`,KQ=((e={},t={})=>(t.locale??q())===`fr`?oXe(e):sXe(e)),cXe=()=>`Partage de l'agent refusé`,lXe=()=>`Agent sharing rejected`,qQ=((e={},t={})=>(t.locale??q())===`fr`?cXe(e):lXe(e)),uXe=()=>`Réordonner cet onglet`,dXe=()=>`Reorder this tab`,fXe=((e={},t={})=>(t.locale??q())===`fr`?uXe(e):dXe(e)),pXe=()=>`Réglages`,mXe=()=>`Settings`,hXe=((e={},t={})=>(t.locale??q())===`fr`?pXe(e):mXe(e)),gXe=()=>`← Retour au chat`,_Xe=()=>`← Back to chat`,vXe=((e={},t={})=>(t.locale??q())===`fr`?gXe(e):_Xe(e)),yXe=()=>`Réglages`,bXe=()=>`Settings`,xXe=((e={},t={})=>(t.locale??q())===`fr`?yXe(e):bXe(e)),SXe=()=>`Personnel`,CXe=()=>`Personal`,wXe=((e={},t={})=>(t.locale??q())===`fr`?SXe(e):CXe(e)),TXe=()=>`Agents`,EXe=()=>`Agents`,DXe=((e={},t={})=>(t.locale??q())===`fr`?TXe(e):EXe(e)),OXe=()=>`Accès & utilisateurs`,kXe=()=>`Access & users`,AXe=((e={},t={})=>(t.locale??q())===`fr`?OXe(e):kXe(e)),jXe=()=>`Observabilité`,MXe=()=>`Observability`,NXe=((e={},t={})=>(t.locale??q())===`fr`?jXe(e):MXe(e)),PXe=()=>`Fermer`,FXe=()=>`Close`,JQ=((e={},t={})=>(t.locale??q())===`fr`?PXe(e):FXe(e)),IXe=()=>`héritée`,LXe=()=>`inherited`,RXe=((e={},t={})=>(t.locale??q())===`fr`?IXe(e):LXe(e)),zXe=()=>`Revenir à la valeur héritée`,BXe=()=>`Back to the inherited value`,YQ=((e={},t={})=>(t.locale??q())===`fr`?zXe(e):BXe(e)),VXe=()=>`Application…`,HXe=()=>`Applying…`,XQ=((e={},t={})=>(t.locale??q())===`fr`?VXe(e):HXe(e)),UXe=()=>`Échec de l’application.`,WXe=()=>`Failed to apply.`,GXe=((e={},t={})=>(t.locale??q())===`fr`?UXe(e):WXe(e)),KXe=()=>`Réessayer`,qXe=()=>`Retry`,ZQ=((e={},t={})=>(t.locale??q())===`fr`?KXe(e):qXe(e)),JXe=()=>`Réflexion`,YXe=()=>`Reasoning`,XXe=((e={},t={})=>(t.locale??q())===`fr`?JXe(e):YXe(e)),ZXe=()=>`Vitesse`,QXe=()=>`Speed`,$Xe=((e={},t={})=>(t.locale??q())===`fr`?ZXe(e):QXe(e)),eZe=()=>`Hérité`,tZe=()=>`Inherited`,nZe=((e={},t={})=>(t.locale??q())===`fr`?eZe(e):tZe(e)),rZe=()=>`Rapide`,iZe=()=>`Fast`,QQ=((e={},t={})=>(t.locale??q())===`fr`?rZe(e):iZe(e)),aZe=()=>`Standard`,oZe=()=>`Standard`,$Q=((e={},t={})=>(t.locale??q())===`fr`?aZe(e):oZe(e)),sZe=()=>`Tous les réglages de session`,cZe=()=>`All session settings`,lZe=((e={},t={})=>(t.locale??q())===`fr`?sZe(e):cZe(e)),uZe=()=>`Réglages de session`,dZe=()=>`Session settings`,fZe=((e={},t={})=>(t.locale??q())===`fr`?uZe(e):dZe(e)),pZe=()=>`Réglages appliqués à cette conversation.`,mZe=()=>`Settings applied to this conversation.`,hZe=((e={},t={})=>(t.locale??q())===`fr`?pZe(e):mZe(e)),gZe=()=>`Génération`,_Ze=()=>`Generation`,vZe=((e={},t={})=>(t.locale??q())===`fr`?gZe(e):_Ze(e)),yZe=()=>`Session`,bZe=()=>`Session`,xZe=((e={},t={})=>(t.locale??q())===`fr`?yZe(e):bZe(e)),SZe=()=>`Agent`,CZe=()=>`Agent`,wZe=((e={},t={})=>(t.locale??q())===`fr`?SZe(e):CZe(e)),TZe=()=>`Actions`,EZe=()=>`Actions`,DZe=((e={},t={})=>(t.locale??q())===`fr`?TZe(e):EZe(e)),OZe=()=>`Contexte`,kZe=()=>`Context`,AZe=((e={},t={})=>(t.locale??q())===`fr`?OZe(e):kZe(e)),jZe=e=>`${e?.pct} % · ${e?.used} / ${e?.total} jetons`,MZe=e=>`${e?.pct}% · ${e?.used} / ${e?.total} tokens`,NZe=((e,t={})=>(t.locale??q())===`fr`?jZe(e):MZe(e)),PZe=()=>`Verbosité`,FZe=()=>`Verbosity`,IZe=((e={},t={})=>(t.locale??q())===`fr`?PZe(e):FZe(e)),LZe=e=>`${e?.level} · fixée`,RZe=e=>`${e?.level} · pinned`,zZe=((e,t={})=>(t.locale??q())===`fr`?LZe(e):RZe(e)),BZe=()=>`Fixée par la passerelle pour un streaming complet.`,VZe=()=>`Pinned by the bridge for complete streaming.`,HZe=((e={},t={})=>(t.locale??q())===`fr`?BZe(e):VZe(e)),UZe=()=>`Coût / jetons`,WZe=()=>`Cost / tokens`,GZe=((e={},t={})=>(t.locale??q())===`fr`?UZe(e):WZe(e)),KZe=e=>`~${e?.cost} $ · ${e?.tokens} jetons`,qZe=e=>`~$${e?.cost} · ${e?.tokens} tokens`,JZe=((e,t={})=>(t.locale??q())===`fr`?KZe(e):qZe(e)),YZe=e=>`~${e?.cost} $`,XZe=e=>`~$${e?.cost}`,ZZe=((e,t={})=>(t.locale??q())===`fr`?YZe(e):XZe(e)),QZe=e=>`${e?.tokens} jetons`,$Ze=e=>`${e?.tokens} tokens`,eQe=((e,t={})=>(t.locale??q())===`fr`?QZe(e):$Ze(e)),tQe=()=>`Compacter le contexte`,nQe=()=>`Compact the context`,rQe=((e={},t={})=>(t.locale??q())===`fr`?tQe(e):nQe(e)),iQe=()=>`Compacter le contexte ?`,aQe=()=>`Compact the context?`,oQe=((e={},t={})=>(t.locale??q())===`fr`?iQe(e):aQe(e)),sQe=()=>`L’agent résume la conversation pour libérer de l’espace dans la fenêtre de contexte. Les messages restent visibles ici.`,cQe=()=>`The agent summarizes the conversation to free space in the context window. Messages stay visible here.`,lQe=((e={},t={})=>(t.locale??q())===`fr`?sQe(e):cQe(e)),uQe=()=>`Compacter`,dQe=()=>`Compact`,fQe=((e={},t={})=>(t.locale??q())===`fr`?uQe(e):dQe(e)),pQe=()=>`Réinitialiser la session`,mQe=()=>`Reset the session`,hQe=((e={},t={})=>(t.locale??q())===`fr`?pQe(e):mQe(e)),gQe=()=>`Réinitialiser la session ?`,_Qe=()=>`Reset the session?`,vQe=((e={},t={})=>(t.locale??q())===`fr`?gQe(e):_Qe(e)),yQe=()=>`La session de l’agent repart à zéro et se réhydrate depuis la conversation au prochain message. Aucun message n’est supprimé.`,bQe=()=>`The agent session starts fresh and re-hydrates from the conversation on the next message. No message is deleted.`,xQe=((e={},t={})=>(t.locale??q())===`fr`?yQe(e):bQe(e)),SQe=()=>`Réinitialiser`,CQe=()=>`Reset`,wQe=((e={},t={})=>(t.locale??q())===`fr`?SQe(e):CQe(e)),TQe=()=>`Demande envoyée à l’agent.`,EQe=()=>`Request sent to the agent.`,DQe=((e={},t={})=>(t.locale??q())===`fr`?TQe(e):EQe(e)),OQe=()=>`Échec de l’action.`,kQe=()=>`Action failed.`,AQe=((e={},t={})=>(t.locale??q())===`fr`?OQe(e):kQe(e)),jQe=()=>`Fichiers d’agent`,MQe=()=>`Agent files`,NQe=((e={},t={})=>(t.locale??q())===`fr`?jQe(e):MQe(e)),PQe=()=>`Fichiers de l’espace de travail de l’agent (règles, identité, outils). La jauge mesure l’usage du budget bootstrap par fichier ; l’écriture est réservée aux administrateurs et chaque écriture est auditée.`,FQe=()=>`The agent’s workspace files (rules, identity, tools). The gauge tracks each file’s bootstrap budget usage; writing is admin-only and every write is audited.`,IQe=((e={},t={})=>(t.locale??q())===`fr`?PQe(e):FQe(e)),LQe=()=>`Instance`,RQe=()=>`Instance`,e$=((e={},t={})=>(t.locale??q())===`fr`?LQe(e):RQe(e)),zQe=()=>`Agent`,BQe=()=>`Agent`,VQe=((e={},t={})=>(t.locale??q())===`fr`?zQe(e):BQe(e)),HQe=()=>`Aucun agent disponible.`,UQe=()=>`No agent available.`,WQe=((e={},t={})=>(t.locale??q())===`fr`?HQe(e):UQe(e)),GQe=()=>`Aucun fichier.`,KQe=()=>`No files.`,qQe=((e={},t={})=>(t.locale??q())===`fr`?GQe(e):KQe(e)),JQe=()=>`Bridge injoignable — impossible de lister les fichiers.`,YQe=()=>`Bridge unreachable — cannot list the files.`,XQe=((e={},t={})=>(t.locale??q())===`fr`?JQe(e):YQe(e)),ZQe=()=>`absent`,QQe=()=>`missing`,$Qe=((e={},t={})=>(t.locale??q())===`fr`?ZQe(e):QQe(e)),e$e=e=>`${e?.size} ko`,t$e=e=>`${e?.size} kB`,n$e=((e,t={})=>(t.locale??q())===`fr`?e$e(e):t$e(e)),r$e=e=>`${e?.pct} %`,i$e=e=>`${e?.pct}%`,a$e=((e,t={})=>(t.locale??q())===`fr`?r$e(e):i$e(e)),o$e=()=>`Proche de la limite bootstrap`,s$e=()=>`Near the bootstrap limit`,c$e=((e={},t={})=>(t.locale??q())===`fr`?o$e(e):s$e(e)),l$e=e=>`Budget total : ${e?.used} ko / ${e?.total} ko (${e?.pct} %)`,u$e=e=>`Total budget: ${e?.used} kB / ${e?.total} kB (${e?.pct}%)`,d$e=((e,t={})=>(t.locale??q())===`fr`?l$e(e):u$e(e)),f$e=()=>`Éditer`,p$e=()=>`Edit`,m$e=((e={},t={})=>(t.locale??q())===`fr`?f$e(e):p$e(e)),h$e=()=>`Consulter`,g$e=()=>`View`,_$e=((e={},t={})=>(t.locale??q())===`fr`?h$e(e):g$e(e)),v$e=e=>`${e?.name}`,y$e=e=>`${e?.name}`,t$=((e,t={})=>(t.locale??q())===`fr`?v$e(e):y$e(e)),b$e=e=>`Agent ${e?.agent} · instance ${e?.instance}`,x$e=e=>`Agent ${e?.agent} · instance ${e?.instance}`,S$e=((e,t={})=>(t.locale??q())===`fr`?b$e(e):x$e(e)),C$e=()=>`lecture seule`,w$e=()=>`read-only`,T$e=((e={},t={})=>(t.locale??q())===`fr`?C$e(e):w$e(e)),E$e=()=>`Source markdown brute — l’aperçu rendu n’est pas disponible ici.`,D$e=()=>`Raw markdown source — a rendered preview is not available here.`,O$e=((e={},t={})=>(t.locale??q())===`fr`?E$e(e):D$e(e)),k$e=e=>`${e?.count} / ${e?.max} caractères`,A$e=e=>`${e?.count} / ${e?.max} characters`,j$e=((e,t={})=>(t.locale??q())===`fr`?k$e(e):A$e(e)),M$e=()=>`Enregistrer`,N$e=()=>`Save`,P$e=((e={},t={})=>(t.locale??q())===`fr`?M$e(e):N$e(e)),F$e=e=>`${e?.name} enregistré.`,I$e=e=>`${e?.name} saved.`,L$e=((e,t={})=>(t.locale??q())===`fr`?F$e(e):I$e(e)),R$e=()=>`Échec de l’enregistrement.`,z$e=()=>`Save failed.`,B$e=((e={},t={})=>(t.locale??q())===`fr`?R$e(e):z$e(e)),V$e=()=>`Impossible de charger le fichier.`,H$e=()=>`Could not load the file.`,U$e=((e={},t={})=>(t.locale??q())===`fr`?V$e(e):H$e(e)),W$e=()=>`Le fichier a changé depuis le chargement. Rechargez avant d’enregistrer (vos modifications sont conservées).`,G$e=()=>`The file changed since it was loaded. Reload before saving (your edits are kept).`,K$e=((e={},t={})=>(t.locale??q())===`fr`?W$e(e):G$e(e)),q$e=()=>`Recharger`,J$e=()=>`Reload`,Y$e=((e={},t={})=>(t.locale??q())===`fr`?q$e(e):J$e(e)),X$e=e=>`Écrire ${e?.name} ?`,Z$e=e=>`Write ${e?.name}?`,Q$e=((e,t={})=>(t.locale??q())===`fr`?X$e(e):Z$e(e)),$$e=e=>`Le fichier sera écrit sur l’agent ${e?.agent}. Une révision complète avant/après est conservée.`,e1e=e=>`The file will be written to agent ${e?.agent}. A full before/after revision is kept.`,t1e=((e,t={})=>(t.locale??q())===`fr`?$$e(e):e1e(e)),n1e=e=>`${e?.added} ligne(s) ajoutée(s) · ${e?.removed} ligne(s) retirée(s)`,r1e=e=>`${e?.added} line(s) added · ${e?.removed} line(s) removed`,i1e=((e,t={})=>(t.locale??q())===`fr`?n1e(e):r1e(e)),a1e=()=>`Ajoutées (extrait) :`,o1e=()=>`Added (sample):`,s1e=((e={},t={})=>(t.locale??q())===`fr`?a1e(e):o1e(e)),c1e=()=>`Retirées (extrait) :`,l1e=()=>`Removed (sample):`,u1e=((e={},t={})=>(t.locale??q())===`fr`?c1e(e):l1e(e)),d1e=()=>`Écrire le fichier`,f1e=()=>`Write the file`,p1e=((e={},t={})=>(t.locale??q())===`fr`?d1e(e):f1e(e)),m1e=()=>`Défauts de chat`,h1e=()=>`Chat defaults`,g1e=((e={},t={})=>(t.locale??q())===`fr`?m1e(e):h1e(e)),_1e=()=>`Réglages par défaut des nouvelles sessions de chat, lus depuis la configuration globale du gateway. Les réglages par chat et par agent restent prioritaires.`,v1e=()=>`Default settings for new chat sessions, read from the gateway’s global configuration. Per-chat and per-agent settings keep precedence.`,y1e=((e={},t={})=>(t.locale??q())===`fr`?_1e(e):v1e(e)),b1e=()=>`Réflexion par défaut`,x1e=()=>`Default thinking`,S1e=((e={},t={})=>(t.locale??q())===`fr`?b1e(e):x1e(e)),C1e=()=>`Niveau de raisonnement appliqué quand un chat ne définit pas le sien.`,w1e=()=>`Reasoning level applied when a chat does not set its own.`,T1e=((e={},t={})=>(t.locale??q())===`fr`?C1e(e):w1e(e)),E1e=()=>`Vitesse par défaut`,D1e=()=>`Default speed`,O1e=((e={},t={})=>(t.locale??q())===`fr`?E1e(e):D1e(e)),k1e=()=>`Mode rapide ou standard appliqué quand un chat ne définit pas le sien.`,A1e=()=>`Fast or standard mode applied when a chat does not set its own.`,j1e=((e={},t={})=>(t.locale??q())===`fr`?k1e(e):A1e(e)),M1e=()=>`Bridge injoignable — impossible de lire les défauts globaux.`,N1e=()=>`Bridge unreachable — cannot read the global defaults.`,P1e=((e={},t={})=>(t.locale??q())===`fr`?M1e(e):N1e(e)),F1e=()=>`Enregistrer`,I1e=()=>`Save`,L1e=((e={},t={})=>(t.locale??q())===`fr`?F1e(e):I1e(e)),R1e=()=>`Défauts globaux enregistrés.`,z1e=()=>`Global defaults saved.`,B1e=((e={},t={})=>(t.locale??q())===`fr`?R1e(e):z1e(e)),V1e=()=>`Échec de l’écriture des défauts globaux.`,H1e=()=>`Failed to write the global defaults.`,U1e=((e={},t={})=>(t.locale??q())===`fr`?V1e(e):H1e(e)),W1e=()=>`Ces valeurs sont écrites dans openclaw.json, la configuration globale de l’instance — elles s’appliquent à tous les utilisateurs.`,G1e=()=>`These values are written to openclaw.json, the instance’s global configuration — they apply to every user.`,K1e=((e={},t={})=>(t.locale??q())===`fr`?W1e(e):G1e(e)),q1e=()=>`Modifier les défauts globaux ?`,J1e=()=>`Change the global defaults?`,Y1e=((e={},t={})=>(t.locale??q())===`fr`?q1e(e):J1e(e)),X1e=()=>`Cette écriture modifie openclaw.json pour toute l’instance : tous les chats qui héritent du défaut changeront de comportement.`,Z1e=()=>`This write changes openclaw.json for the whole instance: every chat inheriting the default will change behavior.`,Q1e=((e={},t={})=>(t.locale??q())===`fr`?X1e(e):Z1e(e)),$1e=()=>`Modifier`,e0e=()=>`Change`,t0e=((e={},t={})=>(t.locale??q())===`fr`?$1e(e):e0e(e)),n0e=()=>`Compatibilité`,r0e=()=>`Compatibility`,i0e=((e={},t={})=>(t.locale??q())===`fr`?n0e(e):r0e(e)),a0e=()=>`Aucun relevé de compatibilité pour l’instant — le sondage tourne toutes les 5 minutes.`,o0e=()=>`No compatibility reading yet — the poll runs every 5 minutes.`,s0e=((e={},t={})=>(t.locale??q())===`fr`?a0e(e):o0e(e)),c0e=()=>`Protocole :`,l0e=()=>`Protocol:`,u0e=((e={},t={})=>(t.locale??q())===`fr`?c0e(e):l0e(e)),d0e=()=>`inconnue`,f0e=()=>`unknown`,n$=((e={},t={})=>(t.locale??q())===`fr`?d0e(e):f0e(e)),p0e=()=>`Dernier sondage en échec — affichage du dernier relevé valide.`,m0e=()=>`Last poll failed — showing the last good reading.`,h0e=((e={},t={})=>(t.locale??q())===`fr`?p0e(e):m0e(e)),g0e=()=>`Ce bridge ne publie pas de manifeste de compatibilité (version antérieure) — politique héritée : seuls le modèle et la réflexion sont proposés.`,_0e=()=>`This bridge does not publish a compatibility manifest (older version) — legacy policy: only model and reasoning are offered.`,v0e=((e={},t={})=>(t.locale??q())===`fr`?g0e(e):_0e(e)),y0e=()=>`OpenClaw supporté :`,b0e=()=>`OpenClaw supported:`,x0e=((e={},t={})=>(t.locale??q())===`fr`?y0e(e):b0e(e)),S0e=e=>`de ${e?.min} à ${e?.max} (validé)`,C0e=e=>`from ${e?.min} to ${e?.max} (validated)`,w0e=((e,t={})=>(t.locale??q())===`fr`?S0e(e):C0e(e)),T0e=()=>`1 version validée`,E0e=()=>`1 validated version`,D0e=((e={},t={})=>(t.locale??q())===`fr`?T0e(e):E0e(e)),O0e=e=>`${e?.count} versions validées`,k0e=e=>`${e?.count} validated versions`,A0e=((e,t={})=>(t.locale??q())===`fr`?O0e(e):k0e(e)),j0e=()=>`Validées au banc`,M0e=()=>`Bench-validated`,N0e=((e={},t={})=>(t.locale??q())===`fr`?j0e(e):M0e(e)),P0e=()=>`Aucune connexion connue du relevé de compatibilité.`,F0e=()=>`No connection known to the compatibility reading.`,I0e=((e={},t={})=>(t.locale??q())===`fr`?P0e(e):F0e(e)),L0e=()=>`✓ dans le support`,R0e=()=>`✓ within support`,z0e=((e={},t={})=>(t.locale??q())===`fr`?L0e(e):R0e(e)),B0e=()=>`⚠ au-delà du validé`,V0e=()=>`⚠ beyond validated`,H0e=((e={},t={})=>(t.locale??q())===`fr`?B0e(e):V0e(e)),U0e=()=>`? inconnue`,W0e=()=>`? unknown`,G0e=((e={},t={})=>(t.locale??q())===`fr`?U0e(e):W0e(e)),K0e=()=>`Hermes : adaptateur à venir.`,q0e=()=>`Hermes: adapter coming.`,J0e=((e={},t={})=>(t.locale??q())===`fr`?K0e(e):q0e(e)),Y0e=e=>`Non supporté par cette instance (version gateway ${e?.version}).`,X0e=e=>`Not supported by this instance (gateway version ${e?.version}).`,Z0e=((e,t={})=>(t.locale??q())===`fr`?Y0e(e):X0e(e)),Q0e=()=>`Non supporté par cette instance (version gateway inconnue).`,$0e=()=>`Not supported by this instance (unknown gateway version).`,e2e=((e={},t={})=>(t.locale??q())===`fr`?Q0e(e):$0e(e)),r$=(0,N.createContext)({label:`Atrium`,logoUrl:null,isDefault:!0,initials:`A`,agentName:null,agentEmoji:null});function i$(){return(0,N.useContext)(r$)}function t2e(e){return e.agentName??e.label}function n2e(e){return e.agentName?YK({name:e.agentName}):KK({name:e.label})}var r2e={user:lBe(),assistant:`OpenClaw`,system:fBe()},i2e=hBe();function a$(e){return new Date(e).toISOString().slice(0,16).replace(`T`,` `)+` UTC`}function o$(e){return e?e.filter(e=>e.kind===`file`||e.kind===`media`).map(e=>e.filename).filter(e=>typeof e==`string`&&e.length>0):[]}function a2e(e,t={}){let n=[];n.push(`# ${t.title?.trim()||AQ()}`),t.exportedAt!=null&&(n.push(``),n.push(`_${bBe({date:a$(t.exportedAt)})}_`)),t.truncated&&(n.push(``),n.push(i2e));for(let t of e){n.push(``),n.push(`## ${r2e[t.role]} · ${a$(t.createdAt)}`);let e=t.text.trim();e.length>0&&(n.push(``),n.push(e));for(let e of o$(t.parts))n.push(``),n.push(CBe({name:e}))}return n.join(`
|
|
128
128
|
`)+`
|
|
129
129
|
`}function o2e(e,t={}){let n={title:t.title?.trim()||AQ(),exportedAt:t.exportedAt??null,truncated:!!t.truncated,messageCount:e.length,messages:e.map(e=>({role:e.role,createdAt:e.createdAt,text:e.text,attachments:o$(e.parts)}))};return JSON.stringify(n,null,2)+`
|
|
130
|
-
`}function s2e(e){return((e??``).trim()||`conversation`).toLowerCase().normalize(`NFD`).replace(/[̀-ͯ]/g,``).replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``).slice(0,60)||`conversation`}function s$(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=s$(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function c$(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=s$(e))&&(r&&(r+=` `),r+=t);return r}var c2e=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},l2e=(e,t)=>({classGroupId:e,validator:t}),l$=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),u$=`-`,d$=[],u2e=`arbitrary..`,d2e=e=>{let t=p2e(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return f2e(e);let n=e.split(u$);return f$(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?c2e(i,t):t:i||d$}return n[e]||d$}}},f$=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=f$(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(u$):e.slice(t).join(u$),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},f2e=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?u2e+r:void 0})(),p2e=e=>{let{theme:t,classGroups:n}=e;return m2e(n,t)},m2e=(e,t)=>{let n=l$();for(let r in e){let i=e[r];p$(i,n,r,t)}return n},p$=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];h2e(i,t,n,r)}},h2e=(e,t,n,r)=>{if(typeof e==`string`){g2e(e,t,n);return}if(typeof e==`function`){_2e(e,t,n,r);return}v2e(e,t,n,r)},g2e=(e,t,n)=>{let r=e===``?t:m$(t,e);r.classGroupId=n},_2e=(e,t,n,r)=>{if(y2e(e)){p$(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(l2e(n,e))},v2e=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];p$(o,m$(t,a),n,r)}},m$=(e,t)=>{let n=e,r=t.split(u$),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=l$(),n.nextPart.set(t,i)),n=i}return n},y2e=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,b2e=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},h$=`!`,g$=`:`,x2e=[],_$=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),S2e=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===g$){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(h$)?(c=s.slice(0,-1),l=!0):s.startsWith(h$)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return _$(t,l,c,u)};if(t){let e=t+g$,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):_$(x2e,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},C2e=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},w2e=e=>({cache:b2e(e.cacheSize),parseClassName:S2e(e),sortModifiers:C2e(e),postfixLookupClassGroupIds:T2e(e),...d2e(e)}),T2e=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},E2e=/\s+/,D2e=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(E2e),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+h$:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},O2e=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=v$(n))&&(i&&(i+=` `),i+=r);return i},v$=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=v$(e[r]))&&(n&&(n+=` `),n+=t);return n},k2e=(e,...t)=>{let n,r,i,a,o=o=>(n=w2e(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=D2e(e,n);return i(e,a),a};return a=o,(...e)=>a(O2e(...e))},A2e=[],y$=e=>{let t=t=>t[e]||A2e;return t.isThemeGetter=!0,t},b$=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,x$=/^\((?:(\w[\w-]*):)?(.+)\)$/i,j2e=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,M2e=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,N2e=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,P2e=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,F2e=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,I2e=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,S$=e=>j2e.test(e),C$=e=>!!e&&!Number.isNaN(Number(e)),w$=e=>!!e&&Number.isInteger(Number(e)),T$=e=>e.endsWith(`%`)&&C$(e.slice(0,-1)),E$=e=>M2e.test(e),D$=()=>!0,L2e=e=>N2e.test(e)&&!P2e.test(e),O$=()=>!1,R2e=e=>F2e.test(e),z2e=e=>I2e.test(e),B2e=e=>!J(e)&&!Y(e),V2e=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),H2e=e=>I$(e,B$,O$),J=e=>b$.test(e),k$=e=>I$(e,V$,L2e),A$=e=>I$(e,X2e,C$),U2e=e=>I$(e,U$,D$),W2e=e=>I$(e,H$,O$),j$=e=>I$(e,R$,O$),G2e=e=>I$(e,z$,z2e),M$=e=>I$(e,W$,R2e),Y=e=>x$.test(e),N$=e=>L$(e,V$),K2e=e=>L$(e,H$),P$=e=>L$(e,R$),q2e=e=>L$(e,B$),J2e=e=>L$(e,z$),F$=e=>L$(e,W$,!0),Y2e=e=>L$(e,U$,!0),I$=(e,t,n)=>{let r=b$.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},L$=(e,t,n=!1)=>{let r=x$.exec(e);return r?r[1]?t(r[1]):n:!1},R$=e=>e===`position`||e===`percentage`,z$=e=>e===`image`||e===`url`,B$=e=>e===`length`||e===`size`||e===`bg-size`,V$=e=>e===`length`,X2e=e=>e===`number`,H$=e=>e===`family-name`,U$=e=>e===`number`||e===`weight`,W$=e=>e===`shadow`,Z2e=k2e(()=>{let e=y$(`color`),t=y$(`font`),n=y$(`text`),r=y$(`font-weight`),i=y$(`tracking`),a=y$(`leading`),o=y$(`breakpoint`),s=y$(`container`),c=y$(`spacing`),l=y$(`radius`),u=y$(`shadow`),d=y$(`inset-shadow`),f=y$(`text-shadow`),p=y$(`drop-shadow`),m=y$(`blur`),h=y$(`perspective`),g=y$(`aspect`),_=y$(`ease`),v=y$(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),Y,J],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[Y,J,c],T=()=>[S$,`full`,`auto`,...w()],E=()=>[w$,`none`,`subgrid`,Y,J],D=()=>[`auto`,{span:[`full`,w$,Y,J]},w$,Y,J],O=()=>[w$,`auto`,Y,J],ee=()=>[`auto`,`min`,`max`,`fr`,Y,J],te=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],k=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],A=()=>[`auto`,...w()],j=()=>[S$,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],ne=()=>[S$,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],re=()=>[S$,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],M=()=>[e,Y,J],ie=()=>[...b(),P$,j$,{position:[Y,J]}],ae=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],oe=()=>[`auto`,`cover`,`contain`,q2e,H2e,{size:[Y,J]}],se=()=>[T$,N$,k$],ce=()=>[``,`none`,`full`,l,Y,J],le=()=>[``,C$,N$,k$],ue=()=>[`solid`,`dashed`,`dotted`,`double`],de=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],fe=()=>[C$,T$,P$,j$],pe=()=>[``,`none`,m,Y,J],me=()=>[`none`,C$,Y,J],he=()=>[`none`,C$,Y,J],ge=()=>[C$,Y,J],_e=()=>[S$,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[E$],breakpoint:[E$],color:[D$],container:[E$],"drop-shadow":[E$],ease:[`in`,`out`,`in-out`],font:[B2e],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[E$],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[E$],shadow:[E$],spacing:[`px`,C$],text:[E$],"text-shadow":[E$],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,S$,J,Y,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,Y,J]}],"container-named":[V2e],columns:[{columns:[C$,J,Y,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[w$,`auto`,Y,J]}],basis:[{basis:[S$,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[C$,S$,`auto`,`initial`,`none`,J]}],grow:[{grow:[``,C$,Y,J]}],shrink:[{shrink:[``,C$,Y,J]}],order:[{order:[w$,`first`,`last`,`none`,Y,J]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ee()}],"auto-rows":[{"auto-rows":ee()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...te(),`normal`]}],"justify-items":[{"justify-items":[...k(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...k()]}],"align-content":[{content:[`normal`,...te()]}],"align-items":[{items:[...k(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...k(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":te()}],"place-items":[{"place-items":[...k(),`baseline`]}],"place-self":[{"place-self":[`auto`,...k()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mbs:[{mbs:A()}],mbe:[{mbe:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:j()}],"inline-size":[{inline:[`auto`,...ne()]}],"min-inline-size":[{"min-inline":[`auto`,...ne()]}],"max-inline-size":[{"max-inline":[`none`,...ne()]}],"block-size":[{block:[`auto`,...re()]}],"min-block-size":[{"min-block":[`auto`,...re()]}],"max-block-size":[{"max-block":[`none`,...re()]}],w:[{w:[s,`screen`,...j()]}],"min-w":[{"min-w":[s,`screen`,`none`,...j()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...j()]}],h:[{h:[`screen`,`lh`,...j()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...j()]}],"max-h":[{"max-h":[`screen`,`lh`,...j()]}],"font-size":[{text:[`base`,n,N$,k$]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Y2e,U2e]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,T$,J]}],"font-family":[{font:[K2e,W2e,t]}],"font-features":[{"font-features":[J]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,Y,J]}],"line-clamp":[{"line-clamp":[C$,`none`,Y,A$]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,Y,J]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,Y,J]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ue(),`wavy`]}],"text-decoration-thickness":[{decoration:[C$,`from-font`,`auto`,Y,k$]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[C$,`auto`,Y,J]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[w$,Y,J]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,Y,J]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,Y,J]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ie()}],"bg-repeat":[{bg:ae()}],"bg-size":[{bg:oe()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},w$,Y,J],radial:[``,Y,J],conic:[w$,Y,J]},J2e,G2e]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:ce()}],"rounded-s":[{"rounded-s":ce()}],"rounded-e":[{"rounded-e":ce()}],"rounded-t":[{"rounded-t":ce()}],"rounded-r":[{"rounded-r":ce()}],"rounded-b":[{"rounded-b":ce()}],"rounded-l":[{"rounded-l":ce()}],"rounded-ss":[{"rounded-ss":ce()}],"rounded-se":[{"rounded-se":ce()}],"rounded-ee":[{"rounded-ee":ce()}],"rounded-es":[{"rounded-es":ce()}],"rounded-tl":[{"rounded-tl":ce()}],"rounded-tr":[{"rounded-tr":ce()}],"rounded-br":[{"rounded-br":ce()}],"rounded-bl":[{"rounded-bl":ce()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-bs":[{"border-bs":le()}],"border-w-be":[{"border-be":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":le()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ue(),`hidden`,`none`]}],"divide-style":[{divide:[...ue(),`hidden`,`none`]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-bs":[{"border-bs":M()}],"border-color-be":[{"border-be":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...ue(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[C$,Y,J]}],"outline-w":[{outline:[``,C$,N$,k$]}],"outline-color":[{outline:M()}],shadow:[{shadow:[``,`none`,u,F$,M$]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":[`none`,d,F$,M$]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:le()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[C$,k$]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":[`none`,f,F$,M$]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[C$,Y,J]}],"mix-blend":[{"mix-blend":[...de(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":de()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[C$]}],"mask-image-linear-from-pos":[{"mask-linear-from":fe()}],"mask-image-linear-to-pos":[{"mask-linear-to":fe()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":fe()}],"mask-image-t-to-pos":[{"mask-t-to":fe()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":fe()}],"mask-image-r-to-pos":[{"mask-r-to":fe()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":fe()}],"mask-image-b-to-pos":[{"mask-b-to":fe()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":fe()}],"mask-image-l-to-pos":[{"mask-l-to":fe()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":fe()}],"mask-image-x-to-pos":[{"mask-x-to":fe()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":fe()}],"mask-image-y-to-pos":[{"mask-y-to":fe()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[Y,J]}],"mask-image-radial-from-pos":[{"mask-radial-from":fe()}],"mask-image-radial-to-pos":[{"mask-radial-to":fe()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[C$]}],"mask-image-conic-from-pos":[{"mask-conic-from":fe()}],"mask-image-conic-to-pos":[{"mask-conic-to":fe()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ie()}],"mask-repeat":[{mask:ae()}],"mask-size":[{mask:oe()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,Y,J]}],filter:[{filter:[``,`none`,Y,J]}],blur:[{blur:pe()}],brightness:[{brightness:[C$,Y,J]}],contrast:[{contrast:[C$,Y,J]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,F$,M$]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:[``,C$,Y,J]}],"hue-rotate":[{"hue-rotate":[C$,Y,J]}],invert:[{invert:[``,C$,Y,J]}],saturate:[{saturate:[C$,Y,J]}],sepia:[{sepia:[``,C$,Y,J]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,Y,J]}],"backdrop-blur":[{"backdrop-blur":pe()}],"backdrop-brightness":[{"backdrop-brightness":[C$,Y,J]}],"backdrop-contrast":[{"backdrop-contrast":[C$,Y,J]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,C$,Y,J]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[C$,Y,J]}],"backdrop-invert":[{"backdrop-invert":[``,C$,Y,J]}],"backdrop-opacity":[{"backdrop-opacity":[C$,Y,J]}],"backdrop-saturate":[{"backdrop-saturate":[C$,Y,J]}],"backdrop-sepia":[{"backdrop-sepia":[``,C$,Y,J]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,Y,J]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[C$,`initial`,Y,J]}],ease:[{ease:[`linear`,`initial`,_,Y,J]}],delay:[{delay:[C$,Y,J]}],animate:[{animate:[`none`,v,Y,J]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,Y,J]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:me()}],"rotate-x":[{"rotate-x":me()}],"rotate-y":[{"rotate-y":me()}],"rotate-z":[{"rotate-z":me()}],scale:[{scale:he()}],"scale-x":[{"scale-x":he()}],"scale-y":[{"scale-y":he()}],"scale-z":[{"scale-z":he()}],"scale-3d":[`scale-3d`],skew:[{skew:ge()}],"skew-x":[{"skew-x":ge()}],"skew-y":[{"skew-y":ge()}],transform:[{transform:[Y,J,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:_e()}],"translate-x":[{"translate-x":_e()}],"translate-y":[{"translate-y":_e()}],"translate-z":[{"translate-z":_e()}],"translate-none":[`translate-none`],zoom:[{zoom:[w$,Y,J]}],accent:[{accent:M()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,Y,J]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":M()}],"scrollbar-track-color":[{"scrollbar-track":M()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,Y,J]}],fill:[{fill:[`none`,...M()]}],"stroke-w":[{stroke:[C$,N$,k$,A$]}],stroke:[{stroke:[`none`,...M()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function G$(...e){return Z2e(c$(e))}function K$(e){return(0,I.jsx)(tle,{"data-slot":`dropdown-menu`,...e})}function q$(e){return(0,I.jsx)(nle,{"data-slot":`dropdown-menu-trigger`,...e})}function J$({className:e,sideOffset:t=4,...n}){return(0,I.jsx)(rle,{children:(0,I.jsx)(ile,{"data-slot":`dropdown-menu-content`,sideOffset:t,className:G$(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md`,e),...n})})}function Y$({className:e,inset:t,variant:n=`default`,...r}){return(0,I.jsx)(ole,{"data-slot":`dropdown-menu-item`,"data-inset":t,"data-variant":n,className:G$(`focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...r})}function X$({className:e,inset:t,...n}){return(0,I.jsx)(ale,{"data-slot":`dropdown-menu-label`,"data-inset":t,className:G$(`px-2 py-1.5 text-sm font-medium data-[inset]:pl-8`,e),...n})}function Z$({className:e,...t}){return(0,I.jsx)(ule,{"data-slot":`dropdown-menu-separator`,className:G$(`bg-border -mx-1 my-1 h-px`,e),...t})}function Q2e(e){return(0,I.jsx)(sle,{"data-slot":`dropdown-menu-radio-group`,...e})}function Q$({className:e,children:t,...n}){return(0,I.jsxs)(cle,{"data-slot":`dropdown-menu-radio-item`,className:G$(`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...n,children:[(0,I.jsx)(`span`,{className:`pointer-events-none absolute left-2 flex size-3.5 items-center justify-center`,children:(0,I.jsx)(lle,{children:(0,I.jsx)(Cee,{className:`size-2 fill-current`})})}),t]})}function $$({...e}){return(0,I.jsx)(CT,{"data-slot":`popover`,...e})}function e1({...e}){return(0,I.jsx)(wT,{"data-slot":`popover-trigger`,...e})}function t1({className:e,align:t=`center`,sideOffset:n=4,...r}){return(0,I.jsx)(TT,{children:(0,I.jsx)(ET,{"data-slot":`popover-content`,align:t,sideOffset:n,className:G$(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden`,e),...r})})}var n1=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,r1=c$,i1=(e,t)=>n=>{if(t?.variants==null)return r1(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=n1(t)||n1(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return r1(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},a1=i1(`group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/80`,outline:`border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,destructive:`bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,xs:`h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5`,lg:`h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,icon:`size-8`,"icon-xs":`size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg`,"icon-lg":`size-9`}},defaultVariants:{variant:`default`,size:`default`}});function X({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i}){return(0,I.jsx)(r?Cy:`button`,{"data-slot":`button`,"data-variant":t,"data-size":n,className:G$(a1({variant:t,size:n,className:e})),...i})}function o1({className:e,type:t,...n}){return(0,I.jsx)(`input`,{type:t,"data-slot":`input`,className:G$(`h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,e),...n})}function s1({...e}){return(0,I.jsx)(Wx,{"data-slot":`alert-dialog`,...e})}function $2e({...e}){return(0,I.jsx)(Gx,{"data-slot":`alert-dialog-portal`,...e})}function e4e({className:e,...t}){return(0,I.jsx)(Kx,{"data-slot":`alert-dialog-overlay`,className:G$(`fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function c1({className:e,...t}){return(0,I.jsxs)($2e,{children:[(0,I.jsx)(e4e,{}),(0,I.jsx)(qx,{"data-slot":`alert-dialog-content`,className:G$(`fixed top-1/2 left-1/2 z-50 grid w-[calc(100%-2rem)] max-w-md -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl border border-border bg-popover bg-clip-padding p-5 text-sm text-popover-foreground shadow-lg duration-200 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...t})]})}function l1({className:e,...t}){return(0,I.jsx)(`div`,{"data-slot":`alert-dialog-header`,className:G$(`flex flex-col gap-1.5`,e),...t})}function u1({className:e,...t}){return(0,I.jsx)(`div`,{"data-slot":`alert-dialog-footer`,className:G$(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...t})}function d1({className:e,...t}){return(0,I.jsx)(Xx,{"data-slot":`alert-dialog-title`,className:G$(`text-base font-medium text-foreground`,e),...t})}function f1({className:e,...t}){return(0,I.jsx)(Zx,{"data-slot":`alert-dialog-description`,className:G$(`text-sm text-muted-foreground`,e),...t})}function p1({className:e,...t}){return(0,I.jsx)(Jx,{className:G$(a1(),e),...t})}function m1({className:e,...t}){return(0,I.jsx)(Yx,{className:G$(a1({variant:`outline`}),e),...t})}function h1({...e}){return(0,I.jsx)(xx,{"data-slot":`dialog`,...e})}function t4e({...e}){return(0,I.jsx)(Sx,{"data-slot":`dialog-portal`,...e})}function n4e({className:e,...t}){return(0,I.jsx)(Cx,{"data-slot":`dialog-overlay`,className:G$(`fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function g1({className:e,children:t,showCloseButton:n=!0,...r}){return(0,I.jsxs)(t4e,{children:[(0,I.jsx)(n4e,{}),(0,I.jsxs)(wx,{"data-slot":`dialog-content`,className:G$(`fixed top-1/2 left-1/2 z-50 grid w-[calc(100%-2rem)] max-w-md -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl border border-border bg-popover bg-clip-padding p-5 text-sm text-popover-foreground shadow-lg duration-200 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...r,children:[t,n&&(0,I.jsx)(Dx,{"data-slot":`dialog-close`,asChild:!0,children:(0,I.jsxs)(X,{variant:`ghost`,size:`icon-sm`,className:`absolute top-3 right-3`,children:[(0,I.jsx)(Km,{}),(0,I.jsx)(`span`,{className:`sr-only`,children:JQ()})]})})]})]})}function _1({className:e,...t}){return(0,I.jsx)(`div`,{"data-slot":`dialog-header`,className:G$(`flex flex-col gap-1.5 pr-6`,e),...t})}function v1({className:e,...t}){return(0,I.jsx)(`div`,{"data-slot":`dialog-footer`,className:G$(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...t})}function y1({className:e,...t}){return(0,I.jsx)(Tx,{"data-slot":`dialog-title`,className:G$(`text-base font-medium text-foreground`,e),...t})}function b1({className:e,...t}){return(0,I.jsx)(Ex,{"data-slot":`dialog-description`,className:G$(`text-sm text-muted-foreground`,e),...t})}var x1=N.createContext(null);function r4e({children:e}){let[t,n]=N.useState(null),r=N.useRef(null),i=N.useRef(null),[a,o]=N.useState(``),s=N.useCallback(e=>{let t=r.current;r.current=null,n(null),t&&t(e)},[]),c=N.useMemo(()=>({confirm:e=>new Promise(t=>{r.current=t,o(``),n({kind:`confirm`,opts:e})}),prompt:e=>new Promise(t=>{r.current=t,o(e.defaultValue??``),n({kind:`prompt`,opts:e})})}),[]),l=t?.kind===`confirm`,u=t?.kind===`prompt`,d=t?.kind===`confirm`?t.opts.confirmWord:void 0,f=!d||a.trim().toLowerCase()===d.trim().toLowerCase(),p=a.trim().length>0,m=e=>{e.preventDefault(),requestAnimationFrame(()=>i.current?.focus())};return(0,I.jsxs)(x1.Provider,{value:c,children:[e,(0,I.jsx)(s1,{open:l,onOpenChange:e=>{e||s(!1)},children:l?(0,I.jsxs)(c1,{onOpenAutoFocus:d?m:void 0,...t.opts.description?{}:{"aria-describedby":void 0},children:[(0,I.jsxs)(l1,{children:[(0,I.jsx)(d1,{children:t.opts.title}),t.opts.description?(0,I.jsx)(f1,{children:t.opts.description}):null]}),d?(0,I.jsxs)(`label`,{className:`flex flex-col gap-1.5`,children:[(0,I.jsxs)(`span`,{className:`text-sm text-muted-foreground`,children:[`Pour confirmer, saisissez`,` `,(0,I.jsxs)(`span`,{className:`font-medium text-foreground`,children:[`« `,d,` »`]}),` `,`ci-dessous.`]}),(0,I.jsx)(o1,{ref:i,value:a,placeholder:d,autoComplete:`off`,onChange:e=>o(e.target.value),onKeyDown:e=>{e.key===`Enter`&&f&&(e.preventDefault(),s(!0))}})]}):null,(0,I.jsxs)(u1,{children:[(0,I.jsx)(m1,{onClick:()=>s(!1),children:t.opts.cancelLabel??`Annuler`}),(0,I.jsx)(X,{variant:t.opts.destructive?`destructive`:`default`,disabled:!f,onClick:()=>s(!0),children:t.opts.confirmLabel??`Supprimer`})]})]}):null}),(0,I.jsx)(h1,{open:u,onOpenChange:e=>{e||s(null)},children:u?(0,I.jsxs)(g1,{onOpenAutoFocus:m,...t.opts.description?{}:{"aria-describedby":void 0},children:[(0,I.jsxs)(_1,{children:[(0,I.jsx)(y1,{children:t.opts.title}),t.opts.description?(0,I.jsx)(b1,{children:t.opts.description}):null]}),(0,I.jsxs)(`label`,{className:`flex flex-col gap-1.5`,children:[t.opts.label?(0,I.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:t.opts.label}):null,(0,I.jsx)(o1,{ref:i,value:a,placeholder:t.opts.placeholder,autoComplete:`off`,onChange:e=>o(e.target.value),onKeyDown:e=>{e.key===`Enter`&&p&&(e.preventDefault(),s(a.trim()))}})]}),(0,I.jsxs)(v1,{children:[(0,I.jsx)(X,{variant:`outline`,onClick:()=>s(null),children:t.opts.cancelLabel??`Annuler`}),(0,I.jsx)(X,{disabled:!p,onClick:()=>s(a.trim()),children:t.opts.confirmLabel??`Valider`})]})]}):null})]})}function S1(){let e=N.useContext(x1);if(!e)throw Error(`useConfirm/usePrompt must be used within <DialogsProvider>`);return e}function C1(){return S1().confirm}function w1(){return S1().prompt}var T1=N.createContext(null),i4e=6e3;function E1(e){if(e instanceof Error)return e.message;if(typeof e==`string`)return e;try{return String(e)}catch{return`Erreur inconnue`}}function a4e({children:e}){let[t,n]=N.useState([]),r=N.useRef(0),i=N.useRef(new Map),a=N.useCallback(e=>{n(t=>t.filter(t=>t.id!==e));let t=i.current.get(e);t!==void 0&&(window.clearTimeout(t),i.current.delete(e))},[]),o=N.useCallback(e=>{let t=r.current++,o={id:t,variant:e.variant??`info`,title:e.title,description:e.description};n(e=>[...e,o]);let s=window.setTimeout(()=>a(t),i4e);i.current.set(t,s)},[a]);N.useEffect(()=>{let e=i.current;return()=>{for(let t of e.values())window.clearTimeout(t);e.clear()}},[]);let s=N.useMemo(()=>({toast:o,error:(e,t)=>o({variant:`error`,title:e,description:t===void 0?void 0:E1(t)}),success:(e,t)=>o({variant:`success`,title:e,description:t})}),[o]);return(0,I.jsxs)(T1.Provider,{value:s,children:[e,(0,I.jsx)(`div`,{className:`oc-toast__viewport`,role:`region`,"aria-label":`Notifications`,children:t.map(e=>(0,I.jsxs)(`div`,{className:G$(`oc-toast`,`oc-toast--${e.variant}`),role:e.variant===`error`?`alert`:`status`,children:[(0,I.jsxs)(`div`,{className:`oc-toast__body`,children:[(0,I.jsx)(`div`,{className:`oc-toast__title`,children:e.title}),e.description?(0,I.jsx)(`div`,{className:`oc-toast__desc`,children:e.description}):null]}),(0,I.jsx)(`button`,{type:`button`,className:`oc-toast__close`,"aria-label":`Fermer`,onClick:()=>a(e.id),children:(0,I.jsx)(Km,{"aria-hidden":!0})})]},e.id))})]})}function D1(){let e=N.useContext(T1);if(!e)throw Error(`useToast must be used within <ToastProvider>`);return e}function o4e(e){return e.kind===`tool`}function s4e(e){return e.kind===`media`}function c4e(e){return e.kind===`file`}function l4e(e){return e.kind===`reasoning`}var u4e=/---[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}(?=\.[^.]+$|$)/i;function d4e(e){return e.replace(u4e,``)}function f4e(e,t){let n=e.runId??`norun`;return`${e._id}:${n}:${t}`}function p4e(e,t,n){return{toolCallId:f4e(e,t),toolName:n.name,args:n.input??{},result:n.output,argsText:n.input===void 0?void 0:g4e(n.input),phase:typeof n.phase==`string`?n.phase:void 0}}function m4e(e){return e&&d4e(e)}function h4e(e){return e.url?{type:`file`,mimeType:e.mimeType,data:e.url,filename:m4e(e.filename)}:null}function g4e(e){try{return typeof e==`string`?e:JSON.stringify(e,null,2)}catch{return String(e)}}function _4e(e){let t=[],n=[],r=[];return e.parts.forEach((i,a)=>{l4e(i)?t.push({type:`reasoning`,text:i.text}):o4e(i)?n.push(p4e(e,a,i)):i.kind===`provenance`&&r.push(i)}),e.text&&e.text.length>0&&t.push({type:`text`,text:e.text}),e.parts.forEach(e=>{if(s4e(e)||c4e(e)){let n=h4e(e);n&&t.push(n)}}),t.length===0&&t.push({type:`text`,text:``}),{id:e._id,role:e.role,createdAt:new Date(e.updatedAt??e._creationTime),content:t,metadata:{custom:{messageId:e._id,chatId:e.chatId,status:e.status,runId:e.runId??null,error:e.error??null,toolParts:n,provenanceParts:r,attachedDocCount:e.attachedDocCount??0,rawText:e.text}}}}function v4e(e){return typeof e==`string`&&e.toLowerCase().startsWith(`image/`)}var y4e=128*1024;function b4e(e){let t=e-y4e;return t<=0?0:Math.floor(t/4)*3}function x4e(){return`att_${Math.random().toString(36).slice(2)}_${Date.now()}`}function S4e(e){if(!e)return[];let t=[];for(let n of e){let e=n.convex;e?.storageId&&t.push({storageId:e.storageId,filename:e.filename,mimeType:e.mimeType})}return t}function C4e(e,t,n){return{accept:`*`,async add({file:r}){let i=null;try{i=(await e.query(V.bridgeHealth.getBridgeAvailability,n?{chatId:n}:{}))?.maxInboundBytes??null}catch{}let a=i??b4e(26214400);if(n&&!v4e(r.type))try{let t=await e.query(V.bridge.getChatInboundPolicy,{chatId:n});t?.inboundMediaMode===`shared-fs`&&(a=t.sharedFsMaxBytes)}catch{}if(r.size>a){let e=e=>Math.floor(e/1024/1024),n=ffe({size:e(r.size),max:e(a)});throw t?.(n),Error(n)}return{id:x4e(),type:w4e(r.type),name:r.name,contentType:r.type||`application/octet-stream`,file:r,status:{type:`running`,reason:`uploading`,progress:0}}},async send(t){let n=t.file;AO.report(t.id,0,n.size||1);try{let r;try{r=await e.mutation(V.chats.generateUploadUrl,{})}catch(e){throw console.error(`[attach] generateUploadUrl failed:`,e),e}let i=await new Promise((e,i)=>{let a=new XMLHttpRequest;a.open(`POST`,r),a.setRequestHeader(`Content-Type`,n.type||`application/octet-stream`),a.upload.onprogress=e=>{e.lengthComputable&&AO.report(t.id,e.loaded,e.total)},a.onload=()=>{if(a.status>=200&&a.status<300)try{e(JSON.parse(a.responseText).storageId)}catch(e){i(e)}else i(Error(`Upload failed (${a.status})`))},a.onerror=()=>{console.error(`[attach] upload POST failed (network/CORS/CSP)`),i(Error(`Upload failed (network)`))},a.send(n)});return await e.mutation(V.uploads.registerUpload,{storageId:i}),{id:t.id,type:t.type,name:t.name,contentType:t.contentType,status:{type:`complete`},content:[{type:`text`,text:n.name}],convex:{storageId:i,filename:n.name,mimeType:n.type||`application/octet-stream`}}}finally{AO.clear(t.id)}},async remove(){}}}function w4e(e){return e.startsWith(`image/`)?`image`:`document`}function T4e({chatId:e}){let t=Zn(),n=D1(),r=F(V.send.sendMessage).withOptimisticUpdate((e,t)=>{let n={chatId:t.chatId},r=e.getQuery(V.messages.listByChat,n)??[],i=`optimistic-${t.clientMessageId}`;if(r.some(e=>e._id===i))return;let a=Date.now(),o={_id:i,chatId:t.chatId,_creationTime:a,role:`user`,status:`complete`,runId:void 0,error:void 0,errorCode:void 0,attachedDocCount:void 0,text:t.text,updatedAt:a,parts:[]};e.setQuery(V.messages.listByChat,n,[...r,o])}),i=P(V.messages.listByChat,e?{chatId:e}:`skip`),a=(0,N.useMemo)(()=>C4e(t,e=>n.error(e),e),[t,n,e]),o=(0,N.useMemo)(()=>i??[],[i]),s=o.length>0?o[o.length-1].role:null,c=o.some(e=>e.status===`streaming`),[l,u]=(0,N.useState)(null);(0,N.useEffect)(()=>{u(null)},[e]),(0,N.useEffect)(()=>{s===`assistant`&&u(null)},[s,o]),(0,N.useEffect)(()=>{if(l===null)return;let e=window.setTimeout(()=>u(null),12e4);return()=>window.clearTimeout(e)},[l]);let d=l!==null||c,f=(0,N.useMemo)(()=>({messages:o,isRunning:d,convertMessage:_4e,onNew:async t=>{if(!e)throw Error(`No chat selected`);let n=t.content.filter(e=>e.type===`text`).map(e=>e.text).join(``),i=S4e(t.attachments).map(e=>({storageId:e.storageId,filename:e.filename,mimeType:e.mimeType}));u(Date.now());try{await r({chatId:e,text:n,clientMessageId:crypto.randomUUID(),attachments:i})}catch(e){throw u(null),e}},adapters:{attachments:a}}),[o,d,e,r,a]),p=(0,N.useMemo)(()=>({begin:()=>u(Date.now()),cancel:()=>u(null)}),[]),m=(0,N.useCallback)(async t=>{let i=t.trim();if(!e||i===``)return!1;try{return await r({chatId:e,text:t,clientMessageId:crypto.randomUUID()}),!0}catch(e){return n.error(e?.message?.includes(`QUEUE_FULL`)?jJ():PJ()),!1}},[e,r,n]);return{runtime:hv(f),turnGate:p,queueSend:m}}function O1(e,{key:t,value:n}){let r=e.getQuery(V.me.getMe,{host:xO});if(!r?.ui)return;let i={...r.ui.effective},a={...r.ui.userOverrides},o=t,s=t;n===null?delete a[s]:(i[o]=n,a[s]=n),e.setQuery(V.me.getMe,{host:xO},{...r,ui:{...r.ui,effective:i,userOverrides:a}})}function E4e(e,{messageId:t}){for(let{args:n,value:r}of e.getAllQueries(V.messages.listByChat)){if(r===void 0)continue;let i=r.find(e=>e._id===t);if(i===void 0)continue;let a=i._creationTime;e.setQuery(V.messages.listByChat,n,r.filter(e=>e._creationTime<a))}}function D4e(e,t){if(e===void 0)return`thinking`;switch(e){case`streaming`:return t?`generating`:`thinking`;case`error`:return`error`;case`aborted`:return`aborted`;default:return null}}function O4e(e){return e?e.some(e=>e?.type===`text`&&typeof e.text==`string`&&e.text.trim().length>0):!1}var k4e={thinking:hze,generating:vze,error:xze,aborted:Dze};function A4e(e,t){let n=D4e(e,t);return n===null?null:{kind:n,label:k4e[n]()}}var j4e=O4e;function M4e(e){return e===`stream_orphaned`?wze():e}function N4e(){let e=i$(),t=gy(e=>e.metadata?.custom?.status),n=gy(e=>e.metadata?.custom?.runId),r=gy(e=>e.metadata?.custom?.error),i=A4e(t,gy(e=>j4e(e.content))),a=i?.kind===`thinking`,[o,s]=(0,N.useState)(!1);return(0,N.useEffect)(()=>{if(!a){s(!1);return}let e=window.setTimeout(()=>s(!0),6e3);return()=>window.clearTimeout(e)},[a]),i?i.kind===`error`?(0,I.jsxs)(`div`,{className:`oc-error-card`,role:`alert`,title:n?`run ${n}`:void 0,children:[(0,I.jsx)(hm,{size:18,className:`oc-error-card__icon`,"aria-hidden":!0}),(0,I.jsxs)(`div`,{className:`oc-error-card__body`,children:[(0,I.jsx)(`span`,{className:`oc-error-card__title`,children:i.label}),r?(0,I.jsx)(`span`,{className:`oc-error-card__msg`,children:M4e(r)}):null]})]}):(0,I.jsxs)(`div`,{className:`oc-run-status oc-run-status--${i.kind}`,role:`status`,title:n?`run ${n}`:void 0,children:[i.kind===`thinking`?(0,I.jsxs)(`span`,{className:`oc-dots`,"aria-hidden":!0,children:[(0,I.jsx)(`span`,{}),(0,I.jsx)(`span`,{}),(0,I.jsx)(`span`,{})]}):i.kind===`generating`?(0,I.jsx)(`span`,{className:`oc-run-status__pulse`,"aria-hidden":!0}):(0,I.jsx)(Lee,{size:13,"aria-hidden":!0}),(0,I.jsx)(`span`,{className:`oc-run-status__label`,children:i.kind===`thinking`&&o?n2e(e):i.label})]}):null}var P4e=new Set([`status`,`exitCode`,`durationMs`]);function F4e(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e,null,2)}catch{return String(e)}}function I4e(e){if(typeof e==`string`)return{kind:`text`,text:e};if(typeof e==`object`&&e&&!Array.isArray(e)){let t=e,n=Object.keys(t);if(typeof t.exitCode==`number`&&n.every(e=>P4e.has(e)))return{kind:`outcome`,status:typeof t.status==`string`?t.status:null,exitCode:t.exitCode,durationMs:typeof t.durationMs==`number`?t.durationMs:null}}return{kind:`json`,text:F4e(e)}}function L4e(e){let t=[(e.exitCode===null?e.status===`completed`:e.exitCode===0)?Lq():Bq()];return e.exitCode!==null&&t.push(Uq({code:e.exitCode})),e.durationMs!==null&&t.push(Kq({ms:e.durationMs})),t.join(` · `)}var R4e=new Set([`complete`,`error`,`aborted`]),z4e=new Set([`completed`,`error`]);function B4e(e,t){if(e.length===0)return!1;if(t===`streaming`)return!0;if(t!==void 0&&R4e.has(t))return!1;let n=e[e.length-1];return n.phase!==void 0&&z4e.has(n.phase)?!1:n.result===void 0||n.result===null}var V4e=[`command`,`query`,`url`,`path`,`pattern`,`file`,`cmd`,`prompt`];function H4e(e,t){let n=``;if(e&&typeof e==`object`&&!Array.isArray(e)){let t=e;for(let e of V4e){let r=t[e];if(typeof r==`string`&&r.trim()){n=r;break}}}return n||=t??(typeof e==`string`?e:``),n.replace(/\s+/g,` `).trim()}function U4e(e,t){let n=e.length,r=n===1?jq({count:n}):Pq({count:n});return{count:n,running:B4e(e,t),label:r}}function k1({text:e}){let[t,n]=(0,N.useState)(!1);return(0,I.jsx)(`button`,{type:`button`,className:`oc-copybtn`,title:`Copier`,"aria-label":`Copier le contenu`,onClick:()=>{navigator.clipboard?.writeText(e).then(()=>{n(!0),window.setTimeout(()=>n(!1),1200)})},children:t?(0,I.jsx)(um,{size:13,"aria-hidden":!0}):(0,I.jsx)(_m,{size:13,"aria-hidden":!0})})}function W4e(e,t){let n=typeof e==`string`?e:void 0;return n===`error`?`error`:t||n===`completed`?`completed`:`running`}function G4e(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e,null,2)}catch{return String(e)}}function K4e({toolName:e,args:t,argsText:n,result:r,status:i}){let a=r!=null,o=W4e(i?.type,a),s=n??G4e(t),c=H4e(t,n),l=a?I4e(r):null,u=o===`running`?Cm:o===`error`?hm:xee;return(0,I.jsxs)(`details`,{className:`oc-tool oc-tool--${o}`,children:[(0,I.jsxs)(`summary`,{className:`oc-tool__header`,children:[(0,I.jsx)(u,{className:`oc-tool__status${o===`running`?` oc-tool__status--spin`:``}`,size:14,"aria-hidden":!0}),(0,I.jsx)(`span`,{className:`oc-tool__name`,children:e}),c?(0,I.jsx)(`span`,{className:`oc-tool__preview`,title:c,children:c}):null,(0,I.jsx)(`span`,{className:`oc-tool__phase`,children:o}),(0,I.jsx)(fm,{size:15,className:`oc-tool__chevron`,"aria-hidden":!0})]}),(0,I.jsxs)(`div`,{className:`oc-tool__body`,children:[s?(0,I.jsxs)(`details`,{className:`oc-tool__io`,children:[(0,I.jsx)(`summary`,{children:`input`}),(0,I.jsxs)(`div`,{className:`oc-tool__prewrap`,children:[(0,I.jsx)(`pre`,{className:`oc-tool__pre`,children:s}),(0,I.jsx)(k1,{text:s})]})]}):null,l&&l.kind===`outcome`?(0,I.jsxs)(`div`,{className:`oc-tool__outcome`,children:[(0,I.jsx)(`span`,{className:`oc-tool__outcome-label`,children:L4e(l)}),(0,I.jsx)(`span`,{className:`oc-tool__outcome-note`,children:Yq()})]}):l?(0,I.jsxs)(`details`,{className:`oc-tool__io`,open:!0,children:[(0,I.jsx)(`summary`,{children:`output`}),(0,I.jsxs)(`div`,{className:`oc-tool__prewrap`,children:[(0,I.jsx)(`pre`,{className:`oc-tool__pre`,children:l.text}),(0,I.jsx)(k1,{text:l.text})]})]}):null]})]})}function q4e(){let e=gy(e=>e.metadata?.custom?.toolParts),t=gy(e=>e.metadata?.custom?.status),[n,r]=(0,N.useState)(!1);if(!e||e.length===0)return null;let i=n,a=U4e(e,t);return(0,I.jsxs)(`div`,{className:`oc-toolact${i?` is-open`:``}`,children:[(0,I.jsxs)(`button`,{type:`button`,className:`oc-toolact__summary`,"aria-expanded":i,title:i?sJ():iJ(),onClick:()=>r(!i),children:[(0,I.jsx)(Gm,{size:13,className:`oc-toolact__icon`,"aria-hidden":!0}),(0,I.jsx)(`span`,{className:`oc-toolact__label`,children:a.label}),a.running?(0,I.jsxs)(`span`,{className:`oc-toolact__state`,children:[(0,I.jsx)(Cm,{size:12,className:`oc-toolact__spin`,"aria-hidden":!0}),Qq()]}):(0,I.jsxs)(`span`,{className:`oc-toolact__state oc-toolact__state--done`,children:[(0,I.jsx)(um,{size:12,"aria-hidden":!0}),(0,I.jsx)(`span`,{className:`oc-sr-only`,children:tJ()})]}),(0,I.jsx)(fm,{size:14,className:`oc-toolact__chevron`,"aria-hidden":!0})]}),i?(0,I.jsx)(`div`,{className:`oc-toolact__detail`,children:e.map(e=>(0,I.jsx)(K4e,{toolName:e.toolName,args:e.args,argsText:e.argsText,result:e.result,status:e.phase?{type:e.phase}:void 0},e.toolCallId))}):null]})}function A1({className:e,...t}){return(0,I.jsx)(sS,{"data-slot":`checkbox`,className:G$(`peer size-4 shrink-0 rounded-[4px] border border-input bg-background ring-offset-background transition-shadow outline-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground`,e),...t,children:(0,I.jsx)(lS,{"data-slot":`checkbox-indicator`,className:`flex items-center justify-center text-current`,children:t.checked===`indeterminate`?(0,I.jsx)(Om,{className:`size-3.5`}):(0,I.jsx)(um,{className:`size-3.5`})})})}function j1(e){let t={memory:0,documents:0};for(let n of e)n.group===`memory`?t.memory+=n.items.length:t.documents+=n.items.length;return t}function M1(e){let t=[];return e.memory>0&&t.push(e.memory===1?BW():UW({count:e.memory})),e.documents>0&&t.push(e.documents===1?KW():YW({count:e.documents})),t.join(` · `)}function N1(e){return e.file_name??e.id??e.type??sG()}function P1(e){let t=[];return e.type&&N1(e)!==e.type&&t.push(e.type),e.date&&t.push(e.date),e.collection&&t.push(e.collection),typeof e.score==`number`&&t.push(iG({score:e.score.toFixed(2)})),t}function F1(e,t){let n=[];return e.forEach((e,r)=>{e.group===t&&e.items.forEach((t,i)=>{n.push({key:`${e.pluginId}|${e.group}|${t.id??t.file_name??`?`}|${r}.${i}`,group:e.group,pluginId:e.pluginId,source:e.source,item:t})})}),n.sort((e,t)=>(t.item.score??0)-(e.item.score??0))}function I1(e,t){let n=t.trim().toLowerCase();return n===``?!0:[N1(e.item),e.item.text??``,...P1(e.item)].join(` `).toLowerCase().includes(n)}var L1=(0,N.createContext)(null),J4e=[];function Y4e(){let e=gy(e=>e.metadata?.custom?.provenanceParts??J4e),t=gy(e=>e.metadata?.custom?.messageId),n=gy(e=>e.metadata?.custom?.attachedDocCount??0),r=(0,N.useContext)(L1),i=j1(e);if(e.length===0||i.memory+i.documents===0)return null;let a=r?.activeMessageId===t&&t!==void 0;return(0,I.jsxs)(`button`,{type:`button`,className:`oc-sources-trigger${a?` is-active`:``}`,onClick:()=>t&&r?.openFor(t),"aria-haspopup":`dialog`,"aria-expanded":a,"aria-label":pG(),children:[(0,I.jsx)(bm,{size:13,className:`oc-sources-trigger__icon`,"aria-hidden":!0}),(0,I.jsx)(`span`,{className:`oc-sources-trigger__label`,children:LW()}),(0,I.jsx)(`span`,{className:`oc-sources-trigger__counts`,children:M1(i)}),n>0?(0,I.jsxs)(`span`,{className:`oc-sources-trigger__attached`,title:PG({count:n}),children:[(0,I.jsx)(vm,{size:12,"aria-hidden":!0}),n]}):null,(0,I.jsx)(fm,{size:14,className:`oc-sources-trigger__chev`,"aria-hidden":!0})]})}function R1({messageId:e,onClose:t}){let n=P(V.messages.getProvenanceParts,{messageId:e}),r=(0,N.useMemo)(()=>n??[],[n]),i=P(V.agents.documentaryAvailable,{}),a=P(V.documentAttachments.getDocumentAttachments,{sourceMessageId:e}),o=F(V.documentAttachments.attachDocuments),s=D1(),c=(0,N.useMemo)(()=>{let e=new Map;for(let t of a??[])e.set(t.entryKey,t);return e},[a]),l=(a??[]).some(e=>e.status===`pending`),[u,d]=(0,N.useState)(``),[f,p]=(0,N.useState)(!1),[m,h]=(0,N.useState)(!1),[g,_]=(0,N.useState)(new Set);(0,N.useEffect)(()=>{d(``),p(!1),h(!1),_(new Set)},[e]);let v=(0,N.useMemo)(()=>F1(r,`documents`).filter(e=>I1(e,u)),[r,u]),y=(0,N.useMemo)(()=>F1(r,`memory`).filter(e=>I1(e,u)),[r,u]),b=j1(r),x=e=>_(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}),S=(e,t)=>_(n=>{let r=new Set(n);for(let n of e)t?r.add(n):r.delete(n);return r}),C=(0,N.useMemo)(()=>F1(r,`documents`).filter(e=>g.has(e.key)),[r,g]),w=i!=null&&C.length>0&&!l;async function T(){if(w)try{await o({sourceMessageId:e,items:C.map(e=>({entryKey:e.key,reference:N1(e.item)}))}),s.success(KG())}catch(e){let t=E1(e);t.includes(`fetch_in_flight`)?s.error(UG()):t.includes(`no_documentary_agent`)?s.error(BG()):s.error(YG(),e)}}let E=n===void 0;return(0,I.jsxs)(`div`,{className:`oc-sources-panel`,children:[(0,I.jsxs)(`div`,{className:`oc-sources-panel__head`,children:[(0,I.jsxs)(`div`,{className:`oc-sources-panel__heading`,children:[(0,I.jsx)(`h2`,{className:`oc-sources-panel__title`,children:uG()}),(0,I.jsx)(`p`,{className:`oc-sources-panel__sub`,children:M1(b)})]}),(0,I.jsx)(`button`,{type:`button`,className:`oc-iconbtn`,onClick:t,"aria-label":pK(),title:pK(),children:(0,I.jsx)(Km,{size:16,"aria-hidden":!0})})]}),(0,I.jsxs)(`div`,{className:`oc-sources-panel__search`,children:[(0,I.jsx)(Im,{size:15,"aria-hidden":!0}),(0,I.jsx)(o1,{value:u,onChange:e=>d(e.target.value),placeholder:gG(),"aria-label":gG()})]}),(0,I.jsx)(`div`,{className:`oc-sources-panel__body`,children:E?(0,I.jsx)(`p`,{className:`oc-sources-panel__empty`,children:(0,I.jsx)(Cm,{size:14,className:`oc-iconbtn__spin`,"aria-hidden":!0})}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(z1,{icon:(0,I.jsx)(bm,{size:14,"aria-hidden":!0}),label:tG(),count:v.length,expanded:f,onToggle:()=>p(e=>!e),entries:v,selectable:!0,selected:g,onToggle1:x,onToggleAll:e=>S(v.map(e=>e.key),e),attachmentByKey:c}),(0,I.jsx)(z1,{icon:(0,I.jsx)(yee,{size:14,"aria-hidden":!0}),label:QW(),count:y.length,expanded:m,onToggle:()=>h(e=>!e),entries:y,selectable:!1,selected:g,onToggle1:x,onToggleAll:e=>S(y.map(e=>e.key),e),attachmentByKey:c}),v.length===0&&y.length===0?(0,I.jsx)(`p`,{className:`oc-sources-panel__empty`,children:yG()}):null]})}),C.length>0?(0,I.jsxs)(`div`,{className:`oc-sources-panel__actions`,children:[(0,I.jsxs)(`div`,{className:`oc-sources-panel__actrow`,children:[(0,I.jsx)(`span`,{className:`oc-sources-panel__selcount`,children:TG({count:C.length})}),(0,I.jsxs)(X,{variant:`outline`,size:`sm`,disabled:!w,onClick:()=>void T(),children:[l?(0,I.jsx)(Cm,{size:14,className:`oc-iconbtn__spin`,"aria-hidden":!0}):(0,I.jsx)(Iee,{size:14,"aria-hidden":!0}),OG()]})]}),(0,I.jsx)(`p`,{className:`oc-sources-panel__acthint`,children:i==null?BG():l?UG():jG()})]}):null]})}function z1({icon:e,label:t,count:n,expanded:r,onToggle:i,entries:a,selectable:o,selected:s,onToggle1:c,onToggleAll:l,attachmentByKey:u}){if(n===0)return null;let d=a.every(e=>s.has(e.key));return(0,I.jsxs)(`section`,{className:`oc-srcsec${r?` is-open`:``}`,children:[(0,I.jsxs)(`button`,{type:`button`,className:`oc-srcsec__head`,"aria-expanded":r,onClick:i,children:[r?(0,I.jsx)(dm,{size:14,"aria-hidden":!0}):(0,I.jsx)(fm,{size:14,"aria-hidden":!0}),e,(0,I.jsx)(`span`,{className:`oc-srcsec__label`,children:t}),(0,I.jsx)(`span`,{className:`oc-srcsec__count`,children:n})]}),r?(0,I.jsxs)(`div`,{className:`oc-srcsec__body`,children:[o?(0,I.jsxs)(`label`,{className:`oc-srcsec__all`,children:[(0,I.jsx)(A1,{checked:d,onCheckedChange:e=>l(e===!0)}),(0,I.jsx)(`span`,{children:SG()})]}):null,a.map(e=>(0,I.jsx)(X4e,{entry:e,selectable:o,selected:s.has(e.key),onToggle:()=>c(e.key),attachment:u.get(e.key)},e.key))]}):null]})}function X4e({entry:e,selectable:t,selected:n,onToggle:r,attachment:i}){let[a,o]=(0,N.useState)(!1),s=(0,N.useRef)(null),[c,l]=(0,N.useState)(!1),{item:u}=e;(0,N.useEffect)(()=>{let e=s.current;if(!e)return;let t=()=>l(e.scrollHeight>e.clientHeight+1);t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[u.text]);let d=P1(u),f=typeof u.score==`number`?Math.max(0,Math.min(1,u.score)):null,p=e.group===`documents`;return(0,I.jsxs)(`div`,{className:`oc-srccard${t&&n?` is-selected`:``}`,children:[t?(0,I.jsx)(`label`,{className:`oc-srccard__pick`,children:(0,I.jsx)(A1,{checked:n,onCheckedChange:r})}):null,(0,I.jsxs)(`div`,{className:`oc-srccard__body`,children:[(0,I.jsx)(`div`,{className:`oc-srccard__title`,children:N1(u)}),d.length>0||f!==null?(0,I.jsxs)(`div`,{className:`oc-srccard__meta`,children:[d.map(e=>(0,I.jsx)(`span`,{className:`oc-srccard__chip`,children:e},e)),f===null?null:(0,I.jsx)(`span`,{className:`oc-srccard__relev`,title:iG({score:f.toFixed(2)}),children:(0,I.jsx)(`span`,{className:`oc-srccard__relev-track`,"aria-hidden":!0,children:(0,I.jsx)(`span`,{className:`oc-srccard__relev-fill`,style:{width:`${Math.round(f*100)}%`}})})})]}):null,u.text?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`blockquote`,{ref:s,className:`oc-srccard__excerpt${a?` is-full`:``}`,children:u.text}),c||a?(0,I.jsx)(`button`,{type:`button`,className:`oc-srccard__more`,onClick:()=>o(e=>!e),children:a?uK():sK()}):null]}):null,p?(0,I.jsx)(Z4e,{attachment:i}):null]})]})}function Z4e({attachment:e}){if(e?.status===`ready`&&e.url){let t=e.filename??tK();return(0,I.jsxs)(`a`,{className:`oc-srccard__origin oc-srccard__origin--ready`,href:e.url,download:e.filename??void 0,target:`_blank`,rel:`noreferrer`,title:tK(),children:[(0,I.jsx)(vm,{size:13,"aria-hidden":!0}),(0,I.jsx)(`span`,{className:`oc-srccard__origin-name`,children:t})]})}return e?.status===`pending`?(0,I.jsxs)(`div`,{className:`oc-srccard__origin oc-srccard__origin--pending`,children:[(0,I.jsx)(Cm,{size:13,"aria-hidden":!0}),QG()]}):e?.status===`not_found`||e?.status===`failed`?(0,I.jsxs)(`div`,{className:`oc-srccard__origin oc-srccard__origin--missing`,"aria-disabled":!0,children:[(0,I.jsx)(Km,{size:13,"aria-hidden":!0}),iK()]}):(0,I.jsxs)(`div`,{className:`oc-srccard__origin`,"aria-disabled":!0,children:[(0,I.jsx)(vm,{size:13,"aria-hidden":!0}),LG()]})}var Q4e=`oc.sidebar.width`,B1=`oc.sidebar.collapsed`,V1=200,H1=520,$4e=260,U1=`(max-width: 767px)`;function W1(){let[e,t]=(0,N.useState)(()=>typeof window<`u`&&window.matchMedia(U1).matches);return(0,N.useEffect)(()=>{let e=window.matchMedia(U1),n=e=>t(e.matches);return e.addEventListener(`change`,n),()=>e.removeEventListener(`change`,n)},[]),e}function G1(e){let{storageKey:t,defaultWidth:n,min:r,max:i,edge:a}=e,o=(0,N.useCallback)(e=>Math.min(i,Math.max(r,e)),[r,i]),[s,c]=(0,N.useState)(()=>{let e=Number(localStorage.getItem(t));return e?Math.min(i,Math.max(r,e)):n});(0,N.useEffect)(()=>{localStorage.setItem(t,String(s))},[t,s]);let l=(0,N.useRef)(!1);return{width:s,startResize:(0,N.useCallback)(e=>{e.preventDefault(),l.current=!0;let t=e.clientX,n=s,r=a===`left`?1:-1,i=e=>{l.current&&c(o(n+r*(e.clientX-t)))},u=()=>{l.current=!1,window.removeEventListener(`pointermove`,i),window.removeEventListener(`pointerup`,u),document.body.style.cursor=``,document.body.style.userSelect=``};window.addEventListener(`pointermove`,i),window.addEventListener(`pointerup`,u),document.body.style.cursor=`col-resize`,document.body.style.userSelect=`none`},[s,a,o]),setWidth:c}}function e3e(){let{width:e,startResize:t}=G1({storageKey:Q4e,defaultWidth:$4e,min:V1,max:H1,edge:`left`}),[n,r]=(0,N.useState)(()=>localStorage.getItem(B1)===`1`),i=W1();return(0,N.useEffect)(()=>{localStorage.setItem(B1,n?`1`:`0`)},[n]),(0,N.useEffect)(()=>{i&&r(!0)},[i]),{width:e,collapsed:n,toggleCollapsed:(0,N.useCallback)(()=>r(e=>!e),[]),collapse:(0,N.useCallback)(()=>r(!0),[]),startResize:t,isMobile:i,MIN_WIDTH:V1,MAX_WIDTH:H1}}function K1({...e}){return(0,I.jsx)(xx,{"data-slot":`sheet`,...e})}function t3e({...e}){return(0,I.jsx)(Sx,{"data-slot":`sheet-portal`,...e})}function n3e({className:e,...t}){return(0,I.jsx)(Cx,{"data-slot":`sheet-overlay`,className:G$(`fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function q1({className:e,children:t,side:n=`right`,showCloseButton:r=!0,...i}){return(0,I.jsxs)(t3e,{children:[(0,I.jsx)(n3e,{}),(0,I.jsxs)(wx,{"data-slot":`sheet-content`,"data-side":n,className:G$(`fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:animate-out data-closed:fade-out-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=right]:data-closed:slide-out-to-right-10 data-[side=top]:data-closed:slide-out-to-top-10`,e),...i,children:[t,r&&(0,I.jsx)(Dx,{"data-slot":`sheet-close`,asChild:!0,children:(0,I.jsxs)(X,{variant:`ghost`,className:`absolute top-3 right-3`,size:`icon-sm`,children:[(0,I.jsx)(Km,{}),(0,I.jsx)(`span`,{className:`sr-only`,children:JQ()})]})})]})]})}function J1({className:e,...t}){return(0,I.jsx)(`div`,{"data-slot":`sheet-header`,className:G$(`flex flex-col gap-0.5 p-4`,e),...t})}function Y1({className:e,...t}){return(0,I.jsx)(`div`,{"data-slot":`sheet-footer`,className:G$(`mt-auto flex flex-col gap-2 p-4`,e),...t})}function X1({className:e,...t}){return(0,I.jsx)(Tx,{"data-slot":`sheet-title`,className:G$(`font-heading text-base font-medium text-foreground`,e),...t})}function Z1({className:e,...t}){return(0,I.jsx)(Ex,{"data-slot":`sheet-description`,className:G$(`text-sm text-muted-foreground`,e),...t})}function r3e({mimeType:e,data:t,filename:n}){let r=e??``,i=t??``,a=n??`attachment`;return i?r.startsWith(`audio/`)?(0,I.jsxs)(`div`,{className:`oc-media oc-media--audio`,children:[(0,I.jsx)(`audio`,{controls:!0,preload:`metadata`,src:i,className:`oc-media__audio`,children:(0,I.jsx)(`a`,{href:i,download:a,children:`Download audio`})}),(0,I.jsx)(`span`,{className:`oc-media__name`,children:a})]}):r.startsWith(`image/`)?(0,I.jsxs)(`figure`,{className:`oc-media oc-media--image`,children:[(0,I.jsx)(`img`,{src:i,alt:a,className:`oc-media__img`,loading:`lazy`}),(0,I.jsx)(`figcaption`,{className:`oc-media__name`,children:a})]}):r.startsWith(`video/`)?(0,I.jsxs)(`div`,{className:`oc-media oc-media--video`,children:[(0,I.jsx)(`video`,{controls:!0,preload:`metadata`,src:i,className:`oc-media__video`}),(0,I.jsx)(`span`,{className:`oc-media__name`,children:a})]}):(0,I.jsxs)(`a`,{className:`oc-media oc-media--file`,href:i,target:`_blank`,rel:`noopener noreferrer`,children:[(0,I.jsx)(`span`,{className:`oc-media__icon`,"aria-hidden":!0,children:`⬇`}),(0,I.jsx)(`span`,{className:`oc-media__name`,children:a})]}):null}var i3e=(e,t)=>typeof e==`string`?e===t:JSON.stringify(e)===JSON.stringify(t),a3e=(e,t)=>{if(!e||!t)return!1;let n=e=>{let{position:t,data:n,...r}=e||{};return r};return JSON.stringify(n(e.properties))===JSON.stringify(n(t.properties))&&i3e(e.children,t.children)},Q1=(e,t)=>a3e(e.node,t.node),$1=(0,N.createContext)(null),o3e=()=>(0,N.useContext)($1)!==null,s3e=(0,N.memo)(({children:e,...t})=>(0,I.jsx)($1.Provider,{value:t,children:e}),Q1),c3e=({node:e,...t})=>(0,I.jsx)(`pre`,{...t}),l3e=({node:e,...t})=>(0,I.jsx)(`code`,{...t}),e0=({node:e,components:{Pre:t,Code:n},code:r})=>(0,I.jsx)(t,{children:(0,I.jsx)(n,{node:e,children:r})}),u3e=()=>null,d3e=({node:e,components:{Pre:t,Code:n,SyntaxHighlighter:r,CodeHeader:i},language:a,code:o})=>{let s=(0,N.useMemo)(()=>({Pre:t,Code:n}),[t,n]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(i,{node:e,language:a,code:o}),(0,I.jsx)(a?r:e0,{node:e,components:s,language:a??`unknown`,code:o})]})},t0=u(o(((e,t)=>{(function(){var e={}.hasOwnProperty;function n(){for(var e=``,t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,r(n)))}return e}function r(t){if(typeof t==`string`||typeof t==`number`)return t;if(typeof t!=`object`)return``;if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes(`[native code]`))return t.toString();var r=``;for(var a in t)e.call(t,a)&&t[a]&&(r=i(r,a));return r}function i(e,t){return t?e?e+` `+t:e+t:e}t!==void 0&&t.exports?(n.default=n,t.exports=n):typeof define==`function`&&typeof define.amd==`object`&&define.amd?define(`classnames`,[],function(){return n}):window.classNames=n})()}))(),1),n0=({className:e,...t})=>({className:n,...r})=>({className:(0,t0.default)(e,n),...t,...r}),f3e=({node:e,components:{Pre:t,Code:n,SyntaxHighlighter:r,CodeHeader:i},componentsByLanguage:a={},children:o,...s})=>{let c=n0((0,N.useContext)($1)),l=Py(e=>(0,I.jsx)(t,{...c(e)})),u=n0(s),d=Py(e=>(0,I.jsx)(n,{...u(e)})),f=/language-(\w+)/.exec(s.className||``)?.[1]??``;return typeof o==`string`?(0,I.jsx)(d3e,{node:e,components:{Pre:l,Code:d,SyntaxHighlighter:a[f]?.SyntaxHighlighter??r,CodeHeader:a[f]?.CodeHeader??i},language:f||`unknown`,code:o}):(0,I.jsx)(e0,{node:e,components:{Pre:l,Code:d},code:o})},p3e=(0,N.memo)(({node:e,components:t,componentsByLanguage:n,...r})=>o3e()?(0,I.jsx)(f3e,{node:e,components:t,componentsByLanguage:n,...r}):(0,I.jsx)(t.Code,{...r}),(e,t)=>e.components===t.components&&e.componentsByLanguage===t.componentsByLanguage&&Q1(e,t));function m3e(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var h3e=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,g3e=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,_3e={};function r0(e,t){return((t||_3e).jsx?g3e:h3e).test(e)}var v3e=/[ \t\n\f\r]/g;function y3e(e){return typeof e==`object`?e.type===`text`?i0(e.value):!1:i0(e)}function i0(e){return e.replace(v3e,``)===``}var a0=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};a0.prototype.normal={},a0.prototype.property={},a0.prototype.space=void 0;function o0(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new a0(n,r,t)}function s0(e){return e.toLowerCase()}var c0=class{constructor(e,t){this.attribute=t,this.property=e}};c0.prototype.attribute=``,c0.prototype.booleanish=!1,c0.prototype.boolean=!1,c0.prototype.commaOrSpaceSeparated=!1,c0.prototype.commaSeparated=!1,c0.prototype.defined=!1,c0.prototype.mustUseProperty=!1,c0.prototype.number=!1,c0.prototype.overloadedBoolean=!1,c0.prototype.property=``,c0.prototype.spaceSeparated=!1,c0.prototype.space=void 0;var l0=s({boolean:()=>u0,booleanish:()=>d0,commaOrSpaceSeparated:()=>h0,commaSeparated:()=>m0,number:()=>Z,overloadedBoolean:()=>f0,spaceSeparated:()=>p0}),b3e=0,u0=g0(),d0=g0(),f0=g0(),Z=g0(),p0=g0(),m0=g0(),h0=g0();function g0(){return 2**++b3e}var _0=Object.keys(l0),v0=class extends c0{constructor(e,t,n,r){let i=-1;if(super(e,t),y0(this,`space`,r),typeof n==`number`)for(;++i<_0.length;){let e=_0[i];y0(this,_0[i],(n&l0[e])===l0[e])}}};v0.prototype.defined=!0;function y0(e,t,n){n&&(e[t]=n)}function b0(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new v0(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[s0(r)]=r,n[s0(a.attribute)]=r}return new a0(t,n,e.space)}var x0=b0({properties:{ariaActiveDescendant:null,ariaAtomic:d0,ariaAutoComplete:null,ariaBusy:d0,ariaChecked:d0,ariaColCount:Z,ariaColIndex:Z,ariaColSpan:Z,ariaControls:p0,ariaCurrent:null,ariaDescribedBy:p0,ariaDetails:null,ariaDisabled:d0,ariaDropEffect:p0,ariaErrorMessage:null,ariaExpanded:d0,ariaFlowTo:p0,ariaGrabbed:d0,ariaHasPopup:null,ariaHidden:d0,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:p0,ariaLevel:Z,ariaLive:null,ariaModal:d0,ariaMultiLine:d0,ariaMultiSelectable:d0,ariaOrientation:null,ariaOwns:p0,ariaPlaceholder:null,ariaPosInSet:Z,ariaPressed:d0,ariaReadOnly:d0,ariaRelevant:null,ariaRequired:d0,ariaRoleDescription:p0,ariaRowCount:Z,ariaRowIndex:Z,ariaRowSpan:Z,ariaSelected:d0,ariaSetSize:Z,ariaSort:null,ariaValueMax:Z,ariaValueMin:Z,ariaValueNow:Z,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function S0(e,t){return t in e?e[t]:t}function C0(e,t){return S0(e,t.toLowerCase())}var x3e=b0({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:m0,acceptCharset:p0,accessKey:p0,action:null,allow:null,allowFullScreen:u0,allowPaymentRequest:u0,allowUserMedia:u0,alpha:u0,alt:null,as:null,async:u0,autoCapitalize:null,autoComplete:p0,autoFocus:u0,autoPlay:u0,blocking:p0,capture:null,charSet:null,checked:u0,cite:null,className:p0,closedBy:null,colorSpace:null,cols:Z,colSpan:Z,command:null,commandFor:null,content:null,contentEditable:d0,controls:u0,controlsList:p0,coords:Z|m0,crossOrigin:null,data:null,dateTime:null,decoding:null,default:u0,defer:u0,dir:null,dirName:null,disabled:u0,download:f0,draggable:d0,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:u0,formTarget:null,headers:p0,height:Z,hidden:f0,high:Z,href:null,hrefLang:null,htmlFor:p0,httpEquiv:p0,id:null,imageSizes:null,imageSrcSet:null,inert:u0,inputMode:null,integrity:null,is:null,isMap:u0,itemId:null,itemProp:p0,itemRef:p0,itemScope:u0,itemType:p0,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:u0,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:u0,muted:u0,name:null,nonce:null,noModule:u0,noValidate:u0,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:u0,optimum:Z,pattern:null,ping:p0,placeholder:null,playsInline:u0,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:u0,referrerPolicy:null,rel:p0,required:u0,reversed:u0,rows:Z,rowSpan:Z,sandbox:p0,scope:null,scoped:u0,seamless:u0,selected:u0,shadowRootClonable:u0,shadowRootCustomElementRegistry:u0,shadowRootDelegatesFocus:u0,shadowRootMode:null,shadowRootSerializable:u0,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:d0,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Z,step:null,style:null,tabIndex:Z,target:null,title:null,translate:null,type:null,typeMustMatch:u0,useMap:null,value:d0,width:Z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:p0,axis:null,background:null,bgColor:null,border:Z,borderColor:null,bottomMargin:Z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:u0,declare:u0,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:u0,noHref:u0,noShade:u0,noWrap:u0,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:d0,standby:null,summary:null,text:null,topMargin:Z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Z,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:u0,disablePictureInPicture:u0,disableRemotePlayback:u0,exportParts:m0,part:p0,prefix:null,property:null,results:Z,security:null,unselectable:null},space:`html`,transform:C0}),S3e=b0({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:h0,accentHeight:Z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Z,amplitude:Z,arabicForm:null,ascent:Z,attributeName:null,attributeType:null,azimuth:Z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Z,by:null,calcMode:null,capHeight:Z,className:p0,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Z,diffuseConstant:Z,direction:null,display:null,dur:null,divisor:Z,dominantBaseline:null,download:u0,dx:null,dy:null,edgeMode:null,editable:null,elevation:Z,enableBackground:null,end:null,event:null,exponent:Z,externalResourcesRequired:null,fill:null,fillOpacity:Z,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:m0,g2:m0,glyphName:m0,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Z,horizOriginX:Z,horizOriginY:Z,id:null,ideographic:Z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Z,k:Z,k1:Z,k2:Z,k3:Z,k4:Z,kernelMatrix:h0,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Z,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Z,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Z,overlineThickness:Z,paintOrder:null,panose1:null,path:null,pathLength:Z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:p0,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Z,pointsAtY:Z,pointsAtZ:Z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:h0,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:h0,rev:h0,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:h0,requiredFeatures:h0,requiredFonts:h0,requiredFormats:h0,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Z,specularExponent:Z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Z,strikethroughThickness:Z,string:null,stroke:null,strokeDashArray:h0,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Z,strokeOpacity:Z,strokeWidth:null,style:null,surfaceScale:Z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:h0,tabIndex:Z,tableValues:null,target:null,targetX:Z,targetY:Z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:h0,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Z,underlineThickness:Z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Z,values:null,vAlphabetic:Z,vMathematical:Z,vectorEffect:null,vHanging:Z,vIdeographic:Z,version:null,vertAdvY:Z,vertOriginX:Z,vertOriginY:Z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:S0}),w0=b0({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),T0=b0({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:C0}),E0=b0({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),C3e={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},w3e=/[A-Z]/g,D0=/-[a-z]/g,T3e=/^data[-\w.:]+$/i;function E3e(e,t){let n=s0(t),r=t,i=c0;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&T3e.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(D0,O3e);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!D0.test(e)){let n=e.replace(w3e,D3e);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=v0}return new i(r,t)}function D3e(e){return`-`+e.toLowerCase()}function O3e(e){return e.charAt(1).toUpperCase()}var k3e=o0([x0,x3e,w0,T0,E0],`html`),O0=o0([x0,S3e,w0,T0,E0],`svg`);function A3e(e){return e.join(` `).trim()}var j3e=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
|
|
130
|
+
`}function s2e(e){return((e??``).trim()||`conversation`).toLowerCase().normalize(`NFD`).replace(/[̀-ͯ]/g,``).replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``).slice(0,60)||`conversation`}function s$(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=s$(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function c$(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=s$(e))&&(r&&(r+=` `),r+=t);return r}var c2e=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},l2e=(e,t)=>({classGroupId:e,validator:t}),l$=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),u$=`-`,d$=[],u2e=`arbitrary..`,d2e=e=>{let t=p2e(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return f2e(e);let n=e.split(u$);return f$(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?c2e(i,t):t:i||d$}return n[e]||d$}}},f$=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=f$(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(u$):e.slice(t).join(u$),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},f2e=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?u2e+r:void 0})(),p2e=e=>{let{theme:t,classGroups:n}=e;return m2e(n,t)},m2e=(e,t)=>{let n=l$();for(let r in e){let i=e[r];p$(i,n,r,t)}return n},p$=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];h2e(i,t,n,r)}},h2e=(e,t,n,r)=>{if(typeof e==`string`){g2e(e,t,n);return}if(typeof e==`function`){_2e(e,t,n,r);return}v2e(e,t,n,r)},g2e=(e,t,n)=>{let r=e===``?t:m$(t,e);r.classGroupId=n},_2e=(e,t,n,r)=>{if(y2e(e)){p$(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(l2e(n,e))},v2e=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];p$(o,m$(t,a),n,r)}},m$=(e,t)=>{let n=e,r=t.split(u$),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=l$(),n.nextPart.set(t,i)),n=i}return n},y2e=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,b2e=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},h$=`!`,g$=`:`,x2e=[],_$=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),S2e=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===g$){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(h$)?(c=s.slice(0,-1),l=!0):s.startsWith(h$)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return _$(t,l,c,u)};if(t){let e=t+g$,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):_$(x2e,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},C2e=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},w2e=e=>({cache:b2e(e.cacheSize),parseClassName:S2e(e),sortModifiers:C2e(e),postfixLookupClassGroupIds:T2e(e),...d2e(e)}),T2e=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},E2e=/\s+/,D2e=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(E2e),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+h$:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},O2e=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=v$(n))&&(i&&(i+=` `),i+=r);return i},v$=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=v$(e[r]))&&(n&&(n+=` `),n+=t);return n},k2e=(e,...t)=>{let n,r,i,a,o=o=>(n=w2e(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=D2e(e,n);return i(e,a),a};return a=o,(...e)=>a(O2e(...e))},A2e=[],y$=e=>{let t=t=>t[e]||A2e;return t.isThemeGetter=!0,t},b$=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,x$=/^\((?:(\w[\w-]*):)?(.+)\)$/i,j2e=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,M2e=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,N2e=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,P2e=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,F2e=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,I2e=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,S$=e=>j2e.test(e),C$=e=>!!e&&!Number.isNaN(Number(e)),w$=e=>!!e&&Number.isInteger(Number(e)),T$=e=>e.endsWith(`%`)&&C$(e.slice(0,-1)),E$=e=>M2e.test(e),D$=()=>!0,L2e=e=>N2e.test(e)&&!P2e.test(e),O$=()=>!1,R2e=e=>F2e.test(e),z2e=e=>I2e.test(e),B2e=e=>!J(e)&&!Y(e),V2e=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),H2e=e=>I$(e,B$,O$),J=e=>b$.test(e),k$=e=>I$(e,V$,L2e),A$=e=>I$(e,X2e,C$),U2e=e=>I$(e,U$,D$),W2e=e=>I$(e,H$,O$),j$=e=>I$(e,R$,O$),G2e=e=>I$(e,z$,z2e),M$=e=>I$(e,W$,R2e),Y=e=>x$.test(e),N$=e=>L$(e,V$),K2e=e=>L$(e,H$),P$=e=>L$(e,R$),q2e=e=>L$(e,B$),J2e=e=>L$(e,z$),F$=e=>L$(e,W$,!0),Y2e=e=>L$(e,U$,!0),I$=(e,t,n)=>{let r=b$.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},L$=(e,t,n=!1)=>{let r=x$.exec(e);return r?r[1]?t(r[1]):n:!1},R$=e=>e===`position`||e===`percentage`,z$=e=>e===`image`||e===`url`,B$=e=>e===`length`||e===`size`||e===`bg-size`,V$=e=>e===`length`,X2e=e=>e===`number`,H$=e=>e===`family-name`,U$=e=>e===`number`||e===`weight`,W$=e=>e===`shadow`,Z2e=k2e(()=>{let e=y$(`color`),t=y$(`font`),n=y$(`text`),r=y$(`font-weight`),i=y$(`tracking`),a=y$(`leading`),o=y$(`breakpoint`),s=y$(`container`),c=y$(`spacing`),l=y$(`radius`),u=y$(`shadow`),d=y$(`inset-shadow`),f=y$(`text-shadow`),p=y$(`drop-shadow`),m=y$(`blur`),h=y$(`perspective`),g=y$(`aspect`),_=y$(`ease`),v=y$(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),Y,J],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[Y,J,c],T=()=>[S$,`full`,`auto`,...w()],E=()=>[w$,`none`,`subgrid`,Y,J],D=()=>[`auto`,{span:[`full`,w$,Y,J]},w$,Y,J],O=()=>[w$,`auto`,Y,J],ee=()=>[`auto`,`min`,`max`,`fr`,Y,J],te=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],k=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],A=()=>[`auto`,...w()],j=()=>[S$,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],ne=()=>[S$,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],re=()=>[S$,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],M=()=>[e,Y,J],ie=()=>[...b(),P$,j$,{position:[Y,J]}],ae=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],oe=()=>[`auto`,`cover`,`contain`,q2e,H2e,{size:[Y,J]}],se=()=>[T$,N$,k$],ce=()=>[``,`none`,`full`,l,Y,J],le=()=>[``,C$,N$,k$],ue=()=>[`solid`,`dashed`,`dotted`,`double`],de=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],fe=()=>[C$,T$,P$,j$],pe=()=>[``,`none`,m,Y,J],me=()=>[`none`,C$,Y,J],he=()=>[`none`,C$,Y,J],ge=()=>[C$,Y,J],_e=()=>[S$,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[E$],breakpoint:[E$],color:[D$],container:[E$],"drop-shadow":[E$],ease:[`in`,`out`,`in-out`],font:[B2e],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[E$],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[E$],shadow:[E$],spacing:[`px`,C$],text:[E$],"text-shadow":[E$],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,S$,J,Y,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,Y,J]}],"container-named":[V2e],columns:[{columns:[C$,J,Y,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[w$,`auto`,Y,J]}],basis:[{basis:[S$,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[C$,S$,`auto`,`initial`,`none`,J]}],grow:[{grow:[``,C$,Y,J]}],shrink:[{shrink:[``,C$,Y,J]}],order:[{order:[w$,`first`,`last`,`none`,Y,J]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ee()}],"auto-rows":[{"auto-rows":ee()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...te(),`normal`]}],"justify-items":[{"justify-items":[...k(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...k()]}],"align-content":[{content:[`normal`,...te()]}],"align-items":[{items:[...k(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...k(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":te()}],"place-items":[{"place-items":[...k(),`baseline`]}],"place-self":[{"place-self":[`auto`,...k()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mbs:[{mbs:A()}],mbe:[{mbe:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:j()}],"inline-size":[{inline:[`auto`,...ne()]}],"min-inline-size":[{"min-inline":[`auto`,...ne()]}],"max-inline-size":[{"max-inline":[`none`,...ne()]}],"block-size":[{block:[`auto`,...re()]}],"min-block-size":[{"min-block":[`auto`,...re()]}],"max-block-size":[{"max-block":[`none`,...re()]}],w:[{w:[s,`screen`,...j()]}],"min-w":[{"min-w":[s,`screen`,`none`,...j()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...j()]}],h:[{h:[`screen`,`lh`,...j()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...j()]}],"max-h":[{"max-h":[`screen`,`lh`,...j()]}],"font-size":[{text:[`base`,n,N$,k$]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Y2e,U2e]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,T$,J]}],"font-family":[{font:[K2e,W2e,t]}],"font-features":[{"font-features":[J]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,Y,J]}],"line-clamp":[{"line-clamp":[C$,`none`,Y,A$]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,Y,J]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,Y,J]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ue(),`wavy`]}],"text-decoration-thickness":[{decoration:[C$,`from-font`,`auto`,Y,k$]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[C$,`auto`,Y,J]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[w$,Y,J]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,Y,J]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,Y,J]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ie()}],"bg-repeat":[{bg:ae()}],"bg-size":[{bg:oe()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},w$,Y,J],radial:[``,Y,J],conic:[w$,Y,J]},J2e,G2e]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:ce()}],"rounded-s":[{"rounded-s":ce()}],"rounded-e":[{"rounded-e":ce()}],"rounded-t":[{"rounded-t":ce()}],"rounded-r":[{"rounded-r":ce()}],"rounded-b":[{"rounded-b":ce()}],"rounded-l":[{"rounded-l":ce()}],"rounded-ss":[{"rounded-ss":ce()}],"rounded-se":[{"rounded-se":ce()}],"rounded-ee":[{"rounded-ee":ce()}],"rounded-es":[{"rounded-es":ce()}],"rounded-tl":[{"rounded-tl":ce()}],"rounded-tr":[{"rounded-tr":ce()}],"rounded-br":[{"rounded-br":ce()}],"rounded-bl":[{"rounded-bl":ce()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-bs":[{"border-bs":le()}],"border-w-be":[{"border-be":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":le()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ue(),`hidden`,`none`]}],"divide-style":[{divide:[...ue(),`hidden`,`none`]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-bs":[{"border-bs":M()}],"border-color-be":[{"border-be":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...ue(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[C$,Y,J]}],"outline-w":[{outline:[``,C$,N$,k$]}],"outline-color":[{outline:M()}],shadow:[{shadow:[``,`none`,u,F$,M$]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":[`none`,d,F$,M$]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:le()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[C$,k$]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":[`none`,f,F$,M$]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[C$,Y,J]}],"mix-blend":[{"mix-blend":[...de(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":de()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[C$]}],"mask-image-linear-from-pos":[{"mask-linear-from":fe()}],"mask-image-linear-to-pos":[{"mask-linear-to":fe()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":fe()}],"mask-image-t-to-pos":[{"mask-t-to":fe()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":fe()}],"mask-image-r-to-pos":[{"mask-r-to":fe()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":fe()}],"mask-image-b-to-pos":[{"mask-b-to":fe()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":fe()}],"mask-image-l-to-pos":[{"mask-l-to":fe()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":fe()}],"mask-image-x-to-pos":[{"mask-x-to":fe()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":fe()}],"mask-image-y-to-pos":[{"mask-y-to":fe()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[Y,J]}],"mask-image-radial-from-pos":[{"mask-radial-from":fe()}],"mask-image-radial-to-pos":[{"mask-radial-to":fe()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[C$]}],"mask-image-conic-from-pos":[{"mask-conic-from":fe()}],"mask-image-conic-to-pos":[{"mask-conic-to":fe()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ie()}],"mask-repeat":[{mask:ae()}],"mask-size":[{mask:oe()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,Y,J]}],filter:[{filter:[``,`none`,Y,J]}],blur:[{blur:pe()}],brightness:[{brightness:[C$,Y,J]}],contrast:[{contrast:[C$,Y,J]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,F$,M$]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:[``,C$,Y,J]}],"hue-rotate":[{"hue-rotate":[C$,Y,J]}],invert:[{invert:[``,C$,Y,J]}],saturate:[{saturate:[C$,Y,J]}],sepia:[{sepia:[``,C$,Y,J]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,Y,J]}],"backdrop-blur":[{"backdrop-blur":pe()}],"backdrop-brightness":[{"backdrop-brightness":[C$,Y,J]}],"backdrop-contrast":[{"backdrop-contrast":[C$,Y,J]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,C$,Y,J]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[C$,Y,J]}],"backdrop-invert":[{"backdrop-invert":[``,C$,Y,J]}],"backdrop-opacity":[{"backdrop-opacity":[C$,Y,J]}],"backdrop-saturate":[{"backdrop-saturate":[C$,Y,J]}],"backdrop-sepia":[{"backdrop-sepia":[``,C$,Y,J]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,Y,J]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[C$,`initial`,Y,J]}],ease:[{ease:[`linear`,`initial`,_,Y,J]}],delay:[{delay:[C$,Y,J]}],animate:[{animate:[`none`,v,Y,J]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,Y,J]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:me()}],"rotate-x":[{"rotate-x":me()}],"rotate-y":[{"rotate-y":me()}],"rotate-z":[{"rotate-z":me()}],scale:[{scale:he()}],"scale-x":[{"scale-x":he()}],"scale-y":[{"scale-y":he()}],"scale-z":[{"scale-z":he()}],"scale-3d":[`scale-3d`],skew:[{skew:ge()}],"skew-x":[{"skew-x":ge()}],"skew-y":[{"skew-y":ge()}],transform:[{transform:[Y,J,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:_e()}],"translate-x":[{"translate-x":_e()}],"translate-y":[{"translate-y":_e()}],"translate-z":[{"translate-z":_e()}],"translate-none":[`translate-none`],zoom:[{zoom:[w$,Y,J]}],accent:[{accent:M()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,Y,J]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":M()}],"scrollbar-track-color":[{"scrollbar-track":M()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,Y,J]}],fill:[{fill:[`none`,...M()]}],"stroke-w":[{stroke:[C$,N$,k$,A$]}],stroke:[{stroke:[`none`,...M()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function G$(...e){return Z2e(c$(e))}function K$(e){return(0,I.jsx)(tle,{"data-slot":`dropdown-menu`,...e})}function q$(e){return(0,I.jsx)(nle,{"data-slot":`dropdown-menu-trigger`,...e})}function J$({className:e,sideOffset:t=4,...n}){return(0,I.jsx)(rle,{children:(0,I.jsx)(ile,{"data-slot":`dropdown-menu-content`,sideOffset:t,className:G$(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md`,e),...n})})}function Y$({className:e,inset:t,variant:n=`default`,...r}){return(0,I.jsx)(ole,{"data-slot":`dropdown-menu-item`,"data-inset":t,"data-variant":n,className:G$(`focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...r})}function X$({className:e,inset:t,...n}){return(0,I.jsx)(ale,{"data-slot":`dropdown-menu-label`,"data-inset":t,className:G$(`px-2 py-1.5 text-sm font-medium data-[inset]:pl-8`,e),...n})}function Z$({className:e,...t}){return(0,I.jsx)(ule,{"data-slot":`dropdown-menu-separator`,className:G$(`bg-border -mx-1 my-1 h-px`,e),...t})}function Q2e(e){return(0,I.jsx)(sle,{"data-slot":`dropdown-menu-radio-group`,...e})}function Q$({className:e,children:t,...n}){return(0,I.jsxs)(cle,{"data-slot":`dropdown-menu-radio-item`,className:G$(`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...n,children:[(0,I.jsx)(`span`,{className:`pointer-events-none absolute left-2 flex size-3.5 items-center justify-center`,children:(0,I.jsx)(lle,{children:(0,I.jsx)(Cee,{className:`size-2 fill-current`})})}),t]})}function $$({...e}){return(0,I.jsx)(CT,{"data-slot":`popover`,...e})}function e1({...e}){return(0,I.jsx)(wT,{"data-slot":`popover-trigger`,...e})}function t1({className:e,align:t=`center`,sideOffset:n=4,...r}){return(0,I.jsx)(TT,{children:(0,I.jsx)(ET,{"data-slot":`popover-content`,align:t,sideOffset:n,className:G$(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden`,e),...r})})}var n1=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,r1=c$,i1=(e,t)=>n=>{if(t?.variants==null)return r1(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=n1(t)||n1(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return r1(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},a1=i1(`group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/80`,outline:`border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,destructive:`bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,xs:`h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5`,lg:`h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,icon:`size-8`,"icon-xs":`size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg`,"icon-lg":`size-9`}},defaultVariants:{variant:`default`,size:`default`}});function X({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i}){return(0,I.jsx)(r?Cy:`button`,{"data-slot":`button`,"data-variant":t,"data-size":n,className:G$(a1({variant:t,size:n,className:e})),...i})}function o1({className:e,type:t,...n}){return(0,I.jsx)(`input`,{type:t,"data-slot":`input`,className:G$(`h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,e),...n})}function s1({...e}){return(0,I.jsx)(Wx,{"data-slot":`alert-dialog`,...e})}function $2e({...e}){return(0,I.jsx)(Gx,{"data-slot":`alert-dialog-portal`,...e})}function e4e({className:e,...t}){return(0,I.jsx)(Kx,{"data-slot":`alert-dialog-overlay`,className:G$(`fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function c1({className:e,...t}){return(0,I.jsxs)($2e,{children:[(0,I.jsx)(e4e,{}),(0,I.jsx)(qx,{"data-slot":`alert-dialog-content`,className:G$(`fixed top-1/2 left-1/2 z-50 grid w-[calc(100%-2rem)] max-w-md -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl border border-border bg-popover bg-clip-padding p-5 text-sm text-popover-foreground shadow-lg duration-200 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...t})]})}function l1({className:e,...t}){return(0,I.jsx)(`div`,{"data-slot":`alert-dialog-header`,className:G$(`flex flex-col gap-1.5`,e),...t})}function u1({className:e,...t}){return(0,I.jsx)(`div`,{"data-slot":`alert-dialog-footer`,className:G$(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...t})}function d1({className:e,...t}){return(0,I.jsx)(Xx,{"data-slot":`alert-dialog-title`,className:G$(`text-base font-medium text-foreground`,e),...t})}function f1({className:e,...t}){return(0,I.jsx)(Zx,{"data-slot":`alert-dialog-description`,className:G$(`text-sm text-muted-foreground`,e),...t})}function p1({className:e,...t}){return(0,I.jsx)(Jx,{className:G$(a1(),e),...t})}function m1({className:e,...t}){return(0,I.jsx)(Yx,{className:G$(a1({variant:`outline`}),e),...t})}function h1({...e}){return(0,I.jsx)(xx,{"data-slot":`dialog`,...e})}function t4e({...e}){return(0,I.jsx)(Sx,{"data-slot":`dialog-portal`,...e})}function n4e({className:e,...t}){return(0,I.jsx)(Cx,{"data-slot":`dialog-overlay`,className:G$(`fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function g1({className:e,children:t,showCloseButton:n=!0,...r}){return(0,I.jsxs)(t4e,{children:[(0,I.jsx)(n4e,{}),(0,I.jsxs)(wx,{"data-slot":`dialog-content`,className:G$(`fixed top-1/2 left-1/2 z-50 grid w-[calc(100%-2rem)] max-w-md -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl border border-border bg-popover bg-clip-padding p-5 text-sm text-popover-foreground shadow-lg duration-200 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...r,children:[t,n&&(0,I.jsx)(Dx,{"data-slot":`dialog-close`,asChild:!0,children:(0,I.jsxs)(X,{variant:`ghost`,size:`icon-sm`,className:`absolute top-3 right-3`,children:[(0,I.jsx)(Km,{}),(0,I.jsx)(`span`,{className:`sr-only`,children:JQ()})]})})]})]})}function _1({className:e,...t}){return(0,I.jsx)(`div`,{"data-slot":`dialog-header`,className:G$(`flex flex-col gap-1.5 pr-6`,e),...t})}function v1({className:e,...t}){return(0,I.jsx)(`div`,{"data-slot":`dialog-footer`,className:G$(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...t})}function y1({className:e,...t}){return(0,I.jsx)(Tx,{"data-slot":`dialog-title`,className:G$(`text-base font-medium text-foreground`,e),...t})}function b1({className:e,...t}){return(0,I.jsx)(Ex,{"data-slot":`dialog-description`,className:G$(`text-sm text-muted-foreground`,e),...t})}var x1=N.createContext(null);function r4e({children:e}){let[t,n]=N.useState(null),r=N.useRef(null),i=N.useRef(null),[a,o]=N.useState(``),s=N.useCallback(e=>{let t=r.current;r.current=null,n(null),t&&t(e)},[]),c=N.useMemo(()=>({confirm:e=>new Promise(t=>{r.current=t,o(``),n({kind:`confirm`,opts:e})}),prompt:e=>new Promise(t=>{r.current=t,o(e.defaultValue??``),n({kind:`prompt`,opts:e})})}),[]),l=t?.kind===`confirm`,u=t?.kind===`prompt`,d=t?.kind===`confirm`?t.opts.confirmWord:void 0,f=!d||a.trim().toLowerCase()===d.trim().toLowerCase(),p=a.trim().length>0,m=e=>{e.preventDefault(),requestAnimationFrame(()=>i.current?.focus())};return(0,I.jsxs)(x1.Provider,{value:c,children:[e,(0,I.jsx)(s1,{open:l,onOpenChange:e=>{e||s(!1)},children:l?(0,I.jsxs)(c1,{onOpenAutoFocus:d?m:void 0,...t.opts.description?{}:{"aria-describedby":void 0},children:[(0,I.jsxs)(l1,{children:[(0,I.jsx)(d1,{children:t.opts.title}),t.opts.description?(0,I.jsx)(f1,{children:t.opts.description}):null]}),d?(0,I.jsxs)(`label`,{className:`flex flex-col gap-1.5`,children:[(0,I.jsxs)(`span`,{className:`text-sm text-muted-foreground`,children:[`Pour confirmer, saisissez`,` `,(0,I.jsxs)(`span`,{className:`font-medium text-foreground`,children:[`« `,d,` »`]}),` `,`ci-dessous.`]}),(0,I.jsx)(o1,{ref:i,value:a,placeholder:d,autoComplete:`off`,onChange:e=>o(e.target.value),onKeyDown:e=>{e.key===`Enter`&&f&&(e.preventDefault(),s(!0))}})]}):null,(0,I.jsxs)(u1,{children:[(0,I.jsx)(m1,{onClick:()=>s(!1),children:t.opts.cancelLabel??`Annuler`}),(0,I.jsx)(X,{variant:t.opts.destructive?`destructive`:`default`,disabled:!f,onClick:()=>s(!0),children:t.opts.confirmLabel??`Supprimer`})]})]}):null}),(0,I.jsx)(h1,{open:u,onOpenChange:e=>{e||s(null)},children:u?(0,I.jsxs)(g1,{onOpenAutoFocus:m,...t.opts.description?{}:{"aria-describedby":void 0},children:[(0,I.jsxs)(_1,{children:[(0,I.jsx)(y1,{children:t.opts.title}),t.opts.description?(0,I.jsx)(b1,{children:t.opts.description}):null]}),(0,I.jsxs)(`label`,{className:`flex flex-col gap-1.5`,children:[t.opts.label?(0,I.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:t.opts.label}):null,(0,I.jsx)(o1,{ref:i,value:a,placeholder:t.opts.placeholder,autoComplete:`off`,onChange:e=>o(e.target.value),onKeyDown:e=>{e.key===`Enter`&&p&&(e.preventDefault(),s(a.trim()))}})]}),(0,I.jsxs)(v1,{children:[(0,I.jsx)(X,{variant:`outline`,onClick:()=>s(null),children:t.opts.cancelLabel??`Annuler`}),(0,I.jsx)(X,{disabled:!p,onClick:()=>s(a.trim()),children:t.opts.confirmLabel??`Valider`})]})]}):null})]})}function S1(){let e=N.useContext(x1);if(!e)throw Error(`useConfirm/usePrompt must be used within <DialogsProvider>`);return e}function C1(){return S1().confirm}function w1(){return S1().prompt}var T1=N.createContext(null),i4e=6e3;function E1(e){if(e instanceof Error)return e.message;if(typeof e==`string`)return e;try{return String(e)}catch{return`Erreur inconnue`}}function a4e({children:e}){let[t,n]=N.useState([]),r=N.useRef(0),i=N.useRef(new Map),a=N.useCallback(e=>{n(t=>t.filter(t=>t.id!==e));let t=i.current.get(e);t!==void 0&&(window.clearTimeout(t),i.current.delete(e))},[]),o=N.useCallback(e=>{let t=r.current++,o={id:t,variant:e.variant??`info`,title:e.title,description:e.description};n(e=>[...e,o]);let s=window.setTimeout(()=>a(t),i4e);i.current.set(t,s)},[a]);N.useEffect(()=>{let e=i.current;return()=>{for(let t of e.values())window.clearTimeout(t);e.clear()}},[]);let s=N.useMemo(()=>({toast:o,error:(e,t)=>o({variant:`error`,title:e,description:t===void 0?void 0:E1(t)}),success:(e,t)=>o({variant:`success`,title:e,description:t})}),[o]);return(0,I.jsxs)(T1.Provider,{value:s,children:[e,(0,I.jsx)(`div`,{className:`oc-toast__viewport`,role:`region`,"aria-label":`Notifications`,children:t.map(e=>(0,I.jsxs)(`div`,{className:G$(`oc-toast`,`oc-toast--${e.variant}`),role:e.variant===`error`?`alert`:`status`,children:[(0,I.jsxs)(`div`,{className:`oc-toast__body`,children:[(0,I.jsx)(`div`,{className:`oc-toast__title`,children:e.title}),e.description?(0,I.jsx)(`div`,{className:`oc-toast__desc`,children:e.description}):null]}),(0,I.jsx)(`button`,{type:`button`,className:`oc-toast__close`,"aria-label":`Fermer`,onClick:()=>a(e.id),children:(0,I.jsx)(Km,{"aria-hidden":!0})})]},e.id))})]})}function D1(){let e=N.useContext(T1);if(!e)throw Error(`useToast must be used within <ToastProvider>`);return e}function o4e(e){return e.kind===`tool`}function s4e(e){return e.kind===`media`}function c4e(e){return e.kind===`file`}function l4e(e){return e.kind===`reasoning`}var u4e=/---[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}(?=\.[^.]+$|$)/i;function d4e(e){return e.replace(u4e,``)}function f4e(e,t){let n=e.runId??`norun`;return`${e._id}:${n}:${t}`}function p4e(e,t,n){return{toolCallId:f4e(e,t),toolName:n.name,args:n.input??{},result:n.output,argsText:n.input===void 0?void 0:g4e(n.input),phase:typeof n.phase==`string`?n.phase:void 0}}function m4e(e){return e&&d4e(e)}function h4e(e){return e.url?{type:`file`,mimeType:e.mimeType,data:e.url,filename:m4e(e.filename)}:null}function g4e(e){try{return typeof e==`string`?e:JSON.stringify(e,null,2)}catch{return String(e)}}function _4e(e){let t=[],n=[],r=[];return e.parts.forEach((i,a)=>{l4e(i)?t.push({type:`reasoning`,text:i.text}):o4e(i)?n.push(p4e(e,a,i)):i.kind===`provenance`&&r.push(i)}),e.text&&e.text.length>0&&t.push({type:`text`,text:e.text}),e.parts.forEach(e=>{if(s4e(e)||c4e(e)){let n=h4e(e);n&&t.push(n)}}),t.length===0&&t.push({type:`text`,text:``}),{id:e._id,role:e.role,createdAt:new Date(e.updatedAt??e._creationTime),content:t,metadata:{custom:{messageId:e._id,chatId:e.chatId,status:e.status,runId:e.runId??null,error:e.error??null,toolParts:n,provenanceParts:r,attachedDocCount:e.attachedDocCount??0,rawText:e.text}}}}function v4e(e){return typeof e==`string`&&e.toLowerCase().startsWith(`image/`)}var y4e=128*1024;function b4e(e){let t=e-y4e;return t<=0?0:Math.floor(t/4)*3}function x4e(){return`att_${Math.random().toString(36).slice(2)}_${Date.now()}`}function S4e(e){if(!e)return[];let t=[];for(let n of e){let e=n.convex;e?.storageId&&t.push({storageId:e.storageId,filename:e.filename,mimeType:e.mimeType})}return t}function C4e(e,t,n){return{accept:`*`,async add({file:r}){let i=null;try{i=(await e.query(V.bridgeHealth.getBridgeAvailability,n?{chatId:n}:{}))?.maxInboundBytes??null}catch{}let a=i??b4e(26214400);if(n&&!v4e(r.type))try{let t=await e.query(V.bridge.getChatInboundPolicy,{chatId:n});t?.inboundMediaMode===`shared-fs`&&(a=t.sharedFsMaxBytes)}catch{}if(r.size>a){let e=e=>Math.floor(e/1024/1024),n=ffe({size:e(r.size),max:e(a)});throw t?.(n),Error(n)}return{id:x4e(),type:w4e(r.type),name:r.name,contentType:r.type||`application/octet-stream`,file:r,status:{type:`running`,reason:`uploading`,progress:0}}},async send(t){let n=t.file;AO.report(t.id,0,n.size||1);try{let r;try{r=await e.mutation(V.chats.generateUploadUrl,{})}catch(e){throw console.error(`[attach] generateUploadUrl failed:`,e),e}let i=await new Promise((e,i)=>{let a=new XMLHttpRequest;a.open(`POST`,r),a.setRequestHeader(`Content-Type`,n.type||`application/octet-stream`),a.upload.onprogress=e=>{e.lengthComputable&&AO.report(t.id,e.loaded,e.total)},a.onload=()=>{if(a.status>=200&&a.status<300)try{e(JSON.parse(a.responseText).storageId)}catch(e){i(e)}else i(Error(`Upload failed (${a.status})`))},a.onerror=()=>{console.error(`[attach] upload POST failed (network/CORS/CSP)`),i(Error(`Upload failed (network)`))},a.send(n)});return await e.mutation(V.uploads.registerUpload,{storageId:i}),{id:t.id,type:t.type,name:t.name,contentType:t.contentType,status:{type:`complete`},content:[{type:`text`,text:n.name}],convex:{storageId:i,filename:n.name,mimeType:n.type||`application/octet-stream`}}}finally{AO.clear(t.id)}},async remove(){}}}function w4e(e){return e.startsWith(`image/`)?`image`:`document`}function T4e({chatId:e}){let t=Zn(),n=D1(),r=F(V.send.sendMessage).withOptimisticUpdate((e,t)=>{let n={chatId:t.chatId},r=e.getQuery(V.messages.listByChat,n)??[],i=`optimistic-${t.clientMessageId}`;if(r.some(e=>e._id===i))return;let a=Date.now(),o={_id:i,chatId:t.chatId,_creationTime:a,role:`user`,status:`complete`,runId:void 0,error:void 0,errorCode:void 0,attachedDocCount:void 0,text:t.text,updatedAt:a,parts:[]};e.setQuery(V.messages.listByChat,n,[...r,o])}),i=P(V.messages.listByChat,e?{chatId:e}:`skip`),a=P(V.messages.getStreamingText,e?{chatId:e}:`skip`),o=(0,N.useMemo)(()=>C4e(t,e=>n.error(e),e),[t,n,e]),s=(0,N.useMemo)(()=>{let e=i??[];if(!a||a.length===0)return e;let t=new Map(a.map(e=>[e.messageId,e.text]));return e.map(e=>e.status===`streaming`&&t.has(e._id)?{...e,text:t.get(e._id)}:e)},[i,a]),c=s.length>0?s[s.length-1].role:null,l=s.some(e=>e.status===`streaming`),[u,d]=(0,N.useState)(null);(0,N.useEffect)(()=>{d(null)},[e]),(0,N.useEffect)(()=>{c===`assistant`&&d(null)},[c,s]),(0,N.useEffect)(()=>{if(u===null)return;let e=window.setTimeout(()=>d(null),12e4);return()=>window.clearTimeout(e)},[u]);let f=u!==null||l,p=(0,N.useMemo)(()=>({messages:s,isRunning:f,convertMessage:_4e,onNew:async t=>{if(!e)throw Error(`No chat selected`);let n=t.content.filter(e=>e.type===`text`).map(e=>e.text).join(``),i=S4e(t.attachments).map(e=>({storageId:e.storageId,filename:e.filename,mimeType:e.mimeType}));d(Date.now());try{await r({chatId:e,text:n,clientMessageId:crypto.randomUUID(),attachments:i})}catch(e){throw d(null),e}},adapters:{attachments:o}}),[s,f,e,r,o]),m=(0,N.useMemo)(()=>({begin:()=>d(Date.now()),cancel:()=>d(null)}),[]),h=(0,N.useCallback)(async t=>{let i=t.trim();if(!e||i===``)return!1;try{return await r({chatId:e,text:t,clientMessageId:crypto.randomUUID()}),!0}catch(e){return n.error(e?.message?.includes(`QUEUE_FULL`)?jJ():PJ()),!1}},[e,r,n]);return{runtime:hv(p),turnGate:m,queueSend:h}}function O1(e,{key:t,value:n}){let r=e.getQuery(V.me.getMe,{host:xO});if(!r?.ui)return;let i={...r.ui.effective},a={...r.ui.userOverrides},o=t,s=t;n===null?delete a[s]:(i[o]=n,a[s]=n),e.setQuery(V.me.getMe,{host:xO},{...r,ui:{...r.ui,effective:i,userOverrides:a}})}function E4e(e,{messageId:t}){for(let{args:n,value:r}of e.getAllQueries(V.messages.listByChat)){if(r===void 0)continue;let i=r.find(e=>e._id===t);if(i===void 0)continue;let a=i._creationTime;e.setQuery(V.messages.listByChat,n,r.filter(e=>e._creationTime<a))}}function D4e(e,t){if(e===void 0)return`thinking`;switch(e){case`streaming`:return t?`generating`:`thinking`;case`error`:return`error`;case`aborted`:return`aborted`;default:return null}}function O4e(e){return e?e.some(e=>e?.type===`text`&&typeof e.text==`string`&&e.text.trim().length>0):!1}var k4e={thinking:hze,generating:vze,error:xze,aborted:Dze};function A4e(e,t){let n=D4e(e,t);return n===null?null:{kind:n,label:k4e[n]()}}var j4e=O4e;function M4e(e){return e===`stream_orphaned`?wze():e}function N4e(){let e=i$(),t=gy(e=>e.metadata?.custom?.status),n=gy(e=>e.metadata?.custom?.runId),r=gy(e=>e.metadata?.custom?.error),i=A4e(t,gy(e=>j4e(e.content))),a=i?.kind===`thinking`,[o,s]=(0,N.useState)(!1);return(0,N.useEffect)(()=>{if(!a){s(!1);return}let e=window.setTimeout(()=>s(!0),6e3);return()=>window.clearTimeout(e)},[a]),i?i.kind===`error`?(0,I.jsxs)(`div`,{className:`oc-error-card`,role:`alert`,title:n?`run ${n}`:void 0,children:[(0,I.jsx)(hm,{size:18,className:`oc-error-card__icon`,"aria-hidden":!0}),(0,I.jsxs)(`div`,{className:`oc-error-card__body`,children:[(0,I.jsx)(`span`,{className:`oc-error-card__title`,children:i.label}),r?(0,I.jsx)(`span`,{className:`oc-error-card__msg`,children:M4e(r)}):null]})]}):(0,I.jsxs)(`div`,{className:`oc-run-status oc-run-status--${i.kind}`,role:`status`,title:n?`run ${n}`:void 0,children:[i.kind===`thinking`?(0,I.jsxs)(`span`,{className:`oc-dots`,"aria-hidden":!0,children:[(0,I.jsx)(`span`,{}),(0,I.jsx)(`span`,{}),(0,I.jsx)(`span`,{})]}):i.kind===`generating`?(0,I.jsx)(`span`,{className:`oc-run-status__pulse`,"aria-hidden":!0}):(0,I.jsx)(Lee,{size:13,"aria-hidden":!0}),(0,I.jsx)(`span`,{className:`oc-run-status__label`,children:i.kind===`thinking`&&o?n2e(e):i.label})]}):null}var P4e=new Set([`status`,`exitCode`,`durationMs`]);function F4e(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e,null,2)}catch{return String(e)}}function I4e(e){if(typeof e==`string`)return{kind:`text`,text:e};if(typeof e==`object`&&e&&!Array.isArray(e)){let t=e,n=Object.keys(t);if(typeof t.exitCode==`number`&&n.every(e=>P4e.has(e)))return{kind:`outcome`,status:typeof t.status==`string`?t.status:null,exitCode:t.exitCode,durationMs:typeof t.durationMs==`number`?t.durationMs:null}}return{kind:`json`,text:F4e(e)}}function L4e(e){let t=[(e.exitCode===null?e.status===`completed`:e.exitCode===0)?Lq():Bq()];return e.exitCode!==null&&t.push(Uq({code:e.exitCode})),e.durationMs!==null&&t.push(Kq({ms:e.durationMs})),t.join(` · `)}var R4e=new Set([`complete`,`error`,`aborted`]),z4e=new Set([`completed`,`error`]);function B4e(e,t){if(e.length===0)return!1;if(t===`streaming`)return!0;if(t!==void 0&&R4e.has(t))return!1;let n=e[e.length-1];return n.phase!==void 0&&z4e.has(n.phase)?!1:n.result===void 0||n.result===null}var V4e=[`command`,`query`,`url`,`path`,`pattern`,`file`,`cmd`,`prompt`];function H4e(e,t){let n=``;if(e&&typeof e==`object`&&!Array.isArray(e)){let t=e;for(let e of V4e){let r=t[e];if(typeof r==`string`&&r.trim()){n=r;break}}}return n||=t??(typeof e==`string`?e:``),n.replace(/\s+/g,` `).trim()}function U4e(e,t){let n=e.length,r=n===1?jq({count:n}):Pq({count:n});return{count:n,running:B4e(e,t),label:r}}function k1({text:e}){let[t,n]=(0,N.useState)(!1);return(0,I.jsx)(`button`,{type:`button`,className:`oc-copybtn`,title:`Copier`,"aria-label":`Copier le contenu`,onClick:()=>{navigator.clipboard?.writeText(e).then(()=>{n(!0),window.setTimeout(()=>n(!1),1200)})},children:t?(0,I.jsx)(um,{size:13,"aria-hidden":!0}):(0,I.jsx)(_m,{size:13,"aria-hidden":!0})})}function W4e(e,t){let n=typeof e==`string`?e:void 0;return n===`error`?`error`:t||n===`completed`?`completed`:`running`}function G4e(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e,null,2)}catch{return String(e)}}function K4e({toolName:e,args:t,argsText:n,result:r,status:i}){let a=r!=null,o=W4e(i?.type,a),s=n??G4e(t),c=H4e(t,n),l=a?I4e(r):null,u=o===`running`?Cm:o===`error`?hm:xee;return(0,I.jsxs)(`details`,{className:`oc-tool oc-tool--${o}`,children:[(0,I.jsxs)(`summary`,{className:`oc-tool__header`,children:[(0,I.jsx)(u,{className:`oc-tool__status${o===`running`?` oc-tool__status--spin`:``}`,size:14,"aria-hidden":!0}),(0,I.jsx)(`span`,{className:`oc-tool__name`,children:e}),c?(0,I.jsx)(`span`,{className:`oc-tool__preview`,title:c,children:c}):null,(0,I.jsx)(`span`,{className:`oc-tool__phase`,children:o}),(0,I.jsx)(fm,{size:15,className:`oc-tool__chevron`,"aria-hidden":!0})]}),(0,I.jsxs)(`div`,{className:`oc-tool__body`,children:[s?(0,I.jsxs)(`details`,{className:`oc-tool__io`,children:[(0,I.jsx)(`summary`,{children:`input`}),(0,I.jsxs)(`div`,{className:`oc-tool__prewrap`,children:[(0,I.jsx)(`pre`,{className:`oc-tool__pre`,children:s}),(0,I.jsx)(k1,{text:s})]})]}):null,l&&l.kind===`outcome`?(0,I.jsxs)(`div`,{className:`oc-tool__outcome`,children:[(0,I.jsx)(`span`,{className:`oc-tool__outcome-label`,children:L4e(l)}),(0,I.jsx)(`span`,{className:`oc-tool__outcome-note`,children:Yq()})]}):l?(0,I.jsxs)(`details`,{className:`oc-tool__io`,open:!0,children:[(0,I.jsx)(`summary`,{children:`output`}),(0,I.jsxs)(`div`,{className:`oc-tool__prewrap`,children:[(0,I.jsx)(`pre`,{className:`oc-tool__pre`,children:l.text}),(0,I.jsx)(k1,{text:l.text})]})]}):null]})]})}function q4e(){let e=gy(e=>e.metadata?.custom?.toolParts),t=gy(e=>e.metadata?.custom?.status),[n,r]=(0,N.useState)(!1);if(!e||e.length===0)return null;let i=n,a=U4e(e,t);return(0,I.jsxs)(`div`,{className:`oc-toolact${i?` is-open`:``}`,children:[(0,I.jsxs)(`button`,{type:`button`,className:`oc-toolact__summary`,"aria-expanded":i,title:i?sJ():iJ(),onClick:()=>r(!i),children:[(0,I.jsx)(Gm,{size:13,className:`oc-toolact__icon`,"aria-hidden":!0}),(0,I.jsx)(`span`,{className:`oc-toolact__label`,children:a.label}),a.running?(0,I.jsxs)(`span`,{className:`oc-toolact__state`,children:[(0,I.jsx)(Cm,{size:12,className:`oc-toolact__spin`,"aria-hidden":!0}),Qq()]}):(0,I.jsxs)(`span`,{className:`oc-toolact__state oc-toolact__state--done`,children:[(0,I.jsx)(um,{size:12,"aria-hidden":!0}),(0,I.jsx)(`span`,{className:`oc-sr-only`,children:tJ()})]}),(0,I.jsx)(fm,{size:14,className:`oc-toolact__chevron`,"aria-hidden":!0})]}),i?(0,I.jsx)(`div`,{className:`oc-toolact__detail`,children:e.map(e=>(0,I.jsx)(K4e,{toolName:e.toolName,args:e.args,argsText:e.argsText,result:e.result,status:e.phase?{type:e.phase}:void 0},e.toolCallId))}):null]})}function A1({className:e,...t}){return(0,I.jsx)(sS,{"data-slot":`checkbox`,className:G$(`peer size-4 shrink-0 rounded-[4px] border border-input bg-background ring-offset-background transition-shadow outline-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground`,e),...t,children:(0,I.jsx)(lS,{"data-slot":`checkbox-indicator`,className:`flex items-center justify-center text-current`,children:t.checked===`indeterminate`?(0,I.jsx)(Om,{className:`size-3.5`}):(0,I.jsx)(um,{className:`size-3.5`})})})}function j1(e){let t={memory:0,documents:0};for(let n of e)n.group===`memory`?t.memory+=n.items.length:t.documents+=n.items.length;return t}function M1(e){let t=[];return e.memory>0&&t.push(e.memory===1?BW():UW({count:e.memory})),e.documents>0&&t.push(e.documents===1?KW():YW({count:e.documents})),t.join(` · `)}function N1(e){return e.file_name??e.id??e.type??sG()}function P1(e){let t=[];return e.type&&N1(e)!==e.type&&t.push(e.type),e.date&&t.push(e.date),e.collection&&t.push(e.collection),typeof e.score==`number`&&t.push(iG({score:e.score.toFixed(2)})),t}function F1(e,t){let n=[];return e.forEach((e,r)=>{e.group===t&&e.items.forEach((t,i)=>{n.push({key:`${e.pluginId}|${e.group}|${t.id??t.file_name??`?`}|${r}.${i}`,group:e.group,pluginId:e.pluginId,source:e.source,item:t})})}),n.sort((e,t)=>(t.item.score??0)-(e.item.score??0))}function I1(e,t){let n=t.trim().toLowerCase();return n===``?!0:[N1(e.item),e.item.text??``,...P1(e.item)].join(` `).toLowerCase().includes(n)}var L1=(0,N.createContext)(null),J4e=[];function Y4e(){let e=gy(e=>e.metadata?.custom?.provenanceParts??J4e),t=gy(e=>e.metadata?.custom?.messageId),n=gy(e=>e.metadata?.custom?.attachedDocCount??0),r=(0,N.useContext)(L1),i=j1(e);if(e.length===0||i.memory+i.documents===0)return null;let a=r?.activeMessageId===t&&t!==void 0;return(0,I.jsxs)(`button`,{type:`button`,className:`oc-sources-trigger${a?` is-active`:``}`,onClick:()=>t&&r?.openFor(t),"aria-haspopup":`dialog`,"aria-expanded":a,"aria-label":pG(),children:[(0,I.jsx)(bm,{size:13,className:`oc-sources-trigger__icon`,"aria-hidden":!0}),(0,I.jsx)(`span`,{className:`oc-sources-trigger__label`,children:LW()}),(0,I.jsx)(`span`,{className:`oc-sources-trigger__counts`,children:M1(i)}),n>0?(0,I.jsxs)(`span`,{className:`oc-sources-trigger__attached`,title:PG({count:n}),children:[(0,I.jsx)(vm,{size:12,"aria-hidden":!0}),n]}):null,(0,I.jsx)(fm,{size:14,className:`oc-sources-trigger__chev`,"aria-hidden":!0})]})}function R1({messageId:e,onClose:t}){let n=P(V.messages.getProvenanceParts,{messageId:e}),r=(0,N.useMemo)(()=>n??[],[n]),i=P(V.agents.documentaryAvailable,{}),a=P(V.documentAttachments.getDocumentAttachments,{sourceMessageId:e}),o=F(V.documentAttachments.attachDocuments),s=D1(),c=(0,N.useMemo)(()=>{let e=new Map;for(let t of a??[])e.set(t.entryKey,t);return e},[a]),l=(a??[]).some(e=>e.status===`pending`),[u,d]=(0,N.useState)(``),[f,p]=(0,N.useState)(!1),[m,h]=(0,N.useState)(!1),[g,_]=(0,N.useState)(new Set);(0,N.useEffect)(()=>{d(``),p(!1),h(!1),_(new Set)},[e]);let v=(0,N.useMemo)(()=>F1(r,`documents`).filter(e=>I1(e,u)),[r,u]),y=(0,N.useMemo)(()=>F1(r,`memory`).filter(e=>I1(e,u)),[r,u]),b=j1(r),x=e=>_(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}),S=(e,t)=>_(n=>{let r=new Set(n);for(let n of e)t?r.add(n):r.delete(n);return r}),C=(0,N.useMemo)(()=>F1(r,`documents`).filter(e=>g.has(e.key)),[r,g]),w=i!=null&&C.length>0&&!l;async function T(){if(w)try{await o({sourceMessageId:e,items:C.map(e=>({entryKey:e.key,reference:N1(e.item)}))}),s.success(KG())}catch(e){let t=E1(e);t.includes(`fetch_in_flight`)?s.error(UG()):t.includes(`no_documentary_agent`)?s.error(BG()):s.error(YG(),e)}}let E=n===void 0;return(0,I.jsxs)(`div`,{className:`oc-sources-panel`,children:[(0,I.jsxs)(`div`,{className:`oc-sources-panel__head`,children:[(0,I.jsxs)(`div`,{className:`oc-sources-panel__heading`,children:[(0,I.jsx)(`h2`,{className:`oc-sources-panel__title`,children:uG()}),(0,I.jsx)(`p`,{className:`oc-sources-panel__sub`,children:M1(b)})]}),(0,I.jsx)(`button`,{type:`button`,className:`oc-iconbtn`,onClick:t,"aria-label":pK(),title:pK(),children:(0,I.jsx)(Km,{size:16,"aria-hidden":!0})})]}),(0,I.jsxs)(`div`,{className:`oc-sources-panel__search`,children:[(0,I.jsx)(Im,{size:15,"aria-hidden":!0}),(0,I.jsx)(o1,{value:u,onChange:e=>d(e.target.value),placeholder:gG(),"aria-label":gG()})]}),(0,I.jsx)(`div`,{className:`oc-sources-panel__body`,children:E?(0,I.jsx)(`p`,{className:`oc-sources-panel__empty`,children:(0,I.jsx)(Cm,{size:14,className:`oc-iconbtn__spin`,"aria-hidden":!0})}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(z1,{icon:(0,I.jsx)(bm,{size:14,"aria-hidden":!0}),label:tG(),count:v.length,expanded:f,onToggle:()=>p(e=>!e),entries:v,selectable:!0,selected:g,onToggle1:x,onToggleAll:e=>S(v.map(e=>e.key),e),attachmentByKey:c}),(0,I.jsx)(z1,{icon:(0,I.jsx)(yee,{size:14,"aria-hidden":!0}),label:QW(),count:y.length,expanded:m,onToggle:()=>h(e=>!e),entries:y,selectable:!1,selected:g,onToggle1:x,onToggleAll:e=>S(y.map(e=>e.key),e),attachmentByKey:c}),v.length===0&&y.length===0?(0,I.jsx)(`p`,{className:`oc-sources-panel__empty`,children:yG()}):null]})}),C.length>0?(0,I.jsxs)(`div`,{className:`oc-sources-panel__actions`,children:[(0,I.jsxs)(`div`,{className:`oc-sources-panel__actrow`,children:[(0,I.jsx)(`span`,{className:`oc-sources-panel__selcount`,children:TG({count:C.length})}),(0,I.jsxs)(X,{variant:`outline`,size:`sm`,disabled:!w,onClick:()=>void T(),children:[l?(0,I.jsx)(Cm,{size:14,className:`oc-iconbtn__spin`,"aria-hidden":!0}):(0,I.jsx)(Iee,{size:14,"aria-hidden":!0}),OG()]})]}),(0,I.jsx)(`p`,{className:`oc-sources-panel__acthint`,children:i==null?BG():l?UG():jG()})]}):null]})}function z1({icon:e,label:t,count:n,expanded:r,onToggle:i,entries:a,selectable:o,selected:s,onToggle1:c,onToggleAll:l,attachmentByKey:u}){if(n===0)return null;let d=a.every(e=>s.has(e.key));return(0,I.jsxs)(`section`,{className:`oc-srcsec${r?` is-open`:``}`,children:[(0,I.jsxs)(`button`,{type:`button`,className:`oc-srcsec__head`,"aria-expanded":r,onClick:i,children:[r?(0,I.jsx)(dm,{size:14,"aria-hidden":!0}):(0,I.jsx)(fm,{size:14,"aria-hidden":!0}),e,(0,I.jsx)(`span`,{className:`oc-srcsec__label`,children:t}),(0,I.jsx)(`span`,{className:`oc-srcsec__count`,children:n})]}),r?(0,I.jsxs)(`div`,{className:`oc-srcsec__body`,children:[o?(0,I.jsxs)(`label`,{className:`oc-srcsec__all`,children:[(0,I.jsx)(A1,{checked:d,onCheckedChange:e=>l(e===!0)}),(0,I.jsx)(`span`,{children:SG()})]}):null,a.map(e=>(0,I.jsx)(X4e,{entry:e,selectable:o,selected:s.has(e.key),onToggle:()=>c(e.key),attachment:u.get(e.key)},e.key))]}):null]})}function X4e({entry:e,selectable:t,selected:n,onToggle:r,attachment:i}){let[a,o]=(0,N.useState)(!1),s=(0,N.useRef)(null),[c,l]=(0,N.useState)(!1),{item:u}=e;(0,N.useEffect)(()=>{let e=s.current;if(!e)return;let t=()=>l(e.scrollHeight>e.clientHeight+1);t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[u.text]);let d=P1(u),f=typeof u.score==`number`?Math.max(0,Math.min(1,u.score)):null,p=e.group===`documents`;return(0,I.jsxs)(`div`,{className:`oc-srccard${t&&n?` is-selected`:``}`,children:[t?(0,I.jsx)(`label`,{className:`oc-srccard__pick`,children:(0,I.jsx)(A1,{checked:n,onCheckedChange:r})}):null,(0,I.jsxs)(`div`,{className:`oc-srccard__body`,children:[(0,I.jsx)(`div`,{className:`oc-srccard__title`,children:N1(u)}),d.length>0||f!==null?(0,I.jsxs)(`div`,{className:`oc-srccard__meta`,children:[d.map(e=>(0,I.jsx)(`span`,{className:`oc-srccard__chip`,children:e},e)),f===null?null:(0,I.jsx)(`span`,{className:`oc-srccard__relev`,title:iG({score:f.toFixed(2)}),children:(0,I.jsx)(`span`,{className:`oc-srccard__relev-track`,"aria-hidden":!0,children:(0,I.jsx)(`span`,{className:`oc-srccard__relev-fill`,style:{width:`${Math.round(f*100)}%`}})})})]}):null,u.text?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`blockquote`,{ref:s,className:`oc-srccard__excerpt${a?` is-full`:``}`,children:u.text}),c||a?(0,I.jsx)(`button`,{type:`button`,className:`oc-srccard__more`,onClick:()=>o(e=>!e),children:a?uK():sK()}):null]}):null,p?(0,I.jsx)(Z4e,{attachment:i}):null]})]})}function Z4e({attachment:e}){if(e?.status===`ready`&&e.url){let t=e.filename??tK();return(0,I.jsxs)(`a`,{className:`oc-srccard__origin oc-srccard__origin--ready`,href:e.url,download:e.filename??void 0,target:`_blank`,rel:`noreferrer`,title:tK(),children:[(0,I.jsx)(vm,{size:13,"aria-hidden":!0}),(0,I.jsx)(`span`,{className:`oc-srccard__origin-name`,children:t})]})}return e?.status===`pending`?(0,I.jsxs)(`div`,{className:`oc-srccard__origin oc-srccard__origin--pending`,children:[(0,I.jsx)(Cm,{size:13,"aria-hidden":!0}),QG()]}):e?.status===`not_found`||e?.status===`failed`?(0,I.jsxs)(`div`,{className:`oc-srccard__origin oc-srccard__origin--missing`,"aria-disabled":!0,children:[(0,I.jsx)(Km,{size:13,"aria-hidden":!0}),iK()]}):(0,I.jsxs)(`div`,{className:`oc-srccard__origin`,"aria-disabled":!0,children:[(0,I.jsx)(vm,{size:13,"aria-hidden":!0}),LG()]})}var Q4e=`oc.sidebar.width`,B1=`oc.sidebar.collapsed`,V1=200,H1=520,$4e=260,U1=`(max-width: 767px)`;function W1(){let[e,t]=(0,N.useState)(()=>typeof window<`u`&&window.matchMedia(U1).matches);return(0,N.useEffect)(()=>{let e=window.matchMedia(U1),n=e=>t(e.matches);return e.addEventListener(`change`,n),()=>e.removeEventListener(`change`,n)},[]),e}function G1(e){let{storageKey:t,defaultWidth:n,min:r,max:i,edge:a}=e,o=(0,N.useCallback)(e=>Math.min(i,Math.max(r,e)),[r,i]),[s,c]=(0,N.useState)(()=>{let e=Number(localStorage.getItem(t));return e?Math.min(i,Math.max(r,e)):n});(0,N.useEffect)(()=>{localStorage.setItem(t,String(s))},[t,s]);let l=(0,N.useRef)(!1);return{width:s,startResize:(0,N.useCallback)(e=>{e.preventDefault(),l.current=!0;let t=e.clientX,n=s,r=a===`left`?1:-1,i=e=>{l.current&&c(o(n+r*(e.clientX-t)))},u=()=>{l.current=!1,window.removeEventListener(`pointermove`,i),window.removeEventListener(`pointerup`,u),document.body.style.cursor=``,document.body.style.userSelect=``};window.addEventListener(`pointermove`,i),window.addEventListener(`pointerup`,u),document.body.style.cursor=`col-resize`,document.body.style.userSelect=`none`},[s,a,o]),setWidth:c}}function e3e(){let{width:e,startResize:t}=G1({storageKey:Q4e,defaultWidth:$4e,min:V1,max:H1,edge:`left`}),[n,r]=(0,N.useState)(()=>localStorage.getItem(B1)===`1`),i=W1();return(0,N.useEffect)(()=>{localStorage.setItem(B1,n?`1`:`0`)},[n]),(0,N.useEffect)(()=>{i&&r(!0)},[i]),{width:e,collapsed:n,toggleCollapsed:(0,N.useCallback)(()=>r(e=>!e),[]),collapse:(0,N.useCallback)(()=>r(!0),[]),startResize:t,isMobile:i,MIN_WIDTH:V1,MAX_WIDTH:H1}}function K1({...e}){return(0,I.jsx)(xx,{"data-slot":`sheet`,...e})}function t3e({...e}){return(0,I.jsx)(Sx,{"data-slot":`sheet-portal`,...e})}function n3e({className:e,...t}){return(0,I.jsx)(Cx,{"data-slot":`sheet-overlay`,className:G$(`fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function q1({className:e,children:t,side:n=`right`,showCloseButton:r=!0,...i}){return(0,I.jsxs)(t3e,{children:[(0,I.jsx)(n3e,{}),(0,I.jsxs)(wx,{"data-slot":`sheet-content`,"data-side":n,className:G$(`fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:animate-out data-closed:fade-out-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=right]:data-closed:slide-out-to-right-10 data-[side=top]:data-closed:slide-out-to-top-10`,e),...i,children:[t,r&&(0,I.jsx)(Dx,{"data-slot":`sheet-close`,asChild:!0,children:(0,I.jsxs)(X,{variant:`ghost`,className:`absolute top-3 right-3`,size:`icon-sm`,children:[(0,I.jsx)(Km,{}),(0,I.jsx)(`span`,{className:`sr-only`,children:JQ()})]})})]})]})}function J1({className:e,...t}){return(0,I.jsx)(`div`,{"data-slot":`sheet-header`,className:G$(`flex flex-col gap-0.5 p-4`,e),...t})}function Y1({className:e,...t}){return(0,I.jsx)(`div`,{"data-slot":`sheet-footer`,className:G$(`mt-auto flex flex-col gap-2 p-4`,e),...t})}function X1({className:e,...t}){return(0,I.jsx)(Tx,{"data-slot":`sheet-title`,className:G$(`font-heading text-base font-medium text-foreground`,e),...t})}function Z1({className:e,...t}){return(0,I.jsx)(Ex,{"data-slot":`sheet-description`,className:G$(`text-sm text-muted-foreground`,e),...t})}function r3e({mimeType:e,data:t,filename:n}){let r=e??``,i=t??``,a=n??`attachment`;return i?r.startsWith(`audio/`)?(0,I.jsxs)(`div`,{className:`oc-media oc-media--audio`,children:[(0,I.jsx)(`audio`,{controls:!0,preload:`metadata`,src:i,className:`oc-media__audio`,children:(0,I.jsx)(`a`,{href:i,download:a,children:`Download audio`})}),(0,I.jsx)(`span`,{className:`oc-media__name`,children:a})]}):r.startsWith(`image/`)?(0,I.jsxs)(`figure`,{className:`oc-media oc-media--image`,children:[(0,I.jsx)(`img`,{src:i,alt:a,className:`oc-media__img`,loading:`lazy`}),(0,I.jsx)(`figcaption`,{className:`oc-media__name`,children:a})]}):r.startsWith(`video/`)?(0,I.jsxs)(`div`,{className:`oc-media oc-media--video`,children:[(0,I.jsx)(`video`,{controls:!0,preload:`metadata`,src:i,className:`oc-media__video`}),(0,I.jsx)(`span`,{className:`oc-media__name`,children:a})]}):(0,I.jsxs)(`a`,{className:`oc-media oc-media--file`,href:i,target:`_blank`,rel:`noopener noreferrer`,children:[(0,I.jsx)(`span`,{className:`oc-media__icon`,"aria-hidden":!0,children:`⬇`}),(0,I.jsx)(`span`,{className:`oc-media__name`,children:a})]}):null}var i3e=(e,t)=>typeof e==`string`?e===t:JSON.stringify(e)===JSON.stringify(t),a3e=(e,t)=>{if(!e||!t)return!1;let n=e=>{let{position:t,data:n,...r}=e||{};return r};return JSON.stringify(n(e.properties))===JSON.stringify(n(t.properties))&&i3e(e.children,t.children)},Q1=(e,t)=>a3e(e.node,t.node),$1=(0,N.createContext)(null),o3e=()=>(0,N.useContext)($1)!==null,s3e=(0,N.memo)(({children:e,...t})=>(0,I.jsx)($1.Provider,{value:t,children:e}),Q1),c3e=({node:e,...t})=>(0,I.jsx)(`pre`,{...t}),l3e=({node:e,...t})=>(0,I.jsx)(`code`,{...t}),e0=({node:e,components:{Pre:t,Code:n},code:r})=>(0,I.jsx)(t,{children:(0,I.jsx)(n,{node:e,children:r})}),u3e=()=>null,d3e=({node:e,components:{Pre:t,Code:n,SyntaxHighlighter:r,CodeHeader:i},language:a,code:o})=>{let s=(0,N.useMemo)(()=>({Pre:t,Code:n}),[t,n]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(i,{node:e,language:a,code:o}),(0,I.jsx)(a?r:e0,{node:e,components:s,language:a??`unknown`,code:o})]})},t0=u(o(((e,t)=>{(function(){var e={}.hasOwnProperty;function n(){for(var e=``,t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,r(n)))}return e}function r(t){if(typeof t==`string`||typeof t==`number`)return t;if(typeof t!=`object`)return``;if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes(`[native code]`))return t.toString();var r=``;for(var a in t)e.call(t,a)&&t[a]&&(r=i(r,a));return r}function i(e,t){return t?e?e+` `+t:e+t:e}t!==void 0&&t.exports?(n.default=n,t.exports=n):typeof define==`function`&&typeof define.amd==`object`&&define.amd?define(`classnames`,[],function(){return n}):window.classNames=n})()}))(),1),n0=({className:e,...t})=>({className:n,...r})=>({className:(0,t0.default)(e,n),...t,...r}),f3e=({node:e,components:{Pre:t,Code:n,SyntaxHighlighter:r,CodeHeader:i},componentsByLanguage:a={},children:o,...s})=>{let c=n0((0,N.useContext)($1)),l=Py(e=>(0,I.jsx)(t,{...c(e)})),u=n0(s),d=Py(e=>(0,I.jsx)(n,{...u(e)})),f=/language-(\w+)/.exec(s.className||``)?.[1]??``;return typeof o==`string`?(0,I.jsx)(d3e,{node:e,components:{Pre:l,Code:d,SyntaxHighlighter:a[f]?.SyntaxHighlighter??r,CodeHeader:a[f]?.CodeHeader??i},language:f||`unknown`,code:o}):(0,I.jsx)(e0,{node:e,components:{Pre:l,Code:d},code:o})},p3e=(0,N.memo)(({node:e,components:t,componentsByLanguage:n,...r})=>o3e()?(0,I.jsx)(f3e,{node:e,components:t,componentsByLanguage:n,...r}):(0,I.jsx)(t.Code,{...r}),(e,t)=>e.components===t.components&&e.componentsByLanguage===t.componentsByLanguage&&Q1(e,t));function m3e(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var h3e=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,g3e=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,_3e={};function r0(e,t){return((t||_3e).jsx?g3e:h3e).test(e)}var v3e=/[ \t\n\f\r]/g;function y3e(e){return typeof e==`object`?e.type===`text`?i0(e.value):!1:i0(e)}function i0(e){return e.replace(v3e,``)===``}var a0=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};a0.prototype.normal={},a0.prototype.property={},a0.prototype.space=void 0;function o0(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new a0(n,r,t)}function s0(e){return e.toLowerCase()}var c0=class{constructor(e,t){this.attribute=t,this.property=e}};c0.prototype.attribute=``,c0.prototype.booleanish=!1,c0.prototype.boolean=!1,c0.prototype.commaOrSpaceSeparated=!1,c0.prototype.commaSeparated=!1,c0.prototype.defined=!1,c0.prototype.mustUseProperty=!1,c0.prototype.number=!1,c0.prototype.overloadedBoolean=!1,c0.prototype.property=``,c0.prototype.spaceSeparated=!1,c0.prototype.space=void 0;var l0=s({boolean:()=>u0,booleanish:()=>d0,commaOrSpaceSeparated:()=>h0,commaSeparated:()=>m0,number:()=>Z,overloadedBoolean:()=>f0,spaceSeparated:()=>p0}),b3e=0,u0=g0(),d0=g0(),f0=g0(),Z=g0(),p0=g0(),m0=g0(),h0=g0();function g0(){return 2**++b3e}var _0=Object.keys(l0),v0=class extends c0{constructor(e,t,n,r){let i=-1;if(super(e,t),y0(this,`space`,r),typeof n==`number`)for(;++i<_0.length;){let e=_0[i];y0(this,_0[i],(n&l0[e])===l0[e])}}};v0.prototype.defined=!0;function y0(e,t,n){n&&(e[t]=n)}function b0(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new v0(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[s0(r)]=r,n[s0(a.attribute)]=r}return new a0(t,n,e.space)}var x0=b0({properties:{ariaActiveDescendant:null,ariaAtomic:d0,ariaAutoComplete:null,ariaBusy:d0,ariaChecked:d0,ariaColCount:Z,ariaColIndex:Z,ariaColSpan:Z,ariaControls:p0,ariaCurrent:null,ariaDescribedBy:p0,ariaDetails:null,ariaDisabled:d0,ariaDropEffect:p0,ariaErrorMessage:null,ariaExpanded:d0,ariaFlowTo:p0,ariaGrabbed:d0,ariaHasPopup:null,ariaHidden:d0,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:p0,ariaLevel:Z,ariaLive:null,ariaModal:d0,ariaMultiLine:d0,ariaMultiSelectable:d0,ariaOrientation:null,ariaOwns:p0,ariaPlaceholder:null,ariaPosInSet:Z,ariaPressed:d0,ariaReadOnly:d0,ariaRelevant:null,ariaRequired:d0,ariaRoleDescription:p0,ariaRowCount:Z,ariaRowIndex:Z,ariaRowSpan:Z,ariaSelected:d0,ariaSetSize:Z,ariaSort:null,ariaValueMax:Z,ariaValueMin:Z,ariaValueNow:Z,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function S0(e,t){return t in e?e[t]:t}function C0(e,t){return S0(e,t.toLowerCase())}var x3e=b0({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:m0,acceptCharset:p0,accessKey:p0,action:null,allow:null,allowFullScreen:u0,allowPaymentRequest:u0,allowUserMedia:u0,alpha:u0,alt:null,as:null,async:u0,autoCapitalize:null,autoComplete:p0,autoFocus:u0,autoPlay:u0,blocking:p0,capture:null,charSet:null,checked:u0,cite:null,className:p0,closedBy:null,colorSpace:null,cols:Z,colSpan:Z,command:null,commandFor:null,content:null,contentEditable:d0,controls:u0,controlsList:p0,coords:Z|m0,crossOrigin:null,data:null,dateTime:null,decoding:null,default:u0,defer:u0,dir:null,dirName:null,disabled:u0,download:f0,draggable:d0,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:u0,formTarget:null,headers:p0,height:Z,hidden:f0,high:Z,href:null,hrefLang:null,htmlFor:p0,httpEquiv:p0,id:null,imageSizes:null,imageSrcSet:null,inert:u0,inputMode:null,integrity:null,is:null,isMap:u0,itemId:null,itemProp:p0,itemRef:p0,itemScope:u0,itemType:p0,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:u0,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:u0,muted:u0,name:null,nonce:null,noModule:u0,noValidate:u0,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:u0,optimum:Z,pattern:null,ping:p0,placeholder:null,playsInline:u0,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:u0,referrerPolicy:null,rel:p0,required:u0,reversed:u0,rows:Z,rowSpan:Z,sandbox:p0,scope:null,scoped:u0,seamless:u0,selected:u0,shadowRootClonable:u0,shadowRootCustomElementRegistry:u0,shadowRootDelegatesFocus:u0,shadowRootMode:null,shadowRootSerializable:u0,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:d0,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Z,step:null,style:null,tabIndex:Z,target:null,title:null,translate:null,type:null,typeMustMatch:u0,useMap:null,value:d0,width:Z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:p0,axis:null,background:null,bgColor:null,border:Z,borderColor:null,bottomMargin:Z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:u0,declare:u0,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:u0,noHref:u0,noShade:u0,noWrap:u0,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:d0,standby:null,summary:null,text:null,topMargin:Z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Z,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:u0,disablePictureInPicture:u0,disableRemotePlayback:u0,exportParts:m0,part:p0,prefix:null,property:null,results:Z,security:null,unselectable:null},space:`html`,transform:C0}),S3e=b0({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:h0,accentHeight:Z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Z,amplitude:Z,arabicForm:null,ascent:Z,attributeName:null,attributeType:null,azimuth:Z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Z,by:null,calcMode:null,capHeight:Z,className:p0,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Z,diffuseConstant:Z,direction:null,display:null,dur:null,divisor:Z,dominantBaseline:null,download:u0,dx:null,dy:null,edgeMode:null,editable:null,elevation:Z,enableBackground:null,end:null,event:null,exponent:Z,externalResourcesRequired:null,fill:null,fillOpacity:Z,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:m0,g2:m0,glyphName:m0,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Z,horizOriginX:Z,horizOriginY:Z,id:null,ideographic:Z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Z,k:Z,k1:Z,k2:Z,k3:Z,k4:Z,kernelMatrix:h0,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Z,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Z,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Z,overlineThickness:Z,paintOrder:null,panose1:null,path:null,pathLength:Z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:p0,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Z,pointsAtY:Z,pointsAtZ:Z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:h0,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:h0,rev:h0,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:h0,requiredFeatures:h0,requiredFonts:h0,requiredFormats:h0,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Z,specularExponent:Z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Z,strikethroughThickness:Z,string:null,stroke:null,strokeDashArray:h0,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Z,strokeOpacity:Z,strokeWidth:null,style:null,surfaceScale:Z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:h0,tabIndex:Z,tableValues:null,target:null,targetX:Z,targetY:Z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:h0,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Z,underlineThickness:Z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Z,values:null,vAlphabetic:Z,vMathematical:Z,vectorEffect:null,vHanging:Z,vIdeographic:Z,version:null,vertAdvY:Z,vertOriginX:Z,vertOriginY:Z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:S0}),w0=b0({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),T0=b0({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:C0}),E0=b0({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),C3e={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},w3e=/[A-Z]/g,D0=/-[a-z]/g,T3e=/^data[-\w.:]+$/i;function E3e(e,t){let n=s0(t),r=t,i=c0;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&T3e.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(D0,O3e);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!D0.test(e)){let n=e.replace(w3e,D3e);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=v0}return new i(r,t)}function D3e(e){return`-`+e.toLowerCase()}function O3e(e){return e.charAt(1).toUpperCase()}var k3e=o0([x0,x3e,w0,T0,E0],`html`),O0=o0([x0,S3e,w0,T0,E0],`svg`);function A3e(e){return e.join(` `).trim()}var j3e=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
|
|
131
131
|
`,d=`/`,f=`*`,p=``,m=`comment`,h=`declaration`;function g(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,g=1;function v(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(u);g=~n?e.length-n:g+e.length}function y(){var e={line:l,column:g};return function(t){return t.position=new b(e),C(),t}}function b(e){this.start=e,this.end={line:l,column:g},this.source=t.source}b.prototype.content=e;function x(n){var r=Error(t.source+`:`+l+`:`+g+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=g,r.source=e,!t.silent)throw r}function S(t){var n=t.exec(e);if(n){var r=n[0];return v(r),e=e.slice(r.length),n}}function C(){S(i)}function w(e){var t;for(e||=[];t=T();)t!==!1&&e.push(t);return e}function T(){var t=y();if(!(d!=e.charAt(0)||f!=e.charAt(1))){for(var n=2;p!=e.charAt(n)&&(f!=e.charAt(n)||d!=e.charAt(n+1));)++n;if(n+=2,p===e.charAt(n-1))return x(`End of comment missing`);var r=e.slice(2,n-2);return g+=2,v(r),e=e.slice(n),g+=2,t({type:m,comment:r})}}function E(){var e=y(),t=S(a);if(t){if(T(),!S(o))return x(`property missing ':'`);var r=S(s),i=e({type:h,property:_(t[0].replace(n,p)),value:r?_(r[0].replace(n,p)):p});return S(c),i}}function D(){var e=[];w(e);for(var t;t=E();)t!==!1&&(e.push(t),w(e));return e}return C(),D()}function _(e){return e?e.replace(l,p):p}t.exports=g})),M3e=o((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var n=t(j3e());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),N3e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),P3e=o(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(M3e()),r=N3e();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),k0=j0(`end`),A0=j0(`start`);function j0(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function F3e(e){let t=A0(e),n=k0(e);if(t&&n)return{start:t,end:n}}function M0(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?P0(e.position):`start`in e||`end`in e?P0(e):`line`in e||`column`in e?N0(e):``}function N0(e){return F0(e&&e.line)+`:`+F0(e&&e.column)}function P0(e){return N0(e&&e.start)+`-`+N0(e&&e.end)}function F0(e){return e&&typeof e==`number`?e:1}var I0=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=M0(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};I0.prototype.file=``,I0.prototype.name=``,I0.prototype.reason=``,I0.prototype.message=``,I0.prototype.stack=``,I0.prototype.column=void 0,I0.prototype.line=void 0,I0.prototype.ancestors=void 0,I0.prototype.cause=void 0,I0.prototype.fatal=void 0,I0.prototype.place=void 0,I0.prototype.ruleId=void 0,I0.prototype.source=void 0;var I3e=u(P3e(),1),L0={}.hasOwnProperty,L3e=new Map,R3e=/[A-Z]/g,z3e=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),B3e=new Set([`td`,`th`]);function V3e(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=Y3e(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=J3e(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?O0:k3e,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=R0(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function R0(e,t,n){if(t.type===`element`)return H3e(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return U3e(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return G3e(e,t,n);if(t.type===`mdxjsEsm`)return W3e(e,t);if(t.type===`root`)return K3e(e,t,n);if(t.type===`text`)return q3e(e,t)}function H3e(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=O0,e.schema=i),e.ancestors.push(t);let a=H0(e,t.tagName,!1),o=X3e(e,t),s=V0(e,t);return z3e.has(t.tagName)&&(s=s.filter(function(e){return typeof e==`string`?!y3e(e):!0})),z0(e,o,a,t),B0(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function U3e(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}U0(e,t.position)}function W3e(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);U0(e,t.position)}function G3e(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=O0,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:H0(e,t.name,!0),o=Z3e(e,t),s=V0(e,t);return z0(e,o,a,t),B0(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function K3e(e,t,n){let r={};return B0(r,V0(e,t)),e.create(t,e.Fragment,r,n)}function q3e(e,t){return t.value}function z0(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function B0(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function J3e(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function Y3e(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=A0(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function X3e(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&L0.call(t.properties,i)){let a=Q3e(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&B3e.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function Z3e(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else U0(e,t.position);else{let i=r.name,a;if(r.value&&typeof r.value==`object`)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else U0(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function V0(e,t){let n=[],r=-1,i=e.passKeys?new Map:L3e;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=R0(e,a,o);s!==void 0&&n.push(s)}return n}function Q3e(e,t,n){let r=E3e(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?m3e(n):A3e(n)),r.property===`style`){let t=typeof n==`object`?n:$3e(e,String(n));return e.stylePropertyNameCase===`css`&&(t=e6e(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?C3e[r.property]||r.property:r.attribute,n]}}function $3e(e,t){try{return(0,I3e.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new I0("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=`https://github.com/syntax-tree/hast-util-to-jsx-runtime#cannot-parse-style-attribute`,r}}function H0(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=r0(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=r0(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return L0.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);U0(e)}function U0(e,t){let n=new I0("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=`https://github.com/syntax-tree/hast-util-to-jsx-runtime#cannot-handle-mdx-estrees-without-createevaluater`,n}function e6e(e){let t={},n;for(n in e)L0.call(e,n)&&(t[t6e(n)]=e[n]);return t}function t6e(e){let t=e.replace(R3e,n6e);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function n6e(e){return`-`+e.toLowerCase()}var W0={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]},r6e={};function G0(e,t){let n=t||r6e;return K0(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function K0(e,t,n){if(i6e(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return q0(e.children,t,n)}return Array.isArray(e)?q0(e,t,n):``}function q0(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=K0(e[i],t,n);return r.join(``)}function i6e(e){return!!(e&&typeof e==`object`)}var J0=document.createElement(`i`);function Y0(e){let t=`&`+e+`;`;J0.innerHTML=t;let n=J0.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`||n===t?!1:n}function X0(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function Z0(e,t){return e.length>0?(X0(e,e.length,0,t),e):t}var Q0={}.hasOwnProperty;function $0(e){let t={},n=-1;for(;++n<e.length;)a6e(t,e[n]);return t}function a6e(e,t){let n;for(n in t){let r=(Q0.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){Q0.call(r,a)||(r[a]=[]);let e=i[a];o6e(r[a],Array.isArray(e)?e:e?[e]:[])}}}function o6e(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);X0(e,0,0,r)}function e2(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function t2(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var n2=d2(/[A-Za-z]/),r2=d2(/[\dA-Za-z]/),s6e=d2(/[#-'*+\--9=?A-Z^-~]/);function i2(e){return e!==null&&(e<32||e===127)}var a2=d2(/\d/),c6e=d2(/[\dA-Fa-f]/),l6e=d2(/[!-/:-@[-`{-~]/);function o2(e){return e!==null&&e<-2}function s2(e){return e!==null&&(e<0||e===32)}function c2(e){return e===-2||e===-1||e===32}var l2=d2(/\p{P}|\p{S}/u),u2=d2(/\s/);function d2(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function f2(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&r2(e.charCodeAt(n+1))&&r2(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function p2(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return c2(r)?(e.enter(n),s(r)):t(r)}function s(r){return c2(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var u6e={tokenize:d6e};function d6e(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),p2(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return o2(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var f6e={tokenize:p6e},m2={tokenize:m6e};function p6e(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return X0(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(m2,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(m2,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&v(),_(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);return}return o2(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;X0(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-- >r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function m6e(e,t,n){return p2(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function h2(e){if(e===null||s2(e)||u2(e))return 1;if(l2(e))return 2}function g2(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var _2={name:`attention`,resolveAll:h6e,tokenize:g6e};function h6e(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};v2(d,-c),v2(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=Z0(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=Z0(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=Z0(l,g2(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=Z0(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=Z0(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,X0(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function g6e(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=h2(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=h2(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function v2(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var _6e={name:`autolink`,tokenize:v6e};function v6e(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return n2(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||r2(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||r2(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||i2(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):s6e(t)?(e.consume(t),l):n(t)}function u(e){return r2(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||r2(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var y2={partial:!0,tokenize:y6e};function y6e(e,t,n){return r;function r(t){return c2(t)?p2(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||o2(e)?t(e):n(e)}}var b2={continuation:{tokenize:x6e},exit:S6e,name:`blockQuote`,tokenize:b6e};function b6e(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return c2(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function x6e(e,t,n){let r=this;return i;function i(t){return c2(t)?p2(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(b2,t,n)(r)}}function S6e(e){e.exit(`blockQuote`)}var x2={name:`characterEscape`,tokenize:C6e};function C6e(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return l6e(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var S2={name:`characterReference`,tokenize:w6e};function w6e(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=r2,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=c6e,u):(e.enter(`characterReferenceValue`),a=7,o=a2,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===r2&&!Y0(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var C2={partial:!0,tokenize:E6e},w2={concrete:!0,name:`codeFenced`,tokenize:T6e};function T6e(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),c2(t)?p2(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||o2(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(C2,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||o2(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):c2(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),p2(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||o2(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||o2(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&c2(t)?p2(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||o2(t)?e.check(C2,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||o2(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),c2(t)?p2(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),c2(t)?p2(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||o2(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function E6e(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var T2={name:`codeIndented`,tokenize:O6e},D6e={partial:!0,tokenize:k6e};function O6e(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),p2(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):o2(t)?e.attempt(D6e,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||o2(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function k6e(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):o2(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):p2(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):o2(e)?i(e):n(e)}}var A6e={name:`codeText`,previous:M6e,resolve:j6e,tokenize:N6e};function j6e(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function M6e(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function N6e(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):o2(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||o2(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var P6e=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&E2(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),E2(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),E2(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let t=this.left.splice(e,1/0);E2(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);E2(this.left,t.reverse())}}};function E2(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function D2(e){let t={},n=-1,r,i,a,o,s,c,l,u=new P6e(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,F6e(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(!(o[1].type===`linePrefix`||o[1].type===`listItemIndent`))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return X0(e,0,1/0,u.slice(0)),!l}function F6e(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var I6e={resolve:R6e,tokenize:z6e},L6e={partial:!0,tokenize:B6e};function R6e(e){return D2(e),e}function z6e(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):o2(t)?e.check(L6e,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function B6e(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p2(e,a,`linePrefix`)}function a(i){if(i===null||o2(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function O2(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||i2(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||o2(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||s2(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||i2(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function k2(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):o2(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||o2(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!c2(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function A2(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):o2(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p2(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||o2(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function j2(e,t){let n;return r;function r(i){return o2(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):c2(i)?p2(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var V6e={name:`definition`,tokenize:U6e},H6e={partial:!0,tokenize:W6e};function U6e(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return k2.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=t2(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return s2(t)?j2(e,l)(t):l(t)}function l(t){return O2(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(H6e,d,d)(t)}function d(t){return c2(t)?p2(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||o2(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function W6e(e,t,n){return r;function r(t){return s2(t)?j2(e,i)(t):n(t)}function i(t){return A2(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return c2(t)?p2(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||o2(e)?t(e):n(e)}}var G6e={name:`hardBreakEscape`,tokenize:K6e};function K6e(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return o2(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var q6e={name:`headingAtx`,resolve:J6e,tokenize:Y6e};function J6e(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},X0(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function Y6e(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||s2(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||o2(n)?(e.exit(`atxHeading`),t(n)):c2(n)?p2(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||s2(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var X6e=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),M2=[`pre`,`script`,`style`,`textarea`],Z6e={concrete:!0,name:`htmlFlow`,resolveTo:e8e,tokenize:t8e},Q6e={partial:!0,tokenize:r8e},$6e={partial:!0,tokenize:n8e};function e8e(e){let t=e.length;for(;t--&&!(e[t][0]===`enter`&&e[t][1].type===`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function t8e(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:M):n2(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):n2(a)?(e.consume(a),i=4,r.interrupt?t:M):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:M):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return n2(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||s2(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&M2.includes(l)?(i=1,r.interrupt?t(s):O(s)):X6e.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||r2(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return c2(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||n2(t)?(e.consume(t),b):c2(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||r2(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):c2(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):c2(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||o2(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||s2(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||c2(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||o2(t)?O(t):c2(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),A):t===60&&i===1?(e.consume(t),j):t===62&&i===4?(e.consume(t),ie):t===63&&i===3?(e.consume(t),M):t===93&&i===5?(e.consume(t),re):o2(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(Q6e,ae,ee)(t)):t===null||o2(t)?(e.exit(`htmlFlowData`),ee(t)):(e.consume(t),O)}function ee(t){return e.check($6e,te,ae)(t)}function te(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),k}function k(t){return t===null||o2(t)?ee(t):(e.enter(`htmlFlowData`),O(t))}function A(t){return t===45?(e.consume(t),M):O(t)}function j(t){return t===47?(e.consume(t),o=``,ne):O(t)}function ne(t){if(t===62){let n=o.toLowerCase();return M2.includes(n)?(e.consume(t),ie):O(t)}return n2(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),ne):O(t)}function re(t){return t===93?(e.consume(t),M):O(t)}function M(t){return t===62?(e.consume(t),ie):t===45&&i===2?(e.consume(t),M):O(t)}function ie(t){return t===null||o2(t)?(e.exit(`htmlFlowData`),ae(t)):(e.consume(t),ie)}function ae(n){return e.exit(`htmlFlow`),t(n)}}function n8e(e,t,n){let r=this;return i;function i(t){return o2(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function r8e(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(y2,t,n)}}var i8e={name:`htmlText`,tokenize:a8e};function a8e(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):n2(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):n2(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):o2(t)?(o=d,j(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?A(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):o2(t)?(o=h,j(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?A(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?A(t):o2(t)?(o=v,j(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):o2(t)?(o=y,j(t)):(e.consume(t),y)}function b(e){return e===62?A(e):y(e)}function x(t){return n2(t)?(e.consume(t),S):n(t)}function S(t){return t===45||r2(t)?(e.consume(t),S):C(t)}function C(t){return o2(t)?(o=C,j(t)):c2(t)?(e.consume(t),C):A(t)}function w(t){return t===45||r2(t)?(e.consume(t),w):t===47||t===62||s2(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),A):t===58||t===95||n2(t)?(e.consume(t),E):o2(t)?(o=T,j(t)):c2(t)?(e.consume(t),T):A(t)}function E(t){return t===45||t===46||t===58||t===95||r2(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):o2(t)?(o=D,j(t)):c2(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,ee):o2(t)?(o=O,j(t)):c2(t)?(e.consume(t),O):(e.consume(t),te)}function ee(t){return t===i?(e.consume(t),i=void 0,k):t===null?n(t):o2(t)?(o=ee,j(t)):(e.consume(t),ee)}function te(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||s2(t)?T(t):(e.consume(t),te)}function k(e){return e===47||e===62||s2(e)?T(e):n(e)}function A(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function j(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),ne}function ne(t){return c2(t)?p2(e,re,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):re(t)}function re(t){return e.enter(`htmlTextData`),o(t)}}var N2={name:`labelEnd`,resolveAll:l8e,resolveTo:u8e,tokenize:d8e},o8e={tokenize:f8e},s8e={tokenize:p8e},c8e={tokenize:m8e};function l8e(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&X0(e,0,e.length,n),e}function u8e(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=Z0(s,e.slice(a+1,a+r+3)),s=Z0(s,[[`enter`,u,t]]),s=Z0(s,g2(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=Z0(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=Z0(s,e.slice(o+1)),s=Z0(s,[[`exit`,c,t]]),X0(e,a,e.length,s),e}function d8e(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(t2(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(o8e,u,o?u:d)(t):t===91?e.attempt(s8e,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(c8e,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function f8e(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return s2(t)?j2(e,a)(t):a(t)}function a(t){return t===41?u(t):O2(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return s2(t)?j2(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?A2(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return s2(t)?j2(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function p8e(e,t,n){let r=this;return i;function i(t){return k2.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(t2(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function m8e(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var h8e={name:`labelStartImage`,resolveAll:N2.resolveAll,tokenize:g8e};function g8e(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var _8e={name:`labelStartLink`,resolveAll:N2.resolveAll,tokenize:v8e};function v8e(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var P2={name:`lineEnding`,tokenize:y8e};function y8e(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),p2(e,t,`linePrefix`)}}var F2={name:`thematicBreak`,tokenize:b8e};function b8e(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||o2(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),c2(t)?p2(e,s,`whitespace`)(t):s(t))}}var I2={continuation:{tokenize:w8e},exit:E8e,name:`list`,tokenize:C8e},x8e={partial:!0,tokenize:D8e},S8e={partial:!0,tokenize:T8e};function C8e(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:a2(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(F2,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return a2(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(y2,r.interrupt?n:u,e.attempt(x8e,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return c2(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function w8e(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(y2,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,p2(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!c2(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(S8e,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,p2(e,e.attempt(I2,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function T8e(e,t,n){let r=this;return p2(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function E8e(e){e.exit(this.containerState.type)}function D8e(e,t,n){let r=this;return p2(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!c2(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var L2={name:`setextUnderline`,resolveTo:O8e,tokenize:k8e};function O8e(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function k8e(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),c2(t)?p2(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||o2(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var A8e={tokenize:j8e};function j8e(e){let t=this,n=e.attempt(y2,r,e.attempt(this.parser.constructs.flowInitial,i,p2(e,e.attempt(this.parser.constructs.flow,i,e.attempt(I6e,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var M8e={resolveAll:z2()},N8e=R2(`string`),P8e=R2(`text`);function R2(e){return{resolveAll:z2(e===`text`?F8e:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function z2(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function F8e(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var I8e=s({attentionMarkers:()=>W8e,contentInitial:()=>R8e,disable:()=>G8e,document:()=>L8e,flow:()=>B8e,flowInitial:()=>z8e,insideSpan:()=>U8e,string:()=>V8e,text:()=>H8e}),L8e={42:I2,43:I2,45:I2,48:I2,49:I2,50:I2,51:I2,52:I2,53:I2,54:I2,55:I2,56:I2,57:I2,62:b2},R8e={91:V6e},z8e={[-2]:T2,[-1]:T2,32:T2},B8e={35:q6e,42:F2,45:[L2,F2],60:Z6e,61:L2,95:F2,96:w2,126:w2},V8e={38:S2,92:x2},H8e={[-5]:P2,[-4]:P2,[-3]:P2,33:h8e,38:S2,42:_2,60:[_6e,i8e],91:_8e,92:[G6e,x2],93:N2,95:_2,96:A6e},U8e={null:[_2,M8e]},W8e={null:[42,95]},G8e={null:[]};function K8e(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=Z0(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=g2(a,l.events,l),l.events):[]}function f(e,t){return J8e(p(e),t)}function p(e){return q8e(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){o2(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&X0(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function q8e(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function J8e(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
|
|
132
132
|
`;break;case-3:o=`\r
|
|
133
133
|
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function Y8e(e){let t={constructs:$0([I8e,...(e||{}).extensions||[]]),content:n(u6e),defined:[],document:n(f6e),flow:n(A8e),lazy:{},string:n(N8e),text:n(P8e)};return t;function n(e){return n;function n(n){return K8e(t,e,n)}}}function X8e(e){for(;!D2(e););return e}var B2=/[\0\t\n\r]/g;function Z8e(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(B2.lastIndex=u,c=B2.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var Q8e=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function $8e(e){return e.replace(Q8e,e5e)}function e5e(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return e2(n.slice(t?2:1),t?16:10)}return Y0(n)||e}var V2={}.hasOwnProperty;function t5e(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),n5e(n)(X8e(Y8e(n).document().write(Z8e()(e,t,!0))))}function n5e(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(Se),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(ve),blockQuote:a(pe),characterEscape:T,characterReference:T,codeFenced:a(me),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(me,o),codeText:a(he,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(ge),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(_e),hardBreakEscape:a(ye),hardBreakTrailing:a(ye),htmlFlow:a(be,o),htmlFlowData:T,htmlText:a(be,o),htmlTextData:T,image:a(xe),label:o,link:a(Se),listItem:a(we),listItemValue:f,listOrdered:a(Ce,d),listUnordered:a(Ce),paragraph:a(Te),reference:oe,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(ve),strong:a(Ee),thematicBreak:a(Oe)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:fe,autolinkProtocol:de,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:ce,characterReferenceMarkerNumeric:ce,characterReferenceValue:le,characterReference:ue,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(k),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(O),hardBreakTrailing:c(O),htmlFlow:c(ee),htmlFlowData:E,htmlText:c(te),htmlTextData:E,image:c(j),label:re,labelText:ne,lineEnding:D,link:c(A),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:se,resourceDestinationString:M,resourceTitleString:ie,resource:ae,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};U2(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];V2.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||W2).call(a,void 0,e[0])}for(r.position={start:H2(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:H2(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(!(t[1].type===`linePrefix`||t[1].type===`blockQuotePrefix`||t[1].type===`blockQuotePrefixWhitespace`||t[1].type===`blockQuoteMarker`||t[1].type===`listItemIndent`))break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:H2(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||W2).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+M0({start:e.start,end:e.end})+`): it’s not open`);n.position.end=H2(e.end)}function u(){return G0(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=t2(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=De(),n.position={start:H2(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=H2(e.end)}function D(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=H2(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function O(){this.data.atHardBreak=!0}function ee(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function te(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function k(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function A(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function j(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function ne(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=$8e(t),n.identifier=t2(t).toLowerCase()}function re(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function M(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function ie(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function ae(){this.data.inReference=void 0}function oe(){this.data.referenceType=`collapsed`}function se(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=t2(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function ce(e){this.data.characterReferenceType=e.type}function le(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=e2(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=Y0(t);let i=this.stack[this.stack.length-1];i.value+=r}function ue(e){let t=this.stack.pop();t.position.end=H2(e.end)}function de(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function fe(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function pe(){return{type:`blockquote`,children:[]}}function me(){return{type:`code`,lang:null,meta:null,value:``}}function he(){return{type:`inlineCode`,value:``}}function ge(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function _e(){return{type:`emphasis`,children:[]}}function ve(){return{type:`heading`,depth:0,children:[]}}function ye(){return{type:`break`}}function be(){return{type:`html`,value:``}}function xe(){return{type:`image`,title:null,url:``,alt:null}}function Se(){return{type:`link`,title:null,url:``,children:[]}}function Ce(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function we(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function Te(){return{type:`paragraph`,children:[]}}function Ee(){return{type:`strong`,children:[]}}function De(){return{type:`text`,value:``}}function Oe(){return{type:`thematicBreak`}}}function H2(e){return{line:e.line,column:e.column,offset:e.offset}}function U2(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?U2(e,r):r5e(e,r)}}function r5e(e,t){let n;for(n in t)if(V2.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function W2(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+M0({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+M0({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+M0({start:t.start,end:t.end})+`) is still open`)}function i5e(e){let t=this;t.parser=n;function n(n){return t5e(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function a5e(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function o5e(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
|
@@ -155,7 +155,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/alert-
|
|
|
155
155
|
`))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:`
|
|
156
156
|
`,...a.current()});return/^[\t ]/.test(l)&&(l=W4(l.charCodeAt(0))+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}q4.peek=O9e;function q4(e){return e.value||``}function O9e(){return`<`}J4.peek=k9e;function J4(e,t,n,r){let i=U4(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function k9e(){return`!`}Y4.peek=A9e;function Y4(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function A9e(){return`!`}X4.peek=j9e;function X4(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a<n.unsafe.length;){let e=n.unsafe[a],t=n.compilePattern(e),i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function j9e(){return"`"}function Z4(e,t){let n=G0(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type===`text`&&(n===e.url||`mailto:`+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Q4.peek=M9e;function Q4(e,t,n,r){let i=U4(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(Z4(e,n)){let t=n.stack;n.stack=[],s=n.enter(`autolink`);let r=o.move(`<`);return r+=o.move(n.containerPhrasing(e,{before:r,after:`>`,...o.current()})),r+=o.move(`>`),s(),n.stack=t,r}s=n.enter(`link`),c=n.enter(`label`);let l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function M9e(e,t,n){return Z4(e,n)?`<`:`[`}$4.peek=N9e;function $4(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function N9e(){return`[`}function e3(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function P9e(e){let t=e3(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function F9e(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function t3(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function I9e(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?F9e(n):e3(n),s=e.ordered?o===`.`?`)`:`.`:P9e(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if((o===`*`||o===`-`)&&t&&(!t.children||!t.children[0])&&n.stack[n.stack.length-1]===`list`&&n.stack[n.stack.length-2]===`listItem`&&n.stack[n.stack.length-3]===`list`&&n.stack[n.stack.length-4]===`listItem`&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),t3(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function L9e(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function R9e(e,t,n,r){let i=L9e(n),a=n.bulletCurrent||e3(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function z9e(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}var B9e=i4([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function V9e(e,t,n,r){return(e.children.some(function(e){return B9e(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function H9e(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}n3.peek=U9e;function n3(e,t,n,r){let i=H9e(n),a=n.enter(`strong`),o=n.createTracker(r),s=o.move(i+i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=G4(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=W4(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=G4(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+W4(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function U9e(e,t,n){return n.options.strong||`*`}function W9e(e,t,n,r){return n.safe(e.value,r)}function G9e(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function K9e(e,t,n){let r=(t3(n)+(n.options.ruleSpaces?` `:``)).repeat(G9e(n));return n.options.ruleSpaces?r.slice(0,-1):r}var r3={blockquote:h9e,break:H4,code:x9e,definition:C9e,emphasis:K4,hardBreak:H4,heading:D9e,html:q4,image:J4,imageReference:Y4,inlineCode:X4,link:Q4,linkReference:$4,list:I9e,listItem:R9e,paragraph:z9e,root:V9e,strong:n3,text:W9e,thematicBreak:K9e};function q9e(){return{enter:{table:J9e,tableData:a3,tableHeader:a3,tableRow:X9e},exit:{codeText:Z9e,table:Y9e,tableData:i3,tableHeader:i3,tableRow:i3}}}function J9e(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function Y9e(e){this.exit(e),this.data.inTable=void 0}function X9e(e){this.enter({type:`tableRow`,children:[]},e)}function i3(e){this.exit(e)}function a3(e){this.enter({type:`tableCell`,children:[]},e)}function Z9e(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Q9e));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Q9e(e,t){return t===`|`?t:e}function $9e(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
|
|
157
157
|
`,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(`
|
|
158
|
-
`))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return p9e(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=r3.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function eet(){return{exit:{taskListCheckValueChecked:o3,taskListCheckValueUnchecked:o3,paragraph:net}}}function tet(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:ret}}}function o3(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function net(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function ret(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=r3.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function iet(){return[I7e(),r9e(),s9e(),q9e(),eet()]}function aet(e){return{extensions:[L7e(),i9e(e),c9e(),$9e(e),tet()]}}var oet={tokenize:pet,partial:!0},s3={tokenize:met,partial:!0},c3={tokenize:het,partial:!0},l3={tokenize:get,partial:!0},set={tokenize:_et,partial:!0},u3={name:`wwwAutolink`,tokenize:det,previous:h3},d3={name:`protocolAutolink`,tokenize:fet,previous:g3},f3={name:`emailAutolink`,tokenize:uet,previous:_3},p3={};function cet(){return{text:p3}}for(var m3=48;m3<123;)p3[m3]=f3,m3++,m3===58?m3=65:m3===91&&(m3=97);p3[43]=f3,p3[45]=f3,p3[46]=f3,p3[95]=f3,p3[72]=[f3,d3],p3[104]=[f3,d3],p3[87]=[f3,u3],p3[119]=[f3,u3];function uet(e,t,n){let r=this,i,a;return o;function o(t){return!v3(t)||!_3.call(r,r.previous)||y3(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return v3(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(set,u,l)(t):t===45||t===95||r2(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&n2(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function det(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!h3.call(r,r.previous)||y3(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(oet,e.attempt(s3,e.attempt(c3,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function fet(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&g3.call(r,r.previous)&&!y3(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(n2(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||i2(t)||s2(t)||u2(t)||l2(t)?n(t):e.attempt(s3,e.attempt(c3,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function pet(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function met(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(l3,c,s)(t):t===null||s2(t)||u2(t)||t!==45&&l2(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function het(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(l3,t,a)(o):o===null||s2(o)||u2(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function get(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||s2(o)||u2(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||s2(e)||u2(e)?t(e):r(e)}function a(e){return n2(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):n2(t)?(e.consume(t),o):n(t)}}function _et(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return r2(e)?n(e):t(e)}}function h3(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||s2(e)}function g3(e){return!n2(e)}function _3(e){return!(e===47||v3(e))}function v3(e){return e===43||e===45||e===46||e===95||r2(e)}function y3(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var vet={tokenize:Det,partial:!0};function yet(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:wet,continuation:{tokenize:Tet},exit:Eet}},text:{91:{name:`gfmFootnoteCall`,tokenize:Cet},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:bet,resolveTo:xet}}}}function bet(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=t2(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function xet(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function Cet(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||s2(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(t2(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return s2(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function wet(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||s2(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=t2(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return s2(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),p2(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function Tet(e,t,n){return e.check(y2,t,e.attempt(vet,t,n))}function Eet(e){e.exit(`gfmFootnoteDefinition`)}function Det(e,t,n){let r=this;return p2(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function Oet(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&X0(o,o.length,0,g2(s,e.slice(r+1,n),t)),X0(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),X0(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=h2(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=h2(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var ket=class{constructor(){this.map=[]}add(e,t,n){Aet(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function Aet(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function jet(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function Met(){return{flow:{null:{name:`table`,tokenize:Net,resolveAll:Pet}}}}function Net(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):o2(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):c2(t)?p2(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||s2(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,c2(t)?p2(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return c2(t)?p2(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||o2(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return c2(t)?p2(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||o2(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||o2(n)?(e.exit(`tableRow`),t(n)):c2(n)?p2(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||s2(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function Pet(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new ket;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(x3(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=b3(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=b3(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=b3(f,t,o,i,n,d)):(o[0]=o[1],d=b3(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&x3(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=jet(t.events,n))}return e}function b3(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},S3(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=S3(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=S3(t.events,n[2]),a=S3(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},S3(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function x3(e,t,n,r,i){let a=[],o=S3(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function S3(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var Fet={name:`tasklistCheck`,tokenize:Let};function Iet(){return{text:{91:Fet}}}function Let(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return s2(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return o2(r)?t(r):c2(r)?e.check({tokenize:Ret},t,n)(r):n(r)}}function Ret(e,t,n){return p2(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function zet(e){return $0([cet(),yet(),Oet(e),Met(),Iet()])}var Bet={};function Vet(e){let t=this,n=e||Bet,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(zet(n)),a.push(iet()),o.push(aet(n))}function Het(e){return typeof e==`string`&&/^(https?:|mailto:)/i.test(e.trim())}function Uet({href:e,children:t,...n}){return Het(e)?(0,I.jsx)(`a`,{...n,href:e,target:`_blank`,rel:`noopener noreferrer`,children:t}):(0,I.jsx)(`span`,{...n,children:t})}var Wet=(0,N.memo)(function(){return(0,I.jsx)(A7e,{remarkPlugins:[Vet],className:`oc-md`,components:{a:Uet}})});function C3(e){return(0,I.jsx)(PT,{"data-slot":`select`,...e})}function w3(e){return(0,I.jsx)(RT,{"data-slot":`select-value`,...e})}function T3({className:e,size:t=`default`,children:n,...r}){return(0,I.jsxs)(IT,{"data-slot":`select-trigger`,"data-size":t,className:G$(`flex w-fit items-center justify-between gap-2 rounded-lg border border-input bg-background px-2.5 py-1 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-8 data-[size=sm]:h-7 data-[placeholder]:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...r,children:[n,(0,I.jsx)(zT,{asChild:!0,children:(0,I.jsx)(dm,{className:`size-4 opacity-50`})})]})}function E3({className:e,children:t,position:n=`popper`,...r}){return(0,I.jsx)(VT,{children:(0,I.jsxs)(UT,{"data-slot":`select-content`,className:G$(`relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] origin-[--radix-select-content-transform-origin] overflow-y-auto overflow-x-hidden rounded-lg border border-border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95`,n===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1`,e),position:n,...r,children:[(0,I.jsx)(uE,{className:`flex cursor-default items-center justify-center py-1`,children:(0,I.jsx)(pm,{className:`size-4`})}),(0,I.jsx)($T,{className:G$(`p-1`,n===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]`),children:t}),(0,I.jsx)(fE,{className:`flex cursor-default items-center justify-center py-1`,children:(0,I.jsx)(dm,{className:`size-4`})})]})})}function Q({className:e,children:t,...n}){return(0,I.jsxs)(iE,{"data-slot":`select-item`,className:G$(`relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),...n,children:[(0,I.jsx)(`span`,{className:`absolute right-2 flex size-3.5 items-center justify-center`,children:(0,I.jsx)(cE,{children:(0,I.jsx)(um,{className:`size-4`})})}),(0,I.jsx)(oE,{children:t})]})}var D3=1e3;function Get(){return[{id:`incorrect`,label:KEe()},{id:`incoherence`,label:YEe()},{id:`altered_words`,label:QEe()},{id:`formatting`,label:tDe()},{id:`latency`,label:iDe()},{id:`api_error`,label:sDe()},{id:`other`,label:mQ()}]}function Ket(){return[{id:`altered_words`,label:fDe()},{id:`formatting`,label:hDe()},{id:`other`,label:mQ()}]}function qet(e){return e===`user`?Ket():Get()}var Jet=[{name:`Grammarly`,selector:`grammarly-desktop-integration, grammarly-extension, [data-grammarly-shadow-root]`},{name:`LanguageTool`,selector:`[data-lt-installed], .lt-toolbar`},{name:`DeepL`,selector:`deepl-inline-translate, .deepl-translator`},{name:`ProWritingAad`,selector:`pwa-shadow-host, .pwa-tag`}];function Yet(){let e=[];try{e=Array.from(navigator.plugins??[]).map(e=>e.name).slice(0,40)}catch{e=[]}let t=[];for(let{name:e,selector:n}of Jet)try{document.querySelector(n)&&t.push(e)}catch{}return{plugins:e,extensionsDetected:t}}var O3=N.createContext(null);function Xet(){let e=N.useContext(O3);if(!e)throw Error(`useFeedback must be used within <FeedbackProvider>`);return e}function Zet({children:e}){let t=F(V.feedback.submitFeedback),[n,r]=(0,N.useState)(null),[i,a]=(0,N.useState)(``),[o,s]=(0,N.useState)(``),[c,l]=(0,N.useState)(!1),[u,d]=(0,N.useState)(null),f=N.useCallback(e=>{a(``),s(``),l(!1),d(null),r(e)},[]);function p(e){e||r(null)}async function m(){if(!(!n||!i||c)){l(!0);try{d((await t({chatId:n.chatId,messageId:n.messageId,category:i,comment:o.trim()||void 0,client:{displayedText:n.displayedText,sourceWasOpen:n.sourceWasOpen,userAgent:navigator.userAgent,language:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,theme:document.documentElement.classList.contains(`dark`)?`dark`:`light`,...Yet()}})).displayedMatchesStored)}catch{l(!1)}}}let h=u!==null,g=n?.role===`user`;return(0,I.jsxs)(O3.Provider,{value:f,children:[e,(0,I.jsx)(h1,{open:n!==null,onOpenChange:p,children:n?(0,I.jsxs)(g1,{className:`sm:max-w-md`,children:[(0,I.jsxs)(_1,{children:[(0,I.jsx)(y1,{children:vDe()}),(0,I.jsx)(b1,{children:h?xDe():g?wDe():DDe()})]}),h?(0,I.jsx)(`div`,{className:`oc-feedback__result`,role:`status`,children:n.sourceWasOpen?u===!0?(0,I.jsx)(`p`,{className:`oc-feedback__fidelity is-ok`,children:ADe()}):(0,I.jsx)(`p`,{className:`oc-feedback__fidelity is-warn`,children:NDe()}):(0,I.jsx)(`p`,{className:`oc-feedback__fidelity`,children:IDe()})}):(0,I.jsxs)(`div`,{className:`oc-feedback__form`,children:[(0,I.jsx)(`label`,{className:`oc-feedback__label`,children:zDe()}),(0,I.jsxs)(C3,{value:i,onValueChange:a,children:[(0,I.jsx)(T3,{children:(0,I.jsx)(w3,{placeholder:HDe()})}),(0,I.jsx)(E3,{children:qet(n.role).map(e=>(0,I.jsx)(Q,{value:e.id,children:e.label},e.id))})]}),(0,I.jsx)(`label`,{className:`oc-feedback__label`,htmlFor:`oc-feedback-comment`,children:GDe()}),(0,I.jsx)(`textarea`,{id:`oc-feedback-comment`,className:`oc-feedback__textarea`,placeholder:JDe(),value:o,maxLength:D3,onChange:e=>s(e.target.value.slice(0,D3)),rows:4}),(0,I.jsxs)(`div`,{className:`oc-feedback__count`,children:[o.length,`/`,D3]})]}),(0,I.jsx)(v1,{children:h?(0,I.jsx)(X,{onClick:()=>p(!1),children:ZDe()}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(X,{variant:`outline`,onClick:()=>p(!1),children:eOe()}),(0,I.jsx)(X,{onClick:()=>void m(),disabled:!i||c,children:c?rOe():oOe()})]})})]}):null})]})}function Qet(e,t){let n=e.closest(`.oc-msg`)?.querySelector(`.oc-msg__source-pre`),r=n?.textContent;return n&&r!=null&&r!==`(aucun texte)`?{displayedText:r,sourceWasOpen:!0}:{displayedText:t,sourceWasOpen:!1}}function k3(){let e=Xet(),t=gy(e=>e.metadata?.custom?.messageId),n=gy(e=>e.metadata?.custom?.chatId),r=gy(e=>e.role),i=gy(e=>e.metadata?.custom?.rawText??``),a=P(V.feedback.myReportedMessageIds,n?{chatId:n}:`skip`);if(!t||!n)return null;let o=(a??[]).includes(t);function s(a){e({chatId:n,messageId:t,role:r,...Qet(a.currentTarget,i)})}return(0,I.jsx)(`button`,{type:`button`,className:`oc-iconbtn${o?` is-on`:``}`,title:o?lOe():fOe(),"aria-label":hOe(),onClick:s,children:(0,I.jsx)(Oee,{size:15,"aria-hidden":!0})})}function A3(e,t){return e!=null&&e[t]!==void 0}var $et=[`inherit`,`fast`,`standard`];function ett(e){return e==null||e.fastMode===void 0?`inherit`:e.fastMode?`fast`:`standard`}function ttt(e){return e===`inherit`?nZe():e===`fast`?QQ():$Q()}function ntt(e){return e===`inherit`?null:e===`fast`}function j3(e){return e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}function M3(e){return e.length?e[0].toUpperCase()+e.slice(1):e}var rtt={off:`Off`,minimal:`Min`,low:`Low`,medium:`Med`,high:`High`,xhigh:`XHigh`};function itt(e,t){return rtt[e]??t}function N3(e,t){return e==null||!t||t<=0?null:Math.round(e/t*100)}function att(e,t){let n=N3(e,t);return n===null?null:NZe({pct:n,used:j3(e),total:j3(t)})}function ott(e){return zZe({level:e??`full`})}function stt(e,t){let n=typeof e==`number`,r=typeof t==`number`;return n&&r?JZe({cost:e.toFixed(2),tokens:j3(t)}):n?ZZe({cost:e.toFixed(2)}):r?eQe({tokens:j3(t)}):null}function ctt(e){let t=e.filter(e=>typeof e==`string`&&e.length>0);return t.length>0?t.join(` · `):null}var ltt=new Set([`knobThinkingLevel`,`knobModel`,`knobFastMode`,`knobUnset`,`agentFiles`,`sessionCompact`,`configDefaults`]),utt=new Set([`knobThinkingLevel`,`knobModel`]);function P3(e,t){return ltt.has(t)?e==null?utt.has(t):e[t]===!0:!1}function dtt(e,t){return{model:e(`knobModel`)&&t.hasModels,thinking:e(`knobThinkingLevel`)&&t.hasLevels,speed:e(`knobFastMode`),reset:e(`knobUnset`)}}function F3(e,t){return e===void 0?`loading`:e===null?{blocked:!P3(null,t),gatewayVersion:null}:{blocked:!P3(e.capabilities,t),gatewayVersion:e.gatewayVersion}}function I3(e){let t=P(V.compat.forChat,e===null?`skip`:{chatId:e}),n=t==null?null:t.capabilities;return{can:(0,N.useCallback)(e=>P3(n,e),[n]),loading:t===void 0,gatewayVersion:t?.gatewayVersion??null}}function ftt(e){let t=F(V.chats.setSessionKnob),[n,r]=(0,N.useState)(null),[i,a]=(0,N.useState)(null);return{apply:(0,N.useCallback)(async(n,i)=>{r(n),a(null);let o={chatId:e};n===`fastMode`?o.fastMode=i:o[n]=i;try{await t(o)}catch{a({field:n,value:i})}finally{r(null)}},[e,t]),pending:n,error:i}}function L3({label:e,overridden:t,onReset:n,pending:r,error:i,onRetry:a,help:o,children:s,resettable:c=!0}){return(0,I.jsxs)(`div`,{className:`oc-spanel__row${t?` is-overridden`:``}`,children:[(0,I.jsxs)(`div`,{className:`oc-spanel__rowhead`,children:[(0,I.jsx)(`span`,{className:`oc-spanel__label`,children:e}),r?(0,I.jsx)(Cm,{size:13,className:`oc-spanel__spin`,"aria-label":XQ()}):t?c?(0,I.jsx)(`button`,{type:`button`,className:`oc-spanel__reset`,title:YQ(),"aria-label":YQ(),onClick:n,children:(0,I.jsx)(Fm,{size:12,"aria-hidden":!0})}):null:(0,I.jsx)(`span`,{className:`oc-spanel__badge`,children:RXe()})]}),(0,I.jsx)(`div`,{className:`oc-spanel__ctl`,children:s}),o?(0,I.jsx)(`p`,{className:`oc-spanel__help`,children:o}):null,i?(0,I.jsxs)(`p`,{className:`oc-spanel__error`,role:`alert`,children:[GXe(),(0,I.jsx)(`button`,{type:`button`,className:`oc-spanel__retry`,onClick:a,children:ZQ()})]}):null]})}function R3({options:e,value:t,onChange:n,disabled:r}){return(0,I.jsx)(`div`,{className:`oc-spanel__seg`,role:`group`,children:e.map(e=>(0,I.jsx)(`button`,{type:`button`,className:`oc-spanel__seg-btn${t===e.id?` is-active`:``}`,"aria-pressed":t===e.id,title:e.title??e.label,"aria-label":e.title??e.label,disabled:r,onClick:()=>{e.id!==t&&n(e.id)},children:e.label},e.id))})}function ptt({options:e,value:t,onChange:n,disabled:r,ariaLabel:i}){let a=t===null||e.some(e=>e.id===t);return(0,I.jsxs)(`select`,{className:`oc-spanel__select`,value:t??``,disabled:r,"aria-label":i,onChange:e=>{e.target.value&&e.target.value!==t&&n(e.target.value)},children:[t===null?(0,I.jsx)(`option`,{value:``,disabled:!0,hidden:!0}):null,a?null:(0,I.jsx)(`option`,{value:t,children:t}),e.map(e=>(0,I.jsx)(`option`,{value:e.id,children:e.label},e.id))]})}function z3({chatId:e,sm:t,settings:n}){let{apply:r,pending:i,error:a}=ftt(e),{can:o}=I3(e),s=i!==null,c=(0,N.useCallback)(()=>{a&&r(a.field,a.value)},[r,a]),l=t.thinkingLevels??[],u=t.availableModels??[],d=ett(n),f=dtt(o,{hasModels:u.length>0,hasLevels:l.length>0});return(0,I.jsxs)(I.Fragment,{children:[f.model?(0,I.jsx)(L3,{label:gU(),overridden:A3(n,`model`),onReset:()=>void r(`model`,null),pending:i===`model`,error:a?.field===`model`,onRetry:c,resettable:f.reset,children:u.length<=4?(0,I.jsx)(R3,{options:u,value:t.model??null,onChange:e=>void r(`model`,e),disabled:s}):(0,I.jsx)(ptt,{options:u,value:t.model??null,onChange:e=>void r(`model`,e),disabled:s,ariaLabel:gU()})}):null,f.thinking?(0,I.jsx)(L3,{label:XXe(),overridden:A3(n,`thinkingLevel`),onReset:()=>void r(`thinkingLevel`,null),pending:i===`thinkingLevel`,error:a?.field===`thinkingLevel`,onRetry:c,resettable:f.reset,children:(0,I.jsx)(R3,{options:l.map(e=>({id:e.id,label:itt(e.id,M3(e.label)),title:M3(e.label)})),value:t.thinkingLevel??null,onChange:e=>void r(`thinkingLevel`,e),disabled:s})}):null,f.speed?(0,I.jsx)(L3,{label:$Xe(),overridden:A3(n,`fastMode`),onReset:()=>void r(`fastMode`,null),pending:i===`fastMode`,error:a?.field===`fastMode`,onRetry:c,resettable:f.reset,children:(0,I.jsx)(R3,{options:$et.map(e=>({id:e,label:ttt(e)})),value:d,onChange:e=>void r(`fastMode`,ntt(e)),disabled:s})}):null]})}function B3({label:e,state:t,destructive:n,onClick:r,onRetry:i}){return(0,I.jsxs)(`div`,{className:`oc-spanel__action`,children:[(0,I.jsxs)(X,{variant:n?`destructive`:`outline`,size:`sm`,disabled:t===`pending`,onClick:r,children:[t===`pending`?(0,I.jsx)(Cm,{className:`oc-spanel__spin`,"aria-hidden":!0}):null,e]}),t===`done`?(0,I.jsx)(`p`,{className:`oc-spanel__action-note`,role:`status`,children:DQe()}):null,t===`error`?(0,I.jsxs)(`p`,{className:`oc-spanel__error`,role:`alert`,children:[AQe(),(0,I.jsx)(`button`,{type:`button`,className:`oc-spanel__retry`,onClick:i,children:ZQ()})]}):null]})}function mtt({chatId:e,open:t,onOpenChange:n}){let r=P(V.messages.getSessionMeta,t?{chatId:e}:`skip`),i=P(V.agents.getChatAgent,t?{chatId:e}:`skip`),a=r?.sessionMeta??null,o=r?.sessionSettings??null,{can:s}=I3(t?e:null),c=C1(),l=$n(V.agentFiles.compactSession),u=F(V.chats.resetSession),[d,f]=(0,N.useState)(`idle`),[p,m]=(0,N.useState)(`idle`);async function h(){f(`pending`);try{await l({chatId:e}),f(`done`)}catch{f(`error`)}}async function g(){m(`pending`);try{await u({chatId:e}),m(`done`)}catch{m(`error`)}}async function _(){await c({title:oQe(),description:lQe(),confirmLabel:fQe(),cancelLabel:pW()})&&await h()}async function v(){await c({title:vQe(),description:xQe(),confirmLabel:wQe(),cancelLabel:pW(),destructive:!0})&&await g()}let y=N3(a?.totalTokens,a?.contextTokens),b=y==null?``:y>=90?`is-critical`:y>=75?`is-warn`:`is-ok`,x=att(a?.totalTokens,a?.contextTokens),S=stt(a?.estimatedCostUsd,a?.totalTokens),C=i?.agent??null,w=ctt([C?C.displayName??C.agentId:null,a?.agentRuntime,a?.model]);return(0,I.jsx)(K1,{open:t,onOpenChange:n,children:(0,I.jsxs)(q1,{side:`right`,className:`oc-spanel`,children:[(0,I.jsxs)(J1,{children:[(0,I.jsx)(X1,{children:fZe()}),(0,I.jsx)(Z1,{children:hZe()})]}),(0,I.jsx)(`div`,{className:`oc-spanel__body`,children:r===void 0?(0,I.jsx)(`p`,{className:`oc-spanel__loading`,children:KO()}):(0,I.jsxs)(I.Fragment,{children:[a?(0,I.jsxs)(`section`,{children:[(0,I.jsx)(`h3`,{className:`oc-spanel__cat`,children:vZe()}),(0,I.jsx)(z3,{chatId:e,sm:a,settings:o})]}):null,(0,I.jsxs)(`section`,{children:[(0,I.jsx)(`h3`,{className:`oc-spanel__cat`,children:xZe()}),x!==null&&y!==null?(0,I.jsxs)(`div`,{className:`oc-spanel__static`,children:[(0,I.jsx)(`span`,{className:`oc-spanel__label`,children:AZe()}),(0,I.jsxs)(`span`,{className:`oc-meter oc-spanel__meter ${b}`,children:[(0,I.jsx)(`span`,{className:`oc-meter__track`,children:(0,I.jsx)(`span`,{className:`oc-meter__fill`,style:{width:`${Math.min(y,100)}%`}})}),(0,I.jsx)(`span`,{className:`oc-meter__label`,children:x})]})]}):null,(0,I.jsxs)(`div`,{className:`oc-spanel__static`,children:[(0,I.jsx)(`span`,{className:`oc-spanel__label`,children:IZe()}),(0,I.jsx)(`span`,{className:`oc-spanel__value`,children:ott(a?.verboseLevel)}),(0,I.jsx)(`p`,{className:`oc-spanel__help`,children:HZe()})]}),S===null?null:(0,I.jsxs)(`div`,{className:`oc-spanel__static`,children:[(0,I.jsx)(`span`,{className:`oc-spanel__label`,children:GZe()}),(0,I.jsx)(`span`,{className:`oc-spanel__value`,children:S})]})]}),w===null?null:(0,I.jsxs)(`section`,{children:[(0,I.jsx)(`h3`,{className:`oc-spanel__cat`,children:wZe()}),(0,I.jsx)(`div`,{className:`oc-spanel__static`,children:(0,I.jsx)(`span`,{className:`oc-spanel__value`,children:w})})]})]})}),(0,I.jsxs)(Y1,{className:`oc-spanel__actions`,children:[(0,I.jsx)(`h3`,{className:`oc-spanel__cat`,children:DZe()}),s(`sessionCompact`)?(0,I.jsx)(B3,{label:rQe(),state:d,onClick:()=>void _(),onRetry:()=>void h()}):null,(0,I.jsx)(B3,{label:hQe(),state:p,destructive:!0,onClick:()=>void v(),onRetry:()=>void g()})]})]})})}var V3={showSource:!0,showReport:!0,copyAssistant:!0,copyUser:!0,showDelete:!0,showTools:!1,voiceInput:!1},H3=(0,N.createContext)(V3);function U3(){return(0,N.useContext)(H3)}var W3=(0,N.createContext)(null),G3=(0,N.createContext)(null);function K3({className:e}){let t=i$();return(0,I.jsx)(`div`,{className:e,"aria-hidden":!0,children:t.logoUrl?(0,I.jsx)(`img`,{className:`oc-avatar__img`,src:t.logoUrl,alt:``}):t.isDefault?(0,I.jsx)(MO,{className:`oc-avatar__mark`}):t.initials})}function q3({chatId:e,focusMessageId:t}){let{runtime:n,turnGate:r,queueSend:i}=T4e({chatId:e}),a=P(V.me.getMe,{host:xO}),o=a?.ui?.effective??V3,s=o.showTools,c=wO(a?.resolvedThemeMode),l=a?.resolvedChartBrand,u=P(V.agents.getChatAgent,e?{chatId:e}:`skip`),d=u?.multiAgent?u.agent:null,f=(0,N.useMemo)(()=>{let e=l?.label??`Atrium`;return{label:e,logoUrl:jO(l,c),isDefault:l?.isDefault??!0,initials:rfe(e),agentName:d?.displayName??d?.agentId??null,agentEmoji:d?.emoji??null}},[l,c,d]),p=F(V.me.setUiPref).withOptimisticUpdate(O1),m=P(V.messages.getSessionMeta,e?{chatId:e}:`skip`),h=e!==null&&m===null,g=W1(),{width:_,startResize:v}=G1({storageKey:`oc.sources.width`,defaultWidth:380,min:300,max:680,edge:`right`}),[y,b]=(0,N.useState)(null);(0,N.useEffect)(()=>{b(null)},[e]);let x=(0,N.useMemo)(()=>({activeMessageId:y,openFor:e=>b(e),close:()=>b(null)}),[y]),S=y!==null;return(0,I.jsx)(gie,{runtime:n,children:(0,I.jsx)(W3.Provider,{value:r,children:(0,I.jsx)(G3.Provider,{value:i,children:(0,I.jsx)(H3.Provider,{value:o,children:(0,I.jsx)(r$.Provider,{value:f,children:(0,I.jsxs)(L1.Provider,{value:x,children:[(0,I.jsxs)(`div`,{className:`oc-chat`,children:[(0,I.jsx)(`div`,{className:`oc-chat__convo`,children:e?h?(0,I.jsx)(htt,{}):(0,I.jsx)(_tt,{chatId:e,showTools:s,onToggleTools:()=>void p({key:`showTools`,value:!s}),focusMessageId:t??null}):(0,I.jsx)(`div`,{className:`oc-empty`,children:TH()})}),S&&!g?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`div`,{className:`oc-sources-resizer`,onPointerDown:v,role:`separator`,"aria-orientation":`vertical`,"aria-label":gK()}),(0,I.jsx)(`aside`,{className:`oc-sources-col`,style:{width:_,flex:`0 0 ${_}px`},children:(0,I.jsx)(R1,{messageId:y,onClose:x.close})})]}):null]}),S&&g?(0,I.jsx)(K1,{open:!0,onOpenChange:e=>{e||x.close()},children:(0,I.jsx)(q1,{side:`right`,className:`oc-sources-panel-sheet`,children:(0,I.jsx)(R1,{messageId:y,onClose:x.close})})}):null]})})})})})})}function htt(){let e=ss();return(0,I.jsxs)(`div`,{className:`oc-notfound`,role:`status`,children:[(0,I.jsx)(`div`,{className:`oc-notfound__icon`,"aria-hidden":!0,children:(0,I.jsx)(Im,{size:28})}),(0,I.jsx)(`h2`,{className:`oc-notfound__title`,children:OH()}),(0,I.jsx)(`p`,{className:`oc-notfound__body`,children:jH()}),(0,I.jsxs)(`button`,{type:`button`,className:`oc-notfound__cta`,onClick:()=>void e({to:`/`}),children:[(0,I.jsx)(Pm,{size:16,"aria-hidden":!0}),PH()]})]})}function gtt(e,t){(0,N.useEffect)(()=>{if(!t)return;let e=!1,n=0,r=0,i=()=>{if(e)return;let a=document.querySelector(`[data-message-id="${CSS.escape(t)}"]`);if(a){a.scrollIntoView({block:`center`,behavior:`smooth`}),a.classList.remove(`oc-msg--highlight`),a.offsetWidth,a.classList.add(`oc-msg--highlight`),window.setTimeout(()=>a.classList.remove(`oc-msg--highlight`),2400);return}n++<40&&(r=window.setTimeout(i,150))};return r=window.setTimeout(i,0),()=>{e=!0,window.clearTimeout(r)}},[e,t])}function _tt({chatId:e,showTools:t,onToggleTools:n,focusMessageId:r}){let i=P(V.bridgeHealth.getBridgeAvailability,{chatId:e}),a=i&&!i.available?i:null,o=P(V.agents.getChatAgent,{chatId:e})?.readOnly===!0;return gtt(e,r),(0,I.jsxs)(bO.Root,{className:`oc-thread`,children:[(0,I.jsx)(Stt,{chatId:e}),(0,I.jsx)(btt,{chatId:e}),(0,I.jsxs)(bO.Viewport,{className:`oc-thread__viewport`,children:[(0,I.jsx)(bO.Empty,{children:(0,I.jsx)(xtt,{})}),(0,I.jsx)(bO.Messages,{components:{UserMessage:ktt,AssistantMessage:Att,SystemMessage:jtt}})]}),(0,I.jsx)(bO.If,{empty:!1,children:(0,I.jsxs)(bO.ScrollToBottom,{className:`oc-scrolldown`,children:[(0,I.jsx)(Dtt,{}),(0,I.jsx)(`span`,{children:LH()})]})}),o?(0,I.jsx)(ytt,{}):a?(0,I.jsx)(vtt,{}):null,(0,I.jsx)(Ftt,{showTools:t,onToggleTools:n,unavailable:a!==null||o})]})}function vtt(){return(0,I.jsxs)(`div`,{className:`oc-chat-banner oc-chat-banner--error`,role:`status`,children:[(0,I.jsx)(hm,{size:16,"aria-hidden":!0}),(0,I.jsx)(`span`,{children:BH()})]})}function ytt(){return(0,I.jsxs)(`div`,{className:`oc-chat-banner oc-chat-banner--error`,role:`status`,children:[(0,I.jsx)(wm,{size:16,"aria-hidden":!0}),(0,I.jsx)(`span`,{children:UH()})]})}function btt({chatId:e}){let t=P(V.messages.listByChat,{chatId:e}),[n,r]=(0,N.useState)(``),i=(0,N.useRef)(null);return(0,N.useEffect)(()=>{i.current=null,r(``)},[e]),(0,N.useEffect)(()=>{if(!t)return;let e;for(let n of t)n.role===`assistant`&&(e=n);if(!(!e||e.status!==`complete`)){if(i.current===null){i.current=e._id;return}i.current!==e._id&&(i.current=e._id,r(e=>e===KH()?`${KH()} `:KH()))}},[t]),(0,I.jsx)(`div`,{"aria-live":`polite`,"aria-atomic":`true`,className:`oc-sr-only`,children:n})}function xtt(){return(0,I.jsxs)(`div`,{className:`oc-emptystate`,children:[(0,I.jsx)(K3,{className:`oc-emptystate__avatar`}),(0,I.jsx)(`h2`,{className:`oc-emptystate__title`,children:YH()})]})}function J3({sm:e,detail:t=!0}){let n=e.totalTokens!=null&&e.contextTokens&&e.contextTokens>0?Math.round(e.totalTokens/e.contextTokens*100):null;return n==null?null:(0,I.jsxs)(`span`,{className:`oc-meter ${n>=90?`is-critical`:n>=75?`is-warn`:`is-ok`}`,title:PU({pct:n,used:j3(e.totalTokens),total:j3(e.contextTokens)}),children:[(0,I.jsx)(`span`,{className:`oc-meter__track`,children:(0,I.jsx)(`span`,{className:`oc-meter__fill`,style:{width:`${Math.min(n,100)}%`}})}),(0,I.jsxs)(`span`,{className:`oc-meter__label`,children:[n,`%`,t?(0,I.jsxs)(`span`,{className:`oc-meter__detail`,children:[` · `,j3(e.totalTokens),`/`,j3(e.contextTokens)]}):null]})]})}function Stt({chatId:e}){let t=P(V.messages.getSessionMeta,{chatId:e}),n=P(V.agents.getChatAgent,{chatId:e}),r=t?.sessionMeta??null,i=t?.sessionSettings??null,a=n?.multiAgent?n.agent:null,o=U3(),[s,c]=(0,N.useState)(!1),l=(0,N.useRef)(null),u=(0,N.useRef)(null),d=(0,N.useRef)(null),[f,p]=(0,N.useState)(!1),m=!A3(i,`thinkingLevel`),h=(s,l)=>(0,I.jsxs)(I.Fragment,{children:[a?(0,I.jsxs)(`span`,{className:`oc-chip oc-chip--agent${a.state===`ok`?``:` is-warn`}`,title:tU({name:a.displayName??a.agentId})+(a.inheritedDefault?iU():``)+(a.state===`deleted`?sU():a.state===`stale`?uU():``),children:[a.emoji?(0,I.jsx)(`span`,{className:`oc-chip__emoji`,"aria-hidden":!0,children:a.emoji}):(0,I.jsx)(lm,{size:13,"aria-hidden":!0}),(0,I.jsx)(`span`,{className:`oc-chip__label`,children:a.displayName??a.agentId}),o.showTools&&n?.multiInstance?(0,I.jsxs)(`span`,{className:`oc-chip__instance`,title:pU({instance:a.instanceName}),children:[(0,I.jsx)(Lm,{size:11,"aria-hidden":!0}),a.instanceName]}):null]}):null,o.showTools&&!s&&r?.model?(0,I.jsxs)(`span`,{className:`oc-chip oc-chip--info`,title:r.modelProvider?yU({provider:r.modelProvider}):gU(),children:[(0,I.jsx)(Ttt,{}),(0,I.jsx)(`span`,{className:`oc-chip__label`,children:r.model})]}):null,o.showTools&&!s&&r?.thinkingLevel?(0,I.jsxs)(`span`,{className:`oc-chip oc-chip--info`,title:m?SU():TU(),children:[(0,I.jsx)(Ett,{}),(0,I.jsxs)(`span`,{className:`oc-chip__label`,children:[OU(),`\xA0: `,M3(r.thinkingLevel)]}),m?(0,I.jsx)(`span`,{className:`oc-chip__hint`,children:jU()}):null]}):null,o.showTools&&r?(0,I.jsx)(J3,{sm:r,detail:!s}):null,(0,I.jsx)(Ctt,{chatId:e,title:t?.title??null,compact:s,ghost:l}),r?(0,I.jsx)(wtt,{chatId:e,sm:r,settings:i,onOpenPanel:()=>c(!0),compact:s,ghost:l}):null]});return(0,N.useLayoutEffect)(()=>{let e=l.current;if(!e)return;let t=()=>{let t=d.current?.offsetWidth??0;if(t===0)return;let n=Math.min(u.current?.scrollWidth??0,360),r=e.clientWidth-n-16<t;p(e=>e===r?e:r)};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[[UU(),tW(),r?.model??``,r?.thinkingLevel??``,a?.displayName??a?.agentId??``,n?.multiInstance?a?.instanceName??``:``,t?.title??``,o.showTools?`1`:`0`].join(`|`)]),(0,I.jsxs)(`header`,{className:`oc-chathead`,ref:l,children:[(0,I.jsx)(`div`,{className:`oc-chathead__title`,title:t?.title??void 0,ref:u,children:t?.title||QH()}),(0,I.jsx)(`div`,{className:`oc-chathead__meta`,children:h(f,!1)}),(0,I.jsx)(`div`,{className:`oc-chathead-ghost`,"aria-hidden":!0,ref:d,children:h(!1,!0)}),(0,I.jsx)(mtt,{chatId:e,open:s,onOpenChange:c})]})}function Y3(e,t,n){let r=new Blob([e],{type:`${n};charset=utf-8`}),i=URL.createObjectURL(r),a=document.createElement(`a`);a.href=i,a.download=t,document.body.appendChild(a),a.click(),a.remove(),URL.revokeObjectURL(i)}function Ctt({chatId:e,title:t,compact:n=!1,ghost:r=!1}){let i=Zn();async function a(n){let r=await i.query(V.messages.listByChat,{chatId:e}),a=r.map(e=>({role:e.role,text:e.text,createdAt:e.updatedAt??e._creationTime,parts:e.parts.map(e=>({kind:e.kind,filename:`filename`in e?e.filename:void 0,name:`name`in e?e.name:void 0}))})),o=r.length>=200,s={title:t??void 0,truncated:o,exportedAt:Date.now()},c=s2e(t);n===`md`?Y3(a2e(a,s),`${c}.md`,`text/markdown`):Y3(o2e(a,s),`${c}.json`,`application/json`)}let o=(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(vm,{size:13,"aria-hidden":!0}),n?null:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`span`,{className:`oc-chip__label`,children:UU()}),(0,I.jsx)(dm,{size:13,className:`oc-chip__chev`,"aria-hidden":!0})]})]});return r?(0,I.jsx)(`span`,{className:`oc-chip oc-chip--btn`,children:o}):(0,I.jsxs)(K$,{children:[(0,I.jsx)(q$,{asChild:!0,children:(0,I.jsx)(`button`,{type:`button`,className:`oc-chip oc-chip--btn`,title:BU(),children:o})}),(0,I.jsxs)(J$,{align:`end`,className:`w-44`,children:[(0,I.jsx)(X$,{children:UU()}),(0,I.jsx)(Y$,{onClick:()=>void a(`md`),children:KU()}),(0,I.jsx)(Y$,{onClick:()=>void a(`json`),children:YU()})]})]})}function wtt({chatId:e,sm:t,settings:n,onOpenPanel:r,compact:i=!1,ghost:a=!1}){let[o,s]=(0,N.useState)(!1),c=(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(zm,{size:13,"aria-hidden":!0}),i?null:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`span`,{className:`oc-chip__label`,children:tW()}),(0,I.jsx)(dm,{size:13,className:`oc-chip__chev`,"aria-hidden":!0})]})]});return a?(0,I.jsx)(`span`,{className:`oc-chip oc-chip--btn`,children:c}):(0,I.jsxs)($$,{open:o,onOpenChange:s,children:[(0,I.jsx)(e1,{asChild:!0,children:(0,I.jsx)(`button`,{type:`button`,className:`oc-chip oc-chip--btn`,title:QU(),children:c})}),(0,I.jsxs)(t1,{align:`end`,className:`oc-spanel-pop w-80 p-2`,children:[t.totalTokens!=null&&t.contextTokens?(0,I.jsxs)(`div`,{className:`oc-spanel-pop__usage`,children:[(0,I.jsx)(`span`,{className:`oc-spanel-pop__usage-label`,children:LU()}),(0,I.jsx)(J3,{sm:t})]}):null,(0,I.jsx)(z3,{chatId:e,sm:t,settings:n}),(0,I.jsxs)(`button`,{type:`button`,className:`oc-spanel-pop__all`,onClick:()=>{s(!1),r()},children:[(0,I.jsx)(zm,{size:13,"aria-hidden":!0}),lZe(),(0,I.jsx)(fm,{size:13,"aria-hidden":!0})]})]})]})}function Ttt(){return(0,I.jsxs)(`svg`,{className:`oc-chip__icon`,viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,I.jsx)(`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`}),(0,I.jsx)(`rect`,{x:`9`,y:`9`,width:`6`,height:`6`}),(0,I.jsx)(`path`,{d:`M9 1v3M15 1v3M9 20v3M15 20v3M20 9h3M20 14h3M1 9h3M1 14h3`})]})}function Ett(){return(0,I.jsxs)(`svg`,{className:`oc-chip__icon`,viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,I.jsx)(`path`,{d:`M12 5a3 3 0 1 0-5.997.142 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z`}),(0,I.jsx)(`path`,{d:`M12 5a3 3 0 1 1 5.997.142 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z`})]})}function X3({children:e}){return(0,I.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`16`,height:`16`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:e})}function Dtt(){return(0,I.jsx)(X3,{children:(0,I.jsx)(`path`,{d:`M12 5v14M19 12l-7 7-7-7`})})}function Z3(){return(0,I.jsxs)(X3,{children:[(0,I.jsx)(`rect`,{x:`9`,y:`9`,width:`13`,height:`13`,rx:`2`}),(0,I.jsx)(`path`,{d:`M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1`})]})}function Q3(){return(0,I.jsx)(X3,{children:(0,I.jsx)(`path`,{d:`M20 6 9 17l-5-5`})})}var $3={File:r3e},Ott={...$3,Text:Wet};function e6({kind:e}){let t=gy(e=>e.metadata?.custom?.messageId),n=F(V.messages.deleteMessage).withOptimisticUpdate(E4e),r=C1(),i=D1(),a=(0,N.useContext)(W3),[o,s]=(0,N.useState)(!1);if(!t)return null;async function c(){if(await r(e===`assistant`?{title:iW(),description:sW(),confirmLabel:uW(),cancelLabel:pW(),destructive:!0}:{title:gW(),description:yW(),confirmLabel:SW(),cancelLabel:pW(),destructive:!0})){s(!0),e===`assistant`&&a?.begin();try{await n({messageId:t})}catch(t){e===`assistant`&&a?.cancel(),i.error(PW(),t)}finally{s(!1)}}}return(0,I.jsx)(`button`,{type:`button`,className:`oc-iconbtn oc-iconbtn--danger`,title:e===`assistant`?TW():OW(),"aria-label":jW(),"aria-busy":o,disabled:o,onClick:()=>void c(),children:o?(0,I.jsx)(Cm,{size:15,className:`oc-iconbtn__spin`,"aria-hidden":!0}):(0,I.jsx)(Vm,{size:15,"aria-hidden":!0})})}function t6(){let e=gy(e=>e.metadata?.custom?.rawText??``),[t,n]=(0,N.useState)(!1),r=[...e].length;return(0,I.jsxs)(`div`,{className:`oc-msg__source`,children:[(0,I.jsxs)(`div`,{className:`oc-msg__source-head`,children:[(0,I.jsx)(`span`,{className:`oc-msg__source-label`,children:r>1?SK({count:r}):yK({count:r})}),(0,I.jsx)(`button`,{type:`button`,className:`oc-iconbtn`,title:TK(),"aria-label":TK(),onClick:()=>{navigator.clipboard?.writeText(e).then(()=>{n(!0),window.setTimeout(()=>n(!1),1200)})},children:t?(0,I.jsx)(Q3,{}):(0,I.jsx)(Z3,{})})]}),(0,I.jsx)(`pre`,{className:`oc-msg__source-pre`,children:e.length>0?e:OK()})]})}function n6({active:e,onToggle:t}){return(0,I.jsx)(`button`,{type:`button`,className:`oc-iconbtn${e?` is-on`:``}`,onClick:t,"aria-pressed":e,title:e?jK():PK(),"aria-label":LK(),children:(0,I.jsx)(Tee,{size:15,"aria-hidden":!0})})}function ktt(){let[e,t]=(0,N.useState)(!1),n=U3(),r=gy(e=>e.id.startsWith(`optimistic-`)),i=gy(e=>e.id);return(0,I.jsx)(lO.Root,{className:`oc-msg oc-msg--user${r?` is-sending`:``}`,"data-message-id":i,children:(0,I.jsxs)(`div`,{className:`oc-msg__col oc-msg__col--user`,children:[(0,I.jsx)(`div`,{className:`oc-msg__bubble`,children:e?(0,I.jsx)(t6,{}):(0,I.jsx)(lO.Parts,{components:$3})}),r?(0,I.jsxs)(`span`,{className:`oc-msg__sending`,role:`status`,children:[(0,I.jsx)(`span`,{className:`oc-msg__sending-spin`,"aria-hidden":!0}),UK()]}):(0,I.jsxs)(By.Root,{className:`oc-msg__actions oc-msg__actions--user`,hideWhenRunning:!0,autohide:`not-last`,children:[n.copyUser?(0,I.jsxs)(By.Copy,{className:`oc-iconbtn`,title:BK(),children:[(0,I.jsx)(lO.If,{copied:!0,children:(0,I.jsx)(Q3,{})}),(0,I.jsx)(lO.If,{copied:!1,children:(0,I.jsx)(Z3,{})})]}):null,n.showSource?(0,I.jsx)(n6,{active:e,onToggle:()=>t(e=>!e)}):null,n.showReport?(0,I.jsx)(k3,{}):null,n.showDelete?(0,I.jsx)(e6,{kind:`user`}):null]})]})})}function Att(){let[e,t]=(0,N.useState)(!1),n=U3(),r=i$(),i=gy(e=>e.id);return(0,I.jsxs)(lO.Root,{className:`oc-msg oc-msg--assistant`,"data-message-id":i,children:[(0,I.jsx)(K3,{className:`oc-msg__avatar`}),(0,I.jsxs)(`div`,{className:`oc-msg__col`,children:[(0,I.jsxs)(`div`,{className:`oc-msg__name`,children:[r.agentEmoji?(0,I.jsx)(`span`,{className:`oc-msg__name-emoji`,"aria-hidden":!0,children:r.agentEmoji}):null,t2e(r)]}),(0,I.jsxs)(`div`,{className:`oc-msg__body`,children:[n.showTools?(0,I.jsxs)(`div`,{className:`oc-msg__meta`,children:[(0,I.jsx)(q4e,{}),(0,I.jsx)(Y4e,{})]}):null,e?(0,I.jsx)(t6,{}):(0,I.jsx)(lO.Parts,{components:Ott}),(0,I.jsx)(N4e,{})]}),(0,I.jsxs)(By.Root,{className:`oc-msg__actions`,hideWhenRunning:!0,autohide:`not-last`,children:[n.copyAssistant?(0,I.jsxs)(By.Copy,{className:`oc-iconbtn`,title:QK(),children:[(0,I.jsx)(lO.If,{copied:!0,children:(0,I.jsx)(Q3,{})}),(0,I.jsx)(lO.If,{copied:!1,children:(0,I.jsx)(Z3,{})})]}):null,n.showSource?(0,I.jsx)(n6,{active:e,onToggle:()=>t(e=>!e)}):null,n.showReport?(0,I.jsx)(k3,{}):null,n.showDelete?(0,I.jsx)(e6,{kind:`assistant`}):null]})]})]})}function jtt(){let e=gy(e=>e.id);return(0,I.jsx)(lO.Root,{className:`oc-msg oc-msg--system`,"data-message-id":e,children:(0,I.jsx)(`div`,{className:`oc-msg__body`,children:(0,I.jsx)(lO.Parts,{components:$3})})})}function Mtt(){let e=my(e=>e.status?.type),t=my(e=>e.type),n=e===`incomplete`;return(0,I.jsxs)($E.Root,{className:`oc-attach${n?` oc-attach--error`:``}`,"data-status":e,children:[(0,I.jsx)(`span`,{className:`oc-attach__icon`,"aria-hidden":!0,children:n?(0,I.jsx)(hm,{size:14}):t===`image`?(0,I.jsx)(Aee,{size:14}):(0,I.jsx)(jee,{size:14})}),(0,I.jsx)(`span`,{className:`oc-attach__name`,children:(0,I.jsx)($E.Name,{})}),n?(0,I.jsx)(`span`,{className:`oc-attach__state`,children:uq()}):null,(0,I.jsx)($E.Remove,{className:`oc-attach__remove`,"aria-label":yq(),children:(0,I.jsx)(Km,{size:13,"aria-hidden":!0})})]})}function Ntt(){let e=(0,N.useSyncExternalStore)(AO.subscribe,AO.getSnapshot);return e.active?(0,I.jsxs)(`div`,{className:`oc-upload`,role:`status`,"aria-live":`polite`,children:[(0,I.jsxs)(`div`,{className:`oc-upload__head`,children:[(0,I.jsx)(Cm,{className:`oc-upload__spin`,size:14,"aria-hidden":!0}),(0,I.jsx)(`span`,{children:e.count>1?gq({count:e.count,percent:e.percent}):pq({percent:e.percent})})]}),(0,I.jsx)(`div`,{className:`oc-upload__track`,"aria-hidden":!0,children:(0,I.jsx)(`div`,{className:`oc-upload__bar`,style:{width:`${e.percent}%`}})})]}):null}function Ptt(){let e=(0,N.useContext)(G3),t=hy(),n=xie(e=>e.text).trim().length>0;return(0,I.jsx)(`button`,{type:`button`,className:`oc-composer__send`,disabled:!n||e===null,"aria-label":TJ(),title:n?OJ():SJ(),onClick:()=>{if(e===null)return;let n=t.getState().text;n.trim()!==``&&e(n).then(e=>{e&&t.setText(``)})},children:(0,I.jsx)(sm,{size:18,"aria-hidden":!0})})}function Ftt({showTools:e,onToggleTools:t,unavailable:n=!1}){let r=U3().voiceInput,i=wie(e=>e.isRunning),a=(0,N.useContext)(G3),o=hy();return(0,I.jsxs)(WD.Root,{className:`oc-composer${n?` oc-composer--disabled`:``}`,children:[(0,I.jsx)(WD.Attachments,{components:{Attachment:Mtt}}),(0,I.jsx)(Ntt,{}),(0,I.jsx)(WD.Input,{className:`oc-composer__input`,placeholder:n?tq():iq(),autoFocus:!0,rows:1,disabled:n,onKeyDownCapture:e=>{if(!i||a===null||e.key!==`Enter`||e.shiftKey||e.nativeEvent.isComposing)return;e.preventDefault(),e.stopPropagation();let t=o.getState().text;t.trim()!==``&&a(t).then(e=>{e&&o.setText(``)})},autoCorrect:`off`,autoCapitalize:`off`,autoComplete:`off`,"data-gramm":`false`,"data-gramm_editor":`false`,"data-enable-grammarly":`false`}),(0,I.jsxs)(`div`,{className:`oc-composer__bar`,children:[(0,I.jsxs)(`div`,{className:`oc-composer__group`,children:[(0,I.jsx)(WD.AddAttachment,{className:`oc-composer__icon`,"aria-label":sq(),disabled:i||n,title:i?SJ():void 0,children:(0,I.jsx)(Pm,{size:18,"aria-hidden":!0})}),(0,I.jsxs)(`button`,{type:`button`,className:`oc-composer__tools${e?` is-on`:``}`,onClick:t,"aria-pressed":e,title:e?Sq():Tq(),children:[(0,I.jsx)(zm,{size:15,"aria-hidden":!0}),Oq()]})]}),(0,I.jsxs)(`div`,{className:`oc-composer__group`,children:[r?(0,I.jsx)(`button`,{type:`button`,className:`oc-composer__icon`,title:uJ(),"aria-label":pJ(),children:(0,I.jsx)(Dm,{size:18,"aria-hidden":!0})}):null,n?(0,I.jsx)(`button`,{type:`button`,className:`oc-composer__send`,disabled:!0,"aria-label":gJ(),children:(0,I.jsx)(sm,{size:18,"aria-hidden":!0})}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(bO.If,{running:!1,children:(0,I.jsx)(WD.Send,{className:`oc-composer__send`,"aria-label":yJ(),children:(0,I.jsx)(sm,{size:18,"aria-hidden":!0})})}),(0,I.jsx)(bO.If,{running:!0,children:(0,I.jsx)(Ptt,{})})]})]})]})]})}function Itt(){var e=[...arguments];return(0,N.useMemo)(()=>t=>{e.forEach(e=>e(t))},e)}var r6=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function i6(e){let t=Object.prototype.toString.call(e);return t===`[object Window]`||t===`[object global]`}function a6(e){return`nodeType`in e}function o6(e){return e?i6(e)?e:a6(e)?e.ownerDocument?.defaultView??window:window:window}function s6(e){let{Document:t}=o6(e);return e instanceof t}function c6(e){return i6(e)?!1:e instanceof o6(e).HTMLElement}function l6(e){return e instanceof o6(e).SVGElement}function u6(e){return e?i6(e)?e.document:a6(e)?s6(e)?e:c6(e)||l6(e)?e.ownerDocument:document:document:document}var d6=r6?N.useLayoutEffect:N.useEffect;function f6(e){let t=(0,N.useRef)(e);return d6(()=>{t.current=e}),(0,N.useCallback)(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function Ltt(){let e=(0,N.useRef)(null);return[(0,N.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,N.useCallback)(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[])]}function p6(e,t){t===void 0&&(t=[e]);let n=(0,N.useRef)(e);return d6(()=>{n.current!==e&&(n.current=e)},t),n}function m6(e,t){let n=(0,N.useRef)();return(0,N.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function h6(e){let t=f6(e),n=(0,N.useRef)(null);return[n,(0,N.useCallback)(e=>{e!==n.current&&t?.(e,n.current),n.current=e},[])]}function g6(e){let t=(0,N.useRef)();return(0,N.useEffect)(()=>{t.current=e},[e]),t.current}var _6={};function v6(e,t){return(0,N.useMemo)(()=>{if(t)return t;let n=_6[e]==null?0:_6[e]+1;return _6[e]=n,e+`-`+n},[e,t])}function y6(e){return function(t){return[...arguments].slice(1).reduce((t,n)=>{let r=Object.entries(n);for(let[n,i]of r){let r=t[n];r!=null&&(t[n]=r+e*i)}return t},{...t})}}var b6=y6(1),x6=y6(-1);function Rtt(e){return`clientX`in e&&`clientY`in e}function S6(e){if(!e)return!1;let{KeyboardEvent:t}=o6(e.target);return t&&e instanceof t}function ztt(e){if(!e)return!1;let{TouchEvent:t}=o6(e.target);return t&&e instanceof t}function C6(e){if(ztt(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return Rtt(e)?{x:e.clientX,y:e.clientY}:null}var w6=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return`translate3d(`+(t?Math.round(t):0)+`px, `+(n?Math.round(n):0)+`px, 0)`}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return`scaleX(`+t+`) scaleY(`+n+`)`}},Transform:{toString(e){if(e)return[w6.Translate.toString(e),w6.Scale.toString(e)].join(` `)}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+` `+n+`ms `+r}}}),T6=`a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]`;function Btt(e){return e.matches(T6)?e:e.querySelector(T6)}var Vtt={display:`none`};function Htt(e){let{id:t,value:n}=e;return N.createElement(`div`,{id:t,style:Vtt},n)}function Utt(e){let{id:t,announcement:n,ariaLiveType:r=`assertive`}=e;return N.createElement(`div`,{id:t,style:{position:`fixed`,top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:`hidden`,clip:`rect(0 0 0 0)`,clipPath:`inset(100%)`,whiteSpace:`nowrap`},role:`status`,"aria-live":r,"aria-atomic":!0},n)}function Wtt(){let[e,t]=(0,N.useState)(``);return{announce:(0,N.useCallback)(e=>{e!=null&&t(e)},[]),announcement:e}}var E6=(0,N.createContext)(null);function Gtt(e){let t=(0,N.useContext)(E6);(0,N.useEffect)(()=>{if(!t)throw Error(`useDndMonitor must be used within a children of <DndContext>`);return t(e)},[e,t])}function Ktt(){let[e]=(0,N.useState)(()=>new Set),t=(0,N.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,N.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>e[n]?.call(e,r))},[e]),t]}var qtt={draggable:`
|
|
158
|
+
`))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return p9e(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=r3.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function eet(){return{exit:{taskListCheckValueChecked:o3,taskListCheckValueUnchecked:o3,paragraph:net}}}function tet(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:ret}}}function o3(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function net(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function ret(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=r3.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function iet(){return[I7e(),r9e(),s9e(),q9e(),eet()]}function aet(e){return{extensions:[L7e(),i9e(e),c9e(),$9e(e),tet()]}}var oet={tokenize:pet,partial:!0},s3={tokenize:met,partial:!0},c3={tokenize:het,partial:!0},l3={tokenize:get,partial:!0},set={tokenize:_et,partial:!0},u3={name:`wwwAutolink`,tokenize:det,previous:h3},d3={name:`protocolAutolink`,tokenize:fet,previous:g3},f3={name:`emailAutolink`,tokenize:uet,previous:_3},p3={};function cet(){return{text:p3}}for(var m3=48;m3<123;)p3[m3]=f3,m3++,m3===58?m3=65:m3===91&&(m3=97);p3[43]=f3,p3[45]=f3,p3[46]=f3,p3[95]=f3,p3[72]=[f3,d3],p3[104]=[f3,d3],p3[87]=[f3,u3],p3[119]=[f3,u3];function uet(e,t,n){let r=this,i,a;return o;function o(t){return!v3(t)||!_3.call(r,r.previous)||y3(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return v3(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(set,u,l)(t):t===45||t===95||r2(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&n2(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function det(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!h3.call(r,r.previous)||y3(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(oet,e.attempt(s3,e.attempt(c3,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function fet(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&g3.call(r,r.previous)&&!y3(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(n2(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||i2(t)||s2(t)||u2(t)||l2(t)?n(t):e.attempt(s3,e.attempt(c3,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function pet(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function met(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(l3,c,s)(t):t===null||s2(t)||u2(t)||t!==45&&l2(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function het(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(l3,t,a)(o):o===null||s2(o)||u2(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function get(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||s2(o)||u2(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||s2(e)||u2(e)?t(e):r(e)}function a(e){return n2(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):n2(t)?(e.consume(t),o):n(t)}}function _et(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return r2(e)?n(e):t(e)}}function h3(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||s2(e)}function g3(e){return!n2(e)}function _3(e){return!(e===47||v3(e))}function v3(e){return e===43||e===45||e===46||e===95||r2(e)}function y3(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var vet={tokenize:Det,partial:!0};function yet(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:wet,continuation:{tokenize:Tet},exit:Eet}},text:{91:{name:`gfmFootnoteCall`,tokenize:Cet},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:bet,resolveTo:xet}}}}function bet(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=t2(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function xet(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function Cet(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||s2(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(t2(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return s2(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function wet(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||s2(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=t2(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return s2(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),p2(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function Tet(e,t,n){return e.check(y2,t,e.attempt(vet,t,n))}function Eet(e){e.exit(`gfmFootnoteDefinition`)}function Det(e,t,n){let r=this;return p2(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function Oet(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&X0(o,o.length,0,g2(s,e.slice(r+1,n),t)),X0(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),X0(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=h2(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=h2(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var ket=class{constructor(){this.map=[]}add(e,t,n){Aet(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function Aet(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function jet(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function Met(){return{flow:{null:{name:`table`,tokenize:Net,resolveAll:Pet}}}}function Net(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):o2(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):c2(t)?p2(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||s2(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,c2(t)?p2(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return c2(t)?p2(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||o2(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return c2(t)?p2(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||o2(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||o2(n)?(e.exit(`tableRow`),t(n)):c2(n)?p2(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||s2(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function Pet(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new ket;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(x3(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=b3(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=b3(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=b3(f,t,o,i,n,d)):(o[0]=o[1],d=b3(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&x3(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=jet(t.events,n))}return e}function b3(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},S3(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=S3(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=S3(t.events,n[2]),a=S3(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},S3(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function x3(e,t,n,r,i){let a=[],o=S3(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function S3(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var Fet={name:`tasklistCheck`,tokenize:Let};function Iet(){return{text:{91:Fet}}}function Let(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return s2(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return o2(r)?t(r):c2(r)?e.check({tokenize:Ret},t,n)(r):n(r)}}function Ret(e,t,n){return p2(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function zet(e){return $0([cet(),yet(),Oet(e),Met(),Iet()])}var Bet={};function Vet(e){let t=this,n=e||Bet,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(zet(n)),a.push(iet()),o.push(aet(n))}function Het(e){return typeof e==`string`&&/^(https?:|mailto:)/i.test(e.trim())}function Uet({href:e,children:t,...n}){return Het(e)?(0,I.jsx)(`a`,{...n,href:e,target:`_blank`,rel:`noopener noreferrer`,children:t}):(0,I.jsx)(`span`,{...n,children:t})}var Wet=(0,N.memo)(function(){return(0,I.jsx)(A7e,{remarkPlugins:[Vet],className:`oc-md`,components:{a:Uet}})});function C3(e){return(0,I.jsx)(PT,{"data-slot":`select`,...e})}function w3(e){return(0,I.jsx)(RT,{"data-slot":`select-value`,...e})}function T3({className:e,size:t=`default`,children:n,...r}){return(0,I.jsxs)(IT,{"data-slot":`select-trigger`,"data-size":t,className:G$(`flex w-fit items-center justify-between gap-2 rounded-lg border border-input bg-background px-2.5 py-1 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-8 data-[size=sm]:h-7 data-[placeholder]:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...r,children:[n,(0,I.jsx)(zT,{asChild:!0,children:(0,I.jsx)(dm,{className:`size-4 opacity-50`})})]})}function E3({className:e,children:t,position:n=`popper`,...r}){return(0,I.jsx)(VT,{children:(0,I.jsxs)(UT,{"data-slot":`select-content`,className:G$(`relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] origin-[--radix-select-content-transform-origin] overflow-y-auto overflow-x-hidden rounded-lg border border-border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95`,n===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1`,e),position:n,...r,children:[(0,I.jsx)(uE,{className:`flex cursor-default items-center justify-center py-1`,children:(0,I.jsx)(pm,{className:`size-4`})}),(0,I.jsx)($T,{className:G$(`p-1`,n===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]`),children:t}),(0,I.jsx)(fE,{className:`flex cursor-default items-center justify-center py-1`,children:(0,I.jsx)(dm,{className:`size-4`})})]})})}function Q({className:e,children:t,...n}){return(0,I.jsxs)(iE,{"data-slot":`select-item`,className:G$(`relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),...n,children:[(0,I.jsx)(`span`,{className:`absolute right-2 flex size-3.5 items-center justify-center`,children:(0,I.jsx)(cE,{children:(0,I.jsx)(um,{className:`size-4`})})}),(0,I.jsx)(oE,{children:t})]})}var D3=1e3;function Get(){return[{id:`incorrect`,label:KEe()},{id:`incoherence`,label:YEe()},{id:`altered_words`,label:QEe()},{id:`formatting`,label:tDe()},{id:`latency`,label:iDe()},{id:`api_error`,label:sDe()},{id:`other`,label:mQ()}]}function Ket(){return[{id:`altered_words`,label:fDe()},{id:`formatting`,label:hDe()},{id:`other`,label:mQ()}]}function qet(e){return e===`user`?Ket():Get()}var Jet=[{name:`Grammarly`,selector:`grammarly-desktop-integration, grammarly-extension, [data-grammarly-shadow-root]`},{name:`LanguageTool`,selector:`[data-lt-installed], .lt-toolbar`},{name:`DeepL`,selector:`deepl-inline-translate, .deepl-translator`},{name:`ProWritingAad`,selector:`pwa-shadow-host, .pwa-tag`}];function Yet(){let e=[];try{e=Array.from(navigator.plugins??[]).map(e=>e.name).slice(0,40)}catch{e=[]}let t=[];for(let{name:e,selector:n}of Jet)try{document.querySelector(n)&&t.push(e)}catch{}return{plugins:e,extensionsDetected:t}}var O3=N.createContext(null);function Xet(){let e=N.useContext(O3);if(!e)throw Error(`useFeedback must be used within <FeedbackProvider>`);return e}function Zet({children:e}){let t=F(V.feedback.submitFeedback),[n,r]=(0,N.useState)(null),[i,a]=(0,N.useState)(``),[o,s]=(0,N.useState)(``),[c,l]=(0,N.useState)(!1),[u,d]=(0,N.useState)(null),f=N.useCallback(e=>{a(``),s(``),l(!1),d(null),r(e)},[]);function p(e){e||r(null)}async function m(){if(!(!n||!i||c)){l(!0);try{d((await t({chatId:n.chatId,messageId:n.messageId,category:i,comment:o.trim()||void 0,client:{displayedText:n.displayedText,sourceWasOpen:n.sourceWasOpen,userAgent:navigator.userAgent,language:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,theme:document.documentElement.classList.contains(`dark`)?`dark`:`light`,...Yet()}})).displayedMatchesStored)}catch{l(!1)}}}let h=u!==null,g=n?.role===`user`;return(0,I.jsxs)(O3.Provider,{value:f,children:[e,(0,I.jsx)(h1,{open:n!==null,onOpenChange:p,children:n?(0,I.jsxs)(g1,{className:`sm:max-w-md`,children:[(0,I.jsxs)(_1,{children:[(0,I.jsx)(y1,{children:vDe()}),(0,I.jsx)(b1,{children:h?xDe():g?wDe():DDe()})]}),h?(0,I.jsx)(`div`,{className:`oc-feedback__result`,role:`status`,children:n.sourceWasOpen?u===!0?(0,I.jsx)(`p`,{className:`oc-feedback__fidelity is-ok`,children:ADe()}):(0,I.jsx)(`p`,{className:`oc-feedback__fidelity is-warn`,children:NDe()}):(0,I.jsx)(`p`,{className:`oc-feedback__fidelity`,children:IDe()})}):(0,I.jsxs)(`div`,{className:`oc-feedback__form`,children:[(0,I.jsx)(`label`,{className:`oc-feedback__label`,children:zDe()}),(0,I.jsxs)(C3,{value:i,onValueChange:a,children:[(0,I.jsx)(T3,{children:(0,I.jsx)(w3,{placeholder:HDe()})}),(0,I.jsx)(E3,{children:qet(n.role).map(e=>(0,I.jsx)(Q,{value:e.id,children:e.label},e.id))})]}),(0,I.jsx)(`label`,{className:`oc-feedback__label`,htmlFor:`oc-feedback-comment`,children:GDe()}),(0,I.jsx)(`textarea`,{id:`oc-feedback-comment`,className:`oc-feedback__textarea`,placeholder:JDe(),value:o,maxLength:D3,onChange:e=>s(e.target.value.slice(0,D3)),rows:4}),(0,I.jsxs)(`div`,{className:`oc-feedback__count`,children:[o.length,`/`,D3]})]}),(0,I.jsx)(v1,{children:h?(0,I.jsx)(X,{onClick:()=>p(!1),children:ZDe()}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(X,{variant:`outline`,onClick:()=>p(!1),children:eOe()}),(0,I.jsx)(X,{onClick:()=>void m(),disabled:!i||c,children:c?rOe():oOe()})]})})]}):null})]})}function Qet(e,t){let n=e.closest(`.oc-msg`)?.querySelector(`.oc-msg__source-pre`),r=n?.textContent;return n&&r!=null&&r!==`(aucun texte)`?{displayedText:r,sourceWasOpen:!0}:{displayedText:t,sourceWasOpen:!1}}function k3(){let e=Xet(),t=gy(e=>e.metadata?.custom?.messageId),n=gy(e=>e.metadata?.custom?.chatId),r=gy(e=>e.role),i=gy(e=>e.metadata?.custom?.rawText??``),a=P(V.feedback.myReportedMessageIds,n?{chatId:n}:`skip`);if(!t||!n)return null;let o=(a??[]).includes(t);function s(a){e({chatId:n,messageId:t,role:r,...Qet(a.currentTarget,i)})}return(0,I.jsx)(`button`,{type:`button`,className:`oc-iconbtn${o?` is-on`:``}`,title:o?lOe():fOe(),"aria-label":hOe(),onClick:s,children:(0,I.jsx)(Oee,{size:15,"aria-hidden":!0})})}function A3(e,t){return e!=null&&e[t]!==void 0}var $et=[`inherit`,`fast`,`standard`];function ett(e){return e==null||e.fastMode===void 0?`inherit`:e.fastMode?`fast`:`standard`}function ttt(e){return e===`inherit`?nZe():e===`fast`?QQ():$Q()}function ntt(e){return e===`inherit`?null:e===`fast`}function j3(e){return e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}function M3(e){return e.length?e[0].toUpperCase()+e.slice(1):e}var rtt={off:`Off`,minimal:`Min`,low:`Low`,medium:`Med`,high:`High`,xhigh:`XHigh`};function itt(e,t){return rtt[e]??t}function N3(e,t){return e==null||!t||t<=0?null:Math.round(e/t*100)}function att(e,t){let n=N3(e,t);return n===null?null:NZe({pct:n,used:j3(e),total:j3(t)})}function ott(e){return zZe({level:e??`full`})}function stt(e,t){let n=typeof e==`number`,r=typeof t==`number`;return n&&r?JZe({cost:e.toFixed(2),tokens:j3(t)}):n?ZZe({cost:e.toFixed(2)}):r?eQe({tokens:j3(t)}):null}function ctt(e){let t=e.filter(e=>typeof e==`string`&&e.length>0);return t.length>0?t.join(` · `):null}var ltt=new Set([`knobThinkingLevel`,`knobModel`,`knobFastMode`,`knobUnset`,`agentFiles`,`sessionCompact`,`configDefaults`]),utt=new Set([`knobThinkingLevel`,`knobModel`]);function P3(e,t){return ltt.has(t)?e==null?utt.has(t):e[t]===!0:!1}function dtt(e,t){return{model:e(`knobModel`)&&t.hasModels,thinking:e(`knobThinkingLevel`)&&t.hasLevels,speed:e(`knobFastMode`),reset:e(`knobUnset`)}}function F3(e,t){return e===void 0?`loading`:e===null?{blocked:!P3(null,t),gatewayVersion:null}:{blocked:!P3(e.capabilities,t),gatewayVersion:e.gatewayVersion}}function I3(e){let t=P(V.compat.forChat,e===null?`skip`:{chatId:e}),n=t==null?null:t.capabilities;return{can:(0,N.useCallback)(e=>P3(n,e),[n]),loading:t===void 0,gatewayVersion:t?.gatewayVersion??null}}function ftt(e){let t=F(V.chats.setSessionKnob),[n,r]=(0,N.useState)(null),[i,a]=(0,N.useState)(null);return{apply:(0,N.useCallback)(async(n,i)=>{r(n),a(null);let o={chatId:e};n===`fastMode`?o.fastMode=i:o[n]=i;try{await t(o)}catch{a({field:n,value:i})}finally{r(null)}},[e,t]),pending:n,error:i}}function L3({label:e,overridden:t,onReset:n,pending:r,error:i,onRetry:a,help:o,children:s,resettable:c=!0}){return(0,I.jsxs)(`div`,{className:`oc-spanel__row${t?` is-overridden`:``}`,children:[(0,I.jsxs)(`div`,{className:`oc-spanel__rowhead`,children:[(0,I.jsx)(`span`,{className:`oc-spanel__label`,children:e}),r?(0,I.jsx)(Cm,{size:13,className:`oc-spanel__spin`,"aria-label":XQ()}):t?c?(0,I.jsx)(`button`,{type:`button`,className:`oc-spanel__reset`,title:YQ(),"aria-label":YQ(),onClick:n,children:(0,I.jsx)(Fm,{size:12,"aria-hidden":!0})}):null:(0,I.jsx)(`span`,{className:`oc-spanel__badge`,children:RXe()})]}),(0,I.jsx)(`div`,{className:`oc-spanel__ctl`,children:s}),o?(0,I.jsx)(`p`,{className:`oc-spanel__help`,children:o}):null,i?(0,I.jsxs)(`p`,{className:`oc-spanel__error`,role:`alert`,children:[GXe(),(0,I.jsx)(`button`,{type:`button`,className:`oc-spanel__retry`,onClick:a,children:ZQ()})]}):null]})}function R3({options:e,value:t,onChange:n,disabled:r}){return(0,I.jsx)(`div`,{className:`oc-spanel__seg`,role:`group`,children:e.map(e=>(0,I.jsx)(`button`,{type:`button`,className:`oc-spanel__seg-btn${t===e.id?` is-active`:``}`,"aria-pressed":t===e.id,title:e.title??e.label,"aria-label":e.title??e.label,disabled:r,onClick:()=>{e.id!==t&&n(e.id)},children:e.label},e.id))})}function ptt({options:e,value:t,onChange:n,disabled:r,ariaLabel:i}){let a=t===null||e.some(e=>e.id===t);return(0,I.jsxs)(`select`,{className:`oc-spanel__select`,value:t??``,disabled:r,"aria-label":i,onChange:e=>{e.target.value&&e.target.value!==t&&n(e.target.value)},children:[t===null?(0,I.jsx)(`option`,{value:``,disabled:!0,hidden:!0}):null,a?null:(0,I.jsx)(`option`,{value:t,children:t}),e.map(e=>(0,I.jsx)(`option`,{value:e.id,children:e.label},e.id))]})}function z3({chatId:e,sm:t,settings:n}){let{apply:r,pending:i,error:a}=ftt(e),{can:o}=I3(e),s=i!==null,c=(0,N.useCallback)(()=>{a&&r(a.field,a.value)},[r,a]),l=t.thinkingLevels??[],u=t.availableModels??[],d=ett(n),f=dtt(o,{hasModels:u.length>0,hasLevels:l.length>0});return(0,I.jsxs)(I.Fragment,{children:[f.model?(0,I.jsx)(L3,{label:gU(),overridden:A3(n,`model`),onReset:()=>void r(`model`,null),pending:i===`model`,error:a?.field===`model`,onRetry:c,resettable:f.reset,children:u.length<=4?(0,I.jsx)(R3,{options:u,value:t.model??null,onChange:e=>void r(`model`,e),disabled:s}):(0,I.jsx)(ptt,{options:u,value:t.model??null,onChange:e=>void r(`model`,e),disabled:s,ariaLabel:gU()})}):null,f.thinking?(0,I.jsx)(L3,{label:XXe(),overridden:A3(n,`thinkingLevel`),onReset:()=>void r(`thinkingLevel`,null),pending:i===`thinkingLevel`,error:a?.field===`thinkingLevel`,onRetry:c,resettable:f.reset,children:(0,I.jsx)(R3,{options:l.map(e=>({id:e.id,label:itt(e.id,M3(e.label)),title:M3(e.label)})),value:t.thinkingLevel??null,onChange:e=>void r(`thinkingLevel`,e),disabled:s})}):null,f.speed?(0,I.jsx)(L3,{label:$Xe(),overridden:A3(n,`fastMode`),onReset:()=>void r(`fastMode`,null),pending:i===`fastMode`,error:a?.field===`fastMode`,onRetry:c,resettable:f.reset,children:(0,I.jsx)(R3,{options:$et.map(e=>({id:e,label:ttt(e)})),value:d,onChange:e=>void r(`fastMode`,ntt(e)),disabled:s})}):null]})}function B3({label:e,state:t,destructive:n,onClick:r,onRetry:i}){return(0,I.jsxs)(`div`,{className:`oc-spanel__action`,children:[(0,I.jsxs)(X,{variant:n?`destructive`:`outline`,size:`sm`,disabled:t===`pending`,onClick:r,children:[t===`pending`?(0,I.jsx)(Cm,{className:`oc-spanel__spin`,"aria-hidden":!0}):null,e]}),t===`done`?(0,I.jsx)(`p`,{className:`oc-spanel__action-note`,role:`status`,children:DQe()}):null,t===`error`?(0,I.jsxs)(`p`,{className:`oc-spanel__error`,role:`alert`,children:[AQe(),(0,I.jsx)(`button`,{type:`button`,className:`oc-spanel__retry`,onClick:i,children:ZQ()})]}):null]})}function mtt({chatId:e,open:t,onOpenChange:n}){let r=P(V.messages.getSessionMeta,t?{chatId:e}:`skip`),i=P(V.agents.getChatAgent,t?{chatId:e}:`skip`),a=r?.sessionMeta??null,o=r?.sessionSettings??null,{can:s}=I3(t?e:null),c=C1(),l=$n(V.agentFiles.compactSession),u=F(V.chats.resetSession),[d,f]=(0,N.useState)(`idle`),[p,m]=(0,N.useState)(`idle`);async function h(){f(`pending`);try{await l({chatId:e}),f(`done`)}catch{f(`error`)}}async function g(){m(`pending`);try{await u({chatId:e}),m(`done`)}catch{m(`error`)}}async function _(){await c({title:oQe(),description:lQe(),confirmLabel:fQe(),cancelLabel:pW()})&&await h()}async function v(){await c({title:vQe(),description:xQe(),confirmLabel:wQe(),cancelLabel:pW(),destructive:!0})&&await g()}let y=N3(a?.totalTokens,a?.contextTokens),b=y==null?``:y>=90?`is-critical`:y>=75?`is-warn`:`is-ok`,x=att(a?.totalTokens,a?.contextTokens),S=stt(a?.estimatedCostUsd,a?.totalTokens),C=i?.agent??null,w=ctt([C?C.displayName??C.agentId:null,a?.agentRuntime,a?.model]);return(0,I.jsx)(K1,{open:t,onOpenChange:n,children:(0,I.jsxs)(q1,{side:`right`,className:`oc-spanel`,children:[(0,I.jsxs)(J1,{children:[(0,I.jsx)(X1,{children:fZe()}),(0,I.jsx)(Z1,{children:hZe()})]}),(0,I.jsx)(`div`,{className:`oc-spanel__body`,children:r===void 0?(0,I.jsx)(`p`,{className:`oc-spanel__loading`,children:KO()}):(0,I.jsxs)(I.Fragment,{children:[a?(0,I.jsxs)(`section`,{children:[(0,I.jsx)(`h3`,{className:`oc-spanel__cat`,children:vZe()}),(0,I.jsx)(z3,{chatId:e,sm:a,settings:o})]}):null,(0,I.jsxs)(`section`,{children:[(0,I.jsx)(`h3`,{className:`oc-spanel__cat`,children:xZe()}),x!==null&&y!==null?(0,I.jsxs)(`div`,{className:`oc-spanel__static`,children:[(0,I.jsx)(`span`,{className:`oc-spanel__label`,children:AZe()}),(0,I.jsxs)(`span`,{className:`oc-meter oc-spanel__meter ${b}`,children:[(0,I.jsx)(`span`,{className:`oc-meter__track`,children:(0,I.jsx)(`span`,{className:`oc-meter__fill`,style:{width:`${Math.min(y,100)}%`}})}),(0,I.jsx)(`span`,{className:`oc-meter__label`,children:x})]})]}):null,(0,I.jsxs)(`div`,{className:`oc-spanel__static`,children:[(0,I.jsx)(`span`,{className:`oc-spanel__label`,children:IZe()}),(0,I.jsx)(`span`,{className:`oc-spanel__value`,children:ott(a?.verboseLevel)}),(0,I.jsx)(`p`,{className:`oc-spanel__help`,children:HZe()})]}),S===null?null:(0,I.jsxs)(`div`,{className:`oc-spanel__static`,children:[(0,I.jsx)(`span`,{className:`oc-spanel__label`,children:GZe()}),(0,I.jsx)(`span`,{className:`oc-spanel__value`,children:S})]})]}),w===null?null:(0,I.jsxs)(`section`,{children:[(0,I.jsx)(`h3`,{className:`oc-spanel__cat`,children:wZe()}),(0,I.jsx)(`div`,{className:`oc-spanel__static`,children:(0,I.jsx)(`span`,{className:`oc-spanel__value`,children:w})})]})]})}),(0,I.jsxs)(Y1,{className:`oc-spanel__actions`,children:[(0,I.jsx)(`h3`,{className:`oc-spanel__cat`,children:DZe()}),s(`sessionCompact`)?(0,I.jsx)(B3,{label:rQe(),state:d,onClick:()=>void _(),onRetry:()=>void h()}):null,(0,I.jsx)(B3,{label:hQe(),state:p,destructive:!0,onClick:()=>void v(),onRetry:()=>void g()})]})]})})}var V3={showSource:!0,showReport:!0,copyAssistant:!0,copyUser:!0,showDelete:!0,showTools:!1,voiceInput:!1},H3=(0,N.createContext)(V3);function U3(){return(0,N.useContext)(H3)}var W3=(0,N.createContext)(null),G3=(0,N.createContext)(null);function K3({className:e}){let t=i$();return(0,I.jsx)(`div`,{className:e,"aria-hidden":!0,children:t.logoUrl?(0,I.jsx)(`img`,{className:`oc-avatar__img`,src:t.logoUrl,alt:``}):t.isDefault?(0,I.jsx)(MO,{className:`oc-avatar__mark`}):t.initials})}function q3({chatId:e,focusMessageId:t}){let{runtime:n,turnGate:r,queueSend:i}=T4e({chatId:e}),a=P(V.me.getMe,{host:xO}),o=a?.ui?.effective??V3,s=o.showTools,c=wO(a?.resolvedThemeMode),l=a?.resolvedChartBrand,u=P(V.agents.getChatAgent,e?{chatId:e}:`skip`),d=u?.multiAgent?u.agent:null,f=(0,N.useMemo)(()=>{let e=l?.label??`Atrium`;return{label:e,logoUrl:jO(l,c),isDefault:l?.isDefault??!0,initials:rfe(e),agentName:d?.displayName??d?.agentId??null,agentEmoji:d?.emoji??null}},[l,c,d]),p=F(V.me.setUiPref).withOptimisticUpdate(O1),m=P(V.messages.getSessionMeta,e?{chatId:e}:`skip`),h=e!==null&&m===null,g=W1(),{width:_,startResize:v}=G1({storageKey:`oc.sources.width`,defaultWidth:380,min:300,max:680,edge:`right`}),[y,b]=(0,N.useState)(null);(0,N.useEffect)(()=>{b(null)},[e]);let x=(0,N.useMemo)(()=>({activeMessageId:y,openFor:e=>b(e),close:()=>b(null)}),[y]),S=y!==null;return(0,I.jsx)(gie,{runtime:n,children:(0,I.jsx)(W3.Provider,{value:r,children:(0,I.jsx)(G3.Provider,{value:i,children:(0,I.jsx)(H3.Provider,{value:o,children:(0,I.jsx)(r$.Provider,{value:f,children:(0,I.jsxs)(L1.Provider,{value:x,children:[(0,I.jsxs)(`div`,{className:`oc-chat`,children:[(0,I.jsx)(`div`,{className:`oc-chat__convo`,children:e?h?(0,I.jsx)(htt,{}):(0,I.jsx)(_tt,{chatId:e,showTools:s,onToggleTools:()=>void p({key:`showTools`,value:!s}),focusMessageId:t??null}):(0,I.jsx)(`div`,{className:`oc-empty`,children:TH()})}),S&&!g?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`div`,{className:`oc-sources-resizer`,onPointerDown:v,role:`separator`,"aria-orientation":`vertical`,"aria-label":gK()}),(0,I.jsx)(`aside`,{className:`oc-sources-col`,style:{width:_,flex:`0 0 ${_}px`},children:(0,I.jsx)(R1,{messageId:y,onClose:x.close})})]}):null]}),S&&g?(0,I.jsx)(K1,{open:!0,onOpenChange:e=>{e||x.close()},children:(0,I.jsx)(q1,{side:`right`,className:`oc-sources-panel-sheet`,children:(0,I.jsx)(R1,{messageId:y,onClose:x.close})})}):null]})})})})})})}function htt(){let e=ss();return(0,I.jsxs)(`div`,{className:`oc-notfound`,role:`status`,children:[(0,I.jsx)(`div`,{className:`oc-notfound__icon`,"aria-hidden":!0,children:(0,I.jsx)(Im,{size:28})}),(0,I.jsx)(`h2`,{className:`oc-notfound__title`,children:OH()}),(0,I.jsx)(`p`,{className:`oc-notfound__body`,children:jH()}),(0,I.jsxs)(`button`,{type:`button`,className:`oc-notfound__cta`,onClick:()=>void e({to:`/`}),children:[(0,I.jsx)(Pm,{size:16,"aria-hidden":!0}),PH()]})]})}function gtt(e,t){(0,N.useEffect)(()=>{if(!t)return;let e=!1,n=0,r=0,i=()=>{if(e)return;let a=document.querySelector(`[data-message-id="${CSS.escape(t)}"]`);if(a){a.scrollIntoView({block:`center`,behavior:`smooth`}),a.classList.remove(`oc-msg--highlight`),a.offsetWidth,a.classList.add(`oc-msg--highlight`),window.setTimeout(()=>a.classList.remove(`oc-msg--highlight`),2400);return}n++<40&&(r=window.setTimeout(i,150))};return r=window.setTimeout(i,0),()=>{e=!0,window.clearTimeout(r)}},[e,t])}function _tt({chatId:e,showTools:t,onToggleTools:n,focusMessageId:r}){let i=P(V.bridgeHealth.getBridgeAvailability,{chatId:e}),a=i&&!i.available?i:null,o=P(V.agents.getChatAgent,{chatId:e})?.readOnly===!0;return gtt(e,r),(0,I.jsxs)(bO.Root,{className:`oc-thread`,children:[(0,I.jsx)(Stt,{chatId:e}),(0,I.jsx)(btt,{chatId:e}),(0,I.jsxs)(bO.Viewport,{className:`oc-thread__viewport`,children:[(0,I.jsx)(bO.Empty,{children:(0,I.jsx)(xtt,{})}),(0,I.jsx)(bO.Messages,{components:{UserMessage:ktt,AssistantMessage:Att,SystemMessage:jtt}})]}),(0,I.jsx)(bO.If,{empty:!1,children:(0,I.jsxs)(bO.ScrollToBottom,{className:`oc-scrolldown`,children:[(0,I.jsx)(Dtt,{}),(0,I.jsx)(`span`,{children:LH()})]})}),o?(0,I.jsx)(ytt,{}):a?(0,I.jsx)(vtt,{}):null,(0,I.jsx)(Ftt,{showTools:t,onToggleTools:n,unavailable:a!==null||o})]})}function vtt(){return(0,I.jsxs)(`div`,{className:`oc-chat-banner oc-chat-banner--error`,role:`status`,children:[(0,I.jsx)(hm,{size:16,"aria-hidden":!0}),(0,I.jsx)(`span`,{children:BH()})]})}function ytt(){return(0,I.jsxs)(`div`,{className:`oc-chat-banner oc-chat-banner--error`,role:`status`,children:[(0,I.jsx)(wm,{size:16,"aria-hidden":!0}),(0,I.jsx)(`span`,{children:UH()})]})}function btt({chatId:e}){let t=P(V.messages.listByChat,{chatId:e}),[n,r]=(0,N.useState)(``),i=(0,N.useRef)(null);return(0,N.useEffect)(()=>{i.current=null,r(``)},[e]),(0,N.useEffect)(()=>{if(!t)return;let e;for(let n of t)n.role===`assistant`&&(e=n);if(!(!e||e.status!==`complete`)){if(i.current===null){i.current=e._id;return}i.current!==e._id&&(i.current=e._id,r(e=>e===KH()?`${KH()} `:KH()))}},[t]),(0,I.jsx)(`div`,{"aria-live":`polite`,"aria-atomic":`true`,className:`oc-sr-only`,children:n})}function xtt(){return(0,I.jsxs)(`div`,{className:`oc-emptystate`,children:[(0,I.jsx)(K3,{className:`oc-emptystate__avatar`}),(0,I.jsx)(`h2`,{className:`oc-emptystate__title`,children:YH()})]})}function J3({sm:e,detail:t=!0}){let n=e.totalTokens!=null&&e.contextTokens&&e.contextTokens>0?Math.round(e.totalTokens/e.contextTokens*100):null;return n==null?null:(0,I.jsxs)(`span`,{className:`oc-meter ${n>=90?`is-critical`:n>=75?`is-warn`:`is-ok`}`,title:PU({pct:n,used:j3(e.totalTokens),total:j3(e.contextTokens)}),children:[(0,I.jsx)(`span`,{className:`oc-meter__track`,children:(0,I.jsx)(`span`,{className:`oc-meter__fill`,style:{width:`${Math.min(n,100)}%`}})}),(0,I.jsxs)(`span`,{className:`oc-meter__label`,children:[n,`%`,t?(0,I.jsxs)(`span`,{className:`oc-meter__detail`,children:[` · `,j3(e.totalTokens),`/`,j3(e.contextTokens)]}):null]})]})}function Stt({chatId:e}){let t=P(V.messages.getSessionMeta,{chatId:e}),n=P(V.agents.getChatAgent,{chatId:e}),r=t?.sessionMeta??null,i=t?.sessionSettings??null,a=n?.multiAgent?n.agent:null,o=U3(),[s,c]=(0,N.useState)(!1),l=(0,N.useRef)(null),u=(0,N.useRef)(null),d=(0,N.useRef)(null),[f,p]=(0,N.useState)(!1),m=!A3(i,`thinkingLevel`),h=(s,l)=>(0,I.jsxs)(I.Fragment,{children:[a?(0,I.jsxs)(`span`,{className:`oc-chip oc-chip--agent${a.state===`ok`?``:` is-warn`}`,title:tU({name:a.displayName??a.agentId})+(a.inheritedDefault?iU():``)+(a.state===`deleted`?sU():a.state===`stale`?uU():``),children:[a.emoji?(0,I.jsx)(`span`,{className:`oc-chip__emoji`,"aria-hidden":!0,children:a.emoji}):(0,I.jsx)(lm,{size:13,"aria-hidden":!0}),(0,I.jsx)(`span`,{className:`oc-chip__label`,children:a.displayName??a.agentId}),o.showTools&&n?.multiInstance?(0,I.jsxs)(`span`,{className:`oc-chip__instance`,title:pU({instance:a.instanceName}),children:[(0,I.jsx)(Lm,{size:11,"aria-hidden":!0}),a.instanceName]}):null]}):null,o.showTools&&!s&&r?.model?(0,I.jsxs)(`span`,{className:`oc-chip oc-chip--info`,title:r.modelProvider?yU({provider:r.modelProvider}):gU(),children:[(0,I.jsx)(Ttt,{}),(0,I.jsx)(`span`,{className:`oc-chip__label`,children:r.model})]}):null,o.showTools&&!s&&r?.thinkingLevel?(0,I.jsxs)(`span`,{className:`oc-chip oc-chip--info`,title:m?SU():TU(),children:[(0,I.jsx)(Ett,{}),(0,I.jsxs)(`span`,{className:`oc-chip__label`,children:[OU(),`\xA0: `,M3(r.thinkingLevel)]}),m?(0,I.jsx)(`span`,{className:`oc-chip__hint`,children:jU()}):null]}):null,o.showTools&&r?(0,I.jsx)(J3,{sm:r,detail:!s}):null,(0,I.jsx)(Ctt,{chatId:e,title:t?.title??null,compact:s,ghost:l}),r?(0,I.jsx)(wtt,{chatId:e,sm:r,settings:i,onOpenPanel:()=>c(!0),compact:s,ghost:l}):null]});return(0,N.useLayoutEffect)(()=>{let e=l.current;if(!e)return;let t=()=>{let t=d.current?.offsetWidth??0;if(t===0)return;let n=Math.min(u.current?.scrollWidth??0,360),r=e.clientWidth-n-16<t;p(e=>e===r?e:r)};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[[UU(),tW(),r?.model??``,r?.thinkingLevel??``,a?.displayName??a?.agentId??``,n?.multiInstance?a?.instanceName??``:``,t?.title??``,o.showTools?`1`:`0`].join(`|`)]),(0,I.jsxs)(`header`,{className:`oc-chathead`,ref:l,children:[(0,I.jsx)(`div`,{className:`oc-chathead__title`,title:t?.title??void 0,ref:u,children:t?.title||QH()}),(0,I.jsx)(`div`,{className:`oc-chathead__meta`,children:h(f,!1)}),(0,I.jsx)(`div`,{className:`oc-chathead-ghost`,"aria-hidden":!0,ref:d,children:h(!1,!0)}),(0,I.jsx)(mtt,{chatId:e,open:s,onOpenChange:c})]})}function Y3(e,t,n){let r=new Blob([e],{type:`${n};charset=utf-8`}),i=URL.createObjectURL(r),a=document.createElement(`a`);a.href=i,a.download=t,document.body.appendChild(a),a.click(),a.remove(),URL.revokeObjectURL(i)}function Ctt({chatId:e,title:t,compact:n=!1,ghost:r=!1}){let i=Zn();async function a(n){let[r,a]=await Promise.all([i.query(V.messages.listByChat,{chatId:e}),i.query(V.messages.getStreamingText,{chatId:e})]),o=new Map(a.map(e=>[e.messageId,e.text])),s=r.map(e=>({role:e.role,text:e.status===`streaming`?o.get(e._id)??e.text:e.text,createdAt:e.updatedAt??e._creationTime,parts:e.parts.map(e=>({kind:e.kind,filename:`filename`in e?e.filename:void 0,name:`name`in e?e.name:void 0}))})),c=r.length>=200,l={title:t??void 0,truncated:c,exportedAt:Date.now()},u=s2e(t);n===`md`?Y3(a2e(s,l),`${u}.md`,`text/markdown`):Y3(o2e(s,l),`${u}.json`,`application/json`)}let o=(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(vm,{size:13,"aria-hidden":!0}),n?null:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`span`,{className:`oc-chip__label`,children:UU()}),(0,I.jsx)(dm,{size:13,className:`oc-chip__chev`,"aria-hidden":!0})]})]});return r?(0,I.jsx)(`span`,{className:`oc-chip oc-chip--btn`,children:o}):(0,I.jsxs)(K$,{children:[(0,I.jsx)(q$,{asChild:!0,children:(0,I.jsx)(`button`,{type:`button`,className:`oc-chip oc-chip--btn`,title:BU(),children:o})}),(0,I.jsxs)(J$,{align:`end`,className:`w-44`,children:[(0,I.jsx)(X$,{children:UU()}),(0,I.jsx)(Y$,{onClick:()=>void a(`md`),children:KU()}),(0,I.jsx)(Y$,{onClick:()=>void a(`json`),children:YU()})]})]})}function wtt({chatId:e,sm:t,settings:n,onOpenPanel:r,compact:i=!1,ghost:a=!1}){let[o,s]=(0,N.useState)(!1),c=(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(zm,{size:13,"aria-hidden":!0}),i?null:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`span`,{className:`oc-chip__label`,children:tW()}),(0,I.jsx)(dm,{size:13,className:`oc-chip__chev`,"aria-hidden":!0})]})]});return a?(0,I.jsx)(`span`,{className:`oc-chip oc-chip--btn`,children:c}):(0,I.jsxs)($$,{open:o,onOpenChange:s,children:[(0,I.jsx)(e1,{asChild:!0,children:(0,I.jsx)(`button`,{type:`button`,className:`oc-chip oc-chip--btn`,title:QU(),children:c})}),(0,I.jsxs)(t1,{align:`end`,className:`oc-spanel-pop w-80 p-2`,children:[t.totalTokens!=null&&t.contextTokens?(0,I.jsxs)(`div`,{className:`oc-spanel-pop__usage`,children:[(0,I.jsx)(`span`,{className:`oc-spanel-pop__usage-label`,children:LU()}),(0,I.jsx)(J3,{sm:t})]}):null,(0,I.jsx)(z3,{chatId:e,sm:t,settings:n}),(0,I.jsxs)(`button`,{type:`button`,className:`oc-spanel-pop__all`,onClick:()=>{s(!1),r()},children:[(0,I.jsx)(zm,{size:13,"aria-hidden":!0}),lZe(),(0,I.jsx)(fm,{size:13,"aria-hidden":!0})]})]})]})}function Ttt(){return(0,I.jsxs)(`svg`,{className:`oc-chip__icon`,viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,I.jsx)(`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`}),(0,I.jsx)(`rect`,{x:`9`,y:`9`,width:`6`,height:`6`}),(0,I.jsx)(`path`,{d:`M9 1v3M15 1v3M9 20v3M15 20v3M20 9h3M20 14h3M1 9h3M1 14h3`})]})}function Ett(){return(0,I.jsxs)(`svg`,{className:`oc-chip__icon`,viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,I.jsx)(`path`,{d:`M12 5a3 3 0 1 0-5.997.142 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z`}),(0,I.jsx)(`path`,{d:`M12 5a3 3 0 1 1 5.997.142 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z`})]})}function X3({children:e}){return(0,I.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`16`,height:`16`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:e})}function Dtt(){return(0,I.jsx)(X3,{children:(0,I.jsx)(`path`,{d:`M12 5v14M19 12l-7 7-7-7`})})}function Z3(){return(0,I.jsxs)(X3,{children:[(0,I.jsx)(`rect`,{x:`9`,y:`9`,width:`13`,height:`13`,rx:`2`}),(0,I.jsx)(`path`,{d:`M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1`})]})}function Q3(){return(0,I.jsx)(X3,{children:(0,I.jsx)(`path`,{d:`M20 6 9 17l-5-5`})})}var $3={File:r3e},Ott={...$3,Text:Wet};function e6({kind:e}){let t=gy(e=>e.metadata?.custom?.messageId),n=F(V.messages.deleteMessage).withOptimisticUpdate(E4e),r=C1(),i=D1(),a=(0,N.useContext)(W3),[o,s]=(0,N.useState)(!1);if(!t)return null;async function c(){if(await r(e===`assistant`?{title:iW(),description:sW(),confirmLabel:uW(),cancelLabel:pW(),destructive:!0}:{title:gW(),description:yW(),confirmLabel:SW(),cancelLabel:pW(),destructive:!0})){s(!0),e===`assistant`&&a?.begin();try{await n({messageId:t})}catch(t){e===`assistant`&&a?.cancel(),i.error(PW(),t)}finally{s(!1)}}}return(0,I.jsx)(`button`,{type:`button`,className:`oc-iconbtn oc-iconbtn--danger`,title:e===`assistant`?TW():OW(),"aria-label":jW(),"aria-busy":o,disabled:o,onClick:()=>void c(),children:o?(0,I.jsx)(Cm,{size:15,className:`oc-iconbtn__spin`,"aria-hidden":!0}):(0,I.jsx)(Vm,{size:15,"aria-hidden":!0})})}function t6(){let e=gy(e=>e.metadata?.custom?.rawText??``),[t,n]=(0,N.useState)(!1),r=[...e].length;return(0,I.jsxs)(`div`,{className:`oc-msg__source`,children:[(0,I.jsxs)(`div`,{className:`oc-msg__source-head`,children:[(0,I.jsx)(`span`,{className:`oc-msg__source-label`,children:r>1?SK({count:r}):yK({count:r})}),(0,I.jsx)(`button`,{type:`button`,className:`oc-iconbtn`,title:TK(),"aria-label":TK(),onClick:()=>{navigator.clipboard?.writeText(e).then(()=>{n(!0),window.setTimeout(()=>n(!1),1200)})},children:t?(0,I.jsx)(Q3,{}):(0,I.jsx)(Z3,{})})]}),(0,I.jsx)(`pre`,{className:`oc-msg__source-pre`,children:e.length>0?e:OK()})]})}function n6({active:e,onToggle:t}){return(0,I.jsx)(`button`,{type:`button`,className:`oc-iconbtn${e?` is-on`:``}`,onClick:t,"aria-pressed":e,title:e?jK():PK(),"aria-label":LK(),children:(0,I.jsx)(Tee,{size:15,"aria-hidden":!0})})}function ktt(){let[e,t]=(0,N.useState)(!1),n=U3(),r=gy(e=>e.id.startsWith(`optimistic-`)),i=gy(e=>e.id);return(0,I.jsx)(lO.Root,{className:`oc-msg oc-msg--user${r?` is-sending`:``}`,"data-message-id":i,children:(0,I.jsxs)(`div`,{className:`oc-msg__col oc-msg__col--user`,children:[(0,I.jsx)(`div`,{className:`oc-msg__bubble`,children:e?(0,I.jsx)(t6,{}):(0,I.jsx)(lO.Parts,{components:$3})}),r?(0,I.jsxs)(`span`,{className:`oc-msg__sending`,role:`status`,children:[(0,I.jsx)(`span`,{className:`oc-msg__sending-spin`,"aria-hidden":!0}),UK()]}):(0,I.jsxs)(By.Root,{className:`oc-msg__actions oc-msg__actions--user`,hideWhenRunning:!0,autohide:`not-last`,children:[n.copyUser?(0,I.jsxs)(By.Copy,{className:`oc-iconbtn`,title:BK(),children:[(0,I.jsx)(lO.If,{copied:!0,children:(0,I.jsx)(Q3,{})}),(0,I.jsx)(lO.If,{copied:!1,children:(0,I.jsx)(Z3,{})})]}):null,n.showSource?(0,I.jsx)(n6,{active:e,onToggle:()=>t(e=>!e)}):null,n.showReport?(0,I.jsx)(k3,{}):null,n.showDelete?(0,I.jsx)(e6,{kind:`user`}):null]})]})})}function Att(){let[e,t]=(0,N.useState)(!1),n=U3(),r=i$(),i=gy(e=>e.id);return(0,I.jsxs)(lO.Root,{className:`oc-msg oc-msg--assistant`,"data-message-id":i,children:[(0,I.jsx)(K3,{className:`oc-msg__avatar`}),(0,I.jsxs)(`div`,{className:`oc-msg__col`,children:[(0,I.jsxs)(`div`,{className:`oc-msg__name`,children:[r.agentEmoji?(0,I.jsx)(`span`,{className:`oc-msg__name-emoji`,"aria-hidden":!0,children:r.agentEmoji}):null,t2e(r)]}),(0,I.jsxs)(`div`,{className:`oc-msg__body`,children:[n.showTools?(0,I.jsxs)(`div`,{className:`oc-msg__meta`,children:[(0,I.jsx)(q4e,{}),(0,I.jsx)(Y4e,{})]}):null,e?(0,I.jsx)(t6,{}):(0,I.jsx)(lO.Parts,{components:Ott}),(0,I.jsx)(N4e,{})]}),(0,I.jsxs)(By.Root,{className:`oc-msg__actions`,hideWhenRunning:!0,autohide:`not-last`,children:[n.copyAssistant?(0,I.jsxs)(By.Copy,{className:`oc-iconbtn`,title:QK(),children:[(0,I.jsx)(lO.If,{copied:!0,children:(0,I.jsx)(Q3,{})}),(0,I.jsx)(lO.If,{copied:!1,children:(0,I.jsx)(Z3,{})})]}):null,n.showSource?(0,I.jsx)(n6,{active:e,onToggle:()=>t(e=>!e)}):null,n.showReport?(0,I.jsx)(k3,{}):null,n.showDelete?(0,I.jsx)(e6,{kind:`assistant`}):null]})]})]})}function jtt(){let e=gy(e=>e.id);return(0,I.jsx)(lO.Root,{className:`oc-msg oc-msg--system`,"data-message-id":e,children:(0,I.jsx)(`div`,{className:`oc-msg__body`,children:(0,I.jsx)(lO.Parts,{components:$3})})})}function Mtt(){let e=my(e=>e.status?.type),t=my(e=>e.type),n=e===`incomplete`;return(0,I.jsxs)($E.Root,{className:`oc-attach${n?` oc-attach--error`:``}`,"data-status":e,children:[(0,I.jsx)(`span`,{className:`oc-attach__icon`,"aria-hidden":!0,children:n?(0,I.jsx)(hm,{size:14}):t===`image`?(0,I.jsx)(Aee,{size:14}):(0,I.jsx)(jee,{size:14})}),(0,I.jsx)(`span`,{className:`oc-attach__name`,children:(0,I.jsx)($E.Name,{})}),n?(0,I.jsx)(`span`,{className:`oc-attach__state`,children:uq()}):null,(0,I.jsx)($E.Remove,{className:`oc-attach__remove`,"aria-label":yq(),children:(0,I.jsx)(Km,{size:13,"aria-hidden":!0})})]})}function Ntt(){let e=(0,N.useSyncExternalStore)(AO.subscribe,AO.getSnapshot);return e.active?(0,I.jsxs)(`div`,{className:`oc-upload`,role:`status`,"aria-live":`polite`,children:[(0,I.jsxs)(`div`,{className:`oc-upload__head`,children:[(0,I.jsx)(Cm,{className:`oc-upload__spin`,size:14,"aria-hidden":!0}),(0,I.jsx)(`span`,{children:e.count>1?gq({count:e.count,percent:e.percent}):pq({percent:e.percent})})]}),(0,I.jsx)(`div`,{className:`oc-upload__track`,"aria-hidden":!0,children:(0,I.jsx)(`div`,{className:`oc-upload__bar`,style:{width:`${e.percent}%`}})})]}):null}function Ptt(){let e=(0,N.useContext)(G3),t=hy(),n=xie(e=>e.text).trim().length>0;return(0,I.jsx)(`button`,{type:`button`,className:`oc-composer__send`,disabled:!n||e===null,"aria-label":TJ(),title:n?OJ():SJ(),onClick:()=>{if(e===null)return;let n=t.getState().text;n.trim()!==``&&e(n).then(e=>{e&&t.setText(``)})},children:(0,I.jsx)(sm,{size:18,"aria-hidden":!0})})}function Ftt({showTools:e,onToggleTools:t,unavailable:n=!1}){let r=U3().voiceInput,i=wie(e=>e.isRunning),a=(0,N.useContext)(G3),o=hy();return(0,I.jsxs)(WD.Root,{className:`oc-composer${n?` oc-composer--disabled`:``}`,children:[(0,I.jsx)(WD.Attachments,{components:{Attachment:Mtt}}),(0,I.jsx)(Ntt,{}),(0,I.jsx)(WD.Input,{className:`oc-composer__input`,placeholder:n?tq():iq(),autoFocus:!0,rows:1,disabled:n,onKeyDownCapture:e=>{if(!i||a===null||e.key!==`Enter`||e.shiftKey||e.nativeEvent.isComposing)return;e.preventDefault(),e.stopPropagation();let t=o.getState().text;t.trim()!==``&&a(t).then(e=>{e&&o.setText(``)})},autoCorrect:`off`,autoCapitalize:`off`,autoComplete:`off`,"data-gramm":`false`,"data-gramm_editor":`false`,"data-enable-grammarly":`false`}),(0,I.jsxs)(`div`,{className:`oc-composer__bar`,children:[(0,I.jsxs)(`div`,{className:`oc-composer__group`,children:[(0,I.jsx)(WD.AddAttachment,{className:`oc-composer__icon`,"aria-label":sq(),disabled:i||n,title:i?SJ():void 0,children:(0,I.jsx)(Pm,{size:18,"aria-hidden":!0})}),(0,I.jsxs)(`button`,{type:`button`,className:`oc-composer__tools${e?` is-on`:``}`,onClick:t,"aria-pressed":e,title:e?Sq():Tq(),children:[(0,I.jsx)(zm,{size:15,"aria-hidden":!0}),Oq()]})]}),(0,I.jsxs)(`div`,{className:`oc-composer__group`,children:[r?(0,I.jsx)(`button`,{type:`button`,className:`oc-composer__icon`,title:uJ(),"aria-label":pJ(),children:(0,I.jsx)(Dm,{size:18,"aria-hidden":!0})}):null,n?(0,I.jsx)(`button`,{type:`button`,className:`oc-composer__send`,disabled:!0,"aria-label":gJ(),children:(0,I.jsx)(sm,{size:18,"aria-hidden":!0})}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(bO.If,{running:!1,children:(0,I.jsx)(WD.Send,{className:`oc-composer__send`,"aria-label":yJ(),children:(0,I.jsx)(sm,{size:18,"aria-hidden":!0})})}),(0,I.jsx)(bO.If,{running:!0,children:(0,I.jsx)(Ptt,{})})]})]})]})]})}function Itt(){var e=[...arguments];return(0,N.useMemo)(()=>t=>{e.forEach(e=>e(t))},e)}var r6=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function i6(e){let t=Object.prototype.toString.call(e);return t===`[object Window]`||t===`[object global]`}function a6(e){return`nodeType`in e}function o6(e){return e?i6(e)?e:a6(e)?e.ownerDocument?.defaultView??window:window:window}function s6(e){let{Document:t}=o6(e);return e instanceof t}function c6(e){return i6(e)?!1:e instanceof o6(e).HTMLElement}function l6(e){return e instanceof o6(e).SVGElement}function u6(e){return e?i6(e)?e.document:a6(e)?s6(e)?e:c6(e)||l6(e)?e.ownerDocument:document:document:document}var d6=r6?N.useLayoutEffect:N.useEffect;function f6(e){let t=(0,N.useRef)(e);return d6(()=>{t.current=e}),(0,N.useCallback)(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function Ltt(){let e=(0,N.useRef)(null);return[(0,N.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,N.useCallback)(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[])]}function p6(e,t){t===void 0&&(t=[e]);let n=(0,N.useRef)(e);return d6(()=>{n.current!==e&&(n.current=e)},t),n}function m6(e,t){let n=(0,N.useRef)();return(0,N.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function h6(e){let t=f6(e),n=(0,N.useRef)(null);return[n,(0,N.useCallback)(e=>{e!==n.current&&t?.(e,n.current),n.current=e},[])]}function g6(e){let t=(0,N.useRef)();return(0,N.useEffect)(()=>{t.current=e},[e]),t.current}var _6={};function v6(e,t){return(0,N.useMemo)(()=>{if(t)return t;let n=_6[e]==null?0:_6[e]+1;return _6[e]=n,e+`-`+n},[e,t])}function y6(e){return function(t){return[...arguments].slice(1).reduce((t,n)=>{let r=Object.entries(n);for(let[n,i]of r){let r=t[n];r!=null&&(t[n]=r+e*i)}return t},{...t})}}var b6=y6(1),x6=y6(-1);function Rtt(e){return`clientX`in e&&`clientY`in e}function S6(e){if(!e)return!1;let{KeyboardEvent:t}=o6(e.target);return t&&e instanceof t}function ztt(e){if(!e)return!1;let{TouchEvent:t}=o6(e.target);return t&&e instanceof t}function C6(e){if(ztt(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return Rtt(e)?{x:e.clientX,y:e.clientY}:null}var w6=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return`translate3d(`+(t?Math.round(t):0)+`px, `+(n?Math.round(n):0)+`px, 0)`}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return`scaleX(`+t+`) scaleY(`+n+`)`}},Transform:{toString(e){if(e)return[w6.Translate.toString(e),w6.Scale.toString(e)].join(` `)}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+` `+n+`ms `+r}}}),T6=`a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]`;function Btt(e){return e.matches(T6)?e:e.querySelector(T6)}var Vtt={display:`none`};function Htt(e){let{id:t,value:n}=e;return N.createElement(`div`,{id:t,style:Vtt},n)}function Utt(e){let{id:t,announcement:n,ariaLiveType:r=`assertive`}=e;return N.createElement(`div`,{id:t,style:{position:`fixed`,top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:`hidden`,clip:`rect(0 0 0 0)`,clipPath:`inset(100%)`,whiteSpace:`nowrap`},role:`status`,"aria-live":r,"aria-atomic":!0},n)}function Wtt(){let[e,t]=(0,N.useState)(``);return{announce:(0,N.useCallback)(e=>{e!=null&&t(e)},[]),announcement:e}}var E6=(0,N.createContext)(null);function Gtt(e){let t=(0,N.useContext)(E6);(0,N.useEffect)(()=>{if(!t)throw Error(`useDndMonitor must be used within a children of <DndContext>`);return t(e)},[e,t])}function Ktt(){let[e]=(0,N.useState)(()=>new Set),t=(0,N.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,N.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>e[n]?.call(e,r))},[e]),t]}var qtt={draggable:`
|
|
159
159
|
To pick up a draggable item, press the space bar.
|
|
160
160
|
While dragging, use the arrow keys to move the item.
|
|
161
161
|
Press space again to drop the item in its new position, or press escape to cancel.
|