@inf-monkeys-tech/monkeys-design 2.0.395 → 2.0.397
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/agent-ui/index.js +74 -74
- package/dist/components/agent-ui/index.js.map +1 -1
- package/dist/components/agent-ui/index.mjs +42 -42
- package/dist/components/agent-ui/index.mjs.map +1 -1
- package/dist/sources/{b0dee38defbfef01730cafcd9765f5f537505ba2ddcb91dc547d44dcb582658b.tsx → 2ffa3279fb5fd1a6b5c99bb29075f014331fbe0908aa5c582145d2306de7f1ef.tsx} +25 -17
- package/dist/sources/{2b5602bdc5c948d3e74a6ac1d6db0eb6192a3b9b56392fcb1fa8de9b1816be95.tsx → e348c505638b1f635b6ae8ee14a8a4fefda6201c641e028c87069ecce6f43c36.tsx} +1 -1
- package/dist/styles.css +1 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var jb = require('jszip');
|
|
4
|
+
var he = require('react');
|
|
5
5
|
var lucideReact = require('lucide-react');
|
|
6
6
|
var beautiful = require('@inf-monkeys-tech/monkeys-design/components/beautiful');
|
|
7
7
|
var provider = require('@inf-monkeys-tech/monkeys-design/provider');
|
|
@@ -12,12 +12,12 @@ var primitives = require('@inf-monkeys-tech/monkeys-design/components/primitives
|
|
|
12
12
|
var classVarianceAuthority = require('class-variance-authority');
|
|
13
13
|
var clsx = require('clsx');
|
|
14
14
|
var tailwindMerge = require('tailwind-merge');
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
15
|
+
var xb = require('react-markdown');
|
|
16
|
+
var kb = require('remark-gfm');
|
|
17
|
+
var wb = require('remark-cjk-friendly');
|
|
18
18
|
var unistUtilVisit = require('unist-util-visit');
|
|
19
19
|
var runtime = require('@inf-monkeys-tech/monkeys/runtime');
|
|
20
|
-
var
|
|
20
|
+
var bo = require('@radix-ui/react-accordion');
|
|
21
21
|
var Xr = require('@radix-ui/react-checkbox');
|
|
22
22
|
var to = require('@radix-ui/react-scroll-area');
|
|
23
23
|
var reactSlot = require('@radix-ui/react-slot');
|
|
@@ -26,7 +26,7 @@ var cn = require('@radix-ui/react-tooltip');
|
|
|
26
26
|
var button = require('@base-ui/react/button');
|
|
27
27
|
var directionProvider = require('@base-ui/react/direction-provider');
|
|
28
28
|
var tabs = require('@base-ui/react/tabs');
|
|
29
|
-
var
|
|
29
|
+
var Lo = require('@radix-ui/react-hover-card');
|
|
30
30
|
var je = require('@radix-ui/react-dialog');
|
|
31
31
|
var Je = require('@radix-ui/react-alert-dialog');
|
|
32
32
|
var reactComposeRefs = require('@radix-ui/react-compose-refs');
|
|
@@ -40,13 +40,13 @@ var utilities = require('@dnd-kit/utilities');
|
|
|
40
40
|
var ro = require('@radix-ui/react-tabs');
|
|
41
41
|
var so = require('@radix-ui/react-dropdown-menu');
|
|
42
42
|
var Ae = require('@radix-ui/react-context-menu');
|
|
43
|
-
var
|
|
43
|
+
var Co = require('@radix-ui/react-collapsible');
|
|
44
44
|
var Ve = require('@radix-ui/react-select');
|
|
45
45
|
var Fa = require('@radix-ui/react-toggle-group');
|
|
46
46
|
var canvas = require('@inf-monkeys-tech/monkeys-design/components/canvas');
|
|
47
47
|
var sonner = require('sonner');
|
|
48
48
|
var agentUi = require('@inf-monkeys-tech/monkeys-design/components/agent-ui');
|
|
49
|
-
var
|
|
49
|
+
var Jo = require('@radix-ui/react-popover');
|
|
50
50
|
|
|
51
51
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
52
52
|
|
|
@@ -68,65 +68,65 @@ function _interopNamespace(e) {
|
|
|
68
68
|
return Object.freeze(n);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
var
|
|
72
|
-
var
|
|
73
|
-
var vb__default = /*#__PURE__*/_interopDefault(vb);
|
|
71
|
+
var jb__default = /*#__PURE__*/_interopDefault(jb);
|
|
72
|
+
var he__namespace = /*#__PURE__*/_interopNamespace(he);
|
|
74
73
|
var xb__default = /*#__PURE__*/_interopDefault(xb);
|
|
75
74
|
var kb__default = /*#__PURE__*/_interopDefault(kb);
|
|
76
|
-
var
|
|
75
|
+
var wb__default = /*#__PURE__*/_interopDefault(wb);
|
|
76
|
+
var bo__namespace = /*#__PURE__*/_interopNamespace(bo);
|
|
77
77
|
var Xr__namespace = /*#__PURE__*/_interopNamespace(Xr);
|
|
78
78
|
var to__namespace = /*#__PURE__*/_interopNamespace(to);
|
|
79
79
|
var Yr__namespace = /*#__PURE__*/_interopNamespace(Yr);
|
|
80
80
|
var cn__namespace = /*#__PURE__*/_interopNamespace(cn);
|
|
81
|
-
var
|
|
81
|
+
var Lo__namespace = /*#__PURE__*/_interopNamespace(Lo);
|
|
82
82
|
var je__namespace = /*#__PURE__*/_interopNamespace(je);
|
|
83
83
|
var Je__namespace = /*#__PURE__*/_interopNamespace(Je);
|
|
84
84
|
var ro__namespace = /*#__PURE__*/_interopNamespace(ro);
|
|
85
85
|
var so__namespace = /*#__PURE__*/_interopNamespace(so);
|
|
86
86
|
var Ae__namespace = /*#__PURE__*/_interopNamespace(Ae);
|
|
87
|
-
var
|
|
87
|
+
var Co__namespace = /*#__PURE__*/_interopNamespace(Co);
|
|
88
88
|
var Ve__namespace = /*#__PURE__*/_interopNamespace(Ve);
|
|
89
89
|
var Fa__namespace = /*#__PURE__*/_interopNamespace(Fa);
|
|
90
|
-
var
|
|
90
|
+
var Jo__namespace = /*#__PURE__*/_interopNamespace(Jo);
|
|
91
91
|
|
|
92
|
-
var Js=Object.defineProperty;var a=(e,t)=>Js(e,"name",{value:t,configurable:true});var ei=(e,t)=>()=>(e&&(t=e(e=0)),t);var el=(e,t)=>{for(var o in t)Js(e,o,{get:t[o],enumerable:true});};async function Hi(e){let t=new Uint8Array(e,0,Math.min(4,e.byteLength));if(t[0]!==80||t[1]!==75||t[2]!==3||t[3]!==4)return e;let o=await Vb__default.default.loadAsync(e,{checkCRC32:true});if(!o.file("ppt/presentation.xml"))return e;let n=false,r=o.file(/^ppt\/(?:presentation\.xml|(?:theme|slides|slideLayouts|slideMasters|notesSlides|notesMasters)\/[^/]+\.xml)$/);for(let i of r){let s=await i.async("text"),l=new DOMParser().parseFromString(s,"application/xml");if(l.getElementsByTagName("parsererror").length)throw new Error(`Invalid PPTX XML: ${i.name}`);let d=false;for(let c of Array.from(l.getElementsByTagNameNS(ca,"pPr")))c.getAttribute("algn")==="c"&&(c.setAttribute("algn","ctr"),d=true);for(let c of Array.from(l.getElementsByTagNameNS(jb,"sldSz")))c.getAttribute("type")==="wide"&&(c.setAttribute("type","custom"),d=true);for(let c of Array.from(l.getElementsByTagNameNS(ca,"fmtScheme")))for(let u of Gb){let m=Array.from(c.children).find(g=>g.namespaceURI===ca&&g.localName===u);if(!m)continue;let p=Array.from(m.children).filter(g=>g.namespaceURI===ca);if(!(p.length===0||p.length>=3)){for(let g=p.length;g<3;g++)m.appendChild(p[p.length-1].cloneNode(true));d=true;}}d&&(o.file(i.name,new XMLSerializer().serializeToString(l)),n=true);}return n?o.generateAsync({type:"arraybuffer"}):e}var jb,ca,Gb,Wi=ei(()=>{jb="http://schemas.openxmlformats.org/presentationml/2006/main",ca="http://schemas.openxmlformats.org/drawingml/2006/main",Gb=["fillStyleLst","lnStyleLst","effectStyleLst","bgFillStyleLst"];a(Hi,"repairGeneratedPptx");});var ua={};el(ua,{calculatePptxRenderLayout:()=>Fi,renderPptxSlide:()=>tc,sanitizePptxSource:()=>ec});function Yb(e){let t=e.match(Xb);if(t)return t[2].replace(/^\//,"")}async function ec(e){e=await Hi(e);let t=await Vb__default.default.loadAsync(e),o=t.file(Jd);if(!o)return e;let n=await o.async("text"),r=n.replace(Kb,i=>{let s=Yb(i);return s&&!t.file(s)?"":i});return r===n?e:(t.file(Jd,r),t.generateAsync({type:"arraybuffer"}))}function Fi(e,t){let o=Math.max(1,e.width),n=Math.max(1,e.height),r=Math.max(1,t.width-16),i=Math.max(1,t.height-16),s=Math.max(1,Math.floor(Math.min(r,i*o/n))),l=s/o,d=Math.max(1,Math.floor(n*l));return {width:s,height:d,viewportHeight:Math.max(t.height,d+16),scale:l}}function tc(e,t,o){let n=Fi(e.pptx,o);return e.options.width=n.width,e.options.height=n.viewportHeight,e.wrapper.style.width=`${n.width}px`,e.wrapper.style.height=`${n.viewportHeight}px`,e.wrapper.style.overflow="visible",e.htmlRender.scale=n.scale,e.htmlRender.renderPort={width:n.width,height:n.height,left:0,top:0},e.htmlRender.options.viewPort={width:n.width,height:n.viewportHeight},e.renderSingleSlide(t),n}var Jd,Kb,Xb,lr=ei(()=>{Wi();Jd="[Content_Types].xml",Kb=/<Override\b[^>]*\/\s*>/g,Xb=/\bPartName\s*=\s*(["'])(.*?)\1/;a(Yb,"getDeclaredPartPath");a(ec,"sanitizePptxSource");a(Fi,"calculatePptxRenderLayout");a(tc,"renderPptxSlide");});var pa={};el(pa,{createArtifactPresentation:()=>rc,decodeArtifactDocument:()=>oc,decodeArtifactSpreadsheet:()=>nc});async function oc(e){let[{default:t},{default:o}]=await Promise.all([import('mammoth'),import('dompurify')]),n=await t.convertToHtml({arrayBuffer:e},{convertImage:t.images.dataUri});return o.sanitize(n.value)}async function nc(e){let{default:t}=await import('read-excel-file/browser');return t(e)}async function rc(e,t,o){let[{init:n},{sanitizePptxSource:r}]=await Promise.all([import('pptx-preview'),Promise.resolve().then(()=>(lr(),ua))]),i=await r(t),s=n(e,{...o,mode:"slide"});try{return await s.load(i),s}catch(l){throw s.destroy(),l}}var dr=ei(()=>{a(oc,"decodeArtifactDocument");a(nc,"decodeArtifactSpreadsheet");a(rc,"createArtifactPresentation");});var Pp={page:["background"],canvas:["background"],surface:["card"],inset:["secondary"],field:["muted"],hover:["accent"],"hover-2":["accent"],ink:["foreground"],"ink-2":["muted-foreground"],"ink-3":["muted-foreground"],line:["border"],"line-strong":["input","border"],"line-soft":["border"],accent:["primary"],"accent-ink":["primary"],"color-white":["primary-foreground"],green:["success"],orange:["warning"],red:["destructive"],"tooltip-bg":["popover"],"tooltip-fg":["popover-foreground"],"tooltip-muted":["muted-foreground"],"tooltip-border":["border"],"monogram-fill":["primary"],"filter-todo":["warning"],"filter-progress":["primary"],"filter-done":["success"],"flow-condition":["primary"],"flow-branch":["warning"],"chart-alert":["destructive"]},Rp={"radius-control":["semantic.ui.radius.control","semantic.radius.base"],"radius-card":["semantic.ui.radius.container","semantic.radius.base"],"radius-chip":["semantic.ui.radius.content","semantic.radius.base"],shadow:["semantic.bento.default.shadow","semantic.shadow.card"],"sidebar-row-height":["semantic.ui.control.height.sm"],"composer-control-height":["semantic.ui.control.height.sm"],"composer-gap":["semantic.ui.spacing.controlGap"]},tl=["xs","sm","base","lg","xl"],Mp=["normal","medium","semibold","bold"],ti=new WeakMap;function ol(e){if(e&&ti.has(e))return ti.get(e);let t={},o=a(l=>e&&l.map(d=>themeSystem.getThemeTokenCssValue(e,d)).find(d=>d!==void 0),"read"),n=a((l,d)=>{t[`--bui-token-${l}`]=o(d)??"initial";},"token");for(let[l,d]of Object.entries(Rp))n(l,d);n("primary",["semantic.color.primary"]),n("primary-foreground",["semantic.color.primary-foreground"]),n("focus-ring",["semantic.color.ring"]);for(let l of ["success","warning","destructive"])n(`${l}-foreground`,[`semantic.color.${l}-foreground`]);n("font-family",["semantic.font.body"]),n("font-mono",["semantic.font.mono"]);for(let l of ["sidebar-inset","sidebar-padding","sidebar-section-gap","composer-inset","composer-padding","composer-spacing"])n(l,[]);for(let l of tl)n(`font-size-${l}`,[`semantic.font.size.${l}`]),n(`line-height-${l}`,[`semantic.font.lineHeight.${l}`]);if(!e)return Object.freeze(t);for(let l of tl){let d=t[`--bui-token-font-size-${l}`];d!=="initial"&&(t[`--bui-text-${l}`]=d);}for(let[l,d]of Object.entries(Pp)){let c=o(d.map(u=>`semantic.color.${u}`));c!==void 0&&(t[`--bui-${l}`]=c);}for(let[l,d]of [["font-inter","body"],["font-mono-face","mono"]]){let c=o([`semantic.font.${d}`]);c!==void 0&&(t[`--bui-${l}`]=c);}for(let l of Mp){let d=o([`semantic.font.weight.${l}`]);d!==void 0&&(t[`--bui-font-weight-${l}`]=d);}let r=e.cssValues[`semantic.spacing.global.${e.density}`]??e.cssValues["semantic.spacing.global"];r!==void 0&&(t["--bui-spacing"]=`calc(${r} / 2)`),r!==void 0&&(t["--bui-token-sidebar-inset"]="0px",t["--bui-token-sidebar-padding"]=`calc(${r} / 2)`,t["--bui-token-sidebar-section-gap"]=r,t["--bui-token-sidebar-row-height"]==="initial"&&(t["--bui-token-sidebar-row-height"]=`calc(var(--bui-token-line-height-sm, 1.5em) + ${r})`),t["--bui-token-composer-inset"]=r,t["--bui-token-composer-padding"]=`calc(${r} / 2)`,t["--bui-token-composer-spacing"]=`calc(${r} / 3)`,t["--bui-token-composer-gap"]==="initial"&&(t["--bui-token-composer-gap"]=`calc(${r} / 2)`),t["--bui-token-composer-control-height"]==="initial"&&(t["--bui-token-composer-control-height"]=`calc(var(--bui-token-line-height-sm, 1.5em) + ${r})`));for(let l of ["accent","green","orange","red"])t[`--bui-${l}`]&&(t[`--bui-${l}-tint`]=`color-mix(in srgb, var(--bui-${l}) 12%, var(--bui-surface))`);let i=t["--bui-token-shadow"];if(i!=="initial")for(let l of ["xs","sm","md","lg","btn","card","raised","overlay"])t[`--bui-shadow-${l}`]=i;let s=Object.freeze(t);return ti.set(e,s),s}a(ol,"resolveBeautifulTheme");var nl=ye.createContext(null);function re({children:e,portal:t=false}){let o=ye.useContext(nl),n=provider.useMonkeysResolvedTheme(),r=ye.useMemo(()=>ol(n),[n]),i=ye.useRef(null),[s,l]=ye.useState(false);ye.useEffect(()=>{if(o||n)return;let c=[];for(let p=i.current?.parentElement;p;p=p.parentElement)c.push(p);let u=a(()=>l(c.some(p=>p.classList.contains("dark")||p.getAttribute("data-monkeys-theme-mode")==="dark")),"update");u();let m=new MutationObserver(u);return c.forEach(p=>m.observe(p,{attributes:true,attributeFilter:["class","data-monkeys-theme-mode"]})),()=>m.disconnect()},[o,n]);let d=n?.colorMode==="dark"||(n?false:o?.dark??s);return o&&o.theme===n&&!t?jsxRuntime.jsx(jsxRuntime.Fragment,{children:e}):jsxRuntime.jsx(nl.Provider,{value:{dark:d,theme:n},children:jsxRuntime.jsx("span",{ref:i,"data-bui-color-mode":n?.colorMode,className:"monkeys-beautiful"+(d?" monkeys-beautiful-dark":""),style:{...r,display:"contents"},children:e})})}a(re,"BUIScope");var rl={close:"Close",noFiles:"No files"},al={close:"\u5173\u95ED",noFiles:"\u6682\u65E0\u6587\u4EF6"};function Ar(){let{locale:e}=provider.useMonkeysLocale(),t=provider.useMonkeysLocaleMessages(),o=e==="zh-CN"?al:rl;return n=>t.beautiful?.[n]??o[n]}a(Ar,"useAgentUICopy");function ni({id:e,title:t,hideHeader:o=false,closeLabel:n,onClose:r,children:i,footer:s}){let l=Ar(),d=ye.useRef(null);return ye.useEffect(()=>{r&&d.current?.focus();},[]),jsxRuntime.jsx(re,{children:jsxRuntime.jsxs("div",{id:e,ref:d,role:"region","aria-label":t,tabIndex:-1,className:"summary-panel",onKeyDown:c=>{c.key==="Escape"&&r&&(c.stopPropagation(),r());},children:[!o&&jsxRuntime.jsxs("div",{className:"summary-panel-header",children:[jsxRuntime.jsx("span",{children:t}),r&&jsxRuntime.jsx(beautiful.BUIButton,{size:"xs",variant:"quiet","aria-label":n??l("close"),onClick:r,children:jsxRuntime.jsx(lucideReact.X,{size:16})})]}),jsxRuntime.jsx("div",{className:"summary-panel-content",style:o?{marginTop:0}:void 0,children:i}),s&&jsxRuntime.jsx("div",{className:"summary-panel-footer",children:s})]})})}a(ni,"AgentSummaryPanel");function ri({groups:e=[],emptyLabel:t,onAction:o,onSelect:n,onLoadMore:r,onRetry:i}){let s=Ar(),l=e.filter(d=>d.items.length>0||d.emptyLabel||d.statusLabel);return jsxRuntime.jsx(re,{children:jsxRuntime.jsxs("div",{className:"file-list",children:[!l.length&&jsxRuntime.jsx("p",{className:"file-list-empty",children:t??s("noFiles")}),l.map(d=>jsxRuntime.jsxs("section",{className:"file-list-group","aria-label":d.label,"aria-busy":d.loading,children:[jsxRuntime.jsxs("h3",{children:[d.label," ",jsxRuntime.jsxs("span",{children:["(",d.items.length,")"]})]}),d.statusLabel&&jsxRuntime.jsx("p",{className:"file-list-empty",role:d.retryLabel?"alert":"status",children:d.statusLabel}),!d.loading&&!d.statusLabel&&!d.items.length&&d.emptyLabel&&jsxRuntime.jsx("p",{className:"file-list-empty",children:d.emptyLabel}),jsxRuntime.jsx("ul",{children:d.items.map(c=>jsxRuntime.jsxs("li",{children:[c.icon==="data"?jsxRuntime.jsx(lucideReact.Database,{size:16,"aria-hidden":"true",className:"file-list-icon"}):c.icon==="terminal"?jsxRuntime.jsx(lucideReact.Terminal,{size:16,"aria-hidden":"true",className:"file-list-icon"}):c.icon==="text"?jsxRuntime.jsx(lucideReact.MessageSquare,{size:16,"aria-hidden":"true",className:"file-list-icon"}):c.icon==="link"?jsxRuntime.jsx(lucideReact.Globe,{size:16,"aria-hidden":"true",className:"file-list-icon"}):jsxRuntime.jsx(lucideReact.File,{size:16,"aria-hidden":"true",className:"file-list-icon"}),jsxRuntime.jsxs("div",{className:"file-list-details",children:[c.openLabel&&n?jsxRuntime.jsx(beautiful.BUIButton,{variant:"quiet",size:"xs",className:"file-list-open","aria-label":c.openLabel,"aria-pressed":c.selected,onClick:()=>n(c.id),title:c.name,children:c.name}):jsxRuntime.jsx("p",{title:c.name,children:c.name}),c.description&&jsxRuntime.jsx("small",{children:c.description})]}),c.actionLabel&&o&&jsxRuntime.jsx(beautiful.BUIButton,{size:"xs",variant:"quiet",disabled:c.disabled,"aria-label":c.actionLabel,onClick:()=>o(c.id),children:jsxRuntime.jsx(lucideReact.Download,{size:14})})]},c.id))}),d.moreLabel&&r&&jsxRuntime.jsx(beautiful.BUIButton,{variant:"quiet",size:"xs",disabled:d.loading,onClick:()=>r(d.id),children:d.moreLabel}),d.retryLabel&&i&&jsxRuntime.jsx(beautiful.BUIButton,{variant:"quiet",size:"xs",onClick:()=>i(d.id),children:d.retryLabel})]},d.id))]})})}a(ri,"AgentFileList");function sl(...e){return tailwindMerge.twMerge(clsx.clsx(e))}a(sl,"cn");var ai="shadow-[inset_0_1px_0_rgba(255,255,255,0.14)]",em=classVarianceAuthority.cva(`inline-flex items-center justify-center font-medium select-none
|
|
92
|
+
var Js=Object.defineProperty;var a=(e,t)=>Js(e,"name",{value:t,configurable:true});var ei=(e,t)=>()=>(e&&(t=e(e=0)),t);var el=(e,t)=>{for(var o in t)Js(e,o,{get:t[o],enumerable:true});};async function Hi(e){let t=new Uint8Array(e,0,Math.min(4,e.byteLength));if(t[0]!==80||t[1]!==75||t[2]!==3||t[3]!==4)return e;let o=await jb__default.default.loadAsync(e,{checkCRC32:true});if(!o.file("ppt/presentation.xml"))return e;let n=false,r=o.file(/^ppt\/(?:presentation\.xml|(?:theme|slides|slideLayouts|slideMasters|notesSlides|notesMasters)\/[^/]+\.xml)$/);for(let i of r){let s=await i.async("text"),l=new DOMParser().parseFromString(s,"application/xml");if(l.getElementsByTagName("parsererror").length)throw new Error(`Invalid PPTX XML: ${i.name}`);let d=false;for(let c of Array.from(l.getElementsByTagNameNS(ca,"pPr")))c.getAttribute("algn")==="c"&&(c.setAttribute("algn","ctr"),d=true);for(let c of Array.from(l.getElementsByTagNameNS(Gb,"sldSz")))c.getAttribute("type")==="wide"&&(c.setAttribute("type","custom"),d=true);for(let c of Array.from(l.getElementsByTagNameNS(ca,"fmtScheme")))for(let u of qb){let m=Array.from(c.children).find(g=>g.namespaceURI===ca&&g.localName===u);if(!m)continue;let p=Array.from(m.children).filter(g=>g.namespaceURI===ca);if(!(p.length===0||p.length>=3)){for(let g=p.length;g<3;g++)m.appendChild(p[p.length-1].cloneNode(true));d=true;}}d&&(o.file(i.name,new XMLSerializer().serializeToString(l)),n=true);}return n?o.generateAsync({type:"arraybuffer"}):e}var Gb,ca,qb,Wi=ei(()=>{Gb="http://schemas.openxmlformats.org/presentationml/2006/main",ca="http://schemas.openxmlformats.org/drawingml/2006/main",qb=["fillStyleLst","lnStyleLst","effectStyleLst","bgFillStyleLst"];a(Hi,"repairGeneratedPptx");});var ua={};el(ua,{calculatePptxRenderLayout:()=>Fi,renderPptxSlide:()=>tc,sanitizePptxSource:()=>ec});function Qb(e){let t=e.match(Yb);if(t)return t[2].replace(/^\//,"")}async function ec(e){e=await Hi(e);let t=await jb__default.default.loadAsync(e),o=t.file(Jd);if(!o)return e;let n=await o.async("text"),r=n.replace(Xb,i=>{let s=Qb(i);return s&&!t.file(s)?"":i});return r===n?e:(t.file(Jd,r),t.generateAsync({type:"arraybuffer"}))}function Fi(e,t){let o=Math.max(1,e.width),n=Math.max(1,e.height),r=Math.max(1,t.width-16),i=Math.max(1,t.height-16),s=Math.max(1,Math.floor(Math.min(r,i*o/n))),l=s/o,d=Math.max(1,Math.floor(n*l));return {width:s,height:d,viewportHeight:Math.max(t.height,d+16),scale:l}}function tc(e,t,o){let n=Fi(e.pptx,o);return e.options.width=n.width,e.options.height=n.viewportHeight,e.wrapper.style.width=`${n.width}px`,e.wrapper.style.height=`${n.viewportHeight}px`,e.wrapper.style.overflow="visible",e.htmlRender.scale=n.scale,e.htmlRender.renderPort={width:n.width,height:n.height,left:0,top:0},e.htmlRender.options.viewPort={width:n.width,height:n.viewportHeight},e.renderSingleSlide(t),n}var Jd,Xb,Yb,dr=ei(()=>{Wi();Jd="[Content_Types].xml",Xb=/<Override\b[^>]*\/\s*>/g,Yb=/\bPartName\s*=\s*(["'])(.*?)\1/;a(Qb,"getDeclaredPartPath");a(ec,"sanitizePptxSource");a(Fi,"calculatePptxRenderLayout");a(tc,"renderPptxSlide");});var pa={};el(pa,{createArtifactPresentation:()=>rc,decodeArtifactDocument:()=>oc,decodeArtifactSpreadsheet:()=>nc});async function oc(e){let[{default:t},{default:o}]=await Promise.all([import('mammoth'),import('dompurify')]),n=await t.convertToHtml({arrayBuffer:e},{convertImage:t.images.dataUri});return o.sanitize(n.value)}async function nc(e){let{default:t}=await import('read-excel-file/browser');return t(e)}async function rc(e,t,o){let[{init:n},{sanitizePptxSource:r}]=await Promise.all([import('pptx-preview'),Promise.resolve().then(()=>(dr(),ua))]),i=await r(t),s=n(e,{...o,mode:"slide"});try{return await s.load(i),s}catch(l){throw s.destroy(),l}}var cr=ei(()=>{a(oc,"decodeArtifactDocument");a(nc,"decodeArtifactSpreadsheet");a(rc,"createArtifactPresentation");});var Rp={page:["background"],canvas:["background"],surface:["card"],inset:["secondary"],field:["muted"],hover:["accent"],"hover-2":["accent"],ink:["foreground"],"ink-2":["muted-foreground"],"ink-3":["muted-foreground"],line:["border"],"line-strong":["input","border"],"line-soft":["border"],accent:["primary"],"accent-ink":["primary"],"color-white":["primary-foreground"],green:["success"],orange:["warning"],red:["destructive"],"tooltip-bg":["popover"],"tooltip-fg":["popover-foreground"],"tooltip-muted":["muted-foreground"],"tooltip-border":["border"],"monogram-fill":["primary"],"filter-todo":["warning"],"filter-progress":["primary"],"filter-done":["success"],"flow-condition":["primary"],"flow-branch":["warning"],"chart-alert":["destructive"]},Mp={"radius-control":["semantic.ui.radius.control","semantic.radius.base"],"radius-card":["semantic.ui.radius.container","semantic.radius.base"],"radius-chip":["semantic.ui.radius.content","semantic.radius.base"],shadow:["semantic.bento.default.shadow","semantic.shadow.card"],"sidebar-row-height":["semantic.ui.control.height.sm"],"composer-control-height":["semantic.ui.control.height.sm"],"composer-gap":["semantic.ui.spacing.controlGap"]},tl=["xs","sm","base","lg","xl"],Ap=["normal","medium","semibold","bold"],ti=new WeakMap;function ol(e){if(e&&ti.has(e))return ti.get(e);let t={},o=a(l=>e&&l.map(d=>themeSystem.getThemeTokenCssValue(e,d)).find(d=>d!==void 0),"read"),n=a((l,d)=>{t[`--bui-token-${l}`]=o(d)??"initial";},"token");for(let[l,d]of Object.entries(Mp))n(l,d);n("primary",["semantic.color.primary"]),n("primary-foreground",["semantic.color.primary-foreground"]),n("focus-ring",["semantic.color.ring"]);for(let l of ["success","warning","destructive"])n(`${l}-foreground`,[`semantic.color.${l}-foreground`]);n("font-family",["semantic.font.body"]),n("font-mono",["semantic.font.mono"]);for(let l of ["sidebar-inset","sidebar-padding","sidebar-section-gap","composer-inset","composer-padding","composer-spacing"])n(l,[]);for(let l of tl)n(`font-size-${l}`,[`semantic.font.size.${l}`]),n(`line-height-${l}`,[`semantic.font.lineHeight.${l}`]);if(!e)return Object.freeze(t);for(let l of tl){let d=t[`--bui-token-font-size-${l}`];d!=="initial"&&(t[`--bui-text-${l}`]=d);}for(let[l,d]of Object.entries(Rp)){let c=o(d.map(u=>`semantic.color.${u}`));c!==void 0&&(t[`--bui-${l}`]=c);}for(let[l,d]of [["font-inter","body"],["font-mono-face","mono"]]){let c=o([`semantic.font.${d}`]);c!==void 0&&(t[`--bui-${l}`]=c);}for(let l of Ap){let d=o([`semantic.font.weight.${l}`]);d!==void 0&&(t[`--bui-font-weight-${l}`]=d);}let r=e.cssValues[`semantic.spacing.global.${e.density}`]??e.cssValues["semantic.spacing.global"];r!==void 0&&(t["--bui-spacing"]=`calc(${r} / 2)`),r!==void 0&&(t["--bui-token-sidebar-inset"]="0px",t["--bui-token-sidebar-padding"]=`calc(${r} / 2)`,t["--bui-token-sidebar-section-gap"]=r,t["--bui-token-sidebar-row-height"]==="initial"&&(t["--bui-token-sidebar-row-height"]=`calc(var(--bui-token-line-height-sm, 1.5em) + ${r})`),t["--bui-token-composer-inset"]=r,t["--bui-token-composer-padding"]=`calc(${r} / 2)`,t["--bui-token-composer-spacing"]=`calc(${r} / 3)`,t["--bui-token-composer-gap"]==="initial"&&(t["--bui-token-composer-gap"]=`calc(${r} / 2)`),t["--bui-token-composer-control-height"]==="initial"&&(t["--bui-token-composer-control-height"]=`calc(var(--bui-token-line-height-sm, 1.5em) + ${r})`));for(let l of ["accent","green","orange","red"])t[`--bui-${l}`]&&(t[`--bui-${l}-tint`]=`color-mix(in srgb, var(--bui-${l}) 12%, var(--bui-surface))`);let i=t["--bui-token-shadow"];if(i!=="initial")for(let l of ["xs","sm","md","lg","btn","card","raised","overlay"])t[`--bui-shadow-${l}`]=i;let s=Object.freeze(t);return ti.set(e,s),s}a(ol,"resolveBeautifulTheme");var nl=he.createContext(null);function ee({children:e,portal:t=false}){let o=he.useContext(nl),n=provider.useMonkeysResolvedTheme(),r=he.useMemo(()=>ol(n),[n]),i=he.useRef(null),[s,l]=he.useState(false);he.useEffect(()=>{if(o||n)return;let c=[];for(let p=i.current?.parentElement;p;p=p.parentElement)c.push(p);let u=a(()=>l(c.some(p=>p.classList.contains("dark")||p.getAttribute("data-monkeys-theme-mode")==="dark")),"update");u();let m=new MutationObserver(u);return c.forEach(p=>m.observe(p,{attributes:true,attributeFilter:["class","data-monkeys-theme-mode"]})),()=>m.disconnect()},[o,n]);let d=n?.colorMode==="dark"||(n?false:o?.dark??s);return o&&o.theme===n&&!t?jsxRuntime.jsx(jsxRuntime.Fragment,{children:e}):jsxRuntime.jsx(nl.Provider,{value:{dark:d,theme:n},children:jsxRuntime.jsx("span",{ref:i,"data-bui-color-mode":n?.colorMode,className:"monkeys-beautiful"+(d?" monkeys-beautiful-dark":""),style:{...r,display:"contents"},children:e})})}a(ee,"BUIScope");var rl={close:"Close",noFiles:"No files"},al={close:"\u5173\u95ED",noFiles:"\u6682\u65E0\u6587\u4EF6"};function Ar(){let{locale:e}=provider.useMonkeysLocale(),t=provider.useMonkeysLocaleMessages(),o=e==="zh-CN"?al:rl;return n=>t.beautiful?.[n]??o[n]}a(Ar,"useAgentUICopy");function ni({id:e,title:t,hideHeader:o=false,closeLabel:n,onClose:r,children:i,footer:s}){let l=Ar(),d=he.useRef(null);return he.useEffect(()=>{r&&d.current?.focus();},[]),jsxRuntime.jsx(ee,{children:jsxRuntime.jsxs("div",{id:e,ref:d,role:"region","aria-label":t,tabIndex:-1,className:"summary-panel",onKeyDown:c=>{c.key==="Escape"&&r&&(c.stopPropagation(),r());},children:[!o&&jsxRuntime.jsxs("div",{className:"summary-panel-header",children:[jsxRuntime.jsx("span",{children:t}),r&&jsxRuntime.jsx(beautiful.BUIButton,{size:"xs",variant:"quiet","aria-label":n??l("close"),onClick:r,children:jsxRuntime.jsx(lucideReact.X,{size:16})})]}),jsxRuntime.jsx("div",{className:"summary-panel-content",style:o?{marginTop:0}:void 0,children:i}),s&&jsxRuntime.jsx("div",{className:"summary-panel-footer",children:s})]})})}a(ni,"AgentSummaryPanel");function ri({groups:e=[],emptyLabel:t,onAction:o,onSelect:n,onLoadMore:r,onRetry:i}){let s=Ar(),l=e.filter(d=>d.items.length>0||d.emptyLabel||d.statusLabel);return jsxRuntime.jsx(ee,{children:jsxRuntime.jsxs("div",{className:"file-list",children:[!l.length&&jsxRuntime.jsx("p",{className:"file-list-empty",children:t??s("noFiles")}),l.map(d=>jsxRuntime.jsxs("section",{className:"file-list-group","aria-label":d.label,"aria-busy":d.loading,children:[jsxRuntime.jsxs("h3",{children:[d.label," ",jsxRuntime.jsxs("span",{children:["(",d.items.length,")"]})]}),d.statusLabel&&jsxRuntime.jsx("p",{className:"file-list-empty",role:d.retryLabel?"alert":"status",children:d.statusLabel}),!d.loading&&!d.statusLabel&&!d.items.length&&d.emptyLabel&&jsxRuntime.jsx("p",{className:"file-list-empty",children:d.emptyLabel}),jsxRuntime.jsx("ul",{children:d.items.map(c=>jsxRuntime.jsxs("li",{children:[c.icon==="data"?jsxRuntime.jsx(lucideReact.Database,{size:16,"aria-hidden":"true",className:"file-list-icon"}):c.icon==="terminal"?jsxRuntime.jsx(lucideReact.Terminal,{size:16,"aria-hidden":"true",className:"file-list-icon"}):c.icon==="text"?jsxRuntime.jsx(lucideReact.MessageSquare,{size:16,"aria-hidden":"true",className:"file-list-icon"}):c.icon==="link"?jsxRuntime.jsx(lucideReact.Globe,{size:16,"aria-hidden":"true",className:"file-list-icon"}):jsxRuntime.jsx(lucideReact.File,{size:16,"aria-hidden":"true",className:"file-list-icon"}),jsxRuntime.jsxs("div",{className:"file-list-details",children:[c.openLabel&&n?jsxRuntime.jsx(beautiful.BUIButton,{variant:"quiet",size:"xs",className:"file-list-open","aria-label":c.openLabel,"aria-pressed":c.selected,onClick:()=>n(c.id),title:c.name,children:c.name}):jsxRuntime.jsx("p",{title:c.name,children:c.name}),c.description&&jsxRuntime.jsx("small",{children:c.description})]}),c.actionLabel&&o&&jsxRuntime.jsx(beautiful.BUIButton,{size:"xs",variant:"quiet",disabled:c.disabled,"aria-label":c.actionLabel,onClick:()=>o(c.id),children:jsxRuntime.jsx(lucideReact.Download,{size:14})})]},c.id))}),d.moreLabel&&r&&jsxRuntime.jsx(beautiful.BUIButton,{variant:"quiet",size:"xs",disabled:d.loading,onClick:()=>r(d.id),children:d.moreLabel}),d.retryLabel&&i&&jsxRuntime.jsx(beautiful.BUIButton,{variant:"quiet",size:"xs",onClick:()=>i(d.id),children:d.retryLabel})]},d.id))]})})}a(ri,"AgentFileList");function sl(...e){return tailwindMerge.twMerge(clsx.clsx(e))}a(sl,"cn");var ai="shadow-[inset_0_1px_0_rgba(255,255,255,0.14)]",tm=classVarianceAuthority.cva(`inline-flex items-center justify-center font-medium select-none
|
|
93
93
|
transition-[transform,background-color,opacity] duration-150 ease-out
|
|
94
|
-
active:scale-[0.96] disabled:opacity-50 disabled:pointer-events-none`,{variants:{variant:{primary:`bg-ink text-canvas hover:opacity-90 dark:bg-ink dark:text-canvas ${ai}`,secondary:"bg-surface text-ink shadow-btn hover:bg-inset aria-expanded:bg-hover",ghost:"bg-hover-2 text-ink hover:bg-line-strong",accent:`bg-accent text-white hover:bg-accent-ink ${ai}`,success:`bg-green text-white hover:brightness-95 ${ai}`,quiet:"text-ink hover:bg-hover"},size:{xs:"h-7 rounded-full px-2.5 text-[12px] font-normal leading-none gap-1",sm:"h-[27px] px-3 text-[13px] leading-none rounded-full gap-1.5",md:"px-4 py-[9px] text-sm leading-none rounded-full gap-2"}},defaultVariants:{variant:"secondary",size:"md"}}),Te=ye.forwardRef(a(function({variant:t,size:o,className:n,...r},i){return jsxRuntime.jsx(re,{children:jsxRuntime.jsx("button",{ref:i,className:sl(em({variant:t,size:o}),n),...r})})},"BUIButton"));var dl={"Chat history":"chatHistory","Start a conversation":"startAConversation","Stop response":"stopResponse","Load more":"loadMore","% average":"average","'s screen":"sScreen","About grounding":"aboutGrounding","Answer could not be sent":"questionAnswerFailed","Answer sent":"questionAnswerSent","Cancel question":"questionCancel",Cancelling:"questionCancelling","Question cancelled":"questionCancelled",Accepted:"accepted","Add attachments and sources":"addAttachmentsAndSources","Add calculation":"addCalculation","Add property":"addProperty",Adjust:"adjust","Adjust your search to try again":"adjustYourSearchToTryAgain",Advisor:"advisor","All chunks":"allChunks","Allocation segments":"allocationSegments",Alternatives:"alternatives","Answers sent":"answersSent",Apply:"apply",Behavior:"behavior","Calculating\u2026":"calculating","Calculation inputs":"calculationInputs","Chat prompt":"chatPrompt",Chats:"chats","Choose model":"chooseModel","Clear search":"clearSearch","Clear selection":"clearSelection","Click changed rows to toggle":"clickChangedRowsToToggle","Close chat search":"closeChatSearch",Collapse:"collapse","Collapse sidebar":"collapseSidebar","Compact columns":"compactColumns","Companies table. Scroll horizontally and vertically to view all columns and records.":"companiesTableScrollHorizontallyAndVerticallyToViewAllColumnsAndRecords",Company:"company",Completed:"completed","Connecting to agent's screen":"connectingToAgentSScreen",Continue:"continue","Continue in new conversation":"continueInNewConversation","Contribution snapshot across current inventory value. Segment selection changes the inspected group without moving the card.":"contributionSnapshotAcrossCurrentInventoryValueSegmentSelectionChangesTheInspectedGroupWithoutMovingTheCard",Copied:"copied",Copy:"copy","Copy code":"copyCode","Custom answer":"customAnswer",Date:"date","Describe edits":"describeEdits",Discard:"discard",Dismiss:"dismiss",Edited:"edited",End:"end","Enter a message":"enterAMessage","Expand sidebar":"expandSidebar",Failed:"failed","Follow-ups":"followUps","Go calculate":"goCalculate","Grounding lets the model verify generated values against connected sources.":"groundingLetsTheModelVerifyGeneratedValuesAgainstConnectedSources","Hide from view":"hideFromView",If:"if",Insights:"insights",Keep:"keep",Layout:"layout",More:"more","More settings":"moreSettings","New property":"newProperty","Next question":"nextQuestion","No chats found":"noChatsFound","No matches for \u201C":"noMatchesFor","No results found":"noResultsFound",Open:"open","Open approval":"openApproval","Other options":"otherOptions","Previous question":"previousQuestion",Prompt:"prompt",Recommendation:"recommendation",Recommended:"recommended","Reset column widths":"resetColumnWidths","Resize Company column":"resizeCompanyColumn","Scrollable task table":"scrollableTaskTable",Search:"search","Search chat history":"searchChatHistory","Search chats":"searchChats","Search\u2026":"search","Select inputs":"selectInputs","Select type":"selectType",Send:"send","Send answer":"sendAnswer","Send edit instruction":"sendEditInstruction","Set a prompt (press @ to mention an input)":"setAPromptPressToMentionAnInput","Sign out":"signOut",Skip:"skip",Snapshot:"snapshot","Something else\u2026":"somethingElse",Sending:"sending","Sending recommended answers in {seconds}s":"autoSendAnswers",Sources:"sources","Start over":"startOver",Status:"status","Table options":"tableOptions","Task name":"taskName","Teach a task":"teachATask","Tool calls":"toolCalls","Trend snapshot":"trendSnapshot","Try again":"tryAgain",Type:"type","Use values from":"useValuesFrom","Your answer":"answerPlaceholder",V:"v","Video unavailable":"videoUnavailable","Workspace navigation":"workspaceNavigation",and:"and",applied:"applied",count:"count",for:"for",h:"h",is:"is",links:"links",spent:"spent",Configuration:"configuration",New:"new",History:"history",edit:"edit",edits:"edits",removal:"removal",removals:"removals",addition:"addition",additions:"additions",change:"change",changes:"changes",Spend:"spend",Usage:"usage","Previous insight":"previousInsight","Next insight":"nextInsight",Connected:"connected",Connect:"connect","Type to search sources & files":"typeToSearchSourcesFiles","Type to search commands":"typeToSearchCommands","Listening\u2026":"listening","Stop dictation":"stopDictation","Start dictation":"startDictation",Unpin:"unpin",Pin:"pin","Show fewer actions":"showFewerActions","Show more actions":"showMoreActions",Retry:"retry",Like:"like",Dislike:"dislike","New workspace":"newWorkspace","Workspace settings":"workspaceSettings","Invite team members":"inviteTeamMembers",Loading:"loading",Thinking:"thinking","Thought complete":"thoughtComplete",Model:"model",Agent:"agent","View sources":"viewSources",Close:"close","No files":"noFiles",Done:"done",Edit:"edit","Done editing":"doneEditing","New chat":"newChat",All:"all","To do":"toDo","In Progress":"inProgress","Very strong":"veryStrong",Weak:"weak","Very weak":"veryWeak","No communication":"noCommunication",Cancel:"cancel",Improve:"improve",Explain:"explain",Shorten:"shorten",Tone:"tone",Grammar:"grammar","Write a message\u2026":"writeMessage","Select all companies":"selectAllCompanies",Categories:"categories","Last interaction":"lastInteraction","Connection strength":"connectionStrength",Links:"linksHeading","Property type":"propertyType",Tool:"tool",Grounding:"grounding",Inputs:"inputs","Required value":"requiredValue","Allow empty results":"allowEmptyResults","Show confidence":"showConfidence","Categories: {categories}":"categoriesSummary","Sort by {label}":"sortByLabel","Resize {label} column":"resizeColumn","Select {name}":"selectName","{column} calculation prompt":"columnCalculationPrompt","Proposed changes":"proposedChanges",Name:"name",Category:"category",Value:"value",Anomaly:"anomaly",Allocation:"allocation"},Nr={taskProgressTitle:"Task progress",taskProgressCurrent:"{current}/{total} {title}","taskProgressStatus.done":"Completed","taskProgressStatus.running":"In progress","taskProgressStatus.pending":"Pending","taskProgressStatus.failed":"Failed","taskProgressStatus.skipped":"Skipped","taskProgressStatus.stopped":"Stopped",recentClose:"Close",recentMore:"More actions for {title}",recentMoreLabel:"More",recentRunning:"Running",recentRename:"Rename",recentDelete:"Delete conversation",recentDeleteDescription:"Delete \u201C{title}\u201D? This conversation will be removed.",recentRenameDescription:"Choose a name for this conversation.",recentName:"Conversation name",recentCancel:"Cancel",recentSave:"Save",recentSaving:"Saving\u2026",recentActionFailed:"Could not confirm the change. Refresh the conversation list before trying again.",chatHistory:"Chat history",startAConversation:"Start a conversation",stopResponse:"Stop response",loadMore:"Load more",average:"% average",sScreen:"'s screen",aboutGrounding:"About grounding",questionPanel:"Questions",questionNavigation:"Question navigation",questionPosition:"{current} of {total}",questionAnswerFailed:"Answer could not be sent. Try again.",questionAnswerSent:"Answer sent",questionCancel:"Skip",questionCancelling:"Skipping\u2026",questionCancelled:"Skipped",answerPlaceholder:"Your answer",autoSendAnswers:"Sending recommended answers in {seconds}s",recommended:"Recommended",sendAnswer:"Send answer",sending:"Sending\u2026",accepted:"Accepted",addAttachmentsAndSources:"Add attachments and sources",addCalculation:"Add calculation",addProperty:"Add property",adjust:"Adjust",adjustYourSearchToTryAgain:"Adjust your search to try again",advisor:"Advisor",allChunks:"All chunks",allocationSegments:"Allocation segments",alternatives:"Alternatives",answersSent:"Answers sent",apply:"Apply",behavior:"Behavior",calculating:"Calculating\u2026",calculationInputs:"Calculation inputs",chatPrompt:"Chat prompt",chats:"Chats",chooseModel:"Choose model",clearSearch:"Clear search",clearSelection:"Clear selection",clickChangedRowsToToggle:"Click changed rows to toggle",closeChatSearch:"Close chat search",collapse:"Collapse",collapseSidebar:"Collapse sidebar",compactColumns:"Compact columns",companiesTableScrollHorizontallyAndVerticallyToViewAllColumnsAndRecords:"Companies table. Scroll horizontally and vertically to view all columns and records.",company:"Company",completed:"Completed",connectingToAgentSScreen:"Connecting to agent's screen",continue:"Continue",continueInNewConversation:"Continue in new conversation",contributionSnapshotAcrossCurrentInventoryValueSegmentSelectionChangesTheInspectedGroupWithoutMovingTheCard:"Contribution snapshot across current inventory value. Segment selection changes the inspected group without moving the card.",copied:"Copied",copy:"Copy",copyCode:"Copy code",customAnswer:"Custom answer",date:"Date",describeEdits:"Describe edits",discard:"Discard",dismiss:"Dismiss",edited:"Edited",end:"End",enterAMessage:"Enter a message",expandSidebar:"Expand sidebar",failed:"Failed",followUps:"Follow-ups",goCalculate:"Go calculate",groundingLetsTheModelVerifyGeneratedValuesAgainstConnectedSources:"Grounding lets the model verify generated values against connected sources.",hideFromView:"Hide from view",if:"If",insights:"Insights",keep:"Keep",layout:"Layout",more:"More",moreSettings:"More settings",newProperty:"New property",nextQuestion:"Next question",noChatsFound:"No chats found",noMatchesFor:"No matches for \u201C",noResultsFound:"No results found",open:"Open",openApproval:"Open approval",otherOptions:"Other options",previousQuestion:"Previous question",prompt:"Prompt",recommendation:"Recommendation",resetColumnWidths:"Reset column widths",resizeCompanyColumn:"Resize Company column",scrollableTaskTable:"Scrollable task table",search:"Search\u2026",searchChatHistory:"Search chat history",searchChats:"Search chats",selectInputs:"Select inputs",selectType:"Select type",send:"Send",sendEditInstruction:"Send edit instruction",setAPromptPressToMentionAnInput:"Set a prompt (press @ to mention an input)",signOut:"Sign out",skip:"Skip",snapshot:"Snapshot",somethingElse:"Something else\u2026",sources:"Sources",startOver:"Start over",status:"Status",tableOptions:"Table options",taskName:"Task name",teachATask:"Teach a task",toolCalls:"Tool calls",trendSnapshot:"Trend snapshot",tryAgain:"Try again",type:"Type",useValuesFrom:"Use values from",v:"V",videoUnavailable:"Video unavailable",workspaceNavigation:"Workspace navigation",and:"and",applied:"applied",count:"count",for:"for",h:"h",is:"is",links:"links",spent:"spent",configuration:"Configuration",new:"New",history:"History",edit:"Edit",edits:"edits",removal:"removal",removals:"removals",addition:"addition",additions:"additions",change:"change",changes:"changes",spend:"Spend",usage:"Usage",previousInsight:"Previous insight",nextInsight:"Next insight",connected:"Connected",connect:"Connect",typeToSearchSourcesFiles:"Type to search sources & files",typeToSearchCommands:"Type to search commands",listening:"Listening\u2026",stopDictation:"Stop dictation",startDictation:"Start dictation",unpin:"Unpin",pin:"Pin",showFewerActions:"Show fewer actions",showMoreActions:"Show more actions",retry:"Retry",like:"Like",dislike:"Dislike",newWorkspace:"New workspace",workspaceSettings:"Workspace settings",inviteTeamMembers:"Invite team members",loading:"Loading",thinking:"Thinking",thoughtComplete:"Thought complete",model:"Model",agent:"Agent",viewSources:"View sources",close:"Close",noFiles:"No files",done:"Done",doneEditing:"Done editing",newChat:"New chat",all:"All",toDo:"To do",inProgress:"In Progress",veryStrong:"Very strong",weak:"Weak",veryWeak:"Very weak",noCommunication:"No communication",cancel:"Cancel",improve:"Improve",explain:"Explain",shorten:"Shorten",tone:"Tone",grammar:"Grammar",screenTitle:"{name}'s screen",duration:"for {time}",noMatches:"No matches for \u201C{query}\u201D",editsApplied_one:"{count} edit applied",editsApplied_other:"{count} edits applied",changesSummary:"{removals} removed \xB7 {additions} added",applyChanges_one:"Apply {count} change",applyChanges_other:"Apply {count} changes",sourceCount_one:"{count} source",sourceCount_other:"{count} sources",writeMessage:"Write a message\u2026",selectAllCompanies:"Select all companies",categories:"Categories",lastInteraction:"Last interaction",connectionStrength:"Connection strength",linksHeading:"Links",propertyType:"Property type",tool:"Tool",grounding:"Grounding",inputs:"Inputs",requiredValue:"Required value",allowEmptyResults:"Allow empty results",showConfidence:"Show confidence",categoriesSummary:"Categories: {categories}",sortByLabel:"Sort by {label}",resizeColumn:"Resize {label} column",selectName:"Select {name}",columnCalculationPrompt:"{column} calculation prompt",proposedChanges:"Proposed changes",name:"Name",category:"Category",value:"Value",anomaly:"Anomaly",allocation:"Allocation"},cl={taskProgressTitle:"\u4EFB\u52A1\u8FDB\u5EA6",taskProgressCurrent:"{current}/{total} {title}","taskProgressStatus.done":"\u5DF2\u5B8C\u6210","taskProgressStatus.running":"\u8FDB\u884C\u4E2D","taskProgressStatus.pending":"\u5F85\u6267\u884C","taskProgressStatus.failed":"\u5931\u8D25","taskProgressStatus.skipped":"\u5DF2\u8DF3\u8FC7","taskProgressStatus.stopped":"\u5DF2\u505C\u6B62",recentClose:"\u5173\u95ED",recentMore:"{title}\u7684\u66F4\u591A\u64CD\u4F5C",recentMoreLabel:"\u66F4\u591A",recentRunning:"\u8FD0\u884C\u4E2D",recentRename:"\u91CD\u547D\u540D",recentDelete:"\u5220\u9664\u5BF9\u8BDD",recentDeleteDescription:"\u786E\u5B9A\u5220\u9664\u201C{title}\u201D\u5417\uFF1F\u8BE5\u5BF9\u8BDD\u5C06\u88AB\u79FB\u9664\u3002",recentRenameDescription:"\u4E3A\u8FD9\u6BB5\u5BF9\u8BDD\u8BBE\u7F6E\u4E00\u4E2A\u540D\u79F0\u3002",recentName:"\u5BF9\u8BDD\u540D\u79F0",recentCancel:"\u53D6\u6D88",recentSave:"\u4FDD\u5B58",recentSaving:"\u4FDD\u5B58\u4E2D\u2026",recentActionFailed:"\u672A\u80FD\u786E\u8BA4\u4FEE\u6539\u7ED3\u679C\uFF0C\u8BF7\u5237\u65B0\u4F1A\u8BDD\u5217\u8868\u540E\u518D\u8BD5\u3002",chatHistory:"\u5BF9\u8BDD\u5386\u53F2",startAConversation:"\u5F00\u59CB\u65B0\u7684\u5BF9\u8BDD",stopResponse:"\u505C\u6B62\u56DE\u590D",loadMore:"\u52A0\u8F7D\u66F4\u591A",average:"% \u5E73\u5747\u503C",sScreen:"\u7684\u5C4F\u5E55",aboutGrounding:"\u5173\u4E8E\u4FE1\u606F\u9A8C\u8BC1",questionPanel:"\u95EE\u9898",questionNavigation:"\u5207\u6362\u95EE\u9898",questionPosition:"{current} / {total}",questionAnswerFailed:"\u63D0\u4EA4\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\u3002",questionAnswerSent:"\u56DE\u7B54\u5DF2\u53D1\u9001",questionCancel:"\u8DF3\u8FC7",questionCancelling:"\u6B63\u5728\u8DF3\u8FC7\u2026",questionCancelled:"\u5DF2\u8DF3\u8FC7",answerPlaceholder:"\u8F93\u5165\u4F60\u7684\u56DE\u7B54",autoSendAnswers:"\u5C06\u5728 {seconds} \u79D2\u540E\u63D0\u4EA4\u63A8\u8350\u7B54\u6848",recommended:"\u63A8\u8350",sendAnswer:"\u63D0\u4EA4\u56DE\u7B54",sending:"\u6B63\u5728\u63D0\u4EA4\u2026",accepted:"\u5DF2\u63A5\u53D7",addAttachmentsAndSources:"\u6DFB\u52A0\u9644\u4EF6\u548C\u6765\u6E90",addCalculation:"\u6DFB\u52A0\u8BA1\u7B97",addProperty:"\u6DFB\u52A0\u5C5E\u6027",adjust:"\u8C03\u6574",adjustYourSearchToTryAgain:"\u8BF7\u8C03\u6574\u641C\u7D22\u5185\u5BB9\u540E\u91CD\u8BD5",advisor:"\u8D1F\u8D23\u4EBA",allChunks:"\u6240\u6709\u7247\u6BB5",allocationSegments:"\u5206\u914D\u5206\u7EC4",alternatives:"\u5907\u9009\u65B9\u6848",answersSent:"\u7B54\u6848\u5DF2\u53D1\u9001",apply:"\u5E94\u7528",behavior:"\u884C\u4E3A",calculating:"\u8BA1\u7B97\u4E2D\u2026",calculationInputs:"\u8BA1\u7B97\u8F93\u5165",chatPrompt:"\u804A\u5929\u8F93\u5165",chats:"\u5BF9\u8BDD",chooseModel:"\u9009\u62E9\u6A21\u578B",clearSearch:"\u6E05\u7A7A\u641C\u7D22",clearSelection:"\u6E05\u7A7A\u9009\u62E9",clickChangedRowsToToggle:"\u70B9\u51FB\u53D8\u66F4\u884C\u5207\u6362\u9009\u62E9",closeChatSearch:"\u5173\u95ED\u5BF9\u8BDD\u641C\u7D22",collapse:"\u6536\u8D77",collapseSidebar:"\u6536\u8D77\u4FA7\u680F",compactColumns:"\u7D27\u51D1\u5217\u5BBD",companiesTableScrollHorizontallyAndVerticallyToViewAllColumnsAndRecords:"\u8BB0\u5F55\u8868\u683C\uFF0C\u53EF\u6A2A\u5411\u6216\u7EB5\u5411\u6EDA\u52A8\u67E5\u770B\u6240\u6709\u5217\u548C\u8BB0\u5F55\u3002",company:"\u540D\u79F0",completed:"\u5DF2\u5B8C\u6210",connectingToAgentSScreen:"\u6B63\u5728\u8FDE\u63A5\u667A\u80FD\u4F53\u5C4F\u5E55",continue:"\u7EE7\u7EED",contributionSnapshotAcrossCurrentInventoryValueSegmentSelectionChangesTheInspectedGroupWithoutMovingTheCard:"\u5F53\u524D\u5206\u914D\u5FEB\u7167\uFF0C\u9009\u62E9\u5206\u7EC4\u67E5\u770B\u8BE6\u7EC6\u6570\u636E\u3002",copied:"\u5DF2\u590D\u5236",continueInNewConversation:"\u5728\u65B0\u5BF9\u8BDD\u4E2D\u7EE7\u7EED",copy:"\u590D\u5236",copyCode:"\u590D\u5236\u4EE3\u7801",customAnswer:"\u81EA\u5B9A\u4E49\u7B54\u6848",date:"\u65E5\u671F",describeEdits:"\u63CF\u8FF0\u4FEE\u6539\u8981\u6C42",discard:"\u820D\u5F03",dismiss:"\u5173\u95ED",edited:"\u5DF2\u4FEE\u6539",end:"\u7ED3\u675F",enterAMessage:"\u8F93\u5165\u6D88\u606F",expandSidebar:"\u5C55\u5F00\u4FA7\u680F",failed:"\u5931\u8D25",followUps:"\u540E\u7EED\u95EE\u9898",goCalculate:"\u5F00\u59CB\u8BA1\u7B97",groundingLetsTheModelVerifyGeneratedValuesAgainstConnectedSources:"\u901A\u8FC7\u5DF2\u8FDE\u63A5\u7684\u6765\u6E90\u9A8C\u8BC1\u751F\u6210\u7684\u6570\u636E\u3002",hideFromView:"\u4ECE\u89C6\u56FE\u9690\u85CF",if:"\u5982\u679C",insights:"\u6D1E\u5BDF",keep:"\u4FDD\u7559",layout:"\u5E03\u5C40",more:"\u66F4\u591A",moreSettings:"\u66F4\u591A\u8BBE\u7F6E",newProperty:"\u65B0\u5EFA\u5C5E\u6027",nextQuestion:"\u4E0B\u4E00\u9898",noChatsFound:"\u6CA1\u6709\u627E\u5230\u5BF9\u8BDD",noMatchesFor:"\u672A\u627E\u5230\u5339\u914D\u9879\uFF1A\u201C",noResultsFound:"\u6CA1\u6709\u627E\u5230\u7ED3\u679C",open:"\u6253\u5F00",openApproval:"\u6253\u5F00\u5BA1\u6279",otherOptions:"\u5176\u4ED6\u9009\u9879",previousQuestion:"\u4E0A\u4E00\u9898",prompt:"\u63D0\u793A\u8BCD",recommendation:"\u5EFA\u8BAE",resetColumnWidths:"\u91CD\u7F6E\u5217\u5BBD",resizeCompanyColumn:"\u8C03\u6574\u540D\u79F0\u5217\u5BBD",scrollableTaskTable:"\u53EF\u6EDA\u52A8\u4EFB\u52A1\u8868\u683C",search:"\u641C\u7D22\u2026",searchChatHistory:"\u641C\u7D22\u5BF9\u8BDD\u5386\u53F2",searchChats:"\u641C\u7D22\u5BF9\u8BDD",selectInputs:"\u9009\u62E9\u8F93\u5165",selectType:"\u9009\u62E9\u7C7B\u578B",send:"\u53D1\u9001",sendEditInstruction:"\u53D1\u9001\u4FEE\u6539\u6307\u4EE4",setAPromptPressToMentionAnInput:"\u8BBE\u7F6E\u63D0\u793A\u8BCD\uFF08\u6309 @ \u5F15\u7528\u8F93\u5165\uFF09",signOut:"\u9000\u51FA\u767B\u5F55",skip:"\u8DF3\u8FC7",snapshot:"\u5FEB\u7167",somethingElse:"\u5176\u4ED6\u7B54\u6848\u2026",sources:"\u6765\u6E90",startOver:"\u91CD\u65B0\u5F00\u59CB",status:"\u72B6\u6001",tableOptions:"\u8868\u683C\u9009\u9879",taskName:"\u4EFB\u52A1\u540D\u79F0",teachATask:"\u6F14\u793A\u4EFB\u52A1",toolCalls:"\u5DE5\u5177\u8C03\u7528",trendSnapshot:"\u8D8B\u52BF\u5FEB\u7167",tryAgain:"\u91CD\u8BD5",type:"\u7C7B\u578B",useValuesFrom:"\u4F7F\u7528\u4EE5\u4E0B\u503C",v:"V",videoUnavailable:"\u89C6\u9891\u4E0D\u53EF\u7528",workspaceNavigation:"\u5DE5\u4F5C\u533A\u5BFC\u822A",and:"\u5E76\u4E14",applied:"\u5DF2\u5E94\u7528",count:"\u6570\u91CF",for:"\u9488\u5BF9",h:"h",is:"\u4E3A",links:"\u94FE\u63A5",spent:"\u652F\u51FA",configuration:"\u914D\u7F6E",new:"\u65B0\u5EFA",history:"\u5386\u53F2",edit:"\u7F16\u8F91",edits:"\u4FEE\u6539",removal:"\u5220\u9664",removals:"\u5220\u9664",addition:"\u65B0\u589E",additions:"\u65B0\u589E",change:"\u4FEE\u6539",changes:"\u4FEE\u6539",spend:"\u652F\u51FA",usage:"\u7528\u91CF",previousInsight:"\u4E0A\u4E00\u6761\u6D1E\u5BDF",nextInsight:"\u4E0B\u4E00\u6761\u6D1E\u5BDF",connected:"\u5DF2\u8FDE\u63A5",connect:"\u8FDE\u63A5",typeToSearchSourcesFiles:"\u8F93\u5165\u4EE5\u641C\u7D22\u6765\u6E90\u548C\u6587\u4EF6",typeToSearchCommands:"\u8F93\u5165\u4EE5\u641C\u7D22\u547D\u4EE4",listening:"\u6B63\u5728\u542C\u5199\u2026",stopDictation:"\u505C\u6B62\u542C\u5199",startDictation:"\u5F00\u59CB\u542C\u5199",unpin:"\u53D6\u6D88\u56FA\u5B9A",pin:"\u56FA\u5B9A",showFewerActions:"\u6536\u8D77\u64CD\u4F5C",showMoreActions:"\u66F4\u591A\u64CD\u4F5C",retry:"\u91CD\u8BD5",like:"\u8D5E",dislike:"\u4E0D\u8D5E",newWorkspace:"\u65B0\u5EFA\u5DE5\u4F5C\u533A",workspaceSettings:"\u5DE5\u4F5C\u533A\u8BBE\u7F6E",inviteTeamMembers:"\u9080\u8BF7\u56E2\u961F\u6210\u5458",loading:"\u52A0\u8F7D\u4E2D",thinking:"\u601D\u8003\u4E2D",thoughtComplete:"\u601D\u8003\u5B8C\u6210",model:"\u6A21\u578B",agent:"\u667A\u80FD\u4F53",viewSources:"\u67E5\u770B\u6765\u6E90",close:"\u5173\u95ED",noFiles:"\u6682\u65E0\u6587\u4EF6",done:"\u5B8C\u6210",doneEditing:"\u5B8C\u6210\u7F16\u8F91",newChat:"\u65B0\u5BF9\u8BDD",all:"\u5168\u90E8",toDo:"\u5F85\u529E",inProgress:"\u8FDB\u884C\u4E2D",veryStrong:"\u5F88\u5F3A",weak:"\u8F83\u5F31",veryWeak:"\u5F88\u5F31",noCommunication:"\u65E0\u4EA4\u6D41",cancel:"\u53D6\u6D88",improve:"\u6539\u5584",explain:"\u89E3\u91CA",shorten:"\u7CBE\u7B80",tone:"\u8BED\u6C14",grammar:"\u8BED\u6CD5",screenTitle:"{name}\u7684\u5C4F\u5E55",duration:"\u8017\u65F6 {time}",noMatches:"\u672A\u627E\u5230\u5339\u914D\u9879\uFF1A\u201C{query}\u201D",editsApplied_one:"\u5DF2\u5E94\u7528 {count} \u9879\u4FEE\u6539",editsApplied_other:"\u5DF2\u5E94\u7528 {count} \u9879\u4FEE\u6539",changesSummary:"\u5220\u9664 {removals} \u9879 \xB7 \u65B0\u589E {additions} \u9879",applyChanges_one:"\u5E94\u7528 {count} \u9879\u4FEE\u6539",applyChanges_other:"\u5E94\u7528 {count} \u9879\u4FEE\u6539",sourceCount_one:"{count} \u4E2A\u6765\u6E90",sourceCount_other:"{count} \u4E2A\u6765\u6E90",writeMessage:"\u8F93\u5165\u6D88\u606F\u2026",selectAllCompanies:"\u9009\u62E9\u6240\u6709\u516C\u53F8",categories:"\u5206\u7C7B",lastInteraction:"\u6700\u8FD1\u4E92\u52A8",connectionStrength:"\u8054\u7CFB\u5F3A\u5EA6",linksHeading:"\u94FE\u63A5",propertyType:"\u5C5E\u6027\u7C7B\u578B",tool:"\u5DE5\u5177",grounding:"\u6EAF\u6E90",inputs:"\u8F93\u5165",requiredValue:"\u5FC5\u586B\u503C",allowEmptyResults:"\u5141\u8BB8\u7A7A\u7ED3\u679C",showConfidence:"\u663E\u793A\u7F6E\u4FE1\u5EA6",categoriesSummary:"\u5206\u7C7B\uFF1A{categories}",sortByLabel:"\u6309{label}\u6392\u5E8F",resizeColumn:"\u8C03\u6574{label}\u5217\u5BBD",selectName:"\u9009\u62E9{name}",columnCalculationPrompt:"{column}\u8BA1\u7B97\u63D0\u793A\u8BCD",proposedChanges:"\u5EFA\u8BAE\u66F4\u6539",name:"\u540D\u79F0",category:"\u5206\u7C7B",value:"\u503C",anomaly:"\u5F02\u5E38",allocation:"\u5206\u5E03"};function Ue(){let e=provider.useMonkeysLocaleMessages(),{locale:t}=provider.useMonkeysLocale(),o=t==="zh-CN"?cl:Nr;return (n,r={})=>{let i=dl[n]??n,s=typeof r.count=="number"?"_"+new Intl.PluralRules(t).select(r.count):"";return (e.beautiful?.[i+s]??e.beautiful?.[i]??o[i+s]??o[i]??Nr[i+s]??Nr[i]??n).replace(/\{(\w+)\}/g,(d,c)=>String(r[c]??""))}}a(Ue,"useBUICopy");function Ot(e,t){let o=Ue(),n=a(r=>typeof r=="string"?o(r):r&&typeof r=="object"?Object.fromEntries(Object.entries(r).map(([i,s])=>[i,n(s)])):r,"visit");return {...n(e),...t}}a(Ot,"useBUILabels");var im="",sm=[],lm=[],dm="repeating-linear-gradient(45deg, var(--bui-red) 0, var(--bui-red) 1.5px, transparent 1.5px, transparent 3px)",cm=new Set(["import","from","export","default","async","function","const","let","var","await","return","if","else","for","while","new","throw","try","catch","null","true","false","undefined"]),um=/("(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|`[^`]*`|\b\d+(?:\.\d+)?\b|\b(?:import|from|export|default|async|function|const|let|var|await|return|if|else|for|while|new|throw|try|catch|null|true|false|undefined)\b|[A-Za-z_$][\w$]*(?=\s*\())/g;function ii(e){let t=[],o=0,n=0;for(let r of e.matchAll(um)){let i=r.index??0,s=r[0];i>o&&t.push(jsxRuntime.jsx("span",{children:e.slice(o,i)},n++));let l,d;/^["'`]/.test(s)||/^\d/.test(s)?l="var(--bui-orange)":cm.has(s)?l="var(--bui-accent-ink)":(l="var(--bui-ink)",d="var(--bui-font-weight-medium, 500)"),t.push(jsxRuntime.jsx("span",{style:{color:l,fontWeight:d},children:s},n++)),o=i+s.length;}return o<e.length&&t.push(jsxRuntime.jsx("span",{children:e.slice(o)},n++)),t}a(ii,"highlight");function pm({pieces:e}){return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e.map((t,o)=>{if(t.change){let n=t.change==="add";return jsxRuntime.jsx("span",{className:"rounded-[3px]",style:{background:`color-mix(in srgb, var(--bui-${n?"green":"red"}) 18%, transparent)`,padding:"0 calc(var(--bui-spacing) / 2)",margin:"0 calc(var(--bui-spacing) / -4)",boxDecorationBreak:"clone",WebkitBoxDecorationBreak:"clone"},children:ii(t.text)},o)}return jsxRuntime.jsx("span",{children:ii(t.text)},o)})})}a(pm,"Pieces");function mm(){return jsxRuntime.jsx("svg",{"aria-hidden":true,width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:"shrink-0 text-ink-3",children:jsxRuntime.jsx("path",{d:"M17.25 6.75 22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3-4.5 16.5"})})}a(mm,"FileIcon");var gm={copy:"Copy",copied:"Copied"};function Er({variant:e="Code",embedded:t=false,lines:o=sm,code:n,diff:r=lm,filename:i=im,labels:s,onCopy:l,onCopyError:d}){let c=Ue(),[u,m]=ye.useState(false),p=ye.useRef(true),g=ye.useRef();ye.useEffect(()=>(p.current=true,()=>{p.current=false,clearTimeout(g.current);}),[]);let b=e==="Diff",x=Ot(gm,s),f=n??o.join(`
|
|
95
|
-
`),
|
|
94
|
+
active:scale-[0.96] disabled:opacity-50 disabled:pointer-events-none`,{variants:{variant:{primary:`bg-ink text-canvas hover:opacity-90 dark:bg-ink dark:text-canvas ${ai}`,secondary:"bg-surface text-ink shadow-btn hover:bg-inset aria-expanded:bg-hover",ghost:"bg-hover-2 text-ink hover:bg-line-strong",accent:`bg-accent text-white hover:bg-accent-ink ${ai}`,success:`bg-green text-white hover:brightness-95 ${ai}`,quiet:"text-ink hover:bg-hover"},size:{xs:"h-7 rounded-full px-2.5 text-[12px] font-normal leading-none gap-1",sm:"h-[27px] px-3 text-[13px] leading-none rounded-full gap-1.5",md:"px-4 py-[9px] text-sm leading-none rounded-full gap-2"}},defaultVariants:{variant:"secondary",size:"md"}}),Te=he.forwardRef(a(function({variant:t,size:o,className:n,...r},i){return jsxRuntime.jsx(ee,{children:jsxRuntime.jsx("button",{ref:i,className:sl(tm({variant:t,size:o}),n),...r})})},"BUIButton"));var dl={"Chat history":"chatHistory","Start a conversation":"startAConversation","Stop response":"stopResponse","Load more":"loadMore","% average":"average","'s screen":"sScreen","About grounding":"aboutGrounding","Answer could not be sent":"questionAnswerFailed","Answer sent":"questionAnswerSent","Cancel question":"questionCancel",Cancelling:"questionCancelling","Question cancelled":"questionCancelled",Accepted:"accepted","Add attachments and sources":"addAttachmentsAndSources","Add calculation":"addCalculation","Add property":"addProperty",Adjust:"adjust","Adjust your search to try again":"adjustYourSearchToTryAgain",Advisor:"advisor","All chunks":"allChunks","Allocation segments":"allocationSegments",Alternatives:"alternatives","Answers sent":"answersSent",Apply:"apply",Behavior:"behavior","Calculating\u2026":"calculating","Calculation inputs":"calculationInputs","Chat prompt":"chatPrompt",Chats:"chats","Choose model":"chooseModel","Clear search":"clearSearch","Clear selection":"clearSelection","Click changed rows to toggle":"clickChangedRowsToToggle","Close chat search":"closeChatSearch",Collapse:"collapse","Collapse sidebar":"collapseSidebar","Compact columns":"compactColumns","Companies table. Scroll horizontally and vertically to view all columns and records.":"companiesTableScrollHorizontallyAndVerticallyToViewAllColumnsAndRecords",Company:"company",Completed:"completed","Connecting to agent's screen":"connectingToAgentSScreen",Continue:"continue","Continue in new conversation":"continueInNewConversation","Contribution snapshot across current inventory value. Segment selection changes the inspected group without moving the card.":"contributionSnapshotAcrossCurrentInventoryValueSegmentSelectionChangesTheInspectedGroupWithoutMovingTheCard",Copied:"copied",Copy:"copy","Copy code":"copyCode","Custom answer":"customAnswer",Date:"date","Describe edits":"describeEdits",Discard:"discard",Dismiss:"dismiss",Edited:"edited",End:"end","Enter a message":"enterAMessage","Expand sidebar":"expandSidebar",Failed:"failed","Follow-ups":"followUps","Go calculate":"goCalculate","Grounding lets the model verify generated values against connected sources.":"groundingLetsTheModelVerifyGeneratedValuesAgainstConnectedSources","Hide from view":"hideFromView",If:"if",Insights:"insights",Keep:"keep",Layout:"layout",More:"more","More settings":"moreSettings","New property":"newProperty","Next question":"nextQuestion","No chats found":"noChatsFound","No matches for \u201C":"noMatchesFor","No results found":"noResultsFound",Open:"open","Open approval":"openApproval","Other options":"otherOptions","Previous question":"previousQuestion",Prompt:"prompt",Recommendation:"recommendation",Recommended:"recommended","Reset column widths":"resetColumnWidths","Resize Company column":"resizeCompanyColumn","Scrollable task table":"scrollableTaskTable",Search:"search","Search chat history":"searchChatHistory","Search chats":"searchChats","Search\u2026":"search","Select inputs":"selectInputs","Select type":"selectType",Send:"send","Send answer":"sendAnswer","Send edit instruction":"sendEditInstruction","Set a prompt (press @ to mention an input)":"setAPromptPressToMentionAnInput","Sign out":"signOut",Skip:"skip",Snapshot:"snapshot","Something else\u2026":"somethingElse",Sending:"sending","Sending recommended answers in {seconds}s":"autoSendAnswers",Sources:"sources","Start over":"startOver",Status:"status","Table options":"tableOptions","Task name":"taskName","Teach a task":"teachATask","Tool calls":"toolCalls","Trend snapshot":"trendSnapshot","Try again":"tryAgain",Type:"type","Use values from":"useValuesFrom","Your answer":"answerPlaceholder",V:"v","Video unavailable":"videoUnavailable","Workspace navigation":"workspaceNavigation",and:"and",applied:"applied",count:"count",for:"for",h:"h",is:"is",links:"links",spent:"spent",Configuration:"configuration",New:"new",History:"history",edit:"edit",edits:"edits",removal:"removal",removals:"removals",addition:"addition",additions:"additions",change:"change",changes:"changes",Spend:"spend",Usage:"usage","Previous insight":"previousInsight","Next insight":"nextInsight",Connected:"connected",Connect:"connect","Type to search sources & files":"typeToSearchSourcesFiles","Type to search commands":"typeToSearchCommands","Listening\u2026":"listening","Stop dictation":"stopDictation","Start dictation":"startDictation",Unpin:"unpin",Pin:"pin","Show fewer actions":"showFewerActions","Show more actions":"showMoreActions",Retry:"retry",Like:"like",Dislike:"dislike","New workspace":"newWorkspace","Workspace settings":"workspaceSettings","Invite team members":"inviteTeamMembers",Loading:"loading",Thinking:"thinking","Thought complete":"thoughtComplete",Model:"model",Agent:"agent","View sources":"viewSources",Close:"close","No files":"noFiles",Done:"done",Edit:"edit","Done editing":"doneEditing","New chat":"newChat",All:"all","To do":"toDo","In Progress":"inProgress","Very strong":"veryStrong",Weak:"weak","Very weak":"veryWeak","No communication":"noCommunication",Cancel:"cancel",Improve:"improve",Explain:"explain",Shorten:"shorten",Tone:"tone",Grammar:"grammar","Write a message\u2026":"writeMessage","Select all companies":"selectAllCompanies",Categories:"categories","Last interaction":"lastInteraction","Connection strength":"connectionStrength",Links:"linksHeading","Property type":"propertyType",Tool:"tool",Grounding:"grounding",Inputs:"inputs","Required value":"requiredValue","Allow empty results":"allowEmptyResults","Show confidence":"showConfidence","Categories: {categories}":"categoriesSummary","Sort by {label}":"sortByLabel","Resize {label} column":"resizeColumn","Select {name}":"selectName","{column} calculation prompt":"columnCalculationPrompt","Proposed changes":"proposedChanges",Name:"name",Category:"category",Value:"value",Anomaly:"anomaly",Allocation:"allocation"},Nr={taskProgressTitle:"Task progress",taskProgressCurrent:"{current}/{total} {title}","taskProgressStatus.done":"Completed","taskProgressStatus.running":"In progress","taskProgressStatus.pending":"Pending","taskProgressStatus.failed":"Failed","taskProgressStatus.skipped":"Skipped","taskProgressStatus.stopped":"Stopped",recentClose:"Close",recentMore:"More actions for {title}",recentMoreLabel:"More",recentRunning:"Running",recentRename:"Rename",recentDelete:"Delete conversation",recentDeleteDescription:"Delete \u201C{title}\u201D? This conversation will be removed.",recentRenameDescription:"Choose a name for this conversation.",recentName:"Conversation name",recentCancel:"Cancel",recentSave:"Save",recentSaving:"Saving\u2026",recentActionFailed:"Could not confirm the change. Refresh the conversation list before trying again.",chatHistory:"Chat history",startAConversation:"Start a conversation",stopResponse:"Stop response",loadMore:"Load more",average:"% average",sScreen:"'s screen",aboutGrounding:"About grounding",questionPanel:"Questions",questionNavigation:"Question navigation",questionPosition:"{current} of {total}",questionAnswerFailed:"Answer could not be sent. Try again.",questionAnswerSent:"Answer sent",questionCancel:"Skip",questionCancelling:"Skipping\u2026",questionCancelled:"Skipped",answerPlaceholder:"Your answer",autoSendAnswers:"Sending recommended answers in {seconds}s",recommended:"Recommended",sendAnswer:"Send answer",sending:"Sending\u2026",accepted:"Accepted",addAttachmentsAndSources:"Add attachments and sources",addCalculation:"Add calculation",addProperty:"Add property",adjust:"Adjust",adjustYourSearchToTryAgain:"Adjust your search to try again",advisor:"Advisor",allChunks:"All chunks",allocationSegments:"Allocation segments",alternatives:"Alternatives",answersSent:"Answers sent",apply:"Apply",behavior:"Behavior",calculating:"Calculating\u2026",calculationInputs:"Calculation inputs",chatPrompt:"Chat prompt",chats:"Chats",chooseModel:"Choose model",clearSearch:"Clear search",clearSelection:"Clear selection",clickChangedRowsToToggle:"Click changed rows to toggle",closeChatSearch:"Close chat search",collapse:"Collapse",collapseSidebar:"Collapse sidebar",compactColumns:"Compact columns",companiesTableScrollHorizontallyAndVerticallyToViewAllColumnsAndRecords:"Companies table. Scroll horizontally and vertically to view all columns and records.",company:"Company",completed:"Completed",connectingToAgentSScreen:"Connecting to agent's screen",continue:"Continue",continueInNewConversation:"Continue in new conversation",contributionSnapshotAcrossCurrentInventoryValueSegmentSelectionChangesTheInspectedGroupWithoutMovingTheCard:"Contribution snapshot across current inventory value. Segment selection changes the inspected group without moving the card.",copied:"Copied",copy:"Copy",copyCode:"Copy code",customAnswer:"Custom answer",date:"Date",describeEdits:"Describe edits",discard:"Discard",dismiss:"Dismiss",edited:"Edited",end:"End",enterAMessage:"Enter a message",expandSidebar:"Expand sidebar",failed:"Failed",followUps:"Follow-ups",goCalculate:"Go calculate",groundingLetsTheModelVerifyGeneratedValuesAgainstConnectedSources:"Grounding lets the model verify generated values against connected sources.",hideFromView:"Hide from view",if:"If",insights:"Insights",keep:"Keep",layout:"Layout",more:"More",moreSettings:"More settings",newProperty:"New property",nextQuestion:"Next question",noChatsFound:"No chats found",noMatchesFor:"No matches for \u201C",noResultsFound:"No results found",open:"Open",openApproval:"Open approval",otherOptions:"Other options",previousQuestion:"Previous question",prompt:"Prompt",recommendation:"Recommendation",resetColumnWidths:"Reset column widths",resizeCompanyColumn:"Resize Company column",scrollableTaskTable:"Scrollable task table",search:"Search\u2026",searchChatHistory:"Search chat history",searchChats:"Search chats",selectInputs:"Select inputs",selectType:"Select type",send:"Send",sendEditInstruction:"Send edit instruction",setAPromptPressToMentionAnInput:"Set a prompt (press @ to mention an input)",signOut:"Sign out",skip:"Skip",snapshot:"Snapshot",somethingElse:"Something else\u2026",sources:"Sources",startOver:"Start over",status:"Status",tableOptions:"Table options",taskName:"Task name",teachATask:"Teach a task",toolCalls:"Tool calls",trendSnapshot:"Trend snapshot",tryAgain:"Try again",type:"Type",useValuesFrom:"Use values from",v:"V",videoUnavailable:"Video unavailable",workspaceNavigation:"Workspace navigation",and:"and",applied:"applied",count:"count",for:"for",h:"h",is:"is",links:"links",spent:"spent",configuration:"Configuration",new:"New",history:"History",edit:"Edit",edits:"edits",removal:"removal",removals:"removals",addition:"addition",additions:"additions",change:"change",changes:"changes",spend:"Spend",usage:"Usage",previousInsight:"Previous insight",nextInsight:"Next insight",connected:"Connected",connect:"Connect",typeToSearchSourcesFiles:"Type to search sources & files",typeToSearchCommands:"Type to search commands",listening:"Listening\u2026",stopDictation:"Stop dictation",startDictation:"Start dictation",unpin:"Unpin",pin:"Pin",showFewerActions:"Show fewer actions",showMoreActions:"Show more actions",retry:"Retry",like:"Like",dislike:"Dislike",newWorkspace:"New workspace",workspaceSettings:"Workspace settings",inviteTeamMembers:"Invite team members",loading:"Loading",thinking:"Thinking",thoughtComplete:"Thought complete",model:"Model",agent:"Agent",viewSources:"View sources",close:"Close",noFiles:"No files",done:"Done",doneEditing:"Done editing",newChat:"New chat",all:"All",toDo:"To do",inProgress:"In Progress",veryStrong:"Very strong",weak:"Weak",veryWeak:"Very weak",noCommunication:"No communication",cancel:"Cancel",improve:"Improve",explain:"Explain",shorten:"Shorten",tone:"Tone",grammar:"Grammar",screenTitle:"{name}'s screen",duration:"for {time}",noMatches:"No matches for \u201C{query}\u201D",editsApplied_one:"{count} edit applied",editsApplied_other:"{count} edits applied",changesSummary:"{removals} removed \xB7 {additions} added",applyChanges_one:"Apply {count} change",applyChanges_other:"Apply {count} changes",sourceCount_one:"{count} source",sourceCount_other:"{count} sources",writeMessage:"Write a message\u2026",selectAllCompanies:"Select all companies",categories:"Categories",lastInteraction:"Last interaction",connectionStrength:"Connection strength",linksHeading:"Links",propertyType:"Property type",tool:"Tool",grounding:"Grounding",inputs:"Inputs",requiredValue:"Required value",allowEmptyResults:"Allow empty results",showConfidence:"Show confidence",categoriesSummary:"Categories: {categories}",sortByLabel:"Sort by {label}",resizeColumn:"Resize {label} column",selectName:"Select {name}",columnCalculationPrompt:"{column} calculation prompt",proposedChanges:"Proposed changes",name:"Name",category:"Category",value:"Value",anomaly:"Anomaly",allocation:"Allocation"},cl={taskProgressTitle:"\u4EFB\u52A1\u8FDB\u5EA6",taskProgressCurrent:"{current}/{total} {title}","taskProgressStatus.done":"\u5DF2\u5B8C\u6210","taskProgressStatus.running":"\u8FDB\u884C\u4E2D","taskProgressStatus.pending":"\u5F85\u6267\u884C","taskProgressStatus.failed":"\u5931\u8D25","taskProgressStatus.skipped":"\u5DF2\u8DF3\u8FC7","taskProgressStatus.stopped":"\u5DF2\u505C\u6B62",recentClose:"\u5173\u95ED",recentMore:"{title}\u7684\u66F4\u591A\u64CD\u4F5C",recentMoreLabel:"\u66F4\u591A",recentRunning:"\u8FD0\u884C\u4E2D",recentRename:"\u91CD\u547D\u540D",recentDelete:"\u5220\u9664\u5BF9\u8BDD",recentDeleteDescription:"\u786E\u5B9A\u5220\u9664\u201C{title}\u201D\u5417\uFF1F\u8BE5\u5BF9\u8BDD\u5C06\u88AB\u79FB\u9664\u3002",recentRenameDescription:"\u4E3A\u8FD9\u6BB5\u5BF9\u8BDD\u8BBE\u7F6E\u4E00\u4E2A\u540D\u79F0\u3002",recentName:"\u5BF9\u8BDD\u540D\u79F0",recentCancel:"\u53D6\u6D88",recentSave:"\u4FDD\u5B58",recentSaving:"\u4FDD\u5B58\u4E2D\u2026",recentActionFailed:"\u672A\u80FD\u786E\u8BA4\u4FEE\u6539\u7ED3\u679C\uFF0C\u8BF7\u5237\u65B0\u4F1A\u8BDD\u5217\u8868\u540E\u518D\u8BD5\u3002",chatHistory:"\u5BF9\u8BDD\u5386\u53F2",startAConversation:"\u5F00\u59CB\u65B0\u7684\u5BF9\u8BDD",stopResponse:"\u505C\u6B62\u56DE\u590D",loadMore:"\u52A0\u8F7D\u66F4\u591A",average:"% \u5E73\u5747\u503C",sScreen:"\u7684\u5C4F\u5E55",aboutGrounding:"\u5173\u4E8E\u4FE1\u606F\u9A8C\u8BC1",questionPanel:"\u95EE\u9898",questionNavigation:"\u5207\u6362\u95EE\u9898",questionPosition:"{current} / {total}",questionAnswerFailed:"\u63D0\u4EA4\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\u3002",questionAnswerSent:"\u56DE\u7B54\u5DF2\u53D1\u9001",questionCancel:"\u8DF3\u8FC7",questionCancelling:"\u6B63\u5728\u8DF3\u8FC7\u2026",questionCancelled:"\u5DF2\u8DF3\u8FC7",answerPlaceholder:"\u8F93\u5165\u4F60\u7684\u56DE\u7B54",autoSendAnswers:"\u5C06\u5728 {seconds} \u79D2\u540E\u63D0\u4EA4\u63A8\u8350\u7B54\u6848",recommended:"\u63A8\u8350",sendAnswer:"\u63D0\u4EA4\u56DE\u7B54",sending:"\u6B63\u5728\u63D0\u4EA4\u2026",accepted:"\u5DF2\u63A5\u53D7",addAttachmentsAndSources:"\u6DFB\u52A0\u9644\u4EF6\u548C\u6765\u6E90",addCalculation:"\u6DFB\u52A0\u8BA1\u7B97",addProperty:"\u6DFB\u52A0\u5C5E\u6027",adjust:"\u8C03\u6574",adjustYourSearchToTryAgain:"\u8BF7\u8C03\u6574\u641C\u7D22\u5185\u5BB9\u540E\u91CD\u8BD5",advisor:"\u8D1F\u8D23\u4EBA",allChunks:"\u6240\u6709\u7247\u6BB5",allocationSegments:"\u5206\u914D\u5206\u7EC4",alternatives:"\u5907\u9009\u65B9\u6848",answersSent:"\u7B54\u6848\u5DF2\u53D1\u9001",apply:"\u5E94\u7528",behavior:"\u884C\u4E3A",calculating:"\u8BA1\u7B97\u4E2D\u2026",calculationInputs:"\u8BA1\u7B97\u8F93\u5165",chatPrompt:"\u804A\u5929\u8F93\u5165",chats:"\u5BF9\u8BDD",chooseModel:"\u9009\u62E9\u6A21\u578B",clearSearch:"\u6E05\u7A7A\u641C\u7D22",clearSelection:"\u6E05\u7A7A\u9009\u62E9",clickChangedRowsToToggle:"\u70B9\u51FB\u53D8\u66F4\u884C\u5207\u6362\u9009\u62E9",closeChatSearch:"\u5173\u95ED\u5BF9\u8BDD\u641C\u7D22",collapse:"\u6536\u8D77",collapseSidebar:"\u6536\u8D77\u4FA7\u680F",compactColumns:"\u7D27\u51D1\u5217\u5BBD",companiesTableScrollHorizontallyAndVerticallyToViewAllColumnsAndRecords:"\u8BB0\u5F55\u8868\u683C\uFF0C\u53EF\u6A2A\u5411\u6216\u7EB5\u5411\u6EDA\u52A8\u67E5\u770B\u6240\u6709\u5217\u548C\u8BB0\u5F55\u3002",company:"\u540D\u79F0",completed:"\u5DF2\u5B8C\u6210",connectingToAgentSScreen:"\u6B63\u5728\u8FDE\u63A5\u667A\u80FD\u4F53\u5C4F\u5E55",continue:"\u7EE7\u7EED",contributionSnapshotAcrossCurrentInventoryValueSegmentSelectionChangesTheInspectedGroupWithoutMovingTheCard:"\u5F53\u524D\u5206\u914D\u5FEB\u7167\uFF0C\u9009\u62E9\u5206\u7EC4\u67E5\u770B\u8BE6\u7EC6\u6570\u636E\u3002",copied:"\u5DF2\u590D\u5236",continueInNewConversation:"\u5728\u65B0\u5BF9\u8BDD\u4E2D\u7EE7\u7EED",copy:"\u590D\u5236",copyCode:"\u590D\u5236\u4EE3\u7801",customAnswer:"\u81EA\u5B9A\u4E49\u7B54\u6848",date:"\u65E5\u671F",describeEdits:"\u63CF\u8FF0\u4FEE\u6539\u8981\u6C42",discard:"\u820D\u5F03",dismiss:"\u5173\u95ED",edited:"\u5DF2\u4FEE\u6539",end:"\u7ED3\u675F",enterAMessage:"\u8F93\u5165\u6D88\u606F",expandSidebar:"\u5C55\u5F00\u4FA7\u680F",failed:"\u5931\u8D25",followUps:"\u540E\u7EED\u95EE\u9898",goCalculate:"\u5F00\u59CB\u8BA1\u7B97",groundingLetsTheModelVerifyGeneratedValuesAgainstConnectedSources:"\u901A\u8FC7\u5DF2\u8FDE\u63A5\u7684\u6765\u6E90\u9A8C\u8BC1\u751F\u6210\u7684\u6570\u636E\u3002",hideFromView:"\u4ECE\u89C6\u56FE\u9690\u85CF",if:"\u5982\u679C",insights:"\u6D1E\u5BDF",keep:"\u4FDD\u7559",layout:"\u5E03\u5C40",more:"\u66F4\u591A",moreSettings:"\u66F4\u591A\u8BBE\u7F6E",newProperty:"\u65B0\u5EFA\u5C5E\u6027",nextQuestion:"\u4E0B\u4E00\u9898",noChatsFound:"\u6CA1\u6709\u627E\u5230\u5BF9\u8BDD",noMatchesFor:"\u672A\u627E\u5230\u5339\u914D\u9879\uFF1A\u201C",noResultsFound:"\u6CA1\u6709\u627E\u5230\u7ED3\u679C",open:"\u6253\u5F00",openApproval:"\u6253\u5F00\u5BA1\u6279",otherOptions:"\u5176\u4ED6\u9009\u9879",previousQuestion:"\u4E0A\u4E00\u9898",prompt:"\u63D0\u793A\u8BCD",recommendation:"\u5EFA\u8BAE",resetColumnWidths:"\u91CD\u7F6E\u5217\u5BBD",resizeCompanyColumn:"\u8C03\u6574\u540D\u79F0\u5217\u5BBD",scrollableTaskTable:"\u53EF\u6EDA\u52A8\u4EFB\u52A1\u8868\u683C",search:"\u641C\u7D22\u2026",searchChatHistory:"\u641C\u7D22\u5BF9\u8BDD\u5386\u53F2",searchChats:"\u641C\u7D22\u5BF9\u8BDD",selectInputs:"\u9009\u62E9\u8F93\u5165",selectType:"\u9009\u62E9\u7C7B\u578B",send:"\u53D1\u9001",sendEditInstruction:"\u53D1\u9001\u4FEE\u6539\u6307\u4EE4",setAPromptPressToMentionAnInput:"\u8BBE\u7F6E\u63D0\u793A\u8BCD\uFF08\u6309 @ \u5F15\u7528\u8F93\u5165\uFF09",signOut:"\u9000\u51FA\u767B\u5F55",skip:"\u8DF3\u8FC7",snapshot:"\u5FEB\u7167",somethingElse:"\u5176\u4ED6\u7B54\u6848\u2026",sources:"\u6765\u6E90",startOver:"\u91CD\u65B0\u5F00\u59CB",status:"\u72B6\u6001",tableOptions:"\u8868\u683C\u9009\u9879",taskName:"\u4EFB\u52A1\u540D\u79F0",teachATask:"\u6F14\u793A\u4EFB\u52A1",toolCalls:"\u5DE5\u5177\u8C03\u7528",trendSnapshot:"\u8D8B\u52BF\u5FEB\u7167",tryAgain:"\u91CD\u8BD5",type:"\u7C7B\u578B",useValuesFrom:"\u4F7F\u7528\u4EE5\u4E0B\u503C",v:"V",videoUnavailable:"\u89C6\u9891\u4E0D\u53EF\u7528",workspaceNavigation:"\u5DE5\u4F5C\u533A\u5BFC\u822A",and:"\u5E76\u4E14",applied:"\u5DF2\u5E94\u7528",count:"\u6570\u91CF",for:"\u9488\u5BF9",h:"h",is:"\u4E3A",links:"\u94FE\u63A5",spent:"\u652F\u51FA",configuration:"\u914D\u7F6E",new:"\u65B0\u5EFA",history:"\u5386\u53F2",edit:"\u7F16\u8F91",edits:"\u4FEE\u6539",removal:"\u5220\u9664",removals:"\u5220\u9664",addition:"\u65B0\u589E",additions:"\u65B0\u589E",change:"\u4FEE\u6539",changes:"\u4FEE\u6539",spend:"\u652F\u51FA",usage:"\u7528\u91CF",previousInsight:"\u4E0A\u4E00\u6761\u6D1E\u5BDF",nextInsight:"\u4E0B\u4E00\u6761\u6D1E\u5BDF",connected:"\u5DF2\u8FDE\u63A5",connect:"\u8FDE\u63A5",typeToSearchSourcesFiles:"\u8F93\u5165\u4EE5\u641C\u7D22\u6765\u6E90\u548C\u6587\u4EF6",typeToSearchCommands:"\u8F93\u5165\u4EE5\u641C\u7D22\u547D\u4EE4",listening:"\u6B63\u5728\u542C\u5199\u2026",stopDictation:"\u505C\u6B62\u542C\u5199",startDictation:"\u5F00\u59CB\u542C\u5199",unpin:"\u53D6\u6D88\u56FA\u5B9A",pin:"\u56FA\u5B9A",showFewerActions:"\u6536\u8D77\u64CD\u4F5C",showMoreActions:"\u66F4\u591A\u64CD\u4F5C",retry:"\u91CD\u8BD5",like:"\u8D5E",dislike:"\u4E0D\u8D5E",newWorkspace:"\u65B0\u5EFA\u5DE5\u4F5C\u533A",workspaceSettings:"\u5DE5\u4F5C\u533A\u8BBE\u7F6E",inviteTeamMembers:"\u9080\u8BF7\u56E2\u961F\u6210\u5458",loading:"\u52A0\u8F7D\u4E2D",thinking:"\u601D\u8003\u4E2D",thoughtComplete:"\u601D\u8003\u5B8C\u6210",model:"\u6A21\u578B",agent:"\u667A\u80FD\u4F53",viewSources:"\u67E5\u770B\u6765\u6E90",close:"\u5173\u95ED",noFiles:"\u6682\u65E0\u6587\u4EF6",done:"\u5B8C\u6210",doneEditing:"\u5B8C\u6210\u7F16\u8F91",newChat:"\u65B0\u5BF9\u8BDD",all:"\u5168\u90E8",toDo:"\u5F85\u529E",inProgress:"\u8FDB\u884C\u4E2D",veryStrong:"\u5F88\u5F3A",weak:"\u8F83\u5F31",veryWeak:"\u5F88\u5F31",noCommunication:"\u65E0\u4EA4\u6D41",cancel:"\u53D6\u6D88",improve:"\u6539\u5584",explain:"\u89E3\u91CA",shorten:"\u7CBE\u7B80",tone:"\u8BED\u6C14",grammar:"\u8BED\u6CD5",screenTitle:"{name}\u7684\u5C4F\u5E55",duration:"\u8017\u65F6 {time}",noMatches:"\u672A\u627E\u5230\u5339\u914D\u9879\uFF1A\u201C{query}\u201D",editsApplied_one:"\u5DF2\u5E94\u7528 {count} \u9879\u4FEE\u6539",editsApplied_other:"\u5DF2\u5E94\u7528 {count} \u9879\u4FEE\u6539",changesSummary:"\u5220\u9664 {removals} \u9879 \xB7 \u65B0\u589E {additions} \u9879",applyChanges_one:"\u5E94\u7528 {count} \u9879\u4FEE\u6539",applyChanges_other:"\u5E94\u7528 {count} \u9879\u4FEE\u6539",sourceCount_one:"{count} \u4E2A\u6765\u6E90",sourceCount_other:"{count} \u4E2A\u6765\u6E90",writeMessage:"\u8F93\u5165\u6D88\u606F\u2026",selectAllCompanies:"\u9009\u62E9\u6240\u6709\u516C\u53F8",categories:"\u5206\u7C7B",lastInteraction:"\u6700\u8FD1\u4E92\u52A8",connectionStrength:"\u8054\u7CFB\u5F3A\u5EA6",linksHeading:"\u94FE\u63A5",propertyType:"\u5C5E\u6027\u7C7B\u578B",tool:"\u5DE5\u5177",grounding:"\u6EAF\u6E90",inputs:"\u8F93\u5165",requiredValue:"\u5FC5\u586B\u503C",allowEmptyResults:"\u5141\u8BB8\u7A7A\u7ED3\u679C",showConfidence:"\u663E\u793A\u7F6E\u4FE1\u5EA6",categoriesSummary:"\u5206\u7C7B\uFF1A{categories}",sortByLabel:"\u6309{label}\u6392\u5E8F",resizeColumn:"\u8C03\u6574{label}\u5217\u5BBD",selectName:"\u9009\u62E9{name}",columnCalculationPrompt:"{column}\u8BA1\u7B97\u63D0\u793A\u8BCD",proposedChanges:"\u5EFA\u8BAE\u66F4\u6539",name:"\u540D\u79F0",category:"\u5206\u7C7B",value:"\u503C",anomaly:"\u5F02\u5E38",allocation:"\u5206\u5E03"};function Ue(){let e=provider.useMonkeysLocaleMessages(),{locale:t}=provider.useMonkeysLocale(),o=t==="zh-CN"?cl:Nr;return (n,r={})=>{let i=dl[n]??n,s=typeof r.count=="number"?"_"+new Intl.PluralRules(t).select(r.count):"";return (e.beautiful?.[i+s]??e.beautiful?.[i]??o[i+s]??o[i]??Nr[i+s]??Nr[i]??n).replace(/\{(\w+)\}/g,(d,c)=>String(r[c]??""))}}a(Ue,"useBUICopy");function Ot(e,t){let o=Ue(),n=a(r=>typeof r=="string"?o(r):r&&typeof r=="object"?Object.fromEntries(Object.entries(r).map(([i,s])=>[i,n(s)])):r,"visit");return {...n(e),...t}}a(Ot,"useBUILabels");var sm="",lm=[],dm=[],cm="repeating-linear-gradient(45deg, var(--bui-red) 0, var(--bui-red) 1.5px, transparent 1.5px, transparent 3px)",um=new Set(["import","from","export","default","async","function","const","let","var","await","return","if","else","for","while","new","throw","try","catch","null","true","false","undefined"]),pm=/("(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|`[^`]*`|\b\d+(?:\.\d+)?\b|\b(?:import|from|export|default|async|function|const|let|var|await|return|if|else|for|while|new|throw|try|catch|null|true|false|undefined)\b|[A-Za-z_$][\w$]*(?=\s*\())/g;function ii(e){let t=[],o=0,n=0;for(let r of e.matchAll(pm)){let i=r.index??0,s=r[0];i>o&&t.push(jsxRuntime.jsx("span",{children:e.slice(o,i)},n++));let l,d;/^["'`]/.test(s)||/^\d/.test(s)?l="var(--bui-orange)":um.has(s)?l="var(--bui-accent-ink)":(l="var(--bui-ink)",d="var(--bui-font-weight-medium, 500)"),t.push(jsxRuntime.jsx("span",{style:{color:l,fontWeight:d},children:s},n++)),o=i+s.length;}return o<e.length&&t.push(jsxRuntime.jsx("span",{children:e.slice(o)},n++)),t}a(ii,"highlight");function mm({pieces:e}){return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e.map((t,o)=>{if(t.change){let n=t.change==="add";return jsxRuntime.jsx("span",{className:"rounded-[3px]",style:{background:`color-mix(in srgb, var(--bui-${n?"green":"red"}) 18%, transparent)`,padding:"0 calc(var(--bui-spacing) / 2)",margin:"0 calc(var(--bui-spacing) / -4)",boxDecorationBreak:"clone",WebkitBoxDecorationBreak:"clone"},children:ii(t.text)},o)}return jsxRuntime.jsx("span",{children:ii(t.text)},o)})})}a(mm,"Pieces");function gm(){return jsxRuntime.jsx("svg",{"aria-hidden":true,width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:"shrink-0 text-ink-3",children:jsxRuntime.jsx("path",{d:"M17.25 6.75 22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3-4.5 16.5"})})}a(gm,"FileIcon");var fm={copy:"Copy",copied:"Copied"};function Er({variant:e="Code",embedded:t=false,lines:o=lm,code:n,diff:r=dm,filename:i=sm,labels:s,onCopy:l,onCopyError:d}){let c=Ue(),[u,m]=he.useState(false),p=he.useRef(true),g=he.useRef();he.useEffect(()=>(p.current=true,()=>{p.current=false,clearTimeout(g.current);}),[]);let b=e==="Diff",x=Ot(fm,s),f=n??o.join(`
|
|
95
|
+
`),h=he.useCallback(()=>{Promise.resolve().then(()=>navigator.clipboard.writeText(f)).then(()=>{p.current&&(m(true),l?.(f),clearTimeout(g.current),g.current=setTimeout(()=>m(false),1500));}).catch(w=>d?.(w instanceof Error?w.message:String(w)));},[f,l,d]),k=r.filter(w=>w.type==="add").length,$=r.filter(w=>w.type==="del").length;return jsxRuntime.jsx(ee,{children:jsxRuntime.jsxs("div",{"data-bui-code-block":true,className:t?"artifact-code-embedded":"w-full max-w-105 overflow-hidden rounded-card bg-surface shadow-card",children:[jsxRuntime.jsxs("div",{className:"flex h-11 items-center gap-2 border-b border-line px-4 text-[12.5px]",children:[jsxRuntime.jsxs("span",{className:"inline-flex min-w-0 items-center gap-[7px]",children:[jsxRuntime.jsx(gm,{}),jsxRuntime.jsx("span",{className:"truncate font-mono leading-none text-ink",children:i})]}),b?jsxRuntime.jsxs("span",{className:"ml-auto inline-flex items-center gap-2 font-mono text-[12px] leading-none tabular-nums",children:[jsxRuntime.jsxs("span",{className:"text-green",children:["+",k]}),jsxRuntime.jsxs("span",{className:"text-red",children:["-",$]})]}):jsxRuntime.jsxs("button",{type:"button","aria-label":c("Copy code"),onClick:h,className:`-mr-1 ml-auto flex h-6 items-center gap-1 rounded-[var(--bui-radius-chip)] px-1.5 text-[12px]
|
|
96
96
|
font-medium transition-colors duration-100 hover:bg-hover
|
|
97
|
-
${u?"text-green":"text-ink-3 hover:text-ink"}`,children:[u?jsxRuntime.jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M20 6L9 17l-5-5"})}):jsxRuntime.jsxs("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsxRuntime.jsx("rect",{x:"9",y:"9",width:"12",height:"12",rx:"2.5"}),jsxRuntime.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),u?x.copied:x.copy]})]}),jsxRuntime.jsx("div",{className:"py-3 font-mono text-[12.5px] leading-[1.65] text-ink-2",children:b?jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("span",{className:"pointer-events-none absolute inset-y-0 left-5 w-px bg-line"}),r.map((w,C)=>{let T=w.type==="add"
|
|
98
|
-
${T?"bg-green-tint"
|
|
99
|
-
`)return false}return false},"In"),kl=a((e,t)=>{for(let o=t-1;o>=0;o-=1){if(e[o]===")")return false;if(e[o]==="(")return o>0&&e[o-1]==="]"?
|
|
100
|
-
`)return false}return false},"m"),
|
|
97
|
+
${u?"text-green":"text-ink-3 hover:text-ink"}`,children:[u?jsxRuntime.jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M20 6L9 17l-5-5"})}):jsxRuntime.jsxs("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsxRuntime.jsx("rect",{x:"9",y:"9",width:"12",height:"12",rx:"2.5"}),jsxRuntime.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),u?x.copied:x.copy]})]}),jsxRuntime.jsx("div",{className:"py-3 font-mono text-[12.5px] leading-[1.65] text-ink-2",children:b?jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("span",{className:"pointer-events-none absolute inset-y-0 left-5 w-px bg-line"}),r.map((w,C)=>{let T=w.type==="add",S=w.type==="del",P=S?w.old:w.cur;return jsxRuntime.jsxs("div",{className:`relative grid grid-cols-[20px_minmax(0,1fr)] items-start
|
|
98
|
+
${T?"bg-green-tint":S?"bg-red-tint":""}`,children:[(T||S)&&jsxRuntime.jsx("span",{className:"absolute inset-y-0 left-0 w-[3px]",style:{background:T?"var(--bui-green)":cm}}),jsxRuntime.jsx("span",{className:`select-none text-center text-[11px] ${T?"text-green":S?"text-red":"text-ink-3"}`,children:P??""}),jsxRuntime.jsx("code",{className:"pr-3 pl-1 break-words whitespace-pre-wrap",children:jsxRuntime.jsx(mm,{pieces:w.pieces})})]},C)})]}):jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("span",{className:"pointer-events-none absolute inset-y-0 left-5 w-px bg-line"}),o.map((w,C)=>jsxRuntime.jsxs("div",{className:"grid grid-cols-[20px_minmax(0,1fr)] items-start",children:[jsxRuntime.jsx("span",{className:"select-none text-center text-[11px] text-ink-3",children:C+1}),jsxRuntime.jsx("code",{className:"pr-3 pl-1 break-words whitespace-pre-wrap",children:ii(w)})]},C))]})})]})})}a(Er,"BUICodeBlock");function Mo(e,t){if(typeof e!="string")return;let o=e.trim();if(!o||/[\u0000-\u001f\u007f\\]/.test(o)||/^https?:/i.test(o)&&!/^https?:\/\//i.test(o))return;let n;try{n=new URL(o,"https://monkeys.invalid/");}catch{return}if(!(n.username||n.password)){if(n.protocol==="http:"||n.protocol==="https:"||t==="link"&&(n.protocol==="mailto:"||n.protocol==="tel:"))return o;if(n.protocol==="blob:"){if(n.pathname.startsWith("null/"))return o;try{let r=new URL(n.pathname);if(["https:","http:"].includes(r.protocol)&&!r.username&&!r.password)return o}catch{}}}}a(Mo,"safeDisplayUrl");var hm=Object.defineProperty,ym=Object.defineProperties,vm=Object.getOwnPropertyDescriptors,pl=Object.getOwnPropertySymbols,xm=Object.prototype.hasOwnProperty,km=Object.prototype.propertyIsEnumerable,ml=a((e,t,o)=>t in e?hm(e,t,{enumerable:true,configurable:true,writable:true,value:o}):e[t]=o,"O"),hl=a((e,t)=>{for(var o in t||(t={}))xm.call(t,o)&&ml(e,o,t[o]);if(pl)for(var o of pl(t))km.call(t,o)&&ml(e,o,t[o]);return e},"I"),yl=a((e,t)=>ym(e,vm(t)),"k"),yt=a((e,t)=>{let o=false,n=false;for(let r=0;r<t;r+=1){if(e[r]==="\\"&&r+1<e.length&&e[r+1]==="`"){r+=1;continue}if(e.substring(r,r+3)==="```"){n=!n,r+=2;continue}!n&&e[r]==="`"&&(o=!o);}return o||n},"c"),wm=a((e,t)=>{let o=e.substring(t,t+3)==="```",n=t>0&&e.substring(t-1,t+2)==="```",r=t>1&&e.substring(t-2,t+1)==="```";return o||n||r},"hn"),Cm=a(e=>{let t=0;for(let o=0;o<e.length;o+=1){if(e[o]==="\\"&&o+1<e.length&&e[o+1]==="`"){o+=1;continue}e[o]==="`"&&!wm(e,o)&&(t+=1);}return t},"L"),Ao=a((e,t)=>{let o=false,n=false,r=-1;for(let i=0;i<e.length;i+=1){if(e[i]==="\\"&&i+1<e.length&&e[i+1]==="`"){i+=1;continue}if(e.substring(i,i+3)==="```"){n=!n,i+=2;continue}if(!n&&e[i]==="`")if(o){if(r<t&&t<i)return true;o=false,r=-1;}else o=true,r=i;}return false},"f"),Tm=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,Sm=a(e=>!e||typeof e!="string"||!e.includes(">")?e:e.replace(Tm,(t,o,n,r)=>yt(e,r)?t:`${o}\\>${n}`),"E"),$m=/(\*\*)([^*]*\*?)$/,Pm=/(__)([^_]*?)$/,Rm=/(\*\*\*)([^*]*?)$/,Mm=/(\*)([^*]*?)$/,Am=/(_)([^_]*?)$/,Bm=/(`)([^`]*?)$/,Nm=/(~~)([^~]*?)$/,nn=/^[\s_~*`]*$/,vl=/^[\s]*[-*+][\s]+$/,Em=/[\p{L}\p{N}_]/u,Im=/^```[^`\n]*```?$/,Dm=/^\*{4,}$/,Lm=/(__)([^_]+)_$/,zm=/(~~)([^~]+)~$/,gl=/~~/g,Bo=a(e=>{if(!e)return false;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===95?true:Em.test(e)},"g");var Om=a((e,t)=>{let o=1;for(let n=t-1;n>=0;n-=1)if(e[n]==="]")o+=1;else if(e[n]==="["&&(o-=1,o===0))return n;return -1},"X"),xl=a((e,t)=>{let o=1;for(let n=t+1;n<e.length;n+=1)if(e[n]==="[")o+=1;else if(e[n]==="]"&&(o-=1,o===0))return n;return -1},"C"),Ir=a((e,t)=>{let o=false,n=false;for(let r=0;r<e.length&&r<t;r+=1){if(e[r]==="\\"&&e[r+1]==="$"){r+=1;continue}e[r]==="$"&&(e[r+1]==="$"?(n=!n,r+=1,o=false):n||(o=!o));}return o||n},"h"),Hm=a((e,t)=>{for(let o=t;o<e.length;o+=1){if(e[o]===")")return true;if(e[o]===`
|
|
99
|
+
`)return false}return false},"In"),kl=a((e,t)=>{for(let o=t-1;o>=0;o-=1){if(e[o]===")")return false;if(e[o]==="(")return o>0&&e[o-1]==="]"?Hm(e,t):false;if(e[o]===`
|
|
100
|
+
`)return false}return false},"m"),Wm=a((e,t)=>{for(let o=t-1;o>=0;o-=1){if(e[o]===">")return false;if(e[o]==="<"){let n=o+1<e.length?e[o+1]:"";return n>="a"&&n<="z"||n>="A"&&n<="Z"||n==="/"}if(e[o]===`
|
|
101
101
|
`)return false}return false},"z"),li=a((e,t,o)=>{let n=0;for(let d=t-1;d>=0;d-=1)if(e[d]===`
|
|
102
102
|
`){n=d+1;break}let r=e.length;for(let d=t;d<e.length;d+=1)if(e[d]===`
|
|
103
|
-
`){r=d;break}let i=e.substring(n,r),s=0,l=false;for(let d of i)if(d===o)s+=1;else if(d!==" "&&d!==" "){l=true;break}return s>=3&&!l},"p"),
|
|
103
|
+
`){r=d;break}let i=e.substring(n,r),s=0,l=false;for(let d of i)if(d===o)s+=1;else if(d!==" "&&d!==" "){l=true;break}return s>=3&&!l},"p"),Fm=a((e,t,o,n)=>o==="\\"||e.includes("$")&&Ir(e,t)?true:o!=="*"&&n==="*"?(t<e.length-2?e[t+2]:"")!=="*":!!(o==="*"||o&&n&&Bo(o)&&Bo(n)||(!o||o===" "||o===" "||o===`
|
|
104
104
|
`)&&(!n||n===" "||n===" "||n===`
|
|
105
|
-
`)),"kn"),wl=a(e=>{let t=0,o=false,n=e.length;for(let r=0;r<n;r+=1){if(e[r]==="`"&&r+2<n&&e[r+1]==="`"&&e[r+2]==="`"){o=!o,r+=2;continue}if(o||e[r]!=="*")continue;let i=r>0?e[r-1]:"",s=r<n-1?e[r+1]:"";
|
|
105
|
+
`)),"kn"),wl=a(e=>{let t=0,o=false,n=e.length;for(let r=0;r<n;r+=1){if(e[r]==="`"&&r+2<n&&e[r+1]==="`"&&e[r+2]==="`"){o=!o,r+=2;continue}if(o||e[r]!=="*")continue;let i=r>0?e[r-1]:"",s=r<n-1?e[r+1]:"";Fm(e,r,i,s)||(t+=1);}return t},"Y"),_m=a((e,t,o,n)=>!!(o==="\\"||e.includes("$")&&Ir(e,t)||kl(e,t)||Wm(e,t)||o==="_"||n==="_"||o&&n&&Bo(o)&&Bo(n)),"bn"),Um=a(e=>{let t=0,o=false,n=e.length;for(let r=0;r<n;r+=1){if(e[r]==="`"&&r+2<n&&e[r+1]==="`"&&e[r+2]==="`"){o=!o,r+=2;continue}if(o||e[r]!=="_")continue;let i=r>0?e[r-1]:"",s=r<n-1?e[r+1]:"";_m(e,r,i,s)||(t+=1);}return t},"Tn"),Vm=a(e=>{let t=0,o=0,n=false;for(let r=0;r<e.length;r+=1){if(e[r]==="`"&&r+2<e.length&&e[r+1]==="`"&&e[r+2]==="`"){o>=3&&(t+=Math.floor(o/3)),o=0,n=!n,r+=2;continue}n||(e[r]==="*"?o+=1:(o>=3&&(t+=Math.floor(o/3)),o=0));}return o>=3&&(t+=Math.floor(o/3)),t},"Cn"),di=a(e=>{let t=0,o=false;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){o=!o,n+=2;continue}o||e[n]==="*"&&n+1<e.length&&e[n+1]==="*"&&(t+=1,n+=1);}return t},"A"),fl=a(e=>{let t=0,o=false;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){o=!o,n+=2;continue}o||e[n]==="_"&&n+1<e.length&&e[n+1]==="_"&&(t+=1,n+=1);}return t},"v"),jm=a((e,t,o)=>{if(!t||nn.test(t))return true;let n=e.substring(0,o).lastIndexOf(`
|
|
106
106
|
`),r=n===-1?0:n+1,i=e.substring(r,o);return vl.test(i)&&t.includes(`
|
|
107
|
-
`)?true:li(e,o,"*")},"An"),
|
|
107
|
+
`)?true:li(e,o,"*")},"An"),Gm=a(e=>{let t=e.match($m);if(!t)return e;let o=t[2],n=e.lastIndexOf(t[1]);return yt(e,n)||Ao(e,n)||jm(e,o,n)?e:di(e)%2===1?o.endsWith("*")?`${e}*`:`${e}**`:e},"j"),qm=a((e,t,o)=>{if(!t||nn.test(t))return true;let n=e.substring(0,o).lastIndexOf(`
|
|
108
108
|
`),r=n===-1?0:n+1,i=e.substring(r,o);return vl.test(i)&&t.includes(`
|
|
109
|
-
`)?true:li(e,o,"_")},"Bn"),
|
|
109
|
+
`)?true:li(e,o,"_")},"Bn"),Km=a(e=>{let t=e.match(Pm);if(!t){let r=e.match(Lm);if(r){let i=e.lastIndexOf(r[1]);if(!(yt(e,i)||Ao(e,i))&&fl(e)%2===1)return `${e}_`}return e}let o=t[2],n=e.lastIndexOf(t[1]);return yt(e,n)||Ao(e,n)||qm(e,o,n)?e:fl(e)%2===1?`${e}__`:e},"Q"),Xm=a(e=>{let t=false;for(let o=0;o<e.length;o+=1){if(e[o]==="`"&&o+2<e.length&&e[o+1]==="`"&&e[o+2]==="`"){t=!t,o+=2;continue}if(!t&&e[o]==="*"&&e[o-1]!=="*"&&e[o+1]!=="*"&&e[o-1]!=="\\"&&!Ir(e,o)){let n=o>0?e[o-1]:"",r=o<e.length-1?e[o+1]:"";if((!n||n===" "||n===" "||n===`
|
|
110
110
|
`)&&(!r||r===" "||r===" "||r===`
|
|
111
|
-
`)||n&&r&&
|
|
112
|
-
`;)t-=1;if(t<e.length){let o=e.slice(0,t),n=e.slice(t);return `${o}_${n}`}return `${e}_`},"_n"),
|
|
113
|
-
`)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,"En"),
|
|
111
|
+
`)||n&&r&&Bo(n)&&Bo(r))continue;return o}}return -1},"Sn"),Ym=a(e=>{if(!e.match(Mm))return e;let t=Xm(e);if(t===-1||yt(e,t)||Ao(e,t))return e;let o=e.substring(t+1);return !o||nn.test(o)?e:wl(e)%2===1?`${e}*`:e},"Z"),Cl=a(e=>{let t=false;for(let o=0;o<e.length;o+=1){if(e[o]==="`"&&o+2<e.length&&e[o+1]==="`"&&e[o+2]==="`"){t=!t,o+=2;continue}if(!t&&e[o]==="_"&&e[o-1]!=="_"&&e[o+1]!=="_"&&e[o-1]!=="\\"&&!Ir(e,o)&&!kl(e,o)){let n=o>0?e[o-1]:"",r=o<e.length-1?e[o+1]:"";if(n&&r&&Bo(n)&&Bo(r))continue;return o}}return -1},"q"),Qm=a(e=>{let t=e.length;for(;t>0&&e[t-1]===`
|
|
112
|
+
`;)t-=1;if(t<e.length){let o=e.slice(0,t),n=e.slice(t);return `${o}_${n}`}return `${e}_`},"_n"),Zm=a(e=>{if(!e.endsWith("**"))return null;let t=e.slice(0,-2);if(di(t)%2!==1)return null;let o=t.indexOf("**"),n=Cl(t);return o!==-1&&n!==-1&&o<n?`${t}_**`:null},"Pn"),Jm=a(e=>{if(!e.match(Am))return e;let t=Cl(e);if(t===-1)return e;let o=e.substring(t+1);if(!o||nn.test(o)||yt(e,t)||Ao(e,t))return e;if(Um(e)%2===1){let n=Zm(e);return n!==null?n:Qm(e)}return e},"J"),eg=a(e=>{let t=di(e),o=wl(e);return t%2===0&&o%2===0},"$n"),tg=a((e,t,o)=>!t||nn.test(t)||yt(e,o)||Ao(e,o)?true:li(e,o,"*"),"On"),og=a(e=>{if(Dm.test(e))return e;let t=e.match(Rm);if(!t)return e;let o=t[2],n=e.lastIndexOf(t[1]);return tg(e,o,n)?e:Vm(e)%2===1?eg(e)?e:`${e}***`:e},"V"),ng=/<[a-zA-Z/][^>]*$/,rg=a(e=>{let t=e.match(ng);return !t||t.index===void 0||yt(e,t.index)?e:e.substring(0,t.index).trimEnd()},"x"),ag=a(e=>!e.match(Im)||e.includes(`
|
|
113
|
+
`)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,"En"),ig=a(e=>(e.match(/```/g)||[]).length%2===1,"Mn"),sg=a(e=>{let t=ag(e);if(t!==null)return t;let o=e.match(Bm);if(o&&!ig(e)){let n=o[2];if(!n||nn.test(n))return e;if(Cm(e)%2===1)return `${e}\``}return e},"nn"),Tl=a((e,t)=>t>=2&&e.substring(t-2,t+1)==="```"||t>=1&&e.substring(t-1,t+2)==="```"||t<=e.length-3&&e.substring(t,t+3)==="```","en"),lg=a(e=>{let t=0,o=false;for(let n=0;n<e.length-1;n+=1)e[n]==="`"&&!Tl(e,n)&&(o=!o),!o&&e[n]==="$"&&e[n+1]==="$"&&(t+=1,n+=1);return t},"Nn"),dg=a(e=>{let t=0,o=false;for(let n=0;n<e.length;n+=1){if(e[n]==="\\"){n+=1;continue}if(e[n]==="`"&&!Tl(e,n)){o=!o;continue}!o&&e[n]==="$"&&(n+1<e.length&&e[n+1]==="$"?n+=1:t+=1);}return t},"yn"),cg=a(e=>{if(e.endsWith("$")&&!e.endsWith("$$"))return `${e}$`;let t=e.indexOf("$$");return t!==-1&&e.indexOf(`
|
|
114
114
|
`,t)!==-1&&!e.endsWith(`
|
|
115
115
|
`)?`${e}
|
|
116
|
-
$$`:`${e}$$`},"Rn"),
|
|
117
|
-
`);if(t===-1)return e;let o=e.substring(t+1),n=e.substring(0,t),r=o.trim();if(
|
|
118
|
-
`).at(-1);if(i&&i.trim().length>0)return `${e}\u200B`}if(
|
|
119
|
-
`).at(-1);if(i&&i.trim().length>0)return `${e}\u200B`}return e},"ln"),
|
|
116
|
+
$$`:`${e}$$`},"Rn"),ug=a(e=>lg(e)%2===0?e:cg(e),"rn"),pg=a(e=>dg(e)%2===1?`${e}$`:e,"sn"),mg=a((e,t,o)=>{if(e.substring(t+2).includes(")"))return null;let n=Om(e,t);if(n===-1||yt(e,n))return null;let r=n>0&&e[n-1]==="!",i=r?n-1:n,s=e.substring(0,i);if(r)return s;let l=e.substring(n+1,t);return o==="text-only"?`${s}${l}`:`${s}[${l}](streamdown:incomplete-link)`},"Un"),bl=a((e,t)=>{for(let o=0;o<t;o++)if(e[o]==="["&&!yt(e,o)){if(o>0&&e[o-1]==="!")continue;let n=xl(e,o);if(n===-1)return o;if(n+1<e.length&&e[n+1]==="("){let r=e.indexOf(")",n+2);r!==-1&&(o=r);}}return t},"on"),gg=a((e,t,o)=>{let n=t>0&&e[t-1]==="!",r=n?t-1:t;if(!e.substring(t+1).includes("]")){let i=e.substring(0,r);if(n)return i;if(o==="text-only"){let s=bl(e,t);return e.substring(0,s)+e.substring(s+1)}return `${e}](streamdown:incomplete-link)`}if(xl(e,t)===-1){let i=e.substring(0,r);if(n)return i;if(o==="text-only"){let s=bl(e,t);return e.substring(0,s)+e.substring(s+1)}return `${e}](streamdown:incomplete-link)`}return null},"Wn"),Sl=a((e,t="protocol")=>{let o=e.lastIndexOf("](");if(o!==-1&&!yt(e,o)){let n=mg(e,o,t);if(n!==null)return n}for(let n=e.length-1;n>=0;n-=1)if(e[n]==="["&&!yt(e,n)){let r=gg(e,n,t);if(r!==null)return r}return e},"B"),fg=/^-{1,2}$/,bg=/^[\s]*-{1,2}[\s]+$/,hg=/^={1,2}$/,yg=/^[\s]*={1,2}[\s]+$/,vg=a(e=>{if(!e||typeof e!="string")return e;let t=e.lastIndexOf(`
|
|
117
|
+
`);if(t===-1)return e;let o=e.substring(t+1),n=e.substring(0,t),r=o.trim();if(fg.test(r)&&!o.match(bg)){let i=n.split(`
|
|
118
|
+
`).at(-1);if(i&&i.trim().length>0)return `${e}\u200B`}if(hg.test(r)&&!o.match(yg)){let i=n.split(`
|
|
119
|
+
`).at(-1);if(i&&i.trim().length>0)return `${e}\u200B`}return e},"ln"),xg=new RegExp("(?<=[\\p{L}\\p{N}_])~(?!~)(?=[\\p{L}\\p{N}_])","gu"),kg=a(e=>!e||typeof e!="string"||!e.includes("~")?e:e.replace(xg,(t,o)=>yt(e,o)?t:"\\~"),"tn"),wg=a(e=>{var t,o;let n=e.match(Nm);if(n){let r=n[2];if(!r||nn.test(r))return e;let i=e.lastIndexOf(n[1]);if(yt(e,i)||Ao(e,i))return e;if(((t=e.match(gl))==null?void 0:t.length)%2===1)return `${e}~~`}else {let r=e.match(zm);if(r){let i=e.lastIndexOf(r[0].slice(0,2));if(yt(e,i)||Ao(e,i))return e;if(((o=e.match(gl))==null?void 0:o.length)%2===1)return `${e}~`}}return e},"an"),si=a(e=>e!==false,"S"),Cg=a(e=>e===true,"Fn"),ht={SINGLE_TILDE:0,COMPARISON_OPERATORS:5,HTML_TAGS:10,SETEXT_HEADINGS:15,LINKS:20,BOLD_ITALIC:30,BOLD:35,ITALIC_DOUBLE_UNDERSCORE:40,ITALIC_SINGLE_ASTERISK:41,ITALIC_SINGLE_UNDERSCORE:42,INLINE_CODE:50,STRIKETHROUGH:60,KATEX:70,INLINE_KATEX:75,DEFAULT:100},Tg=[{handler:{name:"singleTilde",handle:kg,priority:ht.SINGLE_TILDE},optionKey:"singleTilde"},{handler:{name:"comparisonOperators",handle:Sm,priority:ht.COMPARISON_OPERATORS},optionKey:"comparisonOperators"},{handler:{name:"htmlTags",handle:rg,priority:ht.HTML_TAGS},optionKey:"htmlTags"},{handler:{name:"setextHeadings",handle:vg,priority:ht.SETEXT_HEADINGS},optionKey:"setextHeadings"},{handler:{name:"links",handle:Sl,priority:ht.LINKS},optionKey:"links",earlyReturn:a(e=>e.endsWith("](streamdown:incomplete-link)"),"earlyReturn")},{handler:{name:"boldItalic",handle:og,priority:ht.BOLD_ITALIC},optionKey:"boldItalic"},{handler:{name:"bold",handle:Gm,priority:ht.BOLD},optionKey:"bold"},{handler:{name:"italicDoubleUnderscore",handle:Km,priority:ht.ITALIC_DOUBLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"italicSingleAsterisk",handle:Ym,priority:ht.ITALIC_SINGLE_ASTERISK},optionKey:"italic"},{handler:{name:"italicSingleUnderscore",handle:Jm,priority:ht.ITALIC_SINGLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"inlineCode",handle:sg,priority:ht.INLINE_CODE},optionKey:"inlineCode"},{handler:{name:"strikethrough",handle:wg,priority:ht.STRIKETHROUGH},optionKey:"strikethrough"},{handler:{name:"katex",handle:ug,priority:ht.KATEX},optionKey:"katex"},{handler:{name:"inlineKatex",handle:pg,priority:ht.INLINE_KATEX},optionKey:"inlineKatex"}],Sg=a(e=>{var t;let o=(t=e?.linkMode)!=null?t:"protocol";return Tg.filter(({handler:n,optionKey:r})=>n.name==="links"?si(e?.links)||si(e?.images):n.name==="inlineKatex"?Cg(e?.inlineKatex):si(e?.[r])).map(({handler:n,earlyReturn:r})=>n.name==="links"?{handler:yl(hl({},n),{handle:a(i=>Sl(i,o),"handle")}),earlyReturn:o==="protocol"?r:void 0}:{handler:n,earlyReturn:r})},"zn"),$g=a((e,t)=>{var o;if(!e||typeof e!="string")return e;let n=e.endsWith(" ")&&!e.endsWith(" ")?e.slice(0,-1):e,r=Sg(t),i=((o=t?.handlers)!=null?o:[]).map(l=>{var d;return {handler:yl(hl({},l),{priority:(d=l.priority)!=null?d:ht.DEFAULT}),earlyReturn:void 0}}),s=[...r,...i].sort((l,d)=>{var c,u;return ((c=l.handler.priority)!=null?c:0)-((u=d.handler.priority)!=null?u:0)});for(let{handler:l,earlyReturn:d}of s)if(n=l.handle(n),d!=null&&d(n))return n;return n},"vn"),$l=$g;function Pl(e){let t=Mo(e,"link");if(!(!t||!/^https?:\/\//i.test(t)))try{let o=new URL(t);return o.hash="",`${o.protocol}//${o.host.toLowerCase()}${o.pathname.replace(/\/+$/,"")}${o.search}`}catch{return}}a(Pl,"citationKey");function Rl(e,t){let o=Pl(t);return o?e.find(n=>Pl(n.href)===o):void 0}a(Rl,"citedSource");function Lr({source:e,className:t}){let o=Mo(e.image,"media");return o?jsxRuntime.jsx("img",{src:o,alt:"",className:`source-avatar ${t}`}):jsxRuntime.jsx("span",{"aria-hidden":true,className:`source-avatar inline-flex shrink-0 items-center justify-center bg-inset font-sans text-[8px] font-semibold uppercase leading-none text-ink-2 ${t}`,children:(e.domain||e.name).replace(/^www\./,"").charAt(0)})}a(Lr,"SourceAvatar");function zr({source:e}){return e?jsxRuntime.jsxs("a",{href:Mo(e.href,"link"),target:"_blank",rel:"noreferrer","data-bui-source-chip":true,className:`ml-0 mr-1 inline-flex h-4.5 translate-y-[-1px] items-center gap-1 rounded-[5px]
|
|
120
120
|
bg-inset pr-[3px] pl-[3px] align-middle font-mono text-[10.5px] text-ink-2 no-underline shadow-hairline
|
|
121
|
-
transition-colors duration-150 hover:bg-hover hover:text-ink`,style:{animation:"bui-pop-in 250ms cubic-bezier(0.23,1,0.32,1) both"},children:[jsxRuntime.jsx(Lr,{source:e,className:"size-3 rounded-[3px]"}),jsxRuntime.jsx("span",{children:e.domain})]}):null}a(zr,"SourceChip");function v(...e){return tailwindMerge.twMerge(e.filter(Boolean).join(" "))}a(v,"cn");function H(e){return e!=null&&typeof e!="boolean"}a(H,"hasRenderableNode");var Ml={preview:"Preview",edit:"Edit",visual:"Visual editor",source:"Source editor",exit:"Exit editing",save:"Save",saved:"Saved",dirty:"Unsaved changes",saving:"Saving\u2026",error:"Save failed. Your changes are retained.",offline:"Offline. Your changes are retained.",conflict:"A newer version is available. Compare it with your draft before saving.",latest:"View latest version",useLatest:"Use latest version",keepDraft:"Keep my draft and merge",discard:"Discard unsaved changes",closeWarning:"There are unsaved changes. Save them or discard them before leaving.",history:"Version history",restore:"Restore this version",original:"Original file",download:"Download",downloadDraft:"Download draft",loading:"Loading document\u2026",unavailable:"This document cannot be edited.",retry:"Try again",sourceOnly:"This document contains syntax supported in source mode only.",tooLarge:"This document exceeds the editing limit.",bold:"Bold",italic:"Italic",strike:"Strikethrough",heading:"Heading",paragraph:"Paragraph",quote:"Quote",bullet:"Bulleted list",ordered:"Numbered list",task:"Task list",link:"Link",image:"Image",table:"Table",code:"Code block",undo:"Undo",redo:"Redo",addRow:"Add row",addColumn:"Add column",deleteRow:"Delete row",deleteColumn:"Delete column",alignLeft:"Align left",alignCenter:"Align center",alignRight:"Align right",url:"URL or managed file reference",alt:"Alternative text",insert:"Insert",cancel:"Cancel",upload:"Upload image",imageFailed:"Image could not be loaded.",chooseImage:"Select image",recovery:"A recovered draft is available.",recover:"Recover draft",switchToLight:"Switch Markdown area to light mode",switchToDark:"Switch Markdown area to dark mode",toolbar:"Document formatting",content:"Document content",emptyHistory:"No saved versions yet."},Al={preview:"\u9884\u89C8",edit:"\u7F16\u8F91",visual:"\u53EF\u89C6\u7F16\u8F91",source:"\u6E90\u7801\u7F16\u8F91",exit:"\u9000\u51FA\u7F16\u8F91",save:"\u4FDD\u5B58",saved:"\u5DF2\u4FDD\u5B58",dirty:"\u672A\u4FDD\u5B58",saving:"\u4FDD\u5B58\u4E2D\u2026",error:"\u4FDD\u5B58\u5931\u8D25\uFF0C\u4FEE\u6539\u5DF2\u4FDD\u7559\u3002",offline:"\u5F53\u524D\u79BB\u7EBF\uFF0C\u4FEE\u6539\u5DF2\u4FDD\u7559\u3002",conflict:"\u6587\u6863\u5DF2\u6709\u66F4\u65B0\u7248\u672C\uFF0C\u8BF7\u6BD4\u8F83\u5E76\u5408\u5E76\u540E\u4FDD\u5B58\u3002",latest:"\u67E5\u770B\u6700\u65B0\u7248\u672C",useLatest:"\u4F7F\u7528\u6700\u65B0\u7248\u672C",keepDraft:"\u4FDD\u7559\u8349\u7A3F\u5E76\u5408\u5E76",discard:"\u64A4\u9500\u672A\u4FDD\u5B58\u6539\u52A8",closeWarning:"\u8FD8\u6709\u672A\u4FDD\u5B58\u7684\u4FEE\u6539\uFF0C\u8BF7\u4FDD\u5B58\u6216\u653E\u5F03\u540E\u518D\u79BB\u5F00\u3002",history:"\u7248\u672C\u5386\u53F2",restore:"\u6062\u590D\u6B64\u7248\u672C",original:"\u539F\u59CB\u6587\u4EF6",download:"\u4E0B\u8F7D",downloadDraft:"\u4E0B\u8F7D\u8349\u7A3F",loading:"\u6B63\u5728\u52A0\u8F7D\u6587\u6863\u2026",unavailable:"\u6B64\u6587\u6863\u6682\u4E0D\u53EF\u7F16\u8F91\u3002",retry:"\u91CD\u8BD5",sourceOnly:"\u6B64\u6587\u6863\u5305\u542B\u4EC5\u652F\u6301\u6E90\u7801\u7F16\u8F91\u7684\u8BED\u6CD5\u3002",tooLarge:"\u6587\u6863\u8D85\u8FC7\u53EF\u7F16\u8F91\u5927\u5C0F\u9650\u5236\u3002",bold:"\u52A0\u7C97",italic:"\u659C\u4F53",strike:"\u5220\u9664\u7EBF",heading:"\u6807\u9898",paragraph:"\u6B63\u6587",quote:"\u5F15\u7528",bullet:"\u65E0\u5E8F\u5217\u8868",ordered:"\u6709\u5E8F\u5217\u8868",task:"\u4EFB\u52A1\u5217\u8868",link:"\u94FE\u63A5",image:"\u56FE\u7247",table:"\u8868\u683C",code:"\u4EE3\u7801\u5757",undo:"\u64A4\u9500",redo:"\u91CD\u505A",addRow:"\u6DFB\u52A0\u884C",addColumn:"\u6DFB\u52A0\u5217",deleteRow:"\u5220\u9664\u884C",deleteColumn:"\u5220\u9664\u5217",alignLeft:"\u5DE6\u5BF9\u9F50",alignCenter:"\u5C45\u4E2D",alignRight:"\u53F3\u5BF9\u9F50",url:"\u7F51\u5740\u6216\u53D7\u7BA1\u6587\u4EF6\u5F15\u7528",alt:"\u66FF\u4EE3\u6587\u672C",insert:"\u63D2\u5165",cancel:"\u53D6\u6D88",upload:"\u4E0A\u4F20\u56FE\u7247",imageFailed:"\u56FE\u7247\u52A0\u8F7D\u5931\u8D25\u3002",chooseImage:"\u9009\u62E9\u56FE\u7247",recovery:"\u53D1\u73B0\u53EF\u6062\u590D\u7684\u8349\u7A3F\u3002",recover:"\u6062\u590D\u8349\u7A3F",switchToLight:"\u5207\u6362 Markdown \u533A\u57DF\u4E3A\u6D45\u8272",switchToDark:"\u5207\u6362 Markdown \u533A\u57DF\u4E3A\u6DF1\u8272",toolbar:"\u6587\u6863\u683C\u5F0F",content:"\u6587\u6863\u6B63\u6587",emptyHistory:"\u6682\u65E0\u5DF2\u4FDD\u5B58\u7248\u672C\u3002"};var nn={locale:"en-US",messages:{markdownDocument:Ml,canvas:{replaceImage:"Replace image",cropImage:"Crop image",downloadImage:"Download image",useImageReference:"Use as reference",saturationValue:"Saturation and brightness",hue:"Hue",dots:"Dot grid",group:"Group",hexPlaceholder:"#F5F5F5",controls:"Canvas controls",background:"Canvas background",layers:"Layers",minimap:"Minimap",zoom:"Zoom",zoomIn:"Zoom in",zoomOut:"Zoom out",fit:"Show all elements",zoomTo:a(({percent:e})=>`Zoom to ${e}%`,"zoomTo"),color:a(({value:e})=>`Use ${e}`,"color"),hex:"Hex color",close:"Close",empty:"No layers",element:a(({type:e})=>e,"element")},pagination:{navigation:"Pagination",first:"First",previous:"Previous",next:"Next",last:"Last",page:a(({page:e,pageCount:t})=>`Page ${e} of ${t}`,"page"),currentPage:a(({page:e,pageCount:t})=>`Page ${e} of ${t}, current page`,"currentPage"),emptyResults:"0 results",range:a(({start:e,end:t,total:o})=>`${e}-${t} of ${o}`,"range"),selected:a(({count:e})=>`${e} selected`,"selected"),pageSize:"Items per page",loadBatchSize:"Items per load",perLoad:"Items per load",jumpToPage:"Jump to page",pages:"pages",clickToJump:"Click to jump to a page"},dialog:{close:"Close dialog"},dropdownMenu:{actions:"Actions"},loading:{spinner:"Loading"},layout:{resizePanels:"Resize panels",expandPanel:"Expand",collapsePanel:"Collapse",movePanel:"Move",moveBefore:"Move earlier",moveAfter:"Move later"},steps:{label:"Progress",current:"Current",completed:"Completed",error:"Error",disabled:"Disabled"},numberInput:{increment:"Increase value",decrement:"Decrease value"},passwordInput:{showPassword:"Show password",hidePassword:"Hide password"},multiSelect:{placeholder:"Select options",empty:"No options",removeOption:a(({value:e})=>`Remove ${e}`,"removeOption")},table:{dragColumn:a(({columnId:e})=>`Drag column ${e}`,"dragColumn"),resizeColumn:a(({columnId:e})=>`Resize column ${e}`,"resizeColumn"),sortColumn:a(({columnId:e})=>e?`Sort column ${e}`:"Sort column","sortColumn"),loadingRow:"Loading table row"},toolbar:{theme:{label:"Appearance",toggle:"Toggle theme",auto:"Auto",light:"Light",dark:"Dark"},language:{label:"Language",switch:"Switch language"}},toast:{errorTitle:"Error",warningTitle:"Warning",defaultErrorDescription:"Something went wrong.",defaultWarningDescription:"Please check and try again."},dataExplorer:{viewTree:{actions:"More actions",expand:"Expand",collapse:"Collapse",loading:"Loading...",empty:"No views",error:"Unable to load views"}},workbench:{relationshipGraph:{zoomOut:"Zoom out",zoomIn:"Zoom in",zoomToFit:"Fit graph",minimap:"Graph overview"},collection:{label:"Collection",loading:"Loading items",empty:"No items",loadError:"Unable to load items",refreshError:"Unable to refresh items",retry:"Retry",loadingMore:"Loading more items",permission:"You do not have permission to view this content",offline:"You appear to be offline",requestAccess:"Request access"},interactiveTable:{columnActions:"Column actions",freezeColumn:"Freeze to left",freezeEndColumn:"Freeze to right",unfreezeColumn:"Unfreeze from left",unfreezeEndColumn:"Unfreeze from right",unfreezeAllColumns:"Unfreeze all columns",resetColumnWidth:"Reset column width",frozenColumnTitle:"Frozen column"}},agentWorkbench:{label:"Session activity",reasoning:"Reasoning",plan:"Plan",taskNoDetail:"No additional details",modes:{chat:"Chat",work:"Work"},composer:{send:"Send message",stop:"Stop generating",queue:"Queue message",attach:"Add photos or files",voice:"Start voice input",webSearch:"Web search",chatMode:"Chat mode",model:"Model",reasoning:"Reasoning effort",permissions:"Permissions",removeAttachment:"Remove attachment",editQueued:"Edit queued message",deleteQueued:"Delete queued message",moveUp:"Move message up",moveDown:"Move message down",queued:"Queued messages",uploading:"Uploading",uploadFailed:"Upload failed",retryAttachment:"Retry attachment upload",noModels:"No models available",message:"Message",attachmentOnly:"Attachment",reasoningOptions:{low:"Low",medium:"Medium",high:"High",xhigh:"Extra high"},permissionOptions:{"approval-required":"Approval required","auto-approve":"Auto approve","full-access":"Full access"}},quickStart:{label:"Quick start",back:"Back",addFile:"Add file"},tool:{input:"Input",output:"Output",status:{pending:"Pending",running:"Running",completed:"Completed",failed:"Error",denied:"Denied"}},approval:{approve:"Approve",reject:"Reject",approved:"Approved",rejected:"Rejected"},artifact:{pending:"Preparing",ready:"Ready",failed:"Failed",open:a(({name:e})=>`Open ${e}`,"open")},run:{stopping:"Stopping...",stoppedAfter:a(({duration:e})=>`You stopped after ${e}`,"stoppedAfter")},process:{running:"Working",queued:"Queued",waitingApproval:"Waiting for approval",failed:"Failed",stopped:"Stopped",processed:"Processed",processedFor:a(({duration:e})=>`Worked for ${e}`,"processedFor"),completedCount:a(({completed:e,total:t})=>`${e}/${t} completed`,"completedCount")},artifactWorkspace:{outputs:"Outputs",sources:"Sources",viewAll:"View all",toggleSummary:"Toggle files",tabs:"Open files",closeTab:a(({name:e})=>`Close ${e}`,"closeTab"),closeWorkspace:"Close workspace",close:"Close",closeOthers:"Close other tabs",closeRight:"Close tabs to the right",closeAll:"Close all tabs",kinds:{data:"Data view",audio:"Audio",canvas:"Canvas",file:"File",html:"HTML",image:"Image",markdown:"Markdown",pdf:"PDF",presentation:"Presentation",video:"Video",web:"Web page"},collapse:"Collapse",maximize:"Full screen",restore:"Exit full screen",download:a(({name:e})=>`Download ${e}`,"download"),openExternal:a(({name:e})=>`Open ${e} in a new window`,"openExternal"),loading:"Loading preview...",failed:"Preview unavailable",retry:"Try again"},usage:{label:"Context usage",context:a(({used:e,total:t})=>`${e} / ${t} tokens`,"context")},navigation:{search:"Search agents and sessions",searchSessions:"Search sessions",searchShortcut:"Focus search",clearSearch:"Clear search",tabsLabel:"Agent workbench navigation",agents:"Agents",sessions:"Sessions",newAgent:"New Agent",newSession:"New Session",capabilities:"Capabilities & Extensions",settings:"Agent Settings",allAgents:"All Agents",recentSessions:"Recent Sessions",chat:"Chat",work:"Work",chats:"Chats",builtIn:"Built-in",noDescription:"No description",loading:"Loading...",emptyAgents:"No agents yet",emptySessions:"No sessions yet",noResults:"No matching results",retry:"Retry",pin:"Pin",unpin:"Unpin",rename:"Rename",delete:"Delete",actions:"Actions",save:"Save",cancel:"Cancel",running:"Running",completed:"Completed",failed:"Failed",contextUsage:a(({percent:e})=>`${e}% context used`,"contextUsage")},details:{title:"Task details",description:"Summary and workspace activity",duration:"Duration",updated:"Updated",model:"Model",mode:"Mode",permissions:"Permissions",tokenUsage:"Token usage",summary:"Summary",summaryEmpty:"No summary is available yet.",summaryFailed:"The summary could not be generated.",highlights:"Highlights",pendingItems:"Pending items",tabs:{label:"Task detail views",summary:"Summary",workspace:"Workspace"},status:{queued:"Queued",running:"Running",waiting_approval:"Waiting for approval",stopping:"Stopping",stopped:"Stopped",completed:"Completed",failed:"Failed"},state:{loading:{title:"Loading task details",description:"Restoring the latest session activity."},empty:{title:"No task selected",description:"Select a task to inspect its details."},error:{title:"Unable to load task details",description:"Try again after the session is available."}},actions:{close:"Close task details",copySummary:"Copy summary",retry:"Retry",retrySummary:"Retry summary",resume:"Resume",continueInNewTask:"Continue in new task",editAndRerun:"Edit and rerun",export:"Export"},workspace:{diffs:"Code changes",files:"Files",terminals:"Terminals",tests:"Tests",artifacts:"Artifacts",exitCode:a(({code:e})=>`Exit code ${e}`,"exitCode"),diffStatus:{added:"Added",modified:"Modified",deleted:"Deleted",renamed:"Renamed"},fileOperation:{upsert:"Updated",delete:"Deleted"}}}}}};var Xn={locale:"zh-CN",messages:{markdownDocument:Al,canvas:{replaceImage:"\u66FF\u6362\u56FE\u7247",cropImage:"\u88C1\u526A\u56FE\u7247",downloadImage:"\u4E0B\u8F7D\u56FE\u7247",useImageReference:"\u7528\u4F5C\u53C2\u8003\u56FE",saturationValue:"\u9971\u548C\u5EA6\u4E0E\u660E\u5EA6",hue:"\u8272\u76F8",dots:"\u80CC\u666F\u70B9\u9635",group:"\u5206\u7EC4",hexPlaceholder:"#F5F5F5",controls:"\u753B\u5E03\u63A7\u5236",background:"\u753B\u5E03\u80CC\u666F\u8272",layers:"\u56FE\u5C42",minimap:"\u5C0F\u5730\u56FE",zoom:"\u7F29\u653E",zoomIn:"\u653E\u5927",zoomOut:"\u7F29\u5C0F",fit:"\u663E\u793A\u753B\u5E03\u6240\u6709\u5143\u7D20",zoomTo:a(({percent:e})=>`\u7F29\u653E\u81F3 ${e}%`,"zoomTo"),color:a(({value:e})=>`\u4F7F\u7528 ${e}`,"color"),hex:"\u5341\u516D\u8FDB\u5236\u989C\u8272",close:"\u5173\u95ED",empty:"\u6682\u65E0\u56FE\u5C42",element:a(({type:e})=>({image:"\u56FE\u7247",text:"\u6587\u5B57",rectangle:"\u77E9\u5F62",ellipse:"\u692D\u5706",diamond:"\u83F1\u5F62",arrow:"\u7BAD\u5934",line:"\u7EBF\u6761",freedraw:"\u81EA\u7531\u7ED8\u5236",frame:"\u753B\u6846",embeddable:"\u5D4C\u5165\u5185\u5BB9",iframe:"\u7F51\u9875",magicframe:"\u753B\u6846"})[e]||"\u5143\u7D20","element")},pagination:{navigation:"\u5206\u9875\u5BFC\u822A",first:"\u9996\u9875",previous:"\u4E0A\u4E00\u9875",next:"\u4E0B\u4E00\u9875",last:"\u672B\u9875",page:a(({page:e,pageCount:t})=>`\u7B2C ${e} \u9875\uFF0C\u5171 ${t} \u9875`,"page"),currentPage:a(({page:e,pageCount:t})=>`\u7B2C ${e} \u9875\uFF0C\u5171 ${t} \u9875\uFF0C\u5F53\u524D\u9875`,"currentPage"),emptyResults:"\u5171 0 \u6761",range:a(({start:e,end:t,total:o})=>`\u7B2C ${e}-${t} \u6761\uFF0C\u5171 ${o} \u6761`,"range"),selected:a(({count:e})=>`\u5DF2\u9009\u62E9 ${e} \u9879`,"selected"),pageSize:"\u6BCF\u9875\u663E\u793A\u6570\u91CF",loadBatchSize:"\u6BCF\u6B21\u52A0\u8F7D\u6570\u91CF",perLoad:"\u6BCF\u6B21\u52A0\u8F7D",jumpToPage:"\u8DF3\u8F6C\u5230\u9875\u7801",pages:"\u9875",clickToJump:"\u70B9\u51FB\u8DF3\u8F6C\u9875\u7801"},dialog:{close:"\u5173\u95ED\u5BF9\u8BDD\u6846"},dropdownMenu:{actions:"\u64CD\u4F5C"},loading:{spinner:"\u6B63\u5728\u52A0\u8F7D"},layout:{resizePanels:"\u8C03\u6574\u9762\u677F\u5927\u5C0F",expandPanel:"\u5C55\u5F00",collapsePanel:"\u6536\u8D77",movePanel:"\u79FB\u52A8",moveBefore:"\u5411\u524D\u79FB\u52A8",moveAfter:"\u5411\u540E\u79FB\u52A8"},steps:{label:"\u8FDB\u5EA6",current:"\u5F53\u524D\u6B65\u9AA4",completed:"\u5DF2\u5B8C\u6210",error:"\u9519\u8BEF",disabled:"\u5DF2\u7981\u7528"},numberInput:{increment:"\u589E\u52A0\u6570\u503C",decrement:"\u51CF\u5C11\u6570\u503C"},passwordInput:{showPassword:"\u663E\u793A\u5BC6\u7801",hidePassword:"\u9690\u85CF\u5BC6\u7801"},multiSelect:{placeholder:"\u8BF7\u9009\u62E9",empty:"\u6682\u65E0\u9009\u9879",removeOption:a(({value:e})=>`\u79FB\u9664 ${e}`,"removeOption")},table:{dragColumn:a(({columnId:e})=>`\u62D6\u52A8\u5217 ${e}`,"dragColumn"),resizeColumn:a(({columnId:e})=>`\u8C03\u6574\u5217\u5BBD ${e}`,"resizeColumn"),sortColumn:a(({columnId:e})=>e?`\u6392\u5E8F\u5217 ${e}`:"\u6392\u5E8F\u5217","sortColumn"),loadingRow:"\u6B63\u5728\u52A0\u8F7D\u8868\u683C\u884C"},toolbar:{theme:{label:"\u5916\u89C2",toggle:"\u5207\u6362\u4E3B\u9898",auto:"\u8DDF\u968F\u7CFB\u7EDF",light:"\u6D45\u8272\u6A21\u5F0F",dark:"\u6DF1\u8272\u6A21\u5F0F"},language:{label:"\u8BED\u8A00",switch:"\u5207\u6362\u8BED\u8A00"}},toast:{errorTitle:"\u9519\u8BEF",warningTitle:"\u63D0\u793A",defaultErrorDescription:"\u53D1\u751F\u9519\u8BEF\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002",defaultWarningDescription:"\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\u3002"},dataExplorer:{viewTree:{actions:"\u66F4\u591A\u64CD\u4F5C",expand:"\u5C55\u5F00",collapse:"\u6536\u8D77",loading:"\u6B63\u5728\u52A0\u8F7D...",empty:"\u6682\u65E0\u89C6\u56FE",error:"\u65E0\u6CD5\u52A0\u8F7D\u89C6\u56FE"}},workbench:{relationshipGraph:{zoomOut:"\u7F29\u5C0F",zoomIn:"\u653E\u5927",zoomToFit:"\u9002\u5E94\u753B\u5E03",minimap:"\u56FE\u8C31\u6982\u89C8"},collection:{label:"\u5185\u5BB9\u96C6\u5408",loading:"\u6B63\u5728\u52A0\u8F7D\u5185\u5BB9",empty:"\u6682\u65E0\u5185\u5BB9",loadError:"\u65E0\u6CD5\u52A0\u8F7D\u5185\u5BB9",refreshError:"\u65E0\u6CD5\u5237\u65B0\u5185\u5BB9",retry:"\u91CD\u8BD5",loadingMore:"\u6B63\u5728\u52A0\u8F7D\u66F4\u591A\u5185\u5BB9",permission:"\u4F60\u6CA1\u6709\u6743\u9650\u67E5\u770B\u6B64\u5185\u5BB9",offline:"\u7F51\u7EDC\u8FDE\u63A5\u5DF2\u65AD\u5F00",requestAccess:"\u7533\u8BF7\u6743\u9650"},interactiveTable:{columnActions:"\u5217\u64CD\u4F5C",freezeColumn:"\u56FA\u5B9A\u5230\u5DE6\u4FA7",freezeEndColumn:"\u56FA\u5B9A\u5230\u53F3\u4FA7",unfreezeColumn:"\u53D6\u6D88\u5DE6\u4FA7\u56FA\u5B9A",unfreezeEndColumn:"\u53D6\u6D88\u53F3\u4FA7\u56FA\u5B9A",unfreezeAllColumns:"\u53D6\u6D88\u5168\u90E8\u56FA\u5B9A",resetColumnWidth:"\u91CD\u7F6E\u5217\u5BBD",frozenColumnTitle:"\u5DF2\u56FA\u5B9A\u5217"}},agentWorkbench:{label:"\u4F1A\u8BDD\u6D3B\u52A8",reasoning:"\u601D\u8003\u8FC7\u7A0B",plan:"\u6267\u884C\u8BA1\u5212",taskNoDetail:"\u6682\u65E0\u66F4\u591A\u8BE6\u60C5",modes:{chat:"\u5BF9\u8BDD",work:"\u5DE5\u4F5C"},composer:{send:"\u53D1\u9001\u6D88\u606F",stop:"\u505C\u6B62\u751F\u6210",queue:"\u6392\u961F\u53D1\u9001",attach:"\u6DFB\u52A0\u7167\u7247\u6216\u6587\u4EF6",voice:"\u5F00\u59CB\u8BED\u97F3\u8F93\u5165",webSearch:"\u8054\u7F51\u641C\u7D22",chatMode:"\u5BF9\u8BDD\u6A21\u5F0F",model:"\u6A21\u578B",reasoning:"\u601D\u8003\u5F3A\u5EA6",permissions:"\u6743\u9650",removeAttachment:"\u79FB\u9664\u9644\u4EF6",editQueued:"\u7F16\u8F91\u6392\u961F\u6D88\u606F",deleteQueued:"\u5220\u9664\u6392\u961F\u6D88\u606F",moveUp:"\u4E0A\u79FB\u6D88\u606F",moveDown:"\u4E0B\u79FB\u6D88\u606F",queued:"\u6392\u961F\u6D88\u606F",uploading:"\u4E0A\u4F20\u4E2D",uploadFailed:"\u4E0A\u4F20\u5931\u8D25",retryAttachment:"\u91CD\u8BD5\u9644\u4EF6\u4E0A\u4F20",noModels:"\u6682\u65E0\u53EF\u7528\u6A21\u578B",message:"\u6D88\u606F",attachmentOnly:"\u9644\u4EF6",reasoningOptions:{low:"\u4F4E",medium:"\u4E2D",high:"\u9AD8",xhigh:"\u6700\u9AD8"},permissionOptions:{"approval-required":"\u9700\u8981\u6279\u51C6","auto-approve":"\u81EA\u52A8\u6279\u51C6","full-access":"\u5B8C\u5168\u8BBF\u95EE"}},quickStart:{label:"\u5FEB\u901F\u5F00\u59CB",back:"\u8FD4\u56DE",addFile:"\u6DFB\u52A0\u6587\u4EF6"},tool:{input:"\u8F93\u5165",output:"\u8F93\u51FA",status:{pending:"\u7B49\u5F85\u4E2D",running:"\u8FD0\u884C\u4E2D",completed:"\u5DF2\u5B8C\u6210",failed:"\u9519\u8BEF",denied:"\u5DF2\u62D2\u7EDD"}},approval:{approve:"\u5141\u8BB8",reject:"\u62D2\u7EDD",approved:"\u5DF2\u5141\u8BB8",rejected:"\u5DF2\u62D2\u7EDD"},artifact:{pending:"\u51C6\u5907\u4E2D",ready:"\u5DF2\u5C31\u7EEA",failed:"\u5931\u8D25",open:a(({name:e})=>`\u6253\u5F00 ${e}`,"open")},run:{stopping:"\u6B63\u5728\u505C\u6B62...",stoppedAfter:a(({duration:e})=>`\u4F60\u5728 ${e} \u540E\u505C\u6B62\u4E86\u4EFB\u52A1`,"stoppedAfter")},process:{running:"\u6267\u884C\u8FC7\u7A0B",queued:"\u6392\u961F\u4E2D",waitingApproval:"\u7B49\u5F85\u5BA1\u6279",failed:"\u5931\u8D25",stopped:"\u5DF2\u505C\u6B62",processed:"\u5DF2\u5904\u7406",processedFor:a(({duration:e})=>`\u8017\u65F6 ${e.replace(/(\d+)h/g,"$1\u5C0F\u65F6").replace(/(\d+)m/g,"$1\u5206\u949F").replace(/(\d+)s/g,"$1\u79D2").replace(/\s+/g,"")}`,"processedFor"),completedCount:a(({completed:e,total:t})=>`${e}/${t} \u5DF2\u5B8C\u6210`,"completedCount")},artifactWorkspace:{outputs:"\u8F93\u51FA",sources:"\u6765\u6E90",viewAll:"\u67E5\u770B\u5168\u90E8",toggleSummary:"\u5207\u6362\u6587\u4EF6\u6458\u8981",tabs:"\u5DF2\u6253\u5F00\u6587\u4EF6",closeTab:a(({name:e})=>`\u5173\u95ED ${e}`,"closeTab"),closeWorkspace:"\u5173\u95ED\u5DE5\u4F5C\u533A",close:"\u5173\u95ED",closeOthers:"\u5173\u95ED\u5176\u4ED6\u6807\u7B7E\u9875",closeRight:"\u5173\u95ED\u53F3\u4FA7\u6807\u7B7E\u9875",closeAll:"\u5173\u95ED\u6240\u6709\u6807\u7B7E\u9875",kinds:{data:"\u6570\u636E\u89C6\u56FE",audio:"\u97F3\u9891",canvas:"\u753B\u677F",file:"\u6587\u4EF6",html:"HTML",image:"\u56FE\u7247",markdown:"Markdown",pdf:"PDF",presentation:"\u6F14\u793A\u6587\u7A3F",video:"\u89C6\u9891",web:"\u7F51\u9875"},collapse:"\u6536\u8D77",maximize:"\u5168\u5C4F",restore:"\u9000\u51FA\u5168\u5C4F",download:a(({name:e})=>`\u4E0B\u8F7D ${e}`,"download"),openExternal:a(({name:e})=>`\u5728\u65B0\u7A97\u53E3\u6253\u5F00 ${e}`,"openExternal"),loading:"\u6B63\u5728\u52A0\u8F7D\u9884\u89C8...",failed:"\u9884\u89C8\u4E0D\u53EF\u7528",retry:"\u91CD\u8BD5"},usage:{label:"\u4E0A\u4E0B\u6587\u7528\u91CF",context:a(({used:e,total:t})=>`${e} / ${t} tokens`,"context")},navigation:{search:"\u641C\u7D22\u667A\u80FD\u4F53\u548C\u4F1A\u8BDD",searchSessions:"\u641C\u7D22\u4F1A\u8BDD",searchShortcut:"\u805A\u7126\u641C\u7D22\u6846",clearSearch:"\u6E05\u9664\u641C\u7D22",tabsLabel:"\u667A\u80FD\u4F53\u5DE5\u4F5C\u53F0\u5BFC\u822A",agents:"\u667A\u80FD\u4F53",sessions:"\u4F1A\u8BDD",newAgent:"\u65B0\u5EFA\u667A\u80FD\u4F53",newSession:"\u65B0\u5EFA\u4F1A\u8BDD",capabilities:"\u80FD\u529B\u4E0E\u6269\u5C55",settings:"\u667A\u80FD\u4F53\u8BBE\u7F6E",allAgents:"\u5168\u90E8\u667A\u80FD\u4F53",recentSessions:"\u6700\u8FD1\u4F1A\u8BDD",chat:"\u5BF9\u8BDD",work:"\u5DE5\u4F5C",chats:"\u804A\u5929",builtIn:"\u5185\u7F6E",noDescription:"\u6682\u65E0\u63CF\u8FF0",loading:"\u52A0\u8F7D\u4E2D...",emptyAgents:"\u6682\u65E0\u667A\u80FD\u4F53",emptySessions:"\u6682\u65E0\u4F1A\u8BDD",noResults:"\u6CA1\u6709\u5339\u914D\u7ED3\u679C",retry:"\u91CD\u8BD5",pin:"\u7F6E\u9876",unpin:"\u53D6\u6D88\u7F6E\u9876",rename:"\u91CD\u547D\u540D",delete:"\u5220\u9664",actions:"\u64CD\u4F5C",save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",running:"\u8FD0\u884C\u4E2D",completed:"\u5DF2\u5B8C\u6210",failed:"\u5931\u8D25",contextUsage:a(({percent:e})=>`\u5DF2\u4F7F\u7528 ${e}% \u4E0A\u4E0B\u6587`,"contextUsage")},details:{title:"\u4EFB\u52A1\u8BE6\u60C5",description:"\u6458\u8981\u4E0E\u5DE5\u4F5C\u533A\u6D3B\u52A8",duration:"\u8017\u65F6",updated:"\u66F4\u65B0\u65F6\u95F4",model:"\u6A21\u578B",mode:"\u6A21\u5F0F",permissions:"\u6743\u9650",tokenUsage:"Token \u7528\u91CF",summary:"\u6458\u8981",summaryEmpty:"\u6682\u65F6\u6CA1\u6709\u53EF\u7528\u6458\u8981\u3002",summaryFailed:"\u6458\u8981\u751F\u6210\u5931\u8D25\u3002",highlights:"\u91CD\u70B9",pendingItems:"\u5F85\u5904\u7406\u4E8B\u9879",tabs:{label:"\u4EFB\u52A1\u8BE6\u60C5\u89C6\u56FE",summary:"\u6458\u8981",workspace:"\u5DE5\u4F5C\u533A"},status:{queued:"\u6392\u961F\u4E2D",running:"\u8FD0\u884C\u4E2D",waiting_approval:"\u7B49\u5F85\u5BA1\u6279",stopping:"\u6B63\u5728\u505C\u6B62",stopped:"\u5DF2\u505C\u6B62",completed:"\u5DF2\u5B8C\u6210",failed:"\u5931\u8D25"},state:{loading:{title:"\u6B63\u5728\u52A0\u8F7D\u4EFB\u52A1\u8BE6\u60C5",description:"\u6B63\u5728\u6062\u590D\u6700\u65B0\u7684\u4F1A\u8BDD\u6D3B\u52A8\u3002"},empty:{title:"\u672A\u9009\u62E9\u4EFB\u52A1",description:"\u9009\u62E9\u4EFB\u52A1\u540E\u67E5\u770B\u8BE6\u7EC6\u4FE1\u606F\u3002"},error:{title:"\u65E0\u6CD5\u52A0\u8F7D\u4EFB\u52A1\u8BE6\u60C5",description:"\u4F1A\u8BDD\u6062\u590D\u53EF\u7528\u540E\u8BF7\u91CD\u8BD5\u3002"}},actions:{close:"\u5173\u95ED\u4EFB\u52A1\u8BE6\u60C5",copySummary:"\u590D\u5236\u6458\u8981",retry:"\u91CD\u8BD5",retrySummary:"\u91CD\u65B0\u751F\u6210\u6458\u8981",resume:"\u7EE7\u7EED\u8FD0\u884C",continueInNewTask:"\u5728\u65B0\u4EFB\u52A1\u4E2D\u7EE7\u7EED",editAndRerun:"\u7F16\u8F91\u5E76\u91CD\u65B0\u8FD0\u884C",export:"\u5BFC\u51FA"},workspace:{diffs:"\u4EE3\u7801\u53D8\u66F4",files:"\u6587\u4EF6",terminals:"\u7EC8\u7AEF",tests:"\u6D4B\u8BD5",artifacts:"\u4EA7\u7269",exitCode:a(({code:e})=>`\u9000\u51FA\u7801 ${e}`,"exitCode"),diffStatus:{added:"\u65B0\u589E",modified:"\u4FEE\u6539",deleted:"\u5220\u9664",renamed:"\u91CD\u547D\u540D"},fileOperation:{upsert:"\u5DF2\u66F4\u65B0",delete:"\u5DF2\u5220\u9664"}}}}}};var Rg={"en-US":nn,"zh-CN":Xn};function Bl(e){if(typeof e!="string"||!e.trim())throw new TypeError("Monkeys locale must be a non-empty BCP 47 string.");try{return Intl.getCanonicalLocales(e)[0]}catch{throw new RangeError(`Monkeys locale "${e}" is not a valid BCP 47 identifier.`)}}a(Bl,"normalizeLocaleId");function Yn(e){return !!e&&typeof e=="object"&&!Array.isArray(e)}a(Yn,"isRecord");function Nl(e,t,o){if(!Yn(e)||!Yn(t))throw new TypeError(`${o} must be an object.`);for(let[n,r]of Object.entries(e)){if(r===void 0)continue;if(!(n in t))throw new TypeError(`${o}.${n} is not a supported Monkeys message.`);let i=t[n],s=`${o}.${n}`;if(typeof i=="function"){if(typeof r!="function")throw new TypeError(`${s} must be a function.`)}else if(typeof i=="string"){if(typeof r!="string")throw new TypeError(`${s} must be a string.`)}else Nl(r,i,s);}}a(Nl,"validateMessageOverride");function El(e,t){let o=Yn(e)?Object.fromEntries(Object.entries(e).filter(([n])=>n!=="beautiful")):e;if(Nl(o,nn.messages,t),Yn(e)&&e.beautiful!==void 0){if(!Yn(e.beautiful))throw new TypeError(`${t}.beautiful must be an object.`);for(let[n,r]of Object.entries(e.beautiful))if(r!==void 0&&typeof r!="string")throw new TypeError(`${t}.beautiful.${n} must be a string.`)}}a(El,"assertMessagesOverride");function Il(e){return e==="en-US"||e==="zh-CN"}a(Il,"isBuiltInLocale");function Mg(e){if(e===void 0)return {locale:void 0,messages:void 0,hasExplicitLocale:false};if(typeof e=="string"){let o=Bl(e);if(!Il(o))throw new RangeError(`Unsupported built-in Monkeys locale "${o}". Provide a locale pack object for custom locales.`);return {locale:o,messages:void 0,hasExplicitLocale:true}}if(!e||typeof e!="object"||Array.isArray(e))throw new TypeError("Monkeys locale must be a locale id or locale pack object.");let t=Bl(e.locale);return El(e.messages,"Monkeys locale messages"),{locale:t,messages:e.messages,hasExplicitLocale:true}}a(Mg,"normalizeLocaleInput");function wn(e,t){return t?{markdownDocument:{...e.markdownDocument,...t.markdownDocument},canvas:{...e.canvas,...t.canvas},beautiful:{...e.beautiful,...t.beautiful},pagination:{...e.pagination,...t.pagination},dialog:{...e.dialog,...t.dialog},dropdownMenu:{...e.dropdownMenu,...t.dropdownMenu},loading:{...e.loading,...t.loading},layout:{...e.layout,...t.layout},steps:{...e.steps,...t.steps},numberInput:{...e.numberInput,...t.numberInput},passwordInput:{...e.passwordInput,...t.passwordInput},multiSelect:{...e.multiSelect,...t.multiSelect},table:{...e.table,...t.table},toolbar:{theme:{...e.toolbar.theme,...t.toolbar?.theme},language:{...e.toolbar.language,...t.toolbar?.language}},toast:{...e.toast,...t.toast},dataExplorer:{viewTree:{...e.dataExplorer.viewTree,...t.dataExplorer?.viewTree}},workbench:{relationshipGraph:{zoomOut:"Zoom out",zoomIn:"Zoom in",zoomToFit:"Fit graph",minimap:"Graph overview",...e.workbench.relationshipGraph,...t.workbench?.relationshipGraph},collection:{...e.workbench.collection,...t.workbench?.collection},interactiveTable:{...e.workbench.interactiveTable,...t.workbench?.interactiveTable}},agentWorkbench:{...e.agentWorkbench,...t.agentWorkbench,modes:{...e.agentWorkbench.modes,...t.agentWorkbench?.modes},composer:{...e.agentWorkbench.composer,...t.agentWorkbench?.composer},quickStart:{...e.agentWorkbench.quickStart,...t.agentWorkbench?.quickStart},tool:{...e.agentWorkbench.tool,...t.agentWorkbench?.tool,status:{...e.agentWorkbench.tool.status,...t.agentWorkbench?.tool?.status}},approval:{...e.agentWorkbench.approval,...t.agentWorkbench?.approval},artifact:{...e.agentWorkbench.artifact,...t.agentWorkbench?.artifact},run:{...e.agentWorkbench.run,...t.agentWorkbench?.run},process:{...e.agentWorkbench.process,...t.agentWorkbench?.process},artifactWorkspace:{...e.agentWorkbench.artifactWorkspace,...t.agentWorkbench?.artifactWorkspace},usage:{...e.agentWorkbench.usage,...t.agentWorkbench?.usage},navigation:{...e.agentWorkbench.navigation,...t.agentWorkbench?.navigation},details:{...e.agentWorkbench.details,...t.agentWorkbench?.details,tabs:{...e.agentWorkbench.details.tabs,...t.agentWorkbench?.details?.tabs},status:{...e.agentWorkbench.details.status,...t.agentWorkbench?.details?.status},state:{loading:{...e.agentWorkbench.details.state.loading,...t.agentWorkbench?.details?.state?.loading},empty:{...e.agentWorkbench.details.state.empty,...t.agentWorkbench?.details?.state?.empty},error:{...e.agentWorkbench.details.state.error,...t.agentWorkbench?.details?.state?.error}},actions:{...e.agentWorkbench.details.actions,...t.agentWorkbench?.details?.actions},workspace:{...e.agentWorkbench.details.workspace,...t.agentWorkbench?.details?.workspace,diffStatus:{...e.agentWorkbench.details.workspace.diffStatus,...t.agentWorkbench?.details?.workspace?.diffStatus},fileOperation:{...e.agentWorkbench.details.workspace.fileOperation,...t.agentWorkbench?.details?.workspace?.fileOperation}}}}}:e}a(wn,"mergeMonkeysLocaleMessages");var Qn={locale:nn.locale,messages:wn(nn.messages)};function ci(e,t,o){t!==void 0&&El(t,"MonkeysProvider messages");let n=Mg(e),r=n.locale??o?.locale??nn.locale,i=Il(r)?Rg[r].messages:void 0,s=wn(nn.messages,i);return o&&(!n.hasExplicitLocale||o.locale===r)&&(s=wn(s,o.messages)),s=wn(s,n.messages),s=wn(s,t),{locale:r,messages:s}}a(ci,"resolveMonkeysLocale");var Ag=Object.freeze({}),Bg=Object.freeze({}),Dl=Symbol.for("@inf-monkeys-tech/monkeys-design/provider-context@1");function Ng(){return Object.freeze({locale:ye.createContext({...Qn,provided:false}),theme:ye.createContext({provided:false}),direction:ye.createContext({provided:false}),environment:ye.createContext({provided:false,environment:Ag,portal:Bg})})}a(Ng,"createMonkeysProviderContexts");function Eg(){let e=globalThis,t=e[Dl];if(t)return t;let o=Ng();return Object.defineProperty(e,Dl,{value:o,enumerable:false,configurable:false,writable:false}),o}a(Eg,"getMonkeysProviderContexts");var Hr=Eg(),Cn=Hr.locale,rn=Hr.theme,Zn=Hr.direction,Jn=Hr.environment;function Ig(e,t){return t===void 0?e:e===void 0?t:{...e,...t,slots:e.slots||t.slots?{...e.slots,...t.slots}:void 0,styles:e.styles||t.styles?{...e.styles,...t.styles}:void 0}}a(Ig,"mergeAppearance");function ui(){try{return ye.useContext(Cn)??{...Qn,provided:!1}}catch{return {...Qn,provided:false}}}a(ui,"useMonkeysLocale");function $t(){return ye.useContext(Cn).messages}a($t,"useMonkeysLocaleMessages");function Bo(){return ye.useContext(rn).resolvedTheme}a(Bo,"useMonkeysResolvedTheme");function Se(e){let t=ye.useContext(rn).baseAppearance;return ye.useMemo(()=>Ig(t,e),[e,t])}a(Se,"useMonkeysBaseAppearance");function an(){return ye.useContext(rn).statusStates??{}}a(an,"useMonkeysStatusStates");function er(){return ye.useContext(Zn).direction}a(er,"useMonkeysDirection");function Tn(){return ye.useContext(Jn).environment}a(Tn,"useMonkeysEnvironment");function sn(){return ye.useContext(Jn).portal}a(sn,"useMonkeysPortalOptions");function ge(){let e=ye.useContext(Cn),t=ye.useContext(rn),o=ye.useContext(Zn),n=e.provided||t.provided||o.provided;return ye.useMemo(()=>n?{dir:o.direction,"data-monkeys-direction":o.direction,"data-monkeys-locale":e.locale,"data-monkeys-theme":t.themeId,"data-monkeys-theme-mode":t.resolvedTheme?.colorMode}:{},[o.direction,e.locale,n,t.resolvedTheme?.colorMode,t.themeId])}a(ge,"useMonkeysComponentAttributes");var zl=Symbol.for("@inf-monkeys-tech/monkeys-design/bento-depth@1"),Ol=globalThis,Hl=Ol[zl]??(Ol[zl]=ye.createContext(0));function Sn(){return ye.useContext(Hl)}a(Sn,"useBentoDepth");function Wr({children:e,depth:t}){return jsxRuntime.jsx(Hl.Provider,{value:t,children:e})}a(Wr,"BentoDepthProvider");function mo({children:e}){return jsxRuntime.jsx(Wr,{depth:0,children:e})}a(mo,"BentoScope");var Fr=["background","glowColor","borderColor","borderWidth","borderStyle","radius","shadow","padding","gap"],zg={background:"hsl(var(--card, 0 0% 100%))",glowColor:"var(--monkeys-bento-glow-default)",borderColor:"hsl(var(--border, 214.3 31.8% 91.4%))",borderWidth:"1px",borderStyle:"solid",radius:"var(--radius, 0.75rem)",shadow:"none",padding:"var(--global-spacing, 0.75rem)",gap:"var(--global-spacing, 0.75rem)"},pi=new WeakMap;function Fl(e,t){if(!Number.isSafeInteger(t)||t<1)throw new RangeError("Bento level must be a positive safe integer.");let o=e&&pi.get(e)?.get(t);if(o)return o;let n={...zg},r=Object.fromEntries(Fr.map(s=>[s,"builtin"]));for(let s of Fr){let l=s==="padding"||s==="gap"?e?.density:e?.colorMode,d=s==="glowColor"?"component.bento":"semantic.bento",c=[`${d}.levels.level${t}.${s}`,`${d}.default.${s}`];for(let u of c){let m=l&&e?.cssValues[`${u}.${l}`]!==void 0?`${u}.${l}`:u,p=e?.cssValues[m];if(p!==void 0){n[s]=p,r[s]=m;break}}}let i=Object.freeze({values:Object.freeze(n),sources:Object.freeze(r)});if(e){let s=pi.get(e)??new Map;s.set(t,i),pi.set(e,s);}return i}a(Fl,"resolveBentoTokens");function mi(){let e=Sn(),t=e+1,o=Fl(Bo(),t),n=Object.fromEntries(Fr.map(r=>[`--monkeys-bento-${r.replace(/[A-Z]/g,i=>`-${i.toLowerCase()}`)}`,o.values[r]]));return {parentDepth:e,level:t,variables:n}}a(mi,"useBentoSurface");var gi="[data-monkeys-bento-level]",_r="data-monkeys-scrollbar-active",Wg='[data-monkeys-scrollbar], [data-monkeys-scroll-viewport], [data-radix-scroll-area-viewport], .monkeys-scrollbar, .monkeys-ui-scroll-viewport, .monkeys-ui-description, .monkeys-ui-page-main, .monkeys-ui-dialog, .monkeys-ui-menu, .monkeys-ui-select-content, [style*="overflow"][style*="auto"], [style*="overflow"][style*="scroll"], .overflow-auto, .overflow-x-auto, .overflow-y-auto, .overflow-scroll, .overflow-x-scroll, .overflow-y-scroll';function _l(e,t){if(!(!(t instanceof Element)||!e.contains(t)||t.closest(gi)!==e))for(let o=t;o;o=o.parentElement){if(o instanceof HTMLElement){let n=o.matches("[data-monkeys-scrollbar]")?o.parentElement?.querySelector(":scope > [data-radix-scroll-area-viewport]"):o.querySelector(":scope > [data-radix-scroll-area-viewport]");if(n?.closest(gi)===e)return n;if(o.matches(Wg)){let r=getComputedStyle(o);if(/(auto|scroll|overlay)/.test(`${r.overflowX} ${r.overflowY}`))return o}}if(o===e)break}}a(_l,"viewportAt");function Ul(e,t=true){let o=ye.useRef(),n=a(()=>{let i=o.current;i?.observer?.disconnect(),i?.marked.forEach(s=>s.removeAttribute(_r)),o.current=void 0;},"clear");ye.useEffect(()=>n,[t]);let r=a((i,s)=>{if(!t||!i.isConnected||!i.matches(gi))return;o.current?.root!==i&&(n(),o.current={root:i,marked:new Set});let l=o.current;s!==void 0&&(l.pointerTarget=s);let d=i.ownerDocument.activeElement,c=_l(i,l.pointerTarget),u=d?.matches(":focus-visible")?_l(i,d):void 0;if(!c&&!u){l.observer?.disconnect(),l.observer=void 0,l.marked.forEach(p=>p.removeAttribute(_r)),l.marked.clear();return}let m=new Set;for(let p of [c,u])p&&(m.add(p),p.matches("[data-radix-scroll-area-viewport]")&&p.parentElement?.querySelectorAll(":scope > [data-monkeys-scrollbar]").forEach(g=>m.add(g)));l.marked.forEach(p=>{m.has(p)||p.removeAttribute(_r);}),m.forEach(p=>{l.marked.has(p)||p.setAttribute(_r,"");}),l.marked=m,l.observer||(l.observer=new MutationObserver(()=>r(i)),l.observer.observe(i,{childList:true,subtree:true}));},"update");return {onPointerEnter(i){r(i.currentTarget,i.target),e.onPointerEnter?.(i);},onPointerLeave(i){r(i.currentTarget,null),e.onPointerLeave?.(i);},onPointerOver(i){r(i.currentTarget,i.target),e.onPointerOver?.(i);},onPointerOut(i){r(i.currentTarget,i.relatedTarget),e.onPointerOut?.(i);},onFocusCapture(i){r(i.currentTarget),e.onFocusCapture?.(i);},onBlurCapture(i){let s=i.currentTarget;queueMicrotask(()=>r(s)),e.onBlurCapture?.(i);}}}a(Ul,"useBentoScrollbarVisibility");function Vl(e,t){let o=new WeakMap,n=new Map,r=1;return (...i)=>{let s=i.slice(0,-1),l=i[i.length-1],d=s.map(m=>{if(!m)return 0;let p=o.get(m);return p===void 0&&(p=r++,o.set(m,p)),p}).join(":"),c=n.get(d);if(!c){let m={};for(let p of e)m[p]=t(...s.map(g=>g?.[p]));c=Object.freeze(m),n.size>=64&&n.delete(n.keys().next().value),n.set(d,c);}let u={...c};if(l)for(let m of e){let p=l[m];p&&(u[m]=t(...s.map(g=>g?.[m]),p));}return u}}a(Vl,"createStaticSlotMerger");var Fg={},Xe="motion-safe:transition motion-safe:duration-300 motion-safe:ease-out",Xt="motion-safe:transition-all motion-safe:duration-300 motion-safe:ease-out",Ur="motion-safe:transition-transform motion-safe:duration-300 motion-safe:ease-out",jl=v("[scrollbar-width:thin]","[scrollbar-color:hsl(var(--muted-foreground)/0.45)_transparent]","[&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar]:w-2","[&::-webkit-scrollbar-button]:hidden [&::-webkit-scrollbar-button]:h-0 [&::-webkit-scrollbar-button]:w-0 [&::-webkit-scrollbar-button]:bg-transparent","[&::-webkit-scrollbar-button:single-button]:hidden [&::-webkit-scrollbar-button:single-button]:h-0 [&::-webkit-scrollbar-button:single-button]:w-0","[&::-webkit-scrollbar-button:double-button]:hidden [&::-webkit-scrollbar-button:double-button]:h-0 [&::-webkit-scrollbar-button:double-button]:w-0","[&::-webkit-scrollbar-corner]:bg-transparent","[&::-webkit-scrollbar-track]:bg-transparent","[&:has(thead.sticky)::-webkit-scrollbar-track]:mt-[var(--base-table-header-height)]","[&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-muted-foreground/40","hover:[&::-webkit-scrollbar-thumb]:bg-muted-foreground/55"),_g=v("[&.sticky_th]:sticky [&.sticky_th]:top-0 [&.sticky_th]:z-[2]","[&.sticky_th]:bg-[var(--base-table-sticky-header-bg)]","[&.sticky_th]:shadow-[inset_0_-1px_0_var(--base-table-header-separator)]"),ql={buttonBase:v("group/button inline-flex min-w-0 items-center justify-center gap-2 rounded-md border px-3 text-sm font-medium focus-visible:outline-hidden","cursor-pointer disabled:!cursor-not-allowed",Xt),buttonDefault:"border-border bg-background text-foreground hover:bg-accent/60",buttonPrimary:"border-primary/20 bg-primary/10 text-primary hover:bg-primary/15",buttonSuccess:"border-[hsl(var(--success,142_72%_29%)_/_0.30)] bg-[hsl(var(--success,142_72%_29%)_/_0.10)] text-[hsl(var(--success,142_72%_29%))] hover:bg-[hsl(var(--success,142_72%_29%)_/_0.15)]",buttonWarning:"border-[hsl(var(--warning,45_93%_47%)_/_0.30)] bg-[hsl(var(--warning,45_93%_47%)_/_0.10)] text-[hsl(var(--warning-foreground,28_73%_26%))] hover:bg-[hsl(var(--warning,45_93%_47%)_/_0.15)]",buttonDanger:"border-destructive/20 bg-destructive/10 text-destructive-text hover:bg-destructive/15",buttonMuted:"border-border/60 bg-muted/45 text-muted-foreground hover:bg-muted/70 hover:text-foreground",buttonActive:"border-primary/35 bg-primary/10 text-primary",buttonDisabled:"!cursor-not-allowed opacity-60",buttonIconOnly:"w-9 px-0",buttonIcon:"inline-flex h-4 w-4 shrink-0 items-center justify-center text-[inherit] [&_*]:!text-[inherit] [&_svg]:!stroke-current [&_svg_*]:!stroke-current",buttonLabel:"min-w-0 truncate",badgeBase:v("inline-flex max-w-full items-center gap-1.5 rounded-full border px-2 py-0.5 text-xs font-medium",Xe),badgeDefault:"border-border/60 bg-background text-foreground",badgePrimary:"border-primary/30 bg-primary/10 text-primary",badgeSuccess:"border-[hsl(var(--success,142_72%_29%)_/_0.30)] bg-[hsl(var(--success,142_72%_29%)_/_0.10)] text-[hsl(var(--success,142_72%_29%))]",badgeWarning:"border-[hsl(var(--warning,45_93%_47%)_/_0.30)] bg-[hsl(var(--warning,45_93%_47%)_/_0.10)] text-[hsl(var(--warning-foreground,28_73%_26%))]",badgeDanger:"border-destructive/30 bg-destructive/10 text-destructive-text",badgeMuted:"border-border/60 bg-muted text-muted-foreground",badgeIcon:"inline-flex h-3.5 w-3.5 shrink-0 items-center justify-center",badgeLabel:"min-w-0 truncate",textRoot:"min-w-0 break-words leading-6",textSizeXs:"text-xs",textSizeSm:"text-sm",textSizeMd:"text-base",textSizeLg:"text-lg",textSizeXl:"text-xl",typographyToneDefault:"text-foreground",typographyToneMuted:"text-muted-foreground",typographyTonePrimary:"text-primary",typographyToneSuccess:"text-emerald-700 dark:text-emerald-400",typographyToneWarning:"text-amber-700 dark:text-amber-400",typographyToneDanger:"text-destructive-text",typographyToneInherit:"text-inherit",headingRoot:"min-w-0 break-words font-semibold tracking-tight",headingSizeXs:"text-sm leading-5",headingSizeSm:"text-base leading-6",headingSizeMd:"text-lg leading-7",headingSizeLg:"text-xl leading-7",headingSizeXl:"text-2xl leading-8",headingSize2xl:"text-3xl leading-9",linkRoot:"inline break-words underline decoration-current/40 underline-offset-4 hover:decoration-current focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30",codeInline:"rounded border border-border/70 bg-muted/60 px-1.5 py-0.5 font-mono text-[0.875em] leading-[1.45] text-foreground",codeBlock:"m-0 max-w-full overflow-x-auto rounded-md border border-border/70 bg-muted/60 p-4 text-foreground",codeContent:"font-mono text-sm leading-6",kbdRoot:"inline-flex min-h-5 items-center rounded border border-border bg-muted/70 px-1.5 font-mono text-[0.75em] font-medium leading-5 text-foreground shadow-[inset_0_-1px_0_hsl(var(--monkeys-color-border))]",listRoot:"m-0 min-w-0 list-outside break-words ps-5 text-foreground",listSpacingCompact:"[&>li+li]:mt-1",listSpacingDefault:"[&>li+li]:mt-2",listSpacingRelaxed:"[&>li+li]:mt-3",listMarkerNone:"list-none ps-0",listMarkerDisc:"list-disc",listMarkerCircle:"list-[circle]",listMarkerSquare:"list-[square]",listMarkerDecimal:"list-decimal",listMarkerLowerAlpha:"list-[lower-alpha]",listMarkerUpperAlpha:"list-[upper-alpha]",listItem:"min-w-0 ps-1 leading-6 marker:text-muted-foreground",stackRoot:"flex min-w-0 flex-col",inlineRoot:"flex min-w-0 flex-row",gridRoot:"grid min-w-0",containerRoot:"mx-auto w-full min-w-0",aspectRatioRoot:"relative min-w-0 overflow-hidden [&>*]:h-full [&>*]:w-full",spinnerRoot:"inline-flex shrink-0 items-center justify-center text-current align-middle",spinnerIndicator:"h-5 w-5 rounded-full border-2 border-current border-r-transparent motion-safe:animate-spin motion-reduce:animate-none",visuallyHiddenRoot:"sr-only",visuallyHiddenFocusable:"focus:not-sr-only focus:fixed focus:left-4 focus:top-4 focus:z-[1000] focus:rounded-md focus:bg-background focus:px-4 focus:py-2 focus:text-foreground focus:shadow-lg focus:outline-hidden focus:ring-2 focus:ring-ring focus-within:not-sr-only focus-within:fixed focus-within:left-4 focus-within:top-4 focus-within:z-[1000] focus-within:rounded-md focus-within:bg-background focus-within:px-4 focus-within:py-2 focus-within:text-foreground focus-within:shadow-lg focus-within:ring-2 focus-within:ring-ring",fieldsetRoot:"min-w-0 border-0 p-0 text-foreground",fieldsetLegend:"min-w-0 text-sm font-semibold leading-6 text-foreground",fieldsetDescription:"mt-1 text-sm leading-5 text-muted-foreground",fieldsetError:"mt-1 text-sm leading-5 text-destructive-text",fieldsetContent:"mt-3 grid min-w-0 gap-3",stepsRoot:"m-0 min-w-0 list-none p-0 text-foreground",stepsHorizontal:"flex w-full max-w-full items-start overflow-x-auto pb-2",stepsVertical:"grid",stepsItem:"relative min-w-0",stepsItemHorizontal:"flex min-w-52 flex-1 items-start",stepsItemVertical:"pb-6 last:pb-0",stepsTrigger:"flex min-w-0 flex-1 items-start gap-3 rounded-md border-0 bg-transparent p-1 text-start text-inherit",stepsTriggerInteractive:"cursor-pointer hover:bg-accent/50 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 motion-safe:transition motion-safe:duration-300 motion-safe:ease-out",stepsTriggerDisabled:"!cursor-not-allowed opacity-60",stepsIndicator:"relative z-[1] inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-full border text-xs font-semibold",stepsIndicatorPending:"border-border bg-background text-muted-foreground",stepsIndicatorCurrent:"border-primary/50 bg-primary/10 text-primary",stepsIndicatorCompleted:"border-primary bg-primary text-primary-foreground",stepsIndicatorError:"border-destructive bg-destructive text-destructive-foreground",stepsContent:"grid min-w-0 gap-1 pt-0.5",stepsLabel:"min-w-0 break-words text-sm font-medium leading-5",stepsDescription:"min-w-0 break-words text-sm leading-5 text-muted-foreground",stepsStatus:"sr-only",stepsConnector:"shrink-0 bg-border",stepsConnectorHorizontal:"mt-3.5 h-px w-8",stepsConnectorVertical:"absolute bottom-0 top-8 start-3.5 w-px -translate-x-1/2",stepsConnectorCompleted:"bg-primary/60",stepsConnectorError:"bg-destructive/60",scrollAreaViewport:"min-h-0 min-w-0",numberInputControl:"tabular-nums",numberInputStepControls:"me-1 flex shrink-0 self-stretch overflow-hidden border-s border-border",numberInputStepButton:"flex min-h-6 w-7 cursor-pointer items-center justify-center border-0 bg-transparent px-1 text-xs leading-none text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:z-[1] focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring disabled:!cursor-not-allowed disabled:opacity-40",passwordInputControl:"pe-2",passwordInputToggle:"me-1 inline-flex min-h-7 shrink-0 cursor-pointer items-center justify-center rounded px-2 text-xs font-medium text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring disabled:!cursor-not-allowed disabled:opacity-40",inputGroupRoot:v("relative flex min-w-0 items-stretch overflow-hidden rounded-md border border-border bg-background text-foreground focus-within:border-primary/50 focus-within:ring-2 focus-within:ring-ring/30",Xe),inputGroupInvalid:"border-destructive/55 focus-within:border-destructive/70 focus-within:ring-destructive/25",inputGroupDisabled:"!cursor-not-allowed bg-muted/35",inputGroupContent:"flex min-w-0 flex-1 items-stretch [&>*]:min-w-0",inputGroupStartElement:"inline-flex shrink-0 items-center justify-center ps-3 pe-1 text-foreground/75",inputGroupEndElement:"inline-flex shrink-0 items-center justify-center ps-1 pe-3 text-foreground/75",inputGroupStartAddon:"inline-flex max-w-[min(40%,16rem)] shrink-0 items-center overflow-hidden border-e border-border bg-muted/60 px-3 text-sm text-foreground/75 text-ellipsis whitespace-nowrap [&>*]:min-w-0",inputGroupEndAddon:"inline-flex max-w-[min(40%,16rem)] shrink-0 items-center overflow-hidden border-s border-border bg-muted/60 px-3 text-sm text-foreground/75 text-ellipsis whitespace-nowrap [&>*]:min-w-0",panelRoot:v("group relative flex min-w-0 flex-col overflow-hidden rounded-lg border border-border/70 bg-background",Xt),panelInteractive:"cursor-pointer hover:shadow-md",panelSelected:"border-primary/45 bg-primary/5",panelDisabled:"!cursor-not-allowed opacity-60",panelMedia:"shrink-0 overflow-hidden",panelHeader:"min-w-0 p-token-lg",panelTitle:"min-w-0 truncate text-sm font-semibold leading-none text-foreground",panelDescription:"mt-1 text-sm leading-5 text-foreground/75",panelBody:"min-w-0 px-token-lg pb-token-lg text-sm text-foreground",panelBodyStandalone:"pt-token-lg",panelFooter:"shrink-0 border-t border-border/60 px-token-lg py-token-md",stateRoot:v("flex min-h-48 flex-col items-center justify-center rounded-lg border border-border/70 bg-background px-6 py-10 text-center",Xe),stateIcon:"mb-token-lg flex h-12 w-12 items-center justify-center rounded-full bg-muted text-muted-foreground motion-safe:animate-in motion-safe:fade-in",stateTitle:"text-sm font-semibold text-foreground",stateDescription:"mt-2 max-w-md text-sm leading-6 text-muted-foreground",stateActions:"mt-token-xl flex flex-wrap items-center justify-center gap-token-sm",loadingSpinner:"h-5 w-5 motion-safe:animate-spin motion-reduce:animate-none",fieldRoot:"grid min-w-0 gap-token-md",fieldLabelRow:"flex min-w-0 items-center justify-between gap-token-md",fieldLabel:"min-w-0 text-sm font-medium leading-none text-foreground",fieldRequired:"text-destructive-text",fieldDescription:"text-sm leading-5 text-muted-foreground",fieldMessage:"text-sm leading-5 text-muted-foreground",fieldControl:"min-w-0",controlWrapper:v("relative flex min-w-0 items-center rounded-md border border-border bg-background text-foreground focus-within:border-primary/35",Xe),controlBase:"min-w-0 flex-1 bg-transparent px-3 text-sm text-foreground outline-hidden placeholder:text-muted-foreground disabled:!cursor-not-allowed",controlInput:"h-9",controlTextarea:"min-h-24 resize-y py-2 leading-6",controlSelect:"h-9 cursor-pointer appearance-none pr-9 disabled:!cursor-not-allowed",controlIcon:"pointer-events-none ml-3 inline-flex h-4 w-4 shrink-0 items-center justify-center text-muted-foreground",controlTrailing:"mr-3 inline-flex shrink-0 items-center justify-center text-muted-foreground",controlInvalid:"border-destructive/45 focus-within:border-destructive/60",controlDisabled:"!cursor-not-allowed opacity-60",controlReadOnly:"bg-muted/35",selectChevron:v("pointer-events-none absolute right-3 top-1/2 h-2 w-2 -translate-y-1/2 rotate-45 border-b border-r border-current text-muted-foreground",Ur),selectMenu:"absolute left-0 right-0 top-[calc(100%+0.375rem)] z-50 max-h-60 overflow-auto rounded-md border border-border bg-background p-1 text-sm text-foreground shadow-lg outline-hidden",selectOption:v("flex min-h-8 w-full min-w-0 cursor-pointer items-center rounded-sm px-2.5 py-1.5 text-left text-sm text-foreground",Xt),selectOptionActive:"bg-accent text-accent-foreground",selectOptionSelected:"bg-primary/10 text-primary",selectOptionDisabled:"!cursor-not-allowed opacity-50",selectPlaceholder:"text-muted-foreground",selectNative:"sr-only",switchRoot:"inline-flex min-w-0 cursor-pointer items-start gap-3",switchInput:"sr-only",switchTrack:v("relative mt-0.5 inline-flex h-6 w-10 shrink-0 items-center rounded-full border border-border bg-muted focus-within:border-primary/35",Xe),switchThumb:v("h-4 w-4 translate-x-1 rounded-full bg-background shadow-sm",Ur),switchChecked:"border-primary/40 bg-primary/80 text-primary-foreground",switchDisabled:"!cursor-not-allowed opacity-60",switchContent:"grid min-w-0 gap-1",switchLabel:"text-sm font-medium leading-none text-foreground",switchDescription:"text-sm leading-5 text-muted-foreground",checkboxRoot:"inline-flex min-w-0 cursor-pointer items-start gap-3",checkboxInput:"sr-only",checkboxBox:v("mt-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded border border-border bg-background text-primary focus-within:border-primary/40",Xe),checkboxBoxChecked:"border-primary/45 bg-primary text-primary-foreground",checkboxBoxInvalid:"border-destructive/50",checkboxIndicator:"text-xs font-bold leading-none",checkboxDisabled:"!cursor-not-allowed opacity-60",checkboxContent:"grid min-w-0 gap-1",checkboxLabel:"text-sm font-medium leading-none text-foreground",checkboxDescription:"text-sm leading-5 text-muted-foreground",radioGroupRoot:"grid min-w-0 gap-2",radioOption:v("inline-flex min-w-0 cursor-pointer items-start gap-3 rounded-md border border-border/60 bg-background px-3 py-2 text-sm",Xt,"hover:bg-muted/35"),radioInput:"sr-only",radioMarker:v("mt-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full border border-border bg-background text-primary focus-within:border-primary/40",Xe),radioMarkerChecked:"border-primary/50 bg-primary/10",radioIndicator:"h-2 w-2 rounded-full bg-primary",radioOptionDisabled:"!cursor-not-allowed opacity-60 hover:bg-background",radioContent:"grid min-w-0 gap-1",radioLabel:"text-sm font-medium leading-none text-foreground",radioDescription:"text-sm leading-5 text-muted-foreground",dialogRoot:"relative",dialogTrigger:"",dialogTriggerDisabled:"!cursor-not-allowed opacity-60",dialogOverlay:"fixed inset-0 z-50 bg-background/70 backdrop-blur-sm motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out",dialogContent:"pointer-events-none fixed inset-0 z-50 flex min-h-0 items-center justify-center p-4",dialogPanel:v("pointer-events-auto relative flex max-h-[min(85vh,720px)] w-full max-w-lg min-w-0 flex-col overflow-hidden rounded-lg border border-border/70 bg-background text-foreground shadow-xl","motion-safe:animate-in motion-safe:fade-in motion-safe:zoom-in-95 motion-safe:duration-300 motion-safe:ease-out"),dialogHeader:"grid min-w-0 gap-1 border-b border-border/60 px-5 py-4",dialogTitle:"min-w-0 pr-8 text-base font-semibold leading-6 text-foreground",dialogDescription:"text-sm leading-6 text-muted-foreground",dialogBody:"min-h-0 min-w-0 overflow-auto px-5 py-4 text-sm text-foreground",dialogFooter:"flex shrink-0 flex-wrap items-center justify-end gap-2 border-t border-border/60 px-5 py-4",dialogClose:v("absolute right-3 top-3 inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-md text-muted-foreground hover:bg-muted/60 hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30",Xt),dropdownRoot:"relative inline-flex min-w-0",dropdownTrigger:"",dropdownTriggerDisabled:"!cursor-not-allowed opacity-60",dropdownMenu:"z-50 min-w-48 overflow-hidden rounded-md border border-border bg-background p-1 text-sm text-foreground shadow-lg motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out",dropdownMenuTop:"bottom-[calc(100%+0.375rem)] top-auto",dropdownMenuEnd:"left-auto right-0",dropdownLabel:"px-2.5 py-1.5 text-xs font-semibold uppercase tracking-[0.12em] text-muted-foreground",dropdownSeparator:"my-1 h-px bg-border/70",dropdownItem:v("flex min-w-0 cursor-pointer items-center gap-2 rounded-sm px-2.5 py-2 text-left text-sm text-foreground hover:bg-accent/60 focus:bg-accent/60 data-[highlighted]:bg-accent/60 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30",Xt),dropdownItemDanger:"text-destructive-text hover:bg-destructive/10 focus:bg-destructive/10 data-[highlighted]:bg-destructive/10",dropdownItemDisabled:"!cursor-not-allowed opacity-50 hover:bg-transparent focus:bg-transparent data-[highlighted]:bg-transparent",dropdownItemIcon:"inline-flex h-4 w-4 shrink-0 items-center justify-center",dropdownItemContent:"grid min-w-0 flex-1 gap-0.5",dropdownItemLabel:"min-w-0 truncate",dropdownItemDescription:"min-w-0 truncate text-xs leading-4 text-muted-foreground",dropdownItemShortcut:"ml-3 shrink-0 text-xs font-medium text-muted-foreground",tooltipRoot:"relative inline-flex min-w-0",tooltipTrigger:"inline-flex min-w-0",tooltipContent:"pointer-events-none z-50 max-w-xs rounded-md border border-border bg-popover px-2.5 py-1.5 text-xs leading-5 text-popover-foreground shadow-lg motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out",noticeBase:v("flex min-w-0 gap-3 rounded-lg border px-4 py-3 text-sm",Xe,"motion-safe:animate-in motion-safe:fade-in"),noticeDefault:"border-border bg-background text-foreground",noticePrimary:"border-primary/25 bg-primary/10 text-primary",noticeSuccess:"border-[hsl(var(--success,142_72%_29%)_/_0.30)] bg-[hsl(var(--success,142_72%_29%)_/_0.10)] text-foreground",noticeWarning:"border-[hsl(var(--warning,45_93%_47%)_/_0.30)] bg-[hsl(var(--warning,45_93%_47%)_/_0.10)] text-[hsl(var(--warning-foreground,28_73%_26%))]",noticeDanger:"border-destructive/30 bg-destructive/10 text-destructive-text",noticeMuted:"border-border/60 bg-muted/35 text-muted-foreground",noticeIcon:"mt-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center motion-safe:animate-in motion-safe:fade-in",noticeTitle:"font-semibold leading-5",noticeDescription:"leading-6",noticeActions:"mt-3 flex flex-wrap items-center gap-2",dividerRoot:v("shrink-0 border-border/70",Xe),dividerLabel:"mx-3 shrink-0 text-xs font-medium uppercase tracking-[0.12em] text-muted-foreground motion-safe:animate-in motion-safe:fade-in",sectionHeaderRoot:"flex min-w-0 flex-wrap items-start justify-between gap-token-md motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out",sectionHeaderContent:"grid min-w-0 gap-1",sectionHeaderEyebrow:"text-xs font-semibold uppercase tracking-[0.14em] text-muted-foreground",sectionHeaderTitle:"text-base font-semibold leading-6 text-foreground",sectionHeaderDescription:"max-w-2xl text-sm leading-6 text-muted-foreground",sectionHeaderActions:"flex shrink-0 flex-wrap items-center gap-2",tabsRoot:"grid min-w-0 gap-token-md",tabsList:v("inline-flex min-w-0 flex-wrap items-center gap-token-xs rounded-lg border border-border/70 bg-muted/30 p-token-xs",Xe),tabsTrigger:v("inline-flex min-w-0 cursor-pointer items-center justify-center rounded-md px-3 py-1.5 text-sm font-medium text-muted-foreground hover:bg-background/70 hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30 focus-visible:ring-offset-1 motion-reduce:transition-none",Xt),tabsTriggerActive:"bg-background text-foreground shadow-sm",tabsTriggerDisabled:"!cursor-not-allowed opacity-50 hover:bg-transparent",tabsPanel:"min-w-0 rounded-lg border border-border/70 bg-background p-4 text-sm text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30 motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out motion-reduce:transition-none",segmentedRoot:v("inline-flex min-w-0 items-center gap-1 rounded-lg border border-border/70 bg-muted/30 p-1",Xe),segmentedItem:v("inline-flex min-w-0 cursor-pointer items-center justify-center gap-1.5 rounded-md px-3 py-1.5 text-sm font-medium text-muted-foreground hover:bg-background/70 hover:text-foreground focus-visible:outline-hidden",Xt),segmentedItemActive:"bg-background text-foreground shadow-sm",segmentedItemDisabled:"!cursor-not-allowed opacity-50 hover:bg-transparent",progressRoot:"grid min-w-0 gap-2",progressTrack:"h-2 w-full overflow-hidden rounded-full bg-muted",progressIndicator:"h-full rounded-full bg-primary motion-safe:transition-[width] motion-safe:duration-500 motion-safe:ease-out",progressLabelRow:"flex min-w-0 items-center justify-between gap-3",progressLabel:"min-w-0 truncate text-sm font-medium text-foreground",progressValue:"shrink-0 text-xs font-medium text-muted-foreground",skeletonRoot:"relative overflow-hidden rounded-md bg-muted/70",avatarRoot:"relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full border border-border bg-muted text-sm font-semibold text-muted-foreground motion-safe:transition motion-safe:duration-300 motion-safe:ease-out",avatarImage:"h-full w-full object-cover",avatarFallback:"flex h-full w-full items-center justify-center bg-muted text-foreground",avatarStatus:"absolute bottom-0 right-0 h-2.5 w-2.5 rounded-full border-2 border-background bg-muted-foreground motion-safe:animate-pulse",avatarText:"min-w-0 truncate text-sm font-medium text-foreground",toolbarRoot:v("flex min-w-0 flex-wrap items-center justify-between gap-token-md rounded-lg border border-border/70 bg-background px-token-lg py-token-md",Xe),toolbarLeading:"flex min-w-0 items-center gap-token-md",toolbarTitle:"min-w-0 truncate text-sm font-semibold text-foreground",toolbarDescription:"mt-0.5 text-sm leading-5 text-muted-foreground",toolbarContent:"min-w-0 flex-1",toolbarActions:"flex shrink-0 flex-wrap items-center gap-token-sm",breadcrumbRoot:"min-w-0 text-sm text-muted-foreground",breadcrumbList:"flex min-w-0 flex-wrap items-center gap-1.5",breadcrumbItem:"inline-flex min-w-0 items-center gap-1.5",breadcrumbLink:"min-w-0 cursor-pointer truncate text-muted-foreground hover:text-foreground disabled:!cursor-not-allowed disabled:opacity-50 aria-disabled:!cursor-not-allowed aria-disabled:opacity-50 aria-disabled:hover:text-muted-foreground motion-safe:transition motion-safe:duration-300 motion-safe:ease-out",breadcrumbCurrent:"min-w-0 truncate font-medium text-foreground",breadcrumbSeparator:"shrink-0 text-muted-foreground/70",paginationRoot:"flex min-w-0 flex-wrap items-center justify-between gap-3 text-sm",paginationInfo:"min-w-0 text-muted-foreground",paginationControls:"flex min-w-0 flex-wrap items-center justify-end gap-1.5",paginationButton:"inline-flex h-8 min-w-8 cursor-pointer items-center justify-center whitespace-nowrap rounded-md border border-border bg-background px-2.5 text-sm font-medium text-foreground hover:bg-accent/60 disabled:!cursor-not-allowed disabled:opacity-50 motion-safe:transition motion-safe:duration-300 motion-safe:ease-out",paginationButtonDisabled:"!cursor-not-allowed opacity-50",paginationPage:"inline-flex h-8 min-w-8 cursor-default items-center justify-center rounded-md bg-muted/50 px-2.5 text-sm font-medium text-foreground hover:bg-muted/50",paginationEllipsis:"inline-flex h-8 min-w-6 items-center justify-center px-1 text-sm text-muted-foreground",descriptionListRoot:"grid min-w-0 gap-3 text-sm",descriptionListItem:"grid min-w-0 gap-1 rounded-md border border-border/60 bg-background px-3 py-2 motion-safe:transition motion-safe:duration-300 motion-safe:ease-out hover:shadow-sm",descriptionListTerm:"min-w-0 truncate text-xs font-medium uppercase tracking-[0.08em] text-muted-foreground",descriptionListValue:"min-w-0 text-sm leading-6 text-foreground",accordionRoot:"grid min-w-0 gap-2",accordionItem:"overflow-hidden rounded-lg border border-border/70 bg-background motion-safe:transition motion-safe:duration-300 motion-safe:ease-out motion-reduce:transition-none",accordionTrigger:"flex w-full min-w-0 cursor-pointer items-center justify-between gap-3 px-4 py-3 text-start text-sm font-medium text-foreground hover:bg-muted/40 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring disabled:!cursor-not-allowed disabled:opacity-50 motion-safe:transition motion-safe:duration-300 motion-safe:ease-out motion-reduce:transition-none",accordionTriggerIcon:v("h-2 w-2 shrink-0 rotate-45 border-b border-r border-current text-muted-foreground",Ur,"motion-reduce:transition-none"),accordionPanel:"border-t border-border/60 px-4 py-3 text-sm leading-6 text-muted-foreground motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out motion-reduce:animate-none",menuTrigger:"inline-flex min-w-0",menuContent:"z-50 min-w-44 overflow-hidden rounded-md border border-border bg-background p-1 text-sm text-foreground shadow-lg outline-hidden motion-safe:animate-in motion-safe:fade-in motion-safe:zoom-in-95 motion-safe:duration-300 motion-safe:ease-out",menuLabel:"px-2 py-1.5 text-xs font-medium text-muted-foreground",menuSeparator:"-mx-1 my-1 h-px bg-border",menuItem:v("relative flex min-h-8 min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm px-2.5 py-1.5 text-sm text-foreground outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:!cursor-not-allowed data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",Xt),menuItemDefault:"text-foreground",menuItemPrimary:"text-primary focus:text-primary data-[highlighted]:text-primary",menuItemSuccess:"text-[hsl(var(--success,142_72%_29%))] focus:text-[hsl(var(--success,142_72%_29%))] data-[highlighted]:text-[hsl(var(--success,142_72%_29%))]",menuItemWarning:"text-[hsl(var(--warning-foreground,28_73%_26%))] focus:text-[hsl(var(--warning-foreground,28_73%_26%))] data-[highlighted]:text-[hsl(var(--warning-foreground,28_73%_26%))]",menuItemDanger:"text-destructive-text focus:text-destructive-text data-[highlighted]:text-destructive-text",menuItemMuted:"text-muted-foreground focus:text-foreground data-[highlighted]:text-foreground",menuItemDisabled:"!cursor-not-allowed opacity-50 data-[disabled]:pointer-events-none",menuItemIcon:"inline-flex h-4 w-4 shrink-0 items-center justify-center",menuItemLabel:"min-w-0 flex-1 truncate",menuItemShortcut:"ml-4 shrink-0 text-xs font-medium text-muted-foreground",menuCheckboxIndicator:"absolute left-2 inline-flex h-4 w-4 items-center justify-center text-current",menuRadioIndicator:"absolute left-2 inline-flex h-4 w-4 items-center justify-center text-current",menuSubTrigger:v("relative flex min-h-8 min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm px-2.5 py-1.5 text-sm text-foreground outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:!cursor-not-allowed data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",Xt),menuSubTriggerIcon:"ml-auto inline-flex h-4 w-4 shrink-0 items-center justify-center text-muted-foreground",menuSubContent:"z-50 min-w-40 overflow-hidden rounded-md border border-border bg-background p-1 text-sm text-foreground shadow-lg outline-hidden motion-safe:animate-in motion-safe:fade-in motion-safe:zoom-in-95 motion-safe:duration-300 motion-safe:ease-out",tableContainer:v("relative isolate min-w-0 overflow-auto rounded-lg border border-border/70 bg-background/95 bg-clip-padding [scrollbar-gutter:stable]","[--base-table-header-height:2.75rem] [--base-table-split-scrollbar-gutter:0.75rem]","[--base-table-sticky-header-bg:hsl(var(--background))] [--base-table-header-separator:hsl(var(--border)_/_0.7)]",jl,Xe),tableContainerFooterAttached:"!rounded-b-none !shadow-none",tableRoot:"w-full caption-bottom border-separate border-spacing-0 text-sm text-foreground",tableCaption:"mt-3 text-sm text-muted-foreground",tableHeader:v("relative z-[2] bg-transparent [&_tr]:bg-transparent",_g),tableBody:"[&_tr:last-child>*]:border-b-0",tableFooter:"bg-muted/30 font-medium [&_tr>*]:border-t [&_tr>*]:border-border/70",tableFooterBar:v("flex min-w-0 flex-wrap items-center justify-between gap-3 rounded-lg border border-border/70 bg-muted/20 px-4 py-3 text-sm text-foreground shadow-none",Xe),tableFooterBarAttached:"-mt-px rounded-t-none border-t border-border/70 shadow-none",tableFooterBarLeading:"flex min-w-0 items-center gap-2",tableFooterBarContent:"min-w-0 flex-1",tableFooterBarActions:"ms-auto flex shrink-0 flex-wrap items-center gap-2",tableSplitRoot:"grid w-full min-w-0 grid-cols-[minmax(0,1fr)] grid-rows-[auto_minmax(0,1fr)_auto] caption-bottom border-separate border-spacing-0 text-sm text-foreground",tableSplitHeader:"block w-full min-w-0 shrink-0 overflow-x-hidden overflow-y-hidden bg-transparent",tableSplitBody:v("block min-h-0 w-full min-w-0 max-w-full justify-self-stretch overflow-auto [scrollbar-gutter:stable]",jl),tableSplitFooter:"block w-full min-w-0 shrink-0 overflow-x-hidden overflow-y-hidden",tableSplitRow:"grid w-max min-w-full [grid-template-columns:var(--base-table-column-template)]",tableSplitHead:"flex min-w-0 overflow-hidden",tableSplitCell:"block min-w-0 overflow-hidden [overflow-wrap:anywhere]",tableRow:v("[&>*]:border-b [&>*]:border-border/60 data-[state=selected]:bg-primary/5 data-[state=selected]:[&>*]:bg-primary/5",Xe),tableRowInteractive:"cursor-pointer [--base-table-row-hover-bg:hsl(var(--muted)_/_0.35)] hover:bg-[var(--base-table-row-hover-bg)] hover:[&>td]:bg-[var(--base-table-row-hover-bg)] hover:[&>th]:bg-[var(--base-table-row-hover-bg)]",tableRowSelected:"bg-primary/5 [&>*]:bg-primary/5",tableRowDisabled:"!cursor-not-allowed opacity-60",tableHead:"relative h-11 whitespace-nowrap px-3 py-2 text-left align-middle text-xs font-semibold text-muted-foreground shadow-[inset_0_-1px_0_var(--base-table-header-separator)]",tableHeadContent:"flex min-w-0 items-center justify-between gap-2",tableHeadMain:"flex min-w-0 items-center gap-2",tableHeadIcon:"inline-flex h-4 w-4 shrink-0 items-center justify-center text-muted-foreground",tableHeadText:"grid min-w-0 gap-0.5",tableHeadLabel:"min-w-0 truncate text-xs font-semibold leading-4 text-foreground",tableHeadDescription:"min-w-0 truncate text-xs font-normal leading-4 text-muted-foreground",tableHeadMeta:"shrink-0 text-xs font-medium text-muted-foreground",tableHeadActions:"flex shrink-0 items-center gap-1",tableHeadSortButton:v("inline-flex min-w-0 cursor-pointer items-center gap-1 rounded-sm text-left focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30 disabled:!cursor-not-allowed disabled:opacity-60",Xe),tableHeadSortIcon:v("inline-flex h-3 w-3 shrink-0 items-center justify-center text-muted-foreground",Ur),tableHeadDragHandle:v("inline-flex h-5 w-4 shrink-0 cursor-grab items-center justify-center rounded-sm text-muted-foreground hover:bg-muted active:cursor-grabbing focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30 disabled:!cursor-not-allowed disabled:opacity-50",Xe),tableHeadResizeHandle:v("absolute end-0 top-1/2 h-7 w-2 -translate-y-1/2 cursor-col-resize touch-none rounded-sm after:absolute after:start-1/2 after:top-1/2 after:h-5 after:w-px after:-translate-x-1/2 after:-translate-y-1/2 after:bg-border hover:after:bg-primary focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30 disabled:!cursor-not-allowed disabled:opacity-50",Xe),tableCell:"min-w-0 px-3 py-2 align-middle text-sm text-foreground [overflow-wrap:anywhere]",tableCellAlignCenter:"text-center",tableCellAlignRight:"text-right",tableEmptyRow:"[&>*]:border-b [&>*]:border-border/60",tableEmptyCell:"px-4 py-10 text-center",tableEmptyContent:"mx-auto flex max-w-md flex-col items-center justify-center text-center",tableEmptyIcon:"mb-3 flex h-10 w-10 items-center justify-center rounded-full bg-muted text-muted-foreground",tableEmptyTitle:"text-sm font-semibold text-foreground",tableEmptyDescription:"mt-1 text-sm leading-6 text-muted-foreground",tableEmptyActions:"mt-4 flex flex-wrap items-center justify-center gap-2",tableLoadingRow:"[&>*]:border-b [&>*]:border-border/60",tableLoadingCell:"px-3 py-2",tableLoadingSkeleton:"h-4 w-full rounded-md bg-muted/70",layoutRoot:v("grid min-w-0 overflow-hidden grid-rows-[auto_minmax(0,1fr)_auto] gap-3 rounded-lg border border-border/70 bg-background p-3 text-foreground",Xe),layoutRootFull:"h-full min-h-0",layoutHeader:"min-w-0",layoutBody:"grid min-h-0 min-w-0 overflow-hidden gap-token-md",layoutSidebar:"min-h-0 min-w-0 overflow-hidden",layoutMain:"min-h-0 min-w-0 overflow-hidden",layoutAside:"min-h-0 min-w-0 overflow-hidden",layoutFooter:"min-w-0",layoutPane:v("h-full max-h-full min-h-0 min-w-0 overflow-hidden rounded-lg bg-background text-foreground",Xe),layoutPaneScrollable:"overflow-auto",layoutPaneBordered:"border border-border/70",layoutPaneMuted:"bg-muted/25",layoutPaneSoft:"bg-background/95 shadow-sm",layoutPaneTransparent:"bg-transparent shadow-none",layoutSplitRoot:"grid min-h-0 min-w-0 overflow-hidden",layoutSplitHorizontal:"grid-flow-col",layoutSplitVertical:"grid-flow-row",layoutSplitPane:"min-h-0 min-w-0 overflow-hidden",layoutSplitPrimary:"",layoutSplitSecondary:"",layoutResizeHandle:v("group/resize relative z-10 flex shrink-0 items-center justify-center bg-transparent text-muted-foreground hover:bg-border/60 active:bg-border/70 focus-visible:bg-border/60 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30",Xt),layoutResizeHandleHorizontal:"w-2 cursor-col-resize",layoutResizeHandleVertical:"h-2 cursor-row-resize",layoutResizeHandleDisabled:"cursor-default opacity-60",layoutResizeHandleIndicator:"rounded-full bg-muted-foreground/45 group-hover/resize:bg-primary/70"},Ug={compact:{buttonBase:"h-8 px-2.5 text-xs",buttonIconOnly:"h-8 w-8 px-0",badgeBase:"px-1.5 py-0 text-xs",panelHeader:"p-token-md",panelBody:"px-token-md pb-token-md text-xs",panelBodyStandalone:"pt-token-md",panelFooter:"px-token-md py-token-md",stateRoot:"min-h-36 px-4 py-7",stateIcon:"mb-3 h-10 w-10",fieldRoot:"gap-token-sm",fieldLabel:"text-xs",fieldDescription:"text-xs leading-5",fieldMessage:"text-xs leading-5",controlInput:"h-8 text-xs",controlTextarea:"min-h-20 text-xs",controlSelect:"h-8 text-xs",selectMenu:"text-xs",selectOption:"min-h-7 px-2 py-1 text-xs",switchTrack:"h-5 w-9",switchThumb:"h-3.5 w-3.5",checkboxBox:"h-3.5 w-3.5",checkboxLabel:"text-xs",checkboxDescription:"text-xs leading-5",radioOption:"px-2 py-1.5 text-xs",radioMarker:"h-3.5 w-3.5",radioIndicator:"h-1.5 w-1.5",radioLabel:"text-xs",radioDescription:"text-xs leading-5",dialogPanel:"max-w-md",dialogHeader:"px-4 py-3",dialogTitle:"text-sm leading-5",dialogDescription:"text-xs leading-5",dialogBody:"px-4 py-3 text-xs",dialogFooter:"px-4 py-3",dropdownMenu:"min-w-44 text-xs",dropdownItem:"px-2 py-1.5 text-xs",tooltipContent:"text-xs leading-4",noticeBase:"px-3 py-2 text-xs",dividerLabel:"text-xs",sectionHeaderRoot:"gap-token-sm",sectionHeaderTitle:"text-sm leading-5",sectionHeaderDescription:"text-xs leading-5",tabsList:"gap-token-xs p-token-xs",tabsTrigger:"px-2 py-1 text-xs",tabsPanel:"p-3 text-xs",segmentedRoot:"gap-token-xs p-token-xs",segmentedItem:"px-2 py-1 text-xs",progressTrack:"h-1.5",avatarRoot:"text-xs",toolbarRoot:"gap-token-sm px-token-md py-token-md",toolbarTitle:"text-xs",toolbarDescription:"text-xs leading-5",paginationButton:"h-7 min-w-7 px-2 text-xs",paginationPage:"h-7 min-w-7 px-2 text-xs",descriptionListRoot:"gap-2 text-xs",descriptionListItem:"px-2 py-1.5",descriptionListTerm:"text-xs",descriptionListValue:"text-xs leading-5",accordionTrigger:"px-3 py-2 text-xs",accordionPanel:"px-3 py-2 text-xs leading-5",menuContent:"min-w-40 p-0.5 text-xs",menuSubContent:"min-w-36 p-0.5 text-xs",menuLabel:"px-2 py-1 text-xs",menuItem:"min-h-7 px-2 py-1 text-xs",menuSubTrigger:"min-h-7 px-2 py-1 text-xs",menuItemShortcut:"text-xs",tableContainer:"[--base-table-header-height:2.25rem]",tableHead:"h-9 px-2 py-1.5 text-xs",tableCell:"px-2 py-1.5 text-xs",tableHeadLabel:"text-xs",tableHeadDescription:"text-xs leading-3",tableLoadingCell:"px-2 py-1.5",layoutRoot:"gap-token-md p-token-md",layoutBody:"gap-token-md",layoutPane:"rounded-md text-xs",layoutResizeHandleHorizontal:"w-1.5",layoutResizeHandleVertical:"h-1.5"},default:{buttonBase:"h-9"},comfortable:{buttonBase:"h-10 px-3.5",buttonIconOnly:"h-10 w-10 px-0",badgeBase:"px-2.5 py-1",panelHeader:"p-token-xl",panelBody:"px-token-xl pb-token-xl",panelBodyStandalone:"pt-token-xl",panelFooter:"px-token-xl py-token-lg",stateRoot:"min-h-56 px-8 py-12",stateIcon:"mb-5 h-14 w-14",fieldRoot:"gap-token-md",controlInput:"h-10",controlTextarea:"min-h-28",controlSelect:"h-10",selectMenu:"p-1.5",selectOption:"min-h-9 px-3 py-2",switchTrack:"h-7 w-12",switchThumb:"h-5 w-5",checkboxBox:"h-5 w-5",radioOption:"px-4 py-3",radioMarker:"h-5 w-5",radioIndicator:"h-2.5 w-2.5",dialogPanel:"max-w-xl",dialogHeader:"px-6 py-5",dialogBody:"px-6 py-5",dialogFooter:"px-6 py-5",dropdownMenu:"min-w-56",dropdownItem:"px-3 py-2.5",noticeBase:"px-5 py-4",sectionHeaderTitle:"text-lg leading-7",tabsTrigger:"px-3.5 py-2",tabsPanel:"p-5",segmentedItem:"px-3.5 py-2",progressTrack:"h-2.5",toolbarRoot:"px-token-xl py-token-lg",paginationButton:"h-9 min-w-9 px-3",paginationPage:"h-9 min-w-9 px-3",descriptionListItem:"px-4 py-3",accordionTrigger:"px-5 py-4",accordionPanel:"px-5 py-4",menuContent:"min-w-48 p-1.5",menuSubContent:"min-w-44 p-1.5",menuItem:"min-h-9 px-3 py-2",menuSubTrigger:"min-h-9 px-3 py-2",tableContainer:"[--base-table-header-height:3rem]",tableHead:"h-12 px-4 py-3",tableCell:"px-4 py-3",tableLoadingCell:"px-4 py-3",layoutRoot:"gap-token-lg p-token-lg",layoutBody:"gap-token-lg",layoutPane:"rounded-xl",layoutResizeHandleHorizontal:"w-2.5",layoutResizeHandleVertical:"h-2.5"}},Vg={none:{buttonBase:"rounded-none",badgeBase:"rounded-none",panelRoot:"rounded-none",stateRoot:"rounded-none",stateIcon:"rounded-none",controlWrapper:"rounded-none",selectMenu:"rounded-none",selectOption:"rounded-none",switchTrack:"rounded-none",switchThumb:"rounded-none",checkboxBox:"rounded-none",radioOption:"rounded-none",dialogPanel:"rounded-none",dialogClose:"rounded-none",dropdownMenu:"rounded-none",dropdownItem:"rounded-none",tooltipContent:"rounded-none",noticeBase:"rounded-none",tabsList:"rounded-none",tabsTrigger:"rounded-none",tabsPanel:"rounded-none",segmentedRoot:"rounded-none",segmentedItem:"rounded-none",progressTrack:"rounded-none",progressIndicator:"rounded-none",skeletonRoot:"rounded-none",avatarRoot:"rounded-none",avatarStatus:"rounded-none",toolbarRoot:"rounded-none",paginationButton:"rounded-none",paginationPage:"rounded-none",descriptionListItem:"rounded-none",accordionItem:"rounded-none",menuContent:"rounded-none",menuItem:"rounded-none",menuSubTrigger:"rounded-none",menuSubContent:"rounded-none",tableContainer:"rounded-none",tableEmptyIcon:"rounded-none",tableLoadingSkeleton:"rounded-none",layoutRoot:"rounded-none",layoutPane:"rounded-none"},sm:{buttonBase:"rounded-sm",badgeBase:"rounded-sm",panelRoot:"rounded-sm",stateRoot:"rounded-sm",stateIcon:"rounded-sm",controlWrapper:"rounded-sm",selectMenu:"rounded-sm",selectOption:"rounded-sm",switchTrack:"rounded-sm",switchThumb:"rounded-sm",checkboxBox:"rounded-sm",radioOption:"rounded-sm",dialogPanel:"rounded-sm",dialogClose:"rounded-sm",dropdownMenu:"rounded-sm",dropdownItem:"rounded-sm",tooltipContent:"rounded-sm",noticeBase:"rounded-sm",tabsList:"rounded-sm",tabsTrigger:"rounded-sm",tabsPanel:"rounded-sm",segmentedRoot:"rounded-sm",segmentedItem:"rounded-sm",progressTrack:"rounded-sm",progressIndicator:"rounded-sm",skeletonRoot:"rounded-sm",avatarRoot:"rounded-sm",avatarStatus:"rounded-sm",toolbarRoot:"rounded-sm",paginationButton:"rounded-sm",paginationPage:"rounded-sm",descriptionListItem:"rounded-sm",accordionItem:"rounded-sm",menuContent:"rounded-sm",menuItem:"rounded-sm",menuSubTrigger:"rounded-sm",menuSubContent:"rounded-sm",tableContainer:"rounded-sm",tableEmptyIcon:"rounded-sm",tableLoadingSkeleton:"rounded-sm",layoutRoot:"rounded-sm",layoutPane:"rounded-sm"},md:{},lg:{buttonBase:"rounded-lg",badgeBase:"rounded-lg",panelRoot:"rounded-xl",stateRoot:"rounded-xl",stateIcon:"rounded-xl",controlWrapper:"rounded-lg",selectMenu:"rounded-lg",selectOption:"rounded-md",switchTrack:"rounded-full",switchThumb:"rounded-full",checkboxBox:"rounded-md",radioOption:"rounded-xl",dialogPanel:"rounded-xl",dialogClose:"rounded-lg",dropdownMenu:"rounded-lg",dropdownItem:"rounded-md",tooltipContent:"rounded-md",noticeBase:"rounded-xl",tabsList:"rounded-xl",tabsTrigger:"rounded-lg",tabsPanel:"rounded-xl",segmentedRoot:"rounded-xl",segmentedItem:"rounded-lg",skeletonRoot:"rounded-lg",toolbarRoot:"rounded-xl",descriptionListItem:"rounded-lg",accordionItem:"rounded-xl",menuContent:"rounded-lg",menuItem:"rounded-md",menuSubTrigger:"rounded-md",menuSubContent:"rounded-lg",tableContainer:"rounded-xl",tableEmptyIcon:"rounded-xl",tableLoadingSkeleton:"rounded-lg",layoutRoot:"rounded-xl",layoutPane:"rounded-xl"},xl:{buttonBase:"rounded-xl",badgeBase:"rounded-xl",panelRoot:"rounded-2xl",stateRoot:"rounded-2xl",stateIcon:"rounded-2xl",controlWrapper:"rounded-xl",selectMenu:"rounded-xl",selectOption:"rounded-lg",switchTrack:"rounded-full",switchThumb:"rounded-full",checkboxBox:"rounded-lg",radioOption:"rounded-2xl",dialogPanel:"rounded-2xl",dialogClose:"rounded-xl",dropdownMenu:"rounded-xl",dropdownItem:"rounded-lg",tooltipContent:"rounded-lg",noticeBase:"rounded-2xl",tabsList:"rounded-2xl",tabsTrigger:"rounded-xl",tabsPanel:"rounded-2xl",segmentedRoot:"rounded-2xl",segmentedItem:"rounded-xl",skeletonRoot:"rounded-xl",toolbarRoot:"rounded-2xl",paginationButton:"rounded-xl",paginationPage:"rounded-xl",descriptionListItem:"rounded-xl",accordionItem:"rounded-2xl",menuContent:"rounded-xl",menuItem:"rounded-lg",menuSubTrigger:"rounded-lg",menuSubContent:"rounded-xl",tableContainer:"rounded-2xl",tableEmptyIcon:"rounded-2xl",tableLoadingSkeleton:"rounded-xl",layoutRoot:"rounded-2xl",layoutPane:"rounded-2xl"},full:{buttonBase:"rounded-full",badgeBase:"rounded-full",panelRoot:"rounded-2xl",stateRoot:"rounded-2xl",stateIcon:"rounded-full",controlWrapper:"rounded-full",selectMenu:"rounded-2xl",selectOption:"rounded-full",switchTrack:"rounded-full",switchThumb:"rounded-full",checkboxBox:"rounded-full",radioOption:"rounded-2xl",dialogPanel:"rounded-2xl",dialogClose:"rounded-full",dropdownMenu:"rounded-2xl",dropdownItem:"rounded-full",tooltipContent:"rounded-full",noticeBase:"rounded-2xl",tabsList:"rounded-full",tabsTrigger:"rounded-full",tabsPanel:"rounded-2xl",segmentedRoot:"rounded-full",segmentedItem:"rounded-full",progressTrack:"rounded-full",progressIndicator:"rounded-full",skeletonRoot:"rounded-full",avatarRoot:"rounded-full",avatarStatus:"rounded-full",toolbarRoot:"rounded-2xl",paginationButton:"rounded-full",paginationPage:"rounded-full",descriptionListItem:"rounded-2xl",accordionItem:"rounded-2xl",menuContent:"rounded-2xl",menuItem:"rounded-full",menuSubTrigger:"rounded-full",menuSubContent:"rounded-2xl",tableContainer:"rounded-2xl",tableEmptyIcon:"rounded-full",tableLoadingSkeleton:"rounded-full",layoutRoot:"rounded-2xl",layoutPane:"rounded-2xl"}},jg={none:{buttonBase:"border-transparent",badgeBase:"border-transparent",panelRoot:"border-transparent",panelFooter:"border-transparent",stateRoot:"border-transparent",controlWrapper:"border-transparent",selectMenu:"border-transparent",switchTrack:"border-transparent",checkboxBox:"border-transparent",radioOption:"border-transparent",radioMarker:"border-transparent",dialogPanel:"border-transparent",dialogHeader:"border-transparent",dialogFooter:"border-transparent",dropdownMenu:"border-transparent",tooltipContent:"border-transparent",noticeBase:"border-transparent",dividerRoot:"border-transparent",tabsList:"border-transparent",tabsPanel:"border-transparent",segmentedRoot:"border-transparent",avatarRoot:"border-transparent",toolbarRoot:"border-transparent",paginationButton:"border-transparent",descriptionListItem:"border-transparent",accordionItem:"border-transparent",accordionPanel:"border-transparent",menuContent:"border-transparent",menuSeparator:"bg-transparent",menuSubContent:"border-transparent",tableContainer:"border-transparent [--base-table-header-separator:transparent]",tableHeader:"border-transparent",tableFooter:"[&_tr>*]:border-transparent",tableFooterBar:"border-transparent",tableFooterBarAttached:"border-t border-transparent",tableRow:"[&>*]:border-transparent",tableEmptyRow:"[&>*]:border-transparent",tableLoadingRow:"[&>*]:border-transparent",layoutRoot:"border-transparent",layoutPaneBordered:"border-transparent",layoutResizeHandle:"bg-transparent hover:bg-transparent active:bg-transparent focus-visible:bg-transparent"},subtle:{buttonDefault:"border-border/60",badgeDefault:"border-border/60",panelRoot:"border-border/60",panelFooter:"border-border/60",stateRoot:"border-border/60",controlWrapper:"border-border/60",selectMenu:"border-border/60",switchTrack:"border-border/60",checkboxBox:"border-border/60",radioOption:"border-border/60",radioMarker:"border-border/60",dialogPanel:"border-border/60",dialogHeader:"border-border/60",dialogFooter:"border-border/60",dropdownMenu:"border-border/60",tooltipContent:"border-border/60",noticeDefault:"border-border/60",dividerRoot:"border-border/60",tabsList:"border-border/60",tabsPanel:"border-border/60",segmentedRoot:"border-border/60",avatarRoot:"border-border/60",toolbarRoot:"border-border/60",paginationButton:"border-border/60",descriptionListItem:"border-border/60",accordionItem:"border-border/60",accordionPanel:"border-border/60",menuContent:"border-border/60",menuSeparator:"bg-border/60",menuSubContent:"border-border/60",tableContainer:"border-border/60 [--base-table-header-separator:hsl(var(--border)_/_0.6)]",tableHeader:"border-border/60",tableFooter:"[&_tr>*]:border-border/60",tableFooterBar:"border-border/60",tableFooterBarAttached:"border-t border-border/60",tableRow:"[&>*]:border-border/50",tableEmptyRow:"[&>*]:border-border/50",tableLoadingRow:"[&>*]:border-border/50",layoutRoot:"border-border/60",layoutPaneBordered:"border-border/60"},solid:{},strong:{buttonDefault:"border-foreground/20",badgeDefault:"border-foreground/20",panelRoot:"border-foreground/20",panelFooter:"border-foreground/20",stateRoot:"border-foreground/20",controlWrapper:"border-foreground/20",selectMenu:"border-foreground/20",switchTrack:"border-foreground/20",checkboxBox:"border-foreground/20",radioOption:"border-foreground/20",radioMarker:"border-foreground/20",dialogPanel:"border-foreground/20",dialogHeader:"border-foreground/15",dialogFooter:"border-foreground/15",dropdownMenu:"border-foreground/20",tooltipContent:"border-foreground/20",noticeDefault:"border-foreground/20",dividerRoot:"border-foreground/20",tabsList:"border-foreground/20",tabsPanel:"border-foreground/20",segmentedRoot:"border-foreground/20",avatarRoot:"border-foreground/20",toolbarRoot:"border-foreground/20",paginationButton:"border-foreground/20",descriptionListItem:"border-foreground/20",accordionItem:"border-foreground/20",accordionPanel:"border-foreground/20",menuContent:"border-foreground/20",menuSeparator:"bg-foreground/15",menuSubContent:"border-foreground/20",tableContainer:"border-foreground/20 [--base-table-header-separator:hsl(var(--foreground)_/_0.15)]",tableHeader:"border-foreground/20",tableFooter:"[&_tr>*]:border-foreground/20",tableFooterBar:"border-foreground/20",tableFooterBarAttached:"border-t border-foreground/20",tableRow:"[&>*]:border-foreground/15",tableEmptyRow:"[&>*]:border-foreground/15",tableLoadingRow:"[&>*]:border-foreground/15",layoutRoot:"border-foreground/20",layoutPaneBordered:"border-foreground/20",layoutResizeHandle:"hover:bg-foreground/15 active:bg-foreground/20 focus-visible:bg-foreground/15"}},Gg={plain:{},muted:{buttonDefault:"bg-muted/20 hover:bg-muted/45",panelRoot:"bg-card",panelFooter:"bg-muted/20",stateRoot:"bg-muted/20",controlWrapper:"bg-background",selectMenu:"bg-background",selectOptionActive:"bg-muted/70 text-foreground",checkboxBox:"bg-background",radioOption:"bg-card hover:bg-muted/45",radioMarker:"bg-background",dialogPanel:"bg-card",dropdownMenu:"bg-background",dropdownItem:"hover:bg-muted/60",tooltipContent:"bg-popover",noticeDefault:"bg-muted/20",tabsList:"bg-muted/35",tabsTriggerActive:"bg-background",tabsPanel:"bg-card",segmentedRoot:"bg-muted/35",segmentedItemActive:"bg-background",progressTrack:"bg-muted/60",skeletonRoot:"bg-muted",toolbarRoot:"bg-card",paginationButton:"bg-background hover:bg-muted/60",paginationPage:"bg-muted/60",descriptionListItem:"bg-card",accordionItem:"bg-card",menuContent:"bg-background",menuItem:"focus:bg-muted/70 data-[highlighted]:bg-muted/70",menuSubTrigger:"focus:bg-muted/70 data-[highlighted]:bg-muted/70 data-[state=open]:bg-muted/70",menuSubContent:"bg-background",tableContainer:"bg-background/95 [scrollbar-gutter:stable]",tableFooter:"bg-muted/35",tableFooterBar:"bg-muted/30 shadow-none",tableRowInteractive:"cursor-pointer [--base-table-row-hover-bg:hsl(var(--muted)_/_0.45)]",tableLoadingSkeleton:"bg-muted",layoutRoot:"bg-card",layoutPane:"bg-card",layoutPaneMuted:"bg-muted/35",layoutResizeHandle:"hover:bg-border/70 active:bg-border/80 focus-visible:bg-border/70"},soft:{buttonDefault:"bg-muted/30 hover:bg-muted/55",panelRoot:"bg-background/95 shadow-sm",stateRoot:"bg-background/95 shadow-sm",controlWrapper:"bg-background/95",selectMenu:"bg-background/95 shadow-xl",selectOptionActive:"bg-muted/60 text-foreground",checkboxBox:"bg-background/95",radioOption:"bg-background/95 shadow-sm hover:bg-muted/35",radioMarker:"bg-background/95",dialogPanel:"bg-background/95 shadow-xl",dropdownMenu:"bg-background/95 shadow-xl",dropdownItem:"hover:bg-muted/55",tooltipContent:"bg-popover shadow-xl",noticeDefault:"bg-background/95 shadow-sm",tabsList:"bg-background/60 shadow-sm",tabsTriggerActive:"bg-background",tabsPanel:"bg-background/95 shadow-sm",segmentedRoot:"bg-background/60 shadow-sm",segmentedItemActive:"bg-background",skeletonRoot:"bg-background/80",toolbarRoot:"bg-background/95 shadow-sm",paginationButton:"bg-background/95 hover:bg-muted/55",descriptionListItem:"bg-background/95 shadow-sm",accordionItem:"bg-background/95 shadow-sm",menuContent:"bg-background/95 shadow-xl",menuItem:"focus:bg-muted/60 data-[highlighted]:bg-muted/60",menuSubTrigger:"focus:bg-muted/60 data-[highlighted]:bg-muted/60 data-[state=open]:bg-muted/60",menuSubContent:"bg-background/95 shadow-xl",tableContainer:"bg-background/95 shadow-sm [scrollbar-gutter:stable]",tableFooter:"bg-muted/25",tableFooterBar:"bg-muted/25 shadow-none",tableRowInteractive:"cursor-pointer [--base-table-row-hover-bg:hsl(var(--muted)_/_0.35)]",tableLoadingSkeleton:"bg-muted/65",layoutRoot:"bg-background/95 shadow-sm",layoutPane:"bg-background/95 shadow-sm",layoutPaneSoft:"bg-background/95 shadow-md"},glass:{buttonBase:"backdrop-blur-md",buttonDefault:"border-white/10 bg-white/[0.08] text-foreground hover:bg-white/[0.14]",badgeDefault:"border-white/10 bg-white/[0.08] text-foreground",panelRoot:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",panelFooter:"border-white/10 bg-white/[0.05]",stateRoot:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",stateIcon:"bg-white/10 text-foreground",controlWrapper:"border-white/10 bg-white/[0.08] text-foreground backdrop-blur-md",selectMenu:"border-foreground/10 bg-background/10 text-foreground shadow-[0_18px_60px_hsl(var(--foreground)/0.18)] backdrop-blur-md",selectOption:"text-foreground",selectOptionActive:"bg-white/[0.14] text-foreground",selectOptionSelected:"bg-white/[0.18] text-foreground",switchTrack:"border-white/10 bg-white/[0.12] backdrop-blur-md",checkboxBox:"border-white/10 bg-white/[0.08] backdrop-blur-md",checkboxBoxChecked:"border-white/20 bg-white/[0.22] text-foreground",radioOption:"border-white/10 bg-white/[0.06] backdrop-blur-md hover:bg-white/[0.10]",radioMarker:"border-white/10 bg-white/[0.08] backdrop-blur-md",radioMarkerChecked:"border-white/25 bg-white/[0.16]",dialogOverlay:"bg-background/45 backdrop-blur-md",dialogPanel:"border-white/10 bg-white/[0.08] shadow-2xl backdrop-blur-md",dialogHeader:"border-white/10",dialogFooter:"border-white/10",dropdownMenu:"border-foreground/10 bg-background/10 text-foreground shadow-[0_18px_60px_hsl(var(--foreground)/0.18)] backdrop-blur-md",dropdownItem:"text-foreground hover:bg-white/[0.14]",tooltipContent:"border-foreground/10 bg-background/15 text-foreground shadow-[0_18px_60px_hsl(var(--foreground)/0.18)] backdrop-blur-md",noticeDefault:"border-white/10 bg-white/[0.08] text-foreground backdrop-blur-md",dividerRoot:"border-white/15",tabsList:"border-white/10 bg-white/[0.08] backdrop-blur-md",tabsTrigger:"text-muted-foreground hover:bg-white/[0.12] hover:text-foreground",tabsTriggerActive:"bg-white/[0.16] text-foreground shadow-none",tabsPanel:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",segmentedRoot:"border-white/10 bg-white/[0.08] backdrop-blur-md",segmentedItem:"text-muted-foreground hover:bg-white/[0.12] hover:text-foreground",segmentedItemActive:"bg-white/[0.16] text-foreground shadow-none",progressTrack:"bg-white/[0.12]",skeletonRoot:"bg-white/[0.16]",avatarRoot:"border-white/10 bg-white/[0.12] text-foreground",avatarFallback:"bg-white/[0.12] text-foreground",avatarStatus:"border-background",toolbarRoot:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",paginationButton:"border-white/10 bg-white/[0.08] text-foreground hover:bg-white/[0.14]",paginationPage:"bg-white/[0.12] text-foreground",descriptionListItem:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",accordionItem:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",accordionPanel:"border-white/10",menuContent:"border-foreground/10 bg-background/10 text-foreground shadow-[0_18px_60px_hsl(var(--foreground)/0.18)] backdrop-blur-md",menuSeparator:"bg-white/10",menuItem:"text-foreground focus:bg-white/[0.14] focus:text-foreground data-[highlighted]:bg-white/[0.14] data-[highlighted]:text-foreground",menuSubTrigger:"text-foreground focus:bg-white/[0.14] focus:text-foreground data-[highlighted]:bg-white/[0.14] data-[highlighted]:text-foreground data-[state=open]:bg-white/[0.16]",menuSubContent:"border-foreground/10 bg-background/10 text-foreground shadow-[0_18px_60px_hsl(var(--foreground)/0.18)] backdrop-blur-md",tableContainer:"border-foreground/10 bg-background/[0.06] shadow-none backdrop-blur-md [scrollbar-gutter:stable] [--base-table-sticky-header-bg:hsl(var(--background)/0.94)] [--base-table-header-separator:hsl(var(--foreground)/0.24)]",tableHeader:"border-white/10",tableFooter:"bg-white/[0.05] [&_tr>*]:border-white/10",tableFooterBar:"border-white/10 bg-white/[0.05] shadow-none backdrop-blur-md",tableFooterBarAttached:"border-t border-white/10",tableRow:"[&>*]:border-white/10",tableRowInteractive:"cursor-pointer [--base-table-row-hover-bg:hsl(var(--foreground)/0.08)]",tableHeadLabel:"text-foreground",tableLoadingSkeleton:"bg-white/[0.16]",layoutRoot:"border-white/10 bg-white/[0.05] shadow-none backdrop-blur-md",layoutPane:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",layoutPaneMuted:"bg-white/[0.08]",layoutPaneSoft:"bg-white/[0.10] shadow-none backdrop-blur-md",layoutResizeHandle:"text-foreground/65 hover:bg-white/10 active:bg-white/15 focus-visible:bg-white/10",layoutResizeHandleIndicator:"bg-white/45 group-hover/resize:bg-white/75"},dark:{buttonBase:"border-white/15 text-white shadow-lg backdrop-blur",buttonDefault:"bg-black/30 hover:bg-black/[0.45]",buttonPrimary:"border-white/25 bg-white/20 text-white hover:bg-white/25",buttonMuted:"border-white/10 bg-black/20 text-white/70 hover:bg-black/[0.35] hover:text-white",badgeDefault:"border-white/10 bg-white/[0.08] text-white",badgeMuted:"border-white/10 bg-black/20 text-white/70",panelRoot:"border-white/10 bg-slate-950 text-white shadow-none",panelTitle:"text-white",panelDescription:"text-white/65",panelBody:"text-white/85",panelFooter:"border-white/10 bg-white/[0.04]",stateRoot:"border-white/10 bg-slate-950 text-white shadow-none",stateIcon:"bg-white/10 text-white/75",stateTitle:"text-white",stateDescription:"text-white/65",fieldLabel:"text-white",fieldDescription:"text-white/65",fieldMessage:"text-white/65",controlWrapper:"border-white/15 bg-black/30 text-white shadow-lg backdrop-blur focus-within:border-white/35",controlBase:"text-white placeholder:text-white/45",selectChevron:"text-white/65",selectMenu:"border-white/15 bg-slate-950 text-white shadow-2xl",selectOption:"text-white",selectOptionActive:"bg-white/[0.12] text-white",selectOptionSelected:"bg-white/[0.16] text-white",selectPlaceholder:"text-white/45",switchTrack:"border-white/15 bg-black/30 shadow-lg backdrop-blur",switchChecked:"border-white/25 bg-white/25 text-white",switchLabel:"text-white",switchDescription:"text-white/65",checkboxBox:"border-white/15 bg-black/30 text-white shadow-lg backdrop-blur",checkboxBoxChecked:"border-white/25 bg-white/25 text-white",checkboxLabel:"text-white",checkboxDescription:"text-white/65",radioOption:"border-white/10 bg-white/[0.06] text-white hover:bg-white/[0.08]",radioMarker:"border-white/15 bg-black/30 text-white shadow-lg backdrop-blur",radioMarkerChecked:"border-white/25 bg-white/25",radioIndicator:"bg-white",radioLabel:"text-white",radioDescription:"text-white/65",dialogOverlay:"bg-slate-950/75",dialogPanel:"border-white/10 bg-slate-950 text-white shadow-2xl",dialogHeader:"border-white/10",dialogTitle:"text-white",dialogDescription:"text-white/65",dialogBody:"text-white/85",dialogFooter:"border-white/10",dialogClose:"text-white/65 hover:bg-white/[0.08] hover:text-white",dropdownMenu:"border-white/15 bg-slate-950 text-white shadow-2xl",dropdownLabel:"text-white/55",dropdownSeparator:"bg-white/15",dropdownItem:"text-white hover:bg-white/[0.10]",dropdownItemDescription:"text-white/55",dropdownItemShortcut:"text-white/55",tooltipContent:"border-white/15 bg-slate-950 text-white shadow-2xl",noticeDefault:"border-white/10 bg-white/[0.08] text-white",noticeMuted:"border-white/10 bg-black/20 text-white/70",dividerRoot:"border-white/15",dividerLabel:"text-white/55",sectionHeaderEyebrow:"text-white/55",sectionHeaderTitle:"text-white",sectionHeaderDescription:"text-white/65",tabsList:"border-white/10 bg-white/[0.08]",tabsTrigger:"text-white/65 hover:bg-white/[0.12] hover:text-white",tabsTriggerActive:"bg-white/[0.16] text-white shadow-none",tabsPanel:"border-white/10 bg-white/[0.06] text-white",segmentedRoot:"border-white/10 bg-white/[0.08]",segmentedItem:"text-white/65 hover:bg-white/[0.12] hover:text-white",segmentedItemActive:"bg-white/[0.16] text-white shadow-none",progressTrack:"bg-white/[0.12]",progressLabel:"text-white",progressValue:"text-white/65",skeletonRoot:"bg-white/[0.14]",avatarRoot:"border-white/15 bg-white/[0.10] text-white",avatarFallback:"bg-white/[0.10] text-white/75",avatarText:"text-white",avatarStatus:"border-slate-950",toolbarRoot:"border-white/10 bg-white/[0.06] text-white",toolbarTitle:"text-white",toolbarDescription:"text-white/65",breadcrumbLink:"text-white/65 hover:text-white",breadcrumbCurrent:"text-white",breadcrumbSeparator:"text-white/45",paginationInfo:"text-white/65",paginationButton:"border-white/10 bg-white/[0.08] text-white hover:bg-white/[0.14]",paginationPage:"bg-white/[0.14] text-white",descriptionListItem:"border-white/10 bg-white/[0.06]",descriptionListTerm:"text-white/55",descriptionListValue:"text-white",accordionItem:"border-white/10 bg-white/[0.06]",accordionTrigger:"text-white hover:bg-white/[0.08]",accordionPanel:"border-white/10 text-white/70",tableContainer:"border-foreground/10 bg-background text-foreground shadow-none [scrollbar-gutter:stable] [--base-table-sticky-header-bg:hsl(var(--background)/0.98)] [--base-table-header-separator:hsl(var(--foreground)/0.16)]",tableRoot:"text-white",tableHeader:"border-white/10",tableFooter:"bg-white/[0.05] [&_tr>*]:border-white/10",tableFooterBar:"border-white/10 bg-white/[0.05] text-white/65",tableFooterBarAttached:"border-t border-white/10",tableRow:"[&>*]:border-white/10",tableRowInteractive:"cursor-pointer [--base-table-row-hover-bg:hsl(var(--foreground)/0.06)]",tableHead:"text-white/65",tableHeadLabel:"text-white",tableHeadDescription:"text-white/55",tableHeadMeta:"text-white/55",tableHeadIcon:"text-white/55",tableHeadSortIcon:"text-white/55",tableHeadDragHandle:"text-white/55 hover:bg-white/[0.08]",tableHeadResizeHandle:"after:bg-white/20 hover:after:bg-white/60",tableCell:"text-white/85",tableEmptyIcon:"bg-white/10 text-white/65",tableEmptyTitle:"text-white",tableEmptyDescription:"text-white/60",menuContent:"border-white/10 bg-slate-950 text-white shadow-2xl",menuLabel:"text-white/55",menuSeparator:"bg-white/10",menuItem:"text-white focus:bg-white/[0.10] focus:text-white data-[highlighted]:bg-white/[0.10] data-[highlighted]:text-white",menuItemDefault:"text-white",menuItemPrimary:"text-primary focus:text-primary data-[highlighted]:text-primary",menuItemSuccess:"text-[hsl(var(--success,142_69%_58%))] focus:text-[hsl(var(--success,142_69%_58%))] data-[highlighted]:text-[hsl(var(--success,142_69%_58%))]",menuItemWarning:"text-[hsl(var(--warning-foreground,53_98%_77%))] focus:text-[hsl(var(--warning-foreground,53_98%_77%))] data-[highlighted]:text-[hsl(var(--warning-foreground,53_98%_77%))]",menuItemDanger:"text-destructive-text focus:text-destructive-text data-[highlighted]:text-destructive-text",menuItemMuted:"text-white/65 focus:text-white data-[highlighted]:text-white",menuItemShortcut:"text-white/45",menuSubTrigger:"text-white focus:bg-white/[0.10] focus:text-white data-[highlighted]:bg-white/[0.10] data-[highlighted]:text-white data-[state=open]:bg-white/[0.12]",menuSubTriggerIcon:"text-white/55",menuSubContent:"border-white/10 bg-slate-950 text-white shadow-2xl",tableLoadingSkeleton:"bg-white/[0.14]",layoutRoot:"border-white/10 bg-slate-950 text-white shadow-none",layoutPane:"border-white/10 bg-slate-950 text-white shadow-none",layoutPaneMuted:"bg-white/[0.06]",layoutPaneSoft:"bg-white/[0.08] shadow-none",layoutResizeHandle:"text-white/65 hover:bg-white/10 active:bg-white/15 focus-visible:bg-white/10",layoutResizeHandleIndicator:"bg-white/45 group-hover/resize:bg-white/75"}},Gl={default:{density:"default",radius:"md",border:"solid",background:"plain"},soft:{density:"default",radius:"lg",border:"subtle",background:"soft"},compact:{density:"compact",radius:"md",border:"subtle",background:"muted"},"tinted-glass":{density:"default",radius:"lg",border:"subtle",background:"glass"},glass:{density:"default",radius:"xl",border:"subtle",background:"glass"},"hard-edge":{density:"compact",radius:"none",border:"strong",background:"plain"}},qg={soft:{buttonBase:"font-medium",panelRoot:"border-border/70",controlWrapper:"font-medium",tabsTrigger:"font-medium",segmentedItem:"font-medium",toolbarRoot:"border-border/70",tableContainer:"border-border/70",tableFooterBar:"border-border/70",tableHeadLabel:"font-semibold",menuItemLabel:"font-medium"},compact:{buttonBase:"text-xs",badgeBase:"text-xs",fieldLabel:"text-xs",controlBase:"text-xs",selectOption:"text-xs",menuItem:"text-xs",menuSubTrigger:"text-xs",noticeBase:"text-xs",sectionHeaderTitle:"text-sm",tabsTrigger:"text-xs",segmentedItem:"text-xs",toolbarTitle:"text-xs",paginationRoot:"text-xs"},"tinted-glass":{buttonPrimary:"border-primary/25 bg-primary/15 text-primary-foreground hover:bg-primary/20",badgePrimary:"border-primary/25 bg-primary/15 text-primary-foreground",noticePrimary:"border-primary/25 bg-primary/15 text-primary-foreground",progressIndicator:"bg-primary",avatarStatus:"border-background"},glass:{panelRoot:"shadow-[0_24px_80px_hsl(var(--foreground)/0.12)]",stateRoot:"shadow-[0_24px_80px_hsl(var(--foreground)/0.12)]",noticeBase:"shadow-[0_18px_60px_hsl(var(--foreground)/0.10)]",tabsPanel:"shadow-[0_18px_60px_hsl(var(--foreground)/0.10)]",toolbarRoot:"shadow-[0_18px_60px_hsl(var(--foreground)/0.10)]",descriptionListItem:"shadow-[0_12px_40px_hsl(var(--foreground)/0.08)]",accordionItem:"shadow-[0_12px_40px_hsl(var(--foreground)/0.08)]"},"hard-edge":{buttonBase:"shadow-none",panelRoot:"shadow-none",stateRoot:"shadow-none",controlWrapper:"shadow-none",selectMenu:"shadow-none",menuContent:"shadow-none",menuSubContent:"shadow-none",noticeBase:"shadow-none",tabsList:"shadow-none",tabsTriggerActive:"shadow-none",tabsPanel:"shadow-none",segmentedRoot:"shadow-none",segmentedItemActive:"shadow-none",toolbarRoot:"shadow-none",descriptionListItem:"shadow-none",accordionItem:"shadow-none"}};function Kg(e){return Gl[e]??Gl.default}a(Kg,"getPresetDefaults");var Xg=Object.keys(ql),Yg=Vl(Xg,v);function Qg(...e){return Object.assign({},...e.filter(Boolean))}a(Qg,"mergeStyles");function xe(e){let t=e?.preset??"default",o=e?.variant??"default",n=Kg(t),r=e?.density??n.density??"default",i=e?.state??"idle",s=e?.radius??n.radius??"md",l=e?.border??n.border??"solid",d=e?.background??n.background??"plain";return {preset:t,variant:o,density:r,state:i,radius:s,border:l,background:d,styles:Qg(Fg,e?.styles),slots:Yg(ql,qg[t],Ug[r],Vg[s],jg[l],Gg[d],e?.slots)}}a(xe,"resolveBaseAppearance");function Vr(e,t="default",o=false){return v(t==="default"&&e.slots.buttonDefault,t==="primary"&&e.slots.buttonPrimary,t==="success"&&e.slots.buttonSuccess,t==="warning"&&e.slots.buttonWarning,t==="danger"&&e.slots.buttonDanger,t==="muted"&&e.slots.buttonMuted,o&&e.slots.buttonActive)}a(Vr,"getBaseButtonToneClassName");function tr(e,t="default"){return v(t==="default"&&e.slots.menuItemDefault,t==="primary"&&e.slots.menuItemPrimary,t==="success"&&e.slots.menuItemSuccess,t==="warning"&&e.slots.menuItemWarning,t==="danger"&&e.slots.menuItemDanger,t==="muted"&&e.slots.menuItemMuted)}a(tr,"getBaseMenuItemToneClassName");function Xl({as:e="article",decoration:t,title:o,description:n,media:r,header:i,footer:s,children:l,interactive:d,selected:c,disabled:u,appearance:m,variant:p,density:g,state:b,className:x,classNames:f,style:y,...k}){let S=xe({...m,variant:p,density:g,state:b}),w=e,C=i!==void 0?H(i):H(o)||H(n),T=r!=null,$=!C&&!T;return jsxRuntime.jsxs(w,{...k,"aria-disabled":u||void 0,"data-variant":S.variant,"data-density":S.density,"data-state":b??(u?"disabled":c?"selected":"idle"),"data-monkeys-component":"panel","data-slot":"root","data-interactive":d||void 0,"data-selected":c||void 0,"data-disabled":u||void 0,className:v(S.slots.panelRoot,d&&!u&&S.slots.panelInteractive,c&&S.slots.panelSelected,u&&S.slots.panelDisabled,f?.root,x),style:{...S.styles.panel,...y},children:[t,T?jsxRuntime.jsx("div",{"data-slot":"media",className:v(S.slots.panelMedia,f?.media),children:r}):null,C?jsxRuntime.jsx("div",{"data-slot":"header",className:v(S.slots.panelHeader,f?.header),style:S.styles.panelHeader,children:i!==void 0?i:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[H(o)?jsxRuntime.jsx("div",{"data-slot":"title",className:v(S.slots.panelTitle,f?.title),children:o}):null,H(n)?jsxRuntime.jsx("div",{"data-slot":"description",className:v(S.slots.panelDescription,f?.description),children:n}):null]})}):null,l!=null?jsxRuntime.jsx("div",{"data-slot":"body",className:v(S.slots.panelBody,$&&S.slots.panelBodyStandalone,f?.body),style:S.styles.panelBody,children:l}):null,s!=null?jsxRuntime.jsx("div",{"data-slot":"footer",className:v(S.slots.panelFooter,f?.footer),style:S.styles.panelFooter,children:s}):null]})}a(Xl,"BasePanel");var Yl=a(e=>e==null?void 0:typeof e=="number"?`${e}px`:e,"cssSize"),Ql=a(e=>e!==void 0&&Number.isFinite(e)&&e>0?e:8,"safeSpeed"),Jg=a(e=>{let[t,o=t]=e.trim().split(/\s*\/\s*|\s+/);return {rx:t,ry:o}},"radiusParts");function bi({mode:e="solid",color:t,colors:o,width:n=1,radius:r,speed:i,direction:s="clockwise",className:l,style:d}){let u=`border-effect-${ye__namespace.useId().replace(/:/g,"")}`,m=ye__namespace.useRef(null),[p,g]=ye__namespace.useState({width:0,height:0,rx:"0px",ry:"0px"});ye__namespace.useEffect(()=>{let T=m.current;if(!T||typeof ResizeObserver>"u")return;let $=a(()=>{let R=getComputedStyle(T).borderTopLeftRadius,W=Jg(R),{rx:B,ry:A}=W;g({width:T.clientWidth,height:T.clientHeight,rx:B,ry:A});},"update");$();let P=new ResizeObserver($);P.observe(T);let E=new MutationObserver($);for(let R=T;R;R=R.parentElement)E.observe(R,{attributes:true});return ()=>{P.disconnect(),E.disconnect();}},[r]);let b=o?.length?o:[t||"hsl(var(--monkeys-color-border, var(--border, var(--input))))"],x=b.length===1?[b[0],b[0]]:b,f=s==="counterclockwise"?"reverse":"normal",y=(p.width||1)/2,k=(p.height||1)/2,S=s==="counterclockwise"?`360 ${y} ${k};0 ${y} ${k}`:`0 ${y} ${k};360 ${y} ${k}`,C={...{"--border-effect-width":Yl(n),"--border-effect-radius":Yl(r)||"inherit","--border-effect-speed":`${Ql(i)}s`,"--border-effect-color":t||"hsl(var(--monkeys-color-border, var(--border, var(--input))))","--border-effect-gradient":`linear-gradient(90deg, ${x.join(", ")})`,"--border-effect-direction":f},...d};return jsxRuntime.jsxs("div",{ref:m,"aria-hidden":"true",className:`monkeys-border-effect monkeys-border-effect-${e}${l?` ${l}`:""}`,style:{...C,pointerEvents:"none"},children:[jsxRuntime.jsx("span",{className:"monkeys-border-effect-ring"}),e==="animated"&&jsxRuntime.jsxs("svg",{"aria-hidden":"true",focusable:"false",className:"monkeys-border-effect-svg",viewBox:`0 0 ${p.width||1} ${p.height||1}`,children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsxs("linearGradient",{id:u,gradientUnits:"userSpaceOnUse",x1:"0",y1:"0",x2:p.width||1,y2:"0",children:[x.map((T,$)=>jsxRuntime.jsx("stop",{offset:`${$/(x.length-1)*100}%`,stopColor:T},$)),jsxRuntime.jsx("animateTransform",{attributeName:"gradientTransform",type:"rotate",values:S,dur:`${Ql(i)}s`,repeatCount:"indefinite"})]})}),jsxRuntime.jsx("rect",{x:"0",y:"0",width:p.width,height:p.height,rx:p.rx,ry:p.ry,fill:"none",stroke:`url(#${u})`,style:{strokeWidth:"calc(var(--border-effect-width) * 2)"}})]})]})}a(bi,"BorderEffect");var ef=a((e,t)=>Object.keys(e??{}).some(o=>o.startsWith("padding")&&e?.[o]!==void 0)||/(?:^|[\s:])!?p[xytrblse]?-(?:\[|[a-z0-9])/.test(t??""),"ownsPadding");function Zl({children:e,className:t,contentClassName:o,chrome:n="panel",borderEffect:r,decoration:i,headerWrap:s=false,title:l,titleIcon:d,action:c,appearance:u,classNames:m,...p}){let{parentDepth:g,level:b,variables:x}=mi(),f=Se(u),y=n==="panel",k=y&&r!=null,S=Ul(p,y),w=ef(f?.styles?.panelBody,[m?.body,o,f?.slots?.panelBody].join(" "));return jsxRuntime.jsx(Wr,{depth:y?b:g,children:jsxRuntime.jsx(Xl,{as:"section",appearance:{...f,slots:{...f?.slots,panelRoot:f?.slots?.panelRoot},styles:{...f?.styles,panelHeader:{...n==="plain"?{padding:0,paddingBlockEnd:"var(--global-spacing-lg, 1rem)"}:{},...f?.styles?.panelHeader},panelBody:{...!w||n==="plain"?{padding:0}:{},...f?.styles?.panelBody}}},classNames:{...m,root:v("min-h-0",y&&"gap-[var(--monkeys-bento-gap)]",y&&f?.radius===void 0&&!f?.preset&&"rounded-[var(--monkeys-bento-radius)]",y&&f?.border===void 0&&!f?.preset&&"border-[length:var(--monkeys-bento-border-width)] border-[color:var(--monkeys-bento-border-color)] [border-style:var(--monkeys-bento-border-style)]",y&&f?.background===void 0&&!f?.preset&&"bg-[var(--monkeys-bento-background)]",y&&!f?.preset&&f?.background===void 0&&"shadow-[shadow:var(--monkeys-bento-shadow)]",y&&!w&&"p-[var(--monkeys-bento-padding)]",!y&&"border-0 bg-transparent shadow-none",f?.slots?.panelRoot,m?.root,t),header:v("flex min-w-0 items-center gap-[var(--monkeys-bento-gap,var(--global-spacing,0.75rem))] border-b border-border p-0 pb-[var(--monkeys-bento-gap)]",n==="plain"&&"border-0 px-0 pt-0 pb-token-lg",m?.header),body:v("flex min-h-0 flex-col gap-[var(--monkeys-bento-gap,var(--global-spacing,0.75rem))] p-0",f?.slots?.panelBody,m?.body,o),footer:v("px-0 pb-0 pt-[var(--monkeys-bento-gap)]",m?.footer)},header:l?jsxRuntime.jsxs("div",{style:{alignItems:f?.styles?.panelHeader?.alignItems},className:v("flex min-w-0 flex-1 items-center justify-between gap-token-md",s&&"flex-wrap"),children:[jsxRuntime.jsxs("div",{className:v("flex min-w-0 flex-1 items-center gap-token-sm",s&&"basis-auto"),children:[d?jsxRuntime.jsx("span",{className:"inline-flex size-8 shrink-0 items-center justify-center rounded-md border border-primary/30 bg-primary/10 text-primary",children:jsxRuntime.jsx(d,{className:"size-4 text-primary",color:"currentColor",stroke:"currentColor"})}):null,jsxRuntime.jsxs("div",{className:"min-w-0",children:[jsxRuntime.jsx("h2",{style:{margin:0},className:"truncate text-base font-semibold text-foreground",children:l}),p.description?jsxRuntime.jsx("div",{className:"mt-1 text-sm text-muted-foreground",children:p.description}):null]})]}),c?jsxRuntime.jsx("div",{className:v("shrink-0",s&&"max-w-full"),children:c}):null]}):void 0,...p,...S,decoration:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[i,k?jsxRuntime.jsx(bi,{...r}):null]}),"data-monkeys-bento-level":y?b:void 0,style:{...y?x:{},...p.style,...k?{borderColor:"transparent"}:{}},children:e})})}a(Zl,"BentoPanel");var nf="com.infmonkeys.css";function hi(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}a(hi,"isRecord");function rf(e){let t=e?.[nf];return hi(t)?t:void 0}a(rf,"readCssExtension");function ut(e){return Number.isInteger(e)?String(e):String(Number(e.toFixed(6)))}a(ut,"formatNumber");function Io(e){return `${ut(e.value)}${e.unit}`}a(Io,"formatDimension");function yi(e){return `${ut(e.value)}${e.unit}`}a(yi,"formatDuration");function ln(e){return e==="none"?e:ut(e)}a(ln,"formatColorComponent");function af(e){return [Number.parseInt(e.slice(1,3),16)/255,Number.parseInt(e.slice(3,5),16)/255,Number.parseInt(e.slice(5,7),16)/255]}a(af,"hexToSrgb");function sf(e){if(e.colorSpace==="srgb"&&e.components.every(t=>typeof t=="number"))return e.components;if(e.hex)return af(e.hex);throw new TypeError(`Web semantic colors in ${e.colorSpace} require a six-digit hex fallback for hsl(var(--token)) consumers.`)}a(sf,"colorSrgbComponents");function lf([e,t,o]){let n=Math.max(e,t,o),r=Math.min(e,t,o),i=(n+r)/2;if(n===r)return [0,0,i*100];let s=n-r,l=i>.5?s/(2-n-r):s/(n+r),d;return n===e?d=(t-o)/s+(t<o?6:0):n===t?d=(o-e)/s+2:d=(e-t)/s+4,[d/6*360,l*100,i*100]}a(lf,"srgbToHsl");function df(e){if(e.colorSpace==="hsl"&&e.components.every(r=>typeof r=="number")){let[r,i,s]=e.components;return `${ut(r)} ${ut(i)}% ${ut(s)}%`}let[t,o,n]=lf(sf(e));return `${ut(t)} ${ut(o)}% ${ut(n)}%`}a(df,"formatHslTriplet");function Gr(e){let t=e.alpha??1;if(e.hex&&t===1)return e.hex;let o=e.components.map(ln).join(" "),n=t===1?"":` / ${ut(t)}`;switch(e.colorSpace){case "srgb":return `rgb(${e.components.map(i=>i==="none"?"none":ut(i*255)).join(" ")}${n})`;case "hsl":return `hsl(${ln(e.components[0])} ${ln(e.components[1])}% ${ln(e.components[2])}%${n})`;case "hwb":return `hwb(${ln(e.components[0])} ${ln(e.components[1])}% ${ln(e.components[2])}%${n})`;case "lab":case "lch":case "oklab":case "oklch":return `${e.colorSpace}(${o}${n})`;default:return `color(${e.colorSpace} ${o}${n})`}}a(Gr,"formatColor");function Jl(e){let t=Array.isArray(e)?e:[e],o=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);return t.map(n=>o.has(n)||/^[a-zA-Z][\w-]*$/.test(n)?n:`"${n.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`).join(", ")}a(Jl,"formatFontFamily");function cf(e){return (Array.isArray(e)?e:[e]).map(o=>{if(!hi(o))throw new TypeError("DTCG shadow values must be objects.");return [Io(o.offsetX),Io(o.offsetY),Io(o.blur),Io(o.spread),Gr(o.color),o.inset===true?"inset":""].filter(Boolean).join(" ")}).join(", ")}a(cf,"formatShadow");function uf(e,t){if(!Array.isArray(e))throw new TypeError("DTCG gradient values must be arrays.");let o=e.map(r=>{if(!hi(r))throw new TypeError("DTCG gradient stops must be objects.");return `${Gr(r.color)} ${ut(Number(r.position)*100)}%`}).join(", "),n=rf(t)?.gradient;return n?.kind==="radial"?`radial-gradient(${o})`:`linear-gradient(${ut(n?.angle??90)}deg, ${o})`}a(uf,"formatGradient");function ed(e){switch(e.type){case "color":return Gr(e.value);case "dimension":return Io(e.value);case "fontFamily":return Jl(e.value);case "fontWeight":case "number":return String(e.value);case "duration":return yi(e.value);case "cubicBezier":return `cubic-bezier(${e.value.map(ut).join(", ")})`;case "strokeStyle":return typeof e.value=="string"?e.value:e.value.dashArray.map(Io).join(" ");case "border":{let t=e.value,o={...e,type:"strokeStyle",value:t.style};return `${Io(t.width)} ${ed(o)} ${Gr(t.color)}`}case "transition":{let t=e.value;return `${yi(t.duration)} cubic-bezier(${t.timingFunction.map(ut).join(", ")}) ${yi(t.delay)}`}case "shadow":return cf(e.value);case "gradient":return uf(e.value,e.extensions);case "typography":{let t=e.value;return `${t.fontWeight} ${Io(t.fontSize)}/${ut(t.lineHeight)} ${Jl(t.fontFamily)}`}}}a(ed,"formatTokenValue");function td(e,t){let o=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase();return `--${t}-${o}`}a(td,"toCssVariableName");function pf(e){if(!/^[a-zA-Z][a-zA-Z0-9-]*$/.test(e))throw new TypeError("Theme token variablePrefix must start with a letter and contain only letters, numbers, or hyphens.")}a(pf,"assertCssVariablePrefix");function od(e,t,o){let n=`${t}.${o}`;return e.has(n)?n:e.has(t)?t:void 0}a(od,"selectModePath");var mf={"semantic.color.background":"--background","semantic.color.foreground":"--foreground","semantic.color.card":"--card","semantic.color.card-foreground":"--card-foreground","semantic.color.popover":"--popover","semantic.color.popover-foreground":"--popover-foreground","semantic.color.primary":"--primary","semantic.color.primary-foreground":"--primary-foreground","semantic.color.secondary":"--secondary","semantic.color.secondary-foreground":"--secondary-foreground","semantic.color.muted":"--muted","semantic.color.muted-foreground":"--muted-foreground","semantic.color.accent":"--accent","semantic.color.accent-foreground":"--accent-foreground","semantic.color.destructive":"--destructive","semantic.color.destructive-foreground":"--destructive-foreground","semantic.color.success":"--success","semantic.color.success-foreground":"--success-foreground","semantic.color.warning":"--warning","semantic.color.warning-foreground":"--warning-foreground","semantic.color.border":"--border","semantic.color.input":"--input","semantic.color.ring":"--ring","semantic.color.media-surface":"--media-surface","semantic.color.media-foreground":"--media-foreground","semantic.color.media-overlay":"--media-overlay","semantic.color.radar-canvas":"--radar-canvas","semantic.color.radar-panel":"--radar-panel","semantic.color.radar-border":"--radar-border","semantic.color.radar-shell-border":"--radar-shell-border","semantic.color.radar-grid":"--radar-grid","semantic.color.radar-axis":"--radar-axis","semantic.color.radar-series-one":"--radar-series-one","semantic.color.radar-series-two":"--radar-series-two","semantic.color.radar-series-three":"--radar-series-three","semantic.color.radar-series-four":"--radar-series-four"},gf=Object.freeze({...Object.fromEntries(["grid","axis","fillStart","fillEnd","glow","label","value"].map(e=>[`component.chart.radar.${e}`,{variableName:td(`chart.radar.${e}`,"monkeys"),axis:"colorMode",expectedType:"color",format:"css"}])),...Object.fromEntries(Object.entries(mf).map(([e,t])=>[e,{variableName:t,axis:"colorMode",expectedType:"color",format:"hsl"}])),"semantic.color.neocard":{variableName:"--neocard",axis:"colorMode",expectedType:"color",format:"css"},"semantic.radius.base":{variableName:"--radius",axis:"colorMode",expectedType:"dimension",format:"css"},"semantic.spacing.global":{variableName:"--global-spacing",axis:"density",expectedType:"dimension",format:"css"},"semantic.gradient.brand":{variableName:"--monkeys-gradient",axis:"colorMode",expectedType:"gradient",format:"css"},"semantic.font.body":{variableName:"--font-sans",axis:"colorMode",expectedType:"fontFamily",format:"css"}});function nr(e,t){let o=od(new Set(Object.keys(e.cssValues)),t,e.colorMode);return o?e.cssValues[o]:void 0}a(nr,"getThemeTokenCssValue");function dn(e,t={}){let o=runtime.resolveThemeTokens(e),n=o.document,r=t.colorMode??"light",i=t.density??"default",s=t.variablePrefix??"monkeys";pf(s);let l={},d={},c={},u=new Map;for(let[g,b]of o.tokens){l[g]=b.value;let x=ed(b);d[g]=x;let f=td(g,s),y=u.get(f);if(y)throw new TypeError(`Theme token paths ${y} and ${g} both compile to ${f}. Rename one token.`);u.set(f,g),c[f]=x;}let m=new Set(o.tokens.keys());for(let[g,b]of Object.entries(gf)){let x=b.axis==="density"?i:r,f=od(m,g,x);if(!f)continue;let y=o.tokens.get(f);if(!y||y.type!==b.expectedType)throw new TypeError(`${f} must be a ${b.expectedType} token to drive ${b.variableName}.`);c[b.variableName]=b.format==="hsl"?df(y.value):d[f];}let p=Object.entries(c).sort(([g],[b])=>g.localeCompare(b)).map(([g,b])=>`${g}:${b};`).join("");return {contract:n,colorMode:r,density:i,values:Object.freeze(l),cssValues:Object.freeze(d),cssVariables:Object.freeze(c),cssText:p}}a(dn,"compileThemeTokens");var ff={menu:"monkeys-overlay-surface--menu bg-menu-surface text-popover-foreground",dialog:"monkeys-overlay-surface--dialog bg-dialog-surface text-foreground"};function go(e,t={}){return ["monkeys-overlay-surface",ff[e],t.rounded===false?void 0:"monkeys-overlay-surface--rounded"].filter(Boolean).join(" ")}a(go,"getOverlaySurfaceClassName");var qr=ye.forwardRef(a(function({slotComponent:t,...o},n){return t?jsxRuntime.jsx(t,{...o,ref:n}):jsxRuntime.jsx(button.Button,{...o,ref:n})},"ButtonCore"));var kf=ye.forwardRef(a(function({dir:t,...o},n){let r=directionProvider.useDirection();return jsxRuntime.jsx(directionProvider.DirectionProvider,{direction:t==="ltr"||t==="rtl"?t:r,children:jsxRuntime.jsx(tabs.Tabs.Root,{...o,dir:t,ref:n})})},"TabsRoot")),rr={Root:kf,List:tabs.Tabs.List,Trigger:tabs.Tabs.Tab,Content:tabs.Tabs.Panel};var Sf=ye__namespace.forwardRef(({className:e,style:t,...o},n)=>jsxRuntime.jsx(fo__namespace.Item,{ref:n,className:v("border-b",e),style:{borderColor:"var(--monkeys-component-accordion-item-border-color, hsl(var(--border)))",...t},...o}));Sf.displayName="AccordionItem";var $f=ye__namespace.forwardRef(({className:e,children:t,...o},n)=>jsxRuntime.jsx(fo__namespace.Header,{className:"flex",children:jsxRuntime.jsxs(fo__namespace.Trigger,{ref:n,className:v("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...o,children:[t,jsxRuntime.jsx(lucideReact.ChevronDown,{"aria-hidden":"true",className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));$f.displayName="AccordionTrigger";var Pf=ye__namespace.forwardRef(({className:e,children:t,...o},n)=>jsxRuntime.jsx(fo__namespace.Content,{ref:n,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...o,children:jsxRuntime.jsx("div",{className:v("pb-4 pt-0",e),children:t})}));Pf.displayName="AccordionContent";var Rf=ye__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(Xr__namespace.Root,{ref:o,className:v("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:jsxRuntime.jsx(Xr__namespace.Indicator,{className:"flex items-center justify-center text-current",children:jsxRuntime.jsx(lucideReact.Check,{"aria-hidden":"true",className:"h-4 w-4"})})}));Rf.displayName="Checkbox";var ar=classVarianceAuthority.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_[data-slot=icon]]:text-[inherit] [&_[data-slot=icon]_*]:!text-[inherit] [&_[data-slot=icon]_svg]:!stroke-current [&_[data-slot=icon]_svg_*]:!stroke-current [&_[data-slot=end-icon]]:text-[inherit] [&_[data-slot=end-icon]_*]:!text-[inherit] [&_[data-slot=end-icon]_svg]:!stroke-current [&_[data-slot=end-icon]_svg_*]:!stroke-current [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-control-surface shadow-sm ring-offset-control-surface hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-sm px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),ie=ye__namespace.forwardRef(({className:e,variant:t,size:o,asChild:n=false,unstyled:r=false,...i},s)=>jsxRuntime.jsx(qr,{ref:s,slotComponent:n?reactSlot.Slot:void 0,type:i.type,tabIndex:i.tabIndex,className:r?e:ar({variant:t,size:o,className:e}),...i}));ie.displayName="Button";var Mf=ye__namespace.forwardRef(({className:e,children:t,viewportClassName:o,viewportRef:n,onViewportScroll:r,scrollbar:i=true,scrollbarOrientation:s="vertical",scrollBarDisabled:l=false,type:d,...c},u)=>{let m=Sn();return jsxRuntime.jsxs(to__namespace.Root,{ref:u,type:d??(m>0?"auto":void 0),className:v("group relative overflow-hidden",l&&"no-scrollbar",e),...c,children:[jsxRuntime.jsx(to__namespace.Viewport,{ref:n,onScroll:r,className:v("h-full w-full rounded-[inherit]",o),children:t}),i?jsxRuntime.jsx(sd,{orientation:s,className:v(l&&"size-0 p-0")}):null,jsxRuntime.jsx(to__namespace.Corner,{})]})});Mf.displayName="ScrollArea";var sd=ye__namespace.forwardRef(({className:e,orientation:t="vertical",...o},n)=>jsxRuntime.jsx(to__namespace.ScrollAreaScrollbar,{ref:n,"data-monkeys-scrollbar":"",orientation:t,className:v("flex touch-none select-none opacity-0 transition-opacity group-hover:opacity-100 group-focus-within:opacity-100 data-[state=visible]:opacity-100",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-px",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-px",e),...o,children:jsxRuntime.jsx(to__namespace.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));sd.displayName="ScrollBar";var Af=ye__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(Yr__namespace.Root,{ref:o,className:v("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,children:jsxRuntime.jsx(Yr__namespace.Thumb,{className:"pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"})}));Af.displayName="Switch";var ad=Symbol.for("@inf-monkeys-tech/monkeys-design/tabs-adapter@1"),id=globalThis,ld=id[ad]??(id[ad]=ye__namespace.createContext(null));function xi(){let e=ye__namespace.useContext(ld);if(!e)throw new Error("Tabs slots must be used within Tabs.");return e}a(xi,"useTabsAdapter");function ki(e,t){return e?ye__namespace.Children.only(t):void 0}a(ki,"tabsSlot");var Bf=ye__namespace.forwardRef(({variant:e="default",orientation:t="horizontal",activationMode:o="automatic",value:n,defaultValue:r,onValueChange:i,dir:s,asChild:l,children:d,...c},u)=>{let m=ge(),[p,g]=ye__namespace.useState(r??""),b=n??p,x=ye__namespace.useId(),f=ye__namespace.useMemo(()=>({activationMode:o,orientation:t,baseId:x,value:b}),[o,t,x,b]);return jsxRuntime.jsx(ld.Provider,{value:f,children:jsxRuntime.jsx(rr.Root,{ref:u,dir:s??m.dir,orientation:t,"data-variant":e,value:b,onValueChange:y=>{typeof y!="string"||y===b||(n===void 0&&g(y),i?.(y));},render:ki(l,d),...c,children:l?void 0:d})})});Bf.displayName="Tabs";var Nf=ye__namespace.forwardRef(({className:e,gap:t,style:o,loop:n,asChild:r,children:i,onKeyDown:s,...l},d)=>{let{activationMode:c,orientation:u}=xi();return jsxRuntime.jsx(rr.List,{ref:d,"aria-orientation":u,activateOnFocus:c==="automatic",loopFocus:n,onKeyDown:m=>{s?.(m),m.defaultPrevented&&m.preventBaseUIHandler();},render:ki(r,i),className:v("inline-flex h-10 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),style:{gap:t,...o},...l,children:r?void 0:i})});Nf.displayName="TabsList";var Ef=ye__namespace.forwardRef(({className:e,disabled:t,asChild:o,children:n,value:r,...i},s)=>{let l=xi(),d=ki(o,n),c=!d||typeof d.type!="string"||d.type==="button";return jsxRuntime.jsx(rr.Trigger,{ref:s,value:r,id:`${l.baseId}-trigger-${r}`,"aria-controls":`${l.baseId}-content-${r}`,"data-state":l.value===r?"active":"inactive","data-disabled":t?"":void 0,nativeButton:c,disabled:!c&&t,render:u=>jsxRuntime.jsx(o?reactSlot.Slot:"button",{...u,disabled:c&&t?true:void 0,children:n}),className:v("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...i})});Ef.displayName="TabsTrigger";var If=ye__namespace.forwardRef(({className:e,value:t,forceMount:o,hidden:n,asChild:r,children:i,...s},l)=>{let d=Sn(),c=xi();return jsxRuntime.jsx(rr.Content,{ref:l,value:t,keepMounted:true,id:`${c.baseId}-content-${t}`,"aria-labelledby":`${c.baseId}-trigger-${t}`,"data-state":c.value===t?"active":"inactive",tabIndex:0,render:(u,m)=>jsxRuntime.jsx(r?reactSlot.Slot:"div",{...u,inert:void 0,hidden:n??(!o&&m.hidden),children:o||!m.hidden?i:null}),className:v("mt-2 ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",d>0&&"gap-[var(--monkeys-bento-gap)]",e),...s})});If.displayName="TabsContent";var Df=ye__namespace.forwardRef(({className:e,sideOffset:t=4,...o},n)=>{let r=ge();return jsxRuntime.jsx(cn__namespace.Portal,{children:jsxRuntime.jsx(cn__namespace.Content,{...r,...o,ref:n,sideOffset:t,"data-monkeys-component":"tooltip","data-slot":"content","data-surface":"menu",className:v("z-50 overflow-hidden border px-3 py-1.5 text-xs animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",go("menu"),e)})})});Df.displayName="TooltipContent";var bo=ye__namespace.forwardRef(({className:e,appearance:t="standard",unstyled:o=false,type:n,...r},i)=>jsxRuntime.jsx("input",{ref:i,type:n,className:o?e:v("flex w-full border border-input bg-control-surface px-3 text-foreground ring-offset-control-surface transition-[border-color,background-color,color,box-shadow] file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t==="compact"?"h-9 rounded-md py-1 text-sm shadow-sm":"h-10 rounded-md py-2 text-sm shadow-sm",t==="shadow"&&"rounded-lg shadow-sm shadow-black/[0.02] dark:border-white/10 dark:bg-white/[0.04] dark:shadow-none",e),...r}));bo.displayName="Input";var Lf=ye__namespace.forwardRef(({className:e,appearance:t="standard",unstyled:o=false,...n},r)=>jsxRuntime.jsx("textarea",{ref:r,className:o?e:v("flex w-full border border-input bg-control-surface px-3 py-2 text-foreground ring-offset-control-surface placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t==="compact"?"min-h-[60px] rounded-md text-sm shadow-sm":"min-h-[80px] rounded-md text-sm",t==="shadow"&&"rounded-lg shadow-sm shadow-black/[0.02] dark:border-white/10 dark:bg-white/[0.04] dark:shadow-none",e),...n}));Lf.displayName="Textarea";var zf=ye__namespace.forwardRef((e,t)=>jsxRuntime.jsx("select",{ref:t,...e}));zf.displayName="NativeSelect";var Of=ye__namespace.forwardRef((e,t)=>jsxRuntime.jsx("option",{ref:t,...e}));Of.displayName="NativeOption";var ud=Do__namespace.Root;var pd=Do__namespace.Trigger,wi=ye__namespace.forwardRef(({className:e,align:t="center",sideOffset:o=4,...n},r)=>{let i=ge();return jsxRuntime.jsx(Do__namespace.Content,{...i,...n,ref:r,align:t,sideOffset:o,"data-monkeys-component":"hover-card","data-slot":"content","data-surface":"menu",className:v("z-50 w-64 origin-[var(--radix-hover-card-content-transform-origin)] border p-4 outline-hidden 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",go("menu"),e)})});wi.displayName=Do__namespace.Content.displayName;var md=Symbol.for("@inf-monkeys-tech/monkeys-design/dialog-dock@1"),gd=globalThis,_f=gd[md]??(gd[md]=ye__namespace.createContext(null)),Pt=a(()=>ye__namespace.useContext(_f),"useDialogDock");var Ci=ye__namespace.forwardRef(({children:e,className:t,style:o,closeLabel:n="Close",showCloseButton:r=true,onInteractOutside:i,...s},l)=>{let d=Pt(),c=ye__namespace.useId(),u=ye__namespace.useRef(null),m=ye__namespace.useRef(false);return ye__namespace.useEffect(()=>{m.current&&!d?.collapsed&&d?.activeId===c&&u.current?.focus(),m.current=!!d?.collapsed;},[d?.collapsed,d?.activeId,c]),ye__namespace.useEffect(()=>d?.register(c),[d?.register,c]),d?.container?jsxRuntime.jsx(je__namespace.Portal,{container:d.container,children:jsxRuntime.jsx("div",{style:{display:"contents"},children:jsxRuntime.jsx(mo,{children:jsxRuntime.jsx(Zl,{className:"monkeys-dialog-dock-panel overflow-auto",contentClassName:"shrink-0",style:{display:d.activeId===c?void 0:"none"},children:jsxRuntime.jsxs(je__namespace.Content,{...s,ref:l,"data-monkeys-dialog-content":true,"data-presentation":"docked","data-title-visible":d.showTitle,"data-collapsible":d.collapsible,className:v("monkeys-dialog-dock-content",t),style:o,onInteractOutside:p=>{i?.(p),p.preventDefault();},children:[e,d.collapsible&&jsxRuntime.jsx("button",{ref:u,type:"button",className:"monkeys-dialog-dock-collapse","aria-label":d.collapseLabel,title:d.collapseLabel,"aria-expanded":!d.collapsed,onClick:()=>d.setCollapsed(true),children:jsxRuntime.jsx(lucideReact.PanelRightClose,{"aria-hidden":"true",className:"size-4"})}),r&&jsxRuntime.jsxs(je__namespace.Close,{className:"monkeys-dialog-dock-close","aria-label":typeof n=="string"?n:void 0,children:[jsxRuntime.jsx(lucideReact.X,{"aria-hidden":"true",className:"size-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:n})]})]})})})})}):null});Ci.displayName="DockedDialogContent";var bd=Symbol.for("@inf-monkeys-tech/monkeys-design/dialog-open@1"),yd=globalThis,hd=yd[bd]??(yd[bd]=ye__namespace.createContext(false));function Ti({open:e,defaultOpen:t,onOpenChange:o,modal:n,...r}){let i=Pt(),[s,l]=ye__namespace.useState(t??false),d=e??s;return jsxRuntime.jsx(hd.Provider,{value:d,children:jsxRuntime.jsx(je__namespace.Root,{...r,open:d,modal:i?false:n,onOpenChange:c=>{l(c),o?.(c);}})})}a(Ti,"Dialog");var Vf=je__namespace.Portal;var vd=ye__namespace.forwardRef(({className:e,...t},o)=>{let n=ge();return jsxRuntime.jsx(je__namespace.Overlay,{...n,...t,ref:o,className:v("theme-overlay-backdrop fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),"data-monkeys-component":"dialog","data-slot":"overlay","data-monkeys-overlay":true})});vd.displayName="DialogOverlay";var xd=ye__namespace.forwardRef(({className:e,...t},o)=>{let n=ge();return jsxRuntime.jsx(je__namespace.Content,{...n,...t,ref:o,className:e,"data-monkeys-component":"dialog","data-slot":"content","data-surface":"dialog","data-monkeys-dialog-content":true})});xd.displayName="DialogSurfaceContent";var Rn=ye__namespace.forwardRef(({className:e,children:t,showCloseButton:o=true,closeLabel:n="Close",overlayClassName:r,overlayStyle:i,...s},l)=>{let d=Pt(),c=ye__namespace.useContext(hd);return d?c?jsxRuntime.jsx(Ci,{...s,ref:l,className:e,showCloseButton:o,closeLabel:n,children:t}):null:jsxRuntime.jsxs(Vf,{children:[jsxRuntime.jsx(vd,{className:r,style:i}),jsxRuntime.jsxs(xd,{...s,ref:l,className:v("fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border p-6 duration-200 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",go("dialog"),e),children:[jsxRuntime.jsx(mo,{children:t}),o?jsxRuntime.jsxs(je__namespace.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-dialog-surface transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[jsxRuntime.jsx(lucideReact.X,{"aria-hidden":"true",className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:n})]}):null]})]})});Rn.displayName="DialogContent";var jf=ye__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(Rn,{ref:o,className:v("duration-0 data-[state=open]:animate-none data-[state=closed]:animate-none",e),...t}));jf.displayName="DialogContentNoAnimation";var Gf=a(({className:e,...t})=>jsxRuntime.jsx("div",{className:v(Pt()?.showTitle===false?"contents":"flex flex-col space-y-1.5 text-center sm:text-left",e),...t}),"DialogHeader");Gf.displayName="DialogHeader";var qf=a(({className:e,...t})=>jsxRuntime.jsx("div",{className:v("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t}),"DialogFooter");qf.displayName="DialogFooter";var Jr=ye__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(je__namespace.Title,{ref:o,className:v("text-lg font-semibold leading-none tracking-tight",e,Pt()?.showTitle===false&&"sr-only"),...t}));Jr.displayName="DialogTitle";var Kf=ye__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(je__namespace.Description,{ref:o,className:v("text-sm text-muted-foreground",e),...t}));Kf.displayName="DialogDescription";ye__namespace.forwardRef((e,t)=>{let o=Pt()?je__namespace.Trigger:Je__namespace.Trigger;return jsxRuntime.jsx(o,{...e,ref:t})});var Xf=Je__namespace.Portal,kd=ye__namespace.forwardRef(({className:e,style:t,...o},n)=>{let r=ge();return jsxRuntime.jsx(Je__namespace.Overlay,{...r,...o,ref:n,className:v("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),"data-monkeys-component":"alert-dialog","data-slot":"overlay","data-monkeys-overlay":true,style:{pointerEvents:"auto",...t}})});kd.displayName="AlertDialogOverlay";var Yf=ye__namespace.forwardRef(({className:e,style:t,children:o,...n},r)=>{let i=ge();return Pt()?jsxRuntime.jsx(Rn,{...n,...i,ref:r,role:"alertdialog",showCloseButton:false,className:e,style:t,children:o}):jsxRuntime.jsxs(Xf,{children:[jsxRuntime.jsx(kd,{}),jsxRuntime.jsx(Je__namespace.Content,{...i,...n,ref:r,className:v("fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border p-6 duration-200 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",go("dialog"),e),"data-monkeys-component":"alert-dialog","data-slot":"content","data-surface":"dialog","data-monkeys-dialog-content":true,style:{pointerEvents:"auto",...t},children:jsxRuntime.jsx(mo,{children:o})})]})});Yf.displayName="AlertDialogContent";var Qf=a(({className:e,...t})=>jsxRuntime.jsx("div",{className:v("flex flex-col space-y-2 text-center sm:text-left",e),...t}),"AlertDialogHeader"),Zf=a(({className:e,...t})=>jsxRuntime.jsx("div",{className:v("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t}),"AlertDialogFooter"),Jf=ye__namespace.forwardRef(({className:e,...t},o)=>{let n=Pt()?je__namespace.Title:Je__namespace.Title;return jsxRuntime.jsx(n,{ref:o,className:v("text-lg font-semibold",e,Pt()?.showTitle===false&&"sr-only"),...t})}),eb=ye__namespace.forwardRef(({className:e,...t},o)=>{let n=Pt()?je__namespace.Description:Je__namespace.Description;return jsxRuntime.jsx(n,{ref:o,className:v("text-sm text-muted-foreground",e),...t})}),tb=ye__namespace.forwardRef(({className:e,...t},o)=>{let n=Pt()?je__namespace.Close:Je__namespace.Action;return jsxRuntime.jsx(n,{ref:o,className:v(ar(),e),...t})}),ob=ye__namespace.forwardRef(({className:e,...t},o)=>{let n=Pt()?je__namespace.Close:Je__namespace.Action;return jsxRuntime.jsx(n,{ref:o,className:v(ar({variant:"destructive"}),e),...t})}),nb=ye__namespace.forwardRef(({className:e,...t},o)=>{let n=Pt()?je__namespace.Close:Je__namespace.Cancel;return jsxRuntime.jsx(n,{ref:o,className:v(ar({variant:"outline"}),"mt-2 sm:mt-0",e),...t})});Qf.displayName="AlertDialogHeader";Zf.displayName="AlertDialogFooter";Jf.displayName="AlertDialogTitle";eb.displayName="AlertDialogDescription";tb.displayName="AlertDialogAction";ob.displayName="AlertDialogDangerAction";nb.displayName="AlertDialogCancel";var sr=popover.Popover,wd=ye.forwardRef(a(function({portal:t,positioner:o,...n},r){return jsxRuntime.jsx(popover.Popover.Portal,{...t,children:jsxRuntime.jsx(popover.Popover.Positioner,{...o,children:jsxRuntime.jsx(popover.Popover.Popup,{...n,ref:r})})})},"PopoverSurface")),ab='[data-monkeys-dialog-content][data-state="open"], [data-slot="dialog-content"][data-open], [data-slot="dialog-content"][data-state="open"]';function ta(e){return e?.closest(ab)??void 0}a(ta,"getOpenPopoverDialog");var Cd=Symbol.for("@inf-monkeys-tech/monkeys-design/popover-adapter@1"),Td=globalThis,$d=Td[Cd]??(Td[Cd]=ye__namespace.createContext(null));function Mi(){let e=ye__namespace.useContext($d);if(!e)throw new Error("Popover parts must be used within Popover.");return e}a(Mi,"useAdapter");function Pd({open:e,defaultOpen:t,onOpenChange:o,modal:n=false,children:r}){let[i,s]=ye__namespace.useState(t??false),[l,d]=ye__namespace.useState(null),[c,u]=ye__namespace.useState(null),m=ye__namespace.useRef(void 0),p=ye__namespace.useRef(false),g=e??i,b=ye__namespace.useCallback(f=>{let y="button"in f&&(f.button===2||f.button===0&&f.ctrlKey);p.current=!n||y,s(false),o?.(false);},[n,o]),x=ye__namespace.useMemo(()=>({open:g,modal:n,anchor:l,trigger:c,setAnchor:d,setTrigger:u,escapeHandler:m,dismissOutside:b,outsideInteraction:p}),[g,n,l,c,b]);return jsxRuntime.jsx($d.Provider,{value:x,children:jsxRuntime.jsx(sr.Root,{open:g,modal:n,onOpenChange:(f,y)=>{if(y.reason==="outside-press"||y.reason==="focus-out"){y.cancel();return}if(y.reason==="escape-key"&&(m.current?.(y.event),y.event.defaultPrevented)){y.cancel();return}f&&y.trigger instanceof HTMLElement&&u(y.trigger),p.current=false,s(f),o?.(f);},children:r})})}a(Pd,"Popover");function Ai(e,t){return e?ye__namespace.Children.only(t):void 0}a(Ai,"slotElement");function Rd(e){return !e||typeof e.type!="string"||e.type==="button"}a(Rd,"isNativeButton");var Md=ye__namespace.forwardRef(a(function({asChild:t,children:o,onClick:n,...r},i){let{open:s,setTrigger:l}=Mi(),d=reactComposeRefs.useComposedRefs(i,l),c=Ai(t,o);return jsxRuntime.jsx(sr.Trigger,{ref:d,"data-state":s?"open":"closed",render:c,nativeButton:Rd(c),onClick:u=>{n?.(u),u.defaultPrevented&&u.preventBaseUIHandler();},...r,children:t?void 0:o})},"PopoverTrigger"));ye__namespace.forwardRef(a(function({asChild:t,virtualRef:o,...n},r){let{setAnchor:i}=Mi(),s=reactComposeRefs.useComposedRefs(r,i);return ye__namespace.useEffect(()=>{if(o)return i(()=>()=>o.current),()=>i(null)},[i,o]),o?null:jsxRuntime.jsx(t?reactSlot.Slot:"div",{...n,ref:s})},"PopoverAnchor"));ye__namespace.forwardRef(a(function({asChild:t,children:o,onClick:n,...r},i){let s=Ai(t,o);return jsxRuntime.jsx(sr.Close,{ref:i,render:s,nativeButton:Rd(s),onClick:l=>{n?.(l),l.defaultPrevented&&l.preventBaseUIHandler();},...r,children:t?void 0:o})},"PopoverClose"));function Ad(e){if(e)return "closest"in e?e:e.contextElement}a(Ad,"anchorElement");function db(e,t){let[o,n]=ye__namespace.useState();return ye__namespace.useEffect(()=>{if(!t||!e)return;let r,i,s=a(()=>{let l=typeof e=="function"?e():e,d=l?.getBoundingClientRect();d&&(!i||d.x!==i.x||d.y!==i.y||d.width!==i.width||d.height!==i.height)&&(i=d,n({source:e,anchor:{contextElement:Ad(l),getBoundingClientRect:a(()=>d,"getBoundingClientRect")}})),r=requestAnimationFrame(s);},"update");return r=requestAnimationFrame(s),()=>cancelAnimationFrame(r)},[e,t]),t&&o?.source===e?o.anchor:e}a(db,"useMovingAnchor");function Sd(e,t,o){if(!e)return true;let n=new Event(`focusScope.autoFocusOn${o}`,{cancelable:true});return Object.defineProperty(n,"target",{value:t}),e(n),!n.defaultPrevented}a(Sd,"allowsAutofocus");var cb={"--radix-popover-content-transform-origin":"var(--transform-origin)","--radix-popover-content-available-width":"var(--available-width)","--radix-popover-content-available-height":"var(--available-height)","--radix-popover-trigger-width":"var(--anchor-width)","--radix-popover-trigger-height":"var(--anchor-height)"},Bd=ye__namespace.forwardRef(a(function({align:t="center",alignOffset:o,side:n="bottom",sideOffset:r=4,arrowPadding:i=0,avoidCollisions:s=true,collisionBoundary:l,collisionPadding:d=0,sticky:c="partial",hideWhenDetached:u,updatePositionStrategy:m="optimized",container:p,portalForceMount:g,forceMount:b,asChild:x,unstyled:f=false,className:y,style:k,children:S,onOpenAutoFocus:w,onCloseAutoFocus:C,onEscapeKeyDown:T,onPointerDownOutside:$,onFocusOutside:P,onInteractOutside:E,...R},W){let{open:B,modal:A,anchor:L,trigger:I,escapeHandler:K,dismissOutside:q,outsideInteraction:_}=Mi(),Y=ge(),[M,z]=ye__namespace.useState(null),Q=reactComposeRefs.useComposedRefs(W,z),ce=ye__namespace.useRef(null),se=ye__namespace.useRef(false),V=typeof L=="function"?L():L,J=Ad(V)??I,O=J?.ownerDocument??(typeof document>"u"?void 0:document),F=O?.activeElement,oe=ta(J)??ta(F)??Array.from(O?.querySelectorAll('[data-monkeys-dialog-content][data-state="open"]')??[]).at(-1),ae=p??oe,pe=ta(ae)?.matches('[data-state="open"]'),Ce=db(L??(m==="always"?I:null),B&&m==="always");ye__namespace.useEffect(()=>(K.current=T,()=>{K.current=void 0;}),[K,T]),ye__namespace.useEffect(()=>{if(M&&ce.current){let te=M.ownerDocument.defaultView?.getComputedStyle(M).zIndex;ce.current.style.zIndex=te??"";}},[M,y,k?.zIndex]);let Z=Array.isArray(l)?l.filter(te=>te!==null):l,Re=Ai(x,S),Ge=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[B&&pe&&jsxRuntime.jsx(reactDismissableLayer.DismissableLayer,{hidden:true,"aria-hidden":"true"}),A&&jsxRuntime.jsx(sr.Close,{hidden:true,tabIndex:-1,"aria-hidden":"true"})]}),gt=jsxRuntime.jsx(wd,{...Y,...R,ref:Q,portal:{container:ae,keepMounted:g||b},positioner:{ref:ce,anchor:Ce??void 0,positionMethod:"fixed",align:t,alignOffset:o,side:n,sideOffset:r,arrowPadding:i,collisionPadding:d,collisionBoundary:Z??void 0,sticky:c==="always",collisionAvoidance:s?{side:"flip",align:"shift",fallbackAxisSide:"none"}:{side:"none",align:"none",fallbackAxisSide:"none"},style:a(({anchorHidden:te})=>u&&te?{visibility:"hidden",pointerEvents:"none"}:void 0,"style")},"data-monkeys-component":"popover","data-slot":"content","data-surface":"menu","data-state":B?"open":"closed",initialFocus:w?()=>Sd(w,M,"Mount"):void 0,finalFocus:()=>(Sd(C,M,"Unmount")&&!_.current&&I&&queueMicrotask(()=>I.focus({preventScroll:true})),_.current=false,se.current=false,false),render:Re?ye__namespace.cloneElement(Re,void 0,jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[Re.props.children,Ge]})):void 0,className:f?y:v("z-50 w-72 border p-4 outline-hidden",go("menu"),"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",y),style:{...cb,...!f&&{pointerEvents:"auto"},...k},children:Re?void 0:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[S,Ge]})});return jsxRuntime.jsx(radixPopoverDismissableLayer.DismissableLayer,{asChild:true,deferPointerDownOutside:true,onPointerDownOutside:te=>{B&&$?.(te);},onFocusOutside:te=>{!B||te.target?.hasAttribute("data-base-ui-focus-guard")||(P?.(te),A&&te.preventDefault());},onInteractOutside:te=>{if(!B||te.target?.hasAttribute("data-base-ui-focus-guard")||(E?.(te),te.defaultPrevented))return;let{originalEvent:De}=te.detail;!A&&(De.type==="pointerdown"&&(se.current=true),I?.contains(te.target)||De.type==="focusin"&&se.current)||q(De);},children:gt})},"PopoverContent"));var Nd=["pulse","shimmer","shimmer-soft","shimmer-diagonal","shimmer-vertical","drift","outline","none"];function Dd(e,t=false){if(!(e===void 0||Nd.includes(e))&&!(t&&(e==="shimmer-shared"||e==="shimmer-stagger")))throw new TypeError(`Skeleton animation must be ${Nd.join(", ")}${t?", shimmer-shared, or shimmer-stagger":""}.`)}a(Dd,"validateSkeletonAnimation");var Ni=ye.createContext(null),Ei=ye.createContext(void 0);function Ii(e){delete e.dataset.skeletonReady;for(let t of ["width","offset","delay"])e.style.removeProperty(`--monkeys-skeleton-${t}`);}a(Ii,"clearGeometry");function pb(e,t,o,n){let r=ye.useMemo(()=>({nodes:new Map,update:a(()=>{},"update")}),[]);return ye.useEffect(()=>{if(!o||t||e!=="shimmer-shared"&&e!=="shimmer-stagger")return;let i=window.matchMedia("(prefers-reduced-motion: reduce)"),s,l,d=false,c=new Set,u=a(()=>{if(l=void 0,!d)return;let b=[...r.nodes.keys()].filter(C=>C.isConnected);if(b.sort((C,T)=>C.compareDocumentPosition(T)&2?1:-1),e==="shimmer-stagger"){b.forEach((C,T)=>{let $=r.nodes.get(C)?.item??T;C.style.setProperty("--monkeys-skeleton-delay",`${Math.min($*80,400)}ms`);});return}let x=n?.current??b[0]?.parentElement;for(let C of b)for(;x&&!x.contains(C);)x=x.parentElement;let f=new Set(b);for(let C of b)for(let T=C.parentElement;T&&(f.add(T),T!==x);T=T.parentElement);x&&f.add(x);for(let C of c)f.has(C)||(s?.unobserve(C),c.delete(C));for(let C of f)c.has(C)||(s?.observe(C),c.add(C));let y=b.map(C=>C.getBoundingClientRect()),k=b.map((C,T)=>{let $=getComputedStyle(C),P=$.boxSizing==="border-box"?0:parseFloat($.paddingLeft)+parseFloat($.paddingRight)+parseFloat($.borderLeftWidth)+parseFloat($.borderRightWidth),E=parseFloat($.width)+P,R=E?y[T].width/E:1;return Math.abs(R-1)<1e-4?1:R}),S=Math.min(...y.map(C=>C.left)),w=Math.max(...y.map(C=>C.right));b.forEach((C,T)=>{let $=y[T];if(!$.width||!$.height){Ii(C);return}let P=k[T];C.style.setProperty("--monkeys-skeleton-width",`${(w-S)/P}px`),C.style.setProperty("--monkeys-skeleton-offset",`${(S-$.left)/P}px`),C.dataset.skeletonReady||(C.style.setProperty("--monkeys-skeleton-delay",`${-(performance.now()%2600)}ms`),C.dataset.skeletonReady="true");});},"measure"),m=a(()=>{d&&l===void 0&&(l=window.requestAnimationFrame(u));},"schedule"),p=a(()=>{d=false,s?.disconnect(),s=void 0,c.clear(),l!==void 0&&window.cancelAnimationFrame(l),l=void 0,window.removeEventListener("resize",m),window.removeEventListener("scroll",m,true),r.nodes.forEach((b,x)=>Ii(x));},"stop"),g=a(()=>{p(),!(i.matches||e==="shimmer-shared"&&typeof ResizeObserver>"u")&&(d=true,e==="shimmer-shared"&&(s=new ResizeObserver(m),window.addEventListener("resize",m),window.addEventListener("scroll",m,{capture:true,passive:true})),m());},"start");return r.update=m,g(),i.addEventListener("change",g),()=>{p(),i.removeEventListener("change",g),r.update=()=>{};}},[e,t,o,r,n]),ye.useEffect(()=>{r.update();}),r}a(pb,"useGroupRegistry");function Ld({animation:e,animated:t,children:o,independent:n=false,containerRef:r}){if(Dd(e,true),t!==void 0&&typeof t!="boolean")throw new TypeError("SkeletonGroup animated must be a boolean.");let i=ye.useContext(Ni),s=ye.useContext(Ei),l=n||e!==void 0||!i,d=e??i?.animation??"pulse",c=!!i?.disabled||t===false||d==="none",u=pb(d,c,l,r),m=ye.useMemo(()=>({animation:d,disabled:c,registry:l?u:i.registry}),[d,c,l,u,i]),p=jsxRuntime.jsx(Ni.Provider,{value:m,children:o});return jsxRuntime.jsx(Ei.Provider,{value:l?void 0:s,children:p})}a(Ld,"SkeletonScope");function mb(e,t){return ye.useMemo(()=>{let o;return n=>{if(e(n),typeof t=="function"){if(o)o(),o=void 0;else if(n===null){t(null);return}if(n!==null){let r=t(n);typeof r=="function"&&(o=r);}}else t&&(t.current=n);}},[e,t])}a(mb,"useSkeletonRef");function zd(e,t=true,o){Dd(e);let n=ye.useContext(Ni),r=ye.useContext(Ei),i=!t||n?.disabled?"none":e??n?.animation??"pulse",[s,l]=ye.useState(null),d=mb(l,o),c=e===void 0&&(i==="shimmer-shared"||i==="shimmer-stagger")?n?.registry:void 0;return ye.useEffect(()=>{if(!(!s||!c))return c.nodes.set(s,{item:r}),c.update(),()=>{c.nodes.delete(s),Ii(s),c.update();}},[s,c,r,i]),{ref:d,mode:i,style:i==="shimmer-stagger"&&r!==void 0?{"--monkeys-skeleton-delay":`${Math.min(r*80,400)}ms`}:void 0}}a(zd,"useSkeletonMotion");function Wd({children:e,actions:t}){let o=ye.useRef(false),[n,r]=ye.useState(false),[i,s]=ye.useState(false);return jsxRuntime.jsxs("span",{className:"agent-markdown-image","data-markdown-image":true,children:[t?.open?jsxRuntime.jsx(ie,{unstyled:true,type:"button",className:"agent-markdown-image-open","aria-label":t.labels.open,onClick:l=>{l.preventDefault(),l.stopPropagation(),t.open?.();},children:e}):e,t&&jsxRuntime.jsxs("span",{className:"agent-markdown-image-actions",children:[t.collect&&jsxRuntime.jsx(ie,{type:"button",variant:"outline",size:"icon",title:t.labels.collect,"aria-label":t.labels.collect,onClick:l=>{l.preventDefault(),l.stopPropagation(),t.collect?.();},children:jsxRuntime.jsx(lucideReact.FolderPlus,{"aria-hidden":"true"})}),t.download&&jsxRuntime.jsx(ie,{type:"button",variant:"outline",size:"icon",disabled:n,title:t.labels.download,"aria-label":t.labels.download,onClick:async l=>{if(l.preventDefault(),l.stopPropagation(),!o.current){o.current=true,r(true),s(false);try{await t.download?.();}catch{s(true);}finally{o.current=false,r(false);}}},children:n?jsxRuntime.jsx(lucideReact.LoaderCircle,{"aria-hidden":"true",className:"animate-spin"}):jsxRuntime.jsx(lucideReact.Download,{"aria-hidden":"true"})}),t.edit&&jsxRuntime.jsx(ie,{type:"button",variant:"outline",size:"icon",title:t.labels.edit,"aria-label":t.labels.edit,onClick:l=>{l.preventDefault(),l.stopPropagation(),t.edit?.();},children:jsxRuntime.jsx(lucideReact.SquarePen,{"aria-hidden":"true"})})]}),i&&jsxRuntime.jsx("span",{className:"agent-markdown-image-error",role:"alert",children:t?.labels.failed})]})}a(Wd,"AgentImageCard");var jd=[],aa=ye.createContext({text:"",sources:jd}),Gd=ye.createContext(false),qd=a(e=>/^data:image\/(?:png|jpeg|gif|webp|avif);base64,[A-Za-z0-9+/]+={0,2}$/i.test(e),"embeddedImage"),Cb=a(e=>qd(e)?e:vb.defaultUrlTransform(e),"imageUrl");function Tb(){return e=>{unistUtilVisit.visit(e,"html",(t,o,n)=>{n&&o!==void 0&&/^<br\s*\/?\s*>$/i.test(t.value)&&n.children.splice(o,1,{type:"break",position:t.position});});}}a(Tb,"remarkLineBreaks");var ra=a((e,t,o)=>!/^(?:javascript|vbscript|data):/i.test(t.trim())&&e?.supports(t,o),"owns"),zi=a(e=>typeof e=="string"||typeof e=="number"?String(e):Array.isArray(e)?e.map(zi).join(""):ye.isValidElement(e)?zi(e.props.children):"","textOf"),Sb=a(({src:e,alt:t,title:o})=>{let{resources:n}=ye.useContext(aa),r=ye.useContext(Gd),i=e&&(ra(n,e,"image")?e:Cb(e));return jsxRuntime.jsx(Wd,{actions:i&&!r?n?.imageActions?.({src:i,alt:t,title:o}):void 0,children:i&&ra(n,i,"image")?n.image({src:i,alt:t,title:o}):jsxRuntime.jsx("img",{src:i||void 0,alt:t,title:o})})},"MarkdownImage"),$b=a(({children:e,node:t})=>{let{text:o}=ye.useContext(aa),n=t?.position?o.slice(t.position.start.offset,t.position.end.offset):void 0,r=typeof e=="string"&&n?.replace(/\s/g,"")===e.replace(/\s/g,"");return jsxRuntime.jsx("p",{children:r?n:e})},"MarkdownParagraph"),Pb=a(({href:e,children:t,title:o})=>{let{sources:n,resources:r}=ye.useContext(aa),i=typeof t=="string"?t:jsxRuntime.jsx(Gd.Provider,{value:true,children:t});if(e&&ra(r,e,"link"))return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r.link({href:e,children:i,title:o})});let s=Rl(n,e);if(!s)return jsxRuntime.jsx("a",{href:e,target:"_blank",rel:"noreferrer noopener",children:i});let l=zi(t).trim(),d=!l||l.replace(/\/+$/,"")===String(e??"").replace(/\/+$/,"");return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[d?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[i," "]}),jsxRuntime.jsx(zr,{source:s})]})},"MarkdownLink");function un({text:e,sources:t=jd,resources:o,streaming:n=false}){let r=n?$l(e,{linkMode:"text-only",katex:false}):e;return jsxRuntime.jsx(aa.Provider,{value:{text:r,sources:t,resources:o},children:jsxRuntime.jsx("div",{className:"streaming-markdown",children:jsxRuntime.jsx(vb__default.default,{skipHtml:true,remarkPlugins:[xb__default.default,kb__default.default,Tb],urlTransform:(i,s,l)=>s==="src"&&l.tagName==="img"&&qd(i)||ra(o,i,s==="src"?"image":"link")?i:vb.defaultUrlTransform(i),components:{img:Sb,p:$b,a:Pb,table:a(({children:i})=>jsxRuntime.jsx("div",{className:"streaming-table",children:jsxRuntime.jsx("table",{children:i})}),"table"),pre:a(({children:i})=>{if(!ye.isValidElement(i))return jsxRuntime.jsx("pre",{children:i});let s=String(i.props.children??"").replace(/\n$/,""),l=i.props.className?.replace(/^language-/,"")??"";return jsxRuntime.jsx(Er,{filename:l,code:s,lines:s.split(`
|
|
122
|
-
`)})},"pre")},children:r})})})}a(un,"StreamingMarkdown");var
|
|
123
|
-
transition-colors duration-100 hover:bg-hover-2`,children:jsxRuntime.jsx("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:
|
|
121
|
+
transition-colors duration-150 hover:bg-hover hover:text-ink`,style:{animation:"bui-pop-in 250ms cubic-bezier(0.23,1,0.32,1) both"},children:[jsxRuntime.jsx(Lr,{source:e,className:"size-3 rounded-[3px]"}),jsxRuntime.jsx("span",{children:e.domain})]}):null}a(zr,"SourceChip");function v(...e){return tailwindMerge.twMerge(e.filter(Boolean).join(" "))}a(v,"cn");function H(e){return e!=null&&typeof e!="boolean"}a(H,"hasRenderableNode");var Ml={preview:"Preview",edit:"Edit",visual:"Visual editor",source:"Source editor",exit:"Exit editing",save:"Save",saved:"Saved",dirty:"Unsaved changes",saving:"Saving\u2026",error:"Save failed. Your changes are retained.",offline:"Offline. Your changes are retained.",conflict:"A newer version is available. Compare it with your draft before saving.",latest:"View latest version",useLatest:"Use latest version",keepDraft:"Keep my draft and merge",discard:"Discard unsaved changes",closeWarning:"There are unsaved changes. Save them or discard them before leaving.",history:"Version history",restore:"Restore this version",original:"Original file",download:"Download",downloadDraft:"Download draft",loading:"Loading document\u2026",unavailable:"This document cannot be edited.",retry:"Try again",sourceOnly:"This document contains syntax supported in source mode only.",tooLarge:"This document exceeds the editing limit.",bold:"Bold",italic:"Italic",strike:"Strikethrough",heading:"Heading",paragraph:"Paragraph",quote:"Quote",bullet:"Bulleted list",ordered:"Numbered list",task:"Task list",link:"Link",image:"Image",table:"Table",code:"Code block",undo:"Undo",redo:"Redo",addRow:"Add row",addColumn:"Add column",deleteRow:"Delete row",deleteColumn:"Delete column",alignLeft:"Align left",alignCenter:"Align center",alignRight:"Align right",url:"URL or managed file reference",alt:"Alternative text",insert:"Insert",cancel:"Cancel",upload:"Upload image",imageFailed:"Image could not be loaded.",chooseImage:"Select image",recovery:"A recovered draft is available.",recover:"Recover draft",switchToLight:"Switch Markdown area to light mode",switchToDark:"Switch Markdown area to dark mode",toolbar:"Document formatting",content:"Document content",emptyHistory:"No saved versions yet."},Al={preview:"\u9884\u89C8",edit:"\u7F16\u8F91",visual:"\u53EF\u89C6\u7F16\u8F91",source:"\u6E90\u7801\u7F16\u8F91",exit:"\u9000\u51FA\u7F16\u8F91",save:"\u4FDD\u5B58",saved:"\u5DF2\u4FDD\u5B58",dirty:"\u672A\u4FDD\u5B58",saving:"\u4FDD\u5B58\u4E2D\u2026",error:"\u4FDD\u5B58\u5931\u8D25\uFF0C\u4FEE\u6539\u5DF2\u4FDD\u7559\u3002",offline:"\u5F53\u524D\u79BB\u7EBF\uFF0C\u4FEE\u6539\u5DF2\u4FDD\u7559\u3002",conflict:"\u6587\u6863\u5DF2\u6709\u66F4\u65B0\u7248\u672C\uFF0C\u8BF7\u6BD4\u8F83\u5E76\u5408\u5E76\u540E\u4FDD\u5B58\u3002",latest:"\u67E5\u770B\u6700\u65B0\u7248\u672C",useLatest:"\u4F7F\u7528\u6700\u65B0\u7248\u672C",keepDraft:"\u4FDD\u7559\u8349\u7A3F\u5E76\u5408\u5E76",discard:"\u64A4\u9500\u672A\u4FDD\u5B58\u6539\u52A8",closeWarning:"\u8FD8\u6709\u672A\u4FDD\u5B58\u7684\u4FEE\u6539\uFF0C\u8BF7\u4FDD\u5B58\u6216\u653E\u5F03\u540E\u518D\u79BB\u5F00\u3002",history:"\u7248\u672C\u5386\u53F2",restore:"\u6062\u590D\u6B64\u7248\u672C",original:"\u539F\u59CB\u6587\u4EF6",download:"\u4E0B\u8F7D",downloadDraft:"\u4E0B\u8F7D\u8349\u7A3F",loading:"\u6B63\u5728\u52A0\u8F7D\u6587\u6863\u2026",unavailable:"\u6B64\u6587\u6863\u6682\u4E0D\u53EF\u7F16\u8F91\u3002",retry:"\u91CD\u8BD5",sourceOnly:"\u6B64\u6587\u6863\u5305\u542B\u4EC5\u652F\u6301\u6E90\u7801\u7F16\u8F91\u7684\u8BED\u6CD5\u3002",tooLarge:"\u6587\u6863\u8D85\u8FC7\u53EF\u7F16\u8F91\u5927\u5C0F\u9650\u5236\u3002",bold:"\u52A0\u7C97",italic:"\u659C\u4F53",strike:"\u5220\u9664\u7EBF",heading:"\u6807\u9898",paragraph:"\u6B63\u6587",quote:"\u5F15\u7528",bullet:"\u65E0\u5E8F\u5217\u8868",ordered:"\u6709\u5E8F\u5217\u8868",task:"\u4EFB\u52A1\u5217\u8868",link:"\u94FE\u63A5",image:"\u56FE\u7247",table:"\u8868\u683C",code:"\u4EE3\u7801\u5757",undo:"\u64A4\u9500",redo:"\u91CD\u505A",addRow:"\u6DFB\u52A0\u884C",addColumn:"\u6DFB\u52A0\u5217",deleteRow:"\u5220\u9664\u884C",deleteColumn:"\u5220\u9664\u5217",alignLeft:"\u5DE6\u5BF9\u9F50",alignCenter:"\u5C45\u4E2D",alignRight:"\u53F3\u5BF9\u9F50",url:"\u7F51\u5740\u6216\u53D7\u7BA1\u6587\u4EF6\u5F15\u7528",alt:"\u66FF\u4EE3\u6587\u672C",insert:"\u63D2\u5165",cancel:"\u53D6\u6D88",upload:"\u4E0A\u4F20\u56FE\u7247",imageFailed:"\u56FE\u7247\u52A0\u8F7D\u5931\u8D25\u3002",chooseImage:"\u9009\u62E9\u56FE\u7247",recovery:"\u53D1\u73B0\u53EF\u6062\u590D\u7684\u8349\u7A3F\u3002",recover:"\u6062\u590D\u8349\u7A3F",switchToLight:"\u5207\u6362 Markdown \u533A\u57DF\u4E3A\u6D45\u8272",switchToDark:"\u5207\u6362 Markdown \u533A\u57DF\u4E3A\u6DF1\u8272",toolbar:"\u6587\u6863\u683C\u5F0F",content:"\u6587\u6863\u6B63\u6587",emptyHistory:"\u6682\u65E0\u5DF2\u4FDD\u5B58\u7248\u672C\u3002"};var rn={locale:"en-US",messages:{markdownDocument:Ml,canvas:{replaceImage:"Replace image",cropImage:"Crop image",downloadImage:"Download image",useImageReference:"Use as reference",saturationValue:"Saturation and brightness",hue:"Hue",dots:"Dot grid",group:"Group",hexPlaceholder:"#F5F5F5",controls:"Canvas controls",background:"Canvas background",layers:"Layers",minimap:"Minimap",zoom:"Zoom",zoomIn:"Zoom in",zoomOut:"Zoom out",fit:"Show all elements",zoomTo:a(({percent:e})=>`Zoom to ${e}%`,"zoomTo"),color:a(({value:e})=>`Use ${e}`,"color"),hex:"Hex color",close:"Close",empty:"No layers",element:a(({type:e})=>e,"element")},pagination:{navigation:"Pagination",first:"First",previous:"Previous",next:"Next",last:"Last",page:a(({page:e,pageCount:t})=>`Page ${e} of ${t}`,"page"),currentPage:a(({page:e,pageCount:t})=>`Page ${e} of ${t}, current page`,"currentPage"),emptyResults:"0 results",range:a(({start:e,end:t,total:o})=>`${e}-${t} of ${o}`,"range"),selected:a(({count:e})=>`${e} selected`,"selected"),pageSize:"Items per page",loadBatchSize:"Items per load",perLoad:"Items per load",jumpToPage:"Jump to page",pages:"pages",clickToJump:"Click to jump to a page"},dialog:{close:"Close dialog"},dropdownMenu:{actions:"Actions"},loading:{spinner:"Loading"},layout:{resizePanels:"Resize panels",expandPanel:"Expand",collapsePanel:"Collapse",movePanel:"Move",moveBefore:"Move earlier",moveAfter:"Move later"},steps:{label:"Progress",current:"Current",completed:"Completed",error:"Error",disabled:"Disabled"},numberInput:{increment:"Increase value",decrement:"Decrease value"},passwordInput:{showPassword:"Show password",hidePassword:"Hide password"},multiSelect:{placeholder:"Select options",empty:"No options",removeOption:a(({value:e})=>`Remove ${e}`,"removeOption")},table:{dragColumn:a(({columnId:e})=>`Drag column ${e}`,"dragColumn"),resizeColumn:a(({columnId:e})=>`Resize column ${e}`,"resizeColumn"),sortColumn:a(({columnId:e})=>e?`Sort column ${e}`:"Sort column","sortColumn"),loadingRow:"Loading table row"},toolbar:{theme:{label:"Appearance",toggle:"Toggle theme",auto:"Auto",light:"Light",dark:"Dark"},language:{label:"Language",switch:"Switch language"}},toast:{errorTitle:"Error",warningTitle:"Warning",defaultErrorDescription:"Something went wrong.",defaultWarningDescription:"Please check and try again."},dataExplorer:{viewTree:{actions:"More actions",expand:"Expand",collapse:"Collapse",loading:"Loading...",empty:"No views",error:"Unable to load views"}},workbench:{relationshipGraph:{zoomOut:"Zoom out",zoomIn:"Zoom in",zoomToFit:"Fit graph",minimap:"Graph overview"},collection:{label:"Collection",loading:"Loading items",empty:"No items",loadError:"Unable to load items",refreshError:"Unable to refresh items",retry:"Retry",loadingMore:"Loading more items",permission:"You do not have permission to view this content",offline:"You appear to be offline",requestAccess:"Request access"},interactiveTable:{columnActions:"Column actions",freezeColumn:"Freeze to left",freezeEndColumn:"Freeze to right",unfreezeColumn:"Unfreeze from left",unfreezeEndColumn:"Unfreeze from right",unfreezeAllColumns:"Unfreeze all columns",resetColumnWidth:"Reset column width",frozenColumnTitle:"Frozen column"}},agentWorkbench:{label:"Session activity",reasoning:"Reasoning",plan:"Plan",taskNoDetail:"No additional details",modes:{chat:"Chat",work:"Work"},composer:{send:"Send message",stop:"Stop generating",queue:"Queue message",attach:"Add photos or files",voice:"Start voice input",webSearch:"Web search",chatMode:"Chat mode",model:"Model",reasoning:"Reasoning effort",permissions:"Permissions",removeAttachment:"Remove attachment",editQueued:"Edit queued message",deleteQueued:"Delete queued message",moveUp:"Move message up",moveDown:"Move message down",queued:"Queued messages",uploading:"Uploading",uploadFailed:"Upload failed",retryAttachment:"Retry attachment upload",noModels:"No models available",message:"Message",attachmentOnly:"Attachment",reasoningOptions:{low:"Low",medium:"Medium",high:"High",xhigh:"Extra high"},permissionOptions:{"approval-required":"Approval required","auto-approve":"Auto approve","full-access":"Full access"}},quickStart:{label:"Quick start",back:"Back",addFile:"Add file"},tool:{input:"Input",output:"Output",status:{pending:"Pending",running:"Running",completed:"Completed",failed:"Error",denied:"Denied"}},approval:{approve:"Approve",reject:"Reject",approved:"Approved",rejected:"Rejected"},artifact:{pending:"Preparing",ready:"Ready",failed:"Failed",open:a(({name:e})=>`Open ${e}`,"open")},run:{stopping:"Stopping...",stoppedAfter:a(({duration:e})=>`You stopped after ${e}`,"stoppedAfter")},process:{running:"Working",queued:"Queued",waitingApproval:"Waiting for approval",failed:"Failed",stopped:"Stopped",processed:"Processed",processedFor:a(({duration:e})=>`Worked for ${e}`,"processedFor"),completedCount:a(({completed:e,total:t})=>`${e}/${t} completed`,"completedCount")},artifactWorkspace:{outputs:"Outputs",sources:"Sources",viewAll:"View all",toggleSummary:"Toggle files",tabs:"Open files",closeTab:a(({name:e})=>`Close ${e}`,"closeTab"),closeWorkspace:"Close workspace",close:"Close",closeOthers:"Close other tabs",closeRight:"Close tabs to the right",closeAll:"Close all tabs",kinds:{data:"Data view",audio:"Audio",canvas:"Canvas",file:"File",html:"HTML",image:"Image",markdown:"Markdown",pdf:"PDF",presentation:"Presentation",video:"Video",web:"Web page"},collapse:"Collapse",maximize:"Full screen",restore:"Exit full screen",download:a(({name:e})=>`Download ${e}`,"download"),openExternal:a(({name:e})=>`Open ${e} in a new window`,"openExternal"),loading:"Loading preview...",failed:"Preview unavailable",retry:"Try again"},usage:{label:"Context usage",context:a(({used:e,total:t})=>`${e} / ${t} tokens`,"context")},navigation:{search:"Search agents and sessions",searchSessions:"Search sessions",searchShortcut:"Focus search",clearSearch:"Clear search",tabsLabel:"Agent workbench navigation",agents:"Agents",sessions:"Sessions",newAgent:"New Agent",newSession:"New Session",capabilities:"Capabilities & Extensions",settings:"Agent Settings",allAgents:"All Agents",recentSessions:"Recent Sessions",chat:"Chat",work:"Work",chats:"Chats",builtIn:"Built-in",noDescription:"No description",loading:"Loading...",emptyAgents:"No agents yet",emptySessions:"No sessions yet",noResults:"No matching results",retry:"Retry",pin:"Pin",unpin:"Unpin",rename:"Rename",delete:"Delete",actions:"Actions",save:"Save",cancel:"Cancel",running:"Running",completed:"Completed",failed:"Failed",contextUsage:a(({percent:e})=>`${e}% context used`,"contextUsage")},details:{title:"Task details",description:"Summary and workspace activity",duration:"Duration",updated:"Updated",model:"Model",mode:"Mode",permissions:"Permissions",tokenUsage:"Token usage",summary:"Summary",summaryEmpty:"No summary is available yet.",summaryFailed:"The summary could not be generated.",highlights:"Highlights",pendingItems:"Pending items",tabs:{label:"Task detail views",summary:"Summary",workspace:"Workspace"},status:{queued:"Queued",running:"Running",waiting_approval:"Waiting for approval",stopping:"Stopping",stopped:"Stopped",completed:"Completed",failed:"Failed"},state:{loading:{title:"Loading task details",description:"Restoring the latest session activity."},empty:{title:"No task selected",description:"Select a task to inspect its details."},error:{title:"Unable to load task details",description:"Try again after the session is available."}},actions:{close:"Close task details",copySummary:"Copy summary",retry:"Retry",retrySummary:"Retry summary",resume:"Resume",continueInNewTask:"Continue in new task",editAndRerun:"Edit and rerun",export:"Export"},workspace:{diffs:"Code changes",files:"Files",terminals:"Terminals",tests:"Tests",artifacts:"Artifacts",exitCode:a(({code:e})=>`Exit code ${e}`,"exitCode"),diffStatus:{added:"Added",modified:"Modified",deleted:"Deleted",renamed:"Renamed"},fileOperation:{upsert:"Updated",delete:"Deleted"}}}}}};var Yn={locale:"zh-CN",messages:{markdownDocument:Al,canvas:{replaceImage:"\u66FF\u6362\u56FE\u7247",cropImage:"\u88C1\u526A\u56FE\u7247",downloadImage:"\u4E0B\u8F7D\u56FE\u7247",useImageReference:"\u7528\u4F5C\u53C2\u8003\u56FE",saturationValue:"\u9971\u548C\u5EA6\u4E0E\u660E\u5EA6",hue:"\u8272\u76F8",dots:"\u80CC\u666F\u70B9\u9635",group:"\u5206\u7EC4",hexPlaceholder:"#F5F5F5",controls:"\u753B\u5E03\u63A7\u5236",background:"\u753B\u5E03\u80CC\u666F\u8272",layers:"\u56FE\u5C42",minimap:"\u5C0F\u5730\u56FE",zoom:"\u7F29\u653E",zoomIn:"\u653E\u5927",zoomOut:"\u7F29\u5C0F",fit:"\u663E\u793A\u753B\u5E03\u6240\u6709\u5143\u7D20",zoomTo:a(({percent:e})=>`\u7F29\u653E\u81F3 ${e}%`,"zoomTo"),color:a(({value:e})=>`\u4F7F\u7528 ${e}`,"color"),hex:"\u5341\u516D\u8FDB\u5236\u989C\u8272",close:"\u5173\u95ED",empty:"\u6682\u65E0\u56FE\u5C42",element:a(({type:e})=>({image:"\u56FE\u7247",text:"\u6587\u5B57",rectangle:"\u77E9\u5F62",ellipse:"\u692D\u5706",diamond:"\u83F1\u5F62",arrow:"\u7BAD\u5934",line:"\u7EBF\u6761",freedraw:"\u81EA\u7531\u7ED8\u5236",frame:"\u753B\u6846",embeddable:"\u5D4C\u5165\u5185\u5BB9",iframe:"\u7F51\u9875",magicframe:"\u753B\u6846"})[e]||"\u5143\u7D20","element")},pagination:{navigation:"\u5206\u9875\u5BFC\u822A",first:"\u9996\u9875",previous:"\u4E0A\u4E00\u9875",next:"\u4E0B\u4E00\u9875",last:"\u672B\u9875",page:a(({page:e,pageCount:t})=>`\u7B2C ${e} \u9875\uFF0C\u5171 ${t} \u9875`,"page"),currentPage:a(({page:e,pageCount:t})=>`\u7B2C ${e} \u9875\uFF0C\u5171 ${t} \u9875\uFF0C\u5F53\u524D\u9875`,"currentPage"),emptyResults:"\u5171 0 \u6761",range:a(({start:e,end:t,total:o})=>`\u7B2C ${e}-${t} \u6761\uFF0C\u5171 ${o} \u6761`,"range"),selected:a(({count:e})=>`\u5DF2\u9009\u62E9 ${e} \u9879`,"selected"),pageSize:"\u6BCF\u9875\u663E\u793A\u6570\u91CF",loadBatchSize:"\u6BCF\u6B21\u52A0\u8F7D\u6570\u91CF",perLoad:"\u6BCF\u6B21\u52A0\u8F7D",jumpToPage:"\u8DF3\u8F6C\u5230\u9875\u7801",pages:"\u9875",clickToJump:"\u70B9\u51FB\u8DF3\u8F6C\u9875\u7801"},dialog:{close:"\u5173\u95ED\u5BF9\u8BDD\u6846"},dropdownMenu:{actions:"\u64CD\u4F5C"},loading:{spinner:"\u6B63\u5728\u52A0\u8F7D"},layout:{resizePanels:"\u8C03\u6574\u9762\u677F\u5927\u5C0F",expandPanel:"\u5C55\u5F00",collapsePanel:"\u6536\u8D77",movePanel:"\u79FB\u52A8",moveBefore:"\u5411\u524D\u79FB\u52A8",moveAfter:"\u5411\u540E\u79FB\u52A8"},steps:{label:"\u8FDB\u5EA6",current:"\u5F53\u524D\u6B65\u9AA4",completed:"\u5DF2\u5B8C\u6210",error:"\u9519\u8BEF",disabled:"\u5DF2\u7981\u7528"},numberInput:{increment:"\u589E\u52A0\u6570\u503C",decrement:"\u51CF\u5C11\u6570\u503C"},passwordInput:{showPassword:"\u663E\u793A\u5BC6\u7801",hidePassword:"\u9690\u85CF\u5BC6\u7801"},multiSelect:{placeholder:"\u8BF7\u9009\u62E9",empty:"\u6682\u65E0\u9009\u9879",removeOption:a(({value:e})=>`\u79FB\u9664 ${e}`,"removeOption")},table:{dragColumn:a(({columnId:e})=>`\u62D6\u52A8\u5217 ${e}`,"dragColumn"),resizeColumn:a(({columnId:e})=>`\u8C03\u6574\u5217\u5BBD ${e}`,"resizeColumn"),sortColumn:a(({columnId:e})=>e?`\u6392\u5E8F\u5217 ${e}`:"\u6392\u5E8F\u5217","sortColumn"),loadingRow:"\u6B63\u5728\u52A0\u8F7D\u8868\u683C\u884C"},toolbar:{theme:{label:"\u5916\u89C2",toggle:"\u5207\u6362\u4E3B\u9898",auto:"\u8DDF\u968F\u7CFB\u7EDF",light:"\u6D45\u8272\u6A21\u5F0F",dark:"\u6DF1\u8272\u6A21\u5F0F"},language:{label:"\u8BED\u8A00",switch:"\u5207\u6362\u8BED\u8A00"}},toast:{errorTitle:"\u9519\u8BEF",warningTitle:"\u63D0\u793A",defaultErrorDescription:"\u53D1\u751F\u9519\u8BEF\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002",defaultWarningDescription:"\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\u3002"},dataExplorer:{viewTree:{actions:"\u66F4\u591A\u64CD\u4F5C",expand:"\u5C55\u5F00",collapse:"\u6536\u8D77",loading:"\u6B63\u5728\u52A0\u8F7D...",empty:"\u6682\u65E0\u89C6\u56FE",error:"\u65E0\u6CD5\u52A0\u8F7D\u89C6\u56FE"}},workbench:{relationshipGraph:{zoomOut:"\u7F29\u5C0F",zoomIn:"\u653E\u5927",zoomToFit:"\u9002\u5E94\u753B\u5E03",minimap:"\u56FE\u8C31\u6982\u89C8"},collection:{label:"\u5185\u5BB9\u96C6\u5408",loading:"\u6B63\u5728\u52A0\u8F7D\u5185\u5BB9",empty:"\u6682\u65E0\u5185\u5BB9",loadError:"\u65E0\u6CD5\u52A0\u8F7D\u5185\u5BB9",refreshError:"\u65E0\u6CD5\u5237\u65B0\u5185\u5BB9",retry:"\u91CD\u8BD5",loadingMore:"\u6B63\u5728\u52A0\u8F7D\u66F4\u591A\u5185\u5BB9",permission:"\u4F60\u6CA1\u6709\u6743\u9650\u67E5\u770B\u6B64\u5185\u5BB9",offline:"\u7F51\u7EDC\u8FDE\u63A5\u5DF2\u65AD\u5F00",requestAccess:"\u7533\u8BF7\u6743\u9650"},interactiveTable:{columnActions:"\u5217\u64CD\u4F5C",freezeColumn:"\u56FA\u5B9A\u5230\u5DE6\u4FA7",freezeEndColumn:"\u56FA\u5B9A\u5230\u53F3\u4FA7",unfreezeColumn:"\u53D6\u6D88\u5DE6\u4FA7\u56FA\u5B9A",unfreezeEndColumn:"\u53D6\u6D88\u53F3\u4FA7\u56FA\u5B9A",unfreezeAllColumns:"\u53D6\u6D88\u5168\u90E8\u56FA\u5B9A",resetColumnWidth:"\u91CD\u7F6E\u5217\u5BBD",frozenColumnTitle:"\u5DF2\u56FA\u5B9A\u5217"}},agentWorkbench:{label:"\u4F1A\u8BDD\u6D3B\u52A8",reasoning:"\u601D\u8003\u8FC7\u7A0B",plan:"\u6267\u884C\u8BA1\u5212",taskNoDetail:"\u6682\u65E0\u66F4\u591A\u8BE6\u60C5",modes:{chat:"\u5BF9\u8BDD",work:"\u5DE5\u4F5C"},composer:{send:"\u53D1\u9001\u6D88\u606F",stop:"\u505C\u6B62\u751F\u6210",queue:"\u6392\u961F\u53D1\u9001",attach:"\u6DFB\u52A0\u7167\u7247\u6216\u6587\u4EF6",voice:"\u5F00\u59CB\u8BED\u97F3\u8F93\u5165",webSearch:"\u8054\u7F51\u641C\u7D22",chatMode:"\u5BF9\u8BDD\u6A21\u5F0F",model:"\u6A21\u578B",reasoning:"\u601D\u8003\u5F3A\u5EA6",permissions:"\u6743\u9650",removeAttachment:"\u79FB\u9664\u9644\u4EF6",editQueued:"\u7F16\u8F91\u6392\u961F\u6D88\u606F",deleteQueued:"\u5220\u9664\u6392\u961F\u6D88\u606F",moveUp:"\u4E0A\u79FB\u6D88\u606F",moveDown:"\u4E0B\u79FB\u6D88\u606F",queued:"\u6392\u961F\u6D88\u606F",uploading:"\u4E0A\u4F20\u4E2D",uploadFailed:"\u4E0A\u4F20\u5931\u8D25",retryAttachment:"\u91CD\u8BD5\u9644\u4EF6\u4E0A\u4F20",noModels:"\u6682\u65E0\u53EF\u7528\u6A21\u578B",message:"\u6D88\u606F",attachmentOnly:"\u9644\u4EF6",reasoningOptions:{low:"\u4F4E",medium:"\u4E2D",high:"\u9AD8",xhigh:"\u6700\u9AD8"},permissionOptions:{"approval-required":"\u9700\u8981\u6279\u51C6","auto-approve":"\u81EA\u52A8\u6279\u51C6","full-access":"\u5B8C\u5168\u8BBF\u95EE"}},quickStart:{label:"\u5FEB\u901F\u5F00\u59CB",back:"\u8FD4\u56DE",addFile:"\u6DFB\u52A0\u6587\u4EF6"},tool:{input:"\u8F93\u5165",output:"\u8F93\u51FA",status:{pending:"\u7B49\u5F85\u4E2D",running:"\u8FD0\u884C\u4E2D",completed:"\u5DF2\u5B8C\u6210",failed:"\u9519\u8BEF",denied:"\u5DF2\u62D2\u7EDD"}},approval:{approve:"\u5141\u8BB8",reject:"\u62D2\u7EDD",approved:"\u5DF2\u5141\u8BB8",rejected:"\u5DF2\u62D2\u7EDD"},artifact:{pending:"\u51C6\u5907\u4E2D",ready:"\u5DF2\u5C31\u7EEA",failed:"\u5931\u8D25",open:a(({name:e})=>`\u6253\u5F00 ${e}`,"open")},run:{stopping:"\u6B63\u5728\u505C\u6B62...",stoppedAfter:a(({duration:e})=>`\u4F60\u5728 ${e} \u540E\u505C\u6B62\u4E86\u4EFB\u52A1`,"stoppedAfter")},process:{running:"\u6267\u884C\u8FC7\u7A0B",queued:"\u6392\u961F\u4E2D",waitingApproval:"\u7B49\u5F85\u5BA1\u6279",failed:"\u5931\u8D25",stopped:"\u5DF2\u505C\u6B62",processed:"\u5DF2\u5904\u7406",processedFor:a(({duration:e})=>`\u8017\u65F6 ${e.replace(/(\d+)h/g,"$1\u5C0F\u65F6").replace(/(\d+)m/g,"$1\u5206\u949F").replace(/(\d+)s/g,"$1\u79D2").replace(/\s+/g,"")}`,"processedFor"),completedCount:a(({completed:e,total:t})=>`${e}/${t} \u5DF2\u5B8C\u6210`,"completedCount")},artifactWorkspace:{outputs:"\u8F93\u51FA",sources:"\u6765\u6E90",viewAll:"\u67E5\u770B\u5168\u90E8",toggleSummary:"\u5207\u6362\u6587\u4EF6\u6458\u8981",tabs:"\u5DF2\u6253\u5F00\u6587\u4EF6",closeTab:a(({name:e})=>`\u5173\u95ED ${e}`,"closeTab"),closeWorkspace:"\u5173\u95ED\u5DE5\u4F5C\u533A",close:"\u5173\u95ED",closeOthers:"\u5173\u95ED\u5176\u4ED6\u6807\u7B7E\u9875",closeRight:"\u5173\u95ED\u53F3\u4FA7\u6807\u7B7E\u9875",closeAll:"\u5173\u95ED\u6240\u6709\u6807\u7B7E\u9875",kinds:{data:"\u6570\u636E\u89C6\u56FE",audio:"\u97F3\u9891",canvas:"\u753B\u677F",file:"\u6587\u4EF6",html:"HTML",image:"\u56FE\u7247",markdown:"Markdown",pdf:"PDF",presentation:"\u6F14\u793A\u6587\u7A3F",video:"\u89C6\u9891",web:"\u7F51\u9875"},collapse:"\u6536\u8D77",maximize:"\u5168\u5C4F",restore:"\u9000\u51FA\u5168\u5C4F",download:a(({name:e})=>`\u4E0B\u8F7D ${e}`,"download"),openExternal:a(({name:e})=>`\u5728\u65B0\u7A97\u53E3\u6253\u5F00 ${e}`,"openExternal"),loading:"\u6B63\u5728\u52A0\u8F7D\u9884\u89C8...",failed:"\u9884\u89C8\u4E0D\u53EF\u7528",retry:"\u91CD\u8BD5"},usage:{label:"\u4E0A\u4E0B\u6587\u7528\u91CF",context:a(({used:e,total:t})=>`${e} / ${t} tokens`,"context")},navigation:{search:"\u641C\u7D22\u667A\u80FD\u4F53\u548C\u4F1A\u8BDD",searchSessions:"\u641C\u7D22\u4F1A\u8BDD",searchShortcut:"\u805A\u7126\u641C\u7D22\u6846",clearSearch:"\u6E05\u9664\u641C\u7D22",tabsLabel:"\u667A\u80FD\u4F53\u5DE5\u4F5C\u53F0\u5BFC\u822A",agents:"\u667A\u80FD\u4F53",sessions:"\u4F1A\u8BDD",newAgent:"\u65B0\u5EFA\u667A\u80FD\u4F53",newSession:"\u65B0\u5EFA\u4F1A\u8BDD",capabilities:"\u80FD\u529B\u4E0E\u6269\u5C55",settings:"\u667A\u80FD\u4F53\u8BBE\u7F6E",allAgents:"\u5168\u90E8\u667A\u80FD\u4F53",recentSessions:"\u6700\u8FD1\u4F1A\u8BDD",chat:"\u5BF9\u8BDD",work:"\u5DE5\u4F5C",chats:"\u804A\u5929",builtIn:"\u5185\u7F6E",noDescription:"\u6682\u65E0\u63CF\u8FF0",loading:"\u52A0\u8F7D\u4E2D...",emptyAgents:"\u6682\u65E0\u667A\u80FD\u4F53",emptySessions:"\u6682\u65E0\u4F1A\u8BDD",noResults:"\u6CA1\u6709\u5339\u914D\u7ED3\u679C",retry:"\u91CD\u8BD5",pin:"\u7F6E\u9876",unpin:"\u53D6\u6D88\u7F6E\u9876",rename:"\u91CD\u547D\u540D",delete:"\u5220\u9664",actions:"\u64CD\u4F5C",save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",running:"\u8FD0\u884C\u4E2D",completed:"\u5DF2\u5B8C\u6210",failed:"\u5931\u8D25",contextUsage:a(({percent:e})=>`\u5DF2\u4F7F\u7528 ${e}% \u4E0A\u4E0B\u6587`,"contextUsage")},details:{title:"\u4EFB\u52A1\u8BE6\u60C5",description:"\u6458\u8981\u4E0E\u5DE5\u4F5C\u533A\u6D3B\u52A8",duration:"\u8017\u65F6",updated:"\u66F4\u65B0\u65F6\u95F4",model:"\u6A21\u578B",mode:"\u6A21\u5F0F",permissions:"\u6743\u9650",tokenUsage:"Token \u7528\u91CF",summary:"\u6458\u8981",summaryEmpty:"\u6682\u65F6\u6CA1\u6709\u53EF\u7528\u6458\u8981\u3002",summaryFailed:"\u6458\u8981\u751F\u6210\u5931\u8D25\u3002",highlights:"\u91CD\u70B9",pendingItems:"\u5F85\u5904\u7406\u4E8B\u9879",tabs:{label:"\u4EFB\u52A1\u8BE6\u60C5\u89C6\u56FE",summary:"\u6458\u8981",workspace:"\u5DE5\u4F5C\u533A"},status:{queued:"\u6392\u961F\u4E2D",running:"\u8FD0\u884C\u4E2D",waiting_approval:"\u7B49\u5F85\u5BA1\u6279",stopping:"\u6B63\u5728\u505C\u6B62",stopped:"\u5DF2\u505C\u6B62",completed:"\u5DF2\u5B8C\u6210",failed:"\u5931\u8D25"},state:{loading:{title:"\u6B63\u5728\u52A0\u8F7D\u4EFB\u52A1\u8BE6\u60C5",description:"\u6B63\u5728\u6062\u590D\u6700\u65B0\u7684\u4F1A\u8BDD\u6D3B\u52A8\u3002"},empty:{title:"\u672A\u9009\u62E9\u4EFB\u52A1",description:"\u9009\u62E9\u4EFB\u52A1\u540E\u67E5\u770B\u8BE6\u7EC6\u4FE1\u606F\u3002"},error:{title:"\u65E0\u6CD5\u52A0\u8F7D\u4EFB\u52A1\u8BE6\u60C5",description:"\u4F1A\u8BDD\u6062\u590D\u53EF\u7528\u540E\u8BF7\u91CD\u8BD5\u3002"}},actions:{close:"\u5173\u95ED\u4EFB\u52A1\u8BE6\u60C5",copySummary:"\u590D\u5236\u6458\u8981",retry:"\u91CD\u8BD5",retrySummary:"\u91CD\u65B0\u751F\u6210\u6458\u8981",resume:"\u7EE7\u7EED\u8FD0\u884C",continueInNewTask:"\u5728\u65B0\u4EFB\u52A1\u4E2D\u7EE7\u7EED",editAndRerun:"\u7F16\u8F91\u5E76\u91CD\u65B0\u8FD0\u884C",export:"\u5BFC\u51FA"},workspace:{diffs:"\u4EE3\u7801\u53D8\u66F4",files:"\u6587\u4EF6",terminals:"\u7EC8\u7AEF",tests:"\u6D4B\u8BD5",artifacts:"\u4EA7\u7269",exitCode:a(({code:e})=>`\u9000\u51FA\u7801 ${e}`,"exitCode"),diffStatus:{added:"\u65B0\u589E",modified:"\u4FEE\u6539",deleted:"\u5220\u9664",renamed:"\u91CD\u547D\u540D"},fileOperation:{upsert:"\u5DF2\u66F4\u65B0",delete:"\u5DF2\u5220\u9664"}}}}}};var Mg={"en-US":rn,"zh-CN":Yn};function Bl(e){if(typeof e!="string"||!e.trim())throw new TypeError("Monkeys locale must be a non-empty BCP 47 string.");try{return Intl.getCanonicalLocales(e)[0]}catch{throw new RangeError(`Monkeys locale "${e}" is not a valid BCP 47 identifier.`)}}a(Bl,"normalizeLocaleId");function Qn(e){return !!e&&typeof e=="object"&&!Array.isArray(e)}a(Qn,"isRecord");function Nl(e,t,o){if(!Qn(e)||!Qn(t))throw new TypeError(`${o} must be an object.`);for(let[n,r]of Object.entries(e)){if(r===void 0)continue;if(!(n in t))throw new TypeError(`${o}.${n} is not a supported Monkeys message.`);let i=t[n],s=`${o}.${n}`;if(typeof i=="function"){if(typeof r!="function")throw new TypeError(`${s} must be a function.`)}else if(typeof i=="string"){if(typeof r!="string")throw new TypeError(`${s} must be a string.`)}else Nl(r,i,s);}}a(Nl,"validateMessageOverride");function El(e,t){let o=Qn(e)?Object.fromEntries(Object.entries(e).filter(([n])=>n!=="beautiful")):e;if(Nl(o,rn.messages,t),Qn(e)&&e.beautiful!==void 0){if(!Qn(e.beautiful))throw new TypeError(`${t}.beautiful must be an object.`);for(let[n,r]of Object.entries(e.beautiful))if(r!==void 0&&typeof r!="string")throw new TypeError(`${t}.beautiful.${n} must be a string.`)}}a(El,"assertMessagesOverride");function Il(e){return e==="en-US"||e==="zh-CN"}a(Il,"isBuiltInLocale");function Ag(e){if(e===void 0)return {locale:void 0,messages:void 0,hasExplicitLocale:false};if(typeof e=="string"){let o=Bl(e);if(!Il(o))throw new RangeError(`Unsupported built-in Monkeys locale "${o}". Provide a locale pack object for custom locales.`);return {locale:o,messages:void 0,hasExplicitLocale:true}}if(!e||typeof e!="object"||Array.isArray(e))throw new TypeError("Monkeys locale must be a locale id or locale pack object.");let t=Bl(e.locale);return El(e.messages,"Monkeys locale messages"),{locale:t,messages:e.messages,hasExplicitLocale:true}}a(Ag,"normalizeLocaleInput");function Cn(e,t){return t?{markdownDocument:{...e.markdownDocument,...t.markdownDocument},canvas:{...e.canvas,...t.canvas},beautiful:{...e.beautiful,...t.beautiful},pagination:{...e.pagination,...t.pagination},dialog:{...e.dialog,...t.dialog},dropdownMenu:{...e.dropdownMenu,...t.dropdownMenu},loading:{...e.loading,...t.loading},layout:{...e.layout,...t.layout},steps:{...e.steps,...t.steps},numberInput:{...e.numberInput,...t.numberInput},passwordInput:{...e.passwordInput,...t.passwordInput},multiSelect:{...e.multiSelect,...t.multiSelect},table:{...e.table,...t.table},toolbar:{theme:{...e.toolbar.theme,...t.toolbar?.theme},language:{...e.toolbar.language,...t.toolbar?.language}},toast:{...e.toast,...t.toast},dataExplorer:{viewTree:{...e.dataExplorer.viewTree,...t.dataExplorer?.viewTree}},workbench:{relationshipGraph:{zoomOut:"Zoom out",zoomIn:"Zoom in",zoomToFit:"Fit graph",minimap:"Graph overview",...e.workbench.relationshipGraph,...t.workbench?.relationshipGraph},collection:{...e.workbench.collection,...t.workbench?.collection},interactiveTable:{...e.workbench.interactiveTable,...t.workbench?.interactiveTable}},agentWorkbench:{...e.agentWorkbench,...t.agentWorkbench,modes:{...e.agentWorkbench.modes,...t.agentWorkbench?.modes},composer:{...e.agentWorkbench.composer,...t.agentWorkbench?.composer},quickStart:{...e.agentWorkbench.quickStart,...t.agentWorkbench?.quickStart},tool:{...e.agentWorkbench.tool,...t.agentWorkbench?.tool,status:{...e.agentWorkbench.tool.status,...t.agentWorkbench?.tool?.status}},approval:{...e.agentWorkbench.approval,...t.agentWorkbench?.approval},artifact:{...e.agentWorkbench.artifact,...t.agentWorkbench?.artifact},run:{...e.agentWorkbench.run,...t.agentWorkbench?.run},process:{...e.agentWorkbench.process,...t.agentWorkbench?.process},artifactWorkspace:{...e.agentWorkbench.artifactWorkspace,...t.agentWorkbench?.artifactWorkspace},usage:{...e.agentWorkbench.usage,...t.agentWorkbench?.usage},navigation:{...e.agentWorkbench.navigation,...t.agentWorkbench?.navigation},details:{...e.agentWorkbench.details,...t.agentWorkbench?.details,tabs:{...e.agentWorkbench.details.tabs,...t.agentWorkbench?.details?.tabs},status:{...e.agentWorkbench.details.status,...t.agentWorkbench?.details?.status},state:{loading:{...e.agentWorkbench.details.state.loading,...t.agentWorkbench?.details?.state?.loading},empty:{...e.agentWorkbench.details.state.empty,...t.agentWorkbench?.details?.state?.empty},error:{...e.agentWorkbench.details.state.error,...t.agentWorkbench?.details?.state?.error}},actions:{...e.agentWorkbench.details.actions,...t.agentWorkbench?.details?.actions},workspace:{...e.agentWorkbench.details.workspace,...t.agentWorkbench?.details?.workspace,diffStatus:{...e.agentWorkbench.details.workspace.diffStatus,...t.agentWorkbench?.details?.workspace?.diffStatus},fileOperation:{...e.agentWorkbench.details.workspace.fileOperation,...t.agentWorkbench?.details?.workspace?.fileOperation}}}}}:e}a(Cn,"mergeMonkeysLocaleMessages");var Zn={locale:rn.locale,messages:Cn(rn.messages)};function ci(e,t,o){t!==void 0&&El(t,"MonkeysProvider messages");let n=Ag(e),r=n.locale??o?.locale??rn.locale,i=Il(r)?Mg[r].messages:void 0,s=Cn(rn.messages,i);return o&&(!n.hasExplicitLocale||o.locale===r)&&(s=Cn(s,o.messages)),s=Cn(s,n.messages),s=Cn(s,t),{locale:r,messages:s}}a(ci,"resolveMonkeysLocale");var Bg=Object.freeze({}),Ng=Object.freeze({}),Dl=Symbol.for("@inf-monkeys-tech/monkeys-design/provider-context@1");function Eg(){return Object.freeze({locale:he.createContext({...Zn,provided:false}),theme:he.createContext({provided:false}),direction:he.createContext({provided:false}),environment:he.createContext({provided:false,environment:Bg,portal:Ng})})}a(Eg,"createMonkeysProviderContexts");function Ig(){let e=globalThis,t=e[Dl];if(t)return t;let o=Eg();return Object.defineProperty(e,Dl,{value:o,enumerable:false,configurable:false,writable:false}),o}a(Ig,"getMonkeysProviderContexts");var Hr=Ig(),Tn=Hr.locale,an=Hr.theme,Jn=Hr.direction,er=Hr.environment;function Dg(e,t){return t===void 0?e:e===void 0?t:{...e,...t,slots:e.slots||t.slots?{...e.slots,...t.slots}:void 0,styles:e.styles||t.styles?{...e.styles,...t.styles}:void 0}}a(Dg,"mergeAppearance");function ui(){try{return he.useContext(Tn)??{...Zn,provided:!1}}catch{return {...Zn,provided:false}}}a(ui,"useMonkeysLocale");function $t(){return he.useContext(Tn).messages}a($t,"useMonkeysLocaleMessages");function No(){return he.useContext(an).resolvedTheme}a(No,"useMonkeysResolvedTheme");function Se(e){let t=he.useContext(an).baseAppearance;return he.useMemo(()=>Dg(t,e),[e,t])}a(Se,"useMonkeysBaseAppearance");function sn(){return he.useContext(an).statusStates??{}}a(sn,"useMonkeysStatusStates");function tr(){return he.useContext(Jn).direction}a(tr,"useMonkeysDirection");function Sn(){return he.useContext(er).environment}a(Sn,"useMonkeysEnvironment");function ln(){return he.useContext(er).portal}a(ln,"useMonkeysPortalOptions");function fe(){let e=he.useContext(Tn),t=he.useContext(an),o=he.useContext(Jn),n=e.provided||t.provided||o.provided;return he.useMemo(()=>n?{dir:o.direction,"data-monkeys-direction":o.direction,"data-monkeys-locale":e.locale,"data-monkeys-theme":t.themeId,"data-monkeys-theme-mode":t.resolvedTheme?.colorMode}:{},[o.direction,e.locale,n,t.resolvedTheme?.colorMode,t.themeId])}a(fe,"useMonkeysComponentAttributes");var zl=Symbol.for("@inf-monkeys-tech/monkeys-design/bento-depth@1"),Ol=globalThis,Hl=Ol[zl]??(Ol[zl]=he.createContext(0));function $n(){return he.useContext(Hl)}a($n,"useBentoDepth");function Wr({children:e,depth:t}){return jsxRuntime.jsx(Hl.Provider,{value:t,children:e})}a(Wr,"BentoDepthProvider");function mo({children:e}){return jsxRuntime.jsx(Wr,{depth:0,children:e})}a(mo,"BentoScope");var Fr=["background","glowColor","borderColor","borderWidth","borderStyle","radius","shadow","padding","gap"],Og={background:"hsl(var(--card, 0 0% 100%))",glowColor:"var(--monkeys-bento-glow-default)",borderColor:"hsl(var(--border, 214.3 31.8% 91.4%))",borderWidth:"1px",borderStyle:"solid",radius:"var(--radius, 0.75rem)",shadow:"none",padding:"var(--global-spacing, 0.75rem)",gap:"var(--global-spacing, 0.75rem)"},pi=new WeakMap;function Fl(e,t){if(!Number.isSafeInteger(t)||t<1)throw new RangeError("Bento level must be a positive safe integer.");let o=e&&pi.get(e)?.get(t);if(o)return o;let n={...Og},r=Object.fromEntries(Fr.map(s=>[s,"builtin"]));for(let s of Fr){let l=s==="padding"||s==="gap"?e?.density:e?.colorMode,d=s==="glowColor"?"component.bento":"semantic.bento",c=[`${d}.levels.level${t}.${s}`,`${d}.default.${s}`];for(let u of c){let m=l&&e?.cssValues[`${u}.${l}`]!==void 0?`${u}.${l}`:u,p=e?.cssValues[m];if(p!==void 0){n[s]=p,r[s]=m;break}}}let i=Object.freeze({values:Object.freeze(n),sources:Object.freeze(r)});if(e){let s=pi.get(e)??new Map;s.set(t,i),pi.set(e,s);}return i}a(Fl,"resolveBentoTokens");function mi(){let e=$n(),t=e+1,o=Fl(No(),t),n=Object.fromEntries(Fr.map(r=>[`--monkeys-bento-${r.replace(/[A-Z]/g,i=>`-${i.toLowerCase()}`)}`,o.values[r]]));return {parentDepth:e,level:t,variables:n}}a(mi,"useBentoSurface");var gi="[data-monkeys-bento-level]",_r="data-monkeys-scrollbar-active",Fg='[data-monkeys-scrollbar], [data-monkeys-scroll-viewport], [data-radix-scroll-area-viewport], .monkeys-scrollbar, .monkeys-ui-scroll-viewport, .monkeys-ui-description, .monkeys-ui-page-main, .monkeys-ui-dialog, .monkeys-ui-menu, .monkeys-ui-select-content, [style*="overflow"][style*="auto"], [style*="overflow"][style*="scroll"], .overflow-auto, .overflow-x-auto, .overflow-y-auto, .overflow-scroll, .overflow-x-scroll, .overflow-y-scroll';function _l(e,t){if(!(!(t instanceof Element)||!e.contains(t)||t.closest(gi)!==e))for(let o=t;o;o=o.parentElement){if(o instanceof HTMLElement){let n=o.matches("[data-monkeys-scrollbar]")?o.parentElement?.querySelector(":scope > [data-radix-scroll-area-viewport]"):o.querySelector(":scope > [data-radix-scroll-area-viewport]");if(n?.closest(gi)===e)return n;if(o.matches(Fg)){let r=getComputedStyle(o);if(/(auto|scroll|overlay)/.test(`${r.overflowX} ${r.overflowY}`))return o}}if(o===e)break}}a(_l,"viewportAt");function Ul(e,t=true){let o=he.useRef(),n=a(()=>{let i=o.current;i?.observer?.disconnect(),i?.marked.forEach(s=>s.removeAttribute(_r)),o.current=void 0;},"clear");he.useEffect(()=>n,[t]);let r=a((i,s)=>{if(!t||!i.isConnected||!i.matches(gi))return;o.current?.root!==i&&(n(),o.current={root:i,marked:new Set});let l=o.current;s!==void 0&&(l.pointerTarget=s);let d=i.ownerDocument.activeElement,c=_l(i,l.pointerTarget),u=d?.matches(":focus-visible")?_l(i,d):void 0;if(!c&&!u){l.observer?.disconnect(),l.observer=void 0,l.marked.forEach(p=>p.removeAttribute(_r)),l.marked.clear();return}let m=new Set;for(let p of [c,u])p&&(m.add(p),p.matches("[data-radix-scroll-area-viewport]")&&p.parentElement?.querySelectorAll(":scope > [data-monkeys-scrollbar]").forEach(g=>m.add(g)));l.marked.forEach(p=>{m.has(p)||p.removeAttribute(_r);}),m.forEach(p=>{l.marked.has(p)||p.setAttribute(_r,"");}),l.marked=m,l.observer||(l.observer=new MutationObserver(()=>r(i)),l.observer.observe(i,{childList:true,subtree:true}));},"update");return {onPointerEnter(i){r(i.currentTarget,i.target),e.onPointerEnter?.(i);},onPointerLeave(i){r(i.currentTarget,null),e.onPointerLeave?.(i);},onPointerOver(i){r(i.currentTarget,i.target),e.onPointerOver?.(i);},onPointerOut(i){r(i.currentTarget,i.relatedTarget),e.onPointerOut?.(i);},onFocusCapture(i){r(i.currentTarget),e.onFocusCapture?.(i);},onBlurCapture(i){let s=i.currentTarget;queueMicrotask(()=>r(s)),e.onBlurCapture?.(i);}}}a(Ul,"useBentoScrollbarVisibility");function Vl(e,t){let o=new WeakMap,n=new Map,r=1;return (...i)=>{let s=i.slice(0,-1),l=i[i.length-1],d=s.map(m=>{if(!m)return 0;let p=o.get(m);return p===void 0&&(p=r++,o.set(m,p)),p}).join(":"),c=n.get(d);if(!c){let m={};for(let p of e)m[p]=t(...s.map(g=>g?.[p]));c=Object.freeze(m),n.size>=64&&n.delete(n.keys().next().value),n.set(d,c);}let u={...c};if(l)for(let m of e){let p=l[m];p&&(u[m]=t(...s.map(g=>g?.[m]),p));}return u}}a(Vl,"createStaticSlotMerger");var _g={},Xe="motion-safe:transition motion-safe:duration-300 motion-safe:ease-out",Xt="motion-safe:transition-all motion-safe:duration-300 motion-safe:ease-out",Ur="motion-safe:transition-transform motion-safe:duration-300 motion-safe:ease-out",jl=v("[scrollbar-width:thin]","[scrollbar-color:hsl(var(--muted-foreground)/0.45)_transparent]","[&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar]:w-2","[&::-webkit-scrollbar-button]:hidden [&::-webkit-scrollbar-button]:h-0 [&::-webkit-scrollbar-button]:w-0 [&::-webkit-scrollbar-button]:bg-transparent","[&::-webkit-scrollbar-button:single-button]:hidden [&::-webkit-scrollbar-button:single-button]:h-0 [&::-webkit-scrollbar-button:single-button]:w-0","[&::-webkit-scrollbar-button:double-button]:hidden [&::-webkit-scrollbar-button:double-button]:h-0 [&::-webkit-scrollbar-button:double-button]:w-0","[&::-webkit-scrollbar-corner]:bg-transparent","[&::-webkit-scrollbar-track]:bg-transparent","[&:has(thead.sticky)::-webkit-scrollbar-track]:mt-[var(--base-table-header-height)]","[&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-muted-foreground/40","hover:[&::-webkit-scrollbar-thumb]:bg-muted-foreground/55"),Ug=v("[&.sticky_th]:sticky [&.sticky_th]:top-0 [&.sticky_th]:z-[2]","[&.sticky_th]:bg-[var(--base-table-sticky-header-bg)]","[&.sticky_th]:shadow-[inset_0_-1px_0_var(--base-table-header-separator)]"),ql={buttonBase:v("group/button inline-flex min-w-0 items-center justify-center gap-2 rounded-md border px-3 text-sm font-medium focus-visible:outline-hidden","cursor-pointer disabled:!cursor-not-allowed",Xt),buttonDefault:"border-border bg-background text-foreground hover:bg-accent/60",buttonPrimary:"border-primary/20 bg-primary/10 text-primary hover:bg-primary/15",buttonSuccess:"border-[hsl(var(--success,142_72%_29%)_/_0.30)] bg-[hsl(var(--success,142_72%_29%)_/_0.10)] text-[hsl(var(--success,142_72%_29%))] hover:bg-[hsl(var(--success,142_72%_29%)_/_0.15)]",buttonWarning:"border-[hsl(var(--warning,45_93%_47%)_/_0.30)] bg-[hsl(var(--warning,45_93%_47%)_/_0.10)] text-[hsl(var(--warning-foreground,28_73%_26%))] hover:bg-[hsl(var(--warning,45_93%_47%)_/_0.15)]",buttonDanger:"border-destructive/20 bg-destructive/10 text-destructive-text hover:bg-destructive/15",buttonMuted:"border-border/60 bg-muted/45 text-muted-foreground hover:bg-muted/70 hover:text-foreground",buttonActive:"border-primary/35 bg-primary/10 text-primary",buttonDisabled:"!cursor-not-allowed opacity-60",buttonIconOnly:"w-9 px-0",buttonIcon:"inline-flex h-4 w-4 shrink-0 items-center justify-center text-[inherit] [&_*]:!text-[inherit] [&_svg]:!stroke-current [&_svg_*]:!stroke-current",buttonLabel:"min-w-0 truncate",badgeBase:v("inline-flex max-w-full items-center gap-1.5 rounded-full border px-2 py-0.5 text-xs font-medium",Xe),badgeDefault:"border-border/60 bg-background text-foreground",badgePrimary:"border-primary/30 bg-primary/10 text-primary",badgeSuccess:"border-[hsl(var(--success,142_72%_29%)_/_0.30)] bg-[hsl(var(--success,142_72%_29%)_/_0.10)] text-[hsl(var(--success,142_72%_29%))]",badgeWarning:"border-[hsl(var(--warning,45_93%_47%)_/_0.30)] bg-[hsl(var(--warning,45_93%_47%)_/_0.10)] text-[hsl(var(--warning-foreground,28_73%_26%))]",badgeDanger:"border-destructive/30 bg-destructive/10 text-destructive-text",badgeMuted:"border-border/60 bg-muted text-muted-foreground",badgeIcon:"inline-flex h-3.5 w-3.5 shrink-0 items-center justify-center",badgeLabel:"min-w-0 truncate",textRoot:"min-w-0 break-words leading-6",textSizeXs:"text-xs",textSizeSm:"text-sm",textSizeMd:"text-base",textSizeLg:"text-lg",textSizeXl:"text-xl",typographyToneDefault:"text-foreground",typographyToneMuted:"text-muted-foreground",typographyTonePrimary:"text-primary",typographyToneSuccess:"text-emerald-700 dark:text-emerald-400",typographyToneWarning:"text-amber-700 dark:text-amber-400",typographyToneDanger:"text-destructive-text",typographyToneInherit:"text-inherit",headingRoot:"min-w-0 break-words font-semibold tracking-tight",headingSizeXs:"text-sm leading-5",headingSizeSm:"text-base leading-6",headingSizeMd:"text-lg leading-7",headingSizeLg:"text-xl leading-7",headingSizeXl:"text-2xl leading-8",headingSize2xl:"text-3xl leading-9",linkRoot:"inline break-words underline decoration-current/40 underline-offset-4 hover:decoration-current focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30",codeInline:"rounded border border-border/70 bg-muted/60 px-1.5 py-0.5 font-mono text-[0.875em] leading-[1.45] text-foreground",codeBlock:"m-0 max-w-full overflow-x-auto rounded-md border border-border/70 bg-muted/60 p-4 text-foreground",codeContent:"font-mono text-sm leading-6",kbdRoot:"inline-flex min-h-5 items-center rounded border border-border bg-muted/70 px-1.5 font-mono text-[0.75em] font-medium leading-5 text-foreground shadow-[inset_0_-1px_0_hsl(var(--monkeys-color-border))]",listRoot:"m-0 min-w-0 list-outside break-words ps-5 text-foreground",listSpacingCompact:"[&>li+li]:mt-1",listSpacingDefault:"[&>li+li]:mt-2",listSpacingRelaxed:"[&>li+li]:mt-3",listMarkerNone:"list-none ps-0",listMarkerDisc:"list-disc",listMarkerCircle:"list-[circle]",listMarkerSquare:"list-[square]",listMarkerDecimal:"list-decimal",listMarkerLowerAlpha:"list-[lower-alpha]",listMarkerUpperAlpha:"list-[upper-alpha]",listItem:"min-w-0 ps-1 leading-6 marker:text-muted-foreground",stackRoot:"flex min-w-0 flex-col",inlineRoot:"flex min-w-0 flex-row",gridRoot:"grid min-w-0",containerRoot:"mx-auto w-full min-w-0",aspectRatioRoot:"relative min-w-0 overflow-hidden [&>*]:h-full [&>*]:w-full",spinnerRoot:"inline-flex shrink-0 items-center justify-center text-current align-middle",spinnerIndicator:"h-5 w-5 rounded-full border-2 border-current border-r-transparent motion-safe:animate-spin motion-reduce:animate-none",visuallyHiddenRoot:"sr-only",visuallyHiddenFocusable:"focus:not-sr-only focus:fixed focus:left-4 focus:top-4 focus:z-[1000] focus:rounded-md focus:bg-background focus:px-4 focus:py-2 focus:text-foreground focus:shadow-lg focus:outline-hidden focus:ring-2 focus:ring-ring focus-within:not-sr-only focus-within:fixed focus-within:left-4 focus-within:top-4 focus-within:z-[1000] focus-within:rounded-md focus-within:bg-background focus-within:px-4 focus-within:py-2 focus-within:text-foreground focus-within:shadow-lg focus-within:ring-2 focus-within:ring-ring",fieldsetRoot:"min-w-0 border-0 p-0 text-foreground",fieldsetLegend:"min-w-0 text-sm font-semibold leading-6 text-foreground",fieldsetDescription:"mt-1 text-sm leading-5 text-muted-foreground",fieldsetError:"mt-1 text-sm leading-5 text-destructive-text",fieldsetContent:"mt-3 grid min-w-0 gap-3",stepsRoot:"m-0 min-w-0 list-none p-0 text-foreground",stepsHorizontal:"flex w-full max-w-full items-start overflow-x-auto pb-2",stepsVertical:"grid",stepsItem:"relative min-w-0",stepsItemHorizontal:"flex min-w-52 flex-1 items-start",stepsItemVertical:"pb-6 last:pb-0",stepsTrigger:"flex min-w-0 flex-1 items-start gap-3 rounded-md border-0 bg-transparent p-1 text-start text-inherit",stepsTriggerInteractive:"cursor-pointer hover:bg-accent/50 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 motion-safe:transition motion-safe:duration-300 motion-safe:ease-out",stepsTriggerDisabled:"!cursor-not-allowed opacity-60",stepsIndicator:"relative z-[1] inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-full border text-xs font-semibold",stepsIndicatorPending:"border-border bg-background text-muted-foreground",stepsIndicatorCurrent:"border-primary/50 bg-primary/10 text-primary",stepsIndicatorCompleted:"border-primary bg-primary text-primary-foreground",stepsIndicatorError:"border-destructive bg-destructive text-destructive-foreground",stepsContent:"grid min-w-0 gap-1 pt-0.5",stepsLabel:"min-w-0 break-words text-sm font-medium leading-5",stepsDescription:"min-w-0 break-words text-sm leading-5 text-muted-foreground",stepsStatus:"sr-only",stepsConnector:"shrink-0 bg-border",stepsConnectorHorizontal:"mt-3.5 h-px w-8",stepsConnectorVertical:"absolute bottom-0 top-8 start-3.5 w-px -translate-x-1/2",stepsConnectorCompleted:"bg-primary/60",stepsConnectorError:"bg-destructive/60",scrollAreaViewport:"min-h-0 min-w-0",numberInputControl:"tabular-nums",numberInputStepControls:"me-1 flex shrink-0 self-stretch overflow-hidden border-s border-border",numberInputStepButton:"flex min-h-6 w-7 cursor-pointer items-center justify-center border-0 bg-transparent px-1 text-xs leading-none text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:z-[1] focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring disabled:!cursor-not-allowed disabled:opacity-40",passwordInputControl:"pe-2",passwordInputToggle:"me-1 inline-flex min-h-7 shrink-0 cursor-pointer items-center justify-center rounded px-2 text-xs font-medium text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring disabled:!cursor-not-allowed disabled:opacity-40",inputGroupRoot:v("relative flex min-w-0 items-stretch overflow-hidden rounded-md border border-border bg-background text-foreground focus-within:border-primary/50 focus-within:ring-2 focus-within:ring-ring/30",Xe),inputGroupInvalid:"border-destructive/55 focus-within:border-destructive/70 focus-within:ring-destructive/25",inputGroupDisabled:"!cursor-not-allowed bg-muted/35",inputGroupContent:"flex min-w-0 flex-1 items-stretch [&>*]:min-w-0",inputGroupStartElement:"inline-flex shrink-0 items-center justify-center ps-3 pe-1 text-foreground/75",inputGroupEndElement:"inline-flex shrink-0 items-center justify-center ps-1 pe-3 text-foreground/75",inputGroupStartAddon:"inline-flex max-w-[min(40%,16rem)] shrink-0 items-center overflow-hidden border-e border-border bg-muted/60 px-3 text-sm text-foreground/75 text-ellipsis whitespace-nowrap [&>*]:min-w-0",inputGroupEndAddon:"inline-flex max-w-[min(40%,16rem)] shrink-0 items-center overflow-hidden border-s border-border bg-muted/60 px-3 text-sm text-foreground/75 text-ellipsis whitespace-nowrap [&>*]:min-w-0",panelRoot:v("group relative flex min-w-0 flex-col overflow-hidden rounded-lg border border-border/70 bg-background",Xt),panelInteractive:"cursor-pointer hover:shadow-md",panelSelected:"border-primary/45 bg-primary/5",panelDisabled:"!cursor-not-allowed opacity-60",panelMedia:"shrink-0 overflow-hidden",panelHeader:"min-w-0 p-token-lg",panelTitle:"min-w-0 truncate text-sm font-semibold leading-none text-foreground",panelDescription:"mt-1 text-sm leading-5 text-foreground/75",panelBody:"min-w-0 px-token-lg pb-token-lg text-sm text-foreground",panelBodyStandalone:"pt-token-lg",panelFooter:"shrink-0 border-t border-border/60 px-token-lg py-token-md",stateRoot:v("flex min-h-48 flex-col items-center justify-center rounded-lg border border-border/70 bg-background px-6 py-10 text-center",Xe),stateIcon:"mb-token-lg flex h-12 w-12 items-center justify-center rounded-full bg-muted text-muted-foreground motion-safe:animate-in motion-safe:fade-in",stateTitle:"text-sm font-semibold text-foreground",stateDescription:"mt-2 max-w-md text-sm leading-6 text-muted-foreground",stateActions:"mt-token-xl flex flex-wrap items-center justify-center gap-token-sm",loadingSpinner:"h-5 w-5 motion-safe:animate-spin motion-reduce:animate-none",fieldRoot:"grid min-w-0 gap-token-md",fieldLabelRow:"flex min-w-0 items-center justify-between gap-token-md",fieldLabel:"min-w-0 text-sm font-medium leading-none text-foreground",fieldRequired:"text-destructive-text",fieldDescription:"text-sm leading-5 text-muted-foreground",fieldMessage:"text-sm leading-5 text-muted-foreground",fieldControl:"min-w-0",controlWrapper:v("relative flex min-w-0 items-center rounded-md border border-border bg-background text-foreground focus-within:border-primary/35",Xe),controlBase:"min-w-0 flex-1 bg-transparent px-3 text-sm text-foreground outline-hidden placeholder:text-muted-foreground disabled:!cursor-not-allowed",controlInput:"h-9",controlTextarea:"min-h-24 resize-y py-2 leading-6",controlSelect:"h-9 cursor-pointer appearance-none pr-9 disabled:!cursor-not-allowed",controlIcon:"pointer-events-none ml-3 inline-flex h-4 w-4 shrink-0 items-center justify-center text-muted-foreground",controlTrailing:"mr-3 inline-flex shrink-0 items-center justify-center text-muted-foreground",controlInvalid:"border-destructive/45 focus-within:border-destructive/60",controlDisabled:"!cursor-not-allowed opacity-60",controlReadOnly:"bg-muted/35",selectChevron:v("pointer-events-none absolute right-3 top-1/2 h-2 w-2 -translate-y-1/2 rotate-45 border-b border-r border-current text-muted-foreground",Ur),selectMenu:"absolute left-0 right-0 top-[calc(100%+0.375rem)] z-50 max-h-60 overflow-auto rounded-md border border-border bg-background p-1 text-sm text-foreground shadow-lg outline-hidden",selectOption:v("flex min-h-8 w-full min-w-0 cursor-pointer items-center rounded-sm px-2.5 py-1.5 text-left text-sm text-foreground",Xt),selectOptionActive:"bg-accent text-accent-foreground",selectOptionSelected:"bg-primary/10 text-primary",selectOptionDisabled:"!cursor-not-allowed opacity-50",selectPlaceholder:"text-muted-foreground",selectNative:"sr-only",switchRoot:"inline-flex min-w-0 cursor-pointer items-start gap-3",switchInput:"sr-only",switchTrack:v("relative mt-0.5 inline-flex h-6 w-10 shrink-0 items-center rounded-full border border-border bg-muted focus-within:border-primary/35",Xe),switchThumb:v("h-4 w-4 translate-x-1 rounded-full bg-background shadow-sm",Ur),switchChecked:"border-primary/40 bg-primary/80 text-primary-foreground",switchDisabled:"!cursor-not-allowed opacity-60",switchContent:"grid min-w-0 gap-1",switchLabel:"text-sm font-medium leading-none text-foreground",switchDescription:"text-sm leading-5 text-muted-foreground",checkboxRoot:"inline-flex min-w-0 cursor-pointer items-start gap-3",checkboxInput:"sr-only",checkboxBox:v("mt-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded border border-border bg-background text-primary focus-within:border-primary/40",Xe),checkboxBoxChecked:"border-primary/45 bg-primary text-primary-foreground",checkboxBoxInvalid:"border-destructive/50",checkboxIndicator:"text-xs font-bold leading-none",checkboxDisabled:"!cursor-not-allowed opacity-60",checkboxContent:"grid min-w-0 gap-1",checkboxLabel:"text-sm font-medium leading-none text-foreground",checkboxDescription:"text-sm leading-5 text-muted-foreground",radioGroupRoot:"grid min-w-0 gap-2",radioOption:v("inline-flex min-w-0 cursor-pointer items-start gap-3 rounded-md border border-border/60 bg-background px-3 py-2 text-sm",Xt,"hover:bg-muted/35"),radioInput:"sr-only",radioMarker:v("mt-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full border border-border bg-background text-primary focus-within:border-primary/40",Xe),radioMarkerChecked:"border-primary/50 bg-primary/10",radioIndicator:"h-2 w-2 rounded-full bg-primary",radioOptionDisabled:"!cursor-not-allowed opacity-60 hover:bg-background",radioContent:"grid min-w-0 gap-1",radioLabel:"text-sm font-medium leading-none text-foreground",radioDescription:"text-sm leading-5 text-muted-foreground",dialogRoot:"relative",dialogTrigger:"",dialogTriggerDisabled:"!cursor-not-allowed opacity-60",dialogOverlay:"fixed inset-0 z-50 bg-background/70 backdrop-blur-sm motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out",dialogContent:"pointer-events-none fixed inset-0 z-50 flex min-h-0 items-center justify-center p-4",dialogPanel:v("pointer-events-auto relative flex max-h-[min(85vh,720px)] w-full max-w-lg min-w-0 flex-col overflow-hidden rounded-lg border border-border/70 bg-background text-foreground shadow-xl","motion-safe:animate-in motion-safe:fade-in motion-safe:zoom-in-95 motion-safe:duration-300 motion-safe:ease-out"),dialogHeader:"grid min-w-0 gap-1 border-b border-border/60 px-5 py-4",dialogTitle:"min-w-0 pr-8 text-base font-semibold leading-6 text-foreground",dialogDescription:"text-sm leading-6 text-muted-foreground",dialogBody:"min-h-0 min-w-0 overflow-auto px-5 py-4 text-sm text-foreground",dialogFooter:"flex shrink-0 flex-wrap items-center justify-end gap-2 border-t border-border/60 px-5 py-4",dialogClose:v("absolute right-3 top-3 inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-md text-muted-foreground hover:bg-muted/60 hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30",Xt),dropdownRoot:"relative inline-flex min-w-0",dropdownTrigger:"",dropdownTriggerDisabled:"!cursor-not-allowed opacity-60",dropdownMenu:"z-50 min-w-48 overflow-hidden rounded-md border border-border bg-background p-1 text-sm text-foreground shadow-lg motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out",dropdownMenuTop:"bottom-[calc(100%+0.375rem)] top-auto",dropdownMenuEnd:"left-auto right-0",dropdownLabel:"px-2.5 py-1.5 text-xs font-semibold uppercase tracking-[0.12em] text-muted-foreground",dropdownSeparator:"my-1 h-px bg-border/70",dropdownItem:v("flex min-w-0 cursor-pointer items-center gap-2 rounded-sm px-2.5 py-2 text-left text-sm text-foreground hover:bg-accent/60 focus:bg-accent/60 data-[highlighted]:bg-accent/60 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30",Xt),dropdownItemDanger:"text-destructive-text hover:bg-destructive/10 focus:bg-destructive/10 data-[highlighted]:bg-destructive/10",dropdownItemDisabled:"!cursor-not-allowed opacity-50 hover:bg-transparent focus:bg-transparent data-[highlighted]:bg-transparent",dropdownItemIcon:"inline-flex h-4 w-4 shrink-0 items-center justify-center",dropdownItemContent:"grid min-w-0 flex-1 gap-0.5",dropdownItemLabel:"min-w-0 truncate",dropdownItemDescription:"min-w-0 truncate text-xs leading-4 text-muted-foreground",dropdownItemShortcut:"ml-3 shrink-0 text-xs font-medium text-muted-foreground",tooltipRoot:"relative inline-flex min-w-0",tooltipTrigger:"inline-flex min-w-0",tooltipContent:"pointer-events-none z-50 max-w-xs rounded-md border border-border bg-popover px-2.5 py-1.5 text-xs leading-5 text-popover-foreground shadow-lg motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out",noticeBase:v("flex min-w-0 gap-3 rounded-lg border px-4 py-3 text-sm",Xe,"motion-safe:animate-in motion-safe:fade-in"),noticeDefault:"border-border bg-background text-foreground",noticePrimary:"border-primary/25 bg-primary/10 text-primary",noticeSuccess:"border-[hsl(var(--success,142_72%_29%)_/_0.30)] bg-[hsl(var(--success,142_72%_29%)_/_0.10)] text-foreground",noticeWarning:"border-[hsl(var(--warning,45_93%_47%)_/_0.30)] bg-[hsl(var(--warning,45_93%_47%)_/_0.10)] text-[hsl(var(--warning-foreground,28_73%_26%))]",noticeDanger:"border-destructive/30 bg-destructive/10 text-destructive-text",noticeMuted:"border-border/60 bg-muted/35 text-muted-foreground",noticeIcon:"mt-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center motion-safe:animate-in motion-safe:fade-in",noticeTitle:"font-semibold leading-5",noticeDescription:"leading-6",noticeActions:"mt-3 flex flex-wrap items-center gap-2",dividerRoot:v("shrink-0 border-border/70",Xe),dividerLabel:"mx-3 shrink-0 text-xs font-medium uppercase tracking-[0.12em] text-muted-foreground motion-safe:animate-in motion-safe:fade-in",sectionHeaderRoot:"flex min-w-0 flex-wrap items-start justify-between gap-token-md motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out",sectionHeaderContent:"grid min-w-0 gap-1",sectionHeaderEyebrow:"text-xs font-semibold uppercase tracking-[0.14em] text-muted-foreground",sectionHeaderTitle:"text-base font-semibold leading-6 text-foreground",sectionHeaderDescription:"max-w-2xl text-sm leading-6 text-muted-foreground",sectionHeaderActions:"flex shrink-0 flex-wrap items-center gap-2",tabsRoot:"grid min-w-0 gap-token-md",tabsList:v("inline-flex min-w-0 flex-wrap items-center gap-token-xs rounded-lg border border-border/70 bg-muted/30 p-token-xs",Xe),tabsTrigger:v("inline-flex min-w-0 cursor-pointer items-center justify-center rounded-md px-3 py-1.5 text-sm font-medium text-muted-foreground hover:bg-background/70 hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30 focus-visible:ring-offset-1 motion-reduce:transition-none",Xt),tabsTriggerActive:"bg-background text-foreground shadow-sm",tabsTriggerDisabled:"!cursor-not-allowed opacity-50 hover:bg-transparent",tabsPanel:"min-w-0 rounded-lg border border-border/70 bg-background p-4 text-sm text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30 motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out motion-reduce:transition-none",segmentedRoot:v("inline-flex min-w-0 items-center gap-1 rounded-lg border border-border/70 bg-muted/30 p-1",Xe),segmentedItem:v("inline-flex min-w-0 cursor-pointer items-center justify-center gap-1.5 rounded-md px-3 py-1.5 text-sm font-medium text-muted-foreground hover:bg-background/70 hover:text-foreground focus-visible:outline-hidden",Xt),segmentedItemActive:"bg-background text-foreground shadow-sm",segmentedItemDisabled:"!cursor-not-allowed opacity-50 hover:bg-transparent",progressRoot:"grid min-w-0 gap-2",progressTrack:"h-2 w-full overflow-hidden rounded-full bg-muted",progressIndicator:"h-full rounded-full bg-primary motion-safe:transition-[width] motion-safe:duration-500 motion-safe:ease-out",progressLabelRow:"flex min-w-0 items-center justify-between gap-3",progressLabel:"min-w-0 truncate text-sm font-medium text-foreground",progressValue:"shrink-0 text-xs font-medium text-muted-foreground",skeletonRoot:"relative overflow-hidden rounded-md bg-muted/70",avatarRoot:"relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full border border-border bg-muted text-sm font-semibold text-muted-foreground motion-safe:transition motion-safe:duration-300 motion-safe:ease-out",avatarImage:"h-full w-full object-cover",avatarFallback:"flex h-full w-full items-center justify-center bg-muted text-foreground",avatarStatus:"absolute bottom-0 right-0 h-2.5 w-2.5 rounded-full border-2 border-background bg-muted-foreground motion-safe:animate-pulse",avatarText:"min-w-0 truncate text-sm font-medium text-foreground",toolbarRoot:v("flex min-w-0 flex-wrap items-center justify-between gap-token-md rounded-lg border border-border/70 bg-background px-token-lg py-token-md",Xe),toolbarLeading:"flex min-w-0 items-center gap-token-md",toolbarTitle:"min-w-0 truncate text-sm font-semibold text-foreground",toolbarDescription:"mt-0.5 text-sm leading-5 text-muted-foreground",toolbarContent:"min-w-0 flex-1",toolbarActions:"flex shrink-0 flex-wrap items-center gap-token-sm",breadcrumbRoot:"min-w-0 text-sm text-muted-foreground",breadcrumbList:"flex min-w-0 flex-wrap items-center gap-1.5",breadcrumbItem:"inline-flex min-w-0 items-center gap-1.5",breadcrumbLink:"min-w-0 cursor-pointer truncate text-muted-foreground hover:text-foreground disabled:!cursor-not-allowed disabled:opacity-50 aria-disabled:!cursor-not-allowed aria-disabled:opacity-50 aria-disabled:hover:text-muted-foreground motion-safe:transition motion-safe:duration-300 motion-safe:ease-out",breadcrumbCurrent:"min-w-0 truncate font-medium text-foreground",breadcrumbSeparator:"shrink-0 text-muted-foreground/70",paginationRoot:"flex min-w-0 flex-wrap items-center justify-between gap-3 text-sm",paginationInfo:"min-w-0 text-muted-foreground",paginationControls:"flex min-w-0 flex-wrap items-center justify-end gap-1.5",paginationButton:"inline-flex h-8 min-w-8 cursor-pointer items-center justify-center whitespace-nowrap rounded-md border border-border bg-background px-2.5 text-sm font-medium text-foreground hover:bg-accent/60 disabled:!cursor-not-allowed disabled:opacity-50 motion-safe:transition motion-safe:duration-300 motion-safe:ease-out",paginationButtonDisabled:"!cursor-not-allowed opacity-50",paginationPage:"inline-flex h-8 min-w-8 cursor-default items-center justify-center rounded-md bg-muted/50 px-2.5 text-sm font-medium text-foreground hover:bg-muted/50",paginationEllipsis:"inline-flex h-8 min-w-6 items-center justify-center px-1 text-sm text-muted-foreground",descriptionListRoot:"grid min-w-0 gap-3 text-sm",descriptionListItem:"grid min-w-0 gap-1 rounded-md border border-border/60 bg-background px-3 py-2 motion-safe:transition motion-safe:duration-300 motion-safe:ease-out hover:shadow-sm",descriptionListTerm:"min-w-0 truncate text-xs font-medium uppercase tracking-[0.08em] text-muted-foreground",descriptionListValue:"min-w-0 text-sm leading-6 text-foreground",accordionRoot:"grid min-w-0 gap-2",accordionItem:"overflow-hidden rounded-lg border border-border/70 bg-background motion-safe:transition motion-safe:duration-300 motion-safe:ease-out motion-reduce:transition-none",accordionTrigger:"flex w-full min-w-0 cursor-pointer items-center justify-between gap-3 px-4 py-3 text-start text-sm font-medium text-foreground hover:bg-muted/40 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring disabled:!cursor-not-allowed disabled:opacity-50 motion-safe:transition motion-safe:duration-300 motion-safe:ease-out motion-reduce:transition-none",accordionTriggerIcon:v("h-2 w-2 shrink-0 rotate-45 border-b border-r border-current text-muted-foreground",Ur,"motion-reduce:transition-none"),accordionPanel:"border-t border-border/60 px-4 py-3 text-sm leading-6 text-muted-foreground motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out motion-reduce:animate-none",menuTrigger:"inline-flex min-w-0",menuContent:"z-50 min-w-44 overflow-hidden rounded-md border border-border bg-background p-1 text-sm text-foreground shadow-lg outline-hidden motion-safe:animate-in motion-safe:fade-in motion-safe:zoom-in-95 motion-safe:duration-300 motion-safe:ease-out",menuLabel:"px-2 py-1.5 text-xs font-medium text-muted-foreground",menuSeparator:"-mx-1 my-1 h-px bg-border",menuItem:v("relative flex min-h-8 min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm px-2.5 py-1.5 text-sm text-foreground outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:!cursor-not-allowed data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",Xt),menuItemDefault:"text-foreground",menuItemPrimary:"text-primary focus:text-primary data-[highlighted]:text-primary",menuItemSuccess:"text-[hsl(var(--success,142_72%_29%))] focus:text-[hsl(var(--success,142_72%_29%))] data-[highlighted]:text-[hsl(var(--success,142_72%_29%))]",menuItemWarning:"text-[hsl(var(--warning-foreground,28_73%_26%))] focus:text-[hsl(var(--warning-foreground,28_73%_26%))] data-[highlighted]:text-[hsl(var(--warning-foreground,28_73%_26%))]",menuItemDanger:"text-destructive-text focus:text-destructive-text data-[highlighted]:text-destructive-text",menuItemMuted:"text-muted-foreground focus:text-foreground data-[highlighted]:text-foreground",menuItemDisabled:"!cursor-not-allowed opacity-50 data-[disabled]:pointer-events-none",menuItemIcon:"inline-flex h-4 w-4 shrink-0 items-center justify-center",menuItemLabel:"min-w-0 flex-1 truncate",menuItemShortcut:"ml-4 shrink-0 text-xs font-medium text-muted-foreground",menuCheckboxIndicator:"absolute left-2 inline-flex h-4 w-4 items-center justify-center text-current",menuRadioIndicator:"absolute left-2 inline-flex h-4 w-4 items-center justify-center text-current",menuSubTrigger:v("relative flex min-h-8 min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm px-2.5 py-1.5 text-sm text-foreground outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:!cursor-not-allowed data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",Xt),menuSubTriggerIcon:"ml-auto inline-flex h-4 w-4 shrink-0 items-center justify-center text-muted-foreground",menuSubContent:"z-50 min-w-40 overflow-hidden rounded-md border border-border bg-background p-1 text-sm text-foreground shadow-lg outline-hidden motion-safe:animate-in motion-safe:fade-in motion-safe:zoom-in-95 motion-safe:duration-300 motion-safe:ease-out",tableContainer:v("relative isolate min-w-0 overflow-auto rounded-lg border border-border/70 bg-background/95 bg-clip-padding [scrollbar-gutter:stable]","[--base-table-header-height:2.75rem] [--base-table-split-scrollbar-gutter:0.75rem]","[--base-table-sticky-header-bg:hsl(var(--background))] [--base-table-header-separator:hsl(var(--border)_/_0.7)]",jl,Xe),tableContainerFooterAttached:"!rounded-b-none !shadow-none",tableRoot:"w-full caption-bottom border-separate border-spacing-0 text-sm text-foreground",tableCaption:"mt-3 text-sm text-muted-foreground",tableHeader:v("relative z-[2] bg-transparent [&_tr]:bg-transparent",Ug),tableBody:"[&_tr:last-child>*]:border-b-0",tableFooter:"bg-muted/30 font-medium [&_tr>*]:border-t [&_tr>*]:border-border/70",tableFooterBar:v("flex min-w-0 flex-wrap items-center justify-between gap-3 rounded-lg border border-border/70 bg-muted/20 px-4 py-3 text-sm text-foreground shadow-none",Xe),tableFooterBarAttached:"-mt-px rounded-t-none border-t border-border/70 shadow-none",tableFooterBarLeading:"flex min-w-0 items-center gap-2",tableFooterBarContent:"min-w-0 flex-1",tableFooterBarActions:"ms-auto flex shrink-0 flex-wrap items-center gap-2",tableSplitRoot:"grid w-full min-w-0 grid-cols-[minmax(0,1fr)] grid-rows-[auto_minmax(0,1fr)_auto] caption-bottom border-separate border-spacing-0 text-sm text-foreground",tableSplitHeader:"block w-full min-w-0 shrink-0 overflow-x-hidden overflow-y-hidden bg-transparent",tableSplitBody:v("block min-h-0 w-full min-w-0 max-w-full justify-self-stretch overflow-auto [scrollbar-gutter:stable]",jl),tableSplitFooter:"block w-full min-w-0 shrink-0 overflow-x-hidden overflow-y-hidden",tableSplitRow:"grid w-max min-w-full [grid-template-columns:var(--base-table-column-template)]",tableSplitHead:"flex min-w-0 overflow-hidden",tableSplitCell:"block min-w-0 overflow-hidden [overflow-wrap:anywhere]",tableRow:v("[&>*]:border-b [&>*]:border-border/60 data-[state=selected]:bg-primary/5 data-[state=selected]:[&>*]:bg-primary/5",Xe),tableRowInteractive:"cursor-pointer [--base-table-row-hover-bg:hsl(var(--muted)_/_0.35)] hover:bg-[var(--base-table-row-hover-bg)] hover:[&>td]:bg-[var(--base-table-row-hover-bg)] hover:[&>th]:bg-[var(--base-table-row-hover-bg)]",tableRowSelected:"bg-primary/5 [&>*]:bg-primary/5",tableRowDisabled:"!cursor-not-allowed opacity-60",tableHead:"relative h-11 whitespace-nowrap px-3 py-2 text-left align-middle text-xs font-semibold text-muted-foreground shadow-[inset_0_-1px_0_var(--base-table-header-separator)]",tableHeadContent:"flex min-w-0 items-center justify-between gap-2",tableHeadMain:"flex min-w-0 items-center gap-2",tableHeadIcon:"inline-flex h-4 w-4 shrink-0 items-center justify-center text-muted-foreground",tableHeadText:"grid min-w-0 gap-0.5",tableHeadLabel:"min-w-0 truncate text-xs font-semibold leading-4 text-foreground",tableHeadDescription:"min-w-0 truncate text-xs font-normal leading-4 text-muted-foreground",tableHeadMeta:"shrink-0 text-xs font-medium text-muted-foreground",tableHeadActions:"flex shrink-0 items-center gap-1",tableHeadSortButton:v("inline-flex min-w-0 cursor-pointer items-center gap-1 rounded-sm text-left focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30 disabled:!cursor-not-allowed disabled:opacity-60",Xe),tableHeadSortIcon:v("inline-flex h-3 w-3 shrink-0 items-center justify-center text-muted-foreground",Ur),tableHeadDragHandle:v("inline-flex h-5 w-4 shrink-0 cursor-grab items-center justify-center rounded-sm text-muted-foreground hover:bg-muted active:cursor-grabbing focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30 disabled:!cursor-not-allowed disabled:opacity-50",Xe),tableHeadResizeHandle:v("absolute end-0 top-1/2 h-7 w-2 -translate-y-1/2 cursor-col-resize touch-none rounded-sm after:absolute after:start-1/2 after:top-1/2 after:h-5 after:w-px after:-translate-x-1/2 after:-translate-y-1/2 after:bg-border hover:after:bg-primary focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30 disabled:!cursor-not-allowed disabled:opacity-50",Xe),tableCell:"min-w-0 px-3 py-2 align-middle text-sm text-foreground [overflow-wrap:anywhere]",tableCellAlignCenter:"text-center",tableCellAlignRight:"text-right",tableEmptyRow:"[&>*]:border-b [&>*]:border-border/60",tableEmptyCell:"px-4 py-10 text-center",tableEmptyContent:"mx-auto flex max-w-md flex-col items-center justify-center text-center",tableEmptyIcon:"mb-3 flex h-10 w-10 items-center justify-center rounded-full bg-muted text-muted-foreground",tableEmptyTitle:"text-sm font-semibold text-foreground",tableEmptyDescription:"mt-1 text-sm leading-6 text-muted-foreground",tableEmptyActions:"mt-4 flex flex-wrap items-center justify-center gap-2",tableLoadingRow:"[&>*]:border-b [&>*]:border-border/60",tableLoadingCell:"px-3 py-2",tableLoadingSkeleton:"h-4 w-full rounded-md bg-muted/70",layoutRoot:v("grid min-w-0 overflow-hidden grid-rows-[auto_minmax(0,1fr)_auto] gap-3 rounded-lg border border-border/70 bg-background p-3 text-foreground",Xe),layoutRootFull:"h-full min-h-0",layoutHeader:"min-w-0",layoutBody:"grid min-h-0 min-w-0 overflow-hidden gap-token-md",layoutSidebar:"min-h-0 min-w-0 overflow-hidden",layoutMain:"min-h-0 min-w-0 overflow-hidden",layoutAside:"min-h-0 min-w-0 overflow-hidden",layoutFooter:"min-w-0",layoutPane:v("h-full max-h-full min-h-0 min-w-0 overflow-hidden rounded-lg bg-background text-foreground",Xe),layoutPaneScrollable:"overflow-auto",layoutPaneBordered:"border border-border/70",layoutPaneMuted:"bg-muted/25",layoutPaneSoft:"bg-background/95 shadow-sm",layoutPaneTransparent:"bg-transparent shadow-none",layoutSplitRoot:"grid min-h-0 min-w-0 overflow-hidden",layoutSplitHorizontal:"grid-flow-col",layoutSplitVertical:"grid-flow-row",layoutSplitPane:"min-h-0 min-w-0 overflow-hidden",layoutSplitPrimary:"",layoutSplitSecondary:"",layoutResizeHandle:v("group/resize relative z-10 flex shrink-0 items-center justify-center bg-transparent text-muted-foreground hover:bg-border/60 active:bg-border/70 focus-visible:bg-border/60 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30",Xt),layoutResizeHandleHorizontal:"w-2 cursor-col-resize",layoutResizeHandleVertical:"h-2 cursor-row-resize",layoutResizeHandleDisabled:"cursor-default opacity-60",layoutResizeHandleIndicator:"rounded-full bg-muted-foreground/45 group-hover/resize:bg-primary/70"},Vg={compact:{buttonBase:"h-8 px-2.5 text-xs",buttonIconOnly:"h-8 w-8 px-0",badgeBase:"px-1.5 py-0 text-xs",panelHeader:"p-token-md",panelBody:"px-token-md pb-token-md text-xs",panelBodyStandalone:"pt-token-md",panelFooter:"px-token-md py-token-md",stateRoot:"min-h-36 px-4 py-7",stateIcon:"mb-3 h-10 w-10",fieldRoot:"gap-token-sm",fieldLabel:"text-xs",fieldDescription:"text-xs leading-5",fieldMessage:"text-xs leading-5",controlInput:"h-8 text-xs",controlTextarea:"min-h-20 text-xs",controlSelect:"h-8 text-xs",selectMenu:"text-xs",selectOption:"min-h-7 px-2 py-1 text-xs",switchTrack:"h-5 w-9",switchThumb:"h-3.5 w-3.5",checkboxBox:"h-3.5 w-3.5",checkboxLabel:"text-xs",checkboxDescription:"text-xs leading-5",radioOption:"px-2 py-1.5 text-xs",radioMarker:"h-3.5 w-3.5",radioIndicator:"h-1.5 w-1.5",radioLabel:"text-xs",radioDescription:"text-xs leading-5",dialogPanel:"max-w-md",dialogHeader:"px-4 py-3",dialogTitle:"text-sm leading-5",dialogDescription:"text-xs leading-5",dialogBody:"px-4 py-3 text-xs",dialogFooter:"px-4 py-3",dropdownMenu:"min-w-44 text-xs",dropdownItem:"px-2 py-1.5 text-xs",tooltipContent:"text-xs leading-4",noticeBase:"px-3 py-2 text-xs",dividerLabel:"text-xs",sectionHeaderRoot:"gap-token-sm",sectionHeaderTitle:"text-sm leading-5",sectionHeaderDescription:"text-xs leading-5",tabsList:"gap-token-xs p-token-xs",tabsTrigger:"px-2 py-1 text-xs",tabsPanel:"p-3 text-xs",segmentedRoot:"gap-token-xs p-token-xs",segmentedItem:"px-2 py-1 text-xs",progressTrack:"h-1.5",avatarRoot:"text-xs",toolbarRoot:"gap-token-sm px-token-md py-token-md",toolbarTitle:"text-xs",toolbarDescription:"text-xs leading-5",paginationButton:"h-7 min-w-7 px-2 text-xs",paginationPage:"h-7 min-w-7 px-2 text-xs",descriptionListRoot:"gap-2 text-xs",descriptionListItem:"px-2 py-1.5",descriptionListTerm:"text-xs",descriptionListValue:"text-xs leading-5",accordionTrigger:"px-3 py-2 text-xs",accordionPanel:"px-3 py-2 text-xs leading-5",menuContent:"min-w-40 p-0.5 text-xs",menuSubContent:"min-w-36 p-0.5 text-xs",menuLabel:"px-2 py-1 text-xs",menuItem:"min-h-7 px-2 py-1 text-xs",menuSubTrigger:"min-h-7 px-2 py-1 text-xs",menuItemShortcut:"text-xs",tableContainer:"[--base-table-header-height:2.25rem]",tableHead:"h-9 px-2 py-1.5 text-xs",tableCell:"px-2 py-1.5 text-xs",tableHeadLabel:"text-xs",tableHeadDescription:"text-xs leading-3",tableLoadingCell:"px-2 py-1.5",layoutRoot:"gap-token-md p-token-md",layoutBody:"gap-token-md",layoutPane:"rounded-md text-xs",layoutResizeHandleHorizontal:"w-1.5",layoutResizeHandleVertical:"h-1.5"},default:{buttonBase:"h-9"},comfortable:{buttonBase:"h-10 px-3.5",buttonIconOnly:"h-10 w-10 px-0",badgeBase:"px-2.5 py-1",panelHeader:"p-token-xl",panelBody:"px-token-xl pb-token-xl",panelBodyStandalone:"pt-token-xl",panelFooter:"px-token-xl py-token-lg",stateRoot:"min-h-56 px-8 py-12",stateIcon:"mb-5 h-14 w-14",fieldRoot:"gap-token-md",controlInput:"h-10",controlTextarea:"min-h-28",controlSelect:"h-10",selectMenu:"p-1.5",selectOption:"min-h-9 px-3 py-2",switchTrack:"h-7 w-12",switchThumb:"h-5 w-5",checkboxBox:"h-5 w-5",radioOption:"px-4 py-3",radioMarker:"h-5 w-5",radioIndicator:"h-2.5 w-2.5",dialogPanel:"max-w-xl",dialogHeader:"px-6 py-5",dialogBody:"px-6 py-5",dialogFooter:"px-6 py-5",dropdownMenu:"min-w-56",dropdownItem:"px-3 py-2.5",noticeBase:"px-5 py-4",sectionHeaderTitle:"text-lg leading-7",tabsTrigger:"px-3.5 py-2",tabsPanel:"p-5",segmentedItem:"px-3.5 py-2",progressTrack:"h-2.5",toolbarRoot:"px-token-xl py-token-lg",paginationButton:"h-9 min-w-9 px-3",paginationPage:"h-9 min-w-9 px-3",descriptionListItem:"px-4 py-3",accordionTrigger:"px-5 py-4",accordionPanel:"px-5 py-4",menuContent:"min-w-48 p-1.5",menuSubContent:"min-w-44 p-1.5",menuItem:"min-h-9 px-3 py-2",menuSubTrigger:"min-h-9 px-3 py-2",tableContainer:"[--base-table-header-height:3rem]",tableHead:"h-12 px-4 py-3",tableCell:"px-4 py-3",tableLoadingCell:"px-4 py-3",layoutRoot:"gap-token-lg p-token-lg",layoutBody:"gap-token-lg",layoutPane:"rounded-xl",layoutResizeHandleHorizontal:"w-2.5",layoutResizeHandleVertical:"h-2.5"}},jg={none:{buttonBase:"rounded-none",badgeBase:"rounded-none",panelRoot:"rounded-none",stateRoot:"rounded-none",stateIcon:"rounded-none",controlWrapper:"rounded-none",selectMenu:"rounded-none",selectOption:"rounded-none",switchTrack:"rounded-none",switchThumb:"rounded-none",checkboxBox:"rounded-none",radioOption:"rounded-none",dialogPanel:"rounded-none",dialogClose:"rounded-none",dropdownMenu:"rounded-none",dropdownItem:"rounded-none",tooltipContent:"rounded-none",noticeBase:"rounded-none",tabsList:"rounded-none",tabsTrigger:"rounded-none",tabsPanel:"rounded-none",segmentedRoot:"rounded-none",segmentedItem:"rounded-none",progressTrack:"rounded-none",progressIndicator:"rounded-none",skeletonRoot:"rounded-none",avatarRoot:"rounded-none",avatarStatus:"rounded-none",toolbarRoot:"rounded-none",paginationButton:"rounded-none",paginationPage:"rounded-none",descriptionListItem:"rounded-none",accordionItem:"rounded-none",menuContent:"rounded-none",menuItem:"rounded-none",menuSubTrigger:"rounded-none",menuSubContent:"rounded-none",tableContainer:"rounded-none",tableEmptyIcon:"rounded-none",tableLoadingSkeleton:"rounded-none",layoutRoot:"rounded-none",layoutPane:"rounded-none"},sm:{buttonBase:"rounded-sm",badgeBase:"rounded-sm",panelRoot:"rounded-sm",stateRoot:"rounded-sm",stateIcon:"rounded-sm",controlWrapper:"rounded-sm",selectMenu:"rounded-sm",selectOption:"rounded-sm",switchTrack:"rounded-sm",switchThumb:"rounded-sm",checkboxBox:"rounded-sm",radioOption:"rounded-sm",dialogPanel:"rounded-sm",dialogClose:"rounded-sm",dropdownMenu:"rounded-sm",dropdownItem:"rounded-sm",tooltipContent:"rounded-sm",noticeBase:"rounded-sm",tabsList:"rounded-sm",tabsTrigger:"rounded-sm",tabsPanel:"rounded-sm",segmentedRoot:"rounded-sm",segmentedItem:"rounded-sm",progressTrack:"rounded-sm",progressIndicator:"rounded-sm",skeletonRoot:"rounded-sm",avatarRoot:"rounded-sm",avatarStatus:"rounded-sm",toolbarRoot:"rounded-sm",paginationButton:"rounded-sm",paginationPage:"rounded-sm",descriptionListItem:"rounded-sm",accordionItem:"rounded-sm",menuContent:"rounded-sm",menuItem:"rounded-sm",menuSubTrigger:"rounded-sm",menuSubContent:"rounded-sm",tableContainer:"rounded-sm",tableEmptyIcon:"rounded-sm",tableLoadingSkeleton:"rounded-sm",layoutRoot:"rounded-sm",layoutPane:"rounded-sm"},md:{},lg:{buttonBase:"rounded-lg",badgeBase:"rounded-lg",panelRoot:"rounded-xl",stateRoot:"rounded-xl",stateIcon:"rounded-xl",controlWrapper:"rounded-lg",selectMenu:"rounded-lg",selectOption:"rounded-md",switchTrack:"rounded-full",switchThumb:"rounded-full",checkboxBox:"rounded-md",radioOption:"rounded-xl",dialogPanel:"rounded-xl",dialogClose:"rounded-lg",dropdownMenu:"rounded-lg",dropdownItem:"rounded-md",tooltipContent:"rounded-md",noticeBase:"rounded-xl",tabsList:"rounded-xl",tabsTrigger:"rounded-lg",tabsPanel:"rounded-xl",segmentedRoot:"rounded-xl",segmentedItem:"rounded-lg",skeletonRoot:"rounded-lg",toolbarRoot:"rounded-xl",descriptionListItem:"rounded-lg",accordionItem:"rounded-xl",menuContent:"rounded-lg",menuItem:"rounded-md",menuSubTrigger:"rounded-md",menuSubContent:"rounded-lg",tableContainer:"rounded-xl",tableEmptyIcon:"rounded-xl",tableLoadingSkeleton:"rounded-lg",layoutRoot:"rounded-xl",layoutPane:"rounded-xl"},xl:{buttonBase:"rounded-xl",badgeBase:"rounded-xl",panelRoot:"rounded-2xl",stateRoot:"rounded-2xl",stateIcon:"rounded-2xl",controlWrapper:"rounded-xl",selectMenu:"rounded-xl",selectOption:"rounded-lg",switchTrack:"rounded-full",switchThumb:"rounded-full",checkboxBox:"rounded-lg",radioOption:"rounded-2xl",dialogPanel:"rounded-2xl",dialogClose:"rounded-xl",dropdownMenu:"rounded-xl",dropdownItem:"rounded-lg",tooltipContent:"rounded-lg",noticeBase:"rounded-2xl",tabsList:"rounded-2xl",tabsTrigger:"rounded-xl",tabsPanel:"rounded-2xl",segmentedRoot:"rounded-2xl",segmentedItem:"rounded-xl",skeletonRoot:"rounded-xl",toolbarRoot:"rounded-2xl",paginationButton:"rounded-xl",paginationPage:"rounded-xl",descriptionListItem:"rounded-xl",accordionItem:"rounded-2xl",menuContent:"rounded-xl",menuItem:"rounded-lg",menuSubTrigger:"rounded-lg",menuSubContent:"rounded-xl",tableContainer:"rounded-2xl",tableEmptyIcon:"rounded-2xl",tableLoadingSkeleton:"rounded-xl",layoutRoot:"rounded-2xl",layoutPane:"rounded-2xl"},full:{buttonBase:"rounded-full",badgeBase:"rounded-full",panelRoot:"rounded-2xl",stateRoot:"rounded-2xl",stateIcon:"rounded-full",controlWrapper:"rounded-full",selectMenu:"rounded-2xl",selectOption:"rounded-full",switchTrack:"rounded-full",switchThumb:"rounded-full",checkboxBox:"rounded-full",radioOption:"rounded-2xl",dialogPanel:"rounded-2xl",dialogClose:"rounded-full",dropdownMenu:"rounded-2xl",dropdownItem:"rounded-full",tooltipContent:"rounded-full",noticeBase:"rounded-2xl",tabsList:"rounded-full",tabsTrigger:"rounded-full",tabsPanel:"rounded-2xl",segmentedRoot:"rounded-full",segmentedItem:"rounded-full",progressTrack:"rounded-full",progressIndicator:"rounded-full",skeletonRoot:"rounded-full",avatarRoot:"rounded-full",avatarStatus:"rounded-full",toolbarRoot:"rounded-2xl",paginationButton:"rounded-full",paginationPage:"rounded-full",descriptionListItem:"rounded-2xl",accordionItem:"rounded-2xl",menuContent:"rounded-2xl",menuItem:"rounded-full",menuSubTrigger:"rounded-full",menuSubContent:"rounded-2xl",tableContainer:"rounded-2xl",tableEmptyIcon:"rounded-full",tableLoadingSkeleton:"rounded-full",layoutRoot:"rounded-2xl",layoutPane:"rounded-2xl"}},Gg={none:{buttonBase:"border-transparent",badgeBase:"border-transparent",panelRoot:"border-transparent",panelFooter:"border-transparent",stateRoot:"border-transparent",controlWrapper:"border-transparent",selectMenu:"border-transparent",switchTrack:"border-transparent",checkboxBox:"border-transparent",radioOption:"border-transparent",radioMarker:"border-transparent",dialogPanel:"border-transparent",dialogHeader:"border-transparent",dialogFooter:"border-transparent",dropdownMenu:"border-transparent",tooltipContent:"border-transparent",noticeBase:"border-transparent",dividerRoot:"border-transparent",tabsList:"border-transparent",tabsPanel:"border-transparent",segmentedRoot:"border-transparent",avatarRoot:"border-transparent",toolbarRoot:"border-transparent",paginationButton:"border-transparent",descriptionListItem:"border-transparent",accordionItem:"border-transparent",accordionPanel:"border-transparent",menuContent:"border-transparent",menuSeparator:"bg-transparent",menuSubContent:"border-transparent",tableContainer:"border-transparent [--base-table-header-separator:transparent]",tableHeader:"border-transparent",tableFooter:"[&_tr>*]:border-transparent",tableFooterBar:"border-transparent",tableFooterBarAttached:"border-t border-transparent",tableRow:"[&>*]:border-transparent",tableEmptyRow:"[&>*]:border-transparent",tableLoadingRow:"[&>*]:border-transparent",layoutRoot:"border-transparent",layoutPaneBordered:"border-transparent",layoutResizeHandle:"bg-transparent hover:bg-transparent active:bg-transparent focus-visible:bg-transparent"},subtle:{buttonDefault:"border-border/60",badgeDefault:"border-border/60",panelRoot:"border-border/60",panelFooter:"border-border/60",stateRoot:"border-border/60",controlWrapper:"border-border/60",selectMenu:"border-border/60",switchTrack:"border-border/60",checkboxBox:"border-border/60",radioOption:"border-border/60",radioMarker:"border-border/60",dialogPanel:"border-border/60",dialogHeader:"border-border/60",dialogFooter:"border-border/60",dropdownMenu:"border-border/60",tooltipContent:"border-border/60",noticeDefault:"border-border/60",dividerRoot:"border-border/60",tabsList:"border-border/60",tabsPanel:"border-border/60",segmentedRoot:"border-border/60",avatarRoot:"border-border/60",toolbarRoot:"border-border/60",paginationButton:"border-border/60",descriptionListItem:"border-border/60",accordionItem:"border-border/60",accordionPanel:"border-border/60",menuContent:"border-border/60",menuSeparator:"bg-border/60",menuSubContent:"border-border/60",tableContainer:"border-border/60 [--base-table-header-separator:hsl(var(--border)_/_0.6)]",tableHeader:"border-border/60",tableFooter:"[&_tr>*]:border-border/60",tableFooterBar:"border-border/60",tableFooterBarAttached:"border-t border-border/60",tableRow:"[&>*]:border-border/50",tableEmptyRow:"[&>*]:border-border/50",tableLoadingRow:"[&>*]:border-border/50",layoutRoot:"border-border/60",layoutPaneBordered:"border-border/60"},solid:{},strong:{buttonDefault:"border-foreground/20",badgeDefault:"border-foreground/20",panelRoot:"border-foreground/20",panelFooter:"border-foreground/20",stateRoot:"border-foreground/20",controlWrapper:"border-foreground/20",selectMenu:"border-foreground/20",switchTrack:"border-foreground/20",checkboxBox:"border-foreground/20",radioOption:"border-foreground/20",radioMarker:"border-foreground/20",dialogPanel:"border-foreground/20",dialogHeader:"border-foreground/15",dialogFooter:"border-foreground/15",dropdownMenu:"border-foreground/20",tooltipContent:"border-foreground/20",noticeDefault:"border-foreground/20",dividerRoot:"border-foreground/20",tabsList:"border-foreground/20",tabsPanel:"border-foreground/20",segmentedRoot:"border-foreground/20",avatarRoot:"border-foreground/20",toolbarRoot:"border-foreground/20",paginationButton:"border-foreground/20",descriptionListItem:"border-foreground/20",accordionItem:"border-foreground/20",accordionPanel:"border-foreground/20",menuContent:"border-foreground/20",menuSeparator:"bg-foreground/15",menuSubContent:"border-foreground/20",tableContainer:"border-foreground/20 [--base-table-header-separator:hsl(var(--foreground)_/_0.15)]",tableHeader:"border-foreground/20",tableFooter:"[&_tr>*]:border-foreground/20",tableFooterBar:"border-foreground/20",tableFooterBarAttached:"border-t border-foreground/20",tableRow:"[&>*]:border-foreground/15",tableEmptyRow:"[&>*]:border-foreground/15",tableLoadingRow:"[&>*]:border-foreground/15",layoutRoot:"border-foreground/20",layoutPaneBordered:"border-foreground/20",layoutResizeHandle:"hover:bg-foreground/15 active:bg-foreground/20 focus-visible:bg-foreground/15"}},qg={plain:{},muted:{buttonDefault:"bg-muted/20 hover:bg-muted/45",panelRoot:"bg-card",panelFooter:"bg-muted/20",stateRoot:"bg-muted/20",controlWrapper:"bg-background",selectMenu:"bg-background",selectOptionActive:"bg-muted/70 text-foreground",checkboxBox:"bg-background",radioOption:"bg-card hover:bg-muted/45",radioMarker:"bg-background",dialogPanel:"bg-card",dropdownMenu:"bg-background",dropdownItem:"hover:bg-muted/60",tooltipContent:"bg-popover",noticeDefault:"bg-muted/20",tabsList:"bg-muted/35",tabsTriggerActive:"bg-background",tabsPanel:"bg-card",segmentedRoot:"bg-muted/35",segmentedItemActive:"bg-background",progressTrack:"bg-muted/60",skeletonRoot:"bg-muted",toolbarRoot:"bg-card",paginationButton:"bg-background hover:bg-muted/60",paginationPage:"bg-muted/60",descriptionListItem:"bg-card",accordionItem:"bg-card",menuContent:"bg-background",menuItem:"focus:bg-muted/70 data-[highlighted]:bg-muted/70",menuSubTrigger:"focus:bg-muted/70 data-[highlighted]:bg-muted/70 data-[state=open]:bg-muted/70",menuSubContent:"bg-background",tableContainer:"bg-background/95 [scrollbar-gutter:stable]",tableFooter:"bg-muted/35",tableFooterBar:"bg-muted/30 shadow-none",tableRowInteractive:"cursor-pointer [--base-table-row-hover-bg:hsl(var(--muted)_/_0.45)]",tableLoadingSkeleton:"bg-muted",layoutRoot:"bg-card",layoutPane:"bg-card",layoutPaneMuted:"bg-muted/35",layoutResizeHandle:"hover:bg-border/70 active:bg-border/80 focus-visible:bg-border/70"},soft:{buttonDefault:"bg-muted/30 hover:bg-muted/55",panelRoot:"bg-background/95 shadow-sm",stateRoot:"bg-background/95 shadow-sm",controlWrapper:"bg-background/95",selectMenu:"bg-background/95 shadow-xl",selectOptionActive:"bg-muted/60 text-foreground",checkboxBox:"bg-background/95",radioOption:"bg-background/95 shadow-sm hover:bg-muted/35",radioMarker:"bg-background/95",dialogPanel:"bg-background/95 shadow-xl",dropdownMenu:"bg-background/95 shadow-xl",dropdownItem:"hover:bg-muted/55",tooltipContent:"bg-popover shadow-xl",noticeDefault:"bg-background/95 shadow-sm",tabsList:"bg-background/60 shadow-sm",tabsTriggerActive:"bg-background",tabsPanel:"bg-background/95 shadow-sm",segmentedRoot:"bg-background/60 shadow-sm",segmentedItemActive:"bg-background",skeletonRoot:"bg-background/80",toolbarRoot:"bg-background/95 shadow-sm",paginationButton:"bg-background/95 hover:bg-muted/55",descriptionListItem:"bg-background/95 shadow-sm",accordionItem:"bg-background/95 shadow-sm",menuContent:"bg-background/95 shadow-xl",menuItem:"focus:bg-muted/60 data-[highlighted]:bg-muted/60",menuSubTrigger:"focus:bg-muted/60 data-[highlighted]:bg-muted/60 data-[state=open]:bg-muted/60",menuSubContent:"bg-background/95 shadow-xl",tableContainer:"bg-background/95 shadow-sm [scrollbar-gutter:stable]",tableFooter:"bg-muted/25",tableFooterBar:"bg-muted/25 shadow-none",tableRowInteractive:"cursor-pointer [--base-table-row-hover-bg:hsl(var(--muted)_/_0.35)]",tableLoadingSkeleton:"bg-muted/65",layoutRoot:"bg-background/95 shadow-sm",layoutPane:"bg-background/95 shadow-sm",layoutPaneSoft:"bg-background/95 shadow-md"},glass:{buttonBase:"backdrop-blur-md",buttonDefault:"border-white/10 bg-white/[0.08] text-foreground hover:bg-white/[0.14]",badgeDefault:"border-white/10 bg-white/[0.08] text-foreground",panelRoot:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",panelFooter:"border-white/10 bg-white/[0.05]",stateRoot:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",stateIcon:"bg-white/10 text-foreground",controlWrapper:"border-white/10 bg-white/[0.08] text-foreground backdrop-blur-md",selectMenu:"border-foreground/10 bg-background/10 text-foreground shadow-[0_18px_60px_hsl(var(--foreground)/0.18)] backdrop-blur-md",selectOption:"text-foreground",selectOptionActive:"bg-white/[0.14] text-foreground",selectOptionSelected:"bg-white/[0.18] text-foreground",switchTrack:"border-white/10 bg-white/[0.12] backdrop-blur-md",checkboxBox:"border-white/10 bg-white/[0.08] backdrop-blur-md",checkboxBoxChecked:"border-white/20 bg-white/[0.22] text-foreground",radioOption:"border-white/10 bg-white/[0.06] backdrop-blur-md hover:bg-white/[0.10]",radioMarker:"border-white/10 bg-white/[0.08] backdrop-blur-md",radioMarkerChecked:"border-white/25 bg-white/[0.16]",dialogOverlay:"bg-background/45 backdrop-blur-md",dialogPanel:"border-white/10 bg-white/[0.08] shadow-2xl backdrop-blur-md",dialogHeader:"border-white/10",dialogFooter:"border-white/10",dropdownMenu:"border-foreground/10 bg-background/10 text-foreground shadow-[0_18px_60px_hsl(var(--foreground)/0.18)] backdrop-blur-md",dropdownItem:"text-foreground hover:bg-white/[0.14]",tooltipContent:"border-foreground/10 bg-background/15 text-foreground shadow-[0_18px_60px_hsl(var(--foreground)/0.18)] backdrop-blur-md",noticeDefault:"border-white/10 bg-white/[0.08] text-foreground backdrop-blur-md",dividerRoot:"border-white/15",tabsList:"border-white/10 bg-white/[0.08] backdrop-blur-md",tabsTrigger:"text-muted-foreground hover:bg-white/[0.12] hover:text-foreground",tabsTriggerActive:"bg-white/[0.16] text-foreground shadow-none",tabsPanel:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",segmentedRoot:"border-white/10 bg-white/[0.08] backdrop-blur-md",segmentedItem:"text-muted-foreground hover:bg-white/[0.12] hover:text-foreground",segmentedItemActive:"bg-white/[0.16] text-foreground shadow-none",progressTrack:"bg-white/[0.12]",skeletonRoot:"bg-white/[0.16]",avatarRoot:"border-white/10 bg-white/[0.12] text-foreground",avatarFallback:"bg-white/[0.12] text-foreground",avatarStatus:"border-background",toolbarRoot:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",paginationButton:"border-white/10 bg-white/[0.08] text-foreground hover:bg-white/[0.14]",paginationPage:"bg-white/[0.12] text-foreground",descriptionListItem:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",accordionItem:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",accordionPanel:"border-white/10",menuContent:"border-foreground/10 bg-background/10 text-foreground shadow-[0_18px_60px_hsl(var(--foreground)/0.18)] backdrop-blur-md",menuSeparator:"bg-white/10",menuItem:"text-foreground focus:bg-white/[0.14] focus:text-foreground data-[highlighted]:bg-white/[0.14] data-[highlighted]:text-foreground",menuSubTrigger:"text-foreground focus:bg-white/[0.14] focus:text-foreground data-[highlighted]:bg-white/[0.14] data-[highlighted]:text-foreground data-[state=open]:bg-white/[0.16]",menuSubContent:"border-foreground/10 bg-background/10 text-foreground shadow-[0_18px_60px_hsl(var(--foreground)/0.18)] backdrop-blur-md",tableContainer:"border-foreground/10 bg-background/[0.06] shadow-none backdrop-blur-md [scrollbar-gutter:stable] [--base-table-sticky-header-bg:hsl(var(--background)/0.94)] [--base-table-header-separator:hsl(var(--foreground)/0.24)]",tableHeader:"border-white/10",tableFooter:"bg-white/[0.05] [&_tr>*]:border-white/10",tableFooterBar:"border-white/10 bg-white/[0.05] shadow-none backdrop-blur-md",tableFooterBarAttached:"border-t border-white/10",tableRow:"[&>*]:border-white/10",tableRowInteractive:"cursor-pointer [--base-table-row-hover-bg:hsl(var(--foreground)/0.08)]",tableHeadLabel:"text-foreground",tableLoadingSkeleton:"bg-white/[0.16]",layoutRoot:"border-white/10 bg-white/[0.05] shadow-none backdrop-blur-md",layoutPane:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",layoutPaneMuted:"bg-white/[0.08]",layoutPaneSoft:"bg-white/[0.10] shadow-none backdrop-blur-md",layoutResizeHandle:"text-foreground/65 hover:bg-white/10 active:bg-white/15 focus-visible:bg-white/10",layoutResizeHandleIndicator:"bg-white/45 group-hover/resize:bg-white/75"},dark:{buttonBase:"border-white/15 text-white shadow-lg backdrop-blur",buttonDefault:"bg-black/30 hover:bg-black/[0.45]",buttonPrimary:"border-white/25 bg-white/20 text-white hover:bg-white/25",buttonMuted:"border-white/10 bg-black/20 text-white/70 hover:bg-black/[0.35] hover:text-white",badgeDefault:"border-white/10 bg-white/[0.08] text-white",badgeMuted:"border-white/10 bg-black/20 text-white/70",panelRoot:"border-white/10 bg-slate-950 text-white shadow-none",panelTitle:"text-white",panelDescription:"text-white/65",panelBody:"text-white/85",panelFooter:"border-white/10 bg-white/[0.04]",stateRoot:"border-white/10 bg-slate-950 text-white shadow-none",stateIcon:"bg-white/10 text-white/75",stateTitle:"text-white",stateDescription:"text-white/65",fieldLabel:"text-white",fieldDescription:"text-white/65",fieldMessage:"text-white/65",controlWrapper:"border-white/15 bg-black/30 text-white shadow-lg backdrop-blur focus-within:border-white/35",controlBase:"text-white placeholder:text-white/45",selectChevron:"text-white/65",selectMenu:"border-white/15 bg-slate-950 text-white shadow-2xl",selectOption:"text-white",selectOptionActive:"bg-white/[0.12] text-white",selectOptionSelected:"bg-white/[0.16] text-white",selectPlaceholder:"text-white/45",switchTrack:"border-white/15 bg-black/30 shadow-lg backdrop-blur",switchChecked:"border-white/25 bg-white/25 text-white",switchLabel:"text-white",switchDescription:"text-white/65",checkboxBox:"border-white/15 bg-black/30 text-white shadow-lg backdrop-blur",checkboxBoxChecked:"border-white/25 bg-white/25 text-white",checkboxLabel:"text-white",checkboxDescription:"text-white/65",radioOption:"border-white/10 bg-white/[0.06] text-white hover:bg-white/[0.08]",radioMarker:"border-white/15 bg-black/30 text-white shadow-lg backdrop-blur",radioMarkerChecked:"border-white/25 bg-white/25",radioIndicator:"bg-white",radioLabel:"text-white",radioDescription:"text-white/65",dialogOverlay:"bg-slate-950/75",dialogPanel:"border-white/10 bg-slate-950 text-white shadow-2xl",dialogHeader:"border-white/10",dialogTitle:"text-white",dialogDescription:"text-white/65",dialogBody:"text-white/85",dialogFooter:"border-white/10",dialogClose:"text-white/65 hover:bg-white/[0.08] hover:text-white",dropdownMenu:"border-white/15 bg-slate-950 text-white shadow-2xl",dropdownLabel:"text-white/55",dropdownSeparator:"bg-white/15",dropdownItem:"text-white hover:bg-white/[0.10]",dropdownItemDescription:"text-white/55",dropdownItemShortcut:"text-white/55",tooltipContent:"border-white/15 bg-slate-950 text-white shadow-2xl",noticeDefault:"border-white/10 bg-white/[0.08] text-white",noticeMuted:"border-white/10 bg-black/20 text-white/70",dividerRoot:"border-white/15",dividerLabel:"text-white/55",sectionHeaderEyebrow:"text-white/55",sectionHeaderTitle:"text-white",sectionHeaderDescription:"text-white/65",tabsList:"border-white/10 bg-white/[0.08]",tabsTrigger:"text-white/65 hover:bg-white/[0.12] hover:text-white",tabsTriggerActive:"bg-white/[0.16] text-white shadow-none",tabsPanel:"border-white/10 bg-white/[0.06] text-white",segmentedRoot:"border-white/10 bg-white/[0.08]",segmentedItem:"text-white/65 hover:bg-white/[0.12] hover:text-white",segmentedItemActive:"bg-white/[0.16] text-white shadow-none",progressTrack:"bg-white/[0.12]",progressLabel:"text-white",progressValue:"text-white/65",skeletonRoot:"bg-white/[0.14]",avatarRoot:"border-white/15 bg-white/[0.10] text-white",avatarFallback:"bg-white/[0.10] text-white/75",avatarText:"text-white",avatarStatus:"border-slate-950",toolbarRoot:"border-white/10 bg-white/[0.06] text-white",toolbarTitle:"text-white",toolbarDescription:"text-white/65",breadcrumbLink:"text-white/65 hover:text-white",breadcrumbCurrent:"text-white",breadcrumbSeparator:"text-white/45",paginationInfo:"text-white/65",paginationButton:"border-white/10 bg-white/[0.08] text-white hover:bg-white/[0.14]",paginationPage:"bg-white/[0.14] text-white",descriptionListItem:"border-white/10 bg-white/[0.06]",descriptionListTerm:"text-white/55",descriptionListValue:"text-white",accordionItem:"border-white/10 bg-white/[0.06]",accordionTrigger:"text-white hover:bg-white/[0.08]",accordionPanel:"border-white/10 text-white/70",tableContainer:"border-foreground/10 bg-background text-foreground shadow-none [scrollbar-gutter:stable] [--base-table-sticky-header-bg:hsl(var(--background)/0.98)] [--base-table-header-separator:hsl(var(--foreground)/0.16)]",tableRoot:"text-white",tableHeader:"border-white/10",tableFooter:"bg-white/[0.05] [&_tr>*]:border-white/10",tableFooterBar:"border-white/10 bg-white/[0.05] text-white/65",tableFooterBarAttached:"border-t border-white/10",tableRow:"[&>*]:border-white/10",tableRowInteractive:"cursor-pointer [--base-table-row-hover-bg:hsl(var(--foreground)/0.06)]",tableHead:"text-white/65",tableHeadLabel:"text-white",tableHeadDescription:"text-white/55",tableHeadMeta:"text-white/55",tableHeadIcon:"text-white/55",tableHeadSortIcon:"text-white/55",tableHeadDragHandle:"text-white/55 hover:bg-white/[0.08]",tableHeadResizeHandle:"after:bg-white/20 hover:after:bg-white/60",tableCell:"text-white/85",tableEmptyIcon:"bg-white/10 text-white/65",tableEmptyTitle:"text-white",tableEmptyDescription:"text-white/60",menuContent:"border-white/10 bg-slate-950 text-white shadow-2xl",menuLabel:"text-white/55",menuSeparator:"bg-white/10",menuItem:"text-white focus:bg-white/[0.10] focus:text-white data-[highlighted]:bg-white/[0.10] data-[highlighted]:text-white",menuItemDefault:"text-white",menuItemPrimary:"text-primary focus:text-primary data-[highlighted]:text-primary",menuItemSuccess:"text-[hsl(var(--success,142_69%_58%))] focus:text-[hsl(var(--success,142_69%_58%))] data-[highlighted]:text-[hsl(var(--success,142_69%_58%))]",menuItemWarning:"text-[hsl(var(--warning-foreground,53_98%_77%))] focus:text-[hsl(var(--warning-foreground,53_98%_77%))] data-[highlighted]:text-[hsl(var(--warning-foreground,53_98%_77%))]",menuItemDanger:"text-destructive-text focus:text-destructive-text data-[highlighted]:text-destructive-text",menuItemMuted:"text-white/65 focus:text-white data-[highlighted]:text-white",menuItemShortcut:"text-white/45",menuSubTrigger:"text-white focus:bg-white/[0.10] focus:text-white data-[highlighted]:bg-white/[0.10] data-[highlighted]:text-white data-[state=open]:bg-white/[0.12]",menuSubTriggerIcon:"text-white/55",menuSubContent:"border-white/10 bg-slate-950 text-white shadow-2xl",tableLoadingSkeleton:"bg-white/[0.14]",layoutRoot:"border-white/10 bg-slate-950 text-white shadow-none",layoutPane:"border-white/10 bg-slate-950 text-white shadow-none",layoutPaneMuted:"bg-white/[0.06]",layoutPaneSoft:"bg-white/[0.08] shadow-none",layoutResizeHandle:"text-white/65 hover:bg-white/10 active:bg-white/15 focus-visible:bg-white/10",layoutResizeHandleIndicator:"bg-white/45 group-hover/resize:bg-white/75"}},Gl={default:{density:"default",radius:"md",border:"solid",background:"plain"},soft:{density:"default",radius:"lg",border:"subtle",background:"soft"},compact:{density:"compact",radius:"md",border:"subtle",background:"muted"},"tinted-glass":{density:"default",radius:"lg",border:"subtle",background:"glass"},glass:{density:"default",radius:"xl",border:"subtle",background:"glass"},"hard-edge":{density:"compact",radius:"none",border:"strong",background:"plain"}},Kg={soft:{buttonBase:"font-medium",panelRoot:"border-border/70",controlWrapper:"font-medium",tabsTrigger:"font-medium",segmentedItem:"font-medium",toolbarRoot:"border-border/70",tableContainer:"border-border/70",tableFooterBar:"border-border/70",tableHeadLabel:"font-semibold",menuItemLabel:"font-medium"},compact:{buttonBase:"text-xs",badgeBase:"text-xs",fieldLabel:"text-xs",controlBase:"text-xs",selectOption:"text-xs",menuItem:"text-xs",menuSubTrigger:"text-xs",noticeBase:"text-xs",sectionHeaderTitle:"text-sm",tabsTrigger:"text-xs",segmentedItem:"text-xs",toolbarTitle:"text-xs",paginationRoot:"text-xs"},"tinted-glass":{buttonPrimary:"border-primary/25 bg-primary/15 text-primary-foreground hover:bg-primary/20",badgePrimary:"border-primary/25 bg-primary/15 text-primary-foreground",noticePrimary:"border-primary/25 bg-primary/15 text-primary-foreground",progressIndicator:"bg-primary",avatarStatus:"border-background"},glass:{panelRoot:"shadow-[0_24px_80px_hsl(var(--foreground)/0.12)]",stateRoot:"shadow-[0_24px_80px_hsl(var(--foreground)/0.12)]",noticeBase:"shadow-[0_18px_60px_hsl(var(--foreground)/0.10)]",tabsPanel:"shadow-[0_18px_60px_hsl(var(--foreground)/0.10)]",toolbarRoot:"shadow-[0_18px_60px_hsl(var(--foreground)/0.10)]",descriptionListItem:"shadow-[0_12px_40px_hsl(var(--foreground)/0.08)]",accordionItem:"shadow-[0_12px_40px_hsl(var(--foreground)/0.08)]"},"hard-edge":{buttonBase:"shadow-none",panelRoot:"shadow-none",stateRoot:"shadow-none",controlWrapper:"shadow-none",selectMenu:"shadow-none",menuContent:"shadow-none",menuSubContent:"shadow-none",noticeBase:"shadow-none",tabsList:"shadow-none",tabsTriggerActive:"shadow-none",tabsPanel:"shadow-none",segmentedRoot:"shadow-none",segmentedItemActive:"shadow-none",toolbarRoot:"shadow-none",descriptionListItem:"shadow-none",accordionItem:"shadow-none"}};function Xg(e){return Gl[e]??Gl.default}a(Xg,"getPresetDefaults");var Yg=Object.keys(ql),Qg=Vl(Yg,v);function Zg(...e){return Object.assign({},...e.filter(Boolean))}a(Zg,"mergeStyles");function xe(e){let t=e?.preset??"default",o=e?.variant??"default",n=Xg(t),r=e?.density??n.density??"default",i=e?.state??"idle",s=e?.radius??n.radius??"md",l=e?.border??n.border??"solid",d=e?.background??n.background??"plain";return {preset:t,variant:o,density:r,state:i,radius:s,border:l,background:d,styles:Zg(_g,e?.styles),slots:Qg(ql,Kg[t],Vg[r],jg[s],Gg[l],qg[d],e?.slots)}}a(xe,"resolveBaseAppearance");function Vr(e,t="default",o=false){return v(t==="default"&&e.slots.buttonDefault,t==="primary"&&e.slots.buttonPrimary,t==="success"&&e.slots.buttonSuccess,t==="warning"&&e.slots.buttonWarning,t==="danger"&&e.slots.buttonDanger,t==="muted"&&e.slots.buttonMuted,o&&e.slots.buttonActive)}a(Vr,"getBaseButtonToneClassName");function or(e,t="default"){return v(t==="default"&&e.slots.menuItemDefault,t==="primary"&&e.slots.menuItemPrimary,t==="success"&&e.slots.menuItemSuccess,t==="warning"&&e.slots.menuItemWarning,t==="danger"&&e.slots.menuItemDanger,t==="muted"&&e.slots.menuItemMuted)}a(or,"getBaseMenuItemToneClassName");function Xl({as:e="article",decoration:t,title:o,description:n,media:r,header:i,footer:s,children:l,interactive:d,selected:c,disabled:u,appearance:m,variant:p,density:g,state:b,className:x,classNames:f,style:h,...k}){let $=xe({...m,variant:p,density:g,state:b}),w=e,C=i!==void 0?H(i):H(o)||H(n),T=r!=null,S=!C&&!T;return jsxRuntime.jsxs(w,{...k,"aria-disabled":u||void 0,"data-variant":$.variant,"data-density":$.density,"data-state":b??(u?"disabled":c?"selected":"idle"),"data-monkeys-component":"panel","data-slot":"root","data-interactive":d||void 0,"data-selected":c||void 0,"data-disabled":u||void 0,className:v($.slots.panelRoot,d&&!u&&$.slots.panelInteractive,c&&$.slots.panelSelected,u&&$.slots.panelDisabled,f?.root,x),style:{...$.styles.panel,...h},children:[t,T?jsxRuntime.jsx("div",{"data-slot":"media",className:v($.slots.panelMedia,f?.media),children:r}):null,C?jsxRuntime.jsx("div",{"data-slot":"header",className:v($.slots.panelHeader,f?.header),style:$.styles.panelHeader,children:i!==void 0?i:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[H(o)?jsxRuntime.jsx("div",{"data-slot":"title",className:v($.slots.panelTitle,f?.title),children:o}):null,H(n)?jsxRuntime.jsx("div",{"data-slot":"description",className:v($.slots.panelDescription,f?.description),children:n}):null]})}):null,l!=null?jsxRuntime.jsx("div",{"data-slot":"body",className:v($.slots.panelBody,S&&$.slots.panelBodyStandalone,f?.body),style:$.styles.panelBody,children:l}):null,s!=null?jsxRuntime.jsx("div",{"data-slot":"footer",className:v($.slots.panelFooter,f?.footer),style:$.styles.panelFooter,children:s}):null]})}a(Xl,"BasePanel");var Yl=a(e=>e==null?void 0:typeof e=="number"?`${e}px`:e,"cssSize"),Ql=a(e=>e!==void 0&&Number.isFinite(e)&&e>0?e:8,"safeSpeed"),ef=a(e=>{let[t,o=t]=e.trim().split(/\s*\/\s*|\s+/);return {rx:t,ry:o}},"radiusParts");function bi({mode:e="solid",color:t,colors:o,width:n=1,radius:r,speed:i,direction:s="clockwise",className:l,style:d}){let u=`border-effect-${he__namespace.useId().replace(/:/g,"")}`,m=he__namespace.useRef(null),[p,g]=he__namespace.useState({width:0,height:0,rx:"0px",ry:"0px"});he__namespace.useEffect(()=>{let T=m.current;if(!T||typeof ResizeObserver>"u")return;let S=a(()=>{let R=getComputedStyle(T).borderTopLeftRadius,W=ef(R),{rx:B,ry:A}=W;g({width:T.clientWidth,height:T.clientHeight,rx:B,ry:A});},"update");S();let P=new ResizeObserver(S);P.observe(T);let E=new MutationObserver(S);for(let R=T;R;R=R.parentElement)E.observe(R,{attributes:true});return ()=>{P.disconnect(),E.disconnect();}},[r]);let b=o?.length?o:[t||"hsl(var(--monkeys-color-border, var(--border, var(--input))))"],x=b.length===1?[b[0],b[0]]:b,f=s==="counterclockwise"?"reverse":"normal",h=(p.width||1)/2,k=(p.height||1)/2,$=s==="counterclockwise"?`360 ${h} ${k};0 ${h} ${k}`:`0 ${h} ${k};360 ${h} ${k}`,C={...{"--border-effect-width":Yl(n),"--border-effect-radius":Yl(r)||"inherit","--border-effect-speed":`${Ql(i)}s`,"--border-effect-color":t||"hsl(var(--monkeys-color-border, var(--border, var(--input))))","--border-effect-gradient":`linear-gradient(90deg, ${x.join(", ")})`,"--border-effect-direction":f},...d};return jsxRuntime.jsxs("div",{ref:m,"aria-hidden":"true",className:`monkeys-border-effect monkeys-border-effect-${e}${l?` ${l}`:""}`,style:{...C,pointerEvents:"none"},children:[jsxRuntime.jsx("span",{className:"monkeys-border-effect-ring"}),e==="animated"&&jsxRuntime.jsxs("svg",{"aria-hidden":"true",focusable:"false",className:"monkeys-border-effect-svg",viewBox:`0 0 ${p.width||1} ${p.height||1}`,children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsxs("linearGradient",{id:u,gradientUnits:"userSpaceOnUse",x1:"0",y1:"0",x2:p.width||1,y2:"0",children:[x.map((T,S)=>jsxRuntime.jsx("stop",{offset:`${S/(x.length-1)*100}%`,stopColor:T},S)),jsxRuntime.jsx("animateTransform",{attributeName:"gradientTransform",type:"rotate",values:$,dur:`${Ql(i)}s`,repeatCount:"indefinite"})]})}),jsxRuntime.jsx("rect",{x:"0",y:"0",width:p.width,height:p.height,rx:p.rx,ry:p.ry,fill:"none",stroke:`url(#${u})`,style:{strokeWidth:"calc(var(--border-effect-width) * 2)"}})]})]})}a(bi,"BorderEffect");var tf=a((e,t)=>Object.keys(e??{}).some(o=>o.startsWith("padding")&&e?.[o]!==void 0)||/(?:^|[\s:])!?p[xytrblse]?-(?:\[|[a-z0-9])/.test(t??""),"ownsPadding");function Zl({children:e,className:t,contentClassName:o,chrome:n="panel",borderEffect:r,decoration:i,headerWrap:s=false,title:l,titleIcon:d,action:c,appearance:u,classNames:m,...p}){let{parentDepth:g,level:b,variables:x}=mi(),f=Se(u),h=n==="panel",k=h&&r!=null,$=Ul(p,h),w=tf(f?.styles?.panelBody,[m?.body,o,f?.slots?.panelBody].join(" "));return jsxRuntime.jsx(Wr,{depth:h?b:g,children:jsxRuntime.jsx(Xl,{as:"section",appearance:{...f,slots:{...f?.slots,panelRoot:f?.slots?.panelRoot},styles:{...f?.styles,panelHeader:{...n==="plain"?{padding:0,paddingBlockEnd:"var(--global-spacing-lg, 1rem)"}:{},...f?.styles?.panelHeader},panelBody:{...!w||n==="plain"?{padding:0}:{},...f?.styles?.panelBody}}},classNames:{...m,root:v("min-h-0",h&&"gap-[var(--monkeys-bento-gap)]",h&&f?.radius===void 0&&!f?.preset&&"rounded-[var(--monkeys-bento-radius)]",h&&f?.border===void 0&&!f?.preset&&"border-[length:var(--monkeys-bento-border-width)] border-[color:var(--monkeys-bento-border-color)] [border-style:var(--monkeys-bento-border-style)]",h&&f?.background===void 0&&!f?.preset&&"bg-[var(--monkeys-bento-background)]",h&&!f?.preset&&f?.background===void 0&&"shadow-[shadow:var(--monkeys-bento-shadow)]",h&&!w&&"p-[var(--monkeys-bento-padding)]",!h&&"border-0 bg-transparent shadow-none",f?.slots?.panelRoot,m?.root,t),header:v("flex min-w-0 items-center gap-[var(--monkeys-bento-gap,var(--global-spacing,0.75rem))] border-b border-border p-0 pb-[var(--monkeys-bento-gap)]",n==="plain"&&"border-0 px-0 pt-0 pb-token-lg",m?.header),body:v("flex min-h-0 flex-col gap-[var(--monkeys-bento-gap,var(--global-spacing,0.75rem))] p-0",f?.slots?.panelBody,m?.body,o),footer:v("px-0 pb-0 pt-[var(--monkeys-bento-gap)]",m?.footer)},header:l?jsxRuntime.jsxs("div",{style:{alignItems:f?.styles?.panelHeader?.alignItems},className:v("flex min-w-0 flex-1 items-center justify-between gap-token-md",s&&"flex-wrap"),children:[jsxRuntime.jsxs("div",{className:v("flex min-w-0 flex-1 items-center gap-token-sm",s&&"basis-auto"),children:[d?jsxRuntime.jsx("span",{className:"inline-flex size-8 shrink-0 items-center justify-center rounded-md border border-primary/30 bg-primary/10 text-primary",children:jsxRuntime.jsx(d,{className:"size-4 text-primary",color:"currentColor",stroke:"currentColor"})}):null,jsxRuntime.jsxs("div",{className:"min-w-0",children:[jsxRuntime.jsx("h2",{style:{margin:0},className:"truncate text-base font-semibold text-foreground",children:l}),p.description?jsxRuntime.jsx("div",{className:"mt-1 text-sm text-muted-foreground",children:p.description}):null]})]}),c?jsxRuntime.jsx("div",{className:v("shrink-0",s&&"max-w-full"),children:c}):null]}):void 0,...p,...$,decoration:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[i,k?jsxRuntime.jsx(bi,{...r}):null]}),"data-monkeys-bento-level":h?b:void 0,style:{...h?x:{},...p.style,...k?{borderColor:"transparent"}:{}},children:e})})}a(Zl,"BentoPanel");var rf="com.infmonkeys.css";function yi(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}a(yi,"isRecord");function af(e){let t=e?.[rf];return yi(t)?t:void 0}a(af,"readCssExtension");function ut(e){return Number.isInteger(e)?String(e):String(Number(e.toFixed(6)))}a(ut,"formatNumber");function Do(e){return `${ut(e.value)}${e.unit}`}a(Do,"formatDimension");function hi(e){return `${ut(e.value)}${e.unit}`}a(hi,"formatDuration");function dn(e){return e==="none"?e:ut(e)}a(dn,"formatColorComponent");function sf(e){return [Number.parseInt(e.slice(1,3),16)/255,Number.parseInt(e.slice(3,5),16)/255,Number.parseInt(e.slice(5,7),16)/255]}a(sf,"hexToSrgb");function lf(e){if(e.colorSpace==="srgb"&&e.components.every(t=>typeof t=="number"))return e.components;if(e.hex)return sf(e.hex);throw new TypeError(`Web semantic colors in ${e.colorSpace} require a six-digit hex fallback for hsl(var(--token)) consumers.`)}a(lf,"colorSrgbComponents");function df([e,t,o]){let n=Math.max(e,t,o),r=Math.min(e,t,o),i=(n+r)/2;if(n===r)return [0,0,i*100];let s=n-r,l=i>.5?s/(2-n-r):s/(n+r),d;return n===e?d=(t-o)/s+(t<o?6:0):n===t?d=(o-e)/s+2:d=(e-t)/s+4,[d/6*360,l*100,i*100]}a(df,"srgbToHsl");function cf(e){if(e.colorSpace==="hsl"&&e.components.every(r=>typeof r=="number")){let[r,i,s]=e.components;return `${ut(r)} ${ut(i)}% ${ut(s)}%`}let[t,o,n]=df(lf(e));return `${ut(t)} ${ut(o)}% ${ut(n)}%`}a(cf,"formatHslTriplet");function Gr(e){let t=e.alpha??1;if(e.hex&&t===1)return e.hex;let o=e.components.map(dn).join(" "),n=t===1?"":` / ${ut(t)}`;switch(e.colorSpace){case "srgb":return `rgb(${e.components.map(i=>i==="none"?"none":ut(i*255)).join(" ")}${n})`;case "hsl":return `hsl(${dn(e.components[0])} ${dn(e.components[1])}% ${dn(e.components[2])}%${n})`;case "hwb":return `hwb(${dn(e.components[0])} ${dn(e.components[1])}% ${dn(e.components[2])}%${n})`;case "lab":case "lch":case "oklab":case "oklch":return `${e.colorSpace}(${o}${n})`;default:return `color(${e.colorSpace} ${o}${n})`}}a(Gr,"formatColor");function Jl(e){let t=Array.isArray(e)?e:[e],o=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);return t.map(n=>o.has(n)||/^[a-zA-Z][\w-]*$/.test(n)?n:`"${n.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`).join(", ")}a(Jl,"formatFontFamily");function uf(e){return (Array.isArray(e)?e:[e]).map(o=>{if(!yi(o))throw new TypeError("DTCG shadow values must be objects.");return [Do(o.offsetX),Do(o.offsetY),Do(o.blur),Do(o.spread),Gr(o.color),o.inset===true?"inset":""].filter(Boolean).join(" ")}).join(", ")}a(uf,"formatShadow");function pf(e,t){if(!Array.isArray(e))throw new TypeError("DTCG gradient values must be arrays.");let o=e.map(r=>{if(!yi(r))throw new TypeError("DTCG gradient stops must be objects.");return `${Gr(r.color)} ${ut(Number(r.position)*100)}%`}).join(", "),n=af(t)?.gradient;return n?.kind==="radial"?`radial-gradient(${o})`:`linear-gradient(${ut(n?.angle??90)}deg, ${o})`}a(pf,"formatGradient");function ed(e){switch(e.type){case "color":return Gr(e.value);case "dimension":return Do(e.value);case "fontFamily":return Jl(e.value);case "fontWeight":case "number":return String(e.value);case "duration":return hi(e.value);case "cubicBezier":return `cubic-bezier(${e.value.map(ut).join(", ")})`;case "strokeStyle":return typeof e.value=="string"?e.value:e.value.dashArray.map(Do).join(" ");case "border":{let t=e.value,o={...e,type:"strokeStyle",value:t.style};return `${Do(t.width)} ${ed(o)} ${Gr(t.color)}`}case "transition":{let t=e.value;return `${hi(t.duration)} cubic-bezier(${t.timingFunction.map(ut).join(", ")}) ${hi(t.delay)}`}case "shadow":return uf(e.value);case "gradient":return pf(e.value,e.extensions);case "typography":{let t=e.value;return `${t.fontWeight} ${Do(t.fontSize)}/${ut(t.lineHeight)} ${Jl(t.fontFamily)}`}}}a(ed,"formatTokenValue");function td(e,t){let o=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase();return `--${t}-${o}`}a(td,"toCssVariableName");function mf(e){if(!/^[a-zA-Z][a-zA-Z0-9-]*$/.test(e))throw new TypeError("Theme token variablePrefix must start with a letter and contain only letters, numbers, or hyphens.")}a(mf,"assertCssVariablePrefix");function od(e,t,o){let n=`${t}.${o}`;return e.has(n)?n:e.has(t)?t:void 0}a(od,"selectModePath");var gf={"semantic.color.background":"--background","semantic.color.foreground":"--foreground","semantic.color.card":"--card","semantic.color.card-foreground":"--card-foreground","semantic.color.popover":"--popover","semantic.color.popover-foreground":"--popover-foreground","semantic.color.primary":"--primary","semantic.color.primary-foreground":"--primary-foreground","semantic.color.secondary":"--secondary","semantic.color.secondary-foreground":"--secondary-foreground","semantic.color.muted":"--muted","semantic.color.muted-foreground":"--muted-foreground","semantic.color.accent":"--accent","semantic.color.accent-foreground":"--accent-foreground","semantic.color.destructive":"--destructive","semantic.color.destructive-foreground":"--destructive-foreground","semantic.color.success":"--success","semantic.color.success-foreground":"--success-foreground","semantic.color.warning":"--warning","semantic.color.warning-foreground":"--warning-foreground","semantic.color.border":"--border","semantic.color.input":"--input","semantic.color.ring":"--ring","semantic.color.media-surface":"--media-surface","semantic.color.media-foreground":"--media-foreground","semantic.color.media-overlay":"--media-overlay","semantic.color.radar-canvas":"--radar-canvas","semantic.color.radar-panel":"--radar-panel","semantic.color.radar-border":"--radar-border","semantic.color.radar-shell-border":"--radar-shell-border","semantic.color.radar-grid":"--radar-grid","semantic.color.radar-axis":"--radar-axis","semantic.color.radar-series-one":"--radar-series-one","semantic.color.radar-series-two":"--radar-series-two","semantic.color.radar-series-three":"--radar-series-three","semantic.color.radar-series-four":"--radar-series-four"},ff=Object.freeze({...Object.fromEntries(["grid","axis","fillStart","fillEnd","glow","label","value"].map(e=>[`component.chart.radar.${e}`,{variableName:td(`chart.radar.${e}`,"monkeys"),axis:"colorMode",expectedType:"color",format:"css"}])),...Object.fromEntries(Object.entries(gf).map(([e,t])=>[e,{variableName:t,axis:"colorMode",expectedType:"color",format:"hsl"}])),"semantic.color.neocard":{variableName:"--neocard",axis:"colorMode",expectedType:"color",format:"css"},"semantic.radius.base":{variableName:"--radius",axis:"colorMode",expectedType:"dimension",format:"css"},"semantic.spacing.global":{variableName:"--global-spacing",axis:"density",expectedType:"dimension",format:"css"},"semantic.gradient.brand":{variableName:"--monkeys-gradient",axis:"colorMode",expectedType:"gradient",format:"css"},"semantic.font.body":{variableName:"--font-sans",axis:"colorMode",expectedType:"fontFamily",format:"css"}});function rr(e,t){let o=od(new Set(Object.keys(e.cssValues)),t,e.colorMode);return o?e.cssValues[o]:void 0}a(rr,"getThemeTokenCssValue");function go(e,t={}){let o=runtime.resolveThemeTokens(e),n=o.document,r=t.colorMode??"light",i=t.density??"default",s=t.variablePrefix??"monkeys";mf(s);let l={},d={},c={},u=new Map;for(let[g,b]of o.tokens){l[g]=b.value;let x=ed(b);d[g]=x;let f=td(g,s),h=u.get(f);if(h)throw new TypeError(`Theme token paths ${h} and ${g} both compile to ${f}. Rename one token.`);u.set(f,g),c[f]=x;}let m=new Set(o.tokens.keys());for(let[g,b]of Object.entries(ff)){let x=b.axis==="density"?i:r,f=od(m,g,x);if(!f)continue;let h=o.tokens.get(f);if(!h||h.type!==b.expectedType)throw new TypeError(`${f} must be a ${b.expectedType} token to drive ${b.variableName}.`);c[b.variableName]=b.format==="hsl"?cf(h.value):d[f];}let p=Object.entries(c).sort(([g],[b])=>g.localeCompare(b)).map(([g,b])=>`${g}:${b};`).join("");return {contract:n,colorMode:r,density:i,values:Object.freeze(l),cssValues:Object.freeze(d),cssVariables:Object.freeze(c),cssText:p}}a(go,"compileThemeTokens");var bf={menu:"monkeys-overlay-surface--menu bg-menu-surface text-popover-foreground",dialog:"monkeys-overlay-surface--dialog bg-dialog-surface text-foreground"};function fo(e,t={}){return ["monkeys-overlay-surface",bf[e],t.rounded===false?void 0:"monkeys-overlay-surface--rounded"].filter(Boolean).join(" ")}a(fo,"getOverlaySurfaceClassName");var qr=he.forwardRef(a(function({slotComponent:t,...o},n){return t?jsxRuntime.jsx(t,{...o,ref:n}):jsxRuntime.jsx(button.Button,{...o,ref:n})},"ButtonCore"));var wf=he.forwardRef(a(function({dir:t,...o},n){let r=directionProvider.useDirection();return jsxRuntime.jsx(directionProvider.DirectionProvider,{direction:t==="ltr"||t==="rtl"?t:r,children:jsxRuntime.jsx(tabs.Tabs.Root,{...o,dir:t,ref:n})})},"TabsRoot")),ar={Root:wf,List:tabs.Tabs.List,Trigger:tabs.Tabs.Tab,Content:tabs.Tabs.Panel};var $f=he__namespace.forwardRef(({className:e,style:t,...o},n)=>jsxRuntime.jsx(bo__namespace.Item,{ref:n,className:v("border-b",e),style:{borderColor:"var(--monkeys-component-accordion-item-border-color, hsl(var(--border)))",...t},...o}));$f.displayName="AccordionItem";var Pf=he__namespace.forwardRef(({className:e,children:t,...o},n)=>jsxRuntime.jsx(bo__namespace.Header,{className:"flex",children:jsxRuntime.jsxs(bo__namespace.Trigger,{ref:n,className:v("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...o,children:[t,jsxRuntime.jsx(lucideReact.ChevronDown,{"aria-hidden":"true",className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));Pf.displayName="AccordionTrigger";var Rf=he__namespace.forwardRef(({className:e,children:t,...o},n)=>jsxRuntime.jsx(bo__namespace.Content,{ref:n,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...o,children:jsxRuntime.jsx("div",{className:v("pb-4 pt-0",e),children:t})}));Rf.displayName="AccordionContent";var Mf=he__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(Xr__namespace.Root,{ref:o,className:v("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:jsxRuntime.jsx(Xr__namespace.Indicator,{className:"flex items-center justify-center text-current",children:jsxRuntime.jsx(lucideReact.Check,{"aria-hidden":"true",className:"h-4 w-4"})})}));Mf.displayName="Checkbox";var ir=classVarianceAuthority.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_[data-slot=icon]]:text-[inherit] [&_[data-slot=icon]_*]:!text-[inherit] [&_[data-slot=icon]_svg]:!stroke-current [&_[data-slot=icon]_svg_*]:!stroke-current [&_[data-slot=end-icon]]:text-[inherit] [&_[data-slot=end-icon]_*]:!text-[inherit] [&_[data-slot=end-icon]_svg]:!stroke-current [&_[data-slot=end-icon]_svg_*]:!stroke-current [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-control-surface shadow-sm ring-offset-control-surface hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-sm px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),ie=he__namespace.forwardRef(({className:e,variant:t,size:o,asChild:n=false,unstyled:r=false,...i},s)=>jsxRuntime.jsx(qr,{ref:s,slotComponent:n?reactSlot.Slot:void 0,type:i.type,tabIndex:i.tabIndex,className:r?e:ir({variant:t,size:o,className:e}),...i}));ie.displayName="Button";var Af=he__namespace.forwardRef(({className:e,children:t,viewportClassName:o,viewportRef:n,onViewportScroll:r,scrollbar:i=true,scrollbarOrientation:s="vertical",scrollBarDisabled:l=false,type:d,...c},u)=>{let m=$n();return jsxRuntime.jsxs(to__namespace.Root,{ref:u,type:d??(m>0?"auto":void 0),className:v("group relative overflow-hidden",l&&"no-scrollbar",e),...c,children:[jsxRuntime.jsx(to__namespace.Viewport,{ref:n,onScroll:r,className:v("h-full w-full rounded-[inherit]",o),children:t}),i?jsxRuntime.jsx(sd,{orientation:s,className:v(l&&"size-0 p-0")}):null,jsxRuntime.jsx(to__namespace.Corner,{})]})});Af.displayName="ScrollArea";var sd=he__namespace.forwardRef(({className:e,orientation:t="vertical",...o},n)=>jsxRuntime.jsx(to__namespace.ScrollAreaScrollbar,{ref:n,"data-monkeys-scrollbar":"",orientation:t,className:v("flex touch-none select-none opacity-0 transition-opacity group-hover:opacity-100 group-focus-within:opacity-100 data-[state=visible]:opacity-100",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-px",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-px",e),...o,children:jsxRuntime.jsx(to__namespace.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));sd.displayName="ScrollBar";var Bf=he__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(Yr__namespace.Root,{ref:o,className:v("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,children:jsxRuntime.jsx(Yr__namespace.Thumb,{className:"pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"})}));Bf.displayName="Switch";var ad=Symbol.for("@inf-monkeys-tech/monkeys-design/tabs-adapter@1"),id=globalThis,ld=id[ad]??(id[ad]=he__namespace.createContext(null));function xi(){let e=he__namespace.useContext(ld);if(!e)throw new Error("Tabs slots must be used within Tabs.");return e}a(xi,"useTabsAdapter");function ki(e,t){return e?he__namespace.Children.only(t):void 0}a(ki,"tabsSlot");var Nf=he__namespace.forwardRef(({variant:e="default",orientation:t="horizontal",activationMode:o="automatic",value:n,defaultValue:r,onValueChange:i,dir:s,asChild:l,children:d,...c},u)=>{let m=fe(),[p,g]=he__namespace.useState(r??""),b=n??p,x=he__namespace.useId(),f=he__namespace.useMemo(()=>({activationMode:o,orientation:t,baseId:x,value:b}),[o,t,x,b]);return jsxRuntime.jsx(ld.Provider,{value:f,children:jsxRuntime.jsx(ar.Root,{ref:u,dir:s??m.dir,orientation:t,"data-variant":e,value:b,onValueChange:h=>{typeof h!="string"||h===b||(n===void 0&&g(h),i?.(h));},render:ki(l,d),...c,children:l?void 0:d})})});Nf.displayName="Tabs";var Ef=he__namespace.forwardRef(({className:e,gap:t,style:o,loop:n,asChild:r,children:i,onKeyDown:s,...l},d)=>{let{activationMode:c,orientation:u}=xi();return jsxRuntime.jsx(ar.List,{ref:d,"aria-orientation":u,activateOnFocus:c==="automatic",loopFocus:n,onKeyDown:m=>{s?.(m),m.defaultPrevented&&m.preventBaseUIHandler();},render:ki(r,i),className:v("inline-flex h-10 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),style:{gap:t,...o},...l,children:r?void 0:i})});Ef.displayName="TabsList";var If=he__namespace.forwardRef(({className:e,disabled:t,asChild:o,children:n,value:r,...i},s)=>{let l=xi(),d=ki(o,n),c=!d||typeof d.type!="string"||d.type==="button";return jsxRuntime.jsx(ar.Trigger,{ref:s,value:r,id:`${l.baseId}-trigger-${r}`,"aria-controls":`${l.baseId}-content-${r}`,"data-state":l.value===r?"active":"inactive","data-disabled":t?"":void 0,nativeButton:c,disabled:!c&&t,render:u=>jsxRuntime.jsx(o?reactSlot.Slot:"button",{...u,disabled:c&&t?true:void 0,children:n}),className:v("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...i})});If.displayName="TabsTrigger";var Df=he__namespace.forwardRef(({className:e,value:t,forceMount:o,hidden:n,asChild:r,children:i,...s},l)=>{let d=$n(),c=xi();return jsxRuntime.jsx(ar.Content,{ref:l,value:t,keepMounted:true,id:`${c.baseId}-content-${t}`,"aria-labelledby":`${c.baseId}-trigger-${t}`,"data-state":c.value===t?"active":"inactive",tabIndex:0,render:(u,m)=>jsxRuntime.jsx(r?reactSlot.Slot:"div",{...u,inert:void 0,hidden:n??(!o&&m.hidden),children:o||!m.hidden?i:null}),className:v("mt-2 ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",d>0&&"gap-[var(--monkeys-bento-gap)]",e),...s})});Df.displayName="TabsContent";var Lf=he__namespace.forwardRef(({className:e,sideOffset:t=4,...o},n)=>{let r=fe();return jsxRuntime.jsx(cn__namespace.Portal,{children:jsxRuntime.jsx(cn__namespace.Content,{...r,...o,ref:n,sideOffset:t,"data-monkeys-component":"tooltip","data-slot":"content","data-surface":"menu",className:v("z-50 overflow-hidden border px-3 py-1.5 text-xs animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",fo("menu"),e)})})});Lf.displayName="TooltipContent";var ho=he__namespace.forwardRef(({className:e,appearance:t="standard",unstyled:o=false,type:n,...r},i)=>jsxRuntime.jsx("input",{ref:i,type:n,className:o?e:v("flex w-full border border-input bg-control-surface px-3 text-foreground ring-offset-control-surface transition-[border-color,background-color,color,box-shadow] file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t==="compact"?"h-9 rounded-md py-1 text-sm shadow-sm":"h-10 rounded-md py-2 text-sm shadow-sm",t==="shadow"&&"rounded-lg shadow-sm shadow-black/[0.02] dark:border-white/10 dark:bg-white/[0.04] dark:shadow-none",e),...r}));ho.displayName="Input";var zf=he__namespace.forwardRef(({className:e,appearance:t="standard",unstyled:o=false,...n},r)=>jsxRuntime.jsx("textarea",{ref:r,className:o?e:v("flex w-full border border-input bg-control-surface px-3 py-2 text-foreground ring-offset-control-surface placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t==="compact"?"min-h-[60px] rounded-md text-sm shadow-sm":"min-h-[80px] rounded-md text-sm",t==="shadow"&&"rounded-lg shadow-sm shadow-black/[0.02] dark:border-white/10 dark:bg-white/[0.04] dark:shadow-none",e),...n}));zf.displayName="Textarea";var Of=he__namespace.forwardRef((e,t)=>jsxRuntime.jsx("select",{ref:t,...e}));Of.displayName="NativeSelect";var Hf=he__namespace.forwardRef((e,t)=>jsxRuntime.jsx("option",{ref:t,...e}));Hf.displayName="NativeOption";var ud=Lo__namespace.Root;var pd=Lo__namespace.Trigger,wi=he__namespace.forwardRef(({className:e,align:t="center",sideOffset:o=4,...n},r)=>{let i=fe();return jsxRuntime.jsx(Lo__namespace.Content,{...i,...n,ref:r,align:t,sideOffset:o,"data-monkeys-component":"hover-card","data-slot":"content","data-surface":"menu",className:v("z-50 w-64 origin-[var(--radix-hover-card-content-transform-origin)] border p-4 outline-hidden 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",fo("menu"),e)})});wi.displayName=Lo__namespace.Content.displayName;var md=Symbol.for("@inf-monkeys-tech/monkeys-design/dialog-dock@1"),gd=globalThis,Uf=gd[md]??(gd[md]=he__namespace.createContext(null)),Pt=a(()=>he__namespace.useContext(Uf),"useDialogDock");var Ci=he__namespace.forwardRef(({children:e,className:t,style:o,closeLabel:n="Close",showCloseButton:r=true,onInteractOutside:i,...s},l)=>{let d=Pt(),c=he__namespace.useId(),u=he__namespace.useRef(null),m=he__namespace.useRef(false);return he__namespace.useEffect(()=>{m.current&&!d?.collapsed&&d?.activeId===c&&u.current?.focus(),m.current=!!d?.collapsed;},[d?.collapsed,d?.activeId,c]),he__namespace.useEffect(()=>d?.register(c),[d?.register,c]),d?.container?jsxRuntime.jsx(je__namespace.Portal,{container:d.container,children:jsxRuntime.jsx("div",{style:{display:"contents"},children:jsxRuntime.jsx(mo,{children:jsxRuntime.jsx(Zl,{className:"monkeys-dialog-dock-panel overflow-auto",contentClassName:"shrink-0",style:{display:d.activeId===c?void 0:"none"},children:jsxRuntime.jsxs(je__namespace.Content,{...s,ref:l,"data-monkeys-dialog-content":true,"data-presentation":"docked","data-title-visible":d.showTitle,"data-collapsible":d.collapsible,className:v("monkeys-dialog-dock-content",t),style:o,onInteractOutside:p=>{i?.(p),p.preventDefault();},children:[e,d.collapsible&&jsxRuntime.jsx("button",{ref:u,type:"button",className:"monkeys-dialog-dock-collapse","aria-label":d.collapseLabel,title:d.collapseLabel,"aria-expanded":!d.collapsed,onClick:()=>d.setCollapsed(true),children:jsxRuntime.jsx(lucideReact.PanelRightClose,{"aria-hidden":"true",className:"size-4"})}),r&&jsxRuntime.jsxs(je__namespace.Close,{className:"monkeys-dialog-dock-close","aria-label":typeof n=="string"?n:void 0,children:[jsxRuntime.jsx(lucideReact.X,{"aria-hidden":"true",className:"size-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:n})]})]})})})})}):null});Ci.displayName="DockedDialogContent";var bd=Symbol.for("@inf-monkeys-tech/monkeys-design/dialog-open@1"),hd=globalThis,yd=hd[bd]??(hd[bd]=he__namespace.createContext(false));function Ti({open:e,defaultOpen:t,onOpenChange:o,modal:n,...r}){let i=Pt(),[s,l]=he__namespace.useState(t??false),d=e??s;return jsxRuntime.jsx(yd.Provider,{value:d,children:jsxRuntime.jsx(je__namespace.Root,{...r,open:d,modal:i?false:n,onOpenChange:c=>{l(c),o?.(c);}})})}a(Ti,"Dialog");var jf=je__namespace.Portal;var vd=he__namespace.forwardRef(({className:e,...t},o)=>{let n=fe();return jsxRuntime.jsx(je__namespace.Overlay,{...n,...t,ref:o,className:v("theme-overlay-backdrop fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),"data-monkeys-component":"dialog","data-slot":"overlay","data-monkeys-overlay":true})});vd.displayName="DialogOverlay";var xd=he__namespace.forwardRef(({className:e,...t},o)=>{let n=fe();return jsxRuntime.jsx(je__namespace.Content,{...n,...t,ref:o,className:e,"data-monkeys-component":"dialog","data-slot":"content","data-surface":"dialog","data-monkeys-dialog-content":true})});xd.displayName="DialogSurfaceContent";var Mn=he__namespace.forwardRef(({className:e,children:t,showCloseButton:o=true,closeLabel:n="Close",overlayClassName:r,overlayStyle:i,...s},l)=>{let d=Pt(),c=he__namespace.useContext(yd);return d?c?jsxRuntime.jsx(Ci,{...s,ref:l,className:e,showCloseButton:o,closeLabel:n,children:t}):null:jsxRuntime.jsxs(jf,{children:[jsxRuntime.jsx(vd,{className:r,style:i}),jsxRuntime.jsxs(xd,{...s,ref:l,className:v("fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border p-6 duration-200 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",fo("dialog"),e),children:[jsxRuntime.jsx(mo,{children:t}),o?jsxRuntime.jsxs(je__namespace.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-dialog-surface transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[jsxRuntime.jsx(lucideReact.X,{"aria-hidden":"true",className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:n})]}):null]})]})});Mn.displayName="DialogContent";var Gf=he__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(Mn,{ref:o,className:v("duration-0 data-[state=open]:animate-none data-[state=closed]:animate-none",e),...t}));Gf.displayName="DialogContentNoAnimation";var qf=a(({className:e,...t})=>jsxRuntime.jsx("div",{className:v(Pt()?.showTitle===false?"contents":"flex flex-col space-y-1.5 text-center sm:text-left",e),...t}),"DialogHeader");qf.displayName="DialogHeader";var Kf=a(({className:e,...t})=>jsxRuntime.jsx("div",{className:v("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t}),"DialogFooter");Kf.displayName="DialogFooter";var Jr=he__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(je__namespace.Title,{ref:o,className:v("text-lg font-semibold leading-none tracking-tight",e,Pt()?.showTitle===false&&"sr-only"),...t}));Jr.displayName="DialogTitle";var Xf=he__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(je__namespace.Description,{ref:o,className:v("text-sm text-muted-foreground",e),...t}));Xf.displayName="DialogDescription";he__namespace.forwardRef((e,t)=>{let o=Pt()?je__namespace.Trigger:Je__namespace.Trigger;return jsxRuntime.jsx(o,{...e,ref:t})});var Yf=Je__namespace.Portal,kd=he__namespace.forwardRef(({className:e,style:t,...o},n)=>{let r=fe();return jsxRuntime.jsx(Je__namespace.Overlay,{...r,...o,ref:n,className:v("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),"data-monkeys-component":"alert-dialog","data-slot":"overlay","data-monkeys-overlay":true,style:{pointerEvents:"auto",...t}})});kd.displayName="AlertDialogOverlay";var Qf=he__namespace.forwardRef(({className:e,style:t,children:o,...n},r)=>{let i=fe();return Pt()?jsxRuntime.jsx(Mn,{...n,...i,ref:r,role:"alertdialog",showCloseButton:false,className:e,style:t,children:o}):jsxRuntime.jsxs(Yf,{children:[jsxRuntime.jsx(kd,{}),jsxRuntime.jsx(Je__namespace.Content,{...i,...n,ref:r,className:v("fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border p-6 duration-200 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",fo("dialog"),e),"data-monkeys-component":"alert-dialog","data-slot":"content","data-surface":"dialog","data-monkeys-dialog-content":true,style:{pointerEvents:"auto",...t},children:jsxRuntime.jsx(mo,{children:o})})]})});Qf.displayName="AlertDialogContent";var Zf=a(({className:e,...t})=>jsxRuntime.jsx("div",{className:v("flex flex-col space-y-2 text-center sm:text-left",e),...t}),"AlertDialogHeader"),Jf=a(({className:e,...t})=>jsxRuntime.jsx("div",{className:v("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t}),"AlertDialogFooter"),eb=he__namespace.forwardRef(({className:e,...t},o)=>{let n=Pt()?je__namespace.Title:Je__namespace.Title;return jsxRuntime.jsx(n,{ref:o,className:v("text-lg font-semibold",e,Pt()?.showTitle===false&&"sr-only"),...t})}),tb=he__namespace.forwardRef(({className:e,...t},o)=>{let n=Pt()?je__namespace.Description:Je__namespace.Description;return jsxRuntime.jsx(n,{ref:o,className:v("text-sm text-muted-foreground",e),...t})}),ob=he__namespace.forwardRef(({className:e,...t},o)=>{let n=Pt()?je__namespace.Close:Je__namespace.Action;return jsxRuntime.jsx(n,{ref:o,className:v(ir(),e),...t})}),nb=he__namespace.forwardRef(({className:e,...t},o)=>{let n=Pt()?je__namespace.Close:Je__namespace.Action;return jsxRuntime.jsx(n,{ref:o,className:v(ir({variant:"destructive"}),e),...t})}),rb=he__namespace.forwardRef(({className:e,...t},o)=>{let n=Pt()?je__namespace.Close:Je__namespace.Cancel;return jsxRuntime.jsx(n,{ref:o,className:v(ir({variant:"outline"}),"mt-2 sm:mt-0",e),...t})});Zf.displayName="AlertDialogHeader";Jf.displayName="AlertDialogFooter";eb.displayName="AlertDialogTitle";tb.displayName="AlertDialogDescription";ob.displayName="AlertDialogAction";nb.displayName="AlertDialogDangerAction";rb.displayName="AlertDialogCancel";var lr=popover.Popover,wd=he.forwardRef(a(function({portal:t,positioner:o,...n},r){return jsxRuntime.jsx(popover.Popover.Portal,{...t,children:jsxRuntime.jsx(popover.Popover.Positioner,{...o,children:jsxRuntime.jsx(popover.Popover.Popup,{...n,ref:r})})})},"PopoverSurface")),ib='[data-monkeys-dialog-content][data-state="open"], [data-slot="dialog-content"][data-open], [data-slot="dialog-content"][data-state="open"]';function ta(e){return e?.closest(ib)??void 0}a(ta,"getOpenPopoverDialog");var Cd=Symbol.for("@inf-monkeys-tech/monkeys-design/popover-adapter@1"),Td=globalThis,$d=Td[Cd]??(Td[Cd]=he__namespace.createContext(null));function Mi(){let e=he__namespace.useContext($d);if(!e)throw new Error("Popover parts must be used within Popover.");return e}a(Mi,"useAdapter");function Pd({open:e,defaultOpen:t,onOpenChange:o,modal:n=false,children:r}){let[i,s]=he__namespace.useState(t??false),[l,d]=he__namespace.useState(null),[c,u]=he__namespace.useState(null),m=he__namespace.useRef(void 0),p=he__namespace.useRef(false),g=e??i,b=he__namespace.useCallback(f=>{let h="button"in f&&(f.button===2||f.button===0&&f.ctrlKey);p.current=!n||h,s(false),o?.(false);},[n,o]),x=he__namespace.useMemo(()=>({open:g,modal:n,anchor:l,trigger:c,setAnchor:d,setTrigger:u,escapeHandler:m,dismissOutside:b,outsideInteraction:p}),[g,n,l,c,b]);return jsxRuntime.jsx($d.Provider,{value:x,children:jsxRuntime.jsx(lr.Root,{open:g,modal:n,onOpenChange:(f,h)=>{if(h.reason==="outside-press"||h.reason==="focus-out"){h.cancel();return}if(h.reason==="escape-key"&&(m.current?.(h.event),h.event.defaultPrevented)){h.cancel();return}f&&h.trigger instanceof HTMLElement&&u(h.trigger),p.current=false,s(f),o?.(f);},children:r})})}a(Pd,"Popover");function Ai(e,t){return e?he__namespace.Children.only(t):void 0}a(Ai,"slotElement");function Rd(e){return !e||typeof e.type!="string"||e.type==="button"}a(Rd,"isNativeButton");var Md=he__namespace.forwardRef(a(function({asChild:t,children:o,onClick:n,...r},i){let{open:s,setTrigger:l}=Mi(),d=reactComposeRefs.useComposedRefs(i,l),c=Ai(t,o);return jsxRuntime.jsx(lr.Trigger,{ref:d,"data-state":s?"open":"closed",render:c,nativeButton:Rd(c),onClick:u=>{n?.(u),u.defaultPrevented&&u.preventBaseUIHandler();},...r,children:t?void 0:o})},"PopoverTrigger"));he__namespace.forwardRef(a(function({asChild:t,virtualRef:o,...n},r){let{setAnchor:i}=Mi(),s=reactComposeRefs.useComposedRefs(r,i);return he__namespace.useEffect(()=>{if(o)return i(()=>()=>o.current),()=>i(null)},[i,o]),o?null:jsxRuntime.jsx(t?reactSlot.Slot:"div",{...n,ref:s})},"PopoverAnchor"));he__namespace.forwardRef(a(function({asChild:t,children:o,onClick:n,...r},i){let s=Ai(t,o);return jsxRuntime.jsx(lr.Close,{ref:i,render:s,nativeButton:Rd(s),onClick:l=>{n?.(l),l.defaultPrevented&&l.preventBaseUIHandler();},...r,children:t?void 0:o})},"PopoverClose"));function Ad(e){if(e)return "closest"in e?e:e.contextElement}a(Ad,"anchorElement");function cb(e,t){let[o,n]=he__namespace.useState();return he__namespace.useEffect(()=>{if(!t||!e)return;let r,i,s=a(()=>{let l=typeof e=="function"?e():e,d=l?.getBoundingClientRect();d&&(!i||d.x!==i.x||d.y!==i.y||d.width!==i.width||d.height!==i.height)&&(i=d,n({source:e,anchor:{contextElement:Ad(l),getBoundingClientRect:a(()=>d,"getBoundingClientRect")}})),r=requestAnimationFrame(s);},"update");return r=requestAnimationFrame(s),()=>cancelAnimationFrame(r)},[e,t]),t&&o?.source===e?o.anchor:e}a(cb,"useMovingAnchor");function Sd(e,t,o){if(!e)return true;let n=new Event(`focusScope.autoFocusOn${o}`,{cancelable:true});return Object.defineProperty(n,"target",{value:t}),e(n),!n.defaultPrevented}a(Sd,"allowsAutofocus");var ub={"--radix-popover-content-transform-origin":"var(--transform-origin)","--radix-popover-content-available-width":"var(--available-width)","--radix-popover-content-available-height":"var(--available-height)","--radix-popover-trigger-width":"var(--anchor-width)","--radix-popover-trigger-height":"var(--anchor-height)"},Bd=he__namespace.forwardRef(a(function({align:t="center",alignOffset:o,side:n="bottom",sideOffset:r=4,arrowPadding:i=0,avoidCollisions:s=true,collisionBoundary:l,collisionPadding:d=0,sticky:c="partial",hideWhenDetached:u,updatePositionStrategy:m="optimized",container:p,portalForceMount:g,forceMount:b,asChild:x,unstyled:f=false,className:h,style:k,children:$,onOpenAutoFocus:w,onCloseAutoFocus:C,onEscapeKeyDown:T,onPointerDownOutside:S,onFocusOutside:P,onInteractOutside:E,...R},W){let{open:B,modal:A,anchor:L,trigger:I,escapeHandler:K,dismissOutside:q,outsideInteraction:_}=Mi(),Y=fe(),[M,z]=he__namespace.useState(null),Q=reactComposeRefs.useComposedRefs(W,z),ce=he__namespace.useRef(null),se=he__namespace.useRef(false),V=typeof L=="function"?L():L,J=Ad(V)??I,O=J?.ownerDocument??(typeof document>"u"?void 0:document),F=O?.activeElement,ne=ta(J)??ta(F)??Array.from(O?.querySelectorAll('[data-monkeys-dialog-content][data-state="open"]')??[]).at(-1),ae=p??ne,me=ta(ae)?.matches('[data-state="open"]'),Ce=cb(L??(m==="always"?I:null),B&&m==="always");he__namespace.useEffect(()=>(K.current=T,()=>{K.current=void 0;}),[K,T]),he__namespace.useEffect(()=>{if(M&&ce.current){let oe=M.ownerDocument.defaultView?.getComputedStyle(M).zIndex;ce.current.style.zIndex=oe??"";}},[M,h,k?.zIndex]);let Z=Array.isArray(l)?l.filter(oe=>oe!==null):l,Re=Ai(x,$),Ge=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[B&&me&&jsxRuntime.jsx(reactDismissableLayer.DismissableLayer,{hidden:true,"aria-hidden":"true"}),A&&jsxRuntime.jsx(lr.Close,{hidden:true,tabIndex:-1,"aria-hidden":"true"})]}),gt=jsxRuntime.jsx(wd,{...Y,...R,ref:Q,portal:{container:ae,keepMounted:g||b},positioner:{ref:ce,anchor:Ce??void 0,positionMethod:"fixed",align:t,alignOffset:o,side:n,sideOffset:r,arrowPadding:i,collisionPadding:d,collisionBoundary:Z??void 0,sticky:c==="always",collisionAvoidance:s?{side:"flip",align:"shift",fallbackAxisSide:"none"}:{side:"none",align:"none",fallbackAxisSide:"none"},style:a(({anchorHidden:oe})=>u&&oe?{visibility:"hidden",pointerEvents:"none"}:void 0,"style")},"data-monkeys-component":"popover","data-slot":"content","data-surface":"menu","data-state":B?"open":"closed",initialFocus:w?()=>Sd(w,M,"Mount"):void 0,finalFocus:()=>(Sd(C,M,"Unmount")&&!_.current&&I&&queueMicrotask(()=>I.focus({preventScroll:true})),_.current=false,se.current=false,false),render:Re?he__namespace.cloneElement(Re,void 0,jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[Re.props.children,Ge]})):void 0,className:f?h:v("z-50 w-72 border p-4 outline-hidden",fo("menu"),"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",h),style:{...ub,...!f&&{pointerEvents:"auto"},...k},children:Re?void 0:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[$,Ge]})});return jsxRuntime.jsx(radixPopoverDismissableLayer.DismissableLayer,{asChild:true,deferPointerDownOutside:true,onPointerDownOutside:oe=>{B&&S?.(oe);},onFocusOutside:oe=>{!B||oe.target?.hasAttribute("data-base-ui-focus-guard")||(P?.(oe),A&&oe.preventDefault());},onInteractOutside:oe=>{if(!B||oe.target?.hasAttribute("data-base-ui-focus-guard")||(E?.(oe),oe.defaultPrevented))return;let{originalEvent:De}=oe.detail;!A&&(De.type==="pointerdown"&&(se.current=true),I?.contains(oe.target)||De.type==="focusin"&&se.current)||q(De);},children:gt})},"PopoverContent"));var Nd=["pulse","shimmer","shimmer-soft","shimmer-diagonal","shimmer-vertical","drift","outline","none"];function Dd(e,t=false){if(!(e===void 0||Nd.includes(e))&&!(t&&(e==="shimmer-shared"||e==="shimmer-stagger")))throw new TypeError(`Skeleton animation must be ${Nd.join(", ")}${t?", shimmer-shared, or shimmer-stagger":""}.`)}a(Dd,"validateSkeletonAnimation");var Ni=he.createContext(null),Ei=he.createContext(void 0);function Ii(e){delete e.dataset.skeletonReady;for(let t of ["width","offset","delay"])e.style.removeProperty(`--monkeys-skeleton-${t}`);}a(Ii,"clearGeometry");function mb(e,t,o,n){let r=he.useMemo(()=>({nodes:new Map,update:a(()=>{},"update")}),[]);return he.useEffect(()=>{if(!o||t||e!=="shimmer-shared"&&e!=="shimmer-stagger")return;let i=window.matchMedia("(prefers-reduced-motion: reduce)"),s,l,d=false,c=new Set,u=a(()=>{if(l=void 0,!d)return;let b=[...r.nodes.keys()].filter(C=>C.isConnected);if(b.sort((C,T)=>C.compareDocumentPosition(T)&2?1:-1),e==="shimmer-stagger"){b.forEach((C,T)=>{let S=r.nodes.get(C)?.item??T;C.style.setProperty("--monkeys-skeleton-delay",`${Math.min(S*80,400)}ms`);});return}let x=n?.current??b[0]?.parentElement;for(let C of b)for(;x&&!x.contains(C);)x=x.parentElement;let f=new Set(b);for(let C of b)for(let T=C.parentElement;T&&(f.add(T),T!==x);T=T.parentElement);x&&f.add(x);for(let C of c)f.has(C)||(s?.unobserve(C),c.delete(C));for(let C of f)c.has(C)||(s?.observe(C),c.add(C));let h=b.map(C=>C.getBoundingClientRect()),k=b.map((C,T)=>{let S=getComputedStyle(C),P=S.boxSizing==="border-box"?0:parseFloat(S.paddingLeft)+parseFloat(S.paddingRight)+parseFloat(S.borderLeftWidth)+parseFloat(S.borderRightWidth),E=parseFloat(S.width)+P,R=E?h[T].width/E:1;return Math.abs(R-1)<1e-4?1:R}),$=Math.min(...h.map(C=>C.left)),w=Math.max(...h.map(C=>C.right));b.forEach((C,T)=>{let S=h[T];if(!S.width||!S.height){Ii(C);return}let P=k[T];C.style.setProperty("--monkeys-skeleton-width",`${(w-$)/P}px`),C.style.setProperty("--monkeys-skeleton-offset",`${($-S.left)/P}px`),C.dataset.skeletonReady||(C.style.setProperty("--monkeys-skeleton-delay",`${-(performance.now()%2600)}ms`),C.dataset.skeletonReady="true");});},"measure"),m=a(()=>{d&&l===void 0&&(l=window.requestAnimationFrame(u));},"schedule"),p=a(()=>{d=false,s?.disconnect(),s=void 0,c.clear(),l!==void 0&&window.cancelAnimationFrame(l),l=void 0,window.removeEventListener("resize",m),window.removeEventListener("scroll",m,true),r.nodes.forEach((b,x)=>Ii(x));},"stop"),g=a(()=>{p(),!(i.matches||e==="shimmer-shared"&&typeof ResizeObserver>"u")&&(d=true,e==="shimmer-shared"&&(s=new ResizeObserver(m),window.addEventListener("resize",m),window.addEventListener("scroll",m,{capture:true,passive:true})),m());},"start");return r.update=m,g(),i.addEventListener("change",g),()=>{p(),i.removeEventListener("change",g),r.update=()=>{};}},[e,t,o,r,n]),he.useEffect(()=>{r.update();}),r}a(mb,"useGroupRegistry");function Ld({animation:e,animated:t,children:o,independent:n=false,containerRef:r}){if(Dd(e,true),t!==void 0&&typeof t!="boolean")throw new TypeError("SkeletonGroup animated must be a boolean.");let i=he.useContext(Ni),s=he.useContext(Ei),l=n||e!==void 0||!i,d=e??i?.animation??"pulse",c=!!i?.disabled||t===false||d==="none",u=mb(d,c,l,r),m=he.useMemo(()=>({animation:d,disabled:c,registry:l?u:i.registry}),[d,c,l,u,i]),p=jsxRuntime.jsx(Ni.Provider,{value:m,children:o});return jsxRuntime.jsx(Ei.Provider,{value:l?void 0:s,children:p})}a(Ld,"SkeletonScope");function gb(e,t){return he.useMemo(()=>{let o;return n=>{if(e(n),typeof t=="function"){if(o)o(),o=void 0;else if(n===null){t(null);return}if(n!==null){let r=t(n);typeof r=="function"&&(o=r);}}else t&&(t.current=n);}},[e,t])}a(gb,"useSkeletonRef");function zd(e,t=true,o){Dd(e);let n=he.useContext(Ni),r=he.useContext(Ei),i=!t||n?.disabled?"none":e??n?.animation??"pulse",[s,l]=he.useState(null),d=gb(l,o),c=e===void 0&&(i==="shimmer-shared"||i==="shimmer-stagger")?n?.registry:void 0;return he.useEffect(()=>{if(!(!s||!c))return c.nodes.set(s,{item:r}),c.update(),()=>{c.nodes.delete(s),Ii(s),c.update();}},[s,c,r,i]),{ref:d,mode:i,style:i==="shimmer-stagger"&&r!==void 0?{"--monkeys-skeleton-delay":`${Math.min(r*80,400)}ms`}:void 0}}a(zd,"useSkeletonMotion");function Wd({children:e,actions:t}){let o=he.useRef(false),[n,r]=he.useState(false),[i,s]=he.useState(false);return jsxRuntime.jsxs("span",{className:"agent-markdown-image","data-markdown-image":true,children:[t?.open?jsxRuntime.jsx(ie,{unstyled:true,type:"button",className:"agent-markdown-image-open","aria-label":t.labels.open,onClick:l=>{l.preventDefault(),l.stopPropagation(),t.open?.();},children:e}):e,t&&jsxRuntime.jsxs("span",{className:"agent-markdown-image-actions",children:[t.collect&&jsxRuntime.jsx(ie,{type:"button",variant:"outline",size:"icon",title:t.labels.collect,"aria-label":t.labels.collect,onClick:l=>{l.preventDefault(),l.stopPropagation(),t.collect?.();},children:jsxRuntime.jsx(lucideReact.FolderPlus,{"aria-hidden":"true"})}),t.download&&jsxRuntime.jsx(ie,{type:"button",variant:"outline",size:"icon",disabled:n,title:t.labels.download,"aria-label":t.labels.download,onClick:async l=>{if(l.preventDefault(),l.stopPropagation(),!o.current){o.current=true,r(true),s(false);try{await t.download?.();}catch{s(true);}finally{o.current=false,r(false);}}},children:n?jsxRuntime.jsx(lucideReact.LoaderCircle,{"aria-hidden":"true",className:"animate-spin"}):jsxRuntime.jsx(lucideReact.Download,{"aria-hidden":"true"})}),t.edit&&jsxRuntime.jsx(ie,{type:"button",variant:"outline",size:"icon",title:t.labels.edit,"aria-label":t.labels.edit,onClick:l=>{l.preventDefault(),l.stopPropagation(),t.edit?.();},children:jsxRuntime.jsx(lucideReact.SquarePen,{"aria-hidden":"true"})})]}),i&&jsxRuntime.jsx("span",{className:"agent-markdown-image-error",role:"alert",children:t?.labels.failed})]})}a(Wd,"AgentImageCard");var jd=[],aa=he.createContext({text:"",sources:jd}),Gd=he.createContext(false),qd=a(e=>/^data:image\/(?:png|jpeg|gif|webp|avif);base64,[A-Za-z0-9+/]+={0,2}$/i.test(e),"embeddedImage"),Tb=a(e=>qd(e)?e:xb.defaultUrlTransform(e),"imageUrl");function Sb(){return e=>{unistUtilVisit.visit(e,"html",(t,o,n)=>{n&&o!==void 0&&/^<br\s*\/?\s*>$/i.test(t.value)&&n.children.splice(o,1,{type:"break",position:t.position});});}}a(Sb,"remarkLineBreaks");var ra=a((e,t,o)=>!/^(?:javascript|vbscript|data):/i.test(t.trim())&&e?.supports(t,o),"owns"),zi=a(e=>typeof e=="string"||typeof e=="number"?String(e):Array.isArray(e)?e.map(zi).join(""):he.isValidElement(e)?zi(e.props.children):"","textOf"),$b=a(({src:e,alt:t,title:o})=>{let{resources:n}=he.useContext(aa),r=he.useContext(Gd),i=e&&(ra(n,e,"image")?e:Tb(e));return jsxRuntime.jsx(Wd,{actions:i&&!r?n?.imageActions?.({src:i,alt:t,title:o}):void 0,children:i&&ra(n,i,"image")?n.image({src:i,alt:t,title:o}):jsxRuntime.jsx("img",{src:i||void 0,alt:t,title:o})})},"MarkdownImage"),Pb=a(({children:e,node:t})=>{let{text:o}=he.useContext(aa),n=t?.position?o.slice(t.position.start.offset,t.position.end.offset):void 0,r=typeof e=="string"&&n?.replace(/\s/g,"")===e.replace(/\s/g,"");return jsxRuntime.jsx("p",{children:r?n:e})},"MarkdownParagraph"),Rb=a(({href:e,children:t,title:o})=>{let{sources:n,resources:r}=he.useContext(aa),i=typeof t=="string"?t:jsxRuntime.jsx(Gd.Provider,{value:true,children:t});if(e&&ra(r,e,"link"))return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r.link({href:e,children:i,title:o})});let s=Rl(n,e);if(!s)return jsxRuntime.jsx("a",{href:e,target:"_blank",rel:"noreferrer noopener",children:i});let l=zi(t).trim(),d=!l||l.replace(/\/+$/,"")===String(e??"").replace(/\/+$/,"");return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[d?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[i," "]}),jsxRuntime.jsx(zr,{source:s})]})},"MarkdownLink");function un({text:e,sources:t=jd,resources:o,streaming:n=false}){let r=n?$l(e,{linkMode:"text-only",katex:false}):e;return jsxRuntime.jsx(aa.Provider,{value:{text:r,sources:t,resources:o},children:jsxRuntime.jsx("div",{className:"streaming-markdown",children:jsxRuntime.jsx(xb__default.default,{skipHtml:true,remarkPlugins:[kb__default.default,wb__default.default,Sb],urlTransform:(i,s,l)=>s==="src"&&l.tagName==="img"&&qd(i)||ra(o,i,s==="src"?"image":"link")?i:xb.defaultUrlTransform(i),components:{img:$b,p:Pb,a:Rb,table:a(({children:i})=>jsxRuntime.jsx("div",{className:"streaming-table",children:jsxRuntime.jsx("table",{children:i})}),"table"),pre:a(({children:i})=>{if(!he.isValidElement(i))return jsxRuntime.jsx("pre",{children:i});let s=String(i.props.children??"").replace(/\n$/,""),l=i.props.className?.replace(/^language-/,"")??"";return jsxRuntime.jsx(Er,{filename:l,code:s,lines:s.split(`
|
|
122
|
+
`)})},"pre")},children:r})})})}a(un,"StreamingMarkdown");var Bb=[],Nb=[],Eb=[],Ib=["copy","retry","up","down"],Db={continue:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:"12",cy:"18",r:"3"}),jsxRuntime.jsx("circle",{cx:"6",cy:"6",r:"3"}),jsxRuntime.jsx("circle",{cx:"18",cy:"6",r:"3"}),jsxRuntime.jsx("path",{d:"M18 9a6 6 0 0 1-6 6 6 6 0 0 1-6-6"})]},"continue"),copy:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:"9",y:"9",width:"12",height:"12",rx:"2.5"}),jsxRuntime.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]},"copy"),retry:jsxRuntime.jsx("path",{d:"M21 12a9 9 0 1 1-2.64-6.36M21 3v6h-6"},"retry"),up:jsxRuntime.jsx("path",{d:"M7 10v12M15 5.88L14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88z"},"up"),down:jsxRuntime.jsx("path",{d:"M17 14V2M9 18.12L10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88z"},"down")},Xd={copy:"Copy",retry:"Retry",up:"Like",down:"Dislike",continue:"Continue in new conversation"},Lb={sources:"Sources",followUps:"Follow-ups"};function An({text:e,format:t="text",content:o=Bb,sources:n=Eb,followUps:r=Nb,labels:i,streaming:s=false,responseComplete:l,onAction:d,actions:c=Ib,disabledActions:u=[],fill:m=false,onDone:p,onFollowUp:g,resources:b}){let x=Ue(),f=Ot(Lb,i),h=o.length,[k,$]=he.useState(false),w=!s,C=w&&(l??true);he.useEffect(()=>{C||$(false);},[C]);let T=he.useRef(p);return T.current=p,he.useEffect(()=>{w&&T.current?.();},[w]),jsxRuntime.jsx(ee,{children:jsxRuntime.jsxs("div",{"data-bui-streaming-text":true,"data-streaming":s,className:m?"min-w-0 w-full":"min-h-[15.5rem] w-full max-w-95",children:[t==="markdown"&&e!==void 0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(un,{text:e,sources:n,resources:b,streaming:s}),!w&&jsxRuntime.jsx("span",{"aria-hidden":true,className:"inline-block h-3 w-0.5 rounded-full bg-ink"})]}):jsxRuntime.jsxs("p",{className:"whitespace-pre-wrap [overflow-wrap:anywhere] text-[13px] leading-relaxed text-ink",children:[e??o.slice(0,h).map((S,P)=>S.cite?jsxRuntime.jsx(zr,{source:n[S.sourceIndex??0]},P):jsxRuntime.jsxs("span",{className:"inline",children:[S.text," "]},P)),!w&&jsxRuntime.jsx("span",{className:"ml-0.5 inline-block h-3 w-0.5 translate-y-0.5 rounded-full bg-ink",style:{animation:"bui-fade-in 150ms ease-out both"}})]}),C&&(d&&c.length>0||n.length>0)&&jsxRuntime.jsxs("div",{"data-bui-response-controls":true,className:"mt-2 flex items-center gap-0.5 text-ink-2",children:[d&&c.map(S=>jsxRuntime.jsx("button",{type:"button",disabled:!w||u.includes(S),"aria-label":x(Xd[S]),title:x(Xd[S]),"data-bui-action":S,onClick:()=>d?.(S),className:`flex size-6 items-center justify-center rounded-[var(--bui-radius-chip)] text-ink-2
|
|
123
|
+
transition-colors duration-100 hover:bg-hover-2`,children:jsxRuntime.jsx("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:Db[S]})},S)),n.length>0&&jsxRuntime.jsxs("button",{"data-bui-response-sources":true,type:"button",disabled:!w,"aria-expanded":k,onClick:()=>$(S=>!S),className:"ml-1.5 flex items-center gap-1.5 rounded-[var(--bui-radius-chip)] px-1 py-0.5 text-left text-ink-2 transition-colors duration-150 hover:bg-hover",children:[jsxRuntime.jsx("span",{className:"flex -space-x-1",children:n.slice(0,3).map(S=>jsxRuntime.jsx(Lr,{source:S,className:"size-3.5 rounded-full bg-surface shadow-[0_0_0_1.5px_var(--bui-canvas)]"},S.href))}),jsxRuntime.jsx("span",{className:"text-[12px] text-ink-2",children:i?.sources??x("sourceCount",{count:n.length})})]})]}),C&&n.length>0&&jsxRuntime.jsx("div",{className:"grid transition-[grid-template-rows,opacity] duration-300",style:{gridTemplateRows:w&&k?"1fr":"0fr",opacity:w&&k?1:0,transitionTimingFunction:"cubic-bezier(0.23, 1, 0.32, 1)"},children:jsxRuntime.jsx("div",{className:"overflow-hidden",children:jsxRuntime.jsx("div",{className:"mt-1.5 flex flex-col rounded-[10px] bg-inset p-1 shadow-hairline",children:n.map(S=>jsxRuntime.jsxs("a",{href:Mo(S.href,"link"),target:"_blank",rel:"noreferrer",className:"flex items-center gap-2 rounded-[6px] px-1.5 py-1 text-[12px] text-ink-2 transition-colors duration-150 hover:bg-hover",children:[jsxRuntime.jsx(Lr,{source:S,className:"size-4 rounded-[4px]"}),jsxRuntime.jsx("span",{className:"animated-underline",children:S.name}),jsxRuntime.jsx("span",{className:"ml-auto font-mono text-[10.5px] text-ink-2",children:S.domain})]},S.href))})})}),r.length>0&&jsxRuntime.jsxs("div",{"data-bui-follow-ups":true,className:"mt-2.5 transition-opacity duration-400",style:{opacity:w?1:0,pointerEvents:w?"auto":"none"},children:[jsxRuntime.jsx("p",{className:"text-[12px] font-medium text-ink-2",children:f.followUps}),jsxRuntime.jsx("div",{className:"mt-0.5 flex flex-col",children:r.map((S,P)=>jsxRuntime.jsxs("button",{type:"button",disabled:!w||!g,onClick:()=>g?.(S,P),className:`-mx-1.5 flex items-center gap-2 rounded-[var(--bui-radius-scale-7)]
|
|
124
124
|
px-1.5 py-1.5 text-left text-[12.5px] text-ink-2 transition-colors
|
|
125
|
-
duration-100 hover:bg-hover-2`,style:w?{animation:`bui-fade-up 350ms cubic-bezier(0.23,1,0.32,1) ${P*90}ms both`}:{opacity:0},children:[jsxRuntime.jsxs("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"shrink-0",children:[jsxRuntime.jsx("path",{d:"M9 10l-5 5 5 5"}),jsxRuntime.jsx("path",{d:"M20 4v7a4 4 0 0 1-4 4H4"})]})
|
|
126
|
-
`)})}):i==="document"?jsxRuntime.jsx("article",{className:"artifact-preview-document",dangerouslySetInnerHTML:{__html:s.html??""}}):i==="spreadsheet"?jsxRuntime.jsx(my,{sheets:s.sheets??[],labels:o}):i==="presentation"?jsxRuntime.jsx(gy,{blob:t,labels:o}):jsxRuntime.jsx(Ho,{label:o.unsupported})}a(py,"ResolvedPreview");function my({sheets:e,labels:t}){let[o,n]=ye.useState(0),r=e[o];if(!r)return jsxRuntime.jsx(Ho,{label:t.failed});let i=r.data.length>500||r.data.some(s=>s.length>100);return jsxRuntime.jsxs("div",{className:"artifact-preview-sheet",children:[jsxRuntime.jsxs("div",{className:"artifact-preview-toolbar",children:[jsxRuntime.jsxs(primitives.Select,{value:String(o),onValueChange:s=>n(Number(s)),children:[jsxRuntime.jsx(primitives.SelectTrigger,{"aria-label":t.sheet,size:"sm",children:jsxRuntime.jsx(primitives.SelectValue,{})}),jsxRuntime.jsx(primitives.SelectContent,{disableTriggerViewportSizing:true,children:e.map((s,l)=>jsxRuntime.jsx(primitives.SelectItem,{value:String(l),children:s.sheet},l))})]}),i&&jsxRuntime.jsx("small",{children:t.truncated})]}),jsxRuntime.jsx("div",{className:"artifact-preview-sheet-scroll",children:jsxRuntime.jsx(primitives.Table,{container:false,children:jsxRuntime.jsx(primitives.TableBody,{children:r.data.slice(0,500).map((s,l)=>jsxRuntime.jsxs(primitives.TableRow,{children:[jsxRuntime.jsx(primitives.TableHead,{scope:"row",children:l+1}),s.slice(0,100).map((d,c)=>jsxRuntime.jsx(primitives.TableCell,{children:d instanceof Date?d.toLocaleString():String(d??"")},c))]},l))})})})]})}a(my,"SpreadsheetContent");function gy({blob:e,labels:t}){let o=ye.useRef(null),n=ye.useRef(null),r=ye.useRef(),i=ye.useRef(0),[s,l]=ye.useState(0),[d,c]=ye.useState(0),[u,m]=ye.useState("loading");ye.useEffect(()=>{let g=false,b,x,f=n.current,y=a(()=>({width:o.current?.clientWidth||1,height:o.current?.clientHeight||1}),"viewport");return m("loading"),i.current=0,l(0),(async()=>{let[{createArtifactPresentation:k},{renderPptxSlide:S}]=await Promise.all([Promise.resolve().then(()=>(dr(),pa)),Promise.resolve().then(()=>(lr(),ua))]),w=await e.arrayBuffer();if(g)return;if(b=await k(f,w,y()),g){b.destroy(),f.replaceChildren();return}r.current=b;let C=a(()=>{b&&S(b,i.current,y());},"render");c(b.slideCount),C(),m("ready"),x=new ResizeObserver(C),x.observe(o.current);})().catch(()=>{g||m("error");}),()=>{g=true,x?.disconnect(),r.current=void 0,b?.destroy(),f.replaceChildren();}},[e]);let p=a(async g=>{i.current=g,l(g);let{renderPptxSlide:b}=await Promise.resolve().then(()=>(lr(),ua));r.current&&o.current&&b(r.current,g,{width:o.current.clientWidth,height:o.current.clientHeight});},"select");return jsxRuntime.jsxs("div",{className:"artifact-preview-slides",children:[jsxRuntime.jsxs("div",{className:"artifact-preview-toolbar",children:[jsxRuntime.jsx(Te,{variant:"quiet",size:"xs","aria-label":t.previous,disabled:u!=="ready"||s===0,onClick:()=>{p(s-1);},children:jsxRuntime.jsx(lucideReact.ChevronLeft,{size:16})}),jsxRuntime.jsx("span",{children:t.page(d?s+1:0,d)}),jsxRuntime.jsx(Te,{variant:"quiet",size:"xs","aria-label":t.next,disabled:u!=="ready"||s>=d-1,onClick:()=>{p(s+1);},children:jsxRuntime.jsx(lucideReact.ChevronRight,{size:16})})]}),jsxRuntime.jsxs("div",{className:"artifact-preview-slide-stage",ref:o,children:[jsxRuntime.jsx("div",{ref:n}),u!=="ready"&&jsxRuntime.jsx("div",{className:"artifact-preview-cover",children:jsxRuntime.jsx(Ho,{label:u==="loading"?t.loading:t.failed,loading:u==="loading"})})]})]})}a(gy,"PresentationContent");function _i({children:e,preview:t,label:o,previewLabel:n,previewChrome:r="panel",resizeLabel:i,onPreviewClose:s,maximized:l=false}){let d=ye.useRef(null),[c,u]=ye.useState(1200),[m,p]=ye.useState(58);ye.useEffect(()=>{let k=d.current;if(!k)return;let S=a(()=>u(k.getBoundingClientRect().width),"measure");S();let w=new ResizeObserver(S);return w.observe(k),()=>w.disconnect()},[]);let g=c<960,b=!!t,x=b&&l,f=Math.min(60,360/Math.max(c,1)*100),y=Math.max(f,Math.min(72,100-320/Math.max(c,1)*100));return jsxRuntime.jsx("div",{ref:d,className:"agent-artifact-layout","data-preview-open":b,"data-preview-overlay":g,"data-preview-maximized":x,children:jsxRuntime.jsx(base.BaseLayoutSplit,{resizable:b&&!g&&!x,minSize:f,maxSize:y,size:Math.max(f,Math.min(y,m)),onSizeChange:p,gap:"var(--monkeys-semantic-spacing-global,var(--global-spacing,1rem))",resizeLabel:i,className:"agent-artifact-split",classNames:{primary:"agent-artifact-primary",secondary:"agent-artifact-secondary",handle:"agent-artifact-resize"},style:!b||g||x?{gridTemplateColumns:"minmax(0,1fr)",gap:0}:void 0,primary:jsxRuntime.jsx(primitives.BentoPanel,{"aria-label":o,className:"agent-artifact-main",contentClassName:"agent-artifact-bento-body",children:jsxRuntime.jsx(re,{children:e})}),secondary:t?jsxRuntime.jsx(primitives.BentoPanel,{"aria-label":n,chrome:r,className:"agent-artifact-detail",contentClassName:"agent-artifact-bento-body",onKeyDown:k=>{k.key==="Escape"&&(k.stopPropagation(),s?.());},children:jsxRuntime.jsx(re,{children:t})}):void 0})})}a(_i,"AgentArtifactLayout");dr();lr();Wi();function dc(e){return !!e&&typeof e=="object"&&!Array.isArray(e)}a(dc,"isRecord");function hy(e){if(e!==void 0&&e!=="ltr"&&e!=="rtl")throw new TypeError('MonkeysProvider direction must be "ltr" or "rtl".')}a(hy,"validateDirection");function vy(e){if(e!==void 0){if(!dc(e))throw new TypeError("MonkeysProvider environment must be an object.");if(e.getDocument!==void 0&&typeof e.getDocument!="function")throw new TypeError("MonkeysProvider environment.getDocument must be a function.");if(e.getWindow!==void 0&&typeof e.getWindow!="function")throw new TypeError("MonkeysProvider environment.getWindow must be a function.")}}a(vy,"validateEnvironment");function xy(e){if(e!==void 0){if(!dc(e))throw new TypeError("MonkeysProvider portal must be an object.");if(e.disabled!==void 0&&typeof e.disabled!="boolean")throw new TypeError("MonkeysProvider portal.disabled must be a boolean.");if(e.container!=null&&typeof e.container!="function"&&typeof e.container!="object")throw new TypeError("MonkeysProvider portal.container must be an Element, null, or a function.")}}a(xy,"validatePortal");function ky(e,t,o,n){return e?dn(e,{colorMode:t,density:o}):n}a(ky,"resolveProviderTheme");function pr({children:e,locale:t,messages:o,direction:n,theme:r,themeId:i,colorMode:s,density:l,appearance:d,environment:c,iconResolver:u,imageResolver:m,portal:p,statusStates:g,listFooter:b}){let x=ye.useContext(Cn),f=ye.useContext(rn),y=ye.useContext(Zn),k=ye.useContext(Jn);if(hy(n),vy(c),u!==void 0&&typeof u!="function")throw new TypeError("MonkeysProvider iconResolver must be a function.");if(m!==void 0&&typeof m!="function")throw new TypeError("MonkeysProvider imageResolver must be a function.");xy(p);let S=ye.useMemo(()=>ci(t,o,x),[t,o,x]),w=ye.useMemo(()=>({...S,provided:true}),[S]),C=ye.useMemo(()=>ky(r,s,l,f.resolvedTheme),[s,l,f.resolvedTheme,r]),T=ye.useMemo(()=>({provided:true,resolvedTheme:C,themeId:i??f.themeId,baseAppearance:{...f.baseAppearance,...d?.base,...l?{density:l}:void 0,slots:{...f.baseAppearance?.slots,...d?.base?.slots},styles:{...f.baseAppearance?.styles,...d?.base?.styles}},dataExplorerAppearance:{...f.dataExplorerAppearance,...d?.dataExplorer,...l?{density:l}:void 0,slots:{...f.dataExplorerAppearance?.slots,...d?.dataExplorer?.slots},styles:{...f.dataExplorerAppearance?.styles,...d?.dataExplorer?.styles}},statusStates:{...f.statusStates,...g,loading:{...f.statusStates?.loading,...g?.loading},empty:{...f.statusStates?.empty,...g?.empty},error:{...f.statusStates?.error,...g?.error},permission:{...f.statusStates?.permission,...g?.permission}},listFooter:{...f.listFooter,...b,...b?.pageSizeOptions?{pageSizeOptions:[...b.pageSizeOptions]}:void 0}}),[d?.base,d?.dataExplorer,l,f.baseAppearance,f.dataExplorerAppearance,f.statusStates,f.themeId,C,g,b,i]),$=ye.useMemo(()=>({provided:true,direction:n??y.direction??"ltr"}),[n,y.direction]),P=ye.useMemo(()=>({provided:true,iconResolver:u??k.iconResolver,imageResolver:m??k.imageResolver,environment:{...k.environment,...c},portal:{...k.portal,...p}}),[c,k.environment,k.iconResolver,u,m,k.imageResolver,k.portal,p]);return jsxRuntime.jsx(Cn.Provider,{value:w,children:jsxRuntime.jsx(rn.Provider,{value:T,children:jsxRuntime.jsx(Zn.Provider,{value:$,children:jsxRuntime.jsx(Jn.Provider,{value:P,children:e})})})})}a(pr,"MonkeysProvider");var Cy={sm:"h-8 px-2.5 text-xs",md:"h-9 px-3 text-sm",lg:"h-10 px-3.5 text-base"},Ty={sm:"h-8 w-8 px-0",md:"h-9 w-9 px-0",lg:"h-10 w-10 px-0"},Ui={sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"};function ba(e){return typeof e=="string"&&e.trim()?e:void 0}a(ba,"nonEmptyText");function Sy(){return jsxRuntime.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-full w-full motion-safe:animate-spin motion-reduce:animate-none",fill:"none",children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"9",className:"opacity-25",stroke:"currentColor",strokeWidth:"3"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M12 3a9 9 0 0 1 9 9h-3a6 6 0 0 0-6-6V3Z"})]})}a(Sy,"LoadingIcon");var Fo=ye.forwardRef(a(function({children:t,label:o,icon:n,endIcon:r,type:i="button",title:s,ariaLabel:l,tone:d,size:c,active:u=false,iconOnly:m=false,disabled:p=false,loading:g=false,stopPropagation:b=false,appearance:x,variant:f,density:y,state:k,className:S,classNames:w,style:C,onClick:T,"aria-label":$,"aria-pressed":P,...E},R){for(let[se,V]of [["active",u],["iconOnly",m],["disabled",p],["loading",g],["stopPropagation",b]])if(typeof V!="boolean")throw new TypeError(`BaseButton ${se} must be a boolean.`);if(c!==void 0&&c!=="sm"&&c!=="md"&&c!=="lg")throw new TypeError('BaseButton size must be "sm", "md", or "lg".');if(d!==void 0&&d!=="default"&&d!=="primary"&&d!=="success"&&d!=="warning"&&d!=="danger"&&d!=="muted")throw new TypeError('BaseButton tone must be "default", "primary", "success", "warning", "danger", or "muted".');let W=Se(x),B=ge(),A=xe({...W,variant:f,density:y,state:k}),L=t??o,I=H(L)&&(typeof L!="string"||!!L.trim()),K=ba(l)??ba($),q=typeof L=="string"?ba(L):void 0,_=ba(s);if(m&&!I&&!K&&!_)throw new TypeError("BaseButton iconOnly requires ariaLabel, aria-label, title, or a renderable label.");let Y=K??q??_,M=p||g,z=d??"default",Q=k??(g?"loading":p?"disabled":u?"active":"idle"),ce=a(se=>{b&&se.stopPropagation(),!M&&T?.(se);},"handleClick");return jsxRuntime.jsxs(qr,{...B,...E,ref:R,type:i,tabIndex:E.tabIndex,title:s,"aria-label":Y,"aria-pressed":P??(u||void 0),"aria-busy":g||void 0,"data-variant":A.variant,"data-density":A.density,disabled:M,"data-monkeys-component":"button","data-slot":"root","data-state":Q,"data-tone":z,"data-size":c,"data-active":u||void 0,"data-loading":g||void 0,"data-disabled":M||void 0,"data-icon-only":m||void 0,className:v(A.slots.buttonBase,m&&A.slots.buttonIconOnly,c&&Cy[c],m&&c&&Ty[c],Vr(A,d,u),M&&A.slots.buttonDisabled,w?.root,S),style:{...A.styles.button,...u?A.styles.buttonActive:void 0,...M?A.styles.buttonDisabled:void 0,...C},onClick:ce,children:[g?jsxRuntime.jsx("span",{"data-slot":"icon","data-state":Q,"data-tone":z,"data-size":c,className:v(A.slots.buttonIcon,c&&Ui[c],w?.icon),children:jsxRuntime.jsx(Sy,{})}):n?jsxRuntime.jsx("span",{"data-slot":"icon","data-state":Q,"data-tone":z,"data-size":c,className:v(A.slots.buttonIcon,c&&Ui[c],w?.icon),children:n}):null,m?H(L)?jsxRuntime.jsx("span",{"data-slot":"label","data-state":Q,"data-tone":z,"data-size":c,className:"sr-only",children:L}):null:H(L)?jsxRuntime.jsx("span",{"data-slot":"label","data-state":Q,"data-tone":z,"data-size":c,className:v(A.slots.buttonLabel,w?.label),children:L}):null,!g&&r?jsxRuntime.jsx("span",{"data-slot":"end-icon","data-state":Q,"data-tone":z,"data-size":c,className:v(A.slots.buttonIcon,c&&Ui[c],w?.icon,w?.endIcon),children:r}):null]})},"BaseButton"));function Vi(e,t){let o=typeof e=="function"?e():e;if(o===null)return null;if(!o||typeof o!="object"||o.nodeType!==1)throw new TypeError(`${t} must resolve to an Element or null.`);return o}a(Vi,"resolveContainerValue");function uc({explicitProvided:e,explicitContainer:t,providerProvided:o,providerContainer:n,getDocument:r}){if(e)return Vi(t,"BasePortal container");if(o)return Vi(n,"MonkeysProvider portal.container");if(!r)return null;let i=r();if(i===null)return null;if(!i||typeof i!="object"||!("body"in i))throw new TypeError("MonkeysProvider environment.getDocument must resolve to a Document or null.");return Vi(i.body,"MonkeysProvider environment.getDocument().body")}a(uc,"resolveBasePortalContainer");function Ry({mounted:e,explicitDisabled:t,explicitContainer:o,providerDisabled:n,providerContainer:r,getDocument:i}){let s=t??n??false;if(!e||s)return {mounted:e,disabled:s,shouldPortal:false,container:null,radixPortalProps:void 0};let l=uc({explicitProvided:o!==void 0,explicitContainer:o,providerProvided:r!==void 0,providerContainer:r,getDocument:i});return l?{mounted:true,disabled:false,shouldPortal:true,container:l,radixPortalProps:Object.freeze({container:l})}:{mounted:true,disabled:false,shouldPortal:false,container:null,radixPortalProps:void 0}}a(Ry,"resolveBaseOverlayPortalState");function My(){return globalThis.document??null}a(My,"getDefaultDocument");function mr(e={}){let t=Tn(),o=sn(),[n,r]=ye.useState(false);return ye.useEffect(()=>{r(true);},[]),Ry({mounted:n,explicitDisabled:e.disabled,explicitContainer:e.container,providerDisabled:o.disabled,providerContainer:o.container,getDocument:t.getDocument??My})}a(mr,"useBaseOverlayPortal");var Ay=["default","primary","success","warning","danger","muted"];function Ft(e,t){if(typeof e!="boolean")throw new TypeError(`BaseContextMenu ${t} must be a boolean.`)}a(Ft,"validateBoolean");function ya(e){if(e!==void 0&&!Ay.includes(e))throw new TypeError('BaseContextMenu tone must be "default", "primary", "success", "warning", "danger", or "muted".')}a(ya,"validateTone");function By(e){if(e!==void 0&&e!=="ltr"&&e!=="rtl")throw new TypeError('BaseContextMenu dir must be "ltr" or "rtl".')}a(By,"validateDirection");function Ny(){return jsxRuntime.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",className:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:jsxRuntime.jsx("path",{d:"M3.5 8.5 6.5 11.5 12.5 4.5"})})}a(Ny,"CheckIcon");function Ey(){return jsxRuntime.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",className:"h-3.5 w-3.5",fill:"currentColor",children:jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"3"})})}a(Ey,"DotIcon");function Iy(){return jsxRuntime.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",className:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:jsxRuntime.jsx("path",{d:"m6 4 4 4-4 4"})})}a(Iy,"ChevronRightIcon");function ji({label:e,icon:t,shortcut:o,children:n,classNames:r,inset:i,indicator:s}){let l=n??e;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s||null,H(t)?jsxRuntime.jsx("span",{"data-slot":"icon",className:v(r?.icon),children:t}):i?jsxRuntime.jsx("span",{"aria-hidden":"true","data-slot":"icon",className:"h-4 w-4 shrink-0"}):null,H(l)?jsxRuntime.jsx("span",{"data-slot":"label",className:v(r?.label),children:l}):null,H(o)?jsxRuntime.jsx("span",{"data-slot":"shortcut",className:v(r?.shortcut),children:o}):null]})}a(ji,"renderItemContent");function Gi({children:e,trigger:t,content:o,disabled:n=false,modal:r=true,dir:i,appearance:s,className:l,classNames:d,onOpenChange:c}){Ft(n,"disabled"),Ft(r,"modal"),By(i);let u=er(),m=Se(s);return jsxRuntime.jsxs(Ae__namespace.Root,{onOpenChange:c,modal:r,dir:i??u,children:[t?jsxRuntime.jsx(ha,{disabled:n,appearance:m,className:v(d?.trigger,l),children:t}):null,o?jsxRuntime.jsx(pc,{appearance:m,className:d?.content,children:o}):null,e]})}a(Gi,"BaseContextMenu");var ha=ye.forwardRef(a(function({children:t,disabled:o=false,asChild:n=false,appearance:r,className:i,style:s,...l},d){Ft(o,"Trigger disabled"),Ft(n,"Trigger asChild");let c=Se(r),u=ge(),m=xe(c);return jsxRuntime.jsx(Ae__namespace.Trigger,{...u,...l,ref:d,asChild:n,disabled:o,"data-monkeys-component":"context-menu","data-slot":"trigger","data-disabled":o||void 0,className:v(!n&&m.slots.menuTrigger,o&&!n&&m.slots.menuItemDisabled,i),style:s,children:t})},"BaseContextMenuTrigger")),pc=ye.forwardRef(a(function({children:t,appearance:o,className:n,classNames:r,style:i,...s},l){let d=Se(o),c=ge(),u=xe(d),m=mr(),p=jsxRuntime.jsx(Ae__namespace.Content,{...c,...s,ref:l,"data-monkeys-component":"context-menu","data-slot":"content",className:v(u.slots.menuContent,r?.root,n),style:{...u.styles.menuContent,...i},children:t});return m.shouldPortal?jsxRuntime.jsx(Ae__namespace.Portal,{...m.radixPortalProps,children:p}):p},"BaseContextMenuContent"));ye.forwardRef(a(function({children:t,appearance:o,className:n,style:r,...i},s){let l=Se(o),d=ge(),c=xe(l);return jsxRuntime.jsx(Ae__namespace.Label,{...d,...i,ref:s,"data-monkeys-component":"context-menu","data-slot":"label",className:v(c.slots.menuLabel,n),style:r,children:t})},"BaseContextMenuLabel"));ye.forwardRef(a(function({appearance:t,className:o,style:n,...r},i){let s=Se(t),l=ge(),d=xe(s);return jsxRuntime.jsx(Ae__namespace.Separator,{...l,...r,ref:i,"data-monkeys-component":"context-menu","data-slot":"separator",className:v(d.slots.menuSeparator,o),style:n})},"BaseContextMenuSeparator"));var Nn=ye.forwardRef(a(function({children:t,label:o,icon:n,shortcut:r,tone:i,disabled:s=false,inset:l=false,appearance:d,className:c,classNames:u,style:m,onSelect:p,...g},b){Ft(s,"Item disabled"),Ft(l,"Item inset"),ya(i);let x=i??"default",f=Se(d),y=ge(),k=xe(f);return jsxRuntime.jsx(Ae__namespace.Item,{...y,...g,ref:b,disabled:s,"data-monkeys-component":"context-menu","data-slot":"item","data-tone":x,"data-disabled":s||void 0,className:v(k.slots.menuItem,tr(k,i),s&&k.slots.menuItemDisabled,u?.root,c),style:{...k.styles.menuItem,...m},onSelect:S=>{if(s){S.preventDefault();return}p?.(S);},children:ji({children:t,label:o,icon:n,shortcut:r,inset:l,classNames:{icon:v(k.slots.menuItemIcon,u?.icon),label:v(k.slots.menuItemLabel,u?.label),shortcut:v(k.slots.menuItemShortcut,u?.shortcut)}})})},"BaseContextMenuItem"));ye.forwardRef(a(function({children:t,label:o,icon:n,shortcut:r,tone:i,disabled:s=false,inset:l=false,checked:d,onCheckedChange:c,appearance:u,className:m,classNames:p,style:g,onSelect:b,...x},f){if(Ft(s,"CheckboxItem disabled"),Ft(l,"CheckboxItem inset"),ya(i),d!==void 0&&d!=="indeterminate"&&typeof d!="boolean")throw new TypeError('BaseContextMenu CheckboxItem checked must be a boolean or "indeterminate".');let y=i??"default",k=Se(u),S=ge(),w=xe(k);return jsxRuntime.jsx(Ae__namespace.CheckboxItem,{...S,...x,ref:f,checked:d,disabled:s,"data-monkeys-component":"context-menu","data-slot":"checkbox-item","data-tone":y,"data-disabled":s||void 0,"data-checked":d==="indeterminate"?"mixed":d===void 0?void 0:String(d),onCheckedChange:C=>{s||c?.(C);},className:v(w.slots.menuItem,"pl-8",tr(w,i),s&&w.slots.menuItemDisabled,p?.root,m),style:{...w.styles.menuItem,...g},onSelect:C=>{if(s){C.preventDefault();return}b?.(C);},children:ji({children:t,label:o,icon:n,shortcut:r,inset:l,classNames:{icon:v(w.slots.menuItemIcon,p?.icon),label:v(w.slots.menuItemLabel,p?.label),shortcut:v(w.slots.menuItemShortcut,p?.shortcut)},indicator:jsxRuntime.jsx(Ae__namespace.ItemIndicator,{"data-slot":"indicator",className:v(w.slots.menuCheckboxIndicator,p?.indicator),children:jsxRuntime.jsx(Ny,{})})})})},"BaseContextMenuCheckboxItem"));ye.forwardRef(a(function({children:t,label:o,icon:n,shortcut:r,tone:i,disabled:s=false,inset:l=false,value:d,appearance:c,className:u,classNames:m,style:p,onSelect:g,...b},x){Ft(s,"RadioItem disabled"),Ft(l,"RadioItem inset"),ya(i);let f=i??"default",y=Se(c),k=ge(),S=xe(y);return jsxRuntime.jsx(Ae__namespace.RadioItem,{...k,...b,ref:x,value:d,disabled:s,"data-monkeys-component":"context-menu","data-slot":"radio-item","data-tone":f,"data-value":d,"data-disabled":s||void 0,className:v(S.slots.menuItem,"pl-8",tr(S,i),s&&S.slots.menuItemDisabled,m?.root,u),style:{...S.styles.menuItem,...p},onSelect:w=>{if(s){w.preventDefault();return}g?.(w);},children:ji({children:t,label:o,icon:n,shortcut:r,inset:l,classNames:{icon:v(S.slots.menuItemIcon,m?.icon),label:v(S.slots.menuItemLabel,m?.label),shortcut:v(S.slots.menuItemShortcut,m?.shortcut)},indicator:jsxRuntime.jsx(Ae__namespace.ItemIndicator,{"data-slot":"indicator",className:v(S.slots.menuRadioIndicator,m?.indicator),children:jsxRuntime.jsx(Ey,{})})})})},"BaseContextMenuRadioItem"));ye.forwardRef(a(function({children:t,label:o,icon:n,tone:r,disabled:i=false,inset:s=false,appearance:l,className:d,classNames:c,style:u,...m},p){Ft(i,"SubTrigger disabled"),Ft(s,"SubTrigger inset"),ya(r);let g=r??"default",b=Se(l),x=ge(),f=xe(b),y=t??o;return jsxRuntime.jsxs(Ae__namespace.SubTrigger,{...x,...m,ref:p,disabled:i,"data-monkeys-component":"context-menu","data-slot":"sub-trigger","data-tone":g,"data-disabled":i||void 0,className:v(f.slots.menuSubTrigger,tr(f,r),i&&f.slots.menuItemDisabled,c?.root,d),style:{...f.styles.menuItem,...u},children:[H(n)?jsxRuntime.jsx("span",{"data-slot":"icon",className:v(f.slots.menuItemIcon,c?.icon),children:n}):s?jsxRuntime.jsx("span",{"aria-hidden":"true","data-slot":"icon",className:"h-4 w-4 shrink-0"}):null,H(y)?jsxRuntime.jsx("span",{"data-slot":"label",className:v(f.slots.menuItemLabel,c?.label),children:y}):null,jsxRuntime.jsx("span",{"data-slot":"sub-indicator",className:v(f.slots.menuSubTriggerIcon,c?.shortcut,"rtl:rotate-180"),children:jsxRuntime.jsx(Iy,{})})]})},"BaseContextMenuSubTrigger"));ye.forwardRef(a(function({children:t,appearance:o,className:n,classNames:r,style:i,sideOffset:s=6,...l},d){let c=Se(o),u=ge(),m=xe(c),p=mr(),g=jsxRuntime.jsx(Ae__namespace.SubContent,{...u,...l,ref:d,sideOffset:s,"data-monkeys-component":"context-menu","data-slot":"sub-content",className:v(m.slots.menuSubContent,r?.root,n),style:{...m.styles.menuContent,...i},children:t});return p.shouldPortal?jsxRuntime.jsx(Ae__namespace.Portal,{...p.radixPortalProps,children:g}):g},"BaseContextMenuSubContent"));var _y={1:"grid-cols-1",2:"md:grid-cols-2",3:"md:grid-cols-2 xl:grid-cols-3"};function Ki({items:e,columns:t=1,appearance:o,className:n,classNames:r,style:i,children:s,...l}){let d=xe(o);return jsxRuntime.jsxs("dl",{...l,className:v(d.slots.descriptionListRoot,_y[t],r?.root,n),style:{...d.styles.descriptionList,...i},children:[e?.map((c,u)=>jsxRuntime.jsxs("div",{className:v(d.slots.descriptionListItem,r?.item),children:[jsxRuntime.jsx("dt",{className:v(d.slots.descriptionListTerm,r?.term),children:c.term}),jsxRuntime.jsx("dd",{className:v(d.slots.descriptionListValue,r?.value),children:c.value})]},u)),s]})}a(Ki,"BaseDescriptionList");var Gy=["default","primary","success","warning","danger","muted"];function oo(e,t){if(typeof e!="boolean")throw new TypeError(`BaseDialog ${t} must be a boolean.`)}a(oo,"validateBoolean");function qy(e){if(!Gy.includes(e))throw new TypeError('BaseDialog triggerTone must be "default", "primary", "success", "warning", "danger", or "muted".')}a(qy,"validateTriggerTone");function Ky({trigger:e,triggerLabel:t,triggerIcon:o,triggerTone:n,triggerDisabled:r,theme:i}){return H(e)?jsxRuntime.jsx("span",{role:"button",tabIndex:r?-1:0,"aria-disabled":r||void 0,onKeyDown:s=>{r||(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),s.currentTarget.click());},children:e}):H(t)?jsxRuntime.jsxs("button",{type:"button",disabled:r,"aria-label":typeof t=="string"&&t.trim()?t:void 0,className:v(i.slots.buttonBase,Vr(i,n),r&&i.slots.buttonDisabled),style:{...i.styles.button,...r?i.styles.buttonDisabled:void 0},children:[H(o)?jsxRuntime.jsx("span",{"data-slot":"icon",className:i.slots.buttonIcon,children:o}):null,jsxRuntime.jsx("span",{"data-slot":"label",className:i.slots.buttonLabel,children:t})]}):null}a(Ky,"renderTrigger");var bc=ye.forwardRef(a(function({open:t,defaultOpen:o=false,size:n="default",title:r,description:i,header:s,footer:l,trigger:d,triggerLabel:c,triggerIcon:u,triggerTone:m="default",triggerDisabled:p=false,closeLabel:g,closeOnEscape:b=true,closeOnOverlayClick:x=true,showCloseButton:f=true,keepMounted:y=false,trapFocus:k=true,restoreFocus:S=true,initialFocus:w="first-interactive",initialFocusRef:C,zIndex:T,portal:$=false,appearance:P,className:E,classNames:R,style:W,children:B,onOpenChange:A,id:L,...I},K){if(t!==void 0&&oo(t,"open"),oo(o,"defaultOpen"),!["default","viewport","page"].includes(n))throw new TypeError("BaseDialog size must be default, viewport or page.");if(oo(p,"triggerDisabled"),oo(b,"closeOnEscape"),oo(x,"closeOnOverlayClick"),oo(f,"showCloseButton"),oo(y,"keepMounted"),oo(k,"trapFocus"),oo(S,"restoreFocus"),oo($,"portal"),qy(m),w!=="first-interactive"&&w!=="container"&&w!=="explicit")throw new TypeError('BaseDialog initialFocus must be "first-interactive", "container", or "explicit".');if(T!==void 0&&!Number.isFinite(T))throw new TypeError("BaseDialog zIndex must be a finite number.");let q=$t().dialog,_=Se(P),Y=ge(),M=g===void 0?q.close:g,z=xe(_),Q=mr({disabled:!$}),[ce,se]=ye.useState(o),V=ye.useRef(null),J=ye.useRef(null),O=t!==void 0,F=O?t:ce,oe=$&&Q.shouldPortal?"portaled":"inline",ae=H(r),pe=H(i),Ce=H(s);if(f&&(typeof M!="string"||!M.trim()))throw new TypeError("BaseDialog closeLabel must be a non-empty string when showCloseButton is true.");let Z=a(te=>{O||se(te),A?.(te);},"handleOpenChange");ye.useEffect(()=>{if(!F||!y)return;let te=V.current,De=te?.ownerDocument,qe=De?.defaultView;if(!te||!De||!qe)return;J.current=De.activeElement instanceof qe.HTMLElement?De.activeElement:null;let ft=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),Gt=a(()=>{let me=te.querySelector(ft);(w==="container"?te:w==="explicit"?C?.current??te:me??te).focus();},"focusInitial"),$o=qe.requestAnimationFrame(Gt),j=a(me=>{if(me.key==="Escape"&&b){me.preventDefault(),me.stopPropagation(),Z(false);return}if(me.key!=="Tab"||!k)return;let Ne=Array.from(te.querySelectorAll(ft));if(Ne.length===0){me.preventDefault(),te.focus();return}let He=Ne[0],Ke=Ne[Ne.length-1];me.shiftKey&&De.activeElement===He?(me.preventDefault(),Ke.focus()):!me.shiftKey&&De.activeElement===Ke&&(me.preventDefault(),He.focus());},"handleKeyDown");return qe.addEventListener("keydown",j),()=>{qe.cancelAnimationFrame($o),qe.removeEventListener("keydown",j),S&&J.current?.isConnected&&J.current.focus();}},[b,w,C,F,y,S,k]);let Re=Ce||ae||pe?jsxRuntime.jsxs("div",{...Y,"data-monkeys-component":"dialog","data-slot":"header","data-state":F?"open":"closed","data-portal":oe,className:v(z.slots.dialogHeader,R?.header,n==="page"&&"sr-only"),children:[Ce?s:null,ae?jsxRuntime.jsx(je__namespace.Title,{...Y,"data-monkeys-component":"dialog","data-slot":"title","data-state":F?"open":"closed","data-portal":oe,className:Ce?"sr-only":v(z.slots.dialogTitle,R?.title),children:r}):null,pe?jsxRuntime.jsx(je__namespace.Description,{...Y,"data-monkeys-component":"dialog","data-slot":"description","data-state":F?"open":"closed","data-portal":oe,className:Ce?"sr-only":v(z.slots.dialogDescription,R?.description),children:i}):null]}):null,Ge=Ky({trigger:d,triggerLabel:c,triggerIcon:u,triggerTone:m,triggerDisabled:p,theme:z}),gt=F||y?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(je__namespace.Overlay,{forceMount:y||void 0,hidden:!F,...Y,"aria-hidden":"true","data-monkeys-component":"dialog","data-slot":"overlay","data-portal":oe,className:v(z.slots.dialogOverlay,R?.overlay),style:{...z.styles.dialogOverlay,zIndex:T,...n==="page"?{background:"transparent",backdropFilter:"none"}:{}}}),jsxRuntime.jsx("div",{...Y,hidden:!F,"data-monkeys-component":"dialog","data-slot":"content","data-state":F?"open":"closed","data-portal":oe,className:v(z.slots.dialogContent,R?.content),style:{zIndex:T,...n==="page"?{padding:0,inset:0}:{}},children:jsxRuntime.jsx(je__namespace.Content,{forceMount:y||void 0,...Y,...ae?{}:{"aria-labelledby":void 0},...pe?{}:{"aria-describedby":void 0},asChild:true,onOpenAutoFocus:te=>{if(y){te.preventDefault();return}let De=V.current;J.current=De?.ownerDocument.activeElement,(w==="container"||w==="explicit")&&(te.preventDefault(),(w==="explicit"?C?.current??De:De)?.focus({preventScroll:true}));},onCloseAutoFocus:te=>{if(y||!S){te.preventDefault();return}let De=J.current;De?.isConnected&&(te.preventDefault(),De.focus({preventScroll:true}));},onEscapeKeyDown:te=>{(y||!b)&&te.preventDefault();},onPointerDownOutside:te=>{x||te.preventDefault();},children:jsxRuntime.jsxs("div",{...Y,ref:V,tabIndex:-1,"aria-modal":"true","data-monkeys-component":"dialog","data-slot":"panel","data-portal":oe,className:v(z.slots.dialogPanel,R?.panel),"data-presentation":n,style:{...z.styles.dialogPanel,...n!=="default"?{width:n==="page"?"100vw":"96vw",maxWidth:"none",height:n==="page"?"100dvh":"94dvh",maxHeight:n==="page"?"100dvh":"94dvh",display:"flex",flexDirection:"column"}:{},...n==="page"?{borderRadius:0,border:0,boxShadow:"none",margin:0,animation:"none"}:{}},children:[Re,f?jsxRuntime.jsx(je__namespace.Close,{asChild:true,children:jsxRuntime.jsx("button",{...Y,type:"button","aria-label":M,title:M,"data-monkeys-component":"dialog","data-slot":"close","data-state":F?"open":"closed","data-portal":oe,className:v(z.slots.dialogClose,R?.close),children:"\xD7"})}):null,jsxRuntime.jsx("div",{...Y,"data-monkeys-component":"dialog","data-slot":"body","data-state":F?"open":"closed","data-portal":oe,className:v(z.slots.dialogBody,R?.body),style:n!=="default"?{minHeight:0,flex:"1 1 0%",overflow:"hidden",padding:0}:void 0,children:B}),H(l)?jsxRuntime.jsx("div",{...Y,"data-monkeys-component":"dialog","data-slot":"footer","data-state":F?"open":"closed","data-portal":oe,className:v(z.slots.dialogFooter,R?.footer),children:l}):null]})})})]}):null;return jsxRuntime.jsx("div",{...Y,...I,ref:K,id:L,"data-monkeys-component":"dialog","data-slot":"root","data-state":F?"open":"closed","data-portal":oe,className:v(z.slots.dialogRoot,R?.root,E),style:W,children:jsxRuntime.jsxs(je__namespace.Root,{open:F,onOpenChange:Z,modal:!y&&k,children:[Ge?jsxRuntime.jsx(je__namespace.Trigger,{...Y,asChild:true,disabled:p,"data-monkeys-component":"dialog","data-slot":"trigger","data-portal":oe,"data-tone":m,"data-disabled":p||void 0,className:v(z.slots.dialogTrigger,p&&z.slots.dialogTriggerDisabled,R?.trigger),children:Ge}):null,$&&Q.shouldPortal?jsxRuntime.jsx(mo,{children:jsxRuntime.jsx(je__namespace.Portal,{...Q.radixPortalProps,forceMount:y||void 0,children:gt})}):jsxRuntime.jsx(mo,{children:gt})]})})},"BaseDialog"));function Qy(){return jsxRuntime.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-6 w-6",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.8",children:[jsxRuntime.jsx("rect",{width:"16",height:"12",x:"4",y:"6",rx:"2"}),jsxRuntime.jsx("path",{d:"M8 10h8"}),jsxRuntime.jsx("path",{d:"M8 14h5"})]})}a(Qy,"DefaultEmptyIcon");var Xi=ye.forwardRef(a(function({icon:t=jsxRuntime.jsx(Qy,{}),title:o,description:n,actions:r,variant:i,appearance:s,className:l,classNames:d,style:c,...u},m){let p=Se(s),g=ge(),b=an(),x=i??b.empty?.variant??"default",f=b.density==="compact"?"min-h-0 px-3 py-3":b.density==="comfortable"?"min-h-56 px-8 py-12":void 0,y=xe(p);return jsxRuntime.jsxs("div",{...g,...u,ref:m,"data-monkeys-component":"empty-state","data-slot":"root","data-state":"empty","data-variant":x,"data-density":b.density,className:v(y.slots.stateRoot,f,x==="compact"&&"min-h-0 gap-1 py-3",d?.root,l),style:{...y.styles.stateRoot,...c},children:[H(t)?jsxRuntime.jsx("div",{"data-slot":"icon","data-state":"empty",className:v(y.slots.stateIcon,d?.icon),style:y.styles.stateIcon,children:t}):null,H(o)?jsxRuntime.jsx("div",{"data-slot":"title","data-state":"empty",className:v(y.slots.stateTitle,d?.title),children:o}):null,H(n)?jsxRuntime.jsx("div",{"data-slot":"description","data-state":"empty",className:v(y.slots.stateDescription,d?.description),children:n}):null,H(r)?jsxRuntime.jsx("div",{"data-slot":"actions","data-state":"empty",className:v(y.slots.stateActions,d?.actions),children:r}):null]})},"BaseEmptyState"));var Jy={line:"h-4 w-full",block:"h-24 w-full",circle:"aspect-square h-10 rounded-full"},va=ye.forwardRef(a(function({variant:t="line",animated:o=true,animation:n,appearance:r,className:i,classNames:s,style:l,...d},c){if(t!=="line"&&t!=="block"&&t!=="circle")throw new TypeError('BaseSkeleton variant must be "line", "block", or "circle".');if(typeof o!="boolean")throw new TypeError("BaseSkeleton animated must be a boolean.");let u=Se(r),m=ge(),p=xe(u),g=zd(n,o,c);return jsxRuntime.jsx("div",{...m,...d,ref:g.ref,"aria-hidden":"true","data-monkeys-component":"skeleton","data-slot":"root","data-variant":t,"data-animated":g.mode!=="none","data-state":g.mode!=="none"?"animated":"static","data-skeleton-animation":g.mode,className:v(p.slots.skeletonRoot,Jy[t],g.mode==="pulse"&&"motion-safe:animate-pulse motion-reduce:animate-none",s?.root,i),style:{...p.styles.skeleton,...g.style,...l}})},"BaseSkeleton"));function oh({className:e}){return jsxRuntime.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:e,fill:"none",children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"9",className:"opacity-25",stroke:"currentColor",strokeWidth:"3"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M12 3a9 9 0 0 1 9 9h-3a6 6 0 0 0-6-6V3Z"})]})}a(oh,"DefaultLoadingIcon");var xa=ye.forwardRef(a(function({icon:t,title:o,description:n,actions:r,variant:i,animation:s,appearance:l,className:d,classNames:c,style:u,role:m="status","aria-live":p="polite","aria-busy":g=true,"aria-label":b,"aria-labelledby":x,...f},y){let k=Se(l),S=ge(),{loading:w}=$t(),C=an(),T=i??C.loading?.variant??"spinner",$=C.density==="compact"?"min-h-0 px-3 py-3":C.density==="comfortable"?"min-h-56 px-8 py-12":void 0,P=xe(k),E=T==="skeleton"&&t===void 0?void 0:t===void 0?jsxRuntime.jsx(oh,{className:v("motion-safe:animate-spin motion-reduce:animate-none",P.slots.loadingSpinner)}):t,R=b??(x===void 0?typeof o=="string"?o:w.spinner:void 0);return jsxRuntime.jsxs("div",{...S,...f,ref:y,role:m,"aria-live":p,"aria-busy":g,"aria-label":R,"aria-labelledby":x,"data-monkeys-component":"loading-state","data-slot":"root","data-state":"loading","data-variant":T,"data-density":C.density,className:v(P.slots.stateRoot,$,c?.root,d),style:{...P.styles.stateRoot,...u},children:[T==="skeleton"?jsxRuntime.jsx(Ld,{animation:s,children:jsxRuntime.jsxs("div",{className:"flex w-full max-w-sm flex-col gap-3","data-slot":"skeleton",children:[jsxRuntime.jsx(va,{variant:"block",className:"h-20"}),jsxRuntime.jsx(va,{variant:"line",className:"w-4/5"}),jsxRuntime.jsx(va,{variant:"line",className:"w-3/5"})]})}):H(E)?jsxRuntime.jsx("div",{"data-slot":"icon","data-state":"loading",className:v(P.slots.stateIcon,c?.icon),style:P.styles.stateIcon,children:E}):null,T!=="skeleton"&&H(o)?jsxRuntime.jsx("div",{"data-slot":"title","data-state":"loading",className:v(P.slots.stateTitle,c?.title),children:o}):null,T!=="skeleton"&&H(n)?jsxRuntime.jsx("div",{"data-slot":"description","data-state":"loading",className:v(P.slots.stateDescription,c?.description),children:n}):null,H(r)?jsxRuntime.jsx("div",{"data-slot":"actions","data-state":"loading",className:v(P.slots.stateActions,c?.actions),children:r}):null]})},"BaseLoadingState"));function rh({kind:e}){return jsxRuntime.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-7 w-7",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.8",children:{error:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"9"}),jsxRuntime.jsx("path",{d:"M12 7v6"}),jsxRuntime.jsx("path",{d:"M12 17h.01"})]}),permission:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("rect",{x:"5",y:"10",width:"14",height:"10",rx:"2"}),jsxRuntime.jsx("path",{d:"M8 10V7a4 4 0 0 1 8 0v3"})]}),offline:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("path",{d:"M5 12.5a10 10 0 0 1 14 0"}),jsxRuntime.jsx("path",{d:"M8.5 16a5 5 0 0 1 7 0"}),jsxRuntime.jsx("path",{d:"M12 20h.01"}),jsxRuntime.jsx("path",{d:"m4 4 16 16"})]}),fallback:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"9"}),jsxRuntime.jsx("path",{d:"M9.5 9a2.5 2.5 0 1 1 4.2 1.8c-1 .8-1.7 1.2-1.7 2.7"}),jsxRuntime.jsx("path",{d:"M12 17h.01"})]})}[e]})}a(rh,"SystemStateIcon");var Qi=ye.forwardRef(a(function({kind:t="fallback",icon:o,title:n,description:r,actions:i,appearance:s,className:l,classNames:d,style:c,role:u,"aria-live":m,...p},g){let b=Se(s),x=ge(),f=an(),y=f.density==="compact"?"min-h-0 px-3 py-3":f.density==="comfortable"?"min-h-56 px-8 py-12":void 0,k=xe(b),S=o===void 0?jsxRuntime.jsx(rh,{kind:t}):o,w=u??(t==="error"||t==="offline"?"alert":"status");return jsxRuntime.jsxs("div",{...x,...p,ref:g,role:w,"aria-live":m??(w==="alert"?"assertive":"polite"),"data-monkeys-component":"system-state","data-slot":"root","data-state":t,"data-density":f.density,className:v(k.slots.stateRoot,y,d?.root,l),style:{...k.styles.stateRoot,...c},children:[H(S)?jsxRuntime.jsx("div",{"data-slot":"icon","data-state":t,className:v(k.slots.stateIcon,d?.icon),style:k.styles.stateIcon,children:S}):null,H(n)?jsxRuntime.jsx("div",{"data-slot":"title","data-state":t,className:v(k.slots.stateTitle,d?.title),children:n}):null,H(r)?jsxRuntime.jsx("div",{"data-slot":"description","data-state":t,className:v(k.slots.stateDescription,d?.description),children:r}):null,H(i)?jsxRuntime.jsx("div",{"data-slot":"actions","data-state":t,className:v(k.slots.stateActions,d?.actions),children:i}):null]})},"BaseSystemState"));var Zi="application/x-monkeys-base-table-column",wa=8;function rs(e,t){typeof e=="function"?e(t):e&&(e.current=t);}a(rs,"assignRef");function ko(e,t){if(t!==void 0&&typeof t!="boolean")throw new Error(`BaseTable ${e} must be a boolean.`)}a(ko,"assertBoolean");function En(e,t,o){if(t!==void 0&&!o.includes(t))throw new Error(`BaseTable ${e} must be one of ${o.map(n=>`"${n}"`).join(", ")}.`)}a(En,"assertEnum");function Ji(e,t){if(t!==void 0&&(typeof t!="string"||t.trim().length===0))throw new Error(`BaseTable ${e} must be a non-empty string when provided.`)}a(Ji,"assertOptionalLabel");function ns(e,t){if(t!==void 0&&typeof t!="function")throw new Error(`BaseTable ${e} must be a function when provided.`)}a(ns,"assertOptionalFunction");function Vo(e,t,o={}){if(e!==void 0){if(typeof e=="number"){if(!Number.isFinite(e)||e<0)throw new Error(`BaseTable ${t} must be a finite non-negative number${o.stringAllowed?" or a non-empty CSS size string":""}.`);return}if(!(o.stringAllowed&&typeof e=="string"&&e.trim().length>0))throw new Error(`BaseTable ${t} must be ${o.stringAllowed?"a finite non-negative number or a non-empty CSS size string":"a finite non-negative number"}.`)}}a(Vo,"validateCssSizeValue");function dh(e){if(e===void 0)return;if(!Array.isArray(e))throw new Error("BaseTable columns must be an array when provided.");let t=new Set;return e.forEach((o,n)=>{if(!o||typeof o!="object"||Array.isArray(o))throw new Error(`BaseTable column at index ${n} must be an object.`);let r=o;if(typeof r.id!="string"||r.id.trim().length===0)throw new Error(`BaseTable column id at index ${n} must be a non-empty string.`);let i=r.id.trim();if(r.id!==i)throw new Error(`BaseTable column id "${r.id}" must not contain surrounding whitespace.`);if(t.has(i))throw new Error(`BaseTable columns contain duplicate id "${i}".`);if(t.add(i),Vo(r.width,`column "${i}" width`,{stringAllowed:true}),Vo(r.minWidth,`column "${i}" minWidth`,{stringAllowed:true}),Vo(r.maxWidth,`column "${i}" maxWidth`,{stringAllowed:true}),typeof r.minWidth=="number"&&typeof r.maxWidth=="number"&&r.minWidth>r.maxWidth)throw new Error(`BaseTable column "${i}" minWidth cannot be greater than maxWidth.`)}),t}a(dh,"validateColumns");function ch(e,t){if(e===void 0)return;if(!Array.isArray(e))throw new Error("BaseTable columnOrder must be an array when provided.");let o=new Set;if(e.forEach((n,r)=>{if(typeof n!="string"||n.trim().length===0)throw new Error(`BaseTable columnOrder entry at index ${r} must be a non-empty string.`);let i=n.trim();if(n!==i)throw new Error(`BaseTable columnOrder entry "${n}" must not contain surrounding whitespace.`);if(o.has(i))throw new Error(`BaseTable columnOrder contains duplicate id "${i}".`);if(t&&!t.has(i))throw new Error(`BaseTable columnOrder contains unknown column id "${i}".`);o.add(i);}),t&&o.size!==t.size){let n=[...t].filter(r=>!o.has(r));throw new Error(`BaseTable columnOrder must contain every configured column id; missing ${n.map(r=>`"${r}"`).join(", ")}.`)}}a(ch,"validateColumnOrder");function uh(e,t){if(e!==void 0){if(!e||typeof e!="object"||Array.isArray(e)||![Object.prototype,null].includes(Object.getPrototypeOf(e)))throw new Error("BaseTable columnSizes must be a plain record when provided.");Object.entries(e).forEach(([o,n])=>{let r=o.trim();if(r.length===0)throw new Error("BaseTable columnSizes keys must be non-empty strings.");if(o!==r)throw new Error(`BaseTable columnSizes key "${o}" must not contain surrounding whitespace.`);if(t&&!t.has(r))throw new Error(`BaseTable columnSizes contains unknown column id "${o}".`);Vo(n,`columnSizes["${o}"]`);});}}a(uh,"validateColumnSizes");function Ca(e){let t=e.ownerDocument.defaultView;return t?t.getComputedStyle(e).direction==="rtl":e.closest('[dir="rtl"]')!==null}a(Ca,"isRtl");function ph(e,t){if(e.setPointerCapture)try{e.setPointerCapture(t);}catch(o){let n=e.ownerDocument.defaultView?.DOMException;if(n&&o instanceof n&&o.name==="NotFoundError")return;throw o}}a(ph,"setPointerCaptureIfAvailable");var kc=ye.createContext(null);function jo(e){let t=ye.useContext(kc),o=Se(e);if(t){let r=e===void 0?t.appearance:o;return {...t,theme:e===void 0?t.theme:xe(r),appearance:r}}let n=xe(o);return {appearance:o,theme:n,layout:"native",setDraggingColumnId:a(()=>{},"setDraggingColumnId")}}a(jo,"useBaseTableContext");function wc(e){let t=false;return ye.Children.forEach(e,o=>{if(t||!ye.isValidElement(o))return;let n=o.props;if(n.layout==="split-scroll"){t=true;return}n.children&&(t=wc(n.children));}),t}a(wc,"hasSplitScrollTable");function es(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}a(es,"toCssSize");function mh(e,t){if(e!==void 0){if(typeof e=="number"){if(!Number.isFinite(e)||e<0)throw new Error(`BaseTable ${t} must be a finite non-negative number when numeric.`);return `${e}px`}if(e.trim().length===0)throw new Error(`BaseTable ${t} must not be an empty CSS size.`);return e}}a(mh,"validateTableCssSize");function ts(e,t,o){if(e!==void 0){if(typeof e=="number"){if(!Number.isFinite(e)||e<0)throw new Error(`BaseTable split-scroll column "${t}" has invalid ${o}. Expected a finite non-negative number.`);return `${e}px`}if(e.trim().length===0)throw new Error(`BaseTable split-scroll column "${t}" has an empty ${o} value.`);return e}}a(ts,"validateCssSize");function vc(e,t,o){if(!(e===void 0||typeof e!="number")){if(!Number.isFinite(e)||e<0)throw new Error(`BaseTable split-scroll column "${t}" has invalid ${o}. Expected a finite non-negative number.`);return e}}a(vc,"validateNumericSize");function gh(e,t){if(!e?.length)throw new Error('BaseTable layout="split-scroll" requires at least one column definition.');let o=new Set;return `${e.map((r,i)=>{let s=r.id.trim();if(!s)throw new Error(`BaseTable split-scroll column at index ${i} requires a non-empty id.`);if(o.has(s))throw new Error(`BaseTable layout="split-scroll" received duplicate column id "${s}".`);o.add(s);let l=t?.[s],d=vc(r.minWidth,s,"minWidth"),c=vc(r.maxWidth,s,"maxWidth");if(d!==void 0&&c!==void 0&&c<d)throw new Error(`BaseTable split-scroll column "${s}" has maxWidth smaller than minWidth.`);let u=ts(r.minWidth,s,"minWidth"),m=ts(r.maxWidth,s,"maxWidth"),p=l!==void 0?Uo(l,d,c):r.width,g=ts(p,s,"width");return g||`minmax(${u??"0px"}, ${m??"1fr"})`}).join(" ")} var(--base-table-split-scrollbar-gutter)`}a(gh,"buildSplitColumnTemplate");function Uo(e,t,o){let n=t??48,r=o??Number.POSITIVE_INFINITY;return Math.min(Math.max(e,n),r)}a(Uo,"clampWidth");function os(e,t,o){if(!e||t===o)return;let n=e.indexOf(t),r=e.indexOf(o);if(n<0||r<0)return;let i=[...e],[s]=i.splice(n,1);return i.splice(r,0,s),i}a(os,"getNextColumnOrder");function fh(e){switch(e){case "asc":return "ascending";case "desc":return "descending";default:return}}a(fh,"sortAriaValue");function bh(e){switch(e){case "center":return "center";case "right":return "flex-end";default:return "flex-start"}}a(bh,"getSplitHeadJustifyContent");function yh(e){switch(e){case "top":return "flex-start";case "bottom":return "flex-end";default:return "center"}}a(yh,"getSplitHeadAlignItems");function hh({direction:e,className:t}){return jsxRuntime.jsx("span",{"aria-hidden":"true",className:v(t,e==="desc"&&"rotate-180",(!e||e==="none")&&"opacity-45"),children:"\u25B2"})}a(hh,"SortIndicator");function vh(){return jsxRuntime.jsxs("span",{"aria-hidden":"true",className:"grid gap-0.5",children:[jsxRuntime.jsx("span",{className:"h-0.5 w-0.5 rounded-full bg-current"}),jsxRuntime.jsx("span",{className:"h-0.5 w-0.5 rounded-full bg-current"}),jsxRuntime.jsx("span",{className:"h-0.5 w-0.5 rounded-full bg-current"})]})}a(vh,"DragHandleIcon");var Cc=ye.forwardRef(a(function({appearance:t,attachedFooter:o=false,children:n,className:r,classNames:i,style:s,...l},d){ko("attachedFooter",o);let c=Se(t),u=ge(),m=xe(c),g=wc(n)?{overflow:"hidden",scrollbarGutter:"auto"}:void 0;return jsxRuntime.jsx("div",{...u,...l,ref:d,"data-monkeys-component":"table-container","data-slot":"container","data-base-table-container":"","data-attached-footer":o?"":void 0,className:v(m.slots.tableContainer,o&&m.slots.tableContainerFooterAttached,i?.root,r),style:{...m.styles.tableContainer,...o?m.styles.tableContainerFooterAttached:void 0,...g,...s},children:n})},"BaseTableContainer")),Tc=ye.forwardRef(a(function({appearance:t,className:o,classNames:n,style:r,layout:i="native",columns:s,bodyMaxHeight:l,bodyClassName:d,columnOrder:c,columnSizes:u,columnDragEnabled:m=false,columnResizeEnabled:p=false,onColumnOrderChange:g,onColumnSizeChange:b,...x},f){En("layout",i,["native","split-scroll"]),ko("columnDragEnabled",m),ko("columnResizeEnabled",p),ns("onColumnOrderChange",g),ns("onColumnSizeChange",b),Vo(l,"bodyMaxHeight",{stringAllowed:true});let y=dh(s);ch(c,y),uh(u,y);let k=Se(t),S=ge(),w=xe(k),[C,T]=ye.useState(),$=ye.useRef(null),P=ye.useRef(null),E=i==="split-scroll",R=E?gh(s,u):void 0,W={appearance:k,theme:w,layout:i,columnTemplate:R,bodyMaxHeight:l,bodyClassName:d,splitHeaderRef:$,splitFooterRef:P,columnOrder:c,columnSizes:u,columnDragEnabled:m,columnResizeEnabled:p,onColumnOrderChange:g,onColumnSizeChange:b,draggingColumnId:C,setDraggingColumnId:T};return jsxRuntime.jsx(kc.Provider,{value:W,children:jsxRuntime.jsx("table",{...S,...x,ref:f,"data-monkeys-component":"table","data-slot":"root","data-base-table-layout":i,className:v(w.slots.tableRoot,E&&w.slots.tableSplitRoot,n?.root,o),style:{...w.styles.table,...E?w.styles.tableSplitRoot:void 0,...R?{"--base-table-column-template":R}:void 0,...r}})})},"BaseTable")),Sc=ye.forwardRef(a(function({appearance:t,className:o,classNames:n,style:r,...i},s){let{layout:l,splitHeaderRef:d,theme:c}=jo(t),u=l==="split-scroll";return jsxRuntime.jsx("thead",{...i,ref:a(p=>{d&&(d.current=u?p:null),rs(s,p);},"setHeaderRef"),"data-slot":"header",className:v(c.slots.tableHeader,u&&c.slots.tableSplitHeader,n?.root,o),style:{...c.styles.tableHeader,...u?c.styles.tableSplitHeader:void 0,...r}})},"BaseTableHeader")),$c=ye.forwardRef(a(function({appearance:t,className:o,classNames:n,onScroll:r,style:i,...s},l){let{bodyClassName:d,bodyMaxHeight:c,layout:u,splitFooterRef:m,splitHeaderRef:p,theme:g}=jo(t),b=u==="split-scroll";return jsxRuntime.jsx("tbody",{...s,ref:l,"data-slot":"body",onScroll:b?f=>{let y=f.currentTarget.scrollLeft;p?.current&&(p.current.scrollLeft=y),m?.current&&(m.current.scrollLeft=y),r?.(f);}:r,className:v(g.slots.tableBody,b&&g.slots.tableSplitBody,b&&d,n?.root,o),style:{...g.styles.tableBody,...b?g.styles.tableSplitBody:void 0,...b&&c!==void 0?{maxHeight:mh(c,"bodyMaxHeight")}:void 0,...i}})},"BaseTableBody"));ye.forwardRef(a(function({appearance:t,className:o,classNames:n,style:r,...i},s){let{layout:l,splitFooterRef:d,theme:c}=jo(t),u=l==="split-scroll";return jsxRuntime.jsx("tfoot",{...i,ref:a(p=>{d&&(d.current=u?p:null),rs(s,p);},"setFooterRef"),"data-slot":"footer",className:v(c.slots.tableFooter,u&&c.slots.tableSplitFooter,n?.root,o),style:{...c.styles.tableFooter,...u?c.styles.tableSplitFooter:void 0,...r}})},"BaseTableFooter"));var as=ye.forwardRef(a(function({interactive:t,selected:o,disabled:n,appearance:r,className:i,classNames:s,style:l,...d},c){ko("interactive",t),ko("selected",o),ko("disabled",n);let{layout:u,theme:m}=jo(r),p=u==="split-scroll";return jsxRuntime.jsx("tr",{...d,ref:c,"data-slot":"row","aria-disabled":n||void 0,"data-state":o?"selected":void 0,className:v(m.slots.tableRow,p&&m.slots.tableSplitRow,t&&!n&&m.slots.tableRowInteractive,o&&m.slots.tableRowSelected,n&&m.slots.tableRowDisabled,s?.root,i),style:{...m.styles.tableRow,...p?m.styles.tableSplitRow:void 0,...l}})},"BaseTableRow")),Pc=ye.forwardRef(a(function({presentation:t,columnId:o,align:n,verticalAlign:r,icon:i,label:s,description:l,meta:d,actions:c,trailing:u,sortable:m,sortDirection:p="none",sortLabel:g,onSort:b,draggable:x,dragLabel:f,resizable:y,resizeLabel:k,width:S,minWidth:w,maxWidth:C,appearance:T,className:$,classNames:P,style:E,children:R,onDragOver:W,onDrop:B,...A},L){if(En("head presentation",t,["classic-data-grid"]),En("head align",n,["left","center","right"]),En("head verticalAlign",r,["top","middle","bottom"]),En("head sortDirection",p,["asc","desc","none"]),ko("head sortable",m),ko("head draggable",x),ko("head resizable",y),ns("head onSort",b),Ji("head sortLabel",g),Ji("head dragLabel",f),Ji("head resizeLabel",k),o!==void 0&&(typeof o!="string"||o.trim().length===0))throw new Error("BaseTable head columnId must be a non-empty string when provided.");if(Vo(S,"head width",{stringAllowed:true}),Vo(w,"head minWidth"),Vo(C,"head maxWidth"),w!==void 0&&C!==void 0&&w>C)throw new Error("BaseTable head minWidth cannot be greater than maxWidth.");let I=jo(T),{theme:K}=I,q=$t().table,_=I.layout==="split-scroll",Y=t==="classic-data-grid",M=n??(_?"center":"left"),z=r??"middle",Q=ye.useRef(null),ce=ye.useRef(()=>{}),[se,V]=ye.useState(),J=a(j=>{Q.current=j,rs(L,j);},"setHeadRef"),O=o&&I.columnSizes?.[o]!==void 0?I.columnSizes[o]:S,F=!!(o&&x!==false&&(x||I.columnDragEnabled)&&I.columnOrder&&I.onColumnOrderChange),oe=!!(o&&y!==false&&(y||I.columnResizeEnabled)&&I.onColumnSizeChange);if(oe&&C!==void 0&&C<(w??48))throw new Error("BaseTable resizable head maxWidth cannot be smaller than its effective minWidth.");let ae=!!(m||b),pe=fh(p),Ce=H(s)?s:R,Z=H(Ce)||H(l),Re=g??(Z?void 0:q.sortColumn({columnId:o?.trim()||void 0})),Ge=F||H(i)||H(s)||H(l)||H(d)||H(c)||H(u)||ae,gt=Y?jsxRuntime.jsx("div",{className:v("flex h-full min-w-0 select-none items-center",M==="center"?"justify-center":M==="right"?"justify-end":"justify-start",F&&"cursor-grab active:cursor-grabbing"),...F?{draggable:true,role:"button",tabIndex:0,"aria-disabled":false,"aria-roledescription":"sortable",onKeyDown:a(j=>{if(!o||!I.columnOrder||j.key!=="ArrowLeft"&&j.key!=="ArrowRight")return;let me=I.columnOrder.indexOf(o);if(me<0)return;let Ne=Ca(j.currentTarget),He=j.key==="ArrowLeft"?-1:1,Ke=me+(Ne?-He:He),Fe=I.columnOrder[Ke];if(!Fe)return;let Qe=os(I.columnOrder,o,Fe);Qe&&(j.preventDefault(),I.onColumnOrderChange?.(Qe,{columnId:o,targetColumnId:Fe}));},"onKeyDown"),onDragStart:a(j=>{j.stopPropagation(),I.setDraggingColumnId(o),j.dataTransfer.effectAllowed="move",j.dataTransfer.setData(Zi,o);},"onDragStart"),onDragEnd:a(j=>{j.stopPropagation(),I.setDraggingColumnId(void 0);},"onDragEnd")}:{},children:Ce}):Ge?jsxRuntime.jsxs("div",{className:v(K.slots.tableHeadContent,P?.content),children:[jsxRuntime.jsxs("div",{className:v(K.slots.tableHeadMain,P?.main),children:[F?jsxRuntime.jsx("button",{type:"button",draggable:true,title:f,"aria-label":f??q.dragColumn({columnId:o}),className:v(K.slots.tableHeadDragHandle,P?.dragHandle),onClick:j=>j.stopPropagation(),onKeyDown:j=>{if(!o||!I.columnOrder||j.key!=="ArrowLeft"&&j.key!=="ArrowRight")return;let me=I.columnOrder.indexOf(o);if(me<0)return;let Ne=Ca(j.currentTarget),He=j.key==="ArrowLeft"?-1:1,Ke=me+(Ne?-He:He),Fe=I.columnOrder[Ke];if(!Fe)return;let Qe=os(I.columnOrder,o,Fe);Qe&&(j.preventDefault(),I.onColumnOrderChange?.(Qe,{columnId:o,targetColumnId:Fe}));},onDragStart:j=>{j.stopPropagation(),I.setDraggingColumnId(o),j.dataTransfer.effectAllowed="move",j.dataTransfer.setData(Zi,o);},onDragEnd:j=>{j.stopPropagation(),I.setDraggingColumnId(void 0);},children:jsxRuntime.jsx(vh,{})}):null,i?jsxRuntime.jsx("span",{className:v(K.slots.tableHeadIcon,P?.icon),children:i}):null,ae?jsxRuntime.jsxs("button",{type:"button",disabled:!b,title:g,"aria-label":Re,className:v(K.slots.tableHeadSortButton,P?.sortButton),onClick:j=>{j.stopPropagation(),b?.(o);},children:[jsxRuntime.jsxs("span",{className:v(K.slots.tableHeadText,P?.text),children:[H(Ce)?jsxRuntime.jsx("span",{className:v(K.slots.tableHeadLabel,P?.label),children:Ce}):null,H(l)?jsxRuntime.jsx("span",{className:v(K.slots.tableHeadDescription,P?.description),children:l}):null]}),jsxRuntime.jsx(hh,{direction:p,className:v(K.slots.tableHeadSortIcon,P?.sortIcon)})]}):jsxRuntime.jsxs("span",{className:v(K.slots.tableHeadText,P?.text),children:[H(Ce)?jsxRuntime.jsx("span",{className:v(K.slots.tableHeadLabel,P?.label),children:Ce}):null,H(l)?jsxRuntime.jsx("span",{className:v(K.slots.tableHeadDescription,P?.description),children:l}):null]})]}),H(d)||H(c)||H(u)?jsxRuntime.jsxs("div",{className:v(K.slots.tableHeadActions,P?.actions),children:[H(d)?jsxRuntime.jsx("span",{className:v(K.slots.tableHeadMeta,P?.meta),children:d}):null,c,u]}):null]}):R,te=a(j=>{W?.(j),!(!F||!I.draggingColumnId||I.draggingColumnId===o)&&(j.preventDefault(),j.dataTransfer.dropEffect="move");},"handleDragOver"),De=a(j=>{if(B?.(j),!F||!o)return;let me=I.draggingColumnId||j.dataTransfer.getData(Zi);if(!me||me===o)return;let Ne=os(I.columnOrder,me,o);Ne&&(j.preventDefault(),I.onColumnOrderChange?.(Ne,{columnId:me,targetColumnId:o})),I.setDraggingColumnId(void 0);},"handleDrop"),qe=a(j=>{if(!oe||!o||!I.onColumnSizeChange||j.button!==0&&j.pointerType!=="touch")return;j.preventDefault(),j.stopPropagation(),ce.current();let me=j.clientX,Ne=ft??Q.current?.offsetWidth??w??48,He=Uo(Ne,w,C),Ke=j.pointerId,Fe=j.currentTarget,Qe=Fe.ownerDocument,qt=Ca(Fe),zt=a(St=>{if(St.pointerId!==Ke)return;let po=Uo(He+(qt?me-St.clientX:St.clientX-me),w,C);I.onColumnSizeChange?.(o,po,{columnId:o,previousWidth:He,minWidth:w,maxWidth:C});},"handlePointerMove"),co=a(St=>{St.pointerId===Ke&&ce.current();},"handleStop"),uo=a(St=>{St.pointerId===Ke&&ce.current();},"handleLostCapture");ce.current=()=>{Qe.removeEventListener("pointermove",zt),Qe.removeEventListener("pointerup",co),Qe.removeEventListener("pointercancel",co),Fe.removeEventListener("lostpointercapture",uo),Fe.hasPointerCapture?.(Ke)&&Fe.releasePointerCapture?.(Ke),ce.current=()=>{};},ph(Fe,Ke),Qe.addEventListener("pointermove",zt),Qe.addEventListener("pointerup",co),Qe.addEventListener("pointercancel",co),Fe.addEventListener("lostpointercapture",uo);},"handleResizePointerDown"),ft=typeof O=="number"?Uo(O,w,C):se,Gt=ft??Uo(w??48,w,C),$o=a(j=>{if(!oe||!o||!I.onColumnSizeChange)return;let me=Ca(j.currentTarget),Ne=ft??Uo(Q.current?.offsetWidth||w||48,w,C),He;j.key==="ArrowLeft"&&(He=Ne+(me?wa:-wa)),j.key==="ArrowRight"&&(He=Ne+(me?-wa:wa)),j.key==="Home"&&w!==void 0&&(He=w),j.key==="End"&&C!==void 0&&(He=C),He!==void 0&&(j.preventDefault(),j.stopPropagation(),I.onColumnSizeChange(o,Uo(He,w,C),{columnId:o,previousWidth:Ne,minWidth:w,maxWidth:C}));},"handleResizeKeyDown");return ye.useEffect(()=>{if(typeof O=="number"){V(void 0);return}let j=Q.current?.getBoundingClientRect().width;if(j&&Number.isFinite(j)){let me=Uo(j,w,C);V(Ne=>Ne===me?Ne:me);}},[O,w,C,oe]),ye.useEffect(()=>(oe||ce.current(),()=>ce.current()),[oe,o,I.onColumnSizeChange]),jsxRuntime.jsxs("th",{...A,ref:J,"data-slot":"head","data-v2-header-drag-id":Y&&F?o:void 0,scope:A.scope??"col","aria-sort":pe,className:v(K.slots.tableHead,_&&K.slots.tableSplitHead,M==="center"&&K.slots.tableCellAlignCenter,M==="right"&&K.slots.tableCellAlignRight,Y&&"!relative !h-9 !px-3 !align-middle !text-sm !font-medium !text-muted-foreground after:pointer-events-none after:absolute after:bottom-2 after:right-0 after:top-2 after:w-px after:bg-border/50 after:content-['']",P?.root,$),style:{...K.styles.tableHead,..._?K.styles.tableSplitHead:void 0,width:_?void 0:es(O),minWidth:_?void 0:es(w),maxWidth:_?void 0:es(C),..._?{alignItems:yh(z),justifyContent:bh(M),textAlign:M}:r?{verticalAlign:r}:void 0,...E},onDragOver:te,onDrop:De,children:[gt,oe&&Y?jsxRuntime.jsx("div",{"data-column-resize-handle":"true",className:"absolute right-0 top-0 z-20 h-full w-2 cursor-col-resize touch-none select-none hover:bg-muted",onPointerDown:qe}):oe?jsxRuntime.jsx("button",{type:"button",role:"separator","aria-orientation":"vertical","aria-valuenow":Gt,"aria-valuemin":w??48,"aria-valuemax":C,"aria-valuetext":`${Gt}px`,title:k,"aria-label":k??q.resizeColumn({columnId:o}),className:v(K.slots.tableHeadResizeHandle,P?.resizeHandle),onClick:j=>j.stopPropagation(),onKeyDown:$o,onPointerDown:qe}):null]})},"BaseTableHead")),Rc=ye.forwardRef(a(function({align:t="left",appearance:o,className:n,classNames:r,style:i,...s},l){En("cell align",t,["left","center","right"]);let{layout:d,theme:c}=jo(o),u=d==="split-scroll";return jsxRuntime.jsx("td",{...s,ref:l,"data-slot":"cell",className:v(c.slots.tableCell,u&&c.slots.tableSplitCell,t==="center"&&c.slots.tableCellAlignCenter,t==="right"&&c.slots.tableCellAlignRight,r?.root,n),style:{...c.styles.tableCell,...u?c.styles.tableSplitCell:void 0,...i}})},"BaseTableCell"));ye.forwardRef(a(function({appearance:t,className:o,classNames:n,style:r,...i},s){let{theme:l}=jo(t);return jsxRuntime.jsx("caption",{...i,ref:s,"data-slot":"caption",className:v(l.slots.tableCaption,n?.root,o),style:{...l.styles.tableCaption,...r}})},"BaseTableCaption"));var Mc=ye.forwardRef(a(function({colSpan:t,icon:o,title:n,description:r,actions:i,children:s,appearance:l,className:d,classNames:c,style:u,...m},p){if(!Number.isSafeInteger(t)||t<1)throw new Error("BaseTable empty colSpan must be a positive safe integer.");let{layout:g,theme:b}=jo(l),x=g==="split-scroll",f=H(o)||H(n)||H(r)||H(i);return jsxRuntime.jsx("tr",{...m,ref:p,"data-slot":"empty-row",className:v(b.slots.tableEmptyRow,x&&b.slots.tableSplitRow,c?.row,d),style:{...b.styles.tableEmpty,...x?b.styles.tableSplitRow:void 0,...u},children:jsxRuntime.jsx("td",{colSpan:t,"data-slot":"empty-cell",className:v(b.slots.tableEmptyCell,x&&b.slots.tableSplitCell,c?.cell),style:x?{gridColumn:"1 / -1"}:void 0,children:f?jsxRuntime.jsxs("div",{className:v(b.slots.tableEmptyContent,c?.content),children:[H(o)?jsxRuntime.jsx("div",{className:v(b.slots.tableEmptyIcon,c?.icon),children:o}):null,H(n)?jsxRuntime.jsx("div",{className:v(b.slots.tableEmptyTitle,c?.title),children:n}):null,H(r)?jsxRuntime.jsx("div",{className:v(b.slots.tableEmptyDescription,c?.description),children:r}):null,H(i)?jsxRuntime.jsx("div",{className:v(b.slots.tableEmptyActions,c?.actions),children:i}):null]}):s})})},"BaseTableEmpty"));function vt(...e){return e.filter(Boolean).join(" ")}a(vt,"cn");var Ch={variant:"default",density:"default"},Th=ye.createContext(Ch);function Sh(e,t={}){return {variant:t.variant??e.variant,density:t.density??(t.variant==="trend"?"compact":e.density)}}a(Sh,"resolveAgentWorkbenchAppearance");function br(e={}){return Sh(ye.useContext(Th),e)}a(br,"useAgentWorkbenchAppearance");var $h={page:"bg-background text-foreground",panel:"bg-card text-card-foreground",elevated:"border border-border bg-popover text-popover-foreground shadow-sm",subtle:"bg-muted/40 text-foreground",overlay:"border border-border bg-popover text-popover-foreground shadow-lg"};ye.forwardRef(a(function({level:t="panel",variant:o,density:n,className:r,children:i,...s},l){let d=br({variant:o,density:n});return jsxRuntime.jsx("div",{...s,ref:l,"data-agent-workbench-surface":t,"data-agent-workbench-variant":d.variant,"data-agent-workbench-density":d.density,className:vt($h[t],r),children:i})},"AgentWorkbenchSurface"));var tv={audio:lucideReact.Music2,canvas:lucideReact.Shapes,data:lucideReact.Database,file:lucideReact.File,html:lucideReact.FileCode2,image:lucideReact.FileImage,markdown:lucideReact.FileText,pdf:lucideReact.FileText,presentation:lucideReact.Presentation,video:lucideReact.Film,web:lucideReact.Globe2};function ov({artifact:e,selected:t,onClose:o,onCloseOthers:n,onCloseRight:r,onCloseAll:i}){let s=$t().agentWorkbench.artifactWorkspace,l=tv[e.kind],{attributes:d,listeners:c,setNodeRef:u,setActivatorNodeRef:m,transform:p,transition:g,isDragging:b}=sortable.useSortable({id:e.id}),{role:x,tabIndex:f,...y}=d,k=a(T=>{u(T),m(T);},"setTabRef"),S=a(T=>{T.button===1&&(T.preventDefault(),o());},"handleMouseDown"),w=a(T=>{!(T.target instanceof Element)||!T.target.closest("[data-close-artifact-tab]")||(T.preventDefault(),o());},"handleClick"),C=a(T=>{c?.onKeyDown?.(T),!(T.key!=="Delete"&&T.key!=="Backspace")&&(T.preventDefault(),o());},"handleKeyDown");return jsxRuntime.jsxs(ud,{openDelay:500,closeDelay:80,children:[jsxRuntime.jsx(Gi,{content:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Nn,{icon:jsxRuntime.jsx(lucideReact.X,{}),label:s.close,onSelect:o}),jsxRuntime.jsx(Nn,{icon:jsxRuntime.jsx(lucideReact.X,{}),label:s.closeOthers,disabled:!n,onSelect:n}),jsxRuntime.jsx(Nn,{icon:jsxRuntime.jsx(lucideReact.X,{}),label:s.closeRight,disabled:!r,onSelect:r}),jsxRuntime.jsx(Nn,{icon:jsxRuntime.jsx(lucideReact.X,{}),label:s.closeAll,onSelect:i})]}),children:jsxRuntime.jsx(pd,{asChild:true,children:jsxRuntime.jsx(ha,{asChild:true,children:jsxRuntime.jsxs(ro__namespace.Trigger,{ref:k,value:e.id,style:{transform:utilities.CSS.Transform.toString(p),transition:g},className:vt("agent-workbench-artifact-tab relative flex max-w-56 shrink-0 items-center outline-hidden focus-visible:ring-2 focus-visible:ring-ring",t?"agent-workbench-artifact-tab-active":"agent-workbench-artifact-tab-inactive",b&&"opacity-60"),onMouseDown:S,onClick:w,...y,...c,onKeyDown:C,children:[jsxRuntime.jsx(l,{className:"agent-workbench-artifact-icon shrink-0","aria-hidden":"true"}),jsxRuntime.jsx("span",{className:"truncate",children:e.name}),jsxRuntime.jsx("span",{className:"agent-workbench-artifact-tab-close absolute","data-close-artifact-tab":"",title:s.closeTab({name:e.name}),"aria-hidden":"true",children:jsxRuntime.jsx(lucideReact.X,{className:"agent-workbench-artifact-close-icon","aria-hidden":"true"})})]})})})}),!b&&jsxRuntime.jsxs(wi,{side:"bottom",align:"start",className:"agent-workbench-artifact-tab-details",children:[jsxRuntime.jsx("div",{className:"agent-workbench-artifact-tab-details-name",children:e.name}),e.location&&e.location!==e.name?jsxRuntime.jsx("div",{className:"agent-workbench-artifact-tab-details-location",children:e.location}):null,jsxRuntime.jsx("div",{className:"agent-workbench-artifact-tab-details-kind",children:e.kind==="file"&&/\.([a-z0-9]{1,8})$/i.test(e.name)?e.name.split(".").pop().toUpperCase():s.kinds[e.kind]})]})]})}a(ov,"SortableArtifactTab");function Nc({artifacts:e,activeArtifactId:t,className:o,allowExternalOpen:n=true,allowDownload:r=true,maximized:i,tabBar:s="inset",leadingTab:l,retainMountedArtifactIds:d=[],variant:c,density:u,renderArtifact:m,onIntent:p}){let g=br({variant:c,density:u}),b=g.density==="compact",x=i!==void 0,f=$t().agentWorkbench.artifactWorkspace,y=!!(l&&t===l.id),k=y?void 0:e.find($=>$.id===t)??e[0],S=core.useSensors(core.useSensor(core.PointerSensor,{activationConstraint:{distance:5}}),core.useSensor(core.KeyboardSensor,{coordinateGetter:sortable.sortableKeyboardCoordinates}));if(!k&&!l)return null;let w=y?l.id:k?.id??l.id,C=a(({active:$,over:P})=>{!P||$.id===P.id||p?.({type:"reorder",artifactId:String($.id),overArtifactId:String(P.id)});},"handleDragEnd"),T=k&&(k.status==="loading"?jsxRuntime.jsx("div",{className:"flex size-full min-h-48 items-center justify-center p-6 text-center",role:"status",children:jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-col items-center gap-3 text-sm text-muted-foreground",children:[jsxRuntime.jsx(lucideReact.Loader2,{className:"size-5 animate-spin","aria-hidden":"true"}),jsxRuntime.jsx("span",{children:f.loading})]})}):k.status==="error"?jsxRuntime.jsx("div",{className:"flex size-full min-h-48 items-center justify-center p-6 text-center",role:"alert",children:jsxRuntime.jsxs("div",{className:"flex min-w-0 max-w-sm flex-col items-center gap-3",children:[jsxRuntime.jsx("span",{className:"flex size-10 items-center justify-center rounded-full bg-destructive/10 text-destructive-text",children:jsxRuntime.jsx(lucideReact.TriangleAlert,{className:"size-5","aria-hidden":"true"})}),jsxRuntime.jsxs("div",{className:"min-w-0",children:[jsxRuntime.jsx("div",{className:"break-words text-sm font-medium text-foreground [overflow-wrap:anywhere]",children:f.failed}),k.description?jsxRuntime.jsx("p",{className:"mt-1 max-h-24 overflow-auto whitespace-pre-wrap break-words text-sm text-muted-foreground [overflow-wrap:anywhere]",children:k.description}):null]}),p?jsxRuntime.jsxs(ie,{type:"button",variant:"outline",size:"sm",className:"gap-2",onClick:()=>p({type:"retry",artifactId:k.id}),children:[jsxRuntime.jsx(lucideReact.RefreshCw,{className:"size-4","aria-hidden":"true"}),f.retry]}):null]})}):m(k));return jsxRuntime.jsxs(ro__namespace.Root,{value:w,onValueChange:$=>p?.({type:"select",artifactId:$}),"data-agent-workbench-variant":g.variant,"data-agent-workbench-density":g.density,"data-agent-workbench-status":k?.status,"data-tab-bar":s,"data-agent-workbench-surface":"panel",className:vt("flex size-full min-h-0 min-w-0 flex-col bg-card text-card-foreground",o),orientation:"horizontal",children:[jsxRuntime.jsxs("div",{className:vt("agent-workbench-artifact-header relative z-10 flex shrink-0 items-center",b&&"agent-workbench-artifact-header-compact"),children:[jsxRuntime.jsx(core.DndContext,{sensors:S,collisionDetection:core.closestCenter,onDragEnd:C,children:jsxRuntime.jsx(sortable.SortableContext,{items:e.map($=>$.id),strategy:sortable.horizontalListSortingStrategy,children:jsxRuntime.jsxs(ro__namespace.List,{className:"agent-workbench-artifact-tabs flex min-w-0 flex-1 items-center overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden","data-agent-workbench-artifact-tabs":"true","aria-label":f.tabs,children:[l&&jsxRuntime.jsxs(ro__namespace.Trigger,{value:l.id,className:vt("agent-workbench-artifact-tab agent-workbench-leading-tab relative flex max-w-56 shrink-0 items-center outline-hidden focus-visible:ring-2 focus-visible:ring-ring",w===l.id?"agent-workbench-artifact-tab-active":"agent-workbench-artifact-tab-inactive"),children:[l.icon,jsxRuntime.jsx("span",{className:"truncate",children:l.label})]}),e.map(($,P)=>{let E=e.filter(B=>B.id!==$.id),R=e.slice(P+1),W=a(B=>p?.({type:"close-many",artifactIds:B.map(A=>A.id)}),"closeMany");return jsxRuntime.jsx(ov,{artifact:$,selected:$.id===w,onClose:()=>p?.({type:"close",artifactId:$.id}),onCloseOthers:E.length?()=>W(E):void 0,onCloseRight:R.length?()=>W(R):void 0,onCloseAll:()=>p?.({type:"close-workspace"})},$.id)})]})})}),jsxRuntime.jsxs("div",{className:"agent-workbench-artifact-actions relative z-20 flex shrink-0 items-center",children:[k?.url?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r&&jsxRuntime.jsx(ie,{type:"button",variant:"ghost",size:"icon",className:"agent-workbench-artifact-action shrink-0","aria-label":f.download({name:k.name}),onClick:()=>p?.({type:"download",artifactId:k.id}),children:jsxRuntime.jsx(lucideReact.Download,{className:"agent-workbench-artifact-icon","aria-hidden":"true"})}),n&&jsxRuntime.jsx(ie,{type:"button",variant:"ghost",size:"icon",className:"agent-workbench-artifact-action shrink-0","aria-label":f.openExternal({name:k.name}),onClick:()=>p?.({type:"open-external",artifactId:k.id}),children:jsxRuntime.jsx(lucideReact.ExternalLink,{className:"agent-workbench-artifact-icon","aria-hidden":"true"})})]}):null,x&&jsxRuntime.jsx(ie,{type:"button",variant:"ghost",size:"icon",className:"agent-workbench-artifact-action shrink-0","aria-label":i?f.restore:f.maximize,title:i?f.restore:f.maximize,"aria-pressed":i,onClick:()=>p?.({type:"toggle-maximize"}),children:i?jsxRuntime.jsx(lucideReact.Minimize2,{className:"agent-workbench-artifact-icon","aria-hidden":"true"}):jsxRuntime.jsx(lucideReact.Maximize2,{className:"agent-workbench-artifact-icon","aria-hidden":"true"})}),jsxRuntime.jsx(ie,{type:"button",variant:"ghost",size:"icon",className:"agent-workbench-artifact-action shrink-0","aria-label":x?f.collapse:f.closeWorkspace,title:x?f.collapse:void 0,onClick:()=>p?.({type:x?"collapse":"close-workspace"}),children:jsxRuntime.jsx(lucideReact.PanelRightClose,{className:"agent-workbench-artifact-icon","aria-hidden":"true"})})]})]}),jsxRuntime.jsxs("div",{className:"min-h-0 min-w-0 flex-1 overflow-hidden",children:[l&&jsxRuntime.jsx(ro__namespace.Content,{value:l.id,forceMount:true,hidden:w!==l.id,className:"size-full min-h-0 min-w-0 outline-hidden",children:l.content}),e.map($=>jsxRuntime.jsx(ro__namespace.Content,{value:$.id,forceMount:d.includes($.id)?true:void 0,hidden:$.id!==w,className:"size-full min-h-0 min-w-0 outline-hidden focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",children:$.id===w?T:d.includes($.id)?m($):null},$.id))]})]})}a(Nc,"AgentWorkbenchArtifactWorkspace");function is({hostRef:e,children:t}){return jsxRuntime.jsx("div",{ref:e,className:"relative h-full min-h-0",children:t})}a(is,"AgentConversationPreview");function rv({hostRef:e}){return jsxRuntime.jsx("div",{ref:e,className:"h-full min-h-0"})}a(rv,"AgentConversationAnchor");function Ic({workspace:e,conversation:t}){return jsxRuntime.jsx("div",{className:"flex h-full min-h-0 flex-col",children:jsxRuntime.jsx(Nc,{...e,className:"artifact-preview-workspace",leadingTab:t?{...t,content:t.hostRef?jsxRuntime.jsx(rv,{hostRef:t.hostRef}):t.content,icon:jsxRuntime.jsx(lucideReact.MessageCircle,{className:"agent-workbench-artifact-icon","aria-hidden":"true"})}:void 0})})}a(Ic,"AgentPreviewWorkspace");function Dc({name:e,labels:t,onOpen:o,onDownload:n,onError:r}){let[i,s]=ye.useState(false),l=ye.useRef(false),d=a(async()=>{if(!(!n||l.current)){l.current=true,s(true);try{await n();}catch{r?.(t.downloadFailed);}finally{l.current=false,s(false);}}},"download"),c="text-primary hover:bg-muted h-auto gap-1 px-2 py-1 text-xs disabled:cursor-wait disabled:opacity-60";return jsxRuntime.jsx("div",{className:"not-prose border-border/70 bg-card text-card-foreground my-3 flex w-full max-w-[640px] flex-col overflow-hidden rounded-xl border shadow-sm","data-agent-inline-asset":"file",children:jsxRuntime.jsxs("div",{className:"border-border/70 flex min-w-0 items-center gap-2 border-t px-3 py-2",children:[jsxRuntime.jsx(lucideReact.FileIcon,{className:"text-muted-foreground size-4 shrink-0","aria-hidden":"true"}),jsxRuntime.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",title:e,children:e}),jsxRuntime.jsxs(ie,{type:"button",variant:"ghost","data-agent-asset-link":"true",className:c,"aria-label":`${t.open} ${e}`,onClick:o,disabled:!o,children:[jsxRuntime.jsx(lucideReact.PanelRightOpenIcon,{className:"size-3.5","aria-hidden":"true"}),t.open]}),jsxRuntime.jsxs(ie,{type:"button",variant:"ghost","data-agent-asset-link":"true",className:c,"aria-label":`${t.download} ${e}`,disabled:!n||i,onClick:()=>{d();},children:[i?jsxRuntime.jsx(lucideReact.Loader2Icon,{className:"size-3.5 animate-spin","aria-hidden":"true"}):jsxRuntime.jsx(lucideReact.DownloadIcon,{className:"size-3.5","aria-hidden":"true"}),t.download]})]})})}a(Dc,"AgentFileCard");function Lc({response:e,skippedLabel:t}){return jsxRuntime.jsx("div",{className:"flex flex-col gap-4","data-question-answer":e.questionId,children:e.answers.map((o,n)=>jsxRuntime.jsxs("div",{className:"space-y-1 break-words whitespace-pre-wrap",children:[jsxRuntime.jsx("p",{className:"agent-question-answer-title text-sm font-normal","data-question-title":true,children:o.question}),jsxRuntime.jsx("p",{className:"agent-question-answer-value font-medium","data-question-answer-text":true,children:e.cancelled?t:o.answer})]},n))})}a(Lc,"AgentQuestionAnswer");var bv={recommended:"Recommended",send:"Send answer",sending:"Sending",answerPlaceholder:"Your answer",autoSendIn:"Sending recommended answers in {seconds}s",sent:"Answer sent",error:"Answer could not be sent",pending:"Answer is being processed",cancel:"Cancel question",cancelling:"Cancelling",cancelled:"Question cancelled"};function zc({questions:e,mode:t="blocking",deadlineAt:o,submitted:n=false,cancelled:r=false,pending:i=false,externalError:s=false,locked:l=false,initialAnswers:d,labels:c,onSubmitted:u,onCancelled:m}){let p=Ue(),g=Ot(bv,c),[b,x]=ye.useState(()=>d??{}),[f,y]=ye.useState(0),[k,S]=ye.useState(0),w=ye.useRef(null),C=ye.useRef(false),T=Math.min(k,Math.max(0,e.length-1)),$=e[T],[P,E]=ye.useState(()=>r?"cancelled":n?"submitted":i?"submitting":s?"error":"idle"),R=ye.useRef(b),W=ye.useRef(false),B=ye.useRef(u),A=ye.useRef(m);R.current=b,B.current=u,A.current=m;let L=P==="submitted"||P==="cancelled",I=P==="submitting"||P==="cancelling",K=l||I||L,_=!!(t==="asynchronous"&&e.length>0&&e.every(V=>V.options?.length)&&o&&Number.isFinite(Date.parse(o))),Y=e.length>0&&e.every(V=>!!b[V.id]?.trim()),M=T<e.length-1,z=!K&&(M?!!b[$.id]?.trim():Y),Q=ye.useCallback(async(V,J=false)=>{if(!(W.current||l||i||n||r||L)&&!(J&&!A.current)){W.current=true,E(J?"cancelling":"submitting");try{J?await A.current():await B.current(V),E(J?"cancelled":"submitted");}catch{E("error");}finally{W.current=false;}}},[l,i,n,r,L]),ce=a((V=false)=>{z&&(M?(C.current=V,S(T+1)):Q(R.current));},"advanceOrSubmit");ye.useEffect(()=>{if(!C.current)return;C.current=false;let V=w.current;(V?.querySelector("input:not(:disabled)")??V?.querySelector('[role="radio"]:not(:disabled)'))?.focus();},[T]),ye.useEffect(()=>{if(!_||!o||L)return;let V=Date.parse(o),J=a(()=>{let F=Math.max(0,V-Date.now());y(Math.ceil(F/1e3));},"update"),O=setInterval(J,250);return J(),()=>clearInterval(O)},[_,o,L]),ye.useEffect(()=>{d&&(R.current=d,x(d));},[d]),ye.useEffect(()=>{E(r?"cancelled":n?"submitted":i?"submitting":s?"error":V=>["submitting","submitted","cancelling","cancelled"].includes(V)?"idle":V);},[n,r,i,s]);let se=a((V,J)=>{K||(x(O=>{let F={...O,[V]:J};return R.current=F,F}),P==="error"&&E("idle"));},"updateAnswer");return e.length?jsxRuntime.jsx(re,{children:jsxRuntime.jsxs("section",{className:"bui-question-card w-full max-w-95 overflow-hidden rounded-card shadow-card","aria-label":p("questionPanel"),children:[jsxRuntime.jsxs("header",{className:"bui-question-header flex items-center justify-between gap-2 px-4 pt-3",children:[jsxRuntime.jsxs("span",{className:"flex items-center gap-2 text-sm",children:[jsxRuntime.jsx(lucideReact.MessageCircleQuestion,{size:16,"aria-hidden":"true"}),p("questionPanel")]}),e.length>1&&jsxRuntime.jsxs("nav",{className:"flex items-center gap-2","aria-label":p("questionNavigation"),children:[jsxRuntime.jsx(Te,{type:"button",variant:"quiet",size:"sm","aria-label":p("Previous question"),disabled:T===0||I,onClick:()=>S(T-1),children:jsxRuntime.jsx(lucideReact.ChevronLeft,{size:16,"aria-hidden":"true"})}),jsxRuntime.jsx("span",{className:"text-xs","aria-live":"polite",children:p("questionPosition",{current:T+1,total:e.length})}),jsxRuntime.jsx(Te,{type:"button",variant:"quiet",size:"sm","aria-label":p("Next question"),disabled:T===e.length-1||I,onClick:()=>S(T+1),children:jsxRuntime.jsx(lucideReact.ChevronRight,{size:16,"aria-hidden":"true"})})]})]}),jsxRuntime.jsx("div",{className:"primitive-card-pad flex flex-col gap-4",children:[$].map(V=>{let J=V.options??[],O=V.allowCustom!==false||J.length===0;return jsxRuntime.jsxs("fieldset",{ref:w,className:"min-w-0",children:[jsxRuntime.jsx("legend",{className:"bui-question-title mb-2 text-[14px] font-medium",children:V.title}),jsxRuntime.jsx("div",{className:"flex flex-col gap-1",role:"radiogroup","aria-label":V.title,children:J.map((F,oe)=>{let ae=b[V.id]===F;return jsxRuntime.jsxs(Te,{type:"button",variant:"quiet",size:"sm",role:"radio","aria-checked":ae,disabled:K,onClick:()=>se(V.id,F),className:"bui-question-option flex h-auto min-h-9 w-full justify-start gap-2 rounded-control px-2 py-1 text-left text-sm transition-colors disabled:opacity-60",children:[jsxRuntime.jsx("span",{className:"bui-question-option-marker flex size-4 shrink-0 items-center justify-center rounded-full","data-selected":ae?"true":void 0,children:ae?jsxRuntime.jsx("span",{className:"bui-question-option-mark size-1.5 rounded-full"}):null}),jsxRuntime.jsx("span",{className:"bui-question-option-label min-w-0 flex-1 break-words",children:F}),t==="asynchronous"&&oe===0&&jsxRuntime.jsx("span",{className:"bui-question-recommended shrink-0 rounded-control px-1.5 py-0.5 text-[11px] font-medium",children:g.recommended})]},`${V.id}:${oe}`)})}),O&&jsxRuntime.jsx(bo,{unstyled:true,type:V.customInputType??"text","aria-label":V.title,placeholder:p(g.answerPlaceholder),disabled:K,value:J.includes(b[V.id])?"":b[V.id]??"",onChange:F=>se(V.id,F.target.value),onKeyDown:F=>{F.key!=="Enter"||F.nativeEvent.isComposing||F.keyCode===229||F.repeat||F.shiftKey||F.ctrlKey||F.metaKey||F.altKey||(F.preventDefault(),F.stopPropagation(),ce(true));},className:"bui-question-custom-answer mt-2 min-h-9 w-full rounded-control px-2.5 text-sm outline-none focus-visible:ring-2"})]},V.id)})}),jsxRuntime.jsxs("div",{className:"primitive-card-footer flex flex-wrap items-center justify-between gap-2",children:[jsxRuntime.jsx("div",{className:"bui-question-status min-h-5 text-[12px]","data-error":P==="error"?"true":void 0,role:P==="error"?"alert":"status","aria-live":"polite",children:P==="cancelled"?g.cancelled:P==="cancelling"?g.cancelling:P==="submitted"?g.sent:P==="submitting"?g.pending:P==="error"?g.error:_?g.autoSendIn.replace("{seconds}",String(f)):""}),!L&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[m&&jsxRuntime.jsx(Te,{size:"sm",variant:"quiet",disabled:l||I,onClick:()=>{Q(R.current,true);},children:g.cancel}),jsxRuntime.jsx(Te,{type:"button",size:"sm",variant:"accent",disabled:!z,onClick:()=>ce(),children:P==="submitting"?g.sending:T<e.length-1?p("Next question"):g.send})]})]})]})}):null}a(zc,"BUIQuestionCard");function Ra({docked:e,label:t,description:o,error:n,card:r,locale:i}){return jsxRuntime.jsx(pr,{locale:i,children:jsxRuntime.jsxs("section",{className:"agent-question-card","data-docked":e||void 0,"aria-label":t,children:[o&&jsxRuntime.jsx("p",{className:"text-muted-foreground mb-2 text-xs",children:o}),n&&jsxRuntime.jsx("p",{role:"alert",className:"text-destructive-text mb-2 text-sm",children:n}),r&&jsxRuntime.jsx(zc,{...r})]})})}a(Ra,"AgentQuestionState");function Tv({cards:e,featured:t,renderMarkdown:o,labels:n}){let r=ye.useRef(null),[i,s]=ye.useState({start:true,end:true});ye.useEffect(()=>{let d=r.current;if(!d)return;let c=a(()=>s({start:d.scrollLeft<=2,end:d.scrollLeft+d.clientWidth>=d.scrollWidth-2}),"update"),u=new ResizeObserver(c);return u.observe(d),d.addEventListener("scroll",c,{passive:true}),c(),()=>{u.disconnect(),d.removeEventListener("scroll",c);}},[e.length,t]);let l=a(d=>{let c=r.current;if(!c)return;let u=c.firstElementChild?.getBoundingClientRect().width??c.clientWidth;c.scrollBy({left:d*(u+16),behavior:window.matchMedia("(prefers-reduced-motion: reduce)").matches?"instant":"smooth"});},"move");return jsxRuntime.jsxs("section",{className:"report-product-carousel","aria-label":n.products,children:[jsxRuntime.jsxs("div",{className:"report-product-controls",children:[jsxRuntime.jsx("span",{children:n.count(e.length)}),e.length>1&&jsxRuntime.jsxs("div",{className:"flex gap-1",children:[jsxRuntime.jsx(ie,{type:"button",variant:"outline",size:"icon",className:"!h-8 !w-8 !p-0","aria-label":n.previous,disabled:i.start,onClick:()=>l(-1),children:jsxRuntime.jsx(lucideReact.ChevronLeft,{size:16})}),jsxRuntime.jsx(ie,{type:"button",variant:"outline",size:"icon",className:"!h-8 !w-8 !p-0","aria-label":n.next,disabled:i.end,onClick:()=>l(1),children:jsxRuntime.jsx(lucideReact.ChevronRight,{size:16})})]})]}),jsxRuntime.jsx("div",{ref:r,className:"report-product-track","data-featured":t,tabIndex:0,role:"group","aria-label":n.scroll,onKeyDown:d=>{d.target!==d.currentTarget||!["ArrowLeft","ArrowRight"].includes(d.key)||(d.preventDefault(),l(d.key==="ArrowRight"?1:-1));},children:e.map((d,c)=>jsxRuntime.jsxs("article",{className:"report-product-card",children:[jsxRuntime.jsx("div",{className:"report-product-media",children:d.images.map((u,m)=>jsxRuntime.jsx("div",{children:o(u)},m))}),jsxRuntime.jsxs("div",{className:"report-product-details",children:[d.badge&&jsxRuntime.jsx("span",{className:"report-product-badge",children:d.badge}),jsxRuntime.jsx("div",{className:"report-product-title",children:o("### "+d.title)}),d.subtitle&&jsxRuntime.jsx("div",{className:"report-product-subtitle",children:o(d.subtitle)}),(d.elements.length>0||d.body)&&jsxRuntime.jsxs("details",{className:"report-product-expanded",children:[jsxRuntime.jsx("summary",{children:d.elements.length>0?n.elements:n.details}),jsxRuntime.jsxs("div",{className:"report-product-expanded-content",children:[d.elements.length>0&&jsxRuntime.jsx("dl",{className:"report-product-elements",children:d.elements.map((u,m)=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("dt",{children:[jsxRuntime.jsxs("span",{children:[String(m+1).padStart(2,"0")," /"," "]}),u.label]}),jsxRuntime.jsx("dd",{children:o(u.value)})]},u.label))}),d.body&&jsxRuntime.jsx("div",{className:"report-product-notes",children:o(d.body)})]})]})]})]},c))})]})}a(Tv,"ProductCarousel");function Hc({markdown:e,blocks:t,definitions:o,labels:n,resources:r}){let i={blocks:t,definitions:o},s=a(u=>jsxRuntime.jsx(un,{text:u,resources:r}),"renderMarkdown"),[l,d]=ye.useState(false);if(!i.blocks.some(u=>u.type==="cards"))return s(e);let c=a(u=>s(i.definitions?u+`
|
|
125
|
+
duration-100 hover:bg-hover-2`,style:w?{animation:`bui-fade-up 350ms cubic-bezier(0.23,1,0.32,1) ${P*90}ms both`}:{opacity:0},children:[jsxRuntime.jsxs("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"shrink-0",children:[jsxRuntime.jsx("path",{d:"M9 10l-5 5 5 5"}),jsxRuntime.jsx("path",{d:"M20 4v7a4 4 0 0 1-4 4H4"})]}),S]},S))})]})]})})}a(An,"BUIStreamingText");function ia(e){let t=e.mimeType?.split(";")[0].trim().toLowerCase()??"",o=e.name.split(".").pop()?.toLowerCase();return t==="image/svg+xml"||o==="svg"?"svg":t.startsWith("image/")||/^(png|jpg|jpeg|gif|webp|avif|bmp)$/.test(o??"")?"image":t.startsWith("video/")||/^(mp4|webm|mov)$/.test(o??"")?"video":t.startsWith("audio/")||/^(mp3|wav|ogg|m4a|flac)$/.test(o??"")?"audio":t==="application/pdf"||o==="pdf"?"pdf":t==="text/html"||o==="html"||o==="htm"?"html":t==="text/markdown"||o==="md"||o==="markdown"?"markdown":t.includes("wordprocessingml")||o==="docx"?"document":t.includes("spreadsheetml")||o==="xlsx"?"spreadsheet":t.includes("presentationml")||o==="pptx"?"presentation":t.startsWith("text/")||/^(application\/(json|xml|javascript))$/.test(t)||/^(txt|csv|json|jsonl|xml|yaml|yml|js|jsx|ts|tsx|py|go|rs|css|sh|sql|log|toml)$/.test(o??"")?"code":"unsupported"}a(ia,"resolveArtifactPreviewFormat");function Qd({blob:e,workerSrc:t,labels:o}){let n=he.useRef(null),r=he.useRef(null),[i,s]=he.useState(),[l,d]=he.useState(1),[c,u]=he.useState(1),[m,p]=he.useState("loading");return he.useEffect(()=>{let g=false,b;return p("loading"),s(void 0),d(1),(async()=>{if(!t)throw new Error("PDF_WORKER_REQUIRED");let x=await import('pdfjs-dist'),f=await e.arrayBuffer();if(g)return;x.GlobalWorkerOptions.workerSrc=t,b=x.getDocument({data:f,isEvalSupported:false,useSystemFonts:true});let h=await b.promise;g||s(h);})().catch(()=>{g||p("error");}),()=>{g=true,b?.destroy();}},[e,t]),he.useEffect(()=>{let g=r.current,b=a(()=>u(Math.max(1,g.clientWidth)),"measure");b();let x=new ResizeObserver(b);return x.observe(g),()=>x.disconnect()},[]),he.useEffect(()=>{if(!i)return;let g=false,b,x=n.current;return p("loading"),i.getPage(l).then(async f=>{if(g)return;let h=f.getViewport({scale:1}),k=Math.min(c/h.width,2),$=f.getViewport({scale:k}),w=Math.min(window.devicePixelRatio||1,2);x.width=Math.ceil($.width*w),x.height=Math.ceil($.height*w),x.style.width=`${$.width}px`,x.style.height=`${$.height}px`,b=f.render({canvas:x,viewport:$,transform:w===1?void 0:[w,0,0,w,0,0]}),await b.promise,g||p("ready");}).catch(()=>{g||p("error");}),()=>{g=true,b?.cancel();}},[i,l,c]),jsxRuntime.jsxs("div",{className:"artifact-preview-pdf",children:[jsxRuntime.jsxs("div",{className:"artifact-preview-toolbar",children:[jsxRuntime.jsx(Te,{variant:"quiet",size:"xs","aria-label":o.previous,disabled:!i||l===1,onClick:()=>d(g=>g-1),children:jsxRuntime.jsx(lucideReact.ChevronLeft,{size:16})}),jsxRuntime.jsx("span",{children:o.page(i?l:0,i?.numPages??0)}),jsxRuntime.jsx(Te,{variant:"quiet",size:"xs","aria-label":o.next,disabled:!i||l>=i.numPages,onClick:()=>d(g=>g+1),children:jsxRuntime.jsx(lucideReact.ChevronRight,{size:16})})]}),jsxRuntime.jsxs("div",{className:"artifact-preview-pdf-stage",ref:r,children:[jsxRuntime.jsx("canvas",{ref:n,role:"img","aria-label":o.page(l,i?.numPages??0)}),m!=="ready"&&jsxRuntime.jsxs("div",{className:"artifact-preview-cover",role:m==="error"?"alert":"status",children:[m==="loading"&&jsxRuntime.jsx(lucideReact.Loader2,{className:"animate-spin","aria-hidden":true}),m==="loading"?o.loading:o.failed]})]})]})}a(Qd,"ArtifactPdf");function Ub({access:e,src:t,alt:o,title:n}){let[r,i]=he.useState(),[s,l]=he.useState(0),d=JSON.stringify([e.scope,t]);he.useEffect(()=>{let u=new AbortController,m;return i({key:d}),e.read(t,{signal:u.signal,force:s>0}).then(p=>{u.signal.aborted||(m=URL.createObjectURL(p),i({key:d,url:m}));}).catch(p=>{u.signal.aborted||i({key:d,error:e.error(p)});}),()=>{u.abort(),m&&URL.revokeObjectURL(m);}},[d,s,e.read]);let c=r?.key===d?r:void 0;return c?.error?jsxRuntime.jsxs("span",{role:"alert",children:[c.error.message,c.error.retryable&&jsxRuntime.jsx(ie,{variant:"link",onClick:()=>l(u=>u+1),children:e.labels.retry})]}):c?.url?jsxRuntime.jsx("img",{src:c.url,alt:o||"",title:n,className:"max-w-full"}):jsxRuntime.jsx("span",{role:"status",children:e.labels.loading})}a(Ub,"ResourceImage");function Vb({access:e,href:t,title:o,children:n}){let[r,i]=he.useState(false),[s,l]=he.useState(false);return jsxRuntime.jsxs("span",{children:[jsxRuntime.jsx(ie,{variant:"link",className:"h-auto p-0",title:o,disabled:r,onClick:async()=>{i(true),l(false);try{await(e.open??e.download)(t,typeof n=="string"?n:void 0);}catch{l(true);}finally{i(false);}},children:n}),s&&jsxRuntime.jsx("span",{role:"alert",children:e.labels.downloadFailed})]})}a(Vb,"ResourceLink");function Oo(e){return he.useMemo(()=>({supports:a(t=>!!e.resolve(t),"supports"),imageActions:e.imageActions,image:a(({src:t,...o})=>jsxRuntime.jsx(Ub,{access:e,src:e.resolve(t),...o}),"image"),link:a(({href:t,...o})=>jsxRuntime.jsx(Vb,{access:e,href:e.resolve(t),...o}),"link")}),[e])}a(Oo,"useAgentMarkdownResources");function pr({resourceAccess:e,...t}){return e?jsxRuntime.jsx(ph,{...t,access:e}):jsxRuntime.jsx(ic,{...t})}a(pr,"ArtifactPreview");function ph({access:e,...t}){return jsxRuntime.jsx(ic,{...t,resources:Oo(e)})}a(ph,"ResourcePreview");function ic({file:e,source:t,labels:o,onRetry:n,pdfWorkerSrc:r,resources:i}){let s=ia({...e,mimeType:e.mimeType||(t.status==="ready"?t.blob.type:void 0)});return jsxRuntime.jsx(ee,{children:jsxRuntime.jsx("div",{className:"artifact-preview","data-artifact-format":s,children:t.status==="loading"?jsxRuntime.jsx(Wo,{label:o.loading,loading:true}):t.status==="error"?jsxRuntime.jsx(Wo,{label:o.failed,retry:n,retryLabel:o.retry}):s==="unsupported"?jsxRuntime.jsx(Wo,{label:o.unsupported}):jsxRuntime.jsx(mh,{file:e,blob:t.blob,labels:o,pdfWorkerSrc:r,resources:i},`${e.id}:${s}`)})})}a(ic,"ArtifactPreviewContent");function Wo({label:e,loading:t,retry:o,retryLabel:n}){return jsxRuntime.jsxs("div",{className:"artifact-preview-state",role:t?"status":"alert",children:[t?jsxRuntime.jsx(lucideReact.Loader2,{size:20,className:"animate-spin","aria-hidden":true}):jsxRuntime.jsx(lucideReact.FileWarning,{size:24,"aria-hidden":true}),jsxRuntime.jsx("span",{children:e}),o&&jsxRuntime.jsx(Te,{variant:"quiet",size:"sm",onClick:o,children:n})]})}a(Wo,"PreviewState");function mh({file:e,blob:t,labels:o,pdfWorkerSrc:n,resources:r}){let i=ia({...e,mimeType:e.mimeType||t.type}),[s,l]=he.useState();if(he.useEffect(()=>{let c=false,u;return l(void 0),(async()=>{if(i==="presentation"||i==="pdf"){c||l({});return}let m;if(i==="document"){let{decodeArtifactDocument:p}=await Promise.resolve().then(()=>(cr(),pa));m={html:await p(await t.arrayBuffer())};}else if(i==="spreadsheet"){let{decodeArtifactSpreadsheet:p}=await Promise.resolve().then(()=>(cr(),pa));m={sheets:await p(t)};}else if(["html","markdown","code"].includes(i))m={text:await t.text()};else {let p=t;if(i==="svg"){let{default:g}=await import('dompurify');p=new Blob([g.sanitize(await t.text(),{USE_PROFILES:{svg:true,svgFilters:true},FORBID_TAGS:["foreignObject"]})],{type:"image/svg+xml"});}if(c)return;u=URL.createObjectURL(p),m={url:u};}c||l(m);})().catch(()=>{c||l({error:true});}),()=>{c=true,u&&URL.revokeObjectURL(u);}},[t,i]),!s)return jsxRuntime.jsx(Wo,{label:o.loading,loading:true});if(s.error)return jsxRuntime.jsx(Wo,{label:o.failed});let d=a(()=>l({error:true}),"fail");return i==="image"||i==="svg"?jsxRuntime.jsx("div",{className:"artifact-preview-media",children:jsxRuntime.jsx("img",{src:s.url,alt:e.name,onError:d})}):i==="video"?jsxRuntime.jsx("div",{className:"artifact-preview-media",children:jsxRuntime.jsx("video",{src:s.url,controls:true,preload:"metadata",onError:d,"aria-label":e.name})}):i==="audio"?jsxRuntime.jsx("div",{className:"artifact-preview-media",children:jsxRuntime.jsx("audio",{src:s.url,controls:true,preload:"metadata",onError:d,"aria-label":e.name})}):i==="pdf"?jsxRuntime.jsx(Qd,{blob:t,workerSrc:n,labels:o}):i==="html"?jsxRuntime.jsx("iframe",{className:"artifact-preview-frame",srcDoc:s.text,title:e.name,sandbox:"allow-scripts",referrerPolicy:"no-referrer"}):i==="markdown"?jsxRuntime.jsx("div",{className:"artifact-preview-document",children:jsxRuntime.jsx(An,{resources:r,format:"markdown",streaming:false,text:s.text??""})}):i==="code"?jsxRuntime.jsx("div",{className:"artifact-preview-code",children:jsxRuntime.jsx(Er,{embedded:true,filename:e.name,code:s.text,lines:s.text?.split(`
|
|
126
|
+
`)})}):i==="document"?jsxRuntime.jsx("article",{className:"artifact-preview-document",dangerouslySetInnerHTML:{__html:s.html??""}}):i==="spreadsheet"?jsxRuntime.jsx(gh,{sheets:s.sheets??[],labels:o}):i==="presentation"?jsxRuntime.jsx(fh,{blob:t,labels:o}):jsxRuntime.jsx(Wo,{label:o.unsupported})}a(mh,"ResolvedPreview");function gh({sheets:e,labels:t}){let[o,n]=he.useState(0),r=e[o];if(!r)return jsxRuntime.jsx(Wo,{label:t.failed});let i=r.data.length>500||r.data.some(s=>s.length>100);return jsxRuntime.jsxs("div",{className:"artifact-preview-sheet",children:[jsxRuntime.jsxs("div",{className:"artifact-preview-toolbar",children:[jsxRuntime.jsxs(primitives.Select,{value:String(o),onValueChange:s=>n(Number(s)),children:[jsxRuntime.jsx(primitives.SelectTrigger,{"aria-label":t.sheet,size:"sm",children:jsxRuntime.jsx(primitives.SelectValue,{})}),jsxRuntime.jsx(primitives.SelectContent,{disableTriggerViewportSizing:true,children:e.map((s,l)=>jsxRuntime.jsx(primitives.SelectItem,{value:String(l),children:s.sheet},l))})]}),i&&jsxRuntime.jsx("small",{children:t.truncated})]}),jsxRuntime.jsx("div",{className:"artifact-preview-sheet-scroll",children:jsxRuntime.jsx(primitives.Table,{container:false,children:jsxRuntime.jsx(primitives.TableBody,{children:r.data.slice(0,500).map((s,l)=>jsxRuntime.jsxs(primitives.TableRow,{children:[jsxRuntime.jsx(primitives.TableHead,{scope:"row",children:l+1}),s.slice(0,100).map((d,c)=>jsxRuntime.jsx(primitives.TableCell,{children:d instanceof Date?d.toLocaleString():String(d??"")},c))]},l))})})})]})}a(gh,"SpreadsheetContent");function fh({blob:e,labels:t}){let o=he.useRef(null),n=he.useRef(null),r=he.useRef(),i=he.useRef(0),[s,l]=he.useState(0),[d,c]=he.useState(0),[u,m]=he.useState("loading");he.useEffect(()=>{let g=false,b,x,f=n.current,h=a(()=>({width:o.current?.clientWidth||1,height:o.current?.clientHeight||1}),"viewport");return m("loading"),i.current=0,l(0),(async()=>{let[{createArtifactPresentation:k},{renderPptxSlide:$}]=await Promise.all([Promise.resolve().then(()=>(cr(),pa)),Promise.resolve().then(()=>(dr(),ua))]),w=await e.arrayBuffer();if(g)return;if(b=await k(f,w,h()),g){b.destroy(),f.replaceChildren();return}r.current=b;let C=a(()=>{b&&$(b,i.current,h());},"render");c(b.slideCount),C(),m("ready"),x=new ResizeObserver(C),x.observe(o.current);})().catch(()=>{g||m("error");}),()=>{g=true,x?.disconnect(),r.current=void 0,b?.destroy(),f.replaceChildren();}},[e]);let p=a(async g=>{i.current=g,l(g);let{renderPptxSlide:b}=await Promise.resolve().then(()=>(dr(),ua));r.current&&o.current&&b(r.current,g,{width:o.current.clientWidth,height:o.current.clientHeight});},"select");return jsxRuntime.jsxs("div",{className:"artifact-preview-slides",children:[jsxRuntime.jsxs("div",{className:"artifact-preview-toolbar",children:[jsxRuntime.jsx(Te,{variant:"quiet",size:"xs","aria-label":t.previous,disabled:u!=="ready"||s===0,onClick:()=>{p(s-1);},children:jsxRuntime.jsx(lucideReact.ChevronLeft,{size:16})}),jsxRuntime.jsx("span",{children:t.page(d?s+1:0,d)}),jsxRuntime.jsx(Te,{variant:"quiet",size:"xs","aria-label":t.next,disabled:u!=="ready"||s>=d-1,onClick:()=>{p(s+1);},children:jsxRuntime.jsx(lucideReact.ChevronRight,{size:16})})]}),jsxRuntime.jsxs("div",{className:"artifact-preview-slide-stage",ref:o,children:[jsxRuntime.jsx("div",{ref:n}),u!=="ready"&&jsxRuntime.jsx("div",{className:"artifact-preview-cover",children:jsxRuntime.jsx(Wo,{label:u==="loading"?t.loading:t.failed,loading:u==="loading"})})]})]})}a(fh,"PresentationContent");function _i({children:e,preview:t,label:o,previewLabel:n,previewChrome:r="panel",resizeLabel:i,onPreviewClose:s,maximized:l=false}){let d=he.useRef(null),[c,u]=he.useState(1200),[m,p]=he.useState(58);he.useEffect(()=>{let k=d.current;if(!k)return;let $=a(()=>u(k.getBoundingClientRect().width),"measure");$();let w=new ResizeObserver($);return w.observe(k),()=>w.disconnect()},[]);let g=c<960,b=!!t,x=b&&l,f=Math.min(60,360/Math.max(c,1)*100),h=Math.max(f,Math.min(72,100-320/Math.max(c,1)*100));return jsxRuntime.jsx("div",{ref:d,className:"agent-artifact-layout","data-preview-open":b,"data-preview-overlay":g,"data-preview-maximized":x,children:jsxRuntime.jsx(base.BaseLayoutSplit,{resizable:b&&!g&&!x,minSize:f,maxSize:h,size:Math.max(f,Math.min(h,m)),onSizeChange:p,gap:"var(--monkeys-semantic-spacing-global,var(--global-spacing,1rem))",resizeLabel:i,className:"agent-artifact-split",classNames:{primary:"agent-artifact-primary",secondary:"agent-artifact-secondary",handle:"agent-artifact-resize"},style:!b||g||x?{gridTemplateColumns:"minmax(0,1fr)",gap:0}:void 0,primary:jsxRuntime.jsx(primitives.BentoPanel,{"aria-label":o,className:"agent-artifact-main",contentClassName:"agent-artifact-bento-body",children:jsxRuntime.jsx(ee,{children:e})}),secondary:t?jsxRuntime.jsx(primitives.BentoPanel,{"aria-label":n,chrome:r,className:"agent-artifact-detail",contentClassName:"agent-artifact-bento-body",onKeyDown:k=>{k.key==="Escape"&&(k.stopPropagation(),s?.());},children:jsxRuntime.jsx(ee,{children:t})}):void 0})})}a(_i,"AgentArtifactLayout");cr();dr();Wi();function dc(e){return !!e&&typeof e=="object"&&!Array.isArray(e)}a(dc,"isRecord");function vh(e){if(e!==void 0&&e!=="ltr"&&e!=="rtl")throw new TypeError('MonkeysProvider direction must be "ltr" or "rtl".')}a(vh,"validateDirection");function xh(e){if(e!==void 0){if(!dc(e))throw new TypeError("MonkeysProvider environment must be an object.");if(e.getDocument!==void 0&&typeof e.getDocument!="function")throw new TypeError("MonkeysProvider environment.getDocument must be a function.");if(e.getWindow!==void 0&&typeof e.getWindow!="function")throw new TypeError("MonkeysProvider environment.getWindow must be a function.")}}a(xh,"validateEnvironment");function kh(e){if(e!==void 0){if(!dc(e))throw new TypeError("MonkeysProvider portal must be an object.");if(e.disabled!==void 0&&typeof e.disabled!="boolean")throw new TypeError("MonkeysProvider portal.disabled must be a boolean.");if(e.container!=null&&typeof e.container!="function"&&typeof e.container!="object")throw new TypeError("MonkeysProvider portal.container must be an Element, null, or a function.")}}a(kh,"validatePortal");function wh(e,t,o,n){return e?go(e,{colorMode:t,density:o}):n}a(wh,"resolveProviderTheme");function gn({children:e,locale:t,messages:o,direction:n,theme:r,themeId:i,colorMode:s,density:l,appearance:d,environment:c,iconResolver:u,imageResolver:m,portal:p,statusStates:g,listFooter:b}){let x=he.useContext(Tn),f=he.useContext(an),h=he.useContext(Jn),k=he.useContext(er);if(vh(n),xh(c),u!==void 0&&typeof u!="function")throw new TypeError("MonkeysProvider iconResolver must be a function.");if(m!==void 0&&typeof m!="function")throw new TypeError("MonkeysProvider imageResolver must be a function.");kh(p);let $=he.useMemo(()=>ci(t,o,x),[t,o,x]),w=he.useMemo(()=>({...$,provided:true}),[$]),C=he.useMemo(()=>wh(r,s,l,f.resolvedTheme),[s,l,f.resolvedTheme,r]),T=he.useMemo(()=>({provided:true,resolvedTheme:C,themeId:i??f.themeId,baseAppearance:{...f.baseAppearance,...d?.base,...l?{density:l}:void 0,slots:{...f.baseAppearance?.slots,...d?.base?.slots},styles:{...f.baseAppearance?.styles,...d?.base?.styles}},dataExplorerAppearance:{...f.dataExplorerAppearance,...d?.dataExplorer,...l?{density:l}:void 0,slots:{...f.dataExplorerAppearance?.slots,...d?.dataExplorer?.slots},styles:{...f.dataExplorerAppearance?.styles,...d?.dataExplorer?.styles}},statusStates:{...f.statusStates,...g,loading:{...f.statusStates?.loading,...g?.loading},empty:{...f.statusStates?.empty,...g?.empty},error:{...f.statusStates?.error,...g?.error},permission:{...f.statusStates?.permission,...g?.permission}},listFooter:{...f.listFooter,...b,...b?.pageSizeOptions?{pageSizeOptions:[...b.pageSizeOptions]}:void 0}}),[d?.base,d?.dataExplorer,l,f.baseAppearance,f.dataExplorerAppearance,f.statusStates,f.themeId,C,g,b,i]),S=he.useMemo(()=>({provided:true,direction:n??h.direction??"ltr"}),[n,h.direction]),P=he.useMemo(()=>({provided:true,iconResolver:u??k.iconResolver,imageResolver:m??k.imageResolver,environment:{...k.environment,...c},portal:{...k.portal,...p}}),[c,k.environment,k.iconResolver,u,m,k.imageResolver,k.portal,p]);return jsxRuntime.jsx(Tn.Provider,{value:w,children:jsxRuntime.jsx(an.Provider,{value:T,children:jsxRuntime.jsx(Jn.Provider,{value:S,children:jsxRuntime.jsx(er.Provider,{value:P,children:e})})})})}a(gn,"MonkeysProvider");var Th={sm:"h-8 px-2.5 text-xs",md:"h-9 px-3 text-sm",lg:"h-10 px-3.5 text-base"},Sh={sm:"h-8 w-8 px-0",md:"h-9 w-9 px-0",lg:"h-10 w-10 px-0"},Ui={sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"};function ba(e){return typeof e=="string"&&e.trim()?e:void 0}a(ba,"nonEmptyText");function $h(){return jsxRuntime.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-full w-full motion-safe:animate-spin motion-reduce:animate-none",fill:"none",children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"9",className:"opacity-25",stroke:"currentColor",strokeWidth:"3"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M12 3a9 9 0 0 1 9 9h-3a6 6 0 0 0-6-6V3Z"})]})}a($h,"LoadingIcon");var _o=he.forwardRef(a(function({children:t,label:o,icon:n,endIcon:r,type:i="button",title:s,ariaLabel:l,tone:d,size:c,active:u=false,iconOnly:m=false,disabled:p=false,loading:g=false,stopPropagation:b=false,appearance:x,variant:f,density:h,state:k,className:$,classNames:w,style:C,onClick:T,"aria-label":S,"aria-pressed":P,...E},R){for(let[se,V]of [["active",u],["iconOnly",m],["disabled",p],["loading",g],["stopPropagation",b]])if(typeof V!="boolean")throw new TypeError(`BaseButton ${se} must be a boolean.`);if(c!==void 0&&c!=="sm"&&c!=="md"&&c!=="lg")throw new TypeError('BaseButton size must be "sm", "md", or "lg".');if(d!==void 0&&d!=="default"&&d!=="primary"&&d!=="success"&&d!=="warning"&&d!=="danger"&&d!=="muted")throw new TypeError('BaseButton tone must be "default", "primary", "success", "warning", "danger", or "muted".');let W=Se(x),B=fe(),A=xe({...W,variant:f,density:h,state:k}),L=t??o,I=H(L)&&(typeof L!="string"||!!L.trim()),K=ba(l)??ba(S),q=typeof L=="string"?ba(L):void 0,_=ba(s);if(m&&!I&&!K&&!_)throw new TypeError("BaseButton iconOnly requires ariaLabel, aria-label, title, or a renderable label.");let Y=K??q??_,M=p||g,z=d??"default",Q=k??(g?"loading":p?"disabled":u?"active":"idle"),ce=a(se=>{b&&se.stopPropagation(),!M&&T?.(se);},"handleClick");return jsxRuntime.jsxs(qr,{...B,...E,ref:R,type:i,tabIndex:E.tabIndex,title:s,"aria-label":Y,"aria-pressed":P??(u||void 0),"aria-busy":g||void 0,"data-variant":A.variant,"data-density":A.density,disabled:M,"data-monkeys-component":"button","data-slot":"root","data-state":Q,"data-tone":z,"data-size":c,"data-active":u||void 0,"data-loading":g||void 0,"data-disabled":M||void 0,"data-icon-only":m||void 0,className:v(A.slots.buttonBase,m&&A.slots.buttonIconOnly,c&&Th[c],m&&c&&Sh[c],Vr(A,d,u),M&&A.slots.buttonDisabled,w?.root,$),style:{...A.styles.button,...u?A.styles.buttonActive:void 0,...M?A.styles.buttonDisabled:void 0,...C},onClick:ce,children:[g?jsxRuntime.jsx("span",{"data-slot":"icon","data-state":Q,"data-tone":z,"data-size":c,className:v(A.slots.buttonIcon,c&&Ui[c],w?.icon),children:jsxRuntime.jsx($h,{})}):n?jsxRuntime.jsx("span",{"data-slot":"icon","data-state":Q,"data-tone":z,"data-size":c,className:v(A.slots.buttonIcon,c&&Ui[c],w?.icon),children:n}):null,m?H(L)?jsxRuntime.jsx("span",{"data-slot":"label","data-state":Q,"data-tone":z,"data-size":c,className:"sr-only",children:L}):null:H(L)?jsxRuntime.jsx("span",{"data-slot":"label","data-state":Q,"data-tone":z,"data-size":c,className:v(A.slots.buttonLabel,w?.label),children:L}):null,!g&&r?jsxRuntime.jsx("span",{"data-slot":"end-icon","data-state":Q,"data-tone":z,"data-size":c,className:v(A.slots.buttonIcon,c&&Ui[c],w?.icon,w?.endIcon),children:r}):null]})},"BaseButton"));function Vi(e,t){let o=typeof e=="function"?e():e;if(o===null)return null;if(!o||typeof o!="object"||o.nodeType!==1)throw new TypeError(`${t} must resolve to an Element or null.`);return o}a(Vi,"resolveContainerValue");function uc({explicitProvided:e,explicitContainer:t,providerProvided:o,providerContainer:n,getDocument:r}){if(e)return Vi(t,"BasePortal container");if(o)return Vi(n,"MonkeysProvider portal.container");if(!r)return null;let i=r();if(i===null)return null;if(!i||typeof i!="object"||!("body"in i))throw new TypeError("MonkeysProvider environment.getDocument must resolve to a Document or null.");return Vi(i.body,"MonkeysProvider environment.getDocument().body")}a(uc,"resolveBasePortalContainer");function Mh({mounted:e,explicitDisabled:t,explicitContainer:o,providerDisabled:n,providerContainer:r,getDocument:i}){let s=t??n??false;if(!e||s)return {mounted:e,disabled:s,shouldPortal:false,container:null,radixPortalProps:void 0};let l=uc({explicitProvided:o!==void 0,explicitContainer:o,providerProvided:r!==void 0,providerContainer:r,getDocument:i});return l?{mounted:true,disabled:false,shouldPortal:true,container:l,radixPortalProps:Object.freeze({container:l})}:{mounted:true,disabled:false,shouldPortal:false,container:null,radixPortalProps:void 0}}a(Mh,"resolveBaseOverlayPortalState");function Ah(){return globalThis.document??null}a(Ah,"getDefaultDocument");function mr(e={}){let t=Sn(),o=ln(),[n,r]=he.useState(false);return he.useEffect(()=>{r(true);},[]),Mh({mounted:n,explicitDisabled:e.disabled,explicitContainer:e.container,providerDisabled:o.disabled,providerContainer:o.container,getDocument:t.getDocument??Ah})}a(mr,"useBaseOverlayPortal");var Bh=["default","primary","success","warning","danger","muted"];function Ft(e,t){if(typeof e!="boolean")throw new TypeError(`BaseContextMenu ${t} must be a boolean.`)}a(Ft,"validateBoolean");function ha(e){if(e!==void 0&&!Bh.includes(e))throw new TypeError('BaseContextMenu tone must be "default", "primary", "success", "warning", "danger", or "muted".')}a(ha,"validateTone");function Nh(e){if(e!==void 0&&e!=="ltr"&&e!=="rtl")throw new TypeError('BaseContextMenu dir must be "ltr" or "rtl".')}a(Nh,"validateDirection");function Eh(){return jsxRuntime.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",className:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:jsxRuntime.jsx("path",{d:"M3.5 8.5 6.5 11.5 12.5 4.5"})})}a(Eh,"CheckIcon");function Ih(){return jsxRuntime.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",className:"h-3.5 w-3.5",fill:"currentColor",children:jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"3"})})}a(Ih,"DotIcon");function Dh(){return jsxRuntime.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",className:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:jsxRuntime.jsx("path",{d:"m6 4 4 4-4 4"})})}a(Dh,"ChevronRightIcon");function ji({label:e,icon:t,shortcut:o,children:n,classNames:r,inset:i,indicator:s}){let l=n??e;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s||null,H(t)?jsxRuntime.jsx("span",{"data-slot":"icon",className:v(r?.icon),children:t}):i?jsxRuntime.jsx("span",{"aria-hidden":"true","data-slot":"icon",className:"h-4 w-4 shrink-0"}):null,H(l)?jsxRuntime.jsx("span",{"data-slot":"label",className:v(r?.label),children:l}):null,H(o)?jsxRuntime.jsx("span",{"data-slot":"shortcut",className:v(r?.shortcut),children:o}):null]})}a(ji,"renderItemContent");function Gi({children:e,trigger:t,content:o,disabled:n=false,modal:r=true,dir:i,appearance:s,className:l,classNames:d,onOpenChange:c}){Ft(n,"disabled"),Ft(r,"modal"),Nh(i);let u=tr(),m=Se(s);return jsxRuntime.jsxs(Ae__namespace.Root,{onOpenChange:c,modal:r,dir:i??u,children:[t?jsxRuntime.jsx(ya,{disabled:n,appearance:m,className:v(d?.trigger,l),children:t}):null,o?jsxRuntime.jsx(pc,{appearance:m,className:d?.content,children:o}):null,e]})}a(Gi,"BaseContextMenu");var ya=he.forwardRef(a(function({children:t,disabled:o=false,asChild:n=false,appearance:r,className:i,style:s,...l},d){Ft(o,"Trigger disabled"),Ft(n,"Trigger asChild");let c=Se(r),u=fe(),m=xe(c);return jsxRuntime.jsx(Ae__namespace.Trigger,{...u,...l,ref:d,asChild:n,disabled:o,"data-monkeys-component":"context-menu","data-slot":"trigger","data-disabled":o||void 0,className:v(!n&&m.slots.menuTrigger,o&&!n&&m.slots.menuItemDisabled,i),style:s,children:t})},"BaseContextMenuTrigger")),pc=he.forwardRef(a(function({children:t,appearance:o,className:n,classNames:r,style:i,...s},l){let d=Se(o),c=fe(),u=xe(d),m=mr(),p=jsxRuntime.jsx(Ae__namespace.Content,{...c,...s,ref:l,"data-monkeys-component":"context-menu","data-slot":"content",className:v(u.slots.menuContent,r?.root,n),style:{...u.styles.menuContent,...i},children:t});return m.shouldPortal?jsxRuntime.jsx(Ae__namespace.Portal,{...m.radixPortalProps,children:p}):p},"BaseContextMenuContent"));he.forwardRef(a(function({children:t,appearance:o,className:n,style:r,...i},s){let l=Se(o),d=fe(),c=xe(l);return jsxRuntime.jsx(Ae__namespace.Label,{...d,...i,ref:s,"data-monkeys-component":"context-menu","data-slot":"label",className:v(c.slots.menuLabel,n),style:r,children:t})},"BaseContextMenuLabel"));he.forwardRef(a(function({appearance:t,className:o,style:n,...r},i){let s=Se(t),l=fe(),d=xe(s);return jsxRuntime.jsx(Ae__namespace.Separator,{...l,...r,ref:i,"data-monkeys-component":"context-menu","data-slot":"separator",className:v(d.slots.menuSeparator,o),style:n})},"BaseContextMenuSeparator"));var En=he.forwardRef(a(function({children:t,label:o,icon:n,shortcut:r,tone:i,disabled:s=false,inset:l=false,appearance:d,className:c,classNames:u,style:m,onSelect:p,...g},b){Ft(s,"Item disabled"),Ft(l,"Item inset"),ha(i);let x=i??"default",f=Se(d),h=fe(),k=xe(f);return jsxRuntime.jsx(Ae__namespace.Item,{...h,...g,ref:b,disabled:s,"data-monkeys-component":"context-menu","data-slot":"item","data-tone":x,"data-disabled":s||void 0,className:v(k.slots.menuItem,or(k,i),s&&k.slots.menuItemDisabled,u?.root,c),style:{...k.styles.menuItem,...m},onSelect:$=>{if(s){$.preventDefault();return}p?.($);},children:ji({children:t,label:o,icon:n,shortcut:r,inset:l,classNames:{icon:v(k.slots.menuItemIcon,u?.icon),label:v(k.slots.menuItemLabel,u?.label),shortcut:v(k.slots.menuItemShortcut,u?.shortcut)}})})},"BaseContextMenuItem"));he.forwardRef(a(function({children:t,label:o,icon:n,shortcut:r,tone:i,disabled:s=false,inset:l=false,checked:d,onCheckedChange:c,appearance:u,className:m,classNames:p,style:g,onSelect:b,...x},f){if(Ft(s,"CheckboxItem disabled"),Ft(l,"CheckboxItem inset"),ha(i),d!==void 0&&d!=="indeterminate"&&typeof d!="boolean")throw new TypeError('BaseContextMenu CheckboxItem checked must be a boolean or "indeterminate".');let h=i??"default",k=Se(u),$=fe(),w=xe(k);return jsxRuntime.jsx(Ae__namespace.CheckboxItem,{...$,...x,ref:f,checked:d,disabled:s,"data-monkeys-component":"context-menu","data-slot":"checkbox-item","data-tone":h,"data-disabled":s||void 0,"data-checked":d==="indeterminate"?"mixed":d===void 0?void 0:String(d),onCheckedChange:C=>{s||c?.(C);},className:v(w.slots.menuItem,"pl-8",or(w,i),s&&w.slots.menuItemDisabled,p?.root,m),style:{...w.styles.menuItem,...g},onSelect:C=>{if(s){C.preventDefault();return}b?.(C);},children:ji({children:t,label:o,icon:n,shortcut:r,inset:l,classNames:{icon:v(w.slots.menuItemIcon,p?.icon),label:v(w.slots.menuItemLabel,p?.label),shortcut:v(w.slots.menuItemShortcut,p?.shortcut)},indicator:jsxRuntime.jsx(Ae__namespace.ItemIndicator,{"data-slot":"indicator",className:v(w.slots.menuCheckboxIndicator,p?.indicator),children:jsxRuntime.jsx(Eh,{})})})})},"BaseContextMenuCheckboxItem"));he.forwardRef(a(function({children:t,label:o,icon:n,shortcut:r,tone:i,disabled:s=false,inset:l=false,value:d,appearance:c,className:u,classNames:m,style:p,onSelect:g,...b},x){Ft(s,"RadioItem disabled"),Ft(l,"RadioItem inset"),ha(i);let f=i??"default",h=Se(c),k=fe(),$=xe(h);return jsxRuntime.jsx(Ae__namespace.RadioItem,{...k,...b,ref:x,value:d,disabled:s,"data-monkeys-component":"context-menu","data-slot":"radio-item","data-tone":f,"data-value":d,"data-disabled":s||void 0,className:v($.slots.menuItem,"pl-8",or($,i),s&&$.slots.menuItemDisabled,m?.root,u),style:{...$.styles.menuItem,...p},onSelect:w=>{if(s){w.preventDefault();return}g?.(w);},children:ji({children:t,label:o,icon:n,shortcut:r,inset:l,classNames:{icon:v($.slots.menuItemIcon,m?.icon),label:v($.slots.menuItemLabel,m?.label),shortcut:v($.slots.menuItemShortcut,m?.shortcut)},indicator:jsxRuntime.jsx(Ae__namespace.ItemIndicator,{"data-slot":"indicator",className:v($.slots.menuRadioIndicator,m?.indicator),children:jsxRuntime.jsx(Ih,{})})})})},"BaseContextMenuRadioItem"));he.forwardRef(a(function({children:t,label:o,icon:n,tone:r,disabled:i=false,inset:s=false,appearance:l,className:d,classNames:c,style:u,...m},p){Ft(i,"SubTrigger disabled"),Ft(s,"SubTrigger inset"),ha(r);let g=r??"default",b=Se(l),x=fe(),f=xe(b),h=t??o;return jsxRuntime.jsxs(Ae__namespace.SubTrigger,{...x,...m,ref:p,disabled:i,"data-monkeys-component":"context-menu","data-slot":"sub-trigger","data-tone":g,"data-disabled":i||void 0,className:v(f.slots.menuSubTrigger,or(f,r),i&&f.slots.menuItemDisabled,c?.root,d),style:{...f.styles.menuItem,...u},children:[H(n)?jsxRuntime.jsx("span",{"data-slot":"icon",className:v(f.slots.menuItemIcon,c?.icon),children:n}):s?jsxRuntime.jsx("span",{"aria-hidden":"true","data-slot":"icon",className:"h-4 w-4 shrink-0"}):null,H(h)?jsxRuntime.jsx("span",{"data-slot":"label",className:v(f.slots.menuItemLabel,c?.label),children:h}):null,jsxRuntime.jsx("span",{"data-slot":"sub-indicator",className:v(f.slots.menuSubTriggerIcon,c?.shortcut,"rtl:rotate-180"),children:jsxRuntime.jsx(Dh,{})})]})},"BaseContextMenuSubTrigger"));he.forwardRef(a(function({children:t,appearance:o,className:n,classNames:r,style:i,sideOffset:s=6,...l},d){let c=Se(o),u=fe(),m=xe(c),p=mr(),g=jsxRuntime.jsx(Ae__namespace.SubContent,{...u,...l,ref:d,sideOffset:s,"data-monkeys-component":"context-menu","data-slot":"sub-content",className:v(m.slots.menuSubContent,r?.root,n),style:{...m.styles.menuContent,...i},children:t});return p.shouldPortal?jsxRuntime.jsx(Ae__namespace.Portal,{...p.radixPortalProps,children:g}):g},"BaseContextMenuSubContent"));var Uh={1:"grid-cols-1",2:"md:grid-cols-2",3:"md:grid-cols-2 xl:grid-cols-3"};function Ki({items:e,columns:t=1,appearance:o,className:n,classNames:r,style:i,children:s,...l}){let d=xe(o);return jsxRuntime.jsxs("dl",{...l,className:v(d.slots.descriptionListRoot,Uh[t],r?.root,n),style:{...d.styles.descriptionList,...i},children:[e?.map((c,u)=>jsxRuntime.jsxs("div",{className:v(d.slots.descriptionListItem,r?.item),children:[jsxRuntime.jsx("dt",{className:v(d.slots.descriptionListTerm,r?.term),children:c.term}),jsxRuntime.jsx("dd",{className:v(d.slots.descriptionListValue,r?.value),children:c.value})]},u)),s]})}a(Ki,"BaseDescriptionList");var qh=["default","primary","success","warning","danger","muted"];function oo(e,t){if(typeof e!="boolean")throw new TypeError(`BaseDialog ${t} must be a boolean.`)}a(oo,"validateBoolean");function Kh(e){if(!qh.includes(e))throw new TypeError('BaseDialog triggerTone must be "default", "primary", "success", "warning", "danger", or "muted".')}a(Kh,"validateTriggerTone");function Xh({trigger:e,triggerLabel:t,triggerIcon:o,triggerTone:n,triggerDisabled:r,theme:i}){return H(e)?jsxRuntime.jsx("span",{role:"button",tabIndex:r?-1:0,"aria-disabled":r||void 0,onKeyDown:s=>{r||(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),s.currentTarget.click());},children:e}):H(t)?jsxRuntime.jsxs("button",{type:"button",disabled:r,"aria-label":typeof t=="string"&&t.trim()?t:void 0,className:v(i.slots.buttonBase,Vr(i,n),r&&i.slots.buttonDisabled),style:{...i.styles.button,...r?i.styles.buttonDisabled:void 0},children:[H(o)?jsxRuntime.jsx("span",{"data-slot":"icon",className:i.slots.buttonIcon,children:o}):null,jsxRuntime.jsx("span",{"data-slot":"label",className:i.slots.buttonLabel,children:t})]}):null}a(Xh,"renderTrigger");var bc=he.forwardRef(a(function({open:t,defaultOpen:o=false,size:n="default",title:r,description:i,header:s,footer:l,trigger:d,triggerLabel:c,triggerIcon:u,triggerTone:m="default",triggerDisabled:p=false,closeLabel:g,closeOnEscape:b=true,closeOnOverlayClick:x=true,showCloseButton:f=true,keepMounted:h=false,trapFocus:k=true,restoreFocus:$=true,initialFocus:w="first-interactive",initialFocusRef:C,zIndex:T,portal:S=false,appearance:P,className:E,classNames:R,style:W,children:B,onOpenChange:A,id:L,...I},K){if(t!==void 0&&oo(t,"open"),oo(o,"defaultOpen"),!["default","viewport","page"].includes(n))throw new TypeError("BaseDialog size must be default, viewport or page.");if(oo(p,"triggerDisabled"),oo(b,"closeOnEscape"),oo(x,"closeOnOverlayClick"),oo(f,"showCloseButton"),oo(h,"keepMounted"),oo(k,"trapFocus"),oo($,"restoreFocus"),oo(S,"portal"),Kh(m),w!=="first-interactive"&&w!=="container"&&w!=="explicit")throw new TypeError('BaseDialog initialFocus must be "first-interactive", "container", or "explicit".');if(T!==void 0&&!Number.isFinite(T))throw new TypeError("BaseDialog zIndex must be a finite number.");let q=$t().dialog,_=Se(P),Y=fe(),M=g===void 0?q.close:g,z=xe(_),Q=mr({disabled:!S}),[ce,se]=he.useState(o),V=he.useRef(null),J=he.useRef(null),O=t!==void 0,F=O?t:ce,ne=S&&Q.shouldPortal?"portaled":"inline",ae=H(r),me=H(i),Ce=H(s);if(f&&(typeof M!="string"||!M.trim()))throw new TypeError("BaseDialog closeLabel must be a non-empty string when showCloseButton is true.");let Z=a(oe=>{O||se(oe),A?.(oe);},"handleOpenChange");he.useEffect(()=>{if(!F||!h)return;let oe=V.current,De=oe?.ownerDocument,qe=De?.defaultView;if(!oe||!De||!qe)return;J.current=De.activeElement instanceof qe.HTMLElement?De.activeElement:null;let ft=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),Gt=a(()=>{let ge=oe.querySelector(ft);(w==="container"?oe:w==="explicit"?C?.current??oe:ge??oe).focus();},"focusInitial"),Po=qe.requestAnimationFrame(Gt),j=a(ge=>{if(ge.key==="Escape"&&b){ge.preventDefault(),ge.stopPropagation(),Z(false);return}if(ge.key!=="Tab"||!k)return;let Ne=Array.from(oe.querySelectorAll(ft));if(Ne.length===0){ge.preventDefault(),oe.focus();return}let He=Ne[0],Ke=Ne[Ne.length-1];ge.shiftKey&&De.activeElement===He?(ge.preventDefault(),Ke.focus()):!ge.shiftKey&&De.activeElement===Ke&&(ge.preventDefault(),He.focus());},"handleKeyDown");return qe.addEventListener("keydown",j),()=>{qe.cancelAnimationFrame(Po),qe.removeEventListener("keydown",j),$&&J.current?.isConnected&&J.current.focus();}},[b,w,C,F,h,$,k]);let Re=Ce||ae||me?jsxRuntime.jsxs("div",{...Y,"data-monkeys-component":"dialog","data-slot":"header","data-state":F?"open":"closed","data-portal":ne,className:v(z.slots.dialogHeader,R?.header,n==="page"&&"sr-only"),children:[Ce?s:null,ae?jsxRuntime.jsx(je__namespace.Title,{...Y,"data-monkeys-component":"dialog","data-slot":"title","data-state":F?"open":"closed","data-portal":ne,className:Ce?"sr-only":v(z.slots.dialogTitle,R?.title),children:r}):null,me?jsxRuntime.jsx(je__namespace.Description,{...Y,"data-monkeys-component":"dialog","data-slot":"description","data-state":F?"open":"closed","data-portal":ne,className:Ce?"sr-only":v(z.slots.dialogDescription,R?.description),children:i}):null]}):null,Ge=Xh({trigger:d,triggerLabel:c,triggerIcon:u,triggerTone:m,triggerDisabled:p,theme:z}),gt=F||h?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(je__namespace.Overlay,{forceMount:h||void 0,hidden:!F,...Y,"aria-hidden":"true","data-monkeys-component":"dialog","data-slot":"overlay","data-portal":ne,className:v(z.slots.dialogOverlay,R?.overlay),style:{...z.styles.dialogOverlay,zIndex:T,...n==="page"?{background:"transparent",backdropFilter:"none"}:{}}}),jsxRuntime.jsx("div",{...Y,hidden:!F,"data-monkeys-component":"dialog","data-slot":"content","data-state":F?"open":"closed","data-portal":ne,className:v(z.slots.dialogContent,R?.content),style:{zIndex:T,...n==="page"?{padding:0,inset:0}:{}},children:jsxRuntime.jsx(je__namespace.Content,{forceMount:h||void 0,...Y,...ae?{}:{"aria-labelledby":void 0},...me?{}:{"aria-describedby":void 0},asChild:true,onOpenAutoFocus:oe=>{if(h){oe.preventDefault();return}let De=V.current;J.current=De?.ownerDocument.activeElement,(w==="container"||w==="explicit")&&(oe.preventDefault(),(w==="explicit"?C?.current??De:De)?.focus({preventScroll:true}));},onCloseAutoFocus:oe=>{if(h||!$){oe.preventDefault();return}let De=J.current;De?.isConnected&&(oe.preventDefault(),De.focus({preventScroll:true}));},onEscapeKeyDown:oe=>{(h||!b)&&oe.preventDefault();},onPointerDownOutside:oe=>{x||oe.preventDefault();},children:jsxRuntime.jsxs("div",{...Y,ref:V,tabIndex:-1,"aria-modal":"true","data-monkeys-component":"dialog","data-slot":"panel","data-portal":ne,className:v(z.slots.dialogPanel,R?.panel),"data-presentation":n,style:{...z.styles.dialogPanel,...n!=="default"?{width:n==="page"?"100vw":"96vw",maxWidth:"none",height:n==="page"?"100dvh":"94dvh",maxHeight:n==="page"?"100dvh":"94dvh",display:"flex",flexDirection:"column"}:{},...n==="page"?{borderRadius:0,border:0,boxShadow:"none",margin:0,animation:"none"}:{}},children:[Re,f?jsxRuntime.jsx(je__namespace.Close,{asChild:true,children:jsxRuntime.jsx("button",{...Y,type:"button","aria-label":M,title:M,"data-monkeys-component":"dialog","data-slot":"close","data-state":F?"open":"closed","data-portal":ne,className:v(z.slots.dialogClose,R?.close),children:"\xD7"})}):null,jsxRuntime.jsx("div",{...Y,"data-monkeys-component":"dialog","data-slot":"body","data-state":F?"open":"closed","data-portal":ne,className:v(z.slots.dialogBody,R?.body),style:n!=="default"?{minHeight:0,flex:"1 1 0%",overflow:"hidden",padding:0}:void 0,children:B}),H(l)?jsxRuntime.jsx("div",{...Y,"data-monkeys-component":"dialog","data-slot":"footer","data-state":F?"open":"closed","data-portal":ne,className:v(z.slots.dialogFooter,R?.footer),children:l}):null]})})})]}):null;return jsxRuntime.jsx("div",{...Y,...I,ref:K,id:L,"data-monkeys-component":"dialog","data-slot":"root","data-state":F?"open":"closed","data-portal":ne,className:v(z.slots.dialogRoot,R?.root,E),style:W,children:jsxRuntime.jsxs(je__namespace.Root,{open:F,onOpenChange:Z,modal:!h&&k,children:[Ge?jsxRuntime.jsx(je__namespace.Trigger,{...Y,asChild:true,disabled:p,"data-monkeys-component":"dialog","data-slot":"trigger","data-portal":ne,"data-tone":m,"data-disabled":p||void 0,className:v(z.slots.dialogTrigger,p&&z.slots.dialogTriggerDisabled,R?.trigger),children:Ge}):null,S&&Q.shouldPortal?jsxRuntime.jsx(mo,{children:jsxRuntime.jsx(je__namespace.Portal,{...Q.radixPortalProps,forceMount:h||void 0,children:gt})}):jsxRuntime.jsx(mo,{children:gt})]})})},"BaseDialog"));function Zh(){return jsxRuntime.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-6 w-6",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.8",children:[jsxRuntime.jsx("rect",{width:"16",height:"12",x:"4",y:"6",rx:"2"}),jsxRuntime.jsx("path",{d:"M8 10h8"}),jsxRuntime.jsx("path",{d:"M8 14h5"})]})}a(Zh,"DefaultEmptyIcon");var Xi=he.forwardRef(a(function({icon:t=jsxRuntime.jsx(Zh,{}),title:o,description:n,actions:r,variant:i,appearance:s,className:l,classNames:d,style:c,...u},m){let p=Se(s),g=fe(),b=sn(),x=i??b.empty?.variant??"default",f=b.density==="compact"?"min-h-0 px-3 py-3":b.density==="comfortable"?"min-h-56 px-8 py-12":void 0,h=xe(p);return jsxRuntime.jsxs("div",{...g,...u,ref:m,"data-monkeys-component":"empty-state","data-slot":"root","data-state":"empty","data-variant":x,"data-density":b.density,className:v(h.slots.stateRoot,f,x==="compact"&&"min-h-0 gap-1 py-3",d?.root,l),style:{...h.styles.stateRoot,...c},children:[H(t)?jsxRuntime.jsx("div",{"data-slot":"icon","data-state":"empty",className:v(h.slots.stateIcon,d?.icon),style:h.styles.stateIcon,children:t}):null,H(o)?jsxRuntime.jsx("div",{"data-slot":"title","data-state":"empty",className:v(h.slots.stateTitle,d?.title),children:o}):null,H(n)?jsxRuntime.jsx("div",{"data-slot":"description","data-state":"empty",className:v(h.slots.stateDescription,d?.description),children:n}):null,H(r)?jsxRuntime.jsx("div",{"data-slot":"actions","data-state":"empty",className:v(h.slots.stateActions,d?.actions),children:r}):null]})},"BaseEmptyState"));var ey={line:"h-4 w-full",block:"h-24 w-full",circle:"aspect-square h-10 rounded-full"},va=he.forwardRef(a(function({variant:t="line",animated:o=true,animation:n,appearance:r,className:i,classNames:s,style:l,...d},c){if(t!=="line"&&t!=="block"&&t!=="circle")throw new TypeError('BaseSkeleton variant must be "line", "block", or "circle".');if(typeof o!="boolean")throw new TypeError("BaseSkeleton animated must be a boolean.");let u=Se(r),m=fe(),p=xe(u),g=zd(n,o,c);return jsxRuntime.jsx("div",{...m,...d,ref:g.ref,"aria-hidden":"true","data-monkeys-component":"skeleton","data-slot":"root","data-variant":t,"data-animated":g.mode!=="none","data-state":g.mode!=="none"?"animated":"static","data-skeleton-animation":g.mode,className:v(p.slots.skeletonRoot,ey[t],g.mode==="pulse"&&"motion-safe:animate-pulse motion-reduce:animate-none",s?.root,i),style:{...p.styles.skeleton,...g.style,...l}})},"BaseSkeleton"));function ny({className:e}){return jsxRuntime.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:e,fill:"none",children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"9",className:"opacity-25",stroke:"currentColor",strokeWidth:"3"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M12 3a9 9 0 0 1 9 9h-3a6 6 0 0 0-6-6V3Z"})]})}a(ny,"DefaultLoadingIcon");var xa=he.forwardRef(a(function({icon:t,title:o,description:n,actions:r,variant:i,animation:s,appearance:l,className:d,classNames:c,style:u,role:m="status","aria-live":p="polite","aria-busy":g=true,"aria-label":b,"aria-labelledby":x,...f},h){let k=Se(l),$=fe(),{loading:w}=$t(),C=sn(),T=i??C.loading?.variant??"spinner",S=C.density==="compact"?"min-h-0 px-3 py-3":C.density==="comfortable"?"min-h-56 px-8 py-12":void 0,P=xe(k),E=T==="skeleton"&&t===void 0?void 0:t===void 0?jsxRuntime.jsx(ny,{className:v("motion-safe:animate-spin motion-reduce:animate-none",P.slots.loadingSpinner)}):t,R=b??(x===void 0?typeof o=="string"?o:w.spinner:void 0);return jsxRuntime.jsxs("div",{...$,...f,ref:h,role:m,"aria-live":p,"aria-busy":g,"aria-label":R,"aria-labelledby":x,"data-monkeys-component":"loading-state","data-slot":"root","data-state":"loading","data-variant":T,"data-density":C.density,className:v(P.slots.stateRoot,S,c?.root,d),style:{...P.styles.stateRoot,...u},children:[T==="skeleton"?jsxRuntime.jsx(Ld,{animation:s,children:jsxRuntime.jsxs("div",{className:"flex w-full max-w-sm flex-col gap-3","data-slot":"skeleton",children:[jsxRuntime.jsx(va,{variant:"block",className:"h-20"}),jsxRuntime.jsx(va,{variant:"line",className:"w-4/5"}),jsxRuntime.jsx(va,{variant:"line",className:"w-3/5"})]})}):H(E)?jsxRuntime.jsx("div",{"data-slot":"icon","data-state":"loading",className:v(P.slots.stateIcon,c?.icon),style:P.styles.stateIcon,children:E}):null,T!=="skeleton"&&H(o)?jsxRuntime.jsx("div",{"data-slot":"title","data-state":"loading",className:v(P.slots.stateTitle,c?.title),children:o}):null,T!=="skeleton"&&H(n)?jsxRuntime.jsx("div",{"data-slot":"description","data-state":"loading",className:v(P.slots.stateDescription,c?.description),children:n}):null,H(r)?jsxRuntime.jsx("div",{"data-slot":"actions","data-state":"loading",className:v(P.slots.stateActions,c?.actions),children:r}):null]})},"BaseLoadingState"));function ay({kind:e}){return jsxRuntime.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-7 w-7",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.8",children:{error:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"9"}),jsxRuntime.jsx("path",{d:"M12 7v6"}),jsxRuntime.jsx("path",{d:"M12 17h.01"})]}),permission:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("rect",{x:"5",y:"10",width:"14",height:"10",rx:"2"}),jsxRuntime.jsx("path",{d:"M8 10V7a4 4 0 0 1 8 0v3"})]}),offline:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("path",{d:"M5 12.5a10 10 0 0 1 14 0"}),jsxRuntime.jsx("path",{d:"M8.5 16a5 5 0 0 1 7 0"}),jsxRuntime.jsx("path",{d:"M12 20h.01"}),jsxRuntime.jsx("path",{d:"m4 4 16 16"})]}),fallback:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"9"}),jsxRuntime.jsx("path",{d:"M9.5 9a2.5 2.5 0 1 1 4.2 1.8c-1 .8-1.7 1.2-1.7 2.7"}),jsxRuntime.jsx("path",{d:"M12 17h.01"})]})}[e]})}a(ay,"SystemStateIcon");var Qi=he.forwardRef(a(function({kind:t="fallback",icon:o,title:n,description:r,actions:i,appearance:s,className:l,classNames:d,style:c,role:u,"aria-live":m,...p},g){let b=Se(s),x=fe(),f=sn(),h=f.density==="compact"?"min-h-0 px-3 py-3":f.density==="comfortable"?"min-h-56 px-8 py-12":void 0,k=xe(b),$=o===void 0?jsxRuntime.jsx(ay,{kind:t}):o,w=u??(t==="error"||t==="offline"?"alert":"status");return jsxRuntime.jsxs("div",{...x,...p,ref:g,role:w,"aria-live":m??(w==="alert"?"assertive":"polite"),"data-monkeys-component":"system-state","data-slot":"root","data-state":t,"data-density":f.density,className:v(k.slots.stateRoot,h,d?.root,l),style:{...k.styles.stateRoot,...c},children:[H($)?jsxRuntime.jsx("div",{"data-slot":"icon","data-state":t,className:v(k.slots.stateIcon,d?.icon),style:k.styles.stateIcon,children:$}):null,H(n)?jsxRuntime.jsx("div",{"data-slot":"title","data-state":t,className:v(k.slots.stateTitle,d?.title),children:n}):null,H(r)?jsxRuntime.jsx("div",{"data-slot":"description","data-state":t,className:v(k.slots.stateDescription,d?.description),children:r}):null,H(i)?jsxRuntime.jsx("div",{"data-slot":"actions","data-state":t,className:v(k.slots.stateActions,d?.actions),children:i}):null]})},"BaseSystemState"));var Zi="application/x-monkeys-base-table-column",wa=8;function rs(e,t){typeof e=="function"?e(t):e&&(e.current=t);}a(rs,"assignRef");function wo(e,t){if(t!==void 0&&typeof t!="boolean")throw new Error(`BaseTable ${e} must be a boolean.`)}a(wo,"assertBoolean");function In(e,t,o){if(t!==void 0&&!o.includes(t))throw new Error(`BaseTable ${e} must be one of ${o.map(n=>`"${n}"`).join(", ")}.`)}a(In,"assertEnum");function Ji(e,t){if(t!==void 0&&(typeof t!="string"||t.trim().length===0))throw new Error(`BaseTable ${e} must be a non-empty string when provided.`)}a(Ji,"assertOptionalLabel");function ns(e,t){if(t!==void 0&&typeof t!="function")throw new Error(`BaseTable ${e} must be a function when provided.`)}a(ns,"assertOptionalFunction");function jo(e,t,o={}){if(e!==void 0){if(typeof e=="number"){if(!Number.isFinite(e)||e<0)throw new Error(`BaseTable ${t} must be a finite non-negative number${o.stringAllowed?" or a non-empty CSS size string":""}.`);return}if(!(o.stringAllowed&&typeof e=="string"&&e.trim().length>0))throw new Error(`BaseTable ${t} must be ${o.stringAllowed?"a finite non-negative number or a non-empty CSS size string":"a finite non-negative number"}.`)}}a(jo,"validateCssSizeValue");function cy(e){if(e===void 0)return;if(!Array.isArray(e))throw new Error("BaseTable columns must be an array when provided.");let t=new Set;return e.forEach((o,n)=>{if(!o||typeof o!="object"||Array.isArray(o))throw new Error(`BaseTable column at index ${n} must be an object.`);let r=o;if(typeof r.id!="string"||r.id.trim().length===0)throw new Error(`BaseTable column id at index ${n} must be a non-empty string.`);let i=r.id.trim();if(r.id!==i)throw new Error(`BaseTable column id "${r.id}" must not contain surrounding whitespace.`);if(t.has(i))throw new Error(`BaseTable columns contain duplicate id "${i}".`);if(t.add(i),jo(r.width,`column "${i}" width`,{stringAllowed:true}),jo(r.minWidth,`column "${i}" minWidth`,{stringAllowed:true}),jo(r.maxWidth,`column "${i}" maxWidth`,{stringAllowed:true}),typeof r.minWidth=="number"&&typeof r.maxWidth=="number"&&r.minWidth>r.maxWidth)throw new Error(`BaseTable column "${i}" minWidth cannot be greater than maxWidth.`)}),t}a(cy,"validateColumns");function uy(e,t){if(e===void 0)return;if(!Array.isArray(e))throw new Error("BaseTable columnOrder must be an array when provided.");let o=new Set;if(e.forEach((n,r)=>{if(typeof n!="string"||n.trim().length===0)throw new Error(`BaseTable columnOrder entry at index ${r} must be a non-empty string.`);let i=n.trim();if(n!==i)throw new Error(`BaseTable columnOrder entry "${n}" must not contain surrounding whitespace.`);if(o.has(i))throw new Error(`BaseTable columnOrder contains duplicate id "${i}".`);if(t&&!t.has(i))throw new Error(`BaseTable columnOrder contains unknown column id "${i}".`);o.add(i);}),t&&o.size!==t.size){let n=[...t].filter(r=>!o.has(r));throw new Error(`BaseTable columnOrder must contain every configured column id; missing ${n.map(r=>`"${r}"`).join(", ")}.`)}}a(uy,"validateColumnOrder");function py(e,t){if(e!==void 0){if(!e||typeof e!="object"||Array.isArray(e)||![Object.prototype,null].includes(Object.getPrototypeOf(e)))throw new Error("BaseTable columnSizes must be a plain record when provided.");Object.entries(e).forEach(([o,n])=>{let r=o.trim();if(r.length===0)throw new Error("BaseTable columnSizes keys must be non-empty strings.");if(o!==r)throw new Error(`BaseTable columnSizes key "${o}" must not contain surrounding whitespace.`);if(t&&!t.has(r))throw new Error(`BaseTable columnSizes contains unknown column id "${o}".`);jo(n,`columnSizes["${o}"]`);});}}a(py,"validateColumnSizes");function Ca(e){let t=e.ownerDocument.defaultView;return t?t.getComputedStyle(e).direction==="rtl":e.closest('[dir="rtl"]')!==null}a(Ca,"isRtl");function my(e,t){if(e.setPointerCapture)try{e.setPointerCapture(t);}catch(o){let n=e.ownerDocument.defaultView?.DOMException;if(n&&o instanceof n&&o.name==="NotFoundError")return;throw o}}a(my,"setPointerCaptureIfAvailable");var kc=he.createContext(null);function Go(e){let t=he.useContext(kc),o=Se(e);if(t){let r=e===void 0?t.appearance:o;return {...t,theme:e===void 0?t.theme:xe(r),appearance:r}}let n=xe(o);return {appearance:o,theme:n,layout:"native",setDraggingColumnId:a(()=>{},"setDraggingColumnId")}}a(Go,"useBaseTableContext");function wc(e){let t=false;return he.Children.forEach(e,o=>{if(t||!he.isValidElement(o))return;let n=o.props;if(n.layout==="split-scroll"){t=true;return}n.children&&(t=wc(n.children));}),t}a(wc,"hasSplitScrollTable");function es(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}a(es,"toCssSize");function gy(e,t){if(e!==void 0){if(typeof e=="number"){if(!Number.isFinite(e)||e<0)throw new Error(`BaseTable ${t} must be a finite non-negative number when numeric.`);return `${e}px`}if(e.trim().length===0)throw new Error(`BaseTable ${t} must not be an empty CSS size.`);return e}}a(gy,"validateTableCssSize");function ts(e,t,o){if(e!==void 0){if(typeof e=="number"){if(!Number.isFinite(e)||e<0)throw new Error(`BaseTable split-scroll column "${t}" has invalid ${o}. Expected a finite non-negative number.`);return `${e}px`}if(e.trim().length===0)throw new Error(`BaseTable split-scroll column "${t}" has an empty ${o} value.`);return e}}a(ts,"validateCssSize");function vc(e,t,o){if(!(e===void 0||typeof e!="number")){if(!Number.isFinite(e)||e<0)throw new Error(`BaseTable split-scroll column "${t}" has invalid ${o}. Expected a finite non-negative number.`);return e}}a(vc,"validateNumericSize");function fy(e,t){if(!e?.length)throw new Error('BaseTable layout="split-scroll" requires at least one column definition.');let o=new Set;return `${e.map((r,i)=>{let s=r.id.trim();if(!s)throw new Error(`BaseTable split-scroll column at index ${i} requires a non-empty id.`);if(o.has(s))throw new Error(`BaseTable layout="split-scroll" received duplicate column id "${s}".`);o.add(s);let l=t?.[s],d=vc(r.minWidth,s,"minWidth"),c=vc(r.maxWidth,s,"maxWidth");if(d!==void 0&&c!==void 0&&c<d)throw new Error(`BaseTable split-scroll column "${s}" has maxWidth smaller than minWidth.`);let u=ts(r.minWidth,s,"minWidth"),m=ts(r.maxWidth,s,"maxWidth"),p=l!==void 0?Vo(l,d,c):r.width,g=ts(p,s,"width");return g||`minmax(${u??"0px"}, ${m??"1fr"})`}).join(" ")} var(--base-table-split-scrollbar-gutter)`}a(fy,"buildSplitColumnTemplate");function Vo(e,t,o){let n=t??48,r=o??Number.POSITIVE_INFINITY;return Math.min(Math.max(e,n),r)}a(Vo,"clampWidth");function os(e,t,o){if(!e||t===o)return;let n=e.indexOf(t),r=e.indexOf(o);if(n<0||r<0)return;let i=[...e],[s]=i.splice(n,1);return i.splice(r,0,s),i}a(os,"getNextColumnOrder");function by(e){switch(e){case "asc":return "ascending";case "desc":return "descending";default:return}}a(by,"sortAriaValue");function hy(e){switch(e){case "center":return "center";case "right":return "flex-end";default:return "flex-start"}}a(hy,"getSplitHeadJustifyContent");function yy(e){switch(e){case "top":return "flex-start";case "bottom":return "flex-end";default:return "center"}}a(yy,"getSplitHeadAlignItems");function vy({direction:e,className:t}){return jsxRuntime.jsx("span",{"aria-hidden":"true",className:v(t,e==="desc"&&"rotate-180",(!e||e==="none")&&"opacity-45"),children:"\u25B2"})}a(vy,"SortIndicator");function xy(){return jsxRuntime.jsxs("span",{"aria-hidden":"true",className:"grid gap-0.5",children:[jsxRuntime.jsx("span",{className:"h-0.5 w-0.5 rounded-full bg-current"}),jsxRuntime.jsx("span",{className:"h-0.5 w-0.5 rounded-full bg-current"}),jsxRuntime.jsx("span",{className:"h-0.5 w-0.5 rounded-full bg-current"})]})}a(xy,"DragHandleIcon");var Cc=he.forwardRef(a(function({appearance:t,attachedFooter:o=false,children:n,className:r,classNames:i,style:s,...l},d){wo("attachedFooter",o);let c=Se(t),u=fe(),m=xe(c),g=wc(n)?{overflow:"hidden",scrollbarGutter:"auto"}:void 0;return jsxRuntime.jsx("div",{...u,...l,ref:d,"data-monkeys-component":"table-container","data-slot":"container","data-base-table-container":"","data-attached-footer":o?"":void 0,className:v(m.slots.tableContainer,o&&m.slots.tableContainerFooterAttached,i?.root,r),style:{...m.styles.tableContainer,...o?m.styles.tableContainerFooterAttached:void 0,...g,...s},children:n})},"BaseTableContainer")),Tc=he.forwardRef(a(function({appearance:t,className:o,classNames:n,style:r,layout:i="native",columns:s,bodyMaxHeight:l,bodyClassName:d,columnOrder:c,columnSizes:u,columnDragEnabled:m=false,columnResizeEnabled:p=false,onColumnOrderChange:g,onColumnSizeChange:b,...x},f){In("layout",i,["native","split-scroll"]),wo("columnDragEnabled",m),wo("columnResizeEnabled",p),ns("onColumnOrderChange",g),ns("onColumnSizeChange",b),jo(l,"bodyMaxHeight",{stringAllowed:true});let h=cy(s);uy(c,h),py(u,h);let k=Se(t),$=fe(),w=xe(k),[C,T]=he.useState(),S=he.useRef(null),P=he.useRef(null),E=i==="split-scroll",R=E?fy(s,u):void 0,W={appearance:k,theme:w,layout:i,columnTemplate:R,bodyMaxHeight:l,bodyClassName:d,splitHeaderRef:S,splitFooterRef:P,columnOrder:c,columnSizes:u,columnDragEnabled:m,columnResizeEnabled:p,onColumnOrderChange:g,onColumnSizeChange:b,draggingColumnId:C,setDraggingColumnId:T};return jsxRuntime.jsx(kc.Provider,{value:W,children:jsxRuntime.jsx("table",{...$,...x,ref:f,"data-monkeys-component":"table","data-slot":"root","data-base-table-layout":i,className:v(w.slots.tableRoot,E&&w.slots.tableSplitRoot,n?.root,o),style:{...w.styles.table,...E?w.styles.tableSplitRoot:void 0,...R?{"--base-table-column-template":R}:void 0,...r}})})},"BaseTable")),Sc=he.forwardRef(a(function({appearance:t,className:o,classNames:n,style:r,...i},s){let{layout:l,splitHeaderRef:d,theme:c}=Go(t),u=l==="split-scroll";return jsxRuntime.jsx("thead",{...i,ref:a(p=>{d&&(d.current=u?p:null),rs(s,p);},"setHeaderRef"),"data-slot":"header",className:v(c.slots.tableHeader,u&&c.slots.tableSplitHeader,n?.root,o),style:{...c.styles.tableHeader,...u?c.styles.tableSplitHeader:void 0,...r}})},"BaseTableHeader")),$c=he.forwardRef(a(function({appearance:t,className:o,classNames:n,onScroll:r,style:i,...s},l){let{bodyClassName:d,bodyMaxHeight:c,layout:u,splitFooterRef:m,splitHeaderRef:p,theme:g}=Go(t),b=u==="split-scroll";return jsxRuntime.jsx("tbody",{...s,ref:l,"data-slot":"body",onScroll:b?f=>{let h=f.currentTarget.scrollLeft;p?.current&&(p.current.scrollLeft=h),m?.current&&(m.current.scrollLeft=h),r?.(f);}:r,className:v(g.slots.tableBody,b&&g.slots.tableSplitBody,b&&d,n?.root,o),style:{...g.styles.tableBody,...b?g.styles.tableSplitBody:void 0,...b&&c!==void 0?{maxHeight:gy(c,"bodyMaxHeight")}:void 0,...i}})},"BaseTableBody"));he.forwardRef(a(function({appearance:t,className:o,classNames:n,style:r,...i},s){let{layout:l,splitFooterRef:d,theme:c}=Go(t),u=l==="split-scroll";return jsxRuntime.jsx("tfoot",{...i,ref:a(p=>{d&&(d.current=u?p:null),rs(s,p);},"setFooterRef"),"data-slot":"footer",className:v(c.slots.tableFooter,u&&c.slots.tableSplitFooter,n?.root,o),style:{...c.styles.tableFooter,...u?c.styles.tableSplitFooter:void 0,...r}})},"BaseTableFooter"));var as=he.forwardRef(a(function({interactive:t,selected:o,disabled:n,appearance:r,className:i,classNames:s,style:l,...d},c){wo("interactive",t),wo("selected",o),wo("disabled",n);let{layout:u,theme:m}=Go(r),p=u==="split-scroll";return jsxRuntime.jsx("tr",{...d,ref:c,"data-slot":"row","aria-disabled":n||void 0,"data-state":o?"selected":void 0,className:v(m.slots.tableRow,p&&m.slots.tableSplitRow,t&&!n&&m.slots.tableRowInteractive,o&&m.slots.tableRowSelected,n&&m.slots.tableRowDisabled,s?.root,i),style:{...m.styles.tableRow,...p?m.styles.tableSplitRow:void 0,...l}})},"BaseTableRow")),Pc=he.forwardRef(a(function({presentation:t,columnId:o,align:n,verticalAlign:r,icon:i,label:s,description:l,meta:d,actions:c,trailing:u,sortable:m,sortDirection:p="none",sortLabel:g,onSort:b,draggable:x,dragLabel:f,resizable:h,resizeLabel:k,width:$,minWidth:w,maxWidth:C,appearance:T,className:S,classNames:P,style:E,children:R,onDragOver:W,onDrop:B,...A},L){if(In("head presentation",t,["classic-data-grid"]),In("head align",n,["left","center","right"]),In("head verticalAlign",r,["top","middle","bottom"]),In("head sortDirection",p,["asc","desc","none"]),wo("head sortable",m),wo("head draggable",x),wo("head resizable",h),ns("head onSort",b),Ji("head sortLabel",g),Ji("head dragLabel",f),Ji("head resizeLabel",k),o!==void 0&&(typeof o!="string"||o.trim().length===0))throw new Error("BaseTable head columnId must be a non-empty string when provided.");if(jo($,"head width",{stringAllowed:true}),jo(w,"head minWidth"),jo(C,"head maxWidth"),w!==void 0&&C!==void 0&&w>C)throw new Error("BaseTable head minWidth cannot be greater than maxWidth.");let I=Go(T),{theme:K}=I,q=$t().table,_=I.layout==="split-scroll",Y=t==="classic-data-grid",M=n??(_?"center":"left"),z=r??"middle",Q=he.useRef(null),ce=he.useRef(()=>{}),[se,V]=he.useState(),J=a(j=>{Q.current=j,rs(L,j);},"setHeadRef"),O=o&&I.columnSizes?.[o]!==void 0?I.columnSizes[o]:$,F=!!(o&&x!==false&&(x||I.columnDragEnabled)&&I.columnOrder&&I.onColumnOrderChange),ne=!!(o&&h!==false&&(h||I.columnResizeEnabled)&&I.onColumnSizeChange);if(ne&&C!==void 0&&C<(w??48))throw new Error("BaseTable resizable head maxWidth cannot be smaller than its effective minWidth.");let ae=!!(m||b),me=by(p),Ce=H(s)?s:R,Z=H(Ce)||H(l),Re=g??(Z?void 0:q.sortColumn({columnId:o?.trim()||void 0})),Ge=F||H(i)||H(s)||H(l)||H(d)||H(c)||H(u)||ae,gt=Y?jsxRuntime.jsx("div",{className:v("flex h-full min-w-0 select-none items-center",M==="center"?"justify-center":M==="right"?"justify-end":"justify-start",F&&"cursor-grab active:cursor-grabbing"),...F?{draggable:true,role:"button",tabIndex:0,"aria-disabled":false,"aria-roledescription":"sortable",onKeyDown:a(j=>{if(!o||!I.columnOrder||j.key!=="ArrowLeft"&&j.key!=="ArrowRight")return;let ge=I.columnOrder.indexOf(o);if(ge<0)return;let Ne=Ca(j.currentTarget),He=j.key==="ArrowLeft"?-1:1,Ke=ge+(Ne?-He:He),Fe=I.columnOrder[Ke];if(!Fe)return;let Qe=os(I.columnOrder,o,Fe);Qe&&(j.preventDefault(),I.onColumnOrderChange?.(Qe,{columnId:o,targetColumnId:Fe}));},"onKeyDown"),onDragStart:a(j=>{j.stopPropagation(),I.setDraggingColumnId(o),j.dataTransfer.effectAllowed="move",j.dataTransfer.setData(Zi,o);},"onDragStart"),onDragEnd:a(j=>{j.stopPropagation(),I.setDraggingColumnId(void 0);},"onDragEnd")}:{},children:Ce}):Ge?jsxRuntime.jsxs("div",{className:v(K.slots.tableHeadContent,P?.content),children:[jsxRuntime.jsxs("div",{className:v(K.slots.tableHeadMain,P?.main),children:[F?jsxRuntime.jsx("button",{type:"button",draggable:true,title:f,"aria-label":f??q.dragColumn({columnId:o}),className:v(K.slots.tableHeadDragHandle,P?.dragHandle),onClick:j=>j.stopPropagation(),onKeyDown:j=>{if(!o||!I.columnOrder||j.key!=="ArrowLeft"&&j.key!=="ArrowRight")return;let ge=I.columnOrder.indexOf(o);if(ge<0)return;let Ne=Ca(j.currentTarget),He=j.key==="ArrowLeft"?-1:1,Ke=ge+(Ne?-He:He),Fe=I.columnOrder[Ke];if(!Fe)return;let Qe=os(I.columnOrder,o,Fe);Qe&&(j.preventDefault(),I.onColumnOrderChange?.(Qe,{columnId:o,targetColumnId:Fe}));},onDragStart:j=>{j.stopPropagation(),I.setDraggingColumnId(o),j.dataTransfer.effectAllowed="move",j.dataTransfer.setData(Zi,o);},onDragEnd:j=>{j.stopPropagation(),I.setDraggingColumnId(void 0);},children:jsxRuntime.jsx(xy,{})}):null,i?jsxRuntime.jsx("span",{className:v(K.slots.tableHeadIcon,P?.icon),children:i}):null,ae?jsxRuntime.jsxs("button",{type:"button",disabled:!b,title:g,"aria-label":Re,className:v(K.slots.tableHeadSortButton,P?.sortButton),onClick:j=>{j.stopPropagation(),b?.(o);},children:[jsxRuntime.jsxs("span",{className:v(K.slots.tableHeadText,P?.text),children:[H(Ce)?jsxRuntime.jsx("span",{className:v(K.slots.tableHeadLabel,P?.label),children:Ce}):null,H(l)?jsxRuntime.jsx("span",{className:v(K.slots.tableHeadDescription,P?.description),children:l}):null]}),jsxRuntime.jsx(vy,{direction:p,className:v(K.slots.tableHeadSortIcon,P?.sortIcon)})]}):jsxRuntime.jsxs("span",{className:v(K.slots.tableHeadText,P?.text),children:[H(Ce)?jsxRuntime.jsx("span",{className:v(K.slots.tableHeadLabel,P?.label),children:Ce}):null,H(l)?jsxRuntime.jsx("span",{className:v(K.slots.tableHeadDescription,P?.description),children:l}):null]})]}),H(d)||H(c)||H(u)?jsxRuntime.jsxs("div",{className:v(K.slots.tableHeadActions,P?.actions),children:[H(d)?jsxRuntime.jsx("span",{className:v(K.slots.tableHeadMeta,P?.meta),children:d}):null,c,u]}):null]}):R,oe=a(j=>{W?.(j),!(!F||!I.draggingColumnId||I.draggingColumnId===o)&&(j.preventDefault(),j.dataTransfer.dropEffect="move");},"handleDragOver"),De=a(j=>{if(B?.(j),!F||!o)return;let ge=I.draggingColumnId||j.dataTransfer.getData(Zi);if(!ge||ge===o)return;let Ne=os(I.columnOrder,ge,o);Ne&&(j.preventDefault(),I.onColumnOrderChange?.(Ne,{columnId:ge,targetColumnId:o})),I.setDraggingColumnId(void 0);},"handleDrop"),qe=a(j=>{if(!ne||!o||!I.onColumnSizeChange||j.button!==0&&j.pointerType!=="touch")return;j.preventDefault(),j.stopPropagation(),ce.current();let ge=j.clientX,Ne=ft??Q.current?.offsetWidth??w??48,He=Vo(Ne,w,C),Ke=j.pointerId,Fe=j.currentTarget,Qe=Fe.ownerDocument,qt=Ca(Fe),zt=a(St=>{if(St.pointerId!==Ke)return;let po=Vo(He+(qt?ge-St.clientX:St.clientX-ge),w,C);I.onColumnSizeChange?.(o,po,{columnId:o,previousWidth:He,minWidth:w,maxWidth:C});},"handlePointerMove"),co=a(St=>{St.pointerId===Ke&&ce.current();},"handleStop"),uo=a(St=>{St.pointerId===Ke&&ce.current();},"handleLostCapture");ce.current=()=>{Qe.removeEventListener("pointermove",zt),Qe.removeEventListener("pointerup",co),Qe.removeEventListener("pointercancel",co),Fe.removeEventListener("lostpointercapture",uo),Fe.hasPointerCapture?.(Ke)&&Fe.releasePointerCapture?.(Ke),ce.current=()=>{};},my(Fe,Ke),Qe.addEventListener("pointermove",zt),Qe.addEventListener("pointerup",co),Qe.addEventListener("pointercancel",co),Fe.addEventListener("lostpointercapture",uo);},"handleResizePointerDown"),ft=typeof O=="number"?Vo(O,w,C):se,Gt=ft??Vo(w??48,w,C),Po=a(j=>{if(!ne||!o||!I.onColumnSizeChange)return;let ge=Ca(j.currentTarget),Ne=ft??Vo(Q.current?.offsetWidth||w||48,w,C),He;j.key==="ArrowLeft"&&(He=Ne+(ge?wa:-wa)),j.key==="ArrowRight"&&(He=Ne+(ge?-wa:wa)),j.key==="Home"&&w!==void 0&&(He=w),j.key==="End"&&C!==void 0&&(He=C),He!==void 0&&(j.preventDefault(),j.stopPropagation(),I.onColumnSizeChange(o,Vo(He,w,C),{columnId:o,previousWidth:Ne,minWidth:w,maxWidth:C}));},"handleResizeKeyDown");return he.useEffect(()=>{if(typeof O=="number"){V(void 0);return}let j=Q.current?.getBoundingClientRect().width;if(j&&Number.isFinite(j)){let ge=Vo(j,w,C);V(Ne=>Ne===ge?Ne:ge);}},[O,w,C,ne]),he.useEffect(()=>(ne||ce.current(),()=>ce.current()),[ne,o,I.onColumnSizeChange]),jsxRuntime.jsxs("th",{...A,ref:J,"data-slot":"head","data-v2-header-drag-id":Y&&F?o:void 0,scope:A.scope??"col","aria-sort":me,className:v(K.slots.tableHead,_&&K.slots.tableSplitHead,M==="center"&&K.slots.tableCellAlignCenter,M==="right"&&K.slots.tableCellAlignRight,Y&&"!relative !h-9 !px-3 !align-middle !text-sm !font-medium !text-muted-foreground after:pointer-events-none after:absolute after:bottom-2 after:right-0 after:top-2 after:w-px after:bg-border/50 after:content-['']",P?.root,S),style:{...K.styles.tableHead,..._?K.styles.tableSplitHead:void 0,width:_?void 0:es(O),minWidth:_?void 0:es(w),maxWidth:_?void 0:es(C),..._?{alignItems:yy(z),justifyContent:hy(M),textAlign:M}:r?{verticalAlign:r}:void 0,...E},onDragOver:oe,onDrop:De,children:[gt,ne&&Y?jsxRuntime.jsx("div",{"data-column-resize-handle":"true",className:"absolute right-0 top-0 z-20 h-full w-2 cursor-col-resize touch-none select-none hover:bg-muted",onPointerDown:qe}):ne?jsxRuntime.jsx("button",{type:"button",role:"separator","aria-orientation":"vertical","aria-valuenow":Gt,"aria-valuemin":w??48,"aria-valuemax":C,"aria-valuetext":`${Gt}px`,title:k,"aria-label":k??q.resizeColumn({columnId:o}),className:v(K.slots.tableHeadResizeHandle,P?.resizeHandle),onClick:j=>j.stopPropagation(),onKeyDown:Po,onPointerDown:qe}):null]})},"BaseTableHead")),Rc=he.forwardRef(a(function({align:t="left",appearance:o,className:n,classNames:r,style:i,...s},l){In("cell align",t,["left","center","right"]);let{layout:d,theme:c}=Go(o),u=d==="split-scroll";return jsxRuntime.jsx("td",{...s,ref:l,"data-slot":"cell",className:v(c.slots.tableCell,u&&c.slots.tableSplitCell,t==="center"&&c.slots.tableCellAlignCenter,t==="right"&&c.slots.tableCellAlignRight,r?.root,n),style:{...c.styles.tableCell,...u?c.styles.tableSplitCell:void 0,...i}})},"BaseTableCell"));he.forwardRef(a(function({appearance:t,className:o,classNames:n,style:r,...i},s){let{theme:l}=Go(t);return jsxRuntime.jsx("caption",{...i,ref:s,"data-slot":"caption",className:v(l.slots.tableCaption,n?.root,o),style:{...l.styles.tableCaption,...r}})},"BaseTableCaption"));var Mc=he.forwardRef(a(function({colSpan:t,icon:o,title:n,description:r,actions:i,children:s,appearance:l,className:d,classNames:c,style:u,...m},p){if(!Number.isSafeInteger(t)||t<1)throw new Error("BaseTable empty colSpan must be a positive safe integer.");let{layout:g,theme:b}=Go(l),x=g==="split-scroll",f=H(o)||H(n)||H(r)||H(i);return jsxRuntime.jsx("tr",{...m,ref:p,"data-slot":"empty-row",className:v(b.slots.tableEmptyRow,x&&b.slots.tableSplitRow,c?.row,d),style:{...b.styles.tableEmpty,...x?b.styles.tableSplitRow:void 0,...u},children:jsxRuntime.jsx("td",{colSpan:t,"data-slot":"empty-cell",className:v(b.slots.tableEmptyCell,x&&b.slots.tableSplitCell,c?.cell),style:x?{gridColumn:"1 / -1"}:void 0,children:f?jsxRuntime.jsxs("div",{className:v(b.slots.tableEmptyContent,c?.content),children:[H(o)?jsxRuntime.jsx("div",{className:v(b.slots.tableEmptyIcon,c?.icon),children:o}):null,H(n)?jsxRuntime.jsx("div",{className:v(b.slots.tableEmptyTitle,c?.title),children:n}):null,H(r)?jsxRuntime.jsx("div",{className:v(b.slots.tableEmptyDescription,c?.description),children:r}):null,H(i)?jsxRuntime.jsx("div",{className:v(b.slots.tableEmptyActions,c?.actions),children:i}):null]}):s})})},"BaseTableEmpty"));function vt(...e){return e.filter(Boolean).join(" ")}a(vt,"cn");var Ty={variant:"default",density:"default"},Sy=he.createContext(Ty);function $y(e,t={}){return {variant:t.variant??e.variant,density:t.density??(t.variant==="trend"?"compact":e.density)}}a($y,"resolveAgentWorkbenchAppearance");function br(e={}){return $y(he.useContext(Sy),e)}a(br,"useAgentWorkbenchAppearance");var Py={page:"bg-background text-foreground",panel:"bg-card text-card-foreground",elevated:"border border-border bg-popover text-popover-foreground shadow-sm",subtle:"bg-muted/40 text-foreground",overlay:"border border-border bg-popover text-popover-foreground shadow-lg"};he.forwardRef(a(function({level:t="panel",variant:o,density:n,className:r,children:i,...s},l){let d=br({variant:o,density:n});return jsxRuntime.jsx("div",{...s,ref:l,"data-agent-workbench-surface":t,"data-agent-workbench-variant":d.variant,"data-agent-workbench-density":d.density,className:vt(Py[t],r),children:i})},"AgentWorkbenchSurface"));var ov={audio:lucideReact.Music2,canvas:lucideReact.Shapes,data:lucideReact.Database,file:lucideReact.File,html:lucideReact.FileCode2,image:lucideReact.FileImage,markdown:lucideReact.FileText,pdf:lucideReact.FileText,presentation:lucideReact.Presentation,video:lucideReact.Film,web:lucideReact.Globe2};function nv({artifact:e,selected:t,onClose:o,onCloseOthers:n,onCloseRight:r,onCloseAll:i}){let s=$t().agentWorkbench.artifactWorkspace,l=ov[e.kind],{attributes:d,listeners:c,setNodeRef:u,setActivatorNodeRef:m,transform:p,transition:g,isDragging:b}=sortable.useSortable({id:e.id}),{role:x,tabIndex:f,...h}=d,k=a(T=>{u(T),m(T);},"setTabRef"),$=a(T=>{T.button===1&&(T.preventDefault(),o());},"handleMouseDown"),w=a(T=>{!(T.target instanceof Element)||!T.target.closest("[data-close-artifact-tab]")||(T.preventDefault(),o());},"handleClick"),C=a(T=>{c?.onKeyDown?.(T),!(T.key!=="Delete"&&T.key!=="Backspace")&&(T.preventDefault(),o());},"handleKeyDown");return jsxRuntime.jsxs(ud,{openDelay:500,closeDelay:80,children:[jsxRuntime.jsx(Gi,{content:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(En,{icon:jsxRuntime.jsx(lucideReact.X,{}),label:s.close,onSelect:o}),jsxRuntime.jsx(En,{icon:jsxRuntime.jsx(lucideReact.X,{}),label:s.closeOthers,disabled:!n,onSelect:n}),jsxRuntime.jsx(En,{icon:jsxRuntime.jsx(lucideReact.X,{}),label:s.closeRight,disabled:!r,onSelect:r}),jsxRuntime.jsx(En,{icon:jsxRuntime.jsx(lucideReact.X,{}),label:s.closeAll,onSelect:i})]}),children:jsxRuntime.jsx(pd,{asChild:true,children:jsxRuntime.jsx(ya,{asChild:true,children:jsxRuntime.jsxs(ro__namespace.Trigger,{ref:k,value:e.id,style:{transform:utilities.CSS.Transform.toString(p),transition:g},className:vt("agent-workbench-artifact-tab relative flex max-w-56 shrink-0 items-center outline-hidden focus-visible:ring-2 focus-visible:ring-ring",t?"agent-workbench-artifact-tab-active":"agent-workbench-artifact-tab-inactive",b&&"opacity-60"),onMouseDown:$,onClick:w,...h,...c,onKeyDown:C,children:[jsxRuntime.jsx(l,{className:"agent-workbench-artifact-icon shrink-0","aria-hidden":"true"}),jsxRuntime.jsx("span",{className:"truncate",children:e.name}),jsxRuntime.jsx("span",{className:"agent-workbench-artifact-tab-close absolute","data-close-artifact-tab":"",title:s.closeTab({name:e.name}),"aria-hidden":"true",children:jsxRuntime.jsx(lucideReact.X,{className:"agent-workbench-artifact-close-icon","aria-hidden":"true"})})]})})})}),!b&&jsxRuntime.jsxs(wi,{side:"bottom",align:"start",className:"agent-workbench-artifact-tab-details",children:[jsxRuntime.jsx("div",{className:"agent-workbench-artifact-tab-details-name",children:e.name}),e.location&&e.location!==e.name?jsxRuntime.jsx("div",{className:"agent-workbench-artifact-tab-details-location",children:e.location}):null,jsxRuntime.jsx("div",{className:"agent-workbench-artifact-tab-details-kind",children:e.kind==="file"&&/\.([a-z0-9]{1,8})$/i.test(e.name)?e.name.split(".").pop().toUpperCase():s.kinds[e.kind]})]})]})}a(nv,"SortableArtifactTab");function Nc({artifacts:e,activeArtifactId:t,className:o,allowExternalOpen:n=true,allowDownload:r=true,maximized:i,tabBar:s="inset",leadingTab:l,retainMountedArtifactIds:d=[],variant:c,density:u,renderArtifact:m,onIntent:p}){let g=br({variant:c,density:u}),b=g.density==="compact",x=i!==void 0,f=$t().agentWorkbench.artifactWorkspace,h=!!(l&&t===l.id),k=h?void 0:e.find(S=>S.id===t)??e[0],$=core.useSensors(core.useSensor(core.PointerSensor,{activationConstraint:{distance:5}}),core.useSensor(core.KeyboardSensor,{coordinateGetter:sortable.sortableKeyboardCoordinates}));if(!k&&!l)return null;let w=h?l.id:k?.id??l.id,C=a(({active:S,over:P})=>{!P||S.id===P.id||p?.({type:"reorder",artifactId:String(S.id),overArtifactId:String(P.id)});},"handleDragEnd"),T=k&&(k.status==="loading"?jsxRuntime.jsx("div",{className:"flex size-full min-h-48 items-center justify-center p-6 text-center",role:"status",children:jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-col items-center gap-3 text-sm text-muted-foreground",children:[jsxRuntime.jsx(lucideReact.Loader2,{className:"size-5 animate-spin","aria-hidden":"true"}),jsxRuntime.jsx("span",{children:f.loading})]})}):k.status==="error"?jsxRuntime.jsx("div",{className:"flex size-full min-h-48 items-center justify-center p-6 text-center",role:"alert",children:jsxRuntime.jsxs("div",{className:"flex min-w-0 max-w-sm flex-col items-center gap-3",children:[jsxRuntime.jsx("span",{className:"flex size-10 items-center justify-center rounded-full bg-destructive/10 text-destructive-text",children:jsxRuntime.jsx(lucideReact.TriangleAlert,{className:"size-5","aria-hidden":"true"})}),jsxRuntime.jsxs("div",{className:"min-w-0",children:[jsxRuntime.jsx("div",{className:"break-words text-sm font-medium text-foreground [overflow-wrap:anywhere]",children:f.failed}),k.description?jsxRuntime.jsx("p",{className:"mt-1 max-h-24 overflow-auto whitespace-pre-wrap break-words text-sm text-muted-foreground [overflow-wrap:anywhere]",children:k.description}):null]}),p?jsxRuntime.jsxs(ie,{type:"button",variant:"outline",size:"sm",className:"gap-2",onClick:()=>p({type:"retry",artifactId:k.id}),children:[jsxRuntime.jsx(lucideReact.RefreshCw,{className:"size-4","aria-hidden":"true"}),f.retry]}):null]})}):m(k));return jsxRuntime.jsxs(ro__namespace.Root,{value:w,onValueChange:S=>p?.({type:"select",artifactId:S}),"data-agent-workbench-variant":g.variant,"data-agent-workbench-density":g.density,"data-agent-workbench-status":k?.status,"data-tab-bar":s,"data-agent-workbench-surface":"panel",className:vt("flex size-full min-h-0 min-w-0 flex-col bg-card text-card-foreground",o),orientation:"horizontal",children:[jsxRuntime.jsxs("div",{className:vt("agent-workbench-artifact-header relative z-10 flex shrink-0 items-center",b&&"agent-workbench-artifact-header-compact"),children:[jsxRuntime.jsx(core.DndContext,{sensors:$,collisionDetection:core.closestCenter,onDragEnd:C,children:jsxRuntime.jsx(sortable.SortableContext,{items:e.map(S=>S.id),strategy:sortable.horizontalListSortingStrategy,children:jsxRuntime.jsxs(ro__namespace.List,{className:"agent-workbench-artifact-tabs flex min-w-0 flex-1 items-center overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden","data-agent-workbench-artifact-tabs":"true","aria-label":f.tabs,children:[l&&jsxRuntime.jsxs(ro__namespace.Trigger,{value:l.id,className:vt("agent-workbench-artifact-tab agent-workbench-leading-tab relative flex max-w-56 shrink-0 items-center outline-hidden focus-visible:ring-2 focus-visible:ring-ring",w===l.id?"agent-workbench-artifact-tab-active":"agent-workbench-artifact-tab-inactive"),children:[l.icon,jsxRuntime.jsx("span",{className:"truncate",children:l.label})]}),e.map((S,P)=>{let E=e.filter(B=>B.id!==S.id),R=e.slice(P+1),W=a(B=>p?.({type:"close-many",artifactIds:B.map(A=>A.id)}),"closeMany");return jsxRuntime.jsx(nv,{artifact:S,selected:S.id===w,onClose:()=>p?.({type:"close",artifactId:S.id}),onCloseOthers:E.length?()=>W(E):void 0,onCloseRight:R.length?()=>W(R):void 0,onCloseAll:()=>p?.({type:"close-workspace"})},S.id)})]})})}),jsxRuntime.jsxs("div",{className:"agent-workbench-artifact-actions relative z-20 flex shrink-0 items-center",children:[k?.url?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r&&jsxRuntime.jsx(ie,{type:"button",variant:"ghost",size:"icon",className:"agent-workbench-artifact-action shrink-0","aria-label":f.download({name:k.name}),onClick:()=>p?.({type:"download",artifactId:k.id}),children:jsxRuntime.jsx(lucideReact.Download,{className:"agent-workbench-artifact-icon","aria-hidden":"true"})}),n&&jsxRuntime.jsx(ie,{type:"button",variant:"ghost",size:"icon",className:"agent-workbench-artifact-action shrink-0","aria-label":f.openExternal({name:k.name}),onClick:()=>p?.({type:"open-external",artifactId:k.id}),children:jsxRuntime.jsx(lucideReact.ExternalLink,{className:"agent-workbench-artifact-icon","aria-hidden":"true"})})]}):null,x&&jsxRuntime.jsx(ie,{type:"button",variant:"ghost",size:"icon",className:"agent-workbench-artifact-action shrink-0","aria-label":i?f.restore:f.maximize,title:i?f.restore:f.maximize,"aria-pressed":i,onClick:()=>p?.({type:"toggle-maximize"}),children:i?jsxRuntime.jsx(lucideReact.Minimize2,{className:"agent-workbench-artifact-icon","aria-hidden":"true"}):jsxRuntime.jsx(lucideReact.Maximize2,{className:"agent-workbench-artifact-icon","aria-hidden":"true"})}),jsxRuntime.jsx(ie,{type:"button",variant:"ghost",size:"icon",className:"agent-workbench-artifact-action shrink-0","aria-label":x?f.collapse:f.closeWorkspace,title:x?f.collapse:void 0,onClick:()=>p?.({type:x?"collapse":"close-workspace"}),children:jsxRuntime.jsx(lucideReact.PanelRightClose,{className:"agent-workbench-artifact-icon","aria-hidden":"true"})})]})]}),jsxRuntime.jsxs("div",{className:"min-h-0 min-w-0 flex-1 overflow-hidden",children:[l&&jsxRuntime.jsx(ro__namespace.Content,{value:l.id,forceMount:true,hidden:w!==l.id,className:"size-full min-h-0 min-w-0 outline-hidden",children:l.content}),e.map(S=>jsxRuntime.jsx(ro__namespace.Content,{value:S.id,forceMount:d.includes(S.id)?true:void 0,hidden:S.id!==w,className:"size-full min-h-0 min-w-0 outline-hidden focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",children:S.id===w?T:d.includes(S.id)?m(S):null},S.id))]})]})}a(Nc,"AgentWorkbenchArtifactWorkspace");function is({hostRef:e,children:t}){return jsxRuntime.jsx("div",{ref:e,className:"relative h-full min-h-0",children:t})}a(is,"AgentConversationPreview");function av({hostRef:e}){return jsxRuntime.jsx("div",{ref:e,className:"h-full min-h-0"})}a(av,"AgentConversationAnchor");function Ic({workspace:e,conversation:t}){return jsxRuntime.jsx("div",{className:"flex h-full min-h-0 flex-col",children:jsxRuntime.jsx(Nc,{...e,className:"artifact-preview-workspace",leadingTab:t?{...t,content:t.hostRef?jsxRuntime.jsx(av,{hostRef:t.hostRef}):t.content,icon:jsxRuntime.jsx(lucideReact.MessageCircle,{className:"agent-workbench-artifact-icon","aria-hidden":"true"})}:void 0})})}a(Ic,"AgentPreviewWorkspace");function Dc({name:e,labels:t,onOpen:o,onDownload:n,onError:r}){let[i,s]=he.useState(false),l=he.useRef(false),d=a(async()=>{if(!(!n||l.current)){l.current=true,s(true);try{await n();}catch{r?.(t.downloadFailed);}finally{l.current=false,s(false);}}},"download"),c="text-primary hover:bg-muted h-auto gap-1 px-2 py-1 text-xs disabled:cursor-wait disabled:opacity-60";return jsxRuntime.jsx("div",{className:"not-prose border-border/70 bg-card text-card-foreground my-3 flex w-full max-w-[640px] flex-col overflow-hidden rounded-xl border shadow-sm","data-agent-inline-asset":"file",children:jsxRuntime.jsxs("div",{className:"border-border/70 flex min-w-0 items-center gap-2 border-t px-3 py-2",children:[jsxRuntime.jsx(lucideReact.FileIcon,{className:"text-muted-foreground size-4 shrink-0","aria-hidden":"true"}),jsxRuntime.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",title:e,children:e}),jsxRuntime.jsxs(ie,{type:"button",variant:"ghost","data-agent-asset-link":"true",className:c,"aria-label":`${t.open} ${e}`,onClick:o,disabled:!o,children:[jsxRuntime.jsx(lucideReact.PanelRightOpenIcon,{className:"size-3.5","aria-hidden":"true"}),t.open]}),jsxRuntime.jsxs(ie,{type:"button",variant:"ghost","data-agent-asset-link":"true",className:c,"aria-label":`${t.download} ${e}`,disabled:!n||i,onClick:()=>{d();},children:[i?jsxRuntime.jsx(lucideReact.Loader2Icon,{className:"size-3.5 animate-spin","aria-hidden":"true"}):jsxRuntime.jsx(lucideReact.DownloadIcon,{className:"size-3.5","aria-hidden":"true"}),t.download]})]})})}a(Dc,"AgentFileCard");function Lc({response:e,skippedLabel:t}){return jsxRuntime.jsx("div",{className:"flex flex-col gap-4","data-question-answer":e.questionId,children:e.answers.map((o,n)=>jsxRuntime.jsxs("div",{className:"space-y-1 break-words whitespace-pre-wrap",children:[jsxRuntime.jsx("p",{className:"agent-question-answer-title text-sm font-normal","data-question-title":true,children:o.question}),jsxRuntime.jsx("p",{className:"agent-question-answer-value font-medium","data-question-answer-text":true,children:e.cancelled?t:o.answer})]},n))})}a(Lc,"AgentQuestionAnswer");var hv={recommended:"Recommended",send:"Send answer",sending:"Sending",answerPlaceholder:"Your answer",autoSendIn:"Sending recommended answers in {seconds}s",sent:"Answer sent",error:"Answer could not be sent",pending:"Answer is being processed",cancel:"Cancel question",cancelling:"Cancelling",cancelled:"Question cancelled"};function zc({questions:e,mode:t="blocking",deadlineAt:o,submitted:n=false,cancelled:r=false,pending:i=false,externalError:s=false,locked:l=false,initialAnswers:d,labels:c,onSubmitted:u,onCancelled:m}){let p=Ue(),g=Ot(hv,c),[b,x]=he.useState(()=>d??{}),[f,h]=he.useState(0),[k,$]=he.useState(0),w=he.useRef(null),C=he.useRef(false),T=Math.min(k,Math.max(0,e.length-1)),S=e[T],[P,E]=he.useState(()=>r?"cancelled":n?"submitted":i?"submitting":s?"error":"idle"),R=he.useRef(b),W=he.useRef(false),B=he.useRef(u),A=he.useRef(m);R.current=b,B.current=u,A.current=m;let L=P==="submitted"||P==="cancelled",I=P==="submitting"||P==="cancelling",K=l||I||L,_=!!(t==="asynchronous"&&e.length>0&&e.every(V=>V.options?.length)&&o&&Number.isFinite(Date.parse(o))),Y=e.length>0&&e.every(V=>!!b[V.id]?.trim()),M=T<e.length-1,z=!K&&(M?!!b[S.id]?.trim():Y),Q=he.useCallback(async(V,J=false)=>{if(!(W.current||l||i||n||r||L)&&!(J&&!A.current)){W.current=true,E(J?"cancelling":"submitting");try{J?await A.current():await B.current(V),E(J?"cancelled":"submitted");}catch{E("error");}finally{W.current=false;}}},[l,i,n,r,L]),ce=a((V=false)=>{z&&(M?(C.current=V,$(T+1)):Q(R.current));},"advanceOrSubmit");he.useEffect(()=>{if(!C.current)return;C.current=false;let V=w.current;(V?.querySelector("input:not(:disabled)")??V?.querySelector('[role="radio"]:not(:disabled)'))?.focus();},[T]),he.useEffect(()=>{if(!_||!o||L)return;let V=Date.parse(o),J=a(()=>{let F=Math.max(0,V-Date.now());h(Math.ceil(F/1e3));},"update"),O=setInterval(J,250);return J(),()=>clearInterval(O)},[_,o,L]),he.useEffect(()=>{d&&(R.current=d,x(d));},[d]),he.useEffect(()=>{E(r?"cancelled":n?"submitted":i?"submitting":s?"error":V=>["submitting","submitted","cancelling","cancelled"].includes(V)?"idle":V);},[n,r,i,s]);let se=a((V,J)=>{K||(x(O=>{let F={...O,[V]:J};return R.current=F,F}),P==="error"&&E("idle"));},"updateAnswer");return e.length?jsxRuntime.jsx(ee,{children:jsxRuntime.jsxs("section",{className:"bui-question-card w-full max-w-95 overflow-hidden rounded-card shadow-card","aria-label":p("questionPanel"),children:[jsxRuntime.jsxs("header",{className:"bui-question-header flex items-center justify-between gap-2 px-4 pt-3",children:[jsxRuntime.jsxs("span",{className:"flex items-center gap-2 text-sm",children:[jsxRuntime.jsx(lucideReact.MessageCircleQuestion,{size:16,"aria-hidden":"true"}),p("questionPanel")]}),e.length>1&&jsxRuntime.jsxs("nav",{className:"flex items-center gap-2","aria-label":p("questionNavigation"),children:[jsxRuntime.jsx(Te,{type:"button",variant:"quiet",size:"sm","aria-label":p("Previous question"),disabled:T===0||I,onClick:()=>$(T-1),children:jsxRuntime.jsx(lucideReact.ChevronLeft,{size:16,"aria-hidden":"true"})}),jsxRuntime.jsx("span",{className:"text-xs","aria-live":"polite",children:p("questionPosition",{current:T+1,total:e.length})}),jsxRuntime.jsx(Te,{type:"button",variant:"quiet",size:"sm","aria-label":p("Next question"),disabled:T===e.length-1||I,onClick:()=>$(T+1),children:jsxRuntime.jsx(lucideReact.ChevronRight,{size:16,"aria-hidden":"true"})})]})]}),jsxRuntime.jsx("div",{className:"primitive-card-pad flex flex-col gap-4",children:[S].map(V=>{let J=V.options??[],O=V.allowCustom!==false||J.length===0;return jsxRuntime.jsxs("fieldset",{ref:w,className:"min-w-0",children:[jsxRuntime.jsx("legend",{className:"bui-question-title mb-2 text-[14px] font-medium",children:V.title}),jsxRuntime.jsx("div",{className:"flex flex-col gap-1",role:"radiogroup","aria-label":V.title,children:J.map((F,ne)=>{let ae=b[V.id]===F;return jsxRuntime.jsxs(Te,{type:"button",variant:"quiet",size:"sm",role:"radio","aria-checked":ae,disabled:K,onClick:()=>se(V.id,F),className:"bui-question-option flex h-auto min-h-9 w-full justify-start gap-2 rounded-control px-2 py-1 text-left text-sm transition-colors disabled:opacity-60",children:[jsxRuntime.jsx("span",{className:"bui-question-option-marker flex size-4 shrink-0 items-center justify-center rounded-full","data-selected":ae?"true":void 0,children:ae?jsxRuntime.jsx("span",{className:"bui-question-option-mark size-1.5 rounded-full"}):null}),jsxRuntime.jsx("span",{className:"bui-question-option-label min-w-0 flex-1 break-words",children:F}),t==="asynchronous"&&ne===0&&jsxRuntime.jsx("span",{className:"bui-question-recommended shrink-0 rounded-control px-1.5 py-0.5 text-[11px] font-medium",children:g.recommended})]},`${V.id}:${ne}`)})}),O&&jsxRuntime.jsx(ho,{unstyled:true,type:V.customInputType??"text","aria-label":V.title,placeholder:p(g.answerPlaceholder),disabled:K,value:J.includes(b[V.id])?"":b[V.id]??"",onChange:F=>se(V.id,F.target.value),onKeyDown:F=>{F.key!=="Enter"||F.nativeEvent.isComposing||F.keyCode===229||F.repeat||F.shiftKey||F.ctrlKey||F.metaKey||F.altKey||(F.preventDefault(),F.stopPropagation(),ce(true));},className:"bui-question-custom-answer mt-2 min-h-9 w-full rounded-control px-2.5 text-sm outline-none focus-visible:ring-2"})]},V.id)})}),jsxRuntime.jsxs("div",{className:"primitive-card-footer flex flex-wrap items-center justify-between gap-2",children:[jsxRuntime.jsx("div",{className:"bui-question-status min-h-5 text-[12px]","data-error":P==="error"?"true":void 0,role:P==="error"?"alert":"status","aria-live":"polite",children:P==="cancelled"?g.cancelled:P==="cancelling"?g.cancelling:P==="submitted"?g.sent:P==="submitting"?g.pending:P==="error"?g.error:_?g.autoSendIn.replace("{seconds}",String(f)):""}),!L&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[m&&jsxRuntime.jsx(Te,{size:"sm",variant:"quiet",disabled:l||I,onClick:()=>{Q(R.current,true);},children:g.cancel}),jsxRuntime.jsx(Te,{type:"button",size:"sm",variant:"accent",disabled:!z,onClick:()=>ce(),children:P==="submitting"?g.sending:T<e.length-1?p("Next question"):g.send})]})]})]})}):null}a(zc,"BUIQuestionCard");function Ra({docked:e,label:t,description:o,error:n,card:r,locale:i}){return jsxRuntime.jsx(gn,{locale:i,children:jsxRuntime.jsxs("section",{className:"agent-question-card","data-docked":e||void 0,"aria-label":t,children:[o&&jsxRuntime.jsx("p",{className:"text-muted-foreground mb-2 text-xs",children:o}),n&&jsxRuntime.jsx("p",{role:"alert",className:"text-destructive-text mb-2 text-sm",children:n}),r&&jsxRuntime.jsx(zc,{...r})]})})}a(Ra,"AgentQuestionState");function Sv({cards:e,featured:t,renderMarkdown:o,labels:n}){let r=he.useRef(null),[i,s]=he.useState({start:true,end:true});he.useEffect(()=>{let d=r.current;if(!d)return;let c=a(()=>s({start:d.scrollLeft<=2,end:d.scrollLeft+d.clientWidth>=d.scrollWidth-2}),"update"),u=new ResizeObserver(c);return u.observe(d),d.addEventListener("scroll",c,{passive:true}),c(),()=>{u.disconnect(),d.removeEventListener("scroll",c);}},[e.length,t]);let l=a(d=>{let c=r.current;if(!c)return;let u=c.firstElementChild?.getBoundingClientRect().width??c.clientWidth;c.scrollBy({left:d*(u+16),behavior:window.matchMedia("(prefers-reduced-motion: reduce)").matches?"instant":"smooth"});},"move");return jsxRuntime.jsxs("section",{className:"report-product-carousel","aria-label":n.products,children:[jsxRuntime.jsxs("div",{className:"report-product-controls",children:[jsxRuntime.jsx("span",{children:n.count(e.length)}),e.length>1&&jsxRuntime.jsxs("div",{className:"flex gap-1",children:[jsxRuntime.jsx(ie,{type:"button",variant:"outline",size:"icon",className:"!h-8 !w-8 !p-0","aria-label":n.previous,disabled:i.start,onClick:()=>l(-1),children:jsxRuntime.jsx(lucideReact.ChevronLeft,{size:16})}),jsxRuntime.jsx(ie,{type:"button",variant:"outline",size:"icon",className:"!h-8 !w-8 !p-0","aria-label":n.next,disabled:i.end,onClick:()=>l(1),children:jsxRuntime.jsx(lucideReact.ChevronRight,{size:16})})]})]}),jsxRuntime.jsx("div",{ref:r,className:"report-product-track","data-featured":t,tabIndex:0,role:"group","aria-label":n.scroll,onKeyDown:d=>{d.target!==d.currentTarget||!["ArrowLeft","ArrowRight"].includes(d.key)||(d.preventDefault(),l(d.key==="ArrowRight"?1:-1));},children:e.map((d,c)=>jsxRuntime.jsxs("article",{className:"report-product-card",children:[jsxRuntime.jsx("div",{className:"report-product-media",children:d.images.map((u,m)=>jsxRuntime.jsx("div",{children:o(u)},m))}),jsxRuntime.jsxs("div",{className:"report-product-details",children:[d.badge&&jsxRuntime.jsx("span",{className:"report-product-badge",children:d.badge}),jsxRuntime.jsx("div",{className:"report-product-title",children:o("### "+d.title)}),d.subtitle&&jsxRuntime.jsx("div",{className:"report-product-subtitle",children:o(d.subtitle)}),(d.elements.length>0||d.body)&&jsxRuntime.jsxs("details",{className:"report-product-expanded",children:[jsxRuntime.jsx("summary",{children:d.elements.length>0?n.elements:n.details}),jsxRuntime.jsxs("div",{className:"report-product-expanded-content",children:[d.elements.length>0&&jsxRuntime.jsx("dl",{className:"report-product-elements",children:d.elements.map((u,m)=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("dt",{children:[jsxRuntime.jsxs("span",{children:[String(m+1).padStart(2,"0")," /"," "]}),u.label]}),jsxRuntime.jsx("dd",{children:o(u.value)})]},u.label))}),d.body&&jsxRuntime.jsx("div",{className:"report-product-notes",children:o(d.body)})]})]})]})]},c))})]})}a(Sv,"ProductCarousel");function Hc({markdown:e,blocks:t,definitions:o,labels:n,resources:r}){let i={blocks:t,definitions:o},s=a(u=>jsxRuntime.jsx(un,{text:u,resources:r}),"renderMarkdown"),[l,d]=he.useState(false);if(!i.blocks.some(u=>u.type==="cards"))return s(e);let c=a(u=>s(i.definitions?u+`
|
|
127
127
|
|
|
128
|
-
`+i.definitions:u),"render");return jsxRuntime.jsxs("div",{className:"report-product-document",children:[jsxRuntime.jsxs("div",{className:"report-product-view-toggle",role:"group","aria-label":n.view,children:[jsxRuntime.jsxs(ie,{type:"button",size:"sm",variant:l?"ghost":"outline","aria-pressed":!l,onClick:()=>d(false),children:[jsxRuntime.jsx(lucideReact.LayoutGrid,{size:14}),n.cards]}),jsxRuntime.jsxs(ie,{type:"button",size:"sm",variant:l?"outline":"ghost","aria-pressed":l,onClick:()=>d(true),children:[jsxRuntime.jsx(lucideReact.AlignLeft,{size:14}),n.plain]})]}),l?s(e):i.blocks.map((u,m)=>u.type==="cards"?jsxRuntime.jsx(
|
|
129
|
-
leading-none align-[-1px] ${{neutral:"bg-inset text-ink-2",accent:"bg-accent-tint text-accent-ink",orange:"bg-orange-tint text-orange"}[t]} ${o}`,children:e})})}a(Fc,"BUIChip");function _c({resourceAccess:e,...t}){return e?jsxRuntime.jsx(Sv,{...t,access:e}):jsxRuntime.jsx(Uc,{...t})}a(_c,"AgentMessageContent");function Sv({access:e,...t}){let o=zo(e);return jsxRuntime.jsx(Uc,{...t,report:t.report&&{...t.report,resources:o},streaming:t.streaming&&{...t.streaming,resources:o}})}a(Sv,"ResourceMessage");function Uc({role:e,body:t,response:o,skippedLabel:n,report:r,file:i,attachments:s,attachmentsLabel:l,streaming:d}){return o?jsxRuntime.jsx(Lc,{response:o,skippedLabel:n}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r&&jsxRuntime.jsx(Hc,{...r}),i&&jsxRuntime.jsx(Dc,{...i}),s?.length?jsxRuntime.jsx("div",{className:"flex min-w-0 flex-wrap gap-2","aria-label":l,children:s.map((c,u)=>jsxRuntime.jsx(Fc,{className:"break-all whitespace-normal",children:c},`${u}:${c}`))}):null,e==="assistant"?d&&jsxRuntime.jsx(Mn,{...d}):jsxRuntime.jsx("p",{className:"break-words whitespace-pre-wrap",children:t})]})}a(Uc,"MessageContent");function Lv(e){let t=Math.max(0,Math.floor(e/1e3)),o=Math.floor(t/3600),n=Math.floor(t%3600/60),r=t%60;return o>0?n>0?`${o}h ${n}m`:`${o}h`:n===0?`${r}s`:`${n}m ${r}s`}a(Lv,"formatDuration");function ds(e){return e==="queued"||e==="running"||e==="waiting_approval"}a(ds,"isActive");function Yc({status:e,children:t,durationMs:o,completedCount:n,totalCount:r,open:i,defaultOpen:s,onOpenChange:l,className:d,contentClassName:c,label:u,title:m,createdAt:p,showStatusIcon:g=true,variant:b,density:x}){let f=br({variant:b,density:x}),y=f.density==="compact",k=$t().agentWorkbench,S=i!==void 0,[w,C]=ye.useState(s??ds(e)),T=ye.useRef(false),$=ye.useRef(e),P=S?i:w;ye.useEffect(()=>{S||T.current||$.current===e||($.current=e,C(ds(e)));},[S,e]);let E=a(q=>{T.current=true,S||C(q),l?.(q);},"handleOpenChange"),R=o===void 0?void 0:Lv(o),W=u??(e==="queued"?k.process.queued:e==="waiting_approval"?k.process.waitingApproval:e==="running"?k.process.running:e==="failed"?k.process.failed:e==="stopped"?k.process.stopped:R?k.process.processedFor({duration:R}):k.process.processed),B=r!==void 0&&r>0,A=m??W,L=p?new Date(p):void 0,I=L&&Number.isFinite(L.getTime())?L.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:false}):void 0,K=m!==void 0&&(I!==void 0||u!==void 0);return jsxRuntime.jsxs(wo__namespace.Root,{open:P,onOpenChange:E,className:vt("group/process w-full min-w-0",d),"data-agent-process-status":e,"data-agent-workbench-variant":f.variant,"data-agent-workbench-density":f.density,"aria-busy":ds(e)?"true":void 0,children:[jsxRuntime.jsxs(wo__namespace.Trigger,{className:vt("flex w-full min-w-0 items-center gap-2 border-b border-border/70 text-left text-sm text-muted-foreground outline-hidden transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",y?"min-h-8 py-1.5":"min-h-9 py-2"),children:[g?e==="running"||e==="queued"?jsxRuntime.jsx(lucideReact.Loader2,{className:"size-4 shrink-0 animate-spin","aria-hidden":"true"}):e==="waiting_approval"?jsxRuntime.jsx(lucideReact.Clock3,{className:"size-4 shrink-0 text-warning-foreground","aria-hidden":"true"}):e==="failed"?jsxRuntime.jsx(lucideReact.CircleAlert,{className:"size-4 shrink-0 text-destructive-text","aria-hidden":"true"}):e==="completed"?jsxRuntime.jsx(lucideReact.Check,{className:"size-4 shrink-0 text-success","aria-hidden":"true"}):jsxRuntime.jsx(lucideReact.Clock3,{className:"size-4 shrink-0 text-muted-foreground","aria-hidden":"true"}):null,jsxRuntime.jsx("span",{className:"min-w-0 flex-1 truncate",children:K?jsxRuntime.jsxs("span",{className:"flex min-w-0 flex-col",children:[jsxRuntime.jsxs("span",{className:"flex min-w-0 items-center gap-2 truncate",children:[jsxRuntime.jsx("span",{className:"truncate",children:A}),I?jsxRuntime.jsx("span",{className:"shrink-0 text-xs text-muted-foreground/70",children:I}):null]}),u?jsxRuntime.jsx("span",{className:"truncate text-xs text-muted-foreground/70",children:u}):null]}):W}),B?jsxRuntime.jsx("span",{className:"shrink-0 rounded-full bg-muted px-2 py-0.5 text-xs text-foreground",children:k.process.completedCount({completed:n??0,total:r})}):null,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"size-4 shrink-0 transition-transform group-data-[state=open]/process:rotate-90","aria-hidden":"true"})]}),jsxRuntime.jsx(wo__namespace.Content,{className:vt("overflow-hidden data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down",c),children:jsxRuntime.jsx("div",{className:vt("flex min-w-0 flex-col",y?"gap-2 py-3":"gap-3 py-4"),children:t})})]})}a(Yc,"AgentWorkbenchProcess");var zv={read:lucideReact.BookOpen,search:lucideReact.Search,tool:lucideReact.Wrench,command:lucideReact.TerminalSquare,file:lucideReact.FileText};function Ov({status:e}){return e==="running"||e==="pending"?jsxRuntime.jsx(lucideReact.Loader2,{className:"size-3.5 shrink-0 animate-spin","aria-hidden":"true"}):e==="failed"||e==="denied"?jsxRuntime.jsx(lucideReact.CircleAlert,{className:"size-3.5 shrink-0 text-destructive-text","aria-hidden":"true"}):e==="completed"?jsxRuntime.jsx(lucideReact.Check,{className:"size-3.5 shrink-0","aria-hidden":"true"}):jsxRuntime.jsx(lucideReact.Circle,{className:"size-3.5 shrink-0","aria-hidden":"true"})}a(Ov,"ActionStatusIcon");function Qc({summary:e,kind:t="tool",status:o="completed",children:n,open:r,defaultOpen:i=false,onOpenChange:s,icon:l,className:d,contentClassName:c}){let u=l??zv[t],m=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(u,{className:"size-4 shrink-0","aria-hidden":"true"}),jsxRuntime.jsx("span",{className:"min-w-0 flex-1 truncate",children:e}),jsxRuntime.jsx(Ov,{status:o}),n?jsxRuntime.jsx(lucideReact.ChevronRight,{className:"size-3.5 shrink-0 transition-transform group-data-[state=open]/action:rotate-90","aria-hidden":"true"}):null]});return n?jsxRuntime.jsxs(wo__namespace.Root,{open:r,defaultOpen:i,onOpenChange:s,className:vt("group/action min-w-0",d),"data-agent-action-status":o,children:[jsxRuntime.jsx(wo__namespace.Trigger,{className:"flex min-h-7 w-full min-w-0 items-center gap-2 text-left text-[13px] text-muted-foreground outline-hidden hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",children:m}),jsxRuntime.jsx(wo__namespace.Content,{className:"overflow-hidden data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down",children:jsxRuntime.jsx("div",{className:vt("ml-6 mt-2 min-w-0 border-l border-border pl-3",c),children:n})})]}):jsxRuntime.jsx("div",{className:vt("flex min-h-7 min-w-0 items-center gap-2 text-[13px] text-muted-foreground",d),"data-agent-action-status":o,children:m})}a(Qc,"AgentWorkbenchAction");var Fv=a(e=>jsxRuntime.jsx(lucideReact.Sparkles,{...e}),"ReasoningIcon");function Zc({empty:e,running:t,children:o,...n}){return e?jsxRuntime.jsx("div",{role:"status",className:"bui-process-group",children:jsxRuntime.jsx("span",{className:"bui-process-label","data-running":t,children:n.label})}):jsxRuntime.jsx(Yc,{...n,className:"bui-process-group",contentClassName:"bui-process-content",children:o})}a(Zc,"AgentProcessView");function Jc({reasoning:e,summary:t,running:o,status:n,kind:r,statusLabel:i,details:s,images:l,resourceAccess:d,unavailableImageLabel:c}){return jsxRuntime.jsx(Qc,{className:"bui-process-action",icon:e?Fv:void 0,kind:r,status:n,summary:jsxRuntime.jsx("span",{className:"bui-process-label","data-running":o,children:t}),children:jsxRuntime.jsxs("div",{className:"bui-process-detail",children:[i&&jsxRuntime.jsx("p",{children:i}),l?.length?jsxRuntime.jsx(_v,{images:l,access:d,unavailableLabel:c}):null,e?s.join(""):s.map((u,m)=>jsxRuntime.jsx("pre",{children:u.slice(0,8e3)},m))]})})}a(Jc,"AgentProcessDetail");function _v({images:e,access:t,unavailableLabel:o}){return t?jsxRuntime.jsx(Uv,{images:e,access:t,unavailableLabel:o}):jsxRuntime.jsx(eu,{images:e,unavailableLabel:o})}a(_v,"ProcessImages");function Uv({images:e,access:t,unavailableLabel:o}){let n=zo(t);return jsxRuntime.jsx(eu,{images:e,resources:n,unavailableLabel:o})}a(Uv,"ManagedProcessImages");function eu({images:e,resources:t,unavailableLabel:o}){let n=t&&{...t,imageActions:a(r=>{let i=t.imageActions?.(r);return i?.open?{open:i.open,labels:i.labels}:void 0},"imageActions")};return jsxRuntime.jsx("div",{className:"agent-process-images",children:e.map((r,i)=>r.src?jsxRuntime.jsx(Mn,{text:`![${r.alt.replace(/[\[\]\\\n]/g," ")}](<${r.src.replace(/[<>\n\r]/g,"")}>)`,format:"markdown",streaming:false,actions:[],resources:n},i):jsxRuntime.jsx("span",{role:"status",children:o},i))})}a(eu,"ProcessImageContent");function tu({message:e}){return jsxRuntime.jsx("p",{role:"alert",children:e})}a(tu,"AgentFeedback");function _R({children:e}){return jsxRuntime.jsx("div",{role:"status",children:e})}a(_R,"AgentInteractionFallback");var ou=Array.from({length:9},(e,t)=>{let o=Math.floor(t/3);return (t%3+Math.abs(o-1))*90}),Gv=[0,1,2,5,8,7,6,3],qv=Array.from({length:9},(e,t)=>{let o=Gv.indexOf(t);return o===-1?null:o*110}),Ma={Drive:{delays:ou,dur:650,round:false},Dots:{delays:ou,dur:650,round:true},Orbit:{delays:qv,dur:950,round:false}};function cs({delays:e,dur:t,round:o}){return jsxRuntime.jsx("span",{"aria-hidden":true,className:"grid shrink-0 grid-cols-[repeat(3,4px)] gap-[1.5px]",children:e.map((n,r)=>jsxRuntime.jsx("span",{className:`size-[4px] bg-ink ${o?"rounded-full":"rounded-[1px]"}`,style:{opacity:n===null?.07:.15,animation:n===null?"none":`bui-pixel-on ${t}ms ease-in-out ${n}ms infinite`}},r))})}a(cs,"LoaderGrid");function Kv({elapsedMs:e,startedAtMs:t}){let[o]=ye.useState(()=>Date.now()),[n,r]=ye.useState(()=>Date.now()),i=t??o,s=e===void 0&&Number.isFinite(i);if(ye.useEffect(()=>{if(!s)return;let c=a(()=>r(Date.now()),"update");c();let u=setInterval(c,100);return ()=>clearInterval(u)},[s,i]),e===null||!Number.isFinite(e??i))return null;let l=Math.max(0,e??n-i)/1e3,d=l<60?`${l.toFixed(1)}s`:`${Math.floor(l/60)}m ${(l%60).toFixed(1)}s`;return jsxRuntime.jsx("span",{"data-bui-elapsed":true,"aria-live":"off",className:"shrink-0 whitespace-nowrap font-mono text-[12px] text-ink-3 tabular-nums",children:d})}a(Kv,"ElapsedTime");function gn({label:e,variant:t="Drive",videoSrc:o,elapsedMs:n,startedAtMs:r}){let i=Ue(),s=t==="Surfer",l=e??i("Loading"),[d,c]=ye.useState(true),{delays:u,dur:m,round:p}=Ma[t]??Ma.Drive,g=jsxRuntime.jsx("span",{className:"min-w-0 [overflow-wrap:anywhere] bg-clip-text text-[13px] font-medium text-transparent",style:{backgroundImage:"linear-gradient(90deg, var(--bui-ink-3) 35%, var(--bui-ink) 50%, var(--bui-ink-3) 65%)",backgroundSize:"200% 100%",animation:"bui-shimmer-text 1.4s linear infinite"},children:l}),b=jsxRuntime.jsx(Kv,{elapsedMs:n,startedAtMs:r});return s?jsxRuntime.jsx(re,{children:jsxRuntime.jsxs("div",{"data-bui-loading-state":true,role:"status",className:"flex w-fit flex-col items-start",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2.5",children:[jsxRuntime.jsx(cs,{...Ma.Drive}),g,b]}),jsxRuntime.jsx("div",{className:"mt-2 w-56 overflow-hidden rounded-[10px] shadow-overlay",style:{animation:"bui-pop-in 200ms cubic-bezier(0.16,1,0.3,1) both",transformOrigin:"top left"},children:jsxRuntime.jsx("div",{className:"relative aspect-video w-full",style:{background:"var(--bui-tooltip-bg)"},children:d&&o?jsxRuntime.jsx("video",{src:o,autoPlay:true,muted:true,loop:true,playsInline:true,onError:()=>c(false),className:"h-full w-full object-cover"}):jsxRuntime.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-1.5",children:[jsxRuntime.jsx(cs,{...Ma.Drive}),jsxRuntime.jsx("span",{className:"px-3 text-center font-mono text-[10px]",style:{color:"var(--bui-tooltip-muted)"},children:i("Video unavailable")})]})})})]})}):jsxRuntime.jsx(re,{children:jsxRuntime.jsxs("div",{"data-bui-loading-state":true,role:"status",className:"flex max-w-full w-fit items-center gap-2.5",children:[jsxRuntime.jsx(cs,{delays:u,dur:m,round:p}),g,b]})})}a(gn,"BUILoadingState");var ps=Symbol.for("@inf-monkeys-tech/monkeys-design/ui-theme-context@1"),ms=globalThis;ms[ps]||Object.defineProperty(ms,ps,{value:ye.createContext(null)});var On=ms[ps];function Yv(e){return typeof e=="function"?true:typeof e=="object"&&e!==null&&!ye.isValidElement(e)&&"$$typeof"in e}a(Yv,"isWorkbenchIconComponent");function ru(e,t){return e?ye.isValidElement(e)?e:Yv(e)?jsxRuntime.jsx(e,{className:t}):e:null}a(ru,"renderWorkbenchIcon");function Jv(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}a(Jv,"toCssSize");var ex=160,tx=56,ox=128;function au(e){if(typeof e=="number"&&Number.isFinite(e)&&e>0)return e;if(typeof e!="string")return;let t=e.trim().match(/^(\d+(?:\.\d+)?)px$/i);return t?Number(t[1]):void 0}a(au,"numericCssSize");function lu(e,t){return e.renderType==="icon"?tx:t?ox:ex}a(lu,"defaultWorkbenchColumnWidth");function iu(e,t,o){return t??au(e.width)??au(e.minWidth)??lu(e,o)}a(iu,"resolvedWorkbenchColumnWidth");function nx(e){return e==null||e===false?null:e}a(nx,"defaultFormatLabel");function su(e){if(typeof e=="string"||typeof e=="number")return String(e)}a(su,"toTitle");function rx(e,t){return e?.id??e?.key??e?.linkKey??t}a(rx,"defaultGetRowKey");function ax(e){return e?.linkKey??e?.id??e?.key}a(ax,"defaultGetRowSelectionKey");function ix(e,t){if(!t?.length)return e;let o=new Map(e.map(s=>[s.key,s])),n=t.map(s=>o.get(s)).filter(Boolean),r=new Set(n.map(s=>s.key)),i=e.filter(s=>!r.has(s.key));return [...n,...i]}a(ix,"getOrderedColumns");function bs(e,t){let o=new Set(e),n=(t||[]).filter(s=>o.has(s)),r=new Set(n),i=e.filter(s=>!r.has(s));return [...n,...i]}a(bs,"normalizeColumnOrder");function sx({helperText:e,className:t}){return H(e)?jsxRuntime.jsxs("span",{className:v("group relative inline-flex items-center",t),children:[jsxRuntime.jsx("button",{type:"button",title:su(e),"aria-label":su(e)||"Field help",className:"inline-flex h-4 w-4 items-center justify-center rounded-md border border-border/60 bg-background text-xs font-semibold normal-case tracking-normal text-muted-foreground shadow-sm transition-colors hover:border-primary/40 hover:text-primary focus-visible:border-primary/40 focus-visible:text-primary focus-visible:outline-hidden",onClick:o=>o.stopPropagation(),children:"?"}),jsxRuntime.jsx("span",{role:"tooltip",className:"pointer-events-none absolute left-1/2 top-full z-40 mt-2 hidden w-72 -translate-x-1/2 whitespace-pre-line rounded-lg border border-border/60 bg-card px-3 py-2 text-xs font-normal normal-case leading-5 tracking-normal text-foreground shadow-sm backdrop-blur-sm group-hover:block group-focus-within:block",children:e})]}):null}a(sx,"WorkbenchTableHeaderHelper");function ys({rows:e=[],columns:t=[],onRowClick:o,selectedRowKey:n,selectedLinkKey:r,activePrimaryColumn:i,activeTablePrimaryColumn:s,renderedRowCount:l,totalRowCount:d,tableMinWidth:c,minWidth:u,bodyMaxHeight:m="min(58vh, 38rem)",stickyFirstColumn:p=true,appearance:g,headerPresentation:b,fillRemainingWidthColumnKey:x,columnOrder:f,columnSizes:y,columnDragEnabled:k,columnResizeEnabled:S,className:w,tableClassName:C,rowClassName:T,classNames:$,style:P,renderCell:E,renderFieldValue:R,renderColumnHeader:W,onColumnOrderChange:B,onColumnSizeChange:A,onSort:L,formatLabel:I=nx,getColumnDataType:K,getColumnIcon:q,getColumnTypeIcon:_,getRowKey:Y=rx,getRowSelectionKey:M=ax,isActionColumn:z,isActionField:Q,isRowDisabled:ce,isWorkbenchPlaceholderRow:se,emptyState:V="-",hiddenRowsMessage:J,scrollFooter:O,scrollRestoration:F}){let oe=t.map(N=>N.key).join(""),ae=ye.useMemo(()=>oe?oe.split(""):[],[oe]),[pe,Ce]=ye.useState(ae),[Z,Re]=ye.useState({}),Ge=ye.useRef(null),gt=ye.useRef(new Map),te=ye.useRef(F);te.current=F;let De=ye.useRef(void 0),qe=ye.useCallback(()=>{let N=Ge.current,ne=te.current;if(!N||!ne||De.current!==ne.key)return;let ve=N.getBoundingClientRect().top,he=Array.from(gt.current.entries()).find(([,_e])=>_e.getBoundingClientRect().bottom>ve);ne.write({x:N.scrollLeft,y:N.scrollTop,...he?{rowKey:he[0],rowOffset:he[1].getBoundingClientRect().top-ve}:{}});},[]);ye.useEffect(()=>{let N=Ge.current,ne=te.current;if(!N||!ne||De.current===ne.key||e.length===0)return;let ve=ne.read(),he=a(()=>{let Ze=ve?.rowKey?gt.current.get(ve.rowKey):void 0,Me=Ze&&typeof ve?.rowOffset=="number"?N.scrollTop+Ze.getBoundingClientRect().top-N.getBoundingClientRect().top-ve.rowOffset:ve?.y??0;N.scrollTo({left:ve?.x??0,top:Math.max(0,Me),behavior:"auto"}),De.current=ne.key;},"restore"),_e=N.ownerDocument.defaultView;if(!_e){he();return}let ct=_e.requestAnimationFrame(he);return ()=>_e.cancelAnimationFrame(ct)},[e,F?.key]),ye.useEffect(()=>{let N=Ge.current?.ownerDocument.defaultView;return N?.addEventListener("pagehide",qe),()=>{N?.removeEventListener("pagehide",qe),qe();}},[qe]);let[ft,Gt]=ye.useState();ye.useEffect(()=>{Ce(N=>bs(ae,N));},[ae]);let $o=f?bs(ae,f):pe,j=y??Z,me=ye.useCallback((N,ne)=>{let ve=bs(ae,N);f||Ce(ve),B?.(ve,ne);},[f,ae,B]),Ne=ye.useCallback((N,ne,ve)=>{y||Re(he=>({...he,[N]:ne})),A?.(N,ne,ve);},[y,A]),He=n??r,Ke=i??s,Fe=ix(t,$o),Qe=x?Fe.reduce((N,ne)=>ne.key===x?N:N+iu(ne,j[ne.key],z?.(ne)??Q?.(ne)??false),0):void 0,qt=x&&Qe!==void 0&&ft!==void 0?Math.max(0,Math.round(ft-Qe)):void 0,zt=Fe.flatMap(N=>N.key!==x?[N]:qt===0?[]:qt===void 0?[N]:[{...N,width:qt,minWidth:qt,maxWidth:qt}]),co=Math.max(0,Number(d||e.length)-Number(l||e.length)),uo=E??R??((N,ne)=>ne?.[N.key]),St=z??Q??(()=>false),po=ce??se??(()=>false),Pr=q??_,vn=Qe!==void 0&&qt!==void 0?Qe+qt:void 0,jn=vn??c??u??Math.max(760,zt.reduce((N,ne)=>N+iu(ne,j[ne.key],St(ne)),0));ye.useEffect(()=>{if(!x){Gt(void 0);return}let N=Ge.current;if(!N)return;let ne=N.ownerDocument.defaultView,ve=a(()=>{let ct=Math.round(N.getBoundingClientRect().width);!Number.isFinite(ct)||ct<=0||Gt(Ze=>Ze===ct?Ze:ct);},"updateWidth");ve();let he=ne?.ResizeObserver,_e=he?new he(ve):void 0;return _e?.observe(N),ne?.addEventListener("resize",ve),()=>{_e?.disconnect(),ne?.removeEventListener("resize",ve);}},[x]);let Gn=co>0&&J?typeof J=="function"?J(co,l||e.length,d||e.length):J:null;return jsxRuntime.jsxs(Cc,{appearance:g,className:v("w-full overflow-hidden rounded-lg border border-border/40 bg-muted/15 dark:border-border/35 dark:bg-muted/10",$?.root,w),style:m==="100%"?{display:"flex",minHeight:0,flex:1,flexDirection:"column",...P}:P,children:[jsxRuntime.jsxs("div",{ref:Ge,onScroll:qe,className:v("w-full overflow-auto",$?.scrollArea),style:{maxHeight:Jv(m),...m==="100%"?{minHeight:0,flex:1}:{}},children:[jsxRuntime.jsxs(Tc,{appearance:g,columnOrder:$o,columnSizes:j,columnDragEnabled:k,columnResizeEnabled:S,onColumnOrderChange:me,onColumnSizeChange:Ne,className:v("w-full table-auto text-left text-xs",$?.table,C),style:{width:vn,minWidth:jn},children:[jsxRuntime.jsx(Sc,{appearance:g,className:v("z-20 text-xs font-sans text-muted-foreground",$?.header),children:jsxRuntime.jsx(as,{className:v("hover:bg-transparent",$?.headerRow),children:zt.map((N,ne)=>{let ve=lu(N,St(N)),he=N.renderType||N.type||K?.(N.key,e,N),_e=ru(Pr?.(he,N),"h-3.5 w-3.5 shrink-0 text-primary"),Ze=zt[ne-1]?.renderType==="icon"&&N.key===Ke?.key,Me=W?W(N,{column:N,columnIndex:ne,columns:zt,rows:e,columnType:he}):I(N.label,{column:N}),Po=!W&&(H(N.trailing)||H(N.helperText))?jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[H(N.trailing)?I(N.trailing,{column:N}):null,jsxRuntime.jsx(sx,{helperText:I(N.helperText,{column:N}),className:$?.helper})]}):void 0,tn=!!N.sortable,Rr=tn&&L?()=>L(N.key,N):void 0;return jsxRuntime.jsx(Pc,{appearance:g,presentation:b,columnId:N.key,align:N.align,icon:W?void 0:_e,label:Me,description:W?void 0:I(N.description,{column:N}),meta:W?void 0:I(N.meta,{column:N}),actions:N.actions,trailing:Po,sortable:tn,sortDirection:N.sortDirection,sortLabel:N.sortLabel,onSort:Rr,draggable:N.draggable,dragLabel:N.dragLabel,resizable:N.resizable,resizeLabel:N.resizeLabel,width:N.width??ve,minWidth:typeof N.minWidth=="number"?N.minWidth:void 0,maxWidth:typeof N.maxWidth=="number"?N.maxWidth:void 0,className:v("sticky top-0 z-20 h-auto whitespace-nowrap bg-card/95 px-4 py-3 font-medium backdrop-blur-sm supports-[backdrop-filter]:bg-card/90",p&&ne===0&&"md:left-0 md:z-30 md:shadow-[1px_0_0_0_hsl(var(--border)/0.35)]",N.compactHeaderClassName,N.renderType==="icon"&&"pl-3 pr-1",Ze&&"pl-2",$?.headerCell,N.headerClassName),style:{minWidth:typeof N.minWidth=="string"?N.minWidth:void 0,maxWidth:typeof N.maxWidth=="string"?N.maxWidth:void 0,...N.headerStyle}},N.key)})})}),jsxRuntime.jsx($c,{appearance:g,className:v("divide-y divide-border/35 dark:divide-border/30",$?.body),children:e.length?e.map((N,ne)=>{let ve=Y(N,ne),he=po(N,ne),_e=M(N,ne),ct=!!(He&&String(_e)===String(He)),Ze=typeof T=="function"?T(N,ne):T;return jsxRuntime.jsx(as,{appearance:g,ref:Me=>{Me?gt.current.set(String(ve),Me):gt.current.delete(String(ve));},interactive:!!o&&!he,"data-item-key":String(ve),tabIndex:o&&!he?0:void 0,selected:ct,disabled:he,onClick:Me=>{he||(o&&Me.currentTarget.focus({preventScroll:true}),o?.(N,ne));},onKeyDown:Me=>{Me.target!==Me.currentTarget||he||!o||!["Enter"," "].includes(Me.key)||(Me.preventDefault(),o(N,ne));},className:v(o&&!he?"cursor-pointer":"cursor-default",ct?"bg-primary/10 hover:bg-primary/15":he?"":"hover:bg-muted/25 dark:hover:bg-muted/15",$?.row,Ze),children:zt.map((Me,Po)=>{let tn=St(Me)||Me.wrap===true,qn=zt[Po-1]?.renderType==="icon"&&Me.key===Ke?.key;return jsxRuntime.jsx(Rc,{appearance:g,align:Me.align,className:v(tn?"align-top whitespace-normal":"whitespace-nowrap","px-4 py-3 text-muted-foreground",!tn&&"overflow-hidden text-ellipsis",p&&Po===0&&"md:sticky md:left-0 md:z-10 md:bg-card/95 md:text-foreground md:shadow-[1px_0_0_0_hsl(var(--border)/0.3)]",Me.compactCellClassName,Me.renderType==="icon"&&"pl-3 pr-1",qn&&"pl-2",$?.cell,Me.cellClassName),style:Me.cellStyle,children:uo(Me,N,{row:N,rowIndex:ne,column:Me,columnIndex:Po,compact:true,surface:"list"})},`${ve}-${Me.key}`)})},ve)}):jsxRuntime.jsx(Mc,{appearance:g,colSpan:Math.max(zt.length,1),classNames:{cell:"px-4 py-10 text-center text-sm text-muted-foreground"},children:V})})]}),H(O)?jsxRuntime.jsx("div",{style:{minWidth:jn},children:O}):null]}),Gn?jsxRuntime.jsx("div",{className:v("border-t border-border/40 px-4 py-2 text-xs text-muted-foreground dark:border-border/30",$?.footer),children:Gn}):null]})}a(ys,"WorkbenchTableView");var kt=a((...e)=>e.filter(Boolean).join(" "),"cx");function Ut(e,t,o,n){let r=e!==void 0,i=ye.useRef(r),s=ye.useRef(false);process.env.NODE_ENV!=="production"&&!s.current&&(e!==void 0&&t!==void 0||i.current!==r)&&(console.error("monkeys-design UI: choose controlled or uncontrolled state; do not supply both value and defaultValue or switch modes."),s.current=true);let[l,d]=ye.useState(t??o),c=r?e:l;return [c,a(m=>{r||d(m),m!==c&&n?.(m);},"update")]}a(Ut,"useControllable");function Hn(e,t){let o=ye.useRef(t);o.current=t,ye.useEffect(()=>{let n=e.current,r=n&&("form"in n?n.form:n.closest("form"));if(!r)return;let i=true,s=a(l=>queueMicrotask(()=>{i&&!l.defaultPrevented&&o.current();}),"listener");return r.addEventListener("reset",s),()=>{i=false,r.removeEventListener("reset",s);}});}a(Hn,"useFormReset");var px=ye.createContext({}),vr=a((...e)=>[...new Set(e.filter(Boolean).flatMap(t=>t.split(/\s+/)))].join(" ")||void 0,"classes"),Bt=a(e=>Object.fromEntries(Object.entries(e??{}).filter(([,t])=>t!==void 0)),"defined");function du(e,t){return Object.fromEntries([...new Set([...Object.keys(e??{}),...Object.keys(t??{})])].map(o=>[o,{...e?.[o],...Bt(t?.[o])}]))}a(du,"mergeStyles");function cu(e,t){return Object.fromEntries([...new Set([...Object.keys(e??{}),...Object.keys(t??{})])].map(o=>[o,vr(e?.[o],t?.[o])]))}a(cu,"mergeClasses");var uu=["variant","tone","emphasis","effect","size","lightEdge","glassColor","glassOpacity","motion","activeBorderColor"];function Wn(e,t){let o=Object.fromEntries(uu.filter(n=>t?.[n]!==void 0&&!(n==="variant"&&t?.variant==="switch")).map(n=>[n,t[n]]));return {...e,...o,className:vr(e?.className,t?.className),style:{...e?.style,...Bt(t?.style)},classNames:cu(e?.classNames,t?.classNames),styles:du(e?.styles,t?.styles)}}a(Wn,"mergeButtonAppearance");function mx(e,t){return Object.fromEntries([...new Set([...Object.keys(e??{}),...Object.keys(t??{})])].map(o=>[o,Wn(e?.[o],t?.[o])]))}a(mx,"mergeButtons");function pu(e,t){let o=ye.useContext(px),n=o[e],r=t,i=cu(n?.classNames,r.classNames),s=du(n?.styles,r.styles),{classNames:l,styles:d,buttonProps:c,...u}=r,m={...n?.defaultProps,...Bt(u),className:vr(n?.defaultProps?.className,i.root,r.className),style:{...n?.defaultProps?.style,...s.root,...Bt(r.style)}},p=a((f,y,k,S)=>({className:vr(y,i[f]),style:k||s[f]||S?{...k,...Bt(n?.styles?.[f]),...Bt(S),...Bt(r.styles?.[f])}:void 0}),"slot"),g=a((f,y,k)=>{let S=p(f,y,k);return {...S,style:{...S.style,...Bt(r.styles?.root),...Bt(r.styles?.[f]),...Bt(r.style)}}},"rootSlot"),b=a((f,y,k,S,w,C)=>{let T=o.Button?.defaultProps,$=Object.fromEntries(uu.filter(W=>T?.[W]!==void 0&&!(W==="variant"&&T[W]==="switch")).map(W=>[W,T[W]])),P=Wn({variant:T?.variant==="switch"?"solid":void 0,...y},$);P=Wn(P,n?.buttonProps?.[f]),C&&(P=Wn(P,n?.buttonProps?.[C])),P=Wn(P,r.buttonProps?.[f]),C&&(P=Wn(P,r.buttonProps?.[C]));let E=p(f,k,S,w),R=$.variant!==void 0||n?.buttonProps?.[f]?.variant!==void 0||r.buttonProps?.[f]?.variant!==void 0||!!(C&&(n?.buttonProps?.[C]?.variant!==void 0||r.buttonProps?.[C]?.variant!==void 0));return {...P,"data-button-appearance":R||void 0,className:vr(E.className,P.className),style:{...E.style,...Bt(P.style)}}},"buttonSlot");return {props:m,slot:p,rootSlot:g,buttonSlot:b,rootButtonSlot:a((...f)=>{let y=b(...f);return {...y,style:{...y.style,...Bt(r.styles?.root),...Bt(r.styles?.[f[0]]),...Bt(r.style)}}},"rootButtonSlot"),forwardStyles:{classNames:i,styles:s,buttonProps:mx(n?.buttonProps,r.buttonProps)}}}a(pu,"useUIComponent");var mu={seed:{ui:{color:{page:{$type:"color",$value:{colorSpace:"srgb",components:[.09019607843137255,.09803921568627451,.11372549019607843],hex:"#17191D"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},surface:{$type:"color",$value:{colorSpace:"srgb",components:[.12549019607843137,.13725490196078433,.1607843137254902],hex:"#202329"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},elevated:{$type:"color",$value:{colorSpace:"srgb",components:[.16470588235294117,.1803921568627451,.21176470588235294],hex:"#2A2E36"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},foreground:{$type:"color",$value:{colorSpace:"srgb",components:[.9568627450980393,.9607843137254902,.9686274509803922],hex:"#F4F5F7"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},muted:{$type:"color",$value:{colorSpace:"srgb",components:[.803921568627451,.8196078431372549,.8470588235294118],hex:"#CDD1D8"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},subtle:{$type:"color",$value:{colorSpace:"srgb",components:[.7254901960784313,.7450980392156863,.7843137254901961],hex:"#B9BEC8"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},primary:{$type:"color",$value:{colorSpace:"srgb",components:[.5490196078431373,.6039215686274509,.6666666666666666],hex:"#8C9AAA"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},lightEdgeBlue:{$type:"color",$value:{colorSpace:"srgb",components:[.6549019607843137,.7098039215686275,.7843137254901961],hex:"#A7B5C8"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},primaryHover:{$type:"color",$value:{colorSpace:"srgb",components:[.6784313725490196,.7254901960784313,.7803921568627451],hex:"#ADB9C7"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},violet:{$type:"color",$value:{colorSpace:"srgb",components:[.6784313725490196,.7137254901960784,.7686274509803922],hex:"#ADB6C4"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},focus:{$type:"color",$value:{colorSpace:"srgb",components:[.7647058823529411,.8235294117647058,.9098039215686274],hex:"#C3D2E8"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},danger:{$type:"color",$value:{colorSpace:"srgb",components:[.9411764705882353,.5019607843137255,.5019607843137255],hex:"#F08080"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},dangerBackground:{$type:"color",$value:{colorSpace:"srgb",components:[.6078431372549019,.1450980392156863,.1843137254901961],hex:"#9B252F"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},success:{$type:"color",$value:{colorSpace:"srgb",components:[.5176470588235295,.8588235294117647,.6784313725490196],hex:"#84DBAD"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},control:{$type:"color",$value:{colorSpace:"srgb",components:[.47058823529411764,.47058823529411764,.47058823529411764],hex:"#787878",alpha:.2},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},border:{$type:"color",$value:{colorSpace:"srgb",components:[.7176470588235294,.7568627450980392,.8313725490196079],hex:"#B7C1D4",alpha:.5},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},info:{$type:"color",$value:{colorSpace:"srgb",components:[0,0,0],hex:"#000000",alpha:.8},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},previewInfo:{$type:"color",$value:{colorSpace:"srgb",components:[0,0,0],hex:"#000000",alpha:.4},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},blueGlow:{$type:"color",$value:{colorSpace:"srgb",components:[.5215686274509804,.6,.7098039215686275],hex:"#8599B5",alpha:.35},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},violetGlow:{$type:"color",$value:{colorSpace:"srgb",components:[.6431372549019608,.6901960784313725,.7686274509803922],hex:"#A4B0C4",alpha:.5},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},transparent:{$type:"color",$value:{colorSpace:"srgb",components:[0,0,0],hex:"#000000",alpha:0},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},overlay:{$type:"color",$value:{colorSpace:"srgb",components:[0,0,0],hex:"#000000",alpha:.65},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},primaryAccessible:{$type:"color",$value:{colorSpace:"srgb",components:[.3215686274509804,.396078431372549,.49019607843137253],hex:"#52657D"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},header:{$type:"color",$value:{colorSpace:"srgb",components:[.21568627450980393,.2549019607843137,.3176470588235294],hex:"#374151"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},detail:{$type:"color",$value:{colorSpace:"srgb",components:[0,0,0],hex:"#000000"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},white:{$type:"color",$value:{colorSpace:"srgb",components:[1,1,1],hex:"#FFFFFF"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},black:{$type:"color",$value:{colorSpace:"srgb",components:[0,0,0],hex:"#000000"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},activeBorder:{$type:"color",$value:{colorSpace:"srgb",components:[.43137254901960786,.5568627450980392,.9254901960784314],hex:"#6E8EEC"},$description:"\u6FC0\u6D3B\u63A7\u4EF6\u63CF\u8FB9\u539F\u59CB\u8272"}},radius:{r16:{$type:"dimension",$value:{value:16,unit:"px"},$description:"\u516C\u5171\u5706\u89D2\u523B\u5EA6"},r24:{$type:"dimension",$value:{value:24,unit:"px"},$description:"\u516C\u5171\u5706\u89D2\u523B\u5EA6"},r12:{$type:"dimension",$value:{value:12,unit:"px"},$description:"\u516C\u5171\u5706\u89D2\u523B\u5EA6"},scale:{s24:{$type:"dimension",$value:"{seed.ui.radius.r24}",$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 24px"},s999:{$type:"dimension",$value:"{seed.ui.radius.r999}",$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 999px"},s12:{$type:"dimension",$value:"{seed.ui.radius.r12}",$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 12px"},s8:{$type:"dimension",$value:{value:8,unit:"px"},$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 8px"},s4:{$type:"dimension",$value:{value:4,unit:"px"},$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 4px"},s16:{$type:"dimension",$value:"{seed.ui.radius.r16}",$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 16px"},s10:{$type:"dimension",$value:{value:10,unit:"px"},$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 10px"},s20:{$type:"dimension",$value:{value:20,unit:"px"},$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 20px"},s2:{$type:"dimension",$value:{value:2,unit:"px"},$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 2px"},s18:{$type:"dimension",$value:{value:18,unit:"px"},$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 18px"}},r999:{$type:"dimension",$value:{value:999,unit:"px"},$description:"\u516C\u5171\u5706\u89D2\u523B\u5EA6"}},typography:{lineHeight:{s1p5:{$type:"number",$value:1.5,$description:"\u5171\u4EAB typography.lineHeight \u523B\u5EA6 1.5"},s1p4:{$type:"number",$value:1.4,$description:"\u5171\u4EAB typography.lineHeight \u523B\u5EA6 1.4"},s1p3:{$type:"number",$value:1.3,$description:"\u5171\u4EAB typography.lineHeight \u523B\u5EA6 1.3"},s1p2:{$type:"number",$value:1.2,$description:"\u5171\u4EAB typography.lineHeight \u523B\u5EA6 1.2"}},weight:{s500:{$type:"number",$value:500,$description:"\u5171\u4EAB typography.weight \u523B\u5EA6 500"},s600:{$type:"number",$value:600,$description:"\u5171\u4EAB typography.weight \u523B\u5EA6 600"},s700:{$type:"number",$value:700,$description:"\u5171\u4EAB typography.weight \u523B\u5EA6 700"},s800:{$type:"number",$value:800,$description:"\u5171\u4EAB typography.weight \u523B\u5EA6 800"},s200:{$type:"number",$value:200,$description:"\u5171\u4EAB typography.weight \u523B\u5EA6 200"},s400:{$type:"number",$value:400,$description:"\u5171\u4EAB typography.weight \u523B\u5EA6 400"}}},size:{s2:{$type:"dimension",$value:{value:2,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 2px"},s3:{$type:"dimension",$value:{value:3,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 3px"},s1:{$type:"dimension",$value:{value:1,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 1px"},s28:{$type:"dimension",$value:{value:28,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 28px"},s42:{$type:"dimension",$value:{value:42,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 42px"},s14:{$type:"dimension",$value:{value:14,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 14px"},s24:{$type:"dimension",$value:{value:24,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 24px"},s18:{$type:"dimension",$value:{value:18,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 18px"},s40:{$type:"dimension",$value:{value:40,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 40px"},s16:{$type:"dimension",$value:{value:16,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 16px"},s20:{$type:"dimension",$value:{value:20,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 20px"},s22:{$type:"dimension",$value:{value:22,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 22px"},s140:{$type:"dimension",$value:{value:140,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 140px"},s85:{$type:"dimension",$value:{value:85,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 85px"},s34:{$type:"dimension",$value:{value:34,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 34px"},s320:{$type:"dimension",$value:{value:320,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 320px"},s160:{$type:"dimension",$value:{value:160,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 160px"},s280:{$type:"dimension",$value:{value:280,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 280px"},s32:{$type:"dimension",$value:{value:32,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 32px"},s53:{$type:"dimension",$value:{value:53,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 53px"},s26:{$type:"dimension",$value:{value:26,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 26px"},s8:{$type:"dimension",$value:{value:8,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 8px"},s62:{$type:"dimension",$value:{value:62,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 62px"},s10:{$type:"dimension",$value:{value:10,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 10px"},s4:{$type:"dimension",$value:{value:4,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 4px"},s5:{$type:"dimension",$value:{value:5,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 5px"},s196:{$type:"dimension",$value:{value:196,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 196px"},s480:{$type:"dimension",$value:{value:480,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 480px"},s1000:{$type:"dimension",$value:{value:1e3,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 1000px"},s660:{$type:"dimension",$value:{value:660,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 660px"},s48:{$type:"dimension",$value:{value:48,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 48px"},s100:{$type:"dimension",$value:{value:100,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 100px"},s64:{$type:"dimension",$value:{value:64,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 64px"},s12:{$type:"dimension",$value:{value:12,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 12px"},s6:{$type:"dimension",$value:{value:6,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 6px"},s168:{$type:"dimension",$value:{value:168,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 168px"},s96:{$type:"dimension",$value:{value:96,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 96px"},s56:{$type:"dimension",$value:{value:56,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 56px"},s1p5:{$type:"dimension",$value:{value:1.5,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 1.5px"},s220:{$type:"dimension",$value:{value:220,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 220px"},s379:{$type:"dimension",$value:{value:379,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 379px"},s68:{$type:"dimension",$value:{value:68,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 68px"},s108:{$type:"dimension",$value:{value:108,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 108px"},s70:{$type:"dimension",$value:{value:70,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 70px"},s57:{$type:"dimension",$value:{value:57,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 57px"},s15:{$type:"dimension",$value:{value:15,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 15px"},s244:{$type:"dimension",$value:{value:244,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 244px"},s78:{$type:"dimension",$value:{value:78,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 78px"},s36:{$type:"dimension",$value:{value:36,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 36px"},s23:{$type:"dimension",$value:{value:23,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 23px"},s117:{$type:"dimension",$value:{value:117,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 117px"},s110:{$type:"dimension",$value:{value:110,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 110px"},s156:{$type:"dimension",$value:{value:156,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 156px"},s125:{$type:"dimension",$value:{value:125,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 125px"},s121:{$type:"dimension",$value:{value:121,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 121px"},s127:{$type:"dimension",$value:{value:127,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 127px"},s55:{$type:"dimension",$value:{value:55,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 55px"},s178:{$type:"dimension",$value:{value:178,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 178px"},s497:{$type:"dimension",$value:{value:497,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 497px"},s37:{$type:"dimension",$value:{value:37,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 37px"},s60:{$type:"dimension",$value:{value:60,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 60px"},s7:{$type:"dimension",$value:{value:7,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 7px"},s128:{$type:"dimension",$value:{value:128,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 128px"},s290:{$type:"dimension",$value:{value:290,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 290px"},s210:{$type:"dimension",$value:{value:210,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 210px"},s231:{$type:"dimension",$value:{value:231,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 231px"},s440:{$type:"dimension",$value:{value:440,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 440px"},s9:{$type:"dimension",$value:{value:9,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 9px"},s190:{$type:"dimension",$value:{value:190,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 190px"},s130:{$type:"dimension",$value:{value:130,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 130px"},s200:{$type:"dimension",$value:{value:200,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 200px"},s150:{$type:"dimension",$value:{value:150,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 150px"},s350:{$type:"dimension",$value:{value:350,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 350px"},s493:{$type:"dimension",$value:{value:493,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 493px"},s17:{$type:"dimension",$value:{value:17,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 17px"}},space:{s6:{$type:"dimension",$value:{value:6,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 6px"},s18:{$type:"dimension",$value:{value:18,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 18px"},s3:{$type:"dimension",$value:{value:3,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 3px"},s10:{$type:"dimension",$value:{value:10,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 10px"},s8:{$type:"dimension",$value:{value:8,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 8px"},s22:{$type:"dimension",$value:{value:22,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 22px"},s7:{$type:"dimension",$value:{value:7,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 7px"},s14:{$type:"dimension",$value:{value:14,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 14px"},s84:{$type:"dimension",$value:{value:84,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 84px"},s4:{$type:"dimension",$value:{value:4,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 4px"},s2:{$type:"dimension",$value:{value:2,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 2px"},s12:{$type:"dimension",$value:{value:12,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 12px"},s5:{$type:"dimension",$value:{value:5,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 5px"},s26:{$type:"dimension",$value:{value:26,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 26px"},s16:{$type:"dimension",$value:{value:16,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 16px"},s24:{$type:"dimension",$value:{value:24,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 24px"},s30:{$type:"dimension",$value:{value:30,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 30px"},s1:{$type:"dimension",$value:{value:1,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 1px"},s15:{$type:"dimension",$value:{value:15,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 15px"},s13:{$type:"dimension",$value:{value:13,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 13px"},s20:{$type:"dimension",$value:{value:20,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 20px"},s29:{$type:"dimension",$value:{value:29,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 29px"},s9:{$type:"dimension",$value:{value:9,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 9px"},s11:{$type:"dimension",$value:{value:11,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 11px"},s115:{$type:"dimension",$value:{value:115,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 115px"},s34:{$type:"dimension",$value:{value:34,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 34px"},s40:{$type:"dimension",$value:{value:40,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 40px"},s28:{$type:"dimension",$value:{value:28,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 28px"},s44:{$type:"dimension",$value:{value:44,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 44px"},s23:{$type:"dimension",$value:{value:23,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 23px"},s70:{$type:"dimension",$value:{value:70,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 70px"},s25:{$type:"dimension",$value:{value:25,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 25px"},s19:{$type:"dimension",$value:{value:19,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 19px"},s47:{$type:"dimension",$value:{value:47,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 47px"}},duration:{s240:{$type:"duration",$value:{value:240,unit:"ms"},$description:"\u5171\u4EAB duration \u523B\u5EA6 240ms"},s800:{$type:"duration",$value:{value:800,unit:"ms"},$description:"\u5171\u4EAB duration \u523B\u5EA6 800ms"},s180:{$type:"duration",$value:{value:180,unit:"ms"},$description:"\u5171\u4EAB duration \u523B\u5EA6 180ms"},s140:{$type:"duration",$value:{value:140,unit:"ms"},$description:"\u5171\u4EAB duration \u523B\u5EA6 140ms"}},opacity:{s0p65:{$type:"number",$value:.65,$description:"\u5171\u4EAB opacity \u523B\u5EA6 0.65"},s0p5:{$type:"number",$value:.5,$description:"\u5171\u4EAB opacity \u523B\u5EA6 0.5"},s0p8:{$type:"number",$value:.8,$description:"\u5171\u4EAB opacity \u523B\u5EA6 0.8"},s0p4:{$type:"number",$value:.4,$description:"\u5171\u4EAB opacity \u523B\u5EA6 0.4"}},shadowSize:{s8:{$type:"dimension",$value:{value:8,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 8px"},s20:{$type:"dimension",$value:{value:20,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 20px"},s12:{$type:"dimension",$value:{value:12,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 12px"},s1:{$type:"dimension",$value:{value:1,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 1px"},s4:{$type:"dimension",$value:{value:4,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 4px"},s10:{$type:"dimension",$value:{value:10,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 10px"},s2:{$type:"dimension",$value:{value:2,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 2px"},s36:{$type:"dimension",$value:{value:36,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 36px"},s5:{$type:"dimension",$value:{value:5,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 5px"},s3:{$type:"dimension",$value:{value:3,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 3px"},s24:{$type:"dimension",$value:{value:24,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 24px"},s80:{$type:"dimension",$value:{value:80,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 80px"},s15:{$type:"dimension",$value:{value:15,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 15px"},s28:{$type:"dimension",$value:{value:28,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 28px"},s14:{$type:"dimension",$value:{value:14,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 14px"},s6:{$type:"dimension",$value:{value:6,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 6px"},s9:{$type:"dimension",$value:{value:9,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 9px"},s0p5:{$type:"dimension",$value:{value:.5,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 0.5px"},s7:{$type:"dimension",$value:{value:7,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 7px"}},layer:{local:{s2:{$type:"number",$value:2,$description:"\u5171\u4EAB layer.local \u523B\u5EA6 2"},s3:{$type:"number",$value:3,$description:"\u5171\u4EAB layer.local \u523B\u5EA6 3"},s1100:{$type:"number",$value:1100,$description:"\u5171\u4EAB layer.local \u523B\u5EA6 1100"},s5:{$type:"number",$value:5,$description:"\u5171\u4EAB layer.local \u523B\u5EA6 5"},s10:{$type:"number",$value:10,$description:"\u5171\u4EAB layer.local \u523B\u5EA6 10"}}},lineClamp:{s4:{$type:"number",$value:4,$description:"\u5171\u4EAB lineClamp \u523B\u5EA6 4"},s2:{$type:"number",$value:2,$description:"\u5171\u4EAB lineClamp \u523B\u5EA6 2"}}}},semantic:{color:{surface:{page:{dark:{$type:"color",$value:"{seed.ui.color.page}",$description:"surface.page\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.965,.973,.988],hex:"#F6F8FC"},$description:"\u6D45\u8272\u9875\u9762\u80CC\u666F"}},default:{dark:{$type:"color",$value:"{seed.ui.color.surface}",$description:"surface.default\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[1,1,1],hex:"#FFFFFF"},$description:"\u6D45\u8272\u9ED8\u8BA4\u8868\u9762"}},raised:{dark:{$type:"color",$value:"{seed.ui.color.elevated}",$description:"surface.raised\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[1,1,1],hex:"#FFFFFF"},$description:"\u6D45\u8272\u62AC\u5347\u8868\u9762"}},control:{dark:{$type:"color",$value:"{seed.ui.color.control}",$description:"surface.control\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.0588,.0902,.1608],hex:"#0F172A",alpha:.06},$description:"\u6D45\u8272\u63A7\u4EF6\u8868\u9762"}},header:{dark:{$type:"color",$value:"{seed.ui.color.header}",$description:"header-background"},light:{$type:"color",$value:{colorSpace:"srgb",components:[1,1,1],hex:"#FFFFFF"},$description:"\u6D45\u8272\u5934\u90E8\u8868\u9762"}},detail:{dark:{$type:"color",$value:"{seed.ui.color.detail}",$description:"sidebar-background"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.949,.961,.98],hex:"#F2F5FA"},$description:"\u6D45\u8272\u8BE6\u60C5\u8868\u9762"}}},text:{primary:{dark:{$type:"color",$value:"{seed.ui.color.foreground}",$description:"text.primary\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.0824,.1255,.2],hex:"#152033"},$description:"\u6D45\u8272\u4E3B\u6587\u672C"}},secondary:{dark:{$type:"color",$value:"{seed.ui.color.muted}",$description:"text.secondary\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.2902,.3333,.4078],hex:"#4A5568"},$description:"\u6D45\u8272\u6B21\u7EA7\u6587\u672C"}},tertiary:{dark:{$type:"color",$value:"{seed.ui.color.subtle}",$description:"text.tertiary\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.4078,.451,.5255],hex:"#687386"},$description:"\u6D45\u8272\u4E09\u7EA7\u6587\u672C"}},onAction:{dark:{$type:"color",$value:"{semantic.color.text.primary.dark}",$description:"\u4E3B\u64CD\u4F5C\u80CC\u666F\u4E0A\u7684\u6587\u5B57"},light:{$type:"color",$value:{colorSpace:"srgb",components:[1,1,1],hex:"#FFFFFF"},$description:"\u6D45\u8272\u4E3B\u64CD\u4F5C\u80CC\u666F\u4E0A\u7684\u6587\u5B57"}}},brand:{accent:{dark:{$type:"color",$value:"{seed.ui.color.primary}",$description:"brand.accent\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.1922,.3647,.8627],hex:"#315DDC"},$description:"\u6D45\u8272\u54C1\u724C\u4E3B\u8272"}},accentHover:{dark:{$type:"color",$value:"{seed.ui.color.primaryHover}",$description:"brand.accentHover\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.1451,.2824,.7137],hex:"#2548B6"},$description:"\u6D45\u8272\u54C1\u724C\u60AC\u505C\u8272"}},secondary:{dark:{$type:"color",$value:"{seed.ui.color.violet}",$description:"brand.secondary\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.4392,.2745,.851],hex:"#7046D9"},$description:"\u6D45\u8272\u54C1\u724C\u8F85\u52A9\u8272"}}},status:{danger:{dark:{$type:"color",$value:"{seed.ui.color.danger}",$description:"status.danger\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.7373,.2157,.2706],hex:"#BC3745"},$description:"\u6D45\u8272\u5371\u9669\u72B6\u6001"}},dangerSurface:{dark:{$type:"color",$value:"{seed.ui.color.dangerBackground}",$description:"status.dangerSurface\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.9922,.9255,.9333],hex:"#FDEBED"},$description:"\u6D45\u8272\u5371\u9669\u72B6\u6001\u8868\u9762"}},success:{dark:{$type:"color",$value:"{seed.ui.color.success}",$description:"status.success\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.0588,.4784,.3255],hex:"#0F7A53"},$description:"\u6D45\u8272\u6210\u529F\u72B6\u6001"}}},border:{default:{dark:{$type:"color",$value:"{seed.ui.color.border}",$description:"border.default\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.0588,.0902,.1608],hex:"#0F172A",alpha:.14},$description:"\u6D45\u8272\u9ED8\u8BA4\u8FB9\u6846"}},active:{dark:{$type:"color",$value:"{seed.ui.color.activeBorder}",$description:"\u6FC0\u6D3B\u63A7\u4EF6\u63CF\u8FB9\uFF1B\u4E0E\u9009\u4E2D\u80CC\u666F\u914D\u5957\uFF0C\u53EF\u7531\u4E3B\u9898\u8986\u76D6"},light:{$type:"color",$value:"{seed.ui.color.activeBorder}",$description:"\u6D45\u8272\u6FC0\u6D3B\u63A7\u4EF6\u63CF\u8FB9"}}},scrim:{media:{dark:{$type:"color",$value:"{seed.ui.color.info}",$description:"scrim.media\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.0588,.0902,.1608],hex:"#0F172A",alpha:.72},$description:"\u6D45\u8272\u5A92\u4F53\u906E\u7F69"}},backdrop:{dark:{$type:"color",$value:"{seed.ui.color.overlay}",$description:"scrim.backdrop\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.0588,.0902,.1608],hex:"#0F172A",alpha:.45},$description:"\u6D45\u8272\u80CC\u666F\u906E\u7F69"}},preview:{dark:{$type:"color",$value:{colorSpace:"srgb",components:[0,0,0],hex:"#000000",alpha:.65},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.0588,.0902,.1608],hex:"#0F172A",alpha:.58},$description:"\u6D45\u8272\u9884\u89C8\u906E\u7F69"}}},primary:{dark:{$type:"color",$value:"{seed.ui.color.primaryAccessible}",$description:"\u4E3B\u64CD\u4F5C\u8272\uFF0C\u9700\u4E0E onAction \u9A8C\u8BC1\u5BF9\u6BD4\u5EA6"},light:{$type:"color",$value:"{semantic.color.brand.accent.light}",$description:"\u6D45\u8272\u4E3B\u64CD\u4F5C\u8272"}},focus:{ring:{dark:{$type:"color",$value:"{semantic.color.primary.dark}",$description:"\u952E\u76D8\u7126\u70B9\u8272\uFF0C\u53EF\u72EC\u7ACB\u8986\u76D6"},light:{$type:"color",$value:"{semantic.color.brand.accent.light}",$description:"\u6D45\u8272\u952E\u76D8\u7126\u70B9\u8272"}}},action:{primaryHover:{dark:{$type:"color",$value:"{semantic.color.primary.dark}",$description:"\u4E3B\u64CD\u4F5C\u60AC\u505C\u72B6\u6001"},light:{$type:"color",$value:"{semantic.color.brand.accentHover.light}",$description:"\u6D45\u8272\u4E3B\u64CD\u4F5C\u60AC\u505C\u72B6\u6001"}}},effect:{start:{dark:{$type:"color",$value:"{seed.ui.color.blueGlow}",$description:"\u7279\u6548\u8272\u6E90\uFF1BShader \u4F7F\u7528\u7EAF\u8272\u4E0E\u72EC\u7ACB\u5F3A\u5EA6"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.1765,.4196,.9216],hex:"#2D6BEA",alpha:.3},$description:"\u6D45\u8272\u7279\u6548\u8D77\u59CB\u8272"}},end:{dark:{$type:"color",$value:"{seed.ui.color.violetGlow}",$description:"\u7279\u6548\u8272\u6E90\uFF1BShader \u4F7F\u7528\u7EAF\u8272\u4E0E\u72EC\u7ACB\u5F3A\u5EA6"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.502,.3373,.9098],hex:"#8056E8",alpha:.42},$description:"\u6D45\u8272\u7279\u6548\u7ED3\u675F\u8272"}},lightEdgeStart:{dark:{$type:"color",$value:"{seed.ui.color.lightEdgeBlue}",$description:"\u7279\u6548\u8272\u6E90\uFF1BShader \u4F7F\u7528\u7EAF\u8272\u4E0E\u72EC\u7ACB\u5F3A\u5EA6"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.1412,.4549,.9412],hex:"#2473F0"},$description:"\u6D45\u8272 LightEdge \u8D77\u59CB\u8272"}}},sample:{inkLight:{$type:"color",$value:"{seed.ui.color.white}",$description:"sample-ink-light"},inkDark:{$type:"color",$value:"{seed.ui.color.black}",$description:"sample-ink-dark"}}},font:{body:{$type:"fontFamily",$value:["system-ui","sans-serif"],$description:"\u6B63\u6587\u4E0E\u63A7\u4EF6\u5B57\u4F53"},size:{xs:{$type:"dimension",$value:{value:12,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 12px"},ui11:{$type:"dimension",$value:{value:11,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 11px"},ui17:{$type:"dimension",$value:{value:17,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 17px"},sm:{$type:"dimension",$value:{value:14,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 14px"},ui22:{$type:"dimension",$value:{value:22,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 22px"},xl:{$type:"dimension",$value:{value:20,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 20px"},ui10:{$type:"dimension",$value:{value:10,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 10px"},lg:{$type:"dimension",$value:{value:18,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 18px"},ui28:{$type:"dimension",$value:{value:28,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 28px"},ui42:{$type:"dimension",$value:{value:42,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 42px"},base:{$type:"dimension",$value:{value:16,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 16px"},ui15:{$type:"dimension",$value:{value:15,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 15px"},ui21:{$type:"dimension",$value:{value:21,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 21px"},ui13:{$type:"dimension",$value:{value:13,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 13px"},"4xl":{$type:"dimension",$value:{value:36,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 36px"},"3xl":{$type:"dimension",$value:{value:30,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 30px"},ui9:{$type:"dimension",$value:{value:9,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 9px"}}},ui:{control:{height:{sm:{$type:"dimension",$value:{value:28,unit:"px"},$description:"sm \u63A7\u4EF6\u9AD8\u5EA6"},md:{$type:"dimension",$value:{value:34,unit:"px"},$description:"md \u63A7\u4EF6\u9AD8\u5EA6"},lg:{$type:"dimension",$value:{value:42,unit:"px"},$description:"lg \u63A7\u4EF6\u9AD8\u5EA6"}},paddingInline:{sm:{$type:"dimension",$value:"{seed.ui.space.s10}",$description:"sm \u63A7\u4EF6\u6A2A\u5411\u7559\u767D"},md:{$type:"dimension",$value:"{seed.ui.space.s18}",$description:"md \u63A7\u4EF6\u6A2A\u5411\u7559\u767D"},lg:{$type:"dimension",$value:"{seed.ui.space.s22}",$description:"lg \u63A7\u4EF6\u6A2A\u5411\u7559\u767D"}}},radius:{control:{$type:"dimension",$value:"{seed.ui.radius.r24}",$description:"control \u5706\u89D2\u8BED\u4E49\uFF0C\u53EF\u72EC\u7ACB\u8986\u76D6"},container:{$type:"dimension",$value:"{seed.ui.radius.r16}",$description:"container \u5706\u89D2\u8BED\u4E49\uFF0C\u53EF\u72EC\u7ACB\u8986\u76D6"},content:{$type:"dimension",$value:"{seed.ui.radius.r12}",$description:"content \u5706\u89D2\u8BED\u4E49\uFF0C\u53EF\u72EC\u7ACB\u8986\u76D6"},pill:{$type:"dimension",$value:"{seed.ui.radius.r999}",$description:"pill \u5706\u89D2\u8BED\u4E49\uFF0C\u53EF\u72EC\u7ACB\u8986\u76D6"}},spacing:{fieldGap:{$type:"dimension",$value:"{seed.ui.space.s6}",$description:"fieldGap \u5171\u4EAB\u95F4\u8DDD"},controlGap:{$type:"dimension",$value:"{seed.ui.space.s6}",$description:"controlGap \u5171\u4EAB\u95F4\u8DDD"},sectionGap:{$type:"dimension",$value:"{seed.ui.space.s24}",$description:"sectionGap \u5171\u4EAB\u95F4\u8DDD"},surfacePadding:{$type:"dimension",$value:"{seed.ui.space.s16}",$description:"surfacePadding \u5171\u4EAB\u95F4\u8DDD"},pagePadding:{$type:"dimension",$value:"{seed.ui.space.s14}",$description:"pagePadding \u5171\u4EAB\u95F4\u8DDD"}},icon:{size:{sm:{$type:"dimension",$value:"{seed.ui.size.s14}",$description:"sm \u56FE\u6807\u5C3A\u5BF8"},md:{$type:"dimension",$value:"{seed.ui.size.s16}",$description:"md \u56FE\u6807\u5C3A\u5BF8"},lg:{$type:"dimension",$value:"{seed.ui.size.s20}",$description:"lg \u56FE\u6807\u5C3A\u5BF8"},xl:{$type:"dimension",$value:"{seed.ui.size.s24}",$description:"xl \u56FE\u6807\u5C3A\u5BF8"}},target:{sm:{$type:"dimension",$value:"{seed.ui.size.s24}",$description:"sm \u56FE\u6807\u70B9\u51FB\u533A\u57DF"},md:{$type:"dimension",$value:"{seed.ui.size.s28}",$description:"md \u56FE\u6807\u70B9\u51FB\u533A\u57DF"},lg:{$type:"dimension",$value:"{seed.ui.size.s36}",$description:"lg \u56FE\u6807\u70B9\u51FB\u533A\u57DF"}}},opacity:{disabled:{$type:"number",$value:.5,$description:"disabled \u5171\u4EAB\u72B6\u6001\u900F\u660E\u5EA6"},busy:{$type:"number",$value:.8,$description:"busy \u5171\u4EAB\u72B6\u6001\u900F\u660E\u5EA6"}},motion:{pressDuration:{$type:"duration",$value:"{seed.ui.duration.s140}",$description:"pressDuration \u52A8\u6548\u65F6\u957F"},popupDuration:{$type:"duration",$value:"{seed.ui.duration.s180}",$description:"popupDuration \u52A8\u6548\u65F6\u957F"},revealDuration:{$type:"duration",$value:"{seed.ui.duration.s240}",$description:"revealDuration \u52A8\u6548\u65F6\u957F"},spinnerDuration:{$type:"duration",$value:"{seed.ui.duration.s800}",$description:"spinnerDuration \u52A8\u6548\u65F6\u957F"},pressedScale:{$type:"number",$value:.97,$description:"\u6309\u4E0B\u4E0E\u6D6E\u5C42\u8FDB\u5165\u7F29\u653E"},hoverBrightness:{$type:"number",$value:1.14,$description:"\u6309\u94AE\u60AC\u505C\u4EAE\u5EA6"}},glass:{blur:{$type:"dimension",$value:{value:14,unit:"px"},$description:"\u901A\u7528\u6BDB\u73BB\u7483\u6A21\u7CCA\u534A\u5F84"},saturation:{$type:"number",$value:1.25,$description:"\u901A\u7528\u6BDB\u73BB\u7483\u9971\u548C\u5EA6"}}}},component:{chart:{radar:{grid:{$type:"color",$value:"{semantic.color.border.default.dark}",$description:"\u96F7\u8FBE\u56FE\u7F51\u683C\u7EBF"},axis:{$type:"color",$value:"{semantic.color.border.default.dark}",$description:"\u96F7\u8FBE\u56FE\u7EF4\u5EA6\u8F74\u7EBF"},fillStart:{$type:"color",$value:"{semantic.color.brand.accent.dark}",$description:"\u96F7\u8FBE\u56FE\u6E10\u53D8\u8D77\u59CB\u8272\u548C\u8F6E\u5ED3"},fillEnd:{$type:"color",$value:"{semantic.color.brand.secondary.dark}",$description:"\u96F7\u8FBE\u56FE\u6E10\u53D8\u7ED3\u675F\u8272"},glow:{$type:"color",$value:"{semantic.color.brand.secondary.dark}",$description:"\u96F7\u8FBE\u56FE\u67D4\u5149"},label:{$type:"color",$value:"{semantic.color.text.secondary.dark}",$description:"\u96F7\u8FBE\u56FE\u7EF4\u5EA6\u6807\u7B7E"},value:{$type:"color",$value:"{semantic.color.text.primary.dark}",$description:"\u96F7\u8FBE\u56FE\u4E2D\u5FC3\u503C"}}},ui:{page:{$type:"color",$value:"{semantic.color.surface.page.dark}",$description:"surface.page\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},surface:{$type:"color",$value:"{semantic.color.surface.default.dark}",$description:"surface.default\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},elevated:{$type:"color",$value:"{semantic.color.surface.raised.dark}",$description:"surface.raised\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},control:{$type:"color",$value:"{semantic.color.surface.control.dark}",$description:"surface.control\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},foreground:{$type:"color",$value:"{semantic.color.text.primary.dark}",$description:"text.primary\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},muted:{$type:"color",$value:"{semantic.color.text.secondary.dark}",$description:"text.secondary\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},subtle:{$type:"color",$value:"{semantic.color.text.tertiary.dark}",$description:"text.tertiary\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},primary:{$type:"color",$value:"{semantic.color.brand.accent.dark}",$description:"brand.accent\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},primaryHover:{$type:"color",$value:"{semantic.color.brand.accentHover.dark}",$description:"brand.accentHover\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},violet:{$type:"color",$value:"{semantic.color.brand.secondary.dark}",$description:"brand.secondary\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},danger:{$type:"color",$value:"{semantic.color.status.danger.dark}",$description:"status.danger\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},dangerBackground:{$type:"color",$value:"{semantic.color.status.dangerSurface.dark}",$description:"status.dangerSurface\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},success:{$type:"color",$value:"{semantic.color.status.success.dark}",$description:"status.success\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},border:{$type:"color",$value:"{semantic.color.border.default.dark}",$description:"border.default\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},info:{$type:"color",$value:"{semantic.color.scrim.media.dark}",$description:"scrim.media\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},overlay:{$type:"color",$value:"{semantic.color.scrim.backdrop.dark}",$description:"scrim.backdrop\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},focus:{$type:"color",$value:"{semantic.color.focus.ring.dark}",$description:"\u7126\u70B9\u73AF\u4E0E\u805A\u7126\u63CF\u8FB9"},button:{primary:{background:{$type:"color",$value:"{semantic.color.primary.dark}",$description:"\u4E3B\u6309\u94AE\u80CC\u666F"},hover:{$type:"color",$value:"{semantic.color.action.primaryHover.dark}",$description:"\u4E3B\u6309\u94AE\u60AC\u505C\u80CC\u666F"},foreground:{$type:"color",$value:"{semantic.color.text.onAction.dark}",$description:"\u4E3B\u64CD\u4F5C\u6587\u5B57"}},height:{sm:{$type:"dimension",$value:{value:28,unit:"px"},$description:".monkeys-ui-button[data-size=sm] min-height"},lg:{$type:"dimension",$value:{value:42,unit:"px"},$description:".monkeys-ui-button[data-size=lg] min-height"}},glass:{blur:{$type:"dimension",$value:"{semantic.ui.glass.blur}",$description:"Inner Light Edge \u6309\u94AE\u73BB\u7483 blur"},saturation:{$type:"number",$value:"{semantic.ui.glass.saturation}",$description:"Inner Light Edge \u6309\u94AE\u73BB\u7483 saturation"},inactiveOpacity:{$type:"number",$value:.45,$description:"\u672A\u9009\u4E2D\u73BB\u7483\u5207\u6362\u6309\u94AE\u7684\u4E0D\u900F\u660E\u5EA6"}},gap:{$type:"dimension",$value:"{semantic.ui.spacing.controlGap}",$description:"button gap \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"},paddingInline:{sm:{$type:"dimension",$value:"{semantic.ui.control.paddingInline.sm}",$description:"button paddingInline.sm \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"},md:{$type:"dimension",$value:"{semantic.ui.control.paddingInline.md}",$description:"button paddingInline.md \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"},lg:{$type:"dimension",$value:"{semantic.ui.control.paddingInline.lg}",$description:"button paddingInline.lg \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"}},paddingBlock:{$type:"dimension",$value:"{component.ui.density.default.buttonPaddingBlock}",$description:"\u9ED8\u8BA4\u6309\u94AE\u7EB5\u5411\u7559\u767D\uFF1B\u5C3A\u5BF8\u53D8\u4F53\u53EF\u8986\u76D6"}},transparent:{$type:"color",$value:"{seed.ui.color.transparent}",$description:"transparent"},"header-background":{$type:"color",$value:"{semantic.color.surface.header.dark}",$description:"\u517C\u5BB9\u989C\u8272\u51FA\u53E3"},"sidebar-background":{$type:"color",$value:"{semantic.color.surface.detail.dark}",$description:"\u517C\u5BB9\u989C\u8272\u51FA\u53E3"},sidebar:{surface:{$type:"color",$value:"{semantic.color.surface.page.dark}",$description:"Sidebar \u6DF1\u8272\u5BFC\u822A\u9762\u677F\u80CC\u666F"},foreground:{$type:"color",$value:"{semantic.color.text.secondary.dark}",$description:"Sidebar \u672A\u9009\u4E2D\u9879\u6587\u5B57\u4E0E\u56FE\u6807"},activeForeground:{$type:"color",$value:"{semantic.color.text.primary.dark}",$description:"Sidebar \u9009\u4E2D\u9879\u6587\u5B57\u4E0E\u56FE\u6807\uFF1B\u5149\u6548\u590D\u7528 Button lightEdge token"},borderColor:{$type:"color",$value:"{semantic.color.border.default.dark}",$description:"Sidebar \u63CF\u8FB9\u4E0E\u5B50\u9879\u5F15\u5BFC\u7EBF\u57FA\u7840\u8272"},borderStart:{$type:"color",$value:"{semantic.color.effect.start.dark}",$description:"Sidebar \u5916\u5C42\u6E10\u53D8\u63CF\u8FB9\u8D77\u59CB\u8272"},borderEnd:{$type:"color",$value:"{semantic.color.effect.end.dark}",$description:"Sidebar \u5916\u5C42\u6E10\u53D8\u63CF\u8FB9\u7ED3\u675F\u8272"},radius:{$type:"dimension",$value:"{seed.ui.radius.r24}",$description:"Sidebar \u5916\u5C42\u9762\u677F\u5706\u89D2"},itemRadius:{$type:"dimension",$value:"{semantic.ui.radius.content}",$description:"Sidebar \u5BFC\u822A\u9879\u5706\u89D2\uFF1BInner Light Edge \u81EA\u52A8\u9075\u5FAA\u6B64\u5F62\u72B6"},padding:{$type:"dimension",$value:"{seed.ui.space.s12}",$description:"Sidebar \u9762\u677F\u5185\u8FB9\u8DDD"},itemGap:{$type:"dimension",$value:"{seed.ui.space.s16}",$description:"Sidebar \u4E00\u7EA7\u5BFC\u822A\u9879\u95F4\u8DDD"},itemHeight:{$type:"dimension",$value:"{seed.ui.size.s56}",$description:"Sidebar \u4E00\u7EA7\u9879\u6700\u5C0F\u9AD8\u5EA6\uFF1B\u957F\u6587\u5B57\u53EF\u4EE5\u589E\u9AD8"},childHeight:{$type:"dimension",$value:"{seed.ui.size.s48}",$description:"Sidebar \u5B50\u9879\u6700\u5C0F\u9AD8\u5EA6"},itemPadding:{$type:"dimension",$value:"{semantic.ui.spacing.surfacePadding}",$description:"Sidebar \u5BFC\u822A\u9879\u6C34\u5E73\u5185\u8FB9\u8DDD"},iconSize:{$type:"dimension",$value:"{semantic.ui.icon.size.lg}",$description:"Sidebar \u56FE\u6807\u5C3A\u5BF8\uFF1B\u540C\u65F6\u5B9A\u4E49\u5B50\u9879\u5F15\u5BFC\u7EBF\u4F4D\u7F6E"},iconGap:{$type:"dimension",$value:"{seed.ui.space.s12}",$description:"Sidebar \u56FE\u6807\u4E0E\u6587\u5B57\u95F4\u8DDD\u53CA\u5B50\u9879\u5F15\u5BFC\u7EBF\u7559\u767D"},fontSize:{$type:"dimension",$value:"{semantic.font.size.base}",$description:"Sidebar \u5BFC\u822A\u6587\u5B57\u5B57\u53F7"},collapsedWidth:{$type:"dimension",$value:{value:136,unit:"px"},$description:"Sidebar \u7A84\u7248\u9762\u677F\u5BBD\u5EA6\uFF1B\u7531\u5BFC\u822A\u9879\u5BBD\u5EA6\u4E0E\u4E24\u4FA7\u7559\u767D\u7EC4\u6210"},expandedWidth:{$type:"dimension",$value:{value:210,unit:"px"},$description:"Sidebar \u5BBD\u7248\u5BBD\u5EA6"},collapsedItemHeight:{$type:"dimension",$value:{value:94,unit:"px"},$description:"Sidebar \u7A84\u7248\u5BFC\u822A\u9879\u9AD8\u5EA6\uFF1B\u7531\u56FE\u6807\u3001\u6587\u5B57\u548C\u70B9\u51FB\u7559\u767D\u7EC4\u6210"},collapsedItemWidth:{$type:"dimension",$value:{value:110,unit:"px"},$description:"Sidebar \u7A84\u7248\u5BFC\u822A\u9879\u5BBD\u5EA6\uFF1B\u4E0E\u7A84\u7248\u622A\u56FE\u6BD4\u4F8B\u4E00\u81F4"},collapsedIconSize:{$type:"dimension",$value:{value:32,unit:"px"},$description:"Sidebar \u7A84\u7248\u56FE\u6807\u5C3A\u5BF8"},collapsedIconGap:{$type:"dimension",$value:{value:12,unit:"px"},$description:"Sidebar \u7A84\u7248\u56FE\u6807\u4E0E\u77ED\u6807\u9898\u95F4\u8DDD"},collapsedRadius:{$type:"dimension",$value:{value:32,unit:"px"},$description:"Sidebar \u7A84\u7248\u5916\u6846\u5706\u89D2"},toggleSize:{$type:"dimension",$value:"{seed.ui.size.s32}",$description:"Sidebar \u5E95\u90E8\u5BBD\u7A84\u7248\u5207\u6362\u6309\u94AE\u5C3A\u5BF8"},surfaceTransparent:{$type:"color",$value:{colorSpace:"srgb",components:[0,0,0],alpha:0},$description:"Sidebar \u5E95\u90E8\u5207\u6362\u6309\u94AE\u6E10\u9690\u5C42\u900F\u660E\u7AEF"}},"sample-ink-light":{$type:"color",$value:"{semantic.color.sample.inkLight}",$description:"\u517C\u5BB9\u989C\u8272\u51FA\u53E3"},"sample-ink-dark":{$type:"color",$value:"{semantic.color.sample.inkDark}",$description:"\u517C\u5BB9\u989C\u8272\u51FA\u53E3"},previewInfo:{$type:"color",$value:"{semantic.color.scrim.preview.dark}",$description:"\u9884\u89C8\u4FE1\u606F\u8868\u9762\uFF1B\u4FDD\u7559\u5F53\u524D 65% alpha"},blueGlow:{$type:"color",$value:"{seed.ui.color.blueGlow}",$description:"\u88C5\u9970\u8272\u4E0E\u900F\u660E\u5EA6\uFF0CShader \u53E6\u53D6\u7EAF\u8272"},violetGlow:{$type:"color",$value:"{seed.ui.color.violetGlow}",$description:"\u88C5\u9970\u8272\u4E0E\u900F\u660E\u5EA6\uFF0CShader \u53E6\u53D6\u7EAF\u8272"},font:{$type:"fontFamily",$value:"{semantic.font.body}",$description:"\u5B57\u4F53\u517C\u5BB9\u5165\u53E3"},radius:{panel:{$type:"dimension",$value:"{semantic.ui.radius.container}",$description:"panel \u5706\u89D2\u51FA\u53E3"},card:{$type:"dimension",$value:"{semantic.ui.radius.container}",$description:"card \u5706\u89D2\u51FA\u53E3"},control:{$type:"dimension",$value:"{semantic.ui.radius.control}",$description:"control \u5706\u89D2\u51FA\u53E3"},info:{$type:"dimension",$value:"{semantic.ui.radius.content}",$description:"info \u5706\u89D2\u51FA\u53E3"},scale:{s24:{$type:"dimension",$value:"{seed.ui.radius.r24}",$description:"\u5171\u4EAB\u5706\u89D2\u523B\u5EA6"},s999:{$type:"dimension",$value:"{seed.ui.radius.r999}",$description:"\u5171\u4EAB\u5706\u89D2\u523B\u5EA6"},s12:{$type:"dimension",$value:"{seed.ui.radius.r12}",$description:"\u5171\u4EAB\u5706\u89D2\u523B\u5EA6"},s8:{$type:"dimension",$value:"{seed.ui.radius.scale.s8}",$description:"radius.scale \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s4:{$type:"dimension",$value:"{seed.ui.radius.scale.s4}",$description:"radius.scale \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s16:{$type:"dimension",$value:"{seed.ui.radius.r16}",$description:"\u5171\u4EAB\u5706\u89D2\u523B\u5EA6"},s10:{$type:"dimension",$value:"{seed.ui.radius.scale.s10}",$description:"radius.scale \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s20:{$type:"dimension",$value:"{seed.ui.radius.scale.s20}",$description:"radius.scale \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s2:{$type:"dimension",$value:"{seed.ui.radius.scale.s2}",$description:"radius.scale \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s18:{$type:"dimension",$value:"{seed.ui.radius.scale.s18}",$description:"radius.scale \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}}},motion:{press:{$type:"duration",$value:"{semantic.ui.motion.pressDuration}",$description:"\u517C\u5BB9\u6309\u4E0B\u65F6\u957F"},popup:{$type:"duration",$value:"{semantic.ui.motion.popupDuration}",$description:"\u517C\u5BB9\u6D6E\u5C42\u65F6\u957F"},ease:{$type:"cubicBezier",$value:[.2,.8,.2,1],$description:"component.ui.motion.ease"},pressedScale:{$type:"number",$value:"{semantic.ui.motion.pressedScale}",$description:"\u6309\u94AE\u4E0E\u6D6E\u5C42\u7F29\u653E"},hoverBrightness:{$type:"number",$value:"{semantic.ui.motion.hoverBrightness}",$description:"\u6309\u94AE\u60AC\u505C\u4EAE\u5EA6"}},controlHeight:{$type:"dimension",$value:"{semantic.ui.control.height.md}",$description:"\u5E38\u89C4\u63A7\u4EF6\u9AD8\u5EA6\u517C\u5BB9\u5165\u53E3"},layout:{stackGap:{$type:"dimension",$value:"{seed.ui.space.s16}",$description:"stackGap \u5E03\u5C40\u9ED8\u8BA4\u503C\uFF1B\u5B9E\u4F8B\u5C5E\u6027\u4F18\u5148"},sidebarWidth:{$type:"dimension",$value:{value:252,unit:"px"},$description:"sidebarWidth \u5E03\u5C40\u9ED8\u8BA4\u503C\uFF1B\u5B9E\u4F8B\u5C5E\u6027\u4F18\u5148"},cardMinWidth:{$type:"dimension",$value:{value:178,unit:"px"},$description:"cardMinWidth \u5E03\u5C40\u9ED8\u8BA4\u503C\uFF1B\u5B9E\u4F8B\u5C5E\u6027\u4F18\u5148"},gridGap:{$type:"dimension",$value:"{seed.ui.space.s20}",$description:"gridGap \u5E03\u5C40\u9ED8\u8BA4\u503C\uFF1B\u5B9E\u4F8B\u5C5E\u6027\u4F18\u5148"}},layer:{overlayBase:{$type:"number",$value:1200,$description:"overlayBase \u5F39\u5C42\u5C42\u7EA7"},nestingStep:{$type:"number",$value:10,$description:"nestingStep \u5F39\u5C42\u5C42\u7EA7"},contentOffset:{$type:"number",$value:1,$description:"contentOffset \u5F39\u5C42\u5C42\u7EA7"},local:{s2:{$type:"number",$value:"{seed.ui.layer.local.s2}",$description:"layer.local \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s3:{$type:"number",$value:"{seed.ui.layer.local.s3}",$description:"layer.local \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1100:{$type:"number",$value:"{seed.ui.layer.local.s1100}",$description:"layer.local \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s5:{$type:"number",$value:"{seed.ui.layer.local.s5}",$description:"layer.local \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s10:{$type:"number",$value:"{seed.ui.layer.local.s10}",$description:"layer.local \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}}},effect:{hostHeight:{$type:"dimension",$value:{value:240,unit:"px"},$description:"\u72EC\u7ACB\u7279\u6548\u9ED8\u8BA4\u9AD8\u5EA6"},chroma:{intensity:{$type:"number",$value:.7,$description:"chroma \u7684 intensity\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},momentum:{$type:"number",$value:23,$description:"chroma \u7684 momentum\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},radius:{$type:"number",$value:6,$description:"chroma \u7684 radius\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"}},aurora:{curtainCount:{$type:"number",$value:2,$description:"aurora \u7684 curtainCount\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},height:{$type:"number",$value:81,$description:"aurora \u7684 height\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},intensity:{$type:"number",$value:64,$description:"aurora \u7684 intensity\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},rayDensity:{$type:"number",$value:12,$description:"aurora \u7684 rayDensity\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},speed:{$type:"number",$value:10,$description:"aurora \u7684 speed\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},waviness:{$type:"number",$value:39,$description:"aurora \u7684 waviness\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},rotation:{$type:"number",$value:180,$description:"aurora \u7684 rotation\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"}},lightEdge:{thickness:{$type:"number",$value:.48,$description:"lightEdge \u7684 thickness\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},softness:{$type:"number",$value:1,$description:"lightEdge \u7684 softness\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},intensity:{$type:"number",$value:.9,$description:"lightEdge \u7684 intensity\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},bloom:{$type:"number",$value:.2,$description:"lightEdge \u7684 bloom\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},spots:{$type:"number",$value:1,$description:"lightEdge \u7684 spots\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},spotSize:{$type:"number",$value:.6,$description:"lightEdge \u7684 spotSize\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},smoke:{$type:"number",$value:.12,$description:"lightEdge \u7684 smoke\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},smokeSize:{$type:"number",$value:.65,$description:"lightEdge \u7684 smokeSize\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},speed:{$type:"number",$value:.45,$description:"lightEdge \u7684 speed\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},glowBlur:{$type:"number",$value:4.5,$description:"lightEdge \u7684 glowBlur\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},flowBlur:{$type:"number",$value:1,$description:"lightEdge \u7684 flowBlur\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},shapeInset:{$type:"number",$value:1.5,$description:"lightEdge \u7684 shapeInset\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"}},bottomGlow:{referenceWidth:{$type:"dimension",$value:{value:730,unit:"px"},$description:"bottomGlow \u9AD8\u5EA6\u4E0E\u6A21\u7CCA\u53C2\u6570\u5BF9\u5E94\u7684\u57FA\u51C6\u5BB9\u5668\u5BBD\u5EA6\uFF1B\u5B9E\u9645\u5149\u6655\u968F\u5BB9\u5668\u5BBD\u5EA6\u7B49\u6BD4\u7F29\u653E"},intensity:{$type:"number",$value:.95,$description:"bottomGlow \u5E95\u90E8\u5149\u6655\u5F3A\u5EA6"},height:{$type:"dimension",$value:{value:260,unit:"px"},$description:"bottomGlow \u5149\u6655\u533A\u57DF\u9AD8\u5EA6"},blur:{$type:"dimension",$value:{value:28,unit:"px"},$description:"bottomGlow \u67D4\u5316\u6A21\u7CCA\u534A\u5F84"},duration:{$type:"duration",$value:{value:9,unit:"s"},$description:"bottomGlow \u5149\u6655\u6F02\u79FB\u52A8\u753B\u65F6\u957F"}}},typography:{size:{s12:{$type:"dimension",$value:"{semantic.font.size.xs}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s11:{$type:"dimension",$value:"{semantic.font.size.ui11}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s17:{$type:"dimension",$value:"{semantic.font.size.ui17}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s14:{$type:"dimension",$value:"{semantic.font.size.sm}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s22:{$type:"dimension",$value:"{semantic.font.size.ui22}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s20:{$type:"dimension",$value:"{semantic.font.size.xl}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s10:{$type:"dimension",$value:"{semantic.font.size.ui10}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s18:{$type:"dimension",$value:"{semantic.font.size.lg}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s28:{$type:"dimension",$value:"{semantic.font.size.ui28}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s42:{$type:"dimension",$value:"{semantic.font.size.ui42}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s16:{$type:"dimension",$value:"{semantic.font.size.base}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s15:{$type:"dimension",$value:"{semantic.font.size.ui15}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s21:{$type:"dimension",$value:"{semantic.font.size.ui21}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s13:{$type:"dimension",$value:"{semantic.font.size.ui13}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s36:{$type:"dimension",$value:"{semantic.font.size.4xl}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s30:{$type:"dimension",$value:"{semantic.font.size.3xl}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s9:{$type:"dimension",$value:"{semantic.font.size.ui9}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}},lineHeight:{s1p5:{$type:"number",$value:"{seed.ui.typography.lineHeight.s1p5}",$description:"typography.lineHeight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1p4:{$type:"number",$value:"{seed.ui.typography.lineHeight.s1p4}",$description:"typography.lineHeight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1p3:{$type:"number",$value:"{seed.ui.typography.lineHeight.s1p3}",$description:"typography.lineHeight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1p2:{$type:"number",$value:"{seed.ui.typography.lineHeight.s1p2}",$description:"typography.lineHeight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}},weight:{s500:{$type:"number",$value:"{seed.ui.typography.weight.s500}",$description:"typography.weight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s600:{$type:"number",$value:"{seed.ui.typography.weight.s600}",$description:"typography.weight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s700:{$type:"number",$value:"{seed.ui.typography.weight.s700}",$description:"typography.weight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s800:{$type:"number",$value:"{seed.ui.typography.weight.s800}",$description:"typography.weight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s200:{$type:"number",$value:"{seed.ui.typography.weight.s200}",$description:"typography.weight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s400:{$type:"number",$value:"{seed.ui.typography.weight.s400}",$description:"typography.weight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}}},size:{s2:{$type:"dimension",$value:"{seed.ui.size.s2}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s3:{$type:"dimension",$value:"{seed.ui.size.s3}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1:{$type:"dimension",$value:"{seed.ui.size.s1}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s28:{$type:"dimension",$value:"{seed.ui.size.s28}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s42:{$type:"dimension",$value:"{seed.ui.size.s42}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s14:{$type:"dimension",$value:"{seed.ui.size.s14}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s24:{$type:"dimension",$value:"{seed.ui.size.s24}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s18:{$type:"dimension",$value:"{seed.ui.size.s18}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s40:{$type:"dimension",$value:"{seed.ui.size.s40}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s16:{$type:"dimension",$value:"{seed.ui.size.s16}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s20:{$type:"dimension",$value:"{seed.ui.size.s20}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s22:{$type:"dimension",$value:"{seed.ui.size.s22}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s140:{$type:"dimension",$value:"{seed.ui.size.s140}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s85:{$type:"dimension",$value:"{seed.ui.size.s85}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s34:{$type:"dimension",$value:"{seed.ui.size.s34}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s320:{$type:"dimension",$value:"{seed.ui.size.s320}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s160:{$type:"dimension",$value:"{seed.ui.size.s160}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s280:{$type:"dimension",$value:"{seed.ui.size.s280}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s32:{$type:"dimension",$value:"{seed.ui.size.s32}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s53:{$type:"dimension",$value:"{seed.ui.size.s53}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s26:{$type:"dimension",$value:"{seed.ui.size.s26}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s8:{$type:"dimension",$value:"{seed.ui.size.s8}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s62:{$type:"dimension",$value:"{seed.ui.size.s62}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s10:{$type:"dimension",$value:"{seed.ui.size.s10}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s4:{$type:"dimension",$value:"{seed.ui.size.s4}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s5:{$type:"dimension",$value:"{seed.ui.size.s5}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s196:{$type:"dimension",$value:"{seed.ui.size.s196}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s480:{$type:"dimension",$value:"{seed.ui.size.s480}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1000:{$type:"dimension",$value:"{seed.ui.size.s1000}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s660:{$type:"dimension",$value:"{seed.ui.size.s660}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s48:{$type:"dimension",$value:"{seed.ui.size.s48}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s100:{$type:"dimension",$value:"{seed.ui.size.s100}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s64:{$type:"dimension",$value:"{seed.ui.size.s64}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s12:{$type:"dimension",$value:"{seed.ui.size.s12}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s6:{$type:"dimension",$value:"{seed.ui.size.s6}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s168:{$type:"dimension",$value:"{seed.ui.size.s168}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s96:{$type:"dimension",$value:"{seed.ui.size.s96}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s56:{$type:"dimension",$value:"{seed.ui.size.s56}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1p5:{$type:"dimension",$value:"{seed.ui.size.s1p5}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s220:{$type:"dimension",$value:"{seed.ui.size.s220}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s379:{$type:"dimension",$value:"{seed.ui.size.s379}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s68:{$type:"dimension",$value:"{seed.ui.size.s68}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s108:{$type:"dimension",$value:"{seed.ui.size.s108}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s70:{$type:"dimension",$value:"{seed.ui.size.s70}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s57:{$type:"dimension",$value:"{seed.ui.size.s57}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s15:{$type:"dimension",$value:"{seed.ui.size.s15}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s244:{$type:"dimension",$value:"{seed.ui.size.s244}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s78:{$type:"dimension",$value:"{seed.ui.size.s78}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s36:{$type:"dimension",$value:"{seed.ui.size.s36}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s23:{$type:"dimension",$value:"{seed.ui.size.s23}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s117:{$type:"dimension",$value:"{seed.ui.size.s117}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s110:{$type:"dimension",$value:"{seed.ui.size.s110}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s156:{$type:"dimension",$value:"{seed.ui.size.s156}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s125:{$type:"dimension",$value:"{seed.ui.size.s125}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s121:{$type:"dimension",$value:"{seed.ui.size.s121}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s127:{$type:"dimension",$value:"{seed.ui.size.s127}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s55:{$type:"dimension",$value:"{seed.ui.size.s55}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s178:{$type:"dimension",$value:"{seed.ui.size.s178}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s497:{$type:"dimension",$value:"{seed.ui.size.s497}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s37:{$type:"dimension",$value:"{seed.ui.size.s37}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s60:{$type:"dimension",$value:"{seed.ui.size.s60}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s7:{$type:"dimension",$value:"{seed.ui.size.s7}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s128:{$type:"dimension",$value:"{seed.ui.size.s128}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s290:{$type:"dimension",$value:"{seed.ui.size.s290}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s210:{$type:"dimension",$value:"{seed.ui.size.s210}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s231:{$type:"dimension",$value:"{seed.ui.size.s231}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s440:{$type:"dimension",$value:"{seed.ui.size.s440}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s9:{$type:"dimension",$value:"{seed.ui.size.s9}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s190:{$type:"dimension",$value:"{seed.ui.size.s190}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s130:{$type:"dimension",$value:"{seed.ui.size.s130}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s200:{$type:"dimension",$value:"{seed.ui.size.s200}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s150:{$type:"dimension",$value:"{seed.ui.size.s150}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s350:{$type:"dimension",$value:"{seed.ui.size.s350}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s493:{$type:"dimension",$value:"{seed.ui.size.s493}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s17:{$type:"dimension",$value:"{seed.ui.size.s17}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}},space:{s6:{$type:"dimension",$value:"{seed.ui.space.s6}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s18:{$type:"dimension",$value:"{seed.ui.space.s18}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s3:{$type:"dimension",$value:"{seed.ui.space.s3}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s10:{$type:"dimension",$value:"{seed.ui.space.s10}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s8:{$type:"dimension",$value:"{seed.ui.space.s8}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s22:{$type:"dimension",$value:"{seed.ui.space.s22}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s7:{$type:"dimension",$value:"{seed.ui.space.s7}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s14:{$type:"dimension",$value:"{seed.ui.space.s14}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s84:{$type:"dimension",$value:"{seed.ui.space.s84}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s4:{$type:"dimension",$value:"{seed.ui.space.s4}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s2:{$type:"dimension",$value:"{seed.ui.space.s2}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s12:{$type:"dimension",$value:"{seed.ui.space.s12}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s5:{$type:"dimension",$value:"{seed.ui.space.s5}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s26:{$type:"dimension",$value:"{seed.ui.space.s26}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s16:{$type:"dimension",$value:"{seed.ui.space.s16}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s24:{$type:"dimension",$value:"{seed.ui.space.s24}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s30:{$type:"dimension",$value:"{seed.ui.space.s30}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1:{$type:"dimension",$value:"{seed.ui.space.s1}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s15:{$type:"dimension",$value:"{seed.ui.space.s15}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s13:{$type:"dimension",$value:"{seed.ui.space.s13}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s20:{$type:"dimension",$value:"{seed.ui.space.s20}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s29:{$type:"dimension",$value:"{seed.ui.space.s29}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s9:{$type:"dimension",$value:"{seed.ui.space.s9}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s11:{$type:"dimension",$value:"{seed.ui.space.s11}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s115:{$type:"dimension",$value:"{seed.ui.space.s115}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s34:{$type:"dimension",$value:"{seed.ui.space.s34}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s40:{$type:"dimension",$value:"{seed.ui.space.s40}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s28:{$type:"dimension",$value:"{seed.ui.space.s28}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s44:{$type:"dimension",$value:"{seed.ui.space.s44}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s23:{$type:"dimension",$value:"{seed.ui.space.s23}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s70:{$type:"dimension",$value:"{seed.ui.space.s70}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s25:{$type:"dimension",$value:"{seed.ui.space.s25}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s19:{$type:"dimension",$value:"{seed.ui.space.s19}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s47:{$type:"dimension",$value:"{seed.ui.space.s47}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}},duration:{s240:{$type:"duration",$value:"{seed.ui.duration.s240}",$description:"duration \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s800:{$type:"duration",$value:"{seed.ui.duration.s800}",$description:"duration \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s180:{$type:"duration",$value:"{seed.ui.duration.s180}",$description:"duration \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s140:{$type:"duration",$value:"{seed.ui.duration.s140}",$description:"duration \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}},opacity:{s0p65:{$type:"number",$value:"{seed.ui.opacity.s0p65}",$description:"opacity \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s0p5:{$type:"number",$value:"{semantic.ui.opacity.disabled}",$description:"\u5171\u4EAB\u72B6\u6001\u900F\u660E\u5EA6"},s0p8:{$type:"number",$value:"{semantic.ui.opacity.busy}",$description:"\u5171\u4EAB\u72B6\u6001\u900F\u660E\u5EA6"},s0p4:{$type:"number",$value:"{seed.ui.opacity.s0p4}",$description:"opacity \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}},shadowSize:{s8:{$type:"dimension",$value:"{seed.ui.shadowSize.s8}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s20:{$type:"dimension",$value:"{seed.ui.shadowSize.s20}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s12:{$type:"dimension",$value:"{seed.ui.shadowSize.s12}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1:{$type:"dimension",$value:"{seed.ui.shadowSize.s1}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s4:{$type:"dimension",$value:"{seed.ui.shadowSize.s4}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s10:{$type:"dimension",$value:"{seed.ui.shadowSize.s10}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s2:{$type:"dimension",$value:"{seed.ui.shadowSize.s2}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s36:{$type:"dimension",$value:"{seed.ui.shadowSize.s36}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s5:{$type:"dimension",$value:"{seed.ui.shadowSize.s5}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s3:{$type:"dimension",$value:"{seed.ui.shadowSize.s3}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s24:{$type:"dimension",$value:"{seed.ui.shadowSize.s24}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s80:{$type:"dimension",$value:"{seed.ui.shadowSize.s80}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s15:{$type:"dimension",$value:"{seed.ui.shadowSize.s15}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s28:{$type:"dimension",$value:"{seed.ui.shadowSize.s28}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s14:{$type:"dimension",$value:"{seed.ui.shadowSize.s14}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s6:{$type:"dimension",$value:"{seed.ui.shadowSize.s6}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s9:{$type:"dimension",$value:"{seed.ui.shadowSize.s9}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s0p5:{$type:"dimension",$value:"{seed.ui.shadowSize.s0p5}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s7:{$type:"dimension",$value:"{seed.ui.shadowSize.s7}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}},lineClamp:{s4:{$type:"number",$value:"{seed.ui.lineClamp.s4}",$description:"lineClamp \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s2:{$type:"number",$value:"{seed.ui.lineClamp.s2}",$description:"lineClamp \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}},material:{control:{background:{$type:"color",$value:"{component.ui.input.background}",$description:"\u63A7\u4EF6\u5171\u7528\u5E95\u6750\uFF1A\u4EE5\u540D\u79F0\u8F93\u5165\u6846\u4E3A\u51C6\uFF0C\u517C\u5BB9\u73B0\u6709 input.background \u8986\u76D6"},border:{$type:"color",$value:"{component.ui.border}",$description:"\u63A7\u4EF6\u5171\u7528\u9876\u90E8\u67D4\u548C\u63CF\u8FB9"},highlight:{$type:"color",$value:"{component.ui.foreground}",$description:"\u63A7\u4EF6\u5171\u7528\u5E95\u90E8\u5185\u9AD8\u5149\u989C\u8272"},highlightOffset:{$type:"dimension",$value:"{component.ui.shadowSize.s5}",$description:"\u63A7\u4EF6\u5E95\u90E8\u5185\u9AD8\u5149\u5411\u4E0A\u504F\u79FB\u91CF"},highlightBlur:{$type:"dimension",$value:"{component.ui.shadowSize.s9}",$description:"\u63A7\u4EF6\u5E95\u90E8\u5185\u9AD8\u5149\u6A21\u7CCA\u534A\u5F84"},highlightSpread:{$type:"dimension",$value:"{component.ui.shadowSize.s8}",$description:"\u63A7\u4EF6\u5E95\u90E8\u5185\u9AD8\u5149\u6536\u7F29\u91CF"}}},input:{tags:{minHeight:{$type:"dimension",$value:{value:40,unit:"px"},$description:".monkeys-ui-tag-input min-height"},gap:{$type:"dimension",$value:{value:6,unit:"px"},$description:"input.tags.gap \u9ED8\u8BA4\u5C3A\u5BF8"},glass:{blur:{$type:"dimension",$value:"{seed.ui.size.s16}",$description:"\u65E7 input.tags \u6750\u8D28\u6A21\u7CCA\uFF0C\u5E93\u5185\u5DF2\u4E0D\u4F7F\u7528\uFF1B\u7EDF\u4E00\u6750\u8D28\u8BF7\u4F7F\u7528 component.ui.material.control"},saturation:{$type:"number",$value:1,$description:"\u65E7 input.tags \u6750\u8D28\u9971\u548C\u5EA6\uFF0C\u5E93\u5185\u5DF2\u4E0D\u4F7F\u7528\uFF1B\u7EDF\u4E00\u6750\u8D28\u8BF7\u4F7F\u7528 component.ui.material.control"}}},paddingInline:{$type:"dimension",$value:"{seed.ui.space.s14}",$description:"input paddingInline \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"},paddingBlock:{$type:"dimension",$value:"{seed.ui.space.s7}",$description:"input paddingBlock \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"},radius:{$type:"dimension",$value:"{semantic.ui.radius.control}",$description:"input radius \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"},background:{$type:"color",$value:"{semantic.color.surface.control.dark}",$description:"input background \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"},placeholder:{$type:"color",$value:"{semantic.color.text.secondary.dark}",$description:"input placeholder \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"},invalidBorder:{$type:"color",$value:"{semantic.color.status.danger.dark}",$description:"input invalidBorder \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"}},textarea:{minHeight:{$type:"dimension",$value:{value:85,unit:"px"},$description:".monkeys-ui-textarea min-height"}},switch:{height:{md:{$type:"dimension",$value:{value:34,unit:"px"},$description:"switch.height.md \u9ED8\u8BA4\u5C3A\u5BF8"},sm:{$type:"dimension",$value:{value:28,unit:"px"},$description:"switch.height.sm \u9ED8\u8BA4\u5C3A\u5BF8"},lg:{$type:"dimension",$value:{value:42,unit:"px"},$description:"switch.height.lg \u9ED8\u8BA4\u5C3A\u5BF8"}}},colorSlider:{thumbWidth:{$type:"dimension",$value:{value:96,unit:"px"},$description:"colorSlider.thumbWidth \u9ED8\u8BA4\u5C3A\u5BF8"},glass:{blur:{$type:"dimension",$value:"{seed.ui.size.s12}",$description:"colorSlider \u6750\u8D28\u6A21\u7CCA"},saturation:{$type:"number",$value:1.15,$description:"colorSlider \u6750\u8D28\u9971\u548C\u5EA6"}}},card:{bottomGlow:{color:{$type:"color",$value:"{semantic.color.effect.start.dark}",$description:"\u5361\u7247 BottomGlow \u84DD\u8272\u5916\u7F18\u8272\u6E90\uFF0C\u4E0E\u5171\u4EAB\u5149\u6548\u4E00\u81F4\uFF0C\u6E32\u67D3\u65F6\u4F7F\u7528\u7EAF\u8272"},opacity:{$type:"number",$value:.85,$description:"\u5361\u7247\u5E95\u90E8\u67D4\u5149\u6574\u4F53\u5F3A\u5EA6\uFF0C0 \u4E3A\u5173\u95ED"},height:{$type:"dimension",$value:"{seed.ui.size.s48}",$description:"\u5361\u7247\u5185\u5D4C BottomGlow \u5BBF\u4E3B\u9AD8\u5EA6\uFF0C\u4E0D\u5F71\u54CD\u6587\u5B57\u5E03\u5C40"},offset:{$type:"dimension",$value:"{seed.ui.size.s10}",$description:"\u5361\u7247 BottomGlow \u5411\u4E0B\u504F\u79FB\u8DDD\u79BB\uFF0C\u88C1\u6389\u7D2B\u8272\u4EAE\u82AF\uFF0C\u4EC5\u9732\u51FA\u84DD\u8272\u5916\u7F18"},blur:{$type:"dimension",$value:"{seed.ui.size.s6}",$description:"\u5361\u7247\u5E95\u90E8\u67D4\u5149\u6A21\u7CCA\u534A\u5F84"}},dragHandle:{size:{$type:"dimension",$value:"{seed.ui.size.s24}",$description:"\u5361\u7247\u62D6\u52A8\u624B\u67C4\u76F4\u5F84"},offset:{$type:"dimension",$value:"{seed.ui.size.s5}",$description:"\u5361\u7247\u62D6\u52A8\u624B\u67C4\u8DDD\u9876\u8FB9\u4E0E\u8D77\u59CB\u8FB9\u7684\u8DDD\u79BB"},iconSize:{$type:"dimension",$value:"{seed.ui.size.s16}",$description:"\u5361\u7247\u62D6\u52A8\u624B\u67C4\u516D\u70B9\u56FE\u6807\u5C3A\u5BF8"},background:{$type:"color",$value:"{semantic.color.scrim.media.dark}",$description:"\u5361\u7247\u62D6\u52A8\u624B\u67C4\u6DF1\u8272\u80CC\u666F"},foreground:{$type:"color",$value:"{semantic.color.sample.inkLight}",$description:"\u5361\u7247\u62D6\u52A8\u624B\u67C4\u56FE\u6807\u989C\u8272"}},actions:{glass:{blur:{$type:"dimension",$value:"{seed.ui.size.s12}",$description:"card.actions \u6750\u8D28\u6A21\u7CCA"},saturation:{$type:"number",$value:1.2,$description:"card.actions \u6750\u8D28\u9971\u548C\u5EA6"}}},titleFontSize:{$type:"dimension",$value:"{semantic.font.size.sm}",$description:"card titleFontSize \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"}},panel:{padding:{$type:"dimension",$value:"{semantic.ui.spacing.surfacePadding}",$description:"panel padding \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"}},field:{gap:{$type:"dimension",$value:"{semantic.ui.spacing.fieldGap}",$description:"field gap \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"}},tooltip:{delay:{$type:"duration",$value:{value:500,unit:"ms"},$description:"tooltip delay"},skipDelay:{$type:"duration",$value:{value:300,unit:"ms"},$description:"tooltip skipDelay"},sideOffset:{$type:"dimension",$value:{value:7,unit:"px"},$description:"tooltip \u4E0E\u89E6\u53D1\u5668\u7684\u95F4\u8DDD"}},scrollSurface:{hideDelay:{$type:"duration",$value:{value:700,unit:"ms"},$description:"scrollSurface hideDelay"}},menu:{sideOffset:{$type:"dimension",$value:{value:6,unit:"px"},$description:"menu \u4E0E\u89E6\u53D1\u5668\u7684\u95F4\u8DDD"}},icon:{size:{s12:{$type:"dimension",$value:"{semantic.font.size.xs}",$description:"\u5185\u7F6E\u56FE\u6807 12px\uFF0C\u53EF\u72EC\u7ACB\u4E8E\u5B57\u4F53\u8986\u76D6"},s14:{$type:"dimension",$value:"{semantic.font.size.sm}",$description:"\u5185\u7F6E\u56FE\u6807 14px\uFF0C\u53EF\u72EC\u7ACB\u4E8E\u5B57\u4F53\u8986\u76D6"},s16:{$type:"dimension",$value:"{semantic.font.size.base}",$description:"\u5185\u7F6E\u56FE\u6807 16px\uFF0C\u53EF\u72EC\u7ACB\u4E8E\u5B57\u4F53\u8986\u76D6"},s17:{$type:"dimension",$value:"{semantic.font.size.ui17}",$description:"\u5185\u7F6E\u56FE\u6807 17px\uFF0C\u53EF\u72EC\u7ACB\u4E8E\u5B57\u4F53\u8986\u76D6"},s28:{$type:"dimension",$value:"{semantic.font.size.ui28}",$description:"\u5185\u7F6E\u56FE\u6807 28px\uFF0C\u53EF\u72EC\u7ACB\u4E8E\u5B57\u4F53\u8986\u76D6"}}},density:{compact:{buttonPaddingBlock:{$type:"dimension",$value:"{seed.ui.space.s3}",$description:"compact buttonPaddingBlock \u5BC6\u5EA6\u7559\u767D"},inputPaddingBlock:{$type:"dimension",$value:"{seed.ui.space.s4}",$description:"compact inputPaddingBlock \u5BC6\u5EA6\u7559\u767D"}},default:{buttonPaddingBlock:{$type:"dimension",$value:"{seed.ui.space.s6}",$description:"default buttonPaddingBlock \u5BC6\u5EA6\u7559\u767D"},inputPaddingBlock:{$type:"dimension",$value:"{seed.ui.space.s7}",$description:"default inputPaddingBlock \u5BC6\u5EA6\u7559\u767D"}},comfortable:{buttonPaddingBlock:{$type:"dimension",$value:"{seed.ui.space.s10}",$description:"comfortable buttonPaddingBlock \u5BC6\u5EA6\u7559\u767D"},inputPaddingBlock:{$type:"dimension",$value:"{seed.ui.space.s11}",$description:"comfortable inputPaddingBlock \u5BC6\u5EA6\u7559\u767D"}}},activeBorder:{$type:"color",$value:"{semantic.color.border.active.dark}",$description:"\u63A7\u4EF6\u6FC0\u6D3B\u72B6\u6001\u63CF\u8FB9\uFF1BSegmentedMenuControl \u7B49\u9009\u4E2D\u63A7\u4EF6\u590D\u7528"},quickPromptMenu:{width:{$type:"dimension",$value:"{component.ui.size.s320}",$description:"QuickPromptMenu \u72EC\u7ACB\u6A21\u5F0F\u9ED8\u8BA4\u5BBD\u5EA6\uFF1B\u5BB9\u5668\u951A\u5B9A\u5BBD\u5EA6\u4E0E\u5B9E\u4F8B content.width \u4F18\u5148"},maxHeightRatio:{$type:"number",$value:.6,$description:"QuickPromptMenu \u5360\u89C6\u53E3\u9AD8\u5EA6\u7684\u6700\u5927\u6BD4\u4F8B\uFF0C\u53D6\u503C (0, 1]\uFF1B\u4ECD\u53D7 Radix \u53EF\u7528\u7A7A\u95F4\u7EA6\u675F"},sideOffset:{$type:"number",$value:8,$description:"QuickPromptMenu \u4E0E\u951A\u5B9A\u5BB9\u5668\u7684\u95F4\u8DDD\uFF0C\u5355\u4F4D CSS px\uFF1B\u4F9B Radix \u6570\u503C\u63A5\u53E3\u6D88\u8D39"},collisionPadding:{$type:"number",$value:12,$description:"QuickPromptMenu \u89C6\u53E3\u907F\u8BA9\u8FB9\u8DDD\uFF0C\u5355\u4F4D CSS px\uFF1B\u4F9B Radix \u6570\u503C\u63A5\u53E3\u6D88\u8D39"}}}}};var gu={seed:{ui:{color:{page:{$type:"color",$value:{colorSpace:"srgb",components:[.07450980392156863,.08235294117647059,.10196078431372549],hex:"#13151A"},$description:"seed.ui.color.page"},surface:{$type:"color",$value:{colorSpace:"srgb",components:[.09019607843137255,.10588235294117647,.15294117647058825],hex:"#171B27"},$description:"seed.ui.color.surface"},elevated:{$type:"color",$value:{colorSpace:"srgb",components:[.13333333333333333,.15294117647058825,.2196078431372549],hex:"#222738"},$description:"seed.ui.color.elevated"},foreground:{$type:"color",$value:{colorSpace:"srgb",components:[1,1,1],hex:"#FFFFFF"},$description:"seed.ui.color.foreground"},muted:{$type:"color",$value:{colorSpace:"srgb",components:[.7843137254901961,.7843137254901961,.7843137254901961],hex:"#C8C8C8"},$description:"seed.ui.color.muted"},subtle:{$type:"color",$value:{colorSpace:"srgb",components:[.6980392156862745,.6980392156862745,.6980392156862745],hex:"#B2B2B2"},$description:"seed.ui.color.subtle"},primary:{$type:"color",$value:{colorSpace:"srgb",components:[.28627450980392155,.4666666666666667,.9215686274509803],hex:"#4977EB"},$description:"seed.ui.color.primary"},lightEdgeBlue:{$type:"color",$value:{colorSpace:"srgb",components:[.25882352941176473,.5215686274509804,1],hex:"#4285FF"},$description:"seed.ui.color.lightEdgeBlue"},primaryHover:{$type:"color",$value:{colorSpace:"srgb",components:[.3803921568627451,.5450980392156862,.9568627450980393],hex:"#618BF4"},$description:"seed.ui.color.primaryHover"},violet:{$type:"color",$value:{colorSpace:"srgb",components:[.5764705882352941,.36470588235294116,1],hex:"#935DFF"},$description:"seed.ui.color.violet"},focus:{$type:"color",$value:{colorSpace:"srgb",components:[.6627450980392157,.7333333333333333,1],hex:"#A9BBFF"},$description:"seed.ui.color.focus"},border:{$type:"color",$value:{colorSpace:"srgb",components:[.6862745098039216,.7333333333333333,1],hex:"#AFBBFF",alpha:.5},$description:"seed.ui.color.border"},blueGlow:{$type:"color",$value:{colorSpace:"srgb",components:[.13725490196078433,.3411764705882353,.9176470588235294],hex:"#2357EA",alpha:.35},$description:"seed.ui.color.blueGlow"},violetGlow:{$type:"color",$value:{colorSpace:"srgb",components:[.4627450980392157,.19215686274509805,1],hex:"#7631FF",alpha:.5},$description:"seed.ui.color.violetGlow"},primaryAccessible:{$type:"color",$value:{colorSpace:"srgb",components:[.23529411764705882,.38823529411764707,.8117647058823529],hex:"#3C63CF"},$description:"seed.ui.color.primaryAccessible"},header:{$type:"color",$value:{colorSpace:"srgb",components:[.12941176470588237,.32941176470588235,.8509803921568627],hex:"#2154D9"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"}}}},semantic:{font:{body:{$type:"fontFamily",$value:["Inter","Monkeys UI Sans","Microsoft YaHei","sans-serif"],$description:"BSD \u5B57\u4F53\u6808"}}}};var vs=a(e=>!!e&&typeof e=="object"&&!Array.isArray(e),"isGroup");function qo(e,t){function o(n,r){if(r===void 0)return n;if(!vs(n)||!vs(r)||"$value"in r||"$value"in n)return r;let i={...n};for(let s of Object.keys(r))i[s]=o(n[s],r[s]);return i}return a(o,"merge"),o(e,t)}a(qo,"mergeThemeTokens");function xs(e,t){if(t==="dark")return e;let o=a(n=>typeof n=="string"?n.replace(/\.(?:dark|light)(?=})/g,`.${t}`):Array.isArray(n)?n.map(o):vs(n)?Object.fromEntries(Object.entries(n).map(([r,i])=>[r,o(i)])):n,"visit");return o(e)}a(xs,"resolveThemeColorModeTokens");function fu(e){return "--monkeys-ui-"+e.replace(/^component\.ui\./,"").replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/\./g,"-").toLowerCase()}a(fu,"uiVariable");var bx=mu,bu={bsd:{id:"bsd",label:"BSD",colorModes:["light","dark"],tokens:gu},"neutral-demo":{id:"neutral-demo",label:"Neutral Demo\uFF08\u6F14\u793A\uFF09",colorModes:["light","dark"],tokens:{}}};function yu(e="bsd",t){if(!Object.prototype.hasOwnProperty.call(bu,e))throw new TypeError(`Unknown UI tenant: ${e}`);let o=bu[e];return qo(qo(bx,o.tokens),t)}a(yu,"getTenantTheme");var Da=yu("bsd"),ks=dn(Da,{colorMode:"dark"});function Cu(e,t="dark"){return kx(dn(xs(e,t),{colorMode:t}))}a(Cu,"compileUITheme");function kx(e){let t={};for(let[o,n]of Object.entries(e.cssVariables))o.startsWith("--monkeys-chart-")&&(t[o]=n);for(let o of Object.keys(e.cssValues).filter(n=>n.startsWith("component.ui."))){let n=fu(o);if(t[n]!==void 0)throw new TypeError(`Duplicate UI variable: ${n}`);t[n]=nr(e,o);}for(let o of ["foreground","page","focus","button-primary-background","font"])if(!t["--monkeys-ui-"+o])throw new TypeError(`Missing required UI token: ${o}`);return t}a(kx,"variablesFromTheme");var hu=ye.createContext(0);function io(e){let t=ye.useContext(On),o=er(),n=Tn(),[r,i]=ye.useState();return ye.useEffect(()=>{if(e||t?.dir||o)return;let l=(n.getDocument?.()??globalThis.document)?.documentElement;if(!l)return;let d=a(()=>i(l.dir==="rtl"?"rtl":"ltr"),"update");d();let c=new MutationObserver(d);return c.observe(l,{attributes:true,attributeFilter:["dir"]}),()=>c.disconnect()},[e,t?.dir,o,n]),e??t?.dir??o??r}a(io,"useUIDirection");function ws(){let e=ui();return e.provided?e:{...Xn,provided:false}}a(ws,"useUILocale");var Ia=new WeakMap;function wx(e){let t=Ia.get(e);if(t)return t.count++,()=>vu(e);let o=e.documentElement,n=o.getAttribute("data-monkeys-ui-input"),r=a(()=>o.setAttribute("data-monkeys-ui-input","pointer"),"pointer"),i=a(()=>o.setAttribute("data-monkeys-ui-input","keyboard"),"keyboard");return e.addEventListener("pointerdown",r,true),e.addEventListener("keydown",i,true),Ia.set(e,{count:1,dispose:a(()=>{e.removeEventListener("pointerdown",r,true),e.removeEventListener("keydown",i,true),n===null?o.removeAttribute("data-monkeys-ui-input"):o.setAttribute("data-monkeys-ui-input",n);},"dispose")}),()=>vu(e)}a(wx,"observeInput");function vu(e){let t=Ia.get(e);t&&--t.count===0&&(t.dispose(),Ia.delete(e));}a(vu,"releaseInput");function Fn(){let e=ye.useContext(On),t=Bo();return ye.useMemo(()=>e?.compiled??(t?.contract?dn(xs(qo(Da,t.contract),t.colorMode==="light"?"light":"dark"),{colorMode:t.colorMode==="light"?"light":"dark"}):ks),[e?.compiled,t?.contract,t?.colorMode])}a(Fn,"useUIResolvedTokens");function xr({children:e}){let t=ye.useContext(On),o=Bo(),n=Tn(),r=sn(),i=io(),s=ye.useContext(hu)+1,[l,d]=ye.useState(null);ye.useEffect(()=>{let g=n.getDocument?.()??globalThis.document;return d(typeof r.container=="function"?r.container():r.container??g?.body??null),g?wx(g):void 0},[n,r.container]);let c=Number(t?.variables["--monkeys-ui-layer-overlay-base"]??ks.values["component.ui.layer.overlayBase"]),u=Number(t?.variables["--monkeys-ui-layer-nesting-step"]??ks.values["component.ui.layer.nestingStep"]),m=t?.compiled.colorMode??o?.colorMode??"dark",p=jsxRuntime.jsx(hu.Provider,{value:s,children:jsxRuntime.jsx("div",{className:"monkeys-ui-scope monkeys-ui-portal",dir:i,"data-monkeys-ui-tenant":t?.tenant??"bsd","data-monkeys-ui-theme":m,style:{...t?.variables,colorScheme:m,"--monkeys-ui-overlay-layer":c+s*u},children:e})});return r.disabled?p:l?reactDom.createPortal(p,l):null}a(xr,"Portal");function La(){let[e,t]=ye.useState(false);return ye.useEffect(()=>{let o=window.matchMedia("(prefers-reduced-motion: reduce)"),n=window.matchMedia("(forced-colors: active)"),r=a(()=>t(!o.matches&&!n.matches),"update");return r(),o.addEventListener("change",r),n.addEventListener("change",r),()=>{o.removeEventListener("change",r),n.removeEventListener("change",r);}},[]),e}a(La,"useShaderEnabled");function Tu(e){let t=a(n=>{let r=`semantic.color.effect.${n}.${e.colorMode}`;return e.values[r]?.hex??nr(e,r)},"color"),o=a((n,r)=>Number(e.values[`component.ui.effect.${n}.${r}`]),"number");return {start:t("start"),end:t("end"),lightEdgeStart:t("lightEdgeStart"),chroma:{intensity:o("chroma","intensity"),momentum:o("chroma","momentum"),radius:o("chroma","radius")},aurora:{curtainCount:o("aurora","curtainCount"),height:o("aurora","height"),intensity:o("aurora","intensity"),rayDensity:o("aurora","rayDensity"),speed:o("aurora","speed"),waviness:o("aurora","waviness")},lightEdge:{thickness:o("lightEdge","thickness"),softness:o("lightEdge","softness"),intensity:o("lightEdge","intensity"),bloom:o("lightEdge","bloom"),spots:o("lightEdge","spots"),spotSize:o("lightEdge","spotSize"),smoke:o("lightEdge","smoke"),smokeSize:o("lightEdge","smokeSize"),speed:o("lightEdge","speed")},rotation:o("aurora","rotation"),glowBlur:o("lightEdge","glowBlur"),flowBlur:o("lightEdge","flowBlur"),shapeInset:o("lightEdge","shapeInset")}}a(Tu,"resolveEffectTokens");function Cs(e){if(!e||!/^#([\da-f]{3}|[\da-f]{6})$/i.test(e))return "light";let t=e.slice(1).length===3?[...e.slice(1)].map(r=>r+r).join(""):e.slice(1),o=[0,2,4].map(r=>{let i=parseInt(t.slice(r,r+2),16)/255;return i<=.04045?i/12.92:((i+.055)/1.055)**2.4});return o[0]*.2126+o[1]*.7152+o[2]*.0722>=.8?"dark":"light"}a(Cs,"sampleInk");function $u(e){let t=`button-light-edge-${ye.useId().replace(/:/g,"")}`,o=ye.useRef(null),[n,r]=ye.useState(null),i=La(),s=Fn(),l=Tu(s),[d,c]=ye.useState(false),[u,m]=ye.useState(null);return ye.useEffect(()=>{if(!i)return;let p=true;return import('shaders/react').then(g=>{p&&r(g);}).catch(()=>{}),()=>{p=false;}},[i]),ye.useEffect(()=>{let p=o.current,g=p?.closest("button");if(!g||!p)return;let b=a(()=>{let f=p.clientWidth,y=p.clientHeight;if(!f||!y)return;let k=getComputedStyle(g).borderTopLeftRadius,S=k.endsWith("%")?Math.min(f,y)*parseFloat(k)/100:parseFloat(k)||0,w=l.shapeInset;m({type:"roundedRectSDF",radius:Math.max(.01,f/(2*y)-w/y),height:Math.max(.01,.5-w/y),rounding:Math.max(0,Math.min(S-w,y/2-w))/y});},"update");b();let x=new ResizeObserver(b);return x.observe(g),()=>x.disconnect()},[s]),jsxRuntime.jsxs("span",{ref:o,className:"monkeys-ui-button-light-edge-mask","data-ready":d||void 0,children:[jsxRuntime.jsx("svg",{width:"0",height:"0","aria-hidden":"true",className:"monkeys-ui-button-light-edge-defs",children:jsxRuntime.jsx("defs",{children:jsxRuntime.jsxs("filter",{id:t,x:"-30%",y:"-100%",width:"160%",height:"300%",colorInterpolationFilters:"sRGB",children:[jsxRuntime.jsx("feGaussianBlur",{in:"SourceGraphic",stdDeviation:l.glowBlur,result:"glow"}),jsxRuntime.jsx("feGaussianBlur",{in:"SourceGraphic",stdDeviation:l.flowBlur,result:"flow"}),jsxRuntime.jsxs("feMerge",{children:[jsxRuntime.jsx("feMergeNode",{in:"glow"}),jsxRuntime.jsx("feMergeNode",{in:"flow"})]})]})})}),jsxRuntime.jsxs("span",{className:"monkeys-ui-button-light-edge-flow",style:{filter:`url(#${t})`},children:[jsxRuntime.jsx("span",{className:"monkeys-ui-button-light-edge-ambient"}),i&&n&&u?jsxRuntime.jsx(n.Shader,{disableTelemetry:true,style:{width:"100%",height:"100%"},onReady:()=>c(true),children:jsxRuntime.jsx(n.LightEdge,{colorA:l.lightEdgeStart,colorB:l.end,...l.lightEdge,...e,stops:null,shape:u})}):null]})]})}a($u,"ButtonLightEdge");var To=ye.forwardRef(a(function(t,o){let{props:n,slot:r}=pu("Button",t),{variant:i,shape:s="default",icon:l,tone:d="neutral",emphasis:c="secondary",effect:u,size:m="md",loading:p=false,lightEdge:g=false,glassColor:b,glassOpacity:x,toggle:f=false,checked:y,defaultChecked:k,onCheckedChange:S,required:w,motion:C="auto",activeBorderColor:T,type:$="button",className:P,style:E,children:R,onClick:W,onPointerDown:B,onKeyDown:A,...L}=n,I=ye.useContext(On),K=io(),[q,_]=Ut(y,k,false,S),Y=u??(g?"light-edge":"none"),M=i??(s==="icon"?"ghost":s==="tile"?"outline":"solid"),z={...E,...T?{"--monkeys-ui-button-active-border-color":T}:{},...b?{"--monkeys-ui-button-glass-color":b}:{},...x!==void 0?{"--monkeys-ui-button-glass-opacity":Math.min(1,Math.max(0,x))}:{},...f?{"--monkeys-ui-button-glass-state-opacity":q?1:"var(--monkeys-ui-button-glass-inactive-opacity,var(--monkeys-ui-default-button-glass-inactive-opacity))"}:{}},Q=f?q:L["aria-pressed"]===true||L["aria-pressed"]==="true",ce=d==="primary"&&M==="solid"||Q&&s!=="icon"&&M!=="glass"&&Y!=="brand-glow";return I?.colorSource==="platform"&&ce&&(z={color:"var(--monkeys-ui-button-primary-foreground)",...z}),i==="switch"?jsxRuntime.jsx(Nu,{...L,style:E,ref:o,type:$,value:L.value===void 0?void 0:String(L.value),required:w,checked:y,defaultChecked:k,onCheckedChange:S,className:kt("monkeys-ui-button-switch",P),"data-variant":"switch","data-tone":"primary","data-emphasis":c,"data-effect":Y,"data-size":m,"aria-label":L["aria-label"]??(typeof R=="string"?R:void 0),"aria-busy":p||void 0,"aria-disabled":p||L["aria-disabled"],onPointerDown:B,onKeyDown:A,onClick:se=>{if(p||L["aria-disabled"]===true||L["aria-disabled"]==="true"){se.preventDefault();return}W?.(se);}}):jsxRuntime.jsxs("button",{...L,dir:L.dir??K,ref:o,type:$,style:z,className:kt("monkeys-ui-button",P),"data-light-edge":Y==="light-edge"?true:void 0,"data-effect":Y,"data-emphasis":c,"data-shape":s,"data-variant":M,"data-tone":d,"data-size":m,"data-motion":C,"data-active-border":T?true:void 0,onPointerDown:se=>{se.currentTarget.dataset.input="pointer",B?.(se);},onKeyDown:se=>{se.currentTarget.dataset.input="keyboard",A?.(se);},"aria-pressed":f?q:L["aria-pressed"],"aria-busy":p||void 0,"aria-disabled":p||L["aria-disabled"],onClick:se=>{if(p||L["aria-disabled"]===true||L["aria-disabled"]==="true"){se.preventDefault();return}W?.(se),f&&!se.defaultPrevented&&_(!q);},children:[Y==="light-edge"?jsxRuntime.jsx("span",{...r("effect","monkeys-ui-button-light-edge"),"aria-hidden":"true",children:jsxRuntime.jsx($u,{...g===true||!g?{}:g})}):null,jsxRuntime.jsxs("span",{...r("label","monkeys-ui-button-label"),"data-loading":p||void 0,children:[l?jsxRuntime.jsx("span",{...r("icon","monkeys-ui-button-icon"),"aria-hidden":"true",children:l}):null,R]}),p?jsxRuntime.jsx("span",{...r("spinner","monkeys-ui-button-spinner"),"aria-hidden":"true"}):null]})},"Button"));ye.forwardRef(a(function(t,o){return jsxRuntime.jsx(To,{...t,ref:o,toggle:true})},"ToggleButton"));ye.forwardRef(a(function({options:t,value:o,defaultValue:n,onValueChange:r,onValueCommit:i,disabled:s,readOnly:l,className:d,style:c,onPointerDown:u,onPointerMove:m,onPointerCancel:p,onKeyDown:g,onPointerUp:b,onKeyUp:x,dir:f,name:y,...k},S){let w=Ko(k),C=io(f==="rtl"||f==="ltr"?f:void 0),[T,$]=Ut(o,n,t[0]?.id??"",r),P=ye.useRef(null),E=ye.useRef(n??t[0]?.id??"");ye.useImperativeHandle(S,()=>P.current,[]),Hn(P,()=>{o===void 0&&$(E.current);});let R=Math.max(0,t.findIndex(O=>O.id===T)),W=t[R],B=La(),[A,L]=ye.useState("keyboard"),I=ye.useRef(null),K=B&&A==="pointer"&&!s&&!l,q={label:W?.label,color:W?.color},[_,Y]=ye.useState({layers:[q,q],active:0}),M=_.layers[_.active];if(M.label!==q.label||M.color!==q.color){let O=1-_.active;Y({layers:_.layers.map((F,oe)=>oe===O?q:F),active:O});}let z=t.length>1?R/(t.length-1):.5,Q=a(O=>`calc(${O*100}% + ${.5-O} * var(--monkeys-ui-color-slider-thumb-width,var(--monkeys-ui-default-color-slider-thumb-width)))`,"location"),ce=t.map((O,F)=>{let oe=t.length>1?F/(t.length-1):0;return `${O.color} ${Q(oe)}`}),se=t.length>1?`linear-gradient(to ${C==="rtl"?"left":"right"}, ${ce.join(", ")})`:W?.color,V=s||l||t.length<2,J=a(O=>{let F=t[Number(O.value)];!V&&F&&i?.(F.id);},"commit");return jsxRuntime.jsxs("div",{className:kt("monkeys-ui-color-slider",d),"data-animated":K||void 0,"data-disabled":s||t.length===0||void 0,dir:C,style:c,children:[jsxRuntime.jsx("span",{className:"monkeys-ui-color-slider-track",style:{background:se},"aria-hidden":"true"}),jsxRuntime.jsx("span",{className:"monkeys-ui-color-slider-positioner",style:{transform:`translateX(${(C==="rtl"?-1:1)*z*100}%)`},"aria-hidden":"true",children:jsxRuntime.jsx("span",{className:"monkeys-ui-color-slider-thumb","data-ink":Cs(W?.color),style:{"--monkeys-ui-color-slider-selected":W?.color},children:_.layers.map((O,F)=>jsxRuntime.jsx("span",{className:"monkeys-ui-color-slider-sample","data-active":F===_.active,"data-ink":Cs(O.color),style:{"--monkeys-ui-color-slider-selected":O.color},children:jsxRuntime.jsx("span",{className:F===_.active?"monkeys-ui-color-slider-label":"monkeys-ui-color-slider-previous-label",children:O.label})},F))})}),jsxRuntime.jsx("input",{...k,...w,ref:P,type:"range",dir:C,min:0,max:Math.max(0,t.length-1),step:1,value:R,disabled:s||t.length===0,"aria-readonly":l||void 0,"aria-valuetext":W?.label??"",className:"monkeys-ui-color-slider-input",onPointerDown:O=>{u?.(O),l&&O.preventDefault(),!V&&!O.defaultPrevented&&O.isPrimary!==false&&O.button===0&&(I.current={id:O.pointerId,x:O.clientX,y:O.clientY},L("pointer"));},onPointerMove:O=>{m?.(O);let F=I.current;F?.id===O.pointerId&&Math.hypot(O.clientX-F.x,O.clientY-F.y)>3&&L("drag");},onPointerCancel:O=>{I.current=null,L("keyboard"),p?.(O);},onKeyDown:O=>{I.current=null,L("keyboard"),g?.(O),l&&["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(O.key)&&O.preventDefault();},onChange:O=>{if(!V){let F=t[Number(O.target.value)];F&&$(F.id);}},onPointerUp:O=>{I.current=null,b?.(O),O.defaultPrevented||J(O.currentTarget);},onKeyUp:O=>{x?.(O),!O.defaultPrevented&&["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(O.key)&&J(O.currentTarget);}}),y?jsxRuntime.jsx("input",{type:"hidden",name:y,form:k.form,value:W?.id??"",disabled:s||t.length===0}):null]})},"ColorSlider"));var Bx=ye.createContext(null);function Ko(e){let t=ye.useContext(Bx),o=io(e.dir==="rtl"||e.dir==="ltr"?e.dir:void 0);return {id:t?.id??e.id,dir:e.dir??o,"aria-describedby":[t?.describedBy,e["aria-describedby"]].filter(Boolean).join(" ")||void 0,"aria-invalid":e["aria-invalid"]??t?.invalid,required:e.required??t?.required}}a(Ko,"useField");var _a=ye.forwardRef(a(function(t,o){let n=Ko(t);if(t.variant==="tags")return t.mode==="select"?jsxRuntime.jsx(Ex,{...t,ref:o}):jsxRuntime.jsx(Nx,{...t,ref:o});if(t.variant==="search")return jsxRuntime.jsx(Lx,{...t,ref:o});if(t.variant==="number")return jsxRuntime.jsx(Dx,{...t,ref:o});let{variant:r,className:i,...s}=t;return jsxRuntime.jsx("input",{...s,...n,className:kt("monkeys-ui-input",i),ref:o})},"Input")),Nx=ye.forwardRef(a(function({variant:t,mode:o,value:n,defaultValue:r,onValueChange:i,inputValue:s,onInputValueChange:l,removeLabel:d="\u5220\u9664",name:c,form:u,className:m,style:p,disabled:g,readOnly:b,placeholder:x="\u8F93\u5165\u5E76\u56DE\u8F66\u540E\u6DFB\u52A0",onChange:f,onKeyDown:y,onCompositionStart:k,onCompositionEnd:S,...w},C){let T=Ko(w),[$,P]=Ut(n,r,[],i),[E,R]=Ut(s,void 0,"",l),[W,B]=ye.useState(""),A=ye.useRef(false),L=ye.useRef(null),I=g||b;ye.useImperativeHandle(C,()=>L.current,[]);let K=ye.useRef(r??[]);Hn(L,()=>{n===void 0&&P(K.current),R("");}),ye.useEffect(()=>{L.current?.setCustomValidity(T.required&&$.length===0?"\u8BF7\u81F3\u5C11\u6DFB\u52A0\u4E00\u4E2A\u6807\u7B7E":"");},[T.required,$.length]);let q=a(_=>{I||(P($.filter((Y,M)=>M!==_)),B(`${d} ${$[_]}`),L.current?.focus());},"remove");return jsxRuntime.jsxs("div",{className:kt("monkeys-ui-tag-input",m),style:p,dir:T.dir,"data-variant":t,"data-disabled":g||void 0,"aria-disabled":g||void 0,"data-readonly":b||void 0,"data-invalid":T["aria-invalid"]||void 0,onClick:_=>{!g&&!_.target.closest("button")&&L.current?.focus();},children:[$.map((_,Y)=>jsxRuntime.jsx(Bu,{label:_,disabled:I,removeLabel:d,onRemove:()=>q(Y)},`${Y}:${_}`)),jsxRuntime.jsx("input",{...w,...T,ref:L,form:u,type:"text",className:"monkeys-ui-tag-input-editor",disabled:g,readOnly:b,placeholder:x,value:E,required:T.required&&$.length===0,"aria-required":T.required||void 0,onChange:_=>{I||(R(_.target.value),f?.(_));},onCompositionStart:_=>{A.current=true,k?.(_);},onCompositionEnd:_=>{A.current=false,S?.(_);},onKeyDown:_=>{if(y?.(_),!(_.defaultPrevented||I||A.current||_.nativeEvent.isComposing||_.keyCode===229))if(_.key==="Enter"){_.preventDefault();let Y=E.trim();Y&&!$.includes(Y)&&(P([...$,Y]),B(Y)),R("");}else _.key==="Backspace"&&E===""&&$.length&&(_.preventDefault(),q($.length-1));}}),c?$.map((_,Y)=>jsxRuntime.jsx("input",{type:"hidden",name:c,form:u,value:_,disabled:g},Y)):null,jsxRuntime.jsx("span",{className:"monkeys-ui-visually-hidden","aria-live":"polite","aria-atomic":"true",children:W})]})},"InputTagsControl"));function Bu({label:e,disabled:t,removeLabel:o,onRemove:n,onActivate:r}){return jsxRuntime.jsxs("span",{className:"monkeys-ui-input-tag",children:[r?jsxRuntime.jsx("button",{type:"button",className:"monkeys-ui-input-tag-text monkeys-ui-input-tag-activate",title:e,disabled:t,onClick:r,children:e}):jsxRuntime.jsx("span",{className:"monkeys-ui-input-tag-text",title:e,children:e}),n?jsxRuntime.jsx("button",{type:"button",className:"monkeys-ui-input-tag-remove",disabled:t,"aria-label":`${o} ${e}`,onClick:n,children:jsxRuntime.jsx(lucideReact.X,{size:"var(--monkeys-ui-icon-size-s14,var(--monkeys-ui-default-icon-size-s14))","aria-hidden":"true"})}):null]})}a(Bu,"InputTag");var Ex=ye.forwardRef(a(function({variant:t,mode:o,label:n,items:r,onAdd:i,onRemove:s,onItemActivate:l,removeLabel:d="\u79FB\u9664",name:c,form:u,disabled:m,readOnly:p,className:g,style:b,onInvalid:x,...f},y){let k=Ko(f),S=ye.useRef(null),w=ye.useRef(null),C=ye.useRef(null),[T,$]=ye.useState(""),P=m||p;return ye.useImperativeHandle(y,()=>S.current,[]),ye.useEffect(()=>{S.current?.setCustomValidity(k.required&&!r.length?"\u8BF7\u81F3\u5C11\u6DFB\u52A0\u4E00\u4E2A\u6807\u7B7E":"");},[k.required,r.length]),jsxRuntime.jsxs("div",{ref:C,role:"group","aria-label":n,"aria-describedby":k["aria-describedby"],"aria-required":k.required||void 0,"aria-invalid":k["aria-invalid"],tabIndex:-1,dir:k.dir,className:kt("monkeys-ui-tag-input",g),"data-mode":o,"data-empty":!r.length,"data-disabled":m||void 0,"aria-disabled":m||void 0,"data-readonly":p||void 0,"data-invalid":k["aria-invalid"]||void 0,style:b,children:[jsxRuntime.jsxs("div",{className:"monkeys-ui-tag-input-header",children:[jsxRuntime.jsx("span",{className:"monkeys-ui-label",children:n}),i?jsxRuntime.jsx("button",{ref:w,type:"button",className:"monkeys-ui-tag-input-add",disabled:P,"aria-label":"\u6DFB\u52A0"+n,onClick:i,children:jsxRuntime.jsx(lucideReact.Plus,{"aria-hidden":"true"})}):null]}),r.length?jsxRuntime.jsx("div",{className:"monkeys-ui-tag-input-items",children:r.map(E=>jsxRuntime.jsx(Bu,{label:E.label,disabled:P,removeLabel:d,onActivate:l&&E.activatable!==false?()=>{P||l(E.id);}:void 0,onRemove:s?()=>{P||(s(E.id),$(`${d} ${E.label}`),(w.current??C.current)?.focus());}:void 0},E.id))}):null,jsxRuntime.jsx("input",{...f,...k,ref:S,form:u,type:"text",className:"monkeys-ui-visually-hidden","aria-hidden":"true",tabIndex:-1,value:r.length?"selected":"",onChange:()=>{},disabled:m,required:k.required,onInvalid:E=>{x?.(E),E.preventDefault(),(w.current??C.current)?.focus();}}),c?r.map(E=>jsxRuntime.jsx("input",{type:"hidden",name:c,form:u,value:E.id,disabled:m},E.id)):null,jsxRuntime.jsx("span",{className:"monkeys-ui-visually-hidden","aria-live":"polite","aria-atomic":"true",children:T})]})},"InputTagSelectionControl"));ye.forwardRef(a(function({className:t,...o},n){let r=Ko(o);return jsxRuntime.jsx("textarea",{...o,...r,ref:n,className:kt("monkeys-ui-textarea",t)})},"Textarea"));function Ix(e){return /^-?(?:\d+|\d*\.\d+)$/.test(e.trim())&&Number.isFinite(Number(e))?Number(e):null}a(Ix,"parseNumberValue");ye.forwardRef(a(function(t,o){return jsxRuntime.jsx(_a,{...t,variant:"number",ref:o})},"NumberInput"));var Dx=ye.forwardRef(a(function({variant:t,value:o,defaultValue:n,onValueChange:r,onChange:i,...s},l){let[d,c]=Ut(o,n,"",p=>r?.(p,{numberValue:Ix(p)})),u=ye.useRef(null),m=ye.useRef(n??"");return ye.useImperativeHandle(l,()=>u.current,[]),Hn(u,()=>{o===void 0&&c(m.current);}),jsxRuntime.jsx(_a,{...s,variant:"default",type:"text",inputMode:"decimal",value:d,onChange:p=>{c(p.target.value),i?.(p);},ref:u})},"InputNumberControl"));ye.forwardRef(a(function(t,o){return jsxRuntime.jsx(_a,{...t,variant:"search",ref:o})},"SearchField"));var Lx=ye.forwardRef(a(function({variant:t,value:o,defaultValue:n,onValueChange:r,onChange:i,onSearch:s,clearLabel:l="\u6E05\u7A7A\u641C\u7D22",className:d,onKeyDown:c,onCompositionStart:u,onCompositionEnd:m,disabled:p,readOnly:g,...b},x){let[f,y]=Ut(o,n,"",r),k=ye.useRef(false),S=ye.useRef(null);ye.useImperativeHandle(x,()=>S.current,[]);let w=ye.useRef(n??"");Hn(S,()=>{o===void 0&&y(w.current);});let C=a(()=>{let T=S.current;if(p||g||!T)return;Object.getOwnPropertyDescriptor(T.ownerDocument.defaultView.HTMLInputElement.prototype,"value").set.call(T,""),T.dispatchEvent(new Event("input",{bubbles:true})),T.focus();},"clear");return jsxRuntime.jsxs("div",{className:kt("monkeys-ui-search",d),children:[jsxRuntime.jsx(lucideReact.Search,{size:"var(--monkeys-ui-icon-size-s17,var(--monkeys-ui-default-icon-size-s17))","aria-hidden":"true"}),jsxRuntime.jsx(_a,{...b,variant:"default",ref:S,type:"search",disabled:p,readOnly:g,value:f,onChange:T=>{!p&&!g&&(y(T.target.value),i?.(T));},onCompositionStart:T=>{k.current=true,u?.(T);},onCompositionEnd:T=>{k.current=false,m?.(T);},onKeyDown:T=>{c?.(T),!T.defaultPrevented&&T.key==="Enter"&&!p&&!g&&!k.current&&!T.nativeEvent.isComposing&&T.keyCode!==229&&(T.preventDefault(),s?.(f));}}),f?jsxRuntime.jsx(To,{shape:"icon","aria-label":l,size:"sm",disabled:p||g,onClick:C,children:jsxRuntime.jsx(lucideReact.X,{size:"var(--monkeys-ui-icon-size-s14,var(--monkeys-ui-default-icon-size-s14))","aria-hidden":"true"})}):null]})},"InputSearchControl")),Nu=ye.forwardRef(a(function({checked:t,defaultChecked:o,onCheckedChange:n,className:r,onPointerDown:i,onKeyDown:s,...l},d){let c=Ko(l),[u,m]=Ut(t,o,false,n);return jsxRuntime.jsx(Yr__namespace.Root,{...l,...c,ref:d,checked:u,onCheckedChange:m,onPointerDown:p=>{p.currentTarget.dataset.input="pointer",i?.(p);},onKeyDown:p=>{p.currentTarget.dataset.input="keyboard",s?.(p);},className:kt("monkeys-ui-switch",r),children:jsxRuntime.jsx(Yr__namespace.Thumb,{className:"monkeys-ui-switch-thumb"})})},"Switch"));ye.forwardRef(a(function({label:t,description:o,checked:n,defaultChecked:r,onCheckedChange:i,emphasis:s="secondary",effect:l="none",pending:d=false,disabled:c=false,className:u,...m},p){let g=ye.useId(),b=`${g}-label`,x=o?`${g}-description`:void 0;return jsxRuntime.jsxs("div",{className:kt("monkeys-ui-switch-field",u),"data-emphasis":s,"data-effect":l,"data-pending":d||void 0,"data-disabled":c||void 0,children:[jsxRuntime.jsxs("div",{className:"monkeys-ui-switch-field-copy",children:[jsxRuntime.jsx("span",{id:b,className:"monkeys-ui-switch-field-label",children:t}),o?jsxRuntime.jsx("span",{id:x,className:"monkeys-ui-switch-field-description",children:o}):null]}),jsxRuntime.jsx(Nu,{...m,ref:p,checked:n,defaultChecked:r,onCheckedChange:f=>{d||i?.(f);},disabled:c,"aria-labelledby":b,"aria-describedby":x,"aria-busy":d||void 0,"aria-disabled":d||void 0,"data-emphasis":s,"data-effect":l,onClick:f=>{d&&f.preventDefault(),m.onClick?.(f);},onKeyDown:f=>{d&&f.preventDefault(),m.onKeyDown?.(f);}})," "]})},"SwitchField"));ye.forwardRef(a(function({indicator:t=jsxRuntime.jsx(lucideReact.ChevronDown,{size:12}),className:o,children:n,type:r="button",...i},s){return jsxRuntime.jsxs("button",{...i,ref:s,type:r,className:kt("monkeys-ui-select",o),children:[jsxRuntime.jsx("span",{className:"min-w-0 truncate",children:n}),jsxRuntime.jsx("span",{className:"shrink-0","aria-hidden":"true",children:t})]})},"PickerTrigger"));ye.forwardRef(a(function(t,o){return t.variant==="multiple"?jsxRuntime.jsx(Ox,{...t,ref:o}):jsxRuntime.jsx(zx,{...t,ref:o})},"Select"));var zx=ye.forwardRef(a(function({options:t,placeholder:o,className:n,style:r,id:i,"aria-label":s,"aria-describedby":l,"aria-invalid":d,value:c,defaultValue:u,onValueChange:m,variant:p,...g},b){let x=Ko({id:i,dir:g.dir,"aria-describedby":l,"aria-invalid":d,required:g.required}),[f,y]=Ut(c,u,"",m),k=io(g.dir),S=ws(),{required:w,...C}=x;return jsxRuntime.jsxs(Ve__namespace.Root,{...g,dir:k,required:w,value:f,onValueChange:y,children:[jsxRuntime.jsxs(Ve__namespace.Trigger,{ref:b,...C,"aria-required":w||void 0,"aria-label":s,className:kt("monkeys-ui-select",n),style:r,children:[jsxRuntime.jsx(Ve__namespace.Value,{placeholder:o??S.messages.multiSelect.placeholder}),jsxRuntime.jsx(Ve__namespace.Icon,{"aria-hidden":"true",children:jsxRuntime.jsx(lucideReact.ChevronDown,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))"})})]}),jsxRuntime.jsx(xr,{children:jsxRuntime.jsxs(Ve__namespace.Content,{className:"monkeys-ui-select-content",position:"popper",sideOffset:6,children:[jsxRuntime.jsx(Ve__namespace.ScrollUpButton,{children:jsxRuntime.jsx(lucideReact.ChevronUp,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))","aria-hidden":"true"})}),jsxRuntime.jsx(Ve__namespace.Viewport,{children:t.map(T=>jsxRuntime.jsxs(Ve__namespace.Item,{value:T.value,disabled:T.disabled,className:"monkeys-ui-select-item",children:[jsxRuntime.jsx(Ve__namespace.ItemText,{children:T.label}),jsxRuntime.jsx(Ve__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))","aria-hidden":"true"})})]},T.value))}),jsxRuntime.jsx(Ve__namespace.ScrollDownButton,{children:jsxRuntime.jsx(lucideReact.ChevronDown,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))","aria-hidden":"true"})})]})})]})},"SingleSelect")),Ox=ye.forwardRef(a(function({options:t,placeholder:o,className:n,style:r,id:i,"aria-label":s,"aria-describedby":l,"aria-invalid":d,value:c,defaultValue:u,onValueChange:m,open:p,defaultOpen:g,onOpenChange:b,...x},f){let y=Ko({id:i,dir:x.dir,"aria-describedby":l,"aria-invalid":d,required:x.required}),[k,S]=Ut(c,u,[],m),[w,C]=Ut(p,g,false,b),T=ye.useRef(null),$=ye.useRef(null),P=ye.useRef(u??[]);ye.useImperativeHandle(f,()=>T.current,[]),Hn($,()=>{c===void 0&&S(P.current),C(false),q(false);});let E=io(x.dir),R=ws(),{required:W,...B}=y,A=ye.useId(),L=y.id??A,I=A+"-required",[K,q]=ye.useState(false);ye.useEffect(()=>{(k.length||!W)&&q(false);},[k.length,W]);let _=t.filter(M=>k.includes(M.value)).map(M=>M.label),Y=a(M=>{M.disabled||x.disabled||S(k.includes(M.value)?k.filter(z=>z!==M.value):[...k,M.value]);},"toggle");return jsxRuntime.jsxs(so__namespace.Root,{dir:E,open:w,onOpenChange:C,modal:false,children:[jsxRuntime.jsx(so__namespace.Trigger,{asChild:true,children:jsxRuntime.jsxs("button",{ref:T,type:"button",...B,id:L,"aria-label":s,"aria-describedby":[y["aria-describedby"],W?I:""].filter(Boolean).join(" ")||void 0,"aria-invalid":y["aria-invalid"]||K||void 0,disabled:x.disabled,className:kt("monkeys-ui-select",n),style:r,"data-variant":"multiple","data-placeholder":!_.length||void 0,children:[jsxRuntime.jsx("span",{className:"monkeys-ui-select-value",children:_.length?_.join("\u3001"):o??R.messages.multiSelect.placeholder}),jsxRuntime.jsx(lucideReact.ChevronDown,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))","aria-hidden":"true"})]})}),jsxRuntime.jsx(xr,{children:jsxRuntime.jsx(so__namespace.Content,{"aria-label":s,"aria-labelledby":s?void 0:L,sideOffset:6,align:"start",className:"monkeys-ui-select-content monkeys-ui-select-multiple-content",children:t.map(M=>jsxRuntime.jsxs(so__namespace.CheckboxItem,{checked:k.includes(M.value),disabled:M.disabled,onSelect:z=>{z.preventDefault(),Y(M);},className:"monkeys-ui-select-item",children:[jsxRuntime.jsx("span",{children:M.label}),jsxRuntime.jsx(so__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))","aria-hidden":"true"})})]},M.value))})}),W?jsxRuntime.jsx("span",{id:I,className:"monkeys-ui-visually-hidden",children:R.locale.startsWith("zh")?"\u5FC5\u586B\uFF0C\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u9879":"Required. Select at least one option."}):null,jsxRuntime.jsx("input",{ref:$,type:"text",className:"monkeys-ui-visually-hidden","aria-hidden":"true",tabIndex:-1,form:x.form,autoComplete:x.autoComplete,value:k.length?"selected":"",onChange:()=>{},disabled:x.disabled,required:W,onInvalid:M=>{M.preventDefault(),q(true),T.current?.focus();}}),x.name?k.map(M=>jsxRuntime.jsx("input",{type:"hidden",name:x.name,form:x.form,value:M,disabled:x.disabled},M)):null]})},"MultipleSelect"));function Eu({items:e,value:t,defaultValue:o,onValueChange:n,emphasis:r="secondary",effect:i="none",className:s,...l}){let[d,c]=Ut(t,o,e[0]?.value??"",n),u=io(l.dir);return jsxRuntime.jsx(Fa__namespace.Root,{...l,dir:u,type:"single",value:d,onValueChange:m=>{m&&c(m);},className:kt("monkeys-ui-segmented",s),"data-emphasis":r,"data-effect":i,children:e.map(m=>jsxRuntime.jsx(Fa__namespace.Item,{type:"button",value:m.value,"aria-label":m.ariaLabel,disabled:m.disabled,className:"monkeys-ui-segment","data-emphasis":r,"data-effect":i,children:m.label},m.value))})}a(Eu,"SegmentedControl");function $s({layout:e="horizontal",mediaPosition:t="start",detailsSize:o="balanced",sizing:n="content",asidePosition:r="end",detailsVisible:i=true,heading:s,metadata:l,message:d,actions:c,media:u,toolbar:m,aside:p,secondary:g,children:b,className:x,...f}){let y=i&&(H(s)||H(l)||H(b)||H(d)||H(c)),k=e==="horizontal"&&H(u)&&y,S=n==="fill",w=H(g),C=k&&w,T=H(p)?jsxRuntime.jsx("div",{"data-record-part":"aside",className:"flex min-h-0 shrink-0 gap-global",children:p}):null;return jsxRuntime.jsxs("article",{...f,"data-monkeys-component":"record-view","data-record-layout":e,"data-record-sizing":n,className:v("@container flex min-h-0 min-w-0 flex-col gap-global font-[family-name:var(--font-sans)] text-sm leading-5 text-foreground",S&&"h-full",x),children:[H(m)&&jsxRuntime.jsx("div",{"data-record-part":"toolbar",className:"flex shrink-0 flex-wrap items-center gap-global",children:m}),jsxRuntime.jsxs("div",{className:v("flex min-h-0 min-w-0 gap-global",S&&"flex-1"),children:[r==="start"&&T,jsxRuntime.jsxs("div",{"data-record-part":"body",className:v("grid min-h-0 min-w-0 flex-1 grid-cols-1 gap-global",C?"@[48rem]:grid-cols-[minmax(0,2fr)_minmax(0,1fr)_minmax(0,1fr)]":k&&(o==="balanced"?"@[48rem]:grid-cols-2":t==="start"?"@[48rem]:grid-cols-[minmax(0,1fr)_minmax(16rem,24rem)]":"@[48rem]:grid-cols-[minmax(16rem,24rem)_minmax(0,1fr)]"),S&&"overflow-auto @[48rem]:overflow-hidden"),children:[H(u)&&jsxRuntime.jsx("div",{"data-record-part":"media",className:v("min-h-0 min-w-0",t==="end"&&k&&"@[48rem]:order-2",S&&"flex flex-col"),children:u}),y&&jsxRuntime.jsxs("div",{"data-record-part":"details",className:v("flex min-h-0 min-w-0 flex-col [&>section]:flex-1",S&&"@[48rem]:overflow-auto"),children:[H(s)&&jsxRuntime.jsx("div",{className:"mb-global flex flex-wrap items-center gap-global",children:s}),H(l)&&jsxRuntime.jsx("div",{className:"mb-global flex flex-wrap items-center gap-global text-sm tabular-nums text-muted-foreground [&_span]:text-inherit [&_time]:text-inherit",children:l}),b,H(d)&&jsxRuntime.jsx("div",{className:"mt-global break-words text-sm text-destructive-text",children:d}),H(c)&&jsxRuntime.jsx("div",{className:"mt-auto flex shrink-0 flex-wrap gap-global pt-global",children:c})]}),w&&jsxRuntime.jsx("div",{"data-record-part":"secondary",className:v("flex min-h-0 min-w-0 flex-col [&>section]:flex-1",S&&"@[48rem]:overflow-auto"),children:g})]}),r==="end"&&T]})]})}a($s,"RecordView");var h=Object.freeze({numericSeries:Object.freeze({inspect:"monkeys.design.capability.numericSeries.inspect",noPoints:"monkeys.design.capability.numericSeries.noPoints",point:"monkeys.design.capability.numericSeries.point",label:"monkeys.design.capability.numericSeries.label",description:"monkeys.design.capability.numericSeries.description",start:"monkeys.design.capability.numericSeries.start",end:"monkeys.design.capability.numericSeries.end",reset:"monkeys.design.capability.numericSeries.reset",expand:"monkeys.design.capability.numericSeries.expand",close:"monkeys.design.capability.numericSeries.close"}),catalog:Object.freeze({shellLayout:Object.freeze({label:"monkeys.design.catalog.shellLayout.label",description:"monkeys.design.catalog.shellLayout.description"}),sidebarFilter:Object.freeze({label:"monkeys.design.catalog.sidebarFilter.label",description:"monkeys.design.catalog.sidebarFilter.description"}),ontologyNavigator:Object.freeze({label:"monkeys.design.catalog.ontologyNavigator.label",description:"monkeys.design.catalog.ontologyNavigator.description"}),dataToolbar:Object.freeze({label:"monkeys.design.catalog.dataToolbar.label",description:"monkeys.design.catalog.dataToolbar.description"}),ontologyTable:Object.freeze({label:"monkeys.design.catalog.ontologyTable.label",description:"monkeys.design.catalog.ontologyTable.description"}),cardGrid:Object.freeze({label:"monkeys.design.catalog.cardGrid.label",description:"monkeys.design.catalog.cardGrid.description"}),pagination:Object.freeze({label:"monkeys.design.catalog.pagination.label",description:"monkeys.design.catalog.pagination.description"}),recordDetail:Object.freeze({label:"monkeys.design.catalog.recordDetail.label",description:"monkeys.design.catalog.recordDetail.description"}),recordEditor:Object.freeze({label:"monkeys.design.catalog.recordEditor.label",description:"monkeys.design.catalog.recordEditor.description"}),recordHistory:Object.freeze({label:"monkeys.design.catalog.recordHistory.label",description:"monkeys.design.catalog.recordHistory.description"}),ontologyManagement:Object.freeze({label:"monkeys.design.catalog.ontologyManagement.label",description:"monkeys.design.catalog.ontologyManagement.description"}),featureColumnManager:Object.freeze({label:"monkeys.design.catalog.featureColumnManager.label",description:"monkeys.design.catalog.featureColumnManager.description"}),ontologyTrendMatrix:Object.freeze({label:"monkeys.design.catalog.ontologyTrendMatrix.label",description:"monkeys.design.catalog.ontologyTrendMatrix.description"}),dataContextBar:Object.freeze({label:"monkeys.design.catalog.dataContextBar.label",description:"monkeys.design.catalog.dataContextBar.description"}),gallery:Object.freeze({label:"monkeys.design.catalog.gallery.label",description:"monkeys.design.catalog.gallery.description"}),sectionHeader:Object.freeze({label:"monkeys.design.catalog.sectionHeader.label",description:"monkeys.design.catalog.sectionHeader.description"}),notice:Object.freeze({label:"monkeys.design.catalog.notice.label",description:"monkeys.design.catalog.notice.description"}),descriptionList:Object.freeze({label:"monkeys.design.catalog.descriptionList.label",description:"monkeys.design.catalog.descriptionList.description"}),contentPanel:Object.freeze({label:"monkeys.design.catalog.contentPanel.label",description:"monkeys.design.catalog.contentPanel.description"}),toolbar:Object.freeze({label:"monkeys.design.catalog.toolbar.label",description:"monkeys.design.catalog.toolbar.description"}),status:Object.freeze({label:"monkeys.design.catalog.status.label",description:"monkeys.design.catalog.status.description"}),viewLeaf:Object.freeze({label:"monkeys.design.catalog.viewLeaf.label",description:"monkeys.design.catalog.viewLeaf.description"})}),status:Object.freeze({loading:Object.freeze({title:"monkeys.design.capability.status.loading.title",description:"monkeys.design.capability.status.loading.description"}),empty:Object.freeze({title:"monkeys.design.capability.status.empty.title",description:"monkeys.design.capability.status.empty.description"}),error:Object.freeze({title:"monkeys.design.capability.status.error.title",description:"monkeys.design.capability.status.error.description"}),forbidden:Object.freeze({title:"monkeys.design.capability.status.forbidden.title",description:"monkeys.design.capability.status.forbidden.description"}),retry:"monkeys.design.capability.status.retry.label"}),shellLayout:Object.freeze({resizeSidebar:"monkeys.design.capability.shellLayout.resizeSidebar",collapseSidebar:"monkeys.design.capability.shellLayout.collapseSidebar",expandSidebar:"monkeys.design.capability.shellLayout.expandSidebar",resizeAside:"monkeys.design.capability.shellLayout.resizeAside"}),sidebarFilter:Object.freeze({title:"monkeys.design.capability.sidebarFilter.title",searchLabel:"monkeys.design.capability.sidebarFilter.search.label",searchPlaceholder:"monkeys.design.capability.sidebarFilter.search.placeholder",groupLabel:"monkeys.design.capability.sidebarFilter.group.label",optionLabel:"monkeys.design.capability.sidebarFilter.option.label"}),gallery:Object.freeze({itemTitle:"monkeys.design.capability.gallery.item.title",itemActivate:"monkeys.design.capability.gallery.item.activate",loadMore:"monkeys.design.capability.gallery.pagination.loadMore",loadingMore:"monkeys.design.capability.gallery.pagination.loadingMore"}),ontologyNavigator:Object.freeze({empty:"monkeys.design.capability.ontologyNavigator.empty",moreActions:"monkeys.design.capability.ontologyNavigator.moreActions",searchLabel:"monkeys.design.capability.ontologyNavigator.search.label",searchPlaceholder:"monkeys.design.capability.ontologyNavigator.search.placeholder",loadMore:"monkeys.design.capability.ontologyNavigator.loadMore",loadingMore:"monkeys.design.capability.ontologyNavigator.loadingMore"}),dataToolbar:Object.freeze({addRow:"monkeys.design.capability.dataToolbar.addRow",blankRowName:"monkeys.design.capability.dataToolbar.blankRowName",searchPlaceholder:"monkeys.design.capability.dataToolbar.search.placeholder",selection:"monkeys.design.capability.dataToolbar.selection",gallerySettings:"monkeys.design.capability.dataToolbar.gallerySettings",galleryPresentation:{visibleColumns:"monkeys.design.capability.dataToolbar.galleryPresentation.visibleColumns",coverField:"monkeys.design.capability.dataToolbar.galleryPresentation.coverField",autoDetect:"monkeys.design.capability.dataToolbar.galleryPresentation.autoDetect",cardDensity:"monkeys.design.capability.dataToolbar.galleryPresentation.cardDensity",cardColumns:"monkeys.design.capability.dataToolbar.galleryPresentation.cardColumns",detailColumns:"monkeys.design.capability.dataToolbar.galleryPresentation.detailColumns",fieldVisibility:"monkeys.design.capability.dataToolbar.galleryPresentation.fieldVisibility",fieldLimit:"monkeys.design.capability.dataToolbar.galleryPresentation.fieldLimit",fieldLimitHint:"monkeys.design.capability.dataToolbar.galleryPresentation.fieldLimitHint",layout:"monkeys.design.capability.dataToolbar.galleryPresentation.layout",compact:"monkeys.design.capability.dataToolbar.galleryPresentation.compact",comfortable:"monkeys.design.capability.dataToolbar.galleryPresentation.comfortable",detailed:"monkeys.design.capability.dataToolbar.galleryPresentation.detailed",autoColumns:"monkeys.design.capability.dataToolbar.galleryPresentation.autoColumns",columns:"monkeys.design.capability.dataToolbar.galleryPresentation.columns",bentoColumns:"monkeys.design.capability.dataToolbar.galleryPresentation.bentoColumns",topLimit:"monkeys.design.capability.dataToolbar.galleryPresentation.topLimit",allFields:"monkeys.design.capability.dataToolbar.galleryPresentation.allFields",adaptiveGrid:"monkeys.design.capability.dataToolbar.galleryPresentation.adaptiveGrid",masonry:"monkeys.design.capability.dataToolbar.galleryPresentation.masonry",rail:"monkeys.design.capability.dataToolbar.galleryPresentation.rail"}}),ontologyTable:Object.freeze({label:"monkeys.design.capability.ontologyTable.label",empty:"monkeys.design.capability.ontologyTable.empty",activate:"monkeys.design.capability.ontologyTable.activate",select:"monkeys.design.capability.ontologyTable.select",sort:"monkeys.design.capability.ontologyTable.sort",loadMore:"monkeys.design.capability.ontologyTable.loadMore",loadingMore:"monkeys.design.capability.ontologyTable.loadingMore"}),cardGrid:Object.freeze({empty:"monkeys.design.capability.cardGrid.empty",activate:"monkeys.design.capability.cardGrid.activate",select:"monkeys.design.capability.cardGrid.select",loadMore:"monkeys.design.capability.cardGrid.loadMore",loadingMore:"monkeys.design.capability.cardGrid.loadingMore"}),pagination:Object.freeze({label:"monkeys.design.capability.pagination.label",loadMore:"monkeys.design.capability.pagination.loadMore",loadingMore:"monkeys.design.capability.pagination.loadingMore"}),recordDetail:Object.freeze({edit:"monkeys.design.capability.recordDetail.edit",close:"monkeys.design.capability.recordDetail.close",attachments:"monkeys.design.capability.recordDetail.attachments",previous:"monkeys.design.capability.recordDetail.previous",next:"monkeys.design.capability.recordDetail.next"}),recordEditor:Object.freeze({submit:"monkeys.design.capability.recordEditor.submit",cancel:"monkeys.design.capability.recordEditor.cancel",mapping:Object.freeze({targets:"monkeys.design.capability.recordEditor.mapping.targets",sources:"monkeys.design.capability.recordEditor.mapping.sources",actions:"monkeys.design.capability.recordEditor.mapping.actions",addTarget:"monkeys.design.capability.recordEditor.mapping.addTarget",removeTarget:"monkeys.design.capability.recordEditor.mapping.removeTarget",addSource:"monkeys.design.capability.recordEditor.mapping.addSource",removeSource:"monkeys.design.capability.recordEditor.mapping.removeSource",search:"monkeys.design.capability.recordEditor.mapping.search",emptyTargets:"monkeys.design.capability.recordEditor.mapping.emptyTargets",emptySources:"monkeys.design.capability.recordEditor.mapping.emptySources"}),optionsEmpty:"monkeys.design.capability.recordEditor.options.empty",optionsLoadMore:"monkeys.design.capability.recordEditor.options.loadMore",optionsLoadingMore:"monkeys.design.capability.recordEditor.options.loadingMore",jsonInvalid:"monkeys.design.capability.recordEditor.json.invalid"}),recordHistory:Object.freeze({title:"monkeys.design.capability.recordHistory.title",close:"monkeys.design.capability.recordHistory.close",commits:"monkeys.design.capability.recordHistory.commits",loadMore:"monkeys.design.capability.recordHistory.loadMore",loadingMore:"monkeys.design.capability.recordHistory.loadingMore",selected:"monkeys.design.capability.recordHistory.selected",diff:"monkeys.design.capability.recordHistory.diff",field:"monkeys.design.capability.recordHistory.diff.field",before:"monkeys.design.capability.recordHistory.diff.before",after:"monkeys.design.capability.recordHistory.diff.after",noDiff:"monkeys.design.capability.recordHistory.diff.empty",reason:"monkeys.design.capability.recordHistory.reason",reasonDescription:"monkeys.design.capability.recordHistory.reason.description",rollback:"monkeys.design.capability.recordHistory.rollback",delete:"monkeys.design.capability.recordHistory.delete"}),ontologyManagement:Object.freeze({title:"monkeys.design.capability.ontologyManagement.title",markerDescription:"monkeys.design.capability.ontologyManagement.markerDescription",create:"monkeys.design.capability.ontologyManagement.create",edit:"monkeys.design.capability.ontologyManagement.edit",delete:"monkeys.design.capability.ontologyManagement.delete",import:"monkeys.design.capability.ontologyManagement.import",description:"monkeys.design.capability.ontologyManagement.description",submit:"monkeys.design.capability.ontologyManagement.submit",cancel:"monkeys.design.capability.ontologyManagement.cancel",displayName:"monkeys.design.capability.ontologyManagement.field.displayName",label:"monkeys.design.capability.ontologyManagement.field.label",templateKey:"monkeys.design.capability.ontologyManagement.field.templateKey",templateName:"monkeys.design.capability.ontologyManagement.field.templateName",templateDescription:"monkeys.design.capability.ontologyManagement.field.templateDescription",templateTags:"monkeys.design.capability.ontologyManagement.field.templateTags",templateTagsDescription:"monkeys.design.capability.ontologyManagement.field.templateTagsDescription",creatorCurrentUser:"monkeys.design.capability.ontologyManagement.field.creatorCurrentUser",creatorCurrentUserShort:"monkeys.design.capability.ontologyManagement.field.creatorCurrentUserShort",defaultViewTemplatesDescription:"monkeys.design.capability.ontologyManagement.field.defaultViewTemplatesDescription",defaultViewTemplate:"monkeys.design.capability.ontologyManagement.field.defaultViewTemplate",defaultSelectedView:"monkeys.design.capability.ontologyManagement.field.defaultSelectedView",tagFilterEnabled:"monkeys.design.capability.ontologyManagement.field.tagFilterEnabled",tagFilterEmpty:"monkeys.design.capability.ontologyManagement.field.tagFilterEmpty",tableColumnsSummary:"monkeys.design.capability.ontologyManagement.field.tableColumnsSummary",editTemplateDetails:"monkeys.design.capability.ontologyManagement.field.editTemplateDetails",editTemplateDetailsDescription:"monkeys.design.capability.ontologyManagement.field.editTemplateDetailsDescription",filterInclude:"monkeys.design.capability.ontologyManagement.filter.include",filterAny:"monkeys.design.capability.ontologyManagement.filter.any",filterExclude:"monkeys.design.capability.ontologyManagement.filter.exclude",filterNoTags:"monkeys.design.capability.ontologyManagement.filter.noTags",filterSearch:"monkeys.design.capability.ontologyManagement.filter.search",filterTagGroup:"monkeys.design.capability.ontologyManagement.filter.tagGroup",filterAllGroups:"monkeys.design.capability.ontologyManagement.filter.allGroups",filterAddOrGroup:"monkeys.design.capability.ontologyManagement.filter.addOrGroup",filterNoOrGroups:"monkeys.design.capability.ontologyManagement.filter.noOrGroups",filterOrGroup:"monkeys.design.capability.ontologyManagement.filter.orGroup",filterDeleteGroup:"monkeys.design.capability.ontologyManagement.filter.deleteGroup",filterSupplement:"monkeys.design.capability.ontologyManagement.filter.supplement",filterConfigureSupplement:"monkeys.design.capability.ontologyManagement.filter.configureSupplement",filterClearSupplement:"monkeys.design.capability.ontologyManagement.filter.clearSupplement",filterSupplementMode:"monkeys.design.capability.ontologyManagement.filter.supplementMode",filterModeOr:"monkeys.design.capability.ontologyManagement.filter.modeOr",filterModeAnd:"monkeys.design.capability.ontologyManagement.filter.modeAnd",filterModeCombination:"monkeys.design.capability.ontologyManagement.filter.modeCombination",filterRequiredAll:"monkeys.design.capability.ontologyManagement.filter.requiredAll",filterRequiredAny:"monkeys.design.capability.ontologyManagement.filter.requiredAny",filterAdvancedRules:"monkeys.design.capability.ontologyManagement.filter.advancedRules",filterAdvancedRulesDescription:"monkeys.design.capability.ontologyManagement.filter.advancedRulesDescription",filterRemoveAdvancedRules:"monkeys.design.capability.ontologyManagement.filter.removeAdvancedRules",defaultViewTemplates:"monkeys.design.capability.ontologyManagement.field.defaultViewTemplates",markerExists:"monkeys.design.capability.ontologyManagement.field.markerExists",targetOntology:"monkeys.design.capability.ontologyManagement.field.targetOntology",deleteTemplate:"monkeys.design.capability.ontologyManagement.action.deleteTemplate",deleteMarker:"monkeys.design.capability.ontologyManagement.action.deleteMarker",createDefaultViews:"monkeys.design.capability.ontologyManagement.action.createDefaultViews",techpackPreset:"monkeys.design.capability.ontologyManagement.action.techpackPreset",trendPreset:"monkeys.design.capability.ontologyManagement.action.trendPreset",addTemplate:"monkeys.design.capability.ontologyManagement.action.addTemplate",noTemplates:"monkeys.design.capability.ontologyManagement.empty.noTemplates",descriptionField:"monkeys.design.capability.ontologyManagement.field.description",bodyKind:"monkeys.design.capability.ontologyManagement.field.bodyKind",visible:"monkeys.design.capability.ontologyManagement.field.visible",kernelReadAllTeams:"monkeys.design.capability.ontologyManagement.field.kernelReadAllTeams",publicRead:"monkeys.design.capability.ontologyManagement.field.publicRead",publicWrite:"monkeys.design.capability.ontologyManagement.field.publicWrite",customizeViewModes:"monkeys.design.capability.ontologyManagement.field.customizeViewModes",availableViewModes:"monkeys.design.capability.ontologyManagement.field.availableViewModes",defaultViewMode:"monkeys.design.capability.ontologyManagement.field.defaultViewMode",viewModeTable:"monkeys.design.capability.ontologyManagement.field.viewMode.table",viewModeCard:"monkeys.design.capability.ontologyManagement.field.viewMode.card",viewModeGallery:"monkeys.design.capability.ontologyManagement.field.viewMode.gallery",viewModeTrendMatrix:"monkeys.design.capability.ontologyManagement.field.viewMode.trendMatrix",selectAtLeastOneViewMode:"monkeys.design.capability.ontologyManagement.field.validation.selectAtLeastOneViewMode",profile:"monkeys.design.capability.ontologyManagement.field.profile",sourceOntologyId:"monkeys.design.capability.ontologyManagement.field.sourceOntologyId",viewId:"monkeys.design.capability.ontologyManagement.field.viewId",name:"monkeys.design.capability.ontologyManagement.field.name",targetTeamId:"monkeys.design.capability.ontologyManagement.field.targetTeamId",currentTeamId:"monkeys.design.capability.ontologyManagement.field.currentTeamId",count:"monkeys.design.capability.ontologyManagement.field.count",blankRowLabel:"monkeys.design.capability.ontologyManagement.field.blankRowLabel",indexMode:"monkeys.design.capability.ontologyManagement.field.indexMode",parentId:"monkeys.design.capability.ontologyManagement.field.parentId",viewType:"monkeys.design.capability.ontologyManagement.field.viewType.label",viewTypeFilter:"monkeys.design.capability.ontologyManagement.field.viewType.filter",viewTypeContainer:"monkeys.design.capability.ontologyManagement.field.viewType.container",sourceContainerViewId:"monkeys.design.capability.ontologyManagement.field.sourceContainerViewId",displayConfig:"monkeys.design.capability.ontologyManagement.field.displayConfig",sort:"monkeys.design.capability.ontologyManagement.field.sort",managedFileId:"monkeys.design.capability.ontologyManagement.field.managedFileId",mode:"monkeys.design.capability.ontologyManagement.field.mode",columnId:"monkeys.design.capability.ontologyManagement.field.columnId",containerViewId:"monkeys.design.capability.ontologyManagement.field.containerViewId",type:"monkeys.design.capability.ontologyManagement.field.type",config:"monkeys.design.capability.ontologyManagement.field.config",scopeContainerViewId:"monkeys.design.capability.ontologyManagement.field.scopeContainerViewId",attached:"monkeys.design.capability.ontologyManagement.field.attached.label",attachedTrue:"monkeys.design.capability.ontologyManagement.field.attached.true",attachedFalse:"monkeys.design.capability.ontologyManagement.field.attached.false",pageSize:"monkeys.design.capability.ontologyManagement.field.pageSize",tagGroupIds:"monkeys.design.capability.ontologyManagement.field.tagGroupIds",featureColumnIds:"monkeys.design.capability.ontologyManagement.field.featureColumnIds",basicFieldIds:"monkeys.design.capability.ontologyManagement.field.basicFieldIds",columnType:"monkeys.design.capability.ontologyManagement.field.columnType.label",columnTypeFeature:"monkeys.design.capability.ontologyManagement.field.columnType.feature",columnTypePreview:"monkeys.design.capability.ontologyManagement.field.columnType.preview",featureColumnId:"monkeys.design.capability.ontologyManagement.field.featureColumnId",itemLimit:"monkeys.design.capability.ontologyManagement.field.itemLimit",shareOperation:"monkeys.design.capability.ontologyManagement.field.shareOperation.label",shareOperationUpsert:"monkeys.design.capability.ontologyManagement.field.shareOperation.upsert",shareOperationRevoke:"monkeys.design.capability.ontologyManagement.field.shareOperation.revoke",targetType:"monkeys.design.capability.ontologyManagement.field.targetType.label",targetTypeUser:"monkeys.design.capability.ontologyManagement.field.targetType.user",targetTypeTeam:"monkeys.design.capability.ontologyManagement.field.targetType.team",targetId:"monkeys.design.capability.ontologyManagement.field.targetId",permissions:"monkeys.design.capability.ontologyManagement.field.permissions",expiresAt:"monkeys.design.capability.ontologyManagement.field.expiresAt",actions:Object.freeze({"ontology-create":"monkeys.design.capability.ontologyManagement.action.ontologyCreate","ontology-update":"monkeys.design.capability.ontologyManagement.action.ontologyUpdate","ontology-delete":"monkeys.design.capability.ontologyManagement.action.ontologyDelete","ontology-marker":"monkeys.design.capability.ontologyManagement.action.ontologyMarker","ontology-default-views":"monkeys.design.capability.ontologyManagement.action.ontologyDefaultViews","ontology-snapshot":"monkeys.design.capability.ontologyManagement.action.ontologySnapshot","ontology-import-jsonl":"monkeys.design.capability.ontologyManagement.action.ontologyImportJsonl","ontology-import-records-jsonl":"monkeys.design.capability.ontologyManagement.action.ontologyImportRecordsJsonl","ontology-import-tag-relations-jsonl":"monkeys.design.capability.ontologyManagement.action.ontologyImportTagRelationsJsonl","ontology-import-text-column-jsonl":"monkeys.design.capability.ontologyManagement.action.ontologyImportTextColumnJsonl","ontology-import-json-column-jsonl":"monkeys.design.capability.ontologyManagement.action.ontologyImportJsonColumnJsonl","ontology-import-relation-column-jsonl":"monkeys.design.capability.ontologyManagement.action.ontologyImportRelationColumnJsonl","feature-column-create":"monkeys.design.capability.ontologyManagement.action.featureColumnCreate","feature-column-update":"monkeys.design.capability.ontologyManagement.action.featureColumnUpdate","feature-column-attachment-set":"monkeys.design.capability.ontologyManagement.action.featureColumnAttachmentSet","view-export-jsonl":"monkeys.design.capability.ontologyManagement.action.viewExportJsonl","feature-column-images-export":"monkeys.design.capability.ontologyManagement.action.featureColumnImagesExport","view-create":"monkeys.design.capability.ontologyManagement.action.viewCreate","view-detail":"monkeys.design.capability.ontologyManagement.action.viewDetail","view-convert-to-container":"monkeys.design.capability.ontologyManagement.action.viewConvertToContainer","view-edit-team":"monkeys.design.capability.ontologyManagement.action.viewEditTeam","view-insert-blank-rows":"monkeys.design.capability.ontologyManagement.action.viewInsertBlankRows","view-snapshot":"monkeys.design.capability.ontologyManagement.action.viewSnapshot","view-update":"monkeys.design.capability.ontologyManagement.action.viewUpdate","view-delete":"monkeys.design.capability.ontologyManagement.action.viewDelete","view-share":"monkeys.design.capability.ontologyManagement.action.viewShare"})}),ontologyTrendMatrix:Object.freeze({label:"monkeys.design.capability.ontologyTrendMatrix.label",row:"monkeys.design.capability.ontologyTrendMatrix.row",window:"monkeys.design.capability.ontologyTrendMatrix.window",select:"monkeys.design.capability.ontologyTrendMatrix.select"}),dataContextBar:Object.freeze({label:"monkeys.design.capability.dataContextBar.label",filter:"monkeys.design.capability.dataContextBar.filter",searchLabel:"monkeys.design.capability.dataContextBar.search.label",searchPlaceholder:"monkeys.design.capability.dataContextBar.search.placeholder",clear:"monkeys.design.capability.dataContextBar.clear",clearAll:"monkeys.design.capability.dataContextBar.clearAll",tagFilterClear:"monkeys.design.capability.dataContextBar.tagFilterClear",filterDescription:"monkeys.design.capability.dataContextBar.filterDescription",tagScope:"monkeys.design.capability.dataContextBar.tagScope",currentViewTags:"monkeys.design.capability.dataContextBar.currentViewTags",allTags:"monkeys.design.capability.dataContextBar.allTags",panelFilter:"monkeys.design.capability.dataContextBar.panelFilter",searchTags:"monkeys.design.capability.dataContextBar.searchTags",noAvailableTags:"monkeys.design.capability.dataContextBar.noAvailableTags",loadedAll:"monkeys.design.capability.dataContextBar.loadedAll",refreshTags:"monkeys.design.capability.dataContextBar.refreshTags",confirm:"monkeys.design.capability.dataContextBar.confirm",tagPanel:"monkeys.design.capability.dataContextBar.tagPanel",selectPanel:"monkeys.design.capability.dataContextBar.selectPanel",noPanels:"monkeys.design.capability.dataContextBar.noPanels",noPanelGroups:"monkeys.design.capability.dataContextBar.noPanelGroups",singleSelect:"monkeys.design.capability.dataContextBar.singleSelect",multiSelect:"monkeys.design.capability.dataContextBar.multiSelect",defaultGroup:"monkeys.design.capability.dataContextBar.defaultGroup",more:"monkeys.design.capability.dataContextBar.more",dashboardContext:"monkeys.design.capability.dataContextBar.dashboardContext",contextCount:"monkeys.design.capability.dataContextBar.contextCount",fields:Object.freeze({search:"monkeys.design.capability.dataContextBar.field.search",tagIds:"monkeys.design.capability.dataContextBar.field.tagIds",tagGroupIds:"monkeys.design.capability.dataContextBar.field.tagGroupIds",timeFrom:"monkeys.design.capability.dataContextBar.field.timeFrom",timeTo:"monkeys.design.capability.dataContextBar.field.timeTo",clickedField:"monkeys.design.capability.dataContextBar.field.clickedField",clickedValue:"monkeys.design.capability.dataContextBar.field.clickedValue",dashboardDrilldown:"monkeys.design.capability.dataContextBar.field.dashboardDrilldown"})})});Object.freeze({"en-US":Object.freeze({"monkeys.design.capability.agentConversation.label":"Agent conversation","monkeys.design.capability.agentConversation.description":"Persistent conversation through an authenticated Agent runtime.","monkeys.design.capability.reportDocument.label":"Report document","monkeys.design.capability.reportDocument.description":"Read a projected report with managed media.",[h.ontologyManagement.markerDescription]:"Configure the ontology marker and default views.",[h.ontologyManagement.label]:"Marker name",[h.ontologyManagement.targetOntology]:"Target ontology",[h.ontologyManagement.templateKey]:"Template key",[h.ontologyManagement.templateName]:"View name",[h.ontologyManagement.templateDescription]:"View description",[h.ontologyManagement.templateTags]:"Tag filters",[h.ontologyManagement.templateTagsDescription]:"Choose the tags included, matched, or excluded by this view.",[h.ontologyManagement.creatorCurrentUser]:"Only show records created by the current user",[h.ontologyManagement.creatorCurrentUserShort]:"Current user",[h.ontologyManagement.defaultViewTemplatesDescription]:"Configure default views and their filters for this ontology.",[h.ontologyManagement.defaultViewTemplate]:"Default view template",[h.ontologyManagement.defaultSelectedView]:"Open by default",[h.ontologyManagement.tagFilterEnabled]:"Tag filters configured",[h.ontologyManagement.tagFilterEmpty]:"No tag filters",[h.ontologyManagement.tableColumnsSummary]:"{count} table columns configured",[h.ontologyManagement.editTemplateDetails]:"Edit view template",[h.ontologyManagement.editTemplateDetailsDescription]:"Configure the name, order, and filters.",[h.ontologyManagement.defaultViewTemplates]:"Default view templates",[h.ontologyManagement.markerExists]:"Ontology marker exists",[h.ontologyManagement.filterInclude]:"Include all",[h.ontologyManagement.filterAny]:"Match any",[h.ontologyManagement.filterExclude]:"Exclude",[h.ontologyManagement.filterNoTags]:"No matching tags",[h.ontologyManagement.filterSearch]:"Search tags",[h.ontologyManagement.filterTagGroup]:"Tag group",[h.ontologyManagement.filterAllGroups]:"All tag groups",[h.ontologyManagement.filterAddOrGroup]:"Add OR group",[h.ontologyManagement.filterNoOrGroups]:"No OR groups",[h.ontologyManagement.filterOrGroup]:"OR group {n}",[h.ontologyManagement.filterDeleteGroup]:"Delete group",[h.ontologyManagement.filterSupplement]:"Supplement rules for {name}",[h.ontologyManagement.filterConfigureSupplement]:"Configure supplement rules",[h.ontologyManagement.filterClearSupplement]:"Clear supplement rules",[h.ontologyManagement.filterSupplementMode]:"Match mode",[h.ontologyManagement.filterModeOr]:"Any condition (OR)",[h.ontologyManagement.filterModeAnd]:"All conditions (AND)",[h.ontologyManagement.filterModeCombination]:"Combined conditions",[h.ontologyManagement.filterRequiredAll]:"Require all tags",[h.ontologyManagement.filterRequiredAny]:"Require at least one tag",[h.ontologyManagement.filterAdvancedRules]:"{count} advanced rules",[h.ontologyManagement.filterAdvancedRulesDescription]:"Existing rules are preserved unless explicitly removed.",[h.ontologyManagement.filterRemoveAdvancedRules]:"Remove advanced rules",[h.ontologyManagement.deleteTemplate]:"Delete template",[h.ontologyManagement.deleteMarker]:"Delete marker",[h.ontologyManagement.createDefaultViews]:"Create default views",[h.ontologyManagement.addTemplate]:"Add view template",[h.ontologyManagement.noTemplates]:"No default view templates",[h.ontologyManagement.actions["ontology-marker"]]:"Set ontology marker",[h.ontologyManagement.actions["view-detail"]]:"View details",[h.ontologyManagement.actions["view-convert-to-container"]]:"Convert to enhanced view",[h.ontologyManagement.actions["view-edit-team"]]:"Edit view team",[h.ontologyManagement.actions["view-insert-blank-rows"]]:"Insert blank rows",[h.ontologyManagement.actions["view-snapshot"]]:"Import to new Ontology",[h.ontologyManagement.targetTeamId]:"Target team ID",[h.ontologyManagement.currentTeamId]:"Current team ID",[h.ontologyManagement.count]:"Row count",[h.ontologyManagement.blankRowLabel]:"Blank row label","monkeys.design.capability.pagination.previous":"Previous page","monkeys.design.capability.pagination.next":"Next page","monkeys.design.iconPicker.confirm":"Confirm","monkeys.design.iconPicker.categories":"Categories","monkeys.design.iconPicker.icon":"Icon","monkeys.design.iconPicker.choose":"Choose an icon","monkeys.design.iconPicker.current":"Current icon","monkeys.design.iconPicker.reset":"Reset","monkeys.design.iconPicker.search":"Search icons","monkeys.design.iconPicker.category":"Category","monkeys.design.iconPicker.background":"Background color","monkeys.design.iconPicker.upload":"Upload icon","monkeys.design.iconPicker.uploadFailed":"Icon upload failed","monkeys.design.iconPicker.loading":"Loading icons","monkeys.design.iconPicker.retry":"Retry","monkeys.design.iconPicker.empty":"No matching icons","monkeys.design.iconPicker.close":"Close","monkeys.design.iconPicker.emoji":"Emoji","monkeys.design.iconPicker.catalogFailed":"Unable to load icons","monkeys.design.emojiPanel.loading":"Loading emoji","monkeys.design.emojiPanel.unavailable":"Unable to load emoji","monkeys.design.capability.choicePicker.label":"Choice picker","monkeys.design.capability.choicePicker.description":"Search and select a paginated collection.","monkeys.design.capability.runtimeTerminal.status":"Terminal","monkeys.design.capability.runtimeTerminal.waiting":"Connecting to terminal\u2026","monkeys.design.capability.recordEditor.add":"Add item","monkeys.design.capability.recordEditor.remove":"Remove item","monkeys.design.capability.recordEditor.moveUp":"Move up","monkeys.design.capability.recordEditor.moveDown":"Move down","monkeys.design.capability.recordEditor.reset":"Reset","monkeys.design.capability.imageUpload.sizeHint":"One image, up to {{size}} MB","monkeys.design.capability.imageUpload.title":"Click or drag an image here","monkeys.design.capability.imageUpload.hint":"Paste an image or image link","monkeys.design.capability.imageUpload.paste":"Paste from clipboard","monkeys.design.capability.imageUpload.replace":"Replace image","monkeys.design.capability.imageUpload.clipboardUnavailable":"Clipboard access is unavailable. Paste with your keyboard or choose a file.","monkeys.design.capability.imageUpload.clipboardEmpty":"No image or image link was found in the clipboard.","monkeys.design.capability.filePicker.label":"Choose file","monkeys.design.capability.mediaDraft.choose":"Add images","monkeys.design.capability.mediaDraft.hint":"Up to {count} images, {size} MB each. Uploaded when you save.","monkeys.design.capability.mediaDraft.replace":"Replace","monkeys.design.capability.mediaDraft.preview":"Preview image","monkeys.design.capability.mediaDraft.previewPrevious":"Previous image","monkeys.design.capability.mediaDraft.previewNext":"Next image","monkeys.design.capability.mediaDraft.count":"Too many images. Remove an image before adding more.","monkeys.design.capability.mediaDraft.type":"Choose image files.","monkeys.design.capability.mediaDraft.size":"An image is empty or exceeds the allowed size.","monkeys.design.capability.mediaDraft.failed":"Images could not be selected. Try again.","monkeys.design.capability.mediaDraft.unavailable":"Preview unavailable","monkeys.design.capability.mediaDraft.previous":"Move image earlier","monkeys.design.capability.mediaDraft.next":"Move image later","monkeys.design.capability.mediaDraft.remove":"Remove","monkeys.design.capability.filePicker.description":"Select a local file for a governed action.","monkeys.design.capability.recordEditor.removeSelection":"Remove {{name}}","monkeys.design.capability.fileUpload.remove":"Remove {{name}}","monkeys.design.capability.fileUpload.add":"Add attachments","monkeys.design.capability.recordEditor.saveChanges":"Save changes","monkeys.design.capability.fileUpload.drop":"or drop files here","monkeys.design.capability.fileUpload.uploading":"Uploading\u2026","monkeys.design.capability.fileUpload.failed":"Upload failed. Please try again.","monkeys.design.capability.fileUpload.limit":"You can attach up to {{count}} files.","monkeys.design.capability.filePicker.cancel":"Clear file","monkeys.design.capability.filePicker.tooLarge":"The file exceeds the allowed size.","monkeys.design.capability.filePicker.invalidType":"Choose a supported file type.","monkeys.design.capability.filePicker.registrationFailed":"The file could not be selected. Try again.","monkeys.design.capability.recordEditor.date.invalid":"Enter a valid date and time within the allowed range.","monkeys.design.capability.recordEditor.month.choose":"Choose year and month","monkeys.design.capability.recordEditor.month.previous":"Previous year or group of years","monkeys.design.capability.recordEditor.month.next":"Next year or group of years","monkeys.design.capability.recordEditor.month.clear":"Clear","monkeys.design.capability.recordEditor.clear":"Clear","monkeys.design.capability.recordEditor.notSet":"Not set","monkeys.design.capability.recordEditor.noOptions":"No matching options","monkeys.design.capability.recordEditor.pick":"Choose","monkeys.design.capability.recordEditor.relationLoading":"Loading","monkeys.design.capability.recordEditor.relationEmpty":"No matching items","monkeys.design.capability.recordEditor.relationFailed":"Could not load items","monkeys.design.capability.recordEditor.relationRetry":"Retry","monkeys.design.capability.recordEditor.relationMore":"Load more","monkeys.design.capability.recordEditor.relationRemove":"Remove","monkeys.design.capability.recordEditor.selectionSummary":"Selected: {{count}}","monkeys.design.capability.recordEditor.sections":"Form sections","monkeys.design.capability.recordEditor.secretKeep":"Keep existing","monkeys.design.capability.recordEditor.treeReorderFailed":"Could not save the order. Reload the list and try again.","monkeys.design.capability.recordEditor.secretMode":"{field} update mode","monkeys.design.capability.recordEditor.secretReplace":"Replace","monkeys.design.capability.recordEditor.secretClear":"Clear","monkeys.design.capability.recordEditor.mapping.targets":"Targets","monkeys.design.capability.recordEditor.mapping.sources":"Sources","monkeys.design.capability.recordEditor.mapping.actions":"Mapping actions","monkeys.design.capability.recordEditor.mapping.addTarget":"Add target","monkeys.design.capability.recordEditor.mapping.removeTarget":"Remove target","monkeys.design.capability.recordEditor.mapping.addSource":"Add source","monkeys.design.capability.recordEditor.mapping.removeSource":"Remove source","monkeys.design.capability.recordEditor.mapping.search":"Search sources","monkeys.design.capability.recordEditor.mapping.emptyTargets":"No targets","monkeys.design.capability.recordEditor.mapping.emptySources":"No sources assigned","monkeys.design.capability.recordEditor.mapping.groupCount":"{count} grouped targets","monkeys.design.capability.recordEditor.mapping.memberCount":"({count})","monkeys.design.capability.recordEditor.mapping.newTarget":"Enter target name","monkeys.design.capability.recordEditor.mapping.rename":"Target name","monkeys.design.capability.recordEditor.mapping.unnamed":"Unnamed target","monkeys.design.capability.recordEditor.mapping.incomplete":"Enter a name and assign at least one source before saving.","monkeys.design.capability.recordEditor.mapping.deleteConfirmation":"Delete \u201C{name}\u201D?","monkeys.design.capability.recordEditor.mapping.confirmDelete":"Delete","monkeys.design.capability.recordEditor.mapping.cancel":"Cancel","monkeys.design.capability.recordEditor.mapping.selectTarget":"Select a target on the left first","monkeys.design.capability.recordEditor.mapping.sourceTabs":"Source list","monkeys.design.capability.recordEditor.mapping.assigned":"Included ({count})","monkeys.design.capability.recordEditor.mapping.available":"Available ({count})","monkeys.design.capability.recordEditor.mapping.selectVisible":"Select current list","monkeys.design.capability.recordEditor.mapping.selected":"{count} selected","monkeys.design.capability.recordEditor.mapping.noMatches":"No matches","monkeys.design.capability.recordEditor.mapping.noAvailable":"No available sources","monkeys.design.capability.recordEditor.mapping.customSource":"Add custom source","monkeys.design.capability.recordEditor.mapping.addCustom":"Add custom source","monkeys.design.capability.recordEditor.mapping.add":"Add","monkeys.design.capability.recordEditor.mapping.addHint":"Add selected sources to this target","monkeys.design.capability.recordEditor.mapping.removeHint":"Remove selected sources from this target","monkeys.design.capability.recordEditor.mapping.currentTarget":"Current target: {name}","monkeys.design.capability.recordEditor.mapping.invalid":"The mapping is invalid.","monkeys.design.capability.recordEditor.mapping.invalidName":"Enter a valid name.","monkeys.design.capability.recordEditor.mapping.alreadyAssigned":"This source belongs to another target.","monkeys.design.capability.recordEditor.mapping.unavailable":"This source is unavailable.","monkeys.design.capability.recordEditor.mapping.added":"Added {count} sources to \u201C{name}\u201D","monkeys.design.capability.recordEditor.mapping.removed":"Removed {count} sources from \u201C{name}\u201D","monkeys.design.capability.recordEditor.mapping.deleted":"Deleted \u201C{name}\u201D",[h.numericSeries.inspect]:"Inspect observation","monkeys.design.capability.summaryChart.label":"Summary chart","monkeys.design.capability.dataToolbar.moreActions":"More actions","monkeys.design.capability.summaryChart.description":"Compare numeric series and category totals.","monkeys.design.capability.sparkline.label":"Sparkline","monkeys.design.capability.sparkline.description":"Show a compact, axis-free trend inside dense surfaces such as metric tiles.",[h.numericSeries.noPoints]:"No observations in this range",[h.numericSeries.point]:"{xLabel} {x}, {yLabel} {y}",[h.numericSeries.label]:"Numeric series",[h.numericSeries.description]:"Inspect numeric observations with range zoom and expansion.",[h.numericSeries.start]:"Range start",[h.numericSeries.end]:"Range end",[h.numericSeries.reset]:"Reset range",[h.numericSeries.expand]:"Expand chart",[h.numericSeries.close]:"Close chart",[h.shellLayout.resizeSidebar]:"Resize sidebar",[h.shellLayout.collapseSidebar]:"Collapse sidebar",[h.shellLayout.expandSidebar]:"Expand sidebar",[h.shellLayout.resizeAside]:"Resize detail panel",[h.ontologyNavigator.moreActions]:"More actions",[h.dataToolbar.addRow]:"Add row",[h.dataToolbar.blankRowName]:"Blank Row",[h.ontologyTrendMatrix.label]:"Ontology trend matrix",[h.ontologyTrendMatrix.row]:"Row",[h.ontologyTrendMatrix.window]:"Visible rows {start}-{end} of {total}",[h.ontologyTrendMatrix.select]:"Select {row}, {column}, {value}",[h.dataContextBar.label]:"Data filters and drilldown context",[h.dataContextBar.filter]:"Filters",[h.dataContextBar.searchLabel]:"Search data",[h.dataContextBar.searchPlaceholder]:"Search",[h.dataContextBar.clear]:"Clear",[h.dataContextBar.clearAll]:"Clear all",[h.dataContextBar.tagFilterClear]:"Clear",[h.dataContextBar.filterDescription]:"Filter assets by selecting tags via tag panel or manual search.",[h.dataContextBar.tagScope]:"Tag scope",[h.dataContextBar.currentViewTags]:"Current view",[h.dataContextBar.allTags]:"All tags",[h.dataContextBar.panelFilter]:"Panel filter",[h.dataContextBar.searchTags]:"Search tags",[h.dataContextBar.noAvailableTags]:"No available tags",[h.dataContextBar.loadedAll]:"All loaded",[h.dataContextBar.refreshTags]:"Refresh tags",[h.dataContextBar.confirm]:"Confirm",[h.dataContextBar.tagPanel]:"Tag panel",[h.dataContextBar.selectPanel]:"Select a panel",[h.dataContextBar.noPanels]:"No available panels",[h.dataContextBar.noPanelGroups]:"No tag groups in this panel",[h.dataContextBar.singleSelect]:"Single select",[h.dataContextBar.multiSelect]:"Multi select",[h.dataContextBar.defaultGroup]:"Default group",[h.dataContextBar.more]:"+{count} more",[h.dataContextBar.dashboardContext]:"Dashboard context",[h.dataContextBar.contextCount]:"{count} context values",[h.dataContextBar.fields.search]:"Search",[h.dataContextBar.fields.tagIds]:"Tags",[h.dataContextBar.fields.tagGroupIds]:"Tag groups",[h.dataContextBar.fields.timeFrom]:"From",[h.dataContextBar.fields.timeTo]:"To",[h.dataContextBar.fields.clickedField]:"Drilldown field",[h.dataContextBar.fields.clickedValue]:"Drilldown value",[h.dataContextBar.fields.dashboardDrilldown]:"Dashboard drilldown"}),"zh-CN":Object.freeze({"monkeys.design.capability.agentConversation.label":"\u667A\u80FD\u4F53\u5BF9\u8BDD","monkeys.design.capability.agentConversation.description":"\u901A\u8FC7\u5DF2\u8BA4\u8BC1\u667A\u80FD\u4F53\u8FD0\u884C\u65F6\u8FDB\u884C\u6301\u4E45\u5316\u5BF9\u8BDD\u3002","monkeys.design.capability.reportDocument.label":"\u62A5\u544A\u6587\u6863","monkeys.design.capability.reportDocument.description":"\u9605\u8BFB\u5305\u542B\u6258\u7BA1\u5A92\u4F53\u7684\u62A5\u544A\u6295\u5F71\u3002",[h.ontologyManagement.markerDescription]:"\u914D\u7F6E\u4ED3\u5E93\u6807\u8BB0\u548C\u9ED8\u8BA4\u89C6\u56FE\u3002",[h.ontologyManagement.label]:"\u6807\u8BB0\u540D\u79F0",[h.ontologyManagement.targetOntology]:"\u76EE\u6807\u4ED3\u5E93",[h.ontologyManagement.templateKey]:"\u6A21\u677F\u6807\u8BC6",[h.ontologyManagement.templateName]:"\u89C6\u56FE\u540D\u79F0",[h.ontologyManagement.templateDescription]:"\u89C6\u56FE\u63CF\u8FF0",[h.ontologyManagement.templateTags]:"\u6807\u7B7E\u7B5B\u9009",[h.ontologyManagement.templateTagsDescription]:"\u8BBE\u7F6E\u8BE5\u89C6\u56FE\u5305\u542B\u3001\u5339\u914D\u6216\u6392\u9664\u7684\u6807\u7B7E\u3002",[h.ontologyManagement.creatorCurrentUser]:"\u4EC5\u663E\u793A\u5F53\u524D\u7528\u6237\u521B\u5EFA\u7684\u6570\u636E",[h.ontologyManagement.creatorCurrentUserShort]:"\u5F53\u524D\u7528\u6237",[h.ontologyManagement.defaultViewTemplatesDescription]:"\u4E3A\u4ED3\u5E93\u914D\u7F6E\u9ED8\u8BA4\u89C6\u56FE\u53CA\u5176\u7B5B\u9009\u6761\u4EF6\u3002",[h.ontologyManagement.defaultViewTemplate]:"\u9ED8\u8BA4\u89C6\u56FE\u6A21\u677F",[h.ontologyManagement.defaultSelectedView]:"\u9ED8\u8BA4\u6253\u5F00",[h.ontologyManagement.tagFilterEnabled]:"\u5DF2\u914D\u7F6E\u6807\u7B7E\u7B5B\u9009",[h.ontologyManagement.tagFilterEmpty]:"\u672A\u914D\u7F6E\u6807\u7B7E\u7B5B\u9009",[h.ontologyManagement.tableColumnsSummary]:"\u5DF2\u914D\u7F6E {count} \u4E2A\u8868\u683C\u5217",[h.ontologyManagement.editTemplateDetails]:"\u7F16\u8F91\u89C6\u56FE\u6A21\u677F",[h.ontologyManagement.editTemplateDetailsDescription]:"\u914D\u7F6E\u540D\u79F0\u3001\u6392\u5E8F\u548C\u7B5B\u9009\u6761\u4EF6\u3002",[h.ontologyManagement.defaultViewTemplates]:"\u9ED8\u8BA4\u89C6\u56FE\u6A21\u677F",[h.ontologyManagement.markerExists]:"\u5DF2\u6709\u4ED3\u5E93\u6807\u8BB0",[h.ontologyManagement.filterInclude]:"\u5168\u90E8\u5305\u542B",[h.ontologyManagement.filterAny]:"\u5339\u914D\u4EFB\u610F",[h.ontologyManagement.filterExclude]:"\u6392\u9664",[h.ontologyManagement.filterNoTags]:"\u6CA1\u6709\u5339\u914D\u7684\u6807\u7B7E",[h.ontologyManagement.filterSearch]:"\u641C\u7D22\u6807\u7B7E",[h.ontologyManagement.filterTagGroup]:"\u6807\u7B7E\u7EC4",[h.ontologyManagement.filterAllGroups]:"\u5168\u90E8\u6807\u7B7E\u7EC4",[h.ontologyManagement.filterAddOrGroup]:"\u6DFB\u52A0\u6216\u6761\u4EF6\u7EC4",[h.ontologyManagement.filterNoOrGroups]:"\u6682\u65E0\u6216\u6761\u4EF6\u7EC4",[h.ontologyManagement.filterOrGroup]:"\u6216\u6761\u4EF6\u7EC4 {n}",[h.ontologyManagement.filterDeleteGroup]:"\u5220\u9664\u6761\u4EF6\u7EC4",[h.ontologyManagement.filterSupplement]:"{name} \u7684\u8865\u5145\u89C4\u5219",[h.ontologyManagement.filterConfigureSupplement]:"\u914D\u7F6E\u8865\u5145\u89C4\u5219",[h.ontologyManagement.filterClearSupplement]:"\u6E05\u9664\u8865\u5145\u89C4\u5219",[h.ontologyManagement.filterSupplementMode]:"\u5339\u914D\u65B9\u5F0F",[h.ontologyManagement.filterModeOr]:"\u4EFB\u610F\u6761\u4EF6\uFF08OR\uFF09",[h.ontologyManagement.filterModeAnd]:"\u5168\u90E8\u6761\u4EF6\uFF08AND\uFF09",[h.ontologyManagement.filterModeCombination]:"\u7EC4\u5408\u6761\u4EF6",[h.ontologyManagement.filterRequiredAll]:"\u5FC5\u987B\u5305\u542B\u5168\u90E8\u6807\u7B7E",[h.ontologyManagement.filterRequiredAny]:"\u81F3\u5C11\u5305\u542B\u4E00\u4E2A\u6807\u7B7E",[h.ontologyManagement.filterAdvancedRules]:"{count} \u9879\u9AD8\u7EA7\u89C4\u5219",[h.ontologyManagement.filterAdvancedRulesDescription]:"\u5DF2\u6709\u89C4\u5219\u5C06\u4FDD\u7559\uFF0C\u9664\u975E\u660E\u786E\u79FB\u9664\u3002",[h.ontologyManagement.filterRemoveAdvancedRules]:"\u79FB\u9664\u9AD8\u7EA7\u89C4\u5219",[h.ontologyManagement.deleteTemplate]:"\u5220\u9664\u6A21\u677F",[h.ontologyManagement.deleteMarker]:"\u5220\u9664\u4ED3\u5E93\u6807\u8BB0",[h.ontologyManagement.createDefaultViews]:"\u521B\u5EFA\u9ED8\u8BA4\u89C6\u56FE",[h.ontologyManagement.addTemplate]:"\u6DFB\u52A0\u89C6\u56FE\u6A21\u677F",[h.ontologyManagement.noTemplates]:"\u6682\u65E0\u9ED8\u8BA4\u89C6\u56FE\u6A21\u677F",[h.ontologyManagement.actions["ontology-marker"]]:"\u8BBE\u7F6E\u4ED3\u5E93\u6807\u8BB0",[h.ontologyManagement.actions["view-detail"]]:"\u67E5\u770B\u8BE6\u60C5",[h.ontologyManagement.actions["view-convert-to-container"]]:"\u8F6C\u5316\u4E3A\u589E\u5F3A\u89C6\u56FE",[h.ontologyManagement.actions["view-edit-team"]]:"\u4FEE\u6539\u89C6\u56FE\u56E2\u961F",[h.ontologyManagement.actions["view-insert-blank-rows"]]:"\u63D2\u5165\u7A7A\u767D\u884C",[h.ontologyManagement.actions["view-snapshot"]]:"\u5BFC\u5165\u5230\u65B0 Ontology",[h.ontologyManagement.targetTeamId]:"\u76EE\u6807\u56E2\u961F ID",[h.ontologyManagement.currentTeamId]:"\u5F53\u524D\u56E2\u961F ID",[h.ontologyManagement.count]:"\u884C\u6570",[h.ontologyManagement.blankRowLabel]:"\u7A7A\u767D\u884C\u540D\u79F0","monkeys.design.capability.pagination.previous":"\u4E0A\u4E00\u9875","monkeys.design.capability.pagination.next":"\u4E0B\u4E00\u9875","monkeys.design.iconPicker.confirm":"\u786E\u8BA4","monkeys.design.iconPicker.categories":"\u5206\u7C7B","monkeys.design.iconPicker.icon":"\u56FE\u6807","monkeys.design.iconPicker.choose":"\u9009\u62E9\u56FE\u6807","monkeys.design.iconPicker.current":"\u5F53\u524D\u56FE\u6807","monkeys.design.iconPicker.reset":"\u91CD\u7F6E","monkeys.design.iconPicker.search":"\u641C\u7D22\u56FE\u6807","monkeys.design.iconPicker.category":"\u5206\u7C7B","monkeys.design.iconPicker.background":"\u80CC\u666F\u989C\u8272","monkeys.design.iconPicker.upload":"\u4E0A\u4F20\u56FE\u6807","monkeys.design.iconPicker.uploadFailed":"\u56FE\u6807\u4E0A\u4F20\u5931\u8D25","monkeys.design.iconPicker.loading":"\u6B63\u5728\u52A0\u8F7D\u56FE\u6807","monkeys.design.iconPicker.retry":"\u91CD\u8BD5","monkeys.design.iconPicker.empty":"\u6CA1\u6709\u5339\u914D\u7684\u56FE\u6807","monkeys.design.iconPicker.close":"\u5173\u95ED","monkeys.design.iconPicker.emoji":"\u8868\u60C5","monkeys.design.iconPicker.catalogFailed":"\u65E0\u6CD5\u52A0\u8F7D\u56FE\u6807","monkeys.design.emojiPanel.loading":"\u6B63\u5728\u52A0\u8F7D\u8868\u60C5","monkeys.design.emojiPanel.unavailable":"\u65E0\u6CD5\u52A0\u8F7D\u8868\u60C5","monkeys.design.capability.choicePicker.label":"\u9009\u9879\u9009\u62E9\u5668","monkeys.design.capability.choicePicker.description":"\u641C\u7D22\u5E76\u9009\u62E9\u5206\u9875\u96C6\u5408\u4E2D\u7684\u9009\u9879\u3002","monkeys.design.capability.summaryChart.label":"\u6C47\u603B\u56FE\u8868","monkeys.design.capability.dataToolbar.moreActions":"\u66F4\u591A\u64CD\u4F5C","monkeys.design.capability.summaryChart.description":"\u6BD4\u8F83\u6570\u503C\u5E8F\u5217\u4E0E\u5206\u7C7B\u6C47\u603B\u3002","monkeys.design.capability.sparkline.label":"\u8FF7\u4F60\u8D8B\u52BF\u7EBF","monkeys.design.capability.sparkline.description":"\u5728\u6307\u6807\u5361\u7B49\u7D27\u51D1\u533A\u57DF\u5C55\u793A\u65E0\u5750\u6807\u8F74\u7684\u8FF7\u4F60\u8D8B\u52BF\u3002","monkeys.design.capability.runtimeTerminal.status":"\u7EC8\u7AEF","monkeys.design.capability.runtimeTerminal.waiting":"\u6B63\u5728\u8FDE\u63A5\u7EC8\u7AEF\u2026","monkeys.design.capability.recordEditor.add":"\u6DFB\u52A0\u6761\u76EE","monkeys.design.capability.recordEditor.remove":"\u5220\u9664\u6761\u76EE","monkeys.design.capability.recordEditor.moveUp":"\u4E0A\u79FB","monkeys.design.capability.recordEditor.moveDown":"\u4E0B\u79FB","monkeys.design.capability.recordEditor.reset":"\u91CD\u7F6E","monkeys.design.capability.imageUpload.sizeHint":"\u5355\u5F20\u56FE\u7247\uFF0C\u6700\u5927 {{size}} MB","monkeys.design.capability.imageUpload.title":"\u70B9\u51FB\u6216\u62D6\u62FD\u4E0A\u4F20\u56FE\u7247","monkeys.design.capability.imageUpload.hint":"\u652F\u6301\u7C98\u8D34\u56FE\u7247\u6216\u56FE\u7247\u94FE\u63A5","monkeys.design.capability.imageUpload.paste":"\u4ECE\u526A\u8D34\u677F\u7C98\u8D34","monkeys.design.capability.imageUpload.replace":"\u66FF\u6362\u56FE\u7247","monkeys.design.capability.imageUpload.clipboardUnavailable":"\u65E0\u6CD5\u8BFB\u53D6\u526A\u8D34\u677F\uFF0C\u8BF7\u4F7F\u7528\u952E\u76D8\u7C98\u8D34\u6216\u9009\u62E9\u6587\u4EF6\u3002","monkeys.design.capability.imageUpload.clipboardEmpty":"\u526A\u8D34\u677F\u4E2D\u6CA1\u6709\u56FE\u7247\u6216\u56FE\u7247\u94FE\u63A5\u3002","monkeys.design.capability.filePicker.label":"\u9009\u62E9\u6587\u4EF6","monkeys.design.capability.mediaDraft.choose":"\u6DFB\u52A0\u56FE\u7247","monkeys.design.capability.mediaDraft.hint":"\u6BCF\u5F20\u4E0D\u8D85\u8FC7 {size} MB\uFF0C\u6700\u591A {count} \u5F20\u3002\u70B9\u51FB\u300C\u4FDD\u5B58\u300D\u540E\u4E0A\u4F20\u3002","monkeys.design.capability.mediaDraft.replace":"\u66FF\u6362","monkeys.design.capability.mediaDraft.preview":"\u9884\u89C8\u56FE\u7247","monkeys.design.capability.mediaDraft.previewPrevious":"\u4E0A\u4E00\u5F20","monkeys.design.capability.mediaDraft.previewNext":"\u4E0B\u4E00\u5F20","monkeys.design.capability.mediaDraft.count":"\u56FE\u7247\u6570\u91CF\u8D85\u8FC7\u9650\u5236\uFF0C\u8BF7\u79FB\u9664\u540E\u518D\u6DFB\u52A0\u3002","monkeys.design.capability.mediaDraft.type":"\u8BF7\u9009\u62E9\u56FE\u7247\u6587\u4EF6\u3002","monkeys.design.capability.mediaDraft.size":"\u56FE\u7247\u4E3A\u7A7A\u6216\u5927\u5C0F\u8D85\u8FC7\u5141\u8BB8\u8303\u56F4\u3002","monkeys.design.capability.mediaDraft.failed":"\u65E0\u6CD5\u9009\u62E9\u56FE\u7247\uFF0C\u8BF7\u91CD\u8BD5\u3002","monkeys.design.capability.mediaDraft.unavailable":"\u6682\u65E0\u9884\u89C8","monkeys.design.capability.mediaDraft.previous":"\u524D\u79FB\u56FE\u7247","monkeys.design.capability.mediaDraft.next":"\u540E\u79FB\u56FE\u7247","monkeys.design.capability.mediaDraft.remove":"\u79FB\u9664","monkeys.design.capability.filePicker.description":"\u9009\u62E9\u672C\u5730\u6587\u4EF6\u4EE5\u6267\u884C\u53D7\u6CBB\u7406\u64CD\u4F5C\u3002","monkeys.design.capability.recordEditor.removeSelection":"\u79FB\u9664{{name}}","monkeys.design.capability.fileUpload.remove":"\u79FB\u9664{{name}}","monkeys.design.capability.fileUpload.add":"\u6DFB\u52A0\u9644\u4EF6","monkeys.design.capability.recordEditor.saveChanges":"\u4FDD\u5B58\u66F4\u6539","monkeys.design.capability.fileUpload.drop":"\u6216\u5C06\u6587\u4EF6\u62D6\u5230\u8FD9\u91CC","monkeys.design.capability.fileUpload.uploading":"\u6B63\u5728\u4E0A\u4F20\u2026","monkeys.design.capability.fileUpload.failed":"\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\u3002","monkeys.design.capability.fileUpload.limit":"\u6700\u591A\u53EF\u6DFB\u52A0 {{count}} \u4E2A\u9644\u4EF6\u3002","monkeys.design.capability.filePicker.cancel":"\u6E05\u9664\u6587\u4EF6","monkeys.design.capability.filePicker.tooLarge":"\u6587\u4EF6\u5927\u5C0F\u8D85\u8FC7\u5141\u8BB8\u8303\u56F4\u3002","monkeys.design.capability.filePicker.invalidType":"\u8BF7\u9009\u62E9\u652F\u6301\u7684\u6587\u4EF6\u7C7B\u578B\u3002","monkeys.design.capability.filePicker.registrationFailed":"\u65E0\u6CD5\u9009\u62E9\u8BE5\u6587\u4EF6\uFF0C\u8BF7\u91CD\u8BD5\u3002","monkeys.design.capability.recordEditor.date.invalid":"\u8BF7\u8F93\u5165\u5141\u8BB8\u8303\u56F4\u5185\u7684\u6709\u6548\u65E5\u671F\u548C\u65F6\u95F4\u3002","monkeys.design.capability.recordEditor.month.choose":"\u9009\u62E9\u5E74\u6708","monkeys.design.capability.recordEditor.month.previous":"\u4E0A\u4E00\u5E74\u6216\u4E0A\u4E00\u7EC4\u5E74\u4EFD","monkeys.design.capability.recordEditor.month.next":"\u4E0B\u4E00\u5E74\u6216\u4E0B\u4E00\u7EC4\u5E74\u4EFD","monkeys.design.capability.recordEditor.month.clear":"\u6E05\u9664","monkeys.design.capability.recordEditor.clear":"\u6E05\u9664","monkeys.design.capability.recordEditor.notSet":"\u672A\u8BBE\u7F6E","monkeys.design.capability.recordEditor.noOptions":"\u6682\u65E0\u5339\u914D\u9009\u9879","monkeys.design.capability.recordEditor.pick":"\u9009\u62E9","monkeys.design.capability.recordEditor.relationLoading":"\u52A0\u8F7D\u4E2D","monkeys.design.capability.recordEditor.relationEmpty":"\u6CA1\u6709\u5339\u914D\u9879","monkeys.design.capability.recordEditor.relationFailed":"\u5019\u9009\u9879\u52A0\u8F7D\u5931\u8D25","monkeys.design.capability.recordEditor.relationRetry":"\u91CD\u8BD5","monkeys.design.capability.recordEditor.relationMore":"\u52A0\u8F7D\u66F4\u591A","monkeys.design.capability.recordEditor.relationRemove":"\u79FB\u9664","monkeys.design.capability.recordEditor.selectionSummary":"\u5DF2\u9009 {{count}} \u9879","monkeys.design.capability.recordEditor.sections":"\u8868\u5355\u5206\u7C7B","monkeys.design.capability.recordEditor.secretKeep":"\u4FDD\u7559\u73B0\u6709\u503C","monkeys.design.capability.recordEditor.treeReorderFailed":"\u987A\u5E8F\u4FDD\u5B58\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u52A0\u8F7D\u5217\u8868\u540E\u91CD\u8BD5\u3002","monkeys.design.capability.recordEditor.secretMode":"{field} \u66F4\u65B0\u65B9\u5F0F","monkeys.design.capability.recordEditor.secretReplace":"\u66FF\u6362","monkeys.design.capability.recordEditor.secretClear":"\u6E05\u9664","monkeys.design.capability.recordEditor.mapping.targets":"\u5F52\u5E76\u90E8\u95E8","monkeys.design.capability.recordEditor.mapping.sources":"\u539F\u59CB\u90E8\u95E8","monkeys.design.capability.recordEditor.mapping.actions":"\u5F52\u5E76\u64CD\u4F5C","monkeys.design.capability.recordEditor.mapping.addTarget":"\u65B0\u589E\u5F52\u5E76\u90E8\u95E8","monkeys.design.capability.recordEditor.mapping.removeTarget":"\u5220\u9664\u5F52\u5E76\u90E8\u95E8","monkeys.design.capability.recordEditor.mapping.addSource":"\u52A0\u5165\u5F53\u524D\u5F52\u5E76","monkeys.design.capability.recordEditor.mapping.removeSource":"\u79FB\u51FA\u5F53\u524D\u5F52\u5E76","monkeys.design.capability.recordEditor.mapping.search":"\u641C\u7D22\u539F\u59CB\u90E8\u95E8","monkeys.design.capability.recordEditor.mapping.emptyTargets":"\u6682\u65E0\u5F52\u5E76\u90E8\u95E8","monkeys.design.capability.recordEditor.mapping.emptySources":"\u5F53\u524D\u5F52\u5E76\u90E8\u95E8\u6682\u65E0\u539F\u59CB\u90E8\u95E8","monkeys.design.capability.recordEditor.mapping.groupCount":"\u5171 {count} \u4E2A\u5F52\u5E76\u90E8\u95E8","monkeys.design.capability.recordEditor.mapping.memberCount":"\uFF08{count} \u4E2A\uFF09","monkeys.design.capability.recordEditor.mapping.newTarget":"\u8F93\u5165\u5F52\u5E76\u90E8\u95E8\u540D\u79F0","monkeys.design.capability.recordEditor.mapping.rename":"\u5F52\u5E76\u90E8\u95E8\u540D\u79F0","monkeys.design.capability.recordEditor.mapping.unnamed":"\u672A\u547D\u540D\u5F52\u5E76\u90E8\u95E8","monkeys.design.capability.recordEditor.mapping.incomplete":"\u8BF7\u586B\u5199\u540D\u79F0\u5E76\u81F3\u5C11\u52A0\u5165\u4E00\u4E2A\u539F\u59CB\u90E8\u95E8\u540E\u4FDD\u5B58\u3002","monkeys.design.capability.recordEditor.mapping.deleteConfirmation":"\u786E\u5B9A\u5220\u9664\u201C{name}\u201D\u5417\uFF1F","monkeys.design.capability.recordEditor.mapping.confirmDelete":"\u786E\u8BA4\u5220\u9664","monkeys.design.capability.recordEditor.mapping.cancel":"\u53D6\u6D88","monkeys.design.capability.recordEditor.mapping.selectTarget":"\u8BF7\u5148\u9009\u62E9\u5DE6\u4FA7\u5F52\u5E76\u90E8\u95E8","monkeys.design.capability.recordEditor.mapping.sourceTabs":"\u539F\u59CB\u90E8\u95E8\u5217\u8868","monkeys.design.capability.recordEditor.mapping.assigned":"\u5DF2\u5305\u542B\uFF08{count}\uFF09","monkeys.design.capability.recordEditor.mapping.available":"\u53EF\u6DFB\u52A0\uFF08{count}\uFF09","monkeys.design.capability.recordEditor.mapping.selectVisible":"\u5168\u9009\u5F53\u524D\u5217\u8868","monkeys.design.capability.recordEditor.mapping.selected":"\u5DF2\u9009 {count} \u4E2A","monkeys.design.capability.recordEditor.mapping.noMatches":"\u6CA1\u6709\u5339\u914D\u7684\u90E8\u95E8","monkeys.design.capability.recordEditor.mapping.noAvailable":"\u6CA1\u6709\u53EF\u6DFB\u52A0\u7684\u90E8\u95E8","monkeys.design.capability.recordEditor.mapping.customSource":"\u6DFB\u52A0\u81EA\u5B9A\u4E49\u90E8\u95E8","monkeys.design.capability.recordEditor.mapping.addCustom":"\u6DFB\u52A0\u81EA\u5B9A\u4E49\u90E8\u95E8","monkeys.design.capability.recordEditor.mapping.add":"\u6DFB\u52A0","monkeys.design.capability.recordEditor.mapping.addHint":"\u5C06\u9009\u4E2D\u7684\u90E8\u95E8\u52A0\u5165\u5F53\u524D\u5F52\u5E76","monkeys.design.capability.recordEditor.mapping.removeHint":"\u5C06\u9009\u4E2D\u7684\u90E8\u95E8\u79FB\u51FA\u5F53\u524D\u5F52\u5E76","monkeys.design.capability.recordEditor.mapping.currentTarget":"\u5F53\u524D\u5F52\u5E76\uFF1A{name}","monkeys.design.capability.recordEditor.mapping.invalid":"\u5F52\u5E76\u914D\u7F6E\u65E0\u6548\uFF0C\u8BF7\u68C0\u67E5\u540D\u79F0\u548C\u90E8\u95E8\u5F52\u5C5E\u3002","monkeys.design.capability.recordEditor.mapping.invalidName":"\u8BF7\u8F93\u5165\u6709\u6548\u540D\u79F0\u3002","monkeys.design.capability.recordEditor.mapping.alreadyAssigned":"\u8BE5\u90E8\u95E8\u5DF2\u7ECF\u5F52\u5165\u5176\u4ED6\u5F52\u5E76\u90E8\u95E8\u3002","monkeys.design.capability.recordEditor.mapping.unavailable":"\u8BE5\u90E8\u95E8\u5F53\u524D\u4E0D\u53EF\u6DFB\u52A0\u3002","monkeys.design.capability.recordEditor.mapping.added":"\u5DF2\u5411\u201C{name}\u201D\u52A0\u5165 {count} \u4E2A\u90E8\u95E8","monkeys.design.capability.recordEditor.mapping.removed":"\u5DF2\u4ECE\u201C{name}\u201D\u79FB\u51FA {count} \u4E2A\u90E8\u95E8","monkeys.design.capability.recordEditor.mapping.deleted":"\u5DF2\u5220\u9664\u201C{name}\u201D",[h.numericSeries.inspect]:"\u67E5\u770B\u89C2\u6D4B\u70B9",[h.numericSeries.noPoints]:"\u6B64\u8303\u56F4\u5185\u6CA1\u6709\u89C2\u6D4B\u70B9",[h.numericSeries.point]:"{xLabel} {x}, {yLabel} {y}",[h.numericSeries.label]:"\u6570\u503C\u5E8F\u5217",[h.numericSeries.description]:"\u67E5\u770B\u6570\u503C\u89C2\u6D4B\uFF0C\u7F29\u653E\u8303\u56F4\u5E76\u653E\u5927\u56FE\u8868\u3002",[h.numericSeries.start]:"\u8303\u56F4\u8D77\u70B9",[h.numericSeries.end]:"\u8303\u56F4\u7EC8\u70B9",[h.numericSeries.reset]:"\u91CD\u7F6E\u8303\u56F4",[h.numericSeries.expand]:"\u653E\u5927\u56FE\u8868",[h.numericSeries.close]:"\u5173\u95ED\u56FE\u8868",[h.shellLayout.resizeSidebar]:"\u8C03\u6574\u4FA7\u8FB9\u680F\u5BBD\u5EA6",[h.shellLayout.collapseSidebar]:"\u6536\u8D77\u4FA7\u8FB9\u680F",[h.shellLayout.expandSidebar]:"\u5C55\u5F00\u4FA7\u8FB9\u680F",[h.shellLayout.resizeAside]:"\u8C03\u6574\u8BE6\u60C5\u4FA7\u8FB9\u680F\u5BBD\u5EA6",[h.ontologyNavigator.moreActions]:"\u66F4\u591A\u64CD\u4F5C",[h.dataToolbar.addRow]:"\u6DFB\u52A0\u4E00\u884C",[h.dataToolbar.blankRowName]:"\u7A7A\u767D\u884C",[h.ontologyTrendMatrix.label]:"\u672C\u4F53\u8D8B\u52BF\u77E9\u9635",[h.ontologyTrendMatrix.row]:"\u884C",[h.ontologyTrendMatrix.window]:"\u5F53\u524D\u663E\u793A\u7B2C {start}-{end} \u884C\uFF0C\u5171 {total} \u884C",[h.ontologyTrendMatrix.select]:"\u9009\u62E9 {row}\u3001{column}\u3001{value}",[h.dataContextBar.label]:"\u6570\u636E\u7B5B\u9009\u4E0E\u94BB\u53D6\u4E0A\u4E0B\u6587",[h.dataContextBar.filter]:"\u7B5B\u9009",[h.dataContextBar.searchLabel]:"\u641C\u7D22\u6570\u636E",[h.dataContextBar.searchPlaceholder]:"\u641C\u7D22",[h.dataContextBar.clear]:"\u6E05\u9664",[h.dataContextBar.clearAll]:"\u5168\u90E8\u6E05\u9664",[h.dataContextBar.tagFilterClear]:"\u6E05\u7A7A",[h.dataContextBar.filterDescription]:"\u901A\u8FC7\u6807\u7B7E\u9762\u677F\u6216\u624B\u52A8\u641C\u7D22\uFF0C\u9009\u62E9\u7528\u4E8E\u8FC7\u6EE4\u8D44\u4EA7\u7684 Tag\u3002",[h.dataContextBar.tagScope]:"\u6807\u7B7E\u8303\u56F4",[h.dataContextBar.currentViewTags]:"\u5F53\u524D\u89C6\u56FE",[h.dataContextBar.allTags]:"\u5168\u90E8\u6807\u7B7E",[h.dataContextBar.panelFilter]:"\u9762\u677F\u7B5B\u9009",[h.dataContextBar.searchTags]:"\u641C\u7D22\u6807\u7B7E",[h.dataContextBar.noAvailableTags]:"\u6682\u65E0\u53EF\u7528\u6807\u7B7E",[h.dataContextBar.loadedAll]:"\u5DF2\u52A0\u8F7D\u5168\u90E8",[h.dataContextBar.refreshTags]:"\u5237\u65B0\u6807\u7B7E",[h.dataContextBar.confirm]:"\u786E\u5B9A",[h.dataContextBar.tagPanel]:"\u6807\u7B7E\u9762\u677F",[h.dataContextBar.selectPanel]:"\u9009\u62E9\u6807\u7B7E\u9762\u677F",[h.dataContextBar.noPanels]:"\u6682\u65E0\u53EF\u7528\u6807\u7B7E\u9762\u677F",[h.dataContextBar.noPanelGroups]:"\u5F53\u524D\u9762\u677F\u6CA1\u6709\u6807\u7B7E\u7EC4",[h.dataContextBar.singleSelect]:"\u5355\u9009",[h.dataContextBar.multiSelect]:"\u591A\u9009",[h.dataContextBar.defaultGroup]:"\u9ED8\u8BA4\u6807\u7B7E\u7EC4",[h.dataContextBar.more]:"\u53E6\u6709 {count} \u9879",[h.dataContextBar.dashboardContext]:"\u4EEA\u8868\u76D8\u4E0A\u4E0B\u6587",[h.dataContextBar.contextCount]:"{count} \u9879\u4E0A\u4E0B\u6587",[h.dataContextBar.fields.search]:"\u641C\u7D22",[h.dataContextBar.fields.tagIds]:"\u6807\u7B7E",[h.dataContextBar.fields.tagGroupIds]:"\u6807\u7B7E\u7EC4",[h.dataContextBar.fields.timeFrom]:"\u5F00\u59CB\u65F6\u95F4",[h.dataContextBar.fields.timeTo]:"\u7ED3\u675F\u65F6\u95F4",[h.dataContextBar.fields.clickedField]:"\u94BB\u53D6\u5B57\u6BB5",[h.dataContextBar.fields.clickedValue]:"\u94BB\u53D6\u503C",[h.dataContextBar.fields.dashboardDrilldown]:"\u4EEA\u8868\u76D8\u94BB\u53D6"})});function Ms({open:e,items:t,selectedId:o,name:n,title:r,description:i,nameLabel:s,namePlaceholder:l,createLabel:d,confirmLabel:c,cancelLabel:u,closeLabel:m,loadingLabel:p,emptyLabel:g,loading:b=false,creating:x=false,adding:f=false,createError:y,confirmError:k,showCreateError:S=true,showConfirmError:w=true,className:C,onOpenChange:T,onSelectedIdChange:$,onNameChange:P,onCreate:E,onConfirm:R}){let W=ye.useId(),B=ye.useRef(null),A=ye.useRef(false),L=ye.useRef(false),[I,K]=ye.useState(null);ye.useEffect(()=>{e||(A.current=false);},[e]);let q=x||f||I!==null,_=t.some(z=>z.id===o),Y=a(z=>{!q&&!L.current&&T?.(z);},"close"),M=a(async z=>{let Q=z==="create"?E:R;if(!(q||L.current||!Q||(z==="create"?!n.trim()||A.current:!_))){L.current=true,K(z);try{await Q();}catch{}finally{L.current=false,K(null);}}},"submit");return jsxRuntime.jsx(bc,{open:e,onOpenChange:Y,title:r,description:i,closeLabel:m,portal:true,closeOnEscape:!q,closeOnOverlayClick:!q,showCloseButton:!q,initialFocus:"explicit",initialFocusRef:B,className:C,classNames:{panel:"w-full max-w-[480px] gap-global-2 p-6",header:"border-0 p-0",title:"text-lg font-semibold leading-tight",description:"text-sm text-muted-foreground",body:"-m-1 min-h-0 p-1",footer:"border-0 p-0"},footer:jsxRuntime.jsxs("div",{className:"flex justify-end gap-global",children:[jsxRuntime.jsx(Fo,{variant:"outline",className:"h-10",appearance:{radius:"lg"},disabled:q,onClick:()=>Y(false),children:u}),jsxRuntime.jsx(Fo,{variant:"outline",className:"h-10",appearance:{radius:"lg"},disabled:q||!_,loading:f||I==="confirm",onClick:()=>M("confirm"),children:c})]}),children:jsxRuntime.jsxs("div",{className:"flex min-h-0 flex-col gap-global-2","data-monkeys-component":"add-to-collection-dialog","aria-busy":q||b,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-global",children:[jsxRuntime.jsx(bo,{ref:B,id:W,"aria-label":s,placeholder:l,appearance:"shadow",className:"min-w-0 flex-1",value:n,disabled:q,onChange:z=>P?.(z.currentTarget.value),onCompositionStart:()=>{A.current=true;},onCompositionEnd:()=>{A.current=false;},onKeyDown:z=>{z.key==="Enter"&&!z.nativeEvent.isComposing&&!A.current&&(z.preventDefault(),M("create"));}}),jsxRuntime.jsx(Fo,{variant:"outline",appearance:{radius:"lg"},icon:jsxRuntime.jsx(lucideReact.FolderPlus,{}),className:"h-10 shrink-0",disabled:q||!n.trim(),loading:x||I==="create",onClick:()=>M("create"),children:d})]}),S&&y&&jsxRuntime.jsx("p",{role:"alert",className:"text-sm text-destructive-text",children:y}),jsxRuntime.jsx("div",{className:"-m-1 flex max-h-80 min-h-0 flex-col gap-global overflow-y-auto p-1",role:"group","aria-label":r,children:t.length===0?jsxRuntime.jsx("p",{role:"status",className:"rounded-lg border border-dashed border-border px-global-2 py-global-2 text-center text-sm text-muted-foreground",children:b?p:g}):t.map(z=>jsxRuntime.jsx(Fo,{variant:"outline",icon:jsxRuntime.jsx(lucideReact.FolderOpen,{className:"size-4 shrink-0","aria-hidden":"true"}),endIcon:o===z.id?jsxRuntime.jsx(lucideReact.Check,{className:"size-4 shrink-0","aria-hidden":"true"}):void 0,label:z.name,classNames:{label:"min-w-0 flex-1 truncate text-left"},"aria-pressed":o===z.id,disabled:q,className:v("flex h-10 w-full shrink-0 items-center justify-start gap-global rounded-lg border px-global-2 py-global text-left text-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",o===z.id?"border-foreground bg-muted text-foreground":"border-border bg-background text-foreground hover:bg-muted"),onClick:()=>$?.(z.id)},z.id))}),w&&k&&jsxRuntime.jsx("p",{role:"alert",className:"text-sm text-destructive-text",children:k})]})})}a(Ms,"WorkbenchAddToCollectionDialog");function Iu({loading:e,initialLoading:t,detailLoading:o,error:n,retry:r,labels:i,onBack:s,onRefresh:l,table:d,record:c,onMore:u}){return jsxRuntime.jsxs("div",{"aria-busy":e,className:"gap-global p-global flex h-full min-h-0 flex-col",children:[jsxRuntime.jsxs("div",{className:"gap-global flex shrink-0 items-center",children:[s&&jsxRuntime.jsx(Te,{variant:"quiet",size:"xs",onClick:s,children:i.back}),jsxRuntime.jsx("span",{className:"text-muted-foreground text-sm",children:i.summary}),jsxRuntime.jsx(Te,{variant:"quiet",size:"xs",disabled:e,onClick:l,children:i.refresh})]}),n&&jsxRuntime.jsxs("div",{role:"alert",children:[jsxRuntime.jsx("p",{children:n}),r&&jsxRuntime.jsx(Te,{onClick:r,children:i.retry})]}),t&&jsxRuntime.jsx(gn,{label:i.loading}),o?jsxRuntime.jsx(gn,{label:i.loading}):c?jsxRuntime.jsx($s,{sizing:"fill",heading:c.heading,media:c.preview?jsxRuntime.jsx(jx,{useData:c.preview.useData}):c.media,children:jsxRuntime.jsx(Ki,{items:c.items})}):d?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ys,{...d,bodyMaxHeight:"100%",minWidth:560,columns:d.columns?.map((m,p)=>({...m,minWidth:p===0?180:p===1?120:140,width:p===0?240:p===1?140:180,wrap:p!==1})),renderCell:(m,p)=>String(p.cells?.[m.key]??""),className:"min-h-0 flex-1 border-0 bg-transparent"}),u&&jsxRuntime.jsx(Te,{variant:"quiet",disabled:e,onClick:u,children:i.more})]}):null]})}a(Iu,"AgentDataPanel");function jx({useData:e}){return jsxRuntime.jsx(ur,{...e()})}a(jx,"DataPreview");function As({actions:e}){return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e?.map((t,o)=>jsxRuntime.jsx(ie,{disabled:t.disabled,onClick:t.onClick,children:t.label},o))})}a(As,"CanvasActions");function Lu({surface:e,canvas:t,canvasKey:o,fileInput:n,imageActions:r,controls:i}){return jsxRuntime.jsxs(canvas.CanvasSurface,{...e,recoveryActions:jsxRuntime.jsx(As,{actions:e.recoveryActions}),notices:e.notices?.map(s=>({...s,actions:jsxRuntime.jsx(As,{actions:s.actions})})),overlayNotice:e.overlayNotice&&{...e.overlayNotice,actions:jsxRuntime.jsx(As,{actions:e.overlayNotice.actions})},controls:i?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ie,{variant:"ghost",size:"icon","aria-label":i.label,onClick:i.onFullscreen,children:i.fullscreen?jsxRuntime.jsx(lucideReact.Minimize2,{}):jsxRuntime.jsx(lucideReact.Maximize2,{})}),jsxRuntime.jsx(ie,{variant:"ghost",size:"icon","aria-label":i.closeLabel,onClick:i.onClose,children:jsxRuntime.jsx(lucideReact.X,{})})]}):void 0,children:[jsxRuntime.jsx(bo,{...n}),t&&ye.createElement(canvas.InfiniteCanvas,{...t,background:"dots",layout:"side",library:false,key:o,selectionToolbar:r?jsxRuntime.jsx(canvas.CanvasImageActions,{...r}):false})]})}a(Lu,"AgentCanvasView");var tk=5200;function ok(e){return !e||typeof e!="object"||ye.isValidElement(e)?false:"title"in e||"description"in e||"variant"in e}a(ok,"isToastInput");function Bs(e){return e==null||typeof e=="string"&&!e.trim()}a(Bs,"isEmptyToastContent");function ja(e,t,o){let{description:n,...r}=o??{};return ok(e)?{...r,...e,variant:e.variant??t}:{...r,title:e,variant:t}}a(ja,"normalizeToastInput");function wr(e){let{title:t,description:o,duration:n,variant:r="info",...i}=e,s=Bs(t)?o:t;if(Bs(s))return;let l=!Bs(o)&&o!==s?o:void 0,d={...i,description:l,duration:n??tk};switch(r){case "error":return sonner.toast.error(s,d);case "warning":return sonner.toast.warning(s,d);case "success":return sonner.toast.success(s,d);default:return sonner.toast(s,d)}}a(wr,"emitToast");var Cr=Object.assign((e,t)=>sonner.toast(e,t),{show:wr,error:a((e,t)=>wr(ja(e,"error",t)),"error"),warning:a((e,t)=>wr(ja(e,"warning",t)),"warning"),success:a((e,t)=>wr(ja(e,"success",t)),"success"),info:a((e,t)=>wr(ja(e,"info",t)),"info"),message:sonner.toast.message,promise:sonner.toast.promise,dismiss:sonner.toast.dismiss,loading:sonner.toast.loading,custom:sonner.toast.custom,getHistory:sonner.toast.getHistory,getToasts:sonner.toast.getToasts});var Ou=h.status,Hu=a(({kind:e,translate:t,code:o,titleKey:n,descriptionKey:r,actions:i,onRetry:s,presentation:l,loadingLabelKey:d,emptyLabelKey:c,errorLabelKey:u})=>{let m=Ou[e],p=o?{code:o}:void 0,g=t(n??m.title,p),b=t(r??m.description,p),x=i??(e==="error"&&s?jsxRuntime.jsx(Fo,{label:t(Ou.retry),onClick:s}):void 0),f=l==="legacy-data-explorer"&&e==="error"&&u?t(u):void 0;return ye.useEffect(()=>{f&&Cr.error(f);},[f]),l==="legacy-data-explorer"?jsxRuntime.jsx("div",{className:"col-span-full flex h-full min-h-0 flex-1 flex-col overflow-hidden","data-presentation":"legacy-data-explorer-status",children:e==="loading"?jsxRuntime.jsx(xa,{variant:"skeleton",className:"min-h-64",title:d?t(d):g}):jsxRuntime.jsx("div",{className:"flex h-64 items-center justify-center",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:t(c??h.status.empty.title)})})}):e==="loading"?jsxRuntime.jsx(xa,{variant:"skeleton",title:g}):e==="empty"?jsxRuntime.jsx(Xi,{title:c?t(c):g,description:c?void 0:b,actions:x}):jsxRuntime.jsx(Qi,{kind:e==="forbidden"?"permission":"error",title:g,description:b,actions:x})},"CapabilityStatus");var Wu=ye.createContext(null);function CB(){let e=ye.useContext(Wu);if(!e)throw new Error("Agent conversation slots require a conversation surface.");return e}a(CB,"useAgentConversationData");function sk({data:e,children:t}){return jsxRuntime.jsx(Wu.Provider,{value:e,children:t})}a(sk,"AgentConversationDataProvider");function lk({useData:e,children:t}){let o=e();return jsxRuntime.jsx(sk,{data:o,children:jsxRuntime.jsx("div",{className:"contents agent-conversation-theme",style:o.brandVariables,children:t})})}a(lk,"ConversationData");function dk({useData:e,children:t}){let o=e();return jsxRuntime.jsx(Fu,{state:o,children:t})}a(dk,"BoundConversation");function Fu({state:e,children:t}){return e.status==="bound"?jsxRuntime.jsx(dk,{useData:e.useState,children:t}):e.status==="ready"?jsxRuntime.jsx(lk,{useData:e.useConversation,children:t},e.key):jsxRuntime.jsx(Hu,{kind:e.status,code:e.code,translate:e.translate})}a(Fu,"ConversationState");var TB=ye.forwardRef(a(function({useData:t,children:o,connection:n,title:r,questionPlacement:i,linkedDataEnabled:s,autoOpenReports:l,recommendationsEnabled:d,titleIsManual:c,readOnly:u,loading:m,messageSuffix:p,promptNavigation:g,onMessageAccepted:b,onSessionStarted:x,onTitleChanged:f,onContinue:y,...k},S){let w={connection:n,title:r,questionPlacement:i,linkedDataEnabled:s,autoOpenReports:l,recommendationsEnabled:d,titleIsManual:c,readOnly:u,loading:m,messageSuffix:p,promptNavigation:g,onMessageAccepted:b,onSessionStarted:x,onTitleChanged:f,onContinue:y},C=t(w);return jsxRuntime.jsx("div",{...k,ref:S,className:"contents agent-conversation-surface","aria-busy":w.loading===true,...w.loading?{inert:""}:{},children:jsxRuntime.jsx(Fu,{state:C,children:o})})},"AgentConversationSurface"));function Uu({model:e}){return e?e.kind==="message"?jsxRuntime.jsx(_c,{...e.props}):jsxRuntime.jsx(Jc,{...e.props}):null}a(Uu,"AgentTimelineContent");var Ns=a(e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4),"srgbToLinear"),Es=a(e=>e<=.0031308?e*12.92:1.055*Math.pow(e,1/2.4)-.055,"linearToSrgb"),ck=a((e,t,o)=>{let n=.4122214708*e+.5363325363*t+.0514459929*o,r=.2119034982*e+.6806995451*t+.1073969566*o,i=.0883024619*e+.2817188376*t+.6299787005*o,s=Math.cbrt(n),l=Math.cbrt(r),d=Math.cbrt(i);return [.2104542553*s+.793617785*l-.0040720468*d,1.9779984951*s-2.428592205*l+.4505937099*d,.0259040371*s+.7827717662*l-.808675766*d]},"linearRgbToOklab"),uk=a((e,t,o)=>{let n=e+.3963377774*t+.2158037573*o,r=e-.1055613458*t-.0638541728*o,i=e-.0894841775*t-1.291485548*o,s=n*n*n,l=r*r*r,d=i*i*i;return [4.0767416621*s-3.3077115913*l+.2309699292*d,-1.2684380046*s+2.6097574011*l-.3413193965*d,-0.0041960863*s-.7034186147*l+1.707614701*d]},"oklabToLinearRgb"),Ga=a(e=>{let[t,o,n]=ck(Ns(e[0]),Ns(e[1]),Ns(e[2]));return {L:t,C:Math.sqrt(o*o+n*n),H:Math.atan2(n,o)}},"rgbToOklch"),Vu=a(({L:e,C:t,H:o})=>{let n=t*Math.cos(o),r=t*Math.sin(o),[i,s,l]=uk(e,n,r),d=a(c=>Math.max(0,Math.min(1,c)),"clamp01");return [d(Es(i)),d(Es(s)),d(Es(l))]},"oklchToRgb"),fn=a(e=>{let t=parseInt(e.replace("#",""),16);return [(t>>16&255)/255,(t>>8&255)/255,(t&255)/255]},"hexToRgb"),pk=a((e,t,o)=>{let n=t-e;return n>Math.PI&&(n-=2*Math.PI),n<-Math.PI&&(n+=2*Math.PI),e+n*o},"lerpHueShortest"),mk=a((e,t,o)=>{let r=e.C<1e-4?t.H:e.H,i=t.C<1e-4?e.H:t.H;return {L:e.L+(t.L-e.L)*o,C:e.C+(t.C-e.C)*o,H:pk(r,i,o)}},"lerpOklch");function qu(e,t){if(e.length===0)return [];if(e.length===1){let r=Vu(e[0]);return Array.from({length:t},()=>r)}let o=[],n=e.length;for(let r=0;r<t;r++){let s=r/(t-1)*(n-1),l=Math.min(n-2,Math.floor(s)),d=s-l;o.push(Vu(mk(e[l],e[l+1],d)));}return o}a(qu,"sampleChainRgb");var Zt={red:"#FF3D7F",orange:"#FF7A1A",yellow:"#FFD600",green:"#C2FF3D",mint:"#00FFA8",teal:"#00E5D6",cyan:"#1FC8FF",blue:"#2E70FF",indigo:"#7B4FFF",purple:"#D33CFF",pink:"#FF3DC0",brown:"#D8A87B"};Object.fromEntries(Object.entries(Zt).map(([e,t])=>[e,Ga(fn(t))]));function gk(e,t){let o=a(i=>i[0][0]*(i[1][1]*i[2][2]-i[1][2]*i[2][1])-i[0][1]*(i[1][0]*i[2][2]-i[1][2]*i[2][0])+i[0][2]*(i[1][0]*i[2][1]-i[1][1]*i[2][0]),"det"),n=o(e);if(Math.abs(n)<1e-9)return null;let r=a(i=>e.map((s,l)=>s.map((d,c)=>c===i?t[l]:d)),"col");return [o(r(0))/n,o(r(1))/n,o(r(2))/n]}a(gk,"solve3x3");function Ku(e){let t=e.length,o=.5,n=e.map((f,y)=>y/(t-1)),r=n.map(f=>Math.cos(2*Math.PI*o*f)),i=n.map(f=>Math.sin(2*Math.PI*o*f)),s=r.reduce((f,y)=>f+y,0),l=i.reduce((f,y)=>f+y,0),d=r.reduce((f,y)=>f+y*y,0),c=i.reduce((f,y)=>f+y*y,0),u=r.reduce((f,y,k)=>f+y*i[k],0),m=[[t,s,l],[s,d,u],[l,u,c]],p=a(f=>{let y=e.map(W=>W[f]),k=y.reduce((W,B)=>W+B,0),S=y.reduce((W,B,A)=>W+B*r[A],0),w=y.reduce((W,B,A)=>W+B*i[A],0),C=gk(m,[k,S,w]);if(!C)return {a:k/t,b:0,d:0};let[T,$,P]=C,E=Math.sqrt($*$+P*P),R=(Math.atan2(-P,$)/(2*Math.PI)+1)%1;return {a:T,b:E,d:R}},"fitChannel"),g=p(0),b=p(1),x=p(2);return {a:[g.a,b.a,x.a],b:[g.b,b.b,x.b],c:[o,o,o],d:[g.d,b.d,x.d]}}a(Ku,"fitCosinePaletteToSamples");var fk=a((e,t)=>{let o=qu([Ga(fn(e)),Ga(fn(t))],17);return o[0]=fn(e),o[o.length-1]=fn(t),Ku(o)},"accentPair");function Qo(e){if(e.length===0)return fk(Zt.indigo,Zt.cyan);if(e.length===1)return {a:fn(e[0]),b:[0,0,0],c:[1,1,1],d:[0,0,0]};let t=e.map(n=>Ga(fn(n))),o=qu(t,17);return Ku(o)}a(Qo,"accentChain");var ju={prism:Qo(["#00C0E8","#6155F5","#CB30E0"]),berry:Qo(["#FF2D55","#CB30E0"]),lagoon:Qo(["#0088FF","#00C0E8","#34C759"]),citrus:Qo(["#34C759","#FFCC00","#FF8D28"]),azure:Qo(["#00C0E8","#0088FF","#6155F5"]),ember:Qo(["#FFCC00","#FF8D28","#FF2D55"])};function Xu(e){return e?typeof e=="string"?ju[e]:e:ju.prism}a(Xu,"resolvePalette");var bk=`
|
|
128
|
+
`+i.definitions:u),"render");return jsxRuntime.jsxs("div",{className:"report-product-document",children:[jsxRuntime.jsxs("div",{className:"report-product-view-toggle",role:"group","aria-label":n.view,children:[jsxRuntime.jsxs(ie,{type:"button",size:"sm",variant:l?"ghost":"outline","aria-pressed":!l,onClick:()=>d(false),children:[jsxRuntime.jsx(lucideReact.LayoutGrid,{size:14}),n.cards]}),jsxRuntime.jsxs(ie,{type:"button",size:"sm",variant:l?"outline":"ghost","aria-pressed":l,onClick:()=>d(true),children:[jsxRuntime.jsx(lucideReact.AlignLeft,{size:14}),n.plain]})]}),l?s(e):i.blocks.map((u,m)=>u.type==="cards"?jsxRuntime.jsx(Sv,{cards:u.cards,featured:u.featured,renderMarkdown:c,labels:n},m):jsxRuntime.jsx("div",{className:"report-product-prose",children:c(u.text)},m))]})}a(Hc,"AgentReportView");function Fc({children:e,tone:t="neutral",className:o=""}){return jsxRuntime.jsx(ee,{children:jsxRuntime.jsx("code",{className:`inline rounded-md px-1.5 py-0.5 font-mono text-[12px]
|
|
129
|
+
leading-none align-[-1px] ${{neutral:"bg-inset text-ink-2",accent:"bg-accent-tint text-accent-ink",orange:"bg-orange-tint text-orange"}[t]} ${o}`,children:e})})}a(Fc,"BUIChip");function _c({resourceAccess:e,...t}){return e?jsxRuntime.jsx($v,{...t,access:e}):jsxRuntime.jsx(Uc,{...t})}a(_c,"AgentMessageContent");function $v({access:e,...t}){let o=Oo(e);return jsxRuntime.jsx(Uc,{...t,report:t.report&&{...t.report,resources:o},streaming:t.streaming&&{...t.streaming,resources:o}})}a($v,"ResourceMessage");function Uc({role:e,body:t,response:o,skippedLabel:n,report:r,file:i,attachments:s,attachmentsLabel:l,streaming:d}){return o?jsxRuntime.jsx(Lc,{response:o,skippedLabel:n}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r&&jsxRuntime.jsx(Hc,{...r}),i&&jsxRuntime.jsx(Dc,{...i}),s?.length?jsxRuntime.jsx("div",{className:"flex min-w-0 flex-wrap gap-2","aria-label":l,children:s.map((c,u)=>jsxRuntime.jsx(Fc,{className:"break-all whitespace-normal",children:c},`${u}:${c}`))}):null,e==="assistant"?d&&jsxRuntime.jsx(An,{...d}):jsxRuntime.jsx("p",{className:"break-words whitespace-pre-wrap",children:t})]})}a(Uc,"MessageContent");function zv(e){let t=Math.max(0,Math.floor(e/1e3)),o=Math.floor(t/3600),n=Math.floor(t%3600/60),r=t%60;return o>0?n>0?`${o}h ${n}m`:`${o}h`:n===0?`${r}s`:`${n}m ${r}s`}a(zv,"formatDuration");function ds(e){return e==="queued"||e==="running"||e==="waiting_approval"}a(ds,"isActive");function Yc({status:e,children:t,durationMs:o,completedCount:n,totalCount:r,open:i,defaultOpen:s,onOpenChange:l,className:d,contentClassName:c,label:u,title:m,createdAt:p,showStatusIcon:g=true,variant:b,density:x}){let f=br({variant:b,density:x}),h=f.density==="compact",k=$t().agentWorkbench,$=i!==void 0,[w,C]=he.useState(s??ds(e)),T=he.useRef(false),S=he.useRef(e),P=$?i:w;he.useEffect(()=>{$||T.current||S.current===e||(S.current=e,C(ds(e)));},[$,e]);let E=a(q=>{T.current=true,$||C(q),l?.(q);},"handleOpenChange"),R=o===void 0?void 0:zv(o),W=u??(e==="queued"?k.process.queued:e==="waiting_approval"?k.process.waitingApproval:e==="running"?k.process.running:e==="failed"?k.process.failed:e==="stopped"?k.process.stopped:R?k.process.processedFor({duration:R}):k.process.processed),B=r!==void 0&&r>0,A=m??W,L=p?new Date(p):void 0,I=L&&Number.isFinite(L.getTime())?L.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:false}):void 0,K=m!==void 0&&(I!==void 0||u!==void 0);return jsxRuntime.jsxs(Co__namespace.Root,{open:P,onOpenChange:E,className:vt("group/process w-full min-w-0",d),"data-agent-process-status":e,"data-agent-workbench-variant":f.variant,"data-agent-workbench-density":f.density,"aria-busy":ds(e)?"true":void 0,children:[jsxRuntime.jsxs(Co__namespace.Trigger,{className:vt("flex w-full min-w-0 items-center gap-2 border-b border-border/70 text-left text-sm text-muted-foreground outline-hidden transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",h?"min-h-8 py-1.5":"min-h-9 py-2"),children:[g?e==="running"||e==="queued"?jsxRuntime.jsx(lucideReact.Loader2,{className:"size-4 shrink-0 animate-spin","aria-hidden":"true"}):e==="waiting_approval"?jsxRuntime.jsx(lucideReact.Clock3,{className:"size-4 shrink-0 text-warning-foreground","aria-hidden":"true"}):e==="failed"?jsxRuntime.jsx(lucideReact.CircleAlert,{className:"size-4 shrink-0 text-destructive-text","aria-hidden":"true"}):e==="completed"?jsxRuntime.jsx(lucideReact.Check,{className:"size-4 shrink-0 text-success","aria-hidden":"true"}):jsxRuntime.jsx(lucideReact.Clock3,{className:"size-4 shrink-0 text-muted-foreground","aria-hidden":"true"}):null,jsxRuntime.jsx("span",{className:"min-w-0 flex-1 truncate",children:K?jsxRuntime.jsxs("span",{className:"flex min-w-0 flex-col",children:[jsxRuntime.jsxs("span",{className:"flex min-w-0 items-center gap-2 truncate",children:[jsxRuntime.jsx("span",{className:"truncate",children:A}),I?jsxRuntime.jsx("span",{className:"shrink-0 text-xs text-muted-foreground/70",children:I}):null]}),u?jsxRuntime.jsx("span",{className:"truncate text-xs text-muted-foreground/70",children:u}):null]}):W}),B?jsxRuntime.jsx("span",{className:"shrink-0 rounded-full bg-muted px-2 py-0.5 text-xs text-foreground",children:k.process.completedCount({completed:n??0,total:r})}):null,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"size-4 shrink-0 transition-transform group-data-[state=open]/process:rotate-90","aria-hidden":"true"})]}),jsxRuntime.jsx(Co__namespace.Content,{className:vt("overflow-hidden data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down",c),children:jsxRuntime.jsx("div",{className:vt("flex min-w-0 flex-col",h?"gap-2 py-3":"gap-3 py-4"),children:t})})]})}a(Yc,"AgentWorkbenchProcess");var Ov={read:lucideReact.BookOpen,search:lucideReact.Search,tool:lucideReact.Wrench,command:lucideReact.TerminalSquare,file:lucideReact.FileText};function Hv({status:e}){return e==="running"||e==="pending"?jsxRuntime.jsx(lucideReact.Loader2,{className:"size-3.5 shrink-0 animate-spin","aria-hidden":"true"}):e==="failed"||e==="denied"?jsxRuntime.jsx(lucideReact.CircleAlert,{className:"size-3.5 shrink-0 text-destructive-text","aria-hidden":"true"}):e==="completed"?jsxRuntime.jsx(lucideReact.Check,{className:"size-3.5 shrink-0","aria-hidden":"true"}):jsxRuntime.jsx(lucideReact.Circle,{className:"size-3.5 shrink-0","aria-hidden":"true"})}a(Hv,"ActionStatusIcon");function Qc({summary:e,kind:t="tool",status:o="completed",children:n,open:r,defaultOpen:i=false,onOpenChange:s,icon:l,className:d,contentClassName:c}){let u=l??Ov[t],m=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(u,{className:"size-4 shrink-0","aria-hidden":"true"}),jsxRuntime.jsx("span",{className:"min-w-0 flex-1 truncate",children:e}),jsxRuntime.jsx(Hv,{status:o}),n?jsxRuntime.jsx(lucideReact.ChevronRight,{className:"size-3.5 shrink-0 transition-transform group-data-[state=open]/action:rotate-90","aria-hidden":"true"}):null]});return n?jsxRuntime.jsxs(Co__namespace.Root,{open:r,defaultOpen:i,onOpenChange:s,className:vt("group/action min-w-0",d),"data-agent-action-status":o,children:[jsxRuntime.jsx(Co__namespace.Trigger,{className:"flex min-h-7 w-full min-w-0 items-center gap-2 text-left text-[13px] text-muted-foreground outline-hidden hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",children:m}),jsxRuntime.jsx(Co__namespace.Content,{className:"overflow-hidden data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down",children:jsxRuntime.jsx("div",{className:vt("ml-6 mt-2 min-w-0 border-l border-border pl-3",c),children:n})})]}):jsxRuntime.jsx("div",{className:vt("flex min-h-7 min-w-0 items-center gap-2 text-[13px] text-muted-foreground",d),"data-agent-action-status":o,children:m})}a(Qc,"AgentWorkbenchAction");var _v=a(e=>jsxRuntime.jsx(lucideReact.Sparkles,{...e}),"ReasoningIcon");function Zc({empty:e,running:t,children:o,...n}){return e?jsxRuntime.jsx("div",{role:"status",className:"bui-process-group",children:jsxRuntime.jsx("span",{className:"bui-process-label","data-running":t,children:n.label})}):jsxRuntime.jsx(Yc,{...n,className:"bui-process-group",contentClassName:"bui-process-content",children:o})}a(Zc,"AgentProcessView");function Jc({reasoning:e,summary:t,running:o,status:n,kind:r,statusLabel:i,details:s,images:l,resourceAccess:d,unavailableImageLabel:c}){return jsxRuntime.jsx(Qc,{className:"bui-process-action",icon:e?_v:void 0,kind:r,status:n,summary:jsxRuntime.jsx("span",{className:"bui-process-label","data-running":o,children:t}),children:jsxRuntime.jsxs("div",{className:"bui-process-detail",children:[i&&jsxRuntime.jsx("p",{children:i}),l?.length?jsxRuntime.jsx(Uv,{images:l,access:d,unavailableLabel:c}):null,e?s.join(""):s.map((u,m)=>jsxRuntime.jsx("pre",{children:u.slice(0,8e3)},m))]})})}a(Jc,"AgentProcessDetail");function Uv({images:e,access:t,unavailableLabel:o}){return t?jsxRuntime.jsx(Vv,{images:e,access:t,unavailableLabel:o}):jsxRuntime.jsx(eu,{images:e,unavailableLabel:o})}a(Uv,"ProcessImages");function Vv({images:e,access:t,unavailableLabel:o}){let n=Oo(t);return jsxRuntime.jsx(eu,{images:e,resources:n,unavailableLabel:o})}a(Vv,"ManagedProcessImages");function eu({images:e,resources:t,unavailableLabel:o}){let n=t&&{...t,imageActions:a(r=>{let i=t.imageActions?.(r);return i?.open?{open:i.open,labels:i.labels}:void 0},"imageActions")};return jsxRuntime.jsx("div",{className:"agent-process-images",children:e.map((r,i)=>r.src?jsxRuntime.jsx(An,{text:`![${r.alt.replace(/[\[\]\\\n]/g," ")}](<${r.src.replace(/[<>\n\r]/g,"")}>)`,format:"markdown",streaming:false,actions:[],resources:n},i):jsxRuntime.jsx("span",{role:"status",children:o},i))})}a(eu,"ProcessImageContent");function tu({message:e}){return jsxRuntime.jsx("p",{role:"alert",children:e})}a(tu,"AgentFeedback");function UR({children:e}){return jsxRuntime.jsx("div",{role:"status",children:e})}a(UR,"AgentInteractionFallback");var ou=Array.from({length:9},(e,t)=>{let o=Math.floor(t/3);return (t%3+Math.abs(o-1))*90}),qv=[0,1,2,5,8,7,6,3],Kv=Array.from({length:9},(e,t)=>{let o=qv.indexOf(t);return o===-1?null:o*110}),Ma={Drive:{delays:ou,dur:650,round:false},Dots:{delays:ou,dur:650,round:true},Orbit:{delays:Kv,dur:950,round:false}};function cs({delays:e,dur:t,round:o}){return jsxRuntime.jsx("span",{"aria-hidden":true,className:"grid shrink-0 grid-cols-[repeat(3,4px)] gap-[1.5px]",children:e.map((n,r)=>jsxRuntime.jsx("span",{className:`size-[4px] bg-ink ${o?"rounded-full":"rounded-[1px]"}`,style:{opacity:n===null?.07:.15,animation:n===null?"none":`bui-pixel-on ${t}ms ease-in-out ${n}ms infinite`}},r))})}a(cs,"LoaderGrid");function Xv({elapsedMs:e,startedAtMs:t}){let[o]=he.useState(()=>Date.now()),[n,r]=he.useState(()=>Date.now()),i=t??o,s=e===void 0&&Number.isFinite(i);if(he.useEffect(()=>{if(!s)return;let c=a(()=>r(Date.now()),"update");c();let u=setInterval(c,100);return ()=>clearInterval(u)},[s,i]),e===null||!Number.isFinite(e??i))return null;let l=Math.max(0,e??n-i)/1e3,d=l<60?`${l.toFixed(1)}s`:`${Math.floor(l/60)}m ${(l%60).toFixed(1)}s`;return jsxRuntime.jsx("span",{"data-bui-elapsed":true,"aria-live":"off",className:"shrink-0 whitespace-nowrap font-mono text-[12px] text-ink-3 tabular-nums",children:d})}a(Xv,"ElapsedTime");function fn({label:e,variant:t="Drive",videoSrc:o,elapsedMs:n,startedAtMs:r}){let i=Ue(),s=t==="Surfer",l=e??i("Loading"),[d,c]=he.useState(true),{delays:u,dur:m,round:p}=Ma[t]??Ma.Drive,g=jsxRuntime.jsx("span",{className:"min-w-0 [overflow-wrap:anywhere] bg-clip-text text-[13px] font-medium text-transparent",style:{backgroundImage:"linear-gradient(90deg, var(--bui-ink-3) 35%, var(--bui-ink) 50%, var(--bui-ink-3) 65%)",backgroundSize:"200% 100%",animation:"bui-shimmer-text 1.4s linear infinite"},children:l}),b=jsxRuntime.jsx(Xv,{elapsedMs:n,startedAtMs:r});return s?jsxRuntime.jsx(ee,{children:jsxRuntime.jsxs("div",{"data-bui-loading-state":true,role:"status",className:"flex w-fit flex-col items-start",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2.5",children:[jsxRuntime.jsx(cs,{...Ma.Drive}),g,b]}),jsxRuntime.jsx("div",{className:"mt-2 w-56 overflow-hidden rounded-[10px] shadow-overlay",style:{animation:"bui-pop-in 200ms cubic-bezier(0.16,1,0.3,1) both",transformOrigin:"top left"},children:jsxRuntime.jsx("div",{className:"relative aspect-video w-full",style:{background:"var(--bui-tooltip-bg)"},children:d&&o?jsxRuntime.jsx("video",{src:o,autoPlay:true,muted:true,loop:true,playsInline:true,onError:()=>c(false),className:"h-full w-full object-cover"}):jsxRuntime.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-1.5",children:[jsxRuntime.jsx(cs,{...Ma.Drive}),jsxRuntime.jsx("span",{className:"px-3 text-center font-mono text-[10px]",style:{color:"var(--bui-tooltip-muted)"},children:i("Video unavailable")})]})})})]})}):jsxRuntime.jsx(ee,{children:jsxRuntime.jsxs("div",{"data-bui-loading-state":true,role:"status",className:"flex max-w-full w-fit items-center gap-2.5",children:[jsxRuntime.jsx(cs,{delays:u,dur:m,round:p}),g,b]})})}a(fn,"BUILoadingState");var ps=Symbol.for("@inf-monkeys-tech/monkeys-design/ui-theme-context@1"),ms=globalThis;ms[ps]||Object.defineProperty(ms,ps,{value:he.createContext(null)});var Hn=ms[ps];function Qv(e){return typeof e=="function"?true:typeof e=="object"&&e!==null&&!he.isValidElement(e)&&"$$typeof"in e}a(Qv,"isWorkbenchIconComponent");function ru(e,t){return e?he.isValidElement(e)?e:Qv(e)?jsxRuntime.jsx(e,{className:t}):e:null}a(ru,"renderWorkbenchIcon");function ex(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}a(ex,"toCssSize");var tx=160,ox=56,nx=128;function au(e){if(typeof e=="number"&&Number.isFinite(e)&&e>0)return e;if(typeof e!="string")return;let t=e.trim().match(/^(\d+(?:\.\d+)?)px$/i);return t?Number(t[1]):void 0}a(au,"numericCssSize");function lu(e,t){return e.renderType==="icon"?ox:t?nx:tx}a(lu,"defaultWorkbenchColumnWidth");function iu(e,t,o){return t??au(e.width)??au(e.minWidth)??lu(e,o)}a(iu,"resolvedWorkbenchColumnWidth");function rx(e){return e==null||e===false?null:e}a(rx,"defaultFormatLabel");function su(e){if(typeof e=="string"||typeof e=="number")return String(e)}a(su,"toTitle");function ax(e,t){return e?.id??e?.key??e?.linkKey??t}a(ax,"defaultGetRowKey");function ix(e){return e?.linkKey??e?.id??e?.key}a(ix,"defaultGetRowSelectionKey");function sx(e,t){if(!t?.length)return e;let o=new Map(e.map(s=>[s.key,s])),n=t.map(s=>o.get(s)).filter(Boolean),r=new Set(n.map(s=>s.key)),i=e.filter(s=>!r.has(s.key));return [...n,...i]}a(sx,"getOrderedColumns");function bs(e,t){let o=new Set(e),n=(t||[]).filter(s=>o.has(s)),r=new Set(n),i=e.filter(s=>!r.has(s));return [...n,...i]}a(bs,"normalizeColumnOrder");function lx({helperText:e,className:t}){return H(e)?jsxRuntime.jsxs("span",{className:v("group relative inline-flex items-center",t),children:[jsxRuntime.jsx("button",{type:"button",title:su(e),"aria-label":su(e)||"Field help",className:"inline-flex h-4 w-4 items-center justify-center rounded-md border border-border/60 bg-background text-xs font-semibold normal-case tracking-normal text-muted-foreground shadow-sm transition-colors hover:border-primary/40 hover:text-primary focus-visible:border-primary/40 focus-visible:text-primary focus-visible:outline-hidden",onClick:o=>o.stopPropagation(),children:"?"}),jsxRuntime.jsx("span",{role:"tooltip",className:"pointer-events-none absolute left-1/2 top-full z-40 mt-2 hidden w-72 -translate-x-1/2 whitespace-pre-line rounded-lg border border-border/60 bg-card px-3 py-2 text-xs font-normal normal-case leading-5 tracking-normal text-foreground shadow-sm backdrop-blur-sm group-hover:block group-focus-within:block",children:e})]}):null}a(lx,"WorkbenchTableHeaderHelper");function hs({rows:e=[],columns:t=[],onRowClick:o,selectedRowKey:n,selectedLinkKey:r,activePrimaryColumn:i,activeTablePrimaryColumn:s,renderedRowCount:l,totalRowCount:d,tableMinWidth:c,minWidth:u,bodyMaxHeight:m="min(58vh, 38rem)",stickyFirstColumn:p=true,appearance:g,headerPresentation:b,fillRemainingWidthColumnKey:x,columnOrder:f,columnSizes:h,columnDragEnabled:k,columnResizeEnabled:$,className:w,tableClassName:C,rowClassName:T,classNames:S,style:P,renderCell:E,renderFieldValue:R,renderColumnHeader:W,onColumnOrderChange:B,onColumnSizeChange:A,onSort:L,formatLabel:I=rx,getColumnDataType:K,getColumnIcon:q,getColumnTypeIcon:_,getRowKey:Y=ax,getRowSelectionKey:M=ix,isActionColumn:z,isActionField:Q,isRowDisabled:ce,isWorkbenchPlaceholderRow:se,emptyState:V="-",hiddenRowsMessage:J,scrollFooter:O,scrollRestoration:F}){let ne=t.map(N=>N.key).join(""),ae=he.useMemo(()=>ne?ne.split(""):[],[ne]),[me,Ce]=he.useState(ae),[Z,Re]=he.useState({}),Ge=he.useRef(null),gt=he.useRef(new Map),oe=he.useRef(F);oe.current=F;let De=he.useRef(void 0),qe=he.useCallback(()=>{let N=Ge.current,re=oe.current;if(!N||!re||De.current!==re.key)return;let ve=N.getBoundingClientRect().top,ye=Array.from(gt.current.entries()).find(([,_e])=>_e.getBoundingClientRect().bottom>ve);re.write({x:N.scrollLeft,y:N.scrollTop,...ye?{rowKey:ye[0],rowOffset:ye[1].getBoundingClientRect().top-ve}:{}});},[]);he.useEffect(()=>{let N=Ge.current,re=oe.current;if(!N||!re||De.current===re.key||e.length===0)return;let ve=re.read(),ye=a(()=>{let Ze=ve?.rowKey?gt.current.get(ve.rowKey):void 0,Me=Ze&&typeof ve?.rowOffset=="number"?N.scrollTop+Ze.getBoundingClientRect().top-N.getBoundingClientRect().top-ve.rowOffset:ve?.y??0;N.scrollTo({left:ve?.x??0,top:Math.max(0,Me),behavior:"auto"}),De.current=re.key;},"restore"),_e=N.ownerDocument.defaultView;if(!_e){ye();return}let ct=_e.requestAnimationFrame(ye);return ()=>_e.cancelAnimationFrame(ct)},[e,F?.key]),he.useEffect(()=>{let N=Ge.current?.ownerDocument.defaultView;return N?.addEventListener("pagehide",qe),()=>{N?.removeEventListener("pagehide",qe),qe();}},[qe]);let[ft,Gt]=he.useState();he.useEffect(()=>{Ce(N=>bs(ae,N));},[ae]);let Po=f?bs(ae,f):me,j=h??Z,ge=he.useCallback((N,re)=>{let ve=bs(ae,N);f||Ce(ve),B?.(ve,re);},[f,ae,B]),Ne=he.useCallback((N,re,ve)=>{h||Re(ye=>({...ye,[N]:re})),A?.(N,re,ve);},[h,A]),He=n??r,Ke=i??s,Fe=sx(t,Po),Qe=x?Fe.reduce((N,re)=>re.key===x?N:N+iu(re,j[re.key],z?.(re)??Q?.(re)??false),0):void 0,qt=x&&Qe!==void 0&&ft!==void 0?Math.max(0,Math.round(ft-Qe)):void 0,zt=Fe.flatMap(N=>N.key!==x?[N]:qt===0?[]:qt===void 0?[N]:[{...N,width:qt,minWidth:qt,maxWidth:qt}]),co=Math.max(0,Number(d||e.length)-Number(l||e.length)),uo=E??R??((N,re)=>re?.[N.key]),St=z??Q??(()=>false),po=ce??se??(()=>false),Pr=q??_,xn=Qe!==void 0&&qt!==void 0?Qe+qt:void 0,Gn=xn??c??u??Math.max(760,zt.reduce((N,re)=>N+iu(re,j[re.key],St(re)),0));he.useEffect(()=>{if(!x){Gt(void 0);return}let N=Ge.current;if(!N)return;let re=N.ownerDocument.defaultView,ve=a(()=>{let ct=Math.round(N.getBoundingClientRect().width);!Number.isFinite(ct)||ct<=0||Gt(Ze=>Ze===ct?Ze:ct);},"updateWidth");ve();let ye=re?.ResizeObserver,_e=ye?new ye(ve):void 0;return _e?.observe(N),re?.addEventListener("resize",ve),()=>{_e?.disconnect(),re?.removeEventListener("resize",ve);}},[x]);let qn=co>0&&J?typeof J=="function"?J(co,l||e.length,d||e.length):J:null;return jsxRuntime.jsxs(Cc,{appearance:g,className:v("w-full overflow-hidden rounded-lg border border-border/40 bg-muted/15 dark:border-border/35 dark:bg-muted/10",S?.root,w),style:m==="100%"?{display:"flex",minHeight:0,flex:1,flexDirection:"column",...P}:P,children:[jsxRuntime.jsxs("div",{ref:Ge,onScroll:qe,className:v("w-full overflow-auto",S?.scrollArea),style:{maxHeight:ex(m),...m==="100%"?{minHeight:0,flex:1}:{}},children:[jsxRuntime.jsxs(Tc,{appearance:g,columnOrder:Po,columnSizes:j,columnDragEnabled:k,columnResizeEnabled:$,onColumnOrderChange:ge,onColumnSizeChange:Ne,className:v("w-full table-auto text-left text-xs",S?.table,C),style:{width:xn,minWidth:Gn},children:[jsxRuntime.jsx(Sc,{appearance:g,className:v("z-20 text-xs font-sans text-muted-foreground",S?.header),children:jsxRuntime.jsx(as,{className:v("hover:bg-transparent",S?.headerRow),children:zt.map((N,re)=>{let ve=lu(N,St(N)),ye=N.renderType||N.type||K?.(N.key,e,N),_e=ru(Pr?.(ye,N),"h-3.5 w-3.5 shrink-0 text-primary"),Ze=zt[re-1]?.renderType==="icon"&&N.key===Ke?.key,Me=W?W(N,{column:N,columnIndex:re,columns:zt,rows:e,columnType:ye}):I(N.label,{column:N}),Ro=!W&&(H(N.trailing)||H(N.helperText))?jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[H(N.trailing)?I(N.trailing,{column:N}):null,jsxRuntime.jsx(lx,{helperText:I(N.helperText,{column:N}),className:S?.helper})]}):void 0,on=!!N.sortable,Rr=on&&L?()=>L(N.key,N):void 0;return jsxRuntime.jsx(Pc,{appearance:g,presentation:b,columnId:N.key,align:N.align,icon:W?void 0:_e,label:Me,description:W?void 0:I(N.description,{column:N}),meta:W?void 0:I(N.meta,{column:N}),actions:N.actions,trailing:Ro,sortable:on,sortDirection:N.sortDirection,sortLabel:N.sortLabel,onSort:Rr,draggable:N.draggable,dragLabel:N.dragLabel,resizable:N.resizable,resizeLabel:N.resizeLabel,width:N.width??ve,minWidth:typeof N.minWidth=="number"?N.minWidth:void 0,maxWidth:typeof N.maxWidth=="number"?N.maxWidth:void 0,className:v("sticky top-0 z-20 h-auto whitespace-nowrap bg-card/95 px-4 py-3 font-medium backdrop-blur-sm supports-[backdrop-filter]:bg-card/90",p&&re===0&&"md:left-0 md:z-30 md:shadow-[1px_0_0_0_hsl(var(--border)/0.35)]",N.compactHeaderClassName,N.renderType==="icon"&&"pl-3 pr-1",Ze&&"pl-2",S?.headerCell,N.headerClassName),style:{minWidth:typeof N.minWidth=="string"?N.minWidth:void 0,maxWidth:typeof N.maxWidth=="string"?N.maxWidth:void 0,...N.headerStyle}},N.key)})})}),jsxRuntime.jsx($c,{appearance:g,className:v("divide-y divide-border/35 dark:divide-border/30",S?.body),children:e.length?e.map((N,re)=>{let ve=Y(N,re),ye=po(N,re),_e=M(N,re),ct=!!(He&&String(_e)===String(He)),Ze=typeof T=="function"?T(N,re):T;return jsxRuntime.jsx(as,{appearance:g,ref:Me=>{Me?gt.current.set(String(ve),Me):gt.current.delete(String(ve));},interactive:!!o&&!ye,"data-item-key":String(ve),tabIndex:o&&!ye?0:void 0,selected:ct,disabled:ye,onClick:Me=>{ye||(o&&Me.currentTarget.focus({preventScroll:true}),o?.(N,re));},onKeyDown:Me=>{Me.target!==Me.currentTarget||ye||!o||!["Enter"," "].includes(Me.key)||(Me.preventDefault(),o(N,re));},className:v(o&&!ye?"cursor-pointer":"cursor-default",ct?"bg-primary/10 hover:bg-primary/15":ye?"":"hover:bg-muted/25 dark:hover:bg-muted/15",S?.row,Ze),children:zt.map((Me,Ro)=>{let on=St(Me)||Me.wrap===true,Kn=zt[Ro-1]?.renderType==="icon"&&Me.key===Ke?.key;return jsxRuntime.jsx(Rc,{appearance:g,align:Me.align,className:v(on?"align-top whitespace-normal":"whitespace-nowrap","px-4 py-3 text-muted-foreground",!on&&"overflow-hidden text-ellipsis",p&&Ro===0&&"md:sticky md:left-0 md:z-10 md:bg-card/95 md:text-foreground md:shadow-[1px_0_0_0_hsl(var(--border)/0.3)]",Me.compactCellClassName,Me.renderType==="icon"&&"pl-3 pr-1",Kn&&"pl-2",S?.cell,Me.cellClassName),style:Me.cellStyle,children:uo(Me,N,{row:N,rowIndex:re,column:Me,columnIndex:Ro,compact:true,surface:"list"})},`${ve}-${Me.key}`)})},ve)}):jsxRuntime.jsx(Mc,{appearance:g,colSpan:Math.max(zt.length,1),classNames:{cell:"px-4 py-10 text-center text-sm text-muted-foreground"},children:V})})]}),H(O)?jsxRuntime.jsx("div",{style:{minWidth:Gn},children:O}):null]}),qn?jsxRuntime.jsx("div",{className:v("border-t border-border/40 px-4 py-2 text-xs text-muted-foreground dark:border-border/30",S?.footer),children:qn}):null]})}a(hs,"WorkbenchTableView");var kt=a((...e)=>e.filter(Boolean).join(" "),"cx");function Ut(e,t,o,n){let r=e!==void 0,i=he.useRef(r),s=he.useRef(false);process.env.NODE_ENV!=="production"&&!s.current&&(e!==void 0&&t!==void 0||i.current!==r)&&(console.error("monkeys-design UI: choose controlled or uncontrolled state; do not supply both value and defaultValue or switch modes."),s.current=true);let[l,d]=he.useState(t??o),c=r?e:l;return [c,a(m=>{r||d(m),m!==c&&n?.(m);},"update")]}a(Ut,"useControllable");function Wn(e,t){let o=he.useRef(t);o.current=t,he.useEffect(()=>{let n=e.current,r=n&&("form"in n?n.form:n.closest("form"));if(!r)return;let i=true,s=a(l=>queueMicrotask(()=>{i&&!l.defaultPrevented&&o.current();}),"listener");return r.addEventListener("reset",s),()=>{i=false,r.removeEventListener("reset",s);}});}a(Wn,"useFormReset");var mx=he.createContext({}),vr=a((...e)=>[...new Set(e.filter(Boolean).flatMap(t=>t.split(/\s+/)))].join(" ")||void 0,"classes"),Bt=a(e=>Object.fromEntries(Object.entries(e??{}).filter(([,t])=>t!==void 0)),"defined");function du(e,t){return Object.fromEntries([...new Set([...Object.keys(e??{}),...Object.keys(t??{})])].map(o=>[o,{...e?.[o],...Bt(t?.[o])}]))}a(du,"mergeStyles");function cu(e,t){return Object.fromEntries([...new Set([...Object.keys(e??{}),...Object.keys(t??{})])].map(o=>[o,vr(e?.[o],t?.[o])]))}a(cu,"mergeClasses");var uu=["variant","tone","emphasis","effect","size","lightEdge","glassColor","glassOpacity","motion","activeBorderColor"];function Fn(e,t){let o=Object.fromEntries(uu.filter(n=>t?.[n]!==void 0&&!(n==="variant"&&t?.variant==="switch")).map(n=>[n,t[n]]));return {...e,...o,className:vr(e?.className,t?.className),style:{...e?.style,...Bt(t?.style)},classNames:cu(e?.classNames,t?.classNames),styles:du(e?.styles,t?.styles)}}a(Fn,"mergeButtonAppearance");function gx(e,t){return Object.fromEntries([...new Set([...Object.keys(e??{}),...Object.keys(t??{})])].map(o=>[o,Fn(e?.[o],t?.[o])]))}a(gx,"mergeButtons");function pu(e,t){let o=he.useContext(mx),n=o[e],r=t,i=cu(n?.classNames,r.classNames),s=du(n?.styles,r.styles),{classNames:l,styles:d,buttonProps:c,...u}=r,m={...n?.defaultProps,...Bt(u),className:vr(n?.defaultProps?.className,i.root,r.className),style:{...n?.defaultProps?.style,...s.root,...Bt(r.style)}},p=a((f,h,k,$)=>({className:vr(h,i[f]),style:k||s[f]||$?{...k,...Bt(n?.styles?.[f]),...Bt($),...Bt(r.styles?.[f])}:void 0}),"slot"),g=a((f,h,k)=>{let $=p(f,h,k);return {...$,style:{...$.style,...Bt(r.styles?.root),...Bt(r.styles?.[f]),...Bt(r.style)}}},"rootSlot"),b=a((f,h,k,$,w,C)=>{let T=o.Button?.defaultProps,S=Object.fromEntries(uu.filter(W=>T?.[W]!==void 0&&!(W==="variant"&&T[W]==="switch")).map(W=>[W,T[W]])),P=Fn({variant:T?.variant==="switch"?"solid":void 0,...h},S);P=Fn(P,n?.buttonProps?.[f]),C&&(P=Fn(P,n?.buttonProps?.[C])),P=Fn(P,r.buttonProps?.[f]),C&&(P=Fn(P,r.buttonProps?.[C]));let E=p(f,k,$,w),R=S.variant!==void 0||n?.buttonProps?.[f]?.variant!==void 0||r.buttonProps?.[f]?.variant!==void 0||!!(C&&(n?.buttonProps?.[C]?.variant!==void 0||r.buttonProps?.[C]?.variant!==void 0));return {...P,"data-button-appearance":R||void 0,className:vr(E.className,P.className),style:{...E.style,...Bt(P.style)}}},"buttonSlot");return {props:m,slot:p,rootSlot:g,buttonSlot:b,rootButtonSlot:a((...f)=>{let h=b(...f);return {...h,style:{...h.style,...Bt(r.styles?.root),...Bt(r.styles?.[f[0]]),...Bt(r.style)}}},"rootButtonSlot"),forwardStyles:{classNames:i,styles:s,buttonProps:gx(n?.buttonProps,r.buttonProps)}}}a(pu,"useUIComponent");var mu={seed:{ui:{color:{page:{$type:"color",$value:{colorSpace:"srgb",components:[.09019607843137255,.09803921568627451,.11372549019607843],hex:"#17191D"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},surface:{$type:"color",$value:{colorSpace:"srgb",components:[.12549019607843137,.13725490196078433,.1607843137254902],hex:"#202329"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},elevated:{$type:"color",$value:{colorSpace:"srgb",components:[.16470588235294117,.1803921568627451,.21176470588235294],hex:"#2A2E36"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},foreground:{$type:"color",$value:{colorSpace:"srgb",components:[.9568627450980393,.9607843137254902,.9686274509803922],hex:"#F4F5F7"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},muted:{$type:"color",$value:{colorSpace:"srgb",components:[.803921568627451,.8196078431372549,.8470588235294118],hex:"#CDD1D8"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},subtle:{$type:"color",$value:{colorSpace:"srgb",components:[.7254901960784313,.7450980392156863,.7843137254901961],hex:"#B9BEC8"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},primary:{$type:"color",$value:{colorSpace:"srgb",components:[.5490196078431373,.6039215686274509,.6666666666666666],hex:"#8C9AAA"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},lightEdgeBlue:{$type:"color",$value:{colorSpace:"srgb",components:[.6549019607843137,.7098039215686275,.7843137254901961],hex:"#A7B5C8"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},primaryHover:{$type:"color",$value:{colorSpace:"srgb",components:[.6784313725490196,.7254901960784313,.7803921568627451],hex:"#ADB9C7"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},violet:{$type:"color",$value:{colorSpace:"srgb",components:[.6784313725490196,.7137254901960784,.7686274509803922],hex:"#ADB6C4"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},focus:{$type:"color",$value:{colorSpace:"srgb",components:[.7647058823529411,.8235294117647058,.9098039215686274],hex:"#C3D2E8"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},danger:{$type:"color",$value:{colorSpace:"srgb",components:[.9411764705882353,.5019607843137255,.5019607843137255],hex:"#F08080"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},dangerBackground:{$type:"color",$value:{colorSpace:"srgb",components:[.6078431372549019,.1450980392156863,.1843137254901961],hex:"#9B252F"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},success:{$type:"color",$value:{colorSpace:"srgb",components:[.5176470588235295,.8588235294117647,.6784313725490196],hex:"#84DBAD"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},control:{$type:"color",$value:{colorSpace:"srgb",components:[.47058823529411764,.47058823529411764,.47058823529411764],hex:"#787878",alpha:.2},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},border:{$type:"color",$value:{colorSpace:"srgb",components:[.7176470588235294,.7568627450980392,.8313725490196079],hex:"#B7C1D4",alpha:.5},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},info:{$type:"color",$value:{colorSpace:"srgb",components:[0,0,0],hex:"#000000",alpha:.8},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},previewInfo:{$type:"color",$value:{colorSpace:"srgb",components:[0,0,0],hex:"#000000",alpha:.4},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},blueGlow:{$type:"color",$value:{colorSpace:"srgb",components:[.5215686274509804,.6,.7098039215686275],hex:"#8599B5",alpha:.35},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},violetGlow:{$type:"color",$value:{colorSpace:"srgb",components:[.6431372549019608,.6901960784313725,.7686274509803922],hex:"#A4B0C4",alpha:.5},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},transparent:{$type:"color",$value:{colorSpace:"srgb",components:[0,0,0],hex:"#000000",alpha:0},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},overlay:{$type:"color",$value:{colorSpace:"srgb",components:[0,0,0],hex:"#000000",alpha:.65},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},primaryAccessible:{$type:"color",$value:{colorSpace:"srgb",components:[.3215686274509804,.396078431372549,.49019607843137253],hex:"#52657D"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},header:{$type:"color",$value:{colorSpace:"srgb",components:[.21568627450980393,.2549019607843137,.3176470588235294],hex:"#374151"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},detail:{$type:"color",$value:{colorSpace:"srgb",components:[0,0,0],hex:"#000000"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},white:{$type:"color",$value:{colorSpace:"srgb",components:[1,1,1],hex:"#FFFFFF"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},black:{$type:"color",$value:{colorSpace:"srgb",components:[0,0,0],hex:"#000000"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},activeBorder:{$type:"color",$value:{colorSpace:"srgb",components:[.43137254901960786,.5568627450980392,.9254901960784314],hex:"#6E8EEC"},$description:"\u6FC0\u6D3B\u63A7\u4EF6\u63CF\u8FB9\u539F\u59CB\u8272"}},radius:{r16:{$type:"dimension",$value:{value:16,unit:"px"},$description:"\u516C\u5171\u5706\u89D2\u523B\u5EA6"},r24:{$type:"dimension",$value:{value:24,unit:"px"},$description:"\u516C\u5171\u5706\u89D2\u523B\u5EA6"},r12:{$type:"dimension",$value:{value:12,unit:"px"},$description:"\u516C\u5171\u5706\u89D2\u523B\u5EA6"},scale:{s24:{$type:"dimension",$value:"{seed.ui.radius.r24}",$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 24px"},s999:{$type:"dimension",$value:"{seed.ui.radius.r999}",$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 999px"},s12:{$type:"dimension",$value:"{seed.ui.radius.r12}",$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 12px"},s8:{$type:"dimension",$value:{value:8,unit:"px"},$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 8px"},s4:{$type:"dimension",$value:{value:4,unit:"px"},$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 4px"},s16:{$type:"dimension",$value:"{seed.ui.radius.r16}",$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 16px"},s10:{$type:"dimension",$value:{value:10,unit:"px"},$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 10px"},s20:{$type:"dimension",$value:{value:20,unit:"px"},$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 20px"},s2:{$type:"dimension",$value:{value:2,unit:"px"},$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 2px"},s18:{$type:"dimension",$value:{value:18,unit:"px"},$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 18px"}},r999:{$type:"dimension",$value:{value:999,unit:"px"},$description:"\u516C\u5171\u5706\u89D2\u523B\u5EA6"}},typography:{lineHeight:{s1p5:{$type:"number",$value:1.5,$description:"\u5171\u4EAB typography.lineHeight \u523B\u5EA6 1.5"},s1p4:{$type:"number",$value:1.4,$description:"\u5171\u4EAB typography.lineHeight \u523B\u5EA6 1.4"},s1p3:{$type:"number",$value:1.3,$description:"\u5171\u4EAB typography.lineHeight \u523B\u5EA6 1.3"},s1p2:{$type:"number",$value:1.2,$description:"\u5171\u4EAB typography.lineHeight \u523B\u5EA6 1.2"}},weight:{s500:{$type:"number",$value:500,$description:"\u5171\u4EAB typography.weight \u523B\u5EA6 500"},s600:{$type:"number",$value:600,$description:"\u5171\u4EAB typography.weight \u523B\u5EA6 600"},s700:{$type:"number",$value:700,$description:"\u5171\u4EAB typography.weight \u523B\u5EA6 700"},s800:{$type:"number",$value:800,$description:"\u5171\u4EAB typography.weight \u523B\u5EA6 800"},s200:{$type:"number",$value:200,$description:"\u5171\u4EAB typography.weight \u523B\u5EA6 200"},s400:{$type:"number",$value:400,$description:"\u5171\u4EAB typography.weight \u523B\u5EA6 400"}}},size:{s2:{$type:"dimension",$value:{value:2,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 2px"},s3:{$type:"dimension",$value:{value:3,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 3px"},s1:{$type:"dimension",$value:{value:1,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 1px"},s28:{$type:"dimension",$value:{value:28,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 28px"},s42:{$type:"dimension",$value:{value:42,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 42px"},s14:{$type:"dimension",$value:{value:14,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 14px"},s24:{$type:"dimension",$value:{value:24,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 24px"},s18:{$type:"dimension",$value:{value:18,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 18px"},s40:{$type:"dimension",$value:{value:40,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 40px"},s16:{$type:"dimension",$value:{value:16,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 16px"},s20:{$type:"dimension",$value:{value:20,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 20px"},s22:{$type:"dimension",$value:{value:22,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 22px"},s140:{$type:"dimension",$value:{value:140,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 140px"},s85:{$type:"dimension",$value:{value:85,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 85px"},s34:{$type:"dimension",$value:{value:34,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 34px"},s320:{$type:"dimension",$value:{value:320,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 320px"},s160:{$type:"dimension",$value:{value:160,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 160px"},s280:{$type:"dimension",$value:{value:280,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 280px"},s32:{$type:"dimension",$value:{value:32,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 32px"},s53:{$type:"dimension",$value:{value:53,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 53px"},s26:{$type:"dimension",$value:{value:26,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 26px"},s8:{$type:"dimension",$value:{value:8,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 8px"},s62:{$type:"dimension",$value:{value:62,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 62px"},s10:{$type:"dimension",$value:{value:10,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 10px"},s4:{$type:"dimension",$value:{value:4,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 4px"},s5:{$type:"dimension",$value:{value:5,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 5px"},s196:{$type:"dimension",$value:{value:196,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 196px"},s480:{$type:"dimension",$value:{value:480,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 480px"},s1000:{$type:"dimension",$value:{value:1e3,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 1000px"},s660:{$type:"dimension",$value:{value:660,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 660px"},s48:{$type:"dimension",$value:{value:48,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 48px"},s100:{$type:"dimension",$value:{value:100,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 100px"},s64:{$type:"dimension",$value:{value:64,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 64px"},s12:{$type:"dimension",$value:{value:12,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 12px"},s6:{$type:"dimension",$value:{value:6,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 6px"},s168:{$type:"dimension",$value:{value:168,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 168px"},s96:{$type:"dimension",$value:{value:96,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 96px"},s56:{$type:"dimension",$value:{value:56,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 56px"},s1p5:{$type:"dimension",$value:{value:1.5,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 1.5px"},s220:{$type:"dimension",$value:{value:220,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 220px"},s379:{$type:"dimension",$value:{value:379,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 379px"},s68:{$type:"dimension",$value:{value:68,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 68px"},s108:{$type:"dimension",$value:{value:108,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 108px"},s70:{$type:"dimension",$value:{value:70,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 70px"},s57:{$type:"dimension",$value:{value:57,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 57px"},s15:{$type:"dimension",$value:{value:15,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 15px"},s244:{$type:"dimension",$value:{value:244,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 244px"},s78:{$type:"dimension",$value:{value:78,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 78px"},s36:{$type:"dimension",$value:{value:36,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 36px"},s23:{$type:"dimension",$value:{value:23,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 23px"},s117:{$type:"dimension",$value:{value:117,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 117px"},s110:{$type:"dimension",$value:{value:110,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 110px"},s156:{$type:"dimension",$value:{value:156,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 156px"},s125:{$type:"dimension",$value:{value:125,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 125px"},s121:{$type:"dimension",$value:{value:121,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 121px"},s127:{$type:"dimension",$value:{value:127,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 127px"},s55:{$type:"dimension",$value:{value:55,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 55px"},s178:{$type:"dimension",$value:{value:178,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 178px"},s497:{$type:"dimension",$value:{value:497,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 497px"},s37:{$type:"dimension",$value:{value:37,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 37px"},s60:{$type:"dimension",$value:{value:60,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 60px"},s7:{$type:"dimension",$value:{value:7,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 7px"},s128:{$type:"dimension",$value:{value:128,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 128px"},s290:{$type:"dimension",$value:{value:290,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 290px"},s210:{$type:"dimension",$value:{value:210,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 210px"},s231:{$type:"dimension",$value:{value:231,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 231px"},s440:{$type:"dimension",$value:{value:440,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 440px"},s9:{$type:"dimension",$value:{value:9,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 9px"},s190:{$type:"dimension",$value:{value:190,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 190px"},s130:{$type:"dimension",$value:{value:130,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 130px"},s200:{$type:"dimension",$value:{value:200,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 200px"},s150:{$type:"dimension",$value:{value:150,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 150px"},s350:{$type:"dimension",$value:{value:350,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 350px"},s493:{$type:"dimension",$value:{value:493,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 493px"},s17:{$type:"dimension",$value:{value:17,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 17px"}},space:{s6:{$type:"dimension",$value:{value:6,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 6px"},s18:{$type:"dimension",$value:{value:18,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 18px"},s3:{$type:"dimension",$value:{value:3,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 3px"},s10:{$type:"dimension",$value:{value:10,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 10px"},s8:{$type:"dimension",$value:{value:8,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 8px"},s22:{$type:"dimension",$value:{value:22,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 22px"},s7:{$type:"dimension",$value:{value:7,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 7px"},s14:{$type:"dimension",$value:{value:14,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 14px"},s84:{$type:"dimension",$value:{value:84,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 84px"},s4:{$type:"dimension",$value:{value:4,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 4px"},s2:{$type:"dimension",$value:{value:2,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 2px"},s12:{$type:"dimension",$value:{value:12,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 12px"},s5:{$type:"dimension",$value:{value:5,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 5px"},s26:{$type:"dimension",$value:{value:26,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 26px"},s16:{$type:"dimension",$value:{value:16,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 16px"},s24:{$type:"dimension",$value:{value:24,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 24px"},s30:{$type:"dimension",$value:{value:30,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 30px"},s1:{$type:"dimension",$value:{value:1,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 1px"},s15:{$type:"dimension",$value:{value:15,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 15px"},s13:{$type:"dimension",$value:{value:13,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 13px"},s20:{$type:"dimension",$value:{value:20,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 20px"},s29:{$type:"dimension",$value:{value:29,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 29px"},s9:{$type:"dimension",$value:{value:9,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 9px"},s11:{$type:"dimension",$value:{value:11,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 11px"},s115:{$type:"dimension",$value:{value:115,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 115px"},s34:{$type:"dimension",$value:{value:34,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 34px"},s40:{$type:"dimension",$value:{value:40,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 40px"},s28:{$type:"dimension",$value:{value:28,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 28px"},s44:{$type:"dimension",$value:{value:44,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 44px"},s23:{$type:"dimension",$value:{value:23,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 23px"},s70:{$type:"dimension",$value:{value:70,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 70px"},s25:{$type:"dimension",$value:{value:25,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 25px"},s19:{$type:"dimension",$value:{value:19,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 19px"},s47:{$type:"dimension",$value:{value:47,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 47px"}},duration:{s240:{$type:"duration",$value:{value:240,unit:"ms"},$description:"\u5171\u4EAB duration \u523B\u5EA6 240ms"},s800:{$type:"duration",$value:{value:800,unit:"ms"},$description:"\u5171\u4EAB duration \u523B\u5EA6 800ms"},s180:{$type:"duration",$value:{value:180,unit:"ms"},$description:"\u5171\u4EAB duration \u523B\u5EA6 180ms"},s140:{$type:"duration",$value:{value:140,unit:"ms"},$description:"\u5171\u4EAB duration \u523B\u5EA6 140ms"}},opacity:{s0p65:{$type:"number",$value:.65,$description:"\u5171\u4EAB opacity \u523B\u5EA6 0.65"},s0p5:{$type:"number",$value:.5,$description:"\u5171\u4EAB opacity \u523B\u5EA6 0.5"},s0p8:{$type:"number",$value:.8,$description:"\u5171\u4EAB opacity \u523B\u5EA6 0.8"},s0p4:{$type:"number",$value:.4,$description:"\u5171\u4EAB opacity \u523B\u5EA6 0.4"}},shadowSize:{s8:{$type:"dimension",$value:{value:8,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 8px"},s20:{$type:"dimension",$value:{value:20,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 20px"},s12:{$type:"dimension",$value:{value:12,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 12px"},s1:{$type:"dimension",$value:{value:1,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 1px"},s4:{$type:"dimension",$value:{value:4,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 4px"},s10:{$type:"dimension",$value:{value:10,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 10px"},s2:{$type:"dimension",$value:{value:2,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 2px"},s36:{$type:"dimension",$value:{value:36,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 36px"},s5:{$type:"dimension",$value:{value:5,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 5px"},s3:{$type:"dimension",$value:{value:3,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 3px"},s24:{$type:"dimension",$value:{value:24,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 24px"},s80:{$type:"dimension",$value:{value:80,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 80px"},s15:{$type:"dimension",$value:{value:15,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 15px"},s28:{$type:"dimension",$value:{value:28,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 28px"},s14:{$type:"dimension",$value:{value:14,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 14px"},s6:{$type:"dimension",$value:{value:6,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 6px"},s9:{$type:"dimension",$value:{value:9,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 9px"},s0p5:{$type:"dimension",$value:{value:.5,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 0.5px"},s7:{$type:"dimension",$value:{value:7,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 7px"}},layer:{local:{s2:{$type:"number",$value:2,$description:"\u5171\u4EAB layer.local \u523B\u5EA6 2"},s3:{$type:"number",$value:3,$description:"\u5171\u4EAB layer.local \u523B\u5EA6 3"},s1100:{$type:"number",$value:1100,$description:"\u5171\u4EAB layer.local \u523B\u5EA6 1100"},s5:{$type:"number",$value:5,$description:"\u5171\u4EAB layer.local \u523B\u5EA6 5"},s10:{$type:"number",$value:10,$description:"\u5171\u4EAB layer.local \u523B\u5EA6 10"}}},lineClamp:{s4:{$type:"number",$value:4,$description:"\u5171\u4EAB lineClamp \u523B\u5EA6 4"},s2:{$type:"number",$value:2,$description:"\u5171\u4EAB lineClamp \u523B\u5EA6 2"}}}},semantic:{color:{surface:{page:{dark:{$type:"color",$value:"{seed.ui.color.page}",$description:"surface.page\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.965,.973,.988],hex:"#F6F8FC"},$description:"\u6D45\u8272\u9875\u9762\u80CC\u666F"}},default:{dark:{$type:"color",$value:"{seed.ui.color.surface}",$description:"surface.default\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[1,1,1],hex:"#FFFFFF"},$description:"\u6D45\u8272\u9ED8\u8BA4\u8868\u9762"}},raised:{dark:{$type:"color",$value:"{seed.ui.color.elevated}",$description:"surface.raised\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[1,1,1],hex:"#FFFFFF"},$description:"\u6D45\u8272\u62AC\u5347\u8868\u9762"}},control:{dark:{$type:"color",$value:"{seed.ui.color.control}",$description:"surface.control\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.0588,.0902,.1608],hex:"#0F172A",alpha:.06},$description:"\u6D45\u8272\u63A7\u4EF6\u8868\u9762"}},header:{dark:{$type:"color",$value:"{seed.ui.color.header}",$description:"header-background"},light:{$type:"color",$value:{colorSpace:"srgb",components:[1,1,1],hex:"#FFFFFF"},$description:"\u6D45\u8272\u5934\u90E8\u8868\u9762"}},detail:{dark:{$type:"color",$value:"{seed.ui.color.detail}",$description:"sidebar-background"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.949,.961,.98],hex:"#F2F5FA"},$description:"\u6D45\u8272\u8BE6\u60C5\u8868\u9762"}}},text:{primary:{dark:{$type:"color",$value:"{seed.ui.color.foreground}",$description:"text.primary\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.0824,.1255,.2],hex:"#152033"},$description:"\u6D45\u8272\u4E3B\u6587\u672C"}},secondary:{dark:{$type:"color",$value:"{seed.ui.color.muted}",$description:"text.secondary\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.2902,.3333,.4078],hex:"#4A5568"},$description:"\u6D45\u8272\u6B21\u7EA7\u6587\u672C"}},tertiary:{dark:{$type:"color",$value:"{seed.ui.color.subtle}",$description:"text.tertiary\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.4078,.451,.5255],hex:"#687386"},$description:"\u6D45\u8272\u4E09\u7EA7\u6587\u672C"}},onAction:{dark:{$type:"color",$value:"{semantic.color.text.primary.dark}",$description:"\u4E3B\u64CD\u4F5C\u80CC\u666F\u4E0A\u7684\u6587\u5B57"},light:{$type:"color",$value:{colorSpace:"srgb",components:[1,1,1],hex:"#FFFFFF"},$description:"\u6D45\u8272\u4E3B\u64CD\u4F5C\u80CC\u666F\u4E0A\u7684\u6587\u5B57"}}},brand:{accent:{dark:{$type:"color",$value:"{seed.ui.color.primary}",$description:"brand.accent\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.1922,.3647,.8627],hex:"#315DDC"},$description:"\u6D45\u8272\u54C1\u724C\u4E3B\u8272"}},accentHover:{dark:{$type:"color",$value:"{seed.ui.color.primaryHover}",$description:"brand.accentHover\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.1451,.2824,.7137],hex:"#2548B6"},$description:"\u6D45\u8272\u54C1\u724C\u60AC\u505C\u8272"}},secondary:{dark:{$type:"color",$value:"{seed.ui.color.violet}",$description:"brand.secondary\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.4392,.2745,.851],hex:"#7046D9"},$description:"\u6D45\u8272\u54C1\u724C\u8F85\u52A9\u8272"}}},status:{danger:{dark:{$type:"color",$value:"{seed.ui.color.danger}",$description:"status.danger\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.7373,.2157,.2706],hex:"#BC3745"},$description:"\u6D45\u8272\u5371\u9669\u72B6\u6001"}},dangerSurface:{dark:{$type:"color",$value:"{seed.ui.color.dangerBackground}",$description:"status.dangerSurface\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.9922,.9255,.9333],hex:"#FDEBED"},$description:"\u6D45\u8272\u5371\u9669\u72B6\u6001\u8868\u9762"}},success:{dark:{$type:"color",$value:"{seed.ui.color.success}",$description:"status.success\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.0588,.4784,.3255],hex:"#0F7A53"},$description:"\u6D45\u8272\u6210\u529F\u72B6\u6001"}}},border:{default:{dark:{$type:"color",$value:"{seed.ui.color.border}",$description:"border.default\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.0588,.0902,.1608],hex:"#0F172A",alpha:.14},$description:"\u6D45\u8272\u9ED8\u8BA4\u8FB9\u6846"}},active:{dark:{$type:"color",$value:"{seed.ui.color.activeBorder}",$description:"\u6FC0\u6D3B\u63A7\u4EF6\u63CF\u8FB9\uFF1B\u4E0E\u9009\u4E2D\u80CC\u666F\u914D\u5957\uFF0C\u53EF\u7531\u4E3B\u9898\u8986\u76D6"},light:{$type:"color",$value:"{seed.ui.color.activeBorder}",$description:"\u6D45\u8272\u6FC0\u6D3B\u63A7\u4EF6\u63CF\u8FB9"}}},scrim:{media:{dark:{$type:"color",$value:"{seed.ui.color.info}",$description:"scrim.media\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.0588,.0902,.1608],hex:"#0F172A",alpha:.72},$description:"\u6D45\u8272\u5A92\u4F53\u906E\u7F69"}},backdrop:{dark:{$type:"color",$value:"{seed.ui.color.overlay}",$description:"scrim.backdrop\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.0588,.0902,.1608],hex:"#0F172A",alpha:.45},$description:"\u6D45\u8272\u80CC\u666F\u906E\u7F69"}},preview:{dark:{$type:"color",$value:{colorSpace:"srgb",components:[0,0,0],hex:"#000000",alpha:.65},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.0588,.0902,.1608],hex:"#0F172A",alpha:.58},$description:"\u6D45\u8272\u9884\u89C8\u906E\u7F69"}}},primary:{dark:{$type:"color",$value:"{seed.ui.color.primaryAccessible}",$description:"\u4E3B\u64CD\u4F5C\u8272\uFF0C\u9700\u4E0E onAction \u9A8C\u8BC1\u5BF9\u6BD4\u5EA6"},light:{$type:"color",$value:"{semantic.color.brand.accent.light}",$description:"\u6D45\u8272\u4E3B\u64CD\u4F5C\u8272"}},focus:{ring:{dark:{$type:"color",$value:"{semantic.color.primary.dark}",$description:"\u952E\u76D8\u7126\u70B9\u8272\uFF0C\u53EF\u72EC\u7ACB\u8986\u76D6"},light:{$type:"color",$value:"{semantic.color.brand.accent.light}",$description:"\u6D45\u8272\u952E\u76D8\u7126\u70B9\u8272"}}},action:{primaryHover:{dark:{$type:"color",$value:"{semantic.color.primary.dark}",$description:"\u4E3B\u64CD\u4F5C\u60AC\u505C\u72B6\u6001"},light:{$type:"color",$value:"{semantic.color.brand.accentHover.light}",$description:"\u6D45\u8272\u4E3B\u64CD\u4F5C\u60AC\u505C\u72B6\u6001"}}},effect:{start:{dark:{$type:"color",$value:"{seed.ui.color.blueGlow}",$description:"\u7279\u6548\u8272\u6E90\uFF1BShader \u4F7F\u7528\u7EAF\u8272\u4E0E\u72EC\u7ACB\u5F3A\u5EA6"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.1765,.4196,.9216],hex:"#2D6BEA",alpha:.3},$description:"\u6D45\u8272\u7279\u6548\u8D77\u59CB\u8272"}},end:{dark:{$type:"color",$value:"{seed.ui.color.violetGlow}",$description:"\u7279\u6548\u8272\u6E90\uFF1BShader \u4F7F\u7528\u7EAF\u8272\u4E0E\u72EC\u7ACB\u5F3A\u5EA6"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.502,.3373,.9098],hex:"#8056E8",alpha:.42},$description:"\u6D45\u8272\u7279\u6548\u7ED3\u675F\u8272"}},lightEdgeStart:{dark:{$type:"color",$value:"{seed.ui.color.lightEdgeBlue}",$description:"\u7279\u6548\u8272\u6E90\uFF1BShader \u4F7F\u7528\u7EAF\u8272\u4E0E\u72EC\u7ACB\u5F3A\u5EA6"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.1412,.4549,.9412],hex:"#2473F0"},$description:"\u6D45\u8272 LightEdge \u8D77\u59CB\u8272"}}},sample:{inkLight:{$type:"color",$value:"{seed.ui.color.white}",$description:"sample-ink-light"},inkDark:{$type:"color",$value:"{seed.ui.color.black}",$description:"sample-ink-dark"}}},font:{body:{$type:"fontFamily",$value:["system-ui","sans-serif"],$description:"\u6B63\u6587\u4E0E\u63A7\u4EF6\u5B57\u4F53"},size:{xs:{$type:"dimension",$value:{value:12,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 12px"},ui11:{$type:"dimension",$value:{value:11,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 11px"},ui17:{$type:"dimension",$value:{value:17,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 17px"},sm:{$type:"dimension",$value:{value:14,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 14px"},ui22:{$type:"dimension",$value:{value:22,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 22px"},xl:{$type:"dimension",$value:{value:20,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 20px"},ui10:{$type:"dimension",$value:{value:10,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 10px"},lg:{$type:"dimension",$value:{value:18,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 18px"},ui28:{$type:"dimension",$value:{value:28,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 28px"},ui42:{$type:"dimension",$value:{value:42,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 42px"},base:{$type:"dimension",$value:{value:16,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 16px"},ui15:{$type:"dimension",$value:{value:15,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 15px"},ui21:{$type:"dimension",$value:{value:21,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 21px"},ui13:{$type:"dimension",$value:{value:13,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 13px"},"4xl":{$type:"dimension",$value:{value:36,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 36px"},"3xl":{$type:"dimension",$value:{value:30,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 30px"},ui9:{$type:"dimension",$value:{value:9,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 9px"}}},ui:{control:{height:{sm:{$type:"dimension",$value:{value:28,unit:"px"},$description:"sm \u63A7\u4EF6\u9AD8\u5EA6"},md:{$type:"dimension",$value:{value:34,unit:"px"},$description:"md \u63A7\u4EF6\u9AD8\u5EA6"},lg:{$type:"dimension",$value:{value:42,unit:"px"},$description:"lg \u63A7\u4EF6\u9AD8\u5EA6"}},paddingInline:{sm:{$type:"dimension",$value:"{seed.ui.space.s10}",$description:"sm \u63A7\u4EF6\u6A2A\u5411\u7559\u767D"},md:{$type:"dimension",$value:"{seed.ui.space.s18}",$description:"md \u63A7\u4EF6\u6A2A\u5411\u7559\u767D"},lg:{$type:"dimension",$value:"{seed.ui.space.s22}",$description:"lg \u63A7\u4EF6\u6A2A\u5411\u7559\u767D"}}},radius:{control:{$type:"dimension",$value:"{seed.ui.radius.r24}",$description:"control \u5706\u89D2\u8BED\u4E49\uFF0C\u53EF\u72EC\u7ACB\u8986\u76D6"},container:{$type:"dimension",$value:"{seed.ui.radius.r16}",$description:"container \u5706\u89D2\u8BED\u4E49\uFF0C\u53EF\u72EC\u7ACB\u8986\u76D6"},content:{$type:"dimension",$value:"{seed.ui.radius.r12}",$description:"content \u5706\u89D2\u8BED\u4E49\uFF0C\u53EF\u72EC\u7ACB\u8986\u76D6"},pill:{$type:"dimension",$value:"{seed.ui.radius.r999}",$description:"pill \u5706\u89D2\u8BED\u4E49\uFF0C\u53EF\u72EC\u7ACB\u8986\u76D6"}},spacing:{fieldGap:{$type:"dimension",$value:"{seed.ui.space.s6}",$description:"fieldGap \u5171\u4EAB\u95F4\u8DDD"},controlGap:{$type:"dimension",$value:"{seed.ui.space.s6}",$description:"controlGap \u5171\u4EAB\u95F4\u8DDD"},sectionGap:{$type:"dimension",$value:"{seed.ui.space.s24}",$description:"sectionGap \u5171\u4EAB\u95F4\u8DDD"},surfacePadding:{$type:"dimension",$value:"{seed.ui.space.s16}",$description:"surfacePadding \u5171\u4EAB\u95F4\u8DDD"},pagePadding:{$type:"dimension",$value:"{seed.ui.space.s14}",$description:"pagePadding \u5171\u4EAB\u95F4\u8DDD"}},icon:{size:{sm:{$type:"dimension",$value:"{seed.ui.size.s14}",$description:"sm \u56FE\u6807\u5C3A\u5BF8"},md:{$type:"dimension",$value:"{seed.ui.size.s16}",$description:"md \u56FE\u6807\u5C3A\u5BF8"},lg:{$type:"dimension",$value:"{seed.ui.size.s20}",$description:"lg \u56FE\u6807\u5C3A\u5BF8"},xl:{$type:"dimension",$value:"{seed.ui.size.s24}",$description:"xl \u56FE\u6807\u5C3A\u5BF8"}},target:{sm:{$type:"dimension",$value:"{seed.ui.size.s24}",$description:"sm \u56FE\u6807\u70B9\u51FB\u533A\u57DF"},md:{$type:"dimension",$value:"{seed.ui.size.s28}",$description:"md \u56FE\u6807\u70B9\u51FB\u533A\u57DF"},lg:{$type:"dimension",$value:"{seed.ui.size.s36}",$description:"lg \u56FE\u6807\u70B9\u51FB\u533A\u57DF"}}},opacity:{disabled:{$type:"number",$value:.5,$description:"disabled \u5171\u4EAB\u72B6\u6001\u900F\u660E\u5EA6"},busy:{$type:"number",$value:.8,$description:"busy \u5171\u4EAB\u72B6\u6001\u900F\u660E\u5EA6"}},motion:{pressDuration:{$type:"duration",$value:"{seed.ui.duration.s140}",$description:"pressDuration \u52A8\u6548\u65F6\u957F"},popupDuration:{$type:"duration",$value:"{seed.ui.duration.s180}",$description:"popupDuration \u52A8\u6548\u65F6\u957F"},revealDuration:{$type:"duration",$value:"{seed.ui.duration.s240}",$description:"revealDuration \u52A8\u6548\u65F6\u957F"},spinnerDuration:{$type:"duration",$value:"{seed.ui.duration.s800}",$description:"spinnerDuration \u52A8\u6548\u65F6\u957F"},pressedScale:{$type:"number",$value:.97,$description:"\u6309\u4E0B\u4E0E\u6D6E\u5C42\u8FDB\u5165\u7F29\u653E"},hoverBrightness:{$type:"number",$value:1.14,$description:"\u6309\u94AE\u60AC\u505C\u4EAE\u5EA6"}},glass:{blur:{$type:"dimension",$value:{value:14,unit:"px"},$description:"\u901A\u7528\u6BDB\u73BB\u7483\u6A21\u7CCA\u534A\u5F84"},saturation:{$type:"number",$value:1.25,$description:"\u901A\u7528\u6BDB\u73BB\u7483\u9971\u548C\u5EA6"}}}},component:{chart:{radar:{grid:{$type:"color",$value:"{semantic.color.border.default.dark}",$description:"\u96F7\u8FBE\u56FE\u7F51\u683C\u7EBF"},axis:{$type:"color",$value:"{semantic.color.border.default.dark}",$description:"\u96F7\u8FBE\u56FE\u7EF4\u5EA6\u8F74\u7EBF"},fillStart:{$type:"color",$value:"{semantic.color.brand.accent.dark}",$description:"\u96F7\u8FBE\u56FE\u6E10\u53D8\u8D77\u59CB\u8272\u548C\u8F6E\u5ED3"},fillEnd:{$type:"color",$value:"{semantic.color.brand.secondary.dark}",$description:"\u96F7\u8FBE\u56FE\u6E10\u53D8\u7ED3\u675F\u8272"},glow:{$type:"color",$value:"{semantic.color.brand.secondary.dark}",$description:"\u96F7\u8FBE\u56FE\u67D4\u5149"},label:{$type:"color",$value:"{semantic.color.text.secondary.dark}",$description:"\u96F7\u8FBE\u56FE\u7EF4\u5EA6\u6807\u7B7E"},value:{$type:"color",$value:"{semantic.color.text.primary.dark}",$description:"\u96F7\u8FBE\u56FE\u4E2D\u5FC3\u503C"}}},ui:{page:{$type:"color",$value:"{semantic.color.surface.page.dark}",$description:"surface.page\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},surface:{$type:"color",$value:"{semantic.color.surface.default.dark}",$description:"surface.default\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},elevated:{$type:"color",$value:"{semantic.color.surface.raised.dark}",$description:"surface.raised\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},control:{$type:"color",$value:"{semantic.color.surface.control.dark}",$description:"surface.control\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},foreground:{$type:"color",$value:"{semantic.color.text.primary.dark}",$description:"text.primary\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},muted:{$type:"color",$value:"{semantic.color.text.secondary.dark}",$description:"text.secondary\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},subtle:{$type:"color",$value:"{semantic.color.text.tertiary.dark}",$description:"text.tertiary\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},primary:{$type:"color",$value:"{semantic.color.brand.accent.dark}",$description:"brand.accent\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},primaryHover:{$type:"color",$value:"{semantic.color.brand.accentHover.dark}",$description:"brand.accentHover\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},violet:{$type:"color",$value:"{semantic.color.brand.secondary.dark}",$description:"brand.secondary\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},danger:{$type:"color",$value:"{semantic.color.status.danger.dark}",$description:"status.danger\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},dangerBackground:{$type:"color",$value:"{semantic.color.status.dangerSurface.dark}",$description:"status.dangerSurface\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},success:{$type:"color",$value:"{semantic.color.status.success.dark}",$description:"status.success\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},border:{$type:"color",$value:"{semantic.color.border.default.dark}",$description:"border.default\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},info:{$type:"color",$value:"{semantic.color.scrim.media.dark}",$description:"scrim.media\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},overlay:{$type:"color",$value:"{semantic.color.scrim.backdrop.dark}",$description:"scrim.backdrop\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},focus:{$type:"color",$value:"{semantic.color.focus.ring.dark}",$description:"\u7126\u70B9\u73AF\u4E0E\u805A\u7126\u63CF\u8FB9"},button:{primary:{background:{$type:"color",$value:"{semantic.color.primary.dark}",$description:"\u4E3B\u6309\u94AE\u80CC\u666F"},hover:{$type:"color",$value:"{semantic.color.action.primaryHover.dark}",$description:"\u4E3B\u6309\u94AE\u60AC\u505C\u80CC\u666F"},foreground:{$type:"color",$value:"{semantic.color.text.onAction.dark}",$description:"\u4E3B\u64CD\u4F5C\u6587\u5B57"}},height:{sm:{$type:"dimension",$value:{value:28,unit:"px"},$description:".monkeys-ui-button[data-size=sm] min-height"},lg:{$type:"dimension",$value:{value:42,unit:"px"},$description:".monkeys-ui-button[data-size=lg] min-height"}},glass:{blur:{$type:"dimension",$value:"{semantic.ui.glass.blur}",$description:"Inner Light Edge \u6309\u94AE\u73BB\u7483 blur"},saturation:{$type:"number",$value:"{semantic.ui.glass.saturation}",$description:"Inner Light Edge \u6309\u94AE\u73BB\u7483 saturation"},inactiveOpacity:{$type:"number",$value:.45,$description:"\u672A\u9009\u4E2D\u73BB\u7483\u5207\u6362\u6309\u94AE\u7684\u4E0D\u900F\u660E\u5EA6"}},gap:{$type:"dimension",$value:"{semantic.ui.spacing.controlGap}",$description:"button gap \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"},paddingInline:{sm:{$type:"dimension",$value:"{semantic.ui.control.paddingInline.sm}",$description:"button paddingInline.sm \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"},md:{$type:"dimension",$value:"{semantic.ui.control.paddingInline.md}",$description:"button paddingInline.md \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"},lg:{$type:"dimension",$value:"{semantic.ui.control.paddingInline.lg}",$description:"button paddingInline.lg \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"}},paddingBlock:{$type:"dimension",$value:"{component.ui.density.default.buttonPaddingBlock}",$description:"\u9ED8\u8BA4\u6309\u94AE\u7EB5\u5411\u7559\u767D\uFF1B\u5C3A\u5BF8\u53D8\u4F53\u53EF\u8986\u76D6"}},transparent:{$type:"color",$value:"{seed.ui.color.transparent}",$description:"transparent"},"header-background":{$type:"color",$value:"{semantic.color.surface.header.dark}",$description:"\u517C\u5BB9\u989C\u8272\u51FA\u53E3"},"sidebar-background":{$type:"color",$value:"{semantic.color.surface.detail.dark}",$description:"\u517C\u5BB9\u989C\u8272\u51FA\u53E3"},sidebar:{surface:{$type:"color",$value:"{semantic.color.surface.page.dark}",$description:"Sidebar \u6DF1\u8272\u5BFC\u822A\u9762\u677F\u80CC\u666F"},foreground:{$type:"color",$value:"{semantic.color.text.secondary.dark}",$description:"Sidebar \u672A\u9009\u4E2D\u9879\u6587\u5B57\u4E0E\u56FE\u6807"},activeForeground:{$type:"color",$value:"{semantic.color.text.primary.dark}",$description:"Sidebar \u9009\u4E2D\u9879\u6587\u5B57\u4E0E\u56FE\u6807\uFF1B\u5149\u6548\u590D\u7528 Button lightEdge token"},borderColor:{$type:"color",$value:"{semantic.color.border.default.dark}",$description:"Sidebar \u63CF\u8FB9\u4E0E\u5B50\u9879\u5F15\u5BFC\u7EBF\u57FA\u7840\u8272"},borderStart:{$type:"color",$value:"{semantic.color.effect.start.dark}",$description:"Sidebar \u5916\u5C42\u6E10\u53D8\u63CF\u8FB9\u8D77\u59CB\u8272"},borderEnd:{$type:"color",$value:"{semantic.color.effect.end.dark}",$description:"Sidebar \u5916\u5C42\u6E10\u53D8\u63CF\u8FB9\u7ED3\u675F\u8272"},radius:{$type:"dimension",$value:"{seed.ui.radius.r24}",$description:"Sidebar \u5916\u5C42\u9762\u677F\u5706\u89D2"},itemRadius:{$type:"dimension",$value:"{semantic.ui.radius.content}",$description:"Sidebar \u5BFC\u822A\u9879\u5706\u89D2\uFF1BInner Light Edge \u81EA\u52A8\u9075\u5FAA\u6B64\u5F62\u72B6"},padding:{$type:"dimension",$value:"{seed.ui.space.s12}",$description:"Sidebar \u9762\u677F\u5185\u8FB9\u8DDD"},itemGap:{$type:"dimension",$value:"{seed.ui.space.s16}",$description:"Sidebar \u4E00\u7EA7\u5BFC\u822A\u9879\u95F4\u8DDD"},itemHeight:{$type:"dimension",$value:"{seed.ui.size.s56}",$description:"Sidebar \u4E00\u7EA7\u9879\u6700\u5C0F\u9AD8\u5EA6\uFF1B\u957F\u6587\u5B57\u53EF\u4EE5\u589E\u9AD8"},childHeight:{$type:"dimension",$value:"{seed.ui.size.s48}",$description:"Sidebar \u5B50\u9879\u6700\u5C0F\u9AD8\u5EA6"},itemPadding:{$type:"dimension",$value:"{semantic.ui.spacing.surfacePadding}",$description:"Sidebar \u5BFC\u822A\u9879\u6C34\u5E73\u5185\u8FB9\u8DDD"},iconSize:{$type:"dimension",$value:"{semantic.ui.icon.size.lg}",$description:"Sidebar \u56FE\u6807\u5C3A\u5BF8\uFF1B\u540C\u65F6\u5B9A\u4E49\u5B50\u9879\u5F15\u5BFC\u7EBF\u4F4D\u7F6E"},iconGap:{$type:"dimension",$value:"{seed.ui.space.s12}",$description:"Sidebar \u56FE\u6807\u4E0E\u6587\u5B57\u95F4\u8DDD\u53CA\u5B50\u9879\u5F15\u5BFC\u7EBF\u7559\u767D"},fontSize:{$type:"dimension",$value:"{semantic.font.size.base}",$description:"Sidebar \u5BFC\u822A\u6587\u5B57\u5B57\u53F7"},collapsedWidth:{$type:"dimension",$value:{value:136,unit:"px"},$description:"Sidebar \u7A84\u7248\u9762\u677F\u5BBD\u5EA6\uFF1B\u7531\u5BFC\u822A\u9879\u5BBD\u5EA6\u4E0E\u4E24\u4FA7\u7559\u767D\u7EC4\u6210"},expandedWidth:{$type:"dimension",$value:{value:210,unit:"px"},$description:"Sidebar \u5BBD\u7248\u5BBD\u5EA6"},collapsedItemHeight:{$type:"dimension",$value:{value:94,unit:"px"},$description:"Sidebar \u7A84\u7248\u5BFC\u822A\u9879\u9AD8\u5EA6\uFF1B\u7531\u56FE\u6807\u3001\u6587\u5B57\u548C\u70B9\u51FB\u7559\u767D\u7EC4\u6210"},collapsedItemWidth:{$type:"dimension",$value:{value:110,unit:"px"},$description:"Sidebar \u7A84\u7248\u5BFC\u822A\u9879\u5BBD\u5EA6\uFF1B\u4E0E\u7A84\u7248\u622A\u56FE\u6BD4\u4F8B\u4E00\u81F4"},collapsedIconSize:{$type:"dimension",$value:{value:32,unit:"px"},$description:"Sidebar \u7A84\u7248\u56FE\u6807\u5C3A\u5BF8"},collapsedIconGap:{$type:"dimension",$value:{value:12,unit:"px"},$description:"Sidebar \u7A84\u7248\u56FE\u6807\u4E0E\u77ED\u6807\u9898\u95F4\u8DDD"},collapsedRadius:{$type:"dimension",$value:{value:32,unit:"px"},$description:"Sidebar \u7A84\u7248\u5916\u6846\u5706\u89D2"},toggleSize:{$type:"dimension",$value:"{seed.ui.size.s32}",$description:"Sidebar \u5E95\u90E8\u5BBD\u7A84\u7248\u5207\u6362\u6309\u94AE\u5C3A\u5BF8"},surfaceTransparent:{$type:"color",$value:{colorSpace:"srgb",components:[0,0,0],alpha:0},$description:"Sidebar \u5E95\u90E8\u5207\u6362\u6309\u94AE\u6E10\u9690\u5C42\u900F\u660E\u7AEF"}},"sample-ink-light":{$type:"color",$value:"{semantic.color.sample.inkLight}",$description:"\u517C\u5BB9\u989C\u8272\u51FA\u53E3"},"sample-ink-dark":{$type:"color",$value:"{semantic.color.sample.inkDark}",$description:"\u517C\u5BB9\u989C\u8272\u51FA\u53E3"},previewInfo:{$type:"color",$value:"{semantic.color.scrim.preview.dark}",$description:"\u9884\u89C8\u4FE1\u606F\u8868\u9762\uFF1B\u4FDD\u7559\u5F53\u524D 65% alpha"},blueGlow:{$type:"color",$value:"{seed.ui.color.blueGlow}",$description:"\u88C5\u9970\u8272\u4E0E\u900F\u660E\u5EA6\uFF0CShader \u53E6\u53D6\u7EAF\u8272"},violetGlow:{$type:"color",$value:"{seed.ui.color.violetGlow}",$description:"\u88C5\u9970\u8272\u4E0E\u900F\u660E\u5EA6\uFF0CShader \u53E6\u53D6\u7EAF\u8272"},font:{$type:"fontFamily",$value:"{semantic.font.body}",$description:"\u5B57\u4F53\u517C\u5BB9\u5165\u53E3"},radius:{panel:{$type:"dimension",$value:"{semantic.ui.radius.container}",$description:"panel \u5706\u89D2\u51FA\u53E3"},card:{$type:"dimension",$value:"{semantic.ui.radius.container}",$description:"card \u5706\u89D2\u51FA\u53E3"},control:{$type:"dimension",$value:"{semantic.ui.radius.control}",$description:"control \u5706\u89D2\u51FA\u53E3"},info:{$type:"dimension",$value:"{semantic.ui.radius.content}",$description:"info \u5706\u89D2\u51FA\u53E3"},scale:{s24:{$type:"dimension",$value:"{seed.ui.radius.r24}",$description:"\u5171\u4EAB\u5706\u89D2\u523B\u5EA6"},s999:{$type:"dimension",$value:"{seed.ui.radius.r999}",$description:"\u5171\u4EAB\u5706\u89D2\u523B\u5EA6"},s12:{$type:"dimension",$value:"{seed.ui.radius.r12}",$description:"\u5171\u4EAB\u5706\u89D2\u523B\u5EA6"},s8:{$type:"dimension",$value:"{seed.ui.radius.scale.s8}",$description:"radius.scale \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s4:{$type:"dimension",$value:"{seed.ui.radius.scale.s4}",$description:"radius.scale \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s16:{$type:"dimension",$value:"{seed.ui.radius.r16}",$description:"\u5171\u4EAB\u5706\u89D2\u523B\u5EA6"},s10:{$type:"dimension",$value:"{seed.ui.radius.scale.s10}",$description:"radius.scale \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s20:{$type:"dimension",$value:"{seed.ui.radius.scale.s20}",$description:"radius.scale \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s2:{$type:"dimension",$value:"{seed.ui.radius.scale.s2}",$description:"radius.scale \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s18:{$type:"dimension",$value:"{seed.ui.radius.scale.s18}",$description:"radius.scale \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}}},motion:{press:{$type:"duration",$value:"{semantic.ui.motion.pressDuration}",$description:"\u517C\u5BB9\u6309\u4E0B\u65F6\u957F"},popup:{$type:"duration",$value:"{semantic.ui.motion.popupDuration}",$description:"\u517C\u5BB9\u6D6E\u5C42\u65F6\u957F"},ease:{$type:"cubicBezier",$value:[.2,.8,.2,1],$description:"component.ui.motion.ease"},pressedScale:{$type:"number",$value:"{semantic.ui.motion.pressedScale}",$description:"\u6309\u94AE\u4E0E\u6D6E\u5C42\u7F29\u653E"},hoverBrightness:{$type:"number",$value:"{semantic.ui.motion.hoverBrightness}",$description:"\u6309\u94AE\u60AC\u505C\u4EAE\u5EA6"}},controlHeight:{$type:"dimension",$value:"{semantic.ui.control.height.md}",$description:"\u5E38\u89C4\u63A7\u4EF6\u9AD8\u5EA6\u517C\u5BB9\u5165\u53E3"},layout:{stackGap:{$type:"dimension",$value:"{seed.ui.space.s16}",$description:"stackGap \u5E03\u5C40\u9ED8\u8BA4\u503C\uFF1B\u5B9E\u4F8B\u5C5E\u6027\u4F18\u5148"},sidebarWidth:{$type:"dimension",$value:{value:252,unit:"px"},$description:"sidebarWidth \u5E03\u5C40\u9ED8\u8BA4\u503C\uFF1B\u5B9E\u4F8B\u5C5E\u6027\u4F18\u5148"},cardMinWidth:{$type:"dimension",$value:{value:178,unit:"px"},$description:"cardMinWidth \u5E03\u5C40\u9ED8\u8BA4\u503C\uFF1B\u5B9E\u4F8B\u5C5E\u6027\u4F18\u5148"},gridGap:{$type:"dimension",$value:"{seed.ui.space.s20}",$description:"gridGap \u5E03\u5C40\u9ED8\u8BA4\u503C\uFF1B\u5B9E\u4F8B\u5C5E\u6027\u4F18\u5148"}},layer:{overlayBase:{$type:"number",$value:1200,$description:"overlayBase \u5F39\u5C42\u5C42\u7EA7"},nestingStep:{$type:"number",$value:10,$description:"nestingStep \u5F39\u5C42\u5C42\u7EA7"},contentOffset:{$type:"number",$value:1,$description:"contentOffset \u5F39\u5C42\u5C42\u7EA7"},local:{s2:{$type:"number",$value:"{seed.ui.layer.local.s2}",$description:"layer.local \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s3:{$type:"number",$value:"{seed.ui.layer.local.s3}",$description:"layer.local \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1100:{$type:"number",$value:"{seed.ui.layer.local.s1100}",$description:"layer.local \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s5:{$type:"number",$value:"{seed.ui.layer.local.s5}",$description:"layer.local \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s10:{$type:"number",$value:"{seed.ui.layer.local.s10}",$description:"layer.local \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}}},effect:{hostHeight:{$type:"dimension",$value:{value:240,unit:"px"},$description:"\u72EC\u7ACB\u7279\u6548\u9ED8\u8BA4\u9AD8\u5EA6"},chroma:{intensity:{$type:"number",$value:.7,$description:"chroma \u7684 intensity\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},momentum:{$type:"number",$value:23,$description:"chroma \u7684 momentum\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},radius:{$type:"number",$value:6,$description:"chroma \u7684 radius\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"}},aurora:{curtainCount:{$type:"number",$value:2,$description:"aurora \u7684 curtainCount\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},height:{$type:"number",$value:81,$description:"aurora \u7684 height\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},intensity:{$type:"number",$value:64,$description:"aurora \u7684 intensity\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},rayDensity:{$type:"number",$value:12,$description:"aurora \u7684 rayDensity\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},speed:{$type:"number",$value:10,$description:"aurora \u7684 speed\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},waviness:{$type:"number",$value:39,$description:"aurora \u7684 waviness\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},rotation:{$type:"number",$value:180,$description:"aurora \u7684 rotation\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"}},lightEdge:{thickness:{$type:"number",$value:.48,$description:"lightEdge \u7684 thickness\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},softness:{$type:"number",$value:1,$description:"lightEdge \u7684 softness\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},intensity:{$type:"number",$value:.9,$description:"lightEdge \u7684 intensity\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},bloom:{$type:"number",$value:.2,$description:"lightEdge \u7684 bloom\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},spots:{$type:"number",$value:1,$description:"lightEdge \u7684 spots\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},spotSize:{$type:"number",$value:.6,$description:"lightEdge \u7684 spotSize\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},smoke:{$type:"number",$value:.12,$description:"lightEdge \u7684 smoke\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},smokeSize:{$type:"number",$value:.65,$description:"lightEdge \u7684 smokeSize\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},speed:{$type:"number",$value:.45,$description:"lightEdge \u7684 speed\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},glowBlur:{$type:"number",$value:4.5,$description:"lightEdge \u7684 glowBlur\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},flowBlur:{$type:"number",$value:1,$description:"lightEdge \u7684 flowBlur\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},shapeInset:{$type:"number",$value:1.5,$description:"lightEdge \u7684 shapeInset\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"}},bottomGlow:{referenceWidth:{$type:"dimension",$value:{value:730,unit:"px"},$description:"bottomGlow \u9AD8\u5EA6\u4E0E\u6A21\u7CCA\u53C2\u6570\u5BF9\u5E94\u7684\u57FA\u51C6\u5BB9\u5668\u5BBD\u5EA6\uFF1B\u5B9E\u9645\u5149\u6655\u968F\u5BB9\u5668\u5BBD\u5EA6\u7B49\u6BD4\u7F29\u653E"},intensity:{$type:"number",$value:.95,$description:"bottomGlow \u5E95\u90E8\u5149\u6655\u5F3A\u5EA6"},height:{$type:"dimension",$value:{value:260,unit:"px"},$description:"bottomGlow \u5149\u6655\u533A\u57DF\u9AD8\u5EA6"},blur:{$type:"dimension",$value:{value:28,unit:"px"},$description:"bottomGlow \u67D4\u5316\u6A21\u7CCA\u534A\u5F84"},duration:{$type:"duration",$value:{value:9,unit:"s"},$description:"bottomGlow \u5149\u6655\u6F02\u79FB\u52A8\u753B\u65F6\u957F"}}},typography:{size:{s12:{$type:"dimension",$value:"{semantic.font.size.xs}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s11:{$type:"dimension",$value:"{semantic.font.size.ui11}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s17:{$type:"dimension",$value:"{semantic.font.size.ui17}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s14:{$type:"dimension",$value:"{semantic.font.size.sm}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s22:{$type:"dimension",$value:"{semantic.font.size.ui22}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s20:{$type:"dimension",$value:"{semantic.font.size.xl}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s10:{$type:"dimension",$value:"{semantic.font.size.ui10}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s18:{$type:"dimension",$value:"{semantic.font.size.lg}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s28:{$type:"dimension",$value:"{semantic.font.size.ui28}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s42:{$type:"dimension",$value:"{semantic.font.size.ui42}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s16:{$type:"dimension",$value:"{semantic.font.size.base}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s15:{$type:"dimension",$value:"{semantic.font.size.ui15}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s21:{$type:"dimension",$value:"{semantic.font.size.ui21}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s13:{$type:"dimension",$value:"{semantic.font.size.ui13}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s36:{$type:"dimension",$value:"{semantic.font.size.4xl}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s30:{$type:"dimension",$value:"{semantic.font.size.3xl}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s9:{$type:"dimension",$value:"{semantic.font.size.ui9}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}},lineHeight:{s1p5:{$type:"number",$value:"{seed.ui.typography.lineHeight.s1p5}",$description:"typography.lineHeight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1p4:{$type:"number",$value:"{seed.ui.typography.lineHeight.s1p4}",$description:"typography.lineHeight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1p3:{$type:"number",$value:"{seed.ui.typography.lineHeight.s1p3}",$description:"typography.lineHeight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1p2:{$type:"number",$value:"{seed.ui.typography.lineHeight.s1p2}",$description:"typography.lineHeight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}},weight:{s500:{$type:"number",$value:"{seed.ui.typography.weight.s500}",$description:"typography.weight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s600:{$type:"number",$value:"{seed.ui.typography.weight.s600}",$description:"typography.weight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s700:{$type:"number",$value:"{seed.ui.typography.weight.s700}",$description:"typography.weight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s800:{$type:"number",$value:"{seed.ui.typography.weight.s800}",$description:"typography.weight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s200:{$type:"number",$value:"{seed.ui.typography.weight.s200}",$description:"typography.weight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s400:{$type:"number",$value:"{seed.ui.typography.weight.s400}",$description:"typography.weight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}}},size:{s2:{$type:"dimension",$value:"{seed.ui.size.s2}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s3:{$type:"dimension",$value:"{seed.ui.size.s3}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1:{$type:"dimension",$value:"{seed.ui.size.s1}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s28:{$type:"dimension",$value:"{seed.ui.size.s28}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s42:{$type:"dimension",$value:"{seed.ui.size.s42}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s14:{$type:"dimension",$value:"{seed.ui.size.s14}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s24:{$type:"dimension",$value:"{seed.ui.size.s24}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s18:{$type:"dimension",$value:"{seed.ui.size.s18}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s40:{$type:"dimension",$value:"{seed.ui.size.s40}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s16:{$type:"dimension",$value:"{seed.ui.size.s16}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s20:{$type:"dimension",$value:"{seed.ui.size.s20}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s22:{$type:"dimension",$value:"{seed.ui.size.s22}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s140:{$type:"dimension",$value:"{seed.ui.size.s140}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s85:{$type:"dimension",$value:"{seed.ui.size.s85}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s34:{$type:"dimension",$value:"{seed.ui.size.s34}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s320:{$type:"dimension",$value:"{seed.ui.size.s320}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s160:{$type:"dimension",$value:"{seed.ui.size.s160}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s280:{$type:"dimension",$value:"{seed.ui.size.s280}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s32:{$type:"dimension",$value:"{seed.ui.size.s32}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s53:{$type:"dimension",$value:"{seed.ui.size.s53}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s26:{$type:"dimension",$value:"{seed.ui.size.s26}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s8:{$type:"dimension",$value:"{seed.ui.size.s8}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s62:{$type:"dimension",$value:"{seed.ui.size.s62}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s10:{$type:"dimension",$value:"{seed.ui.size.s10}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s4:{$type:"dimension",$value:"{seed.ui.size.s4}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s5:{$type:"dimension",$value:"{seed.ui.size.s5}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s196:{$type:"dimension",$value:"{seed.ui.size.s196}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s480:{$type:"dimension",$value:"{seed.ui.size.s480}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1000:{$type:"dimension",$value:"{seed.ui.size.s1000}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s660:{$type:"dimension",$value:"{seed.ui.size.s660}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s48:{$type:"dimension",$value:"{seed.ui.size.s48}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s100:{$type:"dimension",$value:"{seed.ui.size.s100}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s64:{$type:"dimension",$value:"{seed.ui.size.s64}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s12:{$type:"dimension",$value:"{seed.ui.size.s12}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s6:{$type:"dimension",$value:"{seed.ui.size.s6}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s168:{$type:"dimension",$value:"{seed.ui.size.s168}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s96:{$type:"dimension",$value:"{seed.ui.size.s96}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s56:{$type:"dimension",$value:"{seed.ui.size.s56}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1p5:{$type:"dimension",$value:"{seed.ui.size.s1p5}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s220:{$type:"dimension",$value:"{seed.ui.size.s220}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s379:{$type:"dimension",$value:"{seed.ui.size.s379}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s68:{$type:"dimension",$value:"{seed.ui.size.s68}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s108:{$type:"dimension",$value:"{seed.ui.size.s108}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s70:{$type:"dimension",$value:"{seed.ui.size.s70}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s57:{$type:"dimension",$value:"{seed.ui.size.s57}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s15:{$type:"dimension",$value:"{seed.ui.size.s15}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s244:{$type:"dimension",$value:"{seed.ui.size.s244}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s78:{$type:"dimension",$value:"{seed.ui.size.s78}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s36:{$type:"dimension",$value:"{seed.ui.size.s36}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s23:{$type:"dimension",$value:"{seed.ui.size.s23}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s117:{$type:"dimension",$value:"{seed.ui.size.s117}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s110:{$type:"dimension",$value:"{seed.ui.size.s110}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s156:{$type:"dimension",$value:"{seed.ui.size.s156}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s125:{$type:"dimension",$value:"{seed.ui.size.s125}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s121:{$type:"dimension",$value:"{seed.ui.size.s121}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s127:{$type:"dimension",$value:"{seed.ui.size.s127}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s55:{$type:"dimension",$value:"{seed.ui.size.s55}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s178:{$type:"dimension",$value:"{seed.ui.size.s178}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s497:{$type:"dimension",$value:"{seed.ui.size.s497}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s37:{$type:"dimension",$value:"{seed.ui.size.s37}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s60:{$type:"dimension",$value:"{seed.ui.size.s60}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s7:{$type:"dimension",$value:"{seed.ui.size.s7}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s128:{$type:"dimension",$value:"{seed.ui.size.s128}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s290:{$type:"dimension",$value:"{seed.ui.size.s290}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s210:{$type:"dimension",$value:"{seed.ui.size.s210}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s231:{$type:"dimension",$value:"{seed.ui.size.s231}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s440:{$type:"dimension",$value:"{seed.ui.size.s440}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s9:{$type:"dimension",$value:"{seed.ui.size.s9}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s190:{$type:"dimension",$value:"{seed.ui.size.s190}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s130:{$type:"dimension",$value:"{seed.ui.size.s130}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s200:{$type:"dimension",$value:"{seed.ui.size.s200}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s150:{$type:"dimension",$value:"{seed.ui.size.s150}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s350:{$type:"dimension",$value:"{seed.ui.size.s350}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s493:{$type:"dimension",$value:"{seed.ui.size.s493}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s17:{$type:"dimension",$value:"{seed.ui.size.s17}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}},space:{s6:{$type:"dimension",$value:"{seed.ui.space.s6}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s18:{$type:"dimension",$value:"{seed.ui.space.s18}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s3:{$type:"dimension",$value:"{seed.ui.space.s3}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s10:{$type:"dimension",$value:"{seed.ui.space.s10}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s8:{$type:"dimension",$value:"{seed.ui.space.s8}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s22:{$type:"dimension",$value:"{seed.ui.space.s22}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s7:{$type:"dimension",$value:"{seed.ui.space.s7}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s14:{$type:"dimension",$value:"{seed.ui.space.s14}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s84:{$type:"dimension",$value:"{seed.ui.space.s84}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s4:{$type:"dimension",$value:"{seed.ui.space.s4}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s2:{$type:"dimension",$value:"{seed.ui.space.s2}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s12:{$type:"dimension",$value:"{seed.ui.space.s12}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s5:{$type:"dimension",$value:"{seed.ui.space.s5}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s26:{$type:"dimension",$value:"{seed.ui.space.s26}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s16:{$type:"dimension",$value:"{seed.ui.space.s16}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s24:{$type:"dimension",$value:"{seed.ui.space.s24}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s30:{$type:"dimension",$value:"{seed.ui.space.s30}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1:{$type:"dimension",$value:"{seed.ui.space.s1}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s15:{$type:"dimension",$value:"{seed.ui.space.s15}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s13:{$type:"dimension",$value:"{seed.ui.space.s13}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s20:{$type:"dimension",$value:"{seed.ui.space.s20}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s29:{$type:"dimension",$value:"{seed.ui.space.s29}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s9:{$type:"dimension",$value:"{seed.ui.space.s9}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s11:{$type:"dimension",$value:"{seed.ui.space.s11}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s115:{$type:"dimension",$value:"{seed.ui.space.s115}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s34:{$type:"dimension",$value:"{seed.ui.space.s34}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s40:{$type:"dimension",$value:"{seed.ui.space.s40}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s28:{$type:"dimension",$value:"{seed.ui.space.s28}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s44:{$type:"dimension",$value:"{seed.ui.space.s44}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s23:{$type:"dimension",$value:"{seed.ui.space.s23}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s70:{$type:"dimension",$value:"{seed.ui.space.s70}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s25:{$type:"dimension",$value:"{seed.ui.space.s25}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s19:{$type:"dimension",$value:"{seed.ui.space.s19}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s47:{$type:"dimension",$value:"{seed.ui.space.s47}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}},duration:{s240:{$type:"duration",$value:"{seed.ui.duration.s240}",$description:"duration \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s800:{$type:"duration",$value:"{seed.ui.duration.s800}",$description:"duration \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s180:{$type:"duration",$value:"{seed.ui.duration.s180}",$description:"duration \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s140:{$type:"duration",$value:"{seed.ui.duration.s140}",$description:"duration \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}},opacity:{s0p65:{$type:"number",$value:"{seed.ui.opacity.s0p65}",$description:"opacity \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s0p5:{$type:"number",$value:"{semantic.ui.opacity.disabled}",$description:"\u5171\u4EAB\u72B6\u6001\u900F\u660E\u5EA6"},s0p8:{$type:"number",$value:"{semantic.ui.opacity.busy}",$description:"\u5171\u4EAB\u72B6\u6001\u900F\u660E\u5EA6"},s0p4:{$type:"number",$value:"{seed.ui.opacity.s0p4}",$description:"opacity \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}},shadowSize:{s8:{$type:"dimension",$value:"{seed.ui.shadowSize.s8}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s20:{$type:"dimension",$value:"{seed.ui.shadowSize.s20}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s12:{$type:"dimension",$value:"{seed.ui.shadowSize.s12}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1:{$type:"dimension",$value:"{seed.ui.shadowSize.s1}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s4:{$type:"dimension",$value:"{seed.ui.shadowSize.s4}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s10:{$type:"dimension",$value:"{seed.ui.shadowSize.s10}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s2:{$type:"dimension",$value:"{seed.ui.shadowSize.s2}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s36:{$type:"dimension",$value:"{seed.ui.shadowSize.s36}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s5:{$type:"dimension",$value:"{seed.ui.shadowSize.s5}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s3:{$type:"dimension",$value:"{seed.ui.shadowSize.s3}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s24:{$type:"dimension",$value:"{seed.ui.shadowSize.s24}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s80:{$type:"dimension",$value:"{seed.ui.shadowSize.s80}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s15:{$type:"dimension",$value:"{seed.ui.shadowSize.s15}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s28:{$type:"dimension",$value:"{seed.ui.shadowSize.s28}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s14:{$type:"dimension",$value:"{seed.ui.shadowSize.s14}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s6:{$type:"dimension",$value:"{seed.ui.shadowSize.s6}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s9:{$type:"dimension",$value:"{seed.ui.shadowSize.s9}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s0p5:{$type:"dimension",$value:"{seed.ui.shadowSize.s0p5}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s7:{$type:"dimension",$value:"{seed.ui.shadowSize.s7}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}},lineClamp:{s4:{$type:"number",$value:"{seed.ui.lineClamp.s4}",$description:"lineClamp \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s2:{$type:"number",$value:"{seed.ui.lineClamp.s2}",$description:"lineClamp \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}},material:{control:{background:{$type:"color",$value:"{component.ui.input.background}",$description:"\u63A7\u4EF6\u5171\u7528\u5E95\u6750\uFF1A\u4EE5\u540D\u79F0\u8F93\u5165\u6846\u4E3A\u51C6\uFF0C\u517C\u5BB9\u73B0\u6709 input.background \u8986\u76D6"},border:{$type:"color",$value:"{component.ui.border}",$description:"\u63A7\u4EF6\u5171\u7528\u9876\u90E8\u67D4\u548C\u63CF\u8FB9"},highlight:{$type:"color",$value:"{component.ui.foreground}",$description:"\u63A7\u4EF6\u5171\u7528\u5E95\u90E8\u5185\u9AD8\u5149\u989C\u8272"},highlightOffset:{$type:"dimension",$value:"{component.ui.shadowSize.s5}",$description:"\u63A7\u4EF6\u5E95\u90E8\u5185\u9AD8\u5149\u5411\u4E0A\u504F\u79FB\u91CF"},highlightBlur:{$type:"dimension",$value:"{component.ui.shadowSize.s9}",$description:"\u63A7\u4EF6\u5E95\u90E8\u5185\u9AD8\u5149\u6A21\u7CCA\u534A\u5F84"},highlightSpread:{$type:"dimension",$value:"{component.ui.shadowSize.s8}",$description:"\u63A7\u4EF6\u5E95\u90E8\u5185\u9AD8\u5149\u6536\u7F29\u91CF"}}},input:{tags:{minHeight:{$type:"dimension",$value:{value:40,unit:"px"},$description:".monkeys-ui-tag-input min-height"},gap:{$type:"dimension",$value:{value:6,unit:"px"},$description:"input.tags.gap \u9ED8\u8BA4\u5C3A\u5BF8"},glass:{blur:{$type:"dimension",$value:"{seed.ui.size.s16}",$description:"\u65E7 input.tags \u6750\u8D28\u6A21\u7CCA\uFF0C\u5E93\u5185\u5DF2\u4E0D\u4F7F\u7528\uFF1B\u7EDF\u4E00\u6750\u8D28\u8BF7\u4F7F\u7528 component.ui.material.control"},saturation:{$type:"number",$value:1,$description:"\u65E7 input.tags \u6750\u8D28\u9971\u548C\u5EA6\uFF0C\u5E93\u5185\u5DF2\u4E0D\u4F7F\u7528\uFF1B\u7EDF\u4E00\u6750\u8D28\u8BF7\u4F7F\u7528 component.ui.material.control"}}},paddingInline:{$type:"dimension",$value:"{seed.ui.space.s14}",$description:"input paddingInline \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"},paddingBlock:{$type:"dimension",$value:"{seed.ui.space.s7}",$description:"input paddingBlock \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"},radius:{$type:"dimension",$value:"{semantic.ui.radius.control}",$description:"input radius \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"},background:{$type:"color",$value:"{semantic.color.surface.control.dark}",$description:"input background \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"},placeholder:{$type:"color",$value:"{semantic.color.text.secondary.dark}",$description:"input placeholder \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"},invalidBorder:{$type:"color",$value:"{semantic.color.status.danger.dark}",$description:"input invalidBorder \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"}},textarea:{minHeight:{$type:"dimension",$value:{value:85,unit:"px"},$description:".monkeys-ui-textarea min-height"}},switch:{height:{md:{$type:"dimension",$value:{value:34,unit:"px"},$description:"switch.height.md \u9ED8\u8BA4\u5C3A\u5BF8"},sm:{$type:"dimension",$value:{value:28,unit:"px"},$description:"switch.height.sm \u9ED8\u8BA4\u5C3A\u5BF8"},lg:{$type:"dimension",$value:{value:42,unit:"px"},$description:"switch.height.lg \u9ED8\u8BA4\u5C3A\u5BF8"}}},colorSlider:{thumbWidth:{$type:"dimension",$value:{value:96,unit:"px"},$description:"colorSlider.thumbWidth \u9ED8\u8BA4\u5C3A\u5BF8"},glass:{blur:{$type:"dimension",$value:"{seed.ui.size.s12}",$description:"colorSlider \u6750\u8D28\u6A21\u7CCA"},saturation:{$type:"number",$value:1.15,$description:"colorSlider \u6750\u8D28\u9971\u548C\u5EA6"}}},card:{bottomGlow:{color:{$type:"color",$value:"{semantic.color.effect.start.dark}",$description:"\u5361\u7247 BottomGlow \u84DD\u8272\u5916\u7F18\u8272\u6E90\uFF0C\u4E0E\u5171\u4EAB\u5149\u6548\u4E00\u81F4\uFF0C\u6E32\u67D3\u65F6\u4F7F\u7528\u7EAF\u8272"},opacity:{$type:"number",$value:.85,$description:"\u5361\u7247\u5E95\u90E8\u67D4\u5149\u6574\u4F53\u5F3A\u5EA6\uFF0C0 \u4E3A\u5173\u95ED"},height:{$type:"dimension",$value:"{seed.ui.size.s48}",$description:"\u5361\u7247\u5185\u5D4C BottomGlow \u5BBF\u4E3B\u9AD8\u5EA6\uFF0C\u4E0D\u5F71\u54CD\u6587\u5B57\u5E03\u5C40"},offset:{$type:"dimension",$value:"{seed.ui.size.s10}",$description:"\u5361\u7247 BottomGlow \u5411\u4E0B\u504F\u79FB\u8DDD\u79BB\uFF0C\u88C1\u6389\u7D2B\u8272\u4EAE\u82AF\uFF0C\u4EC5\u9732\u51FA\u84DD\u8272\u5916\u7F18"},blur:{$type:"dimension",$value:"{seed.ui.size.s6}",$description:"\u5361\u7247\u5E95\u90E8\u67D4\u5149\u6A21\u7CCA\u534A\u5F84"}},dragHandle:{size:{$type:"dimension",$value:"{seed.ui.size.s24}",$description:"\u5361\u7247\u62D6\u52A8\u624B\u67C4\u76F4\u5F84"},offset:{$type:"dimension",$value:"{seed.ui.size.s5}",$description:"\u5361\u7247\u62D6\u52A8\u624B\u67C4\u8DDD\u9876\u8FB9\u4E0E\u8D77\u59CB\u8FB9\u7684\u8DDD\u79BB"},iconSize:{$type:"dimension",$value:"{seed.ui.size.s16}",$description:"\u5361\u7247\u62D6\u52A8\u624B\u67C4\u516D\u70B9\u56FE\u6807\u5C3A\u5BF8"},background:{$type:"color",$value:"{semantic.color.scrim.media.dark}",$description:"\u5361\u7247\u62D6\u52A8\u624B\u67C4\u6DF1\u8272\u80CC\u666F"},foreground:{$type:"color",$value:"{semantic.color.sample.inkLight}",$description:"\u5361\u7247\u62D6\u52A8\u624B\u67C4\u56FE\u6807\u989C\u8272"}},actions:{glass:{blur:{$type:"dimension",$value:"{seed.ui.size.s12}",$description:"card.actions \u6750\u8D28\u6A21\u7CCA"},saturation:{$type:"number",$value:1.2,$description:"card.actions \u6750\u8D28\u9971\u548C\u5EA6"}}},titleFontSize:{$type:"dimension",$value:"{semantic.font.size.sm}",$description:"card titleFontSize \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"}},panel:{padding:{$type:"dimension",$value:"{semantic.ui.spacing.surfacePadding}",$description:"panel padding \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"}},field:{gap:{$type:"dimension",$value:"{semantic.ui.spacing.fieldGap}",$description:"field gap \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"}},tooltip:{delay:{$type:"duration",$value:{value:500,unit:"ms"},$description:"tooltip delay"},skipDelay:{$type:"duration",$value:{value:300,unit:"ms"},$description:"tooltip skipDelay"},sideOffset:{$type:"dimension",$value:{value:7,unit:"px"},$description:"tooltip \u4E0E\u89E6\u53D1\u5668\u7684\u95F4\u8DDD"}},scrollSurface:{hideDelay:{$type:"duration",$value:{value:700,unit:"ms"},$description:"scrollSurface hideDelay"}},menu:{sideOffset:{$type:"dimension",$value:{value:6,unit:"px"},$description:"menu \u4E0E\u89E6\u53D1\u5668\u7684\u95F4\u8DDD"}},icon:{size:{s12:{$type:"dimension",$value:"{semantic.font.size.xs}",$description:"\u5185\u7F6E\u56FE\u6807 12px\uFF0C\u53EF\u72EC\u7ACB\u4E8E\u5B57\u4F53\u8986\u76D6"},s14:{$type:"dimension",$value:"{semantic.font.size.sm}",$description:"\u5185\u7F6E\u56FE\u6807 14px\uFF0C\u53EF\u72EC\u7ACB\u4E8E\u5B57\u4F53\u8986\u76D6"},s16:{$type:"dimension",$value:"{semantic.font.size.base}",$description:"\u5185\u7F6E\u56FE\u6807 16px\uFF0C\u53EF\u72EC\u7ACB\u4E8E\u5B57\u4F53\u8986\u76D6"},s17:{$type:"dimension",$value:"{semantic.font.size.ui17}",$description:"\u5185\u7F6E\u56FE\u6807 17px\uFF0C\u53EF\u72EC\u7ACB\u4E8E\u5B57\u4F53\u8986\u76D6"},s28:{$type:"dimension",$value:"{semantic.font.size.ui28}",$description:"\u5185\u7F6E\u56FE\u6807 28px\uFF0C\u53EF\u72EC\u7ACB\u4E8E\u5B57\u4F53\u8986\u76D6"}}},density:{compact:{buttonPaddingBlock:{$type:"dimension",$value:"{seed.ui.space.s3}",$description:"compact buttonPaddingBlock \u5BC6\u5EA6\u7559\u767D"},inputPaddingBlock:{$type:"dimension",$value:"{seed.ui.space.s4}",$description:"compact inputPaddingBlock \u5BC6\u5EA6\u7559\u767D"}},default:{buttonPaddingBlock:{$type:"dimension",$value:"{seed.ui.space.s6}",$description:"default buttonPaddingBlock \u5BC6\u5EA6\u7559\u767D"},inputPaddingBlock:{$type:"dimension",$value:"{seed.ui.space.s7}",$description:"default inputPaddingBlock \u5BC6\u5EA6\u7559\u767D"}},comfortable:{buttonPaddingBlock:{$type:"dimension",$value:"{seed.ui.space.s10}",$description:"comfortable buttonPaddingBlock \u5BC6\u5EA6\u7559\u767D"},inputPaddingBlock:{$type:"dimension",$value:"{seed.ui.space.s11}",$description:"comfortable inputPaddingBlock \u5BC6\u5EA6\u7559\u767D"}}},activeBorder:{$type:"color",$value:"{semantic.color.border.active.dark}",$description:"\u63A7\u4EF6\u6FC0\u6D3B\u72B6\u6001\u63CF\u8FB9\uFF1BSegmentedMenuControl \u7B49\u9009\u4E2D\u63A7\u4EF6\u590D\u7528"},quickPromptMenu:{width:{$type:"dimension",$value:"{component.ui.size.s320}",$description:"QuickPromptMenu \u72EC\u7ACB\u6A21\u5F0F\u9ED8\u8BA4\u5BBD\u5EA6\uFF1B\u5BB9\u5668\u951A\u5B9A\u5BBD\u5EA6\u4E0E\u5B9E\u4F8B content.width \u4F18\u5148"},maxHeightRatio:{$type:"number",$value:.6,$description:"QuickPromptMenu \u5360\u89C6\u53E3\u9AD8\u5EA6\u7684\u6700\u5927\u6BD4\u4F8B\uFF0C\u53D6\u503C (0, 1]\uFF1B\u4ECD\u53D7 Radix \u53EF\u7528\u7A7A\u95F4\u7EA6\u675F"},sideOffset:{$type:"number",$value:8,$description:"QuickPromptMenu \u4E0E\u951A\u5B9A\u5BB9\u5668\u7684\u95F4\u8DDD\uFF0C\u5355\u4F4D CSS px\uFF1B\u4F9B Radix \u6570\u503C\u63A5\u53E3\u6D88\u8D39"},collisionPadding:{$type:"number",$value:12,$description:"QuickPromptMenu \u89C6\u53E3\u907F\u8BA9\u8FB9\u8DDD\uFF0C\u5355\u4F4D CSS px\uFF1B\u4F9B Radix \u6570\u503C\u63A5\u53E3\u6D88\u8D39"}}}}};var gu={seed:{ui:{color:{page:{$type:"color",$value:{colorSpace:"srgb",components:[.07450980392156863,.08235294117647059,.10196078431372549],hex:"#13151A"},$description:"seed.ui.color.page"},surface:{$type:"color",$value:{colorSpace:"srgb",components:[.09019607843137255,.10588235294117647,.15294117647058825],hex:"#171B27"},$description:"seed.ui.color.surface"},elevated:{$type:"color",$value:{colorSpace:"srgb",components:[.13333333333333333,.15294117647058825,.2196078431372549],hex:"#222738"},$description:"seed.ui.color.elevated"},foreground:{$type:"color",$value:{colorSpace:"srgb",components:[1,1,1],hex:"#FFFFFF"},$description:"seed.ui.color.foreground"},muted:{$type:"color",$value:{colorSpace:"srgb",components:[.7843137254901961,.7843137254901961,.7843137254901961],hex:"#C8C8C8"},$description:"seed.ui.color.muted"},subtle:{$type:"color",$value:{colorSpace:"srgb",components:[.6980392156862745,.6980392156862745,.6980392156862745],hex:"#B2B2B2"},$description:"seed.ui.color.subtle"},primary:{$type:"color",$value:{colorSpace:"srgb",components:[.28627450980392155,.4666666666666667,.9215686274509803],hex:"#4977EB"},$description:"seed.ui.color.primary"},lightEdgeBlue:{$type:"color",$value:{colorSpace:"srgb",components:[.25882352941176473,.5215686274509804,1],hex:"#4285FF"},$description:"seed.ui.color.lightEdgeBlue"},primaryHover:{$type:"color",$value:{colorSpace:"srgb",components:[.3803921568627451,.5450980392156862,.9568627450980393],hex:"#618BF4"},$description:"seed.ui.color.primaryHover"},violet:{$type:"color",$value:{colorSpace:"srgb",components:[.5764705882352941,.36470588235294116,1],hex:"#935DFF"},$description:"seed.ui.color.violet"},focus:{$type:"color",$value:{colorSpace:"srgb",components:[.6627450980392157,.7333333333333333,1],hex:"#A9BBFF"},$description:"seed.ui.color.focus"},border:{$type:"color",$value:{colorSpace:"srgb",components:[.6862745098039216,.7333333333333333,1],hex:"#AFBBFF",alpha:.5},$description:"seed.ui.color.border"},blueGlow:{$type:"color",$value:{colorSpace:"srgb",components:[.13725490196078433,.3411764705882353,.9176470588235294],hex:"#2357EA",alpha:.35},$description:"seed.ui.color.blueGlow"},violetGlow:{$type:"color",$value:{colorSpace:"srgb",components:[.4627450980392157,.19215686274509805,1],hex:"#7631FF",alpha:.5},$description:"seed.ui.color.violetGlow"},primaryAccessible:{$type:"color",$value:{colorSpace:"srgb",components:[.23529411764705882,.38823529411764707,.8117647058823529],hex:"#3C63CF"},$description:"seed.ui.color.primaryAccessible"},header:{$type:"color",$value:{colorSpace:"srgb",components:[.12941176470588237,.32941176470588235,.8509803921568627],hex:"#2154D9"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"}}}},semantic:{font:{body:{$type:"fontFamily",$value:["Inter","Monkeys UI Sans","Microsoft YaHei","sans-serif"],$description:"BSD \u5B57\u4F53\u6808"}}}};var vs=a(e=>!!e&&typeof e=="object"&&!Array.isArray(e),"isGroup");function Ko(e,t){function o(n,r){if(r===void 0)return n;if(!vs(n)||!vs(r)||"$value"in r||"$value"in n)return r;let i={...n};for(let s of Object.keys(r))i[s]=o(n[s],r[s]);return i}return a(o,"merge"),o(e,t)}a(Ko,"mergeThemeTokens");function xs(e,t){if(t==="dark")return e;let o=a(n=>typeof n=="string"?n.replace(/\.(?:dark|light)(?=})/g,`.${t}`):Array.isArray(n)?n.map(o):vs(n)?Object.fromEntries(Object.entries(n).map(([r,i])=>[r,o(i)])):n,"visit");return o(e)}a(xs,"resolveThemeColorModeTokens");function fu(e){return "--monkeys-ui-"+e.replace(/^component\.ui\./,"").replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/\./g,"-").toLowerCase()}a(fu,"uiVariable");var hx=mu,bu={bsd:{id:"bsd",label:"BSD",colorModes:["light","dark"],tokens:gu},"neutral-demo":{id:"neutral-demo",label:"Neutral Demo\uFF08\u6F14\u793A\uFF09",colorModes:["light","dark"],tokens:{}}};function hu(e="bsd",t){if(!Object.prototype.hasOwnProperty.call(bu,e))throw new TypeError(`Unknown UI tenant: ${e}`);let o=bu[e];return Ko(Ko(hx,o.tokens),t)}a(hu,"getTenantTheme");var Da=hu("bsd"),ks=go(Da,{colorMode:"dark"});function Cu(e,t="dark"){return wx(go(xs(e,t),{colorMode:t}))}a(Cu,"compileUITheme");function wx(e){let t={};for(let[o,n]of Object.entries(e.cssVariables))o.startsWith("--monkeys-chart-")&&(t[o]=n);for(let o of Object.keys(e.cssValues).filter(n=>n.startsWith("component.ui."))){let n=fu(o);if(t[n]!==void 0)throw new TypeError(`Duplicate UI variable: ${n}`);t[n]=rr(e,o);}for(let o of ["foreground","page","focus","button-primary-background","font"])if(!t["--monkeys-ui-"+o])throw new TypeError(`Missing required UI token: ${o}`);return t}a(wx,"variablesFromTheme");var yu=he.createContext(0);function io(e){let t=he.useContext(Hn),o=tr(),n=Sn(),[r,i]=he.useState();return he.useEffect(()=>{if(e||t?.dir||o)return;let l=(n.getDocument?.()??globalThis.document)?.documentElement;if(!l)return;let d=a(()=>i(l.dir==="rtl"?"rtl":"ltr"),"update");d();let c=new MutationObserver(d);return c.observe(l,{attributes:true,attributeFilter:["dir"]}),()=>c.disconnect()},[e,t?.dir,o,n]),e??t?.dir??o??r}a(io,"useUIDirection");function ws(){let e=ui();return e.provided?e:{...Yn,provided:false}}a(ws,"useUILocale");var Ia=new WeakMap;function Cx(e){let t=Ia.get(e);if(t)return t.count++,()=>vu(e);let o=e.documentElement,n=o.getAttribute("data-monkeys-ui-input"),r=a(()=>o.setAttribute("data-monkeys-ui-input","pointer"),"pointer"),i=a(()=>o.setAttribute("data-monkeys-ui-input","keyboard"),"keyboard");return e.addEventListener("pointerdown",r,true),e.addEventListener("keydown",i,true),Ia.set(e,{count:1,dispose:a(()=>{e.removeEventListener("pointerdown",r,true),e.removeEventListener("keydown",i,true),n===null?o.removeAttribute("data-monkeys-ui-input"):o.setAttribute("data-monkeys-ui-input",n);},"dispose")}),()=>vu(e)}a(Cx,"observeInput");function vu(e){let t=Ia.get(e);t&&--t.count===0&&(t.dispose(),Ia.delete(e));}a(vu,"releaseInput");function _n(){let e=he.useContext(Hn),t=No();return he.useMemo(()=>e?.compiled??(t?.contract?go(xs(Ko(Da,t.contract),t.colorMode==="light"?"light":"dark"),{colorMode:t.colorMode==="light"?"light":"dark"}):ks),[e?.compiled,t?.contract,t?.colorMode])}a(_n,"useUIResolvedTokens");function xr({children:e}){let t=he.useContext(Hn),o=No(),n=Sn(),r=ln(),i=io(),s=he.useContext(yu)+1,[l,d]=he.useState(null);he.useEffect(()=>{let g=n.getDocument?.()??globalThis.document;return d(typeof r.container=="function"?r.container():r.container??g?.body??null),g?Cx(g):void 0},[n,r.container]);let c=Number(t?.variables["--monkeys-ui-layer-overlay-base"]??ks.values["component.ui.layer.overlayBase"]),u=Number(t?.variables["--monkeys-ui-layer-nesting-step"]??ks.values["component.ui.layer.nestingStep"]),m=t?.compiled.colorMode??o?.colorMode??"dark",p=jsxRuntime.jsx(yu.Provider,{value:s,children:jsxRuntime.jsx("div",{className:"monkeys-ui-scope monkeys-ui-portal",dir:i,"data-monkeys-ui-tenant":t?.tenant??"bsd","data-monkeys-ui-theme":m,style:{...t?.variables,colorScheme:m,"--monkeys-ui-overlay-layer":c+s*u},children:e})});return r.disabled?p:l?reactDom.createPortal(p,l):null}a(xr,"Portal");function La(){let[e,t]=he.useState(false);return he.useEffect(()=>{let o=window.matchMedia("(prefers-reduced-motion: reduce)"),n=window.matchMedia("(forced-colors: active)"),r=a(()=>t(!o.matches&&!n.matches),"update");return r(),o.addEventListener("change",r),n.addEventListener("change",r),()=>{o.removeEventListener("change",r),n.removeEventListener("change",r);}},[]),e}a(La,"useShaderEnabled");function Tu(e){let t=a(n=>{let r=`semantic.color.effect.${n}.${e.colorMode}`;return e.values[r]?.hex??rr(e,r)},"color"),o=a((n,r)=>Number(e.values[`component.ui.effect.${n}.${r}`]),"number");return {start:t("start"),end:t("end"),lightEdgeStart:t("lightEdgeStart"),chroma:{intensity:o("chroma","intensity"),momentum:o("chroma","momentum"),radius:o("chroma","radius")},aurora:{curtainCount:o("aurora","curtainCount"),height:o("aurora","height"),intensity:o("aurora","intensity"),rayDensity:o("aurora","rayDensity"),speed:o("aurora","speed"),waviness:o("aurora","waviness")},lightEdge:{thickness:o("lightEdge","thickness"),softness:o("lightEdge","softness"),intensity:o("lightEdge","intensity"),bloom:o("lightEdge","bloom"),spots:o("lightEdge","spots"),spotSize:o("lightEdge","spotSize"),smoke:o("lightEdge","smoke"),smokeSize:o("lightEdge","smokeSize"),speed:o("lightEdge","speed")},rotation:o("aurora","rotation"),glowBlur:o("lightEdge","glowBlur"),flowBlur:o("lightEdge","flowBlur"),shapeInset:o("lightEdge","shapeInset")}}a(Tu,"resolveEffectTokens");function Cs(e){if(!e||!/^#([\da-f]{3}|[\da-f]{6})$/i.test(e))return "light";let t=e.slice(1).length===3?[...e.slice(1)].map(r=>r+r).join(""):e.slice(1),o=[0,2,4].map(r=>{let i=parseInt(t.slice(r,r+2),16)/255;return i<=.04045?i/12.92:((i+.055)/1.055)**2.4});return o[0]*.2126+o[1]*.7152+o[2]*.0722>=.8?"dark":"light"}a(Cs,"sampleInk");function $u(e){let t=`button-light-edge-${he.useId().replace(/:/g,"")}`,o=he.useRef(null),[n,r]=he.useState(null),i=La(),s=_n(),l=Tu(s),[d,c]=he.useState(false),[u,m]=he.useState(null);return he.useEffect(()=>{if(!i)return;let p=true;return import('shaders/react').then(g=>{p&&r(g);}).catch(()=>{}),()=>{p=false;}},[i]),he.useEffect(()=>{let p=o.current,g=p?.closest("button");if(!g||!p)return;let b=a(()=>{let f=p.clientWidth,h=p.clientHeight;if(!f||!h)return;let k=getComputedStyle(g).borderTopLeftRadius,$=k.endsWith("%")?Math.min(f,h)*parseFloat(k)/100:parseFloat(k)||0,w=l.shapeInset;m({type:"roundedRectSDF",radius:Math.max(.01,f/(2*h)-w/h),height:Math.max(.01,.5-w/h),rounding:Math.max(0,Math.min($-w,h/2-w))/h});},"update");b();let x=new ResizeObserver(b);return x.observe(g),()=>x.disconnect()},[s]),jsxRuntime.jsxs("span",{ref:o,className:"monkeys-ui-button-light-edge-mask","data-ready":d||void 0,children:[jsxRuntime.jsx("svg",{width:"0",height:"0","aria-hidden":"true",className:"monkeys-ui-button-light-edge-defs",children:jsxRuntime.jsx("defs",{children:jsxRuntime.jsxs("filter",{id:t,x:"-30%",y:"-100%",width:"160%",height:"300%",colorInterpolationFilters:"sRGB",children:[jsxRuntime.jsx("feGaussianBlur",{in:"SourceGraphic",stdDeviation:l.glowBlur,result:"glow"}),jsxRuntime.jsx("feGaussianBlur",{in:"SourceGraphic",stdDeviation:l.flowBlur,result:"flow"}),jsxRuntime.jsxs("feMerge",{children:[jsxRuntime.jsx("feMergeNode",{in:"glow"}),jsxRuntime.jsx("feMergeNode",{in:"flow"})]})]})})}),jsxRuntime.jsxs("span",{className:"monkeys-ui-button-light-edge-flow",style:{filter:`url(#${t})`},children:[jsxRuntime.jsx("span",{className:"monkeys-ui-button-light-edge-ambient"}),i&&n&&u?jsxRuntime.jsx(n.Shader,{disableTelemetry:true,style:{width:"100%",height:"100%"},onReady:()=>c(true),children:jsxRuntime.jsx(n.LightEdge,{colorA:l.lightEdgeStart,colorB:l.end,...l.lightEdge,...e,stops:null,shape:u})}):null]})]})}a($u,"ButtonLightEdge");var So=he.forwardRef(a(function(t,o){let{props:n,slot:r}=pu("Button",t),{variant:i,shape:s="default",icon:l,tone:d="neutral",emphasis:c="secondary",effect:u,size:m="md",loading:p=false,lightEdge:g=false,glassColor:b,glassOpacity:x,toggle:f=false,checked:h,defaultChecked:k,onCheckedChange:$,required:w,motion:C="auto",activeBorderColor:T,type:S="button",className:P,style:E,children:R,onClick:W,onPointerDown:B,onKeyDown:A,...L}=n,I=he.useContext(Hn),K=io(),[q,_]=Ut(h,k,false,$),Y=u??(g?"light-edge":"none"),M=i??(s==="icon"?"ghost":s==="tile"?"outline":"solid"),z={...E,...T?{"--monkeys-ui-button-active-border-color":T}:{},...b?{"--monkeys-ui-button-glass-color":b}:{},...x!==void 0?{"--monkeys-ui-button-glass-opacity":Math.min(1,Math.max(0,x))}:{},...f?{"--monkeys-ui-button-glass-state-opacity":q?1:"var(--monkeys-ui-button-glass-inactive-opacity,var(--monkeys-ui-default-button-glass-inactive-opacity))"}:{}},Q=f?q:L["aria-pressed"]===true||L["aria-pressed"]==="true",ce=d==="primary"&&M==="solid"||Q&&s!=="icon"&&M!=="glass"&&Y!=="brand-glow";return I?.colorSource==="platform"&&ce&&(z={color:"var(--monkeys-ui-button-primary-foreground)",...z}),i==="switch"?jsxRuntime.jsx(Nu,{...L,style:E,ref:o,type:S,value:L.value===void 0?void 0:String(L.value),required:w,checked:h,defaultChecked:k,onCheckedChange:$,className:kt("monkeys-ui-button-switch",P),"data-variant":"switch","data-tone":"primary","data-emphasis":c,"data-effect":Y,"data-size":m,"aria-label":L["aria-label"]??(typeof R=="string"?R:void 0),"aria-busy":p||void 0,"aria-disabled":p||L["aria-disabled"],onPointerDown:B,onKeyDown:A,onClick:se=>{if(p||L["aria-disabled"]===true||L["aria-disabled"]==="true"){se.preventDefault();return}W?.(se);}}):jsxRuntime.jsxs("button",{...L,dir:L.dir??K,ref:o,type:S,style:z,className:kt("monkeys-ui-button",P),"data-light-edge":Y==="light-edge"?true:void 0,"data-effect":Y,"data-emphasis":c,"data-shape":s,"data-variant":M,"data-tone":d,"data-size":m,"data-motion":C,"data-active-border":T?true:void 0,onPointerDown:se=>{se.currentTarget.dataset.input="pointer",B?.(se);},onKeyDown:se=>{se.currentTarget.dataset.input="keyboard",A?.(se);},"aria-pressed":f?q:L["aria-pressed"],"aria-busy":p||void 0,"aria-disabled":p||L["aria-disabled"],onClick:se=>{if(p||L["aria-disabled"]===true||L["aria-disabled"]==="true"){se.preventDefault();return}W?.(se),f&&!se.defaultPrevented&&_(!q);},children:[Y==="light-edge"?jsxRuntime.jsx("span",{...r("effect","monkeys-ui-button-light-edge"),"aria-hidden":"true",children:jsxRuntime.jsx($u,{...g===true||!g?{}:g})}):null,jsxRuntime.jsxs("span",{...r("label","monkeys-ui-button-label"),"data-loading":p||void 0,children:[l?jsxRuntime.jsx("span",{...r("icon","monkeys-ui-button-icon"),"aria-hidden":"true",children:l}):null,R]}),p?jsxRuntime.jsx("span",{...r("spinner","monkeys-ui-button-spinner"),"aria-hidden":"true"}):null]})},"Button"));he.forwardRef(a(function(t,o){return jsxRuntime.jsx(So,{...t,ref:o,toggle:true})},"ToggleButton"));he.forwardRef(a(function({options:t,value:o,defaultValue:n,onValueChange:r,onValueCommit:i,disabled:s,readOnly:l,className:d,style:c,onPointerDown:u,onPointerMove:m,onPointerCancel:p,onKeyDown:g,onPointerUp:b,onKeyUp:x,dir:f,name:h,...k},$){let w=Xo(k),C=io(f==="rtl"||f==="ltr"?f:void 0),[T,S]=Ut(o,n,t[0]?.id??"",r),P=he.useRef(null),E=he.useRef(n??t[0]?.id??"");he.useImperativeHandle($,()=>P.current,[]),Wn(P,()=>{o===void 0&&S(E.current);});let R=Math.max(0,t.findIndex(O=>O.id===T)),W=t[R],B=La(),[A,L]=he.useState("keyboard"),I=he.useRef(null),K=B&&A==="pointer"&&!s&&!l,q={label:W?.label,color:W?.color},[_,Y]=he.useState({layers:[q,q],active:0}),M=_.layers[_.active];if(M.label!==q.label||M.color!==q.color){let O=1-_.active;Y({layers:_.layers.map((F,ne)=>ne===O?q:F),active:O});}let z=t.length>1?R/(t.length-1):.5,Q=a(O=>`calc(${O*100}% + ${.5-O} * var(--monkeys-ui-color-slider-thumb-width,var(--monkeys-ui-default-color-slider-thumb-width)))`,"location"),ce=t.map((O,F)=>{let ne=t.length>1?F/(t.length-1):0;return `${O.color} ${Q(ne)}`}),se=t.length>1?`linear-gradient(to ${C==="rtl"?"left":"right"}, ${ce.join(", ")})`:W?.color,V=s||l||t.length<2,J=a(O=>{let F=t[Number(O.value)];!V&&F&&i?.(F.id);},"commit");return jsxRuntime.jsxs("div",{className:kt("monkeys-ui-color-slider",d),"data-animated":K||void 0,"data-disabled":s||t.length===0||void 0,dir:C,style:c,children:[jsxRuntime.jsx("span",{className:"monkeys-ui-color-slider-track",style:{background:se},"aria-hidden":"true"}),jsxRuntime.jsx("span",{className:"monkeys-ui-color-slider-positioner",style:{transform:`translateX(${(C==="rtl"?-1:1)*z*100}%)`},"aria-hidden":"true",children:jsxRuntime.jsx("span",{className:"monkeys-ui-color-slider-thumb","data-ink":Cs(W?.color),style:{"--monkeys-ui-color-slider-selected":W?.color},children:_.layers.map((O,F)=>jsxRuntime.jsx("span",{className:"monkeys-ui-color-slider-sample","data-active":F===_.active,"data-ink":Cs(O.color),style:{"--monkeys-ui-color-slider-selected":O.color},children:jsxRuntime.jsx("span",{className:F===_.active?"monkeys-ui-color-slider-label":"monkeys-ui-color-slider-previous-label",children:O.label})},F))})}),jsxRuntime.jsx("input",{...k,...w,ref:P,type:"range",dir:C,min:0,max:Math.max(0,t.length-1),step:1,value:R,disabled:s||t.length===0,"aria-readonly":l||void 0,"aria-valuetext":W?.label??"",className:"monkeys-ui-color-slider-input",onPointerDown:O=>{u?.(O),l&&O.preventDefault(),!V&&!O.defaultPrevented&&O.isPrimary!==false&&O.button===0&&(I.current={id:O.pointerId,x:O.clientX,y:O.clientY},L("pointer"));},onPointerMove:O=>{m?.(O);let F=I.current;F?.id===O.pointerId&&Math.hypot(O.clientX-F.x,O.clientY-F.y)>3&&L("drag");},onPointerCancel:O=>{I.current=null,L("keyboard"),p?.(O);},onKeyDown:O=>{I.current=null,L("keyboard"),g?.(O),l&&["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(O.key)&&O.preventDefault();},onChange:O=>{if(!V){let F=t[Number(O.target.value)];F&&S(F.id);}},onPointerUp:O=>{I.current=null,b?.(O),O.defaultPrevented||J(O.currentTarget);},onKeyUp:O=>{x?.(O),!O.defaultPrevented&&["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(O.key)&&J(O.currentTarget);}}),h?jsxRuntime.jsx("input",{type:"hidden",name:h,form:k.form,value:W?.id??"",disabled:s||t.length===0}):null]})},"ColorSlider"));var Nx=he.createContext(null);function Xo(e){let t=he.useContext(Nx),o=io(e.dir==="rtl"||e.dir==="ltr"?e.dir:void 0);return {id:t?.id??e.id,dir:e.dir??o,"aria-describedby":[t?.describedBy,e["aria-describedby"]].filter(Boolean).join(" ")||void 0,"aria-invalid":e["aria-invalid"]??t?.invalid,required:e.required??t?.required}}a(Xo,"useField");var _a=he.forwardRef(a(function(t,o){let n=Xo(t);if(t.variant==="tags")return t.mode==="select"?jsxRuntime.jsx(Ix,{...t,ref:o}):jsxRuntime.jsx(Ex,{...t,ref:o});if(t.variant==="search")return jsxRuntime.jsx(zx,{...t,ref:o});if(t.variant==="number")return jsxRuntime.jsx(Lx,{...t,ref:o});let{variant:r,className:i,...s}=t;return jsxRuntime.jsx("input",{...s,...n,className:kt("monkeys-ui-input",i),ref:o})},"Input")),Ex=he.forwardRef(a(function({variant:t,mode:o,value:n,defaultValue:r,onValueChange:i,inputValue:s,onInputValueChange:l,removeLabel:d="\u5220\u9664",name:c,form:u,className:m,style:p,disabled:g,readOnly:b,placeholder:x="\u8F93\u5165\u5E76\u56DE\u8F66\u540E\u6DFB\u52A0",onChange:f,onKeyDown:h,onCompositionStart:k,onCompositionEnd:$,...w},C){let T=Xo(w),[S,P]=Ut(n,r,[],i),[E,R]=Ut(s,void 0,"",l),[W,B]=he.useState(""),A=he.useRef(false),L=he.useRef(null),I=g||b;he.useImperativeHandle(C,()=>L.current,[]);let K=he.useRef(r??[]);Wn(L,()=>{n===void 0&&P(K.current),R("");}),he.useEffect(()=>{L.current?.setCustomValidity(T.required&&S.length===0?"\u8BF7\u81F3\u5C11\u6DFB\u52A0\u4E00\u4E2A\u6807\u7B7E":"");},[T.required,S.length]);let q=a(_=>{I||(P(S.filter((Y,M)=>M!==_)),B(`${d} ${S[_]}`),L.current?.focus());},"remove");return jsxRuntime.jsxs("div",{className:kt("monkeys-ui-tag-input",m),style:p,dir:T.dir,"data-variant":t,"data-disabled":g||void 0,"aria-disabled":g||void 0,"data-readonly":b||void 0,"data-invalid":T["aria-invalid"]||void 0,onClick:_=>{!g&&!_.target.closest("button")&&L.current?.focus();},children:[S.map((_,Y)=>jsxRuntime.jsx(Bu,{label:_,disabled:I,removeLabel:d,onRemove:()=>q(Y)},`${Y}:${_}`)),jsxRuntime.jsx("input",{...w,...T,ref:L,form:u,type:"text",className:"monkeys-ui-tag-input-editor",disabled:g,readOnly:b,placeholder:x,value:E,required:T.required&&S.length===0,"aria-required":T.required||void 0,onChange:_=>{I||(R(_.target.value),f?.(_));},onCompositionStart:_=>{A.current=true,k?.(_);},onCompositionEnd:_=>{A.current=false,$?.(_);},onKeyDown:_=>{if(h?.(_),!(_.defaultPrevented||I||A.current||_.nativeEvent.isComposing||_.keyCode===229))if(_.key==="Enter"){_.preventDefault();let Y=E.trim();Y&&!S.includes(Y)&&(P([...S,Y]),B(Y)),R("");}else _.key==="Backspace"&&E===""&&S.length&&(_.preventDefault(),q(S.length-1));}}),c?S.map((_,Y)=>jsxRuntime.jsx("input",{type:"hidden",name:c,form:u,value:_,disabled:g},Y)):null,jsxRuntime.jsx("span",{className:"monkeys-ui-visually-hidden","aria-live":"polite","aria-atomic":"true",children:W})]})},"InputTagsControl"));function Bu({label:e,disabled:t,removeLabel:o,onRemove:n,onActivate:r}){return jsxRuntime.jsxs("span",{className:"monkeys-ui-input-tag",children:[r?jsxRuntime.jsx("button",{type:"button",className:"monkeys-ui-input-tag-text monkeys-ui-input-tag-activate",title:e,disabled:t,onClick:r,children:e}):jsxRuntime.jsx("span",{className:"monkeys-ui-input-tag-text",title:e,children:e}),n?jsxRuntime.jsx("button",{type:"button",className:"monkeys-ui-input-tag-remove",disabled:t,"aria-label":`${o} ${e}`,onClick:n,children:jsxRuntime.jsx(lucideReact.X,{size:"var(--monkeys-ui-icon-size-s14,var(--monkeys-ui-default-icon-size-s14))","aria-hidden":"true"})}):null]})}a(Bu,"InputTag");var Ix=he.forwardRef(a(function({variant:t,mode:o,label:n,items:r,onAdd:i,onRemove:s,onItemActivate:l,removeLabel:d="\u79FB\u9664",name:c,form:u,disabled:m,readOnly:p,className:g,style:b,onInvalid:x,...f},h){let k=Xo(f),$=he.useRef(null),w=he.useRef(null),C=he.useRef(null),[T,S]=he.useState(""),P=m||p;return he.useImperativeHandle(h,()=>$.current,[]),he.useEffect(()=>{$.current?.setCustomValidity(k.required&&!r.length?"\u8BF7\u81F3\u5C11\u6DFB\u52A0\u4E00\u4E2A\u6807\u7B7E":"");},[k.required,r.length]),jsxRuntime.jsxs("div",{ref:C,role:"group","aria-label":n,"aria-describedby":k["aria-describedby"],"aria-required":k.required||void 0,"aria-invalid":k["aria-invalid"],tabIndex:-1,dir:k.dir,className:kt("monkeys-ui-tag-input",g),"data-mode":o,"data-empty":!r.length,"data-disabled":m||void 0,"aria-disabled":m||void 0,"data-readonly":p||void 0,"data-invalid":k["aria-invalid"]||void 0,style:b,children:[jsxRuntime.jsxs("div",{className:"monkeys-ui-tag-input-header",children:[jsxRuntime.jsx("span",{className:"monkeys-ui-label",children:n}),i?jsxRuntime.jsx("button",{ref:w,type:"button",className:"monkeys-ui-tag-input-add",disabled:P,"aria-label":"\u6DFB\u52A0"+n,onClick:i,children:jsxRuntime.jsx(lucideReact.Plus,{"aria-hidden":"true"})}):null]}),r.length?jsxRuntime.jsx("div",{className:"monkeys-ui-tag-input-items",children:r.map(E=>jsxRuntime.jsx(Bu,{label:E.label,disabled:P,removeLabel:d,onActivate:l&&E.activatable!==false?()=>{P||l(E.id);}:void 0,onRemove:s?()=>{P||(s(E.id),S(`${d} ${E.label}`),(w.current??C.current)?.focus());}:void 0},E.id))}):null,jsxRuntime.jsx("input",{...f,...k,ref:$,form:u,type:"text",className:"monkeys-ui-visually-hidden","aria-hidden":"true",tabIndex:-1,value:r.length?"selected":"",onChange:()=>{},disabled:m,required:k.required,onInvalid:E=>{x?.(E),E.preventDefault(),(w.current??C.current)?.focus();}}),c?r.map(E=>jsxRuntime.jsx("input",{type:"hidden",name:c,form:u,value:E.id,disabled:m},E.id)):null,jsxRuntime.jsx("span",{className:"monkeys-ui-visually-hidden","aria-live":"polite","aria-atomic":"true",children:T})]})},"InputTagSelectionControl"));he.forwardRef(a(function({className:t,...o},n){let r=Xo(o);return jsxRuntime.jsx("textarea",{...o,...r,ref:n,className:kt("monkeys-ui-textarea",t)})},"Textarea"));function Dx(e){return /^-?(?:\d+|\d*\.\d+)$/.test(e.trim())&&Number.isFinite(Number(e))?Number(e):null}a(Dx,"parseNumberValue");he.forwardRef(a(function(t,o){return jsxRuntime.jsx(_a,{...t,variant:"number",ref:o})},"NumberInput"));var Lx=he.forwardRef(a(function({variant:t,value:o,defaultValue:n,onValueChange:r,onChange:i,...s},l){let[d,c]=Ut(o,n,"",p=>r?.(p,{numberValue:Dx(p)})),u=he.useRef(null),m=he.useRef(n??"");return he.useImperativeHandle(l,()=>u.current,[]),Wn(u,()=>{o===void 0&&c(m.current);}),jsxRuntime.jsx(_a,{...s,variant:"default",type:"text",inputMode:"decimal",value:d,onChange:p=>{c(p.target.value),i?.(p);},ref:u})},"InputNumberControl"));he.forwardRef(a(function(t,o){return jsxRuntime.jsx(_a,{...t,variant:"search",ref:o})},"SearchField"));var zx=he.forwardRef(a(function({variant:t,value:o,defaultValue:n,onValueChange:r,onChange:i,onSearch:s,clearLabel:l="\u6E05\u7A7A\u641C\u7D22",className:d,onKeyDown:c,onCompositionStart:u,onCompositionEnd:m,disabled:p,readOnly:g,...b},x){let[f,h]=Ut(o,n,"",r),k=he.useRef(false),$=he.useRef(null);he.useImperativeHandle(x,()=>$.current,[]);let w=he.useRef(n??"");Wn($,()=>{o===void 0&&h(w.current);});let C=a(()=>{let T=$.current;if(p||g||!T)return;Object.getOwnPropertyDescriptor(T.ownerDocument.defaultView.HTMLInputElement.prototype,"value").set.call(T,""),T.dispatchEvent(new Event("input",{bubbles:true})),T.focus();},"clear");return jsxRuntime.jsxs("div",{className:kt("monkeys-ui-search",d),children:[jsxRuntime.jsx(lucideReact.Search,{size:"var(--monkeys-ui-icon-size-s17,var(--monkeys-ui-default-icon-size-s17))","aria-hidden":"true"}),jsxRuntime.jsx(_a,{...b,variant:"default",ref:$,type:"search",disabled:p,readOnly:g,value:f,onChange:T=>{!p&&!g&&(h(T.target.value),i?.(T));},onCompositionStart:T=>{k.current=true,u?.(T);},onCompositionEnd:T=>{k.current=false,m?.(T);},onKeyDown:T=>{c?.(T),!T.defaultPrevented&&T.key==="Enter"&&!p&&!g&&!k.current&&!T.nativeEvent.isComposing&&T.keyCode!==229&&(T.preventDefault(),s?.(f));}}),f?jsxRuntime.jsx(So,{shape:"icon","aria-label":l,size:"sm",disabled:p||g,onClick:C,children:jsxRuntime.jsx(lucideReact.X,{size:"var(--monkeys-ui-icon-size-s14,var(--monkeys-ui-default-icon-size-s14))","aria-hidden":"true"})}):null]})},"InputSearchControl")),Nu=he.forwardRef(a(function({checked:t,defaultChecked:o,onCheckedChange:n,className:r,onPointerDown:i,onKeyDown:s,...l},d){let c=Xo(l),[u,m]=Ut(t,o,false,n);return jsxRuntime.jsx(Yr__namespace.Root,{...l,...c,ref:d,checked:u,onCheckedChange:m,onPointerDown:p=>{p.currentTarget.dataset.input="pointer",i?.(p);},onKeyDown:p=>{p.currentTarget.dataset.input="keyboard",s?.(p);},className:kt("monkeys-ui-switch",r),children:jsxRuntime.jsx(Yr__namespace.Thumb,{className:"monkeys-ui-switch-thumb"})})},"Switch"));he.forwardRef(a(function({label:t,description:o,checked:n,defaultChecked:r,onCheckedChange:i,emphasis:s="secondary",effect:l="none",pending:d=false,disabled:c=false,className:u,...m},p){let g=he.useId(),b=`${g}-label`,x=o?`${g}-description`:void 0;return jsxRuntime.jsxs("div",{className:kt("monkeys-ui-switch-field",u),"data-emphasis":s,"data-effect":l,"data-pending":d||void 0,"data-disabled":c||void 0,children:[jsxRuntime.jsxs("div",{className:"monkeys-ui-switch-field-copy",children:[jsxRuntime.jsx("span",{id:b,className:"monkeys-ui-switch-field-label",children:t}),o?jsxRuntime.jsx("span",{id:x,className:"monkeys-ui-switch-field-description",children:o}):null]}),jsxRuntime.jsx(Nu,{...m,ref:p,checked:n,defaultChecked:r,onCheckedChange:f=>{d||i?.(f);},disabled:c,"aria-labelledby":b,"aria-describedby":x,"aria-busy":d||void 0,"aria-disabled":d||void 0,"data-emphasis":s,"data-effect":l,onClick:f=>{d&&f.preventDefault(),m.onClick?.(f);},onKeyDown:f=>{d&&f.preventDefault(),m.onKeyDown?.(f);}})," "]})},"SwitchField"));he.forwardRef(a(function({indicator:t=jsxRuntime.jsx(lucideReact.ChevronDown,{size:12}),className:o,children:n,type:r="button",...i},s){return jsxRuntime.jsxs("button",{...i,ref:s,type:r,className:kt("monkeys-ui-select",o),children:[jsxRuntime.jsx("span",{className:"min-w-0 truncate",children:n}),jsxRuntime.jsx("span",{className:"shrink-0","aria-hidden":"true",children:t})]})},"PickerTrigger"));he.forwardRef(a(function(t,o){return t.variant==="multiple"?jsxRuntime.jsx(Hx,{...t,ref:o}):jsxRuntime.jsx(Ox,{...t,ref:o})},"Select"));var Ox=he.forwardRef(a(function({options:t,placeholder:o,className:n,style:r,id:i,"aria-label":s,"aria-describedby":l,"aria-invalid":d,value:c,defaultValue:u,onValueChange:m,variant:p,...g},b){let x=Xo({id:i,dir:g.dir,"aria-describedby":l,"aria-invalid":d,required:g.required}),[f,h]=Ut(c,u,"",m),k=io(g.dir),$=ws(),{required:w,...C}=x;return jsxRuntime.jsxs(Ve__namespace.Root,{...g,dir:k,required:w,value:f,onValueChange:h,children:[jsxRuntime.jsxs(Ve__namespace.Trigger,{ref:b,...C,"aria-required":w||void 0,"aria-label":s,className:kt("monkeys-ui-select",n),style:r,children:[jsxRuntime.jsx(Ve__namespace.Value,{placeholder:o??$.messages.multiSelect.placeholder}),jsxRuntime.jsx(Ve__namespace.Icon,{"aria-hidden":"true",children:jsxRuntime.jsx(lucideReact.ChevronDown,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))"})})]}),jsxRuntime.jsx(xr,{children:jsxRuntime.jsxs(Ve__namespace.Content,{className:"monkeys-ui-select-content",position:"popper",sideOffset:6,children:[jsxRuntime.jsx(Ve__namespace.ScrollUpButton,{children:jsxRuntime.jsx(lucideReact.ChevronUp,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))","aria-hidden":"true"})}),jsxRuntime.jsx(Ve__namespace.Viewport,{children:t.map(T=>jsxRuntime.jsxs(Ve__namespace.Item,{value:T.value,disabled:T.disabled,className:"monkeys-ui-select-item",children:[jsxRuntime.jsx(Ve__namespace.ItemText,{children:T.label}),jsxRuntime.jsx(Ve__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))","aria-hidden":"true"})})]},T.value))}),jsxRuntime.jsx(Ve__namespace.ScrollDownButton,{children:jsxRuntime.jsx(lucideReact.ChevronDown,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))","aria-hidden":"true"})})]})})]})},"SingleSelect")),Hx=he.forwardRef(a(function({options:t,placeholder:o,className:n,style:r,id:i,"aria-label":s,"aria-describedby":l,"aria-invalid":d,value:c,defaultValue:u,onValueChange:m,open:p,defaultOpen:g,onOpenChange:b,...x},f){let h=Xo({id:i,dir:x.dir,"aria-describedby":l,"aria-invalid":d,required:x.required}),[k,$]=Ut(c,u,[],m),[w,C]=Ut(p,g,false,b),T=he.useRef(null),S=he.useRef(null),P=he.useRef(u??[]);he.useImperativeHandle(f,()=>T.current,[]),Wn(S,()=>{c===void 0&&$(P.current),C(false),q(false);});let E=io(x.dir),R=ws(),{required:W,...B}=h,A=he.useId(),L=h.id??A,I=A+"-required",[K,q]=he.useState(false);he.useEffect(()=>{(k.length||!W)&&q(false);},[k.length,W]);let _=t.filter(M=>k.includes(M.value)).map(M=>M.label),Y=a(M=>{M.disabled||x.disabled||$(k.includes(M.value)?k.filter(z=>z!==M.value):[...k,M.value]);},"toggle");return jsxRuntime.jsxs(so__namespace.Root,{dir:E,open:w,onOpenChange:C,modal:false,children:[jsxRuntime.jsx(so__namespace.Trigger,{asChild:true,children:jsxRuntime.jsxs("button",{ref:T,type:"button",...B,id:L,"aria-label":s,"aria-describedby":[h["aria-describedby"],W?I:""].filter(Boolean).join(" ")||void 0,"aria-invalid":h["aria-invalid"]||K||void 0,disabled:x.disabled,className:kt("monkeys-ui-select",n),style:r,"data-variant":"multiple","data-placeholder":!_.length||void 0,children:[jsxRuntime.jsx("span",{className:"monkeys-ui-select-value",children:_.length?_.join("\u3001"):o??R.messages.multiSelect.placeholder}),jsxRuntime.jsx(lucideReact.ChevronDown,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))","aria-hidden":"true"})]})}),jsxRuntime.jsx(xr,{children:jsxRuntime.jsx(so__namespace.Content,{"aria-label":s,"aria-labelledby":s?void 0:L,sideOffset:6,align:"start",className:"monkeys-ui-select-content monkeys-ui-select-multiple-content",children:t.map(M=>jsxRuntime.jsxs(so__namespace.CheckboxItem,{checked:k.includes(M.value),disabled:M.disabled,onSelect:z=>{z.preventDefault(),Y(M);},className:"monkeys-ui-select-item",children:[jsxRuntime.jsx("span",{children:M.label}),jsxRuntime.jsx(so__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))","aria-hidden":"true"})})]},M.value))})}),W?jsxRuntime.jsx("span",{id:I,className:"monkeys-ui-visually-hidden",children:R.locale.startsWith("zh")?"\u5FC5\u586B\uFF0C\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u9879":"Required. Select at least one option."}):null,jsxRuntime.jsx("input",{ref:S,type:"text",className:"monkeys-ui-visually-hidden","aria-hidden":"true",tabIndex:-1,form:x.form,autoComplete:x.autoComplete,value:k.length?"selected":"",onChange:()=>{},disabled:x.disabled,required:W,onInvalid:M=>{M.preventDefault(),q(true),T.current?.focus();}}),x.name?k.map(M=>jsxRuntime.jsx("input",{type:"hidden",name:x.name,form:x.form,value:M,disabled:x.disabled},M)):null]})},"MultipleSelect"));function Eu({items:e,value:t,defaultValue:o,onValueChange:n,emphasis:r="secondary",effect:i="none",className:s,...l}){let[d,c]=Ut(t,o,e[0]?.value??"",n),u=io(l.dir);return jsxRuntime.jsx(Fa__namespace.Root,{...l,dir:u,type:"single",value:d,onValueChange:m=>{m&&c(m);},className:kt("monkeys-ui-segmented",s),"data-emphasis":r,"data-effect":i,children:e.map(m=>jsxRuntime.jsx(Fa__namespace.Item,{type:"button",value:m.value,"aria-label":m.ariaLabel,disabled:m.disabled,className:"monkeys-ui-segment","data-emphasis":r,"data-effect":i,children:m.label},m.value))})}a(Eu,"SegmentedControl");function $s({layout:e="horizontal",mediaPosition:t="start",detailsSize:o="balanced",sizing:n="content",asidePosition:r="end",detailsVisible:i=true,heading:s,metadata:l,message:d,actions:c,media:u,toolbar:m,aside:p,secondary:g,children:b,className:x,...f}){let h=i&&(H(s)||H(l)||H(b)||H(d)||H(c)),k=e==="horizontal"&&H(u)&&h,$=n==="fill",w=H(g),C=k&&w,T=H(p)?jsxRuntime.jsx("div",{"data-record-part":"aside",className:"flex min-h-0 shrink-0 gap-global",children:p}):null;return jsxRuntime.jsxs("article",{...f,"data-monkeys-component":"record-view","data-record-layout":e,"data-record-sizing":n,className:v("@container flex min-h-0 min-w-0 flex-col gap-global font-[family-name:var(--font-sans)] text-sm leading-5 text-foreground",$&&"h-full",x),children:[H(m)&&jsxRuntime.jsx("div",{"data-record-part":"toolbar",className:"flex shrink-0 flex-wrap items-center gap-global",children:m}),jsxRuntime.jsxs("div",{className:v("flex min-h-0 min-w-0 gap-global",$&&"flex-1"),children:[r==="start"&&T,jsxRuntime.jsxs("div",{"data-record-part":"body",className:v("grid min-h-0 min-w-0 flex-1 grid-cols-1 gap-global",C?"@[48rem]:grid-cols-[minmax(0,2fr)_minmax(0,1fr)_minmax(0,1fr)]":k&&(o==="balanced"?"@[48rem]:grid-cols-2":t==="start"?"@[48rem]:grid-cols-[minmax(0,1fr)_minmax(16rem,24rem)]":"@[48rem]:grid-cols-[minmax(16rem,24rem)_minmax(0,1fr)]"),$&&"overflow-auto @[48rem]:overflow-hidden"),children:[H(u)&&jsxRuntime.jsx("div",{"data-record-part":"media",className:v("min-h-0 min-w-0",t==="end"&&k&&"@[48rem]:order-2",$&&"flex flex-col"),children:u}),h&&jsxRuntime.jsxs("div",{"data-record-part":"details",className:v("flex min-h-0 min-w-0 flex-col [&>section]:flex-1",$&&"@[48rem]:overflow-auto"),children:[H(s)&&jsxRuntime.jsx("div",{className:"mb-global flex flex-wrap items-center gap-global",children:s}),H(l)&&jsxRuntime.jsx("div",{className:"mb-global flex flex-wrap items-center gap-global text-sm tabular-nums text-muted-foreground [&_span]:text-inherit [&_time]:text-inherit",children:l}),b,H(d)&&jsxRuntime.jsx("div",{className:"mt-global break-words text-sm text-destructive-text",children:d}),H(c)&&jsxRuntime.jsx("div",{className:"mt-auto flex shrink-0 flex-wrap gap-global pt-global",children:c})]}),w&&jsxRuntime.jsx("div",{"data-record-part":"secondary",className:v("flex min-h-0 min-w-0 flex-col [&>section]:flex-1",$&&"@[48rem]:overflow-auto"),children:g})]}),r==="end"&&T]})]})}a($s,"RecordView");var y=Object.freeze({numericSeries:Object.freeze({inspect:"monkeys.design.capability.numericSeries.inspect",noPoints:"monkeys.design.capability.numericSeries.noPoints",point:"monkeys.design.capability.numericSeries.point",label:"monkeys.design.capability.numericSeries.label",description:"monkeys.design.capability.numericSeries.description",start:"monkeys.design.capability.numericSeries.start",end:"monkeys.design.capability.numericSeries.end",reset:"monkeys.design.capability.numericSeries.reset",expand:"monkeys.design.capability.numericSeries.expand",close:"monkeys.design.capability.numericSeries.close"}),catalog:Object.freeze({shellLayout:Object.freeze({label:"monkeys.design.catalog.shellLayout.label",description:"monkeys.design.catalog.shellLayout.description"}),sidebarFilter:Object.freeze({label:"monkeys.design.catalog.sidebarFilter.label",description:"monkeys.design.catalog.sidebarFilter.description"}),ontologyNavigator:Object.freeze({label:"monkeys.design.catalog.ontologyNavigator.label",description:"monkeys.design.catalog.ontologyNavigator.description"}),dataToolbar:Object.freeze({label:"monkeys.design.catalog.dataToolbar.label",description:"monkeys.design.catalog.dataToolbar.description"}),ontologyTable:Object.freeze({label:"monkeys.design.catalog.ontologyTable.label",description:"monkeys.design.catalog.ontologyTable.description"}),cardGrid:Object.freeze({label:"monkeys.design.catalog.cardGrid.label",description:"monkeys.design.catalog.cardGrid.description"}),pagination:Object.freeze({label:"monkeys.design.catalog.pagination.label",description:"monkeys.design.catalog.pagination.description"}),recordDetail:Object.freeze({label:"monkeys.design.catalog.recordDetail.label",description:"monkeys.design.catalog.recordDetail.description"}),recordEditor:Object.freeze({label:"monkeys.design.catalog.recordEditor.label",description:"monkeys.design.catalog.recordEditor.description"}),recordHistory:Object.freeze({label:"monkeys.design.catalog.recordHistory.label",description:"monkeys.design.catalog.recordHistory.description"}),ontologyManagement:Object.freeze({label:"monkeys.design.catalog.ontologyManagement.label",description:"monkeys.design.catalog.ontologyManagement.description"}),featureColumnManager:Object.freeze({label:"monkeys.design.catalog.featureColumnManager.label",description:"monkeys.design.catalog.featureColumnManager.description"}),ontologyTrendMatrix:Object.freeze({label:"monkeys.design.catalog.ontologyTrendMatrix.label",description:"monkeys.design.catalog.ontologyTrendMatrix.description"}),dataContextBar:Object.freeze({label:"monkeys.design.catalog.dataContextBar.label",description:"monkeys.design.catalog.dataContextBar.description"}),gallery:Object.freeze({label:"monkeys.design.catalog.gallery.label",description:"monkeys.design.catalog.gallery.description"}),sectionHeader:Object.freeze({label:"monkeys.design.catalog.sectionHeader.label",description:"monkeys.design.catalog.sectionHeader.description"}),notice:Object.freeze({label:"monkeys.design.catalog.notice.label",description:"monkeys.design.catalog.notice.description"}),descriptionList:Object.freeze({label:"monkeys.design.catalog.descriptionList.label",description:"monkeys.design.catalog.descriptionList.description"}),contentPanel:Object.freeze({label:"monkeys.design.catalog.contentPanel.label",description:"monkeys.design.catalog.contentPanel.description"}),toolbar:Object.freeze({label:"monkeys.design.catalog.toolbar.label",description:"monkeys.design.catalog.toolbar.description"}),status:Object.freeze({label:"monkeys.design.catalog.status.label",description:"monkeys.design.catalog.status.description"}),viewLeaf:Object.freeze({label:"monkeys.design.catalog.viewLeaf.label",description:"monkeys.design.catalog.viewLeaf.description"})}),status:Object.freeze({loading:Object.freeze({title:"monkeys.design.capability.status.loading.title",description:"monkeys.design.capability.status.loading.description"}),empty:Object.freeze({title:"monkeys.design.capability.status.empty.title",description:"monkeys.design.capability.status.empty.description"}),error:Object.freeze({title:"monkeys.design.capability.status.error.title",description:"monkeys.design.capability.status.error.description"}),forbidden:Object.freeze({title:"monkeys.design.capability.status.forbidden.title",description:"monkeys.design.capability.status.forbidden.description"}),retry:"monkeys.design.capability.status.retry.label"}),shellLayout:Object.freeze({resizeSidebar:"monkeys.design.capability.shellLayout.resizeSidebar",collapseSidebar:"monkeys.design.capability.shellLayout.collapseSidebar",expandSidebar:"monkeys.design.capability.shellLayout.expandSidebar",resizeAside:"monkeys.design.capability.shellLayout.resizeAside"}),sidebarFilter:Object.freeze({title:"monkeys.design.capability.sidebarFilter.title",searchLabel:"monkeys.design.capability.sidebarFilter.search.label",searchPlaceholder:"monkeys.design.capability.sidebarFilter.search.placeholder",groupLabel:"monkeys.design.capability.sidebarFilter.group.label",optionLabel:"monkeys.design.capability.sidebarFilter.option.label"}),gallery:Object.freeze({itemTitle:"monkeys.design.capability.gallery.item.title",itemActivate:"monkeys.design.capability.gallery.item.activate",loadMore:"monkeys.design.capability.gallery.pagination.loadMore",loadingMore:"monkeys.design.capability.gallery.pagination.loadingMore"}),ontologyNavigator:Object.freeze({empty:"monkeys.design.capability.ontologyNavigator.empty",moreActions:"monkeys.design.capability.ontologyNavigator.moreActions",searchLabel:"monkeys.design.capability.ontologyNavigator.search.label",searchPlaceholder:"monkeys.design.capability.ontologyNavigator.search.placeholder",loadMore:"monkeys.design.capability.ontologyNavigator.loadMore",loadingMore:"monkeys.design.capability.ontologyNavigator.loadingMore"}),dataToolbar:Object.freeze({addRow:"monkeys.design.capability.dataToolbar.addRow",blankRowName:"monkeys.design.capability.dataToolbar.blankRowName",searchPlaceholder:"monkeys.design.capability.dataToolbar.search.placeholder",selection:"monkeys.design.capability.dataToolbar.selection",gallerySettings:"monkeys.design.capability.dataToolbar.gallerySettings",galleryPresentation:{visibleColumns:"monkeys.design.capability.dataToolbar.galleryPresentation.visibleColumns",coverField:"monkeys.design.capability.dataToolbar.galleryPresentation.coverField",autoDetect:"monkeys.design.capability.dataToolbar.galleryPresentation.autoDetect",cardDensity:"monkeys.design.capability.dataToolbar.galleryPresentation.cardDensity",cardColumns:"monkeys.design.capability.dataToolbar.galleryPresentation.cardColumns",detailColumns:"monkeys.design.capability.dataToolbar.galleryPresentation.detailColumns",fieldVisibility:"monkeys.design.capability.dataToolbar.galleryPresentation.fieldVisibility",fieldLimit:"monkeys.design.capability.dataToolbar.galleryPresentation.fieldLimit",fieldLimitHint:"monkeys.design.capability.dataToolbar.galleryPresentation.fieldLimitHint",layout:"monkeys.design.capability.dataToolbar.galleryPresentation.layout",compact:"monkeys.design.capability.dataToolbar.galleryPresentation.compact",comfortable:"monkeys.design.capability.dataToolbar.galleryPresentation.comfortable",detailed:"monkeys.design.capability.dataToolbar.galleryPresentation.detailed",autoColumns:"monkeys.design.capability.dataToolbar.galleryPresentation.autoColumns",columns:"monkeys.design.capability.dataToolbar.galleryPresentation.columns",bentoColumns:"monkeys.design.capability.dataToolbar.galleryPresentation.bentoColumns",topLimit:"monkeys.design.capability.dataToolbar.galleryPresentation.topLimit",allFields:"monkeys.design.capability.dataToolbar.galleryPresentation.allFields",adaptiveGrid:"monkeys.design.capability.dataToolbar.galleryPresentation.adaptiveGrid",masonry:"monkeys.design.capability.dataToolbar.galleryPresentation.masonry",rail:"monkeys.design.capability.dataToolbar.galleryPresentation.rail"}}),ontologyTable:Object.freeze({label:"monkeys.design.capability.ontologyTable.label",empty:"monkeys.design.capability.ontologyTable.empty",activate:"monkeys.design.capability.ontologyTable.activate",select:"monkeys.design.capability.ontologyTable.select",sort:"monkeys.design.capability.ontologyTable.sort",loadMore:"monkeys.design.capability.ontologyTable.loadMore",loadingMore:"monkeys.design.capability.ontologyTable.loadingMore"}),cardGrid:Object.freeze({empty:"monkeys.design.capability.cardGrid.empty",activate:"monkeys.design.capability.cardGrid.activate",select:"monkeys.design.capability.cardGrid.select",loadMore:"monkeys.design.capability.cardGrid.loadMore",loadingMore:"monkeys.design.capability.cardGrid.loadingMore"}),pagination:Object.freeze({label:"monkeys.design.capability.pagination.label",loadMore:"monkeys.design.capability.pagination.loadMore",loadingMore:"monkeys.design.capability.pagination.loadingMore"}),recordDetail:Object.freeze({edit:"monkeys.design.capability.recordDetail.edit",close:"monkeys.design.capability.recordDetail.close",attachments:"monkeys.design.capability.recordDetail.attachments",previous:"monkeys.design.capability.recordDetail.previous",next:"monkeys.design.capability.recordDetail.next"}),recordEditor:Object.freeze({submit:"monkeys.design.capability.recordEditor.submit",cancel:"monkeys.design.capability.recordEditor.cancel",mapping:Object.freeze({targets:"monkeys.design.capability.recordEditor.mapping.targets",sources:"monkeys.design.capability.recordEditor.mapping.sources",actions:"monkeys.design.capability.recordEditor.mapping.actions",addTarget:"monkeys.design.capability.recordEditor.mapping.addTarget",removeTarget:"monkeys.design.capability.recordEditor.mapping.removeTarget",addSource:"monkeys.design.capability.recordEditor.mapping.addSource",removeSource:"monkeys.design.capability.recordEditor.mapping.removeSource",search:"monkeys.design.capability.recordEditor.mapping.search",emptyTargets:"monkeys.design.capability.recordEditor.mapping.emptyTargets",emptySources:"monkeys.design.capability.recordEditor.mapping.emptySources"}),optionsEmpty:"monkeys.design.capability.recordEditor.options.empty",optionsLoadMore:"monkeys.design.capability.recordEditor.options.loadMore",optionsLoadingMore:"monkeys.design.capability.recordEditor.options.loadingMore",jsonInvalid:"monkeys.design.capability.recordEditor.json.invalid"}),recordHistory:Object.freeze({title:"monkeys.design.capability.recordHistory.title",close:"monkeys.design.capability.recordHistory.close",commits:"monkeys.design.capability.recordHistory.commits",loadMore:"monkeys.design.capability.recordHistory.loadMore",loadingMore:"monkeys.design.capability.recordHistory.loadingMore",selected:"monkeys.design.capability.recordHistory.selected",diff:"monkeys.design.capability.recordHistory.diff",field:"monkeys.design.capability.recordHistory.diff.field",before:"monkeys.design.capability.recordHistory.diff.before",after:"monkeys.design.capability.recordHistory.diff.after",noDiff:"monkeys.design.capability.recordHistory.diff.empty",reason:"monkeys.design.capability.recordHistory.reason",reasonDescription:"monkeys.design.capability.recordHistory.reason.description",rollback:"monkeys.design.capability.recordHistory.rollback",delete:"monkeys.design.capability.recordHistory.delete"}),ontologyManagement:Object.freeze({title:"monkeys.design.capability.ontologyManagement.title",markerDescription:"monkeys.design.capability.ontologyManagement.markerDescription",create:"monkeys.design.capability.ontologyManagement.create",edit:"monkeys.design.capability.ontologyManagement.edit",delete:"monkeys.design.capability.ontologyManagement.delete",import:"monkeys.design.capability.ontologyManagement.import",description:"monkeys.design.capability.ontologyManagement.description",submit:"monkeys.design.capability.ontologyManagement.submit",cancel:"monkeys.design.capability.ontologyManagement.cancel",displayName:"monkeys.design.capability.ontologyManagement.field.displayName",label:"monkeys.design.capability.ontologyManagement.field.label",templateKey:"monkeys.design.capability.ontologyManagement.field.templateKey",templateName:"monkeys.design.capability.ontologyManagement.field.templateName",templateDescription:"monkeys.design.capability.ontologyManagement.field.templateDescription",templateTags:"monkeys.design.capability.ontologyManagement.field.templateTags",templateTagsDescription:"monkeys.design.capability.ontologyManagement.field.templateTagsDescription",creatorCurrentUser:"monkeys.design.capability.ontologyManagement.field.creatorCurrentUser",creatorCurrentUserShort:"monkeys.design.capability.ontologyManagement.field.creatorCurrentUserShort",defaultViewTemplatesDescription:"monkeys.design.capability.ontologyManagement.field.defaultViewTemplatesDescription",defaultViewTemplate:"monkeys.design.capability.ontologyManagement.field.defaultViewTemplate",defaultSelectedView:"monkeys.design.capability.ontologyManagement.field.defaultSelectedView",tagFilterEnabled:"monkeys.design.capability.ontologyManagement.field.tagFilterEnabled",tagFilterEmpty:"monkeys.design.capability.ontologyManagement.field.tagFilterEmpty",tableColumnsSummary:"monkeys.design.capability.ontologyManagement.field.tableColumnsSummary",editTemplateDetails:"monkeys.design.capability.ontologyManagement.field.editTemplateDetails",editTemplateDetailsDescription:"monkeys.design.capability.ontologyManagement.field.editTemplateDetailsDescription",filterInclude:"monkeys.design.capability.ontologyManagement.filter.include",filterAny:"monkeys.design.capability.ontologyManagement.filter.any",filterExclude:"monkeys.design.capability.ontologyManagement.filter.exclude",filterNoTags:"monkeys.design.capability.ontologyManagement.filter.noTags",filterSearch:"monkeys.design.capability.ontologyManagement.filter.search",filterTagGroup:"monkeys.design.capability.ontologyManagement.filter.tagGroup",filterAllGroups:"monkeys.design.capability.ontologyManagement.filter.allGroups",filterAddOrGroup:"monkeys.design.capability.ontologyManagement.filter.addOrGroup",filterNoOrGroups:"monkeys.design.capability.ontologyManagement.filter.noOrGroups",filterOrGroup:"monkeys.design.capability.ontologyManagement.filter.orGroup",filterDeleteGroup:"monkeys.design.capability.ontologyManagement.filter.deleteGroup",filterSupplement:"monkeys.design.capability.ontologyManagement.filter.supplement",filterConfigureSupplement:"monkeys.design.capability.ontologyManagement.filter.configureSupplement",filterClearSupplement:"monkeys.design.capability.ontologyManagement.filter.clearSupplement",filterSupplementMode:"monkeys.design.capability.ontologyManagement.filter.supplementMode",filterModeOr:"monkeys.design.capability.ontologyManagement.filter.modeOr",filterModeAnd:"monkeys.design.capability.ontologyManagement.filter.modeAnd",filterModeCombination:"monkeys.design.capability.ontologyManagement.filter.modeCombination",filterRequiredAll:"monkeys.design.capability.ontologyManagement.filter.requiredAll",filterRequiredAny:"monkeys.design.capability.ontologyManagement.filter.requiredAny",filterAdvancedRules:"monkeys.design.capability.ontologyManagement.filter.advancedRules",filterAdvancedRulesDescription:"monkeys.design.capability.ontologyManagement.filter.advancedRulesDescription",filterRemoveAdvancedRules:"monkeys.design.capability.ontologyManagement.filter.removeAdvancedRules",defaultViewTemplates:"monkeys.design.capability.ontologyManagement.field.defaultViewTemplates",markerExists:"monkeys.design.capability.ontologyManagement.field.markerExists",targetOntology:"monkeys.design.capability.ontologyManagement.field.targetOntology",deleteTemplate:"monkeys.design.capability.ontologyManagement.action.deleteTemplate",deleteMarker:"monkeys.design.capability.ontologyManagement.action.deleteMarker",createDefaultViews:"monkeys.design.capability.ontologyManagement.action.createDefaultViews",techpackPreset:"monkeys.design.capability.ontologyManagement.action.techpackPreset",trendPreset:"monkeys.design.capability.ontologyManagement.action.trendPreset",addTemplate:"monkeys.design.capability.ontologyManagement.action.addTemplate",noTemplates:"monkeys.design.capability.ontologyManagement.empty.noTemplates",descriptionField:"monkeys.design.capability.ontologyManagement.field.description",bodyKind:"monkeys.design.capability.ontologyManagement.field.bodyKind",visible:"monkeys.design.capability.ontologyManagement.field.visible",kernelReadAllTeams:"monkeys.design.capability.ontologyManagement.field.kernelReadAllTeams",publicRead:"monkeys.design.capability.ontologyManagement.field.publicRead",publicWrite:"monkeys.design.capability.ontologyManagement.field.publicWrite",customizeViewModes:"monkeys.design.capability.ontologyManagement.field.customizeViewModes",availableViewModes:"monkeys.design.capability.ontologyManagement.field.availableViewModes",defaultViewMode:"monkeys.design.capability.ontologyManagement.field.defaultViewMode",viewModeTable:"monkeys.design.capability.ontologyManagement.field.viewMode.table",viewModeCard:"monkeys.design.capability.ontologyManagement.field.viewMode.card",viewModeGallery:"monkeys.design.capability.ontologyManagement.field.viewMode.gallery",viewModeTrendMatrix:"monkeys.design.capability.ontologyManagement.field.viewMode.trendMatrix",selectAtLeastOneViewMode:"monkeys.design.capability.ontologyManagement.field.validation.selectAtLeastOneViewMode",profile:"monkeys.design.capability.ontologyManagement.field.profile",sourceOntologyId:"monkeys.design.capability.ontologyManagement.field.sourceOntologyId",viewId:"monkeys.design.capability.ontologyManagement.field.viewId",name:"monkeys.design.capability.ontologyManagement.field.name",targetTeamId:"monkeys.design.capability.ontologyManagement.field.targetTeamId",currentTeamId:"monkeys.design.capability.ontologyManagement.field.currentTeamId",count:"monkeys.design.capability.ontologyManagement.field.count",blankRowLabel:"monkeys.design.capability.ontologyManagement.field.blankRowLabel",indexMode:"monkeys.design.capability.ontologyManagement.field.indexMode",parentId:"monkeys.design.capability.ontologyManagement.field.parentId",viewType:"monkeys.design.capability.ontologyManagement.field.viewType.label",viewTypeFilter:"monkeys.design.capability.ontologyManagement.field.viewType.filter",viewTypeContainer:"monkeys.design.capability.ontologyManagement.field.viewType.container",sourceContainerViewId:"monkeys.design.capability.ontologyManagement.field.sourceContainerViewId",displayConfig:"monkeys.design.capability.ontologyManagement.field.displayConfig",sort:"monkeys.design.capability.ontologyManagement.field.sort",managedFileId:"monkeys.design.capability.ontologyManagement.field.managedFileId",mode:"monkeys.design.capability.ontologyManagement.field.mode",columnId:"monkeys.design.capability.ontologyManagement.field.columnId",containerViewId:"monkeys.design.capability.ontologyManagement.field.containerViewId",type:"monkeys.design.capability.ontologyManagement.field.type",config:"monkeys.design.capability.ontologyManagement.field.config",scopeContainerViewId:"monkeys.design.capability.ontologyManagement.field.scopeContainerViewId",attached:"monkeys.design.capability.ontologyManagement.field.attached.label",attachedTrue:"monkeys.design.capability.ontologyManagement.field.attached.true",attachedFalse:"monkeys.design.capability.ontologyManagement.field.attached.false",pageSize:"monkeys.design.capability.ontologyManagement.field.pageSize",tagGroupIds:"monkeys.design.capability.ontologyManagement.field.tagGroupIds",featureColumnIds:"monkeys.design.capability.ontologyManagement.field.featureColumnIds",basicFieldIds:"monkeys.design.capability.ontologyManagement.field.basicFieldIds",columnType:"monkeys.design.capability.ontologyManagement.field.columnType.label",columnTypeFeature:"monkeys.design.capability.ontologyManagement.field.columnType.feature",columnTypePreview:"monkeys.design.capability.ontologyManagement.field.columnType.preview",featureColumnId:"monkeys.design.capability.ontologyManagement.field.featureColumnId",itemLimit:"monkeys.design.capability.ontologyManagement.field.itemLimit",shareOperation:"monkeys.design.capability.ontologyManagement.field.shareOperation.label",shareOperationUpsert:"monkeys.design.capability.ontologyManagement.field.shareOperation.upsert",shareOperationRevoke:"monkeys.design.capability.ontologyManagement.field.shareOperation.revoke",targetType:"monkeys.design.capability.ontologyManagement.field.targetType.label",targetTypeUser:"monkeys.design.capability.ontologyManagement.field.targetType.user",targetTypeTeam:"monkeys.design.capability.ontologyManagement.field.targetType.team",targetId:"monkeys.design.capability.ontologyManagement.field.targetId",permissions:"monkeys.design.capability.ontologyManagement.field.permissions",expiresAt:"monkeys.design.capability.ontologyManagement.field.expiresAt",actions:Object.freeze({"ontology-create":"monkeys.design.capability.ontologyManagement.action.ontologyCreate","ontology-update":"monkeys.design.capability.ontologyManagement.action.ontologyUpdate","ontology-delete":"monkeys.design.capability.ontologyManagement.action.ontologyDelete","ontology-marker":"monkeys.design.capability.ontologyManagement.action.ontologyMarker","ontology-default-views":"monkeys.design.capability.ontologyManagement.action.ontologyDefaultViews","ontology-snapshot":"monkeys.design.capability.ontologyManagement.action.ontologySnapshot","ontology-import-jsonl":"monkeys.design.capability.ontologyManagement.action.ontologyImportJsonl","ontology-import-records-jsonl":"monkeys.design.capability.ontologyManagement.action.ontologyImportRecordsJsonl","ontology-import-tag-relations-jsonl":"monkeys.design.capability.ontologyManagement.action.ontologyImportTagRelationsJsonl","ontology-import-text-column-jsonl":"monkeys.design.capability.ontologyManagement.action.ontologyImportTextColumnJsonl","ontology-import-json-column-jsonl":"monkeys.design.capability.ontologyManagement.action.ontologyImportJsonColumnJsonl","ontology-import-relation-column-jsonl":"monkeys.design.capability.ontologyManagement.action.ontologyImportRelationColumnJsonl","feature-column-create":"monkeys.design.capability.ontologyManagement.action.featureColumnCreate","feature-column-update":"monkeys.design.capability.ontologyManagement.action.featureColumnUpdate","feature-column-attachment-set":"monkeys.design.capability.ontologyManagement.action.featureColumnAttachmentSet","view-export-jsonl":"monkeys.design.capability.ontologyManagement.action.viewExportJsonl","feature-column-images-export":"monkeys.design.capability.ontologyManagement.action.featureColumnImagesExport","view-create":"monkeys.design.capability.ontologyManagement.action.viewCreate","view-detail":"monkeys.design.capability.ontologyManagement.action.viewDetail","view-convert-to-container":"monkeys.design.capability.ontologyManagement.action.viewConvertToContainer","view-edit-team":"monkeys.design.capability.ontologyManagement.action.viewEditTeam","view-insert-blank-rows":"monkeys.design.capability.ontologyManagement.action.viewInsertBlankRows","view-snapshot":"monkeys.design.capability.ontologyManagement.action.viewSnapshot","view-update":"monkeys.design.capability.ontologyManagement.action.viewUpdate","view-delete":"monkeys.design.capability.ontologyManagement.action.viewDelete","view-share":"monkeys.design.capability.ontologyManagement.action.viewShare"})}),ontologyTrendMatrix:Object.freeze({label:"monkeys.design.capability.ontologyTrendMatrix.label",row:"monkeys.design.capability.ontologyTrendMatrix.row",window:"monkeys.design.capability.ontologyTrendMatrix.window",select:"monkeys.design.capability.ontologyTrendMatrix.select"}),dataContextBar:Object.freeze({label:"monkeys.design.capability.dataContextBar.label",filter:"monkeys.design.capability.dataContextBar.filter",searchLabel:"monkeys.design.capability.dataContextBar.search.label",searchPlaceholder:"monkeys.design.capability.dataContextBar.search.placeholder",clear:"monkeys.design.capability.dataContextBar.clear",clearAll:"monkeys.design.capability.dataContextBar.clearAll",tagFilterClear:"monkeys.design.capability.dataContextBar.tagFilterClear",filterDescription:"monkeys.design.capability.dataContextBar.filterDescription",tagScope:"monkeys.design.capability.dataContextBar.tagScope",currentViewTags:"monkeys.design.capability.dataContextBar.currentViewTags",allTags:"monkeys.design.capability.dataContextBar.allTags",panelFilter:"monkeys.design.capability.dataContextBar.panelFilter",searchTags:"monkeys.design.capability.dataContextBar.searchTags",noAvailableTags:"monkeys.design.capability.dataContextBar.noAvailableTags",loadedAll:"monkeys.design.capability.dataContextBar.loadedAll",refreshTags:"monkeys.design.capability.dataContextBar.refreshTags",confirm:"monkeys.design.capability.dataContextBar.confirm",tagPanel:"monkeys.design.capability.dataContextBar.tagPanel",selectPanel:"monkeys.design.capability.dataContextBar.selectPanel",noPanels:"monkeys.design.capability.dataContextBar.noPanels",noPanelGroups:"monkeys.design.capability.dataContextBar.noPanelGroups",singleSelect:"monkeys.design.capability.dataContextBar.singleSelect",multiSelect:"monkeys.design.capability.dataContextBar.multiSelect",defaultGroup:"monkeys.design.capability.dataContextBar.defaultGroup",more:"monkeys.design.capability.dataContextBar.more",dashboardContext:"monkeys.design.capability.dataContextBar.dashboardContext",contextCount:"monkeys.design.capability.dataContextBar.contextCount",fields:Object.freeze({search:"monkeys.design.capability.dataContextBar.field.search",tagIds:"monkeys.design.capability.dataContextBar.field.tagIds",tagGroupIds:"monkeys.design.capability.dataContextBar.field.tagGroupIds",timeFrom:"monkeys.design.capability.dataContextBar.field.timeFrom",timeTo:"monkeys.design.capability.dataContextBar.field.timeTo",clickedField:"monkeys.design.capability.dataContextBar.field.clickedField",clickedValue:"monkeys.design.capability.dataContextBar.field.clickedValue",dashboardDrilldown:"monkeys.design.capability.dataContextBar.field.dashboardDrilldown"})})});Object.freeze({"en-US":Object.freeze({"monkeys.design.capability.agentConversation.label":"Agent conversation","monkeys.design.capability.agentConversation.description":"Persistent conversation through an authenticated Agent runtime.","monkeys.design.capability.reportDocument.label":"Report document","monkeys.design.capability.reportDocument.description":"Read a projected report with managed media.",[y.ontologyManagement.markerDescription]:"Configure the ontology marker and default views.",[y.ontologyManagement.label]:"Marker name",[y.ontologyManagement.targetOntology]:"Target ontology",[y.ontologyManagement.templateKey]:"Template key",[y.ontologyManagement.templateName]:"View name",[y.ontologyManagement.templateDescription]:"View description",[y.ontologyManagement.templateTags]:"Tag filters",[y.ontologyManagement.templateTagsDescription]:"Choose the tags included, matched, or excluded by this view.",[y.ontologyManagement.creatorCurrentUser]:"Only show records created by the current user",[y.ontologyManagement.creatorCurrentUserShort]:"Current user",[y.ontologyManagement.defaultViewTemplatesDescription]:"Configure default views and their filters for this ontology.",[y.ontologyManagement.defaultViewTemplate]:"Default view template",[y.ontologyManagement.defaultSelectedView]:"Open by default",[y.ontologyManagement.tagFilterEnabled]:"Tag filters configured",[y.ontologyManagement.tagFilterEmpty]:"No tag filters",[y.ontologyManagement.tableColumnsSummary]:"{count} table columns configured",[y.ontologyManagement.editTemplateDetails]:"Edit view template",[y.ontologyManagement.editTemplateDetailsDescription]:"Configure the name, order, and filters.",[y.ontologyManagement.defaultViewTemplates]:"Default view templates",[y.ontologyManagement.markerExists]:"Ontology marker exists",[y.ontologyManagement.filterInclude]:"Include all",[y.ontologyManagement.filterAny]:"Match any",[y.ontologyManagement.filterExclude]:"Exclude",[y.ontologyManagement.filterNoTags]:"No matching tags",[y.ontologyManagement.filterSearch]:"Search tags",[y.ontologyManagement.filterTagGroup]:"Tag group",[y.ontologyManagement.filterAllGroups]:"All tag groups",[y.ontologyManagement.filterAddOrGroup]:"Add OR group",[y.ontologyManagement.filterNoOrGroups]:"No OR groups",[y.ontologyManagement.filterOrGroup]:"OR group {n}",[y.ontologyManagement.filterDeleteGroup]:"Delete group",[y.ontologyManagement.filterSupplement]:"Supplement rules for {name}",[y.ontologyManagement.filterConfigureSupplement]:"Configure supplement rules",[y.ontologyManagement.filterClearSupplement]:"Clear supplement rules",[y.ontologyManagement.filterSupplementMode]:"Match mode",[y.ontologyManagement.filterModeOr]:"Any condition (OR)",[y.ontologyManagement.filterModeAnd]:"All conditions (AND)",[y.ontologyManagement.filterModeCombination]:"Combined conditions",[y.ontologyManagement.filterRequiredAll]:"Require all tags",[y.ontologyManagement.filterRequiredAny]:"Require at least one tag",[y.ontologyManagement.filterAdvancedRules]:"{count} advanced rules",[y.ontologyManagement.filterAdvancedRulesDescription]:"Existing rules are preserved unless explicitly removed.",[y.ontologyManagement.filterRemoveAdvancedRules]:"Remove advanced rules",[y.ontologyManagement.deleteTemplate]:"Delete template",[y.ontologyManagement.deleteMarker]:"Delete marker",[y.ontologyManagement.createDefaultViews]:"Create default views",[y.ontologyManagement.addTemplate]:"Add view template",[y.ontologyManagement.noTemplates]:"No default view templates",[y.ontologyManagement.actions["ontology-marker"]]:"Set ontology marker",[y.ontologyManagement.actions["view-detail"]]:"View details",[y.ontologyManagement.actions["view-convert-to-container"]]:"Convert to enhanced view",[y.ontologyManagement.actions["view-edit-team"]]:"Edit view team",[y.ontologyManagement.actions["view-insert-blank-rows"]]:"Insert blank rows",[y.ontologyManagement.actions["view-snapshot"]]:"Import to new Ontology",[y.ontologyManagement.targetTeamId]:"Target team ID",[y.ontologyManagement.currentTeamId]:"Current team ID",[y.ontologyManagement.count]:"Row count",[y.ontologyManagement.blankRowLabel]:"Blank row label","monkeys.design.capability.pagination.previous":"Previous page","monkeys.design.capability.pagination.next":"Next page","monkeys.design.iconPicker.confirm":"Confirm","monkeys.design.iconPicker.categories":"Categories","monkeys.design.iconPicker.icon":"Icon","monkeys.design.iconPicker.choose":"Choose an icon","monkeys.design.iconPicker.current":"Current icon","monkeys.design.iconPicker.reset":"Reset","monkeys.design.iconPicker.search":"Search icons","monkeys.design.iconPicker.category":"Category","monkeys.design.iconPicker.background":"Background color","monkeys.design.iconPicker.upload":"Upload icon","monkeys.design.iconPicker.uploadFailed":"Icon upload failed","monkeys.design.iconPicker.loading":"Loading icons","monkeys.design.iconPicker.retry":"Retry","monkeys.design.iconPicker.empty":"No matching icons","monkeys.design.iconPicker.close":"Close","monkeys.design.iconPicker.emoji":"Emoji","monkeys.design.iconPicker.catalogFailed":"Unable to load icons","monkeys.design.emojiPanel.loading":"Loading emoji","monkeys.design.emojiPanel.unavailable":"Unable to load emoji","monkeys.design.capability.choicePicker.label":"Choice picker","monkeys.design.capability.choicePicker.description":"Search and select a paginated collection.","monkeys.design.capability.runtimeTerminal.status":"Terminal","monkeys.design.capability.runtimeTerminal.waiting":"Connecting to terminal\u2026","monkeys.design.capability.recordEditor.add":"Add item","monkeys.design.capability.recordEditor.remove":"Remove item","monkeys.design.capability.recordEditor.moveUp":"Move up","monkeys.design.capability.recordEditor.moveDown":"Move down","monkeys.design.capability.recordEditor.reset":"Reset","monkeys.design.capability.imageUpload.sizeHint":"One image, up to {{size}} MB","monkeys.design.capability.imageUpload.title":"Click or drag an image here","monkeys.design.capability.imageUpload.hint":"Paste an image or image link","monkeys.design.capability.imageUpload.paste":"Paste from clipboard","monkeys.design.capability.imageUpload.replace":"Replace image","monkeys.design.capability.imageUpload.clipboardUnavailable":"Clipboard access is unavailable. Paste with your keyboard or choose a file.","monkeys.design.capability.imageUpload.clipboardEmpty":"No image or image link was found in the clipboard.","monkeys.design.capability.filePicker.label":"Choose file","monkeys.design.capability.mediaDraft.choose":"Add images","monkeys.design.capability.mediaDraft.hint":"Up to {count} images, {size} MB each. Uploaded when you save.","monkeys.design.capability.mediaDraft.replace":"Replace","monkeys.design.capability.mediaDraft.preview":"Preview image","monkeys.design.capability.mediaDraft.previewPrevious":"Previous image","monkeys.design.capability.mediaDraft.previewNext":"Next image","monkeys.design.capability.mediaDraft.count":"Too many images. Remove an image before adding more.","monkeys.design.capability.mediaDraft.type":"Choose image files.","monkeys.design.capability.mediaDraft.size":"An image is empty or exceeds the allowed size.","monkeys.design.capability.mediaDraft.failed":"Images could not be selected. Try again.","monkeys.design.capability.mediaDraft.unavailable":"Preview unavailable","monkeys.design.capability.mediaDraft.previous":"Move image earlier","monkeys.design.capability.mediaDraft.next":"Move image later","monkeys.design.capability.mediaDraft.remove":"Remove","monkeys.design.capability.filePicker.description":"Select a local file for a governed action.","monkeys.design.capability.recordEditor.removeSelection":"Remove {{name}}","monkeys.design.capability.fileUpload.remove":"Remove {{name}}","monkeys.design.capability.fileUpload.add":"Add attachments","monkeys.design.capability.recordEditor.saveChanges":"Save changes","monkeys.design.capability.fileUpload.drop":"or drop files here","monkeys.design.capability.fileUpload.uploading":"Uploading\u2026","monkeys.design.capability.fileUpload.failed":"Upload failed. Please try again.","monkeys.design.capability.fileUpload.limit":"You can attach up to {{count}} files.","monkeys.design.capability.filePicker.cancel":"Clear file","monkeys.design.capability.filePicker.tooLarge":"The file exceeds the allowed size.","monkeys.design.capability.filePicker.invalidType":"Choose a supported file type.","monkeys.design.capability.filePicker.registrationFailed":"The file could not be selected. Try again.","monkeys.design.capability.recordEditor.date.invalid":"Enter a valid date and time within the allowed range.","monkeys.design.capability.recordEditor.month.choose":"Choose year and month","monkeys.design.capability.recordEditor.month.previous":"Previous year or group of years","monkeys.design.capability.recordEditor.month.next":"Next year or group of years","monkeys.design.capability.recordEditor.month.clear":"Clear","monkeys.design.capability.recordEditor.clear":"Clear","monkeys.design.capability.recordEditor.notSet":"Not set","monkeys.design.capability.recordEditor.noOptions":"No matching options","monkeys.design.capability.recordEditor.pick":"Choose","monkeys.design.capability.recordEditor.relationLoading":"Loading","monkeys.design.capability.recordEditor.relationEmpty":"No matching items","monkeys.design.capability.recordEditor.relationFailed":"Could not load items","monkeys.design.capability.recordEditor.relationRetry":"Retry","monkeys.design.capability.recordEditor.relationMore":"Load more","monkeys.design.capability.recordEditor.relationRemove":"Remove","monkeys.design.capability.recordEditor.selectionSummary":"Selected: {{count}}","monkeys.design.capability.recordEditor.sections":"Form sections","monkeys.design.capability.recordEditor.secretKeep":"Keep existing","monkeys.design.capability.recordEditor.treeReorderFailed":"Could not save the order. Reload the list and try again.","monkeys.design.capability.recordEditor.secretMode":"{field} update mode","monkeys.design.capability.recordEditor.secretReplace":"Replace","monkeys.design.capability.recordEditor.secretClear":"Clear","monkeys.design.capability.recordEditor.mapping.targets":"Targets","monkeys.design.capability.recordEditor.mapping.sources":"Sources","monkeys.design.capability.recordEditor.mapping.actions":"Mapping actions","monkeys.design.capability.recordEditor.mapping.addTarget":"Add target","monkeys.design.capability.recordEditor.mapping.removeTarget":"Remove target","monkeys.design.capability.recordEditor.mapping.addSource":"Add source","monkeys.design.capability.recordEditor.mapping.removeSource":"Remove source","monkeys.design.capability.recordEditor.mapping.search":"Search sources","monkeys.design.capability.recordEditor.mapping.emptyTargets":"No targets","monkeys.design.capability.recordEditor.mapping.emptySources":"No sources assigned","monkeys.design.capability.recordEditor.mapping.groupCount":"{count} grouped targets","monkeys.design.capability.recordEditor.mapping.memberCount":"({count})","monkeys.design.capability.recordEditor.mapping.newTarget":"Enter target name","monkeys.design.capability.recordEditor.mapping.rename":"Target name","monkeys.design.capability.recordEditor.mapping.unnamed":"Unnamed target","monkeys.design.capability.recordEditor.mapping.incomplete":"Enter a name and assign at least one source before saving.","monkeys.design.capability.recordEditor.mapping.deleteConfirmation":"Delete \u201C{name}\u201D?","monkeys.design.capability.recordEditor.mapping.confirmDelete":"Delete","monkeys.design.capability.recordEditor.mapping.cancel":"Cancel","monkeys.design.capability.recordEditor.mapping.selectTarget":"Select a target on the left first","monkeys.design.capability.recordEditor.mapping.sourceTabs":"Source list","monkeys.design.capability.recordEditor.mapping.assigned":"Included ({count})","monkeys.design.capability.recordEditor.mapping.available":"Available ({count})","monkeys.design.capability.recordEditor.mapping.selectVisible":"Select current list","monkeys.design.capability.recordEditor.mapping.selected":"{count} selected","monkeys.design.capability.recordEditor.mapping.noMatches":"No matches","monkeys.design.capability.recordEditor.mapping.noAvailable":"No available sources","monkeys.design.capability.recordEditor.mapping.customSource":"Add custom source","monkeys.design.capability.recordEditor.mapping.addCustom":"Add custom source","monkeys.design.capability.recordEditor.mapping.add":"Add","monkeys.design.capability.recordEditor.mapping.addHint":"Add selected sources to this target","monkeys.design.capability.recordEditor.mapping.removeHint":"Remove selected sources from this target","monkeys.design.capability.recordEditor.mapping.currentTarget":"Current target: {name}","monkeys.design.capability.recordEditor.mapping.invalid":"The mapping is invalid.","monkeys.design.capability.recordEditor.mapping.invalidName":"Enter a valid name.","monkeys.design.capability.recordEditor.mapping.alreadyAssigned":"This source belongs to another target.","monkeys.design.capability.recordEditor.mapping.unavailable":"This source is unavailable.","monkeys.design.capability.recordEditor.mapping.added":"Added {count} sources to \u201C{name}\u201D","monkeys.design.capability.recordEditor.mapping.removed":"Removed {count} sources from \u201C{name}\u201D","monkeys.design.capability.recordEditor.mapping.deleted":"Deleted \u201C{name}\u201D",[y.numericSeries.inspect]:"Inspect observation","monkeys.design.capability.summaryChart.label":"Summary chart","monkeys.design.capability.dataToolbar.moreActions":"More actions","monkeys.design.capability.summaryChart.description":"Compare numeric series and category totals.","monkeys.design.capability.sparkline.label":"Sparkline","monkeys.design.capability.sparkline.description":"Show a compact, axis-free trend inside dense surfaces such as metric tiles.",[y.numericSeries.noPoints]:"No observations in this range",[y.numericSeries.point]:"{xLabel} {x}, {yLabel} {y}",[y.numericSeries.label]:"Numeric series",[y.numericSeries.description]:"Inspect numeric observations with range zoom and expansion.",[y.numericSeries.start]:"Range start",[y.numericSeries.end]:"Range end",[y.numericSeries.reset]:"Reset range",[y.numericSeries.expand]:"Expand chart",[y.numericSeries.close]:"Close chart",[y.shellLayout.resizeSidebar]:"Resize sidebar",[y.shellLayout.collapseSidebar]:"Collapse sidebar",[y.shellLayout.expandSidebar]:"Expand sidebar",[y.shellLayout.resizeAside]:"Resize detail panel",[y.ontologyNavigator.moreActions]:"More actions",[y.dataToolbar.addRow]:"Add row",[y.dataToolbar.blankRowName]:"Blank Row",[y.ontologyTrendMatrix.label]:"Ontology trend matrix",[y.ontologyTrendMatrix.row]:"Row",[y.ontologyTrendMatrix.window]:"Visible rows {start}-{end} of {total}",[y.ontologyTrendMatrix.select]:"Select {row}, {column}, {value}",[y.dataContextBar.label]:"Data filters and drilldown context",[y.dataContextBar.filter]:"Filters",[y.dataContextBar.searchLabel]:"Search data",[y.dataContextBar.searchPlaceholder]:"Search",[y.dataContextBar.clear]:"Clear",[y.dataContextBar.clearAll]:"Clear all",[y.dataContextBar.tagFilterClear]:"Clear",[y.dataContextBar.filterDescription]:"Filter assets by selecting tags via tag panel or manual search.",[y.dataContextBar.tagScope]:"Tag scope",[y.dataContextBar.currentViewTags]:"Current view",[y.dataContextBar.allTags]:"All tags",[y.dataContextBar.panelFilter]:"Panel filter",[y.dataContextBar.searchTags]:"Search tags",[y.dataContextBar.noAvailableTags]:"No available tags",[y.dataContextBar.loadedAll]:"All loaded",[y.dataContextBar.refreshTags]:"Refresh tags",[y.dataContextBar.confirm]:"Confirm",[y.dataContextBar.tagPanel]:"Tag panel",[y.dataContextBar.selectPanel]:"Select a panel",[y.dataContextBar.noPanels]:"No available panels",[y.dataContextBar.noPanelGroups]:"No tag groups in this panel",[y.dataContextBar.singleSelect]:"Single select",[y.dataContextBar.multiSelect]:"Multi select",[y.dataContextBar.defaultGroup]:"Default group",[y.dataContextBar.more]:"+{count} more",[y.dataContextBar.dashboardContext]:"Dashboard context",[y.dataContextBar.contextCount]:"{count} context values",[y.dataContextBar.fields.search]:"Search",[y.dataContextBar.fields.tagIds]:"Tags",[y.dataContextBar.fields.tagGroupIds]:"Tag groups",[y.dataContextBar.fields.timeFrom]:"From",[y.dataContextBar.fields.timeTo]:"To",[y.dataContextBar.fields.clickedField]:"Drilldown field",[y.dataContextBar.fields.clickedValue]:"Drilldown value",[y.dataContextBar.fields.dashboardDrilldown]:"Dashboard drilldown"}),"zh-CN":Object.freeze({"monkeys.design.capability.agentConversation.label":"\u667A\u80FD\u4F53\u5BF9\u8BDD","monkeys.design.capability.agentConversation.description":"\u901A\u8FC7\u5DF2\u8BA4\u8BC1\u667A\u80FD\u4F53\u8FD0\u884C\u65F6\u8FDB\u884C\u6301\u4E45\u5316\u5BF9\u8BDD\u3002","monkeys.design.capability.reportDocument.label":"\u62A5\u544A\u6587\u6863","monkeys.design.capability.reportDocument.description":"\u9605\u8BFB\u5305\u542B\u6258\u7BA1\u5A92\u4F53\u7684\u62A5\u544A\u6295\u5F71\u3002",[y.ontologyManagement.markerDescription]:"\u914D\u7F6E\u4ED3\u5E93\u6807\u8BB0\u548C\u9ED8\u8BA4\u89C6\u56FE\u3002",[y.ontologyManagement.label]:"\u6807\u8BB0\u540D\u79F0",[y.ontologyManagement.targetOntology]:"\u76EE\u6807\u4ED3\u5E93",[y.ontologyManagement.templateKey]:"\u6A21\u677F\u6807\u8BC6",[y.ontologyManagement.templateName]:"\u89C6\u56FE\u540D\u79F0",[y.ontologyManagement.templateDescription]:"\u89C6\u56FE\u63CF\u8FF0",[y.ontologyManagement.templateTags]:"\u6807\u7B7E\u7B5B\u9009",[y.ontologyManagement.templateTagsDescription]:"\u8BBE\u7F6E\u8BE5\u89C6\u56FE\u5305\u542B\u3001\u5339\u914D\u6216\u6392\u9664\u7684\u6807\u7B7E\u3002",[y.ontologyManagement.creatorCurrentUser]:"\u4EC5\u663E\u793A\u5F53\u524D\u7528\u6237\u521B\u5EFA\u7684\u6570\u636E",[y.ontologyManagement.creatorCurrentUserShort]:"\u5F53\u524D\u7528\u6237",[y.ontologyManagement.defaultViewTemplatesDescription]:"\u4E3A\u4ED3\u5E93\u914D\u7F6E\u9ED8\u8BA4\u89C6\u56FE\u53CA\u5176\u7B5B\u9009\u6761\u4EF6\u3002",[y.ontologyManagement.defaultViewTemplate]:"\u9ED8\u8BA4\u89C6\u56FE\u6A21\u677F",[y.ontologyManagement.defaultSelectedView]:"\u9ED8\u8BA4\u6253\u5F00",[y.ontologyManagement.tagFilterEnabled]:"\u5DF2\u914D\u7F6E\u6807\u7B7E\u7B5B\u9009",[y.ontologyManagement.tagFilterEmpty]:"\u672A\u914D\u7F6E\u6807\u7B7E\u7B5B\u9009",[y.ontologyManagement.tableColumnsSummary]:"\u5DF2\u914D\u7F6E {count} \u4E2A\u8868\u683C\u5217",[y.ontologyManagement.editTemplateDetails]:"\u7F16\u8F91\u89C6\u56FE\u6A21\u677F",[y.ontologyManagement.editTemplateDetailsDescription]:"\u914D\u7F6E\u540D\u79F0\u3001\u6392\u5E8F\u548C\u7B5B\u9009\u6761\u4EF6\u3002",[y.ontologyManagement.defaultViewTemplates]:"\u9ED8\u8BA4\u89C6\u56FE\u6A21\u677F",[y.ontologyManagement.markerExists]:"\u5DF2\u6709\u4ED3\u5E93\u6807\u8BB0",[y.ontologyManagement.filterInclude]:"\u5168\u90E8\u5305\u542B",[y.ontologyManagement.filterAny]:"\u5339\u914D\u4EFB\u610F",[y.ontologyManagement.filterExclude]:"\u6392\u9664",[y.ontologyManagement.filterNoTags]:"\u6CA1\u6709\u5339\u914D\u7684\u6807\u7B7E",[y.ontologyManagement.filterSearch]:"\u641C\u7D22\u6807\u7B7E",[y.ontologyManagement.filterTagGroup]:"\u6807\u7B7E\u7EC4",[y.ontologyManagement.filterAllGroups]:"\u5168\u90E8\u6807\u7B7E\u7EC4",[y.ontologyManagement.filterAddOrGroup]:"\u6DFB\u52A0\u6216\u6761\u4EF6\u7EC4",[y.ontologyManagement.filterNoOrGroups]:"\u6682\u65E0\u6216\u6761\u4EF6\u7EC4",[y.ontologyManagement.filterOrGroup]:"\u6216\u6761\u4EF6\u7EC4 {n}",[y.ontologyManagement.filterDeleteGroup]:"\u5220\u9664\u6761\u4EF6\u7EC4",[y.ontologyManagement.filterSupplement]:"{name} \u7684\u8865\u5145\u89C4\u5219",[y.ontologyManagement.filterConfigureSupplement]:"\u914D\u7F6E\u8865\u5145\u89C4\u5219",[y.ontologyManagement.filterClearSupplement]:"\u6E05\u9664\u8865\u5145\u89C4\u5219",[y.ontologyManagement.filterSupplementMode]:"\u5339\u914D\u65B9\u5F0F",[y.ontologyManagement.filterModeOr]:"\u4EFB\u610F\u6761\u4EF6\uFF08OR\uFF09",[y.ontologyManagement.filterModeAnd]:"\u5168\u90E8\u6761\u4EF6\uFF08AND\uFF09",[y.ontologyManagement.filterModeCombination]:"\u7EC4\u5408\u6761\u4EF6",[y.ontologyManagement.filterRequiredAll]:"\u5FC5\u987B\u5305\u542B\u5168\u90E8\u6807\u7B7E",[y.ontologyManagement.filterRequiredAny]:"\u81F3\u5C11\u5305\u542B\u4E00\u4E2A\u6807\u7B7E",[y.ontologyManagement.filterAdvancedRules]:"{count} \u9879\u9AD8\u7EA7\u89C4\u5219",[y.ontologyManagement.filterAdvancedRulesDescription]:"\u5DF2\u6709\u89C4\u5219\u5C06\u4FDD\u7559\uFF0C\u9664\u975E\u660E\u786E\u79FB\u9664\u3002",[y.ontologyManagement.filterRemoveAdvancedRules]:"\u79FB\u9664\u9AD8\u7EA7\u89C4\u5219",[y.ontologyManagement.deleteTemplate]:"\u5220\u9664\u6A21\u677F",[y.ontologyManagement.deleteMarker]:"\u5220\u9664\u4ED3\u5E93\u6807\u8BB0",[y.ontologyManagement.createDefaultViews]:"\u521B\u5EFA\u9ED8\u8BA4\u89C6\u56FE",[y.ontologyManagement.addTemplate]:"\u6DFB\u52A0\u89C6\u56FE\u6A21\u677F",[y.ontologyManagement.noTemplates]:"\u6682\u65E0\u9ED8\u8BA4\u89C6\u56FE\u6A21\u677F",[y.ontologyManagement.actions["ontology-marker"]]:"\u8BBE\u7F6E\u4ED3\u5E93\u6807\u8BB0",[y.ontologyManagement.actions["view-detail"]]:"\u67E5\u770B\u8BE6\u60C5",[y.ontologyManagement.actions["view-convert-to-container"]]:"\u8F6C\u5316\u4E3A\u589E\u5F3A\u89C6\u56FE",[y.ontologyManagement.actions["view-edit-team"]]:"\u4FEE\u6539\u89C6\u56FE\u56E2\u961F",[y.ontologyManagement.actions["view-insert-blank-rows"]]:"\u63D2\u5165\u7A7A\u767D\u884C",[y.ontologyManagement.actions["view-snapshot"]]:"\u5BFC\u5165\u5230\u65B0 Ontology",[y.ontologyManagement.targetTeamId]:"\u76EE\u6807\u56E2\u961F ID",[y.ontologyManagement.currentTeamId]:"\u5F53\u524D\u56E2\u961F ID",[y.ontologyManagement.count]:"\u884C\u6570",[y.ontologyManagement.blankRowLabel]:"\u7A7A\u767D\u884C\u540D\u79F0","monkeys.design.capability.pagination.previous":"\u4E0A\u4E00\u9875","monkeys.design.capability.pagination.next":"\u4E0B\u4E00\u9875","monkeys.design.iconPicker.confirm":"\u786E\u8BA4","monkeys.design.iconPicker.categories":"\u5206\u7C7B","monkeys.design.iconPicker.icon":"\u56FE\u6807","monkeys.design.iconPicker.choose":"\u9009\u62E9\u56FE\u6807","monkeys.design.iconPicker.current":"\u5F53\u524D\u56FE\u6807","monkeys.design.iconPicker.reset":"\u91CD\u7F6E","monkeys.design.iconPicker.search":"\u641C\u7D22\u56FE\u6807","monkeys.design.iconPicker.category":"\u5206\u7C7B","monkeys.design.iconPicker.background":"\u80CC\u666F\u989C\u8272","monkeys.design.iconPicker.upload":"\u4E0A\u4F20\u56FE\u6807","monkeys.design.iconPicker.uploadFailed":"\u56FE\u6807\u4E0A\u4F20\u5931\u8D25","monkeys.design.iconPicker.loading":"\u6B63\u5728\u52A0\u8F7D\u56FE\u6807","monkeys.design.iconPicker.retry":"\u91CD\u8BD5","monkeys.design.iconPicker.empty":"\u6CA1\u6709\u5339\u914D\u7684\u56FE\u6807","monkeys.design.iconPicker.close":"\u5173\u95ED","monkeys.design.iconPicker.emoji":"\u8868\u60C5","monkeys.design.iconPicker.catalogFailed":"\u65E0\u6CD5\u52A0\u8F7D\u56FE\u6807","monkeys.design.emojiPanel.loading":"\u6B63\u5728\u52A0\u8F7D\u8868\u60C5","monkeys.design.emojiPanel.unavailable":"\u65E0\u6CD5\u52A0\u8F7D\u8868\u60C5","monkeys.design.capability.choicePicker.label":"\u9009\u9879\u9009\u62E9\u5668","monkeys.design.capability.choicePicker.description":"\u641C\u7D22\u5E76\u9009\u62E9\u5206\u9875\u96C6\u5408\u4E2D\u7684\u9009\u9879\u3002","monkeys.design.capability.summaryChart.label":"\u6C47\u603B\u56FE\u8868","monkeys.design.capability.dataToolbar.moreActions":"\u66F4\u591A\u64CD\u4F5C","monkeys.design.capability.summaryChart.description":"\u6BD4\u8F83\u6570\u503C\u5E8F\u5217\u4E0E\u5206\u7C7B\u6C47\u603B\u3002","monkeys.design.capability.sparkline.label":"\u8FF7\u4F60\u8D8B\u52BF\u7EBF","monkeys.design.capability.sparkline.description":"\u5728\u6307\u6807\u5361\u7B49\u7D27\u51D1\u533A\u57DF\u5C55\u793A\u65E0\u5750\u6807\u8F74\u7684\u8FF7\u4F60\u8D8B\u52BF\u3002","monkeys.design.capability.runtimeTerminal.status":"\u7EC8\u7AEF","monkeys.design.capability.runtimeTerminal.waiting":"\u6B63\u5728\u8FDE\u63A5\u7EC8\u7AEF\u2026","monkeys.design.capability.recordEditor.add":"\u6DFB\u52A0\u6761\u76EE","monkeys.design.capability.recordEditor.remove":"\u5220\u9664\u6761\u76EE","monkeys.design.capability.recordEditor.moveUp":"\u4E0A\u79FB","monkeys.design.capability.recordEditor.moveDown":"\u4E0B\u79FB","monkeys.design.capability.recordEditor.reset":"\u91CD\u7F6E","monkeys.design.capability.imageUpload.sizeHint":"\u5355\u5F20\u56FE\u7247\uFF0C\u6700\u5927 {{size}} MB","monkeys.design.capability.imageUpload.title":"\u70B9\u51FB\u6216\u62D6\u62FD\u4E0A\u4F20\u56FE\u7247","monkeys.design.capability.imageUpload.hint":"\u652F\u6301\u7C98\u8D34\u56FE\u7247\u6216\u56FE\u7247\u94FE\u63A5","monkeys.design.capability.imageUpload.paste":"\u4ECE\u526A\u8D34\u677F\u7C98\u8D34","monkeys.design.capability.imageUpload.replace":"\u66FF\u6362\u56FE\u7247","monkeys.design.capability.imageUpload.clipboardUnavailable":"\u65E0\u6CD5\u8BFB\u53D6\u526A\u8D34\u677F\uFF0C\u8BF7\u4F7F\u7528\u952E\u76D8\u7C98\u8D34\u6216\u9009\u62E9\u6587\u4EF6\u3002","monkeys.design.capability.imageUpload.clipboardEmpty":"\u526A\u8D34\u677F\u4E2D\u6CA1\u6709\u56FE\u7247\u6216\u56FE\u7247\u94FE\u63A5\u3002","monkeys.design.capability.filePicker.label":"\u9009\u62E9\u6587\u4EF6","monkeys.design.capability.mediaDraft.choose":"\u6DFB\u52A0\u56FE\u7247","monkeys.design.capability.mediaDraft.hint":"\u6BCF\u5F20\u4E0D\u8D85\u8FC7 {size} MB\uFF0C\u6700\u591A {count} \u5F20\u3002\u70B9\u51FB\u300C\u4FDD\u5B58\u300D\u540E\u4E0A\u4F20\u3002","monkeys.design.capability.mediaDraft.replace":"\u66FF\u6362","monkeys.design.capability.mediaDraft.preview":"\u9884\u89C8\u56FE\u7247","monkeys.design.capability.mediaDraft.previewPrevious":"\u4E0A\u4E00\u5F20","monkeys.design.capability.mediaDraft.previewNext":"\u4E0B\u4E00\u5F20","monkeys.design.capability.mediaDraft.count":"\u56FE\u7247\u6570\u91CF\u8D85\u8FC7\u9650\u5236\uFF0C\u8BF7\u79FB\u9664\u540E\u518D\u6DFB\u52A0\u3002","monkeys.design.capability.mediaDraft.type":"\u8BF7\u9009\u62E9\u56FE\u7247\u6587\u4EF6\u3002","monkeys.design.capability.mediaDraft.size":"\u56FE\u7247\u4E3A\u7A7A\u6216\u5927\u5C0F\u8D85\u8FC7\u5141\u8BB8\u8303\u56F4\u3002","monkeys.design.capability.mediaDraft.failed":"\u65E0\u6CD5\u9009\u62E9\u56FE\u7247\uFF0C\u8BF7\u91CD\u8BD5\u3002","monkeys.design.capability.mediaDraft.unavailable":"\u6682\u65E0\u9884\u89C8","monkeys.design.capability.mediaDraft.previous":"\u524D\u79FB\u56FE\u7247","monkeys.design.capability.mediaDraft.next":"\u540E\u79FB\u56FE\u7247","monkeys.design.capability.mediaDraft.remove":"\u79FB\u9664","monkeys.design.capability.filePicker.description":"\u9009\u62E9\u672C\u5730\u6587\u4EF6\u4EE5\u6267\u884C\u53D7\u6CBB\u7406\u64CD\u4F5C\u3002","monkeys.design.capability.recordEditor.removeSelection":"\u79FB\u9664{{name}}","monkeys.design.capability.fileUpload.remove":"\u79FB\u9664{{name}}","monkeys.design.capability.fileUpload.add":"\u6DFB\u52A0\u9644\u4EF6","monkeys.design.capability.recordEditor.saveChanges":"\u4FDD\u5B58\u66F4\u6539","monkeys.design.capability.fileUpload.drop":"\u6216\u5C06\u6587\u4EF6\u62D6\u5230\u8FD9\u91CC","monkeys.design.capability.fileUpload.uploading":"\u6B63\u5728\u4E0A\u4F20\u2026","monkeys.design.capability.fileUpload.failed":"\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\u3002","monkeys.design.capability.fileUpload.limit":"\u6700\u591A\u53EF\u6DFB\u52A0 {{count}} \u4E2A\u9644\u4EF6\u3002","monkeys.design.capability.filePicker.cancel":"\u6E05\u9664\u6587\u4EF6","monkeys.design.capability.filePicker.tooLarge":"\u6587\u4EF6\u5927\u5C0F\u8D85\u8FC7\u5141\u8BB8\u8303\u56F4\u3002","monkeys.design.capability.filePicker.invalidType":"\u8BF7\u9009\u62E9\u652F\u6301\u7684\u6587\u4EF6\u7C7B\u578B\u3002","monkeys.design.capability.filePicker.registrationFailed":"\u65E0\u6CD5\u9009\u62E9\u8BE5\u6587\u4EF6\uFF0C\u8BF7\u91CD\u8BD5\u3002","monkeys.design.capability.recordEditor.date.invalid":"\u8BF7\u8F93\u5165\u5141\u8BB8\u8303\u56F4\u5185\u7684\u6709\u6548\u65E5\u671F\u548C\u65F6\u95F4\u3002","monkeys.design.capability.recordEditor.month.choose":"\u9009\u62E9\u5E74\u6708","monkeys.design.capability.recordEditor.month.previous":"\u4E0A\u4E00\u5E74\u6216\u4E0A\u4E00\u7EC4\u5E74\u4EFD","monkeys.design.capability.recordEditor.month.next":"\u4E0B\u4E00\u5E74\u6216\u4E0B\u4E00\u7EC4\u5E74\u4EFD","monkeys.design.capability.recordEditor.month.clear":"\u6E05\u9664","monkeys.design.capability.recordEditor.clear":"\u6E05\u9664","monkeys.design.capability.recordEditor.notSet":"\u672A\u8BBE\u7F6E","monkeys.design.capability.recordEditor.noOptions":"\u6682\u65E0\u5339\u914D\u9009\u9879","monkeys.design.capability.recordEditor.pick":"\u9009\u62E9","monkeys.design.capability.recordEditor.relationLoading":"\u52A0\u8F7D\u4E2D","monkeys.design.capability.recordEditor.relationEmpty":"\u6CA1\u6709\u5339\u914D\u9879","monkeys.design.capability.recordEditor.relationFailed":"\u5019\u9009\u9879\u52A0\u8F7D\u5931\u8D25","monkeys.design.capability.recordEditor.relationRetry":"\u91CD\u8BD5","monkeys.design.capability.recordEditor.relationMore":"\u52A0\u8F7D\u66F4\u591A","monkeys.design.capability.recordEditor.relationRemove":"\u79FB\u9664","monkeys.design.capability.recordEditor.selectionSummary":"\u5DF2\u9009 {{count}} \u9879","monkeys.design.capability.recordEditor.sections":"\u8868\u5355\u5206\u7C7B","monkeys.design.capability.recordEditor.secretKeep":"\u4FDD\u7559\u73B0\u6709\u503C","monkeys.design.capability.recordEditor.treeReorderFailed":"\u987A\u5E8F\u4FDD\u5B58\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u52A0\u8F7D\u5217\u8868\u540E\u91CD\u8BD5\u3002","monkeys.design.capability.recordEditor.secretMode":"{field} \u66F4\u65B0\u65B9\u5F0F","monkeys.design.capability.recordEditor.secretReplace":"\u66FF\u6362","monkeys.design.capability.recordEditor.secretClear":"\u6E05\u9664","monkeys.design.capability.recordEditor.mapping.targets":"\u5F52\u5E76\u90E8\u95E8","monkeys.design.capability.recordEditor.mapping.sources":"\u539F\u59CB\u90E8\u95E8","monkeys.design.capability.recordEditor.mapping.actions":"\u5F52\u5E76\u64CD\u4F5C","monkeys.design.capability.recordEditor.mapping.addTarget":"\u65B0\u589E\u5F52\u5E76\u90E8\u95E8","monkeys.design.capability.recordEditor.mapping.removeTarget":"\u5220\u9664\u5F52\u5E76\u90E8\u95E8","monkeys.design.capability.recordEditor.mapping.addSource":"\u52A0\u5165\u5F53\u524D\u5F52\u5E76","monkeys.design.capability.recordEditor.mapping.removeSource":"\u79FB\u51FA\u5F53\u524D\u5F52\u5E76","monkeys.design.capability.recordEditor.mapping.search":"\u641C\u7D22\u539F\u59CB\u90E8\u95E8","monkeys.design.capability.recordEditor.mapping.emptyTargets":"\u6682\u65E0\u5F52\u5E76\u90E8\u95E8","monkeys.design.capability.recordEditor.mapping.emptySources":"\u5F53\u524D\u5F52\u5E76\u90E8\u95E8\u6682\u65E0\u539F\u59CB\u90E8\u95E8","monkeys.design.capability.recordEditor.mapping.groupCount":"\u5171 {count} \u4E2A\u5F52\u5E76\u90E8\u95E8","monkeys.design.capability.recordEditor.mapping.memberCount":"\uFF08{count} \u4E2A\uFF09","monkeys.design.capability.recordEditor.mapping.newTarget":"\u8F93\u5165\u5F52\u5E76\u90E8\u95E8\u540D\u79F0","monkeys.design.capability.recordEditor.mapping.rename":"\u5F52\u5E76\u90E8\u95E8\u540D\u79F0","monkeys.design.capability.recordEditor.mapping.unnamed":"\u672A\u547D\u540D\u5F52\u5E76\u90E8\u95E8","monkeys.design.capability.recordEditor.mapping.incomplete":"\u8BF7\u586B\u5199\u540D\u79F0\u5E76\u81F3\u5C11\u52A0\u5165\u4E00\u4E2A\u539F\u59CB\u90E8\u95E8\u540E\u4FDD\u5B58\u3002","monkeys.design.capability.recordEditor.mapping.deleteConfirmation":"\u786E\u5B9A\u5220\u9664\u201C{name}\u201D\u5417\uFF1F","monkeys.design.capability.recordEditor.mapping.confirmDelete":"\u786E\u8BA4\u5220\u9664","monkeys.design.capability.recordEditor.mapping.cancel":"\u53D6\u6D88","monkeys.design.capability.recordEditor.mapping.selectTarget":"\u8BF7\u5148\u9009\u62E9\u5DE6\u4FA7\u5F52\u5E76\u90E8\u95E8","monkeys.design.capability.recordEditor.mapping.sourceTabs":"\u539F\u59CB\u90E8\u95E8\u5217\u8868","monkeys.design.capability.recordEditor.mapping.assigned":"\u5DF2\u5305\u542B\uFF08{count}\uFF09","monkeys.design.capability.recordEditor.mapping.available":"\u53EF\u6DFB\u52A0\uFF08{count}\uFF09","monkeys.design.capability.recordEditor.mapping.selectVisible":"\u5168\u9009\u5F53\u524D\u5217\u8868","monkeys.design.capability.recordEditor.mapping.selected":"\u5DF2\u9009 {count} \u4E2A","monkeys.design.capability.recordEditor.mapping.noMatches":"\u6CA1\u6709\u5339\u914D\u7684\u90E8\u95E8","monkeys.design.capability.recordEditor.mapping.noAvailable":"\u6CA1\u6709\u53EF\u6DFB\u52A0\u7684\u90E8\u95E8","monkeys.design.capability.recordEditor.mapping.customSource":"\u6DFB\u52A0\u81EA\u5B9A\u4E49\u90E8\u95E8","monkeys.design.capability.recordEditor.mapping.addCustom":"\u6DFB\u52A0\u81EA\u5B9A\u4E49\u90E8\u95E8","monkeys.design.capability.recordEditor.mapping.add":"\u6DFB\u52A0","monkeys.design.capability.recordEditor.mapping.addHint":"\u5C06\u9009\u4E2D\u7684\u90E8\u95E8\u52A0\u5165\u5F53\u524D\u5F52\u5E76","monkeys.design.capability.recordEditor.mapping.removeHint":"\u5C06\u9009\u4E2D\u7684\u90E8\u95E8\u79FB\u51FA\u5F53\u524D\u5F52\u5E76","monkeys.design.capability.recordEditor.mapping.currentTarget":"\u5F53\u524D\u5F52\u5E76\uFF1A{name}","monkeys.design.capability.recordEditor.mapping.invalid":"\u5F52\u5E76\u914D\u7F6E\u65E0\u6548\uFF0C\u8BF7\u68C0\u67E5\u540D\u79F0\u548C\u90E8\u95E8\u5F52\u5C5E\u3002","monkeys.design.capability.recordEditor.mapping.invalidName":"\u8BF7\u8F93\u5165\u6709\u6548\u540D\u79F0\u3002","monkeys.design.capability.recordEditor.mapping.alreadyAssigned":"\u8BE5\u90E8\u95E8\u5DF2\u7ECF\u5F52\u5165\u5176\u4ED6\u5F52\u5E76\u90E8\u95E8\u3002","monkeys.design.capability.recordEditor.mapping.unavailable":"\u8BE5\u90E8\u95E8\u5F53\u524D\u4E0D\u53EF\u6DFB\u52A0\u3002","monkeys.design.capability.recordEditor.mapping.added":"\u5DF2\u5411\u201C{name}\u201D\u52A0\u5165 {count} \u4E2A\u90E8\u95E8","monkeys.design.capability.recordEditor.mapping.removed":"\u5DF2\u4ECE\u201C{name}\u201D\u79FB\u51FA {count} \u4E2A\u90E8\u95E8","monkeys.design.capability.recordEditor.mapping.deleted":"\u5DF2\u5220\u9664\u201C{name}\u201D",[y.numericSeries.inspect]:"\u67E5\u770B\u89C2\u6D4B\u70B9",[y.numericSeries.noPoints]:"\u6B64\u8303\u56F4\u5185\u6CA1\u6709\u89C2\u6D4B\u70B9",[y.numericSeries.point]:"{xLabel} {x}, {yLabel} {y}",[y.numericSeries.label]:"\u6570\u503C\u5E8F\u5217",[y.numericSeries.description]:"\u67E5\u770B\u6570\u503C\u89C2\u6D4B\uFF0C\u7F29\u653E\u8303\u56F4\u5E76\u653E\u5927\u56FE\u8868\u3002",[y.numericSeries.start]:"\u8303\u56F4\u8D77\u70B9",[y.numericSeries.end]:"\u8303\u56F4\u7EC8\u70B9",[y.numericSeries.reset]:"\u91CD\u7F6E\u8303\u56F4",[y.numericSeries.expand]:"\u653E\u5927\u56FE\u8868",[y.numericSeries.close]:"\u5173\u95ED\u56FE\u8868",[y.shellLayout.resizeSidebar]:"\u8C03\u6574\u4FA7\u8FB9\u680F\u5BBD\u5EA6",[y.shellLayout.collapseSidebar]:"\u6536\u8D77\u4FA7\u8FB9\u680F",[y.shellLayout.expandSidebar]:"\u5C55\u5F00\u4FA7\u8FB9\u680F",[y.shellLayout.resizeAside]:"\u8C03\u6574\u8BE6\u60C5\u4FA7\u8FB9\u680F\u5BBD\u5EA6",[y.ontologyNavigator.moreActions]:"\u66F4\u591A\u64CD\u4F5C",[y.dataToolbar.addRow]:"\u6DFB\u52A0\u4E00\u884C",[y.dataToolbar.blankRowName]:"\u7A7A\u767D\u884C",[y.ontologyTrendMatrix.label]:"\u672C\u4F53\u8D8B\u52BF\u77E9\u9635",[y.ontologyTrendMatrix.row]:"\u884C",[y.ontologyTrendMatrix.window]:"\u5F53\u524D\u663E\u793A\u7B2C {start}-{end} \u884C\uFF0C\u5171 {total} \u884C",[y.ontologyTrendMatrix.select]:"\u9009\u62E9 {row}\u3001{column}\u3001{value}",[y.dataContextBar.label]:"\u6570\u636E\u7B5B\u9009\u4E0E\u94BB\u53D6\u4E0A\u4E0B\u6587",[y.dataContextBar.filter]:"\u7B5B\u9009",[y.dataContextBar.searchLabel]:"\u641C\u7D22\u6570\u636E",[y.dataContextBar.searchPlaceholder]:"\u641C\u7D22",[y.dataContextBar.clear]:"\u6E05\u9664",[y.dataContextBar.clearAll]:"\u5168\u90E8\u6E05\u9664",[y.dataContextBar.tagFilterClear]:"\u6E05\u7A7A",[y.dataContextBar.filterDescription]:"\u901A\u8FC7\u6807\u7B7E\u9762\u677F\u6216\u624B\u52A8\u641C\u7D22\uFF0C\u9009\u62E9\u7528\u4E8E\u8FC7\u6EE4\u8D44\u4EA7\u7684 Tag\u3002",[y.dataContextBar.tagScope]:"\u6807\u7B7E\u8303\u56F4",[y.dataContextBar.currentViewTags]:"\u5F53\u524D\u89C6\u56FE",[y.dataContextBar.allTags]:"\u5168\u90E8\u6807\u7B7E",[y.dataContextBar.panelFilter]:"\u9762\u677F\u7B5B\u9009",[y.dataContextBar.searchTags]:"\u641C\u7D22\u6807\u7B7E",[y.dataContextBar.noAvailableTags]:"\u6682\u65E0\u53EF\u7528\u6807\u7B7E",[y.dataContextBar.loadedAll]:"\u5DF2\u52A0\u8F7D\u5168\u90E8",[y.dataContextBar.refreshTags]:"\u5237\u65B0\u6807\u7B7E",[y.dataContextBar.confirm]:"\u786E\u5B9A",[y.dataContextBar.tagPanel]:"\u6807\u7B7E\u9762\u677F",[y.dataContextBar.selectPanel]:"\u9009\u62E9\u6807\u7B7E\u9762\u677F",[y.dataContextBar.noPanels]:"\u6682\u65E0\u53EF\u7528\u6807\u7B7E\u9762\u677F",[y.dataContextBar.noPanelGroups]:"\u5F53\u524D\u9762\u677F\u6CA1\u6709\u6807\u7B7E\u7EC4",[y.dataContextBar.singleSelect]:"\u5355\u9009",[y.dataContextBar.multiSelect]:"\u591A\u9009",[y.dataContextBar.defaultGroup]:"\u9ED8\u8BA4\u6807\u7B7E\u7EC4",[y.dataContextBar.more]:"\u53E6\u6709 {count} \u9879",[y.dataContextBar.dashboardContext]:"\u4EEA\u8868\u76D8\u4E0A\u4E0B\u6587",[y.dataContextBar.contextCount]:"{count} \u9879\u4E0A\u4E0B\u6587",[y.dataContextBar.fields.search]:"\u641C\u7D22",[y.dataContextBar.fields.tagIds]:"\u6807\u7B7E",[y.dataContextBar.fields.tagGroupIds]:"\u6807\u7B7E\u7EC4",[y.dataContextBar.fields.timeFrom]:"\u5F00\u59CB\u65F6\u95F4",[y.dataContextBar.fields.timeTo]:"\u7ED3\u675F\u65F6\u95F4",[y.dataContextBar.fields.clickedField]:"\u94BB\u53D6\u5B57\u6BB5",[y.dataContextBar.fields.clickedValue]:"\u94BB\u53D6\u503C",[y.dataContextBar.fields.dashboardDrilldown]:"\u4EEA\u8868\u76D8\u94BB\u53D6"})});function Ms({open:e,items:t,selectedId:o,name:n,title:r,description:i,nameLabel:s,namePlaceholder:l,createLabel:d,confirmLabel:c,cancelLabel:u,closeLabel:m,loadingLabel:p,emptyLabel:g,loading:b=false,creating:x=false,adding:f=false,createError:h,confirmError:k,showCreateError:$=true,showConfirmError:w=true,className:C,onOpenChange:T,onSelectedIdChange:S,onNameChange:P,onCreate:E,onConfirm:R}){let W=he.useId(),B=he.useRef(null),A=he.useRef(false),L=he.useRef(false),[I,K]=he.useState(null);he.useEffect(()=>{e||(A.current=false);},[e]);let q=x||f||I!==null,_=t.some(z=>z.id===o),Y=a(z=>{!q&&!L.current&&T?.(z);},"close"),M=a(async z=>{let Q=z==="create"?E:R;if(!(q||L.current||!Q||(z==="create"?!n.trim()||A.current:!_))){L.current=true,K(z);try{await Q();}catch{}finally{L.current=false,K(null);}}},"submit");return jsxRuntime.jsx(bc,{open:e,onOpenChange:Y,title:r,description:i,closeLabel:m,portal:true,closeOnEscape:!q,closeOnOverlayClick:!q,showCloseButton:!q,initialFocus:"explicit",initialFocusRef:B,className:C,classNames:{panel:"w-full max-w-[480px] gap-global-2 p-6",header:"border-0 p-0",title:"text-lg font-semibold leading-tight",description:"text-sm text-muted-foreground",body:"-m-1 min-h-0 p-1",footer:"border-0 p-0"},footer:jsxRuntime.jsxs("div",{className:"flex justify-end gap-global",children:[jsxRuntime.jsx(_o,{variant:"outline",className:"h-10",appearance:{radius:"lg"},disabled:q,onClick:()=>Y(false),children:u}),jsxRuntime.jsx(_o,{variant:"outline",className:"h-10",appearance:{radius:"lg"},disabled:q||!_,loading:f||I==="confirm",onClick:()=>M("confirm"),children:c})]}),children:jsxRuntime.jsxs("div",{className:"flex min-h-0 flex-col gap-global-2","data-monkeys-component":"add-to-collection-dialog","aria-busy":q||b,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-global",children:[jsxRuntime.jsx(ho,{ref:B,id:W,"aria-label":s,placeholder:l,appearance:"shadow",className:"min-w-0 flex-1",value:n,disabled:q,onChange:z=>P?.(z.currentTarget.value),onCompositionStart:()=>{A.current=true;},onCompositionEnd:()=>{A.current=false;},onKeyDown:z=>{z.key==="Enter"&&!z.nativeEvent.isComposing&&!A.current&&(z.preventDefault(),M("create"));}}),jsxRuntime.jsx(_o,{variant:"outline",appearance:{radius:"lg"},icon:jsxRuntime.jsx(lucideReact.FolderPlus,{}),className:"h-10 shrink-0",disabled:q||!n.trim(),loading:x||I==="create",onClick:()=>M("create"),children:d})]}),$&&h&&jsxRuntime.jsx("p",{role:"alert",className:"text-sm text-destructive-text",children:h}),jsxRuntime.jsx("div",{className:"-m-1 flex max-h-80 min-h-0 flex-col gap-global overflow-y-auto p-1",role:"group","aria-label":r,children:t.length===0?jsxRuntime.jsx("p",{role:"status",className:"rounded-lg border border-dashed border-border px-global-2 py-global-2 text-center text-sm text-muted-foreground",children:b?p:g}):t.map(z=>jsxRuntime.jsx(_o,{variant:"outline",icon:jsxRuntime.jsx(lucideReact.FolderOpen,{className:"size-4 shrink-0","aria-hidden":"true"}),endIcon:o===z.id?jsxRuntime.jsx(lucideReact.Check,{className:"size-4 shrink-0","aria-hidden":"true"}):void 0,label:z.name,classNames:{label:"min-w-0 flex-1 truncate text-left"},"aria-pressed":o===z.id,disabled:q,className:v("flex h-10 w-full shrink-0 items-center justify-start gap-global rounded-lg border px-global-2 py-global text-left text-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",o===z.id?"border-foreground bg-muted text-foreground":"border-border bg-background text-foreground hover:bg-muted"),onClick:()=>S?.(z.id)},z.id))}),w&&k&&jsxRuntime.jsx("p",{role:"alert",className:"text-sm text-destructive-text",children:k})]})})}a(Ms,"WorkbenchAddToCollectionDialog");function Iu({loading:e,initialLoading:t,detailLoading:o,error:n,retry:r,labels:i,onBack:s,onRefresh:l,table:d,record:c,onMore:u}){return jsxRuntime.jsxs("div",{"aria-busy":e,className:"gap-global p-global flex h-full min-h-0 flex-col",children:[jsxRuntime.jsxs("div",{className:"gap-global flex shrink-0 items-center",children:[s&&jsxRuntime.jsx(Te,{variant:"quiet",size:"xs",onClick:s,children:i.back}),jsxRuntime.jsx("span",{className:"text-muted-foreground text-sm",children:i.summary}),jsxRuntime.jsx(Te,{variant:"quiet",size:"xs",disabled:e,onClick:l,children:i.refresh})]}),n&&jsxRuntime.jsxs("div",{role:"alert",children:[jsxRuntime.jsx("p",{children:n}),r&&jsxRuntime.jsx(Te,{onClick:r,children:i.retry})]}),t&&jsxRuntime.jsx(fn,{label:i.loading}),o?jsxRuntime.jsx(fn,{label:i.loading}):c?jsxRuntime.jsx($s,{sizing:"fill",heading:c.heading,media:c.preview?jsxRuntime.jsx(Gx,{useData:c.preview.useData}):c.media,children:jsxRuntime.jsx(Ki,{items:c.items})}):d?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(hs,{...d,bodyMaxHeight:"100%",minWidth:560,columns:d.columns?.map((m,p)=>({...m,minWidth:p===0?180:p===1?120:140,width:p===0?240:p===1?140:180,wrap:p!==1})),renderCell:(m,p)=>String(p.cells?.[m.key]??""),className:"min-h-0 flex-1 border-0 bg-transparent"}),u&&jsxRuntime.jsx(Te,{variant:"quiet",disabled:e,onClick:u,children:i.more})]}):null]})}a(Iu,"AgentDataPanel");function Gx({useData:e}){return jsxRuntime.jsx(pr,{...e()})}a(Gx,"DataPreview");function As({actions:e}){return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e?.map((t,o)=>jsxRuntime.jsx(ie,{disabled:t.disabled,onClick:t.onClick,children:t.label},o))})}a(As,"CanvasActions");function Lu({surface:e,canvas:t,canvasKey:o,fileInput:n,imageActions:r,controls:i}){return jsxRuntime.jsxs(canvas.CanvasSurface,{...e,recoveryActions:jsxRuntime.jsx(As,{actions:e.recoveryActions}),notices:e.notices?.map(s=>({...s,actions:jsxRuntime.jsx(As,{actions:s.actions})})),overlayNotice:e.overlayNotice&&{...e.overlayNotice,actions:jsxRuntime.jsx(As,{actions:e.overlayNotice.actions})},controls:i?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ie,{variant:"ghost",size:"icon","aria-label":i.label,onClick:i.onFullscreen,children:i.fullscreen?jsxRuntime.jsx(lucideReact.Minimize2,{}):jsxRuntime.jsx(lucideReact.Maximize2,{})}),jsxRuntime.jsx(ie,{variant:"ghost",size:"icon","aria-label":i.closeLabel,onClick:i.onClose,children:jsxRuntime.jsx(lucideReact.X,{})})]}):void 0,children:[jsxRuntime.jsx(ho,{...n}),t&&he.createElement(canvas.InfiniteCanvas,{...t,background:"dots",layout:"side",library:false,key:o,selectionToolbar:r?jsxRuntime.jsx(canvas.CanvasImageActions,{...r}):false})]})}a(Lu,"AgentCanvasView");var ok=5200;function nk(e){return !e||typeof e!="object"||he.isValidElement(e)?false:"title"in e||"description"in e||"variant"in e}a(nk,"isToastInput");function Bs(e){return e==null||typeof e=="string"&&!e.trim()}a(Bs,"isEmptyToastContent");function ja(e,t,o){let{description:n,...r}=o??{};return nk(e)?{...r,...e,variant:e.variant??t}:{...r,title:e,variant:t}}a(ja,"normalizeToastInput");function wr(e){let{title:t,description:o,duration:n,variant:r="info",...i}=e,s=Bs(t)?o:t;if(Bs(s))return;let l=!Bs(o)&&o!==s?o:void 0,d={...i,description:l,duration:n??ok};switch(r){case "error":return sonner.toast.error(s,d);case "warning":return sonner.toast.warning(s,d);case "success":return sonner.toast.success(s,d);default:return sonner.toast(s,d)}}a(wr,"emitToast");var Cr=Object.assign((e,t)=>sonner.toast(e,t),{show:wr,error:a((e,t)=>wr(ja(e,"error",t)),"error"),warning:a((e,t)=>wr(ja(e,"warning",t)),"warning"),success:a((e,t)=>wr(ja(e,"success",t)),"success"),info:a((e,t)=>wr(ja(e,"info",t)),"info"),message:sonner.toast.message,promise:sonner.toast.promise,dismiss:sonner.toast.dismiss,loading:sonner.toast.loading,custom:sonner.toast.custom,getHistory:sonner.toast.getHistory,getToasts:sonner.toast.getToasts});var Ou=y.status,Hu=a(({kind:e,translate:t,code:o,titleKey:n,descriptionKey:r,actions:i,onRetry:s,presentation:l,loadingLabelKey:d,emptyLabelKey:c,errorLabelKey:u})=>{let m=Ou[e],p=o?{code:o}:void 0,g=t(n??m.title,p),b=t(r??m.description,p),x=i??(e==="error"&&s?jsxRuntime.jsx(_o,{label:t(Ou.retry),onClick:s}):void 0),f=l==="legacy-data-explorer"&&e==="error"&&u?t(u):void 0;return he.useEffect(()=>{f&&Cr.error(f);},[f]),l==="legacy-data-explorer"?jsxRuntime.jsx("div",{className:"col-span-full flex h-full min-h-0 flex-1 flex-col overflow-hidden","data-presentation":"legacy-data-explorer-status",children:e==="loading"?jsxRuntime.jsx(xa,{variant:"skeleton",className:"min-h-64",title:d?t(d):g}):jsxRuntime.jsx("div",{className:"flex h-64 items-center justify-center",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:t(c??y.status.empty.title)})})}):e==="loading"?jsxRuntime.jsx(xa,{variant:"skeleton",title:g}):e==="empty"?jsxRuntime.jsx(Xi,{title:c?t(c):g,description:c?void 0:b,actions:x}):jsxRuntime.jsx(Qi,{kind:e==="forbidden"?"permission":"error",title:g,description:b,actions:x})},"CapabilityStatus");var Wu=he.createContext(null);function TB(){let e=he.useContext(Wu);if(!e)throw new Error("Agent conversation slots require a conversation surface.");return e}a(TB,"useAgentConversationData");function lk({data:e,children:t}){return jsxRuntime.jsx(Wu.Provider,{value:e,children:t})}a(lk,"AgentConversationDataProvider");function dk({useData:e,children:t}){let o=e();return jsxRuntime.jsx(lk,{data:o,children:jsxRuntime.jsx("div",{className:"contents agent-conversation-theme",style:o.brandVariables,children:t})})}a(dk,"ConversationData");function ck({useData:e,children:t}){let o=e();return jsxRuntime.jsx(Fu,{state:o,children:t})}a(ck,"BoundConversation");function Fu({state:e,children:t}){return e.status==="bound"?jsxRuntime.jsx(ck,{useData:e.useState,children:t}):e.status==="ready"?jsxRuntime.jsx(dk,{useData:e.useConversation,children:t},e.key):jsxRuntime.jsx(Hu,{kind:e.status,code:e.code,translate:e.translate})}a(Fu,"ConversationState");var SB=he.forwardRef(a(function({useData:t,children:o,connection:n,title:r,questionPlacement:i,linkedDataEnabled:s,autoOpenReports:l,recommendationsEnabled:d,titleIsManual:c,readOnly:u,loading:m,messageSuffix:p,promptNavigation:g,onMessageAccepted:b,onSessionStarted:x,onTitleChanged:f,onContinue:h,...k},$){let w={connection:n,title:r,questionPlacement:i,linkedDataEnabled:s,autoOpenReports:l,recommendationsEnabled:d,titleIsManual:c,readOnly:u,loading:m,messageSuffix:p,promptNavigation:g,onMessageAccepted:b,onSessionStarted:x,onTitleChanged:f,onContinue:h},C=t(w);return jsxRuntime.jsx("div",{...k,ref:$,className:"contents agent-conversation-surface","aria-busy":w.loading===true,...w.loading?{inert:""}:{},children:jsxRuntime.jsx(Fu,{state:C,children:o})})},"AgentConversationSurface"));function Uu({model:e}){return e?e.kind==="message"?jsxRuntime.jsx(_c,{...e.props}):jsxRuntime.jsx(Jc,{...e.props}):null}a(Uu,"AgentTimelineContent");var Ns=a(e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4),"srgbToLinear"),Es=a(e=>e<=.0031308?e*12.92:1.055*Math.pow(e,1/2.4)-.055,"linearToSrgb"),uk=a((e,t,o)=>{let n=.4122214708*e+.5363325363*t+.0514459929*o,r=.2119034982*e+.6806995451*t+.1073969566*o,i=.0883024619*e+.2817188376*t+.6299787005*o,s=Math.cbrt(n),l=Math.cbrt(r),d=Math.cbrt(i);return [.2104542553*s+.793617785*l-.0040720468*d,1.9779984951*s-2.428592205*l+.4505937099*d,.0259040371*s+.7827717662*l-.808675766*d]},"linearRgbToOklab"),pk=a((e,t,o)=>{let n=e+.3963377774*t+.2158037573*o,r=e-.1055613458*t-.0638541728*o,i=e-.0894841775*t-1.291485548*o,s=n*n*n,l=r*r*r,d=i*i*i;return [4.0767416621*s-3.3077115913*l+.2309699292*d,-1.2684380046*s+2.6097574011*l-.3413193965*d,-0.0041960863*s-.7034186147*l+1.707614701*d]},"oklabToLinearRgb"),Ga=a(e=>{let[t,o,n]=uk(Ns(e[0]),Ns(e[1]),Ns(e[2]));return {L:t,C:Math.sqrt(o*o+n*n),H:Math.atan2(n,o)}},"rgbToOklch"),Vu=a(({L:e,C:t,H:o})=>{let n=t*Math.cos(o),r=t*Math.sin(o),[i,s,l]=pk(e,n,r),d=a(c=>Math.max(0,Math.min(1,c)),"clamp01");return [d(Es(i)),d(Es(s)),d(Es(l))]},"oklchToRgb"),bn=a(e=>{let t=parseInt(e.replace("#",""),16);return [(t>>16&255)/255,(t>>8&255)/255,(t&255)/255]},"hexToRgb"),mk=a((e,t,o)=>{let n=t-e;return n>Math.PI&&(n-=2*Math.PI),n<-Math.PI&&(n+=2*Math.PI),e+n*o},"lerpHueShortest"),gk=a((e,t,o)=>{let r=e.C<1e-4?t.H:e.H,i=t.C<1e-4?e.H:t.H;return {L:e.L+(t.L-e.L)*o,C:e.C+(t.C-e.C)*o,H:mk(r,i,o)}},"lerpOklch");function qu(e,t){if(e.length===0)return [];if(e.length===1){let r=Vu(e[0]);return Array.from({length:t},()=>r)}let o=[],n=e.length;for(let r=0;r<t;r++){let s=r/(t-1)*(n-1),l=Math.min(n-2,Math.floor(s)),d=s-l;o.push(Vu(gk(e[l],e[l+1],d)));}return o}a(qu,"sampleChainRgb");var Zt={red:"#FF3D7F",orange:"#FF7A1A",yellow:"#FFD600",green:"#C2FF3D",mint:"#00FFA8",teal:"#00E5D6",cyan:"#1FC8FF",blue:"#2E70FF",indigo:"#7B4FFF",purple:"#D33CFF",pink:"#FF3DC0",brown:"#D8A87B"};Object.fromEntries(Object.entries(Zt).map(([e,t])=>[e,Ga(bn(t))]));function fk(e,t){let o=a(i=>i[0][0]*(i[1][1]*i[2][2]-i[1][2]*i[2][1])-i[0][1]*(i[1][0]*i[2][2]-i[1][2]*i[2][0])+i[0][2]*(i[1][0]*i[2][1]-i[1][1]*i[2][0]),"det"),n=o(e);if(Math.abs(n)<1e-9)return null;let r=a(i=>e.map((s,l)=>s.map((d,c)=>c===i?t[l]:d)),"col");return [o(r(0))/n,o(r(1))/n,o(r(2))/n]}a(fk,"solve3x3");function Ku(e){let t=e.length,o=.5,n=e.map((f,h)=>h/(t-1)),r=n.map(f=>Math.cos(2*Math.PI*o*f)),i=n.map(f=>Math.sin(2*Math.PI*o*f)),s=r.reduce((f,h)=>f+h,0),l=i.reduce((f,h)=>f+h,0),d=r.reduce((f,h)=>f+h*h,0),c=i.reduce((f,h)=>f+h*h,0),u=r.reduce((f,h,k)=>f+h*i[k],0),m=[[t,s,l],[s,d,u],[l,u,c]],p=a(f=>{let h=e.map(W=>W[f]),k=h.reduce((W,B)=>W+B,0),$=h.reduce((W,B,A)=>W+B*r[A],0),w=h.reduce((W,B,A)=>W+B*i[A],0),C=fk(m,[k,$,w]);if(!C)return {a:k/t,b:0,d:0};let[T,S,P]=C,E=Math.sqrt(S*S+P*P),R=(Math.atan2(-P,S)/(2*Math.PI)+1)%1;return {a:T,b:E,d:R}},"fitChannel"),g=p(0),b=p(1),x=p(2);return {a:[g.a,b.a,x.a],b:[g.b,b.b,x.b],c:[o,o,o],d:[g.d,b.d,x.d]}}a(Ku,"fitCosinePaletteToSamples");var bk=a((e,t)=>{let o=qu([Ga(bn(e)),Ga(bn(t))],17);return o[0]=bn(e),o[o.length-1]=bn(t),Ku(o)},"accentPair");function Zo(e){if(e.length===0)return bk(Zt.indigo,Zt.cyan);if(e.length===1)return {a:bn(e[0]),b:[0,0,0],c:[1,1,1],d:[0,0,0]};let t=e.map(n=>Ga(bn(n))),o=qu(t,17);return Ku(o)}a(Zo,"accentChain");var ju={prism:Zo(["#00C0E8","#6155F5","#CB30E0"]),berry:Zo(["#FF2D55","#CB30E0"]),lagoon:Zo(["#0088FF","#00C0E8","#34C759"]),citrus:Zo(["#34C759","#FFCC00","#FF8D28"]),azure:Zo(["#00C0E8","#0088FF","#6155F5"]),ember:Zo(["#FFCC00","#FF8D28","#FF2D55"])};function Xu(e){return e?typeof e=="string"?ju[e]:e:ju.prism}a(Xu,"resolvePalette");var hk=`
|
|
130
130
|
attribute vec2 a;
|
|
131
131
|
void main(){ gl_Position = vec4(a, 0.0, 1.0); }
|
|
132
132
|
`,yk=`
|
|
@@ -256,46 +256,46 @@ void main(){
|
|
|
256
256
|
|
|
257
257
|
gl_FragColor = vec4(bodyPM + highEmit, min(bodyA + highA, 1.0));
|
|
258
258
|
}
|
|
259
|
-
`,hk=a(e=>{switch(e){case "ltr":return {axis:0,posStart:-0.2,posEnd:1.2};case "rtl":return {axis:0,posStart:1.2,posEnd:-0.2};case "ttb":return {axis:1,posStart:-0.2,posEnd:1.2};case "btt":return {axis:1,posStart:1.2,posEnd:-0.2}}},"dirToUniforms");function Yu(e={}){if(typeof window>"u")return null;let t=e.canvas??document.createElement("canvas"),o=t.getContext("webgl",{alpha:true,antialias:false,premultipliedAlpha:true});if(!o)return null;let n=a((M,z)=>{let Q=o.createShader(M);return Q?(o.shaderSource(Q,z),o.compileShader(Q),o.getShaderParameter(Q,o.COMPILE_STATUS)?Q:(console.error("[glimm] shader compile error:",o.getShaderInfoLog(Q)),o.deleteShader(Q),null)):null},"compile"),r=n(o.VERTEX_SHADER,bk);if(!r)return null;let i=n(o.FRAGMENT_SHADER,yk);if(!i)return o.deleteShader(r),null;let s=o.createProgram();if(!s)return o.deleteShader(r),o.deleteShader(i),null;if(o.attachShader(s,r),o.attachShader(s,i),o.linkProgram(s),!o.getProgramParameter(s,o.LINK_STATUS))return console.error("[glimm] shader link error:",o.getProgramInfoLog(s)),o.deleteProgram(s),o.deleteShader(r),o.deleteShader(i),null;o.useProgram(s);let l=o.createBuffer();o.bindBuffer(o.ARRAY_BUFFER,l),o.bufferData(o.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,1,1]),o.STATIC_DRAW);let d=o.getAttribLocation(s,"a");o.enableVertexAttribArray(d),o.vertexAttribPointer(d,2,o.FLOAT,false,0,0);let c=a(M=>o.getUniformLocation(s,M),"u"),u=c("uRes"),m=c("uTime"),p=c("uProgress"),g=c("uAlpha"),b=c("uBandTight"),x=c("uPosStart"),f=c("uPosEnd"),y=c("uHueShift"),k=c("uDirection"),S=c("uWaveAmount"),w=c("uRippleAmount"),C=c("uWaveSpeed"),T=c("uBrightness"),$=c("uSwellAmount"),P=c("uPalA"),E=c("uPalB"),R=c("uPalC"),W=c("uPalD");o.enable(o.BLEND),o.blendFunc(o.ONE,o.ONE_MINUS_SRC_ALPHA);let B=a((M,z,Q)=>Math.max(z,Math.min(Q,M)),"clamp"),A={progress:0,alpha:0,palette:e.palette??Xu(void 0),bandTight:B(e.bandTight??14,.1,200),direction:e.direction??"ltr",waveAmount:B(e.waveAmount??0,0,2),rippleAmount:B(e.rippleAmount??1,0,2),waveSpeed:B(e.waveSpeed??1,0,3),brightness:B(e.brightness??1,0,1.5),swellAmount:B(e.swellAmount??.55,0,1)},L=Math.random()*.4,I=a(()=>{let M=Math.min(window.devicePixelRatio||1,2),z=t.getBoundingClientRect(),Q=Math.max(1,Math.round(z.width*M)),ce=Math.max(1,Math.round(z.height*M));(t.width!==Q||t.height!==ce)&&(t.width=Q,t.height=ce,o.viewport(0,0,Q,ce));},"resize");I();let K=new ResizeObserver(I);K.observe(t);let q=performance.now(),_=0,Y=a(()=>{let M=(performance.now()-q)/1e3,z=hk(A.direction);o.clearColor(0,0,0,0),o.clear(o.COLOR_BUFFER_BIT),o.uniform2f(u,t.width,t.height),o.uniform1f(m,M),o.uniform1f(p,A.progress),o.uniform1f(g,A.alpha),o.uniform1f(b,A.bandTight),o.uniform1f(x,z.posStart),o.uniform1f(f,z.posEnd),o.uniform1f(k,z.axis),o.uniform1f(S,A.waveAmount),o.uniform1f(w,A.rippleAmount),o.uniform1f(C,A.waveSpeed),o.uniform1f(T,A.brightness),o.uniform1f($,A.swellAmount),o.uniform1f(y,L),o.uniform3f(P,A.palette.a[0],A.palette.a[1],A.palette.a[2]),o.uniform3f(E,A.palette.b[0],A.palette.b[1],A.palette.b[2]),o.uniform3f(R,A.palette.c[0],A.palette.c[1],A.palette.c[2]),o.uniform3f(W,A.palette.d[0],A.palette.d[1],A.palette.d[2]),o.drawArrays(o.TRIANGLE_STRIP,0,4),_=requestAnimationFrame(Y);},"tick");return _=requestAnimationFrame(Y),{canvas:t,setProgress:a(M=>{A.progress=B(M,0,1);},"setProgress"),setAlpha:a(M=>{A.alpha=B(M,0,1.5);},"setAlpha"),setPalette:a(M=>{A.palette=M;},"setPalette"),setBandTight:a(M=>{A.bandTight=B(M,.1,200);},"setBandTight"),setDirection:a(M=>{A.direction=M;},"setDirection"),setWaveAmount:a(M=>{A.waveAmount=B(M,0,2);},"setWaveAmount"),setRippleAmount:a(M=>{A.rippleAmount=B(M,0,2);},"setRippleAmount"),setWaveSpeed:a(M=>{A.waveSpeed=B(M,0,3);},"setWaveSpeed"),setBrightness:a(M=>{A.brightness=B(M,0,1.5);},"setBrightness"),setSwellAmount:a(M=>{A.swellAmount=B(M,0,1);},"setSwellAmount"),getProgress:a(()=>A.progress,"getProgress"),getAlpha:a(()=>A.alpha,"getAlpha"),destroy:a(()=>{cancelAnimationFrame(_),K.disconnect(),o.deleteProgram(s),o.deleteBuffer(l),o.deleteShader(r),o.deleteShader(i);},"destroy")}}a(Yu,"createShader");function Is(e,t,o,n){let r=a(l=>3*(1-l)*(1-l)*l*e+3*(1-l)*l*l*o+l*l*l,"bezX"),i=a(l=>3*(1-l)*(1-l)*l*t+3*(1-l)*l*l*n+l*l*l,"bezY"),s=a(l=>3*(1-4*l+3*l*l)*e+3*(2*l-3*l*l)*o+3*l*l,"bezXd");return l=>{if(l<=0)return 0;if(l>=1)return 1;let d=l;for(let c=0;c<8;c++){let u=r(d)-l;if(Math.abs(u)<1e-6)break;let m=s(d);if(Math.abs(m)<1e-6)break;d-=u/m;}return i(d)}}a(Is,"cubicBezier");var Gu={linear:a(e=>e,"linear"),easeOutQuart:a(e=>1-Math.pow(1-e,4),"easeOutQuart"),easeOutCubic:a(e=>1-Math.pow(1-e,3),"easeOutCubic"),easeInCubic:a(e=>e*e*e,"easeInCubic"),easeInOutCubic:a(e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,"easeInOutCubic"),easeOutExpo:a(e=>e===1?1:1-Math.pow(2,-10*e),"easeOutExpo"),easeInOutQuint:a(e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,"easeInOutQuint"),snap:Is(1,0,.35,.95),ease:Is(.25,.1,.25,1),back:Is(.175,.885,.32,1.1)},vk=a(e=>e?typeof e=="function"?e:Gu[e]:Gu.easeOutQuart,"resolveEasing"),xk=a(e=>1-Math.pow(1-e,4),"easeOutQuart"),kk=a(e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,"easeInOutCubic");function Qu(e,t={}){let o=t.sweepMs??1100,n=t.outroMs??700,r=Math.max(0,Math.min(1,t.midpoint??.56)),i=vk(t.easing??"ease")??xk,s=Math.max(0,Math.min(1.5,t.peakAlpha??1));t.palette&&e.setPalette(Xu(t.palette)),t.bandTight!==void 0&&e.setBandTight(t.bandTight),t.direction&&e.setDirection(t.direction),t.waveAmount!==void 0&&e.setWaveAmount(t.waveAmount),t.rippleAmount!==void 0&&e.setRippleAmount(t.rippleAmount),t.waveSpeed!==void 0&&e.setWaveSpeed(t.waveSpeed),t.brightness!==void 0&&e.setBrightness(t.brightness),t.swellAmount!==void 0&&e.setSwellAmount(t.swellAmount);let l=false,d=0,c,u,m=new Promise(g=>{c=g;}),p=new Promise(g=>{u=g;});return (async()=>{let g=e.getProgress(),b=g>=.999?0:Math.max(0,Math.min(1,g));e.setAlpha(s),e.setProgress(b);let x=1-b,f=Math.max(80,o*x),y=false,k=Promise.resolve(),S=a(()=>{y=true,k=Promise.resolve().then(()=>t.onMidpoint?.()).then(()=>{}),k.then(c,C=>{console.error("[glimm] midpoint callback failed:",C),c();});},"fireMidpoint"),w=performance.now();await new Promise(C=>{let T=a(()=>{if(l){C();return}let $=Math.min(1,(performance.now()-w)/f),P=i($),E=b+x*P;e.setProgress(E),!y&&E>=r&&S(),$<1?d=requestAnimationFrame(T):C();},"tick");d=requestAnimationFrame(T);}),!l&&(y||S(),await k.catch(()=>{}),!l&&(await wk(n,s,0,kk,e.setAlpha,()=>l,C=>{d=C;}),!l&&(e.setProgress(0),t.onComplete?.(),u())));})(),{midpoint:m,done:p,cancel:a(()=>{l=true,cancelAnimationFrame(d),c(),u();},"cancel")}}a(Qu,"playSweep");function wk(e,t,o,n,r,i,s){return new Promise(l=>{let d=performance.now(),c=a(()=>{if(i()){l();return}let u=Math.min(1,(performance.now()-d)/e);r(t+(o-t)*n(u)),u<1?s(requestAnimationFrame(c)):l();},"tick");s(requestAnimationFrame(c));})}a(wk,"runRamp");var Zu=Qo([Zt.red,Zt.orange,Zt.yellow,Zt.green,Zt.cyan,Zt.blue,Zt.purple]);function bn({children:e,size:t=15,strokeWidth:o=1.8}){return jsxRuntime.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:e})}a(bn,"Icon");var Tk={clip:jsxRuntime.jsx("path",{d:"m21.4 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48"}),chart:jsxRuntime.jsx("path",{d:"M4 20V10M10 20V4M16 20v-7M22 20H2"}),layers:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("path",{d:"M12 2 2 7l10 5 10-5-10-5z"}),jsxRuntime.jsx("path",{d:"M2 17l10 5 10-5M2 12l10 5 10-5"})]}),globe:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"10"}),jsxRuntime.jsx("path",{d:"M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"})]})},Sk={figma:jsxRuntime.jsxs("svg",{width:"11",height:"16",viewBox:"0 0 38 57","aria-hidden":"true",children:[jsxRuntime.jsx("path",{d:"M9.5 57A9.5 9.5 0 0 0 19 47.5V38H9.5a9.5 9.5 0 0 0 0 19z",fill:"var(--bui-brand-figma-green)"}),jsxRuntime.jsx("path",{d:"M0 28.5A9.5 9.5 0 0 1 9.5 19H19v19H9.5A9.5 9.5 0 0 1 0 28.5z",fill:"var(--bui-brand-figma-purple)"}),jsxRuntime.jsx("path",{d:"M0 9.5A9.5 9.5 0 0 1 9.5 0H19v19H9.5A9.5 9.5 0 0 1 0 9.5z",fill:"var(--bui-brand-figma-red)"}),jsxRuntime.jsx("path",{d:"M19 0h9.5a9.5 9.5 0 1 1 0 19H19V0z",fill:"var(--bui-brand-figma-orange)"}),jsxRuntime.jsx("path",{d:"M38 28.5a9.5 9.5 0 1 1-19 0 9.5 9.5 0 0 1 19 0z",fill:"var(--bui-brand-figma-blue)"})]}),slack:jsxRuntime.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 127 127","aria-hidden":"true",children:[jsxRuntime.jsx("path",{d:"M27.2 80c0 7.3-5.9 13.2-13.2 13.2C6.7 93.2.8 87.3.8 80c0-7.3 5.9-13.2 13.2-13.2h13.2V80zm6.6 0c0-7.3 5.9-13.2 13.2-13.2 7.3 0 13.2 5.9 13.2 13.2v33c0 7.3-5.9 13.2-13.2 13.2-7.3 0-13.2-5.9-13.2-13.2V80z",fill:"var(--bui-brand-slack-red)"}),jsxRuntime.jsx("path",{d:"M47 27.2c-7.3 0-13.2-5.9-13.2-13.2C33.8 6.7 39.7.8 47 .8c7.3 0 13.2 5.9 13.2 13.2v13.2H47zm0 6.7c7.3 0 13.2 5.9 13.2 13.2 0 7.3-5.9 13.2-13.2 13.2H13.9C6.6 60.3.7 54.4.7 47.1c0-7.3 5.9-13.2 13.2-13.2H47z",fill:"var(--bui-brand-slack-blue)"}),jsxRuntime.jsx("path",{d:"M99.9 47.1c0-7.3 5.9-13.2 13.2-13.2 7.3 0 13.2 5.9 13.2 13.2 0 7.3-5.9 13.2-13.2 13.2H99.9V47.1zm-6.6 0c0 7.3-5.9 13.2-13.2 13.2-7.3 0-13.2-5.9-13.2-13.2V13.9C66.9 6.6 72.8.7 80.1.7c7.3 0 13.2 5.9 13.2 13.2v33.2z",fill:"var(--bui-brand-slack-green)"}),jsxRuntime.jsx("path",{d:"M80.1 99.8c7.3 0 13.2 5.9 13.2 13.2 0 7.3-5.9 13.2-13.2 13.2-7.3 0-13.2-5.9-13.2-13.2V99.8h13.2zm0-6.6c-7.3 0-13.2-5.9-13.2-13.2 0-7.3 5.9-13.2 13.2-13.2h33.1c7.3 0 13.2 5.9 13.2 13.2 0 7.3-5.9 13.2-13.2 13.2H80.1z",fill:"var(--bui-brand-slack-yellow)"})]}),gmail:jsxRuntime.jsxs("svg",{width:"15",height:"12",viewBox:"0 0 256 193","aria-hidden":"true",children:[jsxRuntime.jsx("path",{d:"M58.182 192.05V93.14L27.507 65.077 0 49.504v125.091c0 9.658 7.825 17.455 17.455 17.455h40.727Z",fill:"var(--bui-brand-gmail-blue)"}),jsxRuntime.jsx("path",{d:"M197.818 192.05h40.727c9.659 0 17.455-7.826 17.455-17.455V49.505l-31.156 17.837-27.026 25.798v98.91Z",fill:"var(--bui-brand-gmail-green)"}),jsxRuntime.jsx("path",{d:"m58.182 93.14-4.174-38.647 4.174-36.989L128 69.868l69.818-52.364 4.669 34.992-4.669 40.644L128 145.504 58.182 93.14Z",fill:"var(--bui-brand-gmail-red)"}),jsxRuntime.jsx("path",{d:"M197.818 17.504V93.14L256 49.504V26.231c0-21.585-24.64-33.89-41.89-20.945l-16.292 12.218Z",fill:"var(--bui-brand-gmail-yellow)"}),jsxRuntime.jsx("path",{d:"m0 49.504 26.759 20.07L58.182 93.14V17.504L41.89 5.286C24.61-7.66 0 4.646 0 26.23v23.273Z",fill:"var(--bui-brand-gmail-fold)"})]})};function $k(e){let t=/(^|\s)([@/])([\w-]*)$/.exec(e);return t?{kind:t[2]==="@"?"at":"slash",query:t[3].toLowerCase(),start:t.index+t[1].length}:null}a($k,"parseToken");function Ka({variant:e="Rounded",sources:t=[],commands:o=[],models:n=[],files:r=[],connected:i=false,listening:s=false,onAttach:l,onConnect:d,onDictation:c,onModelChange:u,onRemoveAttachment:m,renderAttachButton:p,controls:g,trailingControls:b,controlsVisible:x=true,tall:f=false,minRows:y=1,showDictation:k=false,placeholder:S,onSend:w,onSubmit:C,value:T,onValueChange:$,disabled:P=false,busy:E=false,onStop:R,inputLabel:W}){let B=Ue(),A=Fn(),L=e==="Pill",[I,K]=ye.useState(""),q=T??I,_=a(D=>{K(D),$?.(D);},"setDraft"),Y=ye.useRef(q);Y.current=q;let M=ye.useRef(false),z=ye.useRef(true),[Q,ce]=ye.useState(false);ye.useEffect(()=>(z.current=true,()=>{z.current=false;}),[]);let se=t.length>0,V=n.length>0,J=se||!!l||!!p,[O,F]=ye.useState(false),[oe,ae]=ye.useState(false),[pe,Ce]=ye.useState(false),[Z,Re]=ye.useState(n[0]??{key:"",name:B("Model")}),[Ge,gt]=ye.useState(0),[te,De]=ye.useState(false),qe=Math.max(1,Math.min(5,Math.trunc(y)||1)),ft=te||f||qe>1||!!(x&&g||b),[Gt,$o]=ye.useState(null),[j,me]=ye.useState(false),[Ne,He]=ye.useState(null),[Ke,Fe]=ye.useState(null),[Qe,qt]=ye.useState(0),[zt,co]=ye.useState(0),uo=ye.useRef(null),St=ye.useRef(null),po=ye.useRef(null),Pr=ye.useRef(null),vn=ye.useRef(null),jn=ye.useRef([]),Gn=ye.useRef([]),N=ye.useRef(null),ne=ye.useRef(null),ve=ye.useRef(false),he=O?null:$k(q),_e=P||Q?null:oe||he?.kind==="at"&&se?"at":he?.kind==="slash"&&o.length?"slash":null,ct=oe?"":he?.query??"",Ze=_e==="at"?t.filter(D=>D.name.toLowerCase().includes(ct)):_e==="slash"?o.filter(D=>D.name.slice(1).startsWith(ct)):[];ye.useEffect(()=>{gt(0),me(false);},[_e,ct]),ye.useLayoutEffect(()=>{let D=jn.current[Ge];D&&$o({top:D.offsetTop,height:D.offsetHeight});},[_e,ct,Ge,i,Ze.length]);let Me=n.findIndex(D=>D.key===Z.key);ye.useLayoutEffect(()=>{if(!pe)return;let D=Gn.current[Ke??Me];D&&He({top:D.offsetTop,height:D.offsetHeight});},[pe,Ke,Me]),ye.useLayoutEffect(()=>{if(!pe||!uo.current||!vn.current)return;let D=uo.current.getBoundingClientRect(),$e=vn.current.getBoundingClientRect();qt(Math.max(0,Math.min($e.left-D.left,D.width-176))),co(D.bottom-$e.top+8);},[pe,ft,Z.name]),ye.useEffect(()=>{pe||Fe(null);},[pe]);let Po=a(()=>{let D=N.current;if(!D)return null;try{return Yu({canvas:D,palette:Zu,direction:"ltr",bandTight:10,swellAmount:.85})}catch{return null}},"makeShader");ye.useEffect(()=>{if(n.some(D=>D.accent))return ne.current=Po(),()=>{ne.current?.destroy(),ne.current=null;}},[]);let tn=a(()=>{if(ve.current||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;ne.current?.destroy();let D=Po();if(ne.current=D,!D)return;ve.current=true,Qu(D,{palette:Zu,direction:"ltr",sweepMs:570,outroMs:80,peakAlpha:1.3,bandTight:10,brightness:1.4,swellAmount:1,waveSpeed:1.8,easing:"easeOutExpo"}).done.finally(()=>{ve.current=false;});},"celebrate"),Rr=a(D=>{Re(D),Ce(false),u?.(D.key),D.accent&&tn();},"selectModel");ye.useLayoutEffect(()=>{let D=po.current,$e=St.current,bt=Pr.current;if(!D||!$e||!bt)return;let eo=a(()=>{let Ks=Array.from($e.children).filter(Ja=>Ja.tagName==="BUTTON"),Cp=parseFloat(getComputedStyle($e).columnGap)||0,Tp=$e.clientWidth-Ks.reduce((Ja,Sp)=>Ja+Sp.offsetWidth,0)-Ks.length*Cp,Kn=getComputedStyle(D),Xs=(parseFloat(Kn.paddingTop)||0)+(parseFloat(Kn.paddingBottom)||0);De(q.includes(`
|
|
260
|
-
`)||bt.offsetWidth+8>Tp);let Ys=Math.max(parseFloat(Kn.minHeight)||28,(parseFloat(Kn.lineHeight)||18)*qe+Xs),Qs=Math.max(Ys,(parseFloat(Kn.lineHeight)||18)*5+Xs);D.style.height="0px";let Zs=D.scrollHeight;D.style.height=`${Math.min(Math.max(Zs,Ys),Qs)}px`,D.style.overflowY=Zs>Qs?"auto":"hidden";},"resize");eo();let Gs=$e.clientWidth,qs=new ResizeObserver(()=>{Gs!==$e.clientWidth&&(Gs=$e.clientWidth,eo());});return qs.observe($e),()=>qs.disconnect()},[q,te,f,qe,J,V,c,k]),ye.useEffect(()=>{if(!pe&&!oe)return;let D=a($e=>{$e.target.closest("[data-promptbar]")||(Ce(false),ae(false));},"close");return document.addEventListener("pointerdown",D),()=>document.removeEventListener("pointerdown",D)},[pe,oe]);let qn=a(()=>{ae(false),Ce(false);},"closeMenus"),Us=a(D=>{t.find(bt=>bt.key===D.key)?.attach?(l?.(),he&&_(q.slice(0,he.start))):_(_e==="at"?`${he?q.slice(0,he.start):q}@${D.name} `:`${he?q.slice(0,he.start):q}${D.name} `),ae(false),F(false),po.current?.focus();},"pick"),Mr=(q.trim().length>0||r.length>0)&&!!(C||w)&&!E&&!P&&!Q,Vs=a(async()=>{if(!Mr||M.current)return;let D=q;M.current=true,ce(true),qn();try{let $e=C?await C(D.trim()):void 0;$e!==!1&&await w?.(D.trim()),$e!==!1&&z.current&&Y.current===D&&_("");}catch{}finally{M.current=false,z.current&&ce(false);}},"send"),js=jsxRuntime.jsx(To,{type:"button",shape:"icon",size:"sm",variant:"ghost","aria-label":B("Add attachments and sources"),"aria-expanded":se?oe:void 0,disabled:P||Q,onClick:()=>{if(p){qn();return}Ce(false),se?ae(D=>!D):l?.(),po.current?.focus();},className:`promptbar-attach shrink-0 text-ink-3 ${oe?"bg-hover text-ink":""}`,children:jsxRuntime.jsx(lucideReact.Plus,{size:A.cssValues["component.ui.icon.size.s16"],"aria-hidden":"true"})});return jsxRuntime.jsx(re,{children:jsxRuntime.jsx("div",{"data-promptbar":true,className:"w-full",children:jsxRuntime.jsxs("div",{ref:uo,className:"relative",children:[_e&&jsxRuntime.jsxs("div",{onMouseLeave:()=>me(false),className:"absolute inset-x-0 bottom-full z-10 mb-2 rounded-[10px] bg-surface p-1 shadow-raised",style:{animation:"bui-pop-in 180ms cubic-bezier(0.23,1,0.32,1) both",transformOrigin:"bottom center"},children:[jsxRuntime.jsx("span",{"aria-hidden":true,className:"pointer-events-none absolute inset-x-1 rounded-[6px] bg-hover",style:{top:Gt?.top??0,height:Gt?.height??0,opacity:Gt&&j&&Ze.length>0?1:0,transition:"top 220ms cubic-bezier(0.23,1,0.32,1), height 220ms cubic-bezier(0.23,1,0.32,1), opacity 150ms ease"}}),Ze.map((D,$e)=>{let bt=_e==="at"?t.find(eo=>eo.key===D.key):void 0;return jsxRuntime.jsxs("button",{type:"button",ref:eo=>{jn.current[$e]=eo;},onMouseDown:eo=>eo.preventDefault(),onMouseEnter:()=>{gt($e),me(true);},onClick:()=>Us(D),className:"relative z-10 flex h-9 w-full items-center gap-2.5 rounded-[var(--bui-radius-chip)] px-2 text-left",children:[bt&&jsxRuntime.jsx("span",{className:"flex size-5.5 shrink-0 items-center justify-center text-ink-2",children:bt.brand?Sk[bt.brand]:jsxRuntime.jsx(bn,{size:15,children:Tk[bt.glyph??"clip"]})}),jsxRuntime.jsx("span",{className:"shrink-0 text-[12.5px] font-medium text-ink",children:D.name}),jsxRuntime.jsx("span",{className:"min-w-0 flex-1 truncate text-[12px] text-ink-3",children:D.desc}),bt?.connect&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,onClick:eo=>{eo.stopPropagation(),d?.(bt?.key??"");},className:`shrink-0 text-[12px] font-medium transition-colors duration-100 ${i?"text-green":"text-accent-ink hover:underline"}`,children:B(i?"Connected":"Connect")})]},D.key)}),Ze.length===0&&jsxRuntime.jsx("div",{className:"flex h-9 items-center px-2 text-[12px] text-ink-3",children:B("noMatches",{query:ct})}),jsxRuntime.jsx("div",{className:"mt-1 border-t border-line px-2 pt-1.5 pb-1 text-[11px] text-ink-3",children:B(_e==="at"?"Type to search sources & files":"Type to search commands")})]}),pe&&jsxRuntime.jsxs("div",{onMouseLeave:()=>Fe(null),className:"absolute z-10 w-44 rounded-[10px] bg-surface p-1 shadow-raised",style:{left:Qe,bottom:zt,animation:"bui-pop-in 180ms cubic-bezier(0.23,1,0.32,1) both",transformOrigin:"bottom left"},children:[jsxRuntime.jsx("span",{"aria-hidden":true,className:"pointer-events-none absolute inset-x-1 rounded-[6px] bg-hover",style:{top:Ne?.top??0,height:Ne?.height??0,opacity:Ne&&Ke!==null?1:0,transition:"top 220ms cubic-bezier(0.23,1,0.32,1), height 220ms cubic-bezier(0.23,1,0.32,1), opacity 150ms ease"}}),n.map((D,$e)=>jsxRuntime.jsxs("button",{type:"button",ref:bt=>{Gn.current[$e]=bt;},onMouseDown:bt=>bt.preventDefault(),onMouseEnter:()=>Fe($e),onClick:()=>{Rr(D),po.current?.focus();},className:"relative z-10 flex h-7.5 w-full items-center gap-2 rounded-[var(--bui-radius-chip)] px-2 text-left",children:[jsxRuntime.jsx("span",{className:"min-w-0 flex-1 truncate text-[12.5px] font-medium text-ink",children:D.name}),jsxRuntime.jsx("span",{className:"shrink-0 text-[11px] text-ink-3",children:D.tag}),jsxRuntime.jsx("span",{className:`shrink-0 text-ink ${D.key===Z.key?"":"invisible"}`,children:jsxRuntime.jsx(bn,{size:13,strokeWidth:2.5,children:jsxRuntime.jsx("path",{d:"M20 6L9 17l-5-5"})})})]},D.key))]}),jsxRuntime.jsxs("div",{style:{padding:`var(--bui-token-composer-padding, ${f?"calc(var(--bui-spacing) * 3.5)":"calc(var(--bui-spacing) * 1.5)"})`,borderRadius:`var(--bui-token-radius-control, ${L?r.length>0||ft?"24px":"9999px":f?"22px":"14px"})`},className:`promptbar-surface relative isolate flex flex-col overflow-hidden border border-line bg-surface shadow-card transition-[border-color,border-radius] duration-150 focus-within:border-line-strong ${f?"gap-2.5 p-3.5":"gap-1.5 p-1.5"} ${L?r.length>0||ft?"rounded-[24px]":"rounded-full":f?"rounded-[22px]":"rounded-[14px]"}`,children:[jsxRuntime.jsx("canvas",{ref:N,"aria-hidden":"true",className:"pointer-events-none absolute inset-0 -z-10 h-full w-full",style:{borderRadius:"inherit"}}),jsxRuntime.jsx("span",{ref:Pr,"aria-hidden":"true",className:"promptbar-measure pointer-events-none absolute invisible whitespace-pre text-[13px] leading-[18px]",children:q}),r.length>0&&jsxRuntime.jsx("div",{className:`flex flex-wrap gap-1.5 pt-0.5 ${L?"px-1":"px-0.5"}`,children:r.map((D,$e)=>jsxRuntime.jsxs("span",{className:`flex h-6.5 items-center gap-1.5 bg-field py-1 pr-1 pl-1.5 text-[11.5px] text-ink-2 shadow-hairline ${L?"rounded-full":"rounded-chip"}`,style:{animation:"bui-pop-in 200ms cubic-bezier(0.23,1,0.32,1) both"},children:[jsxRuntime.jsx(bn,{size:12,children:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),jsxRuntime.jsx("path",{d:"M14 2v6h6"})]})}),jsxRuntime.jsx("span",{className:"max-w-36 truncate",children:D}),jsxRuntime.jsx("button",{type:"button","aria-label":`Remove ${D}`,onClick:()=>m?.($e),className:`-my-1 flex size-6 items-center justify-center text-ink-3 transition-colors duration-100 hover:bg-line/70 hover:text-ink ${L?"rounded-[var(--bui-radius-pill)]":"rounded-[var(--bui-radius-scale-5)]"}`,children:jsxRuntime.jsx(bn,{size:10,strokeWidth:2.5,children:jsxRuntime.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})})]},`${D}-${$e}`))}),jsxRuntime.jsxs("div",{ref:St,className:"promptbar-controls flex flex-wrap items-end gap-x-1 gap-y-1.5",children:[J&&(p?p(js,uo):js),x&&g,jsxRuntime.jsx("textarea",{ref:po,style:{minHeight:`var(--bui-token-composer-control-height, ${f?"68px":"calc(var(--bui-spacing) * 7)"})`},rows:qe,value:q,disabled:P||Q,onChange:D=>{_(D.target.value),F(false),ae(false);},onKeyDown:D=>{if(!(D.nativeEvent.isComposing||D.keyCode===229)){if(_e&&Ze.length>0){if(D.key==="ArrowDown"||D.key==="ArrowUp"){D.preventDefault(),me(true),gt($e=>($e+(D.key==="ArrowDown"?1:Ze.length-1))%Ze.length);return}if(D.key==="Enter"&&!D.shiftKey||D.key==="Tab"){D.preventDefault(),Us(Ze[Ge]);return}}if(D.key==="Escape"){F(true),qn();return}D.key==="Enter"&&!D.shiftKey&&!D.nativeEvent.isComposing&&(D.preventDefault(),Vs());}},placeholder:s?B("Listening\u2026"):S??B("Write a message\u2026"),"aria-label":W??B("Prompt"),className:`promptbar-input ${f?"min-h-[68px] px-2 py-2 text-[14px] leading-5":"min-h-7 px-1 py-[5px] text-[13px] leading-[18px]"} min-w-0 w-full resize-none bg-transparent text-ink outline-none [overflow-wrap:anywhere] placeholder:text-ink-3 ${ft?"order-first basis-full":"flex-1"}`}),V&&jsxRuntime.jsxs("button",{disabled:P||Q,ref:vn,type:"button","aria-expanded":pe,"aria-label":B("Choose model"),onClick:()=>{ae(false),Ce(D=>!D);},className:`promptbar-model flex h-7 shrink-0 items-center gap-1 px-1.5 text-[12px] font-medium text-ink-2 transition-colors duration-150 hover:bg-hover hover:text-ink ${L?"rounded-[var(--bui-radius-pill)]":"rounded-[var(--bui-radius-control)]"} `,children:[Z.name,jsxRuntime.jsx("span",{className:"text-ink-3",children:jsxRuntime.jsx(bn,{size:11,strokeWidth:2.4,children:jsxRuntime.jsx("path",{d:"M6 9l6 6 6-6"})})})]}),ft&&jsxRuntime.jsx("span",{className:"flex-1","aria-hidden":"true"}),b,(k||c)&&jsxRuntime.jsx("button",{disabled:P||Q||!c,type:"button","aria-label":B(s?"Stop dictation":"Start dictation"),"aria-pressed":s,onClick:()=>c?.(!s),className:`flex size-7 shrink-0 items-center justify-center transition-[background-color,color,transform] duration-150 active:scale-[0.94] ${L?"rounded-[var(--bui-radius-pill)]":"rounded-[var(--bui-radius-control)]"} ${s?"bg-accent-tint text-accent-ink":"text-ink-3 hover:bg-hover hover:text-ink"} `,children:s?jsxRuntime.jsx("span",{className:"flex h-3.5 items-center gap-[2.5px]",children:[0,1,2].map(D=>jsxRuntime.jsx("span",{className:"w-[2.5px] rounded-full bg-current",style:{height:"100%",animation:`bui-eq-bounce 900ms ease-in-out ${D*150}ms infinite`}},D))}):jsxRuntime.jsx(bn,{size:15,strokeWidth:2,children:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3z"}),jsxRuntime.jsx("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2M12 19v3"})]})})}),jsxRuntime.jsx("button",{type:"button","aria-label":B(E&&R?"Stop response":"Send"),disabled:E&&R?false:!Mr,onClick:E&&R?R:()=>{Vs();},className:`flex size-7 shrink-0 items-center justify-center transition-[background-color,color,transform] duration-200 enabled:active:scale-[0.94] ${L?"rounded-[var(--bui-radius-pill)]":"rounded-[var(--bui-radius-control)]"} `,style:{background:Mr||E&&R?"var(--bui-token-primary, var(--bui-ink))":"var(--bui-line-strong)",color:Mr||E&&R?"var(--bui-token-primary-foreground, var(--bui-surface))":"var(--bui-ink-2)"},children:jsxRuntime.jsx(bn,{size:16,strokeWidth:2.4,children:E&&R?jsxRuntime.jsx("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2",fill:"currentColor",stroke:"none"}):jsxRuntime.jsx("path",{d:"M12 19V5M5 12l7-7 7 7"})})})]})]})]})})})}a(Ka,"BUIPromptBar");function Ds({container:e,composer:t=false,children:o}){let n=ye.useRef(null),[r]=ye.useState(()=>typeof document>"u"?null:document.createElement("div"));ye.useLayoutEffect(()=>{if(!r)return;let s=r.contains(document.activeElement)?document.activeElement:null;r.style.display="contents",(e??n.current)?.appendChild(r),s?.focus({preventScroll:true});},[e,r]),ye.useLayoutEffect(()=>()=>r?.remove(),[r]);let i=jsxRuntime.jsx(re,{portal:true,children:jsxRuntime.jsx("div",{className:t?"bui-composer-host":"bui-conversation-host","data-bui-composer-placement":t?e?"floating":"inline":void 0,children:jsxRuntime.jsx(pr,{portal:t&&e?{container:r}:void 0,children:jsxRuntime.jsx("div",{className:t?"bui-composer-host-content":"bui-conversation-host",onPointerDown:t&&e?s=>s.stopPropagation():void 0,onWheel:t&&e?s=>s.stopPropagation():void 0,onKeyDown:t&&e?s=>s.stopPropagation():void 0,children:o})})})});return jsxRuntime.jsx(re,{children:jsxRuntime.jsx("div",{ref:n,className:t?"bui-composer-anchor":"bui-conversation-anchor",children:r?reactDom.createPortal(i,r):i})})}a(Ds,"ConversationHost");var Bk=[],Nk=[],Ek={initialPrompt:"",placeholder:"Enter a message"};function Ik({label:e,sub:t,time:o,body:n,resolving:r}){let i=Ue();return jsxRuntime.jsxs("div",{className:"flex w-full flex-col gap-1.5 transition-[opacity,filter,transform] duration-400",style:{opacity:r?.55:1,filter:r?"blur(0.5px)":"blur(0)",transform:r?"scale(0.985)":"scale(1)",transformOrigin:"top left",transitionTimingFunction:"cubic-bezier(0.23, 1, 0.32, 1)",animation:"bui-fade-up 400ms cubic-bezier(0.23,1,0.32,1) both"},children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-1 text-[12px] leading-[1.3]",children:[jsxRuntime.jsx("span",{className:"font-medium text-ink",children:e}),jsxRuntime.jsx("span",{className:"text-ink-2",children:t}),o&&jsxRuntime.jsx("span",{className:"text-ink",children:i("duration",{time:o})})]}),jsxRuntime.jsx("p",{className:"text-[13px] leading-normal text-ink",children:n})]})}a(Ik,"Section");function ep({messages:e=Bk,suggestions:t=Nk,labels:o,onSend:n,busy:r=false,onHeaderAction:i,fill:s=false,title:l,value:d,onValueChange:c,readOnly:u=false,loading:m=false,error:p,onRetry:g,onStop:b,children:x,renderMessage:f,pendingContent:y,composerContent:k,composerAccessory:S,composerProgress:w,composerNotice:C,composerContainer:T,conversationContainer:$,headerActions:P,sidePanel:E,readable:R=false,showMessageLabels:W=true}){let B=Ue(),A=Ot(Ek,o),[L,I]=ye.useState(""),K=d??L,q=a(Z=>{I(Z),c?.(Z);},"setDraft"),[_,Y]=ye.useState(false),M=ye.useRef(false),z=ye.useRef(true),Q=ye.useRef(null),ce=ye.useRef(true),se=[...e].reverse().find(Z=>Z.role==="user")?.id;ye.useEffect(()=>{se&&(ce.current=true);},[se]),ye.useEffect(()=>(z.current=true,()=>{z.current=false;}),[]),ye.useEffect(()=>{s&&ce.current&&Q.current&&(Q.current.scrollTop=Q.current.scrollHeight);},[s,e,r,x]),ye.useEffect(()=>{let Z=Q.current,Re=Z?.firstElementChild;if(!s||!Z||!Re||typeof ResizeObserver>"u")return;let Ge=new ResizeObserver(()=>{ce.current&&(Z.scrollTop=Z.scrollHeight);});return Ge.observe(Re),()=>Ge.disconnect()},[s]);let[V,J]=ye.useState(A.initialPrompt),[O,F]=ye.useState(t[0]??""),oe=ye.useRef(null),ae=!!V,pe=K.trim().length>0&&!r&&!_&&!m&&!u&&!!n,Ce=a(async()=>{if(!pe||M.current)return;let Z=K.trim();M.current=true,Y(true);try{await n?.(Z)!==!1&&z.current&&(J(Z),q(""),ce.current=!0);}catch{}finally{M.current=false,z.current&&Y(false);}},"send");return s?jsxRuntime.jsx(Ds,{container:$,children:jsxRuntime.jsx(re,{children:jsxRuntime.jsxs("section",{"data-readable":R||void 0,"data-panel-open":!!E||void 0,"data-composer-progress":!!w||void 0,className:"chat-composer-fill flex h-full min-h-0 w-full min-w-0 flex-col overflow-hidden text-ink","aria-label":l||B("Agent"),children:[(l||P)&&jsxRuntime.jsxs("header",{className:"chat-composer-header flex shrink-0 items-center justify-between border-b border-line px-4 py-3",children:[jsxRuntime.jsx("span",{className:"truncate text-[14px] font-medium",children:l}),P]}),jsxRuntime.jsxs("div",{className:"chat-composer-body",children:[jsxRuntime.jsxs("div",{className:"chat-composer-main",children:[jsxRuntime.jsx("div",{ref:Q,role:"log","aria-label":B("Chat history"),"aria-busy":r||m,className:"chat-composer-transcript flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto p-4",onScroll:()=>{let Z=Q.current;Z&&(ce.current=Z.scrollHeight-Z.scrollTop-Z.clientHeight<48);},children:jsxRuntime.jsxs("div",{className:"chat-composer-content",children:[m?jsxRuntime.jsx("span",{role:"status",className:"text-[13px] text-ink-2",children:B("Loading")}):e.map((Z,Re)=>jsxRuntime.jsxs("article",{"aria-label":W?void 0:Z.label,className:Z.role==="user"?"ml-auto max-w-full rounded-xl bg-field px-3 py-2":"w-full min-w-0",style:!W&&Z.role==="user"?{width:"fit-content",maxWidth:"85%"}:void 0,children:[W&&jsxRuntime.jsx("div",{className:"mb-1 text-[12px] font-medium text-ink-2",children:Z.label}),f?f(Z,Re):jsxRuntime.jsx("p",{className:"whitespace-pre-wrap break-words text-[13px] leading-normal",children:Z.body})]},Z.id??Re)),!m&&!r&&!p&&e.length===0&&ye.Children.toArray(x).length===0&&jsxRuntime.jsx("div",{className:"flex flex-1 items-center justify-center text-[13px] text-ink-3",children:B("Start a conversation")}),x,!m&&r&&(y===void 0?jsxRuntime.jsx(gn,{variant:"Dots",label:B("Loading")}):y)]})}),(!u||S||w||p)&&jsxRuntime.jsx("div",{className:"chat-composer-footer shrink-0 p-3",children:jsxRuntime.jsxs(Ds,{container:T,composer:true,children:[w&&jsxRuntime.jsx("div",{className:"chat-composer-progress",children:w}),p&&jsxRuntime.jsxs("div",{role:"alert",className:"chat-composer-alert flex items-center gap-2 px-4 py-2 text-[13px] text-red",children:[jsxRuntime.jsx("span",{children:p}),g&&jsxRuntime.jsx("button",{type:"button",onClick:g,className:"underline",children:B("Retry")})]}),C,(!u||S)&&jsxRuntime.jsxs("div",{className:"chat-composer-input",children:[S&&jsxRuntime.jsx("div",{className:"chat-composer-accessory",children:S}),!u&&(k===void 0?jsxRuntime.jsx(Ka,{value:K,onValueChange:q,disabled:m,busy:r,onStop:b,placeholder:A.placeholder,inputLabel:B("Chat prompt"),onSubmit:n?async Z=>{let Re=await n(Z);return Re!==false&&(ce.current=true),Re}:void 0}):k)]})]})})]}),E&&jsxRuntime.jsx("aside",{className:"chat-composer-side-panel",children:E})]})]})})}):jsxRuntime.jsx(re,{children:jsxRuntime.jsxs("div",{className:"flex h-[288px] w-full max-w-95 flex-col self-start overflow-hidden rounded-[14px] bg-surface shadow-card",children:[jsxRuntime.jsxs("div",{className:"flex shrink-0 items-center justify-between border-b border-line p-1.5",children:[jsxRuntime.jsx("div",{className:"flex items-center",children:t.map(Z=>jsxRuntime.jsx("button",{type:"button","aria-pressed":O===Z,onClick:()=>F(Z),className:`rounded-[var(--bui-radius-chip)] px-2 py-[3px] text-[13px] text-ink transition-[background-color,opacity] duration-100 ${O===Z?"bg-field":"opacity-50 hover:opacity-75"}`,children:Z},Z))}),jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("path",{d:"M12 5v14M5 12h14"},"p"),jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"9"}),jsxRuntime.jsx("path",{d:"M12 7v5l3 2"})]},"h"),jsxRuntime.jsxs("g",{fill:"currentColor",stroke:"none",children:[jsxRuntime.jsx("circle",{cx:"5",cy:"12",r:"1.8"}),jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"1.8"}),jsxRuntime.jsx("circle",{cx:"19",cy:"12",r:"1.8"})]},"e")].map((Z,Re)=>jsxRuntime.jsx("button",{type:"button","aria-label":[B("New"),B("History"),B("More")][Re],onClick:()=>i?.(["new","history","more"][Re]),className:`flex size-6 items-center justify-center rounded-[var(--bui-radius-chip)] text-ink-3
|
|
259
|
+
`,vk=a(e=>{switch(e){case "ltr":return {axis:0,posStart:-0.2,posEnd:1.2};case "rtl":return {axis:0,posStart:1.2,posEnd:-0.2};case "ttb":return {axis:1,posStart:-0.2,posEnd:1.2};case "btt":return {axis:1,posStart:1.2,posEnd:-0.2}}},"dirToUniforms");function Yu(e={}){if(typeof window>"u")return null;let t=e.canvas??document.createElement("canvas"),o=t.getContext("webgl",{alpha:true,antialias:false,premultipliedAlpha:true});if(!o)return null;let n=a((M,z)=>{let Q=o.createShader(M);return Q?(o.shaderSource(Q,z),o.compileShader(Q),o.getShaderParameter(Q,o.COMPILE_STATUS)?Q:(console.error("[glimm] shader compile error:",o.getShaderInfoLog(Q)),o.deleteShader(Q),null)):null},"compile"),r=n(o.VERTEX_SHADER,hk);if(!r)return null;let i=n(o.FRAGMENT_SHADER,yk);if(!i)return o.deleteShader(r),null;let s=o.createProgram();if(!s)return o.deleteShader(r),o.deleteShader(i),null;if(o.attachShader(s,r),o.attachShader(s,i),o.linkProgram(s),!o.getProgramParameter(s,o.LINK_STATUS))return console.error("[glimm] shader link error:",o.getProgramInfoLog(s)),o.deleteProgram(s),o.deleteShader(r),o.deleteShader(i),null;o.useProgram(s);let l=o.createBuffer();o.bindBuffer(o.ARRAY_BUFFER,l),o.bufferData(o.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,1,1]),o.STATIC_DRAW);let d=o.getAttribLocation(s,"a");o.enableVertexAttribArray(d),o.vertexAttribPointer(d,2,o.FLOAT,false,0,0);let c=a(M=>o.getUniformLocation(s,M),"u"),u=c("uRes"),m=c("uTime"),p=c("uProgress"),g=c("uAlpha"),b=c("uBandTight"),x=c("uPosStart"),f=c("uPosEnd"),h=c("uHueShift"),k=c("uDirection"),$=c("uWaveAmount"),w=c("uRippleAmount"),C=c("uWaveSpeed"),T=c("uBrightness"),S=c("uSwellAmount"),P=c("uPalA"),E=c("uPalB"),R=c("uPalC"),W=c("uPalD");o.enable(o.BLEND),o.blendFunc(o.ONE,o.ONE_MINUS_SRC_ALPHA);let B=a((M,z,Q)=>Math.max(z,Math.min(Q,M)),"clamp"),A={progress:0,alpha:0,palette:e.palette??Xu(void 0),bandTight:B(e.bandTight??14,.1,200),direction:e.direction??"ltr",waveAmount:B(e.waveAmount??0,0,2),rippleAmount:B(e.rippleAmount??1,0,2),waveSpeed:B(e.waveSpeed??1,0,3),brightness:B(e.brightness??1,0,1.5),swellAmount:B(e.swellAmount??.55,0,1)},L=Math.random()*.4,I=a(()=>{let M=Math.min(window.devicePixelRatio||1,2),z=t.getBoundingClientRect(),Q=Math.max(1,Math.round(z.width*M)),ce=Math.max(1,Math.round(z.height*M));(t.width!==Q||t.height!==ce)&&(t.width=Q,t.height=ce,o.viewport(0,0,Q,ce));},"resize");I();let K=new ResizeObserver(I);K.observe(t);let q=performance.now(),_=0,Y=a(()=>{let M=(performance.now()-q)/1e3,z=vk(A.direction);o.clearColor(0,0,0,0),o.clear(o.COLOR_BUFFER_BIT),o.uniform2f(u,t.width,t.height),o.uniform1f(m,M),o.uniform1f(p,A.progress),o.uniform1f(g,A.alpha),o.uniform1f(b,A.bandTight),o.uniform1f(x,z.posStart),o.uniform1f(f,z.posEnd),o.uniform1f(k,z.axis),o.uniform1f($,A.waveAmount),o.uniform1f(w,A.rippleAmount),o.uniform1f(C,A.waveSpeed),o.uniform1f(T,A.brightness),o.uniform1f(S,A.swellAmount),o.uniform1f(h,L),o.uniform3f(P,A.palette.a[0],A.palette.a[1],A.palette.a[2]),o.uniform3f(E,A.palette.b[0],A.palette.b[1],A.palette.b[2]),o.uniform3f(R,A.palette.c[0],A.palette.c[1],A.palette.c[2]),o.uniform3f(W,A.palette.d[0],A.palette.d[1],A.palette.d[2]),o.drawArrays(o.TRIANGLE_STRIP,0,4),_=requestAnimationFrame(Y);},"tick");return _=requestAnimationFrame(Y),{canvas:t,setProgress:a(M=>{A.progress=B(M,0,1);},"setProgress"),setAlpha:a(M=>{A.alpha=B(M,0,1.5);},"setAlpha"),setPalette:a(M=>{A.palette=M;},"setPalette"),setBandTight:a(M=>{A.bandTight=B(M,.1,200);},"setBandTight"),setDirection:a(M=>{A.direction=M;},"setDirection"),setWaveAmount:a(M=>{A.waveAmount=B(M,0,2);},"setWaveAmount"),setRippleAmount:a(M=>{A.rippleAmount=B(M,0,2);},"setRippleAmount"),setWaveSpeed:a(M=>{A.waveSpeed=B(M,0,3);},"setWaveSpeed"),setBrightness:a(M=>{A.brightness=B(M,0,1.5);},"setBrightness"),setSwellAmount:a(M=>{A.swellAmount=B(M,0,1);},"setSwellAmount"),getProgress:a(()=>A.progress,"getProgress"),getAlpha:a(()=>A.alpha,"getAlpha"),destroy:a(()=>{cancelAnimationFrame(_),K.disconnect(),o.deleteProgram(s),o.deleteBuffer(l),o.deleteShader(r),o.deleteShader(i);},"destroy")}}a(Yu,"createShader");function Is(e,t,o,n){let r=a(l=>3*(1-l)*(1-l)*l*e+3*(1-l)*l*l*o+l*l*l,"bezX"),i=a(l=>3*(1-l)*(1-l)*l*t+3*(1-l)*l*l*n+l*l*l,"bezY"),s=a(l=>3*(1-4*l+3*l*l)*e+3*(2*l-3*l*l)*o+3*l*l,"bezXd");return l=>{if(l<=0)return 0;if(l>=1)return 1;let d=l;for(let c=0;c<8;c++){let u=r(d)-l;if(Math.abs(u)<1e-6)break;let m=s(d);if(Math.abs(m)<1e-6)break;d-=u/m;}return i(d)}}a(Is,"cubicBezier");var Gu={linear:a(e=>e,"linear"),easeOutQuart:a(e=>1-Math.pow(1-e,4),"easeOutQuart"),easeOutCubic:a(e=>1-Math.pow(1-e,3),"easeOutCubic"),easeInCubic:a(e=>e*e*e,"easeInCubic"),easeInOutCubic:a(e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,"easeInOutCubic"),easeOutExpo:a(e=>e===1?1:1-Math.pow(2,-10*e),"easeOutExpo"),easeInOutQuint:a(e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,"easeInOutQuint"),snap:Is(1,0,.35,.95),ease:Is(.25,.1,.25,1),back:Is(.175,.885,.32,1.1)},xk=a(e=>e?typeof e=="function"?e:Gu[e]:Gu.easeOutQuart,"resolveEasing"),kk=a(e=>1-Math.pow(1-e,4),"easeOutQuart"),wk=a(e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,"easeInOutCubic");function Qu(e,t={}){let o=t.sweepMs??1100,n=t.outroMs??700,r=Math.max(0,Math.min(1,t.midpoint??.56)),i=xk(t.easing??"ease")??kk,s=Math.max(0,Math.min(1.5,t.peakAlpha??1));t.palette&&e.setPalette(Xu(t.palette)),t.bandTight!==void 0&&e.setBandTight(t.bandTight),t.direction&&e.setDirection(t.direction),t.waveAmount!==void 0&&e.setWaveAmount(t.waveAmount),t.rippleAmount!==void 0&&e.setRippleAmount(t.rippleAmount),t.waveSpeed!==void 0&&e.setWaveSpeed(t.waveSpeed),t.brightness!==void 0&&e.setBrightness(t.brightness),t.swellAmount!==void 0&&e.setSwellAmount(t.swellAmount);let l=false,d=0,c,u,m=new Promise(g=>{c=g;}),p=new Promise(g=>{u=g;});return (async()=>{let g=e.getProgress(),b=g>=.999?0:Math.max(0,Math.min(1,g));e.setAlpha(s),e.setProgress(b);let x=1-b,f=Math.max(80,o*x),h=false,k=Promise.resolve(),$=a(()=>{h=true,k=Promise.resolve().then(()=>t.onMidpoint?.()).then(()=>{}),k.then(c,C=>{console.error("[glimm] midpoint callback failed:",C),c();});},"fireMidpoint"),w=performance.now();await new Promise(C=>{let T=a(()=>{if(l){C();return}let S=Math.min(1,(performance.now()-w)/f),P=i(S),E=b+x*P;e.setProgress(E),!h&&E>=r&&$(),S<1?d=requestAnimationFrame(T):C();},"tick");d=requestAnimationFrame(T);}),!l&&(h||$(),await k.catch(()=>{}),!l&&(await Ck(n,s,0,wk,e.setAlpha,()=>l,C=>{d=C;}),!l&&(e.setProgress(0),t.onComplete?.(),u())));})(),{midpoint:m,done:p,cancel:a(()=>{l=true,cancelAnimationFrame(d),c(),u();},"cancel")}}a(Qu,"playSweep");function Ck(e,t,o,n,r,i,s){return new Promise(l=>{let d=performance.now(),c=a(()=>{if(i()){l();return}let u=Math.min(1,(performance.now()-d)/e);r(t+(o-t)*n(u)),u<1?s(requestAnimationFrame(c)):l();},"tick");s(requestAnimationFrame(c));})}a(Ck,"runRamp");var Zu=Zo([Zt.red,Zt.orange,Zt.yellow,Zt.green,Zt.cyan,Zt.blue,Zt.purple]);function hn({children:e,size:t=15,strokeWidth:o=1.8}){return jsxRuntime.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:e})}a(hn,"Icon");var Sk={clip:jsxRuntime.jsx("path",{d:"m21.4 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48"}),chart:jsxRuntime.jsx("path",{d:"M4 20V10M10 20V4M16 20v-7M22 20H2"}),layers:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("path",{d:"M12 2 2 7l10 5 10-5-10-5z"}),jsxRuntime.jsx("path",{d:"M2 17l10 5 10-5M2 12l10 5 10-5"})]}),globe:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"10"}),jsxRuntime.jsx("path",{d:"M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"})]})},$k={figma:jsxRuntime.jsxs("svg",{width:"11",height:"16",viewBox:"0 0 38 57","aria-hidden":"true",children:[jsxRuntime.jsx("path",{d:"M9.5 57A9.5 9.5 0 0 0 19 47.5V38H9.5a9.5 9.5 0 0 0 0 19z",fill:"var(--bui-brand-figma-green)"}),jsxRuntime.jsx("path",{d:"M0 28.5A9.5 9.5 0 0 1 9.5 19H19v19H9.5A9.5 9.5 0 0 1 0 28.5z",fill:"var(--bui-brand-figma-purple)"}),jsxRuntime.jsx("path",{d:"M0 9.5A9.5 9.5 0 0 1 9.5 0H19v19H9.5A9.5 9.5 0 0 1 0 9.5z",fill:"var(--bui-brand-figma-red)"}),jsxRuntime.jsx("path",{d:"M19 0h9.5a9.5 9.5 0 1 1 0 19H19V0z",fill:"var(--bui-brand-figma-orange)"}),jsxRuntime.jsx("path",{d:"M38 28.5a9.5 9.5 0 1 1-19 0 9.5 9.5 0 0 1 19 0z",fill:"var(--bui-brand-figma-blue)"})]}),slack:jsxRuntime.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 127 127","aria-hidden":"true",children:[jsxRuntime.jsx("path",{d:"M27.2 80c0 7.3-5.9 13.2-13.2 13.2C6.7 93.2.8 87.3.8 80c0-7.3 5.9-13.2 13.2-13.2h13.2V80zm6.6 0c0-7.3 5.9-13.2 13.2-13.2 7.3 0 13.2 5.9 13.2 13.2v33c0 7.3-5.9 13.2-13.2 13.2-7.3 0-13.2-5.9-13.2-13.2V80z",fill:"var(--bui-brand-slack-red)"}),jsxRuntime.jsx("path",{d:"M47 27.2c-7.3 0-13.2-5.9-13.2-13.2C33.8 6.7 39.7.8 47 .8c7.3 0 13.2 5.9 13.2 13.2v13.2H47zm0 6.7c7.3 0 13.2 5.9 13.2 13.2 0 7.3-5.9 13.2-13.2 13.2H13.9C6.6 60.3.7 54.4.7 47.1c0-7.3 5.9-13.2 13.2-13.2H47z",fill:"var(--bui-brand-slack-blue)"}),jsxRuntime.jsx("path",{d:"M99.9 47.1c0-7.3 5.9-13.2 13.2-13.2 7.3 0 13.2 5.9 13.2 13.2 0 7.3-5.9 13.2-13.2 13.2H99.9V47.1zm-6.6 0c0 7.3-5.9 13.2-13.2 13.2-7.3 0-13.2-5.9-13.2-13.2V13.9C66.9 6.6 72.8.7 80.1.7c7.3 0 13.2 5.9 13.2 13.2v33.2z",fill:"var(--bui-brand-slack-green)"}),jsxRuntime.jsx("path",{d:"M80.1 99.8c7.3 0 13.2 5.9 13.2 13.2 0 7.3-5.9 13.2-13.2 13.2-7.3 0-13.2-5.9-13.2-13.2V99.8h13.2zm0-6.6c-7.3 0-13.2-5.9-13.2-13.2 0-7.3 5.9-13.2 13.2-13.2h33.1c7.3 0 13.2 5.9 13.2 13.2 0 7.3-5.9 13.2-13.2 13.2H80.1z",fill:"var(--bui-brand-slack-yellow)"})]}),gmail:jsxRuntime.jsxs("svg",{width:"15",height:"12",viewBox:"0 0 256 193","aria-hidden":"true",children:[jsxRuntime.jsx("path",{d:"M58.182 192.05V93.14L27.507 65.077 0 49.504v125.091c0 9.658 7.825 17.455 17.455 17.455h40.727Z",fill:"var(--bui-brand-gmail-blue)"}),jsxRuntime.jsx("path",{d:"M197.818 192.05h40.727c9.659 0 17.455-7.826 17.455-17.455V49.505l-31.156 17.837-27.026 25.798v98.91Z",fill:"var(--bui-brand-gmail-green)"}),jsxRuntime.jsx("path",{d:"m58.182 93.14-4.174-38.647 4.174-36.989L128 69.868l69.818-52.364 4.669 34.992-4.669 40.644L128 145.504 58.182 93.14Z",fill:"var(--bui-brand-gmail-red)"}),jsxRuntime.jsx("path",{d:"M197.818 17.504V93.14L256 49.504V26.231c0-21.585-24.64-33.89-41.89-20.945l-16.292 12.218Z",fill:"var(--bui-brand-gmail-yellow)"}),jsxRuntime.jsx("path",{d:"m0 49.504 26.759 20.07L58.182 93.14V17.504L41.89 5.286C24.61-7.66 0 4.646 0 26.23v23.273Z",fill:"var(--bui-brand-gmail-fold)"})]})};function Pk(e){let t=/(^|\s)([@/])([\w-]*)$/.exec(e);return t?{kind:t[2]==="@"?"at":"slash",query:t[3].toLowerCase(),start:t.index+t[1].length}:null}a(Pk,"parseToken");function Ka({variant:e="Rounded",sources:t=[],commands:o=[],models:n=[],files:r=[],connected:i=false,listening:s=false,onAttach:l,onConnect:d,onDictation:c,onModelChange:u,onRemoveAttachment:m,renderAttachButton:p,controls:g,trailingControls:b,controlsVisible:x=true,tall:f=false,minRows:h=1,showDictation:k=false,placeholder:$,onSend:w,onSubmit:C,value:T,onValueChange:S,disabled:P=false,busy:E=false,onStop:R,inputLabel:W}){let B=Ue(),A=_n(),L=e==="Pill",[I,K]=he.useState(""),q=T??I,_=a(D=>{K(D),S?.(D);},"setDraft"),Y=he.useRef(q);Y.current=q;let M=he.useRef(false),z=he.useRef(true),[Q,ce]=he.useState(false);he.useEffect(()=>(z.current=true,()=>{z.current=false;}),[]);let se=t.length>0,V=n.length>0,J=se||!!l||!!p,[O,F]=he.useState(false),[ne,ae]=he.useState(false),[me,Ce]=he.useState(false),[Z,Re]=he.useState(n[0]??{key:"",name:B("Model")}),[Ge,gt]=he.useState(0),[oe,De]=he.useState(false),qe=Math.max(1,Math.min(5,Math.trunc(h)||1)),ft=oe||f||qe>1||!!(x&&g||b),[Gt,Po]=he.useState(null),[j,ge]=he.useState(false),[Ne,He]=he.useState(null),[Ke,Fe]=he.useState(null),[Qe,qt]=he.useState(0),[zt,co]=he.useState(0),uo=he.useRef(null),St=he.useRef(null),po=he.useRef(null),Pr=he.useRef(null),xn=he.useRef(null),Gn=he.useRef([]),qn=he.useRef([]),N=he.useRef(null),re=he.useRef(null),ve=he.useRef(false),ye=O?null:Pk(q),_e=P||Q?null:ne||ye?.kind==="at"&&se?"at":ye?.kind==="slash"&&o.length?"slash":null,ct=ne?"":ye?.query??"",Ze=_e==="at"?t.filter(D=>D.name.toLowerCase().includes(ct)):_e==="slash"?o.filter(D=>D.name.slice(1).startsWith(ct)):[];he.useEffect(()=>{gt(0),ge(false);},[_e,ct]),he.useLayoutEffect(()=>{let D=Gn.current[Ge];D&&Po({top:D.offsetTop,height:D.offsetHeight});},[_e,ct,Ge,i,Ze.length]);let Me=n.findIndex(D=>D.key===Z.key);he.useLayoutEffect(()=>{if(!me)return;let D=qn.current[Ke??Me];D&&He({top:D.offsetTop,height:D.offsetHeight});},[me,Ke,Me]),he.useLayoutEffect(()=>{if(!me||!uo.current||!xn.current)return;let D=uo.current.getBoundingClientRect(),$e=xn.current.getBoundingClientRect();qt(Math.max(0,Math.min($e.left-D.left,D.width-176))),co(D.bottom-$e.top+8);},[me,ft,Z.name]),he.useEffect(()=>{me||Fe(null);},[me]);let Ro=a(()=>{let D=N.current;if(!D)return null;try{return Yu({canvas:D,palette:Zu,direction:"ltr",bandTight:10,swellAmount:.85})}catch{return null}},"makeShader");he.useEffect(()=>{if(n.some(D=>D.accent))return re.current=Ro(),()=>{re.current?.destroy(),re.current=null;}},[]);let on=a(()=>{if(ve.current||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;re.current?.destroy();let D=Ro();if(re.current=D,!D)return;ve.current=true,Qu(D,{palette:Zu,direction:"ltr",sweepMs:570,outroMs:80,peakAlpha:1.3,bandTight:10,brightness:1.4,swellAmount:1,waveSpeed:1.8,easing:"easeOutExpo"}).done.finally(()=>{ve.current=false;});},"celebrate"),Rr=a(D=>{Re(D),Ce(false),u?.(D.key),D.accent&&on();},"selectModel");he.useLayoutEffect(()=>{let D=po.current,$e=St.current,bt=Pr.current;if(!D||!$e||!bt)return;let eo=a(()=>{let Ks=Array.from($e.children).filter(Ja=>Ja.tagName==="BUTTON"),Tp=parseFloat(getComputedStyle($e).columnGap)||0,Sp=$e.clientWidth-Ks.reduce((Ja,$p)=>Ja+$p.offsetWidth,0)-Ks.length*Tp,Xn=getComputedStyle(D),Xs=(parseFloat(Xn.paddingTop)||0)+(parseFloat(Xn.paddingBottom)||0);De(q.includes(`
|
|
260
|
+
`)||bt.offsetWidth+8>Sp);let Ys=Math.max(parseFloat(Xn.minHeight)||28,(parseFloat(Xn.lineHeight)||18)*qe+Xs),Qs=Math.max(Ys,(parseFloat(Xn.lineHeight)||18)*5+Xs);D.style.height="0px";let Zs=D.scrollHeight;D.style.height=`${Math.min(Math.max(Zs,Ys),Qs)}px`,D.style.overflowY=Zs>Qs?"auto":"hidden";},"resize");eo();let Gs=$e.clientWidth,qs=new ResizeObserver(()=>{Gs!==$e.clientWidth&&(Gs=$e.clientWidth,eo());});return qs.observe($e),()=>qs.disconnect()},[q,oe,f,qe,J,V,c,k]),he.useEffect(()=>{if(!me&&!ne)return;let D=a($e=>{$e.target.closest("[data-promptbar]")||(Ce(false),ae(false));},"close");return document.addEventListener("pointerdown",D),()=>document.removeEventListener("pointerdown",D)},[me,ne]);let Kn=a(()=>{ae(false),Ce(false);},"closeMenus"),Us=a(D=>{t.find(bt=>bt.key===D.key)?.attach?(l?.(),ye&&_(q.slice(0,ye.start))):_(_e==="at"?`${ye?q.slice(0,ye.start):q}@${D.name} `:`${ye?q.slice(0,ye.start):q}${D.name} `),ae(false),F(false),po.current?.focus();},"pick"),Mr=(q.trim().length>0||r.length>0)&&!!(C||w)&&!E&&!P&&!Q,Vs=a(async()=>{if(!Mr||M.current)return;let D=q;M.current=true,ce(true),Kn();try{let $e=C?await C(D.trim()):void 0;$e!==!1&&await w?.(D.trim()),$e!==!1&&z.current&&Y.current===D&&_("");}catch{}finally{M.current=false,z.current&&ce(false);}},"send"),js=jsxRuntime.jsx(So,{type:"button",shape:"icon",size:"sm",variant:"ghost","aria-label":B("Add attachments and sources"),"aria-expanded":se?ne:void 0,disabled:P||Q,onClick:()=>{if(p){Kn();return}Ce(false),se?ae(D=>!D):l?.(),po.current?.focus();},className:`promptbar-attach shrink-0 text-ink-3 ${ne?"bg-hover text-ink":""}`,children:jsxRuntime.jsx(lucideReact.Plus,{size:A.cssValues["component.ui.icon.size.s16"],"aria-hidden":"true"})});return jsxRuntime.jsx(ee,{children:jsxRuntime.jsx("div",{"data-promptbar":true,className:"w-full",children:jsxRuntime.jsxs("div",{ref:uo,className:"relative",children:[_e&&jsxRuntime.jsxs("div",{onMouseLeave:()=>ge(false),className:"absolute inset-x-0 bottom-full z-10 mb-2 rounded-[10px] bg-surface p-1 shadow-raised",style:{animation:"bui-pop-in 180ms cubic-bezier(0.23,1,0.32,1) both",transformOrigin:"bottom center"},children:[jsxRuntime.jsx("span",{"aria-hidden":true,className:"pointer-events-none absolute inset-x-1 rounded-[6px] bg-hover",style:{top:Gt?.top??0,height:Gt?.height??0,opacity:Gt&&j&&Ze.length>0?1:0,transition:"top 220ms cubic-bezier(0.23,1,0.32,1), height 220ms cubic-bezier(0.23,1,0.32,1), opacity 150ms ease"}}),Ze.map((D,$e)=>{let bt=_e==="at"?t.find(eo=>eo.key===D.key):void 0;return jsxRuntime.jsxs("button",{type:"button",ref:eo=>{Gn.current[$e]=eo;},onMouseDown:eo=>eo.preventDefault(),onMouseEnter:()=>{gt($e),ge(true);},onClick:()=>Us(D),className:"relative z-10 flex h-9 w-full items-center gap-2.5 rounded-[var(--bui-radius-chip)] px-2 text-left",children:[bt&&jsxRuntime.jsx("span",{className:"flex size-5.5 shrink-0 items-center justify-center text-ink-2",children:bt.brand?$k[bt.brand]:jsxRuntime.jsx(hn,{size:15,children:Sk[bt.glyph??"clip"]})}),jsxRuntime.jsx("span",{className:"shrink-0 text-[12.5px] font-medium text-ink",children:D.name}),jsxRuntime.jsx("span",{className:"min-w-0 flex-1 truncate text-[12px] text-ink-3",children:D.desc}),bt?.connect&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,onClick:eo=>{eo.stopPropagation(),d?.(bt?.key??"");},className:`shrink-0 text-[12px] font-medium transition-colors duration-100 ${i?"text-green":"text-accent-ink hover:underline"}`,children:B(i?"Connected":"Connect")})]},D.key)}),Ze.length===0&&jsxRuntime.jsx("div",{className:"flex h-9 items-center px-2 text-[12px] text-ink-3",children:B("noMatches",{query:ct})}),jsxRuntime.jsx("div",{className:"mt-1 border-t border-line px-2 pt-1.5 pb-1 text-[11px] text-ink-3",children:B(_e==="at"?"Type to search sources & files":"Type to search commands")})]}),me&&jsxRuntime.jsxs("div",{onMouseLeave:()=>Fe(null),className:"absolute z-10 w-44 rounded-[10px] bg-surface p-1 shadow-raised",style:{left:Qe,bottom:zt,animation:"bui-pop-in 180ms cubic-bezier(0.23,1,0.32,1) both",transformOrigin:"bottom left"},children:[jsxRuntime.jsx("span",{"aria-hidden":true,className:"pointer-events-none absolute inset-x-1 rounded-[6px] bg-hover",style:{top:Ne?.top??0,height:Ne?.height??0,opacity:Ne&&Ke!==null?1:0,transition:"top 220ms cubic-bezier(0.23,1,0.32,1), height 220ms cubic-bezier(0.23,1,0.32,1), opacity 150ms ease"}}),n.map((D,$e)=>jsxRuntime.jsxs("button",{type:"button",ref:bt=>{qn.current[$e]=bt;},onMouseDown:bt=>bt.preventDefault(),onMouseEnter:()=>Fe($e),onClick:()=>{Rr(D),po.current?.focus();},className:"relative z-10 flex h-7.5 w-full items-center gap-2 rounded-[var(--bui-radius-chip)] px-2 text-left",children:[jsxRuntime.jsx("span",{className:"min-w-0 flex-1 truncate text-[12.5px] font-medium text-ink",children:D.name}),jsxRuntime.jsx("span",{className:"shrink-0 text-[11px] text-ink-3",children:D.tag}),jsxRuntime.jsx("span",{className:`shrink-0 text-ink ${D.key===Z.key?"":"invisible"}`,children:jsxRuntime.jsx(hn,{size:13,strokeWidth:2.5,children:jsxRuntime.jsx("path",{d:"M20 6L9 17l-5-5"})})})]},D.key))]}),jsxRuntime.jsxs("div",{style:{padding:`var(--bui-token-composer-padding, ${f?"calc(var(--bui-spacing) * 3.5)":"calc(var(--bui-spacing) * 1.5)"})`,borderRadius:`var(--bui-token-radius-control, ${L?r.length>0||ft?"24px":"9999px":f?"22px":"14px"})`},className:`promptbar-surface relative isolate flex flex-col overflow-hidden border border-line bg-surface shadow-card transition-[border-color,border-radius] duration-150 focus-within:border-line-strong ${f?"gap-2.5 p-3.5":"gap-1.5 p-1.5"} ${L?r.length>0||ft?"rounded-[24px]":"rounded-full":f?"rounded-[22px]":"rounded-[14px]"}`,children:[jsxRuntime.jsx("canvas",{ref:N,"aria-hidden":"true",className:"pointer-events-none absolute inset-0 -z-10 h-full w-full",style:{borderRadius:"inherit"}}),jsxRuntime.jsx("span",{ref:Pr,"aria-hidden":"true",className:"promptbar-measure pointer-events-none absolute invisible whitespace-pre text-[13px] leading-[18px]",children:q}),r.length>0&&jsxRuntime.jsx("div",{className:`flex flex-wrap gap-1.5 pt-0.5 ${L?"px-1":"px-0.5"}`,children:r.map((D,$e)=>jsxRuntime.jsxs("span",{className:`flex h-6.5 items-center gap-1.5 bg-field py-1 pr-1 pl-1.5 text-[11.5px] text-ink-2 shadow-hairline ${L?"rounded-full":"rounded-chip"}`,style:{animation:"bui-pop-in 200ms cubic-bezier(0.23,1,0.32,1) both"},children:[jsxRuntime.jsx(hn,{size:12,children:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),jsxRuntime.jsx("path",{d:"M14 2v6h6"})]})}),jsxRuntime.jsx("span",{className:"max-w-36 truncate",children:D}),jsxRuntime.jsx("button",{type:"button","aria-label":`Remove ${D}`,onClick:()=>m?.($e),className:`-my-1 flex size-6 items-center justify-center text-ink-3 transition-colors duration-100 hover:bg-line/70 hover:text-ink ${L?"rounded-[var(--bui-radius-pill)]":"rounded-[var(--bui-radius-scale-5)]"}`,children:jsxRuntime.jsx(hn,{size:10,strokeWidth:2.5,children:jsxRuntime.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})})]},`${D}-${$e}`))}),jsxRuntime.jsxs("div",{ref:St,className:"promptbar-controls flex flex-wrap items-end gap-x-1 gap-y-1.5",children:[J&&(p?p(js,uo):js),x&&g,jsxRuntime.jsx("textarea",{ref:po,style:{minHeight:`var(--bui-token-composer-control-height, ${f?"68px":"calc(var(--bui-spacing) * 7)"})`},rows:qe,value:q,disabled:P||Q,onChange:D=>{_(D.target.value),F(false),ae(false);},onKeyDown:D=>{if(!(D.nativeEvent.isComposing||D.keyCode===229)){if(_e&&Ze.length>0){if(D.key==="ArrowDown"||D.key==="ArrowUp"){D.preventDefault(),ge(true),gt($e=>($e+(D.key==="ArrowDown"?1:Ze.length-1))%Ze.length);return}if(D.key==="Enter"&&!D.shiftKey||D.key==="Tab"){D.preventDefault(),Us(Ze[Ge]);return}}if(D.key==="Escape"){F(true),Kn();return}D.key==="Enter"&&!D.shiftKey&&!D.nativeEvent.isComposing&&(D.preventDefault(),Vs());}},placeholder:s?B("Listening\u2026"):$??B("Write a message\u2026"),"aria-label":W??B("Prompt"),className:`promptbar-input ${f?"min-h-[68px] px-2 py-2 text-[14px] leading-5":"min-h-7 px-1 py-[5px] text-[13px] leading-[18px]"} min-w-0 w-full resize-none bg-transparent text-ink outline-none [overflow-wrap:anywhere] placeholder:text-ink-3 ${ft?"order-first basis-full":"flex-1"}`}),V&&jsxRuntime.jsxs("button",{disabled:P||Q,ref:xn,type:"button","aria-expanded":me,"aria-label":B("Choose model"),onClick:()=>{ae(false),Ce(D=>!D);},className:`promptbar-model flex h-7 shrink-0 items-center gap-1 px-1.5 text-[12px] font-medium text-ink-2 transition-colors duration-150 hover:bg-hover hover:text-ink ${L?"rounded-[var(--bui-radius-pill)]":"rounded-[var(--bui-radius-control)]"} `,children:[Z.name,jsxRuntime.jsx("span",{className:"text-ink-3",children:jsxRuntime.jsx(hn,{size:11,strokeWidth:2.4,children:jsxRuntime.jsx("path",{d:"M6 9l6 6 6-6"})})})]}),ft&&jsxRuntime.jsx("span",{className:"flex-1","aria-hidden":"true"}),b,(k||c)&&jsxRuntime.jsx("button",{disabled:P||Q||!c,type:"button","aria-label":B(s?"Stop dictation":"Start dictation"),"aria-pressed":s,onClick:()=>c?.(!s),className:`flex size-7 shrink-0 items-center justify-center transition-[background-color,color,transform] duration-150 active:scale-[0.94] ${L?"rounded-[var(--bui-radius-pill)]":"rounded-[var(--bui-radius-control)]"} ${s?"bg-accent-tint text-accent-ink":"text-ink-3 hover:bg-hover hover:text-ink"} `,children:s?jsxRuntime.jsx("span",{className:"flex h-3.5 items-center gap-[2.5px]",children:[0,1,2].map(D=>jsxRuntime.jsx("span",{className:"w-[2.5px] rounded-full bg-current",style:{height:"100%",animation:`bui-eq-bounce 900ms ease-in-out ${D*150}ms infinite`}},D))}):jsxRuntime.jsx(hn,{size:15,strokeWidth:2,children:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3z"}),jsxRuntime.jsx("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2M12 19v3"})]})})}),jsxRuntime.jsx("button",{type:"button","aria-label":B(E&&R?"Stop response":"Send"),disabled:E&&R?false:!Mr,onClick:E&&R?R:()=>{Vs();},className:`flex size-7 shrink-0 items-center justify-center transition-[background-color,color,transform] duration-200 enabled:active:scale-[0.94] ${L?"rounded-[var(--bui-radius-pill)]":"rounded-[var(--bui-radius-control)]"} `,style:{background:Mr||E&&R?"var(--bui-token-primary, var(--bui-ink))":"var(--bui-line-strong)",color:Mr||E&&R?"var(--bui-token-primary-foreground, var(--bui-surface))":"var(--bui-ink-2)"},children:jsxRuntime.jsx(hn,{size:16,strokeWidth:2.4,children:E&&R?jsxRuntime.jsx("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2",fill:"currentColor",stroke:"none"}):jsxRuntime.jsx("path",{d:"M12 19V5M5 12l7-7 7 7"})})})]})]})]})})})}a(Ka,"BUIPromptBar");function Ds({container:e,composer:t=false,children:o}){let n=he.useRef(null),[r]=he.useState(()=>typeof document>"u"?null:document.createElement("div"));he.useLayoutEffect(()=>{if(!r)return;let s=r.contains(document.activeElement)?document.activeElement:null;r.style.display="contents",(e??n.current)?.appendChild(r),s?.focus({preventScroll:true});},[e,r]),he.useLayoutEffect(()=>()=>r?.remove(),[r]);let i=jsxRuntime.jsx(ee,{portal:true,children:jsxRuntime.jsx("div",{className:t?"bui-composer-host":"bui-conversation-host","data-bui-composer-placement":t?e?"floating":"inline":void 0,children:jsxRuntime.jsx(gn,{portal:t&&e?{container:r}:void 0,children:jsxRuntime.jsx("div",{className:t?"bui-composer-host-content":"bui-conversation-host",onPointerDown:t&&e?s=>s.stopPropagation():void 0,onWheel:t&&e?s=>s.stopPropagation():void 0,onKeyDown:t&&e?s=>s.stopPropagation():void 0,children:o})})})});return jsxRuntime.jsx(ee,{children:jsxRuntime.jsx("div",{ref:n,className:t?"bui-composer-anchor":"bui-conversation-anchor",children:r?reactDom.createPortal(i,r):i})})}a(Ds,"ConversationHost");var Nk=[],Ek=[],Ik={initialPrompt:"",placeholder:"Enter a message"};function Dk({label:e,sub:t,time:o,body:n,resolving:r}){let i=Ue();return jsxRuntime.jsxs("div",{className:"flex w-full flex-col gap-1.5 transition-[opacity,filter,transform] duration-400",style:{opacity:r?.55:1,filter:r?"blur(0.5px)":"blur(0)",transform:r?"scale(0.985)":"scale(1)",transformOrigin:"top left",transitionTimingFunction:"cubic-bezier(0.23, 1, 0.32, 1)",animation:"bui-fade-up 400ms cubic-bezier(0.23,1,0.32,1) both"},children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-1 text-[12px] leading-[1.3]",children:[jsxRuntime.jsx("span",{className:"font-medium text-ink",children:e}),jsxRuntime.jsx("span",{className:"text-ink-2",children:t}),o&&jsxRuntime.jsx("span",{className:"text-ink",children:i("duration",{time:o})})]}),jsxRuntime.jsx("p",{className:"text-[13px] leading-normal text-ink",children:n})]})}a(Dk,"Section");function ep({messages:e=Nk,suggestions:t=Ek,labels:o,onSend:n,busy:r=false,onHeaderAction:i,fill:s=false,title:l,value:d,onValueChange:c,readOnly:u=false,loading:m=false,error:p,onRetry:g,onStop:b,children:x,renderMessage:f,pendingContent:h,composerContent:k,composerAccessory:$,composerProgress:w,composerNotice:C,composerContainer:T,conversationContainer:S,headerActions:P,sidePanel:E,readable:R=false,showMessageLabels:W=true}){let B=Ue(),A=Ot(Ik,o),[L,I]=he.useState(""),K=d??L,q=a(Z=>{I(Z),c?.(Z);},"setDraft"),[_,Y]=he.useState(false),M=he.useRef(false),z=he.useRef(true),Q=he.useRef(null),ce=he.useRef(true),se=[...e].reverse().find(Z=>Z.role==="user")?.id;he.useEffect(()=>{se&&(ce.current=true);},[se]),he.useEffect(()=>(z.current=true,()=>{z.current=false;}),[]),he.useEffect(()=>{s&&ce.current&&Q.current&&(Q.current.scrollTop=Q.current.scrollHeight);},[s,e,r,x]),he.useEffect(()=>{let Z=Q.current,Re=Z?.firstElementChild;if(!s||!Z||!Re||typeof ResizeObserver>"u")return;let Ge=new ResizeObserver(()=>{ce.current&&(Z.scrollTop=Z.scrollHeight);});return Ge.observe(Re),()=>Ge.disconnect()},[s]);let[V,J]=he.useState(A.initialPrompt),[O,F]=he.useState(t[0]??""),ne=he.useRef(null),ae=!!V,me=K.trim().length>0&&!r&&!_&&!m&&!u&&!!n,Ce=a(async()=>{if(!me||M.current)return;let Z=K.trim();M.current=true,Y(true);try{await n?.(Z)!==!1&&z.current&&(J(Z),q(""),ce.current=!0);}catch{}finally{M.current=false,z.current&&Y(false);}},"send");return s?jsxRuntime.jsx(Ds,{container:S,children:jsxRuntime.jsx(ee,{children:jsxRuntime.jsxs("section",{"data-readable":R||void 0,"data-panel-open":!!E||void 0,"data-composer-progress":!!w||void 0,className:"chat-composer-fill flex h-full min-h-0 w-full min-w-0 flex-col overflow-hidden text-ink","aria-label":l||B("Agent"),children:[(l||P)&&jsxRuntime.jsxs("header",{className:"chat-composer-header flex shrink-0 items-center justify-between border-b border-line px-4 py-3",children:[jsxRuntime.jsx("span",{className:"truncate text-[14px] font-medium",children:l}),P]}),jsxRuntime.jsxs("div",{className:"chat-composer-body",children:[jsxRuntime.jsxs("div",{className:"chat-composer-main",children:[jsxRuntime.jsx("div",{ref:Q,role:"log","aria-label":B("Chat history"),"aria-busy":r||m,className:"chat-composer-transcript flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto p-4",onScroll:()=>{let Z=Q.current;Z&&(ce.current=Z.scrollHeight-Z.scrollTop-Z.clientHeight<48);},children:jsxRuntime.jsxs("div",{className:"chat-composer-content",children:[m?jsxRuntime.jsx("span",{role:"status",className:"text-[13px] text-ink-2",children:B("Loading")}):e.map((Z,Re)=>jsxRuntime.jsxs("article",{"aria-label":W?void 0:Z.label,className:Z.role==="user"?"ml-auto max-w-full rounded-xl bg-field px-3 py-2":"w-full min-w-0",style:!W&&Z.role==="user"?{width:"fit-content",maxWidth:"85%"}:void 0,children:[W&&jsxRuntime.jsx("div",{className:"mb-1 text-[12px] font-medium text-ink-2",children:Z.label}),f?f(Z,Re):jsxRuntime.jsx("p",{className:"whitespace-pre-wrap break-words text-[13px] leading-normal",children:Z.body})]},Z.id??Re)),!m&&!r&&!p&&e.length===0&&he.Children.toArray(x).length===0&&jsxRuntime.jsx("div",{className:"flex flex-1 items-center justify-center text-[13px] text-ink-3",children:B("Start a conversation")}),x,!m&&r&&(h===void 0?jsxRuntime.jsx(fn,{variant:"Dots",label:B("Loading")}):h)]})}),(!u||$||w||p)&&jsxRuntime.jsx("div",{className:"chat-composer-footer shrink-0 p-3",children:jsxRuntime.jsxs(Ds,{container:T,composer:true,children:[w&&jsxRuntime.jsx("div",{className:"chat-composer-progress",children:w}),p&&jsxRuntime.jsxs("div",{role:"alert",className:"chat-composer-alert flex items-center gap-2 px-4 py-2 text-[13px] text-red",children:[jsxRuntime.jsx("span",{children:p}),g&&jsxRuntime.jsx("button",{type:"button",onClick:g,className:"underline",children:B("Retry")})]}),C,(!u||$)&&jsxRuntime.jsxs("div",{className:"chat-composer-input",children:[$&&jsxRuntime.jsx("div",{className:"chat-composer-accessory",children:$}),!u&&(k===void 0?jsxRuntime.jsx(Ka,{value:K,onValueChange:q,disabled:m,busy:r,onStop:b,placeholder:A.placeholder,inputLabel:B("Chat prompt"),onSubmit:n?async Z=>{let Re=await n(Z);return Re!==false&&(ce.current=true),Re}:void 0}):k)]})]})})]}),E&&jsxRuntime.jsx("aside",{className:"chat-composer-side-panel",children:E})]})]})})}):jsxRuntime.jsx(ee,{children:jsxRuntime.jsxs("div",{className:"flex h-[288px] w-full max-w-95 flex-col self-start overflow-hidden rounded-[14px] bg-surface shadow-card",children:[jsxRuntime.jsxs("div",{className:"flex shrink-0 items-center justify-between border-b border-line p-1.5",children:[jsxRuntime.jsx("div",{className:"flex items-center",children:t.map(Z=>jsxRuntime.jsx("button",{type:"button","aria-pressed":O===Z,onClick:()=>F(Z),className:`rounded-[var(--bui-radius-chip)] px-2 py-[3px] text-[13px] text-ink transition-[background-color,opacity] duration-100 ${O===Z?"bg-field":"opacity-50 hover:opacity-75"}`,children:Z},Z))}),jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("path",{d:"M12 5v14M5 12h14"},"p"),jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"9"}),jsxRuntime.jsx("path",{d:"M12 7v5l3 2"})]},"h"),jsxRuntime.jsxs("g",{fill:"currentColor",stroke:"none",children:[jsxRuntime.jsx("circle",{cx:"5",cy:"12",r:"1.8"}),jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"1.8"}),jsxRuntime.jsx("circle",{cx:"19",cy:"12",r:"1.8"})]},"e")].map((Z,Re)=>jsxRuntime.jsx("button",{type:"button","aria-label":[B("New"),B("History"),B("More")][Re],onClick:()=>i?.(["new","history","more"][Re]),className:`flex size-6 items-center justify-center rounded-[var(--bui-radius-chip)] text-ink-3
|
|
261
261
|
transition-colors duration-100 hover:bg-hover hover:text-ink-2`,children:jsxRuntime.jsx("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:Z})},Re))})]}),jsxRuntime.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-2.5 overflow-y-auto px-3 pt-2.5 pb-1",children:[jsxRuntime.jsx("div",{className:"flex justify-end pl-14",children:jsxRuntime.jsx("div",{className:`rounded-xl bg-field px-3 py-1.5 text-[13px] leading-[1.4] text-ink
|
|
262
|
-
transition-[opacity,transform] duration-300`,style:{opacity:ae?1:0,transform:ae?"translateY(0)":"translateY(10px)",transitionTimingFunction:"cubic-bezier(0.23, 1, 0.32, 1)"},children:V})}),e.map((Z,Re)=>jsxRuntime.jsx(
|
|
263
|
-
transition-[background-color,color,transform] duration-200 enabled:active:scale-[0.96]`,style:{background:
|
|
264
|
-
${e==="red"?"bg-red":"bg-green"}`,style:{animation:"bui-pop-in 300ms cubic-bezier(0.23,1,0.32,1) both"},children:t})}a(np,"Badge");var Ok=jsxRuntime.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3.5",strokeLinecap:"round",children:jsxRuntime.jsx("path",{d:"M18 6L6 18M6 6l12 12"})}),Hk=jsxRuntime.jsx("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M20 6L9 17l-5-5"})}),Wk=jsxRuntime.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M21 12a9 9 0 1 1-2.64-6.36M21 3v6h-6"})}),Fk={completed:"Completed",failed:"Failed"},_k=[];function Qa({variant:e="Capsules",rows:t=_k,labels:o,className:n,onToggleRow:r,progress:i}){let[s,l]=ye.useState({}),d=Ot(Fk,o),c=Ue();if(e==="Progress"&&i){let g=t[i.current-1];if(!g)return null;let b={...g,label:c("taskProgressCurrent",{current:i.current,total:t.length,title:g.label}),status:i.status==="completed"?"done":i.status,step:i.current,details:[]};return jsxRuntime.jsx(op,{progress:i,className:n,capsule:jsxRuntime.jsx(Qa,{variant:"Capsules",rows:[b],labels:o}),children:jsxRuntime.jsx(Qa,{variant:"List",rows:t.map((x,f)=>({...x,step:x.step??f+1})),labels:o})})}let u=a(g=>g.status==="done"?jsxRuntime.jsx(np,{tone:"green",children:Hk}):g.status==="running"?jsxRuntime.jsx(Ls,{active:true,children:g.step}):g.status==="pending"?jsxRuntime.jsx(Ls,{children:g.step}):g.status==="failed"?jsxRuntime.jsx(np,{tone:"red",children:Ok}):jsxRuntime.jsx(Ls,{children:g.step}),"badgeFor"),m=a(g=>g.status==="done"?jsxRuntime.jsx("span",{className:"inline-flex h-5.5 items-center rounded-chip bg-green-tint px-2 text-[11.5px] font-medium text-green",children:d.completed}):g.status==="stopped"||g.status==="skipped"?jsxRuntime.jsx("span",{className:"inline-flex h-5.5 items-center rounded-chip bg-inset px-2 text-[11.5px] font-medium text-ink-2",children:c(`taskProgressStatus.${g.status}`)}):g.status==="running"?null:g.status==="failed"?jsxRuntime.jsxs("span",{className:"inline-flex h-5.5 items-center gap-1.5 rounded-chip bg-red-tint px-2 text-[11.5px] font-medium text-red",style:{animation:"bui-fade-in 200ms ease-out both"},children:[d.failed," ",jsxRuntime.jsx("span",{style:{animation:"bui-spin 1.2s linear infinite"},className:"flex",children:Wk})]}):null,"pillFor"),p=e==="List";return jsxRuntime.jsx(re,{children:jsxRuntime.jsx("div",{"data-bui-task-rows":true,"data-variant":p?"List":"Capsules",role:"list",className:`flex w-full max-w-110 flex-col ${p?"gap-0 self-start overflow-hidden rounded-card bg-surface shadow-card":"min-h-[196px] gap-2"}${n?` ${n}`:""}`,children:t.map((g,b)=>{let x=g.details.length>0,f=x?"button":"div",y=x&&(s[g.key]??false);return jsxRuntime.jsxs("div",{role:"listitem","data-status":g.status,className:`self-stretch overflow-hidden transition-[border-radius,background-color] duration-300 hover:bg-inset ${p?"border-b border-line last:border-0":"bg-surface shadow-card"}`,style:{borderRadius:p?0:"var(--bui-token-radius-card, var(--bui-radius-card))",animation:`bui-fade-up 450ms cubic-bezier(0.23,1,0.32,1) ${b*80}ms both`},children:[jsxRuntime.jsxs(f,{type:x?"button":void 0,"aria-expanded":x?y:void 0,onClick:x?()=>{l(k=>({...k,[g.key]:!y})),r?.(g.key,!y);}:void 0,className:"flex min-h-11 w-full items-center gap-2.5 px-2.5 py-2 text-left",children:[jsxRuntime.jsx("span",{className:"flex size-6 shrink-0 items-center justify-center",children:u(g)}),jsxRuntime.jsx("span",{"data-bui-task-label":true,className:"min-w-0 flex-1 [overflow-wrap:anywhere] text-[13px] font-medium text-ink",children:g.label}),jsxRuntime.jsx("span",{className:"text-[12.5px] text-ink-2 tabular-nums",children:g.amount}),m(g),x&&jsxRuntime.jsx("span",{"aria-hidden":"true",className:"-ml-2 flex size-7 shrink-0 items-center justify-center rounded-full text-ink-3",children:jsxRuntime.jsx("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",className:"transition-transform duration-300",style:{transform:y?"rotate(180deg)":"rotate(0)"},children:jsxRuntime.jsx("path",{d:"M6 9l6 6 6-6"})})})]}),jsxRuntime.jsx("div",{className:"grid transition-[grid-template-rows,opacity] duration-300",style:{gridTemplateRows:y?"1fr":"0fr",opacity:y?1:0,transitionTimingFunction:"cubic-bezier(0.23, 1, 0.32, 1)"},children:jsxRuntime.jsx("div",{className:"overflow-hidden",children:jsxRuntime.jsxs("div",{className:"mb-2.5 grid grid-cols-[24px_1fr] gap-2.5 px-2.5",children:[jsxRuntime.jsx("span",{"aria-hidden":true,className:"mx-auto h-full w-px bg-line"}),jsxRuntime.jsx("div",{className:"flex flex-col gap-1.5",children:g.details.map((k,S)=>jsxRuntime.jsxs("div",{className:"flex items-center justify-between",style:y?{animation:`bui-fade-up 300ms cubic-bezier(0.23,1,0.32,1) ${120+S*100}ms both`}:void 0,children:[jsxRuntime.jsx("span",{className:"text-[12px] text-ink-2",children:k.label}),jsxRuntime.jsx("span",{className:"font-mono text-[11.5px] text-ink-3 tabular-nums",children:k.meta})]},k.label))})]})})})]},g.key)})})})}a(Qa,"BUITaskRows");function ip({children:e,className:t="",highlightClassName:o="inset-x-0 rounded-[8px] bg-hover",rowSelector:n="[data-menu-row]"}){let r=ye.useRef(null),[i,s]=ye.useState(null),[l,d]=ye.useState(false),c=a(u=>{let m=r.current;if(!(u instanceof Element)||!m)return;let p=u.closest(n);if(!(p instanceof HTMLElement)||!m.contains(p))return;let g=m.getBoundingClientRect(),b=p.getBoundingClientRect();s({top:b.top-g.top,height:b.height}),d(true);},"moveTo");return jsxRuntime.jsx(re,{children:jsxRuntime.jsxs("div",{ref:r,onMouseOver:u=>c(u.target),onMouseLeave:()=>d(false),onFocusCapture:u=>c(u.target),onBlurCapture:u=>{r.current?.contains(u.relatedTarget)||d(false);},className:`group/glide-menu relative ${t}`,children:[jsxRuntime.jsx("span",{"aria-hidden":true,className:`pointer-events-none absolute ${o}`,style:{top:i?.top??0,height:i?.height??0,opacity:i&&l?1:0,transition:"top 220ms cubic-bezier(0.23,1,0.32,1), height 220ms cubic-bezier(0.23,1,0.32,1), opacity 150ms ease"}}),e]})})}a(ip,"BUIGlideMenu");var Gk=[],qk={skip:"Skip",continue:"Continue",send:"Send",customPlaceholder:"Something else\u2026",sentMessage:"Answers sent"},Kk=400,zs="360ms cubic-bezier(0.22, 1, 0.36, 1)";function Xk({value:e}){let t=ye.useRef(e),[o,n]=ye.useState(e),[r,i]=ye.useState(e),[s,l]=ye.useState(false),[d,c]=ye.useState(false),[u,m]=ye.useState("up");ye.useEffect(()=>{if(t.current===e)return;let g=t.current;t.current=e;let b=parseInt(g,10),x=parseInt(e,10);m(Number.isFinite(b)&&Number.isFinite(x)&&x<b?"down":"up"),n(g),i(e),l(true),c(false);let f=0,y=requestAnimationFrame(()=>{f=requestAnimationFrame(()=>c(true));}),k=setTimeout(()=>{l(false),n(e),c(false);},Kk);return ()=>{cancelAnimationFrame(y),cancelAnimationFrame(f),clearTimeout(k);}},[e]);let p=s?r:o;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:p.length},(g,b)=>{let x=o[b]??"",f=p[b]??"";return !s||x===f?jsxRuntime.jsx("span",{children:f},`${b}-${f}`):jsxRuntime.jsx("span",{style:{display:"inline-block",position:"relative",overflow:"hidden",height:"1em",lineHeight:"1em",verticalAlign:"-0.05em"},children:jsxRuntime.jsxs("span",{style:{display:"flex",flexDirection:"column",transition:"transform 350ms cubic-bezier(0.4, 0, 0.2, 1)",transform:`translateY(${d?u==="down"?"0":"-1em":u==="down"?"-1em":"0"})`},children:[jsxRuntime.jsx("span",{style:{height:"1em",lineHeight:"1em"},children:u==="down"?f:x}),jsxRuntime.jsx("span",{style:{height:"1em",lineHeight:"1em"},children:u==="down"?x:f})]})},`${b}-${x}-${f}-${u}`)})})}a(Xk,"RollingDigits");function Os({path:e,size:t=14,sw:o=2}){return jsxRuntime.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":true,children:e})}a(Os,"Ico");function Ws({questions:e=Gk,labels:t,onSubmitted:o,onAnswerChange:n,resettable:r=true,allowSkip:i=true,status:s="idle",onReset:l}){let d=Ue(),c=Ot(qk,t),[u,m]=ye.useState(0),[p,g]=ye.useState({}),[b,x]=ye.useState({}),f=s==="submitted",y=ye.useRef(p),k=ye.useRef(b);y.current=p,k.current=b;let[S,w]=ye.useState(true),C=ye.useRef(null),T=ye.useRef([]),$=ye.useRef(false),[P,E]=ye.useState(void 0),[R,W]=ye.useState(0),[B,A]=ye.useState(false),[L,I]=ye.useState(false),K=u===e.length-1,_=(p[u]??[]).length>0||!!b[u]?.trim(),Y=a(V=>{let J=T.current[u];if(!J)return;let O=typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;E(J.offsetHeight),W(J.offsetTop),A(V&&!O);},"sync");ye.useLayoutEffect(()=>{let V=$.current;$.current=true,Y(V),I(true);},[u,p,b,S,f]),ye.useEffect(()=>{let V=requestAnimationFrame(()=>Y($.current));return ()=>cancelAnimationFrame(V)},[u]),ye.useEffect(()=>()=>{C.current&&clearTimeout(C.current);},[]);let M=a(V=>{C.current&&clearTimeout(C.current),m(Math.min(Math.max(V,0),e.length-1));},"goTo"),z=a(()=>{C.current&&clearTimeout(C.current),s!=="submitting"&&o?.(y.current,k.current);},"send"),Q=a(()=>{K?z():M(u+1);},"advance"),ce=a(V=>{let J=e[u].type,O=y.current,F=O[u]??[],oe=J==="radio"?[V]:F.includes(V)?F.filter(pe=>pe!==V):[...F,V],ae={...O,[u]:oe};y.current=ae,g(ae),n?.(u,oe),J==="radio"&&(x(pe=>({...pe,[u]:""})),C.current&&clearTimeout(C.current),C.current=setTimeout(()=>{K?z():m(pe=>Math.min(e.length-1,pe+1));},480));},"toggle"),se=a(()=>{m(0),g({}),x({}),l?.(),w(true),$.current=false;},"reset");return e.length?S?f?jsxRuntime.jsx(re,{children:jsxRuntime.jsxs("div",{className:"flex w-full max-w-80 items-center gap-3",style:{animation:"bui-pop-in 260ms cubic-bezier(0.23,1,0.32,1) both"},children:[jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-green-tint py-1 pr-2.5 pl-1 text-[12.5px] font-medium text-green",children:[jsxRuntime.jsx("span",{className:"flex size-4.5 items-center justify-center rounded-full bg-green text-white",children:jsxRuntime.jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M20 6L9 17l-5-5"})})}),c.sentMessage]}),r&&jsxRuntime.jsx("button",{type:"button",onClick:se,className:"text-[12px] font-medium text-ink-3 transition-colors duration-150 hover:text-ink",children:d("Start over")})]})}):jsxRuntime.jsx(re,{children:jsxRuntime.jsx("div",{className:"w-full max-w-80",children:jsxRuntime.jsxs("div",{className:"relative overflow-hidden rounded-card bg-surface shadow-card",style:{animation:"bui-fade-up 380ms cubic-bezier(0.23,1,0.32,1) both"},children:[jsxRuntime.jsx("button",{type:"button","aria-label":d("Dismiss"),onClick:()=>w(false),className:"primitive-icon-button absolute right-2.5 top-2.5 z-10 text-ink-3 transition-colors duration-100 hover:bg-hover hover:text-ink",children:jsxRuntime.jsx(Os,{size:14,sw:2.2,path:jsxRuntime.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})}),jsxRuntime.jsx("div",{className:"primitive-card-pad",children:jsxRuntime.jsx("div",{className:"overflow-hidden",style:{height:P,transition:B?`height ${zs}`:void 0},"aria-live":"polite",children:jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"calc(var(--bui-spacing) * 6.5)",transform:`translate3d(0, ${-R}px, 0)`,transition:B?`transform ${zs}`:void 0,willChange:"transform"},children:e.map((V,J)=>{let O=J===u;if(!L&&!O)return null;let F=p[J]??[],oe={opacity:O?1:0,transition:B?`opacity ${zs}`:void 0,pointerEvents:O?void 0:"none"};return jsxRuntime.jsxs("div",{ref:ae=>{T.current[J]=ae;},"aria-hidden":O?void 0:true,style:oe,children:[jsxRuntime.jsx("div",{className:"pr-7 text-[14px] font-medium text-ink",children:V.q}),jsxRuntime.jsxs(ip,{className:"mt-2.5 flex flex-col gap-1",highlightClassName:"inset-x-0 rounded-control bg-hover",children:[V.options.map((ae,pe)=>{let Ce=F.includes(pe);return jsxRuntime.jsxs("button",{type:"button","data-menu-row":true,"aria-pressed":Ce,tabIndex:O?0:-1,disabled:s==="submitting",onClick:()=>{O&&ce(pe);},className:"relative z-10 flex items-center gap-1.5 rounded-control pl-1 pr-2 py-1 text-left transition-colors duration-100",children:[jsxRuntime.jsx("span",{className:`flex size-4 shrink-0 items-center justify-center transition-colors duration-200
|
|
262
|
+
transition-[opacity,transform] duration-300`,style:{opacity:ae?1:0,transform:ae?"translateY(0)":"translateY(10px)",transitionTimingFunction:"cubic-bezier(0.23, 1, 0.32, 1)"},children:V})}),e.map((Z,Re)=>jsxRuntime.jsx(Dk,{...Z},Re)),r&&jsxRuntime.jsx("span",{role:"status",children:A.placeholder})]}),jsxRuntime.jsx("div",{className:"chat-composer-footer mt-auto shrink-0 p-1.5",children:jsxRuntime.jsxs("div",{role:"presentation",onClick:()=>ne.current?.focus(),className:"chat-composer-field flex cursor-text flex-col gap-2 rounded-control border border-line bg-field p-2.5 shadow-[0_1px_2px_rgba(0,0,0,0.035)] transition-[border-color,box-shadow] duration-150 focus-within:border-line-strong focus-within:shadow-[0_1px_2px_rgba(0,0,0,0.025)]",children:[jsxRuntime.jsx("input",{ref:ne,value:K,onChange:Z=>q(Z.target.value),onKeyDown:Z=>{Z.key==="Enter"&&!Z.nativeEvent.isComposing&&Z.keyCode!==229&&Ce();},placeholder:A.placeholder,"aria-label":B("Chat prompt"),className:"min-h-4.5 bg-transparent text-[13px] leading-[1.4] text-ink outline-none placeholder:text-ink-3"}),jsxRuntime.jsx("div",{className:"flex items-center justify-end",children:jsxRuntime.jsx("button",{type:"button","aria-label":B("Send"),disabled:!me,onClick:Ce,className:`chat-composer-action flex size-7 items-center justify-center rounded-[var(--bui-radius-control)]
|
|
263
|
+
transition-[background-color,color,transform] duration-200 enabled:active:scale-[0.96]`,style:{background:me?"var(--bui-token-primary, var(--bui-ink))":"var(--bui-line-strong)",color:me?"var(--bui-token-primary-foreground, var(--bui-surface))":"var(--bui-ink-2)"},children:jsxRuntime.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M12 19V5M5 12l7-7 7 7"})})})})]})})]})})}a(ep,"BUIChatComposer");function op({progress:e,capsule:t,children:o,className:n}){let[r,i]=he.useState(false),s=Ue(),l=ln(),d=typeof l.container=="function"?l.container():l.container,c=typeof HTMLElement<"u"&&d instanceof HTMLElement?d:void 0;return jsxRuntime.jsx(ee,{children:jsxRuntime.jsx("div",{className:`bui-task-progress${n?` ${n}`:""}`,"data-bui-task-progress":true,children:jsxRuntime.jsxs(Pd,{open:r,onOpenChange:i,children:[jsxRuntime.jsx(Md,{asChild:true,children:jsxRuntime.jsxs(Te,{variant:"quiet",className:"bui-task-progress-trigger","data-status":e.status,"aria-label":e.summary,title:e.summary,children:[t,jsxRuntime.jsx(lucideReact.ChevronUp,{"aria-hidden":"true",className:"bui-task-progress-chevron","data-open":r})]})}),jsxRuntime.jsx(Bd,{unstyled:true,container:c??(typeof document<"u"?document.fullscreenElement:null),side:"top",align:"center",avoidCollisions:false,style:{zIndex:50},"aria-label":s("taskProgressTitle"),onOpenAutoFocus:u=>u.preventDefault(),children:jsxRuntime.jsx(ee,{portal:true,children:jsxRuntime.jsx("div",{className:"bui-task-progress-panel",children:o})})})]})})})}a(op,"TaskProgress");function Ls({active:e,children:t}){let i=2*Math.PI*11;return jsxRuntime.jsxs("span",{className:"relative inline-flex shrink-0 items-center justify-center",style:{width:24,height:24},children:[jsxRuntime.jsxs("svg",{width:24,height:24,className:"absolute inset-0",style:e?{animation:"bui-spin 1.1s linear infinite"}:void 0,children:[jsxRuntime.jsx("circle",{cx:24/2,cy:24/2,r:11,fill:"none",stroke:"var(--bui-line)",strokeWidth:2}),e&&jsxRuntime.jsx("circle",{cx:24/2,cy:24/2,r:11,fill:"none",stroke:"var(--bui-ink-3)",strokeWidth:2,strokeLinecap:"round",strokeDasharray:`${i*.28} ${i*.72}`})]}),jsxRuntime.jsx("span",{className:"relative text-[10.5px] font-semibold tabular-nums text-ink",children:t})]})}a(Ls,"SpinnerRing");function np({tone:e,children:t}){return jsxRuntime.jsx("span",{className:`flex size-5.5 shrink-0 items-center justify-center rounded-full text-white
|
|
264
|
+
${e==="red"?"bg-red":"bg-green"}`,style:{animation:"bui-pop-in 300ms cubic-bezier(0.23,1,0.32,1) both"},children:t})}a(np,"Badge");var Hk=jsxRuntime.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3.5",strokeLinecap:"round",children:jsxRuntime.jsx("path",{d:"M18 6L6 18M6 6l12 12"})}),Wk=jsxRuntime.jsx("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M20 6L9 17l-5-5"})}),Fk=jsxRuntime.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M21 12a9 9 0 1 1-2.64-6.36M21 3v6h-6"})}),_k={completed:"Completed",failed:"Failed"},Uk=[];function Qa({variant:e="Capsules",rows:t=Uk,labels:o,className:n,onToggleRow:r,progress:i}){let[s,l]=he.useState({}),d=Ot(_k,o),c=Ue();if(e==="Progress"&&i){let g=t[i.current-1];if(!g)return null;let b={...g,label:c("taskProgressCurrent",{current:i.current,total:t.length,title:g.label}),status:i.status==="completed"?"done":i.status,step:i.current,details:[]};return jsxRuntime.jsx(op,{progress:i,className:n,capsule:jsxRuntime.jsx(Qa,{variant:"Capsules",rows:[b],labels:o}),children:jsxRuntime.jsx(Qa,{variant:"List",rows:t.map((x,f)=>({...x,step:x.step??f+1})),labels:o})})}let u=a(g=>g.status==="done"?jsxRuntime.jsx(np,{tone:"green",children:Wk}):g.status==="running"?jsxRuntime.jsx(Ls,{active:true,children:g.step}):g.status==="pending"?jsxRuntime.jsx(Ls,{children:g.step}):g.status==="failed"?jsxRuntime.jsx(np,{tone:"red",children:Hk}):jsxRuntime.jsx(Ls,{children:g.step}),"badgeFor"),m=a(g=>g.status==="done"?jsxRuntime.jsx("span",{className:"inline-flex h-5.5 items-center rounded-chip bg-green-tint px-2 text-[11.5px] font-medium text-green",children:d.completed}):g.status==="stopped"||g.status==="skipped"?jsxRuntime.jsx("span",{className:"inline-flex h-5.5 items-center rounded-chip bg-inset px-2 text-[11.5px] font-medium text-ink-2",children:c(`taskProgressStatus.${g.status}`)}):g.status==="running"?null:g.status==="failed"?jsxRuntime.jsxs("span",{className:"inline-flex h-5.5 items-center gap-1.5 rounded-chip bg-red-tint px-2 text-[11.5px] font-medium text-red",style:{animation:"bui-fade-in 200ms ease-out both"},children:[d.failed," ",jsxRuntime.jsx("span",{style:{animation:"bui-spin 1.2s linear infinite"},className:"flex",children:Fk})]}):null,"pillFor"),p=e==="List";return jsxRuntime.jsx(ee,{children:jsxRuntime.jsx("div",{"data-bui-task-rows":true,"data-variant":p?"List":"Capsules",role:"list",className:`flex w-full max-w-110 flex-col ${p?"gap-0 self-start overflow-hidden rounded-card bg-surface shadow-card":"min-h-[196px] gap-2"}${n?` ${n}`:""}`,children:t.map((g,b)=>{let x=g.details.length>0,f=x?"button":"div",h=x&&(s[g.key]??false);return jsxRuntime.jsxs("div",{role:"listitem","data-status":g.status,className:`self-stretch overflow-hidden transition-[border-radius,background-color] duration-300 hover:bg-inset ${p?"border-b border-line last:border-0":"bg-surface shadow-card"}`,style:{borderRadius:p?0:"var(--bui-token-radius-card, var(--bui-radius-card))",animation:`bui-fade-up 450ms cubic-bezier(0.23,1,0.32,1) ${b*80}ms both`},children:[jsxRuntime.jsxs(f,{type:x?"button":void 0,"aria-expanded":x?h:void 0,onClick:x?()=>{l(k=>({...k,[g.key]:!h})),r?.(g.key,!h);}:void 0,className:"flex min-h-11 w-full items-center gap-2.5 px-2.5 py-2 text-left",children:[jsxRuntime.jsx("span",{className:"flex size-6 shrink-0 items-center justify-center",children:u(g)}),jsxRuntime.jsx("span",{"data-bui-task-label":true,className:"min-w-0 flex-1 [overflow-wrap:anywhere] text-[13px] font-medium text-ink",children:g.label}),jsxRuntime.jsx("span",{className:"text-[12.5px] text-ink-2 tabular-nums",children:g.amount}),m(g),x&&jsxRuntime.jsx("span",{"aria-hidden":"true",className:"-ml-2 flex size-7 shrink-0 items-center justify-center rounded-full text-ink-3",children:jsxRuntime.jsx("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",className:"transition-transform duration-300",style:{transform:h?"rotate(180deg)":"rotate(0)"},children:jsxRuntime.jsx("path",{d:"M6 9l6 6 6-6"})})})]}),jsxRuntime.jsx("div",{className:"grid transition-[grid-template-rows,opacity] duration-300",style:{gridTemplateRows:h?"1fr":"0fr",opacity:h?1:0,transitionTimingFunction:"cubic-bezier(0.23, 1, 0.32, 1)"},children:jsxRuntime.jsx("div",{className:"overflow-hidden",children:jsxRuntime.jsxs("div",{className:"mb-2.5 grid grid-cols-[24px_1fr] gap-2.5 px-2.5",children:[jsxRuntime.jsx("span",{"aria-hidden":true,className:"mx-auto h-full w-px bg-line"}),jsxRuntime.jsx("div",{className:"flex flex-col gap-1.5",children:g.details.map((k,$)=>jsxRuntime.jsxs("div",{className:"flex items-center justify-between",style:h?{animation:`bui-fade-up 300ms cubic-bezier(0.23,1,0.32,1) ${120+$*100}ms both`}:void 0,children:[jsxRuntime.jsx("span",{className:"text-[12px] text-ink-2",children:k.label}),jsxRuntime.jsx("span",{className:"font-mono text-[11.5px] text-ink-3 tabular-nums",children:k.meta})]},k.label))})]})})})]},g.key)})})})}a(Qa,"BUITaskRows");function ip({children:e,className:t="",highlightClassName:o="inset-x-0 rounded-[8px] bg-hover",rowSelector:n="[data-menu-row]"}){let r=he.useRef(null),[i,s]=he.useState(null),[l,d]=he.useState(false),c=a(u=>{let m=r.current;if(!(u instanceof Element)||!m)return;let p=u.closest(n);if(!(p instanceof HTMLElement)||!m.contains(p))return;let g=m.getBoundingClientRect(),b=p.getBoundingClientRect();s({top:b.top-g.top,height:b.height}),d(true);},"moveTo");return jsxRuntime.jsx(ee,{children:jsxRuntime.jsxs("div",{ref:r,onMouseOver:u=>c(u.target),onMouseLeave:()=>d(false),onFocusCapture:u=>c(u.target),onBlurCapture:u=>{r.current?.contains(u.relatedTarget)||d(false);},className:`group/glide-menu relative ${t}`,children:[jsxRuntime.jsx("span",{"aria-hidden":true,className:`pointer-events-none absolute ${o}`,style:{top:i?.top??0,height:i?.height??0,opacity:i&&l?1:0,transition:"top 220ms cubic-bezier(0.23,1,0.32,1), height 220ms cubic-bezier(0.23,1,0.32,1), opacity 150ms ease"}}),e]})})}a(ip,"BUIGlideMenu");var qk=[],Kk={skip:"Skip",continue:"Continue",send:"Send",customPlaceholder:"Something else\u2026",sentMessage:"Answers sent"},Xk=400,zs="360ms cubic-bezier(0.22, 1, 0.36, 1)";function Yk({value:e}){let t=he.useRef(e),[o,n]=he.useState(e),[r,i]=he.useState(e),[s,l]=he.useState(false),[d,c]=he.useState(false),[u,m]=he.useState("up");he.useEffect(()=>{if(t.current===e)return;let g=t.current;t.current=e;let b=parseInt(g,10),x=parseInt(e,10);m(Number.isFinite(b)&&Number.isFinite(x)&&x<b?"down":"up"),n(g),i(e),l(true),c(false);let f=0,h=requestAnimationFrame(()=>{f=requestAnimationFrame(()=>c(true));}),k=setTimeout(()=>{l(false),n(e),c(false);},Xk);return ()=>{cancelAnimationFrame(h),cancelAnimationFrame(f),clearTimeout(k);}},[e]);let p=s?r:o;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:p.length},(g,b)=>{let x=o[b]??"",f=p[b]??"";return !s||x===f?jsxRuntime.jsx("span",{children:f},`${b}-${f}`):jsxRuntime.jsx("span",{style:{display:"inline-block",position:"relative",overflow:"hidden",height:"1em",lineHeight:"1em",verticalAlign:"-0.05em"},children:jsxRuntime.jsxs("span",{style:{display:"flex",flexDirection:"column",transition:"transform 350ms cubic-bezier(0.4, 0, 0.2, 1)",transform:`translateY(${d?u==="down"?"0":"-1em":u==="down"?"-1em":"0"})`},children:[jsxRuntime.jsx("span",{style:{height:"1em",lineHeight:"1em"},children:u==="down"?f:x}),jsxRuntime.jsx("span",{style:{height:"1em",lineHeight:"1em"},children:u==="down"?x:f})]})},`${b}-${x}-${f}-${u}`)})})}a(Yk,"RollingDigits");function Os({path:e,size:t=14,sw:o=2}){return jsxRuntime.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":true,children:e})}a(Os,"Ico");function Ws({questions:e=qk,labels:t,onSubmitted:o,onAnswerChange:n,resettable:r=true,allowSkip:i=true,status:s="idle",onReset:l}){let d=Ue(),c=Ot(Kk,t),[u,m]=he.useState(0),[p,g]=he.useState({}),[b,x]=he.useState({}),f=s==="submitted",h=he.useRef(p),k=he.useRef(b);h.current=p,k.current=b;let[$,w]=he.useState(true),C=he.useRef(null),T=he.useRef([]),S=he.useRef(false),[P,E]=he.useState(void 0),[R,W]=he.useState(0),[B,A]=he.useState(false),[L,I]=he.useState(false),K=u===e.length-1,_=(p[u]??[]).length>0||!!b[u]?.trim(),Y=a(V=>{let J=T.current[u];if(!J)return;let O=typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;E(J.offsetHeight),W(J.offsetTop),A(V&&!O);},"sync");he.useLayoutEffect(()=>{let V=S.current;S.current=true,Y(V),I(true);},[u,p,b,$,f]),he.useEffect(()=>{let V=requestAnimationFrame(()=>Y(S.current));return ()=>cancelAnimationFrame(V)},[u]),he.useEffect(()=>()=>{C.current&&clearTimeout(C.current);},[]);let M=a(V=>{C.current&&clearTimeout(C.current),m(Math.min(Math.max(V,0),e.length-1));},"goTo"),z=a(()=>{C.current&&clearTimeout(C.current),s!=="submitting"&&o?.(h.current,k.current);},"send"),Q=a(()=>{K?z():M(u+1);},"advance"),ce=a(V=>{let J=e[u].type,O=h.current,F=O[u]??[],ne=J==="radio"?[V]:F.includes(V)?F.filter(me=>me!==V):[...F,V],ae={...O,[u]:ne};h.current=ae,g(ae),n?.(u,ne),J==="radio"&&(x(me=>({...me,[u]:""})),C.current&&clearTimeout(C.current),C.current=setTimeout(()=>{K?z():m(me=>Math.min(e.length-1,me+1));},480));},"toggle"),se=a(()=>{m(0),g({}),x({}),l?.(),w(true),S.current=false;},"reset");return e.length?$?f?jsxRuntime.jsx(ee,{children:jsxRuntime.jsxs("div",{className:"flex w-full max-w-80 items-center gap-3",style:{animation:"bui-pop-in 260ms cubic-bezier(0.23,1,0.32,1) both"},children:[jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-green-tint py-1 pr-2.5 pl-1 text-[12.5px] font-medium text-green",children:[jsxRuntime.jsx("span",{className:"flex size-4.5 items-center justify-center rounded-full bg-green text-white",children:jsxRuntime.jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M20 6L9 17l-5-5"})})}),c.sentMessage]}),r&&jsxRuntime.jsx("button",{type:"button",onClick:se,className:"text-[12px] font-medium text-ink-3 transition-colors duration-150 hover:text-ink",children:d("Start over")})]})}):jsxRuntime.jsx(ee,{children:jsxRuntime.jsx("div",{className:"w-full max-w-80",children:jsxRuntime.jsxs("div",{className:"relative overflow-hidden rounded-card bg-surface shadow-card",style:{animation:"bui-fade-up 380ms cubic-bezier(0.23,1,0.32,1) both"},children:[jsxRuntime.jsx("button",{type:"button","aria-label":d("Dismiss"),onClick:()=>w(false),className:"primitive-icon-button absolute right-2.5 top-2.5 z-10 text-ink-3 transition-colors duration-100 hover:bg-hover hover:text-ink",children:jsxRuntime.jsx(Os,{size:14,sw:2.2,path:jsxRuntime.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})}),jsxRuntime.jsx("div",{className:"primitive-card-pad",children:jsxRuntime.jsx("div",{className:"overflow-hidden",style:{height:P,transition:B?`height ${zs}`:void 0},"aria-live":"polite",children:jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"calc(var(--bui-spacing) * 6.5)",transform:`translate3d(0, ${-R}px, 0)`,transition:B?`transform ${zs}`:void 0,willChange:"transform"},children:e.map((V,J)=>{let O=J===u;if(!L&&!O)return null;let F=p[J]??[],ne={opacity:O?1:0,transition:B?`opacity ${zs}`:void 0,pointerEvents:O?void 0:"none"};return jsxRuntime.jsxs("div",{ref:ae=>{T.current[J]=ae;},"aria-hidden":O?void 0:true,style:ne,children:[jsxRuntime.jsx("div",{className:"pr-7 text-[14px] font-medium text-ink",children:V.q}),jsxRuntime.jsxs(ip,{className:"mt-2.5 flex flex-col gap-1",highlightClassName:"inset-x-0 rounded-control bg-hover",children:[V.options.map((ae,me)=>{let Ce=F.includes(me);return jsxRuntime.jsxs("button",{type:"button","data-menu-row":true,"aria-pressed":Ce,tabIndex:O?0:-1,disabled:s==="submitting",onClick:()=>{O&&ce(me);},className:"relative z-10 flex items-center gap-1.5 rounded-control pl-1 pr-2 py-1 text-left transition-colors duration-100",children:[jsxRuntime.jsx("span",{className:`flex size-4 shrink-0 items-center justify-center transition-colors duration-200
|
|
265
265
|
${V.type==="radio"?"rounded-full":"rounded-[5px]"}
|
|
266
|
-
${Ce?"bg-ink text-canvas":"shadow-[inset_0_0_0_1.5px_var(--bui-line-strong)] text-transparent"}`,children:V.type==="radio"?jsxRuntime.jsx("span",{className:"size-1.5 rounded-full bg-canvas transition-transform duration-200",style:{transform:Ce?"scale(1)":"scale(0)"}}):jsxRuntime.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M20 6L9 17l-5-5"})})}),jsxRuntime.jsx("span",{className:`text-[13px] leading-none transition-colors duration-200 ${Ce?"text-ink":"text-ink-2"}`,children:ae})]},ae)}),V.allowCustom!==false&&jsxRuntime.jsx("label",{"data-menu-row":true,className:"relative z-10 flex items-center gap-1.5 rounded-control pl-1 pr-2 py-1 transition-colors duration-100",children:jsxRuntime.jsx("input",{type:V.customInputType??"text",disabled:s==="submitting",value:b[J]??"",tabIndex:O?0:-1,onChange:ae=>{O&&(x(
|
|
267
|
-
transition-colors duration-100 hover:bg-hover-2`,children:[i?jsxRuntime.jsx("span",{className:"flex shrink-0 transition-colors duration-200",style:{color:w?"var(--bui-ink-2)":"var(--bui-ink-3)"},children:i}):jsxRuntime.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:w?"var(--bui-ink-2)":"var(--bui-ink-3)",children:jsxRuntime.jsx("path",{d:"M12 2l2.4 7.2L22 12l-7.6 2.8L12 22l-2.4-7.2L2 12l7.6-2.8z"})}),jsxRuntime.jsx("span",{role:"status",className:"contents",children:w?jsxRuntime.jsx("span",{className:"bg-clip-text text-[13px] font-medium whitespace-nowrap text-transparent",style:{backgroundImage:"linear-gradient(90deg, var(--bui-ink-3) 35%, var(--bui-ink) 50%, var(--bui-ink-3) 65%)",backgroundSize:"200% 100%",animation:"bui-shimmer-text 1.4s linear infinite"},children:x.active}):jsxRuntime.jsx("span",{className:"text-[13px] font-medium whitespace-nowrap text-ink-2",style:{animation:"bui-fade-in 350ms ease-out both"},children:x.done})}),y&&jsxRuntime.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--bui-ink-3)",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",className:"transition-transform duration-300",style:{transform:S?"rotate(180deg)":"rotate(0)"},children:jsxRuntime.jsx("path",{d:"M6 9l6 6 6-6"})})]}),jsxRuntime.jsx("div",{className:"grid transition-[grid-template-rows,opacity] duration-400",style:{gridTemplateRows:S?"1fr":"0fr",opacity:S?1:0,transitionTimingFunction:"cubic-bezier(0.23, 1, 0.32, 1)"},children:jsxRuntime.jsx("div",{className:"overflow-hidden",children:jsxRuntime.jsxs("div",{className:"relative mt-1 ml-[5px] pl-4",children:[jsxRuntime.jsx("span",{"aria-hidden":true,className:"absolute left-[3px] w-px bg-line",style:{top:-8,height:$?$-2:0,transition:"height 500ms cubic-bezier(0.23,1,0.32,1)"}}),jsxRuntime.jsxs("div",{ref:T,className:"flex flex-col gap-1 py-1",children:[x.query&&jsxRuntime.jsxs("div",{className:"flex h-6 items-center gap-2 px-1.5",style:{animation:S?"bui-fade-up 300ms cubic-bezier(0.23,1,0.32,1) both":void 0},children:[jsxRuntime.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--bui-ink-3)",strokeWidth:"2",strokeLinecap:"round",className:"shrink-0",children:[jsxRuntime.jsx("circle",{cx:"11",cy:"11",r:"7"}),jsxRuntime.jsx("path",{d:"M21 21l-4.3-4.3"})]}),jsxRuntime.jsx("span",{className:"text-[12.5px] text-ink-2",children:x.query})]}),x.rows.slice(0,C).map((R,W)=>{let B=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e==="Search"&&jsxRuntime.jsx(Jk,{tone:ew[W%3]}),e==="Steps"&&(W<C-1||!w?jsxRuntime.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--bui-ink-3)",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:"shrink-0",children:jsxRuntime.jsx("path",{d:"M20 6L9 17l-5-5"})}):jsxRuntime.jsx("span",{className:"size-3 shrink-0 rounded-full border-[1.5px] border-line-strong border-t-ink-2",style:{animation:"bui-spin 700ms linear infinite"}})),jsxRuntime.jsx("span",{className:`min-w-0 text-[12.5px] ${e==="Reasoning"?"whitespace-pre-wrap [overflow-wrap:anywhere] leading-relaxed text-ink-2":"font-medium text-ink"} ${e==="Search"?"animated-underline":""}`,children:R.primary}),R.secondary&&jsxRuntime.jsx("span",{className:`shrink-0 text-[11.5px] text-ink-3 ${R.mono?"font-mono":""}`,children:R.secondary}),R.add!==void 0&&jsxRuntime.jsxs("span",{className:"shrink-0 font-mono text-[11px] tabular-nums",children:[jsxRuntime.jsxs("span",{className:"text-green",children:["+",R.add]})," ",jsxRuntime.jsxs("span",{className:"text-red",children:["\u2212",R.del]})]})]}),A="flex min-h-7 w-full items-center gap-2 rounded-[6px] px-1.5 py-0.5 text-left",L={animation:`bui-fade-up 320ms cubic-bezier(0.23,1,0.32,1) ${W*120}ms both`};if(e==="Search")return jsxRuntime.jsx("a",{href:Ro(R.href,"link"),target:"_blank",rel:"noreferrer",className:`${A} transition-colors duration-150 hover:bg-hover`,style:L,children:B},R.primary);if(e==="Coding"){let I=p===R.primary;return jsxRuntime.jsx("button",{type:"button","aria-pressed":I,onClick:()=>g(I?null:R.primary),className:`${A} transition-colors duration-150 ${I?"bg-inset":"hover:bg-hover"}`,style:L,children:B},R.primary)}return jsxRuntime.jsx("div",{className:A,style:L,children:B},R.primary)}),e==="Search"&&c>=3&&jsxRuntime.jsx("span",{className:"text-[12px] text-ink-3",style:{animation:"bui-fade-in 300ms ease-out both"},children:d("More")})]})]})})})]},e)})}a(lp,"BUIThinkingState");function dp({groups:e,onSelect:t,trigger:o,anchorRef:n,uploadContent:r,triggerLabel:i="\u6DFB\u52A0\u5185\u5BB9",emptyLabel:s="\u6682\u65E0\u53EF\u7528\u64CD\u4F5C",disabled:l=false,open:d,defaultOpen:c=false,onOpenChange:u,styles:m,classNames:p}){let[g,b]=ye.useState(c),x=io(),f=Fn(),y=Number(f.values["component.ui.quickPromptMenu.sideOffset"]),k=Number(f.values["component.ui.quickPromptMenu.collisionPadding"]),S=Number(f.values["component.ui.quickPromptMenu.maxHeightRatio"]);if(!Number.isFinite(y)||y<0||!Number.isFinite(k)||k<0||!Number.isFinite(S)||S<=0||S>1)throw new TypeError("QuickPromptMenu positioning tokens require non-negative CSS pixel numbers and a maxHeightRatio in (0, 1].");let w={"--bui-quick-prompt-width":f.cssValues["component.ui.quickPromptMenu.width"],"--bui-quick-prompt-height-ratio":S,"--bui-quick-prompt-border-width":f.cssValues["component.ui.size.s1"],"--bui-quick-prompt-radius":f.cssValues["semantic.ui.radius.container"],"--bui-quick-prompt-focus-width":f.cssValues["component.ui.size.s2"],"--bui-quick-prompt-focus-color":f.cssValues["component.ui.focus"],"--bui-quick-prompt-layer":f.cssValues["component.ui.layer.overlayBase"],...m?.content},C=l||!!o?.props.disabled,T=!C&&(d??g),$=a(R=>{R&&C||(b(R),u?.(R));},"setOpen"),P=e.filter(R=>R.options.length>0),E=r!=null&&r!==false;return jsxRuntime.jsx(re,{children:jsxRuntime.jsxs(Zo__namespace.Root,{modal:false,open:T,onOpenChange:$,children:[jsxRuntime.jsx(Zo__namespace.Trigger,{asChild:true,children:o?ye.cloneElement(o,{type:o.props.type??"button",disabled:C,"aria-label":o.props["aria-label"]??i}):jsxRuntime.jsx(To,{shape:"icon",size:"sm",disabled:C,"aria-label":i,children:jsxRuntime.jsx(lucideReact.Plus,{size:f.cssValues["component.ui.icon.size.s16"],"aria-hidden":"true"})})}),n&&jsxRuntime.jsx(Zo__namespace.Anchor,{virtualRef:n}),T&&jsxRuntime.jsx(xr,{children:jsxRuntime.jsx(re,{portal:true,children:jsxRuntime.jsxs(Zo__namespace.Content,{dir:x,side:"top",align:"start",sideOffset:y,collisionPadding:k,"aria-label":i,"data-anchor":n?"container":"trigger",className:["bui-quick-prompt-menu",p?.content].filter(Boolean).join(" "),style:w,children:[E&&jsxRuntime.jsx("div",{className:["bui-quick-prompt-upload",p?.upload].filter(Boolean).join(" "),style:m?.upload,children:r}),P.length>0?jsxRuntime.jsx("div",{className:["bui-quick-prompt-groups",p?.groups].filter(Boolean).join(" "),style:m?.groups,children:P.map((R,W)=>jsxRuntime.jsxs("section",{"aria-label":R.label,children:[jsxRuntime.jsx("h2",{className:"bui-quick-prompt-heading",children:R.label}),R.options.map(B=>jsxRuntime.jsx(To,{variant:"ghost",size:"sm",icon:jsxRuntime.jsx(lucideReact.Box,{size:f.cssValues["component.ui.icon.size.s16"],"aria-hidden":"true"}),className:"bui-quick-prompt-option",onClick:()=>{$(false),t(B);},children:jsxRuntime.jsxs("span",{className:"bui-quick-prompt-copy",children:[jsxRuntime.jsx("span",{children:B.label}),B.description&&jsxRuntime.jsx("span",{className:"bui-quick-prompt-description",children:B.description})]})},B.key))]},`${R.label}-${W}`))}):E?null:jsxRuntime.jsx("p",{className:"bui-quick-prompt-empty",children:s})]})})})]})})}a(dp,"BUIQuickPromptMenu");var uw=ye.lazy(()=>import('@inf-monkeys-tech/monkeys-design/components/markdown-editor').then(e=>({default:e.MarkdownEditor})));function pp({model:e}){let t=$t().markdownDocument,o=Bo(),[n,r]=ye.useState(()=>o?.colorMode==="light"?"light":"dark");ye.useEffect(()=>{(o?.colorMode==="light"||o?.colorMode==="dark")&&r(o.colorMode);},[o?.colorMode]);let i=Cu(qo(Da,o?.contract),n),s=ye.useRef(e.saveStatus);ye.useEffect(()=>{let R=s.current;e.saveStatus!==R&&(e.saveStatus==="saved"&&["saving","dirty"].includes(R)&&Cr.success(t.saved),["error","offline","conflict"].includes(e.saveStatus)&&Cr.error(e.saveStatus==="conflict"?t.conflict:t.error)),s.current=e.saveStatus;},[t.conflict,t.error,t.saved,e.saveStatus]);let[l,d]=ye.useState("visual"),[c,u]=ye.useState(false),[m,p]=ye.useState(false),[g,b]=ye.useState(),[x,f]=ye.useState(),[y,k]=ye.useState(false),S=zo(e.resources),[w,C]=ye.useState(false),T=a(R=>{C(false),R().catch(()=>C(true));},"invoke");if(e.status==="loading")return jsxRuntime.jsx("div",{role:"status",className:"markdown-document-state",children:t.loading});if(e.status==="unavailable")return jsxRuntime.jsx("div",{className:"markdown-document-state",children:t.unavailable});if(e.status==="error")return jsxRuntime.jsxs("div",{role:"alert",className:"markdown-document-state",children:[t.unavailable,jsxRuntime.jsx(ie,{onClick:e.onRetry,children:t.retry})]});let $=!["saved"].includes(e.saveStatus),P=n==="dark"?lucideReact.Sun:lucideReact.Moon,E={...i,"--background":i["--monkeys-ui-page"]??i["--monkeys-ui-background"],"--foreground":i["--monkeys-ui-foreground"],"--border":i["--monkeys-ui-border"],"--muted":i["--monkeys-ui-page"],"--primary":i["--monkeys-ui-button-primary-background"]};return jsxRuntime.jsxs("section",{className:"markdown-document monkeys-ui-markdown-document","data-editing":e.editing?"true":"false","data-color-mode":n,"aria-label":e.name,style:{...E,backgroundColor:i["--monkeys-ui-page"],color:i["--monkeys-ui-foreground"],colorScheme:n},onKeyDown:R=>{(R.metaKey||R.ctrlKey)&&R.key.toLowerCase()==="s"&&(R.preventDefault(),T(e.onSave));},children:[jsxRuntime.jsxs("header",{className:"markdown-document-header",children:[jsxRuntime.jsx(ie,{size:"sm",variant:"ghost",className:"markdown-document-theme-toggle","aria-label":n==="dark"?t.switchToLight:t.switchToDark,title:n==="dark"?t.switchToLight:t.switchToDark,onClick:()=>r(R=>R==="dark"?"light":"dark"),children:jsxRuntime.jsx(P,{"aria-hidden":"true"})}),jsxRuntime.jsxs("div",{className:"markdown-document-header-actions",children:[e.editing?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ie,{size:"sm",variant:l==="visual"?"secondary":"ghost","aria-pressed":l==="visual",onClick:()=>d("visual"),children:t.visual}),jsxRuntime.jsx(ie,{size:"sm",variant:l==="source"?"secondary":"ghost","aria-pressed":l==="source",onClick:()=>d("source"),children:t.source}),jsxRuntime.jsx(ie,{size:"sm",onClick:()=>T(e.onSave),disabled:e.saveStatus==="saving"||!$||e.saveStatus==="conflict",children:t.save}),jsxRuntime.jsx(ie,{size:"sm",variant:"ghost",onClick:()=>{$?T(async()=>{await e.onSave(),e.onExit();}):e.onExit();},children:t.exit})]}):jsxRuntime.jsx(ie,{size:"sm",variant:"outline",disabled:!e.canEdit||e.tooLarge,onClick:e.onEdit,children:t.edit}),jsxRuntime.jsx(ie,{size:"sm",variant:"ghost",onClick:()=>T(e.onDownload),children:t.download}),jsxRuntime.jsx(ie,{size:"sm",variant:"ghost",onClick:()=>{u(true),T(()=>e.onHistory());},children:t.history})]})]}),e.tooLarge?jsxRuntime.jsx("p",{role:"status",children:t.tooLarge}):null,w?jsxRuntime.jsx("p",{role:"alert",children:t.error}):null,e.recoveryAvailable?jsxRuntime.jsxs("div",{role:"status",children:[t.recovery,jsxRuntime.jsx(ie,{size:"sm",onClick:e.onRecover,children:t.recover})]}):null,e.saveStatus==="conflict"?jsxRuntime.jsxs("div",{role:"alert",children:[t.conflict,jsxRuntime.jsx(ie,{onClick:()=>{p(true),T(e.onLoadLatest);},children:t.latest})]}):null,jsxRuntime.jsx("div",{className:"markdown-document-content",children:e.editing?jsxRuntime.jsx(ye.Suspense,{fallback:jsxRuntime.jsx("p",{role:"status",children:t.loading}),children:jsxRuntime.jsx(uw,{value:e.text,mode:l,onChange:e.onChange,onCompositionChange:e.onCompositionChange,uploadImage:e.uploadImage,resourceAccess:e.resources})}):jsxRuntime.jsx(un,{text:e.text,resources:S})}),jsxRuntime.jsx(Ti,{open:m,onOpenChange:p,children:jsxRuntime.jsxs(Rn,{className:"markdown-document-dialog",children:[jsxRuntime.jsx(Jr,{children:t.conflict}),jsxRuntime.jsxs("div",{className:"markdown-document-comparison",children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("h3",{children:t.dirty}),jsxRuntime.jsx("pre",{children:e.text})]}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("h3",{children:t.latest}),jsxRuntime.jsx("pre",{children:e.latestText??t.loading})]})]}),jsxRuntime.jsx(ie,{disabled:e.latestText===void 0,onClick:()=>{e.onUseLatest(),p(false);},children:t.useLatest}),jsxRuntime.jsx(ie,{disabled:e.latestText===void 0,variant:"outline",onClick:()=>{e.onMergeDraft(),p(false),d("source");},children:t.keepDraft})]})}),jsxRuntime.jsx(Ti,{open:c,onOpenChange:u,children:jsxRuntime.jsxs(Rn,{className:"markdown-document-dialog",children:[jsxRuntime.jsx(Jr,{children:t.history}),jsxRuntime.jsxs("div",{className:"markdown-document-history",children:[e.history?.items.map(R=>jsxRuntime.jsxs(ie,{variant:"ghost",onClick:()=>{b(R),f(void 0),e.onVersion(R).then(f).catch(()=>C(true));},children:[new Date(R.createdAt).toLocaleString()," \xB7 ",R.actorId]},R.commitId)),e.history?.items.length?null:jsxRuntime.jsx("p",{children:e.history?.loading?t.loading:t.emptyHistory}),e.history?.hasMore?jsxRuntime.jsx(ie,{disabled:e.history.loading,onClick:()=>T(()=>e.onHistory(true)),children:t.history}):null]}),g?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(un,{text:x??"",resources:S}),jsxRuntime.jsx(ie,{disabled:y||x===void 0||$,onClick:()=>{k(true),e.onRestore(g.commitId).then(()=>{u(false),b(void 0);}).catch(()=>C(true)).finally(()=>k(false));},children:t.restore})]}):null]})})]})}a(pp,"MarkdownDocumentWorkspace");var _s=ye.createContext(void 0);function mE({document:e,history:t,receipt:o,...n}){let r=ye.useContext(_s);if(!r)throw new Error("Markdown documents require a declared artifact workspace slot.");return jsxRuntime.jsx(pp,{model:r.useData(n,e,t)})}a(mE,"AgentConversationMarkdownDocument");var hp=ye.createContext({});function kw({children:e,preview:t,overlays:o}){let n=agentUi.useAgentConversationData();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(_i,{...n.layout,preview:n.previewOpen?jsxRuntime.jsx(is,{hostRef:n.previewHost,children:t}):void 0,children:e}),o]})}a(kw,"AgentConversationLayout");function ww({header:e,prompt:t,questions:o,progress:n,notice:r,interactions:i,pending:s,artifacts:l,collapseProcessOnComplete:d=true,fontScale:c,fontScaleLabels:u,onFontScaleChange:m}){let p=agentUi.useAgentConversationData();return jsxRuntime.jsx(hp.Provider,{value:{fontScale:c,fontScaleLabels:u,onFontScaleChange:m},children:jsxRuntime.jsx("div",{className:"contents agent-conversation-font-scale","data-font-scale":c,children:jsxRuntime.jsx(ep,{...p.chat,fill:true,readable:true,showMessageLabels:false,headerActions:e,composerContent:t,composerAccessory:p.questions?o:void 0,composerProgress:p.taskProgress?n:void 0,composerNotice:p.reviewNotice?r:void 0,pendingContent:p.pendingLabel?s:null,sidePanel:p.artifactsOpen?l:void 0,renderMessage:(g,b)=>jsxRuntime.jsx(Cw,{row:p.rows[b],collapseProcessOnComplete:d},g.id??b),children:p.interactions.blocking||p.interactions.approvals?.length||p.interactions.form||p.interactions.unsupported?i:null})})})}a(ww,"AgentConversationTranscript");function Cw({row:e,collapseProcessOnComplete:t=true}){return e.kind==="process"?jsxRuntime.jsx(Tw,{row:e,collapseOnComplete:t}):e.kind==="question"?jsxRuntime.jsx(xp,{data:e.data}):jsxRuntime.jsx(vp,{data:e.data})}a(Cw,"AgentConversationRow");function vp({data:e}){return jsxRuntime.jsx(Uu,{model:e.useData()})}a(vp,"MessageBinding");function xp({data:e}){return jsxRuntime.jsx(Ra,{...e.useData()})}a(xp,"QuestionBinding");function Tw({row:e,collapseOnComplete:t}){let o=["completed","failed","stopped"].includes(e.process.status),[n,r]=ye.useState(!o),i=ye.useRef(o);return ye.useEffect(()=>{o&&!i.current&&t&&r(false),i.current=o;},[o,t]),jsxRuntime.jsx(Zc,{...e.process,density:"compact",showStatusIcon:false,open:n,onOpenChange:r,children:e.items.map(s=>jsxRuntime.jsx(vp,{data:s},s.key))})}a(Tw,"ProcessRow");function Sw(){let{header:e}=agentUi.useAgentConversationData(),t=ye.useContext(hp),o=t.fontScaleLabels;return jsxRuntime.jsxs("span",{className:"flex items-center",children:[t.fontScale&&o?jsxRuntime.jsx(Eu,{"aria-label":o.ariaLabel,value:t.fontScale,onValueChange:n=>t.onFontScaleChange?.(n),items:[{value:"lg",label:o.large},{value:"md",label:o.medium},{value:"sm",label:o.small}],className:"agent-conversation-font-scale-control"}):null,jsxRuntime.jsx(Te,{size:"xs",variant:"quiet","aria-label":e.canvasLabel,title:e.canvasLabel,"aria-pressed":e.canvasVisible,disabled:e.canvasDisabled,onClick:e.onCanvas,children:jsxRuntime.jsx(lucideReact.Shapes,{className:"agent-workbench-artifact-icon","aria-hidden":"true"})}),jsxRuntime.jsx(Te,{size:"xs",variant:"quiet","aria-label":e.artifactsLabel,title:e.artifactsLabel,"aria-expanded":e.artifactsOpen,"aria-controls":e.artifactsId,onClick:e.onArtifacts,children:jsxRuntime.jsx(lucideReact.Files,{className:"agent-workbench-artifact-icon","aria-hidden":"true"})}),jsxRuntime.jsx(Te,{size:"xs",variant:"quiet","aria-label":e.previewLabel,title:e.previewLabel,"aria-pressed":e.previewOpen,disabled:e.previewDisabled,onClick:e.onPreview,children:e.previewOpen?jsxRuntime.jsx(lucideReact.PanelRightClose,{className:"agent-workbench-artifact-icon","aria-hidden":"true"}):jsxRuntime.jsx(lucideReact.PanelRightOpen,{className:"agent-workbench-artifact-icon","aria-hidden":"true"})})]})}a(Sw,"AgentConversationHeader");var kp=ye.createContext(null);function $w({controls:e,menu:t}){let{fileInputRef:o,onFiles:n,prompt:r,chat:i}=agentUi.useAgentConversationData();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(bo,{unstyled:true,ref:o,type:"file",multiple:true,hidden:true,tabIndex:-1,onChange:s=>{n(Array.from(s.target.files??[])),s.target.value="";}}),jsxRuntime.jsx(Ka,{...r,controls:e,renderAttachButton:t?(s,l)=>jsxRuntime.jsx(kp.Provider,{value:{trigger:s,anchorRef:l},children:t}):void 0,minRows:i.composerContainer?1:2,showDictation:true})]})}a($w,"AgentConversationPrompt");function _E({triggerLabel:e,uploadLabel:t,emptyLabel:o,loadingLabel:n,errorLabel:r}){let i=agentUi.useAgentConversationData();return i.promptMenu?jsxRuntime.jsx(Pw,{binding:i.promptMenu,labels:{triggerLabel:e,uploadLabel:t,emptyLabel:o,loadingLabel:n,errorLabel:r}}):null}a(_E,"AgentConversationPromptMenu");function Pw({binding:e,labels:t}){let o=agentUi.useAgentConversationData(),n=ye.useContext(kp),r=e.useData(),[i,s]=ye.useState(false);if(!n)throw new Error("The prompt menu requires an AgentConversationPrompt menu slot.");let l=r.status==="loading"?t.loadingLabel:r.status==="error"?t.errorLabel:r.groups.some(d=>d.options.length)?void 0:t.emptyLabel;return jsxRuntime.jsx(dp,{...n,trigger:ye.cloneElement(n.trigger,{"aria-label":t.triggerLabel}),triggerLabel:t.triggerLabel,groups:r.groups,disabled:o.prompt.disabled,open:i,onOpenChange:d=>{s(d),d&&r.status==="error"&&r.onRetry?.();},uploadContent:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(To,{size:"sm",variant:"soft",style:{width:"100%",justifyContent:"start"},icon:jsxRuntime.jsx(lucideReact.Paperclip,{size:"var(--monkeys-ui-icon-size-s16,var(--monkeys-ui-default-icon-size-s16))","aria-hidden":"true"}),onClick:()=>{s(false),o.prompt.onAttach?.();},children:t.uploadLabel}),l?jsxRuntime.jsx("p",{role:"status",children:l}):null]}),onSelect:d=>r.onSelect(d.key)})}a(Pw,"PromptMenuBinding");function Rw(){let{questions:e}=agentUi.useAgentConversationData();return e?jsxRuntime.jsxs("div",{"data-agent-question-dock":true,children:[e.blocking&&ye.createElement(Ra,{...e.blocking,key:e.blocking.key}),e.asynchronous?.map(t=>jsxRuntime.jsx(xp,{data:t},t.key))]}):null}a(Rw,"AgentConversationQuestions");function Mw(){let{taskProgress:e}=agentUi.useAgentConversationData();return e?jsxRuntime.jsx(Qa,{...e,variant:"Progress"}):null}a(Mw,"AgentConversationProgress");function Aw(){let{pendingLabel:e,pendingElapsedMs:t,pendingStartedAtMs:o}=agentUi.useAgentConversationData();return e?jsxRuntime.jsx(gn,{variant:"Dots",label:e,elapsedMs:t,startedAtMs:o}):null}a(Aw,"AgentConversationPending");function Bw(){let{reviewNotice:e}=agentUi.useAgentConversationData();return e?jsxRuntime.jsx(Te,{size:"xs",variant:"quiet",disabled:e.disabled,onClick:e.onClick,children:e.label}):null}a(Bw,"AgentConversationNotice");function Nw(){let{interactions:e}=agentUi.useAgentConversationData();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e.blocking&&ye.createElement(Ra,{...e.blocking,key:e.blocking.key}),e.approvals?.map(({id:t,...o})=>jsxRuntime.jsx(Ws,{...o},t)),e.form&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e.form.authorization&&jsxRuntime.jsx(Te,{onClick:e.form.authorization.onClick,children:e.form.authorization.label}),jsxRuntime.jsx(Ws,{...e.form},e.form.id)]}),e.unsupported&&jsxRuntime.jsxs("div",{role:"status",children:[jsxRuntime.jsx(lp,{status:"running",active:e.unsupported.label,rows:[]}),jsxRuntime.jsx(Te,{disabled:e.unsupported.disabled,onClick:e.unsupported.onStop,children:e.unsupported.stopLabel})]})]})}a(Nw,"AgentConversationInteractions");function Ew({panel:e,files:t,error:o}){return jsxRuntime.jsx(ni,{...e,footer:o?jsxRuntime.jsx(tu,{message:o}):void 0,children:jsxRuntime.jsx(ri,{...t})})}a(Ew,"AgentConversationArtifactList");function Iw({data:e}){return jsxRuntime.jsx(Ew,{...e.useData()})}a(Iw,"ArtifactBinding");function Dw(){let e=agentUi.useAgentConversationData();return jsxRuntime.jsx(Iw,{data:e.artifacts})}a(Dw,"AgentConversationArtifacts");function Lw({data:e,canvas:t,markdown:o,onMarkdownSourceSelected:n}){let r=e.useData(),i=a(c=>{let u=r.workspace.artifacts.find(p=>p.id===c),m=u&&r.contents.find(p=>p.id===u.id);return u?.kind==="markdown"&&m?.kind==="artifact"?m.document?.source??null:null},"sourceFor"),s=i(r.workspace.activeArtifactId),l=JSON.stringify(s),d=ye.useRef(n);return d.current=n,ye.useEffect(()=>{d.current&&Promise.resolve(d.current(s)).catch(()=>{});},[l]),jsxRuntime.jsx(Ic,{conversation:r.conversation,workspace:{...r.workspace,density:"compact",tabBar:"flush",onIntent:a(c=>{c.type==="select"&&n&&Promise.resolve(n(i(c.artifactId))).catch(()=>{}),r.workspace.onIntent?.(c);},"onIntent"),renderArtifact:a(c=>{if(c.id==="agent-session-canvas")return jsxRuntime.jsx(is,{children:t});let u=r.contents.find(m=>m.id===c.id);return u?u.kind==="artifact"&&u.document&&o?jsxRuntime.jsx(_s.Provider,{value:u.document,children:o},u.id):u.kind==="data"?jsxRuntime.jsx(zw,{data:u.data},u.id):jsxRuntime.jsx(Ow,{data:u.data},u.id):null},"renderArtifact")}})}a(Lw,"WorkspaceBinding");function zw({data:e}){return jsxRuntime.jsx(Iu,{...e.useData()})}a(zw,"LinkedBinding");function Ow({data:e}){return jsxRuntime.jsx(ur,{...e.useData()})}a(Ow,"PreviewBinding");function Hw({canvas:e,markdown:t,onMarkdownSourceSelected:o}){let n=agentUi.useAgentConversationData();return jsxRuntime.jsx(Lw,{data:n.workspace,canvas:n.canvasOpen?e:void 0,markdown:t,onMarkdownSourceSelected:o})}a(Hw,"AgentConversationWorkspace");function Ww({data:e}){return jsxRuntime.jsx(Lu,{...e.useData()})}a(Ww,"CanvasBinding");function Fw(){let{canvas:e}=agentUi.useAgentConversationData();return e?jsxRuntime.jsx(Ww,{data:e},e.key):null}a(Fw,"AgentConversationCanvas");function _w({data:e}){return jsxRuntime.jsx(Ms,{...e.useData()})}a(_w,"CollectionBinding");function Uw(){let{collection:e}=agentUi.useAgentConversationData();return e?jsxRuntime.jsx(_w,{data:e}):null}a(Uw,"AgentConversationCollection");function UE({canvas:e}){return jsxRuntime.jsx(kw,{preview:jsxRuntime.jsx(Hw,{canvas:e??jsxRuntime.jsx(Fw,{})}),overlays:jsxRuntime.jsx(Uw,{}),children:jsxRuntime.jsx(ww,{header:jsxRuntime.jsx(Sw,{}),prompt:jsxRuntime.jsx($w,{}),questions:jsxRuntime.jsx(Rw,{}),progress:jsxRuntime.jsx(Mw,{}),notice:jsxRuntime.jsx(Bw,{}),interactions:jsxRuntime.jsx(Nw,{}),pending:jsxRuntime.jsx(Aw,{}),artifacts:jsxRuntime.jsx(Dw,{})})})}a(UE,"AgentConversationDefaultView");
|
|
266
|
+
${Ce?"bg-ink text-canvas":"shadow-[inset_0_0_0_1.5px_var(--bui-line-strong)] text-transparent"}`,children:V.type==="radio"?jsxRuntime.jsx("span",{className:"size-1.5 rounded-full bg-canvas transition-transform duration-200",style:{transform:Ce?"scale(1)":"scale(0)"}}):jsxRuntime.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M20 6L9 17l-5-5"})})}),jsxRuntime.jsx("span",{className:`text-[13px] leading-none transition-colors duration-200 ${Ce?"text-ink":"text-ink-2"}`,children:ae})]},ae)}),V.allowCustom!==false&&jsxRuntime.jsx("label",{"data-menu-row":true,className:"relative z-10 flex items-center gap-1.5 rounded-control pl-1 pr-2 py-1 transition-colors duration-100",children:jsxRuntime.jsx("input",{type:V.customInputType??"text",disabled:s==="submitting",value:b[J]??"",tabIndex:O?0:-1,onChange:ae=>{O&&(x(me=>({...me,[J]:ae.target.value})),V.type==="radio"&&g(me=>({...me,[J]:[]})));},onKeyDown:ae=>{ae.key==="Enter"&&!ae.nativeEvent.isComposing&&ae.keyCode!==229&&_&&(ae.preventDefault(),Q());},placeholder:c.customPlaceholder,"aria-label":d("Custom answer"),className:"min-w-0 flex-1 bg-transparent pl-1.5 text-[13px] text-ink outline-none placeholder:text-ink-3"})})]})]},J)})})})}),jsxRuntime.jsxs("div",{className:"primitive-card-footer flex items-center justify-between gap-3",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-1 text-ink-3",children:[jsxRuntime.jsx("button",{type:"button","aria-label":d("Previous question"),disabled:u<=0,onClick:()=>M(u-1),className:"flex size-[18px] items-center justify-center rounded-[var(--bui-radius-scale-5)] transition-colors duration-100 enabled:hover:text-ink disabled:opacity-30",children:jsxRuntime.jsx(Os,{size:14,path:jsxRuntime.jsx("path",{d:"M18 15l-6-6-6 6"})})}),jsxRuntime.jsx("span",{className:"inline-flex items-center text-[12px] font-medium tabular-nums text-ink-3",style:{letterSpacing:"-0.1px",lineHeight:1},children:jsxRuntime.jsx(Yk,{value:`${u+1} / ${e.length}`})}),jsxRuntime.jsx("button",{type:"button","aria-label":d("Next question"),disabled:K,onClick:()=>M(u+1),className:"flex size-[18px] items-center justify-center rounded-[var(--bui-radius-scale-5)] transition-colors duration-100 enabled:hover:text-ink disabled:opacity-30",children:jsxRuntime.jsx(Os,{size:14,path:jsxRuntime.jsx("path",{d:"M6 9l6 6 6-6"})})})]}),jsxRuntime.jsxs("div",{className:"-mr-0.5 flex items-center gap-1.5",children:[i&&jsxRuntime.jsx(Te,{variant:"ghost",size:"sm",disabled:s==="submitting",onClick:()=>K?w(false):M(u+1),children:c.skip}),jsxRuntime.jsx(Te,{variant:"accent",size:"sm",disabled:!_||s==="submitting",onClick:Q,children:K?c.send:c.continue})]})]})]})})}):jsxRuntime.jsx(ee,{children:jsxRuntime.jsx("button",{type:"button",onClick:()=>w(true),className:"rounded-control bg-surface px-3 py-2 text-[12.5px] font-medium text-ink shadow-btn transition-colors duration-150 hover:bg-hover",children:d("Open approval")})}):null}a(Ws,"BUIApprovalCard");function ew({tone:e}){return jsxRuntime.jsx("span",{className:`flex size-3.5 shrink-0 items-center justify-center rounded-full text-white ${e}`,children:jsxRuntime.jsxs("svg",{width:"9",height:"9",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"9"}),jsxRuntime.jsx("path",{d:"M3.5 12h17M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18"})]})})}a(ew,"Dot");var tw=["bg-accent","bg-orange","bg-green"];function lp({variant:e="Steps",onSettled:t,rows:o,active:n,done:r,icon:i,status:s="running",query:l}){let d=Ue(),c=s==="running"?2:4,[u,m]=he.useState(null),[p,g]=he.useState(null),b={rows:[],active:d("Thinking"),done:d("Thought complete"),query:l},x={...b,rows:o??b.rows,active:n??b.active,done:r??b.done},f=c>=1&&c<4,h=x.rows.length>0||!!x.query,k=h?"button":"div",$=h&&(u??f),w=c<3,C=c<2?0:x.rows.length,T=he.useRef(null),[S,P]=he.useState(0);he.useLayoutEffect(()=>{T.current&&P(T.current.offsetHeight);},[C,$,e,c]);let E=he.useRef(false);return he.useEffect(()=>{if(w){E.current=false;return}E.current||(E.current=true,t?.());},[w,t]),jsxRuntime.jsx(ee,{children:jsxRuntime.jsxs("div",{"data-bui-thinking":true,className:"flex w-full max-w-95 flex-col",style:{minHeight:w||$?"var(--bui-activity-min-height, 176px)":void 0,transition:"min-height 400ms cubic-bezier(0.23,1,0.32,1)"},children:[jsxRuntime.jsxs(k,{type:h?"button":void 0,"aria-expanded":h?$:void 0,onClick:h?()=>m(R=>!(R??f)):void 0,className:`-mx-1.5 flex w-fit items-center gap-2 rounded-control px-1.5 py-1
|
|
267
|
+
transition-colors duration-100 hover:bg-hover-2`,children:[i?jsxRuntime.jsx("span",{className:"flex shrink-0 transition-colors duration-200",style:{color:w?"var(--bui-ink-2)":"var(--bui-ink-3)"},children:i}):jsxRuntime.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:w?"var(--bui-ink-2)":"var(--bui-ink-3)",children:jsxRuntime.jsx("path",{d:"M12 2l2.4 7.2L22 12l-7.6 2.8L12 22l-2.4-7.2L2 12l7.6-2.8z"})}),jsxRuntime.jsx("span",{role:"status",className:"contents",children:w?jsxRuntime.jsx("span",{className:"bg-clip-text text-[13px] font-medium whitespace-nowrap text-transparent",style:{backgroundImage:"linear-gradient(90deg, var(--bui-ink-3) 35%, var(--bui-ink) 50%, var(--bui-ink-3) 65%)",backgroundSize:"200% 100%",animation:"bui-shimmer-text 1.4s linear infinite"},children:x.active}):jsxRuntime.jsx("span",{className:"text-[13px] font-medium whitespace-nowrap text-ink-2",style:{animation:"bui-fade-in 350ms ease-out both"},children:x.done})}),h&&jsxRuntime.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--bui-ink-3)",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",className:"transition-transform duration-300",style:{transform:$?"rotate(180deg)":"rotate(0)"},children:jsxRuntime.jsx("path",{d:"M6 9l6 6 6-6"})})]}),jsxRuntime.jsx("div",{className:"grid transition-[grid-template-rows,opacity] duration-400",style:{gridTemplateRows:$?"1fr":"0fr",opacity:$?1:0,transitionTimingFunction:"cubic-bezier(0.23, 1, 0.32, 1)"},children:jsxRuntime.jsx("div",{className:"overflow-hidden",children:jsxRuntime.jsxs("div",{className:"relative mt-1 ml-[5px] pl-4",children:[jsxRuntime.jsx("span",{"aria-hidden":true,className:"absolute left-[3px] w-px bg-line",style:{top:-8,height:S?S-2:0,transition:"height 500ms cubic-bezier(0.23,1,0.32,1)"}}),jsxRuntime.jsxs("div",{ref:T,className:"flex flex-col gap-1 py-1",children:[x.query&&jsxRuntime.jsxs("div",{className:"flex h-6 items-center gap-2 px-1.5",style:{animation:$?"bui-fade-up 300ms cubic-bezier(0.23,1,0.32,1) both":void 0},children:[jsxRuntime.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--bui-ink-3)",strokeWidth:"2",strokeLinecap:"round",className:"shrink-0",children:[jsxRuntime.jsx("circle",{cx:"11",cy:"11",r:"7"}),jsxRuntime.jsx("path",{d:"M21 21l-4.3-4.3"})]}),jsxRuntime.jsx("span",{className:"text-[12.5px] text-ink-2",children:x.query})]}),x.rows.slice(0,C).map((R,W)=>{let B=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e==="Search"&&jsxRuntime.jsx(ew,{tone:tw[W%3]}),e==="Steps"&&(W<C-1||!w?jsxRuntime.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--bui-ink-3)",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:"shrink-0",children:jsxRuntime.jsx("path",{d:"M20 6L9 17l-5-5"})}):jsxRuntime.jsx("span",{className:"size-3 shrink-0 rounded-full border-[1.5px] border-line-strong border-t-ink-2",style:{animation:"bui-spin 700ms linear infinite"}})),jsxRuntime.jsx("span",{className:`min-w-0 text-[12.5px] ${e==="Reasoning"?"whitespace-pre-wrap [overflow-wrap:anywhere] leading-relaxed text-ink-2":"font-medium text-ink"} ${e==="Search"?"animated-underline":""}`,children:R.primary}),R.secondary&&jsxRuntime.jsx("span",{className:`shrink-0 text-[11.5px] text-ink-3 ${R.mono?"font-mono":""}`,children:R.secondary}),R.add!==void 0&&jsxRuntime.jsxs("span",{className:"shrink-0 font-mono text-[11px] tabular-nums",children:[jsxRuntime.jsxs("span",{className:"text-green",children:["+",R.add]})," ",jsxRuntime.jsxs("span",{className:"text-red",children:["\u2212",R.del]})]})]}),A="flex min-h-7 w-full items-center gap-2 rounded-[6px] px-1.5 py-0.5 text-left",L={animation:`bui-fade-up 320ms cubic-bezier(0.23,1,0.32,1) ${W*120}ms both`};if(e==="Search")return jsxRuntime.jsx("a",{href:Mo(R.href,"link"),target:"_blank",rel:"noreferrer",className:`${A} transition-colors duration-150 hover:bg-hover`,style:L,children:B},R.primary);if(e==="Coding"){let I=p===R.primary;return jsxRuntime.jsx("button",{type:"button","aria-pressed":I,onClick:()=>g(I?null:R.primary),className:`${A} transition-colors duration-150 ${I?"bg-inset":"hover:bg-hover"}`,style:L,children:B},R.primary)}return jsxRuntime.jsx("div",{className:A,style:L,children:B},R.primary)}),e==="Search"&&c>=3&&jsxRuntime.jsx("span",{className:"text-[12px] text-ink-3",style:{animation:"bui-fade-in 300ms ease-out both"},children:d("More")})]})]})})})]},e)})}a(lp,"BUIThinkingState");function dp({groups:e,onSelect:t,trigger:o,anchorRef:n,uploadContent:r,triggerLabel:i="\u6DFB\u52A0\u5185\u5BB9",emptyLabel:s="\u6682\u65E0\u53EF\u7528\u64CD\u4F5C",disabled:l=false,open:d,defaultOpen:c=false,onOpenChange:u,styles:m,classNames:p}){let[g,b]=he.useState(c),x=io(),f=_n(),h=Number(f.values["component.ui.quickPromptMenu.sideOffset"]),k=Number(f.values["component.ui.quickPromptMenu.collisionPadding"]),$=Number(f.values["component.ui.quickPromptMenu.maxHeightRatio"]);if(!Number.isFinite(h)||h<0||!Number.isFinite(k)||k<0||!Number.isFinite($)||$<=0||$>1)throw new TypeError("QuickPromptMenu positioning tokens require non-negative CSS pixel numbers and a maxHeightRatio in (0, 1].");let w={"--bui-quick-prompt-width":f.cssValues["component.ui.quickPromptMenu.width"],"--bui-quick-prompt-height-ratio":$,"--bui-quick-prompt-border-width":f.cssValues["component.ui.size.s1"],"--bui-quick-prompt-radius":f.cssValues["semantic.ui.radius.container"],"--bui-quick-prompt-focus-width":f.cssValues["component.ui.size.s2"],"--bui-quick-prompt-focus-color":f.cssValues["component.ui.focus"],"--bui-quick-prompt-layer":f.cssValues["component.ui.layer.overlayBase"],...m?.content},C=l||!!o?.props.disabled,T=!C&&(d??g),S=a(R=>{R&&C||(b(R),u?.(R));},"setOpen"),P=e.filter(R=>R.options.length>0),E=r!=null&&r!==false;return jsxRuntime.jsx(ee,{children:jsxRuntime.jsxs(Jo__namespace.Root,{modal:false,open:T,onOpenChange:S,children:[jsxRuntime.jsx(Jo__namespace.Trigger,{asChild:true,children:o?he.cloneElement(o,{type:o.props.type??"button",disabled:C,"aria-label":o.props["aria-label"]??i}):jsxRuntime.jsx(So,{shape:"icon",size:"sm",disabled:C,"aria-label":i,children:jsxRuntime.jsx(lucideReact.Plus,{size:f.cssValues["component.ui.icon.size.s16"],"aria-hidden":"true"})})}),n&&jsxRuntime.jsx(Jo__namespace.Anchor,{virtualRef:n}),T&&jsxRuntime.jsx(xr,{children:jsxRuntime.jsx(ee,{portal:true,children:jsxRuntime.jsxs(Jo__namespace.Content,{dir:x,side:"top",align:"start",sideOffset:h,collisionPadding:k,"aria-label":i,"data-anchor":n?"container":"trigger",className:["bui-quick-prompt-menu",p?.content].filter(Boolean).join(" "),style:w,children:[E&&jsxRuntime.jsx("div",{className:["bui-quick-prompt-upload",p?.upload].filter(Boolean).join(" "),style:m?.upload,children:r}),P.length>0?jsxRuntime.jsx("div",{className:["bui-quick-prompt-groups",p?.groups].filter(Boolean).join(" "),style:m?.groups,children:P.map((R,W)=>jsxRuntime.jsxs("section",{"aria-label":R.label,children:[jsxRuntime.jsx("h2",{className:"bui-quick-prompt-heading",children:R.label}),R.options.map(B=>jsxRuntime.jsx(So,{variant:"ghost",size:"sm",icon:jsxRuntime.jsx(lucideReact.Box,{size:f.cssValues["component.ui.icon.size.s16"],"aria-hidden":"true"}),className:"bui-quick-prompt-option",onClick:()=>{S(false),t(B);},children:jsxRuntime.jsxs("span",{className:"bui-quick-prompt-copy",children:[jsxRuntime.jsx("span",{children:B.label}),B.description&&jsxRuntime.jsx("span",{className:"bui-quick-prompt-description",children:B.description})]})},B.key))]},`${R.label}-${W}`))}):E?null:jsxRuntime.jsx("p",{className:"bui-quick-prompt-empty",children:s})]})})})]})})}a(dp,"BUIQuickPromptMenu");var pw=he.lazy(()=>import('@inf-monkeys-tech/monkeys-design/components/markdown-editor').then(e=>({default:e.MarkdownEditor})));function mp({model:e}){let t=$t().markdownDocument,o=No(),[n,r]=he.useState(()=>o?.colorMode==="light"?"light":"dark");he.useEffect(()=>{(o?.colorMode==="light"||o?.colorMode==="dark")&&r(o.colorMode);},[o?.colorMode]);let i=he.useMemo(()=>Ko(Da,o?.contract),[o?.contract]),s=he.useMemo(()=>{let R=go(i,{colorMode:n,density:o?.density}).cssVariables;return {...R,...Cu(i,n),"--card-foreground":R["--card-foreground"]??R["--foreground"],"--secondary-foreground":R["--secondary-foreground"]??R["--foreground"],"--accent-foreground":R["--accent-foreground"]??R["--foreground"],colorScheme:n}},[i,n,o?.density]),l=he.useRef(e.saveStatus);he.useEffect(()=>{let R=l.current;e.saveStatus!==R&&(e.saveStatus==="saved"&&["saving","dirty"].includes(R)&&Cr.success(t.saved),["error","offline","conflict"].includes(e.saveStatus)&&Cr.error(e.saveStatus==="conflict"?t.conflict:t.error)),l.current=e.saveStatus;},[t.conflict,t.error,t.saved,e.saveStatus]);let[d,c]=he.useState("visual"),[u,m]=he.useState(false),[p,g]=he.useState(false),[b,x]=he.useState(),[f,h]=he.useState(),[k,$]=he.useState(false),w=Oo(e.resources),[C,T]=he.useState(false),S=a(R=>{T(false),R().catch(()=>T(true));},"invoke");if(e.status==="loading")return jsxRuntime.jsx("div",{role:"status",className:"markdown-document-state",children:t.loading});if(e.status==="unavailable")return jsxRuntime.jsx("div",{className:"markdown-document-state",children:t.unavailable});if(e.status==="error")return jsxRuntime.jsxs("div",{role:"alert",className:"markdown-document-state",children:[t.unavailable,jsxRuntime.jsx(ie,{onClick:e.onRetry,children:t.retry})]});let P=!["saved"].includes(e.saveStatus),E=n==="dark"?lucideReact.Sun:lucideReact.Moon;return jsxRuntime.jsx(gn,{theme:i,colorMode:n,density:o?.density,children:jsxRuntime.jsx(ee,{children:jsxRuntime.jsxs("section",{className:"markdown-document markdown-document-theme-scope monkeys-ui-markdown-document","data-editing":e.editing?"true":"false","data-color-mode":n,"aria-label":e.name,style:s,onKeyDown:R=>{(R.metaKey||R.ctrlKey)&&R.key.toLowerCase()==="s"&&(R.preventDefault(),S(e.onSave));},children:[jsxRuntime.jsxs("header",{className:"markdown-document-header",children:[jsxRuntime.jsx(ie,{size:"sm",variant:"ghost",className:"markdown-document-theme-toggle","aria-label":n==="dark"?t.switchToLight:t.switchToDark,title:n==="dark"?t.switchToLight:t.switchToDark,onClick:()=>r(R=>R==="dark"?"light":"dark"),children:jsxRuntime.jsx(E,{"aria-hidden":"true"})}),jsxRuntime.jsxs("div",{className:"markdown-document-header-actions",children:[e.editing?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ie,{size:"sm",variant:d==="visual"?"secondary":"ghost","aria-pressed":d==="visual",onClick:()=>c("visual"),children:t.visual}),jsxRuntime.jsx(ie,{size:"sm",variant:d==="source"?"secondary":"ghost","aria-pressed":d==="source",onClick:()=>c("source"),children:t.source}),jsxRuntime.jsx(ie,{size:"sm",onClick:()=>S(e.onSave),disabled:e.saveStatus==="saving"||!P||e.saveStatus==="conflict",children:t.save}),jsxRuntime.jsx(ie,{size:"sm",variant:"ghost",onClick:()=>{P?S(async()=>{await e.onSave(),e.onExit();}):e.onExit();},children:t.exit})]}):jsxRuntime.jsx(ie,{size:"sm",variant:"outline",disabled:!e.canEdit||e.tooLarge,onClick:e.onEdit,children:t.edit}),jsxRuntime.jsx(ie,{size:"sm",variant:"ghost",onClick:()=>S(e.onDownload),children:t.download}),jsxRuntime.jsx(ie,{size:"sm",variant:"ghost",onClick:()=>{m(true),S(()=>e.onHistory());},children:t.history})]})]}),e.tooLarge?jsxRuntime.jsx("p",{role:"status",children:t.tooLarge}):null,C?jsxRuntime.jsx("p",{role:"alert",children:t.error}):null,e.recoveryAvailable?jsxRuntime.jsxs("div",{role:"status",children:[t.recovery,jsxRuntime.jsx(ie,{size:"sm",onClick:e.onRecover,children:t.recover})]}):null,e.saveStatus==="conflict"?jsxRuntime.jsxs("div",{role:"alert",children:[t.conflict,jsxRuntime.jsx(ie,{onClick:()=>{g(true),S(e.onLoadLatest);},children:t.latest})]}):null,jsxRuntime.jsx("div",{className:"markdown-document-content",children:e.editing?jsxRuntime.jsx(he.Suspense,{fallback:jsxRuntime.jsx("p",{role:"status",children:t.loading}),children:jsxRuntime.jsx(pw,{value:e.text,mode:d,onChange:e.onChange,onCompositionChange:e.onCompositionChange,uploadImage:e.uploadImage,resourceAccess:e.resources})}):jsxRuntime.jsx(un,{text:e.text,resources:w})}),jsxRuntime.jsx(Ti,{open:p,onOpenChange:g,children:jsxRuntime.jsx(Mn,{className:"markdown-document-dialog markdown-document-theme-scope",style:s,children:jsxRuntime.jsxs(ee,{portal:true,children:[jsxRuntime.jsx(Jr,{children:t.conflict}),jsxRuntime.jsxs("div",{className:"markdown-document-comparison",children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("h3",{children:t.dirty}),jsxRuntime.jsx("pre",{children:e.text})]}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("h3",{children:t.latest}),jsxRuntime.jsx("pre",{children:e.latestText??t.loading})]})]}),jsxRuntime.jsx(ie,{disabled:e.latestText===void 0,onClick:()=>{e.onUseLatest(),g(false);},children:t.useLatest}),jsxRuntime.jsx(ie,{disabled:e.latestText===void 0,variant:"outline",onClick:()=>{e.onMergeDraft(),g(false),c("source");},children:t.keepDraft})]})})}),jsxRuntime.jsx(Ti,{open:u,onOpenChange:m,children:jsxRuntime.jsx(Mn,{className:"markdown-document-dialog markdown-document-theme-scope",style:s,children:jsxRuntime.jsxs(ee,{portal:true,children:[jsxRuntime.jsx(Jr,{children:t.history}),jsxRuntime.jsxs("div",{className:"markdown-document-history",children:[e.history?.items.map(R=>jsxRuntime.jsxs(ie,{variant:"ghost",onClick:()=>{x(R),h(void 0),e.onVersion(R).then(h).catch(()=>T(true));},children:[new Date(R.createdAt).toLocaleString()," \xB7 ",R.actorId]},R.commitId)),e.history?.items.length?null:jsxRuntime.jsx("p",{children:e.history?.loading?t.loading:t.emptyHistory}),e.history?.hasMore?jsxRuntime.jsx(ie,{disabled:e.history.loading,onClick:()=>S(()=>e.onHistory(true)),children:t.history}):null]}),b?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(un,{text:f??"",resources:w}),jsxRuntime.jsx(ie,{disabled:k||f===void 0||P,onClick:()=>{$(true),e.onRestore(b.commitId).then(()=>{m(false),x(void 0);}).catch(()=>T(true)).finally(()=>$(false));},children:t.restore})]}):null]})})})]})})})}a(mp,"MarkdownDocumentWorkspace");var _s=he.createContext(void 0);function bE({document:e,history:t,receipt:o,...n}){let r=he.useContext(_s);if(!r)throw new Error("Markdown documents require a declared artifact workspace slot.");return jsxRuntime.jsx(mp,{model:r.useData(n,e,t)})}a(bE,"AgentConversationMarkdownDocument");var vp=he.createContext({});function ww({children:e,preview:t,overlays:o}){let n=agentUi.useAgentConversationData();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(_i,{...n.layout,preview:n.previewOpen?jsxRuntime.jsx(is,{hostRef:n.previewHost,children:t}):void 0,children:e}),o]})}a(ww,"AgentConversationLayout");function Cw({header:e,prompt:t,questions:o,progress:n,notice:r,interactions:i,pending:s,artifacts:l,collapseProcessOnComplete:d=true,fontScale:c,fontScaleLabels:u,onFontScaleChange:m}){let p=agentUi.useAgentConversationData();return jsxRuntime.jsx(vp.Provider,{value:{fontScale:c,fontScaleLabels:u,onFontScaleChange:m},children:jsxRuntime.jsx("div",{className:"contents agent-conversation-font-scale","data-font-scale":c,children:jsxRuntime.jsx(ep,{...p.chat,fill:true,readable:true,showMessageLabels:false,headerActions:e,composerContent:t,composerAccessory:p.questions?o:void 0,composerProgress:p.taskProgress?n:void 0,composerNotice:p.reviewNotice?r:void 0,pendingContent:p.pendingLabel?s:null,sidePanel:p.artifactsOpen?l:void 0,renderMessage:(g,b)=>jsxRuntime.jsx(Tw,{row:p.rows[b],collapseProcessOnComplete:d},g.id??b),children:p.interactions.blocking||p.interactions.approvals?.length||p.interactions.form||p.interactions.unsupported?i:null})})})}a(Cw,"AgentConversationTranscript");function Tw({row:e,collapseProcessOnComplete:t=true}){return e.kind==="process"?jsxRuntime.jsx(Sw,{row:e,collapseOnComplete:t}):e.kind==="question"?jsxRuntime.jsx(kp,{data:e.data}):jsxRuntime.jsx(xp,{data:e.data})}a(Tw,"AgentConversationRow");function xp({data:e}){return jsxRuntime.jsx(Uu,{model:e.useData()})}a(xp,"MessageBinding");function kp({data:e}){return jsxRuntime.jsx(Ra,{...e.useData()})}a(kp,"QuestionBinding");function Sw({row:e,collapseOnComplete:t}){let o=["completed","failed","stopped"].includes(e.process.status),[n,r]=he.useState(!o),i=he.useRef(o);return he.useEffect(()=>{o&&!i.current&&t&&r(false),i.current=o;},[o,t]),jsxRuntime.jsx(Zc,{...e.process,density:"compact",showStatusIcon:false,open:n,onOpenChange:r,children:e.items.map(s=>jsxRuntime.jsx(xp,{data:s},s.key))})}a(Sw,"ProcessRow");function $w(){let{header:e}=agentUi.useAgentConversationData(),t=he.useContext(vp),o=t.fontScaleLabels;return jsxRuntime.jsxs("span",{className:"flex items-center",children:[t.fontScale&&o?jsxRuntime.jsx(Eu,{"aria-label":o.ariaLabel,value:t.fontScale,onValueChange:n=>t.onFontScaleChange?.(n),items:[{value:"lg",label:o.large},{value:"md",label:o.medium},{value:"sm",label:o.small}],className:"agent-conversation-font-scale-control"}):null,jsxRuntime.jsx(Te,{size:"xs",variant:"quiet","aria-label":e.canvasLabel,title:e.canvasLabel,"aria-pressed":e.canvasVisible,disabled:e.canvasDisabled,onClick:e.onCanvas,children:jsxRuntime.jsx(lucideReact.Shapes,{className:"agent-workbench-artifact-icon","aria-hidden":"true"})}),jsxRuntime.jsx(Te,{size:"xs",variant:"quiet","aria-label":e.artifactsLabel,title:e.artifactsLabel,"aria-expanded":e.artifactsOpen,"aria-controls":e.artifactsId,onClick:e.onArtifacts,children:jsxRuntime.jsx(lucideReact.Files,{className:"agent-workbench-artifact-icon","aria-hidden":"true"})}),jsxRuntime.jsx(Te,{size:"xs",variant:"quiet","aria-label":e.previewLabel,title:e.previewLabel,"aria-pressed":e.previewOpen,disabled:e.previewDisabled,onClick:e.onPreview,children:e.previewOpen?jsxRuntime.jsx(lucideReact.PanelRightClose,{className:"agent-workbench-artifact-icon","aria-hidden":"true"}):jsxRuntime.jsx(lucideReact.PanelRightOpen,{className:"agent-workbench-artifact-icon","aria-hidden":"true"})})]})}a($w,"AgentConversationHeader");var wp=he.createContext(null);function Pw({controls:e,menu:t}){let{fileInputRef:o,onFiles:n,prompt:r,chat:i}=agentUi.useAgentConversationData();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ho,{unstyled:true,ref:o,type:"file",multiple:true,hidden:true,tabIndex:-1,onChange:s=>{n(Array.from(s.target.files??[])),s.target.value="";}}),jsxRuntime.jsx(Ka,{...r,controls:e,renderAttachButton:t?(s,l)=>jsxRuntime.jsx(wp.Provider,{value:{trigger:s,anchorRef:l},children:t}):void 0,minRows:i.composerContainer?1:2,showDictation:true})]})}a(Pw,"AgentConversationPrompt");function jE({triggerLabel:e,uploadLabel:t,emptyLabel:o,loadingLabel:n,errorLabel:r}){let i=agentUi.useAgentConversationData();return i.promptMenu?jsxRuntime.jsx(Rw,{binding:i.promptMenu,labels:{triggerLabel:e,uploadLabel:t,emptyLabel:o,loadingLabel:n,errorLabel:r}},i.promptMenu.key):null}a(jE,"AgentConversationPromptMenu");function Rw({binding:e,labels:t}){let o=agentUi.useAgentConversationData(),n=he.useContext(wp),r=e.useData(),[i,s]=he.useState(false);if(!n)throw new Error("The prompt menu requires an AgentConversationPrompt menu slot.");let l=r.status==="loading"?t.loadingLabel:r.status==="error"?t.errorLabel:r.groups.some(d=>d.options.length)?void 0:t.emptyLabel;return jsxRuntime.jsx(dp,{...n,trigger:he.cloneElement(n.trigger,{"aria-label":t.triggerLabel}),triggerLabel:t.triggerLabel,groups:r.groups,disabled:o.prompt.disabled,open:i,onOpenChange:d=>{s(d),d&&r.status==="error"&&r.onRetry?.();},uploadContent:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(So,{size:"sm",variant:"soft",style:{width:"100%",justifyContent:"start"},icon:jsxRuntime.jsx(lucideReact.Paperclip,{size:"var(--monkeys-ui-icon-size-s16,var(--monkeys-ui-default-icon-size-s16))","aria-hidden":"true"}),onClick:()=>{s(false),o.prompt.onAttach?.();},children:t.uploadLabel}),l?jsxRuntime.jsx("p",{role:"status",children:l}):null]}),onSelect:d=>r.onSelect(d.key)})}a(Rw,"PromptMenuBinding");function Mw(){let{questions:e}=agentUi.useAgentConversationData();return e?jsxRuntime.jsxs("div",{"data-agent-question-dock":true,children:[e.blocking&&he.createElement(Ra,{...e.blocking,key:e.blocking.key}),e.asynchronous?.map(t=>jsxRuntime.jsx(kp,{data:t},t.key))]}):null}a(Mw,"AgentConversationQuestions");function Aw(){let{taskProgress:e}=agentUi.useAgentConversationData();return e?jsxRuntime.jsx(Qa,{...e,variant:"Progress"}):null}a(Aw,"AgentConversationProgress");function Bw(){let{pendingLabel:e,pendingElapsedMs:t,pendingStartedAtMs:o}=agentUi.useAgentConversationData();return e?jsxRuntime.jsx(fn,{variant:"Dots",label:e,elapsedMs:t,startedAtMs:o}):null}a(Bw,"AgentConversationPending");function Nw(){let{reviewNotice:e}=agentUi.useAgentConversationData();return e?jsxRuntime.jsx(Te,{size:"xs",variant:"quiet",disabled:e.disabled,onClick:e.onClick,children:e.label}):null}a(Nw,"AgentConversationNotice");function Ew(){let{interactions:e}=agentUi.useAgentConversationData();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e.blocking&&he.createElement(Ra,{...e.blocking,key:e.blocking.key}),e.approvals?.map(({id:t,...o})=>jsxRuntime.jsx(Ws,{...o},t)),e.form&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e.form.authorization&&jsxRuntime.jsx(Te,{onClick:e.form.authorization.onClick,children:e.form.authorization.label}),jsxRuntime.jsx(Ws,{...e.form},e.form.id)]}),e.unsupported&&jsxRuntime.jsxs("div",{role:"status",children:[jsxRuntime.jsx(lp,{status:"running",active:e.unsupported.label,rows:[]}),jsxRuntime.jsx(Te,{disabled:e.unsupported.disabled,onClick:e.unsupported.onStop,children:e.unsupported.stopLabel})]})]})}a(Ew,"AgentConversationInteractions");function Iw({panel:e,files:t,error:o}){return jsxRuntime.jsx(ni,{...e,footer:o?jsxRuntime.jsx(tu,{message:o}):void 0,children:jsxRuntime.jsx(ri,{...t})})}a(Iw,"AgentConversationArtifactList");function Dw({data:e}){return jsxRuntime.jsx(Iw,{...e.useData()})}a(Dw,"ArtifactBinding");function Lw(){let e=agentUi.useAgentConversationData();return jsxRuntime.jsx(Dw,{data:e.artifacts})}a(Lw,"AgentConversationArtifacts");function zw({data:e,canvas:t,markdown:o,onMarkdownSourceSelected:n}){let r=e.useData(),i=a(c=>{let u=r.workspace.artifacts.find(p=>p.id===c),m=u&&r.contents.find(p=>p.id===u.id);return u?.kind==="markdown"&&m?.kind==="artifact"?m.document?.source??null:null},"sourceFor"),s=i(r.workspace.activeArtifactId),l=JSON.stringify(s),d=he.useRef(n);return d.current=n,he.useEffect(()=>{d.current&&Promise.resolve(d.current(s)).catch(()=>{});},[l]),jsxRuntime.jsx(Ic,{conversation:r.conversation,workspace:{...r.workspace,density:"compact",tabBar:"flush",onIntent:a(c=>{c.type==="select"&&n&&Promise.resolve(n(i(c.artifactId))).catch(()=>{}),r.workspace.onIntent?.(c);},"onIntent"),renderArtifact:a(c=>{if(c.id==="agent-session-canvas")return jsxRuntime.jsx(is,{children:t});let u=r.contents.find(m=>m.id===c.id);return u?u.kind==="artifact"&&u.document&&o?jsxRuntime.jsx(_s.Provider,{value:u.document,children:o},u.id):u.kind==="data"?jsxRuntime.jsx(Ow,{data:u.data},u.id):jsxRuntime.jsx(Hw,{data:u.data},u.id):null},"renderArtifact")}})}a(zw,"WorkspaceBinding");function Ow({data:e}){return jsxRuntime.jsx(Iu,{...e.useData()})}a(Ow,"LinkedBinding");function Hw({data:e}){return jsxRuntime.jsx(pr,{...e.useData()})}a(Hw,"PreviewBinding");function Ww({canvas:e,markdown:t,onMarkdownSourceSelected:o}){let n=agentUi.useAgentConversationData();return jsxRuntime.jsx(zw,{data:n.workspace,canvas:n.canvasOpen?e:void 0,markdown:t,onMarkdownSourceSelected:o})}a(Ww,"AgentConversationWorkspace");function Fw({data:e}){return jsxRuntime.jsx(Lu,{...e.useData()})}a(Fw,"CanvasBinding");function _w(){let{canvas:e}=agentUi.useAgentConversationData();return e?jsxRuntime.jsx(Fw,{data:e},e.key):null}a(_w,"AgentConversationCanvas");function Uw({data:e}){return jsxRuntime.jsx(Ms,{...e.useData()})}a(Uw,"CollectionBinding");function Vw(){let{collection:e}=agentUi.useAgentConversationData();return e?jsxRuntime.jsx(Uw,{data:e}):null}a(Vw,"AgentConversationCollection");function GE({canvas:e}){return jsxRuntime.jsx(ww,{preview:jsxRuntime.jsx(Ww,{canvas:e??jsxRuntime.jsx(_w,{})}),overlays:jsxRuntime.jsx(Vw,{}),children:jsxRuntime.jsx(Cw,{header:jsxRuntime.jsx($w,{}),prompt:jsxRuntime.jsx(Pw,{}),questions:jsxRuntime.jsx(Mw,{}),progress:jsxRuntime.jsx(Aw,{}),notice:jsxRuntime.jsx(Nw,{}),interactions:jsxRuntime.jsx(Ew,{}),pending:jsxRuntime.jsx(Bw,{}),artifacts:jsxRuntime.jsx(Lw,{})})})}a(GE,"AgentConversationDefaultView");
|
|
268
268
|
|
|
269
269
|
exports.AgentArtifactLayout = _i;
|
|
270
270
|
exports.AgentCanvasView = Lu;
|
|
271
|
-
exports.AgentConversationAnchor =
|
|
272
|
-
exports.AgentConversationArtifactList =
|
|
273
|
-
exports.AgentConversationArtifacts =
|
|
274
|
-
exports.AgentConversationCanvas =
|
|
275
|
-
exports.AgentConversationCollection =
|
|
276
|
-
exports.AgentConversationDataProvider =
|
|
277
|
-
exports.AgentConversationDefaultView =
|
|
278
|
-
exports.AgentConversationHeader =
|
|
279
|
-
exports.AgentConversationInteractions =
|
|
280
|
-
exports.AgentConversationLayout =
|
|
281
|
-
exports.AgentConversationMarkdownDocument =
|
|
282
|
-
exports.AgentConversationNotice =
|
|
283
|
-
exports.AgentConversationPending =
|
|
271
|
+
exports.AgentConversationAnchor = av;
|
|
272
|
+
exports.AgentConversationArtifactList = Iw;
|
|
273
|
+
exports.AgentConversationArtifacts = Lw;
|
|
274
|
+
exports.AgentConversationCanvas = _w;
|
|
275
|
+
exports.AgentConversationCollection = Vw;
|
|
276
|
+
exports.AgentConversationDataProvider = lk;
|
|
277
|
+
exports.AgentConversationDefaultView = GE;
|
|
278
|
+
exports.AgentConversationHeader = $w;
|
|
279
|
+
exports.AgentConversationInteractions = Ew;
|
|
280
|
+
exports.AgentConversationLayout = ww;
|
|
281
|
+
exports.AgentConversationMarkdownDocument = bE;
|
|
282
|
+
exports.AgentConversationNotice = Nw;
|
|
283
|
+
exports.AgentConversationPending = Bw;
|
|
284
284
|
exports.AgentConversationPreview = is;
|
|
285
|
-
exports.AgentConversationProgress =
|
|
286
|
-
exports.AgentConversationPrompt =
|
|
287
|
-
exports.AgentConversationPromptMenu =
|
|
288
|
-
exports.AgentConversationQuestions =
|
|
289
|
-
exports.AgentConversationRow =
|
|
290
|
-
exports.AgentConversationSurface =
|
|
291
|
-
exports.AgentConversationTranscript =
|
|
292
|
-
exports.AgentConversationWorkspace =
|
|
285
|
+
exports.AgentConversationProgress = Aw;
|
|
286
|
+
exports.AgentConversationPrompt = Pw;
|
|
287
|
+
exports.AgentConversationPromptMenu = jE;
|
|
288
|
+
exports.AgentConversationQuestions = Mw;
|
|
289
|
+
exports.AgentConversationRow = Tw;
|
|
290
|
+
exports.AgentConversationSurface = SB;
|
|
291
|
+
exports.AgentConversationTranscript = Cw;
|
|
292
|
+
exports.AgentConversationWorkspace = Ww;
|
|
293
293
|
exports.AgentDataPanel = Iu;
|
|
294
294
|
exports.AgentFeedback = tu;
|
|
295
295
|
exports.AgentFileCard = Dc;
|
|
296
296
|
exports.AgentFileList = ri;
|
|
297
297
|
exports.AgentImageCard = Wd;
|
|
298
|
-
exports.AgentInteractionFallback =
|
|
298
|
+
exports.AgentInteractionFallback = UR;
|
|
299
299
|
exports.AgentMessageContent = _c;
|
|
300
300
|
exports.AgentPreviewWorkspace = Ic;
|
|
301
301
|
exports.AgentProcessDetail = Jc;
|
|
@@ -305,9 +305,9 @@ exports.AgentQuestionState = Ra;
|
|
|
305
305
|
exports.AgentReportView = Hc;
|
|
306
306
|
exports.AgentSummaryPanel = ni;
|
|
307
307
|
exports.AgentTimelineContent = Uu;
|
|
308
|
-
exports.ArtifactPreview =
|
|
308
|
+
exports.ArtifactPreview = pr;
|
|
309
309
|
exports.MarkdownArtifactContext = _s;
|
|
310
|
-
exports.MarkdownDocumentWorkspace =
|
|
310
|
+
exports.MarkdownDocumentWorkspace = mp;
|
|
311
311
|
exports.calculatePptxRenderLayout = Fi;
|
|
312
312
|
exports.createArtifactPresentation = rc;
|
|
313
313
|
exports.decodeArtifactDocument = oc;
|
|
@@ -316,7 +316,7 @@ exports.renderPptxSlide = tc;
|
|
|
316
316
|
exports.repairGeneratedPptx = Hi;
|
|
317
317
|
exports.resolveArtifactPreviewFormat = ia;
|
|
318
318
|
exports.sanitizePptxSource = ec;
|
|
319
|
-
exports.useAgentConversationData =
|
|
320
|
-
exports.useAgentMarkdownResources =
|
|
319
|
+
exports.useAgentConversationData = TB;
|
|
320
|
+
exports.useAgentMarkdownResources = Oo;
|
|
321
321
|
//# sourceMappingURL=index.js.map
|
|
322
322
|
//# sourceMappingURL=index.js.map
|