sparkdesign 0.4.2 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/cli/dist/commands/add.js +11 -2
- package/cli/registry/chat/markdown.tsx +1 -1
- package/cli/registry/chat/tool-invocation-card.tsx +5 -5
- package/cli/registry/meta.json +750 -1
- package/dist/registry/chat/tool-invocation-card.d.ts +1 -1
- package/dist/spark-design.cjs.js +17 -17
- package/dist/spark-design.es.js +1396 -1335
- package/dist/src/components/chat/ToolInvocationCard/index.d.ts +1 -1
- package/dist/src/components/index.d.ts +1 -1
- package/dist/src/lib/ThemeStyleContext.d.ts +121 -8
- package/dist/src/lib/index.d.ts +1 -1
- package/package.json +4 -2
package/dist/spark-design.cjs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),x=require("react"),te=require("framer-motion"),Wi=require("@radix-ui/react-tooltip"),ve=require("clsx"),Zi=require("@radix-ui/react-dropdown-menu"),se=require("class-variance-authority"),Qi=require("@radix-ui/react-alert-dialog"),Yi=require("@radix-ui/react-switch"),ia=require("react-dom"),la=require("sonner"),Ki=require("@radix-ui/react-select"),Xi=require("react-markdown"),Ji=require("remark-gfm"),el=require("remark-math"),tl=require("rehype-katex"),ws=require("lottie-react"),ca=require("react-i18next"),nl=require("@radix-ui/react-avatar"),sl=require("@radix-ui/react-accordion"),al=require("@radix-ui/react-progress"),rl=require("@radix-ui/react-radio-group"),jn=require("react-resizable-panels"),ol=require("@radix-ui/react-slider"),il=require("@radix-ui/react-tabs"),ll=require("@radix-ui/react-toggle"),cl=require("@radix-ui/react-toggle-group");function ue(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const a=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,a.get?a:{enumerable:!0,get:()=>e[s]})}}return t.default=e,Object.freeze(t)}const N=ue(x),qe=ue(Wi),K=ue(Zi),ce=ue(Qi),Ns=ue(Yi),ae=ue(Ki),Ye=ue(nl),at=ue(sl),js=ue(al),xn=ue(rl),wt=ue(ol),Be=ue(il),dl=ue(ll),hn=ue(cl),yn=se.cva("inline-flex items-center justify-center gap-1.5 font-medium transition-colors duration-200 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",ghost:"bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text",text:"bg-transparent text-text-secondary hover: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"},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}}),ne=x.forwardRef(({variant:e="ghost",children:t,size:s="md",textButton:a=!1,prefixIcon:r,suffixIcon:o,rounded:i="square",disabled:l=!1,className:c,...d},p)=>n.jsxs("button",{ref:p,className:yn({variant:a?"text":e,size:s,rounded:i,textOnly:a,className:c}),disabled:l,...d,children:[r&&n.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:r}),t,o&&n.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:o})]}));ne.displayName="Button";const ul=(e,t)=>{const s=new Array(e.length+t.length);for(let a=0;a<e.length;a++)s[a]=e[a];for(let a=0;a<t.length;a++)s[e.length+a]=t[a];return s},pl=(e,t)=>({classGroupId:e,validator:t}),da=(e=new Map,t=null,s)=>({nextPart:e,validators:t,classGroupId:s}),_t="-",Cs=[],ml="arbitrary..",fl=e=>{const t=xl(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return gl(i);const l=i.split(_t),c=l[0]===""&&l.length>1?1:0;return ua(l,c,t)},getConflictingClassGroupIds:(i,l)=>{if(l){const c=a[i],d=s[i];return c?d?ul(d,c):c:d||Cs}return s[i]||Cs}}},ua=(e,t,s)=>{if(e.length-t===0)return s.classGroupId;const r=e[t],o=s.nextPart.get(r);if(o){const d=ua(e,t+1,o);if(d)return d}const i=s.validators;if(i===null)return;const l=t===0?e.join(_t):e.slice(t).join(_t),c=i.length;for(let d=0;d<c;d++){const p=i[d];if(p.validator(l))return p.classGroupId}},gl=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),s=t.indexOf(":"),a=t.slice(0,s);return a?ml+a:void 0})(),xl=e=>{const{theme:t,classGroups:s}=e;return hl(s,t)},hl=(e,t)=>{const s=da();for(const a in e){const r=e[a];Cn(r,s,a,t)}return s},Cn=(e,t,s,a)=>{const r=e.length;for(let o=0;o<r;o++){const i=e[o];yl(i,t,s,a)}},yl=(e,t,s,a)=>{if(typeof e=="string"){bl(e,t,s);return}if(typeof e=="function"){vl(e,t,s,a);return}kl(e,t,s,a)},bl=(e,t,s)=>{const a=e===""?t:pa(t,e);a.classGroupId=s},vl=(e,t,s,a)=>{if(wl(e)){Cn(e(a),t,s,a);return}t.validators===null&&(t.validators=[]),t.validators.push(pl(s,e))},kl=(e,t,s,a)=>{const r=Object.entries(e),o=r.length;for(let i=0;i<o;i++){const[l,c]=r[i];Cn(c,pa(t,l),s,a)}},pa=(e,t)=>{let s=e;const a=t.split(_t),r=a.length;for(let o=0;o<r;o++){const i=a[o];let l=s.nextPart.get(i);l||(l=da(),s.nextPart.set(i,l)),s=l}return s},wl=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Nl=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,s=Object.create(null),a=Object.create(null);const r=(o,i)=>{s[o]=i,t++,t>e&&(t=0,a=s,s=Object.create(null))};return{get(o){let i=s[o];if(i!==void 0)return i;if((i=a[o])!==void 0)return r(o,i),i},set(o,i){o in s?s[o]=i:r(o,i)}}},bn="!",Ss=":",jl=[],Is=(e,t,s,a,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:s,maybePostfixModifierPosition:a,isExternal:r}),Cl=e=>{const{prefix:t,experimentalParseClassName:s}=e;let a=r=>{const o=[];let i=0,l=0,c=0,d;const p=r.length;for(let g=0;g<p;g++){const f=r[g];if(i===0&&l===0){if(f===Ss){o.push(r.slice(c,g)),c=g+1;continue}if(f==="/"){d=g;continue}}f==="["?i++:f==="]"?i--:f==="("?l++:f===")"&&l--}const m=o.length===0?r:r.slice(c);let b=m,w=!1;m.endsWith(bn)?(b=m.slice(0,-1),w=!0):m.startsWith(bn)&&(b=m.slice(1),w=!0);const u=d&&d>c?d-c:void 0;return Is(o,w,b,u)};if(t){const r=t+Ss,o=a;a=i=>i.startsWith(r)?o(i.slice(r.length)):Is(jl,!1,i,void 0,!0)}if(s){const r=a;a=o=>s({className:o,parseClassName:r})}return a},Sl=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((s,a)=>{t.set(s,1e6+a)}),s=>{const a=[];let r=[];for(let o=0;o<s.length;o++){const i=s[o],l=i[0]==="[",c=t.has(i);l||c?(r.length>0&&(r.sort(),a.push(...r),r=[]),a.push(i)):r.push(i)}return r.length>0&&(r.sort(),a.push(...r)),a}},Il=e=>({cache:Nl(e.cacheSize),parseClassName:Cl(e),sortModifiers:Sl(e),...fl(e)}),Rl=/\s+/,Al=(e,t)=>{const{parseClassName:s,getClassGroupId:a,getConflictingClassGroupIds:r,sortModifiers:o}=t,i=[],l=e.trim().split(Rl);let c="";for(let d=l.length-1;d>=0;d-=1){const p=l[d],{isExternal:m,modifiers:b,hasImportantModifier:w,baseClassName:u,maybePostfixModifierPosition:g}=s(p);if(m){c=p+(c.length>0?" "+c:c);continue}let f=!!g,k=a(f?u.substring(0,g):u);if(!k){if(!f){c=p+(c.length>0?" "+c:c);continue}if(k=a(u),!k){c=p+(c.length>0?" "+c:c);continue}f=!1}const h=b.length===0?"":b.length===1?b[0]:o(b).join(":"),v=w?h+bn:h,S=v+k;if(i.indexOf(S)>-1)continue;i.push(S);const C=r(k,f);for(let T=0;T<C.length;++T){const E=C[T];i.push(v+E)}c=p+(c.length>0?" "+c:c)}return c},El=(...e)=>{let t=0,s,a,r="";for(;t<e.length;)(s=e[t++])&&(a=ma(s))&&(r&&(r+=" "),r+=a);return r},ma=e=>{if(typeof e=="string")return e;let t,s="";for(let a=0;a<e.length;a++)e[a]&&(t=ma(e[a]))&&(s&&(s+=" "),s+=t);return s},Tl=(e,...t)=>{let s,a,r,o;const i=c=>{const d=t.reduce((p,m)=>m(p),e());return s=Il(d),a=s.cache.get,r=s.cache.set,o=l,l(c)},l=c=>{const d=a(c);if(d)return d;const p=Al(c,s);return r(c,p),p};return o=i,(...c)=>o(El(...c))},Ll=[],le=e=>{const t=s=>s[e]||Ll;return t.isThemeGetter=!0,t},fa=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ga=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_l=/^\d+\/\d+$/,Pl=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Fl=/\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$/,zl=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Dl=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ml=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ve=e=>_l.test(e),B=e=>!!e&&!Number.isNaN(Number(e)),Ee=e=>!!e&&Number.isInteger(Number(e)),pn=e=>e.endsWith("%")&&B(e.slice(0,-1)),Se=e=>Pl.test(e),xa=()=>!0,Ol=e=>Fl.test(e)&&!zl.test(e),Sn=()=>!1,$l=e=>Dl.test(e),Bl=e=>Ml.test(e),Gl=e=>!L(e)&&!_(e),Hl=e=>Le(e,ba,Sn),L=e=>fa.test(e),De=e=>Le(e,va,Ol),Rs=e=>Le(e,Kl,B),Ul=e=>Le(e,wa,xa),Vl=e=>Le(e,ka,Sn),As=e=>Le(e,ha,Sn),ql=e=>Le(e,ya,Bl),Nt=e=>Le(e,Na,$l),_=e=>ga.test(e),Je=e=>Ge(e,va),Wl=e=>Ge(e,ka),Es=e=>Ge(e,ha),Zl=e=>Ge(e,ba),Ql=e=>Ge(e,ya),jt=e=>Ge(e,Na,!0),Yl=e=>Ge(e,wa,!0),Le=(e,t,s)=>{const a=fa.exec(e);return a?a[1]?t(a[1]):s(a[2]):!1},Ge=(e,t,s=!1)=>{const a=ga.exec(e);return a?a[1]?t(a[1]):s:!1},ha=e=>e==="position"||e==="percentage",ya=e=>e==="image"||e==="url",ba=e=>e==="length"||e==="size"||e==="bg-size",va=e=>e==="length",Kl=e=>e==="number",ka=e=>e==="family-name",wa=e=>e==="number"||e==="weight",Na=e=>e==="shadow",Xl=()=>{const e=le("color"),t=le("font"),s=le("text"),a=le("font-weight"),r=le("tracking"),o=le("leading"),i=le("breakpoint"),l=le("container"),c=le("spacing"),d=le("radius"),p=le("shadow"),m=le("inset-shadow"),b=le("text-shadow"),w=le("drop-shadow"),u=le("blur"),g=le("perspective"),f=le("aspect"),k=le("ease"),h=le("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...S(),_,L],T=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],I=()=>[_,L,c],F=()=>[Ve,"full","auto",...I()],Q=()=>[Ee,"none","subgrid",_,L],z=()=>["auto",{span:["full",Ee,_,L]},Ee,_,L],G=()=>[Ee,"auto",_,L],re=()=>["auto","min","max","fr",_,L],M=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],$=()=>["start","end","center","stretch","center-safe","end-safe"],q=()=>["auto",...I()],ee=()=>[Ve,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],A=()=>[e,_,L],O=()=>[...S(),Es,As,{position:[_,L]}],W=()=>["no-repeat",{repeat:["","x","y","space","round"]}],oe=()=>["auto","cover","contain",Zl,Hl,{size:[_,L]}],Z=()=>[pn,Je,De],V=()=>["","none","full",d,_,L],ie=()=>["",B,Je,De],he=()=>["solid","dashed","dotted","double"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>[B,pn,Es,As],Re=()=>["","none",u,_,L],ge=()=>["none",B,_,L],Ae=()=>["none",B,_,L],D=()=>[B,_,L],P=()=>[Ve,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Se],breakpoint:[Se],color:[xa],container:[Se],"drop-shadow":[Se],ease:["in","out","in-out"],font:[Gl],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Se],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Se],shadow:[Se],spacing:["px",B],text:[Se],"text-shadow":[Se],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ve,L,_,f]}],container:["container"],columns:[{columns:[B,L,_,l]}],"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:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{start:F()}],end:[{end:F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[Ee,"auto",_,L]}],basis:[{basis:[Ve,"full","auto",l,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[B,Ve,"auto","initial","none",L]}],grow:[{grow:["",B,_,L]}],shrink:[{shrink:["",B,_,L]}],order:[{order:[Ee,"first","last","none",_,L]}],"grid-cols":[{"grid-cols":Q()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":Q()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":re()}],"auto-rows":[{"auto-rows":re()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...M(),"normal"]}],"justify-items":[{"justify-items":[...$(),"normal"]}],"justify-self":[{"justify-self":["auto",...$()]}],"align-content":[{content:["normal",...M()]}],"align-items":[{items:[...$(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...$(),{baseline:["","last"]}]}],"place-content":[{"place-content":M()}],"place-items":[{"place-items":[...$(),"baseline"]}],"place-self":[{"place-self":["auto",...$()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:q()}],mx:[{mx:q()}],my:[{my:q()}],ms:[{ms:q()}],me:[{me:q()}],mt:[{mt:q()}],mr:[{mr:q()}],mb:[{mb:q()}],ml:[{ml:q()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:ee()}],w:[{w:[l,"screen",...ee()]}],"min-w":[{"min-w":[l,"screen","none",...ee()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...ee()]}],h:[{h:["screen","lh",...ee()]}],"min-h":[{"min-h":["screen","lh","none",...ee()]}],"max-h":[{"max-h":["screen","lh",...ee()]}],"font-size":[{text:["base",s,Je,De]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,Yl,Ul]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",pn,L]}],"font-family":[{font:[Wl,Vl,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,_,L]}],"line-clamp":[{"line-clamp":[B,"none",_,Rs]}],leading:[{leading:[o,...I()]}],"list-image":[{"list-image":["none",_,L]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",_,L]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:[B,"from-font","auto",_,De]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[B,"auto",_,L]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_,L]}],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",_,L]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:O()}],"bg-repeat":[{bg:W()}],"bg-size":[{bg:oe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ee,_,L],radial:["",_,L],conic:[Ee,_,L]},Ql,ql]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:Z()}],"gradient-via-pos":[{via:Z()}],"gradient-to-pos":[{to:Z()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:V()}],"rounded-s":[{"rounded-s":V()}],"rounded-e":[{"rounded-e":V()}],"rounded-t":[{"rounded-t":V()}],"rounded-r":[{"rounded-r":V()}],"rounded-b":[{"rounded-b":V()}],"rounded-l":[{"rounded-l":V()}],"rounded-ss":[{"rounded-ss":V()}],"rounded-se":[{"rounded-se":V()}],"rounded-ee":[{"rounded-ee":V()}],"rounded-es":[{"rounded-es":V()}],"rounded-tl":[{"rounded-tl":V()}],"rounded-tr":[{"rounded-tr":V()}],"rounded-br":[{"rounded-br":V()}],"rounded-bl":[{"rounded-bl":V()}],"border-w":[{border:ie()}],"border-w-x":[{"border-x":ie()}],"border-w-y":[{"border-y":ie()}],"border-w-s":[{"border-s":ie()}],"border-w-e":[{"border-e":ie()}],"border-w-t":[{"border-t":ie()}],"border-w-r":[{"border-r":ie()}],"border-w-b":[{"border-b":ie()}],"border-w-l":[{"border-l":ie()}],"divide-x":[{"divide-x":ie()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ie()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...he(),"hidden","none"]}],"divide-style":[{divide:[...he(),"hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...he(),"none","hidden"]}],"outline-offset":[{"outline-offset":[B,_,L]}],"outline-w":[{outline:["",B,Je,De]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",p,jt,Nt]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",m,jt,Nt]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:ie()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[B,De]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":ie()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",b,jt,Nt]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[B,_,L]}],"mix-blend":[{"mix-blend":[...fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fe()}],"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":[B]}],"mask-image-linear-from-pos":[{"mask-linear-from":Y()}],"mask-image-linear-to-pos":[{"mask-linear-to":Y()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":Y()}],"mask-image-t-to-pos":[{"mask-t-to":Y()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":Y()}],"mask-image-r-to-pos":[{"mask-r-to":Y()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":Y()}],"mask-image-b-to-pos":[{"mask-b-to":Y()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":Y()}],"mask-image-l-to-pos":[{"mask-l-to":Y()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":Y()}],"mask-image-x-to-pos":[{"mask-x-to":Y()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":Y()}],"mask-image-y-to-pos":[{"mask-y-to":Y()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[_,L]}],"mask-image-radial-from-pos":[{"mask-radial-from":Y()}],"mask-image-radial-to-pos":[{"mask-radial-to":Y()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"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":S()}],"mask-image-conic-pos":[{"mask-conic":[B]}],"mask-image-conic-from-pos":[{"mask-conic-from":Y()}],"mask-image-conic-to-pos":[{"mask-conic-to":Y()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:O()}],"mask-repeat":[{mask:W()}],"mask-size":[{mask:oe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",_,L]}],filter:[{filter:["","none",_,L]}],blur:[{blur:Re()}],brightness:[{brightness:[B,_,L]}],contrast:[{contrast:[B,_,L]}],"drop-shadow":[{"drop-shadow":["","none",w,jt,Nt]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",B,_,L]}],"hue-rotate":[{"hue-rotate":[B,_,L]}],invert:[{invert:["",B,_,L]}],saturate:[{saturate:[B,_,L]}],sepia:[{sepia:["",B,_,L]}],"backdrop-filter":[{"backdrop-filter":["","none",_,L]}],"backdrop-blur":[{"backdrop-blur":Re()}],"backdrop-brightness":[{"backdrop-brightness":[B,_,L]}],"backdrop-contrast":[{"backdrop-contrast":[B,_,L]}],"backdrop-grayscale":[{"backdrop-grayscale":["",B,_,L]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[B,_,L]}],"backdrop-invert":[{"backdrop-invert":["",B,_,L]}],"backdrop-opacity":[{"backdrop-opacity":[B,_,L]}],"backdrop-saturate":[{"backdrop-saturate":[B,_,L]}],"backdrop-sepia":[{"backdrop-sepia":["",B,_,L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",_,L]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[B,"initial",_,L]}],ease:[{ease:["linear","initial",k,_,L]}],delay:[{delay:[B,_,L]}],animate:[{animate:["none",h,_,L]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,_,L]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:ge()}],"rotate-x":[{"rotate-x":ge()}],"rotate-y":[{"rotate-y":ge()}],"rotate-z":[{"rotate-z":ge()}],scale:[{scale:Ae()}],"scale-x":[{"scale-x":Ae()}],"scale-y":[{"scale-y":Ae()}],"scale-z":[{"scale-z":Ae()}],"scale-3d":["scale-3d"],skew:[{skew:D()}],"skew-x":[{"skew-x":D()}],"skew-y":[{"skew-y":D()}],transform:[{transform:[_,L,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:P()}],"translate-x":[{"translate-x":P()}],"translate-y":[{"translate-y":P()}],"translate-z":[{"translate-z":P()}],"translate-none":["translate-none"],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"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",_,L]}],"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":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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",_,L]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[B,Je,De,Rs]}],stroke:[{stroke:["none",...A()]}],"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"]}},Jl=Tl(Xl);function y(...e){return Jl(ve.clsx(e))}const ec=se.cva("flex-none shrink-0 inline-flex items-center justify-center box-border transition-colors duration-200 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"},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"}}),Ne=x.forwardRef(({variant:e="secondary",size:t="md",rounded:s="square",icon:a,disabled:r=!1,className:o,...i},l)=>n.jsx("button",{ref:l,className:y(ec({variant:e,size:t,rounded:s}),o),disabled:r,...i,children:n.jsx("span",{className:"inline-flex shrink-0 size-full items-center justify-center",children:a})}));Ne.displayName="IconButton";function Ke(){if(typeof document>"u")return{};const e=document.documentElement,t={},s=e.getAttribute("data-theme"),a=e.getAttribute("data-style");return s&&(t["data-theme"]=s),a&&(t["data-style"]=a),t}const tc=qe.Provider,nc=qe.Root,sc=qe.Trigger,ja=N.forwardRef(({className:e,sideOffset:t=8,children:s,dataStyle:a,dataTheme:r,...o},i)=>{const l=Ke(),c=a!==void 0?{"data-style":a,"data-theme":r??l["data-theme"]??""}:l;return n.jsx(qe.Portal,{children:n.jsx("div",{style:{display:"contents"},...c,children:n.jsx(qe.Content,{ref:i,sideOffset:t,className:y("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(te.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.15},children:s})})})})});ja.displayName=qe.Content.displayName;function rt({content:e,children:t,side:s="top",contentClassName:a,dataStyle:r,dataTheme:o}){return n.jsx(tc,{delayDuration:300,children:n.jsxs(nc,{children:[n.jsx(sc,{asChild:!0,children:t}),n.jsx(ja,{side:s,className:a,dataStyle:r,dataTheme:o,children:e})]})})}rt.displayName="Tooltip";const Ca=x.createContext(null);function ac({children:e,value:t}){return n.jsx(Ca.Provider,{value:t,children:e})}function me(){return x.useContext(Ca)??{}}function In({placement:e,side:t=e??"top",...s}){const{style:a,theme:r}=me();return n.jsx(rt,{side:t,dataStyle:a,dataTheme:r,...s})}In.displayName="Tooltip";function Ts(e,t){e&&(typeof e=="function"?e(t):e.current=t)}const Sa=x.forwardRef(({children:e,lines:t=1,className:s="",placement:a="top",tooltipClassName:r="",tooltipContent:o,disabled:i=!1,style:l,as:c="span"},d)=>{const p=x.useRef(null),[m,b]=x.useState(!1),w=x.useCallback(()=>{const h=p.current;if(!h)return;const v=t===1?h.scrollWidth>h.clientWidth:h.scrollHeight>h.clientHeight;b(v)},[t]);x.useEffect(()=>{const h=requestAnimationFrame(()=>w()),v=p.current;if(!v)return()=>cancelAnimationFrame(h);const S=new ResizeObserver(()=>w());return S.observe(v),window.addEventListener("resize",w),()=>{cancelAnimationFrame(h),S.disconnect(),window.removeEventListener("resize",w)}},[w,e]);const u=t===1?{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",...l}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:t,WebkitBoxOrient:"vertical",...l},g=x.useCallback(h=>{Ts(p,h),Ts(d,h)},[d]),f=n.jsx(c,{ref:g,className:s,style:u,children:e});return m&&!i?n.jsx(In,{content:o??e,placement:a,contentClassName:ve.clsx(r),children:n.jsx("span",{ref:g,className:s,style:u,children:e})}):f});Sa.displayName="EllipsisText";const rc="flex flex-col gap-1",oc=se.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}}),ic=se.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}}),Rn=x.forwardRef(({items:e,selectedIds:t=[],focusedId:s,onItemClick:a,showPrefix:r=!0,disabled:o=!1,className:i,...l},c)=>{const d=p=>String(p+1);return n.jsx("div",{ref:c,role:"listbox","aria-multiselectable":t.length>1,className:y(rc,i),...l,children:e.map((p,m)=>{const b=t.includes(p.id),w=s===p.id,u=o||p.disabled,f=t.length>0&&!b&&!u;return n.jsxs("button",{type:"button",role:"option","aria-selected":b,"aria-disabled":u,onClick:()=>{u||a?.(p,m)},disabled:u,className:y(oc({selected:b,disabled:u,dimmed:f}),w&&"bg-fill-tertiary"),children:[n.jsxs("div",{className:"flex items-center gap-3",children:[r&&n.jsx("div",{className:ic({selected:b}),children:d(m)}),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)})})});Rn.displayName="OptionList";const lc="0 0 24 24",cc="1em";function U(e,t){const s=N.forwardRef(({className:a,size:r=cc,...o},i)=>n.jsx("svg",{ref:i,viewBox:lc,width:r,height:r,fill:"currentColor",className:a,xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,...o,children:n.jsx("path",{d:e})}));return s.displayName=t,s}U("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 An=U("M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z","ArrowUpLine"),Xe=U("M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z","ArrowRightLine"),dc=U("M7.82843 10.9999H20V12.9999H7.82843L13.1924 18.3638L11.7782 19.778L4 11.9999L11.7782 4.22168L13.1924 5.63589L7.82843 10.9999Z","ArrowLeftLine"),Ie=U("M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z","CheckLine"),_e=U("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"),Ia=U("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"),uc=U("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"),Ra=U("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"),Aa=U("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"),pc=U("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"),mc=U("M6 6h12v12H6V6Zm2 2v8h8V8H8Z","StopLine"),fc=U("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"),Ea=U("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"),Ta=U("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"),En=U("M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm4 18H6V4h7v5h5v11z","FileLine"),La=U("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"),it=U("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"),je=U("M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z","ArrowDownSLine"),Tn=U("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"),_a=U("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"),Bt=U("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"),Pa=U("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"),Fa=U("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"),gc=U("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"),za=U("M7 14h10v2H7v-2zm0-4h10v2H7v-2zm0-4h10v2H7V6zm-4 12h2v2H3v-2zm0-4h2v2H3v-2zm0-4h2v2H3v-2zm0-4h2v2H3V6z","RequestChangesLine"),Da=U("M3 5h2v2H3V5zm4 0h14v2H7V5zm-4 6h2v2H3v-2zm4 0h14v2H7v-2zm-4 6h2v2H3v-2zm4 0h14v2H7v-2z","CatalogLine"),Ma=U("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"),Oa=U("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"),$a=U("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"),Gt=U("M3 4h14v2H3V4zm0 4h14v2H3V8zm0 4h10v2H3v-2zm0 4h8v2H3v-2z","FileList2Line"),Ba=U("M13 10h5l-6 6-6-6h5V3h2v7zM4 19h16v2H4v-2z","DownloadLine"),Ga=U("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"),Ha=U("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"),Ua=U("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"),Va=U("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"),qa=U("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"),Oe=K.Root,$e=K.Trigger,xc=K.Group,hc=K.Portal,Wa=K.Sub,yc=K.RadioGroup,Za="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",Te=N.forwardRef(({className:e,sideOffset:t=4,children:s,dataStyle:a,dataTheme:r,...o},i)=>{const l=Ke(),c=a!==void 0?{"data-style":a,"data-theme":r??l["data-theme"]??""}:l;return n.jsx(K.Portal,{children:n.jsx("div",{style:{display:"contents"},...c,children:n.jsx(K.Content,{ref:i,sideOffset:t,className:y(Za,e),...o,children:n.jsx(te.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.15,ease:[.4,0,.2,1]},children:s})})})})});Te.displayName=K.Content.displayName;const bc=se.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}}),Ln=N.forwardRef(({className:e,inset:t=!1,children:s,subTriggerIcon:a,...r},o)=>n.jsxs(K.SubTrigger,{ref:o,className:bc({inset:t,className:e}),...r,children:[s,n.jsx("span",{className:"ml-auto flex h-4 w-4 items-center justify-center",children:a??n.jsx(Xe,{className:"h-4 w-4"})})]}));Ln.displayName=K.SubTrigger.displayName;const _n=N.forwardRef(({className:e,sideOffset:t=-1,dataStyle:s,dataTheme:a,...r},o)=>{const i=Ke(),l=s!==void 0?{"data-style":s,"data-theme":a??i["data-theme"]??""}:i;return n.jsx(K.Portal,{children:n.jsx("div",{style:{display:"contents"},...l,children:n.jsx(K.SubContent,{ref:o,sideOffset:t,className:y(Za,e),...r})})})});_n.displayName=K.SubContent.displayName;const vc=se.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}}),ke=N.forwardRef(({className:e,inset:t=!1,variant:s="default",...a},r)=>n.jsx(K.Item,{ref:r,className:vc({variant:s,inset:t,className:e}),...a}));ke.displayName=K.Item.displayName;const Qa="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",Ya=N.forwardRef(({className:e,children:t,checked:s,checkIcon:a,...r},o)=>n.jsxs(K.CheckboxItem,{ref:o,className:y(Qa,e),checked:s,...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(K.ItemIndicator,{children:a??n.jsx(Ie,{className:"h-4 w-4"})})}),t]}));Ya.displayName=K.CheckboxItem.displayName;const Ka=N.forwardRef(({className:e,children:t,...s},a)=>n.jsxs(K.RadioItem,{ref:a,className:y(Qa,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("div",{className:"h-2 w-2 rounded-full bg-primary"})})}),t]}));Ka.displayName=K.RadioItem.displayName;const kc=se.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}}),Xa=N.forwardRef(({className:e,inset:t=!1,...s},a)=>n.jsx(K.Label,{ref:a,className:kc({inset:t,className:e}),...s}));Xa.displayName=K.Label.displayName;const Ja=N.forwardRef(({className:e,...t},s)=>n.jsx(K.Separator,{ref:s,className:y("my-1 mx-1 h-px bg-border-tertiary",e),...t}));Ja.displayName=K.Separator.displayName;const er=({className:e,...t})=>n.jsx("span",{className:y("ml-auto text-xs tracking-widest text-text-tertiary",e),...t});er.displayName="DropdownMenuShortcut";const tr=x.createContext(null);function wc({value:e,children:t}){return n.jsx(tr.Provider,{value:e,children:t})}function lt(){return x.useContext(tr)??{icons:{}}}function R(e,t){const{icons:s}=lt(),a=s[e];if(a)return n.jsx(a,{className:t,"aria-hidden":!0})}const nr=N.forwardRef((e,t)=>{const{style:s,theme:a}=me();return n.jsx(Te,{ref:t,dataStyle:s,dataTheme:a,...e})});nr.displayName="DropdownMenuContent";function Nc(e){const t=R("arrowRight","h-4 w-4 shrink-0"),s=e.subTriggerIcon??t;return n.jsx(Ln,{...e,subTriggerIcon:s})}const sr=N.forwardRef((e,t)=>{const{style:s,theme:a}=me();return n.jsx(_n,{ref:t,dataStyle:s,dataTheme:a,...e})});sr.displayName="DropdownMenuSubContent";const ar=ce.Root,jc=ce.Trigger,rr=ce.Portal,Pn=N.forwardRef(({className:e,...t},s)=>n.jsx(ce.Overlay,{ref:s,asChild:!0,...t,children:n.jsx(te.motion.div,{className:y("fixed inset-0 z-50 bg-bg-mask/60",e),initial:{opacity:0},animate:{opacity:1},transition:{duration:.15}})}));Pn.displayName=ce.Overlay.displayName;const Cc=se.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"}}),Fn=N.forwardRef(({className:e,children:t,size:s="default",dataStyle:a,dataTheme:r,...o},i)=>{const l=Ke(),c=a!==void 0?{"data-style":a,"data-theme":r??l["data-theme"]??""}:l;return n.jsx(rr,{children:n.jsxs("div",{style:{display:"contents"},...c,children:[n.jsx(Pn,{}),n.jsx(ce.Content,{ref:i,asChild:!0,...o,children:n.jsx(te.motion.div,{className:y(Cc({size:s}),e),initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.2,ease:[.4,0,.2,1]},children:t})})]})})});Fn.displayName=ce.Content.displayName;const zn=N.forwardRef(({className:e,...t},s)=>n.jsx("div",{ref:s,className:y("flex flex-col gap-2",e),...t}));zn.displayName="AlertDialogHeader";const Dn=N.forwardRef(({className:e,...t},s)=>n.jsx("div",{ref:s,className:y("mt-6 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t}));Dn.displayName="AlertDialogFooter";const Mn=N.forwardRef(({className:e,...t},s)=>n.jsx(ce.Title,{ref:s,className:y("font-sans text-base font-medium leading-6 text-text",e),...t}));Mn.displayName=ce.Title.displayName;const On=N.forwardRef(({className:e,...t},s)=>n.jsx(ce.Description,{ref:s,className:y("text-sm leading-6 text-text-tertiary",e),...t}));On.displayName=ce.Description.displayName;const Sc=se.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}}),or=N.forwardRef(({className:e,destructive:t=!1,...s},a)=>n.jsx(ce.Action,{ref:a,className:y(Sc({destructive:t}),e),...s}));or.displayName=ce.Action.displayName;const $n=N.forwardRef(({className:e,...t},s)=>n.jsx(ce.Cancel,{ref:s,className:y("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}));$n.displayName=ce.Cancel.displayName;const ir=N.forwardRef((e,t)=>{const{style:s,theme:a}=me();return n.jsx(Fn,{ref:t,dataStyle:s,dataTheme:a,...e})});ir.displayName="AlertDialogContent";const lr=N.forwardRef(({className:e,...t},s)=>n.jsx("div",{ref:s,className:y("mb-4 inline-flex h-10 w-10 items-center justify-center rounded-lg bg-fill-tertiary text-text",e),...t}));lr.displayName="AlertDialogMedia";function cr({className:e,...t}){return n.jsx("kbd",{className:y("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})}cr.displayName="Kbd";function dr({className:e,children:t,separator:s="+",...a}){const r=N.Children.toArray(t);return n.jsx("span",{className:y("inline-flex items-center gap-1",e),...a,children:r.map((o,i)=>n.jsxs(N.Fragment,{children:[o,i<r.length-1&&n.jsx("span",{className:"select-none !font-sans text-xs font-medium text-text-secondary",children:s})]},i))})}dr.displayName="KbdGroup";const tt={fast:.15,base:.2,slow:.3},nt={standard:[.16,1,.3,1],emphasized:[.2,.8,.2,1],out:[0,0,.2,1]},ur={snappy:{type:"spring",stiffness:520,damping:34,mass:.7}},Ic=se.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"}}),Rc=se.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"}}),pr=N.forwardRef(({className:e,size:t="md",disabled:s=!1,...a},r)=>n.jsx(Ns.Root,{ref:r,className:y(Ic({size:t}),e),disabled:s,...a,children:n.jsx(Ns.Thumb,{className:Rc({size:t})})}));pr.displayName="Switch";const Ls={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 Ac(e){if(e==="normal"||!e)return 0;const t=parseFloat(e);return e.endsWith("px")?t:e.endsWith("rem")?t*16:t}const Bn=N.forwardRef(({variant:e="toggle",className:t,size:s="md",options:a,value:r,defaultValue:o="preview",onValueChange:i,segmentSize:l="md",disabled:c=!1,...d},p)=>{const{style:m,theme:b}=me(),w={};if(m&&(w["data-style"]=m),b&&(w["data-theme"]=b),e==="toggle")return n.jsx("div",{ref:p,...w,className:"inline-flex",children:n.jsx(pr,{size:s,className:t,disabled:c,...d})});const u=Ls[l].iconClass,g=n.jsx(uc,{className:u}),f=n.jsx(Ra,{className:u}),[k,h]=N.useState(o),v=N.useRef(null),[S,C]=N.useState({buttonWidth:24,gapPx:2});N.useLayoutEffect(()=>{if(!v.current)return;const O=v.current,W=O.querySelector("button"),oe=W?Ac(getComputedStyle(O).gap):0,Z=W?.offsetWidth??24;C(V=>V.buttonWidth===Z&&V.gapPx===oe?V:{buttonWidth:Z,gapPx:oe})},[m,l,a?.length]);const T=[{value:"code",label:"Code",icon:g},{value:"preview",label:"Preview",icon:f}],E=a?.length?a:T,I=r!==void 0,F=(I?r:k)??o,Q=O=>{c||(I||h(O),i?.(O))},z=E.findIndex(O=>O.value===F),G=z>=0?z:0,re=Ls[l],{buttonClass:M,trackClass:$,thumbClass:q,buttonRounded:ee}=re,A=G*(S.buttonWidth+S.gapPx);return n.jsx("div",{ref:p,...w,className:"inline-flex",children:n.jsxs("div",{ref:v,role:"radiogroup","aria-disabled":c||void 0,className:ve.clsx("relative inline-flex items-center",$,"bg-fill-secondary",c?"opacity-50 cursor-not-allowed":"cursor-pointer",t),...d,children:[n.jsx(te.motion.span,{className:ve.clsx("absolute left-0.5 bg-bg-base shadow-sm",q),initial:!1,animate:{x:A},transition:{type:"tween",duration:tt.base,ease:nt.out}}),E.map(O=>{const W=O.value===F;return n.jsx("button",{type:"button",role:"radio","aria-checked":W,"aria-label":O.label,disabled:c,onClick:()=>Q(O.value),className:ve.clsx("relative z-10 inline-flex items-center justify-center",ee,M,"transition-colors","focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-border",W?"text-primary-active":"text-text-secondary"),children:n.jsx("span",{className:"inline-flex items-center justify-center",children:O.icon})},O.value)})]})})});Bn.displayName="Switch";function Ec({size:e="md",value:t,defaultValue:s="preview",onValueChange:a,disabled:r=!1,className:o,...i}){return n.jsx(Bn,{variant:"segment",segmentSize:e,value:t,defaultValue:s,onValueChange:a,disabled:r,className:o,...i})}const mr=se.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"}}),fr=x.forwardRef(({variant:e="default",size:t="md",rounded:s="square",className:a,prefixIcon:r,suffixIcon:o,children:i,...l},c)=>n.jsxs(dl.Root,{ref:c,className:mr({variant:e,size:t,rounded:s,className:a}),...l,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})]}));fr.displayName="Toggle";const gr=x.createContext(null),Tc={none:"gap-0",sm:"gap-1",md:"gap-2"},Lc=["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(" "),xr=x.forwardRef(({type:e="single",variant:t="default",size:s="md",rounded:a="square",spacing:r="none",className:o,orientation:i="horizontal",children:l,...c},d)=>{const p=y("group/toggle-group inline-flex w-fit",i==="horizontal"?"flex-row":"flex-col",i==="vertical"&&"items-stretch",Tc[r],o),m={ref:d,orientation:i,"data-spacing":r==="none"?"0":r,"data-orientation":i,"data-variant":t,"data-size":s,className:p};return n.jsx(gr.Provider,{value:{variant:t,size:s,rounded:a,spacing:r},children:e==="multiple"?n.jsx(hn.Root,{...m,...c,type:"multiple",children:l}):n.jsx(hn.Root,{...m,...c,type:"single",children:l})})});xr.displayName="ToggleGroup";const hr=x.forwardRef(({variant:e,size:t,rounded:s,className:a,prefixIcon:r,suffixIcon:o,children:i,...l},c)=>{const d=x.useContext(gr),p=e??d?.variant??"default",m=t??d?.size??"md",b=s??d?.rounded??"square";return n.jsxs(hn.Item,{ref:c,"data-variant":p,"data-size":m,className:y(mr({variant:p,size:m,rounded:b}),d&&Lc,"focus-visible:z-10",a),...l,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})]})});hr.displayName="ToggleGroupItem";const _c=se.cva("grid gap-2",{variants:{orientation:{vertical:"grid-flow-row",horizontal:"grid-flow-col auto-cols-max"}},defaultVariants:{orientation:"vertical"}}),Pc=se.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"}}),Fc={sm:"size-1.5",md:"size-2",lg:"size-2.5"},yr=N.forwardRef(({className:e,orientation:t="vertical",...s},a)=>n.jsx(xn.Root,{ref:a,className:y(_c({orientation:t,className:e})),orientation:t??"vertical",...s}));yr.displayName="RadioGroup";const br=N.forwardRef(({className:e,size:t="md",...s},a)=>n.jsx(xn.Item,{ref:a,className:y(Pc({size:t,className:e})),...s,children:n.jsx(xn.Indicator,{className:"flex items-center justify-center",children:n.jsx("span",{className:y("rounded-full bg-current",Fc[t??"md"])})})}));br.displayName="RadioGroupItem";const _s=`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),x=require("react"),te=require("framer-motion"),Qi=require("@radix-ui/react-tooltip"),ke=require("clsx"),Yi=require("@radix-ui/react-dropdown-menu"),se=require("class-variance-authority"),Ki=require("@radix-ui/react-alert-dialog"),Xi=require("@radix-ui/react-switch"),ia=require("react-dom"),la=require("sonner"),Ji=require("@radix-ui/react-select"),el=require("react-markdown"),tl=require("remark-gfm"),nl=require("remark-math"),sl=require("rehype-katex"),ws=require("lottie-react"),ca=require("react-i18next"),al=require("@radix-ui/react-avatar"),rl=require("@radix-ui/react-accordion"),ol=require("@radix-ui/react-progress"),il=require("@radix-ui/react-radio-group"),jn=require("react-resizable-panels"),ll=require("@radix-ui/react-slider"),cl=require("@radix-ui/react-tabs"),dl=require("@radix-ui/react-toggle"),ul=require("@radix-ui/react-toggle-group");function ue(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const a=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,a.get?a:{enumerable:!0,get:()=>e[s]})}}return t.default=e,Object.freeze(t)}const N=ue(x),qe=ue(Qi),K=ue(Yi),ce=ue(Ki),Ns=ue(Xi),ae=ue(Ji),Ye=ue(al),st=ue(rl),js=ue(ol),xn=ue(il),wt=ue(ll),Be=ue(cl),pl=ue(dl),hn=ue(ul),yn=se.cva("inline-flex items-center justify-center gap-1.5 font-medium transition-colors duration-200 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",ghost:"bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text",text:"bg-transparent text-text-secondary hover: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"},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}}),ne=x.forwardRef(({variant:e="ghost",children:t,size:s="md",textButton:a=!1,prefixIcon:r,suffixIcon:o,rounded:i="square",disabled:l=!1,className:c,...d},p)=>n.jsxs("button",{ref:p,className:yn({variant:a?"text":e,size:s,rounded:i,textOnly:a,className:c}),disabled:l,...d,children:[r&&n.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:r}),t,o&&n.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:o})]}));ne.displayName="Button";const ml=(e,t)=>{const s=new Array(e.length+t.length);for(let a=0;a<e.length;a++)s[a]=e[a];for(let a=0;a<t.length;a++)s[e.length+a]=t[a];return s},fl=(e,t)=>({classGroupId:e,validator:t}),da=(e=new Map,t=null,s)=>({nextPart:e,validators:t,classGroupId:s}),_t="-",Cs=[],gl="arbitrary..",xl=e=>{const t=yl(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return hl(i);const l=i.split(_t),c=l[0]===""&&l.length>1?1:0;return ua(l,c,t)},getConflictingClassGroupIds:(i,l)=>{if(l){const c=a[i],d=s[i];return c?d?ml(d,c):c:d||Cs}return s[i]||Cs}}},ua=(e,t,s)=>{if(e.length-t===0)return s.classGroupId;const r=e[t],o=s.nextPart.get(r);if(o){const d=ua(e,t+1,o);if(d)return d}const i=s.validators;if(i===null)return;const l=t===0?e.join(_t):e.slice(t).join(_t),c=i.length;for(let d=0;d<c;d++){const p=i[d];if(p.validator(l))return p.classGroupId}},hl=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),s=t.indexOf(":"),a=t.slice(0,s);return a?gl+a:void 0})(),yl=e=>{const{theme:t,classGroups:s}=e;return bl(s,t)},bl=(e,t)=>{const s=da();for(const a in e){const r=e[a];Cn(r,s,a,t)}return s},Cn=(e,t,s,a)=>{const r=e.length;for(let o=0;o<r;o++){const i=e[o];vl(i,t,s,a)}},vl=(e,t,s,a)=>{if(typeof e=="string"){kl(e,t,s);return}if(typeof e=="function"){wl(e,t,s,a);return}Nl(e,t,s,a)},kl=(e,t,s)=>{const a=e===""?t:pa(t,e);a.classGroupId=s},wl=(e,t,s,a)=>{if(jl(e)){Cn(e(a),t,s,a);return}t.validators===null&&(t.validators=[]),t.validators.push(fl(s,e))},Nl=(e,t,s,a)=>{const r=Object.entries(e),o=r.length;for(let i=0;i<o;i++){const[l,c]=r[i];Cn(c,pa(t,l),s,a)}},pa=(e,t)=>{let s=e;const a=t.split(_t),r=a.length;for(let o=0;o<r;o++){const i=a[o];let l=s.nextPart.get(i);l||(l=da(),s.nextPart.set(i,l)),s=l}return s},jl=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Cl=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,s=Object.create(null),a=Object.create(null);const r=(o,i)=>{s[o]=i,t++,t>e&&(t=0,a=s,s=Object.create(null))};return{get(o){let i=s[o];if(i!==void 0)return i;if((i=a[o])!==void 0)return r(o,i),i},set(o,i){o in s?s[o]=i:r(o,i)}}},bn="!",Ss=":",Sl=[],Is=(e,t,s,a,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:s,maybePostfixModifierPosition:a,isExternal:r}),Il=e=>{const{prefix:t,experimentalParseClassName:s}=e;let a=r=>{const o=[];let i=0,l=0,c=0,d;const p=r.length;for(let g=0;g<p;g++){const f=r[g];if(i===0&&l===0){if(f===Ss){o.push(r.slice(c,g)),c=g+1;continue}if(f==="/"){d=g;continue}}f==="["?i++:f==="]"?i--:f==="("?l++:f===")"&&l--}const m=o.length===0?r:r.slice(c);let b=m,w=!1;m.endsWith(bn)?(b=m.slice(0,-1),w=!0):m.startsWith(bn)&&(b=m.slice(1),w=!0);const u=d&&d>c?d-c:void 0;return Is(o,w,b,u)};if(t){const r=t+Ss,o=a;a=i=>i.startsWith(r)?o(i.slice(r.length)):Is(Sl,!1,i,void 0,!0)}if(s){const r=a;a=o=>s({className:o,parseClassName:r})}return a},Rl=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((s,a)=>{t.set(s,1e6+a)}),s=>{const a=[];let r=[];for(let o=0;o<s.length;o++){const i=s[o],l=i[0]==="[",c=t.has(i);l||c?(r.length>0&&(r.sort(),a.push(...r),r=[]),a.push(i)):r.push(i)}return r.length>0&&(r.sort(),a.push(...r)),a}},Al=e=>({cache:Cl(e.cacheSize),parseClassName:Il(e),sortModifiers:Rl(e),...xl(e)}),El=/\s+/,Tl=(e,t)=>{const{parseClassName:s,getClassGroupId:a,getConflictingClassGroupIds:r,sortModifiers:o}=t,i=[],l=e.trim().split(El);let c="";for(let d=l.length-1;d>=0;d-=1){const p=l[d],{isExternal:m,modifiers:b,hasImportantModifier:w,baseClassName:u,maybePostfixModifierPosition:g}=s(p);if(m){c=p+(c.length>0?" "+c:c);continue}let f=!!g,k=a(f?u.substring(0,g):u);if(!k){if(!f){c=p+(c.length>0?" "+c:c);continue}if(k=a(u),!k){c=p+(c.length>0?" "+c:c);continue}f=!1}const h=b.length===0?"":b.length===1?b[0]:o(b).join(":"),v=w?h+bn:h,S=v+k;if(i.indexOf(S)>-1)continue;i.push(S);const C=r(k,f);for(let T=0;T<C.length;++T){const E=C[T];i.push(v+E)}c=p+(c.length>0?" "+c:c)}return c},Ll=(...e)=>{let t=0,s,a,r="";for(;t<e.length;)(s=e[t++])&&(a=ma(s))&&(r&&(r+=" "),r+=a);return r},ma=e=>{if(typeof e=="string")return e;let t,s="";for(let a=0;a<e.length;a++)e[a]&&(t=ma(e[a]))&&(s&&(s+=" "),s+=t);return s},_l=(e,...t)=>{let s,a,r,o;const i=c=>{const d=t.reduce((p,m)=>m(p),e());return s=Al(d),a=s.cache.get,r=s.cache.set,o=l,l(c)},l=c=>{const d=a(c);if(d)return d;const p=Tl(c,s);return r(c,p),p};return o=i,(...c)=>o(Ll(...c))},Pl=[],le=e=>{const t=s=>s[e]||Pl;return t.isThemeGetter=!0,t},fa=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ga=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Fl=/^\d+\/\d+$/,zl=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Dl=/\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$/,Ml=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ol=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$l=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ve=e=>Fl.test(e),B=e=>!!e&&!Number.isNaN(Number(e)),Ee=e=>!!e&&Number.isInteger(Number(e)),pn=e=>e.endsWith("%")&&B(e.slice(0,-1)),Se=e=>zl.test(e),xa=()=>!0,Bl=e=>Dl.test(e)&&!Ml.test(e),Sn=()=>!1,Gl=e=>Ol.test(e),Hl=e=>$l.test(e),Ul=e=>!L(e)&&!_(e),Vl=e=>Le(e,ba,Sn),L=e=>fa.test(e),De=e=>Le(e,va,Bl),Rs=e=>Le(e,Jl,B),ql=e=>Le(e,wa,xa),Wl=e=>Le(e,ka,Sn),As=e=>Le(e,ha,Sn),Zl=e=>Le(e,ya,Hl),Nt=e=>Le(e,Na,Gl),_=e=>ga.test(e),Xe=e=>Ge(e,va),Ql=e=>Ge(e,ka),Es=e=>Ge(e,ha),Yl=e=>Ge(e,ba),Kl=e=>Ge(e,ya),jt=e=>Ge(e,Na,!0),Xl=e=>Ge(e,wa,!0),Le=(e,t,s)=>{const a=fa.exec(e);return a?a[1]?t(a[1]):s(a[2]):!1},Ge=(e,t,s=!1)=>{const a=ga.exec(e);return a?a[1]?t(a[1]):s:!1},ha=e=>e==="position"||e==="percentage",ya=e=>e==="image"||e==="url",ba=e=>e==="length"||e==="size"||e==="bg-size",va=e=>e==="length",Jl=e=>e==="number",ka=e=>e==="family-name",wa=e=>e==="number"||e==="weight",Na=e=>e==="shadow",ec=()=>{const e=le("color"),t=le("font"),s=le("text"),a=le("font-weight"),r=le("tracking"),o=le("leading"),i=le("breakpoint"),l=le("container"),c=le("spacing"),d=le("radius"),p=le("shadow"),m=le("inset-shadow"),b=le("text-shadow"),w=le("drop-shadow"),u=le("blur"),g=le("perspective"),f=le("aspect"),k=le("ease"),h=le("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...S(),_,L],T=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],I=()=>[_,L,c],F=()=>[Ve,"full","auto",...I()],Q=()=>[Ee,"none","subgrid",_,L],z=()=>["auto",{span:["full",Ee,_,L]},Ee,_,L],G=()=>[Ee,"auto",_,L],re=()=>["auto","min","max","fr",_,L],M=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],$=()=>["start","end","center","stretch","center-safe","end-safe"],q=()=>["auto",...I()],ee=()=>[Ve,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],A=()=>[e,_,L],O=()=>[...S(),Es,As,{position:[_,L]}],W=()=>["no-repeat",{repeat:["","x","y","space","round"]}],oe=()=>["auto","cover","contain",Yl,Vl,{size:[_,L]}],Z=()=>[pn,Xe,De],V=()=>["","none","full",d,_,L],ie=()=>["",B,Xe,De],he=()=>["solid","dashed","dotted","double"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>[B,pn,Es,As],Re=()=>["","none",u,_,L],ge=()=>["none",B,_,L],Ae=()=>["none",B,_,L],D=()=>[B,_,L],P=()=>[Ve,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Se],breakpoint:[Se],color:[xa],container:[Se],"drop-shadow":[Se],ease:["in","out","in-out"],font:[Ul],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Se],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Se],shadow:[Se],spacing:["px",B],text:[Se],"text-shadow":[Se],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ve,L,_,f]}],container:["container"],columns:[{columns:[B,L,_,l]}],"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:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{start:F()}],end:[{end:F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[Ee,"auto",_,L]}],basis:[{basis:[Ve,"full","auto",l,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[B,Ve,"auto","initial","none",L]}],grow:[{grow:["",B,_,L]}],shrink:[{shrink:["",B,_,L]}],order:[{order:[Ee,"first","last","none",_,L]}],"grid-cols":[{"grid-cols":Q()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":Q()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":re()}],"auto-rows":[{"auto-rows":re()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...M(),"normal"]}],"justify-items":[{"justify-items":[...$(),"normal"]}],"justify-self":[{"justify-self":["auto",...$()]}],"align-content":[{content:["normal",...M()]}],"align-items":[{items:[...$(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...$(),{baseline:["","last"]}]}],"place-content":[{"place-content":M()}],"place-items":[{"place-items":[...$(),"baseline"]}],"place-self":[{"place-self":["auto",...$()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:q()}],mx:[{mx:q()}],my:[{my:q()}],ms:[{ms:q()}],me:[{me:q()}],mt:[{mt:q()}],mr:[{mr:q()}],mb:[{mb:q()}],ml:[{ml:q()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:ee()}],w:[{w:[l,"screen",...ee()]}],"min-w":[{"min-w":[l,"screen","none",...ee()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...ee()]}],h:[{h:["screen","lh",...ee()]}],"min-h":[{"min-h":["screen","lh","none",...ee()]}],"max-h":[{"max-h":["screen","lh",...ee()]}],"font-size":[{text:["base",s,Xe,De]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,Xl,ql]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",pn,L]}],"font-family":[{font:[Ql,Wl,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,_,L]}],"line-clamp":[{"line-clamp":[B,"none",_,Rs]}],leading:[{leading:[o,...I()]}],"list-image":[{"list-image":["none",_,L]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",_,L]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:[B,"from-font","auto",_,De]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[B,"auto",_,L]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_,L]}],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",_,L]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:O()}],"bg-repeat":[{bg:W()}],"bg-size":[{bg:oe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ee,_,L],radial:["",_,L],conic:[Ee,_,L]},Kl,Zl]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:Z()}],"gradient-via-pos":[{via:Z()}],"gradient-to-pos":[{to:Z()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:V()}],"rounded-s":[{"rounded-s":V()}],"rounded-e":[{"rounded-e":V()}],"rounded-t":[{"rounded-t":V()}],"rounded-r":[{"rounded-r":V()}],"rounded-b":[{"rounded-b":V()}],"rounded-l":[{"rounded-l":V()}],"rounded-ss":[{"rounded-ss":V()}],"rounded-se":[{"rounded-se":V()}],"rounded-ee":[{"rounded-ee":V()}],"rounded-es":[{"rounded-es":V()}],"rounded-tl":[{"rounded-tl":V()}],"rounded-tr":[{"rounded-tr":V()}],"rounded-br":[{"rounded-br":V()}],"rounded-bl":[{"rounded-bl":V()}],"border-w":[{border:ie()}],"border-w-x":[{"border-x":ie()}],"border-w-y":[{"border-y":ie()}],"border-w-s":[{"border-s":ie()}],"border-w-e":[{"border-e":ie()}],"border-w-t":[{"border-t":ie()}],"border-w-r":[{"border-r":ie()}],"border-w-b":[{"border-b":ie()}],"border-w-l":[{"border-l":ie()}],"divide-x":[{"divide-x":ie()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ie()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...he(),"hidden","none"]}],"divide-style":[{divide:[...he(),"hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...he(),"none","hidden"]}],"outline-offset":[{"outline-offset":[B,_,L]}],"outline-w":[{outline:["",B,Xe,De]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",p,jt,Nt]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",m,jt,Nt]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:ie()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[B,De]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":ie()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",b,jt,Nt]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[B,_,L]}],"mix-blend":[{"mix-blend":[...fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fe()}],"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":[B]}],"mask-image-linear-from-pos":[{"mask-linear-from":Y()}],"mask-image-linear-to-pos":[{"mask-linear-to":Y()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":Y()}],"mask-image-t-to-pos":[{"mask-t-to":Y()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":Y()}],"mask-image-r-to-pos":[{"mask-r-to":Y()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":Y()}],"mask-image-b-to-pos":[{"mask-b-to":Y()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":Y()}],"mask-image-l-to-pos":[{"mask-l-to":Y()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":Y()}],"mask-image-x-to-pos":[{"mask-x-to":Y()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":Y()}],"mask-image-y-to-pos":[{"mask-y-to":Y()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[_,L]}],"mask-image-radial-from-pos":[{"mask-radial-from":Y()}],"mask-image-radial-to-pos":[{"mask-radial-to":Y()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"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":S()}],"mask-image-conic-pos":[{"mask-conic":[B]}],"mask-image-conic-from-pos":[{"mask-conic-from":Y()}],"mask-image-conic-to-pos":[{"mask-conic-to":Y()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:O()}],"mask-repeat":[{mask:W()}],"mask-size":[{mask:oe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",_,L]}],filter:[{filter:["","none",_,L]}],blur:[{blur:Re()}],brightness:[{brightness:[B,_,L]}],contrast:[{contrast:[B,_,L]}],"drop-shadow":[{"drop-shadow":["","none",w,jt,Nt]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",B,_,L]}],"hue-rotate":[{"hue-rotate":[B,_,L]}],invert:[{invert:["",B,_,L]}],saturate:[{saturate:[B,_,L]}],sepia:[{sepia:["",B,_,L]}],"backdrop-filter":[{"backdrop-filter":["","none",_,L]}],"backdrop-blur":[{"backdrop-blur":Re()}],"backdrop-brightness":[{"backdrop-brightness":[B,_,L]}],"backdrop-contrast":[{"backdrop-contrast":[B,_,L]}],"backdrop-grayscale":[{"backdrop-grayscale":["",B,_,L]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[B,_,L]}],"backdrop-invert":[{"backdrop-invert":["",B,_,L]}],"backdrop-opacity":[{"backdrop-opacity":[B,_,L]}],"backdrop-saturate":[{"backdrop-saturate":[B,_,L]}],"backdrop-sepia":[{"backdrop-sepia":["",B,_,L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",_,L]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[B,"initial",_,L]}],ease:[{ease:["linear","initial",k,_,L]}],delay:[{delay:[B,_,L]}],animate:[{animate:["none",h,_,L]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,_,L]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:ge()}],"rotate-x":[{"rotate-x":ge()}],"rotate-y":[{"rotate-y":ge()}],"rotate-z":[{"rotate-z":ge()}],scale:[{scale:Ae()}],"scale-x":[{"scale-x":Ae()}],"scale-y":[{"scale-y":Ae()}],"scale-z":[{"scale-z":Ae()}],"scale-3d":["scale-3d"],skew:[{skew:D()}],"skew-x":[{"skew-x":D()}],"skew-y":[{"skew-y":D()}],transform:[{transform:[_,L,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:P()}],"translate-x":[{"translate-x":P()}],"translate-y":[{"translate-y":P()}],"translate-z":[{"translate-z":P()}],"translate-none":["translate-none"],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"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",_,L]}],"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":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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",_,L]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[B,Xe,De,Rs]}],stroke:[{stroke:["none",...A()]}],"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"]}},tc=_l(ec);function y(...e){return tc(ke.clsx(e))}const nc=se.cva("flex-none shrink-0 inline-flex items-center justify-center box-border transition-colors duration-200 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"},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"}}),je=x.forwardRef(({variant:e="secondary",size:t="md",rounded:s="square",icon:a,disabled:r=!1,className:o,...i},l)=>n.jsx("button",{ref:l,className:y(nc({variant:e,size:t,rounded:s}),o),disabled:r,...i,children:n.jsx("span",{className:"inline-flex shrink-0 size-full items-center justify-center",children:a})}));je.displayName="IconButton";function Ke(){if(typeof document>"u")return{};const e=document.documentElement,t={},s=e.getAttribute("data-theme"),a=e.getAttribute("data-style");return s&&(t["data-theme"]=s),a&&(t["data-style"]=a),t}const sc=qe.Provider,ac=qe.Root,rc=qe.Trigger,ja=N.forwardRef(({className:e,sideOffset:t=8,children:s,dataStyle:a,dataTheme:r,...o},i)=>{const l=Ke(),c=a!==void 0?{"data-style":a,"data-theme":r??l["data-theme"]??""}:l;return n.jsx(qe.Portal,{children:n.jsx("div",{style:{display:"contents"},...c,children:n.jsx(qe.Content,{ref:i,sideOffset:t,className:y("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(te.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.15},children:s})})})})});ja.displayName=qe.Content.displayName;function at({content:e,children:t,side:s="top",contentClassName:a,dataStyle:r,dataTheme:o}){return n.jsx(sc,{delayDuration:300,children:n.jsxs(ac,{children:[n.jsx(rc,{asChild:!0,children:t}),n.jsx(ja,{side:s,className:a,dataStyle:r,dataTheme:o,children:e})]})})}at.displayName="Tooltip";const Ca=x.createContext(null);function Sa(e){return typeof e=="object"&&"name"in e}function Ia(e){return typeof e=="object"&&"name"in e}function oc(e,t){return Sa(t)?`${e}-${t.name}`:t==="qoder"?e:`${e}-${t}`}function ic(e){return Ia(e)?e.name:e}function lc(e,t){const s={};if(Sa(e)){const{tokens:a}=e;for(const[r,o]of Object.entries(a))if(o!==void 0){const i=r.startsWith("--")?r:`--${r}`;s[i]=o}}if(Ia(t)){const{radius:a,spacing:r,fontSize:o}=t;a&&(a.sm&&(s["--radius-sm"]=a.sm),a.default&&(s["--radius-DEFAULT"]=a.default),a.md&&(s["--radius-md"]=a.md),a.lg&&(s["--radius-lg"]=a.lg),a.xl&&(s["--radius-xl"]=a.xl),a["2xl"]&&(s["--radius-2xl"]=a["2xl"]),a["3xl"]&&(s["--radius-3xl"]=a["3xl"])),r&&(r[3]&&(s["--spacing-3"]=r[3]),r[4]&&(s["--spacing-4"]=r[4]),r[9]&&(s["--spacing-9"]=r[9]),r[11]&&(s["--spacing-11"]=r[11])),o&&(o.sm&&(s["--font-size-sm"]=o.sm),o.lg&&(s["--font-size-lg"]=o.lg),o.xl&&(s["--font-size-xl"]=o.xl),o["2xl"]&&(s["--font-size-2xl"]=o["2xl"]),o["3xl"]&&(s["--font-size-3xl"]=o["3xl"]))}return s}function cc({children:e,appearance:t="light",theme:s="qoder",style:a="neutral"}){const r=x.useMemo(()=>oc(t,s),[t,s]),o=x.useMemo(()=>ic(a),[a]),i=x.useMemo(()=>lc(s,a),[s,a]),l=x.useMemo(()=>({appearance:t,themeConfig:s,styleConfig:a,dataTheme:r,dataStyle:o,theme:r,style:o}),[t,s,a,r,o]),c=Object.keys(i).length>0;return n.jsx(Ca.Provider,{value:l,children:n.jsx("div",{"data-theme":r,"data-style":o,style:c?i:void 0,children:e})})}function me(){const e=x.useContext(Ca);return e||{appearance:"light",themeConfig:"qoder",styleConfig:"neutral",dataTheme:"light",dataStyle:"neutral",theme:"light",style:"neutral"}}function In({placement:e,side:t=e??"top",...s}){const{style:a,theme:r}=me();return n.jsx(at,{side:t,dataStyle:a,dataTheme:r,...s})}In.displayName="Tooltip";function Ts(e,t){e&&(typeof e=="function"?e(t):e.current=t)}const Ra=x.forwardRef(({children:e,lines:t=1,className:s="",placement:a="top",tooltipClassName:r="",tooltipContent:o,disabled:i=!1,style:l,as:c="span"},d)=>{const p=x.useRef(null),[m,b]=x.useState(!1),w=x.useCallback(()=>{const h=p.current;if(!h)return;const v=t===1?h.scrollWidth>h.clientWidth:h.scrollHeight>h.clientHeight;b(v)},[t]);x.useEffect(()=>{const h=requestAnimationFrame(()=>w()),v=p.current;if(!v)return()=>cancelAnimationFrame(h);const S=new ResizeObserver(()=>w());return S.observe(v),window.addEventListener("resize",w),()=>{cancelAnimationFrame(h),S.disconnect(),window.removeEventListener("resize",w)}},[w,e]);const u=t===1?{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",...l}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:t,WebkitBoxOrient:"vertical",...l},g=x.useCallback(h=>{Ts(p,h),Ts(d,h)},[d]),f=n.jsx(c,{ref:g,className:s,style:u,children:e});return m&&!i?n.jsx(In,{content:o??e,placement:a,contentClassName:ke.clsx(r),children:n.jsx("span",{ref:g,className:s,style:u,children:e})}):f});Ra.displayName="EllipsisText";const dc="flex flex-col gap-1",uc=se.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}}),pc=se.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}}),Rn=x.forwardRef(({items:e,selectedIds:t=[],focusedId:s,onItemClick:a,showPrefix:r=!0,disabled:o=!1,className:i,...l},c)=>{const d=p=>String(p+1);return n.jsx("div",{ref:c,role:"listbox","aria-multiselectable":t.length>1,className:y(dc,i),...l,children:e.map((p,m)=>{const b=t.includes(p.id),w=s===p.id,u=o||p.disabled,f=t.length>0&&!b&&!u;return n.jsxs("button",{type:"button",role:"option","aria-selected":b,"aria-disabled":u,onClick:()=>{u||a?.(p,m)},disabled:u,className:y(uc({selected:b,disabled:u,dimmed:f}),w&&"bg-fill-tertiary"),children:[n.jsxs("div",{className:"flex items-center gap-3",children:[r&&n.jsx("div",{className:pc({selected:b}),children:d(m)}),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)})})});Rn.displayName="OptionList";const mc="0 0 24 24",fc="1em";function U(e,t){const s=N.forwardRef(({className:a,size:r=fc,...o},i)=>n.jsx("svg",{ref:i,viewBox:mc,width:r,height:r,fill:"currentColor",className:a,xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,...o,children:n.jsx("path",{d:e})}));return s.displayName=t,s}U("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 An=U("M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z","ArrowUpLine"),ot=U("M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z","ArrowRightLine"),gc=U("M7.82843 10.9999H20V12.9999H7.82843L13.1924 18.3638L11.7782 19.778L4 11.9999L11.7782 4.22168L13.1924 5.63589L7.82843 10.9999Z","ArrowLeftLine"),Ie=U("M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z","CheckLine"),_e=U("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"),Aa=U("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"),xc=U("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"),Ea=U("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"),Ta=U("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"),hc=U("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"),yc=U("M6 6h12v12H6V6Zm2 2v8h8V8H8Z","StopLine"),bc=U("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"),La=U("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"),_a=U("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"),En=U("M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm4 18H6V4h7v5h5v11z","FileLine"),Pa=U("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"),it=U("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=U("M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z","ArrowDownSLine"),Tn=U("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"),Fa=U("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"),Bt=U("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"),za=U("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"),Da=U("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"),vc=U("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"),Ma=U("M7 14h10v2H7v-2zm0-4h10v2H7v-2zm0-4h10v2H7V6zm-4 12h2v2H3v-2zm0-4h2v2H3v-2zm0-4h2v2H3v-2zm0-4h2v2H3V6z","RequestChangesLine"),Oa=U("M3 5h2v2H3V5zm4 0h14v2H7V5zm-4 6h2v2H3v-2zm4 0h14v2H7v-2zm-4 6h2v2H3v-2zm4 0h14v2H7v-2z","CatalogLine"),$a=U("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"),Ba=U("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"),Ga=U("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"),Gt=U("M3 4h14v2H3V4zm0 4h14v2H3V8zm0 4h10v2H3v-2zm0 4h8v2H3v-2z","FileList2Line"),Ha=U("M13 10h5l-6 6-6-6h5V3h2v7zM4 19h16v2H4v-2z","DownloadLine"),Ua=U("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"),Va=U("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"),qa=U("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"),Wa=U("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"),Za=U("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"),Oe=K.Root,$e=K.Trigger,kc=K.Group,wc=K.Portal,Qa=K.Sub,Nc=K.RadioGroup,Ya="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",Te=N.forwardRef(({className:e,sideOffset:t=4,children:s,dataStyle:a,dataTheme:r,...o},i)=>{const l=Ke(),c=a!==void 0?{"data-style":a,"data-theme":r??l["data-theme"]??""}:l;return n.jsx(K.Portal,{children:n.jsx("div",{style:{display:"contents"},...c,children:n.jsx(K.Content,{ref:i,sideOffset:t,className:y(Ya,e),...o,children:n.jsx(te.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.15,ease:[.4,0,.2,1]},children:s})})})})});Te.displayName=K.Content.displayName;const jc=se.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}}),Ln=N.forwardRef(({className:e,inset:t=!1,children:s,subTriggerIcon:a,...r},o)=>n.jsxs(K.SubTrigger,{ref:o,className:jc({inset:t,className:e}),...r,children:[s,n.jsx("span",{className:"ml-auto flex h-4 w-4 items-center justify-center",children:a??n.jsx(ot,{className:"h-4 w-4"})})]}));Ln.displayName=K.SubTrigger.displayName;const _n=N.forwardRef(({className:e,sideOffset:t=-1,dataStyle:s,dataTheme:a,...r},o)=>{const i=Ke(),l=s!==void 0?{"data-style":s,"data-theme":a??i["data-theme"]??""}:i;return n.jsx(K.Portal,{children:n.jsx("div",{style:{display:"contents"},...l,children:n.jsx(K.SubContent,{ref:o,sideOffset:t,className:y(Ya,e),...r})})})});_n.displayName=K.SubContent.displayName;const Cc=se.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}}),we=N.forwardRef(({className:e,inset:t=!1,variant:s="default",...a},r)=>n.jsx(K.Item,{ref:r,className:Cc({variant:s,inset:t,className:e}),...a}));we.displayName=K.Item.displayName;const Ka="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",Xa=N.forwardRef(({className:e,children:t,checked:s,checkIcon:a,...r},o)=>n.jsxs(K.CheckboxItem,{ref:o,className:y(Ka,e),checked:s,...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(K.ItemIndicator,{children:a??n.jsx(Ie,{className:"h-4 w-4"})})}),t]}));Xa.displayName=K.CheckboxItem.displayName;const Ja=N.forwardRef(({className:e,children:t,...s},a)=>n.jsxs(K.RadioItem,{ref:a,className:y(Ka,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("div",{className:"h-2 w-2 rounded-full bg-primary"})})}),t]}));Ja.displayName=K.RadioItem.displayName;const Sc=se.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}}),er=N.forwardRef(({className:e,inset:t=!1,...s},a)=>n.jsx(K.Label,{ref:a,className:Sc({inset:t,className:e}),...s}));er.displayName=K.Label.displayName;const tr=N.forwardRef(({className:e,...t},s)=>n.jsx(K.Separator,{ref:s,className:y("my-1 mx-1 h-px bg-border-tertiary",e),...t}));tr.displayName=K.Separator.displayName;const nr=({className:e,...t})=>n.jsx("span",{className:y("ml-auto text-xs tracking-widest text-text-tertiary",e),...t});nr.displayName="DropdownMenuShortcut";const sr=x.createContext(null);function Ic({value:e,children:t}){return n.jsx(sr.Provider,{value:e,children:t})}function lt(){return x.useContext(sr)??{icons:{}}}function R(e,t){const{icons:s}=lt(),a=s[e];if(a)return n.jsx(a,{className:t,"aria-hidden":!0})}const ar=N.forwardRef((e,t)=>{const{style:s,theme:a}=me();return n.jsx(Te,{ref:t,dataStyle:s,dataTheme:a,...e})});ar.displayName="DropdownMenuContent";function Rc(e){const t=R("arrowRight","h-4 w-4 shrink-0"),s=e.subTriggerIcon??t;return n.jsx(Ln,{...e,subTriggerIcon:s})}const rr=N.forwardRef((e,t)=>{const{style:s,theme:a}=me();return n.jsx(_n,{ref:t,dataStyle:s,dataTheme:a,...e})});rr.displayName="DropdownMenuSubContent";const or=ce.Root,Ac=ce.Trigger,ir=ce.Portal,Pn=N.forwardRef(({className:e,...t},s)=>n.jsx(ce.Overlay,{ref:s,asChild:!0,...t,children:n.jsx(te.motion.div,{className:y("fixed inset-0 z-50 bg-bg-mask/60",e),initial:{opacity:0},animate:{opacity:1},transition:{duration:.15}})}));Pn.displayName=ce.Overlay.displayName;const Ec=se.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"}}),Fn=N.forwardRef(({className:e,children:t,size:s="default",dataStyle:a,dataTheme:r,...o},i)=>{const l=Ke(),c=a!==void 0?{"data-style":a,"data-theme":r??l["data-theme"]??""}:l;return n.jsx(ir,{children:n.jsxs("div",{style:{display:"contents"},...c,children:[n.jsx(Pn,{}),n.jsx(ce.Content,{ref:i,asChild:!0,...o,children:n.jsx(te.motion.div,{className:y(Ec({size:s}),e),initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.2,ease:[.4,0,.2,1]},children:t})})]})})});Fn.displayName=ce.Content.displayName;const zn=N.forwardRef(({className:e,...t},s)=>n.jsx("div",{ref:s,className:y("flex flex-col gap-2",e),...t}));zn.displayName="AlertDialogHeader";const Dn=N.forwardRef(({className:e,...t},s)=>n.jsx("div",{ref:s,className:y("mt-6 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t}));Dn.displayName="AlertDialogFooter";const Mn=N.forwardRef(({className:e,...t},s)=>n.jsx(ce.Title,{ref:s,className:y("font-sans text-base font-medium leading-6 text-text",e),...t}));Mn.displayName=ce.Title.displayName;const On=N.forwardRef(({className:e,...t},s)=>n.jsx(ce.Description,{ref:s,className:y("text-sm leading-6 text-text-tertiary",e),...t}));On.displayName=ce.Description.displayName;const Tc=se.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}}),lr=N.forwardRef(({className:e,destructive:t=!1,...s},a)=>n.jsx(ce.Action,{ref:a,className:y(Tc({destructive:t}),e),...s}));lr.displayName=ce.Action.displayName;const $n=N.forwardRef(({className:e,...t},s)=>n.jsx(ce.Cancel,{ref:s,className:y("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}));$n.displayName=ce.Cancel.displayName;const cr=N.forwardRef((e,t)=>{const{style:s,theme:a}=me();return n.jsx(Fn,{ref:t,dataStyle:s,dataTheme:a,...e})});cr.displayName="AlertDialogContent";const dr=N.forwardRef(({className:e,...t},s)=>n.jsx("div",{ref:s,className:y("mb-4 inline-flex h-10 w-10 items-center justify-center rounded-lg bg-fill-tertiary text-text",e),...t}));dr.displayName="AlertDialogMedia";function ur({className:e,...t}){return n.jsx("kbd",{className:y("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})}ur.displayName="Kbd";function pr({className:e,children:t,separator:s="+",...a}){const r=N.Children.toArray(t);return n.jsx("span",{className:y("inline-flex items-center gap-1",e),...a,children:r.map((o,i)=>n.jsxs(N.Fragment,{children:[o,i<r.length-1&&n.jsx("span",{className:"select-none !font-sans text-xs font-medium text-text-secondary",children:s})]},i))})}pr.displayName="KbdGroup";const et={fast:.15,base:.2,slow:.3},tt={standard:[.16,1,.3,1],emphasized:[.2,.8,.2,1],out:[0,0,.2,1]},mr={snappy:{type:"spring",stiffness:520,damping:34,mass:.7}},Lc=se.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"}}),_c=se.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"}}),fr=N.forwardRef(({className:e,size:t="md",disabled:s=!1,...a},r)=>n.jsx(Ns.Root,{ref:r,className:y(Lc({size:t}),e),disabled:s,...a,children:n.jsx(Ns.Thumb,{className:_c({size:t})})}));fr.displayName="Switch";const Ls={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 Pc(e){if(e==="normal"||!e)return 0;const t=parseFloat(e);return e.endsWith("px")?t:e.endsWith("rem")?t*16:t}const Bn=N.forwardRef(({variant:e="toggle",className:t,size:s="md",options:a,value:r,defaultValue:o="preview",onValueChange:i,segmentSize:l="md",disabled:c=!1,...d},p)=>{const{style:m,theme:b}=me(),w={};if(m&&(w["data-style"]=m),b&&(w["data-theme"]=b),e==="toggle")return n.jsx("div",{ref:p,...w,className:"inline-flex",children:n.jsx(fr,{size:s,className:t,disabled:c,...d})});const u=Ls[l].iconClass,g=n.jsx(xc,{className:u}),f=n.jsx(Ea,{className:u}),[k,h]=N.useState(o),v=N.useRef(null),[S,C]=N.useState({buttonWidth:24,gapPx:2});N.useLayoutEffect(()=>{if(!v.current)return;const O=v.current,W=O.querySelector("button"),oe=W?Pc(getComputedStyle(O).gap):0,Z=W?.offsetWidth??24;C(V=>V.buttonWidth===Z&&V.gapPx===oe?V:{buttonWidth:Z,gapPx:oe})},[m,l,a?.length]);const T=[{value:"code",label:"Code",icon:g},{value:"preview",label:"Preview",icon:f}],E=a?.length?a:T,I=r!==void 0,F=(I?r:k)??o,Q=O=>{c||(I||h(O),i?.(O))},z=E.findIndex(O=>O.value===F),G=z>=0?z:0,re=Ls[l],{buttonClass:M,trackClass:$,thumbClass:q,buttonRounded:ee}=re,A=G*(S.buttonWidth+S.gapPx);return n.jsx("div",{ref:p,...w,className:"inline-flex",children:n.jsxs("div",{ref:v,role:"radiogroup","aria-disabled":c||void 0,className:ke.clsx("relative inline-flex items-center",$,"bg-fill-secondary",c?"opacity-50 cursor-not-allowed":"cursor-pointer",t),...d,children:[n.jsx(te.motion.span,{className:ke.clsx("absolute left-0.5 bg-bg-base shadow-sm",q),initial:!1,animate:{x:A},transition:{type:"tween",duration:et.base,ease:tt.out}}),E.map(O=>{const W=O.value===F;return n.jsx("button",{type:"button",role:"radio","aria-checked":W,"aria-label":O.label,disabled:c,onClick:()=>Q(O.value),className:ke.clsx("relative z-10 inline-flex items-center justify-center",ee,M,"transition-colors","focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-border",W?"text-primary-active":"text-text-secondary"),children:n.jsx("span",{className:"inline-flex items-center justify-center",children:O.icon})},O.value)})]})})});Bn.displayName="Switch";function Fc({size:e="md",value:t,defaultValue:s="preview",onValueChange:a,disabled:r=!1,className:o,...i}){return n.jsx(Bn,{variant:"segment",segmentSize:e,value:t,defaultValue:s,onValueChange:a,disabled:r,className:o,...i})}const gr=se.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"}}),xr=x.forwardRef(({variant:e="default",size:t="md",rounded:s="square",className:a,prefixIcon:r,suffixIcon:o,children:i,...l},c)=>n.jsxs(pl.Root,{ref:c,className:gr({variant:e,size:t,rounded:s,className:a}),...l,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})]}));xr.displayName="Toggle";const hr=x.createContext(null),zc={none:"gap-0",sm:"gap-1",md:"gap-2"},Dc=["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(" "),yr=x.forwardRef(({type:e="single",variant:t="default",size:s="md",rounded:a="square",spacing:r="none",className:o,orientation:i="horizontal",children:l,...c},d)=>{const p=y("group/toggle-group inline-flex w-fit",i==="horizontal"?"flex-row":"flex-col",i==="vertical"&&"items-stretch",zc[r],o),m={ref:d,orientation:i,"data-spacing":r==="none"?"0":r,"data-orientation":i,"data-variant":t,"data-size":s,className:p};return n.jsx(hr.Provider,{value:{variant:t,size:s,rounded:a,spacing:r},children:e==="multiple"?n.jsx(hn.Root,{...m,...c,type:"multiple",children:l}):n.jsx(hn.Root,{...m,...c,type:"single",children:l})})});yr.displayName="ToggleGroup";const br=x.forwardRef(({variant:e,size:t,rounded:s,className:a,prefixIcon:r,suffixIcon:o,children:i,...l},c)=>{const d=x.useContext(hr),p=e??d?.variant??"default",m=t??d?.size??"md",b=s??d?.rounded??"square";return n.jsxs(hn.Item,{ref:c,"data-variant":p,"data-size":m,className:y(gr({variant:p,size:m,rounded:b}),d&&Dc,"focus-visible:z-10",a),...l,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})]})});br.displayName="ToggleGroupItem";const Mc=se.cva("grid gap-2",{variants:{orientation:{vertical:"grid-flow-row",horizontal:"grid-flow-col auto-cols-max"}},defaultVariants:{orientation:"vertical"}}),Oc=se.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"}}),$c={sm:"size-1.5",md:"size-2",lg:"size-2.5"},vr=N.forwardRef(({className:e,orientation:t="vertical",...s},a)=>n.jsx(xn.Root,{ref:a,className:y(Mc({orientation:t,className:e})),orientation:t??"vertical",...s}));vr.displayName="RadioGroup";const kr=N.forwardRef(({className:e,size:t="md",...s},a)=>n.jsx(xn.Item,{ref:a,className:y(Oc({size:t,className:e})),...s,children:n.jsx(xn.Indicator,{className:"flex items-center justify-center",children:n.jsx("span",{className:y("rounded-full bg-current",$c[t??"md"])})})}));kr.displayName="RadioGroupItem";const _s=`
|
|
2
2
|
.CollapsibleSection-scroll-list::-webkit-scrollbar { display: none; }
|
|
3
3
|
.CollapsibleSection-scroll-list { scrollbar-width: none; -ms-overflow-style: none; }
|
|
4
|
-
`;function zc({maxHeight:e,children:t}){const s=x.useRef(null),[a,r]=x.useState(!1),[o,i]=x.useState(!1),l=x.useCallback(()=>{const c=s.current;if(!c)return;const{scrollTop:d,scrollHeight:p,clientHeight:m}=c;r(d>0),i(d+m<p-1)},[]);return x.useEffect(()=>{const c=s.current;if(!c)return;l();const d=new ResizeObserver(l);return d.observe(c),c.addEventListener("scroll",l,{passive:!0}),()=>{d.disconnect(),c.removeEventListener("scroll",l)}},[e,l]),n.jsxs("div",{className:"relative flex flex-1 min-h-0 flex-col overflow-hidden",children:[n.jsx("div",{ref:s,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}),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}),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 Dc({children:e}){const t=x.useRef(null),[s,a]=x.useState(!1),[r,o]=x.useState(!1),i=x.useCallback(()=>{const l=t.current;if(!l)return;const{scrollTop:c,scrollHeight:d,clientHeight:p}=l;a(c>0),o(c+p<d-1)},[]);return x.useEffect(()=>{const l=t.current;if(!l)return;i();const c=new ResizeObserver(i);return c.observe(l),l.addEventListener("scroll",i,{passive:!0}),()=>{c.disconnect(),l.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}),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}),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 vr({title:e,description:t,children:s,open:a,onToggle:r,isLast:o=!1,className:i,id:l,contentMaxHeight:c,footer:d}){const p=x.useId(),m=l??`collapsible-section-${p.replace(/:/g,"")}`,b=R("arrowRight","w-4 h-4 text-text-secondary")??n.jsx(Xe,{className:"w-4 h-4 text-text-secondary"}),w=s!=null?c!=null?d!=null?n.jsxs(n.Fragment,{children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:_s}}),n.jsxs("div",{className:"flex flex-col flex-1 min-h-0",style:{maxHeight:c},children:[n.jsx(Dc,{children:s}),n.jsx("div",{className:"shrink-0",children:d})]})]}):n.jsxs(n.Fragment,{children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:_s}}),n.jsx(zc,{maxHeight:c,children:s})]}):n.jsx("div",{className:"flex flex-1 min-h-0 flex-col",children:s}):void 0;return n.jsxs("div",{className:ve.clsx("flex flex-col justify-center self-stretch border-border-tertiary",!o&&"border-b border-dashed",a?"gap-1.5 py-4":"py-4",i),children:[n.jsxs("button",{type:"button",onClick:r,className:ve.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":a,"aria-controls":m,"aria-label":`${a?"收起":"展开"} ${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:ve.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(te.motion.span,{className:"inline-flex items-center justify-center",animate:{rotate:a?90:0},transition:ur.snappy,children:b})})]}),n.jsx(te.AnimatePresence,{initial:!1,children:a&&n.jsx(te.motion.div,{id:m,className:"overflow-hidden",initial:{height:0},animate:{height:"auto"},exit:{height:0},transition:{duration:tt.base,ease:nt.emphasized},children:n.jsxs(te.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:tt.fast,ease:nt.emphasized},children:[t!=null&&n.jsx(te.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:tt.fast,ease:nt.emphasized},children:t}),w]})},"content")})]})}vr.displayName="CollapsibleSection";function Mc(e,t,{checkForDefaultPrevented:s=!0}={}){return function(r){if(e?.(r),s===!1||!r.defaultPrevented)return t?.(r)}}function Oc(e,t=[]){let s=[];function a(o,i){const l=N.createContext(i),c=s.length;s=[...s,i];const d=m=>{const{scope:b,children:w,...u}=m,g=b?.[e]?.[c]||l,f=N.useMemo(()=>u,Object.values(u));return n.jsx(g.Provider,{value:f,children:w})};d.displayName=o+"Provider";function p(m,b){const w=b?.[e]?.[c]||l,u=N.useContext(w);if(u)return u;if(i!==void 0)return i;throw new Error(`\`${m}\` must be used within \`${o}\``)}return[d,p]}const r=()=>{const o=s.map(i=>N.createContext(i));return function(l){const c=l?.[e]||o;return N.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return r.scopeName=e,[a,$c(r,...t)]}function $c(...e){const t=e[0];if(e.length===1)return t;const s=()=>{const a=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(o){const i=a.reduce((l,{useScope:c,scopeName:d})=>{const m=c(o)[`__scope${d}`];return{...l,...m}},{});return N.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return s.scopeName=t.scopeName,s}var ot=globalThis?.document?N.useLayoutEffect:()=>{},Bc=N[" useInsertionEffect ".trim().toString()]||ot;function Gc({prop:e,defaultProp:t,onChange:s=()=>{},caller:a}){const[r,o,i]=Hc({defaultProp:t,onChange:s}),l=e!==void 0,c=l?e:r;{const p=N.useRef(e!==void 0);N.useEffect(()=>{const m=p.current;m!==l&&console.warn(`${a} is changing from ${m?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=l},[l,a])}const d=N.useCallback(p=>{if(l){const m=Uc(p)?p(e):p;m!==e&&i.current?.(m)}else o(p)},[l,e,o,i]);return[c,d]}function Hc({defaultProp:e,onChange:t}){const[s,a]=N.useState(e),r=N.useRef(s),o=N.useRef(t);return Bc(()=>{o.current=t},[t]),N.useEffect(()=>{r.current!==s&&(o.current?.(s),r.current=s)},[s,r]),[s,a,o]}function Uc(e){return typeof e=="function"}function Ps(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function kr(...e){return t=>{let s=!1;const a=e.map(r=>{const o=Ps(r,t);return!s&&typeof o=="function"&&(s=!0),o});if(s)return()=>{for(let r=0;r<a.length;r++){const o=a[r];typeof o=="function"?o():Ps(e[r],null)}}}}function wr(...e){return N.useCallback(kr(...e),e)}function Vc(e){const t=qc(e),s=N.forwardRef((a,r)=>{const{children:o,...i}=a,l=N.Children.toArray(o),c=l.find(Zc);if(c){const d=c.props.children,p=l.map(m=>m===c?N.Children.count(d)>1?N.Children.only(null):N.isValidElement(d)?d.props.children:null:m);return n.jsx(t,{...i,ref:r,children:N.isValidElement(d)?N.cloneElement(d,void 0,p):null})}return n.jsx(t,{...i,ref:r,children:o})});return s.displayName=`${e}.Slot`,s}function qc(e){const t=N.forwardRef((s,a)=>{const{children:r,...o}=s;if(N.isValidElement(r)){const i=Yc(r),l=Qc(o,r.props);return r.type!==N.Fragment&&(l.ref=a?kr(a,i):i),N.cloneElement(r,l)}return N.Children.count(r)>1?N.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Wc=Symbol("radix.slottable");function Zc(e){return N.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Wc}function Qc(e,t){const s={...t};for(const a in t){const r=e[a],o=t[a];/^on[A-Z]/.test(a)?r&&o?s[a]=(...l)=>{const c=o(...l);return r(...l),c}:r&&(s[a]=r):a==="style"?s[a]={...r,...o}:a==="className"&&(s[a]=[r,o].filter(Boolean).join(" "))}return{...e,...s}}function Yc(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning;return s?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}var Kc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Gn=Kc.reduce((e,t)=>{const s=Vc(`Primitive.${t}`),a=N.forwardRef((r,o)=>{const{asChild:i,...l}=r,c=i?s:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),n.jsx(c,{...l,ref:o})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function Xc(e,t){return N.useReducer((s,a)=>t[s][a]??s,e)}var Nr=e=>{const{present:t,children:s}=e,a=Jc(t),r=typeof s=="function"?s({present:a.isPresent}):N.Children.only(s),o=wr(a.ref,ed(r));return typeof s=="function"||a.isPresent?N.cloneElement(r,{ref:o}):null};Nr.displayName="Presence";function Jc(e){const[t,s]=N.useState(),a=N.useRef(null),r=N.useRef(e),o=N.useRef("none"),i=e?"mounted":"unmounted",[l,c]=Xc(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return N.useEffect(()=>{const d=Ct(a.current);o.current=l==="mounted"?d:"none"},[l]),ot(()=>{const d=a.current,p=r.current;if(p!==e){const b=o.current,w=Ct(d);e?c("MOUNT"):w==="none"||d?.display==="none"?c("UNMOUNT"):c(p&&b!==w?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),ot(()=>{if(t){let d;const p=t.ownerDocument.defaultView??window,m=w=>{const g=Ct(a.current).includes(CSS.escape(w.animationName));if(w.target===t&&g&&(c("ANIMATION_END"),!r.current)){const f=t.style.animationFillMode;t.style.animationFillMode="forwards",d=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=f)})}},b=w=>{w.target===t&&(o.current=Ct(a.current))};return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{p.clearTimeout(d),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:N.useCallback(d=>{a.current=d?getComputedStyle(d):null,s(d)},[])}}function Ct(e){return e?.animationName||"none"}function ed(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning;return s?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}var td=N[" useId ".trim().toString()]||(()=>{}),nd=0;function sd(e){const[t,s]=N.useState(td());return ot(()=>{s(a=>a??String(nd++))},[e]),e||(t?`radix-${t}`:"")}var Ht="Collapsible",[ad]=Oc(Ht),[rd,Hn]=ad(Ht),jr=N.forwardRef((e,t)=>{const{__scopeCollapsible:s,open:a,defaultOpen:r,disabled:o,onOpenChange:i,...l}=e,[c,d]=Gc({prop:a,defaultProp:r??!1,onChange:i,caller:Ht});return n.jsx(rd,{scope:s,disabled:o,contentId:sd(),open:c,onOpenToggle:N.useCallback(()=>d(p=>!p),[d]),children:n.jsx(Gn.div,{"data-state":qn(c),"data-disabled":o?"":void 0,...l,ref:t})})});jr.displayName=Ht;var Cr="CollapsibleTrigger",Sr=N.forwardRef((e,t)=>{const{__scopeCollapsible:s,...a}=e,r=Hn(Cr,s);return n.jsx(Gn.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":qn(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...a,ref:t,onClick:Mc(e.onClick,r.onOpenToggle)})});Sr.displayName=Cr;var Un="CollapsibleContent",Vn=N.forwardRef((e,t)=>{const{forceMount:s,...a}=e,r=Hn(Un,e.__scopeCollapsible);return n.jsx(Nr,{present:s||r.open,children:({present:o})=>n.jsx(od,{...a,ref:t,present:o})})});Vn.displayName=Un;var od=N.forwardRef((e,t)=>{const{__scopeCollapsible:s,present:a,children:r,...o}=e,i=Hn(Un,s),[l,c]=N.useState(a),d=N.useRef(null),p=wr(t,d),m=N.useRef(0),b=m.current,w=N.useRef(0),u=w.current,g=i.open||l,f=N.useRef(g),k=N.useRef(void 0);return N.useEffect(()=>{const h=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(h)},[]),ot(()=>{const h=d.current;if(h){k.current=k.current||{transitionDuration:h.style.transitionDuration,animationName:h.style.animationName},h.style.transitionDuration="0s",h.style.animationName="none";const v=h.getBoundingClientRect();m.current=v.height,w.current=v.width,f.current||(h.style.transitionDuration=k.current.transitionDuration,h.style.animationName=k.current.animationName),c(a)}},[i.open,a]),n.jsx(Gn.div,{"data-state":qn(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!g,...o,ref:p,style:{"--radix-collapsible-content-height":b?`${b}px`:void 0,"--radix-collapsible-content-width":u?`${u}px`:void 0,...e.style},children:g&&r})});function qn(e){return e?"open":"closed"}var id=jr;const ld=id,cd=Sr,Ir=N.forwardRef(({className:e,...t},s)=>n.jsx(Vn,{ref:s,className:y("overflow-hidden",e),...t}));Ir.displayName=Vn.displayName;const Rr=N.forwardRef(function({direction:t="horizontal",className:s,...a},r){return n.jsx(jn.Group,{elementRef:r,orientation:t,className:y("flex h-full w-full",t==="vertical"&&"flex-col",s),...a})});Rr.displayName="ResizablePanelGroup";const Ar=N.forwardRef(function({className:t,...s},a){return n.jsx(jn.Panel,{elementRef:a,className:y(t),...s})});Ar.displayName="ResizablePanel";const Er=N.forwardRef(function({withHandle:t=!1,className:s,...a},r){return n.jsx(jn.Separator,{elementRef:r,className:y("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",s),...a,children:t&&n.jsx("div",{className:"z-10 shrink-0 rounded-lg bg-border-secondary","data-resize-handle":!0})})});Er.displayName="ResizableHandle";const ye=x.forwardRef(function({children:t,className:s,style:a,maxHeight:r,scrollbarVisibility:o="auto",scrollbarWidth:i=6},l){const d=`Scrollbar-${x.useId().replace(/:/g,"")}`,p=x.useRef(null),[m,b]=x.useState(!1),w=x.useCallback(()=>{o==="auto"&&(b(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{p.current=null,b(!1)},800))},[o]);x.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const u=()=>{if(o==="hidden")return`
|
|
4
|
+
`;function Bc({maxHeight:e,children:t}){const s=x.useRef(null),[a,r]=x.useState(!1),[o,i]=x.useState(!1),l=x.useCallback(()=>{const c=s.current;if(!c)return;const{scrollTop:d,scrollHeight:p,clientHeight:m}=c;r(d>0),i(d+m<p-1)},[]);return x.useEffect(()=>{const c=s.current;if(!c)return;l();const d=new ResizeObserver(l);return d.observe(c),c.addEventListener("scroll",l,{passive:!0}),()=>{d.disconnect(),c.removeEventListener("scroll",l)}},[e,l]),n.jsxs("div",{className:"relative flex flex-1 min-h-0 flex-col overflow-hidden",children:[n.jsx("div",{ref:s,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}),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}),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 Gc({children:e}){const t=x.useRef(null),[s,a]=x.useState(!1),[r,o]=x.useState(!1),i=x.useCallback(()=>{const l=t.current;if(!l)return;const{scrollTop:c,scrollHeight:d,clientHeight:p}=l;a(c>0),o(c+p<d-1)},[]);return x.useEffect(()=>{const l=t.current;if(!l)return;i();const c=new ResizeObserver(i);return c.observe(l),l.addEventListener("scroll",i,{passive:!0}),()=>{c.disconnect(),l.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}),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}),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 wr({title:e,description:t,children:s,open:a,onToggle:r,isLast:o=!1,className:i,id:l,contentMaxHeight:c,footer:d}){const p=x.useId(),m=l??`collapsible-section-${p.replace(/:/g,"")}`,b=R("arrowRight","w-4 h-4 text-text-secondary")??n.jsx(ot,{className:"w-4 h-4 text-text-secondary"}),w=s!=null?c!=null?d!=null?n.jsxs(n.Fragment,{children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:_s}}),n.jsxs("div",{className:"flex flex-col flex-1 min-h-0",style:{maxHeight:c},children:[n.jsx(Gc,{children:s}),n.jsx("div",{className:"shrink-0",children:d})]})]}):n.jsxs(n.Fragment,{children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:_s}}),n.jsx(Bc,{maxHeight:c,children:s})]}):n.jsx("div",{className:"flex flex-1 min-h-0 flex-col",children:s}):void 0;return n.jsxs("div",{className:ke.clsx("flex flex-col justify-center self-stretch border-border-tertiary",!o&&"border-b border-dashed",a?"gap-1.5 py-4":"py-4",i),children:[n.jsxs("button",{type:"button",onClick:r,className:ke.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":a,"aria-controls":m,"aria-label":`${a?"收起":"展开"} ${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:ke.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(te.motion.span,{className:"inline-flex items-center justify-center",animate:{rotate:a?90:0},transition:mr.snappy,children:b})})]}),n.jsx(te.AnimatePresence,{initial:!1,children:a&&n.jsx(te.motion.div,{id:m,className:"overflow-hidden",initial:{height:0},animate:{height:"auto"},exit:{height:0},transition:{duration:et.base,ease:tt.emphasized},children:n.jsxs(te.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:et.fast,ease:tt.emphasized},children:[t!=null&&n.jsx(te.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:et.fast,ease:tt.emphasized},children:t}),w]})},"content")})]})}wr.displayName="CollapsibleSection";function Hc(e,t,{checkForDefaultPrevented:s=!0}={}){return function(r){if(e?.(r),s===!1||!r.defaultPrevented)return t?.(r)}}function Uc(e,t=[]){let s=[];function a(o,i){const l=N.createContext(i),c=s.length;s=[...s,i];const d=m=>{const{scope:b,children:w,...u}=m,g=b?.[e]?.[c]||l,f=N.useMemo(()=>u,Object.values(u));return n.jsx(g.Provider,{value:f,children:w})};d.displayName=o+"Provider";function p(m,b){const w=b?.[e]?.[c]||l,u=N.useContext(w);if(u)return u;if(i!==void 0)return i;throw new Error(`\`${m}\` must be used within \`${o}\``)}return[d,p]}const r=()=>{const o=s.map(i=>N.createContext(i));return function(l){const c=l?.[e]||o;return N.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return r.scopeName=e,[a,Vc(r,...t)]}function Vc(...e){const t=e[0];if(e.length===1)return t;const s=()=>{const a=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(o){const i=a.reduce((l,{useScope:c,scopeName:d})=>{const m=c(o)[`__scope${d}`];return{...l,...m}},{});return N.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return s.scopeName=t.scopeName,s}var rt=globalThis?.document?N.useLayoutEffect:()=>{},qc=N[" useInsertionEffect ".trim().toString()]||rt;function Wc({prop:e,defaultProp:t,onChange:s=()=>{},caller:a}){const[r,o,i]=Zc({defaultProp:t,onChange:s}),l=e!==void 0,c=l?e:r;{const p=N.useRef(e!==void 0);N.useEffect(()=>{const m=p.current;m!==l&&console.warn(`${a} is changing from ${m?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=l},[l,a])}const d=N.useCallback(p=>{if(l){const m=Qc(p)?p(e):p;m!==e&&i.current?.(m)}else o(p)},[l,e,o,i]);return[c,d]}function Zc({defaultProp:e,onChange:t}){const[s,a]=N.useState(e),r=N.useRef(s),o=N.useRef(t);return qc(()=>{o.current=t},[t]),N.useEffect(()=>{r.current!==s&&(o.current?.(s),r.current=s)},[s,r]),[s,a,o]}function Qc(e){return typeof e=="function"}function Ps(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Nr(...e){return t=>{let s=!1;const a=e.map(r=>{const o=Ps(r,t);return!s&&typeof o=="function"&&(s=!0),o});if(s)return()=>{for(let r=0;r<a.length;r++){const o=a[r];typeof o=="function"?o():Ps(e[r],null)}}}}function jr(...e){return N.useCallback(Nr(...e),e)}function Yc(e){const t=Kc(e),s=N.forwardRef((a,r)=>{const{children:o,...i}=a,l=N.Children.toArray(o),c=l.find(Jc);if(c){const d=c.props.children,p=l.map(m=>m===c?N.Children.count(d)>1?N.Children.only(null):N.isValidElement(d)?d.props.children:null:m);return n.jsx(t,{...i,ref:r,children:N.isValidElement(d)?N.cloneElement(d,void 0,p):null})}return n.jsx(t,{...i,ref:r,children:o})});return s.displayName=`${e}.Slot`,s}function Kc(e){const t=N.forwardRef((s,a)=>{const{children:r,...o}=s;if(N.isValidElement(r)){const i=td(r),l=ed(o,r.props);return r.type!==N.Fragment&&(l.ref=a?Nr(a,i):i),N.cloneElement(r,l)}return N.Children.count(r)>1?N.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Xc=Symbol("radix.slottable");function Jc(e){return N.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Xc}function ed(e,t){const s={...t};for(const a in t){const r=e[a],o=t[a];/^on[A-Z]/.test(a)?r&&o?s[a]=(...l)=>{const c=o(...l);return r(...l),c}:r&&(s[a]=r):a==="style"?s[a]={...r,...o}:a==="className"&&(s[a]=[r,o].filter(Boolean).join(" "))}return{...e,...s}}function td(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning;return s?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}var nd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Gn=nd.reduce((e,t)=>{const s=Yc(`Primitive.${t}`),a=N.forwardRef((r,o)=>{const{asChild:i,...l}=r,c=i?s:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),n.jsx(c,{...l,ref:o})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function sd(e,t){return N.useReducer((s,a)=>t[s][a]??s,e)}var Cr=e=>{const{present:t,children:s}=e,a=ad(t),r=typeof s=="function"?s({present:a.isPresent}):N.Children.only(s),o=jr(a.ref,rd(r));return typeof s=="function"||a.isPresent?N.cloneElement(r,{ref:o}):null};Cr.displayName="Presence";function ad(e){const[t,s]=N.useState(),a=N.useRef(null),r=N.useRef(e),o=N.useRef("none"),i=e?"mounted":"unmounted",[l,c]=sd(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return N.useEffect(()=>{const d=Ct(a.current);o.current=l==="mounted"?d:"none"},[l]),rt(()=>{const d=a.current,p=r.current;if(p!==e){const b=o.current,w=Ct(d);e?c("MOUNT"):w==="none"||d?.display==="none"?c("UNMOUNT"):c(p&&b!==w?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),rt(()=>{if(t){let d;const p=t.ownerDocument.defaultView??window,m=w=>{const g=Ct(a.current).includes(CSS.escape(w.animationName));if(w.target===t&&g&&(c("ANIMATION_END"),!r.current)){const f=t.style.animationFillMode;t.style.animationFillMode="forwards",d=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=f)})}},b=w=>{w.target===t&&(o.current=Ct(a.current))};return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{p.clearTimeout(d),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:N.useCallback(d=>{a.current=d?getComputedStyle(d):null,s(d)},[])}}function Ct(e){return e?.animationName||"none"}function rd(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning;return s?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}var od=N[" useId ".trim().toString()]||(()=>{}),id=0;function ld(e){const[t,s]=N.useState(od());return rt(()=>{s(a=>a??String(id++))},[e]),e||(t?`radix-${t}`:"")}var Ht="Collapsible",[cd]=Uc(Ht),[dd,Hn]=cd(Ht),Sr=N.forwardRef((e,t)=>{const{__scopeCollapsible:s,open:a,defaultOpen:r,disabled:o,onOpenChange:i,...l}=e,[c,d]=Wc({prop:a,defaultProp:r??!1,onChange:i,caller:Ht});return n.jsx(dd,{scope:s,disabled:o,contentId:ld(),open:c,onOpenToggle:N.useCallback(()=>d(p=>!p),[d]),children:n.jsx(Gn.div,{"data-state":qn(c),"data-disabled":o?"":void 0,...l,ref:t})})});Sr.displayName=Ht;var Ir="CollapsibleTrigger",Rr=N.forwardRef((e,t)=>{const{__scopeCollapsible:s,...a}=e,r=Hn(Ir,s);return n.jsx(Gn.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":qn(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...a,ref:t,onClick:Hc(e.onClick,r.onOpenToggle)})});Rr.displayName=Ir;var Un="CollapsibleContent",Vn=N.forwardRef((e,t)=>{const{forceMount:s,...a}=e,r=Hn(Un,e.__scopeCollapsible);return n.jsx(Cr,{present:s||r.open,children:({present:o})=>n.jsx(ud,{...a,ref:t,present:o})})});Vn.displayName=Un;var ud=N.forwardRef((e,t)=>{const{__scopeCollapsible:s,present:a,children:r,...o}=e,i=Hn(Un,s),[l,c]=N.useState(a),d=N.useRef(null),p=jr(t,d),m=N.useRef(0),b=m.current,w=N.useRef(0),u=w.current,g=i.open||l,f=N.useRef(g),k=N.useRef(void 0);return N.useEffect(()=>{const h=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(h)},[]),rt(()=>{const h=d.current;if(h){k.current=k.current||{transitionDuration:h.style.transitionDuration,animationName:h.style.animationName},h.style.transitionDuration="0s",h.style.animationName="none";const v=h.getBoundingClientRect();m.current=v.height,w.current=v.width,f.current||(h.style.transitionDuration=k.current.transitionDuration,h.style.animationName=k.current.animationName),c(a)}},[i.open,a]),n.jsx(Gn.div,{"data-state":qn(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!g,...o,ref:p,style:{"--radix-collapsible-content-height":b?`${b}px`:void 0,"--radix-collapsible-content-width":u?`${u}px`:void 0,...e.style},children:g&&r})});function qn(e){return e?"open":"closed"}var pd=Sr;const md=pd,fd=Rr,Ar=N.forwardRef(({className:e,...t},s)=>n.jsx(Vn,{ref:s,className:y("overflow-hidden",e),...t}));Ar.displayName=Vn.displayName;const Er=N.forwardRef(function({direction:t="horizontal",className:s,...a},r){return n.jsx(jn.Group,{elementRef:r,orientation:t,className:y("flex h-full w-full",t==="vertical"&&"flex-col",s),...a})});Er.displayName="ResizablePanelGroup";const Tr=N.forwardRef(function({className:t,...s},a){return n.jsx(jn.Panel,{elementRef:a,className:y(t),...s})});Tr.displayName="ResizablePanel";const Lr=N.forwardRef(function({withHandle:t=!1,className:s,...a},r){return n.jsx(jn.Separator,{elementRef:r,className:y("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",s),...a,children:t&&n.jsx("div",{className:"z-10 shrink-0 rounded-lg bg-border-secondary","data-resize-handle":!0})})});Lr.displayName="ResizableHandle";const be=x.forwardRef(function({children:t,className:s,style:a,maxHeight:r,scrollbarVisibility:o="auto",scrollbarWidth:i=6},l){const d=`Scrollbar-${x.useId().replace(/:/g,"")}`,p=x.useRef(null),[m,b]=x.useState(!1),w=x.useCallback(()=>{o==="auto"&&(b(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{p.current=null,b(!1)},800))},[o]);x.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const u=()=>{if(o==="hidden")return`
|
|
5
5
|
.${d}::-webkit-scrollbar { display: none; }
|
|
6
6
|
.${d} { scrollbar-width: none; }
|
|
7
7
|
`;const f=o==="auto",k=o==="always"?"var(--color-fill-secondary)":"transparent",h="var(--color-fill-secondary)",v=f?`
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
}
|
|
28
28
|
${v}
|
|
29
29
|
.${d}::-webkit-scrollbar-corner { background: transparent; }
|
|
30
|
-
`},g={...a,maxHeight:r};return n.jsxs(n.Fragment,{children:[n.jsx("style",{children:u()}),n.jsx("div",{ref:l,className:y(d,"overflow-y-auto",m&&"Scrollbar-isScrolling",s),style:g,onScroll:o==="auto"?w:void 0,children:t})]})});
|
|
30
|
+
`},g={...a,maxHeight:r};return n.jsxs(n.Fragment,{children:[n.jsx("style",{children:u()}),n.jsx("div",{ref:l,className:y(d,"overflow-y-auto",m&&"Scrollbar-isScrolling",s),style:g,onScroll:o==="auto"?w:void 0,children:t})]})});be.displayName="Scrollbar";const gd=se.cva("animate-pulse bg-fill-tertiary",{variants:{rounded:{default:"rounded-md",circle:"rounded-full"}},defaultVariants:{rounded:"default"}}),_r=x.forwardRef(({className:e,rounded:t="default",...s},a)=>n.jsx("div",{ref:a,className:y(gd({rounded:t}),e),...s}));_r.displayName="Skeleton";const Pr=x.forwardRef(({text:e,duration:t=2,delay:s=0,repeat:a=!0,repeatDelay:r=.5,startOnView:o=!0,once:i=!1,inViewMargin:l,spread:c=2,color:d,shimmerColor:p,className:m,style:b,...w},u)=>{const g=x.useRef(null),f=te.useInView(g,{once:i,margin:l}),k=o?f:!0,h=x.useMemo(()=>e.length*c,[e,c]),v=d||"var(--color-text-secondary)",S=p||"var(--color-text)",C=x.useMemo(()=>({backgroundImage:`linear-gradient(90deg, transparent calc(50% - ${h}px), ${S}, transparent calc(50% + ${h}px)), linear-gradient(${v}, ${v})`}),[h,S,v]),T=E=>{g.current=E,typeof u=="function"?u(E):u&&(u.current=E)};return n.jsx(te.motion.span,{ref:T,className:y("relative inline-block bg-clip-text text-transparent","bg-[length:250%_100%,auto] bg-no-repeat",m),style:{...C,...b},initial:{backgroundPosition:"100% center"},animate:k?{backgroundPosition:"0% center"}:{backgroundPosition:"100% center"},transition:{repeat:a&&!i?1/0:0,repeatDelay:r,duration:t,delay:s,ease:"linear"},...w,children:e})});Pr.displayName="ShimmeringText";const Wn=x.forwardRef(({className:e,...t},s)=>n.jsx("span",{ref:s,role:"status","aria-label":"Loading",...t,children:n.jsx(Ta,{className:y("size-4 animate-spin",e)})}));Wn.displayName="Spinner";const Fr=x.forwardRef(({className:e,...t},s)=>n.jsx("div",{className:"relative w-full overflow-auto scrollbar-auto",children:n.jsx("table",{ref:s,className:y("w-full caption-bottom text-sm",e),...t})}));Fr.displayName="Table";const zr=x.forwardRef(({className:e,...t},s)=>n.jsx("thead",{ref:s,className:y("[&_tr]:border-b border-border-tertiary",e),...t}));zr.displayName="TableHeader";const Dr=x.forwardRef(({className:e,...t},s)=>n.jsx("tbody",{ref:s,className:y("[&_tr:last-child]:border-0",e),...t}));Dr.displayName="TableBody";const Mr=x.forwardRef(({className:e,...t},s)=>n.jsx("tfoot",{ref:s,className:y("border-t border-border-tertiary bg-fill-tertiary font-medium [&>tr]:last:border-b-0",e),...t}));Mr.displayName="TableFooter";const Or=x.forwardRef(({className:e,...t},s)=>n.jsx("tr",{ref:s,className:y("border-b border-border-tertiary transition-colors hover:bg-fill-tertiary data-[state=selected]:bg-fill-tertiary",e),...t}));Or.displayName="TableRow";const $r=x.forwardRef(({className:e,...t},s)=>n.jsx("th",{ref:s,className:y("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}));$r.displayName="TableHead";const Br=x.forwardRef(({className:e,...t},s)=>n.jsx("td",{ref:s,className:y("p-4 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-0.5",e),...t}));Br.displayName="TableCell";const Gr=x.forwardRef(({className:e,...t},s)=>n.jsx("caption",{ref:s,className:y("mt-4 text-sm text-text-secondary",e),...t}));Gr.displayName="TableCaption";const xd=se.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"}}),Hr=N.forwardRef(({className:e,size:t="default",...s},a)=>n.jsx(Ye.Root,{ref:a,className:y(xd({size:t}),e),...s}));Hr.displayName=Ye.Root.displayName;const Ur=N.forwardRef(({className:e,...t},s)=>n.jsx(Ye.Image,{ref:s,className:y("aspect-square h-full w-full overflow-hidden rounded-full object-cover",e),...t}));Ur.displayName=Ye.Image.displayName;const Vr=N.forwardRef(({className:e,...t},s)=>n.jsx(Ye.Fallback,{ref:s,className:y("flex h-full w-full items-center justify-center overflow-hidden rounded-full bg-fill-tertiary text-sm font-medium text-text",e),...t}));Vr.displayName=Ye.Fallback.displayName;const qr=N.forwardRef(({className:e,...t},s)=>n.jsx("span",{ref:s,className:y("absolute bottom-0 right-0 z-10 block h-3 w-3 rounded-full border-2 border-bg-base bg-success",e),...t}));qr.displayName="AvatarBadge";const Wr=N.forwardRef(({className:e,...t},s)=>n.jsx("div",{ref:s,className:y("flex -space-x-2 [&>*]:ring-2 [&>*]:ring-bg-base",e),...t}));Wr.displayName="AvatarGroup";const Zr=N.forwardRef(({className:e,...t},s)=>n.jsx("span",{ref:s,className:y("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}));Zr.displayName="AvatarGroupCount";const Qr="2px",vn="8px",hd="8px",Fs="12px",yd=`[data-sonner-toaster] [data-sonner-toast][data-styled="true"] { padding-left: ${vn} !important; padding-right: ${vn} !important; padding-top: ${Fs} !important; padding-bottom: ${Fs} !important; font-size: var(--font-size-sm) !important; line-height: var(--font-size-sm--line-height) !important; }
|
|
31
31
|
[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: ${pd} !important; }`,zs={className:"text-sm",style:{padding:`var(--spacing-3) ${vn}`,gap:Wr,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)"}},fd=14,gd=3,xd={right:8,left:8,top:24,bottom:24};function Zr({theme:e,toastOptions:t,dataStyle:s,dataTheme:a,icons:r,gap:o=fd,visibleToasts:i=gd,offset:l=xd,...c}){const d=Ke(),p=s!==void 0||a!==void 0?{"data-style":s,"data-theme":a}:d,m=e??(typeof document<"u"&&document.documentElement.getAttribute("data-theme")==="dark"?"dark":"light"),b=n.jsxs(n.Fragment,{children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:md}}),n.jsx("div",{style:{display:"contents"},...p,children:n.jsx(la.Toaster,{theme:m,closeButton:!0,icons:r,gap:o,visibleToasts:i,offset:l,toastOptions:{...zs,...t,style:{...zs.style,...t?.style}},style:{"--border-radius":"var(--radius-lg)",fontFamily:"inherit","--gap":`${o}px`,"--toast-icon-margin-start":"0","--toast-icon-margin-end":Wr,"--toast-button-margin-start":"auto","--toast-button-margin-end":"0"},...c})})]});return typeof document<"u"?ia.createPortal(b,document.body):null}Zr.displayName="Toaster";const Me="w-[var(--font-size-xl)] h-[var(--font-size-xl)] shrink-0",Ds="w-3.5 h-3.5 shrink-0 text-text-tertiary";function Qr({theme:e,toastOptions:t,dataStyle:s,dataTheme:a,...r}){const o=me(),i=s??o.style,l=a??o.theme,c=R("checkboxCircle",Me)??n.jsx(Bt,{className:Me}),d=R("closeCircle",Me)??n.jsx(Pa,{className:Me}),p=R("warning",Me)??n.jsx(it,{className:Me}),m=n.jsx(Wn,{className:Me}),b=R("close",Ds)??n.jsx(_e,{className:Ds}),w=x.useMemo(()=>({success:c,error:d,warning:p,loading:m,close:b}),[c,d,p,m,b]),u=x.useMemo(()=>({...t,style:{gap:"2px",...t?.style},classNames:{actionButton:yn({variant:"primary",size:"sm",rounded:"square"}),cancelButton:yn({variant:"tertiary",size:"sm",rounded:"square"}),...t?.classNames}}),[t]);return n.jsx(Zr,{theme:e,dataStyle:i,dataTheme:l,icons:w,toastOptions:u,...r})}Qr.displayName="Toaster";const We="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",Yr=ae.Root,hd=ae.Group,Kr=ae.Value,Zn=N.forwardRef(({className:e,children:t,disabled:s,triggerIcon:a,...r},o)=>n.jsxs(ae.Trigger,{ref:o,disabled:s,className:y("flex h-9 w-full items-center justify-between gap-2 whitespace-nowrap rounded-lg border border-border-tertiary bg-bg-container px-3 py-2 text-sm text-text placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",We,e),...r,children:[t,n.jsx(ae.Icon,{asChild:!0,children:n.jsx("span",{className:"pointer-events-none flex shrink-0 text-current [&>svg]:text-current",children:a??n.jsx(je,{className:"h-[1em] w-[1em] shrink-0"})})})]}));Zn.displayName=ae.Trigger.displayName;const Qn=N.forwardRef(({className:e,scrollUpIcon:t,...s},a)=>n.jsx(ae.ScrollUpButton,{ref:a,className:y("flex cursor-default items-center justify-center py-1",We,e),...s,children:t??n.jsx(An,{className:"h-[1em] w-[1em]"})}));Qn.displayName=ae.ScrollUpButton.displayName;const Yn=N.forwardRef(({className:e,scrollDownIcon:t,...s},a)=>n.jsx(ae.ScrollDownButton,{ref:a,className:y("flex cursor-default items-center justify-center py-1",We,e),...s,children:t??n.jsx(je,{className:"h-[1em] w-[1em]"})}));Yn.displayName=ae.ScrollDownButton.displayName;const Kn=N.forwardRef(({className:e,children:t,position:s="popper",sideOffset:a=4,dataStyle:r,dataTheme:o,...i},l)=>{const c=Ke(),d=r!==void 0?{"data-style":r,"data-theme":o??c["data-theme"]??""}:c;return n.jsx(ae.Portal,{children:n.jsxs(ae.Content,{ref:l,className:y("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",We,"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:s,sideOffset:a,...d,...i,children:[n.jsx(Qn,{}),n.jsx(ae.Viewport,{className:y(We,s==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),n.jsx(Yn,{})]})})});Kn.displayName=ae.Content.displayName;const Xr=N.forwardRef(({className:e,...t},s)=>n.jsx(ae.Label,{ref:s,className:y("flex h-9 items-center px-3 text-sm font-semibold text-text-secondary",e),...t}));Xr.displayName=ae.Label.displayName;const st=N.forwardRef(({className:e,children:t,itemIndicatorIcon:s,...a},r)=>n.jsxs(ae.Item,{ref:r,className:y("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",We,"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),...a,children:[n.jsx("span",{className:"absolute right-3 flex h-[1em] w-[1em] items-center justify-center",children:n.jsx(ae.ItemIndicator,{children:s??n.jsx(Ie,{className:"h-[1em] w-[1em]"})})}),n.jsx(ae.ItemText,{children:t})]}));st.displayName=ae.Item.displayName;const Jr=N.forwardRef(({className:e,...t},s)=>n.jsx(ae.Separator,{ref:s,className:y("my-1 mx-1 h-px bg-border-tertiary",e),...t}));Jr.displayName=ae.Separator.displayName;const eo=N.forwardRef((e,t)=>{const{style:s,theme:a}=me();return n.jsx(Kn,{ref:t,dataStyle:s,dataTheme:a,...e})});eo.displayName="SelectContent";const yd=Be.Root,bd=se.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"}}),vd=se.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"}}),to=N.forwardRef(({className:e,variant:t="default",...s},a)=>n.jsx(Be.List,{ref:a,className:y(bd({variant:t}),e),...s}));to.displayName=Be.List.displayName;const no=N.forwardRef(({className:e,variant:t="default",...s},a)=>n.jsx(Be.Trigger,{ref:a,className:y(vd({variant:t}),e),...s}));no.displayName=Be.Trigger.displayName;const so=N.forwardRef(({className:e,...t},s)=>n.jsx(Be.Content,{ref:s,className:y("mt-2 outline-none ring-0 data-[state=inactive]:hidden","data-[orientation=vertical]:mt-0 data-[orientation=vertical]:ml-2",e),...t}));so.displayName=Be.Content.displayName;const ao=N.forwardRef(({className:e,...t},s)=>n.jsx(at.Root,{ref:s,className:y("w-full font-sans",e),"data-slot":"collapse",...t}));ao.displayName="Collapse";const ro=N.forwardRef(({className:e,...t},s)=>n.jsx(at.Item,{ref:s,className:y("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}));ro.displayName="CollapseItem";const oo=N.forwardRef(({className:e,children:t,chevronIcon:s,...a},r)=>n.jsx(at.Header,{className:"flex font-sans",children:n.jsxs(at.Trigger,{ref:r,className:y("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",...a,children:[t,n.jsx("span",{className:"shrink-0 inline-flex transition-transform duration-200 group-data-[state=open]:rotate-180","aria-hidden":!0,children:s??n.jsx(je,{className:"size-4 text-text-secondary"})})]})}));oo.displayName="CollapseTrigger";const io=N.forwardRef(({className:e,children:t,...s},a)=>n.jsx(at.Content,{ref:a,className:y("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",...s,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})}));io.displayName="CollapseContent";function lo({className:e,...t}){return n.jsx("h1",{className:y("font-sans scroll-m-20 text-4xl font-extrabold tracking-tight text-balance text-text",e),...t})}lo.displayName="TypographyH1";function co({className:e,...t}){return n.jsx("h2",{className:y("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})}co.displayName="TypographyH2";function uo({className:e,...t}){return n.jsx("h3",{className:y("font-sans scroll-m-20 text-2xl font-semibold tracking-tight text-text",e),...t})}uo.displayName="TypographyH3";function po({className:e,...t}){return n.jsx("h4",{className:y("font-sans scroll-m-20 text-xl font-semibold tracking-tight text-text",e),...t})}po.displayName="TypographyH4";function mo({className:e,...t}){return n.jsx("p",{className:y("font-sans leading-7 text-text [&:not(:first-child)]:mt-6",e),...t})}mo.displayName="TypographyP";function fo({className:e,...t}){return n.jsx("blockquote",{className:y("font-sans mt-6 border-l-2 border-border-tertiary pl-6 italic text-text-secondary",e),...t})}fo.displayName="TypographyBlockquote";function go({className:e,children:t,...s}){return n.jsx(ye,{scrollbarVisibility:"auto",className:y("font-sans my-6 w-full",e),children:t})}go.displayName="TypographyTable";function xo({className:e,...t}){return n.jsx("ul",{className:y("font-sans my-6 ml-6 list-disc text-text [&>li]:mt-2",e),...t})}xo.displayName="TypographyList";function ho({className:e,...t}){return n.jsx("code",{className:y("relative rounded bg-fill-secondary px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold text-text",e),...t})}ho.displayName="TypographyInlineCode";function yo({className:e,...t}){return n.jsx("p",{className:y("font-sans text-xl text-muted-foreground",e),...t})}yo.displayName="TypographyLead";function bo({className:e,...t}){return n.jsx("div",{className:y("font-sans text-lg font-semibold text-text",e),...t})}bo.displayName="TypographyLarge";function vo({className:e,...t}){return n.jsx("small",{className:y("font-sans text-sm font-medium leading-none text-text",e),...t})}vo.displayName="TypographySmall";function ko({className:e,...t}){return n.jsx("p",{className:y("font-sans text-sm text-muted-foreground",e),...t})}ko.displayName="TypographyMuted";const wo=N.forwardRef(({className:e,...t},s)=>{const a=t.value??t.defaultValue??[50];return n.jsxs(wt.Root,{ref:s,className:y("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(wt.Track,{className:y("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(wt.Range,{className:y("absolute rounded-full bg-primary","data-[orientation=horizontal]:h-full","data-[orientation=vertical]:w-full")})}),a.map((r,o)=>n.jsx(wt.Thumb,{className:y("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))]})});wo.displayName="Slider";const No=({className:e,...t})=>n.jsx("nav",{role:"navigation","aria-label":"pagination",className:y("flex w-full justify-center",e),...t});No.displayName="Pagination";const jo=N.forwardRef(({className:e,...t},s)=>n.jsx("ul",{ref:s,className:y("flex flex-row flex-wrap items-center gap-2",e),...t}));jo.displayName="PaginationContent";const Co=N.forwardRef(({className:e,...t},s)=>n.jsx("li",{ref:s,className:y("list-none",e),...t}));Co.displayName="PaginationItem";const So=N.forwardRef(({className:e,isActive:t,...s},a)=>n.jsx("a",{ref:a,"aria-current":t?"page":void 0,className:y("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),...s}));So.displayName="PaginationLink";const Io=N.forwardRef(({className:e,text:t="Previous",...s},a)=>n.jsxs("a",{ref:a,"aria-label":"Go to previous page",className:y("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),...s,children:[n.jsx(dc,{className:"h-4 w-4 shrink-0"}),n.jsx("span",{className:"hidden sm:inline",children:t})]}));Io.displayName="PaginationPrevious";const Ro=N.forwardRef(({className:e,text:t="Next",...s},a)=>n.jsxs("a",{ref:a,"aria-label":"Go to next page",className:y("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),...s,children:[n.jsx("span",{className:"hidden sm:inline",children:t}),n.jsx(Xe,{className:"h-4 w-4 shrink-0"})]}));Ro.displayName="PaginationNext";const Ao=({className:e,...t})=>n.jsx("span",{role:"presentation","aria-hidden":!0,className:y("flex h-9 w-9 shrink-0 items-center justify-center text-text-secondary",e),...t,children:"…"});Ao.displayName="PaginationEllipsis";const Eo=se.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"}}),Xn=N.forwardRef(({className:e,appearance:t="filled",color:s="primary",closable:a=!1,onClose:r,closeAriaLabel:o="Close tag",closeIcon:i,children:l,onMouseEnter:c,onMouseLeave:d,...p},m)=>{const[b,w]=N.useState(!1),u=a&&typeof r=="function",g=v=>{u&&w(!0),c?.(v)},f=v=>{u&&w(!1),d?.(v)},k=v=>{v.preventDefault(),v.stopPropagation(),r?.(v)},h=v=>{v.key!=="Enter"&&v.key!==" "||(v.preventDefault(),v.stopPropagation(),r?.(v))};return n.jsxs("span",{ref:m,className:y(Eo({appearance:t,color:s}),u&&"gap-0 pr-1.5",e),onMouseEnter:g,onMouseLeave:f,...p,children:[l,u&&n.jsx(te.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: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:k,onKeyDown:h,children:i??n.jsx(Ia,{className:"h-3 w-3"})})})]})});Xn.displayName="Tag";const To=N.forwardRef(({className:e,value:t,max:s=100,...a},r)=>{const o=t!=null?Math.min(s,Math.max(0,t)):void 0;return n.jsx(js.Root,{ref:r,value:o??null,max:s,className:y("relative h-1 w-full overflow-hidden rounded-full bg-fill-secondary",e),style:{height:4},...a,children:n.jsx(js.Indicator,{className:"h-full rounded-full bg-success transition-[width] duration-200 ease-out",style:{width:o!=null?`${o/s*100}%`:"0%"}})})});To.displayName="Progress";const kd=124;function Ce({headerIcon:e,headerTitle:t,headerRight:s,children:a,defaultExpanded:r=!0,contentPadding:o="var(--spacing-1.5) var(--spacing-2)",onToggle:i,collapsible:l=!0,footer:c,contentMaxHeight:d,showExpandAllBar:p=!1,maxHeight:m=kd,titleShimmer:b=!1,className:w}){const[u,g]=x.useState(r),[f,k]=x.useState(!1),[h,v]=x.useState(!1),[S,C]=x.useState(!1),[T,E]=x.useState(0),[I,F]=x.useState(p&&r),[Q,z]=x.useState(!1),G=x.useRef(null);x.useLayoutEffect(()=>{if(!p||!u){C(!1),E(0),F(!1);return}F(!0);const O=()=>{const Z=G.current;if(!Z)return;const V=Z.scrollHeight;E(V),C(V>m),F(!1)},W=requestAnimationFrame(O);let oe=null;return G.current&&(oe=new ResizeObserver(O),oe.observe(G.current)),()=>{cancelAnimationFrame(W),oe?.disconnect()}},[p,u,a,m]);const re=()=>{if(!l)return;const O=!u;z(!0),O&&p&&F(!0),g(O),i?.(O),setTimeout(()=>z(!1),300)},$=l&&(f||e==null)?n.jsx(je,{className:y("w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 transition-transform duration-200 text-text-secondary",u?"rotate-0":"-rotate-90")}):e,q=p&&u&&!d,ee=q&&(I||S&&!h||Q||!S&&T===0),A=d!=null?`${d}px`:ee?`${m}px`:q&&S&&h&&T>0?`${Math.max(T+50,2e3)}px`:void 0;return n.jsxs("div",{className:y("rounded-md overflow-hidden border border-border-tertiary bg-fill-tertiary relative",w),children:[n.jsxs("div",{className:y("flex flex-row items-center gap-2 px-2 py-1.5 select-none",u&&"border-b border-border-tertiary"),onMouseEnter:()=>l&&k(!0),onMouseLeave:()=>l&&k(!1),children:[n.jsxs("div",{className:y("flex flex-row items-center gap-2 flex-1 min-w-0",l&&"cursor-pointer"),onClick:re,role:l?"button":void 0,"aria-expanded":l?u: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:$}),n.jsx("div",{className:"min-w-0 flex-1 flex items-center text-xs leading-xs text-text-secondary",children:b?n.jsx("span",{className:"animate-pulse",children:t}):t})]}),s!=null&&n.jsx("div",{className:"flex items-center gap-1.5 shrink-0 relative z-10",onClick:O=>O.stopPropagation(),onMouseDown:O=>O.stopPropagation(),children:s})]}),n.jsx(te.AnimatePresence,{initial:!1,children:u&&n.jsxs(te.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:[.2,.8,.2,1]},className:y("overflow-hidden",Q&&"select-none"),children:[q&&n.jsx("div",{ref:G,className:"absolute invisible h-auto w-full pointer-events-none",style:{padding:o},"aria-hidden":!0,children:a}),n.jsxs("div",{className:y("relative overflow-x-hidden bg-bg-base scrollbar-auto",d!=null?"overflow-y-auto":ee?"overflow-y-hidden":"overflow-y-visible",S&&"transition-[max-height] duration-300 ease-in-out"),style:{padding:o,maxHeight:A},children:[a,q&&S&&T>m&&n.jsx("div",{className:y("absolute bottom-0 left-0 right-0 pointer-events-none h-[25px] bg-gradient-to-b from-transparent to-[var(--color-bg-base)] transition-opacity duration-300",h?"opacity-0":"opacity-100")})]}),q&&S&&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:O=>{O.stopPropagation(),z(!0),v(W=>!W),setTimeout(()=>z(!1),300)},"aria-label":h?"收起":"展开全部",children:n.jsx(je,{className:y("w-[var(--font-size-sm)] h-[var(--font-size-sm)] transition-transform duration-200",h?"rotate-180":"rotate-0")})})]})}),c!=null&&n.jsx("div",{className:"flex flex-row items-center gap-2 px-2 py-1.5 border-t border-border-tertiary",children:c})]})}Ce.displayName="CollapsibleCard";const wd="w-4 h-4",Lo=x.forwardRef(({items:e,selectedId:t,onItemClick:s,width:a="w-52",className:r,moreIcon:o,...i},l)=>{const[c,d]=x.useState(null),p="flex flex-col gap-1.5 rounded-md bg-transparent",m=o??n.jsx(Fa,{className:wd});return n.jsx("div",{ref:l,className:y(p,a,r),...i,children:e.map(b=>{const w=t===b.id,u=b.disabled,g=c===b.id;return n.jsxs("div",{className:y("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",u&&"opacity-50 cursor-not-allowed",!u&&"cursor-pointer",w?"bg-fill-secondary text-text":"bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text"),children:[n.jsx("button",{onClick:()=>{u||s?.(b),d(null)},disabled:u,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?n.jsx("div",{onClick:f=>f.stopPropagation(),children:n.jsxs(Oe,{open:g,onOpenChange:f=>{d(f?b.id:null)},children:[n.jsx($e,{asChild:!0,children:n.jsx("button",{className:y("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:f=>f.stopPropagation(),onMouseDown:f=>f.stopPropagation(),children:n.jsx("span",{className:y("transition-opacity pointer-events-none flex items-center justify-center",w?"opacity-100":"opacity-0 group-hover:opacity-100"),children:b.icon??n.jsx("span",{className:y("w-4 h-4 inline-flex items-center justify-center",w?"text-text":"text-text-secondary"),children:m})})})}),n.jsx(Te,{align:"end",children:b.actions.map(f=>n.jsxs(ke,{variant:f.destructive?"destructive":"default",onClick:k=>{k.stopPropagation(),d(null),f.onClick?.()},children:[f.icon&&n.jsx("span",{className:"mr-2 w-4 h-4 flex items-center justify-center",children:f.icon}),f.label]},f.id))})]})}):n.jsx("span",{className:"flex-shrink-0 w-4 h-4 flex items-center justify-center",onClick:f=>f.stopPropagation(),children:b.icon?n.jsx("span",{className:y("transition-opacity pointer-events-none",w?"opacity-100":"opacity-0 group-hover:opacity-100"),children:b.icon}):n.jsx("span",{className:y("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:m})})]},b.id)})})});Lo.displayName="SidebarMenu";const Nd="w-4 h-4",_o=x.forwardRef((e,t)=>{const s=R("more",Nd);return n.jsx(Lo,{ref:t,moreIcon:s,...e})});_o.displayName="SidebarMenu";const jd=se.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}}),St="w-4 h-4",Pt=x.forwardRef(({label:e,selected:t=!1,disabled:s=!1,multipleFolders:a=!1,onClear:r,size:o="md",rounded:i="square",className:l,onMouseEnter:c,onMouseLeave:d,folderIcon:p,folderFillIcon:m,arrowRightIcon:b,closeIcon:w,...u},g)=>{const[f,k]=x.useState(!1),h=t&&!s&&!a&&typeof r=="function",v=y(jd({size:o,rounded:i,selected:t,className:l}),s&&"opacity-50 cursor-not-allowed",!s&&"cursor-pointer"),S=z=>{h&&k(!0),c?.(z)},C=z=>{h&&k(!1),d?.(z)},T=p??n.jsx(Ea,{className:St}),E=m??n.jsx(Ta,{className:St}),I=b??n.jsx(Xe,{className:St}),F=w??n.jsx(_e,{className:St}),Q=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?E:T}),n.jsx("span",{children:e}),a&&n.jsx("span",{className:"w-4 h-4 flex items-center justify-center flex-shrink-0",children:I}),h?n.jsx(te.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:f?20:0,opacity:f?1:0,marginLeft:f?2:0},transition:{duration:.2,ease:"easeOut"},style:{pointerEvents:f?"auto":"none",minWidth:0},onPointerDown:z=>{z.preventDefault(),z.stopPropagation()},onClick:z=>{z.preventDefault(),z.stopPropagation(),r()},onKeyDown:z=>{(z.key==="Enter"||z.key===" ")&&(z.preventDefault(),z.stopPropagation(),r())},children:n.jsx("span",{className:"w-4 h-4 flex items-center justify-center flex-shrink-0",children:F})}):null]});return n.jsx("button",{ref:g,className:v,disabled:s,onMouseEnter:S,onMouseLeave:C,...u,children:Q})});Pt.displayName="FolderButton";const It="w-4 h-4",Po=x.forwardRef((e,t)=>{const s=R("folder",It),a=R("folderFill",It),r=R("arrowRight",It),o=R("close",It);return n.jsx(Pt,{ref:t,folderIcon:s,folderFillIcon:a,arrowRightIcon:r,closeIcon:o,...e})});Po.displayName="FolderButton";const Fo=x.createContext(null);function Pe(){const e=x.useContext(Fo);if(!e)throw new Error("ChatInput compound components must be used within ChatInput.Root");return e}function Ut({value:e,onChange:t,onSend:s,placeholder:a="What can I help you with today?",disabled:r=!1,maxRows:o=6,form:i,sendButtonStatus:l="normal",showFooter:c=!0,showFolderButton:d=!0,folderButtonLabel:p="Work in a Folder",onFolderButtonClick:m,onFolderClear:b,folderPermission:w,showMoreButton:u=!0,onMoreButtonClick:g,footerLeftConfig:f,showGenerationStatus:k=!1,generationStatus:h,attachments:v,addLargeIcon:S,folderIcon:C,folderOpenIcon:T,historyIcon:E,arrowDownIcon:I,subMenuArrowIcon:F,folderFillIcon:Q,closeIcon:z,dataStyle:G,dataTheme:re,className:M,children:$,...q}){const[ee,A]=x.useState(""),O=x.useRef(null),[W,oe]=x.useState(!1),Z=e!==void 0,V=Z?e:ee,ie=x.useCallback(P=>{O.current=P},[]),he=x.useCallback(P=>{Z||A(P),t?.(P)},[Z,t]),fe=x.useCallback(()=>{const H=(O.current?.value??V??"").trim();!H||r||!s||(s(H),Z||A(""),O.current&&(O.current.style.height="auto"))},[V,r,s,Z]),Y=x.useCallback(P=>{P.key==="Enter"&&!P.shiftKey&&!P.nativeEvent.isComposing&&(P.preventDefault(),fe()),q.onKeyDown?.(P)},[fe,q]),Re=x.useCallback(()=>oe(!0),[]),ge=x.useCallback(()=>{oe(!1),b?.()},[b]),Ae=V.trim().length>0&&!r,D={dataStyle:G,dataTheme:re,value:V,onChange:he,onSend:s,disabled:r,form:i,textareaRef:O,setTextareaRef:ie,handleSend:fe,handleKeyDown:Y,sendButtonStatus:l,canSend:Ae,hasFolderSelected:W,setHasFolderSelected:oe,handleFolderSelect:Re,handleFolderClear:ge,folderPermission:w,footerLeftConfig:f,showFolderButton:d,showMoreButton:u,folderButtonLabel:p,onFolderButtonClick:m,onFolderClear:b,onMoreButtonClick:g,addLargeIcon:S,folderIcon:C,folderOpenIcon:T,historyIcon:E,arrowDownIcon:I,subMenuArrowIcon:F,folderFillIcon:Q,closeIcon:z,showGenerationStatus:k,generationStatus:h,attachments:v,showFooter:c};return n.jsx(Fo.Provider,{value:D,children:$})}Ut.displayName="ChatInputRootProvider";const Cd=se.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"}}),Sd=se.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"}}),mn="w-4 h-4",Jn=x.forwardRef(({status:e="normal",disabled:t=!1,className:s,sendIcon:a,stopIcon:r,micIcon:o,...i},l)=>{const m=e==="normal"?a??n.jsx(pc,{className:mn}):e==="generating"||e==="stopRecording"?r??n.jsx(mc,{className:mn}):o??n.jsx(fc,{className:mn});return n.jsx("button",{ref:l,type:"button",className:Cd({status:e,className:s}),disabled:t,...i,children:n.jsx("span",{className:Sd({status:e}),children:m})})});Jn.displayName="SendButton";function Id({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 es=({children:e,status:t,icon:s,time:a,className:r=""})=>{const o=t??(typeof e=="string"?e:null);if(!(o!=null||e!=null)&&!s&&!a)return null;const l=y("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:l,children:[n.jsx("style",{children:`
|
|
32
|
+
[data-sonner-toaster] [data-sonner-toast] [data-button]:not(:first-of-type) { margin-left: ${hd} !important; }`,zs={className:"text-sm",style:{padding:`var(--spacing-3) ${vn}`,gap:Qr,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)"}},bd=14,vd=3,kd={right:8,left:8,top:24,bottom:24};function Yr({theme:e,toastOptions:t,dataStyle:s,dataTheme:a,icons:r,gap:o=bd,visibleToasts:i=vd,offset:l=kd,...c}){const d=Ke(),p=s!==void 0||a!==void 0?{"data-style":s,"data-theme":a}:d,m=e??(typeof document<"u"&&document.documentElement.getAttribute("data-theme")==="dark"?"dark":"light"),b=n.jsxs(n.Fragment,{children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:yd}}),n.jsx("div",{style:{display:"contents"},...p,children:n.jsx(la.Toaster,{theme:m,closeButton:!0,icons:r,gap:o,visibleToasts:i,offset:l,toastOptions:{...zs,...t,style:{...zs.style,...t?.style}},style:{"--border-radius":"var(--radius-lg)",fontFamily:"inherit","--gap":`${o}px`,"--toast-icon-margin-start":"0","--toast-icon-margin-end":Qr,"--toast-button-margin-start":"auto","--toast-button-margin-end":"0"},...c})})]});return typeof document<"u"?ia.createPortal(b,document.body):null}Yr.displayName="Toaster";const Me="w-[var(--font-size-xl)] h-[var(--font-size-xl)] shrink-0",Ds="w-3.5 h-3.5 shrink-0 text-text-tertiary";function Kr({theme:e,toastOptions:t,dataStyle:s,dataTheme:a,...r}){const o=me(),i=s??o.style,l=a??o.theme,c=R("checkboxCircle",Me)??n.jsx(Bt,{className:Me}),d=R("closeCircle",Me)??n.jsx(za,{className:Me}),p=R("warning",Me)??n.jsx(it,{className:Me}),m=n.jsx(Wn,{className:Me}),b=R("close",Ds)??n.jsx(_e,{className:Ds}),w=x.useMemo(()=>({success:c,error:d,warning:p,loading:m,close:b}),[c,d,p,m,b]),u=x.useMemo(()=>({...t,style:{gap:"2px",...t?.style},classNames:{actionButton:yn({variant:"primary",size:"sm",rounded:"square"}),cancelButton:yn({variant:"tertiary",size:"sm",rounded:"square"}),...t?.classNames}}),[t]);return n.jsx(Yr,{theme:e,dataStyle:i,dataTheme:l,icons:w,toastOptions:u,...r})}Kr.displayName="Toaster";const We="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",Xr=ae.Root,wd=ae.Group,Jr=ae.Value,Zn=N.forwardRef(({className:e,children:t,disabled:s,triggerIcon:a,...r},o)=>n.jsxs(ae.Trigger,{ref:o,disabled:s,className:y("flex h-9 w-full items-center justify-between gap-2 whitespace-nowrap rounded-lg border border-border-tertiary bg-bg-container px-3 py-2 text-sm text-text placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",We,e),...r,children:[t,n.jsx(ae.Icon,{asChild:!0,children:n.jsx("span",{className:"pointer-events-none flex shrink-0 text-current [&>svg]:text-current",children:a??n.jsx(ye,{className:"h-[1em] w-[1em] shrink-0"})})})]}));Zn.displayName=ae.Trigger.displayName;const Qn=N.forwardRef(({className:e,scrollUpIcon:t,...s},a)=>n.jsx(ae.ScrollUpButton,{ref:a,className:y("flex cursor-default items-center justify-center py-1",We,e),...s,children:t??n.jsx(An,{className:"h-[1em] w-[1em]"})}));Qn.displayName=ae.ScrollUpButton.displayName;const Yn=N.forwardRef(({className:e,scrollDownIcon:t,...s},a)=>n.jsx(ae.ScrollDownButton,{ref:a,className:y("flex cursor-default items-center justify-center py-1",We,e),...s,children:t??n.jsx(ye,{className:"h-[1em] w-[1em]"})}));Yn.displayName=ae.ScrollDownButton.displayName;const Kn=N.forwardRef(({className:e,children:t,position:s="popper",sideOffset:a=4,dataStyle:r,dataTheme:o,...i},l)=>{const c=Ke(),d=r!==void 0?{"data-style":r,"data-theme":o??c["data-theme"]??""}:c;return n.jsx(ae.Portal,{children:n.jsxs(ae.Content,{ref:l,className:y("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",We,"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:s,sideOffset:a,...d,...i,children:[n.jsx(Qn,{}),n.jsx(ae.Viewport,{className:y(We,s==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),n.jsx(Yn,{})]})})});Kn.displayName=ae.Content.displayName;const eo=N.forwardRef(({className:e,...t},s)=>n.jsx(ae.Label,{ref:s,className:y("flex h-9 items-center px-3 text-sm font-semibold text-text-secondary",e),...t}));eo.displayName=ae.Label.displayName;const nt=N.forwardRef(({className:e,children:t,itemIndicatorIcon:s,...a},r)=>n.jsxs(ae.Item,{ref:r,className:y("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",We,"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),...a,children:[n.jsx("span",{className:"absolute right-3 flex h-[1em] w-[1em] items-center justify-center",children:n.jsx(ae.ItemIndicator,{children:s??n.jsx(Ie,{className:"h-[1em] w-[1em]"})})}),n.jsx(ae.ItemText,{children:t})]}));nt.displayName=ae.Item.displayName;const to=N.forwardRef(({className:e,...t},s)=>n.jsx(ae.Separator,{ref:s,className:y("my-1 mx-1 h-px bg-border-tertiary",e),...t}));to.displayName=ae.Separator.displayName;const no=N.forwardRef((e,t)=>{const{style:s,theme:a}=me();return n.jsx(Kn,{ref:t,dataStyle:s,dataTheme:a,...e})});no.displayName="SelectContent";const Nd=Be.Root,jd=se.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"}}),Cd=se.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"}}),so=N.forwardRef(({className:e,variant:t="default",...s},a)=>n.jsx(Be.List,{ref:a,className:y(jd({variant:t}),e),...s}));so.displayName=Be.List.displayName;const ao=N.forwardRef(({className:e,variant:t="default",...s},a)=>n.jsx(Be.Trigger,{ref:a,className:y(Cd({variant:t}),e),...s}));ao.displayName=Be.Trigger.displayName;const ro=N.forwardRef(({className:e,...t},s)=>n.jsx(Be.Content,{ref:s,className:y("mt-2 outline-none ring-0 data-[state=inactive]:hidden","data-[orientation=vertical]:mt-0 data-[orientation=vertical]:ml-2",e),...t}));ro.displayName=Be.Content.displayName;const oo=N.forwardRef(({className:e,...t},s)=>n.jsx(st.Root,{ref:s,className:y("w-full font-sans",e),"data-slot":"collapse",...t}));oo.displayName="Collapse";const io=N.forwardRef(({className:e,...t},s)=>n.jsx(st.Item,{ref:s,className:y("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}));io.displayName="CollapseItem";const lo=N.forwardRef(({className:e,children:t,chevronIcon:s,...a},r)=>n.jsx(st.Header,{className:"flex font-sans",children:n.jsxs(st.Trigger,{ref:r,className:y("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",...a,children:[t,n.jsx("span",{className:"shrink-0 inline-flex transition-transform duration-200 group-data-[state=open]:rotate-180","aria-hidden":!0,children:s??n.jsx(ye,{className:"size-4 text-text-secondary"})})]})}));lo.displayName="CollapseTrigger";const co=N.forwardRef(({className:e,children:t,...s},a)=>n.jsx(st.Content,{ref:a,className:y("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",...s,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})}));co.displayName="CollapseContent";function uo({className:e,...t}){return n.jsx("h1",{className:y("font-sans scroll-m-20 text-4xl font-extrabold tracking-tight text-balance text-text",e),...t})}uo.displayName="TypographyH1";function po({className:e,...t}){return n.jsx("h2",{className:y("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})}po.displayName="TypographyH2";function mo({className:e,...t}){return n.jsx("h3",{className:y("font-sans scroll-m-20 text-2xl font-semibold tracking-tight text-text",e),...t})}mo.displayName="TypographyH3";function fo({className:e,...t}){return n.jsx("h4",{className:y("font-sans scroll-m-20 text-xl font-semibold tracking-tight text-text",e),...t})}fo.displayName="TypographyH4";function go({className:e,...t}){return n.jsx("p",{className:y("font-sans leading-7 text-text [&:not(:first-child)]:mt-6",e),...t})}go.displayName="TypographyP";function xo({className:e,...t}){return n.jsx("blockquote",{className:y("font-sans mt-6 border-l-2 border-border-tertiary pl-6 italic text-text-secondary",e),...t})}xo.displayName="TypographyBlockquote";function ho({className:e,children:t,...s}){return n.jsx(be,{scrollbarVisibility:"auto",className:y("font-sans my-6 w-full",e),children:t})}ho.displayName="TypographyTable";function yo({className:e,...t}){return n.jsx("ul",{className:y("font-sans my-6 ml-6 list-disc text-text [&>li]:mt-2",e),...t})}yo.displayName="TypographyList";function bo({className:e,...t}){return n.jsx("code",{className:y("relative rounded bg-fill-secondary px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold text-text",e),...t})}bo.displayName="TypographyInlineCode";function vo({className:e,...t}){return n.jsx("p",{className:y("font-sans text-xl text-muted-foreground",e),...t})}vo.displayName="TypographyLead";function ko({className:e,...t}){return n.jsx("div",{className:y("font-sans text-lg font-semibold text-text",e),...t})}ko.displayName="TypographyLarge";function wo({className:e,...t}){return n.jsx("small",{className:y("font-sans text-sm font-medium leading-none text-text",e),...t})}wo.displayName="TypographySmall";function No({className:e,...t}){return n.jsx("p",{className:y("font-sans text-sm text-muted-foreground",e),...t})}No.displayName="TypographyMuted";const jo=N.forwardRef(({className:e,...t},s)=>{const a=t.value??t.defaultValue??[50];return n.jsxs(wt.Root,{ref:s,className:y("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(wt.Track,{className:y("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(wt.Range,{className:y("absolute rounded-full bg-primary","data-[orientation=horizontal]:h-full","data-[orientation=vertical]:w-full")})}),a.map((r,o)=>n.jsx(wt.Thumb,{className:y("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))]})});jo.displayName="Slider";const Co=({className:e,...t})=>n.jsx("nav",{role:"navigation","aria-label":"pagination",className:y("flex w-full justify-center",e),...t});Co.displayName="Pagination";const So=N.forwardRef(({className:e,...t},s)=>n.jsx("ul",{ref:s,className:y("flex flex-row flex-wrap items-center gap-2",e),...t}));So.displayName="PaginationContent";const Io=N.forwardRef(({className:e,...t},s)=>n.jsx("li",{ref:s,className:y("list-none",e),...t}));Io.displayName="PaginationItem";const Ro=N.forwardRef(({className:e,isActive:t,...s},a)=>n.jsx("a",{ref:a,"aria-current":t?"page":void 0,className:y("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),...s}));Ro.displayName="PaginationLink";const Ao=N.forwardRef(({className:e,text:t="Previous",...s},a)=>n.jsxs("a",{ref:a,"aria-label":"Go to previous page",className:y("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),...s,children:[n.jsx(gc,{className:"h-4 w-4 shrink-0"}),n.jsx("span",{className:"hidden sm:inline",children:t})]}));Ao.displayName="PaginationPrevious";const Eo=N.forwardRef(({className:e,text:t="Next",...s},a)=>n.jsxs("a",{ref:a,"aria-label":"Go to next page",className:y("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),...s,children:[n.jsx("span",{className:"hidden sm:inline",children:t}),n.jsx(ot,{className:"h-4 w-4 shrink-0"})]}));Eo.displayName="PaginationNext";const To=({className:e,...t})=>n.jsx("span",{role:"presentation","aria-hidden":!0,className:y("flex h-9 w-9 shrink-0 items-center justify-center text-text-secondary",e),...t,children:"…"});To.displayName="PaginationEllipsis";const Lo=se.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"}}),Xn=N.forwardRef(({className:e,appearance:t="filled",color:s="primary",closable:a=!1,onClose:r,closeAriaLabel:o="Close tag",closeIcon:i,children:l,onMouseEnter:c,onMouseLeave:d,...p},m)=>{const[b,w]=N.useState(!1),u=a&&typeof r=="function",g=v=>{u&&w(!0),c?.(v)},f=v=>{u&&w(!1),d?.(v)},k=v=>{v.preventDefault(),v.stopPropagation(),r?.(v)},h=v=>{v.key!=="Enter"&&v.key!==" "||(v.preventDefault(),v.stopPropagation(),r?.(v))};return n.jsxs("span",{ref:m,className:y(Lo({appearance:t,color:s}),u&&"gap-0 pr-1.5",e),onMouseEnter:g,onMouseLeave:f,...p,children:[l,u&&n.jsx(te.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: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:k,onKeyDown:h,children:i??n.jsx(Aa,{className:"h-3 w-3"})})})]})});Xn.displayName="Tag";const _o=N.forwardRef(({className:e,value:t,max:s=100,...a},r)=>{const o=t!=null?Math.min(s,Math.max(0,t)):void 0;return n.jsx(js.Root,{ref:r,value:o??null,max:s,className:y("relative h-1 w-full overflow-hidden rounded-full bg-fill-secondary",e),style:{height:4},...a,children:n.jsx(js.Indicator,{className:"h-full rounded-full bg-success transition-[width] duration-200 ease-out",style:{width:o!=null?`${o/s*100}%`:"0%"}})})});_o.displayName="Progress";const Sd=124;function Ce({headerIcon:e,headerTitle:t,headerRight:s,children:a,defaultExpanded:r=!0,contentPadding:o="var(--spacing-1.5) var(--spacing-2)",onToggle:i,collapsible:l=!0,footer:c,contentMaxHeight:d,showExpandAllBar:p=!1,maxHeight:m=Sd,titleShimmer:b=!1,className:w}){const[u,g]=x.useState(r),[f,k]=x.useState(!1),[h,v]=x.useState(!1),[S,C]=x.useState(!1),[T,E]=x.useState(0),[I,F]=x.useState(p&&r),[Q,z]=x.useState(!1),G=x.useRef(null);x.useLayoutEffect(()=>{if(!p||!u){C(!1),E(0),F(!1);return}F(!0);const O=()=>{const Z=G.current;if(!Z)return;const V=Z.scrollHeight;E(V),C(V>m),F(!1)},W=requestAnimationFrame(O);let oe=null;return G.current&&(oe=new ResizeObserver(O),oe.observe(G.current)),()=>{cancelAnimationFrame(W),oe?.disconnect()}},[p,u,a,m]);const re=()=>{if(!l)return;const O=!u;z(!0),O&&p&&F(!0),g(O),i?.(O),setTimeout(()=>z(!1),300)},$=l&&(f||e==null)?n.jsx(ye,{className:y("w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 transition-transform duration-200 text-text-secondary",u?"rotate-0":"-rotate-90")}):e,q=p&&u&&!d,ee=q&&(I||S&&!h||Q||!S&&T===0),A=d!=null?`${d}px`:ee?`${m}px`:q&&S&&h&&T>0?`${Math.max(T+50,2e3)}px`:void 0;return n.jsxs("div",{className:y("rounded-md overflow-hidden border border-border-tertiary bg-fill-tertiary relative",w),children:[n.jsxs("div",{className:y("flex flex-row items-center gap-2 px-2 py-1.5 select-none",u&&"border-b border-border-tertiary"),onMouseEnter:()=>l&&k(!0),onMouseLeave:()=>l&&k(!1),children:[n.jsxs("div",{className:y("flex flex-row items-center gap-2 flex-1 min-w-0",l&&"cursor-pointer"),onClick:re,role:l?"button":void 0,"aria-expanded":l?u: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:$}),n.jsx("div",{className:"min-w-0 flex-1 flex items-center text-xs leading-xs text-text-secondary",children:b?n.jsx("span",{className:"animate-pulse",children:t}):t})]}),s!=null&&n.jsx("div",{className:"flex items-center gap-1.5 shrink-0 relative z-10",onClick:O=>O.stopPropagation(),onMouseDown:O=>O.stopPropagation(),children:s})]}),n.jsx(te.AnimatePresence,{initial:!1,children:u&&n.jsxs(te.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:[.2,.8,.2,1]},className:y("overflow-hidden",Q&&"select-none"),children:[q&&n.jsx("div",{ref:G,className:"absolute invisible h-auto w-full pointer-events-none",style:{padding:o},"aria-hidden":!0,children:a}),n.jsxs("div",{className:y("relative overflow-x-hidden bg-bg-base scrollbar-auto",d!=null?"overflow-y-auto":ee?"overflow-y-hidden":"overflow-y-visible",S&&"transition-[max-height] duration-300 ease-in-out"),style:{padding:o,maxHeight:A},children:[a,q&&S&&T>m&&n.jsx("div",{className:y("absolute bottom-0 left-0 right-0 pointer-events-none h-[25px] bg-gradient-to-b from-transparent to-[var(--color-bg-base)] transition-opacity duration-300",h?"opacity-0":"opacity-100")})]}),q&&S&&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:O=>{O.stopPropagation(),z(!0),v(W=>!W),setTimeout(()=>z(!1),300)},"aria-label":h?"收起":"展开全部",children:n.jsx(ye,{className:y("w-[var(--font-size-sm)] h-[var(--font-size-sm)] transition-transform duration-200",h?"rotate-180":"rotate-0")})})]})}),c!=null&&n.jsx("div",{className:"flex flex-row items-center gap-2 px-2 py-1.5 border-t border-border-tertiary",children:c})]})}Ce.displayName="CollapsibleCard";const Id="w-4 h-4",Po=x.forwardRef(({items:e,selectedId:t,onItemClick:s,width:a="w-52",className:r,moreIcon:o,...i},l)=>{const[c,d]=x.useState(null),p="flex flex-col gap-1.5 rounded-md bg-transparent",m=o??n.jsx(Da,{className:Id});return n.jsx("div",{ref:l,className:y(p,a,r),...i,children:e.map(b=>{const w=t===b.id,u=b.disabled,g=c===b.id;return n.jsxs("div",{className:y("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",u&&"opacity-50 cursor-not-allowed",!u&&"cursor-pointer",w?"bg-fill-secondary text-text":"bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text"),children:[n.jsx("button",{onClick:()=>{u||s?.(b),d(null)},disabled:u,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?n.jsx("div",{onClick:f=>f.stopPropagation(),children:n.jsxs(Oe,{open:g,onOpenChange:f=>{d(f?b.id:null)},children:[n.jsx($e,{asChild:!0,children:n.jsx("button",{className:y("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:f=>f.stopPropagation(),onMouseDown:f=>f.stopPropagation(),children:n.jsx("span",{className:y("transition-opacity pointer-events-none flex items-center justify-center",w?"opacity-100":"opacity-0 group-hover:opacity-100"),children:b.icon??n.jsx("span",{className:y("w-4 h-4 inline-flex items-center justify-center",w?"text-text":"text-text-secondary"),children:m})})})}),n.jsx(Te,{align:"end",children:b.actions.map(f=>n.jsxs(we,{variant:f.destructive?"destructive":"default",onClick:k=>{k.stopPropagation(),d(null),f.onClick?.()},children:[f.icon&&n.jsx("span",{className:"mr-2 w-4 h-4 flex items-center justify-center",children:f.icon}),f.label]},f.id))})]})}):n.jsx("span",{className:"flex-shrink-0 w-4 h-4 flex items-center justify-center",onClick:f=>f.stopPropagation(),children:b.icon?n.jsx("span",{className:y("transition-opacity pointer-events-none",w?"opacity-100":"opacity-0 group-hover:opacity-100"),children:b.icon}):n.jsx("span",{className:y("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:m})})]},b.id)})})});Po.displayName="SidebarMenu";const Rd="w-4 h-4",Fo=x.forwardRef((e,t)=>{const s=R("more",Rd);return n.jsx(Po,{ref:t,moreIcon:s,...e})});Fo.displayName="SidebarMenu";const Ad=se.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}}),St="w-4 h-4",Pt=x.forwardRef(({label:e,selected:t=!1,disabled:s=!1,multipleFolders:a=!1,onClear:r,size:o="md",rounded:i="square",className:l,onMouseEnter:c,onMouseLeave:d,folderIcon:p,folderFillIcon:m,arrowRightIcon:b,closeIcon:w,...u},g)=>{const[f,k]=x.useState(!1),h=t&&!s&&!a&&typeof r=="function",v=y(Ad({size:o,rounded:i,selected:t,className:l}),s&&"opacity-50 cursor-not-allowed",!s&&"cursor-pointer"),S=z=>{h&&k(!0),c?.(z)},C=z=>{h&&k(!1),d?.(z)},T=p??n.jsx(La,{className:St}),E=m??n.jsx(_a,{className:St}),I=b??n.jsx(ot,{className:St}),F=w??n.jsx(_e,{className:St}),Q=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?E:T}),n.jsx("span",{children:e}),a&&n.jsx("span",{className:"w-4 h-4 flex items-center justify-center flex-shrink-0",children:I}),h?n.jsx(te.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:f?20:0,opacity:f?1:0,marginLeft:f?2:0},transition:{duration:.2,ease:"easeOut"},style:{pointerEvents:f?"auto":"none",minWidth:0},onPointerDown:z=>{z.preventDefault(),z.stopPropagation()},onClick:z=>{z.preventDefault(),z.stopPropagation(),r()},onKeyDown:z=>{(z.key==="Enter"||z.key===" ")&&(z.preventDefault(),z.stopPropagation(),r())},children:n.jsx("span",{className:"w-4 h-4 flex items-center justify-center flex-shrink-0",children:F})}):null]});return n.jsx("button",{ref:g,className:v,disabled:s,onMouseEnter:S,onMouseLeave:C,...u,children:Q})});Pt.displayName="FolderButton";const It="w-4 h-4",zo=x.forwardRef((e,t)=>{const s=R("folder",It),a=R("folderFill",It),r=R("arrowRight",It),o=R("close",It);return n.jsx(Pt,{ref:t,folderIcon:s,folderFillIcon:a,arrowRightIcon:r,closeIcon:o,...e})});zo.displayName="FolderButton";const Do=x.createContext(null);function Pe(){const e=x.useContext(Do);if(!e)throw new Error("ChatInput compound components must be used within ChatInput.Root");return e}function Ut({value:e,onChange:t,onSend:s,placeholder:a="What can I help you with today?",disabled:r=!1,maxRows:o=6,form:i,sendButtonStatus:l="normal",showFooter:c=!0,showFolderButton:d=!0,folderButtonLabel:p="Work in a Folder",onFolderButtonClick:m,onFolderClear:b,folderPermission:w,showMoreButton:u=!0,onMoreButtonClick:g,footerLeftConfig:f,showGenerationStatus:k=!1,generationStatus:h,attachments:v,addLargeIcon:S,folderIcon:C,folderOpenIcon:T,historyIcon:E,arrowDownIcon:I,subMenuArrowIcon:F,folderFillIcon:Q,closeIcon:z,dataStyle:G,dataTheme:re,className:M,children:$,...q}){const[ee,A]=x.useState(""),O=x.useRef(null),[W,oe]=x.useState(!1),Z=e!==void 0,V=Z?e:ee,ie=x.useCallback(P=>{O.current=P},[]),he=x.useCallback(P=>{Z||A(P),t?.(P)},[Z,t]),fe=x.useCallback(()=>{const H=(O.current?.value??V??"").trim();!H||r||!s||(s(H),Z||A(""),O.current&&(O.current.style.height="auto"))},[V,r,s,Z]),Y=x.useCallback(P=>{P.key==="Enter"&&!P.shiftKey&&!P.nativeEvent.isComposing&&(P.preventDefault(),fe()),q.onKeyDown?.(P)},[fe,q]),Re=x.useCallback(()=>oe(!0),[]),ge=x.useCallback(()=>{oe(!1),b?.()},[b]),Ae=V.trim().length>0&&!r,D={dataStyle:G,dataTheme:re,value:V,onChange:he,onSend:s,disabled:r,form:i,textareaRef:O,setTextareaRef:ie,handleSend:fe,handleKeyDown:Y,sendButtonStatus:l,canSend:Ae,hasFolderSelected:W,setHasFolderSelected:oe,handleFolderSelect:Re,handleFolderClear:ge,folderPermission:w,footerLeftConfig:f,showFolderButton:d,showMoreButton:u,folderButtonLabel:p,onFolderButtonClick:m,onFolderClear:b,onMoreButtonClick:g,addLargeIcon:S,folderIcon:C,folderOpenIcon:T,historyIcon:E,arrowDownIcon:I,subMenuArrowIcon:F,folderFillIcon:Q,closeIcon:z,showGenerationStatus:k,generationStatus:h,attachments:v,showFooter:c};return n.jsx(Do.Provider,{value:D,children:$})}Ut.displayName="ChatInputRootProvider";const Ed=se.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"}}),Td=se.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"}}),mn="w-4 h-4",Jn=x.forwardRef(({status:e="normal",disabled:t=!1,className:s,sendIcon:a,stopIcon:r,micIcon:o,...i},l)=>{const m=e==="normal"?a??n.jsx(hc,{className:mn}):e==="generating"||e==="stopRecording"?r??n.jsx(yc,{className:mn}):o??n.jsx(bc,{className:mn});return n.jsx("button",{ref:l,type:"button",className:Ed({status:e,className:s}),disabled:t,...i,children:n.jsx("span",{className:Td({status:e}),children:m})})});Jn.displayName="SendButton";function Ld({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 es=({children:e,status:t,icon:s,time:a,className:r=""})=>{const o=t??(typeof e=="string"?e:null);if(!(o!=null||e!=null)&&!s&&!a)return null;const l=y("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:l,children:[n.jsx("style",{children:`
|
|
33
33
|
@keyframes status-dots {
|
|
34
34
|
0%, 100% { opacity: 0.4; }
|
|
35
35
|
50% { opacity: 1; }
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
.status-dots-anim {
|
|
38
38
|
animation: status-dots 1.2s ease-in-out infinite;
|
|
39
39
|
}
|
|
40
|
-
`}),s&&n.jsx("span",{className:"flex h-4 w-4 shrink-0 items-center justify-center text-primary-active",children:s}),o!=null&&n.jsx(Id,{content:String(o)}),o==null&&e!=null&&n.jsx("span",{className:"font-medium text-primary-active",children:e}),a&&n.jsx("span",{className:"ml-auto font-medium font-mono text-primary-active",children:a})]})};es.displayName="GenerationStatusBar";function Rd(e,t,s){x.useEffect(()=>{const a=e.current;if(!a)return;a.style.height="auto";const o=(parseFloat(getComputedStyle(a).lineHeight)||24)*s;a.scrollHeight<=o?a.style.height=`${a.scrollHeight}px`:a.style.height=`${o}px`},[e,t,s])}const zo=x.forwardRef(({value:e,onChange:t,placeholder:s="What can I help you with today?",disabled:a=!1,maxRows:r=6,onKeyDown:o,className:i,style:l,...c},d)=>{const p=x.useRef(null);Rd(p,e,r);const m=x.useCallback(g=>{p.current=g,typeof d=="function"?d(g):d&&(d.current=g)},[d]),b=x.useCallback(g=>t?.(g.target.value),[t]),w={outline:"none",border:"none",boxShadow:"none"},u="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:m,value:e,onChange:b,onKeyDown:o,placeholder:s,disabled:a,rows:1,className:u,...c,style:{...l??{},...w}})});zo.displayName="ChatInputTextarea";function Do({open:e,onOpenChange:t,projectName:s,onAllowOnce:a,onAllowAlways:r}){return n.jsx(ar,{open:e,onOpenChange:t,children:n.jsxs(Fn,{className:"p-6",children:[n.jsxs(zn,{children:[n.jsxs(Mn,{className:"text-xl leading-xl font-semibold text-text",children:['Allow Qoder Work to access and modify files in "',s,'"?']}),n.jsx(On,{className:"mt-2 text-sm leading-sm text-text-tertiary",children:"This permission applies to all files and subfolders in this directory. Qoder Work 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(Dn,{className:"mt-6 flex flex-row justify-end gap-2",children:[n.jsx($n,{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:a,children:"Allow"})]})]})})}Do.displayName="FolderPermissionDialog";const Ad=["~/Projects/qoder-work-ui","~/Documents/workspace","~/Desktop/demo","~/code/my-app"],fn="mr-2 w-4 h-4 shrink-0";function Mo({disabled:e,folderButtonLabel:t,folderPermission:s,onFolderButtonClick:a,onFolderClear:r,onFolderSelect:o,hasFolderSelected:i,dataStyle:l,dataTheme:c,folderIcon:d=n.jsx(Ea,{className:fn}),folderOpenIcon:p=n.jsx(Ta,{className:fn}),historyIcon:m=n.jsx(_a,{className:fn}),subMenuArrowIcon:b,folderFillIcon:w,closeIcon:u}){const g=s?.enable??!1,f=s?.projectName??"04_代码",[k,h]=x.useState(!1),[v,S]=x.useState(!1),[C,T]=x.useState(!1),E=x.useRef(null),I=a??(()=>{}),F=()=>{E.current?.click()},Q=()=>{E.current&&(E.current.value=""),r?.()},z=x.useCallback(M=>{M==="always"&&S(!0),h(!1),T(!0)},[]),G=M=>{if(!g){T(M);return}if(!M){T(!1);return}if(v){T(!0);return}h(!0),T(!1)},re=M=>{const $=M.target.files;$&&$.length>0&&o($)};return a?n.jsx(Pt,{label:t,onClick:I,disabled:e,folderIcon:d,folderFillIcon:w}):n.jsxs(n.Fragment,{children:[n.jsxs(Oe,{open:C,onOpenChange:G,children:[n.jsx($e,{asChild:!0,children:n.jsx(Pt,{label:t,disabled:e,selected:i,onClear:Q,folderIcon:d,folderFillIcon:w,closeIcon:u,className:"focus:outline-none focus-visible:outline-none focus:ring-0 focus-visible:ring-0"})}),n.jsxs(Te,{align:"start",side:"top",className:"min-w-50",dataStyle:l,dataTheme:c,children:[n.jsxs(ke,{onClick:F,children:[d,"Add folder"]}),i&&n.jsxs(ke,{onClick:F,children:[p,"Replace folder"]}),n.jsxs(Wa,{children:[n.jsxs(Ln,{subTriggerIcon:b,children:[m,"Recent folders"]}),n.jsx(_n,{collisionPadding:{bottom:24,left:8},dataStyle:l,dataTheme:c,children:Ad.map(M=>n.jsx(ke,{onClick:()=>{},children:M},M))})]})]})]}),n.jsx("input",{ref:E,type:"file",webkitdirectory:"",multiple:!0,style:{display:"none"},onChange:re}),g&&n.jsx(Do,{open:k,onOpenChange:h,projectName:f,onAllowOnce:()=>z("once"),onAllowAlways:()=>z("always")})]})}Mo.displayName="ChatInputFolderSelector";function Oo({config:e,disabled:t,dataStyle:s,dataTheme:a,arrowDownIcon:r=n.jsx(je,{className:"h-3.5 w-3.5 shrink-0 text-text-secondary"})}){const i=e.modeSwitch.options.find(l=>l.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(Oe,{children:[n.jsx($e,{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(Te,{align:"start",side:"top",className:"min-w-30",dataStyle:s,dataTheme:a,children:e.modeSwitch.options.map(l=>n.jsxs(ke,{onClick:()=>e.modeSwitch.onChange(l.value),className:"flex items-center justify-between gap-2",children:[n.jsxs("span",{className:"flex items-center gap-2",children:[l.icon!=null&&n.jsx("span",{className:"flex shrink-0 [&>*]:block [&>*]:leading-none [&>*]:size-4",children:l.icon}),l.label]}),e.modeSwitch.value===l.value&&n.jsx(Ie,{className:"h-4 w-4 shrink-0 text-primary"})]},l.value))})]}),n.jsxs(Oe,{children:[n.jsx($e,{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(Te,{align:"start",side:"top",className:"min-w-25",dataStyle:s,dataTheme:a,children:e.modelSwitch.options.map(l=>n.jsxs(ke,{onClick:()=>e.modelSwitch.onChange(l.value),className:"flex items-center justify-between gap-2",children:[l.label,e.modelSwitch.value===l.value&&n.jsx(Ie,{className:"h-4 w-4 shrink-0 text-primary"})]},l.value))})]}),e.consumptionMultiplier.options!=null&&e.consumptionMultiplier.options.length>0&&e.consumptionMultiplier.onChange!=null?n.jsxs(Oe,{children:[n.jsx($e,{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(Te,{align:"start",side:"top",className:"min-w-20",dataStyle:s,dataTheme:a,children:e.consumptionMultiplier.options.map(l=>n.jsxs(ke,{onClick:()=>e.consumptionMultiplier.onChange?.(l.value),className:"flex items-center justify-between gap-2",children:[l.label,e.consumptionMultiplier.value===l.value&&n.jsx(Ie,{className:"h-4 w-4 shrink-0 text-primary"})]},l.value))})]}):n.jsx("span",{className:"text-text-secondary",children:e.consumptionMultiplier.value})]})}Oo.displayName="ChatInputModelSwitcher";const Ed=se.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}}),Lt="flex flex-wrap items-center gap-2 px-3 pt-3 pb-2",Td="flex flex-1 items-center min-h-6 p-3",Ld="flex shrink-0 items-center justify-between w-full self-stretch gap-2 p-3";function ct({className:e,style:t,children:s}){return n.jsx("div",{className:y("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:s})}ct.displayName="ChatInputAbove";function dt({className:e,children:t}){const s=Pe();return n.jsx("div",{className:Ed({disabled:s.disabled,className:y("relative",e)}),children:t})}dt.displayName="ChatInputBox";function Vt({className:e,children:t}){return t?n.jsx("div",{className:y(Lt,e),children:t}):null}Vt.displayName="ChatInputAttachments";const ut=x.forwardRef(({placeholder:e="What can I help you with today?",maxRows:t=6,...s},a)=>{const r=Pe(),o=x.useCallback(i=>{r.setTextareaRef(i),typeof a=="function"?a(i):a&&(a.current=i)},[r,a]);return n.jsx("div",{className:Td,children:n.jsx(zo,{ref:o,value:r.value,onChange:r.onChange,onKeyDown:r.handleKeyDown,placeholder:e,disabled:r.disabled,maxRows:t,...s})})});ut.displayName="ChatInputInput";function pt({className:e,children:t}){return n.jsx("div",{className:y(Ld,e),children:t})}pt.displayName="ChatInputActions";function mt({className:e,children:t}){return n.jsx("div",{className:y("flex items-center gap-2",e),children:t})}mt.displayName="ChatInputActionsLeft";function Ze({className:e,children:t}){return n.jsx("div",{className:y("flex items-center gap-2",e),children:t})}Ze.displayName="ChatInputActionsRight";function qt({className:e,style:t,...s}){return n.jsx("button",{type:"button",className:y("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},...s})}qt.displayName="ChatInputExpandButton";function ft(){const e=Pe();return e.showFolderButton?n.jsx(Mo,{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}ft.displayName="ChatInputFolderButton";function gt(){const e=Pe();return e.showMoreButton?n.jsx(Ne,{variant:"ghost",icon:e.addLargeIcon??n.jsx(Fa,{className:"h-5 w-5"}),onClick:e.onMoreButtonClick,disabled:e.disabled}):null}gt.displayName="ChatInputMoreButton";function Ft(){const e=Pe();return n.jsx(Jn,{disabled:!e.canSend||e.disabled,status:e.sendButtonStatus,...e.form?{type:"submit",form:e.form}:{onClick:e.handleSend}})}Ft.displayName="ChatInputSendButton";function xt(){const e=Pe();return e.footerLeftConfig?n.jsx(Oo,{config:e.footerLeftConfig,disabled:e.disabled,arrowDownIcon:e.arrowDownIcon,dataStyle:e.dataStyle,dataTheme:e.dataTheme}):n.jsxs(n.Fragment,{children:[n.jsx(ft,{}),n.jsx(gt,{})]})}xt.displayName="ChatInputFooterLeft";const $o=x.forwardRef(function({className:t,hasAbove:s=!1,hasAttachments:a=!1,hasFooter:r=!0,aboveOverlap:o=!0},i){const l=Pe(),c=()=>{if(!a||l.attachments==null||l.attachments===!1)return null;const m=l.attachments;return typeof m=="object"&&!x.isValidElement(m)&&("files"in m||"images"in m)?n.jsxs(n.Fragment,{children:[m.files&&n.jsx("div",{className:Lt,children:m.files}),m.images&&n.jsx("div",{className:Lt,children:m.images})]}):n.jsx("div",{className:Lt,children:m})},d=()=>n.jsx(xt,{}),p=n.jsxs(dt,{className:y(!r&&!a&&"min-h-14"),children:[c(),n.jsx(ut,{ref:i}),n.jsx(pt,{children:r?n.jsxs(n.Fragment,{children:[n.jsx(mt,{children:d()}),n.jsx("div",{className:"flex-1 h-5"}),n.jsx(Ze,{children:n.jsx(Ft,{})})]}):n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"flex-1 h-5"}),n.jsx(Ze,{children:n.jsx(Ft,{})})]})})]});return s&&l.showGenerationStatus&&l.generationStatus?n.jsxs("div",{className:y("flex flex-col w-full",t),children:[n.jsx(ct,{children:n.jsx(es,{status:typeof l.generationStatus?.content=="string"?l.generationStatus.content:void 0,icon:l.generationStatus?.icon,time:l.generationStatus?.time,children:l.generationStatus?.content})}),p]}):n.jsx("div",{className:t,children:p})});$o.displayName="ChatInputDefaultLayout";function _d(e){return e==null||e===!1?!1:typeof e=="object"&&!x.isValidElement(e)?!!e.files||!!e.images:!0}const Pd=x.forwardRef(function(t,s){const a=_d(t.attachments);return n.jsx(Ut,{...t,children:n.jsx($o,{ref:s,className:t.className,hasAbove:t.showGenerationStatus,hasAttachments:a,hasFooter:t.showFooter,aboveOverlap:!0})})}),de=Pd;de.displayName="ChatInput";de.Root=Ut;de.Above=ct;de.Box=dt;de.Attachments=Vt;de.Input=ut;de.Actions=pt;de.ActionsLeft=mt;de.ActionsRight=Ze;de.ExpandButton=qt;de.FolderButton=ft;de.MoreButton=gt;de.SendButton=Ft;de.FooterLeft=xt;const Fd=de,gn="w-4 h-4",ts=x.forwardRef((e,t)=>{const s=R("send",gn),a=R("stop",gn),r=R("mic",gn);return n.jsx(Jn,{ref:t,sendIcon:s,stopIcon:a,micIcon:r,...e})});ts.displayName="SendButton";function ns(e){const{style:t,theme:s}=me(),a=R("more","h-5 w-5 shrink-0"),r=R("folder","mr-2 w-4 h-4 shrink-0"),o=R("folderOpen","mr-2 w-4 h-4 shrink-0"),i=R("history","mr-2 w-4 h-4 shrink-0"),l=R("arrowDownS","h-3.5 w-3.5 shrink-0 text-text-secondary"),c=R("arrowRight","h-4 w-4 shrink-0"),d=R("folderFill","w-4 h-4 shrink-0"),p=R("close","w-4 h-4 shrink-0");return n.jsx(Ut,{...e,dataStyle:t,dataTheme:s,addLargeIcon:a,folderIcon:r,folderOpenIcon:o,historyIcon:i,arrowDownIcon:l,subMenuArrowIcon:c,folderFillIcon:d,closeIcon:p})}ns.displayName="ChatInputRoot";const Bo=x.forwardRef(function(t,s){const{style:a,theme:r}=me(),o=R("more","h-5 w-5 shrink-0"),i=R("folder","mr-2 w-4 h-4 shrink-0"),l=R("folderOpen","mr-2 w-4 h-4 shrink-0"),c=R("history","mr-2 w-4 h-4 shrink-0"),d=R("arrowDownS","h-3.5 w-3.5 shrink-0 text-text-secondary"),p=R("arrowRight","h-4 w-4 shrink-0"),m=R("folderFill","w-4 h-4 shrink-0"),b=R("close","w-4 h-4 shrink-0");return n.jsx(Fd,{ref:s,dataStyle:a,dataTheme:r,addLargeIcon:o,folderIcon:i,folderOpenIcon:l,historyIcon:c,arrowDownIcon:d,subMenuArrowIcon:p,folderFillIcon:m,closeIcon:b,...t})});Bo.displayName="ChatInput";function ss(){const e=Pe();return n.jsx(ts,{disabled:!e.canSend||e.disabled,status:e.sendButtonStatus,...e.form?{type:"submit",form:e.form}:{onClick:e.handleSend}})}ss.displayName="ChatInputSendButton";const zd=Object.assign(Bo,{Root:ns,Above:ct,Box:dt,Attachments:Vt,Input:ut,Actions:pt,ActionsLeft:mt,ActionsRight:Ze,ExpandButton:qt,FolderButton:ft,MoreButton:gt,SendButton:ss,FooterLeft:xt}),Dd="w-3.5 h-3.5 shrink-0 text-text-tertiary";function Go({items:e,onSelect:t,singleLineText:s=!1,className:a,defaultIcon:r}){const o=e.slice(0,3),i=r??n.jsx(La,{className:Dd});return o.length===0?null:n.jsx("div",{className:y("flex flex-col gap-3 w-full min-w-0",!s&&"max-w-lg",a),role:"list","aria-label":"Related prompt suggestions",children:o.map((l,c)=>{const d=l.icon??i,p=n.jsxs("button",{type:"button",onClick:()=>t?.(l),className:y("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:d}),n.jsx("span",{className:y("min-w-0 flex-1",s?"truncate":"line-clamp-2"),children:l.text})]});return s?n.jsx(rt,{content:l.text,side:"top",children:p},`${l.prompt}-${c}`):n.jsx(x.Fragment,{children:p},`${l.prompt}-${c}`)})})}Go.displayName="RelatedPrompts";const Md="w-3.5 h-3.5 shrink-0 text-text-tertiary";function Ho(e){const t=R("chat3",Md);return n.jsx(Go,{defaultIcon:t,...e})}Ho.displayName="RelatedPrompts";const Od="Repo Wiki",$d=["English","中文","日本語","한국어"],Bd="h-3.5 w-3.5",Gd="h-3 w-3",Ms="h-4 w-4";function Uo({type:e="wiki",title:t,description:s,highlightText:a=Od,language:r="English",rechargeText:o,onClose:i,onGenerate:l,onRecharge:c,onLanguageChange:d,closeIcon:p,arrowDownSIcon:m,suggestionIcon:b,dataStyle:w,dataTheme:u}){const g=e==="credits",f=p??n.jsx(_e,{className:Bd}),k=m??n.jsx(je,{className:Gd}),h=b??(g?n.jsx(it,{className:Ms}):n.jsx(Tn,{className:Ms})),v=t??(g?"Credits Exhausted":"Free Wiki Generation Available"),S=g?"Your credits have been exhausted. Please recharge to continue using.":`Generate ${a} for this repository to boost AI agent with structured context.`,C=s??S,T=()=>{if(!C.includes(a))return n.jsx("span",{children:C});const E=C.split(a),I=[];for(let F=0;F<E.length;F++)E[F]&&I.push(n.jsx("span",{children:E[F]},`text-${F}`)),F<E.length-1&&I.push(n.jsx("span",{className:"text-[var(--color-link)]",children:a},`highlight-${F}`));return n.jsx(n.Fragment,{children:I})};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:f}),n.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[n.jsx("div",{className:y("flex h-4 w-4 shrink-0 items-center justify-center",g?"text-warning":"text-primary"),children:h}),n.jsx("h3",{className:"min-w-0 flex-1 text-base leading-base font-semibold text-text",children:v})]}),n.jsx(n.Fragment,{children:n.jsx(ye,{scrollbarVisibility:"auto",maxHeight:96,className:"mb-2 ml-6 text-xs leading-xs text-text-tertiary",children:T()})}),n.jsx("div",{className:"flex items-center justify-end gap-2",children:g?o&&n.jsx(ne,{variant:"secondary",onClick:c,children:o??"前往充值"}):n.jsxs(n.Fragment,{children:[n.jsxs(Oe,{children:[n.jsx($e,{asChild:!0,children:n.jsxs(ne,{variant:"ghost",className:"flex items-center gap-1",children:[n.jsx("span",{children:r}),k]})}),n.jsx(Te,{dataStyle:w,dataTheme:u,children:$d.map(E=>n.jsx(ke,{onSelect:()=>d?.(E),children:E},E))})]}),n.jsx(ne,{variant:"secondary",onClick:l,children:"Generate"})]})})]})}Uo.displayName="HintBanner";const Hd="h-3.5 w-3.5",Ud="h-3 w-3",Vd="h-4 w-4";function Vo(e){const{style:t,theme:s}=me(),a=R("close",Hd),r=R("arrowDownS",Ud),o=e.type==="credits",i=R(o?"warning":"sparkling",Vd);return n.jsx(Uo,{closeIcon:a,arrowDownSIcon:r,suggestionIcon:i,dataStyle:t,dataTheme:s,...e})}Vo.displayName="HintBanner";function qd(){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:`
|
|
40
|
+
`}),s&&n.jsx("span",{className:"flex h-4 w-4 shrink-0 items-center justify-center text-primary-active",children:s}),o!=null&&n.jsx(Ld,{content:String(o)}),o==null&&e!=null&&n.jsx("span",{className:"font-medium text-primary-active",children:e}),a&&n.jsx("span",{className:"ml-auto font-medium font-mono text-primary-active",children:a})]})};es.displayName="GenerationStatusBar";function _d(e,t,s){x.useEffect(()=>{const a=e.current;if(!a)return;a.style.height="auto";const o=(parseFloat(getComputedStyle(a).lineHeight)||24)*s;a.scrollHeight<=o?a.style.height=`${a.scrollHeight}px`:a.style.height=`${o}px`},[e,t,s])}const Mo=x.forwardRef(({value:e,onChange:t,placeholder:s="What can I help you with today?",disabled:a=!1,maxRows:r=6,onKeyDown:o,className:i,style:l,...c},d)=>{const p=x.useRef(null);_d(p,e,r);const m=x.useCallback(g=>{p.current=g,typeof d=="function"?d(g):d&&(d.current=g)},[d]),b=x.useCallback(g=>t?.(g.target.value),[t]),w={outline:"none",border:"none",boxShadow:"none"},u="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:m,value:e,onChange:b,onKeyDown:o,placeholder:s,disabled:a,rows:1,className:u,...c,style:{...l??{},...w}})});Mo.displayName="ChatInputTextarea";function Oo({open:e,onOpenChange:t,projectName:s,onAllowOnce:a,onAllowAlways:r}){return n.jsx(or,{open:e,onOpenChange:t,children:n.jsxs(Fn,{className:"p-6",children:[n.jsxs(zn,{children:[n.jsxs(Mn,{className:"text-xl leading-xl font-semibold text-text",children:['Allow Qoder Work to access and modify files in "',s,'"?']}),n.jsx(On,{className:"mt-2 text-sm leading-sm text-text-tertiary",children:"This permission applies to all files and subfolders in this directory. Qoder Work 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(Dn,{className:"mt-6 flex flex-row justify-end gap-2",children:[n.jsx($n,{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:a,children:"Allow"})]})]})})}Oo.displayName="FolderPermissionDialog";const Pd=["~/Projects/qoder-work-ui","~/Documents/workspace","~/Desktop/demo","~/code/my-app"],fn="mr-2 w-4 h-4 shrink-0";function $o({disabled:e,folderButtonLabel:t,folderPermission:s,onFolderButtonClick:a,onFolderClear:r,onFolderSelect:o,hasFolderSelected:i,dataStyle:l,dataTheme:c,folderIcon:d=n.jsx(La,{className:fn}),folderOpenIcon:p=n.jsx(_a,{className:fn}),historyIcon:m=n.jsx(Fa,{className:fn}),subMenuArrowIcon:b,folderFillIcon:w,closeIcon:u}){const g=s?.enable??!1,f=s?.projectName??"04_代码",[k,h]=x.useState(!1),[v,S]=x.useState(!1),[C,T]=x.useState(!1),E=x.useRef(null),I=a??(()=>{}),F=()=>{E.current?.click()},Q=()=>{E.current&&(E.current.value=""),r?.()},z=x.useCallback(M=>{M==="always"&&S(!0),h(!1),T(!0)},[]),G=M=>{if(!g){T(M);return}if(!M){T(!1);return}if(v){T(!0);return}h(!0),T(!1)},re=M=>{const $=M.target.files;$&&$.length>0&&o($)};return a?n.jsx(Pt,{label:t,onClick:I,disabled:e,folderIcon:d,folderFillIcon:w}):n.jsxs(n.Fragment,{children:[n.jsxs(Oe,{open:C,onOpenChange:G,children:[n.jsx($e,{asChild:!0,children:n.jsx(Pt,{label:t,disabled:e,selected:i,onClear:Q,folderIcon:d,folderFillIcon:w,closeIcon:u,className:"focus:outline-none focus-visible:outline-none focus:ring-0 focus-visible:ring-0"})}),n.jsxs(Te,{align:"start",side:"top",className:"min-w-50",dataStyle:l,dataTheme:c,children:[n.jsxs(we,{onClick:F,children:[d,"Add folder"]}),i&&n.jsxs(we,{onClick:F,children:[p,"Replace folder"]}),n.jsxs(Qa,{children:[n.jsxs(Ln,{subTriggerIcon:b,children:[m,"Recent folders"]}),n.jsx(_n,{collisionPadding:{bottom:24,left:8},dataStyle:l,dataTheme:c,children:Pd.map(M=>n.jsx(we,{onClick:()=>{},children:M},M))})]})]})]}),n.jsx("input",{ref:E,type:"file",webkitdirectory:"",multiple:!0,style:{display:"none"},onChange:re}),g&&n.jsx(Oo,{open:k,onOpenChange:h,projectName:f,onAllowOnce:()=>z("once"),onAllowAlways:()=>z("always")})]})}$o.displayName="ChatInputFolderSelector";function Bo({config:e,disabled:t,dataStyle:s,dataTheme:a,arrowDownIcon:r=n.jsx(ye,{className:"h-3.5 w-3.5 shrink-0 text-text-secondary"})}){const i=e.modeSwitch.options.find(l=>l.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(Oe,{children:[n.jsx($e,{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(Te,{align:"start",side:"top",className:"min-w-30",dataStyle:s,dataTheme:a,children:e.modeSwitch.options.map(l=>n.jsxs(we,{onClick:()=>e.modeSwitch.onChange(l.value),className:"flex items-center justify-between gap-2",children:[n.jsxs("span",{className:"flex items-center gap-2",children:[l.icon!=null&&n.jsx("span",{className:"flex shrink-0 [&>*]:block [&>*]:leading-none [&>*]:size-4",children:l.icon}),l.label]}),e.modeSwitch.value===l.value&&n.jsx(Ie,{className:"h-4 w-4 shrink-0 text-primary"})]},l.value))})]}),n.jsxs(Oe,{children:[n.jsx($e,{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(Te,{align:"start",side:"top",className:"min-w-25",dataStyle:s,dataTheme:a,children:e.modelSwitch.options.map(l=>n.jsxs(we,{onClick:()=>e.modelSwitch.onChange(l.value),className:"flex items-center justify-between gap-2",children:[l.label,e.modelSwitch.value===l.value&&n.jsx(Ie,{className:"h-4 w-4 shrink-0 text-primary"})]},l.value))})]}),e.consumptionMultiplier.options!=null&&e.consumptionMultiplier.options.length>0&&e.consumptionMultiplier.onChange!=null?n.jsxs(Oe,{children:[n.jsx($e,{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(Te,{align:"start",side:"top",className:"min-w-20",dataStyle:s,dataTheme:a,children:e.consumptionMultiplier.options.map(l=>n.jsxs(we,{onClick:()=>e.consumptionMultiplier.onChange?.(l.value),className:"flex items-center justify-between gap-2",children:[l.label,e.consumptionMultiplier.value===l.value&&n.jsx(Ie,{className:"h-4 w-4 shrink-0 text-primary"})]},l.value))})]}):n.jsx("span",{className:"text-text-secondary",children:e.consumptionMultiplier.value})]})}Bo.displayName="ChatInputModelSwitcher";const Fd=se.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}}),Lt="flex flex-wrap items-center gap-2 px-3 pt-3 pb-2",zd="flex flex-1 items-center min-h-6 p-3",Dd="flex shrink-0 items-center justify-between w-full self-stretch gap-2 p-3";function ct({className:e,style:t,children:s}){return n.jsx("div",{className:y("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:s})}ct.displayName="ChatInputAbove";function dt({className:e,children:t}){const s=Pe();return n.jsx("div",{className:Fd({disabled:s.disabled,className:y("relative",e)}),children:t})}dt.displayName="ChatInputBox";function Vt({className:e,children:t}){return t?n.jsx("div",{className:y(Lt,e),children:t}):null}Vt.displayName="ChatInputAttachments";const ut=x.forwardRef(({placeholder:e="What can I help you with today?",maxRows:t=6,...s},a)=>{const r=Pe(),o=x.useCallback(i=>{r.setTextareaRef(i),typeof a=="function"?a(i):a&&(a.current=i)},[r,a]);return n.jsx("div",{className:zd,children:n.jsx(Mo,{ref:o,value:r.value,onChange:r.onChange,onKeyDown:r.handleKeyDown,placeholder:e,disabled:r.disabled,maxRows:t,...s})})});ut.displayName="ChatInputInput";function pt({className:e,children:t}){return n.jsx("div",{className:y(Dd,e),children:t})}pt.displayName="ChatInputActions";function mt({className:e,children:t}){return n.jsx("div",{className:y("flex items-center gap-2",e),children:t})}mt.displayName="ChatInputActionsLeft";function Ze({className:e,children:t}){return n.jsx("div",{className:y("flex items-center gap-2",e),children:t})}Ze.displayName="ChatInputActionsRight";function qt({className:e,style:t,...s}){return n.jsx("button",{type:"button",className:y("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},...s})}qt.displayName="ChatInputExpandButton";function ft(){const e=Pe();return e.showFolderButton?n.jsx($o,{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}ft.displayName="ChatInputFolderButton";function gt(){const e=Pe();return e.showMoreButton?n.jsx(je,{variant:"ghost",icon:e.addLargeIcon??n.jsx(Da,{className:"h-5 w-5"}),onClick:e.onMoreButtonClick,disabled:e.disabled}):null}gt.displayName="ChatInputMoreButton";function Ft(){const e=Pe();return n.jsx(Jn,{disabled:!e.canSend||e.disabled,status:e.sendButtonStatus,...e.form?{type:"submit",form:e.form}:{onClick:e.handleSend}})}Ft.displayName="ChatInputSendButton";function xt(){const e=Pe();return e.footerLeftConfig?n.jsx(Bo,{config:e.footerLeftConfig,disabled:e.disabled,arrowDownIcon:e.arrowDownIcon,dataStyle:e.dataStyle,dataTheme:e.dataTheme}):n.jsxs(n.Fragment,{children:[n.jsx(ft,{}),n.jsx(gt,{})]})}xt.displayName="ChatInputFooterLeft";const Go=x.forwardRef(function({className:t,hasAbove:s=!1,hasAttachments:a=!1,hasFooter:r=!0,aboveOverlap:o=!0},i){const l=Pe(),c=()=>{if(!a||l.attachments==null||l.attachments===!1)return null;const m=l.attachments;return typeof m=="object"&&!x.isValidElement(m)&&("files"in m||"images"in m)?n.jsxs(n.Fragment,{children:[m.files&&n.jsx("div",{className:Lt,children:m.files}),m.images&&n.jsx("div",{className:Lt,children:m.images})]}):n.jsx("div",{className:Lt,children:m})},d=()=>n.jsx(xt,{}),p=n.jsxs(dt,{className:y(!r&&!a&&"min-h-14"),children:[c(),n.jsx(ut,{ref:i}),n.jsx(pt,{children:r?n.jsxs(n.Fragment,{children:[n.jsx(mt,{children:d()}),n.jsx("div",{className:"flex-1 h-5"}),n.jsx(Ze,{children:n.jsx(Ft,{})})]}):n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"flex-1 h-5"}),n.jsx(Ze,{children:n.jsx(Ft,{})})]})})]});return s&&l.showGenerationStatus&&l.generationStatus?n.jsxs("div",{className:y("flex flex-col w-full",t),children:[n.jsx(ct,{children:n.jsx(es,{status:typeof l.generationStatus?.content=="string"?l.generationStatus.content:void 0,icon:l.generationStatus?.icon,time:l.generationStatus?.time,children:l.generationStatus?.content})}),p]}):n.jsx("div",{className:t,children:p})});Go.displayName="ChatInputDefaultLayout";function Md(e){return e==null||e===!1?!1:typeof e=="object"&&!x.isValidElement(e)?!!e.files||!!e.images:!0}const Od=x.forwardRef(function(t,s){const a=Md(t.attachments);return n.jsx(Ut,{...t,children:n.jsx(Go,{ref:s,className:t.className,hasAbove:t.showGenerationStatus,hasAttachments:a,hasFooter:t.showFooter,aboveOverlap:!0})})}),de=Od;de.displayName="ChatInput";de.Root=Ut;de.Above=ct;de.Box=dt;de.Attachments=Vt;de.Input=ut;de.Actions=pt;de.ActionsLeft=mt;de.ActionsRight=Ze;de.ExpandButton=qt;de.FolderButton=ft;de.MoreButton=gt;de.SendButton=Ft;de.FooterLeft=xt;const $d=de,gn="w-4 h-4",ts=x.forwardRef((e,t)=>{const s=R("send",gn),a=R("stop",gn),r=R("mic",gn);return n.jsx(Jn,{ref:t,sendIcon:s,stopIcon:a,micIcon:r,...e})});ts.displayName="SendButton";function ns(e){const{style:t,theme:s}=me(),a=R("more","h-5 w-5 shrink-0"),r=R("folder","mr-2 w-4 h-4 shrink-0"),o=R("folderOpen","mr-2 w-4 h-4 shrink-0"),i=R("history","mr-2 w-4 h-4 shrink-0"),l=R("arrowDownS","h-3.5 w-3.5 shrink-0 text-text-secondary"),c=R("arrowRight","h-4 w-4 shrink-0"),d=R("folderFill","w-4 h-4 shrink-0"),p=R("close","w-4 h-4 shrink-0");return n.jsx(Ut,{...e,dataStyle:t,dataTheme:s,addLargeIcon:a,folderIcon:r,folderOpenIcon:o,historyIcon:i,arrowDownIcon:l,subMenuArrowIcon:c,folderFillIcon:d,closeIcon:p})}ns.displayName="ChatInputRoot";const Ho=x.forwardRef(function(t,s){const{style:a,theme:r}=me(),o=R("more","h-5 w-5 shrink-0"),i=R("folder","mr-2 w-4 h-4 shrink-0"),l=R("folderOpen","mr-2 w-4 h-4 shrink-0"),c=R("history","mr-2 w-4 h-4 shrink-0"),d=R("arrowDownS","h-3.5 w-3.5 shrink-0 text-text-secondary"),p=R("arrowRight","h-4 w-4 shrink-0"),m=R("folderFill","w-4 h-4 shrink-0"),b=R("close","w-4 h-4 shrink-0");return n.jsx($d,{ref:s,dataStyle:a,dataTheme:r,addLargeIcon:o,folderIcon:i,folderOpenIcon:l,historyIcon:c,arrowDownIcon:d,subMenuArrowIcon:p,folderFillIcon:m,closeIcon:b,...t})});Ho.displayName="ChatInput";function ss(){const e=Pe();return n.jsx(ts,{disabled:!e.canSend||e.disabled,status:e.sendButtonStatus,...e.form?{type:"submit",form:e.form}:{onClick:e.handleSend}})}ss.displayName="ChatInputSendButton";const Bd=Object.assign(Ho,{Root:ns,Above:ct,Box:dt,Attachments:Vt,Input:ut,Actions:pt,ActionsLeft:mt,ActionsRight:Ze,ExpandButton:qt,FolderButton:ft,MoreButton:gt,SendButton:ss,FooterLeft:xt}),Gd="w-3.5 h-3.5 shrink-0 text-text-tertiary";function Uo({items:e,onSelect:t,singleLineText:s=!1,className:a,defaultIcon:r}){const o=e.slice(0,3),i=r??n.jsx(Pa,{className:Gd});return o.length===0?null:n.jsx("div",{className:y("flex flex-col gap-3 w-full min-w-0",!s&&"max-w-lg",a),role:"list","aria-label":"Related prompt suggestions",children:o.map((l,c)=>{const d=l.icon??i,p=n.jsxs("button",{type:"button",onClick:()=>t?.(l),className:y("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:d}),n.jsx("span",{className:y("min-w-0 flex-1",s?"truncate":"line-clamp-2"),children:l.text})]});return s?n.jsx(at,{content:l.text,side:"top",children:p},`${l.prompt}-${c}`):n.jsx(x.Fragment,{children:p},`${l.prompt}-${c}`)})})}Uo.displayName="RelatedPrompts";const Hd="w-3.5 h-3.5 shrink-0 text-text-tertiary";function Vo(e){const t=R("chat3",Hd);return n.jsx(Uo,{defaultIcon:t,...e})}Vo.displayName="RelatedPrompts";const Ud="Repo Wiki",Vd=["English","中文","日本語","한국어"],qd="h-3.5 w-3.5",Wd="h-3 w-3",Ms="h-4 w-4";function qo({type:e="wiki",title:t,description:s,highlightText:a=Ud,language:r="English",rechargeText:o,onClose:i,onGenerate:l,onRecharge:c,onLanguageChange:d,closeIcon:p,arrowDownSIcon:m,suggestionIcon:b,dataStyle:w,dataTheme:u}){const g=e==="credits",f=p??n.jsx(_e,{className:qd}),k=m??n.jsx(ye,{className:Wd}),h=b??(g?n.jsx(it,{className:Ms}):n.jsx(Tn,{className:Ms})),v=t??(g?"Credits Exhausted":"Free Wiki Generation Available"),S=g?"Your credits have been exhausted. Please recharge to continue using.":`Generate ${a} for this repository to boost AI agent with structured context.`,C=s??S,T=()=>{if(!C.includes(a))return n.jsx("span",{children:C});const E=C.split(a),I=[];for(let F=0;F<E.length;F++)E[F]&&I.push(n.jsx("span",{children:E[F]},`text-${F}`)),F<E.length-1&&I.push(n.jsx("span",{className:"text-[var(--color-link)]",children:a},`highlight-${F}`));return n.jsx(n.Fragment,{children:I})};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:f}),n.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[n.jsx("div",{className:y("flex h-4 w-4 shrink-0 items-center justify-center",g?"text-warning":"text-primary"),children:h}),n.jsx("h3",{className:"min-w-0 flex-1 text-base leading-base font-semibold text-text",children:v})]}),n.jsx(n.Fragment,{children:n.jsx(be,{scrollbarVisibility:"auto",maxHeight:96,className:"mb-2 ml-6 text-xs leading-xs text-text-tertiary",children:T()})}),n.jsx("div",{className:"flex items-center justify-end gap-2",children:g?o&&n.jsx(ne,{variant:"secondary",onClick:c,children:o??"前往充值"}):n.jsxs(n.Fragment,{children:[n.jsxs(Oe,{children:[n.jsx($e,{asChild:!0,children:n.jsxs(ne,{variant:"ghost",className:"flex items-center gap-1",children:[n.jsx("span",{children:r}),k]})}),n.jsx(Te,{dataStyle:w,dataTheme:u,children:Vd.map(E=>n.jsx(we,{onSelect:()=>d?.(E),children:E},E))})]}),n.jsx(ne,{variant:"secondary",onClick:l,children:"Generate"})]})})]})}qo.displayName="HintBanner";const Zd="h-3.5 w-3.5",Qd="h-3 w-3",Yd="h-4 w-4";function Wo(e){const{style:t,theme:s}=me(),a=R("close",Zd),r=R("arrowDownS",Qd),o=e.type==="credits",i=R(o?"warning":"sparkling",Yd);return n.jsx(qo,{closeIcon:a,arrowDownSIcon:r,suggestionIcon:i,dataStyle:t,dataTheme:s,...e})}Wo.displayName="HintBanner";function Kd(){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:`
|
|
41
41
|
.thinking-dots span { animation: thinking-dot 1.4s ease-in-out infinite both; }
|
|
42
42
|
.thinking-dots span:nth-child(1) { animation-delay: 0s; }
|
|
43
43
|
.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
|
|
47
47
|
40% { transform: scale(1); opacity: 1; }
|
|
48
48
|
}
|
|
49
|
-
`}),n.jsxs("span",{className:"thinking-dots inline-flex gap-0.5",children:[n.jsx("span",{className:"w-1 h-1 rounded-full bg-current opacity-70"}),n.jsx("span",{className:"w-1 h-1 rounded-full bg-current opacity-70"}),n.jsx("span",{className:"w-1 h-1 rounded-full bg-current opacity-70"})]})]})}function as({text:e="Qoder is Thinking...",textClassName:t,shimmer:s=!0,shimmerDuration:a=2,shimmerSpread:r=2,className:o,loader:i,...l}){const c=x.useMemo(()=>(e||"").length*r,[e,r]),d=i??n.jsx(
|
|
49
|
+
`}),n.jsxs("span",{className:"thinking-dots inline-flex gap-0.5",children:[n.jsx("span",{className:"w-1 h-1 rounded-full bg-current opacity-70"}),n.jsx("span",{className:"w-1 h-1 rounded-full bg-current opacity-70"}),n.jsx("span",{className:"w-1 h-1 rounded-full bg-current opacity-70"})]})]})}function as({text:e="Qoder is Thinking...",textClassName:t,shimmer:s=!0,shimmerDuration:a=2,shimmerSpread:r=2,className:o,loader:i,...l}){const c=x.useMemo(()=>(e||"").length*r,[e,r]),d=i??n.jsx(Kd,{});return n.jsxs("div",{className:y("inline-flex items-center gap-1.5 max-w-full",o),...l,children:[n.jsx("span",{className:"shrink-0 -translate-x-0.5","aria-hidden":!0,children:d}),n.jsx("div",{className:"flex-1 min-w-0 flex items-center",children:s?n.jsx(te.motion.span,{className:y("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% - ${c}px), var(--color-text), transparent calc(50% + ${c}px)), linear-gradient(var(--color-text-secondary), var(--color-text-secondary))`},initial:{backgroundPosition:"100% center"},animate:{backgroundPosition:"0% center"},transition:{repeat:1/0,duration:a,ease:"linear"},children:e}):n.jsx("span",{className:y("text-sm leading-sm text-text-secondary truncate",t),children:e})})]})}as.displayName="ThinkingIndicator";const Xd={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"}]},Jd={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"}]},eu={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"}]},tu=[{step:Xd,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:Jd,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.
|
|
50
50
|
|
|
51
|
-
`},{step:
|
|
51
|
+
`},{step:eu,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.
|
|
52
52
|
|
|
53
|
-
`}],
|
|
53
|
+
`}],nu=`## Plan
|
|
54
54
|
|
|
55
55
|
I will organize your **1,000 local photos** by building an index, clustering them into albums, and then performing a safe rename + move operation.
|
|
56
56
|
|
|
@@ -86,9 +86,9 @@ Example:
|
|
|
86
86
|
## Next step
|
|
87
87
|
|
|
88
88
|
If you want, I can generate a **preview report** first (top 50 renames + album summary) before applying changes.
|
|
89
|
-
`;function Xd(e,t){const s=[];for(const a of e)s.push({type:"think"}),s.push({type:"composer",step:a.step}),s.push({type:"md",md:a.simpleMd});return s.push({type:"think"}),s.push({type:"md",md:t}),s}const rs=x.createContext(null);rs.displayName="ResponseContext";function os(){const e=x.useContext(rs);if(!e)throw new Error("Response compound components must be used within Response.Root");return e}const Jd=n.jsx(as,{text:"Qoder is thinking..."});function Wt({simulate:e=!0,phase:t="thinking",rounds:s,finalMarkdown:a,onSimulateComplete:r,onStepChange:o,thinkingIndicator:i,children:l}){const c=s??Yd,d=a??Kd,p=i??Jd,m=x.useMemo(()=>Xd(c,d),[c,d]),[b,w]=x.useState(0),u=x.useRef(m.length),g=e?b>=m.length-1:t==="done",f=m[b]??null,k=f?.type==="think";x.useEffect(()=>{if(!e||m.length===0)return;const v=m[b]??null;v?.type==="composer"&&v.step?o?.(v.step.text,v.step.toolType):v?.type==="think"&&o?.("Thinking..."),b>=m.length&&r?.()},[e,m,b,o,r]),x.useEffect(()=>{!e||m.length===0||u.current!==m.length&&(u.current=m.length,requestAnimationFrame(()=>w(0)))},[e,m.length]),x.useEffect(()=>{if(!e||m.length===0)return;const v=m[b]??null;if(v?.type==="think"||v?.type==="composer"){const S=window.setTimeout(()=>w(C=>Math.min(C+1,m.length)),580);return()=>window.clearTimeout(S)}},[e,m,b]);const h={phase:t,simulate:e,rounds:c,finalMarkdown:d,blocks:m,visibleIndex:b,setVisibleIndex:w,isSimDone:g,currentBlock:f,showThink:k,onSimulateComplete:r,onStepChange:o,thinkingIndicator:p};return n.jsx(rs.Provider,{value:h,children:l})}Wt.displayName="ResponseRoot";const eu={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:y("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:y("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(ye,{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,...s})=>typeof e=="string"&&e.startsWith("language-")?n.jsx("code",{className:y(e,"font-mono text-sm leading-sm"),...s,children:t}):n.jsx("code",{className:"relative rounded bg-fill-tertiary px-[0.3rem] py-[0.2rem] font-mono text-sm leading-sm font-semibold text-text",...s,children:t}),table:({children:e})=>n.jsx(ye,{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 Qe({children:e,className:t}){return n.jsx("div",{className:y("markdown-body text-sm leading-sm text-text",t),children:n.jsx(Xi,{remarkPlugins:[Ji,el],rehypePlugins:[tl],components:eu,children:e})})}Qe.displayName="MarkdownBody";const tu="w-full h-full text-text-tertiary transition-transform duration-200 ease-in-out",nu="w-full h-full transition-transform duration-200 ease-in-out",is=x.createContext(null);is.displayName="ReasoningStepContext";function Zt(){const e=x.useContext(is);if(!e)throw new Error("ReasoningStep compound components must be used within ReasoningStep.Root");return e}function Qt({text:e,description:t,status:s="completed",icon:a,showIcon:r=!0,details:o,children:i,detailsChildren:l,duration:c=2,spread:d=2,disableExpandAnimation:p=!1,defaultExpanded:m,expanded:b,onExpandedChange:w,eyeIcon:u,arrowRightIcon:g}){const f=b!==void 0,[k,h]=x.useState(m??!1),v=f?b:k,[S,C]=x.useState(!1),T=p&&m!==void 0?m:v,E=r&&typeof e=="string",I=E?"var(--spacing-1.5)":"var(--spacing-2.5)",Q=o!=null&&o.length>0||l!=null,z=x.useCallback(()=>{Q&&(f?w?.(!b):h(A=>!A))},[Q,f,b,w]),[G,re]=x.useState(new Set),M=x.useCallback(A=>{re(O=>{const W=new Set(O);return W.has(A)?W.delete(A):W.add(A),W})},[]),$=x.useMemo(()=>u??n.jsx(Ra,{className:tu}),[u]),q=x.useMemo(()=>g??n.jsx(Xe,{className:nu}),[g]),ee={status:s,isExpanded:v,isHovered:S,setIsHovered:C,toggleExpanded:z,effectiveExpanded:T,effectiveShowIcon:E,hasExpandableContent:Q,text:e,description:t,details:o,detailsChildren:l,duration:c,spread:d,disableExpandAnimation:p,detailIndent:I,expandedNestedKeys:G,toggleNested:M,icon:a,eyeIcon:$,arrowRightIcon:q};return n.jsx(is.Provider,{value:ee,children:i})}Qt.displayName="ReasoningStepRoot";const zt={width:"var(--font-size-xs)",height:"var(--font-size-xs)"},su={ts:"text-info",tsx:"text-info",js:"text-info",jsx:"text-info",py:"text-teal",md:"text-text-secondary",mdx:"text-text-secondary"};function au(e,t){const s=(e??t?.split(".").pop()??"").toLowerCase();return su[s]??"text-text-tertiary"}const ru=x.memo(function({className:t}){return n.jsx("span",{className:y("inline-flex items-center justify-center text-xs leading-xs font-mono",t),style:zt,"aria-hidden":!0,children:"⎔"})}),ou=x.memo(function({prefix:t,primary:s,secondary:a}){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:s,children:s}),a?n.jsx("span",{className:"text-xs leading-xs font-normal text-text-quaternary truncate",title:a,children:a}):null]})]})});function Yt({className:e}){const t=Zt(),s=x.useMemo(()=>typeof t.text=="string"?t.text.length*t.spread:10*t.spread,[t.text,t.spread]),a=()=>t.icon?t.icon:t.eyeIcon,r=()=>typeof t.text!="string"?t.text:t.status==="in-progress"?n.jsx(te.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% - ${s}px), var(--color-text), transparent calc(50% + ${s}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:y("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:zt,children:a()}),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:y("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:zt,children:t.arrowRightIcon})]})]})}Yt.displayName="ReasoningStepHeader";const qo=x.memo(function e({detail:t,depth:s,pathKey:a,detailIndent:r,expandedNestedKeys:o,onToggleNested:i,arrowRightIcon:l}){const c=t.details!=null&&t.details.length>0,d=o.has(a),p=!c,m=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"?n.jsx(ru,{className:au(t.fileType,t.filename)}):void 0,u=x.useCallback(()=>{c&&i(a)},[c,i,a]),g=n.jsxs("div",{className:y("flex flex-row items-center gap-1.5 self-stretch min-h-5 min-w-0",c&&"cursor-pointer"),onClick:c?u:void 0,children:[n.jsx(ou,{prefix:w,primary:m,secondary:b}),c&&n.jsx("div",{className:y("flex items-center justify-center shrink-0 text-text-tertiary",d?"rotate-90":"rotate-0"),style:zt,children:l})]}),f=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"}),g]});if(!c)return n.jsx(x.Fragment,{children:f},a);const h=s===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:[f,n.jsx("div",{className:y("grid transition-[grid-template-rows,opacity] duration-150 ease-out",d?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"),children:n.jsx("div",{className:"overflow-hidden",children:n.jsx("div",{className:y(h),children:t.details?.map((v,S)=>n.jsx(e,{detail:v,depth:s+1,pathKey:`${a}-${S}`,detailIndent:r,disableExpandAnimation:!1,expandedNestedKeys:o,onToggleNested:i,arrowRightIcon:l},`${a}-${S}`))})})})]},a)});function ls({detail:e,depth:t=0,pathKey:s="0"}){const a=Zt();return n.jsx(qo,{detail:e,depth:t,pathKey:s,detailIndent:a.detailIndent,disableExpandAnimation:a.disableExpandAnimation,expandedNestedKeys:a.expandedNestedKeys,onToggleNested:a.toggleNested,arrowRightIcon:a.arrowRightIcon})}ls.displayName="ReasoningStepDetailRow";function Kt({className:e,children:t}){const s=Zt(),a=s.details!=null&&s.details.length>0;return n.jsx("div",{className:y("grid transition-[grid-template-rows,opacity] duration-200 ease-out",s.effectiveExpanded?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0",e),children:n.jsx("div",{className:"overflow-hidden",children:a?n.jsx("div",{className:"flex flex-col",children:s.details?.map((r,o)=>n.jsx(qo,{detail:r,depth:0,pathKey:String(o),detailIndent:s.detailIndent,disableExpandAnimation:s.disableExpandAnimation,expandedNestedKeys:s.expandedNestedKeys,onToggleNested:s.toggleNested,arrowRightIcon:s.arrowRightIcon},String(o)))}):t??s.detailsChildren})})}Kt.displayName="ReasoningStepDetails";function Wo(){const e=Zt();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(Yt,{}),e.hasExpandableContent&&n.jsx(Kt,{})]})}Wo.displayName="ReasoningStepDefaultLayout";function Zo(e){return n.jsx(Qt,{...e,children:n.jsx(Wo,{})})}Zo.displayName="ReasoningStep";const ht=Zo;ht.Root=Qt;ht.Header=Yt;ht.Details=Kt;ht.DetailRow=ls;const Dt=ht;function iu(e){const t=[];let s=0;const a=o=>/[\u4e00-\u9fff\u3040-\u30ff]/.test(o),r=o=>/[a-zA-Z0-9']/.test(o);for(;s<e.length;){const o=e[s];if(a(o))t.push(o),s+=1;else if(r(o)){let i=s;for(;i<e.length&&r(e[i]);)i+=1;t.push(e.slice(s,i)),s=i}else{let i=s;for(;i<e.length&&!a(e[i])&&!r(e[i]);)i+=1;t.push(e.slice(s,i)),s=i}}return t}function lu(e){const t=e.split(/\n\n+/);if(t.length<=1)return{completed:"",partial:e};const s=t.pop()??"";return{completed:t.join(`
|
|
89
|
+
`;function su(e,t){const s=[];for(const a of e)s.push({type:"think"}),s.push({type:"composer",step:a.step}),s.push({type:"md",md:a.simpleMd});return s.push({type:"think"}),s.push({type:"md",md:t}),s}const rs=x.createContext(null);rs.displayName="ResponseContext";function os(){const e=x.useContext(rs);if(!e)throw new Error("Response compound components must be used within Response.Root");return e}const au=n.jsx(as,{text:"Qoder is thinking..."});function Wt({simulate:e=!0,phase:t="thinking",rounds:s,finalMarkdown:a,onSimulateComplete:r,onStepChange:o,thinkingIndicator:i,children:l}){const c=s??tu,d=a??nu,p=i??au,m=x.useMemo(()=>su(c,d),[c,d]),[b,w]=x.useState(0),u=x.useRef(m.length),g=e?b>=m.length-1:t==="done",f=m[b]??null,k=f?.type==="think";x.useEffect(()=>{if(!e||m.length===0)return;const v=m[b]??null;v?.type==="composer"&&v.step?o?.(v.step.text,v.step.toolType):v?.type==="think"&&o?.("Thinking..."),b>=m.length&&r?.()},[e,m,b,o,r]),x.useEffect(()=>{!e||m.length===0||u.current!==m.length&&(u.current=m.length,requestAnimationFrame(()=>w(0)))},[e,m.length]),x.useEffect(()=>{if(!e||m.length===0)return;const v=m[b]??null;if(v?.type==="think"||v?.type==="composer"){const S=window.setTimeout(()=>w(C=>Math.min(C+1,m.length)),580);return()=>window.clearTimeout(S)}},[e,m,b]);const h={phase:t,simulate:e,rounds:c,finalMarkdown:d,blocks:m,visibleIndex:b,setVisibleIndex:w,isSimDone:g,currentBlock:f,showThink:k,onSimulateComplete:r,onStepChange:o,thinkingIndicator:p};return n.jsx(rs.Provider,{value:h,children:l})}Wt.displayName="ResponseRoot";const ru={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:y("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:y("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(be,{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,...s})=>typeof e=="string"&&e.startsWith("language-")?n.jsx("code",{className:y(e,"font-mono text-sm leading-sm"),...s,children:t}):n.jsx("code",{className:"relative rounded bg-fill-tertiary px-[0.3rem] py-[0.2rem] font-mono text-sm leading-sm font-semibold text-text",...s,children:t}),table:({children:e})=>n.jsx(be,{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 Qe({children:e,className:t}){return n.jsx("div",{className:y("markdown-body text-sm leading-sm text-text",t),children:n.jsx(el,{remarkPlugins:[tl,nl],rehypePlugins:[sl],components:ru,children:e})})}Qe.displayName="MarkdownBody";const ou="w-full h-full text-text-tertiary transition-transform duration-200 ease-in-out",iu="w-full h-full transition-transform duration-200 ease-in-out",is=x.createContext(null);is.displayName="ReasoningStepContext";function Zt(){const e=x.useContext(is);if(!e)throw new Error("ReasoningStep compound components must be used within ReasoningStep.Root");return e}function Qt({text:e,description:t,status:s="completed",icon:a,showIcon:r=!0,details:o,children:i,detailsChildren:l,duration:c=2,spread:d=2,disableExpandAnimation:p=!1,defaultExpanded:m,expanded:b,onExpandedChange:w,eyeIcon:u,arrowRightIcon:g}){const f=b!==void 0,[k,h]=x.useState(m??!1),v=f?b:k,[S,C]=x.useState(!1),T=p&&m!==void 0?m:v,E=r&&typeof e=="string",I=E?"var(--spacing-1.5)":"var(--spacing-2.5)",Q=o!=null&&o.length>0||l!=null,z=x.useCallback(()=>{Q&&(f?w?.(!b):h(A=>!A))},[Q,f,b,w]),[G,re]=x.useState(new Set),M=x.useCallback(A=>{re(O=>{const W=new Set(O);return W.has(A)?W.delete(A):W.add(A),W})},[]),$=x.useMemo(()=>u??n.jsx(Ea,{className:ou}),[u]),q=x.useMemo(()=>g??n.jsx(ot,{className:iu}),[g]),ee={status:s,isExpanded:v,isHovered:S,setIsHovered:C,toggleExpanded:z,effectiveExpanded:T,effectiveShowIcon:E,hasExpandableContent:Q,text:e,description:t,details:o,detailsChildren:l,duration:c,spread:d,disableExpandAnimation:p,detailIndent:I,expandedNestedKeys:G,toggleNested:M,icon:a,eyeIcon:$,arrowRightIcon:q};return n.jsx(is.Provider,{value:ee,children:i})}Qt.displayName="ReasoningStepRoot";const zt={width:"var(--font-size-xs)",height:"var(--font-size-xs)"},lu={ts:"text-info",tsx:"text-info",js:"text-info",jsx:"text-info",py:"text-teal",md:"text-text-secondary",mdx:"text-text-secondary"};function cu(e,t){const s=(e??t?.split(".").pop()??"").toLowerCase();return lu[s]??"text-text-tertiary"}const du=x.memo(function({className:t}){return n.jsx("span",{className:y("inline-flex items-center justify-center text-xs leading-xs font-mono",t),style:zt,"aria-hidden":!0,children:"⎔"})}),uu=x.memo(function({prefix:t,primary:s,secondary:a}){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:s,children:s}),a?n.jsx("span",{className:"text-xs leading-xs font-normal text-text-quaternary truncate",title:a,children:a}):null]})]})});function Yt({className:e}){const t=Zt(),s=x.useMemo(()=>typeof t.text=="string"?t.text.length*t.spread:10*t.spread,[t.text,t.spread]),a=()=>t.icon?t.icon:t.eyeIcon,r=()=>typeof t.text!="string"?t.text:t.status==="in-progress"?n.jsx(te.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% - ${s}px), var(--color-text), transparent calc(50% + ${s}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:y("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:zt,children:a()}),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:y("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:zt,children:t.arrowRightIcon})]})]})}Yt.displayName="ReasoningStepHeader";const Zo=x.memo(function e({detail:t,depth:s,pathKey:a,detailIndent:r,expandedNestedKeys:o,onToggleNested:i,arrowRightIcon:l}){const c=t.details!=null&&t.details.length>0,d=o.has(a),p=!c,m=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"?n.jsx(du,{className:cu(t.fileType,t.filename)}):void 0,u=x.useCallback(()=>{c&&i(a)},[c,i,a]),g=n.jsxs("div",{className:y("flex flex-row items-center gap-1.5 self-stretch min-h-5 min-w-0",c&&"cursor-pointer"),onClick:c?u:void 0,children:[n.jsx(uu,{prefix:w,primary:m,secondary:b}),c&&n.jsx("div",{className:y("flex items-center justify-center shrink-0 text-text-tertiary",d?"rotate-90":"rotate-0"),style:zt,children:l})]}),f=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"}),g]});if(!c)return n.jsx(x.Fragment,{children:f},a);const h=s===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:[f,n.jsx("div",{className:y("grid transition-[grid-template-rows,opacity] duration-150 ease-out",d?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"),children:n.jsx("div",{className:"overflow-hidden",children:n.jsx("div",{className:y(h),children:t.details?.map((v,S)=>n.jsx(e,{detail:v,depth:s+1,pathKey:`${a}-${S}`,detailIndent:r,disableExpandAnimation:!1,expandedNestedKeys:o,onToggleNested:i,arrowRightIcon:l},`${a}-${S}`))})})})]},a)});function ls({detail:e,depth:t=0,pathKey:s="0"}){const a=Zt();return n.jsx(Zo,{detail:e,depth:t,pathKey:s,detailIndent:a.detailIndent,disableExpandAnimation:a.disableExpandAnimation,expandedNestedKeys:a.expandedNestedKeys,onToggleNested:a.toggleNested,arrowRightIcon:a.arrowRightIcon})}ls.displayName="ReasoningStepDetailRow";function Kt({className:e,children:t}){const s=Zt(),a=s.details!=null&&s.details.length>0;return n.jsx("div",{className:y("grid transition-[grid-template-rows,opacity] duration-200 ease-out",s.effectiveExpanded?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0",e),children:n.jsx("div",{className:"overflow-hidden",children:a?n.jsx("div",{className:"flex flex-col",children:s.details?.map((r,o)=>n.jsx(Zo,{detail:r,depth:0,pathKey:String(o),detailIndent:s.detailIndent,disableExpandAnimation:s.disableExpandAnimation,expandedNestedKeys:s.expandedNestedKeys,onToggleNested:s.toggleNested,arrowRightIcon:s.arrowRightIcon},String(o)))}):t??s.detailsChildren})})}Kt.displayName="ReasoningStepDetails";function Qo(){const e=Zt();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(Yt,{}),e.hasExpandableContent&&n.jsx(Kt,{})]})}Qo.displayName="ReasoningStepDefaultLayout";function Yo(e){return n.jsx(Qt,{...e,children:n.jsx(Qo,{})})}Yo.displayName="ReasoningStep";const ht=Yo;ht.Root=Qt;ht.Header=Yt;ht.Details=Kt;ht.DetailRow=ls;const Dt=ht;function pu(e){const t=[];let s=0;const a=o=>/[\u4e00-\u9fff\u3040-\u30ff]/.test(o),r=o=>/[a-zA-Z0-9']/.test(o);for(;s<e.length;){const o=e[s];if(a(o))t.push(o),s+=1;else if(r(o)){let i=s;for(;i<e.length&&r(e[i]);)i+=1;t.push(e.slice(s,i)),s=i}else{let i=s;for(;i<e.length&&!a(e[i])&&!r(e[i]);)i+=1;t.push(e.slice(s,i)),s=i}}return t}function mu(e){const t=e.split(/\n\n+/);if(t.length<=1)return{completed:"",partial:e};const s=t.pop()??"";return{completed:t.join(`
|
|
90
90
|
|
|
91
|
-
`),partial:s}}const
|
|
91
|
+
`),partial:s}}const fu=3;function Ko({content:e,isActive:t,onStreamComplete:s,tokenDelayMs:a=14,className:r}){const o=x.useMemo(()=>pu(e),[e]),[i,l]=x.useState(0),c=x.useRef(s);c.current=s;const d=x.useMemo(()=>o.slice(0,i).join(""),[o,i]),{completed:p,partial:m}=x.useMemo(()=>mu(d),[d]);x.useEffect(()=>{if(!t)return;l(0);const w=o.length;if(w===0){c.current?.();return}let u=0;const g=setInterval(()=>{u=Math.min(u+fu,w),l(u),u>=w&&(clearInterval(g),c.current?.())},a);return()=>clearInterval(g)},[t,e,o.length,a]);const b=t&&i<o.length;return o.length===0?null:b?n.jsxs("div",{className:r,children:[p?n.jsx("div",{className:"streaming-completed",children:n.jsx(Qe,{children:p})}):null,m?n.jsx("span",{className:"streaming-partial text-sm leading-sm text-text streaming-token-fade-in",children:m}):null]}):n.jsx("div",{className:r,children:n.jsx(Qe,{children:e})})}function Os(...e){return e.filter(Boolean).join(" ")}const gu=n.jsx(Tn,{className:"h-5 w-5 text-text-on-primary"});function cs({width:e="var(--spacing-80)",height:t="var(--spacing-60)",speed:s=1,caption:a="Qoder is drawing...",captionClassName:r,className:o,style:i,showOverlay:l=!1,overlayText:c,sparklingIcon:d=gu,...p}){const m=x.useRef(null);return x.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{}},[]),x.useEffect(()=>{const b=m.current;if(!b)return;const w=()=>{const k=b.getBoundingClientRect();if(k.width>0&&k.height>0){const h=Math.max(k.width,k.height);b.style.setProperty("--actual-size",`${h}px`)}},u=typeof e=="string"&&e.includes("%")||typeof t=="string"&&t.includes("%");let g=null;const f=()=>{w(),g=new ResizeObserver(w),g.observe(b)};if(u){const k=requestAnimationFrame(()=>f());return()=>{cancelAnimationFrame(k),g?.disconnect()}}return f(),()=>g?.disconnect()},[e,t]),n.jsxs(n.Fragment,{children:[n.jsx("style",{children:`
|
|
92
92
|
@keyframes ai {
|
|
93
93
|
from { --a: 360deg; --l: 0.35; --o: 1; }
|
|
94
94
|
30% { --l: 1.5; }
|
|
@@ -243,14 +243,14 @@ If you want, I can generate a **preview report** first (top 50 renames + album s
|
|
|
243
243
|
font-weight: 600;
|
|
244
244
|
color: var(--color-text-on-primary);
|
|
245
245
|
}
|
|
246
|
-
`}),n.jsxs("div",{ref:m,className:Os("image-generating-container",o),style:{"--container-width":e,"--container-height":t,"--image-generating-speed":String(s),...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"}),l?n.jsx("div",{className:"content-overlay remaining-overlay",children:n.jsx("span",{className:"remaining-text",children:c})}):n.jsxs("div",{className:"content-overlay",children:[n.jsx(te.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:d}),n.jsx("span",{className:Os("caption",r),children:a})]})]})]})}cs.displayName="ImageGenerating";function ds({className:e}){const t=os();return(t.simulate?t.showThink:t.phase==="thinking"||t.phase==="streaming")?n.jsx("span",{className:e,children:t.thinkingIndicator}):null}ds.displayName="ResponseThinking";function us({className:e,children:t}){return n.jsx("div",{className:y("flex flex-col gap-1",e),children:t})}us.displayName="ResponseSteps";function ps({step:e,status:t="completed"}){return n.jsx(Dt,{text:e.text,description:e.description,details:e.details,status:t})}ps.displayName="ResponseStep";function ms({markdown:e,streaming:t=!1,onStreamComplete:s,className:a}){const r=os(),o=e??r.finalMarkdown;return t?n.jsx("div",{className:y("mt-1",a),children:n.jsx(Qo,{content:o,isActive:t,onStreamComplete:s})}):n.jsx("div",{className:y("mt-1",a),children:n.jsx(Qe,{children:o})})}ms.displayName="ResponseContent";function Xt({width:e="320px",height:t="240px",className:s}){return n.jsx(cs,{width:e,height:t,className:s})}Xt.displayName="ResponseImageGenerating";function Jt({className:e}){const t=os(),s=x.useMemo(()=>{if(!t.simulate)return[];const r=[],o=Math.min(t.visibleIndex,t.blocks.length-1);let i=-1;for(let l=0;l<=o;l++)t.blocks[l]?.type==="composer"&&(i=l);for(let l=0;l<=o;l++){const c=t.blocks[l];if(c){if(c.type==="think"){l===t.visibleIndex&&r.push(n.jsx("span",{children:t.thinkingIndicator},`think-${l}`));continue}if(c.type==="composer"&&c.step){const d=l===i&&!t.isSimDone;r.push(n.jsx(Dt,{text:c.step.text,description:c.step.description,details:c.step.details,status:d?"in-progress":"completed"},l))}c.type==="md"&&c.md&&r.push(n.jsx("div",{className:"mt-1",children:n.jsx(Qo,{content:c.md,isActive:l===o,onStreamComplete:()=>{t.setVisibleIndex(d=>Math.min(d+1,t.blocks.length)),l+1>=t.blocks.length&&t.onSimulateComplete?.()}})},`md-${l}`))}}return r},[t]),a=x.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(Dt,{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(Qe,{children:i.md})},`md-${o}`)))}return r},[t]);return t.phase==="imageGenerating"?n.jsx("div",{className:y("flex flex-col gap-3 font-body",e),children:n.jsx(Xt,{})}):t.simulate?n.jsx("div",{className:y("flex flex-col gap-3 font-body",e),children:n.jsx("div",{className:"flex flex-col gap-1",children:s})}):n.jsxs("div",{className:y("flex flex-col gap-3 font-body",e),children:[n.jsx("div",{className:"flex flex-col gap-1",children:a}),(t.phase==="thinking"||t.phase==="streaming")&&t.thinkingIndicator]})}Jt.displayName="ResponseDefaultLayout";function Yo({simulate:e,phase:t,rounds:s,finalMarkdown:a,onSimulateComplete:r,onStepChange:o,thinkingIndicator:i,className:l,...c}){return n.jsx(Wt,{simulate:e,phase:t,rounds:s,finalMarkdown:a,onSimulateComplete:r,onStepChange:o,thinkingIndicator:i,children:n.jsx("div",{...c,children:n.jsx(Jt,{className:l})})})}Yo.displayName="Response";const Fe=Yo;Fe.Root=Wt;Fe.Thinking=ds;Fe.Steps=us;Fe.Step=ps;Fe.Content=ms;Fe.ImageGenerating=Xt;Fe.DefaultLayout=Jt;const uu=Fe,pu=[{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}]}],mu=60,fu=360,gu=0,xu=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}]'),hu={g:"https://jitter.video"},yu=240,bu="5.7.4",vu=360,ku={assets:pu,fr:mu,h:fu,ip:gu,layers:xu,meta:hu,op:yu,v:bu,w:vu},wu=[{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}]}],Nu=60,ju=360,Cu=0,Su=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}]'),Iu={g:"https://jitter.video"},Ru=240,Au="5.7.4",Eu=360,Tu={assets:wu,fr:Nu,h:ju,ip:Cu,layers:Su,meta:Iu,op:Ru,v:Au,w:Eu};function Lu(){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(ws,{animationData:ku,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(ws,{animationData:Tu,loop:!0,autoplay:!0,style:{width:20,height:20}})})}),n.jsx("style",{children:`
|
|
246
|
+
`}),n.jsxs("div",{ref:m,className:Os("image-generating-container",o),style:{"--container-width":e,"--container-height":t,"--image-generating-speed":String(s),...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"}),l?n.jsx("div",{className:"content-overlay remaining-overlay",children:n.jsx("span",{className:"remaining-text",children:c})}):n.jsxs("div",{className:"content-overlay",children:[n.jsx(te.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:d}),n.jsx("span",{className:Os("caption",r),children:a})]})]})]})}cs.displayName="ImageGenerating";function ds({className:e}){const t=os();return(t.simulate?t.showThink:t.phase==="thinking"||t.phase==="streaming")?n.jsx("span",{className:e,children:t.thinkingIndicator}):null}ds.displayName="ResponseThinking";function us({className:e,children:t}){return n.jsx("div",{className:y("flex flex-col gap-1",e),children:t})}us.displayName="ResponseSteps";function ps({step:e,status:t="completed"}){return n.jsx(Dt,{text:e.text,description:e.description,details:e.details,status:t})}ps.displayName="ResponseStep";function ms({markdown:e,streaming:t=!1,onStreamComplete:s,className:a}){const r=os(),o=e??r.finalMarkdown;return t?n.jsx("div",{className:y("mt-1",a),children:n.jsx(Ko,{content:o,isActive:t,onStreamComplete:s})}):n.jsx("div",{className:y("mt-1",a),children:n.jsx(Qe,{children:o})})}ms.displayName="ResponseContent";function Xt({width:e="320px",height:t="240px",className:s}){return n.jsx(cs,{width:e,height:t,className:s})}Xt.displayName="ResponseImageGenerating";function Jt({className:e}){const t=os(),s=x.useMemo(()=>{if(!t.simulate)return[];const r=[],o=Math.min(t.visibleIndex,t.blocks.length-1);let i=-1;for(let l=0;l<=o;l++)t.blocks[l]?.type==="composer"&&(i=l);for(let l=0;l<=o;l++){const c=t.blocks[l];if(c){if(c.type==="think"){l===t.visibleIndex&&r.push(n.jsx("span",{children:t.thinkingIndicator},`think-${l}`));continue}if(c.type==="composer"&&c.step){const d=l===i&&!t.isSimDone;r.push(n.jsx(Dt,{text:c.step.text,description:c.step.description,details:c.step.details,status:d?"in-progress":"completed"},l))}c.type==="md"&&c.md&&r.push(n.jsx("div",{className:"mt-1",children:n.jsx(Ko,{content:c.md,isActive:l===o,onStreamComplete:()=>{t.setVisibleIndex(d=>Math.min(d+1,t.blocks.length)),l+1>=t.blocks.length&&t.onSimulateComplete?.()}})},`md-${l}`))}}return r},[t]),a=x.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(Dt,{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(Qe,{children:i.md})},`md-${o}`)))}return r},[t]);return t.phase==="imageGenerating"?n.jsx("div",{className:y("flex flex-col gap-3 font-body",e),children:n.jsx(Xt,{})}):t.simulate?n.jsx("div",{className:y("flex flex-col gap-3 font-body",e),children:n.jsx("div",{className:"flex flex-col gap-1",children:s})}):n.jsxs("div",{className:y("flex flex-col gap-3 font-body",e),children:[n.jsx("div",{className:"flex flex-col gap-1",children:a}),(t.phase==="thinking"||t.phase==="streaming")&&t.thinkingIndicator]})}Jt.displayName="ResponseDefaultLayout";function Xo({simulate:e,phase:t,rounds:s,finalMarkdown:a,onSimulateComplete:r,onStepChange:o,thinkingIndicator:i,className:l,...c}){return n.jsx(Wt,{simulate:e,phase:t,rounds:s,finalMarkdown:a,onSimulateComplete:r,onStepChange:o,thinkingIndicator:i,children:n.jsx("div",{...c,children:n.jsx(Jt,{className:l})})})}Xo.displayName="Response";const Fe=Xo;Fe.Root=Wt;Fe.Thinking=ds;Fe.Steps=us;Fe.Step=ps;Fe.Content=ms;Fe.ImageGenerating=Xt;Fe.DefaultLayout=Jt;const xu=Fe,hu=[{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}]}],yu=60,bu=360,vu=0,ku=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}]'),wu={g:"https://jitter.video"},Nu=240,ju="5.7.4",Cu=360,Su={assets:hu,fr:yu,h:bu,ip:vu,layers:ku,meta:wu,op:Nu,v:ju,w:Cu},Iu=[{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}]}],Ru=60,Au=360,Eu=0,Tu=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}]'),Lu={g:"https://jitter.video"},_u=240,Pu="5.7.4",Fu=360,zu={assets:Iu,fr:Ru,h:Au,ip:Eu,layers:Tu,meta:Lu,op:_u,v:Pu,w:Fu};function Du(){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(ws,{animationData:Su,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(ws,{animationData:zu,loop:!0,autoplay:!0,style:{width:20,height:20}})})}),n.jsx("style",{children:`
|
|
247
247
|
.thinking-light { display: block; }
|
|
248
248
|
.thinking-dark { display: none; }
|
|
249
249
|
html[data-theme="dark"] .thinking-light, html[data-theme="classic-dark"] .thinking-light { display: none; }
|
|
250
250
|
html[data-theme="dark"] .thinking-dark, html[data-theme="classic-dark"] .thinking-dark { display: block; }
|
|
251
|
-
`})]})}function fs(e){return n.jsx(as,{loader:n.jsx(Lu,{}),...e})}fs.displayName="ThinkingIndicator";function Ko(e){return n.jsx(uu,{...e,thinkingIndicator:e.thinkingIndicator??n.jsx(fs,{text:"Qoder is thinking..."})})}Ko.displayName="Response";const ze=Ko;ze.Root=Wt;ze.Thinking=ds;ze.Steps=us;ze.Step=ps;ze.Content=ms;ze.ImageGenerating=Xt;ze.DefaultLayout=Jt;const _u=ze,Xo=x.forwardRef(({children:e,className:t,maxWidth:s="752px",...a},r)=>{const o=y("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 s=="number"?`${s}px`:s},...a,children:e})});Xo.displayName="UserMessage";const $s="w-5 h-5 text-text-secondary",Jo=x.forwardRef(({filename:e,iconFilename:t,size:s,icon:a,getFileIcon:r,onClick:o,className:i,...l},c)=>{const p=a??(r?r(t??e,$s):n.jsx(En,{className:$s}));return n.jsxs("div",{ref:c,role:o?"button":void 0,tabIndex:o?0:void 0,onClick:o,onKeyDown:o?m=>{(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),o())}:void 0,className:y("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),...l,children:[n.jsx("div",{className:y("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}),s!=null&&s!==""&&n.jsxs("span",{className:"shrink-0 text-text-tertiary",children:["(",s,")"]})]})]})});Jo.displayName="FileCard";function Pu({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 ei(e,t){return n.jsx(Pu,{className:t})}const ti=x.forwardRef((e,t)=>{const{getFileIcon:s}=lt(),a=s??((r,o)=>ei(r,o));return n.jsx(Jo,{ref:t,getFileIcon:a,...e})});ti.displayName="FileCard";const Bs="h-3.5 w-3.5 shrink-0 text-current",ni=x.forwardRef(({filename:e,iconFilename:t,onRemove:s,icon:a,getFileIcon:r,className:o,...i},l)=>{const d=a??(r?r(t??e,Bs):n.jsx(En,{className:Bs})),{color:p,...m}=i;return n.jsx(Xn,{ref:l,appearance:"filled",color:"mauve",closable:typeof s=="function",onClose:s,closeAriaLabel:"移除",className:o,...m,children:n.jsxs("span",{className:"inline-flex items-center gap-1.5 shrink-0",children:[d,e]})})});ni.displayName="FileAttachment";const si=x.forwardRef((e,t)=>{const{getFileIcon:s}=lt(),a=s??((r,o)=>ei(r,o));return n.jsx(ni,{ref:t,getFileIcon:a,...e})});si.displayName="FileAttachment";const Fu={sm:"w-12 h-12",md:"w-16 h-16",lg:"w-20 h-20"},zu="max-w-[90vw] max-h-[90vh] object-contain",Du="h-2.5 w-2.5 text-text-secondary",Mu="h-4 w-4 text-text-secondary",ai=x.forwardRef(({src:e,alt:t="",onRemove:s,previewable:a=!0,onClick:r,size:o="sm",className:i,closeIcon:l,closeLargeIcon:c,...d},p)=>{const[m,b]=x.useState(!1),w=l??n.jsx(_e,{className:Du}),u=c??n.jsx(Ia,{className:Mu}),g=typeof s=="function",f=x.useCallback(()=>{a&&b(!0)},[a]),k=x.useCallback(()=>b(!1),[]),h=x.useCallback(C=>{r?.(C),!C.defaultPrevented&&a&&f()},[r,a,f]),v=x.useCallback(C=>{C.stopPropagation(),s?.(C)},[s]);x.useEffect(()=>{if(!m)return;const C=T=>{T.key==="Escape"&&k()};return window.addEventListener("keydown",C),()=>window.removeEventListener("keydown",C)},[m,k]);const S=m&&typeof document<"u"?ia.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&&k()},onKeyDown:C=>C.key==="Escape"&&k(),children:[n.jsx("img",{src:e,alt:t,className:y("rounded-lg shadow-xl",zu),onClick:C=>C.stopPropagation(),draggable:!1}),n.jsx(Ne,{variant:"tertiary",size:"md",rounded:"pill",icon:u,onClick:k,"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:a?"button":void 0,tabIndex:a?0:void 0,className:y("relative group shrink-0",a&&"cursor-pointer",i),onClick:h,onKeyDown:a?C=>{(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),f())}:void 0,...d,children:[n.jsx("img",{src:e,alt:t,className:y("rounded-lg object-cover border border-border-tertiary",Fu[o]),draggable:!1}),g&&n.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})]}),S]})});ai.displayName="ImageAttachment";const Ou="h-2.5 w-2.5 text-text-secondary",$u="h-4 w-4 text-text-secondary",ri=x.forwardRef((e,t)=>{const s=R("close",Ou),a=R("closeLarge",$u);return n.jsx(ai,{ref:t,closeIcon:s,closeLargeIcon:a,...e})});ri.displayName="ImageAttachment";const oi="w-3.5 h-3.5 text-text-tertiary",ii="w-3.5 h-3.5 transition-transform duration-200 ease-in-out";function li(e){const t=R("eye",oi),s=R("arrowRight",ii);return n.jsx(Qt,{eyeIcon:t,arrowRightIcon:s,...e})}li.displayName="ReasoningStepRoot";function ci(e){const t=R("eye",oi),s=R("arrowRight",ii);return n.jsx(Dt,{eyeIcon:t,arrowRightIcon:s,...e})}ci.displayName="ReasoningStep";const yt=ci;yt.Root=li;yt.Header=Yt;yt.Details=Kt;yt.DetailRow=ls;const Bu=yt,gs="size-[1em] shrink-0",Gu=`${gs} text-text-tertiary`,Hu=`${gs} text-success`,Uu=`${gs} text-text-tertiary`,Vu="w-3.5 h-3.5 text-text-tertiary transition-all duration-200",di=x.memo(function({toolName:t,params:s,status:a,response:r,defaultExpanded:o=!1,statusText:i,className:l,timeIcon:c,checkboxCircleIcon:d,closeCircleIcon:p,arrowRightIcon:m,runningText:b="Running",ranText:w="Ran",failedText:u="Failed",responseLabel:g="Response"}){const[f,k]=x.useState(o),h=r!=null&&r.length>0,v=a==="running",S=a==="success",C=a==="error",E=i!==void 0?i:v?b:S?w:u,I=E!=="",F=c??n.jsx(_a,{className:Gu}),Q=d??n.jsx(Bt,{className:Hu}),z=p??n.jsx(Pa,{className:Uu}),G=m??n.jsx(Xe,{className:Vu});return n.jsxs("div",{className:y("flex flex-col",l),children:[n.jsxs("div",{onClick:()=>h&&!v&&k(!f),className:y("group flex items-center gap-1.5 min-h-5",h&&!v&&"cursor-pointer hover:opacity-80 transition-opacity"),children:[n.jsxs("div",{className:"shrink-0 flex items-center justify-center text-xs",children:[v&&F,S&&Q,C&&z]}),I&&n.jsx("span",{className:"text-xs leading-xs text-text-tertiary shrink-0",children:E}),n.jsx("span",{className:"text-xs leading-xs text-text-secondary shrink-0",children:t}),s!=null&&s!==""&&n.jsx("span",{className:"text-xs leading-xs text-text-tertiary min-w-0 shrink truncate",title:s,children:s}),h&&!v&&n.jsx("div",{className:y("shrink-0 inline-flex items-center justify-center","opacity-0 group-hover:opacity-100",f&&"!opacity-100",f?"rotate-90":"rotate-0"),children:G})]}),h&&f&&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:g}),n.jsx(ye,{scrollbarVisibility:"auto",maxHeight:208,className:"px-2 pb-1 leading-xs",children:n.jsx("pre",{className:y("whitespace-pre-wrap break-words leading-xs",C?"text-error":"text-text-tertiary"),children:r})})]})]})});di.displayName="ToolInvocationCard";const qu="size-[1em] text-text-tertiary",Wu="size-[1em] text-success",Zu="size-[1em] text-text-tertiary",Qu="w-3.5 h-3.5 text-text-tertiary transition-all duration-200",ui=x.memo(function(t){const{t:s}=ca.useTranslation(),a=R("time",qu),r=R("checkboxCircle",Wu),o=R("closeCircle",Zu),i=R("arrowRight",Qu);return n.jsx(di,{timeIcon:a,checkboxCircleIcon:r,closeCircleIcon:o,arrowRightIcon:i,runningText:s("tools.status.running","Running"),ranText:s("tools.status.ran","Ran"),failedText:s("tools.status.failed","Failed"),...t})});ui.displayName="ToolInvocationCard";const Yu=80;function Gs(e){if(!e)return{};const{label:t,...s}=e;return s}const Ku="Permission required",Xu="This action requires your permission.",Ju="Expand",ep="Collapse",tp=", ",pi=x.forwardRef(({title:e,description:t,command:s,commandIntent:a,isLoadingIntent:r=!1,onClose:o,actions:i,className:l,closeIcon:c,warningIcon:d,expandLabel:p=Ju,collapseLabel:m=ep,commaLabel:b=tp,...w},u)=>{const g=e??Ku,f=t??Xu,k=s.length>Yu,[h,v]=x.useState(!k),S=c??n.jsx(_e,{className:"h-3.5 w-3.5"}),C=d??n.jsx(it,{className:"h-4 w-4"});return n.jsxs("div",{ref:u,className:y("relative rounded-lg border border-border-tertiary bg-bg-base p-3",l),...w,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:S}),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:g})]}),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:f})]}):n.jsxs(n.Fragment,{children:[f,a&&n.jsxs("span",{children:[b,a]})]})}),n.jsx("div",{className:"mb-4 ml-6",children:n.jsxs("div",{className:"rounded p-2 bg-fill-tertiary",children:[h||!k?n.jsx("div",{title:s,children:n.jsx(ye,{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:s})}):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:s,children:s}),k&&n.jsx("button",{type:"button",onClick:()=>v(!h),className:"mt-1 flex items-center gap-1 text-xs leading-xs text-text-tertiary hover:text-text transition-colors",children:h?m:p})]})}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[i?.deny&&n.jsx(ne,{variant:"ghost",...Gs(i.deny),children:i.deny.label}),i?.allowOnce&&n.jsx("button",{type:"button",className:y("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"),...Gs(i.allowOnce),children:i.allowOnce.label})]})]})});pi.displayName="PermissionCard";const mi=x.forwardRef((e,t)=>{const{t:s}=ca.useTranslation(),a=R("close","h-3.5 w-3.5"),r=R("warning","h-4 w-4");return n.jsx(pi,{ref:t,...e,closeIcon:a,warningIcon:r,title:e.title??s("permission.title"),description:e.description??s("permission.description.default",{toolName:"Tool"}),expandLabel:s("permission.expand"),collapseLabel:s("permission.collapse"),commaLabel:s("common.comma")})});mi.displayName="PermissionCard";const np="h-5 w-5 text-text-on-primary";function fi(e){const t=R("sparkling",np);return n.jsx(cs,{sparklingIcon:t,...e})}fi.displayName="ImageGenerating";const gi=x.memo(function({children:t,className:s="",gridClassName:a="",isGenerating:r=!1,maxVisibleWhenGenerating:o=6,formatRemaining:i=l=>`+${l}`}){const l=x.Children.toArray(t),c=l.length,d=r&&c>o,p=d?o:c,m=c-o+1,w=l.slice(0,p).map((u,g)=>d&&g===p-1&&x.isValidElement(u)?x.cloneElement(u,{showOverlay:!0,overlayText:i(m)}):u);return n.jsx("div",{className:y("mt-5 mb-2",s),children:n.jsx("div",{className:y("flex flex-wrap gap-3",a),children:w})})});gi.displayName="GeneratedImagesGrid";const sp={multiSelect:"Multi-select",singleSelect:"Single-select",questionHeader:"Question",skipAll:"Skip All",continue:"Continue",submit:"Submit",sending:"Sending...",customInputPlaceholder:"Other (please specify)",recommend:"Recommend"},ap="[No preference]",xs=x.createContext(null);xs.displayName="UserQuestionContext";function bt(){const e=x.useContext(xs);if(!e)throw new Error("UserQuestion compound components must be used within UserQuestion.Root");return e}const rp=n.jsx(La,{className:"w-4 h-4 shrink-0 text-text-tertiary"}),op=n.jsx(An,{}),ip=n.jsx(je,{}),lp=n.jsx(Tn,{className:"w-4 h-4 mr-1"}),en=x.forwardRef(function({questions:t,resetKey:s,onAnswer:a,onSkip:r,hasCustomText:o=!1,labels:i,chat4Icon:l=rp,arrowUpSIcon:c=op,arrowDownSIcon:d=ip,sparklingIcon:p=lp,children:m},b){const w={...sp,...i},[u,g]=x.useState(0),[f,k]=x.useState({}),[h,v]=x.useState({}),[S,C]=x.useState(0),[T,E]=x.useState(!1),[I,F]=x.useState(void 0),Q=x.useRef(s),z=x.useRef(null),G=x.useRef(new Map),re=x.useRef(u),M=x.useRef(!1),$=x.useRef(!1),q=x.useRef(new Map),ee=x.useRef(u),A=t[u],O=A?.options||[],W=t.every(D=>(f[D.question]||[]).length>0||(h[D.question]?.trim()||"").length>0),oe=(f[A?.question]||[]).length>0||(h[A?.question]?.trim()||"").length>0,Z=x.useCallback(D=>{const P=t[D];if(!P)return 0;const H=f[P.question]||[];if(H.length===0)return 0;const J=(P.options||[]).findIndex(xe=>H.includes(xe.label));return J>=0?J:0},[t,f]);x.useImperativeHandle(b,()=>({getAnswers:()=>{const D={};for(const P of t){const H=f[P.question]||[],X=h[P.question]?.trim(),J=[];H.length>0&&J.push(...H),X&&J.push(X),J.length>0&&(D[P.question]=J.join(", "))}return D}}),[f,h,t]),x.useEffect(()=>{Q.current!==s&&(Q.current=s,G.current.clear(),q.current.clear(),re.current=0,requestAnimationFrame(()=>{E(!1),g(0),k({}),v({}),C(0)}))},[s]),x.useEffect(()=>{if(ee.current!==u){if(re.current=u,$.current){M.current=!0;const D=G.current.get(u),P=z.current;if(D&&P){const H=()=>{M.current=!1,$.current=!1,P.removeEventListener("scrollend",H)};P.addEventListener("scrollend",H,{once:!0}),D.scrollIntoView({behavior:"smooth",block:"nearest"})}else M.current=!1,$.current=!1}ee.current=u}},[u]),x.useEffect(()=>{const D=setTimeout(()=>{let P=0;G.current.forEach(H=>{const X=H.getBoundingClientRect().height;X>P&&(P=X)}),P>0&&F(P)},50);return()=>clearTimeout(D)},[t,s]),x.useEffect(()=>{const D=z.current;if(!D)return;const P=new IntersectionObserver(H=>{if(M.current)return;let X=0,J=re.current;H.forEach(xe=>{xe.isIntersecting&&xe.intersectionRatio>X&&(X=xe.intersectionRatio,G.current.forEach((ks,un)=>{ks===xe.target&&(J=un)}))}),J!==re.current&&X>.5&&(re.current=J,g(J),C(Z(J)))},{root:D,threshold:[0,.25,.5,.75,1]});return G.current.forEach(H=>{H?.isConnected&&P.observe(H)}),()=>P.disconnect()},[t,Z]);const V=x.useCallback((D,P,H)=>{const J=t[H]?.multiSelect??!1,xe=H===t.length-1,un=(f[D]||[]).includes(P);k(be=>{const kt=be[D]||[];return J?kt.includes(P)?{...be,[D]:kt.filter(qi=>qi!==P)}:{...be,[D]:[...kt,P]}:kt.includes(P)?{...be,[D]:[]}:{...be,[D]:[P]}}),J||v(be=>({...be,[D]:""})),!J&&!xe&&!un&&setTimeout(()=>{const be=H+1;$.current=!0,g(be),C(Z(be))},150)},[t,f,Z]),ie=x.useCallback(()=>{if(u>0){const D=u-1;$.current=!0,g(D),C(Z(D))}},[u,Z]),he=x.useCallback(()=>{if(u<t.length-1){const D=u+1;$.current=!0,g(D),C(Z(D))}},[u,t.length,Z]),fe=x.useCallback(()=>{if(!T)if(W){E(!0);const D={};for(const P of t){const H=f[P.question]||[],X=h[P.question]?.trim(),J=[];H.length>0&&J.push(...H),X&&J.push(X),D[P.question]=J.join(", ")}a(D)}else{const D=X=>(f[X.question]||[]).length===0&&(h[X.question]?.trim()||"").length===0,P=t.length;let H=-1;for(let X=1;X<P;X++){const J=(u+X)%P;if(D(t[J])){H=J;break}}H>=0&&($.current=!0,g(H),C(Z(H)))}},[T,W,t,f,h,u,a,Z]),Y=x.useCallback(()=>{if(T)return;E(!0);const D={};for(const P of t){const H=f[P.question]||[],X=h[P.question]?.trim();if(H.length>0||!!X){const xe=[];H.length>0&&xe.push(...H),X&&xe.push(X),D[P.question]=xe.join(", ")}else D[P.question]=ap}a(D),r()},[T,t,f,h,a,r]),Re=x.useCallback(()=>{if(T)return;const D={};for(const P of t){const H=P.options?.[0];H&&(D[P.question]=[H.label])}k(D),v({}),$.current=!0,g(t.length-1),C(0),setTimeout(()=>{z.current&&z.current.scrollTo({top:z.current.scrollHeight,behavior:"smooth"})},50)},[T,t]),ge=x.useCallback(D=>{$.current=D},[]),Ae={questions:t,labels:w,currentQuestionIndex:u,setCurrentQuestionIndex:g,answers:f,setAnswers:k,customInputs:h,setCustomInputs:v,focusedOptionIndex:S,setFocusedOptionIndex:C,isSubmitting:T,setIsSubmitting:E,maxQuestionHeight:I,scrollContainerRef:z,questionRefs:G,setShouldScrollToQuestion:ge,customInputRefs:q,currentQuestion:A,currentOptions:O,allQuestionsAnswered:W,currentQuestionHasAnswer:oe,getSelectedOptionIndex:Z,handleOptionClick:V,handlePrevious:ie,handleNext:he,handleContinue:fe,handleSkip:Y,handleRecommend:Re,chat4Icon:l,arrowUpSIcon:c,arrowDownSIcon:d,sparklingIcon:p,hasCustomText:o};return t.length===0?null:n.jsx(xs.Provider,{value:Ae,children:m})});en.displayName="UserQuestionRoot";function tn({className:e}){const t=bt();return n.jsxs("div",{className:y("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(Ne,{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(Ne,{size:"sm",variant:"ghost",onClick:t.handleNext,disabled:t.currentQuestionIndex===t.questions.length-1,icon:t.arrowDownSIcon})]})]})}tn.displayName="UserQuestionHeader";function nn({question:e,qIndex:t,className:s}){const a=bt(),r=e.options||[],[o,i]=x.useState(!1),l=!!a.customInputs[e.question]?.trim(),c=o||l,d=t===a.currentQuestionIndex;return n.jsxs("div",{ref:p=>{p?a.questionRefs.current.set(t,p):a.questionRefs.current.delete(t)},className:y("transition-opacity duration-200",d?"opacity-100":"opacity-40",s),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(Rn,{items:r.map(p=>({id:p.label,label:p.label,description:p.description})),selectedIds:a.answers[e.question]?.map(p=>p)||[],focusedId:d?r[a.focusedOptionIndex]?.label:void 0,disabled:a.isSubmitting||!d,onItemClick:(p,m)=>{if(!d){a.setCurrentQuestionIndex(t),a.setFocusedOptionIndex(a.getSelectedOptionIndex(t));return}a.handleOptionClick(e.question,p.label,t),a.setFocusedOptionIndex(m)}}),e.allowCustomInput!==!1&&n.jsxs("div",{className:y("w-full flex gap-3 pl-2 mt-3 transition-colors",!d&&"opacity-40",a.isSubmitting&&"opacity-50"),children:[n.jsx("div",{className:y("flex-shrink-0 w-5 h-5 rounded-full flex items-center justify-center text-xs leading-xs font-medium transition-colors",d&&a.focusedOptionIndex===r.length||a.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?a.customInputRefs.current.set(e.question,p):a.customInputRefs.current.delete(e.question)},type:"text",value:a.customInputs[e.question]||"",style:{outline:"none",outlineOffset:0,boxShadow:"none",border:"none"},onChange:p=>{const m=p.target.value;a.setCustomInputs(b=>({...b,[e.question]:m})),!e.multiSelect&&m.trim()&&a.setAnswers(b=>({...b,[e.question]:[]}))},onFocus:()=>{i(!0),d&&(a.setFocusedOptionIndex(r.length),e.multiSelect||a.setAnswers(p=>({...p,[e.question]:[]})))},onBlur:()=>i(!1),onKeyDown:p=>{if(p.key==="Enter"&&!p.shiftKey){p.preventDefault(),p.stopPropagation();const m=a.customInputs[e.question]?.trim();if((a.answers[e.question]||[]).length>0||!!m)if(a.allQuestionsAnswered)a.handleContinue();else if(t<a.questions.length-1){const u=t+1;a.setShouldScrollToQuestion(!0),a.setCurrentQuestionIndex(u),a.setFocusedOptionIndex(0)}else a.handleContinue()}},placeholder:a.labels.customInputPlaceholder,disabled:a.isSubmitting||!d,className:y("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:c?"100%":"0%"},"aria-hidden":!0,children:n.jsx("div",{className:"h-px bg-[var(--color-border-tertiary)]"})})]})]})]},e.question)}nn.displayName="UserQuestionCard";function sn({className:e,children:t}){const s=bt(),{scrollContainerRef:a,maxQuestionHeight:r,questions:o}=s;return n.jsx(ye,{ref:a,scrollbarVisibility:"auto",maxHeight:r||void 0,className:y("scroll-smooth",e),children:n.jsx("div",{className:"space-y-4 px-3",children:t??o.map((i,l)=>n.jsx(nn,{question:i,qIndex:l},i.question))})})}sn.displayName="UserQuestionCards";function an({className:e}){const t=bt();return n.jsxs("div",{className:y("flex items-center justify-between px-3 py-2",e),children:[n.jsxs(ne,{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(ne,{variant:"ghost",size:"sm",onClick:t.handleSkip,disabled:t.isSubmitting,children:t.labels.skipAll}),n.jsx(ne,{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:" ↵"})]})})]})]})}an.displayName="UserQuestionFooter";function rn(){return n.jsxs(te.motion.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.2,ease:[.16,1,.3,1]},className:y("border rounded-t-xl border-b-0 border-border border-border-tertiary bg-bg-base overflow-hidden pt-2 pb-2"),children:[n.jsx(tn,{}),n.jsx(sn,{}),n.jsx(an,{})]})}rn.displayName="UserQuestionDefaultLayout";function cp(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e?.getAttribute("contenteditable")==="true"}function dp({isSubmitting:e,currentQuestion:t,currentOptions:s,currentQuestionIndex:a,questions:r,focusedOptionIndex:o,setFocusedOptionIndex:i,currentQuestionHasAnswer:l,getSelectedOptionIndex:c,setShouldScrollToQuestion:d,setCurrentQuestionIndex:p,handleOptionClick:m,handleContinue:b}){x.useEffect(()=>{const w={ArrowDown(g){if(g.preventDefault(),o<s.length-1)i(o+1);else if(a<r.length-1){const f=a+1;d(!0),p(f),i(c(f))}},ArrowUp(g){if(g.preventDefault(),o>0)i(o-1);else if(a>0){const f=a-1;d(!0),p(f),i(c(f))}},Enter(g){g.preventDefault(),l?b():t&&s[o]&&m(t.question,s[o].label,a)}},u=g=>{if(e||cp(document.activeElement))return;const f=w[g.key];if(f){f(g);return}if(g.key>="1"&&g.key<="9"){const k=parseInt(g.key,10)-1;k>=0&&k<s.length&&t&&(g.preventDefault(),m(t.question,s[k].label,a),i(k))}};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[e,t,s,a,r.length,o,i,l,c,p,m,b,d])}function up(){const e=bt();return dp({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 xi=x.forwardRef(function(t,s){return n.jsxs(en,{ref:s,...t,children:[n.jsx(up,{}),n.jsx(rn,{})]})});xi.displayName="UserQuestion";const He=xi;He.Root=en;He.Header=tn;He.Card=nn;He.Cards=sn;He.Footer=an;He.DefaultLayout=rn;const pp=He;function mp(e,t){const s=R("chat4","w-4 h-4 shrink-0 text-text-tertiary"),a=R("arrowUpS"),r=R("arrowDownS"),o=R("sparkling","w-4 h-4 mr-1");return n.jsx(en,{ref:t,chat4Icon:s,arrowUpSIcon:a,arrowDownSIcon:r,sparklingIcon:o,...e})}const hi=x.forwardRef(mp);hi.displayName="UserQuestionRoot";const yi=x.forwardRef(function(t,s){const a=R("chat4","w-4 h-4 shrink-0 text-text-tertiary"),r=R("arrowUpS"),o=R("arrowDownS"),i=R("sparkling","w-4 h-4 mr-1");return n.jsx(pp,{ref:s,chat4Icon:a,arrowUpSIcon:r,arrowDownSIcon:o,sparklingIcon:i,...t})});yi.displayName="UserQuestion";const Ue=yi;Ue.Root=hi;Ue.Header=tn;Ue.Card=nn;Ue.Cards=sn;Ue.Footer=an;Ue.DefaultLayout=rn;const fp=Ue,gp={answer:"Answer",answers:"Answers"},xp="w-4 h-4 shrink-0 text-text-tertiary",bi=x.memo(function({answers:t,showHeader:s=!0,labels:a,className:r="",questionAnswerIcon:o}){const i={...gp,...a},l=Object.entries(t),c=o??n.jsx(gc,{className:xp});return l.length===0?null:n.jsxs("div",{className:`rounded-lg border border-border-tertiary bg-bg-container overflow-hidden mx-2 ${r}`.trim(),children:[s&&n.jsxs("div",{className:"flex items-center gap-2 pl-3 pr-3 h-8 border-b border-border-tertiary",children:[c,n.jsx("span",{className:"text-xs leading-xs text-text-tertiary",children:l.length===1?i.answer:i.answers})]}),n.jsx("div",{className:"flex flex-col gap-3 p-3 text-xs leading-xs",children:l.map(([d,p],m)=>n.jsxs("div",{className:"flex flex-col gap-1",children:[n.jsx("span",{className:"font-medium text-text",children:d}),n.jsx("span",{className:"text-text-tertiary",children:p})]},m))})]})});bi.displayName="UserQuestionAnswer";const hp="w-4 h-4 shrink-0 text-text-tertiary",vi=x.memo(function(t){const s=R("questionAnswer",hp);return n.jsx(bi,{questionAnswerIcon:s,...t})});vi.displayName="UserQuestionAnswer";const yp={title:"In queue",sendNowTip:"Send now",removeTip:"Remove",fileLabel:"file",filesLabel:"files"},bp="w-3.5 h-3.5",vp="w-3.5 h-3.5",kp="w-4 h-4 text-text-tertiary transition-transform duration-200",wp=x.memo(function({item:t,onRemove:s,onSendNow:a,labels:r,arrowUpIcon:o,closeIcon:i}){const l=x.useCallback(m=>{m.stopPropagation(),s?.(t.id)},[t.id,s]),c=x.useCallback(m=>{m.stopPropagation(),a?.(t.id)},[t.id,a]),d=t.attachmentCount??0,p=d===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}),d>0&&n.jsxs("span",{className:"shrink-0 text-xs leading-xs text-text-tertiary",children:["+",d," ",p]}),n.jsxs("div",{className:"flex items-center gap-0.5",children:[a&&n.jsx(rt,{content:r.sendNowTip,side:"top",children:n.jsx(Ne,{size:"sm",variant:"ghost",icon:o,"aria-label":r.sendNowTip,className:"shrink-0",onClick:c})}),s&&n.jsx(rt,{content:r.removeTip,side:"top",children:n.jsx(Ne,{size:"sm",variant:"ghost",icon:i,"aria-label":r.removeTip,className:"shrink-0",onClick:l})})]})]})}),ki=x.memo(function({items:t,onRemoveItem:s,onSendNow:a,isStreaming:r=!1,hasStatusCardBelow:o=!1,labels:i,defaultExpanded:l=!0,storageKey:c,arrowUpIcon:d,closeIcon:p,arrowDownSIcon:m}){const b={...yp,...i},w=d??n.jsx(An,{className:bp}),u=p??n.jsx(_e,{className:vp}),g=m??n.jsx(je,{className:kp}),[f,k]=x.useState(()=>{if(typeof window>"u")return l;if(c){const v=localStorage.getItem(c);return v!==null?v==="true":l}return l});if(x.useEffect(()=>{c&&localStorage.setItem(c,String(f))},[c,f]),t.length===0)return null;const h=y("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(te.motion.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.2,ease:[.16,1,.3,1]},className:h,children:[n.jsx("div",{role:"button",tabIndex:0,onClick:()=>k(!f),onKeyDown:v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),k(!f))},"aria-expanded":f,"aria-label":`${f?"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:y("inline-flex items-center justify-center",!f&&"-rotate-90"),children:g}),n.jsx("span",{className:"text-xs leading-xs font-medium text-text-secondary",children:b.title})]})}),n.jsx(te.AnimatePresence,{initial:!1,children:f&&n.jsx(te.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(ye,{scrollbarVisibility:"auto",maxHeight:208,className:"border-t border-border-tertiary scroll-smooth",children:t.map(v=>n.jsx(wp,{item:v,onRemove:s,onSendNow:a,labels:b,arrowUpIcon:w,closeIcon:u},v.id))})})})]})});ki.displayName="QueueIndicator";const Np="w-3.5 h-3.5",jp="w-3.5 h-3.5",Cp="w-4 h-4 text-text-tertiary transition-transform duration-200",wi=x.memo(function(t){const s=R("arrowUp",Np),a=R("close",jp),r=R("arrowDownS",Cp);return n.jsx(ki,{arrowUpIcon:s,closeIcon:a,arrowDownSIcon:r,...t})});wi.displayName="QueueIndicator";const Hs="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",Sp="font-['Seti'] shrink-0 inline-flex items-center justify-center w-4 h-4 text-[16px] leading-[16px]",kn={javascript:"",typescript:"",react:"",json:"",html:"",css:"",python:"",java:"",go:"",rust:"",php:"",ruby:"",vue:"",svelte:"",markdown:"",yaml:"",xml:"",shell:"",sass:"",settings:"",default:""},Us={javascript:"#F8CA3E",typescript:"#1E8DEE",react:"#1E8DEE",json:"#F8CA3E",html:"#1E8DEE",css:"#1E8DEE",python:"#1E8DEE",java:"#E84654",go:"#1E8DEE",rust:"#6A89E6",php:"#AE4EE2",ruby:"#E84654",vue:"#4EBD35",svelte:"#E84654",markdown:"#1E8DEE",yaml:"#AE4EE2",xml:"#F18745",shell:"#4EBD35",sass:"#E84654",settings:"#6A89E6",default:"#6A89E6"},Rt={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 Ni(e,t){let s=null;if(t&&typeof t=="string"&&t.trim()){const a=t.lastIndexOf(".");if(a>0&&a<t.length-1){const r=t.substring(a+1).toLowerCase().trim();r&&Rt[r]&&(s=Rt[r])}}if(!s&&e&&typeof e=="string"&&e.trim()){const a=e.toLowerCase().trim();Rt[a]?s=Rt[a]:kn[a]&&(s=a)}return s||"default"}function Ip(e,t){const s=Ni(e,t);return kn[s]??kn.default}function Rp(e,t){const s=Ni(e,t);return Us[s]??Us.default}function ji({files:e=[],defaultExpanded:t=!0,className:s,headerIcon:a,acceptIcon:r,rejectIcon:o,getFileIcon:i}){const[l,c]=x.useState(null),d=n.jsx(za,{className:y(Hs,"text-text-secondary")}),p="w-[var(--font-size-sm)] h-[var(--font-size-sm)]",m=n.jsx(Ie,{className:p}),b=n.jsx(_e,{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 n.jsx(Ce,{headerIcon:a??d,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(ne,{variant:"ghost",size:"sm",onClick:u=>u.stopPropagation(),children:"Undo All"}),n.jsx(ne,{variant:"ghost",size:"sm",onClick:u=>u.stopPropagation(),children:"Keep All"}),n.jsx(ne,{variant:"secondary",size:"sm",onClick:u=>u.stopPropagation(),children:"Review"})]}),defaultExpanded:t,contentPadding:"var(--spacing-1\\.5) var(--spacing-1) var(--spacing-1\\.5)",className:s,children:n.jsx("div",{className:"flex flex-col gap-0.5",children:e.map((u,g)=>{const f=l===g,k=u.additions!=null&&Number.isFinite(u.additions)?u.additions:null,h=u.deletions!=null&&Number.isFinite(u.deletions)?u.deletions:null;return n.jsxs("div",{className:y("flex items-center gap-1 px-1 py-1 rounded-sm cursor-pointer transition-colors duration-200 relative h-6",f?"bg-fill-secondary":"bg-transparent"),onMouseEnter:()=>c(g),onMouseLeave:()=>c(null),children:[i?n.jsx("span",{className:y("shrink-0",Hs),children:i(u.fileType,u.filename)}):n.jsx("span",{className:y("shrink-0",Sp),style:{color:Rp(u.fileType,u.filename)},"aria-hidden":!0,children:Ip(u.fileType,u.filename)}),n.jsx("span",{className:y("flex-1 text-xs font-medium truncate pr-12",f?"text-text":"text-text-tertiary"),children:u.filename}),n.jsxs("div",{className:y("absolute right-1 flex items-center gap-0.5 text-xs font-medium shrink-0 transition-opacity duration-200",f?"opacity-0 pointer-events-none":"opacity-100"),children:[k!=null&&n.jsxs("span",{className:"text-success",children:["+",k]}),h!=null&&n.jsxs("span",{className:"text-error",children:["-",h]})]}),n.jsxs("div",{className:y("flex items-center gap-0.5 shrink-0 absolute right-1 transition-opacity duration-200",f?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"),onClick:v=>v.stopPropagation(),children:[n.jsx("button",{type:"button",className:y(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}),n.jsx("button",{type:"button",className:y(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:r??m})]})]},g)})})})}ji.displayName="FileReviewPart";const Vs="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary",At="w-[var(--font-size-sm)] h-[var(--font-size-sm)]";function Ci(e){const t=R("requestChanges",Vs)??n.jsx(za,{className:Vs}),s=R("checkLine",At)??n.jsx(Ie,{className:At}),a=R("close",At)??n.jsx(_e,{className:At}),r=e.getFileIcon;return n.jsx(ji,{headerIcon:t,acceptIcon:s,rejectIcon:a,getFileIcon:r,...e})}Ci.displayName="FileReviewPart";const vt="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",Ap=n.jsx(Da,{className:y(vt,"text-text-secondary")}),Ep=n.jsx(Ma,{className:y(vt,"text-text-tertiary")}),Tp=n.jsx(Bt,{className:y(vt,"text-text-quaternary")}),Lp=n.jsx(Oa,{className:y(vt,"text-text-tertiary")}),_p=n.jsx($a,{className:y(vt,"text-text")});function Pp(e,t,s){return t?s.loaderIcon??_p:e.status==="completed"?s.completedIcon??Tp:e.status==="skipped"||e.status==="cancelled"?s.skippedIcon??Lp:s.uncompletedIcon??Ep}function Si({tasks:e=[],title:t="To-dos",currentTaskId:s,defaultExpanded:a=!0,className:r,headerIcon:o,uncompletedIcon:i,completedIcon:l,skippedIcon:c,loaderIcon:d}){return n.jsx(Ce,{headerIcon:o??Ap,headerTitle:n.jsx("span",{className:"text-left",children:t}),defaultExpanded:a,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,m)=>{const b=p.id??m,w=s!=null&&s===String(b),u=Pp(p,w,{loaderIcon:d,completedIcon:l,skippedIcon:c,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:u}),n.jsx("span",{className:y("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)})})})}Si.displayName="TaskPart";const on="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",qs=`${on} text-text-secondary`,Et=`${on} text-text-tertiary`,Ws=`${on} text-text-quaternary`,Zs=`${on} text-text`;function Ii(e){const t=R("catalog",qs)??n.jsx(Da,{className:qs}),s=R("circle",Et)??n.jsx(Ma,{className:Et}),a=R("checkboxCircle",Ws)??n.jsx(Bt,{className:Ws}),r=R("indeterminateCircle",Et)??n.jsx(Oa,{className:Et}),o=R("arrowRightCircleFill",Zs)??n.jsx($a,{className:Zs});return n.jsx(Si,{headerIcon:t,uncompletedIcon:s,completedIcon:a,skippedIcon:r,loaderIcon:o,...e})}Ii.displayName="TaskPart";const hs="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",Fp=n.jsx(Gt,{className:`${hs} text-text-secondary`}),zp=n.jsx(Ba,{className:hs}),Dp=n.jsx(Ie,{className:y(hs,"text-success")});function Ri({title:e="Plan",description:t,content:s,viewText:a="View",buildText:r="Build ⌘⏎",builtText:o="Built",isBuilt:i=!1,isGenerating:l=!1,onView:c,onBuild:d,onDownload:p,defaultExpanded:m=!0,contentMaxHeight:b,collapsible:w=!1,className:u,headerIcon:g,downloadIcon:f,builtIcon:k}){const h=s.split(`
|
|
251
|
+
`})]})}function fs(e){return n.jsx(as,{loader:n.jsx(Du,{}),...e})}fs.displayName="ThinkingIndicator";function Jo(e){return n.jsx(xu,{...e,thinkingIndicator:e.thinkingIndicator??n.jsx(fs,{text:"Qoder is thinking..."})})}Jo.displayName="Response";const ze=Jo;ze.Root=Wt;ze.Thinking=ds;ze.Steps=us;ze.Step=ps;ze.Content=ms;ze.ImageGenerating=Xt;ze.DefaultLayout=Jt;const Mu=ze,ei=x.forwardRef(({children:e,className:t,maxWidth:s="752px",...a},r)=>{const o=y("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 s=="number"?`${s}px`:s},...a,children:e})});ei.displayName="UserMessage";const $s="w-5 h-5 text-text-secondary",ti=x.forwardRef(({filename:e,iconFilename:t,size:s,icon:a,getFileIcon:r,onClick:o,className:i,...l},c)=>{const p=a??(r?r(t??e,$s):n.jsx(En,{className:$s}));return n.jsxs("div",{ref:c,role:o?"button":void 0,tabIndex:o?0:void 0,onClick:o,onKeyDown:o?m=>{(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),o())}:void 0,className:y("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),...l,children:[n.jsx("div",{className:y("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}),s!=null&&s!==""&&n.jsxs("span",{className:"shrink-0 text-text-tertiary",children:["(",s,")"]})]})]})});ti.displayName="FileCard";function Ou({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 ni(e,t){return n.jsx(Ou,{className:t})}const si=x.forwardRef((e,t)=>{const{getFileIcon:s}=lt(),a=s??((r,o)=>ni(r,o));return n.jsx(ti,{ref:t,getFileIcon:a,...e})});si.displayName="FileCard";const Bs="h-3.5 w-3.5 shrink-0 text-current",ai=x.forwardRef(({filename:e,iconFilename:t,onRemove:s,icon:a,getFileIcon:r,className:o,...i},l)=>{const d=a??(r?r(t??e,Bs):n.jsx(En,{className:Bs})),{color:p,...m}=i;return n.jsx(Xn,{ref:l,appearance:"filled",color:"mauve",closable:typeof s=="function",onClose:s,closeAriaLabel:"移除",className:o,...m,children:n.jsxs("span",{className:"inline-flex items-center gap-1.5 shrink-0",children:[d,e]})})});ai.displayName="FileAttachment";const ri=x.forwardRef((e,t)=>{const{getFileIcon:s}=lt(),a=s??((r,o)=>ni(r,o));return n.jsx(ai,{ref:t,getFileIcon:a,...e})});ri.displayName="FileAttachment";const $u={sm:"w-12 h-12",md:"w-16 h-16",lg:"w-20 h-20"},Bu="max-w-[90vw] max-h-[90vh] object-contain",Gu="h-2.5 w-2.5 text-text-secondary",Hu="h-4 w-4 text-text-secondary",oi=x.forwardRef(({src:e,alt:t="",onRemove:s,previewable:a=!0,onClick:r,size:o="sm",className:i,closeIcon:l,closeLargeIcon:c,...d},p)=>{const[m,b]=x.useState(!1),w=l??n.jsx(_e,{className:Gu}),u=c??n.jsx(Aa,{className:Hu}),g=typeof s=="function",f=x.useCallback(()=>{a&&b(!0)},[a]),k=x.useCallback(()=>b(!1),[]),h=x.useCallback(C=>{r?.(C),!C.defaultPrevented&&a&&f()},[r,a,f]),v=x.useCallback(C=>{C.stopPropagation(),s?.(C)},[s]);x.useEffect(()=>{if(!m)return;const C=T=>{T.key==="Escape"&&k()};return window.addEventListener("keydown",C),()=>window.removeEventListener("keydown",C)},[m,k]);const S=m&&typeof document<"u"?ia.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&&k()},onKeyDown:C=>C.key==="Escape"&&k(),children:[n.jsx("img",{src:e,alt:t,className:y("rounded-lg shadow-xl",Bu),onClick:C=>C.stopPropagation(),draggable:!1}),n.jsx(je,{variant:"tertiary",size:"md",rounded:"pill",icon:u,onClick:k,"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:a?"button":void 0,tabIndex:a?0:void 0,className:y("relative group shrink-0",a&&"cursor-pointer",i),onClick:h,onKeyDown:a?C=>{(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),f())}:void 0,...d,children:[n.jsx("img",{src:e,alt:t,className:y("rounded-lg object-cover border border-border-tertiary",$u[o]),draggable:!1}),g&&n.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})]}),S]})});oi.displayName="ImageAttachment";const Uu="h-2.5 w-2.5 text-text-secondary",Vu="h-4 w-4 text-text-secondary",ii=x.forwardRef((e,t)=>{const s=R("close",Uu),a=R("closeLarge",Vu);return n.jsx(oi,{ref:t,closeIcon:s,closeLargeIcon:a,...e})});ii.displayName="ImageAttachment";const li="w-3.5 h-3.5 text-text-tertiary",ci="w-3.5 h-3.5 transition-transform duration-200 ease-in-out";function di(e){const t=R("eye",li),s=R("arrowRight",ci);return n.jsx(Qt,{eyeIcon:t,arrowRightIcon:s,...e})}di.displayName="ReasoningStepRoot";function ui(e){const t=R("eye",li),s=R("arrowRight",ci);return n.jsx(Dt,{eyeIcon:t,arrowRightIcon:s,...e})}ui.displayName="ReasoningStep";const yt=ui;yt.Root=di;yt.Header=Yt;yt.Details=Kt;yt.DetailRow=ls;const qu=yt,gs="size-[1em] shrink-0",Wu=`${gs} text-text-tertiary`,Zu=`${gs} text-success`,Qu=`${gs} text-text-tertiary`,Yu="w-3.5 h-3.5 text-text-tertiary transition-all duration-200",pi=x.memo(function({toolName:t,params:s,status:a,response:r,defaultExpanded:o=!1,statusText:i,className:l,timeIcon:c,checkboxCircleIcon:d,closeCircleIcon:p,arrowDownIcon:m,runningText:b="Running",ranText:w="Ran",failedText:u="Failed",responseLabel:g="Response"}){const[f,k]=x.useState(o),h=r!=null&&r.length>0,v=a==="running",S=a==="success",C=a==="error",E=i!==void 0?i:v?b:S?w:u,I=E!=="",F=c??n.jsx(Fa,{className:Wu}),Q=d??n.jsx(Bt,{className:Zu}),z=p??n.jsx(za,{className:Qu}),G=m??n.jsx(ye,{className:Yu});return n.jsxs("div",{className:y("flex flex-col",l),children:[n.jsxs("div",{onClick:()=>h&&!v&&k(!f),className:y("group flex items-center gap-1.5 min-h-5",h&&!v&&"cursor-pointer hover:opacity-80 transition-opacity"),children:[n.jsxs("div",{className:"shrink-0 flex items-center justify-center text-xs",children:[v&&F,S&&Q,C&&z]}),I&&n.jsx("span",{className:"text-xs leading-xs text-text-tertiary shrink-0",children:E}),n.jsx("span",{className:"text-xs leading-xs text-text-secondary shrink-0",children:t}),s!=null&&s!==""&&n.jsx("span",{className:"text-xs leading-xs text-text-tertiary min-w-0 shrink truncate",title:s,children:s}),h&&!v&&n.jsx("div",{className:y("shrink-0 inline-flex items-center justify-center","opacity-0 group-hover:opacity-100",f&&"!opacity-100",f?"rotate-180":"rotate-0"),children:G})]}),h&&f&&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:g}),n.jsx(be,{scrollbarVisibility:"auto",maxHeight:208,className:"px-2 pb-1 leading-xs",children:n.jsx("pre",{className:y("whitespace-pre-wrap break-words leading-xs",C?"text-error":"text-text-tertiary"),children:r})})]})]})});pi.displayName="ToolInvocationCard";const Ku="size-[1em] text-text-tertiary",Xu="size-[1em] text-success",Ju="size-[1em] text-text-tertiary",ep="w-3.5 h-3.5 text-text-tertiary transition-all duration-200",mi=x.memo(function(t){const{t:s}=ca.useTranslation(),a=R("time",Ku),r=R("checkboxCircle",Xu),o=R("closeCircle",Ju),i=R("arrowDownS",ep);return n.jsx(pi,{timeIcon:a,checkboxCircleIcon:r,closeCircleIcon:o,arrowDownIcon:i,runningText:s("tools.status.running","Running"),ranText:s("tools.status.ran","Ran"),failedText:s("tools.status.failed","Failed"),...t})});mi.displayName="ToolInvocationCard";const tp=80;function Gs(e){if(!e)return{};const{label:t,...s}=e;return s}const np="Permission required",sp="This action requires your permission.",ap="Expand",rp="Collapse",op=", ",fi=x.forwardRef(({title:e,description:t,command:s,commandIntent:a,isLoadingIntent:r=!1,onClose:o,actions:i,className:l,closeIcon:c,warningIcon:d,expandLabel:p=ap,collapseLabel:m=rp,commaLabel:b=op,...w},u)=>{const g=e??np,f=t??sp,k=s.length>tp,[h,v]=x.useState(!k),S=c??n.jsx(_e,{className:"h-3.5 w-3.5"}),C=d??n.jsx(it,{className:"h-4 w-4"});return n.jsxs("div",{ref:u,className:y("relative rounded-lg border border-border-tertiary bg-bg-base p-3",l),...w,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:S}),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:g})]}),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:f})]}):n.jsxs(n.Fragment,{children:[f,a&&n.jsxs("span",{children:[b,a]})]})}),n.jsx("div",{className:"mb-4 ml-6",children:n.jsxs("div",{className:"rounded p-2 bg-fill-tertiary",children:[h||!k?n.jsx("div",{title:s,children:n.jsx(be,{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:s})}):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:s,children:s}),k&&n.jsx("button",{type:"button",onClick:()=>v(!h),className:"mt-1 flex items-center gap-1 text-xs leading-xs text-text-tertiary hover:text-text transition-colors",children:h?m:p})]})}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[i?.deny&&n.jsx(ne,{variant:"ghost",...Gs(i.deny),children:i.deny.label}),i?.allowOnce&&n.jsx("button",{type:"button",className:y("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"),...Gs(i.allowOnce),children:i.allowOnce.label})]})]})});fi.displayName="PermissionCard";const gi=x.forwardRef((e,t)=>{const{t:s}=ca.useTranslation(),a=R("close","h-3.5 w-3.5"),r=R("warning","h-4 w-4");return n.jsx(fi,{ref:t,...e,closeIcon:a,warningIcon:r,title:e.title??s("permission.title"),description:e.description??s("permission.description.default",{toolName:"Tool"}),expandLabel:s("permission.expand"),collapseLabel:s("permission.collapse"),commaLabel:s("common.comma")})});gi.displayName="PermissionCard";const ip="h-5 w-5 text-text-on-primary";function xi(e){const t=R("sparkling",ip);return n.jsx(cs,{sparklingIcon:t,...e})}xi.displayName="ImageGenerating";const hi=x.memo(function({children:t,className:s="",gridClassName:a="",isGenerating:r=!1,maxVisibleWhenGenerating:o=6,formatRemaining:i=l=>`+${l}`}){const l=x.Children.toArray(t),c=l.length,d=r&&c>o,p=d?o:c,m=c-o+1,w=l.slice(0,p).map((u,g)=>d&&g===p-1&&x.isValidElement(u)?x.cloneElement(u,{showOverlay:!0,overlayText:i(m)}):u);return n.jsx("div",{className:y("mt-5 mb-2",s),children:n.jsx("div",{className:y("flex flex-wrap gap-3",a),children:w})})});hi.displayName="GeneratedImagesGrid";const lp={multiSelect:"Multi-select",singleSelect:"Single-select",questionHeader:"Question",skipAll:"Skip All",continue:"Continue",submit:"Submit",sending:"Sending...",customInputPlaceholder:"Other (please specify)",recommend:"Recommend"},cp="[No preference]",xs=x.createContext(null);xs.displayName="UserQuestionContext";function bt(){const e=x.useContext(xs);if(!e)throw new Error("UserQuestion compound components must be used within UserQuestion.Root");return e}const dp=n.jsx(Pa,{className:"w-4 h-4 shrink-0 text-text-tertiary"}),up=n.jsx(An,{}),pp=n.jsx(ye,{}),mp=n.jsx(Tn,{className:"w-4 h-4 mr-1"}),en=x.forwardRef(function({questions:t,resetKey:s,onAnswer:a,onSkip:r,hasCustomText:o=!1,labels:i,chat4Icon:l=dp,arrowUpSIcon:c=up,arrowDownSIcon:d=pp,sparklingIcon:p=mp,children:m},b){const w={...lp,...i},[u,g]=x.useState(0),[f,k]=x.useState({}),[h,v]=x.useState({}),[S,C]=x.useState(0),[T,E]=x.useState(!1),[I,F]=x.useState(void 0),Q=x.useRef(s),z=x.useRef(null),G=x.useRef(new Map),re=x.useRef(u),M=x.useRef(!1),$=x.useRef(!1),q=x.useRef(new Map),ee=x.useRef(u),A=t[u],O=A?.options||[],W=t.every(D=>(f[D.question]||[]).length>0||(h[D.question]?.trim()||"").length>0),oe=(f[A?.question]||[]).length>0||(h[A?.question]?.trim()||"").length>0,Z=x.useCallback(D=>{const P=t[D];if(!P)return 0;const H=f[P.question]||[];if(H.length===0)return 0;const J=(P.options||[]).findIndex(xe=>H.includes(xe.label));return J>=0?J:0},[t,f]);x.useImperativeHandle(b,()=>({getAnswers:()=>{const D={};for(const P of t){const H=f[P.question]||[],X=h[P.question]?.trim(),J=[];H.length>0&&J.push(...H),X&&J.push(X),J.length>0&&(D[P.question]=J.join(", "))}return D}}),[f,h,t]),x.useEffect(()=>{Q.current!==s&&(Q.current=s,G.current.clear(),q.current.clear(),re.current=0,requestAnimationFrame(()=>{E(!1),g(0),k({}),v({}),C(0)}))},[s]),x.useEffect(()=>{if(ee.current!==u){if(re.current=u,$.current){M.current=!0;const D=G.current.get(u),P=z.current;if(D&&P){const H=()=>{M.current=!1,$.current=!1,P.removeEventListener("scrollend",H)};P.addEventListener("scrollend",H,{once:!0}),D.scrollIntoView({behavior:"smooth",block:"nearest"})}else M.current=!1,$.current=!1}ee.current=u}},[u]),x.useEffect(()=>{const D=setTimeout(()=>{let P=0;G.current.forEach(H=>{const X=H.getBoundingClientRect().height;X>P&&(P=X)}),P>0&&F(P)},50);return()=>clearTimeout(D)},[t,s]),x.useEffect(()=>{const D=z.current;if(!D)return;const P=new IntersectionObserver(H=>{if(M.current)return;let X=0,J=re.current;H.forEach(xe=>{xe.isIntersecting&&xe.intersectionRatio>X&&(X=xe.intersectionRatio,G.current.forEach((ks,un)=>{ks===xe.target&&(J=un)}))}),J!==re.current&&X>.5&&(re.current=J,g(J),C(Z(J)))},{root:D,threshold:[0,.25,.5,.75,1]});return G.current.forEach(H=>{H?.isConnected&&P.observe(H)}),()=>P.disconnect()},[t,Z]);const V=x.useCallback((D,P,H)=>{const J=t[H]?.multiSelect??!1,xe=H===t.length-1,un=(f[D]||[]).includes(P);k(ve=>{const kt=ve[D]||[];return J?kt.includes(P)?{...ve,[D]:kt.filter(Zi=>Zi!==P)}:{...ve,[D]:[...kt,P]}:kt.includes(P)?{...ve,[D]:[]}:{...ve,[D]:[P]}}),J||v(ve=>({...ve,[D]:""})),!J&&!xe&&!un&&setTimeout(()=>{const ve=H+1;$.current=!0,g(ve),C(Z(ve))},150)},[t,f,Z]),ie=x.useCallback(()=>{if(u>0){const D=u-1;$.current=!0,g(D),C(Z(D))}},[u,Z]),he=x.useCallback(()=>{if(u<t.length-1){const D=u+1;$.current=!0,g(D),C(Z(D))}},[u,t.length,Z]),fe=x.useCallback(()=>{if(!T)if(W){E(!0);const D={};for(const P of t){const H=f[P.question]||[],X=h[P.question]?.trim(),J=[];H.length>0&&J.push(...H),X&&J.push(X),D[P.question]=J.join(", ")}a(D)}else{const D=X=>(f[X.question]||[]).length===0&&(h[X.question]?.trim()||"").length===0,P=t.length;let H=-1;for(let X=1;X<P;X++){const J=(u+X)%P;if(D(t[J])){H=J;break}}H>=0&&($.current=!0,g(H),C(Z(H)))}},[T,W,t,f,h,u,a,Z]),Y=x.useCallback(()=>{if(T)return;E(!0);const D={};for(const P of t){const H=f[P.question]||[],X=h[P.question]?.trim();if(H.length>0||!!X){const xe=[];H.length>0&&xe.push(...H),X&&xe.push(X),D[P.question]=xe.join(", ")}else D[P.question]=cp}a(D),r()},[T,t,f,h,a,r]),Re=x.useCallback(()=>{if(T)return;const D={};for(const P of t){const H=P.options?.[0];H&&(D[P.question]=[H.label])}k(D),v({}),$.current=!0,g(t.length-1),C(0),setTimeout(()=>{z.current&&z.current.scrollTo({top:z.current.scrollHeight,behavior:"smooth"})},50)},[T,t]),ge=x.useCallback(D=>{$.current=D},[]),Ae={questions:t,labels:w,currentQuestionIndex:u,setCurrentQuestionIndex:g,answers:f,setAnswers:k,customInputs:h,setCustomInputs:v,focusedOptionIndex:S,setFocusedOptionIndex:C,isSubmitting:T,setIsSubmitting:E,maxQuestionHeight:I,scrollContainerRef:z,questionRefs:G,setShouldScrollToQuestion:ge,customInputRefs:q,currentQuestion:A,currentOptions:O,allQuestionsAnswered:W,currentQuestionHasAnswer:oe,getSelectedOptionIndex:Z,handleOptionClick:V,handlePrevious:ie,handleNext:he,handleContinue:fe,handleSkip:Y,handleRecommend:Re,chat4Icon:l,arrowUpSIcon:c,arrowDownSIcon:d,sparklingIcon:p,hasCustomText:o};return t.length===0?null:n.jsx(xs.Provider,{value:Ae,children:m})});en.displayName="UserQuestionRoot";function tn({className:e}){const t=bt();return n.jsxs("div",{className:y("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(je,{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(je,{size:"sm",variant:"ghost",onClick:t.handleNext,disabled:t.currentQuestionIndex===t.questions.length-1,icon:t.arrowDownSIcon})]})]})}tn.displayName="UserQuestionHeader";function nn({question:e,qIndex:t,className:s}){const a=bt(),r=e.options||[],[o,i]=x.useState(!1),l=!!a.customInputs[e.question]?.trim(),c=o||l,d=t===a.currentQuestionIndex;return n.jsxs("div",{ref:p=>{p?a.questionRefs.current.set(t,p):a.questionRefs.current.delete(t)},className:y("transition-opacity duration-200",d?"opacity-100":"opacity-40",s),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(Rn,{items:r.map(p=>({id:p.label,label:p.label,description:p.description})),selectedIds:a.answers[e.question]?.map(p=>p)||[],focusedId:d?r[a.focusedOptionIndex]?.label:void 0,disabled:a.isSubmitting||!d,onItemClick:(p,m)=>{if(!d){a.setCurrentQuestionIndex(t),a.setFocusedOptionIndex(a.getSelectedOptionIndex(t));return}a.handleOptionClick(e.question,p.label,t),a.setFocusedOptionIndex(m)}}),e.allowCustomInput!==!1&&n.jsxs("div",{className:y("w-full flex gap-3 pl-2 mt-3 transition-colors",!d&&"opacity-40",a.isSubmitting&&"opacity-50"),children:[n.jsx("div",{className:y("flex-shrink-0 w-5 h-5 rounded-full flex items-center justify-center text-xs leading-xs font-medium transition-colors",d&&a.focusedOptionIndex===r.length||a.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?a.customInputRefs.current.set(e.question,p):a.customInputRefs.current.delete(e.question)},type:"text",value:a.customInputs[e.question]||"",style:{outline:"none",outlineOffset:0,boxShadow:"none",border:"none"},onChange:p=>{const m=p.target.value;a.setCustomInputs(b=>({...b,[e.question]:m})),!e.multiSelect&&m.trim()&&a.setAnswers(b=>({...b,[e.question]:[]}))},onFocus:()=>{i(!0),d&&(a.setFocusedOptionIndex(r.length),e.multiSelect||a.setAnswers(p=>({...p,[e.question]:[]})))},onBlur:()=>i(!1),onKeyDown:p=>{if(p.key==="Enter"&&!p.shiftKey){p.preventDefault(),p.stopPropagation();const m=a.customInputs[e.question]?.trim();if((a.answers[e.question]||[]).length>0||!!m)if(a.allQuestionsAnswered)a.handleContinue();else if(t<a.questions.length-1){const u=t+1;a.setShouldScrollToQuestion(!0),a.setCurrentQuestionIndex(u),a.setFocusedOptionIndex(0)}else a.handleContinue()}},placeholder:a.labels.customInputPlaceholder,disabled:a.isSubmitting||!d,className:y("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:c?"100%":"0%"},"aria-hidden":!0,children:n.jsx("div",{className:"h-px bg-[var(--color-border-tertiary)]"})})]})]})]},e.question)}nn.displayName="UserQuestionCard";function sn({className:e,children:t}){const s=bt(),{scrollContainerRef:a,maxQuestionHeight:r,questions:o}=s;return n.jsx(be,{ref:a,scrollbarVisibility:"auto",maxHeight:r||void 0,className:y("scroll-smooth",e),children:n.jsx("div",{className:"space-y-4 px-3",children:t??o.map((i,l)=>n.jsx(nn,{question:i,qIndex:l},i.question))})})}sn.displayName="UserQuestionCards";function an({className:e}){const t=bt();return n.jsxs("div",{className:y("flex items-center justify-between px-3 py-2",e),children:[n.jsxs(ne,{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(ne,{variant:"ghost",size:"sm",onClick:t.handleSkip,disabled:t.isSubmitting,children:t.labels.skipAll}),n.jsx(ne,{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:" ↵"})]})})]})]})}an.displayName="UserQuestionFooter";function rn(){return n.jsxs(te.motion.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.2,ease:[.16,1,.3,1]},className:y("border rounded-t-xl border-b-0 border-border border-border-tertiary bg-bg-base overflow-hidden pt-2 pb-2"),children:[n.jsx(tn,{}),n.jsx(sn,{}),n.jsx(an,{})]})}rn.displayName="UserQuestionDefaultLayout";function fp(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e?.getAttribute("contenteditable")==="true"}function gp({isSubmitting:e,currentQuestion:t,currentOptions:s,currentQuestionIndex:a,questions:r,focusedOptionIndex:o,setFocusedOptionIndex:i,currentQuestionHasAnswer:l,getSelectedOptionIndex:c,setShouldScrollToQuestion:d,setCurrentQuestionIndex:p,handleOptionClick:m,handleContinue:b}){x.useEffect(()=>{const w={ArrowDown(g){if(g.preventDefault(),o<s.length-1)i(o+1);else if(a<r.length-1){const f=a+1;d(!0),p(f),i(c(f))}},ArrowUp(g){if(g.preventDefault(),o>0)i(o-1);else if(a>0){const f=a-1;d(!0),p(f),i(c(f))}},Enter(g){g.preventDefault(),l?b():t&&s[o]&&m(t.question,s[o].label,a)}},u=g=>{if(e||fp(document.activeElement))return;const f=w[g.key];if(f){f(g);return}if(g.key>="1"&&g.key<="9"){const k=parseInt(g.key,10)-1;k>=0&&k<s.length&&t&&(g.preventDefault(),m(t.question,s[k].label,a),i(k))}};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[e,t,s,a,r.length,o,i,l,c,p,m,b,d])}function xp(){const e=bt();return gp({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 yi=x.forwardRef(function(t,s){return n.jsxs(en,{ref:s,...t,children:[n.jsx(xp,{}),n.jsx(rn,{})]})});yi.displayName="UserQuestion";const He=yi;He.Root=en;He.Header=tn;He.Card=nn;He.Cards=sn;He.Footer=an;He.DefaultLayout=rn;const hp=He;function yp(e,t){const s=R("chat4","w-4 h-4 shrink-0 text-text-tertiary"),a=R("arrowUpS"),r=R("arrowDownS"),o=R("sparkling","w-4 h-4 mr-1");return n.jsx(en,{ref:t,chat4Icon:s,arrowUpSIcon:a,arrowDownSIcon:r,sparklingIcon:o,...e})}const bi=x.forwardRef(yp);bi.displayName="UserQuestionRoot";const vi=x.forwardRef(function(t,s){const a=R("chat4","w-4 h-4 shrink-0 text-text-tertiary"),r=R("arrowUpS"),o=R("arrowDownS"),i=R("sparkling","w-4 h-4 mr-1");return n.jsx(hp,{ref:s,chat4Icon:a,arrowUpSIcon:r,arrowDownSIcon:o,sparklingIcon:i,...t})});vi.displayName="UserQuestion";const Ue=vi;Ue.Root=bi;Ue.Header=tn;Ue.Card=nn;Ue.Cards=sn;Ue.Footer=an;Ue.DefaultLayout=rn;const bp=Ue,vp={answer:"Answer",answers:"Answers"},kp="w-4 h-4 shrink-0 text-text-tertiary",ki=x.memo(function({answers:t,showHeader:s=!0,labels:a,className:r="",questionAnswerIcon:o}){const i={...vp,...a},l=Object.entries(t),c=o??n.jsx(vc,{className:kp});return l.length===0?null:n.jsxs("div",{className:`rounded-lg border border-border-tertiary bg-bg-container overflow-hidden mx-2 ${r}`.trim(),children:[s&&n.jsxs("div",{className:"flex items-center gap-2 pl-3 pr-3 h-8 border-b border-border-tertiary",children:[c,n.jsx("span",{className:"text-xs leading-xs text-text-tertiary",children:l.length===1?i.answer:i.answers})]}),n.jsx("div",{className:"flex flex-col gap-3 p-3 text-xs leading-xs",children:l.map(([d,p],m)=>n.jsxs("div",{className:"flex flex-col gap-1",children:[n.jsx("span",{className:"font-medium text-text",children:d}),n.jsx("span",{className:"text-text-tertiary",children:p})]},m))})]})});ki.displayName="UserQuestionAnswer";const wp="w-4 h-4 shrink-0 text-text-tertiary",wi=x.memo(function(t){const s=R("questionAnswer",wp);return n.jsx(ki,{questionAnswerIcon:s,...t})});wi.displayName="UserQuestionAnswer";const Np={title:"In queue",sendNowTip:"Send now",removeTip:"Remove",fileLabel:"file",filesLabel:"files"},jp="w-3.5 h-3.5",Cp="w-3.5 h-3.5",Sp="w-4 h-4 text-text-tertiary transition-transform duration-200",Ip=x.memo(function({item:t,onRemove:s,onSendNow:a,labels:r,arrowUpIcon:o,closeIcon:i}){const l=x.useCallback(m=>{m.stopPropagation(),s?.(t.id)},[t.id,s]),c=x.useCallback(m=>{m.stopPropagation(),a?.(t.id)},[t.id,a]),d=t.attachmentCount??0,p=d===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}),d>0&&n.jsxs("span",{className:"shrink-0 text-xs leading-xs text-text-tertiary",children:["+",d," ",p]}),n.jsxs("div",{className:"flex items-center gap-0.5",children:[a&&n.jsx(at,{content:r.sendNowTip,side:"top",children:n.jsx(je,{size:"sm",variant:"ghost",icon:o,"aria-label":r.sendNowTip,className:"shrink-0",onClick:c})}),s&&n.jsx(at,{content:r.removeTip,side:"top",children:n.jsx(je,{size:"sm",variant:"ghost",icon:i,"aria-label":r.removeTip,className:"shrink-0",onClick:l})})]})]})}),Ni=x.memo(function({items:t,onRemoveItem:s,onSendNow:a,isStreaming:r=!1,hasStatusCardBelow:o=!1,labels:i,defaultExpanded:l=!0,storageKey:c,arrowUpIcon:d,closeIcon:p,arrowDownSIcon:m}){const b={...Np,...i},w=d??n.jsx(An,{className:jp}),u=p??n.jsx(_e,{className:Cp}),g=m??n.jsx(ye,{className:Sp}),[f,k]=x.useState(()=>{if(typeof window>"u")return l;if(c){const v=localStorage.getItem(c);return v!==null?v==="true":l}return l});if(x.useEffect(()=>{c&&localStorage.setItem(c,String(f))},[c,f]),t.length===0)return null;const h=y("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(te.motion.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.2,ease:[.16,1,.3,1]},className:h,children:[n.jsx("div",{role:"button",tabIndex:0,onClick:()=>k(!f),onKeyDown:v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),k(!f))},"aria-expanded":f,"aria-label":`${f?"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:y("inline-flex items-center justify-center",!f&&"-rotate-90"),children:g}),n.jsx("span",{className:"text-xs leading-xs font-medium text-text-secondary",children:b.title})]})}),n.jsx(te.AnimatePresence,{initial:!1,children:f&&n.jsx(te.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(be,{scrollbarVisibility:"auto",maxHeight:208,className:"border-t border-border-tertiary scroll-smooth",children:t.map(v=>n.jsx(Ip,{item:v,onRemove:s,onSendNow:a,labels:b,arrowUpIcon:w,closeIcon:u},v.id))})})})]})});Ni.displayName="QueueIndicator";const Rp="w-3.5 h-3.5",Ap="w-3.5 h-3.5",Ep="w-4 h-4 text-text-tertiary transition-transform duration-200",ji=x.memo(function(t){const s=R("arrowUp",Rp),a=R("close",Ap),r=R("arrowDownS",Ep);return n.jsx(Ni,{arrowUpIcon:s,closeIcon:a,arrowDownSIcon:r,...t})});ji.displayName="QueueIndicator";const Hs="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",Tp="font-['Seti'] shrink-0 inline-flex items-center justify-center w-4 h-4 text-[16px] leading-[16px]",kn={javascript:"",typescript:"",react:"",json:"",html:"",css:"",python:"",java:"",go:"",rust:"",php:"",ruby:"",vue:"",svelte:"",markdown:"",yaml:"",xml:"",shell:"",sass:"",settings:"",default:""},Us={javascript:"#F8CA3E",typescript:"#1E8DEE",react:"#1E8DEE",json:"#F8CA3E",html:"#1E8DEE",css:"#1E8DEE",python:"#1E8DEE",java:"#E84654",go:"#1E8DEE",rust:"#6A89E6",php:"#AE4EE2",ruby:"#E84654",vue:"#4EBD35",svelte:"#E84654",markdown:"#1E8DEE",yaml:"#AE4EE2",xml:"#F18745",shell:"#4EBD35",sass:"#E84654",settings:"#6A89E6",default:"#6A89E6"},Rt={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 Ci(e,t){let s=null;if(t&&typeof t=="string"&&t.trim()){const a=t.lastIndexOf(".");if(a>0&&a<t.length-1){const r=t.substring(a+1).toLowerCase().trim();r&&Rt[r]&&(s=Rt[r])}}if(!s&&e&&typeof e=="string"&&e.trim()){const a=e.toLowerCase().trim();Rt[a]?s=Rt[a]:kn[a]&&(s=a)}return s||"default"}function Lp(e,t){const s=Ci(e,t);return kn[s]??kn.default}function _p(e,t){const s=Ci(e,t);return Us[s]??Us.default}function Si({files:e=[],defaultExpanded:t=!0,className:s,headerIcon:a,acceptIcon:r,rejectIcon:o,getFileIcon:i}){const[l,c]=x.useState(null),d=n.jsx(Ma,{className:y(Hs,"text-text-secondary")}),p="w-[var(--font-size-sm)] h-[var(--font-size-sm)]",m=n.jsx(Ie,{className:p}),b=n.jsx(_e,{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 n.jsx(Ce,{headerIcon:a??d,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(ne,{variant:"ghost",size:"sm",onClick:u=>u.stopPropagation(),children:"Undo All"}),n.jsx(ne,{variant:"ghost",size:"sm",onClick:u=>u.stopPropagation(),children:"Keep All"}),n.jsx(ne,{variant:"secondary",size:"sm",onClick:u=>u.stopPropagation(),children:"Review"})]}),defaultExpanded:t,contentPadding:"var(--spacing-1\\.5) var(--spacing-1) var(--spacing-1\\.5)",className:s,children:n.jsx("div",{className:"flex flex-col gap-0.5",children:e.map((u,g)=>{const f=l===g,k=u.additions!=null&&Number.isFinite(u.additions)?u.additions:null,h=u.deletions!=null&&Number.isFinite(u.deletions)?u.deletions:null;return n.jsxs("div",{className:y("flex items-center gap-1 px-1 py-1 rounded-sm cursor-pointer transition-colors duration-200 relative h-6",f?"bg-fill-secondary":"bg-transparent"),onMouseEnter:()=>c(g),onMouseLeave:()=>c(null),children:[i?n.jsx("span",{className:y("shrink-0",Hs),children:i(u.fileType,u.filename)}):n.jsx("span",{className:y("shrink-0",Tp),style:{color:_p(u.fileType,u.filename)},"aria-hidden":!0,children:Lp(u.fileType,u.filename)}),n.jsx("span",{className:y("flex-1 text-xs font-medium truncate pr-12",f?"text-text":"text-text-tertiary"),children:u.filename}),n.jsxs("div",{className:y("absolute right-1 flex items-center gap-0.5 text-xs font-medium shrink-0 transition-opacity duration-200",f?"opacity-0 pointer-events-none":"opacity-100"),children:[k!=null&&n.jsxs("span",{className:"text-success",children:["+",k]}),h!=null&&n.jsxs("span",{className:"text-error",children:["-",h]})]}),n.jsxs("div",{className:y("flex items-center gap-0.5 shrink-0 absolute right-1 transition-opacity duration-200",f?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"),onClick:v=>v.stopPropagation(),children:[n.jsx("button",{type:"button",className:y(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}),n.jsx("button",{type:"button",className:y(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:r??m})]})]},g)})})})}Si.displayName="FileReviewPart";const Vs="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary",At="w-[var(--font-size-sm)] h-[var(--font-size-sm)]";function Ii(e){const t=R("requestChanges",Vs)??n.jsx(Ma,{className:Vs}),s=R("checkLine",At)??n.jsx(Ie,{className:At}),a=R("close",At)??n.jsx(_e,{className:At}),r=e.getFileIcon;return n.jsx(Si,{headerIcon:t,acceptIcon:s,rejectIcon:a,getFileIcon:r,...e})}Ii.displayName="FileReviewPart";const vt="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",Pp=n.jsx(Oa,{className:y(vt,"text-text-secondary")}),Fp=n.jsx($a,{className:y(vt,"text-text-tertiary")}),zp=n.jsx(Bt,{className:y(vt,"text-text-quaternary")}),Dp=n.jsx(Ba,{className:y(vt,"text-text-tertiary")}),Mp=n.jsx(Ga,{className:y(vt,"text-text")});function Op(e,t,s){return t?s.loaderIcon??Mp:e.status==="completed"?s.completedIcon??zp:e.status==="skipped"||e.status==="cancelled"?s.skippedIcon??Dp:s.uncompletedIcon??Fp}function Ri({tasks:e=[],title:t="To-dos",currentTaskId:s,defaultExpanded:a=!0,className:r,headerIcon:o,uncompletedIcon:i,completedIcon:l,skippedIcon:c,loaderIcon:d}){return n.jsx(Ce,{headerIcon:o??Pp,headerTitle:n.jsx("span",{className:"text-left",children:t}),defaultExpanded:a,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,m)=>{const b=p.id??m,w=s!=null&&s===String(b),u=Op(p,w,{loaderIcon:d,completedIcon:l,skippedIcon:c,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:u}),n.jsx("span",{className:y("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)})})})}Ri.displayName="TaskPart";const on="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",qs=`${on} text-text-secondary`,Et=`${on} text-text-tertiary`,Ws=`${on} text-text-quaternary`,Zs=`${on} text-text`;function Ai(e){const t=R("catalog",qs)??n.jsx(Oa,{className:qs}),s=R("circle",Et)??n.jsx($a,{className:Et}),a=R("checkboxCircle",Ws)??n.jsx(Bt,{className:Ws}),r=R("indeterminateCircle",Et)??n.jsx(Ba,{className:Et}),o=R("arrowRightCircleFill",Zs)??n.jsx(Ga,{className:Zs});return n.jsx(Ri,{headerIcon:t,uncompletedIcon:s,completedIcon:a,skippedIcon:r,loaderIcon:o,...e})}Ai.displayName="TaskPart";const hs="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",$p=n.jsx(Gt,{className:`${hs} text-text-secondary`}),Bp=n.jsx(Ha,{className:hs}),Gp=n.jsx(Ie,{className:y(hs,"text-success")});function Ei({title:e="Plan",description:t,content:s,viewText:a="View",buildText:r="Build ⌘⏎",builtText:o="Built",isBuilt:i=!1,isGenerating:l=!1,onView:c,onBuild:d,onDownload:p,defaultExpanded:m=!0,contentMaxHeight:b,collapsible:w=!1,className:u,headerIcon:g,downloadIcon:f,builtIcon:k}){const h=s.split(`
|
|
252
252
|
`),v=h.length>1&&h[1].trim()==="",S=v?h[0]:null,C=v?h.slice(2).join(`
|
|
253
|
-
`):s;return n.jsx(Ce,{headerIcon:g
|
|
253
|
+
`):s;return n.jsx(Ce,{headerIcon:g??$p,headerTitle:n.jsx("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:l?n.jsx("span",{className:"text-left",children:"Planning..."}):n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"text-left",children:e}),t!=null&&n.jsx("span",{className:"text-left flex-1 truncate text-text-quaternary",children:t})]})}),titleShimmer:l,headerRight:!l&&p?n.jsx(je,{variant:"iconOnly",size:"sm",icon:f??Bp,onClick:T=>{T.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:m,contentMaxHeight:b,collapsible:w,footer:l?void 0:n.jsxs(n.Fragment,{children:[n.jsx(ne,{variant:"text",size:"sm",onClick:c,children:a}),n.jsx("div",{className:"flex-1"}),i?n.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:[n.jsx("span",{children:o}),k??Gp]}):n.jsx(ne,{variant:"secondary",size:"sm",onClick:d,children:r})]}),className:u,children:l?n.jsxs("div",{className:"flex flex-col gap-1 relative overflow-hidden min-h-[var(--spacing-14)]",children:[n.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}}),n.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"}}),n.jsx("style",{children:`
|
|
254
254
|
@keyframes plan-part-shimmer {
|
|
255
255
|
0% { mask-position: 0 -64px; -webkit-mask-position: 0 -64px; }
|
|
256
256
|
100% { mask-position: 0 calc(100% + 64px); -webkit-mask-position: 0 calc(100% + 64px); }
|
|
@@ -258,8 +258,8 @@ If you want, I can generate a **preview report** first (top 50 renames + album s
|
|
|
258
258
|
.plan-part-shimmer-layer {
|
|
259
259
|
animation: plan-part-shimmer 3s linear infinite;
|
|
260
260
|
}
|
|
261
|
-
`})]}):n.jsxs("div",{className:"flex flex-col gap-1",children:[S!=null&&n.jsx("div",{className:"text-sm font-medium text-text",children:S}),C!=null&&C!==""&&n.jsx("span",{className:"text-xs leading-xs text-text whitespace-pre-wrap break-words",children:C})]})})}
|
|
262
|
-
`);b.initialize({startOnLoad:!1,securityLevel:"strict",theme:"dark",themeCSS:w});const u=`mermaid-${t.replace(/:/g,"")}`,{svg:g}=await b.render(u,e);d||r(g??"")}catch(m){d||i(m?.message??"Failed to render mermaid.")}})(),()=>{d=!0}},[t,e,c]),{svg:a,error:o}}const Bp="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary",Gp=n.jsx(Gt,{className:Bp});function Ei({content:e="",className:t,headerIcon:s,dataStyle:a}){const r=x.useId(),o=x.useMemo(()=>(e??"").trim(),[e]),{svg:i,error:l}=$p(o,r,a),[c,d]=x.useState(1),p=x.useRef(null);x.useEffect(()=>{if(!i||l||!p.current)return;const u=p.current,g=f=>{if(f.ctrlKey||f.metaKey){f.preventDefault();const k=f.deltaY>0?-.1:.1;d(h=>Math.max(.5,Math.min(3,Math.round((h+k)*10)/10)))}};return u.addEventListener("wheel",g,{passive:!1}),()=>u.removeEventListener("wheel",g)},[i,l]);const m=()=>d(u=>Math.min(3,Math.round((u+.1)*10)/10)),b=()=>d(u=>Math.max(.5,Math.round((u-.1)*10)/10)),w=()=>d(1);return n.jsx(Ce,{headerIcon:s??Gp,headerTitle:n.jsx("span",{className:"text-text-secondary",children:"Mermaid"}),headerRight:i&&!l?n.jsxs("div",{className:"flex items-center gap-1",onClick:u=>u.stopPropagation(),children:[n.jsx(ne,{variant:"ghost",size:"sm",onClick:u=>{u.stopPropagation(),b()},className:"shrink-0 px-1.5 py-0.5 text-xs text-text-secondary hover:text-text","aria-label":"Zoom out",children:"−"}),n.jsxs("span",{className:"text-xs text-text-secondary min-w-[var(--spacing-10)] text-center",children:[Math.round(c*100),"%"]}),n.jsx(ne,{variant:"ghost",size:"sm",onClick:u=>{u.stopPropagation(),w()},className:"shrink-0 px-1.5 py-0.5 text-xs text-text-secondary hover:text-text","aria-label":"Reset",children:"Reset"}),n.jsx(ne,{variant:"ghost",size:"sm",onClick:u=>{u.stopPropagation(),m()},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?l?n.jsxs("div",{className:"space-y-2",children:[n.jsx("div",{className:"text-xs text-text-secondary",children:"Mermaid render unavailable."}),n.jsx("div",{className:"text-xs text-text-tertiary",children:l}),n.jsx("pre",{className:"m-0 whitespace-pre-wrap break-words font-mono text-xs text-text",children:o})]}):n.jsx("div",{className:"relative",ref:p,children:n.jsx(ye,{scrollbarVisibility:"auto",maxHeight:600,className:"overflow-x-auto",children:n.jsx("div",{className:"flex justify-center items-center",style:{transform:`scale(${c})`,transformOrigin:"center top",minHeight:c>1?"100%":"auto"},children:n.jsx("div",{dangerouslySetInnerHTML:{__html:i}})})})}):n.jsx("div",{className:"text-xs text-text-tertiary",children:"Mermaid content is empty."})})}Ei.displayName="MermaidPart";const Ks="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary";function Ti(e){const t=R("fileList2",Ks)??n.jsx(Gt,{className:Ks}),{style:s}=me();return n.jsx(Ei,{headerIcon:t,dataStyle:s,...e})}Ti.displayName="MermaidPart";var Hp=Object.create,ln=Object.defineProperty,Up=Object.defineProperties,Vp=Object.getOwnPropertyDescriptor,qp=Object.getOwnPropertyDescriptors,Li=Object.getOwnPropertyNames,Ot=Object.getOwnPropertySymbols,Wp=Object.getPrototypeOf,ys=Object.prototype.hasOwnProperty,_i=Object.prototype.propertyIsEnumerable,Xs=(e,t,s)=>t in e?ln(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,we=(e,t)=>{for(var s in t||(t={}))ys.call(t,s)&&Xs(e,s,t[s]);if(Ot)for(var s of Ot(t))_i.call(t,s)&&Xs(e,s,t[s]);return e},cn=(e,t)=>Up(e,qp(t)),Pi=(e,t)=>{var s={};for(var a in e)ys.call(e,a)&&t.indexOf(a)<0&&(s[a]=e[a]);if(e!=null&&Ot)for(var a of Ot(e))t.indexOf(a)<0&&_i.call(e,a)&&(s[a]=e[a]);return s},Zp=(e,t)=>function(){return t||(0,e[Li(e)[0]])((t={exports:{}}).exports,t),t.exports},Qp=(e,t)=>{for(var s in t)ln(e,s,{get:t[s],enumerable:!0})},Yp=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Li(t))!ys.call(e,r)&&r!==s&&ln(e,r,{get:()=>t[r],enumerable:!(a=Vp(t,r))||a.enumerable});return e},Kp=(e,t,s)=>(s=e!=null?Hp(Wp(e)):{},Yp(!e||!e.__esModule?ln(s,"default",{value:e,enumerable:!0}):s,e)),Xp=Zp({"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var s=(function(){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,r=0,o={},i={util:{encode:function u(g){return g instanceof l?new l(g.type,u(g.content),g.alias):Array.isArray(g)?g.map(u):g.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(u){return Object.prototype.toString.call(u).slice(8,-1)},objId:function(u){return u.__id||Object.defineProperty(u,"__id",{value:++r}),u.__id},clone:function u(g,f){f=f||{};var k,h;switch(i.util.type(g)){case"Object":if(h=i.util.objId(g),f[h])return f[h];k={},f[h]=k;for(var v in g)g.hasOwnProperty(v)&&(k[v]=u(g[v],f));return k;case"Array":return h=i.util.objId(g),f[h]?f[h]:(k=[],f[h]=k,g.forEach(function(S,C){k[C]=u(S,f)}),k);default:return g}},getLanguage:function(u){for(;u;){var g=a.exec(u.className);if(g)return g[1].toLowerCase();u=u.parentElement}return"none"},setLanguage:function(u,g){u.className=u.className.replace(RegExp(a,"gi"),""),u.classList.add("language-"+g)},isActive:function(u,g,f){for(var k="no-"+g;u;){var h=u.classList;if(h.contains(g))return!0;if(h.contains(k))return!1;u=u.parentElement}return!!f}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(u,g){var f=i.util.clone(i.languages[u]);for(var k in g)f[k]=g[k];return f},insertBefore:function(u,g,f,k){k=k||i.languages;var h=k[u],v={};for(var S in h)if(h.hasOwnProperty(S)){if(S==g)for(var C in f)f.hasOwnProperty(C)&&(v[C]=f[C]);f.hasOwnProperty(S)||(v[S]=h[S])}var T=k[u];return k[u]=v,i.languages.DFS(i.languages,function(E,I){I===T&&E!=u&&(this[E]=v)}),v},DFS:function u(g,f,k,h){h=h||{};var v=i.util.objId;for(var S in g)if(g.hasOwnProperty(S)){f.call(g,S,g[S],k||S);var C=g[S],T=i.util.type(C);T==="Object"&&!h[v(C)]?(h[v(C)]=!0,u(C,f,null,h)):T==="Array"&&!h[v(C)]&&(h[v(C)]=!0,u(C,f,S,h))}}},plugins:{},highlight:function(u,g,f){var k={code:u,grammar:g,language:f};if(i.hooks.run("before-tokenize",k),!k.grammar)throw new Error('The language "'+k.language+'" has no grammar.');return k.tokens=i.tokenize(k.code,k.grammar),i.hooks.run("after-tokenize",k),l.stringify(i.util.encode(k.tokens),k.language)},tokenize:function(u,g){var f=g.rest;if(f){for(var k in f)g[k]=f[k];delete g.rest}var h=new p;return m(h,h.head,u),d(u,h,g,h.head,0),w(h)},hooks:{all:{},add:function(u,g){var f=i.hooks.all;f[u]=f[u]||[],f[u].push(g)},run:function(u,g){var f=i.hooks.all[u];if(!(!f||!f.length))for(var k=0,h;h=f[k++];)h(g)}},Token:l};function l(u,g,f,k){this.type=u,this.content=g,this.alias=f,this.length=(k||"").length|0}l.stringify=function u(g,f){if(typeof g=="string")return g;if(Array.isArray(g)){var k="";return g.forEach(function(T){k+=u(T,f)}),k}var h={type:g.type,content:u(g.content,f),tag:"span",classes:["token",g.type],attributes:{},language:f},v=g.alias;v&&(Array.isArray(v)?Array.prototype.push.apply(h.classes,v):h.classes.push(v)),i.hooks.run("wrap",h);var S="";for(var C in h.attributes)S+=" "+C+'="'+(h.attributes[C]||"").replace(/"/g,""")+'"';return"<"+h.tag+' class="'+h.classes.join(" ")+'"'+S+">"+h.content+"</"+h.tag+">"};function c(u,g,f,k){u.lastIndex=g;var h=u.exec(f);if(h&&k&&h[1]){var v=h[1].length;h.index+=v,h[0]=h[0].slice(v)}return h}function d(u,g,f,k,h,v){for(var S in f)if(!(!f.hasOwnProperty(S)||!f[S])){var C=f[S];C=Array.isArray(C)?C:[C];for(var T=0;T<C.length;++T){if(v&&v.cause==S+","+T)return;var E=C[T],I=E.inside,F=!!E.lookbehind,Q=!!E.greedy,z=E.alias;if(Q&&!E.pattern.global){var G=E.pattern.toString().match(/[imsuy]*$/)[0];E.pattern=RegExp(E.pattern.source,G+"g")}for(var re=E.pattern||E,M=k.next,$=h;M!==g.tail&&!(v&&$>=v.reach);$+=M.value.length,M=M.next){var q=M.value;if(g.length>u.length)return;if(!(q instanceof l)){var ee=1,A;if(Q){if(A=c(re,$,u,F),!A||A.index>=u.length)break;var Z=A.index,O=A.index+A[0].length,W=$;for(W+=M.value.length;Z>=W;)M=M.next,W+=M.value.length;if(W-=M.value.length,$=W,M.value instanceof l)continue;for(var oe=M;oe!==g.tail&&(W<O||typeof oe.value=="string");oe=oe.next)ee++,W+=oe.value.length;ee--,q=u.slice($,W),A.index-=$}else if(A=c(re,0,q,F),!A)continue;var Z=A.index,V=A[0],ie=q.slice(0,Z),he=q.slice(Z+V.length),fe=$+q.length;v&&fe>v.reach&&(v.reach=fe);var Y=M.prev;ie&&(Y=m(g,Y,ie),$+=ie.length),b(g,Y,ee);var Re=new l(S,I?i.tokenize(V,I):V,z,V);if(M=m(g,Y,Re),he&&m(g,M,he),ee>1){var ge={cause:S+","+T,reach:fe};d(u,g,f,M.prev,$,ge),v&&ge.reach>v.reach&&(v.reach=ge.reach)}}}}}}function p(){var u={value:null,prev:null,next:null},g={value:null,prev:u,next:null};u.next=g,this.head=u,this.tail=g,this.length=0}function m(u,g,f){var k=g.next,h={value:f,prev:g,next:k};return g.next=h,k.prev=h,u.length++,h}function b(u,g,f){for(var k=g.next,h=0;h<f&&k!==u.tail;h++)k=k.next;g.next=k,k.prev=g,u.length-=h}function w(u){for(var g=[],f=u.head.next;f!==u.tail;)g.push(f.value),f=f.next;return g}return i})();t.exports=s,s.default=s}}),j=Kp(Xp());j.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},j.languages.markup.tag.inside["attr-value"].inside.entity=j.languages.markup.entity,j.languages.markup.doctype.inside["internal-subset"].inside=j.languages.markup,j.hooks.add("wrap",function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(j.languages.markup.tag,"addInlined",{value:function(e,a){var s={},s=(s["language-"+a]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:j.languages[a]},s.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:s}}),a=(s["language-"+a]={pattern:/[\s\S]+/,inside:j.languages[a]},{});a[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:s},j.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(j.languages.markup.tag,"addAttribute",{value:function(e,t){j.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:j.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),j.languages.html=j.languages.markup,j.languages.mathml=j.languages.markup,j.languages.svg=j.languages.markup,j.languages.xml=j.languages.extend("markup",{}),j.languages.ssml=j.languages.xml,j.languages.atom=j.languages.xml,j.languages.rss=j.languages.xml,(function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},s=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,a="(?:[^\\\\-]|"+s.source+")",a=RegExp(a+"-"+a),r={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:a,inside:{escape:s,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:s}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":r}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:s,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":r}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(j),j.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},j.languages.javascript=j.languages.extend("clike",{"class-name":[j.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),j.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,j.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:j.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:j.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:j.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:j.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:j.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),j.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:j.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),j.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),j.languages.markup&&(j.languages.markup.tag.addInlined("script","javascript"),j.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),j.languages.js=j.languages.javascript,j.languages.actionscript=j.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),j.languages.actionscript["class-name"].alias="function",delete j.languages.actionscript.parameter,delete j.languages.actionscript["literal-property"],j.languages.markup&&j.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:j.languages.markup}}),(function(e){var t=/#(?!\{).+/,s={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:s}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:s}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:s}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript})(j),(function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(s,a){(s=typeof s=="string"?[s]:s).forEach(function(r){var o=function(m){m.inside||(m.inside={}),m.inside.rest=a},i="doc-comment";if(l=e.languages[r]){var l,c=l[i];if((c=c||(l=e.languages.insertBefore(r,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[i])instanceof RegExp&&(c=l[i]={pattern:c}),Array.isArray(c))for(var d=0,p=c.length;d<p;d++)c[d]instanceof RegExp&&(c[d]={pattern:c[d]}),o(c[d]);else o(c)}})}}),t.addSupport(["java","javascript","php"],t)})(j),(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup);t&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))})(j),(function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,t=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),s={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:s,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:s})})(j),(function(e){var t=/[*&][^\s[\]{},]+/,s=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,a="(?:"+s.source+"(?:[ ]+"+t.source+")?|"+t.source+"(?:[ ]+"+s.source+")?)",r=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(l,c){c=(c||"").replace(/m/g,"")+"m";var d=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return a}).replace(/<<value>>/g,function(){return l});return RegExp(d,c)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return a})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return a}).replace(/<<key>>/g,function(){return"(?:"+r+"|"+o+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(o),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:s,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml})(j),(function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function s(d){return d=d.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+d+")")}var a=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,r=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return a}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,i=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+r+o+"(?:"+r+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+r+o+")(?:"+r+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(a),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+r+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+r+"$"),inside:{"table-header":{pattern:RegExp(a),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:s(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:s(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:s(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:s(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(d){["url","bold","italic","strike","code-snippet"].forEach(function(p){d!==p&&(e.languages.markdown[d].inside.content.inside[p]=e.languages.markdown[p])})}),e.hooks.add("after-tokenize",function(d){d.language!=="markdown"&&d.language!=="md"||(function p(m){if(m&&typeof m!="string")for(var b=0,w=m.length;b<w;b++){var u,g=m[b];g.type!=="code"?p(g.content):(u=g.content[1],g=g.content[3],u&&g&&u.type==="code-language"&&g.type==="code-block"&&typeof u.content=="string"&&(u=u.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),u="language-"+(u=(/[a-z][\w-]*/i.exec(u)||[""])[0].toLowerCase()),g.alias?typeof g.alias=="string"?g.alias=[g.alias,u]:g.alias.push(u):g.alias=[u]))}})(d.tokens)}),e.hooks.add("wrap",function(d){if(d.type==="code-block"){for(var p="",m=0,b=d.classes.length;m<b;m++){var w=d.classes[m],w=/language-(.+)/.exec(w);if(w){p=w[1];break}}var u,g=e.languages[p];g?d.content=e.highlight((function(f){return f=f.replace(i,""),f=f.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(k,h){var v;return(h=h.toLowerCase())[0]==="#"?(v=h[1]==="x"?parseInt(h.slice(2),16):Number(h.slice(1)),c(v)):l[h]||k})})(d.content),g,p):p&&p!=="none"&&e.plugins.autoloader&&(u="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random()),d.attributes.id=u,e.plugins.autoloader.loadLanguages(p,function(){var f=document.getElementById(u);f&&(f.innerHTML=e.highlight(f.textContent,e.languages[p],p))}))}}),RegExp(e.languages.markup.tag.pattern.source,"gi")),l={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown})(j),j.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:j.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},j.hooks.add("after-tokenize",function(e){if(e.language==="graphql")for(var t=e.tokens.filter(function(u){return typeof u!="string"&&u.type!=="comment"&&u.type!=="scalar"}),s=0;s<t.length;){var a=t[s++];if(a.type==="keyword"&&a.content==="mutation"){var r=[];if(m(["definition-mutation","punctuation"])&&p(1).content==="("){s+=2;var o=b(/^\($/,/^\)$/);if(o===-1)continue;for(;s<o;s++){var i=p(0);i.type==="variable"&&(w(i,"variable-input"),r.push(i.content))}s=o+1}if(m(["punctuation","property-query"])&&p(0).content==="{"&&(s++,w(p(0),"property-mutation"),0<r.length)){var l=b(/^\{$/,/^\}$/);if(l!==-1)for(var c=s;c<l;c++){var d=t[c];d.type==="variable"&&0<=r.indexOf(d.content)&&w(d,"variable-input")}}}}function p(u){return t[s+u]}function m(u,g){g=g||0;for(var f=0;f<u.length;f++){var k=p(f+g);if(!k||k.type!==u[f])return}return 1}function b(u,g){for(var f=1,k=s;k<t.length;k++){var h=t[k],v=h.content;if(h.type==="punctuation"&&typeof v=="string"){if(u.test(v))f++;else if(g.test(v)&&--f===0)return k}}return-1}function w(u,g){var f=u.alias;f?Array.isArray(f)||(u.alias=f=[f]):u.alias=f=[],f.push(g)}}),j.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},(function(e){var t=e.languages.javascript["template-string"],s=t.pattern.source,a=t.inside.interpolation,r=a.inside["interpolation-punctuation"],o=a.pattern.source;function i(m,b){if(e.languages[m])return{pattern:RegExp("((?:"+b+")\\s*)"+s),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:m}}}}function l(m,b,w){return m={code:m,grammar:b,language:w},e.hooks.run("before-tokenize",m),m.tokens=e.tokenize(m.code,m.grammar),e.hooks.run("after-tokenize",m),m.tokens}function c(m,b,w){var f=e.tokenize(m,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),u=0,g={},f=l(f.map(function(h){if(typeof h=="string")return h;for(var v,S,h=h.content;m.indexOf((S=u++,v="___"+w.toUpperCase()+"_"+S+"___"))!==-1;);return g[v]=h,v}).join(""),b,w),k=Object.keys(g);return u=0,(function h(v){for(var S=0;S<v.length;S++){if(u>=k.length)return;var C,T,E,I,F,Q,z,G=v[S];typeof G=="string"||typeof G.content=="string"?(C=k[u],(z=(Q=typeof G=="string"?G:G.content).indexOf(C))!==-1&&(++u,T=Q.substring(0,z),F=g[C],E=void 0,(I={})["interpolation-punctuation"]=r,(I=e.tokenize(F,I)).length===3&&((E=[1,1]).push.apply(E,l(I[1],e.languages.javascript,"javascript")),I.splice.apply(I,E)),E=new e.Token("interpolation",I,a.alias,F),I=Q.substring(z+C.length),F=[],T&&F.push(T),F.push(E),I&&(h(Q=[I]),F.push.apply(F,Q)),typeof G=="string"?(v.splice.apply(v,[S,1].concat(F)),S+=F.length-1):G.content=F)):(z=G.content,Array.isArray(z)?h(z):h([z]))}})(f),new e.Token(w,f,"language-"+w,m)}e.languages.javascript["template-string"]=[i("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),i("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),i("svg",/\bsvg/.source),i("markdown",/\b(?:markdown|md)/.source),i("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),i("sql",/\bsql/.source),t].filter(Boolean);var d={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function p(m){return typeof m=="string"?m:Array.isArray(m)?m.map(p).join(""):p(m.content)}e.hooks.add("after-tokenize",function(m){m.language in d&&(function b(w){for(var u=0,g=w.length;u<g;u++){var f,k,h,v=w[u];typeof v!="string"&&(f=v.content,Array.isArray(f)?v.type==="template-string"?(v=f[1],f.length===3&&typeof v!="string"&&v.type==="embedded-code"&&(k=p(v),v=v.alias,v=Array.isArray(v)?v[0]:v,h=e.languages[v])&&(f[1]=c(k,h,v))):b(f):typeof f!="string"&&b([f]))}})(m.tokens)})})(j),(function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript})(j),(function(e){var t=e.languages.javascript,s=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,a="(@(?:arg|argument|param|property)\\s+(?:"+s+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(a+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(a+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return s})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+s),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)})(j),(function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(j),j.languages.n4js=j.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),j.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),j.languages.n4jsd=j.languages.n4js,(function(e){function t(i,l){return RegExp(i.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),l)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var s=["function","function-variable","method","method-variable","property-access"],a=0;a<s.length;a++){var o=s[a],r=e.languages.javascript[o],o=(r=e.util.type(r)==="RegExp"?e.languages.javascript[o]={pattern:r}:r).inside||{};(r.inside=o)["maybe-class-name"]=/^[A-Z][\s\S]*/}})(j),(function(e){var t=e.util.clone(e.languages.javascript),s=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,a=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,r=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(c,d){return c=c.replace(/<S>/g,function(){return s}).replace(/<BRACES>/g,function(){return a}).replace(/<SPREAD>/g,function(){return r}),RegExp(c,d)}r=o(r).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);function i(c){for(var d=[],p=0;p<c.length;p++){var m=c[p],b=!1;typeof m!="string"&&(m.type==="tag"&&m.content[0]&&m.content[0].type==="tag"?m.content[0].content[0].content==="</"?0<d.length&&d[d.length-1].tagName===l(m.content[0].content[1])&&d.pop():m.content[m.content.length-1].content!=="/>"&&d.push({tagName:l(m.content[0].content[1]),openedBraces:0}):0<d.length&&m.type==="punctuation"&&m.content==="{"?d[d.length-1].openedBraces++:0<d.length&&0<d[d.length-1].openedBraces&&m.type==="punctuation"&&m.content==="}"?d[d.length-1].openedBraces--:b=!0),(b||typeof m=="string")&&0<d.length&&d[d.length-1].openedBraces===0&&(b=l(m),p<c.length-1&&(typeof c[p+1]=="string"||c[p+1].type==="plain-text")&&(b+=l(c[p+1]),c.splice(p+1,1)),0<p&&(typeof c[p-1]=="string"||c[p-1].type==="plain-text")&&(b=l(c[p-1])+b,c.splice(p-1,1),p--),c[p]=new e.Token("plain-text",b,null,b)),m.content&&typeof m.content!="string"&&i(m.content)}}var l=function(c){return c?typeof c=="string"?c:typeof c.content=="string"?c.content:c.content.map(l).join(""):""};e.hooks.add("after-tokenize",function(c){c.language!=="jsx"&&c.language!=="tsx"||i(c.tokens)})})(j),(function(e){var t=e.util.clone(e.languages.typescript),t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag);t.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0})(j),j.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},j.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=j.languages.swift}),(function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin})(j),j.languages.c=j.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),j.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),j.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},j.languages.c.string],char:j.languages.c.char,comment:j.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:j.languages.c}}}}),j.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete j.languages.c.boolean,j.languages.objectivec=j.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete j.languages.objectivec["class-name"],j.languages.objc=j.languages.objectivec,j.languages.reason=j.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),j.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete j.languages.reason.function,(function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,s=0;s<2;s++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string})(j),j.languages.go=j.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),j.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete j.languages.go["class-name"],(function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,s=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return s})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])})(j),j.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},j.languages.python["string-interpolation"].inside.interpolation.inside.rest=j.languages.python,j.languages.py=j.languages.python,j.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},j.languages.webmanifest=j.languages.json;var Jp={};Qp(Jp,{dracula:()=>t0,duotoneDark:()=>s0,duotoneLight:()=>r0,github:()=>i0,gruvboxMaterialDark:()=>z0,gruvboxMaterialLight:()=>M0,jettwaveDark:()=>R0,jettwaveLight:()=>E0,nightOwl:()=>c0,nightOwlLight:()=>u0,oceanicNext:()=>m0,okaidia:()=>g0,oneDark:()=>L0,oneLight:()=>P0,palenight:()=>h0,shadesOfPurple:()=>b0,synthwave84:()=>k0,ultramin:()=>N0,vsDark:()=>Fi,vsLight:()=>S0});var e0={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},t0=e0,n0={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},s0=n0,a0={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},r0=a0,o0={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},i0=o0,l0={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},c0=l0,d0={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},u0=d0,pe={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",tag:"#fc929e",function:"#79b6f2",className:"#FAC863"},p0={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:pe.keyword}},{types:["attr-value"],style:{color:pe.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:pe.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:pe.primitive}},{types:["boolean"],style:{color:pe.boolean}},{types:["tag"],style:{color:pe.tag}},{types:["string"],style:{color:pe.string}},{types:["punctuation"],style:{color:pe.string}},{types:["selector","char","builtin","inserted"],style:{color:pe.char}},{types:["function"],style:{color:pe.function}},{types:["operator","entity","url","variable"],style:{color:pe.variable}},{types:["keyword"],style:{color:pe.keyword}},{types:["atrule","class-name"],style:{color:pe.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},m0=p0,f0={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},g0=f0,x0={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},h0=x0,y0={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},b0=y0,v0={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},k0=v0,w0={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},N0=w0,j0={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},Fi=j0,C0={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},S0=C0,I0={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},R0=I0,A0={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},E0=A0,T0={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},L0=T0,_0={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},P0=_0,F0={plain:{color:"#ebdbb2",backgroundColor:"#292828"},styles:[{types:["imports","class-name","maybe-class-name","constant","doctype","builtin","function"],style:{color:"#d8a657"}},{types:["property-access"],style:{color:"#7daea3"}},{types:["tag"],style:{color:"#e78a4e"}},{types:["attr-name","char","url","regex"],style:{color:"#a9b665"}},{types:["attr-value","string"],style:{color:"#89b482"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#ea6962"}},{types:["entity","number","symbol"],style:{color:"#d3869b"}}]},z0=F0,D0={plain:{color:"#654735",backgroundColor:"#f9f5d7"},styles:[{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#af2528"}},{types:["imports","class-name","maybe-class-name","constant","doctype","builtin"],style:{color:"#b4730e"}},{types:["string","attr-value"],style:{color:"#477a5b"}},{types:["property-access"],style:{color:"#266b79"}},{types:["function","attr-name","char","url"],style:{color:"#72761e"}},{types:["tag"],style:{color:"#b94c07"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["entity","number","symbol"],style:{color:"#924f79"}}]},M0=D0,O0=e=>x.useCallback(t=>{var s=t,{className:a,style:r,line:o}=s,i=Pi(s,["className","style","line"]);const l=cn(we({},i),{className:ve("token-line",a)});return typeof e=="object"&&"plain"in e&&(l.style=e.plain),typeof r=="object"&&(l.style=we(we({},l.style||{}),r)),l},[e]),$0=e=>{const t=x.useCallback(({types:s,empty:a})=>{if(e!=null){{if(s.length===1&&s[0]==="plain")return a!=null?{display:"inline-block"}:void 0;if(s.length===1&&a!=null)return e[s[0]]}return Object.assign(a!=null?{display:"inline-block"}:{},...s.map(r=>e[r]))}},[e]);return x.useCallback(s=>{var a=s,{token:r,className:o,style:i}=a,l=Pi(a,["token","className","style"]);const c=cn(we({},l),{className:ve("token",...r.types,o),children:r.content,style:t(r)});return i!=null&&(c.style=we(we({},c.style||{}),i)),c},[t])},B0=/\r\n|\r|\n/,Js=e=>{e.length===0?e.push({types:["plain"],content:`
|
|
261
|
+
`})]}):n.jsxs("div",{className:"flex flex-col gap-1",children:[S!=null&&n.jsx("div",{className:"text-sm font-medium text-text",children:S}),C!=null&&C!==""&&n.jsx("span",{className:"text-xs leading-xs text-text whitespace-pre-wrap break-words",children:C})]})})}Ei.displayName="PlanPart";const Mt="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",Qs=`${Mt} text-text-secondary`,Ys=`${Mt} text-success`;function Ti(e){const t=R("fileList2",Qs)??n.jsx(Gt,{className:Qs}),s=R("download",Mt)??n.jsx(Ha,{className:Mt}),a=R("checkLine",Ys)??n.jsx(Ie,{className:Ys});return n.jsx(Ei,{headerIcon:t,downloadIcon:s,builtIcon:a,...e})}Ti.displayName="PlanPart";function Hp(e){const t=(e||"neutral").toLowerCase();return t==="soft"?"12px":t==="sharp"?"0":t==="dense"?"4px":"6px"}function Up(){return typeof document>"u"?"neutral":document.documentElement.getAttribute("data-style")||document.body?.getAttribute("data-style")||"neutral"}function Vp(e,t,s){const[a,r]=x.useState(""),[o,i]=x.useState(""),l=s??Up(),c=Hp(l);return x.useEffect(()=>{let d=!1;return(async()=>{if(i(""),r(""),!!e)try{const m=await Promise.resolve().then(()=>require("./mermaid.core-DBwAx_jp.cjs")).then(f=>f.mermaid_core),b=m?.default??m,w=[`.node rect { rx: ${c}; ry: ${c}; }`,`.cluster rect { rx: ${c}; ry: ${c}; }`,`.label rect { rx: ${c}; ry: ${c}; }`,`.edgeLabel rect { rx: ${c}; ry: ${c}; }`,".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(`
|
|
262
|
+
`);b.initialize({startOnLoad:!1,securityLevel:"strict",theme:"dark",themeCSS:w});const u=`mermaid-${t.replace(/:/g,"")}`,{svg:g}=await b.render(u,e);d||r(g??"")}catch(m){d||i(m?.message??"Failed to render mermaid.")}})(),()=>{d=!0}},[t,e,c]),{svg:a,error:o}}const qp="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary",Wp=n.jsx(Gt,{className:qp});function Li({content:e="",className:t,headerIcon:s,dataStyle:a}){const r=x.useId(),o=x.useMemo(()=>(e??"").trim(),[e]),{svg:i,error:l}=Vp(o,r,a),[c,d]=x.useState(1),p=x.useRef(null);x.useEffect(()=>{if(!i||l||!p.current)return;const u=p.current,g=f=>{if(f.ctrlKey||f.metaKey){f.preventDefault();const k=f.deltaY>0?-.1:.1;d(h=>Math.max(.5,Math.min(3,Math.round((h+k)*10)/10)))}};return u.addEventListener("wheel",g,{passive:!1}),()=>u.removeEventListener("wheel",g)},[i,l]);const m=()=>d(u=>Math.min(3,Math.round((u+.1)*10)/10)),b=()=>d(u=>Math.max(.5,Math.round((u-.1)*10)/10)),w=()=>d(1);return n.jsx(Ce,{headerIcon:s??Wp,headerTitle:n.jsx("span",{className:"text-text-secondary",children:"Mermaid"}),headerRight:i&&!l?n.jsxs("div",{className:"flex items-center gap-1",onClick:u=>u.stopPropagation(),children:[n.jsx(ne,{variant:"ghost",size:"sm",onClick:u=>{u.stopPropagation(),b()},className:"shrink-0 px-1.5 py-0.5 text-xs text-text-secondary hover:text-text","aria-label":"Zoom out",children:"−"}),n.jsxs("span",{className:"text-xs text-text-secondary min-w-[var(--spacing-10)] text-center",children:[Math.round(c*100),"%"]}),n.jsx(ne,{variant:"ghost",size:"sm",onClick:u=>{u.stopPropagation(),w()},className:"shrink-0 px-1.5 py-0.5 text-xs text-text-secondary hover:text-text","aria-label":"Reset",children:"Reset"}),n.jsx(ne,{variant:"ghost",size:"sm",onClick:u=>{u.stopPropagation(),m()},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?l?n.jsxs("div",{className:"space-y-2",children:[n.jsx("div",{className:"text-xs text-text-secondary",children:"Mermaid render unavailable."}),n.jsx("div",{className:"text-xs text-text-tertiary",children:l}),n.jsx("pre",{className:"m-0 whitespace-pre-wrap break-words font-mono text-xs text-text",children:o})]}):n.jsx("div",{className:"relative",ref:p,children:n.jsx(be,{scrollbarVisibility:"auto",maxHeight:600,className:"overflow-x-auto",children:n.jsx("div",{className:"flex justify-center items-center",style:{transform:`scale(${c})`,transformOrigin:"center top",minHeight:c>1?"100%":"auto"},children:n.jsx("div",{dangerouslySetInnerHTML:{__html:i}})})})}):n.jsx("div",{className:"text-xs text-text-tertiary",children:"Mermaid content is empty."})})}Li.displayName="MermaidPart";const Ks="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary";function _i(e){const t=R("fileList2",Ks)??n.jsx(Gt,{className:Ks}),{style:s}=me();return n.jsx(Li,{headerIcon:t,dataStyle:s,...e})}_i.displayName="MermaidPart";var Zp=Object.create,ln=Object.defineProperty,Qp=Object.defineProperties,Yp=Object.getOwnPropertyDescriptor,Kp=Object.getOwnPropertyDescriptors,Pi=Object.getOwnPropertyNames,Ot=Object.getOwnPropertySymbols,Xp=Object.getPrototypeOf,ys=Object.prototype.hasOwnProperty,Fi=Object.prototype.propertyIsEnumerable,Xs=(e,t,s)=>t in e?ln(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Ne=(e,t)=>{for(var s in t||(t={}))ys.call(t,s)&&Xs(e,s,t[s]);if(Ot)for(var s of Ot(t))Fi.call(t,s)&&Xs(e,s,t[s]);return e},cn=(e,t)=>Qp(e,Kp(t)),zi=(e,t)=>{var s={};for(var a in e)ys.call(e,a)&&t.indexOf(a)<0&&(s[a]=e[a]);if(e!=null&&Ot)for(var a of Ot(e))t.indexOf(a)<0&&Fi.call(e,a)&&(s[a]=e[a]);return s},Jp=(e,t)=>function(){return t||(0,e[Pi(e)[0]])((t={exports:{}}).exports,t),t.exports},e0=(e,t)=>{for(var s in t)ln(e,s,{get:t[s],enumerable:!0})},t0=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Pi(t))!ys.call(e,r)&&r!==s&&ln(e,r,{get:()=>t[r],enumerable:!(a=Yp(t,r))||a.enumerable});return e},n0=(e,t,s)=>(s=e!=null?Zp(Xp(e)):{},t0(!e||!e.__esModule?ln(s,"default",{value:e,enumerable:!0}):s,e)),s0=Jp({"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var s=(function(){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,r=0,o={},i={util:{encode:function u(g){return g instanceof l?new l(g.type,u(g.content),g.alias):Array.isArray(g)?g.map(u):g.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(u){return Object.prototype.toString.call(u).slice(8,-1)},objId:function(u){return u.__id||Object.defineProperty(u,"__id",{value:++r}),u.__id},clone:function u(g,f){f=f||{};var k,h;switch(i.util.type(g)){case"Object":if(h=i.util.objId(g),f[h])return f[h];k={},f[h]=k;for(var v in g)g.hasOwnProperty(v)&&(k[v]=u(g[v],f));return k;case"Array":return h=i.util.objId(g),f[h]?f[h]:(k=[],f[h]=k,g.forEach(function(S,C){k[C]=u(S,f)}),k);default:return g}},getLanguage:function(u){for(;u;){var g=a.exec(u.className);if(g)return g[1].toLowerCase();u=u.parentElement}return"none"},setLanguage:function(u,g){u.className=u.className.replace(RegExp(a,"gi"),""),u.classList.add("language-"+g)},isActive:function(u,g,f){for(var k="no-"+g;u;){var h=u.classList;if(h.contains(g))return!0;if(h.contains(k))return!1;u=u.parentElement}return!!f}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(u,g){var f=i.util.clone(i.languages[u]);for(var k in g)f[k]=g[k];return f},insertBefore:function(u,g,f,k){k=k||i.languages;var h=k[u],v={};for(var S in h)if(h.hasOwnProperty(S)){if(S==g)for(var C in f)f.hasOwnProperty(C)&&(v[C]=f[C]);f.hasOwnProperty(S)||(v[S]=h[S])}var T=k[u];return k[u]=v,i.languages.DFS(i.languages,function(E,I){I===T&&E!=u&&(this[E]=v)}),v},DFS:function u(g,f,k,h){h=h||{};var v=i.util.objId;for(var S in g)if(g.hasOwnProperty(S)){f.call(g,S,g[S],k||S);var C=g[S],T=i.util.type(C);T==="Object"&&!h[v(C)]?(h[v(C)]=!0,u(C,f,null,h)):T==="Array"&&!h[v(C)]&&(h[v(C)]=!0,u(C,f,S,h))}}},plugins:{},highlight:function(u,g,f){var k={code:u,grammar:g,language:f};if(i.hooks.run("before-tokenize",k),!k.grammar)throw new Error('The language "'+k.language+'" has no grammar.');return k.tokens=i.tokenize(k.code,k.grammar),i.hooks.run("after-tokenize",k),l.stringify(i.util.encode(k.tokens),k.language)},tokenize:function(u,g){var f=g.rest;if(f){for(var k in f)g[k]=f[k];delete g.rest}var h=new p;return m(h,h.head,u),d(u,h,g,h.head,0),w(h)},hooks:{all:{},add:function(u,g){var f=i.hooks.all;f[u]=f[u]||[],f[u].push(g)},run:function(u,g){var f=i.hooks.all[u];if(!(!f||!f.length))for(var k=0,h;h=f[k++];)h(g)}},Token:l};function l(u,g,f,k){this.type=u,this.content=g,this.alias=f,this.length=(k||"").length|0}l.stringify=function u(g,f){if(typeof g=="string")return g;if(Array.isArray(g)){var k="";return g.forEach(function(T){k+=u(T,f)}),k}var h={type:g.type,content:u(g.content,f),tag:"span",classes:["token",g.type],attributes:{},language:f},v=g.alias;v&&(Array.isArray(v)?Array.prototype.push.apply(h.classes,v):h.classes.push(v)),i.hooks.run("wrap",h);var S="";for(var C in h.attributes)S+=" "+C+'="'+(h.attributes[C]||"").replace(/"/g,""")+'"';return"<"+h.tag+' class="'+h.classes.join(" ")+'"'+S+">"+h.content+"</"+h.tag+">"};function c(u,g,f,k){u.lastIndex=g;var h=u.exec(f);if(h&&k&&h[1]){var v=h[1].length;h.index+=v,h[0]=h[0].slice(v)}return h}function d(u,g,f,k,h,v){for(var S in f)if(!(!f.hasOwnProperty(S)||!f[S])){var C=f[S];C=Array.isArray(C)?C:[C];for(var T=0;T<C.length;++T){if(v&&v.cause==S+","+T)return;var E=C[T],I=E.inside,F=!!E.lookbehind,Q=!!E.greedy,z=E.alias;if(Q&&!E.pattern.global){var G=E.pattern.toString().match(/[imsuy]*$/)[0];E.pattern=RegExp(E.pattern.source,G+"g")}for(var re=E.pattern||E,M=k.next,$=h;M!==g.tail&&!(v&&$>=v.reach);$+=M.value.length,M=M.next){var q=M.value;if(g.length>u.length)return;if(!(q instanceof l)){var ee=1,A;if(Q){if(A=c(re,$,u,F),!A||A.index>=u.length)break;var Z=A.index,O=A.index+A[0].length,W=$;for(W+=M.value.length;Z>=W;)M=M.next,W+=M.value.length;if(W-=M.value.length,$=W,M.value instanceof l)continue;for(var oe=M;oe!==g.tail&&(W<O||typeof oe.value=="string");oe=oe.next)ee++,W+=oe.value.length;ee--,q=u.slice($,W),A.index-=$}else if(A=c(re,0,q,F),!A)continue;var Z=A.index,V=A[0],ie=q.slice(0,Z),he=q.slice(Z+V.length),fe=$+q.length;v&&fe>v.reach&&(v.reach=fe);var Y=M.prev;ie&&(Y=m(g,Y,ie),$+=ie.length),b(g,Y,ee);var Re=new l(S,I?i.tokenize(V,I):V,z,V);if(M=m(g,Y,Re),he&&m(g,M,he),ee>1){var ge={cause:S+","+T,reach:fe};d(u,g,f,M.prev,$,ge),v&&ge.reach>v.reach&&(v.reach=ge.reach)}}}}}}function p(){var u={value:null,prev:null,next:null},g={value:null,prev:u,next:null};u.next=g,this.head=u,this.tail=g,this.length=0}function m(u,g,f){var k=g.next,h={value:f,prev:g,next:k};return g.next=h,k.prev=h,u.length++,h}function b(u,g,f){for(var k=g.next,h=0;h<f&&k!==u.tail;h++)k=k.next;g.next=k,k.prev=g,u.length-=h}function w(u){for(var g=[],f=u.head.next;f!==u.tail;)g.push(f.value),f=f.next;return g}return i})();t.exports=s,s.default=s}}),j=n0(s0());j.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},j.languages.markup.tag.inside["attr-value"].inside.entity=j.languages.markup.entity,j.languages.markup.doctype.inside["internal-subset"].inside=j.languages.markup,j.hooks.add("wrap",function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(j.languages.markup.tag,"addInlined",{value:function(e,a){var s={},s=(s["language-"+a]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:j.languages[a]},s.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:s}}),a=(s["language-"+a]={pattern:/[\s\S]+/,inside:j.languages[a]},{});a[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:s},j.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(j.languages.markup.tag,"addAttribute",{value:function(e,t){j.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:j.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),j.languages.html=j.languages.markup,j.languages.mathml=j.languages.markup,j.languages.svg=j.languages.markup,j.languages.xml=j.languages.extend("markup",{}),j.languages.ssml=j.languages.xml,j.languages.atom=j.languages.xml,j.languages.rss=j.languages.xml,(function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},s=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,a="(?:[^\\\\-]|"+s.source+")",a=RegExp(a+"-"+a),r={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:a,inside:{escape:s,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:s}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":r}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:s,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":r}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(j),j.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},j.languages.javascript=j.languages.extend("clike",{"class-name":[j.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),j.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,j.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:j.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:j.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:j.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:j.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:j.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),j.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:j.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),j.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),j.languages.markup&&(j.languages.markup.tag.addInlined("script","javascript"),j.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),j.languages.js=j.languages.javascript,j.languages.actionscript=j.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),j.languages.actionscript["class-name"].alias="function",delete j.languages.actionscript.parameter,delete j.languages.actionscript["literal-property"],j.languages.markup&&j.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:j.languages.markup}}),(function(e){var t=/#(?!\{).+/,s={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:s}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:s}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:s}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript})(j),(function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(s,a){(s=typeof s=="string"?[s]:s).forEach(function(r){var o=function(m){m.inside||(m.inside={}),m.inside.rest=a},i="doc-comment";if(l=e.languages[r]){var l,c=l[i];if((c=c||(l=e.languages.insertBefore(r,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[i])instanceof RegExp&&(c=l[i]={pattern:c}),Array.isArray(c))for(var d=0,p=c.length;d<p;d++)c[d]instanceof RegExp&&(c[d]={pattern:c[d]}),o(c[d]);else o(c)}})}}),t.addSupport(["java","javascript","php"],t)})(j),(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup);t&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))})(j),(function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,t=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),s={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:s,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:s})})(j),(function(e){var t=/[*&][^\s[\]{},]+/,s=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,a="(?:"+s.source+"(?:[ ]+"+t.source+")?|"+t.source+"(?:[ ]+"+s.source+")?)",r=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(l,c){c=(c||"").replace(/m/g,"")+"m";var d=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return a}).replace(/<<value>>/g,function(){return l});return RegExp(d,c)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return a})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return a}).replace(/<<key>>/g,function(){return"(?:"+r+"|"+o+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(o),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:s,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml})(j),(function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function s(d){return d=d.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+d+")")}var a=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,r=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return a}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,i=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+r+o+"(?:"+r+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+r+o+")(?:"+r+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(a),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+r+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+r+"$"),inside:{"table-header":{pattern:RegExp(a),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:s(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:s(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:s(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:s(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(d){["url","bold","italic","strike","code-snippet"].forEach(function(p){d!==p&&(e.languages.markdown[d].inside.content.inside[p]=e.languages.markdown[p])})}),e.hooks.add("after-tokenize",function(d){d.language!=="markdown"&&d.language!=="md"||(function p(m){if(m&&typeof m!="string")for(var b=0,w=m.length;b<w;b++){var u,g=m[b];g.type!=="code"?p(g.content):(u=g.content[1],g=g.content[3],u&&g&&u.type==="code-language"&&g.type==="code-block"&&typeof u.content=="string"&&(u=u.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),u="language-"+(u=(/[a-z][\w-]*/i.exec(u)||[""])[0].toLowerCase()),g.alias?typeof g.alias=="string"?g.alias=[g.alias,u]:g.alias.push(u):g.alias=[u]))}})(d.tokens)}),e.hooks.add("wrap",function(d){if(d.type==="code-block"){for(var p="",m=0,b=d.classes.length;m<b;m++){var w=d.classes[m],w=/language-(.+)/.exec(w);if(w){p=w[1];break}}var u,g=e.languages[p];g?d.content=e.highlight((function(f){return f=f.replace(i,""),f=f.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(k,h){var v;return(h=h.toLowerCase())[0]==="#"?(v=h[1]==="x"?parseInt(h.slice(2),16):Number(h.slice(1)),c(v)):l[h]||k})})(d.content),g,p):p&&p!=="none"&&e.plugins.autoloader&&(u="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random()),d.attributes.id=u,e.plugins.autoloader.loadLanguages(p,function(){var f=document.getElementById(u);f&&(f.innerHTML=e.highlight(f.textContent,e.languages[p],p))}))}}),RegExp(e.languages.markup.tag.pattern.source,"gi")),l={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown})(j),j.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:j.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},j.hooks.add("after-tokenize",function(e){if(e.language==="graphql")for(var t=e.tokens.filter(function(u){return typeof u!="string"&&u.type!=="comment"&&u.type!=="scalar"}),s=0;s<t.length;){var a=t[s++];if(a.type==="keyword"&&a.content==="mutation"){var r=[];if(m(["definition-mutation","punctuation"])&&p(1).content==="("){s+=2;var o=b(/^\($/,/^\)$/);if(o===-1)continue;for(;s<o;s++){var i=p(0);i.type==="variable"&&(w(i,"variable-input"),r.push(i.content))}s=o+1}if(m(["punctuation","property-query"])&&p(0).content==="{"&&(s++,w(p(0),"property-mutation"),0<r.length)){var l=b(/^\{$/,/^\}$/);if(l!==-1)for(var c=s;c<l;c++){var d=t[c];d.type==="variable"&&0<=r.indexOf(d.content)&&w(d,"variable-input")}}}}function p(u){return t[s+u]}function m(u,g){g=g||0;for(var f=0;f<u.length;f++){var k=p(f+g);if(!k||k.type!==u[f])return}return 1}function b(u,g){for(var f=1,k=s;k<t.length;k++){var h=t[k],v=h.content;if(h.type==="punctuation"&&typeof v=="string"){if(u.test(v))f++;else if(g.test(v)&&--f===0)return k}}return-1}function w(u,g){var f=u.alias;f?Array.isArray(f)||(u.alias=f=[f]):u.alias=f=[],f.push(g)}}),j.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},(function(e){var t=e.languages.javascript["template-string"],s=t.pattern.source,a=t.inside.interpolation,r=a.inside["interpolation-punctuation"],o=a.pattern.source;function i(m,b){if(e.languages[m])return{pattern:RegExp("((?:"+b+")\\s*)"+s),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:m}}}}function l(m,b,w){return m={code:m,grammar:b,language:w},e.hooks.run("before-tokenize",m),m.tokens=e.tokenize(m.code,m.grammar),e.hooks.run("after-tokenize",m),m.tokens}function c(m,b,w){var f=e.tokenize(m,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),u=0,g={},f=l(f.map(function(h){if(typeof h=="string")return h;for(var v,S,h=h.content;m.indexOf((S=u++,v="___"+w.toUpperCase()+"_"+S+"___"))!==-1;);return g[v]=h,v}).join(""),b,w),k=Object.keys(g);return u=0,(function h(v){for(var S=0;S<v.length;S++){if(u>=k.length)return;var C,T,E,I,F,Q,z,G=v[S];typeof G=="string"||typeof G.content=="string"?(C=k[u],(z=(Q=typeof G=="string"?G:G.content).indexOf(C))!==-1&&(++u,T=Q.substring(0,z),F=g[C],E=void 0,(I={})["interpolation-punctuation"]=r,(I=e.tokenize(F,I)).length===3&&((E=[1,1]).push.apply(E,l(I[1],e.languages.javascript,"javascript")),I.splice.apply(I,E)),E=new e.Token("interpolation",I,a.alias,F),I=Q.substring(z+C.length),F=[],T&&F.push(T),F.push(E),I&&(h(Q=[I]),F.push.apply(F,Q)),typeof G=="string"?(v.splice.apply(v,[S,1].concat(F)),S+=F.length-1):G.content=F)):(z=G.content,Array.isArray(z)?h(z):h([z]))}})(f),new e.Token(w,f,"language-"+w,m)}e.languages.javascript["template-string"]=[i("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),i("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),i("svg",/\bsvg/.source),i("markdown",/\b(?:markdown|md)/.source),i("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),i("sql",/\bsql/.source),t].filter(Boolean);var d={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function p(m){return typeof m=="string"?m:Array.isArray(m)?m.map(p).join(""):p(m.content)}e.hooks.add("after-tokenize",function(m){m.language in d&&(function b(w){for(var u=0,g=w.length;u<g;u++){var f,k,h,v=w[u];typeof v!="string"&&(f=v.content,Array.isArray(f)?v.type==="template-string"?(v=f[1],f.length===3&&typeof v!="string"&&v.type==="embedded-code"&&(k=p(v),v=v.alias,v=Array.isArray(v)?v[0]:v,h=e.languages[v])&&(f[1]=c(k,h,v))):b(f):typeof f!="string"&&b([f]))}})(m.tokens)})})(j),(function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript})(j),(function(e){var t=e.languages.javascript,s=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,a="(@(?:arg|argument|param|property)\\s+(?:"+s+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(a+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(a+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return s})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+s),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)})(j),(function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(j),j.languages.n4js=j.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),j.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),j.languages.n4jsd=j.languages.n4js,(function(e){function t(i,l){return RegExp(i.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),l)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var s=["function","function-variable","method","method-variable","property-access"],a=0;a<s.length;a++){var o=s[a],r=e.languages.javascript[o],o=(r=e.util.type(r)==="RegExp"?e.languages.javascript[o]={pattern:r}:r).inside||{};(r.inside=o)["maybe-class-name"]=/^[A-Z][\s\S]*/}})(j),(function(e){var t=e.util.clone(e.languages.javascript),s=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,a=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,r=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(c,d){return c=c.replace(/<S>/g,function(){return s}).replace(/<BRACES>/g,function(){return a}).replace(/<SPREAD>/g,function(){return r}),RegExp(c,d)}r=o(r).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);function i(c){for(var d=[],p=0;p<c.length;p++){var m=c[p],b=!1;typeof m!="string"&&(m.type==="tag"&&m.content[0]&&m.content[0].type==="tag"?m.content[0].content[0].content==="</"?0<d.length&&d[d.length-1].tagName===l(m.content[0].content[1])&&d.pop():m.content[m.content.length-1].content!=="/>"&&d.push({tagName:l(m.content[0].content[1]),openedBraces:0}):0<d.length&&m.type==="punctuation"&&m.content==="{"?d[d.length-1].openedBraces++:0<d.length&&0<d[d.length-1].openedBraces&&m.type==="punctuation"&&m.content==="}"?d[d.length-1].openedBraces--:b=!0),(b||typeof m=="string")&&0<d.length&&d[d.length-1].openedBraces===0&&(b=l(m),p<c.length-1&&(typeof c[p+1]=="string"||c[p+1].type==="plain-text")&&(b+=l(c[p+1]),c.splice(p+1,1)),0<p&&(typeof c[p-1]=="string"||c[p-1].type==="plain-text")&&(b=l(c[p-1])+b,c.splice(p-1,1),p--),c[p]=new e.Token("plain-text",b,null,b)),m.content&&typeof m.content!="string"&&i(m.content)}}var l=function(c){return c?typeof c=="string"?c:typeof c.content=="string"?c.content:c.content.map(l).join(""):""};e.hooks.add("after-tokenize",function(c){c.language!=="jsx"&&c.language!=="tsx"||i(c.tokens)})})(j),(function(e){var t=e.util.clone(e.languages.typescript),t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag);t.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0})(j),j.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},j.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=j.languages.swift}),(function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin})(j),j.languages.c=j.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),j.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),j.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},j.languages.c.string],char:j.languages.c.char,comment:j.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:j.languages.c}}}}),j.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete j.languages.c.boolean,j.languages.objectivec=j.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete j.languages.objectivec["class-name"],j.languages.objc=j.languages.objectivec,j.languages.reason=j.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),j.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete j.languages.reason.function,(function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,s=0;s<2;s++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string})(j),j.languages.go=j.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),j.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete j.languages.go["class-name"],(function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,s=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return s})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])})(j),j.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},j.languages.python["string-interpolation"].inside.interpolation.inside.rest=j.languages.python,j.languages.py=j.languages.python,j.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},j.languages.webmanifest=j.languages.json;var a0={};e0(a0,{dracula:()=>o0,duotoneDark:()=>l0,duotoneLight:()=>d0,github:()=>p0,gruvboxMaterialDark:()=>B0,gruvboxMaterialLight:()=>H0,jettwaveDark:()=>_0,jettwaveLight:()=>F0,nightOwl:()=>f0,nightOwlLight:()=>x0,oceanicNext:()=>y0,okaidia:()=>v0,oneDark:()=>D0,oneLight:()=>O0,palenight:()=>w0,shadesOfPurple:()=>j0,synthwave84:()=>S0,ultramin:()=>R0,vsDark:()=>Di,vsLight:()=>T0});var r0={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},o0=r0,i0={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},l0=i0,c0={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},d0=c0,u0={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},p0=u0,m0={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},f0=m0,g0={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},x0=g0,pe={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",tag:"#fc929e",function:"#79b6f2",className:"#FAC863"},h0={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:pe.keyword}},{types:["attr-value"],style:{color:pe.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:pe.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:pe.primitive}},{types:["boolean"],style:{color:pe.boolean}},{types:["tag"],style:{color:pe.tag}},{types:["string"],style:{color:pe.string}},{types:["punctuation"],style:{color:pe.string}},{types:["selector","char","builtin","inserted"],style:{color:pe.char}},{types:["function"],style:{color:pe.function}},{types:["operator","entity","url","variable"],style:{color:pe.variable}},{types:["keyword"],style:{color:pe.keyword}},{types:["atrule","class-name"],style:{color:pe.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},y0=h0,b0={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},v0=b0,k0={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},w0=k0,N0={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},j0=N0,C0={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},S0=C0,I0={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},R0=I0,A0={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},Di=A0,E0={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},T0=E0,L0={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},_0=L0,P0={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},F0=P0,z0={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},D0=z0,M0={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},O0=M0,$0={plain:{color:"#ebdbb2",backgroundColor:"#292828"},styles:[{types:["imports","class-name","maybe-class-name","constant","doctype","builtin","function"],style:{color:"#d8a657"}},{types:["property-access"],style:{color:"#7daea3"}},{types:["tag"],style:{color:"#e78a4e"}},{types:["attr-name","char","url","regex"],style:{color:"#a9b665"}},{types:["attr-value","string"],style:{color:"#89b482"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#ea6962"}},{types:["entity","number","symbol"],style:{color:"#d3869b"}}]},B0=$0,G0={plain:{color:"#654735",backgroundColor:"#f9f5d7"},styles:[{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#af2528"}},{types:["imports","class-name","maybe-class-name","constant","doctype","builtin"],style:{color:"#b4730e"}},{types:["string","attr-value"],style:{color:"#477a5b"}},{types:["property-access"],style:{color:"#266b79"}},{types:["function","attr-name","char","url"],style:{color:"#72761e"}},{types:["tag"],style:{color:"#b94c07"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["entity","number","symbol"],style:{color:"#924f79"}}]},H0=G0,U0=e=>x.useCallback(t=>{var s=t,{className:a,style:r,line:o}=s,i=zi(s,["className","style","line"]);const l=cn(Ne({},i),{className:ke("token-line",a)});return typeof e=="object"&&"plain"in e&&(l.style=e.plain),typeof r=="object"&&(l.style=Ne(Ne({},l.style||{}),r)),l},[e]),V0=e=>{const t=x.useCallback(({types:s,empty:a})=>{if(e!=null){{if(s.length===1&&s[0]==="plain")return a!=null?{display:"inline-block"}:void 0;if(s.length===1&&a!=null)return e[s[0]]}return Object.assign(a!=null?{display:"inline-block"}:{},...s.map(r=>e[r]))}},[e]);return x.useCallback(s=>{var a=s,{token:r,className:o,style:i}=a,l=zi(a,["token","className","style"]);const c=cn(Ne({},l),{className:ke("token",...r.types,o),children:r.content,style:t(r)});return i!=null&&(c.style=Ne(Ne({},c.style||{}),i)),c},[t])},q0=/\r\n|\r|\n/,Js=e=>{e.length===0?e.push({types:["plain"],content:`
|
|
263
263
|
`,empty:!0}):e.length===1&&e[0].content===""&&(e[0].content=`
|
|
264
|
-
`,e[0].empty=!0)},ea=(e,t)=>{const s=e.length;return s>0&&e[s-1]===t?e:e.concat(t)},
|
|
265
|
-
`).length:r??null,[t,a,r]),b=e?.toLowerCase(),w=o?n.jsx(te.motion.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},children:n.jsx(Aa,{className:y(na,"text-text-secondary")})}):d?d(b,p):n.jsx("span",{className:y(zi(b,p)),children:n.jsx(En,{className:na})}),u=a&&m!=null?n.jsxs("span",{className:y("font-normal text-xs leading-xs",a==="add"?"text-success":"text-error"),children:[a==="add"?"+":"-",m]}):null,g=y("overflow-x-auto text-left scrollbar-auto",a==="add"&&"bg-success-bg border-l-[3px] border-l-[var(--color-success-border)] -ml-5 pl-5",a==="remove"&&"bg-error-bg border-l-[3px] border-l-[var(--color-error-border)] -ml-5 pl-5"),f=(e??"text").toLowerCase();return n.jsx(Ce,{headerIcon:c??w,headerTitle:n.jsx("span",{className:"font-normal",children:p}),headerRight:u,defaultExpanded:i,contentPadding:"var(--spacing-2) 0 var(--spacing-2) var(--spacing-5)",titleShimmer:o,className:l,children:n.jsx("div",{className:g,children:n.jsx(W0,{theme:Y0,code:t,language:f,children:({className:k,style:h,tokens:v,getLineProps:S,getTokenProps:C})=>n.jsx("pre",{className:y(k,"m-0 text-left bg-transparent font-mono text-xs font-normal leading-xs whitespace-pre"),style:h,children:n.jsx("code",{className:"text-left block",children:v.map((T,E)=>n.jsx("div",{...S({line:T}),children:T.map((I,F)=>n.jsx("span",{...C({token:I})},F))},E))})})})})})}Di.displayName="CodeBlockPart";const J0="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0";function Mi(e){const{getFileIcon:t}=lt(),s=e.getFileIcon??(t?(a,r)=>t(r??"",J0):void 0);return n.jsx(Di,{getFileIcon:s,...e})}Mi.displayName="CodeBlockPart";const Oi="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary",em=n.jsx(Ha,{className:Oi}),tm=n.jsx(Ua,{className:Oi});function $i({command:e,output:t,autoRanCommand:s,className:a,headerIcon:r,externalLinkIcon:o}){const i=s??(e!=null?`Auto-Ran command: ${e}`:"Terminal");return n.jsx(Ce,{headerIcon:r??em,headerTitle:n.jsx("span",{className:"font-normal",children:i}),headerRight:n.jsx(Ne,{variant:"iconOnly",size:"sm",icon:o??tm,"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:a,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})})]})})}$i.displayName="TerminalCodeBlockPart";const Tt="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary";function Bi(e){const t=R("terminalBox",Tt)??n.jsx(Ha,{className:Tt}),s=R("externalLink",Tt)??n.jsx(Ua,{className:Tt});return n.jsx($i,{headerIcon:t,externalLinkIcon:s,...e})}Bi.displayName="TerminalCodeBlockPart";const bs="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",nm=n.jsx(Va,{className:`${bs} text-text-secondary`}),sm=n.jsx(it,{className:`${bs} text-warning`}),am=n.jsx(qa,{className:`${bs} text-text-secondary`});function rm({askValue:e,onAskChange:t,onSkip:s,onRun:a,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(Yr,{value:e,onValueChange:t,children:[n.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:i=>i.stopPropagation(),children:n.jsx(Kr,{})}),n.jsxs(Kn,{dataStyle:r,dataTheme:o,onClick:i=>i.stopPropagation(),children:[n.jsx(st,{value:"Ask every time",children:"Ask every time"}),n.jsx(st,{value:"Always allow",children:"Always allow"}),n.jsx(st,{value:"Always deny",children:"Always deny"})]})]})}),n.jsx("div",{className:"flex-1 h-4 border-l border-border-tertiary opacity-10"}),n.jsx(ne,{variant:"ghost",size:"sm",onClick:i=>{i.stopPropagation(),s()},children:"Skip ⌘⌫"}),n.jsx(ne,{variant:"secondary",size:"sm",onClick:i=>{i.stopPropagation(),a()},children:"Run ⌘⏎"})]})}function Gi({description:e,content:t,status:s="normal",onRun:a,onSkip:r,onViewDetail:o,onAskEveryTimeChange:i,className:l,dataStyle:c,dataTheme:d,normalIcon:p,failedIcon:m,skippedIcon:b}){const[w,u]=x.useState("Ask every time"),g=S=>{u(S),i?.(S)},f=s==="failed"?m??sm:s==="skipped"?b??am:p??nm,k=s==="failed"?n.jsx("span",{children:"Browser Failed"}):s==="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})]}),h=s==="failed"?n.jsx(ne,{variant:"text",size:"sm",onClick:S=>{S.stopPropagation(),o?.()},children:"View Detail"}):void 0,v=s==="normal"?n.jsx(rm,{askValue:w,onAskChange:g,onSkip:()=>r?.(),onRun:()=>a?.(),dataStyle:c,dataTheme:d}):void 0;return n.jsx(Ce,{headerIcon:f,headerTitle:k,headerRight:h,contentPadding:"var(--spacing-1\\.5) var(--spacing-2)",defaultExpanded:s==="normal",collapsible:s==="normal",footer:v,className:l,children:t!=null&&t!==""&&n.jsx("span",{className:"text-xs leading-xs text-text whitespace-pre-wrap break-words",children:t})})}Gi.displayName="BrowserActionPart";const vs="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",sa=`${vs} text-text-secondary`,aa=`${vs} text-warning`,ra=`${vs} text-text-secondary`;function Hi(e){const{style:t,theme:s}=me(),a=R("global",sa)??n.jsx(Va,{className:sa}),r=R("warning",aa)??n.jsx(it,{className:aa}),o=R("forbid2",ra)??n.jsx(qa,{className:ra});return n.jsx(Gi,{normalIcon:a,failedIcon:r,skippedIcon:o,dataStyle:e.dataStyle??t,dataTheme:e.dataTheme??s,...e})}Hi.displayName="BrowserActionPart";const om="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary",im=n.jsx(Ga,{className:om});function Ui({title:e="Initializing agent…",question:t,skipText:s="Skip ⌘⌫",runText:a="Run ⌘⏎",askTimeText:r="Ask any time",onSkip:o,onRun:i,contentMaxHeight:l,collapsible:c=!0,className:d,headerIcon:p}){return n.jsx(Ce,{headerIcon:p??im,headerTitle:n.jsx("span",{className:"text-left",children:e}),contentPadding:"var(--spacing-1\\.5) var(--spacing-2)",defaultExpanded:!0,contentMaxHeight:l,collapsible:c,footer:n.jsxs(n.Fragment,{children:[n.jsxs(ne,{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(je,{className:"w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0"})]}),n.jsx("div",{className:"flex-1"}),n.jsx(ne,{variant:"ghost",size:"sm",onClick:o,className:"bg-fill text-text-tertiary hover:bg-fill-secondary hover:text-text-secondary",children:s}),n.jsx(ne,{variant:"secondary",size:"sm",onClick:i,children:a})]}),className:d,children:n.jsx("div",{className:"text-sm text-left",children:n.jsx("span",{className:"text-text",children:t})})})}Ui.displayName="AskUserPart";const oa="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary";function Vi(e){const t=R("questionnaire",oa)??n.jsx(Ga,{className:oa});return n.jsx(Ui,{headerIcon:t,...e})}Vi.displayName="AskUserPart";Object.defineProperty(exports,"toast",{enumerable:!0,get:()=>la.toast});exports.AlertDialog=ar;exports.AlertDialogAction=or;exports.AlertDialogCancel=$n;exports.AlertDialogContent=ir;exports.AlertDialogDescription=On;exports.AlertDialogFooter=Dn;exports.AlertDialogHeader=zn;exports.AlertDialogMedia=lr;exports.AlertDialogOverlay=Pn;exports.AlertDialogPortal=rr;exports.AlertDialogTitle=Mn;exports.AlertDialogTrigger=jc;exports.AskUserPart=Vi;exports.Avatar=Br;exports.AvatarBadge=Ur;exports.AvatarFallback=Hr;exports.AvatarGroup=Vr;exports.AvatarGroupCount=qr;exports.AvatarImage=Gr;exports.BrowserActionPart=Hi;exports.Button=ne;exports.ChatInput=zd;exports.ChatInputAbove=ct;exports.ChatInputActions=pt;exports.ChatInputActionsLeft=mt;exports.ChatInputActionsRight=Ze;exports.ChatInputAttachments=Vt;exports.ChatInputBox=dt;exports.ChatInputExpandButton=qt;exports.ChatInputFolderButton=ft;exports.ChatInputFooterLeft=xt;exports.ChatInputInput=ut;exports.ChatInputMoreButton=gt;exports.ChatInputRoot=ns;exports.ChatInputSendButton=ss;exports.CodeBlockPart=Mi;exports.Collapse=ao;exports.CollapseContent=io;exports.CollapseItem=ro;exports.CollapseTrigger=oo;exports.Collapsible=ld;exports.CollapsibleCard=Ce;exports.CollapsibleContent=Ir;exports.CollapsibleSection=vr;exports.CollapsibleTrigger=cd;exports.DropdownMenu=Oe;exports.DropdownMenuCheckboxItem=Ya;exports.DropdownMenuContent=nr;exports.DropdownMenuGroup=xc;exports.DropdownMenuItem=ke;exports.DropdownMenuLabel=Xa;exports.DropdownMenuPortal=hc;exports.DropdownMenuRadioGroup=yc;exports.DropdownMenuRadioItem=Ka;exports.DropdownMenuSeparator=Ja;exports.DropdownMenuShortcut=er;exports.DropdownMenuSub=Wa;exports.DropdownMenuSubContent=sr;exports.DropdownMenuSubTrigger=Nc;exports.DropdownMenuTrigger=$e;exports.EllipsisText=Sa;exports.FILE_TYPE_MAP=et;exports.FileAttachment=si;exports.FileCard=ti;exports.FileReviewPart=Ci;exports.FolderButton=Po;exports.FunctionSwitch=Ec;exports.GeneratedImagesGrid=gi;exports.GenerationStatusBar=es;exports.HintBanner=Vo;exports.IconButton=Ne;exports.IconsProvider=wc;exports.ImageAttachment=ri;exports.ImageGenerating=fi;exports.Kbd=cr;exports.KbdGroup=dr;exports.MOTION_DURATION=tt;exports.MOTION_EASE=nt;exports.MOTION_SPRING=ur;exports.MarkdownBody=Qe;exports.MermaidPart=Ti;exports.OptionList=Rn;exports.Pagination=No;exports.PaginationContent=jo;exports.PaginationEllipsis=Ao;exports.PaginationItem=Co;exports.PaginationLink=So;exports.PaginationNext=Ro;exports.PaginationPrevious=Io;exports.PermissionCard=mi;exports.PlanPart=Ai;exports.Progress=To;exports.QueueIndicator=wi;exports.RadioGroup=yr;exports.RadioGroupItem=br;exports.ReasoningStep=Bu;exports.RelatedPrompts=Ho;exports.ResizableHandle=Er;exports.ResizablePanel=Ar;exports.ResizablePanelGroup=Rr;exports.Response=_u;exports.SETI_CHAR_MAP=$t;exports.SETI_COLOR_MAP=wn;exports.Scrollbar=ye;exports.Select=Yr;exports.SelectContent=eo;exports.SelectGroup=hd;exports.SelectItem=st;exports.SelectLabel=Xr;exports.SelectScrollDownButton=Yn;exports.SelectScrollUpButton=Qn;exports.SelectSeparator=Jr;exports.SelectTrigger=Zn;exports.SelectValue=Kr;exports.SendButton=ts;exports.ShimmeringText=Lr;exports.SidebarMenu=_o;exports.Skeleton=Tr;exports.Slider=wo;exports.Spinner=Wn;exports.Switch=Bn;exports.TYPE_TO_TOKEN_CLASS=Nn;exports.Table=_r;exports.TableBody=Fr;exports.TableCaption=$r;exports.TableCell=Or;exports.TableFooter=zr;exports.TableHead=Mr;exports.TableHeader=Pr;exports.TableRow=Dr;exports.Tabs=yd;exports.TabsContent=so;exports.TabsList=to;exports.TabsTrigger=no;exports.Tag=Xn;exports.TaskPart=Ii;exports.TerminalCodeBlockPart=Bi;exports.ThemeStyleProvider=ac;exports.ThinkingIndicator=fs;exports.Toaster=Qr;exports.Toggle=fr;exports.ToggleGroup=xr;exports.ToggleGroupItem=hr;exports.ToolInvocationCard=ui;exports.Tooltip=In;exports.TypographyBlockquote=fo;exports.TypographyH1=lo;exports.TypographyH2=co;exports.TypographyH3=uo;exports.TypographyH4=po;exports.TypographyInlineCode=ho;exports.TypographyLarge=bo;exports.TypographyLead=yo;exports.TypographyList=xo;exports.TypographyMuted=ko;exports.TypographyP=mo;exports.TypographySmall=vo;exports.TypographyTable=go;exports.UserMessage=Xo;exports.UserQuestion=fp;exports.UserQuestionAnswer=vi;exports.getFileIconColorClass=zi;exports.getSetiIcon=Z0;exports.getSetiIconColor=Q0;exports.getSetiIconType=dn;exports.tagVariants=Eo;exports.useIcon=R;exports.useIcons=lt;exports.useThemeStyle=me;
|
|
264
|
+
`,e[0].empty=!0)},ea=(e,t)=>{const s=e.length;return s>0&&e[s-1]===t?e:e.concat(t)},W0=e=>{const t=[[]],s=[e],a=[0],r=[e.length];let o=0,i=0,l=[];const c=[l];for(;i>-1;){for(;(o=a[i]++)<r[i];){let d,p=t[i];const b=s[i][o];if(typeof b=="string"?(p=i>0?p:["plain"],d=b):(p=ea(p,b.type),b.alias&&(p=ea(p,b.alias)),d=b.content),typeof d!="string"){i++,t.push(p),s.push(d),a.push(0),r.push(d.length);continue}const w=d.split(q0),u=w.length;l.push({types:p,content:w[0]});for(let g=1;g<u;g++)Js(l),c.push(l=[]),l.push({types:p,content:w[g]})}i--,t.pop(),s.pop(),a.pop(),r.pop()}return Js(l),c},ta=W0,Z0=({prism:e,code:t,grammar:s,language:a})=>x.useMemo(()=>{if(s==null)return ta([t]);const r={code:t,grammar:s,language:a,tokens:[]};return e.hooks.run("before-tokenize",r),r.tokens=e.tokenize(t,s),e.hooks.run("after-tokenize",r),ta(r.tokens)},[t,s,a,e]),Q0=(e,t)=>{const{plain:s}=e,a=e.styles.reduce((r,o)=>{const{languages:i,style:l}=o;return i&&!i.includes(t)||o.types.forEach(c=>{const d=Ne(Ne({},r[c]),l);r[c]=d}),r},{});return a.root=s,a.plain=cn(Ne({},s),{backgroundColor:void 0}),a},Y0=Q0,K0=({children:e,language:t,code:s,theme:a,prism:r})=>{const o=t.toLowerCase(),i=Y0(a,o),l=U0(i),c=V0(i),d=r.languages[o],p=Z0({prism:r,language:o,code:s,grammar:d});return e({tokens:p,className:`prism-code language-${o}`,style:i!=null?i.root:{},getLineProps:l,getTokenProps:c})},X0=e=>x.createElement(K0,cn(Ne({},e),{prism:e.prism||j,theme:e.theme||Di,code:e.code,language:e.language}));const $t={javascript:"",typescript:"",react:"",json:"",html:"",css:"",python:"",java:"",go:"",rust:"",php:"",ruby:"",vue:"",svelte:"",markdown:"",yaml:"",xml:"",shell:"",sass:"",settings:"",default:""},wn={javascript:"#F8CA3E",typescript:"#1E8DEE",react:"#1E8DEE",json:"#F8CA3E",html:"#1E8DEE",css:"#1E8DEE",python:"#1E8DEE",java:"#E84654",go:"#1E8DEE",rust:"#6A89E6",php:"#AE4EE2",ruby:"#E84654",vue:"#4EBD35",svelte:"#E84654",markdown:"#1E8DEE",yaml:"#AE4EE2",xml:"#F18745",shell:"#4EBD35",sass:"#E84654",settings:"#6A89E6",default:"#6A89E6"},Je={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"},Nn={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 dn(e,t){let s=null;if(t&&typeof t=="string"&&t.trim()){const a=t.lastIndexOf(".");if(a>0&&a<t.length-1){const r=t.substring(a+1).toLowerCase().trim();r&&Je[r]&&(s=Je[r])}}if(!s&&e&&typeof e=="string"&&e.trim()){const a=e.toLowerCase().trim();Je[a]?s=Je[a]:$t[a]&&(s=a)}return s||"default"}function J0(e,t){const s=dn(e,t);return $t[s]??$t.default}function em(e,t){const s=dn(e,t);return wn[s]??wn.default}function Mi(e,t){const s=dn(e,t);return Nn[s]??Nn.default}const na="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",tm={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)"}}]},nm={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 sm(e,t){if(e&&e.trim())return e;const s=(t??"text").toLowerCase(),a=nm[s]??"txt";return`${s}.${a}`}function Oi({language:e="javascript",code:t="",filename:s,diffType:a=null,diffLines:r=null,isGenerating:o=!1,defaultExpanded:i=!0,className:l,headerIcon:c,getFileIcon:d}){const p=x.useMemo(()=>sm(s,e),[s,e]),m=x.useMemo(()=>a&&t?t.split(`
|
|
265
|
+
`).length:r??null,[t,a,r]),b=e?.toLowerCase(),w=o?n.jsx(te.motion.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},children:n.jsx(Ta,{className:y(na,"text-text-secondary")})}):d?d(b,p):n.jsx("span",{className:y(Mi(b,p)),children:n.jsx(En,{className:na})}),u=a&&m!=null?n.jsxs("span",{className:y("font-normal text-xs leading-xs",a==="add"?"text-success":"text-error"),children:[a==="add"?"+":"-",m]}):null,g=y("overflow-x-auto text-left scrollbar-auto",a==="add"&&"bg-success-bg border-l-[3px] border-l-[var(--color-success-border)] -ml-5 pl-5",a==="remove"&&"bg-error-bg border-l-[3px] border-l-[var(--color-error-border)] -ml-5 pl-5"),f=(e??"text").toLowerCase();return n.jsx(Ce,{headerIcon:c??w,headerTitle:n.jsx("span",{className:"font-normal",children:p}),headerRight:u,defaultExpanded:i,contentPadding:"var(--spacing-2) 0 var(--spacing-2) var(--spacing-5)",titleShimmer:o,className:l,children:n.jsx("div",{className:g,children:n.jsx(X0,{theme:tm,code:t,language:f,children:({className:k,style:h,tokens:v,getLineProps:S,getTokenProps:C})=>n.jsx("pre",{className:y(k,"m-0 text-left bg-transparent font-mono text-xs font-normal leading-xs whitespace-pre"),style:h,children:n.jsx("code",{className:"text-left block",children:v.map((T,E)=>n.jsx("div",{...S({line:T}),children:T.map((I,F)=>n.jsx("span",{...C({token:I})},F))},E))})})})})})}Oi.displayName="CodeBlockPart";const am="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0";function $i(e){const{getFileIcon:t}=lt(),s=e.getFileIcon??(t?(a,r)=>t(r??"",am):void 0);return n.jsx(Oi,{getFileIcon:s,...e})}$i.displayName="CodeBlockPart";const Bi="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary",rm=n.jsx(Va,{className:Bi}),om=n.jsx(qa,{className:Bi});function Gi({command:e,output:t,autoRanCommand:s,className:a,headerIcon:r,externalLinkIcon:o}){const i=s??(e!=null?`Auto-Ran command: ${e}`:"Terminal");return n.jsx(Ce,{headerIcon:r??rm,headerTitle:n.jsx("span",{className:"font-normal",children:i}),headerRight:n.jsx(je,{variant:"iconOnly",size:"sm",icon:o??om,"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:a,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})})]})})}Gi.displayName="TerminalCodeBlockPart";const Tt="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary";function Hi(e){const t=R("terminalBox",Tt)??n.jsx(Va,{className:Tt}),s=R("externalLink",Tt)??n.jsx(qa,{className:Tt});return n.jsx(Gi,{headerIcon:t,externalLinkIcon:s,...e})}Hi.displayName="TerminalCodeBlockPart";const bs="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",im=n.jsx(Wa,{className:`${bs} text-text-secondary`}),lm=n.jsx(it,{className:`${bs} text-warning`}),cm=n.jsx(Za,{className:`${bs} text-text-secondary`});function dm({askValue:e,onAskChange:t,onSkip:s,onRun:a,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(Xr,{value:e,onValueChange:t,children:[n.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:i=>i.stopPropagation(),children:n.jsx(Jr,{})}),n.jsxs(Kn,{dataStyle:r,dataTheme:o,onClick:i=>i.stopPropagation(),children:[n.jsx(nt,{value:"Ask every time",children:"Ask every time"}),n.jsx(nt,{value:"Always allow",children:"Always allow"}),n.jsx(nt,{value:"Always deny",children:"Always deny"})]})]})}),n.jsx("div",{className:"flex-1 h-4 border-l border-border-tertiary opacity-10"}),n.jsx(ne,{variant:"ghost",size:"sm",onClick:i=>{i.stopPropagation(),s()},children:"Skip ⌘⌫"}),n.jsx(ne,{variant:"secondary",size:"sm",onClick:i=>{i.stopPropagation(),a()},children:"Run ⌘⏎"})]})}function Ui({description:e,content:t,status:s="normal",onRun:a,onSkip:r,onViewDetail:o,onAskEveryTimeChange:i,className:l,dataStyle:c,dataTheme:d,normalIcon:p,failedIcon:m,skippedIcon:b}){const[w,u]=x.useState("Ask every time"),g=S=>{u(S),i?.(S)},f=s==="failed"?m??lm:s==="skipped"?b??cm:p??im,k=s==="failed"?n.jsx("span",{children:"Browser Failed"}):s==="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})]}),h=s==="failed"?n.jsx(ne,{variant:"text",size:"sm",onClick:S=>{S.stopPropagation(),o?.()},children:"View Detail"}):void 0,v=s==="normal"?n.jsx(dm,{askValue:w,onAskChange:g,onSkip:()=>r?.(),onRun:()=>a?.(),dataStyle:c,dataTheme:d}):void 0;return n.jsx(Ce,{headerIcon:f,headerTitle:k,headerRight:h,contentPadding:"var(--spacing-1\\.5) var(--spacing-2)",defaultExpanded:s==="normal",collapsible:s==="normal",footer:v,className:l,children:t!=null&&t!==""&&n.jsx("span",{className:"text-xs leading-xs text-text whitespace-pre-wrap break-words",children:t})})}Ui.displayName="BrowserActionPart";const vs="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",sa=`${vs} text-text-secondary`,aa=`${vs} text-warning`,ra=`${vs} text-text-secondary`;function Vi(e){const{style:t,theme:s}=me(),a=R("global",sa)??n.jsx(Wa,{className:sa}),r=R("warning",aa)??n.jsx(it,{className:aa}),o=R("forbid2",ra)??n.jsx(Za,{className:ra});return n.jsx(Ui,{normalIcon:a,failedIcon:r,skippedIcon:o,dataStyle:e.dataStyle??t,dataTheme:e.dataTheme??s,...e})}Vi.displayName="BrowserActionPart";const um="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary",pm=n.jsx(Ua,{className:um});function qi({title:e="Initializing agent…",question:t,skipText:s="Skip ⌘⌫",runText:a="Run ⌘⏎",askTimeText:r="Ask any time",onSkip:o,onRun:i,contentMaxHeight:l,collapsible:c=!0,className:d,headerIcon:p}){return n.jsx(Ce,{headerIcon:p??pm,headerTitle:n.jsx("span",{className:"text-left",children:e}),contentPadding:"var(--spacing-1\\.5) var(--spacing-2)",defaultExpanded:!0,contentMaxHeight:l,collapsible:c,footer:n.jsxs(n.Fragment,{children:[n.jsxs(ne,{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(ye,{className:"w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0"})]}),n.jsx("div",{className:"flex-1"}),n.jsx(ne,{variant:"ghost",size:"sm",onClick:o,className:"bg-fill text-text-tertiary hover:bg-fill-secondary hover:text-text-secondary",children:s}),n.jsx(ne,{variant:"secondary",size:"sm",onClick:i,children:a})]}),className:d,children:n.jsx("div",{className:"text-sm text-left",children:n.jsx("span",{className:"text-text",children:t})})})}qi.displayName="AskUserPart";const oa="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary";function Wi(e){const t=R("questionnaire",oa)??n.jsx(Ua,{className:oa});return n.jsx(qi,{headerIcon:t,...e})}Wi.displayName="AskUserPart";Object.defineProperty(exports,"toast",{enumerable:!0,get:()=>la.toast});exports.AlertDialog=or;exports.AlertDialogAction=lr;exports.AlertDialogCancel=$n;exports.AlertDialogContent=cr;exports.AlertDialogDescription=On;exports.AlertDialogFooter=Dn;exports.AlertDialogHeader=zn;exports.AlertDialogMedia=dr;exports.AlertDialogOverlay=Pn;exports.AlertDialogPortal=ir;exports.AlertDialogTitle=Mn;exports.AlertDialogTrigger=Ac;exports.AskUserPart=Wi;exports.Avatar=Hr;exports.AvatarBadge=qr;exports.AvatarFallback=Vr;exports.AvatarGroup=Wr;exports.AvatarGroupCount=Zr;exports.AvatarImage=Ur;exports.BrowserActionPart=Vi;exports.Button=ne;exports.ChatInput=Bd;exports.ChatInputAbove=ct;exports.ChatInputActions=pt;exports.ChatInputActionsLeft=mt;exports.ChatInputActionsRight=Ze;exports.ChatInputAttachments=Vt;exports.ChatInputBox=dt;exports.ChatInputExpandButton=qt;exports.ChatInputFolderButton=ft;exports.ChatInputFooterLeft=xt;exports.ChatInputInput=ut;exports.ChatInputMoreButton=gt;exports.ChatInputRoot=ns;exports.ChatInputSendButton=ss;exports.CodeBlockPart=$i;exports.Collapse=oo;exports.CollapseContent=co;exports.CollapseItem=io;exports.CollapseTrigger=lo;exports.Collapsible=md;exports.CollapsibleCard=Ce;exports.CollapsibleContent=Ar;exports.CollapsibleSection=wr;exports.CollapsibleTrigger=fd;exports.DropdownMenu=Oe;exports.DropdownMenuCheckboxItem=Xa;exports.DropdownMenuContent=ar;exports.DropdownMenuGroup=kc;exports.DropdownMenuItem=we;exports.DropdownMenuLabel=er;exports.DropdownMenuPortal=wc;exports.DropdownMenuRadioGroup=Nc;exports.DropdownMenuRadioItem=Ja;exports.DropdownMenuSeparator=tr;exports.DropdownMenuShortcut=nr;exports.DropdownMenuSub=Qa;exports.DropdownMenuSubContent=rr;exports.DropdownMenuSubTrigger=Rc;exports.DropdownMenuTrigger=$e;exports.EllipsisText=Ra;exports.FILE_TYPE_MAP=Je;exports.FileAttachment=ri;exports.FileCard=si;exports.FileReviewPart=Ii;exports.FolderButton=zo;exports.FunctionSwitch=Fc;exports.GeneratedImagesGrid=hi;exports.GenerationStatusBar=es;exports.HintBanner=Wo;exports.IconButton=je;exports.IconsProvider=Ic;exports.ImageAttachment=ii;exports.ImageGenerating=xi;exports.Kbd=ur;exports.KbdGroup=pr;exports.MOTION_DURATION=et;exports.MOTION_EASE=tt;exports.MOTION_SPRING=mr;exports.MarkdownBody=Qe;exports.MermaidPart=_i;exports.OptionList=Rn;exports.Pagination=Co;exports.PaginationContent=So;exports.PaginationEllipsis=To;exports.PaginationItem=Io;exports.PaginationLink=Ro;exports.PaginationNext=Eo;exports.PaginationPrevious=Ao;exports.PermissionCard=gi;exports.PlanPart=Ti;exports.Progress=_o;exports.QueueIndicator=ji;exports.RadioGroup=vr;exports.RadioGroupItem=kr;exports.ReasoningStep=qu;exports.RelatedPrompts=Vo;exports.ResizableHandle=Lr;exports.ResizablePanel=Tr;exports.ResizablePanelGroup=Er;exports.Response=Mu;exports.SETI_CHAR_MAP=$t;exports.SETI_COLOR_MAP=wn;exports.Scrollbar=be;exports.Select=Xr;exports.SelectContent=no;exports.SelectGroup=wd;exports.SelectItem=nt;exports.SelectLabel=eo;exports.SelectScrollDownButton=Yn;exports.SelectScrollUpButton=Qn;exports.SelectSeparator=to;exports.SelectTrigger=Zn;exports.SelectValue=Jr;exports.SendButton=ts;exports.ShimmeringText=Pr;exports.SidebarMenu=Fo;exports.Skeleton=_r;exports.Slider=jo;exports.Spinner=Wn;exports.Switch=Bn;exports.TYPE_TO_TOKEN_CLASS=Nn;exports.Table=Fr;exports.TableBody=Dr;exports.TableCaption=Gr;exports.TableCell=Br;exports.TableFooter=Mr;exports.TableHead=$r;exports.TableHeader=zr;exports.TableRow=Or;exports.Tabs=Nd;exports.TabsContent=ro;exports.TabsList=so;exports.TabsTrigger=ao;exports.Tag=Xn;exports.TaskPart=Ai;exports.TerminalCodeBlockPart=Hi;exports.ThemeStyleProvider=cc;exports.ThinkingIndicator=fs;exports.Toaster=Kr;exports.Toggle=xr;exports.ToggleGroup=yr;exports.ToggleGroupItem=br;exports.ToolInvocationCard=mi;exports.Tooltip=In;exports.TypographyBlockquote=xo;exports.TypographyH1=uo;exports.TypographyH2=po;exports.TypographyH3=mo;exports.TypographyH4=fo;exports.TypographyInlineCode=bo;exports.TypographyLarge=ko;exports.TypographyLead=vo;exports.TypographyList=yo;exports.TypographyMuted=No;exports.TypographyP=go;exports.TypographySmall=wo;exports.TypographyTable=ho;exports.UserMessage=ei;exports.UserQuestion=bp;exports.UserQuestionAnswer=wi;exports.getFileIconColorClass=Mi;exports.getSetiIcon=J0;exports.getSetiIconColor=em;exports.getSetiIconType=dn;exports.tagVariants=Lo;exports.useIcon=R;exports.useIcons=lt;exports.useThemeStyle=me;
|