@ldkj/web-ui 1.0.0 → 1.0.1
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 +31 -31
- package/index.cjs +12 -12
- package/index.js +1307 -1304
- package/package.json +1 -1
- package/reset.css +11 -11
- package/style.css +1 -1
package/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),Oe=require("react"),bu=require("react-dom");function yu(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const u=yu(Oe),mo=yu(bu);function wu(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(r=0;r<n;r++)e[r]&&(t=wu(e[r]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function Pu(){for(var e,r,t=0,o="",n=arguments.length;t<n;t++)(e=arguments[t])&&(r=wu(e))&&(o&&(o+=" "),o+=r);return o}const aa=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ca=Pu,Cu=(e,r)=>t=>{var o;if(r?.variants==null)return ca(e,t?.class,t?.className);const{variants:n,defaultVariants:s}=r,i=Object.keys(n).map(d=>{const f=t?.[d],m=s?.[d];if(f===null)return null;const p=aa(f)||aa(m);return n[d][p]}),l=t&&Object.entries(t).reduce((d,f)=>{let[m,p]=f;return p===void 0||(d[m]=p),d},{}),a=r==null||(o=r.compoundVariants)===null||o===void 0?void 0:o.reduce((d,f)=>{let{class:m,className:p,...v}=f;return Object.entries(v).every(g=>{let[h,y]=g;return Array.isArray(y)?y.includes({...s,...l}[h]):{...s,...l}[h]===y})?[...d,m,p]:d},[]);return ca(e,i,a,t?.class,t?.className)},Yr={xs:"rounded-[2px]",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"};function pp(e){return typeof e=="string"&&Object.prototype.hasOwnProperty.call(Yr,e)}function ht(e){return e===void 0?{}:typeof e=="number"?{roundedStyle:{borderRadius:`${e}px`}}:pp(e)?{roundedPreset:e}:{roundedStyle:{borderRadius:e}}}const Ot={none:"shadow-none",xs:"shadow-[0_1px_2px_rgba(15,23,42,0.08)]",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg",xl:"shadow-xl",inner:"shadow-inner"};function vp(e){return typeof e=="string"&&Object.prototype.hasOwnProperty.call(Ot,e)}function ho(e){return e===void 0?{}:vp(e)?{shadowPreset:e}:{shadowStyle:{boxShadow:e}}}const ku=Cu("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{dark:"bg-[color:var(--ldkj-color-inverse)] text-[color:var(--ldkj-color-inverse-foreground)] hover:bg-[color:var(--ldkj-color-inverse)]",primary:"bg-[color:var(--ldkj-color-primary)] text-[color:var(--ldkj-color-primary-foreground)] hover:bg-[color:var(--ldkj-color-primary-hover)]",secondary:"bg-[color:var(--ldkj-color-secondary)] text-[color:var(--ldkj-color-secondary-foreground)] hover:bg-[color:var(--ldkj-color-secondary-hover)]",minor:"bg-[color:var(--ldkj-color-muted)] text-[color:var(--ldkj-color-muted-foreground)] hover:bg-[color:var(--ldkj-color-accent-hover)]",success:"bg-[color:var(--ldkj-color-success)] text-[color:var(--ldkj-color-success-foreground)] hover:brightness-95",warning:"bg-[color:var(--ldkj-color-warning)] text-[color:var(--ldkj-color-warning-foreground)] hover:brightness-95",danger:"bg-[color:var(--ldkj-color-danger)] text-[color:var(--ldkj-color-danger-foreground)] hover:brightness-95",outline:"border border-solid border-[color:var(--ldkj-color-primary)] bg-[color:var(--ldkj-color-background)] text-[color:var(--ldkj-color-primary)] hover:border-[color:var(--ldkj-color-primary-hover)] hover:text-[color:var(--ldkj-color-primary-hover)]",ghost:"text-[color:var(--ldkj-color-foreground)] hover:bg-[color:var(--ldkj-color-accent)] hover:text-[color:var(--ldkj-color-accent-foreground)]",link:"text-[color:var(--ldkj-color-primary)] underline-offset-4 hover:text-[color:var(--ldkj-color-primary-hover)] hover:underline",text:"text-[color:var(--ldkj-color-foreground)]"},size:{xs:"h-6 text-[10px] px-2",sm:"h-7 text-xs px-3",md:"h-8 text-sm px-4",lg:"h-9 text-lg px-8",xl:"h-10 text-lg px-10",icon:"h-8 w-8"},rounded:Yr,shadow:Ot,bounce:{true:"transition-all ease-out active:-translate-y-[10%] active:scale-98"},splash:{true:"active:opacity-90"}},defaultVariants:{variant:"primary",size:"md",bounce:!1,splash:!1}}),gp=(e,r)=>{const t=new Array(e.length+r.length);for(let o=0;o<e.length;o++)t[o]=e[o];for(let o=0;o<r.length;o++)t[e.length+o]=r[o];return t},xp=(e,r)=>({classGroupId:e,validator:r}),ju=(e=new Map,r=null,t)=>({nextPart:e,validators:r,classGroupId:t}),rn="-",ua=[],bp="arbitrary..",yp=e=>{const r=Pp(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return wp(i);const l=i.split(rn),a=l[0]===""&&l.length>1?1:0;return Su(l,a,r)},getConflictingClassGroupIds:(i,l)=>{if(l){const a=o[i],d=t[i];return a?d?gp(d,a):a:d||ua}return t[i]||ua}}},Su=(e,r,t)=>{if(e.length-r===0)return t.classGroupId;const n=e[r],s=t.nextPart.get(n);if(s){const d=Su(e,r+1,s);if(d)return d}const i=t.validators;if(i===null)return;const l=r===0?e.join(rn):e.slice(r).join(rn),a=i.length;for(let d=0;d<a;d++){const f=i[d];if(f.validator(l))return f.classGroupId}},wp=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=e.slice(1,-1),t=r.indexOf(":"),o=r.slice(0,t);return o?bp+o:void 0})(),Pp=e=>{const{theme:r,classGroups:t}=e;return Cp(t,r)},Cp=(e,r)=>{const t=ju();for(const o in e){const n=e[o];Ni(n,t,o,r)}return t},Ni=(e,r,t,o)=>{const n=e.length;for(let s=0;s<n;s++){const i=e[s];kp(i,r,t,o)}},kp=(e,r,t,o)=>{if(typeof e=="string"){jp(e,r,t);return}if(typeof e=="function"){Sp(e,r,t,o);return}Np(e,r,t,o)},jp=(e,r,t)=>{const o=e===""?r:Nu(r,e);o.classGroupId=t},Sp=(e,r,t,o)=>{if(qp(e)){Ni(e(o),r,t,o);return}r.validators===null&&(r.validators=[]),r.validators.push(xp(t,e))},Np=(e,r,t,o)=>{const n=Object.entries(e),s=n.length;for(let i=0;i<s;i++){const[l,a]=n[i];Ni(a,Nu(r,l),t,o)}},Nu=(e,r)=>{let t=e;const o=r.split(rn),n=o.length;for(let s=0;s<n;s++){const i=o[s];let l=t.nextPart.get(i);l||(l=ju(),t.nextPart.set(i,l)),t=l}return t},qp=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Ep=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=Object.create(null),o=Object.create(null);const n=(s,i)=>{t[s]=i,r++,r>e&&(r=0,o=t,t=Object.create(null))};return{get(s){let i=t[s];if(i!==void 0)return i;if((i=o[s])!==void 0)return n(s,i),i},set(s,i){s in t?t[s]=i:n(s,i)}}},ei="!",da=":",Rp=[],fa=(e,r,t,o,n)=>({modifiers:e,hasImportantModifier:r,baseClassName:t,maybePostfixModifierPosition:o,isExternal:n}),Ap=e=>{const{prefix:r,experimentalParseClassName:t}=e;let o=n=>{const s=[];let i=0,l=0,a=0,d;const f=n.length;for(let h=0;h<f;h++){const y=n[h];if(i===0&&l===0){if(y===da){s.push(n.slice(a,h)),a=h+1;continue}if(y==="/"){d=h;continue}}y==="["?i++:y==="]"?i--:y==="("?l++:y===")"&&l--}const m=s.length===0?n:n.slice(a);let p=m,v=!1;m.endsWith(ei)?(p=m.slice(0,-1),v=!0):m.startsWith(ei)&&(p=m.slice(1),v=!0);const g=d&&d>a?d-a:void 0;return fa(s,v,p,g)};if(r){const n=r+da,s=o;o=i=>i.startsWith(n)?s(i.slice(n.length)):fa(Rp,!1,i,void 0,!0)}if(t){const n=o;o=s=>t({className:s,parseClassName:n})}return o},Ip=e=>{const r=new Map;return e.orderSensitiveModifiers.forEach((t,o)=>{r.set(t,1e6+o)}),t=>{const o=[];let n=[];for(let s=0;s<t.length;s++){const i=t[s],l=i[0]==="[",a=r.has(i);l||a?(n.length>0&&(n.sort(),o.push(...n),n=[]),o.push(i)):n.push(i)}return n.length>0&&(n.sort(),o.push(...n)),o}},Tp=e=>({cache:Ep(e.cacheSize),parseClassName:Ap(e),sortModifiers:Ip(e),...yp(e)}),_p=/\s+/,Op=(e,r)=>{const{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:n,sortModifiers:s}=r,i=[],l=e.trim().split(_p);let a="";for(let d=l.length-1;d>=0;d-=1){const f=l[d],{isExternal:m,modifiers:p,hasImportantModifier:v,baseClassName:g,maybePostfixModifierPosition:h}=t(f);if(m){a=f+(a.length>0?" "+a:a);continue}let y=!!h,b=o(y?g.substring(0,h):g);if(!b){if(!y){a=f+(a.length>0?" "+a:a);continue}if(b=o(g),!b){a=f+(a.length>0?" "+a:a);continue}y=!1}const x=p.length===0?"":p.length===1?p[0]:s(p).join(":"),w=v?x+ei:x,P=w+b;if(i.indexOf(P)>-1)continue;i.push(P);const C=n(b,y);for(let k=0;k<C.length;++k){const j=C[k];i.push(w+j)}a=f+(a.length>0?" "+a:a)}return a},Mp=(...e)=>{let r=0,t,o,n="";for(;r<e.length;)(t=e[r++])&&(o=qu(t))&&(n&&(n+=" "),n+=o);return n},qu=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=qu(e[o]))&&(t&&(t+=" "),t+=r);return t},Lp=(e,...r)=>{let t,o,n,s;const i=a=>{const d=r.reduce((f,m)=>m(f),e());return t=Tp(d),o=t.cache.get,n=t.cache.set,s=l,l(a)},l=a=>{const d=o(a);if(d)return d;const f=Op(a,t);return n(a,f),f};return s=i,(...a)=>s(Mp(...a))},Dp=[],Be=e=>{const r=t=>t[e]||Dp;return r.isThemeGetter=!0,r},Eu=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ru=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Fp=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Bp=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$p=/\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$/,Vp=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,zp=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Hp=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Fr=e=>Fp.test(e),be=e=>!!e&&!Number.isNaN(Number(e)),Br=e=>!!e&&Number.isInteger(Number(e)),rs=e=>e.endsWith("%")&&be(e.slice(0,-1)),Er=e=>Bp.test(e),Au=()=>!0,Up=e=>$p.test(e)&&!Vp.test(e),qi=()=>!1,Wp=e=>zp.test(e),Kp=e=>Hp.test(e),Gp=e=>!ne(e)&&!le(e),Yp=e=>Xr(e,_u,qi),ne=e=>Eu.test(e),ot=e=>Xr(e,Ou,Up),ma=e=>Xr(e,ov,be),Xp=e=>Xr(e,Lu,Au),Jp=e=>Xr(e,Mu,qi),ha=e=>Xr(e,Iu,qi),Qp=e=>Xr(e,Tu,Kp),No=e=>Xr(e,Du,Wp),le=e=>Ru.test(e),zt=e=>pt(e,Ou),Zp=e=>pt(e,Mu),pa=e=>pt(e,Iu),ev=e=>pt(e,_u),rv=e=>pt(e,Tu),qo=e=>pt(e,Du,!0),tv=e=>pt(e,Lu,!0),Xr=(e,r,t)=>{const o=Eu.exec(e);return o?o[1]?r(o[1]):t(o[2]):!1},pt=(e,r,t=!1)=>{const o=Ru.exec(e);return o?o[1]?r(o[1]):t:!1},Iu=e=>e==="position"||e==="percentage",Tu=e=>e==="image"||e==="url",_u=e=>e==="length"||e==="size"||e==="bg-size",Ou=e=>e==="length",ov=e=>e==="number",Mu=e=>e==="family-name",Lu=e=>e==="number"||e==="weight",Du=e=>e==="shadow",nv=()=>{const e=Be("color"),r=Be("font"),t=Be("text"),o=Be("font-weight"),n=Be("tracking"),s=Be("leading"),i=Be("breakpoint"),l=Be("container"),a=Be("spacing"),d=Be("radius"),f=Be("shadow"),m=Be("inset-shadow"),p=Be("text-shadow"),v=Be("drop-shadow"),g=Be("blur"),h=Be("perspective"),y=Be("aspect"),b=Be("ease"),x=Be("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...P(),le,ne],k=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],S=()=>[le,ne,a],N=()=>[Fr,"full","auto",...S()],A=()=>[Br,"none","subgrid",le,ne],q=()=>["auto",{span:["full",Br,le,ne]},Br,le,ne],E=()=>[Br,"auto",le,ne],I=()=>["auto","min","max","fr",le,ne],_=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],O=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...S()],$=()=>[Fr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],M=()=>[Fr,"screen","full","dvw","lvw","svw","min","max","fit",...S()],W=()=>[Fr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...S()],F=()=>[e,le,ne],X=()=>[...P(),pa,ha,{position:[le,ne]}],ue=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ee=()=>["auto","cover","contain",ev,Yp,{size:[le,ne]}],Q=()=>[rs,zt,ot],K=()=>["","none","full",d,le,ne],J=()=>["",be,zt,ot],B=()=>["solid","dashed","dotted","double"],G=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>[be,rs,pa,ha],U=()=>["","none",g,le,ne],Y=()=>["none",be,le,ne],Z=()=>["none",be,le,ne],ae=()=>[be,le,ne],fe=()=>[Fr,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Er],breakpoint:[Er],color:[Au],container:[Er],"drop-shadow":[Er],ease:["in","out","in-out"],font:[Gp],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Er],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Er],shadow:[Er],spacing:["px",be],text:[Er],"text-shadow":[Er],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Fr,ne,le,y]}],container:["container"],columns:[{columns:[be,ne,le,l]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"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:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{"inset-s":N(),start:N()}],end:[{"inset-e":N(),end:N()}],"inset-bs":[{"inset-bs":N()}],"inset-be":[{"inset-be":N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[Br,"auto",le,ne]}],basis:[{basis:[Fr,"full","auto",l,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[be,Fr,"auto","initial","none",ne]}],grow:[{grow:["",be,le,ne]}],shrink:[{shrink:["",be,le,ne]}],order:[{order:[Br,"first","last","none",le,ne]}],"grid-cols":[{"grid-cols":A()}],"col-start-end":[{col:q()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":A()}],"row-start-end":[{row:q()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":I()}],"auto-rows":[{"auto-rows":I()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[..._(),"normal"]}],"justify-items":[{"justify-items":[...O(),"normal"]}],"justify-self":[{"justify-self":["auto",...O()]}],"align-content":[{content:["normal",..._()]}],"align-items":[{items:[...O(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...O(),{baseline:["","last"]}]}],"place-content":[{"place-content":_()}],"place-items":[{"place-items":[...O(),"baseline"]}],"place-self":[{"place-self":["auto",...O()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pbs:[{pbs:S()}],pbe:[{pbe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mbs:[{mbs:T()}],mbe:[{mbe:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],"inline-size":[{inline:["auto",...M()]}],"min-inline-size":[{"min-inline":["auto",...M()]}],"max-inline-size":[{"max-inline":["none",...M()]}],"block-size":[{block:["auto",...W()]}],"min-block-size":[{"min-block":["auto",...W()]}],"max-block-size":[{"max-block":["none",...W()]}],w:[{w:[l,"screen",...$()]}],"min-w":[{"min-w":[l,"screen","none",...$()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",t,zt,ot]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,tv,Xp]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",rs,ne]}],"font-family":[{font:[Zp,Jp,r]}],"font-features":[{"font-features":[ne]}],"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:[n,le,ne]}],"line-clamp":[{"line-clamp":[be,"none",le,ma]}],leading:[{leading:[s,...S()]}],"list-image":[{"list-image":["none",le,ne]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",le,ne]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:[be,"from-font","auto",le,ot]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[be,"auto",le,ne]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",le,ne]}],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",le,ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:X()}],"bg-repeat":[{bg:ue()}],"bg-size":[{bg:ee()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Br,le,ne],radial:["",le,ne],conic:[Br,le,ne]},rv,Qp]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:Q()}],"gradient-via-pos":[{via:Q()}],"gradient-to-pos":[{to:Q()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:K()}],"rounded-s":[{"rounded-s":K()}],"rounded-e":[{"rounded-e":K()}],"rounded-t":[{"rounded-t":K()}],"rounded-r":[{"rounded-r":K()}],"rounded-b":[{"rounded-b":K()}],"rounded-l":[{"rounded-l":K()}],"rounded-ss":[{"rounded-ss":K()}],"rounded-se":[{"rounded-se":K()}],"rounded-ee":[{"rounded-ee":K()}],"rounded-es":[{"rounded-es":K()}],"rounded-tl":[{"rounded-tl":K()}],"rounded-tr":[{"rounded-tr":K()}],"rounded-br":[{"rounded-br":K()}],"rounded-bl":[{"rounded-bl":K()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-bs":[{"border-bs":J()}],"border-w-be":[{"border-be":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...B(),"hidden","none"]}],"divide-style":[{divide:[...B(),"hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...B(),"none","hidden"]}],"outline-offset":[{"outline-offset":[be,le,ne]}],"outline-w":[{outline:["",be,zt,ot]}],"outline-color":[{outline:F()}],shadow:[{shadow:["","none",f,qo,No]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",m,qo,No]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[be,ot]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":["none",p,qo,No]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[be,le,ne]}],"mix-blend":[{"mix-blend":[...G(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":G()}],"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":[be]}],"mask-image-linear-from-pos":[{"mask-linear-from":H()}],"mask-image-linear-to-pos":[{"mask-linear-to":H()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":H()}],"mask-image-t-to-pos":[{"mask-t-to":H()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":H()}],"mask-image-r-to-pos":[{"mask-r-to":H()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":H()}],"mask-image-b-to-pos":[{"mask-b-to":H()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":H()}],"mask-image-l-to-pos":[{"mask-l-to":H()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":H()}],"mask-image-x-to-pos":[{"mask-x-to":H()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":H()}],"mask-image-y-to-pos":[{"mask-y-to":H()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[le,ne]}],"mask-image-radial-from-pos":[{"mask-radial-from":H()}],"mask-image-radial-to-pos":[{"mask-radial-to":H()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"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":P()}],"mask-image-conic-pos":[{"mask-conic":[be]}],"mask-image-conic-from-pos":[{"mask-conic-from":H()}],"mask-image-conic-to-pos":[{"mask-conic-to":H()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:X()}],"mask-repeat":[{mask:ue()}],"mask-size":[{mask:ee()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",le,ne]}],filter:[{filter:["","none",le,ne]}],blur:[{blur:U()}],brightness:[{brightness:[be,le,ne]}],contrast:[{contrast:[be,le,ne]}],"drop-shadow":[{"drop-shadow":["","none",v,qo,No]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:["",be,le,ne]}],"hue-rotate":[{"hue-rotate":[be,le,ne]}],invert:[{invert:["",be,le,ne]}],saturate:[{saturate:[be,le,ne]}],sepia:[{sepia:["",be,le,ne]}],"backdrop-filter":[{"backdrop-filter":["","none",le,ne]}],"backdrop-blur":[{"backdrop-blur":U()}],"backdrop-brightness":[{"backdrop-brightness":[be,le,ne]}],"backdrop-contrast":[{"backdrop-contrast":[be,le,ne]}],"backdrop-grayscale":[{"backdrop-grayscale":["",be,le,ne]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[be,le,ne]}],"backdrop-invert":[{"backdrop-invert":["",be,le,ne]}],"backdrop-opacity":[{"backdrop-opacity":[be,le,ne]}],"backdrop-saturate":[{"backdrop-saturate":[be,le,ne]}],"backdrop-sepia":[{"backdrop-sepia":["",be,le,ne]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",le,ne]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[be,"initial",le,ne]}],ease:[{ease:["linear","initial",b,le,ne]}],delay:[{delay:[be,le,ne]}],animate:[{animate:["none",x,le,ne]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,le,ne]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:Y()}],"rotate-x":[{"rotate-x":Y()}],"rotate-y":[{"rotate-y":Y()}],"rotate-z":[{"rotate-z":Y()}],scale:[{scale:Z()}],"scale-x":[{"scale-x":Z()}],"scale-y":[{"scale-y":Z()}],"scale-z":[{"scale-z":Z()}],"scale-3d":["scale-3d"],skew:[{skew:ae()}],"skew-x":[{"skew-x":ae()}],"skew-y":[{"skew-y":ae()}],transform:[{transform:[le,ne,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:fe()}],"translate-x":[{"translate-x":fe()}],"translate-y":[{"translate-y":fe()}],"translate-z":[{"translate-z":fe()}],"translate-none":["translate-none"],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}],"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",le,ne]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mbs":[{"scroll-mbs":S()}],"scroll-mbe":[{"scroll-mbe":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pbs":[{"scroll-pbs":S()}],"scroll-pbe":[{"scroll-pbe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",le,ne]}],fill:[{fill:["none",...F()]}],"stroke-w":[{stroke:[be,zt,ot,ma]}],stroke:[{stroke:["none",...F()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},sv=Lp(nv);class lt{static instance;constructor(){}static getInstance(){return lt.instance||(lt.instance=new lt),lt.instance}getRootFontSize(){if(typeof document>"u")return 16;const r=parseFloat(getComputedStyle(document.documentElement).fontSize);return isNaN(r)?16:r}parseValue(r){const t=r.match(/^(-?\d+(?:\.\d+)?)([a-z%]*)$/i);if(!t)throw new Error(`Invalid CSS value: ${r}`);const o=parseFloat(t[1]),n=t[2].toLowerCase()||"";return{value:o,unit:n}}convertToPx(r,t={}){if(typeof r=="number")return r;const o=String(r).trim();if(!o)return 0;if(o.endsWith("px"))return parseFloat(o);const{value:n,unit:s}=this.parseValue(o);switch(s){case"rem":return n*(t.fontSizeBase||this.getRootFontSize());case"em":if(!t.contextElement)throw new Error("contextElement is required for em unit conversion");const i=parseFloat(getComputedStyle(t.contextElement.parentElement||document.documentElement).fontSize);return n*i;case"%":if(!t.parentSize)throw new Error("parentSize is required for percentage conversion");const l=t.parentSize.width||100;return n/100*l;case"vw":const a=t.viewportWidth||(typeof window<"u"?window.innerWidth:1920);return n/100*a;case"vh":const d=t.viewportHeight||(typeof window<"u"?window.innerHeight:1080);return n/100*d;case"vmin":const f=t.viewportWidth||window.innerWidth,m=t.viewportHeight||window.innerHeight,p=Math.min(f,m);return n/100*p;case"vmax":const v=t.viewportWidth||window.innerWidth,g=t.viewportHeight||window.innerHeight,h=Math.max(v,g);return n/100*h;case"cm":return n*37.795;case"mm":return n*3.7795;case"in":return n*96;case"pt":return n*1.3333;case"pc":return n*16;case"":return n;default:throw new Error(`Unsupported unit: ${s}`)}}convertMultipleToPx(r,t){const o={};for(const[n,s]of Object.entries(r))try{o[n]=this.convertToPx(s,t)}catch(i){console.warn(`Failed to convert ${n}: ${s}`,i),o[n]=typeof s=="number"?s:0}return o}}function R(...e){return sv(Pu(e))}const Ei={mode:"light",colors:{background:"hsl(0 0% 100%)",foreground:"hsl(222.2 84% 4.9%)",surface:"hsl(0 0% 100%)",surfaceForeground:"hsl(222.2 84% 4.9%)",surfaceMuted:"hsl(210 40% 98%)",muted:"hsl(210 40% 96.1%)",mutedForeground:"hsl(215.4 16.3% 46.9%)",border:"hsl(214.3 31.8% 91.4%)",input:"hsl(214.3 31.8% 91.4%)",ring:"hsl(221.2 83.2% 53.3% / 0.24)",primary:"hsl(221.2 83.2% 53.3%)",primaryForeground:"hsl(210 40% 98%)",primaryHover:"hsl(224.3 76.3% 48%)",secondary:"hsl(187 92% 42%)",secondaryForeground:"hsl(210 40% 98%)",secondaryHover:"hsl(188.7 94.5% 36.5%)",accent:"hsl(210 40% 96.1%)",accentForeground:"hsl(222.2 47.4% 11.2%)",accentHover:"hsl(210 40% 92%)",info:"hsl(221.2 83.2% 53.3%)",infoForeground:"hsl(210 40% 98%)",success:"hsl(142.1 70.6% 45.3%)",successForeground:"hsl(0 0% 100%)",warning:"hsl(38 92% 50%)",warningForeground:"hsl(0 0% 100%)",danger:"hsl(0 84.2% 60.2%)",dangerForeground:"hsl(210 40% 98%)",overlay:"rgb(0 0 0 / 45%)",inverse:"hsl(222.2 47.4% 11.2%)",inverseForeground:"hsl(210 40% 98%)"},radii:{xs:"0.125rem",sm:"0.25rem",md:"0.5rem",lg:"0.75rem",xl:"1rem",full:"9999px"},shadows:{xs:"0 1px 2px rgb(15 23 42 / 8%)",sm:"0 1px 3px rgb(15 23 42 / 10%), 0 1px 2px rgb(15 23 42 / 6%)",md:"0 8px 22px rgb(15 23 42 / 12%), 0 2px 6px rgb(15 23 42 / 8%)",lg:"0 14px 34px rgb(15 23 42 / 12%), 0 3px 10px rgb(15 23 42 / 8%)",xl:"0 24px 60px rgb(15 23 42 / 18%)",popover:"0 10px 30px rgb(15 23 42 / 12%), 0 2px 8px rgb(15 23 42 / 8%)",modal:"0 24px 72px rgb(15 23 42 / 22%)"},zIndex:{dropdown:50,sticky:100,drawer:1200,modal:1300,notification:10002,toast:10001}},Fu=St(Ei,{mode:"dark",colors:{background:"#020817",foreground:"#f8fafc",surface:"#020817",surfaceForeground:"#f8fafc",surfaceMuted:"#1e293b",muted:"#1e293b",mutedForeground:"#94a3b8",border:"#1e293b",input:"#1e293b",ring:"#cbd5e1",primary:"hsl(217.2 91.2% 59.8%)",primaryForeground:"hsl(222.2 47.4% 11.2%)",primaryHover:"hsl(213.1 93.9% 67.8%)",secondary:"hsl(187 92% 42%)",secondaryForeground:"#f8fafc",secondaryHover:"hsl(188.7 94.5% 36.5%)",accent:"hsl(217.2 32.6% 17.5%)",accentForeground:"#f8fafc",accentHover:"hsl(215 27.9% 16.9%)",overlay:"rgb(0 0 0 / 62%)",inverse:"#f8fafc",inverseForeground:"#0f172a"}}),Bu=u.createContext({});function va(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function St(e,r){if(!r)return e;const t={...e};for(const[o,n]of Object.entries(r)){const s=t[o];t[o]=va(s)&&va(n)?St(s,n):n}return t}function iv(e){return e==="dark"?Fu:Ei}function lv(e){return e}function Ri(){return u.useContext(Bu)}function $u(e){const r=e,t=r.colors??{},o=r.radii??{},n=r.shadows??{},s=r.zIndex??{},i={"--ldkj-color-background":t.background,"--ldkj-color-foreground":t.foreground,"--ldkj-color-surface":t.surface,"--ldkj-color-surface-foreground":t.surfaceForeground,"--ldkj-color-surface-muted":t.surfaceMuted,"--ldkj-color-muted":t.muted,"--ldkj-color-muted-foreground":t.mutedForeground,"--ldkj-color-border":t.border,"--ldkj-color-input":t.input,"--ldkj-color-ring":t.ring,"--ldkj-color-primary":t.primary,"--ldkj-color-primary-foreground":t.primaryForeground,"--ldkj-color-primary-hover":t.primaryHover,"--ldkj-color-secondary":t.secondary,"--ldkj-color-secondary-foreground":t.secondaryForeground,"--ldkj-color-secondary-hover":t.secondaryHover,"--ldkj-color-accent":t.accent,"--ldkj-color-accent-foreground":t.accentForeground,"--ldkj-color-accent-hover":t.accentHover,"--ldkj-color-info":t.info,"--ldkj-color-info-foreground":t.infoForeground,"--ldkj-color-success":t.success,"--ldkj-color-success-foreground":t.successForeground,"--ldkj-color-warning":t.warning,"--ldkj-color-warning-foreground":t.warningForeground,"--ldkj-color-danger":t.danger,"--ldkj-color-danger-foreground":t.dangerForeground,"--ldkj-color-overlay":t.overlay,"--ldkj-color-inverse":t.inverse,"--ldkj-color-inverse-foreground":t.inverseForeground,"--ldkj-radius-xs":o.xs,"--ldkj-radius-sm":o.sm,"--ldkj-radius-md":o.md,"--ldkj-radius-lg":o.lg,"--ldkj-radius-xl":o.xl,"--ldkj-radius-full":o.full,"--ldkj-shadow-xs":n.xs,"--ldkj-shadow-sm":n.sm,"--ldkj-shadow-md":n.md,"--ldkj-shadow-lg":n.lg,"--ldkj-shadow-xl":n.xl,"--ldkj-shadow-popover":n.popover,"--ldkj-shadow-modal":n.modal,"--ldkj-z-dropdown":s.dropdown,"--ldkj-z-sticky":s.sticky,"--ldkj-z-drawer":s.drawer,"--ldkj-z-modal":s.modal,"--ldkj-z-notification":s.notification,"--ldkj-z-toast":s.toast,...r.cssVars};return Object.fromEntries(Object.entries(i).filter(([,l])=>l!==void 0))}function av(e){const[r,t]=u.useState("light");return u.useEffect(()=>{if(!e||typeof window>"u")return;const o=window.matchMedia("(prefers-color-scheme: dark)"),n=()=>t(o.matches?"dark":"light");return n(),o.addEventListener("change",n),()=>o.removeEventListener("change",n)},[e]),r}function Vu({theme:e,mode:r,scope:t="local",children:o}){const n=Ri(),s=r??e?.mode??n.mode??"light",i=av(s==="system"),l=s==="system"?i:s,a=u.useMemo(()=>St(St(iv(l),n),St({mode:l},e)),[n,l,e]),d=u.useMemo(()=>$u(a),[a]);return u.useEffect(()=>{if(t!=="root"||typeof document>"u")return;const f=document.documentElement,m=new Map;for(const[p,v]of Object.entries(d))m.set(p,f.style.getPropertyValue(p)),f.style.setProperty(p,String(v));return f.dataset.ldkjTheme=l,()=>{for(const[p,v]of m)v?f.style.setProperty(p,v):f.style.removeProperty(p);delete f.dataset.ldkjTheme}},[d,l,t]),c.jsx(Bu.Provider,{value:a,children:t==="local"?c.jsx("div",{"data-ldkj-theme":l,style:d,children:o}):o})}function cv({theme:e,children:r}){return c.jsx(Vu,{theme:e,scope:"none",children:r})}function se(){return Ri()}function uv(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}function dv(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),e.nonce!==void 0&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var fv=(function(){function e(t){var o=this;this._insertTag=function(n){var s;o.tags.length===0?o.insertionPoint?s=o.insertionPoint.nextSibling:o.prepend?s=o.container.firstChild:s=o.before:s=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(n,s),o.tags.push(n)},this.isSpeedy=t.speedy===void 0?!0:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var r=e.prototype;return r.hydrate=function(o){o.forEach(this._insertTag)},r.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(dv(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var s=uv(n);try{s.insertRule(o,s.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(o));this.ctr++},r.flush=function(){this.tags.forEach(function(o){var n;return(n=o.parentNode)==null?void 0:n.removeChild(o)}),this.tags=[],this.ctr=0},e})(),Qe="-ms-",tn="-moz-",qe="-webkit-",zu="comm",Ai="rule",Ii="decl",mv="@import",Hu="@keyframes",hv="@layer",pv=Math.abs,xn=String.fromCharCode,vv=Object.assign;function gv(e,r){return We(e,0)^45?(((r<<2^We(e,0))<<2^We(e,1))<<2^We(e,2))<<2^We(e,3):0}function Uu(e){return e.trim()}function xv(e,r){return(e=r.exec(e))?e[0]:e}function Ee(e,r,t){return e.replace(r,t)}function ri(e,r){return e.indexOf(r)}function We(e,r){return e.charCodeAt(r)|0}function no(e,r,t){return e.slice(r,t)}function Cr(e){return e.length}function Ti(e){return e.length}function Eo(e,r){return r.push(e),e}function bv(e,r){return e.map(r).join("")}var bn=1,Rt=1,Wu=0,or=0,De=0,Mt="";function yn(e,r,t,o,n,s,i){return{value:e,root:r,parent:t,type:o,props:n,children:s,line:bn,column:Rt,length:i,return:""}}function Ht(e,r){return vv(yn("",null,null,"",null,null,0),e,{length:-e.length},r)}function yv(){return De}function wv(){return De=or>0?We(Mt,--or):0,Rt--,De===10&&(Rt=1,bn--),De}function ar(){return De=or<Wu?We(Mt,or++):0,Rt++,De===10&&(Rt=1,bn++),De}function Sr(){return We(Mt,or)}function Ho(){return or}function po(e,r){return no(Mt,e,r)}function so(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ku(e){return bn=Rt=1,Wu=Cr(Mt=e),or=0,[]}function Gu(e){return Mt="",e}function Uo(e){return Uu(po(or-1,ti(e===91?e+2:e===40?e+1:e)))}function Pv(e){for(;(De=Sr())&&De<33;)ar();return so(e)>2||so(De)>3?"":" "}function Cv(e,r){for(;--r&&ar()&&!(De<48||De>102||De>57&&De<65||De>70&&De<97););return po(e,Ho()+(r<6&&Sr()==32&&ar()==32))}function ti(e){for(;ar();)switch(De){case e:return or;case 34:case 39:e!==34&&e!==39&&ti(De);break;case 40:e===41&&ti(e);break;case 92:ar();break}return or}function kv(e,r){for(;ar()&&e+De!==57;)if(e+De===84&&Sr()===47)break;return"/*"+po(r,or-1)+"*"+xn(e===47?e:ar())}function jv(e){for(;!so(Sr());)ar();return po(e,or)}function Sv(e){return Gu(Wo("",null,null,null,[""],e=Ku(e),0,[0],e))}function Wo(e,r,t,o,n,s,i,l,a){for(var d=0,f=0,m=i,p=0,v=0,g=0,h=1,y=1,b=1,x=0,w="",P=n,C=s,k=o,j=w;y;)switch(g=x,x=ar()){case 40:if(g!=108&&We(j,m-1)==58){ri(j+=Ee(Uo(x),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:j+=Uo(x);break;case 9:case 10:case 13:case 32:j+=Pv(g);break;case 92:j+=Cv(Ho()-1,7);continue;case 47:switch(Sr()){case 42:case 47:Eo(Nv(kv(ar(),Ho()),r,t),a);break;default:j+="/"}break;case 123*h:l[d++]=Cr(j)*b;case 125*h:case 59:case 0:switch(x){case 0:case 125:y=0;case 59+f:b==-1&&(j=Ee(j,/\f/g,"")),v>0&&Cr(j)-m&&Eo(v>32?xa(j+";",o,t,m-1):xa(Ee(j," ","")+";",o,t,m-2),a);break;case 59:j+=";";default:if(Eo(k=ga(j,r,t,d,f,n,l,w,P=[],C=[],m),s),x===123)if(f===0)Wo(j,r,k,k,P,s,m,l,C);else switch(p===99&&We(j,3)===110?100:p){case 100:case 108:case 109:case 115:Wo(e,k,k,o&&Eo(ga(e,k,k,0,0,n,l,w,n,P=[],m),C),n,C,m,l,o?P:C);break;default:Wo(j,k,k,k,[""],C,0,l,C)}}d=f=v=0,h=b=1,w=j="",m=i;break;case 58:m=1+Cr(j),v=g;default:if(h<1){if(x==123)--h;else if(x==125&&h++==0&&wv()==125)continue}switch(j+=xn(x),x*h){case 38:b=f>0?1:(j+="\f",-1);break;case 44:l[d++]=(Cr(j)-1)*b,b=1;break;case 64:Sr()===45&&(j+=Uo(ar())),p=Sr(),f=m=Cr(w=j+=jv(Ho())),x++;break;case 45:g===45&&Cr(j)==2&&(h=0)}}return s}function ga(e,r,t,o,n,s,i,l,a,d,f){for(var m=n-1,p=n===0?s:[""],v=Ti(p),g=0,h=0,y=0;g<o;++g)for(var b=0,x=no(e,m+1,m=pv(h=i[g])),w=e;b<v;++b)(w=Uu(h>0?p[b]+" "+x:Ee(x,/&\f/g,p[b])))&&(a[y++]=w);return yn(e,r,t,n===0?Ai:l,a,d,f)}function Nv(e,r,t){return yn(e,r,t,zu,xn(yv()),no(e,2,-2),0)}function xa(e,r,t,o){return yn(e,r,t,Ii,no(e,0,o),no(e,o+1,-1),o)}function Nt(e,r){for(var t="",o=Ti(e),n=0;n<o;n++)t+=r(e[n],n,e,r)||"";return t}function qv(e,r,t,o){switch(e.type){case hv:if(e.children.length)break;case mv:case Ii:return e.return=e.return||e.value;case zu:return"";case Hu:return e.return=e.value+"{"+Nt(e.children,o)+"}";case Ai:e.value=e.props.join(",")}return Cr(t=Nt(e.children,o))?e.return=e.value+"{"+t+"}":""}function Ev(e){var r=Ti(e);return function(t,o,n,s){for(var i="",l=0;l<r;l++)i+=e[l](t,o,n,s)||"";return i}}function Rv(e){return function(r){r.root||(r=r.return)&&e(r)}}function Av(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var Iv=function(r,t,o){for(var n=0,s=0;n=s,s=Sr(),n===38&&s===12&&(t[o]=1),!so(s);)ar();return po(r,or)},Tv=function(r,t){var o=-1,n=44;do switch(so(n)){case 0:n===38&&Sr()===12&&(t[o]=1),r[o]+=Iv(or-1,t,o);break;case 2:r[o]+=Uo(n);break;case 4:if(n===44){r[++o]=Sr()===58?"&\f":"",t[o]=r[o].length;break}default:r[o]+=xn(n)}while(n=ar());return r},_v=function(r,t){return Gu(Tv(Ku(r),t))},ba=new WeakMap,Ov=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var t=r.value,o=r.parent,n=r.column===o.column&&r.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(r.props.length===1&&t.charCodeAt(0)!==58&&!ba.get(o))&&!n){ba.set(r,!0);for(var s=[],i=_v(t,s),l=o.props,a=0,d=0;a<i.length;a++)for(var f=0;f<l.length;f++,d++)r.props[d]=s[a]?i[a].replace(/&\f/g,l[f]):l[f]+" "+i[a]}}},Mv=function(r){if(r.type==="decl"){var t=r.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(r.return="",r.value="")}};function Yu(e,r){switch(gv(e,r)){case 5103:return qe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return qe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return qe+e+tn+e+Qe+e+e;case 6828:case 4268:return qe+e+Qe+e+e;case 6165:return qe+e+Qe+"flex-"+e+e;case 5187:return qe+e+Ee(e,/(\w+).+(:[^]+)/,qe+"box-$1$2"+Qe+"flex-$1$2")+e;case 5443:return qe+e+Qe+"flex-item-"+Ee(e,/flex-|-self/,"")+e;case 4675:return qe+e+Qe+"flex-line-pack"+Ee(e,/align-content|flex-|-self/,"")+e;case 5548:return qe+e+Qe+Ee(e,"shrink","negative")+e;case 5292:return qe+e+Qe+Ee(e,"basis","preferred-size")+e;case 6060:return qe+"box-"+Ee(e,"-grow","")+qe+e+Qe+Ee(e,"grow","positive")+e;case 4554:return qe+Ee(e,/([^-])(transform)/g,"$1"+qe+"$2")+e;case 6187:return Ee(Ee(Ee(e,/(zoom-|grab)/,qe+"$1"),/(image-set)/,qe+"$1"),e,"")+e;case 5495:case 3959:return Ee(e,/(image-set\([^]*)/,qe+"$1$`$1");case 4968:return Ee(Ee(e,/(.+:)(flex-)?(.*)/,qe+"box-pack:$3"+Qe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+qe+e+e;case 4095:case 3583:case 4068:case 2532:return Ee(e,/(.+)-inline(.+)/,qe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Cr(e)-1-r>6)switch(We(e,r+1)){case 109:if(We(e,r+4)!==45)break;case 102:return Ee(e,/(.+:)(.+)-([^]+)/,"$1"+qe+"$2-$3$1"+tn+(We(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~ri(e,"stretch")?Yu(Ee(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(We(e,r+1)!==115)break;case 6444:switch(We(e,Cr(e)-3-(~ri(e,"!important")&&10))){case 107:return Ee(e,":",":"+qe)+e;case 101:return Ee(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+qe+(We(e,14)===45?"inline-":"")+"box$3$1"+qe+"$2$3$1"+Qe+"$2box$3")+e}break;case 5936:switch(We(e,r+11)){case 114:return qe+e+Qe+Ee(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return qe+e+Qe+Ee(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return qe+e+Qe+Ee(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return qe+e+Qe+e+e}return e}var Lv=function(r,t,o,n){if(r.length>-1&&!r.return)switch(r.type){case Ii:r.return=Yu(r.value,r.length);break;case Hu:return Nt([Ht(r,{value:Ee(r.value,"@","@"+qe)})],n);case Ai:if(r.length)return bv(r.props,function(s){switch(xv(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Nt([Ht(r,{props:[Ee(s,/:(read-\w+)/,":"+tn+"$1")]})],n);case"::placeholder":return Nt([Ht(r,{props:[Ee(s,/:(plac\w+)/,":"+qe+"input-$1")]}),Ht(r,{props:[Ee(s,/:(plac\w+)/,":"+tn+"$1")]}),Ht(r,{props:[Ee(s,/:(plac\w+)/,Qe+"input-$1")]})],n)}return""})}},Dv=[Lv],Fv=function(r){var t=r.key;if(t==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(h){var y=h.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var n=r.stylisPlugins||Dv,s={},i,l=[];i=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(h){for(var y=h.getAttribute("data-emotion").split(" "),b=1;b<y.length;b++)s[y[b]]=!0;l.push(h)});var a,d=[Ov,Mv];{var f,m=[qv,Rv(function(h){f.insert(h)})],p=Ev(d.concat(n,m)),v=function(y){return Nt(Sv(y),p)};a=function(y,b,x,w){f=x,v(y?y+"{"+b.styles+"}":b.styles),w&&(g.inserted[b.name]=!0)}}var g={key:t,sheet:new fv({key:t,container:i,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:s,registered:{},insert:a};return g.sheet.hydrate(l),g};function Bv(e){for(var r=0,t,o=0,n=e.length;n>=4;++o,n-=4)t=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(n){case 3:r^=(e.charCodeAt(o+2)&255)<<16;case 2:r^=(e.charCodeAt(o+1)&255)<<8;case 1:r^=e.charCodeAt(o)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var $v={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Vv=/[A-Z]|^ms/g,zv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Xu=function(r){return r.charCodeAt(1)===45},ya=function(r){return r!=null&&typeof r!="boolean"},ts=Av(function(e){return Xu(e)?e:e.replace(Vv,"-$&").toLowerCase()}),wa=function(r,t){switch(r){case"animation":case"animationName":if(typeof t=="string")return t.replace(zv,function(o,n,s){return Hr={name:n,styles:s,next:Hr},n})}return $v[r]!==1&&!Xu(r)&&typeof t=="number"&&t!==0?t+"px":t};function on(e,r,t){if(t==null)return"";var o=t;if(o.__emotion_styles!==void 0)return o;switch(typeof t){case"boolean":return"";case"object":{var n=t;if(n.anim===1)return Hr={name:n.name,styles:n.styles,next:Hr},n.name;var s=t;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)Hr={name:i.name,styles:i.styles,next:Hr},i=i.next;var l=s.styles+";";return l}return Hv(e,r,t)}}var a=t;if(r==null)return a;var d=r[a];return d!==void 0?d:a}function Hv(e,r,t){var o="";if(Array.isArray(t))for(var n=0;n<t.length;n++)o+=on(e,r,t[n])+";";else for(var s in t){var i=t[s];if(typeof i!="object"){var l=i;r!=null&&r[l]!==void 0?o+=s+"{"+r[l]+"}":ya(l)&&(o+=ts(s)+":"+wa(s,l)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&(r==null||r[i[0]]===void 0))for(var a=0;a<i.length;a++)ya(i[a])&&(o+=ts(s)+":"+wa(s,i[a])+";");else{var d=on(e,r,i);switch(s){case"animation":case"animationName":{o+=ts(s)+":"+d+";";break}default:o+=s+"{"+d+"}"}}}return o}var Pa=/label:\s*([^\s;{]+)\s*(;|$)/g,Hr;function os(e,r,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,n="";Hr=void 0;var s=e[0];if(s==null||s.raw===void 0)o=!1,n+=on(t,r,s);else{var i=s;n+=i[0]}for(var l=1;l<e.length;l++)if(n+=on(t,r,e[l]),o){var a=s;n+=a[l]}Pa.lastIndex=0;for(var d="",f;(f=Pa.exec(n))!==null;)d+="-"+f[1];var m=Bv(n)+d;return{name:m,styles:n,next:Hr}}function Ju(e,r,t){var o="";return t.split(" ").forEach(function(n){e[n]!==void 0?r.push(e[n]+";"):n&&(o+=n+" ")}),o}var Uv=function(r,t,o){var n=r.key+"-"+t.name;r.registered[n]===void 0&&(r.registered[n]=t.styles)},Wv=function(r,t,o){Uv(r,t);var n=r.key+"-"+t.name;if(r.inserted[t.name]===void 0){var s=t;do r.insert(t===s?"."+n:"",s,r.sheet,!0),s=s.next;while(s!==void 0)}};function Ca(e,r){if(e.inserted[r.name]===void 0)return e.insert("",r,e.sheet,!0)}function ka(e,r,t){var o=[],n=Ju(e,o,t);return o.length<2?t:n+r(o)}var Kv=function(r){var t=Fv(r);t.sheet.speedy=function(l){this.isSpeedy=l},t.compat=!0;var o=function(){for(var a=arguments.length,d=new Array(a),f=0;f<a;f++)d[f]=arguments[f];var m=os(d,t.registered,void 0);return Wv(t,m),t.key+"-"+m.name},n=function(){for(var a=arguments.length,d=new Array(a),f=0;f<a;f++)d[f]=arguments[f];var m=os(d,t.registered),p="animation-"+m.name;return Ca(t,{name:m.name,styles:"@keyframes "+p+"{"+m.styles+"}"}),p},s=function(){for(var a=arguments.length,d=new Array(a),f=0;f<a;f++)d[f]=arguments[f];var m=os(d,t.registered);Ca(t,m)},i=function(){for(var a=arguments.length,d=new Array(a),f=0;f<a;f++)d[f]=arguments[f];return ka(t.registered,o,Gv(d))};return{css:o,cx:i,injectGlobal:s,keyframes:n,hydrate:function(a){a.forEach(function(d){t.inserted[d]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:Ju.bind(null,t.registered),merge:ka.bind(null,t.registered,o)}},Gv=function e(r){for(var t="",o=0;o<r.length;o++){var n=r[o];if(n!=null){var s=void 0;switch(typeof n){case"boolean":break;case"object":{if(Array.isArray(n))s=e(n);else{s="";for(var i in n)n[i]&&i&&(s&&(s+=" "),s+=i)}break}default:s=n}s&&(t&&(t+=" "),t+=s)}}return t},Yv=Kv({key:"css"}),Xv=Yv.css;function Jv(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function oi(e,r,t){if(e){if(typeof e=="function"){oi(e(r),r,t);return}if(Array.isArray(e)){for(const o of e)oi(o,r,t);return}Jv(e)&&t.push(e)}}function Qv(e,r){return!(r==null||typeof r=="object"||Array.isArray(r)||e.startsWith("@")||e.includes("&")||e.includes(":")||e.includes(" ")||e.includes(">")||e.includes("+")||e.includes("~")||e.includes("[")||e.includes(".")||e.includes("#"))}function Zv(e){const r={};for(const[t,o]of Object.entries(e))Qv(t,o)&&(r[t]=o);return r}function re(e,r){const t=[];if(oi(e,r,t),!t.length)return{sxClassName:void 0,sxInlineStyle:void 0};const o=Xv(t),n=t.reduce((s,i)=>({...s,...Zv(i)}),{});return{sxClassName:o,sxInlineStyle:n}}function D(...e){const r=e.reduce((t,o)=>o?{...t,...o}:t,{});return Object.keys(r).length?r:void 0}function vr(e){const{component:r,variant:t,size:o,rounded:n,shadow:s,bounce:i,splash:l,sx:a,style:d,className:f,class:m,...p}=e,v=r??"button",{roundedPreset:g,roundedStyle:h}=ht(n),{shadowPreset:y,shadowStyle:b}=ho(s),x=se(),{sxClassName:w,sxInlineStyle:P}=re(a,x);return c.jsx(v,{className:R(ku({variant:t,size:o,rounded:g,shadow:y,bounce:i,splash:l}),w,f,m),style:D(d,h,b,P),...p})}vr.displayName="Button";const ns={xs:"h-8 w-8 text-xs",sm:"h-10 w-10 text-sm",md:"h-12 w-12 text-base",lg:"h-14 w-14 text-lg",xl:"h-16 w-16 text-xl"};function eg(e){if(e===void 0)return{sizeClassName:ns.md};if(typeof e=="string"&&e in ns)return{sizeClassName:ns[e]};const r=typeof e=="number"?`${e}px`:e;return{sizeStyle:{width:r,height:r}}}function nn(e){const{component:r,size:t="md",position:o="fixed",left:n,top:s,right:i=16,bottom:l=16,zIndex:a=10,rounded:d="full",className:f,style:m,...p}=e,{sizeClassName:v,sizeStyle:g}=eg(t),h={...p,component:r,size:"icon",rounded:d,className:R("shrink-0 overflow-hidden p-0",v,f),style:D({position:o,left:n,top:s,right:i,bottom:l,zIndex:a},g,m)};return c.jsx(vr,{...h})}nn.displayName="GhostButton";const Qu="__LDKJ_GHOST_BUTTON_GROUP_ITEM__";function _i(e){return null}_i.displayName="GhostButtonGroup.Item";_i[Qu]=!0;function rg(e){return!!(e&&typeof e=="function"&&e[Qu]===!0)}function tg(e){return typeof e=="number"?`${e}px`:e}function ja(e,r){return e.includes(r)}function og(e){const r=[],t=[];return u.Children.forEach(e,o=>{if(u.isValidElement(o)&&rg(o.type)){t.push(o);return}r.push(o)}),{triggerChildren:r,itemChildren:t}}function ng(e,r){switch(e){case"down":return{position:"absolute",top:`calc(100% + ${r})`,right:0,display:"flex",flexDirection:"column",alignItems:"flex-end",gap:r};case"left":return{position:"absolute",right:`calc(100% + ${r})`,top:0,display:"flex",flexDirection:"row-reverse",alignItems:"center",gap:r};case"right":return{position:"absolute",left:`calc(100% + ${r})`,top:0,display:"flex",flexDirection:"row",alignItems:"center",gap:r};default:return{position:"absolute",bottom:`calc(100% + ${r})`,right:0,display:"flex",flexDirection:"column-reverse",alignItems:"flex-end",gap:r}}}function sg(e){switch(e){case"down":return"translateY(-16px) scale(0.78)";case"left":return"translateX(16px) scale(0.78)";case"right":return"translateX(-16px) scale(0.78)";default:return"translateY(16px) scale(0.78)"}}function ig(e,r,t,o){const n=r==="open",s=t*85,i=Math.max(o-t-1,0)*65;return{opacity:n?1:0,transform:n?"translate3d(0, 0, 0) scale(1)":sg(e),transitionProperty:"opacity, transform",transitionDuration:n?"380ms":"260ms",transitionTimingFunction:n?"cubic-bezier(0.16, 1, 0.3, 1)":"cubic-bezier(0.4, 0, 1, 1)",transitionDelay:`${n?s:i}ms`,willChange:"opacity, transform"}}function lg(e){const{trigger:r="click",direction:t="up",gap:o=12,items:n,children:s,position:i="fixed",left:l,top:a,right:d=16,bottom:f=16,zIndex:m=10,onClick:p,...v}=e,g=Array.isArray(r)?r:[r],h=tg(o),{triggerChildren:y,itemChildren:b}=og(s),x=[...n??[],...b.map(T=>({...T.props,key:T.key??void 0}))],[w,P]=u.useState(!1),[C,k]=u.useState("closed"),j=u.useRef(null),S=u.useRef(null),N=y.length>0?c.jsx(c.Fragment,{children:y}):void 0,A=ja(g,"hover"),q=ja(g,"click"),E=Math.max(x.length-1,0)*65,I=C!=="closed";u.useEffect(()=>{if(w){if(C==="open"||C==="preparing")return;k("preparing");return}if(C==="closed"||C==="exiting")return;k("exiting");const T=window.setTimeout(()=>{k("closed")},E);return()=>window.clearTimeout(T)},[E,C,w]),u.useLayoutEffect(()=>{if(C!=="preparing")return;S.current?.offsetHeight;const T=window.requestAnimationFrame(()=>{k($=>$==="preparing"?"open":$)});return()=>window.cancelAnimationFrame(T)},[C]),u.useEffect(()=>{if(!w||!q)return;const T=M=>{const W=M.target;W instanceof Node&&(j.current?.contains(W)||P(!1))},$=M=>{M.key==="Escape"&&P(!1)};return document.addEventListener("pointerdown",T),document.addEventListener("keydown",$),()=>{document.removeEventListener("pointerdown",T),document.removeEventListener("keydown",$)}},[w,q]);const O={...v,position:"static",right:void 0,bottom:void 0,left:void 0,top:void 0,zIndex:m,onClick:T=>{q&&P($=>!$),p?.(T)},"aria-expanded":w,"aria-haspopup":"menu",children:N};return c.jsx("div",{ref:j,className:R("inline-flex w-fit"),style:{position:i,left:l,top:a,right:d,bottom:f,zIndex:m},onMouseEnter:A?()=>P(!0):void 0,onMouseLeave:A?()=>P(!1):void 0,children:c.jsxs("div",{className:R("relative inline-flex w-fit"),children:[I&&x.length>0?c.jsx("div",{ref:S,style:{...ng(t,h),pointerEvents:C==="open"?"auto":"none"},children:x.map((T,$)=>{const{itemKey:M,onClick:W,...F}=T;return c.jsx("div",{style:ig(t,C,$,x.length),children:c.jsx(nn,{position:"static",...F,onClick:X=>{W?.(X),P(!1)}})},M??T.key??$)})}):null,c.jsx(nn,{...O})]})})}const Zu=Object.assign(lg,{Item:_i});Zu.displayName="GhostButtonGroup";const Oi={account_balance:{outlined:()=>Promise.resolve().then(()=>require("./icons/account_balance-CUtdZSEP.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/account_balance-DgmFjt_z.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/account_balance-DeohA2h8.cjs"))},account_box:{outlined:()=>Promise.resolve().then(()=>require("./icons/account_box-ByaMMQqG.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/account_box-D7sM1NTh.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/account_box-ajw070dx.cjs"))},account_circle:{outlined:()=>Promise.resolve().then(()=>require("./icons/account_circle-o5PrByrE.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/account_circle-C5KLCF80.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/account_circle-BMRVTtpY.cjs"))},add:{outlined:()=>Promise.resolve().then(()=>require("./icons/add-BzODBN57.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/add-Bj-fRqEw.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/add-Dpbpem6v.cjs"))},add_circle:{outlined:()=>Promise.resolve().then(()=>require("./icons/add_circle-BEfQaNTw.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/add_circle-Pz6hbZr2.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/add_circle-Bs6fLIPH.cjs"))},admin_panel_settings:{outlined:()=>Promise.resolve().then(()=>require("./icons/admin_panel_settings-BbSsx_KB.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/admin_panel_settings-Cq6cV6Iq.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/admin_panel_settings-DcqNfgoM.cjs"))},air:{outlined:()=>Promise.resolve().then(()=>require("./icons/air-BF03LOQ-.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/air-i_rK7JxO.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/air-OSLzaxxp.cjs"))},alarm:{outlined:()=>Promise.resolve().then(()=>require("./icons/alarm-CCYlrdau.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/alarm-DeO1fh0q.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/alarm-BxyCb1Qv.cjs"))},apps:{outlined:()=>Promise.resolve().then(()=>require("./icons/apps-fIilHLYB.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/apps-BdFHXOsp.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/apps-C9ltbSUJ.cjs"))},archive:{outlined:()=>Promise.resolve().then(()=>require("./icons/archive-7V65cuRY.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/archive-er16TWXw.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/archive-Ckz6yJQF.cjs"))},arrow_back:{outlined:()=>Promise.resolve().then(()=>require("./icons/arrow_back-XdtHQyqo.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/arrow_back-DaOcsNP6.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/arrow_back-g66EkDwT.cjs"))},arrow_downward:{outlined:()=>Promise.resolve().then(()=>require("./icons/arrow_downward-BBbhvRa_.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/arrow_downward-CYCI-w3L.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/arrow_downward-DkW9HR00.cjs"))},arrow_forward:{outlined:()=>Promise.resolve().then(()=>require("./icons/arrow_forward-NKtJV9mD.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/arrow_forward-B54VLaZC.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/arrow_forward-hLdyTARF.cjs"))},arrow_upward:{outlined:()=>Promise.resolve().then(()=>require("./icons/arrow_upward-GAIOJvM7.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/arrow_upward-BtxjFwlX.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/arrow_upward-CBdxpNSC.cjs"))},article:{outlined:()=>Promise.resolve().then(()=>require("./icons/article-B6nzs-qa.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/article-CGpbLCcR.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/article-CDZ6_tTi.cjs"))},attach_file:{outlined:()=>Promise.resolve().then(()=>require("./icons/attach_file-DyFViTnA.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/attach_file-RLWNGDyR.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/attach_file-CNA3xvqM.cjs"))},attach_money:{outlined:()=>Promise.resolve().then(()=>require("./icons/attach_money-DQPXCGZk.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/attach_money-CfNoy99Y.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/attach_money-JvxHPUl2.cjs"))},backspace:{outlined:()=>Promise.resolve().then(()=>require("./icons/backspace-JswWFvx7.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/backspace-DDu6Afit.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/backspace-pPWKZ2Y2.cjs"))},badge:{outlined:()=>Promise.resolve().then(()=>require("./icons/badge-Cc8lmWgw.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/badge-Btf6MXDZ.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/badge-BXrUAN1m.cjs"))},block:{outlined:()=>Promise.resolve().then(()=>require("./icons/block-ByxkMrvC.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/block-C8EIO6vB.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/block-D7pQpqds.cjs"))},bolt:{outlined:()=>Promise.resolve().then(()=>require("./icons/bolt-CUZki2JV.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/bolt-A-Z_tqr9.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/bolt-BKR3IpJG.cjs"))},book:{outlined:()=>Promise.resolve().then(()=>require("./icons/book-B_vtXpwq.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/book-BvIH3Qcj.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/book-s5W9WL4N.cjs"))},bookmark:{outlined:()=>Promise.resolve().then(()=>require("./icons/bookmark-BJdOWq2Y.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/bookmark-BOsIEQfb.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/bookmark-CY6PuZ4w.cjs"))},bookmarks:{outlined:()=>Promise.resolve().then(()=>require("./icons/bookmarks-CBfrFEQH.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/bookmarks-C1k5ldLa.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/bookmarks-DbGfzxJk.cjs"))},brush:{outlined:()=>Promise.resolve().then(()=>require("./icons/brush-DqhWkOyP.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/brush-CWCZYG4N.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/brush-oeiVL9Xk.cjs"))},bug_report:{outlined:()=>Promise.resolve().then(()=>require("./icons/bug_report-Dgg4ML7C.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/bug_report-DqBzy5Wd.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/bug_report-FgdRro3E.cjs"))},build:{outlined:()=>Promise.resolve().then(()=>require("./icons/build-DzKk0FwR.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/build-Bg6u0xY0.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/build-fQP-NxA6.cjs"))},calendar_month:{outlined:()=>Promise.resolve().then(()=>require("./icons/calendar_month-BuGnlxNv.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/calendar_month-CWa__6wz.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/calendar_month-BX-upKoW.cjs"))},calendar_today:{outlined:()=>Promise.resolve().then(()=>require("./icons/calendar_today-dvqmK8Mt.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/calendar_today-BXLVEJdq.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/calendar_today-CPs1WBvs.cjs"))},call:{outlined:()=>Promise.resolve().then(()=>require("./icons/call-ay175YDV.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/call-ftvfgcxN.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/call-wKD6ISPV.cjs"))},call_end:{outlined:()=>Promise.resolve().then(()=>require("./icons/call_end-DwGpra_h.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/call_end-Bx5pJnkm.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/call_end-WoQXHoTY.cjs"))},call_made:{outlined:()=>Promise.resolve().then(()=>require("./icons/call_made-BKy-0N_5.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/call_made-1di_yrkH.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/call_made-nzO_qhRa.cjs"))},call_received:{outlined:()=>Promise.resolve().then(()=>require("./icons/call_received-DiGMt09V.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/call_received-kDCUptdw.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/call_received-svsjpWZB.cjs"))},campaign:{outlined:()=>Promise.resolve().then(()=>require("./icons/campaign-CO4rU-NI.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/campaign-C7gu21Yl.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/campaign-Ci9P9bD0.cjs"))},cancel:{outlined:()=>Promise.resolve().then(()=>require("./icons/cancel-syDzrIhz.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/cancel-Be4ComkT.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/cancel-BswRxQQC.cjs"))},category:{outlined:()=>Promise.resolve().then(()=>require("./icons/category-DLWu2IoJ.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/category-lpNWuhQx.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/category-CnrWZz9Q.cjs"))},chat:{outlined:()=>Promise.resolve().then(()=>require("./icons/chat-DThyMw25.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/chat-DVBtcmFJ.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/chat-BIjxgeKo.cjs"))},chat_bubble:{outlined:()=>Promise.resolve().then(()=>require("./icons/chat_bubble-B7awcvGP.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/chat_bubble-CPB6ZiCC.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/chat_bubble-mZGoeI3I.cjs"))},check:{outlined:()=>Promise.resolve().then(()=>require("./icons/check-C4gcqg9A.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/check-CDtP9Bf4.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/check-BQ20Asfd.cjs"))},check_box:{outlined:()=>Promise.resolve().then(()=>require("./icons/check_box-cXMcUfzz.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/check_box-yboW6saa.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/check_box-DD0D5gpB.cjs"))},check_box_outline_blank:{outlined:()=>Promise.resolve().then(()=>require("./icons/check_box_outline_blank-CIKY0Ccw.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/check_box_outline_blank-B0K7VEOf.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/check_box_outline_blank-DPZa0VCl.cjs"))},check_circle:{outlined:()=>Promise.resolve().then(()=>require("./icons/check_circle-DTQ1d7Oc.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/check_circle-BVUl3Gb5.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/check_circle-BYYx6u5r.cjs"))},chevron_left:{outlined:()=>Promise.resolve().then(()=>require("./icons/chevron_left-Yec8UECM.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/chevron_left-DE3pHCnM.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/chevron_left-BPHI54rl.cjs"))},chevron_right:{outlined:()=>Promise.resolve().then(()=>require("./icons/chevron_right-BkGOM5fi.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/chevron_right-CFTu2vbL.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/chevron_right-DpzjvNsP.cjs"))},child_care:{outlined:()=>Promise.resolve().then(()=>require("./icons/child_care-nZB2N3YA.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/child_care-CIQ9k-f9.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/child_care-CB79ivb8.cjs"))},circle:{outlined:()=>Promise.resolve().then(()=>require("./icons/circle-DS_HMXBR.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/circle-BPX6153P.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/circle-D8ImCYQn.cjs"))},close:{outlined:()=>Promise.resolve().then(()=>require("./icons/close-C71jnCsP.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/close-DAORXT73.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/close-08-8sBl_.cjs"))},cloud:{outlined:()=>Promise.resolve().then(()=>require("./icons/cloud-aGhF0P8X.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/cloud-DoSYW56S.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/cloud-CWTEjqrC.cjs"))},cloud_download:{outlined:()=>Promise.resolve().then(()=>require("./icons/cloud_download-Cr0f1A7w.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/cloud_download-BSgA6nE3.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/cloud_download-B46UbXM2.cjs"))},cloud_upload:{outlined:()=>Promise.resolve().then(()=>require("./icons/cloud_upload-CEBNsRxa.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/cloud_upload-BxrCa7P9.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/cloud_upload-C8JjVx81.cjs"))},code:{outlined:()=>Promise.resolve().then(()=>require("./icons/code-6RkiCXwP.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/code-DuM9qskR.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/code-oJW84q_m.cjs"))},comment:{outlined:()=>Promise.resolve().then(()=>require("./icons/comment-O_bHBTmR.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/comment-jfrDsQcR.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/comment-D2ad_q2m.cjs"))},compare:{outlined:()=>Promise.resolve().then(()=>require("./icons/compare-CUzBU-28.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/compare-DdMgRs9f.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/compare-DFR9iUjQ.cjs"))},contacts:{outlined:()=>Promise.resolve().then(()=>require("./icons/contacts-4hDX5byG.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/contacts-Cb5xhSPR.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/contacts-GfLHJBAS.cjs"))},content_copy:{outlined:()=>Promise.resolve().then(()=>require("./icons/content_copy-Dm6tlywE.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/content_copy-CDA8g8Ce.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/content_copy-B295-Nv3.cjs"))},content_paste:{outlined:()=>Promise.resolve().then(()=>require("./icons/content_paste-CoehqCUw.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/content_paste-D0OJlLhs.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/content_paste-CAAddckI.cjs"))},copyright:{outlined:()=>Promise.resolve().then(()=>require("./icons/copyright-CmWUWze4.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/copyright-B4gtWEWc.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/copyright-sqUhIT0W.cjs"))},credit_card:{outlined:()=>Promise.resolve().then(()=>require("./icons/credit_card-B_DF2PK1.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/credit_card-Ch3__Lys.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/credit_card-_iyk8SdT.cjs"))},credit_score:{outlined:()=>Promise.resolve().then(()=>require("./icons/credit_score-BTAUUWvv.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/credit_score-RCK9vD6_.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/credit_score-BUo_aYKm.cjs"))},crop:{outlined:()=>Promise.resolve().then(()=>require("./icons/crop-GyzEL4nJ.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/crop-CLGpqAKW.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/crop-Ck5Oq93S.cjs"))},dangerous:{outlined:()=>Promise.resolve().then(()=>require("./icons/dangerous-BHX_WAG0.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/dangerous-VVnFWj0T.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/dangerous-CyWhR8GS.cjs"))},dark_mode:{outlined:()=>Promise.resolve().then(()=>require("./icons/dark_mode-CVQYfD9N.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/dark_mode-Cna-h-8z.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/dark_mode-BApz1m5T.cjs"))},dashboard:{outlined:()=>Promise.resolve().then(()=>require("./icons/dashboard-y4JXkAlZ.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/dashboard-yvpXQGFe.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/dashboard-qxOP92mW.cjs"))},data_usage:{outlined:()=>Promise.resolve().then(()=>require("./icons/data_usage-BFgNM46G.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/data_usage-DF86vx6L.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/data_usage-B69lbac5.cjs"))},delete:{outlined:()=>Promise.resolve().then(()=>require("./icons/delete-C0t5Pp8-.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/delete-CEMqbUF0.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/delete-xENv8YmX.cjs"))},delete_forever:{outlined:()=>Promise.resolve().then(()=>require("./icons/delete_forever-BE5StSao.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/delete_forever-DwtLSgzF.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/delete_forever-B8PUopIK.cjs"))},density_medium:{outlined:()=>Promise.resolve().then(()=>require("./icons/density_medium-BFy-8lbn.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/density_medium-Bze5BcMr.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/density_medium-BoavJs4H.cjs"))},description:{outlined:()=>Promise.resolve().then(()=>require("./icons/description-SQPUh5qC.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/description-CxGEPSh9.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/description-CMHCszzJ.cjs"))},desktop_windows:{outlined:()=>Promise.resolve().then(()=>require("./icons/desktop_windows-DOHf23Xr.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/desktop_windows-rsIMFxNM.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/desktop_windows-ft9l6Jnn.cjs"))},devices:{outlined:()=>Promise.resolve().then(()=>require("./icons/devices-D1QkNOdg.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/devices-Cs6AyB_p.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/devices-CZuDnQ7B.cjs"))},directions:{outlined:()=>Promise.resolve().then(()=>require("./icons/directions-CV3aYvJw.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/directions-Cq30pjX9.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/directions-BYfIHQ8Z.cjs"))},directions_bus:{outlined:()=>Promise.resolve().then(()=>require("./icons/directions_bus-CznPtArU.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/directions_bus-ChCQ0VJv.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/directions_bus-2Bu4yiHM.cjs"))},directions_car:{outlined:()=>Promise.resolve().then(()=>require("./icons/directions_car-DIRBYtBd.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/directions_car-Ty3h4aoe.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/directions_car-dxAiBgAE.cjs"))},dns:{outlined:()=>Promise.resolve().then(()=>require("./icons/dns-BrL6vlto.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/dns-DQC01d17.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/dns-BxMrX-Qx.cjs"))},download:{outlined:()=>Promise.resolve().then(()=>require("./icons/download-BfEc7ftL.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/download-oQO1wMDQ.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/download-BbGaNWaF.cjs"))},download_done:{outlined:()=>Promise.resolve().then(()=>require("./icons/download_done-BF_KMt21.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/download_done-mY_IvV91.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/download_done-QJO7z-t7.cjs"))},drag_handle:{outlined:()=>Promise.resolve().then(()=>require("./icons/drag_handle-B85eeiSW.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/drag_handle-CZy0Muds.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/drag_handle-DIHjJaP4.cjs"))},drive_file_move:{outlined:()=>Promise.resolve().then(()=>require("./icons/drive_file_move-CyquxnGI.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/drive_file_move-B7Ib41Bg.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/drive_file_move-BzZBDz_T.cjs"))},eco:{outlined:()=>Promise.resolve().then(()=>require("./icons/eco-BQpR7DfB.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/eco-BfhARi85.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/eco-Dti-gVb_.cjs"))},edit:{outlined:()=>Promise.resolve().then(()=>require("./icons/edit-ChFc7I7P.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/edit-BeJgtsta.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/edit-T1-rErag.cjs"))},edit_attributes:{outlined:()=>Promise.resolve().then(()=>require("./icons/edit_attributes-6JWFwGzl.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/edit_attributes-B1Ctn3RI.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/edit_attributes-BFsYoU1-.cjs"))},edit_note:{outlined:()=>Promise.resolve().then(()=>require("./icons/edit_note-Da_iOdrc.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/edit_note-rScMJnJT.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/edit_note--rw8SVa_.cjs"))},eject:{outlined:()=>Promise.resolve().then(()=>require("./icons/eject-C_8lRJPy.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/eject-DTQWDrIz.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/eject-CtLNSegr.cjs"))},elderly:{outlined:()=>Promise.resolve().then(()=>require("./icons/elderly-Ceh2P7r-.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/elderly-CcU85K06.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/elderly-DAtLwTFA.cjs"))},engineering:{outlined:()=>Promise.resolve().then(()=>require("./icons/engineering-BkYJD_Or.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/engineering-1o10EfNE.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/engineering-JuMPs6Y3.cjs"))},equalizer:{outlined:()=>Promise.resolve().then(()=>require("./icons/equalizer-efzGc3fN.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/equalizer-DJkAwv6t.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/equalizer-CBRz_t0n.cjs"))},error:{outlined:()=>Promise.resolve().then(()=>require("./icons/error-DhIFJDit.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/error-DzScQD-0.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/error-BSxnVrjF.cjs"))},event:{outlined:()=>Promise.resolve().then(()=>require("./icons/event-CLOpMWNS.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/event-BO8hSbhH.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/event-C0zGLwjQ.cjs"))},event_available:{outlined:()=>Promise.resolve().then(()=>require("./icons/event_available-D39f0o2z.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/event_available-DwjeOvX9.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/event_available-DMl5IYfi.cjs"))},event_busy:{outlined:()=>Promise.resolve().then(()=>require("./icons/event_busy-DLhs3cqk.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/event_busy-CO5GomJ1.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/event_busy-BsbAdBc3.cjs"))},exit_to_app:{outlined:()=>Promise.resolve().then(()=>require("./icons/exit_to_app-4ELlyKP5.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/exit_to_app-Bp3DQYOi.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/exit_to_app-BPsYFa6S.cjs"))},expand:{outlined:()=>Promise.resolve().then(()=>require("./icons/expand-BoSPrbcp.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/expand-CADHXT-_.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/expand-Dy3_OGRo.cjs"))},explore:{outlined:()=>Promise.resolve().then(()=>require("./icons/explore-CiiSPHhR.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/explore-DAuehy4i.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/explore-CWVUOfFd.cjs"))},explore_off:{outlined:()=>Promise.resolve().then(()=>require("./icons/explore_off-BR_xU7jX.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/explore_off-Bsy6PdBD.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/explore_off-C8Pin35x.cjs"))},extension:{outlined:()=>Promise.resolve().then(()=>require("./icons/extension-Bg6YhsUZ.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/extension-B2Ud25CS.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/extension-Cj_PMbmr.cjs"))},face:{outlined:()=>Promise.resolve().then(()=>require("./icons/face-B0mI3FAR.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/face-Dx3-uvsR.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/face-nfbmNSRn.cjs"))},fast_forward:{outlined:()=>Promise.resolve().then(()=>require("./icons/fast_forward-cSegXWFV.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/fast_forward-B0y9Ca2u.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/fast_forward-BMw4eJA1.cjs"))},fast_rewind:{outlined:()=>Promise.resolve().then(()=>require("./icons/fast_rewind-ClQr4UqL.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/fast_rewind-BErJGjyk.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/fast_rewind-CmURbjb8.cjs"))},favorite:{outlined:()=>Promise.resolve().then(()=>require("./icons/favorite-C7ps1Maq.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/favorite-3J46b-ep.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/favorite-LUIfqiQF.cjs"))},feedback:{outlined:()=>Promise.resolve().then(()=>require("./icons/feedback-B_jbalMc.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/feedback-DpFRhEHp.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/feedback-BaEOlZmy.cjs"))},file_copy:{outlined:()=>Promise.resolve().then(()=>require("./icons/file_copy-CTIQJQ-Q.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/file_copy-BryVfjLP.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/file_copy-D7W7B9tN.cjs"))},filter_list:{outlined:()=>Promise.resolve().then(()=>require("./icons/filter_list-DpBj6Yx1.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/filter_list-B8Txqh_n.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/filter_list-CH0lPLm2.cjs"))},find_in_page:{outlined:()=>Promise.resolve().then(()=>require("./icons/find_in_page-BnUd7Adl.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/find_in_page-d1tGoTfD.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/find_in_page-CZWej5L8.cjs"))},find_replace:{outlined:()=>Promise.resolve().then(()=>require("./icons/find_replace-COPwtD3A.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/find_replace-B_KZ8iLe.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/find_replace-BVX_mdI2.cjs"))},fingerprint:{outlined:()=>Promise.resolve().then(()=>require("./icons/fingerprint-s6Wvd5xY.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/fingerprint-BwdcEXJy.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/fingerprint-Cjs10wLp.cjs"))},first_page:{outlined:()=>Promise.resolve().then(()=>require("./icons/first_page-LyKNPAwN.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/first_page-CFfNXxJa.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/first_page-BNf1p3Bb.cjs"))},fit_screen:{outlined:()=>Promise.resolve().then(()=>require("./icons/fit_screen-DgeLJfZy.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/fit_screen-B9tJEMV5.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/fit_screen-NF0JPdOh.cjs"))},fitness_center:{outlined:()=>Promise.resolve().then(()=>require("./icons/fitness_center-DOb_SqRR.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/fitness_center-BhjkYdCs.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/fitness_center-wLAD2vZ_.cjs"))},flag:{outlined:()=>Promise.resolve().then(()=>require("./icons/flag-E-VIxwkr.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/flag-LD2jAYeI.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/flag-DZqg40eh.cjs"))},flare:{outlined:()=>Promise.resolve().then(()=>require("./icons/flare-DZBDF8BR.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/flare-DZL3slPE.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/flare-BPXjy3gS.cjs"))},flash_on:{outlined:()=>Promise.resolve().then(()=>require("./icons/flash_on-DIcsCTnL.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/flash_on-B6CuALXr.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/flash_on-BotDglNP.cjs"))},flight:{outlined:()=>Promise.resolve().then(()=>require("./icons/flight-BNYPJg6b.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/flight-BLrZxPop.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/flight-CMxTfrzT.cjs"))},flip:{outlined:()=>Promise.resolve().then(()=>require("./icons/flip-BAlqTIVF.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/flip-Bz6vLJ-d.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/flip-Cqg-_005.cjs"))},folder:{outlined:()=>Promise.resolve().then(()=>require("./icons/folder-DBjcNXNU.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/folder-CEMBequd.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/folder-DuEc_ds7.cjs"))},folder_open:{outlined:()=>Promise.resolve().then(()=>require("./icons/folder_open-B7M1GBAB.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/folder_open-BCePqSqz.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/folder_open-B_oOp3kv.cjs"))},folder_shared:{outlined:()=>Promise.resolve().then(()=>require("./icons/folder_shared-BesFvcRa.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/folder_shared-Cy2npeFh.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/folder_shared-DgpExGUb.cjs"))},forum:{outlined:()=>Promise.resolve().then(()=>require("./icons/forum-ClIUKbam.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/forum-C0U0c7lC.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/forum-W9gwVTdH.cjs"))},fullscreen:{outlined:()=>Promise.resolve().then(()=>require("./icons/fullscreen-CeXAg0Rs.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/fullscreen-BbuB8GJ1.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/fullscreen-DzeaQMMi.cjs"))},fullscreen_exit:{outlined:()=>Promise.resolve().then(()=>require("./icons/fullscreen_exit-Dv_5bvVl.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/fullscreen_exit-BQAdlG7F.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/fullscreen_exit-BdILU2wy.cjs"))},gavel:{outlined:()=>Promise.resolve().then(()=>require("./icons/gavel-D-OTl_bj.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/gavel-F-uuY7jq.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/gavel-DwIL5r9o.cjs"))},gesture:{outlined:()=>Promise.resolve().then(()=>require("./icons/gesture-DeCjZ4OV.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/gesture-V_2x4_gC.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/gesture-CDVjysbx.cjs"))},gif:{outlined:()=>Promise.resolve().then(()=>require("./icons/gif-Cdgf5jLT.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/gif-BjNPP4Fi.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/gif-Dbqa6Qt9.cjs"))},grid_view:{outlined:()=>Promise.resolve().then(()=>require("./icons/grid_view-ClltetuJ.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/grid_view-DaRUrgXH.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/grid_view-B68F0xHI.cjs"))},group:{outlined:()=>Promise.resolve().then(()=>require("./icons/group-B8IYS99v.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/group-BPq1UB-p.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/group-_x6YgwIQ.cjs"))},group_add:{outlined:()=>Promise.resolve().then(()=>require("./icons/group_add-DRT53nn9.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/group_add-yGgEMHEW.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/group_add-BM5MTU4c.cjs"))},groups:{outlined:()=>Promise.resolve().then(()=>require("./icons/groups-C108XU4y.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/groups-BnGg38nU.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/groups-xhrjwIB0.cjs"))},handyman:{outlined:()=>Promise.resolve().then(()=>require("./icons/handyman-xpAdwmnn.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/handyman-jhYg_Ni9.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/handyman-4agk8mvK.cjs"))},headphones:{outlined:()=>Promise.resolve().then(()=>require("./icons/headphones-ByLMZlNY.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/headphones-CFD4aFp7.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/headphones-Co40H2aF.cjs"))},healing:{outlined:()=>Promise.resolve().then(()=>require("./icons/healing-aaFdWh5W.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/healing-BDkkXt9q.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/healing-B-0A2nAU.cjs"))},help:{outlined:()=>Promise.resolve().then(()=>require("./icons/help-OaQroamO.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/help-C3CEzn4A.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/help-Ctda3jdI.cjs"))},highlight:{outlined:()=>Promise.resolve().then(()=>require("./icons/highlight-6N9Q1nCv.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/highlight-2e5dcG25.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/highlight-B06WsyLv.cjs"))},history:{outlined:()=>Promise.resolve().then(()=>require("./icons/history-BOV-9TKh.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/history-CU_ehRzx.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/history-BUB_tYea.cjs"))},history_toggle_off:{outlined:()=>Promise.resolve().then(()=>require("./icons/history_toggle_off-Bhya520A.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/history_toggle_off-DnRUn4bN.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/history_toggle_off-gyY-rgoJ.cjs"))},home:{outlined:()=>Promise.resolve().then(()=>require("./icons/home-Dokhawqy.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/home-BTOD_204.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/home-r_TUIXCB.cjs"))},home_work:{outlined:()=>Promise.resolve().then(()=>require("./icons/home_work-CG_ldX6X.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/home_work-B964c0gI.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/home_work-RpG7pfN8.cjs"))},hotel:{outlined:()=>Promise.resolve().then(()=>require("./icons/hotel-bfy2VvG_.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/hotel-DPvGMpsA.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/hotel-CPtCcGqG.cjs"))},hourglass_empty:{outlined:()=>Promise.resolve().then(()=>require("./icons/hourglass_empty-B5l-KyA_.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/hourglass_empty-Dj67ruJJ.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/hourglass_empty-w_LZI7ql.cjs"))},http:{outlined:()=>Promise.resolve().then(()=>require("./icons/http-CkQzvLY8.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/http-D1K3W8nC.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/http-fS1e0mTs.cjs"))},image:{outlined:()=>Promise.resolve().then(()=>require("./icons/image-CQ1rcY-m.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/image-m4vdlOrM.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/image-Epxcfqar.cjs"))},image_search:{outlined:()=>Promise.resolve().then(()=>require("./icons/image_search-DFdtq1ol.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/image_search-Df6Ng67p.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/image_search-QPrlvCTB.cjs"))},important_devices:{outlined:()=>Promise.resolve().then(()=>require("./icons/important_devices-BQm7YX8s.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/important_devices-CEL-eNng.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/important_devices-CaP-knAj.cjs"))},inbox:{outlined:()=>Promise.resolve().then(()=>require("./icons/inbox-Bf8a9r3C.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/inbox-DlEuYH_M.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/inbox-CbKEEwtR.cjs"))},info:{outlined:()=>Promise.resolve().then(()=>require("./icons/info-B7YBEpiO.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/info-D76Irr5N.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/info-DnsOX_R2.cjs"))},input:{outlined:()=>Promise.resolve().then(()=>require("./icons/input-BledoS7j.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/input-CiaLhaBv.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/input-DFmBoxLr.cjs"))},inventory:{outlined:()=>Promise.resolve().then(()=>require("./icons/inventory-D3F1c0G4.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/inventory-C6l6OEEh.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/inventory-BWwO-xah.cjs"))},key:{outlined:()=>Promise.resolve().then(()=>require("./icons/key-Cd1LQA96.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/key-BapDxdJR.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/key-WmFDui-T.cjs"))},keyboard:{outlined:()=>Promise.resolve().then(()=>require("./icons/keyboard-9kPP_fZo.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/keyboard-Bncd-r2h.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/keyboard-DEtvWaW3.cjs"))},label:{outlined:()=>Promise.resolve().then(()=>require("./icons/label-Csjt3SVM.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/label-Cm8auEWA.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/label-D4Z8lgx6.cjs"))},language:{outlined:()=>Promise.resolve().then(()=>require("./icons/language-Dnk6WN_j.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/language-DUV1M-65.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/language-CxIJ1SrJ.cjs"))},last_page:{outlined:()=>Promise.resolve().then(()=>require("./icons/last_page-oTIYzPFL.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/last_page-CjRlRrpV.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/last_page-Cbb3HacN.cjs"))},layers:{outlined:()=>Promise.resolve().then(()=>require("./icons/layers-RHUoY1x9.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/layers-NrOiyn4B.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/layers-Blmdyx3T.cjs"))},light_mode:{outlined:()=>Promise.resolve().then(()=>require("./icons/light_mode-Bo8UvOO0.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/light_mode-C3ZmUjzM.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/light_mode-C3vqv6r9.cjs"))},line_style:{outlined:()=>Promise.resolve().then(()=>require("./icons/line_style-hKwpJThN.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/line_style-ChfgY8Fz.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/line_style-DlXCE4Um.cjs"))},link:{outlined:()=>Promise.resolve().then(()=>require("./icons/link-SqQvG2aS.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/link-BFqEzcuh.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/link-BEt8Rdrk.cjs"))},list:{outlined:()=>Promise.resolve().then(()=>require("./icons/list-B3bGHUAB.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/list-ExRMWvY6.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/list-D0u18QaB.cjs"))},live_help:{outlined:()=>Promise.resolve().then(()=>require("./icons/live_help-cSkLrDFh.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/live_help-B1k0yUF9.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/live_help-B9sVajvu.cjs"))},local_cafe:{outlined:()=>Promise.resolve().then(()=>require("./icons/local_cafe-BbLYHQ5G.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/local_cafe-gSN4KJIQ.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/local_cafe-BRwE0wVl.cjs"))},local_hospital:{outlined:()=>Promise.resolve().then(()=>require("./icons/local_hospital-CeMxQ9XC.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/local_hospital-BQxIobVR.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/local_hospital-MPVU96Sw.cjs"))},local_taxi:{outlined:()=>Promise.resolve().then(()=>require("./icons/local_taxi-CVCg6SLk.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/local_taxi-DYWVyvAC.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/local_taxi-BvyxG2_8.cjs"))},location_off:{outlined:()=>Promise.resolve().then(()=>require("./icons/location_off-TLyox8Gw.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/location_off-BwRgLKKl.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/location_off-BQw1qzX6.cjs"))},location_on:{outlined:()=>Promise.resolve().then(()=>require("./icons/location_on-zlbjO2nd.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/location_on-C_Q78KW6.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/location_on-B-4p1Vaw.cjs"))},lock:{outlined:()=>Promise.resolve().then(()=>require("./icons/lock-BczdF5aF.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/lock-DoMqxNht.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/lock-CMBDoG1m.cjs"))},lock_open:{outlined:()=>Promise.resolve().then(()=>require("./icons/lock_open-DNBPlz0I.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/lock_open-CbcCQPoq.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/lock_open-BsfuU82J.cjs"))},lock_reset:{outlined:()=>Promise.resolve().then(()=>require("./icons/lock_reset-1_dRLFAg.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/lock_reset-BFi8YBZd.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/lock_reset-xNTFVkP0.cjs"))},login:{outlined:()=>Promise.resolve().then(()=>require("./icons/login-BjZiShoE.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/login-6YNL4CrP.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/login-Bogn9TQm.cjs"))},logout:{outlined:()=>Promise.resolve().then(()=>require("./icons/logout-Bphd-i1_.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/logout-9MBXaMSb.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/logout-BKRH1LQ7.cjs"))},mail:{outlined:()=>Promise.resolve().then(()=>require("./icons/mail-stTZgOxR.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/mail-zslK5Vp0.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/mail-SRkbZHDV.cjs"))},map:{outlined:()=>Promise.resolve().then(()=>require("./icons/map-DlCPxLI4.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/map-BN0czcmT.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/map-OHAPN5Jm.cjs"))},mark_email_read:{outlined:()=>Promise.resolve().then(()=>require("./icons/mark_email_read-4O476T7R.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/mark_email_read-B5tjuBKg.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/mark_email_read-C6yfr2fW.cjs"))},mark_email_unread:{outlined:()=>Promise.resolve().then(()=>require("./icons/mark_email_unread-BbgVYB4S.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/mark_email_unread-CS1ID0rU.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/mark_email_unread-BzBlwfDW.cjs"))},maximize:{outlined:()=>Promise.resolve().then(()=>require("./icons/maximize-BfsEZe_5.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/maximize-yncMJ3Gg.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/maximize-D_c72Iyc.cjs"))},medication:{outlined:()=>Promise.resolve().then(()=>require("./icons/medication-BP-gJNIW.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/medication-B7oNWWhQ.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/medication-BXpvVQlG.cjs"))},menu:{outlined:()=>Promise.resolve().then(()=>require("./icons/menu-BSH9Euis.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/menu-BI_0LYcg.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/menu-CyUV3J9k.cjs"))},mic:{outlined:()=>Promise.resolve().then(()=>require("./icons/mic-Bv7uyEhL.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/mic-OWlr0FyC.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/mic-DeY1JMNU.cjs"))},mic_off:{outlined:()=>Promise.resolve().then(()=>require("./icons/mic_off-CrExlNjs.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/mic_off-3AQHolNv.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/mic_off-O3medmXx.cjs"))},minimize:{outlined:()=>Promise.resolve().then(()=>require("./icons/minimize-C1fwEdxW.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/minimize-b3mKEIDM.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/minimize-CLS-Wwu4.cjs"))},model_training:{outlined:()=>Promise.resolve().then(()=>require("./icons/model_training-CRZqBwX8.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/model_training-BHnB1pq-.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/model_training-2hXP1oSx.cjs"))},monitor:{outlined:()=>Promise.resolve().then(()=>require("./icons/monitor-DEOzv1-v.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/monitor-DmiG1_9A.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/monitor-Do46ojnJ.cjs"))},more_horiz:{outlined:()=>Promise.resolve().then(()=>require("./icons/more_horiz-bZKXAcx0.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/more_horiz-Deil--Zw.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/more_horiz-Dbz8LvVB.cjs"))},more_time:{outlined:()=>Promise.resolve().then(()=>require("./icons/more_time-B1Wd5UFZ.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/more_time-urwzlhvb.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/more_time-ChxdyGP_.cjs"))},more_vert:{outlined:()=>Promise.resolve().then(()=>require("./icons/more_vert-DzTrnUGw.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/more_vert-CXi9yj-5.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/more_vert-DxblSDI5.cjs"))},mouse:{outlined:()=>Promise.resolve().then(()=>require("./icons/mouse-QimsmAoo.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/mouse-Bng6mJ1A.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/mouse-DS8yvLR1.cjs"))},move_to_inbox:{outlined:()=>Promise.resolve().then(()=>require("./icons/move_to_inbox-D-SzwKRi.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/move_to_inbox-DMwv-LwU.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/move_to_inbox-DB49LSzj.cjs"))},multiline_chart:{outlined:()=>Promise.resolve().then(()=>require("./icons/multiline_chart-VNajFYIu.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/multiline_chart-qmqudGJS.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/multiline_chart-BZ9pI0M2.cjs"))},my_location:{outlined:()=>Promise.resolve().then(()=>require("./icons/my_location-CafgIPzY.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/my_location-B_2xIJ1h.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/my_location-BQB_Gvjn.cjs"))},navigation:{outlined:()=>Promise.resolve().then(()=>require("./icons/navigation-XOBWaNoc.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/navigation-DD6e0gFe.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/navigation-D-EmSudm.cjs"))},near_me:{outlined:()=>Promise.resolve().then(()=>require("./icons/near_me-CDCjz9gt.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/near_me-BPE_ZuMr.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/near_me-BxAslSGA.cjs"))},network_check:{outlined:()=>Promise.resolve().then(()=>require("./icons/network_check-DXQawqFw.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/network_check-Dl7EGQcb.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/network_check-BJIqHDfq.cjs"))},note_add:{outlined:()=>Promise.resolve().then(()=>require("./icons/note_add-CgDyCezx.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/note_add-DreTnzy7.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/note_add-B16Z0iko.cjs"))},notifications:{outlined:()=>Promise.resolve().then(()=>require("./icons/notifications-C6p9X5iK.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/notifications-C4Njhrf3.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/notifications-CqrgBGCg.cjs"))},notifications_off:{outlined:()=>Promise.resolve().then(()=>require("./icons/notifications_off-Bl-UXNgJ.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/notifications_off-C0bFn1n-.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/notifications_off-DnZ8QXub.cjs"))},opacity:{outlined:()=>Promise.resolve().then(()=>require("./icons/opacity-Dk-JXILr.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/opacity-D6RIb2vv.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/opacity-B_AyGGS_.cjs"))},open_in_browser:{outlined:()=>Promise.resolve().then(()=>require("./icons/open_in_browser-Dmn-cfK-.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/open_in_browser-DCPx7gky.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/open_in_browser-DqsvTNrn.cjs"))},open_in_new:{outlined:()=>Promise.resolve().then(()=>require("./icons/open_in_new-BgJKZU-J.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/open_in_new-DZPCJOy7.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/open_in_new-CcEf-zNH.cjs"))},open_with:{outlined:()=>Promise.resolve().then(()=>require("./icons/open_with-Bzj5vgs6.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/open_with-CmFOFdkm.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/open_with-B70xaICx.cjs"))},outbox:{outlined:()=>Promise.resolve().then(()=>require("./icons/outbox-C6aOzPpg.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/outbox-Cx7uYTOf.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/outbox-Csu_1kyH.cjs"))},outgoing_mail:{outlined:()=>Promise.resolve().then(()=>require("./icons/outgoing_mail-2-xW6AF5.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/outgoing_mail-CtAbnTjW.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/outgoing_mail-CX9s8C5z.cjs"))},pageview:{outlined:()=>Promise.resolve().then(()=>require("./icons/pageview-DqQxqFE_.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/pageview-D1Aft6zN.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/pageview-CoOkhigk.cjs"))},paid:{outlined:()=>Promise.resolve().then(()=>require("./icons/paid-C5cn2aLs.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/paid-BzDeYvj7.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/paid-BIkLZCcs.cjs"))},palette:{outlined:()=>Promise.resolve().then(()=>require("./icons/palette-BEmPRIMw.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/palette-CEI5mXi2.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/palette-BWAIjdCq.cjs"))},pan_tool:{outlined:()=>Promise.resolve().then(()=>require("./icons/pan_tool-DchJK0me.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/pan_tool-DuCXAwU5.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/pan_tool-LLeyUAKx.cjs"))},park:{outlined:()=>Promise.resolve().then(()=>require("./icons/park-BVe-doeU.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/park-BUDETE5h.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/park-B2KYNHGS.cjs"))},pause:{outlined:()=>Promise.resolve().then(()=>require("./icons/pause-DQrYrJPf.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/pause-CbypNdPU.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/pause-DrZm3789.cjs"))},pending:{outlined:()=>Promise.resolve().then(()=>require("./icons/pending-6ag0S0mB.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/pending-BrSKvjSV.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/pending-LfKlYmk3.cjs"))},percent:{outlined:()=>Promise.resolve().then(()=>require("./icons/percent-CQHhbCUm.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/percent-DQRJ81Y0.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/percent-DjuRihso.cjs"))},perm_camera_mic:{outlined:()=>Promise.resolve().then(()=>require("./icons/perm_camera_mic-Cbddp4vZ.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/perm_camera_mic-CuBPtZxF.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/perm_camera_mic-Dkpwkkuq.cjs"))},perm_contact_calendar:{outlined:()=>Promise.resolve().then(()=>require("./icons/perm_contact_calendar-DMec4ouz.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/perm_contact_calendar-DhFwc7VW.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/perm_contact_calendar-CspwVmEi.cjs"))},perm_media:{outlined:()=>Promise.resolve().then(()=>require("./icons/perm_media-C57M9qmo.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/perm_media-CF1u7gFa.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/perm_media-Bxr4BAS1.cjs"))},perm_phone_msg:{outlined:()=>Promise.resolve().then(()=>require("./icons/perm_phone_msg-D9X0Elcs.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/perm_phone_msg-9zA1SKcG.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/perm_phone_msg-BzVSR3nS.cjs"))},perm_scan_wifi:{outlined:()=>Promise.resolve().then(()=>require("./icons/perm_scan_wifi-DD7R0Ypv.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/perm_scan_wifi-B9jQZzda.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/perm_scan_wifi-DoiutF9N.cjs"))},person:{outlined:()=>Promise.resolve().then(()=>require("./icons/person-B3n5wNYw.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/person-BjdTw5Wf.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/person-CxBPAQjZ.cjs"))},person_add:{outlined:()=>Promise.resolve().then(()=>require("./icons/person_add-SOetVGrq.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/person_add-CAlpNX8L.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/person_add-C5HiyjEy.cjs"))},person_remove:{outlined:()=>Promise.resolve().then(()=>require("./icons/person_remove-K5AIu4l3.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/person_remove-FQ1FDMyB.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/person_remove-Ckm7S1Ul.cjs"))},pets:{outlined:()=>Promise.resolve().then(()=>require("./icons/pets-CX3R8F-o.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/pets-Ce5ySqSZ.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/pets-DFqhatXG.cjs"))},photo:{outlined:()=>Promise.resolve().then(()=>require("./icons/photo-oBUWZNmV.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/photo-DCL0v_al.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/photo-Cu44xCeI.cjs"))},photo_camera:{outlined:()=>Promise.resolve().then(()=>require("./icons/photo_camera-DhFf5sZ5.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/photo_camera-Nyrh3DOY.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/photo_camera-C9AkrxeA.cjs"))},pin:{outlined:()=>Promise.resolve().then(()=>require("./icons/pin-D4ao9i6g.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/pin-DthuKQB3.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/pin-CRwDdDV2.cjs"))},play_arrow:{outlined:()=>Promise.resolve().then(()=>require("./icons/play_arrow-H863JTh7.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/play_arrow-CZk84Zqk.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/play_arrow-B53QlyDM.cjs"))},play_circle:{outlined:()=>Promise.resolve().then(()=>require("./icons/play_circle-CTzQVR4K.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/play_circle-yQAtsYsn.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/play_circle-wkjsDqRz.cjs"))},playlist_add:{outlined:()=>Promise.resolve().then(()=>require("./icons/playlist_add-Snr_stSN.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/playlist_add-GuvkSYpw.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/playlist_add-D2Xb6_NK.cjs"))},polymer:{outlined:()=>Promise.resolve().then(()=>require("./icons/polymer-C2BZyzKC.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/polymer-DqwlaYna.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/polymer-DG6N5gon.cjs"))},power:{outlined:()=>Promise.resolve().then(()=>require("./icons/power-Bt8Geig2.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/power-DZ3DE2BU.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/power-pXyGp9-1.cjs"))},power_settings_new:{outlined:()=>Promise.resolve().then(()=>require("./icons/power_settings_new-DD5cuSDo.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/power_settings_new-C5QoEPOu.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/power_settings_new-CKm1IAbg.cjs"))},preview:{outlined:()=>Promise.resolve().then(()=>require("./icons/preview-DWVX-cQO.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/preview-BfsIL0b0.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/preview-DoBR4W2d.cjs"))},print:{outlined:()=>Promise.resolve().then(()=>require("./icons/print-BhcfRgxE.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/print-CkOGeK2-.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/print-DEoedWv2.cjs"))},print_disabled:{outlined:()=>Promise.resolve().then(()=>require("./icons/print_disabled-Cfm8Rmrg.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/print_disabled-BX0aI1MB.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/print_disabled-DXRq3rRK.cjs"))},privacy_tip:{outlined:()=>Promise.resolve().then(()=>require("./icons/privacy_tip-Ds1UUYsC.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/privacy_tip-THEl8fOD.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/privacy_tip-BMaqVFkP.cjs"))},public:{outlined:()=>Promise.resolve().then(()=>require("./icons/public-DsMIgunV.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/public-BpCg8FcW.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/public-CUqXfp2P.cjs"))},publish:{outlined:()=>Promise.resolve().then(()=>require("./icons/publish-aEOseQ0B.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/publish-CsV_amwU.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/publish-Dvx4su5p.cjs"))},radio:{outlined:()=>Promise.resolve().then(()=>require("./icons/radio-Bk8_Qjwv.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/radio-B2Ef_9iW.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/radio-CwtfSqPE.cjs"))},rate_review:{outlined:()=>Promise.resolve().then(()=>require("./icons/rate_review-B-T0Zspx.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/rate_review-B2oMwaV-.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/rate_review-DPXxfHCb.cjs"))},receipt:{outlined:()=>Promise.resolve().then(()=>require("./icons/receipt-C2nj4DVK.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/receipt-twmBLiMB.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/receipt-Bp12qtmR.cjs"))},receipt_long:{outlined:()=>Promise.resolve().then(()=>require("./icons/receipt_long-92b6OZd3.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/receipt_long-CAmLm05y.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/receipt_long-BwMqM1SJ.cjs"))},recent_actors:{outlined:()=>Promise.resolve().then(()=>require("./icons/recent_actors-DD_SIS2p.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/recent_actors-tqgiO4nq.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/recent_actors-BmkR1ajB.cjs"))},recommend:{outlined:()=>Promise.resolve().then(()=>require("./icons/recommend-DtKYWilu.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/recommend-Aw4CXDaO.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/recommend-CDHFINVu.cjs"))},record_voice_over:{outlined:()=>Promise.resolve().then(()=>require("./icons/record_voice_over-Dd1PPwQW.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/record_voice_over-CCuO1fha.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/record_voice_over-CfOde1To.cjs"))},redeem:{outlined:()=>Promise.resolve().then(()=>require("./icons/redeem-CeEXJTxS.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/redeem-CtvDEAWe.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/redeem-zus0PT_N.cjs"))},redo:{outlined:()=>Promise.resolve().then(()=>require("./icons/redo-DwiLjx8_.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/redo-CB6KXpep.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/redo-AXNo-2i6.cjs"))},refresh:{outlined:()=>Promise.resolve().then(()=>require("./icons/refresh-B34c1S8h.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/refresh-C_BBk9XA.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/refresh-DX9L5WGR.cjs"))},remove:{outlined:()=>Promise.resolve().then(()=>require("./icons/remove-BpH5DaU-.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/remove-ChmlIHbM.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/remove-D1owTeuN.cjs"))},reply:{outlined:()=>Promise.resolve().then(()=>require("./icons/reply-Cm9qKf6z.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/reply-Df4SE_cq.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/reply-CUp6bBiu.cjs"))},reply_all:{outlined:()=>Promise.resolve().then(()=>require("./icons/reply_all-CIm2mYxA.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/reply_all-Cu6bFwEY.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/reply_all-C1hqo2qO.cjs"))},report:{outlined:()=>Promise.resolve().then(()=>require("./icons/report-3zsKRuLn.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/report-Dmag693H.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/report-DCRNNTzs.cjs"))},restart_alt:{outlined:()=>Promise.resolve().then(()=>require("./icons/restart_alt-CffSc23A.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/restart_alt-CnJZzuua.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/restart_alt-Nz67oCa0.cjs"))},restaurant:{outlined:()=>Promise.resolve().then(()=>require("./icons/restaurant-BKqlwxRF.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/restaurant-CQoatClQ.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/restaurant-sK6evuVB.cjs"))},restore_from_trash:{outlined:()=>Promise.resolve().then(()=>require("./icons/restore_from_trash-DqcC-1Lu.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/restore_from_trash-DOFWLtoA.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/restore_from_trash-DpHGuo0S.cjs"))},rotate_left:{outlined:()=>Promise.resolve().then(()=>require("./icons/rotate_left-Ck4VMi6n.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/rotate_left-RKvDCGa_.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/rotate_left-C0-WUVsw.cjs"))},rotate_right:{outlined:()=>Promise.resolve().then(()=>require("./icons/rotate_right-i9bMrMe5.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/rotate_right-D1pzuEHb.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/rotate_right-8WHx_SuN.cjs"))},rule:{outlined:()=>Promise.resolve().then(()=>require("./icons/rule-GIRrcXbP.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/rule-DTjiYiZq.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/rule-PbcB9lZP.cjs"))},save:{outlined:()=>Promise.resolve().then(()=>require("./icons/save-fkqiyMK8.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/save-5IddfMjQ.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/save-CCF5PyEM.cjs"))},save_as:{outlined:()=>Promise.resolve().then(()=>require("./icons/save_as-BRWg38-i.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/save_as-Bxt_2D67.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/save_as-Cv4exkLT.cjs"))},schedule:{outlined:()=>Promise.resolve().then(()=>require("./icons/schedule-DSheAoDO.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/schedule-DZ99H6m4.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/schedule-DEux9M-N.cjs"))},schedule_send:{outlined:()=>Promise.resolve().then(()=>require("./icons/schedule_send-Do__Ry6u.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/schedule_send-Cp3iC0Oh.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/schedule_send-Ci1iGXRR.cjs"))},school:{outlined:()=>Promise.resolve().then(()=>require("./icons/school-DjIfocA8.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/school-DIBNfqBw.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/school-UiU6b6fz.cjs"))},science:{outlined:()=>Promise.resolve().then(()=>require("./icons/science-DU8HpI5E.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/science-DduXLiLr.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/science-CPQsO82_.cjs"))},search:{outlined:()=>Promise.resolve().then(()=>require("./icons/search-B1H9b_cm.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/search-BryYopV4.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/search-ChtQjHCV.cjs"))},search_off:{outlined:()=>Promise.resolve().then(()=>require("./icons/search_off-hK10qV9w.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/search_off-Ez3W0MtB.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/search_off-DKJlviq9.cjs"))},security:{outlined:()=>Promise.resolve().then(()=>require("./icons/security-CK8VfFnF.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/security-BieeAIQK.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/security-3FTT4sJq.cjs"))},select_all:{outlined:()=>Promise.resolve().then(()=>require("./icons/select_all-wO38Mugl.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/select_all-DkGq4MLr.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/select_all-CNzVtIaX.cjs"))},send:{outlined:()=>Promise.resolve().then(()=>require("./icons/send-CE0t-BeF.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/send-CSyvk2Uu.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/send-Da_IOaWi.cjs"))},send_and_archive:{outlined:()=>Promise.resolve().then(()=>require("./icons/send_and_archive-CIHEjPqZ.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/send_and_archive-x4Bd1yNd.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/send_and_archive-BeBX1v9Y.cjs"))},settings:{outlined:()=>Promise.resolve().then(()=>require("./icons/settings-Iczs8jeR.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/settings-CMP5MFnV.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/settings-CLZ2Gtbf.cjs"))},settings_applications:{outlined:()=>Promise.resolve().then(()=>require("./icons/settings_applications-9HE_9rY_.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/settings_applications-BZAjwB0l.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/settings_applications-BXuvrP6q.cjs"))},settings_backup_restore:{outlined:()=>Promise.resolve().then(()=>require("./icons/settings_backup_restore-D9TSfliZ.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/settings_backup_restore-CuanjFW6.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/settings_backup_restore-CyPIojJj.cjs"))},settings_bluetooth:{outlined:()=>Promise.resolve().then(()=>require("./icons/settings_bluetooth-DaGzD19J.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/settings_bluetooth-xy6HQVpn.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/settings_bluetooth-Cr6IHVRB.cjs"))},settings_brightness:{outlined:()=>Promise.resolve().then(()=>require("./icons/settings_brightness-bpZFSJhk.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/settings_brightness-BkiTw384.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/settings_brightness-DPr5MK-L.cjs"))},settings_ethernet:{outlined:()=>Promise.resolve().then(()=>require("./icons/settings_ethernet-CNSkOlVN.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/settings_ethernet-BKUalwzq.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/settings_ethernet-BiUPH4Zl.cjs"))},settings_input_component:{outlined:()=>Promise.resolve().then(()=>require("./icons/settings_input_component-By5nACBS.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/settings_input_component-BdohaMlR.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/settings_input_component-DlJfBGIJ.cjs"))},settings_input_hdmi:{outlined:()=>Promise.resolve().then(()=>require("./icons/settings_input_hdmi-C6AUSBbu.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/settings_input_hdmi-CJf8K5vP.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/settings_input_hdmi-B6RpJzAH.cjs"))},settings_input_svideo:{outlined:()=>Promise.resolve().then(()=>require("./icons/settings_input_svideo-DE-cJJ19.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/settings_input_svideo-GoJKdcLM.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/settings_input_svideo-GdfkseMO.cjs"))},settings_overscan:{outlined:()=>Promise.resolve().then(()=>require("./icons/settings_overscan-t2ziBpx0.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/settings_overscan-DjxVyh_p.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/settings_overscan-CzZdrVff.cjs"))},settings_phone:{outlined:()=>Promise.resolve().then(()=>require("./icons/settings_phone-DSs4IMu3.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/settings_phone-CdllR2_U.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/settings_phone-DMkUqrcI.cjs"))},settings_power:{outlined:()=>Promise.resolve().then(()=>require("./icons/settings_power-Sy2yCFJ9.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/settings_power-C0haok1N.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/settings_power-DCmvdxnX.cjs"))},settings_remote:{outlined:()=>Promise.resolve().then(()=>require("./icons/settings_remote-BgSfe6Rf.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/settings_remote-BkeWwusa.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/settings_remote-BjJR-PZA.cjs"))},settings_voice:{outlined:()=>Promise.resolve().then(()=>require("./icons/settings_voice-CJKvIhG_.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/settings_voice-DKlyDHlF.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/settings_voice-D5Vxz3H6.cjs"))},share:{outlined:()=>Promise.resolve().then(()=>require("./icons/share-4OI6GdPA.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/share-BUQun2WH.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/share-D3x5n12j.cjs"))},shield:{outlined:()=>Promise.resolve().then(()=>require("./icons/shield-BiW3E-iG.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/shield-BeTHVkub.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/shield-8LQV6fwO.cjs"))},shop:{outlined:()=>Promise.resolve().then(()=>require("./icons/shop-CQAvlAIJ.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/shop-CKc3vFoP.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/shop-CvzOHG8i.cjs"))},shop_two:{outlined:()=>Promise.resolve().then(()=>require("./icons/shop_two-DxlMpmpg.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/shop_two-B1EZi_d3.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/shop_two-DAWsfPhY.cjs"))},shopping_bag:{outlined:()=>Promise.resolve().then(()=>require("./icons/shopping_bag-BLYLRVEo.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/shopping_bag-pW2CC5Wm.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/shopping_bag-CsPqDtJv.cjs"))},shopping_cart:{outlined:()=>Promise.resolve().then(()=>require("./icons/shopping_cart-DnonQkQH.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/shopping_cart-D-FNTU2X.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/shopping_cart-Xj77jFuX.cjs"))},shopping_cart_checkout:{outlined:()=>Promise.resolve().then(()=>require("./icons/shopping_cart_checkout-X3I3ndRQ.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/shopping_cart_checkout-Ba3gAZZx.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/shopping_cart_checkout-Biv5QNse.cjs"))},shuffle:{outlined:()=>Promise.resolve().then(()=>require("./icons/shuffle-DgSPEo4a.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/shuffle-CJ1EAml3.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/shuffle-_2AFO10D.cjs"))},signal_cellular_4_bar:{outlined:()=>Promise.resolve().then(()=>require("./icons/signal_cellular_4_bar-B2EfVIOU.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/signal_cellular_4_bar-BnGmWjbd.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/signal_cellular_4_bar-tyWOuTIO.cjs"))},signal_wifi_4_bar:{outlined:()=>Promise.resolve().then(()=>require("./icons/signal_wifi_4_bar-BqhjBPKf.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/signal_wifi_4_bar-ACBg79Cd.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/signal_wifi_4_bar-BI0IoDFE.cjs"))},sim_card:{outlined:()=>Promise.resolve().then(()=>require("./icons/sim_card-COkNXOTt.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/sim_card-CIcMNdr5.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/sim_card-BPL0trEZ.cjs"))},skip_next:{outlined:()=>Promise.resolve().then(()=>require("./icons/skip_next-CTaln24G.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/skip_next-BjR_Ru_X.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/skip_next-BS3qv6JB.cjs"))},skip_previous:{outlined:()=>Promise.resolve().then(()=>require("./icons/skip_previous-C3jUnkqV.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/skip_previous-DupTvcKV.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/skip_previous-BKQnmbUY.cjs"))},smart_display:{outlined:()=>Promise.resolve().then(()=>require("./icons/smart_display-CGq_kFKP.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/smart_display-CvQj8hVk.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/smart_display-BOW5QUcA.cjs"))},sms:{outlined:()=>Promise.resolve().then(()=>require("./icons/sms-Ch9Dn8Lm.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/sms-BujJufM4.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/sms-C0XjdHC5.cjs"))},speaker:{outlined:()=>Promise.resolve().then(()=>require("./icons/speaker-CV63iKYE.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/speaker-DsfaZMR_.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/speaker-B2MvjZAN.cjs"))},speed:{outlined:()=>Promise.resolve().then(()=>require("./icons/speed-D7NBKqG3.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/speed-CXhRyCN3.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/speed-Dj7IJmxS.cjs"))},spellcheck:{outlined:()=>Promise.resolve().then(()=>require("./icons/spellcheck-bravLujp.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/spellcheck-BF_frwVA.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/spellcheck-bkyb6Y8s.cjs"))},splitscreen:{outlined:()=>Promise.resolve().then(()=>require("./icons/splitscreen-CWRxhPyh.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/splitscreen-BugC3AHX.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/splitscreen-CuTL4vMq.cjs"))},star:{outlined:()=>Promise.resolve().then(()=>require("./icons/star-71poZceL.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/star-CdAMIKli.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/star-cWZAor5m.cjs"))},star_half:{outlined:()=>Promise.resolve().then(()=>require("./icons/star_half-BwQ25Xpr.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/star_half-D21K-e2D.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/star_half-BWK8UDKr.cjs"))},stars:{outlined:()=>Promise.resolve().then(()=>require("./icons/stars--dAqSWaT.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/stars-NYu-DZz9.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/stars-Cyp7CBgv.cjs"))},stop:{outlined:()=>Promise.resolve().then(()=>require("./icons/stop-uwTugAuv.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/stop-CBeB_vzv.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/stop-BWqpBB4v.cjs"))},storage:{outlined:()=>Promise.resolve().then(()=>require("./icons/storage-CJ6k6H61.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/storage-YUkbXrS_.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/storage-zovKy4GK.cjs"))},store:{outlined:()=>Promise.resolve().then(()=>require("./icons/store-AytgGtla.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/store-CLKS8y8z.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/store-b7oiYjaT.cjs"))},storefront:{outlined:()=>Promise.resolve().then(()=>require("./icons/storefront-maPZQS5d.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/storefront-p8WcwK8a.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/storefront-C1xlNf7m.cjs"))},subtitles:{outlined:()=>Promise.resolve().then(()=>require("./icons/subtitles-CJ0WZ11D.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/subtitles-CweVpu7E.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/subtitles-DiEORnGT.cjs"))},support:{outlined:()=>Promise.resolve().then(()=>require("./icons/support-DZV0BDoT.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/support-DOeVw2Ol.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/support-C8IHRu3M.cjs"))},swap_horiz:{outlined:()=>Promise.resolve().then(()=>require("./icons/swap_horiz-CIHagp-O.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/swap_horiz-gBiaDATS.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/swap_horiz-DXxPNDOa.cjs"))},swap_vert:{outlined:()=>Promise.resolve().then(()=>require("./icons/swap_vert-CgI4ty66.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/swap_vert-CYo6e2hN.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/swap_vert-BIRQdp6w.cjs"))},swipe:{outlined:()=>Promise.resolve().then(()=>require("./icons/swipe-DNULZvdC.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/swipe-CBmB5bVK.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/swipe-BEkT-xey.cjs"))},switch_access_shortcut:{outlined:()=>Promise.resolve().then(()=>require("./icons/switch_access_shortcut-q_7AaUE5.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/switch_access_shortcut-4NHu-GzX.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/switch_access_shortcut-DlIlneXr.cjs"))},sync:{outlined:()=>Promise.resolve().then(()=>require("./icons/sync-c0eh9srx.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/sync-B8eDMIHY.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/sync-Bb15b-LY.cjs"))},tab:{outlined:()=>Promise.resolve().then(()=>require("./icons/tab-Br904I-x.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/tab-DoWIBjMF.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/tab-DcX5jSYD.cjs"))},tab_unselected:{outlined:()=>Promise.resolve().then(()=>require("./icons/tab_unselected-h_5qNQAy.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/tab_unselected-Jryi6UG7.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/tab_unselected-BnB9OpTQ.cjs"))},table_rows:{outlined:()=>Promise.resolve().then(()=>require("./icons/table_rows-DhopWxQ4.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/table_rows-CD8mGsGH.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/table_rows-DBST5uR7.cjs"))},tablet:{outlined:()=>Promise.resolve().then(()=>require("./icons/tablet-BPyP2a60.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/tablet-BObXzgDp.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/tablet-DEJSebWQ.cjs"))},tag:{outlined:()=>Promise.resolve().then(()=>require("./icons/tag-BKHmPW7O.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/tag-bOLfzkCK.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/tag-DeeBL365.cjs"))},task:{outlined:()=>Promise.resolve().then(()=>require("./icons/task-B9X6QTUq.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/task-DrKSPxAM.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/task-CaXkBV5s.cjs"))},task_alt:{outlined:()=>Promise.resolve().then(()=>require("./icons/task_alt-DmM9U1Ld.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/task_alt-DuVPr61c.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/task_alt-BWpiiOPB.cjs"))},terminal:{outlined:()=>Promise.resolve().then(()=>require("./icons/terminal-Cq96EmHZ.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/terminal-9rECHy3F.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/terminal-UFxOCVAJ.cjs"))},text_fields:{outlined:()=>Promise.resolve().then(()=>require("./icons/text_fields-srTO6UAQ.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/text_fields-MBNGOwpE.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/text_fields-31b2r-eh.cjs"))},thumb_down:{outlined:()=>Promise.resolve().then(()=>require("./icons/thumb_down-C-ZYO8aS.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/thumb_down-CXKcFuVv.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/thumb_down-B1EnDy9g.cjs"))},thumb_up:{outlined:()=>Promise.resolve().then(()=>require("./icons/thumb_up-CMK43jwc.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/thumb_up-BjnPL-vY.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/thumb_up-BJldcoTn.cjs"))},timeline:{outlined:()=>Promise.resolve().then(()=>require("./icons/timeline-BorNHWXs.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/timeline-DHqVljjl.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/timeline-DLlL3HNg.cjs"))},timer:{outlined:()=>Promise.resolve().then(()=>require("./icons/timer-C05SAUqw.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/timer-CYZn5P7p.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/timer-B82U_DX8.cjs"))},toc:{outlined:()=>Promise.resolve().then(()=>require("./icons/toc-DhGghZ9I.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/toc-C84pl4PR.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/toc-BtcPEvk6.cjs"))},today:{outlined:()=>Promise.resolve().then(()=>require("./icons/today-DzGPx-JC.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/today-BkPPR4dh.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/today-BdVLVtYY.cjs"))},toggle_off:{outlined:()=>Promise.resolve().then(()=>require("./icons/toggle_off-BDbSL0R3.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/toggle_off-BDH4j7_B.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/toggle_off-BKJ1oYkM.cjs"))},toggle_on:{outlined:()=>Promise.resolve().then(()=>require("./icons/toggle_on-Dl1NcDmP.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/toggle_on-DURt0a-K.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/toggle_on-BcgFWI69.cjs"))},touch_app:{outlined:()=>Promise.resolve().then(()=>require("./icons/touch_app-BjCIP79F.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/touch_app-DYx-e9w1.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/touch_app-DMIySKht.cjs"))},tour:{outlined:()=>Promise.resolve().then(()=>require("./icons/tour-Cvtl9j2v.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/tour-D_mBWC4A.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/tour-DrIKd0iZ.cjs"))},track_changes:{outlined:()=>Promise.resolve().then(()=>require("./icons/track_changes-CrWcjG7M.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/track_changes-CmftMM7i.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/track_changes-2gWHhzk3.cjs"))},train:{outlined:()=>Promise.resolve().then(()=>require("./icons/train-bPZxRsaq.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/train-xbz9XQhb.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/train-pWcRhKXA.cjs"))},translate:{outlined:()=>Promise.resolve().then(()=>require("./icons/translate-CYXRRxeY.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/translate-WCc3CLqx.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/translate-CPdtUGGD.cjs"))},trending_down:{outlined:()=>Promise.resolve().then(()=>require("./icons/trending_down-ImDCa4Jh.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/trending_down-DIbaV34v.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/trending_down-dZnaOW1J.cjs"))},trending_flat:{outlined:()=>Promise.resolve().then(()=>require("./icons/trending_flat-C1svR9KS.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/trending_flat-Br_PXO04.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/trending_flat-C4esyAhD.cjs"))},trending_up:{outlined:()=>Promise.resolve().then(()=>require("./icons/trending_up-Bgw7w8PT.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/trending_up-fksGS-GY.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/trending_up-DPd7c_Dq.cjs"))},troubleshoot:{outlined:()=>Promise.resolve().then(()=>require("./icons/troubleshoot-K7Bl_YaC.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/troubleshoot-DI-EgiZK.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/troubleshoot-CZMhLPJh.cjs"))},unarchive:{outlined:()=>Promise.resolve().then(()=>require("./icons/unarchive-CO882sl0.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/unarchive-DyUoj8om.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/unarchive-D4LtLEle.cjs"))},undo:{outlined:()=>Promise.resolve().then(()=>require("./icons/undo-iQLEL8Zi.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/undo-CIwSY9GL.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/undo-C9xs6NjO.cjs"))},unfold_less:{outlined:()=>Promise.resolve().then(()=>require("./icons/unfold_less-LC-ftUfz.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/unfold_less-DxekXqvM.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/unfold_less-BKOJLQlU.cjs"))},unfold_more:{outlined:()=>Promise.resolve().then(()=>require("./icons/unfold_more-BVL_GIHl.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/unfold_more-DIl3gTo7.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/unfold_more-Dlh3P3cv.cjs"))},update:{outlined:()=>Promise.resolve().then(()=>require("./icons/update-0Vhu6gl3.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/update-a1H2RXCn.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/update-BDOxUBTg.cjs"))},upgrade:{outlined:()=>Promise.resolve().then(()=>require("./icons/upgrade-CqKqDz1C.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/upgrade-x2gsVQIM.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/upgrade-CdJyAFoI.cjs"))},upload:{outlined:()=>Promise.resolve().then(()=>require("./icons/upload-CMBoE1MT.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/upload-CfYL9Zr2.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/upload-BDW8-FNY.cjs"))},vaccines:{outlined:()=>Promise.resolve().then(()=>require("./icons/vaccines-C4f-r8y5.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/vaccines-Dak3ypH-.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/vaccines-BgYSLR9w.cjs"))},verified:{outlined:()=>Promise.resolve().then(()=>require("./icons/verified-BPpdTMbw.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/verified-BR7xxAQA.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/verified-C1_3O9Pq.cjs"))},verified_user:{outlined:()=>Promise.resolve().then(()=>require("./icons/verified_user-B4cpofdT.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/verified_user-CHiaKWJQ.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/verified_user-LzxM0Ixt.cjs"))},view_agenda:{outlined:()=>Promise.resolve().then(()=>require("./icons/view_agenda-wmPKBjy1.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/view_agenda-ChVSNVuJ.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/view_agenda-BcCbU_Cx.cjs"))},view_array:{outlined:()=>Promise.resolve().then(()=>require("./icons/view_array-4eH_Y-9C.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/view_array-u_DfgvOJ.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/view_array-CtftT6bB.cjs"))},view_carousel:{outlined:()=>Promise.resolve().then(()=>require("./icons/view_carousel-cKrqJhoI.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/view_carousel--ToJf94l.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/view_carousel-CjxIXwuR.cjs"))},view_column:{outlined:()=>Promise.resolve().then(()=>require("./icons/view_column-CI58na9m.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/view_column-CGO0_VaN.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/view_column-CZfddZfP.cjs"))},view_day:{outlined:()=>Promise.resolve().then(()=>require("./icons/view_day-BKQpPz70.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/view_day-BL7dG_71.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/view_day-D03WAaG1.cjs"))},view_headline:{outlined:()=>Promise.resolve().then(()=>require("./icons/view_headline-bvoWlfSZ.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/view_headline-CEiHaTUb.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/view_headline-zUGYSGF4.cjs"))},view_list:{outlined:()=>Promise.resolve().then(()=>require("./icons/view_list-Cn16jlm_.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/view_list-COkcexHQ.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/view_list-q6O6UQ8s.cjs"))},view_module:{outlined:()=>Promise.resolve().then(()=>require("./icons/view_module-fdzeD45B.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/view_module-BIq8D_VI.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/view_module-Dugq4U2N.cjs"))},view_stream:{outlined:()=>Promise.resolve().then(()=>require("./icons/view_stream-DY09WFyh.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/view_stream-Bok3MI-A.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/view_stream-BprhnLvm.cjs"))},view_week:{outlined:()=>Promise.resolve().then(()=>require("./icons/view_week-BwVY-Gzo.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/view_week-BIG9oES2.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/view_week-CVSaj-eg.cjs"))},visibility:{outlined:()=>Promise.resolve().then(()=>require("./icons/visibility-CcM0M7Ae.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/visibility-B_skKXCn.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/visibility-Du_QtShp.cjs"))},visibility_off:{outlined:()=>Promise.resolve().then(()=>require("./icons/visibility_off-77O8Ixn_.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/visibility_off-CQkbf0sH.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/visibility_off-DDSAECSN.cjs"))},voice_chat:{outlined:()=>Promise.resolve().then(()=>require("./icons/voice_chat-B2m86WSN.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/voice_chat-DA-inGEr.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/voice_chat-N9lzzPD3.cjs"))},volume_down:{outlined:()=>Promise.resolve().then(()=>require("./icons/volume_down-X8Fdb5GL.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/volume_down-ormtJ6rA.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/volume_down-xq98sRni.cjs"))},volume_mute:{outlined:()=>Promise.resolve().then(()=>require("./icons/volume_mute-Dg1Sad52.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/volume_mute-2JEExPCA.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/volume_mute-BmLOt1AC.cjs"))},volume_off:{outlined:()=>Promise.resolve().then(()=>require("./icons/volume_off-yubxzc3X.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/volume_off-BgpeewH8.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/volume_off-BrkBzaCw.cjs"))},volume_up:{outlined:()=>Promise.resolve().then(()=>require("./icons/volume_up-bP-cavNY.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/volume_up-DYrt4pXz.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/volume_up-CP5jPUnv.cjs"))},vpn_key:{outlined:()=>Promise.resolve().then(()=>require("./icons/vpn_key-DLw31EM4.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/vpn_key-DYrLYI7L.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/vpn_key-DepwbifQ.cjs"))},vpn_lock:{outlined:()=>Promise.resolve().then(()=>require("./icons/vpn_lock-CArd8FFH.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/vpn_lock-4HGysBa8.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/vpn_lock-DoxQ56X_.cjs"))},wallet:{outlined:()=>Promise.resolve().then(()=>require("./icons/wallet-D6d5LH8m.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/wallet-CGvvbyGf.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/wallet-D6lc8i2O.cjs"))},warning:{outlined:()=>Promise.resolve().then(()=>require("./icons/warning-3MXqZXik.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/warning-iht20xAd.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/warning-BDqDQ0zE.cjs"))},watch:{outlined:()=>Promise.resolve().then(()=>require("./icons/watch-Dxwts4x_.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/watch-C5XLco8t.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/watch-kEhspwOG.cjs"))},widgets:{outlined:()=>Promise.resolve().then(()=>require("./icons/widgets-DwrJqxGF.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/widgets-BXJ2Q2Ej.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/widgets-obimkiev.cjs"))},wifi:{outlined:()=>Promise.resolve().then(()=>require("./icons/wifi-DrroKwB8.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/wifi-2DytN2nN.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/wifi-BkLgmjTL.cjs"))},wifi_off:{outlined:()=>Promise.resolve().then(()=>require("./icons/wifi_off-BaJM5EaE.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/wifi_off-Sfa-62fD.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/wifi_off-Dc0PhObG.cjs"))},work:{outlined:()=>Promise.resolve().then(()=>require("./icons/work-QooH-JpG.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/work-Do6SwFLt.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/work-D3tksTSD.cjs"))},zoom_in:{outlined:()=>Promise.resolve().then(()=>require("./icons/zoom_in-3A4joxuV.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/zoom_in-DL9SEBJs.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/zoom_in-i6DpZCMO.cjs"))},zoom_out:{outlined:()=>Promise.resolve().then(()=>require("./icons/zoom_out-DGmKh370.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/zoom_out-DyYWanOO.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/zoom_out-CKPGeJDN.cjs"))}};console.log(Object.keys(Oi));const Ur={};function ed(e){return{...e}}function ag(e){Object.assign(Ur,ed(e))}function cg(e){const r=ed(e);Object.keys(Ur).forEach(t=>{delete Ur[t]}),Object.assign(Ur,r)}function ug(){Object.keys(Ur).forEach(e=>{delete Ur[e]})}function dg(){const e=Object.keys(Ur),r=Object.keys(Oi);return Array.from(new Set([...e,...r]))}function Sa(e){const{title:r,...t}=e;return c.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":r?void 0:!0,role:r?"img":void 0,...t,children:r?c.jsx("title",{children:r}):null})}function fg(e,r){const t=Ur[e]??Oi[e]??null;return t?r==="rounded"?t.rounded??t.outlined:r==="sharp"?t.sharp??t.outlined:t.outlined:null}function mg(e,r){return u.lazy(async()=>{const t=fg(e,r);if(!t)return{default:Sa};try{return{default:(await t()).default}}catch{return{default:Sa}}})}function $e(e){const{name:r,svg:t,src:o,variant:n="outlined",useColorAsFill:s=!1,size:i=24,color:l="currentColor",className:a,title:d}=e,f=u.useMemo(()=>mg(r??"",n),[r,n]),m=s?l:"currentColor";return t?c.jsx(t,{width:i,height:i,fill:m,color:l,className:a,title:d,focusable:"false","aria-hidden":d?void 0:!0}):o?c.jsx("img",{src:o,alt:d??"","aria-hidden":d?void 0:!0,className:a,style:{display:"inline-block",width:i,height:i}}):c.jsx(u.Suspense,{fallback:c.jsx("span",{"aria-hidden":"true",className:a,style:{display:"inline-block",width:i,height:i}}),children:c.jsx(f,{width:i,height:i,fill:m,color:l,className:a,title:d,focusable:"false","aria-hidden":d?void 0:!0})})}$e.displayName="Icon";let rd=null;function Na(e){rd=e}function hg(){return rd}const pg=200,vg={info:{icon:"info",iconColor:"#6b7280",role:"status",live:"polite"},success:{icon:"check_circle",iconColor:"#16a34a",role:"status",live:"polite"},warn:{icon:"warning",iconColor:"#d97706",role:"alert",live:"assertive"},error:{icon:"error",iconColor:"#dc2626",role:"alert",live:"assertive"}},td=u.createContext(null);let qa=0;function gg(){return qa+=1,`ldkj-toast-${Date.now()}-${qa}`}function xg(e,r){return e.filter(t=>t.id!==r)}function bg(e){const r=new Map;for(const t of e){const o=r.get(t.placement);o?o.push(t):r.set(t.placement,[t])}return r}function od(e){const{children:r,placement:t="top",duration:o=3e3,queueLimit:n=5,reverse:s=!1}=e,[i,l]=u.useState([]),a=u.useRef(new Map),d=u.useRef(new Map),f=u.useCallback(x=>{const w=a.current.get(x);w!==void 0&&(window.clearTimeout(w),a.current.delete(x));const P=d.current.get(x);P!==void 0&&(window.clearTimeout(P),d.current.delete(x))},[]),m=u.useCallback(x=>{f(x),l(w=>xg(w,x))},[f]),p=u.useCallback(x=>{f(x),l(P=>P.map(C=>C.id===x&&!C.leaving?{...C,leaving:!0}:C));const w=window.setTimeout(()=>{m(x)},pg);d.current.set(x,w)},[f,m]),v=u.useCallback(()=>{l(x=>(x.forEach(w=>f(w.id)),[]))},[f]),g=u.useCallback(x=>{const w=x.duration??o,P=x.id??gg(),C={id:P,message:x.message,type:x.type??"info",placement:x.placement??t,closable:x.closable??!0,icon:x.icon,iconColor:x.iconColor,leaving:!1};l(j=>{const S=[...j,C];if(S.length<=n)return S;const N=S.length-n;return S.slice(0,N).forEach(q=>f(q.id)),S.slice(N)});const k=window.setTimeout(()=>{p(P)},Math.max(w,0));return a.current.set(P,k),P},[f,p,o,t,n]);u.useEffect(()=>()=>{a.current.forEach(x=>window.clearTimeout(x)),d.current.forEach(x=>window.clearTimeout(x)),a.current.clear(),d.current.clear()},[]);const h=u.useMemo(()=>({push:g,dismiss:p,clear:v}),[v,p,g]);u.useEffect(()=>(Na(h),()=>Na(null)),[h]);const y=u.useMemo(()=>bg(i),[i]),b=Array.from(y.keys());return c.jsxs(td.Provider,{value:h,children:[r,b.map(x=>{const w=y.get(x)??[],P=s?[...w].reverse():w;return c.jsx("div",{className:R("ldkj-toast-viewport",`ldkj-toast-viewport-${x}`),"aria-hidden":P.length===0,children:P.map(C=>{const k=vg[C.type],j=C.iconColor??k.iconColor;return c.jsxs("div",{className:R("ldkj-toast-item",C.leaving?"ldkj-toast-leave":"ldkj-toast-appear"),role:k.role,"aria-live":k.live,"aria-atomic":"true",children:[typeof C.icon=="string"?c.jsx($e,{name:C.icon,color:j,size:20,className:"ldkj-toast-icon",title:`${C.type} icon`}):C.icon?.svg||C.icon?.src?c.jsx($e,{svg:C.icon.svg,src:C.icon.src,color:j,size:20,className:"ldkj-toast-icon",title:`${C.type} icon`}):c.jsx($e,{name:k.icon,color:j,size:20,className:"ldkj-toast-icon",title:`${C.type} icon`}),c.jsx("div",{className:"ldkj-toast-message",children:C.message}),C.closable?c.jsx("button",{type:"button",className:"ldkj-toast-close","aria-label":"关闭提示",onClick:()=>p(C.id),children:c.jsx($e,{name:"close",size:16,className:"ldkj-toast-close-icon"})}):null]},C.id)})},x)})]})}od.displayName="ToastProvider";function yg(){const e=u.useContext(td);if(!e)throw new Error("useToast 必须在 ToastProvider 内使用。");const r=u.useCallback((i,l)=>e.push({message:i,...l}),[e]),t=u.useCallback((i,l)=>e.push({type:"info",message:i,...l}),[e]),o=u.useCallback((i,l)=>e.push({type:"success",message:i,...l}),[e]),n=u.useCallback((i,l)=>e.push({type:"warn",message:i,...l}),[e]),s=u.useCallback((i,l)=>e.push({type:"error",message:i,...l}),[e]);return u.useMemo(()=>({show:r,info:t,success:o,warn:n,error:s,dismiss:e.dismiss,clear:e.clear}),[e.clear,e.dismiss,s,t,r,o,n])}const Ko={placement:"top",duration:3e3,closable:!0};let Ea=!1;const fr={...Ko};function nd(e){return{placement:e?.placement??fr.placement,duration:e?.duration??fr.duration,id:e?.id,closable:e?.closable??fr.closable,icon:e?.icon,iconColor:e?.iconColor}}function Go(){const e=hg();return e||(Ea||(Ea=!0,console.warn("toast 调用失败:请先在应用根节点挂载 ToastProvider。")),null)}function Ro(e,r,t){const o=Go();return o?o.push({type:e,message:r,...nd(t)}):""}const wg={show(e,r){const t=Go();return t?t.push({type:"info",message:typeof e=="string"?e:String(e),...nd(r)}):""},info(e,r){return Ro("info",e,r)},success(e,r){return Ro("success",e,r)},warn(e,r){return Ro("warn",e,r)},error(e,r){return Ro("error",e,r)},dismiss(e){const r=Go();r&&r.dismiss(e)},clear(){const e=Go();e&&e.clear()},config(e){fr.placement=e.placement??fr.placement,fr.duration=e.duration??fr.duration,fr.closable=e.closable??fr.closable},resetConfig(){fr.placement=Ko.placement,fr.duration=Ko.duration,fr.closable=Ko.closable}};function Ra(e){if(e!=null)return typeof e=="boolean"?e?"blur(5px)":void 0:typeof e=="number"?`blur(${e}px)`:`blur(${e})`}function Mi(e){const{open:r=!1,destroyOnClose:t=!1,closeOnMaskClick:o=!1,scrollable:n=!1,alpha:s=.5,blur:i,x:l="50%",y:a="50%",translateX:d="-50%",translateY:f="-50%",onClose:m,onOpen:p,className:v,class:g,style:h,sx:y,contentClassName:b,contentClass:x,contentStyle:w,contentSx:P,children:C,...k}=e,j=se(),{sxClassName:S,sxInlineStyle:N}=re(y,j),{sxClassName:A,sxInlineStyle:q}=re(P,j),E=u.useRef(!1);return u.useEffect(()=>{if(E.current){r?p?.():m?.();return}E.current=!0},[r,m,p]),u.useEffect(()=>{if(!r||n)return;const I=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=I}},[r,n]),!r&&t?null:c.jsx("div",{hidden:!r,className:R("fixed inset-0 z-[var(--ldkj-z-modal)]",S,v,g),style:D({backgroundColor:s===.5?"var(--ldkj-color-overlay)":`rgba(0, 0, 0, ${s})`,backdropFilter:Ra(i),WebkitBackdropFilter:Ra(i)},h,N),onTouchStart:I=>{n||(I.preventDefault(),I.stopPropagation())},onClick:()=>{o&&m?.()},...k,children:c.jsx("div",{className:R("absolute",A,b,x),style:D({left:l,top:a,transform:`translate(${d}, ${f})`},w,q),onClick:I=>{I.stopPropagation()},children:C})})}Mi.displayName="Modal";const sd=u.createContext(null),id=u.createContext(null);function vo(e){const r=u.useContext(sd);if(!r)throw new Error(`${e} 必须在 <Dialog> 内使用`);return r}function Jr(e){const r=se();return re(e,r)}function Pg(e){const{open:r,defaultOpen:t=!1,onOpenChange:o}=e,n=r!==void 0,[s,i]=u.useState(t),l=n?r:s,a=u.useCallback(d=>{n||i(d),o?.(d)},[n,o]);return[l,a]}const Cg=e=>{const{open:r,defaultOpen:t,onOpenChange:o,modal:n=!0,lockScroll:s=!0,destroyOnClose:i=!1,closeOnMaskClick:l=!0,scrollable:a=!1,children:d}=e,[f,m]=Pg({open:r,defaultOpen:t,onOpenChange:o}),p=u.useMemo(()=>({open:f,setOpen:m,modal:n,lockScroll:s,destroyOnClose:i,closeOnMaskClick:l,scrollable:a}),[l,i,s,n,f,a,m]);return c.jsx(sd.Provider,{value:p,children:d})},Li=u.forwardRef((e,r)=>{const{setOpen:t}=vo("DialogTrigger"),{asChild:o,asChildWrapper:n="span",className:s,class:i,sx:l,style:a,children:d,onClick:f,...m}=e,{sxClassName:p,sxInlineStyle:v}=Jr(l),g=h=>{f?.(h),!h.defaultPrevented&&t(!0)};return o?c.jsx(n,{ref:r,className:R("inline-flex w-fit",p,s,i),style:D(a,v),onClick:g,...m,children:d}):c.jsx("button",{ref:r,type:"button",className:R(p,s,i),style:D(a,v),onClick:g,...m,children:d})});Li.displayName="DialogTrigger";const Di=u.forwardRef((e,r)=>{const{setOpen:t}=vo("DialogClose"),{asChild:o,asChildWrapper:n="span",className:s,class:i,sx:l,style:a,children:d,onClick:f,...m}=e,{sxClassName:p,sxInlineStyle:v}=Jr(l),g=h=>{f?.(h),!h.defaultPrevented&&t(!1)};return o?c.jsx(n,{ref:r,className:R("inline-flex w-fit",p,s,i),style:D(a,v),onClick:g,...m,children:d}):c.jsx("button",{ref:r,type:"button",className:R(p,s,i),style:D(a,v),onClick:g,...m,children:d})});Di.displayName="DialogClose";const ld=e=>{const{children:r,container:t}=e;if(typeof document>"u")return null;const o=t??document.body;return o?mo.createPortal(r,o):null},Fi=u.forwardRef((e,r)=>{const{open:t,destroyOnClose:o,closeOnMaskClick:n,setOpen:s}=vo("DialogOverlay"),{className:i,class:l,sx:a,style:d,blur:f=!0,onClick:m,...p}=e,{sxClassName:v,sxInlineStyle:g}=Jr(a);return!t&&o?null:c.jsx("div",{ref:r,hidden:!t,"data-state":t?"open":"closed",className:R("fixed inset-0 z-[var(--ldkj-z-modal)] bg-[color:var(--ldkj-color-overlay)]",f?"backdrop-blur-[1px]":null,"data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",v,i,l),style:D(d,g),onClick:h=>{m?.(h),!h.defaultPrevented&&n&&s(!1)},...p})});Fi.displayName="DialogOverlay";const Bi=u.forwardRef((e,r)=>{const t=vo("DialogContent"),{children:o,className:n,class:s,sx:i,style:l,showClose:a=!0,overlayClassName:d,overlaySx:f,overlayBlur:m=!0,onEscapeKeyDown:p,onPointerDownOutside:v,onOpenAutoFocus:g,onCloseAutoFocus:h,...y}=e,{sxClassName:b,sxInlineStyle:x}=Jr(i),w=u.useRef(null),P=u.useRef(t.open);u.useImperativeHandle(r,()=>w.current),u.useEffect(()=>{const S=P.current;if(!S&&t.open){const N=new Event("openAutoFocus",{cancelable:!0});g?.(N),N.defaultPrevented||w.current?.focus()}if(S&&!t.open){const N=new Event("closeAutoFocus",{cancelable:!0});h?.(N)}P.current=t.open},[t.open,h,g]),u.useEffect(()=>{if(!t.open)return;const S=N=>{N.key==="Escape"&&(p?.(N),!N.defaultPrevented&&t.setOpen(!1))};return window.addEventListener("keydown",S),()=>{window.removeEventListener("keydown",S)}},[t,p]);const C=t.lockScroll&&t.modal,k=t.scrollable||!C,j=t.modal&&t.closeOnMaskClick;return c.jsx(Mi,{open:t.open,destroyOnClose:t.destroyOnClose,closeOnMaskClick:j,scrollable:k,blur:m?1:!1,className:R("z-[var(--ldkj-z-modal)]","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",d),sx:f,onClose:()=>{const S=new PointerEvent("pointerdown",{bubbles:!0,cancelable:!0});v?.(S),S.defaultPrevented||t.setOpen(!1)},contentClassName:"z-50 w-[calc(100%-2rem)] max-w-lg",contentSx:void 0,x:"50%",y:"50%",translateX:"-50%",translateY:"-50%",children:c.jsx("div",{ref:w,role:"dialog","aria-modal":(!!t.modal).toString(),tabIndex:-1,"data-state":t.open?"open":"closed",className:R("relative grid gap-4 rounded-lg border border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-surface)] p-6 text-[color:var(--ldkj-color-surface-foreground)] shadow-[var(--ldkj-shadow-modal)] outline-none","duration-200","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]","data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",b,n,s),style:D(l,x),...y,children:c.jsx(id.Provider,{value:{showClose:a},children:o})})})});Bi.displayName="DialogContent";const $i=u.forwardRef((e,r)=>{const t=vo("DialogHeader"),n=u.useContext(id)?.showClose??!1,{className:s,class:i,sx:l,style:a,children:d,...f}=e,{sxClassName:m,sxInlineStyle:p}=Jr(l);return c.jsxs("div",{ref:r,className:R("flex items-start justify-between gap-3",m,s,i),style:D(a,p),...f,children:[c.jsx("div",{className:"flex min-w-0 flex-1 flex-col gap-1.5 text-center sm:text-left",children:d}),n?c.jsx("button",{type:"button",className:R("inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-md","text-[color:var(--ldkj-color-muted-foreground)] transition-colors hover:bg-[color:var(--ldkj-color-accent)] hover:text-[color:var(--ldkj-color-foreground)]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)] focus-visible:ring-offset-2","disabled:pointer-events-none"),"aria-label":"关闭弹窗",onClick:()=>t.setOpen(!1),children:c.jsx($e,{name:"close",size:16})}):null]})});$i.displayName="DialogHeader";const Vi=u.forwardRef((e,r)=>{const{className:t,class:o,sx:n,style:s,...i}=e,{sxClassName:l,sxInlineStyle:a}=Jr(n);return c.jsx("div",{ref:r,className:R("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",l,t,o),style:D(s,a),...i})});Vi.displayName="DialogFooter";const zi=u.forwardRef((e,r)=>{const{className:t,class:o,sx:n,style:s,...i}=e,{sxClassName:l,sxInlineStyle:a}=Jr(n);return c.jsx("h2",{ref:r,className:R("m-0 text-lg font-semibold leading-6 text-[color:var(--ldkj-color-foreground)]",l,t,o),style:D({margin:0,borderTop:0,paddingTop:0,letterSpacing:0,fontSize:"1.125rem",fontWeight:600,lineHeight:"1.5rem"},s,a),...i})});zi.displayName="DialogTitle";const Hi=u.forwardRef((e,r)=>{const{className:t,class:o,sx:n,style:s,...i}=e,{sxClassName:l,sxInlineStyle:a}=Jr(n);return c.jsx("p",{ref:r,className:R("m-0 text-sm leading-5 text-[color:var(--ldkj-color-muted-foreground)]",l,t,o),style:D({margin:0,fontSize:"0.875rem",lineHeight:"1.25rem"},s,a),...i})});Hi.displayName="DialogDescription";const kg=Object.assign(Cg,{Trigger:Li,Portal:ld,Close:Di,Overlay:Fi,Content:Bi,Header:$i,Footer:Vi,Title:zi,Description:Hi});function pe(e,r,{checkForDefaultPrevented:t=!0}={}){return function(n){if(e?.(n),t===!1||!n.defaultPrevented)return r?.(n)}}function Aa(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function Ui(...e){return r=>{let t=!1;const o=e.map(n=>{const s=Aa(n,r);return!t&&typeof s=="function"&&(t=!0),s});if(t)return()=>{for(let n=0;n<o.length;n++){const s=o[n];typeof s=="function"?s():Aa(e[n],null)}}}}function Re(...e){return u.useCallback(Ui(...e),e)}function br(e,r=[]){let t=[];function o(s,i){const l=u.createContext(i),a=t.length;t=[...t,i];const d=m=>{const{scope:p,children:v,...g}=m,h=p?.[e]?.[a]||l,y=u.useMemo(()=>g,Object.values(g));return c.jsx(h.Provider,{value:y,children:v})};d.displayName=s+"Provider";function f(m,p){const v=p?.[e]?.[a]||l,g=u.useContext(v);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[d,f]}const n=()=>{const s=t.map(i=>u.createContext(i));return function(l){const a=l?.[e]||s;return u.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return n.scopeName=e,[o,jg(n,...r)]}function jg(...e){const r=e[0];if(e.length===1)return r;const t=()=>{const o=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(s){const i=o.reduce((l,{useScope:a,scopeName:d})=>{const m=a(s)[`__scope${d}`];return{...l,...m}},{});return u.useMemo(()=>({[`__scope${r.scopeName}`]:i}),[i])}};return t.scopeName=r.scopeName,t}function io(e){const r=Sg(e),t=u.forwardRef((o,n)=>{const{children:s,...i}=o,l=u.Children.toArray(s),a=l.find(qg);if(a){const d=a.props.children,f=l.map(m=>m===a?u.Children.count(d)>1?u.Children.only(null):u.isValidElement(d)?d.props.children:null:m);return c.jsx(r,{...i,ref:n,children:u.isValidElement(d)?u.cloneElement(d,void 0,f):null})}return c.jsx(r,{...i,ref:n,children:s})});return t.displayName=`${e}.Slot`,t}function Sg(e){const r=u.forwardRef((t,o)=>{const{children:n,...s}=t;if(u.isValidElement(n)){const i=Rg(n),l=Eg(s,n.props);return n.type!==u.Fragment&&(l.ref=o?Ui(o,i):i),u.cloneElement(n,l)}return u.Children.count(n)>1?u.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var ad=Symbol("radix.slottable");function Ng(e){const r=({children:t})=>c.jsx(c.Fragment,{children:t});return r.displayName=`${e}.Slottable`,r.__radixId=ad,r}function qg(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ad}function Eg(e,r){const t={...r};for(const o in r){const n=e[o],s=r[o];/^on[A-Z]/.test(o)?n&&s?t[o]=(...l)=>{const a=s(...l);return n(...l),a}:n&&(t[o]=n):o==="style"?t[o]={...n,...s}:o==="className"&&(t[o]=[n,s].filter(Boolean).join(" "))}return{...e,...t}}function Rg(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning;return t?e.ref:(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}var Ag=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ye=Ag.reduce((e,r)=>{const t=io(`Primitive.${r}`),o=u.forwardRef((n,s)=>{const{asChild:i,...l}=n,a=i?t:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(a,{...l,ref:s})});return o.displayName=`Primitive.${r}`,{...e,[r]:o}},{});function Ig(e,r){e&&mo.flushSync(()=>e.dispatchEvent(r))}function Ar(e){const r=u.useRef(e);return u.useEffect(()=>{r.current=e}),u.useMemo(()=>(...t)=>r.current?.(...t),[])}function Tg(e,r=globalThis?.document){const t=Ar(e);u.useEffect(()=>{const o=n=>{n.key==="Escape"&&t(n)};return r.addEventListener("keydown",o,{capture:!0}),()=>r.removeEventListener("keydown",o,{capture:!0})},[t,r])}var _g="DismissableLayer",ni="dismissableLayer.update",Og="dismissableLayer.pointerDownOutside",Mg="dismissableLayer.focusOutside",Ia,cd=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),wn=u.forwardRef((e,r)=>{const{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:o,onPointerDownOutside:n,onFocusOutside:s,onInteractOutside:i,onDismiss:l,...a}=e,d=u.useContext(cd),[f,m]=u.useState(null),p=f?.ownerDocument??globalThis?.document,[,v]=u.useState({}),g=Re(r,j=>m(j)),h=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=h.indexOf(y),x=f?h.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,P=x>=b,C=Fg(j=>{const S=j.target,N=[...d.branches].some(A=>A.contains(S));!P||N||(n?.(j),i?.(j),j.defaultPrevented||l?.())},p),k=Bg(j=>{const S=j.target;[...d.branches].some(A=>A.contains(S))||(s?.(j),i?.(j),j.defaultPrevented||l?.())},p);return Tg(j=>{x===d.layers.size-1&&(o?.(j),!j.defaultPrevented&&l&&(j.preventDefault(),l()))},p),u.useEffect(()=>{if(f)return t&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Ia=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Ta(),()=>{t&&d.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Ia)}},[f,p,t,d]),u.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Ta())},[f,d]),u.useEffect(()=>{const j=()=>v({});return document.addEventListener(ni,j),()=>document.removeEventListener(ni,j)},[]),c.jsx(ye.div,{...a,ref:g,style:{pointerEvents:w?P?"auto":"none":void 0,...e.style},onFocusCapture:pe(e.onFocusCapture,k.onFocusCapture),onBlurCapture:pe(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:pe(e.onPointerDownCapture,C.onPointerDownCapture)})});wn.displayName=_g;var Lg="DismissableLayerBranch",Dg=u.forwardRef((e,r)=>{const t=u.useContext(cd),o=u.useRef(null),n=Re(r,o);return u.useEffect(()=>{const s=o.current;if(s)return t.branches.add(s),()=>{t.branches.delete(s)}},[t.branches]),c.jsx(ye.div,{...e,ref:n})});Dg.displayName=Lg;function Fg(e,r=globalThis?.document){const t=Ar(e),o=u.useRef(!1),n=u.useRef(()=>{});return u.useEffect(()=>{const s=l=>{if(l.target&&!o.current){let a=function(){ud(Og,t,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(r.removeEventListener("click",n.current),n.current=a,r.addEventListener("click",n.current,{once:!0})):a()}else r.removeEventListener("click",n.current);o.current=!1},i=window.setTimeout(()=>{r.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),r.removeEventListener("pointerdown",s),r.removeEventListener("click",n.current)}},[r,t]),{onPointerDownCapture:()=>o.current=!0}}function Bg(e,r=globalThis?.document){const t=Ar(e),o=u.useRef(!1);return u.useEffect(()=>{const n=s=>{s.target&&!o.current&&ud(Mg,t,{originalEvent:s},{discrete:!1})};return r.addEventListener("focusin",n),()=>r.removeEventListener("focusin",n)},[r,t]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Ta(){const e=new CustomEvent(ni);document.dispatchEvent(e)}function ud(e,r,t,{discrete:o}){const n=t.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:t});r&&n.addEventListener(e,r,{once:!0}),o?Ig(n,s):n.dispatchEvent(s)}var ss=0;function dd(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??_a()),document.body.insertAdjacentElement("beforeend",e[1]??_a()),ss++,()=>{ss===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),ss--}},[])}function _a(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var is="focusScope.autoFocusOnMount",ls="focusScope.autoFocusOnUnmount",Oa={bubbles:!1,cancelable:!0},$g="FocusScope",Wi=u.forwardRef((e,r)=>{const{loop:t=!1,trapped:o=!1,onMountAutoFocus:n,onUnmountAutoFocus:s,...i}=e,[l,a]=u.useState(null),d=Ar(n),f=Ar(s),m=u.useRef(null),p=Re(r,h=>a(h)),v=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(o){let h=function(w){if(v.paused||!l)return;const P=w.target;l.contains(P)?m.current=P:zr(m.current,{select:!0})},y=function(w){if(v.paused||!l)return;const P=w.relatedTarget;P!==null&&(l.contains(P)||zr(m.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const C of w)C.removedNodes.length>0&&zr(l)};document.addEventListener("focusin",h),document.addEventListener("focusout",y);const x=new MutationObserver(b);return l&&x.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",y),x.disconnect()}}},[o,l,v.paused]),u.useEffect(()=>{if(l){La.add(v);const h=document.activeElement;if(!l.contains(h)){const b=new CustomEvent(is,Oa);l.addEventListener(is,d),l.dispatchEvent(b),b.defaultPrevented||(Vg(Kg(fd(l)),{select:!0}),document.activeElement===h&&zr(l))}return()=>{l.removeEventListener(is,d),setTimeout(()=>{const b=new CustomEvent(ls,Oa);l.addEventListener(ls,f),l.dispatchEvent(b),b.defaultPrevented||zr(h??document.body,{select:!0}),l.removeEventListener(ls,f),La.remove(v)},0)}}},[l,d,f,v]);const g=u.useCallback(h=>{if(!t&&!o||v.paused)return;const y=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,b=document.activeElement;if(y&&b){const x=h.currentTarget,[w,P]=zg(x);w&&P?!h.shiftKey&&b===P?(h.preventDefault(),t&&zr(w,{select:!0})):h.shiftKey&&b===w&&(h.preventDefault(),t&&zr(P,{select:!0})):b===x&&h.preventDefault()}},[t,o,v.paused]);return c.jsx(ye.div,{tabIndex:-1,...i,ref:p,onKeyDown:g})});Wi.displayName=$g;function Vg(e,{select:r=!1}={}){const t=document.activeElement;for(const o of e)if(zr(o,{select:r}),document.activeElement!==t)return}function zg(e){const r=fd(e),t=Ma(r,e),o=Ma(r.reverse(),e);return[t,o]}function fd(e){const r=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const n=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||n?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)r.push(t.currentNode);return r}function Ma(e,r){for(const t of e)if(!Hg(t,{upTo:r}))return t}function Hg(e,{upTo:r}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(r!==void 0&&e===r)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ug(e){return e instanceof HTMLInputElement&&"select"in e}function zr(e,{select:r=!1}={}){if(e&&e.focus){const t=document.activeElement;e.focus({preventScroll:!0}),e!==t&&Ug(e)&&r&&e.select()}}var La=Wg();function Wg(){let e=[];return{add(r){const t=e[0];r!==t&&t?.pause(),e=Da(e,r),e.unshift(r)},remove(r){e=Da(e,r),e[0]?.resume()}}}function Da(e,r){const t=[...e],o=t.indexOf(r);return o!==-1&&t.splice(o,1),t}function Kg(e){return e.filter(r=>r.tagName!=="A")}var Ve=globalThis?.document?u.useLayoutEffect:()=>{},Gg=u[" useId ".trim().toString()]||(()=>{}),Yg=0;function vt(e){const[r,t]=u.useState(Gg());return Ve(()=>{t(o=>o??String(Yg++))},[e]),e||(r?`radix-${r}`:"")}const Xg=["top","right","bottom","left"],Kr=Math.min,lr=Math.max,sn=Math.round,Ao=Math.floor,Nr=e=>({x:e,y:e}),Jg={left:"right",right:"left",bottom:"top",top:"bottom"};function si(e,r,t){return lr(e,Kr(r,t))}function Ir(e,r){return typeof e=="function"?e(r):e}function Tr(e){return e.split("-")[0]}function Lt(e){return e.split("-")[1]}function Ki(e){return e==="x"?"y":"x"}function Gi(e){return e==="y"?"height":"width"}function jr(e){const r=e[0];return r==="t"||r==="b"?"y":"x"}function Yi(e){return Ki(jr(e))}function Qg(e,r,t){t===void 0&&(t=!1);const o=Lt(e),n=Yi(e),s=Gi(n);let i=n==="x"?o===(t?"end":"start")?"right":"left":o==="start"?"bottom":"top";return r.reference[s]>r.floating[s]&&(i=ln(i)),[i,ln(i)]}function Zg(e){const r=ln(e);return[ii(e),r,ii(r)]}function ii(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Fa=["left","right"],Ba=["right","left"],ex=["top","bottom"],rx=["bottom","top"];function tx(e,r,t){switch(e){case"top":case"bottom":return t?r?Ba:Fa:r?Fa:Ba;case"left":case"right":return r?ex:rx;default:return[]}}function ox(e,r,t,o){const n=Lt(e);let s=tx(Tr(e),t==="start",o);return n&&(s=s.map(i=>i+"-"+n),r&&(s=s.concat(s.map(ii)))),s}function ln(e){const r=Tr(e);return Jg[r]+e.slice(r.length)}function nx(e){return{top:0,right:0,bottom:0,left:0,...e}}function md(e){return typeof e!="number"?nx(e):{top:e,right:e,bottom:e,left:e}}function an(e){const{x:r,y:t,width:o,height:n}=e;return{width:o,height:n,top:t,left:r,right:r+o,bottom:t+n,x:r,y:t}}function $a(e,r,t){let{reference:o,floating:n}=e;const s=jr(r),i=Yi(r),l=Gi(i),a=Tr(r),d=s==="y",f=o.x+o.width/2-n.width/2,m=o.y+o.height/2-n.height/2,p=o[l]/2-n[l]/2;let v;switch(a){case"top":v={x:f,y:o.y-n.height};break;case"bottom":v={x:f,y:o.y+o.height};break;case"right":v={x:o.x+o.width,y:m};break;case"left":v={x:o.x-n.width,y:m};break;default:v={x:o.x,y:o.y}}switch(Lt(r)){case"start":v[i]-=p*(t&&d?-1:1);break;case"end":v[i]+=p*(t&&d?-1:1);break}return v}async function sx(e,r){var t;r===void 0&&(r={});const{x:o,y:n,platform:s,rects:i,elements:l,strategy:a}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:p=!1,padding:v=0}=Ir(r,e),g=md(v),y=l[p?m==="floating"?"reference":"floating":m],b=an(await s.getClippingRect({element:(t=await(s.isElement==null?void 0:s.isElement(y)))==null||t?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:d,rootBoundary:f,strategy:a})),x=m==="floating"?{x:o,y:n,width:i.floating.width,height:i.floating.height}:i.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),P=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},C=an(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:x,offsetParent:w,strategy:a}):x);return{top:(b.top-C.top+g.top)/P.y,bottom:(C.bottom-b.bottom+g.bottom)/P.y,left:(b.left-C.left+g.left)/P.x,right:(C.right-b.right+g.right)/P.x}}const ix=50,lx=async(e,r,t)=>{const{placement:o="bottom",strategy:n="absolute",middleware:s=[],platform:i}=t,l=i.detectOverflow?i:{...i,detectOverflow:sx},a=await(i.isRTL==null?void 0:i.isRTL(r));let d=await i.getElementRects({reference:e,floating:r,strategy:n}),{x:f,y:m}=$a(d,o,a),p=o,v=0;const g={};for(let h=0;h<s.length;h++){const y=s[h];if(!y)continue;const{name:b,fn:x}=y,{x:w,y:P,data:C,reset:k}=await x({x:f,y:m,initialPlacement:o,placement:p,strategy:n,middlewareData:g,rects:d,platform:l,elements:{reference:e,floating:r}});f=w??f,m=P??m,g[b]={...g[b],...C},k&&v<ix&&(v++,typeof k=="object"&&(k.placement&&(p=k.placement),k.rects&&(d=k.rects===!0?await i.getElementRects({reference:e,floating:r,strategy:n}):k.rects),{x:f,y:m}=$a(d,p,a)),h=-1)}return{x:f,y:m,placement:p,strategy:n,middlewareData:g}},ax=e=>({name:"arrow",options:e,async fn(r){const{x:t,y:o,placement:n,rects:s,platform:i,elements:l,middlewareData:a}=r,{element:d,padding:f=0}=Ir(e,r)||{};if(d==null)return{};const m=md(f),p={x:t,y:o},v=Yi(n),g=Gi(v),h=await i.getDimensions(d),y=v==="y",b=y?"top":"left",x=y?"bottom":"right",w=y?"clientHeight":"clientWidth",P=s.reference[g]+s.reference[v]-p[v]-s.floating[g],C=p[v]-s.reference[v],k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let j=k?k[w]:0;(!j||!await(i.isElement==null?void 0:i.isElement(k)))&&(j=l.floating[w]||s.floating[g]);const S=P/2-C/2,N=j/2-h[g]/2-1,A=Kr(m[b],N),q=Kr(m[x],N),E=A,I=j-h[g]-q,_=j/2-h[g]/2+S,O=si(E,_,I),T=!a.arrow&&Lt(n)!=null&&_!==O&&s.reference[g]/2-(_<E?A:q)-h[g]/2<0,$=T?_<E?_-E:_-I:0;return{[v]:p[v]+$,data:{[v]:O,centerOffset:_-O-$,...T&&{alignmentOffset:$}},reset:T}}}),cx=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(r){var t,o;const{placement:n,middlewareData:s,rects:i,initialPlacement:l,platform:a,elements:d}=r,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...y}=Ir(e,r);if((t=s.arrow)!=null&&t.alignmentOffset)return{};const b=Tr(n),x=jr(l),w=Tr(l)===l,P=await(a.isRTL==null?void 0:a.isRTL(d.floating)),C=p||(w||!h?[ln(l)]:Zg(l)),k=g!=="none";!p&&k&&C.push(...ox(l,h,g,P));const j=[l,...C],S=await a.detectOverflow(r,y),N=[];let A=((o=s.flip)==null?void 0:o.overflows)||[];if(f&&N.push(S[b]),m){const _=Qg(n,i,P);N.push(S[_[0]],S[_[1]])}if(A=[...A,{placement:n,overflows:N}],!N.every(_=>_<=0)){var q,E;const _=(((q=s.flip)==null?void 0:q.index)||0)+1,O=j[_];if(O&&(!(m==="alignment"?x!==jr(O):!1)||A.every(M=>jr(M.placement)===x?M.overflows[0]>0:!0)))return{data:{index:_,overflows:A},reset:{placement:O}};let T=(E=A.filter($=>$.overflows[0]<=0).sort(($,M)=>$.overflows[1]-M.overflows[1])[0])==null?void 0:E.placement;if(!T)switch(v){case"bestFit":{var I;const $=(I=A.filter(M=>{if(k){const W=jr(M.placement);return W===x||W==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(W=>W>0).reduce((W,F)=>W+F,0)]).sort((M,W)=>M[1]-W[1])[0])==null?void 0:I[0];$&&(T=$);break}case"initialPlacement":T=l;break}if(n!==T)return{reset:{placement:T}}}return{}}}};function Va(e,r){return{top:e.top-r.height,right:e.right-r.width,bottom:e.bottom-r.height,left:e.left-r.width}}function za(e){return Xg.some(r=>e[r]>=0)}const ux=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(r){const{rects:t,platform:o}=r,{strategy:n="referenceHidden",...s}=Ir(e,r);switch(n){case"referenceHidden":{const i=await o.detectOverflow(r,{...s,elementContext:"reference"}),l=Va(i,t.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:za(l)}}}case"escaped":{const i=await o.detectOverflow(r,{...s,altBoundary:!0}),l=Va(i,t.floating);return{data:{escapedOffsets:l,escaped:za(l)}}}default:return{}}}}},hd=new Set(["left","top"]);async function dx(e,r){const{placement:t,platform:o,elements:n}=e,s=await(o.isRTL==null?void 0:o.isRTL(n.floating)),i=Tr(t),l=Lt(t),a=jr(t)==="y",d=hd.has(i)?-1:1,f=s&&a?-1:1,m=Ir(r,e);let{mainAxis:p,crossAxis:v,alignmentAxis:g}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return l&&typeof g=="number"&&(v=l==="end"?g*-1:g),a?{x:v*f,y:p*d}:{x:p*d,y:v*f}}const fx=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(r){var t,o;const{x:n,y:s,placement:i,middlewareData:l}=r,a=await dx(r,e);return i===((t=l.offset)==null?void 0:t.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:n+a.x,y:s+a.y,data:{...a,placement:i}}}}},mx=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){const{x:t,y:o,placement:n,platform:s}=r,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:b=>{let{x,y:w}=b;return{x,y:w}}},...d}=Ir(e,r),f={x:t,y:o},m=await s.detectOverflow(r,d),p=jr(Tr(n)),v=Ki(p);let g=f[v],h=f[p];if(i){const b=v==="y"?"top":"left",x=v==="y"?"bottom":"right",w=g+m[b],P=g-m[x];g=si(w,g,P)}if(l){const b=p==="y"?"top":"left",x=p==="y"?"bottom":"right",w=h+m[b],P=h-m[x];h=si(w,h,P)}const y=a.fn({...r,[v]:g,[p]:h});return{...y,data:{x:y.x-t,y:y.y-o,enabled:{[v]:i,[p]:l}}}}}},hx=function(e){return e===void 0&&(e={}),{options:e,fn(r){const{x:t,y:o,placement:n,rects:s,middlewareData:i}=r,{offset:l=0,mainAxis:a=!0,crossAxis:d=!0}=Ir(e,r),f={x:t,y:o},m=jr(n),p=Ki(m);let v=f[p],g=f[m];const h=Ir(l,r),y=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(a){const w=p==="y"?"height":"width",P=s.reference[p]-s.floating[w]+y.mainAxis,C=s.reference[p]+s.reference[w]-y.mainAxis;v<P?v=P:v>C&&(v=C)}if(d){var b,x;const w=p==="y"?"width":"height",P=hd.has(Tr(n)),C=s.reference[m]-s.floating[w]+(P&&((b=i.offset)==null?void 0:b[m])||0)+(P?0:y.crossAxis),k=s.reference[m]+s.reference[w]+(P?0:((x=i.offset)==null?void 0:x[m])||0)-(P?y.crossAxis:0);g<C?g=C:g>k&&(g=k)}return{[p]:v,[m]:g}}}},px=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(r){var t,o;const{placement:n,rects:s,platform:i,elements:l}=r,{apply:a=()=>{},...d}=Ir(e,r),f=await i.detectOverflow(r,d),m=Tr(n),p=Lt(n),v=jr(n)==="y",{width:g,height:h}=s.floating;let y,b;m==="top"||m==="bottom"?(y=m,b=p===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(b=m,y=p==="end"?"top":"bottom");const x=h-f.top-f.bottom,w=g-f.left-f.right,P=Kr(h-f[y],x),C=Kr(g-f[b],w),k=!r.middlewareData.shift;let j=P,S=C;if((t=r.middlewareData.shift)!=null&&t.enabled.x&&(S=w),(o=r.middlewareData.shift)!=null&&o.enabled.y&&(j=x),k&&!p){const A=lr(f.left,0),q=lr(f.right,0),E=lr(f.top,0),I=lr(f.bottom,0);v?S=g-2*(A!==0||q!==0?A+q:lr(f.left,f.right)):j=h-2*(E!==0||I!==0?E+I:lr(f.top,f.bottom))}await a({...r,availableWidth:S,availableHeight:j});const N=await i.getDimensions(l.floating);return g!==N.width||h!==N.height?{reset:{rects:!0}}:{}}}};function Pn(){return typeof window<"u"}function Dt(e){return pd(e)?(e.nodeName||"").toLowerCase():"#document"}function cr(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function qr(e){var r;return(r=(pd(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function pd(e){return Pn()?e instanceof Node||e instanceof cr(e).Node:!1}function gr(e){return Pn()?e instanceof Element||e instanceof cr(e).Element:!1}function Or(e){return Pn()?e instanceof HTMLElement||e instanceof cr(e).HTMLElement:!1}function Ha(e){return!Pn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof cr(e).ShadowRoot}function go(e){const{overflow:r,overflowX:t,overflowY:o,display:n}=xr(e);return/auto|scroll|overlay|hidden|clip/.test(r+o+t)&&n!=="inline"&&n!=="contents"}function vx(e){return/^(table|td|th)$/.test(Dt(e))}function Cn(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const gx=/transform|translate|scale|rotate|perspective|filter/,xx=/paint|layout|strict|content/,nt=e=>!!e&&e!=="none";let as;function Xi(e){const r=gr(e)?xr(e):e;return nt(r.transform)||nt(r.translate)||nt(r.scale)||nt(r.rotate)||nt(r.perspective)||!Ji()&&(nt(r.backdropFilter)||nt(r.filter))||gx.test(r.willChange||"")||xx.test(r.contain||"")}function bx(e){let r=Gr(e);for(;Or(r)&&!At(r);){if(Xi(r))return r;if(Cn(r))return null;r=Gr(r)}return null}function Ji(){return as==null&&(as=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),as}function At(e){return/^(html|body|#document)$/.test(Dt(e))}function xr(e){return cr(e).getComputedStyle(e)}function kn(e){return gr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Gr(e){if(Dt(e)==="html")return e;const r=e.assignedSlot||e.parentNode||Ha(e)&&e.host||qr(e);return Ha(r)?r.host:r}function vd(e){const r=Gr(e);return At(r)?e.ownerDocument?e.ownerDocument.body:e.body:Or(r)&&go(r)?r:vd(r)}function lo(e,r,t){var o;r===void 0&&(r=[]),t===void 0&&(t=!0);const n=vd(e),s=n===((o=e.ownerDocument)==null?void 0:o.body),i=cr(n);if(s){const l=li(i);return r.concat(i,i.visualViewport||[],go(n)?n:[],l&&t?lo(l):[])}else return r.concat(n,lo(n,[],t))}function li(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function gd(e){const r=xr(e);let t=parseFloat(r.width)||0,o=parseFloat(r.height)||0;const n=Or(e),s=n?e.offsetWidth:t,i=n?e.offsetHeight:o,l=sn(t)!==s||sn(o)!==i;return l&&(t=s,o=i),{width:t,height:o,$:l}}function Qi(e){return gr(e)?e:e.contextElement}function qt(e){const r=Qi(e);if(!Or(r))return Nr(1);const t=r.getBoundingClientRect(),{width:o,height:n,$:s}=gd(r);let i=(s?sn(t.width):t.width)/o,l=(s?sn(t.height):t.height)/n;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const yx=Nr(0);function xd(e){const r=cr(e);return!Ji()||!r.visualViewport?yx:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function wx(e,r,t){return r===void 0&&(r=!1),!t||r&&t!==cr(e)?!1:r}function dt(e,r,t,o){r===void 0&&(r=!1),t===void 0&&(t=!1);const n=e.getBoundingClientRect(),s=Qi(e);let i=Nr(1);r&&(o?gr(o)&&(i=qt(o)):i=qt(e));const l=wx(s,t,o)?xd(s):Nr(0);let a=(n.left+l.x)/i.x,d=(n.top+l.y)/i.y,f=n.width/i.x,m=n.height/i.y;if(s){const p=cr(s),v=o&&gr(o)?cr(o):o;let g=p,h=li(g);for(;h&&o&&v!==g;){const y=qt(h),b=h.getBoundingClientRect(),x=xr(h),w=b.left+(h.clientLeft+parseFloat(x.paddingLeft))*y.x,P=b.top+(h.clientTop+parseFloat(x.paddingTop))*y.y;a*=y.x,d*=y.y,f*=y.x,m*=y.y,a+=w,d+=P,g=cr(h),h=li(g)}}return an({width:f,height:m,x:a,y:d})}function jn(e,r){const t=kn(e).scrollLeft;return r?r.left+t:dt(qr(e)).left+t}function bd(e,r){const t=e.getBoundingClientRect(),o=t.left+r.scrollLeft-jn(e,t),n=t.top+r.scrollTop;return{x:o,y:n}}function Px(e){let{elements:r,rect:t,offsetParent:o,strategy:n}=e;const s=n==="fixed",i=qr(o),l=r?Cn(r.floating):!1;if(o===i||l&&s)return t;let a={scrollLeft:0,scrollTop:0},d=Nr(1);const f=Nr(0),m=Or(o);if((m||!m&&!s)&&((Dt(o)!=="body"||go(i))&&(a=kn(o)),m)){const v=dt(o);d=qt(o),f.x=v.x+o.clientLeft,f.y=v.y+o.clientTop}const p=i&&!m&&!s?bd(i,a):Nr(0);return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-a.scrollLeft*d.x+f.x+p.x,y:t.y*d.y-a.scrollTop*d.y+f.y+p.y}}function Cx(e){return Array.from(e.getClientRects())}function kx(e){const r=qr(e),t=kn(e),o=e.ownerDocument.body,n=lr(r.scrollWidth,r.clientWidth,o.scrollWidth,o.clientWidth),s=lr(r.scrollHeight,r.clientHeight,o.scrollHeight,o.clientHeight);let i=-t.scrollLeft+jn(e);const l=-t.scrollTop;return xr(o).direction==="rtl"&&(i+=lr(r.clientWidth,o.clientWidth)-n),{width:n,height:s,x:i,y:l}}const Ua=25;function jx(e,r){const t=cr(e),o=qr(e),n=t.visualViewport;let s=o.clientWidth,i=o.clientHeight,l=0,a=0;if(n){s=n.width,i=n.height;const f=Ji();(!f||f&&r==="fixed")&&(l=n.offsetLeft,a=n.offsetTop)}const d=jn(o);if(d<=0){const f=o.ownerDocument,m=f.body,p=getComputedStyle(m),v=f.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,g=Math.abs(o.clientWidth-m.clientWidth-v);g<=Ua&&(s-=g)}else d<=Ua&&(s+=d);return{width:s,height:i,x:l,y:a}}function Sx(e,r){const t=dt(e,!0,r==="fixed"),o=t.top+e.clientTop,n=t.left+e.clientLeft,s=Or(e)?qt(e):Nr(1),i=e.clientWidth*s.x,l=e.clientHeight*s.y,a=n*s.x,d=o*s.y;return{width:i,height:l,x:a,y:d}}function Wa(e,r,t){let o;if(r==="viewport")o=jx(e,t);else if(r==="document")o=kx(qr(e));else if(gr(r))o=Sx(r,t);else{const n=xd(e);o={x:r.x-n.x,y:r.y-n.y,width:r.width,height:r.height}}return an(o)}function yd(e,r){const t=Gr(e);return t===r||!gr(t)||At(t)?!1:xr(t).position==="fixed"||yd(t,r)}function Nx(e,r){const t=r.get(e);if(t)return t;let o=lo(e,[],!1).filter(l=>gr(l)&&Dt(l)!=="body"),n=null;const s=xr(e).position==="fixed";let i=s?Gr(e):e;for(;gr(i)&&!At(i);){const l=xr(i),a=Xi(i);!a&&l.position==="fixed"&&(n=null),(s?!a&&!n:!a&&l.position==="static"&&!!n&&(n.position==="absolute"||n.position==="fixed")||go(i)&&!a&&yd(e,i))?o=o.filter(f=>f!==i):n=l,i=Gr(i)}return r.set(e,o),o}function qx(e){let{element:r,boundary:t,rootBoundary:o,strategy:n}=e;const i=[...t==="clippingAncestors"?Cn(r)?[]:Nx(r,this._c):[].concat(t),o],l=Wa(r,i[0],n);let a=l.top,d=l.right,f=l.bottom,m=l.left;for(let p=1;p<i.length;p++){const v=Wa(r,i[p],n);a=lr(v.top,a),d=Kr(v.right,d),f=Kr(v.bottom,f),m=lr(v.left,m)}return{width:d-m,height:f-a,x:m,y:a}}function Ex(e){const{width:r,height:t}=gd(e);return{width:r,height:t}}function Rx(e,r,t){const o=Or(r),n=qr(r),s=t==="fixed",i=dt(e,!0,s,r);let l={scrollLeft:0,scrollTop:0};const a=Nr(0);function d(){a.x=jn(n)}if(o||!o&&!s)if((Dt(r)!=="body"||go(n))&&(l=kn(r)),o){const v=dt(r,!0,s,r);a.x=v.x+r.clientLeft,a.y=v.y+r.clientTop}else n&&d();s&&!o&&n&&d();const f=n&&!o&&!s?bd(n,l):Nr(0),m=i.left+l.scrollLeft-a.x-f.x,p=i.top+l.scrollTop-a.y-f.y;return{x:m,y:p,width:i.width,height:i.height}}function cs(e){return xr(e).position==="static"}function Ka(e,r){if(!Or(e)||xr(e).position==="fixed")return null;if(r)return r(e);let t=e.offsetParent;return qr(e)===t&&(t=t.ownerDocument.body),t}function wd(e,r){const t=cr(e);if(Cn(e))return t;if(!Or(e)){let n=Gr(e);for(;n&&!At(n);){if(gr(n)&&!cs(n))return n;n=Gr(n)}return t}let o=Ka(e,r);for(;o&&vx(o)&&cs(o);)o=Ka(o,r);return o&&At(o)&&cs(o)&&!Xi(o)?t:o||bx(e)||t}const Ax=async function(e){const r=this.getOffsetParent||wd,t=this.getDimensions,o=await t(e.floating);return{reference:Rx(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Ix(e){return xr(e).direction==="rtl"}const Tx={convertOffsetParentRelativeRectToViewportRelativeRect:Px,getDocumentElement:qr,getClippingRect:qx,getOffsetParent:wd,getElementRects:Ax,getClientRects:Cx,getDimensions:Ex,getScale:qt,isElement:gr,isRTL:Ix};function Pd(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function _x(e,r){let t=null,o;const n=qr(e);function s(){var l;clearTimeout(o),(l=t)==null||l.disconnect(),t=null}function i(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),s();const d=e.getBoundingClientRect(),{left:f,top:m,width:p,height:v}=d;if(l||r(),!p||!v)return;const g=Ao(m),h=Ao(n.clientWidth-(f+p)),y=Ao(n.clientHeight-(m+v)),b=Ao(f),w={rootMargin:-g+"px "+-h+"px "+-y+"px "+-b+"px",threshold:lr(0,Kr(1,a))||1};let P=!0;function C(k){const j=k[0].intersectionRatio;if(j!==a){if(!P)return i();j?i(!1,j):o=setTimeout(()=>{i(!1,1e-7)},1e3)}j===1&&!Pd(d,e.getBoundingClientRect())&&i(),P=!1}try{t=new IntersectionObserver(C,{...w,root:n.ownerDocument})}catch{t=new IntersectionObserver(C,w)}t.observe(e)}return i(!0),s}function Ox(e,r,t,o){o===void 0&&(o={});const{ancestorScroll:n=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=o,d=Qi(e),f=n||s?[...d?lo(d):[],...r?lo(r):[]]:[];f.forEach(b=>{n&&b.addEventListener("scroll",t,{passive:!0}),s&&b.addEventListener("resize",t)});const m=d&&l?_x(d,t):null;let p=-1,v=null;i&&(v=new ResizeObserver(b=>{let[x]=b;x&&x.target===d&&v&&r&&(v.unobserve(r),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=v)==null||w.observe(r)})),t()}),d&&!a&&v.observe(d),r&&v.observe(r));let g,h=a?dt(e):null;a&&y();function y(){const b=dt(e);h&&!Pd(h,b)&&t(),h=b,g=requestAnimationFrame(y)}return t(),()=>{var b;f.forEach(x=>{n&&x.removeEventListener("scroll",t),s&&x.removeEventListener("resize",t)}),m?.(),(b=v)==null||b.disconnect(),v=null,a&&cancelAnimationFrame(g)}}const Mx=fx,Lx=mx,Dx=cx,Fx=px,Bx=ux,Ga=ax,$x=hx,Vx=(e,r,t)=>{const o=new Map,n={platform:Tx,...t},s={...n.platform,_c:o};return lx(e,r,{...n,platform:s})};var zx=typeof document<"u",Hx=function(){},Yo=zx?Oe.useLayoutEffect:Hx;function cn(e,r){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(typeof e=="function"&&e.toString()===r.toString())return!0;let t,o,n;if(e&&r&&typeof e=="object"){if(Array.isArray(e)){if(t=e.length,t!==r.length)return!1;for(o=t;o--!==0;)if(!cn(e[o],r[o]))return!1;return!0}if(n=Object.keys(e),t=n.length,t!==Object.keys(r).length)return!1;for(o=t;o--!==0;)if(!{}.hasOwnProperty.call(r,n[o]))return!1;for(o=t;o--!==0;){const s=n[o];if(!(s==="_owner"&&e.$$typeof)&&!cn(e[s],r[s]))return!1}return!0}return e!==e&&r!==r}function Cd(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ya(e,r){const t=Cd(e);return Math.round(r*t)/t}function us(e){const r=u.useRef(e);return Yo(()=>{r.current=e}),r}function Ux(e){e===void 0&&(e={});const{placement:r="bottom",strategy:t="absolute",middleware:o=[],platform:n,elements:{reference:s,floating:i}={},transform:l=!0,whileElementsMounted:a,open:d}=e,[f,m]=u.useState({x:0,y:0,strategy:t,placement:r,middlewareData:{},isPositioned:!1}),[p,v]=u.useState(o);cn(p,o)||v(o);const[g,h]=u.useState(null),[y,b]=u.useState(null),x=u.useCallback(M=>{M!==k.current&&(k.current=M,h(M))},[]),w=u.useCallback(M=>{M!==j.current&&(j.current=M,b(M))},[]),P=s||g,C=i||y,k=u.useRef(null),j=u.useRef(null),S=u.useRef(f),N=a!=null,A=us(a),q=us(n),E=us(d),I=u.useCallback(()=>{if(!k.current||!j.current)return;const M={placement:r,strategy:t,middleware:p};q.current&&(M.platform=q.current),Vx(k.current,j.current,M).then(W=>{const F={...W,isPositioned:E.current!==!1};_.current&&!cn(S.current,F)&&(S.current=F,mo.flushSync(()=>{m(F)}))})},[p,r,t,q,E]);Yo(()=>{d===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,m(M=>({...M,isPositioned:!1})))},[d]);const _=u.useRef(!1);Yo(()=>(_.current=!0,()=>{_.current=!1}),[]),Yo(()=>{if(P&&(k.current=P),C&&(j.current=C),P&&C){if(A.current)return A.current(P,C,I);I()}},[P,C,I,A,N]);const O=u.useMemo(()=>({reference:k,floating:j,setReference:x,setFloating:w}),[x,w]),T=u.useMemo(()=>({reference:P,floating:C}),[P,C]),$=u.useMemo(()=>{const M={position:t,left:0,top:0};if(!T.floating)return M;const W=Ya(T.floating,f.x),F=Ya(T.floating,f.y);return l?{...M,transform:"translate("+W+"px, "+F+"px)",...Cd(T.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:W,top:F}},[t,l,T.floating,f.x,f.y]);return u.useMemo(()=>({...f,update:I,refs:O,elements:T,floatingStyles:$}),[f,I,O,T,$])}const Wx=e=>{function r(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:e,fn(t){const{element:o,padding:n}=typeof e=="function"?e(t):e;return o&&r(o)?o.current!=null?Ga({element:o.current,padding:n}).fn(t):{}:o?Ga({element:o,padding:n}).fn(t):{}}}},Kx=(e,r)=>{const t=Mx(e);return{name:t.name,fn:t.fn,options:[e,r]}},Gx=(e,r)=>{const t=Lx(e);return{name:t.name,fn:t.fn,options:[e,r]}},Yx=(e,r)=>({fn:$x(e).fn,options:[e,r]}),Xx=(e,r)=>{const t=Dx(e);return{name:t.name,fn:t.fn,options:[e,r]}},Jx=(e,r)=>{const t=Fx(e);return{name:t.name,fn:t.fn,options:[e,r]}},Qx=(e,r)=>{const t=Bx(e);return{name:t.name,fn:t.fn,options:[e,r]}},Zx=(e,r)=>{const t=Wx(e);return{name:t.name,fn:t.fn,options:[e,r]}};var eb="Arrow",kd=u.forwardRef((e,r)=>{const{children:t,width:o=10,height:n=5,...s}=e;return c.jsx(ye.svg,{...s,ref:r,width:o,height:n,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?t:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});kd.displayName=eb;var rb=kd;function Sn(e){const[r,t]=u.useState(void 0);return Ve(()=>{if(e){t({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;const s=n[0];let i,l;if("borderBoxSize"in s){const a=s.borderBoxSize,d=Array.isArray(a)?a[0]:a;i=d.inlineSize,l=d.blockSize}else i=e.offsetWidth,l=e.offsetHeight;t({width:i,height:l})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else t(void 0)},[e]),r}var Zi="Popper",[jd,Ft]=br(Zi),[tb,Sd]=jd(Zi),Nd=e=>{const{__scopePopper:r,children:t}=e,[o,n]=u.useState(null);return c.jsx(tb,{scope:r,anchor:o,onAnchorChange:n,children:t})};Nd.displayName=Zi;var qd="PopperAnchor",Ed=u.forwardRef((e,r)=>{const{__scopePopper:t,virtualRef:o,...n}=e,s=Sd(qd,t),i=u.useRef(null),l=Re(r,i),a=u.useRef(null);return u.useEffect(()=>{const d=a.current;a.current=o?.current||i.current,d!==a.current&&s.onAnchorChange(a.current)}),o?null:c.jsx(ye.div,{...n,ref:l})});Ed.displayName=qd;var el="PopperContent",[ob,nb]=jd(el),Rd=u.forwardRef((e,r)=>{const{__scopePopper:t,side:o="bottom",sideOffset:n=0,align:s="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:m="partial",hideWhenDetached:p=!1,updatePositionStrategy:v="optimized",onPlaced:g,...h}=e,y=Sd(el,t),[b,x]=u.useState(null),w=Re(r,B=>x(B)),[P,C]=u.useState(null),k=Sn(P),j=k?.width??0,S=k?.height??0,N=o+(s!=="center"?"-"+s:""),A=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},q=Array.isArray(d)?d:[d],E=q.length>0,I={padding:A,boundary:q.filter(ib),altBoundary:E},{refs:_,floatingStyles:O,placement:T,isPositioned:$,middlewareData:M}=Ux({strategy:"fixed",placement:N,whileElementsMounted:(...B)=>Ox(...B,{animationFrame:v==="always"}),elements:{reference:y.anchor},middleware:[Kx({mainAxis:n+S,alignmentAxis:i}),a&&Gx({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?Yx():void 0,...I}),a&&Xx({...I}),Jx({...I,apply:({elements:B,rects:G,availableWidth:H,availableHeight:U})=>{const{width:Y,height:Z}=G.reference,ae=B.floating.style;ae.setProperty("--radix-popper-available-width",`${H}px`),ae.setProperty("--radix-popper-available-height",`${U}px`),ae.setProperty("--radix-popper-anchor-width",`${Y}px`),ae.setProperty("--radix-popper-anchor-height",`${Z}px`)}}),P&&Zx({element:P,padding:l}),lb({arrowWidth:j,arrowHeight:S}),p&&Qx({strategy:"referenceHidden",...I})]}),[W,F]=Td(T),X=Ar(g);Ve(()=>{$&&X?.()},[$,X]);const ue=M.arrow?.x,ee=M.arrow?.y,Q=M.arrow?.centerOffset!==0,[K,J]=u.useState();return Ve(()=>{b&&J(window.getComputedStyle(b).zIndex)},[b]),c.jsx("div",{ref:_.setFloating,"data-radix-popper-content-wrapper":"",style:{...O,transform:$?O.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:K,"--radix-popper-transform-origin":[M.transformOrigin?.x,M.transformOrigin?.y].join(" "),...M.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(ob,{scope:t,placedSide:W,onArrowChange:C,arrowX:ue,arrowY:ee,shouldHideArrow:Q,children:c.jsx(ye.div,{"data-side":W,"data-align":F,...h,ref:w,style:{...h.style,animation:$?void 0:"none"}})})})});Rd.displayName=el;var Ad="PopperArrow",sb={top:"bottom",right:"left",bottom:"top",left:"right"},Id=u.forwardRef(function(r,t){const{__scopePopper:o,...n}=r,s=nb(Ad,o),i=sb[s.placedSide];return c.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:c.jsx(rb,{...n,ref:t,style:{...n.style,display:"block"}})})});Id.displayName=Ad;function ib(e){return e!==null}var lb=e=>({name:"transformOrigin",options:e,fn(r){const{placement:t,rects:o,middlewareData:n}=r,i=n.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[d,f]=Td(t),m={start:"0%",center:"50%",end:"100%"}[f],p=(n.arrow?.x??0)+l/2,v=(n.arrow?.y??0)+a/2;let g="",h="";return d==="bottom"?(g=i?m:`${p}px`,h=`${-a}px`):d==="top"?(g=i?m:`${p}px`,h=`${o.floating.height+a}px`):d==="right"?(g=`${-a}px`,h=i?m:`${v}px`):d==="left"&&(g=`${o.floating.width+a}px`,h=i?m:`${v}px`),{data:{x:g,y:h}}}});function Td(e){const[r,t="center"]=e.split("-");return[r,t]}var rl=Nd,Nn=Ed,tl=Rd,ol=Id,ab="Portal",qn=u.forwardRef((e,r)=>{const{container:t,...o}=e,[n,s]=u.useState(!1);Ve(()=>s(!0),[]);const i=t||n&&globalThis?.document?.body;return i?bu.createPortal(c.jsx(ye.div,{...o,ref:r}),i):null});qn.displayName=ab;function cb(e,r){return u.useReducer((t,o)=>r[t][o]??t,e)}var Qr=e=>{const{present:r,children:t}=e,o=ub(r),n=typeof t=="function"?t({present:o.isPresent}):u.Children.only(t),s=Re(o.ref,db(n));return typeof t=="function"||o.isPresent?u.cloneElement(n,{ref:s}):null};Qr.displayName="Presence";function ub(e){const[r,t]=u.useState(),o=u.useRef(null),n=u.useRef(e),s=u.useRef("none"),i=e?"mounted":"unmounted",[l,a]=cb(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const d=Io(o.current);s.current=l==="mounted"?d:"none"},[l]),Ve(()=>{const d=o.current,f=n.current;if(f!==e){const p=s.current,v=Io(d);e?a("MOUNT"):v==="none"||d?.display==="none"?a("UNMOUNT"):a(f&&p!==v?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,a]),Ve(()=>{if(r){let d;const f=r.ownerDocument.defaultView??window,m=v=>{const h=Io(o.current).includes(CSS.escape(v.animationName));if(v.target===r&&h&&(a("ANIMATION_END"),!n.current)){const y=r.style.animationFillMode;r.style.animationFillMode="forwards",d=f.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=y)})}},p=v=>{v.target===r&&(s.current=Io(o.current))};return r.addEventListener("animationstart",p),r.addEventListener("animationcancel",m),r.addEventListener("animationend",m),()=>{f.clearTimeout(d),r.removeEventListener("animationstart",p),r.removeEventListener("animationcancel",m),r.removeEventListener("animationend",m)}}else a("ANIMATION_END")},[r,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:u.useCallback(d=>{o.current=d?getComputedStyle(d):null,t(d)},[])}}function Io(e){return e?.animationName||"none"}function db(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning;return t?e.ref:(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}var fb=u[" useInsertionEffect ".trim().toString()]||Ve;function _r({prop:e,defaultProp:r,onChange:t=()=>{},caller:o}){const[n,s,i]=mb({defaultProp:r,onChange:t}),l=e!==void 0,a=l?e:n;{const f=u.useRef(e!==void 0);u.useEffect(()=>{const m=f.current;m!==l&&console.warn(`${o} 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.`),f.current=l},[l,o])}const d=u.useCallback(f=>{if(l){const m=hb(f)?f(e):f;m!==e&&i.current?.(m)}else s(f)},[l,e,s,i]);return[a,d]}function mb({defaultProp:e,onChange:r}){const[t,o]=u.useState(e),n=u.useRef(t),s=u.useRef(r);return fb(()=>{s.current=r},[r]),u.useEffect(()=>{n.current!==t&&(s.current?.(t),n.current=t)},[t,n]),[t,o,s]}function hb(e){return typeof e=="function"}var pb=function(e){if(typeof document>"u")return null;var r=Array.isArray(e)?e[0]:e;return r.ownerDocument.body},wt=new WeakMap,To=new WeakMap,_o={},ds=0,_d=function(e){return e&&(e.host||_d(e.parentNode))},vb=function(e,r){return r.map(function(t){if(e.contains(t))return t;var o=_d(t);return o&&e.contains(o)?o:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return!!t})},gb=function(e,r,t,o){var n=vb(r,Array.isArray(e)?e:[e]);_o[t]||(_o[t]=new WeakMap);var s=_o[t],i=[],l=new Set,a=new Set(n),d=function(m){!m||l.has(m)||(l.add(m),d(m.parentNode))};n.forEach(d);var f=function(m){!m||a.has(m)||Array.prototype.forEach.call(m.children,function(p){if(l.has(p))f(p);else try{var v=p.getAttribute(o),g=v!==null&&v!=="false",h=(wt.get(p)||0)+1,y=(s.get(p)||0)+1;wt.set(p,h),s.set(p,y),i.push(p),h===1&&g&&To.set(p,!0),y===1&&p.setAttribute(t,"true"),g||p.setAttribute(o,"true")}catch(b){console.error("aria-hidden: cannot operate on ",p,b)}})};return f(r),l.clear(),ds++,function(){i.forEach(function(m){var p=wt.get(m)-1,v=s.get(m)-1;wt.set(m,p),s.set(m,v),p||(To.has(m)||m.removeAttribute(o),To.delete(m)),v||m.removeAttribute(t)}),ds--,ds||(wt=new WeakMap,wt=new WeakMap,To=new WeakMap,_o={})}},Od=function(e,r,t){t===void 0&&(t="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),n=pb(e);return n?(o.push.apply(o,Array.from(n.querySelectorAll("[aria-live], script"))),gb(o,n,t,"aria-hidden")):function(){return null}},kr=function(){return kr=Object.assign||function(r){for(var t,o=1,n=arguments.length;o<n;o++){t=arguments[o];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=t[s])}return r},kr.apply(this,arguments)};function Md(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)r.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(t[o[n]]=e[o[n]]);return t}function xb(e,r,t){if(t||arguments.length===2)for(var o=0,n=r.length,s;o<n;o++)(s||!(o in r))&&(s||(s=Array.prototype.slice.call(r,0,o)),s[o]=r[o]);return e.concat(s||Array.prototype.slice.call(r))}var Xo="right-scroll-bar-position",Jo="width-before-scroll-bar",bb="with-scroll-bars-hidden",yb="--removed-body-scroll-bar-size";function fs(e,r){return typeof e=="function"?e(r):e&&(e.current=r),e}function wb(e,r){var t=Oe.useState(function(){return{value:e,callback:r,facade:{get current(){return t.value},set current(o){var n=t.value;n!==o&&(t.value=o,t.callback(o,n))}}}})[0];return t.callback=r,t.facade}var Pb=typeof window<"u"?u.useLayoutEffect:u.useEffect,Xa=new WeakMap;function Cb(e,r){var t=wb(null,function(o){return e.forEach(function(n){return fs(n,o)})});return Pb(function(){var o=Xa.get(t);if(o){var n=new Set(o),s=new Set(e),i=t.current;n.forEach(function(l){s.has(l)||fs(l,null)}),s.forEach(function(l){n.has(l)||fs(l,i)})}Xa.set(t,e)},[e]),t}function kb(e){return e}function jb(e,r){r===void 0&&(r=kb);var t=[],o=!1,n={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return t.length?t[t.length-1]:e},useMedium:function(s){var i=r(s,o);return t.push(i),function(){t=t.filter(function(l){return l!==i})}},assignSyncMedium:function(s){for(o=!0;t.length;){var i=t;t=[],i.forEach(s)}t={push:function(l){return s(l)},filter:function(){return t}}},assignMedium:function(s){o=!0;var i=[];if(t.length){var l=t;t=[],l.forEach(s),i=t}var a=function(){var f=i;i=[],f.forEach(s)},d=function(){return Promise.resolve().then(a)};d(),t={push:function(f){i.push(f),d()},filter:function(f){return i=i.filter(f),t}}}};return n}function Sb(e){e===void 0&&(e={});var r=jb(null);return r.options=kr({async:!0,ssr:!1},e),r}var Ld=function(e){var r=e.sideCar,t=Md(e,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=r.read();if(!o)throw new Error("Sidecar medium not found");return u.createElement(o,kr({},t))};Ld.isSideCarExport=!0;function Nb(e,r){return e.useMedium(r),Ld}var Dd=Sb(),ms=function(){},En=u.forwardRef(function(e,r){var t=u.useRef(null),o=u.useState({onScrollCapture:ms,onWheelCapture:ms,onTouchMoveCapture:ms}),n=o[0],s=o[1],i=e.forwardProps,l=e.children,a=e.className,d=e.removeScrollBar,f=e.enabled,m=e.shards,p=e.sideCar,v=e.noRelative,g=e.noIsolation,h=e.inert,y=e.allowPinchZoom,b=e.as,x=b===void 0?"div":b,w=e.gapMode,P=Md(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=p,k=Cb([t,r]),j=kr(kr({},P),n);return u.createElement(u.Fragment,null,f&&u.createElement(C,{sideCar:Dd,removeScrollBar:d,shards:m,noRelative:v,noIsolation:g,inert:h,setCallbacks:s,allowPinchZoom:!!y,lockRef:t,gapMode:w}),i?u.cloneElement(u.Children.only(l),kr(kr({},j),{ref:k})):u.createElement(x,kr({},j,{className:a,ref:k}),l))});En.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};En.classNames={fullWidth:Jo,zeroRight:Xo};var qb=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Eb(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var r=qb();return r&&e.setAttribute("nonce",r),e}function Rb(e,r){e.styleSheet?e.styleSheet.cssText=r:e.appendChild(document.createTextNode(r))}function Ab(e){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(e)}var Ib=function(){var e=0,r=null;return{add:function(t){e==0&&(r=Eb())&&(Rb(r,t),Ab(r)),e++},remove:function(){e--,!e&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},Tb=function(){var e=Ib();return function(r,t){u.useEffect(function(){return e.add(r),function(){e.remove()}},[r&&t])}},Fd=function(){var e=Tb(),r=function(t){var o=t.styles,n=t.dynamic;return e(o,n),null};return r},_b={left:0,top:0,right:0,gap:0},hs=function(e){return parseInt(e||"",10)||0},Ob=function(e){var r=window.getComputedStyle(document.body),t=r[e==="padding"?"paddingLeft":"marginLeft"],o=r[e==="padding"?"paddingTop":"marginTop"],n=r[e==="padding"?"paddingRight":"marginRight"];return[hs(t),hs(o),hs(n)]},Mb=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return _b;var r=Ob(e),t=document.documentElement.clientWidth,o=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,o-t+r[2]-r[0])}},Lb=Fd(),Et="data-scroll-locked",Db=function(e,r,t,o){var n=e.left,s=e.top,i=e.right,l=e.gap;return t===void 0&&(t="margin"),`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),Oe=require("react"),bu=require("react-dom");function yu(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const u=yu(Oe),mo=yu(bu);function wu(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(r=0;r<n;r++)e[r]&&(t=wu(e[r]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function Pu(){for(var e,r,t=0,o="",n=arguments.length;t<n;t++)(e=arguments[t])&&(r=wu(e))&&(o&&(o+=" "),o+=r);return o}const la=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,aa=Pu,Cu=(e,r)=>t=>{var o;if(r?.variants==null)return aa(e,t?.class,t?.className);const{variants:n,defaultVariants:s}=r,i=Object.keys(n).map(d=>{const f=t?.[d],m=s?.[d];if(f===null)return null;const p=la(f)||la(m);return n[d][p]}),l=t&&Object.entries(t).reduce((d,f)=>{let[m,p]=f;return p===void 0||(d[m]=p),d},{}),a=r==null||(o=r.compoundVariants)===null||o===void 0?void 0:o.reduce((d,f)=>{let{class:m,className:p,...v}=f;return Object.entries(v).every(g=>{let[h,y]=g;return Array.isArray(y)?y.includes({...s,...l}[h]):{...s,...l}[h]===y})?[...d,m,p]:d},[]);return aa(e,i,a,t?.class,t?.className)},Yr={xs:"rounded-[2px]",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"};function pp(e){return typeof e=="string"&&Object.prototype.hasOwnProperty.call(Yr,e)}function ht(e){return e===void 0?{}:typeof e=="number"?{roundedStyle:{borderRadius:`${e}px`}}:pp(e)?{roundedPreset:e}:{roundedStyle:{borderRadius:e}}}const Ot={none:"shadow-none",xs:"shadow-[0_1px_2px_rgba(15,23,42,0.08)]",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg",xl:"shadow-xl",inner:"shadow-inner"};function vp(e){return typeof e=="string"&&Object.prototype.hasOwnProperty.call(Ot,e)}function ho(e){return e===void 0?{}:vp(e)?{shadowPreset:e}:{shadowStyle:{boxShadow:e}}}const ku=Cu("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{dark:"bg-[color:var(--ldkj-color-inverse)] text-[color:var(--ldkj-color-inverse-foreground)] hover:bg-[color:var(--ldkj-color-inverse)]",primary:"bg-[color:var(--ldkj-color-primary)] text-[color:var(--ldkj-color-primary-foreground)] hover:bg-[color:var(--ldkj-color-primary-hover)]",secondary:"bg-[color:var(--ldkj-color-secondary)] text-[color:var(--ldkj-color-secondary-foreground)] hover:bg-[color:var(--ldkj-color-secondary-hover)]",minor:"bg-[color:var(--ldkj-color-muted)] text-[color:var(--ldkj-color-muted-foreground)] hover:bg-[color:var(--ldkj-color-accent-hover)]",success:"bg-[color:var(--ldkj-color-success)] text-[color:var(--ldkj-color-success-foreground)] hover:brightness-95",warning:"bg-[color:var(--ldkj-color-warning)] text-[color:var(--ldkj-color-warning-foreground)] hover:brightness-95",danger:"bg-[color:var(--ldkj-color-danger)] text-[color:var(--ldkj-color-danger-foreground)] hover:brightness-95",outline:"border border-solid border-[color:var(--ldkj-color-primary)] bg-[color:var(--ldkj-color-background)] text-[color:var(--ldkj-color-primary)] hover:border-[color:var(--ldkj-color-primary-hover)] hover:text-[color:var(--ldkj-color-primary-hover)]",ghost:"text-[color:var(--ldkj-color-foreground)] hover:bg-[color:var(--ldkj-color-accent)] hover:text-[color:var(--ldkj-color-accent-foreground)]",link:"text-[color:var(--ldkj-color-primary)] underline-offset-4 hover:text-[color:var(--ldkj-color-primary-hover)] hover:underline",text:"text-[color:var(--ldkj-color-foreground)]"},size:{xs:"h-6 text-[10px] px-2",sm:"h-7 text-xs px-3",md:"h-8 text-sm px-4",lg:"h-9 text-lg px-8",xl:"h-10 text-lg px-10",icon:"h-8 w-8"},rounded:Yr,shadow:Ot,bounce:{true:"transition-all ease-out active:-translate-y-[10%] active:scale-98"},splash:{true:"active:opacity-90"}},defaultVariants:{variant:"primary",size:"md",bounce:!1,splash:!1}}),gp=(e,r)=>{const t=new Array(e.length+r.length);for(let o=0;o<e.length;o++)t[o]=e[o];for(let o=0;o<r.length;o++)t[e.length+o]=r[o];return t},xp=(e,r)=>({classGroupId:e,validator:r}),ju=(e=new Map,r=null,t)=>({nextPart:e,validators:r,classGroupId:t}),tn="-",ca=[],bp="arbitrary..",yp=e=>{const r=Pp(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return wp(i);const l=i.split(tn),a=l[0]===""&&l.length>1?1:0;return Su(l,a,r)},getConflictingClassGroupIds:(i,l)=>{if(l){const a=o[i],d=t[i];return a?d?gp(d,a):a:d||ca}return t[i]||ca}}},Su=(e,r,t)=>{if(e.length-r===0)return t.classGroupId;const n=e[r],s=t.nextPart.get(n);if(s){const d=Su(e,r+1,s);if(d)return d}const i=t.validators;if(i===null)return;const l=r===0?e.join(tn):e.slice(r).join(tn),a=i.length;for(let d=0;d<a;d++){const f=i[d];if(f.validator(l))return f.classGroupId}},wp=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=e.slice(1,-1),t=r.indexOf(":"),o=r.slice(0,t);return o?bp+o:void 0})(),Pp=e=>{const{theme:r,classGroups:t}=e;return Cp(t,r)},Cp=(e,r)=>{const t=ju();for(const o in e){const n=e[o];Si(n,t,o,r)}return t},Si=(e,r,t,o)=>{const n=e.length;for(let s=0;s<n;s++){const i=e[s];kp(i,r,t,o)}},kp=(e,r,t,o)=>{if(typeof e=="string"){jp(e,r,t);return}if(typeof e=="function"){Sp(e,r,t,o);return}Np(e,r,t,o)},jp=(e,r,t)=>{const o=e===""?r:Nu(r,e);o.classGroupId=t},Sp=(e,r,t,o)=>{if(qp(e)){Si(e(o),r,t,o);return}r.validators===null&&(r.validators=[]),r.validators.push(xp(t,e))},Np=(e,r,t,o)=>{const n=Object.entries(e),s=n.length;for(let i=0;i<s;i++){const[l,a]=n[i];Si(a,Nu(r,l),t,o)}},Nu=(e,r)=>{let t=e;const o=r.split(tn),n=o.length;for(let s=0;s<n;s++){const i=o[s];let l=t.nextPart.get(i);l||(l=ju(),t.nextPart.set(i,l)),t=l}return t},qp=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Ep=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=Object.create(null),o=Object.create(null);const n=(s,i)=>{t[s]=i,r++,r>e&&(r=0,o=t,t=Object.create(null))};return{get(s){let i=t[s];if(i!==void 0)return i;if((i=o[s])!==void 0)return n(s,i),i},set(s,i){s in t?t[s]=i:n(s,i)}}},Zs="!",ua=":",Rp=[],da=(e,r,t,o,n)=>({modifiers:e,hasImportantModifier:r,baseClassName:t,maybePostfixModifierPosition:o,isExternal:n}),Ap=e=>{const{prefix:r,experimentalParseClassName:t}=e;let o=n=>{const s=[];let i=0,l=0,a=0,d;const f=n.length;for(let h=0;h<f;h++){const y=n[h];if(i===0&&l===0){if(y===ua){s.push(n.slice(a,h)),a=h+1;continue}if(y==="/"){d=h;continue}}y==="["?i++:y==="]"?i--:y==="("?l++:y===")"&&l--}const m=s.length===0?n:n.slice(a);let p=m,v=!1;m.endsWith(Zs)?(p=m.slice(0,-1),v=!0):m.startsWith(Zs)&&(p=m.slice(1),v=!0);const g=d&&d>a?d-a:void 0;return da(s,v,p,g)};if(r){const n=r+ua,s=o;o=i=>i.startsWith(n)?s(i.slice(n.length)):da(Rp,!1,i,void 0,!0)}if(t){const n=o;o=s=>t({className:s,parseClassName:n})}return o},Ip=e=>{const r=new Map;return e.orderSensitiveModifiers.forEach((t,o)=>{r.set(t,1e6+o)}),t=>{const o=[];let n=[];for(let s=0;s<t.length;s++){const i=t[s],l=i[0]==="[",a=r.has(i);l||a?(n.length>0&&(n.sort(),o.push(...n),n=[]),o.push(i)):n.push(i)}return n.length>0&&(n.sort(),o.push(...n)),o}},Tp=e=>({cache:Ep(e.cacheSize),parseClassName:Ap(e),sortModifiers:Ip(e),...yp(e)}),_p=/\s+/,Op=(e,r)=>{const{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:n,sortModifiers:s}=r,i=[],l=e.trim().split(_p);let a="";for(let d=l.length-1;d>=0;d-=1){const f=l[d],{isExternal:m,modifiers:p,hasImportantModifier:v,baseClassName:g,maybePostfixModifierPosition:h}=t(f);if(m){a=f+(a.length>0?" "+a:a);continue}let y=!!h,b=o(y?g.substring(0,h):g);if(!b){if(!y){a=f+(a.length>0?" "+a:a);continue}if(b=o(g),!b){a=f+(a.length>0?" "+a:a);continue}y=!1}const x=p.length===0?"":p.length===1?p[0]:s(p).join(":"),w=v?x+Zs:x,P=w+b;if(i.indexOf(P)>-1)continue;i.push(P);const C=n(b,y);for(let k=0;k<C.length;++k){const j=C[k];i.push(w+j)}a=f+(a.length>0?" "+a:a)}return a},Mp=(...e)=>{let r=0,t,o,n="";for(;r<e.length;)(t=e[r++])&&(o=qu(t))&&(n&&(n+=" "),n+=o);return n},qu=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=qu(e[o]))&&(t&&(t+=" "),t+=r);return t},Lp=(e,...r)=>{let t,o,n,s;const i=a=>{const d=r.reduce((f,m)=>m(f),e());return t=Tp(d),o=t.cache.get,n=t.cache.set,s=l,l(a)},l=a=>{const d=o(a);if(d)return d;const f=Op(a,t);return n(a,f),f};return s=i,(...a)=>s(Mp(...a))},Dp=[],Be=e=>{const r=t=>t[e]||Dp;return r.isThemeGetter=!0,r},Eu=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ru=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Fp=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Bp=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$p=/\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$/,Vp=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,zp=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Hp=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Fr=e=>Fp.test(e),be=e=>!!e&&!Number.isNaN(Number(e)),Br=e=>!!e&&Number.isInteger(Number(e)),ts=e=>e.endsWith("%")&&be(e.slice(0,-1)),Er=e=>Bp.test(e),Au=()=>!0,Up=e=>$p.test(e)&&!Vp.test(e),Ni=()=>!1,Wp=e=>zp.test(e),Kp=e=>Hp.test(e),Gp=e=>!ne(e)&&!le(e),Yp=e=>Xr(e,_u,Ni),ne=e=>Eu.test(e),ot=e=>Xr(e,Ou,Up),fa=e=>Xr(e,ov,be),Xp=e=>Xr(e,Lu,Au),Jp=e=>Xr(e,Mu,Ni),ma=e=>Xr(e,Iu,Ni),Qp=e=>Xr(e,Tu,Kp),No=e=>Xr(e,Du,Wp),le=e=>Ru.test(e),zt=e=>pt(e,Ou),Zp=e=>pt(e,Mu),ha=e=>pt(e,Iu),ev=e=>pt(e,_u),rv=e=>pt(e,Tu),qo=e=>pt(e,Du,!0),tv=e=>pt(e,Lu,!0),Xr=(e,r,t)=>{const o=Eu.exec(e);return o?o[1]?r(o[1]):t(o[2]):!1},pt=(e,r,t=!1)=>{const o=Ru.exec(e);return o?o[1]?r(o[1]):t:!1},Iu=e=>e==="position"||e==="percentage",Tu=e=>e==="image"||e==="url",_u=e=>e==="length"||e==="size"||e==="bg-size",Ou=e=>e==="length",ov=e=>e==="number",Mu=e=>e==="family-name",Lu=e=>e==="number"||e==="weight",Du=e=>e==="shadow",nv=()=>{const e=Be("color"),r=Be("font"),t=Be("text"),o=Be("font-weight"),n=Be("tracking"),s=Be("leading"),i=Be("breakpoint"),l=Be("container"),a=Be("spacing"),d=Be("radius"),f=Be("shadow"),m=Be("inset-shadow"),p=Be("text-shadow"),v=Be("drop-shadow"),g=Be("blur"),h=Be("perspective"),y=Be("aspect"),b=Be("ease"),x=Be("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...P(),le,ne],k=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],S=()=>[le,ne,a],N=()=>[Fr,"full","auto",...S()],A=()=>[Br,"none","subgrid",le,ne],q=()=>["auto",{span:["full",Br,le,ne]},Br,le,ne],E=()=>[Br,"auto",le,ne],I=()=>["auto","min","max","fr",le,ne],_=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],O=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...S()],$=()=>[Fr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],M=()=>[Fr,"screen","full","dvw","lvw","svw","min","max","fit",...S()],U=()=>[Fr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...S()],F=()=>[e,le,ne],X=()=>[...P(),ha,ma,{position:[le,ne]}],ue=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ee=()=>["auto","cover","contain",ev,Yp,{size:[le,ne]}],Q=()=>[ts,zt,ot],W=()=>["","none","full",d,le,ne],J=()=>["",be,zt,ot],B=()=>["solid","dashed","dotted","double"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>[be,ts,ha,ma],G=()=>["","none",g,le,ne],Y=()=>["none",be,le,ne],Z=()=>["none",be,le,ne],ae=()=>[be,le,ne],fe=()=>[Fr,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Er],breakpoint:[Er],color:[Au],container:[Er],"drop-shadow":[Er],ease:["in","out","in-out"],font:[Gp],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Er],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Er],shadow:[Er],spacing:["px",be],text:[Er],"text-shadow":[Er],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Fr,ne,le,y]}],container:["container"],columns:[{columns:[be,ne,le,l]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"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:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{"inset-s":N(),start:N()}],end:[{"inset-e":N(),end:N()}],"inset-bs":[{"inset-bs":N()}],"inset-be":[{"inset-be":N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[Br,"auto",le,ne]}],basis:[{basis:[Fr,"full","auto",l,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[be,Fr,"auto","initial","none",ne]}],grow:[{grow:["",be,le,ne]}],shrink:[{shrink:["",be,le,ne]}],order:[{order:[Br,"first","last","none",le,ne]}],"grid-cols":[{"grid-cols":A()}],"col-start-end":[{col:q()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":A()}],"row-start-end":[{row:q()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":I()}],"auto-rows":[{"auto-rows":I()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[..._(),"normal"]}],"justify-items":[{"justify-items":[...O(),"normal"]}],"justify-self":[{"justify-self":["auto",...O()]}],"align-content":[{content:["normal",..._()]}],"align-items":[{items:[...O(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...O(),{baseline:["","last"]}]}],"place-content":[{"place-content":_()}],"place-items":[{"place-items":[...O(),"baseline"]}],"place-self":[{"place-self":["auto",...O()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pbs:[{pbs:S()}],pbe:[{pbe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mbs:[{mbs:T()}],mbe:[{mbe:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],"inline-size":[{inline:["auto",...M()]}],"min-inline-size":[{"min-inline":["auto",...M()]}],"max-inline-size":[{"max-inline":["none",...M()]}],"block-size":[{block:["auto",...U()]}],"min-block-size":[{"min-block":["auto",...U()]}],"max-block-size":[{"max-block":["none",...U()]}],w:[{w:[l,"screen",...$()]}],"min-w":[{"min-w":[l,"screen","none",...$()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",t,zt,ot]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,tv,Xp]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ts,ne]}],"font-family":[{font:[Zp,Jp,r]}],"font-features":[{"font-features":[ne]}],"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:[n,le,ne]}],"line-clamp":[{"line-clamp":[be,"none",le,fa]}],leading:[{leading:[s,...S()]}],"list-image":[{"list-image":["none",le,ne]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",le,ne]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:[be,"from-font","auto",le,ot]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[be,"auto",le,ne]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",le,ne]}],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",le,ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:X()}],"bg-repeat":[{bg:ue()}],"bg-size":[{bg:ee()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Br,le,ne],radial:["",le,ne],conic:[Br,le,ne]},rv,Qp]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:Q()}],"gradient-via-pos":[{via:Q()}],"gradient-to-pos":[{to:Q()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-bs":[{"border-bs":J()}],"border-w-be":[{"border-be":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...B(),"hidden","none"]}],"divide-style":[{divide:[...B(),"hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...B(),"none","hidden"]}],"outline-offset":[{"outline-offset":[be,le,ne]}],"outline-w":[{outline:["",be,zt,ot]}],"outline-color":[{outline:F()}],shadow:[{shadow:["","none",f,qo,No]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",m,qo,No]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[be,ot]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":["none",p,qo,No]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[be,le,ne]}],"mix-blend":[{"mix-blend":[...K(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":K()}],"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":[be]}],"mask-image-linear-from-pos":[{"mask-linear-from":H()}],"mask-image-linear-to-pos":[{"mask-linear-to":H()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":H()}],"mask-image-t-to-pos":[{"mask-t-to":H()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":H()}],"mask-image-r-to-pos":[{"mask-r-to":H()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":H()}],"mask-image-b-to-pos":[{"mask-b-to":H()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":H()}],"mask-image-l-to-pos":[{"mask-l-to":H()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":H()}],"mask-image-x-to-pos":[{"mask-x-to":H()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":H()}],"mask-image-y-to-pos":[{"mask-y-to":H()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[le,ne]}],"mask-image-radial-from-pos":[{"mask-radial-from":H()}],"mask-image-radial-to-pos":[{"mask-radial-to":H()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"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":P()}],"mask-image-conic-pos":[{"mask-conic":[be]}],"mask-image-conic-from-pos":[{"mask-conic-from":H()}],"mask-image-conic-to-pos":[{"mask-conic-to":H()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:X()}],"mask-repeat":[{mask:ue()}],"mask-size":[{mask:ee()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",le,ne]}],filter:[{filter:["","none",le,ne]}],blur:[{blur:G()}],brightness:[{brightness:[be,le,ne]}],contrast:[{contrast:[be,le,ne]}],"drop-shadow":[{"drop-shadow":["","none",v,qo,No]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:["",be,le,ne]}],"hue-rotate":[{"hue-rotate":[be,le,ne]}],invert:[{invert:["",be,le,ne]}],saturate:[{saturate:[be,le,ne]}],sepia:[{sepia:["",be,le,ne]}],"backdrop-filter":[{"backdrop-filter":["","none",le,ne]}],"backdrop-blur":[{"backdrop-blur":G()}],"backdrop-brightness":[{"backdrop-brightness":[be,le,ne]}],"backdrop-contrast":[{"backdrop-contrast":[be,le,ne]}],"backdrop-grayscale":[{"backdrop-grayscale":["",be,le,ne]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[be,le,ne]}],"backdrop-invert":[{"backdrop-invert":["",be,le,ne]}],"backdrop-opacity":[{"backdrop-opacity":[be,le,ne]}],"backdrop-saturate":[{"backdrop-saturate":[be,le,ne]}],"backdrop-sepia":[{"backdrop-sepia":["",be,le,ne]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",le,ne]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[be,"initial",le,ne]}],ease:[{ease:["linear","initial",b,le,ne]}],delay:[{delay:[be,le,ne]}],animate:[{animate:["none",x,le,ne]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,le,ne]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:Y()}],"rotate-x":[{"rotate-x":Y()}],"rotate-y":[{"rotate-y":Y()}],"rotate-z":[{"rotate-z":Y()}],scale:[{scale:Z()}],"scale-x":[{"scale-x":Z()}],"scale-y":[{"scale-y":Z()}],"scale-z":[{"scale-z":Z()}],"scale-3d":["scale-3d"],skew:[{skew:ae()}],"skew-x":[{"skew-x":ae()}],"skew-y":[{"skew-y":ae()}],transform:[{transform:[le,ne,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:fe()}],"translate-x":[{"translate-x":fe()}],"translate-y":[{"translate-y":fe()}],"translate-z":[{"translate-z":fe()}],"translate-none":["translate-none"],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}],"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",le,ne]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mbs":[{"scroll-mbs":S()}],"scroll-mbe":[{"scroll-mbe":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pbs":[{"scroll-pbs":S()}],"scroll-pbe":[{"scroll-pbe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",le,ne]}],fill:[{fill:["none",...F()]}],"stroke-w":[{stroke:[be,zt,ot,fa]}],stroke:[{stroke:["none",...F()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},sv=Lp(nv);class lt{static instance;constructor(){}static getInstance(){return lt.instance||(lt.instance=new lt),lt.instance}getRootFontSize(){if(typeof document>"u")return 16;const r=parseFloat(getComputedStyle(document.documentElement).fontSize);return isNaN(r)?16:r}parseValue(r){const t=r.match(/^(-?\d+(?:\.\d+)?)([a-z%]*)$/i);if(!t)throw new Error(`Invalid CSS value: ${r}`);const o=parseFloat(t[1]),n=t[2].toLowerCase()||"";return{value:o,unit:n}}convertToPx(r,t={}){if(typeof r=="number")return r;const o=String(r).trim();if(!o)return 0;if(o.endsWith("px"))return parseFloat(o);const{value:n,unit:s}=this.parseValue(o);switch(s){case"rem":return n*(t.fontSizeBase||this.getRootFontSize());case"em":if(!t.contextElement)throw new Error("contextElement is required for em unit conversion");const i=parseFloat(getComputedStyle(t.contextElement.parentElement||document.documentElement).fontSize);return n*i;case"%":if(!t.parentSize)throw new Error("parentSize is required for percentage conversion");const l=t.parentSize.width||100;return n/100*l;case"vw":const a=t.viewportWidth||(typeof window<"u"?window.innerWidth:1920);return n/100*a;case"vh":const d=t.viewportHeight||(typeof window<"u"?window.innerHeight:1080);return n/100*d;case"vmin":const f=t.viewportWidth||window.innerWidth,m=t.viewportHeight||window.innerHeight,p=Math.min(f,m);return n/100*p;case"vmax":const v=t.viewportWidth||window.innerWidth,g=t.viewportHeight||window.innerHeight,h=Math.max(v,g);return n/100*h;case"cm":return n*37.795;case"mm":return n*3.7795;case"in":return n*96;case"pt":return n*1.3333;case"pc":return n*16;case"":return n;default:throw new Error(`Unsupported unit: ${s}`)}}convertMultipleToPx(r,t){const o={};for(const[n,s]of Object.entries(r))try{o[n]=this.convertToPx(s,t)}catch(i){console.warn(`Failed to convert ${n}: ${s}`,i),o[n]=typeof s=="number"?s:0}return o}}function R(...e){return sv(Pu(e))}const qi={mode:"light",colors:{background:"hsl(0 0% 100%)",foreground:"hsl(222.2 84% 4.9%)",surface:"hsl(0 0% 100%)",surfaceForeground:"hsl(222.2 84% 4.9%)",surfaceMuted:"hsl(210 40% 98%)",muted:"hsl(210 40% 96.1%)",mutedForeground:"hsl(215.4 16.3% 46.9%)",border:"hsl(214.3 31.8% 91.4%)",input:"hsl(214.3 31.8% 91.4%)",ring:"hsl(221.2 83.2% 53.3% / 0.24)",primary:"hsl(221.2 83.2% 53.3%)",primaryForeground:"hsl(210 40% 98%)",primaryHover:"hsl(224.3 76.3% 48%)",secondary:"hsl(187 92% 42%)",secondaryForeground:"hsl(210 40% 98%)",secondaryHover:"hsl(188.7 94.5% 36.5%)",accent:"hsl(210 40% 96.1%)",accentForeground:"hsl(222.2 47.4% 11.2%)",accentHover:"hsl(210 40% 92%)",info:"hsl(221.2 83.2% 53.3%)",infoForeground:"hsl(210 40% 98%)",success:"hsl(142.1 70.6% 45.3%)",successForeground:"hsl(0 0% 100%)",warning:"hsl(38 92% 50%)",warningForeground:"hsl(0 0% 100%)",danger:"hsl(0 84.2% 60.2%)",dangerForeground:"hsl(210 40% 98%)",overlay:"rgb(0 0 0 / 45%)",inverse:"hsl(222.2 47.4% 11.2%)",inverseForeground:"hsl(210 40% 98%)"},radii:{xs:"0.125rem",sm:"0.25rem",md:"0.5rem",lg:"0.75rem",xl:"1rem",full:"9999px"},shadows:{xs:"0 1px 2px rgb(15 23 42 / 8%)",sm:"0 1px 3px rgb(15 23 42 / 10%), 0 1px 2px rgb(15 23 42 / 6%)",md:"0 8px 22px rgb(15 23 42 / 12%), 0 2px 6px rgb(15 23 42 / 8%)",lg:"0 14px 34px rgb(15 23 42 / 12%), 0 3px 10px rgb(15 23 42 / 8%)",xl:"0 24px 60px rgb(15 23 42 / 18%)",popover:"0 10px 30px rgb(15 23 42 / 12%), 0 2px 8px rgb(15 23 42 / 8%)",modal:"0 24px 72px rgb(15 23 42 / 22%)"},zIndex:{dropdown:50,sticky:100,drawer:1200,modal:1300,notification:10002,toast:10001}},Fu=St(qi,{mode:"dark",colors:{background:"#020817",foreground:"#f8fafc",surface:"#020817",surfaceForeground:"#f8fafc",surfaceMuted:"#1e293b",muted:"#1e293b",mutedForeground:"#94a3b8",border:"#1e293b",input:"#1e293b",ring:"#cbd5e1",primary:"hsl(217.2 91.2% 59.8%)",primaryForeground:"hsl(222.2 47.4% 11.2%)",primaryHover:"hsl(213.1 93.9% 67.8%)",secondary:"hsl(187 92% 42%)",secondaryForeground:"#f8fafc",secondaryHover:"hsl(188.7 94.5% 36.5%)",accent:"hsl(217.2 32.6% 17.5%)",accentForeground:"#f8fafc",accentHover:"hsl(215 27.9% 16.9%)",overlay:"rgb(0 0 0 / 62%)",inverse:"#f8fafc",inverseForeground:"#0f172a"}}),Bu=u.createContext({});function pa(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function St(e,r){if(!r)return e;const t={...e};for(const[o,n]of Object.entries(r)){const s=t[o];t[o]=pa(s)&&pa(n)?St(s,n):n}return t}function iv(e){return e==="dark"?Fu:qi}function lv(e){return e}function Ei(){return u.useContext(Bu)}function $u(e){const r=e,t=r.colors??{},o=r.radii??{},n=r.shadows??{},s=r.zIndex??{},i={"--ldkj-color-background":t.background,"--ldkj-color-foreground":t.foreground,"--ldkj-color-surface":t.surface,"--ldkj-color-surface-foreground":t.surfaceForeground,"--ldkj-color-surface-muted":t.surfaceMuted,"--ldkj-color-muted":t.muted,"--ldkj-color-muted-foreground":t.mutedForeground,"--ldkj-color-border":t.border,"--ldkj-color-input":t.input,"--ldkj-color-ring":t.ring,"--ldkj-color-primary":t.primary,"--ldkj-color-primary-foreground":t.primaryForeground,"--ldkj-color-primary-hover":t.primaryHover,"--ldkj-color-secondary":t.secondary,"--ldkj-color-secondary-foreground":t.secondaryForeground,"--ldkj-color-secondary-hover":t.secondaryHover,"--ldkj-color-accent":t.accent,"--ldkj-color-accent-foreground":t.accentForeground,"--ldkj-color-accent-hover":t.accentHover,"--ldkj-color-info":t.info,"--ldkj-color-info-foreground":t.infoForeground,"--ldkj-color-success":t.success,"--ldkj-color-success-foreground":t.successForeground,"--ldkj-color-warning":t.warning,"--ldkj-color-warning-foreground":t.warningForeground,"--ldkj-color-danger":t.danger,"--ldkj-color-danger-foreground":t.dangerForeground,"--ldkj-color-overlay":t.overlay,"--ldkj-color-inverse":t.inverse,"--ldkj-color-inverse-foreground":t.inverseForeground,"--ldkj-radius-xs":o.xs,"--ldkj-radius-sm":o.sm,"--ldkj-radius-md":o.md,"--ldkj-radius-lg":o.lg,"--ldkj-radius-xl":o.xl,"--ldkj-radius-full":o.full,"--ldkj-shadow-xs":n.xs,"--ldkj-shadow-sm":n.sm,"--ldkj-shadow-md":n.md,"--ldkj-shadow-lg":n.lg,"--ldkj-shadow-xl":n.xl,"--ldkj-shadow-popover":n.popover,"--ldkj-shadow-modal":n.modal,"--ldkj-z-dropdown":s.dropdown,"--ldkj-z-sticky":s.sticky,"--ldkj-z-drawer":s.drawer,"--ldkj-z-modal":s.modal,"--ldkj-z-notification":s.notification,"--ldkj-z-toast":s.toast,...r.cssVars};return Object.fromEntries(Object.entries(i).filter(([,l])=>l!==void 0))}function av(e){const[r,t]=u.useState("light");return u.useEffect(()=>{if(!e||typeof window>"u")return;const o=window.matchMedia("(prefers-color-scheme: dark)"),n=()=>t(o.matches?"dark":"light");return n(),o.addEventListener("change",n),()=>o.removeEventListener("change",n)},[e]),r}function Vu({theme:e,mode:r,scope:t="local",children:o}){const n=Ei(),s=r??e?.mode??n.mode??"light",i=av(s==="system"),l=s==="system"?i:s,a=u.useMemo(()=>St(St(iv(l),n),St({mode:l},e)),[n,l,e]),d=u.useMemo(()=>$u(a),[a]);return u.useEffect(()=>{if(t!=="root"||typeof document>"u")return;const f=document.documentElement,m=new Map;for(const[p,v]of Object.entries(d))m.set(p,f.style.getPropertyValue(p)),f.style.setProperty(p,String(v));return f.dataset.ldkjTheme=l,()=>{for(const[p,v]of m)v?f.style.setProperty(p,v):f.style.removeProperty(p);delete f.dataset.ldkjTheme}},[d,l,t]),c.jsx(Bu.Provider,{value:a,children:t==="local"?c.jsx("div",{"data-ldkj-theme":l,style:d,children:o}):o})}function cv({theme:e,children:r}){return c.jsx(Vu,{theme:e,scope:"none",children:r})}function se(){return Ei()}function uv(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}function dv(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),e.nonce!==void 0&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var fv=(function(){function e(t){var o=this;this._insertTag=function(n){var s;o.tags.length===0?o.insertionPoint?s=o.insertionPoint.nextSibling:o.prepend?s=o.container.firstChild:s=o.before:s=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(n,s),o.tags.push(n)},this.isSpeedy=t.speedy===void 0?!0:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var r=e.prototype;return r.hydrate=function(o){o.forEach(this._insertTag)},r.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(dv(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var s=uv(n);try{s.insertRule(o,s.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(o));this.ctr++},r.flush=function(){this.tags.forEach(function(o){var n;return(n=o.parentNode)==null?void 0:n.removeChild(o)}),this.tags=[],this.ctr=0},e})(),Qe="-ms-",on="-moz-",qe="-webkit-",zu="comm",Ri="rule",Ai="decl",mv="@import",Hu="@keyframes",hv="@layer",pv=Math.abs,bn=String.fromCharCode,vv=Object.assign;function gv(e,r){return We(e,0)^45?(((r<<2^We(e,0))<<2^We(e,1))<<2^We(e,2))<<2^We(e,3):0}function Uu(e){return e.trim()}function xv(e,r){return(e=r.exec(e))?e[0]:e}function Ee(e,r,t){return e.replace(r,t)}function ei(e,r){return e.indexOf(r)}function We(e,r){return e.charCodeAt(r)|0}function no(e,r,t){return e.slice(r,t)}function Cr(e){return e.length}function Ii(e){return e.length}function Eo(e,r){return r.push(e),e}function bv(e,r){return e.map(r).join("")}var yn=1,Rt=1,Wu=0,sr=0,De=0,Mt="";function wn(e,r,t,o,n,s,i){return{value:e,root:r,parent:t,type:o,props:n,children:s,line:yn,column:Rt,length:i,return:""}}function Ht(e,r){return vv(wn("",null,null,"",null,null,0),e,{length:-e.length},r)}function yv(){return De}function wv(){return De=sr>0?We(Mt,--sr):0,Rt--,De===10&&(Rt=1,yn--),De}function cr(){return De=sr<Wu?We(Mt,sr++):0,Rt++,De===10&&(Rt=1,yn++),De}function Sr(){return We(Mt,sr)}function Uo(){return sr}function po(e,r){return no(Mt,e,r)}function so(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ku(e){return yn=Rt=1,Wu=Cr(Mt=e),sr=0,[]}function Gu(e){return Mt="",e}function Wo(e){return Uu(po(sr-1,ri(e===91?e+2:e===40?e+1:e)))}function Pv(e){for(;(De=Sr())&&De<33;)cr();return so(e)>2||so(De)>3?"":" "}function Cv(e,r){for(;--r&&cr()&&!(De<48||De>102||De>57&&De<65||De>70&&De<97););return po(e,Uo()+(r<6&&Sr()==32&&cr()==32))}function ri(e){for(;cr();)switch(De){case e:return sr;case 34:case 39:e!==34&&e!==39&&ri(De);break;case 40:e===41&&ri(e);break;case 92:cr();break}return sr}function kv(e,r){for(;cr()&&e+De!==57;)if(e+De===84&&Sr()===47)break;return"/*"+po(r,sr-1)+"*"+bn(e===47?e:cr())}function jv(e){for(;!so(Sr());)cr();return po(e,sr)}function Sv(e){return Gu(Ko("",null,null,null,[""],e=Ku(e),0,[0],e))}function Ko(e,r,t,o,n,s,i,l,a){for(var d=0,f=0,m=i,p=0,v=0,g=0,h=1,y=1,b=1,x=0,w="",P=n,C=s,k=o,j=w;y;)switch(g=x,x=cr()){case 40:if(g!=108&&We(j,m-1)==58){ei(j+=Ee(Wo(x),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:j+=Wo(x);break;case 9:case 10:case 13:case 32:j+=Pv(g);break;case 92:j+=Cv(Uo()-1,7);continue;case 47:switch(Sr()){case 42:case 47:Eo(Nv(kv(cr(),Uo()),r,t),a);break;default:j+="/"}break;case 123*h:l[d++]=Cr(j)*b;case 125*h:case 59:case 0:switch(x){case 0:case 125:y=0;case 59+f:b==-1&&(j=Ee(j,/\f/g,"")),v>0&&Cr(j)-m&&Eo(v>32?ga(j+";",o,t,m-1):ga(Ee(j," ","")+";",o,t,m-2),a);break;case 59:j+=";";default:if(Eo(k=va(j,r,t,d,f,n,l,w,P=[],C=[],m),s),x===123)if(f===0)Ko(j,r,k,k,P,s,m,l,C);else switch(p===99&&We(j,3)===110?100:p){case 100:case 108:case 109:case 115:Ko(e,k,k,o&&Eo(va(e,k,k,0,0,n,l,w,n,P=[],m),C),n,C,m,l,o?P:C);break;default:Ko(j,k,k,k,[""],C,0,l,C)}}d=f=v=0,h=b=1,w=j="",m=i;break;case 58:m=1+Cr(j),v=g;default:if(h<1){if(x==123)--h;else if(x==125&&h++==0&&wv()==125)continue}switch(j+=bn(x),x*h){case 38:b=f>0?1:(j+="\f",-1);break;case 44:l[d++]=(Cr(j)-1)*b,b=1;break;case 64:Sr()===45&&(j+=Wo(cr())),p=Sr(),f=m=Cr(w=j+=jv(Uo())),x++;break;case 45:g===45&&Cr(j)==2&&(h=0)}}return s}function va(e,r,t,o,n,s,i,l,a,d,f){for(var m=n-1,p=n===0?s:[""],v=Ii(p),g=0,h=0,y=0;g<o;++g)for(var b=0,x=no(e,m+1,m=pv(h=i[g])),w=e;b<v;++b)(w=Uu(h>0?p[b]+" "+x:Ee(x,/&\f/g,p[b])))&&(a[y++]=w);return wn(e,r,t,n===0?Ri:l,a,d,f)}function Nv(e,r,t){return wn(e,r,t,zu,bn(yv()),no(e,2,-2),0)}function ga(e,r,t,o){return wn(e,r,t,Ai,no(e,0,o),no(e,o+1,-1),o)}function Nt(e,r){for(var t="",o=Ii(e),n=0;n<o;n++)t+=r(e[n],n,e,r)||"";return t}function qv(e,r,t,o){switch(e.type){case hv:if(e.children.length)break;case mv:case Ai:return e.return=e.return||e.value;case zu:return"";case Hu:return e.return=e.value+"{"+Nt(e.children,o)+"}";case Ri:e.value=e.props.join(",")}return Cr(t=Nt(e.children,o))?e.return=e.value+"{"+t+"}":""}function Ev(e){var r=Ii(e);return function(t,o,n,s){for(var i="",l=0;l<r;l++)i+=e[l](t,o,n,s)||"";return i}}function Rv(e){return function(r){r.root||(r=r.return)&&e(r)}}function Av(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var Iv=function(r,t,o){for(var n=0,s=0;n=s,s=Sr(),n===38&&s===12&&(t[o]=1),!so(s);)cr();return po(r,sr)},Tv=function(r,t){var o=-1,n=44;do switch(so(n)){case 0:n===38&&Sr()===12&&(t[o]=1),r[o]+=Iv(sr-1,t,o);break;case 2:r[o]+=Wo(n);break;case 4:if(n===44){r[++o]=Sr()===58?"&\f":"",t[o]=r[o].length;break}default:r[o]+=bn(n)}while(n=cr());return r},_v=function(r,t){return Gu(Tv(Ku(r),t))},xa=new WeakMap,Ov=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var t=r.value,o=r.parent,n=r.column===o.column&&r.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(r.props.length===1&&t.charCodeAt(0)!==58&&!xa.get(o))&&!n){xa.set(r,!0);for(var s=[],i=_v(t,s),l=o.props,a=0,d=0;a<i.length;a++)for(var f=0;f<l.length;f++,d++)r.props[d]=s[a]?i[a].replace(/&\f/g,l[f]):l[f]+" "+i[a]}}},Mv=function(r){if(r.type==="decl"){var t=r.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(r.return="",r.value="")}};function Yu(e,r){switch(gv(e,r)){case 5103:return qe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return qe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return qe+e+on+e+Qe+e+e;case 6828:case 4268:return qe+e+Qe+e+e;case 6165:return qe+e+Qe+"flex-"+e+e;case 5187:return qe+e+Ee(e,/(\w+).+(:[^]+)/,qe+"box-$1$2"+Qe+"flex-$1$2")+e;case 5443:return qe+e+Qe+"flex-item-"+Ee(e,/flex-|-self/,"")+e;case 4675:return qe+e+Qe+"flex-line-pack"+Ee(e,/align-content|flex-|-self/,"")+e;case 5548:return qe+e+Qe+Ee(e,"shrink","negative")+e;case 5292:return qe+e+Qe+Ee(e,"basis","preferred-size")+e;case 6060:return qe+"box-"+Ee(e,"-grow","")+qe+e+Qe+Ee(e,"grow","positive")+e;case 4554:return qe+Ee(e,/([^-])(transform)/g,"$1"+qe+"$2")+e;case 6187:return Ee(Ee(Ee(e,/(zoom-|grab)/,qe+"$1"),/(image-set)/,qe+"$1"),e,"")+e;case 5495:case 3959:return Ee(e,/(image-set\([^]*)/,qe+"$1$`$1");case 4968:return Ee(Ee(e,/(.+:)(flex-)?(.*)/,qe+"box-pack:$3"+Qe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+qe+e+e;case 4095:case 3583:case 4068:case 2532:return Ee(e,/(.+)-inline(.+)/,qe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Cr(e)-1-r>6)switch(We(e,r+1)){case 109:if(We(e,r+4)!==45)break;case 102:return Ee(e,/(.+:)(.+)-([^]+)/,"$1"+qe+"$2-$3$1"+on+(We(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~ei(e,"stretch")?Yu(Ee(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(We(e,r+1)!==115)break;case 6444:switch(We(e,Cr(e)-3-(~ei(e,"!important")&&10))){case 107:return Ee(e,":",":"+qe)+e;case 101:return Ee(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+qe+(We(e,14)===45?"inline-":"")+"box$3$1"+qe+"$2$3$1"+Qe+"$2box$3")+e}break;case 5936:switch(We(e,r+11)){case 114:return qe+e+Qe+Ee(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return qe+e+Qe+Ee(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return qe+e+Qe+Ee(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return qe+e+Qe+e+e}return e}var Lv=function(r,t,o,n){if(r.length>-1&&!r.return)switch(r.type){case Ai:r.return=Yu(r.value,r.length);break;case Hu:return Nt([Ht(r,{value:Ee(r.value,"@","@"+qe)})],n);case Ri:if(r.length)return bv(r.props,function(s){switch(xv(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Nt([Ht(r,{props:[Ee(s,/:(read-\w+)/,":"+on+"$1")]})],n);case"::placeholder":return Nt([Ht(r,{props:[Ee(s,/:(plac\w+)/,":"+qe+"input-$1")]}),Ht(r,{props:[Ee(s,/:(plac\w+)/,":"+on+"$1")]}),Ht(r,{props:[Ee(s,/:(plac\w+)/,Qe+"input-$1")]})],n)}return""})}},Dv=[Lv],Fv=function(r){var t=r.key;if(t==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(h){var y=h.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var n=r.stylisPlugins||Dv,s={},i,l=[];i=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(h){for(var y=h.getAttribute("data-emotion").split(" "),b=1;b<y.length;b++)s[y[b]]=!0;l.push(h)});var a,d=[Ov,Mv];{var f,m=[qv,Rv(function(h){f.insert(h)})],p=Ev(d.concat(n,m)),v=function(y){return Nt(Sv(y),p)};a=function(y,b,x,w){f=x,v(y?y+"{"+b.styles+"}":b.styles),w&&(g.inserted[b.name]=!0)}}var g={key:t,sheet:new fv({key:t,container:i,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:s,registered:{},insert:a};return g.sheet.hydrate(l),g};function Bv(e){for(var r=0,t,o=0,n=e.length;n>=4;++o,n-=4)t=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(n){case 3:r^=(e.charCodeAt(o+2)&255)<<16;case 2:r^=(e.charCodeAt(o+1)&255)<<8;case 1:r^=e.charCodeAt(o)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var $v={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Vv=/[A-Z]|^ms/g,zv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Xu=function(r){return r.charCodeAt(1)===45},ba=function(r){return r!=null&&typeof r!="boolean"},os=Av(function(e){return Xu(e)?e:e.replace(Vv,"-$&").toLowerCase()}),ya=function(r,t){switch(r){case"animation":case"animationName":if(typeof t=="string")return t.replace(zv,function(o,n,s){return Hr={name:n,styles:s,next:Hr},n})}return $v[r]!==1&&!Xu(r)&&typeof t=="number"&&t!==0?t+"px":t};function nn(e,r,t){if(t==null)return"";var o=t;if(o.__emotion_styles!==void 0)return o;switch(typeof t){case"boolean":return"";case"object":{var n=t;if(n.anim===1)return Hr={name:n.name,styles:n.styles,next:Hr},n.name;var s=t;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)Hr={name:i.name,styles:i.styles,next:Hr},i=i.next;var l=s.styles+";";return l}return Hv(e,r,t)}}var a=t;if(r==null)return a;var d=r[a];return d!==void 0?d:a}function Hv(e,r,t){var o="";if(Array.isArray(t))for(var n=0;n<t.length;n++)o+=nn(e,r,t[n])+";";else for(var s in t){var i=t[s];if(typeof i!="object"){var l=i;r!=null&&r[l]!==void 0?o+=s+"{"+r[l]+"}":ba(l)&&(o+=os(s)+":"+ya(s,l)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&(r==null||r[i[0]]===void 0))for(var a=0;a<i.length;a++)ba(i[a])&&(o+=os(s)+":"+ya(s,i[a])+";");else{var d=nn(e,r,i);switch(s){case"animation":case"animationName":{o+=os(s)+":"+d+";";break}default:o+=s+"{"+d+"}"}}}return o}var wa=/label:\s*([^\s;{]+)\s*(;|$)/g,Hr;function ns(e,r,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,n="";Hr=void 0;var s=e[0];if(s==null||s.raw===void 0)o=!1,n+=nn(t,r,s);else{var i=s;n+=i[0]}for(var l=1;l<e.length;l++)if(n+=nn(t,r,e[l]),o){var a=s;n+=a[l]}wa.lastIndex=0;for(var d="",f;(f=wa.exec(n))!==null;)d+="-"+f[1];var m=Bv(n)+d;return{name:m,styles:n,next:Hr}}function Ju(e,r,t){var o="";return t.split(" ").forEach(function(n){e[n]!==void 0?r.push(e[n]+";"):n&&(o+=n+" ")}),o}var Uv=function(r,t,o){var n=r.key+"-"+t.name;r.registered[n]===void 0&&(r.registered[n]=t.styles)},Wv=function(r,t,o){Uv(r,t);var n=r.key+"-"+t.name;if(r.inserted[t.name]===void 0){var s=t;do r.insert(t===s?"."+n:"",s,r.sheet,!0),s=s.next;while(s!==void 0)}};function Pa(e,r){if(e.inserted[r.name]===void 0)return e.insert("",r,e.sheet,!0)}function Ca(e,r,t){var o=[],n=Ju(e,o,t);return o.length<2?t:n+r(o)}var Kv=function(r){var t=Fv(r);t.sheet.speedy=function(l){this.isSpeedy=l},t.compat=!0;var o=function(){for(var a=arguments.length,d=new Array(a),f=0;f<a;f++)d[f]=arguments[f];var m=ns(d,t.registered,void 0);return Wv(t,m),t.key+"-"+m.name},n=function(){for(var a=arguments.length,d=new Array(a),f=0;f<a;f++)d[f]=arguments[f];var m=ns(d,t.registered),p="animation-"+m.name;return Pa(t,{name:m.name,styles:"@keyframes "+p+"{"+m.styles+"}"}),p},s=function(){for(var a=arguments.length,d=new Array(a),f=0;f<a;f++)d[f]=arguments[f];var m=ns(d,t.registered);Pa(t,m)},i=function(){for(var a=arguments.length,d=new Array(a),f=0;f<a;f++)d[f]=arguments[f];return Ca(t.registered,o,Gv(d))};return{css:o,cx:i,injectGlobal:s,keyframes:n,hydrate:function(a){a.forEach(function(d){t.inserted[d]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:Ju.bind(null,t.registered),merge:Ca.bind(null,t.registered,o)}},Gv=function e(r){for(var t="",o=0;o<r.length;o++){var n=r[o];if(n!=null){var s=void 0;switch(typeof n){case"boolean":break;case"object":{if(Array.isArray(n))s=e(n);else{s="";for(var i in n)n[i]&&i&&(s&&(s+=" "),s+=i)}break}default:s=n}s&&(t&&(t+=" "),t+=s)}}return t},Yv=Kv({key:"css"}),Xv=Yv.css;function Jv(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function ti(e,r,t){if(e){if(typeof e=="function"){ti(e(r),r,t);return}if(Array.isArray(e)){for(const o of e)ti(o,r,t);return}Jv(e)&&t.push(e)}}function Qv(e,r){return!(r==null||typeof r=="object"||Array.isArray(r)||e.startsWith("@")||e.includes("&")||e.includes(":")||e.includes(" ")||e.includes(">")||e.includes("+")||e.includes("~")||e.includes("[")||e.includes(".")||e.includes("#"))}function Zv(e){const r={};for(const[t,o]of Object.entries(e))Qv(t,o)&&(r[t]=o);return r}function re(e,r){const t=[];if(ti(e,r,t),!t.length)return{sxClassName:void 0,sxInlineStyle:void 0};const o=Xv(t),n=t.reduce((s,i)=>({...s,...Zv(i)}),{});return{sxClassName:o,sxInlineStyle:n}}function D(...e){const r=e.reduce((t,o)=>o?{...t,...o}:t,{});return Object.keys(r).length?r:void 0}function vr(e){const{component:r,variant:t,size:o,rounded:n,shadow:s,bounce:i,splash:l,sx:a,style:d,className:f,class:m,...p}=e,v=r??"button",{roundedPreset:g,roundedStyle:h}=ht(n),{shadowPreset:y,shadowStyle:b}=ho(s),x=se(),{sxClassName:w,sxInlineStyle:P}=re(a,x);return c.jsx(v,{className:R(ku({variant:t,size:o,rounded:g,shadow:y,bounce:i,splash:l}),w,f,m),style:D(d,h,b,P),...p})}vr.displayName="Button";const ss={xs:"h-8 w-8 text-xs",sm:"h-10 w-10 text-sm",md:"h-12 w-12 text-base",lg:"h-14 w-14 text-lg",xl:"h-16 w-16 text-xl"};function eg(e){if(e===void 0)return{sizeClassName:ss.md};if(typeof e=="string"&&e in ss)return{sizeClassName:ss[e]};const r=typeof e=="number"?`${e}px`:e;return{sizeStyle:{width:r,height:r}}}function sn(e){const{component:r,size:t="md",position:o="fixed",left:n,top:s,right:i=16,bottom:l=16,zIndex:a=10,rounded:d="full",className:f,style:m,...p}=e,{sizeClassName:v,sizeStyle:g}=eg(t),h={...p,component:r,size:"icon",rounded:d,className:R("shrink-0 overflow-hidden p-0",v,f),style:D({position:o,left:n,top:s,right:i,bottom:l,zIndex:a},g,m)};return c.jsx(vr,{...h})}sn.displayName="GhostButton";const Qu="__LDKJ_GHOST_BUTTON_GROUP_ITEM__";function Ti(e){return null}Ti.displayName="GhostButtonGroup.Item";Ti[Qu]=!0;function rg(e){return!!(e&&typeof e=="function"&&e[Qu]===!0)}function tg(e){return typeof e=="number"?`${e}px`:e}function ka(e,r){return e.includes(r)}function og(e){const r=[],t=[];return u.Children.forEach(e,o=>{if(u.isValidElement(o)&&rg(o.type)){t.push(o);return}r.push(o)}),{triggerChildren:r,itemChildren:t}}function ng(e,r){switch(e){case"down":return{position:"absolute",top:`calc(100% + ${r})`,right:0,display:"flex",flexDirection:"column",alignItems:"flex-end",gap:r};case"left":return{position:"absolute",right:`calc(100% + ${r})`,top:0,display:"flex",flexDirection:"row-reverse",alignItems:"center",gap:r};case"right":return{position:"absolute",left:`calc(100% + ${r})`,top:0,display:"flex",flexDirection:"row",alignItems:"center",gap:r};default:return{position:"absolute",bottom:`calc(100% + ${r})`,right:0,display:"flex",flexDirection:"column-reverse",alignItems:"flex-end",gap:r}}}function sg(e){switch(e){case"down":return"translateY(-16px) scale(0.78)";case"left":return"translateX(16px) scale(0.78)";case"right":return"translateX(-16px) scale(0.78)";default:return"translateY(16px) scale(0.78)"}}function ig(e,r,t,o){const n=r==="open",s=t*85,i=Math.max(o-t-1,0)*65;return{opacity:n?1:0,transform:n?"translate3d(0, 0, 0) scale(1)":sg(e),transitionProperty:"opacity, transform",transitionDuration:n?"380ms":"260ms",transitionTimingFunction:n?"cubic-bezier(0.16, 1, 0.3, 1)":"cubic-bezier(0.4, 0, 1, 1)",transitionDelay:`${n?s:i}ms`,willChange:"opacity, transform"}}function lg(e){const{trigger:r="click",direction:t="up",gap:o=12,items:n,children:s,position:i="fixed",left:l,top:a,right:d=16,bottom:f=16,zIndex:m=10,onClick:p,...v}=e,g=Array.isArray(r)?r:[r],h=tg(o),{triggerChildren:y,itemChildren:b}=og(s),x=[...n??[],...b.map(T=>({...T.props,key:T.key??void 0}))],[w,P]=u.useState(!1),[C,k]=u.useState("closed"),j=u.useRef(null),S=u.useRef(null),N=y.length>0?c.jsx(c.Fragment,{children:y}):void 0,A=ka(g,"hover"),q=ka(g,"click"),E=Math.max(x.length-1,0)*65,I=C!=="closed";u.useEffect(()=>{if(w){if(C==="open"||C==="preparing")return;k("preparing");return}if(C==="closed"||C==="exiting")return;k("exiting");const T=window.setTimeout(()=>{k("closed")},E);return()=>window.clearTimeout(T)},[E,C,w]),u.useLayoutEffect(()=>{if(C!=="preparing")return;S.current?.offsetHeight;const T=window.requestAnimationFrame(()=>{k($=>$==="preparing"?"open":$)});return()=>window.cancelAnimationFrame(T)},[C]),u.useEffect(()=>{if(!w||!q)return;const T=M=>{const U=M.target;U instanceof Node&&(j.current?.contains(U)||P(!1))},$=M=>{M.key==="Escape"&&P(!1)};return document.addEventListener("pointerdown",T),document.addEventListener("keydown",$),()=>{document.removeEventListener("pointerdown",T),document.removeEventListener("keydown",$)}},[w,q]);const O={...v,position:"static",right:void 0,bottom:void 0,left:void 0,top:void 0,zIndex:m,onClick:T=>{q&&P($=>!$),p?.(T)},"aria-expanded":w,"aria-haspopup":"menu",children:N};return c.jsx("div",{ref:j,className:R("inline-flex w-fit"),style:{position:i,left:l,top:a,right:d,bottom:f,zIndex:m},onMouseEnter:A?()=>P(!0):void 0,onMouseLeave:A?()=>P(!1):void 0,children:c.jsxs("div",{className:R("relative inline-flex w-fit"),children:[I&&x.length>0?c.jsx("div",{ref:S,style:{...ng(t,h),pointerEvents:C==="open"?"auto":"none"},children:x.map((T,$)=>{const{itemKey:M,onClick:U,...F}=T;return c.jsx("div",{style:ig(t,C,$,x.length),children:c.jsx(sn,{position:"static",...F,onClick:X=>{U?.(X),P(!1)}})},M??T.key??$)})}):null,c.jsx(sn,{...O})]})})}const Zu=Object.assign(lg,{Item:Ti});Zu.displayName="GhostButtonGroup";const _i={account_balance:{outlined:()=>Promise.resolve().then(()=>require("./icons/account_balance-CUtdZSEP.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/account_balance-DgmFjt_z.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/account_balance-DeohA2h8.cjs"))},account_box:{outlined:()=>Promise.resolve().then(()=>require("./icons/account_box-ByaMMQqG.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/account_box-D7sM1NTh.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/account_box-ajw070dx.cjs"))},account_circle:{outlined:()=>Promise.resolve().then(()=>require("./icons/account_circle-o5PrByrE.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/account_circle-C5KLCF80.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/account_circle-BMRVTtpY.cjs"))},add:{outlined:()=>Promise.resolve().then(()=>require("./icons/add-BzODBN57.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/add-Bj-fRqEw.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/add-Dpbpem6v.cjs"))},add_circle:{outlined:()=>Promise.resolve().then(()=>require("./icons/add_circle-BEfQaNTw.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/add_circle-Pz6hbZr2.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/add_circle-Bs6fLIPH.cjs"))},admin_panel_settings:{outlined:()=>Promise.resolve().then(()=>require("./icons/admin_panel_settings-BbSsx_KB.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/admin_panel_settings-Cq6cV6Iq.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/admin_panel_settings-DcqNfgoM.cjs"))},air:{outlined:()=>Promise.resolve().then(()=>require("./icons/air-BF03LOQ-.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/air-i_rK7JxO.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/air-OSLzaxxp.cjs"))},alarm:{outlined:()=>Promise.resolve().then(()=>require("./icons/alarm-CCYlrdau.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/alarm-DeO1fh0q.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/alarm-BxyCb1Qv.cjs"))},apps:{outlined:()=>Promise.resolve().then(()=>require("./icons/apps-fIilHLYB.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/apps-BdFHXOsp.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/apps-C9ltbSUJ.cjs"))},archive:{outlined:()=>Promise.resolve().then(()=>require("./icons/archive-7V65cuRY.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/archive-er16TWXw.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/archive-Ckz6yJQF.cjs"))},arrow_back:{outlined:()=>Promise.resolve().then(()=>require("./icons/arrow_back-XdtHQyqo.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/arrow_back-DaOcsNP6.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/arrow_back-g66EkDwT.cjs"))},arrow_downward:{outlined:()=>Promise.resolve().then(()=>require("./icons/arrow_downward-BBbhvRa_.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/arrow_downward-CYCI-w3L.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/arrow_downward-DkW9HR00.cjs"))},arrow_forward:{outlined:()=>Promise.resolve().then(()=>require("./icons/arrow_forward-NKtJV9mD.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/arrow_forward-B54VLaZC.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/arrow_forward-hLdyTARF.cjs"))},arrow_upward:{outlined:()=>Promise.resolve().then(()=>require("./icons/arrow_upward-GAIOJvM7.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/arrow_upward-BtxjFwlX.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/arrow_upward-CBdxpNSC.cjs"))},article:{outlined:()=>Promise.resolve().then(()=>require("./icons/article-B6nzs-qa.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/article-CGpbLCcR.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/article-CDZ6_tTi.cjs"))},attach_file:{outlined:()=>Promise.resolve().then(()=>require("./icons/attach_file-DyFViTnA.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/attach_file-RLWNGDyR.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/attach_file-CNA3xvqM.cjs"))},attach_money:{outlined:()=>Promise.resolve().then(()=>require("./icons/attach_money-DQPXCGZk.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/attach_money-CfNoy99Y.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/attach_money-JvxHPUl2.cjs"))},backspace:{outlined:()=>Promise.resolve().then(()=>require("./icons/backspace-JswWFvx7.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/backspace-DDu6Afit.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/backspace-pPWKZ2Y2.cjs"))},badge:{outlined:()=>Promise.resolve().then(()=>require("./icons/badge-Cc8lmWgw.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/badge-Btf6MXDZ.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/badge-BXrUAN1m.cjs"))},block:{outlined:()=>Promise.resolve().then(()=>require("./icons/block-ByxkMrvC.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/block-C8EIO6vB.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/block-D7pQpqds.cjs"))},bolt:{outlined:()=>Promise.resolve().then(()=>require("./icons/bolt-CUZki2JV.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/bolt-A-Z_tqr9.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/bolt-BKR3IpJG.cjs"))},book:{outlined:()=>Promise.resolve().then(()=>require("./icons/book-B_vtXpwq.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/book-BvIH3Qcj.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/book-s5W9WL4N.cjs"))},bookmark:{outlined:()=>Promise.resolve().then(()=>require("./icons/bookmark-BJdOWq2Y.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/bookmark-BOsIEQfb.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/bookmark-CY6PuZ4w.cjs"))},bookmarks:{outlined:()=>Promise.resolve().then(()=>require("./icons/bookmarks-CBfrFEQH.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/bookmarks-C1k5ldLa.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/bookmarks-DbGfzxJk.cjs"))},brush:{outlined:()=>Promise.resolve().then(()=>require("./icons/brush-DqhWkOyP.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/brush-CWCZYG4N.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/brush-oeiVL9Xk.cjs"))},bug_report:{outlined:()=>Promise.resolve().then(()=>require("./icons/bug_report-Dgg4ML7C.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/bug_report-DqBzy5Wd.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/bug_report-FgdRro3E.cjs"))},build:{outlined:()=>Promise.resolve().then(()=>require("./icons/build-DzKk0FwR.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/build-Bg6u0xY0.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/build-fQP-NxA6.cjs"))},calendar_month:{outlined:()=>Promise.resolve().then(()=>require("./icons/calendar_month-BuGnlxNv.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/calendar_month-CWa__6wz.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/calendar_month-BX-upKoW.cjs"))},calendar_today:{outlined:()=>Promise.resolve().then(()=>require("./icons/calendar_today-dvqmK8Mt.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/calendar_today-BXLVEJdq.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/calendar_today-CPs1WBvs.cjs"))},call:{outlined:()=>Promise.resolve().then(()=>require("./icons/call-ay175YDV.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/call-ftvfgcxN.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/call-wKD6ISPV.cjs"))},call_end:{outlined:()=>Promise.resolve().then(()=>require("./icons/call_end-DwGpra_h.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/call_end-Bx5pJnkm.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/call_end-WoQXHoTY.cjs"))},call_made:{outlined:()=>Promise.resolve().then(()=>require("./icons/call_made-BKy-0N_5.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/call_made-1di_yrkH.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/call_made-nzO_qhRa.cjs"))},call_received:{outlined:()=>Promise.resolve().then(()=>require("./icons/call_received-DiGMt09V.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/call_received-kDCUptdw.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/call_received-svsjpWZB.cjs"))},campaign:{outlined:()=>Promise.resolve().then(()=>require("./icons/campaign-CO4rU-NI.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/campaign-C7gu21Yl.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/campaign-Ci9P9bD0.cjs"))},cancel:{outlined:()=>Promise.resolve().then(()=>require("./icons/cancel-syDzrIhz.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/cancel-Be4ComkT.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/cancel-BswRxQQC.cjs"))},category:{outlined:()=>Promise.resolve().then(()=>require("./icons/category-DLWu2IoJ.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/category-lpNWuhQx.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/category-CnrWZz9Q.cjs"))},chat:{outlined:()=>Promise.resolve().then(()=>require("./icons/chat-DThyMw25.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/chat-DVBtcmFJ.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/chat-BIjxgeKo.cjs"))},chat_bubble:{outlined:()=>Promise.resolve().then(()=>require("./icons/chat_bubble-B7awcvGP.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/chat_bubble-CPB6ZiCC.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/chat_bubble-mZGoeI3I.cjs"))},check:{outlined:()=>Promise.resolve().then(()=>require("./icons/check-C4gcqg9A.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/check-CDtP9Bf4.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/check-BQ20Asfd.cjs"))},check_box:{outlined:()=>Promise.resolve().then(()=>require("./icons/check_box-cXMcUfzz.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/check_box-yboW6saa.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/check_box-DD0D5gpB.cjs"))},check_box_outline_blank:{outlined:()=>Promise.resolve().then(()=>require("./icons/check_box_outline_blank-CIKY0Ccw.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/check_box_outline_blank-B0K7VEOf.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/check_box_outline_blank-DPZa0VCl.cjs"))},check_circle:{outlined:()=>Promise.resolve().then(()=>require("./icons/check_circle-DTQ1d7Oc.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/check_circle-BVUl3Gb5.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/check_circle-BYYx6u5r.cjs"))},chevron_left:{outlined:()=>Promise.resolve().then(()=>require("./icons/chevron_left-Yec8UECM.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/chevron_left-DE3pHCnM.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/chevron_left-BPHI54rl.cjs"))},chevron_right:{outlined:()=>Promise.resolve().then(()=>require("./icons/chevron_right-BkGOM5fi.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/chevron_right-CFTu2vbL.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/chevron_right-DpzjvNsP.cjs"))},child_care:{outlined:()=>Promise.resolve().then(()=>require("./icons/child_care-nZB2N3YA.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/child_care-CIQ9k-f9.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/child_care-CB79ivb8.cjs"))},circle:{outlined:()=>Promise.resolve().then(()=>require("./icons/circle-DS_HMXBR.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/circle-BPX6153P.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/circle-D8ImCYQn.cjs"))},close:{outlined:()=>Promise.resolve().then(()=>require("./icons/close-C71jnCsP.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/close-DAORXT73.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/close-08-8sBl_.cjs"))},cloud:{outlined:()=>Promise.resolve().then(()=>require("./icons/cloud-aGhF0P8X.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/cloud-DoSYW56S.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/cloud-CWTEjqrC.cjs"))},cloud_download:{outlined:()=>Promise.resolve().then(()=>require("./icons/cloud_download-Cr0f1A7w.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/cloud_download-BSgA6nE3.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/cloud_download-B46UbXM2.cjs"))},cloud_upload:{outlined:()=>Promise.resolve().then(()=>require("./icons/cloud_upload-CEBNsRxa.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/cloud_upload-BxrCa7P9.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/cloud_upload-C8JjVx81.cjs"))},code:{outlined:()=>Promise.resolve().then(()=>require("./icons/code-6RkiCXwP.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/code-DuM9qskR.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/code-oJW84q_m.cjs"))},comment:{outlined:()=>Promise.resolve().then(()=>require("./icons/comment-O_bHBTmR.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/comment-jfrDsQcR.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/comment-D2ad_q2m.cjs"))},compare:{outlined:()=>Promise.resolve().then(()=>require("./icons/compare-CUzBU-28.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/compare-DdMgRs9f.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/compare-DFR9iUjQ.cjs"))},contacts:{outlined:()=>Promise.resolve().then(()=>require("./icons/contacts-4hDX5byG.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/contacts-Cb5xhSPR.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/contacts-GfLHJBAS.cjs"))},content_copy:{outlined:()=>Promise.resolve().then(()=>require("./icons/content_copy-Dm6tlywE.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/content_copy-CDA8g8Ce.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/content_copy-B295-Nv3.cjs"))},content_paste:{outlined:()=>Promise.resolve().then(()=>require("./icons/content_paste-CoehqCUw.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/content_paste-D0OJlLhs.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/content_paste-CAAddckI.cjs"))},copyright:{outlined:()=>Promise.resolve().then(()=>require("./icons/copyright-CmWUWze4.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/copyright-B4gtWEWc.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/copyright-sqUhIT0W.cjs"))},credit_card:{outlined:()=>Promise.resolve().then(()=>require("./icons/credit_card-B_DF2PK1.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/credit_card-Ch3__Lys.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/credit_card-_iyk8SdT.cjs"))},credit_score:{outlined:()=>Promise.resolve().then(()=>require("./icons/credit_score-BTAUUWvv.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/credit_score-RCK9vD6_.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/credit_score-BUo_aYKm.cjs"))},crop:{outlined:()=>Promise.resolve().then(()=>require("./icons/crop-GyzEL4nJ.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/crop-CLGpqAKW.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/crop-Ck5Oq93S.cjs"))},dangerous:{outlined:()=>Promise.resolve().then(()=>require("./icons/dangerous-BHX_WAG0.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/dangerous-VVnFWj0T.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/dangerous-CyWhR8GS.cjs"))},dark_mode:{outlined:()=>Promise.resolve().then(()=>require("./icons/dark_mode-CVQYfD9N.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/dark_mode-Cna-h-8z.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/dark_mode-BApz1m5T.cjs"))},dashboard:{outlined:()=>Promise.resolve().then(()=>require("./icons/dashboard-y4JXkAlZ.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/dashboard-yvpXQGFe.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/dashboard-qxOP92mW.cjs"))},data_usage:{outlined:()=>Promise.resolve().then(()=>require("./icons/data_usage-BFgNM46G.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/data_usage-DF86vx6L.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/data_usage-B69lbac5.cjs"))},delete:{outlined:()=>Promise.resolve().then(()=>require("./icons/delete-C0t5Pp8-.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/delete-CEMqbUF0.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/delete-xENv8YmX.cjs"))},delete_forever:{outlined:()=>Promise.resolve().then(()=>require("./icons/delete_forever-BE5StSao.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/delete_forever-DwtLSgzF.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/delete_forever-B8PUopIK.cjs"))},density_medium:{outlined:()=>Promise.resolve().then(()=>require("./icons/density_medium-BFy-8lbn.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/density_medium-Bze5BcMr.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/density_medium-BoavJs4H.cjs"))},description:{outlined:()=>Promise.resolve().then(()=>require("./icons/description-SQPUh5qC.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/description-CxGEPSh9.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/description-CMHCszzJ.cjs"))},desktop_windows:{outlined:()=>Promise.resolve().then(()=>require("./icons/desktop_windows-DOHf23Xr.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/desktop_windows-rsIMFxNM.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/desktop_windows-ft9l6Jnn.cjs"))},devices:{outlined:()=>Promise.resolve().then(()=>require("./icons/devices-D1QkNOdg.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/devices-Cs6AyB_p.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/devices-CZuDnQ7B.cjs"))},directions:{outlined:()=>Promise.resolve().then(()=>require("./icons/directions-CV3aYvJw.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/directions-Cq30pjX9.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/directions-BYfIHQ8Z.cjs"))},directions_bus:{outlined:()=>Promise.resolve().then(()=>require("./icons/directions_bus-CznPtArU.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/directions_bus-ChCQ0VJv.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/directions_bus-2Bu4yiHM.cjs"))},directions_car:{outlined:()=>Promise.resolve().then(()=>require("./icons/directions_car-DIRBYtBd.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/directions_car-Ty3h4aoe.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/directions_car-dxAiBgAE.cjs"))},dns:{outlined:()=>Promise.resolve().then(()=>require("./icons/dns-BrL6vlto.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/dns-DQC01d17.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/dns-BxMrX-Qx.cjs"))},download:{outlined:()=>Promise.resolve().then(()=>require("./icons/download-BfEc7ftL.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/download-oQO1wMDQ.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/download-BbGaNWaF.cjs"))},download_done:{outlined:()=>Promise.resolve().then(()=>require("./icons/download_done-BF_KMt21.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/download_done-mY_IvV91.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/download_done-QJO7z-t7.cjs"))},drag_handle:{outlined:()=>Promise.resolve().then(()=>require("./icons/drag_handle-B85eeiSW.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/drag_handle-CZy0Muds.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/drag_handle-DIHjJaP4.cjs"))},drive_file_move:{outlined:()=>Promise.resolve().then(()=>require("./icons/drive_file_move-CyquxnGI.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/drive_file_move-B7Ib41Bg.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/drive_file_move-BzZBDz_T.cjs"))},eco:{outlined:()=>Promise.resolve().then(()=>require("./icons/eco-BQpR7DfB.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/eco-BfhARi85.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/eco-Dti-gVb_.cjs"))},edit:{outlined:()=>Promise.resolve().then(()=>require("./icons/edit-ChFc7I7P.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/edit-BeJgtsta.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/edit-T1-rErag.cjs"))},edit_attributes:{outlined:()=>Promise.resolve().then(()=>require("./icons/edit_attributes-6JWFwGzl.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/edit_attributes-B1Ctn3RI.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/edit_attributes-BFsYoU1-.cjs"))},edit_note:{outlined:()=>Promise.resolve().then(()=>require("./icons/edit_note-Da_iOdrc.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/edit_note-rScMJnJT.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/edit_note--rw8SVa_.cjs"))},eject:{outlined:()=>Promise.resolve().then(()=>require("./icons/eject-C_8lRJPy.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/eject-DTQWDrIz.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/eject-CtLNSegr.cjs"))},elderly:{outlined:()=>Promise.resolve().then(()=>require("./icons/elderly-Ceh2P7r-.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/elderly-CcU85K06.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/elderly-DAtLwTFA.cjs"))},engineering:{outlined:()=>Promise.resolve().then(()=>require("./icons/engineering-BkYJD_Or.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/engineering-1o10EfNE.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/engineering-JuMPs6Y3.cjs"))},equalizer:{outlined:()=>Promise.resolve().then(()=>require("./icons/equalizer-efzGc3fN.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/equalizer-DJkAwv6t.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/equalizer-CBRz_t0n.cjs"))},error:{outlined:()=>Promise.resolve().then(()=>require("./icons/error-DhIFJDit.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/error-DzScQD-0.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/error-BSxnVrjF.cjs"))},event:{outlined:()=>Promise.resolve().then(()=>require("./icons/event-CLOpMWNS.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/event-BO8hSbhH.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/event-C0zGLwjQ.cjs"))},event_available:{outlined:()=>Promise.resolve().then(()=>require("./icons/event_available-D39f0o2z.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/event_available-DwjeOvX9.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/event_available-DMl5IYfi.cjs"))},event_busy:{outlined:()=>Promise.resolve().then(()=>require("./icons/event_busy-DLhs3cqk.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/event_busy-CO5GomJ1.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/event_busy-BsbAdBc3.cjs"))},exit_to_app:{outlined:()=>Promise.resolve().then(()=>require("./icons/exit_to_app-4ELlyKP5.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/exit_to_app-Bp3DQYOi.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/exit_to_app-BPsYFa6S.cjs"))},expand:{outlined:()=>Promise.resolve().then(()=>require("./icons/expand-BoSPrbcp.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/expand-CADHXT-_.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/expand-Dy3_OGRo.cjs"))},explore:{outlined:()=>Promise.resolve().then(()=>require("./icons/explore-CiiSPHhR.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/explore-DAuehy4i.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/explore-CWVUOfFd.cjs"))},explore_off:{outlined:()=>Promise.resolve().then(()=>require("./icons/explore_off-BR_xU7jX.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/explore_off-Bsy6PdBD.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/explore_off-C8Pin35x.cjs"))},extension:{outlined:()=>Promise.resolve().then(()=>require("./icons/extension-Bg6YhsUZ.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/extension-B2Ud25CS.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/extension-Cj_PMbmr.cjs"))},face:{outlined:()=>Promise.resolve().then(()=>require("./icons/face-B0mI3FAR.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/face-Dx3-uvsR.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/face-nfbmNSRn.cjs"))},fast_forward:{outlined:()=>Promise.resolve().then(()=>require("./icons/fast_forward-cSegXWFV.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/fast_forward-B0y9Ca2u.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/fast_forward-BMw4eJA1.cjs"))},fast_rewind:{outlined:()=>Promise.resolve().then(()=>require("./icons/fast_rewind-ClQr4UqL.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/fast_rewind-BErJGjyk.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/fast_rewind-CmURbjb8.cjs"))},favorite:{outlined:()=>Promise.resolve().then(()=>require("./icons/favorite-C7ps1Maq.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/favorite-3J46b-ep.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/favorite-LUIfqiQF.cjs"))},feedback:{outlined:()=>Promise.resolve().then(()=>require("./icons/feedback-B_jbalMc.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/feedback-DpFRhEHp.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/feedback-BaEOlZmy.cjs"))},file_copy:{outlined:()=>Promise.resolve().then(()=>require("./icons/file_copy-CTIQJQ-Q.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/file_copy-BryVfjLP.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/file_copy-D7W7B9tN.cjs"))},filter_list:{outlined:()=>Promise.resolve().then(()=>require("./icons/filter_list-DpBj6Yx1.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/filter_list-B8Txqh_n.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/filter_list-CH0lPLm2.cjs"))},find_in_page:{outlined:()=>Promise.resolve().then(()=>require("./icons/find_in_page-BnUd7Adl.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/find_in_page-d1tGoTfD.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/find_in_page-CZWej5L8.cjs"))},find_replace:{outlined:()=>Promise.resolve().then(()=>require("./icons/find_replace-COPwtD3A.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/find_replace-B_KZ8iLe.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/find_replace-BVX_mdI2.cjs"))},fingerprint:{outlined:()=>Promise.resolve().then(()=>require("./icons/fingerprint-s6Wvd5xY.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/fingerprint-BwdcEXJy.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/fingerprint-Cjs10wLp.cjs"))},first_page:{outlined:()=>Promise.resolve().then(()=>require("./icons/first_page-LyKNPAwN.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/first_page-CFfNXxJa.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/first_page-BNf1p3Bb.cjs"))},fit_screen:{outlined:()=>Promise.resolve().then(()=>require("./icons/fit_screen-DgeLJfZy.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/fit_screen-B9tJEMV5.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/fit_screen-NF0JPdOh.cjs"))},fitness_center:{outlined:()=>Promise.resolve().then(()=>require("./icons/fitness_center-DOb_SqRR.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/fitness_center-BhjkYdCs.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/fitness_center-wLAD2vZ_.cjs"))},flag:{outlined:()=>Promise.resolve().then(()=>require("./icons/flag-E-VIxwkr.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/flag-LD2jAYeI.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/flag-DZqg40eh.cjs"))},flare:{outlined:()=>Promise.resolve().then(()=>require("./icons/flare-DZBDF8BR.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/flare-DZL3slPE.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/flare-BPXjy3gS.cjs"))},flash_on:{outlined:()=>Promise.resolve().then(()=>require("./icons/flash_on-DIcsCTnL.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/flash_on-B6CuALXr.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/flash_on-BotDglNP.cjs"))},flight:{outlined:()=>Promise.resolve().then(()=>require("./icons/flight-BNYPJg6b.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/flight-BLrZxPop.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/flight-CMxTfrzT.cjs"))},flip:{outlined:()=>Promise.resolve().then(()=>require("./icons/flip-BAlqTIVF.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/flip-Bz6vLJ-d.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/flip-Cqg-_005.cjs"))},folder:{outlined:()=>Promise.resolve().then(()=>require("./icons/folder-DBjcNXNU.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/folder-CEMBequd.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/folder-DuEc_ds7.cjs"))},folder_open:{outlined:()=>Promise.resolve().then(()=>require("./icons/folder_open-B7M1GBAB.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/folder_open-BCePqSqz.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/folder_open-B_oOp3kv.cjs"))},folder_shared:{outlined:()=>Promise.resolve().then(()=>require("./icons/folder_shared-BesFvcRa.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/folder_shared-Cy2npeFh.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/folder_shared-DgpExGUb.cjs"))},forum:{outlined:()=>Promise.resolve().then(()=>require("./icons/forum-ClIUKbam.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/forum-C0U0c7lC.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/forum-W9gwVTdH.cjs"))},fullscreen:{outlined:()=>Promise.resolve().then(()=>require("./icons/fullscreen-CeXAg0Rs.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/fullscreen-BbuB8GJ1.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/fullscreen-DzeaQMMi.cjs"))},fullscreen_exit:{outlined:()=>Promise.resolve().then(()=>require("./icons/fullscreen_exit-Dv_5bvVl.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/fullscreen_exit-BQAdlG7F.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/fullscreen_exit-BdILU2wy.cjs"))},gavel:{outlined:()=>Promise.resolve().then(()=>require("./icons/gavel-D-OTl_bj.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/gavel-F-uuY7jq.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/gavel-DwIL5r9o.cjs"))},gesture:{outlined:()=>Promise.resolve().then(()=>require("./icons/gesture-DeCjZ4OV.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/gesture-V_2x4_gC.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/gesture-CDVjysbx.cjs"))},gif:{outlined:()=>Promise.resolve().then(()=>require("./icons/gif-Cdgf5jLT.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/gif-BjNPP4Fi.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/gif-Dbqa6Qt9.cjs"))},grid_view:{outlined:()=>Promise.resolve().then(()=>require("./icons/grid_view-ClltetuJ.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/grid_view-DaRUrgXH.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/grid_view-B68F0xHI.cjs"))},group:{outlined:()=>Promise.resolve().then(()=>require("./icons/group-B8IYS99v.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/group-BPq1UB-p.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/group-_x6YgwIQ.cjs"))},group_add:{outlined:()=>Promise.resolve().then(()=>require("./icons/group_add-DRT53nn9.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/group_add-yGgEMHEW.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/group_add-BM5MTU4c.cjs"))},groups:{outlined:()=>Promise.resolve().then(()=>require("./icons/groups-C108XU4y.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/groups-BnGg38nU.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/groups-xhrjwIB0.cjs"))},handyman:{outlined:()=>Promise.resolve().then(()=>require("./icons/handyman-xpAdwmnn.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/handyman-jhYg_Ni9.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/handyman-4agk8mvK.cjs"))},headphones:{outlined:()=>Promise.resolve().then(()=>require("./icons/headphones-ByLMZlNY.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/headphones-CFD4aFp7.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/headphones-Co40H2aF.cjs"))},healing:{outlined:()=>Promise.resolve().then(()=>require("./icons/healing-aaFdWh5W.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/healing-BDkkXt9q.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/healing-B-0A2nAU.cjs"))},help:{outlined:()=>Promise.resolve().then(()=>require("./icons/help-OaQroamO.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/help-C3CEzn4A.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/help-Ctda3jdI.cjs"))},highlight:{outlined:()=>Promise.resolve().then(()=>require("./icons/highlight-6N9Q1nCv.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/highlight-2e5dcG25.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/highlight-B06WsyLv.cjs"))},history:{outlined:()=>Promise.resolve().then(()=>require("./icons/history-BOV-9TKh.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/history-CU_ehRzx.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/history-BUB_tYea.cjs"))},history_toggle_off:{outlined:()=>Promise.resolve().then(()=>require("./icons/history_toggle_off-Bhya520A.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/history_toggle_off-DnRUn4bN.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/history_toggle_off-gyY-rgoJ.cjs"))},home:{outlined:()=>Promise.resolve().then(()=>require("./icons/home-Dokhawqy.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/home-BTOD_204.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/home-r_TUIXCB.cjs"))},home_work:{outlined:()=>Promise.resolve().then(()=>require("./icons/home_work-CG_ldX6X.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/home_work-B964c0gI.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/home_work-RpG7pfN8.cjs"))},hotel:{outlined:()=>Promise.resolve().then(()=>require("./icons/hotel-bfy2VvG_.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/hotel-DPvGMpsA.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/hotel-CPtCcGqG.cjs"))},hourglass_empty:{outlined:()=>Promise.resolve().then(()=>require("./icons/hourglass_empty-B5l-KyA_.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/hourglass_empty-Dj67ruJJ.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/hourglass_empty-w_LZI7ql.cjs"))},http:{outlined:()=>Promise.resolve().then(()=>require("./icons/http-CkQzvLY8.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/http-D1K3W8nC.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/http-fS1e0mTs.cjs"))},image:{outlined:()=>Promise.resolve().then(()=>require("./icons/image-CQ1rcY-m.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/image-m4vdlOrM.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/image-Epxcfqar.cjs"))},image_search:{outlined:()=>Promise.resolve().then(()=>require("./icons/image_search-DFdtq1ol.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/image_search-Df6Ng67p.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/image_search-QPrlvCTB.cjs"))},important_devices:{outlined:()=>Promise.resolve().then(()=>require("./icons/important_devices-BQm7YX8s.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/important_devices-CEL-eNng.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/important_devices-CaP-knAj.cjs"))},inbox:{outlined:()=>Promise.resolve().then(()=>require("./icons/inbox-Bf8a9r3C.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/inbox-DlEuYH_M.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/inbox-CbKEEwtR.cjs"))},info:{outlined:()=>Promise.resolve().then(()=>require("./icons/info-B7YBEpiO.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/info-D76Irr5N.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/info-DnsOX_R2.cjs"))},input:{outlined:()=>Promise.resolve().then(()=>require("./icons/input-BledoS7j.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/input-CiaLhaBv.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/input-DFmBoxLr.cjs"))},inventory:{outlined:()=>Promise.resolve().then(()=>require("./icons/inventory-D3F1c0G4.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/inventory-C6l6OEEh.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/inventory-BWwO-xah.cjs"))},key:{outlined:()=>Promise.resolve().then(()=>require("./icons/key-Cd1LQA96.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/key-BapDxdJR.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/key-WmFDui-T.cjs"))},keyboard:{outlined:()=>Promise.resolve().then(()=>require("./icons/keyboard-9kPP_fZo.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/keyboard-Bncd-r2h.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/keyboard-DEtvWaW3.cjs"))},label:{outlined:()=>Promise.resolve().then(()=>require("./icons/label-Csjt3SVM.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/label-Cm8auEWA.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/label-D4Z8lgx6.cjs"))},language:{outlined:()=>Promise.resolve().then(()=>require("./icons/language-Dnk6WN_j.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/language-DUV1M-65.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/language-CxIJ1SrJ.cjs"))},last_page:{outlined:()=>Promise.resolve().then(()=>require("./icons/last_page-oTIYzPFL.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/last_page-CjRlRrpV.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/last_page-Cbb3HacN.cjs"))},layers:{outlined:()=>Promise.resolve().then(()=>require("./icons/layers-RHUoY1x9.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/layers-NrOiyn4B.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/layers-Blmdyx3T.cjs"))},light_mode:{outlined:()=>Promise.resolve().then(()=>require("./icons/light_mode-Bo8UvOO0.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/light_mode-C3ZmUjzM.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/light_mode-C3vqv6r9.cjs"))},line_style:{outlined:()=>Promise.resolve().then(()=>require("./icons/line_style-hKwpJThN.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/line_style-ChfgY8Fz.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/line_style-DlXCE4Um.cjs"))},link:{outlined:()=>Promise.resolve().then(()=>require("./icons/link-SqQvG2aS.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/link-BFqEzcuh.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/link-BEt8Rdrk.cjs"))},list:{outlined:()=>Promise.resolve().then(()=>require("./icons/list-B3bGHUAB.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/list-ExRMWvY6.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/list-D0u18QaB.cjs"))},live_help:{outlined:()=>Promise.resolve().then(()=>require("./icons/live_help-cSkLrDFh.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/live_help-B1k0yUF9.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/live_help-B9sVajvu.cjs"))},local_cafe:{outlined:()=>Promise.resolve().then(()=>require("./icons/local_cafe-BbLYHQ5G.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/local_cafe-gSN4KJIQ.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/local_cafe-BRwE0wVl.cjs"))},local_hospital:{outlined:()=>Promise.resolve().then(()=>require("./icons/local_hospital-CeMxQ9XC.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/local_hospital-BQxIobVR.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/local_hospital-MPVU96Sw.cjs"))},local_taxi:{outlined:()=>Promise.resolve().then(()=>require("./icons/local_taxi-CVCg6SLk.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/local_taxi-DYWVyvAC.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/local_taxi-BvyxG2_8.cjs"))},location_off:{outlined:()=>Promise.resolve().then(()=>require("./icons/location_off-TLyox8Gw.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/location_off-BwRgLKKl.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/location_off-BQw1qzX6.cjs"))},location_on:{outlined:()=>Promise.resolve().then(()=>require("./icons/location_on-zlbjO2nd.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/location_on-C_Q78KW6.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/location_on-B-4p1Vaw.cjs"))},lock:{outlined:()=>Promise.resolve().then(()=>require("./icons/lock-BczdF5aF.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/lock-DoMqxNht.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/lock-CMBDoG1m.cjs"))},lock_open:{outlined:()=>Promise.resolve().then(()=>require("./icons/lock_open-DNBPlz0I.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/lock_open-CbcCQPoq.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/lock_open-BsfuU82J.cjs"))},lock_reset:{outlined:()=>Promise.resolve().then(()=>require("./icons/lock_reset-1_dRLFAg.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/lock_reset-BFi8YBZd.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/lock_reset-xNTFVkP0.cjs"))},login:{outlined:()=>Promise.resolve().then(()=>require("./icons/login-BjZiShoE.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/login-6YNL4CrP.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/login-Bogn9TQm.cjs"))},logout:{outlined:()=>Promise.resolve().then(()=>require("./icons/logout-Bphd-i1_.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/logout-9MBXaMSb.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/logout-BKRH1LQ7.cjs"))},mail:{outlined:()=>Promise.resolve().then(()=>require("./icons/mail-stTZgOxR.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/mail-zslK5Vp0.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/mail-SRkbZHDV.cjs"))},map:{outlined:()=>Promise.resolve().then(()=>require("./icons/map-DlCPxLI4.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/map-BN0czcmT.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/map-OHAPN5Jm.cjs"))},mark_email_read:{outlined:()=>Promise.resolve().then(()=>require("./icons/mark_email_read-4O476T7R.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/mark_email_read-B5tjuBKg.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/mark_email_read-C6yfr2fW.cjs"))},mark_email_unread:{outlined:()=>Promise.resolve().then(()=>require("./icons/mark_email_unread-BbgVYB4S.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/mark_email_unread-CS1ID0rU.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/mark_email_unread-BzBlwfDW.cjs"))},maximize:{outlined:()=>Promise.resolve().then(()=>require("./icons/maximize-BfsEZe_5.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/maximize-yncMJ3Gg.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/maximize-D_c72Iyc.cjs"))},medication:{outlined:()=>Promise.resolve().then(()=>require("./icons/medication-BP-gJNIW.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/medication-B7oNWWhQ.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/medication-BXpvVQlG.cjs"))},menu:{outlined:()=>Promise.resolve().then(()=>require("./icons/menu-BSH9Euis.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/menu-BI_0LYcg.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/menu-CyUV3J9k.cjs"))},mic:{outlined:()=>Promise.resolve().then(()=>require("./icons/mic-Bv7uyEhL.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/mic-OWlr0FyC.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/mic-DeY1JMNU.cjs"))},mic_off:{outlined:()=>Promise.resolve().then(()=>require("./icons/mic_off-CrExlNjs.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/mic_off-3AQHolNv.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/mic_off-O3medmXx.cjs"))},minimize:{outlined:()=>Promise.resolve().then(()=>require("./icons/minimize-C1fwEdxW.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/minimize-b3mKEIDM.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/minimize-CLS-Wwu4.cjs"))},model_training:{outlined:()=>Promise.resolve().then(()=>require("./icons/model_training-CRZqBwX8.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/model_training-BHnB1pq-.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/model_training-2hXP1oSx.cjs"))},monitor:{outlined:()=>Promise.resolve().then(()=>require("./icons/monitor-DEOzv1-v.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/monitor-DmiG1_9A.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/monitor-Do46ojnJ.cjs"))},more_horiz:{outlined:()=>Promise.resolve().then(()=>require("./icons/more_horiz-bZKXAcx0.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/more_horiz-Deil--Zw.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/more_horiz-Dbz8LvVB.cjs"))},more_time:{outlined:()=>Promise.resolve().then(()=>require("./icons/more_time-B1Wd5UFZ.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/more_time-urwzlhvb.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/more_time-ChxdyGP_.cjs"))},more_vert:{outlined:()=>Promise.resolve().then(()=>require("./icons/more_vert-DzTrnUGw.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/more_vert-CXi9yj-5.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/more_vert-DxblSDI5.cjs"))},mouse:{outlined:()=>Promise.resolve().then(()=>require("./icons/mouse-QimsmAoo.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/mouse-Bng6mJ1A.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/mouse-DS8yvLR1.cjs"))},move_to_inbox:{outlined:()=>Promise.resolve().then(()=>require("./icons/move_to_inbox-D-SzwKRi.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/move_to_inbox-DMwv-LwU.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/move_to_inbox-DB49LSzj.cjs"))},multiline_chart:{outlined:()=>Promise.resolve().then(()=>require("./icons/multiline_chart-VNajFYIu.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/multiline_chart-qmqudGJS.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/multiline_chart-BZ9pI0M2.cjs"))},my_location:{outlined:()=>Promise.resolve().then(()=>require("./icons/my_location-CafgIPzY.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/my_location-B_2xIJ1h.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/my_location-BQB_Gvjn.cjs"))},navigation:{outlined:()=>Promise.resolve().then(()=>require("./icons/navigation-XOBWaNoc.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/navigation-DD6e0gFe.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/navigation-D-EmSudm.cjs"))},near_me:{outlined:()=>Promise.resolve().then(()=>require("./icons/near_me-CDCjz9gt.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/near_me-BPE_ZuMr.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/near_me-BxAslSGA.cjs"))},network_check:{outlined:()=>Promise.resolve().then(()=>require("./icons/network_check-DXQawqFw.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/network_check-Dl7EGQcb.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/network_check-BJIqHDfq.cjs"))},note_add:{outlined:()=>Promise.resolve().then(()=>require("./icons/note_add-CgDyCezx.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/note_add-DreTnzy7.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/note_add-B16Z0iko.cjs"))},notifications:{outlined:()=>Promise.resolve().then(()=>require("./icons/notifications-C6p9X5iK.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/notifications-C4Njhrf3.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/notifications-CqrgBGCg.cjs"))},notifications_off:{outlined:()=>Promise.resolve().then(()=>require("./icons/notifications_off-Bl-UXNgJ.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/notifications_off-C0bFn1n-.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/notifications_off-DnZ8QXub.cjs"))},opacity:{outlined:()=>Promise.resolve().then(()=>require("./icons/opacity-Dk-JXILr.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/opacity-D6RIb2vv.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/opacity-B_AyGGS_.cjs"))},open_in_browser:{outlined:()=>Promise.resolve().then(()=>require("./icons/open_in_browser-Dmn-cfK-.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/open_in_browser-DCPx7gky.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/open_in_browser-DqsvTNrn.cjs"))},open_in_new:{outlined:()=>Promise.resolve().then(()=>require("./icons/open_in_new-BgJKZU-J.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/open_in_new-DZPCJOy7.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/open_in_new-CcEf-zNH.cjs"))},open_with:{outlined:()=>Promise.resolve().then(()=>require("./icons/open_with-Bzj5vgs6.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/open_with-CmFOFdkm.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/open_with-B70xaICx.cjs"))},outbox:{outlined:()=>Promise.resolve().then(()=>require("./icons/outbox-C6aOzPpg.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/outbox-Cx7uYTOf.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/outbox-Csu_1kyH.cjs"))},outgoing_mail:{outlined:()=>Promise.resolve().then(()=>require("./icons/outgoing_mail-2-xW6AF5.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/outgoing_mail-CtAbnTjW.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/outgoing_mail-CX9s8C5z.cjs"))},pageview:{outlined:()=>Promise.resolve().then(()=>require("./icons/pageview-DqQxqFE_.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/pageview-D1Aft6zN.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/pageview-CoOkhigk.cjs"))},paid:{outlined:()=>Promise.resolve().then(()=>require("./icons/paid-C5cn2aLs.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/paid-BzDeYvj7.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/paid-BIkLZCcs.cjs"))},palette:{outlined:()=>Promise.resolve().then(()=>require("./icons/palette-BEmPRIMw.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/palette-CEI5mXi2.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/palette-BWAIjdCq.cjs"))},pan_tool:{outlined:()=>Promise.resolve().then(()=>require("./icons/pan_tool-DchJK0me.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/pan_tool-DuCXAwU5.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/pan_tool-LLeyUAKx.cjs"))},park:{outlined:()=>Promise.resolve().then(()=>require("./icons/park-BVe-doeU.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/park-BUDETE5h.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/park-B2KYNHGS.cjs"))},pause:{outlined:()=>Promise.resolve().then(()=>require("./icons/pause-DQrYrJPf.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/pause-CbypNdPU.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/pause-DrZm3789.cjs"))},pending:{outlined:()=>Promise.resolve().then(()=>require("./icons/pending-6ag0S0mB.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/pending-BrSKvjSV.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/pending-LfKlYmk3.cjs"))},percent:{outlined:()=>Promise.resolve().then(()=>require("./icons/percent-CQHhbCUm.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/percent-DQRJ81Y0.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/percent-DjuRihso.cjs"))},perm_camera_mic:{outlined:()=>Promise.resolve().then(()=>require("./icons/perm_camera_mic-Cbddp4vZ.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/perm_camera_mic-CuBPtZxF.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/perm_camera_mic-Dkpwkkuq.cjs"))},perm_contact_calendar:{outlined:()=>Promise.resolve().then(()=>require("./icons/perm_contact_calendar-DMec4ouz.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/perm_contact_calendar-DhFwc7VW.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/perm_contact_calendar-CspwVmEi.cjs"))},perm_media:{outlined:()=>Promise.resolve().then(()=>require("./icons/perm_media-C57M9qmo.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/perm_media-CF1u7gFa.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/perm_media-Bxr4BAS1.cjs"))},perm_phone_msg:{outlined:()=>Promise.resolve().then(()=>require("./icons/perm_phone_msg-D9X0Elcs.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/perm_phone_msg-9zA1SKcG.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/perm_phone_msg-BzVSR3nS.cjs"))},perm_scan_wifi:{outlined:()=>Promise.resolve().then(()=>require("./icons/perm_scan_wifi-DD7R0Ypv.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/perm_scan_wifi-B9jQZzda.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/perm_scan_wifi-DoiutF9N.cjs"))},person:{outlined:()=>Promise.resolve().then(()=>require("./icons/person-B3n5wNYw.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/person-BjdTw5Wf.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/person-CxBPAQjZ.cjs"))},person_add:{outlined:()=>Promise.resolve().then(()=>require("./icons/person_add-SOetVGrq.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/person_add-CAlpNX8L.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/person_add-C5HiyjEy.cjs"))},person_remove:{outlined:()=>Promise.resolve().then(()=>require("./icons/person_remove-K5AIu4l3.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/person_remove-FQ1FDMyB.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/person_remove-Ckm7S1Ul.cjs"))},pets:{outlined:()=>Promise.resolve().then(()=>require("./icons/pets-CX3R8F-o.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/pets-Ce5ySqSZ.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/pets-DFqhatXG.cjs"))},photo:{outlined:()=>Promise.resolve().then(()=>require("./icons/photo-oBUWZNmV.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/photo-DCL0v_al.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/photo-Cu44xCeI.cjs"))},photo_camera:{outlined:()=>Promise.resolve().then(()=>require("./icons/photo_camera-DhFf5sZ5.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/photo_camera-Nyrh3DOY.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/photo_camera-C9AkrxeA.cjs"))},pin:{outlined:()=>Promise.resolve().then(()=>require("./icons/pin-D4ao9i6g.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/pin-DthuKQB3.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/pin-CRwDdDV2.cjs"))},play_arrow:{outlined:()=>Promise.resolve().then(()=>require("./icons/play_arrow-H863JTh7.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/play_arrow-CZk84Zqk.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/play_arrow-B53QlyDM.cjs"))},play_circle:{outlined:()=>Promise.resolve().then(()=>require("./icons/play_circle-CTzQVR4K.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/play_circle-yQAtsYsn.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/play_circle-wkjsDqRz.cjs"))},playlist_add:{outlined:()=>Promise.resolve().then(()=>require("./icons/playlist_add-Snr_stSN.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/playlist_add-GuvkSYpw.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/playlist_add-D2Xb6_NK.cjs"))},polymer:{outlined:()=>Promise.resolve().then(()=>require("./icons/polymer-C2BZyzKC.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/polymer-DqwlaYna.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/polymer-DG6N5gon.cjs"))},power:{outlined:()=>Promise.resolve().then(()=>require("./icons/power-Bt8Geig2.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/power-DZ3DE2BU.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/power-pXyGp9-1.cjs"))},power_settings_new:{outlined:()=>Promise.resolve().then(()=>require("./icons/power_settings_new-DD5cuSDo.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/power_settings_new-C5QoEPOu.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/power_settings_new-CKm1IAbg.cjs"))},preview:{outlined:()=>Promise.resolve().then(()=>require("./icons/preview-DWVX-cQO.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/preview-BfsIL0b0.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/preview-DoBR4W2d.cjs"))},print:{outlined:()=>Promise.resolve().then(()=>require("./icons/print-BhcfRgxE.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/print-CkOGeK2-.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/print-DEoedWv2.cjs"))},print_disabled:{outlined:()=>Promise.resolve().then(()=>require("./icons/print_disabled-Cfm8Rmrg.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/print_disabled-BX0aI1MB.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/print_disabled-DXRq3rRK.cjs"))},privacy_tip:{outlined:()=>Promise.resolve().then(()=>require("./icons/privacy_tip-Ds1UUYsC.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/privacy_tip-THEl8fOD.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/privacy_tip-BMaqVFkP.cjs"))},public:{outlined:()=>Promise.resolve().then(()=>require("./icons/public-DsMIgunV.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/public-BpCg8FcW.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/public-CUqXfp2P.cjs"))},publish:{outlined:()=>Promise.resolve().then(()=>require("./icons/publish-aEOseQ0B.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/publish-CsV_amwU.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/publish-Dvx4su5p.cjs"))},radio:{outlined:()=>Promise.resolve().then(()=>require("./icons/radio-Bk8_Qjwv.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/radio-B2Ef_9iW.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/radio-CwtfSqPE.cjs"))},rate_review:{outlined:()=>Promise.resolve().then(()=>require("./icons/rate_review-B-T0Zspx.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/rate_review-B2oMwaV-.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/rate_review-DPXxfHCb.cjs"))},receipt:{outlined:()=>Promise.resolve().then(()=>require("./icons/receipt-C2nj4DVK.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/receipt-twmBLiMB.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/receipt-Bp12qtmR.cjs"))},receipt_long:{outlined:()=>Promise.resolve().then(()=>require("./icons/receipt_long-92b6OZd3.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/receipt_long-CAmLm05y.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/receipt_long-BwMqM1SJ.cjs"))},recent_actors:{outlined:()=>Promise.resolve().then(()=>require("./icons/recent_actors-DD_SIS2p.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/recent_actors-tqgiO4nq.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/recent_actors-BmkR1ajB.cjs"))},recommend:{outlined:()=>Promise.resolve().then(()=>require("./icons/recommend-DtKYWilu.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/recommend-Aw4CXDaO.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/recommend-CDHFINVu.cjs"))},record_voice_over:{outlined:()=>Promise.resolve().then(()=>require("./icons/record_voice_over-Dd1PPwQW.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/record_voice_over-CCuO1fha.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/record_voice_over-CfOde1To.cjs"))},redeem:{outlined:()=>Promise.resolve().then(()=>require("./icons/redeem-CeEXJTxS.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/redeem-CtvDEAWe.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/redeem-zus0PT_N.cjs"))},redo:{outlined:()=>Promise.resolve().then(()=>require("./icons/redo-DwiLjx8_.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/redo-CB6KXpep.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/redo-AXNo-2i6.cjs"))},refresh:{outlined:()=>Promise.resolve().then(()=>require("./icons/refresh-B34c1S8h.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/refresh-C_BBk9XA.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/refresh-DX9L5WGR.cjs"))},remove:{outlined:()=>Promise.resolve().then(()=>require("./icons/remove-BpH5DaU-.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/remove-ChmlIHbM.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/remove-D1owTeuN.cjs"))},reply:{outlined:()=>Promise.resolve().then(()=>require("./icons/reply-Cm9qKf6z.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/reply-Df4SE_cq.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/reply-CUp6bBiu.cjs"))},reply_all:{outlined:()=>Promise.resolve().then(()=>require("./icons/reply_all-CIm2mYxA.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/reply_all-Cu6bFwEY.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/reply_all-C1hqo2qO.cjs"))},report:{outlined:()=>Promise.resolve().then(()=>require("./icons/report-3zsKRuLn.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/report-Dmag693H.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/report-DCRNNTzs.cjs"))},restart_alt:{outlined:()=>Promise.resolve().then(()=>require("./icons/restart_alt-CffSc23A.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/restart_alt-CnJZzuua.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/restart_alt-Nz67oCa0.cjs"))},restaurant:{outlined:()=>Promise.resolve().then(()=>require("./icons/restaurant-BKqlwxRF.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/restaurant-CQoatClQ.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/restaurant-sK6evuVB.cjs"))},restore_from_trash:{outlined:()=>Promise.resolve().then(()=>require("./icons/restore_from_trash-DqcC-1Lu.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/restore_from_trash-DOFWLtoA.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/restore_from_trash-DpHGuo0S.cjs"))},rotate_left:{outlined:()=>Promise.resolve().then(()=>require("./icons/rotate_left-Ck4VMi6n.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/rotate_left-RKvDCGa_.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/rotate_left-C0-WUVsw.cjs"))},rotate_right:{outlined:()=>Promise.resolve().then(()=>require("./icons/rotate_right-i9bMrMe5.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/rotate_right-D1pzuEHb.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/rotate_right-8WHx_SuN.cjs"))},rule:{outlined:()=>Promise.resolve().then(()=>require("./icons/rule-GIRrcXbP.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/rule-DTjiYiZq.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/rule-PbcB9lZP.cjs"))},save:{outlined:()=>Promise.resolve().then(()=>require("./icons/save-fkqiyMK8.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/save-5IddfMjQ.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/save-CCF5PyEM.cjs"))},save_as:{outlined:()=>Promise.resolve().then(()=>require("./icons/save_as-BRWg38-i.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/save_as-Bxt_2D67.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/save_as-Cv4exkLT.cjs"))},schedule:{outlined:()=>Promise.resolve().then(()=>require("./icons/schedule-DSheAoDO.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/schedule-DZ99H6m4.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/schedule-DEux9M-N.cjs"))},schedule_send:{outlined:()=>Promise.resolve().then(()=>require("./icons/schedule_send-Do__Ry6u.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/schedule_send-Cp3iC0Oh.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/schedule_send-Ci1iGXRR.cjs"))},school:{outlined:()=>Promise.resolve().then(()=>require("./icons/school-DjIfocA8.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/school-DIBNfqBw.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/school-UiU6b6fz.cjs"))},science:{outlined:()=>Promise.resolve().then(()=>require("./icons/science-DU8HpI5E.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/science-DduXLiLr.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/science-CPQsO82_.cjs"))},search:{outlined:()=>Promise.resolve().then(()=>require("./icons/search-B1H9b_cm.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/search-BryYopV4.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/search-ChtQjHCV.cjs"))},search_off:{outlined:()=>Promise.resolve().then(()=>require("./icons/search_off-hK10qV9w.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/search_off-Ez3W0MtB.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/search_off-DKJlviq9.cjs"))},security:{outlined:()=>Promise.resolve().then(()=>require("./icons/security-CK8VfFnF.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/security-BieeAIQK.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/security-3FTT4sJq.cjs"))},select_all:{outlined:()=>Promise.resolve().then(()=>require("./icons/select_all-wO38Mugl.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/select_all-DkGq4MLr.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/select_all-CNzVtIaX.cjs"))},send:{outlined:()=>Promise.resolve().then(()=>require("./icons/send-CE0t-BeF.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/send-CSyvk2Uu.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/send-Da_IOaWi.cjs"))},send_and_archive:{outlined:()=>Promise.resolve().then(()=>require("./icons/send_and_archive-CIHEjPqZ.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/send_and_archive-x4Bd1yNd.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/send_and_archive-BeBX1v9Y.cjs"))},settings:{outlined:()=>Promise.resolve().then(()=>require("./icons/settings-Iczs8jeR.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/settings-CMP5MFnV.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/settings-CLZ2Gtbf.cjs"))},settings_applications:{outlined:()=>Promise.resolve().then(()=>require("./icons/settings_applications-9HE_9rY_.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/settings_applications-BZAjwB0l.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/settings_applications-BXuvrP6q.cjs"))},settings_backup_restore:{outlined:()=>Promise.resolve().then(()=>require("./icons/settings_backup_restore-D9TSfliZ.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/settings_backup_restore-CuanjFW6.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/settings_backup_restore-CyPIojJj.cjs"))},settings_bluetooth:{outlined:()=>Promise.resolve().then(()=>require("./icons/settings_bluetooth-DaGzD19J.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/settings_bluetooth-xy6HQVpn.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/settings_bluetooth-Cr6IHVRB.cjs"))},settings_brightness:{outlined:()=>Promise.resolve().then(()=>require("./icons/settings_brightness-bpZFSJhk.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/settings_brightness-BkiTw384.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/settings_brightness-DPr5MK-L.cjs"))},settings_ethernet:{outlined:()=>Promise.resolve().then(()=>require("./icons/settings_ethernet-CNSkOlVN.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/settings_ethernet-BKUalwzq.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/settings_ethernet-BiUPH4Zl.cjs"))},settings_input_component:{outlined:()=>Promise.resolve().then(()=>require("./icons/settings_input_component-By5nACBS.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/settings_input_component-BdohaMlR.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/settings_input_component-DlJfBGIJ.cjs"))},settings_input_hdmi:{outlined:()=>Promise.resolve().then(()=>require("./icons/settings_input_hdmi-C6AUSBbu.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/settings_input_hdmi-CJf8K5vP.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/settings_input_hdmi-B6RpJzAH.cjs"))},settings_input_svideo:{outlined:()=>Promise.resolve().then(()=>require("./icons/settings_input_svideo-DE-cJJ19.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/settings_input_svideo-GoJKdcLM.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/settings_input_svideo-GdfkseMO.cjs"))},settings_overscan:{outlined:()=>Promise.resolve().then(()=>require("./icons/settings_overscan-t2ziBpx0.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/settings_overscan-DjxVyh_p.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/settings_overscan-CzZdrVff.cjs"))},settings_phone:{outlined:()=>Promise.resolve().then(()=>require("./icons/settings_phone-DSs4IMu3.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/settings_phone-CdllR2_U.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/settings_phone-DMkUqrcI.cjs"))},settings_power:{outlined:()=>Promise.resolve().then(()=>require("./icons/settings_power-Sy2yCFJ9.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/settings_power-C0haok1N.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/settings_power-DCmvdxnX.cjs"))},settings_remote:{outlined:()=>Promise.resolve().then(()=>require("./icons/settings_remote-BgSfe6Rf.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/settings_remote-BkeWwusa.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/settings_remote-BjJR-PZA.cjs"))},settings_voice:{outlined:()=>Promise.resolve().then(()=>require("./icons/settings_voice-CJKvIhG_.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/settings_voice-DKlyDHlF.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/settings_voice-D5Vxz3H6.cjs"))},share:{outlined:()=>Promise.resolve().then(()=>require("./icons/share-4OI6GdPA.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/share-BUQun2WH.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/share-D3x5n12j.cjs"))},shield:{outlined:()=>Promise.resolve().then(()=>require("./icons/shield-BiW3E-iG.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/shield-BeTHVkub.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/shield-8LQV6fwO.cjs"))},shop:{outlined:()=>Promise.resolve().then(()=>require("./icons/shop-CQAvlAIJ.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/shop-CKc3vFoP.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/shop-CvzOHG8i.cjs"))},shop_two:{outlined:()=>Promise.resolve().then(()=>require("./icons/shop_two-DxlMpmpg.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/shop_two-B1EZi_d3.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/shop_two-DAWsfPhY.cjs"))},shopping_bag:{outlined:()=>Promise.resolve().then(()=>require("./icons/shopping_bag-BLYLRVEo.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/shopping_bag-pW2CC5Wm.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/shopping_bag-CsPqDtJv.cjs"))},shopping_cart:{outlined:()=>Promise.resolve().then(()=>require("./icons/shopping_cart-DnonQkQH.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/shopping_cart-D-FNTU2X.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/shopping_cart-Xj77jFuX.cjs"))},shopping_cart_checkout:{outlined:()=>Promise.resolve().then(()=>require("./icons/shopping_cart_checkout-X3I3ndRQ.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/shopping_cart_checkout-Ba3gAZZx.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/shopping_cart_checkout-Biv5QNse.cjs"))},shuffle:{outlined:()=>Promise.resolve().then(()=>require("./icons/shuffle-DgSPEo4a.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/shuffle-CJ1EAml3.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/shuffle-_2AFO10D.cjs"))},signal_cellular_4_bar:{outlined:()=>Promise.resolve().then(()=>require("./icons/signal_cellular_4_bar-B2EfVIOU.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/signal_cellular_4_bar-BnGmWjbd.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/signal_cellular_4_bar-tyWOuTIO.cjs"))},signal_wifi_4_bar:{outlined:()=>Promise.resolve().then(()=>require("./icons/signal_wifi_4_bar-BqhjBPKf.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/signal_wifi_4_bar-ACBg79Cd.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/signal_wifi_4_bar-BI0IoDFE.cjs"))},sim_card:{outlined:()=>Promise.resolve().then(()=>require("./icons/sim_card-COkNXOTt.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/sim_card-CIcMNdr5.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/sim_card-BPL0trEZ.cjs"))},skip_next:{outlined:()=>Promise.resolve().then(()=>require("./icons/skip_next-CTaln24G.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/skip_next-BjR_Ru_X.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/skip_next-BS3qv6JB.cjs"))},skip_previous:{outlined:()=>Promise.resolve().then(()=>require("./icons/skip_previous-C3jUnkqV.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/skip_previous-DupTvcKV.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/skip_previous-BKQnmbUY.cjs"))},smart_display:{outlined:()=>Promise.resolve().then(()=>require("./icons/smart_display-CGq_kFKP.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/smart_display-CvQj8hVk.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/smart_display-BOW5QUcA.cjs"))},sms:{outlined:()=>Promise.resolve().then(()=>require("./icons/sms-Ch9Dn8Lm.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/sms-BujJufM4.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/sms-C0XjdHC5.cjs"))},speaker:{outlined:()=>Promise.resolve().then(()=>require("./icons/speaker-CV63iKYE.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/speaker-DsfaZMR_.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/speaker-B2MvjZAN.cjs"))},speed:{outlined:()=>Promise.resolve().then(()=>require("./icons/speed-D7NBKqG3.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/speed-CXhRyCN3.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/speed-Dj7IJmxS.cjs"))},spellcheck:{outlined:()=>Promise.resolve().then(()=>require("./icons/spellcheck-bravLujp.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/spellcheck-BF_frwVA.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/spellcheck-bkyb6Y8s.cjs"))},splitscreen:{outlined:()=>Promise.resolve().then(()=>require("./icons/splitscreen-CWRxhPyh.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/splitscreen-BugC3AHX.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/splitscreen-CuTL4vMq.cjs"))},star:{outlined:()=>Promise.resolve().then(()=>require("./icons/star-71poZceL.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/star-CdAMIKli.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/star-cWZAor5m.cjs"))},star_half:{outlined:()=>Promise.resolve().then(()=>require("./icons/star_half-BwQ25Xpr.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/star_half-D21K-e2D.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/star_half-BWK8UDKr.cjs"))},stars:{outlined:()=>Promise.resolve().then(()=>require("./icons/stars--dAqSWaT.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/stars-NYu-DZz9.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/stars-Cyp7CBgv.cjs"))},stop:{outlined:()=>Promise.resolve().then(()=>require("./icons/stop-uwTugAuv.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/stop-CBeB_vzv.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/stop-BWqpBB4v.cjs"))},storage:{outlined:()=>Promise.resolve().then(()=>require("./icons/storage-CJ6k6H61.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/storage-YUkbXrS_.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/storage-zovKy4GK.cjs"))},store:{outlined:()=>Promise.resolve().then(()=>require("./icons/store-AytgGtla.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/store-CLKS8y8z.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/store-b7oiYjaT.cjs"))},storefront:{outlined:()=>Promise.resolve().then(()=>require("./icons/storefront-maPZQS5d.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/storefront-p8WcwK8a.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/storefront-C1xlNf7m.cjs"))},subtitles:{outlined:()=>Promise.resolve().then(()=>require("./icons/subtitles-CJ0WZ11D.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/subtitles-CweVpu7E.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/subtitles-DiEORnGT.cjs"))},support:{outlined:()=>Promise.resolve().then(()=>require("./icons/support-DZV0BDoT.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/support-DOeVw2Ol.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/support-C8IHRu3M.cjs"))},swap_horiz:{outlined:()=>Promise.resolve().then(()=>require("./icons/swap_horiz-CIHagp-O.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/swap_horiz-gBiaDATS.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/swap_horiz-DXxPNDOa.cjs"))},swap_vert:{outlined:()=>Promise.resolve().then(()=>require("./icons/swap_vert-CgI4ty66.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/swap_vert-CYo6e2hN.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/swap_vert-BIRQdp6w.cjs"))},swipe:{outlined:()=>Promise.resolve().then(()=>require("./icons/swipe-DNULZvdC.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/swipe-CBmB5bVK.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/swipe-BEkT-xey.cjs"))},switch_access_shortcut:{outlined:()=>Promise.resolve().then(()=>require("./icons/switch_access_shortcut-q_7AaUE5.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/switch_access_shortcut-4NHu-GzX.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/switch_access_shortcut-DlIlneXr.cjs"))},sync:{outlined:()=>Promise.resolve().then(()=>require("./icons/sync-c0eh9srx.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/sync-B8eDMIHY.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/sync-Bb15b-LY.cjs"))},tab:{outlined:()=>Promise.resolve().then(()=>require("./icons/tab-Br904I-x.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/tab-DoWIBjMF.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/tab-DcX5jSYD.cjs"))},tab_unselected:{outlined:()=>Promise.resolve().then(()=>require("./icons/tab_unselected-h_5qNQAy.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/tab_unselected-Jryi6UG7.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/tab_unselected-BnB9OpTQ.cjs"))},table_rows:{outlined:()=>Promise.resolve().then(()=>require("./icons/table_rows-DhopWxQ4.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/table_rows-CD8mGsGH.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/table_rows-DBST5uR7.cjs"))},tablet:{outlined:()=>Promise.resolve().then(()=>require("./icons/tablet-BPyP2a60.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/tablet-BObXzgDp.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/tablet-DEJSebWQ.cjs"))},tag:{outlined:()=>Promise.resolve().then(()=>require("./icons/tag-BKHmPW7O.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/tag-bOLfzkCK.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/tag-DeeBL365.cjs"))},task:{outlined:()=>Promise.resolve().then(()=>require("./icons/task-B9X6QTUq.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/task-DrKSPxAM.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/task-CaXkBV5s.cjs"))},task_alt:{outlined:()=>Promise.resolve().then(()=>require("./icons/task_alt-DmM9U1Ld.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/task_alt-DuVPr61c.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/task_alt-BWpiiOPB.cjs"))},terminal:{outlined:()=>Promise.resolve().then(()=>require("./icons/terminal-Cq96EmHZ.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/terminal-9rECHy3F.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/terminal-UFxOCVAJ.cjs"))},text_fields:{outlined:()=>Promise.resolve().then(()=>require("./icons/text_fields-srTO6UAQ.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/text_fields-MBNGOwpE.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/text_fields-31b2r-eh.cjs"))},thumb_down:{outlined:()=>Promise.resolve().then(()=>require("./icons/thumb_down-C-ZYO8aS.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/thumb_down-CXKcFuVv.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/thumb_down-B1EnDy9g.cjs"))},thumb_up:{outlined:()=>Promise.resolve().then(()=>require("./icons/thumb_up-CMK43jwc.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/thumb_up-BjnPL-vY.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/thumb_up-BJldcoTn.cjs"))},timeline:{outlined:()=>Promise.resolve().then(()=>require("./icons/timeline-BorNHWXs.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/timeline-DHqVljjl.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/timeline-DLlL3HNg.cjs"))},timer:{outlined:()=>Promise.resolve().then(()=>require("./icons/timer-C05SAUqw.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/timer-CYZn5P7p.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/timer-B82U_DX8.cjs"))},toc:{outlined:()=>Promise.resolve().then(()=>require("./icons/toc-DhGghZ9I.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/toc-C84pl4PR.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/toc-BtcPEvk6.cjs"))},today:{outlined:()=>Promise.resolve().then(()=>require("./icons/today-DzGPx-JC.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/today-BkPPR4dh.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/today-BdVLVtYY.cjs"))},toggle_off:{outlined:()=>Promise.resolve().then(()=>require("./icons/toggle_off-BDbSL0R3.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/toggle_off-BDH4j7_B.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/toggle_off-BKJ1oYkM.cjs"))},toggle_on:{outlined:()=>Promise.resolve().then(()=>require("./icons/toggle_on-Dl1NcDmP.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/toggle_on-DURt0a-K.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/toggle_on-BcgFWI69.cjs"))},touch_app:{outlined:()=>Promise.resolve().then(()=>require("./icons/touch_app-BjCIP79F.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/touch_app-DYx-e9w1.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/touch_app-DMIySKht.cjs"))},tour:{outlined:()=>Promise.resolve().then(()=>require("./icons/tour-Cvtl9j2v.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/tour-D_mBWC4A.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/tour-DrIKd0iZ.cjs"))},track_changes:{outlined:()=>Promise.resolve().then(()=>require("./icons/track_changes-CrWcjG7M.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/track_changes-CmftMM7i.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/track_changes-2gWHhzk3.cjs"))},train:{outlined:()=>Promise.resolve().then(()=>require("./icons/train-bPZxRsaq.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/train-xbz9XQhb.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/train-pWcRhKXA.cjs"))},translate:{outlined:()=>Promise.resolve().then(()=>require("./icons/translate-CYXRRxeY.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/translate-WCc3CLqx.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/translate-CPdtUGGD.cjs"))},trending_down:{outlined:()=>Promise.resolve().then(()=>require("./icons/trending_down-ImDCa4Jh.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/trending_down-DIbaV34v.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/trending_down-dZnaOW1J.cjs"))},trending_flat:{outlined:()=>Promise.resolve().then(()=>require("./icons/trending_flat-C1svR9KS.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/trending_flat-Br_PXO04.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/trending_flat-C4esyAhD.cjs"))},trending_up:{outlined:()=>Promise.resolve().then(()=>require("./icons/trending_up-Bgw7w8PT.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/trending_up-fksGS-GY.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/trending_up-DPd7c_Dq.cjs"))},troubleshoot:{outlined:()=>Promise.resolve().then(()=>require("./icons/troubleshoot-K7Bl_YaC.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/troubleshoot-DI-EgiZK.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/troubleshoot-CZMhLPJh.cjs"))},unarchive:{outlined:()=>Promise.resolve().then(()=>require("./icons/unarchive-CO882sl0.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/unarchive-DyUoj8om.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/unarchive-D4LtLEle.cjs"))},undo:{outlined:()=>Promise.resolve().then(()=>require("./icons/undo-iQLEL8Zi.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/undo-CIwSY9GL.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/undo-C9xs6NjO.cjs"))},unfold_less:{outlined:()=>Promise.resolve().then(()=>require("./icons/unfold_less-LC-ftUfz.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/unfold_less-DxekXqvM.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/unfold_less-BKOJLQlU.cjs"))},unfold_more:{outlined:()=>Promise.resolve().then(()=>require("./icons/unfold_more-BVL_GIHl.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/unfold_more-DIl3gTo7.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/unfold_more-Dlh3P3cv.cjs"))},update:{outlined:()=>Promise.resolve().then(()=>require("./icons/update-0Vhu6gl3.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/update-a1H2RXCn.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/update-BDOxUBTg.cjs"))},upgrade:{outlined:()=>Promise.resolve().then(()=>require("./icons/upgrade-CqKqDz1C.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/upgrade-x2gsVQIM.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/upgrade-CdJyAFoI.cjs"))},upload:{outlined:()=>Promise.resolve().then(()=>require("./icons/upload-CMBoE1MT.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/upload-CfYL9Zr2.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/upload-BDW8-FNY.cjs"))},vaccines:{outlined:()=>Promise.resolve().then(()=>require("./icons/vaccines-C4f-r8y5.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/vaccines-Dak3ypH-.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/vaccines-BgYSLR9w.cjs"))},verified:{outlined:()=>Promise.resolve().then(()=>require("./icons/verified-BPpdTMbw.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/verified-BR7xxAQA.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/verified-C1_3O9Pq.cjs"))},verified_user:{outlined:()=>Promise.resolve().then(()=>require("./icons/verified_user-B4cpofdT.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/verified_user-CHiaKWJQ.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/verified_user-LzxM0Ixt.cjs"))},view_agenda:{outlined:()=>Promise.resolve().then(()=>require("./icons/view_agenda-wmPKBjy1.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/view_agenda-ChVSNVuJ.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/view_agenda-BcCbU_Cx.cjs"))},view_array:{outlined:()=>Promise.resolve().then(()=>require("./icons/view_array-4eH_Y-9C.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/view_array-u_DfgvOJ.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/view_array-CtftT6bB.cjs"))},view_carousel:{outlined:()=>Promise.resolve().then(()=>require("./icons/view_carousel-cKrqJhoI.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/view_carousel--ToJf94l.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/view_carousel-CjxIXwuR.cjs"))},view_column:{outlined:()=>Promise.resolve().then(()=>require("./icons/view_column-CI58na9m.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/view_column-CGO0_VaN.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/view_column-CZfddZfP.cjs"))},view_day:{outlined:()=>Promise.resolve().then(()=>require("./icons/view_day-BKQpPz70.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/view_day-BL7dG_71.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/view_day-D03WAaG1.cjs"))},view_headline:{outlined:()=>Promise.resolve().then(()=>require("./icons/view_headline-bvoWlfSZ.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/view_headline-CEiHaTUb.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/view_headline-zUGYSGF4.cjs"))},view_list:{outlined:()=>Promise.resolve().then(()=>require("./icons/view_list-Cn16jlm_.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/view_list-COkcexHQ.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/view_list-q6O6UQ8s.cjs"))},view_module:{outlined:()=>Promise.resolve().then(()=>require("./icons/view_module-fdzeD45B.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/view_module-BIq8D_VI.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/view_module-Dugq4U2N.cjs"))},view_stream:{outlined:()=>Promise.resolve().then(()=>require("./icons/view_stream-DY09WFyh.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/view_stream-Bok3MI-A.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/view_stream-BprhnLvm.cjs"))},view_week:{outlined:()=>Promise.resolve().then(()=>require("./icons/view_week-BwVY-Gzo.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/view_week-BIG9oES2.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/view_week-CVSaj-eg.cjs"))},visibility:{outlined:()=>Promise.resolve().then(()=>require("./icons/visibility-CcM0M7Ae.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/visibility-B_skKXCn.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/visibility-Du_QtShp.cjs"))},visibility_off:{outlined:()=>Promise.resolve().then(()=>require("./icons/visibility_off-77O8Ixn_.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/visibility_off-CQkbf0sH.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/visibility_off-DDSAECSN.cjs"))},voice_chat:{outlined:()=>Promise.resolve().then(()=>require("./icons/voice_chat-B2m86WSN.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/voice_chat-DA-inGEr.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/voice_chat-N9lzzPD3.cjs"))},volume_down:{outlined:()=>Promise.resolve().then(()=>require("./icons/volume_down-X8Fdb5GL.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/volume_down-ormtJ6rA.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/volume_down-xq98sRni.cjs"))},volume_mute:{outlined:()=>Promise.resolve().then(()=>require("./icons/volume_mute-Dg1Sad52.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/volume_mute-2JEExPCA.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/volume_mute-BmLOt1AC.cjs"))},volume_off:{outlined:()=>Promise.resolve().then(()=>require("./icons/volume_off-yubxzc3X.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/volume_off-BgpeewH8.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/volume_off-BrkBzaCw.cjs"))},volume_up:{outlined:()=>Promise.resolve().then(()=>require("./icons/volume_up-bP-cavNY.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/volume_up-DYrt4pXz.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/volume_up-CP5jPUnv.cjs"))},vpn_key:{outlined:()=>Promise.resolve().then(()=>require("./icons/vpn_key-DLw31EM4.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/vpn_key-DYrLYI7L.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/vpn_key-DepwbifQ.cjs"))},vpn_lock:{outlined:()=>Promise.resolve().then(()=>require("./icons/vpn_lock-CArd8FFH.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/vpn_lock-4HGysBa8.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/vpn_lock-DoxQ56X_.cjs"))},wallet:{outlined:()=>Promise.resolve().then(()=>require("./icons/wallet-D6d5LH8m.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/wallet-CGvvbyGf.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/wallet-D6lc8i2O.cjs"))},warning:{outlined:()=>Promise.resolve().then(()=>require("./icons/warning-3MXqZXik.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/warning-iht20xAd.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/warning-BDqDQ0zE.cjs"))},watch:{outlined:()=>Promise.resolve().then(()=>require("./icons/watch-Dxwts4x_.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/watch-C5XLco8t.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/watch-kEhspwOG.cjs"))},widgets:{outlined:()=>Promise.resolve().then(()=>require("./icons/widgets-DwrJqxGF.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/widgets-BXJ2Q2Ej.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/widgets-obimkiev.cjs"))},wifi:{outlined:()=>Promise.resolve().then(()=>require("./icons/wifi-DrroKwB8.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/wifi-2DytN2nN.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/wifi-BkLgmjTL.cjs"))},wifi_off:{outlined:()=>Promise.resolve().then(()=>require("./icons/wifi_off-BaJM5EaE.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/wifi_off-Sfa-62fD.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/wifi_off-Dc0PhObG.cjs"))},work:{outlined:()=>Promise.resolve().then(()=>require("./icons/work-QooH-JpG.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/work-Do6SwFLt.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/work-D3tksTSD.cjs"))},zoom_in:{outlined:()=>Promise.resolve().then(()=>require("./icons/zoom_in-3A4joxuV.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/zoom_in-DL9SEBJs.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/zoom_in-i6DpZCMO.cjs"))},zoom_out:{outlined:()=>Promise.resolve().then(()=>require("./icons/zoom_out-DGmKh370.cjs")),rounded:()=>Promise.resolve().then(()=>require("./icons/zoom_out-DyYWanOO.cjs")),sharp:()=>Promise.resolve().then(()=>require("./icons/zoom_out-CKPGeJDN.cjs"))}};console.log(Object.keys(_i));const Ur={};function ed(e){return{...e}}function ag(e){Object.assign(Ur,ed(e))}function cg(e){const r=ed(e);Object.keys(Ur).forEach(t=>{delete Ur[t]}),Object.assign(Ur,r)}function ug(){Object.keys(Ur).forEach(e=>{delete Ur[e]})}function dg(){const e=Object.keys(Ur),r=Object.keys(_i);return Array.from(new Set([...e,...r]))}function ja(e){const{title:r,...t}=e;return c.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":r?void 0:!0,role:r?"img":void 0,...t,children:r?c.jsx("title",{children:r}):null})}function fg(e,r){const t=Ur[e]??_i[e]??null;return t?r==="rounded"?t.rounded??t.outlined:r==="sharp"?t.sharp??t.outlined:t.outlined:null}function mg(e,r){return u.lazy(async()=>{const t=fg(e,r);if(!t)return{default:ja};try{return{default:(await t()).default}}catch{return{default:ja}}})}function $e(e){const{name:r,svg:t,src:o,variant:n="outlined",useColorAsFill:s=!1,size:i=24,color:l="currentColor",className:a,title:d}=e,f=u.useMemo(()=>mg(r??"",n),[r,n]),m=s?l:"currentColor";return t?c.jsx(t,{width:i,height:i,fill:m,color:l,className:a,title:d,focusable:"false","aria-hidden":d?void 0:!0}):o?c.jsx("img",{src:o,alt:d??"","aria-hidden":d?void 0:!0,className:a,style:{display:"inline-block",width:i,height:i}}):c.jsx(u.Suspense,{fallback:c.jsx("span",{"aria-hidden":"true",className:a,style:{display:"inline-block",width:i,height:i}}),children:c.jsx(f,{width:i,height:i,fill:m,color:l,className:a,title:d,focusable:"false","aria-hidden":d?void 0:!0})})}$e.displayName="Icon";let rd=null;function Sa(e){rd=e}function hg(){return rd}const pg=200,vg={info:{icon:"info",iconColor:"#6b7280",role:"status",live:"polite"},success:{icon:"check_circle",iconColor:"#16a34a",role:"status",live:"polite"},warn:{icon:"warning",iconColor:"#d97706",role:"alert",live:"assertive"},error:{icon:"error",iconColor:"#dc2626",role:"alert",live:"assertive"}},td=u.createContext(null);let Na=0;function gg(){return Na+=1,`ldkj-toast-${Date.now()}-${Na}`}function xg(e,r){return e.filter(t=>t.id!==r)}function bg(e){const r=new Map;for(const t of e){const o=r.get(t.placement);o?o.push(t):r.set(t.placement,[t])}return r}function od(e){const{children:r,placement:t="top",duration:o=3e3,queueLimit:n=5,reverse:s=!1}=e,[i,l]=u.useState([]),a=u.useRef(new Map),d=u.useRef(new Map),f=u.useCallback(x=>{const w=a.current.get(x);w!==void 0&&(window.clearTimeout(w),a.current.delete(x));const P=d.current.get(x);P!==void 0&&(window.clearTimeout(P),d.current.delete(x))},[]),m=u.useCallback(x=>{f(x),l(w=>xg(w,x))},[f]),p=u.useCallback(x=>{f(x),l(P=>P.map(C=>C.id===x&&!C.leaving?{...C,leaving:!0}:C));const w=window.setTimeout(()=>{m(x)},pg);d.current.set(x,w)},[f,m]),v=u.useCallback(()=>{l(x=>(x.forEach(w=>f(w.id)),[]))},[f]),g=u.useCallback(x=>{const w=x.duration??o,P=x.id??gg(),C={id:P,message:x.message,type:x.type??"info",placement:x.placement??t,closable:x.closable??!0,icon:x.icon,iconColor:x.iconColor,leaving:!1};l(j=>{const S=[...j,C];if(S.length<=n)return S;const N=S.length-n;return S.slice(0,N).forEach(q=>f(q.id)),S.slice(N)});const k=window.setTimeout(()=>{p(P)},Math.max(w,0));return a.current.set(P,k),P},[f,p,o,t,n]);u.useEffect(()=>()=>{a.current.forEach(x=>window.clearTimeout(x)),d.current.forEach(x=>window.clearTimeout(x)),a.current.clear(),d.current.clear()},[]);const h=u.useMemo(()=>({push:g,dismiss:p,clear:v}),[v,p,g]);u.useEffect(()=>(Sa(h),()=>Sa(null)),[h]);const y=u.useMemo(()=>bg(i),[i]),b=Array.from(y.keys());return c.jsxs(td.Provider,{value:h,children:[r,b.map(x=>{const w=y.get(x)??[],P=s?[...w].reverse():w;return c.jsx("div",{className:R("ldkj-toast-viewport",`ldkj-toast-viewport-${x}`),"aria-hidden":P.length===0,children:P.map(C=>{const k=vg[C.type],j=C.iconColor??k.iconColor;return c.jsxs("div",{className:R("ldkj-toast-item",C.leaving?"ldkj-toast-leave":"ldkj-toast-appear"),role:k.role,"aria-live":k.live,"aria-atomic":"true",children:[typeof C.icon=="string"?c.jsx($e,{name:C.icon,color:j,size:20,className:"ldkj-toast-icon",title:`${C.type} icon`}):C.icon?.svg||C.icon?.src?c.jsx($e,{svg:C.icon.svg,src:C.icon.src,color:j,size:20,className:"ldkj-toast-icon",title:`${C.type} icon`}):c.jsx($e,{name:k.icon,color:j,size:20,className:"ldkj-toast-icon",title:`${C.type} icon`}),c.jsx("div",{className:"ldkj-toast-message",children:C.message}),C.closable?c.jsx("button",{type:"button",className:"ldkj-toast-close","aria-label":"关闭提示",onClick:()=>p(C.id),children:c.jsx($e,{name:"close",size:16,className:"ldkj-toast-close-icon"})}):null]},C.id)})},x)})]})}od.displayName="ToastProvider";function yg(){const e=u.useContext(td);if(!e)throw new Error("useToast 必须在 ToastProvider 内使用。");const r=u.useCallback((i,l)=>e.push({message:i,...l}),[e]),t=u.useCallback((i,l)=>e.push({type:"info",message:i,...l}),[e]),o=u.useCallback((i,l)=>e.push({type:"success",message:i,...l}),[e]),n=u.useCallback((i,l)=>e.push({type:"warn",message:i,...l}),[e]),s=u.useCallback((i,l)=>e.push({type:"error",message:i,...l}),[e]);return u.useMemo(()=>({show:r,info:t,success:o,warn:n,error:s,dismiss:e.dismiss,clear:e.clear}),[e.clear,e.dismiss,s,t,r,o,n])}const Go={placement:"top",duration:3e3,closable:!0};let qa=!1;const fr={...Go};function nd(e){return{placement:e?.placement??fr.placement,duration:e?.duration??fr.duration,id:e?.id,closable:e?.closable??fr.closable,icon:e?.icon,iconColor:e?.iconColor}}function Yo(){const e=hg();return e||(qa||(qa=!0,console.warn("toast 调用失败:请先在应用根节点挂载 ToastProvider。")),null)}function Ro(e,r,t){const o=Yo();return o?o.push({type:e,message:r,...nd(t)}):""}const wg={show(e,r){const t=Yo();return t?t.push({type:"info",message:typeof e=="string"?e:String(e),...nd(r)}):""},info(e,r){return Ro("info",e,r)},success(e,r){return Ro("success",e,r)},warn(e,r){return Ro("warn",e,r)},error(e,r){return Ro("error",e,r)},dismiss(e){const r=Yo();r&&r.dismiss(e)},clear(){const e=Yo();e&&e.clear()},config(e){fr.placement=e.placement??fr.placement,fr.duration=e.duration??fr.duration,fr.closable=e.closable??fr.closable},resetConfig(){fr.placement=Go.placement,fr.duration=Go.duration,fr.closable=Go.closable}};function Ea(e){if(e!=null)return typeof e=="boolean"?e?"blur(5px)":void 0:typeof e=="number"?`blur(${e}px)`:`blur(${e})`}function Oi(e){const{open:r=!1,destroyOnClose:t=!1,closeOnMaskClick:o=!1,scrollable:n=!1,alpha:s=.5,blur:i,x:l="50%",y:a="50%",translateX:d="-50%",translateY:f="-50%",onClose:m,onOpen:p,className:v,class:g,style:h,sx:y,contentClassName:b,contentClass:x,contentStyle:w,contentSx:P,children:C,...k}=e,j=se(),{sxClassName:S,sxInlineStyle:N}=re(y,j),{sxClassName:A,sxInlineStyle:q}=re(P,j),E=u.useRef(!1);return u.useEffect(()=>{if(E.current){r?p?.():m?.();return}E.current=!0},[r,m,p]),u.useEffect(()=>{if(!r||n)return;const I=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=I}},[r,n]),!r&&t?null:c.jsx("div",{hidden:!r,className:R("fixed inset-0 z-[var(--ldkj-z-modal)]",S,v,g),style:D({backgroundColor:s===.5?"var(--ldkj-color-overlay)":`rgba(0, 0, 0, ${s})`,backdropFilter:Ea(i),WebkitBackdropFilter:Ea(i)},h,N),onTouchStart:I=>{n||(I.preventDefault(),I.stopPropagation())},onClick:()=>{o&&m?.()},...k,children:c.jsx("div",{className:R("absolute",A,b,x),style:D({left:l,top:a,transform:`translate(${d}, ${f})`},w,q),onClick:I=>{I.stopPropagation()},children:C})})}Oi.displayName="Modal";const sd=u.createContext(null),id=u.createContext(null);function vo(e){const r=u.useContext(sd);if(!r)throw new Error(`${e} 必须在 <Dialog> 内使用`);return r}function Jr(e){const r=se();return re(e,r)}function Pg(e){const{open:r,defaultOpen:t=!1,onOpenChange:o}=e,n=r!==void 0,[s,i]=u.useState(t),l=n?r:s,a=u.useCallback(d=>{n||i(d),o?.(d)},[n,o]);return[l,a]}const Cg=e=>{const{open:r,defaultOpen:t,onOpenChange:o,modal:n=!0,lockScroll:s=!0,destroyOnClose:i=!1,closeOnMaskClick:l=!0,scrollable:a=!1,children:d}=e,[f,m]=Pg({open:r,defaultOpen:t,onOpenChange:o}),p=u.useMemo(()=>({open:f,setOpen:m,modal:n,lockScroll:s,destroyOnClose:i,closeOnMaskClick:l,scrollable:a}),[l,i,s,n,f,a,m]);return c.jsx(sd.Provider,{value:p,children:d})},Mi=u.forwardRef((e,r)=>{const{setOpen:t}=vo("DialogTrigger"),{asChild:o,asChildWrapper:n="span",className:s,class:i,sx:l,style:a,children:d,onClick:f,...m}=e,{sxClassName:p,sxInlineStyle:v}=Jr(l),g=h=>{f?.(h),!h.defaultPrevented&&t(!0)};return o?c.jsx(n,{ref:r,className:R("inline-flex w-fit",p,s,i),style:D(a,v),onClick:g,...m,children:d}):c.jsx("button",{ref:r,type:"button",className:R(p,s,i),style:D(a,v),onClick:g,...m,children:d})});Mi.displayName="DialogTrigger";const Li=u.forwardRef((e,r)=>{const{setOpen:t}=vo("DialogClose"),{asChild:o,asChildWrapper:n="span",className:s,class:i,sx:l,style:a,children:d,onClick:f,...m}=e,{sxClassName:p,sxInlineStyle:v}=Jr(l),g=h=>{f?.(h),!h.defaultPrevented&&t(!1)};return o?c.jsx(n,{ref:r,className:R("inline-flex w-fit",p,s,i),style:D(a,v),onClick:g,...m,children:d}):c.jsx("button",{ref:r,type:"button",className:R(p,s,i),style:D(a,v),onClick:g,...m,children:d})});Li.displayName="DialogClose";const ld=e=>{const{children:r,container:t}=e;if(typeof document>"u")return null;const o=t??document.body;return o?mo.createPortal(r,o):null},Di=u.forwardRef((e,r)=>{const{open:t,destroyOnClose:o,closeOnMaskClick:n,setOpen:s}=vo("DialogOverlay"),{className:i,class:l,sx:a,style:d,blur:f=!0,onClick:m,...p}=e,{sxClassName:v,sxInlineStyle:g}=Jr(a);return!t&&o?null:c.jsx("div",{ref:r,hidden:!t,"data-state":t?"open":"closed",className:R("fixed inset-0 z-[var(--ldkj-z-modal)] bg-[color:var(--ldkj-color-overlay)]",f?"backdrop-blur-[1px]":null,"data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",v,i,l),style:D(d,g),onClick:h=>{m?.(h),!h.defaultPrevented&&n&&s(!1)},...p})});Di.displayName="DialogOverlay";const Fi=u.forwardRef((e,r)=>{const t=vo("DialogContent"),{children:o,className:n,class:s,sx:i,style:l,showClose:a=!0,overlayClassName:d,overlaySx:f,overlayBlur:m=!0,onEscapeKeyDown:p,onPointerDownOutside:v,onOpenAutoFocus:g,onCloseAutoFocus:h,...y}=e,{sxClassName:b,sxInlineStyle:x}=Jr(i),w=u.useRef(null),P=u.useRef(t.open);u.useImperativeHandle(r,()=>w.current),u.useEffect(()=>{const S=P.current;if(!S&&t.open){const N=new Event("openAutoFocus",{cancelable:!0});g?.(N),N.defaultPrevented||w.current?.focus()}if(S&&!t.open){const N=new Event("closeAutoFocus",{cancelable:!0});h?.(N)}P.current=t.open},[t.open,h,g]),u.useEffect(()=>{if(!t.open)return;const S=N=>{N.key==="Escape"&&(p?.(N),!N.defaultPrevented&&t.setOpen(!1))};return window.addEventListener("keydown",S),()=>{window.removeEventListener("keydown",S)}},[t,p]);const C=t.lockScroll&&t.modal,k=t.scrollable||!C,j=t.modal&&t.closeOnMaskClick;return c.jsx(Oi,{open:t.open,destroyOnClose:t.destroyOnClose,closeOnMaskClick:j,scrollable:k,blur:m?1:!1,className:R("z-[var(--ldkj-z-modal)]","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",d),sx:f,onClose:()=>{const S=new PointerEvent("pointerdown",{bubbles:!0,cancelable:!0});v?.(S),S.defaultPrevented||t.setOpen(!1)},contentClassName:"z-50 w-[calc(100%-2rem)] max-w-lg",contentSx:void 0,x:"50%",y:"50%",translateX:"-50%",translateY:"-50%",children:c.jsx("div",{ref:w,role:"dialog","aria-modal":(!!t.modal).toString(),tabIndex:-1,"data-state":t.open?"open":"closed",className:R("relative grid gap-4 rounded-lg border border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-surface)] p-6 text-[color:var(--ldkj-color-surface-foreground)] shadow-[var(--ldkj-shadow-modal)] outline-none","duration-200","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]","data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",b,n,s),style:D(l,x),...y,children:c.jsx(id.Provider,{value:{showClose:a},children:o})})})});Fi.displayName="DialogContent";const Bi=u.forwardRef((e,r)=>{const t=vo("DialogHeader"),n=u.useContext(id)?.showClose??!1,{className:s,class:i,sx:l,style:a,children:d,...f}=e,{sxClassName:m,sxInlineStyle:p}=Jr(l);return c.jsxs("div",{ref:r,className:R("flex items-start justify-between gap-3",m,s,i),style:D(a,p),...f,children:[c.jsx("div",{className:"flex min-w-0 flex-1 flex-col gap-1.5 text-center sm:text-left",children:d}),n?c.jsx("button",{type:"button",className:R("inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-md","text-[color:var(--ldkj-color-muted-foreground)] transition-colors hover:bg-[color:var(--ldkj-color-accent)] hover:text-[color:var(--ldkj-color-foreground)]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)] focus-visible:ring-offset-2","disabled:pointer-events-none"),"aria-label":"关闭弹窗",onClick:()=>t.setOpen(!1),children:c.jsx($e,{name:"close",size:16})}):null]})});Bi.displayName="DialogHeader";const $i=u.forwardRef((e,r)=>{const{className:t,class:o,sx:n,style:s,...i}=e,{sxClassName:l,sxInlineStyle:a}=Jr(n);return c.jsx("div",{ref:r,className:R("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",l,t,o),style:D(s,a),...i})});$i.displayName="DialogFooter";const Vi=u.forwardRef((e,r)=>{const{className:t,class:o,sx:n,style:s,...i}=e,{sxClassName:l,sxInlineStyle:a}=Jr(n);return c.jsx("h2",{ref:r,className:R("m-0 text-lg font-semibold leading-6 text-[color:var(--ldkj-color-foreground)]",l,t,o),style:D({margin:0,borderTop:0,paddingTop:0,letterSpacing:0,fontSize:"1.125rem",fontWeight:600,lineHeight:"1.5rem"},s,a),...i})});Vi.displayName="DialogTitle";const zi=u.forwardRef((e,r)=>{const{className:t,class:o,sx:n,style:s,...i}=e,{sxClassName:l,sxInlineStyle:a}=Jr(n);return c.jsx("p",{ref:r,className:R("m-0 text-sm leading-5 text-[color:var(--ldkj-color-muted-foreground)]",l,t,o),style:D({margin:0,fontSize:"0.875rem",lineHeight:"1.25rem"},s,a),...i})});zi.displayName="DialogDescription";const kg=Object.assign(Cg,{Trigger:Mi,Portal:ld,Close:Li,Overlay:Di,Content:Fi,Header:Bi,Footer:$i,Title:Vi,Description:zi});function pe(e,r,{checkForDefaultPrevented:t=!0}={}){return function(n){if(e?.(n),t===!1||!n.defaultPrevented)return r?.(n)}}function Ra(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function Hi(...e){return r=>{let t=!1;const o=e.map(n=>{const s=Ra(n,r);return!t&&typeof s=="function"&&(t=!0),s});if(t)return()=>{for(let n=0;n<o.length;n++){const s=o[n];typeof s=="function"?s():Ra(e[n],null)}}}}function Re(...e){return u.useCallback(Hi(...e),e)}function br(e,r=[]){let t=[];function o(s,i){const l=u.createContext(i),a=t.length;t=[...t,i];const d=m=>{const{scope:p,children:v,...g}=m,h=p?.[e]?.[a]||l,y=u.useMemo(()=>g,Object.values(g));return c.jsx(h.Provider,{value:y,children:v})};d.displayName=s+"Provider";function f(m,p){const v=p?.[e]?.[a]||l,g=u.useContext(v);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[d,f]}const n=()=>{const s=t.map(i=>u.createContext(i));return function(l){const a=l?.[e]||s;return u.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return n.scopeName=e,[o,jg(n,...r)]}function jg(...e){const r=e[0];if(e.length===1)return r;const t=()=>{const o=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(s){const i=o.reduce((l,{useScope:a,scopeName:d})=>{const m=a(s)[`__scope${d}`];return{...l,...m}},{});return u.useMemo(()=>({[`__scope${r.scopeName}`]:i}),[i])}};return t.scopeName=r.scopeName,t}function io(e){const r=Sg(e),t=u.forwardRef((o,n)=>{const{children:s,...i}=o,l=u.Children.toArray(s),a=l.find(qg);if(a){const d=a.props.children,f=l.map(m=>m===a?u.Children.count(d)>1?u.Children.only(null):u.isValidElement(d)?d.props.children:null:m);return c.jsx(r,{...i,ref:n,children:u.isValidElement(d)?u.cloneElement(d,void 0,f):null})}return c.jsx(r,{...i,ref:n,children:s})});return t.displayName=`${e}.Slot`,t}function Sg(e){const r=u.forwardRef((t,o)=>{const{children:n,...s}=t;if(u.isValidElement(n)){const i=Rg(n),l=Eg(s,n.props);return n.type!==u.Fragment&&(l.ref=o?Hi(o,i):i),u.cloneElement(n,l)}return u.Children.count(n)>1?u.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var ad=Symbol("radix.slottable");function Ng(e){const r=({children:t})=>c.jsx(c.Fragment,{children:t});return r.displayName=`${e}.Slottable`,r.__radixId=ad,r}function qg(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ad}function Eg(e,r){const t={...r};for(const o in r){const n=e[o],s=r[o];/^on[A-Z]/.test(o)?n&&s?t[o]=(...l)=>{const a=s(...l);return n(...l),a}:n&&(t[o]=n):o==="style"?t[o]={...n,...s}:o==="className"&&(t[o]=[n,s].filter(Boolean).join(" "))}return{...e,...t}}function Rg(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning;return t?e.ref:(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}var Ag=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ye=Ag.reduce((e,r)=>{const t=io(`Primitive.${r}`),o=u.forwardRef((n,s)=>{const{asChild:i,...l}=n,a=i?t:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(a,{...l,ref:s})});return o.displayName=`Primitive.${r}`,{...e,[r]:o}},{});function Ig(e,r){e&&mo.flushSync(()=>e.dispatchEvent(r))}function Ar(e){const r=u.useRef(e);return u.useEffect(()=>{r.current=e}),u.useMemo(()=>(...t)=>r.current?.(...t),[])}function Tg(e,r=globalThis?.document){const t=Ar(e);u.useEffect(()=>{const o=n=>{n.key==="Escape"&&t(n)};return r.addEventListener("keydown",o,{capture:!0}),()=>r.removeEventListener("keydown",o,{capture:!0})},[t,r])}var _g="DismissableLayer",oi="dismissableLayer.update",Og="dismissableLayer.pointerDownOutside",Mg="dismissableLayer.focusOutside",Aa,cd=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Pn=u.forwardRef((e,r)=>{const{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:o,onPointerDownOutside:n,onFocusOutside:s,onInteractOutside:i,onDismiss:l,...a}=e,d=u.useContext(cd),[f,m]=u.useState(null),p=f?.ownerDocument??globalThis?.document,[,v]=u.useState({}),g=Re(r,j=>m(j)),h=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=h.indexOf(y),x=f?h.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,P=x>=b,C=Fg(j=>{const S=j.target,N=[...d.branches].some(A=>A.contains(S));!P||N||(n?.(j),i?.(j),j.defaultPrevented||l?.())},p),k=Bg(j=>{const S=j.target;[...d.branches].some(A=>A.contains(S))||(s?.(j),i?.(j),j.defaultPrevented||l?.())},p);return Tg(j=>{x===d.layers.size-1&&(o?.(j),!j.defaultPrevented&&l&&(j.preventDefault(),l()))},p),u.useEffect(()=>{if(f)return t&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Aa=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Ia(),()=>{t&&d.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Aa)}},[f,p,t,d]),u.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Ia())},[f,d]),u.useEffect(()=>{const j=()=>v({});return document.addEventListener(oi,j),()=>document.removeEventListener(oi,j)},[]),c.jsx(ye.div,{...a,ref:g,style:{pointerEvents:w?P?"auto":"none":void 0,...e.style},onFocusCapture:pe(e.onFocusCapture,k.onFocusCapture),onBlurCapture:pe(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:pe(e.onPointerDownCapture,C.onPointerDownCapture)})});Pn.displayName=_g;var Lg="DismissableLayerBranch",Dg=u.forwardRef((e,r)=>{const t=u.useContext(cd),o=u.useRef(null),n=Re(r,o);return u.useEffect(()=>{const s=o.current;if(s)return t.branches.add(s),()=>{t.branches.delete(s)}},[t.branches]),c.jsx(ye.div,{...e,ref:n})});Dg.displayName=Lg;function Fg(e,r=globalThis?.document){const t=Ar(e),o=u.useRef(!1),n=u.useRef(()=>{});return u.useEffect(()=>{const s=l=>{if(l.target&&!o.current){let a=function(){ud(Og,t,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(r.removeEventListener("click",n.current),n.current=a,r.addEventListener("click",n.current,{once:!0})):a()}else r.removeEventListener("click",n.current);o.current=!1},i=window.setTimeout(()=>{r.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),r.removeEventListener("pointerdown",s),r.removeEventListener("click",n.current)}},[r,t]),{onPointerDownCapture:()=>o.current=!0}}function Bg(e,r=globalThis?.document){const t=Ar(e),o=u.useRef(!1);return u.useEffect(()=>{const n=s=>{s.target&&!o.current&&ud(Mg,t,{originalEvent:s},{discrete:!1})};return r.addEventListener("focusin",n),()=>r.removeEventListener("focusin",n)},[r,t]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Ia(){const e=new CustomEvent(oi);document.dispatchEvent(e)}function ud(e,r,t,{discrete:o}){const n=t.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:t});r&&n.addEventListener(e,r,{once:!0}),o?Ig(n,s):n.dispatchEvent(s)}var is=0;function dd(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ta()),document.body.insertAdjacentElement("beforeend",e[1]??Ta()),is++,()=>{is===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),is--}},[])}function Ta(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ls="focusScope.autoFocusOnMount",as="focusScope.autoFocusOnUnmount",_a={bubbles:!1,cancelable:!0},$g="FocusScope",Ui=u.forwardRef((e,r)=>{const{loop:t=!1,trapped:o=!1,onMountAutoFocus:n,onUnmountAutoFocus:s,...i}=e,[l,a]=u.useState(null),d=Ar(n),f=Ar(s),m=u.useRef(null),p=Re(r,h=>a(h)),v=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(o){let h=function(w){if(v.paused||!l)return;const P=w.target;l.contains(P)?m.current=P:zr(m.current,{select:!0})},y=function(w){if(v.paused||!l)return;const P=w.relatedTarget;P!==null&&(l.contains(P)||zr(m.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const C of w)C.removedNodes.length>0&&zr(l)};document.addEventListener("focusin",h),document.addEventListener("focusout",y);const x=new MutationObserver(b);return l&&x.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",y),x.disconnect()}}},[o,l,v.paused]),u.useEffect(()=>{if(l){Ma.add(v);const h=document.activeElement;if(!l.contains(h)){const b=new CustomEvent(ls,_a);l.addEventListener(ls,d),l.dispatchEvent(b),b.defaultPrevented||(Vg(Kg(fd(l)),{select:!0}),document.activeElement===h&&zr(l))}return()=>{l.removeEventListener(ls,d),setTimeout(()=>{const b=new CustomEvent(as,_a);l.addEventListener(as,f),l.dispatchEvent(b),b.defaultPrevented||zr(h??document.body,{select:!0}),l.removeEventListener(as,f),Ma.remove(v)},0)}}},[l,d,f,v]);const g=u.useCallback(h=>{if(!t&&!o||v.paused)return;const y=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,b=document.activeElement;if(y&&b){const x=h.currentTarget,[w,P]=zg(x);w&&P?!h.shiftKey&&b===P?(h.preventDefault(),t&&zr(w,{select:!0})):h.shiftKey&&b===w&&(h.preventDefault(),t&&zr(P,{select:!0})):b===x&&h.preventDefault()}},[t,o,v.paused]);return c.jsx(ye.div,{tabIndex:-1,...i,ref:p,onKeyDown:g})});Ui.displayName=$g;function Vg(e,{select:r=!1}={}){const t=document.activeElement;for(const o of e)if(zr(o,{select:r}),document.activeElement!==t)return}function zg(e){const r=fd(e),t=Oa(r,e),o=Oa(r.reverse(),e);return[t,o]}function fd(e){const r=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const n=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||n?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)r.push(t.currentNode);return r}function Oa(e,r){for(const t of e)if(!Hg(t,{upTo:r}))return t}function Hg(e,{upTo:r}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(r!==void 0&&e===r)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ug(e){return e instanceof HTMLInputElement&&"select"in e}function zr(e,{select:r=!1}={}){if(e&&e.focus){const t=document.activeElement;e.focus({preventScroll:!0}),e!==t&&Ug(e)&&r&&e.select()}}var Ma=Wg();function Wg(){let e=[];return{add(r){const t=e[0];r!==t&&t?.pause(),e=La(e,r),e.unshift(r)},remove(r){e=La(e,r),e[0]?.resume()}}}function La(e,r){const t=[...e],o=t.indexOf(r);return o!==-1&&t.splice(o,1),t}function Kg(e){return e.filter(r=>r.tagName!=="A")}var Ve=globalThis?.document?u.useLayoutEffect:()=>{},Gg=u[" useId ".trim().toString()]||(()=>{}),Yg=0;function vt(e){const[r,t]=u.useState(Gg());return Ve(()=>{t(o=>o??String(Yg++))},[e]),e||(r?`radix-${r}`:"")}const Xg=["top","right","bottom","left"],Kr=Math.min,ar=Math.max,ln=Math.round,Ao=Math.floor,Nr=e=>({x:e,y:e}),Jg={left:"right",right:"left",bottom:"top",top:"bottom"};function ni(e,r,t){return ar(e,Kr(r,t))}function Ir(e,r){return typeof e=="function"?e(r):e}function Tr(e){return e.split("-")[0]}function Lt(e){return e.split("-")[1]}function Wi(e){return e==="x"?"y":"x"}function Ki(e){return e==="y"?"height":"width"}function jr(e){const r=e[0];return r==="t"||r==="b"?"y":"x"}function Gi(e){return Wi(jr(e))}function Qg(e,r,t){t===void 0&&(t=!1);const o=Lt(e),n=Gi(e),s=Ki(n);let i=n==="x"?o===(t?"end":"start")?"right":"left":o==="start"?"bottom":"top";return r.reference[s]>r.floating[s]&&(i=an(i)),[i,an(i)]}function Zg(e){const r=an(e);return[si(e),r,si(r)]}function si(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Da=["left","right"],Fa=["right","left"],ex=["top","bottom"],rx=["bottom","top"];function tx(e,r,t){switch(e){case"top":case"bottom":return t?r?Fa:Da:r?Da:Fa;case"left":case"right":return r?ex:rx;default:return[]}}function ox(e,r,t,o){const n=Lt(e);let s=tx(Tr(e),t==="start",o);return n&&(s=s.map(i=>i+"-"+n),r&&(s=s.concat(s.map(si)))),s}function an(e){const r=Tr(e);return Jg[r]+e.slice(r.length)}function nx(e){return{top:0,right:0,bottom:0,left:0,...e}}function md(e){return typeof e!="number"?nx(e):{top:e,right:e,bottom:e,left:e}}function cn(e){const{x:r,y:t,width:o,height:n}=e;return{width:o,height:n,top:t,left:r,right:r+o,bottom:t+n,x:r,y:t}}function Ba(e,r,t){let{reference:o,floating:n}=e;const s=jr(r),i=Gi(r),l=Ki(i),a=Tr(r),d=s==="y",f=o.x+o.width/2-n.width/2,m=o.y+o.height/2-n.height/2,p=o[l]/2-n[l]/2;let v;switch(a){case"top":v={x:f,y:o.y-n.height};break;case"bottom":v={x:f,y:o.y+o.height};break;case"right":v={x:o.x+o.width,y:m};break;case"left":v={x:o.x-n.width,y:m};break;default:v={x:o.x,y:o.y}}switch(Lt(r)){case"start":v[i]-=p*(t&&d?-1:1);break;case"end":v[i]+=p*(t&&d?-1:1);break}return v}async function sx(e,r){var t;r===void 0&&(r={});const{x:o,y:n,platform:s,rects:i,elements:l,strategy:a}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:p=!1,padding:v=0}=Ir(r,e),g=md(v),y=l[p?m==="floating"?"reference":"floating":m],b=cn(await s.getClippingRect({element:(t=await(s.isElement==null?void 0:s.isElement(y)))==null||t?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:d,rootBoundary:f,strategy:a})),x=m==="floating"?{x:o,y:n,width:i.floating.width,height:i.floating.height}:i.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),P=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},C=cn(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:x,offsetParent:w,strategy:a}):x);return{top:(b.top-C.top+g.top)/P.y,bottom:(C.bottom-b.bottom+g.bottom)/P.y,left:(b.left-C.left+g.left)/P.x,right:(C.right-b.right+g.right)/P.x}}const ix=50,lx=async(e,r,t)=>{const{placement:o="bottom",strategy:n="absolute",middleware:s=[],platform:i}=t,l=i.detectOverflow?i:{...i,detectOverflow:sx},a=await(i.isRTL==null?void 0:i.isRTL(r));let d=await i.getElementRects({reference:e,floating:r,strategy:n}),{x:f,y:m}=Ba(d,o,a),p=o,v=0;const g={};for(let h=0;h<s.length;h++){const y=s[h];if(!y)continue;const{name:b,fn:x}=y,{x:w,y:P,data:C,reset:k}=await x({x:f,y:m,initialPlacement:o,placement:p,strategy:n,middlewareData:g,rects:d,platform:l,elements:{reference:e,floating:r}});f=w??f,m=P??m,g[b]={...g[b],...C},k&&v<ix&&(v++,typeof k=="object"&&(k.placement&&(p=k.placement),k.rects&&(d=k.rects===!0?await i.getElementRects({reference:e,floating:r,strategy:n}):k.rects),{x:f,y:m}=Ba(d,p,a)),h=-1)}return{x:f,y:m,placement:p,strategy:n,middlewareData:g}},ax=e=>({name:"arrow",options:e,async fn(r){const{x:t,y:o,placement:n,rects:s,platform:i,elements:l,middlewareData:a}=r,{element:d,padding:f=0}=Ir(e,r)||{};if(d==null)return{};const m=md(f),p={x:t,y:o},v=Gi(n),g=Ki(v),h=await i.getDimensions(d),y=v==="y",b=y?"top":"left",x=y?"bottom":"right",w=y?"clientHeight":"clientWidth",P=s.reference[g]+s.reference[v]-p[v]-s.floating[g],C=p[v]-s.reference[v],k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let j=k?k[w]:0;(!j||!await(i.isElement==null?void 0:i.isElement(k)))&&(j=l.floating[w]||s.floating[g]);const S=P/2-C/2,N=j/2-h[g]/2-1,A=Kr(m[b],N),q=Kr(m[x],N),E=A,I=j-h[g]-q,_=j/2-h[g]/2+S,O=ni(E,_,I),T=!a.arrow&&Lt(n)!=null&&_!==O&&s.reference[g]/2-(_<E?A:q)-h[g]/2<0,$=T?_<E?_-E:_-I:0;return{[v]:p[v]+$,data:{[v]:O,centerOffset:_-O-$,...T&&{alignmentOffset:$}},reset:T}}}),cx=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(r){var t,o;const{placement:n,middlewareData:s,rects:i,initialPlacement:l,platform:a,elements:d}=r,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...y}=Ir(e,r);if((t=s.arrow)!=null&&t.alignmentOffset)return{};const b=Tr(n),x=jr(l),w=Tr(l)===l,P=await(a.isRTL==null?void 0:a.isRTL(d.floating)),C=p||(w||!h?[an(l)]:Zg(l)),k=g!=="none";!p&&k&&C.push(...ox(l,h,g,P));const j=[l,...C],S=await a.detectOverflow(r,y),N=[];let A=((o=s.flip)==null?void 0:o.overflows)||[];if(f&&N.push(S[b]),m){const _=Qg(n,i,P);N.push(S[_[0]],S[_[1]])}if(A=[...A,{placement:n,overflows:N}],!N.every(_=>_<=0)){var q,E;const _=(((q=s.flip)==null?void 0:q.index)||0)+1,O=j[_];if(O&&(!(m==="alignment"?x!==jr(O):!1)||A.every(M=>jr(M.placement)===x?M.overflows[0]>0:!0)))return{data:{index:_,overflows:A},reset:{placement:O}};let T=(E=A.filter($=>$.overflows[0]<=0).sort(($,M)=>$.overflows[1]-M.overflows[1])[0])==null?void 0:E.placement;if(!T)switch(v){case"bestFit":{var I;const $=(I=A.filter(M=>{if(k){const U=jr(M.placement);return U===x||U==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(U=>U>0).reduce((U,F)=>U+F,0)]).sort((M,U)=>M[1]-U[1])[0])==null?void 0:I[0];$&&(T=$);break}case"initialPlacement":T=l;break}if(n!==T)return{reset:{placement:T}}}return{}}}};function $a(e,r){return{top:e.top-r.height,right:e.right-r.width,bottom:e.bottom-r.height,left:e.left-r.width}}function Va(e){return Xg.some(r=>e[r]>=0)}const ux=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(r){const{rects:t,platform:o}=r,{strategy:n="referenceHidden",...s}=Ir(e,r);switch(n){case"referenceHidden":{const i=await o.detectOverflow(r,{...s,elementContext:"reference"}),l=$a(i,t.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:Va(l)}}}case"escaped":{const i=await o.detectOverflow(r,{...s,altBoundary:!0}),l=$a(i,t.floating);return{data:{escapedOffsets:l,escaped:Va(l)}}}default:return{}}}}},hd=new Set(["left","top"]);async function dx(e,r){const{placement:t,platform:o,elements:n}=e,s=await(o.isRTL==null?void 0:o.isRTL(n.floating)),i=Tr(t),l=Lt(t),a=jr(t)==="y",d=hd.has(i)?-1:1,f=s&&a?-1:1,m=Ir(r,e);let{mainAxis:p,crossAxis:v,alignmentAxis:g}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return l&&typeof g=="number"&&(v=l==="end"?g*-1:g),a?{x:v*f,y:p*d}:{x:p*d,y:v*f}}const fx=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(r){var t,o;const{x:n,y:s,placement:i,middlewareData:l}=r,a=await dx(r,e);return i===((t=l.offset)==null?void 0:t.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:n+a.x,y:s+a.y,data:{...a,placement:i}}}}},mx=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){const{x:t,y:o,placement:n,platform:s}=r,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:b=>{let{x,y:w}=b;return{x,y:w}}},...d}=Ir(e,r),f={x:t,y:o},m=await s.detectOverflow(r,d),p=jr(Tr(n)),v=Wi(p);let g=f[v],h=f[p];if(i){const b=v==="y"?"top":"left",x=v==="y"?"bottom":"right",w=g+m[b],P=g-m[x];g=ni(w,g,P)}if(l){const b=p==="y"?"top":"left",x=p==="y"?"bottom":"right",w=h+m[b],P=h-m[x];h=ni(w,h,P)}const y=a.fn({...r,[v]:g,[p]:h});return{...y,data:{x:y.x-t,y:y.y-o,enabled:{[v]:i,[p]:l}}}}}},hx=function(e){return e===void 0&&(e={}),{options:e,fn(r){const{x:t,y:o,placement:n,rects:s,middlewareData:i}=r,{offset:l=0,mainAxis:a=!0,crossAxis:d=!0}=Ir(e,r),f={x:t,y:o},m=jr(n),p=Wi(m);let v=f[p],g=f[m];const h=Ir(l,r),y=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(a){const w=p==="y"?"height":"width",P=s.reference[p]-s.floating[w]+y.mainAxis,C=s.reference[p]+s.reference[w]-y.mainAxis;v<P?v=P:v>C&&(v=C)}if(d){var b,x;const w=p==="y"?"width":"height",P=hd.has(Tr(n)),C=s.reference[m]-s.floating[w]+(P&&((b=i.offset)==null?void 0:b[m])||0)+(P?0:y.crossAxis),k=s.reference[m]+s.reference[w]+(P?0:((x=i.offset)==null?void 0:x[m])||0)-(P?y.crossAxis:0);g<C?g=C:g>k&&(g=k)}return{[p]:v,[m]:g}}}},px=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(r){var t,o;const{placement:n,rects:s,platform:i,elements:l}=r,{apply:a=()=>{},...d}=Ir(e,r),f=await i.detectOverflow(r,d),m=Tr(n),p=Lt(n),v=jr(n)==="y",{width:g,height:h}=s.floating;let y,b;m==="top"||m==="bottom"?(y=m,b=p===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(b=m,y=p==="end"?"top":"bottom");const x=h-f.top-f.bottom,w=g-f.left-f.right,P=Kr(h-f[y],x),C=Kr(g-f[b],w),k=!r.middlewareData.shift;let j=P,S=C;if((t=r.middlewareData.shift)!=null&&t.enabled.x&&(S=w),(o=r.middlewareData.shift)!=null&&o.enabled.y&&(j=x),k&&!p){const A=ar(f.left,0),q=ar(f.right,0),E=ar(f.top,0),I=ar(f.bottom,0);v?S=g-2*(A!==0||q!==0?A+q:ar(f.left,f.right)):j=h-2*(E!==0||I!==0?E+I:ar(f.top,f.bottom))}await a({...r,availableWidth:S,availableHeight:j});const N=await i.getDimensions(l.floating);return g!==N.width||h!==N.height?{reset:{rects:!0}}:{}}}};function Cn(){return typeof window<"u"}function Dt(e){return pd(e)?(e.nodeName||"").toLowerCase():"#document"}function ur(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function qr(e){var r;return(r=(pd(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function pd(e){return Cn()?e instanceof Node||e instanceof ur(e).Node:!1}function gr(e){return Cn()?e instanceof Element||e instanceof ur(e).Element:!1}function Or(e){return Cn()?e instanceof HTMLElement||e instanceof ur(e).HTMLElement:!1}function za(e){return!Cn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ur(e).ShadowRoot}function go(e){const{overflow:r,overflowX:t,overflowY:o,display:n}=xr(e);return/auto|scroll|overlay|hidden|clip/.test(r+o+t)&&n!=="inline"&&n!=="contents"}function vx(e){return/^(table|td|th)$/.test(Dt(e))}function kn(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const gx=/transform|translate|scale|rotate|perspective|filter/,xx=/paint|layout|strict|content/,nt=e=>!!e&&e!=="none";let cs;function Yi(e){const r=gr(e)?xr(e):e;return nt(r.transform)||nt(r.translate)||nt(r.scale)||nt(r.rotate)||nt(r.perspective)||!Xi()&&(nt(r.backdropFilter)||nt(r.filter))||gx.test(r.willChange||"")||xx.test(r.contain||"")}function bx(e){let r=Gr(e);for(;Or(r)&&!At(r);){if(Yi(r))return r;if(kn(r))return null;r=Gr(r)}return null}function Xi(){return cs==null&&(cs=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),cs}function At(e){return/^(html|body|#document)$/.test(Dt(e))}function xr(e){return ur(e).getComputedStyle(e)}function jn(e){return gr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Gr(e){if(Dt(e)==="html")return e;const r=e.assignedSlot||e.parentNode||za(e)&&e.host||qr(e);return za(r)?r.host:r}function vd(e){const r=Gr(e);return At(r)?e.ownerDocument?e.ownerDocument.body:e.body:Or(r)&&go(r)?r:vd(r)}function lo(e,r,t){var o;r===void 0&&(r=[]),t===void 0&&(t=!0);const n=vd(e),s=n===((o=e.ownerDocument)==null?void 0:o.body),i=ur(n);if(s){const l=ii(i);return r.concat(i,i.visualViewport||[],go(n)?n:[],l&&t?lo(l):[])}else return r.concat(n,lo(n,[],t))}function ii(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function gd(e){const r=xr(e);let t=parseFloat(r.width)||0,o=parseFloat(r.height)||0;const n=Or(e),s=n?e.offsetWidth:t,i=n?e.offsetHeight:o,l=ln(t)!==s||ln(o)!==i;return l&&(t=s,o=i),{width:t,height:o,$:l}}function Ji(e){return gr(e)?e:e.contextElement}function qt(e){const r=Ji(e);if(!Or(r))return Nr(1);const t=r.getBoundingClientRect(),{width:o,height:n,$:s}=gd(r);let i=(s?ln(t.width):t.width)/o,l=(s?ln(t.height):t.height)/n;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const yx=Nr(0);function xd(e){const r=ur(e);return!Xi()||!r.visualViewport?yx:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function wx(e,r,t){return r===void 0&&(r=!1),!t||r&&t!==ur(e)?!1:r}function dt(e,r,t,o){r===void 0&&(r=!1),t===void 0&&(t=!1);const n=e.getBoundingClientRect(),s=Ji(e);let i=Nr(1);r&&(o?gr(o)&&(i=qt(o)):i=qt(e));const l=wx(s,t,o)?xd(s):Nr(0);let a=(n.left+l.x)/i.x,d=(n.top+l.y)/i.y,f=n.width/i.x,m=n.height/i.y;if(s){const p=ur(s),v=o&&gr(o)?ur(o):o;let g=p,h=ii(g);for(;h&&o&&v!==g;){const y=qt(h),b=h.getBoundingClientRect(),x=xr(h),w=b.left+(h.clientLeft+parseFloat(x.paddingLeft))*y.x,P=b.top+(h.clientTop+parseFloat(x.paddingTop))*y.y;a*=y.x,d*=y.y,f*=y.x,m*=y.y,a+=w,d+=P,g=ur(h),h=ii(g)}}return cn({width:f,height:m,x:a,y:d})}function Sn(e,r){const t=jn(e).scrollLeft;return r?r.left+t:dt(qr(e)).left+t}function bd(e,r){const t=e.getBoundingClientRect(),o=t.left+r.scrollLeft-Sn(e,t),n=t.top+r.scrollTop;return{x:o,y:n}}function Px(e){let{elements:r,rect:t,offsetParent:o,strategy:n}=e;const s=n==="fixed",i=qr(o),l=r?kn(r.floating):!1;if(o===i||l&&s)return t;let a={scrollLeft:0,scrollTop:0},d=Nr(1);const f=Nr(0),m=Or(o);if((m||!m&&!s)&&((Dt(o)!=="body"||go(i))&&(a=jn(o)),m)){const v=dt(o);d=qt(o),f.x=v.x+o.clientLeft,f.y=v.y+o.clientTop}const p=i&&!m&&!s?bd(i,a):Nr(0);return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-a.scrollLeft*d.x+f.x+p.x,y:t.y*d.y-a.scrollTop*d.y+f.y+p.y}}function Cx(e){return Array.from(e.getClientRects())}function kx(e){const r=qr(e),t=jn(e),o=e.ownerDocument.body,n=ar(r.scrollWidth,r.clientWidth,o.scrollWidth,o.clientWidth),s=ar(r.scrollHeight,r.clientHeight,o.scrollHeight,o.clientHeight);let i=-t.scrollLeft+Sn(e);const l=-t.scrollTop;return xr(o).direction==="rtl"&&(i+=ar(r.clientWidth,o.clientWidth)-n),{width:n,height:s,x:i,y:l}}const Ha=25;function jx(e,r){const t=ur(e),o=qr(e),n=t.visualViewport;let s=o.clientWidth,i=o.clientHeight,l=0,a=0;if(n){s=n.width,i=n.height;const f=Xi();(!f||f&&r==="fixed")&&(l=n.offsetLeft,a=n.offsetTop)}const d=Sn(o);if(d<=0){const f=o.ownerDocument,m=f.body,p=getComputedStyle(m),v=f.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,g=Math.abs(o.clientWidth-m.clientWidth-v);g<=Ha&&(s-=g)}else d<=Ha&&(s+=d);return{width:s,height:i,x:l,y:a}}function Sx(e,r){const t=dt(e,!0,r==="fixed"),o=t.top+e.clientTop,n=t.left+e.clientLeft,s=Or(e)?qt(e):Nr(1),i=e.clientWidth*s.x,l=e.clientHeight*s.y,a=n*s.x,d=o*s.y;return{width:i,height:l,x:a,y:d}}function Ua(e,r,t){let o;if(r==="viewport")o=jx(e,t);else if(r==="document")o=kx(qr(e));else if(gr(r))o=Sx(r,t);else{const n=xd(e);o={x:r.x-n.x,y:r.y-n.y,width:r.width,height:r.height}}return cn(o)}function yd(e,r){const t=Gr(e);return t===r||!gr(t)||At(t)?!1:xr(t).position==="fixed"||yd(t,r)}function Nx(e,r){const t=r.get(e);if(t)return t;let o=lo(e,[],!1).filter(l=>gr(l)&&Dt(l)!=="body"),n=null;const s=xr(e).position==="fixed";let i=s?Gr(e):e;for(;gr(i)&&!At(i);){const l=xr(i),a=Yi(i);!a&&l.position==="fixed"&&(n=null),(s?!a&&!n:!a&&l.position==="static"&&!!n&&(n.position==="absolute"||n.position==="fixed")||go(i)&&!a&&yd(e,i))?o=o.filter(f=>f!==i):n=l,i=Gr(i)}return r.set(e,o),o}function qx(e){let{element:r,boundary:t,rootBoundary:o,strategy:n}=e;const i=[...t==="clippingAncestors"?kn(r)?[]:Nx(r,this._c):[].concat(t),o],l=Ua(r,i[0],n);let a=l.top,d=l.right,f=l.bottom,m=l.left;for(let p=1;p<i.length;p++){const v=Ua(r,i[p],n);a=ar(v.top,a),d=Kr(v.right,d),f=Kr(v.bottom,f),m=ar(v.left,m)}return{width:d-m,height:f-a,x:m,y:a}}function Ex(e){const{width:r,height:t}=gd(e);return{width:r,height:t}}function Rx(e,r,t){const o=Or(r),n=qr(r),s=t==="fixed",i=dt(e,!0,s,r);let l={scrollLeft:0,scrollTop:0};const a=Nr(0);function d(){a.x=Sn(n)}if(o||!o&&!s)if((Dt(r)!=="body"||go(n))&&(l=jn(r)),o){const v=dt(r,!0,s,r);a.x=v.x+r.clientLeft,a.y=v.y+r.clientTop}else n&&d();s&&!o&&n&&d();const f=n&&!o&&!s?bd(n,l):Nr(0),m=i.left+l.scrollLeft-a.x-f.x,p=i.top+l.scrollTop-a.y-f.y;return{x:m,y:p,width:i.width,height:i.height}}function us(e){return xr(e).position==="static"}function Wa(e,r){if(!Or(e)||xr(e).position==="fixed")return null;if(r)return r(e);let t=e.offsetParent;return qr(e)===t&&(t=t.ownerDocument.body),t}function wd(e,r){const t=ur(e);if(kn(e))return t;if(!Or(e)){let n=Gr(e);for(;n&&!At(n);){if(gr(n)&&!us(n))return n;n=Gr(n)}return t}let o=Wa(e,r);for(;o&&vx(o)&&us(o);)o=Wa(o,r);return o&&At(o)&&us(o)&&!Yi(o)?t:o||bx(e)||t}const Ax=async function(e){const r=this.getOffsetParent||wd,t=this.getDimensions,o=await t(e.floating);return{reference:Rx(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Ix(e){return xr(e).direction==="rtl"}const Tx={convertOffsetParentRelativeRectToViewportRelativeRect:Px,getDocumentElement:qr,getClippingRect:qx,getOffsetParent:wd,getElementRects:Ax,getClientRects:Cx,getDimensions:Ex,getScale:qt,isElement:gr,isRTL:Ix};function Pd(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function _x(e,r){let t=null,o;const n=qr(e);function s(){var l;clearTimeout(o),(l=t)==null||l.disconnect(),t=null}function i(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),s();const d=e.getBoundingClientRect(),{left:f,top:m,width:p,height:v}=d;if(l||r(),!p||!v)return;const g=Ao(m),h=Ao(n.clientWidth-(f+p)),y=Ao(n.clientHeight-(m+v)),b=Ao(f),w={rootMargin:-g+"px "+-h+"px "+-y+"px "+-b+"px",threshold:ar(0,Kr(1,a))||1};let P=!0;function C(k){const j=k[0].intersectionRatio;if(j!==a){if(!P)return i();j?i(!1,j):o=setTimeout(()=>{i(!1,1e-7)},1e3)}j===1&&!Pd(d,e.getBoundingClientRect())&&i(),P=!1}try{t=new IntersectionObserver(C,{...w,root:n.ownerDocument})}catch{t=new IntersectionObserver(C,w)}t.observe(e)}return i(!0),s}function Ox(e,r,t,o){o===void 0&&(o={});const{ancestorScroll:n=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=o,d=Ji(e),f=n||s?[...d?lo(d):[],...r?lo(r):[]]:[];f.forEach(b=>{n&&b.addEventListener("scroll",t,{passive:!0}),s&&b.addEventListener("resize",t)});const m=d&&l?_x(d,t):null;let p=-1,v=null;i&&(v=new ResizeObserver(b=>{let[x]=b;x&&x.target===d&&v&&r&&(v.unobserve(r),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=v)==null||w.observe(r)})),t()}),d&&!a&&v.observe(d),r&&v.observe(r));let g,h=a?dt(e):null;a&&y();function y(){const b=dt(e);h&&!Pd(h,b)&&t(),h=b,g=requestAnimationFrame(y)}return t(),()=>{var b;f.forEach(x=>{n&&x.removeEventListener("scroll",t),s&&x.removeEventListener("resize",t)}),m?.(),(b=v)==null||b.disconnect(),v=null,a&&cancelAnimationFrame(g)}}const Mx=fx,Lx=mx,Dx=cx,Fx=px,Bx=ux,Ka=ax,$x=hx,Vx=(e,r,t)=>{const o=new Map,n={platform:Tx,...t},s={...n.platform,_c:o};return lx(e,r,{...n,platform:s})};var zx=typeof document<"u",Hx=function(){},Xo=zx?Oe.useLayoutEffect:Hx;function un(e,r){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(typeof e=="function"&&e.toString()===r.toString())return!0;let t,o,n;if(e&&r&&typeof e=="object"){if(Array.isArray(e)){if(t=e.length,t!==r.length)return!1;for(o=t;o--!==0;)if(!un(e[o],r[o]))return!1;return!0}if(n=Object.keys(e),t=n.length,t!==Object.keys(r).length)return!1;for(o=t;o--!==0;)if(!{}.hasOwnProperty.call(r,n[o]))return!1;for(o=t;o--!==0;){const s=n[o];if(!(s==="_owner"&&e.$$typeof)&&!un(e[s],r[s]))return!1}return!0}return e!==e&&r!==r}function Cd(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ga(e,r){const t=Cd(e);return Math.round(r*t)/t}function ds(e){const r=u.useRef(e);return Xo(()=>{r.current=e}),r}function Ux(e){e===void 0&&(e={});const{placement:r="bottom",strategy:t="absolute",middleware:o=[],platform:n,elements:{reference:s,floating:i}={},transform:l=!0,whileElementsMounted:a,open:d}=e,[f,m]=u.useState({x:0,y:0,strategy:t,placement:r,middlewareData:{},isPositioned:!1}),[p,v]=u.useState(o);un(p,o)||v(o);const[g,h]=u.useState(null),[y,b]=u.useState(null),x=u.useCallback(M=>{M!==k.current&&(k.current=M,h(M))},[]),w=u.useCallback(M=>{M!==j.current&&(j.current=M,b(M))},[]),P=s||g,C=i||y,k=u.useRef(null),j=u.useRef(null),S=u.useRef(f),N=a!=null,A=ds(a),q=ds(n),E=ds(d),I=u.useCallback(()=>{if(!k.current||!j.current)return;const M={placement:r,strategy:t,middleware:p};q.current&&(M.platform=q.current),Vx(k.current,j.current,M).then(U=>{const F={...U,isPositioned:E.current!==!1};_.current&&!un(S.current,F)&&(S.current=F,mo.flushSync(()=>{m(F)}))})},[p,r,t,q,E]);Xo(()=>{d===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,m(M=>({...M,isPositioned:!1})))},[d]);const _=u.useRef(!1);Xo(()=>(_.current=!0,()=>{_.current=!1}),[]),Xo(()=>{if(P&&(k.current=P),C&&(j.current=C),P&&C){if(A.current)return A.current(P,C,I);I()}},[P,C,I,A,N]);const O=u.useMemo(()=>({reference:k,floating:j,setReference:x,setFloating:w}),[x,w]),T=u.useMemo(()=>({reference:P,floating:C}),[P,C]),$=u.useMemo(()=>{const M={position:t,left:0,top:0};if(!T.floating)return M;const U=Ga(T.floating,f.x),F=Ga(T.floating,f.y);return l?{...M,transform:"translate("+U+"px, "+F+"px)",...Cd(T.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:U,top:F}},[t,l,T.floating,f.x,f.y]);return u.useMemo(()=>({...f,update:I,refs:O,elements:T,floatingStyles:$}),[f,I,O,T,$])}const Wx=e=>{function r(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:e,fn(t){const{element:o,padding:n}=typeof e=="function"?e(t):e;return o&&r(o)?o.current!=null?Ka({element:o.current,padding:n}).fn(t):{}:o?Ka({element:o,padding:n}).fn(t):{}}}},Kx=(e,r)=>{const t=Mx(e);return{name:t.name,fn:t.fn,options:[e,r]}},Gx=(e,r)=>{const t=Lx(e);return{name:t.name,fn:t.fn,options:[e,r]}},Yx=(e,r)=>({fn:$x(e).fn,options:[e,r]}),Xx=(e,r)=>{const t=Dx(e);return{name:t.name,fn:t.fn,options:[e,r]}},Jx=(e,r)=>{const t=Fx(e);return{name:t.name,fn:t.fn,options:[e,r]}},Qx=(e,r)=>{const t=Bx(e);return{name:t.name,fn:t.fn,options:[e,r]}},Zx=(e,r)=>{const t=Wx(e);return{name:t.name,fn:t.fn,options:[e,r]}};var eb="Arrow",kd=u.forwardRef((e,r)=>{const{children:t,width:o=10,height:n=5,...s}=e;return c.jsx(ye.svg,{...s,ref:r,width:o,height:n,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?t:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});kd.displayName=eb;var rb=kd;function Nn(e){const[r,t]=u.useState(void 0);return Ve(()=>{if(e){t({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;const s=n[0];let i,l;if("borderBoxSize"in s){const a=s.borderBoxSize,d=Array.isArray(a)?a[0]:a;i=d.inlineSize,l=d.blockSize}else i=e.offsetWidth,l=e.offsetHeight;t({width:i,height:l})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else t(void 0)},[e]),r}var Qi="Popper",[jd,Ft]=br(Qi),[tb,Sd]=jd(Qi),Nd=e=>{const{__scopePopper:r,children:t}=e,[o,n]=u.useState(null);return c.jsx(tb,{scope:r,anchor:o,onAnchorChange:n,children:t})};Nd.displayName=Qi;var qd="PopperAnchor",Ed=u.forwardRef((e,r)=>{const{__scopePopper:t,virtualRef:o,...n}=e,s=Sd(qd,t),i=u.useRef(null),l=Re(r,i),a=u.useRef(null);return u.useEffect(()=>{const d=a.current;a.current=o?.current||i.current,d!==a.current&&s.onAnchorChange(a.current)}),o?null:c.jsx(ye.div,{...n,ref:l})});Ed.displayName=qd;var Zi="PopperContent",[ob,nb]=jd(Zi),Rd=u.forwardRef((e,r)=>{const{__scopePopper:t,side:o="bottom",sideOffset:n=0,align:s="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:m="partial",hideWhenDetached:p=!1,updatePositionStrategy:v="optimized",onPlaced:g,...h}=e,y=Sd(Zi,t),[b,x]=u.useState(null),w=Re(r,B=>x(B)),[P,C]=u.useState(null),k=Nn(P),j=k?.width??0,S=k?.height??0,N=o+(s!=="center"?"-"+s:""),A=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},q=Array.isArray(d)?d:[d],E=q.length>0,I={padding:A,boundary:q.filter(ib),altBoundary:E},{refs:_,floatingStyles:O,placement:T,isPositioned:$,middlewareData:M}=Ux({strategy:"fixed",placement:N,whileElementsMounted:(...B)=>Ox(...B,{animationFrame:v==="always"}),elements:{reference:y.anchor},middleware:[Kx({mainAxis:n+S,alignmentAxis:i}),a&&Gx({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?Yx():void 0,...I}),a&&Xx({...I}),Jx({...I,apply:({elements:B,rects:K,availableWidth:H,availableHeight:G})=>{const{width:Y,height:Z}=K.reference,ae=B.floating.style;ae.setProperty("--radix-popper-available-width",`${H}px`),ae.setProperty("--radix-popper-available-height",`${G}px`),ae.setProperty("--radix-popper-anchor-width",`${Y}px`),ae.setProperty("--radix-popper-anchor-height",`${Z}px`)}}),P&&Zx({element:P,padding:l}),lb({arrowWidth:j,arrowHeight:S}),p&&Qx({strategy:"referenceHidden",...I})]}),[U,F]=Td(T),X=Ar(g);Ve(()=>{$&&X?.()},[$,X]);const ue=M.arrow?.x,ee=M.arrow?.y,Q=M.arrow?.centerOffset!==0,[W,J]=u.useState();return Ve(()=>{b&&J(window.getComputedStyle(b).zIndex)},[b]),c.jsx("div",{ref:_.setFloating,"data-radix-popper-content-wrapper":"",style:{...O,transform:$?O.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:W,"--radix-popper-transform-origin":[M.transformOrigin?.x,M.transformOrigin?.y].join(" "),...M.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(ob,{scope:t,placedSide:U,onArrowChange:C,arrowX:ue,arrowY:ee,shouldHideArrow:Q,children:c.jsx(ye.div,{"data-side":U,"data-align":F,...h,ref:w,style:{...h.style,animation:$?void 0:"none"}})})})});Rd.displayName=Zi;var Ad="PopperArrow",sb={top:"bottom",right:"left",bottom:"top",left:"right"},Id=u.forwardRef(function(r,t){const{__scopePopper:o,...n}=r,s=nb(Ad,o),i=sb[s.placedSide];return c.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:c.jsx(rb,{...n,ref:t,style:{...n.style,display:"block"}})})});Id.displayName=Ad;function ib(e){return e!==null}var lb=e=>({name:"transformOrigin",options:e,fn(r){const{placement:t,rects:o,middlewareData:n}=r,i=n.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[d,f]=Td(t),m={start:"0%",center:"50%",end:"100%"}[f],p=(n.arrow?.x??0)+l/2,v=(n.arrow?.y??0)+a/2;let g="",h="";return d==="bottom"?(g=i?m:`${p}px`,h=`${-a}px`):d==="top"?(g=i?m:`${p}px`,h=`${o.floating.height+a}px`):d==="right"?(g=`${-a}px`,h=i?m:`${v}px`):d==="left"&&(g=`${o.floating.width+a}px`,h=i?m:`${v}px`),{data:{x:g,y:h}}}});function Td(e){const[r,t="center"]=e.split("-");return[r,t]}var el=Nd,qn=Ed,rl=Rd,tl=Id,ab="Portal",En=u.forwardRef((e,r)=>{const{container:t,...o}=e,[n,s]=u.useState(!1);Ve(()=>s(!0),[]);const i=t||n&&globalThis?.document?.body;return i?bu.createPortal(c.jsx(ye.div,{...o,ref:r}),i):null});En.displayName=ab;function cb(e,r){return u.useReducer((t,o)=>r[t][o]??t,e)}var Qr=e=>{const{present:r,children:t}=e,o=ub(r),n=typeof t=="function"?t({present:o.isPresent}):u.Children.only(t),s=Re(o.ref,db(n));return typeof t=="function"||o.isPresent?u.cloneElement(n,{ref:s}):null};Qr.displayName="Presence";function ub(e){const[r,t]=u.useState(),o=u.useRef(null),n=u.useRef(e),s=u.useRef("none"),i=e?"mounted":"unmounted",[l,a]=cb(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const d=Io(o.current);s.current=l==="mounted"?d:"none"},[l]),Ve(()=>{const d=o.current,f=n.current;if(f!==e){const p=s.current,v=Io(d);e?a("MOUNT"):v==="none"||d?.display==="none"?a("UNMOUNT"):a(f&&p!==v?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,a]),Ve(()=>{if(r){let d;const f=r.ownerDocument.defaultView??window,m=v=>{const h=Io(o.current).includes(CSS.escape(v.animationName));if(v.target===r&&h&&(a("ANIMATION_END"),!n.current)){const y=r.style.animationFillMode;r.style.animationFillMode="forwards",d=f.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=y)})}},p=v=>{v.target===r&&(s.current=Io(o.current))};return r.addEventListener("animationstart",p),r.addEventListener("animationcancel",m),r.addEventListener("animationend",m),()=>{f.clearTimeout(d),r.removeEventListener("animationstart",p),r.removeEventListener("animationcancel",m),r.removeEventListener("animationend",m)}}else a("ANIMATION_END")},[r,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:u.useCallback(d=>{o.current=d?getComputedStyle(d):null,t(d)},[])}}function Io(e){return e?.animationName||"none"}function db(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning;return t?e.ref:(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}var fb=u[" useInsertionEffect ".trim().toString()]||Ve;function _r({prop:e,defaultProp:r,onChange:t=()=>{},caller:o}){const[n,s,i]=mb({defaultProp:r,onChange:t}),l=e!==void 0,a=l?e:n;{const f=u.useRef(e!==void 0);u.useEffect(()=>{const m=f.current;m!==l&&console.warn(`${o} 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.`),f.current=l},[l,o])}const d=u.useCallback(f=>{if(l){const m=hb(f)?f(e):f;m!==e&&i.current?.(m)}else s(f)},[l,e,s,i]);return[a,d]}function mb({defaultProp:e,onChange:r}){const[t,o]=u.useState(e),n=u.useRef(t),s=u.useRef(r);return fb(()=>{s.current=r},[r]),u.useEffect(()=>{n.current!==t&&(s.current?.(t),n.current=t)},[t,n]),[t,o,s]}function hb(e){return typeof e=="function"}var pb=function(e){if(typeof document>"u")return null;var r=Array.isArray(e)?e[0]:e;return r.ownerDocument.body},wt=new WeakMap,To=new WeakMap,_o={},fs=0,_d=function(e){return e&&(e.host||_d(e.parentNode))},vb=function(e,r){return r.map(function(t){if(e.contains(t))return t;var o=_d(t);return o&&e.contains(o)?o:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return!!t})},gb=function(e,r,t,o){var n=vb(r,Array.isArray(e)?e:[e]);_o[t]||(_o[t]=new WeakMap);var s=_o[t],i=[],l=new Set,a=new Set(n),d=function(m){!m||l.has(m)||(l.add(m),d(m.parentNode))};n.forEach(d);var f=function(m){!m||a.has(m)||Array.prototype.forEach.call(m.children,function(p){if(l.has(p))f(p);else try{var v=p.getAttribute(o),g=v!==null&&v!=="false",h=(wt.get(p)||0)+1,y=(s.get(p)||0)+1;wt.set(p,h),s.set(p,y),i.push(p),h===1&&g&&To.set(p,!0),y===1&&p.setAttribute(t,"true"),g||p.setAttribute(o,"true")}catch(b){console.error("aria-hidden: cannot operate on ",p,b)}})};return f(r),l.clear(),fs++,function(){i.forEach(function(m){var p=wt.get(m)-1,v=s.get(m)-1;wt.set(m,p),s.set(m,v),p||(To.has(m)||m.removeAttribute(o),To.delete(m)),v||m.removeAttribute(t)}),fs--,fs||(wt=new WeakMap,wt=new WeakMap,To=new WeakMap,_o={})}},Od=function(e,r,t){t===void 0&&(t="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),n=pb(e);return n?(o.push.apply(o,Array.from(n.querySelectorAll("[aria-live], script"))),gb(o,n,t,"aria-hidden")):function(){return null}},kr=function(){return kr=Object.assign||function(r){for(var t,o=1,n=arguments.length;o<n;o++){t=arguments[o];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=t[s])}return r},kr.apply(this,arguments)};function Md(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)r.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(t[o[n]]=e[o[n]]);return t}function xb(e,r,t){if(t||arguments.length===2)for(var o=0,n=r.length,s;o<n;o++)(s||!(o in r))&&(s||(s=Array.prototype.slice.call(r,0,o)),s[o]=r[o]);return e.concat(s||Array.prototype.slice.call(r))}var Jo="right-scroll-bar-position",Qo="width-before-scroll-bar",bb="with-scroll-bars-hidden",yb="--removed-body-scroll-bar-size";function ms(e,r){return typeof e=="function"?e(r):e&&(e.current=r),e}function wb(e,r){var t=Oe.useState(function(){return{value:e,callback:r,facade:{get current(){return t.value},set current(o){var n=t.value;n!==o&&(t.value=o,t.callback(o,n))}}}})[0];return t.callback=r,t.facade}var Pb=typeof window<"u"?u.useLayoutEffect:u.useEffect,Ya=new WeakMap;function Cb(e,r){var t=wb(null,function(o){return e.forEach(function(n){return ms(n,o)})});return Pb(function(){var o=Ya.get(t);if(o){var n=new Set(o),s=new Set(e),i=t.current;n.forEach(function(l){s.has(l)||ms(l,null)}),s.forEach(function(l){n.has(l)||ms(l,i)})}Ya.set(t,e)},[e]),t}function kb(e){return e}function jb(e,r){r===void 0&&(r=kb);var t=[],o=!1,n={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return t.length?t[t.length-1]:e},useMedium:function(s){var i=r(s,o);return t.push(i),function(){t=t.filter(function(l){return l!==i})}},assignSyncMedium:function(s){for(o=!0;t.length;){var i=t;t=[],i.forEach(s)}t={push:function(l){return s(l)},filter:function(){return t}}},assignMedium:function(s){o=!0;var i=[];if(t.length){var l=t;t=[],l.forEach(s),i=t}var a=function(){var f=i;i=[],f.forEach(s)},d=function(){return Promise.resolve().then(a)};d(),t={push:function(f){i.push(f),d()},filter:function(f){return i=i.filter(f),t}}}};return n}function Sb(e){e===void 0&&(e={});var r=jb(null);return r.options=kr({async:!0,ssr:!1},e),r}var Ld=function(e){var r=e.sideCar,t=Md(e,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=r.read();if(!o)throw new Error("Sidecar medium not found");return u.createElement(o,kr({},t))};Ld.isSideCarExport=!0;function Nb(e,r){return e.useMedium(r),Ld}var Dd=Sb(),hs=function(){},Rn=u.forwardRef(function(e,r){var t=u.useRef(null),o=u.useState({onScrollCapture:hs,onWheelCapture:hs,onTouchMoveCapture:hs}),n=o[0],s=o[1],i=e.forwardProps,l=e.children,a=e.className,d=e.removeScrollBar,f=e.enabled,m=e.shards,p=e.sideCar,v=e.noRelative,g=e.noIsolation,h=e.inert,y=e.allowPinchZoom,b=e.as,x=b===void 0?"div":b,w=e.gapMode,P=Md(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=p,k=Cb([t,r]),j=kr(kr({},P),n);return u.createElement(u.Fragment,null,f&&u.createElement(C,{sideCar:Dd,removeScrollBar:d,shards:m,noRelative:v,noIsolation:g,inert:h,setCallbacks:s,allowPinchZoom:!!y,lockRef:t,gapMode:w}),i?u.cloneElement(u.Children.only(l),kr(kr({},j),{ref:k})):u.createElement(x,kr({},j,{className:a,ref:k}),l))});Rn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Rn.classNames={fullWidth:Qo,zeroRight:Jo};var qb=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Eb(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var r=qb();return r&&e.setAttribute("nonce",r),e}function Rb(e,r){e.styleSheet?e.styleSheet.cssText=r:e.appendChild(document.createTextNode(r))}function Ab(e){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(e)}var Ib=function(){var e=0,r=null;return{add:function(t){e==0&&(r=Eb())&&(Rb(r,t),Ab(r)),e++},remove:function(){e--,!e&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},Tb=function(){var e=Ib();return function(r,t){u.useEffect(function(){return e.add(r),function(){e.remove()}},[r&&t])}},Fd=function(){var e=Tb(),r=function(t){var o=t.styles,n=t.dynamic;return e(o,n),null};return r},_b={left:0,top:0,right:0,gap:0},ps=function(e){return parseInt(e||"",10)||0},Ob=function(e){var r=window.getComputedStyle(document.body),t=r[e==="padding"?"paddingLeft":"marginLeft"],o=r[e==="padding"?"paddingTop":"marginTop"],n=r[e==="padding"?"paddingRight":"marginRight"];return[ps(t),ps(o),ps(n)]},Mb=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return _b;var r=Ob(e),t=document.documentElement.clientWidth,o=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,o-t+r[2]-r[0])}},Lb=Fd(),Et="data-scroll-locked",Db=function(e,r,t,o){var n=e.left,s=e.top,i=e.right,l=e.gap;return t===void 0&&(t="margin"),`
|
|
2
2
|
.`.concat(bb,` {
|
|
3
3
|
overflow: hidden `).concat(o,`;
|
|
4
4
|
padding-right: `).concat(l,"px ").concat(o,`;
|
|
@@ -16,33 +16,33 @@
|
|
|
16
16
|
`),t==="padding"&&"padding-right: ".concat(l,"px ").concat(o,";")].filter(Boolean).join(""),`
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.`).concat(
|
|
19
|
+
.`).concat(Jo,` {
|
|
20
20
|
right: `).concat(l,"px ").concat(o,`;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.`).concat(
|
|
23
|
+
.`).concat(Qo,` {
|
|
24
24
|
margin-right: `).concat(l,"px ").concat(o,`;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
.`).concat(
|
|
27
|
+
.`).concat(Jo," .").concat(Jo,` {
|
|
28
28
|
right: 0 `).concat(o,`;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
.`).concat(
|
|
31
|
+
.`).concat(Qo," .").concat(Qo,` {
|
|
32
32
|
margin-right: 0 `).concat(o,`;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
body[`).concat(Et,`] {
|
|
36
36
|
`).concat(yb,": ").concat(l,`px;
|
|
37
37
|
}
|
|
38
|
-
`)},
|
|
38
|
+
`)},Xa=function(){var e=parseInt(document.body.getAttribute(Et)||"0",10);return isFinite(e)?e:0},Fb=function(){u.useEffect(function(){return document.body.setAttribute(Et,(Xa()+1).toString()),function(){var e=Xa()-1;e<=0?document.body.removeAttribute(Et):document.body.setAttribute(Et,e.toString())}},[])},Bb=function(e){var r=e.noRelative,t=e.noImportant,o=e.gapMode,n=o===void 0?"margin":o;Fb();var s=u.useMemo(function(){return Mb(n)},[n]);return u.createElement(Lb,{styles:Db(s,!r,n,t?"":"!important")})},li=!1;if(typeof window<"u")try{var Oo=Object.defineProperty({},"passive",{get:function(){return li=!0,!0}});window.addEventListener("test",Oo,Oo),window.removeEventListener("test",Oo,Oo)}catch{li=!1}var Pt=li?{passive:!1}:!1,$b=function(e){return e.tagName==="TEXTAREA"},Bd=function(e,r){if(!(e instanceof Element))return!1;var t=window.getComputedStyle(e);return t[r]!=="hidden"&&!(t.overflowY===t.overflowX&&!$b(e)&&t[r]==="visible")},Vb=function(e){return Bd(e,"overflowY")},zb=function(e){return Bd(e,"overflowX")},Ja=function(e,r){var t=r.ownerDocument,o=r;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var n=$d(e,o);if(n){var s=Vd(e,o),i=s[1],l=s[2];if(i>l)return!0}o=o.parentNode}while(o&&o!==t.body);return!1},Hb=function(e){var r=e.scrollTop,t=e.scrollHeight,o=e.clientHeight;return[r,t,o]},Ub=function(e){var r=e.scrollLeft,t=e.scrollWidth,o=e.clientWidth;return[r,t,o]},$d=function(e,r){return e==="v"?Vb(r):zb(r)},Vd=function(e,r){return e==="v"?Hb(r):Ub(r)},Wb=function(e,r){return e==="h"&&r==="rtl"?-1:1},Kb=function(e,r,t,o,n){var s=Wb(e,window.getComputedStyle(r).direction),i=s*o,l=t.target,a=r.contains(l),d=!1,f=i>0,m=0,p=0;do{if(!l)break;var v=Vd(e,l),g=v[0],h=v[1],y=v[2],b=h-y-s*g;(g||b)&&$d(e,l)&&(m+=b,p+=g);var x=l.parentNode;l=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!a&&l!==document.body||a&&(r.contains(l)||r===l));return(f&&Math.abs(m)<1||!f&&Math.abs(p)<1)&&(d=!0),d},Mo=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Qa=function(e){return[e.deltaX,e.deltaY]},Za=function(e){return e&&"current"in e?e.current:e},Gb=function(e,r){return e[0]===r[0]&&e[1]===r[1]},Yb=function(e){return`
|
|
39
39
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
40
40
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
41
|
-
`)},Xb=0,Ct=[];function Jb(e){var r=u.useRef([]),t=u.useRef([0,0]),o=u.useRef(),n=u.useState(Xb++)[0],s=u.useState(Fd)[0],i=u.useRef(e);u.useEffect(function(){i.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(n));var h=xb([e.lockRef.current],(e.shards||[]).map(ec),!0).filter(Boolean);return h.forEach(function(y){return y.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),h.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(n))})}}},[e.inert,e.lockRef.current,e.shards]);var l=u.useCallback(function(h,y){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!i.current.allowPinchZoom;var b=Mo(h),x=t.current,w="deltaX"in h?h.deltaX:x[0]-b[0],P="deltaY"in h?h.deltaY:x[1]-b[1],C,k=h.target,j=Math.abs(w)>Math.abs(P)?"h":"v";if("touches"in h&&j==="h"&&k.type==="range")return!1;var S=window.getSelection(),N=S&&S.anchorNode,A=N?N===k||N.contains(k):!1;if(A)return!1;var q=Qa(j,k);if(!q)return!0;if(q?C=j:(C=j==="v"?"h":"v",q=Qa(j,k)),!q)return!1;if(!o.current&&"changedTouches"in h&&(w||P)&&(o.current=C),!C)return!0;var E=o.current||C;return Kb(E,y,h,E==="h"?w:P)},[]),a=u.useCallback(function(h){var y=h;if(!(!Ct.length||Ct[Ct.length-1]!==s)){var b="deltaY"in y?Za(y):Mo(y),x=r.current.filter(function(C){return C.name===y.type&&(C.target===y.target||y.target===C.shadowParent)&&Gb(C.delta,b)})[0];if(x&&x.should){y.cancelable&&y.preventDefault();return}if(!x){var w=(i.current.shards||[]).map(ec).filter(Boolean).filter(function(C){return C.contains(y.target)}),P=w.length>0?l(y,w[0]):!i.current.noIsolation;P&&y.cancelable&&y.preventDefault()}}},[]),d=u.useCallback(function(h,y,b,x){var w={name:h,delta:y,target:b,should:x,shadowParent:Qb(b)};r.current.push(w),setTimeout(function(){r.current=r.current.filter(function(P){return P!==w})},1)},[]),f=u.useCallback(function(h){t.current=Mo(h),o.current=void 0},[]),m=u.useCallback(function(h){d(h.type,Za(h),h.target,l(h,e.lockRef.current))},[]),p=u.useCallback(function(h){d(h.type,Mo(h),h.target,l(h,e.lockRef.current))},[]);u.useEffect(function(){return Ct.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:p}),document.addEventListener("wheel",a,Pt),document.addEventListener("touchmove",a,Pt),document.addEventListener("touchstart",f,Pt),function(){Ct=Ct.filter(function(h){return h!==s}),document.removeEventListener("wheel",a,Pt),document.removeEventListener("touchmove",a,Pt),document.removeEventListener("touchstart",f,Pt)}},[]);var v=e.removeScrollBar,g=e.inert;return u.createElement(u.Fragment,null,g?u.createElement(s,{styles:Yb(n)}):null,v?u.createElement(Bb,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Qb(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const Zb=Nb(Dd,Jb);var nl=u.forwardRef(function(e,r){return u.createElement(En,kr({},e,{ref:r,sideCar:Zb}))});nl.classNames=En.classNames;var Rn="Popover",[zd]=br(Rn,[Ft]),xo=Ft(),[ey,Zr]=zd(Rn),Hd=e=>{const{__scopePopover:r,children:t,open:o,defaultOpen:n,onOpenChange:s,modal:i=!1}=e,l=xo(r),a=u.useRef(null),[d,f]=u.useState(!1),[m,p]=_r({prop:o,defaultProp:n??!1,onChange:s,caller:Rn});return c.jsx(rl,{...l,children:c.jsx(ey,{scope:r,contentId:vt(),triggerRef:a,open:m,onOpenChange:p,onOpenToggle:u.useCallback(()=>p(v=>!v),[p]),hasCustomAnchor:d,onCustomAnchorAdd:u.useCallback(()=>f(!0),[]),onCustomAnchorRemove:u.useCallback(()=>f(!1),[]),modal:i,children:t})})};Hd.displayName=Rn;var Ud="PopoverAnchor",Wd=u.forwardRef((e,r)=>{const{__scopePopover:t,...o}=e,n=Zr(Ud,t),s=xo(t),{onCustomAnchorAdd:i,onCustomAnchorRemove:l}=n;return u.useEffect(()=>(i(),()=>l()),[i,l]),c.jsx(Nn,{...s,...o,ref:r})});Wd.displayName=Ud;var Kd="PopoverTrigger",Gd=u.forwardRef((e,r)=>{const{__scopePopover:t,...o}=e,n=Zr(Kd,t),s=xo(t),i=Re(r,n.triggerRef),l=c.jsx(ye.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":ef(n.open),...o,ref:i,onClick:pe(e.onClick,n.onOpenToggle)});return n.hasCustomAnchor?l:c.jsx(Nn,{asChild:!0,...s,children:l})});Gd.displayName=Kd;var sl="PopoverPortal",[ry,ty]=zd(sl,{forceMount:void 0}),Yd=e=>{const{__scopePopover:r,forceMount:t,children:o,container:n}=e,s=Zr(sl,r);return c.jsx(ry,{scope:r,forceMount:t,children:c.jsx(Qr,{present:t||s.open,children:c.jsx(qn,{asChild:!0,container:n,children:o})})})};Yd.displayName=sl;var It="PopoverContent",Xd=u.forwardRef((e,r)=>{const t=ty(It,e.__scopePopover),{forceMount:o=t.forceMount,...n}=e,s=Zr(It,e.__scopePopover);return c.jsx(Qr,{present:o||s.open,children:s.modal?c.jsx(ny,{...n,ref:r}):c.jsx(sy,{...n,ref:r})})});Xd.displayName=It;var oy=io("PopoverContent.RemoveScroll"),ny=u.forwardRef((e,r)=>{const t=Zr(It,e.__scopePopover),o=u.useRef(null),n=Re(r,o),s=u.useRef(!1);return u.useEffect(()=>{const i=o.current;if(i)return Od(i)},[]),c.jsx(nl,{as:oy,allowPinchZoom:!0,children:c.jsx(Jd,{...e,ref:n,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pe(e.onCloseAutoFocus,i=>{i.preventDefault(),s.current||t.triggerRef.current?.focus()}),onPointerDownOutside:pe(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,a=l.button===0&&l.ctrlKey===!0,d=l.button===2||a;s.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:pe(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),sy=u.forwardRef((e,r)=>{const t=Zr(It,e.__scopePopover),o=u.useRef(!1),n=u.useRef(!1);return c.jsx(Jd,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(o.current||t.triggerRef.current?.focus(),s.preventDefault()),o.current=!1,n.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const i=s.target;t.triggerRef.current?.contains(i)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),Jd=u.forwardRef((e,r)=>{const{__scopePopover:t,trapFocus:o,onOpenAutoFocus:n,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:d,onInteractOutside:f,...m}=e,p=Zr(It,t),v=xo(t);return dd(),c.jsx(Wi,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:n,onUnmountAutoFocus:s,children:c.jsx(wn,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:d,onDismiss:()=>p.onOpenChange(!1),children:c.jsx(tl,{"data-state":ef(p.open),role:"dialog",id:p.contentId,...v,...m,ref:r,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Qd="PopoverClose",Zd=u.forwardRef((e,r)=>{const{__scopePopover:t,...o}=e,n=Zr(Qd,t);return c.jsx(ye.button,{type:"button",...o,ref:r,onClick:pe(e.onClick,()=>n.onOpenChange(!1))})});Zd.displayName=Qd;var iy="PopoverArrow",ly=u.forwardRef((e,r)=>{const{__scopePopover:t,...o}=e,n=xo(t);return c.jsx(ol,{...n,...o,ref:r})});ly.displayName=iy;function ef(e){return e?"open":"closed"}var ay=Hd,cy=Wd,ci=Gd,uy=Yd,dy=Xd,ui=Zd;function fy(e){if(e!==void 0)return{width:typeof e=="number"?`${e}px`:e}}function rf(e){const r=se();return re(e,r)}const tf=ay,il=u.forwardRef((e,r)=>{const{asChild:t,asChildWrapper:o="span",children:n,className:s,class:i,sx:l,style:a,...d}=e,{sxClassName:f,sxInlineStyle:m}=rf(l),p=R(f,s,i),v=D(a,m);return t?c.jsx(ci,{asChild:!0,...d,children:c.jsx(o,{ref:r,className:R("inline-flex w-fit",p),style:v,children:n})}):c.jsx(ci,{ref:r,className:p,style:v,...d,children:n})});il.displayName=ci.displayName;const my=cy,of=u.forwardRef((e,r)=>{const{asChild:t,asChildWrapper:o="span",children:n,className:s,class:i,sx:l,style:a,...d}=e,{sxClassName:f,sxInlineStyle:m}=rf(l),p=R(f,s,i),v=D(a,m);return t?c.jsx(ui,{asChild:!0,...d,children:c.jsx(o,{ref:r,className:R("inline-flex w-fit",p),style:v,children:n})}):c.jsx(ui,{ref:r,className:p,style:v,...d,children:n})});of.displayName=ui.displayName;const ll=u.forwardRef((e,r)=>{const{align:t="center",sideOffset:o=6,width:n=288,rounded:s="lg",shadow:i="md",sx:l,style:a,className:d,class:f,...m}=e,p=se(),{roundedPreset:v,roundedStyle:g}=ht(s),{shadowPreset:h,shadowStyle:y}=ho(i),{sxClassName:b,sxInlineStyle:x}=re(l,p);return c.jsx(uy,{children:c.jsx(dy,{ref:r,align:t,sideOffset:o,className:R("z-[var(--ldkj-z-dropdown)] border border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-surface)] p-4 text-sm text-[color:var(--ldkj-color-surface-foreground)] outline-none","origin-[--radix-popover-content-transform-origin]","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",v&&Yr[v],h&&Ot[h],b,d,f),style:D(a,fy(n),g,y??{boxShadow:"var(--ldkj-shadow-popover)"},x),...m})})});ll.displayName="PopoverContent";var nf=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),hy="VisuallyHidden",sf=u.forwardRef((e,r)=>c.jsx(ye.span,{...e,ref:r,style:{...nf,...e.style}}));sf.displayName=hy;var py=sf,[An]=br("Tooltip",[Ft]),In=Ft(),lf="TooltipProvider",vy=700,di="tooltip.open",[gy,al]=An(lf),af=e=>{const{__scopeTooltip:r,delayDuration:t=vy,skipDelayDuration:o=300,disableHoverableContent:n=!1,children:s}=e,i=u.useRef(!0),l=u.useRef(!1),a=u.useRef(0);return u.useEffect(()=>{const d=a.current;return()=>window.clearTimeout(d)},[]),c.jsx(gy,{scope:r,isOpenDelayedRef:i,delayDuration:t,onOpen:u.useCallback(()=>{window.clearTimeout(a.current),i.current=!1},[]),onClose:u.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.current=!0,o)},[o]),isPointerInTransitRef:l,onPointerInTransitChange:u.useCallback(d=>{l.current=d},[]),disableHoverableContent:n,children:s})};af.displayName=lf;var ao="Tooltip",[xy,bo]=An(ao),cf=e=>{const{__scopeTooltip:r,children:t,open:o,defaultOpen:n,onOpenChange:s,disableHoverableContent:i,delayDuration:l}=e,a=al(ao,e.__scopeTooltip),d=In(r),[f,m]=u.useState(null),p=vt(),v=u.useRef(0),g=i??a.disableHoverableContent,h=l??a.delayDuration,y=u.useRef(!1),[b,x]=_r({prop:o,defaultProp:n??!1,onChange:j=>{j?(a.onOpen(),document.dispatchEvent(new CustomEvent(di))):a.onClose(),s?.(j)},caller:ao}),w=u.useMemo(()=>b?y.current?"delayed-open":"instant-open":"closed",[b]),P=u.useCallback(()=>{window.clearTimeout(v.current),v.current=0,y.current=!1,x(!0)},[x]),C=u.useCallback(()=>{window.clearTimeout(v.current),v.current=0,x(!1)},[x]),k=u.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{y.current=!0,x(!0),v.current=0},h)},[h,x]);return u.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),c.jsx(rl,{...d,children:c.jsx(xy,{scope:r,contentId:p,open:b,stateAttribute:w,trigger:f,onTriggerChange:m,onTriggerEnter:u.useCallback(()=>{a.isOpenDelayedRef.current?k():P()},[a.isOpenDelayedRef,k,P]),onTriggerLeave:u.useCallback(()=>{g?C():(window.clearTimeout(v.current),v.current=0)},[C,g]),onOpen:P,onClose:C,disableHoverableContent:g,children:t})})};cf.displayName=ao;var fi="TooltipTrigger",uf=u.forwardRef((e,r)=>{const{__scopeTooltip:t,...o}=e,n=bo(fi,t),s=al(fi,t),i=In(t),l=u.useRef(null),a=Re(r,l,n.onTriggerChange),d=u.useRef(!1),f=u.useRef(!1),m=u.useCallback(()=>d.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),c.jsx(Nn,{asChild:!0,...i,children:c.jsx(ye.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...o,ref:a,onPointerMove:pe(e.onPointerMove,p=>{p.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(n.onTriggerEnter(),f.current=!0)}),onPointerLeave:pe(e.onPointerLeave,()=>{n.onTriggerLeave(),f.current=!1}),onPointerDown:pe(e.onPointerDown,()=>{n.open&&n.onClose(),d.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:pe(e.onFocus,()=>{d.current||n.onOpen()}),onBlur:pe(e.onBlur,n.onClose),onClick:pe(e.onClick,n.onClose)})})});uf.displayName=fi;var cl="TooltipPortal",[by,yy]=An(cl,{forceMount:void 0}),df=e=>{const{__scopeTooltip:r,forceMount:t,children:o,container:n}=e,s=bo(cl,r);return c.jsx(by,{scope:r,forceMount:t,children:c.jsx(Qr,{present:t||s.open,children:c.jsx(qn,{asChild:!0,container:n,children:o})})})};df.displayName=cl;var Tt="TooltipContent",ff=u.forwardRef((e,r)=>{const t=yy(Tt,e.__scopeTooltip),{forceMount:o=t.forceMount,side:n="top",...s}=e,i=bo(Tt,e.__scopeTooltip);return c.jsx(Qr,{present:o||i.open,children:i.disableHoverableContent?c.jsx(mf,{side:n,...s,ref:r}):c.jsx(wy,{side:n,...s,ref:r})})}),wy=u.forwardRef((e,r)=>{const t=bo(Tt,e.__scopeTooltip),o=al(Tt,e.__scopeTooltip),n=u.useRef(null),s=Re(r,n),[i,l]=u.useState(null),{trigger:a,onClose:d}=t,f=n.current,{onPointerInTransitChange:m}=o,p=u.useCallback(()=>{l(null),m(!1)},[m]),v=u.useCallback((g,h)=>{const y=g.currentTarget,b={x:g.clientX,y:g.clientY},x=jy(b,y.getBoundingClientRect()),w=Sy(b,x),P=Ny(h.getBoundingClientRect()),C=Ey([...w,...P]);l(C),m(!0)},[m]);return u.useEffect(()=>()=>p(),[p]),u.useEffect(()=>{if(a&&f){const g=y=>v(y,f),h=y=>v(y,a);return a.addEventListener("pointerleave",g),f.addEventListener("pointerleave",h),()=>{a.removeEventListener("pointerleave",g),f.removeEventListener("pointerleave",h)}}},[a,f,v,p]),u.useEffect(()=>{if(i){const g=h=>{const y=h.target,b={x:h.clientX,y:h.clientY},x=a?.contains(y)||f?.contains(y),w=!qy(b,i);x?p():w&&(p(),d())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[a,f,i,d,p]),c.jsx(mf,{...e,ref:s})}),[Py,Cy]=An(ao,{isInside:!1}),ky=Ng("TooltipContent"),mf=u.forwardRef((e,r)=>{const{__scopeTooltip:t,children:o,"aria-label":n,onEscapeKeyDown:s,onPointerDownOutside:i,...l}=e,a=bo(Tt,t),d=In(t),{onClose:f}=a;return u.useEffect(()=>(document.addEventListener(di,f),()=>document.removeEventListener(di,f)),[f]),u.useEffect(()=>{if(a.trigger){const m=p=>{p.target?.contains(a.trigger)&&f()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[a.trigger,f]),c.jsx(wn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:m=>m.preventDefault(),onDismiss:f,children:c.jsxs(tl,{"data-state":a.stateAttribute,...d,...l,ref:r,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(ky,{children:o}),c.jsx(Py,{scope:t,isInside:!0,children:c.jsx(py,{id:a.contentId,role:"tooltip",children:n||o})})]})})});ff.displayName=Tt;var hf="TooltipArrow",pf=u.forwardRef((e,r)=>{const{__scopeTooltip:t,...o}=e,n=In(t);return Cy(hf,t).isInside?null:c.jsx(ol,{...n,...o,ref:r})});pf.displayName=hf;function jy(e,r){const t=Math.abs(r.top-e.y),o=Math.abs(r.bottom-e.y),n=Math.abs(r.right-e.x),s=Math.abs(r.left-e.x);switch(Math.min(t,o,n,s)){case s:return"left";case n:return"right";case t:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function Sy(e,r,t=5){const o=[];switch(r){case"top":o.push({x:e.x-t,y:e.y+t},{x:e.x+t,y:e.y+t});break;case"bottom":o.push({x:e.x-t,y:e.y-t},{x:e.x+t,y:e.y-t});break;case"left":o.push({x:e.x+t,y:e.y-t},{x:e.x+t,y:e.y+t});break;case"right":o.push({x:e.x-t,y:e.y-t},{x:e.x-t,y:e.y+t});break}return o}function Ny(e){const{top:r,right:t,bottom:o,left:n}=e;return[{x:n,y:r},{x:t,y:r},{x:t,y:o},{x:n,y:o}]}function qy(e,r){const{x:t,y:o}=e;let n=!1;for(let s=0,i=r.length-1;s<r.length;i=s++){const l=r[s],a=r[i],d=l.x,f=l.y,m=a.x,p=a.y;f>o!=p>o&&t<(m-d)*(o-f)/(p-f)+d&&(n=!n)}return n}function Ey(e){const r=e.slice();return r.sort((t,o)=>t.x<o.x?-1:t.x>o.x?1:t.y<o.y?-1:t.y>o.y?1:0),Ry(r)}function Ry(e){if(e.length<=1)return e.slice();const r=[];for(let o=0;o<e.length;o++){const n=e[o];for(;r.length>=2;){const s=r[r.length-1],i=r[r.length-2];if((s.x-i.x)*(n.y-i.y)>=(s.y-i.y)*(n.x-i.x))r.pop();else break}r.push(n)}r.pop();const t=[];for(let o=e.length-1;o>=0;o--){const n=e[o];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(n.y-i.y)>=(s.y-i.y)*(n.x-i.x))t.pop();else break}t.push(n)}return t.pop(),r.length===1&&t.length===1&&r[0].x===t[0].x&&r[0].y===t[0].y?r:r.concat(t)}var Ay=af,Iy=cf,mi=uf,Ty=df,vf=ff,gf=pf;const _y={dark:"border-[color:var(--ldkj-color-foreground)] bg-[color:var(--ldkj-color-foreground)] text-[color:var(--ldkj-color-background)]",light:"border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-popover)] text-[color:var(--ldkj-color-popover-foreground)]",primary:"border-[color:var(--ldkj-color-primary)] bg-[color:var(--ldkj-color-primary)] text-[color:var(--ldkj-color-primary-foreground)]"},Oy={dark:"fill-[color:var(--ldkj-color-foreground)]",light:"fill-[color:var(--ldkj-color-popover)]",primary:"fill-[color:var(--ldkj-color-primary)]"},My=({delayDuration:e=0,...r})=>c.jsx(Ay,{delayDuration:e,...r}),Ly=Iy,Dy=Ty,xf=u.forwardRef((e,r)=>{const{asChild:t,asChildWrapper:o="span",children:n,className:s,class:i,sx:l,style:a,...d}=e,f=se(),{sxClassName:m,sxInlineStyle:p}=re(l,f),v=R(m,s,i),g=D(a,p);return t?c.jsx(mi,{asChild:!0,...d,children:c.jsx(o,{ref:r,className:R("inline-flex w-fit",v),style:g,children:n})}):c.jsx(mi,{ref:r,className:v,style:g,...d,children:n})});xf.displayName=mi.displayName;const ul=u.forwardRef((e,r)=>{const{tone:t="dark",className:o,class:n,sx:s,style:i,...l}=e,a=se(),{sxClassName:d,sxInlineStyle:f}=re(s,a);return c.jsx(gf,{ref:r,className:R(Oy[t],d,o,n),style:D(i,f),...l})});ul.displayName=gf.displayName;const bf=u.forwardRef((e,r)=>{const{tone:t="dark",arrow:o=!1,sideOffset:n=6,className:s,class:i,sx:l,style:a,children:d,...f}=e,m=se(),{sxClassName:p,sxInlineStyle:v}=re(l,m);return c.jsxs(vf,{ref:r,sideOffset:n,className:R("z-50 max-w-xs rounded-md border px-3 py-1.5 text-sm leading-5 shadow-md outline-none","origin-[--radix-tooltip-content-transform-origin]","animate-in fade-in-0 zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",_y[t],p,s,i),style:D(a,v),...f,children:[d,o?c.jsx(ul,{tone:t}):null]})});bf.displayName=vf.displayName;let yf=null;function rc(e){yf=e}function Fy(){return yf}const Jt={placement:"rightTop",duration:4500,closable:!0,offset:24},Ze={...Jt};let tc=!1;function hi(e){return{...e,placement:e.placement??Ze.placement,duration:e.duration??Ze.duration,closable:e.closable??Ze.closable,offset:e.offset??Ze.offset}}function Qo(){const e=Fy();return e||(tc||(tc=!0,console.warn("notification 调用失败:请先在应用根节点挂载 NotificationProvider。")),null)}function By(e,r){return typeof r=="string"?{...hi({message:r}),type:e}:{...hi(r),type:e}}function Lo(e,r){const t=Qo();return t?t.push(By(e,r)):""}const $y={open(e){const r=Qo();return r?r.push(hi(e)):""},info(e){return Lo("info",e)},success(e){return Lo("success",e)},warn(e){return Lo("warn",e)},error(e){return Lo("error",e)},dismiss(e){const r=Qo();r&&r.dismiss(e)},clear(){const e=Qo();e&&e.clear()},config(e){Ze.placement=e.placement??Ze.placement,Ze.duration=e.duration??Ze.duration,Ze.closable=e.closable??Ze.closable,Ze.offset=e.offset??Ze.offset},resetConfig(){Ze.placement=Jt.placement,Ze.duration=Jt.duration,Ze.closable=Jt.closable,Ze.offset=Jt.offset}},Vy=200,jt=24,wf={info:{icon:"info",iconColor:"var(--ldkj-color-info)",role:"status",live:"polite"},success:{icon:"check_circle",iconColor:"var(--ldkj-color-success)",role:"status",live:"polite"},warn:{icon:"warning",iconColor:"var(--ldkj-color-warning)",role:"alert",live:"assertive"},error:{icon:"error",iconColor:"var(--ldkj-color-danger)",role:"alert",live:"assertive"}},Pf=u.createContext(null);let oc=0;function zy(){return oc+=1,`ldkj-notification-${Date.now()}-${oc}`}function Hy(e,r){const t=r??jt,o=typeof t=="number"?{top:t,right:t,bottom:t,left:t}:{top:t.top??jt,right:t.right??jt,bottom:t.bottom??jt,left:t.left??jt};return e===void 0?o:typeof e=="number"?{top:e,right:e,bottom:e,left:e}:{top:e.top??o.top,right:e.right??o.right,bottom:e.bottom??o.bottom,left:e.left??o.left}}function pi(e,r){return`${e}:${r.top}:${r.right}:${r.bottom}:${r.left}`}function Uy(e){const r=new Map;for(const t of e){const o=pi(t.placement,t.offset),n=r.get(o);n?n.push(t):r.set(o,[t])}return r}function ps(e){return e!=null&&e!==!1}function Wy(e,r){if(e==="center")return{top:"50%",left:"50%",transform:"translate(-50%, -50%)"};const t={};return e.includes("Top")&&(t.top=r.top),e.includes("Bottom")&&(t.bottom=r.bottom),e.includes("right")&&(t.right=r.right),e.includes("left")&&(t.left=r.left),t}function Ky(e){const r=wf[e.type],t=e.iconColor??r.iconColor;return typeof e.icon=="string"?c.jsx($e,{name:e.icon,color:t,size:22,className:"ldkj-notification-icon",title:`${e.type} icon`}):e.icon?.svg||e.icon?.src?c.jsx($e,{svg:e.icon.svg,src:e.icon.src,color:t,size:22,className:"ldkj-notification-icon",title:`${e.type} icon`}):c.jsx($e,{name:r.icon,color:t,size:22,className:"ldkj-notification-icon",title:`${e.type} icon`})}function Cf(e){const{children:r,placement:t="rightTop",duration:o=4500,queueLimit:n=5,offset:s=jt,closable:i=!0}=e,[l,a]=u.useState([]),d=u.useRef(new Map),f=u.useRef(new Map),m=u.useRef(new Set),p=u.useCallback(C=>{const k=d.current.get(C);k!==void 0&&(window.clearTimeout(k),d.current.delete(C));const j=f.current.get(C);j!==void 0&&(window.clearTimeout(j),f.current.delete(C))},[]),v=u.useCallback(C=>{m.current.has(C.id)||(m.current.add(C.id),C.onClose?.())},[]),g=u.useCallback(C=>{a(k=>{const j=k.find(S=>S.id===C);return j?(p(C),v(j),k.filter(S=>S.id!==C)):k})},[p,v]),h=u.useCallback(C=>{p(C),a(j=>j.map(S=>S.id===C&&!S.leaving?{...S,leaving:!0}:S));const k=window.setTimeout(()=>{g(C)},Vy);f.current.set(C,k)},[p,g]),y=u.useCallback(()=>{a(C=>(C.forEach(k=>{p(k.id),v(k)}),[]))},[p,v]),b=u.useCallback(C=>{const k=C.id??zy();m.current.delete(k),p(k);const j=C.placement??t,S=Hy(C.offset,s),N={id:k,type:C.type??"info",message:C.message,description:C.description,content:C.content,actions:C.actions,placement:j,offset:S,closable:C.closable??i,icon:C.icon,iconColor:C.iconColor,onClose:C.onClose,leaving:!1},A=pi(j,S);a(E=>{const _=[...E.filter(M=>M.id!==k),N],O=_.filter(M=>pi(M.placement,M.offset)===A);if(O.length<=n)return _;const T=O.length-n,$=new Set(O.slice(0,T).map(M=>M.id));return O.slice(0,T).forEach(M=>{p(M.id),v(M)}),_.filter(M=>!$.has(M.id))});const q=C.duration??o;if(q>0){const E=window.setTimeout(()=>{h(k)},q);d.current.set(k,E)}return k},[p,i,h,o,v,s,t,n]);u.useEffect(()=>()=>{d.current.forEach(C=>window.clearTimeout(C)),f.current.forEach(C=>window.clearTimeout(C)),d.current.clear(),f.current.clear()},[]);const x=u.useMemo(()=>({push:b,dismiss:h,clear:y}),[y,h,b]);u.useEffect(()=>(rc(x),()=>rc(null)),[x]);const w=u.useMemo(()=>Uy(l),[l]),P=Array.from(w.entries());return c.jsxs(Pf.Provider,{value:x,children:[r,P.map(([C,k])=>{const j=k[0];return j?c.jsx("div",{className:R("ldkj-notification-viewport",`ldkj-notification-viewport-${j.placement}`),style:Wy(j.placement,j.offset),"aria-hidden":k.length===0,children:k.map(S=>{const N=wf[S.type];return c.jsxs("div",{className:R("ldkj-notification-card",`ldkj-notification-card-${S.type}`,S.leaving?"ldkj-notification-leave":"ldkj-notification-appear"),role:N.role,"aria-live":N.live,"aria-atomic":"true",children:[c.jsx("div",{className:"ldkj-notification-icon-wrap",children:Ky(S)}),c.jsxs("div",{className:"ldkj-notification-main",children:[c.jsx("div",{className:"ldkj-notification-title",children:S.message}),ps(S.description)?c.jsx("div",{className:"ldkj-notification-description",children:S.description}):null,ps(S.content)?c.jsx("div",{className:"ldkj-notification-content",children:S.content}):null,ps(S.actions)?c.jsx("div",{className:"ldkj-notification-actions",children:S.actions}):null]}),S.closable?c.jsx("button",{type:"button",className:"ldkj-notification-close","aria-label":"关闭通知",onClick:()=>h(S.id),children:c.jsx($e,{name:"close",size:16,className:"ldkj-notification-close-icon"})}):null]},S.id)})},C):null})]})}Cf.displayName="NotificationProvider";function Gy(){const e=u.useContext(Pf);if(!e)throw new Error("useNotification 必须在 NotificationProvider 内使用。");const r=u.useCallback(i=>e.push(i),[e]),t=u.useCallback(i=>e.push(Do("info",i)),[e]),o=u.useCallback(i=>e.push(Do("success",i)),[e]),n=u.useCallback(i=>e.push(Do("warn",i)),[e]),s=u.useCallback(i=>e.push(Do("error",i)),[e]);return u.useMemo(()=>({open:r,info:t,success:o,warn:n,error:s,dismiss:e.dismiss,clear:e.clear}),[e.clear,e.dismiss,s,t,r,o,n])}function Do(e,r){return typeof r=="string"?{type:e,message:r}:{...r,type:e}}const Yy={primary:"border-[color:var(--ldkj-color-border)] border-t-[color:var(--ldkj-color-primary)]",muted:"border-[color:var(--ldkj-color-border)] border-t-[color:var(--ldkj-color-muted-foreground)]",success:"border-[color:var(--ldkj-color-border)] border-t-[color:var(--ldkj-color-success)]",warning:"border-[color:var(--ldkj-color-border)] border-t-[color:var(--ldkj-color-warning)]",danger:"border-[color:var(--ldkj-color-border)] border-t-[color:var(--ldkj-color-danger)]"};function kf(e){const{size:r=18,strokeWidth:t=2,tone:o="primary",label:n="loading",spinning:s=!0,className:i,class:l,style:a,...d}=e;return s?c.jsx("span",{role:"status","aria-label":n,className:R("inline-block shrink-0 animate-spin rounded-full border-solid",Yy[o],i,l),style:{width:r,height:r,borderWidth:t,...a},...d,children:c.jsx("span",{className:"sr-only",children:n})}):null}function Xy(e,r){const[t,o]=u.useState(e&&r<=0);return u.useEffect(()=>{if(!e){o(!1);return}if(r<=0){o(!0);return}const n=window.setTimeout(()=>o(!0),r);return()=>window.clearTimeout(n)},[r,e]),t}function Jy(e){const{text:r="加载中...",variant:t="inline",size:o=18,tone:n="primary",spinning:s=!0,delay:i=0,children:l,className:a,class:d,...f}=e,p=Xy(s,i)?c.jsxs("div",{role:"status","aria-live":"polite",className:R("inline-flex items-center justify-center gap-2 text-sm text-[color:var(--ldkj-color-muted-foreground)]",t==="block"&&"min-h-24 w-full",t==="overlay"&&"absolute inset-0 z-10 bg-[color:color-mix(in_srgb,var(--ldkj-color-surface)_75%,transparent)] backdrop-blur-[1px]",t==="fullscreen"&&"fixed inset-0 z-[var(--ldkj-z-modal)] bg-[color:color-mix(in_srgb,var(--ldkj-color-surface)_80%,transparent)] backdrop-blur-[1px]",a,d),...f,children:[c.jsx(kf,{size:o,tone:n}),r?c.jsx("span",{children:r}):null]}):null;return l?c.jsxs("div",{className:"relative","aria-busy":s||void 0,children:[l,t==="overlay"||t==="fullscreen"?p:null]}):p?c.jsx("div",{className:R(t==="block"&&"flex w-full justify-center"),children:p}):null}let Ut=0,nc="";function Qy(){return typeof document>"u"?()=>{}:(Ut===0&&(nc=document.body.style.overflow,document.body.style.overflow="hidden"),Ut+=1,()=>{Ut=Math.max(0,Ut-1),Ut===0&&(document.body.style.overflow=nc)})}function Zy(e){switch(e){case"left":return{position:"left-0 top-0 h-full",open:"translate-x-0",closed:"-translate-x-full"};case"top":return{position:"left-0 top-0 w-full",open:"translate-y-0",closed:"-translate-y-full"};case"bottom":return{position:"bottom-0 left-0 w-full",open:"translate-y-0",closed:"translate-y-full"};default:return{position:"right-0 top-0 h-full",open:"translate-x-0",closed:"translate-x-full"}}}function ew(e){const{open:r,title:t,width:o=360,height:n=320,placement:s="right",className:i,class:l,overlayClassName:a,bodyClassName:d,footer:f,children:m,onOpenChange:p,animated:v=!0,animationDuration:g=220,lockScroll:h=!0,maskClosable:y=!0,closeOnEsc:b=!0,destroyOnClose:x=!0,role:w="dialog",...P}=e,[C,k]=u.useState(r),[j,S]=u.useState(r),N=u.useRef(null),A=Zy(s),q=s==="left"||s==="right";return u.useEffect(()=>{if(r){k(!0);const I=window.requestAnimationFrame(()=>S(!0));return()=>window.cancelAnimationFrame(I)}if(S(!1),!v){x&&k(!1);return}const E=window.setTimeout(()=>{x&&k(!1)},g);return()=>window.clearTimeout(E)},[v,g,x,r]),u.useEffect(()=>{if(!(!r||!h))return Qy()},[h,r]),u.useEffect(()=>{if(!r||!b)return;const E=I=>{I.key==="Escape"&&p?.(!1)};return window.addEventListener("keydown",E),()=>window.removeEventListener("keydown",E)},[b,p,r]),u.useEffect(()=>{r&&N.current?.focus()},[r]),C?c.jsxs("div",{className:"fixed inset-0 z-[var(--ldkj-z-drawer)]","aria-hidden":!j,children:[c.jsx("div",{className:R("absolute inset-0 bg-[color:var(--ldkj-color-overlay)]",v&&"transition-opacity ease-out",j?"opacity-100":"opacity-0",a),style:{transitionDuration:v?`${g}ms`:"0ms"},onClick:()=>{y&&p?.(!1)}}),c.jsxs("div",{ref:N,tabIndex:-1,role:w,"aria-modal":"true","aria-label":typeof t=="string"?t:void 0,className:R("absolute flex max-h-full max-w-full flex-col bg-[color:var(--ldkj-color-surface)] text-[color:var(--ldkj-color-surface-foreground)] shadow-[var(--ldkj-shadow-modal)] outline-none",A.position,v&&"transition-transform ease-out will-change-transform",j?A.open:A.closed,i,l),style:{width:q?o:void 0,height:q?void 0:n,transitionDuration:v?`${g}ms`:"0ms"},...P,children:[t?c.jsxs("div",{className:"flex shrink-0 items-center justify-between border-b border-[color:var(--ldkj-color-border)] px-4 py-3",children:[c.jsx("div",{className:"min-w-0 text-base font-medium text-[color:var(--ldkj-color-foreground)]",children:t}),c.jsx("button",{type:"button","aria-label":"Close drawer",className:"inline-flex h-8 w-8 shrink-0 items-center justify-center rounded text-[color:var(--ldkj-color-muted-foreground)] transition hover:bg-[color:var(--ldkj-color-accent)] hover:text-[color:var(--ldkj-color-foreground)] focus:outline-none focus:ring-2 focus:ring-[color:var(--ldkj-color-ring)]",onClick:()=>p?.(!1),children:"x"})]}):null,c.jsx("div",{className:R("min-h-0 flex-1 overflow-auto p-4",d),children:m}),f?c.jsx("div",{className:"shrink-0 border-t border-[color:var(--ldkj-color-border)] px-4 py-3",children:f}):null]})]}):null}const rw={info:"border-[color:var(--ldkj-color-info)] bg-[color:var(--ldkj-color-accent)] text-[color:var(--ldkj-color-info)]",success:"border-[color:var(--ldkj-color-success)] bg-[color:var(--ldkj-color-accent)] text-[color:var(--ldkj-color-success)]",warning:"border-[color:var(--ldkj-color-warning)] bg-[color:var(--ldkj-color-accent)] text-[color:var(--ldkj-color-warning)]",error:"border-[color:var(--ldkj-color-danger)] bg-[color:var(--ldkj-color-accent)] text-[color:var(--ldkj-color-danger)]"},tw={info:"bg-[color:var(--ldkj-color-info)] text-[color:var(--ldkj-color-info-foreground)]",success:"bg-[color:var(--ldkj-color-success)] text-[color:var(--ldkj-color-success-foreground)]",warning:"bg-[color:var(--ldkj-color-warning)] text-[color:var(--ldkj-color-warning-foreground)]",error:"bg-[color:var(--ldkj-color-danger)] text-[color:var(--ldkj-color-danger-foreground)]"},ow={info:"i",success:"ok",warning:"!",error:"!"};function nw(e){const{className:r,class:t,variant:o="info",title:n,description:s,children:i,icon:l,showIcon:a=!!l,action:d,closable:f=!1,open:m,onClose:p,onOpenChange:v,role:g=o==="error"||o==="warning"?"alert":"status",...h}=e,[y,b]=u.useState(!0);if(!(m??y))return null;const w=()=>{b(!1),v?.(!1),p?.()};return c.jsx("div",{role:g,className:R("rounded-md border p-3",rw[o],r,t),...h,children:c.jsxs("div",{className:"flex items-start gap-3",children:[a?c.jsx("span",{"aria-hidden":!0,className:R("mt-0.5 inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1 text-[10px] font-semibold leading-none",tw[o]),children:l??ow[o]}):null,c.jsxs("div",{className:"min-w-0 flex-1",children:[n?c.jsx("div",{className:"font-medium",children:n}):null,s?c.jsx("div",{className:"mt-1 text-sm opacity-90",children:s}):i,d?c.jsx("div",{className:"mt-2",children:d}):null]}),f?c.jsx("button",{type:"button","aria-label":"Close alert",className:"inline-flex h-6 w-6 shrink-0 items-center justify-center rounded text-current opacity-70 transition hover:bg-current/10 hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-current/30",onClick:w,children:"x"}):null]})})}const sw={normal:"var(--ldkj-color-primary)",success:"var(--ldkj-color-success)",warning:"var(--ldkj-color-warning)",exception:"var(--ldkj-color-danger)"},iw={xs:48,sm:64,md:96,lg:120,xl:144},lw={xs:4,sm:6,md:8,lg:10,xl:12};function aw(e,r){return!Number.isFinite(e)||!Number.isFinite(r)||r<=0?0:Math.max(0,Math.min(100,e/r*100))}function cw(e,r){return typeof e=="number"?e:r==="circle"?iw[e]:lw[e]}function jf(e){const{value:r=0,max:t=100,showInfo:o=!1,type:n="line",status:s,size:i="md",strokeWidth:l,strokeColor:a,trailColor:d="var(--ldkj-color-muted)",format:f,className:m,class:p,...v}=e,g=aw(r,t),h=s??(g>=100?"success":"normal"),y=a??sw[h],b=f?f(Math.round(g),r,t):`${Math.round(g)}%`,x=cw(i,n),w=l??(n==="circle"?8:x);if(n==="circle"){const P=Math.max(1,Math.min(48,w)),C=50-P/2,k=2*Math.PI*C,j=k*(1-g/100);return c.jsxs("div",{role:"progressbar","aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":Math.max(0,Math.min(t,r)),className:R("relative inline-flex items-center justify-center",m,p),style:{width:x,height:x},...v,children:[c.jsxs("svg",{viewBox:"0 0 100 100",className:"h-full w-full -rotate-90",children:[c.jsx("circle",{cx:"50",cy:"50",r:C,fill:"none",stroke:d,strokeWidth:P}),c.jsx("circle",{cx:"50",cy:"50",r:C,fill:"none",stroke:y,strokeLinecap:"round",strokeWidth:P,strokeDasharray:k,strokeDashoffset:j,className:"transition-[stroke-dashoffset,stroke] duration-300 ease-out"})]}),o?c.jsx("div",{className:"absolute inset-0 flex items-center justify-center text-sm font-medium text-[color:var(--ldkj-color-foreground)]",children:b}):null]})}return c.jsxs("div",{role:"progressbar","aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":Math.max(0,Math.min(t,r)),className:R("w-full",m,p),...v,children:[c.jsx("div",{className:"w-full overflow-hidden rounded-full",style:{height:w,backgroundColor:d},children:c.jsx("div",{className:"h-full transition-[width,background-color] duration-300 ease-out",style:{width:`${g}%`,backgroundColor:y}})}),o?c.jsx("div",{className:"mt-1 text-xs text-[color:var(--ldkj-color-muted-foreground)]",children:b}):null]})}function Tn(e){const r=u.useRef({value:e,previous:e});return u.useMemo(()=>(r.current.value!==e&&(r.current.previous=r.current.value,r.current.value=e),r.current.previous),[e])}var _n="Checkbox",[uw]=br(_n),[dw,dl]=uw(_n);function fw(e){const{__scopeCheckbox:r,checked:t,children:o,defaultChecked:n,disabled:s,form:i,name:l,onCheckedChange:a,required:d,value:f="on",internal_do_not_use_render:m}=e,[p,v]=_r({prop:t,defaultProp:n??!1,onChange:a,caller:_n}),[g,h]=u.useState(null),[y,b]=u.useState(null),x=u.useRef(!1),w=g?!!i||!!g.closest("form"):!0,P={checked:p,disabled:s,setChecked:v,control:g,setControl:h,name:l,form:i,value:f,hasConsumerStoppedPropagationRef:x,required:d,defaultChecked:Wr(n)?!1:n,isFormControl:w,bubbleInput:y,setBubbleInput:b};return c.jsx(dw,{scope:r,...P,children:mw(m)?m(P):o})}var Sf="CheckboxTrigger",Nf=u.forwardRef(({__scopeCheckbox:e,onKeyDown:r,onClick:t,...o},n)=>{const{control:s,value:i,disabled:l,checked:a,required:d,setControl:f,setChecked:m,hasConsumerStoppedPropagationRef:p,isFormControl:v,bubbleInput:g}=dl(Sf,e),h=Re(n,f),y=u.useRef(a);return u.useEffect(()=>{const b=s?.form;if(b){const x=()=>m(y.current);return b.addEventListener("reset",x),()=>b.removeEventListener("reset",x)}},[s,m]),c.jsx(ye.button,{type:"button",role:"checkbox","aria-checked":Wr(a)?"mixed":a,"aria-required":d,"data-state":Tf(a),"data-disabled":l?"":void 0,disabled:l,value:i,...o,ref:h,onKeyDown:pe(r,b=>{b.key==="Enter"&&b.preventDefault()}),onClick:pe(t,b=>{m(x=>Wr(x)?!0:!x),g&&v&&(p.current=b.isPropagationStopped(),p.current||b.stopPropagation())})})});Nf.displayName=Sf;var qf=u.forwardRef((e,r)=>{const{__scopeCheckbox:t,name:o,checked:n,defaultChecked:s,required:i,disabled:l,value:a,onCheckedChange:d,form:f,...m}=e;return c.jsx(fw,{__scopeCheckbox:t,checked:n,defaultChecked:s,disabled:l,required:i,onCheckedChange:d,name:o,form:f,value:a,internal_do_not_use_render:({isFormControl:p})=>c.jsxs(c.Fragment,{children:[c.jsx(Nf,{...m,ref:r,__scopeCheckbox:t}),p&&c.jsx(If,{__scopeCheckbox:t})]})})});qf.displayName=_n;var Ef="CheckboxIndicator",Rf=u.forwardRef((e,r)=>{const{__scopeCheckbox:t,forceMount:o,...n}=e,s=dl(Ef,t);return c.jsx(Qr,{present:o||Wr(s.checked)||s.checked===!0,children:c.jsx(ye.span,{"data-state":Tf(s.checked),"data-disabled":s.disabled?"":void 0,...n,ref:r,style:{pointerEvents:"none",...e.style}})})});Rf.displayName=Ef;var Af="CheckboxBubbleInput",If=u.forwardRef(({__scopeCheckbox:e,...r},t)=>{const{control:o,hasConsumerStoppedPropagationRef:n,checked:s,defaultChecked:i,required:l,disabled:a,name:d,value:f,form:m,bubbleInput:p,setBubbleInput:v}=dl(Af,e),g=Re(t,v),h=Tn(s),y=Sn(o);u.useEffect(()=>{const x=p;if(!x)return;const w=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(w,"checked").set,k=!n.current;if(h!==s&&C){const j=new Event("click",{bubbles:k});x.indeterminate=Wr(s),C.call(x,Wr(s)?!1:s),x.dispatchEvent(j)}},[p,h,s,n]);const b=u.useRef(Wr(s)?!1:s);return c.jsx(ye.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??b.current,required:l,disabled:a,name:d,value:f,form:m,...r,tabIndex:-1,ref:g,style:{...r.style,...y,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});If.displayName=Af;function mw(e){return typeof e=="function"}function Wr(e){return e==="indeterminate"}function Tf(e){return Wr(e)?"indeterminate":e?"checked":"unchecked"}const _f=u.createContext(null);function hw(e){return u.createElement(_f.Provider,{value:e.value},e.children)}function pw(){return u.useContext(_f)}const vw=()=>c.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",className:"checkbox-check h-3 w-3",fill:"none",children:c.jsx("path",{d:"M3.5 8.5L6.5 11.5L12.5 4.5",stroke:"currentColor",strokeWidth:"2.25",strokeLinecap:"round",strokeLinejoin:"round"})}),gw=()=>c.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",className:"checkbox-minus h-3 w-3",fill:"none",children:c.jsx("path",{d:"M4 8H12",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"})}),yo=u.forwardRef((e,r)=>{const{className:t,class:o,sx:n,style:s,children:i,checked:l,disabled:a,name:d,onCheckedChange:f,value:m,...p}=e,v=se(),{sxClassName:g,sxInlineStyle:h}=re(n,v),y=pw(),b=typeof m=="string"?m:void 0,x=!!(y&&b!==void 0),w=l??(x?y?.selectedValues.has(b):void 0),P=a||(x?y?.disabled:!1),C=d??(x?y?.name:void 0);return c.jsx(qf,{ref:r,checked:w,disabled:P,name:C,onCheckedChange:k=>{f?.(k),x&&l===void 0&&y?.toggleValue(b,k===!0)},value:m,className:R("peer inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-[4px] border border-solid border-[color:var(--ldkj-color-input)] bg-[color:var(--ldkj-color-surface)] text-[color:var(--ldkj-color-primary-foreground)] transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)] focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:border-[color:var(--ldkj-color-primary)] data-[state=checked]:bg-[color:var(--ldkj-color-primary)]","data-[state=indeterminate]:border-[color:var(--ldkj-color-primary)] data-[state=indeterminate]:bg-[color:var(--ldkj-color-primary)]",g,t,o),style:D(s,h),...p,children:i??c.jsxs(Rf,{className:R("inline-flex h-4 w-4 items-center justify-center text-current","[&[data-state=checked]_.checkbox-minus]:hidden","[&[data-state=indeterminate]_.checkbox-check]:hidden"),children:[c.jsx(vw,{}),c.jsx(gw,{})]})})});yo.displayName="Checkbox";var xw=Symbol.for("react.lazy"),un=u[" use ".trim().toString()];function bw(e){return typeof e=="object"&&e!==null&&"then"in e}function Of(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===xw&&"_payload"in e&&bw(e._payload)}function yw(e){const r=ww(e),t=u.forwardRef((o,n)=>{let{children:s,...i}=o;Of(s)&&typeof un=="function"&&(s=un(s._payload));const l=u.Children.toArray(s),a=l.find(Cw);if(a){const d=a.props.children,f=l.map(m=>m===a?u.Children.count(d)>1?u.Children.only(null):u.isValidElement(d)?d.props.children:null:m);return c.jsx(r,{...i,ref:n,children:u.isValidElement(d)?u.cloneElement(d,void 0,f):null})}return c.jsx(r,{...i,ref:n,children:s})});return t.displayName=`${e}.Slot`,t}function ww(e){const r=u.forwardRef((t,o)=>{let{children:n,...s}=t;if(Of(n)&&typeof un=="function"&&(n=un(n._payload)),u.isValidElement(n)){const i=jw(n),l=kw(s,n.props);return n.type!==u.Fragment&&(l.ref=o?Ui(o,i):i),u.cloneElement(n,l)}return u.Children.count(n)>1?u.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var Pw=Symbol("radix.slottable");function Cw(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Pw}function kw(e,r){const t={...r};for(const o in r){const n=e[o],s=r[o];/^on[A-Z]/.test(o)?n&&s?t[o]=(...l)=>{const a=s(...l);return n(...l),a}:n&&(t[o]=n):o==="style"?t[o]={...n,...s}:o==="className"&&(t[o]=[n,s].filter(Boolean).join(" "))}return{...e,...t}}function jw(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning;return t?e.ref:(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}var Sw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],On=Sw.reduce((e,r)=>{const t=yw(`Primitive.${r}`),o=u.forwardRef((n,s)=>{const{asChild:i,...l}=n,a=i?t:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(a,{...l,ref:s})});return o.displayName=`Primitive.${r}`,{...e,[r]:o}},{}),Nw="Label",Mf=u.forwardRef((e,r)=>c.jsx(On.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));Mf.displayName=Nw;var vi=Mf;function qw(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function Ew(e){return e==="center"?"center":e==="right"?"flex-end":"flex-start"}const Mn=u.forwardRef((e,r)=>{const{children:t,className:o,class:n,colon:s,containerClass:i,containerClassName:l,containerStyle:a,containerSx:d,label:f,labelAlign:m="left",labelWidth:p,position:v="left",required:g=!1,sx:h,style:y,...b}=e,x=se(),{sxClassName:w,sxInlineStyle:P}=re(h,x),{sxClassName:C,sxInlineStyle:k}=re(d,x),j=D({width:qw(p),justifyContent:Ew(m)},y,P),S=R("inline-flex gap-1 text-sm font-medium leading-5 text-[color:var(--ldkj-color-foreground)]","peer-disabled:cursor-not-allowed peer-disabled:opacity-70",w,o,n);return f===void 0?c.jsx(vi,{ref:r,className:S,style:j,...b,children:t}):c.jsxs("div",{className:R("flex w-fit",v==="top"?"flex-col items-start gap-1.5":"flex-row items-center gap-2",C,l,i),style:D(a,k),children:[c.jsxs(vi,{ref:r,className:S,style:j,...b,children:[g?c.jsx("span",{className:"font-serif text-[color:var(--ldkj-color-danger)]",children:"*"}):null,c.jsx("span",{children:f}),s===!0?":":s??null]}),t]})});Mn.displayName="Label";const sc={xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4"};function Rw(e){return e===void 0?{className:sc.md}:e==="xs"||e==="sm"||e==="md"||e==="lg"?{className:sc[e]}:{style:{gap:typeof e=="number"?`${e}px`:e}}}function Aw(e,r){if(e.type==="single"){const t=e.value??r[0];return t===void 0?[]:[t]}return e.value??r}function Iw(e){return e.type==="single"?e.defaultValue===void 0?[]:[e.defaultValue]:e.defaultValue??[]}function Lf(e){const{className:r,class:t,children:o,direction:n="vertical",disabled:s=!1,gap:i="md",name:l,options:a,sx:d,style:f,type:m,value:p,defaultValue:v,onChange:g,...h}=e,y=se(),{sxClassName:b,sxInlineStyle:x}=re(d,y),w=Rw(i),[P,C]=u.useState(()=>Iw(e)),k=Aw(e,P),j=new Set(k);function S(q){if(e.value===void 0&&C(q),e.type==="single"){e.onChange?.(q[0]);return}e.onChange?.(q)}function N(q,E){if(e.type==="single"){S(E?[q]:[]);return}const I=new Set(k);E?I.add(q):I.delete(q),S(Array.from(I))}const A=u.useMemo(()=>({disabled:s,name:l,selectedValues:j,toggleValue:N}),[s,l,j]);return c.jsx("div",{role:"group",className:R("flex",n==="horizontal"?"flex-row flex-wrap":"flex-col",w.className,b,r,t),style:D(f,w.style,x),...h,children:c.jsxs(hw,{value:A,children:[a?.map(q=>{const E=s||q.disabled,I=j.has(q.value);return c.jsxs(Mn,{className:R("inline-flex items-start gap-2 text-sm leading-5 text-[color:var(--ldkj-color-foreground)]",E&&"cursor-not-allowed text-[color:var(--ldkj-color-muted-foreground)]",!E&&"cursor-pointer",q.className),children:[c.jsx(yo,{...q.checkboxProps,name:l,value:q.value,checked:I,disabled:E,onCheckedChange:_=>N(q.value,_===!0)}),c.jsxs("span",{className:"grid gap-0.5",children:[c.jsx("span",{children:q.label}),q.description?c.jsx("span",{className:"text-xs text-[color:var(--ldkj-color-muted-foreground)]",children:q.description}):null]})]},q.value)}),o]})})}Lf.displayName="CheckboxGroup";function Ln(e,r){const t=o=>c.jsx(c.Fragment,{children:o.children});return t.displayName=e,Object.defineProperty(t,"__ldkjInputSlot",{value:r}),t}const Tw=Ln("Input.Prefix","prefix"),_w=Ln("Input.Suffix","suffix"),Ow=Ln("Input.AddonBefore","addonBefore"),Mw=Ln("Input.AddonAfter","addonAfter"),fl=e=>c.jsx(c.Fragment,{children:e.children});fl.displayName="Input.Addon";Object.defineProperty(fl,"__ldkjInputSlot",{value:"addon"});function Lw(e){if(!u.isValidElement(e))return;const t=e.type.__ldkjInputSlot;return t==="addon"?(e.props.position??"before")==="after"?"addonAfter":"addonBefore":t}function Dw(e,r){const t={addonAfter:r.addonAfter,addonBefore:r.addonBefore,prefix:r.prefix,suffix:r.suffix};return u.Children.forEach(e,o=>{const n=Lw(o);!n||!u.isValidElement(o)||(t[n]=o.props.children)}),t}function Fw(e){return Object.values(e).some(r=>r!=null)}const Df=u.forwardRef((e,r)=>{const{addonAfter:t,addonBefore:o,children:n,className:s,class:i,prefix:l,suffix:a,sx:d,style:f,type:m="text",...p}=e,v=se(),{sxClassName:g,sxInlineStyle:h}=re(d,v),y=Dw(n,{addonAfter:t,addonBefore:o,prefix:l,suffix:a}),b=Fw(y),x=R(b?"min-w-0 flex-1 appearance-none border-0 bg-transparent px-0 py-0 text-sm text-[color:var(--ldkj-color-foreground)] outline-none file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-[color:var(--ldkj-color-foreground)] placeholder:text-[color:var(--ldkj-color-muted-foreground)] focus-visible:outline-none disabled:cursor-not-allowed disabled:text-[color:var(--ldkj-color-muted-foreground)]":"flex h-9 w-full appearance-none rounded-md border border-solid border-[color:var(--ldkj-color-input)] bg-[color:var(--ldkj-color-surface)] px-3 py-2 text-sm text-[color:var(--ldkj-color-foreground)] shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-[color:var(--ldkj-color-foreground)] placeholder:text-[color:var(--ldkj-color-muted-foreground)] focus-visible:border-[color:var(--ldkj-color-primary)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)] disabled:cursor-not-allowed disabled:bg-[color:var(--ldkj-color-surface-muted)] disabled:text-[color:var(--ldkj-color-muted-foreground)] disabled:opacity-70",!b&&g,!b&&s,!b&&i),w=c.jsx("input",{ref:r,type:m,className:x,style:b?void 0:D(f,h),...p});if(!b)return w;const P=!!p.disabled;return c.jsxs("span",{className:R("inline-flex h-9 w-full items-stretch rounded-md text-sm shadow-sm transition-colors",P&&"opacity-70",g,s,i),style:D(f,h),children:[y.addonBefore?c.jsx("span",{className:"inline-flex shrink-0 items-center rounded-l-md border border-r-0 border-solid border-[color:var(--ldkj-color-input)] bg-[color:var(--ldkj-color-surface-muted)] px-3 text-[color:var(--ldkj-color-muted-foreground)]",children:y.addonBefore}):null,c.jsxs("span",{className:R("inline-flex min-w-0 flex-1 items-center gap-2 border border-solid border-[color:var(--ldkj-color-input)] bg-[color:var(--ldkj-color-surface)] px-3 text-[color:var(--ldkj-color-foreground)] transition-colors",y.addonBefore?"rounded-l-none":"rounded-l-md",y.addonAfter?"rounded-r-none":"rounded-r-md","focus-within:border-[color:var(--ldkj-color-primary)] focus-within:ring-2 focus-within:ring-[color:var(--ldkj-color-ring)]",P&&"bg-[color:var(--ldkj-color-surface-muted)] text-[color:var(--ldkj-color-muted-foreground)]"),children:[y.prefix?c.jsx("span",{className:"inline-flex shrink-0 items-center text-[color:var(--ldkj-color-muted-foreground)]",children:y.prefix}):null,w,y.suffix?c.jsx("span",{className:"inline-flex shrink-0 items-center text-[color:var(--ldkj-color-muted-foreground)]",children:y.suffix}):null]}),y.addonAfter?c.jsx("span",{className:"inline-flex shrink-0 items-center rounded-r-md border border-l-0 border-solid border-[color:var(--ldkj-color-input)] bg-[color:var(--ldkj-color-surface-muted)] px-3 text-[color:var(--ldkj-color-muted-foreground)]",children:y.addonAfter}):null]})});Df.displayName="Input";const ml=Object.assign(Df,{Addon:fl,AddonAfter:Mw,AddonBefore:Ow,Prefix:Tw,Suffix:_w});function at(e){if(e.trim()==="")return null;const r=Number(e);return Number.isFinite(r)?r:null}function ic(e){if(!Number.isFinite(e))return 0;const[,r=""]=String(e).split(".");return r.length}function Bw(e,r,t){if(!Number.isFinite(t)||!t||t<=0)return e;const o=Number.isFinite(r)?r??0:0,n=Math.max(ic(o),ic(t)),s=o+Math.round((e-o)/t)*t;return Number(s.toFixed(Math.min(n+2,12)))}function $w(e,r){return Number.isFinite(r)?e.toFixed(Math.max(0,Math.floor(r??0))):String(e)}function Vw(e,r){const t=at(e);if(t===null)return{value:null,valueAsString:""};if(!r.clampOnBlur)return{value:t,valueAsString:e};let o=t;Number.isFinite(r.min)&&(o=Math.max(r.min??o,o)),Number.isFinite(r.max)&&(o=Math.min(r.max??o,o)),o=Bw(o,r.min,r.step),Number.isFinite(r.min)&&(o=Math.max(r.min??o,o)),Number.isFinite(r.max)&&(o=Math.min(r.max??o,o));const n=$w(o,r.precision);return{value:o,valueAsString:n}}function ct(e){return e==null?"":String(e)}function lc(e){return!e.disabled&&!e.readOnly}function Ff(e={}){const{clampOnBlur:r=!1,defaultValue:t="",max:o,min:n,onValueChange:s,onValueCommit:i,precision:l,step:a,value:d}=e,f=d!==void 0,[m,p]=u.useState(()=>ct(t)),v=f?ct(d):m,g=u.useMemo(()=>at(v),[v]),h=u.useCallback(w=>{f||p(w)},[f]),y=u.useCallback(w=>{const P=ct(w);h(P),s?.(at(P),{reason:"set",valueAsString:P})},[s,h]),b=u.useCallback((w=v)=>{const P=ct(w),C=Vw(P,{clampOnBlur:r,max:o,min:n,precision:l,step:a}),k=r?C.valueAsString:P,j=r?C.value:at(P);return h(k),{value:j,valueAsString:k}},[r,o,n,l,a,h,v]),x=u.useCallback((w={})=>{const{disabled:P,onBlur:C,onChange:k,onKeyDown:j,readOnly:S,...N}=w;return{...N,disabled:P,inputMode:"decimal",max:o,min:n,readOnly:S,step:a,type:"number",value:v,onBlur:A=>{if(lc({disabled:P,readOnly:S})){const q=b(A.currentTarget.value);r&&(A.currentTarget.value=q.valueAsString,s?.(q.value,{event:A,reason:"commit",valueAsString:q.valueAsString})),i?.(q.value,{event:A,reason:"commit",valueAsString:q.valueAsString})}C?.(A)},onChange:A=>{k?.(A),h(A.currentTarget.value),s?.(at(A.currentTarget.value),{event:A,reason:"input",valueAsString:A.currentTarget.value})},onKeyDown:A=>{if(j?.(A),A.key==="Enter"&&!A.defaultPrevented&&lc({disabled:P,readOnly:S})){const q=b(A.currentTarget.value);r&&(A.currentTarget.value=q.valueAsString,s?.(q.value,{event:A,reason:"commit",valueAsString:q.valueAsString})),i?.(q.value,{event:A,reason:"commit",valueAsString:q.valueAsString})}}}},[r,b,o,n,s,i,l,a,h,v]);return{commitValue:b,getInputProps:x,numberValue:g,setValue:y,value:v}}function zw(e={}){const{defaultValue:r="",onValueChange:t,...o}=e,[n,s]=u.useState(()=>ct(r)),[i,l]=u.useState(()=>at(ct(r))),a=u.useCallback(m=>{const p=ct(m);s(p),l(at(p))},[]),d=u.useCallback(m=>{s(m.currentTarget.value)},[]),f=u.useCallback((m,p)=>{l(m),p.reason==="commit"&&s(p.valueAsString),t?.(m,p)},[t]);return{inputProps:{...o,onChange:d,onValueChange:f,value:n},numberValue:i,setValue:a,value:n}}const Bf=u.forwardRef((e,r)=>{const{clampOnBlur:t=!1,defaultValue:o,disabled:n,max:s,min:i,onBlur:l,onChange:a,onKeyDown:d,onValueChange:f,onValueCommit:m,precision:p,readOnly:v,step:g,value:h,...y}=e,b=Ff({clampOnBlur:t,defaultValue:o,max:s,min:i,onValueChange:f,onValueCommit:m,precision:p,step:g,value:h});return c.jsx(ml,{...y,...b.getInputProps({disabled:n,onBlur:l,onChange:a,onKeyDown:d,readOnly:v}),ref:r})});Bf.displayName="InputNumber";const Hw={numeric:/^[0-9]$/,alphabetic:/^[A-Za-z]$/,alphanumeric:/^[A-Za-z0-9]$/},Uw={numeric:"[0-9]*",alphabetic:"[A-Za-z]*",alphanumeric:"[A-Za-z0-9]*"},Ww={sm:"h-8 w-8 text-sm",md:"h-10 w-10 text-base",lg:"h-12 w-12 text-lg"},Kw={outline:"rounded-md border border-[color:var(--ldkj-color-input)] bg-[color:var(--ldkj-color-surface)] text-[color:var(--ldkj-color-foreground)]",filled:"rounded-md border border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-surface-muted)] text-[color:var(--ldkj-color-foreground)]",underline:"border-0 border-b border-[color:var(--ldkj-color-input)] bg-transparent text-[color:var(--ldkj-color-foreground)]"};function Gw(e){return Number.isFinite(e)?Math.max(1,Math.floor(e??6)):6}function Yw(e,r){const t=r?typeof r=="string"?new RegExp(r):r:Hw[e];return o=>(t.lastIndex=0,t.test(o))}function Xw(e,r,t){return Array.from(e).filter(t).slice(0,r).join("")}function Jw(e,r){return typeof r=="string"?r:r instanceof RegExp?r.source:Uw[e]}const $f=u.forwardRef((e,r)=>{const{value:t,defaultValue:o="",length:n=6,disabled:s,readOnly:i,className:l,class:a,inputClassName:d,slotClassName:f,onChange:m,onComplete:p,type:v="numeric",pattern:g,pasteTransformer:h,mask:y=!1,placeholder:b="",autoFocus:x=!0,oneTimeCode:w=!0,size:P="md",variant:C="outline",invalid:k=!1,separator:j,style:S,sx:N,inputMode:A,autoComplete:q,onBlur:E,onFocus:I,onKeyDown:_,onPaste:O,"aria-label":T,...$}=e,M=se(),{sxClassName:W,sxInlineStyle:F}=re(N,M),X=Gw(n),ue=u.useMemo(()=>Yw(v,g),[g,v]),ee=u.useCallback(te=>Xw(te,X,ue),[X,ue]),Q=t!==void 0,[K,J]=u.useState(()=>ee(o)),B=ee(Q?t??"":K),G=u.useRef(null),H=u.useRef(B),U=u.useRef(null),[Y,Z]=u.useState(!1),ae=Array.from(B),fe=Math.min(ae.length,X-1),ve=Array.from(b)[0]??"",ge=typeof y=="string"?y:"•";u.useImperativeHandle(r,()=>G.current),u.useEffect(()=>{H.current=B},[B]),u.useEffect(()=>{Q||J(te=>ee(te))},[Q,ee]);const ie=u.useCallback(()=>{const te=G.current;if(!te)return;const me=te.value.length;try{te.setSelectionRange(me,me)}catch{}},[]),we=u.useCallback(te=>{const me=ee(te),ke=H.current;H.current=me,Q||J(me),me!==ke&&m?.(me),me.length===X?U.current!==me&&(U.current=me,p?.(me)):U.current=null,window.requestAnimationFrame(ie)},[Q,ie,ee,m,p,X]),Ne=u.useCallback(()=>{s||(G.current?.focus(),window.requestAnimationFrame(ie))},[s,ie]);u.useEffect(()=>{if(!x||s)return;const te=G.current,me=te?.ownerDocument;!te||!me||me.activeElement!==me.body||(te.focus(),ie())},[x,s,ie]);const Me=te=>{we(te.target.value)},oe=te=>{Z(!0),I?.(te),window.requestAnimationFrame(ie)},Pe=te=>{Z(!1),E?.(te)},Ce=te=>{if(_?.(te),!te.defaultPrevented){if(te.key==="Backspace"||te.key==="Delete"){te.preventDefault(),!i&&H.current.length>0&&we(H.current.slice(0,-1));return}(te.key==="ArrowLeft"||te.key==="ArrowRight"||te.key==="Home"||te.key==="End")&&(te.preventDefault(),ie())}},de=te=>{if(O?.(te),te.defaultPrevented||i)return;te.preventDefault();const me=te.clipboardData.getData("text"),ke=h?h(me):me;we(`${H.current}${ke}`)},_e=te=>{s||(te.preventDefault(),Ne())},he=te=>te>=X-1?null:typeof j=="function"?j(te):j;return c.jsx("div",{className:R("inline-flex flex-col gap-2",W,l,a),style:D(S,F),"data-disabled":s?"":void 0,"data-readonly":i?"":void 0,"data-complete":B.length===X?"":void 0,children:c.jsxs("div",{className:"relative inline-flex items-center gap-2",onMouseDown:_e,children:[c.jsx("input",{...$,ref:G,type:"text",value:B,disabled:s,readOnly:i,maxLength:X,inputMode:A??(v==="numeric"?"numeric":"text"),autoComplete:w?"one-time-code":q,pattern:Jw(v,g),"aria-label":T??"一次性验证码","aria-invalid":k||$["aria-invalid"]?!0:void 0,className:R("absolute inset-0 z-10 h-full w-full cursor-text border-0 bg-transparent p-0 text-transparent opacity-0 outline-none","disabled:cursor-not-allowed",d),onChange:Me,onFocus:oe,onBlur:Pe,onKeyDown:Ce,onPaste:de}),Array.from({length:X}).map((te,me)=>{const ke=ae[me]??"",Te=ke.length>0,er=Y&&!s&&me===fe,Ke=Te?y?ge:ke:ve,ur=he(me);return c.jsxs(u.Fragment,{children:[c.jsx("span",{"aria-hidden":"true",className:R("inline-flex shrink-0 select-none items-center justify-center font-semibold transition-colors",Ww[P],Kw[C],!Te&&"font-normal text-[color:var(--ldkj-color-muted-foreground)]",er&&"border-[color:var(--ldkj-color-primary)] ring-2 ring-[color:var(--ldkj-color-ring)]",k&&"border-[color:var(--ldkj-color-danger)] text-[color:var(--ldkj-color-danger)]",er&&k&&"ring-[color:var(--ldkj-color-danger)]",s&&"cursor-not-allowed bg-[color:var(--ldkj-color-surface-muted)] text-[color:var(--ldkj-color-muted-foreground)] opacity-70",i&&!s&&"bg-[color:var(--ldkj-color-surface-muted)]",f),"data-active":er?"":void 0,"data-filled":Te?"":void 0,children:Ke}),ur?c.jsx("span",{"aria-hidden":"true",className:"select-none text-sm text-[color:var(--ldkj-color-muted-foreground)]",children:ur}):null]},me)})]})})});$f.displayName="InputOPT";function ac(e){return e==null?"":String(e)}function Qw(e){return typeof e=="string"||typeof e=="number"?String(e):""}function Zw(e,r){const t=r.trim().toLowerCase();return t?[e.value,e.textValue,Qw(e.label),...e.keywords??[]].filter(Boolean).join(" ").toLowerCase().includes(t):!0}function cc(e,r,t){if(!e.length)return-1;let o=r;for(let n=0;n<e.length;n+=1)if(o=(o+t+e.length)%e.length,!e[o]?.disabled)return o;return-1}function eP(e,r){const t=window.HTMLInputElement.prototype;Object.getOwnPropertyDescriptor(t,"value")?.set?.call(e,r),e.dispatchEvent(new Event("input",{bubbles:!0}))}function rP(e,r){if(e){if(typeof e=="function"){e(r);return}e.current=r}}function tP(...e){return u.useCallback(r=>{for(const t of e)rP(t,r)},e)}const Vf=u.forwardRef((e,r)=>{const{autoComplete:t="off",class:o,className:n,defaultValue:s,disabled:i,dropdownClassName:l,dropdownStyle:a,dropdownSx:d,emptyText:f="暂无匹配结果",filterOption:m=Zw,onBlur:p,onChange:v,onFocus:g,onKeyDown:h,onOptionSelect:y,onValueChange:b,openOnFocus:x=!0,optionClassName:w,optionStyle:P,optionSx:C,options:k=[],readOnly:j,renderOption:S,rootClassName:N,rootStyle:A,rootSx:q,value:E,...I}=e,_=se(),O=u.useRef(null),T=u.useRef(null),$=u.useRef(null),M=u.useId(),[W,F]=u.useState(()=>ac(s)),[X,ue]=u.useState(!1),[ee,Q]=u.useState(-1),K=E!==void 0,J=K?ac(E):W,B=!i&&!j,G=re(q,_),H=re(d,_),U=re(C,_),Y=tP(O,r),Z=u.useMemo(()=>m===!1?k:k.filter(oe=>m(oe,J)),[m,J,k]),ae=X&&B&&(Z.length>0||f!==null),fe=ee>=0?Z[ee]:void 0,ve=ae&&fe?`${M}-option-${ee}`:void 0;u.useEffect(()=>{if(!X)return;const oe=Pe=>{const Ce=Pe.target;Ce instanceof Node&&T.current&&!T.current.contains(Ce)&&(ue(!1),Q(-1))};return document.addEventListener("pointerdown",oe),()=>{document.removeEventListener("pointerdown",oe)}},[X]),u.useEffect(()=>{ee>=Z.length&&Q(-1)},[ee,Z.length]);const ge=(oe,Pe)=>{oe.disabled||($.current=oe,K||F(oe.value),O.current&&eP(O.current,oe.value),ue(!1),Q(-1),y?.(oe,Pe),O.current?.focus(),window.setTimeout(()=>{$.current===oe&&($.current=null)},0))},ie=oe=>{const Pe=oe.currentTarget.value,Ce=$.current;$.current=null,K||F(Pe),B&&ue(!Ce),Q(-1),v?.(oe),b?.(Pe,{event:oe,option:Ce??void 0,reason:Ce?"select":"input"})},we=oe=>{B&&x&&ue(!0),g?.(oe)},Ne=oe=>{const Pe=oe.relatedTarget;if(Pe instanceof Node&&T.current?.contains(Pe)){p?.(oe);return}ue(!1),Q(-1),p?.(oe)},Me=oe=>{if(!B){h?.(oe);return}oe.key==="ArrowDown"?(oe.preventDefault(),ue(!0),Q(Pe=>cc(Z,Pe<0?-1:Pe,1))):oe.key==="ArrowUp"?(oe.preventDefault(),ue(!0),Q(Pe=>cc(Z,Pe<0?Z.length:Pe,-1))):oe.key==="Enter"&&X&&fe?(oe.preventDefault(),ge(fe,oe)):(oe.key==="Escape"||oe.key==="Tab")&&(ue(!1),Q(-1)),h?.(oe)};return c.jsxs("div",{ref:T,className:R("relative w-full",G.sxClassName,N),style:D(A,G.sxInlineStyle),children:[c.jsx(ml,{...I,ref:Y,autoComplete:t,class:o,className:n,disabled:i,readOnly:j,role:"combobox","aria-autocomplete":"list","aria-controls":ae?M:void 0,"aria-expanded":ae,"aria-activedescendant":ve,value:J,onBlur:Ne,onChange:ie,onFocus:we,onKeyDown:Me}),ae?c.jsx("div",{id:M,role:"listbox",className:R("absolute left-0 top-full z-[var(--ldkj-z-dropdown)] mt-1 max-h-64 w-full overflow-y-auto rounded-md border border-solid border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-surface)] p-1 text-[color:var(--ldkj-color-surface-foreground)] shadow-[var(--ldkj-shadow-popover)]","animate-in fade-in-0 zoom-in-95",H.sxClassName,l),style:D(a,H.sxInlineStyle),children:Z.length>0?Z.map((oe,Pe)=>{const Ce=ee===Pe,de=oe.value===J,_e=!!oe.disabled;return c.jsx("div",{id:`${M}-option-${Pe}`,role:"option","aria-disabled":_e||void 0,"aria-selected":de,className:R("grid cursor-default select-none gap-0.5 rounded-sm px-2 py-1.5 text-sm leading-5 outline-none transition-colors",Ce&&"bg-[color:var(--ldkj-color-accent)] text-[color:var(--ldkj-color-primary)]",de&&!Ce&&"bg-[color:var(--ldkj-color-surface-muted)] text-[color:var(--ldkj-color-foreground)]",_e?"pointer-events-none text-[color:var(--ldkj-color-muted-foreground)] opacity-70":"text-[color:var(--ldkj-color-foreground)]",U.sxClassName,w),style:D(P,U.sxInlineStyle),onMouseDown:he=>he.preventDefault(),onMouseEnter:()=>{_e||Q(Pe)},onClick:he=>ge(oe,he),children:S?S(oe,{active:Ce,disabled:_e,inputValue:J,selected:de}):c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"truncate font-medium",children:oe.label}),oe.description?c.jsx("span",{className:"truncate text-xs text-[color:var(--ldkj-color-muted-foreground)]",children:oe.description}):null]})},`${oe.value}-${Pe}`)}):c.jsx("div",{className:"px-2 py-2 text-sm text-[color:var(--ldkj-color-muted-foreground)]",children:f})}):null]})});Vf.displayName="AutoComplete";function zf(e){const r=e+"CollectionProvider",[t,o]=br(r),[n,s]=t(r,{collectionRef:{current:null},itemMap:new Map}),i=h=>{const{scope:y,children:b}=h,x=Oe.useRef(null),w=Oe.useRef(new Map).current;return c.jsx(n,{scope:y,itemMap:w,collectionRef:x,children:b})};i.displayName=r;const l=e+"CollectionSlot",a=io(l),d=Oe.forwardRef((h,y)=>{const{scope:b,children:x}=h,w=s(l,b),P=Re(y,w.collectionRef);return c.jsx(a,{ref:P,children:x})});d.displayName=l;const f=e+"CollectionItemSlot",m="data-radix-collection-item",p=io(f),v=Oe.forwardRef((h,y)=>{const{scope:b,children:x,...w}=h,P=Oe.useRef(null),C=Re(y,P),k=s(f,b);return Oe.useEffect(()=>(k.itemMap.set(P,{ref:P,...w}),()=>{k.itemMap.delete(P)})),c.jsx(p,{[m]:"",ref:C,children:x})});v.displayName=f;function g(h){const y=s(e+"CollectionConsumer",h);return Oe.useCallback(()=>{const x=y.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${m}]`));return Array.from(y.itemMap.values()).sort((k,j)=>w.indexOf(k.ref.current)-w.indexOf(j.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:i,Slot:d,ItemSlot:v},g,o]}var oP=u.createContext(void 0);function Dn(e){const r=u.useContext(oP);return e||r||"ltr"}var vs="rovingFocusGroup.onEntryFocus",nP={bubbles:!1,cancelable:!0},wo="RovingFocusGroup",[gi,Hf,sP]=zf(wo),[iP,Fn]=br(wo,[sP]),[lP,aP]=iP(wo),Uf=u.forwardRef((e,r)=>c.jsx(gi.Provider,{scope:e.__scopeRovingFocusGroup,children:c.jsx(gi.Slot,{scope:e.__scopeRovingFocusGroup,children:c.jsx(cP,{...e,ref:r})})}));Uf.displayName=wo;var cP=u.forwardRef((e,r)=>{const{__scopeRovingFocusGroup:t,orientation:o,loop:n=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:a,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...m}=e,p=u.useRef(null),v=Re(r,p),g=Dn(s),[h,y]=_r({prop:i,defaultProp:l??null,onChange:a,caller:wo}),[b,x]=u.useState(!1),w=Ar(d),P=Hf(t),C=u.useRef(!1),[k,j]=u.useState(0);return u.useEffect(()=>{const S=p.current;if(S)return S.addEventListener(vs,w),()=>S.removeEventListener(vs,w)},[w]),c.jsx(lP,{scope:t,orientation:o,dir:g,loop:n,currentTabStopId:h,onItemFocus:u.useCallback(S=>y(S),[y]),onItemShiftTab:u.useCallback(()=>x(!0),[]),onFocusableItemAdd:u.useCallback(()=>j(S=>S+1),[]),onFocusableItemRemove:u.useCallback(()=>j(S=>S-1),[]),children:c.jsx(ye.div,{tabIndex:b||k===0?-1:0,"data-orientation":o,...m,ref:v,style:{outline:"none",...e.style},onMouseDown:pe(e.onMouseDown,()=>{C.current=!0}),onFocus:pe(e.onFocus,S=>{const N=!C.current;if(S.target===S.currentTarget&&N&&!b){const A=new CustomEvent(vs,nP);if(S.currentTarget.dispatchEvent(A),!A.defaultPrevented){const q=P().filter(T=>T.focusable),E=q.find(T=>T.active),I=q.find(T=>T.id===h),O=[E,I,...q].filter(Boolean).map(T=>T.ref.current);Gf(O,f)}}C.current=!1}),onBlur:pe(e.onBlur,()=>x(!1))})})}),Wf="RovingFocusGroupItem",Kf=u.forwardRef((e,r)=>{const{__scopeRovingFocusGroup:t,focusable:o=!0,active:n=!1,tabStopId:s,children:i,...l}=e,a=vt(),d=s||a,f=aP(Wf,t),m=f.currentTabStopId===d,p=Hf(t),{onFocusableItemAdd:v,onFocusableItemRemove:g,currentTabStopId:h}=f;return u.useEffect(()=>{if(o)return v(),()=>g()},[o,v,g]),c.jsx(gi.ItemSlot,{scope:t,id:d,focusable:o,active:n,children:c.jsx(ye.span,{tabIndex:m?0:-1,"data-orientation":f.orientation,...l,ref:r,onMouseDown:pe(e.onMouseDown,y=>{o?f.onItemFocus(d):y.preventDefault()}),onFocus:pe(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:pe(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){f.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const b=fP(y,f.orientation,f.dir);if(b!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let w=p().filter(P=>P.focusable).map(P=>P.ref.current);if(b==="last")w.reverse();else if(b==="prev"||b==="next"){b==="prev"&&w.reverse();const P=w.indexOf(y.currentTarget);w=f.loop?mP(w,P+1):w.slice(P+1)}setTimeout(()=>Gf(w))}}),children:typeof i=="function"?i({isCurrentTabStop:m,hasTabStop:h!=null}):i})})});Kf.displayName=Wf;var uP={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function dP(e,r){return r!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function fP(e,r,t){const o=dP(e.key,t);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return uP[o]}function Gf(e,r=!1){const t=document.activeElement;for(const o of e)if(o===t||(o.focus({preventScroll:r}),document.activeElement!==t))return}function mP(e,r){return e.map((t,o)=>e[(r+o)%e.length])}var Yf=Uf,Xf=Kf,hl="Radio",[hP,Jf]=br(hl),[pP,vP]=hP(hl),Qf=u.forwardRef((e,r)=>{const{__scopeRadio:t,name:o,checked:n=!1,required:s,disabled:i,value:l="on",onCheck:a,form:d,...f}=e,[m,p]=u.useState(null),v=Re(r,y=>p(y)),g=u.useRef(!1),h=m?d||!!m.closest("form"):!0;return c.jsxs(pP,{scope:t,checked:n,disabled:i,children:[c.jsx(ye.button,{type:"button",role:"radio","aria-checked":n,"data-state":tm(n),"data-disabled":i?"":void 0,disabled:i,value:l,...f,ref:v,onClick:pe(e.onClick,y=>{n||a?.(),h&&(g.current=y.isPropagationStopped(),g.current||y.stopPropagation())})}),h&&c.jsx(rm,{control:m,bubbles:!g.current,name:o,value:l,checked:n,required:s,disabled:i,form:d,style:{transform:"translateX(-100%)"}})]})});Qf.displayName=hl;var Zf="RadioIndicator",em=u.forwardRef((e,r)=>{const{__scopeRadio:t,forceMount:o,...n}=e,s=vP(Zf,t);return c.jsx(Qr,{present:o||s.checked,children:c.jsx(ye.span,{"data-state":tm(s.checked),"data-disabled":s.disabled?"":void 0,...n,ref:r})})});em.displayName=Zf;var gP="RadioBubbleInput",rm=u.forwardRef(({__scopeRadio:e,control:r,checked:t,bubbles:o=!0,...n},s)=>{const i=u.useRef(null),l=Re(i,s),a=Tn(t),d=Sn(r);return u.useEffect(()=>{const f=i.current;if(!f)return;const m=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(m,"checked").set;if(a!==t&&v){const g=new Event("click",{bubbles:o});v.call(f,t),f.dispatchEvent(g)}},[a,t,o]),c.jsx(ye.input,{type:"radio","aria-hidden":!0,defaultChecked:t,...n,tabIndex:-1,ref:l,style:{...n.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});rm.displayName=gP;function tm(e){return e?"checked":"unchecked"}var xP=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Bn="RadioGroup",[bP]=br(Bn,[Fn,Jf]),om=Fn(),nm=Jf(),[yP,wP]=bP(Bn),sm=u.forwardRef((e,r)=>{const{__scopeRadioGroup:t,name:o,defaultValue:n,value:s,required:i=!1,disabled:l=!1,orientation:a,dir:d,loop:f=!0,onValueChange:m,...p}=e,v=om(t),g=Dn(d),[h,y]=_r({prop:s,defaultProp:n??null,onChange:m,caller:Bn});return c.jsx(yP,{scope:t,name:o,required:i,disabled:l,value:h,onValueChange:y,children:c.jsx(Yf,{asChild:!0,...v,orientation:a,dir:g,loop:f,children:c.jsx(ye.div,{role:"radiogroup","aria-required":i,"aria-orientation":a,"data-disabled":l?"":void 0,dir:g,...p,ref:r})})})});sm.displayName=Bn;var im="RadioGroupItem",lm=u.forwardRef((e,r)=>{const{__scopeRadioGroup:t,disabled:o,...n}=e,s=wP(im,t),i=s.disabled||o,l=om(t),a=nm(t),d=u.useRef(null),f=Re(r,d),m=s.value===n.value,p=u.useRef(!1);return u.useEffect(()=>{const v=h=>{xP.includes(h.key)&&(p.current=!0)},g=()=>p.current=!1;return document.addEventListener("keydown",v),document.addEventListener("keyup",g),()=>{document.removeEventListener("keydown",v),document.removeEventListener("keyup",g)}},[]),c.jsx(Xf,{asChild:!0,...l,focusable:!i,active:m,children:c.jsx(Qf,{disabled:i,required:s.required,checked:m,...a,...n,name:s.name,ref:f,onCheck:()=>s.onValueChange(n.value),onKeyDown:pe(v=>{v.key==="Enter"&&v.preventDefault()}),onFocus:pe(n.onFocus,()=>{p.current&&d.current?.click()})})})});lm.displayName=im;var PP="RadioGroupIndicator",am=u.forwardRef((e,r)=>{const{__scopeRadioGroup:t,...o}=e,n=nm(t);return c.jsx(em,{...n,...o,ref:r})});am.displayName=PP;var CP=sm,kP=lm,jP=am;const pl=u.forwardRef((e,r)=>{const{className:t,class:o,sx:n,style:s,children:i,...l}=e,a=se(),{sxClassName:d,sxInlineStyle:f}=re(n,a);return c.jsx(kP,{ref:r,className:R("inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full border border-solid border-[color:var(--ldkj-color-input)] bg-[color:var(--ldkj-color-surface)] text-[color:var(--ldkj-color-primary)] transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)] focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:border-[color:var(--ldkj-color-primary)]",d,t,o),style:D(s,f),...l,children:i??c.jsx(jP,{className:"inline-flex h-4 w-4 items-center justify-center",children:c.jsx("span",{className:"h-2 w-2 rounded-full bg-current"})})})});pl.displayName="Radio";const uc={xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4"};function SP(e){return e===void 0?{className:uc.md}:e==="xs"||e==="sm"||e==="md"||e==="lg"?{className:uc[e]}:{style:{gap:typeof e=="number"?`${e}px`:e}}}const cm=u.forwardRef((e,r)=>{const{className:t,class:o,children:n,direction:s="vertical",disabled:i=!1,gap:l="md",options:a,sx:d,style:f,...m}=e,p=se(),{sxClassName:v,sxInlineStyle:g}=re(d,p),h=SP(l);return c.jsxs(CP,{ref:r,disabled:i,className:R("flex",s==="horizontal"?"flex-row flex-wrap":"flex-col",h.className,v,t,o),style:D(f,h.style,g),...m,children:[a?.map(y=>{const b=i||y.disabled;return c.jsxs(Mn,{className:R("inline-flex items-start gap-2 text-sm leading-5 text-[color:var(--ldkj-color-foreground)]",b&&"cursor-not-allowed text-[color:var(--ldkj-color-muted-foreground)]",!b&&"cursor-pointer",y.className),children:[c.jsx(pl,{...y.radioProps,value:y.value,disabled:b}),c.jsxs("span",{className:"grid gap-0.5",children:[c.jsx("span",{children:y.label}),y.description?c.jsx("span",{className:"text-xs text-[color:var(--ldkj-color-muted-foreground)]",children:y.description}):null]})]},y.value)}),n]})});cm.displayName="RadioGroup";const NP={sm:"h-8 w-8",md:"h-9 w-9",lg:"h-10 w-10"},qP={sm:"h-4 w-4",md:"h-[18px] w-[18px]",lg:"h-5 w-5"};function gs(e,r){return Number.isFinite(e)?Math.max(0,Math.min(r,Math.round(e))):0}function EP(e){return c.jsx("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",...e,children:c.jsx("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",fill:"currentColor"})})}function RP(e){const{fill:r,size:t,active:o,preview:n,disabled:s,tabIndex:i,onClick:l,onFocus:a,onKeyDown:d,onMouseEnter:f,setRef:m,label:p,character:v}=e,g=v??c.jsx(EP,{className:qP[t]});return c.jsx("button",{ref:m,type:"button",role:"radio","aria-checked":o,"aria-label":p,disabled:s,tabIndex:i,onClick:l,onFocus:a,onKeyDown:d,onMouseEnter:f,className:R("group relative inline-flex items-center justify-center rounded-full outline-none transition","focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)]/35 focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",NP[t],n?"scale-[1.03]":"scale-100"),children:c.jsxs("span",{"aria-hidden":"true",className:R("relative inline-flex items-center justify-center transition-colors",n?"text-[color:var(--ldkj-color-warning)]/70":"text-[color:var(--ldkj-color-warning)]"),children:[c.jsx("span",{className:"text-[color:var(--ldkj-color-border)]",children:g}),c.jsx("span",{className:"absolute inset-0 overflow-hidden",style:{width:`${r}%`},children:c.jsx("span",{className:"text-current",children:g})})]})})}const um=u.forwardRef((e,r)=>{const{value:t,defaultValue:o=0,count:n=5,allowClear:s=!0,borderless:i=!1,disabled:l=!1,readOnly:a=!1,name:d,onChange:f,onHoverChange:m,size:p="md",character:v,className:g,class:h,style:y,sx:b,onMouseLeave:x,onKeyDown:w,...P}=e,C=se(),{sxClassName:k,sxInlineStyle:j}=re(b,C),S=t!==void 0,N=Math.max(1,Math.floor(n||1)),[A,q]=u.useState(()=>gs(o,N)),[E,I]=u.useState(null),_=u.useRef([]),O=gs(S?t??0:A,N),T=E??O,$=u.useId(),M=u.useCallback(ee=>{if(l||a)return;const Q=gs(ee,N),K=s&&Q===O?0:Q;S||q(K),f?.(K)},[s,O,l,S,f,a,N]),W=u.useCallback(()=>{I(null),m?.(null)},[m]),F=u.useCallback(ee=>{_.current[ee]?.focus()},[]),X=ee=>{W(),x?.(ee)},ue=(ee,Q)=>{if(w?.(ee),ee.defaultPrevented||l||a||ee.key!=="ArrowRight"&&ee.key!=="ArrowUp"&&ee.key!=="ArrowLeft"&&ee.key!=="ArrowDown"&&ee.key!=="Home"&&ee.key!=="End")return;if(ee.preventDefault(),ee.key==="Home"){W(),F(0),M(0);return}if(ee.key==="End"){W(),F(N-1),M(N);return}const J=ee.key==="ArrowRight"||ee.key==="ArrowUp"?1:-1,B=Math.max(0,Math.min(N-1,Q+J));W(),F(B),M(B+1)};return c.jsxs("div",{...P,ref:r,role:"radiogroup","aria-label":P["aria-label"]??"评分","aria-readonly":a||void 0,"data-disabled":l?"":void 0,"data-borderless":i?"":void 0,"data-readonly":a?"":void 0,"data-size":p,className:R("inline-flex w-fit items-center gap-1 rounded-full px-2 py-1 transition-colors",i?"border-0 bg-transparent shadow-none":"border border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-background)] shadow-sm",!i&&!l?"hover:border-[color:var(--ldkj-color-input)]":void 0,k,g,h),style:D(y,j),onMouseLeave:X,children:[d?c.jsx("input",{type:"hidden",name:d,value:String(O)}):null,Array.from({length:N}).map((ee,Q)=>{const K=Q+1,J=Math.max(0,Math.min(1,T-Q))*100,B=O===K,G=E!==null;return c.jsx(RP,{fill:J,size:p,active:B,preview:G&&K<=T,disabled:l||a,tabIndex:O===0?Q===0?0:-1:B?0:-1,label:`选择 ${K} 星`,character:v,setRef:H=>{_.current[Q]=H},onClick:()=>{W(),M(K)},onFocus:()=>{l||a||W()},onKeyDown:H=>ue(H,Q),onMouseEnter:()=>{l||a||(I(K),m?.(K))}},`${$}-${K}`)})]})});um.displayName="Rate";function xs(e){const r=se();return re(e,r)}function dc(e){const{value:r,defaultValue:t,onChange:o}=e,[n,s]=u.useState(t),i=r!==void 0,l=i?r:n,a=u.useCallback(d=>{i||s(d),o?.(d)},[i,o]);return[l,a]}function Fo(e){return Array.isArray(e)?e.filter(r=>r!==""):[]}function AP(e){return Array.isArray(e)?e:[]}function Bt(e,r){return e?.[r]??r}function IP(e,r){const t=Bt(r,"value");return typeof e[t]=="string"?e[t]:e.value}function TP(e,r){const t=Bt(r,"label");return e[t]??e.label??e.value??""}function _P(e,r){const t=Bt(r,"children");return AP(e[t])}function OP(e,r){const t=Bt(r,"disabled");return!!(e[t]??e.disabled)}function MP(e,r){const t=Bt(r,"isLeaf"),o=e[t];return typeof o=="boolean"?o:e.isLeaf}function LP(e,r){const t=Bt(r,"loading");return!!(e[t]??e.loading)}function dm(e,r){const t=IP(e,r);if(typeof t!="string"||t.length===0)return null;const o=_P(e,r),n=MP(e,r),s=typeof n=="boolean"?n:o.length===0;return{option:e,value:t,label:TP(e,r),children:o,disabled:OP(e,r),isLeaf:s,loading:LP(e,r)}}function xi(e,r){const t=[];for(const o of e){const n=dm(o,r);n&&t.push(n)}return t}function bs(e,r,t){const o=[],n=[];let s=e;for(const i of r){const l=xi(s,t).find(a=>a.value===i);if(!l)break;o.push(l),n.push(l.label),s=l.children}return{matched:o,labels:n,path:o.map(i=>i.value)}}function DP(e,r,t){const o=[];let n=e;o.push(xi(n,t));for(const s of r){const i=xi(n,t).find(l=>l.value===s);if(!i||(n=i.children,n.length===0))break;o.push(n.map(l=>dm(l,t)).filter(l=>!!l))}return o}function ys(e,r){return r.every((t,o)=>e[o]===t)}function FP(e,r){return c.jsx(c.Fragment,{children:e.map((t,o)=>c.jsxs(u.Fragment,{children:[o>0?c.jsx("span",{className:"mx-1 text-[color:var(--ldkj-color-muted-foreground)]",children:r}):null,c.jsx("span",{className:"min-w-0 truncate",children:t})]},o))})}function BP(e){return c.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",fill:"none",...e,children:c.jsx("path",{d:"M4 6L8 10L12 6",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}function $P(e){return c.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",fill:"none",...e,children:c.jsx("path",{d:"M6 4L10 8L6 12",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}function VP(e){return c.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",fill:"none",...e,children:[c.jsx("path",{d:"M4.5 4.5L11.5 11.5",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),c.jsx("path",{d:"M11.5 4.5L4.5 11.5",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]})}function ws(){return c.jsx("span",{className:"inline-block h-3.5 w-3.5 animate-spin rounded-full border-2 border-[color:var(--ldkj-color-border)] border-t-[color:var(--ldkj-color-primary)]","aria-hidden":"true"})}const fm=u.forwardRef((e,r)=>{const{options:t=[],value:o,defaultValue:n=[],onValueChange:s,onOpenChange:i,open:l,defaultOpen:a=!1,placeholder:d="请选择",separator:f="/",displayRender:m,renderOption:p,fieldNames:v,changeOnSelect:g=!1,expandTrigger:h="click",clearable:y=!1,contentWidth:b="auto",maxPanelHeight:x=336,side:w="bottom",align:P="start",sideOffset:C=8,contentClassName:k,contentClass:j,contentStyle:S,contentSx:N,class:A,sx:q,readOnly:E=!1,required:I,loadData:_,optionClassName:O,optionClass:T,optionStyle:$,optionSx:M,className:W,style:F,disabled:X=!1,name:ue,id:ee,autoFocus:Q,onClick:K,onFocus:J,onBlur:B,onKeyDown:G,...H}=e,[U,Y]=dc({value:o===void 0?void 0:Fo(o),defaultValue:Fo(n),onChange:z=>{}}),[Z,ae]=dc({value:l,defaultValue:a,onChange:i}),[fe,ve]=u.useState(()=>Fo(n)),[ge,ie]=u.useState(null),we=u.useRef(null),Ne=u.useRef(!0),Me=u.useRef(Z),{sxClassName:oe,sxInlineStyle:Pe}=xs(q),{sxClassName:Ce,sxInlineStyle:de}=xs(N),{sxClassName:_e,sxInlineStyle:he}=xs(M);u.useEffect(()=>()=>{Ne.current=!1},[]),u.useEffect(()=>{Z&&!Me.current&&ve(U),Me.current=Z},[Z,U]);const te=u.useMemo(()=>bs(t,U,v),[v,t,U]),me=te.matched.map(z=>z.option),ke=Z?fe:U,Te=u.useMemo(()=>bs(t,ke,v),[ke,v,t]),er=u.useMemo(()=>DP(t,ke,v),[ke,v,t]),Ke=u.useMemo(()=>{const z=Te.matched[Te.matched.length-1];return!Z||!z?!1:z.children.length===0&&!z.isLeaf},[Te.matched,Z]),ur=u.useMemo(()=>te.labels.length>0?m?m(te.labels,me):FP(te.labels,f):d,[m,d,me,te.labels,f]),yr=o!==void 0,He=u.useCallback((z,ce)=>{const xe=Fo(z),je=bs(t,xe,v);yr||Y(xe),s?.(xe,{...ce,path:je.path,options:je.matched.map(Ie=>Ie.option),labels:je.labels})},[v,yr,s,t,Y]),nr=u.useCallback(z=>{X||E||(yr||Y([]),ve([]),s?.([],{reason:"clear",path:[],options:[],labels:[],event:z}))},[X,yr,s,E,Y]),Ge=u.useRef(_);u.useEffect(()=>{Ge.current=_},[_]);const Lr=u.useCallback(async(z,ce,xe)=>{if(X||E||z.disabled)return;const je=z.children.length>0,Ie=je||!z.isLeaf&&!!Ge.current,rr=ce.join("");if(Ie&&!je&&Ge.current){ie(rr);try{await Ge.current([z.option],{option:z.option,path:ce,options:t})}finally{Ne.current&&ie(sr=>sr===rr?null:sr)}}if(g||!Ie){He(ce,{reason:"select",option:z.option,event:xe}),ae(!1);return}ve(ce),ae(!0)},[g,He,X,t,E,ae]),Ye=u.useCallback(z=>{X||(ve(z),ae(!0))},[X,ae]);u.useImperativeHandle(r,()=>({focus:()=>we.current?.focus(),blur:()=>we.current?.blur(),open:()=>Ye(U),close:()=>ae(!1),clear:()=>nr(),getValue:()=>U.slice()}),[nr,Ye,U,ae]);const V=ge!==null;return c.jsxs("div",{className:"relative inline-flex w-full items-stretch",children:[c.jsxs(tf,{open:Z,onOpenChange:ae,children:[c.jsx(il,{asChild:!0,children:c.jsxs("button",{ref:we,id:ee,type:"button",className:R("flex h-9 w-full min-w-0 items-center gap-2 rounded-md border border-solid border-[color:var(--ldkj-color-input)] bg-[color:var(--ldkj-color-background)] px-3 text-left text-sm text-[color:var(--ldkj-color-foreground)] shadow-sm transition-colors","focus-visible:border-[color:var(--ldkj-color-ring)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)]/30","disabled:cursor-not-allowed disabled:bg-[color:var(--ldkj-color-muted)] disabled:text-[color:var(--ldkj-color-muted-foreground)] disabled:opacity-70",E&&"cursor-default",y&&U.length>0&&!X&&!E?"pr-16":"pr-9",oe,W,A),style:D(F,Pe),autoFocus:Q,disabled:X,"aria-haspopup":"dialog","aria-expanded":Z,"aria-disabled":X||void 0,"aria-readonly":E||void 0,onClick:z=>{K?.(z)},onFocus:J,onBlur:B,onKeyDown:z=>{G?.(z),!X&&((z.key==="ArrowDown"||z.key==="Enter")&&(z.preventDefault(),ae(!0)),z.key==="Escape"&&(z.preventDefault(),ae(!1)))},...H,children:[c.jsx("span",{className:R("min-w-0 flex-1 truncate",te.labels.length===0&&"text-[color:var(--ldkj-color-muted-foreground)]"),children:ur}),c.jsx(BP,{className:"absolute right-3 h-4 w-4 text-[color:var(--ldkj-color-muted-foreground)]"})]})}),y&&U.length>0&&!X&&!E?c.jsx("button",{type:"button",className:"absolute right-8 top-1/2 z-10 -translate-y-1/2 rounded p-1 text-[color:var(--ldkj-color-muted-foreground)] transition-colors hover:text-[color:var(--ldkj-color-foreground)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)]/30","aria-label":"清除选择",onMouseDown:z=>z.preventDefault(),onClick:z=>{z.preventDefault(),z.stopPropagation(),nr(z)},children:c.jsx(VP,{className:"h-3.5 w-3.5"})}):null,c.jsx(ll,{side:w,align:P,sideOffset:C,width:b,className:R("overflow-hidden p-0",Ce,k,j),style:D(S,de),role:"dialog","aria-label":"级联选择",children:c.jsxs("div",{className:"flex min-w-[320px] overflow-hidden bg-[color:var(--ldkj-color-popover)] text-[color:var(--ldkj-color-popover-foreground)]",style:{maxHeight:typeof x=="number"?`${x}px`:x},children:[er.map((z,ce)=>{const xe=ke.slice(0,ce);return z.length===0?c.jsx("div",{className:"flex min-w-44 items-center justify-center border-r border-[color:var(--ldkj-color-border)] px-4 py-6 text-sm text-[color:var(--ldkj-color-muted-foreground)] last:border-r-0",children:V&&ce===er.length-1?c.jsxs("span",{className:"inline-flex items-center gap-2",children:[c.jsx(ws,{}),"加载中"]}):"暂无可选项"},`empty-${ce}`):c.jsx("div",{className:R("min-w-48 border-r border-[color:var(--ldkj-color-border)] last:border-r-0",ce>0&&"bg-[color:var(--ldkj-color-muted)]/40"),children:c.jsx("div",{className:"flex max-h-full flex-col gap-1 overflow-y-auto p-1",children:z.map(je=>{const Ie=[...xe,je.value],rr=U.length===Ie.length&&ys(U,Ie),sr=ys(ke,Ie)||ys(Ie,ke),dr=ge===Ie.join("")||je.loading,mr=je.children.length>0||!je.isLeaf&&!!Ge.current&&!dr,es={active:sr,checked:rr,disabled:je.disabled,hasChildren:mr,isLeaf:je.isLeaf,level:ce,loading:dr,path:Ie,selected:rr};return c.jsxs("button",{type:"button",className:R("flex min-h-10 w-full items-center gap-2 rounded-md px-3 py-2 text-left text-sm text-[color:var(--ldkj-color-foreground)] transition-colors","hover:bg-[color:var(--ldkj-color-accent)] hover:text-[color:var(--ldkj-color-accent-foreground)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)]/30",rr&&"bg-[color:var(--ldkj-color-primary)] text-[color:var(--ldkj-color-primary-foreground)]",sr&&!rr&&"bg-[color:var(--ldkj-color-muted)] text-[color:var(--ldkj-color-foreground)]",je.disabled&&"cursor-not-allowed text-[color:var(--ldkj-color-muted-foreground)] opacity-70 hover:bg-transparent hover:text-[color:var(--ldkj-color-muted-foreground)]",_e,O,T),style:D($,he),disabled:X||E||je.disabled,onMouseEnter:()=>{h==="hover"&&!je.disabled&&mr&&(ve(Ie),ae(!0))},onClick:L=>{L.preventDefault(),Lr(je,Ie,L)},children:[c.jsx("span",{className:"min-w-0 flex-1 truncate",children:p?p(je.option,es):je.label}),dr?c.jsx(ws,{}):mr?c.jsx($P,{className:"h-4 w-4 shrink-0 text-[color:var(--ldkj-color-muted-foreground)]"}):null]},Ie.join(""))})})},`column-${ce}`)}),Ke?c.jsx("div",{className:"flex min-w-44 items-center justify-center border-l border-[color:var(--ldkj-color-border)] px-4 py-6 text-sm text-[color:var(--ldkj-color-muted-foreground)]",children:V?c.jsxs("span",{className:"inline-flex items-center gap-2",children:[c.jsx(ws,{}),"加载中"]}):"请继续选择"}):null]})})]}),ue?c.jsx("input",{type:"hidden",name:ue,required:I,value:U.length>0?JSON.stringify(U):""}):null]})});fm.displayName="Cascader";function zP(e){return Array.isArray(e)?Number(e[0]??0):Number(e??0)}function fc(e,r){const t=Number(e);return Number.isFinite(t)?t:r}function mc(e,r){return e===void 0?r:typeof e=="number"?`${e}px`:e}const HP={solid:{"--ldkj-slider-fill":"var(--ldkj-color-primary)","--ldkj-slider-fill-end":"var(--ldkj-color-primary)","--ldkj-slider-focus-ring":"var(--ldkj-color-ring)","--ldkj-slider-thumb":"var(--ldkj-color-primary)","--ldkj-slider-thumb-ring":"color-mix(in srgb, var(--ldkj-color-primary) 18%, transparent)","--ldkj-slider-track":"var(--ldkj-color-muted)","--ldkj-slider-track-shadow":"inset 0 1px 2px rgb(15 23 42 / 10%)","--ldkj-slider-thumb-shadow":"0 0 0 3px var(--ldkj-slider-thumb-ring), 0 4px 12px -2px rgba(0,0,0,0.12)","--ldkj-slider-thumb-shadow-hover":"0 0 0 5px var(--ldkj-slider-thumb-ring), 0 6px 20px -4px rgba(0,0,0,0.16)"},gradient:{"--ldkj-slider-fill":"var(--ldkj-color-secondary)","--ldkj-slider-fill-end":"var(--ldkj-color-primary)","--ldkj-slider-focus-ring":"var(--ldkj-color-ring)","--ldkj-slider-thumb":"linear-gradient(145deg, var(--ldkj-color-secondary) 0%, var(--ldkj-color-primary) 72%, var(--ldkj-color-primary-hover) 100%)","--ldkj-slider-thumb-ring":"color-mix(in srgb, var(--ldkj-color-secondary) 16%, transparent)","--ldkj-slider-track":"var(--ldkj-color-muted)","--ldkj-slider-track-shadow":"inset 0 1px 2px rgb(15 23 42 / 16%)","--ldkj-slider-thumb-shadow":"0 0 0 5px var(--ldkj-slider-thumb-ring), 0 10px 24px -10px rgba(14,116,144,0.9)","--ldkj-slider-thumb-shadow-hover":"0 0 0 7px var(--ldkj-slider-thumb-ring), 0 14px 28px -12px rgba(14,116,144,0.95)"}};function mm(e){const{className:r,class:t,defaultValue:o,max:n,min:s,style:i,sx:l,thumbSize:a,trackSize:d,value:f,variant:m="solid",onValueChange:p,...v}=e,g=se(),{sxClassName:h,sxInlineStyle:y}=re(l,g),b=f!==void 0,[x,w]=u.useState(()=>zP(o)),P=b?f:x,C=fc(s,0),k=fc(n,100),j=Number.isFinite(P)?P:C,S=k>C?(j-C)/(k-C)*100:0,N=Math.max(0,Math.min(100,S)),A=q=>{const E=Number(q.currentTarget.value);b||w(E),p?.(E)};return c.jsx("input",{...v,type:"range",...b?{value:f}:{defaultValue:o},min:s,max:n,onChange:A,className:R("h-[var(--ldkj-slider-track-size)] w-full cursor-pointer appearance-none rounded-full border border-white/70 bg-transparent align-middle","accent-[var(--ldkj-slider-fill-end)] shadow-[var(--ldkj-slider-track-shadow),0_1px_0_rgba(255,255,255,0.88)]","transition-[filter,opacity,box-shadow] duration-200 ease-out hover:brightness-105","focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-[var(--ldkj-slider-focus-ring)] focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-55 disabled:grayscale","[&::-webkit-slider-thumb]:h-[var(--ldkj-slider-thumb-size)] [&::-webkit-slider-thumb]:w-[var(--ldkj-slider-thumb-size)] [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:border-[3px] [&::-webkit-slider-thumb]:border-white [&::-webkit-slider-thumb]:[background:var(--ldkj-slider-thumb)] [&::-webkit-slider-thumb]:shadow-[var(--ldkj-slider-thumb-shadow),inset_0_1px_0_rgba(255,255,255,0.55)] [&::-webkit-slider-thumb]:transition-[transform,box-shadow,filter] [&::-webkit-slider-thumb]:duration-200 [&::-webkit-slider-thumb]:ease-out","hover:[&::-webkit-slider-thumb]:scale-110 hover:[&::-webkit-slider-thumb]:shadow-[var(--ldkj-slider-thumb-shadow-hover),inset_0_1px_0_rgba(255,255,255,0.65)] active:[&::-webkit-slider-thumb]:scale-95","[&::-moz-range-thumb]:h-[var(--ldkj-slider-thumb-size)] [&::-moz-range-thumb]:w-[var(--ldkj-slider-thumb-size)] [&::-moz-range-thumb]:appearance-none [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border-[3px] [&::-moz-range-thumb]:border-white [&::-moz-range-thumb]:[background:var(--ldkj-slider-thumb)] [&::-moz-range-thumb]:shadow-[var(--ldkj-slider-thumb-shadow),inset_0_1px_0_rgba(255,255,255,0.55)] [&::-moz-range-thumb]:transition-[transform,box-shadow,filter] [&::-moz-range-thumb]:duration-200 [&::-moz-range-thumb]:ease-out","hover:[&::-moz-range-thumb]:scale-110 hover:[&::-moz-range-thumb]:shadow-[var(--ldkj-slider-thumb-shadow-hover),inset_0_1px_0_rgba(255,255,255,0.65)] active:[&::-moz-range-thumb]:scale-95","[&::-moz-range-track]:h-[var(--ldkj-slider-track-size)] [&::-moz-range-track]:rounded-full [&::-moz-range-track]:bg-transparent",h,r,t),style:D({...HP[m],"--ldkj-slider-thumb-size":mc(a,"1.05rem"),"--ldkj-slider-track-size":mc(d,"0.4rem"),"--ldkj-slider-percent":`${N}%`,background:"linear-gradient(90deg, var(--ldkj-slider-fill) 0%, var(--ldkj-slider-fill-end) var(--ldkj-slider-percent), transparent var(--ldkj-slider-percent), transparent 100%), linear-gradient(180deg, rgba(255,255,255,0.86), rgba(148,163,184,0.22)), var(--ldkj-slider-track)"},i,y)})}mm.displayName="Slider";function UP({children:e}){return c.jsx("span",{className:"text-[color:var(--ldkj-color-danger)]",children:e??"*"})}const $n=u.createContext(null);function co(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}function ir(e){return Array.isArray(e)?e.map(r=>ir(r)):co(e)?Object.fromEntries(Object.entries(e).map(([r,t])=>[r,ir(t)])):e}function Po(e){return typeof e=="string"||typeof e=="number"?[e]:Array.from(e)}function hr(e){return JSON.stringify(Po(e))}function WP(e){return Po(e).join(".")}function st(e,r){let t=e;for(const o of Po(r)){if(t==null)return;t=t[o]}return t}function Qt(e,r,t){const o=Po(r);if(o.length===0)return e;const n=(s,i)=>{const l=o[i],a=i===o.length-1,d=Array.isArray(s)?[...s]:co(s)?{...s}:typeof l=="number"?[]:{};return d[l]=a?t:n(d[l],i+1),d};return n(e,0)}function KP(e,r){const t=Po(r);if(t.length===0)return e;const o=(n,s)=>{if(!Array.isArray(n)&&!co(n))return n;const i=t[s],l=Array.isArray(n)?[...n]:{...n};return s===t.length-1?(delete l[i],l):(l[i]=o(l[i],s+1),l)};return o(e,0)}function GP(e,r){return Qt({},e,r)}function YP(e,r){const t=(o,n)=>{if(co(o)&&co(n)){const s={...o};for(const[i,l]of Object.entries(n))s[i]=t(s[i],l);return s}return ir(n)};return t(e,r)}function hc(){return{errors:[],touched:!1,validating:!1}}function XP(e){return e==null||e===""||Array.isArray(e)&&e.length===0}function JP(e){return e===void 0?[]:Array.isArray(e)?e:[e]}function QP(e,r,t){if(!e)return!0;const o=JP(r??t);return o.length===0||o.includes(e)}function ZP(e,r){return u.isValidElement(e)?e:typeof e=="string"||typeof e=="number"?String(e):e instanceof Error?e.message:r}function e0(e){let r=ir({}),t=ir(r),o={},n=0;const s=new Set,i=new Map,l=new Map,a=()=>{for(const x of s)x()},d=x=>{const w=hr(x),P=l.get(w);if(P)return P;const C=hc();return l.set(w,C),C},f=(x,w)=>{const P=hr(x);l.set(P,{...d(x),...w})},m=()=>Array.from(i.values()).map(x=>({name:x.name,value:st(r,x.name),...d(x.name)})),p=x=>{o.onFieldsChange?.(x,m())},v=async(x,w)=>{const P=x.rules.filter(k=>QP(w.trigger,k.validateTrigger,x.validateTrigger));if(P.length===0)return[];w.validateOnly||(f(x.name,{validating:!0}),a());const C=[];for(const k of P){const j=st(r,x.name),S=k.transform?k.transform(j):j,N=k.message??"该字段为必填项";if(k.required&&XP(S)){if(C.push(N),x.validateFirst)break;continue}if(k.validator){try{const A=await k.validator(S,ir(r),b);A===!1?C.push(N):A!==void 0&&A!==!0&&C.push(A)}catch(A){C.push(ZP(A,N))}if(x.validateFirst&&C.length>0)break}}return!w.validateOnly&&w.id===n&&(f(x.name,{errors:C,validating:!1}),p([{name:x.name,value:st(r,x.name),...d(x.name),errors:C,validating:!1}]),a()),C},g=async(x,w={})=>{const P=++n,C=x?.map(hr),k=Array.from(i.values()).filter(N=>C?C.includes(hr(N.name)):!0),S=(await Promise.all(k.map(async N=>({field:N,errors:await v(N,{id:P,trigger:w.trigger,validateOnly:w.validateOnly})})))).filter(N=>N.errors.length>0).map(N=>({errors:N.errors,name:N.field.name}));if(S.length>0)throw{errorFields:S,outOfDate:P!==n,values:ir(r)};return ir(r)},h=(x,w)=>{const P=hr(x);for(const C of i.values())(hr(C.name)===P||C.dependencies.some(j=>hr(j)===P))&&g([C.name],{trigger:w}).catch(()=>{})},y=(x,w,P={})=>{r=Qt(r,x,w),P.touched&&f(x,{touched:!0});const C={name:x,value:w,...d(x)};P.source!=="external"&&(o.onValuesChange?.(GP(x,w),ir(r)),p([C])),a(),P.trigger&&h(x,P.trigger)},b={getFieldValue:x=>st(r,x),getFieldsValue:x=>x?x.reduce((w,P)=>Qt(w,P,st(r,P)),{}):ir(r),getFieldError:x=>d(x).errors,getFieldsError:x=>(x??Array.from(i.values()).map(P=>P.name)).map(P=>({errors:d(P).errors,name:P})),getFieldMeta:x=>d(x),isFieldTouched:x=>d(x).touched,isFieldsTouched:x=>(x??Array.from(i.values()).map(P=>P.name)).some(P=>d(P).touched),setFieldValue:(x,w)=>y(x,w,{source:"external"}),setFieldsValue:x=>{r=YP(r,x),a()},setFields:x=>{for(const w of x)"value"in w&&(r=Qt(r,w.name,w.value)),f(w.name,{errors:w.errors??d(w.name).errors,touched:w.touched??d(w.name).touched,validating:w.validating??d(w.name).validating});p(x),a()},resetFields:x=>{const w=x??Array.from(i.values()).map(P=>P.name);if(!x)r=ir(t),l.clear();else for(const P of w)r=Qt(r,P,st(t,P)),l.delete(hr(P));p(w.map(P=>({name:P,value:st(r,P),...d(P)}))),a()},validateFields:x=>g(x),submit:async()=>{try{const x=await g(void 0);o.onFinish?.(x)}catch(x){o.onFinishFailed?.(x)}},subscribe:x=>(s.add(x),()=>s.delete(x)),__INTERNAL__:{getStoreSnapshot:()=>r,getMetaSnapshot:x=>d(x),setCallbacks:x=>{o=x},setInitialValues:(x,w)=>{t=ir(x??{}),w&&(r=ir(t))},registerField:x=>{const w=hr(x.name);return i.set(w,x),l.has(w)||l.set(w,hc()),P=>{i.delete(w),P?.preserve===!1&&(r=KP(r,x.name),l.delete(w),a())}},setFieldValue:y,validateFields:g}};return b}function vl(e){const r=u.useRef(null);return r.current||(r.current=e??e0()),[e??r.current]}function gl(){const e=u.useContext($n);if(!e)throw new Error("Form hooks must be used inside a Form or receive a form instance.");return e}function Vn(e,r){const t=u.useContext($n),o=r??t;if(!o)throw new Error("useFormValue must be used inside a Form or receive a form instance.");return u.useSyncExternalStore(o.subscribe,()=>e===void 0?o.__INTERNAL__.getStoreSnapshot():o.getFieldValue(e),()=>e===void 0?o.__INTERNAL__.getStoreSnapshot():o.getFieldValue(e))}function hm(e,r){return Vn(e,r)}function r0(e,r){const t=u.useContext($n),o=r??t;if(!o)throw new Error("useFormFieldMeta must be used inside a Form or receive a form instance.");return u.useSyncExternalStore(o.subscribe,()=>o.__INTERNAL__.getMetaSnapshot(e),()=>o.__INTERNAL__.getMetaSnapshot(e))}const oo={emptyValue:"",trigger:"onChange",valuePropName:"value"},pc={AutoComplete:{emptyValue:"",trigger:"onValueChange",valuePropName:"value"},Cascader:{emptyValue:[],trigger:"onValueChange",valuePropName:"value"},Checkbox:{emptyValue:!1,trigger:"onCheckedChange",valuePropName:"checked"},CheckboxGroup:{emptyValue:[],trigger:"onChange",valuePropName:"value"},Input:oo,InputNumber:oo,InputOPT:oo,RadioGroup:{trigger:"onValueChange",valuePropName:"value"},Rate:{emptyValue:0,trigger:"onChange",valuePropName:"value"},Select:{trigger:"onValueChange",valuePropName:"value"},Slider:{emptyValue:0,trigger:"onValueChange",valuePropName:"value"},Switch:{emptyValue:!1,trigger:"onCheckedChange",valuePropName:"checked"},Uploader:{emptyValue:null,trigger:"onValueChange",valuePropName:"value"}};function t0(e){const r=e.type;return r.displayName??r.name??r.render?.displayName??r.render?.name}function o0(e){if(!e)return oo;const r=t0(e);return r&&pc[r]?pc[r]:oo}function n0(e,r){const[t]=r;if(t&&typeof t=="object"&&"target"in t&&t.target){const o=t.target;return e==="checked"?o.checked:o.value}return t}function s0(e){return e===void 0?[]:Array.isArray(e)?[...e]:[e]}function i0(e,r,t){return e!==void 0?e:t==="checked"?!1:r.emptyValue}function vc(e,r){return(...t)=>{e?.(...t),r(...t)}}function l0(e){const{className:r,class:t,form:o,initialValues:n,nativeSubmit:s=!1,onFieldsChange:i,onFinish:l,onFinishFailed:a,onReset:d,onSubmit:f,onValuesChange:m,style:p,sx:v,...g}=e,[h]=vl(o),y=se(),{sxClassName:b,sxInlineStyle:x}=re(v,y),w=u.useRef(!1),P=!s&&(o!==void 0||l!==void 0||a!==void 0||m!==void 0||i!==void 0);h.__INTERNAL__.setCallbacks({onFieldsChange:i,onFinish:l,onFinishFailed:a,onValuesChange:m}),h.__INTERNAL__.setInitialValues(n,!w.current),w.current=!0;const C=j=>{f?.(j),!(j.defaultPrevented||!P)&&(j.preventDefault(),h.submit())},k=j=>{d?.(j),!(j.defaultPrevented||!P)&&h.resetFields()};return c.jsx($n.Provider,{value:h,children:c.jsx("form",{className:R("space-y-4",b,r,t),style:D(p,x),onReset:k,onSubmit:C,...g})})}function xl(e){const{children:r,className:t,class:o,controlClassName:n,controlStyle:s,dependencies:i=[],extra:l,getValueFromEvent:a,getValueProps:d,help:f,initialValue:m,label:p,labelClassName:v,labelStyle:g,name:h,noStyle:y=!1,preserve:b=!0,required:x,rules:w=[],sx:P,style:C,trigger:k,validateFirst:j=!1,validateStatus:S,validateTrigger:N="onChange",valuePropName:A,...q}=e,E=gl(),I=se(),{sxClassName:_,sxInlineStyle:O}=re(P,I),T=Vn(void 0,E),$=h===void 0?void 0:hr(h),M=h===void 0?void 0:E.getFieldValue(h),W=r0(h??"__FORM_ITEM__",E),F=u.isValidElement(r)&&typeof r.type!="string"?r:null,X=o0(F),ue=A??X.valuePropName,ee=k??X.trigger,Q=w.some(fe=>fe.required),K=u.useMemo(()=>x&&!Q?[{required:!0},...w]:w,[Q,x,w]),J=u.useMemo(()=>JSON.stringify(i.map(hr)),[i]),B=u.useRef(K);B.current=K,u.useEffect(()=>{if(h===void 0)return;m!==void 0&&E.getFieldValue(h)===void 0&&E.__INTERNAL__.setFieldValue(h,m,{source:"external"});const fe=E.__INTERNAL__.registerField({dependencies:i,name:h,rules:B.current,validateFirst:j,validateTrigger:N});return()=>fe({preserve:b})},[J,E,m,h,$,b,j,N]);const G={form:E,meta:W,value:M,values:T},H=()=>{if(typeof r=="function")return r(G);if(!F||h===void 0)return r;const fe=F.props,ve=d?d(M):X.skipValueProp?{}:{[ue]:i0(M,X,ue)};fe.name===void 0&&(ve.name=WP(h)),ve[ee]=vc(fe[ee],(...ge)=>{const ie=a?a(...ge):n0(ue,ge);E.__INTERNAL__.setFieldValue(h,ie,{source:"internal",touched:!0,trigger:ee})});for(const ge of s0(N))ge!==ee&&(ve[ge]=vc(ve[ge]??fe[ge],()=>{E.__INTERNAL__.validateFields([h],{trigger:ge}).catch(()=>{})}));return u.cloneElement(F,ve)},U=W.errors,Y=f??U[0],Z=S??(W.validating?"validating":U.length>0?"error":void 0),ae=c.jsxs(c.Fragment,{children:[p!==void 0?c.jsxs("div",{className:R("text-sm font-medium leading-5 text-[color:var(--ldkj-color-foreground)]",v),style:g,children:[p,x||Q?c.jsx("span",{className:"ml-1 text-[color:var(--ldkj-color-danger)]","aria-hidden":"true",children:"*"}):null]}):null,c.jsx("div",{className:n,style:s,children:H()}),Y!==void 0?c.jsx("div",{className:R("text-xs leading-5",Z==="error"?"text-[color:var(--ldkj-color-danger)]":"text-[color:var(--ldkj-color-muted-foreground)]"),"aria-live":Z==="error"?"polite":void 0,role:Z==="error"?"alert":void 0,children:Y}):null,l!==void 0?c.jsx("div",{className:"text-xs leading-5 text-[color:var(--ldkj-color-muted-foreground)]",children:l}):null]});return y?ae:c.jsx("div",{className:R("space-y-2",Z==="error"&&"[&_input]:border-[color:var(--ldkj-color-danger)]",_,t,o),style:D(C,O),...q,children:ae})}xl.displayName="FormItem";const pm=Object.assign(l0,{Item:xl,useForm:vl,useFormInstance:gl,useFormValue:Vn,useFormWatch:hm});pm.displayName="Form";const bl="__LDKJ_UPLOADER_LIST_IGNORE__",dn=u.createContext(null);let gc=0;function a0(){return gc+=1,`ldkj-upload-${Date.now()}-${gc}`}function c0(e){return!!(e&&typeof e.then=="function")}function u0(e){return typeof File<"u"&&e instanceof File}function d0(e){return typeof Blob<"u"&&e instanceof Blob}function xc(e,r){return u0(e)?e:new File([e],r,{type:e.type})}function f0(e){return e===void 0?"":e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/1024/1024).toFixed(1)} MB`}function Ps(e){if(e.type?.startsWith("image/"))return!0;const r=e.thumbUrl??e.url??e.name;return/\.(apng|avif|gif|jpe?g|png|svg|webp)$/i.test(r)}function m0(e,r){if(!r)return!0;const t=r.split(",").map(s=>s.trim()).filter(Boolean);if(t.length===0)return!0;const o=e.name.toLowerCase(),n=e.type.toLowerCase();return t.some(s=>{const i=s.toLowerCase();return i.startsWith(".")?o.endsWith(i):i.endsWith("/*")?n.startsWith(i.slice(0,-1)):n===i})}function h0(e){return Number.isFinite(e)?Math.max(0,Math.min(100,Math.round(e))):0}function p0(e){const r=e.responseText;if(!r)return e.response;try{return JSON.parse(r)}catch{return r}}async function v0(e){const{action:r,data:t,file:o,filename:n,headers:s,method:i,signal:l,withCredentials:a,onProgress:d}=e;if(r)return new Promise((f,m)=>{const p=new XMLHttpRequest,v=new FormData;v.append(n,o),Object.entries(t??{}).forEach(([g,h])=>{h!=null&&v.append(g,h instanceof Blob?h:String(h))}),p.open(i,r),p.withCredentials=a,Object.entries(s??{}).forEach(([g,h])=>{p.setRequestHeader(g,h)}),p.upload.onprogress=g=>{g.lengthComputable&&d(g.loaded/g.total*100)},p.onload=()=>{const g=p0(p);if(p.status>=200&&p.status<300){f({response:g,url:g&&typeof g=="object"&&"url"in g&&typeof g.url=="string"?g.url:void 0});return}m(new Error(`Upload failed with status ${p.status}`))},p.onerror=()=>m(new Error("Upload request failed")),p.onabort=()=>m(new DOMException("Upload aborted","AbortError")),l.addEventListener("abort",()=>p.abort(),{once:!0}),p.send(v)})}async function Cs(e){return c0(e)?e:Promise.resolve(e)}function g0(e,r,t){const o=e.filter(n=>n.status==="success"||n.status==="ready").map(n=>n.value!==void 0?n.value:n.originFile).filter(n=>n!==void 0);return r||t!==void 0&&t>1?o:o[0]??null}function x0(){const e=u.useRef(new Set);return u.useEffect(()=>()=>{e.current.forEach(r=>URL.revokeObjectURL(r)),e.current.clear()},[]),u.useCallback(r=>{const t=URL.createObjectURL(r);return e.current.add(t),t},[])}function b0(...e){return r=>{e.forEach(t=>{if(t){if(typeof t=="function"){t(r);return}t.current=r}})}}function vm(e,r){const t={...e??{}};return Object.entries(r??{}).forEach(([o,n])=>{n!==void 0&&(t[o]=n)}),t}function y0(e,r){return vm(e,r)}function gm(e){const{children:r,...t}=e,o=u.useContext(dn),n=u.useMemo(()=>vm(o,t),[o,t]);return c.jsx(dn.Provider,{value:n,children:r})}function w0(){return u.useContext(dn)}const xm=u.forwardRef(function(r,t){const o=u.useContext(dn),n=u.useMemo(()=>y0(o,r),[o,r]),{accept:s,action:i,autoUpload:l=!0,beforeRemove:a,beforeUpload:d,children:f,className:m,class:p,customRequest:v,data:g,defaultFileList:h,directory:y=!1,disabled:b=!1,drag:x=!1,fileList:w,getValueFromResult:P,headers:C,listType:k="text",maxCount:j,maxSize:S,method:N="POST",multiple:A=!1,name:q="file",openFileDialogOnClick:E=!0,pastable:I=!1,preview:_=!0,request:O,renderActions:T,renderItem:$,renderTrigger:M,showFileList:W=!0,style:F,sx:X,transformFile:ue,withCredentials:ee=!1,onChange:Q,onDownload:K,onDrop:J,onDragEnter:B,onDragLeave:G,onDragOver:H,onError:U,onExceed:Y,onFileListChange:Z,onPreview:ae,onReject:fe,onRemove:ve,onSelect:ge,onSuccess:ie,onValueChange:we,defaultValue:Ne,value:Me,...oe}=n,Pe=u.useRef(null),Ce=u.useRef(h??[]),de=u.useRef(new Map),[_e,he]=u.useState(h??[]),[te,me]=u.useState(!1),[ke,Te]=u.useState(null),er=x0(),Ke=se(),{sxClassName:ur,sxInlineStyle:yr}=re(X,Ke),He=w??_e,nr=O??v,Ge=!!(nr||i),Lr=He.some(L=>L.status==="uploading");u.useEffect(()=>{Ce.current=He},[He]),u.useEffect(()=>{if(!I||b)return;const L=Ae=>{const Xe=Array.from(Ae.clipboardData?.files??[]);Xe.length!==0&&ce(Xe)};return window.addEventListener("paste",L),()=>window.removeEventListener("paste",L)}),u.useEffect(()=>()=>{de.current.forEach(L=>L.abort()),de.current.clear()},[]);const Ye=u.useCallback((L,Ae)=>{Ce.current=L,w===void 0&&he(L),Z?.(L,Ae),Ae.reason!=="progress"&&we?.(g0(L,A,j),Ae)},[w,j,A,Z,we]),V=u.useCallback((L,Ae,Xe)=>{const Le=Ce.current.map(Fe=>Fe.uid===L?{...Fe,...Ae}:Fe),Ue=Le.find(Fe=>Fe.uid===L);return Ye(Le,{file:Ue,fileList:Le,reason:Xe}),{file:Ue,fileList:Le}},[Ye]),z=u.useCallback(async L=>{const Ae=L.originFile;if(!Ae||b)return;const Xe=new AbortController;de.current.set(L.uid,Xe),V(L.uid,{status:"uploading",percent:0,error:void 0},"retry");try{const Le=typeof i=="function"?await i(Ae):i,Ue=typeof g=="function"?await g(Ae):g,Je=await(nr??v0)({action:Le,data:Ue,file:Ae,filename:q,headers:C,item:L,method:N,signal:Xe.signal,withCredentials:ee,onProgress:tr=>{V(L.uid,{percent:h0(tr)},"progress")}}),Dr=Ce.current.find(tr=>tr.uid===L.uid)??L,ze=P?P(Je,Dr):Je&&"value"in Je?Je.value:Dr.value,wr=V(L.uid,{name:Je?.name??Dr.name,percent:100,response:Je?.response??Je,status:"success",thumbUrl:Je?.thumbUrl??Je?.url??Dr.thumbUrl,url:Je?.url??Dr.url,value:ze},"success");wr.file&&ie?.(wr.file,wr.fileList)}catch(Le){if(Le.name==="AbortError")return;const Ue=Le instanceof Error?Le:new Error(String(Le)),Fe=V(L.uid,{error:Ue,status:"error"},"error");Fe.file&&U?.(Ue,Fe.file,Fe.fileList)}finally{de.current.delete(L.uid)}},[i,g,b,nr,P,C,N,q,U,ie,V,ee]),ce=u.useCallback(async L=>{if(b||L.length===0)return;ge?.(L);const Ae=[];for(const ze of L){if(!m0(ze,s)){fe?.(ze,"accept");continue}if(S!==void 0&&ze.size>S){fe?.(ze,"maxSize");continue}Ae.push(ze)}if(Ae.length===0)return;const Xe=Ce.current,Le=j??(A?void 0:1);let Ue=Ae;if(Le!==void 0){const ze=Math.max(0,Le-(Le===1?0:Xe.length));Ue.length>ze&&(Y?.(Ue.slice(ze),Xe),Ue=Ue.slice(0,ze))}if(Ue.length===0)return;const Fe=[],Je=[];for(const ze of Ue){let wr=l&&Ge,tr=ze;if(d){const So=await Cs(d(ze,Ue));if(So===bl)continue;So===!1?wr=!1:d0(So)&&(tr=xc(So,ze.name))}wr&&ue&&(tr=xc(await Cs(ue(tr)),ze.name));const hp=Ps(tr)?er(tr):void 0,la={uid:a0(),name:tr.name,originFile:tr,percent:wr?0:Ge?void 0:100,size:tr.size,status:wr?"uploading":Ge?"ready":"success",thumbUrl:hp,type:tr.type,value:wr?void 0:tr};Fe.push(la),wr&&Je.push(la)}if(Fe.length===0)return;const Dr=Le===1?Fe.slice(-1):[...Ce.current,...Fe];Ye(Dr,{file:Fe[Fe.length-1],fileList:Dr,reason:"add"}),Je.forEach(ze=>{z(ze)})},[s,l,d,er,b,Ye,Ge,j,S,A,Y,fe,ge,ue,z]),xe=u.useCallback(()=>{b||!E||Pe.current?.click()},[b,E]),je=u.useCallback(async L=>{const Ae=Ce.current;if(a&&!await Cs(a(L,Ae)))return;de.current.get(L.uid)?.abort(),de.current.delete(L.uid);const Xe=Ae.filter(Le=>Le.uid!==L.uid);Ye(Xe,{file:L,fileList:Xe,reason:"remove"}),ve?.(L,Xe)},[a,Ye,ve]),Ie={disabled:b,dragging:te,fileList:He,open:xe,uploading:Lr},rr=()=>M?M(Ie):typeof f=="function"?f(Ie):f||(x?c.jsx("div",{className:"grid min-h-32 place-items-center rounded-md border border-dashed border-[color:var(--ldkj-color-input)] bg-[color:var(--ldkj-color-muted)] px-6 py-8 text-center transition-colors hover:border-[color:var(--ldkj-color-primary)] hover:bg-[color:var(--ldkj-color-accent)]",children:c.jsxs("div",{className:"space-y-1",children:[c.jsx("div",{className:"text-sm font-medium text-[color:var(--ldkj-color-foreground)]",children:"点击或拖拽文件到此处上传"}),c.jsx("div",{className:"text-xs text-[color:var(--ldkj-color-muted-foreground)]",children:s?`支持 ${s}`:"支持单个或多个文件"})]})}):c.jsx(vr,{type:"button",disabled:b,size:"sm",children:"选择文件"})),sr=L=>{const Ae={preview:()=>{dr(L)},download:()=>mr(L),remove:()=>{je(L)},retry:()=>{z(L)},upload:()=>{z(L)}};return T?T(L,Ae):c.jsxs("div",{className:R("flex shrink-0 items-center gap-1",k==="picture-card"&&"w-full flex-wrap justify-end"),children:[_&&(L.url||L.thumbUrl)?c.jsx(vr,{type:"button",variant:"ghost",size:"xs",disabled:b,onClick:Ae.preview,children:"预览"}):null,L.url?c.jsx(vr,{type:"button",variant:"ghost",size:"xs",disabled:b,onClick:Ae.download,children:"下载"}):null,L.status==="ready"&&Ge?c.jsx(vr,{type:"button",variant:"ghost",size:"xs",disabled:b,onClick:Ae.upload,children:"上传"}):null,L.status==="error"?c.jsx(vr,{type:"button",variant:"ghost",size:"xs",disabled:b,onClick:Ae.retry,children:"重试"}):null,c.jsx(vr,{type:"button",variant:"ghost",size:"xs",disabled:b,onClick:Ae.remove,children:"删除"})]})},dr=async L=>{await ae?.(L)!==!1&&_&&(L.url||L.thumbUrl)&&Te(L)},mr=L=>{if(K){K(L);return}L.url&&window.open(L.url,"_blank","noopener,noreferrer")},es=L=>{const Ae=k!=="text"&&(L.thumbUrl||L.url),Xe=L.status==="uploading"?"上传中":L.status==="success"?"已完成":L.status==="error"?"失败":"待上传",Le=k==="picture-card"?"flex min-w-0 flex-col items-stretch gap-3 rounded-md border border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-card)] p-3":"flex min-w-0 items-center gap-3 rounded-md border border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-card)] p-3",Ue=k==="picture-card"?"grid min-w-0 gap-2":"flex min-w-0 items-center justify-between gap-3",Fe=k==="picture-card"?"grid aspect-square w-full shrink-0 place-items-center overflow-hidden rounded-md border border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-muted)]":"grid size-14 shrink-0 place-items-center overflow-hidden rounded-md border border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-muted)]",Je=c.jsxs("div",{className:R(Le,L.status==="error"&&"border-[color:var(--ldkj-color-danger)] bg-[color:var(--ldkj-color-danger)]/10"),children:[Ae?c.jsx("button",{type:"button",className:Fe,onClick:()=>{dr(L)},children:Ps(L)?c.jsx("img",{src:L.thumbUrl??L.url,alt:L.name,className:"h-full w-full object-cover",loading:"lazy",decoding:"async"}):c.jsx("span",{className:"px-2 text-xs text-[color:var(--ldkj-color-muted-foreground)]",children:"FILE"})}):null,c.jsxs("div",{className:"min-w-0 flex-1 space-y-1",children:[c.jsxs("div",{className:Ue,children:[c.jsxs("div",{className:"min-w-0",children:[c.jsx("div",{className:"truncate text-sm font-medium text-[color:var(--ldkj-color-card-foreground)]",children:L.name}),c.jsxs("div",{className:"text-xs text-[color:var(--ldkj-color-muted-foreground)]",children:[Xe,L.size!==void 0?` · ${f0(L.size)}`:""]})]}),sr(L)]}),L.status==="uploading"?c.jsx(jf,{value:L.percent??0,size:"xs"}):null,L.status==="error"?c.jsx("div",{className:"text-xs text-[color:var(--ldkj-color-danger)]",children:L.error?.message??"上传失败"}):null]})]});return $?$(L,Je,{preview:()=>{dr(L)},download:()=>mr(L),remove:()=>{je(L)},retry:()=>{z(L)},upload:()=>{z(L)}}):Je};return c.jsxs("div",{...oe,className:R("grid gap-3",b&&"cursor-not-allowed opacity-60",ur,m,p),style:D(F,yr),onDragEnter:L=>{B?.(L),!(!x||b)&&(L.preventDefault(),me(!0))},onDragOver:L=>{H?.(L),!(!x||b)&&(L.preventDefault(),me(!0))},onDragLeave:L=>{G?.(L),!(!x||b)&&(L.currentTarget.contains(L.relatedTarget)||me(!1))},onDrop:L=>{J?.(L),!(!x||b)&&(L.preventDefault(),me(!1),ce(Array.from(L.dataTransfer.files)))},children:[c.jsx("input",{ref:b0(Pe,t),hidden:!0,type:"file",accept:s,multiple:A,name:q,disabled:b,...y?{directory:"",webkitdirectory:""}:{},onChange:L=>{Q?.(L.target.files),ce(Array.from(L.target.files??[])),L.currentTarget.value=""}}),c.jsx("div",{className:R("inline-block",x&&"rounded-md",te&&"ring-2 ring-[color:var(--ldkj-color-ring)] ring-offset-2"),role:x||M||f?"button":void 0,tabIndex:x||M||f?0:void 0,"aria-disabled":b||void 0,onClick:xe,onKeyDown:L=>{L.key!=="Enter"&&L.key!==" "||(L.preventDefault(),xe())},children:rr()}),W&&He.length>0?c.jsx("div",{role:"list","aria-label":"上传文件列表",className:R(k==="picture-card"?"grid grid-cols-[repeat(auto-fill,minmax(160px,1fr))] gap-3":"grid gap-2"),children:He.map(L=>c.jsx("div",{role:"listitem",children:es(L)},L.uid))}):null,ke&&(ke.url||ke.thumbUrl)?c.jsxs("div",{className:"fixed inset-0 z-[1200] flex items-center justify-center bg-black/80 p-6",role:"dialog","aria-modal":"true","aria-label":"文件预览",onClick:()=>Te(null),children:[Ps(ke)?c.jsx("img",{src:ke.url??ke.thumbUrl,alt:ke.name,className:"max-h-[88vh] max-w-[92vw] rounded-md object-contain shadow-2xl",onClick:L=>L.stopPropagation()}):c.jsx("div",{className:"rounded-md bg-[color:var(--ldkj-color-popover)] p-6 text-sm text-[color:var(--ldkj-color-popover-foreground)] shadow-xl",onClick:L=>L.stopPropagation(),children:ke.name}),c.jsx(vr,{type:"button",variant:"minor",size:"sm",className:"absolute right-5 top-5",onClick:L=>{L.stopPropagation(),Te(null)},children:"关闭"})]}):null]})});xm.displayName="Uploader";const P0=Object.assign(xm,{LIST_IGNORE:bl,Provider:gm});function bc(e,[r,t]){return Math.min(t,Math.max(r,e))}var C0=[" ","Enter","ArrowUp","ArrowDown"],k0=[" ","Enter"],ft="Select",[zn,Hn,j0]=zf(ft),[$t]=br(ft,[j0,Ft]),Un=Ft(),[S0,et]=$t(ft),[N0,q0]=$t(ft),bm=e=>{const{__scopeSelect:r,children:t,open:o,defaultOpen:n,onOpenChange:s,value:i,defaultValue:l,onValueChange:a,dir:d,name:f,autoComplete:m,disabled:p,required:v,form:g}=e,h=Un(r),[y,b]=u.useState(null),[x,w]=u.useState(null),[P,C]=u.useState(!1),k=Dn(d),[j,S]=_r({prop:o,defaultProp:n??!1,onChange:s,caller:ft}),[N,A]=_r({prop:i,defaultProp:l,onChange:a,caller:ft}),q=u.useRef(null),E=y?g||!!y.closest("form"):!0,[I,_]=u.useState(new Set),O=Array.from(I).map(T=>T.props.value).join(";");return c.jsx(rl,{...h,children:c.jsxs(S0,{required:v,scope:r,trigger:y,onTriggerChange:b,valueNode:x,onValueNodeChange:w,valueNodeHasChildren:P,onValueNodeHasChildrenChange:C,contentId:vt(),value:N,onValueChange:A,open:j,onOpenChange:S,dir:k,triggerPointerDownPosRef:q,disabled:p,children:[c.jsx(zn.Provider,{scope:r,children:c.jsx(N0,{scope:e.__scopeSelect,onNativeOptionAdd:u.useCallback(T=>{_($=>new Set($).add(T))},[]),onNativeOptionRemove:u.useCallback(T=>{_($=>{const M=new Set($);return M.delete(T),M})},[]),children:t})}),E?c.jsxs(Hm,{"aria-hidden":!0,required:v,tabIndex:-1,name:f,autoComplete:m,value:N,onChange:T=>A(T.target.value),disabled:p,form:g,children:[N===void 0?c.jsx("option",{value:""}):null,Array.from(I)]},O):null]})})};bm.displayName=ft;var ym="SelectTrigger",wm=u.forwardRef((e,r)=>{const{__scopeSelect:t,disabled:o=!1,...n}=e,s=Un(t),i=et(ym,t),l=i.disabled||o,a=Re(r,i.onTriggerChange),d=Hn(t),f=u.useRef("touch"),[m,p,v]=Wm(h=>{const y=d().filter(w=>!w.disabled),b=y.find(w=>w.value===i.value),x=Km(y,h,b);x!==void 0&&i.onValueChange(x.value)}),g=h=>{l||(i.onOpenChange(!0),v()),h&&(i.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)})};return c.jsx(Nn,{asChild:!0,...s,children:c.jsx(ye.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Um(i.value)?"":void 0,...n,ref:a,onClick:pe(n.onClick,h=>{h.currentTarget.focus(),f.current!=="mouse"&&g(h)}),onPointerDown:pe(n.onPointerDown,h=>{f.current=h.pointerType;const y=h.target;y.hasPointerCapture(h.pointerId)&&y.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&h.pointerType==="mouse"&&(g(h),h.preventDefault())}),onKeyDown:pe(n.onKeyDown,h=>{const y=m.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&p(h.key),!(y&&h.key===" ")&&C0.includes(h.key)&&(g(),h.preventDefault())})})})});wm.displayName=ym;var Pm="SelectValue",Cm=u.forwardRef((e,r)=>{const{__scopeSelect:t,className:o,style:n,children:s,placeholder:i="",...l}=e,a=et(Pm,t),{onValueNodeHasChildrenChange:d}=a,f=s!==void 0,m=Re(r,a.onValueNodeChange);return Ve(()=>{d(f)},[d,f]),c.jsx(ye.span,{...l,ref:m,style:{pointerEvents:"none"},children:Um(a.value)?c.jsx(c.Fragment,{children:i}):s})});Cm.displayName=Pm;var E0="SelectIcon",km=u.forwardRef((e,r)=>{const{__scopeSelect:t,children:o,...n}=e;return c.jsx(ye.span,{"aria-hidden":!0,...n,ref:r,children:o||"▼"})});km.displayName=E0;var R0="SelectPortal",jm=e=>c.jsx(qn,{asChild:!0,...e});jm.displayName=R0;var mt="SelectContent",Sm=u.forwardRef((e,r)=>{const t=et(mt,e.__scopeSelect),[o,n]=u.useState();if(Ve(()=>{n(new DocumentFragment)},[]),!t.open){const s=o;return s?mo.createPortal(c.jsx(Nm,{scope:e.__scopeSelect,children:c.jsx(zn.Slot,{scope:e.__scopeSelect,children:c.jsx("div",{children:e.children})})}),s):null}return c.jsx(qm,{...e,ref:r})});Sm.displayName=mt;var pr=10,[Nm,rt]=$t(mt),A0="SelectContentImpl",I0=io("SelectContent.RemoveScroll"),qm=u.forwardRef((e,r)=>{const{__scopeSelect:t,position:o="item-aligned",onCloseAutoFocus:n,onEscapeKeyDown:s,onPointerDownOutside:i,side:l,sideOffset:a,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:p,collisionPadding:v,sticky:g,hideWhenDetached:h,avoidCollisions:y,...b}=e,x=et(mt,t),[w,P]=u.useState(null),[C,k]=u.useState(null),j=Re(r,B=>P(B)),[S,N]=u.useState(null),[A,q]=u.useState(null),E=Hn(t),[I,_]=u.useState(!1),O=u.useRef(!1);u.useEffect(()=>{if(w)return Od(w)},[w]),dd();const T=u.useCallback(B=>{const[G,...H]=E().map(Z=>Z.ref.current),[U]=H.slice(-1),Y=document.activeElement;for(const Z of B)if(Z===Y||(Z?.scrollIntoView({block:"nearest"}),Z===G&&C&&(C.scrollTop=0),Z===U&&C&&(C.scrollTop=C.scrollHeight),Z?.focus(),document.activeElement!==Y))return},[E,C]),$=u.useCallback(()=>T([S,w]),[T,S,w]);u.useEffect(()=>{I&&$()},[I,$]);const{onOpenChange:M,triggerPointerDownPosRef:W}=x;u.useEffect(()=>{if(w){let B={x:0,y:0};const G=U=>{B={x:Math.abs(Math.round(U.pageX)-(W.current?.x??0)),y:Math.abs(Math.round(U.pageY)-(W.current?.y??0))}},H=U=>{B.x<=10&&B.y<=10?U.preventDefault():w.contains(U.target)||M(!1),document.removeEventListener("pointermove",G),W.current=null};return W.current!==null&&(document.addEventListener("pointermove",G),document.addEventListener("pointerup",H,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",G),document.removeEventListener("pointerup",H,{capture:!0})}}},[w,M,W]),u.useEffect(()=>{const B=()=>M(!1);return window.addEventListener("blur",B),window.addEventListener("resize",B),()=>{window.removeEventListener("blur",B),window.removeEventListener("resize",B)}},[M]);const[F,X]=Wm(B=>{const G=E().filter(Y=>!Y.disabled),H=G.find(Y=>Y.ref.current===document.activeElement),U=Km(G,B,H);U&&setTimeout(()=>U.ref.current.focus())}),ue=u.useCallback((B,G,H)=>{const U=!O.current&&!H;(x.value!==void 0&&x.value===G||U)&&(N(B),U&&(O.current=!0))},[x.value]),ee=u.useCallback(()=>w?.focus(),[w]),Q=u.useCallback((B,G,H)=>{const U=!O.current&&!H;(x.value!==void 0&&x.value===G||U)&&q(B)},[x.value]),K=o==="popper"?bi:Em,J=K===bi?{side:l,sideOffset:a,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:p,collisionPadding:v,sticky:g,hideWhenDetached:h,avoidCollisions:y}:{};return c.jsx(Nm,{scope:t,content:w,viewport:C,onViewportChange:k,itemRefCallback:ue,selectedItem:S,onItemLeave:ee,itemTextRefCallback:Q,focusSelectedItem:$,selectedItemText:A,position:o,isPositioned:I,searchRef:F,children:c.jsx(nl,{as:I0,allowPinchZoom:!0,children:c.jsx(Wi,{asChild:!0,trapped:x.open,onMountAutoFocus:B=>{B.preventDefault()},onUnmountAutoFocus:pe(n,B=>{x.trigger?.focus({preventScroll:!0}),B.preventDefault()}),children:c.jsx(wn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:B=>B.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:c.jsx(K,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:B=>B.preventDefault(),...b,...J,onPlaced:()=>_(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:pe(b.onKeyDown,B=>{const G=B.ctrlKey||B.altKey||B.metaKey;if(B.key==="Tab"&&B.preventDefault(),!G&&B.key.length===1&&X(B.key),["ArrowUp","ArrowDown","Home","End"].includes(B.key)){let U=E().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);if(["ArrowUp","End"].includes(B.key)&&(U=U.slice().reverse()),["ArrowUp","ArrowDown"].includes(B.key)){const Y=B.target,Z=U.indexOf(Y);U=U.slice(Z+1)}setTimeout(()=>T(U)),B.preventDefault()}})})})})})})});qm.displayName=A0;var T0="SelectItemAlignedPosition",Em=u.forwardRef((e,r)=>{const{__scopeSelect:t,onPlaced:o,...n}=e,s=et(mt,t),i=rt(mt,t),[l,a]=u.useState(null),[d,f]=u.useState(null),m=Re(r,j=>f(j)),p=Hn(t),v=u.useRef(!1),g=u.useRef(!0),{viewport:h,selectedItem:y,selectedItemText:b,focusSelectedItem:x}=i,w=u.useCallback(()=>{if(s.trigger&&s.valueNode&&l&&d&&h&&y&&b){const j=s.trigger.getBoundingClientRect(),S=d.getBoundingClientRect(),N=s.valueNode.getBoundingClientRect(),A=b.getBoundingClientRect();if(s.dir!=="rtl"){const Y=A.left-S.left,Z=N.left-Y,ae=j.left-Z,fe=j.width+ae,ve=Math.max(fe,S.width),ge=window.innerWidth-pr,ie=bc(Z,[pr,Math.max(pr,ge-ve)]);l.style.minWidth=fe+"px",l.style.left=ie+"px"}else{const Y=S.right-A.right,Z=window.innerWidth-N.right-Y,ae=window.innerWidth-j.right-Z,fe=j.width+ae,ve=Math.max(fe,S.width),ge=window.innerWidth-pr,ie=bc(Z,[pr,Math.max(pr,ge-ve)]);l.style.minWidth=fe+"px",l.style.right=ie+"px"}const q=p(),E=window.innerHeight-pr*2,I=h.scrollHeight,_=window.getComputedStyle(d),O=parseInt(_.borderTopWidth,10),T=parseInt(_.paddingTop,10),$=parseInt(_.borderBottomWidth,10),M=parseInt(_.paddingBottom,10),W=O+T+I+M+$,F=Math.min(y.offsetHeight*5,W),X=window.getComputedStyle(h),ue=parseInt(X.paddingTop,10),ee=parseInt(X.paddingBottom,10),Q=j.top+j.height/2-pr,K=E-Q,J=y.offsetHeight/2,B=y.offsetTop+J,G=O+T+B,H=W-G;if(G<=Q){const Y=q.length>0&&y===q[q.length-1].ref.current;l.style.bottom="0px";const Z=d.clientHeight-h.offsetTop-h.offsetHeight,ae=Math.max(K,J+(Y?ee:0)+Z+$),fe=G+ae;l.style.height=fe+"px"}else{const Y=q.length>0&&y===q[0].ref.current;l.style.top="0px";const ae=Math.max(Q,O+h.offsetTop+(Y?ue:0)+J)+H;l.style.height=ae+"px",h.scrollTop=G-Q+h.offsetTop}l.style.margin=`${pr}px 0`,l.style.minHeight=F+"px",l.style.maxHeight=E+"px",o?.(),requestAnimationFrame(()=>v.current=!0)}},[p,s.trigger,s.valueNode,l,d,h,y,b,s.dir,o]);Ve(()=>w(),[w]);const[P,C]=u.useState();Ve(()=>{d&&C(window.getComputedStyle(d).zIndex)},[d]);const k=u.useCallback(j=>{j&&g.current===!0&&(w(),x?.(),g.current=!1)},[w,x]);return c.jsx(O0,{scope:t,contentWrapper:l,shouldExpandOnScrollRef:v,onScrollButtonChange:k,children:c.jsx("div",{ref:a,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:P},children:c.jsx(ye.div,{...n,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...n.style}})})})});Em.displayName=T0;var _0="SelectPopperPosition",bi=u.forwardRef((e,r)=>{const{__scopeSelect:t,align:o="start",collisionPadding:n=pr,...s}=e,i=Un(t);return c.jsx(tl,{...i,...s,ref:r,align:o,collisionPadding:n,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});bi.displayName=_0;var[O0,yl]=$t(mt,{}),yi="SelectViewport",Rm=u.forwardRef((e,r)=>{const{__scopeSelect:t,nonce:o,...n}=e,s=rt(yi,t),i=yl(yi,t),l=Re(r,s.onViewportChange),a=u.useRef(0);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),c.jsx(zn.Slot,{scope:t,children:c.jsx(ye.div,{"data-radix-select-viewport":"",role:"presentation",...n,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...n.style},onScroll:pe(n.onScroll,d=>{const f=d.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:p}=i;if(p?.current&&m){const v=Math.abs(a.current-f.scrollTop);if(v>0){const g=window.innerHeight-pr*2,h=parseFloat(m.style.minHeight),y=parseFloat(m.style.height),b=Math.max(h,y);if(b<g){const x=b+v,w=Math.min(g,x),P=x-w;m.style.height=w+"px",m.style.bottom==="0px"&&(f.scrollTop=P>0?P:0,m.style.justifyContent="flex-end")}}}a.current=f.scrollTop})})})]})});Rm.displayName=yi;var Am="SelectGroup",[M0,L0]=$t(Am),Im=u.forwardRef((e,r)=>{const{__scopeSelect:t,...o}=e,n=vt();return c.jsx(M0,{scope:t,id:n,children:c.jsx(ye.div,{role:"group","aria-labelledby":n,...o,ref:r})})});Im.displayName=Am;var Tm="SelectLabel",_m=u.forwardRef((e,r)=>{const{__scopeSelect:t,...o}=e,n=L0(Tm,t);return c.jsx(ye.div,{id:n.id,...o,ref:r})});_m.displayName=Tm;var fn="SelectItem",[D0,Om]=$t(fn),Mm=u.forwardRef((e,r)=>{const{__scopeSelect:t,value:o,disabled:n=!1,textValue:s,...i}=e,l=et(fn,t),a=rt(fn,t),d=l.value===o,[f,m]=u.useState(s??""),[p,v]=u.useState(!1),g=Re(r,x=>a.itemRefCallback?.(x,o,n)),h=vt(),y=u.useRef("touch"),b=()=>{n||(l.onValueChange(o),l.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return c.jsx(D0,{scope:t,value:o,disabled:n,textId:h,isSelected:d,onItemTextChange:u.useCallback(x=>{m(w=>w||(x?.textContent??"").trim())},[]),children:c.jsx(zn.ItemSlot,{scope:t,value:o,disabled:n,textValue:f,children:c.jsx(ye.div,{role:"option","aria-labelledby":h,"data-highlighted":p?"":void 0,"aria-selected":d&&p,"data-state":d?"checked":"unchecked","aria-disabled":n||void 0,"data-disabled":n?"":void 0,tabIndex:n?void 0:-1,...i,ref:g,onFocus:pe(i.onFocus,()=>v(!0)),onBlur:pe(i.onBlur,()=>v(!1)),onClick:pe(i.onClick,()=>{y.current!=="mouse"&&b()}),onPointerUp:pe(i.onPointerUp,()=>{y.current==="mouse"&&b()}),onPointerDown:pe(i.onPointerDown,x=>{y.current=x.pointerType}),onPointerMove:pe(i.onPointerMove,x=>{y.current=x.pointerType,n?a.onItemLeave?.():y.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:pe(i.onPointerLeave,x=>{x.currentTarget===document.activeElement&&a.onItemLeave?.()}),onKeyDown:pe(i.onKeyDown,x=>{a.searchRef?.current!==""&&x.key===" "||(k0.includes(x.key)&&b(),x.key===" "&&x.preventDefault())})})})})});Mm.displayName=fn;var Zt="SelectItemText",Lm=u.forwardRef((e,r)=>{const{__scopeSelect:t,className:o,style:n,...s}=e,i=et(Zt,t),l=rt(Zt,t),a=Om(Zt,t),d=q0(Zt,t),[f,m]=u.useState(null),p=Re(r,b=>m(b),a.onItemTextChange,b=>l.itemTextRefCallback?.(b,a.value,a.disabled)),v=f?.textContent,g=u.useMemo(()=>c.jsx("option",{value:a.value,disabled:a.disabled,children:v},a.value),[a.disabled,a.value,v]),{onNativeOptionAdd:h,onNativeOptionRemove:y}=d;return Ve(()=>(h(g),()=>y(g)),[h,y,g]),c.jsxs(c.Fragment,{children:[c.jsx(ye.span,{id:a.textId,...s,ref:p}),a.isSelected&&i.valueNode&&!i.valueNodeHasChildren?mo.createPortal(s.children,i.valueNode):null]})});Lm.displayName=Zt;var Dm="SelectItemIndicator",Fm=u.forwardRef((e,r)=>{const{__scopeSelect:t,...o}=e;return Om(Dm,t).isSelected?c.jsx(ye.span,{"aria-hidden":!0,...o,ref:r}):null});Fm.displayName=Dm;var wi="SelectScrollUpButton",Bm=u.forwardRef((e,r)=>{const t=rt(wi,e.__scopeSelect),o=yl(wi,e.__scopeSelect),[n,s]=u.useState(!1),i=Re(r,o.onScrollButtonChange);return Ve(()=>{if(t.viewport&&t.isPositioned){let l=function(){const d=a.scrollTop>0;s(d)};const a=t.viewport;return l(),a.addEventListener("scroll",l),()=>a.removeEventListener("scroll",l)}},[t.viewport,t.isPositioned]),n?c.jsx(Vm,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=t;l&&a&&(l.scrollTop=l.scrollTop-a.offsetHeight)}}):null});Bm.displayName=wi;var Pi="SelectScrollDownButton",$m=u.forwardRef((e,r)=>{const t=rt(Pi,e.__scopeSelect),o=yl(Pi,e.__scopeSelect),[n,s]=u.useState(!1),i=Re(r,o.onScrollButtonChange);return Ve(()=>{if(t.viewport&&t.isPositioned){let l=function(){const d=a.scrollHeight-a.clientHeight,f=Math.ceil(a.scrollTop)<d;s(f)};const a=t.viewport;return l(),a.addEventListener("scroll",l),()=>a.removeEventListener("scroll",l)}},[t.viewport,t.isPositioned]),n?c.jsx(Vm,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=t;l&&a&&(l.scrollTop=l.scrollTop+a.offsetHeight)}}):null});$m.displayName=Pi;var Vm=u.forwardRef((e,r)=>{const{__scopeSelect:t,onAutoScroll:o,...n}=e,s=rt("SelectScrollButton",t),i=u.useRef(null),l=Hn(t),a=u.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return u.useEffect(()=>()=>a(),[a]),Ve(()=>{l().find(f=>f.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[l]),c.jsx(ye.div,{"aria-hidden":!0,...n,ref:r,style:{flexShrink:0,...n.style},onPointerDown:pe(n.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(o,50))}),onPointerMove:pe(n.onPointerMove,()=>{s.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(o,50))}),onPointerLeave:pe(n.onPointerLeave,()=>{a()})})}),F0="SelectSeparator",zm=u.forwardRef((e,r)=>{const{__scopeSelect:t,...o}=e;return c.jsx(ye.div,{"aria-hidden":!0,...o,ref:r})});zm.displayName=F0;var Ci="SelectArrow",B0=u.forwardRef((e,r)=>{const{__scopeSelect:t,...o}=e,n=Un(t),s=et(Ci,t),i=rt(Ci,t);return s.open&&i.position==="popper"?c.jsx(ol,{...n,...o,ref:r}):null});B0.displayName=Ci;var $0="SelectBubbleInput",Hm=u.forwardRef(({__scopeSelect:e,value:r,...t},o)=>{const n=u.useRef(null),s=Re(o,n),i=Tn(r);return u.useEffect(()=>{const l=n.current;if(!l)return;const a=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(a,"value").set;if(i!==r&&f){const m=new Event("change",{bubbles:!0});f.call(l,r),l.dispatchEvent(m)}},[i,r]),c.jsx(ye.select,{...t,style:{...nf,...t.style},ref:s,defaultValue:r})});Hm.displayName=$0;function Um(e){return e===""||e===void 0}function Wm(e){const r=Ar(e),t=u.useRef(""),o=u.useRef(0),n=u.useCallback(i=>{const l=t.current+i;r(l),(function a(d){t.current=d,window.clearTimeout(o.current),d!==""&&(o.current=window.setTimeout(()=>a(""),1e3))})(l)},[r]),s=u.useCallback(()=>{t.current="",window.clearTimeout(o.current)},[]);return u.useEffect(()=>()=>window.clearTimeout(o.current),[]),[t,n,s]}function Km(e,r,t){const n=r.length>1&&Array.from(r).every(d=>d===r[0])?r[0]:r,s=t?e.indexOf(t):-1;let i=V0(e,Math.max(s,0));n.length===1&&(i=i.filter(d=>d!==t));const a=i.find(d=>d.textValue.toLowerCase().startsWith(n.toLowerCase()));return a!==t?a:void 0}function V0(e,r){return e.map((t,o)=>e[(r+o)%e.length])}var z0=bm,H0=wm,U0=Cm,W0=km,K0=jm,G0=Sm,Y0=Rm,X0=Im,J0=_m,Q0=Mm,Z0=Lm,eC=Fm,rC=Bm,tC=$m,oC=zm;const yc="data-scroll-locked",Gm=u.createContext({lockScroll:!1});function nC(e,r){(typeof window>"u"?u.useEffect:u.useLayoutEffect)(e,r)}function wc(){return document.querySelector('[role="listbox"][data-state="open"][data-ldkj-select-lock-scroll="false"]')!==null}function sC(e){nC(()=>{if(!e||typeof document>"u")return;const r=document.body,t=()=>{wc()&&r.removeAttribute(yc)},o=l=>{wc()&&l.stopImmediatePropagation()},n=typeof MutationObserver>"u"?null:new MutationObserver(t),s={passive:!1},i=window.setTimeout(t,0);return n?.observe(r,{attributes:!0,attributeFilter:[yc]}),document.addEventListener("wheel",o,s),document.addEventListener("touchmove",o,s),t(),()=>{window.clearTimeout(i),n?.disconnect(),document.removeEventListener("wheel",o),document.removeEventListener("touchmove",o)}},[e])}function Ym(e){const{lockScroll:r=!1,...t}=e;return sC(!r),c.jsx(Gm.Provider,{value:{lockScroll:r},children:c.jsx(z0,{...t})})}Ym.displayName="Select";const Xm=X0,iC=U0;function lC(e){return c.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",fill:"none",...e,children:c.jsx("path",{d:"M3.5 8.5L6.5 11.5L12.5 4.5",stroke:"currentColor",strokeWidth:"2.25",strokeLinecap:"round",strokeLinejoin:"round"})})}function Jm(e){return c.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",fill:"none",...e,children:c.jsx("path",{d:"M4 6L8 10L12 6",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}function aC(e){return c.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",fill:"none",...e,children:c.jsx("path",{d:"M4 10L8 6L12 10",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}function gt(e){const r=se();return re(e,r)}const Qm=u.forwardRef((e,r)=>{const{className:t,class:o,children:n,sx:s,style:i,...l}=e,{sxClassName:a,sxInlineStyle:d}=gt(s);return c.jsxs(H0,{ref:r,className:R("flex h-9 w-full items-center justify-between gap-2 rounded-md border border-solid border-[color:var(--ldkj-color-input)] bg-[color:var(--ldkj-color-surface)] px-3 py-2 text-sm text-[color:var(--ldkj-color-foreground)] shadow-sm transition-colors","placeholder:text-[color:var(--ldkj-color-muted-foreground)] data-[placeholder]:text-[color:var(--ldkj-color-muted-foreground)]","focus-visible:border-[color:var(--ldkj-color-primary)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)]","disabled:cursor-not-allowed disabled:bg-[color:var(--ldkj-color-surface-muted)] disabled:text-[color:var(--ldkj-color-muted-foreground)] disabled:opacity-70","[&>span]:min-w-0 [&>span]:truncate",a,t,o),style:D(i,d),...l,children:[n,c.jsx(W0,{asChild:!0,children:c.jsx(Jm,{className:"h-4 w-4 shrink-0 text-[color:var(--ldkj-color-muted-foreground)]"})})]})});Qm.displayName="SelectTrigger";const wl=u.forwardRef((e,r)=>{const{className:t,class:o,sx:n,style:s,...i}=e,{sxClassName:l,sxInlineStyle:a}=gt(n);return c.jsx(rC,{ref:r,className:R("flex cursor-default items-center justify-center py-1 text-[color:var(--ldkj-color-muted-foreground)]",l,t,o),style:D(s,a),...i,children:c.jsx(aC,{className:"h-4 w-4"})})});wl.displayName="SelectScrollUpButton";const Pl=u.forwardRef((e,r)=>{const{className:t,class:o,sx:n,style:s,...i}=e,{sxClassName:l,sxInlineStyle:a}=gt(n);return c.jsx(tC,{ref:r,className:R("flex cursor-default items-center justify-center py-1 text-[color:var(--ldkj-color-muted-foreground)]",l,t,o),style:D(s,a),...i,children:c.jsx(Jm,{className:"h-4 w-4"})})});Pl.displayName="SelectScrollDownButton";const Zm=u.forwardRef((e,r)=>{const{className:t,class:o,children:n,position:s="popper",sx:i,style:l,...a}=e,{sxClassName:d,sxInlineStyle:f}=gt(i),{lockScroll:m}=u.useContext(Gm);return c.jsx(K0,{children:c.jsxs(G0,{ref:r,className:R("relative z-[var(--ldkj-z-dropdown)] max-h-[var(--radix-select-content-available-height)] min-w-32 overflow-hidden rounded-md border border-solid border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-surface)] text-[color:var(--ldkj-color-surface-foreground)] shadow-[var(--ldkj-shadow-popover)]","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","origin-[var(--radix-select-content-transform-origin)]",s==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",d,t,o),style:D(l,f),position:s,"data-ldkj-select-lock-scroll":m?"true":"false",...a,children:[c.jsx(wl,{}),c.jsx(Y0,{className:R("p-1",s==="popper"&&"w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),c.jsx(Pl,{})]})})});Zm.displayName="SelectContent";const Cl=u.forwardRef((e,r)=>{const{className:t,class:o,sx:n,style:s,...i}=e,{sxClassName:l,sxInlineStyle:a}=gt(n);return c.jsx(J0,{ref:r,className:R("px-2 py-1.5 text-xs font-medium text-[color:var(--ldkj-color-muted-foreground)]",l,t,o),style:D(s,a),...i})});Cl.displayName="SelectLabel";const mn=u.forwardRef((e,r)=>{const{className:t,class:o,children:n,sx:s,style:i,...l}=e,{sxClassName:a,sxInlineStyle:d}=gt(s);return c.jsxs(Q0,{ref:r,className:R("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm leading-5 text-[color:var(--ldkj-color-foreground)] outline-none transition-colors","focus:bg-[color:var(--ldkj-color-accent)] focus:text-[color:var(--ldkj-color-primary)]","data-[disabled]:pointer-events-none data-[disabled]:text-[color:var(--ldkj-color-muted-foreground)] data-[disabled]:opacity-70",a,t,o),style:D(i,d),...l,children:[c.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center text-[color:var(--ldkj-color-primary)]",children:c.jsx(eC,{children:c.jsx(lC,{className:"h-4 w-4"})})}),c.jsx(Z0,{children:n})]})});mn.displayName="SelectItem";const kl=u.forwardRef((e,r)=>{const{className:t,class:o,sx:n,style:s,...i}=e,{sxClassName:l,sxInlineStyle:a}=gt(n);return c.jsx(oC,{ref:r,className:R("-mx-1 my-1 h-px bg-[color:var(--ldkj-color-border)]",l,t,o),style:D(s,a),...i})});kl.displayName="SelectSeparator";function cC(e){return"options"in e}function uC(e){const{options:r,itemProps:t,labelProps:o,separatorProps:n}=e;return c.jsx(c.Fragment,{children:r.map((s,i)=>cC(s)?c.jsxs(Xm,{children:[s.label?c.jsx(Cl,{...o,children:s.label}):null,s.options.map(l=>c.jsx(mn,{...t,value:l.value,disabled:l.disabled,textValue:l.textValue,className:R(t?.className,l.className),class:R(t?.class,l.class),style:D(t?.style,l.style),sx:[t?.sx,l.sx],children:l.label},l.value)),s.separator?c.jsx(kl,{...n}):null]},`group-${i}`):c.jsx(mn,{...t,value:s.value,disabled:s.disabled,textValue:s.textValue,className:R(t?.className,s.className),class:R(t?.class,s.class),style:D(t?.style,s.style),sx:[t?.sx,s.sx],children:s.label},s.value))})}var Wn="Switch",[dC]=br(Wn),[fC,mC]=dC(Wn),eh=u.forwardRef((e,r)=>{const{__scopeSwitch:t,name:o,checked:n,defaultChecked:s,required:i,disabled:l,value:a="on",onCheckedChange:d,form:f,...m}=e,[p,v]=u.useState(null),g=Re(r,w=>v(w)),h=u.useRef(!1),y=p?f||!!p.closest("form"):!0,[b,x]=_r({prop:n,defaultProp:s??!1,onChange:d,caller:Wn});return c.jsxs(fC,{scope:t,checked:b,disabled:l,children:[c.jsx(ye.button,{type:"button",role:"switch","aria-checked":b,"aria-required":i,"data-state":nh(b),"data-disabled":l?"":void 0,disabled:l,value:a,...m,ref:g,onClick:pe(e.onClick,w=>{x(P=>!P),y&&(h.current=w.isPropagationStopped(),h.current||w.stopPropagation())})}),y&&c.jsx(oh,{control:p,bubbles:!h.current,name:o,value:a,checked:b,required:i,disabled:l,form:f,style:{transform:"translateX(-100%)"}})]})});eh.displayName=Wn;var rh="SwitchThumb",th=u.forwardRef((e,r)=>{const{__scopeSwitch:t,...o}=e,n=mC(rh,t);return c.jsx(ye.span,{"data-state":nh(n.checked),"data-disabled":n.disabled?"":void 0,...o,ref:r})});th.displayName=rh;var hC="SwitchBubbleInput",oh=u.forwardRef(({__scopeSwitch:e,control:r,checked:t,bubbles:o=!0,...n},s)=>{const i=u.useRef(null),l=Re(i,s),a=Tn(t),d=Sn(r);return u.useEffect(()=>{const f=i.current;if(!f)return;const m=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(m,"checked").set;if(a!==t&&v){const g=new Event("click",{bubbles:o});v.call(f,t),f.dispatchEvent(g)}},[a,t,o]),c.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...n,tabIndex:-1,ref:l,style:{...n.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});oh.displayName=hC;function nh(e){return e?"checked":"unchecked"}var pC=eh,vC=th;const gC={sm:"h-5 w-9",md:"h-6 w-11",lg:"h-7 w-[52px]"},xC={sm:"h-4 w-4 data-[state=checked]:translate-x-4",md:"h-5 w-5 data-[state=checked]:translate-x-5",lg:"h-6 w-6 data-[state=checked]:translate-x-6"},sh=u.forwardRef((e,r)=>{const{className:t,class:o,containerClass:n,containerClassName:s,containerStyle:i,containerSx:l,description:a,disabled:d,id:f,label:m,labelPosition:p="right",size:v="md",style:g,sx:h,"aria-describedby":y,...b}=e,x=se(),{sxClassName:w,sxInlineStyle:P}=re(h,x),{sxClassName:C,sxInlineStyle:k}=re(l,x),j=u.useId(),S=f??`ldkj-switch-${j}`,N=a===void 0?void 0:`${S}-description`,A=[y,N].filter(Boolean).join(" ")||void 0,q=c.jsx(pC,{ref:r,id:S,disabled:d,"aria-describedby":A,className:R("peer inline-flex shrink-0 cursor-pointer items-center rounded-full border border-transparent bg-[color:var(--ldkj-color-muted)] p-0.5 transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)] focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:bg-[color:var(--ldkj-color-primary)] data-[state=unchecked]:bg-[color:var(--ldkj-color-muted)]",gC[v],w,t,o),style:D(g,P),...b,children:c.jsx(vC,{className:R("pointer-events-none block rounded-full bg-[color:var(--ldkj-color-switch-thumb)] shadow-sm ring-0 transition-transform","data-[state=unchecked]:translate-x-0",xC[v])})});if(m===void 0&&a===void 0)return q;const E=c.jsxs("span",{className:"flex min-w-0 flex-col gap-0.5",children:[m!==void 0?c.jsx(vi,{htmlFor:S,className:R("text-sm font-medium leading-5 text-[color:var(--ldkj-color-foreground)]",d?"cursor-not-allowed opacity-60":"cursor-pointer"),children:m}):null,a!==void 0?c.jsx("span",{id:N,className:"text-xs leading-5 text-[color:var(--ldkj-color-muted-foreground)]",children:a}):null]});return c.jsxs("div",{className:R("inline-flex w-fit items-center gap-3",d?"cursor-not-allowed":void 0,C,s,n),style:D(i,k),children:[p==="left"?E:null,q,p==="right"?E:null]})});sh.displayName="Switch";function hn(e){const{value:r,defaultValue:t,onChange:o}=e,[n,s]=u.useState(t),i=r!==void 0,l=i?r:n,a=u.useCallback(d=>{i||s(d),o?.(d)},[i,o]);return[l,a,i]}function ih(e){const r=se();return re(e,r)}function bC(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function ki(e){return e==="center"?"justify-center text-center":e==="right"?"justify-end text-right":"justify-start text-left"}function yC(e){return c.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",fill:"none",...e,children:c.jsx("path",{d:"M4 6L8 10L12 6",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}function wC(e){return c.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",fill:"none",...e,children:c.jsx("path",{d:"M6 4L10 8L6 12",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}function PC(e){return c.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",fill:"none",...e,children:[c.jsx("path",{d:"M4.5 4.5L11.5 11.5",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),c.jsx("path",{d:"M11.5 4.5L4.5 11.5",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]})}function Pc(){return c.jsx("span",{className:"inline-block h-3.5 w-3.5 animate-spin rounded-full border-2 border-[color:var(--ldkj-color-border)] border-t-[color:var(--ldkj-color-primary)]","aria-hidden":"true"})}function lh(e){const{open:r,title:t,cancelText:o="取消",confirmText:n="确定",confirmDisabled:s=!1,maxHeight:i="76vh",children:l,className:a,class:d,style:f,sx:m,onCancel:p,onConfirm:v,onOpenChange:g}=e,{sxClassName:h,sxInlineStyle:y}=ih(m);if(u.useEffect(()=>{if(!r||typeof document>"u")return;const x=document.body.style.overflow;document.body.style.overflow="hidden";const w=P=>{P.key==="Escape"&&(p?.(),g?.(!1))};return document.addEventListener("keydown",w),()=>{document.body.style.overflow=x,document.removeEventListener("keydown",w)}},[p,g,r]),!r)return null;const b=()=>{p?.(),g?.(!1)};return c.jsxs("div",{className:"fixed inset-0 z-[var(--ldkj-z-drawer)]",children:[c.jsx("button",{type:"button","aria-label":"关闭选择面板",className:"absolute inset-0 h-full w-full cursor-default border-0 bg-[color:var(--ldkj-color-overlay)] p-0",onClick:b}),c.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":typeof t=="string"?t:"移动端选择面板",className:R("absolute bottom-0 left-0 right-0 flex max-h-[76vh] flex-col overflow-hidden rounded-t-xl bg-[color:var(--ldkj-color-surface)] text-[color:var(--ldkj-color-surface-foreground)] shadow-[var(--ldkj-shadow-modal)]",h,a,d),style:D({maxHeight:bC(i)},f,y),children:[c.jsxs("div",{className:"flex min-h-12 shrink-0 items-center gap-3 border-b border-[color:var(--ldkj-color-border)] px-4",children:[t?c.jsx("div",{className:"min-w-0 flex-1 truncate text-left text-sm font-medium text-[color:var(--ldkj-color-foreground)]",children:t}):c.jsx("div",{className:"min-w-0 flex-1"}),c.jsxs("div",{className:"flex shrink-0 items-center justify-end gap-2",children:[c.jsx("button",{type:"button",className:"rounded-md bg-[color:var(--ldkj-color-accent)] px-3 py-1.5 text-sm font-medium text-[color:var(--ldkj-color-primary)] transition-colors hover:bg-[color:var(--ldkj-color-accent-hover)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)]",onClick:b,children:o}),c.jsx("button",{type:"button",className:"rounded-md bg-[color:var(--ldkj-color-primary)] px-3 py-1.5 text-sm font-medium text-[color:var(--ldkj-color-primary-foreground)] transition-colors hover:bg-[color:var(--ldkj-color-primary-hover)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)] disabled:cursor-not-allowed disabled:opacity-50",disabled:s,onClick:v,children:n})]})]}),l]})]})}const jl=u.forwardRef((e,r)=>{const{open:t=!1,clearable:o=!1,hasValue:n=!1,placeholder:s="请选择",display:i,className:l,class:a,style:d,sx:f,disabled:m,readOnly:p,onClear:v,...g}=e,{sxClassName:h,sxInlineStyle:y}=ih(f);return c.jsxs("span",{className:"relative inline-flex w-full items-stretch",children:[c.jsxs("button",{ref:r,type:"button",className:R("flex h-10 w-full min-w-0 items-center gap-2 rounded-md border border-solid border-[color:var(--ldkj-color-input)] bg-[color:var(--ldkj-color-surface)] px-3 text-left text-sm text-[color:var(--ldkj-color-foreground)] shadow-sm transition-colors","focus-visible:border-[color:var(--ldkj-color-primary)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)]","disabled:cursor-not-allowed disabled:bg-[color:var(--ldkj-color-surface-muted)] disabled:text-[color:var(--ldkj-color-muted-foreground)] disabled:opacity-70",p&&"cursor-default",o&&n&&!m&&!p?"pr-16":"pr-9",h,l,a),style:D(d,y),disabled:m,"aria-haspopup":"dialog","aria-expanded":t,"aria-disabled":m||void 0,"aria-readonly":p||void 0,...g,children:[c.jsx("span",{className:R("min-w-0 flex-1 truncate",!n&&"text-[color:var(--ldkj-color-muted-foreground)]"),children:n?i:s}),c.jsx(yC,{className:"absolute right-3 h-4 w-4 text-[color:var(--ldkj-color-muted-foreground)]"})]}),o&&n&&!m&&!p?c.jsx("button",{type:"button",className:"absolute right-8 top-1/2 z-10 -translate-y-1/2 rounded p-1 text-[color:var(--ldkj-color-muted-foreground)] transition-colors hover:text-[color:var(--ldkj-color-foreground)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)]","aria-label":"清除选择",onMouseDown:b=>b.preventDefault(),onClick:b=>{b.preventDefault(),b.stopPropagation(),v?.(b)},children:c.jsx(PC,{className:"h-3.5 w-3.5"})}):null]})});jl.displayName="MobileTrigger";function ah(e){return"options"in e}function CC(e){return e.map(r=>ah(r)?{type:"group",label:r.label,options:r.options,separator:r.separator}:{type:"plain",option:r})}function kC(e){const r=[];for(const t of e)ah(t)?r.push(...t.options):r.push(t);return r}const ch=u.forwardRef((e,r)=>{const{options:t=[],value:o,defaultValue:n="",onValueChange:s,open:i,defaultOpen:l=!1,onOpenChange:a,placeholder:d="请选择",title:f="请选择",cancelText:m,confirmText:p,clearable:v=!1,readOnly:g=!1,required:h,align:y="left",displayRender:b,renderOption:x,drawerClassName:w,drawerClass:P,drawerStyle:C,drawerSx:k,maxDrawerHeight:j,optionClassName:S,optionClass:N,optionStyle:A,optionSx:q,className:E,class:I,style:_,sx:O,disabled:T=!1,name:$,id:M,autoFocus:W,onClick:F,onFocus:X,onBlur:ue,onKeyDown:ee,...Q}=e,[K,J,B]=hn({value:o,defaultValue:n}),[G,H]=hn({value:i,defaultValue:l,onChange:a}),[U,Y]=u.useState(K),Z=u.useRef(null),ae=se(),fe=u.useMemo(()=>kC(t),[t]),ve=u.useMemo(()=>CC(t),[t]),ge=u.useMemo(()=>fe.find(de=>de.value===K),[fe,K]),ie=u.useMemo(()=>fe.find(de=>de.value===U),[fe,U]),we=K!==""&&!!ge,Ne=we?b?.(ge)??ge?.label:d;u.useEffect(()=>{G&&Y(K)},[G,K]);const Me=u.useCallback((de,_e)=>{B||J(de),s?.(de,_e)},[s,J,B]),oe=u.useCallback(de=>{T||g||(Y(""),Me("",{reason:"clear",event:de}))},[Me,T,g]),Pe=u.useCallback(()=>{if(T||g){H(!1);return}if(!ie){H(!1);return}Me(ie.value,{reason:"select",option:ie}),H(!1)},[Me,T,ie,g,H]),Ce=u.useCallback(()=>{T||H(!0)},[T,H]);return u.useImperativeHandle(r,()=>({focus:()=>Z.current?.focus(),blur:()=>Z.current?.blur(),open:Ce,close:()=>H(!1),clear:()=>oe(),getValue:()=>K}),[oe,Ce,K,H]),c.jsxs(c.Fragment,{children:[c.jsx(jl,{ref:Z,id:M,open:G,clearable:v,hasValue:we,placeholder:d,display:Ne,className:E,class:I,style:_,sx:O,disabled:T,readOnly:g,autoFocus:W,onClear:oe,onClick:de=>{F?.(de),Ce()},onFocus:X,onBlur:ue,onKeyDown:de=>{ee?.(de),!T&&((de.key==="ArrowDown"||de.key==="Enter")&&(de.preventDefault(),Ce()),de.key==="Escape"&&(de.preventDefault(),H(!1)))},...Q}),c.jsx(lh,{open:G,title:f,cancelText:m,confirmText:p,confirmDisabled:!ie||!!ie.disabled,maxHeight:j,className:w,class:P,style:C,sx:k,onCancel:()=>Y(K),onConfirm:Pe,onOpenChange:H,children:c.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-4 py-2",children:ve.length===0?c.jsx("div",{className:"flex min-h-32 items-center justify-center text-sm text-[color:var(--ldkj-color-muted-foreground)]",children:"暂无可选项"}):c.jsx("div",{className:"grid gap-1",children:ve.map((de,_e)=>{if(de.type==="plain"){const he=de.option,te=U===he.value,me={active:te,checked:te,disabled:!!he.disabled},ke=re([q,he.sx],ae);return c.jsx("button",{type:"button",className:R("flex min-h-10 w-full items-center rounded-md px-3 py-2 text-sm transition-colors",ki(y),te?"bg-[color:var(--ldkj-color-primary)] text-[color:var(--ldkj-color-primary-foreground)]":"text-[color:var(--ldkj-color-foreground)] hover:bg-[color:var(--ldkj-color-accent)] hover:text-[color:var(--ldkj-color-accent-foreground)]",he.disabled&&"cursor-not-allowed bg-transparent text-[color:var(--ldkj-color-muted-foreground)] opacity-70 hover:bg-transparent hover:text-[color:var(--ldkj-color-muted-foreground)]",ke.sxClassName,S,N,he.className,he.class),style:D(A,ke.sxInlineStyle,he.style),disabled:T||g||he.disabled,onClick:Te=>{Te.preventDefault(),Y(he.value)},children:c.jsx("span",{className:"min-w-0 truncate",children:x?x(he,me):he.label})},he.value)}return c.jsxs("div",{className:R(de.separator&&_e>0&&"border-t border-[color:var(--ldkj-color-border)] pt-2"),children:[de.label?c.jsx("div",{className:"px-3 py-2 text-xs font-medium text-[color:var(--ldkj-color-muted-foreground)]",children:de.label}):null,c.jsx("div",{className:"grid gap-1",children:de.options.map(he=>{const te=U===he.value,me={active:te,checked:te,disabled:!!he.disabled},ke=re([q,he.sx],ae);return c.jsx("button",{type:"button",className:R("flex min-h-10 w-full items-center rounded-md px-3 py-2 text-sm transition-colors",ki(y),te?"bg-[color:var(--ldkj-color-primary)] text-[color:var(--ldkj-color-primary-foreground)]":"text-[color:var(--ldkj-color-foreground)] hover:bg-[color:var(--ldkj-color-accent)] hover:text-[color:var(--ldkj-color-accent-foreground)]",he.disabled&&"cursor-not-allowed bg-transparent text-[color:var(--ldkj-color-muted-foreground)] opacity-70 hover:bg-transparent hover:text-[color:var(--ldkj-color-muted-foreground)]",ke.sxClassName,S,N,he.className,he.class),style:D(A,ke.sxInlineStyle,he.style),disabled:T||g||he.disabled,onClick:Te=>{Te.preventDefault(),Y(he.value)},children:c.jsx("span",{className:"min-w-0 truncate",children:x?x(he,me):he.label})},he.value)})})]},`group-${_e}`)})})})}),$?c.jsx("input",{type:"hidden",name:$,required:h,value:K}):null]})});ch.displayName="MobileSelect";function Wt(e){return Array.isArray(e)?e.filter(r=>r!==""):[]}function jC(e){return Array.isArray(e)?e:[]}function Vt(e,r){return e?.[r]??r}function SC(e,r){const t=Vt(r,"value");return typeof e[t]=="string"?e[t]:e.value}function NC(e,r){const t=Vt(r,"label");return e[t]??e.label??e.value??""}function qC(e,r){const t=Vt(r,"children");return jC(e[t])}function EC(e,r){const t=Vt(r,"disabled");return!!(e[t]??e.disabled)}function RC(e,r){const t=Vt(r,"isLeaf"),o=e[t];return typeof o=="boolean"?o:e.isLeaf}function AC(e,r){const t=Vt(r,"loading");return!!(e[t]??e.loading)}function IC(e,r){const t=SC(e,r);if(typeof t!="string"||t.length===0)return null;const o=qC(e,r),n=RC(e,r),s=typeof n=="boolean"?n:o.length===0;return{option:e,value:t,label:NC(e,r),children:o,disabled:EC(e,r),isLeaf:s,loading:AC(e,r)}}function Zo(e,r){const t=[];for(const o of e){const n=IC(o,r);n&&t.push(n)}return t}function Bo(e,r,t){const o=[],n=[];let s=e;for(const i of r){const l=Zo(s,t).find(a=>a.value===i);if(!l)break;o.push(l),n.push(l.label),s=l.children}return{matched:o,labels:n,path:o.map(i=>i.value)}}function TC(e,r,t){const o=[Zo(e,t)];let n=e;for(const s of r){const i=Zo(n,t).find(l=>l.value===s);if(!i||i.children.length===0)break;n=i.children,o.push(Zo(n,t))}return o}function ks(e,r){return r.every((t,o)=>e[o]===t)}function _C(e,r){return c.jsx(c.Fragment,{children:e.map((t,o)=>c.jsxs(u.Fragment,{children:[o>0?c.jsx("span",{className:"mx-1 text-[color:var(--ldkj-color-muted-foreground)]",children:r}):null,c.jsx("span",{className:"min-w-0 truncate",children:t})]},o))})}function OC(e){return`第${e+1}级`}const uh=u.forwardRef((e,r)=>{const{options:t=[],value:o,defaultValue:n=[],onValueChange:s,open:i,defaultOpen:l=!1,onOpenChange:a,placeholder:d="请选择",title:f="请选择",cancelText:m,confirmText:p,separator:v="/",displayRender:g,renderOption:h,fieldNames:y,changeOnSelect:b=!1,clearable:x=!1,readOnly:w=!1,required:P,loadData:C,align:k="left",levelLabels:j,drawerClassName:S,drawerClass:N,drawerStyle:A,drawerSx:q,maxDrawerHeight:E,optionClassName:I,optionClass:_,optionStyle:O,optionSx:T,className:$,class:M,style:W,sx:F,disabled:X=!1,name:ue,id:ee,autoFocus:Q,onClick:K,onFocus:J,onBlur:B,onKeyDown:G,...H}=e,U=o===void 0?void 0:Wt(o),[Y,Z,ae]=hn({value:U,defaultValue:Wt(n)}),[fe,ve]=hn({value:i,defaultValue:l,onChange:a}),[ge,ie]=u.useState(()=>Wt(n)),[we,Ne]=u.useState(0),[Me,oe]=u.useState(null),Pe=u.useRef(null),Ce=u.useRef(!0),de=u.useRef(C),_e=se();u.useEffect(()=>()=>{Ce.current=!1},[]),u.useEffect(()=>{de.current=C},[C]),u.useEffect(()=>{if(fe){const V=Wt(Y);ie(V),Ne(Math.max(V.length-1,0))}},[fe,Y]);const he=u.useMemo(()=>Bo(t,Y,y),[y,t,Y]),te=he.matched.map(V=>V.option),me=u.useMemo(()=>Bo(t,ge,y),[y,t,ge]),ke=u.useMemo(()=>TC(t,ge,y),[y,t,ge]),Te=Math.min(we,Math.max(ke.length-1,0)),er=ke[Te]??[],Ke=me.matched[me.matched.length-1],ur=me.path.length===0||!!Ke?.disabled||!b&&!!Ke&&!Ke?.isLeaf&&(Ke?.children.length??0)>0,yr=u.useMemo(()=>he.labels.length>0?g?g(he.labels,te):_C(he.labels,v):d,[g,d,te,he.labels,v]),He=u.useCallback((V,z)=>{const ce=Bo(t,Wt(V),y);ae||Z(ce.path),s?.(ce.path,{...z,path:ce.path,options:ce.matched.map(xe=>xe.option),labels:ce.labels})},[y,s,t,Z,ae]),nr=u.useCallback(V=>{X||w||(ie([]),Ne(0),He([],{reason:"clear",event:V}))},[He,X,w]),Ge=u.useCallback(()=>{if(X||w){ve(!1);return}ur||(He(me.path,{reason:"select",option:Ke?.option}),ve(!1))},[He,ur,X,Ke?.option,me.path,w,ve]),Lr=u.useCallback(async(V,z,ce)=>{if(X||w||V.disabled)return;const xe=[...ge.slice(0,z),V.value],je=V.children.length>0,Ie=!V.isLeaf&&!je&&!!de.current,rr=je||Ie,sr=xe.join("");if(ie(xe),Ne(rr?z+1:z),Ie&&de.current){const dr=Bo(t,xe,y);oe(sr);try{await de.current(dr.matched.map(mr=>mr.option),{option:V.option,path:xe,options:t})}finally{Ce.current&&oe(mr=>mr===sr?null:mr)}}b&&!rr&&ce.currentTarget.focus()},[b,X,y,t,ge,w]),Ye=u.useCallback(()=>{X||ve(!0)},[X,ve]);return u.useImperativeHandle(r,()=>({focus:()=>Pe.current?.focus(),blur:()=>Pe.current?.blur(),open:Ye,close:()=>ve(!1),clear:()=>nr(),getValue:()=>Y.slice()}),[nr,Ye,Y,ve]),c.jsxs(c.Fragment,{children:[c.jsx(jl,{ref:Pe,id:ee,open:fe,clearable:x,hasValue:he.path.length>0,placeholder:d,display:yr,className:$,class:M,style:W,sx:F,disabled:X,readOnly:w,autoFocus:Q,onClear:nr,onClick:V=>{K?.(V),Ye()},onFocus:J,onBlur:B,onKeyDown:V=>{G?.(V),!X&&((V.key==="ArrowDown"||V.key==="Enter")&&(V.preventDefault(),Ye()),V.key==="Escape"&&(V.preventDefault(),ve(!1)))},...H}),c.jsx(lh,{open:fe,title:f,cancelText:m,confirmText:p,confirmDisabled:ur,maxHeight:E,className:S,class:N,style:A,sx:q,onCancel:()=>{ie(Y),Ne(Math.max(Y.length-1,0))},onConfirm:Ge,onOpenChange:ve,children:c.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[c.jsx("div",{className:"flex shrink-0 border-b border-[color:var(--ldkj-color-border)] px-4",children:ke.map((V,z)=>{const ce=Te===z,xe=me.labels[z]??OC(z),je=j?.[z]??xe;return c.jsxs("button",{type:"button",className:R("relative min-h-10 min-w-12 px-3 text-sm text-[color:var(--ldkj-color-foreground)] transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)]/30",ce&&"font-medium text-[color:var(--ldkj-color-primary)]"),onClick:()=>Ne(z),children:[je,ce?c.jsx("span",{className:"absolute bottom-0 left-3 right-3 h-0.5 rounded-full bg-[color:var(--ldkj-color-primary)]"}):null]},`level-${z}`)})}),c.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-4 py-2",children:er.length===0?c.jsx("div",{className:"flex min-h-32 items-center justify-center text-sm text-[color:var(--ldkj-color-muted-foreground)]",children:Me?c.jsxs("span",{className:"inline-flex items-center gap-2",children:[c.jsx(Pc,{}),"加载中"]}):"暂无可选项"}):c.jsx("div",{className:"grid gap-1",children:er.map(V=>{const z=[...ge.slice(0,Te),V.value],ce=me.path.length===z.length&&ks(me.path,z),xe=ks(me.path,z)||ks(z,me.path),je=Me===z.join("")||V.loading,Ie=V.children.length>0||!V.isLeaf&&!!de.current&&!je,rr={active:xe,checked:ce,disabled:V.disabled,hasChildren:Ie,isLeaf:V.isLeaf,level:Te,loading:je,path:z,selected:ce},sr=re([T,V.option.sx],_e);return c.jsxs("button",{type:"button",className:R("flex min-h-10 w-full items-center gap-2 rounded-md px-3 py-2 text-sm transition-colors",ki(k),ce?"bg-[color:var(--ldkj-color-primary)] text-[color:var(--ldkj-color-primary-foreground)]":"text-[color:var(--ldkj-color-foreground)] hover:bg-[color:var(--ldkj-color-accent)] hover:text-[color:var(--ldkj-color-accent-foreground)]",xe&&!ce&&"bg-[color:var(--ldkj-color-muted)] text-[color:var(--ldkj-color-foreground)]",V.disabled&&"cursor-not-allowed bg-transparent text-[color:var(--ldkj-color-muted-foreground)] opacity-70 hover:bg-transparent hover:text-[color:var(--ldkj-color-muted-foreground)]",sr.sxClassName,I,_,V.option.className,V.option.class),style:D(O,sr.sxInlineStyle,V.option.style),disabled:X||w||V.disabled,onClick:dr=>{dr.preventDefault(),Lr(V,Te,dr)},children:[c.jsx("span",{className:"min-w-0 flex-1 truncate",children:h?h(V.option,rr):V.label}),je?c.jsx(Pc,{}):Ie?c.jsx(wC,{className:R("h-4 w-4 shrink-0",ce?"text-[color:var(--ldkj-color-primary-foreground)]":"text-[color:var(--ldkj-color-muted-foreground)]")}):null]},z.join(""))})})})]})}),ue?c.jsx("input",{type:"hidden",name:ue,required:P,value:Y.length>0?JSON.stringify(Y):""}):null]})});uh.displayName="MobileCascader";function MC(e,r=500){const t=Oe.useRef(null),o=Oe.useCallback(()=>{t.current=setTimeout(e,r)},[e,r]),n=Oe.useCallback(()=>{t.current&&clearTimeout(t.current)},[]);return{onMouseDown:o,onMouseUp:n,onMouseLeave:n,onTouchStart:o,onTouchEnd:n}}function LC(){return c.jsx("span",{className:"h-6 w-6 animate-spin rounded-full border-2 border-[color:var(--ldkj-color-border)] border-t-[color:var(--ldkj-color-primary)]","aria-hidden":"true"})}function Se(e){const{component:r,sx:t,rounded:o,shadow:n,onLongPress:s,longPressDelay:i=500,style:l,className:a,class:d,loading:f=!1,loadingContent:m,modal:p=!1,modalContent:v,onModalMaskClick:g,children:h,...y}=e,b=r??"div",x=se(),{roundedPreset:w,roundedStyle:P}=ht(o),{shadowPreset:C,shadowStyle:k}=ho(n),j=MC(()=>{s?.()},i),{sxClassName:S,sxInlineStyle:N}=re(t,x),q=(f||p)&&l?.position===void 0?{position:"relative"}:void 0;return c.jsxs(b,{className:R(w&&Yr[w],C&&Ot[C],S,a,d),style:D(l,P,k,q,N),"aria-busy":f||void 0,...s?j:void 0,...y,children:[h,f?c.jsx("div",{className:"box-loading-mask absolute inset-0 z-10 flex items-center justify-center bg-[color:var(--ldkj-color-background)]/65","aria-hidden":"true",children:m??c.jsx(LC,{})}):null,p?c.jsx("div",{className:"box-modal-mask absolute inset-0 z-20 flex items-center justify-center bg-[color:var(--ldkj-color-overlay)] p-4",onClick:g,children:c.jsx("div",{className:"box-modal-content max-w-full rounded-lg bg-[color:var(--ldkj-color-popover)] p-4 text-[color:var(--ldkj-color-popover-foreground)] shadow-lg",onClick:E=>E.stopPropagation(),children:v})}):null]})}Se.displayName="Box";const Cc={outlined:"border border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-surface)] text-[color:var(--ldkj-color-surface-foreground)]",elevated:"border border-transparent bg-[color:var(--ldkj-color-surface)] text-[color:var(--ldkj-color-surface-foreground)]",filled:"border border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-surface-muted)] text-[color:var(--ldkj-color-foreground)]",ghost:"border border-transparent bg-transparent shadow-none"},kc={elevated:"md"},DC={none:"p-0",sm:"p-3",md:"p-4",lg:"p-6"};function eo(e){return e!=null}function FC(e){let r=!1;return u.Children.forEach(e,t=>{u.isValidElement(t)&&BC(t.type)&&(r=!0)}),r}function BC(e){return e===dh||e===fh||e===mh||e===Sl||e===Kn||e===Nl||e===Gn}function $C(e){return e===Sl||e===Kn||e===Nl||e===Gn}function VC(e){const r=[],t=[],o=[];return u.Children.forEach(e,n=>{if(u.isValidElement(n)&&$C(n.type)){n.type===Kn||n.type===Gn?o.push(n):r.push(n);return}t.push(n)}),{startSlots:r,mainSlots:t,endSlots:o,hasSideSlots:r.length>0||o.length>0}}function $o(e,r){return e===!0||e===r}function js(e){return DC[e]}function jc(e,r){return eo(e)?e:r}function Sc(e,r){return e??r}const dh=e=>c.jsx(Se,{...e,"data-card-slot":"header"}),fh=e=>c.jsx(Se,{...e,"data-card-slot":"content"}),mh=e=>c.jsx(Se,{...e,"data-card-slot":"footer"}),Sl=e=>c.jsx(Se,{...e,"data-card-slot":"left"}),Kn=e=>c.jsx(Se,{...e,"data-card-slot":"right"}),Nl=e=>c.jsx(Se,{...e,"data-card-slot":"start"}),Gn=e=>c.jsx(Se,{...e,"data-card-slot":"end"});function zC(e){const{variant:r="outlined",padding:t="md",divided:o=!0,hoverable:n=!1,selected:s=!1,disabled:i=!1,header:l,footer:a,left:d,right:f,start:m,end:p,contentLoading:v=!1,headerProps:g,footerProps:h,leftProps:y,rightProps:b,startProps:x,endProps:w,contentProps:P,children:C,className:k,style:j,rounded:S="lg",shadow:N,onClick:A,...q}=e,E=jc(d,m),I=jc(f,p),_=Sc(y,x),O=Sc(b,w),T=FC(C),{startSlots:$,mainSlots:M,endSlots:W,hasSideSlots:F}=VC(C),{className:X,style:ue,loading:ee,...Q}=P??{};return T?c.jsx(Se,{rounded:S,shadow:N??kc[r],className:R("card flex overflow-hidden",Cc[r],n&&!i&&"transition hover:-translate-y-0.5 hover:shadow-lg",s&&"border-[color:var(--ldkj-color-primary)] ring-2 ring-[color:var(--ldkj-color-ring)]",i&&"pointer-events-none opacity-50",k),style:D(j,{flexDirection:F?"row":"column"}),"aria-disabled":i||void 0,onClick:i?void 0:A,...q,children:F?c.jsxs(c.Fragment,{children:[$,c.jsx(Se,{className:"card-main flex min-w-0 flex-1 flex-col",children:M}),W]}):C}):c.jsxs(Se,{rounded:S,shadow:N??kc[r],className:R("card flex overflow-hidden",Cc[r],n&&!i&&"transition hover:-translate-y-0.5 hover:shadow-lg",s&&"border-[color:var(--ldkj-color-primary)] ring-2 ring-[color:var(--ldkj-color-ring)]",i&&"pointer-events-none opacity-50",k),style:D(j,{flexDirection:"row"}),"aria-disabled":i||void 0,onClick:i?void 0:A,...q,children:[eo(E)?c.jsx(Se,{..._,className:R("card-left shrink-0",$o(o,"x")&&"border-r border-[color:var(--ldkj-color-border)]",_?.className),children:E}):null,c.jsxs(Se,{className:"card-main flex min-w-0 flex-1 flex-col",children:[eo(l)?c.jsx(Se,{...g,className:R("card-header",js(t),$o(o,"y")&&"border-b border-[color:var(--ldkj-color-border)]",g?.className),children:l}):null,c.jsx(Se,{...Q,className:R("card-content min-w-0 flex-1",js(t),X),style:ue,loading:v||ee,children:C}),eo(a)?c.jsx(Se,{...h,className:R("card-footer",js(t),$o(o,"y")&&"border-t border-[color:var(--ldkj-color-border)]",h?.className),children:a}):null]}),eo(I)?c.jsx(Se,{...O,className:R("card-right shrink-0",$o(o,"x")&&"border-l border-[color:var(--ldkj-color-border)]",O?.className),children:I}):null]})}const Mr=Object.assign(zC,{Header:dh,Content:fh,Footer:mh,Left:Sl,Right:Kn,Start:Nl,End:Gn});Mr.displayName="Card";Mr.Header.displayName="Card.Header";Mr.Content.displayName="Card.Content";Mr.Footer.displayName="Card.Footer";Mr.Left.displayName="Card.Left";Mr.Right.displayName="Card.Right";Mr.Start.displayName="Card.Start";Mr.End.displayName="Card.End";function HC(e,r=[]){let t=[];function o(s,i){const l=u.createContext(i);l.displayName=s+"Context";const a=t.length;t=[...t,i];const d=m=>{const{scope:p,children:v,...g}=m,h=p?.[e]?.[a]||l,y=u.useMemo(()=>g,Object.values(g));return c.jsx(h.Provider,{value:y,children:v})};d.displayName=s+"Provider";function f(m,p){const v=p?.[e]?.[a]||l,g=u.useContext(v);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[d,f]}const n=()=>{const s=t.map(i=>u.createContext(i));return function(l){const a=l?.[e]||s;return u.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return n.scopeName=e,[o,UC(n,...r)]}function UC(...e){const r=e[0];if(e.length===1)return r;const t=()=>{const o=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(s){const i=o.reduce((l,{useScope:a,scopeName:d})=>{const m=a(s)[`__scope${d}`];return{...l,...m}},{});return u.useMemo(()=>({[`__scope${r.scopeName}`]:i}),[i])}};return t.scopeName=r.scopeName,t}function WC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vo={exports:{}},Ss={};var Nc;function KC(){if(Nc)return Ss;Nc=1;var e=Oe;function r(m,p){return m===p&&(m!==0||1/m===1/p)||m!==m&&p!==p}var t=typeof Object.is=="function"?Object.is:r,o=e.useState,n=e.useEffect,s=e.useLayoutEffect,i=e.useDebugValue;function l(m,p){var v=p(),g=o({inst:{value:v,getSnapshot:p}}),h=g[0].inst,y=g[1];return s(function(){h.value=v,h.getSnapshot=p,a(h)&&y({inst:h})},[m,v,p]),n(function(){return a(h)&&y({inst:h}),m(function(){a(h)&&y({inst:h})})},[m]),i(v),v}function a(m){var p=m.getSnapshot;m=m.value;try{var v=p();return!t(m,v)}catch{return!0}}function d(m,p){return p()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:l;return Ss.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Ss}var Ns={};var qc;function GC(){return qc||(qc=1,process.env.NODE_ENV!=="production"&&(function(){function e(v,g){return v===g&&(v!==0||1/v===1/g)||v!==v&&g!==g}function r(v,g){f||n.startTransition===void 0||(f=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var h=g();if(!m){var y=g();s(h,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),m=!0)}y=i({inst:{value:h,getSnapshot:g}});var b=y[0].inst,x=y[1];return a(function(){b.value=h,b.getSnapshot=g,t(b)&&x({inst:b})},[v,h,g]),l(function(){return t(b)&&x({inst:b}),v(function(){t(b)&&x({inst:b})})},[v]),d(h),h}function t(v){var g=v.getSnapshot;v=v.value;try{var h=g();return!s(v,h)}catch{return!0}}function o(v,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=Oe,s=typeof Object.is=="function"?Object.is:e,i=n.useState,l=n.useEffect,a=n.useLayoutEffect,d=n.useDebugValue,f=!1,m=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?o:r;Ns.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Ns}var Ec;function YC(){return Ec||(Ec=1,process.env.NODE_ENV==="production"?Vo.exports=KC():Vo.exports=GC()),Vo.exports}var XC=YC();function JC(){return XC.useSyncExternalStore(QC,()=>!0,()=>!1)}function QC(){return()=>{}}var ql="Avatar",[ZC]=HC(ql),[ek,hh]=ZC(ql),ph=u.forwardRef((e,r)=>{const{__scopeAvatar:t,...o}=e,[n,s]=u.useState("idle");return c.jsx(ek,{scope:t,imageLoadingStatus:n,onImageLoadingStatusChange:s,children:c.jsx(On.span,{...o,ref:r})})});ph.displayName=ql;var vh="AvatarImage",gh=u.forwardRef((e,r)=>{const{__scopeAvatar:t,src:o,onLoadingStatusChange:n=()=>{},...s}=e,i=hh(vh,t),l=rk(o,s),a=Ar(d=>{n(d),i.onImageLoadingStatusChange(d)});return Ve(()=>{l!=="idle"&&a(l)},[l,a]),l==="loaded"?c.jsx(On.img,{...s,ref:r,src:o}):null});gh.displayName=vh;var xh="AvatarFallback",bh=u.forwardRef((e,r)=>{const{__scopeAvatar:t,delayMs:o,...n}=e,s=hh(xh,t),[i,l]=u.useState(o===void 0);return u.useEffect(()=>{if(o!==void 0){const a=window.setTimeout(()=>l(!0),o);return()=>window.clearTimeout(a)}},[o]),i&&s.imageLoadingStatus!=="loaded"?c.jsx(On.span,{...n,ref:r}):null});bh.displayName=xh;function Rc(e,r){return e?r?(e.src!==r&&(e.src=r),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function rk(e,{referrerPolicy:r,crossOrigin:t}){const o=JC(),n=u.useRef(null),s=o?(n.current||(n.current=new window.Image),n.current):null,[i,l]=u.useState(()=>Rc(s,e));return Ve(()=>{l(Rc(s,e))},[s,e]),Ve(()=>{const a=m=>()=>{l(m)};if(!s)return;const d=a("loaded"),f=a("error");return s.addEventListener("load",d),s.addEventListener("error",f),r&&(s.referrerPolicy=r),typeof t=="string"&&(s.crossOrigin=t),()=>{s.removeEventListener("load",d),s.removeEventListener("error",f)}},[s,t,r]),i}var tk=ph,ok=gh,nk=bh;const yh={xs:"h-6 w-6 text-[10px]",sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base",xl:"h-16 w-16 text-lg"};function sk(e){if(e!==void 0){if(typeof e=="number")return`${e}px`;if(!(typeof e=="string"&&e in yh))return e}}const wh=u.forwardRef((e,r)=>{const{className:t,class:o,sx:n,style:s,size:i="md",rounded:l="full",shadow:a,...d}=e,f=se(),{sxClassName:m,sxInlineStyle:p}=re(n,f),{roundedPreset:v,roundedStyle:g}=ht(l),{shadowPreset:h,shadowStyle:y}=ho(a),b=sk(i);return c.jsx(tk,{ref:r,className:R("avatar relative inline-flex shrink-0 select-none items-center justify-center overflow-hidden bg-[color:var(--ldkj-color-muted)] text-[color:var(--ldkj-color-muted-foreground)]",typeof i=="string"?yh[i]:null,v?Yr[v]:null,h?Ot[h]:null,m,t,o),style:D(s,g,y,b?{width:b,height:b}:void 0,p),...d})}),El=u.forwardRef((e,r)=>{const{className:t,class:o,sx:n,style:s,...i}=e,l=se(),{sxClassName:a,sxInlineStyle:d}=re(n,l);return c.jsx(ok,{ref:r,className:R("avatar-image h-full w-full object-cover",a,t,o),style:D(s,d),...i})}),Rl=u.forwardRef((e,r)=>{const{className:t,class:o,sx:n,style:s,...i}=e,l=se(),{sxClassName:a,sxInlineStyle:d}=re(n,l);return c.jsx(nk,{ref:r,className:R("avatar-fallback flex h-full w-full items-center justify-center bg-[color:var(--ldkj-color-muted)] font-medium text-[color:var(--ldkj-color-muted-foreground)]",a,t,o),style:D(s,d),...i})}),Ph=Object.assign(wh,{Image:El,Fallback:Rl});wh.displayName="Avatar";El.displayName="Avatar.Image";Rl.displayName="Avatar.Fallback";Ph.displayName="Avatar";const Ch=Cu("inline-flex items-center justify-center whitespace-nowrap rounded border border-transparent font-medium transition-colors duration-150",{variants:{variant:{primary:"",success:"",warning:"",danger:"",minor:"",dark:"",light:"",text:""},outline:{true:"",false:""},size:{xs:"px-2 py-0.5 text-[10px]",sm:"px-2.5 py-0.5 text-xs",md:"px-2.5 py-1 text-xs",lg:"px-3 py-1 text-sm",xl:"px-3.5 py-1.5 text-sm"},rounded:Yr,shadow:Ot},compoundVariants:[{variant:"primary",outline:!1,className:"bg-[color:var(--ldkj-color-primary)] text-[color:var(--ldkj-color-primary-foreground)]"},{variant:"primary",outline:!0,className:"border-[color:var(--ldkj-color-primary)] text-[color:var(--ldkj-color-primary)]"},{variant:"success",outline:!1,className:"bg-[color:var(--ldkj-color-success)] text-[color:var(--ldkj-color-success-foreground)]"},{variant:"success",outline:!0,className:"border-[color:var(--ldkj-color-success)] text-[color:var(--ldkj-color-success)]"},{variant:"warning",outline:!1,className:"bg-[color:var(--ldkj-color-warning)] text-[color:var(--ldkj-color-warning-foreground)]"},{variant:"warning",outline:!0,className:"border-[color:var(--ldkj-color-warning)] text-[color:var(--ldkj-color-warning)]"},{variant:"danger",outline:!1,className:"bg-[color:var(--ldkj-color-danger)] text-[color:var(--ldkj-color-danger-foreground)]"},{variant:"danger",outline:!0,className:"border-[color:var(--ldkj-color-danger)] text-[color:var(--ldkj-color-danger)]"},{variant:"minor",outline:!1,className:"bg-[color:var(--ldkj-color-muted)] text-[color:var(--ldkj-color-muted-foreground)]"},{variant:"minor",outline:!0,className:"border-[color:var(--ldkj-color-border)] text-[color:var(--ldkj-color-muted-foreground)]"},{variant:"dark",outline:!1,className:"bg-[color:var(--ldkj-color-inverse)] text-[color:var(--ldkj-color-inverse-foreground)]"},{variant:"dark",outline:!0,className:"border-[color:var(--ldkj-color-inverse)] text-[color:var(--ldkj-color-inverse)]"},{variant:"light",outline:!1,className:"bg-[color:var(--ldkj-color-surface)] text-[color:var(--ldkj-color-surface-foreground)]"},{variant:"light",outline:!0,className:"border-[color:var(--ldkj-color-surface)] text-[color:var(--ldkj-color-surface)]"},{variant:"text",outline:!1,className:"bg-[color:var(--ldkj-color-surface-muted)] text-[color:var(--ldkj-color-muted-foreground)]"},{variant:"text",outline:!0,className:"border-[color:var(--ldkj-color-border)] text-[color:var(--ldkj-color-muted-foreground)]"}],defaultVariants:{variant:"primary",outline:!1,size:"md"}});function kh(e){const{component:r,variant:t,outline:o,size:n,rounded:s,shadow:i,sx:l,style:a,className:d,class:f,...m}=e,p=r??"span",{roundedPreset:v,roundedStyle:g}=ht(s),{shadowPreset:h,shadowStyle:y}=ho(i),b=se(),{sxClassName:x,sxInlineStyle:w}=re(l,b);return c.jsx(p,{className:R(Ch({variant:t,outline:o,size:n,rounded:v,shadow:h}),x,d,f),style:D(a,g,y,w),...m})}kh.displayName="Chip";const Ac={neutral:"bg-[color:var(--ldkj-color-muted)] text-[color:var(--ldkj-color-muted-foreground)]",primary:"bg-[color:var(--ldkj-color-primary)] text-[color:var(--ldkj-color-primary-foreground)]",success:"bg-[color:var(--ldkj-color-success)] text-[color:var(--ldkj-color-success-foreground)]",warning:"bg-[color:var(--ldkj-color-warning)] text-[color:var(--ldkj-color-warning-foreground)]",danger:"bg-[color:var(--ldkj-color-danger)] text-[color:var(--ldkj-color-danger-foreground)]"},ik={neutral:"bg-[color:var(--ldkj-color-surface-muted)] text-[color:var(--ldkj-color-muted-foreground)]",primary:"bg-[color:var(--ldkj-color-accent)] text-[color:var(--ldkj-color-primary)]",success:"bg-[color:var(--ldkj-color-accent)] text-[color:var(--ldkj-color-success)]",warning:"bg-[color:var(--ldkj-color-accent)] text-[color:var(--ldkj-color-warning)]",danger:"bg-[color:var(--ldkj-color-accent)] text-[color:var(--ldkj-color-danger)]"};function lk(e){const{className:r,class:t,sx:o,style:n,badgeContent:s,children:i,dot:l=!1,light:a=!1,showZero:d=!1,max:f=99,variant:m="neutral",...p}=e,v=se(),{sxClassName:g,sxInlineStyle:h}=re(o,v),y=typeof s=="number"?s:null,b=y===0&&!d,x=y!==null?y>f?`${f}+`:String(y):s,w=l?Ac[m]:a?ik[m]:Ac[m];return c.jsxs("span",{className:R("relative inline-flex",r,t),style:D(n,h),...p,children:[i,!b&&(l||x!==void 0)?c.jsx("span",{className:R("absolute -right-2 -top-2 inline-flex items-center justify-center rounded-full px-1 text-[10px] font-medium leading-4",w,l?"h-2 min-w-2 p-0":"min-w-4 h-4",g),children:l?null:x}):null]})}function ak(e){const{className:r,class:t,sx:o,style:n,bordered:s=!1,...i}=e,l=se(),{sxClassName:a,sxInlineStyle:d}=re(o,l);return c.jsx("ul",{className:R("m-0 list-none p-0",s&&"divide-y divide-[color:var(--ldkj-color-border)] rounded-md border border-[color:var(--ldkj-color-border)]",a,r,t),style:D(n,d),...i})}function ck(e){const{description:r="暂无数据",image:t,children:o,className:n,class:s,...i}=e;return c.jsxs(Se,{...i,className:R("flex flex-col items-center justify-center gap-2 py-10 text-[color:var(--ldkj-color-muted-foreground)]",n,s),children:[t??c.jsx("div",{className:"text-4xl",children:"◻"}),c.jsx("div",{className:"text-sm",children:r}),o]})}function Ic(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function uk(e){if(e!==void 0)return typeof e=="number"?String(e):e}function Kt(e,r,t){return Math.min(t,Math.max(r,e))}function dk(e,r){if(e.startsWith("data:")||e.startsWith("blob:")||e.includes("ldkj_retry="))return null;const t=e.match(/^([^?#]+)(\?[^#]*)?(#.*)?$/);if(!t)return null;const o=t[1],n=t[2]??"",s=t[3]??"",i=o.replace(/\.(png|jpe?g|webp|avif)$/i,`.${r}`);return i===o?null:`${i}${n}${s}`}function fk(e){return Array.from(new Set(e.filter(r=>Number.isFinite(r)&&r>0)))}function mk(e,r){const{width:t,height:o,crop:n}=r;if(!n||t===void 0||o===void 0||e.startsWith("data:")||e.startsWith("blob:")||e.includes("x-oss-process=")||e.includes("ldkj_retry="))return e;const s=`x-oss-process=image/resize,m_fill,w_${t},h_${o}`;return`${e}${e.includes("?")?"&":"?"}${s}`}const jh=u.forwardRef(function(r,t){const{className:o,class:n,sx:s,style:i,fallback:l,fallbackSrc:a,loadingFallback:d,fit:f,position:m,aspectRatio:p,placeholder:v,blurDataURL:g,retry:h=0,retryDelay:y=800,onLoadingChange:b,loader:x,quality:w,format:P,crop:C=!1,alt:k,src:j,width:S,height:N,sizes:A,loading:q,decoding:E,onLoad:I,onError:_,sources:O,formats:T,responsiveWidths:$,preview:M=!1,children:W,...F}=r,X=se(),{sxClassName:ue,sxInlineStyle:ee}=re(s,X),[Q,K]=u.useState(j?"loading":"idle"),[J,B]=u.useState(j),[G,H]=u.useState(!1),[U,Y]=u.useState(1),[Z,ae]=u.useState({x:0,y:0}),[fe,ve]=u.useState(!1),ge=u.useRef(0),ie=u.useRef(null),we=u.useRef(null),Ne=u.useRef(null),Me=u.useRef(null);u.useEffect(()=>{ge.current=0,B(j),K(j?"loading":"idle"),H(!1),Y(1),ae({x:0,y:0}),ve(!1)},[j]),u.useEffect(()=>{b?.(Q==="loading")},[b,Q]),u.useEffect(()=>{process.env.NODE_ENV!=="production"&&k===void 0&&console.warn('Image missing alt prop. Use alt text or alt="" for decorative images.')},[k]),u.useEffect(()=>()=>{ie.current&&clearTimeout(ie.current)},[]),u.useEffect(()=>{if(!G)return;Me.current=document.activeElement,Ne.current?.focus();const V=ce=>{if(ce.key==="Escape"){H(!1),Y(1),ae({x:0,y:0}),ve(!1);return}if(ce.key==="+"||ce.key==="="){Y(xe=>Kt(Number((xe+.2).toFixed(2)),1,4));return}if(ce.key==="-"||ce.key==="_"){Y(xe=>Kt(Number((xe-.2).toFixed(2)),1,4));return}ce.key==="0"&&(Y(1),ae({x:0,y:0}))},z=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",V),()=>{document.body.style.overflow=z,window.removeEventListener("keydown",V),Me.current?.focus?.()}},[G]),u.useEffect(()=>{if(!G||!fe)return;const V=ce=>{const xe=we.current;if(!xe)return;const je=ce.clientX-xe.x,Ie=ce.clientY-xe.y;ae({x:xe.offsetX+je,y:xe.offsetY+Ie})},z=()=>{ve(!1),we.current=null};return window.addEventListener("mousemove",V),window.addEventListener("mouseup",z),()=>{window.removeEventListener("mousemove",V),window.removeEventListener("mouseup",z)}},[G,fe]);const oe=typeof S=="number"?S:void 0,Pe=typeof N=="number"?N:void 0,Ce=u.useMemo(()=>{const V=$??[],z=oe?[...V,oe]:V;return fk(z).sort((ce,xe)=>ce-xe)},[$,oe]),de=u.useCallback((V,z,ce)=>x?x(V,{width:ce??oe,height:Pe,quality:w,format:z??P,crop:C}):mk(V,{width:ce??oe,height:Pe,crop:C}),[x,oe,Pe,w,P,C]),_e=J&&de(J),he=u.useMemo(()=>{if(!J||!T?.length)return[];const V=[];for(const z of T){const ce=dk(J,z);if(!ce)continue;if(x&&Ce.length){const je=Ce.map(Ie=>`${de(ce,z,Ie)} ${Ie}w`).join(", ");V.push({type:`image/${z}`,srcSet:je,sizes:A});continue}const xe=de(ce,z);!xe||xe===_e||V.push({type:`image/${z}`,srcSet:xe,sizes:A})}return V},[J,T,de,_e,A,x,Ce]),te=u.useMemo(()=>!x||!J||!Ce.length?null:{srcSet:Ce.map(z=>`${de(J,P,z)} ${z}w`).join(", "),sizes:A},[x,J,Ce,de,P,A]),me=u.useMemo(()=>{const z=[...O??[]];return he.length&&z.push(...he),te&&z.push(te),z},[O,he,te]),ke=Q==="loading"&&d,Te=Q==="loading"&&v==="blur"&&!!g,er=Q==="error"&&l,Ke=M&&Q==="loaded"&&!!_e&&!er,ur={status:Q,loading:Q==="loading",error:Q==="error",loaded:Q==="loaded",previewOpen:G,src:_e??void 0},yr=D({width:Ic(S),height:p?void 0:Ic(N),aspectRatio:uk(p),backgroundImage:Te?`url(${g})`:void 0,backgroundSize:Te?"cover":void 0,backgroundPosition:Te?"center":void 0},i,ee),He={width:"100%",height:p||N!==void 0?"100%":"auto",objectFit:f,objectPosition:m,opacity:Te?0:void 0,transition:Te?"opacity 180ms ease":void 0,cursor:Ke?"zoom-in":void 0},nr={transform:`translate(${Z.x}px, ${Z.y}px) scale(${U})`,transition:fe?void 0:"transform 120ms ease",cursor:U>1?fe?"grabbing":"grab":"zoom-in",transformOrigin:"center center"},Ge=V=>{if(ge.current<h&&J){ge.current+=1,ie.current=setTimeout(()=>{const z=J.includes("?")?"&":"?";B(`${J}${z}ldkj_retry=${ge.current}`),K("loading")},y),_?.(V);return}if(a&&J!==a){B(a),K("loading"),_?.(V);return}K("error"),_?.(V)},Lr=u.useCallback(()=>{H(!1),Y(1),ae({x:0,y:0}),ve(!1)},[]),Ye=V=>{V.preventDefault(),V.stopPropagation();const z=V.deltaY<0?.2:-.2;Y(ce=>Kt(Number((ce+z).toFixed(2)),1,4))};return c.jsxs(c.Fragment,{children:[c.jsxs("span",{className:R("relative inline-block max-w-full overflow-hidden align-middle",ue,o,n),style:yr,children:[er?l:me.length?c.jsxs("picture",{children:[me.map((V,z)=>c.jsx("source",{media:V.media,srcSet:V.srcSet,type:V.type,sizes:V.sizes},`${V.type??"source"}-${z}`)),c.jsx("img",{ref:t,alt:k,src:_e,width:S,height:N,sizes:A,loading:q??"lazy",decoding:E??"async",onLoad:V=>{K("loaded"),I?.(V)},onError:Ge,onClick:()=>{Ke&&(H(!0),Y(1),ae({x:0,y:0}))},className:"block max-w-full",style:He,...F})]}):c.jsx("img",{ref:t,alt:k,src:_e,width:S,height:N,sizes:A,loading:q??"lazy",decoding:E??"async",onLoad:V=>{K("loaded"),I?.(V)},onError:Ge,onClick:()=>{Ke&&(H(!0),Y(1),ae({x:0,y:0}))},className:"block max-w-full",style:He,...F}),ke?c.jsx("span",{className:"absolute inset-0 flex items-center justify-center",children:d}):null,W?c.jsx("span",{className:"pointer-events-none absolute inset-0",children:W(ur)}):null]}),G&&_e?c.jsxs("span",{className:"fixed inset-0 z-[1200] flex items-center justify-center bg-black/80 p-6",role:"dialog","aria-modal":"true","aria-label":"Image preview",onClick:Lr,onWheel:Ye,children:[c.jsx("img",{src:_e,alt:k,className:"max-h-[88vh] max-w-[92vw] select-none rounded-md object-contain shadow-2xl",style:nr,onClick:V=>V.stopPropagation(),onMouseDown:V=>{U<=1||(V.preventDefault(),V.stopPropagation(),we.current={x:V.clientX,y:V.clientY,offsetX:Z.x,offsetY:Z.y},ve(!0))}}),c.jsxs("span",{className:"absolute right-5 top-5 flex items-center gap-2",children:[c.jsx("button",{type:"button",className:"rounded-md bg-[color:var(--ldkj-color-popover)]/90 px-2.5 py-1.5 text-xs font-medium text-[color:var(--ldkj-color-popover-foreground)] hover:bg-[color:var(--ldkj-color-popover)]",onClick:V=>{V.stopPropagation(),Y(z=>Kt(z-.2,1,4))},children:"-"}),c.jsx("button",{type:"button",className:"rounded-md bg-[color:var(--ldkj-color-popover)]/90 px-2.5 py-1.5 text-xs font-medium text-[color:var(--ldkj-color-popover-foreground)] hover:bg-[color:var(--ldkj-color-popover)]",onClick:V=>{V.stopPropagation(),Y(z=>Kt(z+.2,1,4))},children:"+"}),c.jsx("button",{type:"button",className:"rounded-md bg-[color:var(--ldkj-color-popover)]/90 px-2.5 py-1.5 text-xs font-medium text-[color:var(--ldkj-color-popover-foreground)] hover:bg-[color:var(--ldkj-color-popover)]",onClick:V=>{V.stopPropagation(),Y(1),ae({x:0,y:0})},children:"重置"}),c.jsx("button",{ref:Ne,type:"button",className:"rounded-md bg-[color:var(--ldkj-color-popover)]/90 px-3 py-1.5 text-xs font-medium text-[color:var(--ldkj-color-popover-foreground)] hover:bg-[color:var(--ldkj-color-popover)]","aria-label":"Close preview",onClick:V=>{V.stopPropagation(),Lr()},children:"关闭"})]})]}):null]})});jh.displayName="Image";var kt={},qs,Tc;function hk(){return Tc||(Tc=1,qs=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),qs}var Es={},$r={},_c;function xt(){if(_c)return $r;_c=1;let e;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return $r.getSymbolSize=function(o){if(!o)throw new Error('"version" cannot be null or undefined');if(o<1||o>40)throw new Error('"version" should be in range from 1 to 40');return o*4+17},$r.getSymbolTotalCodewords=function(o){return r[o]},$r.getBCHDigit=function(t){let o=0;for(;t!==0;)o++,t>>>=1;return o},$r.setToSJISFunction=function(o){if(typeof o!="function")throw new Error('"toSJISFunc" is not a valid function.');e=o},$r.isKanjiModeEnabled=function(){return typeof e<"u"},$r.toSJIS=function(o){return e(o)},$r}var Rs={},Oc;function Al(){return Oc||(Oc=1,(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function r(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}e.isValid=function(o){return o&&typeof o.bit<"u"&&o.bit>=0&&o.bit<4},e.from=function(o,n){if(e.isValid(o))return o;try{return r(o)}catch{return n}}})(Rs)),Rs}var As,Mc;function pk(){if(Mc)return As;Mc=1;function e(){this.buffer=[],this.length=0}return e.prototype={get:function(r){const t=Math.floor(r/8);return(this.buffer[t]>>>7-r%8&1)===1},put:function(r,t){for(let o=0;o<t;o++)this.putBit((r>>>t-o-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(r){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),r&&(this.buffer[t]|=128>>>this.length%8),this.length++}},As=e,As}var Is,Lc;function vk(){if(Lc)return Is;Lc=1;function e(r){if(!r||r<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=r,this.data=new Uint8Array(r*r),this.reservedBit=new Uint8Array(r*r)}return e.prototype.set=function(r,t,o,n){const s=r*this.size+t;this.data[s]=o,n&&(this.reservedBit[s]=!0)},e.prototype.get=function(r,t){return this.data[r*this.size+t]},e.prototype.xor=function(r,t,o){this.data[r*this.size+t]^=o},e.prototype.isReserved=function(r,t){return this.reservedBit[r*this.size+t]},Is=e,Is}var Ts={},Dc;function gk(){return Dc||(Dc=1,(function(e){const r=xt().getSymbolSize;e.getRowColCoords=function(o){if(o===1)return[];const n=Math.floor(o/7)+2,s=r(o),i=s===145?26:Math.ceil((s-13)/(2*n-2))*2,l=[s-7];for(let a=1;a<n-1;a++)l[a]=l[a-1]-i;return l.push(6),l.reverse()},e.getPositions=function(o){const n=[],s=e.getRowColCoords(o),i=s.length;for(let l=0;l<i;l++)for(let a=0;a<i;a++)l===0&&a===0||l===0&&a===i-1||l===i-1&&a===0||n.push([s[l],s[a]]);return n}})(Ts)),Ts}var _s={},Fc;function xk(){if(Fc)return _s;Fc=1;const e=xt().getSymbolSize,r=7;return _s.getPositions=function(o){const n=e(o);return[[0,0],[n-r,0],[0,n-r]]},_s}var Os={},Bc;function bk(){return Bc||(Bc=1,(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const r={N1:3,N2:3,N3:40,N4:10};e.isValid=function(n){return n!=null&&n!==""&&!isNaN(n)&&n>=0&&n<=7},e.from=function(n){return e.isValid(n)?parseInt(n,10):void 0},e.getPenaltyN1=function(n){const s=n.size;let i=0,l=0,a=0,d=null,f=null;for(let m=0;m<s;m++){l=a=0,d=f=null;for(let p=0;p<s;p++){let v=n.get(m,p);v===d?l++:(l>=5&&(i+=r.N1+(l-5)),d=v,l=1),v=n.get(p,m),v===f?a++:(a>=5&&(i+=r.N1+(a-5)),f=v,a=1)}l>=5&&(i+=r.N1+(l-5)),a>=5&&(i+=r.N1+(a-5))}return i},e.getPenaltyN2=function(n){const s=n.size;let i=0;for(let l=0;l<s-1;l++)for(let a=0;a<s-1;a++){const d=n.get(l,a)+n.get(l,a+1)+n.get(l+1,a)+n.get(l+1,a+1);(d===4||d===0)&&i++}return i*r.N2},e.getPenaltyN3=function(n){const s=n.size;let i=0,l=0,a=0;for(let d=0;d<s;d++){l=a=0;for(let f=0;f<s;f++)l=l<<1&2047|n.get(d,f),f>=10&&(l===1488||l===93)&&i++,a=a<<1&2047|n.get(f,d),f>=10&&(a===1488||a===93)&&i++}return i*r.N3},e.getPenaltyN4=function(n){let s=0;const i=n.data.length;for(let a=0;a<i;a++)s+=n.data[a];return Math.abs(Math.ceil(s*100/i/5)-10)*r.N4};function t(o,n,s){switch(o){case e.Patterns.PATTERN000:return(n+s)%2===0;case e.Patterns.PATTERN001:return n%2===0;case e.Patterns.PATTERN010:return s%3===0;case e.Patterns.PATTERN011:return(n+s)%3===0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(s/3))%2===0;case e.Patterns.PATTERN101:return n*s%2+n*s%3===0;case e.Patterns.PATTERN110:return(n*s%2+n*s%3)%2===0;case e.Patterns.PATTERN111:return(n*s%3+(n+s)%2)%2===0;default:throw new Error("bad maskPattern:"+o)}}e.applyMask=function(n,s){const i=s.size;for(let l=0;l<i;l++)for(let a=0;a<i;a++)s.isReserved(a,l)||s.xor(a,l,t(n,a,l))},e.getBestMask=function(n,s){const i=Object.keys(e.Patterns).length;let l=0,a=1/0;for(let d=0;d<i;d++){s(d),e.applyMask(d,n);const f=e.getPenaltyN1(n)+e.getPenaltyN2(n)+e.getPenaltyN3(n)+e.getPenaltyN4(n);e.applyMask(d,n),f<a&&(a=f,l=d)}return l}})(Os)),Os}var zo={},$c;function Sh(){if($c)return zo;$c=1;const e=Al(),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],t=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return zo.getBlocksCount=function(n,s){switch(s){case e.L:return r[(n-1)*4+0];case e.M:return r[(n-1)*4+1];case e.Q:return r[(n-1)*4+2];case e.H:return r[(n-1)*4+3];default:return}},zo.getTotalCodewordsCount=function(n,s){switch(s){case e.L:return t[(n-1)*4+0];case e.M:return t[(n-1)*4+1];case e.Q:return t[(n-1)*4+2];case e.H:return t[(n-1)*4+3];default:return}},zo}var Ms={},Gt={},Vc;function yk(){if(Vc)return Gt;Vc=1;const e=new Uint8Array(512),r=new Uint8Array(256);return(function(){let o=1;for(let n=0;n<255;n++)e[n]=o,r[o]=n,o<<=1,o&256&&(o^=285);for(let n=255;n<512;n++)e[n]=e[n-255]})(),Gt.log=function(o){if(o<1)throw new Error("log("+o+")");return r[o]},Gt.exp=function(o){return e[o]},Gt.mul=function(o,n){return o===0||n===0?0:e[r[o]+r[n]]},Gt}var zc;function wk(){return zc||(zc=1,(function(e){const r=yk();e.mul=function(o,n){const s=new Uint8Array(o.length+n.length-1);for(let i=0;i<o.length;i++)for(let l=0;l<n.length;l++)s[i+l]^=r.mul(o[i],n[l]);return s},e.mod=function(o,n){let s=new Uint8Array(o);for(;s.length-n.length>=0;){const i=s[0];for(let a=0;a<n.length;a++)s[a]^=r.mul(n[a],i);let l=0;for(;l<s.length&&s[l]===0;)l++;s=s.slice(l)}return s},e.generateECPolynomial=function(o){let n=new Uint8Array([1]);for(let s=0;s<o;s++)n=e.mul(n,new Uint8Array([1,r.exp(s)]));return n}})(Ms)),Ms}var Ls,Hc;function Pk(){if(Hc)return Ls;Hc=1;const e=wk();function r(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}return r.prototype.initialize=function(o){this.degree=o,this.genPoly=e.generateECPolynomial(this.degree)},r.prototype.encode=function(o){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(o.length+this.degree);n.set(o);const s=e.mod(n,this.genPoly),i=this.degree-s.length;if(i>0){const l=new Uint8Array(this.degree);return l.set(s,i),l}return s},Ls=r,Ls}var Ds={},Fs={},Bs={},Uc;function Nh(){return Uc||(Uc=1,Bs.isValid=function(r){return!isNaN(r)&&r>=1&&r<=40}),Bs}var Pr={},Wc;function qh(){if(Wc)return Pr;Wc=1;const e="[0-9]+",r="[A-Z $%*+\\-./:]+";let t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");const o="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+`)(?:.|[\r
|
|
42
|
-
]))+`;Pr.KANJI=new RegExp(t,"g"),Pr.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Pr.BYTE=new RegExp(o,"g"),Pr.NUMERIC=new RegExp(e,"g"),Pr.ALPHANUMERIC=new RegExp(r,"g");const n=new RegExp("^"+t+"$"),s=new RegExp("^"+e+"$"),i=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Pr.testKanji=function(a){return n.test(a)},Pr.testNumeric=function(a){return s.test(a)},Pr.testAlphanumeric=function(a){return i.test(a)},Pr}var Kc;function bt(){return Kc||(Kc=1,(function(e){const r=Nh(),t=qh();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(s,i){if(!s.ccBits)throw new Error("Invalid mode: "+s);if(!r.isValid(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?s.ccBits[0]:i<27?s.ccBits[1]:s.ccBits[2]},e.getBestModeForData=function(s){return t.testNumeric(s)?e.NUMERIC:t.testAlphanumeric(s)?e.ALPHANUMERIC:t.testKanji(s)?e.KANJI:e.BYTE},e.toString=function(s){if(s&&s.id)return s.id;throw new Error("Invalid mode")},e.isValid=function(s){return s&&s.bit&&s.ccBits};function o(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+n)}}e.from=function(s,i){if(e.isValid(s))return s;try{return o(s)}catch{return i}}})(
|
|
43
|
-
Make sure your charset is UTF-8`);s=(s>>>8&255)*192+(s&255),o.put(s,13)}},
|
|
44
|
-
Suggested mode is: `+r.toString(P));switch(w===r.KANJI&&!l.isKanjiModeEnabled()&&(w=r.BYTE),w){case r.NUMERIC:return new t(b);case r.ALPHANUMERIC:return new o(b);case r.KANJI:return new s(b);case r.BYTE:return new n(b)}}e.fromArray=function(x){return x.reduce(function(w,P){return typeof P=="string"?w.push(y(P,null)):P.data&&w.push(y(P.data,P.mode)),w},[])},e.fromString=function(x,w){const P=m(x,l.isKanjiModeEnabled()),C=g(P),k=h(C,w),j=a.find_path(k.map,"start","end"),S=[];for(let N=1;N<j.length-1;N++)S.push(k.table[j[N]].node);return e.fromArray(v(S))},e.rawSplit=function(x){return e.fromArray(m(x,l.isKanjiModeEnabled()))}})(
|
|
41
|
+
`)},Xb=0,Ct=[];function Jb(e){var r=u.useRef([]),t=u.useRef([0,0]),o=u.useRef(),n=u.useState(Xb++)[0],s=u.useState(Fd)[0],i=u.useRef(e);u.useEffect(function(){i.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(n));var h=xb([e.lockRef.current],(e.shards||[]).map(Za),!0).filter(Boolean);return h.forEach(function(y){return y.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),h.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(n))})}}},[e.inert,e.lockRef.current,e.shards]);var l=u.useCallback(function(h,y){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!i.current.allowPinchZoom;var b=Mo(h),x=t.current,w="deltaX"in h?h.deltaX:x[0]-b[0],P="deltaY"in h?h.deltaY:x[1]-b[1],C,k=h.target,j=Math.abs(w)>Math.abs(P)?"h":"v";if("touches"in h&&j==="h"&&k.type==="range")return!1;var S=window.getSelection(),N=S&&S.anchorNode,A=N?N===k||N.contains(k):!1;if(A)return!1;var q=Ja(j,k);if(!q)return!0;if(q?C=j:(C=j==="v"?"h":"v",q=Ja(j,k)),!q)return!1;if(!o.current&&"changedTouches"in h&&(w||P)&&(o.current=C),!C)return!0;var E=o.current||C;return Kb(E,y,h,E==="h"?w:P)},[]),a=u.useCallback(function(h){var y=h;if(!(!Ct.length||Ct[Ct.length-1]!==s)){var b="deltaY"in y?Qa(y):Mo(y),x=r.current.filter(function(C){return C.name===y.type&&(C.target===y.target||y.target===C.shadowParent)&&Gb(C.delta,b)})[0];if(x&&x.should){y.cancelable&&y.preventDefault();return}if(!x){var w=(i.current.shards||[]).map(Za).filter(Boolean).filter(function(C){return C.contains(y.target)}),P=w.length>0?l(y,w[0]):!i.current.noIsolation;P&&y.cancelable&&y.preventDefault()}}},[]),d=u.useCallback(function(h,y,b,x){var w={name:h,delta:y,target:b,should:x,shadowParent:Qb(b)};r.current.push(w),setTimeout(function(){r.current=r.current.filter(function(P){return P!==w})},1)},[]),f=u.useCallback(function(h){t.current=Mo(h),o.current=void 0},[]),m=u.useCallback(function(h){d(h.type,Qa(h),h.target,l(h,e.lockRef.current))},[]),p=u.useCallback(function(h){d(h.type,Mo(h),h.target,l(h,e.lockRef.current))},[]);u.useEffect(function(){return Ct.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:p}),document.addEventListener("wheel",a,Pt),document.addEventListener("touchmove",a,Pt),document.addEventListener("touchstart",f,Pt),function(){Ct=Ct.filter(function(h){return h!==s}),document.removeEventListener("wheel",a,Pt),document.removeEventListener("touchmove",a,Pt),document.removeEventListener("touchstart",f,Pt)}},[]);var v=e.removeScrollBar,g=e.inert;return u.createElement(u.Fragment,null,g?u.createElement(s,{styles:Yb(n)}):null,v?u.createElement(Bb,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Qb(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const Zb=Nb(Dd,Jb);var ol=u.forwardRef(function(e,r){return u.createElement(Rn,kr({},e,{ref:r,sideCar:Zb}))});ol.classNames=Rn.classNames;var An="Popover",[zd]=br(An,[Ft]),xo=Ft(),[ey,Zr]=zd(An),Hd=e=>{const{__scopePopover:r,children:t,open:o,defaultOpen:n,onOpenChange:s,modal:i=!1}=e,l=xo(r),a=u.useRef(null),[d,f]=u.useState(!1),[m,p]=_r({prop:o,defaultProp:n??!1,onChange:s,caller:An});return c.jsx(el,{...l,children:c.jsx(ey,{scope:r,contentId:vt(),triggerRef:a,open:m,onOpenChange:p,onOpenToggle:u.useCallback(()=>p(v=>!v),[p]),hasCustomAnchor:d,onCustomAnchorAdd:u.useCallback(()=>f(!0),[]),onCustomAnchorRemove:u.useCallback(()=>f(!1),[]),modal:i,children:t})})};Hd.displayName=An;var Ud="PopoverAnchor",Wd=u.forwardRef((e,r)=>{const{__scopePopover:t,...o}=e,n=Zr(Ud,t),s=xo(t),{onCustomAnchorAdd:i,onCustomAnchorRemove:l}=n;return u.useEffect(()=>(i(),()=>l()),[i,l]),c.jsx(qn,{...s,...o,ref:r})});Wd.displayName=Ud;var Kd="PopoverTrigger",Gd=u.forwardRef((e,r)=>{const{__scopePopover:t,...o}=e,n=Zr(Kd,t),s=xo(t),i=Re(r,n.triggerRef),l=c.jsx(ye.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":ef(n.open),...o,ref:i,onClick:pe(e.onClick,n.onOpenToggle)});return n.hasCustomAnchor?l:c.jsx(qn,{asChild:!0,...s,children:l})});Gd.displayName=Kd;var nl="PopoverPortal",[ry,ty]=zd(nl,{forceMount:void 0}),Yd=e=>{const{__scopePopover:r,forceMount:t,children:o,container:n}=e,s=Zr(nl,r);return c.jsx(ry,{scope:r,forceMount:t,children:c.jsx(Qr,{present:t||s.open,children:c.jsx(En,{asChild:!0,container:n,children:o})})})};Yd.displayName=nl;var It="PopoverContent",Xd=u.forwardRef((e,r)=>{const t=ty(It,e.__scopePopover),{forceMount:o=t.forceMount,...n}=e,s=Zr(It,e.__scopePopover);return c.jsx(Qr,{present:o||s.open,children:s.modal?c.jsx(ny,{...n,ref:r}):c.jsx(sy,{...n,ref:r})})});Xd.displayName=It;var oy=io("PopoverContent.RemoveScroll"),ny=u.forwardRef((e,r)=>{const t=Zr(It,e.__scopePopover),o=u.useRef(null),n=Re(r,o),s=u.useRef(!1);return u.useEffect(()=>{const i=o.current;if(i)return Od(i)},[]),c.jsx(ol,{as:oy,allowPinchZoom:!0,children:c.jsx(Jd,{...e,ref:n,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pe(e.onCloseAutoFocus,i=>{i.preventDefault(),s.current||t.triggerRef.current?.focus()}),onPointerDownOutside:pe(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,a=l.button===0&&l.ctrlKey===!0,d=l.button===2||a;s.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:pe(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),sy=u.forwardRef((e,r)=>{const t=Zr(It,e.__scopePopover),o=u.useRef(!1),n=u.useRef(!1);return c.jsx(Jd,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(o.current||t.triggerRef.current?.focus(),s.preventDefault()),o.current=!1,n.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const i=s.target;t.triggerRef.current?.contains(i)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),Jd=u.forwardRef((e,r)=>{const{__scopePopover:t,trapFocus:o,onOpenAutoFocus:n,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:d,onInteractOutside:f,...m}=e,p=Zr(It,t),v=xo(t);return dd(),c.jsx(Ui,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:n,onUnmountAutoFocus:s,children:c.jsx(Pn,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:d,onDismiss:()=>p.onOpenChange(!1),children:c.jsx(rl,{"data-state":ef(p.open),role:"dialog",id:p.contentId,...v,...m,ref:r,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Qd="PopoverClose",Zd=u.forwardRef((e,r)=>{const{__scopePopover:t,...o}=e,n=Zr(Qd,t);return c.jsx(ye.button,{type:"button",...o,ref:r,onClick:pe(e.onClick,()=>n.onOpenChange(!1))})});Zd.displayName=Qd;var iy="PopoverArrow",ly=u.forwardRef((e,r)=>{const{__scopePopover:t,...o}=e,n=xo(t);return c.jsx(tl,{...n,...o,ref:r})});ly.displayName=iy;function ef(e){return e?"open":"closed"}var ay=Hd,cy=Wd,ai=Gd,uy=Yd,dy=Xd,ci=Zd;function fy(e){if(e!==void 0)return{width:typeof e=="number"?`${e}px`:e}}function rf(e){const r=se();return re(e,r)}const tf=ay,sl=u.forwardRef((e,r)=>{const{asChild:t,asChildWrapper:o="span",children:n,className:s,class:i,sx:l,style:a,...d}=e,{sxClassName:f,sxInlineStyle:m}=rf(l),p=R(f,s,i),v=D(a,m);return t?c.jsx(ai,{asChild:!0,...d,children:c.jsx(o,{ref:r,className:R("inline-flex w-fit",p),style:v,children:n})}):c.jsx(ai,{ref:r,className:p,style:v,...d,children:n})});sl.displayName=ai.displayName;const my=cy,of=u.forwardRef((e,r)=>{const{asChild:t,asChildWrapper:o="span",children:n,className:s,class:i,sx:l,style:a,...d}=e,{sxClassName:f,sxInlineStyle:m}=rf(l),p=R(f,s,i),v=D(a,m);return t?c.jsx(ci,{asChild:!0,...d,children:c.jsx(o,{ref:r,className:R("inline-flex w-fit",p),style:v,children:n})}):c.jsx(ci,{ref:r,className:p,style:v,...d,children:n})});of.displayName=ci.displayName;const il=u.forwardRef((e,r)=>{const{align:t="center",sideOffset:o=6,width:n=288,rounded:s="lg",shadow:i="md",sx:l,style:a,className:d,class:f,...m}=e,p=se(),{roundedPreset:v,roundedStyle:g}=ht(s),{shadowPreset:h,shadowStyle:y}=ho(i),{sxClassName:b,sxInlineStyle:x}=re(l,p);return c.jsx(uy,{children:c.jsx(dy,{ref:r,align:t,sideOffset:o,className:R("z-[var(--ldkj-z-dropdown)] border border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-surface)] p-4 text-sm text-[color:var(--ldkj-color-surface-foreground)] outline-none","origin-[--radix-popover-content-transform-origin]","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",v&&Yr[v],h&&Ot[h],b,d,f),style:D(a,fy(n),g,y??{boxShadow:"var(--ldkj-shadow-popover)"},x),...m})})});il.displayName="PopoverContent";var nf=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),hy="VisuallyHidden",sf=u.forwardRef((e,r)=>c.jsx(ye.span,{...e,ref:r,style:{...nf,...e.style}}));sf.displayName=hy;var py=sf,[In]=br("Tooltip",[Ft]),Tn=Ft(),lf="TooltipProvider",vy=700,ui="tooltip.open",[gy,ll]=In(lf),af=e=>{const{__scopeTooltip:r,delayDuration:t=vy,skipDelayDuration:o=300,disableHoverableContent:n=!1,children:s}=e,i=u.useRef(!0),l=u.useRef(!1),a=u.useRef(0);return u.useEffect(()=>{const d=a.current;return()=>window.clearTimeout(d)},[]),c.jsx(gy,{scope:r,isOpenDelayedRef:i,delayDuration:t,onOpen:u.useCallback(()=>{window.clearTimeout(a.current),i.current=!1},[]),onClose:u.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.current=!0,o)},[o]),isPointerInTransitRef:l,onPointerInTransitChange:u.useCallback(d=>{l.current=d},[]),disableHoverableContent:n,children:s})};af.displayName=lf;var ao="Tooltip",[xy,bo]=In(ao),cf=e=>{const{__scopeTooltip:r,children:t,open:o,defaultOpen:n,onOpenChange:s,disableHoverableContent:i,delayDuration:l}=e,a=ll(ao,e.__scopeTooltip),d=Tn(r),[f,m]=u.useState(null),p=vt(),v=u.useRef(0),g=i??a.disableHoverableContent,h=l??a.delayDuration,y=u.useRef(!1),[b,x]=_r({prop:o,defaultProp:n??!1,onChange:j=>{j?(a.onOpen(),document.dispatchEvent(new CustomEvent(ui))):a.onClose(),s?.(j)},caller:ao}),w=u.useMemo(()=>b?y.current?"delayed-open":"instant-open":"closed",[b]),P=u.useCallback(()=>{window.clearTimeout(v.current),v.current=0,y.current=!1,x(!0)},[x]),C=u.useCallback(()=>{window.clearTimeout(v.current),v.current=0,x(!1)},[x]),k=u.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{y.current=!0,x(!0),v.current=0},h)},[h,x]);return u.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),c.jsx(el,{...d,children:c.jsx(xy,{scope:r,contentId:p,open:b,stateAttribute:w,trigger:f,onTriggerChange:m,onTriggerEnter:u.useCallback(()=>{a.isOpenDelayedRef.current?k():P()},[a.isOpenDelayedRef,k,P]),onTriggerLeave:u.useCallback(()=>{g?C():(window.clearTimeout(v.current),v.current=0)},[C,g]),onOpen:P,onClose:C,disableHoverableContent:g,children:t})})};cf.displayName=ao;var di="TooltipTrigger",uf=u.forwardRef((e,r)=>{const{__scopeTooltip:t,...o}=e,n=bo(di,t),s=ll(di,t),i=Tn(t),l=u.useRef(null),a=Re(r,l,n.onTriggerChange),d=u.useRef(!1),f=u.useRef(!1),m=u.useCallback(()=>d.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),c.jsx(qn,{asChild:!0,...i,children:c.jsx(ye.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...o,ref:a,onPointerMove:pe(e.onPointerMove,p=>{p.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(n.onTriggerEnter(),f.current=!0)}),onPointerLeave:pe(e.onPointerLeave,()=>{n.onTriggerLeave(),f.current=!1}),onPointerDown:pe(e.onPointerDown,()=>{n.open&&n.onClose(),d.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:pe(e.onFocus,()=>{d.current||n.onOpen()}),onBlur:pe(e.onBlur,n.onClose),onClick:pe(e.onClick,n.onClose)})})});uf.displayName=di;var al="TooltipPortal",[by,yy]=In(al,{forceMount:void 0}),df=e=>{const{__scopeTooltip:r,forceMount:t,children:o,container:n}=e,s=bo(al,r);return c.jsx(by,{scope:r,forceMount:t,children:c.jsx(Qr,{present:t||s.open,children:c.jsx(En,{asChild:!0,container:n,children:o})})})};df.displayName=al;var Tt="TooltipContent",ff=u.forwardRef((e,r)=>{const t=yy(Tt,e.__scopeTooltip),{forceMount:o=t.forceMount,side:n="top",...s}=e,i=bo(Tt,e.__scopeTooltip);return c.jsx(Qr,{present:o||i.open,children:i.disableHoverableContent?c.jsx(mf,{side:n,...s,ref:r}):c.jsx(wy,{side:n,...s,ref:r})})}),wy=u.forwardRef((e,r)=>{const t=bo(Tt,e.__scopeTooltip),o=ll(Tt,e.__scopeTooltip),n=u.useRef(null),s=Re(r,n),[i,l]=u.useState(null),{trigger:a,onClose:d}=t,f=n.current,{onPointerInTransitChange:m}=o,p=u.useCallback(()=>{l(null),m(!1)},[m]),v=u.useCallback((g,h)=>{const y=g.currentTarget,b={x:g.clientX,y:g.clientY},x=jy(b,y.getBoundingClientRect()),w=Sy(b,x),P=Ny(h.getBoundingClientRect()),C=Ey([...w,...P]);l(C),m(!0)},[m]);return u.useEffect(()=>()=>p(),[p]),u.useEffect(()=>{if(a&&f){const g=y=>v(y,f),h=y=>v(y,a);return a.addEventListener("pointerleave",g),f.addEventListener("pointerleave",h),()=>{a.removeEventListener("pointerleave",g),f.removeEventListener("pointerleave",h)}}},[a,f,v,p]),u.useEffect(()=>{if(i){const g=h=>{const y=h.target,b={x:h.clientX,y:h.clientY},x=a?.contains(y)||f?.contains(y),w=!qy(b,i);x?p():w&&(p(),d())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[a,f,i,d,p]),c.jsx(mf,{...e,ref:s})}),[Py,Cy]=In(ao,{isInside:!1}),ky=Ng("TooltipContent"),mf=u.forwardRef((e,r)=>{const{__scopeTooltip:t,children:o,"aria-label":n,onEscapeKeyDown:s,onPointerDownOutside:i,...l}=e,a=bo(Tt,t),d=Tn(t),{onClose:f}=a;return u.useEffect(()=>(document.addEventListener(ui,f),()=>document.removeEventListener(ui,f)),[f]),u.useEffect(()=>{if(a.trigger){const m=p=>{p.target?.contains(a.trigger)&&f()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[a.trigger,f]),c.jsx(Pn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:m=>m.preventDefault(),onDismiss:f,children:c.jsxs(rl,{"data-state":a.stateAttribute,...d,...l,ref:r,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(ky,{children:o}),c.jsx(Py,{scope:t,isInside:!0,children:c.jsx(py,{id:a.contentId,role:"tooltip",children:n||o})})]})})});ff.displayName=Tt;var hf="TooltipArrow",pf=u.forwardRef((e,r)=>{const{__scopeTooltip:t,...o}=e,n=Tn(t);return Cy(hf,t).isInside?null:c.jsx(tl,{...n,...o,ref:r})});pf.displayName=hf;function jy(e,r){const t=Math.abs(r.top-e.y),o=Math.abs(r.bottom-e.y),n=Math.abs(r.right-e.x),s=Math.abs(r.left-e.x);switch(Math.min(t,o,n,s)){case s:return"left";case n:return"right";case t:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function Sy(e,r,t=5){const o=[];switch(r){case"top":o.push({x:e.x-t,y:e.y+t},{x:e.x+t,y:e.y+t});break;case"bottom":o.push({x:e.x-t,y:e.y-t},{x:e.x+t,y:e.y-t});break;case"left":o.push({x:e.x+t,y:e.y-t},{x:e.x+t,y:e.y+t});break;case"right":o.push({x:e.x-t,y:e.y-t},{x:e.x-t,y:e.y+t});break}return o}function Ny(e){const{top:r,right:t,bottom:o,left:n}=e;return[{x:n,y:r},{x:t,y:r},{x:t,y:o},{x:n,y:o}]}function qy(e,r){const{x:t,y:o}=e;let n=!1;for(let s=0,i=r.length-1;s<r.length;i=s++){const l=r[s],a=r[i],d=l.x,f=l.y,m=a.x,p=a.y;f>o!=p>o&&t<(m-d)*(o-f)/(p-f)+d&&(n=!n)}return n}function Ey(e){const r=e.slice();return r.sort((t,o)=>t.x<o.x?-1:t.x>o.x?1:t.y<o.y?-1:t.y>o.y?1:0),Ry(r)}function Ry(e){if(e.length<=1)return e.slice();const r=[];for(let o=0;o<e.length;o++){const n=e[o];for(;r.length>=2;){const s=r[r.length-1],i=r[r.length-2];if((s.x-i.x)*(n.y-i.y)>=(s.y-i.y)*(n.x-i.x))r.pop();else break}r.push(n)}r.pop();const t=[];for(let o=e.length-1;o>=0;o--){const n=e[o];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(n.y-i.y)>=(s.y-i.y)*(n.x-i.x))t.pop();else break}t.push(n)}return t.pop(),r.length===1&&t.length===1&&r[0].x===t[0].x&&r[0].y===t[0].y?r:r.concat(t)}var Ay=af,Iy=cf,fi=uf,Ty=df,vf=ff,gf=pf;const _y={dark:"border-[color:var(--ldkj-color-foreground)] bg-[color:var(--ldkj-color-foreground)] text-[color:var(--ldkj-color-background)]",light:"border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-popover)] text-[color:var(--ldkj-color-popover-foreground)]",primary:"border-[color:var(--ldkj-color-primary)] bg-[color:var(--ldkj-color-primary)] text-[color:var(--ldkj-color-primary-foreground)]"},Oy={dark:"fill-[color:var(--ldkj-color-foreground)]",light:"fill-[color:var(--ldkj-color-popover)]",primary:"fill-[color:var(--ldkj-color-primary)]"},My=({delayDuration:e=0,...r})=>c.jsx(Ay,{delayDuration:e,...r}),Ly=Iy,Dy=Ty,xf=u.forwardRef((e,r)=>{const{asChild:t,asChildWrapper:o="span",children:n,className:s,class:i,sx:l,style:a,...d}=e,f=se(),{sxClassName:m,sxInlineStyle:p}=re(l,f),v=R(m,s,i),g=D(a,p);return t?c.jsx(fi,{asChild:!0,...d,children:c.jsx(o,{ref:r,className:R("inline-flex w-fit",v),style:g,children:n})}):c.jsx(fi,{ref:r,className:v,style:g,...d,children:n})});xf.displayName=fi.displayName;const cl=u.forwardRef((e,r)=>{const{tone:t="dark",className:o,class:n,sx:s,style:i,...l}=e,a=se(),{sxClassName:d,sxInlineStyle:f}=re(s,a);return c.jsx(gf,{ref:r,className:R(Oy[t],d,o,n),style:D(i,f),...l})});cl.displayName=gf.displayName;const bf=u.forwardRef((e,r)=>{const{tone:t="dark",arrow:o=!1,sideOffset:n=6,className:s,class:i,sx:l,style:a,children:d,...f}=e,m=se(),{sxClassName:p,sxInlineStyle:v}=re(l,m);return c.jsxs(vf,{ref:r,sideOffset:n,className:R("z-50 max-w-xs rounded-md border px-3 py-1.5 text-sm leading-5 shadow-md outline-none","origin-[--radix-tooltip-content-transform-origin]","animate-in fade-in-0 zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",_y[t],p,s,i),style:D(a,v),...f,children:[d,o?c.jsx(cl,{tone:t}):null]})});bf.displayName=vf.displayName;let yf=null;function ec(e){yf=e}function Fy(){return yf}const Jt={placement:"rightTop",duration:4500,closable:!0,offset:24},Ze={...Jt};let rc=!1;function mi(e){return{...e,placement:e.placement??Ze.placement,duration:e.duration??Ze.duration,closable:e.closable??Ze.closable,offset:e.offset??Ze.offset}}function Zo(){const e=Fy();return e||(rc||(rc=!0,console.warn("notification 调用失败:请先在应用根节点挂载 NotificationProvider。")),null)}function By(e,r){return typeof r=="string"?{...mi({message:r}),type:e}:{...mi(r),type:e}}function Lo(e,r){const t=Zo();return t?t.push(By(e,r)):""}const $y={open(e){const r=Zo();return r?r.push(mi(e)):""},info(e){return Lo("info",e)},success(e){return Lo("success",e)},warn(e){return Lo("warn",e)},error(e){return Lo("error",e)},dismiss(e){const r=Zo();r&&r.dismiss(e)},clear(){const e=Zo();e&&e.clear()},config(e){Ze.placement=e.placement??Ze.placement,Ze.duration=e.duration??Ze.duration,Ze.closable=e.closable??Ze.closable,Ze.offset=e.offset??Ze.offset},resetConfig(){Ze.placement=Jt.placement,Ze.duration=Jt.duration,Ze.closable=Jt.closable,Ze.offset=Jt.offset}},Vy=200,jt=24,wf={info:{icon:"info",iconColor:"var(--ldkj-color-info)",role:"status",live:"polite"},success:{icon:"check_circle",iconColor:"var(--ldkj-color-success)",role:"status",live:"polite"},warn:{icon:"warning",iconColor:"var(--ldkj-color-warning)",role:"alert",live:"assertive"},error:{icon:"error",iconColor:"var(--ldkj-color-danger)",role:"alert",live:"assertive"}},Pf=u.createContext(null);let tc=0;function zy(){return tc+=1,`ldkj-notification-${Date.now()}-${tc}`}function Hy(e,r){const t=r??jt,o=typeof t=="number"?{top:t,right:t,bottom:t,left:t}:{top:t.top??jt,right:t.right??jt,bottom:t.bottom??jt,left:t.left??jt};return e===void 0?o:typeof e=="number"?{top:e,right:e,bottom:e,left:e}:{top:e.top??o.top,right:e.right??o.right,bottom:e.bottom??o.bottom,left:e.left??o.left}}function hi(e,r){return`${e}:${r.top}:${r.right}:${r.bottom}:${r.left}`}function Uy(e){const r=new Map;for(const t of e){const o=hi(t.placement,t.offset),n=r.get(o);n?n.push(t):r.set(o,[t])}return r}function vs(e){return e!=null&&e!==!1}function Wy(e,r){if(e==="center")return{top:"50%",left:"50%",transform:"translate(-50%, -50%)"};const t={};return e.includes("Top")&&(t.top=r.top),e.includes("Bottom")&&(t.bottom=r.bottom),e.includes("right")&&(t.right=r.right),e.includes("left")&&(t.left=r.left),t}function Ky(e){const r=wf[e.type],t=e.iconColor??r.iconColor;return typeof e.icon=="string"?c.jsx($e,{name:e.icon,color:t,size:22,className:"ldkj-notification-icon",title:`${e.type} icon`}):e.icon?.svg||e.icon?.src?c.jsx($e,{svg:e.icon.svg,src:e.icon.src,color:t,size:22,className:"ldkj-notification-icon",title:`${e.type} icon`}):c.jsx($e,{name:r.icon,color:t,size:22,className:"ldkj-notification-icon",title:`${e.type} icon`})}function Cf(e){const{children:r,placement:t="rightTop",duration:o=4500,queueLimit:n=5,offset:s=jt,closable:i=!0}=e,[l,a]=u.useState([]),d=u.useRef(new Map),f=u.useRef(new Map),m=u.useRef(new Set),p=u.useCallback(C=>{const k=d.current.get(C);k!==void 0&&(window.clearTimeout(k),d.current.delete(C));const j=f.current.get(C);j!==void 0&&(window.clearTimeout(j),f.current.delete(C))},[]),v=u.useCallback(C=>{m.current.has(C.id)||(m.current.add(C.id),C.onClose?.())},[]),g=u.useCallback(C=>{a(k=>{const j=k.find(S=>S.id===C);return j?(p(C),v(j),k.filter(S=>S.id!==C)):k})},[p,v]),h=u.useCallback(C=>{p(C),a(j=>j.map(S=>S.id===C&&!S.leaving?{...S,leaving:!0}:S));const k=window.setTimeout(()=>{g(C)},Vy);f.current.set(C,k)},[p,g]),y=u.useCallback(()=>{a(C=>(C.forEach(k=>{p(k.id),v(k)}),[]))},[p,v]),b=u.useCallback(C=>{const k=C.id??zy();m.current.delete(k),p(k);const j=C.placement??t,S=Hy(C.offset,s),N={id:k,type:C.type??"info",message:C.message,description:C.description,content:C.content,actions:C.actions,placement:j,offset:S,closable:C.closable??i,icon:C.icon,iconColor:C.iconColor,onClose:C.onClose,leaving:!1},A=hi(j,S);a(E=>{const _=[...E.filter(M=>M.id!==k),N],O=_.filter(M=>hi(M.placement,M.offset)===A);if(O.length<=n)return _;const T=O.length-n,$=new Set(O.slice(0,T).map(M=>M.id));return O.slice(0,T).forEach(M=>{p(M.id),v(M)}),_.filter(M=>!$.has(M.id))});const q=C.duration??o;if(q>0){const E=window.setTimeout(()=>{h(k)},q);d.current.set(k,E)}return k},[p,i,h,o,v,s,t,n]);u.useEffect(()=>()=>{d.current.forEach(C=>window.clearTimeout(C)),f.current.forEach(C=>window.clearTimeout(C)),d.current.clear(),f.current.clear()},[]);const x=u.useMemo(()=>({push:b,dismiss:h,clear:y}),[y,h,b]);u.useEffect(()=>(ec(x),()=>ec(null)),[x]);const w=u.useMemo(()=>Uy(l),[l]),P=Array.from(w.entries());return c.jsxs(Pf.Provider,{value:x,children:[r,P.map(([C,k])=>{const j=k[0];return j?c.jsx("div",{className:R("ldkj-notification-viewport",`ldkj-notification-viewport-${j.placement}`),style:Wy(j.placement,j.offset),"aria-hidden":k.length===0,children:k.map(S=>{const N=wf[S.type];return c.jsxs("div",{className:R("ldkj-notification-card",`ldkj-notification-card-${S.type}`,S.leaving?"ldkj-notification-leave":"ldkj-notification-appear"),role:N.role,"aria-live":N.live,"aria-atomic":"true",children:[c.jsx("div",{className:"ldkj-notification-icon-wrap",children:Ky(S)}),c.jsxs("div",{className:"ldkj-notification-main",children:[c.jsx("div",{className:"ldkj-notification-title",children:S.message}),vs(S.description)?c.jsx("div",{className:"ldkj-notification-description",children:S.description}):null,vs(S.content)?c.jsx("div",{className:"ldkj-notification-content",children:S.content}):null,vs(S.actions)?c.jsx("div",{className:"ldkj-notification-actions",children:S.actions}):null]}),S.closable?c.jsx("button",{type:"button",className:"ldkj-notification-close","aria-label":"关闭通知",onClick:()=>h(S.id),children:c.jsx($e,{name:"close",size:16,className:"ldkj-notification-close-icon"})}):null]},S.id)})},C):null})]})}Cf.displayName="NotificationProvider";function Gy(){const e=u.useContext(Pf);if(!e)throw new Error("useNotification 必须在 NotificationProvider 内使用。");const r=u.useCallback(i=>e.push(i),[e]),t=u.useCallback(i=>e.push(Do("info",i)),[e]),o=u.useCallback(i=>e.push(Do("success",i)),[e]),n=u.useCallback(i=>e.push(Do("warn",i)),[e]),s=u.useCallback(i=>e.push(Do("error",i)),[e]);return u.useMemo(()=>({open:r,info:t,success:o,warn:n,error:s,dismiss:e.dismiss,clear:e.clear}),[e.clear,e.dismiss,s,t,r,o,n])}function Do(e,r){return typeof r=="string"?{type:e,message:r}:{...r,type:e}}const Yy={primary:"border-[color:var(--ldkj-color-border)] border-t-[color:var(--ldkj-color-primary)]",muted:"border-[color:var(--ldkj-color-border)] border-t-[color:var(--ldkj-color-muted-foreground)]",success:"border-[color:var(--ldkj-color-border)] border-t-[color:var(--ldkj-color-success)]",warning:"border-[color:var(--ldkj-color-border)] border-t-[color:var(--ldkj-color-warning)]",danger:"border-[color:var(--ldkj-color-border)] border-t-[color:var(--ldkj-color-danger)]"};function kf(e){const{size:r=18,strokeWidth:t=2,tone:o="primary",label:n="loading",spinning:s=!0,className:i,class:l,style:a,...d}=e;return s?c.jsx("span",{role:"status","aria-label":n,className:R("inline-block shrink-0 animate-spin rounded-full border-solid",Yy[o],i,l),style:{width:r,height:r,borderWidth:t,...a},...d,children:c.jsx("span",{className:"sr-only",children:n})}):null}function Xy(e,r){const[t,o]=u.useState(e&&r<=0);return u.useEffect(()=>{if(!e){o(!1);return}if(r<=0){o(!0);return}const n=window.setTimeout(()=>o(!0),r);return()=>window.clearTimeout(n)},[r,e]),t}function Jy(e){const{text:r="加载中...",variant:t="inline",size:o=18,tone:n="primary",spinning:s=!0,delay:i=0,children:l,className:a,class:d,...f}=e,p=Xy(s,i)?c.jsxs("div",{role:"status","aria-live":"polite",className:R("inline-flex items-center justify-center gap-2 text-sm text-[color:var(--ldkj-color-muted-foreground)]",t==="block"&&"min-h-24 w-full",t==="overlay"&&"absolute inset-0 z-10 bg-[color:color-mix(in_srgb,var(--ldkj-color-surface)_75%,transparent)] backdrop-blur-[1px]",t==="fullscreen"&&"fixed inset-0 z-[var(--ldkj-z-modal)] bg-[color:color-mix(in_srgb,var(--ldkj-color-surface)_80%,transparent)] backdrop-blur-[1px]",a,d),...f,children:[c.jsx(kf,{size:o,tone:n}),r?c.jsx("span",{children:r}):null]}):null;return l?c.jsxs("div",{className:"relative","aria-busy":s||void 0,children:[l,t==="overlay"||t==="fullscreen"?p:null]}):p?c.jsx("div",{className:R(t==="block"&&"flex w-full justify-center"),children:p}):null}let Ut=0,oc="";function Qy(){return typeof document>"u"?()=>{}:(Ut===0&&(oc=document.body.style.overflow,document.body.style.overflow="hidden"),Ut+=1,()=>{Ut=Math.max(0,Ut-1),Ut===0&&(document.body.style.overflow=oc)})}function Zy(e){switch(e){case"left":return{position:"left-0 top-0 h-full",open:"translate-x-0",closed:"-translate-x-full"};case"top":return{position:"left-0 top-0 w-full",open:"translate-y-0",closed:"-translate-y-full"};case"bottom":return{position:"bottom-0 left-0 w-full",open:"translate-y-0",closed:"translate-y-full"};default:return{position:"right-0 top-0 h-full",open:"translate-x-0",closed:"translate-x-full"}}}function ew(e){const{open:r,title:t,width:o=360,height:n=320,placement:s="right",className:i,class:l,overlayClassName:a,bodyClassName:d,footer:f,children:m,onOpenChange:p,animated:v=!0,animationDuration:g=220,lockScroll:h=!0,maskClosable:y=!0,closeOnEsc:b=!0,destroyOnClose:x=!0,role:w="dialog",...P}=e,[C,k]=u.useState(r),[j,S]=u.useState(r),N=u.useRef(null),A=Zy(s),q=s==="left"||s==="right";return u.useEffect(()=>{if(r){k(!0);const I=window.requestAnimationFrame(()=>S(!0));return()=>window.cancelAnimationFrame(I)}if(S(!1),!v){x&&k(!1);return}const E=window.setTimeout(()=>{x&&k(!1)},g);return()=>window.clearTimeout(E)},[v,g,x,r]),u.useEffect(()=>{if(!(!r||!h))return Qy()},[h,r]),u.useEffect(()=>{if(!r||!b)return;const E=I=>{I.key==="Escape"&&p?.(!1)};return window.addEventListener("keydown",E),()=>window.removeEventListener("keydown",E)},[b,p,r]),u.useEffect(()=>{r&&N.current?.focus()},[r]),C?c.jsxs("div",{className:"fixed inset-0 z-[var(--ldkj-z-drawer)]","aria-hidden":!j,children:[c.jsx("div",{className:R("absolute inset-0 bg-[color:var(--ldkj-color-overlay)]",v&&"transition-opacity ease-out",j?"opacity-100":"opacity-0",a),style:{transitionDuration:v?`${g}ms`:"0ms"},onClick:()=>{y&&p?.(!1)}}),c.jsxs("div",{ref:N,tabIndex:-1,role:w,"aria-modal":"true","aria-label":typeof t=="string"?t:void 0,className:R("absolute flex max-h-full max-w-full flex-col bg-[color:var(--ldkj-color-surface)] text-[color:var(--ldkj-color-surface-foreground)] shadow-[var(--ldkj-shadow-modal)] outline-none",A.position,v&&"transition-transform ease-out will-change-transform",j?A.open:A.closed,i,l),style:{width:q?o:void 0,height:q?void 0:n,transitionDuration:v?`${g}ms`:"0ms"},...P,children:[t?c.jsxs("div",{className:"flex shrink-0 items-center justify-between border-b border-[color:var(--ldkj-color-border)] px-4 py-3",children:[c.jsx("div",{className:"min-w-0 text-base font-medium text-[color:var(--ldkj-color-foreground)]",children:t}),c.jsx("button",{type:"button","aria-label":"Close drawer",className:"inline-flex h-8 w-8 shrink-0 items-center justify-center rounded text-[color:var(--ldkj-color-muted-foreground)] transition hover:bg-[color:var(--ldkj-color-accent)] hover:text-[color:var(--ldkj-color-foreground)] focus:outline-none focus:ring-2 focus:ring-[color:var(--ldkj-color-ring)]",onClick:()=>p?.(!1),children:"x"})]}):null,c.jsx("div",{className:R("min-h-0 flex-1 overflow-auto p-4",d),children:m}),f?c.jsx("div",{className:"shrink-0 border-t border-[color:var(--ldkj-color-border)] px-4 py-3",children:f}):null]})]}):null}const rw={info:"border-[color:var(--ldkj-color-info)] bg-[color:var(--ldkj-color-accent)] text-[color:var(--ldkj-color-info)]",success:"border-[color:var(--ldkj-color-success)] bg-[color:var(--ldkj-color-accent)] text-[color:var(--ldkj-color-success)]",warning:"border-[color:var(--ldkj-color-warning)] bg-[color:var(--ldkj-color-accent)] text-[color:var(--ldkj-color-warning)]",error:"border-[color:var(--ldkj-color-danger)] bg-[color:var(--ldkj-color-accent)] text-[color:var(--ldkj-color-danger)]"},tw={info:"bg-[color:var(--ldkj-color-info)] text-[color:var(--ldkj-color-info-foreground)]",success:"bg-[color:var(--ldkj-color-success)] text-[color:var(--ldkj-color-success-foreground)]",warning:"bg-[color:var(--ldkj-color-warning)] text-[color:var(--ldkj-color-warning-foreground)]",error:"bg-[color:var(--ldkj-color-danger)] text-[color:var(--ldkj-color-danger-foreground)]"},ow={info:"i",success:"ok",warning:"!",error:"!"};function nw(e){const{className:r,class:t,variant:o="info",title:n,description:s,children:i,icon:l,showIcon:a=!!l,action:d,closable:f=!1,open:m,onClose:p,onOpenChange:v,role:g=o==="error"||o==="warning"?"alert":"status",...h}=e,[y,b]=u.useState(!0);if(!(m??y))return null;const w=()=>{b(!1),v?.(!1),p?.()};return c.jsx("div",{role:g,className:R("rounded-md border p-3",rw[o],r,t),...h,children:c.jsxs("div",{className:"flex items-start gap-3",children:[a?c.jsx("span",{"aria-hidden":!0,className:R("mt-0.5 inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1 text-[10px] font-semibold leading-none",tw[o]),children:l??ow[o]}):null,c.jsxs("div",{className:"min-w-0 flex-1",children:[n?c.jsx("div",{className:"font-medium",children:n}):null,s?c.jsx("div",{className:"mt-1 text-sm opacity-90",children:s}):i,d?c.jsx("div",{className:"mt-2",children:d}):null]}),f?c.jsx("button",{type:"button","aria-label":"Close alert",className:"inline-flex h-6 w-6 shrink-0 items-center justify-center rounded text-current opacity-70 transition hover:bg-current/10 hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-current/30",onClick:w,children:"x"}):null]})})}const sw={normal:"var(--ldkj-color-primary)",success:"var(--ldkj-color-success)",warning:"var(--ldkj-color-warning)",exception:"var(--ldkj-color-danger)"},iw={xs:48,sm:64,md:96,lg:120,xl:144},lw={xs:4,sm:6,md:8,lg:10,xl:12};function aw(e,r){return!Number.isFinite(e)||!Number.isFinite(r)||r<=0?0:Math.max(0,Math.min(100,e/r*100))}function cw(e,r){return typeof e=="number"?e:r==="circle"?iw[e]:lw[e]}function jf(e){const{value:r=0,max:t=100,showInfo:o=!1,type:n="line",status:s,size:i="md",strokeWidth:l,strokeColor:a,trailColor:d="var(--ldkj-color-muted)",format:f,className:m,class:p,...v}=e,g=aw(r,t),h=s??(g>=100?"success":"normal"),y=a??sw[h],b=f?f(Math.round(g),r,t):`${Math.round(g)}%`,x=cw(i,n),w=l??(n==="circle"?8:x);if(n==="circle"){const P=Math.max(1,Math.min(48,w)),C=50-P/2,k=2*Math.PI*C,j=k*(1-g/100);return c.jsxs("div",{role:"progressbar","aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":Math.max(0,Math.min(t,r)),className:R("relative inline-flex items-center justify-center",m,p),style:{width:x,height:x},...v,children:[c.jsxs("svg",{viewBox:"0 0 100 100",className:"h-full w-full -rotate-90",children:[c.jsx("circle",{cx:"50",cy:"50",r:C,fill:"none",stroke:d,strokeWidth:P}),c.jsx("circle",{cx:"50",cy:"50",r:C,fill:"none",stroke:y,strokeLinecap:"round",strokeWidth:P,strokeDasharray:k,strokeDashoffset:j,className:"transition-[stroke-dashoffset,stroke] duration-300 ease-out"})]}),o?c.jsx("div",{className:"absolute inset-0 flex items-center justify-center text-sm font-medium text-[color:var(--ldkj-color-foreground)]",children:b}):null]})}return c.jsxs("div",{role:"progressbar","aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":Math.max(0,Math.min(t,r)),className:R("w-full",m,p),...v,children:[c.jsx("div",{className:"w-full overflow-hidden rounded-full",style:{height:w,backgroundColor:d},children:c.jsx("div",{className:"h-full transition-[width,background-color] duration-300 ease-out",style:{width:`${g}%`,backgroundColor:y}})}),o?c.jsx("div",{className:"mt-1 text-xs text-[color:var(--ldkj-color-muted-foreground)]",children:b}):null]})}function _n(e){const r=u.useRef({value:e,previous:e});return u.useMemo(()=>(r.current.value!==e&&(r.current.previous=r.current.value,r.current.value=e),r.current.previous),[e])}var On="Checkbox",[uw]=br(On),[dw,ul]=uw(On);function fw(e){const{__scopeCheckbox:r,checked:t,children:o,defaultChecked:n,disabled:s,form:i,name:l,onCheckedChange:a,required:d,value:f="on",internal_do_not_use_render:m}=e,[p,v]=_r({prop:t,defaultProp:n??!1,onChange:a,caller:On}),[g,h]=u.useState(null),[y,b]=u.useState(null),x=u.useRef(!1),w=g?!!i||!!g.closest("form"):!0,P={checked:p,disabled:s,setChecked:v,control:g,setControl:h,name:l,form:i,value:f,hasConsumerStoppedPropagationRef:x,required:d,defaultChecked:Wr(n)?!1:n,isFormControl:w,bubbleInput:y,setBubbleInput:b};return c.jsx(dw,{scope:r,...P,children:mw(m)?m(P):o})}var Sf="CheckboxTrigger",Nf=u.forwardRef(({__scopeCheckbox:e,onKeyDown:r,onClick:t,...o},n)=>{const{control:s,value:i,disabled:l,checked:a,required:d,setControl:f,setChecked:m,hasConsumerStoppedPropagationRef:p,isFormControl:v,bubbleInput:g}=ul(Sf,e),h=Re(n,f),y=u.useRef(a);return u.useEffect(()=>{const b=s?.form;if(b){const x=()=>m(y.current);return b.addEventListener("reset",x),()=>b.removeEventListener("reset",x)}},[s,m]),c.jsx(ye.button,{type:"button",role:"checkbox","aria-checked":Wr(a)?"mixed":a,"aria-required":d,"data-state":Tf(a),"data-disabled":l?"":void 0,disabled:l,value:i,...o,ref:h,onKeyDown:pe(r,b=>{b.key==="Enter"&&b.preventDefault()}),onClick:pe(t,b=>{m(x=>Wr(x)?!0:!x),g&&v&&(p.current=b.isPropagationStopped(),p.current||b.stopPropagation())})})});Nf.displayName=Sf;var qf=u.forwardRef((e,r)=>{const{__scopeCheckbox:t,name:o,checked:n,defaultChecked:s,required:i,disabled:l,value:a,onCheckedChange:d,form:f,...m}=e;return c.jsx(fw,{__scopeCheckbox:t,checked:n,defaultChecked:s,disabled:l,required:i,onCheckedChange:d,name:o,form:f,value:a,internal_do_not_use_render:({isFormControl:p})=>c.jsxs(c.Fragment,{children:[c.jsx(Nf,{...m,ref:r,__scopeCheckbox:t}),p&&c.jsx(If,{__scopeCheckbox:t})]})})});qf.displayName=On;var Ef="CheckboxIndicator",Rf=u.forwardRef((e,r)=>{const{__scopeCheckbox:t,forceMount:o,...n}=e,s=ul(Ef,t);return c.jsx(Qr,{present:o||Wr(s.checked)||s.checked===!0,children:c.jsx(ye.span,{"data-state":Tf(s.checked),"data-disabled":s.disabled?"":void 0,...n,ref:r,style:{pointerEvents:"none",...e.style}})})});Rf.displayName=Ef;var Af="CheckboxBubbleInput",If=u.forwardRef(({__scopeCheckbox:e,...r},t)=>{const{control:o,hasConsumerStoppedPropagationRef:n,checked:s,defaultChecked:i,required:l,disabled:a,name:d,value:f,form:m,bubbleInput:p,setBubbleInput:v}=ul(Af,e),g=Re(t,v),h=_n(s),y=Nn(o);u.useEffect(()=>{const x=p;if(!x)return;const w=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(w,"checked").set,k=!n.current;if(h!==s&&C){const j=new Event("click",{bubbles:k});x.indeterminate=Wr(s),C.call(x,Wr(s)?!1:s),x.dispatchEvent(j)}},[p,h,s,n]);const b=u.useRef(Wr(s)?!1:s);return c.jsx(ye.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??b.current,required:l,disabled:a,name:d,value:f,form:m,...r,tabIndex:-1,ref:g,style:{...r.style,...y,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});If.displayName=Af;function mw(e){return typeof e=="function"}function Wr(e){return e==="indeterminate"}function Tf(e){return Wr(e)?"indeterminate":e?"checked":"unchecked"}const _f=u.createContext(null);function hw(e){return u.createElement(_f.Provider,{value:e.value},e.children)}function pw(){return u.useContext(_f)}const vw=()=>c.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",className:"checkbox-check h-3 w-3",fill:"none",children:c.jsx("path",{d:"M3.5 8.5L6.5 11.5L12.5 4.5",stroke:"currentColor",strokeWidth:"2.25",strokeLinecap:"round",strokeLinejoin:"round"})}),gw=()=>c.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",className:"checkbox-minus h-3 w-3",fill:"none",children:c.jsx("path",{d:"M4 8H12",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"})}),yo=u.forwardRef((e,r)=>{const{className:t,class:o,sx:n,style:s,children:i,checked:l,disabled:a,name:d,onCheckedChange:f,value:m,...p}=e,v=se(),{sxClassName:g,sxInlineStyle:h}=re(n,v),y=pw(),b=typeof m=="string"?m:void 0,x=!!(y&&b!==void 0),w=l??(x?y?.selectedValues.has(b):void 0),P=a||(x?y?.disabled:!1),C=d??(x?y?.name:void 0);return c.jsx(qf,{ref:r,checked:w,disabled:P,name:C,onCheckedChange:k=>{f?.(k),x&&l===void 0&&y?.toggleValue(b,k===!0)},value:m,className:R("peer inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-[4px] border border-solid border-[color:var(--ldkj-color-input)] bg-[color:var(--ldkj-color-surface)] text-[color:var(--ldkj-color-primary-foreground)] transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)] focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:border-[color:var(--ldkj-color-primary)] data-[state=checked]:bg-[color:var(--ldkj-color-primary)]","data-[state=indeterminate]:border-[color:var(--ldkj-color-primary)] data-[state=indeterminate]:bg-[color:var(--ldkj-color-primary)]",g,t,o),style:D(s,h),...p,children:i??c.jsxs(Rf,{className:R("inline-flex h-4 w-4 items-center justify-center text-current","[&[data-state=checked]_.checkbox-minus]:hidden","[&[data-state=indeterminate]_.checkbox-check]:hidden"),children:[c.jsx(vw,{}),c.jsx(gw,{})]})})});yo.displayName="Checkbox";var xw=Symbol.for("react.lazy"),dn=u[" use ".trim().toString()];function bw(e){return typeof e=="object"&&e!==null&&"then"in e}function Of(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===xw&&"_payload"in e&&bw(e._payload)}function yw(e){const r=ww(e),t=u.forwardRef((o,n)=>{let{children:s,...i}=o;Of(s)&&typeof dn=="function"&&(s=dn(s._payload));const l=u.Children.toArray(s),a=l.find(Cw);if(a){const d=a.props.children,f=l.map(m=>m===a?u.Children.count(d)>1?u.Children.only(null):u.isValidElement(d)?d.props.children:null:m);return c.jsx(r,{...i,ref:n,children:u.isValidElement(d)?u.cloneElement(d,void 0,f):null})}return c.jsx(r,{...i,ref:n,children:s})});return t.displayName=`${e}.Slot`,t}function ww(e){const r=u.forwardRef((t,o)=>{let{children:n,...s}=t;if(Of(n)&&typeof dn=="function"&&(n=dn(n._payload)),u.isValidElement(n)){const i=jw(n),l=kw(s,n.props);return n.type!==u.Fragment&&(l.ref=o?Hi(o,i):i),u.cloneElement(n,l)}return u.Children.count(n)>1?u.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var Pw=Symbol("radix.slottable");function Cw(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Pw}function kw(e,r){const t={...r};for(const o in r){const n=e[o],s=r[o];/^on[A-Z]/.test(o)?n&&s?t[o]=(...l)=>{const a=s(...l);return n(...l),a}:n&&(t[o]=n):o==="style"?t[o]={...n,...s}:o==="className"&&(t[o]=[n,s].filter(Boolean).join(" "))}return{...e,...t}}function jw(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning;return t?e.ref:(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}var Sw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Mn=Sw.reduce((e,r)=>{const t=yw(`Primitive.${r}`),o=u.forwardRef((n,s)=>{const{asChild:i,...l}=n,a=i?t:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(a,{...l,ref:s})});return o.displayName=`Primitive.${r}`,{...e,[r]:o}},{}),Nw="Label",Mf=u.forwardRef((e,r)=>c.jsx(Mn.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));Mf.displayName=Nw;var pi=Mf;function qw(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function Ew(e){return e==="center"?"center":e==="right"?"flex-end":"flex-start"}const Ln=u.forwardRef((e,r)=>{const{children:t,className:o,class:n,colon:s,containerClass:i,containerClassName:l,containerStyle:a,containerSx:d,label:f,labelAlign:m="left",labelWidth:p,position:v="left",required:g=!1,sx:h,style:y,...b}=e,x=se(),{sxClassName:w,sxInlineStyle:P}=re(h,x),{sxClassName:C,sxInlineStyle:k}=re(d,x),j=D({width:qw(p),justifyContent:Ew(m)},y,P),S=R("inline-flex gap-1 text-sm font-medium leading-5 text-[color:var(--ldkj-color-foreground)]","peer-disabled:cursor-not-allowed peer-disabled:opacity-70",w,o,n);return f===void 0?c.jsx(pi,{ref:r,className:S,style:j,...b,children:t}):c.jsxs("div",{className:R("flex w-fit",v==="top"?"flex-col items-start gap-1.5":"flex-row items-center gap-2",C,l,i),style:D(a,k),children:[c.jsxs(pi,{ref:r,className:S,style:j,...b,children:[g?c.jsx("span",{className:"font-serif text-[color:var(--ldkj-color-danger)]",children:"*"}):null,c.jsx("span",{children:f}),s===!0?":":s??null]}),t]})});Ln.displayName="Label";const nc={xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4"};function Rw(e){return e===void 0?{className:nc.md}:e==="xs"||e==="sm"||e==="md"||e==="lg"?{className:nc[e]}:{style:{gap:typeof e=="number"?`${e}px`:e}}}function Aw(e,r){if(e.type==="single"){const t=e.value??r[0];return t===void 0?[]:[t]}return e.value??r}function Iw(e){return e.type==="single"?e.defaultValue===void 0?[]:[e.defaultValue]:e.defaultValue??[]}function Lf(e){const{className:r,class:t,children:o,direction:n="vertical",disabled:s=!1,gap:i="md",name:l,options:a,sx:d,style:f,type:m,value:p,defaultValue:v,onChange:g,...h}=e,y=se(),{sxClassName:b,sxInlineStyle:x}=re(d,y),w=Rw(i),[P,C]=u.useState(()=>Iw(e)),k=Aw(e,P),j=new Set(k);function S(q){if(e.value===void 0&&C(q),e.type==="single"){e.onChange?.(q[0]);return}e.onChange?.(q)}function N(q,E){if(e.type==="single"){S(E?[q]:[]);return}const I=new Set(k);E?I.add(q):I.delete(q),S(Array.from(I))}const A=u.useMemo(()=>({disabled:s,name:l,selectedValues:j,toggleValue:N}),[s,l,j]);return c.jsx("div",{role:"group",className:R("flex",n==="horizontal"?"flex-row flex-wrap":"flex-col",w.className,b,r,t),style:D(f,w.style,x),...h,children:c.jsxs(hw,{value:A,children:[a?.map(q=>{const E=s||q.disabled,I=j.has(q.value);return c.jsxs(Ln,{className:R("inline-flex items-start gap-2 text-sm leading-5 text-[color:var(--ldkj-color-foreground)]",E&&"cursor-not-allowed text-[color:var(--ldkj-color-muted-foreground)]",!E&&"cursor-pointer",q.className),children:[c.jsx(yo,{...q.checkboxProps,name:l,value:q.value,checked:I,disabled:E,onCheckedChange:_=>N(q.value,_===!0)}),c.jsxs("span",{className:"grid gap-0.5",children:[c.jsx("span",{children:q.label}),q.description?c.jsx("span",{className:"text-xs text-[color:var(--ldkj-color-muted-foreground)]",children:q.description}):null]})]},q.value)}),o]})})}Lf.displayName="CheckboxGroup";function Dn(e,r){const t=o=>c.jsx(c.Fragment,{children:o.children});return t.displayName=e,Object.defineProperty(t,"__ldkjInputSlot",{value:r}),t}const Tw=Dn("Input.Prefix","prefix"),_w=Dn("Input.Suffix","suffix"),Ow=Dn("Input.AddonBefore","addonBefore"),Mw=Dn("Input.AddonAfter","addonAfter"),dl=e=>c.jsx(c.Fragment,{children:e.children});dl.displayName="Input.Addon";Object.defineProperty(dl,"__ldkjInputSlot",{value:"addon"});function Lw(e){if(!u.isValidElement(e))return;const t=e.type.__ldkjInputSlot;return t==="addon"?(e.props.position??"before")==="after"?"addonAfter":"addonBefore":t}function Dw(e,r){const t={addonAfter:r.addonAfter,addonBefore:r.addonBefore,prefix:r.prefix,suffix:r.suffix};return u.Children.forEach(e,o=>{const n=Lw(o);!n||!u.isValidElement(o)||(t[n]=o.props.children)}),t}function Fw(e){return Object.values(e).some(r=>r!=null)}const Df=u.forwardRef((e,r)=>{const{addonAfter:t,addonBefore:o,children:n,className:s,class:i,prefix:l,suffix:a,sx:d,style:f,type:m="text",...p}=e,v=se(),{sxClassName:g,sxInlineStyle:h}=re(d,v),y=Dw(n,{addonAfter:t,addonBefore:o,prefix:l,suffix:a}),b=Fw(y),x=R(b?"min-w-0 flex-1 appearance-none border-0 bg-transparent px-0 py-0 text-sm text-[color:var(--ldkj-color-foreground)] outline-none file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-[color:var(--ldkj-color-foreground)] placeholder:text-[color:var(--ldkj-color-muted-foreground)] focus-visible:outline-none disabled:cursor-not-allowed disabled:text-[color:var(--ldkj-color-muted-foreground)]":"flex h-9 w-full appearance-none rounded-md border border-solid border-[color:var(--ldkj-color-input)] bg-[color:var(--ldkj-color-surface)] px-3 py-2 text-sm text-[color:var(--ldkj-color-foreground)] shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-[color:var(--ldkj-color-foreground)] placeholder:text-[color:var(--ldkj-color-muted-foreground)] focus-visible:border-[color:var(--ldkj-color-primary)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)] disabled:cursor-not-allowed disabled:bg-[color:var(--ldkj-color-surface-muted)] disabled:text-[color:var(--ldkj-color-muted-foreground)] disabled:opacity-70",!b&&g,!b&&s,!b&&i),w=c.jsx("input",{ref:r,type:m,className:x,style:b?void 0:D(f,h),...p});if(!b)return w;const P=!!p.disabled;return c.jsxs("span",{className:R("inline-flex h-9 w-full items-stretch rounded-md text-sm shadow-sm transition-colors",P&&"opacity-70",g,s,i),style:D(f,h),children:[y.addonBefore?c.jsx("span",{className:"inline-flex shrink-0 items-center rounded-l-md border border-r-0 border-solid border-[color:var(--ldkj-color-input)] bg-[color:var(--ldkj-color-surface-muted)] px-3 text-[color:var(--ldkj-color-muted-foreground)]",children:y.addonBefore}):null,c.jsxs("span",{className:R("inline-flex min-w-0 flex-1 items-center gap-2 border border-solid border-[color:var(--ldkj-color-input)] bg-[color:var(--ldkj-color-surface)] px-3 text-[color:var(--ldkj-color-foreground)] transition-colors",y.addonBefore?"rounded-l-none":"rounded-l-md",y.addonAfter?"rounded-r-none":"rounded-r-md","focus-within:border-[color:var(--ldkj-color-primary)] focus-within:ring-2 focus-within:ring-[color:var(--ldkj-color-ring)]",P&&"bg-[color:var(--ldkj-color-surface-muted)] text-[color:var(--ldkj-color-muted-foreground)]"),children:[y.prefix?c.jsx("span",{className:"inline-flex shrink-0 items-center text-[color:var(--ldkj-color-muted-foreground)]",children:y.prefix}):null,w,y.suffix?c.jsx("span",{className:"inline-flex shrink-0 items-center text-[color:var(--ldkj-color-muted-foreground)]",children:y.suffix}):null]}),y.addonAfter?c.jsx("span",{className:"inline-flex shrink-0 items-center rounded-r-md border border-l-0 border-solid border-[color:var(--ldkj-color-input)] bg-[color:var(--ldkj-color-surface-muted)] px-3 text-[color:var(--ldkj-color-muted-foreground)]",children:y.addonAfter}):null]})});Df.displayName="Input";const fl=Object.assign(Df,{Addon:dl,AddonAfter:Mw,AddonBefore:Ow,Prefix:Tw,Suffix:_w});function at(e){if(e.trim()==="")return null;const r=Number(e);return Number.isFinite(r)?r:null}function sc(e){if(!Number.isFinite(e))return 0;const[,r=""]=String(e).split(".");return r.length}function Bw(e,r,t){if(!Number.isFinite(t)||!t||t<=0)return e;const o=Number.isFinite(r)?r??0:0,n=Math.max(sc(o),sc(t)),s=o+Math.round((e-o)/t)*t;return Number(s.toFixed(Math.min(n+2,12)))}function $w(e,r){return Number.isFinite(r)?e.toFixed(Math.max(0,Math.floor(r??0))):String(e)}function Vw(e,r){const t=at(e);if(t===null)return{value:null,valueAsString:""};if(!r.clampOnBlur)return{value:t,valueAsString:e};let o=t;Number.isFinite(r.min)&&(o=Math.max(r.min??o,o)),Number.isFinite(r.max)&&(o=Math.min(r.max??o,o)),o=Bw(o,r.min,r.step),Number.isFinite(r.min)&&(o=Math.max(r.min??o,o)),Number.isFinite(r.max)&&(o=Math.min(r.max??o,o));const n=$w(o,r.precision);return{value:o,valueAsString:n}}function ct(e){return e==null?"":String(e)}function ic(e){return!e.disabled&&!e.readOnly}function Ff(e={}){const{clampOnBlur:r=!1,defaultValue:t="",max:o,min:n,onValueChange:s,onValueCommit:i,precision:l,step:a,value:d}=e,f=d!==void 0,[m,p]=u.useState(()=>ct(t)),v=f?ct(d):m,g=u.useMemo(()=>at(v),[v]),h=u.useCallback(w=>{f||p(w)},[f]),y=u.useCallback(w=>{const P=ct(w);h(P),s?.(at(P),{reason:"set",valueAsString:P})},[s,h]),b=u.useCallback((w=v)=>{const P=ct(w),C=Vw(P,{clampOnBlur:r,max:o,min:n,precision:l,step:a}),k=r?C.valueAsString:P,j=r?C.value:at(P);return h(k),{value:j,valueAsString:k}},[r,o,n,l,a,h,v]),x=u.useCallback((w={})=>{const{disabled:P,onBlur:C,onChange:k,onKeyDown:j,readOnly:S,...N}=w;return{...N,disabled:P,inputMode:"decimal",max:o,min:n,readOnly:S,step:a,type:"number",value:v,onBlur:A=>{if(ic({disabled:P,readOnly:S})){const q=b(A.currentTarget.value);r&&(A.currentTarget.value=q.valueAsString,s?.(q.value,{event:A,reason:"commit",valueAsString:q.valueAsString})),i?.(q.value,{event:A,reason:"commit",valueAsString:q.valueAsString})}C?.(A)},onChange:A=>{k?.(A),h(A.currentTarget.value),s?.(at(A.currentTarget.value),{event:A,reason:"input",valueAsString:A.currentTarget.value})},onKeyDown:A=>{if(j?.(A),A.key==="Enter"&&!A.defaultPrevented&&ic({disabled:P,readOnly:S})){const q=b(A.currentTarget.value);r&&(A.currentTarget.value=q.valueAsString,s?.(q.value,{event:A,reason:"commit",valueAsString:q.valueAsString})),i?.(q.value,{event:A,reason:"commit",valueAsString:q.valueAsString})}}}},[r,b,o,n,s,i,l,a,h,v]);return{commitValue:b,getInputProps:x,numberValue:g,setValue:y,value:v}}function zw(e={}){const{defaultValue:r="",onValueChange:t,...o}=e,[n,s]=u.useState(()=>ct(r)),[i,l]=u.useState(()=>at(ct(r))),a=u.useCallback(m=>{const p=ct(m);s(p),l(at(p))},[]),d=u.useCallback(m=>{s(m.currentTarget.value)},[]),f=u.useCallback((m,p)=>{l(m),p.reason==="commit"&&s(p.valueAsString),t?.(m,p)},[t]);return{inputProps:{...o,onChange:d,onValueChange:f,value:n},numberValue:i,setValue:a,value:n}}const Bf=u.forwardRef((e,r)=>{const{clampOnBlur:t=!1,defaultValue:o,disabled:n,max:s,min:i,onBlur:l,onChange:a,onKeyDown:d,onValueChange:f,onValueCommit:m,precision:p,readOnly:v,step:g,value:h,...y}=e,b=Ff({clampOnBlur:t,defaultValue:o,max:s,min:i,onValueChange:f,onValueCommit:m,precision:p,step:g,value:h});return c.jsx(fl,{...y,...b.getInputProps({disabled:n,onBlur:l,onChange:a,onKeyDown:d,readOnly:v}),ref:r})});Bf.displayName="InputNumber";const Hw={numeric:/^[0-9]$/,alphabetic:/^[A-Za-z]$/,alphanumeric:/^[A-Za-z0-9]$/},Uw={numeric:"[0-9]*",alphabetic:"[A-Za-z]*",alphanumeric:"[A-Za-z0-9]*"},Ww={sm:"h-8 w-8 text-sm",md:"h-10 w-10 text-base",lg:"h-12 w-12 text-lg"},Kw={outline:"rounded-md border border-[color:var(--ldkj-color-input)] bg-[color:var(--ldkj-color-surface)] text-[color:var(--ldkj-color-foreground)]",filled:"rounded-md border border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-surface-muted)] text-[color:var(--ldkj-color-foreground)]",underline:"border-0 border-b border-[color:var(--ldkj-color-input)] bg-transparent text-[color:var(--ldkj-color-foreground)]"};function Gw(e){return Number.isFinite(e)?Math.max(1,Math.floor(e??6)):6}function Yw(e,r){const t=r?typeof r=="string"?new RegExp(r):r:Hw[e];return o=>(t.lastIndex=0,t.test(o))}function Xw(e,r,t){return Array.from(e).filter(t).slice(0,r).join("")}function Jw(e,r){return typeof r=="string"?r:r instanceof RegExp?r.source:Uw[e]}const $f=u.forwardRef((e,r)=>{const{value:t,defaultValue:o="",length:n=6,disabled:s,readOnly:i,className:l,class:a,inputClassName:d,slotClassName:f,onChange:m,onComplete:p,type:v="numeric",pattern:g,pasteTransformer:h,mask:y=!1,placeholder:b="",autoFocus:x=!0,oneTimeCode:w=!0,size:P="md",variant:C="outline",invalid:k=!1,separator:j,style:S,sx:N,inputMode:A,autoComplete:q,onBlur:E,onFocus:I,onKeyDown:_,onPaste:O,"aria-label":T,...$}=e,M=se(),{sxClassName:U,sxInlineStyle:F}=re(N,M),X=Gw(n),ue=u.useMemo(()=>Yw(v,g),[g,v]),ee=u.useCallback(te=>Xw(te,X,ue),[X,ue]),Q=t!==void 0,[W,J]=u.useState(()=>ee(o)),B=ee(Q?t??"":W),K=u.useRef(null),H=u.useRef(B),G=u.useRef(null),[Y,Z]=u.useState(!1),ae=Array.from(B),fe=Math.min(ae.length,X-1),ve=Array.from(b)[0]??"",ge=typeof y=="string"?y:"•";u.useImperativeHandle(r,()=>K.current),u.useEffect(()=>{H.current=B},[B]),u.useEffect(()=>{Q||J(te=>ee(te))},[Q,ee]);const ie=u.useCallback(()=>{const te=K.current;if(!te)return;const me=te.value.length;try{te.setSelectionRange(me,me)}catch{}},[]),we=u.useCallback(te=>{const me=ee(te),ke=H.current;H.current=me,Q||J(me),me!==ke&&m?.(me),me.length===X?G.current!==me&&(G.current=me,p?.(me)):G.current=null,window.requestAnimationFrame(ie)},[Q,ie,ee,m,p,X]),Ne=u.useCallback(()=>{s||(K.current?.focus(),window.requestAnimationFrame(ie))},[s,ie]);u.useEffect(()=>{if(!x||s)return;const te=K.current,me=te?.ownerDocument;!te||!me||me.activeElement!==me.body||(te.focus(),ie())},[x,s,ie]);const Me=te=>{we(te.target.value)},oe=te=>{Z(!0),I?.(te),window.requestAnimationFrame(ie)},Pe=te=>{Z(!1),E?.(te)},Ce=te=>{if(_?.(te),!te.defaultPrevented){if(te.key==="Backspace"||te.key==="Delete"){te.preventDefault(),!i&&H.current.length>0&&we(H.current.slice(0,-1));return}(te.key==="ArrowLeft"||te.key==="ArrowRight"||te.key==="Home"||te.key==="End")&&(te.preventDefault(),ie())}},de=te=>{if(O?.(te),te.defaultPrevented||i)return;te.preventDefault();const me=te.clipboardData.getData("text"),ke=h?h(me):me;we(`${H.current}${ke}`)},_e=te=>{s||(te.preventDefault(),Ne())},he=te=>te>=X-1?null:typeof j=="function"?j(te):j;return c.jsx("div",{className:R("inline-flex flex-col gap-2",U,l,a),style:D(S,F),"data-disabled":s?"":void 0,"data-readonly":i?"":void 0,"data-complete":B.length===X?"":void 0,children:c.jsxs("div",{className:"relative inline-flex items-center gap-2",onMouseDown:_e,children:[c.jsx("input",{...$,ref:K,type:"text",value:B,disabled:s,readOnly:i,maxLength:X,inputMode:A??(v==="numeric"?"numeric":"text"),autoComplete:w?"one-time-code":q,pattern:Jw(v,g),"aria-label":T??"一次性验证码","aria-invalid":k||$["aria-invalid"]?!0:void 0,className:R("absolute inset-0 z-10 h-full w-full cursor-text border-0 bg-transparent p-0 text-transparent opacity-0 outline-none","disabled:cursor-not-allowed",d),onChange:Me,onFocus:oe,onBlur:Pe,onKeyDown:Ce,onPaste:de}),Array.from({length:X}).map((te,me)=>{const ke=ae[me]??"",Te=ke.length>0,er=Y&&!s&&me===fe,Ke=Te?y?ge:ke:ve,dr=he(me);return c.jsxs(u.Fragment,{children:[c.jsx("span",{"aria-hidden":"true",className:R("inline-flex shrink-0 select-none items-center justify-center font-semibold transition-colors",Ww[P],Kw[C],!Te&&"font-normal text-[color:var(--ldkj-color-muted-foreground)]",er&&"border-[color:var(--ldkj-color-primary)] ring-2 ring-[color:var(--ldkj-color-ring)]",k&&"border-[color:var(--ldkj-color-danger)] text-[color:var(--ldkj-color-danger)]",er&&k&&"ring-[color:var(--ldkj-color-danger)]",s&&"cursor-not-allowed bg-[color:var(--ldkj-color-surface-muted)] text-[color:var(--ldkj-color-muted-foreground)] opacity-70",i&&!s&&"bg-[color:var(--ldkj-color-surface-muted)]",f),"data-active":er?"":void 0,"data-filled":Te?"":void 0,children:Ke}),dr?c.jsx("span",{"aria-hidden":"true",className:"select-none text-sm text-[color:var(--ldkj-color-muted-foreground)]",children:dr}):null]},me)})]})})});$f.displayName="InputOPT";function lc(e){return e==null?"":String(e)}function Qw(e){return typeof e=="string"||typeof e=="number"?String(e):""}function Zw(e,r){const t=r.trim().toLowerCase();return t?[e.value,e.textValue,Qw(e.label),...e.keywords??[]].filter(Boolean).join(" ").toLowerCase().includes(t):!0}function ac(e,r,t){if(!e.length)return-1;let o=r;for(let n=0;n<e.length;n+=1)if(o=(o+t+e.length)%e.length,!e[o]?.disabled)return o;return-1}function eP(e,r){const t=window.HTMLInputElement.prototype;Object.getOwnPropertyDescriptor(t,"value")?.set?.call(e,r),e.dispatchEvent(new Event("input",{bubbles:!0}))}function rP(e,r){if(e){if(typeof e=="function"){e(r);return}e.current=r}}function tP(...e){return u.useCallback(r=>{for(const t of e)rP(t,r)},e)}const Vf=u.forwardRef((e,r)=>{const{autoComplete:t="off",class:o,className:n,defaultValue:s,disabled:i,dropdownClassName:l,dropdownStyle:a,dropdownSx:d,emptyText:f="暂无匹配结果",filterOption:m=Zw,onBlur:p,onChange:v,onFocus:g,onKeyDown:h,onOptionSelect:y,onValueChange:b,openOnFocus:x=!0,optionClassName:w,optionStyle:P,optionSx:C,options:k=[],readOnly:j,renderOption:S,rootClassName:N,rootStyle:A,rootSx:q,value:E,...I}=e,_=se(),O=u.useRef(null),T=u.useRef(null),$=u.useRef(null),M=u.useId(),[U,F]=u.useState(()=>lc(s)),[X,ue]=u.useState(!1),[ee,Q]=u.useState(-1),W=E!==void 0,J=W?lc(E):U,B=!i&&!j,K=re(q,_),H=re(d,_),G=re(C,_),Y=tP(O,r),Z=u.useMemo(()=>m===!1?k:k.filter(oe=>m(oe,J)),[m,J,k]),ae=X&&B&&(Z.length>0||f!==null),fe=ee>=0?Z[ee]:void 0,ve=ae&&fe?`${M}-option-${ee}`:void 0;u.useEffect(()=>{if(!X)return;const oe=Pe=>{const Ce=Pe.target;Ce instanceof Node&&T.current&&!T.current.contains(Ce)&&(ue(!1),Q(-1))};return document.addEventListener("pointerdown",oe),()=>{document.removeEventListener("pointerdown",oe)}},[X]),u.useEffect(()=>{ee>=Z.length&&Q(-1)},[ee,Z.length]);const ge=(oe,Pe)=>{oe.disabled||($.current=oe,W||F(oe.value),O.current&&eP(O.current,oe.value),ue(!1),Q(-1),y?.(oe,Pe),O.current?.focus(),window.setTimeout(()=>{$.current===oe&&($.current=null)},0))},ie=oe=>{const Pe=oe.currentTarget.value,Ce=$.current;$.current=null,W||F(Pe),B&&ue(!Ce),Q(-1),v?.(oe),b?.(Pe,{event:oe,option:Ce??void 0,reason:Ce?"select":"input"})},we=oe=>{B&&x&&ue(!0),g?.(oe)},Ne=oe=>{const Pe=oe.relatedTarget;if(Pe instanceof Node&&T.current?.contains(Pe)){p?.(oe);return}ue(!1),Q(-1),p?.(oe)},Me=oe=>{if(!B){h?.(oe);return}oe.key==="ArrowDown"?(oe.preventDefault(),ue(!0),Q(Pe=>ac(Z,Pe<0?-1:Pe,1))):oe.key==="ArrowUp"?(oe.preventDefault(),ue(!0),Q(Pe=>ac(Z,Pe<0?Z.length:Pe,-1))):oe.key==="Enter"&&X&&fe?(oe.preventDefault(),ge(fe,oe)):(oe.key==="Escape"||oe.key==="Tab")&&(ue(!1),Q(-1)),h?.(oe)};return c.jsxs("div",{ref:T,className:R("relative w-full",K.sxClassName,N),style:D(A,K.sxInlineStyle),children:[c.jsx(fl,{...I,ref:Y,autoComplete:t,class:o,className:n,disabled:i,readOnly:j,role:"combobox","aria-autocomplete":"list","aria-controls":ae?M:void 0,"aria-expanded":ae,"aria-activedescendant":ve,value:J,onBlur:Ne,onChange:ie,onFocus:we,onKeyDown:Me}),ae?c.jsx("div",{id:M,role:"listbox",className:R("absolute left-0 top-full z-[var(--ldkj-z-dropdown)] mt-1 max-h-64 w-full overflow-y-auto rounded-md border border-solid border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-surface)] p-1 text-[color:var(--ldkj-color-surface-foreground)] shadow-[var(--ldkj-shadow-popover)]","animate-in fade-in-0 zoom-in-95",H.sxClassName,l),style:D(a,H.sxInlineStyle),children:Z.length>0?Z.map((oe,Pe)=>{const Ce=ee===Pe,de=oe.value===J,_e=!!oe.disabled;return c.jsx("div",{id:`${M}-option-${Pe}`,role:"option","aria-disabled":_e||void 0,"aria-selected":de,className:R("grid cursor-default select-none gap-0.5 rounded-sm px-2 py-1.5 text-sm leading-5 outline-none transition-colors",Ce&&"bg-[color:var(--ldkj-color-accent)] text-[color:var(--ldkj-color-primary)]",de&&!Ce&&"bg-[color:var(--ldkj-color-surface-muted)] text-[color:var(--ldkj-color-foreground)]",_e?"pointer-events-none text-[color:var(--ldkj-color-muted-foreground)] opacity-70":"text-[color:var(--ldkj-color-foreground)]",G.sxClassName,w),style:D(P,G.sxInlineStyle),onMouseDown:he=>he.preventDefault(),onMouseEnter:()=>{_e||Q(Pe)},onClick:he=>ge(oe,he),children:S?S(oe,{active:Ce,disabled:_e,inputValue:J,selected:de}):c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"truncate font-medium",children:oe.label}),oe.description?c.jsx("span",{className:"truncate text-xs text-[color:var(--ldkj-color-muted-foreground)]",children:oe.description}):null]})},`${oe.value}-${Pe}`)}):c.jsx("div",{className:"px-2 py-2 text-sm text-[color:var(--ldkj-color-muted-foreground)]",children:f})}):null]})});Vf.displayName="AutoComplete";function zf(e){const r=e+"CollectionProvider",[t,o]=br(r),[n,s]=t(r,{collectionRef:{current:null},itemMap:new Map}),i=h=>{const{scope:y,children:b}=h,x=Oe.useRef(null),w=Oe.useRef(new Map).current;return c.jsx(n,{scope:y,itemMap:w,collectionRef:x,children:b})};i.displayName=r;const l=e+"CollectionSlot",a=io(l),d=Oe.forwardRef((h,y)=>{const{scope:b,children:x}=h,w=s(l,b),P=Re(y,w.collectionRef);return c.jsx(a,{ref:P,children:x})});d.displayName=l;const f=e+"CollectionItemSlot",m="data-radix-collection-item",p=io(f),v=Oe.forwardRef((h,y)=>{const{scope:b,children:x,...w}=h,P=Oe.useRef(null),C=Re(y,P),k=s(f,b);return Oe.useEffect(()=>(k.itemMap.set(P,{ref:P,...w}),()=>{k.itemMap.delete(P)})),c.jsx(p,{[m]:"",ref:C,children:x})});v.displayName=f;function g(h){const y=s(e+"CollectionConsumer",h);return Oe.useCallback(()=>{const x=y.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${m}]`));return Array.from(y.itemMap.values()).sort((k,j)=>w.indexOf(k.ref.current)-w.indexOf(j.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:i,Slot:d,ItemSlot:v},g,o]}var oP=u.createContext(void 0);function Fn(e){const r=u.useContext(oP);return e||r||"ltr"}var gs="rovingFocusGroup.onEntryFocus",nP={bubbles:!1,cancelable:!0},wo="RovingFocusGroup",[vi,Hf,sP]=zf(wo),[iP,Bn]=br(wo,[sP]),[lP,aP]=iP(wo),Uf=u.forwardRef((e,r)=>c.jsx(vi.Provider,{scope:e.__scopeRovingFocusGroup,children:c.jsx(vi.Slot,{scope:e.__scopeRovingFocusGroup,children:c.jsx(cP,{...e,ref:r})})}));Uf.displayName=wo;var cP=u.forwardRef((e,r)=>{const{__scopeRovingFocusGroup:t,orientation:o,loop:n=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:a,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...m}=e,p=u.useRef(null),v=Re(r,p),g=Fn(s),[h,y]=_r({prop:i,defaultProp:l??null,onChange:a,caller:wo}),[b,x]=u.useState(!1),w=Ar(d),P=Hf(t),C=u.useRef(!1),[k,j]=u.useState(0);return u.useEffect(()=>{const S=p.current;if(S)return S.addEventListener(gs,w),()=>S.removeEventListener(gs,w)},[w]),c.jsx(lP,{scope:t,orientation:o,dir:g,loop:n,currentTabStopId:h,onItemFocus:u.useCallback(S=>y(S),[y]),onItemShiftTab:u.useCallback(()=>x(!0),[]),onFocusableItemAdd:u.useCallback(()=>j(S=>S+1),[]),onFocusableItemRemove:u.useCallback(()=>j(S=>S-1),[]),children:c.jsx(ye.div,{tabIndex:b||k===0?-1:0,"data-orientation":o,...m,ref:v,style:{outline:"none",...e.style},onMouseDown:pe(e.onMouseDown,()=>{C.current=!0}),onFocus:pe(e.onFocus,S=>{const N=!C.current;if(S.target===S.currentTarget&&N&&!b){const A=new CustomEvent(gs,nP);if(S.currentTarget.dispatchEvent(A),!A.defaultPrevented){const q=P().filter(T=>T.focusable),E=q.find(T=>T.active),I=q.find(T=>T.id===h),O=[E,I,...q].filter(Boolean).map(T=>T.ref.current);Gf(O,f)}}C.current=!1}),onBlur:pe(e.onBlur,()=>x(!1))})})}),Wf="RovingFocusGroupItem",Kf=u.forwardRef((e,r)=>{const{__scopeRovingFocusGroup:t,focusable:o=!0,active:n=!1,tabStopId:s,children:i,...l}=e,a=vt(),d=s||a,f=aP(Wf,t),m=f.currentTabStopId===d,p=Hf(t),{onFocusableItemAdd:v,onFocusableItemRemove:g,currentTabStopId:h}=f;return u.useEffect(()=>{if(o)return v(),()=>g()},[o,v,g]),c.jsx(vi.ItemSlot,{scope:t,id:d,focusable:o,active:n,children:c.jsx(ye.span,{tabIndex:m?0:-1,"data-orientation":f.orientation,...l,ref:r,onMouseDown:pe(e.onMouseDown,y=>{o?f.onItemFocus(d):y.preventDefault()}),onFocus:pe(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:pe(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){f.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const b=fP(y,f.orientation,f.dir);if(b!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let w=p().filter(P=>P.focusable).map(P=>P.ref.current);if(b==="last")w.reverse();else if(b==="prev"||b==="next"){b==="prev"&&w.reverse();const P=w.indexOf(y.currentTarget);w=f.loop?mP(w,P+1):w.slice(P+1)}setTimeout(()=>Gf(w))}}),children:typeof i=="function"?i({isCurrentTabStop:m,hasTabStop:h!=null}):i})})});Kf.displayName=Wf;var uP={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function dP(e,r){return r!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function fP(e,r,t){const o=dP(e.key,t);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return uP[o]}function Gf(e,r=!1){const t=document.activeElement;for(const o of e)if(o===t||(o.focus({preventScroll:r}),document.activeElement!==t))return}function mP(e,r){return e.map((t,o)=>e[(r+o)%e.length])}var Yf=Uf,Xf=Kf,ml="Radio",[hP,Jf]=br(ml),[pP,vP]=hP(ml),Qf=u.forwardRef((e,r)=>{const{__scopeRadio:t,name:o,checked:n=!1,required:s,disabled:i,value:l="on",onCheck:a,form:d,...f}=e,[m,p]=u.useState(null),v=Re(r,y=>p(y)),g=u.useRef(!1),h=m?d||!!m.closest("form"):!0;return c.jsxs(pP,{scope:t,checked:n,disabled:i,children:[c.jsx(ye.button,{type:"button",role:"radio","aria-checked":n,"data-state":tm(n),"data-disabled":i?"":void 0,disabled:i,value:l,...f,ref:v,onClick:pe(e.onClick,y=>{n||a?.(),h&&(g.current=y.isPropagationStopped(),g.current||y.stopPropagation())})}),h&&c.jsx(rm,{control:m,bubbles:!g.current,name:o,value:l,checked:n,required:s,disabled:i,form:d,style:{transform:"translateX(-100%)"}})]})});Qf.displayName=ml;var Zf="RadioIndicator",em=u.forwardRef((e,r)=>{const{__scopeRadio:t,forceMount:o,...n}=e,s=vP(Zf,t);return c.jsx(Qr,{present:o||s.checked,children:c.jsx(ye.span,{"data-state":tm(s.checked),"data-disabled":s.disabled?"":void 0,...n,ref:r})})});em.displayName=Zf;var gP="RadioBubbleInput",rm=u.forwardRef(({__scopeRadio:e,control:r,checked:t,bubbles:o=!0,...n},s)=>{const i=u.useRef(null),l=Re(i,s),a=_n(t),d=Nn(r);return u.useEffect(()=>{const f=i.current;if(!f)return;const m=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(m,"checked").set;if(a!==t&&v){const g=new Event("click",{bubbles:o});v.call(f,t),f.dispatchEvent(g)}},[a,t,o]),c.jsx(ye.input,{type:"radio","aria-hidden":!0,defaultChecked:t,...n,tabIndex:-1,ref:l,style:{...n.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});rm.displayName=gP;function tm(e){return e?"checked":"unchecked"}var xP=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],$n="RadioGroup",[bP]=br($n,[Bn,Jf]),om=Bn(),nm=Jf(),[yP,wP]=bP($n),sm=u.forwardRef((e,r)=>{const{__scopeRadioGroup:t,name:o,defaultValue:n,value:s,required:i=!1,disabled:l=!1,orientation:a,dir:d,loop:f=!0,onValueChange:m,...p}=e,v=om(t),g=Fn(d),[h,y]=_r({prop:s,defaultProp:n??null,onChange:m,caller:$n});return c.jsx(yP,{scope:t,name:o,required:i,disabled:l,value:h,onValueChange:y,children:c.jsx(Yf,{asChild:!0,...v,orientation:a,dir:g,loop:f,children:c.jsx(ye.div,{role:"radiogroup","aria-required":i,"aria-orientation":a,"data-disabled":l?"":void 0,dir:g,...p,ref:r})})})});sm.displayName=$n;var im="RadioGroupItem",lm=u.forwardRef((e,r)=>{const{__scopeRadioGroup:t,disabled:o,...n}=e,s=wP(im,t),i=s.disabled||o,l=om(t),a=nm(t),d=u.useRef(null),f=Re(r,d),m=s.value===n.value,p=u.useRef(!1);return u.useEffect(()=>{const v=h=>{xP.includes(h.key)&&(p.current=!0)},g=()=>p.current=!1;return document.addEventListener("keydown",v),document.addEventListener("keyup",g),()=>{document.removeEventListener("keydown",v),document.removeEventListener("keyup",g)}},[]),c.jsx(Xf,{asChild:!0,...l,focusable:!i,active:m,children:c.jsx(Qf,{disabled:i,required:s.required,checked:m,...a,...n,name:s.name,ref:f,onCheck:()=>s.onValueChange(n.value),onKeyDown:pe(v=>{v.key==="Enter"&&v.preventDefault()}),onFocus:pe(n.onFocus,()=>{p.current&&d.current?.click()})})})});lm.displayName=im;var PP="RadioGroupIndicator",am=u.forwardRef((e,r)=>{const{__scopeRadioGroup:t,...o}=e,n=nm(t);return c.jsx(em,{...n,...o,ref:r})});am.displayName=PP;var CP=sm,kP=lm,jP=am;const hl=u.forwardRef((e,r)=>{const{className:t,class:o,sx:n,style:s,children:i,...l}=e,a=se(),{sxClassName:d,sxInlineStyle:f}=re(n,a);return c.jsx(kP,{ref:r,className:R("inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full border border-solid border-[color:var(--ldkj-color-input)] bg-[color:var(--ldkj-color-surface)] text-[color:var(--ldkj-color-primary)] transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)] focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:border-[color:var(--ldkj-color-primary)]",d,t,o),style:D(s,f),...l,children:i??c.jsx(jP,{className:"inline-flex h-4 w-4 items-center justify-center",children:c.jsx("span",{className:"h-2 w-2 rounded-full bg-current"})})})});hl.displayName="Radio";const cc={xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4"};function SP(e){return e===void 0?{className:cc.md}:e==="xs"||e==="sm"||e==="md"||e==="lg"?{className:cc[e]}:{style:{gap:typeof e=="number"?`${e}px`:e}}}const cm=u.forwardRef((e,r)=>{const{className:t,class:o,children:n,direction:s="vertical",disabled:i=!1,gap:l="md",options:a,sx:d,style:f,...m}=e,p=se(),{sxClassName:v,sxInlineStyle:g}=re(d,p),h=SP(l);return c.jsxs(CP,{ref:r,disabled:i,className:R("flex",s==="horizontal"?"flex-row flex-wrap":"flex-col",h.className,v,t,o),style:D(f,h.style,g),...m,children:[a?.map(y=>{const b=i||y.disabled;return c.jsxs(Ln,{className:R("inline-flex items-start gap-2 text-sm leading-5 text-[color:var(--ldkj-color-foreground)]",b&&"cursor-not-allowed text-[color:var(--ldkj-color-muted-foreground)]",!b&&"cursor-pointer",y.className),children:[c.jsx(hl,{...y.radioProps,value:y.value,disabled:b}),c.jsxs("span",{className:"grid gap-0.5",children:[c.jsx("span",{children:y.label}),y.description?c.jsx("span",{className:"text-xs text-[color:var(--ldkj-color-muted-foreground)]",children:y.description}):null]})]},y.value)}),n]})});cm.displayName="RadioGroup";const NP={sm:"h-8 w-8",md:"h-9 w-9",lg:"h-10 w-10"},qP={sm:"h-4 w-4",md:"h-[18px] w-[18px]",lg:"h-5 w-5"};function xs(e,r){return Number.isFinite(e)?Math.max(0,Math.min(r,Math.round(e))):0}function EP(e){return c.jsx("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",...e,children:c.jsx("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",fill:"currentColor"})})}function RP(e){const{fill:r,size:t,active:o,preview:n,disabled:s,tabIndex:i,onClick:l,onFocus:a,onKeyDown:d,onMouseEnter:f,setRef:m,label:p,character:v}=e,g=v??c.jsx(EP,{className:qP[t]});return c.jsx("button",{ref:m,type:"button",role:"radio","aria-checked":o,"aria-label":p,disabled:s,tabIndex:i,onClick:l,onFocus:a,onKeyDown:d,onMouseEnter:f,className:R("group relative inline-flex items-center justify-center rounded-full outline-none transition","focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)]/35 focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",NP[t],n?"scale-[1.03]":"scale-100"),children:c.jsxs("span",{"aria-hidden":"true",className:R("relative inline-flex items-center justify-center transition-colors",n?"text-[color:var(--ldkj-color-warning)]/70":"text-[color:var(--ldkj-color-warning)]"),children:[c.jsx("span",{className:"text-[color:var(--ldkj-color-border)]",children:g}),c.jsx("span",{className:"absolute inset-0 overflow-hidden",style:{width:`${r}%`},children:c.jsx("span",{className:"text-current",children:g})})]})})}const um=u.forwardRef((e,r)=>{const{value:t,defaultValue:o=0,count:n=5,allowClear:s=!0,borderless:i=!1,disabled:l=!1,readOnly:a=!1,name:d,onChange:f,onHoverChange:m,size:p="md",character:v,className:g,class:h,style:y,sx:b,onMouseLeave:x,onKeyDown:w,...P}=e,C=se(),{sxClassName:k,sxInlineStyle:j}=re(b,C),S=t!==void 0,N=Math.max(1,Math.floor(n||1)),[A,q]=u.useState(()=>xs(o,N)),[E,I]=u.useState(null),_=u.useRef([]),O=xs(S?t??0:A,N),T=E??O,$=u.useId(),M=u.useCallback(ee=>{if(l||a)return;const Q=xs(ee,N),W=s&&Q===O?0:Q;S||q(W),f?.(W)},[s,O,l,S,f,a,N]),U=u.useCallback(()=>{I(null),m?.(null)},[m]),F=u.useCallback(ee=>{_.current[ee]?.focus()},[]),X=ee=>{U(),x?.(ee)},ue=(ee,Q)=>{if(w?.(ee),ee.defaultPrevented||l||a||ee.key!=="ArrowRight"&&ee.key!=="ArrowUp"&&ee.key!=="ArrowLeft"&&ee.key!=="ArrowDown"&&ee.key!=="Home"&&ee.key!=="End")return;if(ee.preventDefault(),ee.key==="Home"){U(),F(0),M(0);return}if(ee.key==="End"){U(),F(N-1),M(N);return}const J=ee.key==="ArrowRight"||ee.key==="ArrowUp"?1:-1,B=Math.max(0,Math.min(N-1,Q+J));U(),F(B),M(B+1)};return c.jsxs("div",{...P,ref:r,role:"radiogroup","aria-label":P["aria-label"]??"评分","aria-readonly":a||void 0,"data-disabled":l?"":void 0,"data-borderless":i?"":void 0,"data-readonly":a?"":void 0,"data-size":p,className:R("inline-flex w-fit items-center gap-1 rounded-full px-2 py-1 transition-colors",i?"border-0 bg-transparent shadow-none":"border border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-background)] shadow-sm",!i&&!l?"hover:border-[color:var(--ldkj-color-input)]":void 0,k,g,h),style:D(y,j),onMouseLeave:X,children:[d?c.jsx("input",{type:"hidden",name:d,value:String(O)}):null,Array.from({length:N}).map((ee,Q)=>{const W=Q+1,J=Math.max(0,Math.min(1,T-Q))*100,B=O===W,K=E!==null;return c.jsx(RP,{fill:J,size:p,active:B,preview:K&&W<=T,disabled:l||a,tabIndex:O===0?Q===0?0:-1:B?0:-1,label:`选择 ${W} 星`,character:v,setRef:H=>{_.current[Q]=H},onClick:()=>{U(),M(W)},onFocus:()=>{l||a||U()},onKeyDown:H=>ue(H,Q),onMouseEnter:()=>{l||a||(I(W),m?.(W))}},`${$}-${W}`)})]})});um.displayName="Rate";function bs(e){const r=se();return re(e,r)}function uc(e){const{value:r,defaultValue:t,onChange:o}=e,[n,s]=u.useState(t),i=r!==void 0,l=i?r:n,a=u.useCallback(d=>{i||s(d),o?.(d)},[i,o]);return[l,a]}function Fo(e){return Array.isArray(e)?e.filter(r=>r!==""):[]}function AP(e){return Array.isArray(e)?e:[]}function Bt(e,r){return e?.[r]??r}function IP(e,r){const t=Bt(r,"value");return typeof e[t]=="string"?e[t]:e.value}function TP(e,r){const t=Bt(r,"label");return e[t]??e.label??e.value??""}function _P(e,r){const t=Bt(r,"children");return AP(e[t])}function OP(e,r){const t=Bt(r,"disabled");return!!(e[t]??e.disabled)}function MP(e,r){const t=Bt(r,"isLeaf"),o=e[t];return typeof o=="boolean"?o:e.isLeaf}function LP(e,r){const t=Bt(r,"loading");return!!(e[t]??e.loading)}function dm(e,r){const t=IP(e,r);if(typeof t!="string"||t.length===0)return null;const o=_P(e,r),n=MP(e,r),s=typeof n=="boolean"?n:o.length===0;return{option:e,value:t,label:TP(e,r),children:o,disabled:OP(e,r),isLeaf:s,loading:LP(e,r)}}function gi(e,r){const t=[];for(const o of e){const n=dm(o,r);n&&t.push(n)}return t}function Bo(e,r,t){const o=[],n=[];let s=e;for(const i of r){const l=gi(s,t).find(a=>a.value===i);if(!l)break;o.push(l),n.push(l.label),s=l.children}return{matched:o,labels:n,path:o.map(i=>i.value)}}function DP(e,r,t){const o=[];let n=e;o.push(gi(n,t));for(const s of r){const i=gi(n,t).find(l=>l.value===s);if(!i||(n=i.children,n.length===0))break;o.push(n.map(l=>dm(l,t)).filter(l=>!!l))}return o}function dc(e,r){return r.every((t,o)=>e[o]===t)}function FP(e,r){return c.jsx(c.Fragment,{children:e.map((t,o)=>c.jsxs(u.Fragment,{children:[o>0?c.jsx("span",{className:"mx-1 text-[color:var(--ldkj-color-muted-foreground)]",children:r}):null,c.jsx("span",{className:"min-w-0 truncate",children:t})]},o))})}function BP(e){return c.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",fill:"none",...e,children:c.jsx("path",{d:"M4 6L8 10L12 6",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}function $P(e){return c.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",fill:"none",...e,children:c.jsx("path",{d:"M6 4L10 8L6 12",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}function VP(e){return c.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",fill:"none",...e,children:[c.jsx("path",{d:"M4.5 4.5L11.5 11.5",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),c.jsx("path",{d:"M11.5 4.5L4.5 11.5",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]})}function ys(){return c.jsx("span",{className:"inline-block h-3.5 w-3.5 animate-spin rounded-full border-2 border-[color:var(--ldkj-color-border)] border-t-[color:var(--ldkj-color-primary)]","aria-hidden":"true"})}const fm=u.forwardRef((e,r)=>{const{options:t=[],value:o,defaultValue:n=[],onValueChange:s,onOpenChange:i,open:l,defaultOpen:a=!1,placeholder:d="请选择",separator:f="/",displayRender:m,renderOption:p,fieldNames:v,changeOnSelect:g=!1,expandTrigger:h="click",clearable:y=!1,contentWidth:b="auto",maxPanelHeight:x=336,side:w="bottom",align:P="start",sideOffset:C=8,contentClassName:k,contentClass:j,contentStyle:S,contentSx:N,class:A,sx:q,readOnly:E=!1,required:I,loadData:_,optionClassName:O,optionClass:T,optionStyle:$,optionSx:M,className:U,style:F,disabled:X=!1,name:ue,id:ee,autoFocus:Q,onClick:W,onFocus:J,onBlur:B,onKeyDown:K,...H}=e,[G,Y]=uc({value:o===void 0?void 0:Fo(o),defaultValue:Fo(n),onChange:z=>{}}),[Z,ae]=uc({value:l,defaultValue:a,onChange:i}),[fe,ve]=u.useState(()=>Fo(n)),[ge,ie]=u.useState(null),we=u.useRef(null),Ne=u.useRef(!0),Me=u.useRef(Z),{sxClassName:oe,sxInlineStyle:Pe}=bs(q),{sxClassName:Ce,sxInlineStyle:de}=bs(N),{sxClassName:_e,sxInlineStyle:he}=bs(M);u.useEffect(()=>()=>{Ne.current=!1},[]),u.useEffect(()=>{Z&&!Me.current&&ve(G),Me.current=Z},[Z,G]);const te=u.useMemo(()=>Bo(t,G,v),[v,t,G]),me=te.matched.map(z=>z.option),ke=Z?fe:G,Te=u.useMemo(()=>Bo(t,ke,v),[ke,v,t]),er=u.useMemo(()=>DP(t,ke,v),[ke,v,t]),Ke=u.useMemo(()=>{const z=Te.matched[Te.matched.length-1];return!Z||!z?!1:z.children.length===0&&!z.isLeaf},[Te.matched,Z]),dr=u.useMemo(()=>te.labels.length>0?m?m(te.labels,me):FP(te.labels,f):d,[m,d,me,te.labels,f]),yr=o!==void 0,He=u.useCallback((z,ce)=>{const xe=Fo(z),je=Bo(t,xe,v);yr||Y(xe),s?.(xe,{...ce,path:je.path,options:je.matched.map(Ie=>Ie.option),labels:je.labels})},[v,yr,s,t,Y]),ir=u.useCallback(z=>{X||E||(yr||Y([]),ve([]),s?.([],{reason:"clear",path:[],options:[],labels:[],event:z}))},[X,yr,s,E,Y]),Ge=u.useRef(_);u.useEffect(()=>{Ge.current=_},[_]);const Lr=u.useCallback(async(z,ce,xe)=>{if(X||E||z.disabled)return;const je=z.children.length>0,Ie=je||!z.isLeaf&&!!Ge.current,rr=ce.join("");if(Ie&&!je&&Ge.current){ie(rr);try{const tr=Bo(t,ce,v);await Ge.current(tr.matched.map(or=>or.option),{option:z.option,path:ce,options:t})}finally{Ne.current&&ie(tr=>tr===rr?null:tr)}}if(g||!Ie){He(ce,{reason:"select",option:z.option,event:xe}),ae(!1);return}ve(ce),ae(!0)},[g,He,X,v,t,E,ae]),Ye=u.useCallback(z=>{X||(ve(z),ae(!0))},[X,ae]);u.useImperativeHandle(r,()=>({focus:()=>we.current?.focus(),blur:()=>we.current?.blur(),open:()=>Ye(G),close:()=>ae(!1),clear:()=>ir(),getValue:()=>G.slice()}),[ir,Ye,G,ae]);const V=ge!==null;return c.jsxs("div",{className:"relative inline-flex w-full items-stretch",children:[c.jsxs(tf,{open:Z,onOpenChange:ae,children:[c.jsx(sl,{asChild:!0,children:c.jsxs("button",{ref:we,id:ee,type:"button",className:R("relative flex h-9 w-full min-w-0 items-center gap-2 rounded-md border border-solid border-[color:var(--ldkj-color-input)] bg-[color:var(--ldkj-color-background)] px-3 text-left text-sm text-[color:var(--ldkj-color-foreground)] shadow-sm transition-colors","focus-visible:border-[color:var(--ldkj-color-ring)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)]/30","disabled:cursor-not-allowed disabled:bg-[color:var(--ldkj-color-muted)] disabled:text-[color:var(--ldkj-color-muted-foreground)] disabled:opacity-70",E&&"cursor-default",oe,U,A),style:D(F,Pe),autoFocus:Q,disabled:X,"aria-haspopup":"dialog","aria-expanded":Z,"aria-disabled":X||void 0,"aria-readonly":E||void 0,onClick:z=>{W?.(z)},onFocus:J,onBlur:B,onKeyDown:z=>{K?.(z),!X&&((z.key==="ArrowDown"||z.key==="Enter")&&(z.preventDefault(),ae(!0)),z.key==="Escape"&&(z.preventDefault(),ae(!1)))},...H,children:[c.jsx("span",{className:R("min-w-0 flex-1 truncate",te.labels.length===0&&"text-[color:var(--ldkj-color-muted-foreground)]"),children:dr}),c.jsxs("span",{className:"flex shrink-0 items-center gap-1 text-[color:var(--ldkj-color-muted-foreground)]",children:[y&&G.length>0&&!X&&!E?c.jsx("span",{role:"button",tabIndex:-1,className:"rounded p-1 transition-colors hover:text-[color:var(--ldkj-color-foreground)]","aria-label":"清除选择",onMouseDown:z=>z.preventDefault(),onClick:z=>{z.preventDefault(),z.stopPropagation(),ir(z)},children:c.jsx(VP,{className:"h-3.5 w-3.5"})}):null,c.jsx(BP,{className:"h-4 w-4 shrink-0"})]})]})}),c.jsx(il,{side:w,align:P,sideOffset:C,width:b,className:R("overflow-hidden p-0",Ce,k,j),style:D(S,de),role:"dialog","aria-label":"级联选择",children:c.jsxs("div",{className:"flex w-max overflow-hidden bg-[color:var(--ldkj-color-popover)] text-[color:var(--ldkj-color-popover-foreground)]",style:{maxHeight:typeof x=="number"?`${x}px`:x},children:[er.map((z,ce)=>{const xe=ke.slice(0,ce);return z.length===0?c.jsx("div",{className:"flex min-w-44 items-center justify-center border-r border-[color:var(--ldkj-color-border)] px-4 py-6 text-sm text-[color:var(--ldkj-color-muted-foreground)] last:border-r-0",children:V&&ce===er.length-1?c.jsxs("span",{className:"inline-flex items-center gap-2",children:[c.jsx(ys,{}),"加载中"]}):"暂无可选项"},`empty-${ce}`):c.jsx("div",{className:R("min-w-48 border-r border-[color:var(--ldkj-color-border)] last:border-r-0",ce>0&&"bg-[color:var(--ldkj-color-muted)]/40"),children:c.jsx("div",{className:"flex max-h-full flex-col gap-1 overflow-y-auto p-1",children:z.map(je=>{const Ie=[...xe,je.value],rr=G.length===Ie.length&&dc(G,Ie),tr=ke.length>=Ie.length&&dc(ke,Ie),or=ge===Ie.join("")||je.loading,mr=je.children.length>0||!je.isLeaf&&!!Ge.current&&!or,rs={active:tr,checked:rr,disabled:je.disabled,hasChildren:mr,isLeaf:je.isLeaf,level:ce,loading:or,path:Ie,selected:rr};return c.jsxs("button",{type:"button",className:R("flex min-h-10 w-full items-center gap-2 rounded-md px-3 py-2 text-left text-sm text-[color:var(--ldkj-color-foreground)] transition-colors","hover:bg-[color:var(--ldkj-color-accent)] hover:text-[color:var(--ldkj-color-accent-foreground)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)]/30",rr&&"bg-[color:var(--ldkj-color-primary)] text-[color:var(--ldkj-color-primary-foreground)]",tr&&!rr&&"bg-[color:var(--ldkj-color-muted)] text-[color:var(--ldkj-color-foreground)]",je.disabled&&"cursor-not-allowed text-[color:var(--ldkj-color-muted-foreground)] opacity-70 hover:bg-transparent hover:text-[color:var(--ldkj-color-muted-foreground)]",_e,O,T),style:D($,he),disabled:X||E||je.disabled,onMouseEnter:()=>{h==="hover"&&!je.disabled&&mr&&(ve(Ie),ae(!0))},onClick:L=>{L.preventDefault(),Lr(je,Ie,L)},children:[c.jsx("span",{className:"min-w-0 flex-1 truncate",children:p?p(je.option,rs):je.label}),or?c.jsx(ys,{}):mr?c.jsx($P,{className:"h-4 w-4 shrink-0 text-[color:var(--ldkj-color-muted-foreground)]"}):null]},Ie.join(""))})})},`column-${ce}`)}),Ke?c.jsx("div",{className:"flex min-w-44 items-center justify-center border-l border-[color:var(--ldkj-color-border)] px-4 py-6 text-sm text-[color:var(--ldkj-color-muted-foreground)]",children:V?c.jsxs("span",{className:"inline-flex items-center gap-2",children:[c.jsx(ys,{}),"加载中"]}):"请继续选择"}):null]})})]}),ue?c.jsx("input",{type:"hidden",name:ue,required:I,value:G.length>0?JSON.stringify(G):""}):null]})});fm.displayName="Cascader";function zP(e){return Array.isArray(e)?Number(e[0]??0):Number(e??0)}function fc(e,r){const t=Number(e);return Number.isFinite(t)?t:r}function mc(e,r){return e===void 0?r:typeof e=="number"?`${e}px`:e}const HP={solid:{"--ldkj-slider-fill":"var(--ldkj-color-primary)","--ldkj-slider-fill-end":"var(--ldkj-color-primary)","--ldkj-slider-focus-ring":"var(--ldkj-color-ring)","--ldkj-slider-thumb":"var(--ldkj-color-primary)","--ldkj-slider-thumb-ring":"color-mix(in srgb, var(--ldkj-color-primary) 18%, transparent)","--ldkj-slider-track":"var(--ldkj-color-muted)","--ldkj-slider-track-shadow":"inset 0 1px 2px rgb(15 23 42 / 10%)","--ldkj-slider-thumb-shadow":"0 0 0 3px var(--ldkj-slider-thumb-ring), 0 4px 12px -2px rgba(0,0,0,0.12)","--ldkj-slider-thumb-shadow-hover":"0 0 0 5px var(--ldkj-slider-thumb-ring), 0 6px 20px -4px rgba(0,0,0,0.16)"},gradient:{"--ldkj-slider-fill":"var(--ldkj-color-secondary)","--ldkj-slider-fill-end":"var(--ldkj-color-primary)","--ldkj-slider-focus-ring":"var(--ldkj-color-ring)","--ldkj-slider-thumb":"linear-gradient(145deg, var(--ldkj-color-secondary) 0%, var(--ldkj-color-primary) 72%, var(--ldkj-color-primary-hover) 100%)","--ldkj-slider-thumb-ring":"color-mix(in srgb, var(--ldkj-color-secondary) 16%, transparent)","--ldkj-slider-track":"var(--ldkj-color-muted)","--ldkj-slider-track-shadow":"inset 0 1px 2px rgb(15 23 42 / 16%)","--ldkj-slider-thumb-shadow":"0 0 0 5px var(--ldkj-slider-thumb-ring), 0 10px 24px -10px rgba(14,116,144,0.9)","--ldkj-slider-thumb-shadow-hover":"0 0 0 7px var(--ldkj-slider-thumb-ring), 0 14px 28px -12px rgba(14,116,144,0.95)"}};function mm(e){const{className:r,class:t,defaultValue:o,max:n,min:s,style:i,sx:l,thumbSize:a,trackSize:d,value:f,variant:m="solid",onValueChange:p,...v}=e,g=se(),{sxClassName:h,sxInlineStyle:y}=re(l,g),b=f!==void 0,[x,w]=u.useState(()=>zP(o)),P=b?f:x,C=fc(s,0),k=fc(n,100),j=Number.isFinite(P)?P:C,S=k>C?(j-C)/(k-C)*100:0,N=Math.max(0,Math.min(100,S)),A=q=>{const E=Number(q.currentTarget.value);b||w(E),p?.(E)};return c.jsx("input",{...v,type:"range",...b?{value:f}:{defaultValue:o},min:s,max:n,onChange:A,className:R("h-[var(--ldkj-slider-track-size)] w-full cursor-pointer appearance-none rounded-full border border-white/70 bg-transparent align-middle","accent-[var(--ldkj-slider-fill-end)] shadow-[var(--ldkj-slider-track-shadow),0_1px_0_rgba(255,255,255,0.88)]","transition-[filter,opacity,box-shadow] duration-200 ease-out hover:brightness-105","focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-[var(--ldkj-slider-focus-ring)] focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-55 disabled:grayscale","[&::-webkit-slider-thumb]:h-[var(--ldkj-slider-thumb-size)] [&::-webkit-slider-thumb]:w-[var(--ldkj-slider-thumb-size)] [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:border-[3px] [&::-webkit-slider-thumb]:border-white [&::-webkit-slider-thumb]:[background:var(--ldkj-slider-thumb)] [&::-webkit-slider-thumb]:shadow-[var(--ldkj-slider-thumb-shadow),inset_0_1px_0_rgba(255,255,255,0.55)] [&::-webkit-slider-thumb]:transition-[transform,box-shadow,filter] [&::-webkit-slider-thumb]:duration-200 [&::-webkit-slider-thumb]:ease-out","hover:[&::-webkit-slider-thumb]:scale-110 hover:[&::-webkit-slider-thumb]:shadow-[var(--ldkj-slider-thumb-shadow-hover),inset_0_1px_0_rgba(255,255,255,0.65)] active:[&::-webkit-slider-thumb]:scale-95","[&::-moz-range-thumb]:h-[var(--ldkj-slider-thumb-size)] [&::-moz-range-thumb]:w-[var(--ldkj-slider-thumb-size)] [&::-moz-range-thumb]:appearance-none [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border-[3px] [&::-moz-range-thumb]:border-white [&::-moz-range-thumb]:[background:var(--ldkj-slider-thumb)] [&::-moz-range-thumb]:shadow-[var(--ldkj-slider-thumb-shadow),inset_0_1px_0_rgba(255,255,255,0.55)] [&::-moz-range-thumb]:transition-[transform,box-shadow,filter] [&::-moz-range-thumb]:duration-200 [&::-moz-range-thumb]:ease-out","hover:[&::-moz-range-thumb]:scale-110 hover:[&::-moz-range-thumb]:shadow-[var(--ldkj-slider-thumb-shadow-hover),inset_0_1px_0_rgba(255,255,255,0.65)] active:[&::-moz-range-thumb]:scale-95","[&::-moz-range-track]:h-[var(--ldkj-slider-track-size)] [&::-moz-range-track]:rounded-full [&::-moz-range-track]:bg-transparent",h,r,t),style:D({...HP[m],"--ldkj-slider-thumb-size":mc(a,"1.05rem"),"--ldkj-slider-track-size":mc(d,"0.4rem"),"--ldkj-slider-percent":`${N}%`,background:"linear-gradient(90deg, var(--ldkj-slider-fill) 0%, var(--ldkj-slider-fill-end) var(--ldkj-slider-percent), transparent var(--ldkj-slider-percent), transparent 100%), linear-gradient(180deg, rgba(255,255,255,0.86), rgba(148,163,184,0.22)), var(--ldkj-slider-track)"},i,y)})}mm.displayName="Slider";function UP({children:e}){return c.jsx("span",{className:"text-[color:var(--ldkj-color-danger)]",children:e??"*"})}const Vn=u.createContext(null);function co(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}function lr(e){return Array.isArray(e)?e.map(r=>lr(r)):co(e)?Object.fromEntries(Object.entries(e).map(([r,t])=>[r,lr(t)])):e}function Po(e){return typeof e=="string"||typeof e=="number"?[e]:Array.from(e)}function hr(e){return JSON.stringify(Po(e))}function WP(e){return Po(e).join(".")}function st(e,r){let t=e;for(const o of Po(r)){if(t==null)return;t=t[o]}return t}function Qt(e,r,t){const o=Po(r);if(o.length===0)return e;const n=(s,i)=>{const l=o[i],a=i===o.length-1,d=Array.isArray(s)?[...s]:co(s)?{...s}:typeof l=="number"?[]:{};return d[l]=a?t:n(d[l],i+1),d};return n(e,0)}function KP(e,r){const t=Po(r);if(t.length===0)return e;const o=(n,s)=>{if(!Array.isArray(n)&&!co(n))return n;const i=t[s],l=Array.isArray(n)?[...n]:{...n};return s===t.length-1?(delete l[i],l):(l[i]=o(l[i],s+1),l)};return o(e,0)}function GP(e,r){return Qt({},e,r)}function YP(e,r){const t=(o,n)=>{if(co(o)&&co(n)){const s={...o};for(const[i,l]of Object.entries(n))s[i]=t(s[i],l);return s}return lr(n)};return t(e,r)}function hc(){return{errors:[],touched:!1,validating:!1}}function XP(e){return e==null||e===""||Array.isArray(e)&&e.length===0}function JP(e){return e===void 0?[]:Array.isArray(e)?e:[e]}function QP(e,r,t){if(!e)return!0;const o=JP(r??t);return o.length===0||o.includes(e)}function ZP(e,r){return u.isValidElement(e)?e:typeof e=="string"||typeof e=="number"?String(e):e instanceof Error?e.message:r}function e0(e){let r=lr({}),t=lr(r),o={},n=0;const s=new Set,i=new Map,l=new Map,a=()=>{for(const x of s)x()},d=x=>{const w=hr(x),P=l.get(w);if(P)return P;const C=hc();return l.set(w,C),C},f=(x,w)=>{const P=hr(x);l.set(P,{...d(x),...w})},m=()=>Array.from(i.values()).map(x=>({name:x.name,value:st(r,x.name),...d(x.name)})),p=x=>{o.onFieldsChange?.(x,m())},v=async(x,w)=>{const P=x.rules.filter(k=>QP(w.trigger,k.validateTrigger,x.validateTrigger));if(P.length===0)return[];w.validateOnly||(f(x.name,{validating:!0}),a());const C=[];for(const k of P){const j=st(r,x.name),S=k.transform?k.transform(j):j,N=k.message??"该字段为必填项";if(k.required&&XP(S)){if(C.push(N),x.validateFirst)break;continue}if(k.validator){try{const A=await k.validator(S,lr(r),b);A===!1?C.push(N):A!==void 0&&A!==!0&&C.push(A)}catch(A){C.push(ZP(A,N))}if(x.validateFirst&&C.length>0)break}}return!w.validateOnly&&w.id===n&&(f(x.name,{errors:C,validating:!1}),p([{name:x.name,value:st(r,x.name),...d(x.name),errors:C,validating:!1}]),a()),C},g=async(x,w={})=>{const P=++n,C=x?.map(hr),k=Array.from(i.values()).filter(N=>C?C.includes(hr(N.name)):!0),S=(await Promise.all(k.map(async N=>({field:N,errors:await v(N,{id:P,trigger:w.trigger,validateOnly:w.validateOnly})})))).filter(N=>N.errors.length>0).map(N=>({errors:N.errors,name:N.field.name}));if(S.length>0)throw{errorFields:S,outOfDate:P!==n,values:lr(r)};return lr(r)},h=(x,w)=>{const P=hr(x);for(const C of i.values())(hr(C.name)===P||C.dependencies.some(j=>hr(j)===P))&&g([C.name],{trigger:w}).catch(()=>{})},y=(x,w,P={})=>{r=Qt(r,x,w),P.touched&&f(x,{touched:!0});const C={name:x,value:w,...d(x)};P.source!=="external"&&(o.onValuesChange?.(GP(x,w),lr(r)),p([C])),a(),P.trigger&&h(x,P.trigger)},b={getFieldValue:x=>st(r,x),getFieldsValue:x=>x?x.reduce((w,P)=>Qt(w,P,st(r,P)),{}):lr(r),getFieldError:x=>d(x).errors,getFieldsError:x=>(x??Array.from(i.values()).map(P=>P.name)).map(P=>({errors:d(P).errors,name:P})),getFieldMeta:x=>d(x),isFieldTouched:x=>d(x).touched,isFieldsTouched:x=>(x??Array.from(i.values()).map(P=>P.name)).some(P=>d(P).touched),setFieldValue:(x,w)=>y(x,w,{source:"external"}),setFieldsValue:x=>{r=YP(r,x),a()},setFields:x=>{for(const w of x)"value"in w&&(r=Qt(r,w.name,w.value)),f(w.name,{errors:w.errors??d(w.name).errors,touched:w.touched??d(w.name).touched,validating:w.validating??d(w.name).validating});p(x),a()},resetFields:x=>{const w=x??Array.from(i.values()).map(P=>P.name);if(!x)r=lr(t),l.clear();else for(const P of w)r=Qt(r,P,st(t,P)),l.delete(hr(P));p(w.map(P=>({name:P,value:st(r,P),...d(P)}))),a()},validateFields:x=>g(x),submit:async()=>{try{const x=await g(void 0);o.onFinish?.(x)}catch(x){o.onFinishFailed?.(x)}},subscribe:x=>(s.add(x),()=>s.delete(x)),__INTERNAL__:{getStoreSnapshot:()=>r,getMetaSnapshot:x=>d(x),setCallbacks:x=>{o=x},setInitialValues:(x,w)=>{t=lr(x??{}),w&&(r=lr(t))},registerField:x=>{const w=hr(x.name);return i.set(w,x),l.has(w)||l.set(w,hc()),P=>{i.delete(w),P?.preserve===!1&&(r=KP(r,x.name),l.delete(w),a())}},setFieldValue:y,validateFields:g}};return b}function pl(e){const r=u.useRef(null);return r.current||(r.current=e??e0()),[e??r.current]}function vl(){const e=u.useContext(Vn);if(!e)throw new Error("Form hooks must be used inside a Form or receive a form instance.");return e}function zn(e,r){const t=u.useContext(Vn),o=r??t;if(!o)throw new Error("useFormValue must be used inside a Form or receive a form instance.");return u.useSyncExternalStore(o.subscribe,()=>e===void 0?o.__INTERNAL__.getStoreSnapshot():o.getFieldValue(e),()=>e===void 0?o.__INTERNAL__.getStoreSnapshot():o.getFieldValue(e))}function hm(e,r){return zn(e,r)}function r0(e,r){const t=u.useContext(Vn),o=r??t;if(!o)throw new Error("useFormFieldMeta must be used inside a Form or receive a form instance.");return u.useSyncExternalStore(o.subscribe,()=>o.__INTERNAL__.getMetaSnapshot(e),()=>o.__INTERNAL__.getMetaSnapshot(e))}const oo={emptyValue:"",trigger:"onChange",valuePropName:"value"},pc={AutoComplete:{emptyValue:"",trigger:"onValueChange",valuePropName:"value"},Cascader:{emptyValue:[],trigger:"onValueChange",valuePropName:"value"},Checkbox:{emptyValue:!1,trigger:"onCheckedChange",valuePropName:"checked"},CheckboxGroup:{emptyValue:[],trigger:"onChange",valuePropName:"value"},Input:oo,InputNumber:oo,InputOPT:oo,RadioGroup:{trigger:"onValueChange",valuePropName:"value"},Rate:{emptyValue:0,trigger:"onChange",valuePropName:"value"},Select:{trigger:"onValueChange",valuePropName:"value"},Slider:{emptyValue:0,trigger:"onValueChange",valuePropName:"value"},Switch:{emptyValue:!1,trigger:"onCheckedChange",valuePropName:"checked"},Uploader:{emptyValue:null,trigger:"onValueChange",valuePropName:"value"}};function t0(e){const r=e.type;return r.displayName??r.name??r.render?.displayName??r.render?.name}function o0(e){if(!e)return oo;const r=t0(e);return r&&pc[r]?pc[r]:oo}function n0(e,r){const[t]=r;if(t&&typeof t=="object"&&"target"in t&&t.target){const o=t.target;return e==="checked"?o.checked:o.value}return t}function s0(e){return e===void 0?[]:Array.isArray(e)?[...e]:[e]}function i0(e,r,t){return e!==void 0?e:t==="checked"?!1:r.emptyValue}function vc(e,r){return(...t)=>{e?.(...t),r(...t)}}function l0(e){const{className:r,class:t,form:o,initialValues:n,nativeSubmit:s=!1,onFieldsChange:i,onFinish:l,onFinishFailed:a,onReset:d,onSubmit:f,onValuesChange:m,style:p,sx:v,...g}=e,[h]=pl(o),y=se(),{sxClassName:b,sxInlineStyle:x}=re(v,y),w=u.useRef(!1),P=!s&&(o!==void 0||l!==void 0||a!==void 0||m!==void 0||i!==void 0);h.__INTERNAL__.setCallbacks({onFieldsChange:i,onFinish:l,onFinishFailed:a,onValuesChange:m}),h.__INTERNAL__.setInitialValues(n,!w.current),w.current=!0;const C=j=>{f?.(j),!(j.defaultPrevented||!P)&&(j.preventDefault(),h.submit())},k=j=>{d?.(j),!(j.defaultPrevented||!P)&&h.resetFields()};return c.jsx(Vn.Provider,{value:h,children:c.jsx("form",{className:R("space-y-4",b,r,t),style:D(p,x),onReset:k,onSubmit:C,...g})})}function gl(e){const{children:r,className:t,class:o,controlClassName:n,controlStyle:s,dependencies:i=[],extra:l,getValueFromEvent:a,getValueProps:d,help:f,initialValue:m,label:p,labelClassName:v,labelStyle:g,name:h,noStyle:y=!1,preserve:b=!0,required:x,rules:w=[],sx:P,style:C,trigger:k,validateFirst:j=!1,validateStatus:S,validateTrigger:N="onChange",valuePropName:A,...q}=e,E=vl(),I=se(),{sxClassName:_,sxInlineStyle:O}=re(P,I),T=zn(void 0,E),$=h===void 0?void 0:hr(h),M=h===void 0?void 0:E.getFieldValue(h),U=r0(h??"__FORM_ITEM__",E),F=u.isValidElement(r)&&typeof r.type!="string"?r:null,X=o0(F),ue=A??X.valuePropName,ee=k??X.trigger,Q=w.some(fe=>fe.required),W=u.useMemo(()=>x&&!Q?[{required:!0},...w]:w,[Q,x,w]),J=u.useMemo(()=>JSON.stringify(i.map(hr)),[i]),B=u.useRef(W);B.current=W,u.useEffect(()=>{if(h===void 0)return;m!==void 0&&E.getFieldValue(h)===void 0&&E.__INTERNAL__.setFieldValue(h,m,{source:"external"});const fe=E.__INTERNAL__.registerField({dependencies:i,name:h,rules:B.current,validateFirst:j,validateTrigger:N});return()=>fe({preserve:b})},[J,E,m,h,$,b,j,N]);const K={form:E,meta:U,value:M,values:T},H=()=>{if(typeof r=="function")return r(K);if(!F||h===void 0)return r;const fe=F.props,ve=d?d(M):X.skipValueProp?{}:{[ue]:i0(M,X,ue)};fe.name===void 0&&(ve.name=WP(h)),ve[ee]=vc(fe[ee],(...ge)=>{const ie=a?a(...ge):n0(ue,ge);E.__INTERNAL__.setFieldValue(h,ie,{source:"internal",touched:!0,trigger:ee})});for(const ge of s0(N))ge!==ee&&(ve[ge]=vc(ve[ge]??fe[ge],()=>{E.__INTERNAL__.validateFields([h],{trigger:ge}).catch(()=>{})}));return u.cloneElement(F,ve)},G=U.errors,Y=f??G[0],Z=S??(U.validating?"validating":G.length>0?"error":void 0),ae=c.jsxs(c.Fragment,{children:[p!==void 0?c.jsxs("div",{className:R("text-sm font-medium leading-5 text-[color:var(--ldkj-color-foreground)]",v),style:g,children:[p,x||Q?c.jsx("span",{className:"ml-1 text-[color:var(--ldkj-color-danger)]","aria-hidden":"true",children:"*"}):null]}):null,c.jsx("div",{className:n,style:s,children:H()}),Y!==void 0?c.jsx("div",{className:R("text-xs leading-5",Z==="error"?"text-[color:var(--ldkj-color-danger)]":"text-[color:var(--ldkj-color-muted-foreground)]"),"aria-live":Z==="error"?"polite":void 0,role:Z==="error"?"alert":void 0,children:Y}):null,l!==void 0?c.jsx("div",{className:"text-xs leading-5 text-[color:var(--ldkj-color-muted-foreground)]",children:l}):null]});return y?ae:c.jsx("div",{className:R("space-y-2",Z==="error"&&"[&_input]:border-[color:var(--ldkj-color-danger)]",_,t,o),style:D(C,O),...q,children:ae})}gl.displayName="FormItem";const pm=Object.assign(l0,{Item:gl,useForm:pl,useFormInstance:vl,useFormValue:zn,useFormWatch:hm});pm.displayName="Form";const xl="__LDKJ_UPLOADER_LIST_IGNORE__",fn=u.createContext(null);let gc=0;function a0(){return gc+=1,`ldkj-upload-${Date.now()}-${gc}`}function c0(e){return!!(e&&typeof e.then=="function")}function u0(e){return typeof File<"u"&&e instanceof File}function d0(e){return typeof Blob<"u"&&e instanceof Blob}function xc(e,r){return u0(e)?e:new File([e],r,{type:e.type})}function f0(e){return e===void 0?"":e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/1024/1024).toFixed(1)} MB`}function ws(e){if(e.type?.startsWith("image/"))return!0;const r=e.thumbUrl??e.url??e.name;return/\.(apng|avif|gif|jpe?g|png|svg|webp)$/i.test(r)}function m0(e,r){if(!r)return!0;const t=r.split(",").map(s=>s.trim()).filter(Boolean);if(t.length===0)return!0;const o=e.name.toLowerCase(),n=e.type.toLowerCase();return t.some(s=>{const i=s.toLowerCase();return i.startsWith(".")?o.endsWith(i):i.endsWith("/*")?n.startsWith(i.slice(0,-1)):n===i})}function h0(e){return Number.isFinite(e)?Math.max(0,Math.min(100,Math.round(e))):0}function p0(e){const r=e.responseText;if(!r)return e.response;try{return JSON.parse(r)}catch{return r}}async function v0(e){const{action:r,data:t,file:o,filename:n,headers:s,method:i,signal:l,withCredentials:a,onProgress:d}=e;if(r)return new Promise((f,m)=>{const p=new XMLHttpRequest,v=new FormData;v.append(n,o),Object.entries(t??{}).forEach(([g,h])=>{h!=null&&v.append(g,h instanceof Blob?h:String(h))}),p.open(i,r),p.withCredentials=a,Object.entries(s??{}).forEach(([g,h])=>{p.setRequestHeader(g,h)}),p.upload.onprogress=g=>{g.lengthComputable&&d(g.loaded/g.total*100)},p.onload=()=>{const g=p0(p);if(p.status>=200&&p.status<300){f({response:g,url:g&&typeof g=="object"&&"url"in g&&typeof g.url=="string"?g.url:void 0});return}m(new Error(`Upload failed with status ${p.status}`))},p.onerror=()=>m(new Error("Upload request failed")),p.onabort=()=>m(new DOMException("Upload aborted","AbortError")),l.addEventListener("abort",()=>p.abort(),{once:!0}),p.send(v)})}async function Ps(e){return c0(e)?e:Promise.resolve(e)}function g0(e,r,t){const o=e.filter(n=>n.status==="success"||n.status==="ready").map(n=>n.value!==void 0?n.value:n.originFile).filter(n=>n!==void 0);return r||t!==void 0&&t>1?o:o[0]??null}function x0(){const e=u.useRef(new Set);return u.useEffect(()=>()=>{e.current.forEach(r=>URL.revokeObjectURL(r)),e.current.clear()},[]),u.useCallback(r=>{const t=URL.createObjectURL(r);return e.current.add(t),t},[])}function b0(...e){return r=>{e.forEach(t=>{if(t){if(typeof t=="function"){t(r);return}t.current=r}})}}function vm(e,r){const t={...e??{}};return Object.entries(r??{}).forEach(([o,n])=>{n!==void 0&&(t[o]=n)}),t}function y0(e,r){return vm(e,r)}function gm(e){const{children:r,...t}=e,o=u.useContext(fn),n=u.useMemo(()=>vm(o,t),[o,t]);return c.jsx(fn.Provider,{value:n,children:r})}function w0(){return u.useContext(fn)}const xm=u.forwardRef(function(r,t){const o=u.useContext(fn),n=u.useMemo(()=>y0(o,r),[o,r]),{accept:s,action:i,autoUpload:l=!0,beforeRemove:a,beforeUpload:d,children:f,className:m,class:p,customRequest:v,data:g,defaultFileList:h,directory:y=!1,disabled:b=!1,drag:x=!1,fileList:w,getValueFromResult:P,headers:C,listType:k="text",maxCount:j,maxSize:S,method:N="POST",multiple:A=!1,name:q="file",openFileDialogOnClick:E=!0,pastable:I=!1,preview:_=!0,request:O,renderActions:T,renderItem:$,renderTrigger:M,showFileList:U=!0,style:F,sx:X,transformFile:ue,withCredentials:ee=!1,onChange:Q,onDownload:W,onDrop:J,onDragEnter:B,onDragLeave:K,onDragOver:H,onError:G,onExceed:Y,onFileListChange:Z,onPreview:ae,onReject:fe,onRemove:ve,onSelect:ge,onSuccess:ie,onValueChange:we,defaultValue:Ne,value:Me,...oe}=n,Pe=u.useRef(null),Ce=u.useRef(h??[]),de=u.useRef(new Map),[_e,he]=u.useState(h??[]),[te,me]=u.useState(!1),[ke,Te]=u.useState(null),er=x0(),Ke=se(),{sxClassName:dr,sxInlineStyle:yr}=re(X,Ke),He=w??_e,ir=O??v,Ge=!!(ir||i),Lr=He.some(L=>L.status==="uploading");u.useEffect(()=>{Ce.current=He},[He]),u.useEffect(()=>{if(!I||b)return;const L=Ae=>{const Xe=Array.from(Ae.clipboardData?.files??[]);Xe.length!==0&&ce(Xe)};return window.addEventListener("paste",L),()=>window.removeEventListener("paste",L)}),u.useEffect(()=>()=>{de.current.forEach(L=>L.abort()),de.current.clear()},[]);const Ye=u.useCallback((L,Ae)=>{Ce.current=L,w===void 0&&he(L),Z?.(L,Ae),Ae.reason!=="progress"&&we?.(g0(L,A,j),Ae)},[w,j,A,Z,we]),V=u.useCallback((L,Ae,Xe)=>{const Le=Ce.current.map(Fe=>Fe.uid===L?{...Fe,...Ae}:Fe),Ue=Le.find(Fe=>Fe.uid===L);return Ye(Le,{file:Ue,fileList:Le,reason:Xe}),{file:Ue,fileList:Le}},[Ye]),z=u.useCallback(async L=>{const Ae=L.originFile;if(!Ae||b)return;const Xe=new AbortController;de.current.set(L.uid,Xe),V(L.uid,{status:"uploading",percent:0,error:void 0},"retry");try{const Le=typeof i=="function"?await i(Ae):i,Ue=typeof g=="function"?await g(Ae):g,Je=await(ir??v0)({action:Le,data:Ue,file:Ae,filename:q,headers:C,item:L,method:N,signal:Xe.signal,withCredentials:ee,onProgress:nr=>{V(L.uid,{percent:h0(nr)},"progress")}}),Dr=Ce.current.find(nr=>nr.uid===L.uid)??L,ze=P?P(Je,Dr):Je&&"value"in Je?Je.value:Dr.value,wr=V(L.uid,{name:Je?.name??Dr.name,percent:100,response:Je?.response??Je,status:"success",thumbUrl:Je?.thumbUrl??Je?.url??Dr.thumbUrl,url:Je?.url??Dr.url,value:ze},"success");wr.file&&ie?.(wr.file,wr.fileList)}catch(Le){if(Le.name==="AbortError")return;const Ue=Le instanceof Error?Le:new Error(String(Le)),Fe=V(L.uid,{error:Ue,status:"error"},"error");Fe.file&&G?.(Ue,Fe.file,Fe.fileList)}finally{de.current.delete(L.uid)}},[i,g,b,ir,P,C,N,q,G,ie,V,ee]),ce=u.useCallback(async L=>{if(b||L.length===0)return;ge?.(L);const Ae=[];for(const ze of L){if(!m0(ze,s)){fe?.(ze,"accept");continue}if(S!==void 0&&ze.size>S){fe?.(ze,"maxSize");continue}Ae.push(ze)}if(Ae.length===0)return;const Xe=Ce.current,Le=j??(A?void 0:1);let Ue=Ae;if(Le!==void 0){const ze=Math.max(0,Le-(Le===1?0:Xe.length));Ue.length>ze&&(Y?.(Ue.slice(ze),Xe),Ue=Ue.slice(0,ze))}if(Ue.length===0)return;const Fe=[],Je=[];for(const ze of Ue){let wr=l&&Ge,nr=ze;if(d){const So=await Ps(d(ze,Ue));if(So===xl)continue;So===!1?wr=!1:d0(So)&&(nr=xc(So,ze.name))}wr&&ue&&(nr=xc(await Ps(ue(nr)),ze.name));const hp=ws(nr)?er(nr):void 0,ia={uid:a0(),name:nr.name,originFile:nr,percent:wr?0:Ge?void 0:100,size:nr.size,status:wr?"uploading":Ge?"ready":"success",thumbUrl:hp,type:nr.type,value:wr?void 0:nr};Fe.push(ia),wr&&Je.push(ia)}if(Fe.length===0)return;const Dr=Le===1?Fe.slice(-1):[...Ce.current,...Fe];Ye(Dr,{file:Fe[Fe.length-1],fileList:Dr,reason:"add"}),Je.forEach(ze=>{z(ze)})},[s,l,d,er,b,Ye,Ge,j,S,A,Y,fe,ge,ue,z]),xe=u.useCallback(()=>{b||!E||Pe.current?.click()},[b,E]),je=u.useCallback(async L=>{const Ae=Ce.current;if(a&&!await Ps(a(L,Ae)))return;de.current.get(L.uid)?.abort(),de.current.delete(L.uid);const Xe=Ae.filter(Le=>Le.uid!==L.uid);Ye(Xe,{file:L,fileList:Xe,reason:"remove"}),ve?.(L,Xe)},[a,Ye,ve]),Ie={disabled:b,dragging:te,fileList:He,open:xe,uploading:Lr},rr=()=>M?M(Ie):typeof f=="function"?f(Ie):f||(x?c.jsx("div",{className:"grid min-h-32 place-items-center rounded-md border border-dashed border-[color:var(--ldkj-color-input)] bg-[color:var(--ldkj-color-muted)] px-6 py-8 text-center transition-colors hover:border-[color:var(--ldkj-color-primary)] hover:bg-[color:var(--ldkj-color-accent)]",children:c.jsxs("div",{className:"space-y-1",children:[c.jsx("div",{className:"text-sm font-medium text-[color:var(--ldkj-color-foreground)]",children:"点击或拖拽文件到此处上传"}),c.jsx("div",{className:"text-xs text-[color:var(--ldkj-color-muted-foreground)]",children:s?`支持 ${s}`:"支持单个或多个文件"})]})}):c.jsx(vr,{type:"button",disabled:b,size:"sm",children:"选择文件"})),tr=L=>{const Ae={preview:()=>{or(L)},download:()=>mr(L),remove:()=>{je(L)},retry:()=>{z(L)},upload:()=>{z(L)}};return T?T(L,Ae):c.jsxs("div",{className:R("flex shrink-0 items-center gap-1",k==="picture-card"&&"w-full flex-wrap justify-end"),children:[_&&(L.url||L.thumbUrl)?c.jsx(vr,{type:"button",variant:"ghost",size:"xs",disabled:b,onClick:Ae.preview,children:"预览"}):null,L.url?c.jsx(vr,{type:"button",variant:"ghost",size:"xs",disabled:b,onClick:Ae.download,children:"下载"}):null,L.status==="ready"&&Ge?c.jsx(vr,{type:"button",variant:"ghost",size:"xs",disabled:b,onClick:Ae.upload,children:"上传"}):null,L.status==="error"?c.jsx(vr,{type:"button",variant:"ghost",size:"xs",disabled:b,onClick:Ae.retry,children:"重试"}):null,c.jsx(vr,{type:"button",variant:"ghost",size:"xs",disabled:b,onClick:Ae.remove,children:"删除"})]})},or=async L=>{await ae?.(L)!==!1&&_&&(L.url||L.thumbUrl)&&Te(L)},mr=L=>{if(W){W(L);return}L.url&&window.open(L.url,"_blank","noopener,noreferrer")},rs=L=>{const Ae=k!=="text"&&(L.thumbUrl||L.url),Xe=L.status==="uploading"?"上传中":L.status==="success"?"已完成":L.status==="error"?"失败":"待上传",Le=k==="picture-card"?"flex min-w-0 flex-col items-stretch gap-3 rounded-md border border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-card)] p-3":"flex min-w-0 items-center gap-3 rounded-md border border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-card)] p-3",Ue=k==="picture-card"?"grid min-w-0 gap-2":"flex min-w-0 items-center justify-between gap-3",Fe=k==="picture-card"?"grid aspect-square w-full shrink-0 place-items-center overflow-hidden rounded-md border border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-muted)]":"grid size-14 shrink-0 place-items-center overflow-hidden rounded-md border border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-muted)]",Je=c.jsxs("div",{className:R(Le,L.status==="error"&&"border-[color:var(--ldkj-color-danger)] bg-[color:var(--ldkj-color-danger)]/10"),children:[Ae?c.jsx("button",{type:"button",className:Fe,onClick:()=>{or(L)},children:ws(L)?c.jsx("img",{src:L.thumbUrl??L.url,alt:L.name,className:"h-full w-full object-cover",loading:"lazy",decoding:"async"}):c.jsx("span",{className:"px-2 text-xs text-[color:var(--ldkj-color-muted-foreground)]",children:"FILE"})}):null,c.jsxs("div",{className:"min-w-0 flex-1 space-y-1",children:[c.jsxs("div",{className:Ue,children:[c.jsxs("div",{className:"min-w-0",children:[c.jsx("div",{className:"truncate text-sm font-medium text-[color:var(--ldkj-color-card-foreground)]",children:L.name}),c.jsxs("div",{className:"text-xs text-[color:var(--ldkj-color-muted-foreground)]",children:[Xe,L.size!==void 0?` · ${f0(L.size)}`:""]})]}),tr(L)]}),L.status==="uploading"?c.jsx(jf,{value:L.percent??0,size:"xs"}):null,L.status==="error"?c.jsx("div",{className:"text-xs text-[color:var(--ldkj-color-danger)]",children:L.error?.message??"上传失败"}):null]})]});return $?$(L,Je,{preview:()=>{or(L)},download:()=>mr(L),remove:()=>{je(L)},retry:()=>{z(L)},upload:()=>{z(L)}}):Je};return c.jsxs("div",{...oe,className:R("grid gap-3",b&&"cursor-not-allowed opacity-60",dr,m,p),style:D(F,yr),onDragEnter:L=>{B?.(L),!(!x||b)&&(L.preventDefault(),me(!0))},onDragOver:L=>{H?.(L),!(!x||b)&&(L.preventDefault(),me(!0))},onDragLeave:L=>{K?.(L),!(!x||b)&&(L.currentTarget.contains(L.relatedTarget)||me(!1))},onDrop:L=>{J?.(L),!(!x||b)&&(L.preventDefault(),me(!1),ce(Array.from(L.dataTransfer.files)))},children:[c.jsx("input",{ref:b0(Pe,t),hidden:!0,type:"file",accept:s,multiple:A,name:q,disabled:b,...y?{directory:"",webkitdirectory:""}:{},onChange:L=>{Q?.(L.target.files),ce(Array.from(L.target.files??[])),L.currentTarget.value=""}}),c.jsx("div",{className:R("inline-block",x&&"rounded-md",te&&"ring-2 ring-[color:var(--ldkj-color-ring)] ring-offset-2"),role:x||M||f?"button":void 0,tabIndex:x||M||f?0:void 0,"aria-disabled":b||void 0,onClick:xe,onKeyDown:L=>{L.key!=="Enter"&&L.key!==" "||(L.preventDefault(),xe())},children:rr()}),U&&He.length>0?c.jsx("div",{role:"list","aria-label":"上传文件列表",className:R(k==="picture-card"?"grid grid-cols-[repeat(auto-fill,minmax(160px,1fr))] gap-3":"grid gap-2"),children:He.map(L=>c.jsx("div",{role:"listitem",children:rs(L)},L.uid))}):null,ke&&(ke.url||ke.thumbUrl)?c.jsxs("div",{className:"fixed inset-0 z-[1200] flex items-center justify-center bg-black/80 p-6",role:"dialog","aria-modal":"true","aria-label":"文件预览",onClick:()=>Te(null),children:[ws(ke)?c.jsx("img",{src:ke.url??ke.thumbUrl,alt:ke.name,className:"max-h-[88vh] max-w-[92vw] rounded-md object-contain shadow-2xl",onClick:L=>L.stopPropagation()}):c.jsx("div",{className:"rounded-md bg-[color:var(--ldkj-color-popover)] p-6 text-sm text-[color:var(--ldkj-color-popover-foreground)] shadow-xl",onClick:L=>L.stopPropagation(),children:ke.name}),c.jsx(vr,{type:"button",variant:"minor",size:"sm",className:"absolute right-5 top-5",onClick:L=>{L.stopPropagation(),Te(null)},children:"关闭"})]}):null]})});xm.displayName="Uploader";const P0=Object.assign(xm,{LIST_IGNORE:xl,Provider:gm});function bc(e,[r,t]){return Math.min(t,Math.max(r,e))}var C0=[" ","Enter","ArrowUp","ArrowDown"],k0=[" ","Enter"],ft="Select",[Hn,Un,j0]=zf(ft),[$t]=br(ft,[j0,Ft]),Wn=Ft(),[S0,et]=$t(ft),[N0,q0]=$t(ft),bm=e=>{const{__scopeSelect:r,children:t,open:o,defaultOpen:n,onOpenChange:s,value:i,defaultValue:l,onValueChange:a,dir:d,name:f,autoComplete:m,disabled:p,required:v,form:g}=e,h=Wn(r),[y,b]=u.useState(null),[x,w]=u.useState(null),[P,C]=u.useState(!1),k=Fn(d),[j,S]=_r({prop:o,defaultProp:n??!1,onChange:s,caller:ft}),[N,A]=_r({prop:i,defaultProp:l,onChange:a,caller:ft}),q=u.useRef(null),E=y?g||!!y.closest("form"):!0,[I,_]=u.useState(new Set),O=Array.from(I).map(T=>T.props.value).join(";");return c.jsx(el,{...h,children:c.jsxs(S0,{required:v,scope:r,trigger:y,onTriggerChange:b,valueNode:x,onValueNodeChange:w,valueNodeHasChildren:P,onValueNodeHasChildrenChange:C,contentId:vt(),value:N,onValueChange:A,open:j,onOpenChange:S,dir:k,triggerPointerDownPosRef:q,disabled:p,children:[c.jsx(Hn.Provider,{scope:r,children:c.jsx(N0,{scope:e.__scopeSelect,onNativeOptionAdd:u.useCallback(T=>{_($=>new Set($).add(T))},[]),onNativeOptionRemove:u.useCallback(T=>{_($=>{const M=new Set($);return M.delete(T),M})},[]),children:t})}),E?c.jsxs(Hm,{"aria-hidden":!0,required:v,tabIndex:-1,name:f,autoComplete:m,value:N,onChange:T=>A(T.target.value),disabled:p,form:g,children:[N===void 0?c.jsx("option",{value:""}):null,Array.from(I)]},O):null]})})};bm.displayName=ft;var ym="SelectTrigger",wm=u.forwardRef((e,r)=>{const{__scopeSelect:t,disabled:o=!1,...n}=e,s=Wn(t),i=et(ym,t),l=i.disabled||o,a=Re(r,i.onTriggerChange),d=Un(t),f=u.useRef("touch"),[m,p,v]=Wm(h=>{const y=d().filter(w=>!w.disabled),b=y.find(w=>w.value===i.value),x=Km(y,h,b);x!==void 0&&i.onValueChange(x.value)}),g=h=>{l||(i.onOpenChange(!0),v()),h&&(i.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)})};return c.jsx(qn,{asChild:!0,...s,children:c.jsx(ye.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Um(i.value)?"":void 0,...n,ref:a,onClick:pe(n.onClick,h=>{h.currentTarget.focus(),f.current!=="mouse"&&g(h)}),onPointerDown:pe(n.onPointerDown,h=>{f.current=h.pointerType;const y=h.target;y.hasPointerCapture(h.pointerId)&&y.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&h.pointerType==="mouse"&&(g(h),h.preventDefault())}),onKeyDown:pe(n.onKeyDown,h=>{const y=m.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&p(h.key),!(y&&h.key===" ")&&C0.includes(h.key)&&(g(),h.preventDefault())})})})});wm.displayName=ym;var Pm="SelectValue",Cm=u.forwardRef((e,r)=>{const{__scopeSelect:t,className:o,style:n,children:s,placeholder:i="",...l}=e,a=et(Pm,t),{onValueNodeHasChildrenChange:d}=a,f=s!==void 0,m=Re(r,a.onValueNodeChange);return Ve(()=>{d(f)},[d,f]),c.jsx(ye.span,{...l,ref:m,style:{pointerEvents:"none"},children:Um(a.value)?c.jsx(c.Fragment,{children:i}):s})});Cm.displayName=Pm;var E0="SelectIcon",km=u.forwardRef((e,r)=>{const{__scopeSelect:t,children:o,...n}=e;return c.jsx(ye.span,{"aria-hidden":!0,...n,ref:r,children:o||"▼"})});km.displayName=E0;var R0="SelectPortal",jm=e=>c.jsx(En,{asChild:!0,...e});jm.displayName=R0;var mt="SelectContent",Sm=u.forwardRef((e,r)=>{const t=et(mt,e.__scopeSelect),[o,n]=u.useState();if(Ve(()=>{n(new DocumentFragment)},[]),!t.open){const s=o;return s?mo.createPortal(c.jsx(Nm,{scope:e.__scopeSelect,children:c.jsx(Hn.Slot,{scope:e.__scopeSelect,children:c.jsx("div",{children:e.children})})}),s):null}return c.jsx(qm,{...e,ref:r})});Sm.displayName=mt;var pr=10,[Nm,rt]=$t(mt),A0="SelectContentImpl",I0=io("SelectContent.RemoveScroll"),qm=u.forwardRef((e,r)=>{const{__scopeSelect:t,position:o="item-aligned",onCloseAutoFocus:n,onEscapeKeyDown:s,onPointerDownOutside:i,side:l,sideOffset:a,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:p,collisionPadding:v,sticky:g,hideWhenDetached:h,avoidCollisions:y,...b}=e,x=et(mt,t),[w,P]=u.useState(null),[C,k]=u.useState(null),j=Re(r,B=>P(B)),[S,N]=u.useState(null),[A,q]=u.useState(null),E=Un(t),[I,_]=u.useState(!1),O=u.useRef(!1);u.useEffect(()=>{if(w)return Od(w)},[w]),dd();const T=u.useCallback(B=>{const[K,...H]=E().map(Z=>Z.ref.current),[G]=H.slice(-1),Y=document.activeElement;for(const Z of B)if(Z===Y||(Z?.scrollIntoView({block:"nearest"}),Z===K&&C&&(C.scrollTop=0),Z===G&&C&&(C.scrollTop=C.scrollHeight),Z?.focus(),document.activeElement!==Y))return},[E,C]),$=u.useCallback(()=>T([S,w]),[T,S,w]);u.useEffect(()=>{I&&$()},[I,$]);const{onOpenChange:M,triggerPointerDownPosRef:U}=x;u.useEffect(()=>{if(w){let B={x:0,y:0};const K=G=>{B={x:Math.abs(Math.round(G.pageX)-(U.current?.x??0)),y:Math.abs(Math.round(G.pageY)-(U.current?.y??0))}},H=G=>{B.x<=10&&B.y<=10?G.preventDefault():w.contains(G.target)||M(!1),document.removeEventListener("pointermove",K),U.current=null};return U.current!==null&&(document.addEventListener("pointermove",K),document.addEventListener("pointerup",H,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",K),document.removeEventListener("pointerup",H,{capture:!0})}}},[w,M,U]),u.useEffect(()=>{const B=()=>M(!1);return window.addEventListener("blur",B),window.addEventListener("resize",B),()=>{window.removeEventListener("blur",B),window.removeEventListener("resize",B)}},[M]);const[F,X]=Wm(B=>{const K=E().filter(Y=>!Y.disabled),H=K.find(Y=>Y.ref.current===document.activeElement),G=Km(K,B,H);G&&setTimeout(()=>G.ref.current.focus())}),ue=u.useCallback((B,K,H)=>{const G=!O.current&&!H;(x.value!==void 0&&x.value===K||G)&&(N(B),G&&(O.current=!0))},[x.value]),ee=u.useCallback(()=>w?.focus(),[w]),Q=u.useCallback((B,K,H)=>{const G=!O.current&&!H;(x.value!==void 0&&x.value===K||G)&&q(B)},[x.value]),W=o==="popper"?xi:Em,J=W===xi?{side:l,sideOffset:a,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:p,collisionPadding:v,sticky:g,hideWhenDetached:h,avoidCollisions:y}:{};return c.jsx(Nm,{scope:t,content:w,viewport:C,onViewportChange:k,itemRefCallback:ue,selectedItem:S,onItemLeave:ee,itemTextRefCallback:Q,focusSelectedItem:$,selectedItemText:A,position:o,isPositioned:I,searchRef:F,children:c.jsx(ol,{as:I0,allowPinchZoom:!0,children:c.jsx(Ui,{asChild:!0,trapped:x.open,onMountAutoFocus:B=>{B.preventDefault()},onUnmountAutoFocus:pe(n,B=>{x.trigger?.focus({preventScroll:!0}),B.preventDefault()}),children:c.jsx(Pn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:B=>B.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:c.jsx(W,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:B=>B.preventDefault(),...b,...J,onPlaced:()=>_(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:pe(b.onKeyDown,B=>{const K=B.ctrlKey||B.altKey||B.metaKey;if(B.key==="Tab"&&B.preventDefault(),!K&&B.key.length===1&&X(B.key),["ArrowUp","ArrowDown","Home","End"].includes(B.key)){let G=E().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);if(["ArrowUp","End"].includes(B.key)&&(G=G.slice().reverse()),["ArrowUp","ArrowDown"].includes(B.key)){const Y=B.target,Z=G.indexOf(Y);G=G.slice(Z+1)}setTimeout(()=>T(G)),B.preventDefault()}})})})})})})});qm.displayName=A0;var T0="SelectItemAlignedPosition",Em=u.forwardRef((e,r)=>{const{__scopeSelect:t,onPlaced:o,...n}=e,s=et(mt,t),i=rt(mt,t),[l,a]=u.useState(null),[d,f]=u.useState(null),m=Re(r,j=>f(j)),p=Un(t),v=u.useRef(!1),g=u.useRef(!0),{viewport:h,selectedItem:y,selectedItemText:b,focusSelectedItem:x}=i,w=u.useCallback(()=>{if(s.trigger&&s.valueNode&&l&&d&&h&&y&&b){const j=s.trigger.getBoundingClientRect(),S=d.getBoundingClientRect(),N=s.valueNode.getBoundingClientRect(),A=b.getBoundingClientRect();if(s.dir!=="rtl"){const Y=A.left-S.left,Z=N.left-Y,ae=j.left-Z,fe=j.width+ae,ve=Math.max(fe,S.width),ge=window.innerWidth-pr,ie=bc(Z,[pr,Math.max(pr,ge-ve)]);l.style.minWidth=fe+"px",l.style.left=ie+"px"}else{const Y=S.right-A.right,Z=window.innerWidth-N.right-Y,ae=window.innerWidth-j.right-Z,fe=j.width+ae,ve=Math.max(fe,S.width),ge=window.innerWidth-pr,ie=bc(Z,[pr,Math.max(pr,ge-ve)]);l.style.minWidth=fe+"px",l.style.right=ie+"px"}const q=p(),E=window.innerHeight-pr*2,I=h.scrollHeight,_=window.getComputedStyle(d),O=parseInt(_.borderTopWidth,10),T=parseInt(_.paddingTop,10),$=parseInt(_.borderBottomWidth,10),M=parseInt(_.paddingBottom,10),U=O+T+I+M+$,F=Math.min(y.offsetHeight*5,U),X=window.getComputedStyle(h),ue=parseInt(X.paddingTop,10),ee=parseInt(X.paddingBottom,10),Q=j.top+j.height/2-pr,W=E-Q,J=y.offsetHeight/2,B=y.offsetTop+J,K=O+T+B,H=U-K;if(K<=Q){const Y=q.length>0&&y===q[q.length-1].ref.current;l.style.bottom="0px";const Z=d.clientHeight-h.offsetTop-h.offsetHeight,ae=Math.max(W,J+(Y?ee:0)+Z+$),fe=K+ae;l.style.height=fe+"px"}else{const Y=q.length>0&&y===q[0].ref.current;l.style.top="0px";const ae=Math.max(Q,O+h.offsetTop+(Y?ue:0)+J)+H;l.style.height=ae+"px",h.scrollTop=K-Q+h.offsetTop}l.style.margin=`${pr}px 0`,l.style.minHeight=F+"px",l.style.maxHeight=E+"px",o?.(),requestAnimationFrame(()=>v.current=!0)}},[p,s.trigger,s.valueNode,l,d,h,y,b,s.dir,o]);Ve(()=>w(),[w]);const[P,C]=u.useState();Ve(()=>{d&&C(window.getComputedStyle(d).zIndex)},[d]);const k=u.useCallback(j=>{j&&g.current===!0&&(w(),x?.(),g.current=!1)},[w,x]);return c.jsx(O0,{scope:t,contentWrapper:l,shouldExpandOnScrollRef:v,onScrollButtonChange:k,children:c.jsx("div",{ref:a,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:P},children:c.jsx(ye.div,{...n,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...n.style}})})})});Em.displayName=T0;var _0="SelectPopperPosition",xi=u.forwardRef((e,r)=>{const{__scopeSelect:t,align:o="start",collisionPadding:n=pr,...s}=e,i=Wn(t);return c.jsx(rl,{...i,...s,ref:r,align:o,collisionPadding:n,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});xi.displayName=_0;var[O0,bl]=$t(mt,{}),bi="SelectViewport",Rm=u.forwardRef((e,r)=>{const{__scopeSelect:t,nonce:o,...n}=e,s=rt(bi,t),i=bl(bi,t),l=Re(r,s.onViewportChange),a=u.useRef(0);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),c.jsx(Hn.Slot,{scope:t,children:c.jsx(ye.div,{"data-radix-select-viewport":"",role:"presentation",...n,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...n.style},onScroll:pe(n.onScroll,d=>{const f=d.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:p}=i;if(p?.current&&m){const v=Math.abs(a.current-f.scrollTop);if(v>0){const g=window.innerHeight-pr*2,h=parseFloat(m.style.minHeight),y=parseFloat(m.style.height),b=Math.max(h,y);if(b<g){const x=b+v,w=Math.min(g,x),P=x-w;m.style.height=w+"px",m.style.bottom==="0px"&&(f.scrollTop=P>0?P:0,m.style.justifyContent="flex-end")}}}a.current=f.scrollTop})})})]})});Rm.displayName=bi;var Am="SelectGroup",[M0,L0]=$t(Am),Im=u.forwardRef((e,r)=>{const{__scopeSelect:t,...o}=e,n=vt();return c.jsx(M0,{scope:t,id:n,children:c.jsx(ye.div,{role:"group","aria-labelledby":n,...o,ref:r})})});Im.displayName=Am;var Tm="SelectLabel",_m=u.forwardRef((e,r)=>{const{__scopeSelect:t,...o}=e,n=L0(Tm,t);return c.jsx(ye.div,{id:n.id,...o,ref:r})});_m.displayName=Tm;var mn="SelectItem",[D0,Om]=$t(mn),Mm=u.forwardRef((e,r)=>{const{__scopeSelect:t,value:o,disabled:n=!1,textValue:s,...i}=e,l=et(mn,t),a=rt(mn,t),d=l.value===o,[f,m]=u.useState(s??""),[p,v]=u.useState(!1),g=Re(r,x=>a.itemRefCallback?.(x,o,n)),h=vt(),y=u.useRef("touch"),b=()=>{n||(l.onValueChange(o),l.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return c.jsx(D0,{scope:t,value:o,disabled:n,textId:h,isSelected:d,onItemTextChange:u.useCallback(x=>{m(w=>w||(x?.textContent??"").trim())},[]),children:c.jsx(Hn.ItemSlot,{scope:t,value:o,disabled:n,textValue:f,children:c.jsx(ye.div,{role:"option","aria-labelledby":h,"data-highlighted":p?"":void 0,"aria-selected":d&&p,"data-state":d?"checked":"unchecked","aria-disabled":n||void 0,"data-disabled":n?"":void 0,tabIndex:n?void 0:-1,...i,ref:g,onFocus:pe(i.onFocus,()=>v(!0)),onBlur:pe(i.onBlur,()=>v(!1)),onClick:pe(i.onClick,()=>{y.current!=="mouse"&&b()}),onPointerUp:pe(i.onPointerUp,()=>{y.current==="mouse"&&b()}),onPointerDown:pe(i.onPointerDown,x=>{y.current=x.pointerType}),onPointerMove:pe(i.onPointerMove,x=>{y.current=x.pointerType,n?a.onItemLeave?.():y.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:pe(i.onPointerLeave,x=>{x.currentTarget===document.activeElement&&a.onItemLeave?.()}),onKeyDown:pe(i.onKeyDown,x=>{a.searchRef?.current!==""&&x.key===" "||(k0.includes(x.key)&&b(),x.key===" "&&x.preventDefault())})})})})});Mm.displayName=mn;var Zt="SelectItemText",Lm=u.forwardRef((e,r)=>{const{__scopeSelect:t,className:o,style:n,...s}=e,i=et(Zt,t),l=rt(Zt,t),a=Om(Zt,t),d=q0(Zt,t),[f,m]=u.useState(null),p=Re(r,b=>m(b),a.onItemTextChange,b=>l.itemTextRefCallback?.(b,a.value,a.disabled)),v=f?.textContent,g=u.useMemo(()=>c.jsx("option",{value:a.value,disabled:a.disabled,children:v},a.value),[a.disabled,a.value,v]),{onNativeOptionAdd:h,onNativeOptionRemove:y}=d;return Ve(()=>(h(g),()=>y(g)),[h,y,g]),c.jsxs(c.Fragment,{children:[c.jsx(ye.span,{id:a.textId,...s,ref:p}),a.isSelected&&i.valueNode&&!i.valueNodeHasChildren?mo.createPortal(s.children,i.valueNode):null]})});Lm.displayName=Zt;var Dm="SelectItemIndicator",Fm=u.forwardRef((e,r)=>{const{__scopeSelect:t,...o}=e;return Om(Dm,t).isSelected?c.jsx(ye.span,{"aria-hidden":!0,...o,ref:r}):null});Fm.displayName=Dm;var yi="SelectScrollUpButton",Bm=u.forwardRef((e,r)=>{const t=rt(yi,e.__scopeSelect),o=bl(yi,e.__scopeSelect),[n,s]=u.useState(!1),i=Re(r,o.onScrollButtonChange);return Ve(()=>{if(t.viewport&&t.isPositioned){let l=function(){const d=a.scrollTop>0;s(d)};const a=t.viewport;return l(),a.addEventListener("scroll",l),()=>a.removeEventListener("scroll",l)}},[t.viewport,t.isPositioned]),n?c.jsx(Vm,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=t;l&&a&&(l.scrollTop=l.scrollTop-a.offsetHeight)}}):null});Bm.displayName=yi;var wi="SelectScrollDownButton",$m=u.forwardRef((e,r)=>{const t=rt(wi,e.__scopeSelect),o=bl(wi,e.__scopeSelect),[n,s]=u.useState(!1),i=Re(r,o.onScrollButtonChange);return Ve(()=>{if(t.viewport&&t.isPositioned){let l=function(){const d=a.scrollHeight-a.clientHeight,f=Math.ceil(a.scrollTop)<d;s(f)};const a=t.viewport;return l(),a.addEventListener("scroll",l),()=>a.removeEventListener("scroll",l)}},[t.viewport,t.isPositioned]),n?c.jsx(Vm,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=t;l&&a&&(l.scrollTop=l.scrollTop+a.offsetHeight)}}):null});$m.displayName=wi;var Vm=u.forwardRef((e,r)=>{const{__scopeSelect:t,onAutoScroll:o,...n}=e,s=rt("SelectScrollButton",t),i=u.useRef(null),l=Un(t),a=u.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return u.useEffect(()=>()=>a(),[a]),Ve(()=>{l().find(f=>f.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[l]),c.jsx(ye.div,{"aria-hidden":!0,...n,ref:r,style:{flexShrink:0,...n.style},onPointerDown:pe(n.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(o,50))}),onPointerMove:pe(n.onPointerMove,()=>{s.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(o,50))}),onPointerLeave:pe(n.onPointerLeave,()=>{a()})})}),F0="SelectSeparator",zm=u.forwardRef((e,r)=>{const{__scopeSelect:t,...o}=e;return c.jsx(ye.div,{"aria-hidden":!0,...o,ref:r})});zm.displayName=F0;var Pi="SelectArrow",B0=u.forwardRef((e,r)=>{const{__scopeSelect:t,...o}=e,n=Wn(t),s=et(Pi,t),i=rt(Pi,t);return s.open&&i.position==="popper"?c.jsx(tl,{...n,...o,ref:r}):null});B0.displayName=Pi;var $0="SelectBubbleInput",Hm=u.forwardRef(({__scopeSelect:e,value:r,...t},o)=>{const n=u.useRef(null),s=Re(o,n),i=_n(r);return u.useEffect(()=>{const l=n.current;if(!l)return;const a=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(a,"value").set;if(i!==r&&f){const m=new Event("change",{bubbles:!0});f.call(l,r),l.dispatchEvent(m)}},[i,r]),c.jsx(ye.select,{...t,style:{...nf,...t.style},ref:s,defaultValue:r})});Hm.displayName=$0;function Um(e){return e===""||e===void 0}function Wm(e){const r=Ar(e),t=u.useRef(""),o=u.useRef(0),n=u.useCallback(i=>{const l=t.current+i;r(l),(function a(d){t.current=d,window.clearTimeout(o.current),d!==""&&(o.current=window.setTimeout(()=>a(""),1e3))})(l)},[r]),s=u.useCallback(()=>{t.current="",window.clearTimeout(o.current)},[]);return u.useEffect(()=>()=>window.clearTimeout(o.current),[]),[t,n,s]}function Km(e,r,t){const n=r.length>1&&Array.from(r).every(d=>d===r[0])?r[0]:r,s=t?e.indexOf(t):-1;let i=V0(e,Math.max(s,0));n.length===1&&(i=i.filter(d=>d!==t));const a=i.find(d=>d.textValue.toLowerCase().startsWith(n.toLowerCase()));return a!==t?a:void 0}function V0(e,r){return e.map((t,o)=>e[(r+o)%e.length])}var z0=bm,H0=wm,U0=Cm,W0=km,K0=jm,G0=Sm,Y0=Rm,X0=Im,J0=_m,Q0=Mm,Z0=Lm,eC=Fm,rC=Bm,tC=$m,oC=zm;const yc="data-scroll-locked",Gm=u.createContext({lockScroll:!1});function nC(e,r){(typeof window>"u"?u.useEffect:u.useLayoutEffect)(e,r)}function wc(){return document.querySelector('[role="listbox"][data-state="open"][data-ldkj-select-lock-scroll="false"]')!==null}function sC(e){nC(()=>{if(!e||typeof document>"u")return;const r=document.body,t=()=>{wc()&&r.removeAttribute(yc)},o=l=>{wc()&&l.stopImmediatePropagation()},n=typeof MutationObserver>"u"?null:new MutationObserver(t),s={passive:!1},i=window.setTimeout(t,0);return n?.observe(r,{attributes:!0,attributeFilter:[yc]}),document.addEventListener("wheel",o,s),document.addEventListener("touchmove",o,s),t(),()=>{window.clearTimeout(i),n?.disconnect(),document.removeEventListener("wheel",o),document.removeEventListener("touchmove",o)}},[e])}function Ym(e){const{lockScroll:r=!1,...t}=e;return sC(!r),c.jsx(Gm.Provider,{value:{lockScroll:r},children:c.jsx(z0,{...t})})}Ym.displayName="Select";const Xm=X0,iC=U0;function lC(e){return c.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",fill:"none",...e,children:c.jsx("path",{d:"M3.5 8.5L6.5 11.5L12.5 4.5",stroke:"currentColor",strokeWidth:"2.25",strokeLinecap:"round",strokeLinejoin:"round"})})}function Jm(e){return c.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",fill:"none",...e,children:c.jsx("path",{d:"M4 6L8 10L12 6",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}function aC(e){return c.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",fill:"none",...e,children:c.jsx("path",{d:"M4 10L8 6L12 10",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}function gt(e){const r=se();return re(e,r)}const Qm=u.forwardRef((e,r)=>{const{className:t,class:o,children:n,sx:s,style:i,...l}=e,{sxClassName:a,sxInlineStyle:d}=gt(s);return c.jsxs(H0,{ref:r,className:R("flex h-9 w-full items-center justify-between gap-2 rounded-md border border-solid border-[color:var(--ldkj-color-input)] bg-[color:var(--ldkj-color-surface)] px-3 py-2 text-sm text-[color:var(--ldkj-color-foreground)] shadow-sm transition-colors","placeholder:text-[color:var(--ldkj-color-muted-foreground)] data-[placeholder]:text-[color:var(--ldkj-color-muted-foreground)]","focus-visible:border-[color:var(--ldkj-color-primary)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)]","disabled:cursor-not-allowed disabled:bg-[color:var(--ldkj-color-surface-muted)] disabled:text-[color:var(--ldkj-color-muted-foreground)] disabled:opacity-70","[&>span]:min-w-0 [&>span]:truncate",a,t,o),style:D(i,d),...l,children:[n,c.jsx(W0,{asChild:!0,children:c.jsx(Jm,{className:"h-4 w-4 shrink-0 text-[color:var(--ldkj-color-muted-foreground)]"})})]})});Qm.displayName="SelectTrigger";const yl=u.forwardRef((e,r)=>{const{className:t,class:o,sx:n,style:s,...i}=e,{sxClassName:l,sxInlineStyle:a}=gt(n);return c.jsx(rC,{ref:r,className:R("flex cursor-default items-center justify-center py-1 text-[color:var(--ldkj-color-muted-foreground)]",l,t,o),style:D(s,a),...i,children:c.jsx(aC,{className:"h-4 w-4"})})});yl.displayName="SelectScrollUpButton";const wl=u.forwardRef((e,r)=>{const{className:t,class:o,sx:n,style:s,...i}=e,{sxClassName:l,sxInlineStyle:a}=gt(n);return c.jsx(tC,{ref:r,className:R("flex cursor-default items-center justify-center py-1 text-[color:var(--ldkj-color-muted-foreground)]",l,t,o),style:D(s,a),...i,children:c.jsx(Jm,{className:"h-4 w-4"})})});wl.displayName="SelectScrollDownButton";const Zm=u.forwardRef((e,r)=>{const{className:t,class:o,children:n,position:s="popper",sx:i,style:l,...a}=e,{sxClassName:d,sxInlineStyle:f}=gt(i),{lockScroll:m}=u.useContext(Gm);return c.jsx(K0,{children:c.jsxs(G0,{ref:r,className:R("relative z-[var(--ldkj-z-dropdown)] max-h-[var(--radix-select-content-available-height)] min-w-32 overflow-hidden rounded-md border border-solid border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-surface)] text-[color:var(--ldkj-color-surface-foreground)] shadow-[var(--ldkj-shadow-popover)]","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","origin-[var(--radix-select-content-transform-origin)]",s==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",d,t,o),style:D(l,f),position:s,"data-ldkj-select-lock-scroll":m?"true":"false",...a,children:[c.jsx(yl,{}),c.jsx(Y0,{className:R("p-1",s==="popper"&&"w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),c.jsx(wl,{})]})})});Zm.displayName="SelectContent";const Pl=u.forwardRef((e,r)=>{const{className:t,class:o,sx:n,style:s,...i}=e,{sxClassName:l,sxInlineStyle:a}=gt(n);return c.jsx(J0,{ref:r,className:R("px-2 py-1.5 text-xs font-medium text-[color:var(--ldkj-color-muted-foreground)]",l,t,o),style:D(s,a),...i})});Pl.displayName="SelectLabel";const hn=u.forwardRef((e,r)=>{const{className:t,class:o,children:n,sx:s,style:i,...l}=e,{sxClassName:a,sxInlineStyle:d}=gt(s);return c.jsxs(Q0,{ref:r,className:R("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm leading-5 text-[color:var(--ldkj-color-foreground)] outline-none transition-colors","focus:bg-[color:var(--ldkj-color-accent)] focus:text-[color:var(--ldkj-color-primary)]","data-[disabled]:pointer-events-none data-[disabled]:text-[color:var(--ldkj-color-muted-foreground)] data-[disabled]:opacity-70",a,t,o),style:D(i,d),...l,children:[c.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center text-[color:var(--ldkj-color-primary)]",children:c.jsx(eC,{children:c.jsx(lC,{className:"h-4 w-4"})})}),c.jsx(Z0,{children:n})]})});hn.displayName="SelectItem";const Cl=u.forwardRef((e,r)=>{const{className:t,class:o,sx:n,style:s,...i}=e,{sxClassName:l,sxInlineStyle:a}=gt(n);return c.jsx(oC,{ref:r,className:R("-mx-1 my-1 h-px bg-[color:var(--ldkj-color-border)]",l,t,o),style:D(s,a),...i})});Cl.displayName="SelectSeparator";function cC(e){return"options"in e}function uC(e){const{options:r,itemProps:t,labelProps:o,separatorProps:n}=e;return c.jsx(c.Fragment,{children:r.map((s,i)=>cC(s)?c.jsxs(Xm,{children:[s.label?c.jsx(Pl,{...o,children:s.label}):null,s.options.map(l=>c.jsx(hn,{...t,value:l.value,disabled:l.disabled,textValue:l.textValue,className:R(t?.className,l.className),class:R(t?.class,l.class),style:D(t?.style,l.style),sx:[t?.sx,l.sx],children:l.label},l.value)),s.separator?c.jsx(Cl,{...n}):null]},`group-${i}`):c.jsx(hn,{...t,value:s.value,disabled:s.disabled,textValue:s.textValue,className:R(t?.className,s.className),class:R(t?.class,s.class),style:D(t?.style,s.style),sx:[t?.sx,s.sx],children:s.label},s.value))})}var Kn="Switch",[dC]=br(Kn),[fC,mC]=dC(Kn),eh=u.forwardRef((e,r)=>{const{__scopeSwitch:t,name:o,checked:n,defaultChecked:s,required:i,disabled:l,value:a="on",onCheckedChange:d,form:f,...m}=e,[p,v]=u.useState(null),g=Re(r,w=>v(w)),h=u.useRef(!1),y=p?f||!!p.closest("form"):!0,[b,x]=_r({prop:n,defaultProp:s??!1,onChange:d,caller:Kn});return c.jsxs(fC,{scope:t,checked:b,disabled:l,children:[c.jsx(ye.button,{type:"button",role:"switch","aria-checked":b,"aria-required":i,"data-state":nh(b),"data-disabled":l?"":void 0,disabled:l,value:a,...m,ref:g,onClick:pe(e.onClick,w=>{x(P=>!P),y&&(h.current=w.isPropagationStopped(),h.current||w.stopPropagation())})}),y&&c.jsx(oh,{control:p,bubbles:!h.current,name:o,value:a,checked:b,required:i,disabled:l,form:f,style:{transform:"translateX(-100%)"}})]})});eh.displayName=Kn;var rh="SwitchThumb",th=u.forwardRef((e,r)=>{const{__scopeSwitch:t,...o}=e,n=mC(rh,t);return c.jsx(ye.span,{"data-state":nh(n.checked),"data-disabled":n.disabled?"":void 0,...o,ref:r})});th.displayName=rh;var hC="SwitchBubbleInput",oh=u.forwardRef(({__scopeSwitch:e,control:r,checked:t,bubbles:o=!0,...n},s)=>{const i=u.useRef(null),l=Re(i,s),a=_n(t),d=Nn(r);return u.useEffect(()=>{const f=i.current;if(!f)return;const m=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(m,"checked").set;if(a!==t&&v){const g=new Event("click",{bubbles:o});v.call(f,t),f.dispatchEvent(g)}},[a,t,o]),c.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...n,tabIndex:-1,ref:l,style:{...n.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});oh.displayName=hC;function nh(e){return e?"checked":"unchecked"}var pC=eh,vC=th;const gC={sm:"h-5 w-9",md:"h-6 w-11",lg:"h-7 w-[52px]"},xC={sm:"h-4 w-4 data-[state=checked]:translate-x-4",md:"h-5 w-5 data-[state=checked]:translate-x-5",lg:"h-6 w-6 data-[state=checked]:translate-x-6"},sh=u.forwardRef((e,r)=>{const{className:t,class:o,containerClass:n,containerClassName:s,containerStyle:i,containerSx:l,description:a,disabled:d,id:f,label:m,labelPosition:p="right",size:v="md",style:g,sx:h,"aria-describedby":y,...b}=e,x=se(),{sxClassName:w,sxInlineStyle:P}=re(h,x),{sxClassName:C,sxInlineStyle:k}=re(l,x),j=u.useId(),S=f??`ldkj-switch-${j}`,N=a===void 0?void 0:`${S}-description`,A=[y,N].filter(Boolean).join(" ")||void 0,q=c.jsx(pC,{ref:r,id:S,disabled:d,"aria-describedby":A,className:R("peer inline-flex shrink-0 cursor-pointer items-center rounded-full border border-transparent bg-[color:var(--ldkj-color-muted)] p-0.5 transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)] focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:bg-[color:var(--ldkj-color-primary)] data-[state=unchecked]:bg-[color:var(--ldkj-color-muted)]",gC[v],w,t,o),style:D(g,P),...b,children:c.jsx(vC,{className:R("pointer-events-none block rounded-full bg-[color:var(--ldkj-color-switch-thumb)] shadow-sm ring-0 transition-transform","data-[state=unchecked]:translate-x-0",xC[v])})});if(m===void 0&&a===void 0)return q;const E=c.jsxs("span",{className:"flex min-w-0 flex-col gap-0.5",children:[m!==void 0?c.jsx(pi,{htmlFor:S,className:R("text-sm font-medium leading-5 text-[color:var(--ldkj-color-foreground)]",d?"cursor-not-allowed opacity-60":"cursor-pointer"),children:m}):null,a!==void 0?c.jsx("span",{id:N,className:"text-xs leading-5 text-[color:var(--ldkj-color-muted-foreground)]",children:a}):null]});return c.jsxs("div",{className:R("inline-flex w-fit items-center gap-3",d?"cursor-not-allowed":void 0,C,s,n),style:D(i,k),children:[p==="left"?E:null,q,p==="right"?E:null]})});sh.displayName="Switch";function pn(e){const{value:r,defaultValue:t,onChange:o}=e,[n,s]=u.useState(t),i=r!==void 0,l=i?r:n,a=u.useCallback(d=>{i||s(d),o?.(d)},[i,o]);return[l,a,i]}function ih(e){const r=se();return re(e,r)}function bC(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function Ci(e){return e==="center"?"justify-center text-center":e==="right"?"justify-end text-right":"justify-start text-left"}function yC(e){return c.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",fill:"none",...e,children:c.jsx("path",{d:"M4 6L8 10L12 6",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}function wC(e){return c.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",fill:"none",...e,children:c.jsx("path",{d:"M6 4L10 8L6 12",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}function PC(e){return c.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",fill:"none",...e,children:[c.jsx("path",{d:"M4.5 4.5L11.5 11.5",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),c.jsx("path",{d:"M11.5 4.5L4.5 11.5",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]})}function Pc(){return c.jsx("span",{className:"inline-block h-3.5 w-3.5 animate-spin rounded-full border-2 border-[color:var(--ldkj-color-border)] border-t-[color:var(--ldkj-color-primary)]","aria-hidden":"true"})}function lh(e){const{open:r,title:t,cancelText:o="取消",confirmText:n="确定",confirmDisabled:s=!1,maxHeight:i="76vh",children:l,className:a,class:d,style:f,sx:m,onCancel:p,onConfirm:v,onOpenChange:g}=e,{sxClassName:h,sxInlineStyle:y}=ih(m);if(u.useEffect(()=>{if(!r||typeof document>"u")return;const x=document.body.style.overflow;document.body.style.overflow="hidden";const w=P=>{P.key==="Escape"&&(p?.(),g?.(!1))};return document.addEventListener("keydown",w),()=>{document.body.style.overflow=x,document.removeEventListener("keydown",w)}},[p,g,r]),!r)return null;const b=()=>{p?.(),g?.(!1)};return c.jsxs("div",{className:"fixed inset-0 z-[var(--ldkj-z-drawer)]",children:[c.jsx("button",{type:"button","aria-label":"关闭选择面板",className:"absolute inset-0 h-full w-full cursor-default border-0 bg-[color:var(--ldkj-color-overlay)] p-0",onClick:b}),c.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":typeof t=="string"?t:"移动端选择面板",className:R("absolute bottom-0 left-0 right-0 flex max-h-[76vh] flex-col overflow-hidden rounded-t-xl bg-[color:var(--ldkj-color-surface)] text-[color:var(--ldkj-color-surface-foreground)] shadow-[var(--ldkj-shadow-modal)]",h,a,d),style:D({maxHeight:bC(i)},f,y),children:[c.jsxs("div",{className:"flex min-h-12 shrink-0 items-center gap-3 border-b border-[color:var(--ldkj-color-border)] px-4",children:[t?c.jsx("div",{className:"min-w-0 flex-1 truncate text-left text-sm font-medium text-[color:var(--ldkj-color-foreground)]",children:t}):c.jsx("div",{className:"min-w-0 flex-1"}),c.jsxs("div",{className:"flex shrink-0 items-center justify-end gap-2",children:[c.jsx("button",{type:"button",className:"rounded-md bg-[color:var(--ldkj-color-accent)] px-3 py-1.5 text-sm font-medium text-[color:var(--ldkj-color-primary)] transition-colors hover:bg-[color:var(--ldkj-color-accent-hover)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)]",onClick:b,children:o}),c.jsx("button",{type:"button",className:"rounded-md bg-[color:var(--ldkj-color-primary)] px-3 py-1.5 text-sm font-medium text-[color:var(--ldkj-color-primary-foreground)] transition-colors hover:bg-[color:var(--ldkj-color-primary-hover)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)] disabled:cursor-not-allowed disabled:opacity-50",disabled:s,onClick:v,children:n})]})]}),l]})]})}const kl=u.forwardRef((e,r)=>{const{open:t=!1,clearable:o=!1,hasValue:n=!1,placeholder:s="请选择",display:i,className:l,class:a,style:d,sx:f,disabled:m,readOnly:p,onClear:v,...g}=e,{sxClassName:h,sxInlineStyle:y}=ih(f);return c.jsxs("span",{className:"relative inline-flex w-full items-stretch",children:[c.jsxs("button",{ref:r,type:"button",className:R("flex h-10 w-full min-w-0 items-center gap-2 rounded-md border border-solid border-[color:var(--ldkj-color-input)] bg-[color:var(--ldkj-color-surface)] px-3 text-left text-sm text-[color:var(--ldkj-color-foreground)] shadow-sm transition-colors","focus-visible:border-[color:var(--ldkj-color-primary)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)]","disabled:cursor-not-allowed disabled:bg-[color:var(--ldkj-color-surface-muted)] disabled:text-[color:var(--ldkj-color-muted-foreground)] disabled:opacity-70",p&&"cursor-default",o&&n&&!m&&!p?"pr-16":"pr-9",h,l,a),style:D(d,y),disabled:m,"aria-haspopup":"dialog","aria-expanded":t,"aria-disabled":m||void 0,"aria-readonly":p||void 0,...g,children:[c.jsx("span",{className:R("min-w-0 flex-1 truncate",!n&&"text-[color:var(--ldkj-color-muted-foreground)]"),children:n?i:s}),c.jsx(yC,{className:"absolute right-3 h-4 w-4 text-[color:var(--ldkj-color-muted-foreground)]"})]}),o&&n&&!m&&!p?c.jsx("button",{type:"button",className:"absolute right-8 top-1/2 z-10 -translate-y-1/2 rounded p-1 text-[color:var(--ldkj-color-muted-foreground)] transition-colors hover:text-[color:var(--ldkj-color-foreground)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)]","aria-label":"清除选择",onMouseDown:b=>b.preventDefault(),onClick:b=>{b.preventDefault(),b.stopPropagation(),v?.(b)},children:c.jsx(PC,{className:"h-3.5 w-3.5"})}):null]})});kl.displayName="MobileTrigger";function ah(e){return"options"in e}function CC(e){return e.map(r=>ah(r)?{type:"group",label:r.label,options:r.options,separator:r.separator}:{type:"plain",option:r})}function kC(e){const r=[];for(const t of e)ah(t)?r.push(...t.options):r.push(t);return r}const ch=u.forwardRef((e,r)=>{const{options:t=[],value:o,defaultValue:n="",onValueChange:s,open:i,defaultOpen:l=!1,onOpenChange:a,placeholder:d="请选择",title:f="请选择",cancelText:m,confirmText:p,clearable:v=!1,readOnly:g=!1,required:h,align:y="left",displayRender:b,renderOption:x,drawerClassName:w,drawerClass:P,drawerStyle:C,drawerSx:k,maxDrawerHeight:j,optionClassName:S,optionClass:N,optionStyle:A,optionSx:q,className:E,class:I,style:_,sx:O,disabled:T=!1,name:$,id:M,autoFocus:U,onClick:F,onFocus:X,onBlur:ue,onKeyDown:ee,...Q}=e,[W,J,B]=pn({value:o,defaultValue:n}),[K,H]=pn({value:i,defaultValue:l,onChange:a}),[G,Y]=u.useState(W),Z=u.useRef(null),ae=se(),fe=u.useMemo(()=>kC(t),[t]),ve=u.useMemo(()=>CC(t),[t]),ge=u.useMemo(()=>fe.find(de=>de.value===W),[fe,W]),ie=u.useMemo(()=>fe.find(de=>de.value===G),[fe,G]),we=W!==""&&!!ge,Ne=we?b?.(ge)??ge?.label:d;u.useEffect(()=>{K&&Y(W)},[K,W]);const Me=u.useCallback((de,_e)=>{B||J(de),s?.(de,_e)},[s,J,B]),oe=u.useCallback(de=>{T||g||(Y(""),Me("",{reason:"clear",event:de}))},[Me,T,g]),Pe=u.useCallback(()=>{if(T||g){H(!1);return}if(!ie){H(!1);return}Me(ie.value,{reason:"select",option:ie}),H(!1)},[Me,T,ie,g,H]),Ce=u.useCallback(()=>{T||H(!0)},[T,H]);return u.useImperativeHandle(r,()=>({focus:()=>Z.current?.focus(),blur:()=>Z.current?.blur(),open:Ce,close:()=>H(!1),clear:()=>oe(),getValue:()=>W}),[oe,Ce,W,H]),c.jsxs(c.Fragment,{children:[c.jsx(kl,{ref:Z,id:M,open:K,clearable:v,hasValue:we,placeholder:d,display:Ne,className:E,class:I,style:_,sx:O,disabled:T,readOnly:g,autoFocus:U,onClear:oe,onClick:de=>{F?.(de),Ce()},onFocus:X,onBlur:ue,onKeyDown:de=>{ee?.(de),!T&&((de.key==="ArrowDown"||de.key==="Enter")&&(de.preventDefault(),Ce()),de.key==="Escape"&&(de.preventDefault(),H(!1)))},...Q}),c.jsx(lh,{open:K,title:f,cancelText:m,confirmText:p,confirmDisabled:!ie||!!ie.disabled,maxHeight:j,className:w,class:P,style:C,sx:k,onCancel:()=>Y(W),onConfirm:Pe,onOpenChange:H,children:c.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-4 py-2",children:ve.length===0?c.jsx("div",{className:"flex min-h-32 items-center justify-center text-sm text-[color:var(--ldkj-color-muted-foreground)]",children:"暂无可选项"}):c.jsx("div",{className:"grid gap-1",children:ve.map((de,_e)=>{if(de.type==="plain"){const he=de.option,te=G===he.value,me={active:te,checked:te,disabled:!!he.disabled},ke=re([q,he.sx],ae);return c.jsx("button",{type:"button",className:R("flex min-h-10 w-full items-center rounded-md px-3 py-2 text-sm transition-colors",Ci(y),te?"bg-[color:var(--ldkj-color-primary)] text-[color:var(--ldkj-color-primary-foreground)]":"text-[color:var(--ldkj-color-foreground)] hover:bg-[color:var(--ldkj-color-accent)] hover:text-[color:var(--ldkj-color-accent-foreground)]",he.disabled&&"cursor-not-allowed bg-transparent text-[color:var(--ldkj-color-muted-foreground)] opacity-70 hover:bg-transparent hover:text-[color:var(--ldkj-color-muted-foreground)]",ke.sxClassName,S,N,he.className,he.class),style:D(A,ke.sxInlineStyle,he.style),disabled:T||g||he.disabled,onClick:Te=>{Te.preventDefault(),Y(he.value)},children:c.jsx("span",{className:"min-w-0 truncate",children:x?x(he,me):he.label})},he.value)}return c.jsxs("div",{className:R(de.separator&&_e>0&&"border-t border-[color:var(--ldkj-color-border)] pt-2"),children:[de.label?c.jsx("div",{className:"px-3 py-2 text-xs font-medium text-[color:var(--ldkj-color-muted-foreground)]",children:de.label}):null,c.jsx("div",{className:"grid gap-1",children:de.options.map(he=>{const te=G===he.value,me={active:te,checked:te,disabled:!!he.disabled},ke=re([q,he.sx],ae);return c.jsx("button",{type:"button",className:R("flex min-h-10 w-full items-center rounded-md px-3 py-2 text-sm transition-colors",Ci(y),te?"bg-[color:var(--ldkj-color-primary)] text-[color:var(--ldkj-color-primary-foreground)]":"text-[color:var(--ldkj-color-foreground)] hover:bg-[color:var(--ldkj-color-accent)] hover:text-[color:var(--ldkj-color-accent-foreground)]",he.disabled&&"cursor-not-allowed bg-transparent text-[color:var(--ldkj-color-muted-foreground)] opacity-70 hover:bg-transparent hover:text-[color:var(--ldkj-color-muted-foreground)]",ke.sxClassName,S,N,he.className,he.class),style:D(A,ke.sxInlineStyle,he.style),disabled:T||g||he.disabled,onClick:Te=>{Te.preventDefault(),Y(he.value)},children:c.jsx("span",{className:"min-w-0 truncate",children:x?x(he,me):he.label})},he.value)})})]},`group-${_e}`)})})})}),$?c.jsx("input",{type:"hidden",name:$,required:h,value:W}):null]})});ch.displayName="MobileSelect";function Wt(e){return Array.isArray(e)?e.filter(r=>r!==""):[]}function jC(e){return Array.isArray(e)?e:[]}function Vt(e,r){return e?.[r]??r}function SC(e,r){const t=Vt(r,"value");return typeof e[t]=="string"?e[t]:e.value}function NC(e,r){const t=Vt(r,"label");return e[t]??e.label??e.value??""}function qC(e,r){const t=Vt(r,"children");return jC(e[t])}function EC(e,r){const t=Vt(r,"disabled");return!!(e[t]??e.disabled)}function RC(e,r){const t=Vt(r,"isLeaf"),o=e[t];return typeof o=="boolean"?o:e.isLeaf}function AC(e,r){const t=Vt(r,"loading");return!!(e[t]??e.loading)}function IC(e,r){const t=SC(e,r);if(typeof t!="string"||t.length===0)return null;const o=qC(e,r),n=RC(e,r),s=typeof n=="boolean"?n:o.length===0;return{option:e,value:t,label:NC(e,r),children:o,disabled:EC(e,r),isLeaf:s,loading:AC(e,r)}}function en(e,r){const t=[];for(const o of e){const n=IC(o,r);n&&t.push(n)}return t}function $o(e,r,t){const o=[],n=[];let s=e;for(const i of r){const l=en(s,t).find(a=>a.value===i);if(!l)break;o.push(l),n.push(l.label),s=l.children}return{matched:o,labels:n,path:o.map(i=>i.value)}}function TC(e,r,t){const o=[en(e,t)];let n=e;for(const s of r){const i=en(n,t).find(l=>l.value===s);if(!i||i.children.length===0)break;n=i.children,o.push(en(n,t))}return o}function Cs(e,r){return r.every((t,o)=>e[o]===t)}function _C(e,r){return c.jsx(c.Fragment,{children:e.map((t,o)=>c.jsxs(u.Fragment,{children:[o>0?c.jsx("span",{className:"mx-1 text-[color:var(--ldkj-color-muted-foreground)]",children:r}):null,c.jsx("span",{className:"min-w-0 truncate",children:t})]},o))})}function OC(e){return`第${e+1}级`}const uh=u.forwardRef((e,r)=>{const{options:t=[],value:o,defaultValue:n=[],onValueChange:s,open:i,defaultOpen:l=!1,onOpenChange:a,placeholder:d="请选择",title:f="请选择",cancelText:m,confirmText:p,separator:v="/",displayRender:g,renderOption:h,fieldNames:y,changeOnSelect:b=!1,clearable:x=!1,readOnly:w=!1,required:P,loadData:C,align:k="left",levelLabels:j,drawerClassName:S,drawerClass:N,drawerStyle:A,drawerSx:q,maxDrawerHeight:E,optionClassName:I,optionClass:_,optionStyle:O,optionSx:T,className:$,class:M,style:U,sx:F,disabled:X=!1,name:ue,id:ee,autoFocus:Q,onClick:W,onFocus:J,onBlur:B,onKeyDown:K,...H}=e,G=o===void 0?void 0:Wt(o),[Y,Z,ae]=pn({value:G,defaultValue:Wt(n)}),[fe,ve]=pn({value:i,defaultValue:l,onChange:a}),[ge,ie]=u.useState(()=>Wt(n)),[we,Ne]=u.useState(0),[Me,oe]=u.useState(null),Pe=u.useRef(null),Ce=u.useRef(!0),de=u.useRef(C),_e=se();u.useEffect(()=>()=>{Ce.current=!1},[]),u.useEffect(()=>{de.current=C},[C]),u.useEffect(()=>{if(fe){const V=Wt(Y);ie(V),Ne(Math.max(V.length-1,0))}},[fe,Y]);const he=u.useMemo(()=>$o(t,Y,y),[y,t,Y]),te=he.matched.map(V=>V.option),me=u.useMemo(()=>$o(t,ge,y),[y,t,ge]),ke=u.useMemo(()=>TC(t,ge,y),[y,t,ge]),Te=Math.min(we,Math.max(ke.length-1,0)),er=ke[Te]??[],Ke=me.matched[me.matched.length-1],dr=me.path.length===0||!!Ke?.disabled||!b&&!!Ke&&!Ke?.isLeaf&&(Ke?.children.length??0)>0,yr=u.useMemo(()=>he.labels.length>0?g?g(he.labels,te):_C(he.labels,v):d,[g,d,te,he.labels,v]),He=u.useCallback((V,z)=>{const ce=$o(t,Wt(V),y);ae||Z(ce.path),s?.(ce.path,{...z,path:ce.path,options:ce.matched.map(xe=>xe.option),labels:ce.labels})},[y,s,t,Z,ae]),ir=u.useCallback(V=>{X||w||(ie([]),Ne(0),He([],{reason:"clear",event:V}))},[He,X,w]),Ge=u.useCallback(()=>{if(X||w){ve(!1);return}dr||(He(me.path,{reason:"select",option:Ke?.option}),ve(!1))},[He,dr,X,Ke?.option,me.path,w,ve]),Lr=u.useCallback(async(V,z,ce)=>{if(X||w||V.disabled)return;const xe=[...ge.slice(0,z),V.value],je=V.children.length>0,Ie=!V.isLeaf&&!je&&!!de.current,rr=je||Ie,tr=xe.join("");if(ie(xe),Ne(rr?z+1:z),Ie&&de.current){const or=$o(t,xe,y);oe(tr);try{await de.current(or.matched.map(mr=>mr.option),{option:V.option,path:xe,options:t})}finally{Ce.current&&oe(mr=>mr===tr?null:mr)}}b&&!rr&&ce.currentTarget.focus()},[b,X,y,t,ge,w]),Ye=u.useCallback(()=>{X||ve(!0)},[X,ve]);return u.useImperativeHandle(r,()=>({focus:()=>Pe.current?.focus(),blur:()=>Pe.current?.blur(),open:Ye,close:()=>ve(!1),clear:()=>ir(),getValue:()=>Y.slice()}),[ir,Ye,Y,ve]),c.jsxs(c.Fragment,{children:[c.jsx(kl,{ref:Pe,id:ee,open:fe,clearable:x,hasValue:he.path.length>0,placeholder:d,display:yr,className:$,class:M,style:U,sx:F,disabled:X,readOnly:w,autoFocus:Q,onClear:ir,onClick:V=>{W?.(V),Ye()},onFocus:J,onBlur:B,onKeyDown:V=>{K?.(V),!X&&((V.key==="ArrowDown"||V.key==="Enter")&&(V.preventDefault(),Ye()),V.key==="Escape"&&(V.preventDefault(),ve(!1)))},...H}),c.jsx(lh,{open:fe,title:f,cancelText:m,confirmText:p,confirmDisabled:dr,maxHeight:E,className:S,class:N,style:A,sx:q,onCancel:()=>{ie(Y),Ne(Math.max(Y.length-1,0))},onConfirm:Ge,onOpenChange:ve,children:c.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[c.jsx("div",{className:"flex shrink-0 border-b border-[color:var(--ldkj-color-border)] px-4",children:ke.map((V,z)=>{const ce=Te===z,xe=me.labels[z]??OC(z),je=j?.[z]??xe;return c.jsxs("button",{type:"button",className:R("relative min-h-10 min-w-12 px-3 text-sm text-[color:var(--ldkj-color-foreground)] transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)]/30",ce&&"font-medium text-[color:var(--ldkj-color-primary)]"),onClick:()=>Ne(z),children:[je,ce?c.jsx("span",{className:"absolute bottom-0 left-3 right-3 h-0.5 rounded-full bg-[color:var(--ldkj-color-primary)]"}):null]},`level-${z}`)})}),c.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-4 py-2",children:er.length===0?c.jsx("div",{className:"flex min-h-32 items-center justify-center text-sm text-[color:var(--ldkj-color-muted-foreground)]",children:Me?c.jsxs("span",{className:"inline-flex items-center gap-2",children:[c.jsx(Pc,{}),"加载中"]}):"暂无可选项"}):c.jsx("div",{className:"grid gap-1",children:er.map(V=>{const z=[...ge.slice(0,Te),V.value],ce=me.path.length===z.length&&Cs(me.path,z),xe=Cs(me.path,z)||Cs(z,me.path),je=Me===z.join("")||V.loading,Ie=V.children.length>0||!V.isLeaf&&!!de.current&&!je,rr={active:xe,checked:ce,disabled:V.disabled,hasChildren:Ie,isLeaf:V.isLeaf,level:Te,loading:je,path:z,selected:ce},tr=re([T,V.option.sx],_e);return c.jsxs("button",{type:"button",className:R("flex min-h-10 w-full items-center gap-2 rounded-md px-3 py-2 text-sm transition-colors",Ci(k),ce?"bg-[color:var(--ldkj-color-primary)] text-[color:var(--ldkj-color-primary-foreground)]":"text-[color:var(--ldkj-color-foreground)] hover:bg-[color:var(--ldkj-color-accent)] hover:text-[color:var(--ldkj-color-accent-foreground)]",xe&&!ce&&"bg-[color:var(--ldkj-color-muted)] text-[color:var(--ldkj-color-foreground)]",V.disabled&&"cursor-not-allowed bg-transparent text-[color:var(--ldkj-color-muted-foreground)] opacity-70 hover:bg-transparent hover:text-[color:var(--ldkj-color-muted-foreground)]",tr.sxClassName,I,_,V.option.className,V.option.class),style:D(O,tr.sxInlineStyle,V.option.style),disabled:X||w||V.disabled,onClick:or=>{or.preventDefault(),Lr(V,Te,or)},children:[c.jsx("span",{className:"min-w-0 flex-1 truncate",children:h?h(V.option,rr):V.label}),je?c.jsx(Pc,{}):Ie?c.jsx(wC,{className:R("h-4 w-4 shrink-0",ce?"text-[color:var(--ldkj-color-primary-foreground)]":"text-[color:var(--ldkj-color-muted-foreground)]")}):null]},z.join(""))})})})]})}),ue?c.jsx("input",{type:"hidden",name:ue,required:P,value:Y.length>0?JSON.stringify(Y):""}):null]})});uh.displayName="MobileCascader";function MC(e,r=500){const t=Oe.useRef(null),o=Oe.useCallback(()=>{t.current=setTimeout(e,r)},[e,r]),n=Oe.useCallback(()=>{t.current&&clearTimeout(t.current)},[]);return{onMouseDown:o,onMouseUp:n,onMouseLeave:n,onTouchStart:o,onTouchEnd:n}}function LC(){return c.jsx("span",{className:"h-6 w-6 animate-spin rounded-full border-2 border-[color:var(--ldkj-color-border)] border-t-[color:var(--ldkj-color-primary)]","aria-hidden":"true"})}function Se(e){const{component:r,sx:t,rounded:o,shadow:n,onLongPress:s,longPressDelay:i=500,style:l,className:a,class:d,loading:f=!1,loadingContent:m,modal:p=!1,modalContent:v,onModalMaskClick:g,children:h,...y}=e,b=r??"div",x=se(),{roundedPreset:w,roundedStyle:P}=ht(o),{shadowPreset:C,shadowStyle:k}=ho(n),j=MC(()=>{s?.()},i),{sxClassName:S,sxInlineStyle:N}=re(t,x),q=(f||p)&&l?.position===void 0?{position:"relative"}:void 0;return c.jsxs(b,{className:R(w&&Yr[w],C&&Ot[C],S,a,d),style:D(l,P,k,q,N),"aria-busy":f||void 0,...s?j:void 0,...y,children:[h,f?c.jsx("div",{className:"box-loading-mask absolute inset-0 z-10 flex items-center justify-center bg-[color:var(--ldkj-color-background)]/65","aria-hidden":"true",children:m??c.jsx(LC,{})}):null,p?c.jsx("div",{className:"box-modal-mask absolute inset-0 z-20 flex items-center justify-center bg-[color:var(--ldkj-color-overlay)] p-4",onClick:g,children:c.jsx("div",{className:"box-modal-content max-w-full rounded-lg bg-[color:var(--ldkj-color-popover)] p-4 text-[color:var(--ldkj-color-popover-foreground)] shadow-lg",onClick:E=>E.stopPropagation(),children:v})}):null]})}Se.displayName="Box";const Cc={outlined:"border border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-surface)] text-[color:var(--ldkj-color-surface-foreground)]",elevated:"border border-transparent bg-[color:var(--ldkj-color-surface)] text-[color:var(--ldkj-color-surface-foreground)]",filled:"border border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-surface-muted)] text-[color:var(--ldkj-color-foreground)]",ghost:"border border-transparent bg-transparent shadow-none"},kc={elevated:"md"},DC={none:"p-0",sm:"p-3",md:"p-4",lg:"p-6"};function eo(e){return e!=null}function FC(e){let r=!1;return u.Children.forEach(e,t=>{u.isValidElement(t)&&BC(t.type)&&(r=!0)}),r}function BC(e){return e===dh||e===fh||e===mh||e===jl||e===Gn||e===Sl||e===Yn}function $C(e){return e===jl||e===Gn||e===Sl||e===Yn}function VC(e){const r=[],t=[],o=[];return u.Children.forEach(e,n=>{if(u.isValidElement(n)&&$C(n.type)){n.type===Gn||n.type===Yn?o.push(n):r.push(n);return}t.push(n)}),{startSlots:r,mainSlots:t,endSlots:o,hasSideSlots:r.length>0||o.length>0}}function Vo(e,r){return e===!0||e===r}function ks(e){return DC[e]}function jc(e,r){return eo(e)?e:r}function Sc(e,r){return e??r}const dh=e=>c.jsx(Se,{...e,"data-card-slot":"header"}),fh=e=>c.jsx(Se,{...e,"data-card-slot":"content"}),mh=e=>c.jsx(Se,{...e,"data-card-slot":"footer"}),jl=e=>c.jsx(Se,{...e,"data-card-slot":"left"}),Gn=e=>c.jsx(Se,{...e,"data-card-slot":"right"}),Sl=e=>c.jsx(Se,{...e,"data-card-slot":"start"}),Yn=e=>c.jsx(Se,{...e,"data-card-slot":"end"});function zC(e){const{variant:r="outlined",padding:t="md",divided:o=!0,hoverable:n=!1,selected:s=!1,disabled:i=!1,header:l,footer:a,left:d,right:f,start:m,end:p,contentLoading:v=!1,headerProps:g,footerProps:h,leftProps:y,rightProps:b,startProps:x,endProps:w,contentProps:P,children:C,className:k,style:j,rounded:S="lg",shadow:N,onClick:A,...q}=e,E=jc(d,m),I=jc(f,p),_=Sc(y,x),O=Sc(b,w),T=FC(C),{startSlots:$,mainSlots:M,endSlots:U,hasSideSlots:F}=VC(C),{className:X,style:ue,loading:ee,...Q}=P??{};return T?c.jsx(Se,{rounded:S,shadow:N??kc[r],className:R("card flex overflow-hidden",Cc[r],n&&!i&&"transition hover:-translate-y-0.5 hover:shadow-lg",s&&"border-[color:var(--ldkj-color-primary)] ring-2 ring-[color:var(--ldkj-color-ring)]",i&&"pointer-events-none opacity-50",k),style:D(j,{flexDirection:F?"row":"column"}),"aria-disabled":i||void 0,onClick:i?void 0:A,...q,children:F?c.jsxs(c.Fragment,{children:[$,c.jsx(Se,{className:"card-main flex min-w-0 flex-1 flex-col",children:M}),U]}):C}):c.jsxs(Se,{rounded:S,shadow:N??kc[r],className:R("card flex overflow-hidden",Cc[r],n&&!i&&"transition hover:-translate-y-0.5 hover:shadow-lg",s&&"border-[color:var(--ldkj-color-primary)] ring-2 ring-[color:var(--ldkj-color-ring)]",i&&"pointer-events-none opacity-50",k),style:D(j,{flexDirection:"row"}),"aria-disabled":i||void 0,onClick:i?void 0:A,...q,children:[eo(E)?c.jsx(Se,{..._,className:R("card-left shrink-0",Vo(o,"x")&&"border-r border-[color:var(--ldkj-color-border)]",_?.className),children:E}):null,c.jsxs(Se,{className:"card-main flex min-w-0 flex-1 flex-col",children:[eo(l)?c.jsx(Se,{...g,className:R("card-header",ks(t),Vo(o,"y")&&"border-b border-[color:var(--ldkj-color-border)]",g?.className),children:l}):null,c.jsx(Se,{...Q,className:R("card-content min-w-0 flex-1",ks(t),X),style:ue,loading:v||ee,children:C}),eo(a)?c.jsx(Se,{...h,className:R("card-footer",ks(t),Vo(o,"y")&&"border-t border-[color:var(--ldkj-color-border)]",h?.className),children:a}):null]}),eo(I)?c.jsx(Se,{...O,className:R("card-right shrink-0",Vo(o,"x")&&"border-l border-[color:var(--ldkj-color-border)]",O?.className),children:I}):null]})}const Mr=Object.assign(zC,{Header:dh,Content:fh,Footer:mh,Left:jl,Right:Gn,Start:Sl,End:Yn});Mr.displayName="Card";Mr.Header.displayName="Card.Header";Mr.Content.displayName="Card.Content";Mr.Footer.displayName="Card.Footer";Mr.Left.displayName="Card.Left";Mr.Right.displayName="Card.Right";Mr.Start.displayName="Card.Start";Mr.End.displayName="Card.End";function HC(e,r=[]){let t=[];function o(s,i){const l=u.createContext(i);l.displayName=s+"Context";const a=t.length;t=[...t,i];const d=m=>{const{scope:p,children:v,...g}=m,h=p?.[e]?.[a]||l,y=u.useMemo(()=>g,Object.values(g));return c.jsx(h.Provider,{value:y,children:v})};d.displayName=s+"Provider";function f(m,p){const v=p?.[e]?.[a]||l,g=u.useContext(v);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[d,f]}const n=()=>{const s=t.map(i=>u.createContext(i));return function(l){const a=l?.[e]||s;return u.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return n.scopeName=e,[o,UC(n,...r)]}function UC(...e){const r=e[0];if(e.length===1)return r;const t=()=>{const o=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(s){const i=o.reduce((l,{useScope:a,scopeName:d})=>{const m=a(s)[`__scope${d}`];return{...l,...m}},{});return u.useMemo(()=>({[`__scope${r.scopeName}`]:i}),[i])}};return t.scopeName=r.scopeName,t}function WC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zo={exports:{}},js={};var Nc;function KC(){if(Nc)return js;Nc=1;var e=Oe;function r(m,p){return m===p&&(m!==0||1/m===1/p)||m!==m&&p!==p}var t=typeof Object.is=="function"?Object.is:r,o=e.useState,n=e.useEffect,s=e.useLayoutEffect,i=e.useDebugValue;function l(m,p){var v=p(),g=o({inst:{value:v,getSnapshot:p}}),h=g[0].inst,y=g[1];return s(function(){h.value=v,h.getSnapshot=p,a(h)&&y({inst:h})},[m,v,p]),n(function(){return a(h)&&y({inst:h}),m(function(){a(h)&&y({inst:h})})},[m]),i(v),v}function a(m){var p=m.getSnapshot;m=m.value;try{var v=p();return!t(m,v)}catch{return!0}}function d(m,p){return p()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:l;return js.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,js}var Ss={};var qc;function GC(){return qc||(qc=1,process.env.NODE_ENV!=="production"&&(function(){function e(v,g){return v===g&&(v!==0||1/v===1/g)||v!==v&&g!==g}function r(v,g){f||n.startTransition===void 0||(f=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var h=g();if(!m){var y=g();s(h,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),m=!0)}y=i({inst:{value:h,getSnapshot:g}});var b=y[0].inst,x=y[1];return a(function(){b.value=h,b.getSnapshot=g,t(b)&&x({inst:b})},[v,h,g]),l(function(){return t(b)&&x({inst:b}),v(function(){t(b)&&x({inst:b})})},[v]),d(h),h}function t(v){var g=v.getSnapshot;v=v.value;try{var h=g();return!s(v,h)}catch{return!0}}function o(v,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=Oe,s=typeof Object.is=="function"?Object.is:e,i=n.useState,l=n.useEffect,a=n.useLayoutEffect,d=n.useDebugValue,f=!1,m=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?o:r;Ss.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Ss}var Ec;function YC(){return Ec||(Ec=1,process.env.NODE_ENV==="production"?zo.exports=KC():zo.exports=GC()),zo.exports}var XC=YC();function JC(){return XC.useSyncExternalStore(QC,()=>!0,()=>!1)}function QC(){return()=>{}}var Nl="Avatar",[ZC]=HC(Nl),[ek,hh]=ZC(Nl),ph=u.forwardRef((e,r)=>{const{__scopeAvatar:t,...o}=e,[n,s]=u.useState("idle");return c.jsx(ek,{scope:t,imageLoadingStatus:n,onImageLoadingStatusChange:s,children:c.jsx(Mn.span,{...o,ref:r})})});ph.displayName=Nl;var vh="AvatarImage",gh=u.forwardRef((e,r)=>{const{__scopeAvatar:t,src:o,onLoadingStatusChange:n=()=>{},...s}=e,i=hh(vh,t),l=rk(o,s),a=Ar(d=>{n(d),i.onImageLoadingStatusChange(d)});return Ve(()=>{l!=="idle"&&a(l)},[l,a]),l==="loaded"?c.jsx(Mn.img,{...s,ref:r,src:o}):null});gh.displayName=vh;var xh="AvatarFallback",bh=u.forwardRef((e,r)=>{const{__scopeAvatar:t,delayMs:o,...n}=e,s=hh(xh,t),[i,l]=u.useState(o===void 0);return u.useEffect(()=>{if(o!==void 0){const a=window.setTimeout(()=>l(!0),o);return()=>window.clearTimeout(a)}},[o]),i&&s.imageLoadingStatus!=="loaded"?c.jsx(Mn.span,{...n,ref:r}):null});bh.displayName=xh;function Rc(e,r){return e?r?(e.src!==r&&(e.src=r),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function rk(e,{referrerPolicy:r,crossOrigin:t}){const o=JC(),n=u.useRef(null),s=o?(n.current||(n.current=new window.Image),n.current):null,[i,l]=u.useState(()=>Rc(s,e));return Ve(()=>{l(Rc(s,e))},[s,e]),Ve(()=>{const a=m=>()=>{l(m)};if(!s)return;const d=a("loaded"),f=a("error");return s.addEventListener("load",d),s.addEventListener("error",f),r&&(s.referrerPolicy=r),typeof t=="string"&&(s.crossOrigin=t),()=>{s.removeEventListener("load",d),s.removeEventListener("error",f)}},[s,t,r]),i}var tk=ph,ok=gh,nk=bh;const yh={xs:"h-6 w-6 text-[10px]",sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base",xl:"h-16 w-16 text-lg"};function sk(e){if(e!==void 0){if(typeof e=="number")return`${e}px`;if(!(typeof e=="string"&&e in yh))return e}}const wh=u.forwardRef((e,r)=>{const{className:t,class:o,sx:n,style:s,size:i="md",rounded:l="full",shadow:a,...d}=e,f=se(),{sxClassName:m,sxInlineStyle:p}=re(n,f),{roundedPreset:v,roundedStyle:g}=ht(l),{shadowPreset:h,shadowStyle:y}=ho(a),b=sk(i);return c.jsx(tk,{ref:r,className:R("avatar relative inline-flex shrink-0 select-none items-center justify-center overflow-hidden bg-[color:var(--ldkj-color-muted)] text-[color:var(--ldkj-color-muted-foreground)]",typeof i=="string"?yh[i]:null,v?Yr[v]:null,h?Ot[h]:null,m,t,o),style:D(s,g,y,b?{width:b,height:b}:void 0,p),...d})}),ql=u.forwardRef((e,r)=>{const{className:t,class:o,sx:n,style:s,...i}=e,l=se(),{sxClassName:a,sxInlineStyle:d}=re(n,l);return c.jsx(ok,{ref:r,className:R("avatar-image h-full w-full object-cover",a,t,o),style:D(s,d),...i})}),El=u.forwardRef((e,r)=>{const{className:t,class:o,sx:n,style:s,...i}=e,l=se(),{sxClassName:a,sxInlineStyle:d}=re(n,l);return c.jsx(nk,{ref:r,className:R("avatar-fallback flex h-full w-full items-center justify-center bg-[color:var(--ldkj-color-muted)] font-medium text-[color:var(--ldkj-color-muted-foreground)]",a,t,o),style:D(s,d),...i})}),Ph=Object.assign(wh,{Image:ql,Fallback:El});wh.displayName="Avatar";ql.displayName="Avatar.Image";El.displayName="Avatar.Fallback";Ph.displayName="Avatar";const Ch=Cu("inline-flex items-center justify-center whitespace-nowrap rounded border border-transparent font-medium transition-colors duration-150",{variants:{variant:{primary:"",success:"",warning:"",danger:"",minor:"",dark:"",light:"",text:""},outline:{true:"",false:""},size:{xs:"px-2 py-0.5 text-[10px]",sm:"px-2.5 py-0.5 text-xs",md:"px-2.5 py-1 text-xs",lg:"px-3 py-1 text-sm",xl:"px-3.5 py-1.5 text-sm"},rounded:Yr,shadow:Ot},compoundVariants:[{variant:"primary",outline:!1,className:"bg-[color:var(--ldkj-color-primary)] text-[color:var(--ldkj-color-primary-foreground)]"},{variant:"primary",outline:!0,className:"border-[color:var(--ldkj-color-primary)] text-[color:var(--ldkj-color-primary)]"},{variant:"success",outline:!1,className:"bg-[color:var(--ldkj-color-success)] text-[color:var(--ldkj-color-success-foreground)]"},{variant:"success",outline:!0,className:"border-[color:var(--ldkj-color-success)] text-[color:var(--ldkj-color-success)]"},{variant:"warning",outline:!1,className:"bg-[color:var(--ldkj-color-warning)] text-[color:var(--ldkj-color-warning-foreground)]"},{variant:"warning",outline:!0,className:"border-[color:var(--ldkj-color-warning)] text-[color:var(--ldkj-color-warning)]"},{variant:"danger",outline:!1,className:"bg-[color:var(--ldkj-color-danger)] text-[color:var(--ldkj-color-danger-foreground)]"},{variant:"danger",outline:!0,className:"border-[color:var(--ldkj-color-danger)] text-[color:var(--ldkj-color-danger)]"},{variant:"minor",outline:!1,className:"bg-[color:var(--ldkj-color-muted)] text-[color:var(--ldkj-color-muted-foreground)]"},{variant:"minor",outline:!0,className:"border-[color:var(--ldkj-color-border)] text-[color:var(--ldkj-color-muted-foreground)]"},{variant:"dark",outline:!1,className:"bg-[color:var(--ldkj-color-inverse)] text-[color:var(--ldkj-color-inverse-foreground)]"},{variant:"dark",outline:!0,className:"border-[color:var(--ldkj-color-inverse)] text-[color:var(--ldkj-color-inverse)]"},{variant:"light",outline:!1,className:"bg-[color:var(--ldkj-color-surface)] text-[color:var(--ldkj-color-surface-foreground)]"},{variant:"light",outline:!0,className:"border-[color:var(--ldkj-color-surface)] text-[color:var(--ldkj-color-surface)]"},{variant:"text",outline:!1,className:"bg-[color:var(--ldkj-color-surface-muted)] text-[color:var(--ldkj-color-muted-foreground)]"},{variant:"text",outline:!0,className:"border-[color:var(--ldkj-color-border)] text-[color:var(--ldkj-color-muted-foreground)]"}],defaultVariants:{variant:"primary",outline:!1,size:"md"}});function kh(e){const{component:r,variant:t,outline:o,size:n,rounded:s,shadow:i,sx:l,style:a,className:d,class:f,...m}=e,p=r??"span",{roundedPreset:v,roundedStyle:g}=ht(s),{shadowPreset:h,shadowStyle:y}=ho(i),b=se(),{sxClassName:x,sxInlineStyle:w}=re(l,b);return c.jsx(p,{className:R(Ch({variant:t,outline:o,size:n,rounded:v,shadow:h}),x,d,f),style:D(a,g,y,w),...m})}kh.displayName="Chip";const Ac={neutral:"bg-[color:var(--ldkj-color-muted)] text-[color:var(--ldkj-color-muted-foreground)]",primary:"bg-[color:var(--ldkj-color-primary)] text-[color:var(--ldkj-color-primary-foreground)]",success:"bg-[color:var(--ldkj-color-success)] text-[color:var(--ldkj-color-success-foreground)]",warning:"bg-[color:var(--ldkj-color-warning)] text-[color:var(--ldkj-color-warning-foreground)]",danger:"bg-[color:var(--ldkj-color-danger)] text-[color:var(--ldkj-color-danger-foreground)]"},ik={neutral:"bg-[color:var(--ldkj-color-surface-muted)] text-[color:var(--ldkj-color-muted-foreground)]",primary:"bg-[color:var(--ldkj-color-accent)] text-[color:var(--ldkj-color-primary)]",success:"bg-[color:var(--ldkj-color-accent)] text-[color:var(--ldkj-color-success)]",warning:"bg-[color:var(--ldkj-color-accent)] text-[color:var(--ldkj-color-warning)]",danger:"bg-[color:var(--ldkj-color-accent)] text-[color:var(--ldkj-color-danger)]"};function lk(e){const{className:r,class:t,sx:o,style:n,badgeContent:s,children:i,dot:l=!1,light:a=!1,showZero:d=!1,max:f=99,variant:m="neutral",...p}=e,v=se(),{sxClassName:g,sxInlineStyle:h}=re(o,v),y=typeof s=="number"?s:null,b=y===0&&!d,x=y!==null?y>f?`${f}+`:String(y):s,w=l?Ac[m]:a?ik[m]:Ac[m];return c.jsxs("span",{className:R("relative inline-flex",r,t),style:D(n,h),...p,children:[i,!b&&(l||x!==void 0)?c.jsx("span",{className:R("absolute -right-2 -top-2 inline-flex items-center justify-center rounded-full px-1 text-[10px] font-medium leading-4",w,l?"h-2 min-w-2 p-0":"min-w-4 h-4",g),children:l?null:x}):null]})}function ak(e){const{className:r,class:t,sx:o,style:n,bordered:s=!1,...i}=e,l=se(),{sxClassName:a,sxInlineStyle:d}=re(o,l);return c.jsx("ul",{className:R("m-0 list-none p-0",s&&"divide-y divide-[color:var(--ldkj-color-border)] rounded-md border border-[color:var(--ldkj-color-border)]",a,r,t),style:D(n,d),...i})}function ck(e){const{description:r="暂无数据",image:t,children:o,className:n,class:s,...i}=e;return c.jsxs(Se,{...i,className:R("flex flex-col items-center justify-center gap-2 py-10 text-[color:var(--ldkj-color-muted-foreground)]",n,s),children:[t??c.jsx("div",{className:"text-4xl",children:"◻"}),c.jsx("div",{className:"text-sm",children:r}),o]})}function Ic(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function uk(e){if(e!==void 0)return typeof e=="number"?String(e):e}function Kt(e,r,t){return Math.min(t,Math.max(r,e))}function dk(e,r){if(e.startsWith("data:")||e.startsWith("blob:")||e.includes("ldkj_retry="))return null;const t=e.match(/^([^?#]+)(\?[^#]*)?(#.*)?$/);if(!t)return null;const o=t[1],n=t[2]??"",s=t[3]??"",i=o.replace(/\.(png|jpe?g|webp|avif)$/i,`.${r}`);return i===o?null:`${i}${n}${s}`}function fk(e){return Array.from(new Set(e.filter(r=>Number.isFinite(r)&&r>0)))}function mk(e,r){const{width:t,height:o,crop:n}=r;if(!n||t===void 0||o===void 0||e.startsWith("data:")||e.startsWith("blob:")||e.includes("x-oss-process=")||e.includes("ldkj_retry="))return e;const s=`x-oss-process=image/resize,m_fill,w_${t},h_${o}`;return`${e}${e.includes("?")?"&":"?"}${s}`}const jh=u.forwardRef(function(r,t){const{className:o,class:n,sx:s,style:i,fallback:l,fallbackSrc:a,loadingFallback:d,fit:f,position:m,aspectRatio:p,placeholder:v,blurDataURL:g,retry:h=0,retryDelay:y=800,onLoadingChange:b,loader:x,quality:w,format:P,crop:C=!1,alt:k,src:j,width:S,height:N,sizes:A,loading:q,decoding:E,onLoad:I,onError:_,sources:O,formats:T,responsiveWidths:$,preview:M=!1,children:U,...F}=r,X=se(),{sxClassName:ue,sxInlineStyle:ee}=re(s,X),[Q,W]=u.useState(j?"loading":"idle"),[J,B]=u.useState(j),[K,H]=u.useState(!1),[G,Y]=u.useState(1),[Z,ae]=u.useState({x:0,y:0}),[fe,ve]=u.useState(!1),ge=u.useRef(0),ie=u.useRef(null),we=u.useRef(null),Ne=u.useRef(null),Me=u.useRef(null);u.useEffect(()=>{ge.current=0,B(j),W(j?"loading":"idle"),H(!1),Y(1),ae({x:0,y:0}),ve(!1)},[j]),u.useEffect(()=>{b?.(Q==="loading")},[b,Q]),u.useEffect(()=>{process.env.NODE_ENV!=="production"&&k===void 0&&console.warn('Image missing alt prop. Use alt text or alt="" for decorative images.')},[k]),u.useEffect(()=>()=>{ie.current&&clearTimeout(ie.current)},[]),u.useEffect(()=>{if(!K)return;Me.current=document.activeElement,Ne.current?.focus();const V=ce=>{if(ce.key==="Escape"){H(!1),Y(1),ae({x:0,y:0}),ve(!1);return}if(ce.key==="+"||ce.key==="="){Y(xe=>Kt(Number((xe+.2).toFixed(2)),1,4));return}if(ce.key==="-"||ce.key==="_"){Y(xe=>Kt(Number((xe-.2).toFixed(2)),1,4));return}ce.key==="0"&&(Y(1),ae({x:0,y:0}))},z=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",V),()=>{document.body.style.overflow=z,window.removeEventListener("keydown",V),Me.current?.focus?.()}},[K]),u.useEffect(()=>{if(!K||!fe)return;const V=ce=>{const xe=we.current;if(!xe)return;const je=ce.clientX-xe.x,Ie=ce.clientY-xe.y;ae({x:xe.offsetX+je,y:xe.offsetY+Ie})},z=()=>{ve(!1),we.current=null};return window.addEventListener("mousemove",V),window.addEventListener("mouseup",z),()=>{window.removeEventListener("mousemove",V),window.removeEventListener("mouseup",z)}},[K,fe]);const oe=typeof S=="number"?S:void 0,Pe=typeof N=="number"?N:void 0,Ce=u.useMemo(()=>{const V=$??[],z=oe?[...V,oe]:V;return fk(z).sort((ce,xe)=>ce-xe)},[$,oe]),de=u.useCallback((V,z,ce)=>x?x(V,{width:ce??oe,height:Pe,quality:w,format:z??P,crop:C}):mk(V,{width:ce??oe,height:Pe,crop:C}),[x,oe,Pe,w,P,C]),_e=J&&de(J),he=u.useMemo(()=>{if(!J||!T?.length)return[];const V=[];for(const z of T){const ce=dk(J,z);if(!ce)continue;if(x&&Ce.length){const je=Ce.map(Ie=>`${de(ce,z,Ie)} ${Ie}w`).join(", ");V.push({type:`image/${z}`,srcSet:je,sizes:A});continue}const xe=de(ce,z);!xe||xe===_e||V.push({type:`image/${z}`,srcSet:xe,sizes:A})}return V},[J,T,de,_e,A,x,Ce]),te=u.useMemo(()=>!x||!J||!Ce.length?null:{srcSet:Ce.map(z=>`${de(J,P,z)} ${z}w`).join(", "),sizes:A},[x,J,Ce,de,P,A]),me=u.useMemo(()=>{const z=[...O??[]];return he.length&&z.push(...he),te&&z.push(te),z},[O,he,te]),ke=Q==="loading"&&d,Te=Q==="loading"&&v==="blur"&&!!g,er=Q==="error"&&l,Ke=M&&Q==="loaded"&&!!_e&&!er,dr={status:Q,loading:Q==="loading",error:Q==="error",loaded:Q==="loaded",previewOpen:K,src:_e??void 0},yr=D({width:Ic(S),height:p?void 0:Ic(N),aspectRatio:uk(p),backgroundImage:Te?`url(${g})`:void 0,backgroundSize:Te?"cover":void 0,backgroundPosition:Te?"center":void 0},i,ee),He={width:"100%",height:p||N!==void 0?"100%":"auto",objectFit:f,objectPosition:m,opacity:Te?0:void 0,transition:Te?"opacity 180ms ease":void 0,cursor:Ke?"zoom-in":void 0},ir={transform:`translate(${Z.x}px, ${Z.y}px) scale(${G})`,transition:fe?void 0:"transform 120ms ease",cursor:G>1?fe?"grabbing":"grab":"zoom-in",transformOrigin:"center center"},Ge=V=>{if(ge.current<h&&J){ge.current+=1,ie.current=setTimeout(()=>{const z=J.includes("?")?"&":"?";B(`${J}${z}ldkj_retry=${ge.current}`),W("loading")},y),_?.(V);return}if(a&&J!==a){B(a),W("loading"),_?.(V);return}W("error"),_?.(V)},Lr=u.useCallback(()=>{H(!1),Y(1),ae({x:0,y:0}),ve(!1)},[]),Ye=V=>{V.preventDefault(),V.stopPropagation();const z=V.deltaY<0?.2:-.2;Y(ce=>Kt(Number((ce+z).toFixed(2)),1,4))};return c.jsxs(c.Fragment,{children:[c.jsxs("span",{className:R("relative inline-block max-w-full overflow-hidden align-middle",ue,o,n),style:yr,children:[er?l:me.length?c.jsxs("picture",{children:[me.map((V,z)=>c.jsx("source",{media:V.media,srcSet:V.srcSet,type:V.type,sizes:V.sizes},`${V.type??"source"}-${z}`)),c.jsx("img",{ref:t,alt:k,src:_e,width:S,height:N,sizes:A,loading:q??"lazy",decoding:E??"async",onLoad:V=>{W("loaded"),I?.(V)},onError:Ge,onClick:()=>{Ke&&(H(!0),Y(1),ae({x:0,y:0}))},className:"block max-w-full",style:He,...F})]}):c.jsx("img",{ref:t,alt:k,src:_e,width:S,height:N,sizes:A,loading:q??"lazy",decoding:E??"async",onLoad:V=>{W("loaded"),I?.(V)},onError:Ge,onClick:()=>{Ke&&(H(!0),Y(1),ae({x:0,y:0}))},className:"block max-w-full",style:He,...F}),ke?c.jsx("span",{className:"absolute inset-0 flex items-center justify-center",children:d}):null,U?c.jsx("span",{className:"pointer-events-none absolute inset-0",children:U(dr)}):null]}),K&&_e?c.jsxs("span",{className:"fixed inset-0 z-[1200] flex items-center justify-center bg-black/80 p-6",role:"dialog","aria-modal":"true","aria-label":"Image preview",onClick:Lr,onWheel:Ye,children:[c.jsx("img",{src:_e,alt:k,className:"max-h-[88vh] max-w-[92vw] select-none rounded-md object-contain shadow-2xl",style:ir,onClick:V=>V.stopPropagation(),onMouseDown:V=>{G<=1||(V.preventDefault(),V.stopPropagation(),we.current={x:V.clientX,y:V.clientY,offsetX:Z.x,offsetY:Z.y},ve(!0))}}),c.jsxs("span",{className:"absolute right-5 top-5 flex items-center gap-2",children:[c.jsx("button",{type:"button",className:"rounded-md bg-[color:var(--ldkj-color-popover)]/90 px-2.5 py-1.5 text-xs font-medium text-[color:var(--ldkj-color-popover-foreground)] hover:bg-[color:var(--ldkj-color-popover)]",onClick:V=>{V.stopPropagation(),Y(z=>Kt(z-.2,1,4))},children:"-"}),c.jsx("button",{type:"button",className:"rounded-md bg-[color:var(--ldkj-color-popover)]/90 px-2.5 py-1.5 text-xs font-medium text-[color:var(--ldkj-color-popover-foreground)] hover:bg-[color:var(--ldkj-color-popover)]",onClick:V=>{V.stopPropagation(),Y(z=>Kt(z+.2,1,4))},children:"+"}),c.jsx("button",{type:"button",className:"rounded-md bg-[color:var(--ldkj-color-popover)]/90 px-2.5 py-1.5 text-xs font-medium text-[color:var(--ldkj-color-popover-foreground)] hover:bg-[color:var(--ldkj-color-popover)]",onClick:V=>{V.stopPropagation(),Y(1),ae({x:0,y:0})},children:"重置"}),c.jsx("button",{ref:Ne,type:"button",className:"rounded-md bg-[color:var(--ldkj-color-popover)]/90 px-3 py-1.5 text-xs font-medium text-[color:var(--ldkj-color-popover-foreground)] hover:bg-[color:var(--ldkj-color-popover)]","aria-label":"Close preview",onClick:V=>{V.stopPropagation(),Lr()},children:"关闭"})]})]}):null]})});jh.displayName="Image";var kt={},Ns,Tc;function hk(){return Tc||(Tc=1,Ns=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),Ns}var qs={},$r={},_c;function xt(){if(_c)return $r;_c=1;let e;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return $r.getSymbolSize=function(o){if(!o)throw new Error('"version" cannot be null or undefined');if(o<1||o>40)throw new Error('"version" should be in range from 1 to 40');return o*4+17},$r.getSymbolTotalCodewords=function(o){return r[o]},$r.getBCHDigit=function(t){let o=0;for(;t!==0;)o++,t>>>=1;return o},$r.setToSJISFunction=function(o){if(typeof o!="function")throw new Error('"toSJISFunc" is not a valid function.');e=o},$r.isKanjiModeEnabled=function(){return typeof e<"u"},$r.toSJIS=function(o){return e(o)},$r}var Es={},Oc;function Rl(){return Oc||(Oc=1,(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function r(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}e.isValid=function(o){return o&&typeof o.bit<"u"&&o.bit>=0&&o.bit<4},e.from=function(o,n){if(e.isValid(o))return o;try{return r(o)}catch{return n}}})(Es)),Es}var Rs,Mc;function pk(){if(Mc)return Rs;Mc=1;function e(){this.buffer=[],this.length=0}return e.prototype={get:function(r){const t=Math.floor(r/8);return(this.buffer[t]>>>7-r%8&1)===1},put:function(r,t){for(let o=0;o<t;o++)this.putBit((r>>>t-o-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(r){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),r&&(this.buffer[t]|=128>>>this.length%8),this.length++}},Rs=e,Rs}var As,Lc;function vk(){if(Lc)return As;Lc=1;function e(r){if(!r||r<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=r,this.data=new Uint8Array(r*r),this.reservedBit=new Uint8Array(r*r)}return e.prototype.set=function(r,t,o,n){const s=r*this.size+t;this.data[s]=o,n&&(this.reservedBit[s]=!0)},e.prototype.get=function(r,t){return this.data[r*this.size+t]},e.prototype.xor=function(r,t,o){this.data[r*this.size+t]^=o},e.prototype.isReserved=function(r,t){return this.reservedBit[r*this.size+t]},As=e,As}var Is={},Dc;function gk(){return Dc||(Dc=1,(function(e){const r=xt().getSymbolSize;e.getRowColCoords=function(o){if(o===1)return[];const n=Math.floor(o/7)+2,s=r(o),i=s===145?26:Math.ceil((s-13)/(2*n-2))*2,l=[s-7];for(let a=1;a<n-1;a++)l[a]=l[a-1]-i;return l.push(6),l.reverse()},e.getPositions=function(o){const n=[],s=e.getRowColCoords(o),i=s.length;for(let l=0;l<i;l++)for(let a=0;a<i;a++)l===0&&a===0||l===0&&a===i-1||l===i-1&&a===0||n.push([s[l],s[a]]);return n}})(Is)),Is}var Ts={},Fc;function xk(){if(Fc)return Ts;Fc=1;const e=xt().getSymbolSize,r=7;return Ts.getPositions=function(o){const n=e(o);return[[0,0],[n-r,0],[0,n-r]]},Ts}var _s={},Bc;function bk(){return Bc||(Bc=1,(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const r={N1:3,N2:3,N3:40,N4:10};e.isValid=function(n){return n!=null&&n!==""&&!isNaN(n)&&n>=0&&n<=7},e.from=function(n){return e.isValid(n)?parseInt(n,10):void 0},e.getPenaltyN1=function(n){const s=n.size;let i=0,l=0,a=0,d=null,f=null;for(let m=0;m<s;m++){l=a=0,d=f=null;for(let p=0;p<s;p++){let v=n.get(m,p);v===d?l++:(l>=5&&(i+=r.N1+(l-5)),d=v,l=1),v=n.get(p,m),v===f?a++:(a>=5&&(i+=r.N1+(a-5)),f=v,a=1)}l>=5&&(i+=r.N1+(l-5)),a>=5&&(i+=r.N1+(a-5))}return i},e.getPenaltyN2=function(n){const s=n.size;let i=0;for(let l=0;l<s-1;l++)for(let a=0;a<s-1;a++){const d=n.get(l,a)+n.get(l,a+1)+n.get(l+1,a)+n.get(l+1,a+1);(d===4||d===0)&&i++}return i*r.N2},e.getPenaltyN3=function(n){const s=n.size;let i=0,l=0,a=0;for(let d=0;d<s;d++){l=a=0;for(let f=0;f<s;f++)l=l<<1&2047|n.get(d,f),f>=10&&(l===1488||l===93)&&i++,a=a<<1&2047|n.get(f,d),f>=10&&(a===1488||a===93)&&i++}return i*r.N3},e.getPenaltyN4=function(n){let s=0;const i=n.data.length;for(let a=0;a<i;a++)s+=n.data[a];return Math.abs(Math.ceil(s*100/i/5)-10)*r.N4};function t(o,n,s){switch(o){case e.Patterns.PATTERN000:return(n+s)%2===0;case e.Patterns.PATTERN001:return n%2===0;case e.Patterns.PATTERN010:return s%3===0;case e.Patterns.PATTERN011:return(n+s)%3===0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(s/3))%2===0;case e.Patterns.PATTERN101:return n*s%2+n*s%3===0;case e.Patterns.PATTERN110:return(n*s%2+n*s%3)%2===0;case e.Patterns.PATTERN111:return(n*s%3+(n+s)%2)%2===0;default:throw new Error("bad maskPattern:"+o)}}e.applyMask=function(n,s){const i=s.size;for(let l=0;l<i;l++)for(let a=0;a<i;a++)s.isReserved(a,l)||s.xor(a,l,t(n,a,l))},e.getBestMask=function(n,s){const i=Object.keys(e.Patterns).length;let l=0,a=1/0;for(let d=0;d<i;d++){s(d),e.applyMask(d,n);const f=e.getPenaltyN1(n)+e.getPenaltyN2(n)+e.getPenaltyN3(n)+e.getPenaltyN4(n);e.applyMask(d,n),f<a&&(a=f,l=d)}return l}})(_s)),_s}var Ho={},$c;function Sh(){if($c)return Ho;$c=1;const e=Rl(),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],t=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return Ho.getBlocksCount=function(n,s){switch(s){case e.L:return r[(n-1)*4+0];case e.M:return r[(n-1)*4+1];case e.Q:return r[(n-1)*4+2];case e.H:return r[(n-1)*4+3];default:return}},Ho.getTotalCodewordsCount=function(n,s){switch(s){case e.L:return t[(n-1)*4+0];case e.M:return t[(n-1)*4+1];case e.Q:return t[(n-1)*4+2];case e.H:return t[(n-1)*4+3];default:return}},Ho}var Os={},Gt={},Vc;function yk(){if(Vc)return Gt;Vc=1;const e=new Uint8Array(512),r=new Uint8Array(256);return(function(){let o=1;for(let n=0;n<255;n++)e[n]=o,r[o]=n,o<<=1,o&256&&(o^=285);for(let n=255;n<512;n++)e[n]=e[n-255]})(),Gt.log=function(o){if(o<1)throw new Error("log("+o+")");return r[o]},Gt.exp=function(o){return e[o]},Gt.mul=function(o,n){return o===0||n===0?0:e[r[o]+r[n]]},Gt}var zc;function wk(){return zc||(zc=1,(function(e){const r=yk();e.mul=function(o,n){const s=new Uint8Array(o.length+n.length-1);for(let i=0;i<o.length;i++)for(let l=0;l<n.length;l++)s[i+l]^=r.mul(o[i],n[l]);return s},e.mod=function(o,n){let s=new Uint8Array(o);for(;s.length-n.length>=0;){const i=s[0];for(let a=0;a<n.length;a++)s[a]^=r.mul(n[a],i);let l=0;for(;l<s.length&&s[l]===0;)l++;s=s.slice(l)}return s},e.generateECPolynomial=function(o){let n=new Uint8Array([1]);for(let s=0;s<o;s++)n=e.mul(n,new Uint8Array([1,r.exp(s)]));return n}})(Os)),Os}var Ms,Hc;function Pk(){if(Hc)return Ms;Hc=1;const e=wk();function r(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}return r.prototype.initialize=function(o){this.degree=o,this.genPoly=e.generateECPolynomial(this.degree)},r.prototype.encode=function(o){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(o.length+this.degree);n.set(o);const s=e.mod(n,this.genPoly),i=this.degree-s.length;if(i>0){const l=new Uint8Array(this.degree);return l.set(s,i),l}return s},Ms=r,Ms}var Ls={},Ds={},Fs={},Uc;function Nh(){return Uc||(Uc=1,Fs.isValid=function(r){return!isNaN(r)&&r>=1&&r<=40}),Fs}var Pr={},Wc;function qh(){if(Wc)return Pr;Wc=1;const e="[0-9]+",r="[A-Z $%*+\\-./:]+";let t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");const o="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+`)(?:.|[\r
|
|
42
|
+
]))+`;Pr.KANJI=new RegExp(t,"g"),Pr.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Pr.BYTE=new RegExp(o,"g"),Pr.NUMERIC=new RegExp(e,"g"),Pr.ALPHANUMERIC=new RegExp(r,"g");const n=new RegExp("^"+t+"$"),s=new RegExp("^"+e+"$"),i=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Pr.testKanji=function(a){return n.test(a)},Pr.testNumeric=function(a){return s.test(a)},Pr.testAlphanumeric=function(a){return i.test(a)},Pr}var Kc;function bt(){return Kc||(Kc=1,(function(e){const r=Nh(),t=qh();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(s,i){if(!s.ccBits)throw new Error("Invalid mode: "+s);if(!r.isValid(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?s.ccBits[0]:i<27?s.ccBits[1]:s.ccBits[2]},e.getBestModeForData=function(s){return t.testNumeric(s)?e.NUMERIC:t.testAlphanumeric(s)?e.ALPHANUMERIC:t.testKanji(s)?e.KANJI:e.BYTE},e.toString=function(s){if(s&&s.id)return s.id;throw new Error("Invalid mode")},e.isValid=function(s){return s&&s.bit&&s.ccBits};function o(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+n)}}e.from=function(s,i){if(e.isValid(s))return s;try{return o(s)}catch{return i}}})(Ds)),Ds}var Gc;function Ck(){return Gc||(Gc=1,(function(e){const r=xt(),t=Sh(),o=Rl(),n=bt(),s=Nh(),i=7973,l=r.getBCHDigit(i);function a(p,v,g){for(let h=1;h<=40;h++)if(v<=e.getCapacity(h,g,p))return h}function d(p,v){return n.getCharCountIndicator(p,v)+4}function f(p,v){let g=0;return p.forEach(function(h){const y=d(h.mode,v);g+=y+h.getBitsLength()}),g}function m(p,v){for(let g=1;g<=40;g++)if(f(p,g)<=e.getCapacity(g,v,n.MIXED))return g}e.from=function(v,g){return s.isValid(v)?parseInt(v,10):g},e.getCapacity=function(v,g,h){if(!s.isValid(v))throw new Error("Invalid QR Code version");typeof h>"u"&&(h=n.BYTE);const y=r.getSymbolTotalCodewords(v),b=t.getTotalCodewordsCount(v,g),x=(y-b)*8;if(h===n.MIXED)return x;const w=x-d(h,v);switch(h){case n.NUMERIC:return Math.floor(w/10*3);case n.ALPHANUMERIC:return Math.floor(w/11*2);case n.KANJI:return Math.floor(w/13);case n.BYTE:default:return Math.floor(w/8)}},e.getBestVersionForData=function(v,g){let h;const y=o.from(g,o.M);if(Array.isArray(v)){if(v.length>1)return m(v,y);if(v.length===0)return 1;h=v[0]}else h=v;return a(h.mode,h.getLength(),y)},e.getEncodedBits=function(v){if(!s.isValid(v)||v<7)throw new Error("Invalid QR Code version");let g=v<<12;for(;r.getBCHDigit(g)-l>=0;)g^=i<<r.getBCHDigit(g)-l;return v<<12|g}})(Ls)),Ls}var Bs={},Yc;function kk(){if(Yc)return Bs;Yc=1;const e=xt(),r=1335,t=21522,o=e.getBCHDigit(r);return Bs.getEncodedBits=function(s,i){const l=s.bit<<3|i;let a=l<<10;for(;e.getBCHDigit(a)-o>=0;)a^=r<<e.getBCHDigit(a)-o;return(l<<10|a)^t},Bs}var $s={},Vs,Xc;function jk(){if(Xc)return Vs;Xc=1;const e=bt();function r(t){this.mode=e.NUMERIC,this.data=t.toString()}return r.getBitsLength=function(o){return 10*Math.floor(o/3)+(o%3?o%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(o){let n,s,i;for(n=0;n+3<=this.data.length;n+=3)s=this.data.substr(n,3),i=parseInt(s,10),o.put(i,10);const l=this.data.length-n;l>0&&(s=this.data.substr(n),i=parseInt(s,10),o.put(i,l*3+1))},Vs=r,Vs}var zs,Jc;function Sk(){if(Jc)return zs;Jc=1;const e=bt(),r=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function t(o){this.mode=e.ALPHANUMERIC,this.data=o}return t.getBitsLength=function(n){return 11*Math.floor(n/2)+6*(n%2)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(n){let s;for(s=0;s+2<=this.data.length;s+=2){let i=r.indexOf(this.data[s])*45;i+=r.indexOf(this.data[s+1]),n.put(i,11)}this.data.length%2&&n.put(r.indexOf(this.data[s]),6)},zs=t,zs}var Hs,Qc;function Nk(){if(Qc)return Hs;Qc=1;const e=bt();function r(t){this.mode=e.BYTE,typeof t=="string"?this.data=new TextEncoder().encode(t):this.data=new Uint8Array(t)}return r.getBitsLength=function(o){return o*8},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(t){for(let o=0,n=this.data.length;o<n;o++)t.put(this.data[o],8)},Hs=r,Hs}var Us,Zc;function qk(){if(Zc)return Us;Zc=1;const e=bt(),r=xt();function t(o){this.mode=e.KANJI,this.data=o}return t.getBitsLength=function(n){return n*13},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(o){let n;for(n=0;n<this.data.length;n++){let s=r.toSJIS(this.data[n]);if(s>=33088&&s<=40956)s-=33088;else if(s>=57408&&s<=60351)s-=49472;else throw new Error("Invalid SJIS character: "+this.data[n]+`
|
|
43
|
+
Make sure your charset is UTF-8`);s=(s>>>8&255)*192+(s&255),o.put(s,13)}},Us=t,Us}var Ws={exports:{}},eu;function Ek(){return eu||(eu=1,(function(e){var r={single_source_shortest_paths:function(t,o,n){var s={},i={};i[o]=0;var l=r.PriorityQueue.make();l.push(o,0);for(var a,d,f,m,p,v,g,h,y;!l.empty();){a=l.pop(),d=a.value,m=a.cost,p=t[d]||{};for(f in p)p.hasOwnProperty(f)&&(v=p[f],g=m+v,h=i[f],y=typeof i[f]>"u",(y||h>g)&&(i[f]=g,l.push(f,g),s[f]=d))}if(typeof n<"u"&&typeof i[n]>"u"){var b=["Could not find a path from ",o," to ",n,"."].join("");throw new Error(b)}return s},extract_shortest_path_from_predecessor_list:function(t,o){for(var n=[],s=o;s;)n.push(s),t[s],s=t[s];return n.reverse(),n},find_path:function(t,o,n){var s=r.single_source_shortest_paths(t,o,n);return r.extract_shortest_path_from_predecessor_list(s,n)},PriorityQueue:{make:function(t){var o=r.PriorityQueue,n={},s;t=t||{};for(s in o)o.hasOwnProperty(s)&&(n[s]=o[s]);return n.queue=[],n.sorter=t.sorter||o.default_sorter,n},default_sorter:function(t,o){return t.cost-o.cost},push:function(t,o){var n={value:t,cost:o};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=r})(Ws)),Ws.exports}var ru;function Rk(){return ru||(ru=1,(function(e){const r=bt(),t=jk(),o=Sk(),n=Nk(),s=qk(),i=qh(),l=xt(),a=Ek();function d(b){return unescape(encodeURIComponent(b)).length}function f(b,x,w){const P=[];let C;for(;(C=b.exec(w))!==null;)P.push({data:C[0],index:C.index,mode:x,length:C[0].length});return P}function m(b){const x=f(i.NUMERIC,r.NUMERIC,b),w=f(i.ALPHANUMERIC,r.ALPHANUMERIC,b);let P,C;return l.isKanjiModeEnabled()?(P=f(i.BYTE,r.BYTE,b),C=f(i.KANJI,r.KANJI,b)):(P=f(i.BYTE_KANJI,r.BYTE,b),C=[]),x.concat(w,P,C).sort(function(j,S){return j.index-S.index}).map(function(j){return{data:j.data,mode:j.mode,length:j.length}})}function p(b,x){switch(x){case r.NUMERIC:return t.getBitsLength(b);case r.ALPHANUMERIC:return o.getBitsLength(b);case r.KANJI:return s.getBitsLength(b);case r.BYTE:return n.getBitsLength(b)}}function v(b){return b.reduce(function(x,w){const P=x.length-1>=0?x[x.length-1]:null;return P&&P.mode===w.mode?(x[x.length-1].data+=w.data,x):(x.push(w),x)},[])}function g(b){const x=[];for(let w=0;w<b.length;w++){const P=b[w];switch(P.mode){case r.NUMERIC:x.push([P,{data:P.data,mode:r.ALPHANUMERIC,length:P.length},{data:P.data,mode:r.BYTE,length:P.length}]);break;case r.ALPHANUMERIC:x.push([P,{data:P.data,mode:r.BYTE,length:P.length}]);break;case r.KANJI:x.push([P,{data:P.data,mode:r.BYTE,length:d(P.data)}]);break;case r.BYTE:x.push([{data:P.data,mode:r.BYTE,length:d(P.data)}])}}return x}function h(b,x){const w={},P={start:{}};let C=["start"];for(let k=0;k<b.length;k++){const j=b[k],S=[];for(let N=0;N<j.length;N++){const A=j[N],q=""+k+N;S.push(q),w[q]={node:A,lastCount:0},P[q]={};for(let E=0;E<C.length;E++){const I=C[E];w[I]&&w[I].node.mode===A.mode?(P[I][q]=p(w[I].lastCount+A.length,A.mode)-p(w[I].lastCount,A.mode),w[I].lastCount+=A.length):(w[I]&&(w[I].lastCount=A.length),P[I][q]=p(A.length,A.mode)+4+r.getCharCountIndicator(A.mode,x))}}C=S}for(let k=0;k<C.length;k++)P[C[k]].end=0;return{map:P,table:w}}function y(b,x){let w;const P=r.getBestModeForData(b);if(w=r.from(x,P),w!==r.BYTE&&w.bit<P.bit)throw new Error('"'+b+'" cannot be encoded with mode '+r.toString(w)+`.
|
|
44
|
+
Suggested mode is: `+r.toString(P));switch(w===r.KANJI&&!l.isKanjiModeEnabled()&&(w=r.BYTE),w){case r.NUMERIC:return new t(b);case r.ALPHANUMERIC:return new o(b);case r.KANJI:return new s(b);case r.BYTE:return new n(b)}}e.fromArray=function(x){return x.reduce(function(w,P){return typeof P=="string"?w.push(y(P,null)):P.data&&w.push(y(P.data,P.mode)),w},[])},e.fromString=function(x,w){const P=m(x,l.isKanjiModeEnabled()),C=g(P),k=h(C,w),j=a.find_path(k.map,"start","end"),S=[];for(let N=1;N<j.length-1;N++)S.push(k.table[j[N]].node);return e.fromArray(v(S))},e.rawSplit=function(x){return e.fromArray(m(x,l.isKanjiModeEnabled()))}})($s)),$s}var tu;function Ak(){if(tu)return qs;tu=1;const e=xt(),r=Rl(),t=pk(),o=vk(),n=gk(),s=xk(),i=bk(),l=Sh(),a=Pk(),d=Ck(),f=kk(),m=bt(),p=Rk();function v(k,j){const S=k.size,N=s.getPositions(j);for(let A=0;A<N.length;A++){const q=N[A][0],E=N[A][1];for(let I=-1;I<=7;I++)if(!(q+I<=-1||S<=q+I))for(let _=-1;_<=7;_++)E+_<=-1||S<=E+_||(I>=0&&I<=6&&(_===0||_===6)||_>=0&&_<=6&&(I===0||I===6)||I>=2&&I<=4&&_>=2&&_<=4?k.set(q+I,E+_,!0,!0):k.set(q+I,E+_,!1,!0))}}function g(k){const j=k.size;for(let S=8;S<j-8;S++){const N=S%2===0;k.set(S,6,N,!0),k.set(6,S,N,!0)}}function h(k,j){const S=n.getPositions(j);for(let N=0;N<S.length;N++){const A=S[N][0],q=S[N][1];for(let E=-2;E<=2;E++)for(let I=-2;I<=2;I++)E===-2||E===2||I===-2||I===2||E===0&&I===0?k.set(A+E,q+I,!0,!0):k.set(A+E,q+I,!1,!0)}}function y(k,j){const S=k.size,N=d.getEncodedBits(j);let A,q,E;for(let I=0;I<18;I++)A=Math.floor(I/3),q=I%3+S-8-3,E=(N>>I&1)===1,k.set(A,q,E,!0),k.set(q,A,E,!0)}function b(k,j,S){const N=k.size,A=f.getEncodedBits(j,S);let q,E;for(q=0;q<15;q++)E=(A>>q&1)===1,q<6?k.set(q,8,E,!0):q<8?k.set(q+1,8,E,!0):k.set(N-15+q,8,E,!0),q<8?k.set(8,N-q-1,E,!0):q<9?k.set(8,15-q-1+1,E,!0):k.set(8,15-q-1,E,!0);k.set(N-8,8,1,!0)}function x(k,j){const S=k.size;let N=-1,A=S-1,q=7,E=0;for(let I=S-1;I>0;I-=2)for(I===6&&I--;;){for(let _=0;_<2;_++)if(!k.isReserved(A,I-_)){let O=!1;E<j.length&&(O=(j[E]>>>q&1)===1),k.set(A,I-_,O),q--,q===-1&&(E++,q=7)}if(A+=N,A<0||S<=A){A-=N,N=-N;break}}}function w(k,j,S){const N=new t;S.forEach(function(_){N.put(_.mode.bit,4),N.put(_.getLength(),m.getCharCountIndicator(_.mode,k)),_.write(N)});const A=e.getSymbolTotalCodewords(k),q=l.getTotalCodewordsCount(k,j),E=(A-q)*8;for(N.getLengthInBits()+4<=E&&N.put(0,4);N.getLengthInBits()%8!==0;)N.putBit(0);const I=(E-N.getLengthInBits())/8;for(let _=0;_<I;_++)N.put(_%2?17:236,8);return P(N,k,j)}function P(k,j,S){const N=e.getSymbolTotalCodewords(j),A=l.getTotalCodewordsCount(j,S),q=N-A,E=l.getBlocksCount(j,S),I=N%E,_=E-I,O=Math.floor(N/E),T=Math.floor(q/E),$=T+1,M=O-T,U=new a(M);let F=0;const X=new Array(E),ue=new Array(E);let ee=0;const Q=new Uint8Array(k.buffer);for(let H=0;H<E;H++){const G=H<_?T:$;X[H]=Q.slice(F,F+G),ue[H]=U.encode(X[H]),F+=G,ee=Math.max(ee,G)}const W=new Uint8Array(N);let J=0,B,K;for(B=0;B<ee;B++)for(K=0;K<E;K++)B<X[K].length&&(W[J++]=X[K][B]);for(B=0;B<M;B++)for(K=0;K<E;K++)W[J++]=ue[K][B];return W}function C(k,j,S,N){let A;if(Array.isArray(k))A=p.fromArray(k);else if(typeof k=="string"){let O=j;if(!O){const T=p.rawSplit(k);O=d.getBestVersionForData(T,S)}A=p.fromString(k,O||40)}else throw new Error("Invalid data");const q=d.getBestVersionForData(A,S);if(!q)throw new Error("The amount of data is too big to be stored in a QR Code");if(!j)j=q;else if(j<q)throw new Error(`
|
|
45
45
|
The chosen QR Code version cannot contain this amount of data.
|
|
46
46
|
Minimum version required to store current data is: `+q+`.
|
|
47
|
-
`);const E=w(j,S,A),I=e.getSymbolSize(j),_=new o(I);return v(_,j),g(_),h(_,j),b(_,S,0),j>=7&&y(_,j),x(_,E),isNaN(N)&&(N=i.getBestMask(_,b.bind(null,_,S))),i.applyMask(N,_),b(_,S,N),{modules:_,version:j,errorCorrectionLevel:S,maskPattern:N,segments:A}}return
|
|
48
|
-
`;return typeof l=="function"&&l(null,y),y},Xs}var iu;function _k(){if(iu)return kt;iu=1;const e=hk(),r=Ak(),t=Ik(),o=Tk();function n(s,i,l,a,d){const f=[].slice.call(arguments,1),m=f.length,p=typeof f[m-1]=="function";if(!p&&!e())throw new Error("Callback required as last argument");if(p){if(m<2)throw new Error("Too few arguments provided");m===2?(d=l,l=i,i=a=void 0):m===3&&(i.getContext&&typeof d>"u"?(d=a,a=void 0):(d=a,a=l,l=i,i=void 0))}else{if(m<1)throw new Error("Too few arguments provided");return m===1?(l=i,i=a=void 0):m===2&&!i.getContext&&(a=l,l=i,i=void 0),new Promise(function(v,g){try{const h=r.create(l,a);v(s(h,i,a))}catch(h){g(h)}})}try{const v=r.create(l,a);d(null,s(v,i,a))}catch(v){d(v)}}return kt.create=r.create,kt.toCanvas=n.bind(null,t.render),kt.toDataURL=n.bind(null,t.renderToDataURL),kt.toString=n.bind(null,function(s,i,l){return o.render(s,l)}),kt}var Ok=_k();const Il=WC(Ok),Rh=({value:e,useful:r=!0,uselessElem:t,uselessProps:{style:o={},...n}={},foregroundColor:s="#000000",backgroundColor:i="#ffffff",margin:l=4,errorCorrectionLevel:a="medium",size:d=200,fullWidth:f,sx:m,className:p,style:v,...g})=>{const h=Oe.useRef(null),y=Oe.useRef(null),b=se(),{sxClassName:x,sxInlineStyle:w}=re(m,b),P=Oe.useCallback(C=>{const k=h.current;k&&Il.toCanvas(k,e,{errorCorrectionLevel:a,margin:l,width:C,color:{dark:s,light:i}},j=>{if(j&&console.error(j),!r){const S=k.getContext("2d");S&&(S.globalCompositeOperation="source-over",S.fillStyle="rgba(255, 255, 255, 0.5)",S.fillRect(0,0,k.width,k.height),S.filter="grayscale(100%) opacity(0.5)",S.drawImage(k,0,0))}})},[i,a,s,l,r,e]);return Oe.useEffect(()=>{const C=y.current;if(!C)return;const k=new ResizeObserver(()=>{const j=Math.min(C.clientWidth,C.clientHeight);P(j)});return k.observe(C),()=>k.disconnect()},[e,r,s,i,l,a,P]),c.jsxs("div",{ref:y,className:R(x,p),style:D(v,{width:f?"100%":d,height:f?"100%":d,display:"flex",aspectRatio:"1",position:"relative"},w),...g,children:[c.jsx("canvas",{ref:h}),!r&&t&&c.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",color:"white",background:"radial-gradient(circle at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0.3) 80%)",opacity:.5,...o},...n,children:t})]})},Mk=e=>e?{width:e,height:e}:{},Ah=({size:e=200,fullWidth:r,sx:t,value:o,useful:n=!0,uselessElem:s,uselessProps:{style:i={},...l}={},alt:a,style:d,className:f,foregroundColor:m,backgroundColor:p,margin:v=4,errorCorrectionLevel:g,unload:h,width:y,height:b,...x})=>{const[w,P]=Oe.useState(""),[C,k]=Oe.useState(),j=Oe.useRef(null),S=se(),{sxClassName:N,sxInlineStyle:A}=re(t,S);return Oe.useEffect(()=>{if(!r)return;const q=j.current;if(!q)return;const E=()=>{k(Math.min(q.clientWidth,q.clientHeight))};E();const I=new ResizeObserver(E);return I.observe(q),()=>I.disconnect()},[r]),Oe.useEffect(()=>{const q=r?C:y?lt.getInstance().convertToPx(y):e?lt.getInstance().convertToPx(e):void 0;Il.toDataURL(o,{color:{dark:m,light:p},width:q,margin:v,errorCorrectionLevel:g}).then(E=>P(E)).catch(E=>console.error(E))},[p,g,m,v,r,C,y,e,o]),w?c.jsxs("div",{ref:j,style:{width:r?"100%":e,height:r?"100%":e,display:"flex",aspectRatio:"1",position:"relative"},children:[c.jsx("img",{src:w,alt:a??"QR Code",className:R(N,f),style:D({filter:n?"none":"grayscale(100%) opacity(0.5)",transition:"filter 0.2s ease",position:"relative",...r?{width:"100%",height:"100%"}:Mk(e)},d,A),...!r&&{width:y,height:b},...x}),!n&&s&&c.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",color:"white",background:"radial-gradient(circle at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0.3) 80%)",opacity:.5,...i},...l,children:s})]}):c.jsx(c.Fragment,{children:h})};function Lk({canvas:e,...r}){return e?c.jsx(Rh,{...r}):c.jsx(Ah,{...r})}const Dk=e=>e?{width:e,height:e}:{},Fk=({size:e,value:r,useful:t=!0,alt:o,style:n,foregroundColor:s,backgroundColor:i,margin:l,errorCorrectionLevel:a,unload:d,...f})=>{const[m,p]=Oe.useState("");return Oe.useEffect(()=>{Il.toDataURL(r,{color:{dark:s,light:i},width:e,margin:l,errorCorrectionLevel:a}).then(v=>p(v)).catch(v=>console.error(v))},[i,a,s,l,e,r]),m?c.jsx("img",{src:m,alt:o??"QR Code",style:{filter:t?"none":"grayscale(100%) opacity(0.5)",transition:"filter 0.2s ease",...Dk(e),...n},...f}):c.jsx(c.Fragment,{children:d})},ut={sm:"px-3 py-2 text-xs",md:"px-4 py-3 text-sm",lg:"px-5 py-4 text-base"},Bk={outlined:"border border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-card)] text-[color:var(--ldkj-color-card-foreground)]",filled:"border border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-muted)] text-[color:var(--ldkj-color-foreground)]",ghost:"border border-transparent bg-transparent"};function Ih(e){return null}function Th(e){const{className:r,...t}=e;return c.jsx(Se,{component:"thead",className:R("bg-[color:var(--ldkj-color-muted)]",r),...t})}function _h(e){return c.jsx(Se,{component:"tbody",...e})}function pn(e){const{className:r,...t}=e;return c.jsx(Se,{component:"tr",className:R("border-b border-[color:var(--ldkj-color-border)] last:border-b-0",r),...t})}function en(e){const{className:r,style:t,...o}=e;return c.jsx(Se,{component:"th",scope:"col",className:R("whitespace-nowrap font-medium text-[color:var(--ldkj-color-foreground)]",r),style:D({textAlign:"left"},t),...o})}function ro(e){const{className:r,style:t,...o}=e;return c.jsx(Se,{component:"td",className:R("text-[color:var(--ldkj-color-foreground)]",r),style:D({textAlign:"left"},t),...o})}const Js="ellipsis";function Qs(e,r){return Number.isFinite(e)?Math.min(Math.max(Math.trunc(e),1),r):1}function Zs(e,r){const t=Math.max(r-e+1,0);return Array.from({length:t},(o,n)=>e+n)}function $k(e){const{count:r,page:t,defaultPage:o=1}=e,[n,s]=u.useState(()=>Qs(o,r)),i=t!==void 0,l=Qs(i?t:n,r);return u.useEffect(()=>{i||s(a=>Qs(a,r))},[r,i]),{page:l,setPage:s,isControlled:i}}function Vk(e){const{count:r,page:t,siblingCount:o,boundaryCount:n,showPreviousNext:s,disabled:i}=e,l=Zs(1,Math.min(n,r)),a=Zs(Math.max(r-n+1,n+1),r),d=Math.max(Math.min(t-o,r-n-o*2-1),n+2),f=Math.min(Math.max(t+o,n+o*2+2),a.length>0?a[0]-2:r-1),p=[...l,...d>n+2?[Js]:n+1<r-n?[n+1]:[],...Zs(d,f),...f<r-n-1?[Js]:r-n>n?[r-n]:[],...a].map(v=>v===Js?{type:"ellipsis",page:null,selected:!1,disabled:!0}:{type:"page",page:v,selected:v===t,disabled:i});return s?[{type:"previous",page:Math.max(t-1,1),selected:!1,disabled:i||t<=1},...p,{type:"next",page:Math.min(t+1,r),selected:!1,disabled:i||t>=r}]:p}const Tl=({count:e,page:r,defaultPage:t,onPageChange:o,siblingCount:n=1,boundaryCount:s=1,variant:i="filled",showPreviousNext:l=!0,disabled:a=!1,getItemHref:d,renderItem:f,contentProps:m,className:p,class:v,sx:g,style:h,children:y,...b})=>{const x=se(),{sxClassName:w,sxInlineStyle:P}=re(g,x),C=typeof e=="number"&&e>0,{page:k,setPage:j,isControlled:S}=$k({count:C?e:1,page:r,defaultPage:t}),N=C?Vk({count:e,page:k,siblingCount:Math.max(Math.trunc(n),0),boundaryCount:Math.max(Math.trunc(s),0),showPreviousNext:l,disabled:a}):[],A=(q,E,I)=>{if(I){q.preventDefault();return}q.preventDefault(),S||j(E),o?.(q,E)};return c.jsx("nav",{role:"navigation","aria-label":"分页",className:R("mx-auto flex w-full justify-center",w,p,v),style:D(h,P),...b,children:C?c.jsx(_l,{...m,children:N.map((q,E)=>{const I=`${q.type}-${q.page??E}`,_=q.page===null?void 0:d?.(q.page,q.type)??`#page-${q.page}`,O=q.page===null?void 0:$=>A($,q.page,q.disabled),T={...q,href:_,onClick:O};return f?c.jsx(it,{children:f(T)},I):q.type==="ellipsis"?c.jsx(it,{children:c.jsx(Ll,{})},I):q.type==="previous"?c.jsx(it,{children:c.jsx(Ol,{href:_,variant:i,disabled:q.disabled,onClick:O})},I):q.type==="next"?c.jsx(it,{children:c.jsx(Ml,{href:_,variant:i,disabled:q.disabled,onClick:O})},I):c.jsx(it,{children:c.jsx(Co,{href:_,variant:i,isActive:q.selected,disabled:q.disabled,onClick:O,children:q.page})},I)})}):y})};Tl.displayName="Pagination";const _l=u.forwardRef(({className:e,class:r,sx:t,style:o,...n},s)=>{const i=se(),{sxClassName:l,sxInlineStyle:a}=re(t,i),d={listStyle:"none",margin:0,padding:0};return c.jsx("ul",{ref:s,className:R("m-0 flex list-none flex-row items-center gap-1 p-0",l,e,r),style:D(d,o,a),...n})});_l.displayName="PaginationContent";const it=u.forwardRef(({className:e,class:r,sx:t,style:o,...n},s)=>{const i=se(),{sxClassName:l,sxInlineStyle:a}=re(t,i);return c.jsx("li",{ref:s,className:R(l,e,r),style:D({listStyle:"none",margin:0},o,a),...n})});it.displayName="PaginationItem";function zk(e,r){return r?e==="filled"?"primary":"outline":"ghost"}const Co=({className:e,class:r,isActive:t,disabled:o,variant:n="outline",size:s="icon",tabIndex:i,...l})=>c.jsx(vr,{component:"a","aria-current":t?"page":void 0,"aria-disabled":o?!0:void 0,variant:zk(n,t),size:s,tabIndex:o?-1:i,className:R(o&&"pointer-events-none opacity-50",t&&n==="filled"&&"!text-white hover:!text-white",e,r),...l});Co.displayName="PaginationLink";const Ol=({className:e,children:r,...t})=>c.jsx(Co,{"aria-label":"上一页",size:"md",className:R("gap-1 pl-2.5",e),...t,children:r??c.jsxs(c.Fragment,{children:[c.jsx($e,{name:"chevron_left",size:16}),c.jsx("span",{children:"上一页"})]})});Ol.displayName="PaginationPrevious";const Ml=({className:e,children:r,...t})=>c.jsx(Co,{"aria-label":"下一页",size:"md",className:R("gap-1 pr-2.5",e),...t,children:r??c.jsxs(c.Fragment,{children:[c.jsx("span",{children:"下一页"}),c.jsx($e,{name:"chevron_right",size:16})]})});Ml.displayName="PaginationNext";const Ll=({className:e,class:r,sx:t,style:o,...n})=>{const s=se(),{sxClassName:i,sxInlineStyle:l}=re(t,s);return c.jsxs("span",{"aria-hidden":!0,className:R("flex h-8 w-8 items-center justify-center",i,e,r),style:D(o,l),...n,children:[c.jsx($e,{name:"more_horiz",size:16}),c.jsx("span",{className:"sr-only",children:"更多页码"})]})};Ll.displayName="PaginationEllipsis";function uo(e){return typeof e=="number"?`${e}px`:e}function Hk(e,r){if(r)return e[String(r)]}function Dl(e,r){return e.key!==void 0?e.key:e.dataIndex!==void 0?String(e.dataIndex):r}function lu(e,r,t){if(typeof t=="function")return t(e,r);if(t){const n=e[String(t)];if(typeof n=="string"||typeof n=="number"||typeof n=="bigint")return n}const o=e.key;return typeof o=="string"||typeof o=="number"||typeof o=="bigint"?o:r}function Uk(e){const r=e[0];return r?Object.keys(r).map(t=>({key:t,dataIndex:t,title:t})):[]}function Wk(e){return u.isValidElement(e)&&e.type===Ih}function Kk(e){const r=[],t=[];return u.Children.forEach(e,o=>{if(Wk(o)){r.push(o.props);return}t.push(o)}),{childColumns:r,restChildren:t}}function Gk(e){const{selectedRowKeys:r,defaultSelectedRowKeys:t=[]}=e,[o,n]=u.useState(t),s=r!==void 0;return{selectedKeys:s?r:o,setSelectedKeys:n,isControlled:s}}function Yk(e){const{selectionEnabled:r,size:t,allChecked:o,partiallyChecked:n,selectableKeysLength:s,onToggleCurrentPage:i,indexColumn:l,visibleColumns:a}=e;return c.jsxs(pn,{className:"border-b border-[color:var(--ldkj-color-border)]",children:[r?c.jsx(en,{className:R(ut[t],"w-12 text-center"),style:{textAlign:"center"},children:c.jsx(yo,{"aria-label":"选择当前页",checked:n?"indeterminate":o,disabled:!s,onCheckedChange:d=>i(d===!0)})}):null,l?c.jsx(en,{className:R(ut[t],"text-[color:var(--ldkj-color-muted-foreground)]"),style:{width:uo(typeof l=="object"?l.width:64),textAlign:"center"},children:typeof l=="object"?l.title??"#":"#"}):null,a.map((d,f)=>c.jsx(en,{sx:d.headerSx,className:R(ut[t],d.headerClassName),style:{width:uo(d.width),textAlign:d.headerAlign??d.align??"left"},children:d.title??String(d.dataIndex??"")},Dl(d,f)))]})}function Xk(e){const{bodyProps:r,currentRowMeta:t,selectedSet:o,rowProps:n,size:s,striped:i,hoverable:l,selectionEnabled:a,onToggleRow:d,indexColumn:f,visibleColumns:m,empty:p,tableColumnCount:v}=e,g=t.length>0;return c.jsx(_h,{...r,children:g?t.map(({record:h,index:y,absoluteIndex:b,key:x,disabled:w})=>{const P=o.has(x),C=typeof n=="function"?n(h,b):n;return c.jsxs(pn,{...C,"data-selected":P?"":void 0,className:R(i&&y%2===1&&"bg-[color:var(--ldkj-color-muted)]/70",l&&"transition-colors hover:bg-[color:var(--ldkj-color-accent)]",P&&"bg-[color:var(--ldkj-color-accent)]",C?.className),children:[a?c.jsx(ro,{className:R(ut[s],"w-12 text-center"),style:{textAlign:"center"},children:c.jsx(yo,{"aria-label":`选择第 ${b+1} 行`,checked:P,disabled:w,onCheckedChange:k=>d(x,k===!0)})}):null,f?c.jsx(ro,{className:R(ut[s],"text-[color:var(--ldkj-color-muted-foreground)]"),style:{textAlign:"center"},children:b+1}):null,m.map((k,j)=>{const S=Hk(h,k.dataIndex);return c.jsx(ro,{sx:k.sx,className:R(ut[s],k.className),style:{width:uo(k.width),textAlign:k.align??"left"},children:k.render?k.render(S,h,b):S},Dl(k,j))})]},x)}):c.jsx(pn,{children:c.jsx(ro,{className:R(ut[s],"text-center text-[color:var(--ldkj-color-muted-foreground)]"),colSpan:Math.max(v,1),style:{textAlign:"center"},children:p})})})}function Jk(e){const{pageCount:r,currentPage:t,justifyClassName:o,onPageChange:n}=e;return r<=1?null:c.jsx(Se,{className:R("flex border-t border-[color:var(--ldkj-color-border)] p-3",o),children:c.jsx(Tl,{count:r,page:t,onPageChange:n})})}function Qk(e){const{columns:r,dataSource:t=[],rowKey:o="id",size:n="md",variant:s="outlined",striped:i=!1,bordered:l=!1,hoverable:a=!0,stickyHeader:d=!1,loading:f=!1,empty:m="暂无数据",caption:p,indexColumn:v=!1,rowSelection:g,pagination:h,tableProps:y,headProps:b,bodyProps:x,rowProps:w,className:P,children:C,rounded:k="lg",...j}=e,{childColumns:S,restChildren:N}=Kk(C),q=(r??(S.length?S:Uk(t))).filter(ie=>!ie.hidden),E=h===!1?t.length||1:h?.pageSize??(t.length||1),I=h===!1?t.length:h?.total??t.length,_=Math.max(Math.ceil(I/E),1),[O,T]=u.useState(h===!1?1:h?.defaultPage??1),$=h===!1?1:h?.page??O,M=($-1)*E,W=h===!1?t:t.slice(M,M+E),F=!!g,{selectedKeys:X,setSelectedKeys:ue,isControlled:ee}=Gk({selectedRowKeys:g?.selectedRowKeys,defaultSelectedRowKeys:g?.defaultSelectedRowKeys}),Q=W.map((ie,we)=>{const Ne=M+we,Me=lu(ie,Ne,o),oe=g?.getCheckboxProps?.(ie,Ne);return{record:ie,index:we,absoluteIndex:Ne,key:Me,disabled:!!oe?.disabled}}),K=Q.filter(ie=>!ie.disabled).map(ie=>ie.key),J=new Set(X),B=K.filter(ie=>J.has(ie)).length,G=K.length>0&&B===K.length,H=B>0&&!G,U=h!==!1&&h?.position==="left"?"justify-start":h!==!1&&h?.position==="center"?"justify-center":"justify-end",Y=q.length+(F?1:0)+(v?1:0),Z=uo(typeof v=="object"?v.width:64);function ae(ie){ee||ue(ie);const we=new Set(ie);g?.onChange?.(ie,t.filter((Ne,Me)=>we.has(lu(Ne,Me,o))))}function fe(ie,we){const Ne=new Set(X);we?Ne.add(ie):Ne.delete(ie),ae(Array.from(Ne))}function ve(ie){const we=new Set(X);K.forEach(Ne=>{ie?we.add(Ne):we.delete(Ne)}),ae(Array.from(we))}function ge(ie,we){h!==!1&&h?.page===void 0&&T(we),h!==!1&&h?.onPageChange?.(we,E)}return c.jsxs(Se,{rounded:k,loading:f,className:R("table-root w-full overflow-hidden",Bk[s],P),...j,children:[c.jsx(Se,{className:"table-scroll w-full overflow-x-auto",children:c.jsxs(Se,{component:"table",...y,className:R("table w-full table-fixed border-collapse text-left",l&&"[&_td]:border-r [&_td]:border-[color:var(--ldkj-color-border)] [&_td:last-child]:border-r-0 [&_th]:border-r [&_th]:border-[color:var(--ldkj-color-border)] [&_th:last-child]:border-r-0",y?.className),style:D({borderCollapse:"collapse",display:"table",tableLayout:"fixed",width:"100%"},y?.style),children:[Y>0?c.jsxs("colgroup",{children:[F?c.jsx("col",{style:{width:48}}):null,v?c.jsx("col",{style:{width:Z}}):null,q.map((ie,we)=>c.jsx("col",{style:{width:uo(ie.width)}},Dl(ie,we)))]}):null,p?c.jsx("caption",{className:"px-4 py-3 text-left text-sm text-[color:var(--ldkj-color-muted-foreground)]",children:p}):null,c.jsx(Th,{...b,className:R(d&&"sticky top-0 z-10",b?.className),children:c.jsx(Yk,{selectionEnabled:F,size:n,allChecked:G,partiallyChecked:H,selectableKeysLength:K.length,onToggleCurrentPage:ve,indexColumn:v,visibleColumns:q})}),c.jsx(Xk,{bodyProps:x,currentRowMeta:Q,selectedSet:J,rowProps:w,size:n,striped:i,hoverable:a,selectionEnabled:F,onToggleRow:fe,indexColumn:v,visibleColumns:q,empty:m,tableColumnCount:Y})]})}),h!==!1&&_>1?c.jsx(Jk,{pageCount:_,currentPage:$,justifyClassName:U,onPageChange:ge}):null,N]})}const tt=Object.assign(Qk,{Column:Ih,Head:Th,Body:_h,Row:pn,Cell:ro,HeaderCell:en});tt.displayName="Table";tt.Column.displayName="Table.Column";tt.Head.displayName="Table.Head";tt.Body.displayName="Table.Body";tt.Row.displayName="Table.Row";tt.Cell.displayName="Table.Cell";tt.HeaderCell.displayName="Table.HeaderCell";const Zk={text:"origin-left rounded-sm",rect:"",circle:"rounded-full"};function Rr(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function ej(e,r,t){return e==="circle"?{width:Rr(r??t??40),height:Rr(t??r??40)}:e==="text"?{width:Rr(r??"100%"),height:Rr(t??"1em")}:{width:Rr(r),height:Rr(t)}}function rj(e,r,t,o){return t?.[e]!==void 0?t[e]:r>1&&e===r-1?"68%":o??"100%"}function ko(e){const{className:r,class:t,sx:o,style:n,rounded:s,width:i,height:l,inline:a=!1,animated:d=!0,variant:f="rect",role:m,...p}=e,v=se(),{roundedPreset:g,roundedStyle:h}=ht(s??(f==="circle"?"full":f==="rect"?"md":"sm")),{sxClassName:y,sxInlineStyle:b}=re(o,v),x=ej(f,i,l);return c.jsx("div",{role:m??"status","aria-live":"polite","aria-label":e["aria-label"]??"Loading",className:R("skeleton bg-[color:var(--ldkj-color-muted)]",a?"inline-block align-middle":"block",d&&"animate-pulse",Zk[f],g&&Yr[g],y,r,t),style:D(n,x,h,b),...p})}function Fl(e){const{rows:r=3,rowHeight:t="0.875rem",gap:o=8,widths:n,width:s,sx:i,style:l,className:a,class:d,rounded:f,animated:m,inline:p=!1,...v}=e,g=se(),{sxClassName:h,sxInlineStyle:y}=re(i,g),b=Math.max(1,Math.floor(r));return c.jsx("div",{className:R("skeleton-text flex-col",p?"inline-flex align-middle":"flex",h,a,d),style:D(l,{gap:Rr(o),width:Rr(s)},y),...v,children:Array.from({length:b}).map((x,w)=>c.jsx(ko,{...v,animated:m,rounded:f,variant:"text",width:rj(w,b,n,s),height:t},w))})}function Bl(e){const{size:r=40,...t}=e;return c.jsx(ko,{...t,variant:"circle",width:r,height:r})}function Oh(e){const{width:r=96,height:t=36,rounded:o="md",...n}=e;return c.jsx(ko,{...n,variant:"rect",width:r,height:t,rounded:o})}function Mh(e){const{showAvatar:r=!0,rows:t=3,width:o,animated:n=!0,rounded:s="lg",className:i,class:l,style:a,sx:d,...f}=e,m=se(),{roundedPreset:p,roundedStyle:v}=ht(s),{sxClassName:g,sxInlineStyle:h}=re(d,m);return c.jsx("div",{className:R("skeleton-card border border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-card)] p-4",p&&Yr[p],g,i,l),style:D(a,{width:Rr(o)},v,h),...f,children:c.jsxs("div",{className:"flex items-start gap-3",children:[r?c.jsx(Bl,{animated:n,size:40}):null,c.jsx("div",{className:"min-w-0 flex-1",children:c.jsx(Fl,{animated:n,rows:t,widths:["56%","100%","76%"]})})]})})}ko.displayName="Skeleton";Fl.displayName="SkeletonText";Bl.displayName="SkeletonAvatar";Oh.displayName="SkeletonButton";Mh.displayName="SkeletonCard";const Lh=u.createContext(null),Dh=u.createContext(null),vn={sm:{trigger:"min-h-10 px-3 py-2 text-sm",body:"px-3 py-3 text-sm",icon:"h-4 w-4"},md:{trigger:"min-h-12 px-4 py-3 text-sm",body:"px-4 py-4 text-sm",icon:"h-4 w-4"},lg:{trigger:"min-h-14 px-5 py-4 text-base",body:"px-5 py-5 text-sm",icon:"h-5 w-5"}},tj={outlined:"bg-[color:var(--ldkj-color-card)] text-[color:var(--ldkj-color-card-foreground)]",filled:"bg-[color:var(--ldkj-color-muted)] text-[color:var(--ldkj-color-foreground)]",plain:"bg-transparent",ghost:"bg-transparent"},oj={outlined:"bg-[color:var(--ldkj-color-card)]",filled:"bg-[color:var(--ldkj-color-muted)]",plain:"bg-transparent",ghost:"bg-transparent"},nj={outlined:"hover:bg-[color:var(--ldkj-color-accent)] hover:text-[color:var(--ldkj-color-accent-foreground)]",filled:"hover:bg-[color:var(--ldkj-color-accent)] hover:text-[color:var(--ldkj-color-accent-foreground)]",plain:"hover:bg-[color:var(--ldkj-color-accent)] hover:text-[color:var(--ldkj-color-accent-foreground)]",ghost:"hover:bg-[color:var(--ldkj-color-accent)] hover:text-[color:var(--ldkj-color-accent-foreground)]"};function to(e){return String(e)}function au(e){return e==null?[]:(Array.isArray(e)?e:[e]).map(to)}function sj(e,r){return r?e[0]??null:e}function ij(e){const{activeKey:r,defaultActiveKey:t,accordion:o,onChange:n}=e,s=r!==void 0,[i,l]=u.useState(()=>au(t)),a=s?au(r):i,d=u.useCallback(f=>{s||l(f),n?.(sj(f,o))},[o,s,n]);return[a,d]}function yt(e){const r=se();return re(e,r)}function Yn(e){const r=u.useContext(Lh);if(!r)throw new Error(`${e} must be used inside Collapse.`);return r}function Xn(e){const r=u.useContext(Dh);if(!r)throw new Error(`${e} must be used inside Collapse.Item.`);return r}function lj(...e){return r=>{e.forEach(t=>{if(t){if(typeof t=="function"){t(r);return}t.current=r}})}}function aj(e){return c.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",fill:"none",...e,children:c.jsx("path",{d:"M4 6L8 10L12 6",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}function cj(e){const{active:r,className:t}=e;return c.jsx(aj,{className:R("shrink-0 text-[color:var(--ldkj-color-muted-foreground)] transition-transform duration-200",r&&"rotate-180",t)})}function uj(e){const{className:r,class:t,sx:o,style:n,children:s,...i}=e,{sxClassName:l,sxInlineStyle:a}=yt(o);return c.jsx("div",{className:R(l,r,t),style:D(n,a),...i,children:s})}function dj(e,r){const{itemProps:t,headerProps:o,triggerProps:n,contentProps:s,bodyProps:i,lazyMount:l,destroyOnHidden:a,forceRender:d}=r;return e.map(f=>c.jsxs($l,{value:f.key,disabled:f.disabled,collapsible:f.collapsible,forceRender:f.forceRender??d,lazyMount:f.lazyMount??l,destroyOnHidden:f.destroyOnHidden??a,...t,...f.itemProps,children:[c.jsxs(Vl,{...o,...f.headerProps,children:[c.jsx(zl,{showArrow:f.showArrow,...n,...f.triggerProps,children:f.label}),f.extra?c.jsx(Ul,{children:f.extra}):null]}),c.jsx(Hl,{forceRender:f.forceRender??d,...s,...f.contentProps,children:c.jsx(uj,{...i,...f.bodyProps,children:f.children})})]},f.key))}const Fh=u.forwardRef(function(r,t){const{items:o,activeKey:n,defaultActiveKey:s,onChange:i,accordion:l=!1,multiple:a=!0,collapsible:d,disabled:f=!1,bordered:m=!0,size:p="md",variant:v="outlined",expandIcon:g,expandIconPosition:h="end",lazyMount:y=!1,destroyOnHidden:b=!1,forceRender:x=!1,itemProps:w,headerProps:P,triggerProps:C,contentProps:k,bodyProps:j,className:S,class:N,sx:A,style:q,children:E,...I}=r,{sxClassName:_,sxInlineStyle:O}=yt(A),T=u.useRef(new Map),$=!l&&a,M=d??!l,[W,F]=ij({activeKey:n,defaultActiveKey:s,accordion:l,onChange:i}),X=u.useCallback(J=>W.includes(to(J)),[W]),ue=u.useCallback((J,B)=>{if(f||B===!1)return;const G=to(J),H=W.includes(G);let U;$?U=H?W.filter(Y=>Y!==G):[...W,G]:H?U=M?[]:W:U=[G],U.join("\0")!==W.join("\0")&&F(U)},[W,$,M,f,F]),ee=u.useCallback((J,B)=>{const G=to(J);if(B){T.current.set(G,B);return}T.current.delete(G)},[]),Q=u.useCallback((J,B)=>{const G=Array.from(T.current.entries()).filter(([,Z])=>!Z.disabled);if(G.length===0)return;const H=G.findIndex(([Z])=>Z===to(J)),U=G.length-1,Y=B==="first"?0:B==="last"?U:B==="next"?H>=U?0:H+1:H<=0?U:H-1;G[Y]?.[1].focus()},[]),K=u.useMemo(()=>({activeKeys:W,accordion:l,allowMultiple:$,bordered:m,collapsible:M,disabled:f,destroyOnHidden:b,expandIcon:g,expandIconPosition:h,focusTrigger:Q,forceRender:x,isActive:X,lazyMount:y,registerTrigger:ee,size:p,toggle:ue,variant:v}),[W,l,$,m,M,f,b,g,h,Q,x,X,y,ee,p,ue,v]);return c.jsx(Lh.Provider,{value:K,children:c.jsx("div",{ref:t,className:R("w-full overflow-hidden",m&&v!=="plain"&&"rounded-md border border-[color:var(--ldkj-color-border)]",tj[v],v==="ghost"&&"space-y-2 overflow-visible",_,S,N),style:D(q,O),"data-accordion":l?"":void 0,...I,children:o?dj(o,r):E})})});Fh.displayName="Collapse";const $l=u.forwardRef(function(r,t){const{value:o,disabled:n=!1,collapsible:s,forceRender:i,lazyMount:l,destroyOnHidden:a,className:d,class:f,sx:m,style:p,children:v,...g}=r,h=Yn("Collapse.Item"),{sxClassName:y,sxInlineStyle:b}=yt(m),x=h.isActive(o),w=u.useId(),P=h.disabled||n,C=u.useMemo(()=>({active:x,collapsible:s,contentId:`${w}-content`,destroyOnHidden:a,disabled:P,forceRender:i,lazyMount:l,triggerId:`${w}-trigger`,value:o}),[x,s,a,i,P,l,w,o]);return c.jsx(Dh.Provider,{value:C,children:c.jsx("div",{ref:t,className:R("overflow-hidden",h.variant==="ghost"&&"rounded-md border border-[color:var(--ldkj-color-border)]",h.bordered&&h.variant!=="ghost"&&"border-b border-[color:var(--ldkj-color-border)] last:border-b-0",oj[h.variant],P&&"opacity-60",y,d,f),style:D(p,b),"data-state":x?"open":"closed","data-disabled":P?"":void 0,...g,children:v})})});$l.displayName="CollapseItem";const Vl=u.forwardRef(function(r,t){const{headingLevel:o,className:n,class:s,sx:i,style:l,children:a,...d}=r,f=Xn("Collapse.Header"),{sxClassName:m,sxInlineStyle:p}=yt(i),v=o?`h${o}`:"div";return c.jsx(v,{ref:t,className:R("m-0 flex min-w-0 items-stretch text-[color:var(--ldkj-color-foreground)]",m,n,s),style:D(l,p),"data-state":f.active?"open":"closed",...d,children:a})});Vl.displayName="CollapseHeader";const zl=u.forwardRef(function(r,t){const{className:o,class:n,sx:s,style:i,children:l,disabled:a,showArrow:d=!0,onClick:f,onKeyDown:m,type:p="button",...v}=r,g=Yn("Collapse.Trigger"),h=Xn("Collapse.Trigger"),{sxClassName:y,sxInlineStyle:b}=yt(s),x=g.disabled||h.disabled||a||h.collapsible===!1,w=d===!1?null:g.expandIcon?.({active:h.active,disabled:x,value:h.value})??c.jsx(cj,{active:h.active,disabled:x,value:h.value,className:vn[g.size].icon}),P=u.useCallback(C=>{g.registerTrigger(h.value,C)},[h.value,g]);return c.jsxs("button",{ref:lj(t,P),id:h.triggerId,type:p,className:R("flex min-w-0 flex-1 items-center gap-3 text-left font-medium leading-5 text-[color:var(--ldkj-color-foreground)] transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)]/40 focus-visible:ring-inset","disabled:cursor-not-allowed disabled:text-[color:var(--ldkj-color-muted-foreground)]",vn[g.size].trigger,nj[g.variant],g.expandIconPosition==="start"&&"flex-row-reverse justify-end",y,o,n),style:D(i,b),disabled:x,"aria-expanded":h.active,"aria-controls":h.contentId,"data-state":h.active?"open":"closed",onClick:C=>{f?.(C),!C.defaultPrevented&&g.toggle(h.value,h.collapsible)},onKeyDown:C=>{m?.(C),!C.defaultPrevented&&(C.key==="ArrowDown"||C.key==="ArrowRight"?(C.preventDefault(),g.focusTrigger(h.value,"next")):C.key==="ArrowUp"||C.key==="ArrowLeft"?(C.preventDefault(),g.focusTrigger(h.value,"prev")):C.key==="Home"?(C.preventDefault(),g.focusTrigger(h.value,"first")):C.key==="End"&&(C.preventDefault(),g.focusTrigger(h.value,"last")))},...v,children:[g.expandIconPosition==="start"?w:null,c.jsx("span",{className:"min-w-0 flex-1",children:l}),g.expandIconPosition==="end"?w:null]})});zl.displayName="CollapseTrigger";const Hl=u.forwardRef(function(r,t){const{className:o,class:n,sx:s,style:i,children:l,forceRender:a,...d}=r,f=Yn("Collapse.Content"),m=Xn("Collapse.Content"),{sxClassName:p,sxInlineStyle:v}=yt(s),g=m.active,[h,y]=u.useState(g),b=a??m.forceRender??f.forceRender,x=m.destroyOnHidden??f.destroyOnHidden,w=m.lazyMount??f.lazyMount;return u.useEffect(()=>{g&&y(!0)},[g]),b||g||!w&&!x||h&&!x?c.jsx("div",{ref:t,id:m.contentId,role:"region","aria-labelledby":m.triggerId,"aria-hidden":!g,className:R("grid overflow-hidden text-[color:var(--ldkj-color-muted-foreground)] transition-[grid-template-rows,opacity] duration-200 ease-out",g?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0",p,o,n),style:D(i,v),"data-state":g?"open":"closed",...d,children:c.jsx("div",{className:"min-h-0 overflow-hidden",children:c.jsx("div",{className:vn[f.size].body,children:l})})}):null});Hl.displayName="CollapseContent";const Ul=u.forwardRef(function(r,t){const{className:o,class:n,sx:s,style:i,onClick:l,children:a,...d}=r,f=Yn("Collapse.Actions"),m=Xn("Collapse.Actions"),{sxClassName:p,sxInlineStyle:v}=yt(s);return c.jsx("div",{ref:t,className:R("flex shrink-0 items-center gap-2 text-sm text-[color:var(--ldkj-color-muted-foreground)]",vn[f.size].trigger,m.disabled&&"pointer-events-none",p,o,n),style:D(i,v),onClick:g=>{g.stopPropagation(),l?.(g)},...d,children:a})});Ul.displayName="CollapseActions";const fj=Object.assign(Fh,{Actions:Ul,Content:Hl,Header:Vl,Item:$l,Trigger:zl}),cu={full:"",middle:"px-4",inset:"pl-4"},mj={full:"",middle:"py-4",inset:"pt-4"};function Bh(e){const{vertical:r=!1,variant:t="full",align:o="center",type:n="solid",color:s="text-[color:var(--ldkj-color-border)]",sx:i,children:l,className:a,style:d,...f}=e,m=se(),{sxClassName:p,sxInlineStyle:v}=re(i,m),g=D(d,v);if(r)return c.jsx("div",{role:"separator","aria-orientation":"vertical",className:R("inline-flex min-h-6 self-stretch items-stretch text-[color:var(--ldkj-color-border)]",mj[t],p,a),style:g,...f,children:c.jsx("span",{"aria-hidden":!0,className:R("border-l border-current",s),style:{borderStyle:n}})});const h=l!=null,y=o==="left"?"w-8 flex-none":"flex-1",b=o==="right"?"w-8 flex-none":"flex-1";return h?c.jsxs("div",{role:"separator","aria-orientation":"horizontal",className:R("flex w-full items-center text-[color:var(--ldkj-color-border)]",cu[t],p,a),style:g,...f,children:[c.jsx("span",{"aria-hidden":!0,className:R(y,"border-t border-current",s),style:{borderStyle:n}}),c.jsx("span",{className:"shrink-0 px-3 text-[color:var(--ldkj-color-muted-foreground)]",children:l}),c.jsx("span",{"aria-hidden":!0,className:R(b,"border-t border-current",s),style:{borderStyle:n}})]}):c.jsx("div",{role:"separator","aria-orientation":"horizontal",className:R("w-full text-[color:var(--ldkj-color-border)]",cu[t],p,a),style:g,...f,children:c.jsx("span",{"aria-hidden":!0,className:R("block w-full border-t border-current",s),style:{borderStyle:n}})})}Bh.displayName="Divider";const uu={xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6"};function hj(e){return e==="col"?"column":e==="col-reverse"?"column-reverse":e}function pj(e){return typeof e=="boolean"?e?"wrap":"nowrap":e}function du(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function vj(e){return typeof e=="number"?{gapStyle:`${e}px`}:typeof e=="string"&&e in uu?{gapClass:uu[e]}:{gapStyle:e}}function $h(e){const{direction:r="row",justify:t,items:o,flex:n,wrap:s="nowrap",gap:i="md",width:l,height:a,sx:d,className:f,style:m,...p}=e,{gapClass:v,gapStyle:g}=vj(i),h={flexDirection:hj(r),justifyContent:t,alignItems:o,flexWrap:pj(s),flex:n,gap:g,width:du(l),height:du(a)};return c.jsx(Se,{className:R("flex",v,f),style:D(m,h),sx:d,...p})}$h.displayName="Flex";function fu(e){if(e!==void 0)return typeof e=="number"?`${e*8}px`:e}function gj(e){return!e||Number.isNaN(e)||e<=0?12:e}function xj(e){return typeof e=="boolean"?e?"wrap":"nowrap":e}function bj(e){return e==="grow"?{flexBasis:0,flexGrow:1,maxWidth:"100%"}:{flexBasis:`calc(100% * ${e} / var(--ldkj-grid-columns, 12))`,maxWidth:`calc(100% * ${e} / var(--ldkj-grid-columns, 12))`,flexGrow:0}}function yj(e){return e==="auto"?{marginLeft:"auto"}:{marginLeft:`calc(100% * ${e} / var(--ldkj-grid-columns, 12))`}}function Jn(e){const{container:r=!1,size:t,offset:o,columns:n,spacing:s,rowSpacing:i,columnSpacing:l,wrap:a="wrap",direction:d="row",sx:f,className:m,style:p,...v}=e,g=gj(n),h=fu(i??s),y=fu(l??s),b={};return r?(b.display="flex",b.flexWrap=xj(a),b.flexDirection=d,b.rowGap=h,b.columnGap=y,b["--ldkj-grid-columns"]=String(g)):n!==void 0&&(b["--ldkj-grid-columns"]=String(g)),t!==void 0&&Object.assign(b,bj(t)),o!==void 0&&Object.assign(b,yj(o)),c.jsx(Se,{className:R("min-w-0",m),style:D(p,b),sx:f,...v})}Jn.displayName="Grid";function wj(e,r){return{paddingTop:e==="top"||e==="both"?"env(safe-area-inset-top, 0px)":void 0,paddingBottom:e==="bottom"||e==="both"?"env(safe-area-inset-bottom, 0px)":void 0,paddingLeft:r?"env(safe-area-inset-left, 0px)":void 0,paddingRight:r?"env(safe-area-inset-right, 0px)":void 0}}function Qn(e){const{component:r,position:t="both",horizontal:o=!1,sx:n,className:s,style:i,children:l,...a}=e,d=wj(t,o);return c.jsx(Se,{component:r,className:R("box-border",s),style:D(i,d),sx:n,...a,children:l})}function Vh(e){return c.jsx(Qn,{...e,position:"top"})}function zh(e){return c.jsx(Qn,{...e,position:"bottom"})}Qn.displayName="SafeArea";Vh.displayName="SafeAreaTop";zh.displayName="SafeAreaBottom";const mu={sm:640,md:768,lg:1024,xl:1280},hu={xs:"0.25rem",sm:"0.5rem",md:"0.75rem",lg:"1rem",xl:"1.5rem"},Hh=Symbol("ldkj-space-item"),_t=(e=>{const{className:r,class:t,style:o,sx:n,flex:s,grow:i,shrink:l,basis:a,order:d,alignSelf:f,children:m,...p}=e;return c.jsx(Se,{className:[r,t].filter(Boolean).join(" "),style:D(o,{flex:s,flexGrow:i,flexShrink:l,flexBasis:a,order:d,alignSelf:f}),sx:n,...p,children:m})});_t.displayName="SpaceItem";_t[Hh]=!0;function Uh(e){return typeof e!="object"||e===null||Array.isArray(e)?!1:Object.keys(e).some(t=>["xs","sm","md","lg","xl"].includes(t))}function Yt(e){if(e!==void 0)return Uh(e)?e.xs:e}function Xt(e,r){if(e===void 0||!Uh(e))return;const t={};return Object.keys(mu).forEach(o=>{const n=e[o];if(n===void 0)return;const s=mu[o];t[`@media (min-width: ${s}px)`]=r(n)}),Object.keys(t).length?t:void 0}function pu(e){return e==="vertical"?"column":"row"}function vu(e){return e===void 0?"wrap":typeof e=="boolean"?e?"wrap":"nowrap":e}function Vr(e){return typeof e=="number"?`${e}px`:e in hu?hu[e]:e}function gu(e){if(e===void 0){const t=Vr("md");return{rowGap:t,columnGap:t}}if(Array.isArray(e))return{rowGap:Vr(e[0]),columnGap:Vr(e[1])};if(typeof e=="object"){if("row"in e||"column"in e)return{rowGap:Vr(e.row??"md"),columnGap:Vr(e.column??"md")};if("x"in e||"y"in e)return{rowGap:Vr(e.y??"md"),columnGap:Vr(e.x??"md")}}const r=Vr(e);return{rowGap:r,columnGap:r}}function Pj(e){return!!e.type?.[Hh]}function Wh(e,r,t,o,n){if(u.isValidElement(e)&&Pj(e)){const s=[t,e.props.className,e.props.class].filter(Boolean).join(" ");return c.jsx(_t,{...e.props,className:s||void 0,style:D(o,e.props.style),sx:[n,e.props.sx],children:e.props.children},e.key??`space-item-${r}`)}return c.jsx(_t,{className:t,style:o,sx:n,children:e},u.isValidElement(e)?e.key??`space-item-${r}`:`space-item-${r}`)}function Cj(e,r,t,o,n){const s=u.Children.toArray(e),i=[];return s.forEach((l,a)=>{i.push(Wh(l,a,t,o,n)),a<s.length-1&&i.push(c.jsx(_t,{"aria-hidden":"true",children:r},`space-split-${a}`))}),i}const Wl=e=>{const{direction:r="horizontal",size:t="md",wrap:o=!0,align:n,justify:s,split:i,itemClassName:l,itemStyle:a,itemSx:d,sx:f,children:m,style:p,...v}=e,g=Yt(r)??"horizontal",h=Yt(t)??"md",y=Yt(o)??!0,b=Yt(n),x=Yt(s),w=gu(h),P={display:"flex",flexDirection:pu(g),flexWrap:vu(y),alignItems:b,justifyContent:x,rowGap:w.rowGap,columnGap:w.columnGap},C=Xt(r,E=>({flexDirection:pu(E)})),k=Xt(t,E=>gu(E)),j=Xt(o,E=>({flexWrap:vu(E)})),S=Xt(n,E=>({alignItems:E})),N=Xt(s,E=>({justifyContent:E})),A=[C,k,j,S,N,f],q=i!=null?Cj(m,i,l,a,d):u.Children.toArray(m).map((E,I)=>Wh(E,I,l,a,d));return c.jsx(Se,{style:D(p,P),sx:A,...v,children:q})};Wl.displayName="Space";Wl.Item=_t;const kj={h1:"text-3xl font-semibold leading-tight",h2:"text-2xl font-semibold leading-tight",h3:"text-xl font-semibold leading-snug",body:"text-sm leading-6 text-[color:var(--ldkj-color-foreground)]",caption:"text-xs leading-5 text-[color:var(--ldkj-color-muted-foreground)]"};function jj(e){const{component:r,className:t,class:o,sx:n,style:s,variant:i="body",...l}=e,a=r??"p",d=se(),{sxClassName:f,sxInlineStyle:m}=re(n,d);return c.jsx(a,{className:R(kj[i],f,t,o),style:D(s,m),...l})}function Sj(e){return e===void 0?{}:Array.isArray(e)?{rowSpacing:e[0],columnSpacing:e[1]}:{spacing:e}}function Kh(e){const{gutter:r=0,align:t,justify:o,wrap:n="wrap",direction:s="row",style:i,...l}=e,a=Sj(r);return c.jsx(Jn,{container:!0,wrap:n,direction:s,style:D(i,{alignItems:t,justifyContent:o}),...a,...l})}Kh.displayName="Row";function Gh(e){const{span:r,offset:t,flex:o,style:n,...s}=e;return c.jsx(Jn,{size:r,offset:t,style:D(n,{flex:o}),...s})}Gh.displayName="Col";const Yh=u.createContext({}),Xh=u.forwardRef(({separator:e,items:r,listProps:t,sx:o,style:n,className:s,class:i,children:l,...a},d)=>{const f=se(),{sxClassName:m,sxInlineStyle:p}=re(o,f),v=Array.isArray(r)&&r.length>0;return c.jsx(Yh.Provider,{value:{separator:e},children:c.jsx("nav",{ref:d,"aria-label":"breadcrumb",className:R(m,s,i),style:D(n,p),...a,children:v?c.jsx(Kl,{...t,children:r.map((g,h)=>{const{key:y,label:b,href:x,current:w,separator:P,ellipsis:C,itemProps:k,linkProps:j,pageProps:S}=g,N=h===r.length-1,A=w??N;return c.jsxs(u.Fragment,{children:[c.jsx(Gl,{...k,children:C?c.jsx(Ql,{}):A?c.jsx(Xl,{...S,children:b}):c.jsx(Yl,{href:x,...j,children:b})}),N?null:c.jsx(Jl,{children:P})]},y??h)})}):l})})});Xh.displayName="Breadcrumb";const Kl=u.forwardRef(({sx:e,style:r,className:t,class:o,...n},s)=>{const i=se(),{sxClassName:l,sxInlineStyle:a}=re(e,i),d={listStyle:"none",margin:0,padding:0};return c.jsx("ol",{ref:s,className:R("m-0 flex list-none flex-wrap items-center gap-1.5 break-words p-0 text-sm text-muted-foreground sm:gap-2.5",l,t,o),style:D(d,r,a),...n})});Kl.displayName="BreadcrumbList";const Gl=u.forwardRef(({sx:e,style:r,className:t,class:o,...n},s)=>{const i=se(),{sxClassName:l,sxInlineStyle:a}=re(e,i),d={margin:0,display:"inline-flex",alignItems:"center"};return c.jsx("li",{ref:s,className:R("inline-flex items-center gap-1.5 leading-none",l,t,o),style:D(d,r,a),...n})});Gl.displayName="BreadcrumbItem";const Yl=u.forwardRef(({component:e,sx:r,style:t,className:o,class:n,...s},i)=>{const l=e??"a",a=se(),{sxClassName:d,sxInlineStyle:f}=re(r,a);return c.jsx(l,{ref:i,className:R("inline-flex items-center leading-none transition-colors hover:text-foreground",d,o,n),style:D(t,f),...s})});Yl.displayName="BreadcrumbLink";const Xl=u.forwardRef(({sx:e,style:r,className:t,class:o,...n},s)=>{const i=se(),{sxClassName:l,sxInlineStyle:a}=re(e,i);return c.jsx("span",{ref:s,role:"link","aria-disabled":"true","aria-current":"page",className:R("inline-flex items-center font-normal leading-none text-foreground",l,t,o),style:D(r,a),...n})});Xl.displayName="BreadcrumbPage";const Jl=({children:e,sx:r,style:t,className:o,class:n,...s})=>{const i=se(),{sxClassName:l,sxInlineStyle:a}=re(r,i),{separator:d}=u.useContext(Yh),f={margin:0,display:"inline-flex",alignItems:"center"};return c.jsx("li",{role:"presentation","aria-hidden":"true",className:R("shrink-0 leading-none [&>svg]:h-3.5 [&>svg]:w-3.5",l,o,n),style:D(f,t,a),...s,children:e??d??c.jsx($e,{name:"chevron_right"})})};Jl.displayName="BreadcrumbSeparator";const Ql=({sx:e,style:r,className:t,class:o,...n})=>{const s=se(),{sxClassName:i,sxInlineStyle:l}=re(e,s);return c.jsxs("span",{role:"presentation","aria-hidden":"true",className:R("flex h-9 w-9 items-center justify-center",i,t,o),style:D(r,l),...n,children:[c.jsx($e,{name:"more_horiz",className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"More"})]})};Ql.displayName="BreadcrumbEllipsis";function Nj(e,r){if(typeof document>"u"||typeof window>"u")return;const t=document.getElementById(e);if(t){if(r.offset!==0){const o=t.getBoundingClientRect(),n=window.scrollY+o.top-r.offset;window.scrollTo({top:n,behavior:r.behavior});return}t.scrollIntoView({behavior:r.behavior,block:r.block,inline:r.inline})}}function Jh(e){const{id:r,offset:t=0,behavior:o="smooth",block:n="start",inline:s="nearest",onNavigate:i,className:l,class:a,sx:d,style:f}=e,m=se(),{sxClassName:p,sxInlineStyle:v}=re(d,m),g=R("inline-flex w-fit p-0",p,l,a),h=D(f,v),y=()=>{Nj(r,{behavior:o,block:n,inline:s,offset:t}),i?.(r)};if(e.hash===!0){const{hash:O,onClick:T,href:$,onNavigate:M,class:W,sx:F,offset:X,behavior:ue,block:ee,inline:Q,...K}=e;return c.jsx("a",{href:$??`#${r}`,className:g,style:h,onClick:J=>{J.preventDefault(),y(),T?.(J)},...K})}const{component:b,onClick:x,onKeyDown:w,hash:P,onNavigate:C,class:k,sx:j,offset:S,behavior:N,block:A,inline:q,...E}=e,I=b??"button",_=I==="button";return c.jsx(I,{className:g,style:h,type:_?"button":void 0,role:_?void 0:"button",tabIndex:_?void 0:0,onClick:O=>{y(),x?.(O)},onKeyDown:O=>{!_&&(O.key==="Enter"||O.key===" ")&&(O.preventDefault(),y()),w?.(O)},...E})}Jh.displayName="Anchor";function qj(){return u.useRef(null)}const Zl=u.createContext(null),fo=u.createContext(0),ji=u.createContext(null);function Qh(e){const r=u.useContext(Zl);if(!r)throw new Error(`${e} must be used within Menu.`);return r}function xu(e){const{value:r,defaultValue:t=[],onChange:o}=e,[n,s]=u.useState(t),i=r!==void 0,l=i?r:n,a=u.useCallback((d,f)=>{i||s(d),o?.(d,{key:f,keys:d})},[i,o]);return[l,a]}function gn(e){return typeof e=="number"?`${e}px`:e}function Ej(e){if(!e)return;const r={};return e.itemText&&(r["--menu-item-text"]=e.itemText),e.itemBackground&&(r["--menu-item-bg"]=e.itemBackground),e.itemHoverText&&(r["--menu-item-hover-text"]=e.itemHoverText),e.itemHoverBackground&&(r["--menu-item-hover-bg"]=e.itemHoverBackground),e.itemSelectedText&&(r["--menu-item-selected-text"]=e.itemSelectedText),e.itemSelectedBackground&&(r["--menu-item-selected-bg"]=e.itemSelectedBackground),e.itemSelectedHoverText&&(r["--menu-item-selected-hover-text"]=e.itemSelectedHoverText),e.itemDisabledText&&(r["--menu-item-disabled-text"]=e.itemDisabledText),Object.keys(r).length?r:void 0}function Rj(e,r){return e.key??e.href??r.join("-")}function Aj(e){return e.key==="Enter"||e.key===" "}function jo(e){const{className:r,class:t,sx:o,style:n,...s}=e,i=u.useContext(Zl),l=se(),{sxClassName:a,sxInlineStyle:d}=re(o,l),f={display:"flex",flexDirection:"column",gap:i?gn(i.itemGap):void 0,listStyle:"none",margin:0,padding:0};return c.jsx("ul",{className:R("m-0 list-none p-0",a,r,t),style:D(f,n,d),...s})}jo.displayName="Menu.List";function ea(e){const{itemKey:r,label:t,icon:o,iconProps:n,href:s,component:i,disabled:l=!1,selected:a,unselectOnClick:d,onClick:f,onSelect:m,className:p,class:v,sx:g,style:h,children:y,...b}=e,x=Qh("Menu.Item"),w=u.useContext(fo),P=a??x.selectedKeys.includes(r),C=se(),{sxClassName:k,sxInlineStyle:j}=re(g,C),S=i??(s?"a":"button"),N=S==="button",A=q=>{if(l){q.preventDefault();return}x.selectKey(r,d),m?.(r),f?.(q)};return c.jsx("li",{role:"none",style:{listStyle:"none",margin:0},children:c.jsxs(S,{className:R("flex min-h-10 w-full items-center gap-2 rounded-md px-3 py-2 text-left text-sm leading-5 text-[color:var(--menu-item-text,var(--ldkj-color-foreground))] transition-colors hover:bg-[color:var(--menu-item-hover-bg,var(--ldkj-color-accent))] hover:text-[color:var(--menu-item-hover-text,var(--ldkj-color-accent-foreground))] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)]",P&&"bg-[color:var(--menu-item-selected-bg,var(--ldkj-color-primary))] text-[color:var(--menu-item-selected-text,var(--ldkj-color-primary-foreground))] hover:bg-[color:var(--menu-item-selected-bg,var(--ldkj-color-primary))] hover:text-[color:var(--menu-item-selected-hover-text,var(--ldkj-color-primary-foreground))]",l&&"cursor-not-allowed text-[color:var(--menu-item-disabled-text,var(--ldkj-color-muted-foreground))] opacity-70 hover:bg-transparent",k,p,v),style:D({paddingLeft:`calc(0.75rem + ${w} * ${gn(x.indent)})`},h,j),href:s,type:N?"button":void 0,role:"menuitem","aria-disabled":l||void 0,"aria-current":P?"page":void 0,"data-menu-item-key":r,"data-selected":P?"":void 0,disabled:N?l:void 0,onClick:A,...b,children:[o?c.jsx($e,{name:o,size:18,className:"shrink-0",...n}):null,c.jsx("span",{className:"min-w-0 flex-1 truncate",children:t??y})]})})}ea.displayName="Menu.Item";function ra(e){const{itemKey:r,label:t,icon:o,iconProps:n,disabled:s=!1,className:i,class:l,sx:a,style:d,children:f,...m}=e,p=Qh("Menu.Sub"),v=u.useContext(fo),g=u.useContext(ji),h=p.openKeys.includes(r),y=se(),{sxClassName:b,sxInlineStyle:x}=re(a,y);return u.useEffect(()=>p.registerSub(r,g),[p,r,g]),c.jsxs("li",{className:R(b,i,l),style:D({display:"flex",flexDirection:"column",gap:gn(p.itemGap),listStyle:"none",margin:0},d,x),...m,children:[c.jsxs("button",{type:"button",className:R("flex min-h-10 w-full items-center gap-2 rounded-md px-3 py-2 text-left text-sm leading-5 text-[color:var(--menu-item-text,var(--ldkj-color-foreground))] transition-colors hover:bg-[color:var(--menu-item-hover-bg,var(--ldkj-color-accent))] hover:text-[color:var(--menu-item-hover-text,var(--ldkj-color-accent-foreground))] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)]",h&&"bg-[color:var(--ldkj-color-muted)] text-[color:var(--ldkj-color-foreground)]",s&&"cursor-not-allowed text-[color:var(--menu-item-disabled-text,var(--ldkj-color-muted-foreground))] opacity-70 hover:bg-transparent"),style:{paddingLeft:`calc(0.75rem + ${v} * ${gn(p.indent)})`},"aria-expanded":h,"aria-disabled":s||void 0,"data-menu-sub-key":r,disabled:s,onClick:()=>{s||p.toggleOpenKey(r)},onKeyDown:w=>{!s&&Aj(w)&&(w.preventDefault(),p.toggleOpenKey(r))},children:[o?c.jsx($e,{name:o,size:18,className:"shrink-0",...n}):null,c.jsx("span",{className:"min-w-0 flex-1 truncate",children:t}),c.jsx($e,{name:"unfold_more",size:18,className:R("shrink-0 transition-transform",h?"rotate-180":"rotate-90")})]}),h?c.jsx(fo.Provider,{value:v+1,children:c.jsx(ji.Provider,{value:r,children:c.jsx(jo,{role:"menu","aria-label":typeof t=="string"?t:void 0,children:f})})}):null]})}ra.displayName="Menu.Sub";function ta(e){const{label:r,className:t,class:o,sx:n,style:s,children:i,...l}=e,a=u.useContext(fo),d=se(),{sxClassName:f,sxInlineStyle:m}=re(n,d);return c.jsxs("li",{className:R("py-1",f,t,o),style:D({listStyle:"none",margin:0},s,m),...l,children:[r?c.jsx("div",{className:"px-3 py-2 text-xs font-medium uppercase text-[color:var(--ldkj-color-muted-foreground)]",style:{paddingLeft:`calc(0.75rem + ${a} * 12px)`},children:r}):null,c.jsx(jo,{role:"group",children:i})]})}ta.displayName="Menu.Group";function Si(e,r=[]){return e.map((t,o)=>{const n=[...r,o],s=Rj(t,n);return t.type==="group"?c.jsx(ta,{label:t.label,...t.groupProps,children:t.children?Si(t.children,n):null},s):t.children?.length||t.type==="sub"?c.jsx(ra,{itemKey:s,label:t.label,icon:t.icon,iconProps:t.iconProps,disabled:t.disabled,...t.subProps,children:t.children?Si(t.children,n):null},s):c.jsx(ea,{itemKey:s,label:t.label,icon:t.icon,iconProps:t.iconProps,href:t.href,disabled:t.disabled,unselectOnClick:t.unselectOnClick,...t.itemProps},s)})}function Zh(e){const{items:r,selectedKeys:t,defaultSelectedKeys:o,onSelectedKeysChange:n,openKeys:s,defaultOpenKeys:i,onOpenKeysChange:l,multiple:a=!1,accordion:d=!1,indent:f=18,itemGap:m=4,itemColors:p,menuRef:v,children:g,listProps:h,className:y,class:b,style:x,component:w,...P}=e,[C,k]=xu({value:t,defaultValue:o,onChange:n}),[j,S]=xu({value:s,defaultValue:i,onChange:l}),N=u.useRef(new Map),A=u.useCallback((O,T)=>(N.current.set(O,T),()=>{N.current.delete(O)}),[]),q=u.useCallback((O,T)=>{const $=a?C.includes(O)?C.filter(M=>M!==O):[...C,O]:C.includes(O)&&T?[]:[O];k($,O)},[a,C,k]),E=u.useCallback((O,T)=>{const $=j;let M=$;if(T){if($.includes(O))return;if(d){const W=N.current.get(O)??null;M=$.filter(F=>N.current.get(F)!==W)}M=[...M,O]}else M=$.filter(W=>W!==O);S(M,O)},[d,j,S]),I=u.useCallback(O=>{E(O,!j.includes(O))},[j,E]);u.useImperativeHandle(v,()=>({select:O=>q(O),unselect:O=>k(C.filter(T=>T!==O),O),open:O=>E(O,!0),close:O=>E(O,!1),toggleOpen:I,getSelectedKeys:()=>C,getOpenKeys:()=>j}),[j,q,C,E,k,I]);const _=u.useMemo(()=>({selectedKeys:C,openKeys:j,multiple:a,accordion:d,indent:f,itemGap:m,selectKey:q,toggleOpenKey:I,registerSub:A}),[d,f,m,a,j,A,q,C,I]);return c.jsx(Zl.Provider,{value:_,children:c.jsx(fo.Provider,{value:0,children:c.jsx(ji.Provider,{value:null,children:c.jsx(Se,{component:w??"nav",className:R("w-64 rounded-lg border border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-card)] p-1 text-[color:var(--ldkj-color-card-foreground)]",y,b),style:D(Ej(p),x),"aria-label":"Menu",...P,children:c.jsx(jo,{role:"menu",...h,children:r?Si(r):g})})})})})}Zh.displayName="Menu";const Ij=Object.assign(Zh,{Item:ea,Sub:ra,Group:ta,List:jo});var Zn="Tabs",[Tj]=br(Zn,[Fn]),ep=Fn(),[_j,oa]=Tj(Zn),rp=u.forwardRef((e,r)=>{const{__scopeTabs:t,value:o,onValueChange:n,defaultValue:s,orientation:i="horizontal",dir:l,activationMode:a="automatic",...d}=e,f=Dn(l),[m,p]=_r({prop:o,onChange:n,defaultProp:s??"",caller:Zn});return c.jsx(_j,{scope:t,baseId:vt(),value:m,onValueChange:p,orientation:i,dir:f,activationMode:a,children:c.jsx(ye.div,{dir:f,"data-orientation":i,...d,ref:r})})});rp.displayName=Zn;var tp="TabsList",op=u.forwardRef((e,r)=>{const{__scopeTabs:t,loop:o=!0,...n}=e,s=oa(tp,t),i=ep(t);return c.jsx(Yf,{asChild:!0,...i,orientation:s.orientation,dir:s.dir,loop:o,children:c.jsx(ye.div,{role:"tablist","aria-orientation":s.orientation,...n,ref:r})})});op.displayName=tp;var np="TabsTrigger",sp=u.forwardRef((e,r)=>{const{__scopeTabs:t,value:o,disabled:n=!1,...s}=e,i=oa(np,t),l=ep(t),a=ap(i.baseId,o),d=cp(i.baseId,o),f=o===i.value;return c.jsx(Xf,{asChild:!0,...l,focusable:!n,active:f,children:c.jsx(ye.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":d,"data-state":f?"active":"inactive","data-disabled":n?"":void 0,disabled:n,id:a,...s,ref:r,onMouseDown:pe(e.onMouseDown,m=>{!n&&m.button===0&&m.ctrlKey===!1?i.onValueChange(o):m.preventDefault()}),onKeyDown:pe(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&i.onValueChange(o)}),onFocus:pe(e.onFocus,()=>{const m=i.activationMode!=="manual";!f&&!n&&m&&i.onValueChange(o)})})})});sp.displayName=np;var ip="TabsContent",lp=u.forwardRef((e,r)=>{const{__scopeTabs:t,value:o,forceMount:n,children:s,...i}=e,l=oa(ip,t),a=ap(l.baseId,o),d=cp(l.baseId,o),f=o===l.value,m=u.useRef(f);return u.useEffect(()=>{const p=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(p)},[]),c.jsx(Qr,{present:n||f,children:({present:p})=>c.jsx(ye.div,{"data-state":f?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":a,hidden:!p,id:d,tabIndex:0,...i,ref:r,style:{...e.style,animationDuration:m.current?"0s":void 0},children:p&&s})})});lp.displayName=ip;function ap(e,r){return`${e}-trigger-${r}`}function cp(e,r){return`${e}-content-${r}`}var Oj=rp,up=op,dp=sp,fp=lp;function mp(e){const{items:r,listProps:t,sx:o,style:n,className:s,class:i,children:l,...a}=e,d=se(),{sxClassName:f,sxInlineStyle:m}=re(o,d),p=Array.isArray(r)&&r.length>0;return c.jsx(Oj,{className:R("w-full",f,s,i),style:D(n,m),...a,children:p?c.jsxs(c.Fragment,{children:[c.jsx(na,{...t,children:r.map(v=>c.jsx(sa,{value:v.value,disabled:v.disabled,...v.triggerProps,children:v.label},v.value))}),r.map(v=>c.jsx(ia,{value:v.value,...v.contentProps,children:v.content},v.value))]}):l})}mp.displayName="Tabs";const na=u.forwardRef(({className:e,class:r,sx:t,style:o,...n},s)=>{const i=se(),{sxClassName:l,sxInlineStyle:a}=re(t,i);return c.jsx(up,{ref:s,className:R("inline-flex min-h-10 items-center gap-1 rounded-lg bg-[color:var(--ldkj-color-muted)] p-1 text-[color:var(--ldkj-color-muted-foreground)]",l,e,r),style:D(o,a),...n})});na.displayName=up.displayName;const sa=u.forwardRef(({className:e,class:r,sx:t,style:o,...n},s)=>{const i=se(),{sxClassName:l,sxInlineStyle:a}=re(t,i);return c.jsx(dp,{ref:s,className:R("inline-flex min-h-8 items-center justify-center whitespace-nowrap rounded-md px-3 py-1.5 text-sm font-medium leading-5 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)] disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-[color:var(--ldkj-color-background)] data-[state=active]:text-[color:var(--ldkj-color-primary)] data-[state=active]:shadow-sm",l,e,r),style:D(o,a),...n})});sa.displayName=dp.displayName;const ia=u.forwardRef(({className:e,class:r,sx:t,style:o,borderless:n=!1,...s},i)=>{const l=se(),{sxClassName:a,sxInlineStyle:d}=re(t,l);return c.jsx(fp,{ref:i,className:R("mt-3 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)]",!n&&"rounded-lg border border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-card)] p-4 text-[color:var(--ldkj-color-card-foreground)]",a,e,r),style:D(o,d),...s})});ia.displayName=fp.displayName;exports.Alert=nw;exports.Anchor=Jh;exports.AutoComplete=Vf;exports.Avatar=Ph;exports.AvatarFallback=Rl;exports.AvatarImage=El;exports.Badge=lk;exports.Box=Se;exports.Breadcrumb=Xh;exports.BreadcrumbEllipsis=Ql;exports.BreadcrumbItem=Gl;exports.BreadcrumbLink=Yl;exports.BreadcrumbList=Kl;exports.BreadcrumbPage=Xl;exports.BreadcrumbSeparator=Jl;exports.Button=vr;exports.Card=Mr;exports.Cascader=fm;exports.Checkbox=yo;exports.CheckboxGroup=Lf;exports.Chip=kh;exports.Col=Gh;exports.Collapse=fj;exports.Dialog=kg;exports.DialogClose=Di;exports.DialogContent=Bi;exports.DialogDescription=Hi;exports.DialogFooter=Vi;exports.DialogHeader=$i;exports.DialogOverlay=Fi;exports.DialogPortal=ld;exports.DialogTitle=zi;exports.DialogTrigger=Li;exports.Divider=Bh;exports.Drawer=ew;exports.Empty=ck;exports.Flex=$h;exports.Form=pm;exports.FormItem=xl;exports.GhostButton=nn;exports.GhostButtonGroup=Zu;exports.Grid=Jn;exports.Icon=$e;exports.Image=jh;exports.Input=ml;exports.InputNumber=Bf;exports.InputOPT=$f;exports.Label=Mn;exports.List=ak;exports.Loading=Jy;exports.Menu=Ij;exports.MobileCascader=uh;exports.MobileSelect=ch;exports.Modal=Mi;exports.NotificationProvider=Cf;exports.Pagination=Tl;exports.PaginationContent=_l;exports.PaginationEllipsis=Ll;exports.PaginationItem=it;exports.PaginationLink=Co;exports.PaginationNext=Ml;exports.PaginationPrevious=Ol;exports.Popover=tf;exports.PopoverAnchor=my;exports.PopoverClose=of;exports.PopoverContent=ll;exports.PopoverTrigger=il;exports.Progress=jf;exports.QRCode=Lk;exports.QRCodeBase=Fk;exports.QRCodeCanvas=Rh;exports.QRCodeSizable=Ah;exports.Radio=pl;exports.RadioGroup=cm;exports.Rate=um;exports.Required=UP;exports.Row=Kh;exports.SafeArea=Qn;exports.SafeAreaBottom=zh;exports.SafeAreaTop=Vh;exports.Select=Ym;exports.SelectContent=Zm;exports.SelectGroup=Xm;exports.SelectItem=mn;exports.SelectItems=uC;exports.SelectLabel=Cl;exports.SelectScrollDownButton=Pl;exports.SelectScrollUpButton=wl;exports.SelectSeparator=kl;exports.SelectTrigger=Qm;exports.SelectValue=iC;exports.Skeleton=ko;exports.SkeletonAvatar=Bl;exports.SkeletonButton=Oh;exports.SkeletonCard=Mh;exports.SkeletonText=Fl;exports.Slider=mm;exports.Space=Wl;exports.Spin=kf;exports.Switch=sh;exports.SxProvider=cv;exports.Table=tt;exports.Tabs=mp;exports.TabsContent=ia;exports.TabsList=na;exports.TabsTrigger=sa;exports.ThemeProvider=Vu;exports.ToastProvider=od;exports.Tooltip=Ly;exports.TooltipArrow=ul;exports.TooltipContent=bf;exports.TooltipPortal=Dy;exports.TooltipProvider=My;exports.TooltipTrigger=xf;exports.Typography=jj;exports.UPLOADER_LIST_IGNORE=bl;exports.Uploader=P0;exports.UploaderProvider=gm;exports.buttonVariants=ku;exports.chipVariants=Ch;exports.createTheme=lv;exports.defaultDarkTheme=Fu;exports.defaultLightTheme=Ei;exports.getRegisteredIconNames=dg;exports.mergeSxStyle=D;exports.mergeTheme=St;exports.notification=$y;exports.registerIconLoaders=ag;exports.resetIconLoaders=ug;exports.resolveSx=re;exports.setIconLoaders=cg;exports.themeToCssVars=$u;exports.toast=wg;exports.useForm=vl;exports.useFormInstance=gl;exports.useFormValue=Vn;exports.useFormWatch=hm;exports.useInputNumberState=zw;exports.useMenuRef=qj;exports.useNotification=Gy;exports.useNumberInput=Ff;exports.useSxTheme=se;exports.useTheme=Ri;exports.useToast=yg;exports.useUploaderProvider=w0;
|
|
47
|
+
`);const E=w(j,S,A),I=e.getSymbolSize(j),_=new o(I);return v(_,j),g(_),h(_,j),b(_,S,0),j>=7&&y(_,j),x(_,E),isNaN(N)&&(N=i.getBestMask(_,b.bind(null,_,S))),i.applyMask(N,_),b(_,S,N),{modules:_,version:j,errorCorrectionLevel:S,maskPattern:N,segments:A}}return qs.create=function(j,S){if(typeof j>"u"||j==="")throw new Error("No input text");let N=r.M,A,q;return typeof S<"u"&&(N=r.from(S.errorCorrectionLevel,r.M),A=d.from(S.version),q=i.from(S.maskPattern),S.toSJISFunc&&e.setToSJISFunction(S.toSJISFunc)),C(j,A,N,q)},qs}var Ks={},Gs={},ou;function Eh(){return ou||(ou=1,(function(e){function r(t){if(typeof t=="number"&&(t=t.toString()),typeof t!="string")throw new Error("Color should be defined as hex string");let o=t.slice().replace("#","").split("");if(o.length<3||o.length===5||o.length>8)throw new Error("Invalid hex color: "+t);(o.length===3||o.length===4)&&(o=Array.prototype.concat.apply([],o.map(function(s){return[s,s]}))),o.length===6&&o.push("F","F");const n=parseInt(o.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:n&255,hex:"#"+o.slice(0,6).join("")}}e.getOptions=function(o){o||(o={}),o.color||(o.color={});const n=typeof o.margin>"u"||o.margin===null||o.margin<0?4:o.margin,s=o.width&&o.width>=21?o.width:void 0,i=o.scale||4;return{width:s,scale:s?4:i,margin:n,color:{dark:r(o.color.dark||"#000000ff"),light:r(o.color.light||"#ffffffff")},type:o.type,rendererOpts:o.rendererOpts||{}}},e.getScale=function(o,n){return n.width&&n.width>=o+n.margin*2?n.width/(o+n.margin*2):n.scale},e.getImageWidth=function(o,n){const s=e.getScale(o,n);return Math.floor((o+n.margin*2)*s)},e.qrToImageData=function(o,n,s){const i=n.modules.size,l=n.modules.data,a=e.getScale(i,s),d=Math.floor((i+s.margin*2)*a),f=s.margin*a,m=[s.color.light,s.color.dark];for(let p=0;p<d;p++)for(let v=0;v<d;v++){let g=(p*d+v)*4,h=s.color.light;if(p>=f&&v>=f&&p<d-f&&v<d-f){const y=Math.floor((p-f)/a),b=Math.floor((v-f)/a);h=m[l[y*i+b]?1:0]}o[g++]=h.r,o[g++]=h.g,o[g++]=h.b,o[g]=h.a}}})(Gs)),Gs}var nu;function Ik(){return nu||(nu=1,(function(e){const r=Eh();function t(n,s,i){n.clearRect(0,0,s.width,s.height),s.style||(s.style={}),s.height=i,s.width=i,s.style.height=i+"px",s.style.width=i+"px"}function o(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(s,i,l){let a=l,d=i;typeof a>"u"&&(!i||!i.getContext)&&(a=i,i=void 0),i||(d=o()),a=r.getOptions(a);const f=r.getImageWidth(s.modules.size,a),m=d.getContext("2d"),p=m.createImageData(f,f);return r.qrToImageData(p.data,s,a),t(m,d,f),m.putImageData(p,0,0),d},e.renderToDataURL=function(s,i,l){let a=l;typeof a>"u"&&(!i||!i.getContext)&&(a=i,i=void 0),a||(a={});const d=e.render(s,i,a),f=a.type||"image/png",m=a.rendererOpts||{};return d.toDataURL(f,m.quality)}})(Ks)),Ks}var Ys={},su;function Tk(){if(su)return Ys;su=1;const e=Eh();function r(n,s){const i=n.a/255,l=s+'="'+n.hex+'"';return i<1?l+" "+s+'-opacity="'+i.toFixed(2).slice(1)+'"':l}function t(n,s,i){let l=n+s;return typeof i<"u"&&(l+=" "+i),l}function o(n,s,i){let l="",a=0,d=!1,f=0;for(let m=0;m<n.length;m++){const p=Math.floor(m%s),v=Math.floor(m/s);!p&&!d&&(d=!0),n[m]?(f++,m>0&&p>0&&n[m-1]||(l+=d?t("M",p+i,.5+v+i):t("m",a,0),a=0,d=!1),p+1<s&&n[m+1]||(l+=t("h",f),f=0)):a++}return l}return Ys.render=function(s,i,l){const a=e.getOptions(i),d=s.modules.size,f=s.modules.data,m=d+a.margin*2,p=a.color.light.a?"<path "+r(a.color.light,"fill")+' d="M0 0h'+m+"v"+m+'H0z"/>':"",v="<path "+r(a.color.dark,"stroke")+' d="'+o(f,d,a.margin)+'"/>',g='viewBox="0 0 '+m+" "+m+'"',y='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+g+' shape-rendering="crispEdges">'+p+v+`</svg>
|
|
48
|
+
`;return typeof l=="function"&&l(null,y),y},Ys}var iu;function _k(){if(iu)return kt;iu=1;const e=hk(),r=Ak(),t=Ik(),o=Tk();function n(s,i,l,a,d){const f=[].slice.call(arguments,1),m=f.length,p=typeof f[m-1]=="function";if(!p&&!e())throw new Error("Callback required as last argument");if(p){if(m<2)throw new Error("Too few arguments provided");m===2?(d=l,l=i,i=a=void 0):m===3&&(i.getContext&&typeof d>"u"?(d=a,a=void 0):(d=a,a=l,l=i,i=void 0))}else{if(m<1)throw new Error("Too few arguments provided");return m===1?(l=i,i=a=void 0):m===2&&!i.getContext&&(a=l,l=i,i=void 0),new Promise(function(v,g){try{const h=r.create(l,a);v(s(h,i,a))}catch(h){g(h)}})}try{const v=r.create(l,a);d(null,s(v,i,a))}catch(v){d(v)}}return kt.create=r.create,kt.toCanvas=n.bind(null,t.render),kt.toDataURL=n.bind(null,t.renderToDataURL),kt.toString=n.bind(null,function(s,i,l){return o.render(s,l)}),kt}var Ok=_k();const Al=WC(Ok),Rh=({value:e,useful:r=!0,uselessElem:t,uselessProps:{style:o={},...n}={},foregroundColor:s="#000000",backgroundColor:i="#ffffff",margin:l=4,errorCorrectionLevel:a="medium",size:d=200,fullWidth:f,sx:m,className:p,style:v,...g})=>{const h=Oe.useRef(null),y=Oe.useRef(null),b=se(),{sxClassName:x,sxInlineStyle:w}=re(m,b),P=Oe.useCallback(C=>{const k=h.current;k&&Al.toCanvas(k,e,{errorCorrectionLevel:a,margin:l,width:C,color:{dark:s,light:i}},j=>{if(j&&console.error(j),!r){const S=k.getContext("2d");S&&(S.globalCompositeOperation="source-over",S.fillStyle="rgba(255, 255, 255, 0.5)",S.fillRect(0,0,k.width,k.height),S.filter="grayscale(100%) opacity(0.5)",S.drawImage(k,0,0))}})},[i,a,s,l,r,e]);return Oe.useEffect(()=>{const C=y.current;if(!C)return;const k=new ResizeObserver(()=>{const j=Math.min(C.clientWidth,C.clientHeight);P(j)});return k.observe(C),()=>k.disconnect()},[e,r,s,i,l,a,P]),c.jsxs("div",{ref:y,className:R(x,p),style:D(v,{width:f?"100%":d,height:f?"100%":d,display:"flex",aspectRatio:"1",position:"relative"},w),...g,children:[c.jsx("canvas",{ref:h}),!r&&t&&c.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",color:"white",background:"radial-gradient(circle at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0.3) 80%)",opacity:.5,...o},...n,children:t})]})},Mk=e=>e?{width:e,height:e}:{},Ah=({size:e=200,fullWidth:r,sx:t,value:o,useful:n=!0,uselessElem:s,uselessProps:{style:i={},...l}={},alt:a,style:d,className:f,foregroundColor:m,backgroundColor:p,margin:v=4,errorCorrectionLevel:g,unload:h,width:y,height:b,...x})=>{const[w,P]=Oe.useState(""),[C,k]=Oe.useState(),j=Oe.useRef(null),S=se(),{sxClassName:N,sxInlineStyle:A}=re(t,S);return Oe.useEffect(()=>{if(!r)return;const q=j.current;if(!q)return;const E=()=>{k(Math.min(q.clientWidth,q.clientHeight))};E();const I=new ResizeObserver(E);return I.observe(q),()=>I.disconnect()},[r]),Oe.useEffect(()=>{const q=r?C:y?lt.getInstance().convertToPx(y):e?lt.getInstance().convertToPx(e):void 0;Al.toDataURL(o,{color:{dark:m,light:p},width:q,margin:v,errorCorrectionLevel:g}).then(E=>P(E)).catch(E=>console.error(E))},[p,g,m,v,r,C,y,e,o]),w?c.jsxs("div",{ref:j,style:{width:r?"100%":e,height:r?"100%":e,display:"flex",aspectRatio:"1",position:"relative"},children:[c.jsx("img",{src:w,alt:a??"QR Code",className:R(N,f),style:D({filter:n?"none":"grayscale(100%) opacity(0.5)",transition:"filter 0.2s ease",position:"relative",...r?{width:"100%",height:"100%"}:Mk(e)},d,A),...!r&&{width:y,height:b},...x}),!n&&s&&c.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",color:"white",background:"radial-gradient(circle at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0.3) 80%)",opacity:.5,...i},...l,children:s})]}):c.jsx(c.Fragment,{children:h})};function Lk({canvas:e,...r}){return e?c.jsx(Rh,{...r}):c.jsx(Ah,{...r})}const Dk=e=>e?{width:e,height:e}:{},Fk=({size:e,value:r,useful:t=!0,alt:o,style:n,foregroundColor:s,backgroundColor:i,margin:l,errorCorrectionLevel:a,unload:d,...f})=>{const[m,p]=Oe.useState("");return Oe.useEffect(()=>{Al.toDataURL(r,{color:{dark:s,light:i},width:e,margin:l,errorCorrectionLevel:a}).then(v=>p(v)).catch(v=>console.error(v))},[i,a,s,l,e,r]),m?c.jsx("img",{src:m,alt:o??"QR Code",style:{filter:t?"none":"grayscale(100%) opacity(0.5)",transition:"filter 0.2s ease",...Dk(e),...n},...f}):c.jsx(c.Fragment,{children:d})},ut={sm:"px-3 py-2 text-xs",md:"px-4 py-3 text-sm",lg:"px-5 py-4 text-base"},Bk={outlined:"border border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-card)] text-[color:var(--ldkj-color-card-foreground)]",filled:"border border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-muted)] text-[color:var(--ldkj-color-foreground)]",ghost:"border border-transparent bg-transparent"};function Ih(e){return null}function Th(e){const{className:r,...t}=e;return c.jsx(Se,{component:"thead",className:R("bg-[color:var(--ldkj-color-muted)]",r),...t})}function _h(e){return c.jsx(Se,{component:"tbody",...e})}function vn(e){const{className:r,...t}=e;return c.jsx(Se,{component:"tr",className:R("border-b border-[color:var(--ldkj-color-border)] last:border-b-0",r),...t})}function rn(e){const{className:r,style:t,...o}=e;return c.jsx(Se,{component:"th",scope:"col",className:R("whitespace-nowrap font-medium text-[color:var(--ldkj-color-foreground)]",r),style:D({textAlign:"left"},t),...o})}function ro(e){const{className:r,style:t,...o}=e;return c.jsx(Se,{component:"td",className:R("text-[color:var(--ldkj-color-foreground)]",r),style:D({textAlign:"left"},t),...o})}const Xs="ellipsis";function Js(e,r){return Number.isFinite(e)?Math.min(Math.max(Math.trunc(e),1),r):1}function Qs(e,r){const t=Math.max(r-e+1,0);return Array.from({length:t},(o,n)=>e+n)}function $k(e){const{count:r,page:t,defaultPage:o=1}=e,[n,s]=u.useState(()=>Js(o,r)),i=t!==void 0,l=Js(i?t:n,r);return u.useEffect(()=>{i||s(a=>Js(a,r))},[r,i]),{page:l,setPage:s,isControlled:i}}function Vk(e){const{count:r,page:t,siblingCount:o,boundaryCount:n,showPreviousNext:s,disabled:i}=e,l=Qs(1,Math.min(n,r)),a=Qs(Math.max(r-n+1,n+1),r),d=Math.max(Math.min(t-o,r-n-o*2-1),n+2),f=Math.min(Math.max(t+o,n+o*2+2),a.length>0?a[0]-2:r-1),p=[...l,...d>n+2?[Xs]:n+1<r-n?[n+1]:[],...Qs(d,f),...f<r-n-1?[Xs]:r-n>n?[r-n]:[],...a].map(v=>v===Xs?{type:"ellipsis",page:null,selected:!1,disabled:!0}:{type:"page",page:v,selected:v===t,disabled:i});return s?[{type:"previous",page:Math.max(t-1,1),selected:!1,disabled:i||t<=1},...p,{type:"next",page:Math.min(t+1,r),selected:!1,disabled:i||t>=r}]:p}const Il=({count:e,page:r,defaultPage:t,onPageChange:o,siblingCount:n=1,boundaryCount:s=1,variant:i="filled",showPreviousNext:l=!0,disabled:a=!1,getItemHref:d,renderItem:f,contentProps:m,className:p,class:v,sx:g,style:h,children:y,...b})=>{const x=se(),{sxClassName:w,sxInlineStyle:P}=re(g,x),C=typeof e=="number"&&e>0,{page:k,setPage:j,isControlled:S}=$k({count:C?e:1,page:r,defaultPage:t}),N=C?Vk({count:e,page:k,siblingCount:Math.max(Math.trunc(n),0),boundaryCount:Math.max(Math.trunc(s),0),showPreviousNext:l,disabled:a}):[],A=(q,E,I)=>{if(I){q.preventDefault();return}q.preventDefault(),S||j(E),o?.(q,E)};return c.jsx("nav",{role:"navigation","aria-label":"分页",className:R("mx-auto flex w-full justify-center",w,p,v),style:D(h,P),...b,children:C?c.jsx(Tl,{...m,children:N.map((q,E)=>{const I=`${q.type}-${q.page??E}`,_=q.page===null?void 0:d?.(q.page,q.type)??`#page-${q.page}`,O=q.page===null?void 0:$=>A($,q.page,q.disabled),T={...q,href:_,onClick:O};return f?c.jsx(it,{children:f(T)},I):q.type==="ellipsis"?c.jsx(it,{children:c.jsx(Ml,{})},I):q.type==="previous"?c.jsx(it,{children:c.jsx(_l,{href:_,variant:i,disabled:q.disabled,onClick:O})},I):q.type==="next"?c.jsx(it,{children:c.jsx(Ol,{href:_,variant:i,disabled:q.disabled,onClick:O})},I):c.jsx(it,{children:c.jsx(Co,{href:_,variant:i,isActive:q.selected,disabled:q.disabled,onClick:O,children:q.page})},I)})}):y})};Il.displayName="Pagination";const Tl=u.forwardRef(({className:e,class:r,sx:t,style:o,...n},s)=>{const i=se(),{sxClassName:l,sxInlineStyle:a}=re(t,i),d={listStyle:"none",margin:0,padding:0};return c.jsx("ul",{ref:s,className:R("m-0 flex list-none flex-row items-center gap-1 p-0",l,e,r),style:D(d,o,a),...n})});Tl.displayName="PaginationContent";const it=u.forwardRef(({className:e,class:r,sx:t,style:o,...n},s)=>{const i=se(),{sxClassName:l,sxInlineStyle:a}=re(t,i);return c.jsx("li",{ref:s,className:R(l,e,r),style:D({listStyle:"none",margin:0},o,a),...n})});it.displayName="PaginationItem";function zk(e,r){return r?e==="filled"?"primary":"outline":"ghost"}const Co=({className:e,class:r,isActive:t,disabled:o,variant:n="outline",size:s="icon",tabIndex:i,...l})=>c.jsx(vr,{component:"a","aria-current":t?"page":void 0,"aria-disabled":o?!0:void 0,variant:zk(n,t),size:s,tabIndex:o?-1:i,className:R(o&&"pointer-events-none opacity-50",t&&n==="filled"&&"!text-white hover:!text-white",e,r),...l});Co.displayName="PaginationLink";const _l=({className:e,children:r,...t})=>c.jsx(Co,{"aria-label":"上一页",size:"md",className:R("gap-1 pl-2.5",e),...t,children:r??c.jsxs(c.Fragment,{children:[c.jsx($e,{name:"chevron_left",size:16}),c.jsx("span",{children:"上一页"})]})});_l.displayName="PaginationPrevious";const Ol=({className:e,children:r,...t})=>c.jsx(Co,{"aria-label":"下一页",size:"md",className:R("gap-1 pr-2.5",e),...t,children:r??c.jsxs(c.Fragment,{children:[c.jsx("span",{children:"下一页"}),c.jsx($e,{name:"chevron_right",size:16})]})});Ol.displayName="PaginationNext";const Ml=({className:e,class:r,sx:t,style:o,...n})=>{const s=se(),{sxClassName:i,sxInlineStyle:l}=re(t,s);return c.jsxs("span",{"aria-hidden":!0,className:R("flex h-8 w-8 items-center justify-center",i,e,r),style:D(o,l),...n,children:[c.jsx($e,{name:"more_horiz",size:16}),c.jsx("span",{className:"sr-only",children:"更多页码"})]})};Ml.displayName="PaginationEllipsis";function uo(e){return typeof e=="number"?`${e}px`:e}function Hk(e,r){if(r)return e[String(r)]}function Ll(e,r){return e.key!==void 0?e.key:e.dataIndex!==void 0?String(e.dataIndex):r}function lu(e,r,t){if(typeof t=="function")return t(e,r);if(t){const n=e[String(t)];if(typeof n=="string"||typeof n=="number"||typeof n=="bigint")return n}const o=e.key;return typeof o=="string"||typeof o=="number"||typeof o=="bigint"?o:r}function Uk(e){const r=e[0];return r?Object.keys(r).map(t=>({key:t,dataIndex:t,title:t})):[]}function Wk(e){return u.isValidElement(e)&&e.type===Ih}function Kk(e){const r=[],t=[];return u.Children.forEach(e,o=>{if(Wk(o)){r.push(o.props);return}t.push(o)}),{childColumns:r,restChildren:t}}function Gk(e){const{selectedRowKeys:r,defaultSelectedRowKeys:t=[]}=e,[o,n]=u.useState(t),s=r!==void 0;return{selectedKeys:s?r:o,setSelectedKeys:n,isControlled:s}}function Yk(e){const{selectionEnabled:r,size:t,allChecked:o,partiallyChecked:n,selectableKeysLength:s,onToggleCurrentPage:i,indexColumn:l,visibleColumns:a}=e;return c.jsxs(vn,{className:"border-b border-[color:var(--ldkj-color-border)]",children:[r?c.jsx(rn,{className:R(ut[t],"w-12 text-center"),style:{textAlign:"center"},children:c.jsx(yo,{"aria-label":"选择当前页",checked:n?"indeterminate":o,disabled:!s,onCheckedChange:d=>i(d===!0)})}):null,l?c.jsx(rn,{className:R(ut[t],"text-[color:var(--ldkj-color-muted-foreground)]"),style:{width:uo(typeof l=="object"?l.width:64),textAlign:"center"},children:typeof l=="object"?l.title??"#":"#"}):null,a.map((d,f)=>c.jsx(rn,{sx:d.headerSx,className:R(ut[t],d.headerClassName),style:{width:uo(d.width),textAlign:d.headerAlign??d.align??"left"},children:d.title??String(d.dataIndex??"")},Ll(d,f)))]})}function Xk(e){const{bodyProps:r,currentRowMeta:t,selectedSet:o,rowProps:n,size:s,striped:i,hoverable:l,selectionEnabled:a,onToggleRow:d,indexColumn:f,visibleColumns:m,empty:p,tableColumnCount:v}=e,g=t.length>0;return c.jsx(_h,{...r,children:g?t.map(({record:h,index:y,absoluteIndex:b,key:x,disabled:w})=>{const P=o.has(x),C=typeof n=="function"?n(h,b):n;return c.jsxs(vn,{...C,"data-selected":P?"":void 0,className:R(i&&y%2===1&&"bg-[color:var(--ldkj-color-muted)]/70",l&&"transition-colors hover:bg-[color:var(--ldkj-color-accent)]",P&&"bg-[color:var(--ldkj-color-accent)]",C?.className),children:[a?c.jsx(ro,{className:R(ut[s],"w-12 text-center"),style:{textAlign:"center"},children:c.jsx(yo,{"aria-label":`选择第 ${b+1} 行`,checked:P,disabled:w,onCheckedChange:k=>d(x,k===!0)})}):null,f?c.jsx(ro,{className:R(ut[s],"text-[color:var(--ldkj-color-muted-foreground)]"),style:{textAlign:"center"},children:b+1}):null,m.map((k,j)=>{const S=Hk(h,k.dataIndex);return c.jsx(ro,{sx:k.sx,className:R(ut[s],k.className),style:{width:uo(k.width),textAlign:k.align??"left"},children:k.render?k.render(S,h,b):S},Ll(k,j))})]},x)}):c.jsx(vn,{children:c.jsx(ro,{className:R(ut[s],"text-center text-[color:var(--ldkj-color-muted-foreground)]"),colSpan:Math.max(v,1),style:{textAlign:"center"},children:p})})})}function Jk(e){const{pageCount:r,currentPage:t,justifyClassName:o,onPageChange:n}=e;return r<=1?null:c.jsx(Se,{className:R("flex border-t border-[color:var(--ldkj-color-border)] p-3",o),children:c.jsx(Il,{count:r,page:t,onPageChange:n})})}function Qk(e){const{columns:r,dataSource:t=[],rowKey:o="id",size:n="md",variant:s="outlined",striped:i=!1,bordered:l=!1,hoverable:a=!0,stickyHeader:d=!1,loading:f=!1,empty:m="暂无数据",caption:p,indexColumn:v=!1,rowSelection:g,pagination:h,tableProps:y,headProps:b,bodyProps:x,rowProps:w,className:P,children:C,rounded:k="lg",...j}=e,{childColumns:S,restChildren:N}=Kk(C),q=(r??(S.length?S:Uk(t))).filter(ie=>!ie.hidden),E=h===!1?t.length||1:h?.pageSize??(t.length||1),I=h===!1?t.length:h?.total??t.length,_=Math.max(Math.ceil(I/E),1),[O,T]=u.useState(h===!1?1:h?.defaultPage??1),$=h===!1?1:h?.page??O,M=($-1)*E,U=h===!1?t:t.slice(M,M+E),F=!!g,{selectedKeys:X,setSelectedKeys:ue,isControlled:ee}=Gk({selectedRowKeys:g?.selectedRowKeys,defaultSelectedRowKeys:g?.defaultSelectedRowKeys}),Q=U.map((ie,we)=>{const Ne=M+we,Me=lu(ie,Ne,o),oe=g?.getCheckboxProps?.(ie,Ne);return{record:ie,index:we,absoluteIndex:Ne,key:Me,disabled:!!oe?.disabled}}),W=Q.filter(ie=>!ie.disabled).map(ie=>ie.key),J=new Set(X),B=W.filter(ie=>J.has(ie)).length,K=W.length>0&&B===W.length,H=B>0&&!K,G=h!==!1&&h?.position==="left"?"justify-start":h!==!1&&h?.position==="center"?"justify-center":"justify-end",Y=q.length+(F?1:0)+(v?1:0),Z=uo(typeof v=="object"?v.width:64);function ae(ie){ee||ue(ie);const we=new Set(ie);g?.onChange?.(ie,t.filter((Ne,Me)=>we.has(lu(Ne,Me,o))))}function fe(ie,we){const Ne=new Set(X);we?Ne.add(ie):Ne.delete(ie),ae(Array.from(Ne))}function ve(ie){const we=new Set(X);W.forEach(Ne=>{ie?we.add(Ne):we.delete(Ne)}),ae(Array.from(we))}function ge(ie,we){h!==!1&&h?.page===void 0&&T(we),h!==!1&&h?.onPageChange?.(we,E)}return c.jsxs(Se,{rounded:k,loading:f,className:R("table-root w-full overflow-hidden",Bk[s],P),...j,children:[c.jsx(Se,{className:"table-scroll w-full overflow-x-auto",children:c.jsxs(Se,{component:"table",...y,className:R("table w-full table-fixed border-collapse text-left",l&&"[&_td]:border-r [&_td]:border-[color:var(--ldkj-color-border)] [&_td:last-child]:border-r-0 [&_th]:border-r [&_th]:border-[color:var(--ldkj-color-border)] [&_th:last-child]:border-r-0",y?.className),style:D({borderCollapse:"collapse",display:"table",tableLayout:"fixed",width:"100%"},y?.style),children:[Y>0?c.jsxs("colgroup",{children:[F?c.jsx("col",{style:{width:48}}):null,v?c.jsx("col",{style:{width:Z}}):null,q.map((ie,we)=>c.jsx("col",{style:{width:uo(ie.width)}},Ll(ie,we)))]}):null,p?c.jsx("caption",{className:"px-4 py-3 text-left text-sm text-[color:var(--ldkj-color-muted-foreground)]",children:p}):null,c.jsx(Th,{...b,className:R(d&&"sticky top-0 z-10",b?.className),children:c.jsx(Yk,{selectionEnabled:F,size:n,allChecked:K,partiallyChecked:H,selectableKeysLength:W.length,onToggleCurrentPage:ve,indexColumn:v,visibleColumns:q})}),c.jsx(Xk,{bodyProps:x,currentRowMeta:Q,selectedSet:J,rowProps:w,size:n,striped:i,hoverable:a,selectionEnabled:F,onToggleRow:fe,indexColumn:v,visibleColumns:q,empty:m,tableColumnCount:Y})]})}),h!==!1&&_>1?c.jsx(Jk,{pageCount:_,currentPage:$,justifyClassName:G,onPageChange:ge}):null,N]})}const tt=Object.assign(Qk,{Column:Ih,Head:Th,Body:_h,Row:vn,Cell:ro,HeaderCell:rn});tt.displayName="Table";tt.Column.displayName="Table.Column";tt.Head.displayName="Table.Head";tt.Body.displayName="Table.Body";tt.Row.displayName="Table.Row";tt.Cell.displayName="Table.Cell";tt.HeaderCell.displayName="Table.HeaderCell";const Zk={text:"origin-left rounded-sm",rect:"",circle:"rounded-full"};function Rr(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function ej(e,r,t){return e==="circle"?{width:Rr(r??t??40),height:Rr(t??r??40)}:e==="text"?{width:Rr(r??"100%"),height:Rr(t??"1em")}:{width:Rr(r),height:Rr(t)}}function rj(e,r,t,o){return t?.[e]!==void 0?t[e]:r>1&&e===r-1?"68%":o??"100%"}function ko(e){const{className:r,class:t,sx:o,style:n,rounded:s,width:i,height:l,inline:a=!1,animated:d=!0,variant:f="rect",role:m,...p}=e,v=se(),{roundedPreset:g,roundedStyle:h}=ht(s??(f==="circle"?"full":f==="rect"?"md":"sm")),{sxClassName:y,sxInlineStyle:b}=re(o,v),x=ej(f,i,l);return c.jsx("div",{role:m??"status","aria-live":"polite","aria-label":e["aria-label"]??"Loading",className:R("skeleton bg-[color:var(--ldkj-color-muted)]",a?"inline-block align-middle":"block",d&&"animate-pulse",Zk[f],g&&Yr[g],y,r,t),style:D(n,x,h,b),...p})}function Dl(e){const{rows:r=3,rowHeight:t="0.875rem",gap:o=8,widths:n,width:s,sx:i,style:l,className:a,class:d,rounded:f,animated:m,inline:p=!1,...v}=e,g=se(),{sxClassName:h,sxInlineStyle:y}=re(i,g),b=Math.max(1,Math.floor(r));return c.jsx("div",{className:R("skeleton-text flex-col",p?"inline-flex align-middle":"flex",h,a,d),style:D(l,{gap:Rr(o),width:Rr(s)},y),...v,children:Array.from({length:b}).map((x,w)=>c.jsx(ko,{...v,animated:m,rounded:f,variant:"text",width:rj(w,b,n,s),height:t},w))})}function Fl(e){const{size:r=40,...t}=e;return c.jsx(ko,{...t,variant:"circle",width:r,height:r})}function Oh(e){const{width:r=96,height:t=36,rounded:o="md",...n}=e;return c.jsx(ko,{...n,variant:"rect",width:r,height:t,rounded:o})}function Mh(e){const{showAvatar:r=!0,rows:t=3,width:o,animated:n=!0,rounded:s="lg",className:i,class:l,style:a,sx:d,...f}=e,m=se(),{roundedPreset:p,roundedStyle:v}=ht(s),{sxClassName:g,sxInlineStyle:h}=re(d,m);return c.jsx("div",{className:R("skeleton-card border border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-card)] p-4",p&&Yr[p],g,i,l),style:D(a,{width:Rr(o)},v,h),...f,children:c.jsxs("div",{className:"flex items-start gap-3",children:[r?c.jsx(Fl,{animated:n,size:40}):null,c.jsx("div",{className:"min-w-0 flex-1",children:c.jsx(Dl,{animated:n,rows:t,widths:["56%","100%","76%"]})})]})})}ko.displayName="Skeleton";Dl.displayName="SkeletonText";Fl.displayName="SkeletonAvatar";Oh.displayName="SkeletonButton";Mh.displayName="SkeletonCard";const Lh=u.createContext(null),Dh=u.createContext(null),gn={sm:{trigger:"min-h-10 px-3 py-2 text-sm",body:"px-3 py-3 text-sm",icon:"h-4 w-4"},md:{trigger:"min-h-12 px-4 py-3 text-sm",body:"px-4 py-4 text-sm",icon:"h-4 w-4"},lg:{trigger:"min-h-14 px-5 py-4 text-base",body:"px-5 py-5 text-sm",icon:"h-5 w-5"}},tj={outlined:"bg-[color:var(--ldkj-color-card)] text-[color:var(--ldkj-color-card-foreground)]",filled:"bg-[color:var(--ldkj-color-muted)] text-[color:var(--ldkj-color-foreground)]",plain:"bg-transparent",ghost:"bg-transparent"},oj={outlined:"bg-[color:var(--ldkj-color-card)]",filled:"bg-[color:var(--ldkj-color-muted)]",plain:"bg-transparent",ghost:"bg-transparent"},nj={outlined:"hover:bg-[color:var(--ldkj-color-accent)] hover:text-[color:var(--ldkj-color-accent-foreground)]",filled:"hover:bg-[color:var(--ldkj-color-accent)] hover:text-[color:var(--ldkj-color-accent-foreground)]",plain:"hover:bg-[color:var(--ldkj-color-accent)] hover:text-[color:var(--ldkj-color-accent-foreground)]",ghost:"hover:bg-[color:var(--ldkj-color-accent)] hover:text-[color:var(--ldkj-color-accent-foreground)]"};function to(e){return String(e)}function au(e){return e==null?[]:(Array.isArray(e)?e:[e]).map(to)}function sj(e,r){return r?e[0]??null:e}function ij(e){const{activeKey:r,defaultActiveKey:t,accordion:o,onChange:n}=e,s=r!==void 0,[i,l]=u.useState(()=>au(t)),a=s?au(r):i,d=u.useCallback(f=>{s||l(f),n?.(sj(f,o))},[o,s,n]);return[a,d]}function yt(e){const r=se();return re(e,r)}function Xn(e){const r=u.useContext(Lh);if(!r)throw new Error(`${e} must be used inside Collapse.`);return r}function Jn(e){const r=u.useContext(Dh);if(!r)throw new Error(`${e} must be used inside Collapse.Item.`);return r}function lj(...e){return r=>{e.forEach(t=>{if(t){if(typeof t=="function"){t(r);return}t.current=r}})}}function aj(e){return c.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",fill:"none",...e,children:c.jsx("path",{d:"M4 6L8 10L12 6",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}function cj(e){const{active:r,className:t}=e;return c.jsx(aj,{className:R("shrink-0 text-[color:var(--ldkj-color-muted-foreground)] transition-transform duration-200",r&&"rotate-180",t)})}function uj(e){const{className:r,class:t,sx:o,style:n,children:s,...i}=e,{sxClassName:l,sxInlineStyle:a}=yt(o);return c.jsx("div",{className:R(l,r,t),style:D(n,a),...i,children:s})}function dj(e,r){const{itemProps:t,headerProps:o,triggerProps:n,contentProps:s,bodyProps:i,lazyMount:l,destroyOnHidden:a,forceRender:d}=r;return e.map(f=>c.jsxs(Bl,{value:f.key,disabled:f.disabled,collapsible:f.collapsible,forceRender:f.forceRender??d,lazyMount:f.lazyMount??l,destroyOnHidden:f.destroyOnHidden??a,...t,...f.itemProps,children:[c.jsxs($l,{...o,...f.headerProps,children:[c.jsx(Vl,{showArrow:f.showArrow,...n,...f.triggerProps,children:f.label}),f.extra?c.jsx(Hl,{children:f.extra}):null]}),c.jsx(zl,{forceRender:f.forceRender??d,...s,...f.contentProps,children:c.jsx(uj,{...i,...f.bodyProps,children:f.children})})]},f.key))}const Fh=u.forwardRef(function(r,t){const{items:o,activeKey:n,defaultActiveKey:s,onChange:i,accordion:l=!1,multiple:a=!0,collapsible:d,disabled:f=!1,bordered:m=!0,size:p="md",variant:v="outlined",expandIcon:g,expandIconPosition:h="end",lazyMount:y=!1,destroyOnHidden:b=!1,forceRender:x=!1,itemProps:w,headerProps:P,triggerProps:C,contentProps:k,bodyProps:j,className:S,class:N,sx:A,style:q,children:E,...I}=r,{sxClassName:_,sxInlineStyle:O}=yt(A),T=u.useRef(new Map),$=!l&&a,M=d??!l,[U,F]=ij({activeKey:n,defaultActiveKey:s,accordion:l,onChange:i}),X=u.useCallback(J=>U.includes(to(J)),[U]),ue=u.useCallback((J,B)=>{if(f||B===!1)return;const K=to(J),H=U.includes(K);let G;$?G=H?U.filter(Y=>Y!==K):[...U,K]:H?G=M?[]:U:G=[K],G.join("\0")!==U.join("\0")&&F(G)},[U,$,M,f,F]),ee=u.useCallback((J,B)=>{const K=to(J);if(B){T.current.set(K,B);return}T.current.delete(K)},[]),Q=u.useCallback((J,B)=>{const K=Array.from(T.current.entries()).filter(([,Z])=>!Z.disabled);if(K.length===0)return;const H=K.findIndex(([Z])=>Z===to(J)),G=K.length-1,Y=B==="first"?0:B==="last"?G:B==="next"?H>=G?0:H+1:H<=0?G:H-1;K[Y]?.[1].focus()},[]),W=u.useMemo(()=>({activeKeys:U,accordion:l,allowMultiple:$,bordered:m,collapsible:M,disabled:f,destroyOnHidden:b,expandIcon:g,expandIconPosition:h,focusTrigger:Q,forceRender:x,isActive:X,lazyMount:y,registerTrigger:ee,size:p,toggle:ue,variant:v}),[U,l,$,m,M,f,b,g,h,Q,x,X,y,ee,p,ue,v]);return c.jsx(Lh.Provider,{value:W,children:c.jsx("div",{ref:t,className:R("w-full overflow-hidden",m&&v!=="plain"&&"rounded-md border border-[color:var(--ldkj-color-border)]",tj[v],v==="ghost"&&"space-y-2 overflow-visible",_,S,N),style:D(q,O),"data-accordion":l?"":void 0,...I,children:o?dj(o,r):E})})});Fh.displayName="Collapse";const Bl=u.forwardRef(function(r,t){const{value:o,disabled:n=!1,collapsible:s,forceRender:i,lazyMount:l,destroyOnHidden:a,className:d,class:f,sx:m,style:p,children:v,...g}=r,h=Xn("Collapse.Item"),{sxClassName:y,sxInlineStyle:b}=yt(m),x=h.isActive(o),w=u.useId(),P=h.disabled||n,C=u.useMemo(()=>({active:x,collapsible:s,contentId:`${w}-content`,destroyOnHidden:a,disabled:P,forceRender:i,lazyMount:l,triggerId:`${w}-trigger`,value:o}),[x,s,a,i,P,l,w,o]);return c.jsx(Dh.Provider,{value:C,children:c.jsx("div",{ref:t,className:R("overflow-hidden",h.variant==="ghost"&&"rounded-md border border-[color:var(--ldkj-color-border)]",h.bordered&&h.variant!=="ghost"&&"border-b border-[color:var(--ldkj-color-border)] last:border-b-0",oj[h.variant],P&&"opacity-60",y,d,f),style:D(p,b),"data-state":x?"open":"closed","data-disabled":P?"":void 0,...g,children:v})})});Bl.displayName="CollapseItem";const $l=u.forwardRef(function(r,t){const{headingLevel:o,className:n,class:s,sx:i,style:l,children:a,...d}=r,f=Jn("Collapse.Header"),{sxClassName:m,sxInlineStyle:p}=yt(i),v=o?`h${o}`:"div";return c.jsx(v,{ref:t,className:R("m-0 flex min-w-0 items-stretch text-[color:var(--ldkj-color-foreground)]",m,n,s),style:D(l,p),"data-state":f.active?"open":"closed",...d,children:a})});$l.displayName="CollapseHeader";const Vl=u.forwardRef(function(r,t){const{className:o,class:n,sx:s,style:i,children:l,disabled:a,showArrow:d=!0,onClick:f,onKeyDown:m,type:p="button",...v}=r,g=Xn("Collapse.Trigger"),h=Jn("Collapse.Trigger"),{sxClassName:y,sxInlineStyle:b}=yt(s),x=g.disabled||h.disabled||a||h.collapsible===!1,w=d===!1?null:g.expandIcon?.({active:h.active,disabled:x,value:h.value})??c.jsx(cj,{active:h.active,disabled:x,value:h.value,className:gn[g.size].icon}),P=u.useCallback(C=>{g.registerTrigger(h.value,C)},[h.value,g]);return c.jsxs("button",{ref:lj(t,P),id:h.triggerId,type:p,className:R("flex min-w-0 flex-1 items-center gap-3 text-left font-medium leading-5 text-[color:var(--ldkj-color-foreground)] transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)]/40 focus-visible:ring-inset","disabled:cursor-not-allowed disabled:text-[color:var(--ldkj-color-muted-foreground)]",gn[g.size].trigger,nj[g.variant],g.expandIconPosition==="start"&&"flex-row-reverse justify-end",y,o,n),style:D(i,b),disabled:x,"aria-expanded":h.active,"aria-controls":h.contentId,"data-state":h.active?"open":"closed",onClick:C=>{f?.(C),!C.defaultPrevented&&g.toggle(h.value,h.collapsible)},onKeyDown:C=>{m?.(C),!C.defaultPrevented&&(C.key==="ArrowDown"||C.key==="ArrowRight"?(C.preventDefault(),g.focusTrigger(h.value,"next")):C.key==="ArrowUp"||C.key==="ArrowLeft"?(C.preventDefault(),g.focusTrigger(h.value,"prev")):C.key==="Home"?(C.preventDefault(),g.focusTrigger(h.value,"first")):C.key==="End"&&(C.preventDefault(),g.focusTrigger(h.value,"last")))},...v,children:[g.expandIconPosition==="start"?w:null,c.jsx("span",{className:"min-w-0 flex-1",children:l}),g.expandIconPosition==="end"?w:null]})});Vl.displayName="CollapseTrigger";const zl=u.forwardRef(function(r,t){const{className:o,class:n,sx:s,style:i,children:l,forceRender:a,...d}=r,f=Xn("Collapse.Content"),m=Jn("Collapse.Content"),{sxClassName:p,sxInlineStyle:v}=yt(s),g=m.active,[h,y]=u.useState(g),b=a??m.forceRender??f.forceRender,x=m.destroyOnHidden??f.destroyOnHidden,w=m.lazyMount??f.lazyMount;return u.useEffect(()=>{g&&y(!0)},[g]),b||g||!w&&!x||h&&!x?c.jsx("div",{ref:t,id:m.contentId,role:"region","aria-labelledby":m.triggerId,"aria-hidden":!g,className:R("grid overflow-hidden text-[color:var(--ldkj-color-muted-foreground)] transition-[grid-template-rows,opacity] duration-200 ease-out",g?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0",p,o,n),style:D(i,v),"data-state":g?"open":"closed",...d,children:c.jsx("div",{className:"min-h-0 overflow-hidden",children:c.jsx("div",{className:gn[f.size].body,children:l})})}):null});zl.displayName="CollapseContent";const Hl=u.forwardRef(function(r,t){const{className:o,class:n,sx:s,style:i,onClick:l,children:a,...d}=r,f=Xn("Collapse.Actions"),m=Jn("Collapse.Actions"),{sxClassName:p,sxInlineStyle:v}=yt(s);return c.jsx("div",{ref:t,className:R("flex shrink-0 items-center gap-2 text-sm text-[color:var(--ldkj-color-muted-foreground)]",gn[f.size].trigger,m.disabled&&"pointer-events-none",p,o,n),style:D(i,v),onClick:g=>{g.stopPropagation(),l?.(g)},...d,children:a})});Hl.displayName="CollapseActions";const fj=Object.assign(Fh,{Actions:Hl,Content:zl,Header:$l,Item:Bl,Trigger:Vl}),cu={full:"",middle:"px-4",inset:"pl-4"},mj={full:"",middle:"py-4",inset:"pt-4"};function Bh(e){const{vertical:r=!1,variant:t="full",align:o="center",type:n="solid",color:s="text-[color:var(--ldkj-color-border)]",sx:i,children:l,className:a,style:d,...f}=e,m=se(),{sxClassName:p,sxInlineStyle:v}=re(i,m),g=D(d,v);if(r)return c.jsx("div",{role:"separator","aria-orientation":"vertical",className:R("inline-flex min-h-6 self-stretch items-stretch text-[color:var(--ldkj-color-border)]",mj[t],p,a),style:g,...f,children:c.jsx("span",{"aria-hidden":!0,className:R("border-l border-current",s),style:{borderStyle:n}})});const h=l!=null,y=o==="left"?"w-8 flex-none":"flex-1",b=o==="right"?"w-8 flex-none":"flex-1";return h?c.jsxs("div",{role:"separator","aria-orientation":"horizontal",className:R("flex w-full items-center text-[color:var(--ldkj-color-border)]",cu[t],p,a),style:g,...f,children:[c.jsx("span",{"aria-hidden":!0,className:R(y,"border-t border-current",s),style:{borderStyle:n}}),c.jsx("span",{className:"shrink-0 px-3 text-[color:var(--ldkj-color-muted-foreground)]",children:l}),c.jsx("span",{"aria-hidden":!0,className:R(b,"border-t border-current",s),style:{borderStyle:n}})]}):c.jsx("div",{role:"separator","aria-orientation":"horizontal",className:R("w-full text-[color:var(--ldkj-color-border)]",cu[t],p,a),style:g,...f,children:c.jsx("span",{"aria-hidden":!0,className:R("block w-full border-t border-current",s),style:{borderStyle:n}})})}Bh.displayName="Divider";const uu={xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6"};function hj(e){return e==="col"?"column":e==="col-reverse"?"column-reverse":e}function pj(e){return typeof e=="boolean"?e?"wrap":"nowrap":e}function du(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function vj(e){return typeof e=="number"?{gapStyle:`${e}px`}:typeof e=="string"&&e in uu?{gapClass:uu[e]}:{gapStyle:e}}function $h(e){const{direction:r="row",justify:t,items:o,flex:n,wrap:s="nowrap",gap:i="md",width:l,height:a,sx:d,className:f,style:m,...p}=e,{gapClass:v,gapStyle:g}=vj(i),h={flexDirection:hj(r),justifyContent:t,alignItems:o,flexWrap:pj(s),flex:n,gap:g,width:du(l),height:du(a)};return c.jsx(Se,{className:R("flex",v,f),style:D(m,h),sx:d,...p})}$h.displayName="Flex";function fu(e){if(e!==void 0)return typeof e=="number"?`${e*8}px`:e}function gj(e){return!e||Number.isNaN(e)||e<=0?12:e}function xj(e){return typeof e=="boolean"?e?"wrap":"nowrap":e}function bj(e){return e==="grow"?{flexBasis:0,flexGrow:1,maxWidth:"100%"}:{flexBasis:`calc(100% * ${e} / var(--ldkj-grid-columns, 12))`,maxWidth:`calc(100% * ${e} / var(--ldkj-grid-columns, 12))`,flexGrow:0}}function yj(e){return e==="auto"?{marginLeft:"auto"}:{marginLeft:`calc(100% * ${e} / var(--ldkj-grid-columns, 12))`}}function Qn(e){const{container:r=!1,size:t,offset:o,columns:n,spacing:s,rowSpacing:i,columnSpacing:l,wrap:a="wrap",direction:d="row",sx:f,className:m,style:p,...v}=e,g=gj(n),h=fu(i??s),y=fu(l??s),b={};return r?(b.display="flex",b.flexWrap=xj(a),b.flexDirection=d,b.rowGap=h,b.columnGap=y,b["--ldkj-grid-columns"]=String(g)):n!==void 0&&(b["--ldkj-grid-columns"]=String(g)),t!==void 0&&Object.assign(b,bj(t)),o!==void 0&&Object.assign(b,yj(o)),c.jsx(Se,{className:R("min-w-0",m),style:D(p,b),sx:f,...v})}Qn.displayName="Grid";function wj(e,r){return{paddingTop:e==="top"||e==="both"?"env(safe-area-inset-top, 0px)":void 0,paddingBottom:e==="bottom"||e==="both"?"env(safe-area-inset-bottom, 0px)":void 0,paddingLeft:r?"env(safe-area-inset-left, 0px)":void 0,paddingRight:r?"env(safe-area-inset-right, 0px)":void 0}}function Zn(e){const{component:r,position:t="both",horizontal:o=!1,sx:n,className:s,style:i,children:l,...a}=e,d=wj(t,o);return c.jsx(Se,{component:r,className:R("box-border",s),style:D(i,d),sx:n,...a,children:l})}function Vh(e){return c.jsx(Zn,{...e,position:"top"})}function zh(e){return c.jsx(Zn,{...e,position:"bottom"})}Zn.displayName="SafeArea";Vh.displayName="SafeAreaTop";zh.displayName="SafeAreaBottom";const mu={sm:640,md:768,lg:1024,xl:1280},hu={xs:"0.25rem",sm:"0.5rem",md:"0.75rem",lg:"1rem",xl:"1.5rem"},Hh=Symbol("ldkj-space-item"),_t=(e=>{const{className:r,class:t,style:o,sx:n,flex:s,grow:i,shrink:l,basis:a,order:d,alignSelf:f,children:m,...p}=e;return c.jsx(Se,{className:[r,t].filter(Boolean).join(" "),style:D(o,{flex:s,flexGrow:i,flexShrink:l,flexBasis:a,order:d,alignSelf:f}),sx:n,...p,children:m})});_t.displayName="SpaceItem";_t[Hh]=!0;function Uh(e){return typeof e!="object"||e===null||Array.isArray(e)?!1:Object.keys(e).some(t=>["xs","sm","md","lg","xl"].includes(t))}function Yt(e){if(e!==void 0)return Uh(e)?e.xs:e}function Xt(e,r){if(e===void 0||!Uh(e))return;const t={};return Object.keys(mu).forEach(o=>{const n=e[o];if(n===void 0)return;const s=mu[o];t[`@media (min-width: ${s}px)`]=r(n)}),Object.keys(t).length?t:void 0}function pu(e){return e==="vertical"?"column":"row"}function vu(e){return e===void 0?"wrap":typeof e=="boolean"?e?"wrap":"nowrap":e}function Vr(e){return typeof e=="number"?`${e}px`:e in hu?hu[e]:e}function gu(e){if(e===void 0){const t=Vr("md");return{rowGap:t,columnGap:t}}if(Array.isArray(e))return{rowGap:Vr(e[0]),columnGap:Vr(e[1])};if(typeof e=="object"){if("row"in e||"column"in e)return{rowGap:Vr(e.row??"md"),columnGap:Vr(e.column??"md")};if("x"in e||"y"in e)return{rowGap:Vr(e.y??"md"),columnGap:Vr(e.x??"md")}}const r=Vr(e);return{rowGap:r,columnGap:r}}function Pj(e){return!!e.type?.[Hh]}function Wh(e,r,t,o,n){if(u.isValidElement(e)&&Pj(e)){const s=[t,e.props.className,e.props.class].filter(Boolean).join(" ");return c.jsx(_t,{...e.props,className:s||void 0,style:D(o,e.props.style),sx:[n,e.props.sx],children:e.props.children},e.key??`space-item-${r}`)}return c.jsx(_t,{className:t,style:o,sx:n,children:e},u.isValidElement(e)?e.key??`space-item-${r}`:`space-item-${r}`)}function Cj(e,r,t,o,n){const s=u.Children.toArray(e),i=[];return s.forEach((l,a)=>{i.push(Wh(l,a,t,o,n)),a<s.length-1&&i.push(c.jsx(_t,{"aria-hidden":"true",children:r},`space-split-${a}`))}),i}const Ul=e=>{const{direction:r="horizontal",size:t="md",wrap:o=!0,align:n,justify:s,split:i,itemClassName:l,itemStyle:a,itemSx:d,sx:f,children:m,style:p,...v}=e,g=Yt(r)??"horizontal",h=Yt(t)??"md",y=Yt(o)??!0,b=Yt(n),x=Yt(s),w=gu(h),P={display:"flex",flexDirection:pu(g),flexWrap:vu(y),alignItems:b,justifyContent:x,rowGap:w.rowGap,columnGap:w.columnGap},C=Xt(r,E=>({flexDirection:pu(E)})),k=Xt(t,E=>gu(E)),j=Xt(o,E=>({flexWrap:vu(E)})),S=Xt(n,E=>({alignItems:E})),N=Xt(s,E=>({justifyContent:E})),A=[C,k,j,S,N,f],q=i!=null?Cj(m,i,l,a,d):u.Children.toArray(m).map((E,I)=>Wh(E,I,l,a,d));return c.jsx(Se,{style:D(p,P),sx:A,...v,children:q})};Ul.displayName="Space";Ul.Item=_t;const kj={h1:"text-3xl font-semibold leading-tight",h2:"text-2xl font-semibold leading-tight",h3:"text-xl font-semibold leading-snug",body:"text-sm leading-6 text-[color:var(--ldkj-color-foreground)]",caption:"text-xs leading-5 text-[color:var(--ldkj-color-muted-foreground)]"};function jj(e){const{component:r,className:t,class:o,sx:n,style:s,variant:i="body",...l}=e,a=r??"p",d=se(),{sxClassName:f,sxInlineStyle:m}=re(n,d);return c.jsx(a,{className:R(kj[i],f,t,o),style:D(s,m),...l})}function Sj(e){return e===void 0?{}:Array.isArray(e)?{rowSpacing:e[0],columnSpacing:e[1]}:{spacing:e}}function Kh(e){const{gutter:r=0,align:t,justify:o,wrap:n="wrap",direction:s="row",style:i,...l}=e,a=Sj(r);return c.jsx(Qn,{container:!0,wrap:n,direction:s,style:D(i,{alignItems:t,justifyContent:o}),...a,...l})}Kh.displayName="Row";function Gh(e){const{span:r,offset:t,flex:o,style:n,...s}=e;return c.jsx(Qn,{size:r,offset:t,style:D(n,{flex:o}),...s})}Gh.displayName="Col";const Yh=u.createContext({}),Xh=u.forwardRef(({separator:e,items:r,listProps:t,sx:o,style:n,className:s,class:i,children:l,...a},d)=>{const f=se(),{sxClassName:m,sxInlineStyle:p}=re(o,f),v=Array.isArray(r)&&r.length>0;return c.jsx(Yh.Provider,{value:{separator:e},children:c.jsx("nav",{ref:d,"aria-label":"breadcrumb",className:R(m,s,i),style:D(n,p),...a,children:v?c.jsx(Wl,{...t,children:r.map((g,h)=>{const{key:y,label:b,href:x,current:w,separator:P,ellipsis:C,itemProps:k,linkProps:j,pageProps:S}=g,N=h===r.length-1,A=w??N;return c.jsxs(u.Fragment,{children:[c.jsx(Kl,{...k,children:C?c.jsx(Jl,{}):A?c.jsx(Yl,{...S,children:b}):c.jsx(Gl,{href:x,...j,children:b})}),N?null:c.jsx(Xl,{children:P})]},y??h)})}):l})})});Xh.displayName="Breadcrumb";const Wl=u.forwardRef(({sx:e,style:r,className:t,class:o,...n},s)=>{const i=se(),{sxClassName:l,sxInlineStyle:a}=re(e,i),d={listStyle:"none",margin:0,padding:0};return c.jsx("ol",{ref:s,className:R("m-0 flex list-none flex-wrap items-center gap-1.5 break-words p-0 text-sm text-muted-foreground sm:gap-2.5",l,t,o),style:D(d,r,a),...n})});Wl.displayName="BreadcrumbList";const Kl=u.forwardRef(({sx:e,style:r,className:t,class:o,...n},s)=>{const i=se(),{sxClassName:l,sxInlineStyle:a}=re(e,i),d={margin:0,display:"inline-flex",alignItems:"center"};return c.jsx("li",{ref:s,className:R("inline-flex items-center gap-1.5 leading-none",l,t,o),style:D(d,r,a),...n})});Kl.displayName="BreadcrumbItem";const Gl=u.forwardRef(({component:e,sx:r,style:t,className:o,class:n,...s},i)=>{const l=e??"a",a=se(),{sxClassName:d,sxInlineStyle:f}=re(r,a);return c.jsx(l,{ref:i,className:R("inline-flex items-center leading-none transition-colors hover:text-foreground",d,o,n),style:D(t,f),...s})});Gl.displayName="BreadcrumbLink";const Yl=u.forwardRef(({sx:e,style:r,className:t,class:o,...n},s)=>{const i=se(),{sxClassName:l,sxInlineStyle:a}=re(e,i);return c.jsx("span",{ref:s,role:"link","aria-disabled":"true","aria-current":"page",className:R("inline-flex items-center font-normal leading-none text-foreground",l,t,o),style:D(r,a),...n})});Yl.displayName="BreadcrumbPage";const Xl=({children:e,sx:r,style:t,className:o,class:n,...s})=>{const i=se(),{sxClassName:l,sxInlineStyle:a}=re(r,i),{separator:d}=u.useContext(Yh),f={margin:0,display:"inline-flex",alignItems:"center"};return c.jsx("li",{role:"presentation","aria-hidden":"true",className:R("shrink-0 leading-none [&>svg]:h-3.5 [&>svg]:w-3.5",l,o,n),style:D(f,t,a),...s,children:e??d??c.jsx($e,{name:"chevron_right"})})};Xl.displayName="BreadcrumbSeparator";const Jl=({sx:e,style:r,className:t,class:o,...n})=>{const s=se(),{sxClassName:i,sxInlineStyle:l}=re(e,s);return c.jsxs("span",{role:"presentation","aria-hidden":"true",className:R("flex h-9 w-9 items-center justify-center",i,t,o),style:D(r,l),...n,children:[c.jsx($e,{name:"more_horiz",className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"More"})]})};Jl.displayName="BreadcrumbEllipsis";function Nj(e,r){if(typeof document>"u"||typeof window>"u")return;const t=document.getElementById(e);if(t){if(r.offset!==0){const o=t.getBoundingClientRect(),n=window.scrollY+o.top-r.offset;window.scrollTo({top:n,behavior:r.behavior});return}t.scrollIntoView({behavior:r.behavior,block:r.block,inline:r.inline})}}function Jh(e){const{id:r,offset:t=0,behavior:o="smooth",block:n="start",inline:s="nearest",onNavigate:i,className:l,class:a,sx:d,style:f}=e,m=se(),{sxClassName:p,sxInlineStyle:v}=re(d,m),g=R("inline-flex w-fit p-0",p,l,a),h=D(f,v),y=()=>{Nj(r,{behavior:o,block:n,inline:s,offset:t}),i?.(r)};if(e.hash===!0){const{hash:O,onClick:T,href:$,onNavigate:M,class:U,sx:F,offset:X,behavior:ue,block:ee,inline:Q,...W}=e;return c.jsx("a",{href:$??`#${r}`,className:g,style:h,onClick:J=>{J.preventDefault(),y(),T?.(J)},...W})}const{component:b,onClick:x,onKeyDown:w,hash:P,onNavigate:C,class:k,sx:j,offset:S,behavior:N,block:A,inline:q,...E}=e,I=b??"button",_=I==="button";return c.jsx(I,{className:g,style:h,type:_?"button":void 0,role:_?void 0:"button",tabIndex:_?void 0:0,onClick:O=>{y(),x?.(O)},onKeyDown:O=>{!_&&(O.key==="Enter"||O.key===" ")&&(O.preventDefault(),y()),w?.(O)},...E})}Jh.displayName="Anchor";function qj(){return u.useRef(null)}const Ql=u.createContext(null),fo=u.createContext(0),ki=u.createContext(null);function Qh(e){const r=u.useContext(Ql);if(!r)throw new Error(`${e} must be used within Menu.`);return r}function xu(e){const{value:r,defaultValue:t=[],onChange:o}=e,[n,s]=u.useState(t),i=r!==void 0,l=i?r:n,a=u.useCallback((d,f)=>{i||s(d),o?.(d,{key:f,keys:d})},[i,o]);return[l,a]}function xn(e){return typeof e=="number"?`${e}px`:e}function Ej(e){if(!e)return;const r={};return e.itemText&&(r["--menu-item-text"]=e.itemText),e.itemBackground&&(r["--menu-item-bg"]=e.itemBackground),e.itemHoverText&&(r["--menu-item-hover-text"]=e.itemHoverText),e.itemHoverBackground&&(r["--menu-item-hover-bg"]=e.itemHoverBackground),e.itemSelectedText&&(r["--menu-item-selected-text"]=e.itemSelectedText),e.itemSelectedBackground&&(r["--menu-item-selected-bg"]=e.itemSelectedBackground),e.itemSelectedHoverText&&(r["--menu-item-selected-hover-text"]=e.itemSelectedHoverText),e.itemDisabledText&&(r["--menu-item-disabled-text"]=e.itemDisabledText),Object.keys(r).length?r:void 0}function Rj(e,r){return e.key??e.href??r.join("-")}function Aj(e){return e.key==="Enter"||e.key===" "}function jo(e){const{className:r,class:t,sx:o,style:n,...s}=e,i=u.useContext(Ql),l=se(),{sxClassName:a,sxInlineStyle:d}=re(o,l),f={display:"flex",flexDirection:"column",gap:i?xn(i.itemGap):void 0,listStyle:"none",margin:0,padding:0};return c.jsx("ul",{className:R("m-0 list-none p-0",a,r,t),style:D(f,n,d),...s})}jo.displayName="Menu.List";function Zl(e){const{itemKey:r,label:t,icon:o,iconProps:n,href:s,component:i,disabled:l=!1,selected:a,unselectOnClick:d,onClick:f,onSelect:m,className:p,class:v,sx:g,style:h,children:y,...b}=e,x=Qh("Menu.Item"),w=u.useContext(fo),P=a??x.selectedKeys.includes(r),C=se(),{sxClassName:k,sxInlineStyle:j}=re(g,C),S=i??(s?"a":"button"),N=S==="button",A=q=>{if(l){q.preventDefault();return}x.selectKey(r,d),m?.(r),f?.(q)};return c.jsx("li",{role:"none",style:{listStyle:"none",margin:0},children:c.jsxs(S,{className:R("flex min-h-10 w-full items-center gap-2 rounded-md px-3 py-2 text-left text-sm leading-5 text-[color:var(--menu-item-text,var(--ldkj-color-foreground))] transition-colors hover:bg-[color:var(--menu-item-hover-bg,var(--ldkj-color-accent))] hover:text-[color:var(--menu-item-hover-text,var(--ldkj-color-accent-foreground))] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)]",P&&"bg-[color:var(--menu-item-selected-bg,var(--ldkj-color-primary))] text-[color:var(--menu-item-selected-text,var(--ldkj-color-primary-foreground))] hover:bg-[color:var(--menu-item-selected-bg,var(--ldkj-color-primary))] hover:text-[color:var(--menu-item-selected-hover-text,var(--ldkj-color-primary-foreground))]",l&&"cursor-not-allowed text-[color:var(--menu-item-disabled-text,var(--ldkj-color-muted-foreground))] opacity-70 hover:bg-transparent",k,p,v),style:D({paddingLeft:`calc(0.75rem + ${w} * ${xn(x.indent)})`},h,j),href:s,type:N?"button":void 0,role:"menuitem","aria-disabled":l||void 0,"aria-current":P?"page":void 0,"data-menu-item-key":r,"data-selected":P?"":void 0,disabled:N?l:void 0,onClick:A,...b,children:[o?c.jsx($e,{name:o,size:18,className:"shrink-0",...n}):null,c.jsx("span",{className:"min-w-0 flex-1 truncate",children:t??y})]})})}Zl.displayName="Menu.Item";function ea(e){const{itemKey:r,label:t,icon:o,iconProps:n,disabled:s=!1,className:i,class:l,sx:a,style:d,children:f,...m}=e,p=Qh("Menu.Sub"),v=u.useContext(fo),g=u.useContext(ki),h=p.openKeys.includes(r),y=se(),{sxClassName:b,sxInlineStyle:x}=re(a,y);return u.useEffect(()=>p.registerSub(r,g),[p,r,g]),c.jsxs("li",{className:R(b,i,l),style:D({display:"flex",flexDirection:"column",gap:xn(p.itemGap),listStyle:"none",margin:0},d,x),...m,children:[c.jsxs("button",{type:"button",className:R("flex min-h-10 w-full items-center gap-2 rounded-md px-3 py-2 text-left text-sm leading-5 text-[color:var(--menu-item-text,var(--ldkj-color-foreground))] transition-colors hover:bg-[color:var(--menu-item-hover-bg,var(--ldkj-color-accent))] hover:text-[color:var(--menu-item-hover-text,var(--ldkj-color-accent-foreground))] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)]",h&&"bg-[color:var(--ldkj-color-muted)] text-[color:var(--ldkj-color-foreground)]",s&&"cursor-not-allowed text-[color:var(--menu-item-disabled-text,var(--ldkj-color-muted-foreground))] opacity-70 hover:bg-transparent"),style:{paddingLeft:`calc(0.75rem + ${v} * ${xn(p.indent)})`},"aria-expanded":h,"aria-disabled":s||void 0,"data-menu-sub-key":r,disabled:s,onClick:()=>{s||p.toggleOpenKey(r)},onKeyDown:w=>{!s&&Aj(w)&&(w.preventDefault(),p.toggleOpenKey(r))},children:[o?c.jsx($e,{name:o,size:18,className:"shrink-0",...n}):null,c.jsx("span",{className:"min-w-0 flex-1 truncate",children:t}),c.jsx($e,{name:"unfold_more",size:18,className:R("shrink-0 transition-transform",h?"rotate-180":"rotate-90")})]}),h?c.jsx(fo.Provider,{value:v+1,children:c.jsx(ki.Provider,{value:r,children:c.jsx(jo,{role:"menu","aria-label":typeof t=="string"?t:void 0,children:f})})}):null]})}ea.displayName="Menu.Sub";function ra(e){const{label:r,className:t,class:o,sx:n,style:s,children:i,...l}=e,a=u.useContext(fo),d=se(),{sxClassName:f,sxInlineStyle:m}=re(n,d);return c.jsxs("li",{className:R("py-1",f,t,o),style:D({listStyle:"none",margin:0},s,m),...l,children:[r?c.jsx("div",{className:"px-3 py-2 text-xs font-medium uppercase text-[color:var(--ldkj-color-muted-foreground)]",style:{paddingLeft:`calc(0.75rem + ${a} * 12px)`},children:r}):null,c.jsx(jo,{role:"group",children:i})]})}ra.displayName="Menu.Group";function ji(e,r=[]){return e.map((t,o)=>{const n=[...r,o],s=Rj(t,n);return t.type==="group"?c.jsx(ra,{label:t.label,...t.groupProps,children:t.children?ji(t.children,n):null},s):t.children?.length||t.type==="sub"?c.jsx(ea,{itemKey:s,label:t.label,icon:t.icon,iconProps:t.iconProps,disabled:t.disabled,...t.subProps,children:t.children?ji(t.children,n):null},s):c.jsx(Zl,{itemKey:s,label:t.label,icon:t.icon,iconProps:t.iconProps,href:t.href,disabled:t.disabled,unselectOnClick:t.unselectOnClick,...t.itemProps},s)})}function Zh(e){const{items:r,selectedKeys:t,defaultSelectedKeys:o,onSelectedKeysChange:n,openKeys:s,defaultOpenKeys:i,onOpenKeysChange:l,multiple:a=!1,accordion:d=!1,indent:f=18,itemGap:m=4,itemColors:p,menuRef:v,children:g,listProps:h,className:y,class:b,style:x,component:w,...P}=e,[C,k]=xu({value:t,defaultValue:o,onChange:n}),[j,S]=xu({value:s,defaultValue:i,onChange:l}),N=u.useRef(new Map),A=u.useCallback((O,T)=>(N.current.set(O,T),()=>{N.current.delete(O)}),[]),q=u.useCallback((O,T)=>{const $=a?C.includes(O)?C.filter(M=>M!==O):[...C,O]:C.includes(O)&&T?[]:[O];k($,O)},[a,C,k]),E=u.useCallback((O,T)=>{const $=j;let M=$;if(T){if($.includes(O))return;if(d){const U=N.current.get(O)??null;M=$.filter(F=>N.current.get(F)!==U)}M=[...M,O]}else M=$.filter(U=>U!==O);S(M,O)},[d,j,S]),I=u.useCallback(O=>{E(O,!j.includes(O))},[j,E]);u.useImperativeHandle(v,()=>({select:O=>q(O),unselect:O=>k(C.filter(T=>T!==O),O),open:O=>E(O,!0),close:O=>E(O,!1),toggleOpen:I,getSelectedKeys:()=>C,getOpenKeys:()=>j}),[j,q,C,E,k,I]);const _=u.useMemo(()=>({selectedKeys:C,openKeys:j,multiple:a,accordion:d,indent:f,itemGap:m,selectKey:q,toggleOpenKey:I,registerSub:A}),[d,f,m,a,j,A,q,C,I]);return c.jsx(Ql.Provider,{value:_,children:c.jsx(fo.Provider,{value:0,children:c.jsx(ki.Provider,{value:null,children:c.jsx(Se,{component:w??"nav",className:R("w-64 rounded-lg border border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-card)] p-1 text-[color:var(--ldkj-color-card-foreground)]",y,b),style:D(Ej(p),x),"aria-label":"Menu",...P,children:c.jsx(jo,{role:"menu",...h,children:r?ji(r):g})})})})})}Zh.displayName="Menu";const Ij=Object.assign(Zh,{Item:Zl,Sub:ea,Group:ra,List:jo});var es="Tabs",[Tj]=br(es,[Bn]),ep=Bn(),[_j,ta]=Tj(es),rp=u.forwardRef((e,r)=>{const{__scopeTabs:t,value:o,onValueChange:n,defaultValue:s,orientation:i="horizontal",dir:l,activationMode:a="automatic",...d}=e,f=Fn(l),[m,p]=_r({prop:o,onChange:n,defaultProp:s??"",caller:es});return c.jsx(_j,{scope:t,baseId:vt(),value:m,onValueChange:p,orientation:i,dir:f,activationMode:a,children:c.jsx(ye.div,{dir:f,"data-orientation":i,...d,ref:r})})});rp.displayName=es;var tp="TabsList",op=u.forwardRef((e,r)=>{const{__scopeTabs:t,loop:o=!0,...n}=e,s=ta(tp,t),i=ep(t);return c.jsx(Yf,{asChild:!0,...i,orientation:s.orientation,dir:s.dir,loop:o,children:c.jsx(ye.div,{role:"tablist","aria-orientation":s.orientation,...n,ref:r})})});op.displayName=tp;var np="TabsTrigger",sp=u.forwardRef((e,r)=>{const{__scopeTabs:t,value:o,disabled:n=!1,...s}=e,i=ta(np,t),l=ep(t),a=ap(i.baseId,o),d=cp(i.baseId,o),f=o===i.value;return c.jsx(Xf,{asChild:!0,...l,focusable:!n,active:f,children:c.jsx(ye.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":d,"data-state":f?"active":"inactive","data-disabled":n?"":void 0,disabled:n,id:a,...s,ref:r,onMouseDown:pe(e.onMouseDown,m=>{!n&&m.button===0&&m.ctrlKey===!1?i.onValueChange(o):m.preventDefault()}),onKeyDown:pe(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&i.onValueChange(o)}),onFocus:pe(e.onFocus,()=>{const m=i.activationMode!=="manual";!f&&!n&&m&&i.onValueChange(o)})})})});sp.displayName=np;var ip="TabsContent",lp=u.forwardRef((e,r)=>{const{__scopeTabs:t,value:o,forceMount:n,children:s,...i}=e,l=ta(ip,t),a=ap(l.baseId,o),d=cp(l.baseId,o),f=o===l.value,m=u.useRef(f);return u.useEffect(()=>{const p=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(p)},[]),c.jsx(Qr,{present:n||f,children:({present:p})=>c.jsx(ye.div,{"data-state":f?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":a,hidden:!p,id:d,tabIndex:0,...i,ref:r,style:{...e.style,animationDuration:m.current?"0s":void 0},children:p&&s})})});lp.displayName=ip;function ap(e,r){return`${e}-trigger-${r}`}function cp(e,r){return`${e}-content-${r}`}var Oj=rp,up=op,dp=sp,fp=lp;function mp(e){const{items:r,listProps:t,sx:o,style:n,className:s,class:i,children:l,...a}=e,d=se(),{sxClassName:f,sxInlineStyle:m}=re(o,d),p=Array.isArray(r)&&r.length>0;return c.jsx(Oj,{className:R("w-full",f,s,i),style:D(n,m),...a,children:p?c.jsxs(c.Fragment,{children:[c.jsx(oa,{...t,children:r.map(v=>c.jsx(na,{value:v.value,disabled:v.disabled,...v.triggerProps,children:v.label},v.value))}),r.map(v=>c.jsx(sa,{value:v.value,...v.contentProps,children:v.content},v.value))]}):l})}mp.displayName="Tabs";const oa=u.forwardRef(({className:e,class:r,sx:t,style:o,...n},s)=>{const i=se(),{sxClassName:l,sxInlineStyle:a}=re(t,i);return c.jsx(up,{ref:s,className:R("inline-flex min-h-10 items-center gap-1 rounded-lg bg-[color:var(--ldkj-color-muted)] p-1 text-[color:var(--ldkj-color-muted-foreground)]",l,e,r),style:D(o,a),...n})});oa.displayName=up.displayName;const na=u.forwardRef(({className:e,class:r,sx:t,style:o,...n},s)=>{const i=se(),{sxClassName:l,sxInlineStyle:a}=re(t,i);return c.jsx(dp,{ref:s,className:R("inline-flex min-h-8 items-center justify-center whitespace-nowrap rounded-md px-3 py-1.5 text-sm font-medium leading-5 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)] disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-[color:var(--ldkj-color-background)] data-[state=active]:text-[color:var(--ldkj-color-primary)] data-[state=active]:shadow-sm",l,e,r),style:D(o,a),...n})});na.displayName=dp.displayName;const sa=u.forwardRef(({className:e,class:r,sx:t,style:o,borderless:n=!1,...s},i)=>{const l=se(),{sxClassName:a,sxInlineStyle:d}=re(t,l);return c.jsx(fp,{ref:i,className:R("mt-3 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ldkj-color-ring)]",!n&&"rounded-lg border border-[color:var(--ldkj-color-border)] bg-[color:var(--ldkj-color-card)] p-4 text-[color:var(--ldkj-color-card-foreground)]",a,e,r),style:D(o,d),...s})});sa.displayName=fp.displayName;exports.Alert=nw;exports.Anchor=Jh;exports.AutoComplete=Vf;exports.Avatar=Ph;exports.AvatarFallback=El;exports.AvatarImage=ql;exports.Badge=lk;exports.Box=Se;exports.Breadcrumb=Xh;exports.BreadcrumbEllipsis=Jl;exports.BreadcrumbItem=Kl;exports.BreadcrumbLink=Gl;exports.BreadcrumbList=Wl;exports.BreadcrumbPage=Yl;exports.BreadcrumbSeparator=Xl;exports.Button=vr;exports.Card=Mr;exports.Cascader=fm;exports.Checkbox=yo;exports.CheckboxGroup=Lf;exports.Chip=kh;exports.Col=Gh;exports.Collapse=fj;exports.Dialog=kg;exports.DialogClose=Li;exports.DialogContent=Fi;exports.DialogDescription=zi;exports.DialogFooter=$i;exports.DialogHeader=Bi;exports.DialogOverlay=Di;exports.DialogPortal=ld;exports.DialogTitle=Vi;exports.DialogTrigger=Mi;exports.Divider=Bh;exports.Drawer=ew;exports.Empty=ck;exports.Flex=$h;exports.Form=pm;exports.FormItem=gl;exports.GhostButton=sn;exports.GhostButtonGroup=Zu;exports.Grid=Qn;exports.Icon=$e;exports.Image=jh;exports.Input=fl;exports.InputNumber=Bf;exports.InputOPT=$f;exports.Label=Ln;exports.List=ak;exports.Loading=Jy;exports.Menu=Ij;exports.MobileCascader=uh;exports.MobileSelect=ch;exports.Modal=Oi;exports.NotificationProvider=Cf;exports.Pagination=Il;exports.PaginationContent=Tl;exports.PaginationEllipsis=Ml;exports.PaginationItem=it;exports.PaginationLink=Co;exports.PaginationNext=Ol;exports.PaginationPrevious=_l;exports.Popover=tf;exports.PopoverAnchor=my;exports.PopoverClose=of;exports.PopoverContent=il;exports.PopoverTrigger=sl;exports.Progress=jf;exports.QRCode=Lk;exports.QRCodeBase=Fk;exports.QRCodeCanvas=Rh;exports.QRCodeSizable=Ah;exports.Radio=hl;exports.RadioGroup=cm;exports.Rate=um;exports.Required=UP;exports.Row=Kh;exports.SafeArea=Zn;exports.SafeAreaBottom=zh;exports.SafeAreaTop=Vh;exports.Select=Ym;exports.SelectContent=Zm;exports.SelectGroup=Xm;exports.SelectItem=hn;exports.SelectItems=uC;exports.SelectLabel=Pl;exports.SelectScrollDownButton=wl;exports.SelectScrollUpButton=yl;exports.SelectSeparator=Cl;exports.SelectTrigger=Qm;exports.SelectValue=iC;exports.Skeleton=ko;exports.SkeletonAvatar=Fl;exports.SkeletonButton=Oh;exports.SkeletonCard=Mh;exports.SkeletonText=Dl;exports.Slider=mm;exports.Space=Ul;exports.Spin=kf;exports.Switch=sh;exports.SxProvider=cv;exports.Table=tt;exports.Tabs=mp;exports.TabsContent=sa;exports.TabsList=oa;exports.TabsTrigger=na;exports.ThemeProvider=Vu;exports.ToastProvider=od;exports.Tooltip=Ly;exports.TooltipArrow=cl;exports.TooltipContent=bf;exports.TooltipPortal=Dy;exports.TooltipProvider=My;exports.TooltipTrigger=xf;exports.Typography=jj;exports.UPLOADER_LIST_IGNORE=xl;exports.Uploader=P0;exports.UploaderProvider=gm;exports.buttonVariants=ku;exports.chipVariants=Ch;exports.createTheme=lv;exports.defaultDarkTheme=Fu;exports.defaultLightTheme=qi;exports.getRegisteredIconNames=dg;exports.mergeSxStyle=D;exports.mergeTheme=St;exports.notification=$y;exports.registerIconLoaders=ag;exports.resetIconLoaders=ug;exports.resolveSx=re;exports.setIconLoaders=cg;exports.themeToCssVars=$u;exports.toast=wg;exports.useForm=pl;exports.useFormInstance=vl;exports.useFormValue=zn;exports.useFormWatch=hm;exports.useInputNumberState=zw;exports.useMenuRef=qj;exports.useNotification=Gy;exports.useNumberInput=Ff;exports.useSxTheme=se;exports.useTheme=Ei;exports.useToast=yg;exports.useUploaderProvider=w0;
|