@epam/ai-dial-ui-kit 0.5.0-rc.100 → 0.5.0-rc.101

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.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react/jsx-runtime"),Z=require("classnames"),be=require("@floating-ui/react"),g=require("react"),V=require("@tabler/icons-react"),pn=require("react-dom");function LC(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const o=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,o.get?o:{enumerable:!0,get:()=>e[s]})}}return t.default=e,Object.freeze(t)}const ge=LC(g),Ts=({errorText:e})=>e&&m.jsx("span",{className:"text-error dial-tiny mt-1",children:e}),Le=({icon:e,className:t})=>e?m.jsx("span",{className:Z("flex-shrink-0",t),children:e}):null,OC=7,NC=2,ng=g.createContext(null),rg=()=>{const e=g.useContext(ng);if(e==null)throw new Error("Tooltip components must be wrapped in <Tooltip />");return e},HC=({initialOpen:e=!1,placement:t="bottom",isTriggerClickable:s=!1,open:o,onOpenChange:i}={})=>{const[n,r]=g.useState(e),a=g.useRef(null),l=o??n,c=i??r,d=be.useFloating({placement:t,open:l,onOpenChange:c,whileElementsMounted:be.autoUpdate,middleware:[be.offset(OC+NC),be.flip({crossAxis:t.includes("-"),fallbackAxisSideDirection:"start",padding:5}),be.shift({padding:5}),be.arrow({element:a})]}),u=be.useHover(d.context,{move:!1,enabled:o==null,mouseOnly:s,delay:{open:500,close:0}}),h=be.useFocus(d.context,{enabled:o==null}),p=be.useDismiss(d.context),f=be.useRole(d.context,{role:"tooltip"}),C=be.useInteractions([u,h,p,f]);return g.useEffect(()=>{if(!l)return;const v=d.refs.reference.current;if(!(v instanceof Element))return;const w=new IntersectionObserver(([b])=>{b.isIntersecting||c(!1)},{root:null,threshold:0});return w.observe(v),()=>w.disconnect()},[l,d.refs.reference,c]),g.useMemo(()=>({open:l,setOpen:c,arrowRef:a,...C,...d}),[l,c,C,d])},ag=({children:e,...t})=>{const s=HC(t);return m.jsx(ng.Provider,{value:s,children:e})},lg=({style:e,...t})=>{const s=rg(),o=g.useRef(null),i=be.useMergeRefs([s.refs.setFloating,o]);return s.open?m.jsx(be.FloatingPortal,{id:"tooltip-portal",children:m.jsxs("div",{ref:i,style:{...s.floatingStyles,...e},...s.getFloatingProps(t),className:Z("z-[55] whitespace-pre-wrap break-words rounded border border-primary bg-layer-0 px-2 py-1 dial-tiny shadow max-w-[300px]",s.getFloatingProps(t).className),children:[t.children,m.jsx(be.FloatingArrow,{ref:s.arrowRef,context:s.context,fill:"currentColor",strokeWidth:1,className:"border-primary w-2 text-[var(--bg-layer-0,_#000000)]"})]})}):null},cg=({children:e,asChild:t=!1,...s})=>{const o=rg(),i=t&&g.isValidElement(e),n=i?e.props?.ref:null,r=be.useMergeRefs([o.refs.setReference,...n?[n]:[]]);return i?g.cloneElement(e,o.getReferenceProps({...e.props,...s,ref:r})):m.jsx("span",{ref:r,...o.getReferenceProps(s),className:s.className??"dial-tooltip-trigger text-left",children:e})},ms=({hideTooltip:e,tooltip:t,children:s,triggerClassName:o,contentClassName:i,...n})=>m.jsxs(ag,{...n,children:[m.jsx(cg,{className:Z(o,"truncate"),children:s}),m.jsx(lg,{className:Z("text-primary",i,"max-w-[300px]",(e||!t)&&"hidden"),children:t})]}),Bc="-",GC=e=>{const t=VC(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:r=>{const a=r.split(Bc);return a[0]===""&&a.length!==1&&a.shift(),dg(a,t)||BC(r)},getConflictingClassGroupIds:(r,a)=>{const l=s[r]||[];return a&&o[r]?[...l,...o[r]]:l}}},dg=(e,t)=>{if(e.length===0)return t.classGroupId;const s=e[0],o=t.nextPart.get(s),i=o?dg(e.slice(1),o):void 0;if(i)return i;if(t.validators.length===0)return;const n=e.join(Bc);return t.validators.find(({validator:r})=>r(n))?.classGroupId},Yd=/^\[(.+)\]$/,BC=e=>{if(Yd.test(e)){const t=Yd.exec(e)[1],s=t?.substring(0,t.indexOf(":"));if(s)return"arbitrary.."+s}},VC=e=>{const{theme:t,classGroups:s}=e,o={nextPart:new Map,validators:[]};for(const i in s)Yl(s[i],o,i,t);return o},Yl=(e,t,s,o)=>{e.forEach(i=>{if(typeof i=="string"){const n=i===""?t:Zd(t,i);n.classGroupId=s;return}if(typeof i=="function"){if(zC(i)){Yl(i(o),t,s,o);return}t.validators.push({validator:i,classGroupId:s});return}Object.entries(i).forEach(([n,r])=>{Yl(r,Zd(t,n),s,o)})})},Zd=(e,t)=>{let s=e;return t.split(Bc).forEach(o=>{s.nextPart.has(o)||s.nextPart.set(o,{nextPart:new Map,validators:[]}),s=s.nextPart.get(o)}),s},zC=e=>e.isThemeGetter,WC=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,s=new Map,o=new Map;const i=(n,r)=>{s.set(n,r),t++,t>e&&(t=0,o=s,s=new Map)};return{get(n){let r=s.get(n);if(r!==void 0)return r;if((r=o.get(n))!==void 0)return i(n,r),r},set(n,r){s.has(n)?s.set(n,r):i(n,r)}}},Zl="!",Xl=":",_C=Xl.length,jC=e=>{const{prefix:t,experimentalParseClassName:s}=e;let o=i=>{const n=[];let r=0,a=0,l=0,c;for(let f=0;f<i.length;f++){let C=i[f];if(r===0&&a===0){if(C===Xl){n.push(i.slice(l,f)),l=f+_C;continue}if(C==="/"){c=f;continue}}C==="["?r++:C==="]"?r--:C==="("?a++:C===")"&&a--}const d=n.length===0?i:i.substring(l),u=UC(d),h=u!==d,p=c&&c>l?c-l:void 0;return{modifiers:n,hasImportantModifier:h,baseClassName:u,maybePostfixModifierPosition:p}};if(t){const i=t+Xl,n=o;o=r=>r.startsWith(i)?n(r.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:r,maybePostfixModifierPosition:void 0}}if(s){const i=o;o=n=>s({className:n,parseClassName:i})}return o},UC=e=>e.endsWith(Zl)?e.substring(0,e.length-1):e.startsWith(Zl)?e.substring(1):e,$C=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const i=[];let n=[];return o.forEach(r=>{r[0]==="["||t[r]?(i.push(...n.sort(),r),n=[]):n.push(r)}),i.push(...n.sort()),i}},KC=e=>({cache:WC(e.cacheSize),parseClassName:jC(e),sortModifiers:$C(e),...GC(e)}),qC=/\s+/,YC=(e,t)=>{const{parseClassName:s,getClassGroupId:o,getConflictingClassGroupIds:i,sortModifiers:n}=t,r=[],a=e.trim().split(qC);let l="";for(let c=a.length-1;c>=0;c-=1){const d=a[c],{isExternal:u,modifiers:h,hasImportantModifier:p,baseClassName:f,maybePostfixModifierPosition:C}=s(d);if(u){l=d+(l.length>0?" "+l:l);continue}let v=!!C,w=o(v?f.substring(0,C):f);if(!w){if(!v){l=d+(l.length>0?" "+l:l);continue}if(w=o(f),!w){l=d+(l.length>0?" "+l:l);continue}v=!1}const b=n(h).join(":"),S=p?b+Zl:b,y=S+w;if(r.includes(y))continue;r.push(y);const x=i(w,v);for(let R=0;R<x.length;++R){const E=x[R];r.push(S+E)}l=d+(l.length>0?" "+l:l)}return l};function ZC(){let e=0,t,s,o="";for(;e<arguments.length;)(t=arguments[e++])&&(s=ug(t))&&(o&&(o+=" "),o+=s);return o}const ug=e=>{if(typeof e=="string")return e;let t,s="";for(let o=0;o<e.length;o++)e[o]&&(t=ug(e[o]))&&(s&&(s+=" "),s+=t);return s};function XC(e,...t){let s,o,i,n=r;function r(l){const c=t.reduce((d,u)=>u(d),e());return s=KC(c),o=s.cache.get,i=s.cache.set,n=a,a(l)}function a(l){const c=o(l);if(c)return c;const d=YC(l,s);return i(l,d),d}return function(){return n(ZC.apply(null,arguments))}}const Ye=e=>{const t=s=>s[e]||[];return t.isThemeGetter=!0,t},hg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,gg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,QC=/^\d+\/\d+$/,JC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ev=/\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$/,tv=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,sv=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ov=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,To=e=>QC.test(e),ve=e=>!!e&&!Number.isNaN(Number(e)),ys=e=>!!e&&Number.isInteger(Number(e)),Ja=e=>e.endsWith("%")&&ve(e.slice(0,-1)),is=e=>JC.test(e),iv=()=>!0,nv=e=>ev.test(e)&&!tv.test(e),pg=()=>!1,rv=e=>sv.test(e),av=e=>ov.test(e),lv=e=>!se(e)&&!oe(e),cv=e=>li(e,Cg,pg),se=e=>hg.test(e),$s=e=>li(e,vg,nv),el=e=>li(e,pv,ve),Xd=e=>li(e,fg,pg),dv=e=>li(e,mg,av),Bn=e=>li(e,wg,rv),oe=e=>gg.test(e),Fi=e=>ci(e,vg),uv=e=>ci(e,fv),Qd=e=>ci(e,fg),hv=e=>ci(e,Cg),gv=e=>ci(e,mg),Vn=e=>ci(e,wg,!0),li=(e,t,s)=>{const o=hg.exec(e);return o?o[1]?t(o[1]):s(o[2]):!1},ci=(e,t,s=!1)=>{const o=gg.exec(e);return o?o[1]?t(o[1]):s:!1},fg=e=>e==="position"||e==="percentage",mg=e=>e==="image"||e==="url",Cg=e=>e==="length"||e==="size"||e==="bg-size",vg=e=>e==="length",pv=e=>e==="number",fv=e=>e==="family-name",wg=e=>e==="shadow",mv=()=>{const e=Ye("color"),t=Ye("font"),s=Ye("text"),o=Ye("font-weight"),i=Ye("tracking"),n=Ye("leading"),r=Ye("breakpoint"),a=Ye("container"),l=Ye("spacing"),c=Ye("radius"),d=Ye("shadow"),u=Ye("inset-shadow"),h=Ye("text-shadow"),p=Ye("drop-shadow"),f=Ye("blur"),C=Ye("perspective"),v=Ye("aspect"),w=Ye("ease"),b=Ye("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],x=()=>[...y(),oe,se],R=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],D=()=>[oe,se,l],T=()=>[To,"full","auto",...D()],k=()=>[ys,"none","subgrid",oe,se],F=()=>["auto",{span:["full",ys,oe,se]},ys,oe,se],M=()=>[ys,"auto",oe,se],L=()=>["auto","min","max","fr",oe,se],B=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],H=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",...D()],ee=()=>[To,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],O=()=>[e,oe,se],le=()=>[...y(),Qd,Xd,{position:[oe,se]}],z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],X=()=>["auto","cover","contain",hv,cv,{size:[oe,se]}],Y=()=>[Ja,Fi,$s],_=()=>["","none","full",c,oe,se],U=()=>["",ve,Fi,$s],te=()=>["solid","dashed","dotted","double"],N=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>[ve,Ja,Qd,Xd],j=()=>["","none",f,oe,se],ie=()=>["none",ve,oe,se],J=()=>["none",ve,oe,se],pe=()=>[ve,oe,se],Se=()=>[To,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[is],breakpoint:[is],color:[iv],container:[is],"drop-shadow":[is],ease:["in","out","in-out"],font:[lv],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[is],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[is],shadow:[is],spacing:["px",ve],text:[is],"text-shadow":[is],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",To,se,oe,v]}],container:["container"],columns:[{columns:[ve,se,oe,a]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:x()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{start:T()}],end:[{end:T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[ys,"auto",oe,se]}],basis:[{basis:[To,"full","auto",a,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ve,To,"auto","initial","none",se]}],grow:[{grow:["",ve,oe,se]}],shrink:[{shrink:["",ve,oe,se]}],order:[{order:[ys,"first","last","none",oe,se]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":L()}],"auto-rows":[{"auto-rows":L()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...B(),"normal"]}],"justify-items":[{"justify-items":[...H(),"normal"]}],"justify-self":[{"justify-self":["auto",...H()]}],"align-content":[{content:["normal",...B()]}],"align-items":[{items:[...H(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...H(),{baseline:["","last"]}]}],"place-content":[{"place-content":B()}],"place-items":[{"place-items":[...H(),"baseline"]}],"place-self":[{"place-self":["auto",...H()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],m:[{m:Q()}],mx:[{mx:Q()}],my:[{my:Q()}],ms:[{ms:Q()}],me:[{me:Q()}],mt:[{mt:Q()}],mr:[{mr:Q()}],mb:[{mb:Q()}],ml:[{ml:Q()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:ee()}],w:[{w:[a,"screen",...ee()]}],"min-w":[{"min-w":[a,"screen","none",...ee()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[r]},...ee()]}],h:[{h:["screen","lh",...ee()]}],"min-h":[{"min-h":["screen","lh","none",...ee()]}],"max-h":[{"max-h":["screen","lh",...ee()]}],"font-size":[{text:["base",s,Fi,$s]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,oe,el]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ja,se]}],"font-family":[{font:[uv,se,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,oe,se]}],"line-clamp":[{"line-clamp":[ve,"none",oe,el]}],leading:[{leading:[n,...D()]}],"list-image":[{"list-image":["none",oe,se]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",oe,se]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:[ve,"from-font","auto",oe,$s]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[ve,"auto",oe,se]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",oe,se]}],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",oe,se]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:le()}],"bg-repeat":[{bg:z()}],"bg-size":[{bg:X()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ys,oe,se],radial:["",oe,se],conic:[ys,oe,se]},gv,dv]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:Y()}],"gradient-via-pos":[{via:Y()}],"gradient-to-pos":[{to:Y()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:_()}],"rounded-s":[{"rounded-s":_()}],"rounded-e":[{"rounded-e":_()}],"rounded-t":[{"rounded-t":_()}],"rounded-r":[{"rounded-r":_()}],"rounded-b":[{"rounded-b":_()}],"rounded-l":[{"rounded-l":_()}],"rounded-ss":[{"rounded-ss":_()}],"rounded-se":[{"rounded-se":_()}],"rounded-ee":[{"rounded-ee":_()}],"rounded-es":[{"rounded-es":_()}],"rounded-tl":[{"rounded-tl":_()}],"rounded-tr":[{"rounded-tr":_()}],"rounded-br":[{"rounded-br":_()}],"rounded-bl":[{"rounded-bl":_()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":U()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...te(),"hidden","none"]}],"divide-style":[{divide:[...te(),"hidden","none"]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:[...te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ve,oe,se]}],"outline-w":[{outline:["",ve,Fi,$s]}],"outline-color":[{outline:O()}],shadow:[{shadow:["","none",d,Vn,Bn]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",u,Vn,Bn]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[ve,$s]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":["none",h,Vn,Bn]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[ve,oe,se]}],"mix-blend":[{"mix-blend":[...N(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":N()}],"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":[ve]}],"mask-image-linear-from-pos":[{"mask-linear-from":P()}],"mask-image-linear-to-pos":[{"mask-linear-to":P()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":P()}],"mask-image-t-to-pos":[{"mask-t-to":P()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":P()}],"mask-image-r-to-pos":[{"mask-r-to":P()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":P()}],"mask-image-b-to-pos":[{"mask-b-to":P()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":P()}],"mask-image-l-to-pos":[{"mask-l-to":P()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":P()}],"mask-image-x-to-pos":[{"mask-x-to":P()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":P()}],"mask-image-y-to-pos":[{"mask-y-to":P()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[oe,se]}],"mask-image-radial-from-pos":[{"mask-radial-from":P()}],"mask-image-radial-to-pos":[{"mask-radial-to":P()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"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":y()}],"mask-image-conic-pos":[{"mask-conic":[ve]}],"mask-image-conic-from-pos":[{"mask-conic-from":P()}],"mask-image-conic-to-pos":[{"mask-conic-to":P()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:le()}],"mask-repeat":[{mask:z()}],"mask-size":[{mask:X()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",oe,se]}],filter:[{filter:["","none",oe,se]}],blur:[{blur:j()}],brightness:[{brightness:[ve,oe,se]}],contrast:[{contrast:[ve,oe,se]}],"drop-shadow":[{"drop-shadow":["","none",p,Vn,Bn]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:["",ve,oe,se]}],"hue-rotate":[{"hue-rotate":[ve,oe,se]}],invert:[{invert:["",ve,oe,se]}],saturate:[{saturate:[ve,oe,se]}],sepia:[{sepia:["",ve,oe,se]}],"backdrop-filter":[{"backdrop-filter":["","none",oe,se]}],"backdrop-blur":[{"backdrop-blur":j()}],"backdrop-brightness":[{"backdrop-brightness":[ve,oe,se]}],"backdrop-contrast":[{"backdrop-contrast":[ve,oe,se]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ve,oe,se]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ve,oe,se]}],"backdrop-invert":[{"backdrop-invert":["",ve,oe,se]}],"backdrop-opacity":[{"backdrop-opacity":[ve,oe,se]}],"backdrop-saturate":[{"backdrop-saturate":[ve,oe,se]}],"backdrop-sepia":[{"backdrop-sepia":["",ve,oe,se]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":D()}],"border-spacing-x":[{"border-spacing-x":D()}],"border-spacing-y":[{"border-spacing-y":D()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",oe,se]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ve,"initial",oe,se]}],ease:[{ease:["linear","initial",w,oe,se]}],delay:[{delay:[ve,oe,se]}],animate:[{animate:["none",b,oe,se]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,oe,se]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ie()}],"rotate-x":[{"rotate-x":ie()}],"rotate-y":[{"rotate-y":ie()}],"rotate-z":[{"rotate-z":ie()}],scale:[{scale:J()}],"scale-x":[{"scale-x":J()}],"scale-y":[{"scale-y":J()}],"scale-z":[{"scale-z":J()}],"scale-3d":["scale-3d"],skew:[{skew:pe()}],"skew-x":[{"skew-x":pe()}],"skew-y":[{"skew-y":pe()}],transform:[{transform:[oe,se,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Se()}],"translate-x":[{"translate-x":Se()}],"translate-y":[{"translate-y":Se()}],"translate-z":[{"translate-z":Se()}],"translate-none":["translate-none"],accent:[{accent:O()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:O()}],"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",oe,se]}],"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":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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",oe,se]}],fill:[{fill:["none",...O()]}],"stroke-w":[{stroke:[ve,Fi,$s,el]}],stroke:[{stroke:["none",...O()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Cv=XC(mv);function ce(...e){return Cv(Z(e))}const bo=({fieldTitle:e,optional:t,optionalText:s,className:o,description:i,...n})=>e?m.jsxs("label",{...n,className:ce("dial-tiny text-secondary flex gap-1",o,!o?.includes("mb")&&"mb-2"),children:[typeof e=="string"?m.jsx("span",{className:"min-h-4",children:e}):e,t&&m.jsx("span",{children:s??"(Optional)"}),i&&m.jsx(ms,{tooltip:i,children:m.jsx(Le,{icon:m.jsx(V.IconInfoCircle,{size:14,className:"text-secondary"})})})]}):null;var Te=(e=>(e.Primary="primary",e.Secondary="secondary",e.Tertiary="tertiary",e.Danger="danger",e))(Te||{});const vv={[Te.Primary]:"dial-primary-button",[Te.Secondary]:"dial-secondary-button",[Te.Tertiary]:"dial-tertiary-button",[Te.Danger]:"dial-danger-button"},De=({label:e,variant:t,className:s,textClassName:o,iconAfter:i,iconBefore:n,hideTitleOnMobile:r,type:a="button",...l})=>{const c=Z("dial-small-semi",i?"mr-2":"",n?"ml-2":"",r?"hidden sm:inline":"inline",o),d=Z(t&&vv[t],"disabled:cursor-not-allowed focus-visible:outline outline-offset-0",s);return m.jsxs("button",{...l,type:a,className:d,"aria-label":e||l["aria-label"],children:[m.jsx(Le,{icon:n}),e&&m.jsx("span",{className:c,children:e}),m.jsx(Le,{icon:i})]})};var Zs=(e=>(e.Info="info",e.Success="success",e.Warning="warning",e.Error="error",e))(Zs||{});const wv=e=>({info:m.jsx(V.IconInfoCircle,{...e}),error:m.jsx(V.IconAlertCircle,{...e}),warning:m.jsx(V.IconAlertTriangle,{...e}),success:m.jsx(V.IconCircleCheck,{...e})}),bv={[Zs.Info]:"bg-info border-info text-info",[Zs.Success]:"bg-success border-success text-success",[Zs.Warning]:"bg-warning border-warning text-warning",[Zs.Error]:"bg-error border-error text-error"},Sv="items-center justify-between gap-2 p-3 border border-solid dial-small-150 rounded flex",yv=({variant:e=Zs.Info,message:t,className:s,iconSize:o=24,iconStroke:i=2,closable:n=!1,onClose:r})=>{const a=g.useMemo(()=>wv({size:o,stroke:i})[e],[e,o,i]);return m.jsxs("div",{role:"alert",className:ce(Sv,bv[e],s),children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(Le,{icon:a}),m.jsx("div",{className:"text-primary",children:t})]}),n&&m.jsx(De,{className:"ml-2 text-secondary hover:text-primary","aria-label":"Close alert",iconBefore:m.jsx(V.IconX,{size:16}),onClick:r})]})},xv="flex items-center justify-center text-secondary",Rv="shrink-0 grow-0 basis-auto animate-spin-steps",Fv=e=>ge.createElement("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ge.createElement("path",{d:"M24 39V46.5",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),ge.createElement("path",{opacity:.4,d:"M9 24H1.5",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),ge.createElement("path",{opacity:.5,d:"M8.0918 8.0918L13.3994 13.3994",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),ge.createElement("path",{opacity:.6,d:"M24 1.5V9",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),ge.createElement("path",{opacity:.7,d:"M39.9121 8.08594L37.2607 10.7373L34.6094 13.3887",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),ge.createElement("path",{opacity:.8,d:"M46.5 24H39",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),ge.createElement("path",{opacity:.9,d:"M34.6055 34.6055L39.9082 39.9082",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),ge.createElement("path",{opacity:.3,d:"M13.3936 34.6055L8.08594 39.9131",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"})),fn=({size:e=18,className:t,iconClassName:s,fullWidth:o=!0,ariaLabel:i="Loading"})=>m.jsx("div",{role:"status",className:Z({[xv]:!0,"w-full h-full":o,[t||""]:!!t}),children:m.jsx(Le,{icon:m.jsx(Fv,{width:e,height:e,className:Z(Rv,s),role:"img","aria-label":i})})}),ls=18,ae={size:ls,stroke:2},Ev="text-primary",ut=({text:e,className:t,contentClassName:s,hideTooltip:o,id:i,...n})=>{const r=g.useRef(null),[a,l]=g.useState(!1),[c,d]=g.useState(""),u=g.useRef(null),h=()=>{const v=r.current;if(!v)return;d(v.textContent??"");const w=v.clientWidth,b=v.scrollWidth,S=Math.ceil(v.getBoundingClientRect().width);l(b>w||b>S)},p=g.useCallback(()=>{u.current&&cancelAnimationFrame(u.current),u.current=requestAnimationFrame(h)},[]);g.useEffect(()=>{p();const v=()=>p();window.addEventListener("resize",v);let w=null;return"ResizeObserver"in window&&r.current&&(w=new ResizeObserver(()=>p()),w.observe(r.current)),()=>{window.removeEventListener("resize",v),w&&w.disconnect(),u.current&&cancelAnimationFrame(u.current)}},[e,p]);const f=g.useMemo(()=>typeof e=="string"?e:c,[c,e]),C=g.useMemo(()=>o?"":a?f:"",[f,o,a]);return m.jsxs(ag,{...n,children:[m.jsx(cg,{asChild:!0,onMouseEnter:p,onFocusCapture:p,children:m.jsx("span",{id:i,className:ce("block truncate flex-1 min-w-0 max-w-full text-left",t),"aria-label":a?f:void 0,onMouseEnter:p,onFocus:p,ref:r,children:e})}),m.jsx(lg,{className:ce(Ev,s,!C&&"hidden"),children:C})]})},Yi=({label:e,id:t,checked:s,indeterminate:o,disabled:i,ariaLabel:n,onChange:r,className:a,...l})=>{const c=g.useCallback(p=>{r?.(p.target.checked,t)},[r,t]),d=Z("flex flex-row items-center cursor-pointer text-accent-primary small-medium min-w-0",`${s||o?"":'before:content-[""] before:inline-block before:w-[18px] before:h-[18px] before:border before:border-hover before:rounded'}`,i?"pointer-events-none text-secondary before:border-icon-secondary before:bg-layer-4":"",a),u=Z("border rounded",i?"bg-layer-4 border-icon-secondary":""),h=()=>o?m.jsx(V.IconMinus,{className:u,...ae}):s?m.jsx(V.IconCheck,{className:u,...ae}):null;return m.jsxs("label",{...l,className:d,htmlFor:t,"aria-description":l["aria-description"]||"checkbox-container",children:[h(),e&&(typeof e=="string"?m.jsx(ut,{text:e,className:"ml-2 text-primary"}):e),m.jsx("input",{type:"checkbox",role:"checkbox",name:t,onChange:c,id:t,checked:s,"aria-checked":o?"mixed":s,"aria-disabled":i||void 0,"aria-label":e?void 0:n,className:"invisible w-0 h-0"})]})};var xt=(e=>(e.VALID="valid",e.ERROR="error",e))(xt||{});const Dv=(e,t)=>{if(t===e.id)switch(e.status){case xt.VALID:return"border-accent-secondary text-primary";case xt.ERROR:return"border-red-900 text-primary";default:return"border-accent-primary text-primary"}switch(e.status){case xt.VALID:return"border-primary text-primary";case xt.ERROR:return"border-red-900 text-error";default:return"border-primary text-secondary"}},Pv=(e,t)=>{if(t===e.id)switch(e.status){case xt.VALID:return"bg-accent-secondary";case xt.ERROR:return"bg-red-400";default:return"bg-accent-primary"}switch(e.status){case xt.VALID:return"bg-accent-secondary";case xt.ERROR:return"bg-red-400";default:return"bg-layer-4"}},Mv=({step:e,index:t,currentStep:s,onChangeStep:o})=>{const i="h-[32px] flex flex-1 min-w-[180px] items-center dial-tiny cursor-pointer dial-step",n="w-[22px] h-[22px] flex justify-center items-center mr-2 rounded-full text-white",r=()=>s===e.id&&e.status===xt.ERROR?m.jsx(V.IconExclamationCircle,{stroke:2,size:16}):s!==e.id&&e.status===xt.VALID?m.jsx(V.IconCheck,{stroke:2,size:16}):t+1;return m.jsxs("button",{className:Z(i,Dv(e,s)),onClick:()=>o(e.id),children:[m.jsx("span",{className:Z(n,Pv(e,s)),children:r()}),m.jsx("span",{children:e.name})]})},Tv=({steps:e,currentStep:t,onChangeStep:s})=>{const o=i=>{const n=e.findIndex(a=>a.id===t),r=e.findIndex(a=>a.id===i);(i!==t&&e[n].status===xt.VALID||r<n)&&s(i)};return m.jsx("div",{id:"steps",className:"flex gap-x-3",children:e.map((i,n)=>m.jsx(Mv,{currentStep:t,onChangeStep:o,step:i,index:n},i.id))})},bg=({name:e,value:t,title:s,description:o,checked:i=!1,inputId:n,className:r,labelClassName:a,disabled:l,onChange:c,descriptionClassName:d})=>{const u=`${n}-desc`,h=Z("dial-small cursor-pointer",l?"text-secondary":"text-primary",a),p=Z("cursor-pointer dial-input-radio",s&&"mr-2",r),f=Z("flex flex-col",!!o&&"mb-2"),C=Z("dial-tiny mt-2 ml-[26px] text-secondary",d),v=w=>{l||w.target.checked&&c?.(t)};return m.jsxs("div",{className:f,children:[m.jsxs("div",{className:"flex flex-row items-center",children:[m.jsx("input",{type:"radio",id:n,name:e,value:t,checked:i,disabled:l,"aria-describedby":i&&o?u:void 0,className:p,onChange:v}),s?m.jsx("label",{className:h,htmlFor:n,children:s}):null]}),i&&o&&m.jsx("div",{id:u,className:C,children:o})]})};var Zi=(e=>(e.Vertical="vertical",e.Horizontal="horizontal",e))(Zi||{});const Iv="w-full flex",kv={[Zi.Vertical]:"flex-col",[Zi.Horizontal]:"flex-row items-end"},ta=({elementId:e,label:t,optional:s,optionalText:o,description:i,error:n,orientation:r=Zi.Vertical,labelVisuallyHidden:a=!1,className:l,labelClassName:c,errorClassName:d,childrenClassName:u,captionDescription:h,readonly:p,value:f,defaultEmptyText:C,children:v})=>{const w=`${e}-label`,b=i?`${e}-desc`:void 0,S=n?`${e}-err`:void 0,y=`${e}-caption-desc`,x=[b,S].filter(Boolean).join(" ")||void 0,R=g.useCallback(()=>typeof n=="boolean"?null:typeof n=="string"||typeof n>"u"?n?m.jsx("div",{id:S,role:"alert","aria-live":"polite",className:d,children:m.jsx(Ts,{errorText:n})}):null:m.jsx("div",{id:S,role:"alert","aria-live":"polite",className:d,children:n}),[n,d,S]),E=g.useCallback(()=>f?typeof f=="string"||typeof f=="number"?m.jsx("span",{"aria-readonly":"true",children:f}):f:m.jsx("span",{className:"flex min-h-4","aria-readonly":"true",children:C??"None"}),[f,C]);return m.jsxs("div",{role:"group","aria-labelledby":t?w:void 0,"aria-describedby":x,className:ce(Iv,kv[r],l),children:[t&&m.jsx("div",{id:w,className:ce(r==="horizontal"&&"shrink-0"),children:m.jsx(bo,{htmlFor:e,fieldTitle:t,optional:s,optionalText:o,className:ce(a&&"sr-only",c),description:i})}),m.jsxs("div",{className:ce("min-w-0 w-full",u),children:[p?m.jsx("div",{className:"dial-input px-3 py-2",children:E()}):v,h&&m.jsx("div",{id:y,className:ce({"dial-tiny text-secondary mt-1":!0,"text-error":!!n}),children:h}),R()]})]})};var lo=(e=>(e.Row="Row",e.Column="Column",e))(lo||{});const Av="flex",Lv="pb-1 mt-2",Ov={[lo.Column]:"flex-col gap-y-3",[lo.Row]:"flex-row gap-x-6"},yr=({fieldTitle:e,radioClassName:t,containerClassName:s,selectedItemClassName:o,selectedLabelClassName:i,radioGroupClassName:n,inputContainerClassName:r,selectedInputContainerClassName:a,groupLabelClassName:l,formItemChildrenClassName:c,labelClassName:d,disabled:u,elementId:h,radioButtons:p,activeRadioButton:f,orientation:C,onChange:v})=>m.jsx(ta,{elementId:h,label:e,labelClassName:l||d,className:s,childrenClassName:c,children:m.jsx("div",{role:"radiogroup","aria-label":e,"aria-disabled":u||void 0,className:ce(Av,Ov[C],n),children:p.map(w=>m.jsxs("div",{className:ce("flex flex-col",r,w.id===f&&a),children:[m.jsx(bg,{name:h,value:w.id,inputId:w.id,disabled:u,className:t,labelClassName:ce(d,w.id===f&&i),title:w.name,checked:w.id===f,onChange:()=>v(w.id)}),w.id===f&&w.content?m.jsx("div",{className:ce(Lv,o),children:w.content}):null]},w.id))})}),sa=({icon:e,title:t,description:s,containerClassName:o,titleClassName:i,descriptionClassName:n})=>m.jsxs("div",{className:ce("h-full w-full flex flex-col items-center justify-center text-secondary",o),"aria-label":"no-data-container",children:[e||m.jsx(V.IconClipboardX,{width:60,height:60}),m.jsx("span",{className:ce("dial-small mt-2 text-primary",i),"aria-label":"no-results-title",children:t}),s&&m.jsx("span",{className:ce("mt-1 text-primary",n),"aria-label":"no-results-description",children:s})]}),tl=48,Sg=({containerClassName:e,children:t,width:s=280,title:o,iconSize:i=24,iconStroke:n=1.5,titleClassName:r,additionalButtons:a,isOpened:l,onToggle:c})=>{const[d,u]=g.useState(s),[h,p]=g.useState(!0),f=g.useMemo(()=>typeof l=="boolean",[l]),C=f?l:h;g.useEffect(()=>{f&&u(l?s:tl)},[f,l,s]);const v=Z(["transform rotate-180 [writing-mode:tb-rl] py-4 px-3",C&&"hidden",r]),w=Z(["flex flex-row gap-2 cursor-pointer text-secondary p-2 px-4",C?"justify-end":"justify-center"]),b=S=>{const y=!C;if(f){u(y?s:tl),c?.(y,S);return}u(y?s:tl),p(y)};return m.jsxs("div",{className:Z(["rounded flex flex-col justify-between overflow-y-auto flex-shrink-0",e]),style:{width:`${d}px`},"aria-label":"collapsible-sidebar",children:[m.jsx("div",{className:Z(["flex-1 p-4 min-h-0 overflow-auto",!C&&"hidden"]),children:t}),m.jsx("div",{className:v,children:o}),m.jsxs("div",{className:ce("border-t border-primary h-12",w),children:[C&&a,m.jsx(De,{className:"hover:text-accent-primary p-1",onClick:b,"aria-label":"sidebar-state",iconBefore:C?m.jsx(V.IconChevronsLeft,{size:i,stroke:n}):m.jsx(V.IconChevronsRight,{size:i,stroke:n})})]})]})},Nv=({label:e,text:t,children:s,postfix:o})=>m.jsxs("div",{className:Z("flex flex-col",s?"":"max-w-[200px]"),children:[m.jsx("label",{className:"dial-tiny mb-2 text-secondary",children:e}),s||m.jsxs("div",{className:"flex flex-row items-center",children:[m.jsx(ms,{triggerClassName:"text-primary",tooltip:t,children:t}),o||null]})]});var oa=(e=>(e.Default="default",e))(oa||{});const Hv={[oa.Default]:"border-icon-secondary bg-layer-3"},ia=({tag:e,className:t,remove:s,variant:o=oa.Default,iconBefore:i,bordered:n=!0})=>{const r=Hv[o],a=ce("flex items-center gap-1 dial-tiny rounded p-1 h-[22px] text-primary",r,n?"border":"border-transparent",t);return m.jsxs("div",{className:a,children:[m.jsx(Le,{icon:i}),m.jsx(ut,{text:e}),s&&m.jsx(De,{iconAfter:m.jsx(V.IconX,{size:16}),onClick:l=>s(l)})]},e)},yg=g.createContext({dragDropManager:void 0});function Pt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Jd=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),eu=function(){return Math.random().toString(36).substring(7).split("").join(".")},tu={INIT:"@@redux/INIT"+eu(),REPLACE:"@@redux/REPLACE"+eu()};function Gv(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Bv(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(Wv(e))return"date";if(zv(e))return"error";var s=Vv(e);switch(s){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return s}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function Vv(e){return typeof e.constructor=="function"?e.constructor.name:null}function zv(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Wv(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Io(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=Bv(e)),t}function xg(e,t,s){var o;if(typeof t=="function"&&typeof s=="function"||typeof s=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Pt(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof s>"u"&&(s=t,t=void 0),typeof s<"u"){if(typeof s!="function")throw new Error(process.env.NODE_ENV==="production"?Pt(1):"Expected the enhancer to be a function. Instead, received: '"+Io(s)+"'");return s(xg)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?Pt(2):"Expected the root reducer to be a function. Instead, received: '"+Io(e)+"'");var i=e,n=t,r=[],a=r,l=!1;function c(){a===r&&(a=r.slice())}function d(){if(l)throw new Error(process.env.NODE_ENV==="production"?Pt(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return n}function u(C){if(typeof C!="function")throw new Error(process.env.NODE_ENV==="production"?Pt(4):"Expected the listener to be a function. Instead, received: '"+Io(C)+"'");if(l)throw new Error(process.env.NODE_ENV==="production"?Pt(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var v=!0;return c(),a.push(C),function(){if(v){if(l)throw new Error(process.env.NODE_ENV==="production"?Pt(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");v=!1,c();var b=a.indexOf(C);a.splice(b,1),r=null}}}function h(C){if(!Gv(C))throw new Error(process.env.NODE_ENV==="production"?Pt(7):"Actions must be plain objects. Instead, the actual type was: '"+Io(C)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof C.type>"u")throw new Error(process.env.NODE_ENV==="production"?Pt(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(l)throw new Error(process.env.NODE_ENV==="production"?Pt(9):"Reducers may not dispatch actions.");try{l=!0,n=i(n,C)}finally{l=!1}for(var v=r=a,w=0;w<v.length;w++){var b=v[w];b()}return C}function p(C){if(typeof C!="function")throw new Error(process.env.NODE_ENV==="production"?Pt(10):"Expected the nextReducer to be a function. Instead, received: '"+Io(C));i=C,h({type:tu.REPLACE})}function f(){var C,v=u;return C={subscribe:function(b){if(typeof b!="object"||b===null)throw new Error(process.env.NODE_ENV==="production"?Pt(11):"Expected the observer to be an object. Instead, received: '"+Io(b)+"'");function S(){b.next&&b.next(d())}S();var y=v(S);return{unsubscribe:y}}},C[Jd]=function(){return this},C}return h({type:tu.INIT}),o={dispatch:h,subscribe:u,getState:d,replaceReducer:p},o[Jd]=f,o}function Ce(e,t,...s){if(_v()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let o;if(t===void 0)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let i=0;o=new Error(t.replace(/%s/g,function(){return s[i++]})),o.name="Invariant Violation"}throw o.framesToPop=1,o}}function _v(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function jv(e,t,s){return t.split(".").reduce((o,i)=>o&&o[i]?o[i]:s||null,e)}function Uv(e,t){return e.filter(s=>s!==t)}function Rg(e){return typeof e=="object"}function $v(e,t){const s=new Map,o=n=>{s.set(n,s.has(n)?s.get(n)+1:1)};e.forEach(o),t.forEach(o);const i=[];return s.forEach((n,r)=>{n===1&&i.push(r)}),i}function Kv(e,t){return e.filter(s=>t.indexOf(s)>-1)}const Vc="dnd-core/INIT_COORDS",na="dnd-core/BEGIN_DRAG",zc="dnd-core/PUBLISH_DRAG_SOURCE",ra="dnd-core/HOVER",aa="dnd-core/DROP",la="dnd-core/END_DRAG";function su(e,t){return{type:Vc,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const qv={type:Vc,payload:{clientOffset:null,sourceClientOffset:null}};function Yv(e){return function(s=[],o={publishSource:!0}){const{publishSource:i=!0,clientOffset:n,getSourceClientOffset:r}=o,a=e.getMonitor(),l=e.getRegistry();e.dispatch(su(n)),Zv(s,a,l);const c=Jv(s,a);if(c==null){e.dispatch(qv);return}let d=null;if(n){if(!r)throw new Error("getSourceClientOffset must be defined");Xv(r),d=r(c)}e.dispatch(su(n,d));const h=l.getSource(c).beginDrag(a,c);if(h==null)return;Qv(h),l.pinSource(c);const p=l.getSourceType(c);return{type:na,payload:{itemType:p,item:h,sourceId:c,clientOffset:n||null,sourceClientOffset:d||null,isSourcePublic:!!i}}}}function Zv(e,t,s){Ce(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(o){Ce(s.getSource(o),"Expected sourceIds to be registered.")})}function Xv(e){Ce(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function Qv(e){Ce(Rg(e),"Item must be an object.")}function Jv(e,t){let s=null;for(let o=e.length-1;o>=0;o--)if(t.canDragSource(e[o])){s=e[o];break}return s}function ew(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function tw(e){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{},o=Object.keys(s);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(s).filter(function(i){return Object.getOwnPropertyDescriptor(s,i).enumerable}))),o.forEach(function(i){ew(e,i,s[i])})}return e}function sw(e){return function(s={}){const o=e.getMonitor(),i=e.getRegistry();ow(o),rw(o).forEach((r,a)=>{const l=iw(r,a,i,o),c={type:aa,payload:{dropResult:tw({},s,l)}};e.dispatch(c)})}}function ow(e){Ce(e.isDragging(),"Cannot call drop while not dragging."),Ce(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function iw(e,t,s,o){const i=s.getTarget(e);let n=i?i.drop(o,e):void 0;return nw(n),typeof n>"u"&&(n=t===0?{}:o.getDropResult()),n}function nw(e){Ce(typeof e>"u"||Rg(e),"Drop result must either be an object or undefined.")}function rw(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function aw(e){return function(){const s=e.getMonitor(),o=e.getRegistry();lw(s);const i=s.getSourceId();return i!=null&&(o.getSource(i,!0).endDrag(s,i),o.unpinSource()),{type:la}}}function lw(e){Ce(e.isDragging(),"Cannot call endDrag while not dragging.")}function Ql(e,t){return t===null?e===null:Array.isArray(e)?e.some(s=>s===t):e===t}function cw(e){return function(s,{clientOffset:o}={}){dw(s);const i=s.slice(0),n=e.getMonitor(),r=e.getRegistry(),a=n.getItemType();return hw(i,r,a),uw(i,n,r),gw(i,n,r),{type:ra,payload:{targetIds:i,clientOffset:o||null}}}}function dw(e){Ce(Array.isArray(e),"Expected targetIds to be an array.")}function uw(e,t,s){Ce(t.isDragging(),"Cannot call hover while not dragging."),Ce(!t.didDrop(),"Cannot call hover after drop.");for(let o=0;o<e.length;o++){const i=e[o];Ce(e.lastIndexOf(i)===o,"Expected targetIds to be unique in the passed array.");const n=s.getTarget(i);Ce(n,"Expected targetIds to be registered.")}}function hw(e,t,s){for(let o=e.length-1;o>=0;o--){const i=e[o],n=t.getTargetType(i);Ql(n,s)||e.splice(o,1)}}function gw(e,t,s){e.forEach(function(o){s.getTarget(o).hover(t,o)})}function pw(e){return function(){if(e.getMonitor().isDragging())return{type:zc}}}function fw(e){return{beginDrag:Yv(e),publishDragSource:pw(e),hover:cw(e),drop:sw(e),endDrag:aw(e)}}class mw{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:s}=this.store;function o(n){return(...r)=>{const a=n.apply(t,r);typeof a<"u"&&s(a)}}const i=fw(this);return Object.keys(i).reduce((n,r)=>{const a=i[r];return n[r]=o(a),n},{})}dispatch(t){this.store.dispatch(t)}constructor(t,s){this.isSetUp=!1,this.handleRefCountChange=()=>{const o=this.store.getState().refCount>0;this.backend&&(o&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!o&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=s,t.subscribe(this.handleRefCountChange)}}function Cw(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Fg(e,t){return{x:e.x-t.x,y:e.y-t.y}}function vw(e){const{clientOffset:t,initialClientOffset:s,initialSourceClientOffset:o}=e;return!t||!s||!o?null:Fg(Cw(t,o),s)}function ww(e){const{clientOffset:t,initialClientOffset:s}=e;return!t||!s?null:Fg(t,s)}const Hi=[],Wc=[];Hi.__IS_NONE__=!0;Wc.__IS_ALL__=!0;function bw(e,t){return e===Hi?!1:e===Wc||typeof t>"u"?!0:Kv(t,e).length>0}class Sw{subscribeToStateChange(t,s={}){const{handlerIds:o}=s;Ce(typeof t=="function","listener must be a function."),Ce(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const n=()=>{const r=this.store.getState(),a=r.stateId;try{a===i||a===i+1&&!bw(r.dirtyHandlerIds,o)||t()}finally{i=a}};return this.store.subscribe(n)}subscribeToOffsetChange(t){Ce(typeof t=="function","listener must be a function.");let s=this.store.getState().dragOffset;const o=()=>{const i=this.store.getState().dragOffset;i!==s&&(s=i,t())};return this.store.subscribe(o)}canDragSource(t){if(!t)return!1;const s=this.registry.getSource(t);return Ce(s,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:s.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const s=this.registry.getTarget(t);if(Ce(s,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const o=this.registry.getTargetType(t),i=this.getItemType();return Ql(o,i)&&s.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const s=this.registry.getSource(t,!0);if(Ce(s,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const o=this.registry.getSourceType(t),i=this.getItemType();return o!==i?!1:s.isDragging(this,t)}isOverTarget(t,s={shallow:!1}){if(!t)return!1;const{shallow:o}=s;if(!this.isDragging())return!1;const i=this.registry.getTargetType(t),n=this.getItemType();if(n&&!Ql(i,n))return!1;const r=this.getTargetIds();if(!r.length)return!1;const a=r.indexOf(t);return o?a===r.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return vw(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return ww(this.store.getState().dragOffset)}constructor(t,s){this.store=t,this.registry=s}}const ou=typeof global<"u"?global:self,Eg=ou.MutationObserver||ou.WebKitMutationObserver;function Dg(e){return function(){const s=setTimeout(i,0),o=setInterval(i,50);function i(){clearTimeout(s),clearInterval(o),e()}}}function yw(e){let t=1;const s=new Eg(e),o=document.createTextNode("");return s.observe(o,{characterData:!0}),function(){t=-t,o.data=t}}const xw=typeof Eg=="function"?yw:Dg;class Rw{enqueueTask(t){const{queue:s,requestFlush:o}=this;s.length||(o(),this.flushing=!0),s[s.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const s=this.index;if(this.index++,t[s].call(),this.index>this.capacity){for(let o=0,i=t.length-this.index;o<i;o++)t[o]=t[o+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=xw(this.flush),this.requestErrorThrow=Dg(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Fw{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,s){this.onError=t,this.release=s,this.task=null}}class Ew{create(t){const s=this.freeTasks,o=s.length?s.pop():new Fw(this.onError,i=>s[s.length]=i);return o.task=t,o}constructor(t){this.onError=t,this.freeTasks=[]}}const Pg=new Rw,Dw=new Ew(Pg.registerPendingError);function Pw(e){Pg.enqueueTask(Dw.create(e))}const _c="dnd-core/ADD_SOURCE",jc="dnd-core/ADD_TARGET",Uc="dnd-core/REMOVE_SOURCE",ca="dnd-core/REMOVE_TARGET";function Mw(e){return{type:_c,payload:{sourceId:e}}}function Tw(e){return{type:jc,payload:{targetId:e}}}function Iw(e){return{type:Uc,payload:{sourceId:e}}}function kw(e){return{type:ca,payload:{targetId:e}}}function Aw(e){Ce(typeof e.canDrag=="function","Expected canDrag to be a function."),Ce(typeof e.beginDrag=="function","Expected beginDrag to be a function."),Ce(typeof e.endDrag=="function","Expected endDrag to be a function.")}function Lw(e){Ce(typeof e.canDrop=="function","Expected canDrop to be a function."),Ce(typeof e.hover=="function","Expected hover to be a function."),Ce(typeof e.drop=="function","Expected beginDrag to be a function.")}function Jl(e,t){if(t&&Array.isArray(e)){e.forEach(s=>Jl(s,!1));return}Ce(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var kt;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(kt||(kt={}));let Ow=0;function Nw(){return Ow++}function Hw(e){const t=Nw().toString();switch(e){case kt.SOURCE:return`S${t}`;case kt.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function iu(e){switch(e[0]){case"S":return kt.SOURCE;case"T":return kt.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function nu(e,t){const s=e.entries();let o=!1;do{const{done:i,value:[,n]}=s.next();if(n===t)return!0;o=!!i}while(!o);return!1}class Gw{addSource(t,s){Jl(t),Aw(s);const o=this.addHandler(kt.SOURCE,t,s);return this.store.dispatch(Mw(o)),o}addTarget(t,s){Jl(t,!0),Lw(s);const o=this.addHandler(kt.TARGET,t,s);return this.store.dispatch(Tw(o)),o}containsHandler(t){return nu(this.dragSources,t)||nu(this.dropTargets,t)}getSource(t,s=!1){return Ce(this.isSourceId(t),"Expected a valid source ID."),s&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return Ce(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return Ce(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return Ce(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return iu(t)===kt.SOURCE}isTargetId(t){return iu(t)===kt.TARGET}removeSource(t){Ce(this.getSource(t),"Expected an existing source."),this.store.dispatch(Iw(t)),Pw(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){Ce(this.getTarget(t),"Expected an existing target."),this.store.dispatch(kw(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const s=this.getSource(t);Ce(s,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=s}unpinSource(){Ce(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,s,o){const i=Hw(t);return this.types.set(i,s),t===kt.SOURCE?this.dragSources.set(i,o):t===kt.TARGET&&this.dropTargets.set(i,o),i}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const Bw=(e,t)=>e===t;function Vw(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function zw(e,t,s=Bw){if(e.length!==t.length)return!1;for(let o=0;o<e.length;++o)if(!s(e[o],t[o]))return!1;return!0}function Ww(e=Hi,t){switch(t.type){case ra:break;case _c:case jc:case ca:case Uc:return Hi;case na:case zc:case la:case aa:default:return Wc}const{targetIds:s=[],prevTargetIds:o=[]}=t.payload,i=$v(s,o);if(!(i.length>0||!zw(s,o)))return Hi;const r=o[o.length-1],a=s[s.length-1];return r!==a&&(r&&i.push(r),a&&i.push(a)),i}function _w(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function jw(e){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{},o=Object.keys(s);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(s).filter(function(i){return Object.getOwnPropertyDescriptor(s,i).enumerable}))),o.forEach(function(i){_w(e,i,s[i])})}return e}const ru={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Uw(e=ru,t){const{payload:s}=t;switch(t.type){case Vc:case na:return{initialSourceClientOffset:s.sourceClientOffset,initialClientOffset:s.clientOffset,clientOffset:s.clientOffset};case ra:return Vw(e.clientOffset,s.clientOffset)?e:jw({},e,{clientOffset:s.clientOffset});case la:case aa:return ru;default:return e}}function $w(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function ko(e){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{},o=Object.keys(s);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(s).filter(function(i){return Object.getOwnPropertyDescriptor(s,i).enumerable}))),o.forEach(function(i){$w(e,i,s[i])})}return e}const Kw={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function qw(e=Kw,t){const{payload:s}=t;switch(t.type){case na:return ko({},e,{itemType:s.itemType,item:s.item,sourceId:s.sourceId,isSourcePublic:s.isSourcePublic,dropResult:null,didDrop:!1});case zc:return ko({},e,{isSourcePublic:!0});case ra:return ko({},e,{targetIds:s.targetIds});case ca:return e.targetIds.indexOf(s.targetId)===-1?e:ko({},e,{targetIds:Uv(e.targetIds,s.targetId)});case aa:return ko({},e,{dropResult:s.dropResult,didDrop:!0,targetIds:[]});case la:return ko({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function Yw(e=0,t){switch(t.type){case _c:case jc:return e+1;case Uc:case ca:return e-1;default:return e}}function Zw(e=0){return e+1}function Xw(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function Qw(e){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{},o=Object.keys(s);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(s).filter(function(i){return Object.getOwnPropertyDescriptor(s,i).enumerable}))),o.forEach(function(i){Xw(e,i,s[i])})}return e}function Jw(e={},t){return{dirtyHandlerIds:Ww(e.dirtyHandlerIds,{type:t.type,payload:Qw({},t.payload,{prevTargetIds:jv(e,"dragOperation.targetIds",[])})}),dragOffset:Uw(e.dragOffset,t),refCount:Yw(e.refCount,t),dragOperation:qw(e.dragOperation,t),stateId:Zw(e.stateId)}}function e1(e,t=void 0,s={},o=!1){const i=t1(o),n=new Sw(i,new Gw(i)),r=new mw(i,n),a=e(r,t,s);return r.receiveBackend(a),r}function t1(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return xg(Jw,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function s1(e,t){if(e==null)return{};var s=o1(e,t),o,i;if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(s[o]=e[o])}return s}function o1(e,t){if(e==null)return{};var s={},o=Object.keys(e),i,n;for(n=0;n<o.length;n++)i=o[n],!(t.indexOf(i)>=0)&&(s[i]=e[i]);return s}let au=0;const nr=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var i1=g.memo(function(t){var{children:s}=t,o=s1(t,["children"]);const[i,n]=n1(o);return g.useEffect(()=>{if(n){const r=Mg();return++au,()=>{--au===0&&(r[nr]=null)}}},[]),m.jsx(yg.Provider,{value:i,children:s})});function n1(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=r1(e.backend,e.context,e.options,e.debugMode),s=!e.context;return[t,s]}function r1(e,t=Mg(),s,o){const i=t;return i[nr]||(i[nr]={dragDropManager:e1(e,t,s,o)}),i[nr]}function Mg(){return typeof global<"u"?global:window}function a1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sl,lu;function l1(){return lu||(lu=1,sl=function e(t,s){if(t===s)return!0;if(t&&s&&typeof t=="object"&&typeof s=="object"){if(t.constructor!==s.constructor)return!1;var o,i,n;if(Array.isArray(t)){if(o=t.length,o!=s.length)return!1;for(i=o;i--!==0;)if(!e(t[i],s[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===s.source&&t.flags===s.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===s.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===s.toString();if(n=Object.keys(t),o=n.length,o!==Object.keys(s).length)return!1;for(i=o;i--!==0;)if(!Object.prototype.hasOwnProperty.call(s,n[i]))return!1;for(i=o;i--!==0;){var r=n[i];if(!e(t[r],s[r]))return!1}return!0}return t!==t&&s!==s}),sl}var c1=l1();const d1=a1(c1),co=typeof window<"u"?g.useLayoutEffect:g.useEffect;function u1(e,t,s){const[o,i]=g.useState(()=>t(e)),n=g.useCallback(()=>{const r=t(e);d1(o,r)||(i(r),s&&s())},[o,e,s]);return co(n),[o,n]}function h1(e,t,s){const[o,i]=u1(e,t,s);return co(function(){const r=e.getHandlerId();if(r!=null)return e.subscribeToStateChange(i,{handlerIds:[r]})},[e,i]),o}function Tg(e,t,s){return h1(t,e||(()=>({})),()=>s.reconnect())}function Ig(e,t){const s=[...t||[]];return t==null&&typeof e!="function"&&s.push(e),g.useMemo(()=>typeof e=="function"?e():e,s)}function g1(e){return g.useMemo(()=>e.hooks.dragSource(),[e])}function p1(e){return g.useMemo(()=>e.hooks.dragPreview(),[e])}let ol=!1,il=!1;class f1{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){Ce(!ol,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return ol=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{ol=!1}}isDragging(){if(!this.sourceId)return!1;Ce(!il,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return il=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{il=!1}}subscribeToStateChange(t,s){return this.internalMonitor.subscribeToStateChange(t,s)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,s){return this.internalMonitor.isOverTarget(t,s)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let nl=!1;class m1{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,s){return this.internalMonitor.subscribeToStateChange(t,s)}canDrop(){if(!this.targetId)return!1;Ce(!nl,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return nl=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{nl=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function C1(e,t,s){const o=s.getRegistry(),i=o.addTarget(e,t);return[i,()=>o.removeTarget(i)]}function v1(e,t,s){const o=s.getRegistry(),i=o.addSource(e,t);return[i,()=>o.removeSource(i)]}function ec(e,t,s,o){let i;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const a=Object.prototype.hasOwnProperty.bind(t);for(let l=0;l<n.length;l++){const c=n[l];if(!a(c))return!1;const d=e[c],u=t[c];if(i=void 0,i===!1||i===void 0&&d!==u)return!1}return!0}function tc(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function w1(e){if(typeof e.type=="string")return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function b1(e){return(t=null,s=null)=>{if(!g.isValidElement(t)){const n=t;return e(n,s),n}const o=t;return w1(o),S1(o,s?n=>e(n,s):e)}}function kg(e){const t={};return Object.keys(e).forEach(s=>{const o=e[s];if(s.endsWith("Ref"))t[s]=e[s];else{const i=b1(o);t[s]=()=>i}}),t}function cu(e,t){typeof e=="function"?e(t):e.current=t}function S1(e,t){const s=e.ref;return Ce(typeof s!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),s?g.cloneElement(e,{ref:o=>{cu(s,o),cu(t,o)}}):g.cloneElement(e,{ref:t})}class y1{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,s=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return s&&this.disconnectDragSource(),this.handlerId?t?(s&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),s):(this.lastConnectedDragSource=t,s):s}reconnectDragPreview(t=!1){const s=this.dragPreview,o=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(o&&this.disconnectDragPreview(),!!this.handlerId){if(!s){this.lastConnectedDragPreview=s;return}o&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=s,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,s,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!ec(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!ec(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=kg({dragSource:(s,o)=>{this.clearDragSource(),this.dragSourceOptions=o||null,tc(s)?this.dragSourceRef=s:this.dragSourceNode=s,this.reconnectDragSource()},dragPreview:(s,o)=>{this.clearDragPreview(),this.dragPreviewOptions=o||null,tc(s)?this.dragPreviewRef=s:this.dragPreviewNode=s,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class x1{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const s=this.dropTarget;if(this.handlerId){if(!s){this.lastConnectedDropTarget=s;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=s,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,s,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!ec(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=kg({dropTarget:(s,o)=>{this.clearDropTarget(),this.dropTargetOptions=o,tc(s)?this.dropTargetRef=s:this.dropTargetNode=s,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function di(){const{dragDropManager:e}=g.useContext(yg);return Ce(e!=null,"Expected drag drop context"),e}function R1(e,t){const s=di(),o=g.useMemo(()=>new y1(s.getBackend()),[s]);return co(()=>(o.dragSourceOptions=e||null,o.reconnect(),()=>o.disconnectDragSource()),[o,e]),co(()=>(o.dragPreviewOptions=t||null,o.reconnect(),()=>o.disconnectDragPreview()),[o,t]),o}function F1(){const e=di();return g.useMemo(()=>new f1(e),[e])}class E1{beginDrag(){const t=this.spec,s=this.monitor;let o=null;return typeof t.item=="object"?o=t.item:typeof t.item=="function"?o=t.item(s):o={},o??null}canDrag(){const t=this.spec,s=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(s):!0}isDragging(t,s){const o=this.spec,i=this.monitor,{isDragging:n}=o;return n?n(i):s===t.getSourceId()}endDrag(){const t=this.spec,s=this.monitor,o=this.connector,{end:i}=t;i&&i(s.getItem(),s),o.reconnect()}constructor(t,s,o){this.spec=t,this.monitor=s,this.connector=o}}function D1(e,t,s){const o=g.useMemo(()=>new E1(e,t,s),[t,s]);return g.useEffect(()=>{o.spec=e},[e]),o}function P1(e){return g.useMemo(()=>{const t=e.type;return Ce(t!=null,"spec.type must be defined"),t},[e])}function M1(e,t,s){const o=di(),i=D1(e,t,s),n=P1(e);co(function(){if(n!=null){const[a,l]=v1(n,i,o);return t.receiveHandlerId(a),s.receiveHandlerId(a),l}},[o,t,s,i,n])}function T1(e,t){const s=Ig(e,t);Ce(!s.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const o=F1(),i=R1(s.options,s.previewOptions);return M1(s,o,i),[Tg(s.collect,o,i),g1(i),p1(i)]}function I1(e){return g.useMemo(()=>e.hooks.dropTarget(),[e])}function k1(e){const t=di(),s=g.useMemo(()=>new x1(t.getBackend()),[t]);return co(()=>(s.dropTargetOptions=e||null,s.reconnect(),()=>s.disconnectDropTarget()),[e]),s}function A1(){const e=di();return g.useMemo(()=>new m1(e),[e])}function L1(e){const{accept:t}=e;return g.useMemo(()=>(Ce(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class O1{canDrop(){const t=this.spec,s=this.monitor;return t.canDrop?t.canDrop(s.getItem(),s):!0}hover(){const t=this.spec,s=this.monitor;t.hover&&t.hover(s.getItem(),s)}drop(){const t=this.spec,s=this.monitor;if(t.drop)return t.drop(s.getItem(),s)}constructor(t,s){this.spec=t,this.monitor=s}}function N1(e,t){const s=g.useMemo(()=>new O1(e,t),[t]);return g.useEffect(()=>{s.spec=e},[e]),s}function H1(e,t,s){const o=di(),i=N1(e,t),n=L1(e);co(function(){const[a,l]=C1(n,i,o);return t.receiveHandlerId(a),s.receiveHandlerId(a),l},[o,t,i,s,n.map(r=>r.toString()).join("|")])}function Ag(e,t){const s=Ig(e,t),o=A1(),i=k1(s.options);return H1(s,o,i),[Tg(s.collect,o,i),I1(i)]}const du="column",G1="flex items-center",B1="mr-3 cursor-move text-secondary",V1=({id:e,children:t,className:s,onFind:o,onMove:i,ariaLabel:n="Drag item"})=>{const r=g.useRef(null),a=g.useRef(null),l=typeof o=="function"?o(e):-1,[{isDragging:c},d,u]=T1(()=>({type:du,item:{id:e,originalIndex:l},collect:p=>{const f=p.getItem();return{isDragging:p.isDragging()&&f?.id===e}},end:(p,f)=>{if(!p)return;!f.didDrop()&&typeof i=="function"&&p.originalIndex>-1&&i(p.id,p.originalIndex)}}),[e,l,i]),[,h]=Ag(()=>({accept:du,hover:p=>{if(!(!p||p.id===e)&&typeof o=="function"&&typeof i=="function"){const f=o(e);i(p.id,f)}}}),[o,i,e]);return u(h(a)),d(r),m.jsxs("div",{ref:a,className:ce(G1,s),style:{opacity:c?0:1},"aria-roledescription":"Draggable item",children:[m.jsx("div",{ref:r,className:B1,"aria-label":n,children:m.jsx(V.IconGripVertical,{...ae})}),t]})},z1=e=>ge.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ge.createElement("path",{d:"M3.68628 10.3945C3.91003 10.408 4.10927 10.4422 4.2832 10.4978L4.28394 10.4971C4.5167 10.5698 4.71621 10.6662 4.87939 10.7871C4.9994 10.876 5.10332 10.974 5.18994 11.0815L5.27051 11.1929L5.27197 11.1943L5.34009 11.3079C5.38301 11.3838 5.42067 11.4597 5.45288 11.5356L5.49683 11.6492L5.49756 11.6514L5.53198 11.7649C5.56274 11.877 5.5838 11.9867 5.59497 12.0938C5.61194 12.23 5.62059 12.3501 5.62061 12.4534C5.62061 12.6166 5.57231 12.7639 5.47559 12.8906C5.41544 12.9694 5.325 13.0198 5.21997 13.0503C5.11455 13.0809 4.98537 13.0942 4.83691 13.0942C4.73711 13.0942 4.62608 13.0838 4.50439 13.0635C4.37577 13.0415 4.26002 12.9966 4.16089 12.9272L4.15869 12.9258C4.04118 12.8396 3.98657 12.7121 3.98657 12.5625C3.98655 12.2721 3.94576 12.0552 3.87231 11.9033L3.87158 11.9011C3.81572 11.7798 3.69406 11.7026 3.45337 11.7026C3.33114 11.7027 3.25307 11.7292 3.20435 11.7671C3.14221 11.8149 3.10061 11.864 3.07617 11.9128C3.04149 11.985 3.02355 12.0599 3.02124 12.1384V14.7905L3.02637 14.8652C3.03466 14.9384 3.05266 15.0073 3.07983 15.0725L3.10254 15.1201C3.12874 15.1672 3.16488 15.2124 3.21167 15.2556C3.2602 15.2978 3.33572 15.3259 3.45337 15.3259C3.56813 15.3259 3.65533 15.3041 3.71997 15.2673C3.78314 15.2313 3.83208 15.1772 3.86646 15.0996C3.94535 14.9186 3.98655 14.7002 3.98657 14.4412C3.98657 14.3004 4.04381 14.1839 4.1499 14.0991L4.19824 14.0647C4.33673 13.9762 4.55866 13.9431 4.83691 13.9431C5.09384 13.9431 5.30559 13.9858 5.43604 14.1013C5.55182 14.204 5.62061 14.3293 5.62061 14.4749C5.62057 14.7549 5.57953 15.0125 5.49536 15.2461L5.45654 15.3442C5.36294 15.5677 5.23261 15.7627 5.06543 15.928L4.99146 15.9968C4.58057 16.3629 4.03856 16.541 3.37793 16.541L3.12671 16.5278C3.00679 16.5188 2.87303 16.495 2.72607 16.4575C2.61505 16.4287 2.50136 16.3894 2.38696 16.3396L2.27197 16.2861C2.1155 16.2094 1.9705 16.0983 1.83691 15.9558L1.83618 15.9551C1.70598 15.8128 1.59909 15.6391 1.51392 15.4365L1.51318 15.4351C1.42797 15.2251 1.38722 14.9736 1.38721 14.6843V12.345C1.38721 12.1069 1.41644 11.892 1.47656 11.7026C1.52068 11.5616 1.57629 11.4337 1.64355 11.3196L1.7146 11.2097C1.81013 11.07 1.92167 10.9524 2.04932 10.8582C2.17206 10.7676 2.29884 10.6909 2.42871 10.6289L2.54297 10.5798C2.81231 10.4716 3.11394 10.4081 3.44678 10.3879L3.45337 10.3872L3.68628 10.3945Z",fill:"currentColor"}),ge.createElement("path",{d:"M8.10791 11.7371C8.33261 11.7371 8.5218 11.8023 8.61255 11.9758C8.68772 12.1131 8.72383 12.2741 8.72388 12.4534V12.7522H9.03003C9.21461 12.7522 9.37781 12.7845 9.5127 12.8562C9.68704 12.9456 9.7463 13.149 9.74634 13.3843C9.74634 13.612 9.68105 13.8034 9.50537 13.894L9.5061 13.8948C9.36923 13.9665 9.20861 14.0002 9.03003 14.0002H8.72388V14.3064C8.72388 14.4941 8.68994 14.6588 8.61768 14.7942L8.61841 14.7949C8.5293 14.9647 8.334 15.0226 8.10791 15.0227C7.87257 15.0227 7.66761 14.9685 7.5769 14.8L7.57617 14.7993C7.50612 14.6659 7.47583 14.4988 7.47583 14.3064V14.0002H7.18579C6.99507 14.0002 6.82804 13.9669 6.69214 13.894C6.52182 13.8026 6.46069 13.6102 6.46069 13.3843C6.46073 13.1491 6.51509 12.944 6.68335 12.8533L6.68481 12.8525L6.79102 12.8079C6.90305 12.7697 7.03293 12.7522 7.177 12.7522H7.47583V12.4534C7.47587 12.2683 7.50712 12.1056 7.57617 11.9707L7.5769 11.9685L7.61646 11.9092C7.72038 11.7825 7.90134 11.7371 8.10791 11.7371Z",fill:"currentColor"}),ge.createElement("path",{d:"M12.728 11.7371C12.9527 11.7371 13.1419 11.8023 13.2327 11.9758C13.3078 12.1131 13.3439 12.2741 13.344 12.4534V12.7522H13.6501C13.8347 12.7522 13.9979 12.7845 14.1328 12.8562C14.3072 12.9456 14.3664 13.149 14.3665 13.3843C14.3665 13.612 14.3012 13.8034 14.1255 13.894L14.1262 13.8948C13.9894 13.9665 13.8287 14.0002 13.6501 14.0002H13.344V14.3064C13.344 14.4941 13.3101 14.6588 13.2378 14.7942L13.2385 14.7949C13.1494 14.9647 12.9541 15.0226 12.728 15.0227C12.4927 15.0227 12.2877 14.9685 12.197 14.8L12.1963 14.7993C12.1262 14.6659 12.0959 14.4988 12.0959 14.3064V14.0002H11.8059C11.6152 14.0002 11.4482 13.9669 11.3123 13.894C11.1419 13.8026 11.0808 13.6102 11.0808 13.3843C11.0808 13.1491 11.1352 12.944 11.3035 12.8533L11.3049 12.8525L11.4111 12.8079C11.5232 12.7697 11.653 12.7522 11.7971 12.7522H12.0959V12.4534C12.096 12.2683 12.1272 12.1056 12.1963 11.9707L12.197 11.9685L12.2366 11.9092C12.3405 11.7825 12.5215 11.7371 12.728 11.7371Z",fill:"currentColor"}),ge.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50366C10.7457 1.52068 10.9072 1.59662 11.0303 1.71973L14.7803 5.46973C14.9209 5.61038 15 5.80109 15 6V9C15 9.41421 14.6642 9.75 14.25 9.75C13.8358 9.75 13.5 9.41421 13.5 9V6.75H11.25C10.8522 6.75 10.4708 6.59185 10.1895 6.31055C9.90815 6.02924 9.75 5.64783 9.75 5.25V3H5.25C5.05109 3 4.86038 3.07907 4.71973 3.21973C4.57907 3.36038 4.5 3.55109 4.5 3.75V9C4.5 9.41421 4.16421 9.75 3.75 9.75C3.33579 9.75 3 9.41421 3 9V3.75C3 3.15326 3.23722 2.58114 3.65918 2.15918C4.08114 1.73722 4.65326 1.5 5.25 1.5H10.5L10.574 1.50366ZM11.25 5.25H12.4395L11.25 4.06055V5.25Z",fill:"currentColor"})),W1=e=>ge.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ge.createElement("path",{d:"M4.29639 10.3945C4.50665 10.4083 4.69413 10.4433 4.85815 10.5L4.85889 10.4993C5.07789 10.5733 5.26574 10.6715 5.41919 10.7944C5.53204 10.8849 5.62958 10.9843 5.71069 11.0933L5.78613 11.2053L5.78687 11.2068L5.85059 11.3218C5.89058 11.3983 5.92606 11.4746 5.95605 11.551L5.99707 11.666L5.9978 11.6682L6.05566 11.8945C6.0708 11.9689 6.08168 12.0422 6.08862 12.1143C6.10449 12.252 6.11279 12.3734 6.11279 12.4775C6.11276 12.6403 6.06824 12.7876 5.97803 12.9155C5.92155 12.9956 5.83545 13.0472 5.73486 13.0789C5.63441 13.1104 5.51212 13.1243 5.37231 13.1243C5.32505 13.1243 5.27524 13.1215 5.2229 13.1162L5.05811 13.0928C4.93553 13.0701 4.82533 13.024 4.73145 12.9529L4.72998 12.9514C4.61882 12.8632 4.56958 12.7352 4.56958 12.5874C4.56955 12.2926 4.5312 12.0715 4.46191 11.9165L4.46045 11.9143C4.4319 11.8474 4.38931 11.8003 4.33154 11.7686C4.27185 11.7358 4.18944 11.7158 4.07812 11.7158C3.96626 11.7158 3.89622 11.7421 3.85254 11.7788C3.79519 11.8265 3.75637 11.8759 3.73315 11.926C3.70026 11.9999 3.68262 12.0771 3.68042 12.1582V14.8425L3.68555 14.9187C3.69337 14.9937 3.71038 15.0643 3.73608 15.1311L3.75732 15.1802C3.78176 15.2276 3.81496 15.2727 3.85767 15.3157L3.89575 15.3442C3.93843 15.3699 3.99697 15.386 4.07812 15.386C4.18296 15.386 4.26146 15.3647 4.31982 15.3289C4.37727 15.2935 4.4233 15.2389 4.45605 15.1589C4.53037 14.9746 4.56957 14.7522 4.56958 14.4888C4.56958 14.3307 4.63662 14.2007 4.7666 14.1116L4.82007 14.0801C4.95284 14.0119 5.14337 13.9856 5.37231 13.9856C5.61445 13.9856 5.81633 14.0298 5.94067 14.1489C6.04986 14.2536 6.11274 14.379 6.11279 14.5225C6.11279 14.8453 6.06245 15.1386 5.95972 15.3999C5.85998 15.6574 5.71501 15.8781 5.52466 16.0598L5.52393 16.0591C5.13817 16.4307 4.62871 16.6128 4.00708 16.6128C3.95774 16.6128 3.87811 16.6081 3.77124 16.5996C3.65793 16.5904 3.53127 16.5659 3.39331 16.5278C3.28866 16.4984 3.18149 16.4584 3.07397 16.4077L2.96631 16.3535C2.81858 16.2752 2.68196 16.1624 2.55688 16.0181L2.55615 16.0166C2.43435 15.8725 2.33453 15.6972 2.25513 15.4929L2.25439 15.4915C2.17508 15.28 2.13721 15.0267 2.13721 14.7349V12.3669C2.13721 12.1269 2.16476 11.9109 2.2207 11.7202L2.26538 11.5825C2.3136 11.4491 2.37234 11.3289 2.44263 11.2229C2.53187 11.0816 2.63607 10.9621 2.7561 10.8662C2.87117 10.7743 2.98996 10.6964 3.11206 10.6333L3.11353 10.6326L3.22046 10.5828C3.47384 10.4727 3.75793 10.4085 4.0708 10.3879L4.07812 10.3872L4.29639 10.3945Z",fill:"currentColor"}),ge.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50366C10.7457 1.52068 10.9072 1.59662 11.0303 1.71973L14.7803 5.46973C14.9209 5.61038 15 5.80109 15 6V14.25C15 14.8467 14.7628 15.4189 14.3408 15.8408C13.9189 16.2628 13.3467 16.5 12.75 16.5H8.625C8.21079 16.5 7.875 16.1642 7.875 15.75C7.875 15.3358 8.21079 15 8.625 15H12.75C12.9489 15 13.1396 14.9209 13.2803 14.7803C13.4209 14.6396 13.5 14.4489 13.5 14.25V6.75H11.25C10.8522 6.75 10.4708 6.59185 10.1895 6.31055C9.90815 6.02924 9.75 5.64783 9.75 5.25V3H5.25C5.05109 3 4.86038 3.07907 4.71973 3.21973C4.57907 3.36038 4.5 3.55109 4.5 3.75V9C4.5 9.41421 4.16421 9.75 3.75 9.75C3.33579 9.75 3 9.41421 3 9V3.75C3 3.15326 3.23722 2.58114 3.65918 2.15918C4.08114 1.73722 4.65326 1.5 5.25 1.5H10.5L10.574 1.50366ZM11.25 5.25H12.4395L11.25 4.06055V5.25Z",fill:"currentColor"})),_1=e=>ge.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ge.createElement("path",{d:"M3.62109 10.571C3.83849 10.5842 4.03206 10.618 4.20117 10.6721L4.2019 10.6714C4.42776 10.742 4.62121 10.8352 4.77979 10.9526C4.89663 11.0392 4.99793 11.135 5.08228 11.2397L5.16064 11.3474L5.16211 11.3489L5.22803 11.4595C5.26973 11.5332 5.30659 11.6069 5.33789 11.6807L5.38037 11.7905L5.3811 11.7935L5.44116 12.0117C5.45675 12.0826 5.46834 12.1524 5.47559 12.2212L5.49463 12.4087C5.49888 12.4674 5.50049 12.5222 5.50049 12.5728C5.50045 12.7317 5.45415 12.8755 5.35986 12.999C5.30088 13.0762 5.2117 13.1246 5.10938 13.1543C5.0067 13.1841 4.88146 13.1975 4.7373 13.1975C4.64029 13.1975 4.53244 13.1872 4.41431 13.1675C4.28898 13.1461 4.17557 13.1026 4.07886 13.0349L4.07739 13.0334C3.96236 12.9491 3.90894 12.8243 3.90894 12.6782C3.90893 12.3968 3.86925 12.187 3.79834 12.0403L3.79761 12.0381C3.74418 11.922 3.62816 11.847 3.39551 11.8469C3.27715 11.8469 3.20179 11.873 3.15527 11.9092C3.09597 11.9548 3.05572 12.0012 3.03223 12.0476L3.03296 12.0483C2.99919 12.1182 2.98102 12.1906 2.97876 12.2666V14.8396L2.98389 14.9114C2.99188 14.9821 3.00888 15.049 3.03516 15.1121L3.05786 15.1582C3.08304 15.2033 3.11768 15.2464 3.1626 15.2878C3.2089 15.3285 3.28115 15.356 3.39551 15.356C3.50633 15.3559 3.58982 15.3349 3.65186 15.2996C3.71249 15.2651 3.75936 15.2131 3.79248 15.1384L3.84302 15.0007C3.88665 14.8554 3.90893 14.6891 3.90894 14.5005C3.90894 14.363 3.96502 14.2494 4.0686 14.1665L4.11621 14.1328C4.25147 14.0465 4.46739 14.0134 4.7373 14.0134C4.98658 14.0134 5.19278 14.0552 5.32031 14.168C5.43323 14.268 5.5004 14.3903 5.50049 14.5327C5.50049 14.8049 5.46077 15.0556 5.37891 15.2827L5.34155 15.3779C5.23762 15.6261 5.08621 15.8373 4.88892 16.0115L4.88965 16.0122C4.49029 16.3681 3.96383 16.541 3.32227 16.541C3.27168 16.541 3.18935 16.5367 3.07837 16.5286C3.02014 16.5242 2.95789 16.5158 2.89307 16.5044L2.68799 16.4597C2.5801 16.4317 2.47025 16.3938 2.35913 16.3455L2.2478 16.2935C2.09553 16.2188 1.95433 16.1112 1.82446 15.9727L1.82373 15.9712C1.69712 15.8328 1.593 15.6642 1.51025 15.4673L1.50952 15.4658C1.42669 15.2616 1.38721 15.0172 1.38721 14.7363V12.4666C1.38723 12.2355 1.41597 12.0273 1.47437 11.8433C1.53119 11.6615 1.60684 11.502 1.70361 11.3665L1.77686 11.2676C1.85263 11.1732 1.9374 11.0913 2.03101 11.0222C2.15024 10.9342 2.27322 10.8598 2.39941 10.7996L2.40015 10.7988L2.51074 10.7512C2.77229 10.6462 3.0652 10.5848 3.38818 10.5652L3.39551 10.5645L3.62109 10.571Z",fill:"currentColor"}),ge.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50366C10.7457 1.52068 10.9072 1.59662 11.0303 1.71973L14.7803 5.46973C14.9209 5.61038 15 5.80109 15 6V14.25C15 14.8467 14.7628 15.4189 14.3408 15.8408C13.9189 16.2628 13.3467 16.5 12.75 16.5H12C11.5858 16.5 11.25 16.1642 11.25 15.75C11.25 15.3358 11.5858 15 12 15H12.75C12.9489 15 13.1396 14.9209 13.2803 14.7803C13.4209 14.6396 13.5 14.4489 13.5 14.25V6.75H11.25C10.8522 6.75 10.4708 6.59185 10.1895 6.31055C9.90815 6.02924 9.75 5.64783 9.75 5.25V3H5.25C5.05109 3 4.86038 3.07907 4.71973 3.21973C4.57907 3.36038 4.5 3.55109 4.5 3.75V9C4.5 9.41421 4.16421 9.75 3.75 9.75C3.33579 9.75 3 9.41421 3 9V3.75C3 3.15326 3.23722 2.58114 3.65918 2.15918C4.08114 1.73722 4.65326 1.5 5.25 1.5H10.5L10.574 1.50366ZM11.25 5.25H12.4395L11.25 4.06055V5.25Z",fill:"currentColor"}),ge.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.36914 11.28C9.50263 11.28 9.62352 11.3063 9.72583 11.3643L9.7251 11.365C9.85906 11.4379 9.90454 11.5838 9.90454 11.7429C9.9045 11.7567 9.90157 11.7778 9.89941 11.7935C9.89658 11.814 9.89242 11.8422 9.88696 11.8777C9.87611 11.9455 9.8639 12.0222 9.85034 12.1062C9.84553 12.136 9.84018 12.1643 9.83569 12.1912H10.0525C10.1919 12.1912 10.3171 12.2148 10.4216 12.2688L10.4209 12.2695C10.5686 12.3412 10.6128 12.5089 10.6128 12.6863C10.6128 12.8587 10.5617 13.0123 10.4194 13.0898L10.4187 13.0906C10.3122 13.1472 10.1885 13.1726 10.0525 13.1726H9.67529L9.55225 13.8589H9.75952C9.89706 13.8589 10.0206 13.8819 10.1243 13.9343C10.2748 14.005 10.3198 14.1752 10.3198 14.354C10.3198 14.5291 10.2702 14.6875 10.1243 14.7627L10.1235 14.7634C10.0176 14.8164 9.89461 14.8403 9.75952 14.8403H9.38452L9.33398 15.1677L9.33325 15.1714C9.30492 15.3271 9.26297 15.4669 9.20728 15.5903L9.20801 15.5911C9.17656 15.6626 9.13001 15.7228 9.06592 15.7646C9.00162 15.8065 8.92683 15.8247 8.84839 15.8247C8.72 15.8247 8.60307 15.8041 8.50122 15.7581L8.49976 15.7573C8.35755 15.6908 8.31299 15.5386 8.31299 15.3787C8.31299 15.3406 8.31787 15.2939 8.32617 15.241L8.35913 15.0242C8.36863 14.9624 8.37948 14.9012 8.38989 14.8403H7.92847L7.87793 15.1677L7.8772 15.1714C7.84887 15.3271 7.80691 15.4669 7.75122 15.5903L7.75195 15.5911C7.72046 15.6627 7.6734 15.7228 7.60913 15.7646C7.54487 15.8064 7.47071 15.8247 7.39233 15.8247C7.26394 15.8247 7.14702 15.8041 7.04517 15.7581L7.0437 15.7573C6.90149 15.6908 6.85693 15.5387 6.85693 15.3787C6.85694 15.3406 6.86181 15.2939 6.87012 15.241L6.90308 15.0242C6.91257 14.9624 6.92342 14.9012 6.93384 14.8403H6.6687C6.52906 14.8403 6.40313 14.8167 6.29663 14.7634L6.29297 14.762C6.15355 14.6853 6.10844 14.5261 6.1084 14.354C6.1084 14.1782 6.1487 14.0079 6.29297 13.9358C6.39784 13.882 6.52535 13.8589 6.6687 13.8589H7.09497L7.21802 13.1726H6.95361C6.81311 13.1726 6.68646 13.1475 6.57935 13.0906L6.57788 13.0898C6.43874 13.0135 6.39332 12.8568 6.39331 12.6863C6.39331 12.5105 6.43361 12.3402 6.57788 12.2681C6.68271 12.2144 6.81036 12.1912 6.95361 12.1912H7.38721L7.46045 11.7561C7.47174 11.6625 7.50842 11.5673 7.56372 11.4712C7.63824 11.3418 7.76255 11.2801 7.91309 11.28C8.04657 11.28 8.16746 11.3063 8.26978 11.3643L8.26904 11.365C8.403 11.4379 8.44849 11.5838 8.44849 11.7429C8.44844 11.7567 8.44552 11.7778 8.44336 11.7935C8.44053 11.814 8.43636 11.8422 8.43091 11.8777C8.42006 11.9455 8.40784 12.0222 8.39429 12.1062C8.38947 12.136 8.38413 12.1643 8.37964 12.1912H8.84326L8.9165 11.7561C8.92779 11.6625 8.96448 11.5673 9.01978 11.4712C9.0943 11.3418 9.21861 11.2801 9.36914 11.28ZM8.09619 13.8589H8.55103L8.67407 13.1726H8.21924L8.09619 13.8589Z",fill:"currentColor"})),j1=e=>ge.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ge.createElement("path",{d:"M4.43188 10.4409C4.65285 10.4409 4.85471 10.4869 4.99951 10.6152L4.99878 10.6159C5.13097 10.7305 5.21409 10.881 5.25146 11.0576C5.28474 11.2148 5.30052 11.3869 5.30054 11.5724V15.4323C5.30054 15.6193 5.28417 15.7927 5.25146 15.9516L5.2522 15.9523C5.21779 16.1313 5.13551 16.2842 4.99951 16.3976L4.99878 16.3969C4.85386 16.52 4.65269 16.5646 4.43188 16.5646C4.21337 16.5646 4.01411 16.5195 3.86792 16.3976L3.86353 16.394C3.73466 16.2798 3.65263 16.1299 3.6123 15.9553L3.61157 15.9516C3.57826 15.7941 3.5625 15.6205 3.5625 15.4323V11.5724C3.56252 11.3869 3.5783 11.2148 3.61157 11.0576C3.64882 10.8815 3.72996 10.7302 3.85986 10.6152L3.86133 10.6137C4.00804 10.4875 4.2103 10.4409 4.43188 10.4409Z",fill:"currentColor"}),ge.createElement("path",{d:"M8.07129 10.4474C8.18434 10.4599 8.28945 10.4924 8.3811 10.55L8.38184 10.5493C8.45754 10.5942 8.52569 10.6451 8.58472 10.7016L8.64111 10.7602L8.64331 10.7631L8.69385 10.8298C8.72596 10.8768 8.75504 10.9284 8.78101 10.9836L8.81763 11.0685L8.81909 11.0729L9.85986 13.8928V11.2692C9.85986 11.0565 9.89522 10.8654 9.98291 10.7119L9.98364 10.7104L10.0349 10.6393C10.1656 10.4886 10.3781 10.4409 10.5974 10.4409C10.8635 10.4409 11.125 10.4947 11.2529 10.6965C11.3535 10.8508 11.3928 11.0487 11.3928 11.2692V15.4323C11.3928 15.6163 11.3809 15.7863 11.3577 15.9413L11.3584 15.9421C11.3349 16.1167 11.2678 16.2708 11.1467 16.3881C11.0102 16.5202 10.8106 16.5646 10.5974 16.5646H10.0554C9.86994 16.5646 9.69972 16.5199 9.56104 16.416C9.44129 16.3261 9.3452 16.215 9.27466 16.0842C9.21353 15.9706 9.16292 15.8593 9.12378 15.7509L8.14893 13.1091V15.7363C8.14893 15.9493 8.11322 16.1406 8.02661 16.2958L8.02588 16.2973C7.90706 16.5052 7.66112 16.5646 7.41138 16.5646C7.14233 16.5646 6.88122 16.5106 6.75 16.312C6.64812 16.1572 6.60791 15.9581 6.60791 15.7363V11.5724C6.60792 11.3882 6.61818 11.2193 6.63867 11.0671V11.0641L6.66724 10.9367C6.7042 10.8142 6.76699 10.706 6.85986 10.6188C6.9982 10.4862 7.19704 10.4409 7.41138 10.4409H7.95337L8.07129 10.4474Z",fill:"currentColor"}),ge.createElement("path",{d:"M13.5688 10.4409C13.7898 10.4409 13.9917 10.4869 14.1365 10.6152L14.1357 10.6159C14.2679 10.7305 14.3511 10.881 14.3884 11.0576C14.4217 11.2148 14.4375 11.3869 14.4375 11.5724V15.4323C14.4375 15.6193 14.4211 15.7927 14.3884 15.9516L14.3892 15.9523C14.3548 16.1313 14.2725 16.2842 14.1365 16.3976L14.1357 16.3969C13.9908 16.52 13.7897 16.5646 13.5688 16.5646C13.3503 16.5646 13.1511 16.5195 13.0049 16.3976L13.0005 16.394C12.8716 16.2798 12.7896 16.1299 12.7493 15.9553L12.7485 15.9516C12.7152 15.7941 12.6995 15.6205 12.6995 15.4323V11.5724C12.6995 11.3869 12.7153 11.2148 12.7485 11.0576C12.7858 10.8815 12.8669 10.7302 12.9968 10.6152L12.9983 10.6137C13.145 10.4875 13.3473 10.4409 13.5688 10.4409Z",fill:"currentColor"}),ge.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50385C10.7457 1.52087 10.9072 1.59681 11.0303 1.71991L14.7803 5.46991C14.9208 5.61054 15 5.80136 15 6.00018V9.00018C14.9998 9.41423 14.6641 9.75018 14.25 9.75018C13.8359 9.75018 13.5002 9.41423 13.5 9.00018V6.75018H11.25C10.8523 6.75018 10.4707 6.59192 10.1895 6.31073C9.90824 6.02951 9.7501 5.64788 9.75 5.25018V3.00018H5.25C5.05109 3.00018 4.86038 3.07926 4.71973 3.21991C4.57919 3.36054 4.5 3.55136 4.5 3.75018V9.00018C4.4998 9.41423 4.16409 9.75018 3.75 9.75018C3.33591 9.75018 3.0002 9.41423 3 9.00018V3.75018C3 3.15353 3.23734 2.5813 3.65918 2.15936C4.08114 1.73741 4.65326 1.50018 5.25 1.50018H10.5L10.574 1.50385ZM11.25 5.25018H12.4395L11.25 4.06073V5.25018Z",fill:"currentColor"})),U1=e=>ge.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ge.createElement("path",{d:"M6.76831 10.8267C6.93291 10.8267 7.08404 10.8408 7.22021 10.8691L7.35205 10.9021L7.35278 10.9028L7.46851 10.9431C7.57872 10.986 7.67614 11.038 7.75928 11.0991C7.84245 11.1591 7.91481 11.2265 7.97388 11.3005L8.02881 11.3767L8.02954 11.3774L8.11011 11.5254C8.13317 11.5747 8.15233 11.6249 8.16797 11.6755C8.19815 11.7711 8.21863 11.8631 8.22656 11.9502C8.23376 12.0294 8.23755 12.096 8.23755 12.1479C8.23753 12.318 8.17338 12.4626 8.04639 12.572C7.92503 12.676 7.77653 12.7265 7.60913 12.7266C7.4711 12.7266 7.34146 12.6749 7.22241 12.583C7.1027 12.4905 7.02328 12.3741 7.02319 12.2329C7.02319 12.0468 6.98759 11.9498 6.94775 11.907L6.94629 11.9055C6.90561 11.8606 6.83878 11.8294 6.72583 11.8293C6.58234 11.8293 6.48534 11.856 6.42334 11.896C6.4086 11.9056 6.38747 11.9281 6.37061 11.981C6.35372 12.0341 6.34351 12.1099 6.34351 12.2117C6.34581 12.2878 6.36799 12.3546 6.40869 12.4153C6.45761 12.4821 6.52298 12.549 6.60718 12.6138L6.73608 12.7053C6.78632 12.7386 6.84449 12.7751 6.9104 12.8145C7.04454 12.8945 7.16167 12.9644 7.2605 13.0232L7.44507 13.1426C7.50565 13.1844 7.56597 13.2284 7.62524 13.2744C7.74715 13.3666 7.8562 13.4715 7.95337 13.5886C8.05276 13.7085 8.13297 13.8432 8.1936 13.9922C8.25599 14.1456 8.28891 14.3172 8.29395 14.5049V14.5364C8.29395 14.7339 8.26896 14.9141 8.21777 15.0754V15.0776C8.11696 15.3776 7.94914 15.6082 7.7124 15.761L7.71313 15.7617C7.62701 15.8179 7.53944 15.8644 7.45166 15.9016L7.36304 15.936C7.30225 15.9571 7.24075 15.9753 7.1792 15.9902L6.99243 16.0261C6.87331 16.0431 6.75886 16.0529 6.65039 16.0554H6.61304C6.41017 16.0554 6.22414 16.0345 6.05786 15.9917C5.89914 15.9495 5.75823 15.8922 5.63892 15.8196L5.63745 15.8188C5.52025 15.7449 5.42093 15.6589 5.34155 15.561C5.26338 15.4674 5.20001 15.3681 5.15332 15.2644C5.10802 15.1659 5.07431 15.0659 5.05371 14.9656C5.03361 14.8676 5.02297 14.7738 5.02295 14.6851C5.02295 14.5014 5.0798 14.3447 5.20898 14.2375L5.20972 14.2368L5.30493 14.1731C5.40409 14.1186 5.51594 14.0918 5.63745 14.0918C5.79553 14.0919 5.94175 14.1407 6.07251 14.2354L6.12451 14.2764C6.2216 14.3622 6.27861 14.4745 6.2959 14.6067L6.30103 14.6741L6.31055 14.7847C6.32502 14.8796 6.35383 14.9312 6.38306 14.9568C6.43071 14.9963 6.50789 15.0238 6.63135 15.0242C6.76743 15.0198 6.85874 14.9863 6.91772 14.9355L6.91846 14.9341L6.95361 14.8938C6.98575 14.8434 7.00924 14.7604 7.00928 14.6287C7.00928 14.4903 6.96843 14.3706 6.8877 14.2661L6.88696 14.2646C6.80068 14.1504 6.68858 14.0439 6.55078 13.946L6.55005 13.9453C6.40626 13.841 6.25592 13.7396 6.10034 13.6421C5.93262 13.5343 5.77326 13.4207 5.62427 13.303L5.62354 13.3022C5.46846 13.1772 5.34021 13.0351 5.24121 12.8752C5.13746 12.7076 5.0852 12.514 5.08008 12.2988V12.2388L5.0874 12.0505C5.10126 11.869 5.13388 11.7086 5.18628 11.5708V11.5693L5.2478 11.4382C5.31532 11.3136 5.40255 11.2077 5.51074 11.1233L5.62207 11.0464C5.73813 10.9764 5.87099 10.9263 6.01831 10.894C6.21201 10.8494 6.43196 10.8267 6.67603 10.8267H6.76831Z",fill:"currentColor"}),ge.createElement("path",{d:"M14.2266 10.8062C14.3565 10.8062 14.4736 10.8329 14.5693 10.8933L14.5701 10.8926L14.5715 10.894L14.5737 10.8948L14.573 10.8955C14.6342 10.9321 14.6895 10.9722 14.7363 11.0171L14.781 11.064L14.7825 11.0662L14.8235 11.1204C14.8363 11.1392 14.8492 11.159 14.8608 11.1797L14.9246 11.3159L14.9253 11.3181L15.9163 14.0024V11.4705C15.9163 11.2922 15.9461 11.1369 16.0159 11.0149L16.054 10.9607C16.1527 10.8467 16.3175 10.8062 16.5022 10.8062C16.7284 10.8062 16.9271 10.8532 17.0229 11.0017C17.1032 11.1237 17.1379 11.2847 17.1379 11.4705V15.0535C17.1379 15.21 17.1275 15.3541 17.1079 15.4849L17.1086 15.4856C17.0896 15.6273 17.0355 15.7491 16.9409 15.8408C16.837 15.9414 16.6806 15.9784 16.5022 15.9785H16.0356C15.8837 15.9785 15.7483 15.9422 15.6394 15.8606C15.5419 15.7874 15.4638 15.6974 15.4065 15.5911C15.3549 15.4953 15.3125 15.4018 15.2798 15.3113L14.3459 12.7815V15.3149C14.3459 15.4932 14.316 15.6489 14.2471 15.7727L14.2463 15.7734C14.158 15.9281 13.9711 15.9784 13.76 15.9785C13.53 15.9785 13.3292 15.9315 13.2312 15.783C13.151 15.6609 13.1169 15.5006 13.1169 15.3149V11.7319C13.117 11.575 13.126 11.4319 13.1433 11.3035V11.3013L13.166 11.1987C13.1955 11.1009 13.2454 11.0157 13.3176 10.9475L13.3594 10.9124C13.4627 10.8363 13.6027 10.8062 13.76 10.8062H14.2266Z",fill:"currentColor"}),ge.createElement("path",{d:"M3.62183 10.73C3.8058 10.73 3.96571 10.7696 4.07959 10.8677C4.185 10.9586 4.25306 11.0796 4.28613 11.2229C4.31675 11.3557 4.33154 11.5018 4.33154 11.6602V14.3606C4.33154 14.617 4.29481 14.8413 4.21655 15.0293C4.15993 15.1652 4.09098 15.286 4.00928 15.3896L3.92285 15.4878C3.80762 15.6056 3.67869 15.6971 3.5376 15.7625L3.53833 15.7632C3.40115 15.8269 3.27011 15.872 3.14722 15.8979L3.14795 15.8987C3.09669 15.9112 3.04501 15.9213 2.99414 15.9294L2.8418 15.9478C2.74998 15.9548 2.68156 15.9587 2.64111 15.9587C2.3706 15.9587 2.13396 15.928 1.93506 15.8643C1.73937 15.8022 1.56914 15.7204 1.42749 15.6174C1.28776 15.5158 1.17335 15.3984 1.08691 15.2651L1.02686 15.1685C0.970789 15.0715 0.926873 14.9732 0.895752 14.874L0.896484 14.8733C0.852315 14.745 0.821564 14.6203 0.806396 14.499L0.805664 14.4968C0.793555 14.3806 0.786621 14.2779 0.786621 14.1899C0.786659 14.0481 0.829716 13.9196 0.914062 13.8091C0.968035 13.7386 1.04873 13.6949 1.13965 13.6685C1.231 13.642 1.34202 13.6297 1.46851 13.6296C1.55651 13.6297 1.65224 13.6393 1.75415 13.6567C1.8653 13.6758 1.96539 13.7157 2.05151 13.7783C2.15785 13.853 2.20677 13.9666 2.20679 14.0977C2.20679 14.3421 2.24112 14.5246 2.302 14.6528L2.32178 14.6865C2.37332 14.7613 2.46833 14.8095 2.64111 14.8096C2.74386 14.8095 2.80532 14.7883 2.8396 14.762L2.84106 14.7605L2.90552 14.7019C2.92253 14.6822 2.9356 14.6623 2.94507 14.6426L2.97803 14.5518C2.98565 14.5209 2.98953 14.4889 2.99048 14.4565V11.9641H2.17236C2.0293 11.9641 1.8922 11.9536 1.76221 11.9312L1.76001 11.9304C1.62252 11.9035 1.50268 11.8482 1.40698 11.7612L1.40625 11.7598C1.30008 11.6602 1.25688 11.5177 1.25684 11.3547C1.25684 11.1882 1.29936 11.0419 1.40625 10.9417C1.49986 10.8517 1.6187 10.7951 1.75635 10.7681L1.9585 10.7395C2.02775 10.7333 2.09935 10.73 2.17236 10.73H3.62183Z",fill:"currentColor"}),ge.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0061 10.8398C11.1058 10.8474 11.2146 10.8676 11.3313 10.8984L11.332 10.8977C11.4562 10.9275 11.5817 10.9747 11.7078 11.0376L11.803 11.0896C11.8653 11.1277 11.926 11.1727 11.9839 11.2244L12.0688 11.3071L12.0696 11.3079L12.1472 11.4001C12.2197 11.4965 12.2807 11.608 12.3303 11.7327L12.3772 11.8674C12.417 12.0081 12.4358 12.1667 12.4358 12.3406V14.4111C12.4358 14.649 12.4035 14.8579 12.3347 15.0337L12.334 15.0352C12.2654 15.204 12.1782 15.349 12.071 15.4666C11.9653 15.5823 11.8439 15.6747 11.7085 15.7412L11.7078 15.7405C11.5864 15.8034 11.4622 15.8534 11.335 15.8877C11.2172 15.9189 11.1066 15.9387 11.0061 15.9463C10.9136 15.9532 10.8413 15.9573 10.793 15.9573H10.675L10.4626 15.9463C10.362 15.9387 10.2518 15.919 10.1338 15.8877C10.0122 15.8554 9.8873 15.8055 9.75952 15.7405C9.62706 15.6742 9.50578 15.5832 9.39624 15.4688L9.39551 15.468C9.28579 15.3506 9.19561 15.2056 9.12451 15.0366L9.12378 15.0352C9.05226 14.8589 9.01835 14.6495 9.01831 14.4111V12.3406C9.01831 12.105 9.05259 11.8998 9.12451 11.7297C9.19368 11.5618 9.28389 11.4184 9.39697 11.3027C9.50677 11.1905 9.62826 11.1014 9.76099 11.0376C9.82393 11.0062 9.88688 10.9792 9.94849 10.957L9.94922 10.9563L10.1323 10.8992L10.1345 10.8984L10.3066 10.8604C10.3612 10.8506 10.4136 10.8436 10.4626 10.8398L10.675 10.8289H10.793C10.8413 10.8289 10.9136 10.8329 11.0061 10.8398ZM10.738 11.9473C10.6399 11.9473 10.5796 11.9688 10.5439 11.9963L10.5432 11.9971C10.4934 12.0354 10.4596 12.0746 10.4385 12.1135L10.4377 12.1143C10.4103 12.1641 10.3949 12.222 10.3931 12.2886V14.5393L10.4062 14.6309L10.4385 14.7151L10.4392 14.7158L10.481 14.7766C10.4976 14.7958 10.5181 14.8147 10.5417 14.833L10.5732 14.8521C10.6101 14.8689 10.6637 14.8806 10.738 14.8806C10.8345 14.8805 10.8925 14.8598 10.9255 14.8345C10.9743 14.7969 11.0075 14.7565 11.0288 14.7158C11.054 14.6605 11.0699 14.5993 11.0757 14.5327V12.2944L11.0588 12.197C11.051 12.167 11.0406 12.138 11.0281 12.1106C11.0069 12.0728 10.9738 12.0343 10.9255 11.9971L10.9233 11.9949C10.8905 11.9684 10.8335 11.9474 10.738 11.9473Z",fill:"currentColor"}),ge.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50366C10.7457 1.52068 10.9072 1.59662 11.0303 1.71973L14.7803 5.46973C14.9209 5.61038 15 5.80109 15 6V9C15 9.41421 14.6642 9.75 14.25 9.75C13.8358 9.75 13.5 9.41421 13.5 9V6.75H11.25C10.8522 6.75 10.4708 6.59185 10.1895 6.31055C9.90815 6.02924 9.75 5.64783 9.75 5.25V3H5.25C5.05109 3 4.86038 3.07907 4.71973 3.21973C4.57907 3.36038 4.5 3.55109 4.5 3.75V9C4.5 9.41421 4.16421 9.75 3.75 9.75C3.33579 9.75 3 9.41421 3 9V3.75C3 3.15326 3.23722 2.58114 3.65918 2.15918C4.08114 1.73722 4.65326 1.5 5.25 1.5H10.5L10.574 1.50366ZM11.25 5.25H12.4395L11.25 4.06055V5.25Z",fill:"currentColor"})),$1=e=>ge.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ge.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50366C10.7457 1.52068 10.9072 1.59662 11.0303 1.71973L14.7803 5.46973C14.9209 5.61038 15 5.80109 15 6V14.25C15 14.8467 14.7628 15.4189 14.3408 15.8408C13.9189 16.2628 13.3467 16.5 12.75 16.5H12C11.5858 16.5 11.25 16.1642 11.25 15.75C11.25 15.3358 11.5858 15 12 15H12.75C12.9489 15 13.1396 14.9209 13.2803 14.7803C13.4209 14.6396 13.5 14.4489 13.5 14.25V6.75H11.25C10.8522 6.75 10.4708 6.59185 10.1895 6.31055C9.90815 6.02924 9.75 5.64783 9.75 5.25V3H5.25C5.05109 3 4.86038 3.07907 4.71973 3.21973C4.57907 3.36038 4.5 3.55109 4.5 3.75V9C4.5 9.41421 4.16421 9.75 3.75 9.75C3.33579 9.75 3 9.41421 3 9V3.75C3 3.15326 3.23722 2.58114 3.65918 2.15918C4.08114 1.73722 4.65326 1.5 5.25 1.5H10.5L10.574 1.50366ZM11.25 5.25H12.4395L11.25 4.06055V5.25Z",fill:"currentColor"}),ge.createElement("path",{d:"M2.39355 10.5C2.53545 10.5 2.6592 10.5122 2.75757 10.5417C2.88987 10.5815 2.99161 10.6954 3.07251 10.8289L3.15747 10.9885L3.25195 11.2031L3.25269 11.2046L3.35229 11.4683C3.38786 11.5664 3.42601 11.6752 3.46655 11.7942L3.76318 12.6665L3.76392 12.6687L3.76904 12.6848L3.79907 12.5911L3.94849 12.1348C3.99515 11.9948 4.03674 11.8689 4.073 11.7576L4.07373 11.7561L4.1814 11.4434C4.21489 11.3495 4.24596 11.265 4.27515 11.1907L4.36084 10.9849C4.38855 10.9239 4.41584 10.8705 4.44214 10.8252C4.51581 10.6953 4.61188 10.5823 4.74243 10.5417H4.7439L4.82153 10.5227C4.90321 10.5069 4.99686 10.5 5.09985 10.5H5.67041C5.87137 10.5 6.05265 10.5425 6.17505 10.6619L6.17944 10.6655C6.29073 10.7714 6.35329 10.9108 6.375 11.072C6.39695 11.2133 6.40721 11.3701 6.40723 11.5415V15.5149C6.4072 15.7232 6.3696 15.9065 6.27686 16.0474C6.16065 16.2235 5.92578 16.2751 5.67041 16.2751C5.43573 16.2751 5.21924 16.2184 5.11157 16.0378L5.10938 16.0342C5.03005 15.8921 4.9966 15.7149 4.99658 15.5149V12.8335L4.4436 14.4456L4.44141 14.4521C4.39239 14.576 4.32667 14.6919 4.24658 14.8008L4.24731 14.8015C4.14341 14.9438 3.9882 15.008 3.80933 15.0081H3.73096C3.55351 15.008 3.40015 14.9437 3.29004 14.8081L3.28857 14.8066C3.20076 14.6954 3.13356 14.575 3.08862 14.4463L2.53564 12.8496V15.5149C2.53562 15.7149 2.50218 15.8921 2.42285 16.0342L2.42212 16.0356C2.31692 16.2193 2.09741 16.2751 1.86182 16.2751C1.60639 16.2751 1.37154 16.2236 1.25537 16.0474C1.16263 15.9065 1.12502 15.7232 1.125 15.5149V11.5415C1.12501 11.3697 1.13426 11.2129 1.15356 11.072L1.1543 11.0691L1.17993 10.9526C1.21308 10.8409 1.26884 10.7425 1.35059 10.6633L1.39966 10.6223C1.52082 10.5332 1.68333 10.5 1.86182 10.5H2.39355Z",fill:"currentColor"}),ge.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.1106 10.5C9.62746 10.5 10.0624 10.6251 10.4026 10.8875L10.5256 10.9944C10.6405 11.1071 10.7342 11.238 10.8062 11.3862C10.9039 11.5876 10.9497 11.8187 10.9497 12.074V14.4983C10.9497 14.7119 10.927 14.9051 10.8779 15.0754C10.8306 15.2398 10.7676 15.3875 10.689 15.5156L10.6875 15.5186C10.6079 15.6408 10.5165 15.7481 10.4143 15.8386C10.3155 15.9261 10.2132 15.9989 10.1074 16.0547L10.1067 16.054C9.86566 16.1854 9.58987 16.2585 9.28271 16.2751H7.97681C7.77408 16.2751 7.59145 16.2335 7.46704 16.1169C7.35471 16.0115 7.2898 15.8714 7.26489 15.7097C7.24266 15.5651 7.23194 15.4033 7.23193 15.2256V11.5415C7.23195 11.3663 7.2426 11.2069 7.26489 11.0647C7.28985 10.9032 7.35482 10.7635 7.46704 10.6582C7.59145 10.5416 7.77403 10.5 7.97681 10.5H9.1106ZM8.72095 15.0447H9.07544C9.15931 15.0426 9.23737 15.0225 9.31055 14.9839L9.31348 14.9817L9.35815 14.9553C9.40066 14.926 9.43743 14.8876 9.46802 14.8381L9.46875 14.8367L9.49438 14.7861C9.51748 14.7305 9.53172 14.6593 9.53174 14.5686V12.2615C9.53174 12.1256 9.50631 12.0248 9.46509 11.9517L9.46362 11.9495C9.42061 11.8696 9.36785 11.8162 9.30762 11.7825C9.25706 11.7542 9.19978 11.7342 9.1355 11.7231L9.06885 11.7151H8.72095V15.0447Z",fill:"currentColor"})),K1=e=>ge.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ge.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.6416 10.3784C3.95675 10.4068 4.24355 10.4808 4.49927 10.6033L4.68896 10.7058C4.75102 10.7437 4.81209 10.7853 4.87207 10.8303C4.99897 10.9227 5.10899 11.0375 5.20459 11.1724C5.30765 11.311 5.38613 11.4733 5.44116 11.6558L5.47998 11.8008C5.51306 11.9504 5.52903 12.1125 5.52905 12.2856C5.52905 12.6011 5.47828 12.8867 5.37305 13.1382L5.37378 13.1389C5.28434 13.3557 5.15787 13.5441 4.99512 13.7014L4.92334 13.7666C4.52343 14.1103 3.97203 14.269 3.2959 14.269H2.95166V15.4292C2.95165 15.614 2.93964 15.7845 2.91577 15.9397C2.8883 16.1182 2.81511 16.2739 2.68652 16.3909L2.68579 16.3901C2.54556 16.5202 2.34254 16.5645 2.12329 16.5645C1.90696 16.5644 1.70685 16.5194 1.56738 16.3887L1.56519 16.3865C1.44288 16.2679 1.37145 16.1152 1.34399 15.9404L1.34326 15.936C1.32257 15.7822 1.31251 15.613 1.3125 15.4292V11.5042C1.31251 11.3204 1.3225 11.1524 1.34326 11.001L1.34399 10.9973L1.37256 10.8691C1.40991 10.7455 1.47366 10.6362 1.56738 10.5483C1.70673 10.4148 1.90677 10.3689 2.12329 10.3689H3.50464L3.6416 10.3784ZM2.95166 12.9053H3.31787C3.43267 12.8984 3.53116 12.8714 3.61597 12.8269C3.69435 12.7857 3.75967 12.7244 3.81226 12.6387L3.84448 12.5728C3.8728 12.5 3.88989 12.4058 3.88989 12.2856C3.88984 12.1374 3.85971 12.0411 3.81812 11.9795L3.81519 11.9744C3.76419 11.8937 3.70357 11.8366 3.63428 11.7979C3.56584 11.7635 3.47692 11.7377 3.36328 11.7253H2.95166V12.9053Z",fill:"currentColor"}),ge.createElement("path",{d:"M9.85181 10.3689C9.96017 10.369 10.0701 10.3945 10.1792 10.4392L10.2876 10.4897L10.2935 10.4927L10.2993 10.4963C10.4209 10.5712 10.5226 10.6619 10.5879 10.7725C10.6503 10.8716 10.6882 10.9809 10.6882 11.0969C10.6882 11.1892 10.6526 11.2993 10.6077 11.4089L10.6069 11.4082C10.5828 11.4685 10.5524 11.5379 10.5154 11.6147C10.4774 11.6937 10.4326 11.7792 10.3813 11.8704L9.1582 14.0391V15.4373C9.1582 15.6164 9.14303 15.7853 9.11279 15.9426C9.07918 16.1138 9.00547 16.2635 8.88647 16.3799L8.88721 16.3806C8.75142 16.5164 8.5562 16.5644 8.34668 16.5645C8.13595 16.5644 7.94219 16.5154 7.80249 16.3843L7.80103 16.3828C7.68055 16.2661 7.60635 16.1157 7.57251 15.9434C7.54226 15.786 7.52783 15.6164 7.52783 15.4373V14.0398L6.12085 11.5283L6.11938 11.5261C6.0459 11.3891 6.00587 11.2453 6.00586 11.0969C6.00589 10.986 6.03681 10.8798 6.09155 10.7812L6.09302 10.7791L6.15015 10.6963C6.21492 10.6176 6.30071 10.5509 6.39771 10.4941L6.4043 10.4905L6.5127 10.4392C6.6213 10.3943 6.73162 10.369 6.84155 10.3689C7.06446 10.369 7.25232 10.4649 7.39307 10.6399L7.48096 10.752C7.5635 10.8656 7.6337 10.9873 7.69263 11.116L8.34668 12.4878L9.00073 11.116C9.07902 10.945 9.177 10.7867 9.29443 10.6421L9.29517 10.6414L9.35083 10.5791C9.48615 10.443 9.65571 10.3689 9.85181 10.3689Z",fill:"currentColor"}),ge.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50366C10.7457 1.52068 10.9072 1.59662 11.0303 1.71973L14.7803 5.46973C14.9209 5.61038 15 5.80109 15 6V14.25C15 14.8467 14.7628 15.4189 14.3408 15.8408C13.9189 16.2628 13.3467 16.5 12.75 16.5H12C11.5858 16.5 11.25 16.1642 11.25 15.75C11.25 15.3358 11.5858 15 12 15H12.75C12.9489 15 13.1396 14.9209 13.2803 14.7803C13.4209 14.6396 13.5 14.4489 13.5 14.25V6.75H11.25C10.8522 6.75 10.4708 6.59185 10.1895 6.31055C9.90815 6.02924 9.75 5.64783 9.75 5.25V3H5.25C5.05109 3 4.86038 3.07907 4.71973 3.21973C4.57907 3.36038 4.5 3.55109 4.5 3.75V9C4.5 9.41421 4.16421 9.75 3.75 9.75C3.33579 9.75 3 9.41421 3 9V3.75C3 3.15326 3.23722 2.58114 3.65918 2.15918C4.08114 1.73722 4.65326 1.5 5.25 1.5H10.5L10.574 1.50366ZM11.25 5.25H12.4395L11.25 4.06055V5.25Z",fill:"currentColor"})),Ne=(e,t)=>m.jsx(e,{size:t.size??ae.size,stroke:t.stroke??ae.stroke,className:t.className}),Ks=(e,t)=>m.jsx(e,{width:Number(t.size??ae.size),height:Number(t.size??ae.size),className:t.className}),uu={".bmp":e=>Ne(V.IconFileTypeBmp,e),".cpp":e=>Ks(z1,e),".c":e=>Ks(W1,e),".cs":e=>Ks(_1,e),".css":e=>Ne(V.IconFileTypeCss,e),".csv":e=>Ne(V.IconFileTypeCsv,e),".doc":e=>Ne(V.IconFileTypeDoc,e),".docx":e=>Ne(V.IconFileTypeDocx,e),".html":e=>Ne(V.IconFileTypeHtml,e),".ini":e=>Ks(j1,e),".jpg":e=>Ne(V.IconFileTypeJpg,e),".js":e=>Ne(V.IconFileTypeJs,e),".json":e=>Ks(U1,e),".jsx":e=>Ne(V.IconFileTypeJsx,e),".md":e=>Ks($1,e),".pdf":e=>Ne(V.IconFileTypePdf,e),".php":e=>Ne(V.IconFileTypePhp,e),".png":e=>Ne(V.IconFileTypePng,e),".ppt":e=>Ne(V.IconFileTypePpt,e),".py":e=>Ks(K1,e),".rs":e=>Ne(V.IconFileTypeRs,e),".sql":e=>Ne(V.IconFileTypeSql,e),".svg":e=>Ne(V.IconFileTypeSvg,e),".ts":e=>Ne(V.IconFileTypeTs,e),".tsx":e=>Ne(V.IconFileTypeTsx,e),".txt":e=>Ne(V.IconFileTypeTxt,e),".vue":e=>Ne(V.IconFileTypeVue,e),".xls":e=>Ne(V.IconFileTypeXls,e),".xml":e=>Ne(V.IconFileTypeXml,e),".zip":e=>Ne(V.IconFileTypeZip,e),default:e=>Ne(V.IconFile,e)},$c=({extension:e,size:t=ae.size,stroke:s=ae.stroke,className:o,decorative:i=!1,label:n,indicator:r})=>{const a=(()=>{const u=e.trim().toLowerCase();return u.startsWith(".")?u:`.${u}`})(),c=(uu[a]??uu.default)({size:t,stroke:s}),d=n??`${a.slice(1).toUpperCase()} file icon`;return m.jsxs("span",{className:Z("inline-flex relative",o),...i?{"aria-hidden":!0}:{role:"img","aria-label":d},children:[m.jsx(Le,{icon:c,className:"inline-block align-middle"}),r&&m.jsx("span",{className:"absolute -bottom-0.5 -left-0.5",children:r})]})},Xi=({label:e="Shared entity",size:t=10,className:s,stroke:o=2})=>m.jsx(Le,{className:ce("text-accent-primary",s),icon:m.jsx(V.IconArrowUpRight,{size:t,stroke:o,"aria-label":e,className:"bg-layer-3",role:"img"})}),mn=({name:e,className:t,shared:s=!1,iconSize:o=ls,details:i})=>{const n=e.includes(".")?e.split(".").pop():null;return m.jsxs("div",{className:ce("flex items-center gap-2 w-full",t),children:[n&&m.jsx($c,{extension:n,size:o,className:"text-secondary",indicator:s?m.jsx(Xi,{}):null,label:"File type icon"}),m.jsxs("div",{className:Z(["w-full flex min-w-0",i&&"flex-col gap-1"]),children:[m.jsx(ut,{className:"text-primary dial-small flex-1 min-w-0",text:e,id:"name"}),i]})]})},da=({name:e,className:t,shared:s=!1,loading:o=!1,iconSize:i=ls})=>{const n=()=>o?m.jsx(fn,{size:i}):m.jsx(Le,{icon:m.jsx(V.IconFolder,{...ae,size:i}),className:"inline-block align-middle"});return m.jsxs("div",{className:ce("flex items-center gap-2 w-full",t),children:[m.jsxs("span",{className:"inline-flex relative text-secondary",role:"img",children:[n(),s&&m.jsx("span",{className:"absolute -bottom-0.5 -left-0.5",children:m.jsx(Xi,{})})]}),m.jsx(ut,{className:"text-primary dial-small flex-1 min-w-0",text:e,id:"name"})]})};var Qi=(e=>(e.Left="left",e.Right="right",e))(Qi||{}),Ue=function(){return Ue=Object.assign||function(e){for(var t,s=1,o=arguments.length;s<o;s++){t=arguments[s];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ue.apply(this,arguments)},hu={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},gu={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},zn={width:"20px",height:"20px",position:"absolute",zIndex:1},q1={top:Ue(Ue({},hu),{top:"-5px"}),right:Ue(Ue({},gu),{left:void 0,right:"-5px"}),bottom:Ue(Ue({},hu),{top:void 0,bottom:"-5px"}),left:Ue(Ue({},gu),{left:"-5px"}),topRight:Ue(Ue({},zn),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:Ue(Ue({},zn),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:Ue(Ue({},zn),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:Ue(Ue({},zn),{left:"-10px",top:"-10px",cursor:"nw-resize"})},Y1=g.memo(function(e){var t=e.onResizeStart,s=e.direction,o=e.children,i=e.replaceStyles,n=e.className,r=g.useCallback(function(c){t(c,s)},[t,s]),a=g.useCallback(function(c){t(c,s)},[t,s]),l=g.useMemo(function(){return Ue(Ue({position:"absolute",userSelect:"none"},q1[s]),i??{})},[i,s]);return m.jsx("div",{className:n||void 0,style:l,onMouseDown:r,onTouchStart:a,children:o})}),Z1=(function(){var e=function(t,s){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(o[n]=i[n])},e(t,s)};return function(t,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");e(t,s);function o(){this.constructor=t}t.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}})(),Kt=function(){return Kt=Object.assign||function(e){for(var t,s=1,o=arguments.length;s<o;s++){t=arguments[s];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Kt.apply(this,arguments)},X1={width:"auto",height:"auto"},Wn=function(e,t,s){return Math.max(Math.min(e,s),t)},pu=function(e,t,s){var o=Math.round(e/t);return o*t+s*(o-1)},Ao=function(e,t){return new RegExp(e,"i").test(t)},_n=function(e){return!!(e.touches&&e.touches.length)},Q1=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},fu=function(e,t,s){s===void 0&&(s=0);var o=t.reduce(function(n,r,a){return Math.abs(r-e)<Math.abs(t[n]-e)?a:n},0),i=Math.abs(t[o]-e);return s===0||i<s?t[o]:e},rl=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:"".concat(e,"px")},jn=function(e,t,s,o){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var i=Number(e.replace("%",""))/100;return t*i}if(e.endsWith("vw")){var i=Number(e.replace("vw",""))/100;return s*i}if(e.endsWith("vh")){var i=Number(e.replace("vh",""))/100;return o*i}}return e},J1=function(e,t,s,o,i,n,r){return o=jn(o,e.width,t,s),i=jn(i,e.height,t,s),n=jn(n,e.width,t,s),r=jn(r,e.height,t,s),{maxWidth:typeof o>"u"?void 0:Number(o),maxHeight:typeof i>"u"?void 0:Number(i),minWidth:typeof n>"u"?void 0:Number(n),minHeight:typeof r>"u"?void 0:Number(r)}},eb=function(e){return Array.isArray(e)?e:[e,e]},tb=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],mu="__resizable_base__",sb=(function(e){Z1(t,e);function t(s){var o,i,n,r,a=e.call(this,s)||this;return a.ratio=1,a.resizable=null,a.parentLeft=0,a.parentTop=0,a.resizableLeft=0,a.resizableRight=0,a.resizableTop=0,a.resizableBottom=0,a.targetLeft=0,a.targetTop=0,a.delta={width:0,height:0},a.appendBase=function(){if(!a.resizable||!a.window)return null;var l=a.parentNode;if(!l)return null;var c=a.window.document.createElement("div");return c.style.width="100%",c.style.height="100%",c.style.position="absolute",c.style.transform="scale(0, 0)",c.style.left="0",c.style.flex="0 0 100%",c.classList?c.classList.add(mu):c.className+=mu,l.appendChild(c),c},a.removeBase=function(l){var c=a.parentNode;c&&c.removeChild(l)},a.state={isResizing:!1,width:(i=(o=a.propsSize)===null||o===void 0?void 0:o.width)!==null&&i!==void 0?i:"auto",height:(r=(n=a.propsSize)===null||n===void 0?void 0:n.height)!==null&&r!==void 0?r:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},a.onResizeStart=a.onResizeStart.bind(a),a.onMouseMove=a.onMouseMove.bind(a),a.onMouseUp=a.onMouseUp.bind(a),a}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||X1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var s=0,o=0;if(this.resizable&&this.window){var i=this.resizable.offsetWidth,n=this.resizable.offsetHeight,r=this.resizable.style.position;r!=="relative"&&(this.resizable.style.position="relative"),s=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:i,o=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:n,this.resizable.style.position=r}return{width:s,height:o}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var s=this,o=this.props.size,i=function(a){var l;if(typeof s.state[a]>"u"||s.state[a]==="auto")return"auto";if(s.propsSize&&s.propsSize[a]&&(!((l=s.propsSize[a])===null||l===void 0)&&l.toString().endsWith("%"))){if(s.state[a].toString().endsWith("%"))return s.state[a].toString();var c=s.getParentSize(),d=Number(s.state[a].toString().replace("px","")),u=d/c[a]*100;return"".concat(u,"%")}return rl(s.state[a])},n=o&&typeof o.width<"u"&&!this.state.isResizing?rl(o.width):i("width"),r=o&&typeof o.height<"u"&&!this.state.isResizing?rl(o.height):i("height");return{width:n,height:r}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var s=this.appendBase();if(!s)return{width:0,height:0};var o=!1,i=this.parentNode.style.flexWrap;i!=="wrap"&&(o=!0,this.parentNode.style.flexWrap="wrap"),s.style.position="relative",s.style.minWidth="100%",s.style.minHeight="100%";var n={width:s.offsetWidth,height:s.offsetHeight};return o&&(this.parentNode.style.flexWrap=i),this.removeBase(s),n},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var s=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:s.flexBasis!=="auto"?s.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(s,o){var i=this.propsSize&&this.propsSize[o];return this.state[o]==="auto"&&this.state.original[o]===s&&(typeof i>"u"||i==="auto")?"auto":s},t.prototype.calculateNewMaxFromBoundary=function(s,o){var i=this.props.boundsByDirection,n=this.state.direction,r=i&&Ao("left",n),a=i&&Ao("top",n),l,c;if(this.props.bounds==="parent"){var d=this.parentNode;d&&(l=r?this.resizableRight-this.parentLeft:d.offsetWidth+(this.parentLeft-this.resizableLeft),c=a?this.resizableBottom-this.parentTop:d.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(l=r?this.resizableRight:this.window.innerWidth-this.resizableLeft,c=a?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(l=r?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),c=a?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return l&&Number.isFinite(l)&&(s=s&&s<l?s:l),c&&Number.isFinite(c)&&(o=o&&o<c?o:c),{maxWidth:s,maxHeight:o}},t.prototype.calculateNewSizeFromDirection=function(s,o){var i=this.props.scale||1,n=eb(this.props.resizeRatio||1),r=n[0],a=n[1],l=this.state,c=l.direction,d=l.original,u=this.props,h=u.lockAspectRatio,p=u.lockAspectRatioExtraHeight,f=u.lockAspectRatioExtraWidth,C=d.width,v=d.height,w=p||0,b=f||0;return Ao("right",c)&&(C=d.width+(s-d.x)*r/i,h&&(v=(C-b)/this.ratio+w)),Ao("left",c)&&(C=d.width-(s-d.x)*r/i,h&&(v=(C-b)/this.ratio+w)),Ao("bottom",c)&&(v=d.height+(o-d.y)*a/i,h&&(C=(v-w)*this.ratio+b)),Ao("top",c)&&(v=d.height-(o-d.y)*a/i,h&&(C=(v-w)*this.ratio+b)),{newWidth:C,newHeight:v}},t.prototype.calculateNewSizeFromAspectRatio=function(s,o,i,n){var r=this.props,a=r.lockAspectRatio,l=r.lockAspectRatioExtraHeight,c=r.lockAspectRatioExtraWidth,d=typeof n.width>"u"?10:n.width,u=typeof i.width>"u"||i.width<0?s:i.width,h=typeof n.height>"u"?10:n.height,p=typeof i.height>"u"||i.height<0?o:i.height,f=l||0,C=c||0;if(a){var v=(h-f)*this.ratio+C,w=(p-f)*this.ratio+C,b=(d-C)/this.ratio+f,S=(u-C)/this.ratio+f,y=Math.max(d,v),x=Math.min(u,w),R=Math.max(h,b),E=Math.min(p,S);s=Wn(s,y,x),o=Wn(o,R,E)}else s=Wn(s,d,u),o=Wn(o,h,p);return{newWidth:s,newHeight:o}},t.prototype.setBoundingClientRect=function(){var s=1/(this.props.scale||1);if(this.props.bounds==="parent"){var o=this.parentNode;if(o){var i=o.getBoundingClientRect();this.parentLeft=i.left*s,this.parentTop=i.top*s}}if(this.props.bounds&&typeof this.props.bounds!="string"){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left*s,this.targetTop=n.top*s}if(this.resizable){var r=this.resizable.getBoundingClientRect(),a=r.left,l=r.top,c=r.right,d=r.bottom;this.resizableLeft=a*s,this.resizableRight=c*s,this.resizableTop=l*s,this.resizableBottom=d*s}},t.prototype.onResizeStart=function(s,o){if(!(!this.resizable||!this.window)){var i=0,n=0;if(s.nativeEvent&&Q1(s.nativeEvent)?(i=s.nativeEvent.clientX,n=s.nativeEvent.clientY):s.nativeEvent&&_n(s.nativeEvent)&&(i=s.nativeEvent.touches[0].clientX,n=s.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var r=this.props.onResizeStart(s,o,this.resizable);if(r===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var a,l=this.window.getComputedStyle(this.resizable);if(l.flexBasis!=="auto"){var c=this.parentNode;if(c){var d=this.window.getComputedStyle(c).flexDirection;this.flexDir=d.startsWith("row")?"row":"column",a=l.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var u={original:{x:i,y:n,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Kt(Kt({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(s.target).cursor||"auto"}),direction:o,flexBasis:a};this.setState(u)}},t.prototype.onMouseMove=function(s){var o=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&_n(s))try{s.preventDefault(),s.stopPropagation()}catch{}var i=this.props,n=i.maxWidth,r=i.maxHeight,a=i.minWidth,l=i.minHeight,c=_n(s)?s.touches[0].clientX:s.clientX,d=_n(s)?s.touches[0].clientY:s.clientY,u=this.state,h=u.direction,p=u.original,f=u.width,C=u.height,v=this.getParentSize(),w=J1(v,this.window.innerWidth,this.window.innerHeight,n,r,a,l);n=w.maxWidth,r=w.maxHeight,a=w.minWidth,l=w.minHeight;var b=this.calculateNewSizeFromDirection(c,d),S=b.newHeight,y=b.newWidth,x=this.calculateNewMaxFromBoundary(n,r);this.props.snap&&this.props.snap.x&&(y=fu(y,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(S=fu(S,this.props.snap.y,this.props.snapGap));var R=this.calculateNewSizeFromAspectRatio(y,S,{width:x.maxWidth,height:x.maxHeight},{width:a,height:l});if(y=R.newWidth,S=R.newHeight,this.props.grid){var E=pu(y,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),D=pu(S,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),T=this.props.snapGap||0,k=T===0||Math.abs(E-y)<=T?E:y,F=T===0||Math.abs(D-S)<=T?D:S;y=k,S=F}var M={width:y-p.width,height:S-p.height};if(this.delta=M,f&&typeof f=="string"){if(f.endsWith("%")){var L=y/v.width*100;y="".concat(L,"%")}else if(f.endsWith("vw")){var B=y/this.window.innerWidth*100;y="".concat(B,"vw")}else if(f.endsWith("vh")){var H=y/this.window.innerHeight*100;y="".concat(H,"vh")}}if(C&&typeof C=="string"){if(C.endsWith("%")){var L=S/v.height*100;S="".concat(L,"%")}else if(C.endsWith("vw")){var B=S/this.window.innerWidth*100;S="".concat(B,"vw")}else if(C.endsWith("vh")){var H=S/this.window.innerHeight*100;S="".concat(H,"vh")}}var Q={width:this.createSizeForCssProperty(y,"width"),height:this.createSizeForCssProperty(S,"height")};this.flexDir==="row"?Q.flexBasis=Q.width:this.flexDir==="column"&&(Q.flexBasis=Q.height);var ee=this.state.width!==Q.width,O=this.state.height!==Q.height,le=this.state.flexBasis!==Q.flexBasis,z=ee||O||le;z&&pn.flushSync(function(){o.setState(Q)}),this.props.onResize&&z&&this.props.onResize(s,h,this.resizable,M)}},t.prototype.onMouseUp=function(s){var o,i,n=this.state,r=n.isResizing,a=n.direction;n.original,!(!r||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(s,a,this.resizable,this.delta),this.props.size&&this.setState({width:(o=this.props.size.width)!==null&&o!==void 0?o:"auto",height:(i=this.props.size.height)!==null&&i!==void 0?i:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Kt(Kt({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(s){var o,i;this.setState({width:(o=s.width)!==null&&o!==void 0?o:"auto",height:(i=s.height)!==null&&i!==void 0?i:"auto"})},t.prototype.renderResizer=function(){var s=this,o=this.props,i=o.enable,n=o.handleStyles,r=o.handleClasses,a=o.handleWrapperStyle,l=o.handleWrapperClass,c=o.handleComponent;if(!i)return null;var d=Object.keys(i).map(function(u){return i[u]!==!1?m.jsx(Y1,{direction:u,onResizeStart:s.onResizeStart,replaceStyles:n&&n[u],className:r&&r[u],children:c&&c[u]?c[u]:null},u):null});return m.jsx("div",{className:l,style:a,children:d})},t.prototype.render=function(){var s=this,o=Object.keys(this.props).reduce(function(r,a){return tb.indexOf(a)!==-1||(r[a]=s.props[a]),r},{}),i=Kt(Kt(Kt({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(i.flexBasis=this.state.flexBasis);var n=this.props.as||"div";return m.jsxs(n,Kt({style:i,className:this.props.className},o,{ref:function(r){r&&(s.resizable=r)},children:[this.state.isResizing&&m.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t})(g.PureComponent);const ob=({side:e,className:t})=>{const s=e===Qi.Left,o=s?V.IconChevronLeft:V.IconChevronRight;return m.jsx("div",{className:t,children:m.jsx(o,{className:Z("h-full",s&&"-ml-6")})})},ib=({side:e,isResizing:t,customHandler:s,handlerClassName:o})=>{const i=ce("invisible h-full w-0.5 group-hover:visible bg-accent-primary text-accent-primary cursor-col-resize transition-opacity",t&&"visible",o),n=m.jsx(ob,{side:e,className:i});return s?m.jsx("div",{className:i,children:s}):n},Lg=({children:e,minWidth:t,maxWidth:s,width:o,defaultWidth:i,onResizeStop:n,onResize:r,side:a=Qi.Right,resizeHandlerClassName:l,resizeHandler:c})=>{const[d,u]=g.useState(!1),[h,p]=g.useState(i),f=o!==void 0,C=f?o:h,v=g.useRef(null),w=g.useCallback(()=>{u(!0)},[]),b=g.useCallback(()=>{u(!1);const y=v.current?.resizable?.getBoundingClientRect(),x=y?Math.round(y.width):t;f||p(x),n?.(x)},[n,f,t]),S=g.useMemo(()=>{const y=a===Qi.Left,x=m.jsx(ib,{side:a,isResizing:d,customHandler:c,handlerClassName:l});return{size:f?{width:C,height:"100%"}:void 0,defaultSize:f?void 0:{width:C,height:"100%"},minWidth:t,maxWidth:s,enable:{left:y,right:!y},handleClasses:{right:"group",left:"group"},handleStyles:{right:{right:"-8px",zIndex:10},left:{left:0,zIndex:10}},handleComponent:{left:y?x:void 0,right:y?void 0:x},onResizeStart:w,onResize:(R,E,D)=>{const T=Math.round(D.offsetWidth);r?.(T)},onResizeStop:b}},[a,f,C,t,s,c,l,d,w,b,r]);return m.jsx(sb,{ref:v,...S,children:m.jsx("div",{className:"group flex size-full flex-col bg-layer-3 divide-y divide-tertiary transition-all",children:e})})},Og=({enabled:e=!0,children:t,...s})=>e?m.jsx(Lg,{...s,children:t}):t;var At=(e=>(e.Default="default",e.Text="text",e.Circular="circular",e.Rectangular="rectangular",e))(At||{}),Gi=(e=>(e.Small="small",e.Default="default",e.Large="large",e))(Gi||{}),xr=(e=>(e.Circle="circle",e.Square="square",e))(xr||{});const nb=e=>{if(typeof e=="number")return e;switch(e){case Gi.Small:return 32;case Gi.Large:return 64;case Gi.Default:default:return 40}},Go=({active:e=!0,paragraph:t=!0,avatar:s=!1,showTitle:o=!0,loading:i=!0,children:n,variant:r=At.Default,width:a,height:l,className:c,...d})=>{if(!i&&n)return m.jsx(m.Fragment,{children:n});const u=ce("bg-layer-3",e&&"animate-pulse",c);if(r!==At.Default){const D=ce(u,r===At.Circular&&"rounded-full",r===At.Rectangular&&"rounded",r===At.Text&&"rounded"),T={};return a&&(T.width=typeof a=="number"?`${a}px`:a),l&&(T.height=typeof l=="number"?`${l}px`:l),m.jsx("div",{className:D,style:T,...d})}const h=!!s,p=!!o,f=!!t,C=typeof s=="object"?s:{},v=typeof o=="object"?o:{},w=typeof t=="object"?t:{},b=nb(C.size),S=C.shape??xr.Circle,y=v.width??"38%",x=w.rows??3,R=w.width,E=D=>R?Array.isArray(R)?R[D]??"100%":R:D===x-1?"61%":"100%";return m.jsxs("div",{...d,className:ce("flex gap-4",c),children:[h&&m.jsx("div",{className:ce(u,S===xr.Circle?"rounded-full":"rounded","flex-shrink-0"),style:{width:b,height:b}}),m.jsxs("div",{className:"flex-1 flex flex-col gap-3",children:[p&&m.jsx("div",{className:ce(u,"h-4 rounded"),style:{width:y}}),f&&m.jsx("div",{className:"flex flex-col gap-3",children:Array.from({length:x}).map((D,T)=>m.jsx("div",{className:ce(u,"h-4 rounded"),style:{width:E(T)}},T))})]})]})};var uo=class{constructor(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}setFrameworkOverrides(e){this.frameworkOverrides=e}getListeners(e,t,s){const o=t?this.allAsyncListeners:this.allSyncListeners;let i=o.get(e);return!i&&s&&(i=new Set,o.set(e,i)),i}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0}addEventListener(e,t,s=!1){this.getListeners(e,s,!0).add(t)}removeEventListener(e,t,s=!1){const o=this.getListeners(e,s,!1);o&&(o.delete(t),o.size===0&&(s?this.allAsyncListeners:this.allSyncListeners).delete(e))}addGlobalListener(e,t=!1){this.getGlobalListeners(t).add(e)}removeGlobalListener(e,t=!1){this.getGlobalListeners(t).delete(e)}dispatchEvent(e){this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0}dispatchEventOnce(e){this.firedEvents[e.type]||this.dispatchEvent(e)}dispatchToListeners(e,t){const s=e.type;if(t&&"event"in e){const a=e.event;a instanceof Event&&(e.eventPath=a.composedPath())}const{frameworkOverrides:o}=this,i=a=>{const l=o?()=>o.wrapIncoming(a):a;t?this.dispatchAsync(l):l()},n=this.getListeners(s,t,!1);if((n?.size??0)>0){const a=new Set(n);for(const l of a)n?.has(l)&&i(()=>l(e))}const r=this.getGlobalListeners(t);if(r.size>0){const a=new Set(r);for(const l of a)i(()=>l(s,e))}}getGlobalListeners(e){return e?this.globalAsyncListeners:this.globalSyncListeners}dispatchAsync(e){if(this.asyncFunctionsQueue.push(e),!this.scheduled){const t=()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)};this.frameworkOverrides?this.frameworkOverrides.wrapIncoming(t):t(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;const e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[];for(const t of e)t()}};function us(e){return e==null||e===""?null:e}function q(e){return e!=null&&e!==""}function Ge(e){return!q(e)}function sc(e){return e!=null&&typeof e.toString=="function"?e.toString():null}function Ji(e,t){const s=e?JSON.stringify(e):null,o=t?JSON.stringify(t):null;return s===o}function rb(e,t,s=!1){const o=e==null,i=t==null;if(e?.toNumber&&(e=e.toNumber()),t?.toNumber&&(t=t.toNumber()),o&&i)return 0;if(o)return-1;if(i)return 1;function n(r,a){return r>a?1:r<a?-1:0}if(typeof e!="string"||!s)return n(e,t);try{return e.localeCompare(t)}catch{return n(e,t)}}var ab=/[&<>"']/g,lb={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ui(e){return e?.toString().toString()??null}function Bi(e){return ui(e)?.replace(ab,t=>lb[t])??null}function qt(e){return e.eRootDiv.getRootNode()}function Ve(e){return qt(e).activeElement}function Qe(e){const{gos:t,eRootDiv:s}=e;let o=null;const i=t.get("getDocument");return i&&q(i)?o=i():s&&(o=s.ownerDocument),o&&q(o)?o:document}function Ng(e){const t=Ve(e);return t===null||t===Qe(e).body}function Hg(e){return Qe(e).defaultView||window}function Kc(e){let t=null,s=null;try{t=Qe(e).fullscreenElement}catch{}finally{t||(t=qt(e));const o=t.querySelector("body");o?s=o:t instanceof ShadowRoot?s=t:t instanceof Document?s=t?.documentElement:s=t}return s}function cb(e){return Kc(e)?.clientWidth??(window.innerWidth||-1)}function db(e){return Kc(e)?.clientHeight??(window.innerHeight||-1)}function Wt(e,t,s){s==null||typeof s=="string"&&s==""?Gg(e,t):_t(e,t,s)}function _t(e,t,s){e.setAttribute(Bg(t),s.toString())}function Gg(e,t){e.removeAttribute(Bg(t))}function Bg(e){return`aria-${e}`}function ho(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function ub(e){let t;return e==="asc"?t="ascending":e==="desc"?t="descending":e==="mixed"?t="other":t="none",t}function hb(e){return e.getAttribute("aria-label")}function ti(e,t){Wt(e,"label",t)}function en(e,t){Wt(e,"labelledby",t)}function Vg(e,t){Wt(e,"live",t)}function gb(e,t){Wt(e,"atomic",t)}function pb(e,t){Wt(e,"relevant",t)}function fb(e,t){Wt(e,"invalid",t)}function mb(e,t){Wt(e,"disabled",t)}function zg(e,t){Wt(e,"hidden",t)}function oc(e,t){_t(e,"expanded",t)}function Cb(e,t){_t(e,"setsize",t)}function vb(e,t){_t(e,"posinset",t)}function wb(e,t){_t(e,"rowcount",t)}function Wg(e,t){_t(e,"rowindex",t)}function bb(e,t){_t(e,"rowspan",t)}function Sb(e,t){_t(e,"colcount",t)}function _g(e,t){_t(e,"colindex",t)}function yb(e,t){_t(e,"colspan",t)}function xb(e,t){_t(e,"sort",t)}function Rb(e){Gg(e,"sort")}function jg(e,t){Wt(e,"selected",t)}function Fb(e,t){Wt(e,"controls",t)}function Eb(e,t){Fb(e,t.id),en(t,e.id)}function Cu(e,t){Wt(e,"owns",t)}function ua(e,t){return t===void 0?e("ariaIndeterminate","indeterminate"):t===!0?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}var Db="[tabindex], input, select, button, textarea, [href]",Ug="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function Vi(e){return!e||!e.matches("input, select, button, textarea")||!e.matches(Ug)?!1:Cs(e)}function Be(e,t,s={}){const{skipAriaHidden:o}=s;e.classList.toggle("ag-hidden",!t),o||zg(e,!t)}function Pb(e,t,s={}){const{skipAriaHidden:o}=s;e.classList.toggle("ag-invisible",!t),o||zg(e,!t)}function tn(e,t){const s="disabled",o=t?n=>n.setAttribute(s,""):n=>n.removeAttribute(s);o(e);const i=e.querySelectorAll("input")??[];for(const n of i)o(n)}function to(e,t,s){let o=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,typeof s=="number"){if(++o>s)break}else if(e===s)break}return!1}function So(e){const{height:t,width:s,borderTopWidth:o,borderRightWidth:i,borderBottomWidth:n,borderLeftWidth:r,paddingTop:a,paddingRight:l,paddingBottom:c,paddingLeft:d,marginTop:u,marginRight:h,marginBottom:p,marginLeft:f,boxSizing:C}=window.getComputedStyle(e),v=Number.parseFloat;return{height:v(t||"0"),width:v(s||"0"),borderTopWidth:v(o||"0"),borderRightWidth:v(i||"0"),borderBottomWidth:v(n||"0"),borderLeftWidth:v(r||"0"),paddingTop:v(a||"0"),paddingRight:v(l||"0"),paddingBottom:v(c||"0"),paddingLeft:v(d||"0"),marginTop:v(u||"0"),marginRight:v(h||"0"),marginBottom:v(p||"0"),marginLeft:v(f||"0"),boxSizing:C}}function qc(e){const t=So(e);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom-t.borderTopWidth-t.borderBottomWidth:t.height}function sn(e){const t=So(e);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight-t.borderLeftWidth-t.borderRightWidth:t.width}function $g(e){const{height:t,marginBottom:s,marginTop:o}=So(e);return Math.floor(t+s+o)}function Rr(e){const{width:t,marginLeft:s,marginRight:o}=So(e);return Math.floor(t+s+o)}function Kg(e){const t=e.getBoundingClientRect(),{borderTopWidth:s,borderLeftWidth:o,borderRightWidth:i,borderBottomWidth:n}=So(e);return{top:t.top+(s||0),left:t.left+(o||0),right:t.right+(i||0),bottom:t.bottom+(n||0)}}function Fr(e,t){let s=e.scrollLeft;return t&&(s=Math.abs(s)),s}function Er(e,t,s){s&&(t*=-1),e.scrollLeft=t}function mt(e){for(;e?.firstChild;)e.firstChild.remove()}function Is(e){e?.parentNode&&e.remove()}function qg(e){return!!e.offsetParent}function Cs(e){return e.checkVisibility?e.checkVisibility({checkVisibilityCSS:!0}):!(!qg(e)||window.getComputedStyle(e).visibility!=="visible")}function Yc(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function rr(e){return()=>{const t=e();return t?Zc(t)||Yg(t):!0}}function Zc(e){return e.clientWidth<e.scrollWidth}function Yg(e){return e.clientHeight<e.scrollHeight}function Dr(e,t){t==="flex"?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):Jt(e,t)}function Jt(e,t){t=Xc(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function zi(e,t){t=Xc(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function Xc(e){return typeof e=="number"?`${e}px`:e}function Qc(e){return e instanceof Node||e instanceof HTMLElement}function Rt(e,t,s){s==null||s===""?e.removeAttribute(t):e.setAttribute(t,s.toString())}function vs(e,t,s){const i=Hg(e).ResizeObserver,n=i?new i(s):null;return n?.observe(t),()=>n?.disconnect()}function ws(e,t){const s=Hg(e);s.requestAnimationFrame?s.requestAnimationFrame(t):s.webkitRequestAnimationFrame?s.webkitRequestAnimationFrame(t):s.setTimeout(t,0)}var Zg="data-ref",al;function vu(){return al??(al=document.createTextNode(" ")),al.cloneNode()}function Cn(e){const{attrs:t,children:s,cls:o,ref:i,role:n,tag:r}=e,a=document.createElement(r);if(o&&(a.className=o),i&&a.setAttribute(Zg,i),n&&a.setAttribute("role",n),t)for(const l of Object.keys(t))a.setAttribute(l,t[l]);if(s)if(typeof s=="string")a.textContent=s;else{let l=!0;for(const c of s)c&&(typeof c=="string"?(a.appendChild(document.createTextNode(c)),l=!1):typeof c=="function"?a.appendChild(c()):(l&&(a.appendChild(vu()),l=!1),a.append(Cn(c)),a.appendChild(vu())))}return a}var Mb=["touchstart","touchend","touchmove","touchcancel","scroll"],Tb=["wheel"],ll={},Xg=(()=>{const e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return s=>{if(typeof ll[s]=="boolean")return ll[s];const o=document.createElement(e[s]||"div");return s="on"+s,ll[s]=s in o}})();function Ib(e,t){return!t||!e?!1:Ab(t).indexOf(e)>=0}function kb(e){const t=[];let s=e.target;for(;s;)t.push(s),s=s.parentElement;return t}function Ab(e){const t=e;return t.path?t.path:t.composedPath?t.composedPath():kb(t)}function Lb(e,t,s){const o=Ob(t);let i;o!=null&&(i={passive:o}),e.addEventListener(t,s,i)}var Ob=e=>{const t=Mb.includes(e),s=Tb.includes(e);if(t)return!0;if(s)return!1};function Qg(e,t,s){if(s===0)return!1;const o=Math.abs(e.clientX-t.clientX),i=Math.abs(e.clientY-t.clientY);return Math.max(o,i)<=s}var Wi=(e,t)=>{const s=e.identifier;for(let o=0,i=t.length;o<i;++o){const n=t[o];if(n.identifier===s)return n}return null};function on(e,t){return e.gos.isElementInThisInstance(t.target)}function Nb(e,t,s){const i=e.getBoundingClientRect().height,n=cb(s)-2,r=db(s)-2;if(!e.offsetParent)return;const l=Kg(e.offsetParent),{clientY:c,clientX:d}=t;let u=c-l.top-i/2,h=d-l.left-10;const p=Qe(s),f=p.defaultView||window,C=f.pageYOffset||p.documentElement.scrollTop,v=f.pageXOffset||p.documentElement.scrollLeft;n>0&&h+e.clientWidth>n+v&&(h=n+v-e.clientWidth),h<0&&(h=0),r>0&&u+e.clientHeight>r+C&&(u=r+C-e.clientHeight),u<0&&(u=0),e.style.left=`${h}px`,e.style.top=`${u}px`}var ar=(e,...t)=>{for(const s of t){const[o,i,n,r]=s;o.addEventListener(i,n,r),e.push(s)}},Jc=e=>{if(e){for(const[t,s,o,i]of e)t.removeEventListener(s,o,i);e.length=0}},Es=e=>{e.cancelable&&e.preventDefault()};function Hb(e,t){return t}function Jg(e){return e?.getLocaleTextFunc()??Hb}function Gb(e,t,s,o){const i=t[s];return e.getLocaleTextFunc()(s,typeof i=="function"?i(o):i,o)}function Bb(e){return(t,s,o)=>e({key:t,defaultValue:s,variableValues:o})}function Vb(e){return(t,s,o)=>{let i=e?.[t];if(i&&o?.length){let n=0;for(;!(n>=o.length||i.indexOf("${variable}")===-1);)i=i.replace("${variable}",o[n++])}return i??s}}var ss=class{constructor(){this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.propertyListenerId=0,this.lastChangeSetIdLookup={},this.isAlive=()=>!this.destroyed}preWireBeans(e){this.beans=e,this.stubContext=e.context,this.eventSvc=e.eventSvc,this.gos=e.gos}destroy(){const{destroyFunctions:e}=this;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.destroyed=!0,this.dispatchLocalEvent({type:"destroyed"})}addEventListener(e,t,s){this.localEventService||(this.localEventService=new uo),this.localEventService.addEventListener(e,t,s)}removeEventListener(e,t,s){this.localEventService?.removeEventListener(e,t,s)}dispatchLocalEvent(e){this.localEventService?.dispatchEvent(e)}addManagedElementListeners(e,t){return this._setupListeners(e,t)}addManagedEventListeners(e){return this._setupListeners(this.eventSvc,e)}addManagedListeners(e,t){return this._setupListeners(e,t)}_setupListeners(e,t){const s=[];for(const o of Object.keys(t)){const i=t[o];i&&s.push(this._setupListener(e,o,i))}return s}_setupListener(e,t,s){if(this.destroyed)return()=>null;let o;if(zb(e))e.__addEventListener(t,s),o=()=>(e.__removeEventListener(t,s),null);else{const i=Wb(e);e instanceof HTMLElement?Lb(e,t,s):i?e.addListener(t,s):e.addEventListener(t,s),o=i?()=>(e.removeListener(t,s),null):()=>(e.removeEventListener(t,s),null)}return this.destroyFunctions.push(o),()=>(o(),this.destroyFunctions=this.destroyFunctions.filter(i=>i!==o),null)}setupPropertyListener(e,t){const{gos:s}=this;s.addPropertyEventListener(e,t);const o=()=>(s.removePropertyEventListener(e,t),null);return this.destroyFunctions.push(o),()=>(o(),this.destroyFunctions=this.destroyFunctions.filter(i=>i!==o),null)}addManagedPropertyListener(e,t){return this.destroyed?()=>null:this.setupPropertyListener(e,t)}addManagedPropertyListeners(e,t){if(this.destroyed)return;const s=e.join("-")+this.propertyListenerId++,o=i=>{if(i.changeSet){if(i.changeSet&&i.changeSet.id===this.lastChangeSetIdLookup[s])return;this.lastChangeSetIdLookup[s]=i.changeSet.id}const n={type:"propertyChanged",changeSet:i.changeSet,source:i.source};t(n)};for(const i of e)this.setupPropertyListener(i,o)}getLocaleTextFunc(){return Jg(this.beans.localeSvc)}addDestroyFunc(e){this.isAlive()?this.destroyFunctions.push(e):e()}createOptionalManagedBean(e,t){return e?this.createManagedBean(e,t):void 0}createManagedBean(e,t){const s=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),s}createBean(e,t,s){return(t||this.stubContext).createBean(e,s)}destroyBean(e,t){return(t||this.stubContext).destroyBean(e)}destroyBeans(e,t){return(t||this.stubContext).destroyBeans(e)}};function zb(e){return e.__addEventListener!==void 0}function Wb(e){return e.eventServiceType==="global"}var A=class extends ss{},wu={};function ed(e,t){wu[t]||(e(),wu[t]=!0)}var _b={pending:!1,funcs:[]},jb={pending:!1,funcs:[]};function ic(e,t="setTimeout",s){const o=t==="raf"?jb:_b;if(o.funcs.push(e),o.pending)return;o.pending=!0;const i=()=>{const n=o.funcs.slice();o.funcs.length=0,o.pending=!1;for(const r of n)r()};t==="raf"?ws(s,i):window.setTimeout(i,0)}function st(e,t,s){let o;return function(...i){const n=this;window.clearTimeout(o),o=window.setTimeout(function(){e.isAlive()&&t.apply(n,i)},s)}}function bu(e,t){let s=0;return function(...o){const i=this,n=Date.now();n-s<t||(s=n,e.apply(i,o))}}function Ub(e,t,s,o=100){const i=Date.now();let n=null,r=!1;const a=()=>{n!=null&&(window.clearInterval(n),n=null)};e.addDestroyFunc(a);const l=()=>{const c=Date.now()-i>o;(t()||c)&&(s(),r=!0,a())};l(),r||(n=window.setInterval(l,10))}var ep=new Set(["__proto__","constructor","prototype"]);function $b(e,t){if(e!=null){if(Array.isArray(e)){for(let s=0;s<e.length;s++)t(s.toString(),e[s]);return}for(const s of Object.keys(e).filter(o=>!ep.has(o)))t(s,e[s])}}function ht(e,t,s=!0,o=!1){q(t)&&$b(t,(i,n)=>{let r=e[i];r!==n&&(o&&r==null&&n!=null&&typeof n=="object"&&n.constructor===Object&&(r={},e[i]=r),Su(n)&&Su(r)&&!Array.isArray(r)?ht(r,n,s,o):(s||n!==void 0)&&(e[i]=n))})}function Su(e){return typeof e=="object"&&e!==null}var td=class rs{static applyGlobalGridOptions(t){if(!rs.gridOptions)return{...t};let s={};return ht(s,rs.gridOptions,!0,!0),rs.mergeStrategy==="deep"?ht(s,t,!0,!0):s={...s,...t},rs.gridOptions.context&&(s.context=rs.gridOptions.context),t.context&&(rs.mergeStrategy==="deep"&&s.context&&ht(t.context,s.context,!0,!0),s.context=t.context),s}static applyGlobalGridOption(t,s){if(rs.mergeStrategy==="deep"){const o=tp(t);if(o&&typeof o=="object"&&typeof s=="object")return rs.applyGlobalGridOptions({[t]:s})[t]}return s}};td.gridOptions=void 0;td.mergeStrategy="shallow";var sd=td;function tp(e){return sd.gridOptions?.[e]}var sp={suppressContextMenu:!1,preventDefaultOnContextMenu:!1,allowContextMenuWithControlKey:!1,suppressMenuHide:!0,enableBrowserTooltips:!1,tooltipTrigger:"hover",tooltipShowDelay:2e3,tooltipHideDelay:1e4,tooltipMouseTrack:!1,tooltipShowMode:"standard",tooltipInteraction:!1,copyHeadersToClipboard:!1,copyGroupHeadersToClipboard:!1,clipboardDelimiter:" ",suppressCopyRowsToClipboard:!1,suppressCopySingleCellRanges:!1,suppressLastEmptyLineOnPaste:!1,suppressClipboardPaste:!1,suppressClipboardApi:!1,suppressCutToClipboard:!1,maintainColumnOrder:!1,enableStrictPivotColumnOrder:!1,suppressFieldDotNotation:!1,allowDragFromColumnsToolPanel:!1,suppressMovableColumns:!1,suppressColumnMoveAnimation:!1,suppressMoveWhenColumnDragging:!1,suppressDragLeaveHidesColumns:!1,suppressRowGroupHidesColumns:!1,suppressAutoSize:!1,autoSizePadding:20,skipHeaderOnAutoSize:!1,singleClickEdit:!1,suppressClickEdit:!1,readOnlyEdit:!1,stopEditingWhenCellsLoseFocus:!1,enterNavigatesVertically:!1,enterNavigatesVerticallyAfterEdit:!1,enableCellEditingOnBackspace:!1,undoRedoCellEditing:!1,undoRedoCellEditingLimit:10,suppressCsvExport:!1,suppressExcelExport:!1,cacheQuickFilter:!1,includeHiddenColumnsInQuickFilter:!1,excludeChildrenWhenTreeDataFiltering:!1,enableAdvancedFilter:!1,includeHiddenColumnsInAdvancedFilter:!1,enableCharts:!1,masterDetail:!1,keepDetailRows:!1,keepDetailRowsCount:10,detailRowAutoHeight:!1,tabIndex:0,rowBuffer:10,valueCache:!1,valueCacheNeverExpires:!1,enableCellExpressions:!1,suppressTouch:!1,suppressFocusAfterRefresh:!1,suppressBrowserResizeObserver:!1,suppressPropertyNamesCheck:!1,suppressChangeDetection:!1,debug:!1,suppressLoadingOverlay:!1,suppressNoRowsOverlay:!1,pagination:!1,paginationPageSize:100,paginationPageSizeSelector:!0,paginationAutoPageSize:!1,paginateChildRows:!1,suppressPaginationPanel:!1,pivotMode:!1,pivotPanelShow:"never",pivotDefaultExpanded:0,pivotSuppressAutoColumn:!1,suppressExpandablePivotGroups:!1,functionsReadOnly:!1,suppressAggFuncInHeader:!1,alwaysAggregateAtRootLevel:!1,aggregateOnlyChangedColumns:!1,suppressAggFilteredOnly:!1,removePivotHeaderRowWhenSingleValueColumn:!1,animateRows:!0,cellFlashDuration:500,cellFadeDuration:1e3,allowShowChangeAfterFilter:!1,domLayout:"normal",ensureDomOrder:!1,enableRtl:!1,suppressColumnVirtualisation:!1,suppressMaxRenderedRowRestriction:!1,suppressRowVirtualisation:!1,rowDragManaged:!1,rowDragInsertDelay:500,suppressRowDrag:!1,suppressMoveWhenRowDragging:!1,rowDragEntireRow:!1,rowDragMultiRow:!1,embedFullWidthRows:!1,groupDisplayType:"singleColumn",groupDefaultExpanded:0,groupMaintainOrder:!1,groupSelectsChildren:!1,groupSuppressBlankHeader:!1,groupSelectsFiltered:!1,showOpenedGroup:!1,groupRemoveSingleChildren:!1,groupRemoveLowestSingleChildren:!1,groupHideOpenParents:!1,groupAllowUnbalanced:!1,rowGroupPanelShow:"never",suppressMakeColumnVisibleAfterUnGroup:!1,treeData:!1,rowGroupPanelSuppressSort:!1,suppressGroupRowsSticky:!1,rowModelType:"clientSide",asyncTransactionWaitMillis:50,suppressModelUpdateAfterUpdateTransaction:!1,cacheOverflowSize:1,infiniteInitialRowCount:1,serverSideInitialRowCount:1,cacheBlockSize:100,maxBlocksInCache:-1,maxConcurrentDatasourceRequests:2,blockLoadDebounceMillis:0,purgeClosedRowNodes:!1,serverSideSortAllLevels:!1,serverSideOnlyRefreshFilteredGroups:!1,serverSidePivotResultFieldSeparator:"_",viewportRowModelPageSize:5,viewportRowModelBufferSize:5,alwaysShowHorizontalScroll:!1,alwaysShowVerticalScroll:!1,debounceVerticalScrollbar:!1,suppressHorizontalScroll:!1,suppressScrollOnNewData:!1,suppressScrollWhenPopupsAreOpen:!1,suppressAnimationFrame:!1,suppressMiddleClickScrolls:!1,suppressPreventDefaultOnMouseWheel:!1,rowMultiSelectWithClick:!1,suppressRowDeselection:!1,suppressRowClickSelection:!1,suppressCellFocus:!1,suppressHeaderFocus:!1,suppressMultiRangeSelection:!1,enableCellTextSelection:!1,enableRangeSelection:!1,enableRangeHandle:!1,enableFillHandle:!1,fillHandleDirection:"xy",suppressClearOnFillReduction:!1,accentedSort:!1,unSortIcon:!1,suppressMultiSort:!1,alwaysMultiSort:!1,suppressMaintainUnsortedOrder:!1,suppressRowHoverHighlight:!1,suppressRowTransform:!1,columnHoverHighlight:!1,deltaSort:!1,enableGroupEdit:!1,groupLockGroupColumns:0,serverSideEnableClientSideSort:!1,suppressServerSideFullWidthLoadingRow:!1,pivotMaxGeneratedColumns:-1,columnMenu:"new",reactiveCustomComponents:!0,suppressSetFilterByDefault:!1,rowNumbers:!1,enableFilterHandlers:!1},op="https://www.ag-grid.com";function go(e,t,...s){e.get("debug")&&console.log("AG Grid: "+t,...s)}function _i(e,...t){ed(()=>console.warn("AG Grid: "+e,...t),e+t?.join(""))}function _o(e,...t){ed(()=>console.error("AG Grid: "+e,...t),e+t?.join(""))}var ip=new Set,Pr={},so={},lr,np=!1,rp=!1,Kb=!1;function qb(e){const[t,s]=e.version.split(".")||[],[o,i]=lr.split(".")||[];return t===o&&s===i}function Yb(e){lr||(lr=e.version);const t=o=>`You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${o} Please update all modules to the same version.`;e.version?qb(e)||_o(t(`'${e.moduleName}' is version ${e.version} but the other modules are version ${lr}.`)):_o(t(`'${e.moduleName}' is incompatible.`));const s=e.validate?.();s&&!s.isValid&&_o(`${s.message}`)}function nn(e,t,s=!1){s||(np=!0),Yb(e);const o=e.rowModels??["all"];ip.add(e);let i;t!==void 0?(rp=!0,so[t]===void 0&&(so[t]={}),i=so[t]):i=Pr;for(const n of o)i[n]===void 0&&(i[n]={}),i[n][e.moduleName]=e;if(e.dependsOn)for(const n of e.dependsOn)nn(n,t,s)}function Zb(e){delete so[e]}function nc(e,t,s){const o=i=>!!Pr[i]?.[e]||!!so[t]?.[i]?.[e];return o(s)||o("all")}function od(){return rp}function Xb(e,t){const s=so[e]??{};return[...Object.values(Pr.all??{}),...Object.values(s.all??{}),...Object.values(Pr[t]??{}),...Object.values(s[t]??{})]}function Qb(){return new Set(ip)}function Jb(e,t){const s=so[e]??{};return[...Object.values(s.all??{}),...Object.values(s[t]??{})]}function e0(){return np}function t0(){return Kb}var s0=class{static register(e){nn(e,void 0)}static registerModules(e){for(const t of e)nn(t,void 0)}},K="34.3.0",yu=2e3,xu=100,ap="_version_",lp=null,jo=`${op}/javascript-data-grid`;function o0(e){lp=e}function i0(e){jo=e}function cp(e,t,s){return lp?.(e,t)??[l0(e,t,s)]}function id(e,t,s,o,i){e(`${o?"warning":"error"} #${t}`,...cp(t,s,i))}function n0(e){if(!e)return String(e);const t={};for(const s of Object.keys(e))typeof e[s]!="object"&&typeof e[s]!="function"&&(t[s]=e[s]);return JSON.stringify(t)}function r0(e){let t=e;return e instanceof Error?t=e.toString():typeof e=="object"&&(t=n0(e)),t}function Mr(e){return e===void 0?"undefined":e===null?"null":e}function rc(e,t){return`${e}?${t.toString()}`}function a0(e,t,s){const o=Array.from(t.entries()).sort((n,r)=>r[1].length-n[1].length);let i=rc(e,t);for(const[n,r]of o){if(n===ap)continue;const a=i.length-s;if(a<=0)break;const l="...",c=a+l.length,d=r.length-c>xu?r.slice(0,r.length-c)+l:r.slice(0,xu)+l;t.set(n,d),i=rc(e,t)}return i}function dp(e,t){const s=new URLSearchParams;if(s.append(ap,K),t)for(const n of Object.keys(t))s.append(n,r0(t[n]));const o=`${jo}/errors/${e}`,i=rc(o,s);return i.length<=yu?i:a0(o,s,yu)}var l0=(e,t,s)=>{const o=dp(e,t);return`${`${s?s+`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react/jsx-runtime"),Z=require("classnames"),be=require("@floating-ui/react"),g=require("react"),V=require("@tabler/icons-react"),pn=require("react-dom");function LC(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const o=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,o.get?o:{enumerable:!0,get:()=>e[s]})}}return t.default=e,Object.freeze(t)}const ge=LC(g),Ts=({errorText:e})=>e&&m.jsx("span",{className:"text-error dial-tiny mt-1",children:e}),Le=({icon:e,className:t})=>e?m.jsx("span",{className:Z("flex-shrink-0",t),children:e}):null,OC=7,NC=2,ng=g.createContext(null),rg=()=>{const e=g.useContext(ng);if(e==null)throw new Error("Tooltip components must be wrapped in <Tooltip />");return e},HC=({initialOpen:e=!1,placement:t="bottom",isTriggerClickable:s=!1,open:o,onOpenChange:i}={})=>{const[n,r]=g.useState(e),a=g.useRef(null),l=o??n,c=i??r,d=be.useFloating({placement:t,open:l,onOpenChange:c,whileElementsMounted:be.autoUpdate,middleware:[be.offset(OC+NC),be.flip({crossAxis:t.includes("-"),fallbackAxisSideDirection:"start",padding:5}),be.shift({padding:5}),be.arrow({element:a})]}),u=be.useHover(d.context,{move:!1,enabled:o==null,mouseOnly:s,delay:{open:500,close:0}}),h=be.useFocus(d.context,{enabled:o==null}),p=be.useDismiss(d.context),f=be.useRole(d.context,{role:"tooltip"}),C=be.useInteractions([u,h,p,f]);return g.useEffect(()=>{if(!l)return;const v=d.refs.reference.current;if(!(v instanceof Element))return;const w=new IntersectionObserver(([b])=>{b.isIntersecting||c(!1)},{root:null,threshold:0});return w.observe(v),()=>w.disconnect()},[l,d.refs.reference,c]),g.useMemo(()=>({open:l,setOpen:c,arrowRef:a,...C,...d}),[l,c,C,d])},ag=({children:e,...t})=>{const s=HC(t);return m.jsx(ng.Provider,{value:s,children:e})},lg=({style:e,...t})=>{const s=rg(),o=g.useRef(null),i=be.useMergeRefs([s.refs.setFloating,o]);return s.open?m.jsx(be.FloatingPortal,{id:"tooltip-portal",children:m.jsxs("div",{ref:i,style:{...s.floatingStyles,...e},...s.getFloatingProps(t),className:Z("z-[55] whitespace-pre-wrap break-words rounded border border-primary bg-layer-0 px-2 py-1 dial-tiny shadow max-w-[300px]",s.getFloatingProps(t).className),children:[t.children,m.jsx(be.FloatingArrow,{ref:s.arrowRef,context:s.context,fill:"currentColor",strokeWidth:1,className:"border-primary w-2 text-[var(--bg-layer-0,_#000000)]"})]})}):null},cg=({children:e,asChild:t=!1,...s})=>{const o=rg(),i=t&&g.isValidElement(e),n=i?e.props?.ref:null,r=be.useMergeRefs([o.refs.setReference,...n?[n]:[]]);return i?g.cloneElement(e,o.getReferenceProps({...e.props,...s,ref:r})):m.jsx("span",{ref:r,...o.getReferenceProps(s),className:s.className??"dial-tooltip-trigger text-left",children:e})},ms=({hideTooltip:e,tooltip:t,children:s,triggerClassName:o,contentClassName:i,...n})=>m.jsxs(ag,{...n,children:[m.jsx(cg,{className:Z(o,"truncate"),children:s}),m.jsx(lg,{className:Z("text-primary",i,"max-w-[300px]",(e||!t)&&"hidden"),children:t})]}),Bc="-",GC=e=>{const t=VC(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:r=>{const a=r.split(Bc);return a[0]===""&&a.length!==1&&a.shift(),dg(a,t)||BC(r)},getConflictingClassGroupIds:(r,a)=>{const l=s[r]||[];return a&&o[r]?[...l,...o[r]]:l}}},dg=(e,t)=>{if(e.length===0)return t.classGroupId;const s=e[0],o=t.nextPart.get(s),i=o?dg(e.slice(1),o):void 0;if(i)return i;if(t.validators.length===0)return;const n=e.join(Bc);return t.validators.find(({validator:r})=>r(n))?.classGroupId},Yd=/^\[(.+)\]$/,BC=e=>{if(Yd.test(e)){const t=Yd.exec(e)[1],s=t?.substring(0,t.indexOf(":"));if(s)return"arbitrary.."+s}},VC=e=>{const{theme:t,classGroups:s}=e,o={nextPart:new Map,validators:[]};for(const i in s)Yl(s[i],o,i,t);return o},Yl=(e,t,s,o)=>{e.forEach(i=>{if(typeof i=="string"){const n=i===""?t:Zd(t,i);n.classGroupId=s;return}if(typeof i=="function"){if(zC(i)){Yl(i(o),t,s,o);return}t.validators.push({validator:i,classGroupId:s});return}Object.entries(i).forEach(([n,r])=>{Yl(r,Zd(t,n),s,o)})})},Zd=(e,t)=>{let s=e;return t.split(Bc).forEach(o=>{s.nextPart.has(o)||s.nextPart.set(o,{nextPart:new Map,validators:[]}),s=s.nextPart.get(o)}),s},zC=e=>e.isThemeGetter,WC=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,s=new Map,o=new Map;const i=(n,r)=>{s.set(n,r),t++,t>e&&(t=0,o=s,s=new Map)};return{get(n){let r=s.get(n);if(r!==void 0)return r;if((r=o.get(n))!==void 0)return i(n,r),r},set(n,r){s.has(n)?s.set(n,r):i(n,r)}}},Zl="!",Xl=":",_C=Xl.length,jC=e=>{const{prefix:t,experimentalParseClassName:s}=e;let o=i=>{const n=[];let r=0,a=0,l=0,c;for(let f=0;f<i.length;f++){let C=i[f];if(r===0&&a===0){if(C===Xl){n.push(i.slice(l,f)),l=f+_C;continue}if(C==="/"){c=f;continue}}C==="["?r++:C==="]"?r--:C==="("?a++:C===")"&&a--}const d=n.length===0?i:i.substring(l),u=UC(d),h=u!==d,p=c&&c>l?c-l:void 0;return{modifiers:n,hasImportantModifier:h,baseClassName:u,maybePostfixModifierPosition:p}};if(t){const i=t+Xl,n=o;o=r=>r.startsWith(i)?n(r.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:r,maybePostfixModifierPosition:void 0}}if(s){const i=o;o=n=>s({className:n,parseClassName:i})}return o},UC=e=>e.endsWith(Zl)?e.substring(0,e.length-1):e.startsWith(Zl)?e.substring(1):e,$C=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const i=[];let n=[];return o.forEach(r=>{r[0]==="["||t[r]?(i.push(...n.sort(),r),n=[]):n.push(r)}),i.push(...n.sort()),i}},KC=e=>({cache:WC(e.cacheSize),parseClassName:jC(e),sortModifiers:$C(e),...GC(e)}),qC=/\s+/,YC=(e,t)=>{const{parseClassName:s,getClassGroupId:o,getConflictingClassGroupIds:i,sortModifiers:n}=t,r=[],a=e.trim().split(qC);let l="";for(let c=a.length-1;c>=0;c-=1){const d=a[c],{isExternal:u,modifiers:h,hasImportantModifier:p,baseClassName:f,maybePostfixModifierPosition:C}=s(d);if(u){l=d+(l.length>0?" "+l:l);continue}let v=!!C,w=o(v?f.substring(0,C):f);if(!w){if(!v){l=d+(l.length>0?" "+l:l);continue}if(w=o(f),!w){l=d+(l.length>0?" "+l:l);continue}v=!1}const b=n(h).join(":"),S=p?b+Zl:b,y=S+w;if(r.includes(y))continue;r.push(y);const x=i(w,v);for(let R=0;R<x.length;++R){const E=x[R];r.push(S+E)}l=d+(l.length>0?" "+l:l)}return l};function ZC(){let e=0,t,s,o="";for(;e<arguments.length;)(t=arguments[e++])&&(s=ug(t))&&(o&&(o+=" "),o+=s);return o}const ug=e=>{if(typeof e=="string")return e;let t,s="";for(let o=0;o<e.length;o++)e[o]&&(t=ug(e[o]))&&(s&&(s+=" "),s+=t);return s};function XC(e,...t){let s,o,i,n=r;function r(l){const c=t.reduce((d,u)=>u(d),e());return s=KC(c),o=s.cache.get,i=s.cache.set,n=a,a(l)}function a(l){const c=o(l);if(c)return c;const d=YC(l,s);return i(l,d),d}return function(){return n(ZC.apply(null,arguments))}}const Ye=e=>{const t=s=>s[e]||[];return t.isThemeGetter=!0,t},hg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,gg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,QC=/^\d+\/\d+$/,JC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ev=/\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$/,tv=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,sv=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ov=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,To=e=>QC.test(e),ve=e=>!!e&&!Number.isNaN(Number(e)),ys=e=>!!e&&Number.isInteger(Number(e)),Ja=e=>e.endsWith("%")&&ve(e.slice(0,-1)),is=e=>JC.test(e),iv=()=>!0,nv=e=>ev.test(e)&&!tv.test(e),pg=()=>!1,rv=e=>sv.test(e),av=e=>ov.test(e),lv=e=>!se(e)&&!oe(e),cv=e=>li(e,Cg,pg),se=e=>hg.test(e),$s=e=>li(e,vg,nv),el=e=>li(e,pv,ve),Xd=e=>li(e,fg,pg),dv=e=>li(e,mg,av),Bn=e=>li(e,wg,rv),oe=e=>gg.test(e),Fi=e=>ci(e,vg),uv=e=>ci(e,fv),Qd=e=>ci(e,fg),hv=e=>ci(e,Cg),gv=e=>ci(e,mg),Vn=e=>ci(e,wg,!0),li=(e,t,s)=>{const o=hg.exec(e);return o?o[1]?t(o[1]):s(o[2]):!1},ci=(e,t,s=!1)=>{const o=gg.exec(e);return o?o[1]?t(o[1]):s:!1},fg=e=>e==="position"||e==="percentage",mg=e=>e==="image"||e==="url",Cg=e=>e==="length"||e==="size"||e==="bg-size",vg=e=>e==="length",pv=e=>e==="number",fv=e=>e==="family-name",wg=e=>e==="shadow",mv=()=>{const e=Ye("color"),t=Ye("font"),s=Ye("text"),o=Ye("font-weight"),i=Ye("tracking"),n=Ye("leading"),r=Ye("breakpoint"),a=Ye("container"),l=Ye("spacing"),c=Ye("radius"),d=Ye("shadow"),u=Ye("inset-shadow"),h=Ye("text-shadow"),p=Ye("drop-shadow"),f=Ye("blur"),C=Ye("perspective"),v=Ye("aspect"),w=Ye("ease"),b=Ye("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],x=()=>[...y(),oe,se],R=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],D=()=>[oe,se,l],T=()=>[To,"full","auto",...D()],k=()=>[ys,"none","subgrid",oe,se],F=()=>["auto",{span:["full",ys,oe,se]},ys,oe,se],M=()=>[ys,"auto",oe,se],L=()=>["auto","min","max","fr",oe,se],B=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],H=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",...D()],ee=()=>[To,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],O=()=>[e,oe,se],le=()=>[...y(),Qd,Xd,{position:[oe,se]}],z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],X=()=>["auto","cover","contain",hv,cv,{size:[oe,se]}],Y=()=>[Ja,Fi,$s],_=()=>["","none","full",c,oe,se],U=()=>["",ve,Fi,$s],te=()=>["solid","dashed","dotted","double"],N=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>[ve,Ja,Qd,Xd],j=()=>["","none",f,oe,se],ie=()=>["none",ve,oe,se],J=()=>["none",ve,oe,se],pe=()=>[ve,oe,se],Se=()=>[To,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[is],breakpoint:[is],color:[iv],container:[is],"drop-shadow":[is],ease:["in","out","in-out"],font:[lv],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[is],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[is],shadow:[is],spacing:["px",ve],text:[is],"text-shadow":[is],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",To,se,oe,v]}],container:["container"],columns:[{columns:[ve,se,oe,a]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:x()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{start:T()}],end:[{end:T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[ys,"auto",oe,se]}],basis:[{basis:[To,"full","auto",a,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ve,To,"auto","initial","none",se]}],grow:[{grow:["",ve,oe,se]}],shrink:[{shrink:["",ve,oe,se]}],order:[{order:[ys,"first","last","none",oe,se]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":L()}],"auto-rows":[{"auto-rows":L()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...B(),"normal"]}],"justify-items":[{"justify-items":[...H(),"normal"]}],"justify-self":[{"justify-self":["auto",...H()]}],"align-content":[{content:["normal",...B()]}],"align-items":[{items:[...H(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...H(),{baseline:["","last"]}]}],"place-content":[{"place-content":B()}],"place-items":[{"place-items":[...H(),"baseline"]}],"place-self":[{"place-self":["auto",...H()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],m:[{m:Q()}],mx:[{mx:Q()}],my:[{my:Q()}],ms:[{ms:Q()}],me:[{me:Q()}],mt:[{mt:Q()}],mr:[{mr:Q()}],mb:[{mb:Q()}],ml:[{ml:Q()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:ee()}],w:[{w:[a,"screen",...ee()]}],"min-w":[{"min-w":[a,"screen","none",...ee()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[r]},...ee()]}],h:[{h:["screen","lh",...ee()]}],"min-h":[{"min-h":["screen","lh","none",...ee()]}],"max-h":[{"max-h":["screen","lh",...ee()]}],"font-size":[{text:["base",s,Fi,$s]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,oe,el]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ja,se]}],"font-family":[{font:[uv,se,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,oe,se]}],"line-clamp":[{"line-clamp":[ve,"none",oe,el]}],leading:[{leading:[n,...D()]}],"list-image":[{"list-image":["none",oe,se]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",oe,se]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:[ve,"from-font","auto",oe,$s]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[ve,"auto",oe,se]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",oe,se]}],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",oe,se]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:le()}],"bg-repeat":[{bg:z()}],"bg-size":[{bg:X()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ys,oe,se],radial:["",oe,se],conic:[ys,oe,se]},gv,dv]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:Y()}],"gradient-via-pos":[{via:Y()}],"gradient-to-pos":[{to:Y()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:_()}],"rounded-s":[{"rounded-s":_()}],"rounded-e":[{"rounded-e":_()}],"rounded-t":[{"rounded-t":_()}],"rounded-r":[{"rounded-r":_()}],"rounded-b":[{"rounded-b":_()}],"rounded-l":[{"rounded-l":_()}],"rounded-ss":[{"rounded-ss":_()}],"rounded-se":[{"rounded-se":_()}],"rounded-ee":[{"rounded-ee":_()}],"rounded-es":[{"rounded-es":_()}],"rounded-tl":[{"rounded-tl":_()}],"rounded-tr":[{"rounded-tr":_()}],"rounded-br":[{"rounded-br":_()}],"rounded-bl":[{"rounded-bl":_()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":U()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...te(),"hidden","none"]}],"divide-style":[{divide:[...te(),"hidden","none"]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:[...te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ve,oe,se]}],"outline-w":[{outline:["",ve,Fi,$s]}],"outline-color":[{outline:O()}],shadow:[{shadow:["","none",d,Vn,Bn]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",u,Vn,Bn]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[ve,$s]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":["none",h,Vn,Bn]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[ve,oe,se]}],"mix-blend":[{"mix-blend":[...N(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":N()}],"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":[ve]}],"mask-image-linear-from-pos":[{"mask-linear-from":P()}],"mask-image-linear-to-pos":[{"mask-linear-to":P()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":P()}],"mask-image-t-to-pos":[{"mask-t-to":P()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":P()}],"mask-image-r-to-pos":[{"mask-r-to":P()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":P()}],"mask-image-b-to-pos":[{"mask-b-to":P()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":P()}],"mask-image-l-to-pos":[{"mask-l-to":P()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":P()}],"mask-image-x-to-pos":[{"mask-x-to":P()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":P()}],"mask-image-y-to-pos":[{"mask-y-to":P()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[oe,se]}],"mask-image-radial-from-pos":[{"mask-radial-from":P()}],"mask-image-radial-to-pos":[{"mask-radial-to":P()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"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":y()}],"mask-image-conic-pos":[{"mask-conic":[ve]}],"mask-image-conic-from-pos":[{"mask-conic-from":P()}],"mask-image-conic-to-pos":[{"mask-conic-to":P()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:le()}],"mask-repeat":[{mask:z()}],"mask-size":[{mask:X()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",oe,se]}],filter:[{filter:["","none",oe,se]}],blur:[{blur:j()}],brightness:[{brightness:[ve,oe,se]}],contrast:[{contrast:[ve,oe,se]}],"drop-shadow":[{"drop-shadow":["","none",p,Vn,Bn]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:["",ve,oe,se]}],"hue-rotate":[{"hue-rotate":[ve,oe,se]}],invert:[{invert:["",ve,oe,se]}],saturate:[{saturate:[ve,oe,se]}],sepia:[{sepia:["",ve,oe,se]}],"backdrop-filter":[{"backdrop-filter":["","none",oe,se]}],"backdrop-blur":[{"backdrop-blur":j()}],"backdrop-brightness":[{"backdrop-brightness":[ve,oe,se]}],"backdrop-contrast":[{"backdrop-contrast":[ve,oe,se]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ve,oe,se]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ve,oe,se]}],"backdrop-invert":[{"backdrop-invert":["",ve,oe,se]}],"backdrop-opacity":[{"backdrop-opacity":[ve,oe,se]}],"backdrop-saturate":[{"backdrop-saturate":[ve,oe,se]}],"backdrop-sepia":[{"backdrop-sepia":["",ve,oe,se]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":D()}],"border-spacing-x":[{"border-spacing-x":D()}],"border-spacing-y":[{"border-spacing-y":D()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",oe,se]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ve,"initial",oe,se]}],ease:[{ease:["linear","initial",w,oe,se]}],delay:[{delay:[ve,oe,se]}],animate:[{animate:["none",b,oe,se]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,oe,se]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ie()}],"rotate-x":[{"rotate-x":ie()}],"rotate-y":[{"rotate-y":ie()}],"rotate-z":[{"rotate-z":ie()}],scale:[{scale:J()}],"scale-x":[{"scale-x":J()}],"scale-y":[{"scale-y":J()}],"scale-z":[{"scale-z":J()}],"scale-3d":["scale-3d"],skew:[{skew:pe()}],"skew-x":[{"skew-x":pe()}],"skew-y":[{"skew-y":pe()}],transform:[{transform:[oe,se,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Se()}],"translate-x":[{"translate-x":Se()}],"translate-y":[{"translate-y":Se()}],"translate-z":[{"translate-z":Se()}],"translate-none":["translate-none"],accent:[{accent:O()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:O()}],"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",oe,se]}],"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":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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",oe,se]}],fill:[{fill:["none",...O()]}],"stroke-w":[{stroke:[ve,Fi,$s,el]}],stroke:[{stroke:["none",...O()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Cv=XC(mv);function ce(...e){return Cv(Z(e))}const bo=({fieldTitle:e,optional:t,optionalText:s,className:o,description:i,...n})=>e?m.jsxs("label",{...n,className:ce("dial-tiny text-secondary flex gap-1",o,!o?.includes("mb")&&"mb-2"),children:[typeof e=="string"?m.jsx("span",{className:"min-h-4",children:e}):e,t&&m.jsx("span",{children:s??"(Optional)"}),i&&m.jsx(ms,{tooltip:i,children:m.jsx(Le,{icon:m.jsx(V.IconInfoCircle,{size:14,className:"text-secondary"})})})]}):null;var Te=(e=>(e.Primary="primary",e.Secondary="secondary",e.Tertiary="tertiary",e.Danger="danger",e))(Te||{});const vv={[Te.Primary]:"dial-primary-button",[Te.Secondary]:"dial-secondary-button",[Te.Tertiary]:"dial-tertiary-button",[Te.Danger]:"dial-danger-button"},De=({label:e,variant:t,className:s,textClassName:o,iconAfter:i,iconBefore:n,hideTitleOnMobile:r,type:a="button",...l})=>{const c=Z("dial-small-semi",i?"mr-2":"",n?"ml-2":"",r?"hidden sm:inline":"inline",o),d=Z(t&&vv[t],"disabled:cursor-not-allowed focus-visible:outline outline-offset-0",s);return m.jsxs("button",{...l,type:a,className:d,"aria-label":e||l["aria-label"],children:[m.jsx(Le,{icon:n}),e&&m.jsx("span",{className:c,children:e}),m.jsx(Le,{icon:i})]})};var Zs=(e=>(e.Info="info",e.Success="success",e.Warning="warning",e.Error="error",e))(Zs||{});const wv=e=>({info:m.jsx(V.IconInfoCircle,{...e}),error:m.jsx(V.IconAlertCircle,{...e}),warning:m.jsx(V.IconAlertTriangle,{...e}),success:m.jsx(V.IconCircleCheck,{...e})}),bv={[Zs.Info]:"bg-info border-info text-info",[Zs.Success]:"bg-success border-success text-success",[Zs.Warning]:"bg-warning border-warning text-warning",[Zs.Error]:"bg-error border-error text-error"},Sv="items-center justify-between gap-2 p-3 border border-solid dial-small-150 rounded flex",yv=({variant:e=Zs.Info,message:t,className:s,iconSize:o=24,iconStroke:i=2,closable:n=!1,onClose:r,...a})=>{const l=g.useMemo(()=>wv({size:o,stroke:i})[e],[e,o,i]);return m.jsxs("div",{...a,role:"alert",className:ce(Sv,bv[e],s),children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(Le,{icon:l}),m.jsx("div",{className:"text-primary",children:t})]}),n&&m.jsx(De,{className:"ml-2 text-secondary hover:text-primary","aria-label":"Close alert",iconBefore:m.jsx(V.IconX,{size:16}),onClick:r})]})},xv="flex items-center justify-center text-secondary",Rv="shrink-0 grow-0 basis-auto animate-spin-steps",Fv=e=>ge.createElement("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ge.createElement("path",{d:"M24 39V46.5",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),ge.createElement("path",{opacity:.4,d:"M9 24H1.5",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),ge.createElement("path",{opacity:.5,d:"M8.0918 8.0918L13.3994 13.3994",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),ge.createElement("path",{opacity:.6,d:"M24 1.5V9",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),ge.createElement("path",{opacity:.7,d:"M39.9121 8.08594L37.2607 10.7373L34.6094 13.3887",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),ge.createElement("path",{opacity:.8,d:"M46.5 24H39",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),ge.createElement("path",{opacity:.9,d:"M34.6055 34.6055L39.9082 39.9082",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),ge.createElement("path",{opacity:.3,d:"M13.3936 34.6055L8.08594 39.9131",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"})),fn=({size:e=18,className:t,iconClassName:s,fullWidth:o=!0,ariaLabel:i="Loading"})=>m.jsx("div",{role:"status",className:Z({[xv]:!0,"w-full h-full":o,[t||""]:!!t}),children:m.jsx(Le,{icon:m.jsx(Fv,{width:e,height:e,className:Z(Rv,s),role:"img","aria-label":i})})}),ls=18,ae={size:ls,stroke:2},Ev="text-primary",ut=({text:e,className:t,contentClassName:s,hideTooltip:o,id:i,...n})=>{const r=g.useRef(null),[a,l]=g.useState(!1),[c,d]=g.useState(""),u=g.useRef(null),h=()=>{const v=r.current;if(!v)return;d(v.textContent??"");const w=v.clientWidth,b=v.scrollWidth,S=Math.ceil(v.getBoundingClientRect().width);l(b>w||b>S)},p=g.useCallback(()=>{u.current&&cancelAnimationFrame(u.current),u.current=requestAnimationFrame(h)},[]);g.useEffect(()=>{p();const v=()=>p();window.addEventListener("resize",v);let w=null;return"ResizeObserver"in window&&r.current&&(w=new ResizeObserver(()=>p()),w.observe(r.current)),()=>{window.removeEventListener("resize",v),w&&w.disconnect(),u.current&&cancelAnimationFrame(u.current)}},[e,p]);const f=g.useMemo(()=>typeof e=="string"?e:c,[c,e]),C=g.useMemo(()=>o?"":a?f:"",[f,o,a]);return m.jsxs(ag,{...n,children:[m.jsx(cg,{asChild:!0,onMouseEnter:p,onFocusCapture:p,children:m.jsx("span",{id:i,className:ce("block truncate flex-1 min-w-0 max-w-full text-left",t),"aria-label":a?f:void 0,onMouseEnter:p,onFocus:p,ref:r,children:e})}),m.jsx(lg,{className:ce(Ev,s,!C&&"hidden"),children:C})]})},Yi=({label:e,id:t,checked:s,indeterminate:o,disabled:i,ariaLabel:n,onChange:r,className:a,...l})=>{const c=g.useCallback(p=>{r?.(p.target.checked,t)},[r,t]),d=Z("flex flex-row items-center cursor-pointer text-accent-primary small-medium min-w-0",`${s||o?"":'before:content-[""] before:inline-block before:w-[18px] before:h-[18px] before:border before:border-hover before:rounded'}`,i?"pointer-events-none text-secondary before:border-icon-secondary before:bg-layer-4":"",a),u=Z("border rounded",i?"bg-layer-4 border-icon-secondary":""),h=()=>o?m.jsx(V.IconMinus,{className:u,...ae}):s?m.jsx(V.IconCheck,{className:u,...ae}):null;return m.jsxs("label",{...l,className:d,htmlFor:t,"aria-description":l["aria-description"]||"checkbox-container",children:[h(),e&&(typeof e=="string"?m.jsx(ut,{text:e,className:"ml-2 text-primary"}):e),m.jsx("input",{type:"checkbox",role:"checkbox",name:t,onChange:c,id:t,checked:s,"aria-checked":o?"mixed":s,"aria-disabled":i||void 0,"aria-label":e?void 0:n,className:"invisible w-0 h-0"})]})};var xt=(e=>(e.VALID="valid",e.ERROR="error",e))(xt||{});const Dv=(e,t)=>{if(t===e.id)switch(e.status){case xt.VALID:return"border-accent-secondary text-primary";case xt.ERROR:return"border-red-900 text-primary";default:return"border-accent-primary text-primary"}switch(e.status){case xt.VALID:return"border-primary text-primary";case xt.ERROR:return"border-red-900 text-error";default:return"border-primary text-secondary"}},Pv=(e,t)=>{if(t===e.id)switch(e.status){case xt.VALID:return"bg-accent-secondary";case xt.ERROR:return"bg-red-400";default:return"bg-accent-primary"}switch(e.status){case xt.VALID:return"bg-accent-secondary";case xt.ERROR:return"bg-red-400";default:return"bg-layer-4"}},Mv=({step:e,index:t,currentStep:s,onChangeStep:o})=>{const i="h-[32px] flex flex-1 min-w-[180px] items-center dial-tiny cursor-pointer dial-step",n="w-[22px] h-[22px] flex justify-center items-center mr-2 rounded-full text-white",r=()=>s===e.id&&e.status===xt.ERROR?m.jsx(V.IconExclamationCircle,{stroke:2,size:16}):s!==e.id&&e.status===xt.VALID?m.jsx(V.IconCheck,{stroke:2,size:16}):t+1;return m.jsxs("button",{className:Z(i,Dv(e,s)),onClick:()=>o(e.id),children:[m.jsx("span",{className:Z(n,Pv(e,s)),children:r()}),m.jsx("span",{children:e.name})]})},Tv=({steps:e,currentStep:t,onChangeStep:s})=>{const o=i=>{const n=e.findIndex(a=>a.id===t),r=e.findIndex(a=>a.id===i);(i!==t&&e[n].status===xt.VALID||r<n)&&s(i)};return m.jsx("div",{id:"steps",className:"flex gap-x-3",children:e.map((i,n)=>m.jsx(Mv,{currentStep:t,onChangeStep:o,step:i,index:n},i.id))})},bg=({name:e,value:t,title:s,description:o,checked:i=!1,inputId:n,className:r,labelClassName:a,disabled:l,onChange:c,descriptionClassName:d})=>{const u=`${n}-desc`,h=Z("dial-small cursor-pointer",l?"text-secondary":"text-primary",a),p=Z("cursor-pointer dial-input-radio",s&&"mr-2",r),f=Z("flex flex-col",!!o&&"mb-2"),C=Z("dial-tiny mt-2 ml-[26px] text-secondary",d),v=w=>{l||w.target.checked&&c?.(t)};return m.jsxs("div",{className:f,children:[m.jsxs("div",{className:"flex flex-row items-center",children:[m.jsx("input",{type:"radio",id:n,name:e,value:t,checked:i,disabled:l,"aria-describedby":i&&o?u:void 0,className:p,onChange:v}),s?m.jsx("label",{className:h,htmlFor:n,children:s}):null]}),i&&o&&m.jsx("div",{id:u,className:C,children:o})]})};var Zi=(e=>(e.Vertical="vertical",e.Horizontal="horizontal",e))(Zi||{});const Iv="w-full flex",kv={[Zi.Vertical]:"flex-col",[Zi.Horizontal]:"flex-row items-end"},ta=({elementId:e,label:t,optional:s,optionalText:o,description:i,error:n,orientation:r=Zi.Vertical,labelVisuallyHidden:a=!1,className:l,labelClassName:c,errorClassName:d,childrenClassName:u,captionDescription:h,readonly:p,value:f,defaultEmptyText:C,children:v})=>{const w=`${e}-label`,b=i?`${e}-desc`:void 0,S=n?`${e}-err`:void 0,y=`${e}-caption-desc`,x=[b,S].filter(Boolean).join(" ")||void 0,R=g.useCallback(()=>typeof n=="boolean"?null:typeof n=="string"||typeof n>"u"?n?m.jsx("div",{id:S,role:"alert","aria-live":"polite",className:d,children:m.jsx(Ts,{errorText:n})}):null:m.jsx("div",{id:S,role:"alert","aria-live":"polite",className:d,children:n}),[n,d,S]),E=g.useCallback(()=>f?typeof f=="string"||typeof f=="number"?m.jsx("span",{"aria-readonly":"true",children:f}):f:m.jsx("span",{className:"flex min-h-4","aria-readonly":"true",children:C??"None"}),[f,C]);return m.jsxs("div",{role:"group","aria-labelledby":t?w:void 0,"aria-describedby":x,className:ce(Iv,kv[r],l),children:[t&&m.jsx("div",{id:w,className:ce(r==="horizontal"&&"shrink-0"),children:m.jsx(bo,{htmlFor:e,fieldTitle:t,optional:s,optionalText:o,className:ce(a&&"sr-only",c),description:i})}),m.jsxs("div",{className:ce("min-w-0 w-full",u),children:[p?m.jsx("div",{className:"dial-input px-3 py-2",children:E()}):v,h&&m.jsx("div",{id:y,className:ce({"dial-tiny text-secondary mt-1":!0,"text-error":!!n}),children:h}),R()]})]})};var lo=(e=>(e.Row="Row",e.Column="Column",e))(lo||{});const Av="flex",Lv="pb-1 mt-2",Ov={[lo.Column]:"flex-col gap-y-3",[lo.Row]:"flex-row gap-x-6"},yr=({fieldTitle:e,radioClassName:t,containerClassName:s,selectedItemClassName:o,selectedLabelClassName:i,radioGroupClassName:n,inputContainerClassName:r,selectedInputContainerClassName:a,groupLabelClassName:l,formItemChildrenClassName:c,labelClassName:d,disabled:u,elementId:h,radioButtons:p,activeRadioButton:f,orientation:C,onChange:v})=>m.jsx(ta,{elementId:h,label:e,labelClassName:l||d,className:s,childrenClassName:c,children:m.jsx("div",{role:"radiogroup","aria-label":e,"aria-disabled":u||void 0,className:ce(Av,Ov[C],n),children:p.map(w=>m.jsxs("div",{className:ce("flex flex-col",r,w.id===f&&a),children:[m.jsx(bg,{name:h,value:w.id,inputId:w.id,disabled:u,className:t,labelClassName:ce(d,w.id===f&&i),title:w.name,checked:w.id===f,onChange:()=>v(w.id)}),w.id===f&&w.content?m.jsx("div",{className:ce(Lv,o),children:w.content}):null]},w.id))})}),sa=({icon:e,title:t,description:s,containerClassName:o,titleClassName:i,descriptionClassName:n})=>m.jsxs("div",{className:ce("h-full w-full flex flex-col items-center justify-center text-secondary",o),"aria-label":"no-data-container",children:[e||m.jsx(V.IconClipboardX,{width:60,height:60}),m.jsx("span",{className:ce("dial-small mt-2 text-primary",i),"aria-label":"no-results-title",children:t}),s&&m.jsx("span",{className:ce("mt-1 text-primary",n),"aria-label":"no-results-description",children:s})]}),tl=48,Sg=({containerClassName:e,children:t,width:s=280,title:o,iconSize:i=24,iconStroke:n=1.5,titleClassName:r,additionalButtons:a,isOpened:l,onToggle:c})=>{const[d,u]=g.useState(s),[h,p]=g.useState(!0),f=g.useMemo(()=>typeof l=="boolean",[l]),C=f?l:h;g.useEffect(()=>{f&&u(l?s:tl)},[f,l,s]);const v=Z(["transform rotate-180 [writing-mode:tb-rl] py-4 px-3",C&&"hidden",r]),w=Z(["flex flex-row gap-2 cursor-pointer text-secondary p-2 px-4",C?"justify-end":"justify-center"]),b=S=>{const y=!C;if(f){u(y?s:tl),c?.(y,S);return}u(y?s:tl),p(y)};return m.jsxs("div",{className:Z(["rounded flex flex-col justify-between overflow-y-auto flex-shrink-0",e]),style:{width:`${d}px`},"aria-label":"collapsible-sidebar",children:[m.jsx("div",{className:Z(["flex-1 p-4 min-h-0 overflow-auto",!C&&"hidden"]),children:t}),m.jsx("div",{className:v,children:o}),m.jsxs("div",{className:ce("border-t border-primary h-12",w),children:[C&&a,m.jsx(De,{className:"hover:text-accent-primary p-1",onClick:b,"aria-label":"sidebar-state",iconBefore:C?m.jsx(V.IconChevronsLeft,{size:i,stroke:n}):m.jsx(V.IconChevronsRight,{size:i,stroke:n})})]})]})},Nv=({label:e,text:t,children:s,postfix:o})=>m.jsxs("div",{className:Z("flex flex-col",s?"":"max-w-[200px]"),children:[m.jsx("label",{className:"dial-tiny mb-2 text-secondary",children:e}),s||m.jsxs("div",{className:"flex flex-row items-center",children:[m.jsx(ms,{triggerClassName:"text-primary",tooltip:t,children:t}),o||null]})]});var oa=(e=>(e.Default="default",e))(oa||{});const Hv={[oa.Default]:"border-icon-secondary bg-layer-3"},ia=({tag:e,className:t,remove:s,variant:o=oa.Default,iconBefore:i,bordered:n=!0})=>{const r=Hv[o],a=ce("flex items-center gap-1 dial-tiny rounded p-1 h-[22px] text-primary",r,n?"border":"border-transparent",t);return m.jsxs("div",{className:a,children:[m.jsx(Le,{icon:i}),m.jsx(ut,{text:e}),s&&m.jsx(De,{iconAfter:m.jsx(V.IconX,{size:16}),onClick:l=>s(l)})]},e)},yg=g.createContext({dragDropManager:void 0});function Pt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Jd=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),eu=function(){return Math.random().toString(36).substring(7).split("").join(".")},tu={INIT:"@@redux/INIT"+eu(),REPLACE:"@@redux/REPLACE"+eu()};function Gv(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Bv(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(Wv(e))return"date";if(zv(e))return"error";var s=Vv(e);switch(s){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return s}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function Vv(e){return typeof e.constructor=="function"?e.constructor.name:null}function zv(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Wv(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Io(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=Bv(e)),t}function xg(e,t,s){var o;if(typeof t=="function"&&typeof s=="function"||typeof s=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Pt(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof s>"u"&&(s=t,t=void 0),typeof s<"u"){if(typeof s!="function")throw new Error(process.env.NODE_ENV==="production"?Pt(1):"Expected the enhancer to be a function. Instead, received: '"+Io(s)+"'");return s(xg)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?Pt(2):"Expected the root reducer to be a function. Instead, received: '"+Io(e)+"'");var i=e,n=t,r=[],a=r,l=!1;function c(){a===r&&(a=r.slice())}function d(){if(l)throw new Error(process.env.NODE_ENV==="production"?Pt(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return n}function u(C){if(typeof C!="function")throw new Error(process.env.NODE_ENV==="production"?Pt(4):"Expected the listener to be a function. Instead, received: '"+Io(C)+"'");if(l)throw new Error(process.env.NODE_ENV==="production"?Pt(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var v=!0;return c(),a.push(C),function(){if(v){if(l)throw new Error(process.env.NODE_ENV==="production"?Pt(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");v=!1,c();var b=a.indexOf(C);a.splice(b,1),r=null}}}function h(C){if(!Gv(C))throw new Error(process.env.NODE_ENV==="production"?Pt(7):"Actions must be plain objects. Instead, the actual type was: '"+Io(C)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof C.type>"u")throw new Error(process.env.NODE_ENV==="production"?Pt(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(l)throw new Error(process.env.NODE_ENV==="production"?Pt(9):"Reducers may not dispatch actions.");try{l=!0,n=i(n,C)}finally{l=!1}for(var v=r=a,w=0;w<v.length;w++){var b=v[w];b()}return C}function p(C){if(typeof C!="function")throw new Error(process.env.NODE_ENV==="production"?Pt(10):"Expected the nextReducer to be a function. Instead, received: '"+Io(C));i=C,h({type:tu.REPLACE})}function f(){var C,v=u;return C={subscribe:function(b){if(typeof b!="object"||b===null)throw new Error(process.env.NODE_ENV==="production"?Pt(11):"Expected the observer to be an object. Instead, received: '"+Io(b)+"'");function S(){b.next&&b.next(d())}S();var y=v(S);return{unsubscribe:y}}},C[Jd]=function(){return this},C}return h({type:tu.INIT}),o={dispatch:h,subscribe:u,getState:d,replaceReducer:p},o[Jd]=f,o}function Ce(e,t,...s){if(_v()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let o;if(t===void 0)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let i=0;o=new Error(t.replace(/%s/g,function(){return s[i++]})),o.name="Invariant Violation"}throw o.framesToPop=1,o}}function _v(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function jv(e,t,s){return t.split(".").reduce((o,i)=>o&&o[i]?o[i]:s||null,e)}function Uv(e,t){return e.filter(s=>s!==t)}function Rg(e){return typeof e=="object"}function $v(e,t){const s=new Map,o=n=>{s.set(n,s.has(n)?s.get(n)+1:1)};e.forEach(o),t.forEach(o);const i=[];return s.forEach((n,r)=>{n===1&&i.push(r)}),i}function Kv(e,t){return e.filter(s=>t.indexOf(s)>-1)}const Vc="dnd-core/INIT_COORDS",na="dnd-core/BEGIN_DRAG",zc="dnd-core/PUBLISH_DRAG_SOURCE",ra="dnd-core/HOVER",aa="dnd-core/DROP",la="dnd-core/END_DRAG";function su(e,t){return{type:Vc,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const qv={type:Vc,payload:{clientOffset:null,sourceClientOffset:null}};function Yv(e){return function(s=[],o={publishSource:!0}){const{publishSource:i=!0,clientOffset:n,getSourceClientOffset:r}=o,a=e.getMonitor(),l=e.getRegistry();e.dispatch(su(n)),Zv(s,a,l);const c=Jv(s,a);if(c==null){e.dispatch(qv);return}let d=null;if(n){if(!r)throw new Error("getSourceClientOffset must be defined");Xv(r),d=r(c)}e.dispatch(su(n,d));const h=l.getSource(c).beginDrag(a,c);if(h==null)return;Qv(h),l.pinSource(c);const p=l.getSourceType(c);return{type:na,payload:{itemType:p,item:h,sourceId:c,clientOffset:n||null,sourceClientOffset:d||null,isSourcePublic:!!i}}}}function Zv(e,t,s){Ce(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(o){Ce(s.getSource(o),"Expected sourceIds to be registered.")})}function Xv(e){Ce(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function Qv(e){Ce(Rg(e),"Item must be an object.")}function Jv(e,t){let s=null;for(let o=e.length-1;o>=0;o--)if(t.canDragSource(e[o])){s=e[o];break}return s}function ew(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function tw(e){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{},o=Object.keys(s);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(s).filter(function(i){return Object.getOwnPropertyDescriptor(s,i).enumerable}))),o.forEach(function(i){ew(e,i,s[i])})}return e}function sw(e){return function(s={}){const o=e.getMonitor(),i=e.getRegistry();ow(o),rw(o).forEach((r,a)=>{const l=iw(r,a,i,o),c={type:aa,payload:{dropResult:tw({},s,l)}};e.dispatch(c)})}}function ow(e){Ce(e.isDragging(),"Cannot call drop while not dragging."),Ce(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function iw(e,t,s,o){const i=s.getTarget(e);let n=i?i.drop(o,e):void 0;return nw(n),typeof n>"u"&&(n=t===0?{}:o.getDropResult()),n}function nw(e){Ce(typeof e>"u"||Rg(e),"Drop result must either be an object or undefined.")}function rw(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function aw(e){return function(){const s=e.getMonitor(),o=e.getRegistry();lw(s);const i=s.getSourceId();return i!=null&&(o.getSource(i,!0).endDrag(s,i),o.unpinSource()),{type:la}}}function lw(e){Ce(e.isDragging(),"Cannot call endDrag while not dragging.")}function Ql(e,t){return t===null?e===null:Array.isArray(e)?e.some(s=>s===t):e===t}function cw(e){return function(s,{clientOffset:o}={}){dw(s);const i=s.slice(0),n=e.getMonitor(),r=e.getRegistry(),a=n.getItemType();return hw(i,r,a),uw(i,n,r),gw(i,n,r),{type:ra,payload:{targetIds:i,clientOffset:o||null}}}}function dw(e){Ce(Array.isArray(e),"Expected targetIds to be an array.")}function uw(e,t,s){Ce(t.isDragging(),"Cannot call hover while not dragging."),Ce(!t.didDrop(),"Cannot call hover after drop.");for(let o=0;o<e.length;o++){const i=e[o];Ce(e.lastIndexOf(i)===o,"Expected targetIds to be unique in the passed array.");const n=s.getTarget(i);Ce(n,"Expected targetIds to be registered.")}}function hw(e,t,s){for(let o=e.length-1;o>=0;o--){const i=e[o],n=t.getTargetType(i);Ql(n,s)||e.splice(o,1)}}function gw(e,t,s){e.forEach(function(o){s.getTarget(o).hover(t,o)})}function pw(e){return function(){if(e.getMonitor().isDragging())return{type:zc}}}function fw(e){return{beginDrag:Yv(e),publishDragSource:pw(e),hover:cw(e),drop:sw(e),endDrag:aw(e)}}class mw{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:s}=this.store;function o(n){return(...r)=>{const a=n.apply(t,r);typeof a<"u"&&s(a)}}const i=fw(this);return Object.keys(i).reduce((n,r)=>{const a=i[r];return n[r]=o(a),n},{})}dispatch(t){this.store.dispatch(t)}constructor(t,s){this.isSetUp=!1,this.handleRefCountChange=()=>{const o=this.store.getState().refCount>0;this.backend&&(o&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!o&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=s,t.subscribe(this.handleRefCountChange)}}function Cw(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Fg(e,t){return{x:e.x-t.x,y:e.y-t.y}}function vw(e){const{clientOffset:t,initialClientOffset:s,initialSourceClientOffset:o}=e;return!t||!s||!o?null:Fg(Cw(t,o),s)}function ww(e){const{clientOffset:t,initialClientOffset:s}=e;return!t||!s?null:Fg(t,s)}const Hi=[],Wc=[];Hi.__IS_NONE__=!0;Wc.__IS_ALL__=!0;function bw(e,t){return e===Hi?!1:e===Wc||typeof t>"u"?!0:Kv(t,e).length>0}class Sw{subscribeToStateChange(t,s={}){const{handlerIds:o}=s;Ce(typeof t=="function","listener must be a function."),Ce(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const n=()=>{const r=this.store.getState(),a=r.stateId;try{a===i||a===i+1&&!bw(r.dirtyHandlerIds,o)||t()}finally{i=a}};return this.store.subscribe(n)}subscribeToOffsetChange(t){Ce(typeof t=="function","listener must be a function.");let s=this.store.getState().dragOffset;const o=()=>{const i=this.store.getState().dragOffset;i!==s&&(s=i,t())};return this.store.subscribe(o)}canDragSource(t){if(!t)return!1;const s=this.registry.getSource(t);return Ce(s,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:s.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const s=this.registry.getTarget(t);if(Ce(s,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const o=this.registry.getTargetType(t),i=this.getItemType();return Ql(o,i)&&s.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const s=this.registry.getSource(t,!0);if(Ce(s,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const o=this.registry.getSourceType(t),i=this.getItemType();return o!==i?!1:s.isDragging(this,t)}isOverTarget(t,s={shallow:!1}){if(!t)return!1;const{shallow:o}=s;if(!this.isDragging())return!1;const i=this.registry.getTargetType(t),n=this.getItemType();if(n&&!Ql(i,n))return!1;const r=this.getTargetIds();if(!r.length)return!1;const a=r.indexOf(t);return o?a===r.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return vw(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return ww(this.store.getState().dragOffset)}constructor(t,s){this.store=t,this.registry=s}}const ou=typeof global<"u"?global:self,Eg=ou.MutationObserver||ou.WebKitMutationObserver;function Dg(e){return function(){const s=setTimeout(i,0),o=setInterval(i,50);function i(){clearTimeout(s),clearInterval(o),e()}}}function yw(e){let t=1;const s=new Eg(e),o=document.createTextNode("");return s.observe(o,{characterData:!0}),function(){t=-t,o.data=t}}const xw=typeof Eg=="function"?yw:Dg;class Rw{enqueueTask(t){const{queue:s,requestFlush:o}=this;s.length||(o(),this.flushing=!0),s[s.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const s=this.index;if(this.index++,t[s].call(),this.index>this.capacity){for(let o=0,i=t.length-this.index;o<i;o++)t[o]=t[o+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=xw(this.flush),this.requestErrorThrow=Dg(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Fw{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,s){this.onError=t,this.release=s,this.task=null}}class Ew{create(t){const s=this.freeTasks,o=s.length?s.pop():new Fw(this.onError,i=>s[s.length]=i);return o.task=t,o}constructor(t){this.onError=t,this.freeTasks=[]}}const Pg=new Rw,Dw=new Ew(Pg.registerPendingError);function Pw(e){Pg.enqueueTask(Dw.create(e))}const _c="dnd-core/ADD_SOURCE",jc="dnd-core/ADD_TARGET",Uc="dnd-core/REMOVE_SOURCE",ca="dnd-core/REMOVE_TARGET";function Mw(e){return{type:_c,payload:{sourceId:e}}}function Tw(e){return{type:jc,payload:{targetId:e}}}function Iw(e){return{type:Uc,payload:{sourceId:e}}}function kw(e){return{type:ca,payload:{targetId:e}}}function Aw(e){Ce(typeof e.canDrag=="function","Expected canDrag to be a function."),Ce(typeof e.beginDrag=="function","Expected beginDrag to be a function."),Ce(typeof e.endDrag=="function","Expected endDrag to be a function.")}function Lw(e){Ce(typeof e.canDrop=="function","Expected canDrop to be a function."),Ce(typeof e.hover=="function","Expected hover to be a function."),Ce(typeof e.drop=="function","Expected beginDrag to be a function.")}function Jl(e,t){if(t&&Array.isArray(e)){e.forEach(s=>Jl(s,!1));return}Ce(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var kt;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(kt||(kt={}));let Ow=0;function Nw(){return Ow++}function Hw(e){const t=Nw().toString();switch(e){case kt.SOURCE:return`S${t}`;case kt.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function iu(e){switch(e[0]){case"S":return kt.SOURCE;case"T":return kt.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function nu(e,t){const s=e.entries();let o=!1;do{const{done:i,value:[,n]}=s.next();if(n===t)return!0;o=!!i}while(!o);return!1}class Gw{addSource(t,s){Jl(t),Aw(s);const o=this.addHandler(kt.SOURCE,t,s);return this.store.dispatch(Mw(o)),o}addTarget(t,s){Jl(t,!0),Lw(s);const o=this.addHandler(kt.TARGET,t,s);return this.store.dispatch(Tw(o)),o}containsHandler(t){return nu(this.dragSources,t)||nu(this.dropTargets,t)}getSource(t,s=!1){return Ce(this.isSourceId(t),"Expected a valid source ID."),s&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return Ce(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return Ce(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return Ce(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return iu(t)===kt.SOURCE}isTargetId(t){return iu(t)===kt.TARGET}removeSource(t){Ce(this.getSource(t),"Expected an existing source."),this.store.dispatch(Iw(t)),Pw(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){Ce(this.getTarget(t),"Expected an existing target."),this.store.dispatch(kw(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const s=this.getSource(t);Ce(s,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=s}unpinSource(){Ce(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,s,o){const i=Hw(t);return this.types.set(i,s),t===kt.SOURCE?this.dragSources.set(i,o):t===kt.TARGET&&this.dropTargets.set(i,o),i}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const Bw=(e,t)=>e===t;function Vw(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function zw(e,t,s=Bw){if(e.length!==t.length)return!1;for(let o=0;o<e.length;++o)if(!s(e[o],t[o]))return!1;return!0}function Ww(e=Hi,t){switch(t.type){case ra:break;case _c:case jc:case ca:case Uc:return Hi;case na:case zc:case la:case aa:default:return Wc}const{targetIds:s=[],prevTargetIds:o=[]}=t.payload,i=$v(s,o);if(!(i.length>0||!zw(s,o)))return Hi;const r=o[o.length-1],a=s[s.length-1];return r!==a&&(r&&i.push(r),a&&i.push(a)),i}function _w(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function jw(e){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{},o=Object.keys(s);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(s).filter(function(i){return Object.getOwnPropertyDescriptor(s,i).enumerable}))),o.forEach(function(i){_w(e,i,s[i])})}return e}const ru={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Uw(e=ru,t){const{payload:s}=t;switch(t.type){case Vc:case na:return{initialSourceClientOffset:s.sourceClientOffset,initialClientOffset:s.clientOffset,clientOffset:s.clientOffset};case ra:return Vw(e.clientOffset,s.clientOffset)?e:jw({},e,{clientOffset:s.clientOffset});case la:case aa:return ru;default:return e}}function $w(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function ko(e){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{},o=Object.keys(s);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(s).filter(function(i){return Object.getOwnPropertyDescriptor(s,i).enumerable}))),o.forEach(function(i){$w(e,i,s[i])})}return e}const Kw={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function qw(e=Kw,t){const{payload:s}=t;switch(t.type){case na:return ko({},e,{itemType:s.itemType,item:s.item,sourceId:s.sourceId,isSourcePublic:s.isSourcePublic,dropResult:null,didDrop:!1});case zc:return ko({},e,{isSourcePublic:!0});case ra:return ko({},e,{targetIds:s.targetIds});case ca:return e.targetIds.indexOf(s.targetId)===-1?e:ko({},e,{targetIds:Uv(e.targetIds,s.targetId)});case aa:return ko({},e,{dropResult:s.dropResult,didDrop:!0,targetIds:[]});case la:return ko({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function Yw(e=0,t){switch(t.type){case _c:case jc:return e+1;case Uc:case ca:return e-1;default:return e}}function Zw(e=0){return e+1}function Xw(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function Qw(e){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{},o=Object.keys(s);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(s).filter(function(i){return Object.getOwnPropertyDescriptor(s,i).enumerable}))),o.forEach(function(i){Xw(e,i,s[i])})}return e}function Jw(e={},t){return{dirtyHandlerIds:Ww(e.dirtyHandlerIds,{type:t.type,payload:Qw({},t.payload,{prevTargetIds:jv(e,"dragOperation.targetIds",[])})}),dragOffset:Uw(e.dragOffset,t),refCount:Yw(e.refCount,t),dragOperation:qw(e.dragOperation,t),stateId:Zw(e.stateId)}}function e1(e,t=void 0,s={},o=!1){const i=t1(o),n=new Sw(i,new Gw(i)),r=new mw(i,n),a=e(r,t,s);return r.receiveBackend(a),r}function t1(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return xg(Jw,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function s1(e,t){if(e==null)return{};var s=o1(e,t),o,i;if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(s[o]=e[o])}return s}function o1(e,t){if(e==null)return{};var s={},o=Object.keys(e),i,n;for(n=0;n<o.length;n++)i=o[n],!(t.indexOf(i)>=0)&&(s[i]=e[i]);return s}let au=0;const nr=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var i1=g.memo(function(t){var{children:s}=t,o=s1(t,["children"]);const[i,n]=n1(o);return g.useEffect(()=>{if(n){const r=Mg();return++au,()=>{--au===0&&(r[nr]=null)}}},[]),m.jsx(yg.Provider,{value:i,children:s})});function n1(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=r1(e.backend,e.context,e.options,e.debugMode),s=!e.context;return[t,s]}function r1(e,t=Mg(),s,o){const i=t;return i[nr]||(i[nr]={dragDropManager:e1(e,t,s,o)}),i[nr]}function Mg(){return typeof global<"u"?global:window}function a1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sl,lu;function l1(){return lu||(lu=1,sl=function e(t,s){if(t===s)return!0;if(t&&s&&typeof t=="object"&&typeof s=="object"){if(t.constructor!==s.constructor)return!1;var o,i,n;if(Array.isArray(t)){if(o=t.length,o!=s.length)return!1;for(i=o;i--!==0;)if(!e(t[i],s[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===s.source&&t.flags===s.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===s.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===s.toString();if(n=Object.keys(t),o=n.length,o!==Object.keys(s).length)return!1;for(i=o;i--!==0;)if(!Object.prototype.hasOwnProperty.call(s,n[i]))return!1;for(i=o;i--!==0;){var r=n[i];if(!e(t[r],s[r]))return!1}return!0}return t!==t&&s!==s}),sl}var c1=l1();const d1=a1(c1),co=typeof window<"u"?g.useLayoutEffect:g.useEffect;function u1(e,t,s){const[o,i]=g.useState(()=>t(e)),n=g.useCallback(()=>{const r=t(e);d1(o,r)||(i(r),s&&s())},[o,e,s]);return co(n),[o,n]}function h1(e,t,s){const[o,i]=u1(e,t,s);return co(function(){const r=e.getHandlerId();if(r!=null)return e.subscribeToStateChange(i,{handlerIds:[r]})},[e,i]),o}function Tg(e,t,s){return h1(t,e||(()=>({})),()=>s.reconnect())}function Ig(e,t){const s=[...t||[]];return t==null&&typeof e!="function"&&s.push(e),g.useMemo(()=>typeof e=="function"?e():e,s)}function g1(e){return g.useMemo(()=>e.hooks.dragSource(),[e])}function p1(e){return g.useMemo(()=>e.hooks.dragPreview(),[e])}let ol=!1,il=!1;class f1{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){Ce(!ol,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return ol=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{ol=!1}}isDragging(){if(!this.sourceId)return!1;Ce(!il,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return il=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{il=!1}}subscribeToStateChange(t,s){return this.internalMonitor.subscribeToStateChange(t,s)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,s){return this.internalMonitor.isOverTarget(t,s)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let nl=!1;class m1{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,s){return this.internalMonitor.subscribeToStateChange(t,s)}canDrop(){if(!this.targetId)return!1;Ce(!nl,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return nl=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{nl=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function C1(e,t,s){const o=s.getRegistry(),i=o.addTarget(e,t);return[i,()=>o.removeTarget(i)]}function v1(e,t,s){const o=s.getRegistry(),i=o.addSource(e,t);return[i,()=>o.removeSource(i)]}function ec(e,t,s,o){let i;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const a=Object.prototype.hasOwnProperty.bind(t);for(let l=0;l<n.length;l++){const c=n[l];if(!a(c))return!1;const d=e[c],u=t[c];if(i=void 0,i===!1||i===void 0&&d!==u)return!1}return!0}function tc(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function w1(e){if(typeof e.type=="string")return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function b1(e){return(t=null,s=null)=>{if(!g.isValidElement(t)){const n=t;return e(n,s),n}const o=t;return w1(o),S1(o,s?n=>e(n,s):e)}}function kg(e){const t={};return Object.keys(e).forEach(s=>{const o=e[s];if(s.endsWith("Ref"))t[s]=e[s];else{const i=b1(o);t[s]=()=>i}}),t}function cu(e,t){typeof e=="function"?e(t):e.current=t}function S1(e,t){const s=e.ref;return Ce(typeof s!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),s?g.cloneElement(e,{ref:o=>{cu(s,o),cu(t,o)}}):g.cloneElement(e,{ref:t})}class y1{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,s=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return s&&this.disconnectDragSource(),this.handlerId?t?(s&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),s):(this.lastConnectedDragSource=t,s):s}reconnectDragPreview(t=!1){const s=this.dragPreview,o=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(o&&this.disconnectDragPreview(),!!this.handlerId){if(!s){this.lastConnectedDragPreview=s;return}o&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=s,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,s,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!ec(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!ec(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=kg({dragSource:(s,o)=>{this.clearDragSource(),this.dragSourceOptions=o||null,tc(s)?this.dragSourceRef=s:this.dragSourceNode=s,this.reconnectDragSource()},dragPreview:(s,o)=>{this.clearDragPreview(),this.dragPreviewOptions=o||null,tc(s)?this.dragPreviewRef=s:this.dragPreviewNode=s,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class x1{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const s=this.dropTarget;if(this.handlerId){if(!s){this.lastConnectedDropTarget=s;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=s,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,s,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!ec(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=kg({dropTarget:(s,o)=>{this.clearDropTarget(),this.dropTargetOptions=o,tc(s)?this.dropTargetRef=s:this.dropTargetNode=s,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function di(){const{dragDropManager:e}=g.useContext(yg);return Ce(e!=null,"Expected drag drop context"),e}function R1(e,t){const s=di(),o=g.useMemo(()=>new y1(s.getBackend()),[s]);return co(()=>(o.dragSourceOptions=e||null,o.reconnect(),()=>o.disconnectDragSource()),[o,e]),co(()=>(o.dragPreviewOptions=t||null,o.reconnect(),()=>o.disconnectDragPreview()),[o,t]),o}function F1(){const e=di();return g.useMemo(()=>new f1(e),[e])}class E1{beginDrag(){const t=this.spec,s=this.monitor;let o=null;return typeof t.item=="object"?o=t.item:typeof t.item=="function"?o=t.item(s):o={},o??null}canDrag(){const t=this.spec,s=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(s):!0}isDragging(t,s){const o=this.spec,i=this.monitor,{isDragging:n}=o;return n?n(i):s===t.getSourceId()}endDrag(){const t=this.spec,s=this.monitor,o=this.connector,{end:i}=t;i&&i(s.getItem(),s),o.reconnect()}constructor(t,s,o){this.spec=t,this.monitor=s,this.connector=o}}function D1(e,t,s){const o=g.useMemo(()=>new E1(e,t,s),[t,s]);return g.useEffect(()=>{o.spec=e},[e]),o}function P1(e){return g.useMemo(()=>{const t=e.type;return Ce(t!=null,"spec.type must be defined"),t},[e])}function M1(e,t,s){const o=di(),i=D1(e,t,s),n=P1(e);co(function(){if(n!=null){const[a,l]=v1(n,i,o);return t.receiveHandlerId(a),s.receiveHandlerId(a),l}},[o,t,s,i,n])}function T1(e,t){const s=Ig(e,t);Ce(!s.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const o=F1(),i=R1(s.options,s.previewOptions);return M1(s,o,i),[Tg(s.collect,o,i),g1(i),p1(i)]}function I1(e){return g.useMemo(()=>e.hooks.dropTarget(),[e])}function k1(e){const t=di(),s=g.useMemo(()=>new x1(t.getBackend()),[t]);return co(()=>(s.dropTargetOptions=e||null,s.reconnect(),()=>s.disconnectDropTarget()),[e]),s}function A1(){const e=di();return g.useMemo(()=>new m1(e),[e])}function L1(e){const{accept:t}=e;return g.useMemo(()=>(Ce(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class O1{canDrop(){const t=this.spec,s=this.monitor;return t.canDrop?t.canDrop(s.getItem(),s):!0}hover(){const t=this.spec,s=this.monitor;t.hover&&t.hover(s.getItem(),s)}drop(){const t=this.spec,s=this.monitor;if(t.drop)return t.drop(s.getItem(),s)}constructor(t,s){this.spec=t,this.monitor=s}}function N1(e,t){const s=g.useMemo(()=>new O1(e,t),[t]);return g.useEffect(()=>{s.spec=e},[e]),s}function H1(e,t,s){const o=di(),i=N1(e,t),n=L1(e);co(function(){const[a,l]=C1(n,i,o);return t.receiveHandlerId(a),s.receiveHandlerId(a),l},[o,t,i,s,n.map(r=>r.toString()).join("|")])}function Ag(e,t){const s=Ig(e,t),o=A1(),i=k1(s.options);return H1(s,o,i),[Tg(s.collect,o,i),I1(i)]}const du="column",G1="flex items-center",B1="mr-3 cursor-move text-secondary",V1=({id:e,children:t,className:s,onFind:o,onMove:i,ariaLabel:n="Drag item"})=>{const r=g.useRef(null),a=g.useRef(null),l=typeof o=="function"?o(e):-1,[{isDragging:c},d,u]=T1(()=>({type:du,item:{id:e,originalIndex:l},collect:p=>{const f=p.getItem();return{isDragging:p.isDragging()&&f?.id===e}},end:(p,f)=>{if(!p)return;!f.didDrop()&&typeof i=="function"&&p.originalIndex>-1&&i(p.id,p.originalIndex)}}),[e,l,i]),[,h]=Ag(()=>({accept:du,hover:p=>{if(!(!p||p.id===e)&&typeof o=="function"&&typeof i=="function"){const f=o(e);i(p.id,f)}}}),[o,i,e]);return u(h(a)),d(r),m.jsxs("div",{ref:a,className:ce(G1,s),style:{opacity:c?0:1},"aria-roledescription":"Draggable item",children:[m.jsx("div",{ref:r,className:B1,"aria-label":n,children:m.jsx(V.IconGripVertical,{...ae})}),t]})},z1=e=>ge.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ge.createElement("path",{d:"M3.68628 10.3945C3.91003 10.408 4.10927 10.4422 4.2832 10.4978L4.28394 10.4971C4.5167 10.5698 4.71621 10.6662 4.87939 10.7871C4.9994 10.876 5.10332 10.974 5.18994 11.0815L5.27051 11.1929L5.27197 11.1943L5.34009 11.3079C5.38301 11.3838 5.42067 11.4597 5.45288 11.5356L5.49683 11.6492L5.49756 11.6514L5.53198 11.7649C5.56274 11.877 5.5838 11.9867 5.59497 12.0938C5.61194 12.23 5.62059 12.3501 5.62061 12.4534C5.62061 12.6166 5.57231 12.7639 5.47559 12.8906C5.41544 12.9694 5.325 13.0198 5.21997 13.0503C5.11455 13.0809 4.98537 13.0942 4.83691 13.0942C4.73711 13.0942 4.62608 13.0838 4.50439 13.0635C4.37577 13.0415 4.26002 12.9966 4.16089 12.9272L4.15869 12.9258C4.04118 12.8396 3.98657 12.7121 3.98657 12.5625C3.98655 12.2721 3.94576 12.0552 3.87231 11.9033L3.87158 11.9011C3.81572 11.7798 3.69406 11.7026 3.45337 11.7026C3.33114 11.7027 3.25307 11.7292 3.20435 11.7671C3.14221 11.8149 3.10061 11.864 3.07617 11.9128C3.04149 11.985 3.02355 12.0599 3.02124 12.1384V14.7905L3.02637 14.8652C3.03466 14.9384 3.05266 15.0073 3.07983 15.0725L3.10254 15.1201C3.12874 15.1672 3.16488 15.2124 3.21167 15.2556C3.2602 15.2978 3.33572 15.3259 3.45337 15.3259C3.56813 15.3259 3.65533 15.3041 3.71997 15.2673C3.78314 15.2313 3.83208 15.1772 3.86646 15.0996C3.94535 14.9186 3.98655 14.7002 3.98657 14.4412C3.98657 14.3004 4.04381 14.1839 4.1499 14.0991L4.19824 14.0647C4.33673 13.9762 4.55866 13.9431 4.83691 13.9431C5.09384 13.9431 5.30559 13.9858 5.43604 14.1013C5.55182 14.204 5.62061 14.3293 5.62061 14.4749C5.62057 14.7549 5.57953 15.0125 5.49536 15.2461L5.45654 15.3442C5.36294 15.5677 5.23261 15.7627 5.06543 15.928L4.99146 15.9968C4.58057 16.3629 4.03856 16.541 3.37793 16.541L3.12671 16.5278C3.00679 16.5188 2.87303 16.495 2.72607 16.4575C2.61505 16.4287 2.50136 16.3894 2.38696 16.3396L2.27197 16.2861C2.1155 16.2094 1.9705 16.0983 1.83691 15.9558L1.83618 15.9551C1.70598 15.8128 1.59909 15.6391 1.51392 15.4365L1.51318 15.4351C1.42797 15.2251 1.38722 14.9736 1.38721 14.6843V12.345C1.38721 12.1069 1.41644 11.892 1.47656 11.7026C1.52068 11.5616 1.57629 11.4337 1.64355 11.3196L1.7146 11.2097C1.81013 11.07 1.92167 10.9524 2.04932 10.8582C2.17206 10.7676 2.29884 10.6909 2.42871 10.6289L2.54297 10.5798C2.81231 10.4716 3.11394 10.4081 3.44678 10.3879L3.45337 10.3872L3.68628 10.3945Z",fill:"currentColor"}),ge.createElement("path",{d:"M8.10791 11.7371C8.33261 11.7371 8.5218 11.8023 8.61255 11.9758C8.68772 12.1131 8.72383 12.2741 8.72388 12.4534V12.7522H9.03003C9.21461 12.7522 9.37781 12.7845 9.5127 12.8562C9.68704 12.9456 9.7463 13.149 9.74634 13.3843C9.74634 13.612 9.68105 13.8034 9.50537 13.894L9.5061 13.8948C9.36923 13.9665 9.20861 14.0002 9.03003 14.0002H8.72388V14.3064C8.72388 14.4941 8.68994 14.6588 8.61768 14.7942L8.61841 14.7949C8.5293 14.9647 8.334 15.0226 8.10791 15.0227C7.87257 15.0227 7.66761 14.9685 7.5769 14.8L7.57617 14.7993C7.50612 14.6659 7.47583 14.4988 7.47583 14.3064V14.0002H7.18579C6.99507 14.0002 6.82804 13.9669 6.69214 13.894C6.52182 13.8026 6.46069 13.6102 6.46069 13.3843C6.46073 13.1491 6.51509 12.944 6.68335 12.8533L6.68481 12.8525L6.79102 12.8079C6.90305 12.7697 7.03293 12.7522 7.177 12.7522H7.47583V12.4534C7.47587 12.2683 7.50712 12.1056 7.57617 11.9707L7.5769 11.9685L7.61646 11.9092C7.72038 11.7825 7.90134 11.7371 8.10791 11.7371Z",fill:"currentColor"}),ge.createElement("path",{d:"M12.728 11.7371C12.9527 11.7371 13.1419 11.8023 13.2327 11.9758C13.3078 12.1131 13.3439 12.2741 13.344 12.4534V12.7522H13.6501C13.8347 12.7522 13.9979 12.7845 14.1328 12.8562C14.3072 12.9456 14.3664 13.149 14.3665 13.3843C14.3665 13.612 14.3012 13.8034 14.1255 13.894L14.1262 13.8948C13.9894 13.9665 13.8287 14.0002 13.6501 14.0002H13.344V14.3064C13.344 14.4941 13.3101 14.6588 13.2378 14.7942L13.2385 14.7949C13.1494 14.9647 12.9541 15.0226 12.728 15.0227C12.4927 15.0227 12.2877 14.9685 12.197 14.8L12.1963 14.7993C12.1262 14.6659 12.0959 14.4988 12.0959 14.3064V14.0002H11.8059C11.6152 14.0002 11.4482 13.9669 11.3123 13.894C11.1419 13.8026 11.0808 13.6102 11.0808 13.3843C11.0808 13.1491 11.1352 12.944 11.3035 12.8533L11.3049 12.8525L11.4111 12.8079C11.5232 12.7697 11.653 12.7522 11.7971 12.7522H12.0959V12.4534C12.096 12.2683 12.1272 12.1056 12.1963 11.9707L12.197 11.9685L12.2366 11.9092C12.3405 11.7825 12.5215 11.7371 12.728 11.7371Z",fill:"currentColor"}),ge.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50366C10.7457 1.52068 10.9072 1.59662 11.0303 1.71973L14.7803 5.46973C14.9209 5.61038 15 5.80109 15 6V9C15 9.41421 14.6642 9.75 14.25 9.75C13.8358 9.75 13.5 9.41421 13.5 9V6.75H11.25C10.8522 6.75 10.4708 6.59185 10.1895 6.31055C9.90815 6.02924 9.75 5.64783 9.75 5.25V3H5.25C5.05109 3 4.86038 3.07907 4.71973 3.21973C4.57907 3.36038 4.5 3.55109 4.5 3.75V9C4.5 9.41421 4.16421 9.75 3.75 9.75C3.33579 9.75 3 9.41421 3 9V3.75C3 3.15326 3.23722 2.58114 3.65918 2.15918C4.08114 1.73722 4.65326 1.5 5.25 1.5H10.5L10.574 1.50366ZM11.25 5.25H12.4395L11.25 4.06055V5.25Z",fill:"currentColor"})),W1=e=>ge.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ge.createElement("path",{d:"M4.29639 10.3945C4.50665 10.4083 4.69413 10.4433 4.85815 10.5L4.85889 10.4993C5.07789 10.5733 5.26574 10.6715 5.41919 10.7944C5.53204 10.8849 5.62958 10.9843 5.71069 11.0933L5.78613 11.2053L5.78687 11.2068L5.85059 11.3218C5.89058 11.3983 5.92606 11.4746 5.95605 11.551L5.99707 11.666L5.9978 11.6682L6.05566 11.8945C6.0708 11.9689 6.08168 12.0422 6.08862 12.1143C6.10449 12.252 6.11279 12.3734 6.11279 12.4775C6.11276 12.6403 6.06824 12.7876 5.97803 12.9155C5.92155 12.9956 5.83545 13.0472 5.73486 13.0789C5.63441 13.1104 5.51212 13.1243 5.37231 13.1243C5.32505 13.1243 5.27524 13.1215 5.2229 13.1162L5.05811 13.0928C4.93553 13.0701 4.82533 13.024 4.73145 12.9529L4.72998 12.9514C4.61882 12.8632 4.56958 12.7352 4.56958 12.5874C4.56955 12.2926 4.5312 12.0715 4.46191 11.9165L4.46045 11.9143C4.4319 11.8474 4.38931 11.8003 4.33154 11.7686C4.27185 11.7358 4.18944 11.7158 4.07812 11.7158C3.96626 11.7158 3.89622 11.7421 3.85254 11.7788C3.79519 11.8265 3.75637 11.8759 3.73315 11.926C3.70026 11.9999 3.68262 12.0771 3.68042 12.1582V14.8425L3.68555 14.9187C3.69337 14.9937 3.71038 15.0643 3.73608 15.1311L3.75732 15.1802C3.78176 15.2276 3.81496 15.2727 3.85767 15.3157L3.89575 15.3442C3.93843 15.3699 3.99697 15.386 4.07812 15.386C4.18296 15.386 4.26146 15.3647 4.31982 15.3289C4.37727 15.2935 4.4233 15.2389 4.45605 15.1589C4.53037 14.9746 4.56957 14.7522 4.56958 14.4888C4.56958 14.3307 4.63662 14.2007 4.7666 14.1116L4.82007 14.0801C4.95284 14.0119 5.14337 13.9856 5.37231 13.9856C5.61445 13.9856 5.81633 14.0298 5.94067 14.1489C6.04986 14.2536 6.11274 14.379 6.11279 14.5225C6.11279 14.8453 6.06245 15.1386 5.95972 15.3999C5.85998 15.6574 5.71501 15.8781 5.52466 16.0598L5.52393 16.0591C5.13817 16.4307 4.62871 16.6128 4.00708 16.6128C3.95774 16.6128 3.87811 16.6081 3.77124 16.5996C3.65793 16.5904 3.53127 16.5659 3.39331 16.5278C3.28866 16.4984 3.18149 16.4584 3.07397 16.4077L2.96631 16.3535C2.81858 16.2752 2.68196 16.1624 2.55688 16.0181L2.55615 16.0166C2.43435 15.8725 2.33453 15.6972 2.25513 15.4929L2.25439 15.4915C2.17508 15.28 2.13721 15.0267 2.13721 14.7349V12.3669C2.13721 12.1269 2.16476 11.9109 2.2207 11.7202L2.26538 11.5825C2.3136 11.4491 2.37234 11.3289 2.44263 11.2229C2.53187 11.0816 2.63607 10.9621 2.7561 10.8662C2.87117 10.7743 2.98996 10.6964 3.11206 10.6333L3.11353 10.6326L3.22046 10.5828C3.47384 10.4727 3.75793 10.4085 4.0708 10.3879L4.07812 10.3872L4.29639 10.3945Z",fill:"currentColor"}),ge.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50366C10.7457 1.52068 10.9072 1.59662 11.0303 1.71973L14.7803 5.46973C14.9209 5.61038 15 5.80109 15 6V14.25C15 14.8467 14.7628 15.4189 14.3408 15.8408C13.9189 16.2628 13.3467 16.5 12.75 16.5H8.625C8.21079 16.5 7.875 16.1642 7.875 15.75C7.875 15.3358 8.21079 15 8.625 15H12.75C12.9489 15 13.1396 14.9209 13.2803 14.7803C13.4209 14.6396 13.5 14.4489 13.5 14.25V6.75H11.25C10.8522 6.75 10.4708 6.59185 10.1895 6.31055C9.90815 6.02924 9.75 5.64783 9.75 5.25V3H5.25C5.05109 3 4.86038 3.07907 4.71973 3.21973C4.57907 3.36038 4.5 3.55109 4.5 3.75V9C4.5 9.41421 4.16421 9.75 3.75 9.75C3.33579 9.75 3 9.41421 3 9V3.75C3 3.15326 3.23722 2.58114 3.65918 2.15918C4.08114 1.73722 4.65326 1.5 5.25 1.5H10.5L10.574 1.50366ZM11.25 5.25H12.4395L11.25 4.06055V5.25Z",fill:"currentColor"})),_1=e=>ge.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ge.createElement("path",{d:"M3.62109 10.571C3.83849 10.5842 4.03206 10.618 4.20117 10.6721L4.2019 10.6714C4.42776 10.742 4.62121 10.8352 4.77979 10.9526C4.89663 11.0392 4.99793 11.135 5.08228 11.2397L5.16064 11.3474L5.16211 11.3489L5.22803 11.4595C5.26973 11.5332 5.30659 11.6069 5.33789 11.6807L5.38037 11.7905L5.3811 11.7935L5.44116 12.0117C5.45675 12.0826 5.46834 12.1524 5.47559 12.2212L5.49463 12.4087C5.49888 12.4674 5.50049 12.5222 5.50049 12.5728C5.50045 12.7317 5.45415 12.8755 5.35986 12.999C5.30088 13.0762 5.2117 13.1246 5.10938 13.1543C5.0067 13.1841 4.88146 13.1975 4.7373 13.1975C4.64029 13.1975 4.53244 13.1872 4.41431 13.1675C4.28898 13.1461 4.17557 13.1026 4.07886 13.0349L4.07739 13.0334C3.96236 12.9491 3.90894 12.8243 3.90894 12.6782C3.90893 12.3968 3.86925 12.187 3.79834 12.0403L3.79761 12.0381C3.74418 11.922 3.62816 11.847 3.39551 11.8469C3.27715 11.8469 3.20179 11.873 3.15527 11.9092C3.09597 11.9548 3.05572 12.0012 3.03223 12.0476L3.03296 12.0483C2.99919 12.1182 2.98102 12.1906 2.97876 12.2666V14.8396L2.98389 14.9114C2.99188 14.9821 3.00888 15.049 3.03516 15.1121L3.05786 15.1582C3.08304 15.2033 3.11768 15.2464 3.1626 15.2878C3.2089 15.3285 3.28115 15.356 3.39551 15.356C3.50633 15.3559 3.58982 15.3349 3.65186 15.2996C3.71249 15.2651 3.75936 15.2131 3.79248 15.1384L3.84302 15.0007C3.88665 14.8554 3.90893 14.6891 3.90894 14.5005C3.90894 14.363 3.96502 14.2494 4.0686 14.1665L4.11621 14.1328C4.25147 14.0465 4.46739 14.0134 4.7373 14.0134C4.98658 14.0134 5.19278 14.0552 5.32031 14.168C5.43323 14.268 5.5004 14.3903 5.50049 14.5327C5.50049 14.8049 5.46077 15.0556 5.37891 15.2827L5.34155 15.3779C5.23762 15.6261 5.08621 15.8373 4.88892 16.0115L4.88965 16.0122C4.49029 16.3681 3.96383 16.541 3.32227 16.541C3.27168 16.541 3.18935 16.5367 3.07837 16.5286C3.02014 16.5242 2.95789 16.5158 2.89307 16.5044L2.68799 16.4597C2.5801 16.4317 2.47025 16.3938 2.35913 16.3455L2.2478 16.2935C2.09553 16.2188 1.95433 16.1112 1.82446 15.9727L1.82373 15.9712C1.69712 15.8328 1.593 15.6642 1.51025 15.4673L1.50952 15.4658C1.42669 15.2616 1.38721 15.0172 1.38721 14.7363V12.4666C1.38723 12.2355 1.41597 12.0273 1.47437 11.8433C1.53119 11.6615 1.60684 11.502 1.70361 11.3665L1.77686 11.2676C1.85263 11.1732 1.9374 11.0913 2.03101 11.0222C2.15024 10.9342 2.27322 10.8598 2.39941 10.7996L2.40015 10.7988L2.51074 10.7512C2.77229 10.6462 3.0652 10.5848 3.38818 10.5652L3.39551 10.5645L3.62109 10.571Z",fill:"currentColor"}),ge.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50366C10.7457 1.52068 10.9072 1.59662 11.0303 1.71973L14.7803 5.46973C14.9209 5.61038 15 5.80109 15 6V14.25C15 14.8467 14.7628 15.4189 14.3408 15.8408C13.9189 16.2628 13.3467 16.5 12.75 16.5H12C11.5858 16.5 11.25 16.1642 11.25 15.75C11.25 15.3358 11.5858 15 12 15H12.75C12.9489 15 13.1396 14.9209 13.2803 14.7803C13.4209 14.6396 13.5 14.4489 13.5 14.25V6.75H11.25C10.8522 6.75 10.4708 6.59185 10.1895 6.31055C9.90815 6.02924 9.75 5.64783 9.75 5.25V3H5.25C5.05109 3 4.86038 3.07907 4.71973 3.21973C4.57907 3.36038 4.5 3.55109 4.5 3.75V9C4.5 9.41421 4.16421 9.75 3.75 9.75C3.33579 9.75 3 9.41421 3 9V3.75C3 3.15326 3.23722 2.58114 3.65918 2.15918C4.08114 1.73722 4.65326 1.5 5.25 1.5H10.5L10.574 1.50366ZM11.25 5.25H12.4395L11.25 4.06055V5.25Z",fill:"currentColor"}),ge.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.36914 11.28C9.50263 11.28 9.62352 11.3063 9.72583 11.3643L9.7251 11.365C9.85906 11.4379 9.90454 11.5838 9.90454 11.7429C9.9045 11.7567 9.90157 11.7778 9.89941 11.7935C9.89658 11.814 9.89242 11.8422 9.88696 11.8777C9.87611 11.9455 9.8639 12.0222 9.85034 12.1062C9.84553 12.136 9.84018 12.1643 9.83569 12.1912H10.0525C10.1919 12.1912 10.3171 12.2148 10.4216 12.2688L10.4209 12.2695C10.5686 12.3412 10.6128 12.5089 10.6128 12.6863C10.6128 12.8587 10.5617 13.0123 10.4194 13.0898L10.4187 13.0906C10.3122 13.1472 10.1885 13.1726 10.0525 13.1726H9.67529L9.55225 13.8589H9.75952C9.89706 13.8589 10.0206 13.8819 10.1243 13.9343C10.2748 14.005 10.3198 14.1752 10.3198 14.354C10.3198 14.5291 10.2702 14.6875 10.1243 14.7627L10.1235 14.7634C10.0176 14.8164 9.89461 14.8403 9.75952 14.8403H9.38452L9.33398 15.1677L9.33325 15.1714C9.30492 15.3271 9.26297 15.4669 9.20728 15.5903L9.20801 15.5911C9.17656 15.6626 9.13001 15.7228 9.06592 15.7646C9.00162 15.8065 8.92683 15.8247 8.84839 15.8247C8.72 15.8247 8.60307 15.8041 8.50122 15.7581L8.49976 15.7573C8.35755 15.6908 8.31299 15.5386 8.31299 15.3787C8.31299 15.3406 8.31787 15.2939 8.32617 15.241L8.35913 15.0242C8.36863 14.9624 8.37948 14.9012 8.38989 14.8403H7.92847L7.87793 15.1677L7.8772 15.1714C7.84887 15.3271 7.80691 15.4669 7.75122 15.5903L7.75195 15.5911C7.72046 15.6627 7.6734 15.7228 7.60913 15.7646C7.54487 15.8064 7.47071 15.8247 7.39233 15.8247C7.26394 15.8247 7.14702 15.8041 7.04517 15.7581L7.0437 15.7573C6.90149 15.6908 6.85693 15.5387 6.85693 15.3787C6.85694 15.3406 6.86181 15.2939 6.87012 15.241L6.90308 15.0242C6.91257 14.9624 6.92342 14.9012 6.93384 14.8403H6.6687C6.52906 14.8403 6.40313 14.8167 6.29663 14.7634L6.29297 14.762C6.15355 14.6853 6.10844 14.5261 6.1084 14.354C6.1084 14.1782 6.1487 14.0079 6.29297 13.9358C6.39784 13.882 6.52535 13.8589 6.6687 13.8589H7.09497L7.21802 13.1726H6.95361C6.81311 13.1726 6.68646 13.1475 6.57935 13.0906L6.57788 13.0898C6.43874 13.0135 6.39332 12.8568 6.39331 12.6863C6.39331 12.5105 6.43361 12.3402 6.57788 12.2681C6.68271 12.2144 6.81036 12.1912 6.95361 12.1912H7.38721L7.46045 11.7561C7.47174 11.6625 7.50842 11.5673 7.56372 11.4712C7.63824 11.3418 7.76255 11.2801 7.91309 11.28C8.04657 11.28 8.16746 11.3063 8.26978 11.3643L8.26904 11.365C8.403 11.4379 8.44849 11.5838 8.44849 11.7429C8.44844 11.7567 8.44552 11.7778 8.44336 11.7935C8.44053 11.814 8.43636 11.8422 8.43091 11.8777C8.42006 11.9455 8.40784 12.0222 8.39429 12.1062C8.38947 12.136 8.38413 12.1643 8.37964 12.1912H8.84326L8.9165 11.7561C8.92779 11.6625 8.96448 11.5673 9.01978 11.4712C9.0943 11.3418 9.21861 11.2801 9.36914 11.28ZM8.09619 13.8589H8.55103L8.67407 13.1726H8.21924L8.09619 13.8589Z",fill:"currentColor"})),j1=e=>ge.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ge.createElement("path",{d:"M4.43188 10.4409C4.65285 10.4409 4.85471 10.4869 4.99951 10.6152L4.99878 10.6159C5.13097 10.7305 5.21409 10.881 5.25146 11.0576C5.28474 11.2148 5.30052 11.3869 5.30054 11.5724V15.4323C5.30054 15.6193 5.28417 15.7927 5.25146 15.9516L5.2522 15.9523C5.21779 16.1313 5.13551 16.2842 4.99951 16.3976L4.99878 16.3969C4.85386 16.52 4.65269 16.5646 4.43188 16.5646C4.21337 16.5646 4.01411 16.5195 3.86792 16.3976L3.86353 16.394C3.73466 16.2798 3.65263 16.1299 3.6123 15.9553L3.61157 15.9516C3.57826 15.7941 3.5625 15.6205 3.5625 15.4323V11.5724C3.56252 11.3869 3.5783 11.2148 3.61157 11.0576C3.64882 10.8815 3.72996 10.7302 3.85986 10.6152L3.86133 10.6137C4.00804 10.4875 4.2103 10.4409 4.43188 10.4409Z",fill:"currentColor"}),ge.createElement("path",{d:"M8.07129 10.4474C8.18434 10.4599 8.28945 10.4924 8.3811 10.55L8.38184 10.5493C8.45754 10.5942 8.52569 10.6451 8.58472 10.7016L8.64111 10.7602L8.64331 10.7631L8.69385 10.8298C8.72596 10.8768 8.75504 10.9284 8.78101 10.9836L8.81763 11.0685L8.81909 11.0729L9.85986 13.8928V11.2692C9.85986 11.0565 9.89522 10.8654 9.98291 10.7119L9.98364 10.7104L10.0349 10.6393C10.1656 10.4886 10.3781 10.4409 10.5974 10.4409C10.8635 10.4409 11.125 10.4947 11.2529 10.6965C11.3535 10.8508 11.3928 11.0487 11.3928 11.2692V15.4323C11.3928 15.6163 11.3809 15.7863 11.3577 15.9413L11.3584 15.9421C11.3349 16.1167 11.2678 16.2708 11.1467 16.3881C11.0102 16.5202 10.8106 16.5646 10.5974 16.5646H10.0554C9.86994 16.5646 9.69972 16.5199 9.56104 16.416C9.44129 16.3261 9.3452 16.215 9.27466 16.0842C9.21353 15.9706 9.16292 15.8593 9.12378 15.7509L8.14893 13.1091V15.7363C8.14893 15.9493 8.11322 16.1406 8.02661 16.2958L8.02588 16.2973C7.90706 16.5052 7.66112 16.5646 7.41138 16.5646C7.14233 16.5646 6.88122 16.5106 6.75 16.312C6.64812 16.1572 6.60791 15.9581 6.60791 15.7363V11.5724C6.60792 11.3882 6.61818 11.2193 6.63867 11.0671V11.0641L6.66724 10.9367C6.7042 10.8142 6.76699 10.706 6.85986 10.6188C6.9982 10.4862 7.19704 10.4409 7.41138 10.4409H7.95337L8.07129 10.4474Z",fill:"currentColor"}),ge.createElement("path",{d:"M13.5688 10.4409C13.7898 10.4409 13.9917 10.4869 14.1365 10.6152L14.1357 10.6159C14.2679 10.7305 14.3511 10.881 14.3884 11.0576C14.4217 11.2148 14.4375 11.3869 14.4375 11.5724V15.4323C14.4375 15.6193 14.4211 15.7927 14.3884 15.9516L14.3892 15.9523C14.3548 16.1313 14.2725 16.2842 14.1365 16.3976L14.1357 16.3969C13.9908 16.52 13.7897 16.5646 13.5688 16.5646C13.3503 16.5646 13.1511 16.5195 13.0049 16.3976L13.0005 16.394C12.8716 16.2798 12.7896 16.1299 12.7493 15.9553L12.7485 15.9516C12.7152 15.7941 12.6995 15.6205 12.6995 15.4323V11.5724C12.6995 11.3869 12.7153 11.2148 12.7485 11.0576C12.7858 10.8815 12.8669 10.7302 12.9968 10.6152L12.9983 10.6137C13.145 10.4875 13.3473 10.4409 13.5688 10.4409Z",fill:"currentColor"}),ge.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50385C10.7457 1.52087 10.9072 1.59681 11.0303 1.71991L14.7803 5.46991C14.9208 5.61054 15 5.80136 15 6.00018V9.00018C14.9998 9.41423 14.6641 9.75018 14.25 9.75018C13.8359 9.75018 13.5002 9.41423 13.5 9.00018V6.75018H11.25C10.8523 6.75018 10.4707 6.59192 10.1895 6.31073C9.90824 6.02951 9.7501 5.64788 9.75 5.25018V3.00018H5.25C5.05109 3.00018 4.86038 3.07926 4.71973 3.21991C4.57919 3.36054 4.5 3.55136 4.5 3.75018V9.00018C4.4998 9.41423 4.16409 9.75018 3.75 9.75018C3.33591 9.75018 3.0002 9.41423 3 9.00018V3.75018C3 3.15353 3.23734 2.5813 3.65918 2.15936C4.08114 1.73741 4.65326 1.50018 5.25 1.50018H10.5L10.574 1.50385ZM11.25 5.25018H12.4395L11.25 4.06073V5.25018Z",fill:"currentColor"})),U1=e=>ge.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ge.createElement("path",{d:"M6.76831 10.8267C6.93291 10.8267 7.08404 10.8408 7.22021 10.8691L7.35205 10.9021L7.35278 10.9028L7.46851 10.9431C7.57872 10.986 7.67614 11.038 7.75928 11.0991C7.84245 11.1591 7.91481 11.2265 7.97388 11.3005L8.02881 11.3767L8.02954 11.3774L8.11011 11.5254C8.13317 11.5747 8.15233 11.6249 8.16797 11.6755C8.19815 11.7711 8.21863 11.8631 8.22656 11.9502C8.23376 12.0294 8.23755 12.096 8.23755 12.1479C8.23753 12.318 8.17338 12.4626 8.04639 12.572C7.92503 12.676 7.77653 12.7265 7.60913 12.7266C7.4711 12.7266 7.34146 12.6749 7.22241 12.583C7.1027 12.4905 7.02328 12.3741 7.02319 12.2329C7.02319 12.0468 6.98759 11.9498 6.94775 11.907L6.94629 11.9055C6.90561 11.8606 6.83878 11.8294 6.72583 11.8293C6.58234 11.8293 6.48534 11.856 6.42334 11.896C6.4086 11.9056 6.38747 11.9281 6.37061 11.981C6.35372 12.0341 6.34351 12.1099 6.34351 12.2117C6.34581 12.2878 6.36799 12.3546 6.40869 12.4153C6.45761 12.4821 6.52298 12.549 6.60718 12.6138L6.73608 12.7053C6.78632 12.7386 6.84449 12.7751 6.9104 12.8145C7.04454 12.8945 7.16167 12.9644 7.2605 13.0232L7.44507 13.1426C7.50565 13.1844 7.56597 13.2284 7.62524 13.2744C7.74715 13.3666 7.8562 13.4715 7.95337 13.5886C8.05276 13.7085 8.13297 13.8432 8.1936 13.9922C8.25599 14.1456 8.28891 14.3172 8.29395 14.5049V14.5364C8.29395 14.7339 8.26896 14.9141 8.21777 15.0754V15.0776C8.11696 15.3776 7.94914 15.6082 7.7124 15.761L7.71313 15.7617C7.62701 15.8179 7.53944 15.8644 7.45166 15.9016L7.36304 15.936C7.30225 15.9571 7.24075 15.9753 7.1792 15.9902L6.99243 16.0261C6.87331 16.0431 6.75886 16.0529 6.65039 16.0554H6.61304C6.41017 16.0554 6.22414 16.0345 6.05786 15.9917C5.89914 15.9495 5.75823 15.8922 5.63892 15.8196L5.63745 15.8188C5.52025 15.7449 5.42093 15.6589 5.34155 15.561C5.26338 15.4674 5.20001 15.3681 5.15332 15.2644C5.10802 15.1659 5.07431 15.0659 5.05371 14.9656C5.03361 14.8676 5.02297 14.7738 5.02295 14.6851C5.02295 14.5014 5.0798 14.3447 5.20898 14.2375L5.20972 14.2368L5.30493 14.1731C5.40409 14.1186 5.51594 14.0918 5.63745 14.0918C5.79553 14.0919 5.94175 14.1407 6.07251 14.2354L6.12451 14.2764C6.2216 14.3622 6.27861 14.4745 6.2959 14.6067L6.30103 14.6741L6.31055 14.7847C6.32502 14.8796 6.35383 14.9312 6.38306 14.9568C6.43071 14.9963 6.50789 15.0238 6.63135 15.0242C6.76743 15.0198 6.85874 14.9863 6.91772 14.9355L6.91846 14.9341L6.95361 14.8938C6.98575 14.8434 7.00924 14.7604 7.00928 14.6287C7.00928 14.4903 6.96843 14.3706 6.8877 14.2661L6.88696 14.2646C6.80068 14.1504 6.68858 14.0439 6.55078 13.946L6.55005 13.9453C6.40626 13.841 6.25592 13.7396 6.10034 13.6421C5.93262 13.5343 5.77326 13.4207 5.62427 13.303L5.62354 13.3022C5.46846 13.1772 5.34021 13.0351 5.24121 12.8752C5.13746 12.7076 5.0852 12.514 5.08008 12.2988V12.2388L5.0874 12.0505C5.10126 11.869 5.13388 11.7086 5.18628 11.5708V11.5693L5.2478 11.4382C5.31532 11.3136 5.40255 11.2077 5.51074 11.1233L5.62207 11.0464C5.73813 10.9764 5.87099 10.9263 6.01831 10.894C6.21201 10.8494 6.43196 10.8267 6.67603 10.8267H6.76831Z",fill:"currentColor"}),ge.createElement("path",{d:"M14.2266 10.8062C14.3565 10.8062 14.4736 10.8329 14.5693 10.8933L14.5701 10.8926L14.5715 10.894L14.5737 10.8948L14.573 10.8955C14.6342 10.9321 14.6895 10.9722 14.7363 11.0171L14.781 11.064L14.7825 11.0662L14.8235 11.1204C14.8363 11.1392 14.8492 11.159 14.8608 11.1797L14.9246 11.3159L14.9253 11.3181L15.9163 14.0024V11.4705C15.9163 11.2922 15.9461 11.1369 16.0159 11.0149L16.054 10.9607C16.1527 10.8467 16.3175 10.8062 16.5022 10.8062C16.7284 10.8062 16.9271 10.8532 17.0229 11.0017C17.1032 11.1237 17.1379 11.2847 17.1379 11.4705V15.0535C17.1379 15.21 17.1275 15.3541 17.1079 15.4849L17.1086 15.4856C17.0896 15.6273 17.0355 15.7491 16.9409 15.8408C16.837 15.9414 16.6806 15.9784 16.5022 15.9785H16.0356C15.8837 15.9785 15.7483 15.9422 15.6394 15.8606C15.5419 15.7874 15.4638 15.6974 15.4065 15.5911C15.3549 15.4953 15.3125 15.4018 15.2798 15.3113L14.3459 12.7815V15.3149C14.3459 15.4932 14.316 15.6489 14.2471 15.7727L14.2463 15.7734C14.158 15.9281 13.9711 15.9784 13.76 15.9785C13.53 15.9785 13.3292 15.9315 13.2312 15.783C13.151 15.6609 13.1169 15.5006 13.1169 15.3149V11.7319C13.117 11.575 13.126 11.4319 13.1433 11.3035V11.3013L13.166 11.1987C13.1955 11.1009 13.2454 11.0157 13.3176 10.9475L13.3594 10.9124C13.4627 10.8363 13.6027 10.8062 13.76 10.8062H14.2266Z",fill:"currentColor"}),ge.createElement("path",{d:"M3.62183 10.73C3.8058 10.73 3.96571 10.7696 4.07959 10.8677C4.185 10.9586 4.25306 11.0796 4.28613 11.2229C4.31675 11.3557 4.33154 11.5018 4.33154 11.6602V14.3606C4.33154 14.617 4.29481 14.8413 4.21655 15.0293C4.15993 15.1652 4.09098 15.286 4.00928 15.3896L3.92285 15.4878C3.80762 15.6056 3.67869 15.6971 3.5376 15.7625L3.53833 15.7632C3.40115 15.8269 3.27011 15.872 3.14722 15.8979L3.14795 15.8987C3.09669 15.9112 3.04501 15.9213 2.99414 15.9294L2.8418 15.9478C2.74998 15.9548 2.68156 15.9587 2.64111 15.9587C2.3706 15.9587 2.13396 15.928 1.93506 15.8643C1.73937 15.8022 1.56914 15.7204 1.42749 15.6174C1.28776 15.5158 1.17335 15.3984 1.08691 15.2651L1.02686 15.1685C0.970789 15.0715 0.926873 14.9732 0.895752 14.874L0.896484 14.8733C0.852315 14.745 0.821564 14.6203 0.806396 14.499L0.805664 14.4968C0.793555 14.3806 0.786621 14.2779 0.786621 14.1899C0.786659 14.0481 0.829716 13.9196 0.914062 13.8091C0.968035 13.7386 1.04873 13.6949 1.13965 13.6685C1.231 13.642 1.34202 13.6297 1.46851 13.6296C1.55651 13.6297 1.65224 13.6393 1.75415 13.6567C1.8653 13.6758 1.96539 13.7157 2.05151 13.7783C2.15785 13.853 2.20677 13.9666 2.20679 14.0977C2.20679 14.3421 2.24112 14.5246 2.302 14.6528L2.32178 14.6865C2.37332 14.7613 2.46833 14.8095 2.64111 14.8096C2.74386 14.8095 2.80532 14.7883 2.8396 14.762L2.84106 14.7605L2.90552 14.7019C2.92253 14.6822 2.9356 14.6623 2.94507 14.6426L2.97803 14.5518C2.98565 14.5209 2.98953 14.4889 2.99048 14.4565V11.9641H2.17236C2.0293 11.9641 1.8922 11.9536 1.76221 11.9312L1.76001 11.9304C1.62252 11.9035 1.50268 11.8482 1.40698 11.7612L1.40625 11.7598C1.30008 11.6602 1.25688 11.5177 1.25684 11.3547C1.25684 11.1882 1.29936 11.0419 1.40625 10.9417C1.49986 10.8517 1.6187 10.7951 1.75635 10.7681L1.9585 10.7395C2.02775 10.7333 2.09935 10.73 2.17236 10.73H3.62183Z",fill:"currentColor"}),ge.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0061 10.8398C11.1058 10.8474 11.2146 10.8676 11.3313 10.8984L11.332 10.8977C11.4562 10.9275 11.5817 10.9747 11.7078 11.0376L11.803 11.0896C11.8653 11.1277 11.926 11.1727 11.9839 11.2244L12.0688 11.3071L12.0696 11.3079L12.1472 11.4001C12.2197 11.4965 12.2807 11.608 12.3303 11.7327L12.3772 11.8674C12.417 12.0081 12.4358 12.1667 12.4358 12.3406V14.4111C12.4358 14.649 12.4035 14.8579 12.3347 15.0337L12.334 15.0352C12.2654 15.204 12.1782 15.349 12.071 15.4666C11.9653 15.5823 11.8439 15.6747 11.7085 15.7412L11.7078 15.7405C11.5864 15.8034 11.4622 15.8534 11.335 15.8877C11.2172 15.9189 11.1066 15.9387 11.0061 15.9463C10.9136 15.9532 10.8413 15.9573 10.793 15.9573H10.675L10.4626 15.9463C10.362 15.9387 10.2518 15.919 10.1338 15.8877C10.0122 15.8554 9.8873 15.8055 9.75952 15.7405C9.62706 15.6742 9.50578 15.5832 9.39624 15.4688L9.39551 15.468C9.28579 15.3506 9.19561 15.2056 9.12451 15.0366L9.12378 15.0352C9.05226 14.8589 9.01835 14.6495 9.01831 14.4111V12.3406C9.01831 12.105 9.05259 11.8998 9.12451 11.7297C9.19368 11.5618 9.28389 11.4184 9.39697 11.3027C9.50677 11.1905 9.62826 11.1014 9.76099 11.0376C9.82393 11.0062 9.88688 10.9792 9.94849 10.957L9.94922 10.9563L10.1323 10.8992L10.1345 10.8984L10.3066 10.8604C10.3612 10.8506 10.4136 10.8436 10.4626 10.8398L10.675 10.8289H10.793C10.8413 10.8289 10.9136 10.8329 11.0061 10.8398ZM10.738 11.9473C10.6399 11.9473 10.5796 11.9688 10.5439 11.9963L10.5432 11.9971C10.4934 12.0354 10.4596 12.0746 10.4385 12.1135L10.4377 12.1143C10.4103 12.1641 10.3949 12.222 10.3931 12.2886V14.5393L10.4062 14.6309L10.4385 14.7151L10.4392 14.7158L10.481 14.7766C10.4976 14.7958 10.5181 14.8147 10.5417 14.833L10.5732 14.8521C10.6101 14.8689 10.6637 14.8806 10.738 14.8806C10.8345 14.8805 10.8925 14.8598 10.9255 14.8345C10.9743 14.7969 11.0075 14.7565 11.0288 14.7158C11.054 14.6605 11.0699 14.5993 11.0757 14.5327V12.2944L11.0588 12.197C11.051 12.167 11.0406 12.138 11.0281 12.1106C11.0069 12.0728 10.9738 12.0343 10.9255 11.9971L10.9233 11.9949C10.8905 11.9684 10.8335 11.9474 10.738 11.9473Z",fill:"currentColor"}),ge.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50366C10.7457 1.52068 10.9072 1.59662 11.0303 1.71973L14.7803 5.46973C14.9209 5.61038 15 5.80109 15 6V9C15 9.41421 14.6642 9.75 14.25 9.75C13.8358 9.75 13.5 9.41421 13.5 9V6.75H11.25C10.8522 6.75 10.4708 6.59185 10.1895 6.31055C9.90815 6.02924 9.75 5.64783 9.75 5.25V3H5.25C5.05109 3 4.86038 3.07907 4.71973 3.21973C4.57907 3.36038 4.5 3.55109 4.5 3.75V9C4.5 9.41421 4.16421 9.75 3.75 9.75C3.33579 9.75 3 9.41421 3 9V3.75C3 3.15326 3.23722 2.58114 3.65918 2.15918C4.08114 1.73722 4.65326 1.5 5.25 1.5H10.5L10.574 1.50366ZM11.25 5.25H12.4395L11.25 4.06055V5.25Z",fill:"currentColor"})),$1=e=>ge.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ge.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50366C10.7457 1.52068 10.9072 1.59662 11.0303 1.71973L14.7803 5.46973C14.9209 5.61038 15 5.80109 15 6V14.25C15 14.8467 14.7628 15.4189 14.3408 15.8408C13.9189 16.2628 13.3467 16.5 12.75 16.5H12C11.5858 16.5 11.25 16.1642 11.25 15.75C11.25 15.3358 11.5858 15 12 15H12.75C12.9489 15 13.1396 14.9209 13.2803 14.7803C13.4209 14.6396 13.5 14.4489 13.5 14.25V6.75H11.25C10.8522 6.75 10.4708 6.59185 10.1895 6.31055C9.90815 6.02924 9.75 5.64783 9.75 5.25V3H5.25C5.05109 3 4.86038 3.07907 4.71973 3.21973C4.57907 3.36038 4.5 3.55109 4.5 3.75V9C4.5 9.41421 4.16421 9.75 3.75 9.75C3.33579 9.75 3 9.41421 3 9V3.75C3 3.15326 3.23722 2.58114 3.65918 2.15918C4.08114 1.73722 4.65326 1.5 5.25 1.5H10.5L10.574 1.50366ZM11.25 5.25H12.4395L11.25 4.06055V5.25Z",fill:"currentColor"}),ge.createElement("path",{d:"M2.39355 10.5C2.53545 10.5 2.6592 10.5122 2.75757 10.5417C2.88987 10.5815 2.99161 10.6954 3.07251 10.8289L3.15747 10.9885L3.25195 11.2031L3.25269 11.2046L3.35229 11.4683C3.38786 11.5664 3.42601 11.6752 3.46655 11.7942L3.76318 12.6665L3.76392 12.6687L3.76904 12.6848L3.79907 12.5911L3.94849 12.1348C3.99515 11.9948 4.03674 11.8689 4.073 11.7576L4.07373 11.7561L4.1814 11.4434C4.21489 11.3495 4.24596 11.265 4.27515 11.1907L4.36084 10.9849C4.38855 10.9239 4.41584 10.8705 4.44214 10.8252C4.51581 10.6953 4.61188 10.5823 4.74243 10.5417H4.7439L4.82153 10.5227C4.90321 10.5069 4.99686 10.5 5.09985 10.5H5.67041C5.87137 10.5 6.05265 10.5425 6.17505 10.6619L6.17944 10.6655C6.29073 10.7714 6.35329 10.9108 6.375 11.072C6.39695 11.2133 6.40721 11.3701 6.40723 11.5415V15.5149C6.4072 15.7232 6.3696 15.9065 6.27686 16.0474C6.16065 16.2235 5.92578 16.2751 5.67041 16.2751C5.43573 16.2751 5.21924 16.2184 5.11157 16.0378L5.10938 16.0342C5.03005 15.8921 4.9966 15.7149 4.99658 15.5149V12.8335L4.4436 14.4456L4.44141 14.4521C4.39239 14.576 4.32667 14.6919 4.24658 14.8008L4.24731 14.8015C4.14341 14.9438 3.9882 15.008 3.80933 15.0081H3.73096C3.55351 15.008 3.40015 14.9437 3.29004 14.8081L3.28857 14.8066C3.20076 14.6954 3.13356 14.575 3.08862 14.4463L2.53564 12.8496V15.5149C2.53562 15.7149 2.50218 15.8921 2.42285 16.0342L2.42212 16.0356C2.31692 16.2193 2.09741 16.2751 1.86182 16.2751C1.60639 16.2751 1.37154 16.2236 1.25537 16.0474C1.16263 15.9065 1.12502 15.7232 1.125 15.5149V11.5415C1.12501 11.3697 1.13426 11.2129 1.15356 11.072L1.1543 11.0691L1.17993 10.9526C1.21308 10.8409 1.26884 10.7425 1.35059 10.6633L1.39966 10.6223C1.52082 10.5332 1.68333 10.5 1.86182 10.5H2.39355Z",fill:"currentColor"}),ge.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.1106 10.5C9.62746 10.5 10.0624 10.6251 10.4026 10.8875L10.5256 10.9944C10.6405 11.1071 10.7342 11.238 10.8062 11.3862C10.9039 11.5876 10.9497 11.8187 10.9497 12.074V14.4983C10.9497 14.7119 10.927 14.9051 10.8779 15.0754C10.8306 15.2398 10.7676 15.3875 10.689 15.5156L10.6875 15.5186C10.6079 15.6408 10.5165 15.7481 10.4143 15.8386C10.3155 15.9261 10.2132 15.9989 10.1074 16.0547L10.1067 16.054C9.86566 16.1854 9.58987 16.2585 9.28271 16.2751H7.97681C7.77408 16.2751 7.59145 16.2335 7.46704 16.1169C7.35471 16.0115 7.2898 15.8714 7.26489 15.7097C7.24266 15.5651 7.23194 15.4033 7.23193 15.2256V11.5415C7.23195 11.3663 7.2426 11.2069 7.26489 11.0647C7.28985 10.9032 7.35482 10.7635 7.46704 10.6582C7.59145 10.5416 7.77403 10.5 7.97681 10.5H9.1106ZM8.72095 15.0447H9.07544C9.15931 15.0426 9.23737 15.0225 9.31055 14.9839L9.31348 14.9817L9.35815 14.9553C9.40066 14.926 9.43743 14.8876 9.46802 14.8381L9.46875 14.8367L9.49438 14.7861C9.51748 14.7305 9.53172 14.6593 9.53174 14.5686V12.2615C9.53174 12.1256 9.50631 12.0248 9.46509 11.9517L9.46362 11.9495C9.42061 11.8696 9.36785 11.8162 9.30762 11.7825C9.25706 11.7542 9.19978 11.7342 9.1355 11.7231L9.06885 11.7151H8.72095V15.0447Z",fill:"currentColor"})),K1=e=>ge.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ge.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.6416 10.3784C3.95675 10.4068 4.24355 10.4808 4.49927 10.6033L4.68896 10.7058C4.75102 10.7437 4.81209 10.7853 4.87207 10.8303C4.99897 10.9227 5.10899 11.0375 5.20459 11.1724C5.30765 11.311 5.38613 11.4733 5.44116 11.6558L5.47998 11.8008C5.51306 11.9504 5.52903 12.1125 5.52905 12.2856C5.52905 12.6011 5.47828 12.8867 5.37305 13.1382L5.37378 13.1389C5.28434 13.3557 5.15787 13.5441 4.99512 13.7014L4.92334 13.7666C4.52343 14.1103 3.97203 14.269 3.2959 14.269H2.95166V15.4292C2.95165 15.614 2.93964 15.7845 2.91577 15.9397C2.8883 16.1182 2.81511 16.2739 2.68652 16.3909L2.68579 16.3901C2.54556 16.5202 2.34254 16.5645 2.12329 16.5645C1.90696 16.5644 1.70685 16.5194 1.56738 16.3887L1.56519 16.3865C1.44288 16.2679 1.37145 16.1152 1.34399 15.9404L1.34326 15.936C1.32257 15.7822 1.31251 15.613 1.3125 15.4292V11.5042C1.31251 11.3204 1.3225 11.1524 1.34326 11.001L1.34399 10.9973L1.37256 10.8691C1.40991 10.7455 1.47366 10.6362 1.56738 10.5483C1.70673 10.4148 1.90677 10.3689 2.12329 10.3689H3.50464L3.6416 10.3784ZM2.95166 12.9053H3.31787C3.43267 12.8984 3.53116 12.8714 3.61597 12.8269C3.69435 12.7857 3.75967 12.7244 3.81226 12.6387L3.84448 12.5728C3.8728 12.5 3.88989 12.4058 3.88989 12.2856C3.88984 12.1374 3.85971 12.0411 3.81812 11.9795L3.81519 11.9744C3.76419 11.8937 3.70357 11.8366 3.63428 11.7979C3.56584 11.7635 3.47692 11.7377 3.36328 11.7253H2.95166V12.9053Z",fill:"currentColor"}),ge.createElement("path",{d:"M9.85181 10.3689C9.96017 10.369 10.0701 10.3945 10.1792 10.4392L10.2876 10.4897L10.2935 10.4927L10.2993 10.4963C10.4209 10.5712 10.5226 10.6619 10.5879 10.7725C10.6503 10.8716 10.6882 10.9809 10.6882 11.0969C10.6882 11.1892 10.6526 11.2993 10.6077 11.4089L10.6069 11.4082C10.5828 11.4685 10.5524 11.5379 10.5154 11.6147C10.4774 11.6937 10.4326 11.7792 10.3813 11.8704L9.1582 14.0391V15.4373C9.1582 15.6164 9.14303 15.7853 9.11279 15.9426C9.07918 16.1138 9.00547 16.2635 8.88647 16.3799L8.88721 16.3806C8.75142 16.5164 8.5562 16.5644 8.34668 16.5645C8.13595 16.5644 7.94219 16.5154 7.80249 16.3843L7.80103 16.3828C7.68055 16.2661 7.60635 16.1157 7.57251 15.9434C7.54226 15.786 7.52783 15.6164 7.52783 15.4373V14.0398L6.12085 11.5283L6.11938 11.5261C6.0459 11.3891 6.00587 11.2453 6.00586 11.0969C6.00589 10.986 6.03681 10.8798 6.09155 10.7812L6.09302 10.7791L6.15015 10.6963C6.21492 10.6176 6.30071 10.5509 6.39771 10.4941L6.4043 10.4905L6.5127 10.4392C6.6213 10.3943 6.73162 10.369 6.84155 10.3689C7.06446 10.369 7.25232 10.4649 7.39307 10.6399L7.48096 10.752C7.5635 10.8656 7.6337 10.9873 7.69263 11.116L8.34668 12.4878L9.00073 11.116C9.07902 10.945 9.177 10.7867 9.29443 10.6421L9.29517 10.6414L9.35083 10.5791C9.48615 10.443 9.65571 10.3689 9.85181 10.3689Z",fill:"currentColor"}),ge.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50366C10.7457 1.52068 10.9072 1.59662 11.0303 1.71973L14.7803 5.46973C14.9209 5.61038 15 5.80109 15 6V14.25C15 14.8467 14.7628 15.4189 14.3408 15.8408C13.9189 16.2628 13.3467 16.5 12.75 16.5H12C11.5858 16.5 11.25 16.1642 11.25 15.75C11.25 15.3358 11.5858 15 12 15H12.75C12.9489 15 13.1396 14.9209 13.2803 14.7803C13.4209 14.6396 13.5 14.4489 13.5 14.25V6.75H11.25C10.8522 6.75 10.4708 6.59185 10.1895 6.31055C9.90815 6.02924 9.75 5.64783 9.75 5.25V3H5.25C5.05109 3 4.86038 3.07907 4.71973 3.21973C4.57907 3.36038 4.5 3.55109 4.5 3.75V9C4.5 9.41421 4.16421 9.75 3.75 9.75C3.33579 9.75 3 9.41421 3 9V3.75C3 3.15326 3.23722 2.58114 3.65918 2.15918C4.08114 1.73722 4.65326 1.5 5.25 1.5H10.5L10.574 1.50366ZM11.25 5.25H12.4395L11.25 4.06055V5.25Z",fill:"currentColor"})),Ne=(e,t)=>m.jsx(e,{size:t.size??ae.size,stroke:t.stroke??ae.stroke,className:t.className}),Ks=(e,t)=>m.jsx(e,{width:Number(t.size??ae.size),height:Number(t.size??ae.size),className:t.className}),uu={".bmp":e=>Ne(V.IconFileTypeBmp,e),".cpp":e=>Ks(z1,e),".c":e=>Ks(W1,e),".cs":e=>Ks(_1,e),".css":e=>Ne(V.IconFileTypeCss,e),".csv":e=>Ne(V.IconFileTypeCsv,e),".doc":e=>Ne(V.IconFileTypeDoc,e),".docx":e=>Ne(V.IconFileTypeDocx,e),".html":e=>Ne(V.IconFileTypeHtml,e),".ini":e=>Ks(j1,e),".jpg":e=>Ne(V.IconFileTypeJpg,e),".js":e=>Ne(V.IconFileTypeJs,e),".json":e=>Ks(U1,e),".jsx":e=>Ne(V.IconFileTypeJsx,e),".md":e=>Ks($1,e),".pdf":e=>Ne(V.IconFileTypePdf,e),".php":e=>Ne(V.IconFileTypePhp,e),".png":e=>Ne(V.IconFileTypePng,e),".ppt":e=>Ne(V.IconFileTypePpt,e),".py":e=>Ks(K1,e),".rs":e=>Ne(V.IconFileTypeRs,e),".sql":e=>Ne(V.IconFileTypeSql,e),".svg":e=>Ne(V.IconFileTypeSvg,e),".ts":e=>Ne(V.IconFileTypeTs,e),".tsx":e=>Ne(V.IconFileTypeTsx,e),".txt":e=>Ne(V.IconFileTypeTxt,e),".vue":e=>Ne(V.IconFileTypeVue,e),".xls":e=>Ne(V.IconFileTypeXls,e),".xml":e=>Ne(V.IconFileTypeXml,e),".zip":e=>Ne(V.IconFileTypeZip,e),default:e=>Ne(V.IconFile,e)},$c=({extension:e,size:t=ae.size,stroke:s=ae.stroke,className:o,decorative:i=!1,label:n,indicator:r})=>{const a=(()=>{const u=e.trim().toLowerCase();return u.startsWith(".")?u:`.${u}`})(),c=(uu[a]??uu.default)({size:t,stroke:s}),d=n??`${a.slice(1).toUpperCase()} file icon`;return m.jsxs("span",{className:Z("inline-flex relative",o),...i?{"aria-hidden":!0}:{role:"img","aria-label":d},children:[m.jsx(Le,{icon:c,className:"inline-block align-middle"}),r&&m.jsx("span",{className:"absolute -bottom-0.5 -left-0.5",children:r})]})},Xi=({label:e="Shared entity",size:t=10,className:s,stroke:o=2})=>m.jsx(Le,{className:ce("text-accent-primary",s),icon:m.jsx(V.IconArrowUpRight,{size:t,stroke:o,"aria-label":e,className:"bg-layer-3",role:"img"})}),mn=({name:e,className:t,shared:s=!1,iconSize:o=ls,details:i})=>{const n=e.includes(".")?e.split(".").pop():null;return m.jsxs("div",{className:ce("flex items-center gap-2 w-full",t),children:[n&&m.jsx($c,{extension:n,size:o,className:"text-secondary",indicator:s?m.jsx(Xi,{}):null,label:"File type icon"}),m.jsxs("div",{className:Z(["w-full flex min-w-0",i&&"flex-col gap-1"]),children:[m.jsx(ut,{className:"text-primary dial-small flex-1 min-w-0",text:e,id:"name"}),i]})]})},da=({name:e,className:t,shared:s=!1,loading:o=!1,iconSize:i=ls})=>{const n=()=>o?m.jsx(fn,{size:i}):m.jsx(Le,{icon:m.jsx(V.IconFolder,{...ae,size:i}),className:"inline-block align-middle"});return m.jsxs("div",{className:ce("flex items-center gap-2 w-full",t),children:[m.jsxs("span",{className:"inline-flex relative text-secondary",role:"img",children:[n(),s&&m.jsx("span",{className:"absolute -bottom-0.5 -left-0.5",children:m.jsx(Xi,{})})]}),m.jsx(ut,{className:"text-primary dial-small flex-1 min-w-0",text:e,id:"name"})]})};var Qi=(e=>(e.Left="left",e.Right="right",e))(Qi||{}),Ue=function(){return Ue=Object.assign||function(e){for(var t,s=1,o=arguments.length;s<o;s++){t=arguments[s];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ue.apply(this,arguments)},hu={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},gu={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},zn={width:"20px",height:"20px",position:"absolute",zIndex:1},q1={top:Ue(Ue({},hu),{top:"-5px"}),right:Ue(Ue({},gu),{left:void 0,right:"-5px"}),bottom:Ue(Ue({},hu),{top:void 0,bottom:"-5px"}),left:Ue(Ue({},gu),{left:"-5px"}),topRight:Ue(Ue({},zn),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:Ue(Ue({},zn),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:Ue(Ue({},zn),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:Ue(Ue({},zn),{left:"-10px",top:"-10px",cursor:"nw-resize"})},Y1=g.memo(function(e){var t=e.onResizeStart,s=e.direction,o=e.children,i=e.replaceStyles,n=e.className,r=g.useCallback(function(c){t(c,s)},[t,s]),a=g.useCallback(function(c){t(c,s)},[t,s]),l=g.useMemo(function(){return Ue(Ue({position:"absolute",userSelect:"none"},q1[s]),i??{})},[i,s]);return m.jsx("div",{className:n||void 0,style:l,onMouseDown:r,onTouchStart:a,children:o})}),Z1=(function(){var e=function(t,s){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(o[n]=i[n])},e(t,s)};return function(t,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");e(t,s);function o(){this.constructor=t}t.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}})(),Kt=function(){return Kt=Object.assign||function(e){for(var t,s=1,o=arguments.length;s<o;s++){t=arguments[s];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Kt.apply(this,arguments)},X1={width:"auto",height:"auto"},Wn=function(e,t,s){return Math.max(Math.min(e,s),t)},pu=function(e,t,s){var o=Math.round(e/t);return o*t+s*(o-1)},Ao=function(e,t){return new RegExp(e,"i").test(t)},_n=function(e){return!!(e.touches&&e.touches.length)},Q1=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},fu=function(e,t,s){s===void 0&&(s=0);var o=t.reduce(function(n,r,a){return Math.abs(r-e)<Math.abs(t[n]-e)?a:n},0),i=Math.abs(t[o]-e);return s===0||i<s?t[o]:e},rl=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:"".concat(e,"px")},jn=function(e,t,s,o){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var i=Number(e.replace("%",""))/100;return t*i}if(e.endsWith("vw")){var i=Number(e.replace("vw",""))/100;return s*i}if(e.endsWith("vh")){var i=Number(e.replace("vh",""))/100;return o*i}}return e},J1=function(e,t,s,o,i,n,r){return o=jn(o,e.width,t,s),i=jn(i,e.height,t,s),n=jn(n,e.width,t,s),r=jn(r,e.height,t,s),{maxWidth:typeof o>"u"?void 0:Number(o),maxHeight:typeof i>"u"?void 0:Number(i),minWidth:typeof n>"u"?void 0:Number(n),minHeight:typeof r>"u"?void 0:Number(r)}},eb=function(e){return Array.isArray(e)?e:[e,e]},tb=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],mu="__resizable_base__",sb=(function(e){Z1(t,e);function t(s){var o,i,n,r,a=e.call(this,s)||this;return a.ratio=1,a.resizable=null,a.parentLeft=0,a.parentTop=0,a.resizableLeft=0,a.resizableRight=0,a.resizableTop=0,a.resizableBottom=0,a.targetLeft=0,a.targetTop=0,a.delta={width:0,height:0},a.appendBase=function(){if(!a.resizable||!a.window)return null;var l=a.parentNode;if(!l)return null;var c=a.window.document.createElement("div");return c.style.width="100%",c.style.height="100%",c.style.position="absolute",c.style.transform="scale(0, 0)",c.style.left="0",c.style.flex="0 0 100%",c.classList?c.classList.add(mu):c.className+=mu,l.appendChild(c),c},a.removeBase=function(l){var c=a.parentNode;c&&c.removeChild(l)},a.state={isResizing:!1,width:(i=(o=a.propsSize)===null||o===void 0?void 0:o.width)!==null&&i!==void 0?i:"auto",height:(r=(n=a.propsSize)===null||n===void 0?void 0:n.height)!==null&&r!==void 0?r:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},a.onResizeStart=a.onResizeStart.bind(a),a.onMouseMove=a.onMouseMove.bind(a),a.onMouseUp=a.onMouseUp.bind(a),a}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||X1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var s=0,o=0;if(this.resizable&&this.window){var i=this.resizable.offsetWidth,n=this.resizable.offsetHeight,r=this.resizable.style.position;r!=="relative"&&(this.resizable.style.position="relative"),s=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:i,o=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:n,this.resizable.style.position=r}return{width:s,height:o}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var s=this,o=this.props.size,i=function(a){var l;if(typeof s.state[a]>"u"||s.state[a]==="auto")return"auto";if(s.propsSize&&s.propsSize[a]&&(!((l=s.propsSize[a])===null||l===void 0)&&l.toString().endsWith("%"))){if(s.state[a].toString().endsWith("%"))return s.state[a].toString();var c=s.getParentSize(),d=Number(s.state[a].toString().replace("px","")),u=d/c[a]*100;return"".concat(u,"%")}return rl(s.state[a])},n=o&&typeof o.width<"u"&&!this.state.isResizing?rl(o.width):i("width"),r=o&&typeof o.height<"u"&&!this.state.isResizing?rl(o.height):i("height");return{width:n,height:r}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var s=this.appendBase();if(!s)return{width:0,height:0};var o=!1,i=this.parentNode.style.flexWrap;i!=="wrap"&&(o=!0,this.parentNode.style.flexWrap="wrap"),s.style.position="relative",s.style.minWidth="100%",s.style.minHeight="100%";var n={width:s.offsetWidth,height:s.offsetHeight};return o&&(this.parentNode.style.flexWrap=i),this.removeBase(s),n},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var s=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:s.flexBasis!=="auto"?s.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(s,o){var i=this.propsSize&&this.propsSize[o];return this.state[o]==="auto"&&this.state.original[o]===s&&(typeof i>"u"||i==="auto")?"auto":s},t.prototype.calculateNewMaxFromBoundary=function(s,o){var i=this.props.boundsByDirection,n=this.state.direction,r=i&&Ao("left",n),a=i&&Ao("top",n),l,c;if(this.props.bounds==="parent"){var d=this.parentNode;d&&(l=r?this.resizableRight-this.parentLeft:d.offsetWidth+(this.parentLeft-this.resizableLeft),c=a?this.resizableBottom-this.parentTop:d.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(l=r?this.resizableRight:this.window.innerWidth-this.resizableLeft,c=a?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(l=r?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),c=a?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return l&&Number.isFinite(l)&&(s=s&&s<l?s:l),c&&Number.isFinite(c)&&(o=o&&o<c?o:c),{maxWidth:s,maxHeight:o}},t.prototype.calculateNewSizeFromDirection=function(s,o){var i=this.props.scale||1,n=eb(this.props.resizeRatio||1),r=n[0],a=n[1],l=this.state,c=l.direction,d=l.original,u=this.props,h=u.lockAspectRatio,p=u.lockAspectRatioExtraHeight,f=u.lockAspectRatioExtraWidth,C=d.width,v=d.height,w=p||0,b=f||0;return Ao("right",c)&&(C=d.width+(s-d.x)*r/i,h&&(v=(C-b)/this.ratio+w)),Ao("left",c)&&(C=d.width-(s-d.x)*r/i,h&&(v=(C-b)/this.ratio+w)),Ao("bottom",c)&&(v=d.height+(o-d.y)*a/i,h&&(C=(v-w)*this.ratio+b)),Ao("top",c)&&(v=d.height-(o-d.y)*a/i,h&&(C=(v-w)*this.ratio+b)),{newWidth:C,newHeight:v}},t.prototype.calculateNewSizeFromAspectRatio=function(s,o,i,n){var r=this.props,a=r.lockAspectRatio,l=r.lockAspectRatioExtraHeight,c=r.lockAspectRatioExtraWidth,d=typeof n.width>"u"?10:n.width,u=typeof i.width>"u"||i.width<0?s:i.width,h=typeof n.height>"u"?10:n.height,p=typeof i.height>"u"||i.height<0?o:i.height,f=l||0,C=c||0;if(a){var v=(h-f)*this.ratio+C,w=(p-f)*this.ratio+C,b=(d-C)/this.ratio+f,S=(u-C)/this.ratio+f,y=Math.max(d,v),x=Math.min(u,w),R=Math.max(h,b),E=Math.min(p,S);s=Wn(s,y,x),o=Wn(o,R,E)}else s=Wn(s,d,u),o=Wn(o,h,p);return{newWidth:s,newHeight:o}},t.prototype.setBoundingClientRect=function(){var s=1/(this.props.scale||1);if(this.props.bounds==="parent"){var o=this.parentNode;if(o){var i=o.getBoundingClientRect();this.parentLeft=i.left*s,this.parentTop=i.top*s}}if(this.props.bounds&&typeof this.props.bounds!="string"){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left*s,this.targetTop=n.top*s}if(this.resizable){var r=this.resizable.getBoundingClientRect(),a=r.left,l=r.top,c=r.right,d=r.bottom;this.resizableLeft=a*s,this.resizableRight=c*s,this.resizableTop=l*s,this.resizableBottom=d*s}},t.prototype.onResizeStart=function(s,o){if(!(!this.resizable||!this.window)){var i=0,n=0;if(s.nativeEvent&&Q1(s.nativeEvent)?(i=s.nativeEvent.clientX,n=s.nativeEvent.clientY):s.nativeEvent&&_n(s.nativeEvent)&&(i=s.nativeEvent.touches[0].clientX,n=s.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var r=this.props.onResizeStart(s,o,this.resizable);if(r===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var a,l=this.window.getComputedStyle(this.resizable);if(l.flexBasis!=="auto"){var c=this.parentNode;if(c){var d=this.window.getComputedStyle(c).flexDirection;this.flexDir=d.startsWith("row")?"row":"column",a=l.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var u={original:{x:i,y:n,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Kt(Kt({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(s.target).cursor||"auto"}),direction:o,flexBasis:a};this.setState(u)}},t.prototype.onMouseMove=function(s){var o=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&_n(s))try{s.preventDefault(),s.stopPropagation()}catch{}var i=this.props,n=i.maxWidth,r=i.maxHeight,a=i.minWidth,l=i.minHeight,c=_n(s)?s.touches[0].clientX:s.clientX,d=_n(s)?s.touches[0].clientY:s.clientY,u=this.state,h=u.direction,p=u.original,f=u.width,C=u.height,v=this.getParentSize(),w=J1(v,this.window.innerWidth,this.window.innerHeight,n,r,a,l);n=w.maxWidth,r=w.maxHeight,a=w.minWidth,l=w.minHeight;var b=this.calculateNewSizeFromDirection(c,d),S=b.newHeight,y=b.newWidth,x=this.calculateNewMaxFromBoundary(n,r);this.props.snap&&this.props.snap.x&&(y=fu(y,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(S=fu(S,this.props.snap.y,this.props.snapGap));var R=this.calculateNewSizeFromAspectRatio(y,S,{width:x.maxWidth,height:x.maxHeight},{width:a,height:l});if(y=R.newWidth,S=R.newHeight,this.props.grid){var E=pu(y,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),D=pu(S,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),T=this.props.snapGap||0,k=T===0||Math.abs(E-y)<=T?E:y,F=T===0||Math.abs(D-S)<=T?D:S;y=k,S=F}var M={width:y-p.width,height:S-p.height};if(this.delta=M,f&&typeof f=="string"){if(f.endsWith("%")){var L=y/v.width*100;y="".concat(L,"%")}else if(f.endsWith("vw")){var B=y/this.window.innerWidth*100;y="".concat(B,"vw")}else if(f.endsWith("vh")){var H=y/this.window.innerHeight*100;y="".concat(H,"vh")}}if(C&&typeof C=="string"){if(C.endsWith("%")){var L=S/v.height*100;S="".concat(L,"%")}else if(C.endsWith("vw")){var B=S/this.window.innerWidth*100;S="".concat(B,"vw")}else if(C.endsWith("vh")){var H=S/this.window.innerHeight*100;S="".concat(H,"vh")}}var Q={width:this.createSizeForCssProperty(y,"width"),height:this.createSizeForCssProperty(S,"height")};this.flexDir==="row"?Q.flexBasis=Q.width:this.flexDir==="column"&&(Q.flexBasis=Q.height);var ee=this.state.width!==Q.width,O=this.state.height!==Q.height,le=this.state.flexBasis!==Q.flexBasis,z=ee||O||le;z&&pn.flushSync(function(){o.setState(Q)}),this.props.onResize&&z&&this.props.onResize(s,h,this.resizable,M)}},t.prototype.onMouseUp=function(s){var o,i,n=this.state,r=n.isResizing,a=n.direction;n.original,!(!r||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(s,a,this.resizable,this.delta),this.props.size&&this.setState({width:(o=this.props.size.width)!==null&&o!==void 0?o:"auto",height:(i=this.props.size.height)!==null&&i!==void 0?i:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Kt(Kt({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(s){var o,i;this.setState({width:(o=s.width)!==null&&o!==void 0?o:"auto",height:(i=s.height)!==null&&i!==void 0?i:"auto"})},t.prototype.renderResizer=function(){var s=this,o=this.props,i=o.enable,n=o.handleStyles,r=o.handleClasses,a=o.handleWrapperStyle,l=o.handleWrapperClass,c=o.handleComponent;if(!i)return null;var d=Object.keys(i).map(function(u){return i[u]!==!1?m.jsx(Y1,{direction:u,onResizeStart:s.onResizeStart,replaceStyles:n&&n[u],className:r&&r[u],children:c&&c[u]?c[u]:null},u):null});return m.jsx("div",{className:l,style:a,children:d})},t.prototype.render=function(){var s=this,o=Object.keys(this.props).reduce(function(r,a){return tb.indexOf(a)!==-1||(r[a]=s.props[a]),r},{}),i=Kt(Kt(Kt({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(i.flexBasis=this.state.flexBasis);var n=this.props.as||"div";return m.jsxs(n,Kt({style:i,className:this.props.className},o,{ref:function(r){r&&(s.resizable=r)},children:[this.state.isResizing&&m.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t})(g.PureComponent);const ob=({side:e,className:t})=>{const s=e===Qi.Left,o=s?V.IconChevronLeft:V.IconChevronRight;return m.jsx("div",{className:t,children:m.jsx(o,{className:Z("h-full",s&&"-ml-6")})})},ib=({side:e,isResizing:t,customHandler:s,handlerClassName:o})=>{const i=ce("invisible h-full w-0.5 group-hover:visible bg-accent-primary text-accent-primary cursor-col-resize transition-opacity",t&&"visible",o),n=m.jsx(ob,{side:e,className:i});return s?m.jsx("div",{className:i,children:s}):n},Lg=({children:e,minWidth:t,maxWidth:s,width:o,defaultWidth:i,onResizeStop:n,onResize:r,side:a=Qi.Right,resizeHandlerClassName:l,resizeHandler:c})=>{const[d,u]=g.useState(!1),[h,p]=g.useState(i),f=o!==void 0,C=f?o:h,v=g.useRef(null),w=g.useCallback(()=>{u(!0)},[]),b=g.useCallback(()=>{u(!1);const y=v.current?.resizable?.getBoundingClientRect(),x=y?Math.round(y.width):t;f||p(x),n?.(x)},[n,f,t]),S=g.useMemo(()=>{const y=a===Qi.Left,x=m.jsx(ib,{side:a,isResizing:d,customHandler:c,handlerClassName:l});return{size:f?{width:C,height:"100%"}:void 0,defaultSize:f?void 0:{width:C,height:"100%"},minWidth:t,maxWidth:s,enable:{left:y,right:!y},handleClasses:{right:"group",left:"group"},handleStyles:{right:{right:"-8px",zIndex:10},left:{left:0,zIndex:10}},handleComponent:{left:y?x:void 0,right:y?void 0:x},onResizeStart:w,onResize:(R,E,D)=>{const T=Math.round(D.offsetWidth);r?.(T)},onResizeStop:b}},[a,f,C,t,s,c,l,d,w,b,r]);return m.jsx(sb,{ref:v,...S,children:m.jsx("div",{className:"group flex size-full flex-col bg-layer-3 divide-y divide-tertiary transition-all",children:e})})},Og=({enabled:e=!0,children:t,...s})=>e?m.jsx(Lg,{...s,children:t}):t;var At=(e=>(e.Default="default",e.Text="text",e.Circular="circular",e.Rectangular="rectangular",e))(At||{}),Gi=(e=>(e.Small="small",e.Default="default",e.Large="large",e))(Gi||{}),xr=(e=>(e.Circle="circle",e.Square="square",e))(xr||{});const nb=e=>{if(typeof e=="number")return e;switch(e){case Gi.Small:return 32;case Gi.Large:return 64;case Gi.Default:default:return 40}},Go=({active:e=!0,paragraph:t=!0,avatar:s=!1,showTitle:o=!0,loading:i=!0,children:n,variant:r=At.Default,width:a,height:l,className:c,...d})=>{if(!i&&n)return m.jsx(m.Fragment,{children:n});const u=ce("bg-layer-3",e&&"animate-pulse",c);if(r!==At.Default){const D=ce(u,r===At.Circular&&"rounded-full",r===At.Rectangular&&"rounded",r===At.Text&&"rounded"),T={};return a&&(T.width=typeof a=="number"?`${a}px`:a),l&&(T.height=typeof l=="number"?`${l}px`:l),m.jsx("div",{className:D,style:T,...d})}const h=!!s,p=!!o,f=!!t,C=typeof s=="object"?s:{},v=typeof o=="object"?o:{},w=typeof t=="object"?t:{},b=nb(C.size),S=C.shape??xr.Circle,y=v.width??"38%",x=w.rows??3,R=w.width,E=D=>R?Array.isArray(R)?R[D]??"100%":R:D===x-1?"61%":"100%";return m.jsxs("div",{...d,className:ce("flex gap-4",c),children:[h&&m.jsx("div",{className:ce(u,S===xr.Circle?"rounded-full":"rounded","flex-shrink-0"),style:{width:b,height:b}}),m.jsxs("div",{className:"flex-1 flex flex-col gap-3",children:[p&&m.jsx("div",{className:ce(u,"h-4 rounded"),style:{width:y}}),f&&m.jsx("div",{className:"flex flex-col gap-3",children:Array.from({length:x}).map((D,T)=>m.jsx("div",{className:ce(u,"h-4 rounded"),style:{width:E(T)}},T))})]})]})};var uo=class{constructor(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}setFrameworkOverrides(e){this.frameworkOverrides=e}getListeners(e,t,s){const o=t?this.allAsyncListeners:this.allSyncListeners;let i=o.get(e);return!i&&s&&(i=new Set,o.set(e,i)),i}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0}addEventListener(e,t,s=!1){this.getListeners(e,s,!0).add(t)}removeEventListener(e,t,s=!1){const o=this.getListeners(e,s,!1);o&&(o.delete(t),o.size===0&&(s?this.allAsyncListeners:this.allSyncListeners).delete(e))}addGlobalListener(e,t=!1){this.getGlobalListeners(t).add(e)}removeGlobalListener(e,t=!1){this.getGlobalListeners(t).delete(e)}dispatchEvent(e){this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0}dispatchEventOnce(e){this.firedEvents[e.type]||this.dispatchEvent(e)}dispatchToListeners(e,t){const s=e.type;if(t&&"event"in e){const a=e.event;a instanceof Event&&(e.eventPath=a.composedPath())}const{frameworkOverrides:o}=this,i=a=>{const l=o?()=>o.wrapIncoming(a):a;t?this.dispatchAsync(l):l()},n=this.getListeners(s,t,!1);if((n?.size??0)>0){const a=new Set(n);for(const l of a)n?.has(l)&&i(()=>l(e))}const r=this.getGlobalListeners(t);if(r.size>0){const a=new Set(r);for(const l of a)i(()=>l(s,e))}}getGlobalListeners(e){return e?this.globalAsyncListeners:this.globalSyncListeners}dispatchAsync(e){if(this.asyncFunctionsQueue.push(e),!this.scheduled){const t=()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)};this.frameworkOverrides?this.frameworkOverrides.wrapIncoming(t):t(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;const e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[];for(const t of e)t()}};function us(e){return e==null||e===""?null:e}function q(e){return e!=null&&e!==""}function Ge(e){return!q(e)}function sc(e){return e!=null&&typeof e.toString=="function"?e.toString():null}function Ji(e,t){const s=e?JSON.stringify(e):null,o=t?JSON.stringify(t):null;return s===o}function rb(e,t,s=!1){const o=e==null,i=t==null;if(e?.toNumber&&(e=e.toNumber()),t?.toNumber&&(t=t.toNumber()),o&&i)return 0;if(o)return-1;if(i)return 1;function n(r,a){return r>a?1:r<a?-1:0}if(typeof e!="string"||!s)return n(e,t);try{return e.localeCompare(t)}catch{return n(e,t)}}var ab=/[&<>"']/g,lb={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ui(e){return e?.toString().toString()??null}function Bi(e){return ui(e)?.replace(ab,t=>lb[t])??null}function qt(e){return e.eRootDiv.getRootNode()}function Ve(e){return qt(e).activeElement}function Qe(e){const{gos:t,eRootDiv:s}=e;let o=null;const i=t.get("getDocument");return i&&q(i)?o=i():s&&(o=s.ownerDocument),o&&q(o)?o:document}function Ng(e){const t=Ve(e);return t===null||t===Qe(e).body}function Hg(e){return Qe(e).defaultView||window}function Kc(e){let t=null,s=null;try{t=Qe(e).fullscreenElement}catch{}finally{t||(t=qt(e));const o=t.querySelector("body");o?s=o:t instanceof ShadowRoot?s=t:t instanceof Document?s=t?.documentElement:s=t}return s}function cb(e){return Kc(e)?.clientWidth??(window.innerWidth||-1)}function db(e){return Kc(e)?.clientHeight??(window.innerHeight||-1)}function Wt(e,t,s){s==null||typeof s=="string"&&s==""?Gg(e,t):_t(e,t,s)}function _t(e,t,s){e.setAttribute(Bg(t),s.toString())}function Gg(e,t){e.removeAttribute(Bg(t))}function Bg(e){return`aria-${e}`}function ho(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function ub(e){let t;return e==="asc"?t="ascending":e==="desc"?t="descending":e==="mixed"?t="other":t="none",t}function hb(e){return e.getAttribute("aria-label")}function ti(e,t){Wt(e,"label",t)}function en(e,t){Wt(e,"labelledby",t)}function Vg(e,t){Wt(e,"live",t)}function gb(e,t){Wt(e,"atomic",t)}function pb(e,t){Wt(e,"relevant",t)}function fb(e,t){Wt(e,"invalid",t)}function mb(e,t){Wt(e,"disabled",t)}function zg(e,t){Wt(e,"hidden",t)}function oc(e,t){_t(e,"expanded",t)}function Cb(e,t){_t(e,"setsize",t)}function vb(e,t){_t(e,"posinset",t)}function wb(e,t){_t(e,"rowcount",t)}function Wg(e,t){_t(e,"rowindex",t)}function bb(e,t){_t(e,"rowspan",t)}function Sb(e,t){_t(e,"colcount",t)}function _g(e,t){_t(e,"colindex",t)}function yb(e,t){_t(e,"colspan",t)}function xb(e,t){_t(e,"sort",t)}function Rb(e){Gg(e,"sort")}function jg(e,t){Wt(e,"selected",t)}function Fb(e,t){Wt(e,"controls",t)}function Eb(e,t){Fb(e,t.id),en(t,e.id)}function Cu(e,t){Wt(e,"owns",t)}function ua(e,t){return t===void 0?e("ariaIndeterminate","indeterminate"):t===!0?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}var Db="[tabindex], input, select, button, textarea, [href]",Ug="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function Vi(e){return!e||!e.matches("input, select, button, textarea")||!e.matches(Ug)?!1:Cs(e)}function Be(e,t,s={}){const{skipAriaHidden:o}=s;e.classList.toggle("ag-hidden",!t),o||zg(e,!t)}function Pb(e,t,s={}){const{skipAriaHidden:o}=s;e.classList.toggle("ag-invisible",!t),o||zg(e,!t)}function tn(e,t){const s="disabled",o=t?n=>n.setAttribute(s,""):n=>n.removeAttribute(s);o(e);const i=e.querySelectorAll("input")??[];for(const n of i)o(n)}function to(e,t,s){let o=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,typeof s=="number"){if(++o>s)break}else if(e===s)break}return!1}function So(e){const{height:t,width:s,borderTopWidth:o,borderRightWidth:i,borderBottomWidth:n,borderLeftWidth:r,paddingTop:a,paddingRight:l,paddingBottom:c,paddingLeft:d,marginTop:u,marginRight:h,marginBottom:p,marginLeft:f,boxSizing:C}=window.getComputedStyle(e),v=Number.parseFloat;return{height:v(t||"0"),width:v(s||"0"),borderTopWidth:v(o||"0"),borderRightWidth:v(i||"0"),borderBottomWidth:v(n||"0"),borderLeftWidth:v(r||"0"),paddingTop:v(a||"0"),paddingRight:v(l||"0"),paddingBottom:v(c||"0"),paddingLeft:v(d||"0"),marginTop:v(u||"0"),marginRight:v(h||"0"),marginBottom:v(p||"0"),marginLeft:v(f||"0"),boxSizing:C}}function qc(e){const t=So(e);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom-t.borderTopWidth-t.borderBottomWidth:t.height}function sn(e){const t=So(e);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight-t.borderLeftWidth-t.borderRightWidth:t.width}function $g(e){const{height:t,marginBottom:s,marginTop:o}=So(e);return Math.floor(t+s+o)}function Rr(e){const{width:t,marginLeft:s,marginRight:o}=So(e);return Math.floor(t+s+o)}function Kg(e){const t=e.getBoundingClientRect(),{borderTopWidth:s,borderLeftWidth:o,borderRightWidth:i,borderBottomWidth:n}=So(e);return{top:t.top+(s||0),left:t.left+(o||0),right:t.right+(i||0),bottom:t.bottom+(n||0)}}function Fr(e,t){let s=e.scrollLeft;return t&&(s=Math.abs(s)),s}function Er(e,t,s){s&&(t*=-1),e.scrollLeft=t}function mt(e){for(;e?.firstChild;)e.firstChild.remove()}function Is(e){e?.parentNode&&e.remove()}function qg(e){return!!e.offsetParent}function Cs(e){return e.checkVisibility?e.checkVisibility({checkVisibilityCSS:!0}):!(!qg(e)||window.getComputedStyle(e).visibility!=="visible")}function Yc(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function rr(e){return()=>{const t=e();return t?Zc(t)||Yg(t):!0}}function Zc(e){return e.clientWidth<e.scrollWidth}function Yg(e){return e.clientHeight<e.scrollHeight}function Dr(e,t){t==="flex"?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):Jt(e,t)}function Jt(e,t){t=Xc(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function zi(e,t){t=Xc(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function Xc(e){return typeof e=="number"?`${e}px`:e}function Qc(e){return e instanceof Node||e instanceof HTMLElement}function Rt(e,t,s){s==null||s===""?e.removeAttribute(t):e.setAttribute(t,s.toString())}function vs(e,t,s){const i=Hg(e).ResizeObserver,n=i?new i(s):null;return n?.observe(t),()=>n?.disconnect()}function ws(e,t){const s=Hg(e);s.requestAnimationFrame?s.requestAnimationFrame(t):s.webkitRequestAnimationFrame?s.webkitRequestAnimationFrame(t):s.setTimeout(t,0)}var Zg="data-ref",al;function vu(){return al??(al=document.createTextNode(" ")),al.cloneNode()}function Cn(e){const{attrs:t,children:s,cls:o,ref:i,role:n,tag:r}=e,a=document.createElement(r);if(o&&(a.className=o),i&&a.setAttribute(Zg,i),n&&a.setAttribute("role",n),t)for(const l of Object.keys(t))a.setAttribute(l,t[l]);if(s)if(typeof s=="string")a.textContent=s;else{let l=!0;for(const c of s)c&&(typeof c=="string"?(a.appendChild(document.createTextNode(c)),l=!1):typeof c=="function"?a.appendChild(c()):(l&&(a.appendChild(vu()),l=!1),a.append(Cn(c)),a.appendChild(vu())))}return a}var Mb=["touchstart","touchend","touchmove","touchcancel","scroll"],Tb=["wheel"],ll={},Xg=(()=>{const e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return s=>{if(typeof ll[s]=="boolean")return ll[s];const o=document.createElement(e[s]||"div");return s="on"+s,ll[s]=s in o}})();function Ib(e,t){return!t||!e?!1:Ab(t).indexOf(e)>=0}function kb(e){const t=[];let s=e.target;for(;s;)t.push(s),s=s.parentElement;return t}function Ab(e){const t=e;return t.path?t.path:t.composedPath?t.composedPath():kb(t)}function Lb(e,t,s){const o=Ob(t);let i;o!=null&&(i={passive:o}),e.addEventListener(t,s,i)}var Ob=e=>{const t=Mb.includes(e),s=Tb.includes(e);if(t)return!0;if(s)return!1};function Qg(e,t,s){if(s===0)return!1;const o=Math.abs(e.clientX-t.clientX),i=Math.abs(e.clientY-t.clientY);return Math.max(o,i)<=s}var Wi=(e,t)=>{const s=e.identifier;for(let o=0,i=t.length;o<i;++o){const n=t[o];if(n.identifier===s)return n}return null};function on(e,t){return e.gos.isElementInThisInstance(t.target)}function Nb(e,t,s){const i=e.getBoundingClientRect().height,n=cb(s)-2,r=db(s)-2;if(!e.offsetParent)return;const l=Kg(e.offsetParent),{clientY:c,clientX:d}=t;let u=c-l.top-i/2,h=d-l.left-10;const p=Qe(s),f=p.defaultView||window,C=f.pageYOffset||p.documentElement.scrollTop,v=f.pageXOffset||p.documentElement.scrollLeft;n>0&&h+e.clientWidth>n+v&&(h=n+v-e.clientWidth),h<0&&(h=0),r>0&&u+e.clientHeight>r+C&&(u=r+C-e.clientHeight),u<0&&(u=0),e.style.left=`${h}px`,e.style.top=`${u}px`}var ar=(e,...t)=>{for(const s of t){const[o,i,n,r]=s;o.addEventListener(i,n,r),e.push(s)}},Jc=e=>{if(e){for(const[t,s,o,i]of e)t.removeEventListener(s,o,i);e.length=0}},Es=e=>{e.cancelable&&e.preventDefault()};function Hb(e,t){return t}function Jg(e){return e?.getLocaleTextFunc()??Hb}function Gb(e,t,s,o){const i=t[s];return e.getLocaleTextFunc()(s,typeof i=="function"?i(o):i,o)}function Bb(e){return(t,s,o)=>e({key:t,defaultValue:s,variableValues:o})}function Vb(e){return(t,s,o)=>{let i=e?.[t];if(i&&o?.length){let n=0;for(;!(n>=o.length||i.indexOf("${variable}")===-1);)i=i.replace("${variable}",o[n++])}return i??s}}var ss=class{constructor(){this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.propertyListenerId=0,this.lastChangeSetIdLookup={},this.isAlive=()=>!this.destroyed}preWireBeans(e){this.beans=e,this.stubContext=e.context,this.eventSvc=e.eventSvc,this.gos=e.gos}destroy(){const{destroyFunctions:e}=this;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.destroyed=!0,this.dispatchLocalEvent({type:"destroyed"})}addEventListener(e,t,s){this.localEventService||(this.localEventService=new uo),this.localEventService.addEventListener(e,t,s)}removeEventListener(e,t,s){this.localEventService?.removeEventListener(e,t,s)}dispatchLocalEvent(e){this.localEventService?.dispatchEvent(e)}addManagedElementListeners(e,t){return this._setupListeners(e,t)}addManagedEventListeners(e){return this._setupListeners(this.eventSvc,e)}addManagedListeners(e,t){return this._setupListeners(e,t)}_setupListeners(e,t){const s=[];for(const o of Object.keys(t)){const i=t[o];i&&s.push(this._setupListener(e,o,i))}return s}_setupListener(e,t,s){if(this.destroyed)return()=>null;let o;if(zb(e))e.__addEventListener(t,s),o=()=>(e.__removeEventListener(t,s),null);else{const i=Wb(e);e instanceof HTMLElement?Lb(e,t,s):i?e.addListener(t,s):e.addEventListener(t,s),o=i?()=>(e.removeListener(t,s),null):()=>(e.removeEventListener(t,s),null)}return this.destroyFunctions.push(o),()=>(o(),this.destroyFunctions=this.destroyFunctions.filter(i=>i!==o),null)}setupPropertyListener(e,t){const{gos:s}=this;s.addPropertyEventListener(e,t);const o=()=>(s.removePropertyEventListener(e,t),null);return this.destroyFunctions.push(o),()=>(o(),this.destroyFunctions=this.destroyFunctions.filter(i=>i!==o),null)}addManagedPropertyListener(e,t){return this.destroyed?()=>null:this.setupPropertyListener(e,t)}addManagedPropertyListeners(e,t){if(this.destroyed)return;const s=e.join("-")+this.propertyListenerId++,o=i=>{if(i.changeSet){if(i.changeSet&&i.changeSet.id===this.lastChangeSetIdLookup[s])return;this.lastChangeSetIdLookup[s]=i.changeSet.id}const n={type:"propertyChanged",changeSet:i.changeSet,source:i.source};t(n)};for(const i of e)this.setupPropertyListener(i,o)}getLocaleTextFunc(){return Jg(this.beans.localeSvc)}addDestroyFunc(e){this.isAlive()?this.destroyFunctions.push(e):e()}createOptionalManagedBean(e,t){return e?this.createManagedBean(e,t):void 0}createManagedBean(e,t){const s=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),s}createBean(e,t,s){return(t||this.stubContext).createBean(e,s)}destroyBean(e,t){return(t||this.stubContext).destroyBean(e)}destroyBeans(e,t){return(t||this.stubContext).destroyBeans(e)}};function zb(e){return e.__addEventListener!==void 0}function Wb(e){return e.eventServiceType==="global"}var A=class extends ss{},wu={};function ed(e,t){wu[t]||(e(),wu[t]=!0)}var _b={pending:!1,funcs:[]},jb={pending:!1,funcs:[]};function ic(e,t="setTimeout",s){const o=t==="raf"?jb:_b;if(o.funcs.push(e),o.pending)return;o.pending=!0;const i=()=>{const n=o.funcs.slice();o.funcs.length=0,o.pending=!1;for(const r of n)r()};t==="raf"?ws(s,i):window.setTimeout(i,0)}function st(e,t,s){let o;return function(...i){const n=this;window.clearTimeout(o),o=window.setTimeout(function(){e.isAlive()&&t.apply(n,i)},s)}}function bu(e,t){let s=0;return function(...o){const i=this,n=Date.now();n-s<t||(s=n,e.apply(i,o))}}function Ub(e,t,s,o=100){const i=Date.now();let n=null,r=!1;const a=()=>{n!=null&&(window.clearInterval(n),n=null)};e.addDestroyFunc(a);const l=()=>{const c=Date.now()-i>o;(t()||c)&&(s(),r=!0,a())};l(),r||(n=window.setInterval(l,10))}var ep=new Set(["__proto__","constructor","prototype"]);function $b(e,t){if(e!=null){if(Array.isArray(e)){for(let s=0;s<e.length;s++)t(s.toString(),e[s]);return}for(const s of Object.keys(e).filter(o=>!ep.has(o)))t(s,e[s])}}function ht(e,t,s=!0,o=!1){q(t)&&$b(t,(i,n)=>{let r=e[i];r!==n&&(o&&r==null&&n!=null&&typeof n=="object"&&n.constructor===Object&&(r={},e[i]=r),Su(n)&&Su(r)&&!Array.isArray(r)?ht(r,n,s,o):(s||n!==void 0)&&(e[i]=n))})}function Su(e){return typeof e=="object"&&e!==null}var td=class rs{static applyGlobalGridOptions(t){if(!rs.gridOptions)return{...t};let s={};return ht(s,rs.gridOptions,!0,!0),rs.mergeStrategy==="deep"?ht(s,t,!0,!0):s={...s,...t},rs.gridOptions.context&&(s.context=rs.gridOptions.context),t.context&&(rs.mergeStrategy==="deep"&&s.context&&ht(t.context,s.context,!0,!0),s.context=t.context),s}static applyGlobalGridOption(t,s){if(rs.mergeStrategy==="deep"){const o=tp(t);if(o&&typeof o=="object"&&typeof s=="object")return rs.applyGlobalGridOptions({[t]:s})[t]}return s}};td.gridOptions=void 0;td.mergeStrategy="shallow";var sd=td;function tp(e){return sd.gridOptions?.[e]}var sp={suppressContextMenu:!1,preventDefaultOnContextMenu:!1,allowContextMenuWithControlKey:!1,suppressMenuHide:!0,enableBrowserTooltips:!1,tooltipTrigger:"hover",tooltipShowDelay:2e3,tooltipHideDelay:1e4,tooltipMouseTrack:!1,tooltipShowMode:"standard",tooltipInteraction:!1,copyHeadersToClipboard:!1,copyGroupHeadersToClipboard:!1,clipboardDelimiter:" ",suppressCopyRowsToClipboard:!1,suppressCopySingleCellRanges:!1,suppressLastEmptyLineOnPaste:!1,suppressClipboardPaste:!1,suppressClipboardApi:!1,suppressCutToClipboard:!1,maintainColumnOrder:!1,enableStrictPivotColumnOrder:!1,suppressFieldDotNotation:!1,allowDragFromColumnsToolPanel:!1,suppressMovableColumns:!1,suppressColumnMoveAnimation:!1,suppressMoveWhenColumnDragging:!1,suppressDragLeaveHidesColumns:!1,suppressRowGroupHidesColumns:!1,suppressAutoSize:!1,autoSizePadding:20,skipHeaderOnAutoSize:!1,singleClickEdit:!1,suppressClickEdit:!1,readOnlyEdit:!1,stopEditingWhenCellsLoseFocus:!1,enterNavigatesVertically:!1,enterNavigatesVerticallyAfterEdit:!1,enableCellEditingOnBackspace:!1,undoRedoCellEditing:!1,undoRedoCellEditingLimit:10,suppressCsvExport:!1,suppressExcelExport:!1,cacheQuickFilter:!1,includeHiddenColumnsInQuickFilter:!1,excludeChildrenWhenTreeDataFiltering:!1,enableAdvancedFilter:!1,includeHiddenColumnsInAdvancedFilter:!1,enableCharts:!1,masterDetail:!1,keepDetailRows:!1,keepDetailRowsCount:10,detailRowAutoHeight:!1,tabIndex:0,rowBuffer:10,valueCache:!1,valueCacheNeverExpires:!1,enableCellExpressions:!1,suppressTouch:!1,suppressFocusAfterRefresh:!1,suppressBrowserResizeObserver:!1,suppressPropertyNamesCheck:!1,suppressChangeDetection:!1,debug:!1,suppressLoadingOverlay:!1,suppressNoRowsOverlay:!1,pagination:!1,paginationPageSize:100,paginationPageSizeSelector:!0,paginationAutoPageSize:!1,paginateChildRows:!1,suppressPaginationPanel:!1,pivotMode:!1,pivotPanelShow:"never",pivotDefaultExpanded:0,pivotSuppressAutoColumn:!1,suppressExpandablePivotGroups:!1,functionsReadOnly:!1,suppressAggFuncInHeader:!1,alwaysAggregateAtRootLevel:!1,aggregateOnlyChangedColumns:!1,suppressAggFilteredOnly:!1,removePivotHeaderRowWhenSingleValueColumn:!1,animateRows:!0,cellFlashDuration:500,cellFadeDuration:1e3,allowShowChangeAfterFilter:!1,domLayout:"normal",ensureDomOrder:!1,enableRtl:!1,suppressColumnVirtualisation:!1,suppressMaxRenderedRowRestriction:!1,suppressRowVirtualisation:!1,rowDragManaged:!1,rowDragInsertDelay:500,suppressRowDrag:!1,suppressMoveWhenRowDragging:!1,rowDragEntireRow:!1,rowDragMultiRow:!1,embedFullWidthRows:!1,groupDisplayType:"singleColumn",groupDefaultExpanded:0,groupMaintainOrder:!1,groupSelectsChildren:!1,groupSuppressBlankHeader:!1,groupSelectsFiltered:!1,showOpenedGroup:!1,groupRemoveSingleChildren:!1,groupRemoveLowestSingleChildren:!1,groupHideOpenParents:!1,groupAllowUnbalanced:!1,rowGroupPanelShow:"never",suppressMakeColumnVisibleAfterUnGroup:!1,treeData:!1,rowGroupPanelSuppressSort:!1,suppressGroupRowsSticky:!1,rowModelType:"clientSide",asyncTransactionWaitMillis:50,suppressModelUpdateAfterUpdateTransaction:!1,cacheOverflowSize:1,infiniteInitialRowCount:1,serverSideInitialRowCount:1,cacheBlockSize:100,maxBlocksInCache:-1,maxConcurrentDatasourceRequests:2,blockLoadDebounceMillis:0,purgeClosedRowNodes:!1,serverSideSortAllLevels:!1,serverSideOnlyRefreshFilteredGroups:!1,serverSidePivotResultFieldSeparator:"_",viewportRowModelPageSize:5,viewportRowModelBufferSize:5,alwaysShowHorizontalScroll:!1,alwaysShowVerticalScroll:!1,debounceVerticalScrollbar:!1,suppressHorizontalScroll:!1,suppressScrollOnNewData:!1,suppressScrollWhenPopupsAreOpen:!1,suppressAnimationFrame:!1,suppressMiddleClickScrolls:!1,suppressPreventDefaultOnMouseWheel:!1,rowMultiSelectWithClick:!1,suppressRowDeselection:!1,suppressRowClickSelection:!1,suppressCellFocus:!1,suppressHeaderFocus:!1,suppressMultiRangeSelection:!1,enableCellTextSelection:!1,enableRangeSelection:!1,enableRangeHandle:!1,enableFillHandle:!1,fillHandleDirection:"xy",suppressClearOnFillReduction:!1,accentedSort:!1,unSortIcon:!1,suppressMultiSort:!1,alwaysMultiSort:!1,suppressMaintainUnsortedOrder:!1,suppressRowHoverHighlight:!1,suppressRowTransform:!1,columnHoverHighlight:!1,deltaSort:!1,enableGroupEdit:!1,groupLockGroupColumns:0,serverSideEnableClientSideSort:!1,suppressServerSideFullWidthLoadingRow:!1,pivotMaxGeneratedColumns:-1,columnMenu:"new",reactiveCustomComponents:!0,suppressSetFilterByDefault:!1,rowNumbers:!1,enableFilterHandlers:!1},op="https://www.ag-grid.com";function go(e,t,...s){e.get("debug")&&console.log("AG Grid: "+t,...s)}function _i(e,...t){ed(()=>console.warn("AG Grid: "+e,...t),e+t?.join(""))}function _o(e,...t){ed(()=>console.error("AG Grid: "+e,...t),e+t?.join(""))}var ip=new Set,Pr={},so={},lr,np=!1,rp=!1,Kb=!1;function qb(e){const[t,s]=e.version.split(".")||[],[o,i]=lr.split(".")||[];return t===o&&s===i}function Yb(e){lr||(lr=e.version);const t=o=>`You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${o} Please update all modules to the same version.`;e.version?qb(e)||_o(t(`'${e.moduleName}' is version ${e.version} but the other modules are version ${lr}.`)):_o(t(`'${e.moduleName}' is incompatible.`));const s=e.validate?.();s&&!s.isValid&&_o(`${s.message}`)}function nn(e,t,s=!1){s||(np=!0),Yb(e);const o=e.rowModels??["all"];ip.add(e);let i;t!==void 0?(rp=!0,so[t]===void 0&&(so[t]={}),i=so[t]):i=Pr;for(const n of o)i[n]===void 0&&(i[n]={}),i[n][e.moduleName]=e;if(e.dependsOn)for(const n of e.dependsOn)nn(n,t,s)}function Zb(e){delete so[e]}function nc(e,t,s){const o=i=>!!Pr[i]?.[e]||!!so[t]?.[i]?.[e];return o(s)||o("all")}function od(){return rp}function Xb(e,t){const s=so[e]??{};return[...Object.values(Pr.all??{}),...Object.values(s.all??{}),...Object.values(Pr[t]??{}),...Object.values(s[t]??{})]}function Qb(){return new Set(ip)}function Jb(e,t){const s=so[e]??{};return[...Object.values(s.all??{}),...Object.values(s[t]??{})]}function e0(){return np}function t0(){return Kb}var s0=class{static register(e){nn(e,void 0)}static registerModules(e){for(const t of e)nn(t,void 0)}},K="34.3.0",yu=2e3,xu=100,ap="_version_",lp=null,jo=`${op}/javascript-data-grid`;function o0(e){lp=e}function i0(e){jo=e}function cp(e,t,s){return lp?.(e,t)??[l0(e,t,s)]}function id(e,t,s,o,i){e(`${o?"warning":"error"} #${t}`,...cp(t,s,i))}function n0(e){if(!e)return String(e);const t={};for(const s of Object.keys(e))typeof e[s]!="object"&&typeof e[s]!="function"&&(t[s]=e[s]);return JSON.stringify(t)}function r0(e){let t=e;return e instanceof Error?t=e.toString():typeof e=="object"&&(t=n0(e)),t}function Mr(e){return e===void 0?"undefined":e===null?"null":e}function rc(e,t){return`${e}?${t.toString()}`}function a0(e,t,s){const o=Array.from(t.entries()).sort((n,r)=>r[1].length-n[1].length);let i=rc(e,t);for(const[n,r]of o){if(n===ap)continue;const a=i.length-s;if(a<=0)break;const l="...",c=a+l.length,d=r.length-c>xu?r.slice(0,r.length-c)+l:r.slice(0,xu)+l;t.set(n,d),i=rc(e,t)}return i}function dp(e,t){const s=new URLSearchParams;if(s.append(ap,K),t)for(const n of Object.keys(t))s.append(n,r0(t[n]));const o=`${jo}/errors/${e}`,i=rc(o,s);return i.length<=yu?i:a0(o,s,yu)}var l0=(e,t,s)=>{const o=dp(e,t);return`${`${s?s+`
2
2
  `:""}Visit ${o}`}${s?"":`
3
3
  Alternatively register the ValidationModule to see the full message in the console.`}`};function G(...e){id(_i,e[0],e[1],!0)}function Pe(...e){id(_o,e[0],e[1],!1)}function Li(e,t,s){id(_o,e,t,!1,s)}function c0(e,t){const s=t[0];return`error #${s} `+cp(s,t[1],e).join(" ")}function es(...e){return c0(void 0,e)}function up(e,t){return e.get("rowModelType")===t}function We(e,t){return up(e,"clientSide")}function yo(e,t){return up(e,"serverSide")}function ot(e,t){return e.get("domLayout")===t}function oo(e){return Ir(e)!==void 0}function hp(e){return typeof e.get("getRowHeight")=="function"}function d0(e,t){return t?!e.get("enableStrictPivotColumnOrder"):e.get("maintainColumnOrder")}function ks(e,t,s=!1,o){const{gos:i,environment:n}=e;if(o==null&&(o=n.getDefaultRowHeight()),hp(i)){if(s)return{height:o,estimated:!0};const l={node:t,data:t.data},c=i.getCallback("getRowHeight")(l);if(ac(c))return c===0&&G(23),{height:Math.max(1,c),estimated:!1}}if(t.detail&&i.get("masterDetail"))return u0(i);const r=i.get("rowHeight");return{height:r&&ac(r)?r:o,estimated:!1}}function u0(e){if(e.get("detailRowAutoHeight"))return{height:1,estimated:!1};const t=e.get("detailRowHeight");return ac(t)?{height:t,estimated:!1}:{height:300,estimated:!1}}function io(e){const{environment:t,gos:s}=e,o=s.get("rowHeight");if(!o||Ge(o))return t.getDefaultRowHeight();const i=t.refreshRowHeightVariable();return i!==-1?i:(G(24),t.getDefaultRowHeight())}function ac(e){return!isNaN(e)&&typeof e=="number"&&isFinite(e)}function gp(e,t,s){const o=t[e.getDomDataKey()];return o?o[s]:void 0}function po(e,t,s,o){const i=e.getDomDataKey();let n=t[i];Ge(n)&&(n={},t[i]=n),n[s]=o}function Uo(e){return e.get("ensureDomOrder")?!1:e.get("animateRows")}function pp(e){return!(e.get("paginateChildRows")||e.get("groupHideOpenParents")||ot(e,"print"))}function Zt(e){return!e.get("autoGroupColumnDef")?.comparator&&!e.get("treeData")}function lc(e){const t=e.get("groupAggFiltering");if(typeof t=="function")return e.getCallback("groupAggFiltering");if(t===!0)return()=>!0}function fp(e){return e.get("grandTotalRow")}function mp(e,t){return t?!1:e.get("groupDisplayType")==="groupRows"}function Cp(e,t,s){return!!t.group&&!t.footer&&mp(e,s)}function si(e){const t=e.getCallback("getRowId");return t===void 0?t:s=>{let o=t(s);return typeof o!="string"&&(ed(()=>G(25,{id:o}),"getRowIdString"),o=String(o)),o}}function h0(e,t){const s=e.get("groupHideParentOfSingleChild");return!!(s===!0||s==="leafGroupsOnly"&&t.leafGroup||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren")&&t.leafGroup)}function g0(e){const t=e.get("maxConcurrentDatasourceRequests");return t>0?t:void 0}function $o(e){return e?.checkboxes??!0}function cr(e){return e?.mode==="multiRow"&&(e.headerCheckbox??!0)}function Tr(e){if(typeof e=="object")return e.checkboxLocation??"selectionColumn"}function cl(e){return e?.hideDisabledCheckboxes??!1}function p0(e){return typeof e.get("rowSelection")!="string"}function As(e){const t=e.get("cellSelection");return t!==void 0?!!t:e.get("enableRangeSelection")}function vp(e){const t=e.get("rowSelection")??"single";if(typeof t=="string"){const s=e.get("suppressRowClickSelection"),o=e.get("suppressRowDeselection");return s&&o?!1:s?"enableDeselection":o?"enableSelection":!0}return t.mode==="singleRow"||t.mode==="multiRow"?t.enableClickSelection??!1:!1}function f0(e){const t=vp(e);return t===!0||t==="enableSelection"}function m0(e){const t=vp(e);return t===!0||t==="enableDeselection"}function cc(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("isRowSelectable"):t?.isRowSelectable}function Ir(e){const t="beanName"in e&&e.beanName==="gos"?e.get("rowSelection"):e.rowSelection;if(typeof t=="string")switch(t){case"multiple":return"multiRow";case"single":return"singleRow";default:return}switch(t?.mode){case"multiRow":case"singleRow":return t.mode;default:return}}function kr(e){return Ir(e)==="multiRow"}function C0(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("rowMultiSelectWithClick"):t?.enableSelectionWithoutKeys??!1}function Ar(e){const t=e.get("rowSelection");if(typeof t=="string"){const s=e.get("groupSelectsChildren"),o=e.get("groupSelectsFiltered");return s&&o?"filteredDescendants":s?"descendants":"self"}return t?.mode==="multiRow"?t.groupSelects:void 0}function wp(e,t=!0){const s=e.get("rowSelection");return typeof s!="object"?t?"all":void 0:s.mode==="multiRow"?s.selectAll:"all"}function v0(e){const t=e.get("rowSelection");return typeof t=="string"?!1:t?.mode==="multiRow"?t.ctrlASelectsRows??!1:!1}function rn(e){const t=Ar(e);return t==="descendants"||t==="filteredDescendants"}function Ru(e){const t=e.get("rowSelection");return typeof t=="object"&&t.masterSelects||"self"}function w0(e){return e.isModuleRegistered("SetFilter")&&!e.get("suppressSetFilterByDefault")}function Ft(e){return e.get("columnMenu")==="legacy"}function b0(e){return!Ft(e)}function S0(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substring(1)}function y0(e,t,s){typeof e!="object"&&(e={});const o={...e};for(const i of s){const n=t[i];typeof n<"u"&&(o[i]=n)}return o}function x0(e,t){if(!e)return;const s={};let o=!1;for(const r of Object.keys(e))s[r]=e[r],o=!0;if(!o)return;const i={type:"gridOptionsChanged",options:s};t.dispatchEvent(i);const n={type:"componentStateChanged",...s};t.dispatchEvent(n)}function de(e,t){return e.addCommon(t)}function dr(e,t){return e[t]??e.gridOptions?.[t]??tp(t)??sp[t]}function Fu({gos:e},t){return t.button===2||t.ctrlKey&&e.get("allowContextMenuWithControlKey")}var R0={resizable:!0,sortable:!0},F0=0;function bp(){return F0++}function Ls(e){return e instanceof xo}var xo=class extends A{constructor(e,t,s,o){super(),this.colDef=e,this.userProvidedColDef=t,this.colId=s,this.primary=o,this.isColumn=!0,this.instanceId=bp(),this.autoHeaderHeight=null,this.moving=!1,this.resizing=!1,this.menuVisible=!1,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.colEventSvc=new uo,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.flex=null,this.colIdSanitised=Bi(s)}destroy(){super.destroy(),this.beans.rowSpanSvc?.deregister(this)}getInstanceId(){return this.instanceId}setState(){const{colDef:e,beans:{sortSvc:t,pinnedCols:s,colFlex:o}}=this;t?.initCol(this);const i=e.hide;i!==void 0?this.visible=!i:this.visible=!e.initialHide,s?.initCol(this),o?.initCol(this)}setColDef(e,t,s){const o=e.spanRows!==this.colDef.spanRows;this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),o&&(this.beans.rowSpanSvc?.deregister(this),this.initRowSpan()),this.dispatchColEvent("colDefChanged",s)}getUserProvidedColDef(){return this.userProvidedColDef}getParent(){return this.parent}getOriginalParent(){return this.originalParent}postConstruct(){this.setState(),this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip(),this.initRowSpan(),this.addPivotListener()}initDotNotation(){const{gos:e,colDef:{field:t,tooltipField:s}}=this,o=e.get("suppressFieldDotNotation");this.fieldContainsDots=q(t)&&t.includes(".")&&!o,this.tooltipFieldContainsDots=q(s)&&s.includes(".")&&!o}initMinAndMaxWidths(){const e=this.colDef;this.minWidth=e.minWidth??this.beans.environment.getDefaultColumnMinWidth(),this.maxWidth=e.maxWidth??Number.MAX_SAFE_INTEGER}initTooltip(){this.beans.tooltipSvc?.initCol(this)}initRowSpan(){this.colDef.spanRows&&this.beans.rowSpanSvc?.register(this)}addPivotListener(){const e=this.beans.pivotColDefSvc,t=this.colDef.pivotValueColumn;!e||!t||this.addManagedListeners(t,{colDefChanged:s=>{const o=e.recreateColDef(this.colDef);this.setColDef(o,o,s.source)}})}resetActualWidth(e){const t=this.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)}calculateColInitialWidth(e){let t;const s=e.width,o=e.initialWidth;return s!=null?t=s:o!=null?t=o:t=200,Math.max(Math.min(t,this.maxWidth),this.minWidth)}isEmptyGroup(){return!1}isRowGroupDisplayed(e){return this.beans.showRowGroupCols?.isRowGroupDisplayed(this,e)??!1}isPrimary(){return this.primary}isFilterAllowed(){return!!this.colDef.filter}isFieldContainsDots(){return this.fieldContainsDots}isTooltipEnabled(){return this.tooltipEnabled}isTooltipFieldContainsDots(){return this.tooltipFieldContainsDots}getHighlighted(){return this.highlighted}__addEventListener(e,t){this.colEventSvc.addEventListener(e,t)}__removeEventListener(e,t){this.colEventSvc.removeEventListener(e,t)}addEventListener(e,t){this.frameworkEventListenerService=this.beans.frameworkOverrides.createLocalEventListenerWrapper?.(this.frameworkEventListenerService,this.colEventSvc);const s=this.frameworkEventListenerService?.wrap(e,t)??t;this.colEventSvc.addEventListener(e,s)}removeEventListener(e,t){const s=this.frameworkEventListenerService?.unwrap(e,t)??t;this.colEventSvc.removeEventListener(e,s)}createColumnFunctionCallbackParams(e){return de(this.gos,{node:e,data:e.data,column:this,colDef:this.colDef})}isSuppressNavigable(e){return this.beans.cellNavigation?.isSuppressNavigable(this,e)??!1}isCellEditable(e){return this.beans.editSvc?.isCellEditable({rowNode:e,column:this})??!1}isSuppressFillHandle(){return!!this.colDef.suppressFillHandle}isAutoHeight(){return!!this.colDef.autoHeight}isAutoHeaderHeight(){return!!this.colDef.autoHeaderHeight}isRowDrag(e){return this.isColumnFunc(e,this.colDef.rowDrag)}isDndSource(e){return this.isColumnFunc(e,this.colDef.dndSource)}isCellCheckboxSelection(e){return this.beans.selectionSvc?.isCellCheckboxSelection(this,e)??!1}isSuppressPaste(e){return this.isColumnFunc(e,this.colDef?.suppressPaste??null)}isResizable(){return!!this.getColDefValue("resizable")}getColDefValue(e){return this.colDef[e]??R0[e]}isColumnFunc(e,t){if(typeof t=="boolean")return t;if(typeof t=="function"){const s=this.createColumnFunctionCallbackParams(e);return t(s)}return!1}createColumnEvent(e,t){return de(this.gos,{type:e,column:this,columns:[this],source:t})}isMoving(){return this.moving}getSort(){return this.sort}isSortable(){return!!this.getColDefValue("sortable")}isSortAscending(){return this.sort==="asc"}isSortDescending(){return this.sort==="desc"}isSortNone(){return Ge(this.sort)}isSorting(){return q(this.sort)}getSortIndex(){return this.sortIndex}isMenuVisible(){return this.menuVisible}getAggFunc(){return this.aggFunc}getLeft(){return this.left}getOldLeft(){return this.oldLeft}getRight(){return this.left+this.actualWidth}setLeft(e,t){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchColEvent("leftChanged",t))}isFilterActive(){return this.filterActive}isHovered(){return G(261),!!this.beans.colHover?.isHovered(this)}setFirstRightPinned(e,t){this.firstRightPinned!==e&&(this.firstRightPinned=e,this.dispatchColEvent("firstRightPinnedChanged",t))}setLastLeftPinned(e,t){this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.dispatchColEvent("lastLeftPinnedChanged",t))}isFirstRightPinned(){return this.firstRightPinned}isLastLeftPinned(){return this.lastLeftPinned}isPinned(){return this.pinned==="left"||this.pinned==="right"}isPinnedLeft(){return this.pinned==="left"}isPinnedRight(){return this.pinned==="right"}getPinned(){return this.pinned}setVisible(e,t){const s=e===!0;this.visible!==s&&(this.visible=s,this.dispatchColEvent("visibleChanged",t)),this.dispatchStateUpdatedEvent("hide")}isVisible(){return this.visible}isSpanHeaderHeight(){return!this.getColDef().suppressSpanHeaderHeight}getFirstRealParent(){let e=this.getOriginalParent();for(;e?.isPadding();)e=e.getOriginalParent();return e}getColumnGroupPaddingInfo(){let e=this.getParent();if(!e?.isPadding())return{numberOfParents:0,isSpanningTotal:!1};const t=e.getPaddingLevel()+1;let s=!0;for(;e;){if(!e.isPadding()){s=!1;break}e=e.getParent()}return{numberOfParents:t,isSpanningTotal:s}}getColDef(){return this.colDef}getDefinition(){return this.colDef}getColumnGroupShow(){return this.colDef.columnGroupShow}getColId(){return this.colId}getId(){return this.colId}getUniqueId(){return this.colId}getActualWidth(){return this.actualWidth}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}createBaseColDefParams(e){return de(this.gos,{node:e,data:e.data,colDef:this.colDef,column:this})}getColSpan(e){if(Ge(this.colDef.colSpan))return 1;const t=this.createBaseColDefParams(e),s=this.colDef.colSpan(t);return Math.max(s,1)}getRowSpan(e){if(Ge(this.colDef.rowSpan))return 1;const t=this.createBaseColDefParams(e),s=this.colDef.rowSpan(t);return Math.max(s,1)}setActualWidth(e,t,s=!1){e=Math.max(e,this.minWidth),e=Math.min(e,this.maxWidth),this.actualWidth!==e&&(this.actualWidth=e,this.flex!=null&&t!=="flex"&&t!=="gridInitializing"&&(this.flex=null),s||this.fireColumnWidthChangedEvent(t)),this.dispatchStateUpdatedEvent("width")}fireColumnWidthChangedEvent(e){this.dispatchColEvent("widthChanged",e)}isGreaterThanMax(e){return e>this.maxWidth}getMinWidth(){return this.minWidth}getMaxWidth(){return this.maxWidth}getFlex(){return this.flex}isRowGroupActive(){return this.rowGroupActive}isPivotActive(){return this.pivotActive}isAnyFunctionActive(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()}isAnyFunctionAllowed(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()}isValueActive(){return this.aggregationActive}isAllowPivot(){return this.colDef.enablePivot===!0}isAllowValue(){return this.colDef.enableValue===!0}isAllowRowGroup(){return this.colDef.enableRowGroup===!0}dispatchColEvent(e,t,s){const o=this.createColumnEvent(e,t);s&&ht(o,s),this.colEventSvc.dispatchEvent(o)}dispatchStateUpdatedEvent(e){this.colEventSvc.dispatchEvent({type:"columnStateUpdated",key:e})}};function rt(e){return e instanceof ur}var ur=class extends A{constructor(e,t,s,o){super(),this.colGroupDef=e,this.groupId=t,this.padding=s,this.level=o,this.isColumn=!1,this.expandable=!1,this.instanceId=bp(),this.expandableListenerRemoveCallback=null,this.expanded=!!e?.openByDefault}destroy(){this.expandableListenerRemoveCallback&&this.reset(null,void 0),super.destroy()}reset(e,t){this.colGroupDef=e,this.level=t,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0}getInstanceId(){return this.instanceId}getOriginalParent(){return this.originalParent}getLevel(){return this.level}isVisible(){return this.children?this.children.some(e=>e.isVisible()):!1}isPadding(){return this.padding}setExpanded(e){this.expanded=e===void 0?!1:e,this.dispatchLocalEvent({type:"expandedChanged"})}isExpandable(){return this.expandable}isExpanded(){return this.expanded}getGroupId(){return this.groupId}getId(){return this.getGroupId()}setChildren(e){this.children=e}getChildren(){return this.children}getColGroupDef(){return this.colGroupDef}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}forEachLeafColumn(e){if(this.children)for(const t of this.children)Ls(t)?e(t):rt(t)&&t.forEachLeafColumn(e)}addLeafColumns(e){if(this.children)for(const t of this.children)Ls(t)?e.push(t):rt(t)&&t.addLeafColumns(e)}getColumnGroupShow(){const e=this.colGroupDef;if(e)return e.columnGroupShow}setupExpandable(){this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();const e=this.onColumnVisibilityChanged.bind(this);for(const t of this.getLeafColumns())t.__addEventListener("visibleChanged",e);this.expandableListenerRemoveCallback=()=>{for(const t of this.getLeafColumns())t.__removeEventListener("visibleChanged",e);this.expandableListenerRemoveCallback=null}}setExpandable(){if(this.isPadding())return;let e=!1,t=!1,s=!1;const o=this.findChildrenRemovingPadding();for(let n=0,r=o.length;n<r;n++){const a=o[n];if(!a.isVisible())continue;const l=a.getColumnGroupShow();l==="open"?(e=!0,s=!0):l==="closed"?(t=!0,s=!0):(e=!0,t=!0)}const i=e&&t&&s;this.expandable!==i&&(this.expandable=i,this.dispatchLocalEvent({type:"expandableChanged"}))}findChildrenRemovingPadding(){const e=[],t=s=>{for(const o of s)rt(o)&&o.isPadding()?t(o.children):e.push(o)};return t(this.children),e}onColumnVisibilityChanged(){this.setExpandable()}},E0={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}};function Eu(e,t,s){const o={},i=e.gos;return Object.assign(o,i.get("defaultColGroupDef")),Object.assign(o,t),i.validateColDef(o,s),o}var D0=class{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;t<e.length;t++)this.existingKeys[e[t]]=!0}getUniqueKey(e,t){e=sc(e);let s=0;for(;;){let o=e??t;if(o?s!==0&&(o+="_"+s):o=s,!this.existingKeys[o]){const i=String(o);return e&&s>0&&G(273,{providedId:e,usedId:i}),this.existingKeys[i]=!0,i}s++}}};function Me(e){if(e?.length)return e[e.length-1]}function Ns(e,t,s){if(e===t)return!0;if(!e||!t)return e==null&&t==null;const o=e.length;if(o!==t.length)return!1;for(let i=0;i<o;i++)if(e[i]!==t[i]&&!s?.(e[i],t[i]))return!1;return!0}function Ei(e,t){if(e)for(const s of e)t(s)}function zt(e,t){const s=e.indexOf(t);s>=0&&e.splice(s,1)}function Du(e,t,s){for(let o=0;o<t.length;o++)zt(e,t[o]);for(let o=t.length-1;o>=0;o--)e.splice(s,0,t[o])}var ha="ag-Grid-AutoColumn",Sp="ag-Grid-SelectionColumn",yp="ag-Grid-RowNumbersColumn";function xp(e){const t=[],s=o=>{for(let i=0;i<o.length;i++){const n=o[i];Ls(n)?t.push(n):rt(n)&&s(n.getChildren())}};return s(e),t}function as(e){return e.reduce((t,s)=>t+s.getActualWidth(),0)}function Lr(e,t,s){const o={};if(!t)return;gs(null,t,n=>{o[n.getInstanceId()]=n}),s&&gs(null,s,n=>{o[n.getInstanceId()]=null});const i=Object.values(o).filter(n=>n!=null);e.context.destroyBeans(i)}function nd(e){return e.getId().startsWith(ha)}function bs(e){return(typeof e=="string"?e:"getColId"in e?e.getColId():e.colId)?.startsWith(Sp)??!1}function hs(e){return(typeof e=="string"?e:"getColId"in e?e.getColId():e.colId)?.startsWith(yp)??!1}function P0(e){return bs(e)||hs(e)}function Or(e){let t=[];return e instanceof Array?t=e:typeof e=="string"&&(t=e.split(",")),t}function M0(e,t){return Ns(e,t,(s,o)=>s.getColId()===o.getColId())}function T0(e){e.map={};for(const t of e.list)e.map[t.getId()]=t}function Ko(e){return e==="optionsUpdated"?"gridOptionsChanged":e}function ji(e,t){const s=e===t,o=e.getColDef()===t,i=e.getColId()==t;return s||o||i}var I0=(e,t)=>(s,o)=>{const i={value1:void 0,value2:void 0};let n=!1;return e&&(e[s]!==void 0&&(i.value1=e[s],n=!0),q(o)&&e[o]!==void 0&&(i.value2=e[o],n=!0)),!n&&t&&(t[s]!==void 0&&(i.value1=t[s]),q(o)&&t[o]!==void 0&&(i.value2=t[o])),i},k0=(e,t)=>{rt(e)&&e.setupExpandable(),e.originalParent=t};function A0(e,t=null,s,o,i){const n=new D0,{existingCols:r,existingGroups:a,existingColKeys:l}=L0(o);n.addExistingKeys(l);const c=Rp(e,t,0,s,r,n,a,i),{colGroupSvc:d}=e,u=d?.findMaxDepth(c,0)??0,h=d?d.balanceColumnTree(c,0,u,n):c;return gs(null,h,k0),{columnTree:h,treeDepth:u}}function L0(e){const t=[],s=[],o=[];return e&&gs(null,e,i=>{if(rt(i)){const n=i;s.push(n)}else{const n=i;o.push(n.getId()),t.push(n)}}),{existingCols:t,existingGroups:s,existingColKeys:o}}function Rp(e,t,s,o,i,n,r,a){if(!t)return[];const{colGroupSvc:l}=e,c=new Array(t.length);for(let d=0;d<c.length;d++){const u=t[d];l&&V0(u)?c[d]=l.createProvidedColumnGroup(o,u,s,i,n,r,a):c[d]=O0(e,o,u,i,n,a)}return c}function O0(e,t,s,o,i,n){const r=H0(s,o);r&&o?.splice(r.idx,1);let a=r?.column;if(a){const l=dc(e,s,a.getColId());a.setColDef(l,s,n),N0(e,a,l,n)}else{const l=i.getUniqueKey(s.colId,s.field),c=dc(e,s,l);a=new xo(c,s,l,t),e.context.createBean(a)}return e.dataTypeSvc?.addColumnListeners(a),a}function Fp(e,t,s,o,i,n,r,a){const{sortSvc:l,pinnedCols:c,colFlex:d}=e;s!==void 0&&t.setVisible(!s,a),l&&(l.updateColSort(t,o,a),i!==void 0&&l.setColSortIndex(t,i)),n!==void 0&&c?.setColPinned(t,n),r!==void 0&&d?.setColFlex(t,r)}function N0(e,t,s,o){Fp(e,t,s.hide,s.sort,s.sortIndex,s.pinned,s.flex,o);const i=t.getFlex();if(!(i!=null&&i>0))if(s.width!=null)t.setActualWidth(s.width,o);else{const n=t.getActualWidth();t.setActualWidth(n,o)}}function H0(e,t){if(t)for(let s=0;s<t.length;s++){const o=t[s].getUserProvidedColDef();if(!o)continue;if(e.colId!=null){if(t[s].getId()===e.colId)return{idx:s,column:t[s]};continue}if(e.field!=null){if(o.field===e.field)return{idx:s,column:t[s]};continue}if(o===e)return{idx:s,column:t[s]}}}function dc(e,t,s,o){const{gos:i,dataTypeSvc:n}=e,r={},a=i.get("defaultColDef");ht(r,a,!1,!0);const l=G0(e,r,t,s);l&&B0(e,l,r);const c=r.cellDataType;ht(r,t,!1,!0),c!==void 0&&(r.cellDataType=c);const d=i.get("autoGroupColumnDef"),u=Zt(i);return t.rowGroup&&d&&u&&ht(r,{sort:d.sort,initialSort:d.initialSort},!1,!0),n&&(n.postProcess(r),n.validateColDef(r)),i.validateColDef(r,s,o),r}function G0(e,t,s,o){const i=e.dataTypeSvc?.updateColDefAndGetColumnType(t,s,o),n=s.type??i??t.type;return t.type=n,n?Or(n):void 0}function B0(e,t,s){if(!t.length)return;const o=Object.assign({},E0),i=e.gos.get("columnTypes")||{};for(const n of Object.keys(i)){const r=i[n];n in o?G(34,{key:n}):(r.type&&G(35),o[n]=r)}for(const n of t){const r=o[n.trim()];r?ht(s,r,!1,!0):G(36,{t:n})}}function V0(e){return e.children!==void 0}function gs(e,t,s){if(t)for(let o=0;o<t.length;o++){const i=t[o];rt(i)&&gs(i,i.getChildren(),s),s(i,e)}}function Ep(e,t){const s=[],o=[],i=[];return e.forEach(r=>{const a=r.getColDef().lockPosition;a==="right"?i.push(r):a==="left"||a===!0?s.push(r):o.push(r)}),t.get("enableRtl")?[...i,...o,...s]:[...s,...o,...i]}function Dp(e,t){let s=!0;return gs(null,t,o=>{if(!rt(o))return;const i=o;if(!i.getColGroupDef()?.marryChildren)return;const a=[];for(const h of i.getLeafColumns()){const p=e.indexOf(h);a.push(p)}const l=Math.max.apply(Math,a),c=Math.min.apply(Math,a),d=l-c,u=i.getLeafColumns().length-1;d>u&&(s=!1)}),s}function Pp(e,t){if(!e||e.length==0)return;const s=t(e[0]);for(let o=1;o<e.length;o++)if(s!==t(e[o]))return;return s}function Mp(e,t,s){if(!t.length)return;const o=t.length===1?t[0]:null,i=Pp(t,n=>n.getPinned());e.dispatchEvent({type:"columnPinned",pinned:i??null,columns:t,column:o,source:s})}function z0(e,t,s){if(!t.length)return;const o=t.length===1?t[0]:null,i=Pp(t,n=>n.isVisible());e.dispatchEvent({type:"columnVisible",visible:i,columns:t,column:o,source:s})}function W0(e,t,s,o){e.dispatchEvent({type:t,columns:s,column:s&&s.length==1?s[0]:null,source:o})}function oi(e,t,s,o,i=null){t?.length&&e.dispatchEvent({type:"columnResized",columns:t,column:t.length===1?t[0]:null,flexColumns:i,finished:s,source:o})}function Vt(e,t,s){const{colModel:o,rowGroupColsSvc:i,pivotColsSvc:n,autoColSvc:r,selectionColSvc:a,colAnimation:l,visibleCols:c,pivotResultCols:d,environment:u,valueColsSvc:h,eventSvc:p,gos:f}=e,C=o.getColDefCols()??[],v=a?.getColumns();if(!C.length&&!v?.length)return!1;if(t?.state&&!t.state.forEach)return G(32),!1;const w=(x,R,E,D,T)=>{if(!x)return;const k=I0(R,t.defaultState),F=k("flex").value1;if(Fp(e,x,k("hide").value1,k("sort").value1,k("sortIndex").value1,k("pinned").value1,F,s),F==null){const M=k("width").value1;if(M!=null){const L=x.getColDef().minWidth??u.getDefaultColumnMinWidth();L!=null&&M>=L&&x.setActualWidth(M,s)}}T||!x.isPrimary()||(h?.syncColumnWithState(x,s,k),i?.syncColumnWithState(x,s,k,E),n?.syncColumnWithState(x,s,k,D))},b=(x,R,E)=>{const D=Tp(e,s),T=R.slice(),k={},F={},M=[],L=[],B=[];let H=0;const Q=i?.columns.slice()??[],ee=n?.columns.slice()??[];for(const z of x){const X=z.colId;if(X.startsWith(ha)){M.push(z),B.push(z);continue}if(bs(X)){L.push(z),B.push(z);continue}const _=E(X);_?(w(_,z,k,F,!1),zt(T,_)):(B.push(z),H+=1)}const O=z=>w(z,null,k,F,!1);T.forEach(O),i?.sortColumns(Pu.bind(i,k,Q)),n?.sortColumns(Pu.bind(n,F,ee)),o.refreshCols(!1,s);const le=(z,X,Y=[])=>{for(const _ of X){const U=z(_.colId);zt(Y,U),w(U,_,null,null,!0)}Y.forEach(O)};return le(z=>r?.getColumn(z)??null,M,r?.getColumns()?.slice()),le(z=>a?.getColumn(z)??null,L,a?.getColumns()?.slice()),j0(t,o,f),c.refresh(s),p.dispatchEvent({type:"columnEverythingChanged",source:s}),D(),{unmatchedAndAutoStates:B,unmatchedCount:H}};l?.start();let{unmatchedAndAutoStates:S,unmatchedCount:y}=b(t.state||[],C,x=>o.getColDefCol(x));if(S.length>0||q(t.defaultState)){const x=d?.getPivotResultCols()?.list??[];y=b(S,x,R=>d?.getPivotResultCol(R)??null).unmatchedCount}return l?.finish(),y===0}function _0(e,t){const{colModel:s,autoColSvc:o,selectionColSvc:i,eventSvc:n,gos:r}=e,a=s.getColDefCols();if(!a?.length)return;const l=s.getColDefColTree(),c=xp(l),d=[];let u=1e3,h=1e3;const p=b=>{const S=Ip(b);Ge(S.rowGroupIndex)&&S.rowGroup&&(S.rowGroupIndex=u++),Ge(S.pivotIndex)&&S.pivot&&(S.pivotIndex=h++),d.push(S)};o?.getColumns()?.forEach(p),i?.getColumns()?.forEach(p),c?.forEach(p),Vt(e,{state:d},t);const f=o?.getColumns()??[],w=[...i?.getColumns()??[],...f,...a].map(b=>({colId:b.colId}));Vt(e,{state:w,applyOrder:!0},t),n.dispatchEvent(de(r,{type:"columnsReset",source:t}))}function Tp(e,t){const{rowGroupColsSvc:s,pivotColsSvc:o,valueColsSvc:i,colModel:n,sortSvc:r,eventSvc:a}=e,l={rowGroupColumns:s?.columns.slice()??[],pivotColumns:o?.columns.slice()??[],valueColumns:i?.columns.slice()??[]},c=Nr(e),d={};for(const u of c)d[u.colId]=u;return()=>{const u=(R,E,D,T)=>{const k=E.map(T),F=D.map(T);if(Ns(k,F))return;const L=new Set(E);for(const H of D)L.delete(H)||L.add(H);const B=[...L];a.dispatchEvent({type:R,columns:B,column:B.length===1?B[0]:null,source:t})},h=R=>{const E=[];return n.forAllCols(D=>{const T=d[D.getColId()];T&&R(T,D)&&E.push(D)}),E},p=R=>R.getColId();u("columnRowGroupChanged",l.rowGroupColumns,s?.columns??[],p),u("columnPivotChanged",l.pivotColumns,o?.columns??[],p);const C=h((R,E)=>{const D=R.aggFunc!=null,T=D!=E.isValueActive(),k=D&&R.aggFunc!=E.getAggFunc();return T||k});C.length>0&&W0(a,"columnValueChanged",C,t),oi(a,h((R,E)=>R.width!=E.getActualWidth()),!0,t),Mp(a,h((R,E)=>R.pinned!=E.getPinned()),t),z0(a,h((R,E)=>R.hide==E.isVisible()),t);const y=h((R,E)=>R.sort!=E.getSort()||R.sortIndex!=E.getSortIndex());y.length>0&&r?.dispatchSortChangedEvents(t,y);const x=Nr(e);$0(c,x,t,n,a)}}function Nr(e){const{colModel:t,rowGroupColsSvc:s,pivotColsSvc:o}=e,i=t.getColDefCols();if(Ge(i)||!t.isAlive())return[];const n=s?.columns,r=o?.columns,a=[],l=d=>{const u=d.isRowGroupActive()&&n?n.indexOf(d):null,h=d.isPivotActive()&&r?r.indexOf(d):null,p=d.isValueActive()?d.getAggFunc():null,f=d.getSort()!=null?d.getSort():null,C=d.getSortIndex()!=null?d.getSortIndex():null;a.push({colId:d.getColId(),width:d.getActualWidth(),hide:!d.isVisible(),pinned:d.getPinned(),sort:f,sortIndex:C,aggFunc:p,rowGroup:d.isRowGroupActive(),rowGroupIndex:u,pivot:d.isPivotActive(),pivotIndex:h,flex:d.getFlex()??null})};t.forAllCols(d=>l(d));const c=new Map(t.getCols().map((d,u)=>[d.getColId(),u]));return a.sort((d,u)=>{const h=c.has(d.colId)?c.get(d.colId):-1,p=c.has(u.colId)?c.get(u.colId):-1;return h-p}),a}function Ip(e){const t=(f,C)=>f??C??null,s=e.getColDef(),o=t(s.sort,s.initialSort),i=t(s.sortIndex,s.initialSortIndex),n=t(s.hide,s.initialHide),r=t(s.pinned,s.initialPinned),a=t(s.width,s.initialWidth),l=t(s.flex,s.initialFlex);let c=t(s.rowGroupIndex,s.initialRowGroupIndex),d=t(s.rowGroup,s.initialRowGroup);c==null&&!d&&(c=null,d=null);let u=t(s.pivotIndex,s.initialPivotIndex),h=t(s.pivot,s.initialPivot);u==null&&!h&&(u=null,h=null);const p=t(s.aggFunc,s.initialAggFunc);return{colId:e.getColId(),sort:o,sortIndex:i,hide:n,pinned:r,width:a,flex:l,rowGroup:d,rowGroupIndex:c,pivot:h,pivotIndex:u,aggFunc:p}}function j0(e,t,s){if(!e.applyOrder||!e.state)return;const o=[];for(const i of e.state)i.colId!=null&&o.push(i.colId);U0(t.cols,o,t,s)}function U0(e,t,s,o){if(e==null)return;let i=[];const n={};for(const a of t){if(n[a])continue;const l=e.map[a];l&&(i.push(l),n[a]=!0)}let r=0;for(const a of e.list){const l=a.getColId();if(n[l]!=null)continue;l.startsWith(ha)?i.splice(r++,0,a):i.push(a)}if(i=Ep(i,o),!Dp(i,s.getColTree())){G(39);return}e.list=i}function $0(e,t,s,o,i){const n={};for(const d of t)n[d.colId]=d;const r={};for(const d of e)n[d.colId]&&(r[d.colId]=!0);const a=e.filter(d=>r[d.colId]),l=t.filter(d=>r[d.colId]),c=[];l.forEach((d,u)=>{const h=a?.[u];if(h&&h.colId!==d.colId){const p=o.getCol(h.colId);p&&c.push(p)}}),c.length&&i.dispatchEvent({type:"columnMoved",columns:c,column:c.length===1?c[0]:null,finished:!0,source:s})}var Pu=(e,t,s,o)=>{const i=e[s.getId()],n=e[o.getId()],r=i!=null,a=n!=null;if(r&&a)return i-n;if(r)return-1;if(a)return 1;const l=t.indexOf(s),c=t.indexOf(o),d=l>=0,u=c>=0;return d&&u?l-c:d?-1:1},K0=class extends A{constructor(){super(...arguments),this.beanName="colModel",this.pivotMode=!1,this.ready=!1,this.changeEventsDispatching=!1}postConstruct(){this.pivotMode=this.gos.get("pivotMode"),this.addManagedPropertyListeners(["groupDisplayType","treeData","treeDataDisplayType","groupHideOpenParents","rowNumbers","hidePaddedHeaderRows"],e=>this.refreshAll(Ko(e.source))),this.addManagedPropertyListeners(["defaultColDef","defaultColGroupDef","columnTypes","suppressFieldDotNotation"],this.recreateColumnDefs.bind(this)),this.addManagedPropertyListener("pivotMode",e=>this.setPivotMode(this.gos.get("pivotMode"),Ko(e.source)))}createColsFromColDefs(e){const{beans:t}=this,{valueCache:s,colAutosize:o,rowGroupColsSvc:i,pivotColsSvc:n,valueColsSvc:r,visibleCols:a,eventSvc:l,groupHierarchyColSvc:c}=t,d=this.colDefs?Tp(t,e):void 0;s?.expire();const u=this.colDefCols?.list,h=this.colDefCols?.tree,p=A0(t,this.colDefs,!0,h,e);Lr(t,this.colDefCols?.tree,p.columnTree);const f=p.columnTree,C=p.treeDepth,v=xp(f),w={};for(const b of v)w[b.getId()]=b;this.colDefCols={tree:f,treeDepth:C,list:v,map:w},this.createColumnsForService([c],this.colDefCols,e),i?.extractCols(e,u),n?.extractCols(e,u),r?.extractCols(e,u),this.ready=!0,this.refreshCols(!0,e),a.refresh(e),l.dispatchEvent({type:"columnEverythingChanged",source:e}),d&&(this.changeEventsDispatching=!0,d(),this.changeEventsDispatching=!1),l.dispatchEvent({type:"newColumnsLoaded",source:e}),e==="gridInitializing"&&o?.applyAutosizeStrategy()}refreshCols(e,t){if(!this.colDefCols)return;const s=this.cols?.tree;this.saveColOrder();const{autoColSvc:o,selectionColSvc:i,rowNumbersSvc:n,quickFilter:r,pivotResultCols:a,showRowGroupCols:l,rowAutoHeight:c,visibleCols:d,colViewport:u,eventSvc:h}=this.beans,p=this.selectCols(a,this.colDefCols);this.createColumnsForService([o,i,n],p,t);const f=d0(this.gos,this.showingPivotResult);(!e||f)&&this.restoreColOrder(p),this.positionLockedCols(p),l?.refresh(),r?.refreshCols(),this.setColSpanActive(),c?.setAutoHeightActive(p),d.clear(),u.clear(),!Ns(s,this.cols.tree)&&h.dispatchEvent({type:"gridColumnsChanged"})}createColumnsForService(e,t,s){for(const o of e)o&&(o.createColumns(t,i=>{this.lastOrder=i(this.lastOrder),this.lastPivotOrder=i(this.lastPivotOrder)},s),o.addColumns(t))}selectCols(e,t){const s=e?.getPivotResultCols()??null;this.showingPivotResult=s!=null;const{map:o,list:i,tree:n,treeDepth:r}=s??t;return this.cols={list:i.slice(),map:{...o},tree:n.slice(),treeDepth:r},s&&(s.list.some(l=>this.cols?.map[l.getColId()]!==void 0)||(this.lastPivotOrder=null)),this.cols}getColsToShow(){if(!this.cols)return[];const{valueColsSvc:e,selectionColSvc:t,gos:s}=this.beans,o=this.isPivotMode()&&!this.showingPivotResult,i=t?.isSelectionColumnEnabled(),n=s.get("rowNumbers"),r=e?.columns;return this.cols.list.filter(l=>{const c=nd(l);if(o){const d=r?.includes(l);return c||d||i&&bs(l)||n&&hs(l)}else return c||l.isVisible()})}refreshAll(e){this.ready&&(this.refreshCols(!1,e),this.beans.visibleCols.refresh(e))}setColsVisible(e,t=!1,s){Vt(this.beans,{state:e.map(o=>({colId:typeof o=="string"?o:o.getColId(),hide:!t}))},s)}restoreColOrder(e){const t=this.showingPivotResult?this.lastPivotOrder:this.lastOrder;if(!t)return;const s=t.filter(u=>e.map[u.getId()]!=null);if(s.length===0)return;if(s.length===e.list.length){e.list=s;return}const o=u=>{const h=u.getOriginalParent();return h?h.getChildren().length>1?!0:o(h):!1};if(!s.some(u=>o(u))){const u=new Set(s);for(const h of e.list)u.has(h)||s.push(h);e.list=s;return}const i=new Map;for(let u=0;u<s.length;u++){const h=s[u];i.set(h,u)}const n=e.list.filter(u=>!i.has(u));if(n.length===0){e.list=s;return}const r=(u,h)=>{const p=h?h.getOriginalParent():u.getOriginalParent();if(!p)return null;let f=null,C=null;for(const v of p.getChildren())if(!(v===h||v===u)){if(v instanceof xo){const w=i.get(v);if(w==null)continue;(f==null||f<w)&&(f=w,C=v);continue}v.forEachLeafColumn(w=>{const b=i.get(w);b!=null&&(f==null||f<b)&&(f=b,C=w)})}return C??r(u,p)},a=[],l=new Map;for(const u of n){const h=r(u,null);if(h==null){a.push(u);continue}const p=l.get(h);p===void 0?l.set(h,u):Array.isArray(p)?p.push(u):l.set(h,[p,u])}const c=new Array(e.list.length);let d=c.length-1;for(let u=a.length-1;u>=0;u--)c[d--]=a[u];for(let u=s.length-1;u>=0;u--){const h=s[u],p=l.get(h);if(p)if(Array.isArray(p))for(let f=p.length-1;f>=0;f--){const C=p[f];c[d--]=C}else c[d--]=p;c[d--]=h}e.list=c}positionLockedCols(e){e.list=Ep(e.list,this.gos)}saveColOrder(){this.showingPivotResult?this.lastPivotOrder=this.cols?.list??null:this.lastOrder=this.cols?.list??null}getColumnDefs(e){return this.colDefCols&&this.beans.colDefFactory?.getColumnDefs(this.colDefCols.list,this.showingPivotResult,this.lastOrder,this.cols?.list??[],e)}setColSpanActive(){this.colSpanActive=!!this.cols?.list.some(e=>e.getColDef().colSpan!=null)}isPivotMode(){return this.pivotMode}setPivotMode(e,t){if(e===this.pivotMode||(this.pivotMode=e,!this.ready))return;this.refreshCols(!1,t);const{visibleCols:s,eventSvc:o}=this.beans;s.refresh(t),o.dispatchEvent({type:"columnPivotModeChanged"})}isPivotActive(){const e=this.beans.pivotColsSvc?.columns;return this.pivotMode&&!!e?.length}recreateColumnDefs(e){if(!this.cols)return;this.beans.autoColSvc?.updateColumns(e);const t=Ko(e.source);this.createColsFromColDefs(t)}setColumnDefs(e,t){this.colDefs=e,this.createColsFromColDefs(t)}destroy(){Lr(this.beans,this.colDefCols?.tree),super.destroy()}getColTree(){return this.cols?.tree??[]}getColDefColTree(){return this.colDefCols?.tree??[]}getColDefCols(){return this.colDefCols?.list??null}getCols(){return this.cols?.list??[]}forAllCols(e){const{pivotResultCols:t,autoColSvc:s,selectionColSvc:o,groupHierarchyColSvc:i}=this.beans;Ei(this.colDefCols?.list,e),Ei(s?.columns?.list,e),Ei(o?.columns?.list,e),Ei(i?.columns?.list,e),Ei(t?.getPivotResultCols()?.list,e)}getColsForKeys(e){return e?e.map(t=>this.getCol(t)).filter(t=>t!=null):[]}getColDefCol(e){return this.colDefCols?.list?this.getColFromCollection(e,this.colDefCols):null}getCol(e){return e==null?null:this.getColFromCollection(e,this.cols)}getColById(e){return this.cols?.map[e]??null}getColFromCollection(e,t){if(t==null)return null;const{map:s,list:o}=t;if(typeof e=="string"&&s[e])return s[e];for(let a=0;a<o.length;a++)if(ji(o[a],e))return o[a];const{autoColSvc:i,selectionColSvc:n,groupHierarchyColSvc:r}=this.beans;return i?.getColumn(e)??n?.getColumn(e)??r?.getColumn(e)??null}},kp=class{constructor(){this.existingIds={}}getInstanceIdForKey(e){const t=this.existingIds[e];let s;return typeof t!="number"?s=0:s=t+1,this.existingIds[e]=s,s}},hi=class extends A{};function vn(e,t,s){return s&&e.addDestroyFunc(()=>t.destroyBean(s)),s??e}var ne=null;function Mu(e){return typeof e?.getGui=="function"}var wn=class{constructor(e){this.cssClassStates={},this.getGui=e}toggleCss(e,t){if(!e)return;if(e.indexOf(" ")>=0){const o=(e||"").split(" ");if(o.length>1){for(const i of o)this.toggleCss(i,t);return}}this.cssClassStates[e]!==t&&e.length&&(this.getGui()?.classList.toggle(e,t),this.cssClassStates[e]=t)}},q0=0,bn=class extends ss{constructor(e,t){super(),this.suppressDataRefValidation=!1,this.displayed=!0,this.visible=!0,this.compId=q0++,this.cssManager=new wn(()=>this.eGui),this.componentSelectors=new Map((t??[]).map(s=>[s.selector,s])),e&&this.setTemplate(e)}preConstruct(){this.wireTemplate(this.getGui());const e="component-"+Object.getPrototypeOf(this)?.constructor?.name;for(const t of this.css??[])this.beans.environment.addGlobalCSS(t,e)}wireTemplate(e,t){e&&this.gos&&(this.applyElementsToComponent(e),this.createChildComponentsFromTags(e,t))}getCompId(){return this.compId}getDataRefAttribute(e){return e.getAttribute?e.getAttribute(Zg):null}applyElementsToComponent(e,t,s,o=null){if(t===void 0&&(t=this.getDataRefAttribute(e)),t){const i=this[t];if(i===ne)this[t]=o??e;else{const n=s?.[t];if(!this.suppressDataRefValidation&&!n)throw new Error(`data-ref: ${t} on ${this.constructor.name} with ${i}`)}}}createChildComponentsFromTags(e,t){const s=[];for(const o of e.childNodes??[])s.push(o);for(const o of s){if(!(o instanceof HTMLElement))continue;const i=this.createComponentFromElement(o,n=>{const r=n.getGui();if(r)for(const a of o.attributes??[])r.setAttribute(a.name,a.value)},t);if(i){if(i.addItems&&o.children.length){this.createChildComponentsFromTags(o,t);const n=Array.prototype.slice.call(o.children);i.addItems(n)}this.swapComponentForNode(i,e,o)}else o.childNodes&&this.createChildComponentsFromTags(o,t)}}createComponentFromElement(e,t,s){const o=e.nodeName,i=this.getDataRefAttribute(e),n=o.indexOf("AG-")===0,r=n?this.componentSelectors.get(o):null;let a=null;if(r){const l=s&&i?s[i]:void 0;a=new r.component(l),a.setParentComponent(this),this.createBean(a,null,t)}else if(n)throw new Error(`selector: ${o}`);return this.applyElementsToComponent(e,i,s,a),a}swapComponentForNode(e,t,s){const o=e.getGui();t.replaceChild(o,s),t.insertBefore(document.createComment(s.nodeName),o),this.addDestroyFunc(this.destroyBean.bind(this,e))}activateTabIndex(e){const t=this.gos.get("tabIndex");e||(e=[]),e.length||e.push(this.getGui());for(const s of e)s.setAttribute("tabindex",t.toString())}setTemplate(e,t,s){let o;typeof e=="string"||e==null?o=Yc(e):o=Cn(e),this.setTemplateFromElement(o,t,s)}setTemplateFromElement(e,t,s,o=!1){if(this.eGui=e,this.suppressDataRefValidation=o,t)for(let i=0;i<t.length;i++){const n=t[i];this.componentSelectors.set(n.selector,n)}this.wireTemplate(e,s)}getGui(){return this.eGui}getFocusableElement(){return this.eGui}getAriaElement(){return this.getFocusableElement()}setParentComponent(e){this.parentComponent=e}getParentComponent(){return this.parentComponent}setGui(e){this.eGui=e}queryForHtmlElement(e){return this.eGui.querySelector(e)}getContainerAndElement(e,t){let s=t;return e==null?null:(s||(s=this.eGui),Qc(e)?{element:e,parent:s}:{element:e.getGui(),parent:s})}prependChild(e,t){const{element:s,parent:o}=this.getContainerAndElement(e,t)||{};!s||!o||o.insertAdjacentElement("afterbegin",s)}appendChild(e,t){const{element:s,parent:o}=this.getContainerAndElement(e,t)||{};!s||!o||o.appendChild(s)}isDisplayed(){return this.displayed}setVisible(e,t={}){if(e!==this.visible){this.visible=e;const{skipAriaHidden:s}=t;Pb(this.eGui,e,{skipAriaHidden:s})}}setDisplayed(e,t={}){if(e!==this.displayed){this.displayed=e;const{skipAriaHidden:s}=t;Be(this.eGui,e,{skipAriaHidden:s});const o={type:"displayChanged",visible:this.displayed};this.dispatchLocalEvent(o)}}destroy(){this.parentComponent&&(this.parentComponent=void 0),super.destroy()}addGuiEventListener(e,t,s){this.eGui.addEventListener(e,t,s),this.addDestroyFunc(()=>this.eGui.removeEventListener(e,t))}addCss(e){this.cssManager.toggleCss(e,!0)}removeCss(e){this.cssManager.toggleCss(e,!1)}toggleCss(e,t){this.cssManager.toggleCss(e,t)}registerCSS(e){this.css||(this.css=[]),this.css.push(e)}},ze=class extends bn{};function Ap(e){return typeof e=="object"&&!!e.component}function Y0(e,t){return new Re(s=>{s(window.setInterval(e,t))})}var Re=class Oi{constructor(t){this.status=0,this.resolution=null,this.waiters=[],t(s=>this.onDone(s),s=>this.onReject(s))}static all(t){return t.length?new Oi(s=>{let o=t.length;const i=new Array(o);t.forEach((n,r)=>{n.then(a=>{i[r]=a,o--,o===0&&s(i)})})}):Oi.resolve()}static resolve(t=null){return new Oi(s=>s(t))}then(t){return new Oi(s=>{this.status===1?s(t(this.resolution)):this.waiters.push(o=>s(t(o)))})}onDone(t){this.status=1,this.resolution=t;for(const s of this.waiters)s(t)}onReject(t){}};function Z0(e){return e?e.prototype&&"getGui"in e.prototype:!1}function Lp(e,t,s,o){const{name:i}=s;let n,r,a,l,c,d;if(t){const u=t,h=u[i+"Selector"],p=h?h(o):null,f=C=>{typeof C=="string"?n=C:C!=null&&C!==!0&&(e.isFrameworkComponent(C)?a=C:r=C)};p?(f(p.component),l=p.params,c=p.popup,d=p.popupPosition):f(u[i])}return{compName:n,jsComp:r,fwComp:a,paramsFromSelector:l,popupFromSelector:c,popupPositionFromSelector:d}}var X0=class extends A{constructor(){super(...arguments),this.beanName="userCompFactory"}wireBeans(e){this.agCompUtils=e.agCompUtils,this.registry=e.registry,this.frameworkCompWrapper=e.frameworkCompWrapper,this.gridOptions=e.gridOptions}getCompDetailsFromGridOptions(e,t,s,o=!1){return this.getCompDetails(this.gridOptions,e,t,s,o)}getCompDetails(e,t,s,o,i=!1){const{name:n,cellRenderer:r}=t;let{compName:a,jsComp:l,fwComp:c,paramsFromSelector:d,popupFromSelector:u,popupPositionFromSelector:h}=Lp(this.beans.frameworkOverrides,e,t,o),p,f;const C=S=>{const y=this.registry.getUserComponent(n,S);y&&(l=y.componentFromFramework?void 0:y.component,c=y.componentFromFramework?y.component:void 0,p=y.params,f=y.processParams)};if(a!=null&&C(a),l==null&&c==null&&s!=null&&C(s),l&&r&&!Z0(l)&&(l=this.agCompUtils?.adaptFunction(t,l)),!l&&!c){const{validation:S}=this.beans;i&&(a!==s||!s)?a?S?.isProvidedUserComp(a)||Pe(50,{compName:a}):s?S||Pe(260,{...this.gos.getModuleErrorParams(),propName:n,compName:s}):Pe(216,{name:n}):s&&!S&&Pe(146,{comp:s});return}const v=this.mergeParams(e,t,o,d,p,f),w=l==null,b=l??c;return{componentFromFramework:w,componentClass:b,params:v,type:t,popupFromSelector:u,popupPositionFromSelector:h,newAgStackInstance:()=>this.newAgStackInstance(b,w,v,t)}}newAgStackInstance(e,t,s,o){const i=!t;let n;i?n=new e:n=this.frameworkCompWrapper.wrap(e,o.mandatoryMethods,o.optionalMethods,o),this.createBean(n);const r=n.init?.(s);return r==null?Re.resolve(n):r.then(()=>n)}mergeParams(e,t,s,o=null,i,n){const r={...s,...i},l=e?.[t.name+"Params"];if(typeof l=="function"){const c=l(s);ht(r,c)}else typeof l=="object"&&ht(r,l);return ht(r,o),n?n(r):r}},Q0={name:"dateComponent",mandatoryMethods:["getDate","setDate"],optionalMethods:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled","refresh"]},J0={name:"dragAndDropImageComponent",mandatoryMethods:["setIcon","setLabel"]},eS={name:"headerComponent",optionalMethods:["refresh"]},tS={name:"innerHeaderComponent"},sS={name:"innerHeaderGroupComponent"},oS={name:"headerGroupComponent"},iS={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},nS={name:"loadingCellRenderer",cellRenderer:!0},rS={name:"cellEditor",mandatoryMethods:["getValue"],optionalMethods:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached","refresh"]},aS={name:"loadingOverlayComponent",optionalMethods:["refresh"]},lS={name:"noRowsOverlayComponent",optionalMethods:["refresh"]},cS={name:"tooltipComponent"},rd={name:"filter",mandatoryMethods:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethods:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged","refresh"]},dS={name:"floatingFilterComponent",mandatoryMethods:["onParentModelChanged"],optionalMethods:["afterGuiAttached","refresh"]},uS={name:"fullWidthCellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},hS={name:"loadingCellRenderer",cellRenderer:!0},gS={name:"groupRowRenderer",optionalMethods:["afterGuiAttached"],cellRenderer:!0},pS={name:"detailCellRenderer",optionalMethods:["refresh"],cellRenderer:!0};function fS(e,t){return e.getCompDetailsFromGridOptions(J0,"agDragAndDropImage",t,!0)}function mS(e,t,s){return e.getCompDetails(t,eS,"agColumnHeader",s)}function CS(e,t,s){return e.getCompDetails(t,tS,void 0,s)}function vS(e,t){const s=t.columnGroup.getColGroupDef();return e.getCompDetails(s,oS,"agColumnGroupHeader",t)}function wS(e,t,s){return e.getCompDetails(t,sS,void 0,s)}function bS(e,t){return e.getCompDetailsFromGridOptions(uS,void 0,t,!0)}function SS(e,t){return e.getCompDetailsFromGridOptions(hS,"agLoadingCellRenderer",t,!0)}function yS(e,t){return e.getCompDetailsFromGridOptions(gS,"agGroupRowRenderer",t,!0)}function xS(e,t){return e.getCompDetailsFromGridOptions(pS,"agDetailCellRenderer",t,!0)}function Tu(e,t,s){return e.getCompDetails(t,iS,void 0,s)}function Iu(e,t,s){return e.getCompDetails(t,nS,"agSkeletonCellRenderer",s,!0)}function Op(e,t,s){return e.getCompDetails(t,rS,"agCellEditor",s,!0)}function RS(e,t,s,o){const i=t.filter;return Ap(i)&&(t={filter:i.component,filterParams:t.filterParams}),e.getCompDetails(t,rd,o,s,!0)}function FS(e,t,s){return e.getCompDetails(t,Q0,"agDateInput",s,!0)}function ES(e,t){return e.getCompDetailsFromGridOptions(aS,"agLoadingOverlay",t,!0)}function DS(e,t){return e.getCompDetailsFromGridOptions(lS,"agNoRowsOverlay",t,!0)}function PS(e,t){return e.getCompDetails(t.colDef,cS,"agTooltipComponent",t,!0)}function MS(e,t,s,o){return e.getCompDetails(t,dS,o,s)}function Np(e,t){return Lp(e,t,rd)}function dl(e,t,s){return e.mergeParams(t,rd,s)}function an(e){const t=e;return t?.getFrameworkComponentInstance!=null?t.getFrameworkComponentInstance():e}function TS(e){return typeof e=="object"&&!!e.getComp}var I={BACKSPACE:"Backspace",TAB:"Tab",ENTER:"Enter",ESCAPE:"Escape",SPACE:" ",LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown",DELETE:"Delete",F2:"F2",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",PAGE_HOME:"Home",PAGE_END:"End",A:"KeyA",C:"KeyC",D:"KeyD",V:"KeyV",X:"KeyX",Y:"KeyY",Z:"KeyZ"},ad=class extends bn{isPopup(){return!0}setParentComponent(e){e.addCss("ag-has-popup"),super.setParentComponent(e)}destroy(){const e=this.parentComponent;e?.isAlive()&&e.getGui().classList.remove("ag-has-popup"),super.destroy()}},ul,hl,gl,pl,uc,hc,fl;function Hs(){return ul===void 0&&(ul=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),ul}function Hp(){return hl===void 0&&(hl=/(firefox)/i.test(navigator.userAgent)),hl}function Gp(){return gl===void 0&&(gl=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),gl}function no(){return pl===void 0&&(pl=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),pl}function gc(e){if(!e)return null;const t=e.tabIndex,s=e.getAttribute("tabIndex");return t===-1&&(s===null||s===""&&!Hp())?null:t.toString()}function IS(){if(fl!==void 0)return fl;if(!document.body)return-1;let e=1e6;const t=Hp()?6e6:1e9,s=document.createElement("div");for(document.body.appendChild(s);;){const o=e*2;if(s.style.height=o+"px",o>t||s.clientHeight!==o)break;e=o}return s.remove(),fl=e,e}function kS(){return hc==null&&Bp(),hc}function Bp(){const e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);let s=t.offsetWidth-t.clientWidth;s===0&&t.clientWidth===0&&(s=null),t.parentNode&&t.remove(),s!=null&&(hc=s,uc=s===0)}function Vp(){return uc==null&&Bp(),uc}var ld="T",AS=new RegExp(`[${ld} ]`),LS=new RegExp(`^\\d{4}-\\d{2}-\\d{2}(${ld}\\d{2}:\\d{2}:\\d{2}\\D?)?`);function Xt(e,t){return e.toString().padStart(t,"0")}function Et(e,t=!0,s=ld){if(!e)return null;let o=[e.getFullYear(),e.getMonth()+1,e.getDate()].map(i=>Xt(i,2)).join("-");return t&&(o+=s+[e.getHours(),e.getMinutes(),e.getSeconds()].map(i=>Xt(i,2)).join(":")),o}function Un(e,t=!0){return e?t?[String(e.getFullYear()),String(e.getMonth()+1),Xt(e.getDate(),2),Xt(e.getHours(),2),`:${Xt(e.getMinutes(),2)}`,`:${Xt(e.getSeconds(),2)}`]:[e.getFullYear(),e.getMonth()+1,Xt(e.getDate(),2)].map(String):null}var ml=e=>{if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"},ku=["January","February","March","April","May","June","July","August","September","October","November","December"],Cl=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function pc(e,t){if(t==null)return Et(e,!1);const s=Xt(e.getFullYear(),4),o={YYYY:()=>s.slice(s.length-4,s.length),YY:()=>s.slice(s.length-2,s.length),Y:()=>`${e.getFullYear()}`,MMMM:()=>ku[e.getMonth()],MMM:()=>ku[e.getMonth()].slice(0,3),MM:()=>Xt(e.getMonth()+1,2),Mo:()=>`${e.getMonth()+1}${ml(e.getMonth()+1)}`,M:()=>`${e.getMonth()+1}`,Do:()=>`${e.getDate()}${ml(e.getDate())}`,DD:()=>Xt(e.getDate(),2),D:()=>`${e.getDate()}`,dddd:()=>Cl[e.getDay()],ddd:()=>Cl[e.getDay()].slice(0,3),dd:()=>Cl[e.getDay()].slice(0,2),do:()=>`${e.getDay()}${ml(e.getDay())}`,d:()=>`${e.getDay()}`},i=new RegExp(Object.keys(o).join("|"),"g");return t.replace(i,n=>n in o?o[n]():n)}function hr(e,t=!1){return!!Ct(e,t)}function OS(e){return hr(e,!0)}function Ct(e,t=!1,s){if(!e||!s&&!LS.test(e))return null;const[o,i]=e.split(AS);if(!o)return null;const n=o.split("-").map(p=>Number.parseInt(p,10));if(n.filter(p=>!isNaN(p)).length!==3)return null;const[r,a,l]=n,c=new Date(r,a-1,l);if(c.getFullYear()!==r||c.getMonth()!==a-1||c.getDate()!==l||!i&&t)return null;if(!i||i==="00:00:00")return c;const[d,u,h]=i.split(":").map(p=>Number.parseInt(p,10));if(d>=0&&d<24)c.setHours(d);else if(t)return null;if(u>=0&&u<60)c.setMinutes(u);else if(t)return null;if(h>=0&&h<60)c.setSeconds(h);else if(t)return null;return c}function fc(e){const{inputValue:t,allSuggestions:s,hideIrrelevant:o,filterByPercentageOfBestMatch:i}=e;let n=(s??[]).map((l,c)=>({value:l,relevance:NS(t,l),idx:c}));if(n.sort((l,c)=>l.relevance-c.relevance),o&&(n=n.filter(l=>l.relevance<Math.max(l.value.length,t.length))),n.length>0&&i&&i>0){const c=n[0].relevance*i;n=n.filter(d=>c-d.relevance<0)}const r=[],a=[];for(const l of n)r.push(l.value),a.push(l.idx);return{values:r,indices:a}}function NS(e,t){e.length<t.length&&([e,t]=[t,e]);let s=[],o=[];const i=e.length,n=t.length;for(let a=0;a<=n;a++)s[a]=a;let r=0;for(let a=1;a<=i;a++){o[0]=a;for(let l=1;l<=n;l++){const c=e[a-1],d=t[l-1];if(c.toLocaleLowerCase()===d.toLocaleLowerCase())++r,c===d&&++r,a>1&&l>1&&e[a-2].toLocaleLowerCase()===t[l-2].toLocaleLowerCase()&&(++r,e[a-2]===t[l-2]&&++r),a<i/2-10&&++r,o[l]=s[l-1];else{const u=o[l-1],h=s[l],p=s[l-1];o[l]=1+Math.min(u,h,p)}}[s,o]=[o,s]}return s[n]/(r+1)}function zp(e){return e.altKey||e.ctrlKey||e.metaKey?!1:e.key?.length===1}var mc=!1,Hr=0;function HS(e){Hr>0||(e.addEventListener("keydown",Gr),e.addEventListener("mousedown",Gr))}function GS(e){Hr>0||(e.removeEventListener("keydown",Gr),e.removeEventListener("mousedown",Gr))}function Gr(e){const t=mc,s=e.type==="keydown";s&&(e.ctrlKey||e.metaKey||e.altKey)||t!==s&&(mc=s)}function BS(e){const t=Qe(e);return HS(t),Hr++,()=>{Hr--,GS(t)}}function VS(){return mc}function qo(e,t,s=!1){const o=Db;let i=Ug;t&&(i+=", "+t),s&&(i+=', [tabindex="-1"]');const n=Array.prototype.slice.apply(e.querySelectorAll(o)).filter(l=>Cs(l)),r=Array.prototype.slice.apply(e.querySelectorAll(i));return r.length?((l,c)=>l.filter(d=>c.indexOf(d)===-1))(n,r):n}function fo(e,t=!1,s=!1,o=!1){const i=qo(e,o?".ag-tab-guard":null,s),n=t?Me(i):i[0];return n?(n.focus({preventScroll:!0}),!0):!1}function Ro(e,t,s,o){const i=qo(t,s?':not([tabindex="-1"])':null),n=Ve(e);let r;s?r=i.findIndex(l=>l.contains(n)):r=i.indexOf(n);const a=r+(o?-1:1);return a<0||a>=i.length?null:i[a]}function Wp(e,t=5){let s=0;for(;e&&gc(e)===null&&++s<=t;)e=e.parentElement;return gc(e)===null?null:e}var zS=".ag-label{white-space:nowrap}:where(.ag-ltr) .ag-label{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-label-align-right) .ag-label{order:1}:where(.ag-ltr) :where(.ag-label-align-right) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-rtl) :where(.ag-label-align-right) .ag-label{margin-right:var(--ag-spacing)}.ag-label-align-right>*{flex:none}.ag-label-align-top{align-items:flex-start;flex-direction:column;>*{align-self:stretch}}.ag-label-ellipsis{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.ag-label-align-top) .ag-label{margin-bottom:calc(var(--ag-spacing)*.5)}",WS=class extends bn{constructor(e,t,s){super(t,s),this.labelSeparator="",this.labelAlignment="left",this.disabled=!1,this.label="",this.config=e||{},this.registerCSS(zS)}postConstruct(){this.addCss("ag-labeled"),this.eLabel.classList.add("ag-label");const{labelSeparator:e,label:t,labelWidth:s,labelAlignment:o,disabled:i}=this.config;i!=null&&this.setDisabled(i),e!=null&&this.setLabelSeparator(e),t!=null&&this.setLabel(t),s!=null&&this.setLabelWidth(s),this.setLabelAlignment(o||this.labelAlignment),this.refreshLabel()}refreshLabel(){const{label:e,eLabel:t}=this;mt(t),typeof e=="string"?t.innerText=e+this.labelSeparator:e&&t.appendChild(e),e===""?(Be(t,!1),ho(t,"presentation")):(Be(t,!0),ho(t,null))}setLabelSeparator(e){return this.labelSeparator===e?this:(this.labelSeparator=e,this.label!=null&&this.refreshLabel(),this)}getLabelId(){const e=this.eLabel;return e.id=e.id||`ag-${this.getCompId()}-label`,e.id}getLabel(){return this.label}setLabel(e){return this.label===e?this:(this.label=e,this.refreshLabel(),this)}setLabelAlignment(e){const s=this.getGui().classList;return s.toggle("ag-label-align-left",e==="left"),s.toggle("ag-label-align-right",e==="right"),s.toggle("ag-label-align-top",e==="top"),this}setLabelEllipsis(e){return this.eLabel.classList.toggle("ag-label-ellipsis",e),this}setLabelWidth(e){return this.label==null?this:(Dr(this.eLabel,e),this)}setDisabled(e){e=!!e;const t=this.getGui();return tn(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this}isDisabled(){return!!this.disabled}},_p=class extends WS{constructor(e,t,s,o){super(e,t,s),this.className=o}postConstruct(){super.postConstruct();const{width:e,value:t,onValueChange:s}=this.config;e!=null&&this.setWidth(e),t!=null&&this.setValue(t),s!=null&&this.onValueChange(s),this.className&&this.addCss(this.className),this.refreshAriaLabelledBy()}setLabel(e){return super.setLabel(e),this.refreshAriaLabelledBy(),this}refreshAriaLabelledBy(){const e=this.getAriaElement(),t=this.getLabelId(),s=this.getLabel();s==null||s==""||hb(e)!==null?en(e,""):en(e,t??"")}setAriaLabel(e){return ti(this.getAriaElement(),e),this.refreshAriaLabelledBy(),this}onValueChange(e){return this.addManagedListeners(this,{fieldValueChanged:()=>e(this.getValue())}),this}getWidth(){return this.getGui().clientWidth}setWidth(e){return Jt(this.getGui(),e),this}getPreviousValue(){return this.previousValue}getValue(){return this.value}setValue(e,t){return this.value===e?this:(this.previousValue=this.value,this.value=e,t||this.dispatchLocalEvent({type:"fieldValueChanged"}),this)}};function _S(e){return{tag:"div",role:"presentation",children:[{tag:"div",ref:"eLabel",cls:"ag-input-field-label"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-input-wrapper",role:"presentation",children:[{tag:e,ref:"eInput",cls:"ag-input-field-input"}]}]}}var Xs=class extends _p{constructor(e,t,s="text",o="input"){super(e,e?.template??_S(o),[],t),this.inputType=s,this.displayFieldTag=o,this.eLabel=ne,this.eWrapper=ne,this.eInput=ne}postConstruct(){super.postConstruct(),this.setInputType(this.inputType);const{eLabel:e,eWrapper:t,eInput:s,className:o}=this;e.classList.add(`${o}-label`),t.classList.add(`${o}-input-wrapper`),s.classList.add(`${o}-input`),this.addCss("ag-input-field"),s.id=s.id||`ag-${this.getCompId()}-input`;const{inputName:i,inputWidth:n}=this.config;i!=null&&this.setInputName(i),n!=null&&this.setInputWidth(n),this.addInputListeners(),this.activateTabIndex([s])}addInputListeners(){this.addManagedElementListeners(this.eInput,{input:e=>this.setValue(e.target.value)})}setInputType(e){this.displayFieldTag==="input"&&(this.inputType=e,Rt(this.eInput,"type",e))}getInputElement(){return this.eInput}setInputWidth(e){return Dr(this.eWrapper,e),this}setInputName(e){return this.getInputElement().setAttribute("name",e),this}getFocusableElement(){return this.eInput}setMaxLength(e){const t=this.eInput;return t.maxLength=e,this}setInputPlaceholder(e){return Rt(this.eInput,"placeholder",e),this}setInputAriaLabel(e){return ti(this.eInput,e),this.refreshAriaLabelledBy(),this}setDisabled(e){return tn(this.eInput,e),super.setDisabled(e)}setAutoComplete(e){if(e===!0)Rt(this.eInput,"autocomplete",null);else{const t=typeof e=="string"?e:"off";Rt(this.eInput,"autocomplete",t)}return this}},cd=class extends Xs{constructor(e,t="ag-checkbox",s="checkbox"){super(e,t,s),this.labelAlignment="right",this.selected=!1,this.readOnly=!1,this.passive=!1}postConstruct(){super.postConstruct();const{readOnly:e,passive:t}=this.config;typeof e=="boolean"&&this.setReadOnly(e),typeof t=="boolean"&&this.setPassive(t)}addInputListeners(){this.addManagedElementListeners(this.eInput,{click:this.onCheckboxClick.bind(this)}),this.addManagedElementListeners(this.eLabel,{click:this.toggle.bind(this)})}getNextValue(){return this.selected===void 0?!0:!this.selected}setPassive(e){this.passive=e}isReadOnly(){return this.readOnly}setReadOnly(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e}setDisabled(e){return this.eWrapper.classList.toggle("ag-disabled",e),super.setDisabled(e)}toggle(){if(this.eInput.disabled)return;const e=this.isSelected(),t=this.getNextValue();this.passive?this.dispatchChange(t,e):this.setValue(t)}getValue(){return this.isSelected()}setValue(e,t){return this.refreshSelectedClass(e),this.setSelected(e,t),this}setName(e){const t=this.getInputElement();return t.name=e,this}isSelected(){return this.selected}setSelected(e,t){if(this.isSelected()===e)return;this.previousValue=this.isSelected(),e=this.selected=typeof e=="boolean"?e:void 0;const s=this.eInput;s.checked=e,s.indeterminate=e===void 0,t||this.dispatchChange(this.selected,this.previousValue)}dispatchChange(e,t,s){this.dispatchLocalEvent({type:"fieldValueChanged",selected:e,previousValue:t,event:s});const o=this.getInputElement();this.eventSvc.dispatchEvent({type:"checkboxChanged",id:o.id,name:o.name,selected:e,previousValue:t})}onCheckboxClick(e){if(this.passive||this.eInput.disabled)return;const t=this.isSelected(),s=this.selected=e.target.checked;this.refreshSelectedClass(s),this.dispatchChange(s,t,e)}refreshSelectedClass(e){const t=this.eWrapper.classList;t.toggle("ag-checked",e===!0),t.toggle("ag-indeterminate",e==null)}},dd={selector:"AG-CHECKBOX",component:cd},jS=class extends cd{constructor(e){super(e,"ag-radio-button","radio")}isSelected(){return this.eInput.checked}toggle(){this.eInput.disabled||this.isSelected()||this.setValue(!0)}addInputListeners(){super.addInputListeners(),this.addManagedEventListeners({checkboxChanged:this.onChange.bind(this)})}onChange(e){const t=this.eInput;e.selected&&e.name&&t.name&&t.name===e.name&&e.id&&t.id!==e.id&&this.setValue(!1,!0)}},Fo=class extends Xs{constructor(e,t="ag-text-field",s="text"){super(e,t,s)}postConstruct(){super.postConstruct(),this.config.allowedCharPattern&&this.preventDisallowedCharacters()}setValue(e,t){const s=this.eInput;return s.value!==e&&(s.value=q(e)?e:""),super.setValue(e,t)}setStartValue(e){this.setValue(e,!0)}preventDisallowedCharacters(){const e=new RegExp(`[${this.config.allowedCharPattern}]`),t=s=>{zp(s)&&s.key&&!e.test(s.key)&&s.preventDefault()};this.addManagedListeners(this.eInput,{keydown:t,paste:s=>{s.clipboardData?.getData("text")?.split("").some(i=>!e.test(i))&&s.preventDefault()}})}},ga={selector:"AG-INPUT-TEXT-FIELD",component:Fo},US=class extends Xs{constructor(e){super(e,"ag-text-area",null,"textarea")}setValue(e,t){const s=super.setValue(e,t);return this.eInput.value=e,s}setCols(e){return this.eInput.cols=e,this}setRows(e){return this.eInput.rows=e,this}},$S={selector:"AG-INPUT-TEXT-AREA",component:US},ud=class extends Fo{constructor(e){super(e,"ag-number-field","number")}postConstruct(){super.postConstruct();const e=this.eInput;this.addManagedListeners(e,{blur:()=>{const n=Number.parseFloat(e.value),r=isNaN(n)?"":this.normalizeValue(n.toString());this.value!==r&&this.setValue(r)},wheel:this.onWheel.bind(this)}),e.step="any";const{precision:t,min:s,max:o,step:i}=this.config;typeof t=="number"&&this.setPrecision(t),typeof s=="number"&&this.setMin(s),typeof o=="number"&&this.setMax(o),typeof i=="number"&&this.setStep(i)}onWheel(e){Ve(this.beans)===this.eInput&&e.preventDefault()}normalizeValue(e){return e===""?"":(this.precision!=null&&(e=this.adjustPrecision(e)),e)}adjustPrecision(e,t){const s=this.precision;if(s==null)return e;if(t){const i=Number.parseFloat(e).toFixed(s);return Number.parseFloat(i).toString()}const o=String(e).split(".");if(o.length>1){if(o[1].length<=s)return e;if(s>0)return`${o[0]}.${o[1].slice(0,s)}`}return o[0]}setMin(e){return this.min===e?this:(this.min=e,Rt(this.eInput,"min",e),this)}setMax(e){return this.max===e?this:(this.max=e,Rt(this.eInput,"max",e),this)}setPrecision(e){return this.precision=e,this}setStep(e){return this.step===e?this:(this.step=e,Rt(this.eInput,"step",e),this)}setValue(e,t){return this.setValueOrInputValue(s=>super.setValue(s,t),()=>this,e)}setStartValue(e){return this.setValueOrInputValue(t=>super.setValue(t,!0),t=>{this.eInput.value=t},e)}setValueOrInputValue(e,t,s){if(q(s)){let o=this.isScientificNotation(s);if(o&&this.eInput.validity.valid)return e(s);if(!o){s=this.adjustPrecision(s);const i=this.normalizeValue(s);o=s!=i}if(o)return t(s)}return e(s)}getValue(){const e=this.eInput;if(!e.validity.valid)return;const t=e.value;return this.isScientificNotation(t)?this.adjustPrecision(t,!0):super.getValue()}isScientificNotation(e){return typeof e=="string"&&e.includes("e")}},KS={selector:"AG-INPUT-NUMBER-FIELD",component:ud},qS=class extends Fo{constructor(e){super(e,"ag-date-field","date")}postConstruct(){super.postConstruct();const e=Hs();this.addManagedListeners(this.eInput,{wheel:this.onWheel.bind(this),mousedown:()=>{this.isDisabled()||e||this.eInput.focus()}}),this.eInput.step="any"}onWheel(e){Ve(this.beans)===this.eInput&&e.preventDefault()}setMin(e){const t=e instanceof Date?Et(e??null,!!this.includeTime)??void 0:e;return this.min===t?this:(this.min=t,Rt(this.eInput,"min",t),this)}setMax(e){const t=e instanceof Date?Et(e??null,!!this.includeTime)??void 0:e;return this.max===t?this:(this.max=t,Rt(this.eInput,"max",t),this)}setStep(e){return this.step===e?this:(this.step=e,Rt(this.eInput,"step",e),this)}setIncludeTime(e){return this.includeTime===e?this:(this.includeTime=e,super.setInputType(e?"datetime-local":"date"),e&&this.setStep(1),this)}getDate(){if(this.eInput.validity.valid)return Ct(this.getValue())??void 0}setDate(e,t){this.setValue(Et(e??null,this.includeTime),t)}},jp={selector:"AG-INPUT-DATE-FIELD",component:qS},YS=".ag-list-item{align-items:center;display:flex;height:var(--ag-list-item-height);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&.ag-active-item{background-color:var(--ag-row-hover-color)}}",ZS="ag-active-item",XS=(e,t)=>({tag:"div",cls:`ag-list-item ag-${e}-list-item`,attrs:{role:"option"},children:[{tag:"span",ref:"eText",children:t}]}),QS=class extends bn{constructor(e,t,s){super(XS(e,t)),this.label=t,this.value=s,this.eText=ne}postConstruct(){this.createTooltip(),this.addEventListeners()}setHighlighted(e){const t=this.getGui();t.classList.toggle(ZS,e),jg(t,e),this.dispatchLocalEvent({type:"itemHighlighted",highlighted:e})}getHeight(){return this.getGui().clientHeight}setIndex(e,t){const s=this.getGui();vb(s,e),Cb(s,t)}createTooltip(){const e={getTooltipValue:()=>this.label,getGui:()=>this.getGui(),getLocation:()=>"UNKNOWN",shouldDisplayTooltip:()=>Zc(this.eText)},t=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("highlightTooltipFeature",!1,e,this));t&&(this.tooltipFeature=t)}addEventListeners(){const e=this.getParentComponent();e&&(this.addGuiEventListener("mouseover",()=>{e.highlightItem(this)}),this.addGuiEventListener("mousedown",t=>{t.preventDefault(),t.stopPropagation(),e.setValue(this.value)}))}},JS=class extends bn{constructor(e="default"){super({tag:"div",cls:`ag-list ag-${e}-list`}),this.cssIdentifier=e,this.options=[],this.listItems=[],this.highlightedItem=null,this.registerCSS(YS)}postConstruct(){const e=this.getGui();this.addManagedElementListeners(e,{mouseleave:()=>this.clearHighlighted()})}handleKeyDown(e){const t=e.key;switch(t){case I.ENTER:if(!this.highlightedItem)this.setValue(this.getValue());else{const s=this.listItems.indexOf(this.highlightedItem);this.setValueByIndex(s)}break;case I.DOWN:case I.UP:e.preventDefault(),this.navigate(t);break;case I.PAGE_DOWN:case I.PAGE_UP:case I.PAGE_HOME:case I.PAGE_END:e.preventDefault(),this.navigateToPage(t);break}}addOptions(e){for(const t of e)this.addOption(t);return this}addOption(e){const{value:t,text:s}=e,o=s??t;return this.options.push({value:t,text:o}),this.renderOption(t,o),this.updateIndices(),this}clearOptions(){this.options=[],this.reset(!0);for(const e of this.listItems)e.destroy();mt(this.getGui()),this.listItems=[],this.refreshAriaRole()}setValue(e,t){if(this.value===e)return this.fireItemSelected(),this;if(e==null)return this.reset(t),this;const s=this.options.findIndex(o=>o.value===e);if(s!==-1){const o=this.options[s];this.value=o.value,this.displayValue=o.text,this.highlightItem(this.listItems[s]),t||this.fireChangeEvent()}return this}setValueByIndex(e){return this.setValue(this.options[e].value)}getValue(){return this.value}getDisplayValue(){return this.displayValue}refreshHighlighted(){this.clearHighlighted();const e=this.options.findIndex(t=>t.value===this.value);e!==-1&&this.highlightItem(this.listItems[e])}highlightItem(e){const t=e.getGui();if(!Cs(t))return;this.clearHighlighted(),e.setHighlighted(!0),this.highlightedItem=e;const s=this.getGui(),{scrollTop:o,clientHeight:i}=s,{offsetTop:n,offsetHeight:r}=t;(n+r>o+i||n<o)&&t.scrollIntoView({block:"nearest"})}hideItemTooltip(){this.highlightedItem?.tooltipFeature?.attemptToHideTooltip()}destroy(){this.hideItemTooltip(),super.destroy()}reset(e){this.value=null,this.displayValue=null,this.clearHighlighted(),e||this.fireChangeEvent()}clearHighlighted(){this.highlightedItem?.setHighlighted(!1),this.highlightedItem=null}renderOption(e,t){const s=new QS(this.cssIdentifier,t,e);s.setParentComponent(this);const o=this.createManagedBean(s);this.listItems.push(o),this.getGui().appendChild(o.getGui())}navigate(e){const t=e===I.DOWN;let s;const{listItems:o,highlightedItem:i}=this;if(!i)s=t?o[0]:Me(o);else{let r=o.indexOf(i)+(t?1:-1);r=Math.min(Math.max(r,0),o.length-1),s=o[r]}this.highlightItem(s)}navigateToPage(e){const{listItems:t,highlightedItem:s}=this;if(!s||t.length===0)return;const o=t.indexOf(s),i=this.options.length-1,n=t[0].getHeight(),r=Math.floor(this.getGui().clientHeight/n);let a=-1;e===I.PAGE_HOME?a=0:e===I.PAGE_END?a=i:e===I.PAGE_DOWN?a=Math.min(o+r,i):e===I.PAGE_UP&&(a=Math.max(o-r,0)),a!==-1&&this.highlightItem(t[a])}refreshAriaRole(){ho(this.getGui(),this.options.length===0?"presentation":"listbox")}updateIndices(){this.refreshAriaRole();const e=this.listItems,t=e.length;e.forEach((s,o)=>{s.setIndex(o+1,t)})}fireChangeEvent(){this.dispatchLocalEvent({type:"fieldValueChanged"}),this.fireItemSelected()}fireItemSelected(){this.dispatchLocalEvent({type:"selectedItem"})}},ey=".ag-picker-field-display{flex:1 1 auto}.ag-picker-field{align-items:center;display:flex}.ag-picker-field-icon{border:0;cursor:pointer;display:flex;margin:0;padding:0}.ag-picker-field-wrapper{background-color:var(--ag-picker-button-background-color);border:var(--ag-picker-button-border);border-radius:5px;min-height:max(var(--ag-list-item-height),calc(var(--ag-spacing)*4));overflow:hidden;&:where(.ag-picker-has-focus),&:where(:focus-within){background-color:var(--ag-picker-button-focus-background-color);border:var(--ag-picker-button-focus-border);box-shadow:var(--ag-focus-shadow);&:where(.invalid){box-shadow:var(--ag-focus-error-shadow)}}&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&:disabled{opacity:.5}}",ty={tag:"div",cls:"ag-picker-field",role:"presentation",children:[{tag:"div",ref:"eLabel"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-picker-field-wrapper ag-picker-collapsed",children:[{tag:"div",ref:"eDisplayField",cls:"ag-picker-field-display"},{tag:"div",ref:"eIcon",cls:"ag-picker-field-icon",attrs:{"aria-hidden":"true"}}]}]},sy=class extends _p{constructor(e){if(super(e,e?.template||ty,e?.agComponents||[],e?.className),this.isPickerDisplayed=!1,this.skipClick=!1,this.pickerGap=4,this.hideCurrentPicker=null,this.eLabel=ne,this.eWrapper=ne,this.eDisplayField=ne,this.eIcon=ne,this.registerCSS(ey),this.ariaRole=e?.ariaRole,this.onPickerFocusIn=this.onPickerFocusIn.bind(this),this.onPickerFocusOut=this.onPickerFocusOut.bind(this),!e)return;const{pickerGap:t,maxPickerHeight:s,variableWidth:o,minPickerWidth:i,maxPickerWidth:n}=e;t!=null&&(this.pickerGap=t),this.variableWidth=!!o,s!=null&&this.setPickerMaxHeight(s),i!=null&&this.setPickerMinWidth(i),n!=null&&this.setPickerMaxWidth(n)}postConstruct(){super.postConstruct(),this.setupAria();const e=`ag-${this.getCompId()}-display`;this.eDisplayField.setAttribute("id",e);const t=this.getAriaElement();this.addManagedElementListeners(t,{keydown:this.onKeyDown.bind(this)}),this.addManagedElementListeners(this.eLabel,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)}),this.addManagedElementListeners(this.eWrapper,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)});const{pickerIcon:s,inputWidth:o}=this.config;if(s){const i=this.beans.iconSvc.createIconNoSpan(s);i&&this.eIcon.appendChild(i)}o!=null&&this.setInputWidth(o)}setupAria(){const e=this.getAriaElement();e.setAttribute("tabindex",this.gos.get("tabIndex").toString()),oc(e,!1),this.ariaRole&&ho(e,this.ariaRole)}onLabelOrWrapperMouseDown(e){if(e){const t=this.getFocusableElement();if(t!==this.eWrapper&&e?.target===t)return;e.preventDefault(),this.getFocusableElement().focus()}if(this.skipClick){this.skipClick=!1;return}this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())}onKeyDown(e){switch(e.key){case I.UP:case I.DOWN:case I.ENTER:case I.SPACE:e.preventDefault(),this.onLabelOrWrapperMouseDown();break;case I.ESCAPE:this.isPickerDisplayed&&(e.preventDefault(),e.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker());break}}showPicker(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());const e=this.pickerComponent.getGui();e.addEventListener("focusin",this.onPickerFocusIn),e.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)}renderAndPositionPicker(){const e=this.pickerComponent.getGui();this.gos.get("suppressScrollWhenPopupsAreOpen")||([this.destroyMouseWheelFunc]=this.addManagedEventListeners({bodyScroll:()=>{this.hidePicker()}}));const t=this.getLocaleTextFunc(),{config:{pickerAriaLabelKey:s,pickerAriaLabelValue:o,modalPicker:i=!0},maxPickerHeight:n,minPickerWidth:r,maxPickerWidth:a,variableWidth:l,beans:c,eWrapper:d}=this,u={modal:i,eChild:e,closeOnEsc:!0,closedCallback:()=>{const C=Ng(c);this.beforeHidePicker(),C&&this.isAlive()&&this.getFocusableElement().focus()},ariaLabel:t(s,o),anchorToElement:d};e.style.position="absolute";const h=c.popupSvc,p=h.addPopup(u);l?(r&&(e.style.minWidth=r),e.style.width=Xc(Rr(d)),a&&(e.style.maxWidth=a)):Dr(e,a??Rr(d));const f=n??`${qc(h.getPopupParent())}px`;return e.style.setProperty("max-height",f),this.alignPickerToComponent(),p.hideFunc}alignPickerToComponent(){if(!this.pickerComponent)return;const{pickerGap:e,config:{pickerType:t},beans:{popupSvc:s,gos:o},eWrapper:i,pickerComponent:n}=this,r=o.get("enableRtl")?"right":"left";s.positionPopupByComponent({type:t,eventSource:i,ePopup:n.getGui(),position:"under",alignSide:r,keepWithinBounds:!0,nudgeY:e})}beforeHidePicker(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);const e=this.pickerComponent.getGui();e.removeEventListener("focusin",this.onPickerFocusIn),e.removeEventListener("focusout",this.onPickerFocusOut),this.isPickerDisplayed=!1,this.pickerComponent=void 0,this.hideCurrentPicker=null}toggleExpandedStyles(e){if(!this.isAlive())return;const t=this.getAriaElement();oc(t,e);const s=this.eWrapper.classList;s.toggle("ag-picker-expanded",e),s.toggle("ag-picker-collapsed",!e)}onPickerFocusIn(){this.togglePickerHasFocus(!0)}onPickerFocusOut(e){this.pickerComponent?.getGui().contains(e.relatedTarget)||this.togglePickerHasFocus(!1)}togglePickerHasFocus(e){this.pickerComponent&&this.eWrapper.classList.toggle("ag-picker-has-focus",e)}hidePicker(){this.hideCurrentPicker&&(this.hideCurrentPicker(),this.dispatchLocalEvent({type:"pickerHidden"}))}setInputWidth(e){return Dr(this.eWrapper,e),this}getFocusableElement(){return this.eWrapper}setPickerGap(e){return this.pickerGap=e,this}setPickerMinWidth(e){return typeof e=="number"&&(e=`${e}px`),this.minPickerWidth=e??void 0,this}setPickerMaxWidth(e){return typeof e=="number"&&(e=`${e}px`),this.maxPickerWidth=e??void 0,this}setPickerMaxHeight(e){return typeof e=="number"&&(e=`${e}px`),this.maxPickerHeight=e??void 0,this}destroy(){this.hidePicker(),super.destroy()}},oy=".ag-select{align-items:center;display:flex;&.ag-disabled{opacity:.5}}:where(.ag-select){.ag-picker-field-wrapper{cursor:default}&.ag-disabled .ag-picker-field-wrapper:focus{box-shadow:none}&:not(.ag-cell-editor,.ag-label-align-top){min-height:var(--ag-list-item-height)}.ag-picker-field-display{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-picker-field-icon{align-items:center;display:flex}}:where(.ag-ltr) :where(.ag-select){.ag-picker-field-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding)/2);padding-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-select){.ag-picker-field-wrapper{padding-left:var(--ag-spacing);padding-right:calc(var(--ag-cell-horizontal-padding)/2)}}.ag-select-list{background-color:var(--ag-picker-list-background-color);border:var(--ag-picker-list-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);overflow:hidden auto}.ag-select-list-item{cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;:where(span){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}:where(.ag-ltr) .ag-select-list-item{padding-left:calc(var(--ag-cell-horizontal-padding)/2)}:where(.ag-rtl) .ag-select-list-item{padding-right:calc(var(--ag-cell-horizontal-padding)/2)}",hd=class extends sy{constructor(e){super({pickerAriaLabelKey:"ariaLabelSelectField",pickerAriaLabelValue:"Select Field",pickerType:"ag-list",className:"ag-select",pickerIcon:"selectOpen",ariaRole:"combobox",...e}),this.registerCSS(oy)}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{shouldDisplayTooltip:rr(()=>this.eDisplayField),getGui:()=>this.getGui()})),super.postConstruct(),this.createListComponent(),this.eWrapper.tabIndex=this.gos.get("tabIndex");const{options:e,value:t,placeholder:s}=this.config;e!=null&&this.addOptions(e),t!=null&&this.setValue(t,!0),s&&t==null&&(this.eDisplayField.textContent=s),this.addManagedElementListeners(this.eWrapper,{focusout:this.onWrapperFocusOut.bind(this)})}onWrapperFocusOut(e){this.eWrapper.contains(e.relatedTarget)||this.hidePicker()}createListComponent(){const e=this.createBean(new JS("select"));this.listComponent=e,e.setParentComponent(this);const t=e.getAriaElement(),s=`ag-select-list-${e.getCompId()}`;t.setAttribute("id",s),Eb(this.getAriaElement(),t),e.addManagedElementListeners(e.getGui(),{mousedown:o=>{o?.preventDefault()}}),e.addManagedListeners(e,{selectedItem:()=>{this.hidePicker(),this.dispatchLocalEvent({type:"selectedItem"})},fieldValueChanged:()=>{this.listComponent&&(this.setValue(this.listComponent.getValue(),!1,!0),this.hidePicker())}})}createPickerComponent(){return this.listComponent}beforeHidePicker(){this.listComponent?.hideItemTooltip(),super.beforeHidePicker()}onKeyDown(e){const{key:t}=e;switch(t===I.TAB&&this.hidePicker(),t){case I.ENTER:case I.UP:case I.DOWN:case I.PAGE_UP:case I.PAGE_DOWN:case I.PAGE_HOME:case I.PAGE_END:e.preventDefault(),this.isPickerDisplayed?this.listComponent?.handleKeyDown(e):super.onKeyDown(e);break;case I.ESCAPE:super.onKeyDown(e);break;case I.SPACE:this.isPickerDisplayed?e.preventDefault():super.onKeyDown(e);break}}showPicker(){const e=this.listComponent;e&&(super.showPicker(),e.refreshHighlighted())}addOptions(e){for(const t of e)this.addOption(t);return this}addOption(e){return this.listComponent.addOption(e),this}clearOptions(){return this.listComponent?.clearOptions(),this.setValue(void 0,!0),this}setValue(e,t,s){const{listComponent:o,config:{placeholder:i},eDisplayField:n,tooltipFeature:r}=this;if(this.value===e||!o)return this;if(s||o.setValue(e,!0),o.getValue()===this.getValue())return this;let l=o.getDisplayValue();return l==null&&i&&(l=i),n.textContent=l,r?.setTooltipAndRefresh(l??null),super.setValue(e,t)}destroy(){this.listComponent=this.destroyBean(this.listComponent),super.destroy()}},iy={selector:"AG-SELECT",component:hd},ny=':where(.ag-root-wrapper,.ag-external,.ag-popup,.ag-dnd-ghost,.ag-chart),:where(.ag-root-wrapper,.ag-external,.ag-popup,.ag-dnd-ghost,.ag-chart) :where([class^=ag-]){box-sizing:border-box;&:after,&:before{box-sizing:border-box}&:where(div,span,label):focus-visible{box-shadow:inset var(--ag-focus-shadow);outline:none;&:where(.invalid){box-shadow:inset var(--ag-focus-error-shadow)}}&:where(button){color:inherit}}:where(.ag-root-wrapper,ag-external,.ag-popup,.ag-dnd-ghost,.ag-chart) :where([class^=ag-]) ::-ms-clear{display:none}.ag-hidden{display:none!important}.ag-invisible{visibility:hidden!important}.ag-popup-child{top:0;z-index:5;&:where(:not(.ag-tooltip-custom)){box-shadow:var(--ag-popup-shadow)}}.ag-input-wrapper,.ag-picker-field-wrapper{align-items:center;display:flex;flex:1 1 auto;line-height:normal;position:relative}.ag-input-field{align-items:center;display:flex;flex-direction:row}.ag-input-field-input:where(:not([type=checkbox],[type=radio])){flex:1 1 auto;min-width:0;width:100%}.ag-chart,.ag-dnd-ghost,.ag-external,.ag-popup,.ag-root-wrapper{cursor:default;line-height:normal;white-space:normal;-webkit-font-smoothing:antialiased;background-color:var(--ag-background-color);color:var(--ag-text-color);color-scheme:var(--ag-browser-color-scheme);font-family:var(--ag-font-family);font-size:var(--ag-font-size);--ag-indentation-level:0}:where(.ag-icon):before{align-items:center;background-color:currentcolor;color:inherit;content:"";display:flex;font-family:inherit;font-size:var(--ag-icon-size);font-style:normal;font-variant:normal;height:var(--ag-icon-size);justify-content:center;line-height:var(--ag-icon-size);-webkit-mask-size:contain;mask-size:contain;text-transform:none;width:var(--ag-icon-size)}.ag-icon{background-position:50%;background-repeat:no-repeat;background-size:contain;color:var(--ag-icon-color);display:block;height:var(--ag-icon-size);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--ag-icon-size)}.ag-disabled,[disabled]{.ag-icon{opacity:.5}&.ag-icon-grip{opacity:.35}}.ag-resizer{pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}:where(.ag-resizer){&.ag-resizer-topLeft{cursor:nwse-resize;height:5px;left:0;top:0;width:5px}&.ag-resizer-top{cursor:ns-resize;height:5px;left:5px;right:5px;top:0}&.ag-resizer-topRight{cursor:nesw-resize;height:5px;right:0;top:0;width:5px}&.ag-resizer-right{bottom:5px;cursor:ew-resize;right:0;top:5px;width:5px}&.ag-resizer-bottomRight{bottom:0;cursor:nwse-resize;height:5px;right:0;width:5px}&.ag-resizer-bottom{bottom:0;cursor:ns-resize;height:5px;left:5px;right:5px}&.ag-resizer-bottomLeft{bottom:0;cursor:nesw-resize;height:5px;left:0;width:5px}&.ag-resizer-left{bottom:5px;cursor:ew-resize;left:0;top:5px;width:5px}}',gd=typeof window!="object"||!window?.document?.fonts?.forEach,ii=(e,t,s,o,i,n)=>{if(gd)return;o&&(e=`@layer ${CSS.escape(o)} { ${e} }`);let r=Yo.map.get(t);if(r||(r=[],Yo.map.set(t,r)),r.some(d=>d.css===e))return;const a=document.createElement("style");n&&a.setAttribute("nonce",n),a.dataset.agGlobalCss=s,a.textContent=e;const l={css:e,el:a,priority:i};let c;for(const d of r){if(d.priority>i)break;c=d}if(c){c.el.insertAdjacentElement("afterend",a);const d=r.indexOf(c);r.splice(d+1,0,l)}else t.insertBefore(a,t.querySelector(":not(title, meta)")),r.push(l)},Up=(e,t,s,o)=>{ii(ny,e,"shared",t,0,s),o?.forEach((i,n)=>i.forEach(r=>ii(r,e,n,t,0,s)))},ry=e=>{Yo.grids.add(e)},ay=e=>{if(Yo.grids.delete(e),Yo.grids.size===0){Yo.map=new WeakMap;for(const t of document.head.querySelectorAll("style[data-ag-global-css]"))t.remove()}},Au,Yo=(Au=typeof window=="object"?window:{}).agStyleInjectionState??(Au.agStyleInjectionState={map:new WeakMap,grids:new Set}),gt=e=>new $p(e),Ds="$default",ly=0,$p=class{constructor({feature:e,params:t,modeParams:s={},css:o,cssImports:i}){this.feature=e,this.css=o,this.cssImports=i,this.modeParams={[Ds]:{...s[Ds]??{},...t??{}},...s}}use(e,t,s){let o=this._inject;if(o==null){let{css:i}=this;if(i){const n=`ag-theme-${this.feature??"part"}-${++ly}`;typeof i=="function"&&(i=i()),i=`:where(.${n}) {
4
4
  ${i}
@@ -2960,12 +2960,14 @@ const $w = (e) => ({
2960
2960
  iconSize: i = 24,
2961
2961
  iconStroke: o = 2,
2962
2962
  closable: n = !1,
2963
- onClose: r
2963
+ onClose: r,
2964
+ ...a
2964
2965
  }) => {
2965
- const a = V(() => $w({ size: i, stroke: o })[e], [e, i, o]);
2966
+ const l = V(() => $w({ size: i, stroke: o })[e], [e, i, o]);
2966
2967
  return /* @__PURE__ */ z(
2967
2968
  "div",
2968
2969
  {
2970
+ ...a,
2969
2971
  role: "alert",
2970
2972
  className: ge(
2971
2973
  Kw,
@@ -2974,7 +2976,7 @@ const $w = (e) => ({
2974
2976
  ),
2975
2977
  children: [
2976
2978
  /* @__PURE__ */ z("div", { className: "flex items-center gap-2", children: [
2977
- /* @__PURE__ */ m(Be, { icon: a }),
2979
+ /* @__PURE__ */ m(Be, { icon: l }),
2978
2980
  /* @__PURE__ */ m("div", { className: "text-primary", children: t })
2979
2981
  ] }),
2980
2982
  n && /* @__PURE__ */ m(
@@ -1,9 +1,8 @@
1
- import { FC, MouseEvent, ReactNode } from 'react';
1
+ import { FC, MouseEvent, ReactNode, HTMLAttributes } from 'react';
2
2
  import { AlertVariant } from '../../types/alert';
3
- export interface DialAlertProps {
3
+ export interface DialAlertProps extends HTMLAttributes<HTMLDivElement> {
4
4
  variant?: AlertVariant;
5
5
  message: string | ReactNode;
6
- className?: string;
7
6
  closable?: boolean;
8
7
  iconSize?: number;
9
8
  iconStroke?: number;
@@ -33,6 +32,13 @@ export interface DialAlertProps {
33
32
  * message="Something went wrong."
34
33
  * onClose={(e) => console.log('closed', e)}
35
34
  * />
35
+ *
36
+ * <DialAlert
37
+ * variant={AlertVariant.Warning}
38
+ * message="Custom alert"
39
+ * aria-live="polite"
40
+ * id="warning-alert"
41
+ * />
36
42
  * ```
37
43
  *
38
44
  * @param [variant=AlertVariant.Info] - Defines the visual style and icon of the alert
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-ui-kit",
3
- "version": "0.5.0-rc.100",
3
+ "version": "0.5.0-rc.101",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",