sparkdesign 0.4.8 → 0.4.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENT_COMPONENT_LIBRARY_QUICKREF.md +117 -0
- package/AI_README.md +7 -2
- package/README.md +4 -1
- package/cli/registry/AGENTS.md +1 -1
- package/cli/registry/agent-manifest.json +4040 -67
- package/cli/registry/basic/accordion.tsx +79 -0
- package/cli/registry/basic/badge.tsx +49 -0
- package/cli/registry/basic/button.tsx +19 -14
- package/cli/registry/basic/calendar.tsx +16 -16
- package/cli/registry/basic/collapsible-card.tsx +10 -1
- package/cli/registry/basic/combobox.tsx +11 -2
- package/cli/registry/basic/date-picker.tsx +3 -2
- package/cli/registry/basic/ellipsis-text.tsx +151 -0
- package/cli/registry/basic/form.tsx +186 -0
- package/cli/registry/basic/icon-button.tsx +12 -4
- package/cli/registry/basic/popover.tsx +19 -2
- package/cli/registry/basic/rating.tsx +161 -0
- package/cli/registry/basic/sidebar.tsx +665 -0
- package/cli/registry/basic/sonner.tsx +10 -10
- package/cli/registry/basic/stepper.tsx +163 -0
- package/cli/registry/basic/timeline.tsx +129 -0
- package/cli/registry/chat/chat-input/compound.tsx +1 -0
- package/cli/registry/chat/permission-card.tsx +1 -1
- package/cli/registry/chat/user-question/compound.tsx +2 -0
- package/cli/registry/meta.json +171 -13
- package/dist/registry/basic/accordion.d.ts +15 -0
- package/dist/registry/basic/badge.d.ts +23 -0
- package/dist/registry/basic/calendar.d.ts +1 -1
- package/dist/registry/basic/combobox.d.ts +2 -1
- package/dist/registry/basic/date-picker.d.ts +2 -2
- package/dist/registry/basic/ellipsis-text.d.ts +45 -0
- package/dist/registry/basic/form.d.ts +23 -0
- package/dist/registry/basic/icon-button.d.ts +15 -2
- package/dist/registry/basic/item.d.ts +1 -1
- package/dist/registry/basic/popover.d.ts +2 -0
- package/dist/registry/basic/rating.d.ts +31 -0
- package/dist/registry/basic/sidebar.d.ts +72 -0
- package/dist/registry/basic/stepper.d.ts +36 -0
- package/dist/registry/basic/tag.d.ts +1 -1
- package/dist/registry/basic/timeline.d.ts +34 -0
- package/dist/spark-design.cjs.js +27 -30
- package/dist/spark-design.es.js +6398 -5130
- package/dist/sparkdesign.css +1 -1
- package/dist/src/components/basic/Accordion/index.d.ts +13 -0
- package/dist/src/components/basic/Badge/index.d.ts +13 -0
- package/dist/src/components/basic/EllipsisText/index.d.ts +4 -36
- package/dist/src/components/basic/Form/index.d.ts +12 -0
- package/dist/src/components/basic/Rating/index.d.ts +13 -0
- package/dist/src/components/basic/Sidebar/index.d.ts +13 -0
- package/dist/src/components/basic/Stepper/index.d.ts +13 -0
- package/dist/src/components/basic/Timeline/index.d.ts +13 -0
- package/dist/src/components/index.d.ts +12 -4
- package/docs/agent/component-selection.md +104 -4
- package/docs/agent/prompt-recipes.md +167 -0
- package/docs/guides/agent-usage.md +213 -0
- package/docs/guides/system-operating-model.md +148 -0
- package/package.json +20 -3
- package/registry/agent-manifest.json +4040 -67
- package/cli/registry/basic/sheet.tsx +0 -18
- package/cli/registry/chat/user-question/UserQuestionCard.tsx +0 -198
- package/cli/registry/chat/user-question/UserQuestionFooter.tsx +0 -66
- package/cli/registry/chat/user-question/UserQuestionHeader.tsx +0 -64
- package/cli/registry/chat/user-question/useUserQuestionState.ts +0 -165
- package/dist/registry/basic/sheet.d.ts +0 -13
- package/dist/registry/chat/user-question/UserQuestionCard.d.ts +0 -36
- package/dist/registry/chat/user-question/UserQuestionFooter.d.ts +0 -24
- package/dist/registry/chat/user-question/UserQuestionHeader.d.ts +0 -26
- package/dist/registry/chat/user-question/useUserQuestionState.d.ts +0 -26
- package/dist/src/components/basic/CollapsibleSection/index.d.ts +0 -43
- package/dist/src/components/basic/Sheet/index.d.ts +0 -13
- package/dist/src/components/chat/Response/StreamingMarkdownBlock.d.ts +0 -12
package/dist/spark-design.cjs.js
CHANGED
|
@@ -1,41 +1,38 @@
|
|
|
1
|
-
"use strict";var Hc=Object.create;var cs=Object.defineProperty;var Vc=Object.getOwnPropertyDescriptor;var Gc=Object.getOwnPropertyNames;var qc=Object.getPrototypeOf,Wc=Object.prototype.hasOwnProperty;var Uc=(e,t,a,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Gc(t))!Wc.call(e,r)&&r!==a&&cs(e,r,{get:()=>t[r],enumerable:!(s=Vc(t,r))||s.enumerable});return e};var Qc=(e,t,a)=>(a=e!=null?Hc(qc(e)):{},Uc(t||!e||!e.__esModule?cs(a,"default",{value:e,enumerable:!0}):a,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),m=require("react"),H=require("framer-motion"),Yc=require("@radix-ui/react-tooltip"),_e=require("clsx"),Xc=require("@radix-ui/react-dropdown-menu"),A=require("class-variance-authority"),Zc=require("@radix-ui/react-alert-dialog"),Kc=require("@radix-ui/react-switch"),Zs=require("react-dom"),Ks=require("sonner"),V=require("radix-ui"),Jc=require("@radix-ui/react-select"),ed=require("@radix-ui/react-dialog"),td=require("@radix-ui/react-popover"),nd=require("@radix-ui/react-hover-card"),ad=require("@radix-ui/react-context-menu"),sd=require("react-markdown"),rd=require("remark-gfm"),od=require("remark-math"),id=require("rehype-katex"),ds=require("lottie-react"),Js=require("react-i18next"),ld=require("prism-react-renderer"),cd=require("@radix-ui/react-aspect-ratio"),dd=require("@radix-ui/react-avatar"),xe=require("lucide-react"),On=require("react-day-picker"),ud=require("embla-carousel-react"),md=require("recharts"),pd=require("@radix-ui/react-checkbox"),xd=require("@radix-ui/react-accordion"),fd=require("@radix-ui/react-collapsible"),Qe=require("cmdk"),hd=require("@radix-ui/react-label"),gd=require("@radix-ui/react-separator"),er=require("input-otp"),yd=require("@radix-ui/react-progress"),bd=require("@radix-ui/react-radio-group"),Un=require("react-resizable-panels"),vd=require("@radix-ui/react-slider"),wd=require("@radix-ui/react-tabs"),kd=require("@radix-ui/react-toggle"),jd=require("@radix-ui/react-toggle-group");function se(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,s.get?s:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const y=se(m),at=se(Yc),X=se(Xc),fe=se(Zc),us=se(Kc),ie=se(Jc),Z=se(ed),st=se(td),yt=se(nd),K=se(ad),Nd=se(cd),ct=se(dd),Qn=se(md),En=se(pd),bt=se(xd),nn=se(fd),tr=se(hd),nr=se(gd),ms=se(yd),Fn=se(bd),Ot=se(vd),Ye=se(wd),Cd=se(kd),$n=se(jd),Sd=(e,t)=>{const a=new Array(e.length+t.length);for(let s=0;s<e.length;s++)a[s]=e[s];for(let s=0;s<t.length;s++)a[e.length+s]=t[s];return a},Id=(e,t)=>({classGroupId:e,validator:t}),ar=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a}),Ut="-",ps=[],Rd="arbitrary..",Td=e=>{const t=Pd(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Md(i);const c=i.split(Ut),d=c[0]===""&&c.length>1?1:0;return sr(c,d,t)},getConflictingClassGroupIds:(i,c)=>{if(c){const d=s[i],u=a[i];return d?u?Sd(u,d):d:u||ps}return a[i]||ps}}},sr=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;const r=e[t],o=a.nextPart.get(r);if(o){const u=sr(e,t+1,o);if(u)return u}const i=a.validators;if(i===null)return;const c=t===0?e.join(Ut):e.slice(t).join(Ut),d=i.length;for(let u=0;u<d;u++){const p=i[u];if(p.validator(c))return p.classGroupId}},Md=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),a=t.indexOf(":"),s=t.slice(0,a);return s?Rd+s:void 0})(),Pd=e=>{const{theme:t,classGroups:a}=e;return zd(a,t)},zd=(e,t)=>{const a=ar();for(const s in e){const r=e[s];Yn(r,a,s,t)}return a},Yn=(e,t,a,s)=>{const r=e.length;for(let o=0;o<r;o++){const i=e[o];Ld(i,t,a,s)}},Ld=(e,t,a,s)=>{if(typeof e=="string"){Dd(e,t,a);return}if(typeof e=="function"){Ad(e,t,a,s);return}_d(e,t,a,s)},Dd=(e,t,a)=>{const s=e===""?t:rr(t,e);s.classGroupId=a},Ad=(e,t,a,s)=>{if(Od(e)){Yn(e(s),t,a,s);return}t.validators===null&&(t.validators=[]),t.validators.push(Id(a,e))},_d=(e,t,a,s)=>{const r=Object.entries(e),o=r.length;for(let i=0;i<o;i++){const[c,d]=r[i];Yn(d,rr(t,c),a,s)}},rr=(e,t)=>{let a=e;const s=t.split(Ut),r=s.length;for(let o=0;o<r;o++){const i=s[o];let c=a.nextPart.get(i);c||(c=ar(),a.nextPart.set(i,c)),a=c}return a},Od=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Ed=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),s=Object.create(null);const r=(o,i)=>{a[o]=i,t++,t>e&&(t=0,s=a,a=Object.create(null))};return{get(o){let i=a[o];if(i!==void 0)return i;if((i=s[o])!==void 0)return r(o,i),i},set(o,i){o in a?a[o]=i:r(o,i)}}},Bn="!",xs=":",Fd=[],fs=(e,t,a,s,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:s,isExternal:r}),$d=e=>{const{prefix:t,experimentalParseClassName:a}=e;let s=r=>{const o=[];let i=0,c=0,d=0,u;const p=r.length;for(let b=0;b<p;b++){const h=r[b];if(i===0&&c===0){if(h===xs){o.push(r.slice(d,b)),d=b+1;continue}if(h==="/"){u=b;continue}}h==="["?i++:h==="]"?i--:h==="("?c++:h===")"&&c--}const x=o.length===0?r:r.slice(d);let g=x,v=!1;x.endsWith(Bn)?(g=x.slice(0,-1),v=!0):x.startsWith(Bn)&&(g=x.slice(1),v=!0);const f=u&&u>d?u-d:void 0;return fs(o,v,g,f)};if(t){const r=t+xs,o=s;s=i=>i.startsWith(r)?o(i.slice(r.length)):fs(Fd,!1,i,void 0,!0)}if(a){const r=s;s=o=>a({className:o,parseClassName:r})}return s},Bd=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((a,s)=>{t.set(a,1e6+s)}),a=>{const s=[];let r=[];for(let o=0;o<a.length;o++){const i=a[o],c=i[0]==="[",d=t.has(i);c||d?(r.length>0&&(r.sort(),s.push(...r),r=[]),s.push(i)):r.push(i)}return r.length>0&&(r.sort(),s.push(...r)),s}},Hd=e=>({cache:Ed(e.cacheSize),parseClassName:$d(e),sortModifiers:Bd(e),...Td(e)}),Vd=/\s+/,Gd=(e,t)=>{const{parseClassName:a,getClassGroupId:s,getConflictingClassGroupIds:r,sortModifiers:o}=t,i=[],c=e.trim().split(Vd);let d="";for(let u=c.length-1;u>=0;u-=1){const p=c[u],{isExternal:x,modifiers:g,hasImportantModifier:v,baseClassName:f,maybePostfixModifierPosition:b}=a(p);if(x){d=p+(d.length>0?" "+d:d);continue}let h=!!b,w=s(h?f.substring(0,b):f);if(!w){if(!h){d=p+(d.length>0?" "+d:d);continue}if(w=s(f),!w){d=p+(d.length>0?" "+d:d);continue}h=!1}const k=g.length===0?"":g.length===1?g[0]:o(g).join(":"),j=v?k+Bn:k,I=j+w;if(i.indexOf(I)>-1)continue;i.push(I);const C=r(w,h);for(let L=0;L<C.length;++L){const z=C[L];i.push(j+z)}d=p+(d.length>0?" "+d:d)}return d},qd=(...e)=>{let t=0,a,s,r="";for(;t<e.length;)(a=e[t++])&&(s=or(a))&&(r&&(r+=" "),r+=s);return r},or=e=>{if(typeof e=="string")return e;let t,a="";for(let s=0;s<e.length;s++)e[s]&&(t=or(e[s]))&&(a&&(a+=" "),a+=t);return a},Wd=(e,...t)=>{let a,s,r,o;const i=d=>{const u=t.reduce((p,x)=>x(p),e());return a=Hd(u),s=a.cache.get,r=a.cache.set,o=c,c(d)},c=d=>{const u=s(d);if(u)return u;const p=Gd(d,a);return r(d,p),p};return o=i,(...d)=>o(qd(...d))},Ud=[],de=e=>{const t=a=>a[e]||Ud;return t.isThemeGetter=!0,t},ir=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,lr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Qd=/^\d+\/\d+$/,Yd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Xd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Zd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Kd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Jd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,tt=e=>Qd.test(e),E=e=>!!e&&!Number.isNaN(Number(e)),De=e=>!!e&&Number.isInteger(Number(e)),zn=e=>e.endsWith("%")&&E(e.slice(0,-1)),Me=e=>Yd.test(e),cr=()=>!0,eu=e=>Xd.test(e)&&!Zd.test(e),Xn=()=>!1,tu=e=>Kd.test(e),nu=e=>Jd.test(e),au=e=>!T(e)&&!M(e),su=e=>Fe(e,mr,Xn),T=e=>ir.test(e),Ve=e=>Fe(e,pr,eu),hs=e=>Fe(e,mu,E),ru=e=>Fe(e,fr,cr),ou=e=>Fe(e,xr,Xn),gs=e=>Fe(e,dr,Xn),iu=e=>Fe(e,ur,nu),Et=e=>Fe(e,hr,tu),M=e=>lr.test(e),mt=e=>Xe(e,pr),lu=e=>Xe(e,xr),ys=e=>Xe(e,dr),cu=e=>Xe(e,mr),du=e=>Xe(e,ur),Ft=e=>Xe(e,hr,!0),uu=e=>Xe(e,fr,!0),Fe=(e,t,a)=>{const s=ir.exec(e);return s?s[1]?t(s[1]):a(s[2]):!1},Xe=(e,t,a=!1)=>{const s=lr.exec(e);return s?s[1]?t(s[1]):a:!1},dr=e=>e==="position"||e==="percentage",ur=e=>e==="image"||e==="url",mr=e=>e==="length"||e==="size"||e==="bg-size",pr=e=>e==="length",mu=e=>e==="number",xr=e=>e==="family-name",fr=e=>e==="number"||e==="weight",hr=e=>e==="shadow",pu=()=>{const e=de("color"),t=de("font"),a=de("text"),s=de("font-weight"),r=de("tracking"),o=de("leading"),i=de("breakpoint"),c=de("container"),d=de("spacing"),u=de("radius"),p=de("shadow"),x=de("inset-shadow"),g=de("text-shadow"),v=de("drop-shadow"),f=de("blur"),b=de("perspective"),h=de("aspect"),w=de("ease"),k=de("animate"),j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...I(),M,T],L=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto","contain","none"],S=()=>[M,T,d],O=()=>[tt,"full","auto",...S()],re=()=>[De,"none","subgrid",M,T],_=()=>["auto",{span:["full",De,M,T]},De,M,T],U=()=>[De,"auto",M,T],le=()=>["auto","min","max","fr",M,T],J=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],G=()=>["start","end","center","stretch","center-safe","end-safe"],ae=()=>["auto",...S()],ce=()=>[tt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],R=()=>[e,M,T],$=()=>[...I(),ys,gs,{position:[M,T]}],ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],me=()=>["auto","cover","contain",cu,su,{size:[M,T]}],Q=()=>[zn,mt,Ve],Y=()=>["","none","full",u,M,T],pe=()=>["",E,mt,Ve],je=()=>["solid","dashed","dotted","double"],Je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],oe=()=>[E,zn,ys,gs],et=()=>["","none",f,M,T],ze=()=>["none",E,M,T],Le=()=>["none",E,M,T],P=()=>[E,M,T],D=()=>[tt,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Me],breakpoint:[Me],color:[cr],container:[Me],"drop-shadow":[Me],ease:["in","out","in-out"],font:[au],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Me],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Me],shadow:[Me],spacing:["px",E],text:[Me],"text-shadow":[Me],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",tt,T,M,h]}],container:["container"],columns:[{columns:[E,T,M,c]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:C()}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:O()}],"inset-x":[{"inset-x":O()}],"inset-y":[{"inset-y":O()}],start:[{start:O()}],end:[{end:O()}],top:[{top:O()}],right:[{right:O()}],bottom:[{bottom:O()}],left:[{left:O()}],visibility:["visible","invisible","collapse"],z:[{z:[De,"auto",M,T]}],basis:[{basis:[tt,"full","auto",c,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[E,tt,"auto","initial","none",T]}],grow:[{grow:["",E,M,T]}],shrink:[{shrink:["",E,M,T]}],order:[{order:[De,"first","last","none",M,T]}],"grid-cols":[{"grid-cols":re()}],"col-start-end":[{col:_()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":re()}],"row-start-end":[{row:_()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...J(),"normal"]}],"justify-items":[{"justify-items":[...G(),"normal"]}],"justify-self":[{"justify-self":["auto",...G()]}],"align-content":[{content:["normal",...J()]}],"align-items":[{items:[...G(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...G(),{baseline:["","last"]}]}],"place-content":[{"place-content":J()}],"place-items":[{"place-items":[...G(),"baseline"]}],"place-self":[{"place-self":["auto",...G()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:ae()}],mx:[{mx:ae()}],my:[{my:ae()}],ms:[{ms:ae()}],me:[{me:ae()}],mt:[{mt:ae()}],mr:[{mr:ae()}],mb:[{mb:ae()}],ml:[{ml:ae()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:ce()}],w:[{w:[c,"screen",...ce()]}],"min-w":[{"min-w":[c,"screen","none",...ce()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[i]},...ce()]}],h:[{h:["screen","lh",...ce()]}],"min-h":[{"min-h":["screen","lh","none",...ce()]}],"max-h":[{"max-h":["screen","lh",...ce()]}],"font-size":[{text:["base",a,mt,Ve]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,uu,ru]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",zn,T]}],"font-family":[{font:[lu,ou,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,M,T]}],"line-clamp":[{"line-clamp":[E,"none",M,hs]}],leading:[{leading:[o,...S()]}],"list-image":[{"list-image":["none",M,T]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",M,T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...je(),"wavy"]}],"text-decoration-thickness":[{decoration:[E,"from-font","auto",M,Ve]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[E,"auto",M,T]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M,T]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",M,T]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:$()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:me()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},De,M,T],radial:["",M,T],conic:[De,M,T]},du,iu]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:Q()}],"gradient-via-pos":[{via:Q()}],"gradient-to-pos":[{to:Q()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:Y()}],"rounded-s":[{"rounded-s":Y()}],"rounded-e":[{"rounded-e":Y()}],"rounded-t":[{"rounded-t":Y()}],"rounded-r":[{"rounded-r":Y()}],"rounded-b":[{"rounded-b":Y()}],"rounded-l":[{"rounded-l":Y()}],"rounded-ss":[{"rounded-ss":Y()}],"rounded-se":[{"rounded-se":Y()}],"rounded-ee":[{"rounded-ee":Y()}],"rounded-es":[{"rounded-es":Y()}],"rounded-tl":[{"rounded-tl":Y()}],"rounded-tr":[{"rounded-tr":Y()}],"rounded-br":[{"rounded-br":Y()}],"rounded-bl":[{"rounded-bl":Y()}],"border-w":[{border:pe()}],"border-w-x":[{"border-x":pe()}],"border-w-y":[{"border-y":pe()}],"border-w-s":[{"border-s":pe()}],"border-w-e":[{"border-e":pe()}],"border-w-t":[{"border-t":pe()}],"border-w-r":[{"border-r":pe()}],"border-w-b":[{"border-b":pe()}],"border-w-l":[{"border-l":pe()}],"divide-x":[{"divide-x":pe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":pe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...je(),"hidden","none"]}],"divide-style":[{divide:[...je(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...je(),"none","hidden"]}],"outline-offset":[{"outline-offset":[E,M,T]}],"outline-w":[{outline:["",E,mt,Ve]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",p,Ft,Et]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",x,Ft,Et]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:pe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[E,Ve]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":pe()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",g,Ft,Et]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[E,M,T]}],"mix-blend":[{"mix-blend":[...Je(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Je()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[E]}],"mask-image-linear-from-pos":[{"mask-linear-from":oe()}],"mask-image-linear-to-pos":[{"mask-linear-to":oe()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":oe()}],"mask-image-t-to-pos":[{"mask-t-to":oe()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":oe()}],"mask-image-r-to-pos":[{"mask-r-to":oe()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":oe()}],"mask-image-b-to-pos":[{"mask-b-to":oe()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":oe()}],"mask-image-l-to-pos":[{"mask-l-to":oe()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":oe()}],"mask-image-x-to-pos":[{"mask-x-to":oe()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":oe()}],"mask-image-y-to-pos":[{"mask-y-to":oe()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[M,T]}],"mask-image-radial-from-pos":[{"mask-radial-from":oe()}],"mask-image-radial-to-pos":[{"mask-radial-to":oe()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":I()}],"mask-image-conic-pos":[{"mask-conic":[E]}],"mask-image-conic-from-pos":[{"mask-conic-from":oe()}],"mask-image-conic-to-pos":[{"mask-conic-to":oe()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:$()}],"mask-repeat":[{mask:ee()}],"mask-size":[{mask:me()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",M,T]}],filter:[{filter:["","none",M,T]}],blur:[{blur:et()}],brightness:[{brightness:[E,M,T]}],contrast:[{contrast:[E,M,T]}],"drop-shadow":[{"drop-shadow":["","none",v,Ft,Et]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",E,M,T]}],"hue-rotate":[{"hue-rotate":[E,M,T]}],invert:[{invert:["",E,M,T]}],saturate:[{saturate:[E,M,T]}],sepia:[{sepia:["",E,M,T]}],"backdrop-filter":[{"backdrop-filter":["","none",M,T]}],"backdrop-blur":[{"backdrop-blur":et()}],"backdrop-brightness":[{"backdrop-brightness":[E,M,T]}],"backdrop-contrast":[{"backdrop-contrast":[E,M,T]}],"backdrop-grayscale":[{"backdrop-grayscale":["",E,M,T]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[E,M,T]}],"backdrop-invert":[{"backdrop-invert":["",E,M,T]}],"backdrop-opacity":[{"backdrop-opacity":[E,M,T]}],"backdrop-saturate":[{"backdrop-saturate":[E,M,T]}],"backdrop-sepia":[{"backdrop-sepia":["",E,M,T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",M,T]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[E,"initial",M,T]}],ease:[{ease:["linear","initial",w,M,T]}],delay:[{delay:[E,M,T]}],animate:[{animate:["none",k,M,T]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,M,T]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:ze()}],"rotate-x":[{"rotate-x":ze()}],"rotate-y":[{"rotate-y":ze()}],"rotate-z":[{"rotate-z":ze()}],scale:[{scale:Le()}],"scale-x":[{"scale-x":Le()}],"scale-y":[{"scale-y":Le()}],"scale-z":[{"scale-z":Le()}],"scale-3d":["scale-3d"],skew:[{skew:P()}],"skew-x":[{"skew-x":P()}],"skew-y":[{"skew-y":P()}],transform:[{transform:[M,T,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:D()}],"translate-x":[{"translate-x":D()}],"translate-y":[{"translate-y":D()}],"translate-z":[{"translate-z":D()}],"translate-none":["translate-none"],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",M,T]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",M,T]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[E,mt,Ve,hs]}],stroke:[{stroke:["none",...R()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},xu=Wd(pu);function l(...e){return xu(_e.clsx(e))}const fu="0 0 24 24",hu="1em";function F(e,t){const a=y.forwardRef(({className:s,size:r=hu,...o},i)=>n.jsx("svg",{ref:i,viewBox:fu,width:r,height:r,fill:"currentColor",className:s,xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,...o,children:n.jsx("path",{d:e})}));return a.displayName=t,a}F("M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z","ArrowDownLine");const Zn=F("M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z","ArrowUpLine"),dt=F("M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z","ArrowRightLine"),gu=F("M7.82843 10.9999H20V12.9999H7.82843L13.1924 18.3638L11.7782 19.778L4 11.9999L11.7782 4.22168L13.1924 5.63589L7.82843 10.9999Z","ArrowLeftLine"),be=F("M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z","CheckLine"),Re=F("M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z","CloseLine"),gr=F("M10.5859 12L2.79297 4.20706L4.20718 2.79285L12.0001 10.5857L19.793 2.79285L21.2072 4.20706L13.4143 12L21.2072 19.7928L19.793 21.2071L12.0001 13.4142L4.20718 21.2071L2.79297 19.7928L10.5859 12Z","CloseLargeLine"),yu=F("M24 12L18.3431 17.6569L16.9289 16.2426L21.1716 12L16.9289 7.75736L18.3431 6.34315L24 12ZM2.82843 12L7.07107 16.2426L5.65685 17.6569L0 12L5.65685 6.34315L7.07107 7.75736L2.82843 12ZM9.78845 21H7.66009L14.2116 3H16.3399L9.78845 21Z","CodeSSlashLine"),yr=F("M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z","EyeLine"),br=F("M11.9995 2C12.5518 2 12.9995 2.44772 12.9995 3V6C12.9995 6.55228 12.5518 7 11.9995 7C11.4472 7 10.9995 6.55228 10.9995 6V3C10.9995 2.44772 11.4472 2 11.9995 2ZM11.9995 17C12.5518 17 12.9995 17.4477 12.9995 18V21C12.9995 21.5523 12.5518 22 11.9995 22C11.4472 22 10.9995 21.5523 10.9995 21V18C10.9995 17.4477 11.4472 17 11.9995 17ZM20.6597 7C20.9359 7.47829 20.772 8.08988 20.2937 8.36602L17.6956 9.86602C17.2173 10.1422 16.6057 9.97829 16.3296 9.5C16.0535 9.02171 16.2173 8.41012 16.6956 8.13398L19.2937 6.63397C19.772 6.35783 20.3836 6.52171 20.6597 7ZM7.66935 14.5C7.94549 14.9783 7.78161 15.5899 7.30332 15.866L4.70525 17.366C4.22695 17.6422 3.61536 17.4783 3.33922 17C3.06308 16.5217 3.22695 15.9101 3.70525 15.634L6.30332 14.134C6.78161 13.8578 7.3932 14.0217 7.66935 14.5ZM20.6597 17C20.3836 17.4783 19.772 17.6422 19.2937 17.366L16.6956 15.866C16.2173 15.5899 16.0535 14.9783 16.3296 14.5C16.6057 14.0217 17.2173 13.8578 17.6956 14.134L20.2937 15.634C20.772 15.9101 20.9359 16.5217 20.6597 17ZM7.66935 9.5C7.3932 9.97829 6.78161 10.1422 6.30332 9.86602L3.70525 8.36602C3.22695 8.08988 3.06308 7.47829 3.33922 7C3.61536 6.52171 4.22695 6.35783 4.70525 6.63397L7.30332 8.13398C7.78161 8.41012 7.94549 9.02171 7.66935 9.5Z","LoaderLine"),bu=F("M1.946 9.315c-.946-.35-.946-1.09 0-1.436l18.108-6.732c.946-.35 1.704.21 1.573 1.236L20.1 21.894c-.117.932-.93 1.636 1.897 1.636.967 0 1.754-.704 1.636-1.636l-.527-4.18L10 12 20.073 7.264l-.527-4.18c-.117-.932.67-1.636 1.637-1.636.967 0 2.014.704 1.897 1.636L21.627 18.57c-.131 1.026-.627 1.586-1.573 1.236L1.946 9.315Z","SendPlaneLine"),vu=F("M6 6h12v12H6V6Zm2 2v8h8V8H8Z","StopLine"),wu=F("M12 3a3 3 0 0 1 3 3v6a3 3 0 0 1-6 0V6a3 3 0 0 1 3-3Zm0 14a5 5 0 0 0 5-5v-1a1 1 0 1 1 2 0v1a7 7 0 0 1-14 0v-1a1 1 0 1 1 2 0v1a5 5 0 0 0 5 5Z","MicLine"),vr=F("M3 3h8.828l2 2H21a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm2 2v12h14V7h-8.414l-2-2H5Z","FolderLine"),wr=F("M12.414 5H21a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h7.414l2 2Z","FolderFillLine"),Kn=F("M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm4 18H6V4h7v5h5v11z","FileLine"),kr=F("M12 2C6.477 2 2 6.477 2 12c0 1.5.328 2.932.917 4.215L1.5 21l4.785-1.417A9.966 9.966 0 0 0 12 22c5.523 0 10-4.477 10-10S17.523 2 12 2zm0 2a8 8 0 1 1 0 16 7.99 7.99 0 0 1-3.918-1.018l-.26-.15-2.683.795.795-2.683-.15-.26A7.99 7.99 0 0 1 4 12a8 8 0 0 1 8-8z","Chat3Line"),kt=F("M12 7a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V8a1 1 0 0 1 1-1zm0 10a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5z","WarningLine"),ve=F("M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z","ArrowDownSLine"),Jn=F("M14 2l.5 2.5L17 5l-2.5.5L14 8l-.5-2.5L11 5l2.5-.5L14 2zM6 12l1 4 4 1 1-4-4-1-1-4zm8-2l.5 2.5 2.5.5-2.5.5-.5 2.5-.5-2.5-2.5-.5 2.5-.5.5-2.5z","SparklingLine"),jr=F("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm1 2v5.586l3.707 3.707-1.414 1.414L11 11.414V6h2z","TimeLine"),an=F("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm3.536 5.536l-4.95 4.95-2.121-2.122-1.414 1.414 3.535 3.536 6.364-6.364-1.414-1.414z","CheckboxCircleLine"),Nr=F("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm3.536 2.464l-1.414 1.414L12 10.586 9.878 8.464 8.464 9.878 10.586 12l-2.122 2.121 1.414 1.415L12 13.414l2.121 2.122 1.415-1.414L13.414 12l2.122-2.121z","CloseCircleLine"),ea=F("M6 12c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z","MoreLine"),ku=F("M5.763 17H20V5H4v13.385L5.763 17zm.692 2L2 22.5V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6.455z","QuestionAnswerLine"),Cr=F("M7 14h10v2H7v-2zm0-4h10v2H7v-2zm0-4h10v2H7V6zm-4 12h2v2H3v-2zm0-4h2v2H3v-2zm0-4h2v2H3v-2zm0-4h2v2H3V6z","RequestChangesLine"),Sr=F("M3 5h2v2H3V5zm4 0h14v2H7V5zm-4 6h2v2H3v-2zm4 0h14v2H7v-2zm-4 6h2v2H3v-2zm4 0h14v2H7v-2z","CatalogLine"),Ir=F("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16z","CircleLine"),Rr=F("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm4 5v2H8V9h8z","IndeterminateCircleLine"),Tr=F("M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm4 10l-4-4v3H6v2h6v3l4-4z","ArrowRightCircleFillLine"),sn=F("M3 4h14v2H3V4zm0 4h14v2H3V8zm0 4h10v2H3v-2zm0 4h8v2H3v-2z","FileList2Line"),Mr=F("M13 10h5l-6 6-6-6h5V3h2v7zM4 19h16v2H4v-2z","DownloadLine"),Pr=F("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm1 5v6h-2V9h2zm0-4v2h-2V6h2z","QuestionnaireLine"),zr=F("M3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm2 2v12h14V5H5zm2 2h2v2H7V7zm4 0h6v2h-6V7zm-4 4h2v2H7v-2zm4 0h6v2h-6v-2z","TerminalBoxLine"),Lr=F("M10 6v2H5v11h11v-5h2v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6zm11-3v8h-2V6.413l-7.793 7.794-1.414-1.414L17.585 5H13V3h8z","ExternalLinkLine"),Dr=F("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm1 2.05v1.9c.93.13 1.8.44 2.57.9L14.5 7.2c-.55-.36-1.15-.65-1.78-.9L13 6.05zM6.05 11H4.1c.13.93.44 1.8.9 2.57L7.2 9.5c-.36-.55-.65-1.15-.9-1.78L6.05 11zm1.25 4.5L4.6 16.33c.77.57 1.64.88 2.57 1.01v1.9c.63-.25 1.23-.54 1.78-.9L7.3 15.5zm7.4 0c.55.36 1.15.65 1.78.9v1.9a8.1 8.1 0 0 1-2.57-.9L16.8 15.5l-1.25-1.25zM17.9 13h-1.95c-.25-.63-.54-1.23-.9-1.78L16.8 14.5c.57.77.88 1.64 1.01 2.57zm-5.4-5.4c-.36.55-.65 1.15-.9 1.78H6.05c.13-.93.44-1.8.9-2.57L9.5 7.2l1.25 1.25zm-.9 6.8l1.25 1.25c.77-.57 1.64-.88 2.57-1.01v1.95c-.63.25-1.23.54-1.78.9L9.5 16.8zm4.5-4.5l1.25 1.25L16.8 9.5c-.36-.55-.65-1.15-.9-1.78h1.95c.13.93.44 1.8.9 2.57z","GlobalLine"),Ar=F("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm3.536 2.464l-9.072 9.072a8 8 0 0 1 9.072-9.072zM8.464 17.536a8 8 0 0 1 9.072-9.072l-9.072 9.072z","Forbid2Line"),ju=A.cva("animate-spin",{variants:{size:{xs:"size-3",sm:"size-3.5",md:"size-4",lg:"size-5"}},defaultVariants:{size:"md"}}),rn=m.forwardRef(({className:e,size:t="md",...a},s)=>n.jsx("span",{ref:s,role:"status","aria-label":"Loading",...a,children:n.jsx(br,{className:l(ju({size:t}),e)})}));rn.displayName="Spinner";const vt=A.cva("inline-flex items-center justify-center gap-1.5 font-medium transition-[colors,transform] duration-200 active:scale-[0.98] focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer",{variants:{variant:{primary:"bg-primary text-text-on-primary hover:bg-primary-hover",secondary:"bg-bg-highlight text-text-on-primary hover:bg-bg-highlight-hover",tertiary:"bg-fill-secondary text-text hover:bg-fill",outline:"border border-border-tertiary bg-bg-container text-text hover:bg-fill-secondary",ghost:"bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text",text:"bg-transparent text-text-secondary hover:text-text",destructive:"bg-error text-text-on-primary hover:bg-error-hover"},size:{sm:"h-7 px-2 text-xs",md:"h-9 px-3 text-sm",lg:"h-11 px-4 text-base"},rounded:{square:"rounded",pill:"rounded-full"},textOnly:{true:"h-auto px-0 py-0.5",false:""}},compoundVariants:[{textOnly:!0,size:"sm",className:"text-xs"},{textOnly:!0,size:"md",className:"text-sm"},{textOnly:!0,size:"lg",className:"text-base"}],defaultVariants:{variant:"ghost",size:"md",rounded:"square",textOnly:!1}}),W=m.forwardRef(({variant:e="ghost",children:t,size:a="md",textButton:s=!1,prefixIcon:r,suffixIcon:o,rounded:i="square",disabled:c=!1,loading:d=!1,asChild:u=!1,className:p,...x},g)=>{const v=u?V.Slot.Root:"button",f=c||d;return n.jsxs(v,{ref:g,className:vt({variant:s?"text":e,size:a,rounded:i,textOnly:s,className:p}),disabled:f,"aria-busy":d||void 0,...x,children:[d?n.jsx(rn,{className:"shrink-0"}):r?n.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:r}):null,t,o&&n.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:o})]})});W.displayName="Button";const _r=A.cva("inline-flex isolate [&>*]:focus-visible:relative [&>*]:focus-visible:z-10",{variants:{orientation:{horizontal:"flex-row items-stretch [&>*:not(:first-child)]:-ml-px [&>*:not(:first-child)]:rounded-l-none [&>*:not(:last-child)]:rounded-r-none",vertical:"flex-col [&>*:not(:first-child)]:-mt-px [&>*:not(:first-child)]:rounded-t-none [&>*:not(:last-child)]:rounded-b-none"}},defaultVariants:{orientation:"horizontal"}}),Or=y.forwardRef(({className:e,orientation:t="horizontal",...a},s)=>n.jsx("div",{ref:s,role:"group","data-orientation":t??"horizontal",className:l(_r({orientation:t}),e),...a}));Or.displayName="ButtonGroup";const Er=y.forwardRef(({className:e,...t},a)=>n.jsx("div",{ref:a,className:l("inline-flex h-9 shrink-0 items-center gap-1.5 rounded bg-fill-secondary px-3 text-sm font-medium text-text select-none","[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",e),...t}));Er.displayName="ButtonGroupText";const Fr=y.forwardRef(({className:e,orientation:t="vertical",...a},s)=>n.jsx("div",{ref:s,role:"separator","aria-orientation":t,"data-orientation":t,className:l("shrink-0 self-stretch bg-border-tertiary",t==="vertical"?"w-px":"h-px w-full",e),...a}));Fr.displayName="ButtonGroupSeparator";const Nu=A.cva("flex-none shrink-0 inline-flex items-center justify-center box-border transition-[colors,transform] duration-200 active:scale-[0.98] focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer [&>*]:flex [&>*]:items-center [&>*]:justify-center [&>*]:size-full [&>*]:[&>svg]:block [&>*]:[&>svg]:leading-none",{variants:{variant:{primary:"bg-primary text-text-on-primary hover:bg-primary-hover",secondary:"bg-bg-highlight text-text-on-primary hover:bg-bg-highlight-hover",tertiary:"bg-fill-secondary text-text hover:bg-fill",ghost:"bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text",iconOnly:"bg-transparent text-text-secondary hover:text-text",destructive:"bg-error text-text-on-primary hover:bg-error-hover"},rounded:{square:"rounded",pill:"rounded-full"},size:{sm:"h-7 w-7 min-h-7 min-w-7 p-1.5",md:"h-9 w-9 min-h-9 min-w-9 p-1.5",lg:"h-11 w-11 min-h-11 min-w-11 p-2"}},defaultVariants:{variant:"secondary",size:"md",rounded:"square"}}),Ie=m.forwardRef(({variant:e="secondary",size:t="md",rounded:a="square",icon:s,disabled:r=!1,asChild:o=!1,className:i,...c},d)=>{const u=o?V.Slot.Root:"button";return n.jsx(u,{ref:d,className:l(Nu({variant:e,size:t,rounded:a}),i),disabled:r,...c,children:n.jsx("span",{className:"inline-flex shrink-0 size-full items-center justify-center",children:s})})});Ie.displayName="IconButton";const Ce={fast:.15,base:.2,slow:.3},Pe={standard:[.16,1,.3,1],emphasized:[.2,.8,.2,1],out:[0,0,.2,1]},$r={snappy:{type:"spring",stiffness:520,damping:34,mass:.7}},on={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:Ce.fast}},ta={initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:8},transition:{duration:Ce.base,ease:Pe.standard}},ut={initial:{opacity:0,scale:.96},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.96},transition:{duration:Ce.fast,ease:Pe.standard}},Br={initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:Ce.base,ease:Pe.emphasized}};function Cu(){return typeof window>"u"?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function Su(){if(typeof document>"u")return 1;const e=getComputedStyle(document.documentElement).getPropertyValue("--motion-multiplier").trim();return e?parseFloat(e):1}function ye(){if(typeof document>"u")return{};const e=document.documentElement,t={},a=e.getAttribute("data-theme"),s=e.getAttribute("data-style");return a&&(t["data-theme"]=a),s&&(t["data-style"]=s),t}const Iu=at.Provider,Ru=at.Root,Tu=at.Trigger,Hr=y.forwardRef(({className:e,sideOffset:t=8,children:a,dataStyle:s,dataTheme:r,...o},i)=>{const c=ye(),d=s!==void 0?{"data-style":s,"data-theme":r??c["data-theme"]??""}:c;return n.jsx(at.Portal,{children:n.jsx("div",{style:{display:"contents"},...d,children:n.jsx(at.Content,{ref:i,sideOffset:t,className:l("z-50 max-w-60 overflow-hidden rounded px-2 py-1 text-xs leading-5","bg-bg-highlight text-text-on-primary shadow-sm",e),...o,children:n.jsx(H.motion.div,{...ut,children:a})})})})});Hr.displayName=at.Content.displayName;function rt({content:e,children:t,side:a="top",contentClassName:s,dataStyle:r,dataTheme:o}){return n.jsx(Iu,{delayDuration:300,children:n.jsxs(Ru,{children:[n.jsx(Tu,{asChild:!0,children:t}),n.jsx(Hr,{side:a,className:s,dataStyle:r,dataTheme:o,children:e})]})})}rt.displayName="Tooltip";const Vr=m.createContext(null);function Gr(e){return typeof e=="object"&&"name"in e}function qr(e){return typeof e=="object"&&"name"in e}function Mu(e,t){return Gr(t)?`${e}-${t.name}`:t==="mint"?e:`${e}-${t}`}function Pu(e){return qr(e)?e.name:e}function zu(e,t){const a={};if(Gr(e)){const{tokens:s}=e;for(const[r,o]of Object.entries(s))if(o!==void 0){const i=r.startsWith("--")?r:`--${r}`;a[i]=o}}if(qr(t)){const{radius:s,spacing:r,fontSize:o}=t;s&&(s.sm&&(a["--radius-sm"]=s.sm),s.default&&(a["--radius-DEFAULT"]=s.default),s.md&&(a["--radius-md"]=s.md),s.lg&&(a["--radius-lg"]=s.lg),s.xl&&(a["--radius-xl"]=s.xl),s["2xl"]&&(a["--radius-2xl"]=s["2xl"]),s["3xl"]&&(a["--radius-3xl"]=s["3xl"])),r&&(r[3]&&(a["--spacing-3"]=r[3]),r[4]&&(a["--spacing-4"]=r[4]),r[9]&&(a["--spacing-9"]=r[9]),r[11]&&(a["--spacing-11"]=r[11])),o&&(o.sm&&(a["--font-size-sm"]=o.sm),o.lg&&(a["--font-size-lg"]=o.lg),o.xl&&(a["--font-size-xl"]=o.xl),o["2xl"]&&(a["--font-size-2xl"]=o["2xl"]),o["3xl"]&&(a["--font-size-3xl"]=o["3xl"]))}return a}function Lu({children:e,appearance:t="light",theme:a="mint",style:s="neutral"}){const r=m.useMemo(()=>Mu(t,a),[t,a]),o=m.useMemo(()=>Pu(s),[s]),i=m.useMemo(()=>zu(a,s),[a,s]),c=m.useMemo(()=>({appearance:t,themeConfig:a,styleConfig:s,dataTheme:r,dataStyle:o,theme:r,style:o}),[t,a,s,r,o]),d=Object.keys(i).length>0;return n.jsx(Vr.Provider,{value:c,children:n.jsx("div",{"data-theme":r,"data-style":o,style:d?i:void 0,children:e})})}function ue(){const e=m.useContext(Vr);return e||{appearance:"light",themeConfig:"mint",styleConfig:"neutral",dataTheme:"light",dataStyle:"neutral",theme:"light",style:"neutral"}}function na({placement:e,side:t=e??"top",...a}){const{style:s,theme:r}=ue();return n.jsx(rt,{side:t,dataStyle:s,dataTheme:r,...a})}na.displayName="Tooltip";function bs(e,t){e&&(typeof e=="function"?e(t):e.current=t)}const Wr=m.forwardRef(({children:e,lines:t=1,className:a="",placement:s="top",tooltipClassName:r="",tooltipContent:o,disabled:i=!1,style:c,as:d="span"},u)=>{const p=m.useRef(null),[x,g]=m.useState(!1),v=m.useCallback(()=>{const k=p.current;if(!k)return;const j=t===1?k.scrollWidth>k.clientWidth:k.scrollHeight>k.clientHeight;g(j)},[t]);m.useEffect(()=>{const k=requestAnimationFrame(()=>v()),j=p.current;if(!j)return()=>cancelAnimationFrame(k);const I=new ResizeObserver(()=>v());return I.observe(j),window.addEventListener("resize",v),()=>{cancelAnimationFrame(k),I.disconnect(),window.removeEventListener("resize",v)}},[v,e]);const f=t===1?{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",...c}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:t,WebkitBoxOrient:"vertical",...c},b=m.useCallback(k=>{bs(p,k),bs(u,k)},[u]),h=n.jsx(d,{ref:b,className:a,style:f,children:e});return x&&!i?n.jsx(na,{content:o??e,placement:s,contentClassName:_e.clsx(r),children:n.jsx("span",{ref:b,className:a,style:f,children:e})}):h});Wr.displayName="EllipsisText";const Du="flex flex-col gap-1",Au=A.cva("w-full flex flex-col gap-0.5 items-start p-2 text-sm rounded text-left transition-colors outline-none focus-visible:bg-fill-tertiary focus-visible:ring-0",{variants:{selected:{true:"",false:""},disabled:{true:"opacity-50 cursor-not-allowed",false:"cursor-pointer hover:bg-fill-tertiary"},dimmed:{true:"opacity-40",false:""}},defaultVariants:{selected:!1,disabled:!1,dimmed:!1}}),_u=A.cva("flex-shrink-0 w-5 h-5 rounded-full flex items-center justify-center text-xs font-mono font-medium transition-colors",{variants:{selected:{true:"bg-primary-active text-text-on-primary",false:"bg-fill-secondary text-text-tertiary"}},defaultVariants:{selected:!1}}),aa=m.forwardRef(({items:e,selectedIds:t=[],focusedId:a,onItemClick:s,showPrefix:r=!0,disabled:o=!1,className:i,...c},d)=>{const u=p=>String(p+1);return n.jsx("div",{ref:d,role:"listbox","aria-multiselectable":t.length>1,className:l(Du,i),...c,children:e.map((p,x)=>{const g=t.includes(p.id),v=a===p.id,f=o||p.disabled,h=t.length>0&&!g&&!f;return n.jsxs("button",{type:"button",role:"option","aria-selected":g,"aria-disabled":f,onClick:()=>{f||s?.(p,x)},disabled:f,className:l(Au({selected:g,disabled:f,dimmed:h}),v&&"bg-fill-tertiary"),children:[n.jsxs("div",{className:"flex items-center gap-3",children:[r&&n.jsx("div",{className:_u({selected:g}),children:u(x)}),n.jsx("span",{className:"font-medium text-text",children:p.label})]}),p.description&&n.jsx("div",{className:"ml-8 text-xs text-text-tertiary",children:p.description})]},p.id)})})});aa.displayName="OptionList";const We=X.Root,Ue=X.Trigger,Ou=X.Group,Eu=X.Portal,Ur=X.Sub,Fu=X.RadioGroup,Qr="min-w-32 overflow-hidden rounded-lg border border-border-tertiary bg-bg-container p-1 text-text shadow-lg z-50 outline-none focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:!outline-none focus-visible:!ring-0",Oe=y.forwardRef(({className:e,sideOffset:t=4,children:a,dataStyle:s,dataTheme:r,...o},i)=>{const c=ye(),d=s!==void 0?{"data-style":s,"data-theme":r??c["data-theme"]??""}:c;return n.jsx(X.Portal,{children:n.jsx("div",{style:{display:"contents"},...d,children:n.jsx(X.Content,{ref:i,sideOffset:t,className:l(Qr,e),...o,children:n.jsx(H.motion.div,{...ut,children:a})})})})});Oe.displayName=X.Content.displayName;const $u=A.cva("flex h-9 w-full cursor-pointer select-none items-center gap-2 rounded-sm px-3 text-sm outline-none focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:!outline-none hover:bg-fill-secondary focus:bg-fill-secondary data-[highlighted]:bg-fill-secondary data-[state=open]:bg-fill-secondary",{variants:{inset:{true:"pl-8 pr-3",false:""}},defaultVariants:{inset:!1}}),sa=y.forwardRef(({className:e,inset:t=!1,children:a,subTriggerIcon:s,...r},o)=>n.jsxs(X.SubTrigger,{ref:o,className:$u({inset:t,className:e}),...r,children:[a,n.jsx("span",{className:"ml-auto flex h-4 w-4 items-center justify-center",children:s??n.jsx(dt,{className:"h-4 w-4"})})]}));sa.displayName=X.SubTrigger.displayName;const ra=y.forwardRef(({className:e,sideOffset:t=-1,dataStyle:a,dataTheme:s,...r},o)=>{const i=ye(),c=a!==void 0?{"data-style":a,"data-theme":s??i["data-theme"]??""}:i;return n.jsx(X.Portal,{children:n.jsx("div",{style:{display:"contents"},...c,children:n.jsx(X.SubContent,{ref:o,sideOffset:t,className:l(Qr,e),...r})})})});ra.displayName=X.SubContent.displayName;const Bu=A.cva("relative flex h-9 w-full min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm px-3 text-sm outline-none focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:!outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50",{variants:{variant:{default:"hover:bg-fill-secondary focus:bg-fill-secondary focus:text-text data-[highlighted]:bg-fill-secondary data-[highlighted]:text-text",destructive:"text-error hover:bg-error-bg focus:bg-error-bg focus:text-error data-[highlighted]:bg-error-bg data-[highlighted]:text-error"},inset:{true:"pl-8 pr-3",false:""}},defaultVariants:{variant:"default",inset:!1}}),Se=y.forwardRef(({className:e,inset:t=!1,variant:a="default",...s},r)=>n.jsx(X.Item,{ref:r,className:Bu({variant:a,inset:t,className:e}),...s}));Se.displayName=X.Item.displayName;const Yr="relative flex h-9 w-full min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm pl-8 pr-3 text-sm outline-none transition-colors hover:bg-fill-secondary focus:bg-fill-secondary focus:text-text data-[highlighted]:bg-fill-secondary data-[highlighted]:text-text data-[disabled]:pointer-events-none data-[disabled]:opacity-50",Xr=y.forwardRef(({className:e,children:t,checked:a,checkIcon:s,...r},o)=>n.jsxs(X.CheckboxItem,{ref:o,className:l(Yr,e),checked:a,...r,children:[n.jsx("span",{className:"absolute left-2 top-1/2 flex h-3.5 w-3.5 -translate-y-1/2 items-center justify-center",children:n.jsx(X.ItemIndicator,{children:s??n.jsx(be,{className:"h-4 w-4"})})}),t]}));Xr.displayName=X.CheckboxItem.displayName;const Zr=y.forwardRef(({className:e,children:t,...a},s)=>n.jsxs(X.RadioItem,{ref:s,className:l(Yr,e),...a,children:[n.jsx("span",{className:"absolute left-2 top-1/2 flex h-3.5 w-3.5 -translate-y-1/2 items-center justify-center",children:n.jsx(X.ItemIndicator,{children:n.jsx("div",{className:"h-2 w-2 rounded-full bg-primary"})})}),t]}));Zr.displayName=X.RadioItem.displayName;const Hu=A.cva("flex h-9 items-center px-3 text-sm font-semibold text-text-secondary",{variants:{inset:{true:"pl-8 pr-3",false:""}},defaultVariants:{inset:!1}}),Kr=y.forwardRef(({className:e,inset:t=!1,...a},s)=>n.jsx(X.Label,{ref:s,className:Hu({inset:t,className:e}),...a}));Kr.displayName=X.Label.displayName;const Jr=y.forwardRef(({className:e,...t},a)=>n.jsx(X.Separator,{ref:a,className:l("my-1 mx-1 h-px bg-border-tertiary",e),...t}));Jr.displayName=X.Separator.displayName;const eo=({className:e,...t})=>n.jsx("span",{className:l("ml-auto text-xs tracking-widest text-text-tertiary",e),...t});eo.displayName="DropdownMenuShortcut";const to=m.createContext(null);function Vu({value:e,children:t}){return n.jsx(to.Provider,{value:e,children:t})}function jt(){return m.useContext(to)??{icons:{}}}function N(e,t){const{icons:a}=jt(),s=a[e];if(s)return n.jsx(s,{className:t,"aria-hidden":!0})}const no=y.forwardRef((e,t)=>{const{style:a,theme:s}=ue();return n.jsx(Oe,{ref:t,dataStyle:a,dataTheme:s,...e})});no.displayName="DropdownMenuContent";function Gu(e){const t=N("arrowRight","h-4 w-4 shrink-0"),a=e.subTriggerIcon??t;return n.jsx(sa,{...e,subTriggerIcon:a})}const ao=y.forwardRef((e,t)=>{const{style:a,theme:s}=ue();return n.jsx(ra,{ref:t,dataStyle:a,dataTheme:s,...e})});ao.displayName="DropdownMenuSubContent";const so=fe.Root,qu=fe.Trigger,ro=fe.Portal,oa=y.forwardRef(({className:e,...t},a)=>n.jsx(fe.Overlay,{ref:a,asChild:!0,...t,children:n.jsx(H.motion.div,{className:l("fixed inset-0 z-50 bg-bg-mask/60",e),...on})}));oa.displayName=fe.Overlay.displayName;const Wu=A.cva("font-sans fixed left-1/2 top-1/2 z-50 w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 rounded-xl border border-border bg-bg-base text-text shadow-lg p-6",{variants:{size:{default:"max-w-lg",sm:"max-w-sm"}},defaultVariants:{size:"default"}}),ia=y.forwardRef(({className:e,children:t,size:a="default",dataStyle:s,dataTheme:r,...o},i)=>{const c=ye(),d=s!==void 0?{"data-style":s,"data-theme":r??c["data-theme"]??""}:c;return n.jsx(ro,{children:n.jsxs("div",{style:{display:"contents"},...d,children:[n.jsx(oa,{}),n.jsx(fe.Content,{ref:i,asChild:!0,...o,children:n.jsx(H.motion.div,{className:l(Wu({size:a}),e),...ta,children:t})})]})})});ia.displayName=fe.Content.displayName;const la=y.forwardRef(({className:e,...t},a)=>n.jsx("div",{ref:a,className:l("flex flex-col gap-2",e),...t}));la.displayName="AlertDialogHeader";const ca=y.forwardRef(({className:e,...t},a)=>n.jsx("div",{ref:a,className:l("mt-6 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t}));ca.displayName="AlertDialogFooter";const da=y.forwardRef(({className:e,...t},a)=>n.jsx(fe.Title,{ref:a,className:l("font-sans text-base font-medium leading-6 text-text",e),...t}));da.displayName=fe.Title.displayName;const ua=y.forwardRef(({className:e,...t},a)=>n.jsx(fe.Description,{ref:a,className:l("text-sm leading-6 text-text-tertiary",e),...t}));ua.displayName=fe.Description.displayName;const Uu=A.cva("inline-flex h-9 items-center justify-center rounded px-4 text-sm font-medium transition-colors focus:outline-none disabled:pointer-events-none disabled:opacity-50 cursor-pointer",{variants:{destructive:{true:"bg-error text-text-on-primary hover:bg-error-hover active:bg-error",false:"bg-bg-highlight text-text-on-primary hover:bg-bg-highlight-hover"}},defaultVariants:{destructive:!1}}),oo=y.forwardRef(({className:e,destructive:t=!1,...a},s)=>n.jsx(fe.Action,{ref:s,className:l(Uu({destructive:t}),e),...a}));oo.displayName=fe.Action.displayName;const ma=y.forwardRef(({className:e,...t},a)=>n.jsx(fe.Cancel,{ref:a,className:l("inline-flex h-9 items-center justify-center rounded px-4 text-sm font-medium cursor-pointer","bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text","transition-colors focus:outline-none",e),...t}));ma.displayName=fe.Cancel.displayName;const io=y.forwardRef((e,t)=>{const{style:a,theme:s}=ue();return n.jsx(ia,{ref:t,dataStyle:a,dataTheme:s,...e})});io.displayName="AlertDialogContent";const lo=y.forwardRef(({className:e,...t},a)=>n.jsx("div",{ref:a,className:l("mb-4 inline-flex h-10 w-10 items-center justify-center rounded-lg bg-fill-tertiary text-text",e),...t}));lo.displayName="AlertDialogMedia";function co({className:e,...t}){return n.jsx("kbd",{className:l("pointer-events-none inline-flex h-5 w-fit min-w-5 select-none items-center justify-center gap-1 rounded-sm px-1 !font-sans text-xs font-medium","bg-fill-secondary text-text-secondary","[.tooltip-content_&]:bg-bg-highlight-hover [.tooltip-content_&]:text-text-on-primary","dark:[.tooltip-content_&]:bg-[color:var(--color-bg-base)]/10 dark:[.tooltip-content_&]:text-[var(--color-bg-base)]",e),...t})}co.displayName="Kbd";function uo({className:e,children:t,separator:a="+",...s}){const r=y.Children.toArray(t);return n.jsx("span",{className:l("inline-flex items-center gap-1",e),...s,children:r.map((o,i)=>n.jsxs(y.Fragment,{children:[o,i<r.length-1&&n.jsx("span",{className:"select-none !font-sans text-xs font-medium text-text-secondary",children:a})]},i))})}uo.displayName="KbdGroup";const Qu=A.cva("peer inline-flex shrink-0 cursor-pointer items-center rounded-full overflow-hidden border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-fill-secondary",{variants:{size:{md:"h-5 w-9",lg:"h-6 w-11"}},defaultVariants:{size:"md"}}),Yu=A.cva("pointer-events-none block rounded-full bg-text-on-primary ring-0 transition-transform data-[state=unchecked]:translate-x-0",{variants:{size:{md:"h-4 w-4 data-[state=checked]:translate-x-4",lg:"h-5 w-5 data-[state=checked]:translate-x-4.5"}},defaultVariants:{size:"md"}}),mo=y.forwardRef(({className:e,size:t="md",disabled:a=!1,...s},r)=>n.jsx(us.Root,{ref:r,className:l(Qu({size:t}),e),disabled:a,...s,children:n.jsx(us.Thumb,{className:Yu({size:t})})}));mo.displayName="Switch";const vs={sm:{buttonClass:"w-5 h-5",iconClass:"w-3.5 h-3.5",trackClass:"p-0.5 rounded-md gap-0.5",thumbClass:"w-5 h-5 rounded-sm top-0.5 bottom-0.5",buttonRounded:"rounded-sm"},md:{buttonClass:"w-6 h-6",iconClass:"w-4 h-4",trackClass:"p-0.5 rounded-lg gap-0.5",thumbClass:"w-6 h-6 rounded-md top-0.5 bottom-0.5",buttonRounded:"rounded-md"}};function Xu(e){if(e==="normal"||!e)return 0;const t=parseFloat(e);return e.endsWith("px")?t:e.endsWith("rem")?t*16:t}const pa=y.forwardRef(({variant:e="toggle",className:t,size:a="md",options:s,value:r,defaultValue:o="preview",onValueChange:i,segmentSize:c="md",disabled:d=!1,...u},p)=>{const{style:x,theme:g}=ue(),v={};x&&(v["data-style"]=x),g&&(v["data-theme"]=g);const f=vs[c].iconClass,b=n.jsx(yu,{className:f}),h=n.jsx(yr,{className:f}),[w,k]=y.useState(o),j=y.useRef(null),[I,C]=y.useState({buttonWidth:24,gapPx:2});y.useLayoutEffect(()=>{if(!j.current)return;const $=j.current,ee=$.querySelector("button"),me=ee?Xu(getComputedStyle($).gap):0,Q=ee?.offsetWidth??24;C(Y=>Y.buttonWidth===Q&&Y.gapPx===me?Y:{buttonWidth:Q,gapPx:me})},[x,c,s?.length]);const L=[{value:"code",label:"Code",icon:b},{value:"preview",label:"Preview",icon:h}],z=s?.length?s:L;if(e==="toggle")return n.jsx("div",{ref:p,...v,className:"inline-flex",children:n.jsx(mo,{size:a,className:t,disabled:d,...u})});const S=r!==void 0,O=(S?r:w)??o,re=$=>{d||(S||k($),i?.($))},_=z.findIndex($=>$.value===O),U=_>=0?_:0,le=vs[c],{buttonClass:J,trackClass:G,thumbClass:ae,buttonRounded:ce}=le,R=U*(I.buttonWidth+I.gapPx);return n.jsx("div",{ref:p,...v,className:"inline-flex",children:n.jsxs("div",{ref:j,role:"radiogroup","aria-disabled":d||void 0,className:_e.clsx("relative inline-flex items-center",G,"bg-fill-secondary",d?"opacity-50 cursor-not-allowed":"cursor-pointer",t),...u,children:[n.jsx(H.motion.span,{className:_e.clsx("absolute left-0.5 bg-bg-base shadow-sm",ae),initial:!1,animate:{x:R},transition:{type:"tween",duration:Ce.base,ease:Pe.out}}),z.map($=>{const ee=$.value===O;return n.jsx("button",{type:"button",role:"radio","aria-checked":ee,"aria-label":$.label,disabled:d,onClick:()=>re($.value),className:_e.clsx("relative z-10 inline-flex items-center justify-center",ce,J,"transition-colors","focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-border",ee?"text-primary-active":"text-text-secondary"),children:n.jsx("span",{className:"inline-flex items-center justify-center",children:$.icon})},$.value)})]})})});pa.displayName="Switch";function Zu({size:e="md",value:t,defaultValue:a="preview",onValueChange:s,disabled:r=!1,className:o,...i}){return n.jsx(pa,{variant:"segment",segmentSize:e,value:t,defaultValue:a,onValueChange:s,disabled:r,className:o,...i})}const po=A.cva("inline-flex items-center justify-center gap-1.5 font-medium transition-colors duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base disabled:pointer-events-none disabled:opacity-50 cursor-pointer data-[state=on]:bg-fill data-[state=on]:text-text",{variants:{variant:{default:"bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text data-[state=on]:bg-fill data-[state=on]:text-text",outline:"border border-border-tertiary bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text data-[state=on]:border-border-secondary data-[state=on]:bg-fill data-[state=on]:text-text"},size:{sm:"h-7 px-2 text-xs",md:"h-9 px-3 text-sm",lg:"h-11 px-4 text-base"},rounded:{square:"rounded",pill:"rounded-full"}},defaultVariants:{variant:"default",size:"md",rounded:"square"}}),xo=m.forwardRef(({variant:e="default",size:t="md",rounded:a="square",className:s,prefixIcon:r,suffixIcon:o,children:i,...c},d)=>n.jsxs(Cd.Root,{ref:d,className:po({variant:e,size:t,rounded:a,className:s}),...c,children:[r&&n.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:r}),i,o&&n.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:o})]}));xo.displayName="Toggle";const fo=m.createContext(null),Ku={none:"gap-0",sm:"gap-1",md:"gap-2"},Ju=["shrink-0","group-data-[spacing=0]/toggle-group:rounded-none","group-data-[spacing=0]/toggle-group:group-data-[orientation=horizontal]/toggle-group:first:rounded-l","group-data-[spacing=0]/toggle-group:group-data-[orientation=horizontal]/toggle-group:last:rounded-r","group-data-[spacing=0]/toggle-group:group-data-[orientation=vertical]/toggle-group:first:rounded-t","group-data-[spacing=0]/toggle-group:group-data-[orientation=vertical]/toggle-group:last:rounded-b","group-data-[spacing=0]/toggle-group:data-[variant=outline]:group-data-[orientation=horizontal]/toggle-group:[&:not(:first-child)]:border-l-0","group-data-[spacing=0]/toggle-group:data-[variant=outline]:group-data-[orientation=vertical]/toggle-group:[&:not(:first-child)]:border-t-0"].join(" "),ho=m.forwardRef(({type:e="single",variant:t="default",size:a="md",rounded:s="square",spacing:r="none",className:o,orientation:i="horizontal",children:c,...d},u)=>{const p=l("group/toggle-group inline-flex w-fit",i==="horizontal"?"flex-row":"flex-col",i==="vertical"&&"items-stretch",Ku[r],o),x={ref:u,orientation:i,"data-spacing":r==="none"?"0":r,"data-orientation":i,"data-variant":t,"data-size":a,className:p};return n.jsx(fo.Provider,{value:{variant:t,size:a,rounded:s,spacing:r},children:e==="multiple"?n.jsx($n.Root,{...x,...d,type:"multiple",children:c}):n.jsx($n.Root,{...x,...d,type:"single",children:c})})});ho.displayName="ToggleGroup";const go=m.forwardRef(({variant:e,size:t,rounded:a,className:s,prefixIcon:r,suffixIcon:o,children:i,...c},d)=>{const u=m.useContext(fo),p=e??u?.variant??"default",x=t??u?.size??"md",g=a??u?.rounded??"square";return n.jsxs($n.Item,{ref:d,"data-variant":p,"data-size":x,className:l(po({variant:p,size:x,rounded:g}),u&&Ju,"focus-visible:z-10",s),...c,children:[r&&n.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:r}),i,o&&n.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:o})]})});go.displayName="ToggleGroupItem";const em=A.cva("grid gap-2",{variants:{orientation:{vertical:"grid-flow-row",horizontal:"grid-flow-col auto-cols-max"}},defaultVariants:{orientation:"vertical"}}),tm=A.cva("shrink-0 rounded-full border border-border-tertiary outline-offset-2 cursor-pointer transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary-border disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-text data-[state=checked]:bg-text data-[state=checked]:text-bg-base",{variants:{size:{sm:"size-3.5",md:"size-4",lg:"size-5"}},defaultVariants:{size:"md"}}),nm={sm:"size-1.5",md:"size-2",lg:"size-2.5"},yo=y.forwardRef(({className:e,orientation:t="vertical",...a},s)=>n.jsx(Fn.Root,{ref:s,className:l(em({orientation:t,className:e})),orientation:t??"vertical",...a}));yo.displayName="RadioGroup";const bo=y.forwardRef(({className:e,size:t="md",...a},s)=>n.jsx(Fn.Item,{ref:s,className:l(tm({size:t,className:e})),...a,children:n.jsx(Fn.Indicator,{className:"flex items-center justify-center",children:n.jsx("span",{className:l("rounded-full bg-current",nm[t??"md"])})})}));bo.displayName="RadioGroupItem";const ws=`
|
|
2
|
-
.CollapsibleSection-scroll-list::-webkit-scrollbar { display: none; }
|
|
3
|
-
.CollapsibleSection-scroll-list { scrollbar-width: none; -ms-overflow-style: none; }
|
|
4
|
-
`;function am({maxHeight:e,children:t}){const a=m.useRef(null),[s,r]=m.useState(!1),[o,i]=m.useState(!1),c=m.useCallback(()=>{const d=a.current;if(!d)return;const{scrollTop:u,scrollHeight:p,clientHeight:x}=d;r(u>0),i(u+x<p-1)},[]);return m.useEffect(()=>{const d=a.current;if(!d)return;c();const u=new ResizeObserver(c);return u.observe(d),d.addEventListener("scroll",c,{passive:!0}),()=>{u.disconnect(),d.removeEventListener("scroll",c)}},[e,c]),n.jsxs("div",{className:"relative flex flex-1 min-h-0 flex-col overflow-hidden",children:[n.jsx("div",{ref:a,className:"CollapsibleSection-scroll-list flex flex-1 min-h-0 flex-col overflow-y-auto overflow-x-hidden",style:{maxHeight:e,scrollbarWidth:"none",msOverflowStyle:"none"},children:t}),s&&n.jsx("div",{className:"absolute top-0 left-0 right-0 h-8 z-10 pointer-events-none",style:{background:"linear-gradient(to bottom, var(--color-bg-base) 0%, transparent 100%)"},"aria-hidden":!0}),o&&n.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-8 z-10 pointer-events-none",style:{background:"linear-gradient(to top, var(--color-bg-base) 0%, transparent 100%)"},"aria-hidden":!0})]})}function sm({children:e}){const t=m.useRef(null),[a,s]=m.useState(!1),[r,o]=m.useState(!1),i=m.useCallback(()=>{const c=t.current;if(!c)return;const{scrollTop:d,scrollHeight:u,clientHeight:p}=c;s(d>0),o(d+p<u-1)},[]);return m.useEffect(()=>{const c=t.current;if(!c)return;i();const d=new ResizeObserver(i);return d.observe(c),c.addEventListener("scroll",i,{passive:!0}),()=>{d.disconnect(),c.removeEventListener("scroll",i)}},[i]),n.jsxs("div",{className:"relative flex flex-1 min-h-0 flex-col overflow-hidden",children:[n.jsx("div",{ref:t,className:"CollapsibleSection-scroll-list flex flex-1 min-h-0 flex-col overflow-y-auto overflow-x-hidden",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:e}),a&&n.jsx("div",{className:"absolute top-0 left-0 right-0 h-8 z-10 pointer-events-none",style:{background:"linear-gradient(to bottom, var(--color-bg-base) 0%, transparent 100%)"},"aria-hidden":!0}),r&&n.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-8 z-10 pointer-events-none",style:{background:"linear-gradient(to top, var(--color-bg-base) 0%, transparent 100%)"},"aria-hidden":!0})]})}function vo({title:e,description:t,children:a,open:s,onToggle:r,isLast:o=!1,className:i,id:c,contentMaxHeight:d,footer:u}){const p=m.useId(),x=c??`collapsible-section-${p.replace(/:/g,"")}`,g=N("arrowRight","w-4 h-4 text-text-secondary")??n.jsx(dt,{className:"w-4 h-4 text-text-secondary"}),v=a!=null?d!=null?u!=null?n.jsxs(n.Fragment,{children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:ws}}),n.jsxs("div",{className:"flex flex-col flex-1 min-h-0",style:{maxHeight:d},children:[n.jsx(sm,{children:a}),n.jsx("div",{className:"shrink-0",children:u})]})]}):n.jsxs(n.Fragment,{children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:ws}}),n.jsx(am,{maxHeight:d,children:a})]}):n.jsx("div",{className:"flex flex-1 min-h-0 flex-col",children:a}):void 0;return n.jsxs("div",{className:_e.clsx("flex flex-col justify-center self-stretch border-border-tertiary",!o&&"border-b border-dashed",s?"gap-1.5 py-4":"py-4",i),children:[n.jsxs("button",{type:"button",onClick:r,className:_e.clsx("flex flex-row items-center justify-between self-stretch w-full","bg-transparent border-0 cursor-pointer p-0","hover:opacity-90 transition-opacity focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-1 rounded"),"aria-expanded":s,"aria-controls":x,"aria-label":`${s?"收起":"展开"} ${e}`,children:[n.jsx("span",{className:"font-medium text-sm leading-[var(--font-size-sm--line-height)] text-text-secondary",children:e}),n.jsx("span",{className:_e.clsx("inline-flex items-center justify-center p-1.5 rounded-full","hover:bg-fill-tertiary active:bg-fill-secondary"),"aria-hidden":!0,children:n.jsx(H.motion.span,{className:"inline-flex items-center justify-center",animate:{rotate:s?90:0},transition:$r.snappy,children:g})})]}),n.jsx(H.AnimatePresence,{initial:!1,children:s&&n.jsx(H.motion.div,{id:x,className:"overflow-hidden",initial:{height:0},animate:{height:"auto"},exit:{height:0},transition:{duration:Ce.base,ease:Pe.emphasized},children:n.jsxs(H.motion.div,{className:"flex flex-col gap-1.5",initial:{opacity:0,y:-8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:Ce.fast,ease:Pe.emphasized},children:[t!=null&&n.jsx(H.motion.p,{className:"text-xs leading-[var(--font-size-xs--line-height)] text-text-quaternary w-full max-w-54",initial:{opacity:0},animate:{opacity:1},transition:{duration:Ce.fast,ease:Pe.emphasized},children:t}),v]})},"content")})]})}vo.displayName="CollapsibleSection";const rm=nn.Root,om=nn.CollapsibleTrigger,wo=y.forwardRef(({className:e,...t},a)=>n.jsx(nn.CollapsibleContent,{ref:a,className:l("overflow-hidden",e),...t}));wo.displayName=nn.CollapsibleContent.displayName;const ko=y.forwardRef(function({direction:t="horizontal",className:a,...s},r){return n.jsx(Un.Group,{elementRef:r,orientation:t,className:l("flex h-full w-full",t==="vertical"&&"flex-col",a),...s})});ko.displayName="ResizablePanelGroup";const jo=y.forwardRef(function({className:t,...a},s){return n.jsx(Un.Panel,{elementRef:s,className:l(t),...a})});jo.displayName="ResizablePanel";const No=y.forwardRef(function({withHandle:t=!1,className:a,...s},r){return n.jsx(Un.Separator,{elementRef:r,className:l("relative flex shrink-0 items-center justify-center bg-border-tertiary","after:absolute after:inset-0 after:transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-1","data-[resize-handle-active]:bg-border-secondary","aria-[orientation=vertical]:h-full aria-[orientation=vertical]:w-px aria-[orientation=vertical]:cursor-col-resize","aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:cursor-row-resize","[&[aria-orientation=vertical]>div]:h-6 [&[aria-orientation=vertical]>div]:w-1","[&[aria-orientation=horizontal]>div]:h-1 [&[aria-orientation=horizontal]>div]:w-6",a),...s,children:t&&n.jsx("div",{className:"z-10 shrink-0 rounded-lg bg-border-secondary","data-resize-handle":!0})})});No.displayName="ResizableHandle";const we=m.forwardRef(function({children:t,className:a,style:s,maxHeight:r,scrollbarVisibility:o="auto",scrollbarWidth:i=6},c){const u=`Scrollbar-${m.useId().replace(/:/g,"")}`,p=m.useRef(null),[x,g]=m.useState(!1),v=m.useCallback(()=>{o==="auto"&&(g(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{p.current=null,g(!1)},800))},[o]);m.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const f=()=>{if(o==="hidden")return`
|
|
1
|
+
"use strict";var Id=Object.create;var vr=Object.defineProperty;var Rd=Object.getOwnPropertyDescriptor;var Md=Object.getOwnPropertyNames;var Td=Object.getPrototypeOf,zd=Object.prototype.hasOwnProperty;var Pd=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Md(t))!zd.call(e,s)&&s!==n&&vr(e,s,{get:()=>t[s],enumerable:!(r=Rd(t,s))||r.enumerable});return e};var Ld=(e,t,n)=>(n=e!=null?Id(Td(e)):{},Pd(t||!e||!e.__esModule?vr(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),m=require("react"),q=require("framer-motion"),Dd=require("@radix-ui/react-tooltip"),yt=require("clsx"),Ad=require("@radix-ui/react-dropdown-menu"),A=require("class-variance-authority"),_d=require("@radix-ui/react-alert-dialog"),Fd=require("@radix-ui/react-switch"),fs=require("react-dom"),xs=require("sonner"),B=require("radix-ui"),Od=require("@radix-ui/react-select"),Ed=require("@radix-ui/react-dialog"),Vd=require("@radix-ui/react-popover"),$d=require("@radix-ui/react-hover-card"),Bd=require("@radix-ui/react-context-menu"),Hd=require("react-markdown"),Gd=require("remark-gfm"),Wd=require("remark-math"),qd=require("rehype-katex"),wr=require("lottie-react"),hs=require("react-i18next"),Ud=require("prism-react-renderer"),Qd=require("@radix-ui/react-accordion"),Yd=require("@radix-ui/react-aspect-ratio"),Kd=require("@radix-ui/react-avatar"),fe=require("lucide-react"),Qa=require("react-day-picker"),Zd=require("embla-carousel-react"),Xd=require("recharts"),Jd=require("@radix-ui/react-checkbox"),eu=require("@radix-ui/react-collapsible"),Ye=require("cmdk"),tu=require("@radix-ui/react-label"),au=require("@radix-ui/react-separator"),gs=require("input-otp"),nu=require("@radix-ui/react-progress"),ru=require("@radix-ui/react-radio-group"),on=require("react-resizable-panels"),su=require("@radix-ui/react-slider"),ou=require("@radix-ui/react-tabs"),iu=require("@radix-ui/react-toggle"),lu=require("@radix-ui/react-toggle-group");function ne(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const g=ne(m),ot=ne(Dd),Z=ne(Ad),he=ne(_d),kr=ne(Fd),ie=ne(Od),X=ne(Ed),it=ne(Vd),kt=ne($d),J=ne(Bd),Ie=ne(Qd),cu=ne(Yd),ut=ne(Kd),ln=ne(Xd),Ya=ne(Jd),pa=ne(eu),bs=ne(tu),ys=ne(au),jr=ne(nu),Ka=ne(ru),Gt=ne(su),Ke=ne(ou),du=ne(iu),Za=ne(lu),uu=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},mu=(e,t)=>({classGroupId:e,validator:t}),vs=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),aa="-",Nr=[],pu="arbitrary..",fu=e=>{const t=hu(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return xu(l);const c=l.split(aa),d=c[0]===""&&c.length>1?1:0;return ws(c,d,t)},getConflictingClassGroupIds:(l,c)=>{if(c){const d=r[l],u=n[l];return d?u?uu(u,d):d:u||Nr}return n[l]||Nr}}},ws=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const s=e[t],o=n.nextPart.get(s);if(o){const u=ws(e,t+1,o);if(u)return u}const l=n.validators;if(l===null)return;const c=t===0?e.join(aa):e.slice(t).join(aa),d=l.length;for(let u=0;u<d;u++){const p=l[u];if(p.validator(c))return p.classGroupId}},xu=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?pu+r:void 0})(),hu=e=>{const{theme:t,classGroups:n}=e;return gu(n,t)},gu=(e,t)=>{const n=vs();for(const r in e){const s=e[r];cn(s,n,r,t)}return n},cn=(e,t,n,r)=>{const s=e.length;for(let o=0;o<s;o++){const l=e[o];bu(l,t,n,r)}},bu=(e,t,n,r)=>{if(typeof e=="string"){yu(e,t,n);return}if(typeof e=="function"){vu(e,t,n,r);return}wu(e,t,n,r)},yu=(e,t,n)=>{const r=e===""?t:ks(t,e);r.classGroupId=n},vu=(e,t,n,r)=>{if(ku(e)){cn(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(mu(n,e))},wu=(e,t,n,r)=>{const s=Object.entries(e),o=s.length;for(let l=0;l<o;l++){const[c,d]=s[l];cn(d,ks(t,c),n,r)}},ks=(e,t)=>{let n=e;const r=t.split(aa),s=r.length;for(let o=0;o<s;o++){const l=r[o];let c=n.nextPart.get(l);c||(c=vs(),n.nextPart.set(l,c)),n=c}return n},ku=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,ju=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const s=(o,l)=>{n[o]=l,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(o){let l=n[o];if(l!==void 0)return l;if((l=r[o])!==void 0)return s(o,l),l},set(o,l){o in n?n[o]=l:s(o,l)}}},Xa="!",Cr=":",Nu=[],Sr=(e,t,n,r,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:s}),Cu=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=s=>{const o=[];let l=0,c=0,d=0,u;const p=s.length;for(let y=0;y<p;y++){const x=s[y];if(l===0&&c===0){if(x===Cr){o.push(s.slice(d,y)),d=y+1;continue}if(x==="/"){u=y;continue}}x==="["?l++:x==="]"?l--:x==="("?c++:x===")"&&c--}const f=o.length===0?s:s.slice(d);let b=f,w=!1;f.endsWith(Xa)?(b=f.slice(0,-1),w=!0):f.startsWith(Xa)&&(b=f.slice(1),w=!0);const h=u&&u>d?u-d:void 0;return Sr(o,w,b,h)};if(t){const s=t+Cr,o=r;r=l=>l.startsWith(s)?o(l.slice(s.length)):Sr(Nu,!1,l,void 0,!0)}if(n){const s=r;r=o=>n({className:o,parseClassName:s})}return r},Su=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let s=[];for(let o=0;o<n.length;o++){const l=n[o],c=l[0]==="[",d=t.has(l);c||d?(s.length>0&&(s.sort(),r.push(...s),s=[]),r.push(l)):s.push(l)}return s.length>0&&(s.sort(),r.push(...s)),r}},Iu=e=>({cache:ju(e.cacheSize),parseClassName:Cu(e),sortModifiers:Su(e),...fu(e)}),Ru=/\s+/,Mu=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s,sortModifiers:o}=t,l=[],c=e.trim().split(Ru);let d="";for(let u=c.length-1;u>=0;u-=1){const p=c[u],{isExternal:f,modifiers:b,hasImportantModifier:w,baseClassName:h,maybePostfixModifierPosition:y}=n(p);if(f){d=p+(d.length>0?" "+d:d);continue}let x=!!y,k=r(x?h.substring(0,y):h);if(!k){if(!x){d=p+(d.length>0?" "+d:d);continue}if(k=r(h),!k){d=p+(d.length>0?" "+d:d);continue}x=!1}const j=b.length===0?"":b.length===1?b[0]:o(b).join(":"),v=w?j+Xa:j,N=v+k;if(l.indexOf(N)>-1)continue;l.push(N);const C=s(k,x);for(let z=0;z<C.length;++z){const L=C[z];l.push(v+L)}d=p+(d.length>0?" "+d:d)}return d},Tu=(...e)=>{let t=0,n,r,s="";for(;t<e.length;)(n=e[t++])&&(r=js(n))&&(s&&(s+=" "),s+=r);return s},js=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=js(e[r]))&&(n&&(n+=" "),n+=t);return n},zu=(e,...t)=>{let n,r,s,o;const l=d=>{const u=t.reduce((p,f)=>f(p),e());return n=Iu(u),r=n.cache.get,s=n.cache.set,o=c,c(d)},c=d=>{const u=r(d);if(u)return u;const p=Mu(d,n);return s(d,p),p};return o=l,(...d)=>o(Tu(...d))},Pu=[],ue=e=>{const t=n=>n[e]||Pu;return t.isThemeGetter=!0,t},Ns=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Cs=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Lu=/^\d+\/\d+$/,Du=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Au=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,_u=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Fu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ou=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rt=e=>Lu.test(e),O=e=>!!e&&!Number.isNaN(Number(e)),De=e=>!!e&&Number.isInteger(Number(e)),Ba=e=>e.endsWith("%")&&O(e.slice(0,-1)),ze=e=>Du.test(e),Ss=()=>!0,Eu=e=>Au.test(e)&&!_u.test(e),dn=()=>!1,Vu=e=>Fu.test(e),$u=e=>Ou.test(e),Bu=e=>!M(e)&&!T(e),Hu=e=>Ee(e,Ms,dn),M=e=>Ns.test(e),He=e=>Ee(e,Ts,Eu),Ir=e=>Ee(e,Zu,O),Gu=e=>Ee(e,Ps,Ss),Wu=e=>Ee(e,zs,dn),Rr=e=>Ee(e,Is,dn),qu=e=>Ee(e,Rs,$u),Wt=e=>Ee(e,Ls,Vu),T=e=>Cs.test(e),ft=e=>Ze(e,Ts),Uu=e=>Ze(e,zs),Mr=e=>Ze(e,Is),Qu=e=>Ze(e,Ms),Yu=e=>Ze(e,Rs),qt=e=>Ze(e,Ls,!0),Ku=e=>Ze(e,Ps,!0),Ee=(e,t,n)=>{const r=Ns.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ze=(e,t,n=!1)=>{const r=Cs.exec(e);return r?r[1]?t(r[1]):n:!1},Is=e=>e==="position"||e==="percentage",Rs=e=>e==="image"||e==="url",Ms=e=>e==="length"||e==="size"||e==="bg-size",Ts=e=>e==="length",Zu=e=>e==="number",zs=e=>e==="family-name",Ps=e=>e==="number"||e==="weight",Ls=e=>e==="shadow",Xu=()=>{const e=ue("color"),t=ue("font"),n=ue("text"),r=ue("font-weight"),s=ue("tracking"),o=ue("leading"),l=ue("breakpoint"),c=ue("container"),d=ue("spacing"),u=ue("radius"),p=ue("shadow"),f=ue("inset-shadow"),b=ue("text-shadow"),w=ue("drop-shadow"),h=ue("blur"),y=ue("perspective"),x=ue("aspect"),k=ue("ease"),j=ue("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...N(),T,M],z=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto","contain","none"],S=()=>[T,M,d],_=()=>[rt,"full","auto",...S()],se=()=>[De,"none","subgrid",T,M],F=()=>["auto",{span:["full",De,T,M]},De,T,M],Q=()=>[De,"auto",T,M],le=()=>["auto","min","max","fr",T,M],Y=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],ce=()=>["auto",...S()],re=()=>[rt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],R=()=>[e,T,M],ae=()=>[...N(),Mr,Rr,{position:[T,M]}],E=()=>["no-repeat",{repeat:["","x","y","space","round"]}],pe=()=>["auto","cover","contain",Qu,Hu,{size:[T,M]}],U=()=>[Ba,ft,He],K=()=>["","none","full",u,T,M],de=()=>["",O,ft,He],Ne=()=>["solid","dashed","dotted","double"],at=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],oe=()=>[O,Ba,Mr,Rr],nt=()=>["","none",h,T,M],Pe=()=>["none",O,T,M],Le=()=>["none",O,T,M],P=()=>[O,T,M],D=()=>[rt,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ze],breakpoint:[ze],color:[Ss],container:[ze],"drop-shadow":[ze],ease:["in","out","in-out"],font:[Bu],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ze],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ze],shadow:[ze],spacing:["px",O],text:[ze],"text-shadow":[ze],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",rt,M,T,x]}],container:["container"],columns:[{columns:[O,M,T,c]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:C()}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:_()}],"inset-x":[{"inset-x":_()}],"inset-y":[{"inset-y":_()}],start:[{start:_()}],end:[{end:_()}],top:[{top:_()}],right:[{right:_()}],bottom:[{bottom:_()}],left:[{left:_()}],visibility:["visible","invisible","collapse"],z:[{z:[De,"auto",T,M]}],basis:[{basis:[rt,"full","auto",c,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[O,rt,"auto","initial","none",M]}],grow:[{grow:["",O,T,M]}],shrink:[{shrink:["",O,T,M]}],order:[{order:[De,"first","last","none",T,M]}],"grid-cols":[{"grid-cols":se()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":se()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...Y(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...Y()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":Y()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:ce()}],mx:[{mx:ce()}],my:[{my:ce()}],ms:[{ms:ce()}],me:[{me:ce()}],mt:[{mt:ce()}],mr:[{mr:ce()}],mb:[{mb:ce()}],ml:[{ml:ce()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:re()}],w:[{w:[c,"screen",...re()]}],"min-w":[{"min-w":[c,"screen","none",...re()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...re()]}],h:[{h:["screen","lh",...re()]}],"min-h":[{"min-h":["screen","lh","none",...re()]}],"max-h":[{"max-h":["screen","lh",...re()]}],"font-size":[{text:["base",n,ft,He]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Ku,Gu]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ba,M]}],"font-family":[{font:[Uu,Wu,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,T,M]}],"line-clamp":[{"line-clamp":[O,"none",T,Ir]}],leading:[{leading:[o,...S()]}],"list-image":[{"list-image":["none",T,M]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",T,M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ne(),"wavy"]}],"text-decoration-thickness":[{decoration:[O,"from-font","auto",T,He]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[O,"auto",T,M]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",T,M]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",T,M]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ae()}],"bg-repeat":[{bg:E()}],"bg-size":[{bg:pe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},De,T,M],radial:["",T,M],conic:[De,T,M]},Yu,qu]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:U()}],"gradient-via-pos":[{via:U()}],"gradient-to-pos":[{to:U()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:K()}],"rounded-s":[{"rounded-s":K()}],"rounded-e":[{"rounded-e":K()}],"rounded-t":[{"rounded-t":K()}],"rounded-r":[{"rounded-r":K()}],"rounded-b":[{"rounded-b":K()}],"rounded-l":[{"rounded-l":K()}],"rounded-ss":[{"rounded-ss":K()}],"rounded-se":[{"rounded-se":K()}],"rounded-ee":[{"rounded-ee":K()}],"rounded-es":[{"rounded-es":K()}],"rounded-tl":[{"rounded-tl":K()}],"rounded-tr":[{"rounded-tr":K()}],"rounded-br":[{"rounded-br":K()}],"rounded-bl":[{"rounded-bl":K()}],"border-w":[{border:de()}],"border-w-x":[{"border-x":de()}],"border-w-y":[{"border-y":de()}],"border-w-s":[{"border-s":de()}],"border-w-e":[{"border-e":de()}],"border-w-t":[{"border-t":de()}],"border-w-r":[{"border-r":de()}],"border-w-b":[{"border-b":de()}],"border-w-l":[{"border-l":de()}],"divide-x":[{"divide-x":de()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":de()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ne(),"hidden","none"]}],"divide-style":[{divide:[...Ne(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...Ne(),"none","hidden"]}],"outline-offset":[{"outline-offset":[O,T,M]}],"outline-w":[{outline:["",O,ft,He]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",p,qt,Wt]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",f,qt,Wt]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:de()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[O,He]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":de()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",b,qt,Wt]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[O,T,M]}],"mix-blend":[{"mix-blend":[...at(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":at()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[O]}],"mask-image-linear-from-pos":[{"mask-linear-from":oe()}],"mask-image-linear-to-pos":[{"mask-linear-to":oe()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":oe()}],"mask-image-t-to-pos":[{"mask-t-to":oe()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":oe()}],"mask-image-r-to-pos":[{"mask-r-to":oe()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":oe()}],"mask-image-b-to-pos":[{"mask-b-to":oe()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":oe()}],"mask-image-l-to-pos":[{"mask-l-to":oe()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":oe()}],"mask-image-x-to-pos":[{"mask-x-to":oe()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":oe()}],"mask-image-y-to-pos":[{"mask-y-to":oe()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[T,M]}],"mask-image-radial-from-pos":[{"mask-radial-from":oe()}],"mask-image-radial-to-pos":[{"mask-radial-to":oe()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":N()}],"mask-image-conic-pos":[{"mask-conic":[O]}],"mask-image-conic-from-pos":[{"mask-conic-from":oe()}],"mask-image-conic-to-pos":[{"mask-conic-to":oe()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ae()}],"mask-repeat":[{mask:E()}],"mask-size":[{mask:pe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",T,M]}],filter:[{filter:["","none",T,M]}],blur:[{blur:nt()}],brightness:[{brightness:[O,T,M]}],contrast:[{contrast:[O,T,M]}],"drop-shadow":[{"drop-shadow":["","none",w,qt,Wt]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",O,T,M]}],"hue-rotate":[{"hue-rotate":[O,T,M]}],invert:[{invert:["",O,T,M]}],saturate:[{saturate:[O,T,M]}],sepia:[{sepia:["",O,T,M]}],"backdrop-filter":[{"backdrop-filter":["","none",T,M]}],"backdrop-blur":[{"backdrop-blur":nt()}],"backdrop-brightness":[{"backdrop-brightness":[O,T,M]}],"backdrop-contrast":[{"backdrop-contrast":[O,T,M]}],"backdrop-grayscale":[{"backdrop-grayscale":["",O,T,M]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[O,T,M]}],"backdrop-invert":[{"backdrop-invert":["",O,T,M]}],"backdrop-opacity":[{"backdrop-opacity":[O,T,M]}],"backdrop-saturate":[{"backdrop-saturate":[O,T,M]}],"backdrop-sepia":[{"backdrop-sepia":["",O,T,M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",T,M]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[O,"initial",T,M]}],ease:[{ease:["linear","initial",k,T,M]}],delay:[{delay:[O,T,M]}],animate:[{animate:["none",j,T,M]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,T,M]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:Pe()}],"rotate-x":[{"rotate-x":Pe()}],"rotate-y":[{"rotate-y":Pe()}],"rotate-z":[{"rotate-z":Pe()}],scale:[{scale:Le()}],"scale-x":[{"scale-x":Le()}],"scale-y":[{"scale-y":Le()}],"scale-z":[{"scale-z":Le()}],"scale-3d":["scale-3d"],skew:[{skew:P()}],"skew-x":[{"skew-x":P()}],"skew-y":[{"skew-y":P()}],transform:[{transform:[T,M,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:D()}],"translate-x":[{"translate-x":D()}],"translate-y":[{"translate-y":D()}],"translate-z":[{"translate-z":D()}],"translate-none":["translate-none"],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",T,M]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",T,M]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[O,ft,He,Ir]}],stroke:[{stroke:["none",...R()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Ju=zu(Xu);function i(...e){return Ju(yt.clsx(e))}const em="0 0 24 24",tm="1em";function V(e,t){const n=g.forwardRef(({className:r,size:s=tm,...o},l)=>a.jsx("svg",{ref:l,viewBox:em,width:s,height:s,fill:"currentColor",className:r,xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,...o,children:a.jsx("path",{d:e})}));return n.displayName=t,n}V("M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z","ArrowDownLine");const un=V("M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z","ArrowUpLine"),Ct=V("M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z","ArrowRightLine"),am=V("M7.82843 10.9999H20V12.9999H7.82843L13.1924 18.3638L11.7782 19.778L4 11.9999L11.7782 4.22168L13.1924 5.63589L7.82843 10.9999Z","ArrowLeftLine"),we=V("M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z","CheckLine"),Me=V("M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z","CloseLine"),Ds=V("M10.5859 12L2.79297 4.20706L4.20718 2.79285L12.0001 10.5857L19.793 2.79285L21.2072 4.20706L13.4143 12L21.2072 19.7928L19.793 21.2071L12.0001 13.4142L4.20718 21.2071L2.79297 19.7928L10.5859 12Z","CloseLargeLine"),nm=V("M24 12L18.3431 17.6569L16.9289 16.2426L21.1716 12L16.9289 7.75736L18.3431 6.34315L24 12ZM2.82843 12L7.07107 16.2426L5.65685 17.6569L0 12L5.65685 6.34315L7.07107 7.75736L2.82843 12ZM9.78845 21H7.66009L14.2116 3H16.3399L9.78845 21Z","CodeSSlashLine"),As=V("M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z","EyeLine"),_s=V("M11.9995 2C12.5518 2 12.9995 2.44772 12.9995 3V6C12.9995 6.55228 12.5518 7 11.9995 7C11.4472 7 10.9995 6.55228 10.9995 6V3C10.9995 2.44772 11.4472 2 11.9995 2ZM11.9995 17C12.5518 17 12.9995 17.4477 12.9995 18V21C12.9995 21.5523 12.5518 22 11.9995 22C11.4472 22 10.9995 21.5523 10.9995 21V18C10.9995 17.4477 11.4472 17 11.9995 17ZM20.6597 7C20.9359 7.47829 20.772 8.08988 20.2937 8.36602L17.6956 9.86602C17.2173 10.1422 16.6057 9.97829 16.3296 9.5C16.0535 9.02171 16.2173 8.41012 16.6956 8.13398L19.2937 6.63397C19.772 6.35783 20.3836 6.52171 20.6597 7ZM7.66935 14.5C7.94549 14.9783 7.78161 15.5899 7.30332 15.866L4.70525 17.366C4.22695 17.6422 3.61536 17.4783 3.33922 17C3.06308 16.5217 3.22695 15.9101 3.70525 15.634L6.30332 14.134C6.78161 13.8578 7.3932 14.0217 7.66935 14.5ZM20.6597 17C20.3836 17.4783 19.772 17.6422 19.2937 17.366L16.6956 15.866C16.2173 15.5899 16.0535 14.9783 16.3296 14.5C16.6057 14.0217 17.2173 13.8578 17.6956 14.134L20.2937 15.634C20.772 15.9101 20.9359 16.5217 20.6597 17ZM7.66935 9.5C7.3932 9.97829 6.78161 10.1422 6.30332 9.86602L3.70525 8.36602C3.22695 8.08988 3.06308 7.47829 3.33922 7C3.61536 6.52171 4.22695 6.35783 4.70525 6.63397L7.30332 8.13398C7.78161 8.41012 7.94549 9.02171 7.66935 9.5Z","LoaderLine"),rm=V("M1.946 9.315c-.946-.35-.946-1.09 0-1.436l18.108-6.732c.946-.35 1.704.21 1.573 1.236L20.1 21.894c-.117.932-.93 1.636 1.897 1.636.967 0 1.754-.704 1.636-1.636l-.527-4.18L10 12 20.073 7.264l-.527-4.18c-.117-.932.67-1.636 1.637-1.636.967 0 2.014.704 1.897 1.636L21.627 18.57c-.131 1.026-.627 1.586-1.573 1.236L1.946 9.315Z","SendPlaneLine"),sm=V("M6 6h12v12H6V6Zm2 2v8h8V8H8Z","StopLine"),om=V("M12 3a3 3 0 0 1 3 3v6a3 3 0 0 1-6 0V6a3 3 0 0 1 3-3Zm0 14a5 5 0 0 0 5-5v-1a1 1 0 1 1 2 0v1a7 7 0 0 1-14 0v-1a1 1 0 1 1 2 0v1a5 5 0 0 0 5 5Z","MicLine"),Fs=V("M3 3h8.828l2 2H21a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm2 2v12h14V7h-8.414l-2-2H5Z","FolderLine"),Os=V("M12.414 5H21a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h7.414l2 2Z","FolderFillLine"),mn=V("M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm4 18H6V4h7v5h5v11z","FileLine"),Es=V("M12 2C6.477 2 2 6.477 2 12c0 1.5.328 2.932.917 4.215L1.5 21l4.785-1.417A9.966 9.966 0 0 0 12 22c5.523 0 10-4.477 10-10S17.523 2 12 2zm0 2a8 8 0 1 1 0 16 7.99 7.99 0 0 1-3.918-1.018l-.26-.15-2.683.795.795-2.683-.15-.26A7.99 7.99 0 0 1 4 12a8 8 0 0 1 8-8z","Chat3Line"),St=V("M12 7a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V8a1 1 0 0 1 1-1zm0 10a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5z","WarningLine"),ye=V("M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z","ArrowDownSLine"),pn=V("M14 2l.5 2.5L17 5l-2.5.5L14 8l-.5-2.5L11 5l2.5-.5L14 2zM6 12l1 4 4 1 1-4-4-1-1-4zm8-2l.5 2.5 2.5.5-2.5.5-.5 2.5-.5-2.5-2.5-.5 2.5-.5.5-2.5z","SparklingLine"),Vs=V("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm1 2v5.586l3.707 3.707-1.414 1.414L11 11.414V6h2z","TimeLine"),fa=V("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm3.536 5.536l-4.95 4.95-2.121-2.122-1.414 1.414 3.535 3.536 6.364-6.364-1.414-1.414z","CheckboxCircleLine"),$s=V("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm3.536 2.464l-1.414 1.414L12 10.586 9.878 8.464 8.464 9.878 10.586 12l-2.122 2.121 1.414 1.415L12 13.414l2.121 2.122 1.415-1.414L13.414 12l2.122-2.121z","CloseCircleLine"),fn=V("M6 12c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z","MoreLine"),im=V("M5.763 17H20V5H4v13.385L5.763 17zm.692 2L2 22.5V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6.455z","QuestionAnswerLine"),Bs=V("M7 14h10v2H7v-2zm0-4h10v2H7v-2zm0-4h10v2H7V6zm-4 12h2v2H3v-2zm0-4h2v2H3v-2zm0-4h2v2H3v-2zm0-4h2v2H3V6z","RequestChangesLine"),Hs=V("M3 5h2v2H3V5zm4 0h14v2H7V5zm-4 6h2v2H3v-2zm4 0h14v2H7v-2zm-4 6h2v2H3v-2zm4 0h14v2H7v-2z","CatalogLine"),Gs=V("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16z","CircleLine"),Ws=V("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm4 5v2H8V9h8z","IndeterminateCircleLine"),qs=V("M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm4 10l-4-4v3H6v2h6v3l4-4z","ArrowRightCircleFillLine"),xa=V("M3 4h14v2H3V4zm0 4h14v2H3V8zm0 4h10v2H3v-2zm0 4h8v2H3v-2z","FileList2Line"),Us=V("M13 10h5l-6 6-6-6h5V3h2v7zM4 19h16v2H4v-2z","DownloadLine"),Qs=V("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm1 5v6h-2V9h2zm0-4v2h-2V6h2z","QuestionnaireLine"),Ys=V("M3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm2 2v12h14V5H5zm2 2h2v2H7V7zm4 0h6v2h-6V7zm-4 4h2v2H7v-2zm4 0h6v2h-6v-2z","TerminalBoxLine"),Ks=V("M10 6v2H5v11h11v-5h2v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6zm11-3v8h-2V6.413l-7.793 7.794-1.414-1.414L17.585 5H13V3h8z","ExternalLinkLine"),Zs=V("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm1 2.05v1.9c.93.13 1.8.44 2.57.9L14.5 7.2c-.55-.36-1.15-.65-1.78-.9L13 6.05zM6.05 11H4.1c.13.93.44 1.8.9 2.57L7.2 9.5c-.36-.55-.65-1.15-.9-1.78L6.05 11zm1.25 4.5L4.6 16.33c.77.57 1.64.88 2.57 1.01v1.9c.63-.25 1.23-.54 1.78-.9L7.3 15.5zm7.4 0c.55.36 1.15.65 1.78.9v1.9a8.1 8.1 0 0 1-2.57-.9L16.8 15.5l-1.25-1.25zM17.9 13h-1.95c-.25-.63-.54-1.23-.9-1.78L16.8 14.5c.57.77.88 1.64 1.01 2.57zm-5.4-5.4c-.36.55-.65 1.15-.9 1.78H6.05c.13-.93.44-1.8.9-2.57L9.5 7.2l1.25 1.25zm-.9 6.8l1.25 1.25c.77-.57 1.64-.88 2.57-1.01v1.95c-.63.25-1.23.54-1.78.9L9.5 16.8zm4.5-4.5l1.25 1.25L16.8 9.5c-.36-.55-.65-1.15-.9-1.78h1.95c.13.93.44 1.8.9 2.57z","GlobalLine"),Xs=V("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm3.536 2.464l-9.072 9.072a8 8 0 0 1 9.072-9.072zM8.464 17.536a8 8 0 0 1 9.072-9.072l-9.072 9.072z","Forbid2Line"),lm=A.cva("animate-spin",{variants:{size:{xs:"size-3",sm:"size-3.5",md:"size-4",lg:"size-5"}},defaultVariants:{size:"md"}}),ha=m.forwardRef(({className:e,size:t="md",...n},r)=>a.jsx("span",{ref:r,role:"status","aria-label":"Loading",...n,children:a.jsx(_s,{className:i(lm({size:t}),e)})}));ha.displayName="Spinner";const jt=A.cva("inline-flex items-center justify-center gap-1.5 font-medium transition-[color,background-color,border-color,box-shadow,transform] duration-200 active:scale-[0.98] focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer",{variants:{variant:{primary:"bg-primary text-text-on-primary hover:bg-primary-hover",secondary:"bg-bg-highlight text-text-on-primary hover:bg-bg-highlight-hover",tertiary:"bg-fill-secondary text-text hover:bg-fill",outline:"border border-border-tertiary bg-bg-container text-text hover:bg-fill-secondary",ghost:"bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text",text:"bg-transparent text-text-secondary hover:text-text",destructive:"bg-error text-text-on-primary hover:bg-error-hover"},size:{sm:"h-7 px-2 text-xs",md:"h-9 px-3 text-sm",lg:"h-11 px-4 text-base"},rounded:{square:"rounded",pill:"rounded-full"},textOnly:{true:"h-auto px-0 py-0.5",false:""}},compoundVariants:[{textOnly:!0,size:"sm",className:"text-xs"},{textOnly:!0,size:"md",className:"text-sm"},{textOnly:!0,size:"lg",className:"text-base"}],defaultVariants:{variant:"ghost",size:"md",rounded:"square",textOnly:!1}}),G=m.forwardRef(({variant:e="ghost",children:t,size:n="md",textButton:r=!1,prefixIcon:s,suffixIcon:o,rounded:l="square",disabled:c=!1,loading:d=!1,asChild:u=!1,className:p,...f},b)=>{const w=u?B.Slot.Root:"button",h=c||d;return a.jsx(w,{ref:b,className:jt({variant:r?"text":e,size:n,rounded:l,textOnly:r,className:p}),disabled:h,"aria-busy":d||void 0,...f,children:u?t:a.jsxs(a.Fragment,{children:[d?a.jsx(ha,{className:"shrink-0"}):s?a.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:s}):null,t,o&&a.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:o})]})})});G.displayName="Button";const Js=A.cva("inline-flex isolate [&>*]:focus-visible:relative [&>*]:focus-visible:z-10",{variants:{orientation:{horizontal:"flex-row items-stretch [&>*:not(:first-child)]:-ml-px [&>*:not(:first-child)]:rounded-l-none [&>*:not(:last-child)]:rounded-r-none",vertical:"flex-col [&>*:not(:first-child)]:-mt-px [&>*:not(:first-child)]:rounded-t-none [&>*:not(:last-child)]:rounded-b-none"}},defaultVariants:{orientation:"horizontal"}}),eo=g.forwardRef(({className:e,orientation:t="horizontal",...n},r)=>a.jsx("div",{ref:r,role:"group","data-orientation":t??"horizontal",className:i(Js({orientation:t}),e),...n}));eo.displayName="ButtonGroup";const to=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:i("inline-flex h-9 shrink-0 items-center gap-1.5 rounded bg-fill-secondary px-3 text-sm font-medium text-text select-none","[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",e),...t}));to.displayName="ButtonGroupText";const ao=g.forwardRef(({className:e,orientation:t="vertical",...n},r)=>a.jsx("div",{ref:r,role:"separator","aria-orientation":t,"data-orientation":t,className:i("shrink-0 self-stretch bg-border-tertiary",t==="vertical"?"w-px":"h-px w-full",e),...n}));ao.displayName="ButtonGroupSeparator";function Tr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function cm(...e){return t=>{let n=!1;const r=e.map(s=>{const o=Tr(s,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let s=0;s<r.length;s++){const o=r[s];typeof o=="function"?o():Tr(e[s],null)}}}}var dm=Symbol.for("react.lazy"),na=g[" use ".trim().toString()];function um(e){return typeof e=="object"&&e!==null&&"then"in e}function no(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===dm&&"_payload"in e&&um(e._payload)}function mm(e){const t=pm(e),n=g.forwardRef((r,s)=>{let{children:o,...l}=r;no(o)&&typeof na=="function"&&(o=na(o._payload));const c=g.Children.toArray(o),d=c.find(xm);if(d){const u=d.props.children,p=c.map(f=>f===d?g.Children.count(u)>1?g.Children.only(null):g.isValidElement(u)?u.props.children:null:f);return a.jsx(t,{...l,ref:s,children:g.isValidElement(u)?g.cloneElement(u,void 0,p):null})}return a.jsx(t,{...l,ref:s,children:o})});return n.displayName=`${e}.Slot`,n}var Xe=mm("Slot");function pm(e){const t=g.forwardRef((n,r)=>{let{children:s,...o}=n;if(no(s)&&typeof na=="function"&&(s=na(s._payload)),g.isValidElement(s)){const l=gm(s),c=hm(o,s.props);return s.type!==g.Fragment&&(c.ref=r?cm(r,l):l),g.cloneElement(s,c)}return g.Children.count(s)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var fm=Symbol("radix.slottable");function xm(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===fm}function hm(e,t){const n={...t};for(const r in t){const s=e[r],o=t[r];/^on[A-Z]/.test(r)?s&&o?n[r]=(...c)=>{const d=o(...c);return s(...c),d}:s&&(n[r]=s):r==="style"?n[r]={...s,...o}:r==="className"&&(n[r]=[s,o].filter(Boolean).join(" "))}return{...e,...n}}function gm(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const ro=A.cva("inline-flex items-center justify-center gap-1 rounded-md border px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base [&>svg]:size-3 [&>svg]:pointer-events-none",{variants:{variant:{default:"border-transparent bg-primary text-text-on-primary hover:bg-primary-hover",secondary:"border-transparent bg-fill-secondary text-text hover:bg-fill",destructive:"border-transparent bg-error text-text-on-primary hover:bg-error-hover",outline:"border-border-tertiary bg-transparent text-text"}},defaultVariants:{variant:"default"}});function bm({className:e,variant:t,asChild:n=!1,...r}){const s=n?Xe:"span";return a.jsx(s,{"data-slot":"badge",className:i(ro({variant:t}),e),...r})}const ym=A.cva("flex-none shrink-0 inline-flex items-center justify-center box-border transition-[color,background-color,border-color,box-shadow,transform] duration-200 active:scale-[0.98] focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer [&>*]:flex [&>*]:items-center [&>*]:justify-center [&>*]:size-full [&>*]:[&>svg]:block [&>*]:[&>svg]:leading-none",{variants:{variant:{primary:"bg-primary text-text-on-primary hover:bg-primary-hover",secondary:"bg-bg-highlight text-text-on-primary hover:bg-bg-highlight-hover",tertiary:"bg-fill-secondary text-text hover:bg-fill",ghost:"bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text",iconOnly:"bg-transparent text-text-secondary hover:text-text",destructive:"bg-error text-text-on-primary hover:bg-error-hover"},rounded:{square:"rounded",pill:"rounded-full"},size:{sm:"h-7 w-7 min-h-7 min-w-7 p-1.5",md:"h-9 w-9 min-h-9 min-w-9 p-1.5",lg:"h-11 w-11 min-h-11 min-w-11 p-2"}},defaultVariants:{variant:"secondary",size:"md",rounded:"square"}}),Re=m.forwardRef(({variant:e="secondary",size:t="md",rounded:n="square",icon:r,disabled:s=!1,asChild:o=!1,className:l,...c},d)=>{const u=o?B.Slot.Root:"button";return a.jsx(u,{ref:d,className:i(ym({variant:e,size:t,rounded:n}),l),disabled:s,...c,children:a.jsx("span",{className:"inline-flex shrink-0 size-full items-center justify-center",children:r})})});Re.displayName="IconButton";const Je={fast:.15,base:.2,slow:.3},mt={standard:[.16,1,.3,1],emphasized:[.2,.8,.2,1],out:[0,0,.2,1]},vm={snappy:{type:"spring",stiffness:520,damping:34,mass:.7}},ga={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:Je.fast}},xn={initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:8},transition:{duration:Je.base,ease:mt.standard}},pt={initial:{opacity:0,scale:.96},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.96},transition:{duration:Je.fast,ease:mt.standard}},so={initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:Je.base,ease:mt.emphasized}};function wm(){return typeof window>"u"?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function km(){if(typeof document>"u")return 1;const e=getComputedStyle(document.documentElement).getPropertyValue("--motion-multiplier").trim();return e?parseFloat(e):1}function ve(){if(typeof document>"u")return{};const e=document.documentElement,t={},n=e.getAttribute("data-theme"),r=e.getAttribute("data-style");return n&&(t["data-theme"]=n),r&&(t["data-style"]=r),t}const jm=ot.Provider,Nm=ot.Root,Cm=ot.Trigger,oo=g.forwardRef(({className:e,sideOffset:t=8,children:n,dataStyle:r,dataTheme:s,...o},l)=>{const c=ve(),d=r!==void 0?{"data-style":r,"data-theme":s??c["data-theme"]??""}:c;return a.jsx(ot.Portal,{children:a.jsx("div",{style:{display:"contents"},...d,children:a.jsx(ot.Content,{ref:l,sideOffset:t,className:i("z-50 max-w-60 overflow-hidden rounded px-2 py-1 text-xs leading-5","bg-bg-highlight text-text-on-primary shadow-sm",e),...o,children:a.jsx(q.motion.div,{...pt,children:n})})})})});oo.displayName=ot.Content.displayName;function Fe({content:e,children:t,side:n="top",contentClassName:r,dataStyle:s,dataTheme:o}){return a.jsx(jm,{delayDuration:300,children:a.jsxs(Nm,{children:[a.jsx(Cm,{asChild:!0,children:t}),a.jsx(oo,{side:n,className:r,dataStyle:s,dataTheme:o,children:e})]})})}Fe.displayName="Tooltip";const io=m.createContext(null);function lo(e){return typeof e=="object"&&"name"in e}function co(e){return typeof e=="object"&&"name"in e}function Sm(e,t){return lo(t)?`${e}-${t.name}`:t==="mint"?e:`${e}-${t}`}function Im(e){return co(e)?e.name:e}function Rm(e,t){const n={};if(lo(e)){const{tokens:r}=e;for(const[s,o]of Object.entries(r))if(o!==void 0){const l=s.startsWith("--")?s:`--${s}`;n[l]=o}}if(co(t)){const{radius:r,spacing:s,fontSize:o}=t;r&&(r.sm&&(n["--radius-sm"]=r.sm),r.default&&(n["--radius-DEFAULT"]=r.default),r.md&&(n["--radius-md"]=r.md),r.lg&&(n["--radius-lg"]=r.lg),r.xl&&(n["--radius-xl"]=r.xl),r["2xl"]&&(n["--radius-2xl"]=r["2xl"]),r["3xl"]&&(n["--radius-3xl"]=r["3xl"])),s&&(s[3]&&(n["--spacing-3"]=s[3]),s[4]&&(n["--spacing-4"]=s[4]),s[9]&&(n["--spacing-9"]=s[9]),s[11]&&(n["--spacing-11"]=s[11])),o&&(o.sm&&(n["--font-size-sm"]=o.sm),o.lg&&(n["--font-size-lg"]=o.lg),o.xl&&(n["--font-size-xl"]=o.xl),o["2xl"]&&(n["--font-size-2xl"]=o["2xl"]),o["3xl"]&&(n["--font-size-3xl"]=o["3xl"]))}return n}function Mm({children:e,appearance:t="light",theme:n="mint",style:r="neutral"}){const s=m.useMemo(()=>Sm(t,n),[t,n]),o=m.useMemo(()=>Im(r),[r]),l=m.useMemo(()=>Rm(n,r),[n,r]),c=m.useMemo(()=>({appearance:t,themeConfig:n,styleConfig:r,dataTheme:s,dataStyle:o,theme:s,style:o}),[t,n,r,s,o]),d=Object.keys(l).length>0;return a.jsx(io.Provider,{value:c,children:a.jsx("div",{"data-theme":s,"data-style":o,style:d?l:void 0,children:e})})}function me(){const e=m.useContext(io);return e||{appearance:"light",themeConfig:"mint",styleConfig:"neutral",dataTheme:"light",dataStyle:"neutral",theme:"light",style:"neutral"}}function uo({placement:e,side:t=e??"top",...n}){const{style:r,theme:s}=me();return a.jsx(Fe,{side:t,dataStyle:r,dataTheme:s,...n})}uo.displayName="Tooltip";function zr(e,t){e&&(typeof e=="function"?e(t):e.current=t)}const mo=m.forwardRef(({children:e,lines:t=1,className:n="",placement:r="top",tooltipClassName:s="",tooltipContent:o,disabled:l=!1,style:c,as:d="span"},u)=>{const p=m.useRef(null),[f,b]=m.useState(!1),w=m.useCallback(()=>{const j=p.current;if(!j)return;const v=t===1?j.scrollWidth>j.clientWidth:j.scrollHeight>j.clientHeight;b(v)},[t]);m.useEffect(()=>{const j=requestAnimationFrame(()=>w()),v=p.current;if(!v)return()=>cancelAnimationFrame(j);const N=new ResizeObserver(()=>w());return N.observe(v),window.addEventListener("resize",w),()=>{cancelAnimationFrame(j),N.disconnect(),window.removeEventListener("resize",w)}},[w,e]);const h=t===1?{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",...c}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:t,WebkitBoxOrient:"vertical",...c},y=m.useCallback(j=>{zr(p,j),zr(u,j)},[u]),x=a.jsx(d,{ref:y,className:n,style:h,children:e});return f&&!l?a.jsx(Fe,{content:o??e,side:r,contentClassName:yt.clsx(s),children:a.jsx("span",{ref:y,className:n,style:h,children:e})}):x});mo.displayName="EllipsisText";const Tm="flex flex-col gap-1",zm=A.cva("w-full flex flex-col gap-0.5 items-start p-2 text-sm rounded text-left transition-colors outline-none focus-visible:bg-fill-tertiary focus-visible:ring-0",{variants:{selected:{true:"",false:""},disabled:{true:"opacity-50 cursor-not-allowed",false:"cursor-pointer hover:bg-fill-tertiary"},dimmed:{true:"opacity-40",false:""}},defaultVariants:{selected:!1,disabled:!1,dimmed:!1}}),Pm=A.cva("flex-shrink-0 w-5 h-5 rounded-full flex items-center justify-center text-xs font-mono font-medium transition-colors",{variants:{selected:{true:"bg-primary-active text-text-on-primary",false:"bg-fill-secondary text-text-tertiary"}},defaultVariants:{selected:!1}}),hn=m.forwardRef(({items:e,selectedIds:t=[],focusedId:n,onItemClick:r,showPrefix:s=!0,disabled:o=!1,className:l,...c},d)=>{const u=p=>String(p+1);return a.jsx("div",{ref:d,role:"listbox","aria-multiselectable":t.length>1,className:i(Tm,l),...c,children:e.map((p,f)=>{const b=t.includes(p.id),w=n===p.id,h=o||p.disabled,x=t.length>0&&!b&&!h;return a.jsxs("button",{type:"button",role:"option","aria-selected":b,"aria-disabled":h,onClick:()=>{h||r?.(p,f)},disabled:h,className:i(zm({selected:b,disabled:h,dimmed:x}),w&&"bg-fill-tertiary"),children:[a.jsxs("div",{className:"flex items-center gap-3",children:[s&&a.jsx("div",{className:Pm({selected:b}),children:u(f)}),a.jsx("span",{className:"font-medium text-text",children:p.label})]}),p.description&&a.jsx("div",{className:"ml-8 text-xs text-text-tertiary",children:p.description})]},p.id)})})});hn.displayName="OptionList";const qe=Z.Root,Ue=Z.Trigger,Lm=Z.Group,Dm=Z.Portal,po=Z.Sub,Am=Z.RadioGroup,fo="min-w-32 overflow-hidden rounded-lg border border-border-tertiary bg-bg-container p-1 text-text shadow-lg z-50 outline-none focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:!outline-none focus-visible:!ring-0",_e=g.forwardRef(({className:e,sideOffset:t=4,children:n,dataStyle:r,dataTheme:s,...o},l)=>{const c=ve(),d=r!==void 0?{"data-style":r,"data-theme":s??c["data-theme"]??""}:c;return a.jsx(Z.Portal,{children:a.jsx("div",{style:{display:"contents"},...d,children:a.jsx(Z.Content,{ref:l,sideOffset:t,className:i(fo,e),...o,children:a.jsx(q.motion.div,{...pt,children:n})})})})});_e.displayName=Z.Content.displayName;const _m=A.cva("flex h-9 w-full cursor-pointer select-none items-center gap-2 rounded-sm px-3 text-sm outline-none focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:!outline-none hover:bg-fill-secondary focus:bg-fill-secondary data-[highlighted]:bg-fill-secondary data-[state=open]:bg-fill-secondary",{variants:{inset:{true:"pl-8 pr-3",false:""}},defaultVariants:{inset:!1}}),gn=g.forwardRef(({className:e,inset:t=!1,children:n,subTriggerIcon:r,...s},o)=>a.jsxs(Z.SubTrigger,{ref:o,className:_m({inset:t,className:e}),...s,children:[n,a.jsx("span",{className:"ml-auto flex h-4 w-4 items-center justify-center",children:r??a.jsx(Ct,{className:"h-4 w-4"})})]}));gn.displayName=Z.SubTrigger.displayName;const bn=g.forwardRef(({className:e,sideOffset:t=-1,dataStyle:n,dataTheme:r,...s},o)=>{const l=ve(),c=n!==void 0?{"data-style":n,"data-theme":r??l["data-theme"]??""}:l;return a.jsx(Z.Portal,{children:a.jsx("div",{style:{display:"contents"},...c,children:a.jsx(Z.SubContent,{ref:o,sideOffset:t,className:i(fo,e),...s})})})});bn.displayName=Z.SubContent.displayName;const Fm=A.cva("relative flex h-9 w-full min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm px-3 text-sm outline-none focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:!outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50",{variants:{variant:{default:"hover:bg-fill-secondary focus:bg-fill-secondary focus:text-text data-[highlighted]:bg-fill-secondary data-[highlighted]:text-text",destructive:"text-error hover:bg-error-bg focus:bg-error-bg focus:text-error data-[highlighted]:bg-error-bg data-[highlighted]:text-error"},inset:{true:"pl-8 pr-3",false:""}},defaultVariants:{variant:"default",inset:!1}}),Se=g.forwardRef(({className:e,inset:t=!1,variant:n="default",...r},s)=>a.jsx(Z.Item,{ref:s,className:Fm({variant:n,inset:t,className:e}),...r}));Se.displayName=Z.Item.displayName;const xo="relative flex h-9 w-full min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm pl-8 pr-3 text-sm outline-none transition-colors hover:bg-fill-secondary focus:bg-fill-secondary focus:text-text data-[highlighted]:bg-fill-secondary data-[highlighted]:text-text data-[disabled]:pointer-events-none data-[disabled]:opacity-50",ho=g.forwardRef(({className:e,children:t,checked:n,checkIcon:r,...s},o)=>a.jsxs(Z.CheckboxItem,{ref:o,className:i(xo,e),checked:n,...s,children:[a.jsx("span",{className:"absolute left-2 top-1/2 flex h-3.5 w-3.5 -translate-y-1/2 items-center justify-center",children:a.jsx(Z.ItemIndicator,{children:r??a.jsx(we,{className:"h-4 w-4"})})}),t]}));ho.displayName=Z.CheckboxItem.displayName;const go=g.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(Z.RadioItem,{ref:r,className:i(xo,e),...n,children:[a.jsx("span",{className:"absolute left-2 top-1/2 flex h-3.5 w-3.5 -translate-y-1/2 items-center justify-center",children:a.jsx(Z.ItemIndicator,{children:a.jsx("div",{className:"h-2 w-2 rounded-full bg-primary"})})}),t]}));go.displayName=Z.RadioItem.displayName;const Om=A.cva("flex h-9 items-center px-3 text-sm font-semibold text-text-secondary",{variants:{inset:{true:"pl-8 pr-3",false:""}},defaultVariants:{inset:!1}}),bo=g.forwardRef(({className:e,inset:t=!1,...n},r)=>a.jsx(Z.Label,{ref:r,className:Om({inset:t,className:e}),...n}));bo.displayName=Z.Label.displayName;const yo=g.forwardRef(({className:e,...t},n)=>a.jsx(Z.Separator,{ref:n,className:i("my-1 mx-1 h-px bg-border-tertiary",e),...t}));yo.displayName=Z.Separator.displayName;const vo=({className:e,...t})=>a.jsx("span",{className:i("ml-auto text-xs tracking-widest text-text-tertiary",e),...t});vo.displayName="DropdownMenuShortcut";const wo=m.createContext(null);function Em({value:e,children:t}){return a.jsx(wo.Provider,{value:e,children:t})}function It(){return m.useContext(wo)??{icons:{}}}function I(e,t){const{icons:n}=It(),r=n[e];if(r)return a.jsx(r,{className:t,"aria-hidden":!0})}const ko=g.forwardRef((e,t)=>{const{style:n,theme:r}=me();return a.jsx(_e,{ref:t,dataStyle:n,dataTheme:r,...e})});ko.displayName="DropdownMenuContent";function Vm(e){const t=I("arrowRight","h-4 w-4 shrink-0"),n=e.subTriggerIcon??t;return a.jsx(gn,{...e,subTriggerIcon:n})}const jo=g.forwardRef((e,t)=>{const{style:n,theme:r}=me();return a.jsx(bn,{ref:t,dataStyle:n,dataTheme:r,...e})});jo.displayName="DropdownMenuSubContent";const No=he.Root,$m=he.Trigger,Co=he.Portal,yn=g.forwardRef(({className:e,...t},n)=>a.jsx(he.Overlay,{ref:n,asChild:!0,...t,children:a.jsx(q.motion.div,{className:i("fixed inset-0 z-50 bg-bg-mask/60",e),...ga})}));yn.displayName=he.Overlay.displayName;const Bm=A.cva("font-sans fixed left-1/2 top-1/2 z-50 w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 rounded-xl border border-border bg-bg-base text-text shadow-lg p-6",{variants:{size:{default:"max-w-lg",sm:"max-w-sm"}},defaultVariants:{size:"default"}}),vn=g.forwardRef(({className:e,children:t,size:n="default",dataStyle:r,dataTheme:s,...o},l)=>{const c=ve(),d=r!==void 0?{"data-style":r,"data-theme":s??c["data-theme"]??""}:c;return a.jsx(Co,{children:a.jsxs("div",{style:{display:"contents"},...d,children:[a.jsx(yn,{}),a.jsx(he.Content,{ref:l,asChild:!0,...o,children:a.jsx(q.motion.div,{className:i(Bm({size:n}),e),...xn,children:t})})]})})});vn.displayName=he.Content.displayName;const wn=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:i("flex flex-col gap-2",e),...t}));wn.displayName="AlertDialogHeader";const kn=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:i("mt-6 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t}));kn.displayName="AlertDialogFooter";const jn=g.forwardRef(({className:e,...t},n)=>a.jsx(he.Title,{ref:n,className:i("font-sans text-base font-medium leading-6 text-text",e),...t}));jn.displayName=he.Title.displayName;const Nn=g.forwardRef(({className:e,...t},n)=>a.jsx(he.Description,{ref:n,className:i("text-sm leading-6 text-text-tertiary",e),...t}));Nn.displayName=he.Description.displayName;const Hm=A.cva("inline-flex h-9 items-center justify-center rounded px-4 text-sm font-medium transition-colors focus:outline-none disabled:pointer-events-none disabled:opacity-50 cursor-pointer",{variants:{destructive:{true:"bg-error text-text-on-primary hover:bg-error-hover active:bg-error",false:"bg-bg-highlight text-text-on-primary hover:bg-bg-highlight-hover"}},defaultVariants:{destructive:!1}}),So=g.forwardRef(({className:e,destructive:t=!1,...n},r)=>a.jsx(he.Action,{ref:r,className:i(Hm({destructive:t}),e),...n}));So.displayName=he.Action.displayName;const Cn=g.forwardRef(({className:e,...t},n)=>a.jsx(he.Cancel,{ref:n,className:i("inline-flex h-9 items-center justify-center rounded px-4 text-sm font-medium cursor-pointer","bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text","transition-colors focus:outline-none",e),...t}));Cn.displayName=he.Cancel.displayName;const Io=g.forwardRef((e,t)=>{const{style:n,theme:r}=me();return a.jsx(vn,{ref:t,dataStyle:n,dataTheme:r,...e})});Io.displayName="AlertDialogContent";const Ro=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:i("mb-4 inline-flex h-10 w-10 items-center justify-center rounded-lg bg-fill-tertiary text-text",e),...t}));Ro.displayName="AlertDialogMedia";function Mo({className:e,...t}){return a.jsx("kbd",{className:i("pointer-events-none inline-flex h-5 w-fit min-w-5 select-none items-center justify-center gap-1 rounded-sm px-1 !font-sans text-xs font-medium","bg-fill-secondary text-text-secondary","[.tooltip-content_&]:bg-bg-highlight-hover [.tooltip-content_&]:text-text-on-primary","dark:[.tooltip-content_&]:bg-[color:var(--color-bg-base)]/10 dark:[.tooltip-content_&]:text-[var(--color-bg-base)]",e),...t})}Mo.displayName="Kbd";function To({className:e,children:t,separator:n="+",...r}){const s=g.Children.toArray(t);return a.jsx("span",{className:i("inline-flex items-center gap-1",e),...r,children:s.map((o,l)=>a.jsxs(g.Fragment,{children:[o,l<s.length-1&&a.jsx("span",{className:"select-none !font-sans text-xs font-medium text-text-secondary",children:n})]},l))})}To.displayName="KbdGroup";const Gm=A.cva("peer inline-flex shrink-0 cursor-pointer items-center rounded-full overflow-hidden border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-fill-secondary",{variants:{size:{md:"h-5 w-9",lg:"h-6 w-11"}},defaultVariants:{size:"md"}}),Wm=A.cva("pointer-events-none block rounded-full bg-text-on-primary ring-0 transition-transform data-[state=unchecked]:translate-x-0",{variants:{size:{md:"h-4 w-4 data-[state=checked]:translate-x-4",lg:"h-5 w-5 data-[state=checked]:translate-x-4.5"}},defaultVariants:{size:"md"}}),zo=g.forwardRef(({className:e,size:t="md",disabled:n=!1,...r},s)=>a.jsx(kr.Root,{ref:s,className:i(Gm({size:t}),e),disabled:n,...r,children:a.jsx(kr.Thumb,{className:Wm({size:t})})}));zo.displayName="Switch";const Pr={sm:{buttonClass:"w-5 h-5",iconClass:"w-3.5 h-3.5",trackClass:"p-0.5 rounded-md gap-0.5",thumbClass:"w-5 h-5 rounded-sm top-0.5 bottom-0.5",buttonRounded:"rounded-sm"},md:{buttonClass:"w-6 h-6",iconClass:"w-4 h-4",trackClass:"p-0.5 rounded-lg gap-0.5",thumbClass:"w-6 h-6 rounded-md top-0.5 bottom-0.5",buttonRounded:"rounded-md"}};function qm(e){if(e==="normal"||!e)return 0;const t=parseFloat(e);return e.endsWith("px")?t:e.endsWith("rem")?t*16:t}const Sn=g.forwardRef(({variant:e="toggle",className:t,size:n="md",options:r,value:s,defaultValue:o="preview",onValueChange:l,segmentSize:c="md",disabled:d=!1,...u},p)=>{const{style:f,theme:b}=me(),w={};f&&(w["data-style"]=f),b&&(w["data-theme"]=b);const h=Pr[c].iconClass,y=a.jsx(nm,{className:h}),x=a.jsx(As,{className:h}),[k,j]=g.useState(o),v=g.useRef(null),[N,C]=g.useState({buttonWidth:24,gapPx:2});g.useLayoutEffect(()=>{if(!v.current)return;const ae=v.current,E=ae.querySelector("button"),pe=E?qm(getComputedStyle(ae).gap):0,U=E?.offsetWidth??24;C(K=>K.buttonWidth===U&&K.gapPx===pe?K:{buttonWidth:U,gapPx:pe})},[f,c,r?.length]);const z=[{value:"code",label:"Code",icon:y},{value:"preview",label:"Preview",icon:x}],L=r?.length?r:z;if(e==="toggle")return a.jsx("div",{ref:p,...w,className:"inline-flex",children:a.jsx(zo,{size:n,className:t,disabled:d,...u})});const S=s!==void 0,_=(S?s:k)??o,se=ae=>{d||(S||j(ae),l?.(ae))},F=L.findIndex(ae=>ae.value===_),Q=F>=0?F:0,le=Pr[c],{buttonClass:Y,trackClass:W,thumbClass:ce,buttonRounded:re}=le,R=Q*(N.buttonWidth+N.gapPx);return a.jsx("div",{ref:p,...w,className:"inline-flex",children:a.jsxs("div",{ref:v,role:"radiogroup","aria-disabled":d||void 0,className:yt.clsx("relative inline-flex items-center",W,"bg-fill-secondary",d?"opacity-50 cursor-not-allowed":"cursor-pointer",t),...u,children:[a.jsx(q.motion.span,{className:yt.clsx("absolute left-0.5 bg-bg-base shadow-sm",ce),initial:!1,animate:{x:R},transition:{type:"tween",duration:Je.base,ease:mt.out}}),L.map(ae=>{const E=ae.value===_;return a.jsx("button",{type:"button",role:"radio","aria-checked":E,"aria-label":ae.label,disabled:d,onClick:()=>se(ae.value),className:yt.clsx("relative z-10 inline-flex items-center justify-center",re,Y,"transition-colors","focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-border",E?"text-primary-active":"text-text-secondary"),children:a.jsx("span",{className:"inline-flex items-center justify-center",children:ae.icon})},ae.value)})]})})});Sn.displayName="Switch";function Um({size:e="md",value:t,defaultValue:n="preview",onValueChange:r,disabled:s=!1,className:o,...l}){return a.jsx(Sn,{variant:"segment",segmentSize:e,value:t,defaultValue:n,onValueChange:r,disabled:s,className:o,...l})}const Po=A.cva("inline-flex items-center justify-center gap-1.5 font-medium transition-colors duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base disabled:pointer-events-none disabled:opacity-50 cursor-pointer data-[state=on]:bg-fill data-[state=on]:text-text",{variants:{variant:{default:"bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text data-[state=on]:bg-fill data-[state=on]:text-text",outline:"border border-border-tertiary bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text data-[state=on]:border-border-secondary data-[state=on]:bg-fill data-[state=on]:text-text"},size:{sm:"h-7 px-2 text-xs",md:"h-9 px-3 text-sm",lg:"h-11 px-4 text-base"},rounded:{square:"rounded",pill:"rounded-full"}},defaultVariants:{variant:"default",size:"md",rounded:"square"}}),Lo=m.forwardRef(({variant:e="default",size:t="md",rounded:n="square",className:r,prefixIcon:s,suffixIcon:o,children:l,...c},d)=>a.jsxs(du.Root,{ref:d,className:Po({variant:e,size:t,rounded:n,className:r}),...c,children:[s&&a.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:s}),l,o&&a.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:o})]}));Lo.displayName="Toggle";const Do=m.createContext(null),Qm={none:"gap-0",sm:"gap-1",md:"gap-2"},Ym=["shrink-0","group-data-[spacing=0]/toggle-group:rounded-none","group-data-[spacing=0]/toggle-group:group-data-[orientation=horizontal]/toggle-group:first:rounded-l","group-data-[spacing=0]/toggle-group:group-data-[orientation=horizontal]/toggle-group:last:rounded-r","group-data-[spacing=0]/toggle-group:group-data-[orientation=vertical]/toggle-group:first:rounded-t","group-data-[spacing=0]/toggle-group:group-data-[orientation=vertical]/toggle-group:last:rounded-b","group-data-[spacing=0]/toggle-group:data-[variant=outline]:group-data-[orientation=horizontal]/toggle-group:[&:not(:first-child)]:border-l-0","group-data-[spacing=0]/toggle-group:data-[variant=outline]:group-data-[orientation=vertical]/toggle-group:[&:not(:first-child)]:border-t-0"].join(" "),Ao=m.forwardRef(({type:e="single",variant:t="default",size:n="md",rounded:r="square",spacing:s="none",className:o,orientation:l="horizontal",children:c,...d},u)=>{const p=i("group/toggle-group inline-flex w-fit",l==="horizontal"?"flex-row":"flex-col",l==="vertical"&&"items-stretch",Qm[s],o),f={ref:u,orientation:l,"data-spacing":s==="none"?"0":s,"data-orientation":l,"data-variant":t,"data-size":n,className:p};return a.jsx(Do.Provider,{value:{variant:t,size:n,rounded:r,spacing:s},children:e==="multiple"?a.jsx(Za.Root,{...f,...d,type:"multiple",children:c}):a.jsx(Za.Root,{...f,...d,type:"single",children:c})})});Ao.displayName="ToggleGroup";const _o=m.forwardRef(({variant:e,size:t,rounded:n,className:r,prefixIcon:s,suffixIcon:o,children:l,...c},d)=>{const u=m.useContext(Do),p=e??u?.variant??"default",f=t??u?.size??"md",b=n??u?.rounded??"square";return a.jsxs(Za.Item,{ref:d,"data-variant":p,"data-size":f,className:i(Po({variant:p,size:f,rounded:b}),u&&Ym,"focus-visible:z-10",r),...c,children:[s&&a.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:s}),l,o&&a.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:o})]})});_o.displayName="ToggleGroupItem";const Km=A.cva("grid gap-2",{variants:{orientation:{vertical:"grid-flow-row",horizontal:"grid-flow-col auto-cols-max"}},defaultVariants:{orientation:"vertical"}}),Zm=A.cva("shrink-0 rounded-full border border-border-tertiary outline-offset-2 cursor-pointer transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary-border disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-text data-[state=checked]:bg-text data-[state=checked]:text-bg-base",{variants:{size:{sm:"size-3.5",md:"size-4",lg:"size-5"}},defaultVariants:{size:"md"}}),Xm={sm:"size-1.5",md:"size-2",lg:"size-2.5"},Fo=g.forwardRef(({className:e,orientation:t="vertical",...n},r)=>a.jsx(Ka.Root,{ref:r,className:i(Km({orientation:t,className:e})),orientation:t??"vertical",...n}));Fo.displayName="RadioGroup";const Oo=g.forwardRef(({className:e,size:t="md",...n},r)=>a.jsx(Ka.Item,{ref:r,className:i(Zm({size:t,className:e})),...n,children:a.jsx(Ka.Indicator,{className:"flex items-center justify-center",children:a.jsx("span",{className:i("rounded-full bg-current",Xm[t??"md"])})})}));Oo.displayName="RadioGroupItem";const Jm=pa.Root,ep=pa.CollapsibleTrigger,Eo=g.forwardRef(({className:e,...t},n)=>a.jsx(pa.CollapsibleContent,{ref:n,className:i("overflow-hidden",e),...t}));Eo.displayName=pa.CollapsibleContent.displayName;const Vo=g.forwardRef(function({direction:t="horizontal",className:n,...r},s){return a.jsx(on.Group,{elementRef:s,orientation:t,className:i("flex h-full w-full",t==="vertical"&&"flex-col",n),...r})});Vo.displayName="ResizablePanelGroup";const $o=g.forwardRef(function({className:t,...n},r){return a.jsx(on.Panel,{elementRef:r,className:i(t),...n})});$o.displayName="ResizablePanel";const Bo=g.forwardRef(function({withHandle:t=!1,className:n,...r},s){return a.jsx(on.Separator,{elementRef:s,className:i("relative flex shrink-0 items-center justify-center bg-border-tertiary","after:absolute after:inset-0 after:transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-1","data-[resize-handle-active]:bg-border-secondary","aria-[orientation=vertical]:h-full aria-[orientation=vertical]:w-px aria-[orientation=vertical]:cursor-col-resize","aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:cursor-row-resize","[&[aria-orientation=vertical]>div]:h-6 [&[aria-orientation=vertical]>div]:w-1","[&[aria-orientation=horizontal]>div]:h-1 [&[aria-orientation=horizontal]>div]:w-6",n),...r,children:t&&a.jsx("div",{className:"z-10 shrink-0 rounded-lg bg-border-secondary","data-resize-handle":!0})})});Bo.displayName="ResizableHandle";const ke=m.forwardRef(function({children:t,className:n,style:r,maxHeight:s,scrollbarVisibility:o="auto",scrollbarWidth:l=6},c){const u=`Scrollbar-${m.useId().replace(/:/g,"")}`,p=m.useRef(null),[f,b]=m.useState(!1),w=m.useCallback(()=>{o==="auto"&&(b(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{p.current=null,b(!1)},800))},[o]);m.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const h=()=>{if(o==="hidden")return`
|
|
5
2
|
.${u}::-webkit-scrollbar { display: none; }
|
|
6
3
|
.${u} { scrollbar-width: none; }
|
|
7
|
-
`;const
|
|
4
|
+
`;const x=o==="auto",k=o==="always"?"var(--color-fill-secondary)":"transparent",j="var(--color-fill-secondary)",v=x?`
|
|
8
5
|
.${u}:hover::-webkit-scrollbar-thumb,
|
|
9
6
|
.${u}.Scrollbar-isScrolling::-webkit-scrollbar-thumb {
|
|
10
|
-
background-color: ${
|
|
7
|
+
background-color: ${j};
|
|
11
8
|
}
|
|
12
9
|
`:`
|
|
13
10
|
.${u}:hover::-webkit-scrollbar-thumb {
|
|
14
|
-
background-color: ${
|
|
11
|
+
background-color: ${j};
|
|
15
12
|
}
|
|
16
13
|
`;return`
|
|
17
14
|
.${u}::-webkit-scrollbar {
|
|
18
|
-
width: ${
|
|
19
|
-
height: ${
|
|
15
|
+
width: ${l}px !important;
|
|
16
|
+
height: ${l}px !important;
|
|
20
17
|
}
|
|
21
18
|
.${u}::-webkit-scrollbar-track { background: transparent; }
|
|
22
19
|
.${u}::-webkit-scrollbar-thumb {
|
|
23
|
-
background-color: ${
|
|
24
|
-
border-radius: ${Math.max(
|
|
20
|
+
background-color: ${k};
|
|
21
|
+
border-radius: ${Math.max(l/2,2)}px;
|
|
25
22
|
min-height: var(--spacing-8);
|
|
26
23
|
transition: background-color 0.2s ease;
|
|
27
24
|
}
|
|
28
|
-
${
|
|
25
|
+
${v}
|
|
29
26
|
.${u}::-webkit-scrollbar-corner { background: transparent; }
|
|
30
|
-
`},
|
|
27
|
+
`},y={...r,maxHeight:s};return a.jsxs(a.Fragment,{children:[a.jsx("style",{children:h()}),a.jsx("div",{ref:c,className:i(u,"overflow-y-auto",f&&"Scrollbar-isScrolling",n),style:y,onScroll:o==="auto"?w:void 0,children:t})]})});ke.displayName="Scrollbar";const tp=A.cva("animate-pulse bg-fill-tertiary",{variants:{rounded:{default:"rounded-md",circle:"rounded-full"}},defaultVariants:{rounded:"default"}}),ra=m.forwardRef(({className:e,rounded:t="default",...n},r)=>a.jsx("div",{ref:r,className:i(tp({rounded:t}),e),...n}));ra.displayName="Skeleton";const Ho=m.forwardRef(({text:e,duration:t=2,delay:n=0,repeat:r=!0,repeatDelay:s=.5,startOnView:o=!0,once:l=!1,inViewMargin:c,spread:d=2,color:u,shimmerColor:p,className:f,style:b,...w},h)=>{const y=m.useRef(null),x=q.useInView(y,{once:l,margin:c}),k=o?x:!0,j=m.useMemo(()=>e.length*d,[e,d]),v=u||"var(--color-text-secondary)",N=p||"var(--color-text)",C=m.useMemo(()=>({backgroundImage:`linear-gradient(90deg, transparent calc(50% - ${j}px), ${N}, transparent calc(50% + ${j}px)), linear-gradient(${v}, ${v})`}),[j,N,v]),z=L=>{y.current=L,typeof h=="function"?h(L):h&&(h.current=L)};return a.jsx(q.motion.span,{ref:z,className:i("relative inline-block bg-clip-text text-transparent","bg-[length:250%_100%,auto] bg-no-repeat",f),style:{...C,...b},initial:{backgroundPosition:"100% center"},animate:k?{backgroundPosition:"0% center"}:{backgroundPosition:"100% center"},transition:{repeat:r&&!l?1/0:0,repeatDelay:s,duration:t,delay:n,ease:"linear"},...w,children:e})});Ho.displayName="ShimmeringText";const In=m.forwardRef(({className:e,...t},n)=>a.jsx("div",{className:"relative w-full overflow-auto scrollbar-auto",children:a.jsx("table",{ref:n,className:i("w-full caption-bottom text-sm",e),...t})}));In.displayName="Table";const Rn=m.forwardRef(({className:e,...t},n)=>a.jsx("thead",{ref:n,className:i("[&_tr]:border-b border-border-tertiary",e),...t}));Rn.displayName="TableHeader";const Mn=m.forwardRef(({className:e,...t},n)=>a.jsx("tbody",{ref:n,className:i("[&_tr:last-child]:border-0",e),...t}));Mn.displayName="TableBody";const Go=m.forwardRef(({className:e,...t},n)=>a.jsx("tfoot",{ref:n,className:i("border-t border-border-tertiary bg-fill-tertiary font-medium [&>tr]:last:border-b-0",e),...t}));Go.displayName="TableFooter";const vt=m.forwardRef(({className:e,...t},n)=>a.jsx("tr",{ref:n,className:i("border-b border-border-tertiary transition-colors hover:bg-fill-tertiary data-[state=selected]:bg-fill-tertiary",e),...t}));vt.displayName="TableRow";const Tn=m.forwardRef(({className:e,...t},n)=>a.jsx("th",{ref:n,className:i("h-10 px-4 text-left align-middle font-medium text-text-secondary [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-0.5",e),...t}));Tn.displayName="TableHead";const sa=m.forwardRef(({className:e,...t},n)=>a.jsx("td",{ref:n,className:i("p-4 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-0.5",e),...t}));sa.displayName="TableCell";const Wo=m.forwardRef(({className:e,...t},n)=>a.jsx("caption",{ref:n,className:i("mt-4 text-sm text-text-secondary",e),...t}));Wo.displayName="TableCaption";const ap=A.cva("relative flex shrink-0 rounded-full",{variants:{size:{sm:"h-8 w-8",default:"h-10 w-10",lg:"h-12 w-12"}},defaultVariants:{size:"default"}}),qo=g.forwardRef(({className:e,size:t="default",...n},r)=>a.jsx(ut.Root,{ref:r,className:i(ap({size:t}),e),...n}));qo.displayName=ut.Root.displayName;const Uo=g.forwardRef(({className:e,...t},n)=>a.jsx(ut.Image,{ref:n,className:i("aspect-square h-full w-full overflow-hidden rounded-full object-cover",e),...t}));Uo.displayName=ut.Image.displayName;const Qo=g.forwardRef(({className:e,...t},n)=>a.jsx(ut.Fallback,{ref:n,className:i("flex h-full w-full items-center justify-center overflow-hidden rounded-full bg-fill-tertiary text-sm font-medium text-text",e),...t}));Qo.displayName=ut.Fallback.displayName;const Yo=g.forwardRef(({className:e,...t},n)=>a.jsx("span",{ref:n,className:i("absolute bottom-0 right-0 z-10 block h-3 w-3 rounded-full border-2 border-bg-base bg-success",e),...t}));Yo.displayName="AvatarBadge";const Ko=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:i("flex -space-x-2 [&>*]:ring-2 [&>*]:ring-bg-base",e),...t}));Ko.displayName="AvatarGroup";const Zo=g.forwardRef(({className:e,...t},n)=>a.jsx("span",{ref:n,className:i("inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-full border-2 border-bg-base bg-fill-tertiary text-sm font-medium text-text",e),...t}));Zo.displayName="AvatarGroupCount";const Xo="calc(var(--spacing-px) * 2)",Ja="var(--spacing-2)",np="var(--spacing-2)",en="var(--spacing-3)",rp=`[data-sonner-toaster] [data-sonner-toast][data-styled="true"] { padding-left: ${Ja} !important; padding-right: ${Ja} !important; padding-top: ${en} !important; padding-bottom: ${en} !important; font-size: var(--font-size-sm) !important; line-height: var(--font-size-sm--line-height) !important; }
|
|
31
28
|
[data-sonner-toaster] [data-sonner-toast] [data-content] { flex: 1 !important; min-width: 0 !important; }
|
|
32
|
-
[data-sonner-toaster] [data-sonner-toast] [data-button]:not(:first-of-type) { margin-left: ${cm} !important; }`,js={className:"text-sm",style:{padding:`var(--spacing-3) ${Hn}`,gap:Ao,background:"var(--color-bg-container)",borderColor:"var(--color-border-tertiary)",color:"var(--color-text)"},descriptionClassName:"text-xs text-text-secondary",actionButtonStyle:{borderRadius:"var(--radius)",paddingLeft:"var(--spacing-2)",paddingRight:"var(--spacing-2)",height:"var(--spacing-7)",fontSize:"var(--font-size-xs)"},cancelButtonStyle:{borderRadius:"var(--radius)",paddingLeft:"var(--spacing-2)",paddingRight:"var(--spacing-2)",height:"var(--spacing-7)",fontSize:"var(--font-size-xs)"}},um=14,mm=3,pm={right:8,left:8,top:24,bottom:24};function _o({theme:e,toastOptions:t,dataStyle:a,dataTheme:s,icons:r,gap:o=um,visibleToasts:i=mm,offset:c=pm,...d}){const u=ye(),p=a!==void 0||s!==void 0?{"data-style":a,"data-theme":s}:u,x=e??(typeof document<"u"&&document.documentElement.getAttribute("data-theme")==="dark"?"dark":"light"),g=n.jsxs(n.Fragment,{children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:dm}}),n.jsx("div",{style:{display:"contents"},...p,children:n.jsx(Ks.Toaster,{theme:x,closeButton:!0,icons:r,gap:o,visibleToasts:i,offset:c,toastOptions:{...js,...t,style:{...js.style,...t?.style}},style:{"--border-radius":"var(--radius-lg)",fontFamily:"inherit","--gap":`${o}px`,"--toast-icon-margin-start":"0","--toast-icon-margin-end":Ao,"--toast-button-margin-start":"auto","--toast-button-margin-end":"0"},...d})})]});return typeof document<"u"?Zs.createPortal(g,document.body):null}_o.displayName="Toaster";const Ge="w-[var(--font-size-xl)] h-[var(--font-size-xl)] shrink-0",Ns="w-3.5 h-3.5 shrink-0 text-text-tertiary";function Oo({theme:e,toastOptions:t,dataStyle:a,dataTheme:s,...r}){const o=ue(),i=a??o.style,c=s??o.theme,d=N("checkboxCircle",Ge),u=N("closeCircle",Ge),p=N("warning",Ge),x=N("close",Ns),g=m.useMemo(()=>({success:d??n.jsx(an,{className:Ge}),error:u??n.jsx(Nr,{className:Ge}),warning:p??n.jsx(kt,{className:Ge}),loading:n.jsx(rn,{className:Ge}),close:x??n.jsx(Re,{className:Ns})}),[d,u,p,x]),v=m.useMemo(()=>({...t,style:{gap:"2px",...t?.style},classNames:{actionButton:vt({variant:"primary",size:"sm",rounded:"square"}),cancelButton:vt({variant:"tertiary",size:"sm",rounded:"square"}),...t?.classNames}}),[t]);return n.jsx(_o,{theme:e,dataStyle:i,dataTheme:c,icons:g,toastOptions:v,...r})}Oo.displayName="Toaster";const ot="outline-none focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:!outline-none focus-visible:!ring-0 focus-visible:outline-offset-0 focus-visible:!outline-offset-0 focus-visible:ring-offset-0 focus-visible:!ring-offset-0",Eo=ie.Root,xm=ie.Group,Fo=ie.Value,fm=A.cva(["flex w-full items-center justify-between gap-2 whitespace-nowrap rounded-lg border border-border-tertiary bg-bg-container text-text placeholder:text-muted-foreground transition-colors disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1","focus:border-border-secondary focus-visible:border-border-secondary data-[state=open]:border-border-secondary"].join(" "),{variants:{size:{sm:"h-7 px-2 py-0.5 text-xs",md:"h-9 px-3 py-2 text-sm",lg:"h-11 px-4 py-2.5 text-base"}},defaultVariants:{size:"md"}}),ya=y.forwardRef(({className:e,children:t,disabled:a,triggerIcon:s,size:r="md",...o},i)=>n.jsxs(ie.Trigger,{ref:i,disabled:a,className:l(fm({size:r}),ot,e),...o,children:[t,n.jsx(ie.Icon,{asChild:!0,children:n.jsx("span",{className:"pointer-events-none flex shrink-0 text-current [&>svg]:text-current",children:s??n.jsx(ve,{className:"h-[1em] w-[1em] shrink-0"})})})]}));ya.displayName=ie.Trigger.displayName;const ba=y.forwardRef(({className:e,scrollUpIcon:t,...a},s)=>n.jsx(ie.ScrollUpButton,{ref:s,className:l("flex cursor-default items-center justify-center py-1",ot,e),...a,children:t??n.jsx(Zn,{className:"h-[1em] w-[1em]"})}));ba.displayName=ie.ScrollUpButton.displayName;const va=y.forwardRef(({className:e,scrollDownIcon:t,...a},s)=>n.jsx(ie.ScrollDownButton,{ref:s,className:l("flex cursor-default items-center justify-center py-1",ot,e),...a,children:t??n.jsx(ve,{className:"h-[1em] w-[1em]"})}));va.displayName=ie.ScrollDownButton.displayName;const wa=y.forwardRef(({className:e,children:t,position:a="popper",sideOffset:s=4,dataStyle:r,dataTheme:o,...i},c)=>{const d=ye(),u=r!==void 0?{"data-style":r,"data-theme":o??d["data-theme"]??""}:d;return n.jsx(ie.Portal,{children:n.jsxs(ie.Content,{ref:c,className:l("relative z-[60] max-h-96 min-w-32 overflow-hidden rounded-lg border border-border-tertiary bg-bg-container p-1 text-text shadow-lg",ot,"data-[state=open]:animate-in 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",e),position:a,sideOffset:s,...u,...i,children:[n.jsx(ba,{}),n.jsx(ie.Viewport,{className:l(ot,a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),n.jsx(va,{})]})})});wa.displayName=ie.Content.displayName;const $o=y.forwardRef(({className:e,...t},a)=>n.jsx(ie.Label,{ref:a,className:l("flex h-9 items-center px-3 text-sm font-semibold text-text-secondary",e),...t}));$o.displayName=ie.Label.displayName;const gt=y.forwardRef(({className:e,children:t,itemIndicatorIcon:a,...s},r)=>n.jsxs(ie.Item,{ref:r,className:l("relative flex h-9 w-full min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm pl-3 pr-8 text-sm transition-colors",ot,"hover:bg-fill-secondary data-[highlighted]:bg-fill-secondary data-[highlighted]:text-text data-[state=checked]:bg-fill-secondary data-[state=checked]:text-text","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...s,children:[n.jsx("span",{className:"absolute right-3 flex h-[1em] w-[1em] items-center justify-center",children:n.jsx(ie.ItemIndicator,{children:a??n.jsx(be,{className:"h-[1em] w-[1em]"})})}),n.jsx(ie.ItemText,{children:t})]}));gt.displayName=ie.Item.displayName;const Bo=y.forwardRef(({className:e,...t},a)=>n.jsx(ie.Separator,{ref:a,className:l("my-1 mx-1 h-px bg-border-tertiary",e),...t}));Bo.displayName=ie.Separator.displayName;const Ho=y.forwardRef((e,t)=>{const{style:a,theme:s}=ue();return n.jsx(wa,{ref:t,dataStyle:a,dataTheme:s,...e})});Ho.displayName="SelectContent";const hm=Ye.Root,gm=A.cva("inline-flex items-center justify-center text-text-secondary data-[orientation=horizontal]:flex-row data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch",{variants:{variant:{default:"rounded-lg bg-fill-secondary p-0.5 gap-0.5",line:"gap-6 border-b border-border-tertiary bg-transparent p-0"}},defaultVariants:{variant:"default"}}),ym=A.cva("inline-flex items-center justify-center gap-1.5 whitespace-nowrap text-sm font-medium transition-colors outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base disabled:pointer-events-none disabled:opacity-50 data-[state=active]:text-text cursor-pointer data-[orientation=vertical]:justify-start data-[orientation=vertical]:rounded-md data-[orientation=vertical]:px-3 data-[orientation=vertical]:py-2",{variants:{variant:{default:"rounded-md px-3 py-1.5 data-[state=active]:bg-bg-container data-[state=active]:shadow-sm",line:"rounded-none border-b-2 border-transparent px-1 pb-2 pt-0 data-[state=active]:border-primary data-[state=active]:shadow-none"}},defaultVariants:{variant:"default"}}),Vo=y.forwardRef(({className:e,variant:t="default",...a},s)=>n.jsx(Ye.List,{ref:s,className:l(gm({variant:t}),e),...a}));Vo.displayName=Ye.List.displayName;const Go=y.forwardRef(({className:e,variant:t="default",...a},s)=>n.jsx(Ye.Trigger,{ref:s,className:l(ym({variant:t}),e),...a}));Go.displayName=Ye.Trigger.displayName;const qo=y.forwardRef(({className:e,...t},a)=>n.jsx(Ye.Content,{ref:a,className:l("mt-2 outline-none ring-0 data-[state=inactive]:hidden","data-[orientation=vertical]:mt-0 data-[orientation=vertical]:ml-2",e),...t}));qo.displayName=Ye.Content.displayName;const Wo=y.forwardRef(({className:e,...t},a)=>n.jsx(bt.Root,{ref:a,className:l("w-full font-sans",e),"data-slot":"collapse",...t}));Wo.displayName="Collapse";const Uo=y.forwardRef(({className:e,...t},a)=>n.jsx(bt.Item,{ref:a,className:l("border-b border-border-tertiary last:border-b-0 data-[orientation=horizontal]:border-b-0 data-[orientation=horizontal]:border-r data-[orientation=horizontal]:border-border-tertiary data-[orientation=horizontal]:last:border-r-0",e),"data-slot":"collapse-item",...t}));Uo.displayName="CollapseItem";const Qo=y.forwardRef(({className:e,children:t,chevronIcon:a,...s},r)=>n.jsx(bt.Header,{className:"flex font-sans",children:n.jsxs(bt.Trigger,{ref:r,className:l("group flex flex-1 items-center justify-between gap-2 py-3 text-left text-sm font-medium text-text font-sans transition-colors outline-none","hover:text-text-secondary focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base","disabled:pointer-events-none disabled:opacity-50","data-[orientation=horizontal]:flex-col data-[orientation=horizontal]:justify-between data-[orientation=horizontal]:py-4 data-[orientation=horizontal]:text-left",e),"data-slot":"collapse-trigger",...s,children:[t,n.jsx("span",{className:"shrink-0 inline-flex transition-transform duration-200 group-data-[state=open]:rotate-180","aria-hidden":!0,children:a??n.jsx(ve,{className:"size-4 text-text-secondary"})})]})}));Qo.displayName="CollapseTrigger";const Yo=y.forwardRef(({className:e,children:t,...a},s)=>n.jsx(bt.Content,{ref:s,className:l("overflow-hidden text-sm text-text-secondary font-sans data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down","data-[orientation=horizontal]:data-[state=closed]:animate-accordion-left data-[orientation=horizontal]:data-[state=open]:animate-accordion-right",e),"data-slot":"collapse-content",...a,children:n.jsx("div",{className:"pb-3 pt-0 data-[orientation=horizontal]:pb-0 data-[orientation=horizontal]:pl-0 data-[orientation=horizontal]:pr-3",children:t})}));Yo.displayName="CollapseContent";function Xo({className:e,...t}){return n.jsx("h1",{className:l("font-sans scroll-m-20 text-4xl font-extrabold tracking-tight text-balance text-text",e),...t})}Xo.displayName="TypographyH1";function Zo({className:e,...t}){return n.jsx("h2",{className:l("font-sans scroll-m-20 border-b border-border-tertiary pb-2 text-3xl font-semibold tracking-tight first:mt-0 text-text",e),...t})}Zo.displayName="TypographyH2";function Ko({className:e,...t}){return n.jsx("h3",{className:l("font-sans scroll-m-20 text-2xl font-semibold tracking-tight text-text",e),...t})}Ko.displayName="TypographyH3";function Jo({className:e,...t}){return n.jsx("h4",{className:l("font-sans scroll-m-20 text-xl font-semibold tracking-tight text-text",e),...t})}Jo.displayName="TypographyH4";function ei({className:e,...t}){return n.jsx("p",{className:l("font-sans leading-7 text-text [&:not(:first-child)]:mt-6",e),...t})}ei.displayName="TypographyP";function ti({className:e,...t}){return n.jsx("blockquote",{className:l("font-sans mt-6 border-l-2 border-border-tertiary pl-6 italic text-text-secondary",e),...t})}ti.displayName="TypographyBlockquote";function ni({className:e,children:t,...a}){return n.jsx(we,{scrollbarVisibility:"auto",className:l("font-sans my-6 w-full",e),children:t})}ni.displayName="TypographyTable";function ai({className:e,...t}){return n.jsx("ul",{className:l("font-sans my-6 ml-6 list-disc text-text [&>li]:mt-2",e),...t})}ai.displayName="TypographyList";function si({className:e,...t}){return n.jsx("code",{className:l("relative rounded bg-fill-secondary px-1 py-0.5 font-mono text-sm font-semibold text-text",e),...t})}si.displayName="TypographyInlineCode";function ri({className:e,...t}){return n.jsx("p",{className:l("font-sans text-xl text-muted-foreground",e),...t})}ri.displayName="TypographyLead";function oi({className:e,...t}){return n.jsx("div",{className:l("font-sans text-lg font-semibold text-text",e),...t})}oi.displayName="TypographyLarge";function ii({className:e,...t}){return n.jsx("small",{className:l("font-sans text-sm font-medium leading-none text-text",e),...t})}ii.displayName="TypographySmall";function li({className:e,...t}){return n.jsx("p",{className:l("font-sans text-sm text-muted-foreground",e),...t})}li.displayName="TypographyMuted";const ci=y.forwardRef(({className:e,...t},a)=>{const s=t.value??t.defaultValue??[50];return n.jsxs(Ot.Root,{ref:a,className:l("relative flex w-full touch-none select-none cursor-pointer items-center","data-[orientation=vertical]:flex-col data-[orientation=vertical]:w-auto data-[orientation=vertical]:h-full",e),...t,children:[n.jsx(Ot.Track,{className:l("relative grow overflow-hidden rounded-full bg-fill-secondary","data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:w-full","data-[orientation=vertical]:w-2 data-[orientation=vertical]:h-full"),children:n.jsx(Ot.Range,{className:l("absolute rounded-full bg-primary","data-[orientation=horizontal]:h-full","data-[orientation=vertical]:w-full")})}),s.map((r,o)=>n.jsx(Ot.Thumb,{className:l("block size-5 rounded-full border-2 border-primary bg-bg-base shadow-sm","transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base","disabled:pointer-events-none disabled:opacity-50")},o))]})});ci.displayName="Slider";const di=({className:e,...t})=>n.jsx("nav",{role:"navigation","aria-label":"pagination",className:l("flex w-full justify-center",e),...t});di.displayName="Pagination";const ui=y.forwardRef(({className:e,...t},a)=>n.jsx("ul",{ref:a,className:l("flex flex-row flex-wrap items-center gap-2",e),...t}));ui.displayName="PaginationContent";const mi=y.forwardRef(({className:e,...t},a)=>n.jsx("li",{ref:a,className:l("list-none",e),...t}));mi.displayName="PaginationItem";const pi=y.forwardRef(({className:e,isActive:t,...a},s)=>n.jsx("a",{ref:s,"aria-current":t?"page":void 0,className:l("inline-flex min-w-9 h-9 items-center justify-center rounded-md border text-sm font-medium transition-colors","border-border-tertiary bg-bg-container text-text","hover:bg-fill-secondary hover:text-text hover:border-border-tertiary","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base","disabled:pointer-events-none disabled:opacity-50",t&&"bg-fill-secondary border-border-tertiary text-text",e),...a}));pi.displayName="PaginationLink";const xi=y.forwardRef(({className:e,text:t="Previous",...a},s)=>n.jsxs("a",{ref:s,"aria-label":"Go to previous page",className:l("inline-flex h-9 min-w-9 items-center justify-center gap-2 rounded-md border px-3 text-sm font-medium transition-colors","border-border-tertiary bg-bg-container text-text","hover:bg-fill-secondary hover:text-text hover:border-border-tertiary","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base","disabled:pointer-events-none disabled:opacity-50",e),...a,children:[n.jsx(gu,{className:"h-4 w-4 shrink-0"}),n.jsx("span",{className:"hidden sm:inline",children:t})]}));xi.displayName="PaginationPrevious";const fi=y.forwardRef(({className:e,text:t="Next",...a},s)=>n.jsxs("a",{ref:s,"aria-label":"Go to next page",className:l("inline-flex h-9 min-w-9 items-center justify-center gap-2 rounded-md border px-3 text-sm font-medium transition-colors","border-border-tertiary bg-bg-container text-text","hover:bg-fill-secondary hover:text-text hover:border-border-tertiary","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base","disabled:pointer-events-none disabled:opacity-50",e),...a,children:[n.jsx("span",{className:"hidden sm:inline",children:t}),n.jsx(dt,{className:"h-4 w-4 shrink-0"})]}));fi.displayName="PaginationNext";const hi=({className:e,...t})=>n.jsx("span",{role:"presentation","aria-hidden":!0,className:l("flex h-9 w-9 shrink-0 items-center justify-center text-text-secondary",e),...t,children:"…"});hi.displayName="PaginationEllipsis";const gi=A.cva("inline-flex items-center justify-center gap-1.5 rounded-md border px-2.5 py-0.5 text-xs font-medium transition-colors whitespace-nowrap cursor-pointer group",{variants:{appearance:{filled:"",outline:"bg-transparent"},color:{primary:"",success:"",error:"",warning:"",info:"",link:"",pink:"",purple:"",yellow:"",orange:"",teal:"",blue:"",mauve:"",slate:"",lavender:"",sage:""}},compoundVariants:[{appearance:"filled",color:"primary",className:"border-transparent bg-primary text-text-on-primary hover:bg-primary-hover"},{appearance:"filled",color:"success",className:"border-transparent bg-success-bg text-success border-success-border hover:bg-success-bg-hover"},{appearance:"filled",color:"error",className:"border-transparent bg-error-bg text-error border-error-border hover:bg-error-bg-hover"},{appearance:"filled",color:"warning",className:"border-transparent bg-warning-bg text-warning border-warning-border hover:bg-warning-bg-hover"},{appearance:"filled",color:"info",className:"border-transparent bg-info-bg text-info border-info-border hover:bg-info-bg-hover"},{appearance:"filled",color:"link",className:"border-transparent bg-transparent text-link underline-offset-4 hover:underline hover:text-link"},{appearance:"filled",color:"pink",className:"border-transparent bg-pink-bg text-pink hover:bg-pink-bg-hover"},{appearance:"filled",color:"purple",className:"border-transparent bg-purple-bg text-purple hover:bg-purple-bg-hover"},{appearance:"filled",color:"yellow",className:"border-transparent bg-yellow-bg text-yellow hover:bg-yellow-bg-hover"},{appearance:"filled",color:"orange",className:"border-transparent bg-orange-bg text-orange hover:bg-orange-bg-hover"},{appearance:"filled",color:"teal",className:"border-transparent bg-teal-bg text-teal hover:bg-teal-bg-hover"},{appearance:"filled",color:"blue",className:"border-transparent bg-blue-bg text-blue hover:bg-blue-bg-hover"},{appearance:"filled",color:"mauve",className:"border-transparent bg-mauve-bg text-mauve hover:bg-mauve-bg-hover"},{appearance:"filled",color:"slate",className:"border-transparent bg-slate-bg text-slate hover:bg-slate-bg-hover"},{appearance:"filled",color:"lavender",className:"border-transparent bg-lavender-bg text-lavender hover:bg-lavender-bg-hover"},{appearance:"filled",color:"sage",className:"border-transparent bg-sage-bg text-sage hover:bg-sage-bg-hover"},{appearance:"outline",color:"primary",className:"border-primary-border text-primary hover:bg-primary-bg"},{appearance:"outline",color:"success",className:"border-success-border text-success hover:bg-success-bg"},{appearance:"outline",color:"error",className:"border-error-border text-error hover:bg-error-bg"},{appearance:"outline",color:"warning",className:"border-warning-border text-warning hover:bg-warning-bg"},{appearance:"outline",color:"info",className:"border-info-border text-info hover:bg-info-bg"},{appearance:"outline",color:"link",className:"border-transparent text-link underline-offset-4 hover:underline hover:text-link"},{appearance:"outline",color:"pink",className:"border-pink text-pink hover:bg-pink-bg"},{appearance:"outline",color:"purple",className:"border-purple text-purple hover:bg-purple-bg"},{appearance:"outline",color:"yellow",className:"border-yellow text-yellow hover:bg-yellow-bg"},{appearance:"outline",color:"orange",className:"border-orange text-orange hover:bg-orange-bg"},{appearance:"outline",color:"teal",className:"border-teal text-teal hover:bg-teal-bg"},{appearance:"outline",color:"blue",className:"border-blue text-blue hover:bg-blue-bg"},{appearance:"outline",color:"mauve",className:"border-mauve text-mauve hover:bg-mauve-bg"},{appearance:"outline",color:"slate",className:"border-slate text-slate hover:bg-slate-bg"},{appearance:"outline",color:"lavender",className:"border-lavender text-lavender hover:bg-lavender-bg"},{appearance:"outline",color:"sage",className:"border-sage text-sage hover:bg-sage-bg"}],defaultVariants:{appearance:"filled",color:"primary"}}),ka=y.forwardRef(({className:e,appearance:t="filled",color:a="primary",closable:s=!1,onClose:r,closeAriaLabel:o="Close tag",closeIcon:i,children:c,onMouseEnter:d,onMouseLeave:u,...p},x)=>{const[g,v]=y.useState(!1),f=s&&typeof r=="function",b=j=>{f&&v(!0),d?.(j)},h=j=>{f&&v(!1),u?.(j)},w=j=>{j.preventDefault(),j.stopPropagation(),r?.(j)},k=j=>{j.key!=="Enter"&&j.key!==" "||(j.preventDefault(),j.stopPropagation(),r?.(j))};return n.jsxs("span",{ref:x,className:l(gi({appearance:t,color:a}),f&&"gap-0 pr-1.5",e),onMouseEnter:b,onMouseLeave:h,...p,children:[c,f&&n.jsx(H.motion.div,{"aria-hidden":!0,initial:!1,animate:{width:g?16:0,marginLeft:g?2:0,opacity:g?1:0},transition:{duration:.2,ease:[.4,0,.2,1]},className:"flex min-w-0 shrink-0 overflow-hidden",style:{pointerEvents:g?"auto":"none"},children:n.jsx("button",{type:"button","aria-label":o,className:"inline-flex h-4 w-4 cursor-pointer items-center justify-center rounded-sm text-current/80 hover:text-current focus:outline-none",onClick:w,onKeyDown:k,children:i??n.jsx(gr,{className:"h-3 w-3"})})})]})});ka.displayName="Tag";const yi=y.forwardRef(({className:e,value:t,max:a=100,...s},r)=>{const o=t!=null?Math.min(a,Math.max(0,t)):void 0;return n.jsx(ms.Root,{ref:r,value:o??null,max:a,className:l("relative h-1 w-full overflow-hidden rounded-full bg-fill-secondary",e),style:{height:4},...s,children:n.jsx(ms.Indicator,{className:"h-full rounded-full bg-success transition-[width] duration-200 ease-out",style:{width:o!=null?`${o/a*100}%`:"0%"}})})});yi.displayName="Progress";const bm=124;function Te({headerIcon:e,headerTitle:t,headerRight:a,children:s,defaultExpanded:r=!0,contentPadding:o="var(--spacing-1.5) var(--spacing-2)",onToggle:i,collapsible:c=!0,footer:d,contentMaxHeight:u,showExpandAllBar:p=!1,maxHeight:x=bm,titleShimmer:g=!1,className:v}){const[f,b]=m.useState(r),[h,w]=m.useState(!1),[k,j]=m.useState(!1),[I,C]=m.useState(!1),[L,z]=m.useState(0),[S,O]=m.useState(p&&r),[re,_]=m.useState(!1),U=m.useRef(null);m.useLayoutEffect(()=>{if(!p||!f){C(!1),z(0),O(!1);return}O(!0);const $=()=>{const Q=U.current;if(!Q)return;const Y=Q.scrollHeight;z(Y),C(Y>x),O(!1)},ee=requestAnimationFrame($);let me=null;return U.current&&(me=new ResizeObserver($),me.observe(U.current)),()=>{cancelAnimationFrame(ee),me?.disconnect()}},[p,f,s,x]);const le=()=>{if(!c)return;const $=!f;_(!0),$&&p&&O(!0),b($),i?.($),setTimeout(()=>_(!1),300)},G=c&&(h||e==null)?n.jsx(ve,{className:l("w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 transition-transform duration-200 text-text-secondary",f?"rotate-0":"-rotate-90")}):e,ae=p&&f&&!u,ce=ae&&(S||I&&!k||re||!I&&L===0),R=u!=null?`${u}px`:ce?`${x}px`:ae&&I&&k&&L>0?`${Math.max(L+50,2e3)}px`:void 0;return n.jsxs("div",{className:l("rounded-md overflow-hidden border border-border-tertiary bg-fill-tertiary relative",v),children:[n.jsxs("div",{className:l("flex flex-row items-center gap-2 px-2 py-1.5 select-none",f&&"border-b border-border-tertiary"),onMouseEnter:()=>c&&w(!0),onMouseLeave:()=>c&&w(!1),children:[n.jsxs("div",{className:l("flex flex-row items-center gap-2 flex-1 min-w-0",c&&"cursor-pointer"),onClick:le,role:c?"button":void 0,"aria-expanded":c?f:void 0,children:[n.jsx("div",{className:"w-[var(--font-size-sm)] h-[var(--font-size-sm)] flex items-center justify-center shrink-0 text-text-secondary [&>svg]:w-[var(--font-size-sm)] [&>svg]:h-[var(--font-size-sm)]",children:G}),n.jsx("div",{className:"min-w-0 flex-1 flex items-center text-xs leading-xs text-text-secondary",children:g?n.jsx("span",{className:"animate-pulse",children:t}):t})]}),a!=null&&n.jsx("div",{className:"flex items-center gap-1.5 shrink-0 relative z-10",onClick:$=>$.stopPropagation(),onMouseDown:$=>$.stopPropagation(),children:a})]}),n.jsx(H.AnimatePresence,{initial:!1,children:f&&n.jsxs(H.motion.div,{...Br,className:l("overflow-hidden",re&&"select-none"),children:[ae&&n.jsx("div",{ref:U,className:"absolute invisible h-auto w-full pointer-events-none",style:{padding:o},"aria-hidden":!0,children:s}),n.jsxs("div",{className:l("relative overflow-x-hidden bg-bg-base scrollbar-auto",u!=null?"overflow-y-auto":ce?"overflow-y-hidden":"overflow-y-visible",I&&"transition-[max-height] duration-300 ease-in-out"),style:{padding:o,maxHeight:R},children:[s,ae&&I&&L>x&&n.jsx("div",{className:l("absolute bottom-0 left-0 right-0 pointer-events-none h-6 bg-gradient-to-b from-transparent to-[var(--color-bg-base)] transition-opacity duration-300",k?"opacity-0":"opacity-100")})]}),ae&&I&&n.jsx("button",{type:"button",className:"w-full h-4 flex items-center justify-center bg-bg-base border-0 cursor-pointer text-text-secondary hover:text-text transition-colors",onClick:$=>{$.stopPropagation(),_(!0),j(ee=>!ee),setTimeout(()=>_(!1),300)},"aria-label":k?"收起":"展开全部",children:n.jsx(ve,{className:l("w-[var(--font-size-sm)] h-[var(--font-size-sm)] transition-transform duration-200",k?"rotate-180":"rotate-0")})})]})}),d!=null&&n.jsx("div",{className:"flex flex-row items-center gap-2 px-2 py-1.5 border-t border-border-tertiary",children:d})]})}Te.displayName="CollapsibleCard";const vm="w-4 h-4",bi=m.forwardRef(({items:e,selectedId:t,onItemClick:a,width:s="w-52",className:r,moreIcon:o,...i},c)=>{const[d,u]=m.useState(null),p="flex flex-col gap-1.5 rounded-md bg-transparent",x=o??n.jsx(ea,{className:vm});return n.jsx("div",{ref:c,className:l(p,s,r),...i,children:e.map(g=>{const v=t===g.id,f=g.disabled,b=d===g.id;return n.jsxs("div",{className:l("group flex items-center gap-2 py-1 px-2 rounded-md text-sm leading-sm transition-colors","focus-within:outline-none min-w-0",f&&"opacity-50 cursor-not-allowed",!f&&"cursor-pointer",v?"bg-fill-secondary text-text":"bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text"),children:[n.jsx("button",{onClick:()=>{f||a?.(g),u(null)},disabled:f,className:"flex-1 text-left truncate min-w-0 outline-none bg-transparent border-none p-0 cursor-pointer",children:g.label}),g.actions&&g.actions.length>0?n.jsx("div",{onClick:h=>h.stopPropagation(),children:n.jsxs(We,{open:b,onOpenChange:h=>{u(h?g.id:null)},children:[n.jsx(Ue,{asChild:!0,children:n.jsx("button",{className:l("flex items-center justify-center p-1 rounded outline-none transition-all duration-200 relative z-10 cursor-pointer hover:bg-fill-primary"),style:{pointerEvents:"auto"},onClick:h=>h.stopPropagation(),onMouseDown:h=>h.stopPropagation(),children:n.jsx("span",{className:l("transition-opacity pointer-events-none flex items-center justify-center",v?"opacity-100":"opacity-0 group-hover:opacity-100"),children:g.icon??n.jsx("span",{className:l("w-4 h-4 inline-flex items-center justify-center",v?"text-text":"text-text-secondary"),children:x})})})}),n.jsx(Oe,{align:"end",children:g.actions.map(h=>n.jsxs(Se,{variant:h.destructive?"destructive":"default",onClick:w=>{w.stopPropagation(),u(null),h.onClick?.()},children:[h.icon&&n.jsx("span",{className:"mr-2 w-4 h-4 flex items-center justify-center",children:h.icon}),h.label]},h.id))})]})}):n.jsx("span",{className:"flex-shrink-0 w-4 h-4 flex items-center justify-center",onClick:h=>h.stopPropagation(),children:g.icon?n.jsx("span",{className:l("transition-opacity pointer-events-none",v?"opacity-100":"opacity-0 group-hover:opacity-100"),children:g.icon}):n.jsx("span",{className:l("w-4 h-4 inline-flex items-center justify-center transition-opacity pointer-events-none",v?"opacity-100 text-text":"opacity-0 group-hover:opacity-100 text-text-secondary"),children:x})})]},g.id)})})});bi.displayName="SidebarMenu";const wm="w-4 h-4",vi=m.forwardRef((e,t)=>{const a=N("more",wm);return n.jsx(bi,{ref:t,moreIcon:a,...e})});vi.displayName="SidebarMenu";const km=A.cva(["flex w-full min-w-0 rounded-lg border border-border-tertiary bg-bg-container text-text transition-colors","placeholder:text-text-tertiary","file:border-0 file:bg-transparent file:font-medium file:text-text","outline-none focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0","focus:border-border-secondary focus-visible:border-border-secondary","disabled:cursor-not-allowed disabled:opacity-50","aria-invalid:border-error aria-invalid:ring-0"].join(" "),{variants:{size:{sm:"h-7 px-2 py-0.5 text-xs file:text-xs",md:"h-9 px-3 py-1 text-sm file:text-sm",lg:"h-11 px-4 py-1.5 text-base file:text-base"}},defaultVariants:{size:"md"}}),ja=y.forwardRef(({className:e,type:t,size:a="md",...s},r)=>n.jsx("input",{type:t,ref:r,className:l(km({size:a}),e),...s}));ja.displayName="Input";const jm=A.cva(["flex w-full rounded-lg border border-border-tertiary bg-bg-container text-text transition-colors","placeholder:text-text-tertiary","outline-none focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0","focus:border-border-secondary focus-visible:border-border-secondary","disabled:cursor-not-allowed disabled:opacity-50","aria-invalid:border-error aria-invalid:ring-0"].join(" "),{variants:{size:{sm:"min-h-12 px-2 py-1 text-xs",md:"min-h-16 px-3 py-2 text-sm",lg:"min-h-20 px-4 py-2.5 text-base"}},defaultVariants:{size:"md"}}),Na=y.forwardRef(({className:e,size:t="md",...a},s)=>n.jsx("textarea",{ref:s,className:l(jm({size:t}),e),...a}));Na.displayName="Textarea";function Nm({className:e,...t}){return n.jsx("div",{"data-slot":"input-group",role:"group",className:l("group/input-group relative flex w-full items-center rounded-md border border-border-tertiary shadow-sm transition-[color,box-shadow] outline-none dark:bg-input/30","h-9 min-w-0 has-[>textarea]:h-auto","has-[>[data-align=inline-start]]:[&>input]:pl-2","has-[>[data-align=inline-end]]:[&>input]:pr-2","has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3","has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3","has-[[data-slot=input-group-control]:focus-visible]:border-primary-border has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot=input-group-control]:focus-visible]:ring-primary-border/50","has-[[data-slot][aria-invalid=true]]:border-error has-[[data-slot][aria-invalid=true]]:ring-error/20 dark:has-[[data-slot][aria-invalid=true]]:ring-error/40",e),...t})}const Cm=A.cva("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-text-tertiary select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]","inline-end":"order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]","block-start":"order-first w-full justify-start px-3 pt-3 group-has-[>input]/input-group:pt-2.5 [.border-b]:pb-3","block-end":"order-last w-full justify-start px-3 pb-3 group-has-[>input]/input-group:pb-2.5 [.border-t]:pt-3"}},defaultVariants:{align:"inline-start"}});function Sm({className:e,align:t="inline-start",...a}){return n.jsx("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:l(Cm({align:t}),e),onClick:s=>{s.target.closest("button")||s.currentTarget.parentElement?.querySelector("input")?.focus()},...a})}const Im=A.cva("flex items-center gap-2 text-sm shadow-none",{variants:{size:{xs:"h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-2 has-[>svg]:px-2 [&>svg:not([class*='size-'])]:size-3.5",sm:"h-8 gap-1.5 rounded-md px-2.5 has-[>svg]:px-2.5","icon-xs":"size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function Rm({className:e,type:t="button",variant:a="ghost",size:s="xs",...r}){return n.jsx(W,{type:t,"data-size":s,variant:a,className:l(Im({size:s}),e),...r})}function Tm({className:e,...t}){return n.jsx("span",{className:l("flex items-center gap-2 text-sm text-text-tertiary [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",e),...t})}function Mm({className:e,...t}){return n.jsx(ja,{"data-slot":"input-group-control",className:l("flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent",e),...t})}function Pm({className:e,...t}){return n.jsx(Na,{"data-slot":"input-group-control",className:l("flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",e),...t})}function zm({className:e,containerClassName:t,...a}){return n.jsx(er.OTPInput,{"data-slot":"input-otp",containerClassName:l("flex items-center gap-2 has-disabled:opacity-50",t),className:l("disabled:cursor-not-allowed",e),...a})}function Lm({className:e,...t}){return n.jsx("div",{"data-slot":"input-otp-group",className:l("flex items-center",e),...t})}function Dm({index:e,className:t,...a}){const s=y.useContext(er.OTPInputContext),{char:r,hasFakeCaret:o,isActive:i}=s?.slots[e]??{};return n.jsxs("div",{"data-slot":"input-otp-slot","data-active":i,className:l("relative flex h-9 w-9 items-center justify-center border-y border-r border-border-tertiary text-sm shadow-sm transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md aria-invalid:border-error data-[active=true]:z-10 data-[active=true]:border-primary-border data-[active=true]:ring-[3px] data-[active=true]:ring-primary-border/50 data-[active=true]:aria-invalid:border-error data-[active=true]:aria-invalid:ring-error/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-error/40",t),...a,children:[r,o&&n.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:n.jsx("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})}function Am({...e}){return n.jsx("div",{"data-slot":"input-otp-separator",role:"separator",...e,children:n.jsx(xe.MinusIcon,{})})}const Ca=y.forwardRef(({className:e,...t},a)=>n.jsx(tr.Root,{ref:a,className:l("flex items-center gap-2 text-sm font-medium leading-none text-text","peer-disabled:cursor-not-allowed peer-disabled:opacity-50","has-[[disabled]]:cursor-not-allowed has-[[disabled]]:opacity-50",e),...t}));Ca.displayName=tr.Root.displayName;const ln=y.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...s},r)=>n.jsx(nr.Root,{ref:r,decorative:a,orientation:t,className:l("shrink-0 bg-border-tertiary","data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full","data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...s}));ln.displayName=nr.Root.displayName;function _m({className:e,...t}){return n.jsx("fieldset",{"data-slot":"field-set",className:l("flex flex-col gap-6","has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",e),...t})}function Om({className:e,variant:t="legend",...a}){return n.jsx("legend",{"data-slot":"field-legend","data-variant":t,className:l("mb-3 font-medium","data-[variant=legend]:text-base","data-[variant=label]:text-sm",e),...a})}function Em({className:e,...t}){return n.jsx("div",{"data-slot":"field-group",className:l("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",e),...t})}const Fm=A.cva("group/field flex w-full gap-3 data-[invalid=true]:text-error",{variants:{orientation:{vertical:["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["flex-col @md/field-group:flex-row @md/field-group:items-center [&>*]:w-full @md/field-group:[&>*]:w-auto [&>.sr-only]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function $m({className:e,orientation:t="vertical",...a}){return n.jsx("div",{role:"group","data-slot":"field","data-orientation":t,className:l(Fm({orientation:t}),e),...a})}function Bm({className:e,...t}){return n.jsx("div",{"data-slot":"field-content",className:l("group/field-content flex flex-1 flex-col gap-1.5 leading-snug",e),...t})}function Hm({className:e,...t}){return n.jsx(Ca,{"data-slot":"field-label",className:l("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4","has-data-[state=checked]:border-primary has-data-[state=checked]:bg-primary/5 dark:has-data-[state=checked]:bg-primary/10",e),...t})}function Vm({className:e,...t}){return n.jsx("div",{"data-slot":"field-label",className:l("flex w-fit items-center gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50",e),...t})}function Gm({className:e,...t}){return n.jsx("p",{"data-slot":"field-description",className:l("text-sm leading-normal font-normal text-text-tertiary group-has-[[data-orientation=horizontal]]/field:text-balance","last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5","[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...t})}function qm({children:e,className:t,...a}){return n.jsxs("div",{"data-slot":"field-separator","data-content":!!e,className:l("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",t),...a,children:[n.jsx(ln,{className:"absolute inset-0 top-1/2"}),e&&n.jsx("span",{className:"relative mx-auto block w-fit bg-bg-base px-2 text-text-tertiary","data-slot":"field-separator-content",children:e})]})}function Wm({className:e,children:t,errors:a,...s}){const r=m.useMemo(()=>{if(t)return t;if(!a?.length)return null;const o=[...new Map(a.map(i=>[i?.message,i])).values()];return o?.length==1?o[0]?.message:n.jsx("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:o.map((i,c)=>i?.message&&n.jsx("li",{children:i.message},c))})},[t,a]);return r?n.jsx("div",{role:"alert","data-slot":"field-error",className:l("text-sm font-normal text-error",e),...s,children:r}):null}const wi=A.cva("group peer shrink-0 rounded-sm border border-border-tertiary bg-bg-container outline-offset-2 transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary-border disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-text-on-primary data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-text-on-primary",{variants:{size:{sm:"size-3.5",md:"size-4",lg:"size-5"}},defaultVariants:{size:"md"}}),ki=y.forwardRef(({className:e,size:t="md",...a},s)=>n.jsx(En.Root,{ref:s,className:l(wi({size:t}),e),...a,children:n.jsxs(En.Indicator,{className:"flex items-center justify-center text-current",children:[n.jsx(be,{className:"size-[0.875em] group-data-[state=indeterminate]:hidden"}),n.jsx("span",{className:"hidden h-[0.125em] w-[0.625em] rounded-sm bg-current group-data-[state=indeterminate]:block"})]})}));ki.displayName=En.Root.displayName;const Um=Nd.Root;function Qm({className:e,...t}){return n.jsx("div",{"data-slot":"empty",className:l("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12",e),...t})}function Ym({className:e,...t}){return n.jsx("div",{"data-slot":"empty-header",className:l("flex max-w-sm flex-col items-center gap-2 text-center",e),...t})}const Xm=A.cva("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"flex size-10 shrink-0 items-center justify-center rounded-lg bg-fill-tertiary text-text [&_svg:not([class*='size-'])]:size-6"}},defaultVariants:{variant:"default"}});function Zm({className:e,variant:t="default",...a}){return n.jsx("div",{"data-slot":"empty-icon","data-variant":t,className:l(Xm({variant:t,className:e})),...a})}function Km({className:e,...t}){return n.jsx("div",{"data-slot":"empty-title",className:l("text-lg font-medium tracking-tight",e),...t})}function Jm({className:e,...t}){return n.jsx("div",{"data-slot":"empty-description",className:l("text-sm/relaxed text-text-tertiary [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...t})}function e0({className:e,...t}){return n.jsx("div",{"data-slot":"empty-content",className:l("flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance",e),...t})}function t0({className:e,...t}){return n.jsx("div",{role:"list","data-slot":"item-group",className:l("group/item-group flex flex-col",e),...t})}function n0({className:e,...t}){return n.jsx(ln,{"data-slot":"item-separator",orientation:"horizontal",className:l("my-0",e),...t})}const a0=A.cva("group/item flex flex-wrap items-center rounded-md border border-transparent text-sm transition-colors duration-100 outline-none focus-visible:border-primary-border focus-visible:ring-[3px] focus-visible:ring-primary-border/50 [a]:transition-colors [a]:hover:bg-fill-secondary/50",{variants:{variant:{default:"bg-transparent",outline:"border-border",muted:"bg-fill-tertiary/50"},size:{default:"gap-4 p-4",sm:"gap-2.5 px-4 py-3"}},defaultVariants:{variant:"default",size:"default"}});function s0({className:e,variant:t="default",size:a="default",asChild:s=!1,...r}){const o=s?V.Slot.Root:"div";return n.jsx(o,{"data-slot":"item","data-variant":t,"data-size":a,className:l(a0({variant:t,size:a,className:e})),...r})}const r0=A.cva("flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none",{variants:{variant:{default:"bg-transparent",icon:"size-8 rounded-sm border bg-fill-tertiary [&_svg:not([class*='size-'])]:size-4",image:"size-10 overflow-hidden rounded-sm [&_img]:size-full [&_img]:object-cover"}},defaultVariants:{variant:"default"}});function o0({className:e,variant:t="default",...a}){return n.jsx("div",{"data-slot":"item-media","data-variant":t,className:l(r0({variant:t,className:e})),...a})}function i0({className:e,...t}){return n.jsx("div",{"data-slot":"item-content",className:l("flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none",e),...t})}function l0({className:e,...t}){return n.jsx("div",{"data-slot":"item-title",className:l("flex w-fit items-center gap-2 text-sm leading-snug font-medium",e),...t})}function c0({className:e,...t}){return n.jsx("p",{"data-slot":"item-description",className:l("line-clamp-2 text-sm leading-normal font-normal text-balance text-text-tertiary","[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...t})}function d0({className:e,...t}){return n.jsx("div",{"data-slot":"item-actions",className:l("flex items-center gap-2",e),...t})}function u0({className:e,...t}){return n.jsx("div",{"data-slot":"item-header",className:l("flex basis-full items-center justify-between gap-2",e),...t})}function m0({className:e,...t}){return n.jsx("div",{"data-slot":"item-footer",className:l("flex basis-full items-center justify-between gap-2",e),...t})}const p0=A.cva("flex flex-col gap-4 rounded-xl text-text py-6",{variants:{variant:{outline:"border border-border-tertiary bg-bg-container shadow-sm transition-shadow hover:shadow-md",filled:"bg-fill-tertiary",ghost:"bg-transparent"}},defaultVariants:{variant:"outline"}}),ji=y.forwardRef(({className:e,variant:t="outline",...a},s)=>n.jsx("div",{ref:s,className:l(p0({variant:t}),e),...a}));ji.displayName="Card";const Ni=y.forwardRef(({className:e,...t},a)=>n.jsx("div",{ref:a,className:l("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6","has-data-[slot=card-action]:grid-cols-[1fr_auto]","[.border-b]:pb-4",e),...t}));Ni.displayName="CardHeader";const Ci=y.forwardRef(({className:e,...t},a)=>n.jsx("div",{ref:a,className:l("text-base font-semibold leading-none text-text",e),...t}));Ci.displayName="CardTitle";const Si=y.forwardRef(({className:e,...t},a)=>n.jsx("div",{ref:a,className:l("text-sm leading-6 text-text-tertiary",e),...t}));Si.displayName="CardDescription";const Ii=y.forwardRef(({className:e,...t},a)=>n.jsx("div",{ref:a,"data-slot":"card-action",className:l("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t}));Ii.displayName="CardAction";const Ri=y.forwardRef(({className:e,...t},a)=>n.jsx("div",{ref:a,className:l("px-6",e),...t}));Ri.displayName="CardContent";const Ti=y.forwardRef(({className:e,...t},a)=>n.jsx("div",{ref:a,className:l("flex items-center px-6 [.border-t]:pt-4",e),...t}));Ti.displayName="CardFooter";const Mi=A.cva("relative grid w-full items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm",{variants:{variant:{default:"border-border-tertiary bg-bg-container text-text [&>svg]:text-text-secondary",info:"border-primary-border bg-primary-bg text-text [&>svg]:text-primary",success:"border-success-border bg-success-bg text-text [&>svg]:text-success",warning:"border-warning-border bg-warning-bg text-text [&>svg]:text-warning",destructive:"border-error-border bg-error-bg text-text [&>svg]:text-error"}},defaultVariants:{variant:"default"}}),Pi=y.forwardRef(({className:e,variant:t,...a},s)=>n.jsx("div",{ref:s,role:"alert",className:l(Mi({variant:t}),"has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-3","[&>svg]:size-4 [&>svg]:translate-y-0.5",e),...a}));Pi.displayName="Alert";const zi=y.forwardRef(({className:e,...t},a)=>n.jsx("div",{ref:a,className:l("col-start-2 min-h-4 font-medium leading-5 tracking-tight text-text","line-clamp-1",e),...t}));zi.displayName="AlertTitle";const Li=y.forwardRef(({className:e,...t},a)=>n.jsx("div",{ref:a,className:l("col-start-2 grid justify-items-start gap-1 text-sm leading-6 text-text-secondary","[&_p]:leading-6",e),...t}));Li.displayName="AlertDescription";const Di=y.forwardRef(({...e},t)=>n.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));Di.displayName="Breadcrumb";const Ai=y.forwardRef(({className:e,...t},a)=>n.jsx("ol",{ref:a,className:l("flex flex-wrap items-center gap-1.5 text-sm text-text-tertiary break-words sm:gap-2.5",e),...t}));Ai.displayName="BreadcrumbList";const _i=y.forwardRef(({className:e,...t},a)=>n.jsx("li",{ref:a,className:l("inline-flex items-center gap-1.5",e),...t}));_i.displayName="BreadcrumbItem";const Oi=y.forwardRef(({className:e,asChild:t,...a},s)=>t?n.jsx("span",{className:l("transition-colors hover:text-text",e),...a}):n.jsx("a",{ref:s,className:l("transition-colors hover:text-text",e),...a}));Oi.displayName="BreadcrumbLink";const Ei=y.forwardRef(({className:e,...t},a)=>n.jsx("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:l("font-normal text-text",e),...t}));Ei.displayName="BreadcrumbPage";const Fi=({children:e,className:t,...a})=>n.jsx("li",{role:"presentation","aria-hidden":"true",className:l("[&>svg]:size-3.5 text-text-tertiary",t),...a,children:e??n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,children:n.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"})})});Fi.displayName="BreadcrumbSeparator";const $i=({className:e,...t})=>n.jsxs("span",{role:"presentation","aria-hidden":"true",className:l("flex size-9 items-center justify-center",e),...t,children:[n.jsx(ea,{className:"size-4"}),n.jsx("span",{className:"sr-only",children:"More"})]});$i.displayName="BreadcrumbEllipsis";const Bi=Z.Root,x0=Z.Trigger,Hi=Z.Portal,f0=Z.Close,Sa=y.forwardRef(({className:e,...t},a)=>n.jsx(Z.Overlay,{ref:a,asChild:!0,...t,children:n.jsx(H.motion.div,{className:l("fixed inset-0 z-50 bg-bg-mask/60",e),...on})}));Sa.displayName=Z.Overlay.displayName;const h0=A.cva("font-sans fixed left-1/2 top-1/2 z-50 w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 rounded-xl border border-border bg-bg-base text-text shadow-lg p-6 outline-none",{variants:{size:{sm:"max-w-sm",default:"max-w-lg",lg:"max-w-2xl",xl:"max-w-4xl"}},defaultVariants:{size:"default"}}),Ia=y.forwardRef(({className:e,children:t,size:a="default",hideCloseButton:s=!1,dataStyle:r,dataTheme:o,...i},c)=>{const d=ye(),u=r!==void 0?{"data-style":r,"data-theme":o??d["data-theme"]??""}:d;return n.jsx(Hi,{children:n.jsxs("div",{style:{display:"contents"},...u,children:[n.jsx(Sa,{}),n.jsx(Z.Content,{ref:c,asChild:!0,...i,children:n.jsxs(H.motion.div,{className:l(h0({size:a}),e),...ta,children:[t,!s&&n.jsxs(Z.Close,{className:l("absolute right-4 top-4 inline-flex size-7 items-center justify-center rounded-md text-text-tertiary opacity-70 transition-colors","hover:bg-fill-secondary hover:text-text hover:opacity-100","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-border","disabled:pointer-events-none"),children:[n.jsx(Re,{className:"size-4"}),n.jsx("span",{className:"sr-only",children:"Close"})]})]})})]})})});Ia.displayName=Z.Content.displayName;const Ra=y.forwardRef(({className:e,...t},a)=>n.jsx("div",{ref:a,className:l("flex flex-col gap-2 text-left",e),...t}));Ra.displayName="DialogHeader";const Vi=y.forwardRef(({className:e,...t},a)=>n.jsx("div",{ref:a,className:l("mt-6 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t}));Vi.displayName="DialogFooter";const Ta=y.forwardRef(({className:e,...t},a)=>n.jsx(Z.Title,{ref:a,className:l("font-sans text-base font-medium leading-6 text-text",e),...t}));Ta.displayName=Z.Title.displayName;const Ma=y.forwardRef(({className:e,...t},a)=>n.jsx(Z.Description,{ref:a,className:l("text-sm leading-6 text-text-tertiary",e),...t}));Ma.displayName=Z.Description.displayName;const Gi=y.forwardRef((e,t)=>{const{style:a,theme:s}=ue();return n.jsx(Ia,{ref:t,dataStyle:a,dataTheme:s,...e})});Gi.displayName="DialogContent";const qi=Z.Root,Wi=Z.Trigger,Ui=Z.Close,Pa=Z.Portal,cn=y.forwardRef(({className:e,...t},a)=>n.jsx(Z.Overlay,{ref:a,asChild:!0,...t,children:n.jsx(H.motion.div,{className:l("fixed inset-0 z-50 bg-bg-mask/60",e),...on})}));cn.displayName=Z.Overlay.displayName;const Qi=A.cva("fixed z-50 gap-4 bg-bg-base text-text shadow-lg border-border p-6 outline-none flex flex-col",{variants:{side:{top:"inset-x-0 top-0 border-b",bottom:"inset-x-0 bottom-0 border-t",left:"inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm"}},defaultVariants:{side:"right"}}),g0={top:{initial:{y:"-100%"},animate:{y:0},exit:{y:"-100%"}},bottom:{initial:{y:"100%"},animate:{y:0},exit:{y:"100%"}},left:{initial:{x:"-100%"},animate:{x:0},exit:{x:"-100%"}},right:{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"}}},za=y.forwardRef(({side:e="right",className:t,children:a,showCloseButton:s=!0,dataStyle:r,dataTheme:o,...i},c)=>{const d=ye(),u=r!==void 0?{"data-style":r,"data-theme":o??d["data-theme"]??""}:d,p=g0[e];return n.jsx(Pa,{children:n.jsxs("div",{style:{display:"contents"},...u,children:[n.jsx(cn,{}),n.jsx(Z.Content,{ref:c,asChild:!0,...i,children:n.jsxs(H.motion.div,{className:l(Qi({side:e}),t),initial:p.initial,animate:p.animate,exit:p.exit,transition:{duration:Ce.slow,ease:Pe.standard},children:[a,s&&n.jsxs(Z.Close,{className:l("absolute right-4 top-4 inline-flex size-7 items-center justify-center rounded-md text-text-tertiary opacity-70 transition-colors","hover:bg-fill-secondary hover:text-text hover:opacity-100","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-border","disabled:pointer-events-none"),children:[n.jsx(Re,{className:"size-4"}),n.jsx("span",{className:"sr-only",children:"Close"})]})]})})]})})});za.displayName=Z.Content.displayName;const La=y.forwardRef(({className:e,...t},a)=>n.jsx("div",{ref:a,className:l("flex flex-col gap-1.5",e),...t}));La.displayName="DrawerHeader";const Da=y.forwardRef(({className:e,...t},a)=>n.jsx("div",{ref:a,className:l("mt-auto flex flex-col gap-2",e),...t}));Da.displayName="DrawerFooter";const Aa=y.forwardRef(({className:e,...t},a)=>n.jsx(Z.Title,{ref:a,className:l("text-base font-medium leading-6 text-text",e),...t}));Aa.displayName=Z.Title.displayName;const _a=y.forwardRef(({className:e,...t},a)=>n.jsx(Z.Description,{ref:a,className:l("text-sm leading-6 text-text-tertiary",e),...t}));_a.displayName=Z.Description.displayName;const Yi=y.forwardRef((e,t)=>{const{style:a,theme:s}=ue();return n.jsx(za,{ref:t,dataStyle:a,dataTheme:s,...e})});Yi.displayName="DrawerContent";const Oa=st.Root,Ea=st.Trigger,y0=st.Anchor,dn=y.forwardRef(({className:e,align:t="center",sideOffset:a=4,children:s,dataStyle:r,dataTheme:o,...i},c)=>{const d=ye(),u=r!==void 0?{"data-style":r,"data-theme":o??d["data-theme"]??""}:d;return n.jsx(st.Portal,{children:n.jsx("div",{style:{display:"contents"},...u,children:n.jsx(st.Content,{ref:c,align:t,sideOffset:a,className:l("z-50 w-72 rounded-lg border border-border-tertiary bg-bg-container p-4 text-sm text-text shadow-md outline-none",e),...i,children:n.jsx(H.motion.div,{...ut,children:s})})})})});dn.displayName=st.Content.displayName;const Xi=y.forwardRef((e,t)=>{const{style:a,theme:s}=ue();return n.jsx(dn,{ref:t,dataStyle:a,dataTheme:s,...e})});Xi.displayName="PopoverContent";const b0=yt.Root,v0=yt.Trigger,Zi=y.forwardRef(({className:e,align:t="center",sideOffset:a=4,children:s,dataStyle:r,dataTheme:o,...i},c)=>{const d=ye(),u=r!==void 0?{"data-style":r,"data-theme":o??d["data-theme"]??""}:d;return n.jsx(yt.Portal,{children:n.jsx("div",{style:{display:"contents"},...u,children:n.jsx(yt.Content,{ref:c,align:t,sideOffset:a,className:l("z-50 w-64 rounded-lg border border-border-tertiary bg-bg-container p-4 text-sm text-text shadow-md outline-none",e),...i,children:n.jsx(H.motion.div,{...ut,children:s})})})})});Zi.displayName=yt.Content.displayName;const Ki=y.forwardRef((e,t)=>{const{style:a,theme:s}=ue();return n.jsx(Zi,{ref:t,dataStyle:a,dataTheme:s,...e})});Ki.displayName="HoverCardContent";const w0=K.Root,k0=K.Trigger,j0=K.Group,N0=K.Portal,C0=K.Sub,S0=K.RadioGroup,Ji="z-50 min-w-32 overflow-hidden rounded-lg border border-border-tertiary bg-bg-container p-1 text-text shadow-lg outline-none",el=y.forwardRef(({className:e,children:t,dataStyle:a,dataTheme:s,...r},o)=>{const i=ye(),c=a!==void 0?{"data-style":a,"data-theme":s??i["data-theme"]??""}:i;return n.jsx(K.Portal,{children:n.jsx("div",{style:{display:"contents"},...c,children:n.jsx(K.Content,{ref:o,className:l(Ji,e),...r,children:n.jsx(H.motion.div,{...ut,children:t})})})})});el.displayName=K.Content.displayName;const I0=A.cva("flex h-9 w-full cursor-pointer select-none items-center gap-2 rounded-sm px-3 text-sm outline-none hover:bg-fill-secondary focus:bg-fill-secondary data-[highlighted]:bg-fill-secondary data-[state=open]:bg-fill-secondary",{variants:{inset:{true:"pl-8 pr-3",false:""}},defaultVariants:{inset:!1}}),tl=y.forwardRef(({className:e,inset:t=!1,children:a,...s},r)=>n.jsxs(K.SubTrigger,{ref:r,className:l(I0({inset:t}),e),...s,children:[a,n.jsx("span",{className:"ml-auto flex h-4 w-4 items-center justify-center",children:n.jsx(dt,{className:"h-4 w-4"})})]}));tl.displayName=K.SubTrigger.displayName;const nl=y.forwardRef(({className:e,dataStyle:t,dataTheme:a,...s},r)=>{const o=ye(),i=t!==void 0?{"data-style":t,"data-theme":a??o["data-theme"]??""}:o;return n.jsx(K.Portal,{children:n.jsx("div",{style:{display:"contents"},...i,children:n.jsx(K.SubContent,{ref:r,className:l(Ji,e),...s})})})});nl.displayName=K.SubContent.displayName;const R0=A.cva("relative flex h-9 w-full min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm px-3 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50",{variants:{variant:{default:"hover:bg-fill-secondary focus:bg-fill-secondary focus:text-text data-[highlighted]:bg-fill-secondary data-[highlighted]:text-text",destructive:"text-error hover:bg-error-bg focus:bg-error-bg focus:text-error data-[highlighted]:bg-error-bg data-[highlighted]:text-error"},inset:{true:"pl-8 pr-3",false:""}},defaultVariants:{variant:"default",inset:!1}}),al=y.forwardRef(({className:e,inset:t=!1,variant:a="default",...s},r)=>n.jsx(K.Item,{ref:r,className:l(R0({variant:a,inset:t}),e),...s}));al.displayName=K.Item.displayName;const sl="relative flex h-9 w-full min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm pl-8 pr-3 text-sm outline-none hover:bg-fill-secondary focus:bg-fill-secondary focus:text-text data-[highlighted]:bg-fill-secondary data-[highlighted]:text-text data-[disabled]:pointer-events-none data-[disabled]:opacity-50",rl=y.forwardRef(({className:e,children:t,checked:a,...s},r)=>n.jsxs(K.CheckboxItem,{ref:r,checked:a,className:l(sl,e),...s,children:[n.jsx("span",{className:"absolute left-2 top-1/2 flex h-3.5 w-3.5 -translate-y-1/2 items-center justify-center",children:n.jsx(K.ItemIndicator,{children:n.jsx(be,{className:"h-4 w-4"})})}),t]}));rl.displayName=K.CheckboxItem.displayName;const ol=y.forwardRef(({className:e,children:t,...a},s)=>n.jsxs(K.RadioItem,{ref:s,className:l(sl,e),...a,children:[n.jsx("span",{className:"absolute left-2 top-1/2 flex h-3.5 w-3.5 -translate-y-1/2 items-center justify-center",children:n.jsx(K.ItemIndicator,{children:n.jsx("div",{className:"h-2 w-2 rounded-full bg-primary"})})}),t]}));ol.displayName=K.RadioItem.displayName;const T0=A.cva("flex h-9 items-center px-3 text-sm font-semibold text-text-secondary",{variants:{inset:{true:"pl-8 pr-3",false:""}},defaultVariants:{inset:!1}}),il=y.forwardRef(({className:e,inset:t=!1,...a},s)=>n.jsx(K.Label,{ref:s,className:l(T0({inset:t}),e),...a}));il.displayName=K.Label.displayName;const ll=y.forwardRef(({className:e,...t},a)=>n.jsx(K.Separator,{ref:a,className:l("my-1 mx-1 h-px bg-border-tertiary",e),...t}));ll.displayName=K.Separator.displayName;const cl=({className:e,...t})=>n.jsx("span",{className:l("ml-auto text-xs tracking-widest text-text-tertiary",e),...t});cl.displayName="ContextMenuShortcut";const dl=y.forwardRef((e,t)=>{const{style:a,theme:s}=ue();return n.jsx(el,{ref:t,dataStyle:a,dataTheme:s,...e})});dl.displayName="ContextMenuContent";const ul=y.forwardRef((e,t)=>{const{style:a,theme:s}=ue();return n.jsx(nl,{ref:t,dataStyle:a,dataTheme:s,...e})});ul.displayName="ContextMenuSubContent";function M0({className:e,...t}){return n.jsx(V.Menubar.Root,{"data-slot":"menubar",className:l("flex h-9 items-center gap-1 rounded-md border bg-bg-base p-1 shadow-sm",e),...t})}function P0({...e}){return n.jsx(V.Menubar.Menu,{"data-slot":"menubar-menu",...e})}function z0({...e}){return n.jsx(V.Menubar.Group,{"data-slot":"menubar-group",...e})}function ml({...e}){return n.jsx(V.Menubar.Portal,{"data-slot":"menubar-portal",...e})}function L0({...e}){return n.jsx(V.Menubar.RadioGroup,{"data-slot":"menubar-radio-group",...e})}function D0({className:e,...t}){return n.jsx(V.Menubar.Trigger,{"data-slot":"menubar-trigger",className:l("flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-none select-none focus:bg-fill-secondary focus:text-text data-[state=open]:bg-fill-secondary data-[state=open]:text-text",e),...t})}function A0({className:e,align:t="start",alignOffset:a=-4,sideOffset:s=8,...r}){return n.jsx(ml,{children:n.jsx(V.Menubar.Content,{"data-slot":"menubar-content",align:t,alignOffset:a,sideOffset:s,className:l("z-50 min-w-48 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border bg-bg-container p-1 text-text shadow-md 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 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e),...r})})}function _0({className:e,inset:t,variant:a="default",...s}){return n.jsx(V.Menubar.Item,{"data-slot":"menubar-item","data-inset":t,"data-variant":a,className:l("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none focus:bg-fill-secondary focus:text-text data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-error data-[variant=destructive]:focus:bg-error/10 data-[variant=destructive]:focus:text-error dark:data-[variant=destructive]:focus:bg-error/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-text-tertiary data-[variant=destructive]:*:[svg]:text-error!",e),...s})}function O0({className:e,children:t,checked:a,...s}){return n.jsxs(V.Menubar.CheckboxItem,{"data-slot":"menubar-checkbox-item",className:l("relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-none select-none focus:bg-fill-secondary focus:text-text data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:a,...s,children:[n.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:n.jsx(V.Menubar.ItemIndicator,{children:n.jsx(xe.CheckIcon,{className:"size-4"})})}),t]})}function E0({className:e,children:t,...a}){return n.jsxs(V.Menubar.RadioItem,{"data-slot":"menubar-radio-item",className:l("relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-none select-none focus:bg-fill-secondary focus:text-text data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...a,children:[n.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:n.jsx(V.Menubar.ItemIndicator,{children:n.jsx(xe.CircleIcon,{className:"size-2 fill-current"})})}),t]})}function F0({className:e,inset:t,...a}){return n.jsx(V.Menubar.Label,{"data-slot":"menubar-label","data-inset":t,className:l("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...a})}function $0({className:e,...t}){return n.jsx(V.Menubar.Separator,{"data-slot":"menubar-separator",className:l("-mx-1 my-1 h-px bg-border",e),...t})}function B0({className:e,...t}){return n.jsx("span",{"data-slot":"menubar-shortcut",className:l("ml-auto text-xs tracking-widest text-text-tertiary",e),...t})}function H0({...e}){return n.jsx(V.Menubar.Sub,{"data-slot":"menubar-sub",...e})}function V0({className:e,inset:t,children:a,...s}){return n.jsxs(V.Menubar.SubTrigger,{"data-slot":"menubar-sub-trigger","data-inset":t,className:l("flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none focus:bg-fill-secondary focus:text-text data-[inset]:pl-8 data-[state=open]:bg-fill-secondary data-[state=open]:text-text",e),...s,children:[a,n.jsx(xe.ChevronRightIcon,{className:"ml-auto h-4 w-4"})]})}function G0({className:e,...t}){return n.jsx(V.Menubar.SubContent,{"data-slot":"menubar-sub-content",className:l("z-50 min-w-32 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border bg-bg-container p-1 text-text shadow-lg 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e),...t})}function q0({className:e,children:t,viewport:a=!0,...s}){return n.jsxs(V.NavigationMenu.Root,{"data-slot":"navigation-menu","data-viewport":a,className:l("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",e),...s,children:[t,a&&n.jsx(xl,{})]})}function W0({className:e,...t}){return n.jsx(V.NavigationMenu.List,{"data-slot":"navigation-menu-list",className:l("group flex flex-1 list-none items-center justify-center gap-1",e),...t})}function U0({className:e,...t}){return n.jsx(V.NavigationMenu.Item,{"data-slot":"navigation-menu-item",className:l("relative",e),...t})}const pl=A.cva("group inline-flex h-9 w-max items-center justify-center rounded-md bg-bg-base px-4 py-2 text-sm font-medium transition-[color,box-shadow] outline-none hover:bg-fill-secondary hover:text-text focus:bg-fill-secondary focus:text-text focus-visible:ring-[3px] focus-visible:ring-primary-border/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-fill-secondary/50 data-[state=open]:text-text data-[state=open]:hover:bg-fill-secondary data-[state=open]:focus:bg-fill-secondary");function Q0({className:e,children:t,...a}){return n.jsxs(V.NavigationMenu.Trigger,{"data-slot":"navigation-menu-trigger",className:l(pl(),"group",e),...a,children:[t," ",n.jsx(xe.ChevronDownIcon,{className:"relative top-px ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})}function Y0({className:e,...t}){return n.jsx(V.NavigationMenu.Content,{"data-slot":"navigation-menu-content",className:l("top-0 left-0 w-full p-2 pr-2.5 data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out md:absolute md:w-auto","group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:bg-bg-container group-data-[viewport=false]/navigation-menu:text-text group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95",e),...t})}function xl({className:e,...t}){return n.jsx("div",{className:l("absolute top-full left-0 isolate z-50 flex justify-center"),children:n.jsx(V.NavigationMenu.Viewport,{"data-slot":"navigation-menu-viewport",className:l("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-bg-container text-text shadow data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),...t})})}function X0({className:e,...t}){return n.jsx(V.NavigationMenu.Link,{"data-slot":"navigation-menu-link",className:l("flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none hover:bg-fill-secondary hover:text-text focus:bg-fill-secondary focus:text-text focus-visible:ring-[3px] focus-visible:ring-primary-border/50 focus-visible:outline-1 data-[active=true]:bg-fill-secondary/50 data-[active=true]:text-text data-[active=true]:hover:bg-fill-secondary data-[active=true]:focus:bg-fill-secondary [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-text-tertiary",e),...t})}function Z0({className:e,...t}){return n.jsx(V.NavigationMenu.Indicator,{"data-slot":"navigation-menu-indicator",className:l("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:animate-in data-[state=visible]:fade-in",e),...t,children:n.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})})}function Fa({className:e,...t}){return n.jsx(Qe.Command,{"data-slot":"command",className:l("flex h-full w-full flex-col overflow-hidden rounded-md bg-bg-container text-text",e),...t})}function K0({title:e="Command Palette",description:t="Search for a command to run...",children:a,className:s,showCloseButton:r=!0,...o}){return n.jsxs(Bi,{...o,children:[n.jsxs(Ra,{className:"sr-only",children:[n.jsx(Ta,{children:e}),n.jsx(Ma,{children:t})]}),n.jsx(Ia,{className:l("overflow-hidden p-0",s),hideCloseButton:!r,children:n.jsx(Fa,{className:"**:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-text-tertiary [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:a})})]})}function fl({className:e,...t}){return n.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[n.jsx(xe.SearchIcon,{className:"size-4 shrink-0 opacity-50"}),n.jsx(Qe.Command.Input,{"data-slot":"command-input",className:l("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-text-tertiary disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function hl({className:e,...t}){return n.jsx(Qe.Command.List,{"data-slot":"command-list",className:l("max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function gl({...e}){return n.jsx(Qe.Command.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function yl({className:e,...t}){return n.jsx(Qe.Command.Group,{"data-slot":"command-group",className:l("overflow-hidden p-1 text-text [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-text-tertiary",e),...t})}function J0({className:e,...t}){return n.jsx(Qe.Command.Separator,{"data-slot":"command-separator",className:l("-mx-1 h-px bg-border",e),...t})}function bl({className:e,...t}){return n.jsx(Qe.Command.Item,{"data-slot":"command-item",className:l("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[selected=true]:bg-fill-secondary data-[selected=true]:text-text [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-text-tertiary",e),...t})}function ep({className:e,...t}){return n.jsx("span",{"data-slot":"command-shortcut",className:l("ml-auto text-xs tracking-widest text-text-tertiary",e),...t})}function tp({options:e,value:t,defaultValue:a,onValueChange:s,placeholder:r="Select an option…",searchPlaceholder:o="Search…",emptyText:i="No option found.",disabled:c,className:d,contentClassName:u,triggerClassName:p,align:x="start",id:g,name:v,"aria-label":f}){const b=t!==void 0,[h,w]=y.useState(a),[k,j]=y.useState(!1),I=b?t:h,C=e.find(z=>z.value===I),L=y.useCallback(z=>{const S=z===I?"":z;b||w(S),s?.(S),j(!1)},[I,b,s]);return n.jsxs("div",{className:l("w-60",d),children:[n.jsxs(Oa,{open:k,onOpenChange:j,children:[n.jsx(Ea,{asChild:!0,children:n.jsx(W,{id:g,variant:"outline",role:"combobox","aria-expanded":k,"aria-label":f,disabled:c,className:l("w-full justify-between font-normal",!C&&"text-text-tertiary",p),suffixIcon:n.jsx(xe.ChevronsUpDownIcon,{className:"size-4 shrink-0 opacity-60"}),children:n.jsx("span",{className:"truncate text-left",children:C?C.label:r})})}),n.jsx(dn,{align:x,className:l("w-[var(--radix-popover-trigger-width)] min-w-56 p-0",u),children:n.jsxs(Fa,{children:[n.jsx(fl,{placeholder:o}),n.jsxs(hl,{children:[n.jsx(gl,{children:i}),n.jsx(yl,{children:e.map(z=>n.jsxs(bl,{value:z.value,keywords:[z.label,...z.keywords??[]],disabled:z.disabled,onSelect:L,children:[n.jsx(xe.CheckIcon,{className:l("mr-2 size-4",z.value===I?"opacity-100":"opacity-0")}),n.jsx("span",{className:"truncate",children:z.label})]},z.value))})]})]})})]}),v?n.jsx("input",{type:"hidden",name:v,value:I??""}):null]})}function np({className:e,size:t="default",...a}){return n.jsxs("div",{className:"group/native-select relative w-fit has-[select:disabled]:opacity-50","data-slot":"native-select-wrapper",children:[n.jsx("select",{"data-slot":"native-select","data-size":t,className:l("h-9 w-full min-w-0 appearance-none rounded-md border border-border-tertiary bg-transparent px-3 py-2 pr-9 text-sm shadow-sm transition-[color,box-shadow] outline-none selection:bg-primary selection:text-text-on-primary placeholder:text-text-tertiary disabled:pointer-events-none disabled:cursor-not-allowed data-[size=sm]:h-8 data-[size=sm]:py-1 dark:bg-input/30 dark:hover:bg-input/50","focus-visible:border-primary-border focus-visible:ring-[3px] focus-visible:ring-primary-border/50","aria-invalid:border-error aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40",e),...a}),n.jsx(xe.ChevronDownIcon,{className:"pointer-events-none absolute top-1/2 right-3.5 size-4 -translate-y-1/2 text-text-tertiary opacity-50 select-none","aria-hidden":"true","data-slot":"native-select-icon"})]})}function ap({className:e,...t}){return n.jsx("option",{"data-slot":"native-select-option",className:l("bg-[Canvas] text-[CanvasText]",e),...t})}function sp({className:e,...t}){return n.jsx("optgroup",{"data-slot":"native-select-optgroup",className:l("bg-[Canvas] text-[CanvasText]",e),...t})}function vl({className:e,classNames:t,showOutsideDays:a=!0,captionLayout:s="label",buttonVariant:r="ghost",formatters:o,components:i,...c}){const d=On.getDefaultClassNames();return n.jsx(On.DayPicker,{showOutsideDays:a,className:l("group/calendar bg-bg-base p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:s,formatters:{formatMonthDropdown:u=>u.toLocaleString("default",{month:"short"}),...o},classNames:{root:l("w-fit",d.root),months:l("relative flex flex-col gap-4 md:flex-row",d.months),month:l("flex w-full flex-col gap-4",d.month),nav:l("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",d.nav),button_previous:l(vt({variant:r}),"size-(--cell-size) p-0 select-none aria-disabled:opacity-50",d.button_previous),button_next:l(vt({variant:r}),"size-(--cell-size) p-0 select-none aria-disabled:opacity-50",d.button_next),month_caption:l("flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)",d.month_caption),dropdowns:l("flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium",d.dropdowns),dropdown_root:l("relative rounded-md border border-border-tertiary shadow-sm has-focus:border-primary-border has-focus:ring-[3px] has-focus:ring-primary-border/50",d.dropdown_root),dropdown:l("absolute inset-0 bg-bg-container opacity-0",d.dropdown),caption_label:l("font-medium select-none",s==="label"?"text-sm":"flex h-8 items-center gap-1 rounded-md pr-1 pl-2 text-sm [&>svg]:size-3.5 [&>svg]:text-text-tertiary",d.caption_label),table:"w-full border-collapse",weekdays:l("flex",d.weekdays),weekday:l("flex-1 rounded-md text-[0.8rem] font-normal text-text-tertiary select-none",d.weekday),week:l("mt-2 flex w-full",d.week),week_number_header:l("w-(--cell-size) select-none",d.week_number_header),week_number:l("text-[0.8rem] text-text-tertiary select-none",d.week_number),day:l("group/day relative aspect-square h-full w-full p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-r-md",c.showWeekNumber?"[&:nth-child(2)[data-selected=true]_button]:rounded-l-md":"[&:first-child[data-selected=true]_button]:rounded-l-md",d.day),range_start:l("rounded-l-md bg-fill-secondary",d.range_start),range_middle:l("rounded-none",d.range_middle),range_end:l("rounded-r-md bg-fill-secondary",d.range_end),today:l("rounded-md bg-fill-secondary text-text data-[selected=true]:rounded-none",d.today),outside:l("text-text-tertiary aria-selected:text-text-tertiary",d.outside),disabled:l("text-text-tertiary opacity-50",d.disabled),hidden:l("invisible",d.hidden),...t},components:{Root:({className:u,rootRef:p,...x})=>n.jsx("div",{"data-slot":"calendar",ref:p,className:l(u),...x}),Chevron:({className:u,orientation:p,...x})=>p==="left"?n.jsx(xe.ChevronLeftIcon,{className:l("size-4",u),...x}):p==="right"?n.jsx(xe.ChevronRightIcon,{className:l("size-4",u),...x}):n.jsx(xe.ChevronDownIcon,{className:l("size-4",u),...x}),DayButton:wl,WeekNumber:({children:u,...p})=>n.jsx("td",{...p,children:n.jsx("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:u})}),...i},...c})}function wl({className:e,day:t,modifiers:a,...s}){const r=On.getDefaultClassNames(),o=y.useRef(null);return y.useEffect(()=>{a.focused&&o.current?.focus()},[a.focused]),n.jsx("button",{ref:o,"data-day":t.date.toLocaleDateString(),"data-selected-single":a.selected&&!a.range_start&&!a.range_end&&!a.range_middle,"data-range-start":a.range_start,"data-range-end":a.range_end,"data-range-middle":a.range_middle,className:l("inline-flex items-center justify-center transition-colors hover:bg-fill-secondary hover:text-text","flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 px-0 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-primary-border group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-primary-border/50 data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-end=true]:bg-primary data-[range-end=true]:text-text-on-primary data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-fill-secondary data-[range-middle=true]:text-text data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md data-[range-start=true]:bg-primary data-[range-start=true]:text-text-on-primary data-[selected-single=true]:bg-primary data-[selected-single=true]:text-text-on-primary dark:hover:text-text [&>span]:text-xs [&>span]:opacity-70",r.day,e),...s})}const kl=6048e5,rp=864e5,Cs=Symbol.for("constructDateFrom");function Ee(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Cs in e?e[Cs](t):e instanceof Date?new e.constructor(t):new Date(t)}function ke(e,t){return Ee(t||e,e)}let op={};function un(){return op}function wt(e,t){const a=un(),s=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,r=ke(e,t?.in),o=r.getDay(),i=(o<s?7:0)+o-s;return r.setDate(r.getDate()-i),r.setHours(0,0,0,0),r}function Yt(e,t){return wt(e,{...t,weekStartsOn:1})}function jl(e,t){const a=ke(e,t?.in),s=a.getFullYear(),r=Ee(a,0);r.setFullYear(s+1,0,4),r.setHours(0,0,0,0);const o=Yt(r),i=Ee(a,0);i.setFullYear(s,0,4),i.setHours(0,0,0,0);const c=Yt(i);return a.getTime()>=o.getTime()?s+1:a.getTime()>=c.getTime()?s:s-1}function Ss(e){const t=ke(e),a=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return a.setUTCFullYear(t.getFullYear()),+e-+a}function ip(e,...t){const a=Ee.bind(null,t.find(s=>typeof s=="object"));return t.map(a)}function Is(e,t){const a=ke(e,t?.in);return a.setHours(0,0,0,0),a}function lp(e,t,a){const[s,r]=ip(a?.in,e,t),o=Is(s),i=Is(r),c=+o-Ss(o),d=+i-Ss(i);return Math.round((c-d)/rp)}function cp(e,t){const a=jl(e,t),s=Ee(e,0);return s.setFullYear(a,0,4),s.setHours(0,0,0,0),Yt(s)}function dp(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function up(e){return!(!dp(e)&&typeof e!="number"||isNaN(+ke(e)))}function mp(e,t){const a=ke(e,t?.in);return a.setFullYear(a.getFullYear(),0,1),a.setHours(0,0,0,0),a}const pp={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},xp=(e,t,a)=>{let s;const r=pp[e];return typeof r=="string"?s=r:t===1?s=r.one:s=r.other.replace("{{count}}",t.toString()),a?.addSuffix?a.comparison&&a.comparison>0?"in "+s:s+" ago":s};function Ln(e){return(t={})=>{const a=t.width?String(t.width):e.defaultWidth;return e.formats[a]||e.formats[e.defaultWidth]}}const fp={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},hp={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},gp={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},yp={date:Ln({formats:fp,defaultWidth:"full"}),time:Ln({formats:hp,defaultWidth:"full"}),dateTime:Ln({formats:gp,defaultWidth:"full"})},bp={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},vp=(e,t,a,s)=>bp[e];function pt(e){return(t,a)=>{const s=a?.context?String(a.context):"standalone";let r;if(s==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,c=a?.width?String(a.width):i;r=e.formattingValues[c]||e.formattingValues[i]}else{const i=e.defaultWidth,c=a?.width?String(a.width):e.defaultWidth;r=e.values[c]||e.values[i]}const o=e.argumentCallback?e.argumentCallback(t):t;return r[o]}}const wp={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},kp={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},jp={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Np={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Cp={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Sp={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Ip=(e,t)=>{const a=Number(e),s=a%100;if(s>20||s<10)switch(s%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},Rp={ordinalNumber:Ip,era:pt({values:wp,defaultWidth:"wide"}),quarter:pt({values:kp,defaultWidth:"wide",argumentCallback:e=>e-1}),month:pt({values:jp,defaultWidth:"wide"}),day:pt({values:Np,defaultWidth:"wide"}),dayPeriod:pt({values:Cp,defaultWidth:"wide",formattingValues:Sp,defaultFormattingWidth:"wide"})};function xt(e){return(t,a={})=>{const s=a.width,r=s&&e.matchPatterns[s]||e.matchPatterns[e.defaultMatchWidth],o=t.match(r);if(!o)return null;const i=o[0],c=s&&e.parsePatterns[s]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(c)?Mp(c,x=>x.test(i)):Tp(c,x=>x.test(i));let u;u=e.valueCallback?e.valueCallback(d):d,u=a.valueCallback?a.valueCallback(u):u;const p=t.slice(i.length);return{value:u,rest:p}}}function Tp(e,t){for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&t(e[a]))return a}function Mp(e,t){for(let a=0;a<e.length;a++)if(t(e[a]))return a}function Pp(e){return(t,a={})=>{const s=t.match(e.matchPattern);if(!s)return null;const r=s[0],o=t.match(e.parsePattern);if(!o)return null;let i=e.valueCallback?e.valueCallback(o[0]):o[0];i=a.valueCallback?a.valueCallback(i):i;const c=t.slice(r.length);return{value:i,rest:c}}}const zp=/^(\d+)(th|st|nd|rd)?/i,Lp=/\d+/i,Dp={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Ap={any:[/^b/i,/^(a|c)/i]},_p={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Op={any:[/1/i,/2/i,/3/i,/4/i]},Ep={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Fp={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},$p={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Bp={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Hp={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Vp={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Gp={ordinalNumber:Pp({matchPattern:zp,parsePattern:Lp,valueCallback:e=>parseInt(e,10)}),era:xt({matchPatterns:Dp,defaultMatchWidth:"wide",parsePatterns:Ap,defaultParseWidth:"any"}),quarter:xt({matchPatterns:_p,defaultMatchWidth:"wide",parsePatterns:Op,defaultParseWidth:"any",valueCallback:e=>e+1}),month:xt({matchPatterns:Ep,defaultMatchWidth:"wide",parsePatterns:Fp,defaultParseWidth:"any"}),day:xt({matchPatterns:$p,defaultMatchWidth:"wide",parsePatterns:Bp,defaultParseWidth:"any"}),dayPeriod:xt({matchPatterns:Hp,defaultMatchWidth:"any",parsePatterns:Vp,defaultParseWidth:"any"})},qp={code:"en-US",formatDistance:xp,formatLong:yp,formatRelative:vp,localize:Rp,match:Gp,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Wp(e,t){const a=ke(e,t?.in);return lp(a,mp(a))+1}function Up(e,t){const a=ke(e,t?.in),s=+Yt(a)-+cp(a);return Math.round(s/kl)+1}function Nl(e,t){const a=ke(e,t?.in),s=a.getFullYear(),r=un(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=Ee(t?.in||e,0);i.setFullYear(s+1,0,o),i.setHours(0,0,0,0);const c=wt(i,t),d=Ee(t?.in||e,0);d.setFullYear(s,0,o),d.setHours(0,0,0,0);const u=wt(d,t);return+a>=+c?s+1:+a>=+u?s:s-1}function Qp(e,t){const a=un(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,r=Nl(e,t),o=Ee(t?.in||e,0);return o.setFullYear(r,0,s),o.setHours(0,0,0,0),wt(o,t)}function Yp(e,t){const a=ke(e,t?.in),s=+wt(a,t)-+Qp(a,t);return Math.round(s/kl)+1}function q(e,t){const a=e<0?"-":"",s=Math.abs(e).toString().padStart(t,"0");return a+s}const Ae={y(e,t){const a=e.getFullYear(),s=a>0?a:1-a;return q(t==="yy"?s%100:s,t.length)},M(e,t){const a=e.getMonth();return t==="M"?String(a+1):q(a+1,2)},d(e,t){return q(e.getDate(),t.length)},a(e,t){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];default:return a==="am"?"a.m.":"p.m."}},h(e,t){return q(e.getHours()%12||12,t.length)},H(e,t){return q(e.getHours(),t.length)},m(e,t){return q(e.getMinutes(),t.length)},s(e,t){return q(e.getSeconds(),t.length)},S(e,t){const a=t.length,s=e.getMilliseconds(),r=Math.trunc(s*Math.pow(10,a-3));return q(r,t.length)}},nt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Rs={G:function(e,t,a){const s=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return a.era(s,{width:"abbreviated"});case"GGGGG":return a.era(s,{width:"narrow"});default:return a.era(s,{width:"wide"})}},y:function(e,t,a){if(t==="yo"){const s=e.getFullYear(),r=s>0?s:1-s;return a.ordinalNumber(r,{unit:"year"})}return Ae.y(e,t)},Y:function(e,t,a,s){const r=Nl(e,s),o=r>0?r:1-r;if(t==="YY"){const i=o%100;return q(i,2)}return t==="Yo"?a.ordinalNumber(o,{unit:"year"}):q(o,t.length)},R:function(e,t){const a=jl(e);return q(a,t.length)},u:function(e,t){const a=e.getFullYear();return q(a,t.length)},Q:function(e,t,a){const s=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(s);case"QQ":return q(s,2);case"Qo":return a.ordinalNumber(s,{unit:"quarter"});case"QQQ":return a.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(s,{width:"narrow",context:"formatting"});default:return a.quarter(s,{width:"wide",context:"formatting"})}},q:function(e,t,a){const s=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(s);case"qq":return q(s,2);case"qo":return a.ordinalNumber(s,{unit:"quarter"});case"qqq":return a.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(s,{width:"narrow",context:"standalone"});default:return a.quarter(s,{width:"wide",context:"standalone"})}},M:function(e,t,a){const s=e.getMonth();switch(t){case"M":case"MM":return Ae.M(e,t);case"Mo":return a.ordinalNumber(s+1,{unit:"month"});case"MMM":return a.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(s,{width:"narrow",context:"formatting"});default:return a.month(s,{width:"wide",context:"formatting"})}},L:function(e,t,a){const s=e.getMonth();switch(t){case"L":return String(s+1);case"LL":return q(s+1,2);case"Lo":return a.ordinalNumber(s+1,{unit:"month"});case"LLL":return a.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(s,{width:"narrow",context:"standalone"});default:return a.month(s,{width:"wide",context:"standalone"})}},w:function(e,t,a,s){const r=Yp(e,s);return t==="wo"?a.ordinalNumber(r,{unit:"week"}):q(r,t.length)},I:function(e,t,a){const s=Up(e);return t==="Io"?a.ordinalNumber(s,{unit:"week"}):q(s,t.length)},d:function(e,t,a){return t==="do"?a.ordinalNumber(e.getDate(),{unit:"date"}):Ae.d(e,t)},D:function(e,t,a){const s=Wp(e);return t==="Do"?a.ordinalNumber(s,{unit:"dayOfYear"}):q(s,t.length)},E:function(e,t,a){const s=e.getDay();switch(t){case"E":case"EE":case"EEE":return a.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(s,{width:"short",context:"formatting"});default:return a.day(s,{width:"wide",context:"formatting"})}},e:function(e,t,a,s){const r=e.getDay(),o=(r-s.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return q(o,2);case"eo":return a.ordinalNumber(o,{unit:"day"});case"eee":return a.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(r,{width:"short",context:"formatting"});default:return a.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,a,s){const r=e.getDay(),o=(r-s.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return q(o,t.length);case"co":return a.ordinalNumber(o,{unit:"day"});case"ccc":return a.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(r,{width:"narrow",context:"standalone"});case"cccccc":return a.day(r,{width:"short",context:"standalone"});default:return a.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,a){const s=e.getDay(),r=s===0?7:s;switch(t){case"i":return String(r);case"ii":return q(r,t.length);case"io":return a.ordinalNumber(r,{unit:"day"});case"iii":return a.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(s,{width:"short",context:"formatting"});default:return a.day(s,{width:"wide",context:"formatting"})}},a:function(e,t,a){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(r,{width:"narrow",context:"formatting"});default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,a){const s=e.getHours();let r;switch(s===12?r=nt.noon:s===0?r=nt.midnight:r=s/12>=1?"pm":"am",t){case"b":case"bb":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(r,{width:"narrow",context:"formatting"});default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,a){const s=e.getHours();let r;switch(s>=17?r=nt.evening:s>=12?r=nt.afternoon:s>=4?r=nt.morning:r=nt.night,t){case"B":case"BB":case"BBB":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(r,{width:"narrow",context:"formatting"});default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,a){if(t==="ho"){let s=e.getHours()%12;return s===0&&(s=12),a.ordinalNumber(s,{unit:"hour"})}return Ae.h(e,t)},H:function(e,t,a){return t==="Ho"?a.ordinalNumber(e.getHours(),{unit:"hour"}):Ae.H(e,t)},K:function(e,t,a){const s=e.getHours()%12;return t==="Ko"?a.ordinalNumber(s,{unit:"hour"}):q(s,t.length)},k:function(e,t,a){let s=e.getHours();return s===0&&(s=24),t==="ko"?a.ordinalNumber(s,{unit:"hour"}):q(s,t.length)},m:function(e,t,a){return t==="mo"?a.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ae.m(e,t)},s:function(e,t,a){return t==="so"?a.ordinalNumber(e.getSeconds(),{unit:"second"}):Ae.s(e,t)},S:function(e,t){return Ae.S(e,t)},X:function(e,t,a){const s=e.getTimezoneOffset();if(s===0)return"Z";switch(t){case"X":return Ms(s);case"XXXX":case"XX":return qe(s);default:return qe(s,":")}},x:function(e,t,a){const s=e.getTimezoneOffset();switch(t){case"x":return Ms(s);case"xxxx":case"xx":return qe(s);default:return qe(s,":")}},O:function(e,t,a){const s=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ts(s,":");default:return"GMT"+qe(s,":")}},z:function(e,t,a){const s=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ts(s,":");default:return"GMT"+qe(s,":")}},t:function(e,t,a){const s=Math.trunc(+e/1e3);return q(s,t.length)},T:function(e,t,a){return q(+e,t.length)}};function Ts(e,t=""){const a=e>0?"-":"+",s=Math.abs(e),r=Math.trunc(s/60),o=s%60;return o===0?a+String(r):a+String(r)+t+q(o,2)}function Ms(e,t){return e%60===0?(e>0?"-":"+")+q(Math.abs(e)/60,2):qe(e,t)}function qe(e,t=""){const a=e>0?"-":"+",s=Math.abs(e),r=q(Math.trunc(s/60),2),o=q(s%60,2);return a+r+t+o}const Ps=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Cl=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Xp=(e,t)=>{const a=e.match(/(P+)(p+)?/)||[],s=a[1],r=a[2];if(!r)return Ps(e,t);let o;switch(s){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Ps(s,t)).replace("{{time}}",Cl(r,t))},Zp={p:Cl,P:Xp},Kp=/^D+$/,Jp=/^Y+$/,ex=["D","DD","YY","YYYY"];function tx(e){return Kp.test(e)}function nx(e){return Jp.test(e)}function ax(e,t,a){const s=sx(e,t,a);if(console.warn(s),ex.includes(e))throw new RangeError(s)}function sx(e,t,a){const s=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${s} to the input \`${a}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const rx=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ox=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ix=/^'([^]*?)'?$/,lx=/''/g,cx=/[a-zA-Z]/;function dx(e,t,a){const s=un(),r=s.locale??qp,o=s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,i=s.weekStartsOn??s.locale?.options?.weekStartsOn??0,c=ke(e,a?.in);if(!up(c))throw new RangeError("Invalid time value");let d=t.match(ox).map(p=>{const x=p[0];if(x==="p"||x==="P"){const g=Zp[x];return g(p,r.formatLong)}return p}).join("").match(rx).map(p=>{if(p==="''")return{isToken:!1,value:"'"};const x=p[0];if(x==="'")return{isToken:!1,value:ux(p)};if(Rs[x])return{isToken:!0,value:p};if(x.match(cx))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:p}});r.localize.preprocessor&&(d=r.localize.preprocessor(c,d));const u={firstWeekContainsDate:o,weekStartsOn:i,locale:r};return d.map(p=>{if(!p.isToken)return p.value;const x=p.value;(nx(x)||tx(x))&&ax(x,t,String(e));const g=Rs[x[0]];return g(c,x,r.localize,u)}).join("")}function ux(e){const t=e.match(ix);return t?t[1].replace(lx,"'"):e}function mx({value:e,defaultValue:t,onChange:a,placeholder:s="Pick a date",disabled:r,className:o,align:i="start",formatString:c="PPP",id:d,name:u,"aria-label":p}){const x=e!==void 0,[g,v]=y.useState(t),[f,b]=y.useState(!1),h=x?e:g,w=y.useCallback(k=>{x||v(k),a?.(k),k&&b(!1)},[x,a]);return n.jsxs(Oa,{open:f,onOpenChange:b,children:[n.jsx(Ea,{asChild:!0,children:n.jsx(W,{id:d,variant:"outline",disabled:r,"aria-label":p??(typeof s=="string"?s:"Pick a date"),className:l("w-60 justify-start text-left font-normal",!h&&"text-text-tertiary",o),suffixIcon:n.jsx(xe.CalendarIcon,{className:"ml-auto size-4 opacity-60"}),children:h?dx(h,c):n.jsx("span",{children:s})})}),n.jsxs(dn,{className:"w-auto p-0",align:i,children:[n.jsx(vl,{mode:"single",selected:h,onSelect:w,autoFocus:!0}),u?n.jsx("input",{type:"hidden",name:u,value:h?h.toISOString():""}):null]})]})}const Sl=y.createContext(null);function mn(){const e=y.useContext(Sl);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}function px({orientation:e="horizontal",opts:t,setApi:a,plugins:s,className:r,children:o,...i}){const[c,d]=ud({...t,axis:e==="horizontal"?"x":"y"},s),[u,p]=y.useState(!1),[x,g]=y.useState(!1),v=y.useCallback(w=>{w&&(p(w.canScrollPrev()),g(w.canScrollNext()))},[]),f=y.useCallback(()=>{d?.scrollPrev()},[d]),b=y.useCallback(()=>{d?.scrollNext()},[d]),h=y.useCallback(w=>{w.key==="ArrowLeft"?(w.preventDefault(),f()):w.key==="ArrowRight"&&(w.preventDefault(),b())},[f,b]);return y.useEffect(()=>{!d||!a||a(d)},[d,a]),y.useEffect(()=>{if(d)return v(d),d.on("reInit",v),d.on("select",v),()=>{d?.off("select",v)}},[d,v]),n.jsx(Sl.Provider,{value:{carouselRef:c,api:d,opts:t,orientation:e||(t?.axis==="y"?"vertical":"horizontal"),scrollPrev:f,scrollNext:b,canScrollPrev:u,canScrollNext:x},children:n.jsx("div",{onKeyDownCapture:h,className:l("relative",r),role:"region","aria-roledescription":"carousel","data-slot":"carousel",...i,children:o})})}function xx({className:e,...t}){const{carouselRef:a,orientation:s}=mn();return n.jsx("div",{ref:a,className:"overflow-hidden","data-slot":"carousel-content",children:n.jsx("div",{className:l("flex",s==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})}function fx({className:e,...t}){const{orientation:a}=mn();return n.jsx("div",{role:"group","aria-roledescription":"slide","data-slot":"carousel-item",className:l("min-w-0 shrink-0 grow-0 basis-full",a==="horizontal"?"pl-4":"pt-4",e),...t})}function hx({className:e,variant:t="outline",size:a="sm",...s}){const{orientation:r,scrollPrev:o,canScrollPrev:i}=mn();return n.jsxs(W,{"data-slot":"carousel-previous",variant:t,size:a,className:l("absolute size-8 rounded-full",r==="horizontal"?"top-1/2 -left-12 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!i,onClick:o,...s,children:[n.jsx(xe.ArrowLeft,{}),n.jsx("span",{className:"sr-only",children:"Previous slide"})]})}function gx({className:e,variant:t="outline",size:a="sm",...s}){const{orientation:r,scrollNext:o,canScrollNext:i}=mn();return n.jsxs(W,{"data-slot":"carousel-next",variant:t,size:a,className:l("absolute size-8 rounded-full",r==="horizontal"?"top-1/2 -right-12 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!i,onClick:o,...s,children:[n.jsx(xe.ArrowRight,{}),n.jsx("span",{className:"sr-only",children:"Next slide"})]})}function yx({columns:e,data:t,emptyText:a="No results.",className:s,...r}){return n.jsx("div",{className:l("w-full overflow-auto rounded-lg border border-border-tertiary",s),...r,children:n.jsxs(xa,{children:[n.jsx(fa,{children:n.jsx(ht,{children:e.map(o=>n.jsx(ga,{className:o.className,children:o.header},o.key))})}),n.jsx(ha,{children:t.length>0?t.map((o,i)=>n.jsx(ht,{children:e.map(c=>n.jsx(Qt,{className:c.className,children:c.cell?c.cell(o,i):c.accessor?String(o[c.accessor]??""):null},c.key))},i)):n.jsx(ht,{children:n.jsx(Qt,{colSpan:e.length,className:"h-24 text-center text-text-tertiary",children:a})})})]})})}const bx={light:"",dark:".dark"},vx={width:320,height:200},Il=y.createContext(null);function Rl(){const e=y.useContext(Il);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}function wx({id:e,className:t,children:a,config:s,initialDimension:r=vx,...o}){const i=y.useId(),c=`chart-${e??i.replace(/:/g,"")}`;return n.jsx(Il.Provider,{value:{config:s},children:n.jsxs("div",{"data-slot":"chart","data-chart":c,className:l("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-text-tertiary [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-layer]:outline-none [&_.recharts-radial-bar-background-sector]:fill-fill-tertiary [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-fill-tertiary [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",t),...o,children:[n.jsx(Tl,{id:c,config:s}),n.jsx(Qn.ResponsiveContainer,{initialDimension:r,children:a})]})})}const Tl=({id:e,config:t})=>{const a=Object.entries(t).filter(([,s])=>s.theme??s.color);return a.length?n.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(bx).map(([s,r])=>`
|
|
33
|
-
${
|
|
34
|
-
${
|
|
29
|
+
[data-sonner-toaster] [data-sonner-toast] [data-button]:not(:first-of-type) { margin-left: ${np} !important; }`,Lr={className:"text-sm",style:{padding:`${en} ${Ja}`,gap:Xo,background:"var(--color-bg-container)",borderColor:"var(--color-border-tertiary)",color:"var(--color-text)"},descriptionClassName:"text-xs text-text-secondary",actionButtonStyle:{borderRadius:"var(--radius)",paddingLeft:"var(--spacing-2)",paddingRight:"var(--spacing-2)",height:"var(--spacing-7)",fontSize:"var(--font-size-xs)"},cancelButtonStyle:{borderRadius:"var(--radius)",paddingLeft:"var(--spacing-2)",paddingRight:"var(--spacing-2)",height:"var(--spacing-7)",fontSize:"var(--font-size-xs)"}},sp=14,op=3,ip={right:8,left:8,top:24,bottom:24};function Jo({theme:e,toastOptions:t,dataStyle:n,dataTheme:r,icons:s,gap:o=sp,visibleToasts:l=op,offset:c=ip,...d}){const u=ve(),p=n!==void 0||r!==void 0?{"data-style":n,"data-theme":r}:u,f=e??(typeof document<"u"&&document.documentElement.getAttribute("data-theme")==="dark"?"dark":"light"),b=a.jsxs(a.Fragment,{children:[a.jsx("style",{dangerouslySetInnerHTML:{__html:rp}}),a.jsx("div",{style:{display:"contents"},...p,children:a.jsx(xs.Toaster,{theme:f,closeButton:!0,icons:s,gap:o,visibleToasts:l,offset:c,toastOptions:{...Lr,...t,style:{...Lr.style,...t?.style}},style:{"--border-radius":"var(--radius-lg)",fontFamily:"inherit","--gap":`${o}px`,"--toast-icon-margin-start":"0","--toast-icon-margin-end":Xo,"--toast-button-margin-start":"auto","--toast-button-margin-end":"0"},...d})})]});return typeof document<"u"?fs.createPortal(b,document.body):null}Jo.displayName="Toaster";const Ge="w-[var(--font-size-xl)] h-[var(--font-size-xl)] shrink-0",Dr="w-3.5 h-3.5 shrink-0 text-text-tertiary",lp="calc(var(--spacing-px) * 2)";function ei({theme:e,toastOptions:t,dataStyle:n,dataTheme:r,...s}){const o=me(),l=n??o.style,c=r??o.theme,d=I("checkboxCircle",Ge),u=I("closeCircle",Ge),p=I("warning",Ge),f=I("close",Dr),b=m.useMemo(()=>({success:d??a.jsx(fa,{className:Ge}),error:u??a.jsx($s,{className:Ge}),warning:p??a.jsx(St,{className:Ge}),loading:a.jsx(ha,{className:Ge}),close:f??a.jsx(Me,{className:Dr})}),[d,u,p,f]),w=m.useMemo(()=>({...t,style:{gap:lp,...t?.style},classNames:{actionButton:jt({variant:"primary",size:"sm",rounded:"square"}),cancelButton:jt({variant:"tertiary",size:"sm",rounded:"square"}),...t?.classNames}}),[t]);return a.jsx(Jo,{theme:e,dataStyle:l,dataTheme:c,icons:b,toastOptions:w,...s})}ei.displayName="Toaster";const lt="outline-none focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:!outline-none focus-visible:!ring-0 focus-visible:outline-offset-0 focus-visible:!outline-offset-0 focus-visible:ring-offset-0 focus-visible:!ring-offset-0",ti=ie.Root,cp=ie.Group,ai=ie.Value,dp=A.cva(["flex w-full items-center justify-between gap-2 whitespace-nowrap rounded-lg border border-border-tertiary bg-bg-container text-text placeholder:text-muted-foreground transition-colors disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1","focus:border-border-secondary focus-visible:border-border-secondary data-[state=open]:border-border-secondary"].join(" "),{variants:{size:{sm:"h-7 px-2 py-0.5 text-xs",md:"h-9 px-3 py-2 text-sm",lg:"h-11 px-4 py-2.5 text-base"}},defaultVariants:{size:"md"}}),zn=g.forwardRef(({className:e,children:t,disabled:n,triggerIcon:r,size:s="md",...o},l)=>a.jsxs(ie.Trigger,{ref:l,disabled:n,className:i(dp({size:s}),lt,e),...o,children:[t,a.jsx(ie.Icon,{asChild:!0,children:a.jsx("span",{className:"pointer-events-none flex shrink-0 text-current [&>svg]:text-current",children:r??a.jsx(ye,{className:"h-[1em] w-[1em] shrink-0"})})})]}));zn.displayName=ie.Trigger.displayName;const Pn=g.forwardRef(({className:e,scrollUpIcon:t,...n},r)=>a.jsx(ie.ScrollUpButton,{ref:r,className:i("flex cursor-default items-center justify-center py-1",lt,e),...n,children:t??a.jsx(un,{className:"h-[1em] w-[1em]"})}));Pn.displayName=ie.ScrollUpButton.displayName;const Ln=g.forwardRef(({className:e,scrollDownIcon:t,...n},r)=>a.jsx(ie.ScrollDownButton,{ref:r,className:i("flex cursor-default items-center justify-center py-1",lt,e),...n,children:t??a.jsx(ye,{className:"h-[1em] w-[1em]"})}));Ln.displayName=ie.ScrollDownButton.displayName;const Dn=g.forwardRef(({className:e,children:t,position:n="popper",sideOffset:r=4,dataStyle:s,dataTheme:o,...l},c)=>{const d=ve(),u=s!==void 0?{"data-style":s,"data-theme":o??d["data-theme"]??""}:d;return a.jsx(ie.Portal,{children:a.jsxs(ie.Content,{ref:c,className:i("relative z-[60] max-h-96 min-w-32 overflow-hidden rounded-lg border border-border-tertiary bg-bg-container p-1 text-text shadow-lg",lt,"data-[state=open]:animate-in 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",e),position:n,sideOffset:r,...u,...l,children:[a.jsx(Pn,{}),a.jsx(ie.Viewport,{className:i(lt,n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),a.jsx(Ln,{})]})})});Dn.displayName=ie.Content.displayName;const ni=g.forwardRef(({className:e,...t},n)=>a.jsx(ie.Label,{ref:n,className:i("flex h-9 items-center px-3 text-sm font-semibold text-text-secondary",e),...t}));ni.displayName=ie.Label.displayName;const wt=g.forwardRef(({className:e,children:t,itemIndicatorIcon:n,...r},s)=>a.jsxs(ie.Item,{ref:s,className:i("relative flex h-9 w-full min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm pl-3 pr-8 text-sm transition-colors",lt,"hover:bg-fill-secondary data-[highlighted]:bg-fill-secondary data-[highlighted]:text-text data-[state=checked]:bg-fill-secondary data-[state=checked]:text-text","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[a.jsx("span",{className:"absolute right-3 flex h-[1em] w-[1em] items-center justify-center",children:a.jsx(ie.ItemIndicator,{children:n??a.jsx(we,{className:"h-[1em] w-[1em]"})})}),a.jsx(ie.ItemText,{children:t})]}));wt.displayName=ie.Item.displayName;const ri=g.forwardRef(({className:e,...t},n)=>a.jsx(ie.Separator,{ref:n,className:i("my-1 mx-1 h-px bg-border-tertiary",e),...t}));ri.displayName=ie.Separator.displayName;const si=g.forwardRef((e,t)=>{const{style:n,theme:r}=me();return a.jsx(Dn,{ref:t,dataStyle:n,dataTheme:r,...e})});si.displayName="SelectContent";const up=Ke.Root,mp=A.cva("inline-flex items-center justify-center text-text-secondary data-[orientation=horizontal]:flex-row data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch",{variants:{variant:{default:"rounded-lg bg-fill-secondary p-0.5 gap-0.5",line:"gap-6 border-b border-border-tertiary bg-transparent p-0"}},defaultVariants:{variant:"default"}}),pp=A.cva("inline-flex items-center justify-center gap-1.5 whitespace-nowrap text-sm font-medium transition-colors outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base disabled:pointer-events-none disabled:opacity-50 data-[state=active]:text-text cursor-pointer data-[orientation=vertical]:justify-start data-[orientation=vertical]:rounded-md data-[orientation=vertical]:px-3 data-[orientation=vertical]:py-2",{variants:{variant:{default:"rounded-md px-3 py-1.5 data-[state=active]:bg-bg-container data-[state=active]:shadow-sm",line:"rounded-none border-b-2 border-transparent px-1 pb-2 pt-0 data-[state=active]:border-primary data-[state=active]:shadow-none"}},defaultVariants:{variant:"default"}}),oi=g.forwardRef(({className:e,variant:t="default",...n},r)=>a.jsx(Ke.List,{ref:r,className:i(mp({variant:t}),e),...n}));oi.displayName=Ke.List.displayName;const ii=g.forwardRef(({className:e,variant:t="default",...n},r)=>a.jsx(Ke.Trigger,{ref:r,className:i(pp({variant:t}),e),...n}));ii.displayName=Ke.Trigger.displayName;const li=g.forwardRef(({className:e,...t},n)=>a.jsx(Ke.Content,{ref:n,className:i("mt-2 outline-none ring-0 data-[state=inactive]:hidden","data-[orientation=vertical]:mt-0 data-[orientation=vertical]:ml-2",e),...t}));li.displayName=Ke.Content.displayName;const fp=Ie.Root,ci=g.forwardRef(({className:e,...t},n)=>a.jsx(Ie.Item,{ref:n,"data-slot":"accordion-item",className:i("border-b border-border-tertiary last:border-b-0",e),...t}));ci.displayName="AccordionItem";const di=g.forwardRef(({className:e,children:t,chevronIcon:n,...r},s)=>a.jsx(Ie.Header,{className:"flex",children:a.jsxs(Ie.Trigger,{ref:s,"data-slot":"accordion-trigger",className:i("group flex flex-1 items-center justify-between gap-2 py-4 text-left text-sm font-medium text-text transition-all outline-none hover:text-text-secondary","focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base","disabled:pointer-events-none disabled:opacity-50",e),...r,children:[t,a.jsx("span",{className:"inline-flex shrink-0 transition-transform duration-200 group-data-[state=open]:rotate-180","aria-hidden":!0,children:n??a.jsx(ye,{className:"size-4 text-text-secondary"})})]})}));di.displayName="AccordionTrigger";const ui=g.forwardRef(({className:e,children:t,...n},r)=>a.jsx(Ie.Content,{ref:r,"data-slot":"accordion-content",className:i("overflow-hidden text-sm text-text-secondary data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",e),...n,children:a.jsx("div",{className:"pb-4 pt-0",children:t})}));ui.displayName="AccordionContent";const mi=g.forwardRef(({className:e,...t},n)=>a.jsx(Ie.Root,{ref:n,className:i("w-full font-sans",e),"data-slot":"collapse",...t}));mi.displayName="Collapse";const pi=g.forwardRef(({className:e,...t},n)=>a.jsx(Ie.Item,{ref:n,className:i("border-b border-border-tertiary last:border-b-0 data-[orientation=horizontal]:border-b-0 data-[orientation=horizontal]:border-r data-[orientation=horizontal]:border-border-tertiary data-[orientation=horizontal]:last:border-r-0",e),"data-slot":"collapse-item",...t}));pi.displayName="CollapseItem";const fi=g.forwardRef(({className:e,children:t,chevronIcon:n,...r},s)=>a.jsx(Ie.Header,{className:"flex font-sans",children:a.jsxs(Ie.Trigger,{ref:s,className:i("group flex flex-1 items-center justify-between gap-2 py-3 text-left text-sm font-medium text-text font-sans transition-colors outline-none","hover:text-text-secondary focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base","disabled:pointer-events-none disabled:opacity-50","data-[orientation=horizontal]:flex-col data-[orientation=horizontal]:justify-between data-[orientation=horizontal]:py-4 data-[orientation=horizontal]:text-left",e),"data-slot":"collapse-trigger",...r,children:[t,a.jsx("span",{className:"shrink-0 inline-flex transition-transform duration-200 group-data-[state=open]:rotate-180","aria-hidden":!0,children:n??a.jsx(ye,{className:"size-4 text-text-secondary"})})]})}));fi.displayName="CollapseTrigger";const xi=g.forwardRef(({className:e,children:t,...n},r)=>a.jsx(Ie.Content,{ref:r,className:i("overflow-hidden text-sm text-text-secondary font-sans data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down","data-[orientation=horizontal]:data-[state=closed]:animate-accordion-left data-[orientation=horizontal]:data-[state=open]:animate-accordion-right",e),"data-slot":"collapse-content",...n,children:a.jsx("div",{className:"pb-3 pt-0 data-[orientation=horizontal]:pb-0 data-[orientation=horizontal]:pl-0 data-[orientation=horizontal]:pr-3",children:t})}));xi.displayName="CollapseContent";function hi({className:e,...t}){return a.jsx("h1",{className:i("font-sans scroll-m-20 text-4xl font-extrabold tracking-tight text-balance text-text",e),...t})}hi.displayName="TypographyH1";function gi({className:e,...t}){return a.jsx("h2",{className:i("font-sans scroll-m-20 border-b border-border-tertiary pb-2 text-3xl font-semibold tracking-tight first:mt-0 text-text",e),...t})}gi.displayName="TypographyH2";function bi({className:e,...t}){return a.jsx("h3",{className:i("font-sans scroll-m-20 text-2xl font-semibold tracking-tight text-text",e),...t})}bi.displayName="TypographyH3";function yi({className:e,...t}){return a.jsx("h4",{className:i("font-sans scroll-m-20 text-xl font-semibold tracking-tight text-text",e),...t})}yi.displayName="TypographyH4";function vi({className:e,...t}){return a.jsx("p",{className:i("font-sans leading-7 text-text [&:not(:first-child)]:mt-6",e),...t})}vi.displayName="TypographyP";function wi({className:e,...t}){return a.jsx("blockquote",{className:i("font-sans mt-6 border-l-2 border-border-tertiary pl-6 italic text-text-secondary",e),...t})}wi.displayName="TypographyBlockquote";function ki({className:e,children:t,...n}){return a.jsx(ke,{scrollbarVisibility:"auto",className:i("font-sans my-6 w-full",e),children:t})}ki.displayName="TypographyTable";function ji({className:e,...t}){return a.jsx("ul",{className:i("font-sans my-6 ml-6 list-disc text-text [&>li]:mt-2",e),...t})}ji.displayName="TypographyList";function Ni({className:e,...t}){return a.jsx("code",{className:i("relative rounded bg-fill-secondary px-1 py-0.5 font-mono text-sm font-semibold text-text",e),...t})}Ni.displayName="TypographyInlineCode";function Ci({className:e,...t}){return a.jsx("p",{className:i("font-sans text-xl text-muted-foreground",e),...t})}Ci.displayName="TypographyLead";function Si({className:e,...t}){return a.jsx("div",{className:i("font-sans text-lg font-semibold text-text",e),...t})}Si.displayName="TypographyLarge";function Ii({className:e,...t}){return a.jsx("small",{className:i("font-sans text-sm font-medium leading-none text-text",e),...t})}Ii.displayName="TypographySmall";function Ri({className:e,...t}){return a.jsx("p",{className:i("font-sans text-sm text-muted-foreground",e),...t})}Ri.displayName="TypographyMuted";const Mi=g.forwardRef(({className:e,...t},n)=>{const r=t.value??t.defaultValue??[50];return a.jsxs(Gt.Root,{ref:n,className:i("relative flex w-full touch-none select-none cursor-pointer items-center","data-[orientation=vertical]:flex-col data-[orientation=vertical]:w-auto data-[orientation=vertical]:h-full",e),...t,children:[a.jsx(Gt.Track,{className:i("relative grow overflow-hidden rounded-full bg-fill-secondary","data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:w-full","data-[orientation=vertical]:w-2 data-[orientation=vertical]:h-full"),children:a.jsx(Gt.Range,{className:i("absolute rounded-full bg-primary","data-[orientation=horizontal]:h-full","data-[orientation=vertical]:w-full")})}),r.map((s,o)=>a.jsx(Gt.Thumb,{className:i("block size-5 rounded-full border-2 border-primary bg-bg-base shadow-sm","transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base","disabled:pointer-events-none disabled:opacity-50")},o))]})});Mi.displayName="Slider";const Ti=({className:e,...t})=>a.jsx("nav",{role:"navigation","aria-label":"pagination",className:i("flex w-full justify-center",e),...t});Ti.displayName="Pagination";const zi=g.forwardRef(({className:e,...t},n)=>a.jsx("ul",{ref:n,className:i("flex flex-row flex-wrap items-center gap-2",e),...t}));zi.displayName="PaginationContent";const Pi=g.forwardRef(({className:e,...t},n)=>a.jsx("li",{ref:n,className:i("list-none",e),...t}));Pi.displayName="PaginationItem";const Li=g.forwardRef(({className:e,isActive:t,...n},r)=>a.jsx("a",{ref:r,"aria-current":t?"page":void 0,className:i("inline-flex min-w-9 h-9 items-center justify-center rounded-md border text-sm font-medium transition-colors","border-border-tertiary bg-bg-container text-text","hover:bg-fill-secondary hover:text-text hover:border-border-tertiary","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base","disabled:pointer-events-none disabled:opacity-50",t&&"bg-fill-secondary border-border-tertiary text-text",e),...n}));Li.displayName="PaginationLink";const Di=g.forwardRef(({className:e,text:t="Previous",...n},r)=>a.jsxs("a",{ref:r,"aria-label":"Go to previous page",className:i("inline-flex h-9 min-w-9 items-center justify-center gap-2 rounded-md border px-3 text-sm font-medium transition-colors","border-border-tertiary bg-bg-container text-text","hover:bg-fill-secondary hover:text-text hover:border-border-tertiary","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base","disabled:pointer-events-none disabled:opacity-50",e),...n,children:[a.jsx(am,{className:"h-4 w-4 shrink-0"}),a.jsx("span",{className:"hidden sm:inline",children:t})]}));Di.displayName="PaginationPrevious";const Ai=g.forwardRef(({className:e,text:t="Next",...n},r)=>a.jsxs("a",{ref:r,"aria-label":"Go to next page",className:i("inline-flex h-9 min-w-9 items-center justify-center gap-2 rounded-md border px-3 text-sm font-medium transition-colors","border-border-tertiary bg-bg-container text-text","hover:bg-fill-secondary hover:text-text hover:border-border-tertiary","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base","disabled:pointer-events-none disabled:opacity-50",e),...n,children:[a.jsx("span",{className:"hidden sm:inline",children:t}),a.jsx(Ct,{className:"h-4 w-4 shrink-0"})]}));Ai.displayName="PaginationNext";const _i=({className:e,...t})=>a.jsx("span",{role:"presentation","aria-hidden":!0,className:i("flex h-9 w-9 shrink-0 items-center justify-center text-text-secondary",e),...t,children:"…"});_i.displayName="PaginationEllipsis";const Fi=A.cva("inline-flex items-center justify-center gap-1.5 rounded-md border px-2.5 py-0.5 text-xs font-medium transition-colors whitespace-nowrap cursor-pointer group",{variants:{appearance:{filled:"",outline:"bg-transparent"},color:{primary:"",success:"",error:"",warning:"",info:"",link:"",pink:"",purple:"",yellow:"",orange:"",teal:"",blue:"",mauve:"",slate:"",lavender:"",sage:""}},compoundVariants:[{appearance:"filled",color:"primary",className:"border-transparent bg-primary text-text-on-primary hover:bg-primary-hover"},{appearance:"filled",color:"success",className:"border-transparent bg-success-bg text-success border-success-border hover:bg-success-bg-hover"},{appearance:"filled",color:"error",className:"border-transparent bg-error-bg text-error border-error-border hover:bg-error-bg-hover"},{appearance:"filled",color:"warning",className:"border-transparent bg-warning-bg text-warning border-warning-border hover:bg-warning-bg-hover"},{appearance:"filled",color:"info",className:"border-transparent bg-info-bg text-info border-info-border hover:bg-info-bg-hover"},{appearance:"filled",color:"link",className:"border-transparent bg-transparent text-link underline-offset-4 hover:underline hover:text-link"},{appearance:"filled",color:"pink",className:"border-transparent bg-pink-bg text-pink hover:bg-pink-bg-hover"},{appearance:"filled",color:"purple",className:"border-transparent bg-purple-bg text-purple hover:bg-purple-bg-hover"},{appearance:"filled",color:"yellow",className:"border-transparent bg-yellow-bg text-yellow hover:bg-yellow-bg-hover"},{appearance:"filled",color:"orange",className:"border-transparent bg-orange-bg text-orange hover:bg-orange-bg-hover"},{appearance:"filled",color:"teal",className:"border-transparent bg-teal-bg text-teal hover:bg-teal-bg-hover"},{appearance:"filled",color:"blue",className:"border-transparent bg-blue-bg text-blue hover:bg-blue-bg-hover"},{appearance:"filled",color:"mauve",className:"border-transparent bg-mauve-bg text-mauve hover:bg-mauve-bg-hover"},{appearance:"filled",color:"slate",className:"border-transparent bg-slate-bg text-slate hover:bg-slate-bg-hover"},{appearance:"filled",color:"lavender",className:"border-transparent bg-lavender-bg text-lavender hover:bg-lavender-bg-hover"},{appearance:"filled",color:"sage",className:"border-transparent bg-sage-bg text-sage hover:bg-sage-bg-hover"},{appearance:"outline",color:"primary",className:"border-primary-border text-primary hover:bg-primary-bg"},{appearance:"outline",color:"success",className:"border-success-border text-success hover:bg-success-bg"},{appearance:"outline",color:"error",className:"border-error-border text-error hover:bg-error-bg"},{appearance:"outline",color:"warning",className:"border-warning-border text-warning hover:bg-warning-bg"},{appearance:"outline",color:"info",className:"border-info-border text-info hover:bg-info-bg"},{appearance:"outline",color:"link",className:"border-transparent text-link underline-offset-4 hover:underline hover:text-link"},{appearance:"outline",color:"pink",className:"border-pink text-pink hover:bg-pink-bg"},{appearance:"outline",color:"purple",className:"border-purple text-purple hover:bg-purple-bg"},{appearance:"outline",color:"yellow",className:"border-yellow text-yellow hover:bg-yellow-bg"},{appearance:"outline",color:"orange",className:"border-orange text-orange hover:bg-orange-bg"},{appearance:"outline",color:"teal",className:"border-teal text-teal hover:bg-teal-bg"},{appearance:"outline",color:"blue",className:"border-blue text-blue hover:bg-blue-bg"},{appearance:"outline",color:"mauve",className:"border-mauve text-mauve hover:bg-mauve-bg"},{appearance:"outline",color:"slate",className:"border-slate text-slate hover:bg-slate-bg"},{appearance:"outline",color:"lavender",className:"border-lavender text-lavender hover:bg-lavender-bg"},{appearance:"outline",color:"sage",className:"border-sage text-sage hover:bg-sage-bg"}],defaultVariants:{appearance:"filled",color:"primary"}}),An=g.forwardRef(({className:e,appearance:t="filled",color:n="primary",closable:r=!1,onClose:s,closeAriaLabel:o="Close tag",closeIcon:l,children:c,onMouseEnter:d,onMouseLeave:u,...p},f)=>{const[b,w]=g.useState(!1),h=r&&typeof s=="function",y=v=>{h&&w(!0),d?.(v)},x=v=>{h&&w(!1),u?.(v)},k=v=>{v.preventDefault(),v.stopPropagation(),s?.(v)},j=v=>{v.key!=="Enter"&&v.key!==" "||(v.preventDefault(),v.stopPropagation(),s?.(v))};return a.jsxs("span",{ref:f,className:i(Fi({appearance:t,color:n}),h&&"gap-0 pr-1.5",e),onMouseEnter:y,onMouseLeave:x,...p,children:[c,h&&a.jsx(q.motion.div,{"aria-hidden":!0,initial:!1,animate:{width:b?16:0,marginLeft:b?2:0,opacity:b?1:0},transition:{duration:.2,ease:[.4,0,.2,1]},className:"flex min-w-0 shrink-0 overflow-hidden",style:{pointerEvents:b?"auto":"none"},children:a.jsx("button",{type:"button","aria-label":o,className:"inline-flex h-4 w-4 cursor-pointer items-center justify-center rounded-sm text-current/80 hover:text-current focus:outline-none",onClick:k,onKeyDown:j,children:l??a.jsx(Ds,{className:"h-3 w-3"})})})]})});An.displayName="Tag";const Oi=g.forwardRef(({className:e,value:t,max:n=100,...r},s)=>{const o=t!=null?Math.min(n,Math.max(0,t)):void 0;return a.jsx(jr.Root,{ref:s,value:o??null,max:n,className:i("relative h-1 w-full overflow-hidden rounded-full bg-fill-secondary",e),style:{height:4},...r,children:a.jsx(jr.Indicator,{className:"h-full rounded-full bg-success transition-[width] duration-200 ease-out",style:{width:o!=null?`${o/n*100}%`:"0%"}})})});Oi.displayName="Progress";const Ei=A.cva("inline-flex items-center gap-1",{variants:{size:{sm:"[--rating-size:1rem]",md:"[--rating-size:1.25rem]",lg:"[--rating-size:1.5rem]"}},defaultVariants:{size:"md"}});function Ar(e,t,n){const r=Math.max(0,Math.min(t,e));return Math.round(r/n)*n}function _r({className:e}){return a.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 20 20",className:i("size-[var(--rating-size)]",e),children:a.jsx("path",{d:"M10 1.7l2.3 4.7 5.2.8-3.8 3.7.9 5.2-4.6-2.5-4.6 2.5.9-5.2-3.8-3.7 5.2-.8L10 1.7z"})})}const Vi=g.forwardRef(({className:e,size:t,value:n,defaultValue:r=0,onValueChange:s,max:o=5,precision:l=1,readOnly:c=!1,disabled:d=!1,showValue:u=!1,label:p="Rating",...f},b)=>{const[w,h]=g.useState(r),y=Ar(n??w,o,l),x=!c&&!d,k=j=>{const v=Ar(j,o,l);n==null&&h(v),s?.(v)};return a.jsxs("div",{ref:b,role:x?"radiogroup":"img","aria-label":p,"aria-disabled":d||void 0,"aria-readonly":c||void 0,"aria-valuenow":x?void 0:y,"aria-valuemax":x?void 0:o,"data-slot":"rating","data-disabled":d||void 0,className:i(Ei({size:t}),d&&"cursor-not-allowed opacity-50",e),...f,children:[Array.from({length:o},(j,v)=>{const N=v+1,C=Math.max(0,Math.min(1,y-v)),z=N-.5;return a.jsxs("span",{className:"relative inline-flex size-[var(--rating-size)] shrink-0 text-border-tertiary",children:[a.jsx(_r,{className:"fill-current"}),a.jsx("span",{"aria-hidden":"true",className:"absolute inset-0 overflow-hidden text-warning",style:{width:`${C*100}%`},children:a.jsx(_r,{className:"fill-current"})}),x?l===.5?a.jsxs("span",{className:"absolute inset-0 grid grid-cols-2",children:[a.jsx("button",{type:"button",role:"radio","aria-label":`${z} of ${o}`,"aria-checked":y===z,className:"cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-border",onClick:()=>k(z)}),a.jsx("button",{type:"button",role:"radio","aria-label":`${N} of ${o}`,"aria-checked":y===N,className:"cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-border",onClick:()=>k(N)})]}):a.jsx("button",{type:"button",role:"radio","aria-label":`${N} of ${o}`,"aria-checked":y===N,className:"absolute inset-0 cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-border",onClick:()=>k(N)}):null]},N)}),u?a.jsx("span",{className:"ml-1 text-sm font-medium text-text-secondary",children:y.toFixed(l===.5&&y%1?1:0)}):null]})});Vi.displayName="Rating";const xp=A.cva("group/stepper flex w-full",{variants:{orientation:{horizontal:"items-start",vertical:"flex-col"}},defaultVariants:{orientation:"horizontal"}});function hp(){return a.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",className:"size-3.5",children:a.jsx("path",{fill:"currentColor",d:"M6.2 11.3 2.9 8l1-1 2.3 2.3 5-5 1 1-6 6z"})})}function gp({className:e,orientation:t="horizontal",...n}){return a.jsx("ol",{"data-slot":"stepper","data-orientation":t,className:i(xp({orientation:t}),e),...n})}function bp({className:e,status:t="upcoming",...n}){return a.jsx("li",{"data-slot":"stepper-item","data-status":t,className:i("group/stepper-item relative flex min-w-0 flex-1 gap-3","group-data-[orientation=horizontal]/stepper:flex-col group-data-[orientation=horizontal]/stepper:items-center group-data-[orientation=horizontal]/stepper:gap-2 group-data-[orientation=horizontal]/stepper:text-center","data-[status=current]:text-text data-[status=upcoming]:text-text-tertiary","data-[status=complete]:text-text data-[status=error]:text-error",e),...n})}function yp({className:e,children:t,...n}){return a.jsxs("span",{"data-slot":"stepper-indicator",className:i("z-10 flex size-7 shrink-0 items-center justify-center rounded-full border text-xs font-semibold transition-colors","border-border-tertiary bg-bg-container text-text-tertiary","group-data-[status=complete]/stepper-item:border-primary group-data-[status=complete]/stepper-item:bg-primary group-data-[status=complete]/stepper-item:text-text-on-primary","group-data-[status=current]/stepper-item:border-primary group-data-[status=current]/stepper-item:text-primary","group-data-[status=error]/stepper-item:border-error group-data-[status=error]/stepper-item:bg-error-bg group-data-[status=error]/stepper-item:text-error",e),...n,children:[a.jsx("span",{className:"group-data-[status=complete]/stepper-item:hidden",children:t}),a.jsx("span",{className:"hidden group-data-[status=complete]/stepper-item:inline-flex",children:a.jsx(hp,{})})]})}function vp({className:e,...t}){return a.jsx("div",{"data-slot":"stepper-content",className:i("min-w-0 flex-1 pb-6 group-data-[orientation=horizontal]/stepper:pb-0",e),...t})}function wp({className:e,...t}){return a.jsx("div",{"data-slot":"stepper-title",className:i("text-sm font-medium leading-5 text-current",e),...t})}function kp({className:e,...t}){return a.jsx("div",{"data-slot":"stepper-description",className:i("mt-1 text-sm leading-5 text-text-tertiary",e),...t})}function jp({className:e,...t}){return a.jsx("span",{"aria-hidden":"true","data-slot":"stepper-separator",className:i("absolute left-3.5 top-7 h-[calc(100%-1.75rem)] w-px -translate-x-1/2 bg-border-tertiary","group-data-[orientation=horizontal]/stepper:left-[calc(50%+1rem)] group-data-[orientation=horizontal]/stepper:right-[calc(-50%+1rem)] group-data-[orientation=horizontal]/stepper:top-3.5 group-data-[orientation=horizontal]/stepper:h-px group-data-[orientation=horizontal]/stepper:w-auto group-data-[orientation=horizontal]/stepper:translate-x-0","group-data-[status=complete]/stepper-item:bg-primary",e),...t})}const $i=A.cva("mt-1.5 flex size-2.5 shrink-0 rounded-full ring-4 ring-bg-base",{variants:{tone:{default:"bg-border",primary:"bg-primary",success:"bg-success",warning:"bg-warning",error:"bg-error"}},defaultVariants:{tone:"default"}});function Np({className:e,...t}){return a.jsx("ol",{"data-slot":"timeline",className:i("flex flex-col",e),...t})}function Cp({className:e,...t}){return a.jsx("li",{"data-slot":"timeline-item",className:i("group/timeline-item relative grid grid-cols-[auto_minmax(0,1fr)] gap-3 pb-6 last:pb-0",e),...t})}function Sp({className:e,tone:t,...n}){return a.jsx("span",{"data-slot":"timeline-marker",className:i($i({tone:t}),e),...n})}function Ip({className:e,...t}){return a.jsx("span",{"aria-hidden":"true","data-slot":"timeline-connector",className:i("absolute left-1.5 top-5 h-[calc(100%-1.25rem)] w-px bg-border-tertiary group-last/timeline-item:hidden",e),...t})}function Rp({className:e,...t}){return a.jsx("div",{"data-slot":"timeline-content",className:i("min-w-0",e),...t})}function Mp({className:e,...t}){return a.jsx("div",{"data-slot":"timeline-title",className:i("text-sm font-medium leading-5 text-text",e),...t})}function Tp({className:e,...t}){return a.jsx("div",{"data-slot":"timeline-description",className:i("mt-1 text-sm leading-6 text-text-tertiary",e),...t})}function zp({className:e,...t}){return a.jsx("time",{"data-slot":"timeline-time",className:i("mt-1 block text-xs leading-5 text-text-quaternary",e),...t})}const Pp=124;function Te({headerIcon:e,headerTitle:t,headerRight:n,children:r,defaultExpanded:s=!0,contentPadding:o="var(--spacing-1.5) var(--spacing-2)",onToggle:l,collapsible:c=!0,footer:d,contentMaxHeight:u,showExpandAllBar:p=!1,maxHeight:f=Pp,titleShimmer:b=!1,className:w}){const[h,y]=m.useState(s),[x,k]=m.useState(!1),[j,v]=m.useState(!1),[N,C]=m.useState(!1),[z,L]=m.useState(0),[S,_]=m.useState(p&&s),[se,F]=m.useState(!1),Q=m.useRef(null);m.useLayoutEffect(()=>{if(!p||!h){C(!1),L(0),_(!1);return}_(!0);const E=()=>{const K=Q.current;if(!K)return;const de=K.scrollHeight;L(de),C(de>f),_(!1)},pe=requestAnimationFrame(E);let U=null;return Q.current&&(U=new ResizeObserver(E),U.observe(Q.current)),()=>{cancelAnimationFrame(pe),U?.disconnect()}},[p,h,r,f]);const le=()=>{if(!c)return;const E=!h;F(!0),E&&p&&_(!0),y(E),l?.(E),setTimeout(()=>F(!1),300)},Y=E=>{c&&(E.key!=="Enter"&&E.key!==" "||(E.preventDefault(),le()))},ce=c&&(x||e==null)?a.jsx(ye,{className:i("w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 transition-transform duration-200 text-text-secondary",h?"rotate-0":"-rotate-90")}):e,re=p&&h&&!u,R=re&&(S||N&&!j||se||!N&&z===0),ae=u!=null?`${u}px`:R?`${f}px`:re&&N&&j&&z>0?`${Math.max(z+50,2e3)}px`:void 0;return a.jsxs("div",{className:i("rounded-md overflow-hidden border border-border-tertiary bg-fill-tertiary relative",w),children:[a.jsxs("div",{className:i("flex flex-row items-center gap-2 px-2 py-1.5 select-none",h&&"border-b border-border-tertiary"),onMouseEnter:()=>c&&k(!0),onMouseLeave:()=>c&&k(!1),children:[a.jsxs("div",{className:i("flex flex-row items-center gap-2 flex-1 min-w-0",c&&"cursor-pointer"),onClick:le,onKeyDown:Y,role:c?"button":void 0,tabIndex:c?0:void 0,"aria-expanded":c?h:void 0,children:[a.jsx("div",{className:"w-[var(--font-size-sm)] h-[var(--font-size-sm)] flex items-center justify-center shrink-0 text-text-secondary [&>svg]:w-[var(--font-size-sm)] [&>svg]:h-[var(--font-size-sm)]",children:ce}),a.jsx("div",{className:"min-w-0 flex-1 flex items-center text-xs leading-xs text-text-secondary",children:b?a.jsx("span",{className:"animate-pulse",children:t}):t})]}),n!=null&&a.jsx("div",{className:"flex items-center gap-1.5 shrink-0 relative z-10",onClick:E=>E.stopPropagation(),onMouseDown:E=>E.stopPropagation(),children:n})]}),a.jsx(q.AnimatePresence,{initial:!1,children:h&&a.jsxs(q.motion.div,{...so,className:i("overflow-hidden",se&&"select-none"),children:[re&&a.jsx("div",{ref:Q,className:"absolute invisible h-auto w-full pointer-events-none",style:{padding:o},"aria-hidden":!0,children:r}),a.jsxs("div",{className:i("relative overflow-x-hidden bg-bg-base scrollbar-auto",u!=null?"overflow-y-auto":R?"overflow-y-hidden":"overflow-y-visible",N&&"transition-[max-height] duration-300 ease-in-out"),style:{padding:o,maxHeight:ae},children:[r,re&&N&&z>f&&a.jsx("div",{className:i("absolute bottom-0 left-0 right-0 pointer-events-none h-6 bg-gradient-to-b from-transparent to-[var(--color-bg-base)] transition-opacity duration-300",j?"opacity-0":"opacity-100")})]}),re&&N&&a.jsx("button",{type:"button",className:"w-full h-4 flex items-center justify-center bg-bg-base border-0 cursor-pointer text-text-secondary hover:text-text transition-colors",onClick:E=>{E.stopPropagation(),F(!0),v(pe=>!pe),setTimeout(()=>F(!1),300)},"aria-label":j?"收起":"展开全部",children:a.jsx(ye,{className:i("w-[var(--font-size-sm)] h-[var(--font-size-sm)] transition-transform duration-200",j?"rotate-180":"rotate-0")})})]})}),d!=null&&a.jsx("div",{className:"flex flex-row items-center gap-2 px-2 py-1.5 border-t border-border-tertiary",children:d})]})}Te.displayName="CollapsibleCard";const Lp="w-4 h-4",Bi=m.forwardRef(({items:e,selectedId:t,onItemClick:n,width:r="w-52",className:s,moreIcon:o,...l},c)=>{const[d,u]=m.useState(null),p="flex flex-col gap-1.5 rounded-md bg-transparent",f=o??a.jsx(fn,{className:Lp});return a.jsx("div",{ref:c,className:i(p,r,s),...l,children:e.map(b=>{const w=t===b.id,h=b.disabled,y=d===b.id;return a.jsxs("div",{className:i("group flex items-center gap-2 py-1 px-2 rounded-md text-sm leading-sm transition-colors","focus-within:outline-none min-w-0",h&&"opacity-50 cursor-not-allowed",!h&&"cursor-pointer",w?"bg-fill-secondary text-text":"bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text"),children:[a.jsx("button",{onClick:()=>{h||n?.(b),u(null)},disabled:h,className:"flex-1 text-left truncate min-w-0 outline-none bg-transparent border-none p-0 cursor-pointer",children:b.label}),b.actions&&b.actions.length>0?a.jsx("div",{onClick:x=>x.stopPropagation(),children:a.jsxs(qe,{open:y,onOpenChange:x=>{u(x?b.id:null)},children:[a.jsx(Ue,{asChild:!0,children:a.jsx("button",{className:i("flex items-center justify-center p-1 rounded outline-none transition-all duration-200 relative z-10 cursor-pointer hover:bg-fill-primary"),style:{pointerEvents:"auto"},onClick:x=>x.stopPropagation(),onMouseDown:x=>x.stopPropagation(),children:a.jsx("span",{className:i("transition-opacity pointer-events-none flex items-center justify-center",w?"opacity-100":"opacity-0 group-hover:opacity-100"),children:b.icon??a.jsx("span",{className:i("w-4 h-4 inline-flex items-center justify-center",w?"text-text":"text-text-secondary"),children:f})})})}),a.jsx(_e,{align:"end",children:b.actions.map(x=>a.jsxs(Se,{variant:x.destructive?"destructive":"default",onClick:k=>{k.stopPropagation(),u(null),x.onClick?.()},children:[x.icon&&a.jsx("span",{className:"mr-2 w-4 h-4 flex items-center justify-center",children:x.icon}),x.label]},x.id))})]})}):a.jsx("span",{className:"flex-shrink-0 w-4 h-4 flex items-center justify-center",onClick:x=>x.stopPropagation(),children:b.icon?a.jsx("span",{className:i("transition-opacity pointer-events-none",w?"opacity-100":"opacity-0 group-hover:opacity-100"),children:b.icon}):a.jsx("span",{className:i("w-4 h-4 inline-flex items-center justify-center transition-opacity pointer-events-none",w?"opacity-100 text-text":"opacity-0 group-hover:opacity-100 text-text-secondary"),children:f})})]},b.id)})})});Bi.displayName="SidebarMenu";const Dp="w-4 h-4",Hi=m.forwardRef((e,t)=>{const n=I("more",Dp);return a.jsx(Bi,{ref:t,moreIcon:n,...e})});Hi.displayName="SidebarMenu";const Ap=A.cva(["flex w-full min-w-0 rounded-lg border border-border-tertiary bg-bg-container text-text transition-colors","placeholder:text-text-tertiary","file:border-0 file:bg-transparent file:font-medium file:text-text","outline-none focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0","focus:border-border-secondary focus-visible:border-border-secondary","disabled:cursor-not-allowed disabled:opacity-50","aria-invalid:border-error aria-invalid:ring-0"].join(" "),{variants:{size:{sm:"h-7 px-2 py-0.5 text-xs file:text-xs",md:"h-9 px-3 py-1 text-sm file:text-sm",lg:"h-11 px-4 py-1.5 text-base file:text-base"}},defaultVariants:{size:"md"}}),ba=g.forwardRef(({className:e,type:t,size:n="md",...r},s)=>a.jsx("input",{type:t,ref:s,className:i(Ap({size:n}),e),...r}));ba.displayName="Input";const Rt=g.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},s)=>a.jsx(ys.Root,{ref:s,decorative:n,orientation:t,className:i("shrink-0 bg-border-tertiary","data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full","data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...r}));Rt.displayName=ys.Root.displayName;const Gi=X.Root,_p=X.Trigger,Fp=X.Close,Wi=X.Portal,_n=g.forwardRef(({className:e,...t},n)=>a.jsx(X.Overlay,{ref:n,asChild:!0,...t,children:a.jsx(q.motion.div,{className:i("fixed inset-0 z-50 bg-bg-mask/60",e),...ga})}));_n.displayName=X.Overlay.displayName;const Op=A.cva("fixed z-50 gap-4 bg-bg-base text-text shadow-lg border-border p-6 outline-none flex flex-col",{variants:{side:{top:"inset-x-0 top-0 border-b",bottom:"inset-x-0 bottom-0 border-t",left:"inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm"}},defaultVariants:{side:"right"}}),Ep={top:{initial:{y:"-100%"},animate:{y:0},exit:{y:"-100%"}},bottom:{initial:{y:"100%"},animate:{y:0},exit:{y:"100%"}},left:{initial:{x:"-100%"},animate:{x:0},exit:{x:"-100%"}},right:{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"}}},Fn=g.forwardRef(({side:e="right",className:t,children:n,showCloseButton:r=!0,dataStyle:s,dataTheme:o,...l},c)=>{const d=ve(),u=s!==void 0?{"data-style":s,"data-theme":o??d["data-theme"]??""}:d,p=Ep[e];return a.jsx(Wi,{children:a.jsxs("div",{style:{display:"contents"},...u,children:[a.jsx(_n,{}),a.jsx(X.Content,{ref:c,asChild:!0,...l,children:a.jsxs(q.motion.div,{className:i(Op({side:e}),t),initial:p.initial,animate:p.animate,exit:p.exit,transition:{duration:Je.slow,ease:mt.standard},children:[n,r&&a.jsxs(X.Close,{className:i("absolute right-4 top-4 inline-flex size-7 items-center justify-center rounded-md text-text-tertiary opacity-70 transition-colors","hover:bg-fill-secondary hover:text-text hover:opacity-100","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-border","disabled:pointer-events-none"),children:[a.jsx(Me,{className:"size-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})})]})})});Fn.displayName=X.Content.displayName;const qi=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:i("flex flex-col gap-1.5",e),...t}));qi.displayName="DrawerHeader";const Ui=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:i("mt-auto flex flex-col gap-2",e),...t}));Ui.displayName="DrawerFooter";const Qi=g.forwardRef(({className:e,...t},n)=>a.jsx(X.Title,{ref:n,className:i("text-base font-medium leading-6 text-text",e),...t}));Qi.displayName=X.Title.displayName;const Yi=g.forwardRef(({className:e,...t},n)=>a.jsx(X.Description,{ref:n,className:i("text-sm leading-6 text-text-tertiary",e),...t}));Yi.displayName=X.Description.displayName;const Vp="16rem",$p="3rem",Bp="18rem",Hp="(max-width: 767px)",Ki=g.createContext(null);function Gp(){const[e,t]=g.useState(!1);return g.useEffect(()=>{const n=window.matchMedia(Hp),r=()=>t(n.matches);return r(),n.addEventListener("change",r),()=>n.removeEventListener("change",r)},[]),e}function Mt(){const e=g.useContext(Ki);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Wp({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:s,children:o,...l}){const c=Gp(),[d,u]=g.useState(!1),[p,f]=g.useState(e),b=t??p,w=g.useCallback(k=>{n?.(k),t===void 0&&f(k)},[t,n]),h=g.useCallback(()=>{if(c){u(k=>!k);return}w(!b)},[c,b,w]),y=b?"expanded":"collapsed",x=g.useMemo(()=>({state:y,open:b,setOpen:w,isMobile:c,openMobile:d,setOpenMobile:u,toggleSidebar:h}),[y,b,w,c,d,u,h]);return a.jsx(Ki.Provider,{value:x,children:a.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":Vp,"--sidebar-width-icon":$p,...s},className:i("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-bg-base",r),...l,children:o})})}function qp({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:s,...o}){const{isMobile:l,state:c,openMobile:d,setOpenMobile:u}=Mt();return n==="none"?a.jsx("div",{"data-slot":"sidebar",className:i("flex h-full w-[var(--sidebar-width)] flex-col bg-bg-container text-text",r),...o,children:s}):l?a.jsx(Gi,{open:d,onOpenChange:u,...o,children:a.jsx(Fn,{"data-sidebar":"sidebar","data-slot":"sidebar",side:e,showCloseButton:!1,className:"w-[var(--sidebar-width)] border-border-tertiary bg-bg-container p-0 text-text [&>button]:hidden",style:{"--sidebar-width":Bp},children:a.jsx("div",{className:"flex h-full w-full flex-col",children:s})})}):a.jsxs("div",{className:"group peer hidden text-text md:block","data-state":c,"data-collapsible":c==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[a.jsx("div",{className:i("relative h-svh w-[var(--sidebar-width)] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)]")}),a.jsx("div",{className:i("fixed inset-y-0 z-10 hidden h-svh w-[var(--sidebar-width)] transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+1rem)]":"group-data-[side=left]:border-r group-data-[side=right]:border-l border-border-tertiary",r),...o,children:a.jsx("div",{"data-sidebar":"sidebar",className:i("flex h-full w-full flex-col bg-bg-container",t==="floating"&&"rounded-lg border border-border-tertiary shadow-sm"),children:s})})]})}function Up({className:e,onClick:t,children:n,...r}){const{toggleSidebar:s}=Mt();return a.jsx(G,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"md",className:i("size-8 p-0",e),onClick:o=>{t?.(o),s()},...r,children:n??a.jsxs(a.Fragment,{children:[a.jsx(fe.PanelLeft,{className:"size-4"}),a.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})})}function Qp({className:e,...t}){const{toggleSidebar:n}=Mt();return a.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:i("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-0.5 hover:after:bg-border md:flex","group-data-[side=left]:-right-4 group-data-[side=right]:left-0",e),...t})}function Yp({className:e,...t}){return a.jsx("main",{"data-slot":"sidebar-inset",className:i("relative flex min-h-svh flex-1 flex-col bg-bg-base","peer-data-[variant=inset]:m-2 peer-data-[variant=inset]:rounded-lg peer-data-[variant=inset]:border peer-data-[variant=inset]:border-border-tertiary",e),...t})}function Kp({className:e,...t}){return a.jsx(ba,{"data-slot":"sidebar-input","data-sidebar":"input",className:i("h-8 bg-bg-base shadow-none",e),...t})}function Zp({className:e,...t}){return a.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:i("flex flex-col gap-2 p-2",e),...t})}function Xp({className:e,...t}){return a.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:i("flex flex-col gap-2 p-2",e),...t})}function Jp({className:e,...t}){return a.jsx(Rt,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:i("mx-2 w-auto bg-border-tertiary",e),...t})}function e0({className:e,...t}){return a.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:i("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function t0({className:e,...t}){return a.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:i("relative flex w-full min-w-0 flex-col p-2",e),...t})}function a0({className:e,asChild:t=!1,...n}){const r=t?Xe:"div";return a.jsx(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:i("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-text-tertiary outline-none transition-[margin,opacity] duration-200 ease-linear","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})}function n0({className:e,asChild:t=!1,...n}){const r=t?Xe:"button";return a.jsx(r,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:i("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-text-tertiary outline-none transition-colors hover:bg-fill-secondary hover:text-text focus-visible:ring-2 focus-visible:ring-primary-border","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e),...n})}function r0({className:e,...t}){return a.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:i("w-full text-sm",e),...t})}function s0({className:e,...t}){return a.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:i("flex w-full min-w-0 flex-col gap-1",e),...t})}function o0({className:e,...t}){return a.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:i("group/menu-item relative",e),...t})}const Zi=A.cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none transition-[width,height,padding,color,background-color] hover:bg-fill-secondary hover:text-text focus-visible:ring-2 focus-visible:ring-primary-border active:bg-fill data-[active=true]:bg-fill-secondary data-[active=true]:font-medium data-[active=true]:text-text disabled:pointer-events-none disabled:opacity-50 group-data-[collapsible=icon]:size-8 group-data-[collapsible=icon]:p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"text-text-secondary",outline:"border border-border-tertiary bg-bg-container text-text-secondary shadow-sm hover:bg-fill-secondary"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0"}},defaultVariants:{variant:"default",size:"default"}});function i0({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:s,className:o,...l}){const c=e?Xe:"button",{state:d}=Mt(),u=a.jsx(c,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":t,className:i(Zi({variant:n,size:r}),o),...l});if(!s)return u;const p=typeof s=="string"?{content:s}:s;return d!=="collapsed"?u:a.jsx(Fe,{side:"right",...p,children:u})}function l0({className:e,asChild:t=!1,showOnHover:n=!1,...r}){const s=t?Xe:"button";return a.jsx(s,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:i("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-text-tertiary outline-none transition-colors hover:bg-fill-secondary hover:text-text focus-visible:ring-2 focus-visible:ring-primary-border","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"opacity-0 group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100",e),...r})}function c0({className:e,...t}){return a.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:i("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium text-text-tertiary","peer-hover/menu-button:text-text peer-data-[active=true]/menu-button:text-text","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t})}function d0({className:e,showIcon:t=!1,width:n="70%",...r}){return a.jsxs("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:i("flex h-8 items-center gap-2 rounded-md px-2",e),...r,children:[t&&a.jsx(ra,{className:"size-4 rounded-md"}),a.jsx(ra,{className:"h-4 max-w-[var(--skeleton-width)] flex-1",style:{"--skeleton-width":n}})]})}function u0({className:e,...t}){return a.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:i("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-border-tertiary px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t})}function m0({className:e,...t}){return a.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:i("group/menu-sub-item relative",e),...t})}function p0({asChild:e=!1,size:t="md",isActive:n=!1,className:r,...s}){const o=e?Xe:"a";return a.jsx(o,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:i("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-text-secondary outline-none hover:bg-fill-secondary hover:text-text focus-visible:ring-2 focus-visible:ring-primary-border active:bg-fill data-[active=true]:bg-fill-secondary data-[active=true]:text-text disabled:pointer-events-none disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[size=sm]:text-xs data-[size=md]:text-sm",r),...s})}const f0=A.cva(["flex w-full rounded-lg border border-border-tertiary bg-bg-container text-text transition-colors","placeholder:text-text-tertiary","outline-none focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0","focus:border-border-secondary focus-visible:border-border-secondary","disabled:cursor-not-allowed disabled:opacity-50","aria-invalid:border-error aria-invalid:ring-0"].join(" "),{variants:{size:{sm:"min-h-12 px-2 py-1 text-xs",md:"min-h-16 px-3 py-2 text-sm",lg:"min-h-20 px-4 py-2.5 text-base"}},defaultVariants:{size:"md"}}),On=g.forwardRef(({className:e,size:t="md",...n},r)=>a.jsx("textarea",{ref:r,className:i(f0({size:t}),e),...n}));On.displayName="Textarea";function x0({className:e,...t}){return a.jsx("div",{"data-slot":"input-group",role:"group",className:i("group/input-group relative flex w-full items-center rounded-md border border-border-tertiary shadow-sm transition-[color,box-shadow] outline-none dark:bg-input/30","h-9 min-w-0 has-[>textarea]:h-auto","has-[>[data-align=inline-start]]:[&>input]:pl-2","has-[>[data-align=inline-end]]:[&>input]:pr-2","has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3","has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3","has-[[data-slot=input-group-control]:focus-visible]:border-primary-border has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot=input-group-control]:focus-visible]:ring-primary-border/50","has-[[data-slot][aria-invalid=true]]:border-error has-[[data-slot][aria-invalid=true]]:ring-error/20 dark:has-[[data-slot][aria-invalid=true]]:ring-error/40",e),...t})}const h0=A.cva("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-text-tertiary select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]","inline-end":"order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]","block-start":"order-first w-full justify-start px-3 pt-3 group-has-[>input]/input-group:pt-2.5 [.border-b]:pb-3","block-end":"order-last w-full justify-start px-3 pb-3 group-has-[>input]/input-group:pb-2.5 [.border-t]:pt-3"}},defaultVariants:{align:"inline-start"}});function g0({className:e,align:t="inline-start",...n}){return a.jsx("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:i(h0({align:t}),e),onClick:r=>{r.target.closest("button")||r.currentTarget.parentElement?.querySelector("input")?.focus()},...n})}const b0=A.cva("flex items-center gap-2 text-sm shadow-none",{variants:{size:{xs:"h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-2 has-[>svg]:px-2 [&>svg:not([class*='size-'])]:size-3.5",sm:"h-8 gap-1.5 rounded-md px-2.5 has-[>svg]:px-2.5","icon-xs":"size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function y0({className:e,type:t="button",variant:n="ghost",size:r="xs",...s}){return a.jsx(G,{type:t,"data-size":r,variant:n,className:i(b0({size:r}),e),...s})}function v0({className:e,...t}){return a.jsx("span",{className:i("flex items-center gap-2 text-sm text-text-tertiary [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",e),...t})}function w0({className:e,...t}){return a.jsx(ba,{"data-slot":"input-group-control",className:i("flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent",e),...t})}function k0({className:e,...t}){return a.jsx(On,{"data-slot":"input-group-control",className:i("flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",e),...t})}function j0({className:e,containerClassName:t,...n}){return a.jsx(gs.OTPInput,{"data-slot":"input-otp",containerClassName:i("flex items-center gap-2 has-disabled:opacity-50",t),className:i("disabled:cursor-not-allowed",e),...n})}function N0({className:e,...t}){return a.jsx("div",{"data-slot":"input-otp-group",className:i("flex items-center",e),...t})}function C0({index:e,className:t,...n}){const r=g.useContext(gs.OTPInputContext),{char:s,hasFakeCaret:o,isActive:l}=r?.slots[e]??{};return a.jsxs("div",{"data-slot":"input-otp-slot","data-active":l,className:i("relative flex h-9 w-9 items-center justify-center border-y border-r border-border-tertiary text-sm shadow-sm transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md aria-invalid:border-error data-[active=true]:z-10 data-[active=true]:border-primary-border data-[active=true]:ring-[3px] data-[active=true]:ring-primary-border/50 data-[active=true]:aria-invalid:border-error data-[active=true]:aria-invalid:ring-error/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-error/40",t),...n,children:[s,o&&a.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:a.jsx("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})}function S0({...e}){return a.jsx("div",{"data-slot":"input-otp-separator",role:"separator",...e,children:a.jsx(fe.MinusIcon,{})})}const ya=g.forwardRef(({className:e,...t},n)=>a.jsx(bs.Root,{ref:n,className:i("flex items-center gap-2 text-sm font-medium leading-none text-text","peer-disabled:cursor-not-allowed peer-disabled:opacity-50","has-[[disabled]]:cursor-not-allowed has-[[disabled]]:opacity-50",e),...t}));ya.displayName=bs.Root.displayName;function I0({className:e,...t}){return a.jsx("fieldset",{"data-slot":"field-set",className:i("flex flex-col gap-6","has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",e),...t})}function R0({className:e,variant:t="legend",...n}){return a.jsx("legend",{"data-slot":"field-legend","data-variant":t,className:i("mb-3 font-medium","data-[variant=legend]:text-base","data-[variant=label]:text-sm",e),...n})}function M0({className:e,...t}){return a.jsx("div",{"data-slot":"field-group",className:i("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",e),...t})}const T0=A.cva("group/field flex w-full gap-3 data-[invalid=true]:text-error",{variants:{orientation:{vertical:["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["flex-col @md/field-group:flex-row @md/field-group:items-center [&>*]:w-full @md/field-group:[&>*]:w-auto [&>.sr-only]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function z0({className:e,orientation:t="vertical",...n}){return a.jsx("div",{role:"group","data-slot":"field","data-orientation":t,className:i(T0({orientation:t}),e),...n})}function P0({className:e,...t}){return a.jsx("div",{"data-slot":"field-content",className:i("group/field-content flex flex-1 flex-col gap-1.5 leading-snug",e),...t})}function L0({className:e,...t}){return a.jsx(ya,{"data-slot":"field-label",className:i("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4","has-data-[state=checked]:border-primary has-data-[state=checked]:bg-primary/5 dark:has-data-[state=checked]:bg-primary/10",e),...t})}function D0({className:e,...t}){return a.jsx("div",{"data-slot":"field-label",className:i("flex w-fit items-center gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50",e),...t})}function A0({className:e,...t}){return a.jsx("p",{"data-slot":"field-description",className:i("text-sm leading-normal font-normal text-text-tertiary group-has-[[data-orientation=horizontal]]/field:text-balance","last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5","[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...t})}function _0({children:e,className:t,...n}){return a.jsxs("div",{"data-slot":"field-separator","data-content":!!e,className:i("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",t),...n,children:[a.jsx(Rt,{className:"absolute inset-0 top-1/2"}),e&&a.jsx("span",{className:"relative mx-auto block w-fit bg-bg-base px-2 text-text-tertiary","data-slot":"field-separator-content",children:e})]})}function F0({className:e,children:t,errors:n,...r}){const s=m.useMemo(()=>{if(t)return t;if(!n?.length)return null;const o=[...new Map(n.map(l=>[l?.message,l])).values()];return o?.length==1?o[0]?.message:a.jsx("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:o.map((l,c)=>l?.message&&a.jsx("li",{children:l.message},c))})},[t,n]);return s?a.jsx("div",{role:"alert","data-slot":"field-error",className:i("text-sm font-normal text-error",e),...r,children:s}):null}var O0=e=>e.type==="checkbox",gt=e=>e instanceof Date,En=e=>e==null;const Xi=e=>typeof e=="object";var Qe=e=>!En(e)&&!Array.isArray(e)&&Xi(e)&&!gt(e),E0=e=>Qe(e)&&e.target?O0(e.target)?e.target.checked:e.target.value:e,V0=(e,t)=>{const n=t.split("."),r=[];let s=n[0];for(let o=1;o<n.length;s+="."+n[o++])!isNaN(+n[o])&&e.has(s)&&r.push(s);return r},$0=e=>{const t=e.constructor&&e.constructor.prototype;return Qe(t)&&t.hasOwnProperty("isPrototypeOf")},B0=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ji(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(B0&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(Qe(e)&&$0(e)))return e;const r=n?[]:Object.create(Object.getPrototypeOf(e));for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=Ji(e[s]));return r}var el=e=>/^\w*$/.test(e),tn=e=>e===void 0,H0=e=>Array.isArray(e)?e.filter(Boolean):[],tl=e=>H0(e.replace(/["|']|\]/g,"").split(/\.|\[/)),xe=(e,t,n)=>{if(!t||!Qe(e))return n;const s=(el(t)?[t]:tl(t)).reduce((o,l)=>En(o)?void 0:o[l],e);return tn(s)||s===e?tn(e[t])?n:e[t]:s},Ha=e=>typeof e=="boolean",Ut=e=>typeof e=="function",Fr=(e,t,n)=>{let r=-1;const s=el(t)?[t]:tl(t),o=s.length,l=o-1;for(;++r<o;){const c=s[r];let d=n;if(r!==l){const u=e[c];d=Qe(u)||Array.isArray(u)?u:isNaN(+s[r+1])?{}:[]}if(c==="__proto__"||c==="constructor"||c==="prototype")return;e[c]=d,e=e[c]}};const Or={BLUR:"blur",CHANGE:"change"},Er={all:"all"},Vn=m.createContext(null);Vn.displayName="HookFormControlContext";const $n=()=>m.useContext(Vn);var G0=(e,t,n,r=!0)=>{const s={};for(const o in e)Object.defineProperty(s,o,{get:()=>{const l=o;return t._proxyFormState[l]!==Er.all&&(t._proxyFormState[l]=!r||Er.all),n&&(n[l]=!0),e[l]}});return s};const al=typeof window<"u"?m.useLayoutEffect:m.useEffect;function W0(e){const t=$n(),{control:n=t,disabled:r,name:s,exact:o}=e||{},[l,c]=m.useState(()=>({...n._formState,defaultValues:n._defaultValues})),d=m.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return al(()=>n._subscribe({name:s,formState:d.current,exact:o,callback:u=>{!r&&c({...n._formState,...u,defaultValues:n._defaultValues})}}),[s,r,o]),m.useEffect(()=>{d.current.isValid&&n._setValid(!0)},[n]),m.useMemo(()=>G0(l,n,d.current,!1),[l,n])}var q0=e=>typeof e=="string",Vr=(e,t,n,r,s)=>q0(e)?xe(n,e,s):Array.isArray(e)?e.map(o=>xe(n,o)):n,$r=e=>En(e)||!Xi(e);function ea(e,t,n=new WeakSet){if(e===t)return!0;if($r(e)||$r(t))return Object.is(e,t);if(gt(e)&>(t))return Object.is(e.getTime(),t.getTime());const r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const o of r){const l=e[o];if(!(o in t))return!1;if(o!=="ref"){const c=t[o];if(gt(l)&>(c)||(Qe(l)||Array.isArray(l))&&(Qe(c)||Array.isArray(c))?!ea(l,c,n):!Object.is(l,c))return!1}}return!0}function U0(e){const t=$n(),{control:n=t,name:r,defaultValue:s,disabled:o,exact:l,compute:c}=e||{},d=m.useRef(s),u=m.useRef(c),p=m.useRef(void 0),f=m.useRef(n),b=m.useRef(r);u.current=c;const[w,h]=m.useState(()=>{const N=n._getWatch(r,d.current);return u.current?u.current(N):N}),y=m.useCallback(N=>{const C=Vr(r,n._names,N||n._formValues,!1,d.current);return u.current?u.current(C):C},[n._formValues,n._names,r]),x=m.useCallback(N=>{if(!o){const C=Vr(r,n._names,N||n._formValues,!1,d.current);if(u.current){const z=u.current(C);ea(z,p.current)||(h(z),p.current=z)}else h(C)}},[n._formValues,n._names,o,r]);al(()=>((f.current!==n||!ea(b.current,r))&&(f.current=n,b.current=r,x()),n._subscribe({name:r,formState:{values:!0},exact:l,callback:N=>{x(N.values)}})),[n,l,r,x]),m.useEffect(()=>n._removeUnmounted());const k=f.current!==n,j=b.current,v=m.useMemo(()=>{if(o)return null;const N=!k&&!ea(j,r);return k||N?y():null},[o,k,r,j,y]);return v!==null?v:w}function Q0(e){const t=$n(),{name:n,disabled:r,control:s=t,shouldUnregister:o,defaultValue:l,exact:c=!0}=e,d=!!V0(s._names.array,n).length,u=m.useMemo(()=>xe(s._formValues,n,xe(s._defaultValues,n,l)),[s,n,l]),p=U0({control:s,name:n,defaultValue:u,exact:c}),f=W0({control:s,name:n,exact:c}),b=m.useRef(e),w=m.useRef(s.register(n,{...e.rules,value:p,...Ha(e.disabled)?{disabled:e.disabled}:{}}));b.current=e;const h=m.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!xe(f.errors,n)},isDirty:{enumerable:!0,get:()=>!!xe(f.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!xe(f.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!xe(f.validatingFields,n)},error:{enumerable:!0,get:()=>xe(f.errors,n)}}),[f,n]),y=m.useCallback(v=>w.current.onChange({target:{value:E0(v),name:n},type:Or.CHANGE}),[n]),x=m.useCallback(()=>w.current.onBlur({target:{value:xe(s._formValues,n),name:n},type:Or.BLUR}),[n,s._formValues]),k=m.useCallback(v=>{const N=xe(s._fields,n);N&&N._f&&v&&(N._f.ref={focus:()=>Ut(v.focus)&&v.focus(),select:()=>Ut(v.select)&&v.select(),setCustomValidity:C=>Ut(v.setCustomValidity)&&v.setCustomValidity(C),reportValidity:()=>Ut(v.reportValidity)&&v.reportValidity()})},[s._fields,n]),j=m.useMemo(()=>({name:n,value:p,...Ha(r)||f.disabled?{disabled:f.disabled||r}:{},onChange:y,onBlur:x,ref:k}),[n,r,f.disabled,y,x,k,p]);return m.useEffect(()=>{const v=s._options.shouldUnregister||o;s.register(n,{...b.current.rules,...Ha(b.current.disabled)?{disabled:b.current.disabled}:{}});const N=(C,z)=>{const L=xe(s._fields,C);L&&L._f&&(L._f.mount=z)};if(N(n,!0),v){const C=Ji(xe(s._defaultValues,n,xe(s._options.defaultValues,n,b.current.defaultValue)));Fr(s._defaultValues,n,C),tn(xe(s._formValues,n))&&Fr(s._formValues,n,C)}return!d&&s.register(n),()=>{(d?v&&!s._state.action:v)?s.unregister(n):N(n,!1)}},[n,s,d,o]),m.useEffect(()=>{s._setDisabledField({disabled:r,name:n})},[r,n,s]),m.useMemo(()=>({field:j,formState:f,fieldState:h}),[j,f,h])}const Y0=e=>e.render(Q0(e)),Bn=m.createContext(null);Bn.displayName="HookFormContext";const K0=()=>m.useContext(Bn),Z0=e=>{const{children:t,watch:n,getValues:r,getFieldState:s,setError:o,clearErrors:l,setValue:c,setValues:d,trigger:u,formState:p,resetField:f,reset:b,handleSubmit:w,unregister:h,control:y,register:x,setFocus:k,subscribe:j}=e,v=m.useMemo(()=>({watch:n,getValues:r,getFieldState:s,setError:o,clearErrors:l,setValue:c,setValues:d,trigger:u,formState:p,resetField:f,reset:b,handleSubmit:w,unregister:h,control:y,register:x,setFocus:k,subscribe:j}),[l,y,p,s,r,w,x,b,f,o,k,c,d,j,u,h,n]);return m.createElement(Bn.Provider,{value:v},m.createElement(Vn.Provider,{value:v.control},t))},X0=Z0,nl=g.createContext({});function J0({...e}){return a.jsx(nl.Provider,{value:{name:e.name},children:a.jsx(Y0,{...e})})}const rl=g.createContext({});function Tt(){const e=g.useContext(nl),t=g.useContext(rl),{getFieldState:n,formState:r}=K0();if(!e.name)throw new Error("useFormField should be used within <FormField>");const s=n(e.name,r),{id:o}=t;return{id:o,name:e.name,formItemId:`${o}-form-item`,formDescriptionId:`${o}-form-item-description`,formMessageId:`${o}-form-item-message`,...s}}const sl=g.forwardRef(({className:e,...t},n)=>{const r=g.useId();return a.jsx(rl.Provider,{value:{id:r},children:a.jsx("div",{ref:n,"data-slot":"form-item",className:i("space-y-2",e),...t})})});sl.displayName="FormItem";const ol=g.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:s}=Tt();return a.jsx(ya,{ref:n,"data-slot":"form-label","data-error":!!r,className:i("data-[error=true]:text-error",e),htmlFor:s,...t})});ol.displayName="FormLabel";const il=g.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:s,formMessageId:o}=Tt();return a.jsx(Xe,{ref:t,"data-slot":"form-control",id:r,"aria-describedby":n?`${s} ${o}`:`${s}`,"aria-invalid":!!n,...e})});il.displayName="FormControl";const ll=g.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=Tt();return a.jsx("p",{ref:n,id:r,"data-slot":"form-description",className:i("text-sm text-text-tertiary",e),...t})});ll.displayName="FormDescription";const cl=g.forwardRef(({className:e,children:t,...n},r)=>{const{error:s,formMessageId:o}=Tt(),l=s?String(s?.message??""):t;return l?a.jsx("p",{ref:r,id:o,"data-slot":"form-message",className:i("text-sm font-medium text-error",e),...n,children:l}):null});cl.displayName="FormMessage";const dl=A.cva("group peer shrink-0 rounded-sm border border-border-tertiary bg-bg-container outline-offset-2 transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary-border disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-text-on-primary data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-text-on-primary",{variants:{size:{sm:"size-3.5",md:"size-4",lg:"size-5"}},defaultVariants:{size:"md"}}),ul=g.forwardRef(({className:e,size:t="md",...n},r)=>a.jsx(Ya.Root,{ref:r,className:i(dl({size:t}),e),...n,children:a.jsxs(Ya.Indicator,{className:"flex items-center justify-center text-current",children:[a.jsx(we,{className:"size-[0.875em] group-data-[state=indeterminate]:hidden"}),a.jsx("span",{className:"hidden h-[0.125em] w-[0.625em] rounded-sm bg-current group-data-[state=indeterminate]:block"})]})}));ul.displayName=Ya.Root.displayName;const ef=cu.Root;function tf({className:e,...t}){return a.jsx("div",{"data-slot":"empty",className:i("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12",e),...t})}function af({className:e,...t}){return a.jsx("div",{"data-slot":"empty-header",className:i("flex max-w-sm flex-col items-center gap-2 text-center",e),...t})}const nf=A.cva("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"flex size-10 shrink-0 items-center justify-center rounded-lg bg-fill-tertiary text-text [&_svg:not([class*='size-'])]:size-6"}},defaultVariants:{variant:"default"}});function rf({className:e,variant:t="default",...n}){return a.jsx("div",{"data-slot":"empty-icon","data-variant":t,className:i(nf({variant:t,className:e})),...n})}function sf({className:e,...t}){return a.jsx("div",{"data-slot":"empty-title",className:i("text-lg font-medium tracking-tight",e),...t})}function of({className:e,...t}){return a.jsx("div",{"data-slot":"empty-description",className:i("text-sm/relaxed text-text-tertiary [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...t})}function lf({className:e,...t}){return a.jsx("div",{"data-slot":"empty-content",className:i("flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance",e),...t})}function cf({className:e,...t}){return a.jsx("div",{role:"list","data-slot":"item-group",className:i("group/item-group flex flex-col",e),...t})}function df({className:e,...t}){return a.jsx(Rt,{"data-slot":"item-separator",orientation:"horizontal",className:i("my-0",e),...t})}const uf=A.cva("group/item flex flex-wrap items-center rounded-md border border-transparent text-sm transition-colors duration-100 outline-none focus-visible:border-primary-border focus-visible:ring-[3px] focus-visible:ring-primary-border/50 [a]:transition-colors [a]:hover:bg-fill-secondary/50",{variants:{variant:{default:"bg-transparent",outline:"border-border",muted:"bg-fill-tertiary/50"},size:{default:"gap-4 p-4",sm:"gap-2.5 px-4 py-3"}},defaultVariants:{variant:"default",size:"default"}});function mf({className:e,variant:t="default",size:n="default",asChild:r=!1,...s}){const o=r?B.Slot.Root:"div";return a.jsx(o,{"data-slot":"item","data-variant":t,"data-size":n,className:i(uf({variant:t,size:n,className:e})),...s})}const pf=A.cva("flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none",{variants:{variant:{default:"bg-transparent",icon:"size-8 rounded-sm border bg-fill-tertiary [&_svg:not([class*='size-'])]:size-4",image:"size-10 overflow-hidden rounded-sm [&_img]:size-full [&_img]:object-cover"}},defaultVariants:{variant:"default"}});function ff({className:e,variant:t="default",...n}){return a.jsx("div",{"data-slot":"item-media","data-variant":t,className:i(pf({variant:t,className:e})),...n})}function xf({className:e,...t}){return a.jsx("div",{"data-slot":"item-content",className:i("flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none",e),...t})}function hf({className:e,...t}){return a.jsx("div",{"data-slot":"item-title",className:i("flex w-fit items-center gap-2 text-sm leading-snug font-medium",e),...t})}function gf({className:e,...t}){return a.jsx("p",{"data-slot":"item-description",className:i("line-clamp-2 text-sm leading-normal font-normal text-balance text-text-tertiary","[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...t})}function bf({className:e,...t}){return a.jsx("div",{"data-slot":"item-actions",className:i("flex items-center gap-2",e),...t})}function yf({className:e,...t}){return a.jsx("div",{"data-slot":"item-header",className:i("flex basis-full items-center justify-between gap-2",e),...t})}function vf({className:e,...t}){return a.jsx("div",{"data-slot":"item-footer",className:i("flex basis-full items-center justify-between gap-2",e),...t})}const wf=A.cva("flex flex-col gap-4 rounded-xl text-text py-6",{variants:{variant:{outline:"border border-border-tertiary bg-bg-container shadow-sm transition-shadow hover:shadow-md",filled:"bg-fill-tertiary",ghost:"bg-transparent"}},defaultVariants:{variant:"outline"}}),ml=g.forwardRef(({className:e,variant:t="outline",...n},r)=>a.jsx("div",{ref:r,className:i(wf({variant:t}),e),...n}));ml.displayName="Card";const pl=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:i("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6","has-data-[slot=card-action]:grid-cols-[1fr_auto]","[.border-b]:pb-4",e),...t}));pl.displayName="CardHeader";const fl=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:i("text-base font-semibold leading-none text-text",e),...t}));fl.displayName="CardTitle";const xl=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:i("text-sm leading-6 text-text-tertiary",e),...t}));xl.displayName="CardDescription";const hl=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,"data-slot":"card-action",className:i("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t}));hl.displayName="CardAction";const gl=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:i("px-6",e),...t}));gl.displayName="CardContent";const bl=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:i("flex items-center px-6 [.border-t]:pt-4",e),...t}));bl.displayName="CardFooter";const yl=A.cva("relative grid w-full items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm",{variants:{variant:{default:"border-border-tertiary bg-bg-container text-text [&>svg]:text-text-secondary",info:"border-primary-border bg-primary-bg text-text [&>svg]:text-primary",success:"border-success-border bg-success-bg text-text [&>svg]:text-success",warning:"border-warning-border bg-warning-bg text-text [&>svg]:text-warning",destructive:"border-error-border bg-error-bg text-text [&>svg]:text-error"}},defaultVariants:{variant:"default"}}),vl=g.forwardRef(({className:e,variant:t,...n},r)=>a.jsx("div",{ref:r,role:"alert",className:i(yl({variant:t}),"has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-3","[&>svg]:size-4 [&>svg]:translate-y-0.5",e),...n}));vl.displayName="Alert";const wl=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:i("col-start-2 min-h-4 font-medium leading-5 tracking-tight text-text","line-clamp-1",e),...t}));wl.displayName="AlertTitle";const kl=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:i("col-start-2 grid justify-items-start gap-1 text-sm leading-6 text-text-secondary","[&_p]:leading-6",e),...t}));kl.displayName="AlertDescription";const jl=g.forwardRef(({...e},t)=>a.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));jl.displayName="Breadcrumb";const Nl=g.forwardRef(({className:e,...t},n)=>a.jsx("ol",{ref:n,className:i("flex flex-wrap items-center gap-1.5 text-sm text-text-tertiary break-words sm:gap-2.5",e),...t}));Nl.displayName="BreadcrumbList";const Cl=g.forwardRef(({className:e,...t},n)=>a.jsx("li",{ref:n,className:i("inline-flex items-center gap-1.5",e),...t}));Cl.displayName="BreadcrumbItem";const Sl=g.forwardRef(({className:e,asChild:t,...n},r)=>t?a.jsx("span",{className:i("transition-colors hover:text-text",e),...n}):a.jsx("a",{ref:r,className:i("transition-colors hover:text-text",e),...n}));Sl.displayName="BreadcrumbLink";const Il=g.forwardRef(({className:e,...t},n)=>a.jsx("span",{ref:n,role:"link","aria-disabled":"true","aria-current":"page",className:i("font-normal text-text",e),...t}));Il.displayName="BreadcrumbPage";const Rl=({children:e,className:t,...n})=>a.jsx("li",{role:"presentation","aria-hidden":"true",className:i("[&>svg]:size-3.5 text-text-tertiary",t),...n,children:e??a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,children:a.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"})})});Rl.displayName="BreadcrumbSeparator";const Ml=({className:e,...t})=>a.jsxs("span",{role:"presentation","aria-hidden":"true",className:i("flex size-9 items-center justify-center",e),...t,children:[a.jsx(fn,{className:"size-4"}),a.jsx("span",{className:"sr-only",children:"More"})]});Ml.displayName="BreadcrumbEllipsis";const Tl=X.Root,kf=X.Trigger,zl=X.Portal,jf=X.Close,Hn=g.forwardRef(({className:e,...t},n)=>a.jsx(X.Overlay,{ref:n,asChild:!0,...t,children:a.jsx(q.motion.div,{className:i("fixed inset-0 z-50 bg-bg-mask/60",e),...ga})}));Hn.displayName=X.Overlay.displayName;const Nf=A.cva("font-sans fixed left-1/2 top-1/2 z-50 w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 rounded-xl border border-border bg-bg-base text-text shadow-lg p-6 outline-none",{variants:{size:{sm:"max-w-sm",default:"max-w-lg",lg:"max-w-2xl",xl:"max-w-4xl"}},defaultVariants:{size:"default"}}),Gn=g.forwardRef(({className:e,children:t,size:n="default",hideCloseButton:r=!1,dataStyle:s,dataTheme:o,...l},c)=>{const d=ve(),u=s!==void 0?{"data-style":s,"data-theme":o??d["data-theme"]??""}:d;return a.jsx(zl,{children:a.jsxs("div",{style:{display:"contents"},...u,children:[a.jsx(Hn,{}),a.jsx(X.Content,{ref:c,asChild:!0,...l,children:a.jsxs(q.motion.div,{className:i(Nf({size:n}),e),...xn,children:[t,!r&&a.jsxs(X.Close,{className:i("absolute right-4 top-4 inline-flex size-7 items-center justify-center rounded-md text-text-tertiary opacity-70 transition-colors","hover:bg-fill-secondary hover:text-text hover:opacity-100","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-border","disabled:pointer-events-none"),children:[a.jsx(Me,{className:"size-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})})]})})});Gn.displayName=X.Content.displayName;const Wn=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:i("flex flex-col gap-2 text-left",e),...t}));Wn.displayName="DialogHeader";const Pl=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:i("mt-6 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t}));Pl.displayName="DialogFooter";const qn=g.forwardRef(({className:e,...t},n)=>a.jsx(X.Title,{ref:n,className:i("font-sans text-base font-medium leading-6 text-text",e),...t}));qn.displayName=X.Title.displayName;const Un=g.forwardRef(({className:e,...t},n)=>a.jsx(X.Description,{ref:n,className:i("text-sm leading-6 text-text-tertiary",e),...t}));Un.displayName=X.Description.displayName;const Ll=g.forwardRef((e,t)=>{const{style:n,theme:r}=me();return a.jsx(Gn,{ref:t,dataStyle:n,dataTheme:r,...e})});Ll.displayName="DialogContent";const Dl=g.forwardRef((e,t)=>{const{style:n,theme:r}=me();return a.jsx(Fn,{ref:t,dataStyle:n,dataTheme:r,...e})});Dl.displayName="DrawerContent";const Qn=it.Root,Yn=it.Trigger,Cf=it.Anchor,va=g.forwardRef(({className:e,align:t="center",sideOffset:n=4,contentPadding:r="default",children:s,dataStyle:o,dataTheme:l,...c},d)=>{const u=ve(),p=o!==void 0?{"data-style":o,"data-theme":l??u["data-theme"]??""}:u;return a.jsx(it.Portal,{children:a.jsx("div",{style:{display:"contents"},...p,children:a.jsx(it.Content,{ref:d,"data-slot":"popover-content",align:t,sideOffset:n,className:i("z-50 w-72 rounded-lg border border-border-tertiary bg-bg-container text-sm text-text shadow-md outline-none",r==="none"?"p-0":r==="compact"?"p-1":"p-4",e),...c,children:a.jsx(q.motion.div,{...pt,children:s})})})})});va.displayName=it.Content.displayName;const Al=g.forwardRef((e,t)=>{const{style:n,theme:r}=me();return a.jsx(va,{ref:t,dataStyle:n,dataTheme:r,...e})});Al.displayName="PopoverContent";const Sf=kt.Root,If=kt.Trigger,_l=g.forwardRef(({className:e,align:t="center",sideOffset:n=4,children:r,dataStyle:s,dataTheme:o,...l},c)=>{const d=ve(),u=s!==void 0?{"data-style":s,"data-theme":o??d["data-theme"]??""}:d;return a.jsx(kt.Portal,{children:a.jsx("div",{style:{display:"contents"},...u,children:a.jsx(kt.Content,{ref:c,align:t,sideOffset:n,className:i("z-50 w-64 rounded-lg border border-border-tertiary bg-bg-container p-4 text-sm text-text shadow-md outline-none",e),...l,children:a.jsx(q.motion.div,{...pt,children:r})})})})});_l.displayName=kt.Content.displayName;const Fl=g.forwardRef((e,t)=>{const{style:n,theme:r}=me();return a.jsx(_l,{ref:t,dataStyle:n,dataTheme:r,...e})});Fl.displayName="HoverCardContent";const Rf=J.Root,Mf=J.Trigger,Tf=J.Group,zf=J.Portal,Pf=J.Sub,Lf=J.RadioGroup,Ol="z-50 min-w-32 overflow-hidden rounded-lg border border-border-tertiary bg-bg-container p-1 text-text shadow-lg outline-none",El=g.forwardRef(({className:e,children:t,dataStyle:n,dataTheme:r,...s},o)=>{const l=ve(),c=n!==void 0?{"data-style":n,"data-theme":r??l["data-theme"]??""}:l;return a.jsx(J.Portal,{children:a.jsx("div",{style:{display:"contents"},...c,children:a.jsx(J.Content,{ref:o,className:i(Ol,e),...s,children:a.jsx(q.motion.div,{...pt,children:t})})})})});El.displayName=J.Content.displayName;const Df=A.cva("flex h-9 w-full cursor-pointer select-none items-center gap-2 rounded-sm px-3 text-sm outline-none hover:bg-fill-secondary focus:bg-fill-secondary data-[highlighted]:bg-fill-secondary data-[state=open]:bg-fill-secondary",{variants:{inset:{true:"pl-8 pr-3",false:""}},defaultVariants:{inset:!1}}),Vl=g.forwardRef(({className:e,inset:t=!1,children:n,...r},s)=>a.jsxs(J.SubTrigger,{ref:s,className:i(Df({inset:t}),e),...r,children:[n,a.jsx("span",{className:"ml-auto flex h-4 w-4 items-center justify-center",children:a.jsx(Ct,{className:"h-4 w-4"})})]}));Vl.displayName=J.SubTrigger.displayName;const $l=g.forwardRef(({className:e,dataStyle:t,dataTheme:n,...r},s)=>{const o=ve(),l=t!==void 0?{"data-style":t,"data-theme":n??o["data-theme"]??""}:o;return a.jsx(J.Portal,{children:a.jsx("div",{style:{display:"contents"},...l,children:a.jsx(J.SubContent,{ref:s,className:i(Ol,e),...r})})})});$l.displayName=J.SubContent.displayName;const Af=A.cva("relative flex h-9 w-full min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm px-3 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50",{variants:{variant:{default:"hover:bg-fill-secondary focus:bg-fill-secondary focus:text-text data-[highlighted]:bg-fill-secondary data-[highlighted]:text-text",destructive:"text-error hover:bg-error-bg focus:bg-error-bg focus:text-error data-[highlighted]:bg-error-bg data-[highlighted]:text-error"},inset:{true:"pl-8 pr-3",false:""}},defaultVariants:{variant:"default",inset:!1}}),Bl=g.forwardRef(({className:e,inset:t=!1,variant:n="default",...r},s)=>a.jsx(J.Item,{ref:s,className:i(Af({variant:n,inset:t}),e),...r}));Bl.displayName=J.Item.displayName;const Hl="relative flex h-9 w-full min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm pl-8 pr-3 text-sm outline-none hover:bg-fill-secondary focus:bg-fill-secondary focus:text-text data-[highlighted]:bg-fill-secondary data-[highlighted]:text-text data-[disabled]:pointer-events-none data-[disabled]:opacity-50",Gl=g.forwardRef(({className:e,children:t,checked:n,...r},s)=>a.jsxs(J.CheckboxItem,{ref:s,checked:n,className:i(Hl,e),...r,children:[a.jsx("span",{className:"absolute left-2 top-1/2 flex h-3.5 w-3.5 -translate-y-1/2 items-center justify-center",children:a.jsx(J.ItemIndicator,{children:a.jsx(we,{className:"h-4 w-4"})})}),t]}));Gl.displayName=J.CheckboxItem.displayName;const Wl=g.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(J.RadioItem,{ref:r,className:i(Hl,e),...n,children:[a.jsx("span",{className:"absolute left-2 top-1/2 flex h-3.5 w-3.5 -translate-y-1/2 items-center justify-center",children:a.jsx(J.ItemIndicator,{children:a.jsx("div",{className:"h-2 w-2 rounded-full bg-primary"})})}),t]}));Wl.displayName=J.RadioItem.displayName;const _f=A.cva("flex h-9 items-center px-3 text-sm font-semibold text-text-secondary",{variants:{inset:{true:"pl-8 pr-3",false:""}},defaultVariants:{inset:!1}}),ql=g.forwardRef(({className:e,inset:t=!1,...n},r)=>a.jsx(J.Label,{ref:r,className:i(_f({inset:t}),e),...n}));ql.displayName=J.Label.displayName;const Ul=g.forwardRef(({className:e,...t},n)=>a.jsx(J.Separator,{ref:n,className:i("my-1 mx-1 h-px bg-border-tertiary",e),...t}));Ul.displayName=J.Separator.displayName;const Ql=({className:e,...t})=>a.jsx("span",{className:i("ml-auto text-xs tracking-widest text-text-tertiary",e),...t});Ql.displayName="ContextMenuShortcut";const Yl=g.forwardRef((e,t)=>{const{style:n,theme:r}=me();return a.jsx(El,{ref:t,dataStyle:n,dataTheme:r,...e})});Yl.displayName="ContextMenuContent";const Kl=g.forwardRef((e,t)=>{const{style:n,theme:r}=me();return a.jsx($l,{ref:t,dataStyle:n,dataTheme:r,...e})});Kl.displayName="ContextMenuSubContent";function Ff({className:e,...t}){return a.jsx(B.Menubar.Root,{"data-slot":"menubar",className:i("flex h-9 items-center gap-1 rounded-md border bg-bg-base p-1 shadow-sm",e),...t})}function Of({...e}){return a.jsx(B.Menubar.Menu,{"data-slot":"menubar-menu",...e})}function Ef({...e}){return a.jsx(B.Menubar.Group,{"data-slot":"menubar-group",...e})}function Zl({...e}){return a.jsx(B.Menubar.Portal,{"data-slot":"menubar-portal",...e})}function Vf({...e}){return a.jsx(B.Menubar.RadioGroup,{"data-slot":"menubar-radio-group",...e})}function $f({className:e,...t}){return a.jsx(B.Menubar.Trigger,{"data-slot":"menubar-trigger",className:i("flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-none select-none focus:bg-fill-secondary focus:text-text data-[state=open]:bg-fill-secondary data-[state=open]:text-text",e),...t})}function Bf({className:e,align:t="start",alignOffset:n=-4,sideOffset:r=8,...s}){return a.jsx(Zl,{children:a.jsx(B.Menubar.Content,{"data-slot":"menubar-content",align:t,alignOffset:n,sideOffset:r,className:i("z-50 min-w-48 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border bg-bg-container p-1 text-text shadow-md 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 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e),...s})})}function Hf({className:e,inset:t,variant:n="default",...r}){return a.jsx(B.Menubar.Item,{"data-slot":"menubar-item","data-inset":t,"data-variant":n,className:i("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none focus:bg-fill-secondary focus:text-text data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-error data-[variant=destructive]:focus:bg-error/10 data-[variant=destructive]:focus:text-error dark:data-[variant=destructive]:focus:bg-error/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-text-tertiary data-[variant=destructive]:*:[svg]:text-error!",e),...r})}function Gf({className:e,children:t,checked:n,...r}){return a.jsxs(B.Menubar.CheckboxItem,{"data-slot":"menubar-checkbox-item",className:i("relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-none select-none focus:bg-fill-secondary focus:text-text data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:n,...r,children:[a.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:a.jsx(B.Menubar.ItemIndicator,{children:a.jsx(fe.CheckIcon,{className:"size-4"})})}),t]})}function Wf({className:e,children:t,...n}){return a.jsxs(B.Menubar.RadioItem,{"data-slot":"menubar-radio-item",className:i("relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-none select-none focus:bg-fill-secondary focus:text-text data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[a.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:a.jsx(B.Menubar.ItemIndicator,{children:a.jsx(fe.CircleIcon,{className:"size-2 fill-current"})})}),t]})}function qf({className:e,inset:t,...n}){return a.jsx(B.Menubar.Label,{"data-slot":"menubar-label","data-inset":t,className:i("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function Uf({className:e,...t}){return a.jsx(B.Menubar.Separator,{"data-slot":"menubar-separator",className:i("-mx-1 my-1 h-px bg-border",e),...t})}function Qf({className:e,...t}){return a.jsx("span",{"data-slot":"menubar-shortcut",className:i("ml-auto text-xs tracking-widest text-text-tertiary",e),...t})}function Yf({...e}){return a.jsx(B.Menubar.Sub,{"data-slot":"menubar-sub",...e})}function Kf({className:e,inset:t,children:n,...r}){return a.jsxs(B.Menubar.SubTrigger,{"data-slot":"menubar-sub-trigger","data-inset":t,className:i("flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none focus:bg-fill-secondary focus:text-text data-[inset]:pl-8 data-[state=open]:bg-fill-secondary data-[state=open]:text-text",e),...r,children:[n,a.jsx(fe.ChevronRightIcon,{className:"ml-auto h-4 w-4"})]})}function Zf({className:e,...t}){return a.jsx(B.Menubar.SubContent,{"data-slot":"menubar-sub-content",className:i("z-50 min-w-32 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border bg-bg-container p-1 text-text shadow-lg 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e),...t})}function Xf({className:e,children:t,viewport:n=!0,...r}){return a.jsxs(B.NavigationMenu.Root,{"data-slot":"navigation-menu","data-viewport":n,className:i("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",e),...r,children:[t,n&&a.jsx(Jl,{})]})}function Jf({className:e,...t}){return a.jsx(B.NavigationMenu.List,{"data-slot":"navigation-menu-list",className:i("group flex flex-1 list-none items-center justify-center gap-1",e),...t})}function ex({className:e,...t}){return a.jsx(B.NavigationMenu.Item,{"data-slot":"navigation-menu-item",className:i("relative",e),...t})}const Xl=A.cva("group inline-flex h-9 w-max items-center justify-center rounded-md bg-bg-base px-4 py-2 text-sm font-medium transition-[color,box-shadow] outline-none hover:bg-fill-secondary hover:text-text focus:bg-fill-secondary focus:text-text focus-visible:ring-[3px] focus-visible:ring-primary-border/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-fill-secondary/50 data-[state=open]:text-text data-[state=open]:hover:bg-fill-secondary data-[state=open]:focus:bg-fill-secondary");function tx({className:e,children:t,...n}){return a.jsxs(B.NavigationMenu.Trigger,{"data-slot":"navigation-menu-trigger",className:i(Xl(),"group",e),...n,children:[t," ",a.jsx(fe.ChevronDownIcon,{className:"relative top-px ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})}function ax({className:e,...t}){return a.jsx(B.NavigationMenu.Content,{"data-slot":"navigation-menu-content",className:i("top-0 left-0 w-full p-2 pr-2.5 data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out md:absolute md:w-auto","group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:bg-bg-container group-data-[viewport=false]/navigation-menu:text-text group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95",e),...t})}function Jl({className:e,...t}){return a.jsx("div",{className:i("absolute top-full left-0 isolate z-50 flex justify-center"),children:a.jsx(B.NavigationMenu.Viewport,{"data-slot":"navigation-menu-viewport",className:i("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-bg-container text-text shadow data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),...t})})}function nx({className:e,...t}){return a.jsx(B.NavigationMenu.Link,{"data-slot":"navigation-menu-link",className:i("flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none hover:bg-fill-secondary hover:text-text focus:bg-fill-secondary focus:text-text focus-visible:ring-[3px] focus-visible:ring-primary-border/50 focus-visible:outline-1 data-[active=true]:bg-fill-secondary/50 data-[active=true]:text-text data-[active=true]:hover:bg-fill-secondary data-[active=true]:focus:bg-fill-secondary [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-text-tertiary",e),...t})}function rx({className:e,...t}){return a.jsx(B.NavigationMenu.Indicator,{"data-slot":"navigation-menu-indicator",className:i("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:animate-in data-[state=visible]:fade-in",e),...t,children:a.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})})}function Kn({className:e,...t}){return a.jsx(Ye.Command,{"data-slot":"command",className:i("flex h-full w-full flex-col overflow-hidden rounded-md bg-bg-container text-text",e),...t})}function sx({title:e="Command Palette",description:t="Search for a command to run...",children:n,className:r,showCloseButton:s=!0,...o}){return a.jsxs(Tl,{...o,children:[a.jsxs(Wn,{className:"sr-only",children:[a.jsx(qn,{children:e}),a.jsx(Un,{children:t})]}),a.jsx(Gn,{className:i("overflow-hidden p-0",r),hideCloseButton:!s,children:a.jsx(Kn,{className:"**:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-text-tertiary [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:n})})]})}function ec({className:e,...t}){return a.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[a.jsx(fe.SearchIcon,{className:"size-4 shrink-0 opacity-50"}),a.jsx(Ye.Command.Input,{"data-slot":"command-input",className:i("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-text-tertiary disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function tc({className:e,...t}){return a.jsx(Ye.Command.List,{"data-slot":"command-list",className:i("max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function ac({...e}){return a.jsx(Ye.Command.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function nc({className:e,...t}){return a.jsx(Ye.Command.Group,{"data-slot":"command-group",className:i("overflow-hidden p-1 text-text [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-text-tertiary",e),...t})}function ox({className:e,...t}){return a.jsx(Ye.Command.Separator,{"data-slot":"command-separator",className:i("-mx-1 h-px bg-border",e),...t})}function rc({className:e,...t}){return a.jsx(Ye.Command.Item,{"data-slot":"command-item",className:i("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[selected=true]:bg-fill-secondary data-[selected=true]:text-text [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-text-tertiary",e),...t})}function ix({className:e,...t}){return a.jsx("span",{"data-slot":"command-shortcut",className:i("ml-auto text-xs tracking-widest text-text-tertiary",e),...t})}function lx({options:e,value:t,defaultValue:n,onValueChange:r,placeholder:s="Select an option…",searchPlaceholder:o="Search…",emptyText:l="No option found.",size:c="compact",disabled:d,className:u,contentClassName:p,triggerClassName:f,align:b="start",id:w,name:h,"aria-label":y}){const x=t!==void 0,[k,j]=g.useState(n),[v,N]=g.useState(!1),C=x?t:k,z=e.find(S=>S.value===C),L=g.useCallback(S=>{const _=S===C?"":S;x||j(_),r?.(_),N(!1)},[C,x,r]);return a.jsxs("div",{className:i("w-60",u),children:[a.jsxs(Qn,{open:v,onOpenChange:N,children:[a.jsx(Yn,{asChild:!0,children:a.jsx(G,{id:w,variant:"outline",role:"combobox","aria-expanded":v,"aria-label":y,disabled:d,className:i("w-full justify-between font-normal",!z&&"text-text-tertiary",f),suffixIcon:a.jsx(fe.ChevronsUpDownIcon,{className:"size-4 shrink-0 opacity-60"}),children:a.jsx("span",{className:"truncate text-left",children:z?z.label:s})})}),a.jsx(va,{align:b,contentPadding:"compact",className:i("w-[var(--radix-popover-trigger-width)] min-w-56",p),children:a.jsxs(Kn,{className:i("w-full",c==="compact"&&"[&_[data-slot=command-input-wrapper]]:h-8 [&_[data-slot=command-input]]:h-8 [&_[data-slot=command-input-wrapper]]:px-2 [&_[data-slot=command-input]]:py-1.5 [&_[cmdk-group]]:p-0 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-1.5 [&_[data-slot=command-empty]]:py-3"),children:[a.jsx(ec,{placeholder:o}),a.jsxs(tc,{children:[a.jsx(ac,{children:l}),a.jsx(nc,{children:e.map(S=>a.jsxs(rc,{value:S.value,keywords:[S.label,...S.keywords??[]],disabled:S.disabled,onSelect:L,children:[a.jsx(fe.CheckIcon,{className:i("mr-2 size-4",S.value===C?"opacity-100":"opacity-0")}),a.jsx("span",{className:"truncate",children:S.label})]},S.value))})]})]})})]}),h?a.jsx("input",{type:"hidden",name:h,value:C??""}):null]})}function cx({className:e,size:t="default",...n}){return a.jsxs("div",{className:"group/native-select relative w-fit has-[select:disabled]:opacity-50","data-slot":"native-select-wrapper",children:[a.jsx("select",{"data-slot":"native-select","data-size":t,className:i("h-9 w-full min-w-0 appearance-none rounded-md border border-border-tertiary bg-transparent px-3 py-2 pr-9 text-sm shadow-sm transition-[color,box-shadow] outline-none selection:bg-primary selection:text-text-on-primary placeholder:text-text-tertiary disabled:pointer-events-none disabled:cursor-not-allowed data-[size=sm]:h-8 data-[size=sm]:py-1 dark:bg-input/30 dark:hover:bg-input/50","focus-visible:border-primary-border focus-visible:ring-[3px] focus-visible:ring-primary-border/50","aria-invalid:border-error aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40",e),...n}),a.jsx(fe.ChevronDownIcon,{className:"pointer-events-none absolute top-1/2 right-3.5 size-4 -translate-y-1/2 text-text-tertiary opacity-50 select-none","aria-hidden":"true","data-slot":"native-select-icon"})]})}function dx({className:e,...t}){return a.jsx("option",{"data-slot":"native-select-option",className:i("bg-[Canvas] text-[CanvasText]",e),...t})}function ux({className:e,...t}){return a.jsx("optgroup",{"data-slot":"native-select-optgroup",className:i("bg-[Canvas] text-[CanvasText]",e),...t})}function sc({className:e,classNames:t,showOutsideDays:n=!0,captionLayout:r="label",buttonVariant:s="ghost",formatters:o,components:l,...c}){const d=Qa.getDefaultClassNames();return a.jsx(Qa.DayPicker,{showOutsideDays:n,className:i("group/calendar bg-bg-base p-3 [--cell-size:2rem] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:r,formatters:{formatMonthDropdown:u=>u.toLocaleString("default",{month:"short"}),...o},classNames:{root:i("w-fit",d.root),months:i("relative flex flex-col gap-4 md:flex-row",d.months),month:i("flex w-full flex-col gap-4",d.month),nav:i("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",d.nav),button_previous:i(jt({variant:s}),"h-[var(--cell-size)] w-[var(--cell-size)] p-0 select-none aria-disabled:opacity-50",d.button_previous),button_next:i(jt({variant:s}),"h-[var(--cell-size)] w-[var(--cell-size)] p-0 select-none aria-disabled:opacity-50",d.button_next),month_caption:i("flex h-[var(--cell-size)] w-full items-center justify-center px-[var(--cell-size)]",d.month_caption),dropdowns:i("flex h-[var(--cell-size)] w-full items-center justify-center gap-1.5 text-sm font-medium",d.dropdowns),dropdown_root:i("has-focus:border-primary-border border-border-tertiary shadow-sm has-focus:ring-primary-border/50 has-focus:ring-[3px] relative rounded-md border",d.dropdown_root),dropdown:i("absolute inset-0 bg-bg-container opacity-0",d.dropdown),caption_label:i("select-none font-medium",r==="label"?"text-sm":"flex h-8 items-center gap-1 rounded-md pr-1 pl-2 text-sm [&>svg]:size-3.5 [&>svg]:text-text-tertiary",d.caption_label),table:"w-full border-collapse",weekdays:i("flex",d.weekdays),weekday:i("flex-1 rounded-md text-[0.8rem] font-normal text-text-tertiary select-none",d.weekday),week:i("mt-2 flex w-full",d.week),week_number_header:i("w-[var(--cell-size)] select-none",d.week_number_header),week_number:i("text-[0.8rem] text-text-tertiary select-none",d.week_number),day:i("group/day relative aspect-square h-full w-full p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-r-sm",c.showWeekNumber?"[&:nth-child(2)[data-selected=true]_button]:rounded-l-sm":"[&:first-child[data-selected=true]_button]:rounded-l-sm",d.day),range_start:i("rounded-l-sm bg-fill-secondary",d.range_start),range_middle:i("rounded-none",d.range_middle),range_end:i("rounded-r-sm bg-fill-secondary",d.range_end),today:i("rounded-sm bg-fill-secondary text-text data-[selected=true]:rounded-sm",d.today),outside:i("text-text-tertiary aria-selected:text-text-tertiary",d.outside),disabled:i("text-text-tertiary opacity-50",d.disabled),hidden:i("invisible",d.hidden),...t},components:{Root:({className:u,rootRef:p,...f})=>a.jsx("div",{"data-slot":"calendar",ref:p,className:i(u),...f}),Chevron:({className:u,orientation:p,...f})=>p==="left"?a.jsx(fe.ChevronLeftIcon,{className:i("size-4",u),...f}):p==="right"?a.jsx(fe.ChevronRightIcon,{className:i("size-4",u),...f}):a.jsx(fe.ChevronDownIcon,{className:i("size-4",u),...f}),DayButton:oc,WeekNumber:({children:u,...p})=>a.jsx("td",{...p,children:a.jsx("div",{className:"flex size-[var(--cell-size)] items-center justify-center text-center",children:u})}),...l},...c})}function oc({className:e,day:t,modifiers:n,...r}){const s=Qa.getDefaultClassNames(),o=g.useRef(null);return g.useEffect(()=>{n.focused&&o.current?.focus()},[n.focused]),a.jsx("button",{ref:o,"data-day":t.date.toLocaleDateString(),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:i("inline-flex items-center justify-center transition-colors hover:bg-fill-secondary hover:text-text","flex aspect-square size-auto w-full min-w-[var(--cell-size)] flex-col gap-1 px-0 leading-none font-normal hover:rounded-sm group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-primary-border group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-primary-border/50 data-[range-end=true]:rounded-sm data-[range-end=true]:rounded-r-sm data-[range-end=true]:bg-primary data-[range-end=true]:text-text-on-primary data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-fill-secondary data-[range-middle=true]:text-text data-[range-start=true]:rounded-sm data-[range-start=true]:rounded-l-sm data-[range-start=true]:bg-primary data-[range-start=true]:text-text-on-primary data-[selected=true]:rounded-sm data-[selected=true]:!outline-none data-[selected=true]:!shadow-none data-[selected=true]:!ring-0 data-[selected=true]:!ring-offset-0 data-[selected=true]:!border-transparent data-[selected=true]:focus-visible:!ring-0 data-[selected=true]:focus-visible:!outline-none data-[selected-single=true]:rounded-sm data-[selected-single=true]:bg-primary data-[selected-single=true]:text-text-on-primary dark:hover:text-text [&>span]:text-xs [&>span]:opacity-70",s.day,e),...r})}const ic=6048e5,mx=864e5,Br=Symbol.for("constructDateFrom");function Oe(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Br in e?e[Br](t):e instanceof Date?new e.constructor(t):new Date(t)}function je(e,t){return Oe(t||e,e)}let px={};function wa(){return px}function Nt(e,t){const n=wa(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=je(e,t?.in),o=s.getDay(),l=(o<r?7:0)+o-r;return s.setDate(s.getDate()-l),s.setHours(0,0,0,0),s}function oa(e,t){return Nt(e,{...t,weekStartsOn:1})}function lc(e,t){const n=je(e,t?.in),r=n.getFullYear(),s=Oe(n,0);s.setFullYear(r+1,0,4),s.setHours(0,0,0,0);const o=oa(s),l=Oe(n,0);l.setFullYear(r,0,4),l.setHours(0,0,0,0);const c=oa(l);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function Hr(e){const t=je(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function fx(e,...t){const n=Oe.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function Gr(e,t){const n=je(e,t?.in);return n.setHours(0,0,0,0),n}function xx(e,t,n){const[r,s]=fx(n?.in,e,t),o=Gr(r),l=Gr(s),c=+o-Hr(o),d=+l-Hr(l);return Math.round((c-d)/mx)}function hx(e,t){const n=lc(e,t),r=Oe(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),oa(r)}function gx(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function bx(e){return!(!gx(e)&&typeof e!="number"||isNaN(+je(e)))}function yx(e,t){const n=je(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const vx={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},wx=(e,t,n)=>{let r;const s=vx[e];return typeof s=="string"?r=s:t===1?r=s.one:r=s.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Ga(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const kx={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},jx={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Nx={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Cx={date:Ga({formats:kx,defaultWidth:"full"}),time:Ga({formats:jx,defaultWidth:"full"}),dateTime:Ga({formats:Nx,defaultWidth:"full"})},Sx={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ix=(e,t,n,r)=>Sx[e];function xt(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let s;if(r==="formatting"&&e.formattingValues){const l=e.defaultFormattingWidth||e.defaultWidth,c=n?.width?String(n.width):l;s=e.formattingValues[c]||e.formattingValues[l]}else{const l=e.defaultWidth,c=n?.width?String(n.width):e.defaultWidth;s=e.values[c]||e.values[l]}const o=e.argumentCallback?e.argumentCallback(t):t;return s[o]}}const Rx={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Mx={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Tx={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},zx={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Px={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Lx={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Dx=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Ax={ordinalNumber:Dx,era:xt({values:Rx,defaultWidth:"wide"}),quarter:xt({values:Mx,defaultWidth:"wide",argumentCallback:e=>e-1}),month:xt({values:Tx,defaultWidth:"wide"}),day:xt({values:zx,defaultWidth:"wide"}),dayPeriod:xt({values:Px,defaultWidth:"wide",formattingValues:Lx,defaultFormattingWidth:"wide"})};function ht(e){return(t,n={})=>{const r=n.width,s=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(s);if(!o)return null;const l=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(c)?Fx(c,f=>f.test(l)):_x(c,f=>f.test(l));let u;u=e.valueCallback?e.valueCallback(d):d,u=n.valueCallback?n.valueCallback(u):u;const p=t.slice(l.length);return{value:u,rest:p}}}function _x(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Fx(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Ox(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const s=r[0],o=t.match(e.parsePattern);if(!o)return null;let l=e.valueCallback?e.valueCallback(o[0]):o[0];l=n.valueCallback?n.valueCallback(l):l;const c=t.slice(s.length);return{value:l,rest:c}}}const Ex=/^(\d+)(th|st|nd|rd)?/i,Vx=/\d+/i,$x={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Bx={any:[/^b/i,/^(a|c)/i]},Hx={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Gx={any:[/1/i,/2/i,/3/i,/4/i]},Wx={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},qx={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Ux={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Qx={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Yx={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Kx={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Zx={ordinalNumber:Ox({matchPattern:Ex,parsePattern:Vx,valueCallback:e=>parseInt(e,10)}),era:ht({matchPatterns:$x,defaultMatchWidth:"wide",parsePatterns:Bx,defaultParseWidth:"any"}),quarter:ht({matchPatterns:Hx,defaultMatchWidth:"wide",parsePatterns:Gx,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ht({matchPatterns:Wx,defaultMatchWidth:"wide",parsePatterns:qx,defaultParseWidth:"any"}),day:ht({matchPatterns:Ux,defaultMatchWidth:"wide",parsePatterns:Qx,defaultParseWidth:"any"}),dayPeriod:ht({matchPatterns:Yx,defaultMatchWidth:"any",parsePatterns:Kx,defaultParseWidth:"any"})},Xx={code:"en-US",formatDistance:wx,formatLong:Cx,formatRelative:Ix,localize:Ax,match:Zx,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Jx(e,t){const n=je(e,t?.in);return xx(n,yx(n))+1}function eh(e,t){const n=je(e,t?.in),r=+oa(n)-+hx(n);return Math.round(r/ic)+1}function cc(e,t){const n=je(e,t?.in),r=n.getFullYear(),s=wa(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,l=Oe(t?.in||e,0);l.setFullYear(r+1,0,o),l.setHours(0,0,0,0);const c=Nt(l,t),d=Oe(t?.in||e,0);d.setFullYear(r,0,o),d.setHours(0,0,0,0);const u=Nt(d,t);return+n>=+c?r+1:+n>=+u?r:r-1}function th(e,t){const n=wa(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=cc(e,t),o=Oe(t?.in||e,0);return o.setFullYear(s,0,r),o.setHours(0,0,0,0),Nt(o,t)}function ah(e,t){const n=je(e,t?.in),r=+Nt(n,t)-+th(n,t);return Math.round(r/ic)+1}function H(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Ae={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return H(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):H(n+1,2)},d(e,t){return H(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(e,t){return H(e.getHours()%12||12,t.length)},H(e,t){return H(e.getHours(),t.length)},m(e,t){return H(e.getMinutes(),t.length)},s(e,t){return H(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),s=Math.trunc(r*Math.pow(10,n-3));return H(s,t.length)}},st={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Wr={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return Ae.y(e,t)},Y:function(e,t,n,r){const s=cc(e,r),o=s>0?s:1-s;if(t==="YY"){const l=o%100;return H(l,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):H(o,t.length)},R:function(e,t){const n=lc(e);return H(n,t.length)},u:function(e,t){const n=e.getFullYear();return H(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return H(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return H(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Ae.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return H(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const s=ah(e,r);return t==="wo"?n.ordinalNumber(s,{unit:"week"}):H(s,t.length)},I:function(e,t,n){const r=eh(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):H(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Ae.d(e,t)},D:function(e,t,n){const r=Jx(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):H(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const s=e.getDay(),o=(s-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return H(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const s=e.getDay(),o=(s-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return H(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),s=r===0?7:r;switch(t){case"i":return String(s);case"ii":return H(s,t.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let s;switch(r===12?s=st.noon:r===0?s=st.midnight:s=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let s;switch(r>=17?s=st.evening:r>=12?s=st.afternoon:r>=4?s=st.morning:s=st.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Ae.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Ae.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):H(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):H(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ae.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Ae.s(e,t)},S:function(e,t){return Ae.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Ur(r);case"XXXX":case"XX":return We(r);default:return We(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Ur(r);case"xxxx":case"xx":return We(r);default:return We(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+qr(r,":");default:return"GMT"+We(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+qr(r,":");default:return"GMT"+We(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return H(r,t.length)},T:function(e,t,n){return H(+e,t.length)}};function qr(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=Math.trunc(r/60),o=r%60;return o===0?n+String(s):n+String(s)+t+H(o,2)}function Ur(e,t){return e%60===0?(e>0?"-":"+")+H(Math.abs(e)/60,2):We(e,t)}function We(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=H(Math.trunc(r/60),2),o=H(r%60,2);return n+s+t+o}const Qr=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},dc=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},nh=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return Qr(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Qr(r,t)).replace("{{time}}",dc(s,t))},rh={p:dc,P:nh},sh=/^D+$/,oh=/^Y+$/,ih=["D","DD","YY","YYYY"];function lh(e){return sh.test(e)}function ch(e){return oh.test(e)}function dh(e,t,n){const r=uh(e,t,n);if(console.warn(r),ih.includes(e))throw new RangeError(r)}function uh(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const mh=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ph=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,fh=/^'([^]*?)'?$/,xh=/''/g,hh=/[a-zA-Z]/;function gh(e,t,n){const r=wa(),s=r.locale??Xx,o=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,l=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,c=je(e,n?.in);if(!bx(c))throw new RangeError("Invalid time value");let d=t.match(ph).map(p=>{const f=p[0];if(f==="p"||f==="P"){const b=rh[f];return b(p,s.formatLong)}return p}).join("").match(mh).map(p=>{if(p==="''")return{isToken:!1,value:"'"};const f=p[0];if(f==="'")return{isToken:!1,value:bh(p)};if(Wr[f])return{isToken:!0,value:p};if(f.match(hh))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return{isToken:!1,value:p}});s.localize.preprocessor&&(d=s.localize.preprocessor(c,d));const u={firstWeekContainsDate:o,weekStartsOn:l,locale:s};return d.map(p=>{if(!p.isToken)return p.value;const f=p.value;(ch(f)||lh(f))&&dh(f,t,String(e));const b=Wr[f[0]];return b(c,f,s.localize,u)}).join("")}function bh(e){const t=e.match(fh);return t?t[1].replace(xh,"'"):e}function yh({value:e,defaultValue:t,onChange:n,placeholder:r="Pick a date",disabled:s,className:o,align:l="start",formatString:c="PPP",id:d,name:u,"aria-label":p}){const f=e!==void 0,[b,w]=g.useState(t),[h,y]=g.useState(!1),x=f?e:b,k=g.useCallback(j=>{f||w(j),n?.(j),j&&y(!1)},[f,n]);return a.jsxs(Qn,{open:h,onOpenChange:y,children:[a.jsx(Yn,{asChild:!0,children:a.jsx(G,{id:d,variant:"outline",disabled:s,"aria-label":p??(typeof r=="string"?r:"Pick a date"),className:i("w-60 justify-start text-left font-normal",!x&&"text-text-tertiary",o),prefixIcon:a.jsx(fe.CalendarIcon,{className:"size-4 text-text-tertiary"}),children:x?gh(x,c):a.jsx("span",{children:r})})}),a.jsxs(va,{className:"w-auto",contentPadding:"compact",align:l,children:[a.jsx(sc,{mode:"single",selected:x,defaultMonth:x,onSelect:k,autoFocus:!0}),u?a.jsx("input",{type:"hidden",name:u,value:x?x.toISOString():""}):null]})]})}const uc=g.createContext(null);function ka(){const e=g.useContext(uc);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}function vh({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:s,children:o,...l}){const[c,d]=Zd({...t,axis:e==="horizontal"?"x":"y"},r),[u,p]=g.useState(!1),[f,b]=g.useState(!1),w=g.useCallback(k=>{k&&(p(k.canScrollPrev()),b(k.canScrollNext()))},[]),h=g.useCallback(()=>{d?.scrollPrev()},[d]),y=g.useCallback(()=>{d?.scrollNext()},[d]),x=g.useCallback(k=>{k.key==="ArrowLeft"?(k.preventDefault(),h()):k.key==="ArrowRight"&&(k.preventDefault(),y())},[h,y]);return g.useEffect(()=>{!d||!n||n(d)},[d,n]),g.useEffect(()=>{if(d)return w(d),d.on("reInit",w),d.on("select",w),()=>{d?.off("select",w)}},[d,w]),a.jsx(uc.Provider,{value:{carouselRef:c,api:d,opts:t,orientation:e||(t?.axis==="y"?"vertical":"horizontal"),scrollPrev:h,scrollNext:y,canScrollPrev:u,canScrollNext:f},children:a.jsx("div",{onKeyDownCapture:x,className:i("relative",s),role:"region","aria-roledescription":"carousel","data-slot":"carousel",...l,children:o})})}function wh({className:e,...t}){const{carouselRef:n,orientation:r}=ka();return a.jsx("div",{ref:n,className:"overflow-hidden","data-slot":"carousel-content",children:a.jsx("div",{className:i("flex",r==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})}function kh({className:e,...t}){const{orientation:n}=ka();return a.jsx("div",{role:"group","aria-roledescription":"slide","data-slot":"carousel-item",className:i("min-w-0 shrink-0 grow-0 basis-full",n==="horizontal"?"pl-4":"pt-4",e),...t})}function jh({className:e,variant:t="outline",size:n="sm",...r}){const{orientation:s,scrollPrev:o,canScrollPrev:l}=ka();return a.jsxs(G,{"data-slot":"carousel-previous",variant:t,size:n,className:i("absolute size-8 rounded-full",s==="horizontal"?"top-1/2 -left-12 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:o,...r,children:[a.jsx(fe.ArrowLeft,{}),a.jsx("span",{className:"sr-only",children:"Previous slide"})]})}function Nh({className:e,variant:t="outline",size:n="sm",...r}){const{orientation:s,scrollNext:o,canScrollNext:l}=ka();return a.jsxs(G,{"data-slot":"carousel-next",variant:t,size:n,className:i("absolute size-8 rounded-full",s==="horizontal"?"top-1/2 -right-12 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:o,...r,children:[a.jsx(fe.ArrowRight,{}),a.jsx("span",{className:"sr-only",children:"Next slide"})]})}function Ch({columns:e,data:t,emptyText:n="No results.",className:r,...s}){return a.jsx("div",{className:i("w-full overflow-auto rounded-lg border border-border-tertiary",r),...s,children:a.jsxs(In,{children:[a.jsx(Rn,{children:a.jsx(vt,{children:e.map(o=>a.jsx(Tn,{className:o.className,children:o.header},o.key))})}),a.jsx(Mn,{children:t.length>0?t.map((o,l)=>a.jsx(vt,{children:e.map(c=>a.jsx(sa,{className:c.className,children:c.cell?c.cell(o,l):c.accessor?String(o[c.accessor]??""):null},c.key))},l)):a.jsx(vt,{children:a.jsx(sa,{colSpan:e.length,className:"h-24 text-center text-text-tertiary",children:n})})})]})})}const Sh={light:"",dark:".dark"},Ih={width:320,height:200},mc=g.createContext(null);function pc(){const e=g.useContext(mc);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}function Rh({id:e,className:t,children:n,config:r,initialDimension:s=Ih,...o}){const l=g.useId(),c=`chart-${e??l.replace(/:/g,"")}`;return a.jsx(mc.Provider,{value:{config:r},children:a.jsxs("div",{"data-slot":"chart","data-chart":c,className:i("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-text-tertiary [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-layer]:outline-none [&_.recharts-radial-bar-background-sector]:fill-fill-tertiary [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-fill-tertiary [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",t),...o,children:[a.jsx(fc,{id:c,config:r}),a.jsx(ln.ResponsiveContainer,{initialDimension:s,children:n})]})})}const fc=({id:e,config:t})=>{const n=Object.entries(t).filter(([,r])=>r.theme??r.color);return n.length?a.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(Sh).map(([r,s])=>`
|
|
30
|
+
${s} [data-chart=${e}] {
|
|
31
|
+
${n.map(([o,l])=>{const c=l.theme?.[r]??l.color;return c?` --color-${o}: ${c};`:null}).join(`
|
|
35
32
|
`)}
|
|
36
33
|
}
|
|
37
34
|
`).join(`
|
|
38
|
-
`)}}):null},kx=Qn.Tooltip;function jx({active:e,payload:t,className:a,indicator:s="dot",hideLabel:r=!1,hideIndicator:o=!1,label:i,labelFormatter:c,labelClassName:d,formatter:u,color:p,nameKey:x,labelKey:g}){const{config:v}=Rl(),f=y.useMemo(()=>{if(r||!t?.length)return null;const[h]=t,w=`${g??h?.dataKey??h?.name??"value"}`,k=Vn(v,h,w),j=!g&&typeof i=="string"?v[i]?.label??i:k?.label;return c?n.jsx("div",{className:l("font-medium",d),children:c(j,t)}):j?n.jsx("div",{className:l("font-medium",d),children:j}):null},[i,c,t,r,d,v,g]);if(!e||!t?.length)return null;const b=t.length===1&&s!=="dot";return n.jsxs("div",{className:l("grid min-w-32 items-start gap-1.5 rounded-lg border border-border/50 bg-bg-base px-2.5 py-1.5 text-xs shadow-xl",a),children:[b?null:f,n.jsx("div",{className:"grid gap-1.5",children:t.filter(h=>h.type!=="none").map((h,w)=>{const k=`${x??h.name??h.dataKey??"value"}`,j=Vn(v,h,k),I=p??h.payload?.fill??h.color;return n.jsx("div",{className:l("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-text-tertiary",s==="dot"&&"items-center"),children:u&&h?.value!==void 0&&h.name?u(h.value,h.name,h,w,h.payload):n.jsxs(n.Fragment,{children:[j?.icon?n.jsx(j.icon,{}):!o&&n.jsx("div",{className:l("shrink-0 rounded-sm border-(--color-border) bg-(--color-bg)",{"h-2.5 w-2.5":s==="dot","w-1":s==="line","w-0 border-[1.5px] border-dashed bg-transparent":s==="dashed","my-0.5":b&&s==="dashed"}),style:{"--color-bg":I,"--color-border":I}}),n.jsxs("div",{className:l("flex flex-1 justify-between leading-none",b?"items-end":"items-center"),children:[n.jsxs("div",{className:"grid gap-1.5",children:[b?f:null,n.jsx("span",{className:"text-text-tertiary",children:j?.label??h.name})]}),h.value!=null&&n.jsx("span",{className:"font-mono font-medium text-text tabular-nums",children:typeof h.value=="number"?h.value.toLocaleString():String(h.value)})]})]})},w)})})]})}const Nx=Qn.Legend;function Cx({className:e,hideIcon:t=!1,payload:a,verticalAlign:s="bottom",nameKey:r}){const{config:o}=Rl();return a?.length?n.jsx("div",{className:l("flex items-center justify-center gap-4",s==="top"?"pb-3":"pt-3",e),children:a.filter(i=>i.type!=="none").map((i,c)=>{const d=`${r??i.dataKey??"value"}`,u=Vn(o,i,d);return n.jsxs("div",{className:l("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-text-tertiary"),children:[u?.icon&&!t?n.jsx(u.icon,{}):n.jsx("div",{className:"h-2 w-2 shrink-0 rounded-sm",style:{backgroundColor:i.color}}),u?.label]},c)})}):null}function Vn(e,t,a){if(typeof t!="object"||t===null)return;const s="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0;let r=a;return a in t&&typeof t[a]=="string"?r=t[a]:s&&a in s&&typeof s[a]=="string"&&(r=s[a]),r in e?e[r]:e[a]}function Sx({className:e,children:t,...a}){return n.jsxs(V.ScrollArea.Root,{"data-slot":"scroll-area",className:l("relative",e),...a,children:[n.jsx(V.ScrollArea.Viewport,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-primary-border/50 focus-visible:outline-1",children:t}),n.jsx(Ml,{}),n.jsx(V.ScrollArea.Corner,{})]})}function Ml({className:e,orientation:t="vertical",...a}){return n.jsx(V.ScrollArea.ScrollAreaScrollbar,{"data-slot":"scroll-area-scrollbar",orientation:t,className:l("flex touch-none p-px transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...a,children:n.jsx(V.ScrollArea.ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}const Pl=y.createContext("ltr");function Ix({dir:e="ltr",children:t,...a}){return n.jsx(Pl.Provider,{value:e,children:n.jsx("div",{dir:e,...a,children:t})})}function Rx(){return y.useContext(Pl)}const Tx=A.cva("inline-flex items-center justify-center gap-2 font-medium transition-colors duration-200 focus:outline-none focus-visible:outline-none focus:ring-0 focus-visible:ring-0 group text-sm leading-sm",{variants:{size:{sm:"h-7 px-2 text-xs leading-xs",md:"h-9 px-3 text-sm leading-sm",lg:"h-11 px-4 text-base leading-base"},rounded:{square:"rounded",pill:"rounded-full"},selected:{true:"bg-info-bg text-info",false:"bg-fill-tertiary text-text hover:bg-fill-secondary"}},defaultVariants:{size:"md",rounded:"square",selected:!1}}),$t="w-4 h-4",Xt=m.forwardRef(({label:e,selected:t=!1,disabled:a=!1,multipleFolders:s=!1,onClear:r,size:o="md",rounded:i="square",className:c,onMouseEnter:d,onMouseLeave:u,folderIcon:p,folderFillIcon:x,arrowRightIcon:g,closeIcon:v,...f},b)=>{const[h,w]=m.useState(!1),k=t&&!a&&!s&&typeof r=="function",j=l(Tx({size:o,rounded:i,selected:t,className:c}),a&&"opacity-50 cursor-not-allowed",!a&&"cursor-pointer"),I=_=>{k&&w(!0),d?.(_)},C=_=>{k&&w(!1),u?.(_)},L=p??n.jsx(vr,{className:$t}),z=x??n.jsx(wr,{className:$t}),S=g??n.jsx(dt,{className:$t}),O=v??n.jsx(Re,{className:$t}),re=n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"w-4 h-4 flex items-center justify-center flex-shrink-0 relative text-current",children:t?z:L}),n.jsx("span",{children:e}),s&&n.jsx("span",{className:"w-4 h-4 flex items-center justify-center flex-shrink-0",children:S}),k?n.jsx(H.motion.span,{role:"button",tabIndex:0,"aria-label":"清空文件夹选择",className:"flex items-center justify-center flex-shrink-0 text-info hover:text-info-hover cursor-pointer overflow-hidden",initial:!1,animate:{width:h?20:0,opacity:h?1:0,marginLeft:h?2:0},transition:{duration:.2,ease:"easeOut"},style:{pointerEvents:h?"auto":"none",minWidth:0},onPointerDown:_=>{_.preventDefault(),_.stopPropagation()},onClick:_=>{_.preventDefault(),_.stopPropagation(),r()},onKeyDown:_=>{(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),_.stopPropagation(),r())},children:n.jsx("span",{className:"w-4 h-4 flex items-center justify-center flex-shrink-0",children:O})}):null]});return n.jsx("button",{ref:b,className:j,disabled:a,onMouseEnter:I,onMouseLeave:C,...f,children:re})});Xt.displayName="FolderButton";const Bt="w-4 h-4",zl=m.forwardRef((e,t)=>{const a=N("folder",Bt),s=N("folderFill",Bt),r=N("arrowRight",Bt),o=N("close",Bt);return n.jsx(Xt,{ref:t,folderIcon:a,folderFillIcon:s,arrowRightIcon:r,closeIcon:o,...e})});zl.displayName="FolderButton";const Ll=m.createContext(null);function $e(){const e=m.useContext(Ll);if(!e)throw new Error("ChatInput compound components must be used within ChatInput.Root");return e}function pn({value:e,onChange:t,onSend:a,placeholder:s="What can I help you with today?",disabled:r=!1,maxRows:o=6,form:i,sendButtonStatus:c="normal",showFooter:d=!0,showFolderButton:u=!0,folderButtonLabel:p="Work in a Folder",onFolderButtonClick:x,onFolderClear:g,folderPermission:v,showMoreButton:f=!0,onMoreButtonClick:b,footerLeftConfig:h,showGenerationStatus:w=!1,generationStatus:k,attachments:j,addLargeIcon:I,folderIcon:C,folderOpenIcon:L,historyIcon:z,arrowDownIcon:S,subMenuArrowIcon:O,folderFillIcon:re,closeIcon:_,dataStyle:U,dataTheme:le,children:J,...G}){const[ae,ce]=m.useState(""),R=m.useRef(null),[$,ee]=m.useState(!1),me=e!==void 0,Q=me?e:ae,Y=m.useCallback(P=>{R.current=P},[]),pe=m.useCallback(P=>{me||ce(P),t?.(P)},[me,t]),je=m.useCallback(()=>{const D=(R.current?.value??Q??"").trim();!D||r||!a||(a(D),me||ce(""),R.current&&(R.current.style.height="auto"))},[Q,r,a,me]),Je=m.useCallback(P=>{P.key==="Enter"&&!P.shiftKey&&!P.nativeEvent.isComposing&&(P.preventDefault(),je()),G.onKeyDown?.(P)},[je,G]),oe=m.useCallback(()=>ee(!0),[]),et=m.useCallback(()=>{ee(!1),g?.()},[g]),ze=Q.trim().length>0&&!r,Le={dataStyle:U,dataTheme:le,value:Q,onChange:pe,onSend:a,disabled:r,placeholder:s,maxRows:o,form:i,textareaRef:R,setTextareaRef:Y,handleSend:je,handleKeyDown:Je,sendButtonStatus:c,canSend:ze,hasFolderSelected:$,setHasFolderSelected:ee,handleFolderSelect:oe,handleFolderClear:et,folderPermission:v,footerLeftConfig:h,showFolderButton:u,showMoreButton:f,folderButtonLabel:p,onFolderButtonClick:x,onFolderClear:g,onMoreButtonClick:b,addLargeIcon:I,folderIcon:C,folderOpenIcon:L,historyIcon:z,arrowDownIcon:S,subMenuArrowIcon:O,folderFillIcon:re,closeIcon:_,showGenerationStatus:w,generationStatus:k,attachments:j,showFooter:d};return n.jsx(Ll.Provider,{value:Le,children:J})}pn.displayName="ChatInputRootProvider";const Mx=A.cva("inline-flex items-center justify-center rounded-full p-1.5 transition-colors duration-200 focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer transition-transform active:scale-95 active:translate-y-px",{variants:{status:{normal:"SendButton-send bg-bg-highlight hover:bg-bg-highlight-hover active:opacity-80",generating:"bg-primary hover:bg-primary-hover active:opacity-80",recording:"SendButton-send bg-bg-highlight hover:bg-bg-highlight-hover active:opacity-80",stopRecording:"bg-error-bg hover:bg-error-bg-hover active:opacity-80"}},defaultVariants:{status:"normal"}}),Px=A.cva("inline-flex h-4 w-4 shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",{variants:{status:{normal:"text-text-on-primary",generating:"text-text-on-primary",recording:"text-text-on-primary",stopRecording:"text-error"}},defaultVariants:{status:"normal"}}),Dn="w-4 h-4",$a=m.forwardRef(({status:e="normal",disabled:t=!1,className:a,sendIcon:s,stopIcon:r,micIcon:o,...i},c)=>{const x=e==="normal"?s??n.jsx(bu,{className:Dn}):e==="generating"||e==="stopRecording"?r??n.jsx(vu,{className:Dn}):o??n.jsx(wu,{className:Dn});return n.jsx("button",{ref:c,type:"button",className:Mx({status:e,className:a}),disabled:t,...i,children:n.jsx("span",{className:Px({status:e}),children:x})})});$a.displayName="SendButton";function zx({content:e}){const t=e.replace(/\.+$/,"");return n.jsxs("span",{className:"text-sm leading-sm font-medium text-primary-active",children:[t,n.jsx("span",{className:"status-dots-anim",style:{fontFamily:"inherit"},children:"..."})]})}const Ba=({children:e,status:t,icon:a,time:s,className:r=""})=>{const o=t??(typeof e=="string"?e:null);if(!(o!=null||e!=null)&&!a&&!s)return null;const c=l("flex w-full h-9 items-center gap-2 rounded-t-xl bg-primary-bg px-3 text-sm leading-sm",r);return n.jsxs("div",{className:c,children:[n.jsx("style",{children:`
|
|
35
|
+
`)}}):null},Mh=ln.Tooltip;function Th({active:e,payload:t,className:n,indicator:r="dot",hideLabel:s=!1,hideIndicator:o=!1,label:l,labelFormatter:c,labelClassName:d,formatter:u,color:p,nameKey:f,labelKey:b}){const{config:w}=pc(),h=g.useMemo(()=>{if(s||!t?.length)return null;const[x]=t,k=`${b??x?.dataKey??x?.name??"value"}`,j=an(w,x,k),v=!b&&typeof l=="string"?w[l]?.label??l:j?.label;return c?a.jsx("div",{className:i("font-medium",d),children:c(v,t)}):v?a.jsx("div",{className:i("font-medium",d),children:v}):null},[l,c,t,s,d,w,b]);if(!e||!t?.length)return null;const y=t.length===1&&r!=="dot";return a.jsxs("div",{className:i("grid min-w-32 items-start gap-1.5 rounded-lg border border-border/50 bg-bg-base px-2.5 py-1.5 text-xs shadow-xl",n),children:[y?null:h,a.jsx("div",{className:"grid gap-1.5",children:t.filter(x=>x.type!=="none").map((x,k)=>{const j=`${f??x.name??x.dataKey??"value"}`,v=an(w,x,j),N=p??x.payload?.fill??x.color;return a.jsx("div",{className:i("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-text-tertiary",r==="dot"&&"items-center"),children:u&&x?.value!==void 0&&x.name?u(x.value,x.name,x,k,x.payload):a.jsxs(a.Fragment,{children:[v?.icon?a.jsx(v.icon,{}):!o&&a.jsx("div",{className:i("shrink-0 rounded-sm border-(--color-border) bg-(--color-bg)",{"h-2.5 w-2.5":r==="dot","w-1":r==="line","w-0 border-[1.5px] border-dashed bg-transparent":r==="dashed","my-0.5":y&&r==="dashed"}),style:{"--color-bg":N,"--color-border":N}}),a.jsxs("div",{className:i("flex flex-1 justify-between leading-none",y?"items-end":"items-center"),children:[a.jsxs("div",{className:"grid gap-1.5",children:[y?h:null,a.jsx("span",{className:"text-text-tertiary",children:v?.label??x.name})]}),x.value!=null&&a.jsx("span",{className:"font-mono font-medium text-text tabular-nums",children:typeof x.value=="number"?x.value.toLocaleString():String(x.value)})]})]})},k)})})]})}const zh=ln.Legend;function Ph({className:e,hideIcon:t=!1,payload:n,verticalAlign:r="bottom",nameKey:s}){const{config:o}=pc();return n?.length?a.jsx("div",{className:i("flex items-center justify-center gap-4",r==="top"?"pb-3":"pt-3",e),children:n.filter(l=>l.type!=="none").map((l,c)=>{const d=`${s??l.dataKey??"value"}`,u=an(o,l,d);return a.jsxs("div",{className:i("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-text-tertiary"),children:[u?.icon&&!t?a.jsx(u.icon,{}):a.jsx("div",{className:"h-2 w-2 shrink-0 rounded-sm",style:{backgroundColor:l.color}}),u?.label]},c)})}):null}function an(e,t,n){if(typeof t!="object"||t===null)return;const r="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0;let s=n;return n in t&&typeof t[n]=="string"?s=t[n]:r&&n in r&&typeof r[n]=="string"&&(s=r[n]),s in e?e[s]:e[n]}function Lh({className:e,children:t,...n}){return a.jsxs(B.ScrollArea.Root,{"data-slot":"scroll-area",className:i("relative",e),...n,children:[a.jsx(B.ScrollArea.Viewport,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-primary-border/50 focus-visible:outline-1",children:t}),a.jsx(xc,{}),a.jsx(B.ScrollArea.Corner,{})]})}function xc({className:e,orientation:t="vertical",...n}){return a.jsx(B.ScrollArea.ScrollAreaScrollbar,{"data-slot":"scroll-area-scrollbar",orientation:t,className:i("flex touch-none p-px transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...n,children:a.jsx(B.ScrollArea.ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}const hc=g.createContext("ltr");function Dh({dir:e="ltr",children:t,...n}){return a.jsx(hc.Provider,{value:e,children:a.jsx("div",{dir:e,...n,children:t})})}function Ah(){return g.useContext(hc)}const _h=A.cva("inline-flex items-center justify-center gap-2 font-medium transition-colors duration-200 focus:outline-none focus-visible:outline-none focus:ring-0 focus-visible:ring-0 group text-sm leading-sm",{variants:{size:{sm:"h-7 px-2 text-xs leading-xs",md:"h-9 px-3 text-sm leading-sm",lg:"h-11 px-4 text-base leading-base"},rounded:{square:"rounded",pill:"rounded-full"},selected:{true:"bg-info-bg text-info",false:"bg-fill-tertiary text-text hover:bg-fill-secondary"}},defaultVariants:{size:"md",rounded:"square",selected:!1}}),Qt="w-4 h-4",ia=m.forwardRef(({label:e,selected:t=!1,disabled:n=!1,multipleFolders:r=!1,onClear:s,size:o="md",rounded:l="square",className:c,onMouseEnter:d,onMouseLeave:u,folderIcon:p,folderFillIcon:f,arrowRightIcon:b,closeIcon:w,...h},y)=>{const[x,k]=m.useState(!1),j=t&&!n&&!r&&typeof s=="function",v=i(_h({size:o,rounded:l,selected:t,className:c}),n&&"opacity-50 cursor-not-allowed",!n&&"cursor-pointer"),N=F=>{j&&k(!0),d?.(F)},C=F=>{j&&k(!1),u?.(F)},z=p??a.jsx(Fs,{className:Qt}),L=f??a.jsx(Os,{className:Qt}),S=b??a.jsx(Ct,{className:Qt}),_=w??a.jsx(Me,{className:Qt}),se=a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"w-4 h-4 flex items-center justify-center flex-shrink-0 relative text-current",children:t?L:z}),a.jsx("span",{children:e}),r&&a.jsx("span",{className:"w-4 h-4 flex items-center justify-center flex-shrink-0",children:S}),j?a.jsx(q.motion.span,{role:"button",tabIndex:0,"aria-label":"清空文件夹选择",className:"flex items-center justify-center flex-shrink-0 text-info hover:text-info-hover cursor-pointer overflow-hidden",initial:!1,animate:{width:x?20:0,opacity:x?1:0,marginLeft:x?2:0},transition:{duration:.2,ease:"easeOut"},style:{pointerEvents:x?"auto":"none",minWidth:0},onPointerDown:F=>{F.preventDefault(),F.stopPropagation()},onClick:F=>{F.preventDefault(),F.stopPropagation(),s()},onKeyDown:F=>{(F.key==="Enter"||F.key===" ")&&(F.preventDefault(),F.stopPropagation(),s())},children:a.jsx("span",{className:"w-4 h-4 flex items-center justify-center flex-shrink-0",children:_})}):null]});return a.jsx("button",{ref:y,className:v,disabled:n,onMouseEnter:N,onMouseLeave:C,...h,children:se})});ia.displayName="FolderButton";const Yt="w-4 h-4",gc=m.forwardRef((e,t)=>{const n=I("folder",Yt),r=I("folderFill",Yt),s=I("arrowRight",Yt),o=I("close",Yt);return a.jsx(ia,{ref:t,folderIcon:n,folderFillIcon:r,arrowRightIcon:s,closeIcon:o,...e})});gc.displayName="FolderButton";const bc=m.createContext(null);function Ve(){const e=m.useContext(bc);if(!e)throw new Error("ChatInput compound components must be used within ChatInput.Root");return e}function ja({value:e,onChange:t,onSend:n,placeholder:r="What can I help you with today?",disabled:s=!1,maxRows:o=6,form:l,sendButtonStatus:c="normal",showFooter:d=!0,showFolderButton:u=!0,folderButtonLabel:p="Work in a Folder",onFolderButtonClick:f,onFolderClear:b,folderPermission:w,showMoreButton:h=!0,onMoreButtonClick:y,footerLeftConfig:x,showGenerationStatus:k=!1,generationStatus:j,attachments:v,addLargeIcon:N,folderIcon:C,folderOpenIcon:z,historyIcon:L,arrowDownIcon:S,subMenuArrowIcon:_,folderFillIcon:se,closeIcon:F,dataStyle:Q,dataTheme:le,children:Y,...W}){const[ce,re]=m.useState(""),R=m.useRef(null),[ae,E]=m.useState(!1),pe=e!==void 0,U=pe?e:ce,K=m.useCallback(P=>{R.current=P},[]),de=m.useCallback(P=>{pe||re(P),t?.(P)},[pe,t]),Ne=m.useCallback(()=>{const D=(R.current?.value??U??"").trim();!D||s||!n||(n(D),pe||re(""),R.current&&(R.current.style.height="auto"))},[U,s,n,pe]),at=m.useCallback(P=>{P.key==="Enter"&&!P.shiftKey&&!P.nativeEvent.isComposing&&(P.preventDefault(),Ne()),W.onKeyDown?.(P)},[Ne,W]),oe=m.useCallback(()=>E(!0),[]),nt=m.useCallback(()=>{E(!1),b?.()},[b]),Pe=U.trim().length>0&&!s,Le={dataStyle:Q,dataTheme:le,value:U,onChange:de,onSend:n,disabled:s,placeholder:r,maxRows:o,form:l,textareaRef:R,setTextareaRef:K,handleSend:Ne,handleKeyDown:at,sendButtonStatus:c,canSend:Pe,hasFolderSelected:ae,setHasFolderSelected:E,handleFolderSelect:oe,handleFolderClear:nt,folderPermission:w,footerLeftConfig:x,showFolderButton:u,showMoreButton:h,folderButtonLabel:p,onFolderButtonClick:f,onFolderClear:b,onMoreButtonClick:y,addLargeIcon:N,folderIcon:C,folderOpenIcon:z,historyIcon:L,arrowDownIcon:S,subMenuArrowIcon:_,folderFillIcon:se,closeIcon:F,showGenerationStatus:k,generationStatus:j,attachments:v,showFooter:d};return a.jsx(bc.Provider,{value:Le,children:Y})}ja.displayName="ChatInputRootProvider";const Fh=A.cva("inline-flex items-center justify-center rounded-full p-1.5 transition-colors duration-200 focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer transition-transform active:scale-95 active:translate-y-px",{variants:{status:{normal:"SendButton-send bg-bg-highlight hover:bg-bg-highlight-hover active:opacity-80",generating:"bg-primary hover:bg-primary-hover active:opacity-80",recording:"SendButton-send bg-bg-highlight hover:bg-bg-highlight-hover active:opacity-80",stopRecording:"bg-error-bg hover:bg-error-bg-hover active:opacity-80"}},defaultVariants:{status:"normal"}}),Oh=A.cva("inline-flex h-4 w-4 shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",{variants:{status:{normal:"text-text-on-primary",generating:"text-text-on-primary",recording:"text-text-on-primary",stopRecording:"text-error"}},defaultVariants:{status:"normal"}}),Wa="w-4 h-4",Zn=m.forwardRef(({status:e="normal",disabled:t=!1,className:n,sendIcon:r,stopIcon:s,micIcon:o,...l},c)=>{const f=e==="normal"?r??a.jsx(rm,{className:Wa}):e==="generating"||e==="stopRecording"?s??a.jsx(sm,{className:Wa}):o??a.jsx(om,{className:Wa});return a.jsx("button",{ref:c,type:"button",className:Fh({status:e,className:n}),disabled:t,...l,children:a.jsx("span",{className:Oh({status:e}),children:f})})});Zn.displayName="SendButton";function Eh({content:e}){const t=e.replace(/\.+$/,"");return a.jsxs("span",{className:"text-sm leading-sm font-medium text-primary-active",children:[t,a.jsx("span",{className:"status-dots-anim",style:{fontFamily:"inherit"},children:"..."})]})}const Xn=({children:e,status:t,icon:n,time:r,className:s=""})=>{const o=t??(typeof e=="string"?e:null);if(!(o!=null||e!=null)&&!n&&!r)return null;const c=i("flex w-full h-9 items-center gap-2 rounded-t-xl bg-primary-bg px-3 text-sm leading-sm",s);return a.jsxs("div",{className:c,children:[a.jsx("style",{children:`
|
|
39
36
|
@keyframes status-dots {
|
|
40
37
|
0%, 100% { opacity: 0.4; }
|
|
41
38
|
50% { opacity: 1; }
|
|
@@ -43,7 +40,7 @@ ${a.map(([o,i])=>{const c=i.theme?.[s]??i.color;return c?` --color-${o}: ${c};`
|
|
|
43
40
|
.status-dots-anim {
|
|
44
41
|
animation: status-dots 1.2s ease-in-out infinite;
|
|
45
42
|
}
|
|
46
|
-
`}),a&&n.jsx("span",{className:"flex h-4 w-4 shrink-0 items-center justify-center text-primary-active",children:a}),o!=null&&n.jsx(zx,{content:String(o)}),o==null&&e!=null&&n.jsx("span",{className:"font-medium text-primary-active",children:e}),s&&n.jsx("span",{className:"ml-auto font-medium font-mono text-primary-active",children:s})]})};Ba.displayName="GenerationStatusBar";function Lx(e,t,a){m.useEffect(()=>{const s=e.current;if(!s)return;s.style.height="auto";const o=(parseFloat(getComputedStyle(s).lineHeight)||24)*a;s.scrollHeight<=o?s.style.height=`${s.scrollHeight}px`:s.style.height=`${o}px`},[e,t,a])}const Dl=m.forwardRef(({value:e,onChange:t,placeholder:a="What can I help you with today?",disabled:s=!1,maxRows:r=6,onKeyDown:o,className:i,style:c,...d},u)=>{const p=m.useRef(null);Lx(p,e,r);const x=m.useCallback(b=>{p.current=b,typeof u=="function"?u(b):u&&(u.current=b)},[u]),g=m.useCallback(b=>t?.(b.target.value),[t]),v={outline:"none",border:"none",boxShadow:"none"},f="w-full resize-none border-none bg-transparent text-sm leading-sm font-normal placeholder:text-text-tertiary overflow-y-auto scrollbar-auto outline-none shadow-none focus:outline-none focus:ring-0 focus:shadow-none focus-visible:outline-none focus-visible:ring-0 focus-visible:shadow-none [&:focus-visible]:outline-none [&:focus-visible]:ring-0 [&:focus-visible]:ring-offset-0 [&:focus-visible]:shadow-none "+(e?.trim()?"text-text":"text-text-quaternary");return n.jsx("textarea",{ref:x,value:e,onChange:g,onKeyDown:o,placeholder:a,disabled:s,rows:1,className:[f,i].filter(Boolean).join(" "),...d,style:{...c??{},...v}})});Dl.displayName="ChatInputTextarea";function Al({open:e,onOpenChange:t,projectName:a,onAllowOnce:s,onAllowAlways:r}){return n.jsx(so,{open:e,onOpenChange:t,children:n.jsxs(ia,{className:"p-6",children:[n.jsxs(la,{children:[n.jsxs(da,{className:"text-xl leading-xl font-semibold text-text",children:['Allow Spark Design to access and modify files in "',a,'"?']}),n.jsx(ua,{className:"mt-2 text-sm leading-sm text-text-tertiary",children:"This permission applies to all files and subfolders in this directory. Spark Design may read, update, and permanently delete files here, and may share relevant file contents with connected tools when needed. Only allow access to folders you trust."})]}),n.jsxs(ca,{className:"mt-6 flex flex-row justify-end gap-2",children:[n.jsx(ma,{className:"h-9 rounded-full px-4",children:"Cancel"}),n.jsx("button",{type:"button",className:"inline-flex h-9 items-center justify-center rounded-full px-4 text-sm leading-sm font-medium border border-border bg-bg-base text-text transition-colors hover:bg-fill-tertiary active:bg-fill-secondary",onClick:r,children:"Always Allow"}),n.jsx("button",{type:"button",className:"inline-flex h-9 items-center justify-center rounded-full px-4 text-sm leading-sm font-medium bg-text text-text-on-primary transition-opacity hover:opacity-90 active:opacity-95",onClick:s,children:"Allow"})]})]})})}Al.displayName="FolderPermissionDialog";const Dx=["~/Projects/spark-design-app","~/Documents/workspace","~/Desktop/demo","~/code/my-app"],An="mr-2 w-4 h-4 shrink-0";function _l({disabled:e,folderButtonLabel:t,folderPermission:a,onFolderButtonClick:s,onFolderClear:r,onFolderSelect:o,hasFolderSelected:i,dataStyle:c,dataTheme:d,folderIcon:u=n.jsx(vr,{className:An}),folderOpenIcon:p=n.jsx(wr,{className:An}),historyIcon:x=n.jsx(jr,{className:An}),subMenuArrowIcon:g,folderFillIcon:v,closeIcon:f}){const b=a?.enable??!1,h=a?.projectName??"04_代码",[w,k]=m.useState(!1),[j,I]=m.useState(!1),[C,L]=m.useState(!1),z=m.useRef(null),S=s??(()=>{}),O=()=>{z.current?.click()},re=()=>{z.current&&(z.current.value=""),r?.()},_=m.useCallback(J=>{J==="always"&&I(!0),k(!1),L(!0)},[]),U=J=>{if(!b){L(J);return}if(!J){L(!1);return}if(j){L(!0);return}k(!0),L(!1)},le=J=>{const G=J.target.files;G&&G.length>0&&o(G)};return s?n.jsx(Xt,{label:t,onClick:S,disabled:e,folderIcon:u,folderFillIcon:v}):n.jsxs(n.Fragment,{children:[n.jsxs(We,{open:C,onOpenChange:U,children:[n.jsx(Ue,{asChild:!0,children:n.jsx(Xt,{label:t,disabled:e,selected:i,onClear:re,folderIcon:u,folderFillIcon:v,closeIcon:f,className:"focus:outline-none focus-visible:outline-none focus:ring-0 focus-visible:ring-0"})}),n.jsxs(Oe,{align:"start",side:"top",className:"min-w-50",dataStyle:c,dataTheme:d,children:[n.jsxs(Se,{onClick:O,children:[u,"Add folder"]}),i&&n.jsxs(Se,{onClick:O,children:[p,"Replace folder"]}),n.jsxs(Ur,{children:[n.jsxs(sa,{subTriggerIcon:g,children:[x,"Recent folders"]}),n.jsx(ra,{collisionPadding:{bottom:24,left:8},dataStyle:c,dataTheme:d,children:Dx.map(J=>n.jsx(Se,{onClick:()=>{},children:J},J))})]})]})]}),n.jsx("input",{ref:z,type:"file",webkitdirectory:"",multiple:!0,style:{display:"none"},onChange:le}),b&&n.jsx(Al,{open:w,onOpenChange:k,projectName:h,onAllowOnce:()=>_("once"),onAllowAlways:()=>_("always")})]})}_l.displayName="ChatInputFolderSelector";function Ol({config:e,disabled:t,dataStyle:a,dataTheme:s,arrowDownIcon:r=n.jsx(ve,{className:"h-3.5 w-3.5 shrink-0 text-text-secondary"})}){const i=e.modeSwitch.options.find(c=>c.value===e.modeSwitch.value)?.icon??e.modeSwitch.icon;return n.jsxs("div",{className:"flex items-center gap-3 text-sm leading-sm text-text-secondary",children:[n.jsxs(We,{children:[n.jsx(Ue,{asChild:!0,children:n.jsxs("button",{type:"button",className:"inline-flex items-center gap-1.5 rounded-md bg-fill-secondary px-2.5 py-1.5 text-sm leading-sm text-text hover:bg-fill focus:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",disabled:t,children:[i!=null&&n.jsx("span",{className:"flex shrink-0 items-center [&>*]:block [&>*]:leading-none",children:i}),n.jsx("span",{children:e.modeSwitch.label}),r]})}),n.jsx(Oe,{align:"start",side:"top",className:"min-w-30",dataStyle:a,dataTheme:s,children:e.modeSwitch.options.map(c=>n.jsxs(Se,{onClick:()=>e.modeSwitch.onChange(c.value),className:"flex items-center justify-between gap-2",children:[n.jsxs("span",{className:"flex items-center gap-2",children:[c.icon!=null&&n.jsx("span",{className:"flex shrink-0 [&>*]:block [&>*]:leading-none [&>*]:size-4",children:c.icon}),c.label]}),e.modeSwitch.value===c.value&&n.jsx(be,{className:"h-4 w-4 shrink-0 text-primary"})]},c.value))})]}),n.jsxs(We,{children:[n.jsx(Ue,{asChild:!0,children:n.jsxs("button",{type:"button",className:"inline-flex items-center gap-1 text-text-secondary hover:text-text focus:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded px-1 py-0.5 disabled:opacity-50",disabled:t,children:[n.jsx("span",{children:e.modelSwitch.label}),r]})}),n.jsx(Oe,{align:"start",side:"top",className:"min-w-25",dataStyle:a,dataTheme:s,children:e.modelSwitch.options.map(c=>n.jsxs(Se,{onClick:()=>e.modelSwitch.onChange(c.value),className:"flex items-center justify-between gap-2",children:[c.label,e.modelSwitch.value===c.value&&n.jsx(be,{className:"h-4 w-4 shrink-0 text-primary"})]},c.value))})]}),e.consumptionMultiplier.options!=null&&e.consumptionMultiplier.options.length>0&&e.consumptionMultiplier.onChange!=null?n.jsxs(We,{children:[n.jsx(Ue,{asChild:!0,children:n.jsx("button",{type:"button",className:"inline-flex items-center text-text-secondary hover:text-text focus:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded px-1 py-0.5 disabled:opacity-50",disabled:t,children:e.consumptionMultiplier.value})}),n.jsx(Oe,{align:"start",side:"top",className:"min-w-20",dataStyle:a,dataTheme:s,children:e.consumptionMultiplier.options.map(c=>n.jsxs(Se,{onClick:()=>e.consumptionMultiplier.onChange?.(c.value),className:"flex items-center justify-between gap-2",children:[c.label,e.consumptionMultiplier.value===c.value&&n.jsx(be,{className:"h-4 w-4 shrink-0 text-primary"})]},c.value))})]}):n.jsx("span",{className:"text-text-secondary",children:e.consumptionMultiplier.value})]})}Ol.displayName="ChatInputModelSwitcher";const Ax=A.cva(["flex flex-col w-full bg-bg-base border border-primary-border rounded-xl transition-all duration-200","shadow-[0_0.25rem_1.25rem_var(--color-shadow-secondary)]","hover:shadow-[0_0.25rem_1.25rem_var(--color-shadow-secondary)]","focus-within:shadow-[0_0.25rem_1.25rem_var(--color-shadow-quaternary)]","hover:focus-within:shadow-[0_0.25rem_1.25rem_var(--color-shadow-quaternary)]"].join(" "),{variants:{disabled:{true:"opacity-50 cursor-not-allowed",false:""}},defaultVariants:{disabled:!1}}),Wt="flex flex-wrap items-center gap-2 px-3 pt-3 pb-2",_x="flex flex-1 items-center min-h-6 p-3",Ox="flex shrink-0 items-center justify-between w-full self-stretch gap-2 p-3";function Nt({className:e,style:t,children:a}){return n.jsx("div",{className:l("flex min-h-9 h-9 w-[calc(100%-2*var(--radius-xl))] mx-auto items-center overflow-hidden rounded-t-xl text-sm leading-sm",e),style:t,children:a})}Nt.displayName="ChatInputAbove";function Ct({className:e,children:t}){const a=$e();return n.jsx("div",{className:Ax({disabled:a.disabled,className:l("relative",e)}),children:t})}Ct.displayName="ChatInputBox";function xn({className:e,children:t}){return t?n.jsx("div",{className:l(Wt,e),children:t}):null}xn.displayName="ChatInputAttachments";const St=m.forwardRef(({placeholder:e,maxRows:t,...a},s)=>{const r=$e(),o=m.useCallback(i=>{r.setTextareaRef(i),typeof s=="function"?s(i):s&&(s.current=i)},[r,s]);return n.jsx("div",{className:_x,children:n.jsx(Dl,{ref:o,value:r.value,onChange:r.onChange,onKeyDown:r.handleKeyDown,placeholder:e??r.placeholder,disabled:r.disabled,maxRows:t??r.maxRows,...a})})});St.displayName="ChatInputInput";function It({className:e,children:t}){return n.jsx("div",{className:l(Ox,e),children:t})}It.displayName="ChatInputActions";function Rt({className:e,children:t}){return n.jsx("div",{className:l("flex items-center gap-2",e),children:t})}Rt.displayName="ChatInputActionsLeft";function it({className:e,children:t}){return n.jsx("div",{className:l("flex items-center gap-2",e),children:t})}it.displayName="ChatInputActionsRight";function fn({className:e,style:t,...a}){return n.jsx("button",{type:"button",className:l("absolute top-2 right-2 z-10 flex h-8 w-8 items-center justify-center rounded-lg text-text-secondary hover:bg-fill-secondary hover:text-text focus:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",e),style:{...t},...a})}fn.displayName="ChatInputExpandButton";function Tt(){const e=$e();return e.showFolderButton?n.jsx(_l,{disabled:e.disabled,folderButtonLabel:e.folderButtonLabel,folderPermission:e.folderPermission,onFolderButtonClick:e.onFolderButtonClick,onFolderClear:e.handleFolderClear,onFolderSelect:e.handleFolderSelect,hasFolderSelected:e.hasFolderSelected,dataStyle:e.dataStyle,dataTheme:e.dataTheme,folderIcon:e.folderIcon,folderOpenIcon:e.folderOpenIcon,historyIcon:e.historyIcon,subMenuArrowIcon:e.subMenuArrowIcon,folderFillIcon:e.folderFillIcon,closeIcon:e.closeIcon}):null}Tt.displayName="ChatInputFolderButton";function Mt(){const e=$e();return e.showMoreButton?n.jsx(Ie,{variant:"ghost",icon:e.addLargeIcon??n.jsx(ea,{className:"h-5 w-5"}),onClick:e.onMoreButtonClick,disabled:e.disabled}):null}Mt.displayName="ChatInputMoreButton";function Zt(){const e=$e();return n.jsx($a,{disabled:!e.canSend||e.disabled,status:e.sendButtonStatus,...e.form?{type:"submit",form:e.form}:{onClick:e.handleSend}})}Zt.displayName="ChatInputSendButton";function Pt(){const e=$e();return e.footerLeftConfig?n.jsx(Ol,{config:e.footerLeftConfig,disabled:e.disabled,arrowDownIcon:e.arrowDownIcon,dataStyle:e.dataStyle,dataTheme:e.dataTheme}):n.jsxs(n.Fragment,{children:[n.jsx(Tt,{}),n.jsx(Mt,{})]})}Pt.displayName="ChatInputFooterLeft";const El=m.forwardRef(function({className:t,hasAbove:a=!1,hasAttachments:s=!1,hasFooter:r=!0,aboveOverlap:o=!0},i){const c=$e(),d=()=>{if(!s||c.attachments==null||c.attachments===!1)return null;const x=c.attachments;return typeof x=="object"&&!m.isValidElement(x)&&("files"in x||"images"in x)?n.jsxs(n.Fragment,{children:[x.files&&n.jsx("div",{className:Wt,children:x.files}),x.images&&n.jsx("div",{className:Wt,children:x.images})]}):n.jsx("div",{className:Wt,children:x})},u=()=>n.jsx(Pt,{}),p=n.jsxs(Ct,{className:l(!r&&!s&&"min-h-14"),children:[d(),n.jsx(St,{ref:i}),n.jsx(It,{children:r?n.jsxs(n.Fragment,{children:[n.jsx(Rt,{children:u()}),n.jsx("div",{className:"flex-1 h-5"}),n.jsx(it,{children:n.jsx(Zt,{})})]}):n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"flex-1 h-5"}),n.jsx(it,{children:n.jsx(Zt,{})})]})})]});return a&&c.showGenerationStatus&&c.generationStatus?n.jsxs("div",{className:l("flex flex-col w-full",t),children:[n.jsx(Nt,{children:n.jsx(Ba,{status:typeof c.generationStatus?.content=="string"?c.generationStatus.content:void 0,icon:c.generationStatus?.icon,time:c.generationStatus?.time,children:c.generationStatus?.content})}),p]}):n.jsx("div",{className:t,children:p})});El.displayName="ChatInputDefaultLayout";function Ex(e){return e==null||e===!1?!1:typeof e=="object"&&!m.isValidElement(e)?!!e.files||!!e.images:!0}const Fx=m.forwardRef(function(t,a){const s=Ex(t.attachments);return n.jsx(pn,{...t,children:n.jsx(El,{ref:a,className:t.className,hasAbove:t.showGenerationStatus,hasAttachments:s,hasFooter:t.showFooter,aboveOverlap:!0})})}),he=Fx;he.displayName="ChatInput";he.Root=pn;he.Above=Nt;he.Box=Ct;he.Attachments=xn;he.Input=St;he.Actions=It;he.ActionsLeft=Rt;he.ActionsRight=it;he.ExpandButton=fn;he.FolderButton=Tt;he.MoreButton=Mt;he.SendButton=Zt;he.FooterLeft=Pt;const $x=he,_n="w-4 h-4",Ha=m.forwardRef((e,t)=>{const a=N("send",_n),s=N("stop",_n),r=N("mic",_n);return n.jsx($a,{ref:t,sendIcon:a,stopIcon:s,micIcon:r,...e})});Ha.displayName="SendButton";function Va(e){const{style:t,theme:a}=ue(),s=N("more","h-5 w-5 shrink-0"),r=N("folder","mr-2 w-4 h-4 shrink-0"),o=N("folderOpen","mr-2 w-4 h-4 shrink-0"),i=N("history","mr-2 w-4 h-4 shrink-0"),c=N("arrowDownS","h-3.5 w-3.5 shrink-0 text-text-secondary"),d=N("arrowRight","h-4 w-4 shrink-0"),u=N("folderFill","w-4 h-4 shrink-0"),p=N("close","w-4 h-4 shrink-0");return n.jsx(pn,{...e,dataStyle:t,dataTheme:a,addLargeIcon:s,folderIcon:r,folderOpenIcon:o,historyIcon:i,arrowDownIcon:c,subMenuArrowIcon:d,folderFillIcon:u,closeIcon:p})}Va.displayName="ChatInputRoot";const Fl=m.forwardRef(function(t,a){const{style:s,theme:r}=ue(),o=N("more","h-5 w-5 shrink-0"),i=N("folder","mr-2 w-4 h-4 shrink-0"),c=N("folderOpen","mr-2 w-4 h-4 shrink-0"),d=N("history","mr-2 w-4 h-4 shrink-0"),u=N("arrowDownS","h-3.5 w-3.5 shrink-0 text-text-secondary"),p=N("arrowRight","h-4 w-4 shrink-0"),x=N("folderFill","w-4 h-4 shrink-0"),g=N("close","w-4 h-4 shrink-0");return n.jsx($x,{ref:a,dataStyle:s,dataTheme:r,addLargeIcon:o,folderIcon:i,folderOpenIcon:c,historyIcon:d,arrowDownIcon:u,subMenuArrowIcon:p,folderFillIcon:x,closeIcon:g,...t})});Fl.displayName="ChatInput";function Ga(){const e=$e();return n.jsx(Ha,{disabled:!e.canSend||e.disabled,status:e.sendButtonStatus,...e.form?{type:"submit",form:e.form}:{onClick:e.handleSend}})}Ga.displayName="ChatInputSendButton";const Bx=Object.assign(Fl,{Root:Va,Above:Nt,Box:Ct,Attachments:xn,Input:St,Actions:It,ActionsLeft:Rt,ActionsRight:it,ExpandButton:fn,FolderButton:Tt,MoreButton:Mt,SendButton:Ga,FooterLeft:Pt}),Hx="w-3.5 h-3.5 shrink-0 text-text-tertiary";function $l({items:e,onSelect:t,singleLineText:a=!1,className:s,defaultIcon:r}){const o=e.slice(0,3),i=r??n.jsx(kr,{className:Hx});return o.length===0?null:n.jsx("div",{className:l("flex flex-col gap-3 w-full min-w-0",!a&&"max-w-lg",s),role:"list","aria-label":"Related prompt suggestions",children:o.map((c,d)=>{const u=c.icon??i,p=n.jsxs("button",{type:"button",onClick:()=>t?.(c),className:l("flex items-center gap-2 w-full min-w-0 text-left","rounded-md px-0 py-0 min-h-0","text-xs leading-xs font-normal text-text-tertiary","transition-colors",t&&"cursor-pointer hover:text-text",!t&&"cursor-default"),role:"listitem",children:[n.jsx("span",{className:"w-3.5 h-3.5 flex-shrink-0 flex items-center justify-center",children:u}),n.jsx("span",{className:l("min-w-0 flex-1",a?"truncate":"line-clamp-2"),children:c.text})]});return a?n.jsx(rt,{content:c.text,side:"top",children:p},`${c.prompt}-${d}`):n.jsx(m.Fragment,{children:p},`${c.prompt}-${d}`)})})}$l.displayName="RelatedPrompts";const Vx="w-3.5 h-3.5 shrink-0 text-text-tertiary";function Bl(e){const t=N("chat3",Vx);return n.jsx($l,{defaultIcon:t,...e})}Bl.displayName="RelatedPrompts";const Gx="Repo Wiki",qx=["English","中文","日本語","한국어"],Wx="h-3.5 w-3.5",Ux="h-3 w-3",zs="h-4 w-4";function Hl({type:e="wiki",title:t,description:a,highlightText:s=Gx,language:r="English",rechargeText:o,onClose:i,onGenerate:c,onRecharge:d,onLanguageChange:u,closeIcon:p,arrowDownSIcon:x,suggestionIcon:g,dataStyle:v,dataTheme:f}){const b=e==="credits",h=p??n.jsx(Re,{className:Wx}),w=x??n.jsx(ve,{className:Ux}),k=g??(b?n.jsx(kt,{className:zs}):n.jsx(Jn,{className:zs})),j=t??(b?"Credits Exhausted":"Free Wiki Generation Available"),I=b?"Your credits have been exhausted. Please recharge to continue using.":`Generate ${s} for this repository to boost AI agent with structured context.`,C=a??I,L=()=>{if(!C.includes(s))return n.jsx("span",{children:C});const z=C.split(s),S=[];for(let O=0;O<z.length;O++)z[O]&&S.push(n.jsx("span",{children:z[O]},`text-${O}`)),O<z.length-1&&S.push(n.jsx("span",{className:"text-[var(--color-link)]",children:s},`highlight-${O}`));return n.jsx(n.Fragment,{children:S})};return n.jsxs("div",{className:"relative rounded-lg border border-border-tertiary bg-bg-base p-3",children:[i&&n.jsx("button",{type:"button",onClick:i,className:"absolute top-3 right-3 flex h-4 w-4 cursor-pointer items-center justify-center text-text-secondary transition-colors duration-200 hover:text-text","aria-label":"Close",children:h}),n.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[n.jsx("div",{className:l("flex h-4 w-4 shrink-0 items-center justify-center",b?"text-warning":"text-primary"),children:k}),n.jsx("h3",{className:"min-w-0 flex-1 text-base leading-base font-semibold text-text",children:j})]}),n.jsx(n.Fragment,{children:n.jsx(we,{scrollbarVisibility:"auto",maxHeight:96,className:"mb-2 ml-6 text-xs leading-xs text-text-tertiary",children:L()})}),n.jsx("div",{className:"flex items-center justify-end gap-2",children:b?o&&n.jsx(W,{variant:"secondary",onClick:d,children:o??"前往充值"}):n.jsxs(n.Fragment,{children:[n.jsxs(We,{children:[n.jsx(Ue,{asChild:!0,children:n.jsxs(W,{variant:"ghost",className:"flex items-center gap-1",children:[n.jsx("span",{children:r}),w]})}),n.jsx(Oe,{dataStyle:v,dataTheme:f,children:qx.map(z=>n.jsx(Se,{onSelect:()=>u?.(z),children:z},z))})]}),n.jsx(W,{variant:"secondary",onClick:c,children:"Generate"})]})})]})}Hl.displayName="HintBanner";const Qx="h-3.5 w-3.5",Yx="h-3 w-3",Xx="h-4 w-4";function Vl(e){const{style:t,theme:a}=ue(),s=N("close",Qx),r=N("arrowDownS",Yx),o=e.type==="credits",i=N(o?"warning":"sparkling",Xx);return n.jsx(Hl,{closeIcon:s,arrowDownSIcon:r,suggestionIcon:i,dataStyle:t,dataTheme:a,...e})}Vl.displayName="HintBanner";function Zx(){return n.jsxs("span",{className:"relative block w-5 h-5 shrink-0 flex items-center justify-center","aria-hidden":!0,children:[n.jsx("style",{children:`
|
|
43
|
+
`}),n&&a.jsx("span",{className:"flex h-4 w-4 shrink-0 items-center justify-center text-primary-active",children:n}),o!=null&&a.jsx(Eh,{content:String(o)}),o==null&&e!=null&&a.jsx("span",{className:"font-medium text-primary-active",children:e}),r&&a.jsx("span",{className:"ml-auto font-medium font-mono text-primary-active",children:r})]})};Xn.displayName="GenerationStatusBar";function Vh(e,t,n){m.useEffect(()=>{const r=e.current;if(!r)return;r.style.height="auto";const o=(parseFloat(getComputedStyle(r).lineHeight)||24)*n;r.scrollHeight<=o?r.style.height=`${r.scrollHeight}px`:r.style.height=`${o}px`},[e,t,n])}const yc=m.forwardRef(({value:e,onChange:t,placeholder:n="What can I help you with today?",disabled:r=!1,maxRows:s=6,onKeyDown:o,className:l,style:c,...d},u)=>{const p=m.useRef(null);Vh(p,e,s);const f=m.useCallback(y=>{p.current=y,typeof u=="function"?u(y):u&&(u.current=y)},[u]),b=m.useCallback(y=>t?.(y.target.value),[t]),w={outline:"none",border:"none",boxShadow:"none"},h="w-full resize-none border-none bg-transparent text-sm leading-sm font-normal placeholder:text-text-tertiary overflow-y-auto scrollbar-auto outline-none shadow-none focus:outline-none focus:ring-0 focus:shadow-none focus-visible:outline-none focus-visible:ring-0 focus-visible:shadow-none [&:focus-visible]:outline-none [&:focus-visible]:ring-0 [&:focus-visible]:ring-offset-0 [&:focus-visible]:shadow-none "+(e?.trim()?"text-text":"text-text-quaternary");return a.jsx("textarea",{ref:f,value:e,onChange:b,onKeyDown:o,placeholder:n,disabled:r,rows:1,className:[h,l].filter(Boolean).join(" "),...d,style:{...c??{},...w}})});yc.displayName="ChatInputTextarea";function vc({open:e,onOpenChange:t,projectName:n,onAllowOnce:r,onAllowAlways:s}){return a.jsx(No,{open:e,onOpenChange:t,children:a.jsxs(vn,{className:"p-6",children:[a.jsxs(wn,{children:[a.jsxs(jn,{className:"text-xl leading-xl font-semibold text-text",children:['Allow Spark Design to access and modify files in "',n,'"?']}),a.jsx(Nn,{className:"mt-2 text-sm leading-sm text-text-tertiary",children:"This permission applies to all files and subfolders in this directory. Spark Design may read, update, and permanently delete files here, and may share relevant file contents with connected tools when needed. Only allow access to folders you trust."})]}),a.jsxs(kn,{className:"mt-6 flex flex-row justify-end gap-2",children:[a.jsx(Cn,{className:"h-9 rounded-full px-4",children:"Cancel"}),a.jsx("button",{type:"button",className:"inline-flex h-9 items-center justify-center rounded-full px-4 text-sm leading-sm font-medium border border-border bg-bg-base text-text transition-colors hover:bg-fill-tertiary active:bg-fill-secondary",onClick:s,children:"Always Allow"}),a.jsx("button",{type:"button",className:"inline-flex h-9 items-center justify-center rounded-full px-4 text-sm leading-sm font-medium bg-text text-text-on-primary transition-opacity hover:opacity-90 active:opacity-95",onClick:r,children:"Allow"})]})]})})}vc.displayName="FolderPermissionDialog";const $h=["~/Projects/spark-design-app","~/Documents/workspace","~/Desktop/demo","~/code/my-app"],qa="mr-2 w-4 h-4 shrink-0";function wc({disabled:e,folderButtonLabel:t,folderPermission:n,onFolderButtonClick:r,onFolderClear:s,onFolderSelect:o,hasFolderSelected:l,dataStyle:c,dataTheme:d,folderIcon:u=a.jsx(Fs,{className:qa}),folderOpenIcon:p=a.jsx(Os,{className:qa}),historyIcon:f=a.jsx(Vs,{className:qa}),subMenuArrowIcon:b,folderFillIcon:w,closeIcon:h}){const y=n?.enable??!1,x=n?.projectName??"04_代码",[k,j]=m.useState(!1),[v,N]=m.useState(!1),[C,z]=m.useState(!1),L=m.useRef(null),S=r??(()=>{}),_=()=>{L.current?.click()},se=()=>{L.current&&(L.current.value=""),s?.()},F=m.useCallback(Y=>{Y==="always"&&N(!0),j(!1),z(!0)},[]),Q=Y=>{if(!y){z(Y);return}if(!Y){z(!1);return}if(v){z(!0);return}j(!0),z(!1)},le=Y=>{const W=Y.target.files;W&&W.length>0&&o(W)};return r?a.jsx(ia,{label:t,onClick:S,disabled:e,folderIcon:u,folderFillIcon:w}):a.jsxs(a.Fragment,{children:[a.jsxs(qe,{open:C,onOpenChange:Q,children:[a.jsx(Ue,{asChild:!0,children:a.jsx(ia,{label:t,disabled:e,selected:l,onClear:se,folderIcon:u,folderFillIcon:w,closeIcon:h,className:"focus:outline-none focus-visible:outline-none focus:ring-0 focus-visible:ring-0"})}),a.jsxs(_e,{align:"start",side:"top",className:"min-w-50",dataStyle:c,dataTheme:d,children:[a.jsxs(Se,{onClick:_,children:[u,"Add folder"]}),l&&a.jsxs(Se,{onClick:_,children:[p,"Replace folder"]}),a.jsxs(po,{children:[a.jsxs(gn,{subTriggerIcon:b,children:[f,"Recent folders"]}),a.jsx(bn,{collisionPadding:{bottom:24,left:8},dataStyle:c,dataTheme:d,children:$h.map(Y=>a.jsx(Se,{onClick:()=>{},children:Y},Y))})]})]})]}),a.jsx("input",{ref:L,type:"file",webkitdirectory:"",multiple:!0,style:{display:"none"},onChange:le}),y&&a.jsx(vc,{open:k,onOpenChange:j,projectName:x,onAllowOnce:()=>F("once"),onAllowAlways:()=>F("always")})]})}wc.displayName="ChatInputFolderSelector";function kc({config:e,disabled:t,dataStyle:n,dataTheme:r,arrowDownIcon:s=a.jsx(ye,{className:"h-3.5 w-3.5 shrink-0 text-text-secondary"})}){const l=e.modeSwitch.options.find(c=>c.value===e.modeSwitch.value)?.icon??e.modeSwitch.icon;return a.jsxs("div",{className:"flex items-center gap-3 text-sm leading-sm text-text-secondary",children:[a.jsxs(qe,{children:[a.jsx(Ue,{asChild:!0,children:a.jsxs("button",{type:"button",className:"inline-flex items-center gap-1.5 rounded-md bg-fill-secondary px-2.5 py-1.5 text-sm leading-sm text-text hover:bg-fill focus:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",disabled:t,children:[l!=null&&a.jsx("span",{className:"flex shrink-0 items-center [&>*]:block [&>*]:leading-none",children:l}),a.jsx("span",{children:e.modeSwitch.label}),s]})}),a.jsx(_e,{align:"start",side:"top",className:"min-w-30",dataStyle:n,dataTheme:r,children:e.modeSwitch.options.map(c=>a.jsxs(Se,{onClick:()=>e.modeSwitch.onChange(c.value),className:"flex items-center justify-between gap-2",children:[a.jsxs("span",{className:"flex items-center gap-2",children:[c.icon!=null&&a.jsx("span",{className:"flex shrink-0 [&>*]:block [&>*]:leading-none [&>*]:size-4",children:c.icon}),c.label]}),e.modeSwitch.value===c.value&&a.jsx(we,{className:"h-4 w-4 shrink-0 text-primary"})]},c.value))})]}),a.jsxs(qe,{children:[a.jsx(Ue,{asChild:!0,children:a.jsxs("button",{type:"button",className:"inline-flex items-center gap-1 text-text-secondary hover:text-text focus:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded px-1 py-0.5 disabled:opacity-50",disabled:t,children:[a.jsx("span",{children:e.modelSwitch.label}),s]})}),a.jsx(_e,{align:"start",side:"top",className:"min-w-25",dataStyle:n,dataTheme:r,children:e.modelSwitch.options.map(c=>a.jsxs(Se,{onClick:()=>e.modelSwitch.onChange(c.value),className:"flex items-center justify-between gap-2",children:[c.label,e.modelSwitch.value===c.value&&a.jsx(we,{className:"h-4 w-4 shrink-0 text-primary"})]},c.value))})]}),e.consumptionMultiplier.options!=null&&e.consumptionMultiplier.options.length>0&&e.consumptionMultiplier.onChange!=null?a.jsxs(qe,{children:[a.jsx(Ue,{asChild:!0,children:a.jsx("button",{type:"button",className:"inline-flex items-center text-text-secondary hover:text-text focus:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded px-1 py-0.5 disabled:opacity-50",disabled:t,children:e.consumptionMultiplier.value})}),a.jsx(_e,{align:"start",side:"top",className:"min-w-20",dataStyle:n,dataTheme:r,children:e.consumptionMultiplier.options.map(c=>a.jsxs(Se,{onClick:()=>e.consumptionMultiplier.onChange?.(c.value),className:"flex items-center justify-between gap-2",children:[c.label,e.consumptionMultiplier.value===c.value&&a.jsx(we,{className:"h-4 w-4 shrink-0 text-primary"})]},c.value))})]}):a.jsx("span",{className:"text-text-secondary",children:e.consumptionMultiplier.value})]})}kc.displayName="ChatInputModelSwitcher";const Bh=A.cva(["flex flex-col w-full bg-bg-base border border-primary-border rounded-xl transition-all duration-200","shadow-[0_0.25rem_1.25rem_var(--color-shadow-secondary)]","hover:shadow-[0_0.25rem_1.25rem_var(--color-shadow-secondary)]","focus-within:shadow-[0_0.25rem_1.25rem_var(--color-shadow-quaternary)]","hover:focus-within:shadow-[0_0.25rem_1.25rem_var(--color-shadow-quaternary)]"].join(" "),{variants:{disabled:{true:"opacity-50 cursor-not-allowed",false:""}},defaultVariants:{disabled:!1}}),ta="flex flex-wrap items-center gap-2 px-3 pt-3 pb-2",Hh="flex flex-1 items-center min-h-6 p-3",Gh="flex shrink-0 items-center justify-between w-full self-stretch gap-2 p-3";function zt({className:e,style:t,children:n}){return a.jsx("div",{className:i("flex min-h-9 h-9 w-[calc(100%-2*var(--radius-xl))] mx-auto items-center overflow-hidden rounded-t-xl text-sm leading-sm",e),style:t,children:n})}zt.displayName="ChatInputAbove";function Pt({className:e,children:t}){const n=Ve();return a.jsx("div",{className:Bh({disabled:n.disabled,className:i("relative",e)}),children:t})}Pt.displayName="ChatInputBox";function Na({className:e,children:t}){return t?a.jsx("div",{className:i(ta,e),children:t}):null}Na.displayName="ChatInputAttachments";const Lt=m.forwardRef(({placeholder:e,maxRows:t,...n},r)=>{const s=Ve(),o=m.useCallback(l=>{s.setTextareaRef(l),typeof r=="function"?r(l):r&&(r.current=l)},[s,r]);return a.jsx("div",{className:Hh,children:a.jsx(yc,{ref:o,value:s.value,onChange:s.onChange,onKeyDown:s.handleKeyDown,placeholder:e??s.placeholder,disabled:s.disabled,maxRows:t??s.maxRows,...n})})});Lt.displayName="ChatInputInput";function Dt({className:e,children:t}){return a.jsx("div",{className:i(Gh,e),children:t})}Dt.displayName="ChatInputActions";function At({className:e,children:t}){return a.jsx("div",{className:i("flex items-center gap-2",e),children:t})}At.displayName="ChatInputActionsLeft";function ct({className:e,children:t}){return a.jsx("div",{className:i("flex items-center gap-2",e),children:t})}ct.displayName="ChatInputActionsRight";function Ca({className:e,style:t,...n}){return a.jsx("button",{type:"button",className:i("absolute top-2 right-2 z-10 flex h-8 w-8 items-center justify-center rounded-lg text-text-secondary hover:bg-fill-secondary hover:text-text focus:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",e),style:{...t},...n})}Ca.displayName="ChatInputExpandButton";function _t(){const e=Ve();return e.showFolderButton?a.jsx(wc,{disabled:e.disabled,folderButtonLabel:e.folderButtonLabel,folderPermission:e.folderPermission,onFolderButtonClick:e.onFolderButtonClick,onFolderClear:e.handleFolderClear,onFolderSelect:e.handleFolderSelect,hasFolderSelected:e.hasFolderSelected,dataStyle:e.dataStyle,dataTheme:e.dataTheme,folderIcon:e.folderIcon,folderOpenIcon:e.folderOpenIcon,historyIcon:e.historyIcon,subMenuArrowIcon:e.subMenuArrowIcon,folderFillIcon:e.folderFillIcon,closeIcon:e.closeIcon}):null}_t.displayName="ChatInputFolderButton";function Ft(){const e=Ve();return e.showMoreButton?a.jsx(Re,{variant:"ghost",icon:e.addLargeIcon??a.jsx(fn,{className:"h-5 w-5"}),onClick:e.onMoreButtonClick,disabled:e.disabled,"aria-label":"More actions"}):null}Ft.displayName="ChatInputMoreButton";function la(){const e=Ve();return a.jsx(Zn,{disabled:!e.canSend||e.disabled,status:e.sendButtonStatus,...e.form?{type:"submit",form:e.form}:{onClick:e.handleSend}})}la.displayName="ChatInputSendButton";function Ot(){const e=Ve();return e.footerLeftConfig?a.jsx(kc,{config:e.footerLeftConfig,disabled:e.disabled,arrowDownIcon:e.arrowDownIcon,dataStyle:e.dataStyle,dataTheme:e.dataTheme}):a.jsxs(a.Fragment,{children:[a.jsx(_t,{}),a.jsx(Ft,{})]})}Ot.displayName="ChatInputFooterLeft";const jc=m.forwardRef(function({className:t,hasAbove:n=!1,hasAttachments:r=!1,hasFooter:s=!0,aboveOverlap:o=!0},l){const c=Ve(),d=()=>{if(!r||c.attachments==null||c.attachments===!1)return null;const f=c.attachments;return typeof f=="object"&&!m.isValidElement(f)&&("files"in f||"images"in f)?a.jsxs(a.Fragment,{children:[f.files&&a.jsx("div",{className:ta,children:f.files}),f.images&&a.jsx("div",{className:ta,children:f.images})]}):a.jsx("div",{className:ta,children:f})},u=()=>a.jsx(Ot,{}),p=a.jsxs(Pt,{className:i(!s&&!r&&"min-h-14"),children:[d(),a.jsx(Lt,{ref:l}),a.jsx(Dt,{children:s?a.jsxs(a.Fragment,{children:[a.jsx(At,{children:u()}),a.jsx("div",{className:"flex-1 h-5"}),a.jsx(ct,{children:a.jsx(la,{})})]}):a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"flex-1 h-5"}),a.jsx(ct,{children:a.jsx(la,{})})]})})]});return n&&c.showGenerationStatus&&c.generationStatus?a.jsxs("div",{className:i("flex flex-col w-full",t),children:[a.jsx(zt,{children:a.jsx(Xn,{status:typeof c.generationStatus?.content=="string"?c.generationStatus.content:void 0,icon:c.generationStatus?.icon,time:c.generationStatus?.time,children:c.generationStatus?.content})}),p]}):a.jsx("div",{className:t,children:p})});jc.displayName="ChatInputDefaultLayout";function Wh(e){return e==null||e===!1?!1:typeof e=="object"&&!m.isValidElement(e)?!!e.files||!!e.images:!0}const qh=m.forwardRef(function(t,n){const r=Wh(t.attachments);return a.jsx(ja,{...t,children:a.jsx(jc,{ref:n,className:t.className,hasAbove:t.showGenerationStatus,hasAttachments:r,hasFooter:t.showFooter,aboveOverlap:!0})})}),ge=qh;ge.displayName="ChatInput";ge.Root=ja;ge.Above=zt;ge.Box=Pt;ge.Attachments=Na;ge.Input=Lt;ge.Actions=Dt;ge.ActionsLeft=At;ge.ActionsRight=ct;ge.ExpandButton=Ca;ge.FolderButton=_t;ge.MoreButton=Ft;ge.SendButton=la;ge.FooterLeft=Ot;const Uh=ge,Ua="w-4 h-4",Jn=m.forwardRef((e,t)=>{const n=I("send",Ua),r=I("stop",Ua),s=I("mic",Ua);return a.jsx(Zn,{ref:t,sendIcon:n,stopIcon:r,micIcon:s,...e})});Jn.displayName="SendButton";function er(e){const{style:t,theme:n}=me(),r=I("more","h-5 w-5 shrink-0"),s=I("folder","mr-2 w-4 h-4 shrink-0"),o=I("folderOpen","mr-2 w-4 h-4 shrink-0"),l=I("history","mr-2 w-4 h-4 shrink-0"),c=I("arrowDownS","h-3.5 w-3.5 shrink-0 text-text-secondary"),d=I("arrowRight","h-4 w-4 shrink-0"),u=I("folderFill","w-4 h-4 shrink-0"),p=I("close","w-4 h-4 shrink-0");return a.jsx(ja,{...e,dataStyle:t,dataTheme:n,addLargeIcon:r,folderIcon:s,folderOpenIcon:o,historyIcon:l,arrowDownIcon:c,subMenuArrowIcon:d,folderFillIcon:u,closeIcon:p})}er.displayName="ChatInputRoot";const Nc=m.forwardRef(function(t,n){const{style:r,theme:s}=me(),o=I("more","h-5 w-5 shrink-0"),l=I("folder","mr-2 w-4 h-4 shrink-0"),c=I("folderOpen","mr-2 w-4 h-4 shrink-0"),d=I("history","mr-2 w-4 h-4 shrink-0"),u=I("arrowDownS","h-3.5 w-3.5 shrink-0 text-text-secondary"),p=I("arrowRight","h-4 w-4 shrink-0"),f=I("folderFill","w-4 h-4 shrink-0"),b=I("close","w-4 h-4 shrink-0");return a.jsx(Uh,{ref:n,dataStyle:r,dataTheme:s,addLargeIcon:o,folderIcon:l,folderOpenIcon:c,historyIcon:d,arrowDownIcon:u,subMenuArrowIcon:p,folderFillIcon:f,closeIcon:b,...t})});Nc.displayName="ChatInput";function tr(){const e=Ve();return a.jsx(Jn,{disabled:!e.canSend||e.disabled,status:e.sendButtonStatus,...e.form?{type:"submit",form:e.form}:{onClick:e.handleSend}})}tr.displayName="ChatInputSendButton";const Qh=Object.assign(Nc,{Root:er,Above:zt,Box:Pt,Attachments:Na,Input:Lt,Actions:Dt,ActionsLeft:At,ActionsRight:ct,ExpandButton:Ca,FolderButton:_t,MoreButton:Ft,SendButton:tr,FooterLeft:Ot}),Yh="w-3.5 h-3.5 shrink-0 text-text-tertiary";function Cc({items:e,onSelect:t,singleLineText:n=!1,className:r,defaultIcon:s}){const o=e.slice(0,3),l=s??a.jsx(Es,{className:Yh});return o.length===0?null:a.jsx("div",{className:i("flex flex-col gap-3 w-full min-w-0",!n&&"max-w-lg",r),role:"list","aria-label":"Related prompt suggestions",children:o.map((c,d)=>{const u=c.icon??l,p=a.jsxs("button",{type:"button",onClick:()=>t?.(c),className:i("flex items-center gap-2 w-full min-w-0 text-left","rounded-md px-0 py-0 min-h-0","text-xs leading-xs font-normal text-text-tertiary","transition-colors",t&&"cursor-pointer hover:text-text",!t&&"cursor-default"),role:"listitem",children:[a.jsx("span",{className:"w-3.5 h-3.5 flex-shrink-0 flex items-center justify-center",children:u}),a.jsx("span",{className:i("min-w-0 flex-1",n?"truncate":"line-clamp-2"),children:c.text})]});return n?a.jsx(Fe,{content:c.text,side:"top",children:p},`${c.prompt}-${d}`):a.jsx(m.Fragment,{children:p},`${c.prompt}-${d}`)})})}Cc.displayName="RelatedPrompts";const Kh="w-3.5 h-3.5 shrink-0 text-text-tertiary";function Sc(e){const t=I("chat3",Kh);return a.jsx(Cc,{defaultIcon:t,...e})}Sc.displayName="RelatedPrompts";const Zh="Repo Wiki",Xh=["English","中文","日本語","한국어"],Jh="h-3.5 w-3.5",eg="h-3 w-3",Yr="h-4 w-4";function Ic({type:e="wiki",title:t,description:n,highlightText:r=Zh,language:s="English",rechargeText:o,onClose:l,onGenerate:c,onRecharge:d,onLanguageChange:u,closeIcon:p,arrowDownSIcon:f,suggestionIcon:b,dataStyle:w,dataTheme:h}){const y=e==="credits",x=p??a.jsx(Me,{className:Jh}),k=f??a.jsx(ye,{className:eg}),j=b??(y?a.jsx(St,{className:Yr}):a.jsx(pn,{className:Yr})),v=t??(y?"Credits Exhausted":"Free Wiki Generation Available"),N=y?"Your credits have been exhausted. Please recharge to continue using.":`Generate ${r} for this repository to boost AI agent with structured context.`,C=n??N,z=()=>{if(!C.includes(r))return a.jsx("span",{children:C});const L=C.split(r),S=[];for(let _=0;_<L.length;_++)L[_]&&S.push(a.jsx("span",{children:L[_]},`text-${_}`)),_<L.length-1&&S.push(a.jsx("span",{className:"text-[var(--color-link)]",children:r},`highlight-${_}`));return a.jsx(a.Fragment,{children:S})};return a.jsxs("div",{className:"relative rounded-lg border border-border-tertiary bg-bg-base p-3",children:[l&&a.jsx("button",{type:"button",onClick:l,className:"absolute top-3 right-3 flex h-4 w-4 cursor-pointer items-center justify-center text-text-secondary transition-colors duration-200 hover:text-text","aria-label":"Close",children:x}),a.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[a.jsx("div",{className:i("flex h-4 w-4 shrink-0 items-center justify-center",y?"text-warning":"text-primary"),children:j}),a.jsx("h3",{className:"min-w-0 flex-1 text-base leading-base font-semibold text-text",children:v})]}),a.jsx(a.Fragment,{children:a.jsx(ke,{scrollbarVisibility:"auto",maxHeight:96,className:"mb-2 ml-6 text-xs leading-xs text-text-tertiary",children:z()})}),a.jsx("div",{className:"flex items-center justify-end gap-2",children:y?o&&a.jsx(G,{variant:"secondary",onClick:d,children:o??"前往充值"}):a.jsxs(a.Fragment,{children:[a.jsxs(qe,{children:[a.jsx(Ue,{asChild:!0,children:a.jsxs(G,{variant:"ghost",className:"flex items-center gap-1",children:[a.jsx("span",{children:s}),k]})}),a.jsx(_e,{dataStyle:w,dataTheme:h,children:Xh.map(L=>a.jsx(Se,{onSelect:()=>u?.(L),children:L},L))})]}),a.jsx(G,{variant:"secondary",onClick:c,children:"Generate"})]})})]})}Ic.displayName="HintBanner";const tg="h-3.5 w-3.5",ag="h-3 w-3",ng="h-4 w-4";function Rc(e){const{style:t,theme:n}=me(),r=I("close",tg),s=I("arrowDownS",ag),o=e.type==="credits",l=I(o?"warning":"sparkling",ng);return a.jsx(Ic,{closeIcon:r,arrowDownSIcon:s,suggestionIcon:l,dataStyle:t,dataTheme:n,...e})}Rc.displayName="HintBanner";function rg(){return a.jsxs("span",{className:"relative block w-5 h-5 shrink-0 flex items-center justify-center","aria-hidden":!0,children:[a.jsx("style",{children:`
|
|
47
44
|
.thinking-dots span { animation: thinking-dot 1.4s ease-in-out infinite both; }
|
|
48
45
|
.thinking-dots span:nth-child(1) { animation-delay: 0s; }
|
|
49
46
|
.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
|
|
@@ -52,11 +49,11 @@ ${a.map(([o,i])=>{const c=i.theme?.[s]??i.color;return c?` --color-${o}: ${c};`
|
|
|
52
49
|
0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
|
|
53
50
|
40% { transform: scale(1); opacity: 1; }
|
|
54
51
|
}
|
|
55
|
-
`}),
|
|
52
|
+
`}),a.jsxs("span",{className:"thinking-dots inline-flex gap-0.5",children:[a.jsx("span",{className:"w-1 h-1 rounded-full bg-current opacity-70"}),a.jsx("span",{className:"w-1 h-1 rounded-full bg-current opacity-70"}),a.jsx("span",{className:"w-1 h-1 rounded-full bg-current opacity-70"})]})]})}function ar({text:e="Spark is Thinking...",textClassName:t,shimmer:n=!0,shimmerDuration:r=2,shimmerSpread:s=2,className:o,loader:l,...c}){const d=m.useMemo(()=>(e||"").length*s,[e,s]),u=l??a.jsx(rg,{});return a.jsxs("div",{className:i("inline-flex items-center gap-1.5 max-w-full",o),...c,children:[a.jsx("span",{className:"shrink-0 -translate-x-0.5","aria-hidden":!0,children:u}),a.jsx("div",{className:"flex-1 min-w-0 flex items-center",children:n?a.jsx(q.motion.span,{className:i("text-sm leading-sm relative inline-block bg-clip-text text-transparent","bg-[length:250%_100%,auto] bg-no-repeat truncate",t),style:{backgroundImage:`linear-gradient(90deg, transparent calc(50% - ${d}px), var(--color-text), transparent calc(50% + ${d}px)), linear-gradient(var(--color-text-secondary), var(--color-text-secondary))`},initial:{backgroundPosition:"100% center"},animate:{backgroundPosition:"0% center"},transition:{repeat:1/0,duration:r,ease:"linear"},children:e}):a.jsx("span",{className:i("text-sm leading-sm text-text-secondary truncate",t),children:e})})]})}ar.displayName="ThinkingIndicator";const sg={text:"Scanning local photo library",description:"Indexing metadata and building a rename plan",details:[{type:"action",action:"Discover photos",desc:"Found 1,000 images in /Pictures/Unsorted"},{type:"action",action:"Extract metadata",desc:"Read EXIF timestamps, GPS, and camera model"},{type:"action",action:"Detect duplicates",desc:"Hash-based matching + perceptual similarity"}]},og={text:"Classifying photos into albums",description:"Clustering by time, location, and scene",details:[{type:"action",action:"Time buckets",desc:"Group into events using temporal gaps"},{type:"action",action:"Location clusters",desc:"Reverse geocode GPS into city/area labels"},{type:"action",action:"Scene tags",desc:"Detect indoor/outdoor, portraits, food, and documents"}]},ig={text:"Renaming files safely",description:"Dry-run, collision check, then atomic move",details:[{type:"action",action:"Dry run",desc:"Preview 1,000 rename operations"},{type:"action",action:"Collision handling",desc:"Append counter suffix to avoid overwrites"},{type:"action",action:"Write changes",desc:"Move files into album folders"}]},lg=[{step:sg,simpleMd:"I'm **scanning** your library and building the index. Found 1,000 photos in `Pictures/Unsorted`; EXIF and duplicates are being analyzed.\n\n"},{step:og,simpleMd:`**Classifying** into albums by time, location, and scene. Time buckets and GPS labels are done; next I'll tag indoor/outdoor and document vs. portrait.
|
|
56
53
|
|
|
57
|
-
`},{step:
|
|
54
|
+
`},{step:ig,simpleMd:`**Dry-run** is done and collision handling is in place. No overwrites; an audit log (CSV) is ready. Pending your confirmation to run the renames.
|
|
58
55
|
|
|
59
|
-
`}],
|
|
56
|
+
`}],cg=`## Plan
|
|
60
57
|
|
|
61
58
|
I will organize your **1,000 local photos** by building an index, clustering them into albums, and then performing a safe rename + move operation.
|
|
62
59
|
|
|
@@ -92,9 +89,9 @@ Example:
|
|
|
92
89
|
## Next step
|
|
93
90
|
|
|
94
91
|
If you want, I can generate a **preview report** first (top 50 renames + album summary) before applying changes.
|
|
95
|
-
`;function af(e,t){const a=[];for(const s of e)a.push({type:"think"}),a.push({type:"composer",step:s.step}),a.push({type:"md",md:s.simpleMd});return a.push({type:"think"}),a.push({type:"md",md:t}),a}const Wa=m.createContext(null);Wa.displayName="ResponseContext";function Ua(){const e=m.useContext(Wa);if(!e)throw new Error("Response compound components must be used within Response.Root");return e}const sf=n.jsx(qa,{text:"Spark is thinking..."});function hn({simulate:e=!0,phase:t="thinking",rounds:a,finalMarkdown:s,onSimulateComplete:r,onStepChange:o,thinkingIndicator:i,children:c}){const d=a??tf,u=s??nf,p=i??sf,x=m.useMemo(()=>af(d,u),[d,u]),[g,v]=m.useState(0),f=m.useRef(x.length),b=e?g>=x.length-1:t==="done",h=x[g]??null,w=h?.type==="think";m.useEffect(()=>{if(!e||x.length===0)return;const j=x[g]??null;j?.type==="composer"&&j.step?o?.(j.step.text,j.step.toolType):j?.type==="think"&&o?.("Thinking..."),g>=x.length&&r?.()},[e,x,g,o,r]),m.useEffect(()=>{!e||x.length===0||f.current!==x.length&&(f.current=x.length,requestAnimationFrame(()=>v(0)))},[e,x.length]),m.useEffect(()=>{if(!e||x.length===0)return;const j=x[g]??null;if(j?.type==="think"||j?.type==="composer"){const I=window.setTimeout(()=>v(C=>Math.min(C+1,x.length)),580);return()=>window.clearTimeout(I)}},[e,x,g]);const k={phase:t,simulate:e,rounds:d,finalMarkdown:u,blocks:x,visibleIndex:g,setVisibleIndex:v,isSimDone:b,currentBlock:h,showThink:w,onSimulateComplete:r,onStepChange:o,thinkingIndicator:p};return n.jsx(Wa.Provider,{value:k,children:c})}hn.displayName="ResponseRoot";const rf={p:({children:e})=>n.jsx("p",{className:"text-sm leading-sm text-text [&:not(:first-child)]:mt-6 last:mb-0",children:e}),h1:({children:e})=>n.jsx("h1",{className:"scroll-m-20 text-4xl font-medium tracking-tight text-text",children:e}),h2:({children:e})=>n.jsx("h2",{className:"scroll-m-20 border-b border-border-secondary pb-2 text-3xl font-semibold tracking-tight text-text first:mt-0 [&:not(:first-child)]:mt-10",children:e}),h3:({children:e})=>n.jsx("h3",{className:"scroll-m-20 text-2xl font-semibold tracking-tight text-text [&:not(:first-child)]:mt-8",children:e}),h4:({children:e})=>n.jsx("h4",{className:"scroll-m-20 text-xl font-semibold tracking-tight text-text [&:not(:first-child)]:mt-6",children:e}),h5:({children:e})=>n.jsx("h5",{className:"scroll-m-20 text-lg font-semibold tracking-tight text-text-secondary [&:not(:first-child)]:mt-4",children:e}),h6:({children:e})=>n.jsx("h6",{className:"scroll-m-20 text-base font-semibold tracking-tight text-text-tertiary uppercase [&:not(:first-child)]:mt-4",children:e}),blockquote:({children:e})=>n.jsx("blockquote",{className:"mt-6 border-l-2 border-border-secondary pl-6 italic text-text-secondary",children:e}),ul:({className:e,children:t})=>n.jsx("ul",{className:l("my-6 ml-6 text-text [&>li]:mt-2",String(e??"").includes("contains-task-list")?"list-none":"list-disc"),children:t}),ol:({children:e})=>n.jsx("ol",{className:"my-6 ml-6 list-decimal text-text [&>li]:mt-2",children:e}),li:({className:e,children:t})=>n.jsx("li",{className:l("leading-sm",String(e??"").includes("task-list-item")&&"list-none flex items-start gap-2 [&>input]:mt-0.5 [&>input]:shrink-0"),children:t}),pre:({children:e})=>n.jsx(we,{scrollbarVisibility:"auto",className:"my-6 rounded-lg border border-border-tertiary bg-bg-base p-4 font-mono text-sm leading-sm text-text",children:n.jsx("pre",{className:"m-0 font-mono text-sm leading-sm text-text border-0 bg-transparent p-0",children:e})}),code:({className:e,children:t,...a})=>typeof e=="string"&&e.startsWith("language-")?n.jsx("code",{className:l(e,"font-mono text-sm leading-sm"),...a,children:t}):n.jsx("code",{className:"relative rounded bg-fill-tertiary px-1 py-0.5 font-mono text-sm leading-sm font-semibold text-text",...a,children:t}),table:({children:e})=>n.jsx(we,{scrollbarVisibility:"auto",className:"my-6 w-full rounded-md border border-border-secondary",children:n.jsx("table",{className:"w-full border-collapse text-sm leading-sm text-text",children:e})}),thead:({children:e})=>n.jsx("thead",{className:"border-b border-border-secondary bg-fill-tertiary",children:e}),tbody:({children:e})=>n.jsx("tbody",{className:"[&>tr]:border-b [&>tr]:border-border-tertiary",children:e}),tr:({children:e})=>n.jsx("tr",{children:e}),th:({children:e})=>n.jsx("th",{className:"px-4 py-2 text-left font-semibold text-text",children:e}),td:({children:e})=>n.jsx("td",{className:"px-4 py-2 text-text",children:e}),a:({href:e,children:t})=>n.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:t}),hr:()=>n.jsx("hr",{className:"my-6 border-0 border-t border-border-secondary"}),strong:({children:e})=>n.jsx("strong",{className:"font-semibold text-text",children:e}),em:({children:e})=>n.jsx("em",{className:"italic text-text",children:e})};function lt({children:e,className:t}){return n.jsx("div",{className:l("markdown-body text-sm leading-sm text-text",t),children:n.jsx(sd,{remarkPlugins:[rd,od],rehypePlugins:[id],components:rf,children:e})})}lt.displayName="MarkdownBody";const of="w-full h-full text-text-tertiary transition-transform duration-200 ease-in-out",lf="w-full h-full transition-transform duration-200 ease-in-out",Qa=m.createContext(null);Qa.displayName="ReasoningStepContext";function gn(){const e=m.useContext(Qa);if(!e)throw new Error("ReasoningStep compound components must be used within ReasoningStep.Root");return e}function yn({text:e,description:t,status:a="completed",icon:s,showIcon:r=!0,details:o,children:i,detailsChildren:c,duration:d=2,spread:u=2,disableExpandAnimation:p=!1,defaultExpanded:x,expanded:g,onExpandedChange:v,eyeIcon:f,arrowRightIcon:b}){const h=g!==void 0,[w,k]=m.useState(x??!1),j=h?g:w,[I,C]=m.useState(!1),L=p&&x!==void 0?x:j,z=r&&typeof e=="string",S=z?"var(--spacing-1.5)":"var(--spacing-2.5)",re=o!=null&&o.length>0||c!=null,_=m.useCallback(()=>{re&&(h?v?.(!g):k(R=>!R))},[re,h,g,v]),[U,le]=m.useState(new Set),J=m.useCallback(R=>{le($=>{const ee=new Set($);return ee.has(R)?ee.delete(R):ee.add(R),ee})},[]),G=m.useMemo(()=>f??n.jsx(yr,{className:of}),[f]),ae=m.useMemo(()=>b??n.jsx(dt,{className:lf}),[b]),ce={status:a,isExpanded:j,isHovered:I,setIsHovered:C,toggleExpanded:_,effectiveExpanded:L,effectiveShowIcon:z,hasExpandableContent:re,text:e,description:t,details:o,detailsChildren:c,duration:d,spread:u,disableExpandAnimation:p,detailIndent:S,expandedNestedKeys:U,toggleNested:J,icon:s,eyeIcon:G,arrowRightIcon:ae};return n.jsx(Qa.Provider,{value:ce,children:i})}yn.displayName="ReasoningStepRoot";const Kt={width:"var(--font-size-xs)",height:"var(--font-size-xs)"},cf={ts:"text-info",tsx:"text-info",js:"text-info",jsx:"text-info",py:"text-teal",md:"text-text-secondary",mdx:"text-text-secondary"};function df(e,t){const a=(e??t?.split(".").pop()??"").toLowerCase();return cf[a]??"text-text-tertiary"}const uf=m.memo(function({className:t}){return n.jsx("span",{className:l("inline-flex items-center justify-center text-xs leading-xs font-mono",t),style:Kt,"aria-hidden":!0,children:"⎔"})}),mf=m.memo(function({prefix:t,primary:a,secondary:s}){return n.jsxs("div",{className:"flex flex-row items-center gap-1.5 min-w-0 flex-1",children:[t?n.jsx("div",{className:"flex items-center justify-center shrink-0",children:t}):null,n.jsxs("div",{className:"flex flex-row items-center gap-1 min-w-0 overflow-hidden flex-1",children:[n.jsx("span",{className:"text-xs leading-xs font-normal text-text-tertiary truncate",title:a,children:a}),s?n.jsx("span",{className:"text-xs leading-xs font-normal text-text-quaternary truncate",title:s,children:s}):null]})]})});function bn({className:e}){const t=gn(),a=m.useMemo(()=>typeof t.text=="string"?t.text.length*t.spread:10*t.spread,[t.text,t.spread]),s=()=>t.icon?t.icon:t.eyeIcon,r=()=>typeof t.text!="string"?t.text:t.status==="in-progress"?n.jsx(H.motion.span,{className:"text-xs leading-xs font-normal relative inline-block bg-clip-text text-transparent bg-[length:250%_100%,auto] bg-no-repeat truncate",style:{backgroundImage:`linear-gradient(90deg, transparent calc(50% - ${a}px), var(--color-text), transparent calc(50% + ${a}px)), linear-gradient(var(--color-text-tertiary), var(--color-text-tertiary))`},initial:{backgroundPosition:"100% center"},animate:{backgroundPosition:"0% center"},transition:{repeat:1/0,duration:t.duration,ease:"linear"},children:t.text}):n.jsx("span",{className:"text-xs leading-xs font-normal text-text-tertiary truncate",children:t.text}),o=()=>t.description?n.jsx("span",{className:"text-xs leading-xs font-normal text-text-quaternary truncate",children:t.description}):null;return n.jsxs("div",{className:l("flex flex-row items-center gap-1.5",t.hasExpandableContent&&"cursor-pointer",e),onClick:t.toggleExpanded,children:[t.effectiveShowIcon&&n.jsx("div",{className:"flex items-center justify-center shrink-0",style:Kt,children:s()}),n.jsxs("div",{className:"flex flex-row items-center gap-1 flex-1 min-w-0",children:[r(),t.description?o():null,t.hasExpandableContent&&n.jsx("div",{className:l("flex items-center justify-center shrink-0 text-text-tertiary transition-opacity duration-200 ease-in-out",t.effectiveExpanded||t.isHovered?"opacity-100":"opacity-0",t.effectiveExpanded?"rotate-90":"rotate-0"),style:Kt,children:t.arrowRightIcon})]})]})}bn.displayName="ReasoningStepHeader";const Gl=m.memo(function e({detail:t,depth:a,pathKey:s,detailIndent:r,expandedNestedKeys:o,onToggleNested:i,arrowRightIcon:c}){const d=t.details!=null&&t.details.length>0,u=o.has(s),p=!d,x=t.type==="action"?t.action:t.filename,g=t.type==="action"?t.desc:[t.lines,t.path].filter(Boolean).join(" "),v=p&&t.type==="file"?n.jsx(uf,{className:df(t.fileType,t.filename)}):void 0,f=m.useCallback(()=>{d&&i(s)},[d,i,s]),b=n.jsxs("div",{className:l("flex flex-row items-center gap-1.5 self-stretch min-h-5 min-w-0",d&&"cursor-pointer"),onClick:d?f:void 0,children:[n.jsx(mf,{prefix:v,primary:x,secondary:g}),d&&n.jsx("div",{className:l("flex items-center justify-center shrink-0 text-text-tertiary",u?"rotate-90":"rotate-0"),style:Kt,children:c})]}),h=n.jsxs("div",{className:"flex flex-row items-center gap-0 self-stretch",style:{marginLeft:r},children:[n.jsx("div",{className:"shrink-0 w-[var(--font-size-xs)] h-5 border-l border-border-tertiary"}),b]});if(!d)return n.jsx(m.Fragment,{children:h},s);const k=a===1?"rounded-lg border border-border-tertiary bg-bg-base p-2 flex flex-col gap-0":"flex flex-col";return n.jsxs("div",{className:"flex flex-col self-stretch",children:[h,n.jsx("div",{className:l("grid transition-[grid-template-rows,opacity] duration-150 ease-out",u?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"),children:n.jsx("div",{className:"overflow-hidden",children:n.jsx("div",{className:l(k),children:t.details?.map((j,I)=>n.jsx(e,{detail:j,depth:a+1,pathKey:`${s}-${I}`,detailIndent:r,disableExpandAnimation:!1,expandedNestedKeys:o,onToggleNested:i,arrowRightIcon:c},`${s}-${I}`))})})})]},s)});function Ya({detail:e,depth:t=0,pathKey:a="0"}){const s=gn();return n.jsx(Gl,{detail:e,depth:t,pathKey:a,detailIndent:s.detailIndent,disableExpandAnimation:s.disableExpandAnimation,expandedNestedKeys:s.expandedNestedKeys,onToggleNested:s.toggleNested,arrowRightIcon:s.arrowRightIcon})}Ya.displayName="ReasoningStepDetailRow";function vn({className:e,children:t}){const a=gn(),s=a.details!=null&&a.details.length>0;return n.jsx("div",{className:l("grid transition-[grid-template-rows,opacity] duration-200 ease-out",a.effectiveExpanded?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0",e),children:n.jsx("div",{className:"overflow-hidden",children:s?n.jsx("div",{className:"flex flex-col",children:a.details?.map((r,o)=>n.jsx(Gl,{detail:r,depth:0,pathKey:String(o),detailIndent:a.detailIndent,disableExpandAnimation:a.disableExpandAnimation,expandedNestedKeys:a.expandedNestedKeys,onToggleNested:a.toggleNested,arrowRightIcon:a.arrowRightIcon},String(o)))}):t??a.detailsChildren})})}vn.displayName="ReasoningStepDetails";function ql(){const e=gn();return n.jsxs("div",{"data-reasoning-step":!0,className:"flex flex-col gap-1 py-0.5",onMouseEnter:()=>e.setIsHovered(!0),onMouseLeave:()=>e.setIsHovered(!1),children:[n.jsx(bn,{}),e.hasExpandableContent&&n.jsx(vn,{})]})}ql.displayName="ReasoningStepDefaultLayout";function Wl(e){return n.jsx(yn,{...e,children:n.jsx(ql,{})})}Wl.displayName="ReasoningStep";const zt=Wl;zt.Root=yn;zt.Header=bn;zt.Details=vn;zt.DetailRow=Ya;const Jt=zt;function pf(e){const t=[];let a=0;const s=o=>/[\u4e00-\u9fff\u3040-\u30ff]/.test(o),r=o=>/[a-zA-Z0-9']/.test(o);for(;a<e.length;){const o=e[a];if(s(o))t.push(o),a+=1;else if(r(o)){let i=a;for(;i<e.length&&r(e[i]);)i+=1;t.push(e.slice(a,i)),a=i}else{let i=a;for(;i<e.length&&!s(e[i])&&!r(e[i]);)i+=1;t.push(e.slice(a,i)),a=i}}return t}function xf(e){const t=e.split(/\n\n+/);if(t.length<=1)return{completed:"",partial:e};const a=t.pop()??"";return{completed:t.join(`
|
|
92
|
+
`;function dg(e,t){const n=[];for(const r of e)n.push({type:"think"}),n.push({type:"composer",step:r.step}),n.push({type:"md",md:r.simpleMd});return n.push({type:"think"}),n.push({type:"md",md:t}),n}const nr=m.createContext(null);nr.displayName="ResponseContext";function rr(){const e=m.useContext(nr);if(!e)throw new Error("Response compound components must be used within Response.Root");return e}const ug=a.jsx(ar,{text:"Spark is thinking..."});function Sa({simulate:e=!0,phase:t="thinking",rounds:n,finalMarkdown:r,onSimulateComplete:s,onStepChange:o,thinkingIndicator:l,children:c}){const d=n??lg,u=r??cg,p=l??ug,f=m.useMemo(()=>dg(d,u),[d,u]),[b,w]=m.useState(0),h=m.useRef(f.length),y=e?b>=f.length-1:t==="done",x=f[b]??null,k=x?.type==="think";m.useEffect(()=>{if(!e||f.length===0)return;const v=f[b]??null;v?.type==="composer"&&v.step?o?.(v.step.text,v.step.toolType):v?.type==="think"&&o?.("Thinking..."),b>=f.length&&s?.()},[e,f,b,o,s]),m.useEffect(()=>{!e||f.length===0||h.current!==f.length&&(h.current=f.length,requestAnimationFrame(()=>w(0)))},[e,f.length]),m.useEffect(()=>{if(!e||f.length===0)return;const v=f[b]??null;if(v?.type==="think"||v?.type==="composer"){const N=window.setTimeout(()=>w(C=>Math.min(C+1,f.length)),580);return()=>window.clearTimeout(N)}},[e,f,b]);const j={phase:t,simulate:e,rounds:d,finalMarkdown:u,blocks:f,visibleIndex:b,setVisibleIndex:w,isSimDone:y,currentBlock:x,showThink:k,onSimulateComplete:s,onStepChange:o,thinkingIndicator:p};return a.jsx(nr.Provider,{value:j,children:c})}Sa.displayName="ResponseRoot";const mg={p:({children:e})=>a.jsx("p",{className:"text-sm leading-sm text-text [&:not(:first-child)]:mt-6 last:mb-0",children:e}),h1:({children:e})=>a.jsx("h1",{className:"scroll-m-20 text-4xl font-medium tracking-tight text-text",children:e}),h2:({children:e})=>a.jsx("h2",{className:"scroll-m-20 border-b border-border-secondary pb-2 text-3xl font-semibold tracking-tight text-text first:mt-0 [&:not(:first-child)]:mt-10",children:e}),h3:({children:e})=>a.jsx("h3",{className:"scroll-m-20 text-2xl font-semibold tracking-tight text-text [&:not(:first-child)]:mt-8",children:e}),h4:({children:e})=>a.jsx("h4",{className:"scroll-m-20 text-xl font-semibold tracking-tight text-text [&:not(:first-child)]:mt-6",children:e}),h5:({children:e})=>a.jsx("h5",{className:"scroll-m-20 text-lg font-semibold tracking-tight text-text-secondary [&:not(:first-child)]:mt-4",children:e}),h6:({children:e})=>a.jsx("h6",{className:"scroll-m-20 text-base font-semibold tracking-tight text-text-tertiary uppercase [&:not(:first-child)]:mt-4",children:e}),blockquote:({children:e})=>a.jsx("blockquote",{className:"mt-6 border-l-2 border-border-secondary pl-6 italic text-text-secondary",children:e}),ul:({className:e,children:t})=>a.jsx("ul",{className:i("my-6 ml-6 text-text [&>li]:mt-2",String(e??"").includes("contains-task-list")?"list-none":"list-disc"),children:t}),ol:({children:e})=>a.jsx("ol",{className:"my-6 ml-6 list-decimal text-text [&>li]:mt-2",children:e}),li:({className:e,children:t})=>a.jsx("li",{className:i("leading-sm",String(e??"").includes("task-list-item")&&"list-none flex items-start gap-2 [&>input]:mt-0.5 [&>input]:shrink-0"),children:t}),pre:({children:e})=>a.jsx(ke,{scrollbarVisibility:"auto",className:"my-6 rounded-lg border border-border-tertiary bg-bg-base p-4 font-mono text-sm leading-sm text-text",children:a.jsx("pre",{className:"m-0 font-mono text-sm leading-sm text-text border-0 bg-transparent p-0",children:e})}),code:({className:e,children:t,...n})=>typeof e=="string"&&e.startsWith("language-")?a.jsx("code",{className:i(e,"font-mono text-sm leading-sm"),...n,children:t}):a.jsx("code",{className:"relative rounded bg-fill-tertiary px-1 py-0.5 font-mono text-sm leading-sm font-semibold text-text",...n,children:t}),table:({children:e})=>a.jsx(ke,{scrollbarVisibility:"auto",className:"my-6 w-full rounded-md border border-border-secondary",children:a.jsx("table",{className:"w-full border-collapse text-sm leading-sm text-text",children:e})}),thead:({children:e})=>a.jsx("thead",{className:"border-b border-border-secondary bg-fill-tertiary",children:e}),tbody:({children:e})=>a.jsx("tbody",{className:"[&>tr]:border-b [&>tr]:border-border-tertiary",children:e}),tr:({children:e})=>a.jsx("tr",{children:e}),th:({children:e})=>a.jsx("th",{className:"px-4 py-2 text-left font-semibold text-text",children:e}),td:({children:e})=>a.jsx("td",{className:"px-4 py-2 text-text",children:e}),a:({href:e,children:t})=>a.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:t}),hr:()=>a.jsx("hr",{className:"my-6 border-0 border-t border-border-secondary"}),strong:({children:e})=>a.jsx("strong",{className:"font-semibold text-text",children:e}),em:({children:e})=>a.jsx("em",{className:"italic text-text",children:e})};function dt({children:e,className:t}){return a.jsx("div",{className:i("markdown-body text-sm leading-sm text-text",t),children:a.jsx(Hd,{remarkPlugins:[Gd,Wd],rehypePlugins:[qd],components:mg,children:e})})}dt.displayName="MarkdownBody";const pg="w-full h-full text-text-tertiary transition-transform duration-200 ease-in-out",fg="w-full h-full transition-transform duration-200 ease-in-out",sr=m.createContext(null);sr.displayName="ReasoningStepContext";function Ia(){const e=m.useContext(sr);if(!e)throw new Error("ReasoningStep compound components must be used within ReasoningStep.Root");return e}function Ra({text:e,description:t,status:n="completed",icon:r,showIcon:s=!0,details:o,children:l,detailsChildren:c,duration:d=2,spread:u=2,disableExpandAnimation:p=!1,defaultExpanded:f,expanded:b,onExpandedChange:w,eyeIcon:h,arrowRightIcon:y}){const x=b!==void 0,[k,j]=m.useState(f??!1),v=x?b:k,[N,C]=m.useState(!1),z=p&&f!==void 0?f:v,L=s&&typeof e=="string",S=L?"var(--spacing-1.5)":"var(--spacing-2.5)",se=o!=null&&o.length>0||c!=null,F=m.useCallback(()=>{se&&(x?w?.(!b):j(R=>!R))},[se,x,b,w]),[Q,le]=m.useState(new Set),Y=m.useCallback(R=>{le(ae=>{const E=new Set(ae);return E.has(R)?E.delete(R):E.add(R),E})},[]),W=m.useMemo(()=>h??a.jsx(As,{className:pg}),[h]),ce=m.useMemo(()=>y??a.jsx(Ct,{className:fg}),[y]),re={status:n,isExpanded:v,isHovered:N,setIsHovered:C,toggleExpanded:F,effectiveExpanded:z,effectiveShowIcon:L,hasExpandableContent:se,text:e,description:t,details:o,detailsChildren:c,duration:d,spread:u,disableExpandAnimation:p,detailIndent:S,expandedNestedKeys:Q,toggleNested:Y,icon:r,eyeIcon:W,arrowRightIcon:ce};return a.jsx(sr.Provider,{value:re,children:l})}Ra.displayName="ReasoningStepRoot";const ca={width:"var(--font-size-xs)",height:"var(--font-size-xs)"},xg={ts:"text-info",tsx:"text-info",js:"text-info",jsx:"text-info",py:"text-teal",md:"text-text-secondary",mdx:"text-text-secondary"};function hg(e,t){const n=(e??t?.split(".").pop()??"").toLowerCase();return xg[n]??"text-text-tertiary"}const gg=m.memo(function({className:t}){return a.jsx("span",{className:i("inline-flex items-center justify-center text-xs leading-xs font-mono",t),style:ca,"aria-hidden":!0,children:"⎔"})}),bg=m.memo(function({prefix:t,primary:n,secondary:r}){return a.jsxs("div",{className:"flex flex-row items-center gap-1.5 min-w-0 flex-1",children:[t?a.jsx("div",{className:"flex items-center justify-center shrink-0",children:t}):null,a.jsxs("div",{className:"flex flex-row items-center gap-1 min-w-0 overflow-hidden flex-1",children:[a.jsx("span",{className:"text-xs leading-xs font-normal text-text-tertiary truncate",title:n,children:n}),r?a.jsx("span",{className:"text-xs leading-xs font-normal text-text-quaternary truncate",title:r,children:r}):null]})]})});function Ma({className:e}){const t=Ia(),n=m.useMemo(()=>typeof t.text=="string"?t.text.length*t.spread:10*t.spread,[t.text,t.spread]),r=()=>t.icon?t.icon:t.eyeIcon,s=()=>typeof t.text!="string"?t.text:t.status==="in-progress"?a.jsx(q.motion.span,{className:"text-xs leading-xs font-normal relative inline-block bg-clip-text text-transparent bg-[length:250%_100%,auto] bg-no-repeat truncate",style:{backgroundImage:`linear-gradient(90deg, transparent calc(50% - ${n}px), var(--color-text), transparent calc(50% + ${n}px)), linear-gradient(var(--color-text-tertiary), var(--color-text-tertiary))`},initial:{backgroundPosition:"100% center"},animate:{backgroundPosition:"0% center"},transition:{repeat:1/0,duration:t.duration,ease:"linear"},children:t.text}):a.jsx("span",{className:"text-xs leading-xs font-normal text-text-tertiary truncate",children:t.text}),o=()=>t.description?a.jsx("span",{className:"text-xs leading-xs font-normal text-text-quaternary truncate",children:t.description}):null;return a.jsxs("div",{className:i("flex flex-row items-center gap-1.5",t.hasExpandableContent&&"cursor-pointer",e),onClick:t.toggleExpanded,children:[t.effectiveShowIcon&&a.jsx("div",{className:"flex items-center justify-center shrink-0",style:ca,children:r()}),a.jsxs("div",{className:"flex flex-row items-center gap-1 flex-1 min-w-0",children:[s(),t.description?o():null,t.hasExpandableContent&&a.jsx("div",{className:i("flex items-center justify-center shrink-0 text-text-tertiary transition-opacity duration-200 ease-in-out",t.effectiveExpanded||t.isHovered?"opacity-100":"opacity-0",t.effectiveExpanded?"rotate-90":"rotate-0"),style:ca,children:t.arrowRightIcon})]})]})}Ma.displayName="ReasoningStepHeader";const Mc=m.memo(function e({detail:t,depth:n,pathKey:r,detailIndent:s,expandedNestedKeys:o,onToggleNested:l,arrowRightIcon:c}){const d=t.details!=null&&t.details.length>0,u=o.has(r),p=!d,f=t.type==="action"?t.action:t.filename,b=t.type==="action"?t.desc:[t.lines,t.path].filter(Boolean).join(" "),w=p&&t.type==="file"?a.jsx(gg,{className:hg(t.fileType,t.filename)}):void 0,h=m.useCallback(()=>{d&&l(r)},[d,l,r]),y=a.jsxs("div",{className:i("flex flex-row items-center gap-1.5 self-stretch min-h-5 min-w-0",d&&"cursor-pointer"),onClick:d?h:void 0,children:[a.jsx(bg,{prefix:w,primary:f,secondary:b}),d&&a.jsx("div",{className:i("flex items-center justify-center shrink-0 text-text-tertiary",u?"rotate-90":"rotate-0"),style:ca,children:c})]}),x=a.jsxs("div",{className:"flex flex-row items-center gap-0 self-stretch",style:{marginLeft:s},children:[a.jsx("div",{className:"shrink-0 w-[var(--font-size-xs)] h-5 border-l border-border-tertiary"}),y]});if(!d)return a.jsx(m.Fragment,{children:x},r);const j=n===1?"rounded-lg border border-border-tertiary bg-bg-base p-2 flex flex-col gap-0":"flex flex-col";return a.jsxs("div",{className:"flex flex-col self-stretch",children:[x,a.jsx("div",{className:i("grid transition-[grid-template-rows,opacity] duration-150 ease-out",u?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"),children:a.jsx("div",{className:"overflow-hidden",children:a.jsx("div",{className:i(j),children:t.details?.map((v,N)=>a.jsx(e,{detail:v,depth:n+1,pathKey:`${r}-${N}`,detailIndent:s,disableExpandAnimation:!1,expandedNestedKeys:o,onToggleNested:l,arrowRightIcon:c},`${r}-${N}`))})})})]},r)});function or({detail:e,depth:t=0,pathKey:n="0"}){const r=Ia();return a.jsx(Mc,{detail:e,depth:t,pathKey:n,detailIndent:r.detailIndent,disableExpandAnimation:r.disableExpandAnimation,expandedNestedKeys:r.expandedNestedKeys,onToggleNested:r.toggleNested,arrowRightIcon:r.arrowRightIcon})}or.displayName="ReasoningStepDetailRow";function Ta({className:e,children:t}){const n=Ia(),r=n.details!=null&&n.details.length>0;return a.jsx("div",{className:i("grid transition-[grid-template-rows,opacity] duration-200 ease-out",n.effectiveExpanded?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0",e),children:a.jsx("div",{className:"overflow-hidden",children:r?a.jsx("div",{className:"flex flex-col",children:n.details?.map((s,o)=>a.jsx(Mc,{detail:s,depth:0,pathKey:String(o),detailIndent:n.detailIndent,disableExpandAnimation:n.disableExpandAnimation,expandedNestedKeys:n.expandedNestedKeys,onToggleNested:n.toggleNested,arrowRightIcon:n.arrowRightIcon},String(o)))}):t??n.detailsChildren})})}Ta.displayName="ReasoningStepDetails";function Tc(){const e=Ia();return a.jsxs("div",{"data-reasoning-step":!0,className:"flex flex-col gap-1 py-0.5",onMouseEnter:()=>e.setIsHovered(!0),onMouseLeave:()=>e.setIsHovered(!1),children:[a.jsx(Ma,{}),e.hasExpandableContent&&a.jsx(Ta,{})]})}Tc.displayName="ReasoningStepDefaultLayout";function zc(e){return a.jsx(Ra,{...e,children:a.jsx(Tc,{})})}zc.displayName="ReasoningStep";const Et=zc;Et.Root=Ra;Et.Header=Ma;Et.Details=Ta;Et.DetailRow=or;const da=Et;function yg(e){const t=[];let n=0;const r=o=>/[\u4e00-\u9fff\u3040-\u30ff]/.test(o),s=o=>/[a-zA-Z0-9']/.test(o);for(;n<e.length;){const o=e[n];if(r(o))t.push(o),n+=1;else if(s(o)){let l=n;for(;l<e.length&&s(e[l]);)l+=1;t.push(e.slice(n,l)),n=l}else{let l=n;for(;l<e.length&&!r(e[l])&&!s(e[l]);)l+=1;t.push(e.slice(n,l)),n=l}}return t}function vg(e){const t=e.split(/\n\n+/);if(t.length<=1)return{completed:"",partial:e};const n=t.pop()??"";return{completed:t.join(`
|
|
96
93
|
|
|
97
|
-
`),partial:
|
|
94
|
+
`),partial:n}}const wg=3;function ir({content:e,isActive:t,onStreamComplete:n,tokenDelayMs:r=14,className:s}){const o=m.useMemo(()=>yg(e),[e]),[l,c]=m.useState({content:e,visibleCount:t?0:o.length}),d=m.useRef(n);m.useEffect(()=>{d.current=n},[n]);const u=l.content===e?l.visibleCount:t?0:o.length,p=m.useMemo(()=>o.slice(0,u).join(""),[o,u]),{completed:f,partial:b}=m.useMemo(()=>vg(p),[p]);m.useEffect(()=>{if(!t)return;const h=o.length;if(h===0){d.current?.();return}let y=0;const x=setInterval(()=>{y=Math.min(y+wg,h),c({content:e,visibleCount:y}),y>=h&&(clearInterval(x),d.current?.())},r);return()=>clearInterval(x)},[t,e,o.length,r]);const w=t&&u<o.length;return o.length===0?null:w?a.jsxs("div",{className:s,children:[f?a.jsx("div",{className:"streaming-completed",children:a.jsx(dt,{children:f})}):null,b?a.jsx("span",{className:"streaming-partial text-sm leading-sm text-text streaming-token-fade-in",children:b}):null]}):a.jsx("div",{className:s,children:a.jsx(dt,{children:e})})}function Kr(...e){return e.filter(Boolean).join(" ")}const kg=a.jsx(pn,{className:"h-5 w-5 text-text-on-primary"});function lr({width:e="var(--spacing-80)",height:t="var(--spacing-60)",speed:n=1,caption:r="Spark is drawing...",captionClassName:s,className:o,style:l,showOverlay:c=!1,overlayText:d,sparklingIcon:u=kg,...p}){const f=m.useRef(null);return m.useEffect(()=>{if(typeof CSS<"u"&&CSS.registerProperty)try{CSS.registerProperty({name:"--a",syntax:"<angle>",inherits:!0,initialValue:"0deg"}),CSS.registerProperty({name:"--l",syntax:"<number>",inherits:!0,initialValue:"0"}),CSS.registerProperty({name:"--x",syntax:"<length>",inherits:!1,initialValue:"0"}),CSS.registerProperty({name:"--y",syntax:"<length>",inherits:!1,initialValue:"0"}),CSS.registerProperty({name:"--o",syntax:"<number>",inherits:!1,initialValue:"0"}),CSS.registerProperty({name:"--value",syntax:"<angle>",inherits:!0,initialValue:"0deg"}),CSS.registerProperty({name:"--width-ratio",syntax:"<number>",inherits:!0,initialValue:"0"}),CSS.registerProperty({name:"--scale",syntax:"<number>",inherits:!0,initialValue:"0"})}catch{}},[]),m.useEffect(()=>{const b=f.current;if(!b)return;const w=()=>{const k=b.getBoundingClientRect();if(k.width>0&&k.height>0){const j=Math.max(k.width,k.height);b.style.setProperty("--actual-size",`${j}px`)}},h=typeof e=="string"&&e.includes("%")||typeof t=="string"&&t.includes("%");let y=null;const x=()=>{w(),y=new ResizeObserver(w),y.observe(b)};if(h){const k=requestAnimationFrame(()=>x());return()=>{cancelAnimationFrame(k),y?.disconnect()}}return x(),()=>y?.disconnect()},[e,t]),a.jsxs(a.Fragment,{children:[a.jsx("style",{children:`
|
|
98
95
|
@keyframes ai {
|
|
99
96
|
from { --a: 360deg; --l: 0.35; --o: 1; }
|
|
100
97
|
30% { --l: 1.5; }
|
|
@@ -249,14 +246,14 @@ If you want, I can generate a **preview report** first (top 50 renames + album s
|
|
|
249
246
|
font-weight: 600;
|
|
250
247
|
color: var(--color-text-on-primary);
|
|
251
248
|
}
|
|
252
|
-
`}),n.jsxs("div",{ref:x,className:Ls("image-generating-container",o),style:{"--container-width":e,"--container-height":t,"--image-generating-speed":String(a),...i&&typeof i=="object"?i:{}},...p,children:[n.jsxs("div",{className:"fluid-inner",children:[n.jsx("div",{className:"c c4",style:{"--i":0}}),n.jsx("div",{className:"c c1",style:{"--i":1}}),n.jsx("div",{className:"c c2",style:{"--i":2}}),n.jsx("div",{className:"c c3",style:{"--i":3}}),n.jsx("div",{className:"rings"})]}),n.jsx("div",{className:"glass"}),c?n.jsx("div",{className:"content-overlay remaining-overlay",children:n.jsx("span",{className:"remaining-text",children:d})}):n.jsxs("div",{className:"content-overlay",children:[n.jsx(H.motion.span,{className:"inline-flex items-center justify-center",animate:{scale:[1,1.08,1],opacity:[.9,1,.9]},transition:{duration:1.2,repeat:1/0,ease:[.16,1,.3,1]},children:u}),n.jsx("span",{className:Ls("caption",r),children:s})]})]})]})}Za.displayName="ImageGenerating";function Ka({className:e}){const t=Ua();return(t.simulate?t.showThink:t.phase==="thinking"||t.phase==="streaming")?n.jsx("span",{className:e,children:t.thinkingIndicator}):null}Ka.displayName="ResponseThinking";function Ja({className:e,children:t}){return n.jsx("div",{className:l("flex flex-col gap-1",e),children:t})}Ja.displayName="ResponseSteps";function es({step:e,status:t="completed"}){return n.jsx(Jt,{text:e.text,description:e.description,details:e.details,status:t})}es.displayName="ResponseStep";function ts({markdown:e,streaming:t=!1,onStreamComplete:a,className:s}){const r=Ua(),o=e??r.finalMarkdown;return t?n.jsx("div",{className:l("mt-1",s),children:n.jsx(Xa,{content:o,isActive:t,onStreamComplete:a})}):n.jsx("div",{className:l("mt-1",s),children:n.jsx(lt,{children:o})})}ts.displayName="ResponseContent";function wn({width:e="320px",height:t="240px",className:a}){return n.jsx(Za,{width:e,height:t,className:a})}wn.displayName="ResponseImageGenerating";function kn({className:e}){const t=Ua(),a=m.useMemo(()=>{if(!t.simulate)return[];const r=[],o=Math.min(t.visibleIndex,t.blocks.length-1);let i=-1;for(let c=0;c<=o;c++)t.blocks[c]?.type==="composer"&&(i=c);for(let c=0;c<=o;c++){const d=t.blocks[c];if(d){if(d.type==="think"){c===t.visibleIndex&&r.push(n.jsx("span",{children:t.thinkingIndicator},`think-${c}`));continue}if(d.type==="composer"&&d.step){const u=c===i&&!t.isSimDone;r.push(n.jsx(Jt,{text:d.step.text,description:d.step.description,details:d.step.details,status:u?"in-progress":"completed"},c))}d.type==="md"&&d.md&&r.push(n.jsx("div",{className:"mt-1",children:n.jsx(Xa,{content:d.md,isActive:c===o,onStreamComplete:()=>{t.setVisibleIndex(u=>Math.min(u+1,t.blocks.length)),c+1>=t.blocks.length&&t.onSimulateComplete?.()}})},`md-${c}`))}}return r},[t]),s=m.useMemo(()=>{if(t.simulate)return[];const r=[];for(let o=0;o<t.blocks.length;o++){const i=t.blocks[o];i&&(i.type==="composer"&&i.step&&r.push(n.jsx(Jt,{text:i.step.text,description:i.step.description,details:i.step.details,status:"completed",disableExpandAnimation:!0},o)),i.type==="md"&&i.md&&r.push(n.jsx("div",{className:"mt-1",children:n.jsx(lt,{children:i.md})},`md-${o}`)))}return r},[t]);return t.phase==="imageGenerating"?n.jsx("div",{className:l("flex flex-col gap-3 font-body",e),children:n.jsx(wn,{})}):t.simulate?n.jsx("div",{className:l("flex flex-col gap-3 font-body",e),children:n.jsx("div",{className:"flex flex-col gap-1",children:a})}):n.jsxs("div",{className:l("flex flex-col gap-3 font-body",e),children:[n.jsx("div",{className:"flex flex-col gap-1",children:s}),(t.phase==="thinking"||t.phase==="streaming")&&t.thinkingIndicator]})}kn.displayName="ResponseDefaultLayout";function Ul({simulate:e,phase:t,rounds:a,finalMarkdown:s,onSimulateComplete:r,onStepChange:o,thinkingIndicator:i,className:c,...d}){return n.jsx(hn,{simulate:e,phase:t,rounds:a,finalMarkdown:s,onSimulateComplete:r,onStepChange:o,thinkingIndicator:i,children:n.jsx("div",{...d,children:n.jsx(kn,{className:c})})})}Ul.displayName="Response";const Be=Ul;Be.Root=hn;Be.Thinking=Ka;Be.Steps=Ja;Be.Step=es;Be.Content=ts;Be.ImageGenerating=wn;Be.DefaultLayout=kn;const gf=Be,yf=[{id:"6",layers:[{ind:5,ty:4,parent:4,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:4,ty:3,parent:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:48,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0},{ind:3,ty:3,ks:{p:{a:0,k:[1,1]}},ip:0,op:241,st:0}]},{id:"11",layers:[{ind:10,ty:4,parent:9,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:9,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:4.8,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:52.8,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"16",layers:[{ind:15,ty:4,parent:14,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:14,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:9,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:57,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"21",layers:[{ind:20,ty:4,parent:19,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:19,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:12.6,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:60.6,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"26",layers:[{ind:25,ty:4,parent:24,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:24,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:15,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:63,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"31",layers:[{ind:30,ty:4,parent:29,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:29,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:16.8,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:64.8,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"36",layers:[{ind:35,ty:4,parent:34,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:34,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:17.4,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:65.4,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"41",layers:[{ind:40,ty:4,parent:39,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:39,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:18,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:66,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]}],bf=60,vf=360,wf=0,kf=JSON.parse('[{"ind":8,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[11,61]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":80.16,"s":[100],"h":1},{"t":80.16,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[0],"h":1},{"t":38.16,"s":[0],"i":{"x":1,"y":1},"o":{"x":0.82,"y":0}},{"t":80.16,"s":[45],"h":1},{"t":240,"s":[45],"h":1}]}},"w":22,"h":22,"ip":0,"op":241,"st":0,"refId":"6"},{"ind":13,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":92.22,"s":[100],"h":1},{"t":92.22,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[45],"h":1},{"t":80.16,"s":[45],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":92.22,"s":[90],"h":1},{"t":240,"s":[90],"h":1}]}},"w":20,"h":21,"ip":0,"op":241,"st":0,"refId":"11"},{"ind":18,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":101.22,"s":[100],"h":1},{"t":101.22,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[90],"h":1},{"t":92.22,"s":[90],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":101.22,"s":[135],"h":1},{"t":240,"s":[135],"h":1}]}},"w":20,"h":20,"ip":0,"op":241,"st":0,"refId":"16"},{"ind":23,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":107.22,"s":[100],"h":1},{"t":107.22,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[135],"h":1},{"t":101.22,"s":[135],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":107.22,"s":[180],"h":1},{"t":240,"s":[180],"h":1}]}},"w":21,"h":21,"ip":0,"op":241,"st":0,"refId":"21"},{"ind":28,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":112.02,"s":[100],"h":1},{"t":112.02,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[0],"h":1},{"t":107.22,"s":[0],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":112.02,"s":[45],"h":1},{"t":240,"s":[45],"h":1}]}},"w":20,"h":120,"ip":0,"op":241,"st":0,"refId":"26"},{"ind":33,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":115.62,"s":[100],"h":1},{"t":115.62,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[45],"h":1},{"t":112.02,"s":[45],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":115.62,"s":[90],"h":1},{"t":240,"s":[90],"h":1}]}},"w":20,"h":120,"ip":0,"op":241,"st":0,"refId":"31"},{"ind":38,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":118.02,"s":[100],"h":1},{"t":118.02,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[90],"h":1},{"t":115.62,"s":[90],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":118.02,"s":[135],"h":1},{"t":240,"s":[135],"h":1}]}},"w":20,"h":121,"ip":0,"op":241,"st":0,"refId":"36"},{"ind":43,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":119.76,"s":[100],"h":1},{"t":119.76,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[135],"h":1},{"t":118.02,"s":[135],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":119.76,"s":[180],"h":1},{"t":240,"s":[180],"h":1}]}},"w":21,"h":120,"ip":0,"op":241,"st":0,"refId":"41"},{"ind":2,"ty":3,"parent":1,"ks":{"a":{"a":0,"k":[60,60]},"p":{"a":0,"k":[180,180]},"r":{"a":1,"k":[{"t":0,"s":[0],"i":{"x":0,"y":0.726},"o":{"x":0.077,"y":0.396}},{"t":0.947943,"s":[143.05],"i":{"x":0.584,"y":0.684},"o":{"x":0.258,"y":0.351}},{"t":1.872292,"s":[170.15],"i":{"x":0.585,"y":0.69},"o":{"x":0.258,"y":0.357}},{"t":3.748465,"s":[200.34],"i":{"x":0.586,"y":0.699},"o":{"x":0.259,"y":0.366}},{"t":7.503875,"s":[232.22],"i":{"x":0.586,"y":0.713},"o":{"x":0.259,"y":0.381}},{"t":15.005773,"s":[263.7],"i":{"x":0.587,"y":0.741},"o":{"x":0.259,"y":0.411}},{"t":30,"s":[291.3],"i":{"x":0.628,"y":0.768},"o":{"x":0.286,"y":0.488}},{"t":60,"s":[311.6],"i":{"x":0.699,"y":0.605},"o":{"x":0.346,"y":0.344}},{"t":90,"s":[324.38],"i":{"x":0.715,"y":0.561},"o":{"x":0.37,"y":0.251}},{"t":105,"s":[336.74],"i":{"x":0.741,"y":0.618},"o":{"x":0.413,"y":0.285}},{"t":112.493217,"s":[350.5],"i":{"x":0.741,"y":0.636},"o":{"x":0.414,"y":0.303}},{"t":116.236934,"s":[364.32],"i":{"x":0.741,"y":0.645},"o":{"x":0.414,"y":0.312}},{"t":118.107494,"s":[377.2],"i":{"x":0.744,"y":0.651},"o":{"x":0.418,"y":0.318}},{"t":119.063474,"s":[389.07],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":119.532358,"s":[399.45],"i":{"x":0.878,"y":0.625},"o":{"x":1,"y":0.292}},{"t":120,"s":[450],"h":1},{"t":240,"s":[450],"h":1}]},"s":{"a":1,"k":[{"t":0,"s":[70,70],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.9,0.9]}},{"t":120,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[100,100],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":47,"ty":4,"parent":46,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":46,"ty":3,"parent":45,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":120,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.9,0.9]}},{"t":183,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":216.06,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":45,"ty":3,"parent":44,"ks":{"p":{"a":0,"k":[50,0]}},"ip":0,"op":241,"st":0},{"ind":50,"ty":4,"parent":49,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":49,"ty":3,"parent":48,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":126,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.72,0.72]}},{"t":187.44,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":189,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":219,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":48,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":45}},"ip":0,"op":241,"st":0},{"ind":53,"ty":4,"parent":52,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":52,"ty":3,"parent":51,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":132.12,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.54,0.54]}},{"t":191.52,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":195.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":221.94,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":51,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":90}},"ip":0,"op":241,"st":0},{"ind":56,"ty":4,"parent":55,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":55,"ty":3,"parent":54,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":137.82,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.36,0.36]}},{"t":195.72,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":200.94,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":225,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":54,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":135}},"ip":0,"op":241,"st":0},{"ind":59,"ty":4,"parent":58,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":58,"ty":3,"parent":57,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":143.82,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.18,0.18]}},{"t":199.68,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":207.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":228,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":57,"ty":3,"parent":44,"ks":{"p":{"a":0,"k":[50,0]}},"ip":0,"op":241,"st":0},{"ind":62,"ty":4,"parent":61,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":61,"ty":3,"parent":60,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":149.88,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":204.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":213.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":230.94,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":60,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":45}},"ip":0,"op":241,"st":0},{"ind":65,"ty":4,"parent":64,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":64,"ty":3,"parent":63,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":155.88,"s":[0,0],"i":{"x":[0.06,0.06],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":208.08,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":219.24,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":234.12,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":63,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":90}},"ip":0,"op":241,"st":0},{"ind":68,"ty":4,"parent":67,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":67,"ty":3,"parent":66,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":162,"s":[0,0],"i":{"x":[0.12,0.12],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":212.4,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":225.24,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":237.12,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":66,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":135}},"ip":0,"op":241,"st":0},{"ind":44,"ty":3,"parent":1,"ks":{"a":{"a":0,"k":[60,60]},"p":{"a":0,"k":[180,180]},"r":{"a":1,"k":[{"t":0,"s":[0],"h":1},{"t":120,"s":[0],"i":{"x":0,"y":0.691},"o":{"x":0,"y":0.358}},{"t":120.06,"s":[17.95],"i":{"x":0.113,"y":0.857},"o":{"x":0.017,"y":0.588}},{"t":150.045,"s":[83.52],"i":{"x":0.649,"y":0.696},"o":{"x":0.298,"y":0.432}},{"t":180.03,"s":[90.83],"i":{"x":0.975,"y":0.245},"o":{"x":0.804,"y":0.109}},{"t":240,"s":[184.05],"h":1}]},"s":{"a":1,"k":[{"t":0,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":119.76,"s":[100,100],"i":{"x":[1,1],"y":[0.1,0.1]},"o":{"x":[1,1],"y":[0,0]}},{"t":240,"s":[50,50],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":1,"ty":3,"parent":0,"ks":{},"ip":0,"op":241,"st":0},{"ind":0,"ty":3,"ks":{},"ip":0,"op":241,"st":0}]'),jf={g:"https://jitter.video"},Nf=240,Cf="5.7.4",Sf=360,If={assets:yf,fr:bf,h:vf,ip:wf,layers:kf,meta:jf,op:Nf,v:Cf,w:Sf},Rf=[{id:"6",layers:[{ind:5,ty:4,parent:4,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:4,ty:3,parent:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:48,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0},{ind:3,ty:3,ks:{p:{a:0,k:[1,1]}},ip:0,op:241,st:0}]},{id:"11",layers:[{ind:10,ty:4,parent:9,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:9,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:4.8,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:52.8,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"16",layers:[{ind:15,ty:4,parent:14,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:14,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:9,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:57,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"21",layers:[{ind:20,ty:4,parent:19,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:19,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:12.6,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:60.6,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"26",layers:[{ind:25,ty:4,parent:24,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:24,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:15,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:63,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"31",layers:[{ind:30,ty:4,parent:29,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:29,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:16.8,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:64.8,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"36",layers:[{ind:35,ty:4,parent:34,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:34,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:17.4,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:65.4,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"41",layers:[{ind:40,ty:4,parent:39,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:39,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:18,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:66,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]}],Tf=60,Mf=360,Pf=0,zf=JSON.parse('[{"ind":8,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[11,61]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":80.16,"s":[100],"h":1},{"t":80.16,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[0],"h":1},{"t":38.16,"s":[0],"i":{"x":1,"y":1},"o":{"x":0.82,"y":0}},{"t":80.16,"s":[45],"h":1},{"t":240,"s":[45],"h":1}]}},"w":22,"h":22,"ip":0,"op":241,"st":0,"refId":"6"},{"ind":13,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":92.22,"s":[100],"h":1},{"t":92.22,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[45],"h":1},{"t":80.16,"s":[45],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":92.22,"s":[90],"h":1},{"t":240,"s":[90],"h":1}]}},"w":20,"h":21,"ip":0,"op":241,"st":0,"refId":"11"},{"ind":18,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":101.22,"s":[100],"h":1},{"t":101.22,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[90],"h":1},{"t":92.22,"s":[90],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":101.22,"s":[135],"h":1},{"t":240,"s":[135],"h":1}]}},"w":20,"h":20,"ip":0,"op":241,"st":0,"refId":"16"},{"ind":23,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":107.22,"s":[100],"h":1},{"t":107.22,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[135],"h":1},{"t":101.22,"s":[135],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":107.22,"s":[180],"h":1},{"t":240,"s":[180],"h":1}]}},"w":21,"h":21,"ip":0,"op":241,"st":0,"refId":"21"},{"ind":28,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":112.02,"s":[100],"h":1},{"t":112.02,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[0],"h":1},{"t":107.22,"s":[0],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":112.02,"s":[45],"h":1},{"t":240,"s":[45],"h":1}]}},"w":20,"h":120,"ip":0,"op":241,"st":0,"refId":"26"},{"ind":33,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":115.62,"s":[100],"h":1},{"t":115.62,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[45],"h":1},{"t":112.02,"s":[45],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":115.62,"s":[90],"h":1},{"t":240,"s":[90],"h":1}]}},"w":20,"h":120,"ip":0,"op":241,"st":0,"refId":"31"},{"ind":38,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":118.02,"s":[100],"h":1},{"t":118.02,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[90],"h":1},{"t":115.62,"s":[90],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":118.02,"s":[135],"h":1},{"t":240,"s":[135],"h":1}]}},"w":20,"h":121,"ip":0,"op":241,"st":0,"refId":"36"},{"ind":43,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":119.76,"s":[100],"h":1},{"t":119.76,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[135],"h":1},{"t":118.02,"s":[135],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":119.76,"s":[180],"h":1},{"t":240,"s":[180],"h":1}]}},"w":21,"h":120,"ip":0,"op":241,"st":0,"refId":"41"},{"ind":2,"ty":3,"parent":1,"ks":{"a":{"a":0,"k":[60,60]},"p":{"a":0,"k":[180,180]},"r":{"a":1,"k":[{"t":0,"s":[0],"i":{"x":0,"y":0.726},"o":{"x":0.077,"y":0.396}},{"t":0.947943,"s":[143.05],"i":{"x":0.584,"y":0.684},"o":{"x":0.258,"y":0.351}},{"t":1.872292,"s":[170.15],"i":{"x":0.585,"y":0.69},"o":{"x":0.258,"y":0.357}},{"t":3.748465,"s":[200.34],"i":{"x":0.586,"y":0.699},"o":{"x":0.259,"y":0.366}},{"t":7.503875,"s":[232.22],"i":{"x":0.586,"y":0.713},"o":{"x":0.259,"y":0.381}},{"t":15.005773,"s":[263.7],"i":{"x":0.587,"y":0.741},"o":{"x":0.259,"y":0.411}},{"t":30,"s":[291.3],"i":{"x":0.628,"y":0.768},"o":{"x":0.286,"y":0.488}},{"t":60,"s":[311.6],"i":{"x":0.699,"y":0.605},"o":{"x":0.346,"y":0.344}},{"t":90,"s":[324.38],"i":{"x":0.715,"y":0.561},"o":{"x":0.37,"y":0.251}},{"t":105,"s":[336.74],"i":{"x":0.741,"y":0.618},"o":{"x":0.413,"y":0.285}},{"t":112.493217,"s":[350.5],"i":{"x":0.741,"y":0.636},"o":{"x":0.414,"y":0.303}},{"t":116.236934,"s":[364.32],"i":{"x":0.741,"y":0.645},"o":{"x":0.414,"y":0.312}},{"t":118.107494,"s":[377.2],"i":{"x":0.744,"y":0.651},"o":{"x":0.418,"y":0.318}},{"t":119.063474,"s":[389.07],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":119.532358,"s":[399.45],"i":{"x":0.878,"y":0.625},"o":{"x":1,"y":0.292}},{"t":120,"s":[450],"h":1},{"t":240,"s":[450],"h":1}]},"s":{"a":1,"k":[{"t":0,"s":[70,70],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.9,0.9]}},{"t":120,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[100,100],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":47,"ty":4,"parent":46,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":46,"ty":3,"parent":45,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":120,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.9,0.9]}},{"t":183,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":216.06,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":45,"ty":3,"parent":44,"ks":{"p":{"a":0,"k":[50,0]}},"ip":0,"op":241,"st":0},{"ind":50,"ty":4,"parent":49,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":49,"ty":3,"parent":48,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":126,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.72,0.72]}},{"t":187.44,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":189,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":219,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":48,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":45}},"ip":0,"op":241,"st":0},{"ind":53,"ty":4,"parent":52,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":52,"ty":3,"parent":51,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":132.12,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.54,0.54]}},{"t":191.52,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":195.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":221.94,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":51,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":90}},"ip":0,"op":241,"st":0},{"ind":56,"ty":4,"parent":55,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":55,"ty":3,"parent":54,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":137.82,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.36,0.36]}},{"t":195.72,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":200.94,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":225,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":54,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":135}},"ip":0,"op":241,"st":0},{"ind":59,"ty":4,"parent":58,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":58,"ty":3,"parent":57,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":143.82,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.18,0.18]}},{"t":199.68,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":207.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":228,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":57,"ty":3,"parent":44,"ks":{"p":{"a":0,"k":[50,0]}},"ip":0,"op":241,"st":0},{"ind":62,"ty":4,"parent":61,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":61,"ty":3,"parent":60,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":149.88,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":204.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":213.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":230.94,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":60,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":45}},"ip":0,"op":241,"st":0},{"ind":65,"ty":4,"parent":64,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":64,"ty":3,"parent":63,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":155.88,"s":[0,0],"i":{"x":[0.06,0.06],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":208.08,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":219.24,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":234.12,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":63,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":90}},"ip":0,"op":241,"st":0},{"ind":68,"ty":4,"parent":67,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":67,"ty":3,"parent":66,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":162,"s":[0,0],"i":{"x":[0.12,0.12],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":212.4,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":225.24,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":237.12,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":66,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":135}},"ip":0,"op":241,"st":0},{"ind":44,"ty":3,"parent":1,"ks":{"a":{"a":0,"k":[60,60]},"p":{"a":0,"k":[180,180]},"r":{"a":1,"k":[{"t":0,"s":[0],"h":1},{"t":120,"s":[0],"i":{"x":0,"y":0.691},"o":{"x":0,"y":0.358}},{"t":120.06,"s":[17.95],"i":{"x":0.113,"y":0.857},"o":{"x":0.017,"y":0.588}},{"t":150.045,"s":[83.52],"i":{"x":0.649,"y":0.696},"o":{"x":0.298,"y":0.432}},{"t":180.03,"s":[90.83],"i":{"x":0.975,"y":0.245},"o":{"x":0.804,"y":0.109}},{"t":240,"s":[184.05],"h":1}]},"s":{"a":1,"k":[{"t":0,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":119.76,"s":[100,100],"i":{"x":[1,1],"y":[0.1,0.1]},"o":{"x":[1,1],"y":[0,0]}},{"t":240,"s":[50,50],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":1,"ty":3,"parent":0,"ks":{},"ip":0,"op":241,"st":0},{"ind":0,"ty":3,"ks":{},"ip":0,"op":241,"st":0}]'),Lf={g:"https://jitter.video"},Df=240,Af="5.7.4",_f=360,Of={assets:Rf,fr:Tf,h:Mf,ip:Pf,layers:zf,meta:Lf,op:Df,v:Af,w:_f};function Ef(){return n.jsxs("span",{className:"relative block w-5 h-5 shrink-0 overflow-hidden -translate-x-0.5","aria-hidden":!0,children:[n.jsx("span",{className:"absolute inset-0 w-5 h-5 thinking-light",children:n.jsx("span",{className:"absolute left-1/2 top-1/2",style:{transform:"translate(-50%, -50%) scale(1.8)"},children:n.jsx(ds,{animationData:If,loop:!0,autoplay:!0,style:{width:20,height:20}})})}),n.jsx("span",{className:"absolute inset-0 w-5 h-5 thinking-dark",children:n.jsx("span",{className:"absolute left-1/2 top-1/2",style:{transform:"translate(-50%, -50%) scale(1.8)"},children:n.jsx(ds,{animationData:Of,loop:!0,autoplay:!0,style:{width:20,height:20}})})}),n.jsx("style",{children:`
|
|
249
|
+
`}),a.jsxs("div",{ref:f,className:Kr("image-generating-container",o),style:{"--container-width":e,"--container-height":t,"--image-generating-speed":String(n),...l&&typeof l=="object"?l:{}},...p,children:[a.jsxs("div",{className:"fluid-inner",children:[a.jsx("div",{className:"c c4",style:{"--i":0}}),a.jsx("div",{className:"c c1",style:{"--i":1}}),a.jsx("div",{className:"c c2",style:{"--i":2}}),a.jsx("div",{className:"c c3",style:{"--i":3}}),a.jsx("div",{className:"rings"})]}),a.jsx("div",{className:"glass"}),c?a.jsx("div",{className:"content-overlay remaining-overlay",children:a.jsx("span",{className:"remaining-text",children:d})}):a.jsxs("div",{className:"content-overlay",children:[a.jsx(q.motion.span,{className:"inline-flex items-center justify-center",animate:{scale:[1,1.08,1],opacity:[.9,1,.9]},transition:{duration:1.2,repeat:1/0,ease:[.16,1,.3,1]},children:u}),a.jsx("span",{className:Kr("caption",s),children:r})]})]})]})}lr.displayName="ImageGenerating";function cr({className:e}){const t=rr();return(t.simulate?t.showThink:t.phase==="thinking"||t.phase==="streaming")?a.jsx("span",{className:e,children:t.thinkingIndicator}):null}cr.displayName="ResponseThinking";function dr({className:e,children:t}){return a.jsx("div",{className:i("flex flex-col gap-1",e),children:t})}dr.displayName="ResponseSteps";function ur({step:e,status:t="completed"}){return a.jsx(da,{text:e.text,description:e.description,details:e.details,status:t})}ur.displayName="ResponseStep";function mr({markdown:e,streaming:t=!1,onStreamComplete:n,className:r}){const s=rr(),o=e??s.finalMarkdown;return t?a.jsx("div",{className:i("mt-1",r),children:a.jsx(ir,{content:o,isActive:t,onStreamComplete:n})}):a.jsx("div",{className:i("mt-1",r),children:a.jsx(dt,{children:o})})}mr.displayName="ResponseContent";function za({width:e="320px",height:t="240px",className:n}){return a.jsx(lr,{width:e,height:t,className:n})}za.displayName="ResponseImageGenerating";function Pa({className:e}){const t=rr(),n=m.useMemo(()=>{if(!t.simulate)return[];const s=[],o=Math.min(t.visibleIndex,t.blocks.length-1);let l=-1;for(let c=0;c<=o;c++)t.blocks[c]?.type==="composer"&&(l=c);for(let c=0;c<=o;c++){const d=t.blocks[c];if(d){if(d.type==="think"){c===t.visibleIndex&&s.push(a.jsx("span",{children:t.thinkingIndicator},`think-${c}`));continue}if(d.type==="composer"&&d.step){const u=c===l&&!t.isSimDone;s.push(a.jsx(da,{text:d.step.text,description:d.step.description,details:d.step.details,status:u?"in-progress":"completed"},c))}d.type==="md"&&d.md&&s.push(a.jsx("div",{className:"mt-1",children:a.jsx(ir,{content:d.md,isActive:c===o,onStreamComplete:()=>{t.setVisibleIndex(u=>Math.min(u+1,t.blocks.length)),c+1>=t.blocks.length&&t.onSimulateComplete?.()}})},`md-${c}`))}}return s},[t]),r=m.useMemo(()=>{if(t.simulate)return[];const s=[];for(let o=0;o<t.blocks.length;o++){const l=t.blocks[o];l&&(l.type==="composer"&&l.step&&s.push(a.jsx(da,{text:l.step.text,description:l.step.description,details:l.step.details,status:"completed",disableExpandAnimation:!0},o)),l.type==="md"&&l.md&&s.push(a.jsx("div",{className:"mt-1",children:a.jsx(dt,{children:l.md})},`md-${o}`)))}return s},[t]);return t.phase==="imageGenerating"?a.jsx("div",{className:i("flex flex-col gap-3 font-body",e),children:a.jsx(za,{})}):t.simulate?a.jsx("div",{className:i("flex flex-col gap-3 font-body",e),children:a.jsx("div",{className:"flex flex-col gap-1",children:n})}):a.jsxs("div",{className:i("flex flex-col gap-3 font-body",e),children:[a.jsx("div",{className:"flex flex-col gap-1",children:r}),(t.phase==="thinking"||t.phase==="streaming")&&t.thinkingIndicator]})}Pa.displayName="ResponseDefaultLayout";function Pc({simulate:e,phase:t,rounds:n,finalMarkdown:r,onSimulateComplete:s,onStepChange:o,thinkingIndicator:l,className:c,...d}){return a.jsx(Sa,{simulate:e,phase:t,rounds:n,finalMarkdown:r,onSimulateComplete:s,onStepChange:o,thinkingIndicator:l,children:a.jsx("div",{...d,children:a.jsx(Pa,{className:c})})})}Pc.displayName="Response";const $e=Pc;$e.Root=Sa;$e.Thinking=cr;$e.Steps=dr;$e.Step=ur;$e.Content=mr;$e.ImageGenerating=za;$e.DefaultLayout=Pa;const jg=$e,Ng=[{id:"6",layers:[{ind:5,ty:4,parent:4,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:4,ty:3,parent:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:48,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0},{ind:3,ty:3,ks:{p:{a:0,k:[1,1]}},ip:0,op:241,st:0}]},{id:"11",layers:[{ind:10,ty:4,parent:9,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:9,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:4.8,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:52.8,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"16",layers:[{ind:15,ty:4,parent:14,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:14,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:9,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:57,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"21",layers:[{ind:20,ty:4,parent:19,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:19,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:12.6,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:60.6,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"26",layers:[{ind:25,ty:4,parent:24,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:24,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:15,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:63,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"31",layers:[{ind:30,ty:4,parent:29,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:29,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:16.8,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:64.8,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"36",layers:[{ind:35,ty:4,parent:34,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:34,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:17.4,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:65.4,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"41",layers:[{ind:40,ty:4,parent:39,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:39,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:18,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:66,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]}],Cg=60,Sg=360,Ig=0,Rg=JSON.parse('[{"ind":8,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[11,61]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":80.16,"s":[100],"h":1},{"t":80.16,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[0],"h":1},{"t":38.16,"s":[0],"i":{"x":1,"y":1},"o":{"x":0.82,"y":0}},{"t":80.16,"s":[45],"h":1},{"t":240,"s":[45],"h":1}]}},"w":22,"h":22,"ip":0,"op":241,"st":0,"refId":"6"},{"ind":13,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":92.22,"s":[100],"h":1},{"t":92.22,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[45],"h":1},{"t":80.16,"s":[45],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":92.22,"s":[90],"h":1},{"t":240,"s":[90],"h":1}]}},"w":20,"h":21,"ip":0,"op":241,"st":0,"refId":"11"},{"ind":18,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":101.22,"s":[100],"h":1},{"t":101.22,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[90],"h":1},{"t":92.22,"s":[90],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":101.22,"s":[135],"h":1},{"t":240,"s":[135],"h":1}]}},"w":20,"h":20,"ip":0,"op":241,"st":0,"refId":"16"},{"ind":23,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":107.22,"s":[100],"h":1},{"t":107.22,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[135],"h":1},{"t":101.22,"s":[135],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":107.22,"s":[180],"h":1},{"t":240,"s":[180],"h":1}]}},"w":21,"h":21,"ip":0,"op":241,"st":0,"refId":"21"},{"ind":28,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":112.02,"s":[100],"h":1},{"t":112.02,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[0],"h":1},{"t":107.22,"s":[0],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":112.02,"s":[45],"h":1},{"t":240,"s":[45],"h":1}]}},"w":20,"h":120,"ip":0,"op":241,"st":0,"refId":"26"},{"ind":33,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":115.62,"s":[100],"h":1},{"t":115.62,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[45],"h":1},{"t":112.02,"s":[45],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":115.62,"s":[90],"h":1},{"t":240,"s":[90],"h":1}]}},"w":20,"h":120,"ip":0,"op":241,"st":0,"refId":"31"},{"ind":38,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":118.02,"s":[100],"h":1},{"t":118.02,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[90],"h":1},{"t":115.62,"s":[90],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":118.02,"s":[135],"h":1},{"t":240,"s":[135],"h":1}]}},"w":20,"h":121,"ip":0,"op":241,"st":0,"refId":"36"},{"ind":43,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":119.76,"s":[100],"h":1},{"t":119.76,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[135],"h":1},{"t":118.02,"s":[135],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":119.76,"s":[180],"h":1},{"t":240,"s":[180],"h":1}]}},"w":21,"h":120,"ip":0,"op":241,"st":0,"refId":"41"},{"ind":2,"ty":3,"parent":1,"ks":{"a":{"a":0,"k":[60,60]},"p":{"a":0,"k":[180,180]},"r":{"a":1,"k":[{"t":0,"s":[0],"i":{"x":0,"y":0.726},"o":{"x":0.077,"y":0.396}},{"t":0.947943,"s":[143.05],"i":{"x":0.584,"y":0.684},"o":{"x":0.258,"y":0.351}},{"t":1.872292,"s":[170.15],"i":{"x":0.585,"y":0.69},"o":{"x":0.258,"y":0.357}},{"t":3.748465,"s":[200.34],"i":{"x":0.586,"y":0.699},"o":{"x":0.259,"y":0.366}},{"t":7.503875,"s":[232.22],"i":{"x":0.586,"y":0.713},"o":{"x":0.259,"y":0.381}},{"t":15.005773,"s":[263.7],"i":{"x":0.587,"y":0.741},"o":{"x":0.259,"y":0.411}},{"t":30,"s":[291.3],"i":{"x":0.628,"y":0.768},"o":{"x":0.286,"y":0.488}},{"t":60,"s":[311.6],"i":{"x":0.699,"y":0.605},"o":{"x":0.346,"y":0.344}},{"t":90,"s":[324.38],"i":{"x":0.715,"y":0.561},"o":{"x":0.37,"y":0.251}},{"t":105,"s":[336.74],"i":{"x":0.741,"y":0.618},"o":{"x":0.413,"y":0.285}},{"t":112.493217,"s":[350.5],"i":{"x":0.741,"y":0.636},"o":{"x":0.414,"y":0.303}},{"t":116.236934,"s":[364.32],"i":{"x":0.741,"y":0.645},"o":{"x":0.414,"y":0.312}},{"t":118.107494,"s":[377.2],"i":{"x":0.744,"y":0.651},"o":{"x":0.418,"y":0.318}},{"t":119.063474,"s":[389.07],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":119.532358,"s":[399.45],"i":{"x":0.878,"y":0.625},"o":{"x":1,"y":0.292}},{"t":120,"s":[450],"h":1},{"t":240,"s":[450],"h":1}]},"s":{"a":1,"k":[{"t":0,"s":[70,70],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.9,0.9]}},{"t":120,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[100,100],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":47,"ty":4,"parent":46,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":46,"ty":3,"parent":45,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":120,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.9,0.9]}},{"t":183,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":216.06,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":45,"ty":3,"parent":44,"ks":{"p":{"a":0,"k":[50,0]}},"ip":0,"op":241,"st":0},{"ind":50,"ty":4,"parent":49,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":49,"ty":3,"parent":48,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":126,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.72,0.72]}},{"t":187.44,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":189,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":219,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":48,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":45}},"ip":0,"op":241,"st":0},{"ind":53,"ty":4,"parent":52,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":52,"ty":3,"parent":51,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":132.12,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.54,0.54]}},{"t":191.52,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":195.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":221.94,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":51,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":90}},"ip":0,"op":241,"st":0},{"ind":56,"ty":4,"parent":55,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":55,"ty":3,"parent":54,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":137.82,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.36,0.36]}},{"t":195.72,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":200.94,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":225,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":54,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":135}},"ip":0,"op":241,"st":0},{"ind":59,"ty":4,"parent":58,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":58,"ty":3,"parent":57,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":143.82,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.18,0.18]}},{"t":199.68,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":207.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":228,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":57,"ty":3,"parent":44,"ks":{"p":{"a":0,"k":[50,0]}},"ip":0,"op":241,"st":0},{"ind":62,"ty":4,"parent":61,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":61,"ty":3,"parent":60,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":149.88,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":204.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":213.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":230.94,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":60,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":45}},"ip":0,"op":241,"st":0},{"ind":65,"ty":4,"parent":64,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":64,"ty":3,"parent":63,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":155.88,"s":[0,0],"i":{"x":[0.06,0.06],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":208.08,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":219.24,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":234.12,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":63,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":90}},"ip":0,"op":241,"st":0},{"ind":68,"ty":4,"parent":67,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":67,"ty":3,"parent":66,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":162,"s":[0,0],"i":{"x":[0.12,0.12],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":212.4,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":225.24,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":237.12,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":66,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":135}},"ip":0,"op":241,"st":0},{"ind":44,"ty":3,"parent":1,"ks":{"a":{"a":0,"k":[60,60]},"p":{"a":0,"k":[180,180]},"r":{"a":1,"k":[{"t":0,"s":[0],"h":1},{"t":120,"s":[0],"i":{"x":0,"y":0.691},"o":{"x":0,"y":0.358}},{"t":120.06,"s":[17.95],"i":{"x":0.113,"y":0.857},"o":{"x":0.017,"y":0.588}},{"t":150.045,"s":[83.52],"i":{"x":0.649,"y":0.696},"o":{"x":0.298,"y":0.432}},{"t":180.03,"s":[90.83],"i":{"x":0.975,"y":0.245},"o":{"x":0.804,"y":0.109}},{"t":240,"s":[184.05],"h":1}]},"s":{"a":1,"k":[{"t":0,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":119.76,"s":[100,100],"i":{"x":[1,1],"y":[0.1,0.1]},"o":{"x":[1,1],"y":[0,0]}},{"t":240,"s":[50,50],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":1,"ty":3,"parent":0,"ks":{},"ip":0,"op":241,"st":0},{"ind":0,"ty":3,"ks":{},"ip":0,"op":241,"st":0}]'),Mg={g:"https://jitter.video"},Tg=240,zg="5.7.4",Pg=360,Lg={assets:Ng,fr:Cg,h:Sg,ip:Ig,layers:Rg,meta:Mg,op:Tg,v:zg,w:Pg},Dg=[{id:"6",layers:[{ind:5,ty:4,parent:4,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:4,ty:3,parent:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:48,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0},{ind:3,ty:3,ks:{p:{a:0,k:[1,1]}},ip:0,op:241,st:0}]},{id:"11",layers:[{ind:10,ty:4,parent:9,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:9,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:4.8,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:52.8,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"16",layers:[{ind:15,ty:4,parent:14,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:14,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:9,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:57,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"21",layers:[{ind:20,ty:4,parent:19,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:19,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:12.6,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:60.6,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"26",layers:[{ind:25,ty:4,parent:24,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:24,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:15,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:63,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"31",layers:[{ind:30,ty:4,parent:29,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:29,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:16.8,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:64.8,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"36",layers:[{ind:35,ty:4,parent:34,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:34,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:17.4,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:65.4,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"41",layers:[{ind:40,ty:4,parent:39,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:39,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:18,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:66,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]}],Ag=60,_g=360,Fg=0,Og=JSON.parse('[{"ind":8,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[11,61]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":80.16,"s":[100],"h":1},{"t":80.16,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[0],"h":1},{"t":38.16,"s":[0],"i":{"x":1,"y":1},"o":{"x":0.82,"y":0}},{"t":80.16,"s":[45],"h":1},{"t":240,"s":[45],"h":1}]}},"w":22,"h":22,"ip":0,"op":241,"st":0,"refId":"6"},{"ind":13,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":92.22,"s":[100],"h":1},{"t":92.22,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[45],"h":1},{"t":80.16,"s":[45],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":92.22,"s":[90],"h":1},{"t":240,"s":[90],"h":1}]}},"w":20,"h":21,"ip":0,"op":241,"st":0,"refId":"11"},{"ind":18,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":101.22,"s":[100],"h":1},{"t":101.22,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[90],"h":1},{"t":92.22,"s":[90],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":101.22,"s":[135],"h":1},{"t":240,"s":[135],"h":1}]}},"w":20,"h":20,"ip":0,"op":241,"st":0,"refId":"16"},{"ind":23,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":107.22,"s":[100],"h":1},{"t":107.22,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[135],"h":1},{"t":101.22,"s":[135],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":107.22,"s":[180],"h":1},{"t":240,"s":[180],"h":1}]}},"w":21,"h":21,"ip":0,"op":241,"st":0,"refId":"21"},{"ind":28,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":112.02,"s":[100],"h":1},{"t":112.02,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[0],"h":1},{"t":107.22,"s":[0],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":112.02,"s":[45],"h":1},{"t":240,"s":[45],"h":1}]}},"w":20,"h":120,"ip":0,"op":241,"st":0,"refId":"26"},{"ind":33,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":115.62,"s":[100],"h":1},{"t":115.62,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[45],"h":1},{"t":112.02,"s":[45],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":115.62,"s":[90],"h":1},{"t":240,"s":[90],"h":1}]}},"w":20,"h":120,"ip":0,"op":241,"st":0,"refId":"31"},{"ind":38,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":118.02,"s":[100],"h":1},{"t":118.02,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[90],"h":1},{"t":115.62,"s":[90],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":118.02,"s":[135],"h":1},{"t":240,"s":[135],"h":1}]}},"w":20,"h":121,"ip":0,"op":241,"st":0,"refId":"36"},{"ind":43,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":119.76,"s":[100],"h":1},{"t":119.76,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[135],"h":1},{"t":118.02,"s":[135],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":119.76,"s":[180],"h":1},{"t":240,"s":[180],"h":1}]}},"w":21,"h":120,"ip":0,"op":241,"st":0,"refId":"41"},{"ind":2,"ty":3,"parent":1,"ks":{"a":{"a":0,"k":[60,60]},"p":{"a":0,"k":[180,180]},"r":{"a":1,"k":[{"t":0,"s":[0],"i":{"x":0,"y":0.726},"o":{"x":0.077,"y":0.396}},{"t":0.947943,"s":[143.05],"i":{"x":0.584,"y":0.684},"o":{"x":0.258,"y":0.351}},{"t":1.872292,"s":[170.15],"i":{"x":0.585,"y":0.69},"o":{"x":0.258,"y":0.357}},{"t":3.748465,"s":[200.34],"i":{"x":0.586,"y":0.699},"o":{"x":0.259,"y":0.366}},{"t":7.503875,"s":[232.22],"i":{"x":0.586,"y":0.713},"o":{"x":0.259,"y":0.381}},{"t":15.005773,"s":[263.7],"i":{"x":0.587,"y":0.741},"o":{"x":0.259,"y":0.411}},{"t":30,"s":[291.3],"i":{"x":0.628,"y":0.768},"o":{"x":0.286,"y":0.488}},{"t":60,"s":[311.6],"i":{"x":0.699,"y":0.605},"o":{"x":0.346,"y":0.344}},{"t":90,"s":[324.38],"i":{"x":0.715,"y":0.561},"o":{"x":0.37,"y":0.251}},{"t":105,"s":[336.74],"i":{"x":0.741,"y":0.618},"o":{"x":0.413,"y":0.285}},{"t":112.493217,"s":[350.5],"i":{"x":0.741,"y":0.636},"o":{"x":0.414,"y":0.303}},{"t":116.236934,"s":[364.32],"i":{"x":0.741,"y":0.645},"o":{"x":0.414,"y":0.312}},{"t":118.107494,"s":[377.2],"i":{"x":0.744,"y":0.651},"o":{"x":0.418,"y":0.318}},{"t":119.063474,"s":[389.07],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":119.532358,"s":[399.45],"i":{"x":0.878,"y":0.625},"o":{"x":1,"y":0.292}},{"t":120,"s":[450],"h":1},{"t":240,"s":[450],"h":1}]},"s":{"a":1,"k":[{"t":0,"s":[70,70],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.9,0.9]}},{"t":120,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[100,100],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":47,"ty":4,"parent":46,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":46,"ty":3,"parent":45,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":120,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.9,0.9]}},{"t":183,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":216.06,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":45,"ty":3,"parent":44,"ks":{"p":{"a":0,"k":[50,0]}},"ip":0,"op":241,"st":0},{"ind":50,"ty":4,"parent":49,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":49,"ty":3,"parent":48,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":126,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.72,0.72]}},{"t":187.44,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":189,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":219,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":48,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":45}},"ip":0,"op":241,"st":0},{"ind":53,"ty":4,"parent":52,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":52,"ty":3,"parent":51,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":132.12,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.54,0.54]}},{"t":191.52,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":195.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":221.94,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":51,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":90}},"ip":0,"op":241,"st":0},{"ind":56,"ty":4,"parent":55,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":55,"ty":3,"parent":54,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":137.82,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.36,0.36]}},{"t":195.72,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":200.94,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":225,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":54,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":135}},"ip":0,"op":241,"st":0},{"ind":59,"ty":4,"parent":58,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":58,"ty":3,"parent":57,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":143.82,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.18,0.18]}},{"t":199.68,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":207.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":228,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":57,"ty":3,"parent":44,"ks":{"p":{"a":0,"k":[50,0]}},"ip":0,"op":241,"st":0},{"ind":62,"ty":4,"parent":61,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":61,"ty":3,"parent":60,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":149.88,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":204.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":213.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":230.94,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":60,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":45}},"ip":0,"op":241,"st":0},{"ind":65,"ty":4,"parent":64,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":64,"ty":3,"parent":63,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":155.88,"s":[0,0],"i":{"x":[0.06,0.06],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":208.08,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":219.24,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":234.12,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":63,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":90}},"ip":0,"op":241,"st":0},{"ind":68,"ty":4,"parent":67,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":67,"ty":3,"parent":66,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":162,"s":[0,0],"i":{"x":[0.12,0.12],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":212.4,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":225.24,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":237.12,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":66,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":135}},"ip":0,"op":241,"st":0},{"ind":44,"ty":3,"parent":1,"ks":{"a":{"a":0,"k":[60,60]},"p":{"a":0,"k":[180,180]},"r":{"a":1,"k":[{"t":0,"s":[0],"h":1},{"t":120,"s":[0],"i":{"x":0,"y":0.691},"o":{"x":0,"y":0.358}},{"t":120.06,"s":[17.95],"i":{"x":0.113,"y":0.857},"o":{"x":0.017,"y":0.588}},{"t":150.045,"s":[83.52],"i":{"x":0.649,"y":0.696},"o":{"x":0.298,"y":0.432}},{"t":180.03,"s":[90.83],"i":{"x":0.975,"y":0.245},"o":{"x":0.804,"y":0.109}},{"t":240,"s":[184.05],"h":1}]},"s":{"a":1,"k":[{"t":0,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":119.76,"s":[100,100],"i":{"x":[1,1],"y":[0.1,0.1]},"o":{"x":[1,1],"y":[0,0]}},{"t":240,"s":[50,50],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":1,"ty":3,"parent":0,"ks":{},"ip":0,"op":241,"st":0},{"ind":0,"ty":3,"ks":{},"ip":0,"op":241,"st":0}]'),Eg={g:"https://jitter.video"},Vg=240,$g="5.7.4",Bg=360,Hg={assets:Dg,fr:Ag,h:_g,ip:Fg,layers:Og,meta:Eg,op:Vg,v:$g,w:Bg};function Gg(){return a.jsxs("span",{className:"relative block w-5 h-5 shrink-0 overflow-hidden -translate-x-0.5","aria-hidden":!0,children:[a.jsx("span",{className:"absolute inset-0 w-5 h-5 thinking-light",children:a.jsx("span",{className:"absolute left-1/2 top-1/2",style:{transform:"translate(-50%, -50%) scale(1.8)"},children:a.jsx(wr,{animationData:Lg,loop:!0,autoplay:!0,style:{width:20,height:20}})})}),a.jsx("span",{className:"absolute inset-0 w-5 h-5 thinking-dark",children:a.jsx("span",{className:"absolute left-1/2 top-1/2",style:{transform:"translate(-50%, -50%) scale(1.8)"},children:a.jsx(wr,{animationData:Hg,loop:!0,autoplay:!0,style:{width:20,height:20}})})}),a.jsx("style",{children:`
|
|
253
250
|
.thinking-light { display: block; }
|
|
254
251
|
.thinking-dark { display: none; }
|
|
255
252
|
html[data-theme="dark"] .thinking-light, html[data-theme="classic-dark"] .thinking-light { display: none; }
|
|
256
253
|
html[data-theme="dark"] .thinking-dark, html[data-theme="classic-dark"] .thinking-dark { display: block; }
|
|
257
|
-
`})]})}function ns(e){return n.jsx(qa,{loader:n.jsx(Ef,{}),...e})}ns.displayName="ThinkingIndicator";function Ql(e){return n.jsx(gf,{...e,thinkingIndicator:e.thinkingIndicator??n.jsx(ns,{text:"Spark is thinking..."})})}Ql.displayName="Response";const He=Ql;He.Root=hn;He.Thinking=Ka;He.Steps=Ja;He.Step=es;He.Content=ts;He.ImageGenerating=wn;He.DefaultLayout=kn;const Ff=He,Yl=m.forwardRef(({children:e,className:t,maxWidth:a="752px",...s},r)=>{const o=l("w-full","bg-sage-bg","rounded-lg","p-3","text-sm leading-sm","font-normal","text-text",t);return n.jsx("div",{ref:r,className:o,style:{maxWidth:typeof a=="number"?`${a}px`:a},...s,children:e})});Yl.displayName="UserMessage";const Ds="w-5 h-5 text-text-secondary",Xl=m.forwardRef(({filename:e,iconFilename:t,size:a,icon:s,getFileIcon:r,onClick:o,className:i,...c},d)=>{const p=s??(r?r(t??e,Ds):n.jsx(Kn,{className:Ds}));return n.jsxs("div",{ref:d,role:o?"button":void 0,tabIndex:o?0:void 0,onClick:o,onKeyDown:o?x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),o())}:void 0,className:l("flex flex-row items-center gap-4 w-full max-w-96","py-5 px-5 rounded-lg","bg-bg-base border border-border-tertiary","text-sm leading-sm","transition-colors cursor-pointer hover:border-border-secondary",i),...c,children:[n.jsx("div",{className:l("flex items-center justify-center w-10 h-10 shrink-0 rounded-md","bg-fill-tertiary"),children:p}),n.jsxs("div",{className:"flex flex-row items-center gap-3 min-w-0",children:[n.jsx("span",{className:"font-medium text-text truncate",children:e}),a!=null&&a!==""&&n.jsxs("span",{className:"shrink-0 text-text-tertiary",children:["(",a,")"]})]})]})});Xl.displayName="FileCard";function $f({className:e}){return n.jsxs("svg",{className:e,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[n.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),n.jsx("polyline",{points:"14 2 14 8 20 8"}),n.jsx("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),n.jsx("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),n.jsx("polyline",{points:"10 9 9 9 8 9"})]})}function Zl(e,t){return n.jsx($f,{className:t})}const Kl=m.forwardRef((e,t)=>{const{getFileIcon:a}=jt(),s=a??((r,o)=>Zl(r,o));return n.jsx(Xl,{ref:t,getFileIcon:s,...e})});Kl.displayName="FileCard";const As="h-3.5 w-3.5 shrink-0 text-current",Jl=m.forwardRef(({filename:e,iconFilename:t,onRemove:a,icon:s,getFileIcon:r,className:o,...i},c)=>{const u=s??(r?r(t??e,As):n.jsx(Kn,{className:As})),{color:p,...x}=i;return n.jsx(ka,{ref:c,appearance:"filled",color:"mauve",closable:typeof a=="function",onClose:a,closeAriaLabel:"移除",className:o,...x,children:n.jsxs("span",{className:"inline-flex items-center gap-1.5 shrink-0",children:[u,e]})})});Jl.displayName="FileAttachment";const ec=m.forwardRef((e,t)=>{const{getFileIcon:a}=jt(),s=a??((r,o)=>Zl(r,o));return n.jsx(Jl,{ref:t,getFileIcon:s,...e})});ec.displayName="FileAttachment";const Bf={sm:"w-12 h-12",md:"w-16 h-16",lg:"w-20 h-20"},Hf="max-w-[90vw] max-h-[90vh] object-contain",Vf="h-2.5 w-2.5 text-text-secondary",Gf="h-4 w-4 text-text-secondary",tc=m.forwardRef(({src:e,alt:t="",onRemove:a,previewable:s=!0,onClick:r,size:o="sm",className:i,closeIcon:c,closeLargeIcon:d,...u},p)=>{const[x,g]=m.useState(!1),v=c??n.jsx(Re,{className:Vf}),f=d??n.jsx(gr,{className:Gf}),b=typeof a=="function",h=m.useCallback(()=>{s&&g(!0)},[s]),w=m.useCallback(()=>g(!1),[]),k=m.useCallback(C=>{r?.(C),!C.defaultPrevented&&s&&h()},[r,s,h]),j=m.useCallback(C=>{C.stopPropagation(),a?.(C)},[a]);m.useEffect(()=>{if(!x)return;const C=L=>{L.key==="Escape"&&w()};return window.addEventListener("keydown",C),()=>window.removeEventListener("keydown",C)},[x,w]);const I=x&&typeof document<"u"?Zs.createPortal(n.jsxs("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center bg-bg-mask",role:"dialog","aria-modal":"true","aria-label":"图片预览",onClick:C=>{C.target===C.currentTarget&&w()},onKeyDown:C=>C.key==="Escape"&&w(),children:[n.jsx("img",{src:e,alt:t,className:l("rounded-lg shadow-xl",Hf),onClick:C=>C.stopPropagation(),draggable:!1}),n.jsx(Ie,{variant:"tertiary",size:"md",rounded:"pill",icon:f,onClick:w,"aria-label":"关闭预览",className:"absolute top-4 right-4 bg-bg-base border border-border-tertiary shadow-sm"})]}),document.body):null;return n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:p,role:s?"button":void 0,tabIndex:s?0:void 0,className:l("relative group shrink-0",s&&"cursor-pointer",i),onClick:k,onKeyDown:s?C=>{(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),h())}:void 0,...u,children:[n.jsx("img",{src:e,alt:t,className:l("rounded-lg object-cover border border-border-tertiary",Bf[o]),draggable:!1}),b&&n.jsx("button",{type:"button",onClick:j,"aria-label":"移除",className:"absolute -top-0.5 -right-0.5 flex h-4 w-4 cursor-pointer items-center justify-center rounded-full bg-bg-base border border-border-tertiary shadow-sm opacity-0 group-hover:opacity-100 transition-opacity hover:bg-fill-secondary",children:v})]}),I]})});tc.displayName="ImageAttachment";const qf="h-2.5 w-2.5 text-text-secondary",Wf="h-4 w-4 text-text-secondary",nc=m.forwardRef((e,t)=>{const a=N("close",qf),s=N("closeLarge",Wf);return n.jsx(tc,{ref:t,closeIcon:a,closeLargeIcon:s,...e})});nc.displayName="ImageAttachment";const ac="w-3.5 h-3.5 text-text-tertiary",sc="w-3.5 h-3.5 transition-transform duration-200 ease-in-out";function rc(e){const t=N("eye",ac),a=N("arrowRight",sc);return n.jsx(yn,{eyeIcon:t,arrowRightIcon:a,...e})}rc.displayName="ReasoningStepRoot";function oc(e){const t=N("eye",ac),a=N("arrowRight",sc);return n.jsx(Jt,{eyeIcon:t,arrowRightIcon:a,...e})}oc.displayName="ReasoningStep";const Lt=oc;Lt.Root=rc;Lt.Header=bn;Lt.Details=vn;Lt.DetailRow=Ya;const Uf=Lt,as="size-[1em] shrink-0",Qf=`${as} text-text-tertiary`,Yf=`${as} text-success`,Xf=`${as} text-text-tertiary`,Zf="w-3.5 h-3.5 text-text-tertiary transition-all duration-200",ic=m.memo(function({toolName:t,params:a,status:s,response:r,defaultExpanded:o=!1,statusText:i,className:c,timeIcon:d,checkboxCircleIcon:u,closeCircleIcon:p,arrowDownIcon:x,arrowRightIcon:g,runningText:v="Running",ranText:f="Ran",failedText:b="Failed",responseLabel:h="Response"}){const[w,k]=m.useState(o),j=r!=null&&r.length>0,I=s==="running",C=s==="success",L=s==="error",S=i!==void 0?i:I?v:C?f:b,O=S!=="",re=d??n.jsx(jr,{className:Qf}),_=u??n.jsx(an,{className:Yf}),U=p??n.jsx(Nr,{className:Xf}),le=x??g??n.jsx(ve,{className:Zf});return n.jsxs("div",{className:l("flex flex-col",c),children:[n.jsxs("div",{onClick:()=>j&&!I&&k(!w),className:l("group flex items-center gap-1.5 min-h-5",j&&!I&&"cursor-pointer hover:opacity-80 transition-opacity"),children:[n.jsxs("div",{className:"shrink-0 flex items-center justify-center text-xs",children:[I&&re,C&&_,L&&U]}),O&&n.jsx("span",{className:"text-xs leading-xs text-text-tertiary shrink-0",children:S}),n.jsx("span",{className:"text-xs leading-xs text-text-secondary shrink-0",children:t}),a!=null&&a!==""&&n.jsx("span",{className:"text-xs leading-xs text-text-tertiary min-w-0 shrink truncate",title:a,children:a}),j&&!I&&n.jsx("div",{className:l("shrink-0 inline-flex items-center justify-center","opacity-0 group-hover:opacity-100",w&&"!opacity-100",w?"rotate-180":"rotate-0"),children:le})]}),j&&w&&n.jsxs("div",{className:"mt-1 ml-4.5 rounded-md border border-border-tertiary bg-bg-base overflow-hidden font-mono text-xs leading-xs",children:[n.jsx("div",{className:"text-text-tertiary px-2 pt-1 pb-0 leading-xs",children:h}),n.jsx(we,{scrollbarVisibility:"auto",maxHeight:208,className:"px-2 pb-1 leading-xs",children:n.jsx("pre",{className:l("whitespace-pre-wrap break-words leading-xs",L?"text-error":"text-text-tertiary"),children:r})})]})]})});ic.displayName="ToolInvocationCard";const Kf="size-[1em] text-text-tertiary",Jf="size-[1em] text-success",eh="size-[1em] text-text-tertiary",th="w-3.5 h-3.5 text-text-tertiary transition-all duration-200",lc=m.memo(function(t){const{t:a}=Js.useTranslation(),s=N("time",Kf),r=N("checkboxCircle",Jf),o=N("closeCircle",eh),i=N("arrowDownS",th);return n.jsx(ic,{timeIcon:s,checkboxCircleIcon:r,closeCircleIcon:o,arrowDownIcon:i,runningText:a("tools.status.running","Running"),ranText:a("tools.status.ran","Ran"),failedText:a("tools.status.failed","Failed"),...t})});lc.displayName="ToolInvocationCard";const nh=80;function _s(e){if(!e)return{};const{label:t,...a}=e;return a}const ah="Permission required",sh="This action requires your permission.",rh="Expand",oh="Collapse",ih=", ",cc=m.forwardRef(({title:e,description:t,command:a,commandIntent:s,isLoadingIntent:r=!1,onClose:o,actions:i,className:c,closeIcon:d,warningIcon:u,expandLabel:p=rh,collapseLabel:x=oh,commaLabel:g=ih,...v},f)=>{const b=e??ah,h=t??sh,w=a.length>nh,[k,j]=m.useState(!w),I=d??n.jsx(Re,{className:"h-3.5 w-3.5"}),C=u??n.jsx(kt,{className:"h-4 w-4"});return n.jsxs("div",{ref:f,className:l("relative rounded-lg border border-border-tertiary bg-bg-base p-3",c),...v,children:[o&&n.jsx("button",{type:"button",onClick:o,className:"absolute top-3 right-3 flex h-4 w-4 cursor-pointer items-center justify-center text-text-secondary transition-colors duration-200 hover:text-text","aria-label":"Close",children:I}),n.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[n.jsx("div",{className:"flex h-4 w-4 shrink-0 items-center justify-center text-warning",children:C}),n.jsx("h3",{className:"min-w-0 flex-1 text-base leading-base font-semibold text-text",children:b})]}),n.jsx("p",{className:"mb-2 ml-6 text-xs leading-xs text-text-tertiary",children:r?n.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[n.jsx("div",{className:"inline-block h-3 w-3 animate-spin rounded-full border-2 border-text-tertiary border-t-transparent"}),n.jsx("span",{children:h})]}):n.jsxs(n.Fragment,{children:[h,s&&n.jsxs("span",{children:[g,s]})]})}),n.jsx("div",{className:"mb-4 ml-6",children:n.jsxs("div",{className:"rounded p-2 bg-fill-tertiary",children:[k||!w?n.jsx("div",{title:a,children:n.jsx(we,{scrollbarVisibility:"auto",maxHeight:240,className:"text-xs leading-xs font-medium text-text break-all",style:{fontFamily:"Fira Code, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace"},children:a})}):n.jsx("div",{className:"text-xs leading-xs font-medium text-text break-all line-clamp-2 overflow-hidden",style:{fontFamily:"Fira Code, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace"},title:a,children:a}),w&&n.jsx("button",{type:"button",onClick:()=>j(!k),className:"mt-1 flex items-center gap-1 text-xs leading-xs text-text-tertiary hover:text-text transition-colors",children:k?x:p})]})}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[i?.deny&&n.jsx(W,{variant:"ghost",..._s(i.deny),children:i.deny.label}),i?.allowOnce&&n.jsx("button",{type:"button",className:l("rounded-full inline-flex items-center justify-center","px-3 py-1 text-sm leading-sm font-medium","text-text-on-primary bg-error","cursor-pointer hover:opacity-90 active:opacity-95 transition-opacity","disabled:opacity-50 disabled:cursor-not-allowed"),..._s(i.allowOnce),children:i.allowOnce.label})]})]})});cc.displayName="PermissionCard";const dc=m.forwardRef((e,t)=>{const{t:a}=Js.useTranslation(),s=N("close","h-3.5 w-3.5"),r=N("warning","h-4 w-4");return n.jsx(cc,{ref:t,...e,closeIcon:s,warningIcon:r,title:e.title??a("permission.title"),description:e.description??a("permission.description.default",{toolName:"Tool"}),expandLabel:a("permission.expand"),collapseLabel:a("permission.collapse"),commaLabel:a("common.comma")})});dc.displayName="PermissionCard";const lh="h-5 w-5 text-text-on-primary";function uc(e){const t=N("sparkling",lh);return n.jsx(Za,{sparklingIcon:t,...e})}uc.displayName="ImageGenerating";const mc=m.memo(function({children:t,className:a="",gridClassName:s="",isGenerating:r=!1,maxVisibleWhenGenerating:o=6,formatRemaining:i=c=>`+${c}`}){const c=m.Children.toArray(t),d=c.length,u=r&&d>o,p=u?o:d,x=d-o+1,v=c.slice(0,p).map((f,b)=>u&&b===p-1&&m.isValidElement(f)?m.cloneElement(f,{showOverlay:!0,overlayText:i(x)}):f);return n.jsx("div",{className:l("mt-5 mb-2",a),children:n.jsx("div",{className:l("flex flex-wrap gap-3",s),children:v})})});mc.displayName="GeneratedImagesGrid";const ch={multiSelect:"Multi-select",singleSelect:"Single-select",questionHeader:"Question",skipAll:"Skip All",continue:"Continue",submit:"Submit",sending:"Sending...",customInputPlaceholder:"Other (please specify)",recommend:"Recommend"},dh="[No preference]",ss=m.createContext(null);ss.displayName="UserQuestionContext";function Dt(){const e=m.useContext(ss);if(!e)throw new Error("UserQuestion compound components must be used within UserQuestion.Root");return e}const uh=n.jsx(kr,{className:"w-4 h-4 shrink-0 text-text-tertiary"}),mh=n.jsx(Zn,{}),ph=n.jsx(ve,{}),xh=n.jsx(Jn,{className:"w-4 h-4 mr-1"}),jn=m.forwardRef(function({questions:t,resetKey:a,onAnswer:s,onSkip:r,hasCustomText:o=!1,labels:i,chat4Icon:c=uh,arrowUpSIcon:d=mh,arrowDownSIcon:u=ph,sparklingIcon:p=xh,children:x},g){const v={...ch,...i},[f,b]=m.useState(0),[h,w]=m.useState({}),[k,j]=m.useState({}),[I,C]=m.useState(0),[L,z]=m.useState(!1),[S,O]=m.useState(void 0),re=m.useRef(a),_=m.useRef(null),U=m.useRef(new Map),le=m.useRef(f),J=m.useRef(!1),G=m.useRef(!1),ae=m.useRef(new Map),ce=m.useRef(f),R=t[f],$=R?.options||[],ee=t.every(P=>(h[P.question]||[]).length>0||(k[P.question]?.trim()||"").length>0),me=(h[R?.question]||[]).length>0||(k[R?.question]?.trim()||"").length>0,Q=m.useCallback(P=>{const D=t[P];if(!D)return 0;const B=h[D.question]||[];if(B.length===0)return 0;const ne=(D.options||[]).findIndex(ge=>B.includes(ge.label));return ne>=0?ne:0},[t,h]);m.useImperativeHandle(g,()=>({getAnswers:()=>{const P={};for(const D of t){const B=h[D.question]||[],te=k[D.question]?.trim(),ne=[];B.length>0&&ne.push(...B),te&&ne.push(te),ne.length>0&&(P[D.question]=ne.join(", "))}return P}}),[h,k,t]),m.useEffect(()=>{re.current!==a&&(re.current=a,U.current.clear(),ae.current.clear(),le.current=0,requestAnimationFrame(()=>{z(!1),b(0),w({}),j({}),C(0)}))},[a]),m.useEffect(()=>{if(ce.current!==f){if(le.current=f,G.current){J.current=!0;const P=U.current.get(f),D=_.current;if(P&&D){const B=()=>{J.current=!1,G.current=!1,D.removeEventListener("scrollend",B)};D.addEventListener("scrollend",B,{once:!0}),P.scrollIntoView({behavior:"smooth",block:"nearest"})}else J.current=!1,G.current=!1}ce.current=f}},[f]),m.useEffect(()=>{const P=setTimeout(()=>{let D=0;U.current.forEach(B=>{const te=B.getBoundingClientRect().height;te>D&&(D=te)}),D>0&&O(D)},50);return()=>clearTimeout(P)},[t,a]),m.useEffect(()=>{const P=_.current;if(!P)return;const D=new IntersectionObserver(B=>{if(J.current)return;let te=0,ne=le.current;B.forEach(ge=>{ge.isIntersecting&&ge.intersectionRatio>te&&(te=ge.intersectionRatio,U.current.forEach((ls,Pn)=>{ls===ge.target&&(ne=Pn)}))}),ne!==le.current&&te>.5&&(le.current=ne,b(ne),C(Q(ne)))},{root:P,threshold:[0,.25,.5,.75,1]});return U.current.forEach(B=>{B?.isConnected&&D.observe(B)}),()=>D.disconnect()},[t,Q]);const Y=m.useCallback((P,D,B)=>{const ne=t[B]?.multiSelect??!1,ge=B===t.length-1,Pn=(h[P]||[]).includes(D);w(Ne=>{const _t=Ne[P]||[];return ne?_t.includes(D)?{...Ne,[P]:_t.filter(Bc=>Bc!==D)}:{...Ne,[P]:[..._t,D]}:_t.includes(D)?{...Ne,[P]:[]}:{...Ne,[P]:[D]}}),ne||j(Ne=>({...Ne,[P]:""})),!ne&&!ge&&!Pn&&setTimeout(()=>{const Ne=B+1;G.current=!0,b(Ne),C(Q(Ne))},150)},[t,h,Q]),pe=m.useCallback(()=>{if(f>0){const P=f-1;G.current=!0,b(P),C(Q(P))}},[f,Q]),je=m.useCallback(()=>{if(f<t.length-1){const P=f+1;G.current=!0,b(P),C(Q(P))}},[f,t.length,Q]),Je=m.useCallback(()=>{if(!L)if(ee){z(!0);const P={};for(const D of t){const B=h[D.question]||[],te=k[D.question]?.trim(),ne=[];B.length>0&&ne.push(...B),te&&ne.push(te),P[D.question]=ne.join(", ")}s(P)}else{const P=te=>(h[te.question]||[]).length===0&&(k[te.question]?.trim()||"").length===0,D=t.length;let B=-1;for(let te=1;te<D;te++){const ne=(f+te)%D;if(P(t[ne])){B=ne;break}}B>=0&&(G.current=!0,b(B),C(Q(B)))}},[L,ee,t,h,k,f,s,Q]),oe=m.useCallback(()=>{if(L)return;z(!0);const P={};for(const D of t){const B=h[D.question]||[],te=k[D.question]?.trim();if(B.length>0||!!te){const ge=[];B.length>0&&ge.push(...B),te&&ge.push(te),P[D.question]=ge.join(", ")}else P[D.question]=dh}s(P),r()},[L,t,h,k,s,r]),et=m.useCallback(()=>{if(L)return;const P={};for(const D of t){const B=D.options?.[0];B&&(P[D.question]=[B.label])}w(P),j({}),G.current=!0,b(t.length-1),C(0),setTimeout(()=>{_.current&&_.current.scrollTo({top:_.current.scrollHeight,behavior:"smooth"})},50)},[L,t]),ze=m.useCallback(P=>{G.current=P},[]),Le={questions:t,labels:v,currentQuestionIndex:f,setCurrentQuestionIndex:b,answers:h,setAnswers:w,customInputs:k,setCustomInputs:j,focusedOptionIndex:I,setFocusedOptionIndex:C,isSubmitting:L,setIsSubmitting:z,maxQuestionHeight:S,scrollContainerRef:_,questionRefs:U,setShouldScrollToQuestion:ze,customInputRefs:ae,currentQuestion:R,currentOptions:$,allQuestionsAnswered:ee,currentQuestionHasAnswer:me,getSelectedOptionIndex:Q,handleOptionClick:Y,handlePrevious:pe,handleNext:je,handleContinue:Je,handleSkip:oe,handleRecommend:et,chat4Icon:c,arrowUpSIcon:d,arrowDownSIcon:u,sparklingIcon:p,hasCustomText:o};return t.length===0?null:n.jsx(ss.Provider,{value:Le,children:x})});jn.displayName="UserQuestionRoot";function Nn({className:e}){const t=Dt();return n.jsxs("div",{className:l("flex items-center justify-between mb-2 -mt-2 px-3 pt-2 pb-2 rounded-t-xl bg-fill-tertiary",e),children:[n.jsxs("div",{className:"flex items-center gap-1.5",children:[t.chat4Icon,n.jsx("span",{className:"text-xs leading-xs text-text-tertiary",children:t.currentQuestion?.header||t.labels.questionHeader}),n.jsx("span",{className:"text-text-tertiary/50",children:"•"}),n.jsx("span",{className:"text-xs leading-xs text-text-tertiary",children:t.currentQuestion?.multiSelect?t.labels.multiSelect:t.labels.singleSelect})]}),t.questions.length>1&&n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx(Ie,{size:"sm",variant:"ghost",onClick:t.handlePrevious,disabled:t.currentQuestionIndex===0,icon:t.arrowUpSIcon}),n.jsxs("span",{className:"text-xs leading-xs text-text-tertiary px-1",children:[t.currentQuestionIndex+1," / ",t.questions.length]}),n.jsx(Ie,{size:"sm",variant:"ghost",onClick:t.handleNext,disabled:t.currentQuestionIndex===t.questions.length-1,icon:t.arrowDownSIcon})]})]})}Nn.displayName="UserQuestionHeader";function Cn({question:e,qIndex:t,className:a}){const s=Dt(),r=e.options||[],[o,i]=m.useState(!1),c=!!s.customInputs[e.question]?.trim(),d=o||c,u=t===s.currentQuestionIndex;return n.jsxs("div",{ref:p=>{p?s.questionRefs.current.set(t,p):s.questionRefs.current.delete(t)},className:l("transition-opacity duration-200",u?"opacity-100":"opacity-40",a),children:[n.jsxs("div",{className:"flex items-start gap-3 pl-2 mb-3",children:[n.jsxs("div",{className:"flex-shrink-0 w-5 flex items-center justify-center text-sm leading-sm font-medium text-text-tertiary",children:[t+1,"."]}),n.jsx("div",{className:"text-sm leading-sm font-medium text-text min-w-0 flex-1",children:e.question})]}),n.jsx(aa,{items:r.map(p=>({id:p.label,label:p.label,description:p.description})),selectedIds:s.answers[e.question]?.map(p=>p)||[],focusedId:u?r[s.focusedOptionIndex]?.label:void 0,disabled:s.isSubmitting||!u,onItemClick:(p,x)=>{if(!u){s.setCurrentQuestionIndex(t),s.setFocusedOptionIndex(s.getSelectedOptionIndex(t));return}s.handleOptionClick(e.question,p.label,t),s.setFocusedOptionIndex(x)}}),e.allowCustomInput!==!1&&n.jsxs("div",{className:l("w-full flex gap-3 pl-2 mt-3 transition-colors",!u&&"opacity-40",s.isSubmitting&&"opacity-50"),children:[n.jsx("div",{className:l("flex-shrink-0 w-5 h-5 rounded-full flex items-center justify-center text-xs leading-xs font-medium transition-colors",u&&s.focusedOptionIndex===r.length||s.customInputs[e.question]?.trim()?"bg-primary-active text-text-on-primary":"bg-fill-secondary text-text-tertiary"),children:r.length+1}),n.jsxs("div",{className:"flex-1 min-w-0 flex flex-col",children:[n.jsx("div",{className:"h-5 flex items-center",children:n.jsx("input",{ref:p=>{p?s.customInputRefs.current.set(e.question,p):s.customInputRefs.current.delete(e.question)},type:"text",value:s.customInputs[e.question]||"",style:{outline:"none",outlineOffset:0,boxShadow:"none",border:"none"},onChange:p=>{const x=p.target.value;s.setCustomInputs(g=>({...g,[e.question]:x})),!e.multiSelect&&x.trim()&&s.setAnswers(g=>({...g,[e.question]:[]}))},onFocus:()=>{i(!0),u&&(s.setFocusedOptionIndex(r.length),e.multiSelect||s.setAnswers(p=>({...p,[e.question]:[]})))},onBlur:()=>i(!1),onKeyDown:p=>{if(p.key==="Enter"&&!p.shiftKey){p.preventDefault(),p.stopPropagation();const x=s.customInputs[e.question]?.trim();if((s.answers[e.question]||[]).length>0||!!x)if(s.allQuestionsAnswered)s.handleContinue();else if(t<s.questions.length-1){const f=t+1;s.setShouldScrollToQuestion(!0),s.setCurrentQuestionIndex(f),s.setFocusedOptionIndex(0)}else s.handleContinue()}},placeholder:s.labels.customInputPlaceholder,disabled:s.isSubmitting||!u,className:l("w-full h-full py-0 bg-transparent text-sm leading-sm font-medium text-text","placeholder:text-text-tertiary placeholder:font-normal","border-0 rounded-none outline-none outline-offset-0","focus:outline-none focus:outline-offset-0","focus-visible:outline-none focus-visible:outline-offset-0","ring-0 focus:ring-0 focus:ring-offset-0 focus-visible:ring-0 focus-visible:ring-offset-0 shadow-none","disabled:cursor-not-allowed")})}),n.jsx("div",{className:"mt-1.5 overflow-hidden origin-left transition-[width] duration-200 ease-out",style:{width:d?"100%":"0%"},"aria-hidden":!0,children:n.jsx("div",{className:"h-px bg-[var(--color-border-tertiary)]"})})]})]})]},e.question)}Cn.displayName="UserQuestionCard";function Sn({className:e,children:t}){const a=Dt(),{scrollContainerRef:s,maxQuestionHeight:r,questions:o}=a;return n.jsx(we,{ref:s,scrollbarVisibility:"auto",maxHeight:r||void 0,className:l("scroll-smooth",e),children:n.jsx("div",{className:"space-y-4 px-3",children:t??o.map((i,c)=>n.jsx(Cn,{question:i,qIndex:c},i.question))})})}Sn.displayName="UserQuestionCards";function In({className:e}){const t=Dt();return n.jsxs("div",{className:l("flex items-center justify-between px-3 py-2",e),children:[n.jsxs(W,{variant:"ghost",size:"sm",onClick:t.handleRecommend,disabled:t.isSubmitting,children:[t.sparklingIcon,t.labels.recommend]}),n.jsxs("div",{className:"flex items-center gap-2",children:[!t.allQuestionsAnswered&&n.jsx(W,{variant:"ghost",size:"sm",onClick:t.handleSkip,disabled:t.isSubmitting,children:t.labels.skipAll}),n.jsx(W,{size:"sm",variant:"secondary",onClick:t.handleContinue,disabled:t.isSubmitting||t.hasCustomText||!t.allQuestionsAnswered,children:t.isSubmitting?t.labels.sending:n.jsxs(n.Fragment,{children:[t.allQuestionsAnswered?t.labels.submit:t.labels.continue,n.jsx("span",{className:"opacity-70",children:" ↵"})]})})]})]})}In.displayName="UserQuestionFooter";function Rn(){return n.jsxs(H.motion.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.2,ease:[.16,1,.3,1]},className:l("border rounded-t-xl border-b-0 border-border border-border-tertiary bg-bg-base overflow-hidden pt-2 pb-2"),children:[n.jsx(Nn,{}),n.jsx(Sn,{}),n.jsx(In,{})]})}Rn.displayName="UserQuestionDefaultLayout";function fh(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e?.getAttribute("contenteditable")==="true"}function hh({isSubmitting:e,currentQuestion:t,currentOptions:a,currentQuestionIndex:s,questions:r,focusedOptionIndex:o,setFocusedOptionIndex:i,currentQuestionHasAnswer:c,getSelectedOptionIndex:d,setShouldScrollToQuestion:u,setCurrentQuestionIndex:p,handleOptionClick:x,handleContinue:g}){m.useEffect(()=>{const v={ArrowDown(b){if(b.preventDefault(),o<a.length-1)i(o+1);else if(s<r.length-1){const h=s+1;u(!0),p(h),i(d(h))}},ArrowUp(b){if(b.preventDefault(),o>0)i(o-1);else if(s>0){const h=s-1;u(!0),p(h),i(d(h))}},Enter(b){b.preventDefault(),c?g():t&&a[o]&&x(t.question,a[o].label,s)}},f=b=>{if(e||fh(document.activeElement))return;const h=v[b.key];if(h){h(b);return}if(b.key>="1"&&b.key<="9"){const w=parseInt(b.key,10)-1;w>=0&&w<a.length&&t&&(b.preventDefault(),x(t.question,a[w].label,s),i(w))}};return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[e,t,a,s,r.length,o,i,c,d,p,x,g,u])}function gh(){const e=Dt();return hh({isSubmitting:e.isSubmitting,currentQuestion:e.currentQuestion,currentOptions:e.currentOptions,currentQuestionIndex:e.currentQuestionIndex,questions:e.questions,focusedOptionIndex:e.focusedOptionIndex,setFocusedOptionIndex:e.setFocusedOptionIndex,currentQuestionHasAnswer:e.currentQuestionHasAnswer,getSelectedOptionIndex:e.getSelectedOptionIndex,setShouldScrollToQuestion:e.setShouldScrollToQuestion,setCurrentQuestionIndex:e.setCurrentQuestionIndex,handleOptionClick:e.handleOptionClick,handleContinue:e.handleContinue}),null}const pc=m.forwardRef(function(t,a){return n.jsxs(jn,{ref:a,...t,children:[n.jsx(gh,{}),n.jsx(Rn,{})]})});pc.displayName="UserQuestion";const Ze=pc;Ze.Root=jn;Ze.Header=Nn;Ze.Card=Cn;Ze.Cards=Sn;Ze.Footer=In;Ze.DefaultLayout=Rn;const yh=Ze;function bh(e,t){const a=N("chat4","w-4 h-4 shrink-0 text-text-tertiary"),s=N("arrowUpS"),r=N("arrowDownS"),o=N("sparkling","w-4 h-4 mr-1");return n.jsx(jn,{ref:t,chat4Icon:a,arrowUpSIcon:s,arrowDownSIcon:r,sparklingIcon:o,...e})}const xc=m.forwardRef(bh);xc.displayName="UserQuestionRoot";const fc=m.forwardRef(function(t,a){const s=N("chat4","w-4 h-4 shrink-0 text-text-tertiary"),r=N("arrowUpS"),o=N("arrowDownS"),i=N("sparkling","w-4 h-4 mr-1");return n.jsx(yh,{ref:a,chat4Icon:s,arrowUpSIcon:r,arrowDownSIcon:o,sparklingIcon:i,...t})});fc.displayName="UserQuestion";const Ke=fc;Ke.Root=xc;Ke.Header=Nn;Ke.Card=Cn;Ke.Cards=Sn;Ke.Footer=In;Ke.DefaultLayout=Rn;const vh=Ke,wh={answer:"Answer",answers:"Answers"},kh="w-4 h-4 shrink-0 text-text-tertiary",hc=m.memo(function({answers:t,showHeader:a=!0,labels:s,className:r="",questionAnswerIcon:o}){const i={...wh,...s},c=Object.entries(t),d=o??n.jsx(ku,{className:kh});return c.length===0?null:n.jsxs("div",{className:`rounded-lg border border-border-tertiary bg-bg-container overflow-hidden mx-2 ${r}`.trim(),children:[a&&n.jsxs("div",{className:"flex items-center gap-2 pl-3 pr-3 h-8 border-b border-border-tertiary",children:[d,n.jsx("span",{className:"text-xs leading-xs text-text-tertiary",children:c.length===1?i.answer:i.answers})]}),n.jsx("div",{className:"flex flex-col gap-3 p-3 text-xs leading-xs",children:c.map(([u,p],x)=>n.jsxs("div",{className:"flex flex-col gap-1",children:[n.jsx("span",{className:"font-medium text-text",children:u}),n.jsx("span",{className:"text-text-tertiary",children:p})]},x))})]})});hc.displayName="UserQuestionAnswer";const jh="w-4 h-4 shrink-0 text-text-tertiary",gc=m.memo(function(t){const a=N("questionAnswer",jh);return n.jsx(hc,{questionAnswerIcon:a,...t})});gc.displayName="UserQuestionAnswer";const Nh={title:"In queue",sendNowTip:"Send now",removeTip:"Remove",fileLabel:"file",filesLabel:"files"},Ch="w-3.5 h-3.5",Sh="w-3.5 h-3.5",Ih="w-4 h-4 text-text-tertiary transition-transform duration-200",Rh=m.memo(function({item:t,onRemove:a,onSendNow:s,labels:r,arrowUpIcon:o,closeIcon:i}){const c=m.useCallback(x=>{x.stopPropagation(),a?.(t.id)},[t.id,a]),d=m.useCallback(x=>{x.stopPropagation(),s?.(t.id)},[t.id,s]),u=t.attachmentCount??0,p=u===1?r.fileLabel:r.filesLabel;return n.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 text-xs leading-xs hover:bg-fill-tertiary transition-colors cursor-default",children:[n.jsx("span",{className:"truncate flex-1 text-text",children:t.label}),u>0&&n.jsxs("span",{className:"shrink-0 text-xs leading-xs text-text-tertiary",children:["+",u," ",p]}),n.jsxs("div",{className:"flex items-center gap-0.5",children:[s&&n.jsx(rt,{content:r.sendNowTip,side:"top",children:n.jsx(Ie,{size:"sm",variant:"ghost",icon:o,"aria-label":r.sendNowTip,className:"shrink-0",onClick:d})}),a&&n.jsx(rt,{content:r.removeTip,side:"top",children:n.jsx(Ie,{size:"sm",variant:"ghost",icon:i,"aria-label":r.removeTip,className:"shrink-0",onClick:c})})]})]})}),yc=m.memo(function({items:t,onRemoveItem:a,onSendNow:s,isStreaming:r=!1,hasStatusCardBelow:o=!1,labels:i,defaultExpanded:c=!0,storageKey:d,arrowUpIcon:u,closeIcon:p,arrowDownSIcon:x}){const g={...Nh,...i},v=u??n.jsx(Zn,{className:Ch}),f=p??n.jsx(Re,{className:Sh}),b=x??n.jsx(ve,{className:Ih}),[h,w]=m.useState(()=>{if(typeof window>"u")return c;if(d){const j=localStorage.getItem(d);return j!==null?j==="true":c}return c});if(m.useEffect(()=>{d&&localStorage.setItem(d,String(h))},[d,h]),t.length===0)return null;const k=l("w-full overflow-hidden flex flex-col","border border-b-0 border-border border-border-tertiary bg-bg-base",!o&&"rounded-t-xl");return n.jsxs(H.motion.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.2,ease:[.16,1,.3,1]},className:k,children:[n.jsx("div",{role:"button",tabIndex:0,onClick:()=>w(!h),onKeyDown:j=>{(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),w(!h))},"aria-expanded":h,"aria-label":`${h?"Collapse":"Expand"} queue`,className:"flex items-center justify-between px-3 py-1 h-7 cursor-pointer bg-fill-tertiary hover:bg-fill-secondary transition-colors duration-150 focus:outline-none",children:n.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[n.jsx("span",{className:l("inline-flex items-center justify-center",!h&&"-rotate-90"),children:b}),n.jsx("span",{className:"text-xs leading-xs font-medium text-text-secondary",children:g.title})]})}),n.jsx(H.AnimatePresence,{initial:!1,children:h&&n.jsx(H.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:[.23,1,.32,1]},className:"overflow-hidden",children:n.jsx(we,{scrollbarVisibility:"auto",maxHeight:208,className:"border-t border-border-tertiary scroll-smooth",children:t.map(j=>n.jsx(Rh,{item:j,onRemove:a,onSendNow:s,labels:g,arrowUpIcon:v,closeIcon:f},j.id))})})})]})});yc.displayName="QueueIndicator";const Th="w-3.5 h-3.5",Mh="w-3.5 h-3.5",Ph="w-4 h-4 text-text-tertiary transition-transform duration-200",bc=m.memo(function(t){const a=N("arrowUp",Th),s=N("close",Mh),r=N("arrowDownS",Ph);return n.jsx(yc,{arrowUpIcon:a,closeIcon:s,arrowDownSIcon:r,...t})});bc.displayName="QueueIndicator";const zh={ariaLabel:"Conversation anchors",scrollTo:"Scroll to message"},vc=m.memo(function({scrollContainerRef:t,items:a,onSelect:s,activeIndex:r,variant:o="bar",minItems:i=3,hidden:c=!1,labels:d,className:u,getAnchorElement:p,renderAnchor:x}){const g={...zh,...d},v=wc({scrollContainerRef:t,items:a,getAnchorElement:p,enabled:r===void 0&&!c}),f=r!==void 0?r:v,b=m.useCallback(w=>{const k=a[w];k&&s(w,k)},[a,s]),h=!c&&a.length>=i;return n.jsx(H.AnimatePresence,{mode:"wait",children:h&&n.jsx(H.motion.nav,{initial:{opacity:0,x:8},animate:{opacity:1,x:0,transition:{type:"spring",stiffness:500,damping:30,mass:.6}},exit:{opacity:0,x:8,transition:{duration:.15,ease:[.32,.72,0,1]}},className:l("absolute right-3 top-1/2 -translate-y-1/2 z-[40]","flex flex-col items-end gap-1.5 max-h-[80%] overflow-y-auto","scrollbar-hide",u),"aria-label":g.ariaLabel,children:a.map((w,k)=>n.jsx(Lh,{item:w,index:k,isActive:k===f,variant:o,tooltipFallback:g.scrollTo,onClick:b,renderAnchor:x},w.id))},"spark-conversation-anchor-nav")})});vc.displayName="ConversationAnchorNav";const Lh=m.memo(function({item:t,index:a,isActive:s,variant:r,tooltipFallback:o,onClick:i,renderAnchor:c}){const d=m.useCallback(()=>i(a),[i,a]),u=c?c({item:t,index:a,isActive:s,variant:r}):null;return n.jsx(rt,{content:t.summary||o,side:"left",contentClassName:"max-w-xs",children:n.jsx("button",{type:"button",onClick:d,className:l("group/spark-anchor flex cursor-pointer border-0 bg-transparent outline-none","focus-visible:ring-2 focus-visible:ring-[var(--color-link)] focus-visible:rounded-full",r==="punch"?"h-7 w-7 shrink-0 items-center justify-center p-0":"items-center justify-end p-1"),"aria-label":`${o} ${a+1}`,"aria-current":s?"true":void 0,"data-spark-anchor-nav-item":t.id,children:u??n.jsx("span",{className:l("block shrink-0 origin-center",r==="punch"?l("rounded-full transition-transform duration-300 ease-out",s?"h-2 w-2 bg-[var(--color-link)] group-hover/spark-anchor:scale-125":l("h-1.5 w-1.5 border border-solid border-border-tertiary bg-transparent","group-hover/spark-anchor:scale-150 group-hover/spark-anchor:border-[var(--color-link)]")):l("rounded-full transition-all duration-300 ease-out h-0.5",s?"w-4 bg-text-quaternary":"w-2.5 bg-border-tertiary","group-hover/spark-anchor:w-6 group-hover/spark-anchor:bg-text-quaternary"))})})})},(e,t)=>e.isActive===t.isActive&&e.variant===t.variant&&e.index===t.index&&e.item.id===t.item.id&&e.item.summary===t.item.summary&&e.tooltipFallback===t.tooltipFallback&&e.onClick===t.onClick&&e.renderAnchor===t.renderAnchor);function wc({scrollContainerRef:e,items:t,getAnchorElement:a,enabled:s=!0}){const[r,o]=m.useState(0),i=m.useMemo(()=>t.map(d=>d.id).join("|"),[t]),c=m.useRef(a);return m.useEffect(()=>{c.current=a},[a]),m.useEffect(()=>{if(!s)return;const d=e.current;if(!d||t.length===0||typeof IntersectionObserver>"u")return;const u=(f,b)=>{const h=c.current;return h?h(f,b,d):d.querySelector(`[data-spark-anchor="${Dh(f.id)}"]`)},p=[];if(t.forEach((f,b)=>{const h=u(f,b);h&&p.push({index:b,el:h})}),p.length===0)return;const x=new WeakMap,g=()=>{let f=p[0]?.index??0,b=-1;for(const{index:h,el:w}of p){const k=x.get(w)??0;k>b&&(b=k,f=h)}o(h=>h===f?h:f)},v=new IntersectionObserver(f=>{for(const b of f)x.set(b.target,b.intersectionRatio);g()},{root:d,threshold:[0,.25,.5,.75,1]});return p.forEach(f=>v.observe(f.el)),()=>v.disconnect()},[s,e,t,i]),r}function Dh(e){return typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(e):e.replace(/["\\]/g,"\\$&")}const Os="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",Ah="font-['Seti'] shrink-0 inline-flex items-center justify-center w-4 h-4 text-[16px] leading-[16px]",Gn={javascript:"",typescript:"",react:"",json:"",html:"",css:"",python:"",java:"",go:"",rust:"",php:"",ruby:"",vue:"",svelte:"",markdown:"",yaml:"",xml:"",shell:"",sass:"",settings:"",default:""},Es={javascript:"var(--color-yellow)",typescript:"var(--color-blue)",react:"var(--color-blue)",json:"var(--color-yellow)",html:"var(--color-blue)",css:"var(--color-blue)",python:"var(--color-blue)",java:"var(--color-error)",go:"var(--color-blue)",rust:"var(--color-lavender)",php:"var(--color-purple)",ruby:"var(--color-error)",vue:"var(--color-success)",svelte:"var(--color-error)",markdown:"var(--color-blue)",yaml:"var(--color-purple)",xml:"var(--color-orange)",shell:"var(--color-success)",sass:"var(--color-error)",settings:"var(--color-lavender)",default:"var(--color-lavender)"},Ht={js:"javascript",jsx:"react",ts:"typescript",tsx:"typescript",json:"json",html:"html",css:"css",scss:"sass",sass:"sass",less:"css",py:"python",java:"java",go:"go",rs:"rust",php:"php",rb:"ruby",vue:"vue",svelte:"svelte",md:"markdown",yml:"yaml",yaml:"yaml",xml:"xml",sh:"shell",bash:"shell",zsh:"shell",config:"settings",conf:"settings"};function kc(e,t){let a=null;if(t&&typeof t=="string"&&t.trim()){const s=t.lastIndexOf(".");if(s>0&&s<t.length-1){const r=t.substring(s+1).toLowerCase().trim();r&&Ht[r]&&(a=Ht[r])}}if(!a&&e&&typeof e=="string"&&e.trim()){const s=e.toLowerCase().trim();Ht[s]?a=Ht[s]:Gn[s]&&(a=s)}return a||"default"}function _h(e,t){const a=kc(e,t);return Gn[a]??Gn.default}function Oh(e,t){const a=kc(e,t);return Es[a]??Es.default}function jc({files:e=[],defaultExpanded:t=!0,className:a,headerIcon:s,acceptIcon:r,rejectIcon:o,getFileIcon:i}){const[c,d]=m.useState(null),u=n.jsx(Cr,{className:l(Os,"text-text-secondary")}),p="w-[var(--font-size-sm)] h-[var(--font-size-sm)]",x=n.jsx(be,{className:p}),g=n.jsx(Re,{className:p}),v="flex items-center justify-center shrink-0 rounded cursor-pointer transition-colors duration-200 text-text-secondary hover:text-text focus:outline-none focus-visible:ring-2 focus-visible:ring-primary";return n.jsx(Te,{headerIcon:s??u,headerTitle:n.jsxs("span",{className:"font-normal",children:[e.length," ",e.length===1?"File":"Files"]}),headerRight:n.jsxs("div",{className:"flex items-center gap-1.5",children:[n.jsx(W,{variant:"ghost",size:"sm",onClick:f=>f.stopPropagation(),children:"Undo All"}),n.jsx(W,{variant:"ghost",size:"sm",onClick:f=>f.stopPropagation(),children:"Keep All"}),n.jsx(W,{variant:"secondary",size:"sm",onClick:f=>f.stopPropagation(),children:"Review"})]}),defaultExpanded:t,contentPadding:"var(--spacing-1\\.5) var(--spacing-1) var(--spacing-1\\.5)",className:a,children:n.jsx("div",{className:"flex flex-col gap-0.5",children:e.map((f,b)=>{const h=c===b,w=f.additions!=null&&Number.isFinite(f.additions)?f.additions:null,k=f.deletions!=null&&Number.isFinite(f.deletions)?f.deletions:null;return n.jsxs("div",{className:l("flex items-center gap-1 px-1 py-1 rounded-sm cursor-pointer transition-colors duration-200 relative h-6",h?"bg-fill-secondary":"bg-transparent"),onMouseEnter:()=>d(b),onMouseLeave:()=>d(null),children:[i?n.jsx("span",{className:l("shrink-0",Os),children:i(f.fileType,f.filename)}):n.jsx("span",{className:l("shrink-0",Ah),style:{color:Oh(f.fileType,f.filename)},"aria-hidden":!0,children:_h(f.fileType,f.filename)}),n.jsx("span",{className:l("flex-1 text-xs font-medium truncate pr-12",h?"text-text":"text-text-tertiary"),children:f.filename}),n.jsxs("div",{className:l("absolute right-1 flex items-center gap-0.5 text-xs font-medium shrink-0 transition-opacity duration-200",h?"opacity-0 pointer-events-none":"opacity-100"),children:[w!=null&&n.jsxs("span",{className:"text-success",children:["+",w]}),k!=null&&n.jsxs("span",{className:"text-error",children:["-",k]})]}),n.jsxs("div",{className:l("flex items-center gap-0.5 shrink-0 absolute right-1 transition-opacity duration-200",h?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"),onClick:j=>j.stopPropagation(),children:[n.jsx("button",{type:"button",className:l(v,"h-6 min-w-6 [&_svg]:w-[var(--font-size-sm)] [&_svg]:h-[var(--font-size-sm)]"),title:"Reject","aria-label":"Reject",onClick:j=>j.stopPropagation(),children:o??g}),n.jsx("button",{type:"button",className:l(v,"h-6 min-w-6 [&_svg]:w-[var(--font-size-sm)] [&_svg]:h-[var(--font-size-sm)]"),title:"Accept","aria-label":"Accept",onClick:j=>j.stopPropagation(),children:r??x})]})]},b)})})})}jc.displayName="FileReviewPart";const Fs="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary",Vt="w-[var(--font-size-sm)] h-[var(--font-size-sm)]";function Nc(e){const t=N("requestChanges",Fs)??n.jsx(Cr,{className:Fs}),a=N("checkLine",Vt)??n.jsx(be,{className:Vt}),s=N("close",Vt)??n.jsx(Re,{className:Vt}),r=e.getFileIcon;return n.jsx(jc,{headerIcon:t,acceptIcon:a,rejectIcon:s,getFileIcon:r,...e})}Nc.displayName="FileReviewPart";const At="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",Eh=n.jsx(Sr,{className:l(At,"text-text-secondary")}),Fh=n.jsx(Ir,{className:l(At,"text-text-tertiary")}),$h=n.jsx(an,{className:l(At,"text-text-quaternary")}),Bh=n.jsx(Rr,{className:l(At,"text-text-tertiary")}),Hh=n.jsx(Tr,{className:l(At,"text-text")});function Vh(e,t,a){return t?a.loaderIcon??Hh:e.status==="completed"?a.completedIcon??$h:e.status==="skipped"||e.status==="cancelled"?a.skippedIcon??Bh:a.uncompletedIcon??Fh}function Cc({tasks:e=[],title:t="To-dos",currentTaskId:a,defaultExpanded:s=!0,className:r,headerIcon:o,uncompletedIcon:i,completedIcon:c,skippedIcon:d,loaderIcon:u}){return n.jsx(Te,{headerIcon:o??Eh,headerTitle:n.jsx("span",{className:"text-left",children:t}),defaultExpanded:s,contentPadding:"var(--spacing-1\\.5) var(--spacing-2)",showExpandAllBar:!0,maxHeight:124,className:r,children:n.jsx("div",{className:"flex flex-col gap-2",children:e.map((p,x)=>{const g=p.id??x,v=a!=null&&a===String(g),f=Vh(p,v,{loaderIcon:u,completedIcon:c,skippedIcon:d,uncompletedIcon:i});return n.jsxs("div",{className:"flex flex-row gap-2 items-start",children:[n.jsx("div",{className:"flex items-center justify-center shrink-0 pt-0.5 [&>svg]:w-[var(--font-size-sm)] [&>svg]:h-[var(--font-size-sm)]",children:f}),n.jsx("span",{className:l("text-xs leading-xs flex-1 text-left",v?"text-text":p.status==="completed"?"text-text-quaternary line-through":"text-text-tertiary"),children:p.text})]},g)})})})}Cc.displayName="TaskPart";const Tn="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",$s=`${Tn} text-text-secondary`,Gt=`${Tn} text-text-tertiary`,Bs=`${Tn} text-text-quaternary`,Hs=`${Tn} text-text`;function Sc(e){const t=N("catalog",$s)??n.jsx(Sr,{className:$s}),a=N("circle",Gt)??n.jsx(Ir,{className:Gt}),s=N("checkboxCircle",Bs)??n.jsx(an,{className:Bs}),r=N("indeterminateCircle",Gt)??n.jsx(Rr,{className:Gt}),o=N("arrowRightCircleFill",Hs)??n.jsx(Tr,{className:Hs});return n.jsx(Cc,{headerIcon:t,uncompletedIcon:a,completedIcon:s,skippedIcon:r,loaderIcon:o,...e})}Sc.displayName="TaskPart";const rs="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",Gh=n.jsx(sn,{className:`${rs} text-text-secondary`}),qh=n.jsx(Mr,{className:rs}),Wh=n.jsx(be,{className:l(rs,"text-success")});function Ic({title:e="Plan",description:t,content:a,viewText:s="View",buildText:r="Build ⌘⏎",builtText:o="Built",isBuilt:i=!1,isGenerating:c=!1,onView:d,onBuild:u,onDownload:p,defaultExpanded:x=!0,contentMaxHeight:g,collapsible:v=!1,className:f,headerIcon:b,downloadIcon:h,builtIcon:w}){const k=a.split(`
|
|
258
|
-
`),j
|
|
259
|
-
`):
|
|
254
|
+
`})]})}function pr(e){return a.jsx(ar,{loader:a.jsx(Gg,{}),...e})}pr.displayName="ThinkingIndicator";function Lc(e){return a.jsx(jg,{...e,thinkingIndicator:e.thinkingIndicator??a.jsx(pr,{text:"Spark is thinking..."})})}Lc.displayName="Response";const Be=Lc;Be.Root=Sa;Be.Thinking=cr;Be.Steps=dr;Be.Step=ur;Be.Content=mr;Be.ImageGenerating=za;Be.DefaultLayout=Pa;const Wg=Be,Dc=m.forwardRef(({children:e,className:t,maxWidth:n="752px",...r},s)=>{const o=i("w-full","bg-sage-bg","rounded-lg","p-3","text-sm leading-sm","font-normal","text-text",t);return a.jsx("div",{ref:s,className:o,style:{maxWidth:typeof n=="number"?`${n}px`:n},...r,children:e})});Dc.displayName="UserMessage";const Zr="w-5 h-5 text-text-secondary",Ac=m.forwardRef(({filename:e,iconFilename:t,size:n,icon:r,getFileIcon:s,onClick:o,className:l,...c},d)=>{const p=r??(s?s(t??e,Zr):a.jsx(mn,{className:Zr}));return a.jsxs("div",{ref:d,role:o?"button":void 0,tabIndex:o?0:void 0,onClick:o,onKeyDown:o?f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),o())}:void 0,className:i("flex flex-row items-center gap-4 w-full max-w-96","py-5 px-5 rounded-lg","bg-bg-base border border-border-tertiary","text-sm leading-sm","transition-colors cursor-pointer hover:border-border-secondary",l),...c,children:[a.jsx("div",{className:i("flex items-center justify-center w-10 h-10 shrink-0 rounded-md","bg-fill-tertiary"),children:p}),a.jsxs("div",{className:"flex flex-row items-center gap-3 min-w-0",children:[a.jsx("span",{className:"font-medium text-text truncate",children:e}),n!=null&&n!==""&&a.jsxs("span",{className:"shrink-0 text-text-tertiary",children:["(",n,")"]})]})]})});Ac.displayName="FileCard";function qg({className:e}){return a.jsxs("svg",{className:e,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[a.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),a.jsx("polyline",{points:"14 2 14 8 20 8"}),a.jsx("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),a.jsx("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),a.jsx("polyline",{points:"10 9 9 9 8 9"})]})}function _c(e,t){return a.jsx(qg,{className:t})}const Fc=m.forwardRef((e,t)=>{const{getFileIcon:n}=It(),r=n??((s,o)=>_c(s,o));return a.jsx(Ac,{ref:t,getFileIcon:r,...e})});Fc.displayName="FileCard";const Xr="h-3.5 w-3.5 shrink-0 text-current",Oc=m.forwardRef(({filename:e,iconFilename:t,onRemove:n,icon:r,getFileIcon:s,className:o,...l},c)=>{const u=r??(s?s(t??e,Xr):a.jsx(mn,{className:Xr})),{color:p,...f}=l;return a.jsx(An,{ref:c,appearance:"filled",color:"mauve",closable:typeof n=="function",onClose:n,closeAriaLabel:"移除",className:o,...f,children:a.jsxs("span",{className:"inline-flex items-center gap-1.5 shrink-0",children:[u,e]})})});Oc.displayName="FileAttachment";const Ec=m.forwardRef((e,t)=>{const{getFileIcon:n}=It(),r=n??((s,o)=>_c(s,o));return a.jsx(Oc,{ref:t,getFileIcon:r,...e})});Ec.displayName="FileAttachment";const Ug={sm:"w-12 h-12",md:"w-16 h-16",lg:"w-20 h-20"},Qg="max-w-[90vw] max-h-[90vh] object-contain",Yg="h-2.5 w-2.5 text-text-secondary",Kg="h-4 w-4 text-text-secondary",Vc=m.forwardRef(({src:e,alt:t="",onRemove:n,previewable:r=!0,onClick:s,size:o="sm",className:l,closeIcon:c,closeLargeIcon:d,...u},p)=>{const[f,b]=m.useState(!1),w=c??a.jsx(Me,{className:Yg}),h=d??a.jsx(Ds,{className:Kg}),y=typeof n=="function",x=m.useCallback(()=>{r&&b(!0)},[r]),k=m.useCallback(()=>b(!1),[]),j=m.useCallback(C=>{s?.(C),!C.defaultPrevented&&r&&x()},[s,r,x]),v=m.useCallback(C=>{C.stopPropagation(),n?.(C)},[n]);m.useEffect(()=>{if(!f)return;const C=z=>{z.key==="Escape"&&k()};return window.addEventListener("keydown",C),()=>window.removeEventListener("keydown",C)},[f,k]);const N=f&&typeof document<"u"?fs.createPortal(a.jsxs("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center bg-bg-mask",role:"dialog","aria-modal":"true","aria-label":"图片预览",onClick:C=>{C.target===C.currentTarget&&k()},onKeyDown:C=>C.key==="Escape"&&k(),children:[a.jsx("img",{src:e,alt:t,className:i("rounded-lg shadow-xl",Qg),onClick:C=>C.stopPropagation(),draggable:!1}),a.jsx(Re,{variant:"tertiary",size:"md",rounded:"pill",icon:h,onClick:k,"aria-label":"关闭预览",className:"absolute top-4 right-4 bg-bg-base border border-border-tertiary shadow-sm"})]}),document.body):null;return a.jsxs(a.Fragment,{children:[a.jsxs("div",{ref:p,role:r?"button":void 0,tabIndex:r?0:void 0,className:i("relative group shrink-0",r&&"cursor-pointer",l),onClick:j,onKeyDown:r?C=>{(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),x())}:void 0,...u,children:[a.jsx("img",{src:e,alt:t,className:i("rounded-lg object-cover border border-border-tertiary",Ug[o]),draggable:!1}),y&&a.jsx("button",{type:"button",onClick:v,"aria-label":"移除",className:"absolute -top-0.5 -right-0.5 flex h-4 w-4 cursor-pointer items-center justify-center rounded-full bg-bg-base border border-border-tertiary shadow-sm opacity-0 group-hover:opacity-100 transition-opacity hover:bg-fill-secondary",children:w})]}),N]})});Vc.displayName="ImageAttachment";const Zg="h-2.5 w-2.5 text-text-secondary",Xg="h-4 w-4 text-text-secondary",$c=m.forwardRef((e,t)=>{const n=I("close",Zg),r=I("closeLarge",Xg);return a.jsx(Vc,{ref:t,closeIcon:n,closeLargeIcon:r,...e})});$c.displayName="ImageAttachment";const Bc="w-3.5 h-3.5 text-text-tertiary",Hc="w-3.5 h-3.5 transition-transform duration-200 ease-in-out";function Gc(e){const t=I("eye",Bc),n=I("arrowRight",Hc);return a.jsx(Ra,{eyeIcon:t,arrowRightIcon:n,...e})}Gc.displayName="ReasoningStepRoot";function Wc(e){const t=I("eye",Bc),n=I("arrowRight",Hc);return a.jsx(da,{eyeIcon:t,arrowRightIcon:n,...e})}Wc.displayName="ReasoningStep";const Vt=Wc;Vt.Root=Gc;Vt.Header=Ma;Vt.Details=Ta;Vt.DetailRow=or;const Jg=Vt,fr="size-[1em] shrink-0",e1=`${fr} text-text-tertiary`,t1=`${fr} text-success`,a1=`${fr} text-text-tertiary`,n1="w-3.5 h-3.5 text-text-tertiary transition-all duration-200",qc=m.memo(function({toolName:t,params:n,status:r,response:s,defaultExpanded:o=!1,statusText:l,className:c,timeIcon:d,checkboxCircleIcon:u,closeCircleIcon:p,arrowDownIcon:f,arrowRightIcon:b,runningText:w="Running",ranText:h="Ran",failedText:y="Failed",responseLabel:x="Response"}){const[k,j]=m.useState(o),v=s!=null&&s.length>0,N=r==="running",C=r==="success",z=r==="error",S=l!==void 0?l:N?w:C?h:y,_=S!=="",se=d??a.jsx(Vs,{className:e1}),F=u??a.jsx(fa,{className:t1}),Q=p??a.jsx($s,{className:a1}),le=f??b??a.jsx(ye,{className:n1});return a.jsxs("div",{className:i("flex flex-col",c),children:[a.jsxs("div",{onClick:()=>v&&!N&&j(!k),className:i("group flex items-center gap-1.5 min-h-5",v&&!N&&"cursor-pointer hover:opacity-80 transition-opacity"),children:[a.jsxs("div",{className:"shrink-0 flex items-center justify-center text-xs",children:[N&&se,C&&F,z&&Q]}),_&&a.jsx("span",{className:"text-xs leading-xs text-text-tertiary shrink-0",children:S}),a.jsx("span",{className:"text-xs leading-xs text-text-secondary shrink-0",children:t}),n!=null&&n!==""&&a.jsx("span",{className:"text-xs leading-xs text-text-tertiary min-w-0 shrink truncate",title:n,children:n}),v&&!N&&a.jsx("div",{className:i("shrink-0 inline-flex items-center justify-center","opacity-0 group-hover:opacity-100",k&&"!opacity-100",k?"rotate-180":"rotate-0"),children:le})]}),v&&k&&a.jsxs("div",{className:"mt-1 ml-4.5 rounded-md border border-border-tertiary bg-bg-base overflow-hidden font-mono text-xs leading-xs",children:[a.jsx("div",{className:"text-text-tertiary px-2 pt-1 pb-0 leading-xs",children:x}),a.jsx(ke,{scrollbarVisibility:"auto",maxHeight:208,className:"px-2 pb-1 leading-xs",children:a.jsx("pre",{className:i("whitespace-pre-wrap break-words leading-xs",z?"text-error":"text-text-tertiary"),children:s})})]})]})});qc.displayName="ToolInvocationCard";const r1="size-[1em] text-text-tertiary",s1="size-[1em] text-success",o1="size-[1em] text-text-tertiary",i1="w-3.5 h-3.5 text-text-tertiary transition-all duration-200",Uc=m.memo(function(t){const{t:n}=hs.useTranslation(),r=I("time",r1),s=I("checkboxCircle",s1),o=I("closeCircle",o1),l=I("arrowDownS",i1);return a.jsx(qc,{timeIcon:r,checkboxCircleIcon:s,closeCircleIcon:o,arrowDownIcon:l,runningText:n("tools.status.running","Running"),ranText:n("tools.status.ran","Ran"),failedText:n("tools.status.failed","Failed"),...t})});Uc.displayName="ToolInvocationCard";const l1=80;function Jr(e){if(!e)return{};const{label:t,...n}=e;return n}const c1="Permission required",d1="This action requires your permission.",u1="Expand",m1="Collapse",p1=", ",Qc=m.forwardRef(({title:e,description:t,command:n,commandIntent:r,isLoadingIntent:s=!1,onClose:o,actions:l,className:c,closeIcon:d,warningIcon:u,expandLabel:p=u1,collapseLabel:f=m1,commaLabel:b=p1,...w},h)=>{const y=e??c1,x=t??d1,k=n.length>l1,[j,v]=m.useState(!k),N=d??a.jsx(Me,{className:"h-3.5 w-3.5"}),C=u??a.jsx(St,{className:"h-4 w-4"});return a.jsxs("div",{ref:h,className:i("relative rounded-lg border border-border-tertiary bg-bg-base p-3",c),...w,children:[o&&a.jsx("button",{type:"button",onClick:o,className:"absolute top-3 right-3 flex h-4 w-4 cursor-pointer items-center justify-center text-text-secondary transition-colors duration-200 hover:text-text","aria-label":"Close",children:N}),a.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[a.jsx("div",{className:"flex h-4 w-4 shrink-0 items-center justify-center text-warning",children:C}),a.jsx("h3",{className:"min-w-0 flex-1 text-base leading-base font-semibold text-text",children:y})]}),a.jsx("p",{className:"mb-2 ml-6 text-xs leading-xs text-text-tertiary",children:s?a.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[a.jsx("span",{className:"inline-block h-3 w-3 animate-spin rounded-full border-2 border-text-tertiary border-t-transparent"}),a.jsx("span",{children:x})]}):a.jsxs(a.Fragment,{children:[x,r&&a.jsxs("span",{children:[b,r]})]})}),a.jsx("div",{className:"mb-4 ml-6",children:a.jsxs("div",{className:"rounded p-2 bg-fill-tertiary",children:[j||!k?a.jsx("div",{title:n,children:a.jsx(ke,{scrollbarVisibility:"auto",maxHeight:240,className:"text-xs leading-xs font-medium text-text break-all",style:{fontFamily:"Fira Code, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace"},children:n})}):a.jsx("div",{className:"text-xs leading-xs font-medium text-text break-all line-clamp-2 overflow-hidden",style:{fontFamily:"Fira Code, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace"},title:n,children:n}),k&&a.jsx("button",{type:"button",onClick:()=>v(!j),className:"mt-1 flex items-center gap-1 text-xs leading-xs text-text-tertiary hover:text-text transition-colors",children:j?f:p})]})}),a.jsxs("div",{className:"flex items-center justify-end gap-2",children:[l?.deny&&a.jsx(G,{variant:"ghost",...Jr(l.deny),children:l.deny.label}),l?.allowOnce&&a.jsx("button",{type:"button",className:i("rounded-full inline-flex items-center justify-center","px-3 py-1 text-sm leading-sm font-medium","text-text-on-primary bg-error","cursor-pointer hover:opacity-90 active:opacity-95 transition-opacity","disabled:opacity-50 disabled:cursor-not-allowed"),...Jr(l.allowOnce),children:l.allowOnce.label})]})]})});Qc.displayName="PermissionCard";const Yc=m.forwardRef((e,t)=>{const{t:n}=hs.useTranslation(),r=I("close","h-3.5 w-3.5"),s=I("warning","h-4 w-4");return a.jsx(Qc,{ref:t,...e,closeIcon:r,warningIcon:s,title:e.title??n("permission.title"),description:e.description??n("permission.description.default",{toolName:"Tool"}),expandLabel:n("permission.expand"),collapseLabel:n("permission.collapse"),commaLabel:n("common.comma")})});Yc.displayName="PermissionCard";const f1="h-5 w-5 text-text-on-primary";function Kc(e){const t=I("sparkling",f1);return a.jsx(lr,{sparklingIcon:t,...e})}Kc.displayName="ImageGenerating";const Zc=m.memo(function({children:t,className:n="",gridClassName:r="",isGenerating:s=!1,maxVisibleWhenGenerating:o=6,formatRemaining:l=c=>`+${c}`}){const c=m.Children.toArray(t),d=c.length,u=s&&d>o,p=u?o:d,f=d-o+1,w=c.slice(0,p).map((h,y)=>u&&y===p-1&&m.isValidElement(h)?m.cloneElement(h,{showOverlay:!0,overlayText:l(f)}):h);return a.jsx("div",{className:i("mt-5 mb-2",n),children:a.jsx("div",{className:i("flex flex-wrap gap-3",r),children:w})})});Zc.displayName="GeneratedImagesGrid";const x1={multiSelect:"Multi-select",singleSelect:"Single-select",questionHeader:"Question",skipAll:"Skip All",continue:"Continue",submit:"Submit",sending:"Sending...",customInputPlaceholder:"Other (please specify)",recommend:"Recommend"},h1="[No preference]",xr=m.createContext(null);xr.displayName="UserQuestionContext";function $t(){const e=m.useContext(xr);if(!e)throw new Error("UserQuestion compound components must be used within UserQuestion.Root");return e}const g1=a.jsx(Es,{className:"w-4 h-4 shrink-0 text-text-tertiary"}),b1=a.jsx(un,{}),y1=a.jsx(ye,{}),v1=a.jsx(pn,{className:"w-4 h-4 mr-1"}),La=m.forwardRef(function({questions:t,resetKey:n,onAnswer:r,onSkip:s,hasCustomText:o=!1,labels:l,chat4Icon:c=g1,arrowUpSIcon:d=b1,arrowDownSIcon:u=y1,sparklingIcon:p=v1,children:f},b){const w={...x1,...l},[h,y]=m.useState(0),[x,k]=m.useState({}),[j,v]=m.useState({}),[N,C]=m.useState(0),[z,L]=m.useState(!1),[S,_]=m.useState(void 0),se=m.useRef(n),F=m.useRef(null),Q=m.useRef(new Map),le=m.useRef(h),Y=m.useRef(!1),W=m.useRef(!1),ce=m.useRef(new Map),re=m.useRef(h),R=t[h],ae=R?.options||[],E=t.every(P=>(x[P.question]||[]).length>0||(j[P.question]?.trim()||"").length>0),pe=(x[R?.question]||[]).length>0||(j[R?.question]?.trim()||"").length>0,U=m.useCallback(P=>{const D=t[P];if(!D)return 0;const $=x[D.question]||[];if($.length===0)return 0;const te=(D.options||[]).findIndex(be=>$.includes(be.label));return te>=0?te:0},[t,x]);m.useImperativeHandle(b,()=>({getAnswers:()=>{const P={};for(const D of t){const $=x[D.question]||[],ee=j[D.question]?.trim(),te=[];$.length>0&&te.push(...$),ee&&te.push(ee),te.length>0&&(P[D.question]=te.join(", "))}return P}}),[x,j,t]),m.useEffect(()=>{se.current!==n&&(se.current=n,Q.current.clear(),ce.current.clear(),le.current=0,requestAnimationFrame(()=>{L(!1),y(0),k({}),v({}),C(0)}))},[n]),m.useEffect(()=>{if(re.current!==h){if(le.current=h,W.current){Y.current=!0;const P=Q.current.get(h),D=F.current;if(P&&D){const $=()=>{Y.current=!1,W.current=!1,D.removeEventListener("scrollend",$)};D.addEventListener("scrollend",$,{once:!0}),P.scrollIntoView({behavior:"smooth",block:"nearest"})}else Y.current=!1,W.current=!1}re.current=h}},[h]),m.useEffect(()=>{const P=setTimeout(()=>{let D=0;Q.current.forEach($=>{const ee=$.getBoundingClientRect().height;ee>D&&(D=ee)}),D>0&&_(D)},50);return()=>clearTimeout(P)},[t,n]),m.useEffect(()=>{const P=F.current;if(!P)return;const D=new IntersectionObserver($=>{if(Y.current)return;let ee=0,te=le.current;$.forEach(be=>{be.isIntersecting&&be.intersectionRatio>ee&&(ee=be.intersectionRatio,Q.current.forEach((yr,$a)=>{yr===be.target&&(te=$a)}))}),te!==le.current&&ee>.5&&(le.current=te,y(te),C(U(te)))},{root:P,threshold:[0,.25,.5,.75,1]});return Q.current.forEach($=>{$?.isConnected&&D.observe($)}),()=>D.disconnect()},[t,U]);const K=m.useCallback((P,D,$)=>{const te=t[$]?.multiSelect??!1,be=$===t.length-1,$a=(x[P]||[]).includes(D);k(Ce=>{const Ht=Ce[P]||[];return te?Ht.includes(D)?{...Ce,[P]:Ht.filter(Sd=>Sd!==D)}:{...Ce,[P]:[...Ht,D]}:Ht.includes(D)?{...Ce,[P]:[]}:{...Ce,[P]:[D]}}),te||v(Ce=>({...Ce,[P]:""})),!te&&!be&&!$a&&setTimeout(()=>{const Ce=$+1;W.current=!0,y(Ce),C(U(Ce))},150)},[t,x,U]),de=m.useCallback(()=>{if(h>0){const P=h-1;W.current=!0,y(P),C(U(P))}},[h,U]),Ne=m.useCallback(()=>{if(h<t.length-1){const P=h+1;W.current=!0,y(P),C(U(P))}},[h,t.length,U]),at=m.useCallback(()=>{if(!z)if(E){L(!0);const P={};for(const D of t){const $=x[D.question]||[],ee=j[D.question]?.trim(),te=[];$.length>0&&te.push(...$),ee&&te.push(ee),P[D.question]=te.join(", ")}r(P)}else{const P=ee=>(x[ee.question]||[]).length===0&&(j[ee.question]?.trim()||"").length===0,D=t.length;let $=-1;for(let ee=1;ee<D;ee++){const te=(h+ee)%D;if(P(t[te])){$=te;break}}$>=0&&(W.current=!0,y($),C(U($)))}},[z,E,t,x,j,h,r,U]),oe=m.useCallback(()=>{if(z)return;L(!0);const P={};for(const D of t){const $=x[D.question]||[],ee=j[D.question]?.trim();if($.length>0||!!ee){const be=[];$.length>0&&be.push(...$),ee&&be.push(ee),P[D.question]=be.join(", ")}else P[D.question]=h1}r(P),s()},[z,t,x,j,r,s]),nt=m.useCallback(()=>{if(z)return;const P={};for(const D of t){const $=D.options?.[0];$&&(P[D.question]=[$.label])}k(P),v({}),W.current=!0,y(t.length-1),C(0),setTimeout(()=>{F.current&&F.current.scrollTo({top:F.current.scrollHeight,behavior:"smooth"})},50)},[z,t]),Pe=m.useCallback(P=>{W.current=P},[]),Le={questions:t,labels:w,currentQuestionIndex:h,setCurrentQuestionIndex:y,answers:x,setAnswers:k,customInputs:j,setCustomInputs:v,focusedOptionIndex:N,setFocusedOptionIndex:C,isSubmitting:z,setIsSubmitting:L,maxQuestionHeight:S,scrollContainerRef:F,questionRefs:Q,setShouldScrollToQuestion:Pe,customInputRefs:ce,currentQuestion:R,currentOptions:ae,allQuestionsAnswered:E,currentQuestionHasAnswer:pe,getSelectedOptionIndex:U,handleOptionClick:K,handlePrevious:de,handleNext:Ne,handleContinue:at,handleSkip:oe,handleRecommend:nt,chat4Icon:c,arrowUpSIcon:d,arrowDownSIcon:u,sparklingIcon:p,hasCustomText:o};return t.length===0?null:a.jsx(xr.Provider,{value:Le,children:f})});La.displayName="UserQuestionRoot";function Da({className:e}){const t=$t();return a.jsxs("div",{className:i("flex items-center justify-between mb-2 -mt-2 px-3 pt-2 pb-2 rounded-t-xl bg-fill-tertiary",e),children:[a.jsxs("div",{className:"flex items-center gap-1.5",children:[t.chat4Icon,a.jsx("span",{className:"text-xs leading-xs text-text-tertiary",children:t.currentQuestion?.header||t.labels.questionHeader}),a.jsx("span",{className:"text-text-tertiary/50",children:"•"}),a.jsx("span",{className:"text-xs leading-xs text-text-tertiary",children:t.currentQuestion?.multiSelect?t.labels.multiSelect:t.labels.singleSelect})]}),t.questions.length>1&&a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx(Re,{size:"sm",variant:"ghost",onClick:t.handlePrevious,disabled:t.currentQuestionIndex===0,icon:t.arrowUpSIcon,"aria-label":"Previous question"}),a.jsxs("span",{className:"text-xs leading-xs text-text-tertiary px-1",children:[t.currentQuestionIndex+1," / ",t.questions.length]}),a.jsx(Re,{size:"sm",variant:"ghost",onClick:t.handleNext,disabled:t.currentQuestionIndex===t.questions.length-1,icon:t.arrowDownSIcon,"aria-label":"Next question"})]})]})}Da.displayName="UserQuestionHeader";function Aa({question:e,qIndex:t,className:n}){const r=$t(),s=e.options||[],[o,l]=m.useState(!1),c=!!r.customInputs[e.question]?.trim(),d=o||c,u=t===r.currentQuestionIndex;return a.jsxs("div",{ref:p=>{p?r.questionRefs.current.set(t,p):r.questionRefs.current.delete(t)},className:i("transition-opacity duration-200",u?"opacity-100":"opacity-40",n),children:[a.jsxs("div",{className:"flex items-start gap-3 pl-2 mb-3",children:[a.jsxs("div",{className:"flex-shrink-0 w-5 flex items-center justify-center text-sm leading-sm font-medium text-text-tertiary",children:[t+1,"."]}),a.jsx("div",{className:"text-sm leading-sm font-medium text-text min-w-0 flex-1",children:e.question})]}),a.jsx(hn,{items:s.map(p=>({id:p.label,label:p.label,description:p.description})),selectedIds:r.answers[e.question]?.map(p=>p)||[],focusedId:u?s[r.focusedOptionIndex]?.label:void 0,disabled:r.isSubmitting||!u,onItemClick:(p,f)=>{if(!u){r.setCurrentQuestionIndex(t),r.setFocusedOptionIndex(r.getSelectedOptionIndex(t));return}r.handleOptionClick(e.question,p.label,t),r.setFocusedOptionIndex(f)}}),e.allowCustomInput!==!1&&a.jsxs("div",{className:i("w-full flex gap-3 pl-2 mt-3 transition-colors",!u&&"opacity-40",r.isSubmitting&&"opacity-50"),children:[a.jsx("div",{className:i("flex-shrink-0 w-5 h-5 rounded-full flex items-center justify-center text-xs leading-xs font-medium transition-colors",u&&r.focusedOptionIndex===s.length||r.customInputs[e.question]?.trim()?"bg-primary-active text-text-on-primary":"bg-fill-secondary text-text-tertiary"),children:s.length+1}),a.jsxs("div",{className:"flex-1 min-w-0 flex flex-col",children:[a.jsx("div",{className:"h-5 flex items-center",children:a.jsx("input",{ref:p=>{p?r.customInputRefs.current.set(e.question,p):r.customInputRefs.current.delete(e.question)},type:"text",value:r.customInputs[e.question]||"",style:{outline:"none",outlineOffset:0,boxShadow:"none",border:"none"},onChange:p=>{const f=p.target.value;r.setCustomInputs(b=>({...b,[e.question]:f})),!e.multiSelect&&f.trim()&&r.setAnswers(b=>({...b,[e.question]:[]}))},onFocus:()=>{l(!0),u&&(r.setFocusedOptionIndex(s.length),e.multiSelect||r.setAnswers(p=>({...p,[e.question]:[]})))},onBlur:()=>l(!1),onKeyDown:p=>{if(p.key==="Enter"&&!p.shiftKey){p.preventDefault(),p.stopPropagation();const f=r.customInputs[e.question]?.trim();if((r.answers[e.question]||[]).length>0||!!f)if(r.allQuestionsAnswered)r.handleContinue();else if(t<r.questions.length-1){const h=t+1;r.setShouldScrollToQuestion(!0),r.setCurrentQuestionIndex(h),r.setFocusedOptionIndex(0)}else r.handleContinue()}},placeholder:r.labels.customInputPlaceholder,disabled:r.isSubmitting||!u,className:i("w-full h-full py-0 bg-transparent text-sm leading-sm font-medium text-text","placeholder:text-text-tertiary placeholder:font-normal","border-0 rounded-none outline-none outline-offset-0","focus:outline-none focus:outline-offset-0","focus-visible:outline-none focus-visible:outline-offset-0","ring-0 focus:ring-0 focus:ring-offset-0 focus-visible:ring-0 focus-visible:ring-offset-0 shadow-none","disabled:cursor-not-allowed")})}),a.jsx("div",{className:"mt-1.5 overflow-hidden origin-left transition-[width] duration-200 ease-out",style:{width:d?"100%":"0%"},"aria-hidden":!0,children:a.jsx("div",{className:"h-px bg-[var(--color-border-tertiary)]"})})]})]})]},e.question)}Aa.displayName="UserQuestionCard";function _a({className:e,children:t}){const n=$t(),{scrollContainerRef:r,maxQuestionHeight:s,questions:o}=n;return a.jsx(ke,{ref:r,scrollbarVisibility:"auto",maxHeight:s||void 0,className:i("scroll-smooth",e),children:a.jsx("div",{className:"space-y-4 px-3",children:t??o.map((l,c)=>a.jsx(Aa,{question:l,qIndex:c},l.question))})})}_a.displayName="UserQuestionCards";function Fa({className:e}){const t=$t();return a.jsxs("div",{className:i("flex items-center justify-between px-3 py-2",e),children:[a.jsxs(G,{variant:"ghost",size:"sm",onClick:t.handleRecommend,disabled:t.isSubmitting,children:[t.sparklingIcon,t.labels.recommend]}),a.jsxs("div",{className:"flex items-center gap-2",children:[!t.allQuestionsAnswered&&a.jsx(G,{variant:"ghost",size:"sm",onClick:t.handleSkip,disabled:t.isSubmitting,children:t.labels.skipAll}),a.jsx(G,{size:"sm",variant:"secondary",onClick:t.handleContinue,disabled:t.isSubmitting||t.hasCustomText||!t.allQuestionsAnswered,children:t.isSubmitting?t.labels.sending:a.jsxs(a.Fragment,{children:[t.allQuestionsAnswered?t.labels.submit:t.labels.continue,a.jsx("span",{className:"opacity-70",children:" ↵"})]})})]})]})}Fa.displayName="UserQuestionFooter";function Oa(){return a.jsxs(q.motion.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.2,ease:[.16,1,.3,1]},className:i("border rounded-t-xl border-b-0 border-border border-border-tertiary bg-bg-base overflow-hidden pt-2 pb-2"),children:[a.jsx(Da,{}),a.jsx(_a,{}),a.jsx(Fa,{})]})}Oa.displayName="UserQuestionDefaultLayout";function w1(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e?.getAttribute("contenteditable")==="true"}function k1({isSubmitting:e,currentQuestion:t,currentOptions:n,currentQuestionIndex:r,questions:s,focusedOptionIndex:o,setFocusedOptionIndex:l,currentQuestionHasAnswer:c,getSelectedOptionIndex:d,setShouldScrollToQuestion:u,setCurrentQuestionIndex:p,handleOptionClick:f,handleContinue:b}){m.useEffect(()=>{const w={ArrowDown(y){if(y.preventDefault(),o<n.length-1)l(o+1);else if(r<s.length-1){const x=r+1;u(!0),p(x),l(d(x))}},ArrowUp(y){if(y.preventDefault(),o>0)l(o-1);else if(r>0){const x=r-1;u(!0),p(x),l(d(x))}},Enter(y){y.preventDefault(),c?b():t&&n[o]&&f(t.question,n[o].label,r)}},h=y=>{if(e||w1(document.activeElement))return;const x=w[y.key];if(x){x(y);return}if(y.key>="1"&&y.key<="9"){const k=parseInt(y.key,10)-1;k>=0&&k<n.length&&t&&(y.preventDefault(),f(t.question,n[k].label,r),l(k))}};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[e,t,n,r,s.length,o,l,c,d,p,f,b,u])}function j1(){const e=$t();return k1({isSubmitting:e.isSubmitting,currentQuestion:e.currentQuestion,currentOptions:e.currentOptions,currentQuestionIndex:e.currentQuestionIndex,questions:e.questions,focusedOptionIndex:e.focusedOptionIndex,setFocusedOptionIndex:e.setFocusedOptionIndex,currentQuestionHasAnswer:e.currentQuestionHasAnswer,getSelectedOptionIndex:e.getSelectedOptionIndex,setShouldScrollToQuestion:e.setShouldScrollToQuestion,setCurrentQuestionIndex:e.setCurrentQuestionIndex,handleOptionClick:e.handleOptionClick,handleContinue:e.handleContinue}),null}const Xc=m.forwardRef(function(t,n){return a.jsxs(La,{ref:n,...t,children:[a.jsx(j1,{}),a.jsx(Oa,{})]})});Xc.displayName="UserQuestion";const et=Xc;et.Root=La;et.Header=Da;et.Card=Aa;et.Cards=_a;et.Footer=Fa;et.DefaultLayout=Oa;const N1=et;function C1(e,t){const n=I("chat4","w-4 h-4 shrink-0 text-text-tertiary"),r=I("arrowUpS"),s=I("arrowDownS"),o=I("sparkling","w-4 h-4 mr-1");return a.jsx(La,{ref:t,chat4Icon:n,arrowUpSIcon:r,arrowDownSIcon:s,sparklingIcon:o,...e})}const Jc=m.forwardRef(C1);Jc.displayName="UserQuestionRoot";const ed=m.forwardRef(function(t,n){const r=I("chat4","w-4 h-4 shrink-0 text-text-tertiary"),s=I("arrowUpS"),o=I("arrowDownS"),l=I("sparkling","w-4 h-4 mr-1");return a.jsx(N1,{ref:n,chat4Icon:r,arrowUpSIcon:s,arrowDownSIcon:o,sparklingIcon:l,...t})});ed.displayName="UserQuestion";const tt=ed;tt.Root=Jc;tt.Header=Da;tt.Card=Aa;tt.Cards=_a;tt.Footer=Fa;tt.DefaultLayout=Oa;const S1=tt,I1={answer:"Answer",answers:"Answers"},R1="w-4 h-4 shrink-0 text-text-tertiary",td=m.memo(function({answers:t,showHeader:n=!0,labels:r,className:s="",questionAnswerIcon:o}){const l={...I1,...r},c=Object.entries(t),d=o??a.jsx(im,{className:R1});return c.length===0?null:a.jsxs("div",{className:`rounded-lg border border-border-tertiary bg-bg-container overflow-hidden mx-2 ${s}`.trim(),children:[n&&a.jsxs("div",{className:"flex items-center gap-2 pl-3 pr-3 h-8 border-b border-border-tertiary",children:[d,a.jsx("span",{className:"text-xs leading-xs text-text-tertiary",children:c.length===1?l.answer:l.answers})]}),a.jsx("div",{className:"flex flex-col gap-3 p-3 text-xs leading-xs",children:c.map(([u,p],f)=>a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("span",{className:"font-medium text-text",children:u}),a.jsx("span",{className:"text-text-tertiary",children:p})]},f))})]})});td.displayName="UserQuestionAnswer";const M1="w-4 h-4 shrink-0 text-text-tertiary",ad=m.memo(function(t){const n=I("questionAnswer",M1);return a.jsx(td,{questionAnswerIcon:n,...t})});ad.displayName="UserQuestionAnswer";const T1={title:"In queue",sendNowTip:"Send now",removeTip:"Remove",fileLabel:"file",filesLabel:"files"},z1="w-3.5 h-3.5",P1="w-3.5 h-3.5",L1="w-4 h-4 text-text-tertiary transition-transform duration-200",D1=m.memo(function({item:t,onRemove:n,onSendNow:r,labels:s,arrowUpIcon:o,closeIcon:l}){const c=m.useCallback(f=>{f.stopPropagation(),n?.(t.id)},[t.id,n]),d=m.useCallback(f=>{f.stopPropagation(),r?.(t.id)},[t.id,r]),u=t.attachmentCount??0,p=u===1?s.fileLabel:s.filesLabel;return a.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 text-xs leading-xs hover:bg-fill-tertiary transition-colors cursor-default",children:[a.jsx("span",{className:"truncate flex-1 text-text",children:t.label}),u>0&&a.jsxs("span",{className:"shrink-0 text-xs leading-xs text-text-tertiary",children:["+",u," ",p]}),a.jsxs("div",{className:"flex items-center gap-0.5",children:[r&&a.jsx(Fe,{content:s.sendNowTip,side:"top",children:a.jsx(Re,{size:"sm",variant:"ghost",icon:o,"aria-label":s.sendNowTip,className:"shrink-0",onClick:d})}),n&&a.jsx(Fe,{content:s.removeTip,side:"top",children:a.jsx(Re,{size:"sm",variant:"ghost",icon:l,"aria-label":s.removeTip,className:"shrink-0",onClick:c})})]})]})}),nd=m.memo(function({items:t,onRemoveItem:n,onSendNow:r,isStreaming:s=!1,hasStatusCardBelow:o=!1,labels:l,defaultExpanded:c=!0,storageKey:d,arrowUpIcon:u,closeIcon:p,arrowDownSIcon:f}){const b={...T1,...l},w=u??a.jsx(un,{className:z1}),h=p??a.jsx(Me,{className:P1}),y=f??a.jsx(ye,{className:L1}),[x,k]=m.useState(()=>{if(typeof window>"u")return c;if(d){const v=localStorage.getItem(d);return v!==null?v==="true":c}return c});if(m.useEffect(()=>{d&&localStorage.setItem(d,String(x))},[d,x]),t.length===0)return null;const j=i("w-full overflow-hidden flex flex-col","border border-b-0 border-border border-border-tertiary bg-bg-base",!o&&"rounded-t-xl");return a.jsxs(q.motion.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.2,ease:[.16,1,.3,1]},className:j,children:[a.jsx("div",{role:"button",tabIndex:0,onClick:()=>k(!x),onKeyDown:v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),k(!x))},"aria-expanded":x,"aria-label":`${x?"Collapse":"Expand"} queue`,className:"flex items-center justify-between px-3 py-1 h-7 cursor-pointer bg-fill-tertiary hover:bg-fill-secondary transition-colors duration-150 focus:outline-none",children:a.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[a.jsx("span",{className:i("inline-flex items-center justify-center",!x&&"-rotate-90"),children:y}),a.jsx("span",{className:"text-xs leading-xs font-medium text-text-secondary",children:b.title})]})}),a.jsx(q.AnimatePresence,{initial:!1,children:x&&a.jsx(q.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:[.23,1,.32,1]},className:"overflow-hidden",children:a.jsx(ke,{scrollbarVisibility:"auto",maxHeight:208,className:"border-t border-border-tertiary scroll-smooth",children:t.map(v=>a.jsx(D1,{item:v,onRemove:n,onSendNow:r,labels:b,arrowUpIcon:w,closeIcon:h},v.id))})})})]})});nd.displayName="QueueIndicator";const A1="w-3.5 h-3.5",_1="w-3.5 h-3.5",F1="w-4 h-4 text-text-tertiary transition-transform duration-200",rd=m.memo(function(t){const n=I("arrowUp",A1),r=I("close",_1),s=I("arrowDownS",F1);return a.jsx(nd,{arrowUpIcon:n,closeIcon:r,arrowDownSIcon:s,...t})});rd.displayName="QueueIndicator";const O1={ariaLabel:"Conversation anchors",scrollTo:"Scroll to message"},sd=m.memo(function({scrollContainerRef:t,items:n,onSelect:r,activeIndex:s,variant:o="bar",minItems:l=3,hidden:c=!1,labels:d,className:u,getAnchorElement:p,renderAnchor:f}){const b={...O1,...d},w=od({scrollContainerRef:t,items:n,getAnchorElement:p,enabled:s===void 0&&!c}),h=s!==void 0?s:w,y=m.useCallback(k=>{const j=n[k];j&&r(k,j)},[n,r]),x=!c&&n.length>=l;return a.jsx(q.AnimatePresence,{mode:"wait",children:x&&a.jsx(q.motion.nav,{initial:{opacity:0,x:8},animate:{opacity:1,x:0,transition:{type:"spring",stiffness:500,damping:30,mass:.6}},exit:{opacity:0,x:8,transition:{duration:.15,ease:[.32,.72,0,1]}},className:i("absolute right-3 top-1/2 -translate-y-1/2 z-[40]","flex flex-col items-end gap-1.5 max-h-[80%] overflow-y-auto","scrollbar-hide",u),"aria-label":b.ariaLabel,children:n.map((k,j)=>a.jsx(E1,{item:k,index:j,isActive:j===h,variant:o,tooltipFallback:b.scrollTo,onClick:y,renderAnchor:f},k.id))},"spark-conversation-anchor-nav")})});sd.displayName="ConversationAnchorNav";const E1=m.memo(function({item:t,index:n,isActive:r,variant:s,tooltipFallback:o,onClick:l,renderAnchor:c}){const d=m.useCallback(()=>l(n),[l,n]),u=c?c({item:t,index:n,isActive:r,variant:s}):null;return a.jsx(Fe,{content:t.summary||o,side:"left",contentClassName:"max-w-xs",children:a.jsx("button",{type:"button",onClick:d,className:i("group/spark-anchor flex cursor-pointer border-0 bg-transparent outline-none","focus-visible:ring-2 focus-visible:ring-[var(--color-link)] focus-visible:rounded-full",s==="punch"?"h-7 w-7 shrink-0 items-center justify-center p-0":"items-center justify-end p-1"),"aria-label":`${o} ${n+1}`,"aria-current":r?"true":void 0,"data-spark-anchor-nav-item":t.id,children:u??a.jsx("span",{className:i("block shrink-0 origin-center",s==="punch"?i("rounded-full transition-transform duration-300 ease-out",r?"h-2 w-2 bg-[var(--color-link)] group-hover/spark-anchor:scale-125":i("h-1.5 w-1.5 border border-solid border-border-tertiary bg-transparent","group-hover/spark-anchor:scale-150 group-hover/spark-anchor:border-[var(--color-link)]")):i("rounded-full transition-all duration-300 ease-out h-0.5",r?"w-4 bg-text-quaternary":"w-2.5 bg-border-tertiary","group-hover/spark-anchor:w-6 group-hover/spark-anchor:bg-text-quaternary"))})})})},(e,t)=>e.isActive===t.isActive&&e.variant===t.variant&&e.index===t.index&&e.item.id===t.item.id&&e.item.summary===t.item.summary&&e.tooltipFallback===t.tooltipFallback&&e.onClick===t.onClick&&e.renderAnchor===t.renderAnchor);function od({scrollContainerRef:e,items:t,getAnchorElement:n,enabled:r=!0}){const[s,o]=m.useState(0),l=m.useMemo(()=>t.map(d=>d.id).join("|"),[t]),c=m.useRef(n);return m.useEffect(()=>{c.current=n},[n]),m.useEffect(()=>{if(!r)return;const d=e.current;if(!d||t.length===0||typeof IntersectionObserver>"u")return;const u=(h,y)=>{const x=c.current;return x?x(h,y,d):d.querySelector(`[data-spark-anchor="${V1(h.id)}"]`)},p=[];if(t.forEach((h,y)=>{const x=u(h,y);x&&p.push({index:y,el:x})}),p.length===0)return;const f=new WeakMap,b=()=>{let h=p[0]?.index??0,y=-1;for(const{index:x,el:k}of p){const j=f.get(k)??0;j>y&&(y=j,h=x)}o(x=>x===h?x:h)},w=new IntersectionObserver(h=>{for(const y of h)f.set(y.target,y.intersectionRatio);b()},{root:d,threshold:[0,.25,.5,.75,1]});return p.forEach(h=>w.observe(h.el)),()=>w.disconnect()},[r,e,t,l]),s}function V1(e){return typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(e):e.replace(/["\\]/g,"\\$&")}const es="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",$1="font-['Seti'] shrink-0 inline-flex items-center justify-center w-4 h-4 text-[16px] leading-[16px]",nn={javascript:"",typescript:"",react:"",json:"",html:"",css:"",python:"",java:"",go:"",rust:"",php:"",ruby:"",vue:"",svelte:"",markdown:"",yaml:"",xml:"",shell:"",sass:"",settings:"",default:""},ts={javascript:"var(--color-yellow)",typescript:"var(--color-blue)",react:"var(--color-blue)",json:"var(--color-yellow)",html:"var(--color-blue)",css:"var(--color-blue)",python:"var(--color-blue)",java:"var(--color-error)",go:"var(--color-blue)",rust:"var(--color-lavender)",php:"var(--color-purple)",ruby:"var(--color-error)",vue:"var(--color-success)",svelte:"var(--color-error)",markdown:"var(--color-blue)",yaml:"var(--color-purple)",xml:"var(--color-orange)",shell:"var(--color-success)",sass:"var(--color-error)",settings:"var(--color-lavender)",default:"var(--color-lavender)"},Kt={js:"javascript",jsx:"react",ts:"typescript",tsx:"typescript",json:"json",html:"html",css:"css",scss:"sass",sass:"sass",less:"css",py:"python",java:"java",go:"go",rs:"rust",php:"php",rb:"ruby",vue:"vue",svelte:"svelte",md:"markdown",yml:"yaml",yaml:"yaml",xml:"xml",sh:"shell",bash:"shell",zsh:"shell",config:"settings",conf:"settings"};function id(e,t){let n=null;if(t&&typeof t=="string"&&t.trim()){const r=t.lastIndexOf(".");if(r>0&&r<t.length-1){const s=t.substring(r+1).toLowerCase().trim();s&&Kt[s]&&(n=Kt[s])}}if(!n&&e&&typeof e=="string"&&e.trim()){const r=e.toLowerCase().trim();Kt[r]?n=Kt[r]:nn[r]&&(n=r)}return n||"default"}function B1(e,t){const n=id(e,t);return nn[n]??nn.default}function H1(e,t){const n=id(e,t);return ts[n]??ts.default}function ld({files:e=[],defaultExpanded:t=!0,className:n,headerIcon:r,acceptIcon:s,rejectIcon:o,getFileIcon:l}){const[c,d]=m.useState(null),u=a.jsx(Bs,{className:i(es,"text-text-secondary")}),p="w-[var(--font-size-sm)] h-[var(--font-size-sm)]",f=a.jsx(we,{className:p}),b=a.jsx(Me,{className:p}),w="flex items-center justify-center shrink-0 rounded cursor-pointer transition-colors duration-200 text-text-secondary hover:text-text focus:outline-none focus-visible:ring-2 focus-visible:ring-primary";return a.jsx(Te,{headerIcon:r??u,headerTitle:a.jsxs("span",{className:"font-normal",children:[e.length," ",e.length===1?"File":"Files"]}),headerRight:a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsx(G,{variant:"ghost",size:"sm",onClick:h=>h.stopPropagation(),children:"Undo All"}),a.jsx(G,{variant:"ghost",size:"sm",onClick:h=>h.stopPropagation(),children:"Keep All"}),a.jsx(G,{variant:"secondary",size:"sm",onClick:h=>h.stopPropagation(),children:"Review"})]}),defaultExpanded:t,contentPadding:"var(--spacing-1\\.5) var(--spacing-1) var(--spacing-1\\.5)",className:n,children:a.jsx("div",{className:"flex flex-col gap-0.5",children:e.map((h,y)=>{const x=c===y,k=h.additions!=null&&Number.isFinite(h.additions)?h.additions:null,j=h.deletions!=null&&Number.isFinite(h.deletions)?h.deletions:null;return a.jsxs("div",{className:i("flex items-center gap-1 px-1 py-1 rounded-sm cursor-pointer transition-colors duration-200 relative h-6",x?"bg-fill-secondary":"bg-transparent"),onMouseEnter:()=>d(y),onMouseLeave:()=>d(null),children:[l?a.jsx("span",{className:i("shrink-0",es),children:l(h.fileType,h.filename)}):a.jsx("span",{className:i("shrink-0",$1),style:{color:H1(h.fileType,h.filename)},"aria-hidden":!0,children:B1(h.fileType,h.filename)}),a.jsx("span",{className:i("flex-1 text-xs font-medium truncate pr-12",x?"text-text":"text-text-tertiary"),children:h.filename}),a.jsxs("div",{className:i("absolute right-1 flex items-center gap-0.5 text-xs font-medium shrink-0 transition-opacity duration-200",x?"opacity-0 pointer-events-none":"opacity-100"),children:[k!=null&&a.jsxs("span",{className:"text-success",children:["+",k]}),j!=null&&a.jsxs("span",{className:"text-error",children:["-",j]})]}),a.jsxs("div",{className:i("flex items-center gap-0.5 shrink-0 absolute right-1 transition-opacity duration-200",x?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"),onClick:v=>v.stopPropagation(),children:[a.jsx("button",{type:"button",className:i(w,"h-6 min-w-6 [&_svg]:w-[var(--font-size-sm)] [&_svg]:h-[var(--font-size-sm)]"),title:"Reject","aria-label":"Reject",onClick:v=>v.stopPropagation(),children:o??b}),a.jsx("button",{type:"button",className:i(w,"h-6 min-w-6 [&_svg]:w-[var(--font-size-sm)] [&_svg]:h-[var(--font-size-sm)]"),title:"Accept","aria-label":"Accept",onClick:v=>v.stopPropagation(),children:s??f})]})]},y)})})})}ld.displayName="FileReviewPart";const as="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary",Zt="w-[var(--font-size-sm)] h-[var(--font-size-sm)]";function cd(e){const t=I("requestChanges",as)??a.jsx(Bs,{className:as}),n=I("checkLine",Zt)??a.jsx(we,{className:Zt}),r=I("close",Zt)??a.jsx(Me,{className:Zt}),s=e.getFileIcon;return a.jsx(ld,{headerIcon:t,acceptIcon:n,rejectIcon:r,getFileIcon:s,...e})}cd.displayName="FileReviewPart";const Bt="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",G1=a.jsx(Hs,{className:i(Bt,"text-text-secondary")}),W1=a.jsx(Gs,{className:i(Bt,"text-text-tertiary")}),q1=a.jsx(fa,{className:i(Bt,"text-text-quaternary")}),U1=a.jsx(Ws,{className:i(Bt,"text-text-tertiary")}),Q1=a.jsx(qs,{className:i(Bt,"text-text")});function Y1(e,t,n){return t?n.loaderIcon??Q1:e.status==="completed"?n.completedIcon??q1:e.status==="skipped"||e.status==="cancelled"?n.skippedIcon??U1:n.uncompletedIcon??W1}function dd({tasks:e=[],title:t="To-dos",currentTaskId:n,defaultExpanded:r=!0,className:s,headerIcon:o,uncompletedIcon:l,completedIcon:c,skippedIcon:d,loaderIcon:u}){return a.jsx(Te,{headerIcon:o??G1,headerTitle:a.jsx("span",{className:"text-left",children:t}),defaultExpanded:r,contentPadding:"var(--spacing-1\\.5) var(--spacing-2)",showExpandAllBar:!0,maxHeight:124,className:s,children:a.jsx("div",{className:"flex flex-col gap-2",children:e.map((p,f)=>{const b=p.id??f,w=n!=null&&n===String(b),h=Y1(p,w,{loaderIcon:u,completedIcon:c,skippedIcon:d,uncompletedIcon:l});return a.jsxs("div",{className:"flex flex-row gap-2 items-start",children:[a.jsx("div",{className:"flex items-center justify-center shrink-0 pt-0.5 [&>svg]:w-[var(--font-size-sm)] [&>svg]:h-[var(--font-size-sm)]",children:h}),a.jsx("span",{className:i("text-xs leading-xs flex-1 text-left",w?"text-text":p.status==="completed"?"text-text-quaternary line-through":"text-text-tertiary"),children:p.text})]},b)})})})}dd.displayName="TaskPart";const Ea="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",ns=`${Ea} text-text-secondary`,Xt=`${Ea} text-text-tertiary`,rs=`${Ea} text-text-quaternary`,ss=`${Ea} text-text`;function ud(e){const t=I("catalog",ns)??a.jsx(Hs,{className:ns}),n=I("circle",Xt)??a.jsx(Gs,{className:Xt}),r=I("checkboxCircle",rs)??a.jsx(fa,{className:rs}),s=I("indeterminateCircle",Xt)??a.jsx(Ws,{className:Xt}),o=I("arrowRightCircleFill",ss)??a.jsx(qs,{className:ss});return a.jsx(dd,{headerIcon:t,uncompletedIcon:n,completedIcon:r,skippedIcon:s,loaderIcon:o,...e})}ud.displayName="TaskPart";const hr="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",K1=a.jsx(xa,{className:`${hr} text-text-secondary`}),Z1=a.jsx(Us,{className:hr}),X1=a.jsx(we,{className:i(hr,"text-success")});function md({title:e="Plan",description:t,content:n,viewText:r="View",buildText:s="Build ⌘⏎",builtText:o="Built",isBuilt:l=!1,isGenerating:c=!1,onView:d,onBuild:u,onDownload:p,defaultExpanded:f=!0,contentMaxHeight:b,collapsible:w=!1,className:h,headerIcon:y,downloadIcon:x,builtIcon:k}){const j=n.split(`
|
|
255
|
+
`),v=j.length>1&&j[1].trim()==="",N=v?j[0]:null,C=v?j.slice(2).join(`
|
|
256
|
+
`):n;return a.jsx(Te,{headerIcon:y??K1,headerTitle:a.jsx("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:c?a.jsx("span",{className:"text-left",children:"Planning..."}):a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"text-left",children:e}),t!=null&&a.jsx("span",{className:"text-left flex-1 truncate text-text-quaternary",children:t})]})}),titleShimmer:c,headerRight:!c&&p?a.jsx(Re,{variant:"iconOnly",size:"sm",icon:x??Z1,onClick:z=>{z.stopPropagation(),p?.()},title:"Download as Markdown","aria-label":"Download",className:"!min-h-0 !min-w-0 h-[var(--font-size-sm)] w-[var(--font-size-sm)] text-text-secondary hover:text-text [&_svg]:w-[var(--font-size-sm)] [&_svg]:h-[var(--font-size-sm)]"}):void 0,contentPadding:"var(--spacing-1\\.5) var(--spacing-2)",defaultExpanded:f,contentMaxHeight:b,collapsible:w,footer:c?void 0:a.jsxs(a.Fragment,{children:[a.jsx(G,{variant:"text",size:"sm",onClick:d,children:r}),a.jsx("div",{className:"flex-1"}),l?a.jsxs("div",{className:"flex items-center gap-1 text-xs text-success [&>svg]:w-[var(--font-size-sm)] [&>svg]:h-[var(--font-size-sm)]",children:[a.jsx("span",{children:o}),k??X1]}):a.jsx(G,{variant:"secondary",size:"sm",onClick:u,children:s})]}),className:h,children:c?a.jsxs("div",{className:"flex flex-col gap-1 relative overflow-hidden min-h-[var(--spacing-14)]",children:[a.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:"radial-gradient(circle, var(--color-text-tertiary) 1px, transparent 1px)",backgroundSize:"16px 16px",backgroundRepeat:"repeat",opacity:.25}}),a.jsx("div",{className:"absolute inset-0 pointer-events-none plan-part-shimmer-layer",style:{backgroundImage:"radial-gradient(circle, var(--color-text-tertiary) 1px, transparent 1px)",backgroundSize:"16px 16px",backgroundRepeat:"repeat",maskImage:"linear-gradient(to bottom, transparent 0%, var(--color-mask-shimmer-weak) 15%, var(--color-mask-shimmer-strong) 30%, var(--color-mask-shimmer-full) 50%, var(--color-mask-shimmer-strong) 70%, var(--color-mask-shimmer-weak) 85%, transparent 100%)",maskSize:"100% 64px",WebkitMaskImage:"linear-gradient(to bottom, transparent 0%, var(--color-mask-shimmer-weak) 15%, var(--color-mask-shimmer-strong) 30%, var(--color-mask-shimmer-full) 50%, var(--color-mask-shimmer-strong) 70%, var(--color-mask-shimmer-weak) 85%, transparent 100%)",WebkitMaskSize:"100% 64px"}}),a.jsx("style",{children:`
|
|
260
257
|
@keyframes plan-part-shimmer {
|
|
261
258
|
0% { mask-position: 0 -64px; -webkit-mask-position: 0 -64px; }
|
|
262
259
|
100% { mask-position: 0 calc(100% + 64px); -webkit-mask-position: 0 calc(100% + 64px); }
|
|
@@ -264,6 +261,6 @@ If you want, I can generate a **preview report** first (top 50 renames + album s
|
|
|
264
261
|
.plan-part-shimmer-layer {
|
|
265
262
|
animation: plan-part-shimmer 3s linear infinite;
|
|
266
263
|
}
|
|
267
|
-
`})]}):
|
|
268
|
-
`);
|
|
269
|
-
`).length:r??null,[t,s,r]),g=e?.toLowerCase(),v=o?n.jsx(H.motion.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},children:n.jsx(br,{className:l(Ws,"text-text-secondary")})}):u?u(g,p):n.jsx("span",{className:l(Pc(g,p)),children:n.jsx(Kn,{className:Ws})}),f=s&&x!=null?n.jsxs("span",{className:l("font-normal text-xs leading-xs",s==="add"?"text-success":"text-error"),children:[s==="add"?"+":"-",x]}):null,b=l("overflow-x-auto text-left scrollbar-auto",s==="add"&&"bg-success-bg border-l-[3px] border-l-[var(--color-success-border)] -ml-5 pl-5",s==="remove"&&"bg-error-bg border-l-[3px] border-l-[var(--color-error-border)] -ml-5 pl-5"),h=(e??"text").toLowerCase();return n.jsx(Te,{headerIcon:d??v,headerTitle:n.jsx("span",{className:"font-normal",children:p}),headerRight:f,defaultExpanded:i,contentPadding:"var(--spacing-2) 0 var(--spacing-2) var(--spacing-5)",titleShimmer:o,className:c,children:n.jsx("div",{className:b,children:n.jsx(ld.Highlight,{theme:e1,code:t,language:h,children:({className:w,style:k,tokens:j,getLineProps:I,getTokenProps:C})=>n.jsx("pre",{className:l(w,"m-0 text-left bg-transparent font-mono text-xs font-normal leading-xs whitespace-pre"),style:k,children:n.jsx("code",{className:"text-left block",children:j.map((L,z)=>n.jsx("div",{...I({line:L}),children:L.map((S,O)=>n.jsx("span",{...C({token:S})},O))},z))})})})})})}zc.displayName="CodeBlockPart";const a1="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0";function Lc(e){const{getFileIcon:t}=jt(),a=e.getFileIcon??(t?(s,r)=>t(r??"",a1):void 0);return n.jsx(zc,{getFileIcon:a,...e})}Lc.displayName="CodeBlockPart";const Dc="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary",s1=n.jsx(zr,{className:Dc}),r1=n.jsx(Lr,{className:Dc});function Ac({command:e,output:t,autoRanCommand:a,className:s,headerIcon:r,externalLinkIcon:o}){const i=a??(e!=null?`Auto-Ran command: ${e}`:"Terminal");return n.jsx(Te,{headerIcon:r??s1,headerTitle:n.jsx("span",{className:"font-normal",children:i}),headerRight:n.jsx(Ie,{variant:"iconOnly",size:"sm",icon:o??r1,"aria-label":"Open in terminal",className:"!min-h-0 !min-w-0 h-[var(--font-size-sm)] w-[var(--font-size-sm)] text-text-secondary hover:text-text [&_svg]:w-[var(--font-size-sm)] [&_svg]:h-[var(--font-size-sm)]"}),contentPadding:"0",className:s,children:n.jsxs("div",{className:"flex flex-col gap-0",children:[e!=null&&e!==""&&n.jsx("div",{className:"px-2 py-1.5",children:n.jsxs("div",{className:"flex items-start gap-2",children:[n.jsx("span",{className:"font-mono text-xs text-text shrink-0",children:"$"}),n.jsx("pre",{className:"m-0 flex-1 overflow-x-auto text-left font-mono text-xs leading-xs whitespace-pre text-text bg-transparent scrollbar-auto",children:n.jsx("code",{children:e})})]})}),t!=null&&t!==""&&n.jsx("div",{className:"px-2 py-1.5 overflow-x-auto text-left scrollbar-auto",children:n.jsx("pre",{className:"m-0 p-0 font-mono text-xs leading-xs whitespace-pre-wrap break-all text-text-tertiary bg-transparent",children:t})})]})})}Ac.displayName="TerminalCodeBlockPart";const qt="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary";function _c(e){const t=N("terminalBox",qt)??n.jsx(zr,{className:qt}),a=N("externalLink",qt)??n.jsx(Lr,{className:qt});return n.jsx(Ac,{headerIcon:t,externalLinkIcon:a,...e})}_c.displayName="TerminalCodeBlockPart";const os="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",o1=n.jsx(Dr,{className:`${os} text-text-secondary`}),i1=n.jsx(kt,{className:`${os} text-warning`}),l1=n.jsx(Ar,{className:`${os} text-text-secondary`});function c1({askValue:e,onAskChange:t,onSkip:a,onRun:s,dataStyle:r,dataTheme:o}){return n.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[n.jsx("div",{className:"shrink-0 w-fit",children:n.jsxs(Eo,{value:e,onValueChange:t,children:[n.jsx(ya,{className:"h-7 w-auto min-w-0 border-0 bg-transparent px-2 py-0 text-xs text-text-tertiary hover:text-text [&>svg]:w-[var(--font-size-sm)] [&>svg]:h-[var(--font-size-sm)]",onClick:i=>i.stopPropagation(),children:n.jsx(Fo,{})}),n.jsxs(wa,{dataStyle:r,dataTheme:o,onClick:i=>i.stopPropagation(),children:[n.jsx(gt,{value:"Ask every time",children:"Ask every time"}),n.jsx(gt,{value:"Always allow",children:"Always allow"}),n.jsx(gt,{value:"Always deny",children:"Always deny"})]})]})}),n.jsx("div",{className:"flex-1 h-4 border-l border-border-tertiary opacity-10"}),n.jsx(W,{variant:"ghost",size:"sm",onClick:i=>{i.stopPropagation(),a()},children:"Skip ⌘⌫"}),n.jsx(W,{variant:"secondary",size:"sm",onClick:i=>{i.stopPropagation(),s()},children:"Run ⌘⏎"})]})}function Oc({description:e,content:t,status:a="normal",onRun:s,onSkip:r,onViewDetail:o,onAskEveryTimeChange:i,className:c,dataStyle:d,dataTheme:u,normalIcon:p,failedIcon:x,skippedIcon:g}){const[v,f]=m.useState("Ask every time"),b=I=>{f(I),i?.(I)},h=a==="failed"?x??i1:a==="skipped"?g??l1:p??o1,w=a==="failed"?n.jsx("span",{children:"Browser Failed"}):a==="skipped"?n.jsx("span",{children:"Browser Skipped"}):n.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[n.jsx("span",{className:"shrink-0",children:"Browser"}),e!=null&&n.jsx("span",{className:"flex-1 min-w-0 truncate text-text-tertiary",children:e})]}),k=a==="failed"?n.jsx(W,{variant:"text",size:"sm",onClick:I=>{I.stopPropagation(),o?.()},children:"View Detail"}):void 0,j=a==="normal"?n.jsx(c1,{askValue:v,onAskChange:b,onSkip:()=>r?.(),onRun:()=>s?.(),dataStyle:d,dataTheme:u}):void 0;return n.jsx(Te,{headerIcon:h,headerTitle:w,headerRight:k,contentPadding:"var(--spacing-1\\.5) var(--spacing-2)",defaultExpanded:a==="normal",collapsible:a==="normal",footer:j,className:c,children:t!=null&&t!==""&&n.jsx("span",{className:"text-xs leading-xs text-text whitespace-pre-wrap break-words",children:t})})}Oc.displayName="BrowserActionPart";const is="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",Us=`${is} text-text-secondary`,Qs=`${is} text-warning`,Ys=`${is} text-text-secondary`;function Ec(e){const{style:t,theme:a}=ue(),s=N("global",Us)??n.jsx(Dr,{className:Us}),r=N("warning",Qs)??n.jsx(kt,{className:Qs}),o=N("forbid2",Ys)??n.jsx(Ar,{className:Ys});return n.jsx(Oc,{normalIcon:s,failedIcon:r,skippedIcon:o,dataStyle:e.dataStyle??t,dataTheme:e.dataTheme??a,...e})}Ec.displayName="BrowserActionPart";const d1="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary",u1=n.jsx(Pr,{className:d1});function Fc({title:e="Initializing agent…",question:t,skipText:a="Skip ⌘⌫",runText:s="Run ⌘⏎",askTimeText:r="Ask any time",onSkip:o,onRun:i,contentMaxHeight:c,collapsible:d=!0,className:u,headerIcon:p}){return n.jsx(Te,{headerIcon:p??u1,headerTitle:n.jsx("span",{className:"text-left",children:e}),contentPadding:"var(--spacing-1\\.5) var(--spacing-2)",defaultExpanded:!0,contentMaxHeight:c,collapsible:d,footer:n.jsxs(n.Fragment,{children:[n.jsxs(W,{variant:"ghost",size:"sm",className:"gap-1 py-0.5 px-0 text-text-secondary hover:text-text",children:[n.jsx("span",{className:"text-xs",children:r}),n.jsx(ve,{className:"w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0"})]}),n.jsx("div",{className:"flex-1"}),n.jsx(W,{variant:"ghost",size:"sm",onClick:o,className:"bg-fill text-text-tertiary hover:bg-fill-secondary hover:text-text-secondary",children:a}),n.jsx(W,{variant:"secondary",size:"sm",onClick:i,children:s})]}),className:u,children:n.jsx("div",{className:"text-sm text-left",children:n.jsx("span",{className:"text-text",children:t})})})}Fc.displayName="AskUserPart";const Xs="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary";function $c(e){const t=N("questionnaire",Xs)??n.jsx(Pr,{className:Xs});return n.jsx(Fc,{headerIcon:t,...e})}$c.displayName="AskUserPart";Object.defineProperty(exports,"toast",{enumerable:!0,get:()=>Ks.toast});exports.Alert=Pi;exports.AlertDescription=Li;exports.AlertDialog=so;exports.AlertDialogAction=oo;exports.AlertDialogCancel=ma;exports.AlertDialogContent=io;exports.AlertDialogDescription=ua;exports.AlertDialogFooter=ca;exports.AlertDialogHeader=la;exports.AlertDialogMedia=lo;exports.AlertDialogOverlay=oa;exports.AlertDialogPortal=ro;exports.AlertDialogTitle=da;exports.AlertDialogTrigger=qu;exports.AlertTitle=zi;exports.AskUserPart=$c;exports.AspectRatio=Um;exports.Avatar=To;exports.AvatarBadge=zo;exports.AvatarFallback=Po;exports.AvatarGroup=Lo;exports.AvatarGroupCount=Do;exports.AvatarImage=Mo;exports.Breadcrumb=Di;exports.BreadcrumbEllipsis=$i;exports.BreadcrumbItem=_i;exports.BreadcrumbLink=Oi;exports.BreadcrumbList=Ai;exports.BreadcrumbPage=Ei;exports.BreadcrumbSeparator=Fi;exports.BrowserActionPart=Ec;exports.Button=W;exports.ButtonGroup=Or;exports.ButtonGroupSeparator=Fr;exports.ButtonGroupText=Er;exports.Calendar=vl;exports.CalendarDayButton=wl;exports.Card=ji;exports.CardAction=Ii;exports.CardContent=Ri;exports.CardDescription=Si;exports.CardFooter=Ti;exports.CardHeader=Ni;exports.CardTitle=Ci;exports.Carousel=px;exports.CarouselContent=xx;exports.CarouselItem=fx;exports.CarouselNext=gx;exports.CarouselPrevious=hx;exports.ChartContainer=wx;exports.ChartLegend=Nx;exports.ChartLegendContent=Cx;exports.ChartStyle=Tl;exports.ChartTooltip=kx;exports.ChartTooltipContent=jx;exports.ChatInput=Bx;exports.ChatInputAbove=Nt;exports.ChatInputActions=It;exports.ChatInputActionsLeft=Rt;exports.ChatInputActionsRight=it;exports.ChatInputAttachments=xn;exports.ChatInputBox=Ct;exports.ChatInputExpandButton=fn;exports.ChatInputFolderButton=Tt;exports.ChatInputFooterLeft=Pt;exports.ChatInputInput=St;exports.ChatInputMoreButton=Mt;exports.ChatInputRoot=Va;exports.ChatInputSendButton=Ga;exports.Checkbox=ki;exports.CodeBlockPart=Lc;exports.Collapse=Wo;exports.CollapseContent=Yo;exports.CollapseItem=Uo;exports.CollapseTrigger=Qo;exports.Collapsible=rm;exports.CollapsibleCard=Te;exports.CollapsibleContent=wo;exports.CollapsibleSection=vo;exports.CollapsibleTrigger=om;exports.Combobox=tp;exports.Command=Fa;exports.CommandDialog=K0;exports.CommandEmpty=gl;exports.CommandGroup=yl;exports.CommandInput=fl;exports.CommandItem=bl;exports.CommandList=hl;exports.CommandSeparator=J0;exports.CommandShortcut=ep;exports.ContextMenu=w0;exports.ContextMenuCheckboxItem=rl;exports.ContextMenuContent=dl;exports.ContextMenuGroup=j0;exports.ContextMenuItem=al;exports.ContextMenuLabel=il;exports.ContextMenuPortal=N0;exports.ContextMenuRadioGroup=S0;exports.ContextMenuRadioItem=ol;exports.ContextMenuSeparator=ll;exports.ContextMenuShortcut=cl;exports.ContextMenuSub=C0;exports.ContextMenuSubContent=ul;exports.ContextMenuSubTrigger=tl;exports.ContextMenuTrigger=k0;exports.ConversationAnchorNav=vc;exports.DataTable=yx;exports.DatePicker=mx;exports.Dialog=Bi;exports.DialogClose=f0;exports.DialogContent=Gi;exports.DialogDescription=Ma;exports.DialogFooter=Vi;exports.DialogHeader=Ra;exports.DialogOverlay=Sa;exports.DialogPortal=Hi;exports.DialogTitle=Ta;exports.DialogTrigger=x0;exports.DirectionProvider=Ix;exports.Drawer=qi;exports.DrawerClose=Ui;exports.DrawerContent=Yi;exports.DrawerDescription=_a;exports.DrawerFooter=Da;exports.DrawerHeader=La;exports.DrawerOverlay=cn;exports.DrawerPortal=Pa;exports.DrawerTitle=Aa;exports.DrawerTrigger=Wi;exports.DropdownMenu=We;exports.DropdownMenuCheckboxItem=Xr;exports.DropdownMenuContent=no;exports.DropdownMenuGroup=Ou;exports.DropdownMenuItem=Se;exports.DropdownMenuLabel=Kr;exports.DropdownMenuPortal=Eu;exports.DropdownMenuRadioGroup=Fu;exports.DropdownMenuRadioItem=Zr;exports.DropdownMenuSeparator=Jr;exports.DropdownMenuShortcut=eo;exports.DropdownMenuSub=Ur;exports.DropdownMenuSubContent=ao;exports.DropdownMenuSubTrigger=Gu;exports.DropdownMenuTrigger=Ue;exports.EllipsisText=Wr;exports.Empty=Qm;exports.EmptyContent=e0;exports.EmptyDescription=Jm;exports.EmptyHeader=Ym;exports.EmptyMedia=Zm;exports.EmptyTitle=Km;exports.FILE_TYPE_MAP=ft;exports.Field=$m;exports.FieldContent=Bm;exports.FieldDescription=Gm;exports.FieldError=Wm;exports.FieldGroup=Em;exports.FieldLabel=Hm;exports.FieldLegend=Om;exports.FieldSeparator=qm;exports.FieldSet=_m;exports.FieldTitle=Vm;exports.FileAttachment=ec;exports.FileCard=Kl;exports.FileReviewPart=Nc;exports.FolderButton=zl;exports.FunctionSwitch=Zu;exports.GeneratedImagesGrid=mc;exports.GenerationStatusBar=Ba;exports.HintBanner=Vl;exports.HoverCard=b0;exports.HoverCardContent=Ki;exports.HoverCardTrigger=v0;exports.IconButton=Ie;exports.IconsProvider=Vu;exports.ImageAttachment=nc;exports.ImageGenerating=uc;exports.Input=ja;exports.InputGroup=Nm;exports.InputGroupAddon=Sm;exports.InputGroupButton=Rm;exports.InputGroupInput=Mm;exports.InputGroupText=Tm;exports.InputGroupTextarea=Pm;exports.InputOTP=zm;exports.InputOTPGroup=Lm;exports.InputOTPSeparator=Am;exports.InputOTPSlot=Dm;exports.Item=s0;exports.ItemActions=d0;exports.ItemContent=i0;exports.ItemDescription=c0;exports.ItemFooter=m0;exports.ItemGroup=t0;exports.ItemHeader=u0;exports.ItemMedia=o0;exports.ItemSeparator=n0;exports.ItemTitle=l0;exports.Kbd=co;exports.KbdGroup=uo;exports.Label=Ca;exports.MOTION_DURATION=Ce;exports.MOTION_EASE=Pe;exports.MOTION_EXPAND=Br;exports.MOTION_FADE=on;exports.MOTION_SCALE_IN=ut;exports.MOTION_SLIDE_UP=ta;exports.MOTION_SPRING=$r;exports.MarkdownBody=lt;exports.Menubar=M0;exports.MenubarCheckboxItem=O0;exports.MenubarContent=A0;exports.MenubarGroup=z0;exports.MenubarItem=_0;exports.MenubarLabel=F0;exports.MenubarMenu=P0;exports.MenubarPortal=ml;exports.MenubarRadioGroup=L0;exports.MenubarRadioItem=E0;exports.MenubarSeparator=$0;exports.MenubarShortcut=B0;exports.MenubarSub=H0;exports.MenubarSubContent=G0;exports.MenubarSubTrigger=V0;exports.MenubarTrigger=D0;exports.MermaidPart=Mc;exports.NativeSelect=np;exports.NativeSelectOptGroup=sp;exports.NativeSelectOption=ap;exports.NavigationMenu=q0;exports.NavigationMenuContent=Y0;exports.NavigationMenuIndicator=Z0;exports.NavigationMenuItem=U0;exports.NavigationMenuLink=X0;exports.NavigationMenuList=W0;exports.NavigationMenuTrigger=Q0;exports.NavigationMenuViewport=xl;exports.OptionList=aa;exports.Pagination=di;exports.PaginationContent=ui;exports.PaginationEllipsis=hi;exports.PaginationItem=mi;exports.PaginationLink=pi;exports.PaginationNext=fi;exports.PaginationPrevious=xi;exports.PermissionCard=dc;exports.PlanPart=Rc;exports.Popover=Oa;exports.PopoverAnchor=y0;exports.PopoverContent=Xi;exports.PopoverTrigger=Ea;exports.Progress=yi;exports.QueueIndicator=bc;exports.RadioGroup=yo;exports.RadioGroupItem=bo;exports.ReasoningStep=Uf;exports.RelatedPrompts=Bl;exports.ResizableHandle=No;exports.ResizablePanel=jo;exports.ResizablePanelGroup=ko;exports.Response=Ff;exports.SETI_CHAR_MAP=tn;exports.SETI_COLOR_MAP=qn;exports.ScrollArea=Sx;exports.ScrollBar=Ml;exports.Scrollbar=we;exports.Select=Eo;exports.SelectContent=Ho;exports.SelectGroup=xm;exports.SelectItem=gt;exports.SelectLabel=$o;exports.SelectScrollDownButton=va;exports.SelectScrollUpButton=ba;exports.SelectSeparator=Bo;exports.SelectTrigger=ya;exports.SelectValue=Fo;exports.SendButton=Ha;exports.Separator=ln;exports.Sheet=qi;exports.SheetClose=Ui;exports.SheetContent=za;exports.SheetDescription=_a;exports.SheetFooter=Da;exports.SheetHeader=La;exports.SheetOverlay=cn;exports.SheetPortal=Pa;exports.SheetTitle=Aa;exports.SheetTrigger=Wi;exports.ShimmeringText=So;exports.SidebarMenu=vi;exports.Skeleton=Co;exports.Slider=ci;exports.Spinner=rn;exports.StreamingMarkdownBlock=Xa;exports.Switch=pa;exports.TYPE_TO_TOKEN_CLASS=Wn;exports.Table=xa;exports.TableBody=ha;exports.TableCaption=Ro;exports.TableCell=Qt;exports.TableFooter=Io;exports.TableHead=ga;exports.TableHeader=fa;exports.TableRow=ht;exports.Tabs=hm;exports.TabsContent=qo;exports.TabsList=Vo;exports.TabsTrigger=Go;exports.Tag=ka;exports.TaskPart=Sc;exports.TerminalCodeBlockPart=_c;exports.Textarea=Na;exports.ThemeStyleProvider=Lu;exports.ThinkingIndicator=ns;exports.Toaster=Oo;exports.Toggle=xo;exports.ToggleGroup=ho;exports.ToggleGroupItem=go;exports.ToolInvocationCard=lc;exports.Tooltip=na;exports.TypographyBlockquote=ti;exports.TypographyH1=Xo;exports.TypographyH2=Zo;exports.TypographyH3=Ko;exports.TypographyH4=Jo;exports.TypographyInlineCode=si;exports.TypographyLarge=oi;exports.TypographyLead=ri;exports.TypographyList=ai;exports.TypographyMuted=li;exports.TypographyP=ei;exports.TypographySmall=ii;exports.TypographyTable=ni;exports.UserMessage=Yl;exports.UserQuestion=vh;exports.UserQuestionAnswer=gc;exports.alertVariants=Mi;exports.buttonGroupVariants=_r;exports.checkboxVariants=wi;exports.getFileIconColorClass=Pc;exports.getMotionMultiplier=Su;exports.getReducedMotion=Cu;exports.getSetiIcon=Kh;exports.getSetiIconColor=Jh;exports.getSetiIconType=Mn;exports.navigationMenuTriggerStyle=pl;exports.sheetVariants=Qi;exports.tagVariants=gi;exports.useDirection=Rx;exports.useIcon=N;exports.useIcons=jt;exports.useThemeStyle=ue;exports.useVisibleAnchorIndex=wc;
|
|
264
|
+
`})]}):a.jsxs("div",{className:"flex flex-col gap-1",children:[N!=null&&a.jsx("div",{className:"text-sm font-medium text-text",children:N}),C!=null&&C!==""&&a.jsx("span",{className:"text-xs leading-xs text-text whitespace-pre-wrap break-words",children:C})]})})}md.displayName="PlanPart";const ua="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",os=`${ua} text-text-secondary`,is=`${ua} text-success`;function pd(e){const t=I("fileList2",os)??a.jsx(xa,{className:os}),n=I("download",ua)??a.jsx(Us,{className:ua}),r=I("checkLine",is)??a.jsx(we,{className:is});return a.jsx(md,{headerIcon:t,downloadIcon:n,builtIcon:r,...e})}pd.displayName="PlanPart";function J1(e){const t=(e||"neutral").toLowerCase();return t==="soft"?"12px":t==="sharp"?"0":t==="dense"?"4px":"6px"}function eb(){return typeof document>"u"?"neutral":document.documentElement.getAttribute("data-style")||document.body?.getAttribute("data-style")||"neutral"}function tb(e,t,n){const[r,s]=m.useState(""),[o,l]=m.useState(""),c=n??eb(),d=J1(c);return m.useEffect(()=>{let u=!1;return(async()=>{if(l(""),s(""),!!e)try{const f=await import("mermaid"),b=f?.default??f,w=[`.node rect { rx: ${d}; ry: ${d}; }`,`.cluster rect { rx: ${d}; ry: ${d}; }`,`.label rect { rx: ${d}; ry: ${d}; }`,`.edgeLabel rect { rx: ${d}; ry: ${d}; }`,".node polygon { stroke-linejoin: round; stroke-linecap: round; }",".node path { stroke-linejoin: round; stroke-linecap: round; }",".cluster polygon { stroke-linejoin: round; stroke-linecap: round; }",".cluster path { stroke-linejoin: round; stroke-linecap: round; }"].join(`
|
|
265
|
+
`);b.initialize({startOnLoad:!1,securityLevel:"strict",theme:"dark",themeCSS:w});const h=`mermaid-${t.replace(/:/g,"")}`,{svg:y}=await b.render(h,e);u||s(y??"")}catch(f){u||l(f?.message??"Failed to render mermaid.")}})(),()=>{u=!0}},[t,e,d]),{svg:r,error:o}}const ab="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary",nb=a.jsx(xa,{className:ab});function fd({content:e="",className:t,headerIcon:n,dataStyle:r}){const s=m.useId(),o=m.useMemo(()=>(e??"").trim(),[e]),{svg:l,error:c}=tb(o,s,r),[d,u]=m.useState(1),p=m.useRef(null);m.useEffect(()=>{if(!l||c||!p.current)return;const h=p.current,y=x=>{if(x.ctrlKey||x.metaKey){x.preventDefault();const k=x.deltaY>0?-.1:.1;u(j=>Math.max(.5,Math.min(3,Math.round((j+k)*10)/10)))}};return h.addEventListener("wheel",y,{passive:!1}),()=>h.removeEventListener("wheel",y)},[l,c]);const f=()=>u(h=>Math.min(3,Math.round((h+.1)*10)/10)),b=()=>u(h=>Math.max(.5,Math.round((h-.1)*10)/10)),w=()=>u(1);return a.jsx(Te,{headerIcon:n??nb,headerTitle:a.jsx("span",{className:"text-text-secondary",children:"Mermaid"}),headerRight:l&&!c?a.jsxs("div",{className:"flex items-center gap-1",onClick:h=>h.stopPropagation(),children:[a.jsx(G,{variant:"ghost",size:"sm",onClick:h=>{h.stopPropagation(),b()},className:"shrink-0 px-1.5 py-0.5 text-xs text-text-secondary hover:text-text","aria-label":"Zoom out",children:"−"}),a.jsxs("span",{className:"text-xs text-text-secondary min-w-[var(--spacing-10)] text-center",children:[Math.round(d*100),"%"]}),a.jsx(G,{variant:"ghost",size:"sm",onClick:h=>{h.stopPropagation(),w()},className:"shrink-0 px-1.5 py-0.5 text-xs text-text-secondary hover:text-text","aria-label":"Reset",children:"Reset"}),a.jsx(G,{variant:"ghost",size:"sm",onClick:h=>{h.stopPropagation(),f()},className:"shrink-0 px-1.5 py-0.5 text-xs text-text-secondary hover:text-text","aria-label":"Zoom in",children:"+"})]}):void 0,contentPadding:"var(--spacing-1\\.5) var(--spacing-2)",className:t,children:o?c?a.jsxs("div",{className:"space-y-2",children:[a.jsx("div",{className:"text-xs text-text-secondary",children:"Mermaid render unavailable."}),a.jsx("div",{className:"text-xs text-text-tertiary",children:c}),a.jsx("pre",{className:"m-0 whitespace-pre-wrap break-words font-mono text-xs text-text",children:o})]}):a.jsx("div",{className:"relative",ref:p,children:a.jsx(ke,{scrollbarVisibility:"auto",maxHeight:600,className:"overflow-x-auto",children:a.jsx("div",{className:"flex justify-center items-center",style:{transform:`scale(${d})`,transformOrigin:"center top",minHeight:d>1?"100%":"auto"},children:a.jsx("div",{dangerouslySetInnerHTML:{__html:l}})})})}):a.jsx("div",{className:"text-xs text-text-tertiary",children:"Mermaid content is empty."})})}fd.displayName="MermaidPart";const ls="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary";function xd(e){const t=I("fileList2",ls)??a.jsx(xa,{className:ls}),{style:n}=me();return a.jsx(fd,{headerIcon:t,dataStyle:n,...e})}xd.displayName="MermaidPart";const ma={javascript:"",typescript:"",react:"",json:"",html:"",css:"",python:"",java:"",go:"",rust:"",php:"",ruby:"",vue:"",svelte:"",markdown:"",yaml:"",xml:"",shell:"",sass:"",settings:"",default:""},rn={javascript:"var(--color-yellow)",typescript:"var(--color-blue)",react:"var(--color-blue)",json:"var(--color-yellow)",html:"var(--color-blue)",css:"var(--color-blue)",python:"var(--color-blue)",java:"var(--color-error)",go:"var(--color-blue)",rust:"var(--color-lavender)",php:"var(--color-purple)",ruby:"var(--color-error)",vue:"var(--color-success)",svelte:"var(--color-error)",markdown:"var(--color-blue)",yaml:"var(--color-purple)",xml:"var(--color-orange)",shell:"var(--color-success)",sass:"var(--color-error)",settings:"var(--color-lavender)",default:"var(--color-lavender)"},bt={js:"javascript",jsx:"react",ts:"typescript",tsx:"typescript",json:"json",html:"html",css:"css",scss:"sass",sass:"sass",less:"css",py:"python",java:"java",go:"go",rs:"rust",php:"php",rb:"ruby",vue:"vue",svelte:"svelte",md:"markdown",yml:"yaml",yaml:"yaml",xml:"xml",sh:"shell",bash:"shell",zsh:"shell",config:"settings",conf:"settings"},sn={javascript:"text-info",typescript:"text-info",react:"text-info",json:"text-info",html:"text-info",css:"text-info",python:"text-teal",java:"text-error",go:"text-info",rust:"text-text-tertiary",php:"text-text-tertiary",ruby:"text-error",vue:"text-success",svelte:"text-error",markdown:"text-text-secondary",yaml:"text-text-tertiary",xml:"text-text-tertiary",shell:"text-success",sass:"text-error",settings:"text-text-tertiary",default:"text-text-tertiary"};function Va(e,t){let n=null;if(t&&typeof t=="string"&&t.trim()){const r=t.lastIndexOf(".");if(r>0&&r<t.length-1){const s=t.substring(r+1).toLowerCase().trim();s&&bt[s]&&(n=bt[s])}}if(!n&&e&&typeof e=="string"&&e.trim()){const r=e.toLowerCase().trim();bt[r]?n=bt[r]:ma[r]&&(n=r)}return n||"default"}function rb(e,t){const n=Va(e,t);return ma[n]??ma.default}function sb(e,t){const n=Va(e,t);return rn[n]??rn.default}function hd(e,t){const n=Va(e,t);return sn[n]??sn.default}const cs="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",ob={plain:{color:"var(--color-text)"},styles:[{types:["comment","prolog","cdata"],style:{color:"var(--color-text-tertiary)"}},{types:["keyword","atrule"],style:{color:"var(--color-blue)"}},{types:["string","attr-value","inserted"],style:{color:"var(--color-success)"}},{types:["number","constant","boolean"],style:{color:"var(--color-success)"}},{types:["function","function-variable"],style:{color:"var(--color-purple)"}},{types:["punctuation","operator","deleted"],style:{color:"var(--color-text-tertiary)"}},{types:["property","tag","selector"],style:{color:"var(--color-pink)"}},{types:["regex","important","variable"],style:{color:"var(--color-text)"}}]},ib={javascript:"js",typescript:"ts",jsx:"jsx",tsx:"tsx",python:"py",java:"java",go:"go",rust:"rs",html:"html",css:"css",json:"json",yaml:"yml",markdown:"md",shell:"sh",bash:"sh"};function lb(e,t){if(e&&e.trim())return e;const n=(t??"text").toLowerCase(),r=ib[n]??"txt";return`${n}.${r}`}function gd({language:e="javascript",code:t="",filename:n,diffType:r=null,diffLines:s=null,isGenerating:o=!1,defaultExpanded:l=!0,className:c,headerIcon:d,getFileIcon:u}){const p=m.useMemo(()=>lb(n,e),[n,e]),f=m.useMemo(()=>r&&t?t.split(`
|
|
266
|
+
`).length:s??null,[t,r,s]),b=e?.toLowerCase(),w=o?a.jsx(q.motion.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},children:a.jsx(_s,{className:i(cs,"text-text-secondary")})}):u?u(b,p):a.jsx("span",{className:i(hd(b,p)),children:a.jsx(mn,{className:cs})}),h=r&&f!=null?a.jsxs("span",{className:i("font-normal text-xs leading-xs",r==="add"?"text-success":"text-error"),children:[r==="add"?"+":"-",f]}):null,y=i("overflow-x-auto text-left scrollbar-auto",r==="add"&&"bg-success-bg border-l-[3px] border-l-[var(--color-success-border)] -ml-5 pl-5",r==="remove"&&"bg-error-bg border-l-[3px] border-l-[var(--color-error-border)] -ml-5 pl-5"),x=(e??"text").toLowerCase();return a.jsx(Te,{headerIcon:d??w,headerTitle:a.jsx("span",{className:"font-normal",children:p}),headerRight:h,defaultExpanded:l,contentPadding:"var(--spacing-2) 0 var(--spacing-2) var(--spacing-5)",titleShimmer:o,className:c,children:a.jsx("div",{className:y,children:a.jsx(Ud.Highlight,{theme:ob,code:t,language:x,children:({className:k,style:j,tokens:v,getLineProps:N,getTokenProps:C})=>a.jsx("pre",{className:i(k,"m-0 text-left bg-transparent font-mono text-xs font-normal leading-xs whitespace-pre"),style:j,children:a.jsx("code",{className:"text-left block",children:v.map((z,L)=>a.jsx("div",{...N({line:z}),children:z.map((S,_)=>a.jsx("span",{...C({token:S})},_))},L))})})})})})}gd.displayName="CodeBlockPart";const cb="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0";function bd(e){const{getFileIcon:t}=It(),n=e.getFileIcon??(t?(r,s)=>t(s??"",cb):void 0);return a.jsx(gd,{getFileIcon:n,...e})}bd.displayName="CodeBlockPart";const yd="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary",db=a.jsx(Ys,{className:yd}),ub=a.jsx(Ks,{className:yd});function vd({command:e,output:t,autoRanCommand:n,className:r,headerIcon:s,externalLinkIcon:o}){const l=n??(e!=null?`Auto-Ran command: ${e}`:"Terminal");return a.jsx(Te,{headerIcon:s??db,headerTitle:a.jsx("span",{className:"font-normal",children:l}),headerRight:a.jsx(Re,{variant:"iconOnly",size:"sm",icon:o??ub,"aria-label":"Open in terminal",className:"!min-h-0 !min-w-0 h-[var(--font-size-sm)] w-[var(--font-size-sm)] text-text-secondary hover:text-text [&_svg]:w-[var(--font-size-sm)] [&_svg]:h-[var(--font-size-sm)]"}),contentPadding:"0",className:r,children:a.jsxs("div",{className:"flex flex-col gap-0",children:[e!=null&&e!==""&&a.jsx("div",{className:"px-2 py-1.5",children:a.jsxs("div",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"font-mono text-xs text-text shrink-0",children:"$"}),a.jsx("pre",{className:"m-0 flex-1 overflow-x-auto text-left font-mono text-xs leading-xs whitespace-pre text-text bg-transparent scrollbar-auto",children:a.jsx("code",{children:e})})]})}),t!=null&&t!==""&&a.jsx("div",{className:"px-2 py-1.5 overflow-x-auto text-left scrollbar-auto",children:a.jsx("pre",{className:"m-0 p-0 font-mono text-xs leading-xs whitespace-pre-wrap break-all text-text-tertiary bg-transparent",children:t})})]})})}vd.displayName="TerminalCodeBlockPart";const Jt="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary";function wd(e){const t=I("terminalBox",Jt)??a.jsx(Ys,{className:Jt}),n=I("externalLink",Jt)??a.jsx(Ks,{className:Jt});return a.jsx(vd,{headerIcon:t,externalLinkIcon:n,...e})}wd.displayName="TerminalCodeBlockPart";const gr="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",mb=a.jsx(Zs,{className:`${gr} text-text-secondary`}),pb=a.jsx(St,{className:`${gr} text-warning`}),fb=a.jsx(Xs,{className:`${gr} text-text-secondary`});function xb({askValue:e,onAskChange:t,onSkip:n,onRun:r,dataStyle:s,dataTheme:o}){return a.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[a.jsx("div",{className:"shrink-0 w-fit",children:a.jsxs(ti,{value:e,onValueChange:t,children:[a.jsx(zn,{className:"h-7 w-auto min-w-0 border-0 bg-transparent px-2 py-0 text-xs text-text-tertiary hover:text-text [&>svg]:w-[var(--font-size-sm)] [&>svg]:h-[var(--font-size-sm)]",onClick:l=>l.stopPropagation(),children:a.jsx(ai,{})}),a.jsxs(Dn,{dataStyle:s,dataTheme:o,onClick:l=>l.stopPropagation(),children:[a.jsx(wt,{value:"Ask every time",children:"Ask every time"}),a.jsx(wt,{value:"Always allow",children:"Always allow"}),a.jsx(wt,{value:"Always deny",children:"Always deny"})]})]})}),a.jsx("div",{className:"flex-1 h-4 border-l border-border-tertiary opacity-10"}),a.jsx(G,{variant:"ghost",size:"sm",onClick:l=>{l.stopPropagation(),n()},children:"Skip ⌘⌫"}),a.jsx(G,{variant:"secondary",size:"sm",onClick:l=>{l.stopPropagation(),r()},children:"Run ⌘⏎"})]})}function kd({description:e,content:t,status:n="normal",onRun:r,onSkip:s,onViewDetail:o,onAskEveryTimeChange:l,className:c,dataStyle:d,dataTheme:u,normalIcon:p,failedIcon:f,skippedIcon:b}){const[w,h]=m.useState("Ask every time"),y=N=>{h(N),l?.(N)},x=n==="failed"?f??pb:n==="skipped"?b??fb:p??mb,k=n==="failed"?a.jsx("span",{children:"Browser Failed"}):n==="skipped"?a.jsx("span",{children:"Browser Skipped"}):a.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[a.jsx("span",{className:"shrink-0",children:"Browser"}),e!=null&&a.jsx("span",{className:"flex-1 min-w-0 truncate text-text-tertiary",children:e})]}),j=n==="failed"?a.jsx(G,{variant:"text",size:"sm",onClick:N=>{N.stopPropagation(),o?.()},children:"View Detail"}):void 0,v=n==="normal"?a.jsx(xb,{askValue:w,onAskChange:y,onSkip:()=>s?.(),onRun:()=>r?.(),dataStyle:d,dataTheme:u}):void 0;return a.jsx(Te,{headerIcon:x,headerTitle:k,headerRight:j,contentPadding:"var(--spacing-1\\.5) var(--spacing-2)",defaultExpanded:n==="normal",collapsible:n==="normal",footer:v,className:c,children:t!=null&&t!==""&&a.jsx("span",{className:"text-xs leading-xs text-text whitespace-pre-wrap break-words",children:t})})}kd.displayName="BrowserActionPart";const br="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",ds=`${br} text-text-secondary`,us=`${br} text-warning`,ms=`${br} text-text-secondary`;function jd(e){const{style:t,theme:n}=me(),r=I("global",ds)??a.jsx(Zs,{className:ds}),s=I("warning",us)??a.jsx(St,{className:us}),o=I("forbid2",ms)??a.jsx(Xs,{className:ms});return a.jsx(kd,{normalIcon:r,failedIcon:s,skippedIcon:o,dataStyle:e.dataStyle??t,dataTheme:e.dataTheme??n,...e})}jd.displayName="BrowserActionPart";const hb="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary",gb=a.jsx(Qs,{className:hb});function Nd({title:e="Initializing agent…",question:t,skipText:n="Skip ⌘⌫",runText:r="Run ⌘⏎",askTimeText:s="Ask any time",onSkip:o,onRun:l,contentMaxHeight:c,collapsible:d=!0,className:u,headerIcon:p}){return a.jsx(Te,{headerIcon:p??gb,headerTitle:a.jsx("span",{className:"text-left",children:e}),contentPadding:"var(--spacing-1\\.5) var(--spacing-2)",defaultExpanded:!0,contentMaxHeight:c,collapsible:d,footer:a.jsxs(a.Fragment,{children:[a.jsxs(G,{variant:"ghost",size:"sm",className:"gap-1 py-0.5 px-0 text-text-secondary hover:text-text",children:[a.jsx("span",{className:"text-xs",children:s}),a.jsx(ye,{className:"w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0"})]}),a.jsx("div",{className:"flex-1"}),a.jsx(G,{variant:"ghost",size:"sm",onClick:o,className:"bg-fill text-text-tertiary hover:bg-fill-secondary hover:text-text-secondary",children:n}),a.jsx(G,{variant:"secondary",size:"sm",onClick:l,children:r})]}),className:u,children:a.jsx("div",{className:"text-sm text-left",children:a.jsx("span",{className:"text-text",children:t})})})}Nd.displayName="AskUserPart";const ps="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary";function Cd(e){const t=I("questionnaire",ps)??a.jsx(Qs,{className:ps});return a.jsx(Nd,{headerIcon:t,...e})}Cd.displayName="AskUserPart";Object.defineProperty(exports,"toast",{enumerable:!0,get:()=>xs.toast});exports.Accordion=fp;exports.AccordionContent=ui;exports.AccordionItem=ci;exports.AccordionTrigger=di;exports.Alert=vl;exports.AlertDescription=kl;exports.AlertDialog=No;exports.AlertDialogAction=So;exports.AlertDialogCancel=Cn;exports.AlertDialogContent=Io;exports.AlertDialogDescription=Nn;exports.AlertDialogFooter=kn;exports.AlertDialogHeader=wn;exports.AlertDialogMedia=Ro;exports.AlertDialogOverlay=yn;exports.AlertDialogPortal=Co;exports.AlertDialogTitle=jn;exports.AlertDialogTrigger=$m;exports.AlertTitle=wl;exports.AskUserPart=Cd;exports.AspectRatio=ef;exports.Avatar=qo;exports.AvatarBadge=Yo;exports.AvatarFallback=Qo;exports.AvatarGroup=Ko;exports.AvatarGroupCount=Zo;exports.AvatarImage=Uo;exports.Badge=bm;exports.Breadcrumb=jl;exports.BreadcrumbEllipsis=Ml;exports.BreadcrumbItem=Cl;exports.BreadcrumbLink=Sl;exports.BreadcrumbList=Nl;exports.BreadcrumbPage=Il;exports.BreadcrumbSeparator=Rl;exports.BrowserActionPart=jd;exports.Button=G;exports.ButtonGroup=eo;exports.ButtonGroupSeparator=ao;exports.ButtonGroupText=to;exports.Calendar=sc;exports.CalendarDayButton=oc;exports.Card=ml;exports.CardAction=hl;exports.CardContent=gl;exports.CardDescription=xl;exports.CardFooter=bl;exports.CardHeader=pl;exports.CardTitle=fl;exports.Carousel=vh;exports.CarouselContent=wh;exports.CarouselItem=kh;exports.CarouselNext=Nh;exports.CarouselPrevious=jh;exports.ChartContainer=Rh;exports.ChartLegend=zh;exports.ChartLegendContent=Ph;exports.ChartStyle=fc;exports.ChartTooltip=Mh;exports.ChartTooltipContent=Th;exports.ChatInput=Qh;exports.ChatInputAbove=zt;exports.ChatInputActions=Dt;exports.ChatInputActionsLeft=At;exports.ChatInputActionsRight=ct;exports.ChatInputAttachments=Na;exports.ChatInputBox=Pt;exports.ChatInputExpandButton=Ca;exports.ChatInputFolderButton=_t;exports.ChatInputFooterLeft=Ot;exports.ChatInputInput=Lt;exports.ChatInputMoreButton=Ft;exports.ChatInputRoot=er;exports.ChatInputSendButton=tr;exports.Checkbox=ul;exports.CodeBlockPart=bd;exports.Collapse=mi;exports.CollapseContent=xi;exports.CollapseItem=pi;exports.CollapseTrigger=fi;exports.Collapsible=Jm;exports.CollapsibleCard=Te;exports.CollapsibleContent=Eo;exports.CollapsibleTrigger=ep;exports.Combobox=lx;exports.Command=Kn;exports.CommandDialog=sx;exports.CommandEmpty=ac;exports.CommandGroup=nc;exports.CommandInput=ec;exports.CommandItem=rc;exports.CommandList=tc;exports.CommandSeparator=ox;exports.CommandShortcut=ix;exports.ContextMenu=Rf;exports.ContextMenuCheckboxItem=Gl;exports.ContextMenuContent=Yl;exports.ContextMenuGroup=Tf;exports.ContextMenuItem=Bl;exports.ContextMenuLabel=ql;exports.ContextMenuPortal=zf;exports.ContextMenuRadioGroup=Lf;exports.ContextMenuRadioItem=Wl;exports.ContextMenuSeparator=Ul;exports.ContextMenuShortcut=Ql;exports.ContextMenuSub=Pf;exports.ContextMenuSubContent=Kl;exports.ContextMenuSubTrigger=Vl;exports.ContextMenuTrigger=Mf;exports.ConversationAnchorNav=sd;exports.DataTable=Ch;exports.DatePicker=yh;exports.Dialog=Tl;exports.DialogClose=jf;exports.DialogContent=Ll;exports.DialogDescription=Un;exports.DialogFooter=Pl;exports.DialogHeader=Wn;exports.DialogOverlay=Hn;exports.DialogPortal=zl;exports.DialogTitle=qn;exports.DialogTrigger=kf;exports.DirectionProvider=Dh;exports.Drawer=Gi;exports.DrawerClose=Fp;exports.DrawerContent=Dl;exports.DrawerDescription=Yi;exports.DrawerFooter=Ui;exports.DrawerHeader=qi;exports.DrawerOverlay=_n;exports.DrawerPortal=Wi;exports.DrawerTitle=Qi;exports.DrawerTrigger=_p;exports.DropdownMenu=qe;exports.DropdownMenuCheckboxItem=ho;exports.DropdownMenuContent=ko;exports.DropdownMenuGroup=Lm;exports.DropdownMenuItem=Se;exports.DropdownMenuLabel=bo;exports.DropdownMenuPortal=Dm;exports.DropdownMenuRadioGroup=Am;exports.DropdownMenuRadioItem=go;exports.DropdownMenuSeparator=yo;exports.DropdownMenuShortcut=vo;exports.DropdownMenuSub=po;exports.DropdownMenuSubContent=jo;exports.DropdownMenuSubTrigger=Vm;exports.DropdownMenuTrigger=Ue;exports.EllipsisText=mo;exports.Empty=tf;exports.EmptyContent=lf;exports.EmptyDescription=of;exports.EmptyHeader=af;exports.EmptyMedia=rf;exports.EmptyTitle=sf;exports.FILE_TYPE_MAP=bt;exports.Field=z0;exports.FieldContent=P0;exports.FieldDescription=A0;exports.FieldError=F0;exports.FieldGroup=M0;exports.FieldLabel=L0;exports.FieldLegend=R0;exports.FieldSeparator=_0;exports.FieldSet=I0;exports.FieldTitle=D0;exports.FileAttachment=Ec;exports.FileCard=Fc;exports.FileReviewPart=cd;exports.FolderButton=gc;exports.Form=X0;exports.FormControl=il;exports.FormDescription=ll;exports.FormField=J0;exports.FormItem=sl;exports.FormLabel=ol;exports.FormMessage=cl;exports.FunctionSwitch=Um;exports.GeneratedImagesGrid=Zc;exports.GenerationStatusBar=Xn;exports.HintBanner=Rc;exports.HoverCard=Sf;exports.HoverCardContent=Fl;exports.HoverCardTrigger=If;exports.IconButton=Re;exports.IconsProvider=Em;exports.ImageAttachment=$c;exports.ImageGenerating=Kc;exports.Input=ba;exports.InputGroup=x0;exports.InputGroupAddon=g0;exports.InputGroupButton=y0;exports.InputGroupInput=w0;exports.InputGroupText=v0;exports.InputGroupTextarea=k0;exports.InputOTP=j0;exports.InputOTPGroup=N0;exports.InputOTPSeparator=S0;exports.InputOTPSlot=C0;exports.Item=mf;exports.ItemActions=bf;exports.ItemContent=xf;exports.ItemDescription=gf;exports.ItemFooter=vf;exports.ItemGroup=cf;exports.ItemHeader=yf;exports.ItemMedia=ff;exports.ItemSeparator=df;exports.ItemTitle=hf;exports.Kbd=Mo;exports.KbdGroup=To;exports.Label=ya;exports.MOTION_DURATION=Je;exports.MOTION_EASE=mt;exports.MOTION_EXPAND=so;exports.MOTION_FADE=ga;exports.MOTION_SCALE_IN=pt;exports.MOTION_SLIDE_UP=xn;exports.MOTION_SPRING=vm;exports.MarkdownBody=dt;exports.Menubar=Ff;exports.MenubarCheckboxItem=Gf;exports.MenubarContent=Bf;exports.MenubarGroup=Ef;exports.MenubarItem=Hf;exports.MenubarLabel=qf;exports.MenubarMenu=Of;exports.MenubarPortal=Zl;exports.MenubarRadioGroup=Vf;exports.MenubarRadioItem=Wf;exports.MenubarSeparator=Uf;exports.MenubarShortcut=Qf;exports.MenubarSub=Yf;exports.MenubarSubContent=Zf;exports.MenubarSubTrigger=Kf;exports.MenubarTrigger=$f;exports.MermaidPart=xd;exports.NativeSelect=cx;exports.NativeSelectOptGroup=ux;exports.NativeSelectOption=dx;exports.NavigationMenu=Xf;exports.NavigationMenuContent=ax;exports.NavigationMenuIndicator=rx;exports.NavigationMenuItem=ex;exports.NavigationMenuLink=nx;exports.NavigationMenuList=Jf;exports.NavigationMenuTrigger=tx;exports.NavigationMenuViewport=Jl;exports.OptionList=hn;exports.Pagination=Ti;exports.PaginationContent=zi;exports.PaginationEllipsis=_i;exports.PaginationItem=Pi;exports.PaginationLink=Li;exports.PaginationNext=Ai;exports.PaginationPrevious=Di;exports.PermissionCard=Yc;exports.PlanPart=pd;exports.Popover=Qn;exports.PopoverAnchor=Cf;exports.PopoverContent=Al;exports.PopoverTrigger=Yn;exports.Progress=Oi;exports.QueueIndicator=rd;exports.RadioGroup=Fo;exports.RadioGroupItem=Oo;exports.Rating=Vi;exports.ReasoningStep=Jg;exports.RelatedPrompts=Sc;exports.ResizableHandle=Bo;exports.ResizablePanel=$o;exports.ResizablePanelGroup=Vo;exports.Response=Wg;exports.SETI_CHAR_MAP=ma;exports.SETI_COLOR_MAP=rn;exports.ScrollArea=Lh;exports.ScrollBar=xc;exports.Scrollbar=ke;exports.Select=ti;exports.SelectContent=si;exports.SelectGroup=cp;exports.SelectItem=wt;exports.SelectLabel=ni;exports.SelectScrollDownButton=Ln;exports.SelectScrollUpButton=Pn;exports.SelectSeparator=ri;exports.SelectTrigger=zn;exports.SelectValue=ai;exports.SendButton=Jn;exports.Separator=Rt;exports.ShimmeringText=Ho;exports.Sidebar=qp;exports.SidebarContent=e0;exports.SidebarFooter=Xp;exports.SidebarGroup=t0;exports.SidebarGroupAction=n0;exports.SidebarGroupContent=r0;exports.SidebarGroupLabel=a0;exports.SidebarHeader=Zp;exports.SidebarInput=Kp;exports.SidebarInset=Yp;exports.SidebarMenu=Hi;exports.SidebarMenuAction=l0;exports.SidebarMenuBadge=c0;exports.SidebarMenuButton=i0;exports.SidebarMenuSkeleton=d0;exports.SidebarMenuSub=u0;exports.SidebarMenuSubButton=p0;exports.SidebarMenuSubItem=m0;exports.SidebarNavMenu=s0;exports.SidebarNavMenuItem=o0;exports.SidebarProvider=Wp;exports.SidebarRail=Qp;exports.SidebarSeparator=Jp;exports.SidebarTrigger=Up;exports.Skeleton=ra;exports.Slider=Mi;exports.Spinner=ha;exports.Stepper=gp;exports.StepperContent=vp;exports.StepperDescription=kp;exports.StepperIndicator=yp;exports.StepperItem=bp;exports.StepperSeparator=jp;exports.StepperTitle=wp;exports.StreamingMarkdownBlock=ir;exports.Switch=Sn;exports.TYPE_TO_TOKEN_CLASS=sn;exports.Table=In;exports.TableBody=Mn;exports.TableCaption=Wo;exports.TableCell=sa;exports.TableFooter=Go;exports.TableHead=Tn;exports.TableHeader=Rn;exports.TableRow=vt;exports.Tabs=up;exports.TabsContent=li;exports.TabsList=oi;exports.TabsTrigger=ii;exports.Tag=An;exports.TaskPart=ud;exports.TerminalCodeBlockPart=wd;exports.Textarea=On;exports.ThemeStyleProvider=Mm;exports.ThinkingIndicator=pr;exports.Timeline=Np;exports.TimelineConnector=Ip;exports.TimelineContent=Rp;exports.TimelineDescription=Tp;exports.TimelineItem=Cp;exports.TimelineMarker=Sp;exports.TimelineTime=zp;exports.TimelineTitle=Mp;exports.Toaster=ei;exports.Toggle=Lo;exports.ToggleGroup=Ao;exports.ToggleGroupItem=_o;exports.ToolInvocationCard=Uc;exports.Tooltip=uo;exports.TypographyBlockquote=wi;exports.TypographyH1=hi;exports.TypographyH2=gi;exports.TypographyH3=bi;exports.TypographyH4=yi;exports.TypographyInlineCode=Ni;exports.TypographyLarge=Si;exports.TypographyLead=Ci;exports.TypographyList=ji;exports.TypographyMuted=Ri;exports.TypographyP=vi;exports.TypographySmall=Ii;exports.TypographyTable=ki;exports.UserMessage=Dc;exports.UserQuestion=S1;exports.UserQuestionAnswer=ad;exports.alertVariants=yl;exports.badgeVariants=ro;exports.buttonGroupVariants=Js;exports.checkboxVariants=dl;exports.getFileIconColorClass=hd;exports.getMotionMultiplier=km;exports.getReducedMotion=wm;exports.getSetiIcon=rb;exports.getSetiIconColor=sb;exports.getSetiIconType=Va;exports.navigationMenuTriggerStyle=Xl;exports.ratingVariants=Ei;exports.sidebarMenuButtonVariants=Zi;exports.tagVariants=Fi;exports.timelineMarkerVariants=$i;exports.useDirection=Ah;exports.useFormField=Tt;exports.useIcon=I;exports.useIcons=It;exports.useSidebar=Mt;exports.useThemeStyle=me;exports.useVisibleAnchorIndex=od;
|