@epam/ai-dial-ui-kit 0.5.0-rc.81 → 0.5.0-rc.82

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 C=require("react/jsx-runtime"),q=require("classnames"),we=require("@floating-ui/react"),g=require("react"),B=require("@tabler/icons-react"),sn=require("react-dom");function rC(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 he=rC(g),Ps=({errorText:e})=>e&&C.jsx("span",{className:"text-error dial-tiny mt-1",children:e}),ke=({icon:e,className:t})=>e?C.jsx("span",{className:q("flex-shrink-0",t),children:e}):null,aC=7,lC=2,Dh=g.createContext(null),Ph=()=>{const e=g.useContext(Dh);if(e==null)throw new Error("Tooltip components must be wrapped in <Tooltip />");return e},cC=({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=we.useFloating({placement:t,open:l,onOpenChange:c,whileElementsMounted:we.autoUpdate,middleware:[we.offset(aC+lC),we.flip({crossAxis:t.includes("-"),fallbackAxisSideDirection:"start",padding:5}),we.shift({padding:5}),we.arrow({element:a})]}),u=we.useHover(d.context,{move:!1,enabled:o==null,mouseOnly:s,delay:{open:500,close:0}}),h=we.useFocus(d.context,{enabled:o==null}),p=we.useDismiss(d.context),f=we.useRole(d.context,{role:"tooltip"}),m=we.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,...m,...d}),[l,c,m,d])},Mh=({children:e,...t})=>{const s=cC(t);return C.jsx(Dh.Provider,{value:s,children:e})},Th=({style:e,...t})=>{const s=Ph(),o=g.useRef(null),i=we.useMergeRefs([s.refs.setFloating,o]);return s.open?C.jsx(we.FloatingPortal,{id:"tooltip-portal",children:C.jsxs("div",{ref:i,style:{...s.floatingStyles,...e},...s.getFloatingProps(t),className:q("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,C.jsx(we.FloatingArrow,{ref:s.arrowRef,context:s.context,fill:"currentColor",strokeWidth:1,className:"border-primary w-2 text-[var(--bg-layer-0,_#000000)]"})]})}):null},Ih=({children:e,asChild:t=!1,...s})=>{const o=Ph(),i=g.useRef(null),n=t&&g.isValidElement(e),a=e&&typeof e=="object"&&"ref"in e&&e.ref!==void 0?e.ref:void 0,l=[o.refs.setReference,i];n&&a&&l.push(a);const c=we.useMergeRefs(l);return n?g.cloneElement(e,o.getReferenceProps({...e.props,...s,ref:c})):C.jsx("span",{ref:c,...o.getReferenceProps(s),className:s.className??"dial-tooltip-trigger text-left",children:e})},gs=({hideTooltip:e,tooltip:t,children:s,triggerClassName:o,contentClassName:i,...n})=>C.jsxs(Mh,{...n,children:[C.jsx(Ih,{className:q(o,"truncate"),children:s}),C.jsx(Th,{className:q("text-primary",i,"max-w-[300px]",(e||!t)&&"hidden"),children:t})]}),cc="-",dC=e=>{const t=hC(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:r=>{const a=r.split(cc);return a[0]===""&&a.length!==1&&a.shift(),kh(a,t)||uC(r)},getConflictingClassGroupIds:(r,a)=>{const l=s[r]||[];return a&&o[r]?[...l,...o[r]]:l}}},kh=(e,t)=>{if(e.length===0)return t.classGroupId;const s=e[0],o=t.nextPart.get(s),i=o?kh(e.slice(1),o):void 0;if(i)return i;if(t.validators.length===0)return;const n=e.join(cc);return t.validators.find(({validator:r})=>r(n))?.classGroupId},vd=/^\[(.+)\]$/,uC=e=>{if(vd.test(e)){const t=vd.exec(e)[1],s=t?.substring(0,t.indexOf(":"));if(s)return"arbitrary.."+s}},hC=e=>{const{theme:t,classGroups:s}=e,o={nextPart:new Map,validators:[]};for(const i in s)wl(s[i],o,i,t);return o},wl=(e,t,s,o)=>{e.forEach(i=>{if(typeof i=="string"){const n=i===""?t:wd(t,i);n.classGroupId=s;return}if(typeof i=="function"){if(gC(i)){wl(i(o),t,s,o);return}t.validators.push({validator:i,classGroupId:s});return}Object.entries(i).forEach(([n,r])=>{wl(r,wd(t,n),s,o)})})},wd=(e,t)=>{let s=e;return t.split(cc).forEach(o=>{s.nextPart.has(o)||s.nextPart.set(o,{nextPart:new Map,validators:[]}),s=s.nextPart.get(o)}),s},gC=e=>e.isThemeGetter,pC=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)}}},bl="!",Sl=":",fC=Sl.length,mC=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 m=i[f];if(r===0&&a===0){if(m===Sl){n.push(i.slice(l,f)),l=f+fC;continue}if(m==="/"){c=f;continue}}m==="["?r++:m==="]"?r--:m==="("?a++:m===")"&&a--}const d=n.length===0?i:i.substring(l),u=CC(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+Sl,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},CC=e=>e.endsWith(bl)?e.substring(0,e.length-1):e.startsWith(bl)?e.substring(1):e,vC=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}},wC=e=>({cache:pC(e.cacheSize),parseClassName:mC(e),sortModifiers:vC(e),...dC(e)}),bC=/\s+/,SC=(e,t)=>{const{parseClassName:s,getClassGroupId:o,getConflictingClassGroupIds:i,sortModifiers:n}=t,r=[],a=e.trim().split(bC);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:m}=s(d);if(u){l=d+(l.length>0?" "+l:l);continue}let v=!!m,w=o(v?f.substring(0,m):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+bl:b,y=S+w;if(r.includes(y))continue;r.push(y);const x=i(w,v);for(let F=0;F<x.length;++F){const D=x[F];r.push(S+D)}l=d+(l.length>0?" "+l:l)}return l};function yC(){let e=0,t,s,o="";for(;e<arguments.length;)(t=arguments[e++])&&(s=Ah(t))&&(o&&(o+=" "),o+=s);return o}const Ah=e=>{if(typeof e=="string")return e;let t,s="";for(let o=0;o<e.length;o++)e[o]&&(t=Ah(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=wC(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=SC(l,s);return i(l,d),d}return function(){return n(yC.apply(null,arguments))}}const Ke=e=>{const t=s=>s[e]||[];return t.isThemeGetter=!0,t},Lh=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Oh=/^\((?:(\w[\w-]*):)?(.+)\)$/i,RC=/^\d+\/\d+$/,FC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,EC=/\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$/,DC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,PC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,MC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xo=e=>RC.test(e),Ce=e=>!!e&&!Number.isNaN(Number(e)),bs=e=>!!e&&Number.isInteger(Number(e)),xa=e=>e.endsWith("%")&&Ce(e.slice(0,-1)),ts=e=>FC.test(e),TC=()=>!0,IC=e=>EC.test(e)&&!DC.test(e),Nh=()=>!1,kC=e=>PC.test(e),AC=e=>MC.test(e),LC=e=>!J(e)&&!ee(e),OC=e=>ei(e,Bh,Nh),J=e=>Lh.test(e),Gs=e=>ei(e,Vh,IC),Ra=e=>ei(e,VC,Ce),bd=e=>ei(e,Hh,Nh),NC=e=>ei(e,Gh,AC),En=e=>ei(e,zh,kC),ee=e=>Oh.test(e),Ci=e=>ti(e,Vh),HC=e=>ti(e,zC),Sd=e=>ti(e,Hh),GC=e=>ti(e,Bh),BC=e=>ti(e,Gh),Dn=e=>ti(e,zh,!0),ei=(e,t,s)=>{const o=Lh.exec(e);return o?o[1]?t(o[1]):s(o[2]):!1},ti=(e,t,s=!1)=>{const o=Oh.exec(e);return o?o[1]?t(o[1]):s:!1},Hh=e=>e==="position"||e==="percentage",Gh=e=>e==="image"||e==="url",Bh=e=>e==="length"||e==="size"||e==="bg-size",Vh=e=>e==="length",VC=e=>e==="number",zC=e=>e==="family-name",zh=e=>e==="shadow",WC=()=>{const e=Ke("color"),t=Ke("font"),s=Ke("text"),o=Ke("font-weight"),i=Ke("tracking"),n=Ke("leading"),r=Ke("breakpoint"),a=Ke("container"),l=Ke("spacing"),c=Ke("radius"),d=Ke("shadow"),u=Ke("inset-shadow"),h=Ke("text-shadow"),p=Ke("drop-shadow"),f=Ke("blur"),m=Ke("perspective"),v=Ke("aspect"),w=Ke("ease"),b=Ke("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(),ee,J],F=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],R=()=>[ee,J,l],P=()=>[xo,"full","auto",...R()],T=()=>[bs,"none","subgrid",ee,J],E=()=>["auto",{span:["full",bs,ee,J]},bs,ee,J],M=()=>[bs,"auto",ee,J],A=()=>["auto","min","max","fr",ee,J],G=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],N=()=>["start","end","center","stretch","center-safe","end-safe"],Z=()=>["auto",...R()],te=()=>[xo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],O=()=>[e,ee,J],Q=()=>[...y(),Sd,bd,{position:[ee,J]}],z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],W=()=>["auto","cover","contain",GC,OC,{size:[ee,J]}],$=()=>[xa,Ci,Gs],K=()=>["","none","full",c,ee,J],U=()=>["",Ce,Ci,Gs],X=()=>["solid","dashed","dotted","double"],ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],k=()=>[Ce,xa,Sd,bd],oe=()=>["","none",f,ee,J],ve=()=>["none",Ce,ee,J],re=()=>["none",Ce,ee,J],xe=()=>[Ce,ee,J],be=()=>[xo,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ts],breakpoint:[ts],color:[TC],container:[ts],"drop-shadow":[ts],ease:["in","out","in-out"],font:[LC],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ts],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ts],shadow:[ts],spacing:["px",Ce],text:[ts],"text-shadow":[ts],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",xo,J,ee,v]}],container:["container"],columns:[{columns:[Ce,J,ee,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:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{start:P()}],end:[{end:P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[bs,"auto",ee,J]}],basis:[{basis:[xo,"full","auto",a,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ce,xo,"auto","initial","none",J]}],grow:[{grow:["",Ce,ee,J]}],shrink:[{shrink:["",Ce,ee,J]}],order:[{order:[bs,"first","last","none",ee,J]}],"grid-cols":[{"grid-cols":T()}],"col-start-end":[{col:E()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":T()}],"row-start-end":[{row:E()}],"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":A()}],"auto-rows":[{"auto-rows":A()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...G(),"normal"]}],"justify-items":[{"justify-items":[...N(),"normal"]}],"justify-self":[{"justify-self":["auto",...N()]}],"align-content":[{content:["normal",...G()]}],"align-items":[{items:[...N(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...N(),{baseline:["","last"]}]}],"place-content":[{"place-content":G()}],"place-items":[{"place-items":[...N(),"baseline"]}],"place-self":[{"place-self":["auto",...N()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:Z()}],mx:[{mx:Z()}],my:[{my:Z()}],ms:[{ms:Z()}],me:[{me:Z()}],mt:[{mt:Z()}],mr:[{mr:Z()}],mb:[{mb:Z()}],ml:[{ml:Z()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:te()}],w:[{w:[a,"screen",...te()]}],"min-w":[{"min-w":[a,"screen","none",...te()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[r]},...te()]}],h:[{h:["screen","lh",...te()]}],"min-h":[{"min-h":["screen","lh","none",...te()]}],"max-h":[{"max-h":["screen","lh",...te()]}],"font-size":[{text:["base",s,Ci,Gs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,ee,Ra]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xa,J]}],"font-family":[{font:[HC,J,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,ee,J]}],"line-clamp":[{"line-clamp":[Ce,"none",ee,Ra]}],leading:[{leading:[n,...R()]}],"list-image":[{"list-image":["none",ee,J]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ee,J]}],"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:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ce,"from-font","auto",ee,Gs]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[Ce,"auto",ee,J]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ee,J]}],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",ee,J]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Q()}],"bg-repeat":[{bg:z()}],"bg-size":[{bg:W()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},bs,ee,J],radial:["",ee,J],conic:[bs,ee,J]},BC,NC]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:$()}],"gradient-via-pos":[{via:$()}],"gradient-to-pos":[{to:$()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:K()}],"rounded-s":[{"rounded-s":K()}],"rounded-e":[{"rounded-e":K()}],"rounded-t":[{"rounded-t":K()}],"rounded-r":[{"rounded-r":K()}],"rounded-b":[{"rounded-b":K()}],"rounded-l":[{"rounded-l":K()}],"rounded-ss":[{"rounded-ss":K()}],"rounded-se":[{"rounded-se":K()}],"rounded-ee":[{"rounded-ee":K()}],"rounded-es":[{"rounded-es":K()}],"rounded-tl":[{"rounded-tl":K()}],"rounded-tr":[{"rounded-tr":K()}],"rounded-br":[{"rounded-br":K()}],"rounded-bl":[{"rounded-bl":K()}],"border-w":[{border: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:[...X(),"hidden","none"]}],"divide-style":[{divide:[...X(),"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:[...X(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ce,ee,J]}],"outline-w":[{outline:["",Ce,Ci,Gs]}],"outline-color":[{outline:O()}],shadow:[{shadow:["","none",d,Dn,En]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",u,Dn,En]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[Ce,Gs]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":["none",h,Dn,En]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[Ce,ee,J]}],"mix-blend":[{"mix-blend":[...ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ce()}],"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":[Ce]}],"mask-image-linear-from-pos":[{"mask-linear-from":k()}],"mask-image-linear-to-pos":[{"mask-linear-to":k()}],"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":k()}],"mask-image-t-to-pos":[{"mask-t-to":k()}],"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":k()}],"mask-image-r-to-pos":[{"mask-r-to":k()}],"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":k()}],"mask-image-b-to-pos":[{"mask-b-to":k()}],"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":k()}],"mask-image-l-to-pos":[{"mask-l-to":k()}],"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":k()}],"mask-image-x-to-pos":[{"mask-x-to":k()}],"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":k()}],"mask-image-y-to-pos":[{"mask-y-to":k()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[ee,J]}],"mask-image-radial-from-pos":[{"mask-radial-from":k()}],"mask-image-radial-to-pos":[{"mask-radial-to":k()}],"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":[Ce]}],"mask-image-conic-from-pos":[{"mask-conic-from":k()}],"mask-image-conic-to-pos":[{"mask-conic-to":k()}],"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:Q()}],"mask-repeat":[{mask:z()}],"mask-size":[{mask:W()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ee,J]}],filter:[{filter:["","none",ee,J]}],blur:[{blur:oe()}],brightness:[{brightness:[Ce,ee,J]}],contrast:[{contrast:[Ce,ee,J]}],"drop-shadow":[{"drop-shadow":["","none",p,Dn,En]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:["",Ce,ee,J]}],"hue-rotate":[{"hue-rotate":[Ce,ee,J]}],invert:[{invert:["",Ce,ee,J]}],saturate:[{saturate:[Ce,ee,J]}],sepia:[{sepia:["",Ce,ee,J]}],"backdrop-filter":[{"backdrop-filter":["","none",ee,J]}],"backdrop-blur":[{"backdrop-blur":oe()}],"backdrop-brightness":[{"backdrop-brightness":[Ce,ee,J]}],"backdrop-contrast":[{"backdrop-contrast":[Ce,ee,J]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ce,ee,J]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ce,ee,J]}],"backdrop-invert":[{"backdrop-invert":["",Ce,ee,J]}],"backdrop-opacity":[{"backdrop-opacity":[Ce,ee,J]}],"backdrop-saturate":[{"backdrop-saturate":[Ce,ee,J]}],"backdrop-sepia":[{"backdrop-sepia":["",Ce,ee,J]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ee,J]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ce,"initial",ee,J]}],ease:[{ease:["linear","initial",w,ee,J]}],delay:[{delay:[Ce,ee,J]}],animate:[{animate:["none",b,ee,J]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,ee,J]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ve()}],"rotate-x":[{"rotate-x":ve()}],"rotate-y":[{"rotate-y":ve()}],"rotate-z":[{"rotate-z":ve()}],scale:[{scale:re()}],"scale-x":[{"scale-x":re()}],"scale-y":[{"scale-y":re()}],"scale-z":[{"scale-z":re()}],"scale-3d":["scale-3d"],skew:[{skew:xe()}],"skew-x":[{"skew-x":xe()}],"skew-y":[{"skew-y":xe()}],transform:[{transform:[ee,J,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:be()}],"translate-x":[{"translate-x":be()}],"translate-y":[{"translate-y":be()}],"translate-z":[{"translate-z":be()}],"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",ee,J]}],"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":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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",ee,J]}],fill:[{fill:["none",...O()]}],"stroke-w":[{stroke:[Ce,Ci,Gs,Ra]}],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"]}},_C=xC(WC);function ue(...e){return _C(q(e))}const ho=({fieldTitle:e,optional:t,optionalText:s,className:o,description:i,...n})=>e?C.jsxs("label",{...n,className:ue("dial-tiny text-secondary flex gap-1",o,!o?.includes("mb")&&"mb-2"),children:[typeof e=="string"?C.jsx("span",{className:"min-h-4",children:e}):e,t&&C.jsx("span",{children:s??"(Optional)"}),i&&C.jsx(gs,{tooltip:i,children:C.jsx(ke,{icon:C.jsx(B.IconInfoCircle,{size:14,className:"text-secondary"})})})]}):null;var Me=(e=>(e.Primary="primary",e.Secondary="secondary",e.Tertiary="tertiary",e.Danger="danger",e))(Me||{});const jC={[Me.Primary]:"dial-primary-button",[Me.Secondary]:"dial-secondary-button",[Me.Tertiary]:"dial-tertiary-button",[Me.Danger]:"dial-danger-button"},Fe=({label:e,variant:t,className:s,textClassName:o,iconAfter:i,iconBefore:n,hideTitleOnMobile:r,type:a="button",...l})=>{const c=q("dial-small-semi",i?"mr-2":"",n?"ml-2":"",r?"hidden sm:inline":"inline",o),d=q(t&&jC[t],"disabled:cursor-not-allowed focus-visible:outline outline-offset-0",s);return C.jsxs("button",{...l,type:a,className:d,"aria-label":e||l["aria-label"],children:[C.jsx(ke,{icon:n}),e&&C.jsx("span",{className:c,children:e}),C.jsx(ke,{icon:i})]})};var Ws=(e=>(e.Info="info",e.Success="success",e.Warning="warning",e.Error="error",e))(Ws||{});const UC={info:C.jsx(B.IconInfoCircle,{size:24,stroke:2}),error:C.jsx(B.IconAlertCircle,{size:24,stroke:2}),warning:C.jsx(B.IconAlertTriangle,{size:24,stroke:2}),success:C.jsx(B.IconCircleCheck,{size:24,stroke:2})},$C={[Ws.Info]:"bg-info border-info text-info",[Ws.Success]:"bg-success border-success text-success",[Ws.Warning]:"bg-warning border-warning text-warning",[Ws.Error]:"bg-error border-error text-error"},KC="items-center justify-between gap-2 p-3 border border-solid dial-small-150 rounded flex",qC=({variant:e=Ws.Info,message:t,className:s,closable:o=!1,onClose:i})=>C.jsxs("div",{role:"alert",className:q(KC,$C[e],s),children:[C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx(ke,{icon:UC[e]}),C.jsx("div",{className:"text-primary",children:t})]}),o&&C.jsx(Fe,{className:"ml-2 text-secondary hover:text-primary","aria-label":"Close alert",iconBefore:C.jsx(B.IconX,{size:16}),onClick:i})]}),YC="flex items-center justify-center text-secondary",ZC="shrink-0 grow-0 basis-auto animate-spin-steps",XC=e=>he.createElement("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},he.createElement("path",{d:"M24 39V46.5",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),he.createElement("path",{opacity:.4,d:"M9 24H1.5",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),he.createElement("path",{opacity:.5,d:"M8.0918 8.0918L13.3994 13.3994",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),he.createElement("path",{opacity:.6,d:"M24 1.5V9",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),he.createElement("path",{opacity:.7,d:"M39.9121 8.08594L37.2607 10.7373L34.6094 13.3887",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),he.createElement("path",{opacity:.8,d:"M46.5 24H39",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),he.createElement("path",{opacity:.9,d:"M34.6055 34.6055L39.9082 39.9082",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),he.createElement("path",{opacity:.3,d:"M13.3936 34.6055L8.08594 39.9131",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"})),on=({size:e=18,className:t,iconClassName:s,fullWidth:o=!0,ariaLabel:i="Loading"})=>C.jsx("div",{role:"status",className:q({[YC]:!0,"w-full h-full":o,[t||""]:!!t}),children:C.jsx(ke,{icon:C.jsx(XC,{width:e,height:e,className:q(ZC,s),role:"img","aria-label":i})})}),ns=18,ne={size:ns,stroke:2},QC="text-primary",Bt=({text:e,className:t,contentClassName:s,hideTooltip:o,...i})=>{const n=g.useRef(null),[r,a]=g.useState(!1),[l,c]=g.useState(""),d=g.useRef(null),u=()=>{const m=n.current;if(!m)return;c(m.textContent??"");const v=m.clientWidth,w=m.scrollWidth,b=Math.ceil(m.getBoundingClientRect().width);a(w>v||w>b)},h=g.useCallback(()=>{d.current&&cancelAnimationFrame(d.current),d.current=requestAnimationFrame(u)},[]);g.useEffect(()=>{h();const m=()=>h();window.addEventListener("resize",m);let v=null;return"ResizeObserver"in window&&n.current&&(v=new ResizeObserver(()=>h()),v.observe(n.current)),()=>{window.removeEventListener("resize",m),v&&v.disconnect(),d.current&&cancelAnimationFrame(d.current)}},[e,h]);const p=g.useMemo(()=>typeof e=="string"?e:l,[l,e]),f=g.useMemo(()=>o?"":r?p:"",[p,o,r]);return C.jsxs(Mh,{...i,children:[C.jsx(Ih,{asChild:!0,onMouseEnter:h,onFocusCapture:h,children:C.jsx("span",{className:ue("block truncate flex-1 min-w-0 max-w-full text-left",t),"aria-label":r?p:void 0,onMouseEnter:h,onFocus:h,ref:n,children:e})}),C.jsx(Th,{className:ue(QC,s,!f&&"hidden"),children:f})]})},Gi=({label:e,id:t,checked:s,indeterminate:o,disabled:i,ariaLabel:n,onChange:r,className:a})=>{const l=g.useCallback(h=>{r?.(h.target.checked,t)},[r,t]),c=q("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),d=q("border rounded",i?"bg-layer-4 border-icon-secondary":""),u=()=>o?C.jsx(B.IconMinus,{className:d,...ne}):s?C.jsx(B.IconCheck,{className:d,...ne}):null;return C.jsxs("label",{className:c,htmlFor:t,children:[u(),e&&(typeof e=="string"?C.jsx(Bt,{text:e,className:"ml-2 text-primary"}):e),C.jsx("input",{type:"checkbox",role:"checkbox",name:t,onChange:l,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 vt=(e=>(e.VALID="valid",e.ERROR="error",e))(vt||{});const JC=(e,t)=>{if(t===e.id)switch(e.status){case vt.VALID:return"border-accent-secondary text-primary";case vt.ERROR:return"border-red-900 text-primary";default:return"border-accent-primary text-primary"}switch(e.status){case vt.VALID:return"border-primary text-primary";case vt.ERROR:return"border-red-900 text-error";default:return"border-primary text-secondary"}},ev=(e,t)=>{if(t===e.id)switch(e.status){case vt.VALID:return"bg-accent-secondary";case vt.ERROR:return"bg-red-400";default:return"bg-accent-primary"}switch(e.status){case vt.VALID:return"bg-accent-secondary";case vt.ERROR:return"bg-red-400";default:return"bg-layer-4"}},tv=({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===vt.ERROR?C.jsx(B.IconExclamationCircle,{stroke:2,size:16}):s!==e.id&&e.status===vt.VALID?C.jsx(B.IconCheck,{stroke:2,size:16}):t+1;return C.jsxs("button",{className:q(i,JC(e,s)),onClick:()=>o(e.id),children:[C.jsx("span",{className:q(n,ev(e,s)),children:r()}),C.jsx("span",{children:e.name})]})},sv=({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===vt.VALID||r<n)&&s(i)};return C.jsx("div",{id:"steps",className:"flex gap-x-3",children:e.map((i,n)=>C.jsx(tv,{currentStep:t,onChangeStep:o,step:i,index:n},i.id))})},Wh=({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=q("dial-small cursor-pointer",l?"text-secondary":"text-primary",a),p=q("cursor-pointer dial-input-radio",s&&"mr-2",r),f=q("flex flex-col",!!o&&"mb-2"),m=q("dial-tiny mt-2 ml-[26px] text-secondary",d),v=w=>{l||w.target.checked&&c?.(t)};return C.jsxs("div",{className:f,children:[C.jsxs("div",{className:"flex flex-row items-center",children:[C.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?C.jsx("label",{className:h,htmlFor:n,children:s}):null]}),i&&o&&C.jsx("div",{id:u,className:m,children:o})]})};var Bi=(e=>(e.Vertical="vertical",e.Horizontal="horizontal",e))(Bi||{});const ov="w-full flex",iv={[Bi.Vertical]:"flex-col",[Bi.Horizontal]:"flex-row items-end"},Vr=({elementId:e,label:t,optional:s,optionalText:o,description:i,error:n,orientation:r=Bi.Vertical,labelVisuallyHidden:a=!1,className:l,labelClassName:c,errorClassName:d,childrenClassName:u,captionDescription:h,readonly:p,value:f,defaultEmptyText:m,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,F=g.useCallback(()=>typeof n=="boolean"?null:typeof n=="string"||typeof n>"u"?n?C.jsx("div",{id:S,role:"alert","aria-live":"polite",className:d,children:C.jsx(Ps,{errorText:n})}):null:C.jsx("div",{id:S,role:"alert","aria-live":"polite",className:d,children:n}),[n,d,S]),D=g.useCallback(()=>f?typeof f=="string"||typeof f=="number"?C.jsx("span",{"aria-readonly":"true",children:f}):f:C.jsx("span",{className:"flex min-h-4","aria-readonly":"true",children:m??"None"}),[f,m]);return C.jsxs("div",{role:"group","aria-labelledby":t?w:void 0,"aria-describedby":x,className:ue(ov,iv[r],l),children:[t&&C.jsx("div",{id:w,className:ue(r==="horizontal"&&"shrink-0"),children:C.jsx(ho,{htmlFor:e,fieldTitle:t,optional:s,optionalText:o,className:ue(a&&"sr-only",c),description:i})}),C.jsxs("div",{className:ue("min-w-0 w-full",u),children:[p?C.jsx("div",{className:"dial-input px-3 py-2",children:D()}):v,h&&C.jsx("div",{id:y,className:ue({"dial-tiny text-secondary mt-1":!0,"text-error":!!n}),children:h}),F()]})]})};var eo=(e=>(e.Row="Row",e.Column="Column",e))(eo||{});const nv="flex",rv="pb-1 mt-2",av={[eo.Column]:"flex-col gap-y-3",[eo.Row]:"flex-row gap-x-6"},lr=({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:m,onChange:v})=>C.jsx(Vr,{elementId:h,label:e,labelClassName:l||d,className:s,childrenClassName:c,children:C.jsx("div",{role:"radiogroup","aria-label":e,"aria-disabled":u||void 0,className:ue(nv,av[m],n),children:p.map(w=>C.jsxs("div",{className:ue("flex flex-col",r,w.id===f&&a),children:[C.jsx(Wh,{name:h,value:w.id,inputId:w.id,disabled:u,className:t,labelClassName:ue(d,w.id===f&&i),title:w.name,checked:w.id===f,onChange:()=>v(w.id)}),w.id===f&&w.content?C.jsx("div",{className:ue(rv,o),children:w.content}):null]},w.id))})}),zr=({icon:e,title:t,description:s,containerClassName:o,titleClassName:i,descriptionClassName:n})=>C.jsxs("div",{className:ue("h-full w-full flex flex-col items-center justify-center text-secondary",o),children:[e||C.jsx(B.IconClipboardX,{width:60,height:60}),C.jsx("span",{className:ue("dial-small mt-2 text-primary",i),children:t}),s&&C.jsx("span",{className:ue("mt-1 text-primary",n),children:s})]}),Fa=48,_h=({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]),m=f?l:h;g.useEffect(()=>{f&&u(l?s:Fa)},[f,l,s]);const v=q(["transform rotate-180 [writing-mode:tb-rl] py-4 px-3",m&&"hidden",r]),w=q(["flex flex-row gap-2 cursor-pointer text-secondary p-2 px-4",m?"justify-end":"justify-center"]),b=S=>{const y=!m;if(f){u(y?s:Fa),c?.(y,S);return}u(y?s:Fa),p(y)};return C.jsxs("div",{className:q(["rounded flex flex-col justify-between overflow-y-auto flex-shrink-0",e]),style:{width:`${d}px`},children:[C.jsx("div",{className:q(["flex-1 p-4 min-h-0 overflow-auto",!m&&"hidden"]),children:t}),C.jsx("div",{className:v,children:o}),C.jsxs("div",{className:ue("border-t border-primary h-12",w),children:[m&&a,C.jsx(Fe,{className:"hover:text-accent-primary p-1",onClick:b,iconBefore:m?C.jsx(B.IconChevronsLeft,{size:i,stroke:n}):C.jsx(B.IconChevronsRight,{size:i,stroke:n})})]})]})},lv=({label:e,text:t,children:s,postfix:o})=>C.jsxs("div",{className:q("flex flex-col",s?"":"max-w-[200px]"),children:[C.jsx("label",{className:"dial-tiny mb-2 text-secondary",children:e}),s||C.jsxs("div",{className:"flex flex-row items-center",children:[C.jsx(gs,{triggerClassName:"text-primary",tooltip:t,children:t}),o||null]})]});var Wr=(e=>(e.Default="default",e))(Wr||{});const cv={[Wr.Default]:"border-icon-secondary bg-layer-3"},_r=({tag:e,className:t,remove:s,variant:o=Wr.Default,iconBefore:i,bordered:n=!0})=>{const r=cv[o],a=ue("flex items-center gap-1 dial-tiny rounded p-1 h-[22px] text-primary",r,n?"border":"border-transparent",t);return C.jsxs("div",{className:a,children:[C.jsx(ke,{icon:i}),C.jsx(Bt,{text:e}),s&&C.jsx(Fe,{iconAfter:C.jsx(B.IconX,{size:16}),onClick:l=>s(l)})]},e)},jh=g.createContext({dragDropManager:void 0});function xt(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 yd=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),xd=function(){return Math.random().toString(36).substring(7).split("").join(".")},Rd={INIT:"@@redux/INIT"+xd(),REPLACE:"@@redux/REPLACE"+xd()};function dv(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 uv(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(pv(e))return"date";if(gv(e))return"error";var s=hv(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 hv(e){return typeof e.constructor=="function"?e.constructor.name:null}function gv(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function pv(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Ro(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=uv(e)),t}function Uh(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"?xt(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"?xt(1):"Expected the enhancer to be a function. Instead, received: '"+Ro(s)+"'");return s(Uh)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?xt(2):"Expected the root reducer to be a function. Instead, received: '"+Ro(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"?xt(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(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?xt(4):"Expected the listener to be a function. Instead, received: '"+Ro(m)+"'");if(l)throw new Error(process.env.NODE_ENV==="production"?xt(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(m),function(){if(v){if(l)throw new Error(process.env.NODE_ENV==="production"?xt(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(m);a.splice(b,1),r=null}}}function h(m){if(!dv(m))throw new Error(process.env.NODE_ENV==="production"?xt(7):"Actions must be plain objects. Instead, the actual type was: '"+Ro(m)+"'. 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 m.type>"u")throw new Error(process.env.NODE_ENV==="production"?xt(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"?xt(9):"Reducers may not dispatch actions.");try{l=!0,n=i(n,m)}finally{l=!1}for(var v=r=a,w=0;w<v.length;w++){var b=v[w];b()}return m}function p(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?xt(10):"Expected the nextReducer to be a function. Instead, received: '"+Ro(m));i=m,h({type:Rd.REPLACE})}function f(){var m,v=u;return m={subscribe:function(b){if(typeof b!="object"||b===null)throw new Error(process.env.NODE_ENV==="production"?xt(11):"Expected the observer to be an object. Instead, received: '"+Ro(b)+"'");function S(){b.next&&b.next(d())}S();var y=v(S);return{unsubscribe:y}}},m[yd]=function(){return this},m}return h({type:Rd.INIT}),o={dispatch:h,subscribe:u,getState:d,replaceReducer:p},o[yd]=f,o}function me(e,t,...s){if(fv()&&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 fv(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function mv(e,t,s){return t.split(".").reduce((o,i)=>o&&o[i]?o[i]:s||null,e)}function Cv(e,t){return e.filter(s=>s!==t)}function $h(e){return typeof e=="object"}function vv(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 wv(e,t){return e.filter(s=>t.indexOf(s)>-1)}const dc="dnd-core/INIT_COORDS",jr="dnd-core/BEGIN_DRAG",uc="dnd-core/PUBLISH_DRAG_SOURCE",Ur="dnd-core/HOVER",$r="dnd-core/DROP",Kr="dnd-core/END_DRAG";function Fd(e,t){return{type:dc,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const bv={type:dc,payload:{clientOffset:null,sourceClientOffset:null}};function Sv(e){return function(s=[],o={publishSource:!0}){const{publishSource:i=!0,clientOffset:n,getSourceClientOffset:r}=o,a=e.getMonitor(),l=e.getRegistry();e.dispatch(Fd(n)),yv(s,a,l);const c=Fv(s,a);if(c==null){e.dispatch(bv);return}let d=null;if(n){if(!r)throw new Error("getSourceClientOffset must be defined");xv(r),d=r(c)}e.dispatch(Fd(n,d));const h=l.getSource(c).beginDrag(a,c);if(h==null)return;Rv(h),l.pinSource(c);const p=l.getSourceType(c);return{type:jr,payload:{itemType:p,item:h,sourceId:c,clientOffset:n||null,sourceClientOffset:d||null,isSourcePublic:!!i}}}}function yv(e,t,s){me(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(o){me(s.getSource(o),"Expected sourceIds to be registered.")})}function xv(e){me(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function Rv(e){me($h(e),"Item must be an object.")}function Fv(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 Ev(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function Dv(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){Ev(e,i,s[i])})}return e}function Pv(e){return function(s={}){const o=e.getMonitor(),i=e.getRegistry();Mv(o),kv(o).forEach((r,a)=>{const l=Tv(r,a,i,o),c={type:$r,payload:{dropResult:Dv({},s,l)}};e.dispatch(c)})}}function Mv(e){me(e.isDragging(),"Cannot call drop while not dragging."),me(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function Tv(e,t,s,o){const i=s.getTarget(e);let n=i?i.drop(o,e):void 0;return Iv(n),typeof n>"u"&&(n=t===0?{}:o.getDropResult()),n}function Iv(e){me(typeof e>"u"||$h(e),"Drop result must either be an object or undefined.")}function kv(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function Av(e){return function(){const s=e.getMonitor(),o=e.getRegistry();Lv(s);const i=s.getSourceId();return i!=null&&(o.getSource(i,!0).endDrag(s,i),o.unpinSource()),{type:Kr}}}function Lv(e){me(e.isDragging(),"Cannot call endDrag while not dragging.")}function yl(e,t){return t===null?e===null:Array.isArray(e)?e.some(s=>s===t):e===t}function Ov(e){return function(s,{clientOffset:o}={}){Nv(s);const i=s.slice(0),n=e.getMonitor(),r=e.getRegistry(),a=n.getItemType();return Gv(i,r,a),Hv(i,n,r),Bv(i,n,r),{type:Ur,payload:{targetIds:i,clientOffset:o||null}}}}function Nv(e){me(Array.isArray(e),"Expected targetIds to be an array.")}function Hv(e,t,s){me(t.isDragging(),"Cannot call hover while not dragging."),me(!t.didDrop(),"Cannot call hover after drop.");for(let o=0;o<e.length;o++){const i=e[o];me(e.lastIndexOf(i)===o,"Expected targetIds to be unique in the passed array.");const n=s.getTarget(i);me(n,"Expected targetIds to be registered.")}}function Gv(e,t,s){for(let o=e.length-1;o>=0;o--){const i=e[o],n=t.getTargetType(i);yl(n,s)||e.splice(o,1)}}function Bv(e,t,s){e.forEach(function(o){s.getTarget(o).hover(t,o)})}function Vv(e){return function(){if(e.getMonitor().isDragging())return{type:uc}}}function zv(e){return{beginDrag:Sv(e),publishDragSource:Vv(e),hover:Ov(e),drop:Pv(e),endDrag:Av(e)}}class Wv{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=zv(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 _v(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Kh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function jv(e){const{clientOffset:t,initialClientOffset:s,initialSourceClientOffset:o}=e;return!t||!s||!o?null:Kh(_v(t,o),s)}function Uv(e){const{clientOffset:t,initialClientOffset:s}=e;return!t||!s?null:Kh(t,s)}const Di=[],hc=[];Di.__IS_NONE__=!0;hc.__IS_ALL__=!0;function $v(e,t){return e===Di?!1:e===hc||typeof t>"u"?!0:wv(t,e).length>0}class Kv{subscribeToStateChange(t,s={}){const{handlerIds:o}=s;me(typeof t=="function","listener must be a function."),me(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&&!$v(r.dirtyHandlerIds,o)||t()}finally{i=a}};return this.store.subscribe(n)}subscribeToOffsetChange(t){me(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 me(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(me(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 yl(o,i)&&s.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const s=this.registry.getSource(t,!0);if(me(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&&!yl(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 jv(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return Uv(this.store.getState().dragOffset)}constructor(t,s){this.store=t,this.registry=s}}const Ed=typeof global<"u"?global:self,qh=Ed.MutationObserver||Ed.WebKitMutationObserver;function Yh(e){return function(){const s=setTimeout(i,0),o=setInterval(i,50);function i(){clearTimeout(s),clearInterval(o),e()}}}function qv(e){let t=1;const s=new qh(e),o=document.createTextNode("");return s.observe(o,{characterData:!0}),function(){t=-t,o.data=t}}const Yv=typeof qh=="function"?qv:Yh;class Zv{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=Yv(this.flush),this.requestErrorThrow=Yh(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Xv{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 Qv{create(t){const s=this.freeTasks,o=s.length?s.pop():new Xv(this.onError,i=>s[s.length]=i);return o.task=t,o}constructor(t){this.onError=t,this.freeTasks=[]}}const Zh=new Zv,Jv=new Qv(Zh.registerPendingError);function ew(e){Zh.enqueueTask(Jv.create(e))}const gc="dnd-core/ADD_SOURCE",pc="dnd-core/ADD_TARGET",fc="dnd-core/REMOVE_SOURCE",qr="dnd-core/REMOVE_TARGET";function tw(e){return{type:gc,payload:{sourceId:e}}}function sw(e){return{type:pc,payload:{targetId:e}}}function ow(e){return{type:fc,payload:{sourceId:e}}}function iw(e){return{type:qr,payload:{targetId:e}}}function nw(e){me(typeof e.canDrag=="function","Expected canDrag to be a function."),me(typeof e.beginDrag=="function","Expected beginDrag to be a function."),me(typeof e.endDrag=="function","Expected endDrag to be a function.")}function rw(e){me(typeof e.canDrop=="function","Expected canDrop to be a function."),me(typeof e.hover=="function","Expected hover to be a function."),me(typeof e.drop=="function","Expected beginDrag to be a function.")}function xl(e,t){if(t&&Array.isArray(e)){e.forEach(s=>xl(s,!1));return}me(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 Pt;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(Pt||(Pt={}));let aw=0;function lw(){return aw++}function cw(e){const t=lw().toString();switch(e){case Pt.SOURCE:return`S${t}`;case Pt.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function Dd(e){switch(e[0]){case"S":return Pt.SOURCE;case"T":return Pt.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function Pd(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 dw{addSource(t,s){xl(t),nw(s);const o=this.addHandler(Pt.SOURCE,t,s);return this.store.dispatch(tw(o)),o}addTarget(t,s){xl(t,!0),rw(s);const o=this.addHandler(Pt.TARGET,t,s);return this.store.dispatch(sw(o)),o}containsHandler(t){return Pd(this.dragSources,t)||Pd(this.dropTargets,t)}getSource(t,s=!1){return me(this.isSourceId(t),"Expected a valid source ID."),s&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return me(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return me(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return me(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return Dd(t)===Pt.SOURCE}isTargetId(t){return Dd(t)===Pt.TARGET}removeSource(t){me(this.getSource(t),"Expected an existing source."),this.store.dispatch(ow(t)),ew(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){me(this.getTarget(t),"Expected an existing target."),this.store.dispatch(iw(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const s=this.getSource(t);me(s,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=s}unpinSource(){me(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,s,o){const i=cw(t);return this.types.set(i,s),t===Pt.SOURCE?this.dragSources.set(i,o):t===Pt.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 uw=(e,t)=>e===t;function hw(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function gw(e,t,s=uw){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 pw(e=Di,t){switch(t.type){case Ur:break;case gc:case pc:case qr:case fc:return Di;case jr:case uc:case Kr:case $r:default:return hc}const{targetIds:s=[],prevTargetIds:o=[]}=t.payload,i=vv(s,o);if(!(i.length>0||!gw(s,o)))return Di;const r=o[o.length-1],a=s[s.length-1];return r!==a&&(r&&i.push(r),a&&i.push(a)),i}function fw(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function mw(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){fw(e,i,s[i])})}return e}const Md={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Cw(e=Md,t){const{payload:s}=t;switch(t.type){case dc:case jr:return{initialSourceClientOffset:s.sourceClientOffset,initialClientOffset:s.clientOffset,clientOffset:s.clientOffset};case Ur:return hw(e.clientOffset,s.clientOffset)?e:mw({},e,{clientOffset:s.clientOffset});case Kr:case $r:return Md;default:return e}}function vw(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function Fo(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){vw(e,i,s[i])})}return e}const ww={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function bw(e=ww,t){const{payload:s}=t;switch(t.type){case jr:return Fo({},e,{itemType:s.itemType,item:s.item,sourceId:s.sourceId,isSourcePublic:s.isSourcePublic,dropResult:null,didDrop:!1});case uc:return Fo({},e,{isSourcePublic:!0});case Ur:return Fo({},e,{targetIds:s.targetIds});case qr:return e.targetIds.indexOf(s.targetId)===-1?e:Fo({},e,{targetIds:Cv(e.targetIds,s.targetId)});case $r:return Fo({},e,{dropResult:s.dropResult,didDrop:!0,targetIds:[]});case Kr:return Fo({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function Sw(e=0,t){switch(t.type){case gc:case pc:return e+1;case fc:case qr:return e-1;default:return e}}function yw(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 Rw(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 Fw(e={},t){return{dirtyHandlerIds:pw(e.dirtyHandlerIds,{type:t.type,payload:Rw({},t.payload,{prevTargetIds:mv(e,"dragOperation.targetIds",[])})}),dragOffset:Cw(e.dragOffset,t),refCount:Sw(e.refCount,t),dragOperation:bw(e.dragOperation,t),stateId:yw(e.stateId)}}function Ew(e,t=void 0,s={},o=!1){const i=Dw(o),n=new Kv(i,new dw(i)),r=new Wv(i,n),a=e(r,t,s);return r.receiveBackend(a),r}function Dw(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return Uh(Fw,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function Pw(e,t){if(e==null)return{};var s=Mw(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 Mw(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 Td=0;const Un=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var Tw=g.memo(function(t){var{children:s}=t,o=Pw(t,["children"]);const[i,n]=Iw(o);return g.useEffect(()=>{if(n){const r=Xh();return++Td,()=>{--Td===0&&(r[Un]=null)}}},[]),C.jsx(jh.Provider,{value:i,children:s})});function Iw(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=kw(e.backend,e.context,e.options,e.debugMode),s=!e.context;return[t,s]}function kw(e,t=Xh(),s,o){const i=t;return i[Un]||(i[Un]={dragDropManager:Ew(e,t,s,o)}),i[Un]}function Xh(){return typeof global<"u"?global:window}function Aw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ea,Id;function Lw(){return Id||(Id=1,Ea=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}),Ea}var Ow=Lw();const Nw=Aw(Ow),to=typeof window<"u"?g.useLayoutEffect:g.useEffect;function Hw(e,t,s){const[o,i]=g.useState(()=>t(e)),n=g.useCallback(()=>{const r=t(e);Nw(o,r)||(i(r),s&&s())},[o,e,s]);return to(n),[o,n]}function Gw(e,t,s){const[o,i]=Hw(e,t,s);return to(function(){const r=e.getHandlerId();if(r!=null)return e.subscribeToStateChange(i,{handlerIds:[r]})},[e,i]),o}function Qh(e,t,s){return Gw(t,e||(()=>({})),()=>s.reconnect())}function Jh(e,t){const s=[...t||[]];return t==null&&typeof e!="function"&&s.push(e),g.useMemo(()=>typeof e=="function"?e():e,s)}function Bw(e){return g.useMemo(()=>e.hooks.dragSource(),[e])}function Vw(e){return g.useMemo(()=>e.hooks.dragPreview(),[e])}let Da=!1,Pa=!1;class zw{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){me(!Da,"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 Da=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Da=!1}}isDragging(){if(!this.sourceId)return!1;me(!Pa,"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 Pa=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Pa=!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 Ma=!1;class Ww{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,s){return this.internalMonitor.subscribeToStateChange(t,s)}canDrop(){if(!this.targetId)return!1;me(!Ma,"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 Ma=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Ma=!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 _w(e,t,s){const o=s.getRegistry(),i=o.addTarget(e,t);return[i,()=>o.removeTarget(i)]}function jw(e,t,s){const o=s.getRegistry(),i=o.addSource(e,t);return[i,()=>o.removeSource(i)]}function Rl(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 Fl(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Uw(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 $w(e){return(t=null,s=null)=>{if(!g.isValidElement(t)){const n=t;return e(n,s),n}const o=t;return Uw(o),Kw(o,s?n=>e(n,s):e)}}function eg(e){const t={};return Object.keys(e).forEach(s=>{const o=e[s];if(s.endsWith("Ref"))t[s]=e[s];else{const i=$w(o);t[s]=()=>i}}),t}function kd(e,t){typeof e=="function"?e(t):e.current=t}function Kw(e,t){const s=e.ref;return me(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=>{kd(s,o),kd(t,o)}}):g.cloneElement(e,{ref:t})}class qw{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!Rl(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!Rl(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=eg({dragSource:(s,o)=>{this.clearDragSource(),this.dragSourceOptions=o||null,Fl(s)?this.dragSourceRef=s:this.dragSourceNode=s,this.reconnectDragSource()},dragPreview:(s,o)=>{this.clearDragPreview(),this.dragPreviewOptions=o||null,Fl(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 Yw{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!Rl(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=eg({dropTarget:(s,o)=>{this.clearDropTarget(),this.dropTargetOptions=o,Fl(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 si(){const{dragDropManager:e}=g.useContext(jh);return me(e!=null,"Expected drag drop context"),e}function Zw(e,t){const s=si(),o=g.useMemo(()=>new qw(s.getBackend()),[s]);return to(()=>(o.dragSourceOptions=e||null,o.reconnect(),()=>o.disconnectDragSource()),[o,e]),to(()=>(o.dragPreviewOptions=t||null,o.reconnect(),()=>o.disconnectDragPreview()),[o,t]),o}function Xw(){const e=si();return g.useMemo(()=>new zw(e),[e])}class Qw{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 Jw(e,t,s){const o=g.useMemo(()=>new Qw(e,t,s),[t,s]);return g.useEffect(()=>{o.spec=e},[e]),o}function e1(e){return g.useMemo(()=>{const t=e.type;return me(t!=null,"spec.type must be defined"),t},[e])}function t1(e,t,s){const o=si(),i=Jw(e,t,s),n=e1(e);to(function(){if(n!=null){const[a,l]=jw(n,i,o);return t.receiveHandlerId(a),s.receiveHandlerId(a),l}},[o,t,s,i,n])}function s1(e,t){const s=Jh(e,t);me(!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=Xw(),i=Zw(s.options,s.previewOptions);return t1(s,o,i),[Qh(s.collect,o,i),Bw(i),Vw(i)]}function o1(e){return g.useMemo(()=>e.hooks.dropTarget(),[e])}function i1(e){const t=si(),s=g.useMemo(()=>new Yw(t.getBackend()),[t]);return to(()=>(s.dropTargetOptions=e||null,s.reconnect(),()=>s.disconnectDropTarget()),[e]),s}function n1(){const e=si();return g.useMemo(()=>new Ww(e),[e])}function r1(e){const{accept:t}=e;return g.useMemo(()=>(me(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class a1{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 l1(e,t){const s=g.useMemo(()=>new a1(e,t),[t]);return g.useEffect(()=>{s.spec=e},[e]),s}function c1(e,t,s){const o=si(),i=l1(e,t),n=r1(e);to(function(){const[a,l]=_w(n,i,o);return t.receiveHandlerId(a),s.receiveHandlerId(a),l},[o,t,i,s,n.map(r=>r.toString()).join("|")])}function tg(e,t){const s=Jh(e,t),o=n1(),i=i1(s.options);return c1(s,o,i),[Qh(s.collect,o,i),o1(i)]}const Ad="column",d1="flex items-center",u1="mr-3 cursor-move text-secondary",h1=({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]=s1(()=>({type:Ad,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]=tg(()=>({accept:Ad,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),C.jsxs("div",{ref:a,className:ue(d1,s),style:{opacity:c?0:1},"aria-roledescription":"Draggable item",children:[C.jsx("div",{ref:r,className:u1,"aria-label":n,children:C.jsx(B.IconGripVertical,{...ne})}),t]})},g1=e=>he.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},he.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"}),he.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"}),he.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"}),he.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"})),p1=e=>he.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},he.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"}),he.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"})),f1=e=>he.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},he.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"}),he.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"}),he.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"})),m1=e=>he.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},he.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"}),he.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"}),he.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"}),he.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"})),C1=e=>he.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},he.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"}),he.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"}),he.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"}),he.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"}),he.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"})),v1=e=>he.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},he.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"}),he.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"}),he.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"})),w1=e=>he.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},he.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"}),he.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"}),he.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"})),Le=(e,t)=>C.jsx(e,{size:t.size??ne.size,stroke:t.stroke??ne.stroke,className:t.className}),Bs=(e,t)=>C.jsx(e,{width:Number(t.size??ne.size),height:Number(t.size??ne.size),className:t.className}),Ld={".bmp":e=>Le(B.IconFileTypeBmp,e),".cpp":e=>Bs(g1,e),".c":e=>Bs(p1,e),".cs":e=>Bs(f1,e),".css":e=>Le(B.IconFileTypeCss,e),".csv":e=>Le(B.IconFileTypeCsv,e),".doc":e=>Le(B.IconFileTypeDoc,e),".docx":e=>Le(B.IconFileTypeDocx,e),".html":e=>Le(B.IconFileTypeHtml,e),".ini":e=>Bs(m1,e),".jpg":e=>Le(B.IconFileTypeJpg,e),".js":e=>Le(B.IconFileTypeJs,e),".json":e=>Bs(C1,e),".jsx":e=>Le(B.IconFileTypeJsx,e),".md":e=>Bs(v1,e),".pdf":e=>Le(B.IconFileTypePdf,e),".php":e=>Le(B.IconFileTypePhp,e),".png":e=>Le(B.IconFileTypePng,e),".ppt":e=>Le(B.IconFileTypePpt,e),".py":e=>Bs(w1,e),".rs":e=>Le(B.IconFileTypeRs,e),".sql":e=>Le(B.IconFileTypeSql,e),".svg":e=>Le(B.IconFileTypeSvg,e),".ts":e=>Le(B.IconFileTypeTs,e),".tsx":e=>Le(B.IconFileTypeTsx,e),".txt":e=>Le(B.IconFileTypeTxt,e),".vue":e=>Le(B.IconFileTypeVue,e),".xls":e=>Le(B.IconFileTypeXls,e),".xml":e=>Le(B.IconFileTypeXml,e),".zip":e=>Le(B.IconFileTypeZip,e),default:e=>Le(B.IconFile,e)},mc=({extension:e,size:t=ne.size,stroke:s=ne.stroke,className:o,decorative:i=!1,label:n,indicator:r})=>{const a=(()=>{const u=e.trim().toLowerCase();return u.startsWith(".")?u:`.${u}`})(),c=(Ld[a]??Ld.default)({size:t,stroke:s}),d=n??`${a.slice(1).toUpperCase()} file icon`;return C.jsxs("span",{className:q("inline-flex relative",o),...i?{"aria-hidden":!0}:{role:"img","aria-label":d},children:[C.jsx(ke,{icon:c,className:"inline-block align-middle"}),r&&C.jsx("span",{className:"absolute -bottom-0.5 -left-0.5",children:r})]})},Vi=({label:e="Shared entity",size:t=10,className:s,stroke:o=2})=>C.jsx(ke,{className:ue("text-accent-primary",s),icon:C.jsx(B.IconArrowUpRight,{size:t,stroke:o,"aria-label":e,className:"bg-layer-3",role:"img"})}),Yr=({name:e,className:t,shared:s=!1,iconSize:o=ns,details:i})=>{const n=e.includes(".")?e.split(".").pop():null;return C.jsxs("div",{className:ue("flex items-center gap-2 w-full",t),children:[n&&C.jsx(mc,{extension:n,size:o,className:"text-secondary",indicator:s?C.jsx(Vi,{}):null,label:"File type icon"}),C.jsxs("div",{className:q(["w-full flex min-w-0",i&&"flex-col gap-1"]),children:[C.jsx(Bt,{className:"text-primary dial-small flex-1 min-w-0",text:e}),i]})]})},Zr=({name:e,className:t,shared:s=!1,loading:o=!1,iconSize:i=ns})=>{const n=()=>o?C.jsx(on,{size:i}):C.jsx(ke,{icon:C.jsx(B.IconFolder,{...ne,size:i}),className:"inline-block align-middle"});return C.jsxs("div",{className:ue("flex items-center gap-2 w-full",t),children:[C.jsxs("span",{className:"inline-flex relative text-secondary",role:"img",children:[n(),s&&C.jsx("span",{className:"absolute -bottom-0.5 -left-0.5",children:C.jsx(Vi,{})})]}),C.jsx(Bt,{className:"text-primary dial-small flex-1 min-w-0",text:e})]})};var zi=(e=>(e.Left="left",e.Right="right",e))(zi||{}),je=function(){return je=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},je.apply(this,arguments)},Od={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},Nd={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Pn={width:"20px",height:"20px",position:"absolute",zIndex:1},b1={top:je(je({},Od),{top:"-5px"}),right:je(je({},Nd),{left:void 0,right:"-5px"}),bottom:je(je({},Od),{top:void 0,bottom:"-5px"}),left:je(je({},Nd),{left:"-5px"}),topRight:je(je({},Pn),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:je(je({},Pn),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:je(je({},Pn),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:je(je({},Pn),{left:"-10px",top:"-10px",cursor:"nw-resize"})},S1=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 je(je({position:"absolute",userSelect:"none"},b1[s]),i??{})},[i,s]);return C.jsx("div",{className:n||void 0,style:l,onMouseDown:r,onTouchStart:a,children:o})}),y1=(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)}})(),Ut=function(){return Ut=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},Ut.apply(this,arguments)},x1={width:"auto",height:"auto"},Mn=function(e,t,s){return Math.max(Math.min(e,s),t)},Hd=function(e,t,s){var o=Math.round(e/t);return o*t+s*(o-1)},Eo=function(e,t){return new RegExp(e,"i").test(t)},Tn=function(e){return!!(e.touches&&e.touches.length)},R1=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},Gd=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},Ta=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")},In=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},F1=function(e,t,s,o,i,n,r){return o=In(o,e.width,t,s),i=In(i,e.height,t,s),n=In(n,e.width,t,s),r=In(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)}},E1=function(e){return Array.isArray(e)?e:[e,e]},D1=["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"],Bd="__resizable_base__",P1=(function(e){y1(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(Bd):c.className+=Bd,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 Ta(s.state[a])},n=o&&typeof o.width<"u"&&!this.state.isResizing?Ta(o.width):i("width"),r=o&&typeof o.height<"u"&&!this.state.isResizing?Ta(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&&Eo("left",n),a=i&&Eo("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=E1(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,m=d.width,v=d.height,w=p||0,b=f||0;return Eo("right",c)&&(m=d.width+(s-d.x)*r/i,h&&(v=(m-b)/this.ratio+w)),Eo("left",c)&&(m=d.width-(s-d.x)*r/i,h&&(v=(m-b)/this.ratio+w)),Eo("bottom",c)&&(v=d.height+(o-d.y)*a/i,h&&(m=(v-w)*this.ratio+b)),Eo("top",c)&&(v=d.height-(o-d.y)*a/i,h&&(m=(v-w)*this.ratio+b)),{newWidth:m,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,m=c||0;if(a){var v=(h-f)*this.ratio+m,w=(p-f)*this.ratio+m,b=(d-m)/this.ratio+f,S=(u-m)/this.ratio+f,y=Math.max(d,v),x=Math.min(u,w),F=Math.max(h,b),D=Math.min(p,S);s=Mn(s,y,x),o=Mn(o,F,D)}else s=Mn(s,d,u),o=Mn(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&&R1(s.nativeEvent)?(i=s.nativeEvent.clientX,n=s.nativeEvent.clientY):s.nativeEvent&&Tn(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:Ut(Ut({},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&&Tn(s))try{s.preventDefault(),s.stopPropagation()}catch{}var i=this.props,n=i.maxWidth,r=i.maxHeight,a=i.minWidth,l=i.minHeight,c=Tn(s)?s.touches[0].clientX:s.clientX,d=Tn(s)?s.touches[0].clientY:s.clientY,u=this.state,h=u.direction,p=u.original,f=u.width,m=u.height,v=this.getParentSize(),w=F1(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=Gd(y,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(S=Gd(S,this.props.snap.y,this.props.snapGap));var F=this.calculateNewSizeFromAspectRatio(y,S,{width:x.maxWidth,height:x.maxHeight},{width:a,height:l});if(y=F.newWidth,S=F.newHeight,this.props.grid){var D=Hd(y,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),R=Hd(S,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),P=this.props.snapGap||0,T=P===0||Math.abs(D-y)<=P?D:y,E=P===0||Math.abs(R-S)<=P?R:S;y=T,S=E}var M={width:y-p.width,height:S-p.height};if(this.delta=M,f&&typeof f=="string"){if(f.endsWith("%")){var A=y/v.width*100;y="".concat(A,"%")}else if(f.endsWith("vw")){var G=y/this.window.innerWidth*100;y="".concat(G,"vw")}else if(f.endsWith("vh")){var N=y/this.window.innerHeight*100;y="".concat(N,"vh")}}if(m&&typeof m=="string"){if(m.endsWith("%")){var A=S/v.height*100;S="".concat(A,"%")}else if(m.endsWith("vw")){var G=S/this.window.innerWidth*100;S="".concat(G,"vw")}else if(m.endsWith("vh")){var N=S/this.window.innerHeight*100;S="".concat(N,"vh")}}var Z={width:this.createSizeForCssProperty(y,"width"),height:this.createSizeForCssProperty(S,"height")};this.flexDir==="row"?Z.flexBasis=Z.width:this.flexDir==="column"&&(Z.flexBasis=Z.height);var te=this.state.width!==Z.width,O=this.state.height!==Z.height,Q=this.state.flexBasis!==Z.flexBasis,z=te||O||Q;z&&sn.flushSync(function(){o.setState(Z)}),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:Ut(Ut({},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?C.jsx(S1,{direction:u,onResizeStart:s.onResizeStart,replaceStyles:n&&n[u],className:r&&r[u],children:c&&c[u]?c[u]:null},u):null});return C.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 D1.indexOf(a)!==-1||(r[a]=s.props[a]),r},{}),i=Ut(Ut(Ut({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 C.jsxs(n,Ut({style:i,className:this.props.className},o,{ref:function(r){r&&(s.resizable=r)},children:[this.state.isResizing&&C.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 M1=({side:e,className:t})=>{const s=e===zi.Left,o=s?B.IconChevronLeft:B.IconChevronRight;return C.jsx("div",{className:t,children:C.jsx(o,{className:q("h-full",s&&"-ml-6")})})},T1=({side:e,isResizing:t,customHandler:s,handlerClassName:o})=>{const i=ue("invisible h-full w-0.5 group-hover:visible bg-accent-primary text-accent-primary cursor-col-resize transition-opacity",t&&"visible",o),n=C.jsx(M1,{side:e,className:i});return s?C.jsx("div",{className:i,children:s}):n},sg=({children:e,minWidth:t,maxWidth:s,width:o,defaultWidth:i,onResizeStop:n,onResize:r,side:a=zi.Right,resizeHandlerClassName:l,resizeHandler:c})=>{const[d,u]=g.useState(!1),[h,p]=g.useState(i),f=o!==void 0,m=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===zi.Left,x=C.jsx(T1,{side:a,isResizing:d,customHandler:c,handlerClassName:l});return{size:f?{width:m,height:"100%"}:void 0,defaultSize:f?void 0:{width:m,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:(F,D,R)=>{const P=Math.round(R.offsetWidth);r?.(P)},onResizeStop:b}},[a,f,m,t,s,c,l,d,w,b,r]);return C.jsx(P1,{ref:v,...S,children:C.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?C.jsx(sg,{...s,children:t}):t;var so=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 ls(e){return e==null||e===""?null:e}function j(e){return e!=null&&e!==""}function He(e){return!j(e)}function El(e){return e!=null&&typeof e.toString=="function"?e.toString():null}function Wi(e,t){const s=e?JSON.stringify(e):null,o=t?JSON.stringify(t):null;return s===o}function I1(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 k1=/[&<>"']/g,A1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function oi(e){return e?.toString().toString()??null}function Pi(e){return oi(e)?.replace(k1,t=>A1[t])??null}function $t(e){return e.eRootDiv.getRootNode()}function Be(e){return $t(e).activeElement}function Qe(e){const{gos:t,eRootDiv:s}=e;let o=null;const i=t.get("getDocument");return i&&j(i)?o=i():s&&(o=s.ownerDocument),o&&j(o)?o:document}function ig(e){const t=Be(e);return t===null||t===Qe(e).body}function ng(e){return Qe(e).defaultView||window}function Cc(e){let t=null,s=null;try{t=Qe(e).fullscreenElement}catch{}finally{t||(t=$t(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 L1(e){return Cc(e)?.clientWidth??(window.innerWidth||-1)}function O1(e){return Cc(e)?.clientHeight??(window.innerHeight||-1)}function zt(e,t,s){s==null||typeof s=="string"&&s==""?rg(e,t):Wt(e,t,s)}function Wt(e,t,s){e.setAttribute(ag(t),s.toString())}function rg(e,t){e.removeAttribute(ag(t))}function ag(e){return`aria-${e}`}function oo(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function N1(e){let t;return e==="asc"?t="ascending":e==="desc"?t="descending":e==="mixed"?t="other":t="none",t}function H1(e){return e.getAttribute("aria-label")}function Ko(e,t){zt(e,"label",t)}function _i(e,t){zt(e,"labelledby",t)}function lg(e,t){zt(e,"live",t)}function G1(e,t){zt(e,"atomic",t)}function B1(e,t){zt(e,"relevant",t)}function V1(e,t){zt(e,"invalid",t)}function z1(e,t){zt(e,"disabled",t)}function cg(e,t){zt(e,"hidden",t)}function Dl(e,t){Wt(e,"expanded",t)}function W1(e,t){Wt(e,"setsize",t)}function _1(e,t){Wt(e,"posinset",t)}function j1(e,t){Wt(e,"rowcount",t)}function dg(e,t){Wt(e,"rowindex",t)}function U1(e,t){Wt(e,"rowspan",t)}function $1(e,t){Wt(e,"colcount",t)}function ug(e,t){Wt(e,"colindex",t)}function K1(e,t){Wt(e,"colspan",t)}function q1(e,t){Wt(e,"sort",t)}function Y1(e){rg(e,"sort")}function hg(e,t){zt(e,"selected",t)}function Z1(e,t){zt(e,"controls",t)}function X1(e,t){Z1(e,t.id),_i(t,e.id)}function Vd(e,t){zt(e,"owns",t)}function Xr(e,t){return t===void 0?e("ariaIndeterminate","indeterminate"):t===!0?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}var Q1="[tabindex], input, select, button, textarea, [href]",gg="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function Mi(e){return!e||!e.matches("input, select, button, textarea")||!e.matches(gg)?!1:ps(e)}function Ge(e,t,s={}){const{skipAriaHidden:o}=s;e.classList.toggle("ag-hidden",!t),o||cg(e,!t)}function J1(e,t,s={}){const{skipAriaHidden:o}=s;e.classList.toggle("ag-invisible",!t),o||cg(e,!t)}function ji(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 Ks(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 go(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:m}=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:m}}function vc(e){const t=go(e);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom-t.borderTopWidth-t.borderBottomWidth:t.height}function Ui(e){const t=go(e);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight-t.borderLeftWidth-t.borderRightWidth:t.width}function pg(e){const{height:t,marginBottom:s,marginTop:o}=go(e);return Math.floor(t+s+o)}function cr(e){const{width:t,marginLeft:s,marginRight:o}=go(e);return Math.floor(t+s+o)}function fg(e){const t=e.getBoundingClientRect(),{borderTopWidth:s,borderLeftWidth:o,borderRightWidth:i,borderBottomWidth:n}=go(e);return{top:t.top+(s||0),left:t.left+(o||0),right:t.right+(i||0),bottom:t.bottom+(n||0)}}function dr(e,t){let s=e.scrollLeft;return t&&(s=Math.abs(s)),s}function ur(e,t,s){s&&(t*=-1),e.scrollLeft=t}function gt(e){for(;e?.firstChild;)e.firstChild.remove()}function Ms(e){e?.parentNode&&e.remove()}function mg(e){return!!e.offsetParent}function ps(e){return e.checkVisibility?e.checkVisibility({checkVisibilityCSS:!0}):!(!mg(e)||window.getComputedStyle(e).visibility!=="visible")}function wc(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function $n(e){return()=>{const t=e();return t?bc(t)||Cg(t):!0}}function bc(e){return e.clientWidth<e.scrollWidth}function Cg(e){return e.clientHeight<e.scrollHeight}function hr(e,t){t==="flex"?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):Xt(e,t)}function Xt(e,t){t=Sc(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function Ti(e,t){t=Sc(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function Sc(e){return typeof e=="number"?`${e}px`:e}function yc(e){return e instanceof Node||e instanceof HTMLElement}function wt(e,t,s){s==null||s===""?e.removeAttribute(t):e.setAttribute(t,s.toString())}function fs(e,t,s){const i=ng(e).ResizeObserver,n=i?new i(s):null;return n?.observe(t),()=>n?.disconnect()}function ms(e,t){const s=ng(e);s.requestAnimationFrame?s.requestAnimationFrame(t):s.webkitRequestAnimationFrame?s.webkitRequestAnimationFrame(t):s.setTimeout(t,0)}var vg="data-ref",Ia;function zd(){return Ia??(Ia=document.createTextNode(" ")),Ia.cloneNode()}function nn(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(vg,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(zd()),l=!1),a.append(nn(c)),a.appendChild(zd())))}return a}var eb=["touchstart","touchend","touchmove","touchcancel","scroll"],tb=["wheel"],ka={},wg=(()=>{const e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return s=>{if(typeof ka[s]=="boolean")return ka[s];const o=document.createElement(e[s]||"div");return s="on"+s,ka[s]=s in o}})();function sb(e,t){return!t||!e?!1:ib(t).indexOf(e)>=0}function ob(e){const t=[];let s=e.target;for(;s;)t.push(s),s=s.parentElement;return t}function ib(e){const t=e;return t.path?t.path:t.composedPath?t.composedPath():ob(t)}function nb(e,t,s){const o=rb(t);let i;o!=null&&(i={passive:o}),e.addEventListener(t,s,i)}var rb=e=>{const t=eb.includes(e),s=tb.includes(e);if(t)return!0;if(s)return!1};function bg(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 Ii=(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 $i(e,t){return e.gos.isElementInThisInstance(t.target)}function ab(e,t,s){const i=e.getBoundingClientRect().height,n=L1(s)-2,r=O1(s)-2;if(!e.offsetParent)return;const l=fg(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,m=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+m&&(u=r+m-e.clientHeight),u<0&&(u=0),e.style.left=`${h}px`,e.style.top=`${u}px`}var Kn=(e,...t)=>{for(const s of t){const[o,i,n,r]=s;o.addEventListener(i,n,r),e.push(s)}},xc=e=>{if(e){for(const[t,s,o,i]of e)t.removeEventListener(s,o,i);e.length=0}},Rs=e=>{e.cancelable&&e.preventDefault()};function lb(e,t){return t}function Sg(e){return e?.getLocaleTextFunc()??lb}function cb(e,t,s,o){const i=t[s];return e.getLocaleTextFunc()(s,typeof i=="function"?i(o):i,o)}function db(e){return(t,s,o)=>e({key:t,defaultValue:s,variableValues:o})}function ub(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 es=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 so),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(hb(e))e.__addEventListener(t,s),o=()=>(e.__removeEventListener(t,s),null);else{const i=gb(e);e instanceof HTMLElement?nb(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 Sg(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 hb(e){return e.__addEventListener!==void 0}function gb(e){return e.eventServiceType==="global"}var L=class extends es{},Wd={};function Rc(e,t){Wd[t]||(e(),Wd[t]=!0)}var pb={pending:!1,funcs:[]},fb={pending:!1,funcs:[]};function Pl(e,t="setTimeout",s){const o=t==="raf"?fb:pb;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"?ms(s,i):window.setTimeout(i,0)}function tt(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 _d(e,t){let s=0;return function(...o){const i=this,n=Date.now();n-s<t||(s=n,e.apply(i,o))}}function mb(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 yg=new Set(["__proto__","constructor","prototype"]);function Cb(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=>!yg.has(o)))t(s,e[s])}}function ct(e,t,s=!0,o=!1){j(t)&&Cb(t,(i,n)=>{let r=e[i];r!==n&&(o&&r==null&&n!=null&&typeof n=="object"&&n.constructor===Object&&(r={},e[i]=r),jd(n)&&jd(r)&&!Array.isArray(r)?ct(r,n,s,o):(s||n!==void 0)&&(e[i]=n))})}function jd(e){return typeof e=="object"&&e!==null}var Fc=class os{static applyGlobalGridOptions(t){if(!os.gridOptions)return{...t};let s={};return ct(s,os.gridOptions,!0,!0),os.mergeStrategy==="deep"?ct(s,t,!0,!0):s={...s,...t},os.gridOptions.context&&(s.context=os.gridOptions.context),t.context&&(os.mergeStrategy==="deep"&&s.context&&ct(t.context,s.context,!0,!0),s.context=t.context),s}static applyGlobalGridOption(t,s){if(os.mergeStrategy==="deep"){const o=xg(t);if(o&&typeof o=="object"&&typeof s=="object")return os.applyGlobalGridOptions({[t]:s})[t]}return s}};Fc.gridOptions=void 0;Fc.mergeStrategy="shallow";var Ec=Fc;function xg(e){return Ec.gridOptions?.[e]}var Rg={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},Fg="https://www.ag-grid.com";function io(e,t,...s){e.get("debug")&&console.log("AG Grid: "+t,...s)}function ki(e,...t){Rc(()=>console.warn("AG Grid: "+e,...t),e+t?.join(""))}function Oo(e,...t){Rc(()=>console.error("AG Grid: "+e,...t),e+t?.join(""))}var Eg=new Set,gr={},qs={},qn,Dg=!1,Pg=!1,vb=!1;function wb(e){const[t,s]=e.version.split(".")||[],[o,i]=qn.split(".")||[];return t===o&&s===i}function bb(e){qn||(qn=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?wb(e)||Oo(t(`'${e.moduleName}' is version ${e.version} but the other modules are version ${qn}.`)):Oo(t(`'${e.moduleName}' is incompatible.`));const s=e.validate?.();s&&!s.isValid&&Oo(`${s.message}`)}function Ki(e,t,s=!1){s||(Dg=!0),bb(e);const o=e.rowModels??["all"];Eg.add(e);let i;t!==void 0?(Pg=!0,qs[t]===void 0&&(qs[t]={}),i=qs[t]):i=gr;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)Ki(n,t,s)}function Sb(e){delete qs[e]}function Ml(e,t,s){const o=i=>!!gr[i]?.[e]||!!qs[t]?.[i]?.[e];return o(s)||o("all")}function Dc(){return Pg}function yb(e,t){const s=qs[e]??{};return[...Object.values(gr.all??{}),...Object.values(s.all??{}),...Object.values(gr[t]??{}),...Object.values(s[t]??{})]}function xb(){return new Set(Eg)}function Rb(e,t){const s=qs[e]??{};return[...Object.values(s.all??{}),...Object.values(s[t]??{})]}function Fb(){return Dg}function Eb(){return vb}var Db=class{static register(e){Ki(e,void 0)}static registerModules(e){for(const t of e)Ki(t,void 0)}},_="34.3.0",Ud=2e3,$d=100,Mg="_version_",Tg=null,No=`${Fg}/javascript-data-grid`;function Pb(e){Tg=e}function Mb(e){No=e}function Ig(e,t,s){return Tg?.(e,t)??[Ab(e,t,s)]}function Pc(e,t,s,o,i){e(`${o?"warning":"error"} #${t}`,...Ig(t,s,i))}function Tb(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 Ib(e){let t=e;return e instanceof Error?t=e.toString():typeof e=="object"&&(t=Tb(e)),t}function pr(e){return e===void 0?"undefined":e===null?"null":e}function Tl(e,t){return`${e}?${t.toString()}`}function kb(e,t,s){const o=Array.from(t.entries()).sort((n,r)=>r[1].length-n[1].length);let i=Tl(e,t);for(const[n,r]of o){if(n===Mg)continue;const a=i.length-s;if(a<=0)break;const l="...",c=a+l.length,d=r.length-c>$d?r.slice(0,r.length-c)+l:r.slice(0,$d)+l;t.set(n,d),i=Tl(e,t)}return i}function kg(e,t){const s=new URLSearchParams;if(s.append(Mg,_),t)for(const n of Object.keys(t))s.append(n,Ib(t[n]));const o=`${No}/errors/${e}`,i=Tl(o,s);return i.length<=Ud?i:kb(o,s,Ud)}var Ab=(e,t,s)=>{const o=kg(e,t);return`${`${s?s+`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react/jsx-runtime"),q=require("classnames"),we=require("@floating-ui/react"),g=require("react"),B=require("@tabler/icons-react"),sn=require("react-dom");function rC(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 he=rC(g),Ps=({errorText:e})=>e&&C.jsx("span",{className:"text-error dial-tiny mt-1",children:e}),ke=({icon:e,className:t})=>e?C.jsx("span",{className:q("flex-shrink-0",t),children:e}):null,aC=7,lC=2,Dh=g.createContext(null),Ph=()=>{const e=g.useContext(Dh);if(e==null)throw new Error("Tooltip components must be wrapped in <Tooltip />");return e},cC=({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=we.useFloating({placement:t,open:l,onOpenChange:c,whileElementsMounted:we.autoUpdate,middleware:[we.offset(aC+lC),we.flip({crossAxis:t.includes("-"),fallbackAxisSideDirection:"start",padding:5}),we.shift({padding:5}),we.arrow({element:a})]}),u=we.useHover(d.context,{move:!1,enabled:o==null,mouseOnly:s,delay:{open:500,close:0}}),h=we.useFocus(d.context,{enabled:o==null}),p=we.useDismiss(d.context),f=we.useRole(d.context,{role:"tooltip"}),m=we.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,...m,...d}),[l,c,m,d])},Mh=({children:e,...t})=>{const s=cC(t);return C.jsx(Dh.Provider,{value:s,children:e})},Th=({style:e,...t})=>{const s=Ph(),o=g.useRef(null),i=we.useMergeRefs([s.refs.setFloating,o]);return s.open?C.jsx(we.FloatingPortal,{id:"tooltip-portal",children:C.jsxs("div",{ref:i,style:{...s.floatingStyles,...e},...s.getFloatingProps(t),className:q("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,C.jsx(we.FloatingArrow,{ref:s.arrowRef,context:s.context,fill:"currentColor",strokeWidth:1,className:"border-primary w-2 text-[var(--bg-layer-0,_#000000)]"})]})}):null},Ih=({children:e,asChild:t=!1,...s})=>{const o=Ph(),i=t&&g.isValidElement(e),n=i?e.props?.ref:null,r=we.useMergeRefs([o.refs.setReference,...n?[n]:[]]);return i?g.cloneElement(e,o.getReferenceProps({...e.props,...s,ref:r})):C.jsx("span",{ref:r,...o.getReferenceProps(s),className:s.className??"dial-tooltip-trigger text-left",children:e})},gs=({hideTooltip:e,tooltip:t,children:s,triggerClassName:o,contentClassName:i,...n})=>C.jsxs(Mh,{...n,children:[C.jsx(Ih,{className:q(o,"truncate"),children:s}),C.jsx(Th,{className:q("text-primary",i,"max-w-[300px]",(e||!t)&&"hidden"),children:t})]}),cc="-",dC=e=>{const t=hC(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:r=>{const a=r.split(cc);return a[0]===""&&a.length!==1&&a.shift(),kh(a,t)||uC(r)},getConflictingClassGroupIds:(r,a)=>{const l=s[r]||[];return a&&o[r]?[...l,...o[r]]:l}}},kh=(e,t)=>{if(e.length===0)return t.classGroupId;const s=e[0],o=t.nextPart.get(s),i=o?kh(e.slice(1),o):void 0;if(i)return i;if(t.validators.length===0)return;const n=e.join(cc);return t.validators.find(({validator:r})=>r(n))?.classGroupId},vd=/^\[(.+)\]$/,uC=e=>{if(vd.test(e)){const t=vd.exec(e)[1],s=t?.substring(0,t.indexOf(":"));if(s)return"arbitrary.."+s}},hC=e=>{const{theme:t,classGroups:s}=e,o={nextPart:new Map,validators:[]};for(const i in s)wl(s[i],o,i,t);return o},wl=(e,t,s,o)=>{e.forEach(i=>{if(typeof i=="string"){const n=i===""?t:wd(t,i);n.classGroupId=s;return}if(typeof i=="function"){if(gC(i)){wl(i(o),t,s,o);return}t.validators.push({validator:i,classGroupId:s});return}Object.entries(i).forEach(([n,r])=>{wl(r,wd(t,n),s,o)})})},wd=(e,t)=>{let s=e;return t.split(cc).forEach(o=>{s.nextPart.has(o)||s.nextPart.set(o,{nextPart:new Map,validators:[]}),s=s.nextPart.get(o)}),s},gC=e=>e.isThemeGetter,pC=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)}}},bl="!",Sl=":",fC=Sl.length,mC=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 m=i[f];if(r===0&&a===0){if(m===Sl){n.push(i.slice(l,f)),l=f+fC;continue}if(m==="/"){c=f;continue}}m==="["?r++:m==="]"?r--:m==="("?a++:m===")"&&a--}const d=n.length===0?i:i.substring(l),u=CC(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+Sl,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},CC=e=>e.endsWith(bl)?e.substring(0,e.length-1):e.startsWith(bl)?e.substring(1):e,vC=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}},wC=e=>({cache:pC(e.cacheSize),parseClassName:mC(e),sortModifiers:vC(e),...dC(e)}),bC=/\s+/,SC=(e,t)=>{const{parseClassName:s,getClassGroupId:o,getConflictingClassGroupIds:i,sortModifiers:n}=t,r=[],a=e.trim().split(bC);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:m}=s(d);if(u){l=d+(l.length>0?" "+l:l);continue}let v=!!m,w=o(v?f.substring(0,m):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+bl:b,y=S+w;if(r.includes(y))continue;r.push(y);const x=i(w,v);for(let F=0;F<x.length;++F){const D=x[F];r.push(S+D)}l=d+(l.length>0?" "+l:l)}return l};function yC(){let e=0,t,s,o="";for(;e<arguments.length;)(t=arguments[e++])&&(s=Ah(t))&&(o&&(o+=" "),o+=s);return o}const Ah=e=>{if(typeof e=="string")return e;let t,s="";for(let o=0;o<e.length;o++)e[o]&&(t=Ah(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=wC(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=SC(l,s);return i(l,d),d}return function(){return n(yC.apply(null,arguments))}}const Ke=e=>{const t=s=>s[e]||[];return t.isThemeGetter=!0,t},Lh=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Oh=/^\((?:(\w[\w-]*):)?(.+)\)$/i,RC=/^\d+\/\d+$/,FC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,EC=/\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$/,DC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,PC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,MC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xo=e=>RC.test(e),Ce=e=>!!e&&!Number.isNaN(Number(e)),bs=e=>!!e&&Number.isInteger(Number(e)),xa=e=>e.endsWith("%")&&Ce(e.slice(0,-1)),ts=e=>FC.test(e),TC=()=>!0,IC=e=>EC.test(e)&&!DC.test(e),Nh=()=>!1,kC=e=>PC.test(e),AC=e=>MC.test(e),LC=e=>!J(e)&&!ee(e),OC=e=>ei(e,Bh,Nh),J=e=>Lh.test(e),Gs=e=>ei(e,Vh,IC),Ra=e=>ei(e,VC,Ce),bd=e=>ei(e,Hh,Nh),NC=e=>ei(e,Gh,AC),En=e=>ei(e,zh,kC),ee=e=>Oh.test(e),Ci=e=>ti(e,Vh),HC=e=>ti(e,zC),Sd=e=>ti(e,Hh),GC=e=>ti(e,Bh),BC=e=>ti(e,Gh),Dn=e=>ti(e,zh,!0),ei=(e,t,s)=>{const o=Lh.exec(e);return o?o[1]?t(o[1]):s(o[2]):!1},ti=(e,t,s=!1)=>{const o=Oh.exec(e);return o?o[1]?t(o[1]):s:!1},Hh=e=>e==="position"||e==="percentage",Gh=e=>e==="image"||e==="url",Bh=e=>e==="length"||e==="size"||e==="bg-size",Vh=e=>e==="length",VC=e=>e==="number",zC=e=>e==="family-name",zh=e=>e==="shadow",WC=()=>{const e=Ke("color"),t=Ke("font"),s=Ke("text"),o=Ke("font-weight"),i=Ke("tracking"),n=Ke("leading"),r=Ke("breakpoint"),a=Ke("container"),l=Ke("spacing"),c=Ke("radius"),d=Ke("shadow"),u=Ke("inset-shadow"),h=Ke("text-shadow"),p=Ke("drop-shadow"),f=Ke("blur"),m=Ke("perspective"),v=Ke("aspect"),w=Ke("ease"),b=Ke("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(),ee,J],F=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],R=()=>[ee,J,l],P=()=>[xo,"full","auto",...R()],T=()=>[bs,"none","subgrid",ee,J],E=()=>["auto",{span:["full",bs,ee,J]},bs,ee,J],M=()=>[bs,"auto",ee,J],A=()=>["auto","min","max","fr",ee,J],G=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],N=()=>["start","end","center","stretch","center-safe","end-safe"],Z=()=>["auto",...R()],te=()=>[xo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],O=()=>[e,ee,J],Q=()=>[...y(),Sd,bd,{position:[ee,J]}],z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],W=()=>["auto","cover","contain",GC,OC,{size:[ee,J]}],$=()=>[xa,Ci,Gs],K=()=>["","none","full",c,ee,J],U=()=>["",Ce,Ci,Gs],X=()=>["solid","dashed","dotted","double"],ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],k=()=>[Ce,xa,Sd,bd],oe=()=>["","none",f,ee,J],ve=()=>["none",Ce,ee,J],re=()=>["none",Ce,ee,J],xe=()=>[Ce,ee,J],be=()=>[xo,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ts],breakpoint:[ts],color:[TC],container:[ts],"drop-shadow":[ts],ease:["in","out","in-out"],font:[LC],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ts],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ts],shadow:[ts],spacing:["px",Ce],text:[ts],"text-shadow":[ts],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",xo,J,ee,v]}],container:["container"],columns:[{columns:[Ce,J,ee,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:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{start:P()}],end:[{end:P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[bs,"auto",ee,J]}],basis:[{basis:[xo,"full","auto",a,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ce,xo,"auto","initial","none",J]}],grow:[{grow:["",Ce,ee,J]}],shrink:[{shrink:["",Ce,ee,J]}],order:[{order:[bs,"first","last","none",ee,J]}],"grid-cols":[{"grid-cols":T()}],"col-start-end":[{col:E()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":T()}],"row-start-end":[{row:E()}],"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":A()}],"auto-rows":[{"auto-rows":A()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...G(),"normal"]}],"justify-items":[{"justify-items":[...N(),"normal"]}],"justify-self":[{"justify-self":["auto",...N()]}],"align-content":[{content:["normal",...G()]}],"align-items":[{items:[...N(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...N(),{baseline:["","last"]}]}],"place-content":[{"place-content":G()}],"place-items":[{"place-items":[...N(),"baseline"]}],"place-self":[{"place-self":["auto",...N()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:Z()}],mx:[{mx:Z()}],my:[{my:Z()}],ms:[{ms:Z()}],me:[{me:Z()}],mt:[{mt:Z()}],mr:[{mr:Z()}],mb:[{mb:Z()}],ml:[{ml:Z()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:te()}],w:[{w:[a,"screen",...te()]}],"min-w":[{"min-w":[a,"screen","none",...te()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[r]},...te()]}],h:[{h:["screen","lh",...te()]}],"min-h":[{"min-h":["screen","lh","none",...te()]}],"max-h":[{"max-h":["screen","lh",...te()]}],"font-size":[{text:["base",s,Ci,Gs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,ee,Ra]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xa,J]}],"font-family":[{font:[HC,J,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,ee,J]}],"line-clamp":[{"line-clamp":[Ce,"none",ee,Ra]}],leading:[{leading:[n,...R()]}],"list-image":[{"list-image":["none",ee,J]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ee,J]}],"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:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ce,"from-font","auto",ee,Gs]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[Ce,"auto",ee,J]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ee,J]}],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",ee,J]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Q()}],"bg-repeat":[{bg:z()}],"bg-size":[{bg:W()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},bs,ee,J],radial:["",ee,J],conic:[bs,ee,J]},BC,NC]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:$()}],"gradient-via-pos":[{via:$()}],"gradient-to-pos":[{to:$()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:K()}],"rounded-s":[{"rounded-s":K()}],"rounded-e":[{"rounded-e":K()}],"rounded-t":[{"rounded-t":K()}],"rounded-r":[{"rounded-r":K()}],"rounded-b":[{"rounded-b":K()}],"rounded-l":[{"rounded-l":K()}],"rounded-ss":[{"rounded-ss":K()}],"rounded-se":[{"rounded-se":K()}],"rounded-ee":[{"rounded-ee":K()}],"rounded-es":[{"rounded-es":K()}],"rounded-tl":[{"rounded-tl":K()}],"rounded-tr":[{"rounded-tr":K()}],"rounded-br":[{"rounded-br":K()}],"rounded-bl":[{"rounded-bl":K()}],"border-w":[{border: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:[...X(),"hidden","none"]}],"divide-style":[{divide:[...X(),"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:[...X(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ce,ee,J]}],"outline-w":[{outline:["",Ce,Ci,Gs]}],"outline-color":[{outline:O()}],shadow:[{shadow:["","none",d,Dn,En]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",u,Dn,En]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[Ce,Gs]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":["none",h,Dn,En]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[Ce,ee,J]}],"mix-blend":[{"mix-blend":[...ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ce()}],"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":[Ce]}],"mask-image-linear-from-pos":[{"mask-linear-from":k()}],"mask-image-linear-to-pos":[{"mask-linear-to":k()}],"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":k()}],"mask-image-t-to-pos":[{"mask-t-to":k()}],"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":k()}],"mask-image-r-to-pos":[{"mask-r-to":k()}],"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":k()}],"mask-image-b-to-pos":[{"mask-b-to":k()}],"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":k()}],"mask-image-l-to-pos":[{"mask-l-to":k()}],"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":k()}],"mask-image-x-to-pos":[{"mask-x-to":k()}],"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":k()}],"mask-image-y-to-pos":[{"mask-y-to":k()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[ee,J]}],"mask-image-radial-from-pos":[{"mask-radial-from":k()}],"mask-image-radial-to-pos":[{"mask-radial-to":k()}],"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":[Ce]}],"mask-image-conic-from-pos":[{"mask-conic-from":k()}],"mask-image-conic-to-pos":[{"mask-conic-to":k()}],"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:Q()}],"mask-repeat":[{mask:z()}],"mask-size":[{mask:W()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ee,J]}],filter:[{filter:["","none",ee,J]}],blur:[{blur:oe()}],brightness:[{brightness:[Ce,ee,J]}],contrast:[{contrast:[Ce,ee,J]}],"drop-shadow":[{"drop-shadow":["","none",p,Dn,En]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:["",Ce,ee,J]}],"hue-rotate":[{"hue-rotate":[Ce,ee,J]}],invert:[{invert:["",Ce,ee,J]}],saturate:[{saturate:[Ce,ee,J]}],sepia:[{sepia:["",Ce,ee,J]}],"backdrop-filter":[{"backdrop-filter":["","none",ee,J]}],"backdrop-blur":[{"backdrop-blur":oe()}],"backdrop-brightness":[{"backdrop-brightness":[Ce,ee,J]}],"backdrop-contrast":[{"backdrop-contrast":[Ce,ee,J]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ce,ee,J]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ce,ee,J]}],"backdrop-invert":[{"backdrop-invert":["",Ce,ee,J]}],"backdrop-opacity":[{"backdrop-opacity":[Ce,ee,J]}],"backdrop-saturate":[{"backdrop-saturate":[Ce,ee,J]}],"backdrop-sepia":[{"backdrop-sepia":["",Ce,ee,J]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ee,J]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ce,"initial",ee,J]}],ease:[{ease:["linear","initial",w,ee,J]}],delay:[{delay:[Ce,ee,J]}],animate:[{animate:["none",b,ee,J]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,ee,J]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ve()}],"rotate-x":[{"rotate-x":ve()}],"rotate-y":[{"rotate-y":ve()}],"rotate-z":[{"rotate-z":ve()}],scale:[{scale:re()}],"scale-x":[{"scale-x":re()}],"scale-y":[{"scale-y":re()}],"scale-z":[{"scale-z":re()}],"scale-3d":["scale-3d"],skew:[{skew:xe()}],"skew-x":[{"skew-x":xe()}],"skew-y":[{"skew-y":xe()}],transform:[{transform:[ee,J,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:be()}],"translate-x":[{"translate-x":be()}],"translate-y":[{"translate-y":be()}],"translate-z":[{"translate-z":be()}],"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",ee,J]}],"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":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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",ee,J]}],fill:[{fill:["none",...O()]}],"stroke-w":[{stroke:[Ce,Ci,Gs,Ra]}],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"]}},_C=xC(WC);function ue(...e){return _C(q(e))}const ho=({fieldTitle:e,optional:t,optionalText:s,className:o,description:i,...n})=>e?C.jsxs("label",{...n,className:ue("dial-tiny text-secondary flex gap-1",o,!o?.includes("mb")&&"mb-2"),children:[typeof e=="string"?C.jsx("span",{className:"min-h-4",children:e}):e,t&&C.jsx("span",{children:s??"(Optional)"}),i&&C.jsx(gs,{tooltip:i,children:C.jsx(ke,{icon:C.jsx(B.IconInfoCircle,{size:14,className:"text-secondary"})})})]}):null;var Me=(e=>(e.Primary="primary",e.Secondary="secondary",e.Tertiary="tertiary",e.Danger="danger",e))(Me||{});const jC={[Me.Primary]:"dial-primary-button",[Me.Secondary]:"dial-secondary-button",[Me.Tertiary]:"dial-tertiary-button",[Me.Danger]:"dial-danger-button"},Fe=({label:e,variant:t,className:s,textClassName:o,iconAfter:i,iconBefore:n,hideTitleOnMobile:r,type:a="button",...l})=>{const c=q("dial-small-semi",i?"mr-2":"",n?"ml-2":"",r?"hidden sm:inline":"inline",o),d=q(t&&jC[t],"disabled:cursor-not-allowed focus-visible:outline outline-offset-0",s);return C.jsxs("button",{...l,type:a,className:d,"aria-label":e||l["aria-label"],children:[C.jsx(ke,{icon:n}),e&&C.jsx("span",{className:c,children:e}),C.jsx(ke,{icon:i})]})};var Ws=(e=>(e.Info="info",e.Success="success",e.Warning="warning",e.Error="error",e))(Ws||{});const UC={info:C.jsx(B.IconInfoCircle,{size:24,stroke:2}),error:C.jsx(B.IconAlertCircle,{size:24,stroke:2}),warning:C.jsx(B.IconAlertTriangle,{size:24,stroke:2}),success:C.jsx(B.IconCircleCheck,{size:24,stroke:2})},$C={[Ws.Info]:"bg-info border-info text-info",[Ws.Success]:"bg-success border-success text-success",[Ws.Warning]:"bg-warning border-warning text-warning",[Ws.Error]:"bg-error border-error text-error"},KC="items-center justify-between gap-2 p-3 border border-solid dial-small-150 rounded flex",qC=({variant:e=Ws.Info,message:t,className:s,closable:o=!1,onClose:i})=>C.jsxs("div",{role:"alert",className:q(KC,$C[e],s),children:[C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx(ke,{icon:UC[e]}),C.jsx("div",{className:"text-primary",children:t})]}),o&&C.jsx(Fe,{className:"ml-2 text-secondary hover:text-primary","aria-label":"Close alert",iconBefore:C.jsx(B.IconX,{size:16}),onClick:i})]}),YC="flex items-center justify-center text-secondary",ZC="shrink-0 grow-0 basis-auto animate-spin-steps",XC=e=>he.createElement("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},he.createElement("path",{d:"M24 39V46.5",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),he.createElement("path",{opacity:.4,d:"M9 24H1.5",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),he.createElement("path",{opacity:.5,d:"M8.0918 8.0918L13.3994 13.3994",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),he.createElement("path",{opacity:.6,d:"M24 1.5V9",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),he.createElement("path",{opacity:.7,d:"M39.9121 8.08594L37.2607 10.7373L34.6094 13.3887",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),he.createElement("path",{opacity:.8,d:"M46.5 24H39",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),he.createElement("path",{opacity:.9,d:"M34.6055 34.6055L39.9082 39.9082",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),he.createElement("path",{opacity:.3,d:"M13.3936 34.6055L8.08594 39.9131",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"})),on=({size:e=18,className:t,iconClassName:s,fullWidth:o=!0,ariaLabel:i="Loading"})=>C.jsx("div",{role:"status",className:q({[YC]:!0,"w-full h-full":o,[t||""]:!!t}),children:C.jsx(ke,{icon:C.jsx(XC,{width:e,height:e,className:q(ZC,s),role:"img","aria-label":i})})}),ns=18,ne={size:ns,stroke:2},QC="text-primary",Bt=({text:e,className:t,contentClassName:s,hideTooltip:o,...i})=>{const n=g.useRef(null),[r,a]=g.useState(!1),[l,c]=g.useState(""),d=g.useRef(null),u=()=>{const m=n.current;if(!m)return;c(m.textContent??"");const v=m.clientWidth,w=m.scrollWidth,b=Math.ceil(m.getBoundingClientRect().width);a(w>v||w>b)},h=g.useCallback(()=>{d.current&&cancelAnimationFrame(d.current),d.current=requestAnimationFrame(u)},[]);g.useEffect(()=>{h();const m=()=>h();window.addEventListener("resize",m);let v=null;return"ResizeObserver"in window&&n.current&&(v=new ResizeObserver(()=>h()),v.observe(n.current)),()=>{window.removeEventListener("resize",m),v&&v.disconnect(),d.current&&cancelAnimationFrame(d.current)}},[e,h]);const p=g.useMemo(()=>typeof e=="string"?e:l,[l,e]),f=g.useMemo(()=>o?"":r?p:"",[p,o,r]);return C.jsxs(Mh,{...i,children:[C.jsx(Ih,{asChild:!0,onMouseEnter:h,onFocusCapture:h,children:C.jsx("span",{className:ue("block truncate flex-1 min-w-0 max-w-full text-left",t),"aria-label":r?p:void 0,onMouseEnter:h,onFocus:h,ref:n,children:e})}),C.jsx(Th,{className:ue(QC,s,!f&&"hidden"),children:f})]})},Gi=({label:e,id:t,checked:s,indeterminate:o,disabled:i,ariaLabel:n,onChange:r,className:a})=>{const l=g.useCallback(h=>{r?.(h.target.checked,t)},[r,t]),c=q("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),d=q("border rounded",i?"bg-layer-4 border-icon-secondary":""),u=()=>o?C.jsx(B.IconMinus,{className:d,...ne}):s?C.jsx(B.IconCheck,{className:d,...ne}):null;return C.jsxs("label",{className:c,htmlFor:t,children:[u(),e&&(typeof e=="string"?C.jsx(Bt,{text:e,className:"ml-2 text-primary"}):e),C.jsx("input",{type:"checkbox",role:"checkbox",name:t,onChange:l,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 vt=(e=>(e.VALID="valid",e.ERROR="error",e))(vt||{});const JC=(e,t)=>{if(t===e.id)switch(e.status){case vt.VALID:return"border-accent-secondary text-primary";case vt.ERROR:return"border-red-900 text-primary";default:return"border-accent-primary text-primary"}switch(e.status){case vt.VALID:return"border-primary text-primary";case vt.ERROR:return"border-red-900 text-error";default:return"border-primary text-secondary"}},ev=(e,t)=>{if(t===e.id)switch(e.status){case vt.VALID:return"bg-accent-secondary";case vt.ERROR:return"bg-red-400";default:return"bg-accent-primary"}switch(e.status){case vt.VALID:return"bg-accent-secondary";case vt.ERROR:return"bg-red-400";default:return"bg-layer-4"}},tv=({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===vt.ERROR?C.jsx(B.IconExclamationCircle,{stroke:2,size:16}):s!==e.id&&e.status===vt.VALID?C.jsx(B.IconCheck,{stroke:2,size:16}):t+1;return C.jsxs("button",{className:q(i,JC(e,s)),onClick:()=>o(e.id),children:[C.jsx("span",{className:q(n,ev(e,s)),children:r()}),C.jsx("span",{children:e.name})]})},sv=({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===vt.VALID||r<n)&&s(i)};return C.jsx("div",{id:"steps",className:"flex gap-x-3",children:e.map((i,n)=>C.jsx(tv,{currentStep:t,onChangeStep:o,step:i,index:n},i.id))})},Wh=({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=q("dial-small cursor-pointer",l?"text-secondary":"text-primary",a),p=q("cursor-pointer dial-input-radio",s&&"mr-2",r),f=q("flex flex-col",!!o&&"mb-2"),m=q("dial-tiny mt-2 ml-[26px] text-secondary",d),v=w=>{l||w.target.checked&&c?.(t)};return C.jsxs("div",{className:f,children:[C.jsxs("div",{className:"flex flex-row items-center",children:[C.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?C.jsx("label",{className:h,htmlFor:n,children:s}):null]}),i&&o&&C.jsx("div",{id:u,className:m,children:o})]})};var Bi=(e=>(e.Vertical="vertical",e.Horizontal="horizontal",e))(Bi||{});const ov="w-full flex",iv={[Bi.Vertical]:"flex-col",[Bi.Horizontal]:"flex-row items-end"},Vr=({elementId:e,label:t,optional:s,optionalText:o,description:i,error:n,orientation:r=Bi.Vertical,labelVisuallyHidden:a=!1,className:l,labelClassName:c,errorClassName:d,childrenClassName:u,captionDescription:h,readonly:p,value:f,defaultEmptyText:m,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,F=g.useCallback(()=>typeof n=="boolean"?null:typeof n=="string"||typeof n>"u"?n?C.jsx("div",{id:S,role:"alert","aria-live":"polite",className:d,children:C.jsx(Ps,{errorText:n})}):null:C.jsx("div",{id:S,role:"alert","aria-live":"polite",className:d,children:n}),[n,d,S]),D=g.useCallback(()=>f?typeof f=="string"||typeof f=="number"?C.jsx("span",{"aria-readonly":"true",children:f}):f:C.jsx("span",{className:"flex min-h-4","aria-readonly":"true",children:m??"None"}),[f,m]);return C.jsxs("div",{role:"group","aria-labelledby":t?w:void 0,"aria-describedby":x,className:ue(ov,iv[r],l),children:[t&&C.jsx("div",{id:w,className:ue(r==="horizontal"&&"shrink-0"),children:C.jsx(ho,{htmlFor:e,fieldTitle:t,optional:s,optionalText:o,className:ue(a&&"sr-only",c),description:i})}),C.jsxs("div",{className:ue("min-w-0 w-full",u),children:[p?C.jsx("div",{className:"dial-input px-3 py-2",children:D()}):v,h&&C.jsx("div",{id:y,className:ue({"dial-tiny text-secondary mt-1":!0,"text-error":!!n}),children:h}),F()]})]})};var eo=(e=>(e.Row="Row",e.Column="Column",e))(eo||{});const nv="flex",rv="pb-1 mt-2",av={[eo.Column]:"flex-col gap-y-3",[eo.Row]:"flex-row gap-x-6"},lr=({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:m,onChange:v})=>C.jsx(Vr,{elementId:h,label:e,labelClassName:l||d,className:s,childrenClassName:c,children:C.jsx("div",{role:"radiogroup","aria-label":e,"aria-disabled":u||void 0,className:ue(nv,av[m],n),children:p.map(w=>C.jsxs("div",{className:ue("flex flex-col",r,w.id===f&&a),children:[C.jsx(Wh,{name:h,value:w.id,inputId:w.id,disabled:u,className:t,labelClassName:ue(d,w.id===f&&i),title:w.name,checked:w.id===f,onChange:()=>v(w.id)}),w.id===f&&w.content?C.jsx("div",{className:ue(rv,o),children:w.content}):null]},w.id))})}),zr=({icon:e,title:t,description:s,containerClassName:o,titleClassName:i,descriptionClassName:n})=>C.jsxs("div",{className:ue("h-full w-full flex flex-col items-center justify-center text-secondary",o),children:[e||C.jsx(B.IconClipboardX,{width:60,height:60}),C.jsx("span",{className:ue("dial-small mt-2 text-primary",i),children:t}),s&&C.jsx("span",{className:ue("mt-1 text-primary",n),children:s})]}),Fa=48,_h=({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]),m=f?l:h;g.useEffect(()=>{f&&u(l?s:Fa)},[f,l,s]);const v=q(["transform rotate-180 [writing-mode:tb-rl] py-4 px-3",m&&"hidden",r]),w=q(["flex flex-row gap-2 cursor-pointer text-secondary p-2 px-4",m?"justify-end":"justify-center"]),b=S=>{const y=!m;if(f){u(y?s:Fa),c?.(y,S);return}u(y?s:Fa),p(y)};return C.jsxs("div",{className:q(["rounded flex flex-col justify-between overflow-y-auto flex-shrink-0",e]),style:{width:`${d}px`},children:[C.jsx("div",{className:q(["flex-1 p-4 min-h-0 overflow-auto",!m&&"hidden"]),children:t}),C.jsx("div",{className:v,children:o}),C.jsxs("div",{className:ue("border-t border-primary h-12",w),children:[m&&a,C.jsx(Fe,{className:"hover:text-accent-primary p-1",onClick:b,iconBefore:m?C.jsx(B.IconChevronsLeft,{size:i,stroke:n}):C.jsx(B.IconChevronsRight,{size:i,stroke:n})})]})]})},lv=({label:e,text:t,children:s,postfix:o})=>C.jsxs("div",{className:q("flex flex-col",s?"":"max-w-[200px]"),children:[C.jsx("label",{className:"dial-tiny mb-2 text-secondary",children:e}),s||C.jsxs("div",{className:"flex flex-row items-center",children:[C.jsx(gs,{triggerClassName:"text-primary",tooltip:t,children:t}),o||null]})]});var Wr=(e=>(e.Default="default",e))(Wr||{});const cv={[Wr.Default]:"border-icon-secondary bg-layer-3"},_r=({tag:e,className:t,remove:s,variant:o=Wr.Default,iconBefore:i,bordered:n=!0})=>{const r=cv[o],a=ue("flex items-center gap-1 dial-tiny rounded p-1 h-[22px] text-primary",r,n?"border":"border-transparent",t);return C.jsxs("div",{className:a,children:[C.jsx(ke,{icon:i}),C.jsx(Bt,{text:e}),s&&C.jsx(Fe,{iconAfter:C.jsx(B.IconX,{size:16}),onClick:l=>s(l)})]},e)},jh=g.createContext({dragDropManager:void 0});function xt(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 yd=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),xd=function(){return Math.random().toString(36).substring(7).split("").join(".")},Rd={INIT:"@@redux/INIT"+xd(),REPLACE:"@@redux/REPLACE"+xd()};function dv(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 uv(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(pv(e))return"date";if(gv(e))return"error";var s=hv(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 hv(e){return typeof e.constructor=="function"?e.constructor.name:null}function gv(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function pv(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Ro(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=uv(e)),t}function Uh(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"?xt(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"?xt(1):"Expected the enhancer to be a function. Instead, received: '"+Ro(s)+"'");return s(Uh)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?xt(2):"Expected the root reducer to be a function. Instead, received: '"+Ro(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"?xt(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(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?xt(4):"Expected the listener to be a function. Instead, received: '"+Ro(m)+"'");if(l)throw new Error(process.env.NODE_ENV==="production"?xt(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(m),function(){if(v){if(l)throw new Error(process.env.NODE_ENV==="production"?xt(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(m);a.splice(b,1),r=null}}}function h(m){if(!dv(m))throw new Error(process.env.NODE_ENV==="production"?xt(7):"Actions must be plain objects. Instead, the actual type was: '"+Ro(m)+"'. 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 m.type>"u")throw new Error(process.env.NODE_ENV==="production"?xt(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"?xt(9):"Reducers may not dispatch actions.");try{l=!0,n=i(n,m)}finally{l=!1}for(var v=r=a,w=0;w<v.length;w++){var b=v[w];b()}return m}function p(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?xt(10):"Expected the nextReducer to be a function. Instead, received: '"+Ro(m));i=m,h({type:Rd.REPLACE})}function f(){var m,v=u;return m={subscribe:function(b){if(typeof b!="object"||b===null)throw new Error(process.env.NODE_ENV==="production"?xt(11):"Expected the observer to be an object. Instead, received: '"+Ro(b)+"'");function S(){b.next&&b.next(d())}S();var y=v(S);return{unsubscribe:y}}},m[yd]=function(){return this},m}return h({type:Rd.INIT}),o={dispatch:h,subscribe:u,getState:d,replaceReducer:p},o[yd]=f,o}function me(e,t,...s){if(fv()&&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 fv(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function mv(e,t,s){return t.split(".").reduce((o,i)=>o&&o[i]?o[i]:s||null,e)}function Cv(e,t){return e.filter(s=>s!==t)}function $h(e){return typeof e=="object"}function vv(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 wv(e,t){return e.filter(s=>t.indexOf(s)>-1)}const dc="dnd-core/INIT_COORDS",jr="dnd-core/BEGIN_DRAG",uc="dnd-core/PUBLISH_DRAG_SOURCE",Ur="dnd-core/HOVER",$r="dnd-core/DROP",Kr="dnd-core/END_DRAG";function Fd(e,t){return{type:dc,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const bv={type:dc,payload:{clientOffset:null,sourceClientOffset:null}};function Sv(e){return function(s=[],o={publishSource:!0}){const{publishSource:i=!0,clientOffset:n,getSourceClientOffset:r}=o,a=e.getMonitor(),l=e.getRegistry();e.dispatch(Fd(n)),yv(s,a,l);const c=Fv(s,a);if(c==null){e.dispatch(bv);return}let d=null;if(n){if(!r)throw new Error("getSourceClientOffset must be defined");xv(r),d=r(c)}e.dispatch(Fd(n,d));const h=l.getSource(c).beginDrag(a,c);if(h==null)return;Rv(h),l.pinSource(c);const p=l.getSourceType(c);return{type:jr,payload:{itemType:p,item:h,sourceId:c,clientOffset:n||null,sourceClientOffset:d||null,isSourcePublic:!!i}}}}function yv(e,t,s){me(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(o){me(s.getSource(o),"Expected sourceIds to be registered.")})}function xv(e){me(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function Rv(e){me($h(e),"Item must be an object.")}function Fv(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 Ev(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function Dv(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){Ev(e,i,s[i])})}return e}function Pv(e){return function(s={}){const o=e.getMonitor(),i=e.getRegistry();Mv(o),kv(o).forEach((r,a)=>{const l=Tv(r,a,i,o),c={type:$r,payload:{dropResult:Dv({},s,l)}};e.dispatch(c)})}}function Mv(e){me(e.isDragging(),"Cannot call drop while not dragging."),me(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function Tv(e,t,s,o){const i=s.getTarget(e);let n=i?i.drop(o,e):void 0;return Iv(n),typeof n>"u"&&(n=t===0?{}:o.getDropResult()),n}function Iv(e){me(typeof e>"u"||$h(e),"Drop result must either be an object or undefined.")}function kv(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function Av(e){return function(){const s=e.getMonitor(),o=e.getRegistry();Lv(s);const i=s.getSourceId();return i!=null&&(o.getSource(i,!0).endDrag(s,i),o.unpinSource()),{type:Kr}}}function Lv(e){me(e.isDragging(),"Cannot call endDrag while not dragging.")}function yl(e,t){return t===null?e===null:Array.isArray(e)?e.some(s=>s===t):e===t}function Ov(e){return function(s,{clientOffset:o}={}){Nv(s);const i=s.slice(0),n=e.getMonitor(),r=e.getRegistry(),a=n.getItemType();return Gv(i,r,a),Hv(i,n,r),Bv(i,n,r),{type:Ur,payload:{targetIds:i,clientOffset:o||null}}}}function Nv(e){me(Array.isArray(e),"Expected targetIds to be an array.")}function Hv(e,t,s){me(t.isDragging(),"Cannot call hover while not dragging."),me(!t.didDrop(),"Cannot call hover after drop.");for(let o=0;o<e.length;o++){const i=e[o];me(e.lastIndexOf(i)===o,"Expected targetIds to be unique in the passed array.");const n=s.getTarget(i);me(n,"Expected targetIds to be registered.")}}function Gv(e,t,s){for(let o=e.length-1;o>=0;o--){const i=e[o],n=t.getTargetType(i);yl(n,s)||e.splice(o,1)}}function Bv(e,t,s){e.forEach(function(o){s.getTarget(o).hover(t,o)})}function Vv(e){return function(){if(e.getMonitor().isDragging())return{type:uc}}}function zv(e){return{beginDrag:Sv(e),publishDragSource:Vv(e),hover:Ov(e),drop:Pv(e),endDrag:Av(e)}}class Wv{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=zv(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 _v(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Kh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function jv(e){const{clientOffset:t,initialClientOffset:s,initialSourceClientOffset:o}=e;return!t||!s||!o?null:Kh(_v(t,o),s)}function Uv(e){const{clientOffset:t,initialClientOffset:s}=e;return!t||!s?null:Kh(t,s)}const Di=[],hc=[];Di.__IS_NONE__=!0;hc.__IS_ALL__=!0;function $v(e,t){return e===Di?!1:e===hc||typeof t>"u"?!0:wv(t,e).length>0}class Kv{subscribeToStateChange(t,s={}){const{handlerIds:o}=s;me(typeof t=="function","listener must be a function."),me(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&&!$v(r.dirtyHandlerIds,o)||t()}finally{i=a}};return this.store.subscribe(n)}subscribeToOffsetChange(t){me(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 me(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(me(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 yl(o,i)&&s.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const s=this.registry.getSource(t,!0);if(me(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&&!yl(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 jv(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return Uv(this.store.getState().dragOffset)}constructor(t,s){this.store=t,this.registry=s}}const Ed=typeof global<"u"?global:self,qh=Ed.MutationObserver||Ed.WebKitMutationObserver;function Yh(e){return function(){const s=setTimeout(i,0),o=setInterval(i,50);function i(){clearTimeout(s),clearInterval(o),e()}}}function qv(e){let t=1;const s=new qh(e),o=document.createTextNode("");return s.observe(o,{characterData:!0}),function(){t=-t,o.data=t}}const Yv=typeof qh=="function"?qv:Yh;class Zv{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=Yv(this.flush),this.requestErrorThrow=Yh(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Xv{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 Qv{create(t){const s=this.freeTasks,o=s.length?s.pop():new Xv(this.onError,i=>s[s.length]=i);return o.task=t,o}constructor(t){this.onError=t,this.freeTasks=[]}}const Zh=new Zv,Jv=new Qv(Zh.registerPendingError);function ew(e){Zh.enqueueTask(Jv.create(e))}const gc="dnd-core/ADD_SOURCE",pc="dnd-core/ADD_TARGET",fc="dnd-core/REMOVE_SOURCE",qr="dnd-core/REMOVE_TARGET";function tw(e){return{type:gc,payload:{sourceId:e}}}function sw(e){return{type:pc,payload:{targetId:e}}}function ow(e){return{type:fc,payload:{sourceId:e}}}function iw(e){return{type:qr,payload:{targetId:e}}}function nw(e){me(typeof e.canDrag=="function","Expected canDrag to be a function."),me(typeof e.beginDrag=="function","Expected beginDrag to be a function."),me(typeof e.endDrag=="function","Expected endDrag to be a function.")}function rw(e){me(typeof e.canDrop=="function","Expected canDrop to be a function."),me(typeof e.hover=="function","Expected hover to be a function."),me(typeof e.drop=="function","Expected beginDrag to be a function.")}function xl(e,t){if(t&&Array.isArray(e)){e.forEach(s=>xl(s,!1));return}me(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 Pt;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(Pt||(Pt={}));let aw=0;function lw(){return aw++}function cw(e){const t=lw().toString();switch(e){case Pt.SOURCE:return`S${t}`;case Pt.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function Dd(e){switch(e[0]){case"S":return Pt.SOURCE;case"T":return Pt.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function Pd(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 dw{addSource(t,s){xl(t),nw(s);const o=this.addHandler(Pt.SOURCE,t,s);return this.store.dispatch(tw(o)),o}addTarget(t,s){xl(t,!0),rw(s);const o=this.addHandler(Pt.TARGET,t,s);return this.store.dispatch(sw(o)),o}containsHandler(t){return Pd(this.dragSources,t)||Pd(this.dropTargets,t)}getSource(t,s=!1){return me(this.isSourceId(t),"Expected a valid source ID."),s&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return me(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return me(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return me(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return Dd(t)===Pt.SOURCE}isTargetId(t){return Dd(t)===Pt.TARGET}removeSource(t){me(this.getSource(t),"Expected an existing source."),this.store.dispatch(ow(t)),ew(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){me(this.getTarget(t),"Expected an existing target."),this.store.dispatch(iw(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const s=this.getSource(t);me(s,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=s}unpinSource(){me(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,s,o){const i=cw(t);return this.types.set(i,s),t===Pt.SOURCE?this.dragSources.set(i,o):t===Pt.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 uw=(e,t)=>e===t;function hw(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function gw(e,t,s=uw){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 pw(e=Di,t){switch(t.type){case Ur:break;case gc:case pc:case qr:case fc:return Di;case jr:case uc:case Kr:case $r:default:return hc}const{targetIds:s=[],prevTargetIds:o=[]}=t.payload,i=vv(s,o);if(!(i.length>0||!gw(s,o)))return Di;const r=o[o.length-1],a=s[s.length-1];return r!==a&&(r&&i.push(r),a&&i.push(a)),i}function fw(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function mw(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){fw(e,i,s[i])})}return e}const Md={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Cw(e=Md,t){const{payload:s}=t;switch(t.type){case dc:case jr:return{initialSourceClientOffset:s.sourceClientOffset,initialClientOffset:s.clientOffset,clientOffset:s.clientOffset};case Ur:return hw(e.clientOffset,s.clientOffset)?e:mw({},e,{clientOffset:s.clientOffset});case Kr:case $r:return Md;default:return e}}function vw(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function Fo(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){vw(e,i,s[i])})}return e}const ww={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function bw(e=ww,t){const{payload:s}=t;switch(t.type){case jr:return Fo({},e,{itemType:s.itemType,item:s.item,sourceId:s.sourceId,isSourcePublic:s.isSourcePublic,dropResult:null,didDrop:!1});case uc:return Fo({},e,{isSourcePublic:!0});case Ur:return Fo({},e,{targetIds:s.targetIds});case qr:return e.targetIds.indexOf(s.targetId)===-1?e:Fo({},e,{targetIds:Cv(e.targetIds,s.targetId)});case $r:return Fo({},e,{dropResult:s.dropResult,didDrop:!0,targetIds:[]});case Kr:return Fo({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function Sw(e=0,t){switch(t.type){case gc:case pc:return e+1;case fc:case qr:return e-1;default:return e}}function yw(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 Rw(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 Fw(e={},t){return{dirtyHandlerIds:pw(e.dirtyHandlerIds,{type:t.type,payload:Rw({},t.payload,{prevTargetIds:mv(e,"dragOperation.targetIds",[])})}),dragOffset:Cw(e.dragOffset,t),refCount:Sw(e.refCount,t),dragOperation:bw(e.dragOperation,t),stateId:yw(e.stateId)}}function Ew(e,t=void 0,s={},o=!1){const i=Dw(o),n=new Kv(i,new dw(i)),r=new Wv(i,n),a=e(r,t,s);return r.receiveBackend(a),r}function Dw(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return Uh(Fw,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function Pw(e,t){if(e==null)return{};var s=Mw(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 Mw(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 Td=0;const Un=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var Tw=g.memo(function(t){var{children:s}=t,o=Pw(t,["children"]);const[i,n]=Iw(o);return g.useEffect(()=>{if(n){const r=Xh();return++Td,()=>{--Td===0&&(r[Un]=null)}}},[]),C.jsx(jh.Provider,{value:i,children:s})});function Iw(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=kw(e.backend,e.context,e.options,e.debugMode),s=!e.context;return[t,s]}function kw(e,t=Xh(),s,o){const i=t;return i[Un]||(i[Un]={dragDropManager:Ew(e,t,s,o)}),i[Un]}function Xh(){return typeof global<"u"?global:window}function Aw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ea,Id;function Lw(){return Id||(Id=1,Ea=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}),Ea}var Ow=Lw();const Nw=Aw(Ow),to=typeof window<"u"?g.useLayoutEffect:g.useEffect;function Hw(e,t,s){const[o,i]=g.useState(()=>t(e)),n=g.useCallback(()=>{const r=t(e);Nw(o,r)||(i(r),s&&s())},[o,e,s]);return to(n),[o,n]}function Gw(e,t,s){const[o,i]=Hw(e,t,s);return to(function(){const r=e.getHandlerId();if(r!=null)return e.subscribeToStateChange(i,{handlerIds:[r]})},[e,i]),o}function Qh(e,t,s){return Gw(t,e||(()=>({})),()=>s.reconnect())}function Jh(e,t){const s=[...t||[]];return t==null&&typeof e!="function"&&s.push(e),g.useMemo(()=>typeof e=="function"?e():e,s)}function Bw(e){return g.useMemo(()=>e.hooks.dragSource(),[e])}function Vw(e){return g.useMemo(()=>e.hooks.dragPreview(),[e])}let Da=!1,Pa=!1;class zw{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){me(!Da,"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 Da=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Da=!1}}isDragging(){if(!this.sourceId)return!1;me(!Pa,"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 Pa=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Pa=!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 Ma=!1;class Ww{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,s){return this.internalMonitor.subscribeToStateChange(t,s)}canDrop(){if(!this.targetId)return!1;me(!Ma,"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 Ma=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Ma=!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 _w(e,t,s){const o=s.getRegistry(),i=o.addTarget(e,t);return[i,()=>o.removeTarget(i)]}function jw(e,t,s){const o=s.getRegistry(),i=o.addSource(e,t);return[i,()=>o.removeSource(i)]}function Rl(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 Fl(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Uw(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 $w(e){return(t=null,s=null)=>{if(!g.isValidElement(t)){const n=t;return e(n,s),n}const o=t;return Uw(o),Kw(o,s?n=>e(n,s):e)}}function eg(e){const t={};return Object.keys(e).forEach(s=>{const o=e[s];if(s.endsWith("Ref"))t[s]=e[s];else{const i=$w(o);t[s]=()=>i}}),t}function kd(e,t){typeof e=="function"?e(t):e.current=t}function Kw(e,t){const s=e.ref;return me(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=>{kd(s,o),kd(t,o)}}):g.cloneElement(e,{ref:t})}class qw{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!Rl(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!Rl(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=eg({dragSource:(s,o)=>{this.clearDragSource(),this.dragSourceOptions=o||null,Fl(s)?this.dragSourceRef=s:this.dragSourceNode=s,this.reconnectDragSource()},dragPreview:(s,o)=>{this.clearDragPreview(),this.dragPreviewOptions=o||null,Fl(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 Yw{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!Rl(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=eg({dropTarget:(s,o)=>{this.clearDropTarget(),this.dropTargetOptions=o,Fl(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 si(){const{dragDropManager:e}=g.useContext(jh);return me(e!=null,"Expected drag drop context"),e}function Zw(e,t){const s=si(),o=g.useMemo(()=>new qw(s.getBackend()),[s]);return to(()=>(o.dragSourceOptions=e||null,o.reconnect(),()=>o.disconnectDragSource()),[o,e]),to(()=>(o.dragPreviewOptions=t||null,o.reconnect(),()=>o.disconnectDragPreview()),[o,t]),o}function Xw(){const e=si();return g.useMemo(()=>new zw(e),[e])}class Qw{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 Jw(e,t,s){const o=g.useMemo(()=>new Qw(e,t,s),[t,s]);return g.useEffect(()=>{o.spec=e},[e]),o}function e1(e){return g.useMemo(()=>{const t=e.type;return me(t!=null,"spec.type must be defined"),t},[e])}function t1(e,t,s){const o=si(),i=Jw(e,t,s),n=e1(e);to(function(){if(n!=null){const[a,l]=jw(n,i,o);return t.receiveHandlerId(a),s.receiveHandlerId(a),l}},[o,t,s,i,n])}function s1(e,t){const s=Jh(e,t);me(!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=Xw(),i=Zw(s.options,s.previewOptions);return t1(s,o,i),[Qh(s.collect,o,i),Bw(i),Vw(i)]}function o1(e){return g.useMemo(()=>e.hooks.dropTarget(),[e])}function i1(e){const t=si(),s=g.useMemo(()=>new Yw(t.getBackend()),[t]);return to(()=>(s.dropTargetOptions=e||null,s.reconnect(),()=>s.disconnectDropTarget()),[e]),s}function n1(){const e=si();return g.useMemo(()=>new Ww(e),[e])}function r1(e){const{accept:t}=e;return g.useMemo(()=>(me(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class a1{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 l1(e,t){const s=g.useMemo(()=>new a1(e,t),[t]);return g.useEffect(()=>{s.spec=e},[e]),s}function c1(e,t,s){const o=si(),i=l1(e,t),n=r1(e);to(function(){const[a,l]=_w(n,i,o);return t.receiveHandlerId(a),s.receiveHandlerId(a),l},[o,t,i,s,n.map(r=>r.toString()).join("|")])}function tg(e,t){const s=Jh(e,t),o=n1(),i=i1(s.options);return c1(s,o,i),[Qh(s.collect,o,i),o1(i)]}const Ad="column",d1="flex items-center",u1="mr-3 cursor-move text-secondary",h1=({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]=s1(()=>({type:Ad,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]=tg(()=>({accept:Ad,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),C.jsxs("div",{ref:a,className:ue(d1,s),style:{opacity:c?0:1},"aria-roledescription":"Draggable item",children:[C.jsx("div",{ref:r,className:u1,"aria-label":n,children:C.jsx(B.IconGripVertical,{...ne})}),t]})},g1=e=>he.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},he.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"}),he.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"}),he.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"}),he.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"})),p1=e=>he.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},he.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"}),he.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"})),f1=e=>he.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},he.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"}),he.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"}),he.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"})),m1=e=>he.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},he.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"}),he.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"}),he.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"}),he.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"})),C1=e=>he.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},he.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"}),he.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"}),he.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"}),he.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"}),he.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"})),v1=e=>he.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},he.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"}),he.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"}),he.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"})),w1=e=>he.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},he.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"}),he.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"}),he.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"})),Le=(e,t)=>C.jsx(e,{size:t.size??ne.size,stroke:t.stroke??ne.stroke,className:t.className}),Bs=(e,t)=>C.jsx(e,{width:Number(t.size??ne.size),height:Number(t.size??ne.size),className:t.className}),Ld={".bmp":e=>Le(B.IconFileTypeBmp,e),".cpp":e=>Bs(g1,e),".c":e=>Bs(p1,e),".cs":e=>Bs(f1,e),".css":e=>Le(B.IconFileTypeCss,e),".csv":e=>Le(B.IconFileTypeCsv,e),".doc":e=>Le(B.IconFileTypeDoc,e),".docx":e=>Le(B.IconFileTypeDocx,e),".html":e=>Le(B.IconFileTypeHtml,e),".ini":e=>Bs(m1,e),".jpg":e=>Le(B.IconFileTypeJpg,e),".js":e=>Le(B.IconFileTypeJs,e),".json":e=>Bs(C1,e),".jsx":e=>Le(B.IconFileTypeJsx,e),".md":e=>Bs(v1,e),".pdf":e=>Le(B.IconFileTypePdf,e),".php":e=>Le(B.IconFileTypePhp,e),".png":e=>Le(B.IconFileTypePng,e),".ppt":e=>Le(B.IconFileTypePpt,e),".py":e=>Bs(w1,e),".rs":e=>Le(B.IconFileTypeRs,e),".sql":e=>Le(B.IconFileTypeSql,e),".svg":e=>Le(B.IconFileTypeSvg,e),".ts":e=>Le(B.IconFileTypeTs,e),".tsx":e=>Le(B.IconFileTypeTsx,e),".txt":e=>Le(B.IconFileTypeTxt,e),".vue":e=>Le(B.IconFileTypeVue,e),".xls":e=>Le(B.IconFileTypeXls,e),".xml":e=>Le(B.IconFileTypeXml,e),".zip":e=>Le(B.IconFileTypeZip,e),default:e=>Le(B.IconFile,e)},mc=({extension:e,size:t=ne.size,stroke:s=ne.stroke,className:o,decorative:i=!1,label:n,indicator:r})=>{const a=(()=>{const u=e.trim().toLowerCase();return u.startsWith(".")?u:`.${u}`})(),c=(Ld[a]??Ld.default)({size:t,stroke:s}),d=n??`${a.slice(1).toUpperCase()} file icon`;return C.jsxs("span",{className:q("inline-flex relative",o),...i?{"aria-hidden":!0}:{role:"img","aria-label":d},children:[C.jsx(ke,{icon:c,className:"inline-block align-middle"}),r&&C.jsx("span",{className:"absolute -bottom-0.5 -left-0.5",children:r})]})},Vi=({label:e="Shared entity",size:t=10,className:s,stroke:o=2})=>C.jsx(ke,{className:ue("text-accent-primary",s),icon:C.jsx(B.IconArrowUpRight,{size:t,stroke:o,"aria-label":e,className:"bg-layer-3",role:"img"})}),Yr=({name:e,className:t,shared:s=!1,iconSize:o=ns,details:i})=>{const n=e.includes(".")?e.split(".").pop():null;return C.jsxs("div",{className:ue("flex items-center gap-2 w-full",t),children:[n&&C.jsx(mc,{extension:n,size:o,className:"text-secondary",indicator:s?C.jsx(Vi,{}):null,label:"File type icon"}),C.jsxs("div",{className:q(["w-full flex min-w-0",i&&"flex-col gap-1"]),children:[C.jsx(Bt,{className:"text-primary dial-small flex-1 min-w-0",text:e}),i]})]})},Zr=({name:e,className:t,shared:s=!1,loading:o=!1,iconSize:i=ns})=>{const n=()=>o?C.jsx(on,{size:i}):C.jsx(ke,{icon:C.jsx(B.IconFolder,{...ne,size:i}),className:"inline-block align-middle"});return C.jsxs("div",{className:ue("flex items-center gap-2 w-full",t),children:[C.jsxs("span",{className:"inline-flex relative text-secondary",role:"img",children:[n(),s&&C.jsx("span",{className:"absolute -bottom-0.5 -left-0.5",children:C.jsx(Vi,{})})]}),C.jsx(Bt,{className:"text-primary dial-small flex-1 min-w-0",text:e})]})};var zi=(e=>(e.Left="left",e.Right="right",e))(zi||{}),je=function(){return je=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},je.apply(this,arguments)},Od={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},Nd={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Pn={width:"20px",height:"20px",position:"absolute",zIndex:1},b1={top:je(je({},Od),{top:"-5px"}),right:je(je({},Nd),{left:void 0,right:"-5px"}),bottom:je(je({},Od),{top:void 0,bottom:"-5px"}),left:je(je({},Nd),{left:"-5px"}),topRight:je(je({},Pn),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:je(je({},Pn),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:je(je({},Pn),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:je(je({},Pn),{left:"-10px",top:"-10px",cursor:"nw-resize"})},S1=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 je(je({position:"absolute",userSelect:"none"},b1[s]),i??{})},[i,s]);return C.jsx("div",{className:n||void 0,style:l,onMouseDown:r,onTouchStart:a,children:o})}),y1=(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)}})(),Ut=function(){return Ut=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},Ut.apply(this,arguments)},x1={width:"auto",height:"auto"},Mn=function(e,t,s){return Math.max(Math.min(e,s),t)},Hd=function(e,t,s){var o=Math.round(e/t);return o*t+s*(o-1)},Eo=function(e,t){return new RegExp(e,"i").test(t)},Tn=function(e){return!!(e.touches&&e.touches.length)},R1=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},Gd=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},Ta=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")},In=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},F1=function(e,t,s,o,i,n,r){return o=In(o,e.width,t,s),i=In(i,e.height,t,s),n=In(n,e.width,t,s),r=In(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)}},E1=function(e){return Array.isArray(e)?e:[e,e]},D1=["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"],Bd="__resizable_base__",P1=(function(e){y1(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(Bd):c.className+=Bd,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 Ta(s.state[a])},n=o&&typeof o.width<"u"&&!this.state.isResizing?Ta(o.width):i("width"),r=o&&typeof o.height<"u"&&!this.state.isResizing?Ta(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&&Eo("left",n),a=i&&Eo("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=E1(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,m=d.width,v=d.height,w=p||0,b=f||0;return Eo("right",c)&&(m=d.width+(s-d.x)*r/i,h&&(v=(m-b)/this.ratio+w)),Eo("left",c)&&(m=d.width-(s-d.x)*r/i,h&&(v=(m-b)/this.ratio+w)),Eo("bottom",c)&&(v=d.height+(o-d.y)*a/i,h&&(m=(v-w)*this.ratio+b)),Eo("top",c)&&(v=d.height-(o-d.y)*a/i,h&&(m=(v-w)*this.ratio+b)),{newWidth:m,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,m=c||0;if(a){var v=(h-f)*this.ratio+m,w=(p-f)*this.ratio+m,b=(d-m)/this.ratio+f,S=(u-m)/this.ratio+f,y=Math.max(d,v),x=Math.min(u,w),F=Math.max(h,b),D=Math.min(p,S);s=Mn(s,y,x),o=Mn(o,F,D)}else s=Mn(s,d,u),o=Mn(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&&R1(s.nativeEvent)?(i=s.nativeEvent.clientX,n=s.nativeEvent.clientY):s.nativeEvent&&Tn(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:Ut(Ut({},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&&Tn(s))try{s.preventDefault(),s.stopPropagation()}catch{}var i=this.props,n=i.maxWidth,r=i.maxHeight,a=i.minWidth,l=i.minHeight,c=Tn(s)?s.touches[0].clientX:s.clientX,d=Tn(s)?s.touches[0].clientY:s.clientY,u=this.state,h=u.direction,p=u.original,f=u.width,m=u.height,v=this.getParentSize(),w=F1(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=Gd(y,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(S=Gd(S,this.props.snap.y,this.props.snapGap));var F=this.calculateNewSizeFromAspectRatio(y,S,{width:x.maxWidth,height:x.maxHeight},{width:a,height:l});if(y=F.newWidth,S=F.newHeight,this.props.grid){var D=Hd(y,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),R=Hd(S,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),P=this.props.snapGap||0,T=P===0||Math.abs(D-y)<=P?D:y,E=P===0||Math.abs(R-S)<=P?R:S;y=T,S=E}var M={width:y-p.width,height:S-p.height};if(this.delta=M,f&&typeof f=="string"){if(f.endsWith("%")){var A=y/v.width*100;y="".concat(A,"%")}else if(f.endsWith("vw")){var G=y/this.window.innerWidth*100;y="".concat(G,"vw")}else if(f.endsWith("vh")){var N=y/this.window.innerHeight*100;y="".concat(N,"vh")}}if(m&&typeof m=="string"){if(m.endsWith("%")){var A=S/v.height*100;S="".concat(A,"%")}else if(m.endsWith("vw")){var G=S/this.window.innerWidth*100;S="".concat(G,"vw")}else if(m.endsWith("vh")){var N=S/this.window.innerHeight*100;S="".concat(N,"vh")}}var Z={width:this.createSizeForCssProperty(y,"width"),height:this.createSizeForCssProperty(S,"height")};this.flexDir==="row"?Z.flexBasis=Z.width:this.flexDir==="column"&&(Z.flexBasis=Z.height);var te=this.state.width!==Z.width,O=this.state.height!==Z.height,Q=this.state.flexBasis!==Z.flexBasis,z=te||O||Q;z&&sn.flushSync(function(){o.setState(Z)}),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:Ut(Ut({},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?C.jsx(S1,{direction:u,onResizeStart:s.onResizeStart,replaceStyles:n&&n[u],className:r&&r[u],children:c&&c[u]?c[u]:null},u):null});return C.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 D1.indexOf(a)!==-1||(r[a]=s.props[a]),r},{}),i=Ut(Ut(Ut({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 C.jsxs(n,Ut({style:i,className:this.props.className},o,{ref:function(r){r&&(s.resizable=r)},children:[this.state.isResizing&&C.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 M1=({side:e,className:t})=>{const s=e===zi.Left,o=s?B.IconChevronLeft:B.IconChevronRight;return C.jsx("div",{className:t,children:C.jsx(o,{className:q("h-full",s&&"-ml-6")})})},T1=({side:e,isResizing:t,customHandler:s,handlerClassName:o})=>{const i=ue("invisible h-full w-0.5 group-hover:visible bg-accent-primary text-accent-primary cursor-col-resize transition-opacity",t&&"visible",o),n=C.jsx(M1,{side:e,className:i});return s?C.jsx("div",{className:i,children:s}):n},sg=({children:e,minWidth:t,maxWidth:s,width:o,defaultWidth:i,onResizeStop:n,onResize:r,side:a=zi.Right,resizeHandlerClassName:l,resizeHandler:c})=>{const[d,u]=g.useState(!1),[h,p]=g.useState(i),f=o!==void 0,m=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===zi.Left,x=C.jsx(T1,{side:a,isResizing:d,customHandler:c,handlerClassName:l});return{size:f?{width:m,height:"100%"}:void 0,defaultSize:f?void 0:{width:m,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:(F,D,R)=>{const P=Math.round(R.offsetWidth);r?.(P)},onResizeStop:b}},[a,f,m,t,s,c,l,d,w,b,r]);return C.jsx(P1,{ref:v,...S,children:C.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?C.jsx(sg,{...s,children:t}):t;var so=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 ls(e){return e==null||e===""?null:e}function j(e){return e!=null&&e!==""}function He(e){return!j(e)}function El(e){return e!=null&&typeof e.toString=="function"?e.toString():null}function Wi(e,t){const s=e?JSON.stringify(e):null,o=t?JSON.stringify(t):null;return s===o}function I1(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 k1=/[&<>"']/g,A1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function oi(e){return e?.toString().toString()??null}function Pi(e){return oi(e)?.replace(k1,t=>A1[t])??null}function $t(e){return e.eRootDiv.getRootNode()}function Be(e){return $t(e).activeElement}function Qe(e){const{gos:t,eRootDiv:s}=e;let o=null;const i=t.get("getDocument");return i&&j(i)?o=i():s&&(o=s.ownerDocument),o&&j(o)?o:document}function ig(e){const t=Be(e);return t===null||t===Qe(e).body}function ng(e){return Qe(e).defaultView||window}function Cc(e){let t=null,s=null;try{t=Qe(e).fullscreenElement}catch{}finally{t||(t=$t(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 L1(e){return Cc(e)?.clientWidth??(window.innerWidth||-1)}function O1(e){return Cc(e)?.clientHeight??(window.innerHeight||-1)}function zt(e,t,s){s==null||typeof s=="string"&&s==""?rg(e,t):Wt(e,t,s)}function Wt(e,t,s){e.setAttribute(ag(t),s.toString())}function rg(e,t){e.removeAttribute(ag(t))}function ag(e){return`aria-${e}`}function oo(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function N1(e){let t;return e==="asc"?t="ascending":e==="desc"?t="descending":e==="mixed"?t="other":t="none",t}function H1(e){return e.getAttribute("aria-label")}function Ko(e,t){zt(e,"label",t)}function _i(e,t){zt(e,"labelledby",t)}function lg(e,t){zt(e,"live",t)}function G1(e,t){zt(e,"atomic",t)}function B1(e,t){zt(e,"relevant",t)}function V1(e,t){zt(e,"invalid",t)}function z1(e,t){zt(e,"disabled",t)}function cg(e,t){zt(e,"hidden",t)}function Dl(e,t){Wt(e,"expanded",t)}function W1(e,t){Wt(e,"setsize",t)}function _1(e,t){Wt(e,"posinset",t)}function j1(e,t){Wt(e,"rowcount",t)}function dg(e,t){Wt(e,"rowindex",t)}function U1(e,t){Wt(e,"rowspan",t)}function $1(e,t){Wt(e,"colcount",t)}function ug(e,t){Wt(e,"colindex",t)}function K1(e,t){Wt(e,"colspan",t)}function q1(e,t){Wt(e,"sort",t)}function Y1(e){rg(e,"sort")}function hg(e,t){zt(e,"selected",t)}function Z1(e,t){zt(e,"controls",t)}function X1(e,t){Z1(e,t.id),_i(t,e.id)}function Vd(e,t){zt(e,"owns",t)}function Xr(e,t){return t===void 0?e("ariaIndeterminate","indeterminate"):t===!0?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}var Q1="[tabindex], input, select, button, textarea, [href]",gg="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function Mi(e){return!e||!e.matches("input, select, button, textarea")||!e.matches(gg)?!1:ps(e)}function Ge(e,t,s={}){const{skipAriaHidden:o}=s;e.classList.toggle("ag-hidden",!t),o||cg(e,!t)}function J1(e,t,s={}){const{skipAriaHidden:o}=s;e.classList.toggle("ag-invisible",!t),o||cg(e,!t)}function ji(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 Ks(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 go(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:m}=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:m}}function vc(e){const t=go(e);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom-t.borderTopWidth-t.borderBottomWidth:t.height}function Ui(e){const t=go(e);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight-t.borderLeftWidth-t.borderRightWidth:t.width}function pg(e){const{height:t,marginBottom:s,marginTop:o}=go(e);return Math.floor(t+s+o)}function cr(e){const{width:t,marginLeft:s,marginRight:o}=go(e);return Math.floor(t+s+o)}function fg(e){const t=e.getBoundingClientRect(),{borderTopWidth:s,borderLeftWidth:o,borderRightWidth:i,borderBottomWidth:n}=go(e);return{top:t.top+(s||0),left:t.left+(o||0),right:t.right+(i||0),bottom:t.bottom+(n||0)}}function dr(e,t){let s=e.scrollLeft;return t&&(s=Math.abs(s)),s}function ur(e,t,s){s&&(t*=-1),e.scrollLeft=t}function gt(e){for(;e?.firstChild;)e.firstChild.remove()}function Ms(e){e?.parentNode&&e.remove()}function mg(e){return!!e.offsetParent}function ps(e){return e.checkVisibility?e.checkVisibility({checkVisibilityCSS:!0}):!(!mg(e)||window.getComputedStyle(e).visibility!=="visible")}function wc(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function $n(e){return()=>{const t=e();return t?bc(t)||Cg(t):!0}}function bc(e){return e.clientWidth<e.scrollWidth}function Cg(e){return e.clientHeight<e.scrollHeight}function hr(e,t){t==="flex"?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):Xt(e,t)}function Xt(e,t){t=Sc(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function Ti(e,t){t=Sc(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function Sc(e){return typeof e=="number"?`${e}px`:e}function yc(e){return e instanceof Node||e instanceof HTMLElement}function wt(e,t,s){s==null||s===""?e.removeAttribute(t):e.setAttribute(t,s.toString())}function fs(e,t,s){const i=ng(e).ResizeObserver,n=i?new i(s):null;return n?.observe(t),()=>n?.disconnect()}function ms(e,t){const s=ng(e);s.requestAnimationFrame?s.requestAnimationFrame(t):s.webkitRequestAnimationFrame?s.webkitRequestAnimationFrame(t):s.setTimeout(t,0)}var vg="data-ref",Ia;function zd(){return Ia??(Ia=document.createTextNode(" ")),Ia.cloneNode()}function nn(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(vg,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(zd()),l=!1),a.append(nn(c)),a.appendChild(zd())))}return a}var eb=["touchstart","touchend","touchmove","touchcancel","scroll"],tb=["wheel"],ka={},wg=(()=>{const e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return s=>{if(typeof ka[s]=="boolean")return ka[s];const o=document.createElement(e[s]||"div");return s="on"+s,ka[s]=s in o}})();function sb(e,t){return!t||!e?!1:ib(t).indexOf(e)>=0}function ob(e){const t=[];let s=e.target;for(;s;)t.push(s),s=s.parentElement;return t}function ib(e){const t=e;return t.path?t.path:t.composedPath?t.composedPath():ob(t)}function nb(e,t,s){const o=rb(t);let i;o!=null&&(i={passive:o}),e.addEventListener(t,s,i)}var rb=e=>{const t=eb.includes(e),s=tb.includes(e);if(t)return!0;if(s)return!1};function bg(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 Ii=(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 $i(e,t){return e.gos.isElementInThisInstance(t.target)}function ab(e,t,s){const i=e.getBoundingClientRect().height,n=L1(s)-2,r=O1(s)-2;if(!e.offsetParent)return;const l=fg(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,m=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+m&&(u=r+m-e.clientHeight),u<0&&(u=0),e.style.left=`${h}px`,e.style.top=`${u}px`}var Kn=(e,...t)=>{for(const s of t){const[o,i,n,r]=s;o.addEventListener(i,n,r),e.push(s)}},xc=e=>{if(e){for(const[t,s,o,i]of e)t.removeEventListener(s,o,i);e.length=0}},Rs=e=>{e.cancelable&&e.preventDefault()};function lb(e,t){return t}function Sg(e){return e?.getLocaleTextFunc()??lb}function cb(e,t,s,o){const i=t[s];return e.getLocaleTextFunc()(s,typeof i=="function"?i(o):i,o)}function db(e){return(t,s,o)=>e({key:t,defaultValue:s,variableValues:o})}function ub(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 es=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 so),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(hb(e))e.__addEventListener(t,s),o=()=>(e.__removeEventListener(t,s),null);else{const i=gb(e);e instanceof HTMLElement?nb(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 Sg(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 hb(e){return e.__addEventListener!==void 0}function gb(e){return e.eventServiceType==="global"}var L=class extends es{},Wd={};function Rc(e,t){Wd[t]||(e(),Wd[t]=!0)}var pb={pending:!1,funcs:[]},fb={pending:!1,funcs:[]};function Pl(e,t="setTimeout",s){const o=t==="raf"?fb:pb;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"?ms(s,i):window.setTimeout(i,0)}function tt(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 _d(e,t){let s=0;return function(...o){const i=this,n=Date.now();n-s<t||(s=n,e.apply(i,o))}}function mb(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 yg=new Set(["__proto__","constructor","prototype"]);function Cb(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=>!yg.has(o)))t(s,e[s])}}function ct(e,t,s=!0,o=!1){j(t)&&Cb(t,(i,n)=>{let r=e[i];r!==n&&(o&&r==null&&n!=null&&typeof n=="object"&&n.constructor===Object&&(r={},e[i]=r),jd(n)&&jd(r)&&!Array.isArray(r)?ct(r,n,s,o):(s||n!==void 0)&&(e[i]=n))})}function jd(e){return typeof e=="object"&&e!==null}var Fc=class os{static applyGlobalGridOptions(t){if(!os.gridOptions)return{...t};let s={};return ct(s,os.gridOptions,!0,!0),os.mergeStrategy==="deep"?ct(s,t,!0,!0):s={...s,...t},os.gridOptions.context&&(s.context=os.gridOptions.context),t.context&&(os.mergeStrategy==="deep"&&s.context&&ct(t.context,s.context,!0,!0),s.context=t.context),s}static applyGlobalGridOption(t,s){if(os.mergeStrategy==="deep"){const o=xg(t);if(o&&typeof o=="object"&&typeof s=="object")return os.applyGlobalGridOptions({[t]:s})[t]}return s}};Fc.gridOptions=void 0;Fc.mergeStrategy="shallow";var Ec=Fc;function xg(e){return Ec.gridOptions?.[e]}var Rg={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},Fg="https://www.ag-grid.com";function io(e,t,...s){e.get("debug")&&console.log("AG Grid: "+t,...s)}function ki(e,...t){Rc(()=>console.warn("AG Grid: "+e,...t),e+t?.join(""))}function Oo(e,...t){Rc(()=>console.error("AG Grid: "+e,...t),e+t?.join(""))}var Eg=new Set,gr={},qs={},qn,Dg=!1,Pg=!1,vb=!1;function wb(e){const[t,s]=e.version.split(".")||[],[o,i]=qn.split(".")||[];return t===o&&s===i}function bb(e){qn||(qn=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?wb(e)||Oo(t(`'${e.moduleName}' is version ${e.version} but the other modules are version ${qn}.`)):Oo(t(`'${e.moduleName}' is incompatible.`));const s=e.validate?.();s&&!s.isValid&&Oo(`${s.message}`)}function Ki(e,t,s=!1){s||(Dg=!0),bb(e);const o=e.rowModels??["all"];Eg.add(e);let i;t!==void 0?(Pg=!0,qs[t]===void 0&&(qs[t]={}),i=qs[t]):i=gr;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)Ki(n,t,s)}function Sb(e){delete qs[e]}function Ml(e,t,s){const o=i=>!!gr[i]?.[e]||!!qs[t]?.[i]?.[e];return o(s)||o("all")}function Dc(){return Pg}function yb(e,t){const s=qs[e]??{};return[...Object.values(gr.all??{}),...Object.values(s.all??{}),...Object.values(gr[t]??{}),...Object.values(s[t]??{})]}function xb(){return new Set(Eg)}function Rb(e,t){const s=qs[e]??{};return[...Object.values(s.all??{}),...Object.values(s[t]??{})]}function Fb(){return Dg}function Eb(){return vb}var Db=class{static register(e){Ki(e,void 0)}static registerModules(e){for(const t of e)Ki(t,void 0)}},_="34.3.0",Ud=2e3,$d=100,Mg="_version_",Tg=null,No=`${Fg}/javascript-data-grid`;function Pb(e){Tg=e}function Mb(e){No=e}function Ig(e,t,s){return Tg?.(e,t)??[Ab(e,t,s)]}function Pc(e,t,s,o,i){e(`${o?"warning":"error"} #${t}`,...Ig(t,s,i))}function Tb(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 Ib(e){let t=e;return e instanceof Error?t=e.toString():typeof e=="object"&&(t=Tb(e)),t}function pr(e){return e===void 0?"undefined":e===null?"null":e}function Tl(e,t){return`${e}?${t.toString()}`}function kb(e,t,s){const o=Array.from(t.entries()).sort((n,r)=>r[1].length-n[1].length);let i=Tl(e,t);for(const[n,r]of o){if(n===Mg)continue;const a=i.length-s;if(a<=0)break;const l="...",c=a+l.length,d=r.length-c>$d?r.slice(0,r.length-c)+l:r.slice(0,$d)+l;t.set(n,d),i=Tl(e,t)}return i}function kg(e,t){const s=new URLSearchParams;if(s.append(Mg,_),t)for(const n of Object.keys(t))s.append(n,Ib(t[n]));const o=`${No}/errors/${e}`,i=Tl(o,s);return i.length<=Ud?i:kb(o,s,Ud)}var Ab=(e,t,s)=>{const o=kg(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 H(...e){Pc(ki,e[0],e[1],!0)}function Ee(...e){Pc(Oo,e[0],e[1],!1)}function Ri(e,t,s){Pc(Oo,e,t,!1,s)}function Lb(e,t){const s=t[0];return`error #${s} `+Ig(s,t[1],e).join(" ")}function Qt(...e){return Lb(void 0,e)}function Ag(e,t){return e.get("rowModelType")===t}function We(e,t){return Ag(e,"clientSide")}function po(e,t){return Ag(e,"serverSide")}function st(e,t){return e.get("domLayout")===t}function Ys(e){return mr(e)!==void 0}function Lg(e){return typeof e.get("getRowHeight")=="function"}function Ob(e,t){return t?!e.get("enableStrictPivotColumnOrder"):e.get("maintainColumnOrder")}function Ts(e,t,s=!1,o){const{gos:i,environment:n}=e;if(o==null&&(o=n.getDefaultRowHeight()),Lg(i)){if(s)return{height:o,estimated:!0};const l={node:t,data:t.data},c=i.getCallback("getRowHeight")(l);if(Il(c))return c===0&&H(23),{height:Math.max(1,c),estimated:!1}}if(t.detail&&i.get("masterDetail"))return Nb(i);const r=i.get("rowHeight");return{height:r&&Il(r)?r:o,estimated:!1}}function Nb(e){if(e.get("detailRowAutoHeight"))return{height:1,estimated:!1};const t=e.get("detailRowHeight");return Il(t)?{height:t,estimated:!1}:{height:300,estimated:!1}}function Zs(e){const{environment:t,gos:s}=e,o=s.get("rowHeight");if(!o||He(o))return t.getDefaultRowHeight();const i=t.refreshRowHeightVariable();return i!==-1?i:(H(24),t.getDefaultRowHeight())}function Il(e){return!isNaN(e)&&typeof e=="number"&&isFinite(e)}function Og(e,t,s){const o=t[e.getDomDataKey()];return o?o[s]:void 0}function no(e,t,s,o){const i=e.getDomDataKey();let n=t[i];He(n)&&(n={},t[i]=n),n[s]=o}function Ho(e){return e.get("ensureDomOrder")?!1:e.get("animateRows")}function Ng(e){return!(e.get("paginateChildRows")||e.get("groupHideOpenParents")||st(e,"print"))}function qt(e){return!e.get("autoGroupColumnDef")?.comparator&&!e.get("treeData")}function kl(e){const t=e.get("groupAggFiltering");if(typeof t=="function")return e.getCallback("groupAggFiltering");if(t===!0)return()=>!0}function Hg(e){return e.get("grandTotalRow")}function Gg(e,t){return t?!1:e.get("groupDisplayType")==="groupRows"}function Bg(e,t,s){return!!t.group&&!t.footer&&Gg(e,s)}function qo(e){const t=e.getCallback("getRowId");return t===void 0?t:s=>{let o=t(s);return typeof o!="string"&&(Rc(()=>H(25,{id:o}),"getRowIdString"),o=String(o)),o}}function Hb(e,t){const s=e.get("groupHideParentOfSingleChild");return!!(s===!0||s==="leafGroupsOnly"&&t.leafGroup||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren")&&t.leafGroup)}function Gb(e){const t=e.get("maxConcurrentDatasourceRequests");return t>0?t:void 0}function Go(e){return e?.checkboxes??!0}function Yn(e){return e?.mode==="multiRow"&&(e.headerCheckbox??!0)}function fr(e){if(typeof e=="object")return e.checkboxLocation??"selectionColumn"}function Aa(e){return e?.hideDisabledCheckboxes??!1}function Bb(e){return typeof e.get("rowSelection")!="string"}function Is(e){const t=e.get("cellSelection");return t!==void 0?!!t:e.get("enableRangeSelection")}function Vg(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 Vb(e){const t=Vg(e);return t===!0||t==="enableSelection"}function zb(e){const t=Vg(e);return t===!0||t==="enableDeselection"}function Al(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("isRowSelectable"):t?.isRowSelectable}function mr(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 Cr(e){return mr(e)==="multiRow"}function Wb(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("rowMultiSelectWithClick"):t?.enableSelectionWithoutKeys??!1}function vr(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 zg(e,t=!0){const s=e.get("rowSelection");return typeof s!="object"?t?"all":void 0:s.mode==="multiRow"?s.selectAll:"all"}function _b(e){const t=e.get("rowSelection");return typeof t=="string"?!1:t?.mode==="multiRow"?t.ctrlASelectsRows??!1:!1}function qi(e){const t=vr(e);return t==="descendants"||t==="filteredDescendants"}function Kd(e){const t=e.get("rowSelection");return typeof t=="object"&&t.masterSelects||"self"}function jb(e){return e.isModuleRegistered("SetFilter")&&!e.get("suppressSetFilterByDefault")}function bt(e){return e.get("columnMenu")==="legacy"}function Ub(e){return!bt(e)}function $b(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substring(1)}function Kb(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 qb(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 ie(e,t){return e.addCommon(t)}function Zn(e,t){return e[t]??e.gridOptions?.[t]??xg(t)??Rg[t]}function qd({gos:e},t){return t.button===2||t.ctrlKey&&e.get("allowContextMenuWithControlKey")}var Yb={resizable:!0,sortable:!0},Zb=0;function Wg(){return Zb++}function ks(e){return e instanceof fo}var fo=class extends L{constructor(e,t,s,o){super(),this.colDef=e,this.userProvidedColDef=t,this.colId=s,this.primary=o,this.isColumn=!0,this.instanceId=Wg(),this.autoHeaderHeight=null,this.moving=!1,this.resizing=!1,this.menuVisible=!1,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.colEventSvc=new so,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.flex=null,this.colIdSanitised=Pi(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=j(t)&&t.includes(".")&&!o,this.tooltipFieldContainsDots=j(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 ie(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]??Yb[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 ie(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 He(this.sort)}isSorting(){return j(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 H(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 ie(this.gos,{node:e,data:e.data,colDef:this.colDef,column:this})}getColSpan(e){if(He(this.colDef.colSpan))return 1;const t=this.createBaseColDefParams(e),s=this.colDef.colSpan(t);return Math.max(s,1)}getRowSpan(e){if(He(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&&ct(o,s),this.colEventSvc.dispatchEvent(o)}dispatchStateUpdatedEvent(e){this.colEventSvc.dispatchEvent({type:"columnStateUpdated",key:e})}};function rt(e){return e instanceof Xn}var Xn=class extends L{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=Wg(),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)ks(t)?e(t):rt(t)&&t.forEachLeafColumn(e)}addLeafColumns(e){if(this.children)for(const t of this.children)ks(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()}},Xb={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}};function Yd(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 Qb=class{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;t<e.length;t++)this.existingKeys[e[t]]=!0}getUniqueKey(e,t){e=El(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&&H(273,{providedId:e,usedId:i}),this.existingKeys[i]=!0,i}s++}}};function Pe(e){if(e?.length)return e[e.length-1]}function Ls(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 vi(e,t){if(e)for(const s of e)t(s)}function Vt(e,t){const s=e.indexOf(t);s>=0&&e.splice(s,1)}function Zd(e,t,s){for(let o=0;o<t.length;o++)Vt(e,t[o]);for(let o=t.length-1;o>=0;o--)e.splice(s,0,t[o])}var Qr="ag-Grid-AutoColumn",_g="ag-Grid-SelectionColumn",jg="ag-Grid-RowNumbersColumn";function Ug(e){const t=[],s=o=>{for(let i=0;i<o.length;i++){const n=o[i];ks(n)?t.push(n):rt(n)&&s(n.getChildren())}};return s(e),t}function is(e){return e.reduce((t,s)=>t+s.getActualWidth(),0)}function wr(e,t,s){const o={};if(!t)return;ds(null,t,n=>{o[n.getInstanceId()]=n}),s&&ds(null,s,n=>{o[n.getInstanceId()]=null});const i=Object.values(o).filter(n=>n!=null);e.context.destroyBeans(i)}function Mc(e){return e.getId().startsWith(Qr)}function Cs(e){return(typeof e=="string"?e:"getColId"in e?e.getColId():e.colId)?.startsWith(_g)??!1}function cs(e){return(typeof e=="string"?e:"getColId"in e?e.getColId():e.colId)?.startsWith(jg)??!1}function Jb(e){return Cs(e)||cs(e)}function br(e){let t=[];return e instanceof Array?t=e:typeof e=="string"&&(t=e.split(",")),t}function e0(e,t){return Ls(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 Bo(e){return e==="optionsUpdated"?"gridOptionsChanged":e}function Ai(e,t){const s=e===t,o=e.getColDef()===t,i=e.getColId()==t;return s||o||i}var s0=(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),j(o)&&e[o]!==void 0&&(i.value2=e[o],n=!0)),!n&&t&&(t[s]!==void 0&&(i.value1=t[s]),j(o)&&t[o]!==void 0&&(i.value2=t[o])),i},o0=(e,t)=>{rt(e)&&e.setupExpandable(),e.originalParent=t};function i0(e,t=null,s,o,i){const n=new Qb,{existingCols:r,existingGroups:a,existingColKeys:l}=n0(o);n.addExistingKeys(l);const c=$g(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 ds(null,h,o0),{columnTree:h,treeDepth:u}}function n0(e){const t=[],s=[],o=[];return e&&ds(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 $g(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&&u0(u)?c[d]=l.createProvidedColumnGroup(o,u,s,i,n,r,a):c[d]=r0(e,o,u,i,n,a)}return c}function r0(e,t,s,o,i,n){const r=l0(s,o);r&&o?.splice(r.idx,1);let a=r?.column;if(a){const l=Ll(e,s,a.getColId());a.setColDef(l,s,n),a0(e,a,l,n)}else{const l=i.getUniqueKey(s.colId,s.field),c=Ll(e,s,l);a=new fo(c,s,l,t),e.context.createBean(a)}return e.dataTypeSvc?.addColumnListeners(a),a}function Kg(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 a0(e,t,s,o){Kg(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 l0(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 Ll(e,t,s,o){const{gos:i,dataTypeSvc:n}=e,r={},a=i.get("defaultColDef");ct(r,a,!1,!0);const l=c0(e,r,t,s);l&&d0(e,l,r);const c=r.cellDataType;ct(r,t,!1,!0),c!==void 0&&(r.cellDataType=c);const d=i.get("autoGroupColumnDef"),u=qt(i);return t.rowGroup&&d&&u&&ct(r,{sort:d.sort,initialSort:d.initialSort},!1,!0),n&&(n.postProcess(r),n.validateColDef(r)),i.validateColDef(r,s,o),r}function c0(e,t,s,o){const i=e.dataTypeSvc?.updateColDefAndGetColumnType(t,s,o),n=s.type??i??t.type;return t.type=n,n?br(n):void 0}function d0(e,t,s){if(!t.length)return;const o=Object.assign({},Xb),i=e.gos.get("columnTypes")||{};for(const n of Object.keys(i)){const r=i[n];n in o?H(34,{key:n}):(r.type&&H(35),o[n]=r)}for(const n of t){const r=o[n.trim()];r?ct(s,r,!1,!0):H(36,{t:n})}}function u0(e){return e.children!==void 0}function ds(e,t,s){if(t)for(let o=0;o<t.length;o++){const i=t[o];rt(i)&&ds(i,i.getChildren(),s),s(i,e)}}function qg(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 Yg(e,t){let s=!0;return ds(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 Zg(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 Xg(e,t,s){if(!t.length)return;const o=t.length===1?t[0]:null,i=Zg(t,n=>n.getPinned());e.dispatchEvent({type:"columnPinned",pinned:i??null,columns:t,column:o,source:s})}function h0(e,t,s){if(!t.length)return;const o=t.length===1?t[0]:null,i=Zg(t,n=>n.isVisible());e.dispatchEvent({type:"columnVisible",visible:i,columns:t,column:o,source:s})}function g0(e,t,s,o){e.dispatchEvent({type:t,columns:s,column:s&&s.length==1?s[0]:null,source:o})}function Yo(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 Ht(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,m=o.getColDefCols()??[],v=a?.getColumns();if(!m.length&&!v?.length)return!1;if(t?.state&&!t.state.forEach)return H(32),!1;const w=(x,F,D,R,P)=>{if(!x)return;const T=s0(F,t.defaultState),E=T("flex").value1;if(Kg(e,x,T("hide").value1,T("sort").value1,T("sortIndex").value1,T("pinned").value1,E,s),E==null){const M=T("width").value1;if(M!=null){const A=x.getColDef().minWidth??u.getDefaultColumnMinWidth();A!=null&&M>=A&&x.setActualWidth(M,s)}}P||!x.isPrimary()||(h?.syncColumnWithState(x,s,T),i?.syncColumnWithState(x,s,T,D),n?.syncColumnWithState(x,s,T,R))},b=(x,F,D)=>{const R=Qg(e,s),P=F.slice(),T={},E={},M=[],A=[],G=[];let N=0;const Z=i?.columns.slice()??[],te=n?.columns.slice()??[];for(const z of x){const W=z.colId;if(W.startsWith(Qr)){M.push(z),G.push(z);continue}if(Cs(W)){A.push(z),G.push(z);continue}const K=D(W);K?(w(K,z,T,E,!1),Vt(P,K)):(G.push(z),N+=1)}const O=z=>w(z,null,T,E,!1);P.forEach(O),i?.sortColumns(Xd.bind(i,T,Z)),n?.sortColumns(Xd.bind(n,E,te)),o.refreshCols(!1,s);const Q=(z,W,$=[])=>{for(const K of W){const U=z(K.colId);Vt($,U),w(U,K,null,null,!0)}$.forEach(O)};return Q(z=>r?.getColumn(z)??null,M,r?.getColumns()?.slice()),Q(z=>a?.getColumn(z)??null,A,a?.getColumns()?.slice()),f0(t,o,f),c.refresh(s),p.dispatchEvent({type:"columnEverythingChanged",source:s}),R(),{unmatchedAndAutoStates:G,unmatchedCount:N}};l?.start();let{unmatchedAndAutoStates:S,unmatchedCount:y}=b(t.state||[],m,x=>o.getColDefCol(x));if(S.length>0||j(t.defaultState)){const x=d?.getPivotResultCols()?.list??[];y=b(S,x,F=>d?.getPivotResultCol(F)??null).unmatchedCount}return l?.finish(),y===0}function p0(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=Ug(l),d=[];let u=1e3,h=1e3;const p=b=>{const S=Jg(b);He(S.rowGroupIndex)&&S.rowGroup&&(S.rowGroupIndex=u++),He(S.pivotIndex)&&S.pivot&&(S.pivotIndex=h++),d.push(S)};o?.getColumns()?.forEach(p),i?.getColumns()?.forEach(p),c?.forEach(p),Ht(e,{state:d},t);const f=o?.getColumns()??[],w=[...i?.getColumns()??[],...f,...a].map(b=>({colId:b.colId}));Ht(e,{state:w,applyOrder:!0},t),n.dispatchEvent(ie(r,{type:"columnsReset",source:t}))}function Qg(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=Sr(e),d={};for(const u of c)d[u.colId]=u;return()=>{const u=(F,D,R,P)=>{const T=D.map(P),E=R.map(P);if(Ls(T,E))return;const A=new Set(D);for(const N of R)A.delete(N)||A.add(N);const G=[...A];a.dispatchEvent({type:F,columns:G,column:G.length===1?G[0]:null,source:t})},h=F=>{const D=[];return n.forAllCols(R=>{const P=d[R.getColId()];P&&F(P,R)&&D.push(R)}),D},p=F=>F.getColId();u("columnRowGroupChanged",l.rowGroupColumns,s?.columns??[],p),u("columnPivotChanged",l.pivotColumns,o?.columns??[],p);const m=h((F,D)=>{const R=F.aggFunc!=null,P=R!=D.isValueActive(),T=R&&F.aggFunc!=D.getAggFunc();return P||T});m.length>0&&g0(a,"columnValueChanged",m,t),Yo(a,h((F,D)=>F.width!=D.getActualWidth()),!0,t),Xg(a,h((F,D)=>F.pinned!=D.getPinned()),t),h0(a,h((F,D)=>F.hide==D.isVisible()),t);const y=h((F,D)=>F.sort!=D.getSort()||F.sortIndex!=D.getSortIndex());y.length>0&&r?.dispatchSortChangedEvents(t,y);const x=Sr(e);C0(c,x,t,n,a)}}function Sr(e){const{colModel:t,rowGroupColsSvc:s,pivotColsSvc:o}=e,i=t.getColDefCols();if(He(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,m=d.getSortIndex()!=null?d.getSortIndex():null;a.push({colId:d.getColId(),width:d.getActualWidth(),hide:!d.isVisible(),pinned:d.getPinned(),sort:f,sortIndex:m,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 Jg(e){const t=(f,m)=>f??m??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 f0(e,t,s){if(!e.applyOrder||!e.state)return;const o=[];for(const i of e.state)i.colId!=null&&o.push(i.colId);m0(t.cols,o,t,s)}function m0(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(Qr)?i.splice(r++,0,a):i.push(a)}if(i=qg(i,o),!Yg(i,s.getColTree())){H(39);return}e.list=i}function C0(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 Xd=(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},v0=class extends L{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(Bo(e.source))),this.addManagedPropertyListeners(["defaultColDef","defaultColGroupDef","columnTypes","suppressFieldDotNotation"],this.recreateColumnDefs.bind(this)),this.addManagedPropertyListener("pivotMode",e=>this.setPivotMode(this.gos.get("pivotMode"),Bo(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?Qg(t,e):void 0;s?.expire();const u=this.colDefCols?.list,h=this.colDefCols?.tree,p=i0(t,this.colDefs,!0,h,e);wr(t,this.colDefCols?.tree,p.columnTree);const f=p.columnTree,m=p.treeDepth,v=Ug(f),w={};for(const b of v)w[b.getId()]=b;this.colDefCols={tree:f,treeDepth:m,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=Ob(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(),!Ls(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=Mc(l);if(o){const d=r?.includes(l);return c||d||i&&Cs(l)||n&&cs(l)}else return c||l.isVisible()})}refreshAll(e){this.ready&&(this.refreshCols(!1,e),this.beans.visibleCols.refresh(e))}setColsVisible(e,t=!1,s){Ht(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,m=null;for(const v of p.getChildren())if(!(v===h||v===u)){if(v instanceof fo){const w=i.get(v);if(w==null)continue;(f==null||f<w)&&(f=w,m=v);continue}v.forEachLeafColumn(w=>{const b=i.get(w);b!=null&&(f==null||f<b)&&(f=b,m=w)})}return m??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 m=p[f];c[d--]=m}else c[d--]=p;c[d--]=h}e.list=c}positionLockedCols(e){e.list=qg(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=Bo(e.source);this.createColsFromColDefs(t)}setColumnDefs(e,t){this.colDefs=e,this.createColsFromColDefs(t)}destroy(){wr(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;vi(this.colDefCols?.list,e),vi(s?.columns?.list,e),vi(o?.columns?.list,e),vi(i?.columns?.list,e),vi(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(Ai(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}},ep=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}},ii=class extends L{};function rn(e,t,s){return s&&e.addDestroyFunc(()=>t.destroyBean(s)),s??e}var se=null;function Qd(e){return typeof e?.getGui=="function"}var an=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)}},w0=0,ln=class extends es{constructor(e,t){super(),this.suppressDataRefValidation=!1,this.displayed=!0,this.visible=!0,this.compId=w0++,this.cssManager=new an(()=>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(vg):null}applyElementsToComponent(e,t,s,o=null){if(t===void 0&&(t=this.getDataRefAttribute(e)),t){const i=this[t];if(i===se)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=wc(e):o=nn(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),yc(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;J1(this.eGui,e,{skipAriaHidden:s})}}setDisplayed(e,t={}){if(e!==this.displayed){this.displayed=e;const{skipAriaHidden:s}=t;Ge(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)}},Ve=class extends ln{};function tp(e){return typeof e=="object"&&!!e.component}function b0(e,t){return new ye(s=>{s(window.setInterval(e,t))})}var ye=class Fi{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 Fi(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)})})}):Fi.resolve()}static resolve(t=null){return new Fi(s=>s(t))}then(t){return new Fi(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 S0(e){return e?e.prototype&&"getGui"in e.prototype:!1}function sp(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=m=>{typeof m=="string"?n=m:m!=null&&m!==!0&&(e.isFrameworkComponent(m)?a=m:r=m)};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 y0=class extends L{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}=sp(this.beans.frameworkOverrides,e,t,o),p,f;const m=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&&m(a),l==null&&c==null&&s!=null&&m(s),l&&r&&!S0(l)&&(l=this.agCompUtils?.adaptFunction(t,l)),!l&&!c){const{validation:S}=this.beans;i&&(a!==s||!s)?a?S?.isProvidedUserComp(a)||Ee(50,{compName:a}):s?S||Ee(260,{...this.gos.getModuleErrorParams(),propName:n,compName:s}):Ee(216,{name:n}):s&&!S&&Ee(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?ye.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);ct(r,c)}else typeof l=="object"&&ct(r,l);return ct(r,o),n?n(r):r}},x0={name:"dateComponent",mandatoryMethods:["getDate","setDate"],optionalMethods:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled","refresh"]},R0={name:"dragAndDropImageComponent",mandatoryMethods:["setIcon","setLabel"]},F0={name:"headerComponent",optionalMethods:["refresh"]},E0={name:"innerHeaderComponent"},D0={name:"innerHeaderGroupComponent"},P0={name:"headerGroupComponent"},M0={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},T0={name:"loadingCellRenderer",cellRenderer:!0},I0={name:"cellEditor",mandatoryMethods:["getValue"],optionalMethods:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached","refresh"]},k0={name:"loadingOverlayComponent",optionalMethods:["refresh"]},A0={name:"noRowsOverlayComponent",optionalMethods:["refresh"]},L0={name:"tooltipComponent"},Tc={name:"filter",mandatoryMethods:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethods:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged","refresh"]},O0={name:"floatingFilterComponent",mandatoryMethods:["onParentModelChanged"],optionalMethods:["afterGuiAttached","refresh"]},N0={name:"fullWidthCellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},H0={name:"loadingCellRenderer",cellRenderer:!0},G0={name:"groupRowRenderer",optionalMethods:["afterGuiAttached"],cellRenderer:!0},B0={name:"detailCellRenderer",optionalMethods:["refresh"],cellRenderer:!0};function V0(e,t){return e.getCompDetailsFromGridOptions(R0,"agDragAndDropImage",t,!0)}function z0(e,t,s){return e.getCompDetails(t,F0,"agColumnHeader",s)}function W0(e,t,s){return e.getCompDetails(t,E0,void 0,s)}function _0(e,t){const s=t.columnGroup.getColGroupDef();return e.getCompDetails(s,P0,"agColumnGroupHeader",t)}function j0(e,t,s){return e.getCompDetails(t,D0,void 0,s)}function U0(e,t){return e.getCompDetailsFromGridOptions(N0,void 0,t,!0)}function $0(e,t){return e.getCompDetailsFromGridOptions(H0,"agLoadingCellRenderer",t,!0)}function K0(e,t){return e.getCompDetailsFromGridOptions(G0,"agGroupRowRenderer",t,!0)}function q0(e,t){return e.getCompDetailsFromGridOptions(B0,"agDetailCellRenderer",t,!0)}function Jd(e,t,s){return e.getCompDetails(t,M0,void 0,s)}function eu(e,t,s){return e.getCompDetails(t,T0,"agSkeletonCellRenderer",s,!0)}function op(e,t,s){return e.getCompDetails(t,I0,"agCellEditor",s,!0)}function Y0(e,t,s,o){const i=t.filter;return tp(i)&&(t={filter:i.component,filterParams:t.filterParams}),e.getCompDetails(t,Tc,o,s,!0)}function Z0(e,t,s){return e.getCompDetails(t,x0,"agDateInput",s,!0)}function X0(e,t){return e.getCompDetailsFromGridOptions(k0,"agLoadingOverlay",t,!0)}function Q0(e,t){return e.getCompDetailsFromGridOptions(A0,"agNoRowsOverlay",t,!0)}function J0(e,t){return e.getCompDetails(t.colDef,L0,"agTooltipComponent",t,!0)}function eS(e,t,s,o){return e.getCompDetails(t,O0,o,s)}function ip(e,t){return sp(e,t,Tc)}function La(e,t,s){return e.mergeParams(t,Tc,s)}function Yi(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"},Ic=class extends ln{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()}},Oa,Na,Ha,Ga,Ol,Nl,Ba;function Os(){return Oa===void 0&&(Oa=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),Oa}function np(){return Na===void 0&&(Na=/(firefox)/i.test(navigator.userAgent)),Na}function rp(){return Ha===void 0&&(Ha=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),Ha}function Xs(){return Ga===void 0&&(Ga=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),Ga}function Hl(e){if(!e)return null;const t=e.tabIndex,s=e.getAttribute("tabIndex");return t===-1&&(s===null||s===""&&!np())?null:t.toString()}function sS(){if(Ba!==void 0)return Ba;if(!document.body)return-1;let e=1e6;const t=np()?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(),Ba=e,e}function oS(){return Nl==null&&ap(),Nl}function ap(){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&&(Nl=s,Ol=s===0)}function lp(){return Ol==null&&ap(),Ol}var kc="T",iS=new RegExp(`[${kc} ]`),nS=new RegExp(`^\\d{4}-\\d{2}-\\d{2}(${kc}\\d{2}:\\d{2}:\\d{2}\\D?)?`);function Yt(e,t){return e.toString().padStart(t,"0")}function St(e,t=!0,s=kc){if(!e)return null;let o=[e.getFullYear(),e.getMonth()+1,e.getDate()].map(i=>Yt(i,2)).join("-");return t&&(o+=s+[e.getHours(),e.getMinutes(),e.getSeconds()].map(i=>Yt(i,2)).join(":")),o}function kn(e,t=!0){return e?t?[String(e.getFullYear()),String(e.getMonth()+1),Yt(e.getDate(),2),Yt(e.getHours(),2),`:${Yt(e.getMinutes(),2)}`,`:${Yt(e.getSeconds(),2)}`]:[e.getFullYear(),e.getMonth()+1,Yt(e.getDate(),2)].map(String):null}var Va=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"},tu=["January","February","March","April","May","June","July","August","September","October","November","December"],za=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Gl(e,t){if(t==null)return St(e,!1);const s=Yt(e.getFullYear(),4),o={YYYY:()=>s.slice(s.length-4,s.length),YY:()=>s.slice(s.length-2,s.length),Y:()=>`${e.getFullYear()}`,MMMM:()=>tu[e.getMonth()],MMM:()=>tu[e.getMonth()].slice(0,3),MM:()=>Yt(e.getMonth()+1,2),Mo:()=>`${e.getMonth()+1}${Va(e.getMonth()+1)}`,M:()=>`${e.getMonth()+1}`,Do:()=>`${e.getDate()}${Va(e.getDate())}`,DD:()=>Yt(e.getDate(),2),D:()=>`${e.getDate()}`,dddd:()=>za[e.getDay()],ddd:()=>za[e.getDay()].slice(0,3),dd:()=>za[e.getDay()].slice(0,2),do:()=>`${e.getDay()}${Va(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 Qn(e,t=!1){return!!pt(e,t)}function rS(e){return Qn(e,!0)}function pt(e,t=!1,s){if(!e||!s&&!nS.test(e))return null;const[o,i]=e.split(iS);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 Bl(e){const{inputValue:t,allSuggestions:s,hideIrrelevant:o,filterByPercentageOfBestMatch:i}=e;let n=(s??[]).map((l,c)=>({value:l,relevance:aS(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 aS(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 cp(e){return e.altKey||e.ctrlKey||e.metaKey?!1:e.key?.length===1}var Vl=!1,yr=0;function lS(e){yr>0||(e.addEventListener("keydown",xr),e.addEventListener("mousedown",xr))}function cS(e){yr>0||(e.removeEventListener("keydown",xr),e.removeEventListener("mousedown",xr))}function xr(e){const t=Vl,s=e.type==="keydown";s&&(e.ctrlKey||e.metaKey||e.altKey)||t!==s&&(Vl=s)}function dS(e){const t=Qe(e);return lS(t),yr++,()=>{yr--,cS(t)}}function uS(){return Vl}function Vo(e,t,s=!1){const o=Q1;let i=gg;t&&(i+=", "+t),s&&(i+=', [tabindex="-1"]');const n=Array.prototype.slice.apply(e.querySelectorAll(o)).filter(l=>ps(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 ro(e,t=!1,s=!1,o=!1){const i=Vo(e,o?".ag-tab-guard":null,s),n=t?Pe(i):i[0];return n?(n.focus({preventScroll:!0}),!0):!1}function mo(e,t,s,o){const i=Vo(t,s?':not([tabindex="-1"])':null),n=Be(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 dp(e,t=5){let s=0;for(;e&&Hl(e)===null&&++s<=t;)e=e.parentElement;return Hl(e)===null?null:e}var hS=".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)}",gS=class extends ln{constructor(e,t,s){super(t,s),this.labelSeparator="",this.labelAlignment="left",this.disabled=!1,this.label="",this.config=e||{},this.registerCSS(hS)}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;gt(t),typeof e=="string"?t.innerText=e+this.labelSeparator:e&&t.appendChild(e),e===""?(Ge(t,!1),oo(t,"presentation")):(Ge(t,!0),oo(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:(hr(this.eLabel,e),this)}setDisabled(e){e=!!e;const t=this.getGui();return ji(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this}isDisabled(){return!!this.disabled}},up=class extends gS{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==""||H1(e)!==null?_i(e,""):_i(e,t??"")}setAriaLabel(e){return Ko(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 Xt(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 pS(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 _s=class extends up{constructor(e,t,s="text",o="input"){super(e,e?.template??pS(o),[],t),this.inputType=s,this.displayFieldTag=o,this.eLabel=se,this.eWrapper=se,this.eInput=se}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,wt(this.eInput,"type",e))}getInputElement(){return this.eInput}setInputWidth(e){return hr(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 wt(this.eInput,"placeholder",e),this}setInputAriaLabel(e){return Ko(this.eInput,e),this.refreshAriaLabelledBy(),this}setDisabled(e){return ji(this.eInput,e),super.setDisabled(e)}setAutoComplete(e){if(e===!0)wt(this.eInput,"autocomplete",null);else{const t=typeof e=="string"?e:"off";wt(this.eInput,"autocomplete",t)}return this}},Ac=class extends _s{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)}},Lc={selector:"AG-CHECKBOX",component:Ac},fS=class extends Ac{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)}},Co=class extends _s{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=j(e)?e:""),super.setValue(e,t)}setStartValue(e){this.setValue(e,!0)}preventDisallowedCharacters(){const e=new RegExp(`[${this.config.allowedCharPattern}]`),t=s=>{cp(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()}})}},Jr={selector:"AG-INPUT-TEXT-FIELD",component:Co},mS=class extends _s{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}},CS={selector:"AG-INPUT-TEXT-AREA",component:mS},Oc=class extends Co{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){Be(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,wt(this.eInput,"min",e),this)}setMax(e){return this.max===e?this:(this.max=e,wt(this.eInput,"max",e),this)}setPrecision(e){return this.precision=e,this}setStep(e){return this.step===e?this:(this.step=e,wt(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(j(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")}},vS={selector:"AG-INPUT-NUMBER-FIELD",component:Oc},wS=class extends Co{constructor(e){super(e,"ag-date-field","date")}postConstruct(){super.postConstruct();const e=Os();this.addManagedListeners(this.eInput,{wheel:this.onWheel.bind(this),mousedown:()=>{this.isDisabled()||e||this.eInput.focus()}}),this.eInput.step="any"}onWheel(e){Be(this.beans)===this.eInput&&e.preventDefault()}setMin(e){const t=e instanceof Date?St(e??null,!!this.includeTime)??void 0:e;return this.min===t?this:(this.min=t,wt(this.eInput,"min",t),this)}setMax(e){const t=e instanceof Date?St(e??null,!!this.includeTime)??void 0:e;return this.max===t?this:(this.max=t,wt(this.eInput,"max",t),this)}setStep(e){return this.step===e?this:(this.step=e,wt(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 pt(this.getValue())??void 0}setDate(e,t){this.setValue(St(e??null,this.includeTime),t)}},hp={selector:"AG-INPUT-DATE-FIELD",component:wS},bS=".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)}}",SS="ag-active-item",yS=(e,t)=>({tag:"div",cls:`ag-list-item ag-${e}-list-item`,attrs:{role:"option"},children:[{tag:"span",ref:"eText",children:t}]}),xS=class extends ln{constructor(e,t,s){super(yS(e,t)),this.label=t,this.value=s,this.eText=se}postConstruct(){this.createTooltip(),this.addEventListeners()}setHighlighted(e){const t=this.getGui();t.classList.toggle(SS,e),hg(t,e),this.dispatchLocalEvent({type:"itemHighlighted",highlighted:e})}getHeight(){return this.getGui().clientHeight}setIndex(e,t){const s=this.getGui();_1(s,e),W1(s,t)}createTooltip(){const e={getTooltipValue:()=>this.label,getGui:()=>this.getGui(),getLocation:()=>"UNKNOWN",shouldDisplayTooltip:()=>bc(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)}))}},RS=class extends ln{constructor(e="default"){super({tag:"div",cls:`ag-list ag-${e}-list`}),this.cssIdentifier=e,this.options=[],this.listItems=[],this.highlightedItem=null,this.registerCSS(bS)}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();gt(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(!ps(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 xS(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]:Pe(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(){oo(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"})}},FS=".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}}",ES={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"}}]}]},DS=class extends up{constructor(e){if(super(e,e?.template||ES,e?.agComponents||[],e?.className),this.isPickerDisplayed=!1,this.skipClick=!1,this.pickerGap=4,this.hideCurrentPicker=null,this.eLabel=se,this.eWrapper=se,this.eDisplayField=se,this.eIcon=se,this.registerCSS(FS),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()),Dl(e,!1),this.ariaRole&&oo(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 m=ig(c);this.beforeHidePicker(),m&&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=Sc(cr(d)),a&&(e.style.maxWidth=a)):hr(e,a??cr(d));const f=n??`${vc(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();Dl(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 hr(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()}},PS=".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)}",Nc=class extends DS{constructor(e){super({pickerAriaLabelKey:"ariaLabelSelectField",pickerAriaLabelValue:"Select Field",pickerType:"ag-list",className:"ag-select",pickerIcon:"selectOpen",ariaRole:"combobox",...e}),this.registerCSS(PS)}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{shouldDisplayTooltip:$n(()=>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 RS("select"));this.listComponent=e,e.setParentComponent(this);const t=e.getAriaElement(),s=`ag-select-list-${e.getCompId()}`;t.setAttribute("id",s),X1(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()}},MS={selector:"AG-SELECT",component:Nc},TS=':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}}',Hc=typeof window!="object"||!window?.document?.fonts?.forEach,Zo=(e,t,s,o,i,n)=>{if(Hc)return;o&&(e=`@layer ${CSS.escape(o)} { ${e} }`);let r=zo.map.get(t);if(r||(r=[],zo.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)},gp=(e,t,s,o)=>{Zo(TS,e,"shared",t,0,s),o?.forEach((i,n)=>i.forEach(r=>Zo(r,e,n,t,0,s)))},IS=e=>{zo.grids.add(e)},kS=e=>{if(zo.grids.delete(e),zo.grids.size===0){zo.map=new WeakMap;for(const t of document.head.querySelectorAll("style[data-ag-global-css]"))t.remove()}},su,zo=(su=typeof window=="object"?window:{}).agStyleInjectionState??(su.agStyleInjectionState={map:new WeakMap,grids:new Set}),dt=e=>new pp(e),Fs="$default",AS=0,pp=class{constructor({feature:e,params:t,modeParams:s={},css:o,cssImports:i}){this.feature=e,this.css=o,this.cssImports=i,this.modeParams={[Fs]:{...s[Fs]??{},...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"}-${++AS}`;typeof i=="function"&&(i=i()),i=`:where(.${n}) {
4
4
  ${i}
@@ -104,20 +104,21 @@ const ni = ({ errorText: e }) => e && /* @__PURE__ */ v("span", { className: "te
104
104
  asChild: t = !1,
105
105
  ...s
106
106
  }) => {
107
- const i = hg(), o = N(null), n = t && xc(e), a = e && typeof e == "object" && "ref" in e && e.ref !== void 0 ? e.ref : void 0, l = [i.refs.setReference, o];
108
- n && a && l.push(a);
109
- const c = yc(l);
110
- return n ? yl(
107
+ const i = hg(), o = t && xc(e), n = o ? e.props?.ref : null, r = yc([
108
+ i.refs.setReference,
109
+ ...n ? [n] : []
110
+ ]);
111
+ return o ? yl(
111
112
  e,
112
113
  i.getReferenceProps({
113
114
  ...e.props,
114
115
  ...s,
115
- ref: c
116
+ ref: r
116
117
  })
117
118
  ) : /* @__PURE__ */ v(
118
119
  "span",
119
120
  {
120
- ref: c,
121
+ ref: r,
121
122
  ...i.getReferenceProps(s),
122
123
  className: s.className ?? "dial-tooltip-trigger text-left",
123
124
  children: e
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-ui-kit",
3
- "version": "0.5.0-rc.81",
3
+ "version": "0.5.0-rc.82",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",