@bluealba/pae-ui-react-core 4.0.1-feature-initial-feature-flags-poc-1242 → 4.0.1-feature-feature-flags-1243

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,5 +1,5 @@
1
- var du=E=>{throw TypeError(E)};var Mi=(E,ue,L)=>ue.has(E)||du("Cannot "+L);var b=(E,ue,L)=>(Mi(E,ue,"read from private field"),L?L.call(E):ue.get(E)),D=(E,ue,L)=>ue.has(E)?du("Cannot add the same private member more than once"):ue instanceof WeakSet?ue.add(E):ue.set(E,L),O=(E,ue,L,Q)=>(Mi(E,ue,"write to private field"),Q?Q.call(E,L):ue.set(E,L),L),F=(E,ue,L)=>(Mi(E,ue,"access private method"),L);var oo=(E,ue,L,Q)=>({set _(te){O(E,ue,te,L)},get _(){return b(E,ue,Q)}});System.register("@bluealba/pae-ui-react-core",["react","single-spa","react-dom"],function(E,ue){"use strict";var L,Q,te,Yn,Kn,Qt,Ae,B,An,g,qi,so,Qi,ao,Yi,Zn,co,Ki;return{setters:[J=>{L=J.useState,Q=J.useEffect,te=J.useCallback,Yn=J.default,Kn=J.createContext,Qt=J.useContext,Ae=J.useMemo,B=J.forwardRef,An=J.createElement,g=J,qi=J.Children,so=J.isValidElement,Qi=J.useLayoutEffect,ao=J.useRef},J=>{Yi=J.navigateToUrl,Zn=J.default},J=>{co=J,Ki=J.default}],execute:function(){var Lt,pt,ln,Hl,un,mt,dn,Wl,It,Vl,fn,hn,Pe,Nt,de,zn,$t,Ne,ot,Gl,We,ql,Ve,pe,Mt,Ge,Et,Ql,et,$e,Hn,Yl,ne,gt,vt,pn,mn,yt,gn,vn,Kl,we,H,Wn,me,Ft,yn,bt,wt,Vn,bn,wn,Bt,Ut,_t,_n,G,Qn,Fi,Bi,Ui,zi,Hi,Wi,Vi,fu,Zl,xt,Ct,_e,tt,nt,io,Gi,Xl;var J=document.createElement("style");J.textContent=`:root{--platform-label-color: var(--platform-text-secondary-color);--platform-input-border-color: var(--platform-lines);--platform-input-background-color: var(--platform-background-secondary-color);--platform-input-color: var(--platform-text-primary-color);--platform-input-focus-border-color: var(--platform-color-primary);--platform-button-base-padding: 4px 16px;--platform-button-base-border-radius: 6px;--platform-button-base-box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);--platform-button-base-font-size: 1em;--platform-button-base-line-height: 16px;--platform-button-base-height: calc(2 * var(--platform-button-base-font-size));--platform-button-contained-primary-background-color: var(--platform-color-primary);--platform-button-contained-primary-color: #ffffff;--platform-button-outlined-primary-color: var(--platform-color-primary);--platform-button-text-primary-color: var(--platform-text-primary-color);--platform-button-contained-danger-background-color: var(--platform-color-danger);--platform-button-contained-danger-color: #ffffff;--platform-button-outlined-danger-color: var(--platform-color-danger);--platform-button-text-danger-color: var(--platform-color-danger)}@keyframes spinner-rotation__wUmPV{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.spinner__fakUN{position:relative;display:flex;transition:.3s;width:var(--icon-size);height:var(--icon-size)}.spinner__fakUN:before{content:"";position:absolute;top:50%;left:50%;width:var(--icon-size);height:var(--icon-size);margin-top:calc(var(--icon-size) / -2);margin-left:calc(var(--icon-size) / -2);border:2px solid transparent;box-sizing:border-box;border-radius:50%;animation:spinner-rotation__wUmPV .6s linear infinite;display:block}.button__8FA9H{all:unset;padding:var(--platform-button-base-padding);border-radius:var(--platform-button-base-border-radius);box-shadow:var(--platform-button-base-box-shadow);font-size:var(--platform-button-base-font-size);line-height:var(--platform-button-base-line-height);height:var(--platform-button-base-height);font-weight:600;outline:none;border:none;cursor:pointer;transition:width .2s ease-in;display:flex;align-items:center;gap:8px;--icon-size: 12px}.button__8FA9H:disabled{cursor:not-allowed;opacity:.5}.button--contained-primary__stkTx{background-color:var(--platform-button-contained-primary-background-color);color:var(--platform-button-contained-primary-color)}.button--contained-primary__stkTx .spinner__fakUN:before{border-top-color:var(--platform-button-contained-primary-color);border-right-color:var(--platform-button-contained-primary-color)}.button--outlined-primary__KZ1ww{background-color:transparent;color:var(--platform-button-outlined-primary-color);border:1px solid var(--platform-button-outlined-primary-color);height:calc(var(--platform-button-base-height) - 2px)}.button--outlined-primary__KZ1ww .spinner__fakUN:before{border-top-color:var(--platform-button-outlined-primary-color);border-right-color:var(--platform-button-outlined-primary-color)}.button--text-primary__GLTfm{background-color:transparent;color:var(--platform-button-text-primary-color);box-shadow:none}.button--text-primary__GLTfm .spinner__fakUN:before{border-top-color:var(--platform-button-text-primary-color);border-right-color:var(--platform-button-text-primary-color)}.button--contained-danger__L9ehT{background-color:var(--platform-button-contained-danger-background-color);color:var(--platform-button-contained-danger-color)}.button--contained-danger__L9ehT .spinner__fakUN:before{border-top-color:var(--platform-button-contained-danger-color);border-right-color:var(--platform-button-contained-danger-color)}.button--outlined-danger__eoYLd{background-color:transparent;color:var(--platform-button-outlined-danger-color);border:1px solid var(--platform-button-outlined-danger-color);height:calc(var(--platform-button-base-height) - 2px)}.button--outlined-danger__eoYLd .spinner__fakUN:before{border-top-color:var(--platform-button-outlined-danger-color);border-right-color:var(--platform-button-outlined-danger-color)}.button--text-danger__Sw-ha{background-color:transparent;color:var(--platform-button-text-danger-color);box-shadow:none}.button--text-danger__Sw-ha .spinner__fakUN:before{border-top-color:var(--platform-button-text-danger-color);border-right-color:var(--platform-button-text-danger-color)}.icon__--umH{width:var(--icon-size);height:var(--icon-size)}.Badges__5jpum{display:flex;gap:10px;margin-top:8px}.Badge__95MWM{display:flex;flex-direction:row;justify-content:center;align-items:center;text-align:center;color:var(--admin-ui-badge-color);padding:var(--admin-ui-badge-padding);background:var(--admin-ui-badge-background-color);border-radius:var(--admin-ui-badge-border-radius)}.Badge--primary__Rx-bS{--admin-ui-badge-background-color: var(--admin-ui-primary-color);--admin-ui-badge-color: #ffffff}.Badge--secondary__d92bT{--admin-ui-badge-background-color: var(--admin-ui-background-color-light);--admin-ui-badge-color: var(--admin-ui-secondary-text-color)}.Badge--success__Kdo98{--admin-ui-badge-background-color: var(--admin-ui-success-color-light);--admin-ui-badge-color: var(--admin-ui-success-color)}.Badge--warning__bf-Nn{--admin-ui-badge-background-color: var(--admin-ui-warning-color-light);--admin-ui-badge-color: var(--admin-ui-warning-color)}.Badge--danger__HTj39{--admin-ui-badge-background-color: var(--admin-ui-danger-color-light);--admin-ui-badge-color: var(--admin-ui-danger-color)}.Badge--small__y93Pj{font-size:var(--admin-ui-badge-font-size);line-height:var(--admin-ui-badge-line-height)}.Badge--regular__aT5AL{font-size:calc(1.25 * var(--admin-ui-badge-font-size));line-height:calc(1.25 * var(--admin-ui-badge-line-height))}.Badge--large__wORCH{font-size:calc(1.5 * var(--admin-ui-badge-font-size));line-height:calc(1.5 * var(--admin-ui-badge-line-height))}.CopyToClipboardButton__2Nd2m:hover{cursor:pointer}.FieldGroup__Q2JCV{margin-bottom:1em}.FieldGroup--horizontal__kpfL1{display:grid;grid-template-columns:max-content 1fr;grid-gap:1em;align-items:center;height:100%}.FieldGroup--vertical__FLo-Q{display:grid;grid-template-columns:1fr;grid-gap:4px}.Input__uS0sb{width:100%;padding:10px;border:1px solid var(--platform-input-border-color);background-color:var(--platform-input-background-color);color:var(--platform-input-color);border-radius:8px;font-size:1em}.Input__uS0sb:focus{outline:1px solid var(--platform-input-focus-border-color)}.Input__uS0sb.Error__-DQpw{border-color:var(--platform-color-danger)}.Error__N4OP5{width:100%;min-height:15px;color:var(--platform-color-danger);font-size:1em}.Label__VYUvW{font-size:1em;font-weight:400;color:var(--platform-label-color)}.Label__VYUvW.Error__Eu6DI{color:var(--platform-color-danger)}.Select__giqpe{width:100%;position:relative}.Select__giqpe select{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;color:var(--platform-input-color);font-size:14px;background-color:var(--platform-input-background-color);border:1px solid var(--platform-input-border-color);border-radius:8px;cursor:pointer;padding:10px}.Select__giqpe select:focus{outline:1px solid var(--platform-input-focus-border-color)}.Chevron__YvhBd{position:absolute;right:1em;top:50%;transform:translateY(-50%);pointer-events:none}.TextArea__pa-A0{width:100%;height:100%;background-clip:padding-box;padding:10px;border:1px solid var(--platform-input-border-color);background-color:var(--platform-input-background-color);color:var(--platform-input-color);border-radius:8px;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}.TextArea__pa-A0:focus{outline:1px solid var(--platform-input-focus-border-color)}.SearchInput__4OFyE{position:relative}.SearchInput__4OFyE .SearchIcon__YgnQy{position:absolute;top:50%;transform:translateY(-50%);left:10px;color:#000}.SearchInput__4OFyE .ClearIcon__ukRVr{position:absolute;top:50%;transform:translateY(-50%);right:15px;color:#000;cursor:pointer}.SearchInput__4OFyE input{font-size:1em}.SearchInput__ClearIcon__uzVoc input{padding-right:30px}.SearchInput__SearchIcon__zoDG4 input{padding-left:30px}.SearchAutocomplete__vR9Hk{position:relative}.AutocompleteItem__YIm7R{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:4px 16px;min-height:36px;width:100%;text-align:left;border:none;background-color:transparent;line-height:14px;font-size:12px;font-weight:400;color:var(--platform-text-primary-color);pointer-events:none}.AutocompleteItem--canBeSelected__jxk4z{cursor:pointer;pointer-events:auto}.AutocompleteItem--canBeSelected__jxk4z:hover{background-color:#0000001a}.AutocompleteHighlighter__LAFTV{overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical;word-break:break-all}.AutocompleteHighlighter__match__Wy1o2{font-weight:700}.DropdownList__-fHIk{width:100%;padding-bottom:8px;padding-top:8px;min-height:0;border:1px solid var(--platform-lines)}.AutocompleteItemDescription__4QYN5{font-size:.8em;line-height:1em;font-weight:500;color:var(--platform-text-secondary-color);margin-top:2px}.DropdownList__QTXXX{position:absolute;z-index:1;background-color:var(--platform-background-primary-color);border-radius:8px;box-shadow:0 1px 5px #1018281a;min-width:105px;padding:4px 0;transition:all .2s ease-in-out}.DropdownList--closed__pdL1Z{opacity:0;pointer-events:none;transform:translateY(-10px);visibility:hidden}.DropdownList--open__opzc9{display:flex;flex-direction:column;opacity:1;pointer-events:all;transform:translateY(0)}.DropdownList--left__xSwXR{right:0}.SkeletonListContainer__MKJhE{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch}.Skeleton__Ovpiw{animation:skeleton-pulse__ZqB1e 1s infinite alternate-reverse;background-image:none;background-clip:border-box;border:none;box-shadow:none;-webkit-box-decoration-break:clone;box-decoration-break:clone;color:transparent;outline:none;pointer-events:none;-webkit-user-select:none;user-select:none;cursor:default;display:block}@keyframes skeleton-pulse__ZqB1e{0%{background-color:var(--platform-skeleton-color-1)}to{background-color:var(--platform-skeleton-color-2)}}.tooltip__nUuSh{border-radius:8px;padding:8px 12px;font-size:12px;font-weight:var(--platform-tooltip-font-weight);line-height:18px;color:var(--platform-tooltip-color);background-color:var(--platform-tooltip-background-color);box-shadow:0 4px 10px 0 var(--platform-shadow-color);-webkit-user-select:none;user-select:none;pointer-events:none;animation-duration:.4s;animation-timing-function:cubic-bezier(.16,1,.3,1);will-change:transform,opacity}.tooltip__nUuSh[data-side=right]{animation-name:slideLeftAndFade__DYdE5}.tooltip__nUuSh[data-side=bottom]{animation-name:slideUpAndFade__itahf}.tooltipArrow__W2w-f{fill:var(--platform-tooltip-background-color)}@keyframes slideLeftAndFade__DYdE5{0%{opacity:0;transform:translate(-8px)}to{opacity:1;transform:translate(0)}}@keyframes slideUpAndFade__itahf{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translate(0)}}@keyframes rotate__EqlXe{to{transform:rotate(360deg)}}.spinner__qa7F6{width:80px;height:80px;border:6px solid var(--platform-color-white);border-bottom-color:#ffffff1a;border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotate__EqlXe 2s linear infinite}.spinner-dark__9A9-q{border-color:var(--platform-color-dark);border-bottom-color:#ffffff1a}.spinner-white__gRbtI{border-color:var(--platform-color-white);border-bottom-color:#ffffff1a}.spinner-success__otWGm{border-color:var(--platform-color-success);border-bottom-color:#ffffff1a}.spinner-danger__Bq5DM{border-color:var(--platform-color-danger);border-bottom-color:#ffffff1a}.spinner-warning__U900K{border-color:var(--platform-color-warning);border-bottom-color:#ffffff1a}.switch__0b2av{position:relative;display:inline-flex;align-items:center;width:44px;min-width:44px;height:24px;padding:0;border:none;border-radius:12px;background-color:#ccc;cursor:pointer;transition:background-color .2s ease;outline:none;font-size:0}.switch__0b2av:disabled{opacity:.5}.switch__0b2av:focus-visible{box-shadow:0 0 0 2px var(--platform-color-primary)}.switch__0b2av:hover:not(.disabled__KpauE){background-color:#bbb}.switch__0b2av.checked__2-JV-{background-color:var(--platform-color-primary)}.switch__0b2av.checked__2-JV-:hover:not(.disabled__KpauE){background-color:var(--platform-color-secondary)}.switch__0b2av.disabled__KpauE{opacity:.5;cursor:not-allowed;pointer-events:none}.thumb__fEuKD{position:absolute;top:2px;left:2px;width:20px;height:20px;background-color:#fff;border-radius:50%;transition:transform .2s ease;box-shadow:0 1px 3px #0000001a}.switch__0b2av.checked__2-JV- .thumb__fEuKD{transform:translate(20px)}[data-theme=dark] .switch__0b2av{background-color:#555}[data-theme=dark] .switch__0b2av:hover:not(.disabled__KpauE){background-color:#666}[data-theme=dark] .switch__0b2av.checked__2-JV-{background-color:var(--platform-color-primary)}[data-theme=dark] .switch__0b2av.checked__2-JV-:hover:not(.disabled__KpauE){background-color:var(--platform-color-secondary)}.tabs-list__rc10N{display:flex;position:relative}.tabs-list--horizontal__e1YW4{flex-direction:row;border-bottom:1px solid var(--platform-lines)}.tabs-list--vertical__huK05{flex-direction:column;border-right:none;width:200px}.tabs-trigger__D8R4R{position:relative;background:transparent;border:none;padding:12px 16px;font-size:14px;font-weight:500;color:var(--platform-text-secondary-color);cursor:pointer;transition:all .15s ease-in-out;white-space:nowrap;outline:none}.tabs-trigger__D8R4R:hover:not(.tabs-trigger--disabled__ezDWc){color:var(--platform-text-primary-color)}.tabs-trigger__D8R4R:focus-visible{outline:2px solid var(--platform-color-primary);outline-offset:2px;border-radius:4px}.tabs-trigger--horizontal__4jBFV{border-bottom:2px solid transparent;margin-bottom:-1px}.tabs-trigger--horizontal__4jBFV.tabs-trigger--active__S-Z-S{color:var(--platform-text-primary-color);border-bottom-color:var(--platform-text-primary-color)}.tabs-trigger--vertical__dNVIZ{border-left:none;border-right:3px solid transparent;margin-right:-8px;text-align:left;justify-content:flex-start;display:flex;width:calc(100% + 8px);border-radius:6px 0 0 6px;padding-right:19px}.tabs-trigger--vertical__dNVIZ:hover:not(.tabs-trigger--disabled__ezDWc):not(.tabs-trigger--active__S-Z-S){background-color:#0000000a}.tabs-trigger--vertical__dNVIZ.tabs-trigger--active__S-Z-S{color:var(--platform-text-primary-color);border-right-color:var(--platform-text-primary-color);background-color:var(--platform-background-primary-color);font-weight:600}.tabs-trigger--disabled__ezDWc{color:#9ca3af;cursor:not-allowed}.tabs-content__1d77o{padding:16px 0;outline:none}.tabs-content__1d77o:focus-visible{outline:2px solid var(--platform-color-primary);outline-offset:2px;border-radius:4px}.PasswordInput__GDJDN{position:relative}.PasswordInput__GDJDN input{padding-right:40px;box-sizing:border-box}.PasswordInput__GDJDN .eyeIcon__kDExG{position:absolute;top:50%;right:1em;transform:translateY(-50%)}.PasswordInput__GDJDN .eyeIcon__kDExG:hover{cursor:pointer}.Overlay__M5Z83{background-color:#0e12167f;position:fixed;top:0;right:0;bottom:0;left:0;animation:overlayShow__seU5M .15s cubic-bezier(.16,1,.3,1);z-index:var(--platform-modal-layer)}.Content__wAkP4{display:flex;position:relative;flex-direction:column;justify-content:flex-start;align-items:stretch;font-size:var(--admin-ui-base-font-size);z-index:calc(var(--platform-modal-layer) + 1);background-color:var(--platform-background-primary-color);border-radius:8px;overflow:hidden;box-shadow:#0e121659 0 10px 38px -10px,#0e121633 0 10px 20px -15px;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);animation:contentShow__rxphL .15s cubic-bezier(.16,1,.3,1)}.Content__wAkP4:focus{outline:none}@keyframes overlayShow__seU5M{0%{opacity:0}to{opacity:1}}@keyframes contentShow__rxphL{0%{opacity:0;transform:translate(-50%,-48%) scale(.96)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}.ExampleDialog__llNIZ{max-width:500px}.Header__VHxNf{display:flex;justify-content:space-between;align-items:center;background-color:var(--admin-ui-background-color-light);padding:16px 24px}.Content__I04qM{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;padding:24px;width:90vw;max-height:85vh;max-width:100%;margin-bottom:64px;overflow:auto}.Close__xSN-7{cursor:pointer}.Title__Dznh6{line-height:24px;font-size:20px;font-weight:700;color:var(--admin-ui-primary-text-color)}.Footer__-8gzQ{position:absolute;bottom:0;left:0;right:0;background-color:var(--admin-ui-background-color-light);display:flex;justify-content:flex-end;padding:16px 24px;gap:16px;box-shadow:0 -1px 6px #78787826}.Actions__kKF2Q{display:flex;gap:16px}.pill__vtGwB{border-radius:300px;min-width:4em;text-align:center;padding:3px 12px;font-size:.8em;font-weight:700;border:1px solid}.pill--solid__F-mR4{border-color:var(--pae-shell-color-secondary, #ED8525);background:var(--pae-shell-color-secondary, #ED8525);color:var(--pae-shell-color-white)}.pill--outline__gC-mh{border-color:var(--pae-shell-color-secondary, #ED8525);color:var(--pae-shell-color-secondary, #ED8525);background-color:var(--pae-shell-color-white)}.DialogContent__-WjG9{max-width:450px}.Message__AUgVP{color:var(--platform-text-primary-color);font-size:1.15em}.container__AjtYJ{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;height:100vh}.title__A2vCu{font-size:24px;font-weight:600;line-height:36px;color:var(--text-primary-color);padding-top:24px}.description__bP6Ig{font-size:16px;font-weight:400;line-height:24px;color:var(--text-secondary-color)}a.mailToText__SdlsE{color:var(--pae-shell-color-secondary);font-weight:500}.List__h09XG{display:flex;flex-direction:column;position:relative;overflow-y:auto}.Item__YMy2i{display:flex;flex-direction:column;padding:12px 16px;cursor:pointer;color:var(--admin-ui-primary-text-color)}.List--primary__J2pbx{gap:16px}.List--primary__J2pbx .Item__YMy2i{border:1px solid var(--admin-ui-border-color);border-radius:8px}.List--secondary__gi1ao .Item__YMy2i{border-top:1px solid var(--admin-ui-border-color);border-bottom:1px solid transparent}.List--secondary__gi1ao .Item--selected__yRWow{background:#a0a0a01a;border-top:1px solid var(--admin-ui-primary-color);border-bottom:1px solid var(--admin-ui-primary-color)}.List__h09XG .Title__RJmEW{display:flex;align-items:center;gap:8px;padding-right:16px;font-size:1em;line-height:1.15em;color:var(--admin-ui-primary-text-color);margin-bottom:4px}.List__h09XG .Description__DGyX2{font-size:.8em;line-height:1em;font-weight:500;color:var(--admin-ui-secondary-text-color)}.List__h09XG .Actions__UHP5l{position:absolute;right:16px}.List__h09XG .Action__q-R1I{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;padding:8px 16px;gap:12px;width:100%}.List__h09XG .Action__q-R1I:hover{background:var(--admin-ui-background-color-light)}.List__h09XG .Item--disabled__Ke1u-{background:var(--admin-ui-background-color-light);cursor:not-allowed;opacity:.5}.List--small__ijoSR .Item__YMy2i{padding:8px 12px;height:auto;font-size:1em}.List--medium__E1FEY .Item__YMy2i{padding:12px 16px;height:auto;font-size:1.1em}.List--large__T8tfz .Item__YMy2i{padding:16px 24px;height:auto;font-size:1.25em}.List__h09XG .Icon__dFr-L{display:flex;align-items:center;justify-content:center;width:1.4em;height:1.4em}.Navigation__uylxk{margin:0 auto;display:flex;justify-content:flex-end;width:100%;color:var(--platform-text-primary-color)}.PaginationContent__UpLw0{display:flex;align-items:center;gap:4px}.PaginationEllipsis__perWk{display:flex;width:2.5em;height:2.5em;justify-content:center;align-items:center}.PaginationEllipsis__perWk svg{width:1em;height:1em}.PaginationLink__GVUZj{display:inline-flex;align-items:center;justify-content:center;gap:.6em;padding:.5em;min-width:32px;border-radius:4px;font-size:1em;font-weight:500;border:1px solid transparent;cursor:pointer}.PaginationLink__GVUZj:focus{outline:none}.PaginationLink__GVUZj:hover{background-color:var(--platform-background-secondary-color)}.PaginationLink__GVUZj.Active__u1Ahy{border-color:var(--platform-lines)}.PaginationLink__GVUZj.Disabled__8WM0y{opacity:.8;pointer-events:none;cursor:default}.PaginationLink__GVUZj svg{width:1em;height:1em}.Prev__wp4hc{padding-right:12px}.Next__eVyL5{padding-left:12px}.TableContainer__osh6Z{border:1px solid var(--platform-lines);border-radius:1em;overflow:hidden}.TableHeader__sYa-8{padding:.6em .8em;font-size:1.4em;font-weight:600;width:100%;border-bottom:1px solid var(--platform-lines);color:var(--platform-text-primary-color)}.Table__2cIs3{border-collapse:collapse;width:100%}.Table__2cIs3 td,.Table__2cIs3 th{border-bottom:1px solid var(--platform-lines);padding:1em;font-weight:400;font-size:var(--platform-text-base-font-size);color:var(--platform-text-secondary-color)}.Table__2cIs3 td{color:var(--platform-text-primary-color)}.Table__2cIs3 tr:last-child td{border-bottom:none}.Table__2cIs3 thead th{font-weight:500;background-color:var(--platform-background-secondary-color)}.Table__2cIs3 tr{transition:background-color .2s ease-in-out;background-color:var(--platform-background-primary-color)}.Table__2cIs3 tr.selectable__WsGg1:hover{cursor:pointer;background-color:var(--platform-background-secondary-color)}.Table__2cIs3 .Cell__ZEv-K{display:flex;align-items:center;gap:4px;justify-content:flex-start}.Table__2cIs3 .Right__YoM1V{justify-content:flex-end}.Table__2cIs3 .Center__CF3tr{justify-content:center}.Table__2cIs3 .Sortable__JIV1V{cursor:pointer}.Table__2cIs3 .SortIcon__f0bBy{opacity:0;visibility:hidden;transition:opacity .2s ease-in-out,transform .2s ease-in-out}.Table__2cIs3 .SortIcon__f0bBy.Active__rJjxB{opacity:1;visibility:visible}.Table__2cIs3 .SortIcon__f0bBy.Rotate__7cwTK{transform:rotate(-180deg)}.Table__2cIs3 .Cell__ZEv-K:hover .SortIcon__f0bBy{opacity:1;visibility:visible}.Pagination__sbqMP{display:flex;justify-content:flex-end;margin-top:1em!important}.PointerNone__kQdQS{pointer-events:none}.EmptyStateContainer__Q9FEb{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1em;padding:2em 0}.EmptyStateContainer__Q9FEb .Message__IHK6M{font-size:1.15em;color:var(--platform-text-secondary-color)}.EmptyStateContainer__Q9FEb svg{color:var(--platform-text-secondary-color)}.alert__LblpE{position:relative;width:100%;border-radius:.8em;border:1px solid var(--platform-lines);padding:1em 1.2em;font-size:1em;display:grid;grid-template-columns:0 1fr;gap:.5em}.alert__LblpE:has(>svg){grid-template-columns:16px 1fr;gap:12px}.alert__LblpE>svg{margin-top:2px;width:16px;height:16px;color:inherit}.default__mgO6A{background-color:var(--platform-background-primary-color, #fff);color:var(--platform-text-primary-color, #111)}.destructive__bLNSM{background-color:var(--platform-background-primary-color, #fff);color:var(--platform-color-danger, #dc2626);border-color:var(--platform-color-danger, #dc2626)}.destructive__bLNSM>svg{color:inherit}.destructive__bLNSM [data-slot=alert-description]{color:var(--platform-color-danger, #dc2626)}.alertTitle__gblKf{grid-column-start:2;min-height:1em;font-weight:500;line-clamp:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.alertDescription__BuVHV{grid-column-start:2;display:grid;justify-items:start;gap:4px;font-size:1em;color:var(--platform-text-secondary-color)}.alertDescription__BuVHV p{line-height:1.5}
2
- `,document.head.appendChild(J),E({logout:Au,useDynamicFonts:ps,useFeatureFlag:zl,useFeatureFlags:$g,useVariant:Mg});const cv=E("PlatformEvents",{auth:{SESSION_EXPIRED:"platform:auth:session-expired"},apps:{APP_CLICKED:"platform:apps:app-clicked"},shell:{NAVBAR_STATE_CHANGED:"platform:shell:navbar-state-changed",MENU_STATE_CHANGED:"platform:shell:menu-state-changed"}}),Pn="__PAE_GLOBAL_STATE__",Zi="__PAE_REACTIVE_GLOBAL_STATE__",Xi="__PAE_EXTENSIONS_POINTS_REGISTRY__",lo="__PAE_CUSTOMIZATIONS_LOADING_STATE_KEY__",hu="/auth/logout",pu=(e,t)=>{const[n,r]=L(t);return Q(()=>{const o=e.subscribe(i=>{r(i)});return()=>{o.unsubscribe()}},[r]),n},mu=(e,t,n)=>n.map((r,o)=>o===e?t(r):r),gu=(e,t,n)=>mu(n.findIndex(e),t,n),uo=(e,t)=>typeof e=="function"?e(t):e,Ji=(e,t)=>{const n=pu(e,t),r=te(o=>{e.next(uo(o,n))},[n]);return[n,r]},fo=E("usePAEState",()=>Ji(window[Zi],window[Pn])),Rn=E("useCatalog",()=>fo()[0].catalog),lv=E("useMutableCatalog",()=>{const e=Rn(),t=te(r=>{window[Zi].next({...window[Pn],catalog:uo(r,e)})},[e]),n=te((r,o)=>{t(i=>gu(s=>s.name===r,s=>{var a;return{...s,ui:{...s.ui,customProps:uo(o,((a=s.ui)==null?void 0:a.customProps)??{})}}},i))},[t]);return[e,t,n]}),vu=E("useLocation",()=>{const[e,t]=L(document.location.pathname);return Q(()=>{const n=()=>{t(window.location.pathname)};return window.addEventListener("popstate",n),()=>{window.removeEventListener("popstate",n)}},[t]),e});var yu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var es={exports:{}},On={},ts;function wu(){if(ts)return On;ts=1;/**
1
+ var au=S=>{throw TypeError(S)};var $i=(S,ue,L)=>ue.has(S)||au("Cannot "+L);var b=(S,ue,L)=>($i(S,ue,"read from private field"),L?L.call(S):ue.get(S)),D=(S,ue,L)=>ue.has(S)?au("Cannot add the same private member more than once"):ue instanceof WeakSet?ue.add(S):ue.set(S,L),O=(S,ue,L,Q)=>($i(S,ue,"write to private field"),Q?Q.call(S,L):ue.set(S,L),L),F=(S,ue,L)=>($i(S,ue,"access private method"),L);var ro=(S,ue,L,Q)=>({set _(ee){O(S,ue,ee,L)},get _(){return b(S,ue,Q)}});System.register("@bluealba/pae-ui-react-core",["react","single-spa","react-dom"],function(S,ue){"use strict";var L,Q,ee,qn,Qn,Qt,$e,g,z,Gi,io,qi,so,Qi,Yn,ao,Yi;return{setters:[te=>{L=te.useState,Q=te.useEffect,ee=te.useCallback,qn=te.default,Qn=te.createContext,Qt=te.useContext,$e=te.useMemo,g=te,z=te.forwardRef,Gi=te.Children,io=te.isValidElement,qi=te.useLayoutEffect,so=te.useRef},te=>{Qi=te.navigateToUrl,Yn=te.default},te=>{ao=te,Yi=te.default}],execute:function(){var Lt,pt,ln,Fl,un,mt,dn,Bl,It,Ul,fn,hn,Ae,Nt,de,Bn,$t,Ie,ot,zl,We,Hl,Ve,pe,Mt,Ge,Et,Wl,et,Ne,Un,Vl,ne,gt,vt,pn,mn,yt,gn,vn,Gl,we,H,zn,me,Ft,yn,bt,wt,Hn,bn,wn,Bt,Ut,_t,_n,G,Gn,Mi,Fi,Bi,Ui,zi,Hi,Wi,cu,ql,xt,Ct,_e,tt,nt,oo,Vi,Ql;var te=document.createElement("style");te.textContent=`:root{--platform-label-color: var(--platform-text-secondary-color);--platform-input-border-color: var(--platform-lines);--platform-input-background-color: var(--platform-background-secondary-color);--platform-input-color: var(--platform-text-primary-color);--platform-input-focus-border-color: var(--platform-color-primary);--platform-button-base-padding: 4px 16px;--platform-button-base-border-radius: 6px;--platform-button-base-box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);--platform-button-base-font-size: 1em;--platform-button-base-line-height: 16px;--platform-button-base-height: calc(2 * var(--platform-button-base-font-size));--platform-button-contained-primary-background-color: var(--platform-color-primary);--platform-button-contained-primary-color: #ffffff;--platform-button-outlined-primary-color: var(--platform-color-primary);--platform-button-text-primary-color: var(--platform-text-primary-color);--platform-button-contained-danger-background-color: var(--platform-color-danger);--platform-button-contained-danger-color: #ffffff;--platform-button-outlined-danger-color: var(--platform-color-danger);--platform-button-text-danger-color: var(--platform-color-danger)}@keyframes spinner-rotation__wUmPV{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.spinner__fakUN{position:relative;display:flex;transition:.3s;width:var(--icon-size);height:var(--icon-size)}.spinner__fakUN:before{content:"";position:absolute;top:50%;left:50%;width:var(--icon-size);height:var(--icon-size);margin-top:calc(var(--icon-size) / -2);margin-left:calc(var(--icon-size) / -2);border:2px solid transparent;box-sizing:border-box;border-radius:50%;animation:spinner-rotation__wUmPV .6s linear infinite;display:block}.button__8FA9H{all:unset;padding:var(--platform-button-base-padding);border-radius:var(--platform-button-base-border-radius);box-shadow:var(--platform-button-base-box-shadow);font-size:var(--platform-button-base-font-size);line-height:var(--platform-button-base-line-height);height:var(--platform-button-base-height);font-weight:600;outline:none;border:none;cursor:pointer;transition:width .2s ease-in;display:flex;align-items:center;gap:8px;--icon-size: 12px}.button__8FA9H:disabled{cursor:not-allowed;opacity:.5}.button--contained-primary__stkTx{background-color:var(--platform-button-contained-primary-background-color);color:var(--platform-button-contained-primary-color)}.button--contained-primary__stkTx .spinner__fakUN:before{border-top-color:var(--platform-button-contained-primary-color);border-right-color:var(--platform-button-contained-primary-color)}.button--outlined-primary__KZ1ww{background-color:transparent;color:var(--platform-button-outlined-primary-color);border:1px solid var(--platform-button-outlined-primary-color);height:calc(var(--platform-button-base-height) - 2px)}.button--outlined-primary__KZ1ww .spinner__fakUN:before{border-top-color:var(--platform-button-outlined-primary-color);border-right-color:var(--platform-button-outlined-primary-color)}.button--text-primary__GLTfm{background-color:transparent;color:var(--platform-button-text-primary-color);box-shadow:none}.button--text-primary__GLTfm .spinner__fakUN:before{border-top-color:var(--platform-button-text-primary-color);border-right-color:var(--platform-button-text-primary-color)}.button--contained-danger__L9ehT{background-color:var(--platform-button-contained-danger-background-color);color:var(--platform-button-contained-danger-color)}.button--contained-danger__L9ehT .spinner__fakUN:before{border-top-color:var(--platform-button-contained-danger-color);border-right-color:var(--platform-button-contained-danger-color)}.button--outlined-danger__eoYLd{background-color:transparent;color:var(--platform-button-outlined-danger-color);border:1px solid var(--platform-button-outlined-danger-color);height:calc(var(--platform-button-base-height) - 2px)}.button--outlined-danger__eoYLd .spinner__fakUN:before{border-top-color:var(--platform-button-outlined-danger-color);border-right-color:var(--platform-button-outlined-danger-color)}.button--text-danger__Sw-ha{background-color:transparent;color:var(--platform-button-text-danger-color);box-shadow:none}.button--text-danger__Sw-ha .spinner__fakUN:before{border-top-color:var(--platform-button-text-danger-color);border-right-color:var(--platform-button-text-danger-color)}.icon__--umH{width:var(--icon-size);height:var(--icon-size)}.Badges__5jpum{display:flex;gap:10px;margin-top:8px}.Badge__95MWM{display:flex;flex-direction:row;justify-content:center;align-items:center;text-align:center;color:var(--admin-ui-badge-color);padding:var(--admin-ui-badge-padding);background:var(--admin-ui-badge-background-color);border-radius:var(--admin-ui-badge-border-radius)}.Badge--primary__Rx-bS{--admin-ui-badge-background-color: var(--admin-ui-primary-color);--admin-ui-badge-color: #ffffff}.Badge--secondary__d92bT{--admin-ui-badge-background-color: var(--admin-ui-background-color-light);--admin-ui-badge-color: var(--admin-ui-secondary-text-color)}.Badge--success__Kdo98{--admin-ui-badge-background-color: var(--admin-ui-success-color-light);--admin-ui-badge-color: var(--admin-ui-success-color)}.Badge--warning__bf-Nn{--admin-ui-badge-background-color: var(--admin-ui-warning-color-light);--admin-ui-badge-color: var(--admin-ui-warning-color)}.Badge--danger__HTj39{--admin-ui-badge-background-color: var(--admin-ui-danger-color-light);--admin-ui-badge-color: var(--admin-ui-danger-color)}.Badge--small__y93Pj{font-size:var(--admin-ui-badge-font-size);line-height:var(--admin-ui-badge-line-height)}.Badge--regular__aT5AL{font-size:calc(1.25 * var(--admin-ui-badge-font-size));line-height:calc(1.25 * var(--admin-ui-badge-line-height))}.Badge--large__wORCH{font-size:calc(1.5 * var(--admin-ui-badge-font-size));line-height:calc(1.5 * var(--admin-ui-badge-line-height))}.CopyToClipboardButton__2Nd2m:hover{cursor:pointer}.FieldGroup__Q2JCV{margin-bottom:1em}.FieldGroup--horizontal__kpfL1{display:grid;grid-template-columns:max-content 1fr;grid-gap:1em;align-items:center;height:100%}.FieldGroup--vertical__FLo-Q{display:grid;grid-template-columns:1fr;grid-gap:4px}.Input__uS0sb{width:100%;padding:10px;border:1px solid var(--platform-input-border-color);background-color:var(--platform-input-background-color);color:var(--platform-input-color);border-radius:8px;font-size:1em}.Input__uS0sb:focus{outline:1px solid var(--platform-input-focus-border-color)}.Input__uS0sb.Error__-DQpw{border-color:var(--platform-color-danger)}.Error__N4OP5{width:100%;min-height:15px;color:var(--platform-color-danger);font-size:1em}.Label__VYUvW{font-size:1em;font-weight:400;color:var(--platform-label-color)}.Label__VYUvW.Error__Eu6DI{color:var(--platform-color-danger)}.Select__giqpe{width:100%;position:relative}.Select__giqpe select{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;color:var(--platform-input-color);font-size:14px;background-color:var(--platform-input-background-color);border:1px solid var(--platform-input-border-color);border-radius:8px;cursor:pointer;padding:10px}.Select__giqpe select:focus{outline:1px solid var(--platform-input-focus-border-color)}.Chevron__YvhBd{position:absolute;right:1em;top:50%;transform:translateY(-50%);pointer-events:none}.TextArea__pa-A0{width:100%;height:100%;background-clip:padding-box;padding:10px;border:1px solid var(--platform-input-border-color);background-color:var(--platform-input-background-color);color:var(--platform-input-color);border-radius:8px;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}.TextArea__pa-A0:focus{outline:1px solid var(--platform-input-focus-border-color)}.SearchInput__4OFyE{position:relative}.SearchInput__4OFyE .SearchIcon__YgnQy{position:absolute;top:50%;transform:translateY(-50%);left:10px;color:#000}.SearchInput__4OFyE .ClearIcon__ukRVr{position:absolute;top:50%;transform:translateY(-50%);right:15px;color:#000;cursor:pointer}.SearchInput__4OFyE input{font-size:1em}.SearchInput__ClearIcon__uzVoc input{padding-right:30px}.SearchInput__SearchIcon__zoDG4 input{padding-left:30px}.SearchAutocomplete__vR9Hk{position:relative}.AutocompleteItem__YIm7R{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:4px 16px;min-height:36px;width:100%;text-align:left;border:none;background-color:transparent;line-height:14px;font-size:12px;font-weight:400;color:var(--platform-text-primary-color);pointer-events:none}.AutocompleteItem--canBeSelected__jxk4z{cursor:pointer;pointer-events:auto}.AutocompleteItem--canBeSelected__jxk4z:hover{background-color:#0000001a}.AutocompleteHighlighter__LAFTV{overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical;word-break:break-all}.AutocompleteHighlighter__match__Wy1o2{font-weight:700}.DropdownList__-fHIk{width:100%;padding-bottom:8px;padding-top:8px;min-height:0;border:1px solid var(--platform-lines)}.AutocompleteItemDescription__4QYN5{font-size:.8em;line-height:1em;font-weight:500;color:var(--platform-text-secondary-color);margin-top:2px}.DropdownList__QTXXX{position:absolute;z-index:1;background-color:var(--platform-background-primary-color);border-radius:8px;box-shadow:0 1px 5px #1018281a;min-width:105px;padding:4px 0;transition:all .2s ease-in-out}.DropdownList--closed__pdL1Z{opacity:0;pointer-events:none;transform:translateY(-10px);visibility:hidden}.DropdownList--open__opzc9{display:flex;flex-direction:column;opacity:1;pointer-events:all;transform:translateY(0)}.DropdownList--left__xSwXR{right:0}.SkeletonListContainer__MKJhE{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch}.Skeleton__Ovpiw{animation:skeleton-pulse__ZqB1e 1s infinite alternate-reverse;background-image:none;background-clip:border-box;border:none;box-shadow:none;-webkit-box-decoration-break:clone;box-decoration-break:clone;color:transparent;outline:none;pointer-events:none;-webkit-user-select:none;user-select:none;cursor:default;display:block}@keyframes skeleton-pulse__ZqB1e{0%{background-color:var(--platform-skeleton-color-1)}to{background-color:var(--platform-skeleton-color-2)}}.tooltip__nUuSh{border-radius:8px;padding:8px 12px;font-size:12px;font-weight:var(--platform-tooltip-font-weight);line-height:18px;color:var(--platform-tooltip-color);background-color:var(--platform-tooltip-background-color);box-shadow:0 4px 10px 0 var(--platform-shadow-color);-webkit-user-select:none;user-select:none;pointer-events:none;animation-duration:.4s;animation-timing-function:cubic-bezier(.16,1,.3,1);will-change:transform,opacity}.tooltip__nUuSh[data-side=right]{animation-name:slideLeftAndFade__DYdE5}.tooltip__nUuSh[data-side=bottom]{animation-name:slideUpAndFade__itahf}.tooltipArrow__W2w-f{fill:var(--platform-tooltip-background-color)}@keyframes slideLeftAndFade__DYdE5{0%{opacity:0;transform:translate(-8px)}to{opacity:1;transform:translate(0)}}@keyframes slideUpAndFade__itahf{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translate(0)}}@keyframes rotate__EqlXe{to{transform:rotate(360deg)}}.spinner__qa7F6{width:80px;height:80px;border:6px solid var(--platform-color-white);border-bottom-color:#ffffff1a;border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotate__EqlXe 2s linear infinite}.spinner-dark__9A9-q{border-color:var(--platform-color-dark);border-bottom-color:#ffffff1a}.spinner-white__gRbtI{border-color:var(--platform-color-white);border-bottom-color:#ffffff1a}.spinner-success__otWGm{border-color:var(--platform-color-success);border-bottom-color:#ffffff1a}.spinner-danger__Bq5DM{border-color:var(--platform-color-danger);border-bottom-color:#ffffff1a}.spinner-warning__U900K{border-color:var(--platform-color-warning);border-bottom-color:#ffffff1a}.switch__0b2av{position:relative;display:inline-flex;align-items:center;width:44px;min-width:44px;height:24px;padding:0;border:none;border-radius:12px;background-color:#ccc;cursor:pointer;transition:background-color .2s ease;outline:none;font-size:0}.switch__0b2av:disabled{opacity:.5}.switch__0b2av:focus-visible{box-shadow:0 0 0 2px var(--platform-color-primary)}.switch__0b2av:hover:not(.disabled__KpauE){background-color:#bbb}.switch__0b2av.checked__2-JV-{background-color:var(--platform-color-primary)}.switch__0b2av.checked__2-JV-:hover:not(.disabled__KpauE){background-color:var(--platform-color-secondary)}.switch__0b2av.disabled__KpauE{opacity:.5;cursor:not-allowed;pointer-events:none}.thumb__fEuKD{position:absolute;top:2px;left:2px;width:20px;height:20px;background-color:#fff;border-radius:50%;transition:transform .2s ease;box-shadow:0 1px 3px #0000001a}.switch__0b2av.checked__2-JV- .thumb__fEuKD{transform:translate(20px)}[data-theme=dark] .switch__0b2av{background-color:#555}[data-theme=dark] .switch__0b2av:hover:not(.disabled__KpauE){background-color:#666}[data-theme=dark] .switch__0b2av.checked__2-JV-{background-color:var(--platform-color-primary)}[data-theme=dark] .switch__0b2av.checked__2-JV-:hover:not(.disabled__KpauE){background-color:var(--platform-color-secondary)}.tabs-list__rc10N{display:flex;position:relative}.tabs-list--horizontal__e1YW4{flex-direction:row;border-bottom:1px solid var(--platform-lines)}.tabs-list--vertical__huK05{flex-direction:column;border-right:none;width:200px}.tabs-trigger__D8R4R{position:relative;background:transparent;border:none;padding:12px 16px;font-size:14px;font-weight:500;color:var(--platform-text-secondary-color);cursor:pointer;transition:all .15s ease-in-out;white-space:nowrap;outline:none}.tabs-trigger__D8R4R:hover:not(.tabs-trigger--disabled__ezDWc){color:var(--platform-text-primary-color)}.tabs-trigger__D8R4R:focus-visible{outline:2px solid var(--platform-color-primary);outline-offset:2px;border-radius:4px}.tabs-trigger--horizontal__4jBFV{border-bottom:2px solid transparent;margin-bottom:-1px}.tabs-trigger--horizontal__4jBFV.tabs-trigger--active__S-Z-S{color:var(--platform-text-primary-color);border-bottom-color:var(--platform-text-primary-color)}.tabs-trigger--vertical__dNVIZ{border-left:none;border-right:3px solid transparent;margin-right:-8px;text-align:left;justify-content:flex-start;display:flex;width:calc(100% + 8px);border-radius:6px 0 0 6px;padding-right:19px}.tabs-trigger--vertical__dNVIZ:hover:not(.tabs-trigger--disabled__ezDWc):not(.tabs-trigger--active__S-Z-S){background-color:#0000000a}.tabs-trigger--vertical__dNVIZ.tabs-trigger--active__S-Z-S{color:var(--platform-text-primary-color);border-right-color:var(--platform-text-primary-color);background-color:var(--platform-background-primary-color);font-weight:600}.tabs-trigger--disabled__ezDWc{color:#9ca3af;cursor:not-allowed}.tabs-content__1d77o{padding:16px 0;outline:none}.tabs-content__1d77o:focus-visible{outline:2px solid var(--platform-color-primary);outline-offset:2px;border-radius:4px}.PasswordInput__GDJDN{position:relative}.PasswordInput__GDJDN input{padding-right:40px;box-sizing:border-box}.PasswordInput__GDJDN .eyeIcon__kDExG{position:absolute;top:50%;right:1em;transform:translateY(-50%)}.PasswordInput__GDJDN .eyeIcon__kDExG:hover{cursor:pointer}.Overlay__M5Z83{background-color:#0e12167f;position:fixed;top:0;right:0;bottom:0;left:0;animation:overlayShow__seU5M .15s cubic-bezier(.16,1,.3,1);z-index:var(--platform-modal-layer)}.Content__wAkP4{display:flex;position:relative;flex-direction:column;justify-content:flex-start;align-items:stretch;font-size:var(--admin-ui-base-font-size);z-index:calc(var(--platform-modal-layer) + 1);background-color:var(--platform-background-primary-color);border-radius:8px;overflow:hidden;box-shadow:#0e121659 0 10px 38px -10px,#0e121633 0 10px 20px -15px;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);animation:contentShow__rxphL .15s cubic-bezier(.16,1,.3,1)}.Content__wAkP4:focus{outline:none}@keyframes overlayShow__seU5M{0%{opacity:0}to{opacity:1}}@keyframes contentShow__rxphL{0%{opacity:0;transform:translate(-50%,-48%) scale(.96)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}.ExampleDialog__llNIZ{max-width:500px}.Header__VHxNf{display:flex;justify-content:space-between;align-items:center;background-color:var(--admin-ui-background-color-light);padding:16px 24px}.Content__I04qM{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;padding:24px;width:90vw;max-height:85vh;max-width:100%;margin-bottom:64px;overflow:auto}.Close__xSN-7{cursor:pointer}.Title__Dznh6{line-height:24px;font-size:20px;font-weight:700;color:var(--admin-ui-primary-text-color)}.Footer__-8gzQ{position:absolute;bottom:0;left:0;right:0;background-color:var(--admin-ui-background-color-light);display:flex;justify-content:flex-end;padding:16px 24px;gap:16px;box-shadow:0 -1px 6px #78787826}.Actions__kKF2Q{display:flex;gap:16px}.pill__vtGwB{border-radius:300px;min-width:4em;text-align:center;padding:3px 12px;font-size:.8em;font-weight:700;border:1px solid}.pill--solid__F-mR4{border-color:var(--pae-shell-color-secondary, #ED8525);background:var(--pae-shell-color-secondary, #ED8525);color:var(--pae-shell-color-white)}.pill--outline__gC-mh{border-color:var(--pae-shell-color-secondary, #ED8525);color:var(--pae-shell-color-secondary, #ED8525);background-color:var(--pae-shell-color-white)}.DialogContent__-WjG9{max-width:450px}.Message__AUgVP{color:var(--platform-text-primary-color);font-size:1.15em}.container__AjtYJ{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;height:100vh}.title__A2vCu{font-size:24px;font-weight:600;line-height:36px;color:var(--text-primary-color);padding-top:24px}.description__bP6Ig{font-size:16px;font-weight:400;line-height:24px;color:var(--text-secondary-color)}a.mailToText__SdlsE{color:var(--pae-shell-color-secondary);font-weight:500}.List__h09XG{display:flex;flex-direction:column;position:relative;overflow-y:auto}.Item__YMy2i{display:flex;flex-direction:column;padding:12px 16px;cursor:pointer;color:var(--admin-ui-primary-text-color)}.List--primary__J2pbx{gap:16px}.List--primary__J2pbx .Item__YMy2i{border:1px solid var(--admin-ui-border-color);border-radius:8px}.List--secondary__gi1ao .Item__YMy2i{border-top:1px solid var(--admin-ui-border-color);border-bottom:1px solid transparent}.List--secondary__gi1ao .Item--selected__yRWow{background:#a0a0a01a;border-top:1px solid var(--admin-ui-primary-color);border-bottom:1px solid var(--admin-ui-primary-color)}.List__h09XG .Title__RJmEW{display:flex;align-items:center;gap:8px;padding-right:16px;font-size:1em;line-height:1.15em;color:var(--admin-ui-primary-text-color);margin-bottom:4px}.List__h09XG .Description__DGyX2{font-size:.8em;line-height:1em;font-weight:500;color:var(--admin-ui-secondary-text-color)}.List__h09XG .Actions__UHP5l{position:absolute;right:16px}.List__h09XG .Action__q-R1I{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;padding:8px 16px;gap:12px;width:100%}.List__h09XG .Action__q-R1I:hover{background:var(--admin-ui-background-color-light)}.List__h09XG .Item--disabled__Ke1u-{background:var(--admin-ui-background-color-light);cursor:not-allowed;opacity:.5}.List--small__ijoSR .Item__YMy2i{padding:8px 12px;height:auto;font-size:1em}.List--medium__E1FEY .Item__YMy2i{padding:12px 16px;height:auto;font-size:1.1em}.List--large__T8tfz .Item__YMy2i{padding:16px 24px;height:auto;font-size:1.25em}.List__h09XG .Icon__dFr-L{display:flex;align-items:center;justify-content:center;width:1.4em;height:1.4em}.Navigation__uylxk{margin:0 auto;display:flex;justify-content:flex-end;width:100%;color:var(--platform-text-primary-color)}.PaginationContent__UpLw0{display:flex;align-items:center;gap:4px}.PaginationEllipsis__perWk{display:flex;width:2.5em;height:2.5em;justify-content:center;align-items:center}.PaginationEllipsis__perWk svg{width:1em;height:1em}.PaginationLink__GVUZj{display:inline-flex;align-items:center;justify-content:center;gap:.6em;padding:.5em;min-width:32px;border-radius:4px;font-size:1em;font-weight:500;border:1px solid transparent;cursor:pointer}.PaginationLink__GVUZj:focus{outline:none}.PaginationLink__GVUZj:hover{background-color:var(--platform-background-secondary-color)}.PaginationLink__GVUZj.Active__u1Ahy{border-color:var(--platform-lines)}.PaginationLink__GVUZj.Disabled__8WM0y{opacity:.8;pointer-events:none;cursor:default}.PaginationLink__GVUZj svg{width:1em;height:1em}.Prev__wp4hc{padding-right:12px}.Next__eVyL5{padding-left:12px}.TableContainer__osh6Z{border:1px solid var(--platform-lines);border-radius:1em;overflow:hidden}.TableHeader__sYa-8{padding:.6em .8em;font-size:1.4em;font-weight:600;width:100%;border-bottom:1px solid var(--platform-lines);color:var(--platform-text-primary-color)}.Table__2cIs3{border-collapse:collapse;width:100%}.Table__2cIs3 td,.Table__2cIs3 th{border-bottom:1px solid var(--platform-lines);padding:1em;font-weight:400;font-size:var(--platform-text-base-font-size);color:var(--platform-text-secondary-color)}.Table__2cIs3 td{color:var(--platform-text-primary-color)}.Table__2cIs3 tr:last-child td{border-bottom:none}.Table__2cIs3 thead th{font-weight:500;background-color:var(--platform-background-secondary-color)}.Table__2cIs3 tr{transition:background-color .2s ease-in-out;background-color:var(--platform-background-primary-color)}.Table__2cIs3 tr.selectable__WsGg1:hover{cursor:pointer;background-color:var(--platform-background-secondary-color)}.Table__2cIs3 .Cell__ZEv-K{display:flex;align-items:center;gap:4px;justify-content:flex-start}.Table__2cIs3 .Right__YoM1V{justify-content:flex-end}.Table__2cIs3 .Center__CF3tr{justify-content:center}.Table__2cIs3 .Sortable__JIV1V{cursor:pointer}.Table__2cIs3 .SortIcon__f0bBy{opacity:0;visibility:hidden;transition:opacity .2s ease-in-out,transform .2s ease-in-out}.Table__2cIs3 .SortIcon__f0bBy.Active__rJjxB{opacity:1;visibility:visible}.Table__2cIs3 .SortIcon__f0bBy.Rotate__7cwTK{transform:rotate(-180deg)}.Table__2cIs3 .Cell__ZEv-K:hover .SortIcon__f0bBy{opacity:1;visibility:visible}.Pagination__sbqMP{display:flex;justify-content:flex-end;margin-top:1em!important}.PointerNone__kQdQS{pointer-events:none}.EmptyStateContainer__Q9FEb{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1em;padding:2em 0}.EmptyStateContainer__Q9FEb .Message__IHK6M{font-size:1.15em;color:var(--platform-text-secondary-color)}.EmptyStateContainer__Q9FEb svg{color:var(--platform-text-secondary-color)}.alert__LblpE{position:relative;width:100%;border-radius:.8em;border:1px solid var(--platform-lines);padding:1em 1.2em;font-size:1em;display:grid;grid-template-columns:0 1fr;gap:.5em}.alert__LblpE:has(>svg){grid-template-columns:16px 1fr;gap:12px}.alert__LblpE>svg{margin-top:2px;width:16px;height:16px;color:inherit}.default__mgO6A{background-color:var(--platform-background-primary-color, #fff);color:var(--platform-text-primary-color, #111)}.destructive__bLNSM{background-color:var(--platform-background-primary-color, #fff);color:var(--platform-color-danger, #dc2626);border-color:var(--platform-color-danger, #dc2626)}.destructive__bLNSM>svg{color:inherit}.destructive__bLNSM [data-slot=alert-description]{color:var(--platform-color-danger, #dc2626)}.alertTitle__gblKf{grid-column-start:2;min-height:1em;font-weight:500;line-clamp:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.alertDescription__BuVHV{grid-column-start:2;display:grid;justify-items:start;gap:4px;font-size:1em;color:var(--platform-text-secondary-color)}.alertDescription__BuVHV p{line-height:1.5}
2
+ `,document.head.appendChild(te),S({logout:Cu,useDynamicFonts:us,useFeatureFlag:Ml,useFeatureFlags:Sg,useVariant:Tg});const Kg=S("PlatformEvents",{auth:{SESSION_EXPIRED:"platform:auth:session-expired"},apps:{APP_CLICKED:"platform:apps:app-clicked"},shell:{NAVBAR_STATE_CHANGED:"platform:shell:navbar-state-changed",MENU_STATE_CHANGED:"platform:shell:menu-state-changed"}}),An="__PAE_GLOBAL_STATE__",Ki="__PAE_REACTIVE_GLOBAL_STATE__",Zi="__PAE_EXTENSIONS_POINTS_REGISTRY__",co="__PAE_CUSTOMIZATIONS_LOADING_STATE_KEY__",lu="/auth/logout",uu=(e,t)=>{const[n,r]=L(t);return Q(()=>{const o=e.subscribe(i=>{r(i)});return()=>{o.unsubscribe()}},[r]),n},du=(e,t,n)=>n.map((r,o)=>o===e?t(r):r),fu=(e,t,n)=>du(n.findIndex(e),t,n),lo=(e,t)=>typeof e=="function"?e(t):e,Xi=(e,t)=>{const n=uu(e,t),r=ee(o=>{e.next(lo(o,n))},[n]);return[n,r]},uo=S("usePAEState",()=>Xi(window[Ki],window[An])),Kn=S("useCatalog",()=>uo()[0].catalog),Zg=S("useMutableCatalog",()=>{const e=Kn(),t=ee(r=>{window[Ki].next({...window[An],catalog:lo(r,e)})},[e]),n=ee((r,o)=>{t(i=>fu(s=>s.name===r,s=>{var a;return{...s,ui:{...s.ui,customProps:lo(o,((a=s.ui)==null?void 0:a.customProps)??{})}}},i))},[t]);return[e,t,n]}),hu=S("useLocation",()=>{const[e,t]=L(document.location.pathname);return Q(()=>{const n=()=>{t(window.location.pathname)};return window.addEventListener("popstate",n),()=>{window.removeEventListener("popstate",n)}},[t]),e});var pu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ji={exports:{}},Pn={},es;function gu(){if(es)return Pn;es=1;/**
3
3
  * @license React
4
4
  * react-jsx-runtime.development.js
5
5
  *
@@ -7,55 +7,30 @@ var du=E=>{throw TypeError(E)};var Mi=(E,ue,L)=>ue.has(E)||du("Cannot "+L);var b
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */return function(){var e=Yn,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),w=Symbol.iterator,f="@@iterator";function v(y){if(y===null||typeof y!="object")return null;var P=w&&y[w]||y[f];return typeof P=="function"?P:null}var _=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(y){{for(var P=arguments.length,k=new Array(P>1?P-1:0),I=1;I<P;I++)k[I-1]=arguments[I];C("error",y,k)}}function C(y,P,k){{var I=_.ReactDebugCurrentFrame,q=I.getStackAddendum();q!==""&&(P+="%s",k=k.concat([q]));var K=k.map(function(W){return String(W)});K.unshift("Warning: "+P),Function.prototype.apply.call(console[y],console,K)}}var S=!1,T=!1,R=!1,A=!1,N=!1,$;$=Symbol.for("react.module.reference");function M(y){return!!(typeof y=="string"||typeof y=="function"||y===r||y===i||N||y===o||y===l||y===d||A||y===m||S||T||R||typeof y=="object"&&y!==null&&(y.$$typeof===h||y.$$typeof===p||y.$$typeof===s||y.$$typeof===a||y.$$typeof===c||y.$$typeof===$||y.getModuleId!==void 0))}function Z(y,P,k){var I=y.displayName;if(I)return I;var q=P.displayName||P.name||"";return q!==""?k+"("+q+")":k}function X(y){return y.displayName||"Context"}function V(y){if(y==null)return null;if(typeof y.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof y=="function")return y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case l:return"Suspense";case d:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case a:var P=y;return X(P)+".Consumer";case s:var k=y;return X(k._context)+".Provider";case c:return Z(y,y.render,"ForwardRef");case p:var I=y.displayName||null;return I!==null?I:V(y.type)||"Memo";case h:{var q=y,K=q._payload,W=q._init;try{return V(W(K))}catch{return null}}}return null}var Y=Object.assign,ce=0,re,oe,U,le,Te,zt,Xr;function Jr(){}Jr.__reactDisabledLog=!0;function ki(){{if(ce===0){re=console.log,oe=console.info,U=console.warn,le=console.error,Te=console.group,zt=console.groupCollapsed,Xr=console.groupEnd;var y={configurable:!0,enumerable:!0,value:Jr,writable:!0};Object.defineProperties(console,{info:y,log:y,warn:y,error:y,group:y,groupCollapsed:y,groupEnd:y})}ce++}}function ji(){{if(ce--,ce===0){var y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Y({},y,{value:re}),info:Y({},y,{value:oe}),warn:Y({},y,{value:U}),error:Y({},y,{value:le}),group:Y({},y,{value:Te}),groupCollapsed:Y({},y,{value:zt}),groupEnd:Y({},y,{value:Xr})})}ce<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Gn=_.ReactCurrentDispatcher,xn;function Ht(y,P,k){{if(xn===void 0)try{throw Error()}catch(q){var I=q.stack.trim().match(/\n( *(at )?)/);xn=I&&I[1]||""}return`
11
- `+xn+y}}var Cn=!1,Wt;{var eo=typeof WeakMap=="function"?WeakMap:Map;Wt=new eo}function qn(y,P){if(!y||Cn)return"";{var k=Wt.get(y);if(k!==void 0)return k}var I;Cn=!0;var q=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var K;K=Gn.current,Gn.current=null,ki();try{if(P){var W=function(){throw Error()};if(Object.defineProperty(W.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(W,[])}catch(xe){I=xe}Reflect.construct(y,[],W)}else{try{W.call()}catch(xe){I=xe}y.call(W.prototype)}}else{try{throw Error()}catch(xe){I=xe}y()}}catch(xe){if(xe&&I&&typeof xe.stack=="string"){for(var z=xe.stack.split(`
10
+ */return function(){var e=qn,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),w=Symbol.iterator,f="@@iterator";function v(y){if(y===null||typeof y!="object")return null;var P=w&&y[w]||y[f];return typeof P=="function"?P:null}var _=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(y){{for(var P=arguments.length,k=new Array(P>1?P-1:0),I=1;I<P;I++)k[I-1]=arguments[I];C("error",y,k)}}function C(y,P,k){{var I=_.ReactDebugCurrentFrame,q=I.getStackAddendum();q!==""&&(P+="%s",k=k.concat([q]));var K=k.map(function(W){return String(W)});K.unshift("Warning: "+P),Function.prototype.apply.call(console[y],console,K)}}var E=!1,T=!1,R=!1,A=!1,N=!1,$;$=Symbol.for("react.module.reference");function M(y){return!!(typeof y=="string"||typeof y=="function"||y===r||y===i||N||y===o||y===l||y===d||A||y===m||E||T||R||typeof y=="object"&&y!==null&&(y.$$typeof===h||y.$$typeof===p||y.$$typeof===s||y.$$typeof===a||y.$$typeof===c||y.$$typeof===$||y.getModuleId!==void 0))}function Z(y,P,k){var I=y.displayName;if(I)return I;var q=P.displayName||P.name||"";return q!==""?k+"("+q+")":k}function X(y){return y.displayName||"Context"}function V(y){if(y==null)return null;if(typeof y.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof y=="function")return y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case l:return"Suspense";case d:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case a:var P=y;return X(P)+".Consumer";case s:var k=y;return X(k._context)+".Provider";case c:return Z(y,y.render,"ForwardRef");case p:var I=y.displayName||null;return I!==null?I:V(y.type)||"Memo";case h:{var q=y,K=q._payload,W=q._init;try{return V(W(K))}catch{return null}}}return null}var Y=Object.assign,ce=0,re,oe,B,le,Te,zt,Zr;function Xr(){}Xr.__reactDisabledLog=!0;function Oi(){{if(ce===0){re=console.log,oe=console.info,B=console.warn,le=console.error,Te=console.group,zt=console.groupCollapsed,Zr=console.groupEnd;var y={configurable:!0,enumerable:!0,value:Xr,writable:!0};Object.defineProperties(console,{info:y,log:y,warn:y,error:y,group:y,groupCollapsed:y,groupEnd:y})}ce++}}function ki(){{if(ce--,ce===0){var y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Y({},y,{value:re}),info:Y({},y,{value:oe}),warn:Y({},y,{value:B}),error:Y({},y,{value:le}),group:Y({},y,{value:Te}),groupCollapsed:Y({},y,{value:zt}),groupEnd:Y({},y,{value:Zr})})}ce<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Wn=_.ReactCurrentDispatcher,xn;function Ht(y,P,k){{if(xn===void 0)try{throw Error()}catch(q){var I=q.stack.trim().match(/\n( *(at )?)/);xn=I&&I[1]||""}return`
11
+ `+xn+y}}var Cn=!1,Wt;{var Jr=typeof WeakMap=="function"?WeakMap:Map;Wt=new Jr}function Vn(y,P){if(!y||Cn)return"";{var k=Wt.get(y);if(k!==void 0)return k}var I;Cn=!0;var q=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var K;K=Wn.current,Wn.current=null,Oi();try{if(P){var W=function(){throw Error()};if(Object.defineProperty(W.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(W,[])}catch(xe){I=xe}Reflect.construct(y,[],W)}else{try{W.call()}catch(xe){I=xe}y.call(W.prototype)}}else{try{throw Error()}catch(xe){I=xe}y()}}catch(xe){if(xe&&I&&typeof xe.stack=="string"){for(var U=xe.stack.split(`
12
12
  `),ge=I.stack.split(`
13
- `),ie=z.length-1,se=ge.length-1;ie>=1&&se>=0&&z[ie]!==ge[se];)se--;for(;ie>=1&&se>=0;ie--,se--)if(z[ie]!==ge[se]){if(ie!==1||se!==1)do if(ie--,se--,se<0||z[ie]!==ge[se]){var Re=`
14
- `+z[ie].replace(" at new "," at ");return y.displayName&&Re.includes("<anonymous>")&&(Re=Re.replace("<anonymous>",y.displayName)),typeof y=="function"&&Wt.set(y,Re),Re}while(ie>=1&&se>=0);break}}}finally{Cn=!1,Gn.current=K,ji(),Error.prepareStackTrace=q}var Tn=y?y.displayName||y.name:"",qt=Tn?Ht(Tn):"";return typeof y=="function"&&Wt.set(y,qt),qt}function Vt(y,P,k){return qn(y,!1)}function to(y){var P=y.prototype;return!!(P&&P.isReactComponent)}function En(y,P,k){if(y==null)return"";if(typeof y=="function")return qn(y,to(y));if(typeof y=="string")return Ht(y);switch(y){case l:return Ht("Suspense");case d:return Ht("SuspenseList")}if(typeof y=="object")switch(y.$$typeof){case c:return Vt(y.render);case p:return En(y.type,P,k);case h:{var I=y,q=I._payload,K=I._init;try{return En(K(q),P,k)}catch{}}}return""}var Gt=Object.prototype.hasOwnProperty,no={},ro=_.ReactDebugCurrentFrame;function rt(y){if(y){var P=y._owner,k=En(y.type,y._source,P?P.type:null);ro.setExtraStackFrame(k)}else ro.setExtraStackFrame(null)}function Bg(y,P,k,I,q){{var K=Function.call.bind(Gt);for(var W in y)if(K(y,W)){var z=void 0;try{if(typeof y[W]!="function"){var ge=Error((I||"React class")+": "+k+" type `"+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof y[W]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ge.name="Invariant Violation",ge}z=y[W](P,W,I,k,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ie){z=ie}z&&!(z instanceof Error)&&(rt(q),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",I||"React class",k,W,typeof z),rt(null)),z instanceof Error&&!(z.message in no)&&(no[z.message]=!0,rt(q),x("Failed %s type: %s",k,z.message),rt(null))}}}var Ug=Array.isArray;function Di(y){return Ug(y)}function zg(y){{var P=typeof Symbol=="function"&&Symbol.toStringTag,k=P&&y[Symbol.toStringTag]||y.constructor.name||"Object";return k}}function Hg(y){try{return Jl(y),!1}catch{return!0}}function Jl(y){return""+y}function eu(y){if(Hg(y))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",zg(y)),Jl(y)}var tu=_.ReactCurrentOwner,Wg={key:!0,ref:!0,__self:!0,__source:!0},nu,ru;function Vg(y){if(Gt.call(y,"ref")){var P=Object.getOwnPropertyDescriptor(y,"ref").get;if(P&&P.isReactWarning)return!1}return y.ref!==void 0}function Gg(y){if(Gt.call(y,"key")){var P=Object.getOwnPropertyDescriptor(y,"key").get;if(P&&P.isReactWarning)return!1}return y.key!==void 0}function qg(y,P){typeof y.ref=="string"&&tu.current}function Qg(y,P){{var k=function(){nu||(nu=!0,x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",P))};k.isReactWarning=!0,Object.defineProperty(y,"key",{get:k,configurable:!0})}}function Yg(y,P){{var k=function(){ru||(ru=!0,x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",P))};k.isReactWarning=!0,Object.defineProperty(y,"ref",{get:k,configurable:!0})}}var Kg=function(y,P,k,I,q,K,W){var z={$$typeof:t,type:y,key:P,ref:k,props:W,_owner:K};return z._store={},Object.defineProperty(z._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(z,"_self",{configurable:!1,enumerable:!1,writable:!1,value:I}),Object.defineProperty(z,"_source",{configurable:!1,enumerable:!1,writable:!1,value:q}),Object.freeze&&(Object.freeze(z.props),Object.freeze(z)),z};function Zg(y,P,k,I,q){{var K,W={},z=null,ge=null;k!==void 0&&(eu(k),z=""+k),Gg(P)&&(eu(P.key),z=""+P.key),Vg(P)&&(ge=P.ref,qg(P,q));for(K in P)Gt.call(P,K)&&!Wg.hasOwnProperty(K)&&(W[K]=P[K]);if(y&&y.defaultProps){var ie=y.defaultProps;for(K in ie)W[K]===void 0&&(W[K]=ie[K])}if(z||ge){var se=typeof y=="function"?y.displayName||y.name||"Unknown":y;z&&Qg(W,se),ge&&Yg(W,se)}return Kg(y,z,ge,q,I,tu.current,W)}}var Li=_.ReactCurrentOwner,ou=_.ReactDebugCurrentFrame;function Sn(y){if(y){var P=y._owner,k=En(y.type,y._source,P?P.type:null);ou.setExtraStackFrame(k)}else ou.setExtraStackFrame(null)}var Ii;Ii=!1;function Ni(y){return typeof y=="object"&&y!==null&&y.$$typeof===t}function iu(){{if(Li.current){var y=V(Li.current.type);if(y)return`
13
+ `),ie=U.length-1,se=ge.length-1;ie>=1&&se>=0&&U[ie]!==ge[se];)se--;for(;ie>=1&&se>=0;ie--,se--)if(U[ie]!==ge[se]){if(ie!==1||se!==1)do if(ie--,se--,se<0||U[ie]!==ge[se]){var Pe=`
14
+ `+U[ie].replace(" at new "," at ");return y.displayName&&Pe.includes("<anonymous>")&&(Pe=Pe.replace("<anonymous>",y.displayName)),typeof y=="function"&&Wt.set(y,Pe),Pe}while(ie>=1&&se>=0);break}}}finally{Cn=!1,Wn.current=K,ki(),Error.prepareStackTrace=q}var Tn=y?y.displayName||y.name:"",qt=Tn?Ht(Tn):"";return typeof y=="function"&&Wt.set(y,qt),qt}function Vt(y,P,k){return Vn(y,!1)}function eo(y){var P=y.prototype;return!!(P&&P.isReactComponent)}function En(y,P,k){if(y==null)return"";if(typeof y=="function")return Vn(y,eo(y));if(typeof y=="string")return Ht(y);switch(y){case l:return Ht("Suspense");case d:return Ht("SuspenseList")}if(typeof y=="object")switch(y.$$typeof){case c:return Vt(y.render);case p:return En(y.type,P,k);case h:{var I=y,q=I._payload,K=I._init;try{return En(K(q),P,k)}catch{}}}return""}var Gt=Object.prototype.hasOwnProperty,to={},no=_.ReactDebugCurrentFrame;function rt(y){if(y){var P=y._owner,k=En(y.type,y._source,P?P.type:null);no.setExtraStackFrame(k)}else no.setExtraStackFrame(null)}function Pg(y,P,k,I,q){{var K=Function.call.bind(Gt);for(var W in y)if(K(y,W)){var U=void 0;try{if(typeof y[W]!="function"){var ge=Error((I||"React class")+": "+k+" type `"+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof y[W]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ge.name="Invariant Violation",ge}U=y[W](P,W,I,k,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ie){U=ie}U&&!(U instanceof Error)&&(rt(q),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",I||"React class",k,W,typeof U),rt(null)),U instanceof Error&&!(U.message in to)&&(to[U.message]=!0,rt(q),x("Failed %s type: %s",k,U.message),rt(null))}}}var Rg=Array.isArray;function ji(y){return Rg(y)}function Og(y){{var P=typeof Symbol=="function"&&Symbol.toStringTag,k=P&&y[Symbol.toStringTag]||y.constructor.name||"Object";return k}}function kg(y){try{return Yl(y),!1}catch{return!0}}function Yl(y){return""+y}function Kl(y){if(kg(y))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Og(y)),Yl(y)}var Zl=_.ReactCurrentOwner,jg={key:!0,ref:!0,__self:!0,__source:!0},Xl,Jl;function Dg(y){if(Gt.call(y,"ref")){var P=Object.getOwnPropertyDescriptor(y,"ref").get;if(P&&P.isReactWarning)return!1}return y.ref!==void 0}function Lg(y){if(Gt.call(y,"key")){var P=Object.getOwnPropertyDescriptor(y,"key").get;if(P&&P.isReactWarning)return!1}return y.key!==void 0}function Ig(y,P){typeof y.ref=="string"&&Zl.current}function Ng(y,P){{var k=function(){Xl||(Xl=!0,x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",P))};k.isReactWarning=!0,Object.defineProperty(y,"key",{get:k,configurable:!0})}}function $g(y,P){{var k=function(){Jl||(Jl=!0,x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",P))};k.isReactWarning=!0,Object.defineProperty(y,"ref",{get:k,configurable:!0})}}var Mg=function(y,P,k,I,q,K,W){var U={$$typeof:t,type:y,key:P,ref:k,props:W,_owner:K};return U._store={},Object.defineProperty(U._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(U,"_self",{configurable:!1,enumerable:!1,writable:!1,value:I}),Object.defineProperty(U,"_source",{configurable:!1,enumerable:!1,writable:!1,value:q}),Object.freeze&&(Object.freeze(U.props),Object.freeze(U)),U};function Fg(y,P,k,I,q){{var K,W={},U=null,ge=null;k!==void 0&&(Kl(k),U=""+k),Lg(P)&&(Kl(P.key),U=""+P.key),Dg(P)&&(ge=P.ref,Ig(P,q));for(K in P)Gt.call(P,K)&&!jg.hasOwnProperty(K)&&(W[K]=P[K]);if(y&&y.defaultProps){var ie=y.defaultProps;for(K in ie)W[K]===void 0&&(W[K]=ie[K])}if(U||ge){var se=typeof y=="function"?y.displayName||y.name||"Unknown":y;U&&Ng(W,se),ge&&$g(W,se)}return Mg(y,U,ge,q,I,Zl.current,W)}}var Di=_.ReactCurrentOwner,eu=_.ReactDebugCurrentFrame;function Sn(y){if(y){var P=y._owner,k=En(y.type,y._source,P?P.type:null);eu.setExtraStackFrame(k)}else eu.setExtraStackFrame(null)}var Li;Li=!1;function Ii(y){return typeof y=="object"&&y!==null&&y.$$typeof===t}function tu(){{if(Di.current){var y=V(Di.current.type);if(y)return`
15
15
 
16
- Check the render method of \``+y+"`."}return""}}function Xg(y){return""}var su={};function Jg(y){{var P=iu();if(!P){var k=typeof y=="string"?y:y.displayName||y.name;k&&(P=`
16
+ Check the render method of \``+y+"`."}return""}}function Bg(y){return""}var nu={};function Ug(y){{var P=tu();if(!P){var k=typeof y=="string"?y:y.displayName||y.name;k&&(P=`
17
17
 
18
- Check the top-level render call using <`+k+">.")}return P}}function au(y,P){{if(!y._store||y._store.validated||y.key!=null)return;y._store.validated=!0;var k=Jg(P);if(su[k])return;su[k]=!0;var I="";y&&y._owner&&y._owner!==Li.current&&(I=" It was passed a child from "+V(y._owner.type)+"."),Sn(y),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',k,I),Sn(null)}}function cu(y,P){{if(typeof y!="object")return;if(Di(y))for(var k=0;k<y.length;k++){var I=y[k];Ni(I)&&au(I,P)}else if(Ni(y))y._store&&(y._store.validated=!0);else if(y){var q=v(y);if(typeof q=="function"&&q!==y.entries)for(var K=q.call(y),W;!(W=K.next()).done;)Ni(W.value)&&au(W.value,P)}}}function ev(y){{var P=y.type;if(P==null||typeof P=="string")return;var k;if(typeof P=="function")k=P.propTypes;else if(typeof P=="object"&&(P.$$typeof===c||P.$$typeof===p))k=P.propTypes;else return;if(k){var I=V(P);Bg(k,y.props,"prop",I,y)}else if(P.PropTypes!==void 0&&!Ii){Ii=!0;var q=V(P);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",q||"Unknown")}typeof P.getDefaultProps=="function"&&!P.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function tv(y){{for(var P=Object.keys(y.props),k=0;k<P.length;k++){var I=P[k];if(I!=="children"&&I!=="key"){Sn(y),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",I),Sn(null);break}}y.ref!==null&&(Sn(y),x("Invalid attribute `ref` supplied to `React.Fragment`."),Sn(null))}}var lu={};function uu(y,P,k,I,q,K){{var W=M(y);if(!W){var z="";(y===void 0||typeof y=="object"&&y!==null&&Object.keys(y).length===0)&&(z+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ge=Xg();ge?z+=ge:z+=iu();var ie;y===null?ie="null":Di(y)?ie="array":y!==void 0&&y.$$typeof===t?(ie="<"+(V(y.type)||"Unknown")+" />",z=" Did you accidentally export a JSX literal instead of a component?"):ie=typeof y,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ie,z)}var se=Zg(y,P,k,q,K);if(se==null)return se;if(W){var Re=P.children;if(Re!==void 0)if(I)if(Di(Re)){for(var Tn=0;Tn<Re.length;Tn++)cu(Re[Tn],y);Object.freeze&&Object.freeze(Re)}else x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else cu(Re,y)}if(Gt.call(P,"key")){var qt=V(y),xe=Object.keys(P).filter(function(av){return av!=="key"}),$i=xe.length>0?"{key: someKey, "+xe.join(": ..., ")+": ...}":"{key: someKey}";if(!lu[qt+$i]){var sv=xe.length>0?"{"+xe.join(": ..., ")+": ...}":"{}";x(`A props object containing a "key" prop is being spread into JSX:
18
+ Check the top-level render call using <`+k+">.")}return P}}function ru(y,P){{if(!y._store||y._store.validated||y.key!=null)return;y._store.validated=!0;var k=Ug(P);if(nu[k])return;nu[k]=!0;var I="";y&&y._owner&&y._owner!==Di.current&&(I=" It was passed a child from "+V(y._owner.type)+"."),Sn(y),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',k,I),Sn(null)}}function ou(y,P){{if(typeof y!="object")return;if(ji(y))for(var k=0;k<y.length;k++){var I=y[k];Ii(I)&&ru(I,P)}else if(Ii(y))y._store&&(y._store.validated=!0);else if(y){var q=v(y);if(typeof q=="function"&&q!==y.entries)for(var K=q.call(y),W;!(W=K.next()).done;)Ii(W.value)&&ru(W.value,P)}}}function zg(y){{var P=y.type;if(P==null||typeof P=="string")return;var k;if(typeof P=="function")k=P.propTypes;else if(typeof P=="object"&&(P.$$typeof===c||P.$$typeof===p))k=P.propTypes;else return;if(k){var I=V(P);Pg(k,y.props,"prop",I,y)}else if(P.PropTypes!==void 0&&!Li){Li=!0;var q=V(P);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",q||"Unknown")}typeof P.getDefaultProps=="function"&&!P.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Hg(y){{for(var P=Object.keys(y.props),k=0;k<P.length;k++){var I=P[k];if(I!=="children"&&I!=="key"){Sn(y),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",I),Sn(null);break}}y.ref!==null&&(Sn(y),x("Invalid attribute `ref` supplied to `React.Fragment`."),Sn(null))}}var iu={};function su(y,P,k,I,q,K){{var W=M(y);if(!W){var U="";(y===void 0||typeof y=="object"&&y!==null&&Object.keys(y).length===0)&&(U+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ge=Bg();ge?U+=ge:U+=tu();var ie;y===null?ie="null":ji(y)?ie="array":y!==void 0&&y.$$typeof===t?(ie="<"+(V(y.type)||"Unknown")+" />",U=" Did you accidentally export a JSX literal instead of a component?"):ie=typeof y,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ie,U)}var se=Fg(y,P,k,q,K);if(se==null)return se;if(W){var Pe=P.children;if(Pe!==void 0)if(I)if(ji(Pe)){for(var Tn=0;Tn<Pe.length;Tn++)ou(Pe[Tn],y);Object.freeze&&Object.freeze(Pe)}else x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ou(Pe,y)}if(Gt.call(P,"key")){var qt=V(y),xe=Object.keys(P).filter(function(Yg){return Yg!=="key"}),Ni=xe.length>0?"{key: someKey, "+xe.join(": ..., ")+": ...}":"{key: someKey}";if(!iu[qt+Ni]){var Qg=xe.length>0?"{"+xe.join(": ..., ")+": ...}":"{}";x(`A props object containing a "key" prop is being spread into JSX:
19
19
  let props = %s;
20
20
  <%s {...props} />
21
21
  React keys must be passed directly to JSX without using spread:
22
22
  let props = %s;
23
- <%s key={someKey} {...props} />`,$i,qt,sv,qt),lu[qt+$i]=!0}}return y===r?tv(se):ev(se),se}}function nv(y,P,k){return uu(y,P,k,!0)}function rv(y,P,k){return uu(y,P,k,!1)}var ov=rv,iv=nv;On.Fragment=r,On.jsx=ov,On.jsxs=iv}(),On}es.exports=wu();var u=es.exports;const ns=Kn(null),rs=({module:e,children:t})=>u.jsx(ns.Provider,{value:e,children:t});rs.displayName="PAEModule";const Xn=E("useModuleMetadata",()=>{const e=Qt(ns);if(!e)throw new Error("Module metadata was not setup yet !!");return e});function ho(){if(!window[Pn])throw new Error("PAE Global state not found.");return window[Pn]}const os=E("getApplications",()=>{const{authUser:{applications:e}}=ho();return e||[]}),_u=E("getOperations",e=>os().filter(t=>t.isGlobal||t.name===e).flatMap(t=>t.operations)),xu=E("useOperations",()=>{const{application:e}=Xn();return Ae(()=>_u(e),[e])}),Cu=E("hasAccess",e=>(...t)=>t.every(n=>e.some(r=>r.name===n))),po=E("useAuth",()=>{const[{authUser:e}]=fo(),t=xu();return{authUser:e,hasAccess:Ae(()=>Cu(t),[t])}}),uv=E("useHasNoSession",()=>{const{authUser:e}=po();return!e||e.id==="anon"}),Eu=E("useModuleConfig",()=>{var e;return((e=Xn().ui)==null?void 0:e.customProps)??{}}),is=E("useModule",e=>{const t=Rn();return Ae(()=>{const n=t.find(r=>r.name===e);if(!n)throw new Error(`Could not find the module [${e}] in the local catalog !`);return n},[t,e])}),Su=E("useModuleConfigByName",e=>{var t,n;return((n=(t=is(e))==null?void 0:t.ui)==null?void 0:n.customProps)??{}}),Tu=e=>e.replace(/\/+/g,"/"),dv=E("useModuleCommonPaths",(e,t="only-base-path")=>{const{apiDocs:n,health:r,version:o,changelog:i}=(e==null?void 0:e.commonPaths)||{},s=(a,c="")=>{if(a===void 0&&!c)return;const l=a??c;if(t==="only-base-path")return l;const d=Tu(`${e.baseUrl}/${l}`);return t==="with-module-base"?d:`${document.location.origin}${d}`};return{apiDocsPath:s(n,"/api-docs-json"),healthPath:s(r,"/health"),versionPath:s(o,"/version"),changelogPath:s(i,"/changelog")}});function Au(){window.open(hu,"_self")}const fv=E("navigateTo",e=>Yi(e)),Pu=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,}$/,hv=E("isValidEmail",e=>Pu.test(e)),pv=E("getInitials",(e,t=2)=>{if(!e)return"";const n=e.split(" ");return n.length===1?n.join("").slice(0,t):n.map(r=>r[0]).join("").slice(0,t)}),ss=e=>e.type==="app",Ru=e=>e.modules.some(ss)&&e.route&&e.route!=="/",as=e=>{const{catalog:t}=ho();return Jn(t.filter(n=>n.application===e))},Jn=(e=[])=>e.find(t=>{var n;return ss(t)&&((n=t.ui)==null?void 0:n.route)!=="/"}),Ou=E("useApplications",()=>{const e=Rn();return Ae(()=>os().map(n=>{var i,s,a;const r=ku(e,n.name),o=Jn(r);return{name:n.name,displayName:((s=(i=o==null?void 0:o.ui)==null?void 0:i.customProps)==null?void 0:s.overrideApplicationDisplayName)??n.displayName,modules:r,route:(a=o==null?void 0:o.ui)==null?void 0:a.route,roles:[],operations:n.operations}}),[e])}),ku=(e,t)=>e.filter(n=>n.application===t)||[],ju=E("useUIApplications",()=>{const e=Ou();return Ae(()=>e.filter(Ru),[e])}),Du=E("useApplicationUIModule",e=>Ae(()=>e?as(e.name):void 0,[e])),it=new Map,Lu=e=>{try{const{catalog:t}=ho(),n=t.find(r=>r.name===e);return n!=null&&n.version?`${e}@${n.version}`:e}catch{return e}},mo=E("useApplicationJSModule",e=>{const[t,n]=L(null);return Q(()=>{(async()=>{if(!e){n(null);return}try{const o=Lu(e);if(it.has(o)){const s=it.get(o);n(s);return}const i=await System.import(e);it.set(o,i),n(i)}catch(o){console.error(`Error importing module ${e}: ${o.message}`),n(null)}})()},[e,n]),t}),Iu=e=>{e?(Array.from(it.keys()).filter(n=>n.startsWith(e)).forEach(n=>it.delete(n)),console.log(`[useApplicationJSModule] Cleared cache for module: ${e}`)):(it.clear(),console.log("[useApplicationJSModule] Cleared all module cache"))};typeof window<"u"&&(window.PAE={...window.PAE,clearModuleCache:Iu,getModuleCacheSize:()=>it.size,getModuleCacheKeys:()=>Array.from(it.keys())});const Nu=E("useApplicationIcon",e=>{const t=typeof e=="string"?as(e):Jn(e==null?void 0:e.modules),n=mo(t==null?void 0:t.name);return n==null?void 0:n.icon}),$u=E("useModuleMenu",e=>{const t=Jn(e==null?void 0:e.modules),n=mo(t==null?void 0:t.name),[r,o]=L(!1),[i,s]=L({}),a=async()=>(typeof(n==null?void 0:n.menu)=="function"?await n.menu():n==null?void 0:n.menu)||[],c=async()=>{if(!(n!=null&&n.menu))return[];o(!0);const p=cs((e==null?void 0:e.operations)||[]),h=(await a()).map(m=>{const{operations:w,items:f,path:v}=m;if(w!=null&&w.length&&!p(w))return null;const _=(f||[]).filter(x=>{var C;return!((C=x==null?void 0:x.operations)!=null&&C.length)||p(x.operations)});return!_.length&&!v?null:{...m,items:_}}).filter(Boolean);return o(!1),h},l=async()=>{const p=await c();e&&s(h=>({...h,[e.name]:p}))};Q(()=>{l()},[n==null?void 0:n.menu]);const d=Ae(()=>e?i[e.name]||[]:[],[i,e]);return{loading:r,menu:d}}),cs=e=>t=>t.every(n=>e.some(r=>r.name===n));/**
24
- * @license lucide-react v0.511.0 - ISC
25
- *
26
- * This source code is licensed under the ISC license.
27
- * See the LICENSE file in the root directory of this source tree.
28
- */const Mu=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Fu=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),ls=e=>{const t=Fu(e);return t.charAt(0).toUpperCase()+t.slice(1)},us=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Bu=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
29
- * @license lucide-react v0.511.0 - ISC
30
- *
31
- * This source code is licensed under the ISC license.
32
- * See the LICENSE file in the root directory of this source tree.
33
- */var Uu={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
34
- * @license lucide-react v0.511.0 - ISC
35
- *
36
- * This source code is licensed under the ISC license.
37
- * See the LICENSE file in the root directory of this source tree.
38
- */const zu=B(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...a},c)=>An("svg",{ref:c,...Uu,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:us("lucide",o),...!i&&!Bu(a)&&{"aria-hidden":"true"},...a},[...s.map(([l,d])=>An(l,d)),...Array.isArray(i)?i:[i]]));/**
39
- * @license lucide-react v0.511.0 - ISC
40
- *
41
- * This source code is licensed under the ISC license.
42
- * See the LICENSE file in the root directory of this source tree.
43
- */const Hu=(e,t)=>{const n=B(({className:r,...o},i)=>An(zu,{ref:i,iconNode:t,className:us(`lucide-${Mu(ls(e))}`,`lucide-${e}`,r),...o}));return n.displayName=ls(e),n};/**
44
- * @license lucide-react v0.511.0 - ISC
45
- *
46
- * This source code is licensed under the ISC license.
47
- * See the LICENSE file in the root directory of this source tree.
48
- */const Wu=Hu("book-text",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M8 11h8",key:"vwpz6n"}],["path",{d:"M8 7h6",key:"1f0q6e"}]]),Vu=E("useDocumentationMenuItems",e=>{const t=Rn();return Ae(()=>{if(!e)return[];const n=t.filter(o=>o.type==="documentation"&&o.application===e.name),r=cs(e.operations||[]);return n.filter(o=>{var i,s;return(s=(i=o.authorization)==null?void 0:i.operations)!=null&&s.length?r(o.authorization.operations):!0}).map(o=>{var i;return{label:o.displayName,externalUrl:o.baseUrl,target:"_blank",align:"bottom",Icon:An(Wu,{size:20}),operations:((i=o.authorization)==null?void 0:i.operations)||[]}})},[t,e])}),gv=E("useApplicationMenu",e=>{const{menu:t,loading:n}=$u(e),r=Vu(e),o=Ae(()=>[...t,...r],[t,r]);return{loading:n,menu:o}});function ee(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function St(e){return function t(n){return arguments.length===0||ee(n)?t:e.apply(this,arguments)}}function st(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return ee(n)?t:St(function(o){return e(n,o)});default:return ee(n)&&ee(r)?t:ee(n)?St(function(o){return e(o,r)}):ee(r)?St(function(o){return e(n,o)}):e(n,r)}}}function go(e){return function t(n,r,o){switch(arguments.length){case 0:return t;case 1:return ee(n)?t:st(function(i,s){return e(n,i,s)});case 2:return ee(n)&&ee(r)?t:ee(n)?st(function(i,s){return e(i,r,s)}):ee(r)?st(function(i,s){return e(n,i,s)}):St(function(i){return e(n,r,i)});default:return ee(n)&&ee(r)&&ee(o)?t:ee(n)&&ee(r)?st(function(i,s){return e(i,s,o)}):ee(n)&&ee(o)?st(function(i,s){return e(i,r,s)}):ee(r)&&ee(o)?st(function(i,s){return e(n,i,s)}):ee(n)?St(function(i){return e(i,r,o)}):ee(r)?St(function(i){return e(n,i,o)}):ee(o)?St(function(i){return e(n,r,i)}):e(n,r,o)}}}function er(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function ds(e){return Object.prototype.toString.call(e)==="[object Object]"}var Gu=go(function(t,n,r){var o=t(n),i=t(r);return o>i?-1:o<i?1:0}),qu=go(function(t,n,r){var o={},i;n=n||{},r=r||{};for(i in n)er(i,n)&&(o[i]=er(i,r)?t(i,n[i],r[i]):n[i]);for(i in r)er(i,r)&&!er(i,o)&&(o[i]=r[i]);return o}),Qu=go(function e(t,n,r){return qu(function(o,i,s){return ds(i)&&ds(s)?e(t,i,s):t(o,i,s)},n,r)}),Yu=st(function(t,n){return Qu(function(r,o,i){return i},t,n)}),Ku=st(function(t,n){return Array.prototype.slice.call(n,0).sort(function(r,o){for(var i=0,s=0;i===0&&s<t.length;)i=t[s](r,o),s+=1;return i})});const fs=E("useCurrentApplication",()=>{const e=vu(),t=ju();return Ae(()=>Zu(e,t),[e,t])}),Zu=(e,t)=>Ku([Gu(Xu)],t).find(n=>n.route&&e.startsWith(n.route)),Xu=e=>{var t;return((t=e==null?void 0:e.route)==null?void 0:t.length)||-1},Ju=E("useCurrentApplicationName",()=>{var e;return(e=fs())==null?void 0:e.name}),vv=E("useCurrentJSModule",()=>{const e=fs(),t=Du(e);return mo(t==null?void 0:t.name)}),ed=E("useServiceBaseURL",(e,t)=>{const r=Rn().find(o=>o.name===e);if(!r){if(t)return null;throw new Error(`Service with name [${e}] not available in the catalog`)}return r.baseUrl}),hs=E("useServiceInvoker",(e,t)=>{const n=ed(e,!!t)??t;return te((r,o)=>{const s={Accept:"application/json",...(o==null?void 0:o.body)instanceof FormData?{}:{"Content-Type":"application/json"},...o==null?void 0:o.headers};return fetch(td(`${n}${r}`),{...o,headers:s})},[n])}),td=e=>e.replace(/\/+/g,"/"),nd=(e,t)=>n=>({timestamp:new Date(new Date().toUTCString()).toISOString(),module:t.name,moduleVersion:t.version,application:t.application,user:e.username,...n}),rd=(e,t,n)=>async r=>{if(r.length===0)throw new Error("Invalid call to trackEvents with an empty array of events!");const o=await e("/event",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r.map(nd(t,n)))});if(!o.ok)throw new Error(`Error publishing habits event ${o.statusText}`)},od="@bluealba/pae-habits-service",id=E("useTrackEvents",()=>{const{authUser:e}=po(),t=Xn(),n=hs(od);return te(rd(n,e,t),[n,e,t])}),yv=E("useTrackEvent",()=>{const e=id();return te((t,n)=>e([{name:t,data:n}]),[e])}),sd=E("useExtensionPoint",e=>{const t=Xn(),n=window[Xi],[r,o]=L(null);return Q(()=>n.defineExtensionPoint(t,e,i=>{o(()=>i)}),[o]),r}),ad=E("useExtendExtensionPoint",(e,t,n)=>{Q(()=>window[Xi].setExtensionPoint(e,t,n),[])}),cd=E("usePlatformEventListener",(e,t)=>{Q(()=>(window.addEventListener(e,t),()=>window.removeEventListener(e,t)),[e,t])}),ld=E("useDynamicStyleSheet",e=>{const{cssCustomizationLoadingDelay:t=1e3}=Eu();Q(()=>{if(!e)return;const n=document.createElement("style");return setTimeout(()=>{n.innerHTML=e,document.head.append(n)},t),()=>n&&n.remove()},[e])}),ud=e=>{var t;return(t=e.split(/[#?]/)[0].split(".").pop())==null?void 0:t.trim()},dd={woff2:"woff2",woff:"woff",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg"},fd=e=>{const t=ud(e);return t?dd[t]:void 0},hd=(e,t)=>{const n=t??fd(e);return n?`format(${n})`:""};function ps(e){const[t,n]=L(!1);return Q(()=>{if(!(e!=null&&e.length))return;const r=document.createElement("style");r.setAttribute("data-generated-fonts","true");const o=e.flatMap(({fontFamily:s,variants:a})=>a.map(({path:c,fontWeight:l,format:d})=>`
23
+ <%s key={someKey} {...props} />`,Ni,qt,Qg,qt),iu[qt+Ni]=!0}}return y===r?Hg(se):zg(se),se}}function Wg(y,P,k){return su(y,P,k,!0)}function Vg(y,P,k){return su(y,P,k,!1)}var Gg=Vg,qg=Wg;Pn.Fragment=r,Pn.jsx=Gg,Pn.jsxs=qg}(),Pn}Ji.exports=gu();var u=Ji.exports;const ts=Qn(null),ns=({module:e,children:t})=>u.jsx(ts.Provider,{value:e,children:t});ns.displayName="PAEModule";const Zn=S("useModuleMetadata",()=>{const e=Qt(ts);if(!e)throw new Error("Module metadata was not setup yet !!");return e});function fo(){if(!window[An])throw new Error("PAE Global state not found.");return window[An]}const rs=S("getApplications",()=>{const{authUser:{applications:e}}=fo();return e||[]}),vu=S("getOperations",e=>rs().filter(t=>t.isGlobal||t.name===e).flatMap(t=>t.operations)),yu=S("useOperations",()=>{const{application:e}=Zn();return $e(()=>vu(e),[e])}),bu=S("hasAccess",e=>(...t)=>t.every(n=>e.some(r=>r.name===n))),ho=S("useAuth",()=>{const[{authUser:e}]=uo(),t=yu();return{authUser:e,hasAccess:$e(()=>bu(t),[t])}}),Xg=S("useHasNoSession",()=>{const{authUser:e}=ho();return!e||e.id==="anon"}),wu=S("useModuleConfig",()=>{var e;return((e=Zn().ui)==null?void 0:e.customProps)??{}}),os=S("useModule",e=>{const t=Kn();return $e(()=>{const n=t.find(r=>r.name===e);if(!n)throw new Error(`Could not find the module [${e}] in the local catalog !`);return n},[t,e])}),_u=S("useModuleConfigByName",e=>{var t,n;return((n=(t=os(e))==null?void 0:t.ui)==null?void 0:n.customProps)??{}}),xu=e=>e.replace(/\/+/g,"/"),Jg=S("useModuleCommonPaths",(e,t="only-base-path")=>{const{apiDocs:n,health:r,version:o,changelog:i}=(e==null?void 0:e.commonPaths)||{},s=(a,c="")=>{if(a===void 0&&!c)return;const l=a??c;if(t==="only-base-path")return l;const d=xu(`${e.baseUrl}/${l}`);return t==="with-module-base"?d:`${document.location.origin}${d}`};return{apiDocsPath:s(n,"/api-docs-json"),healthPath:s(r,"/health"),versionPath:s(o,"/version"),changelogPath:s(i,"/changelog")}});function Cu(){window.open(lu,"_self")}const ev=S("navigateTo",e=>Qi(e)),Eu=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,}$/,tv=S("isValidEmail",e=>Eu.test(e)),nv=S("getInitials",(e,t=2)=>{if(!e)return"";const n=e.split(" ");return n.length===1?n.join("").slice(0,t):n.map(r=>r[0]).join("").slice(0,t)}),is=e=>e.type==="app",Su=e=>e.modules.some(is)&&e.route&&e.route!=="/",ss=e=>{const{catalog:t}=fo();return Xn(t.filter(n=>n.application===e))},Xn=(e=[])=>e.find(t=>{var n;return is(t)&&((n=t.ui)==null?void 0:n.route)!=="/"}),Tu=S("useApplications",()=>{const e=Kn();return $e(()=>rs().map(n=>{var i,s,a;const r=Au(e,n.name),o=Xn(r);return{name:n.name,displayName:((s=(i=o==null?void 0:o.ui)==null?void 0:i.customProps)==null?void 0:s.overrideApplicationDisplayName)??n.displayName,modules:r,route:(a=o==null?void 0:o.ui)==null?void 0:a.route,roles:[],operations:n.operations}}),[e])}),Au=(e,t)=>e.filter(n=>n.application===t)||[],Pu=S("useUIApplications",()=>{const e=Tu();return $e(()=>e.filter(Su),[e])}),Ru=S("useApplicationUIModule",e=>$e(()=>e?ss(e.name):void 0,[e])),it=new Map,Ou=e=>{try{const{catalog:t}=fo(),n=t.find(r=>r.name===e);return n!=null&&n.version?`${e}@${n.version}`:e}catch{return e}},po=S("useApplicationJSModule",e=>{const[t,n]=L(null);return Q(()=>{(async()=>{if(!e){n(null);return}try{const o=Ou(e);if(it.has(o)){const s=it.get(o);n(s);return}const i=await System.import(e);it.set(o,i),n(i)}catch(o){console.error(`Error importing module ${e}: ${o.message}`),n(null)}})()},[e,n]),t}),ku=e=>{e?(Array.from(it.keys()).filter(n=>n.startsWith(e)).forEach(n=>it.delete(n)),console.log(`[useApplicationJSModule] Cleared cache for module: ${e}`)):(it.clear(),console.log("[useApplicationJSModule] Cleared all module cache"))};typeof window<"u"&&(window.PAE={...window.PAE,clearModuleCache:ku,getModuleCacheSize:()=>it.size,getModuleCacheKeys:()=>Array.from(it.keys())});const ju=S("useApplicationIcon",e=>{const t=typeof e=="string"?ss(e):Xn(e==null?void 0:e.modules),n=po(t==null?void 0:t.name);return n==null?void 0:n.icon}),rv=S("useApplicationMenu",e=>{const t=Xn(e==null?void 0:e.modules),n=po(t==null?void 0:t.name),[r,o]=L(!1),[i,s]=L({}),a=async()=>(typeof(n==null?void 0:n.menu)=="function"?await n.menu():n==null?void 0:n.menu)||[],c=async()=>{if(!(n!=null&&n.menu))return[];o(!0);const p=Du((e==null?void 0:e.operations)||[]),h=(await a()).map(m=>{const{operations:w,items:f,path:v}=m;if(w!=null&&w.length&&!p(w))return null;const _=(f||[]).filter(x=>{var C;return!((C=x==null?void 0:x.operations)!=null&&C.length)||p(x.operations)});return!_.length&&!v?null:{...m,items:_}}).filter(Boolean);return o(!1),h},l=async()=>{const p=await c();e&&s(h=>({...h,[e.name]:p}))};Q(()=>{l()},[n==null?void 0:n.menu]);const d=$e(()=>e?i[e.name]||[]:[],[i,e]);return{loading:r,menu:d}}),Du=e=>t=>t.every(n=>e.some(r=>r.name===n));function J(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function St(e){return function t(n){return arguments.length===0||J(n)?t:e.apply(this,arguments)}}function st(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return J(n)?t:St(function(o){return e(n,o)});default:return J(n)&&J(r)?t:J(n)?St(function(o){return e(o,r)}):J(r)?St(function(o){return e(n,o)}):e(n,r)}}}function mo(e){return function t(n,r,o){switch(arguments.length){case 0:return t;case 1:return J(n)?t:st(function(i,s){return e(n,i,s)});case 2:return J(n)&&J(r)?t:J(n)?st(function(i,s){return e(i,r,s)}):J(r)?st(function(i,s){return e(n,i,s)}):St(function(i){return e(n,r,i)});default:return J(n)&&J(r)&&J(o)?t:J(n)&&J(r)?st(function(i,s){return e(i,s,o)}):J(n)&&J(o)?st(function(i,s){return e(i,r,s)}):J(r)&&J(o)?st(function(i,s){return e(n,i,s)}):J(n)?St(function(i){return e(i,r,o)}):J(r)?St(function(i){return e(n,i,o)}):J(o)?St(function(i){return e(n,r,i)}):e(n,r,o)}}}function Jn(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function as(e){return Object.prototype.toString.call(e)==="[object Object]"}var Lu=mo(function(t,n,r){var o=t(n),i=t(r);return o>i?-1:o<i?1:0}),Iu=mo(function(t,n,r){var o={},i;n=n||{},r=r||{};for(i in n)Jn(i,n)&&(o[i]=Jn(i,r)?t(i,n[i],r[i]):n[i]);for(i in r)Jn(i,r)&&!Jn(i,o)&&(o[i]=r[i]);return o}),Nu=mo(function e(t,n,r){return Iu(function(o,i,s){return as(i)&&as(s)?e(t,i,s):t(o,i,s)},n,r)}),$u=st(function(t,n){return Nu(function(r,o,i){return i},t,n)}),Mu=st(function(t,n){return Array.prototype.slice.call(n,0).sort(function(r,o){for(var i=0,s=0;i===0&&s<t.length;)i=t[s](r,o),s+=1;return i})});const cs=S("useCurrentApplication",()=>{const e=hu(),t=Pu();return $e(()=>Fu(e,t),[e,t])}),Fu=(e,t)=>Mu([Lu(Bu)],t).find(n=>n.route&&e.startsWith(n.route)),Bu=e=>{var t;return((t=e==null?void 0:e.route)==null?void 0:t.length)||-1},Uu=S("useCurrentApplicationName",()=>{var e;return(e=cs())==null?void 0:e.name}),ov=S("useCurrentJSModule",()=>{const e=cs(),t=Ru(e);return po(t==null?void 0:t.name)}),zu=S("useServiceBaseURL",(e,t)=>{const r=Kn().find(o=>o.name===e);if(!r){if(t)return null;throw new Error(`Service with name [${e}] not available in the catalog`)}return r.baseUrl}),ls=S("useServiceInvoker",(e,t)=>{const n=zu(e,!!t)??t;return ee((r,o)=>{const s={Accept:"application/json",...(o==null?void 0:o.body)instanceof FormData?{}:{"Content-Type":"application/json"},...o==null?void 0:o.headers};return fetch(Hu(`${n}${r}`),{...o,headers:s})},[n])}),Hu=e=>e.replace(/\/+/g,"/"),Wu=(e,t)=>n=>({timestamp:new Date(new Date().toUTCString()).toISOString(),module:t.name,moduleVersion:t.version,application:t.application,user:e.username,...n}),Vu=(e,t,n)=>async r=>{if(r.length===0)throw new Error("Invalid call to trackEvents with an empty array of events!");const o=await e("/event",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r.map(Wu(t,n)))});if(!o.ok)throw new Error(`Error publishing habits event ${o.statusText}`)},Gu="@bluealba/pae-habits-service",qu=S("useTrackEvents",()=>{const{authUser:e}=ho(),t=Zn(),n=ls(Gu);return ee(Vu(n,e,t),[n,e,t])}),iv=S("useTrackEvent",()=>{const e=qu();return ee((t,n)=>e([{name:t,data:n}]),[e])}),Qu=S("useExtensionPoint",e=>{const t=Zn(),n=window[Zi],[r,o]=L(null);return Q(()=>n.defineExtensionPoint(t,e,i=>{o(()=>i)}),[o]),r}),Yu=S("useExtendExtensionPoint",(e,t,n)=>{Q(()=>window[Zi].setExtensionPoint(e,t,n),[])}),Ku=S("usePlatformEventListener",(e,t)=>{Q(()=>(window.addEventListener(e,t),()=>window.removeEventListener(e,t)),[e,t])}),Zu=S("useDynamicStyleSheet",e=>{const{cssCustomizationLoadingDelay:t=1e3}=wu();Q(()=>{if(!e)return;const n=document.createElement("style");return setTimeout(()=>{n.innerHTML=e,document.head.append(n)},t),()=>n&&n.remove()},[e])}),Xu=e=>{var t;return(t=e.split(/[#?]/)[0].split(".").pop())==null?void 0:t.trim()},Ju={woff2:"woff2",woff:"woff",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg"},ed=e=>{const t=Xu(e);return t?Ju[t]:void 0},td=(e,t)=>{const n=t??ed(e);return n?`format(${n})`:""};function us(e){const[t,n]=L(!1);return Q(()=>{if(!(e!=null&&e.length))return;const r=document.createElement("style");r.setAttribute("data-generated-fonts","true");const o=e.flatMap(({fontFamily:s,variants:a})=>a.map(({path:c,fontWeight:l,format:d})=>`
49
24
  @font-face {
50
25
  font-family: "${s}";
51
- src: url("${c}") ${hd(c,d)};
26
+ src: url("${c}") ${td(c,d)};
52
27
  font-weight: ${l};
53
28
  font-style: normal;
54
29
  }
55
30
  `)).join(`
56
- `);return r.innerHTML=o,document.head.appendChild(r),(async()=>{try{await Promise.all(e.flatMap(({fontFamily:s,variants:a})=>a.map(({fontWeight:c})=>document.fonts.load(`normal ${c} 1em "${s}"`))))}finally{n(!0)}})(),()=>{document.head.removeChild(r)}},[e]),Q(()=>{!t&&!(e!=null&&e.length)&&n(!0)},[e,t]),{fontsLoaded:t}}var vo=function(e,t){return vo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},vo(e,t)};function kn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");vo(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Me=function(){return Me=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Me.apply(this,arguments)};function ms(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function yo(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function bo(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function tr(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function qe(e){return typeof e=="function"}function gs(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var wo=gs(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
31
+ `);return r.innerHTML=o,document.head.appendChild(r),(async()=>{try{await Promise.all(e.flatMap(({fontFamily:s,variants:a})=>a.map(({fontWeight:c})=>document.fonts.load(`normal ${c} 1em "${s}"`))))}finally{n(!0)}})(),()=>{document.head.removeChild(r)}},[e]),Q(()=>{!t&&!(e!=null&&e.length)&&n(!0)},[e,t]),{fontsLoaded:t}}var go=function(e,t){return go=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},go(e,t)};function Rn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");go(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Me=function(){return Me=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Me.apply(this,arguments)};function ds(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function vo(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function yo(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function er(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function qe(e){return typeof e=="function"}function fs(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var bo=fs(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
57
32
  `+n.map(function(r,o){return o+1+") "+r.toString()}).join(`
58
- `):"",this.name="UnsubscriptionError",this.errors=n}});function _o(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var nr=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,o,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=yo(s),c=a.next();!c.done;c=a.next()){var l=c.value;l.remove(this)}}catch(f){t={error:f}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else s.remove(this);var d=this.initialTeardown;if(qe(d))try{d()}catch(f){i=f instanceof wo?f.errors:[f]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var h=yo(p),m=h.next();!m.done;m=h.next()){var w=m.value;try{bs(w)}catch(f){i=i??[],f instanceof wo?i=tr(tr([],bo(i)),bo(f.errors)):i.push(f)}}}catch(f){r={error:f}}finally{try{m&&!m.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}}if(i)throw new wo(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)bs(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&_o(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&_o(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),vs=nr.EMPTY;function ys(e){return e instanceof nr||e&&"closed"in e&&qe(e.remove)&&qe(e.add)&&qe(e.unsubscribe)}function bs(e){qe(e)?e():e.unsubscribe()}var pd={Promise:void 0},md={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,tr([e,t],bo(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function gd(e){md.setTimeout(function(){throw e})}function ws(){}function rr(e){e()}var _s=function(e){kn(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,ys(n)&&n.add(r)):r.destination=bd,r}return t.create=function(n,r,o){return new xo(n,r,o)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(nr),vd=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){or(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){or(r)}else or(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){or(n)}},e}(),xo=function(e){kn(t,e);function t(n,r,o){var i=e.call(this)||this,s;return qe(n)||!n?s={next:n??void 0,error:r??void 0,complete:o??void 0}:s=n,i.destination=new vd(s),i}return t}(_s);function or(e){gd(e)}function yd(e){throw e}var bd={closed:!0,next:ws,error:yd,complete:ws},wd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function _d(e){return e}function xd(e){return e.length===0?_d:e.length===1?e[0]:function(n){return e.reduce(function(r,o){return o(r)},n)}}var xs=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var o=this,i=Ed(t)?t:new xo(t,n,r);return rr(function(){var s=o,a=s.operator,c=s.source;i.add(a?a.call(i,c):c?o._subscribe(i):o._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=Cs(n),new n(function(o,i){var s=new xo({next:function(a){try{t(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});r.subscribe(s)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[wd]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return xd(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=Cs(t),new t(function(r,o){var i;n.subscribe(function(s){return i=s},function(s){return o(s)},function(){return r(i)})})},e.create=function(t){return new e(t)},e}();function Cs(e){var t;return(t=e??pd.Promise)!==null&&t!==void 0?t:Promise}function Cd(e){return e&&qe(e.next)&&qe(e.error)&&qe(e.complete)}function Ed(e){return e&&e instanceof _s||Cd(e)&&ys(e)}var Sd=gs(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Es=function(e){kn(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new Ss(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new Sd},t.prototype.next=function(n){var r=this;rr(function(){var o,i;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=yo(r.currentObservers),a=s.next();!a.done;a=s.next()){var c=a.value;c.next(n)}}catch(l){o={error:l}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}}})},t.prototype.error=function(n){var r=this;rr(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var o=r.observers;o.length;)o.shift().error(n)}})},t.prototype.complete=function(){var n=this;rr(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,o=this,i=o.hasError,s=o.isStopped,a=o.observers;return i||s?vs:(this.currentObservers=null,a.push(n),new nr(function(){r.currentObservers=null,_o(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,o=r.hasError,i=r.thrownError,s=r.isStopped;o?n.error(i):s&&n.complete()},t.prototype.asObservable=function(){var n=new xs;return n.source=this,n},t.create=function(n,r){return new Ss(n,r)},t}(xs),Ss=function(e){kn(t,e);function t(n,r){var o=e.call(this)||this;return o.destination=n,o.source=r,o}return t.prototype.next=function(n){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,n)},t.prototype.error=function(n){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&o!==void 0?o:vs},t}(Es),Td=function(e){kn(t,e);function t(n){var r=e.call(this)||this;return r._value=n,r}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(n){var r=e.prototype._subscribe.call(this,n);return!r.closed&&n.next(this._value),r},t.prototype.getValue=function(){var n=this,r=n.hasError,o=n.thrownError,i=n._value;if(r)throw o;return this._throwIfClosed(),i},t.prototype.next=function(n){e.prototype.next.call(this,this._value=n)},t}(Es);const bv=E("usePlatformCustomization",e=>{const{fontsLoaded:t}=ps(e.fonts);ld(e.styleSheet);const n=()=>{const r=new Td(!0);window[lo]=r};Q(()=>{t&&window[lo].next(!1)},[t]),Q(()=>{n()},[])}),wv=E("usePAECustomizationsLoadingState",()=>{const e=window[lo];return Ji(e,e.getValue()??void 0)}),Co="theme",Ts=()=>document.documentElement.dataset[Co]==="dark"?"dark":"light",_v=E("useGetPlatformTheme",()=>{const[e,t]=L(Ts());return Q(()=>{const n=document.documentElement,r=()=>t(Ts),o=new MutationObserver(i=>{for(const s of i)s.type==="attributes"&&s.attributeName===`data-${Co}`&&r()});return o.observe(n,{attributes:!0,attributeFilter:[`data-${Co}`]}),r(),()=>{o.disconnect()}},[]),e}),xv=E("platformHaveAnyCustomization",e=>e!==void 0),Cv=E("isPlatformCustomizationCompleted",e=>e!==!0);let Ad={data:""},Pd=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Ad,Rd=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Od=/\/\*[^]*?\*\/| +/g,As=/\n+/g,at=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+s+";":r+=i[1]=="f"?at(s,i):i+"{"+at(s,i[1]=="k"?"":t)+"}":typeof s=="object"?r+=at(s,t?t.replace(/([^,])+/g,a=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,a):a?a+" "+c:c)):i):s!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=at.p?at.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Qe={},Ps=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Ps(e[n]);return t}return e},kd=(e,t,n,r,o)=>{let i=Ps(e),s=Qe[i]||(Qe[i]=(c=>{let l=0,d=11;for(;l<c.length;)d=101*d+c.charCodeAt(l++)>>>0;return"go"+d})(i));if(!Qe[s]){let c=i!==e?e:(l=>{let d,p,h=[{}];for(;d=Rd.exec(l.replace(Od,""));)d[4]?h.shift():d[3]?(p=d[3].replace(As," ").trim(),h.unshift(h[0][p]=h[0][p]||{})):h[0][d[1]]=d[2].replace(As," ").trim();return h[0]})(e);Qe[s]=at(o?{["@keyframes "+s]:c}:c,n?"":"."+s)}let a=n&&Qe.g?Qe.g:null;return n&&(Qe.g=Qe[s]),((c,l,d,p)=>{p?l.data=l.data.replace(p,c):l.data.indexOf(c)===-1&&(l.data=d?c+l.data:l.data+c)})(Qe[s],t,r,a),s},jd=(e,t,n)=>e.reduce((r,o,i)=>{let s=t[i];if(s&&s.call){let a=s(n),c=a&&a.props&&a.props.className||/^go/.test(a)&&a;s=c?"."+c:a&&typeof a=="object"?a.props?"":at(a,""):a===!1?"":a}return r+o+(s??"")},"");function ir(e){let t=this||{},n=e.call?e(t.p):e;return kd(n.unshift?n.raw?jd(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,Pd(t.target),t.g,t.o,t.k)}let Rs,Eo,So;ir.bind({g:1});let Ye=ir.bind({k:1});function Dd(e,t,n,r){at.p=t,Rs=e,Eo=n,So=r}function ct(e,t){let n=this||{};return function(){let r=arguments;function o(i,s){let a=Object.assign({},i),c=a.className||o.className;n.p=Object.assign({theme:Eo&&Eo()},a),n.o=/ *go\d+/.test(c),a.className=ir.apply(n,r)+(c?" "+c:"");let l=e;return e[0]&&(l=a.as||e,delete a.as),So&&l[0]&&So(a),Rs(l,a)}return o}}var Ld=e=>typeof e=="function",sr=(e,t)=>Ld(e)?e(t):e,Id=(()=>{let e=0;return()=>(++e).toString()})(),Os=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Nd=20,ar=new Map,$d=1e3,ks=e=>{if(ar.has(e))return;let t=setTimeout(()=>{ar.delete(e),Tt({type:4,toastId:e})},$d);ar.set(e,t)},Md=e=>{let t=ar.get(e);t&&clearTimeout(t)},To=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Nd)};case 1:return t.toast.id&&Md(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:n}=t;return e.toasts.find(i=>i.id===n.id)?To(e,{type:1,toast:n}):To(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?ks(r):e.toasts.forEach(i=>{ks(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===r||r===void 0?{...i,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(i=>({...i,pauseDuration:i.pauseDuration+o}))}}},cr=[],lr={toasts:[],pausedAt:void 0},Tt=e=>{lr=To(lr,e),cr.forEach(t=>{t(lr)})},Fd={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Bd=(e={})=>{let[t,n]=L(lr);Q(()=>(cr.push(n),()=>{let o=cr.indexOf(n);o>-1&&cr.splice(o,1)}),[t]);let r=t.toasts.map(o=>{var i,s;return{...e,...e[o.type],...o,duration:o.duration||((i=e[o.type])==null?void 0:i.duration)||(e==null?void 0:e.duration)||Fd[o.type],style:{...e.style,...(s=e[o.type])==null?void 0:s.style,...o.style}}});return{...t,toasts:r}},Ud=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||Id()}),jn=e=>(t,n)=>{let r=Ud(t,e,n);return Tt({type:2,toast:r}),r.id},Ce=(e,t)=>jn("blank")(e,t);Ce.error=jn("error"),Ce.success=jn("success"),Ce.loading=jn("loading"),Ce.custom=jn("custom"),Ce.dismiss=e=>{Tt({type:3,toastId:e})},Ce.remove=e=>Tt({type:4,toastId:e}),Ce.promise=(e,t,n)=>{let r=Ce.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(o=>(Ce.success(sr(t.success,o),{id:r,...n,...n==null?void 0:n.success}),o)).catch(o=>{Ce.error(sr(t.error,o),{id:r,...n,...n==null?void 0:n.error})}),e};var zd=(e,t)=>{Tt({type:1,toast:{id:e,height:t}})},Hd=()=>{Tt({type:5,time:Date.now()})},Wd=e=>{let{toasts:t,pausedAt:n}=Bd(e);Q(()=>{if(n)return;let i=Date.now(),s=t.map(a=>{if(a.duration===1/0)return;let c=(a.duration||0)+a.pauseDuration-(i-a.createdAt);if(c<0){a.visible&&Ce.dismiss(a.id);return}return setTimeout(()=>Ce.dismiss(a.id),c)});return()=>{s.forEach(a=>a&&clearTimeout(a))}},[t,n]);let r=te(()=>{n&&Tt({type:6,time:Date.now()})},[n]),o=te((i,s)=>{let{reverseOrder:a=!1,gutter:c=8,defaultPosition:l}=s||{},d=t.filter(m=>(m.position||l)===(i.position||l)&&m.height),p=d.findIndex(m=>m.id===i.id),h=d.filter((m,w)=>w<p&&m.visible).length;return d.filter(m=>m.visible).slice(...a?[h+1]:[0,h]).reduce((m,w)=>m+(w.height||0)+c,0)},[t]);return{toasts:t,handlers:{updateHeight:zd,startPause:Hd,endPause:r,calculateOffset:o}}},Vd=Ye`
33
+ `):"",this.name="UnsubscriptionError",this.errors=n}});function wo(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var tr=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,o,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=vo(s),c=a.next();!c.done;c=a.next()){var l=c.value;l.remove(this)}}catch(f){t={error:f}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else s.remove(this);var d=this.initialTeardown;if(qe(d))try{d()}catch(f){i=f instanceof bo?f.errors:[f]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var h=vo(p),m=h.next();!m.done;m=h.next()){var w=m.value;try{ms(w)}catch(f){i=i??[],f instanceof bo?i=er(er([],yo(i)),yo(f.errors)):i.push(f)}}}catch(f){r={error:f}}finally{try{m&&!m.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}}if(i)throw new bo(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)ms(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&wo(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&wo(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),hs=tr.EMPTY;function ps(e){return e instanceof tr||e&&"closed"in e&&qe(e.remove)&&qe(e.add)&&qe(e.unsubscribe)}function ms(e){qe(e)?e():e.unsubscribe()}var nd={Promise:void 0},rd={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,er([e,t],yo(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function od(e){rd.setTimeout(function(){throw e})}function gs(){}function nr(e){e()}var vs=function(e){Rn(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,ps(n)&&n.add(r)):r.destination=ad,r}return t.create=function(n,r,o){return new _o(n,r,o)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(tr),id=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){rr(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){rr(r)}else rr(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){rr(n)}},e}(),_o=function(e){Rn(t,e);function t(n,r,o){var i=e.call(this)||this,s;return qe(n)||!n?s={next:n??void 0,error:r??void 0,complete:o??void 0}:s=n,i.destination=new id(s),i}return t}(vs);function rr(e){od(e)}function sd(e){throw e}var ad={closed:!0,next:gs,error:sd,complete:gs},cd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ld(e){return e}function ud(e){return e.length===0?ld:e.length===1?e[0]:function(n){return e.reduce(function(r,o){return o(r)},n)}}var ys=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var o=this,i=fd(t)?t:new _o(t,n,r);return nr(function(){var s=o,a=s.operator,c=s.source;i.add(a?a.call(i,c):c?o._subscribe(i):o._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=bs(n),new n(function(o,i){var s=new _o({next:function(a){try{t(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});r.subscribe(s)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[cd]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return ud(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=bs(t),new t(function(r,o){var i;n.subscribe(function(s){return i=s},function(s){return o(s)},function(){return r(i)})})},e.create=function(t){return new e(t)},e}();function bs(e){var t;return(t=e??nd.Promise)!==null&&t!==void 0?t:Promise}function dd(e){return e&&qe(e.next)&&qe(e.error)&&qe(e.complete)}function fd(e){return e&&e instanceof vs||dd(e)&&ps(e)}var hd=fs(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ws=function(e){Rn(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new _s(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new hd},t.prototype.next=function(n){var r=this;nr(function(){var o,i;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=vo(r.currentObservers),a=s.next();!a.done;a=s.next()){var c=a.value;c.next(n)}}catch(l){o={error:l}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}}})},t.prototype.error=function(n){var r=this;nr(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var o=r.observers;o.length;)o.shift().error(n)}})},t.prototype.complete=function(){var n=this;nr(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,o=this,i=o.hasError,s=o.isStopped,a=o.observers;return i||s?hs:(this.currentObservers=null,a.push(n),new tr(function(){r.currentObservers=null,wo(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,o=r.hasError,i=r.thrownError,s=r.isStopped;o?n.error(i):s&&n.complete()},t.prototype.asObservable=function(){var n=new ys;return n.source=this,n},t.create=function(n,r){return new _s(n,r)},t}(ys),_s=function(e){Rn(t,e);function t(n,r){var o=e.call(this)||this;return o.destination=n,o.source=r,o}return t.prototype.next=function(n){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,n)},t.prototype.error=function(n){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&o!==void 0?o:hs},t}(ws),pd=function(e){Rn(t,e);function t(n){var r=e.call(this)||this;return r._value=n,r}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(n){var r=e.prototype._subscribe.call(this,n);return!r.closed&&n.next(this._value),r},t.prototype.getValue=function(){var n=this,r=n.hasError,o=n.thrownError,i=n._value;if(r)throw o;return this._throwIfClosed(),i},t.prototype.next=function(n){e.prototype.next.call(this,this._value=n)},t}(ws);const sv=S("usePlatformCustomization",e=>{const{fontsLoaded:t}=us(e.fonts);Zu(e.styleSheet);const n=()=>{const r=new pd(!0);window[co]=r};Q(()=>{t&&window[co].next(!1)},[t]),Q(()=>{n()},[])}),av=S("usePAECustomizationsLoadingState",()=>{const e=window[co];return Xi(e,e.getValue()??void 0)}),xo="theme",xs=()=>document.documentElement.dataset[xo]==="dark"?"dark":"light",cv=S("useGetPlatformTheme",()=>{const[e,t]=L(xs());return Q(()=>{const n=document.documentElement,r=()=>t(xs),o=new MutationObserver(i=>{for(const s of i)s.type==="attributes"&&s.attributeName===`data-${xo}`&&r()});return o.observe(n,{attributes:!0,attributeFilter:[`data-${xo}`]}),r(),()=>{o.disconnect()}},[]),e}),lv=S("platformHaveAnyCustomization",e=>e!==void 0),uv=S("isPlatformCustomizationCompleted",e=>e!==!0);let md={data:""},gd=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||md,vd=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,yd=/\/\*[^]*?\*\/| +/g,Cs=/\n+/g,at=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+s+";":r+=i[1]=="f"?at(s,i):i+"{"+at(s,i[1]=="k"?"":t)+"}":typeof s=="object"?r+=at(s,t?t.replace(/([^,])+/g,a=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,a):a?a+" "+c:c)):i):s!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=at.p?at.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Qe={},Es=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Es(e[n]);return t}return e},bd=(e,t,n,r,o)=>{let i=Es(e),s=Qe[i]||(Qe[i]=(c=>{let l=0,d=11;for(;l<c.length;)d=101*d+c.charCodeAt(l++)>>>0;return"go"+d})(i));if(!Qe[s]){let c=i!==e?e:(l=>{let d,p,h=[{}];for(;d=vd.exec(l.replace(yd,""));)d[4]?h.shift():d[3]?(p=d[3].replace(Cs," ").trim(),h.unshift(h[0][p]=h[0][p]||{})):h[0][d[1]]=d[2].replace(Cs," ").trim();return h[0]})(e);Qe[s]=at(o?{["@keyframes "+s]:c}:c,n?"":"."+s)}let a=n&&Qe.g?Qe.g:null;return n&&(Qe.g=Qe[s]),((c,l,d,p)=>{p?l.data=l.data.replace(p,c):l.data.indexOf(c)===-1&&(l.data=d?c+l.data:l.data+c)})(Qe[s],t,r,a),s},wd=(e,t,n)=>e.reduce((r,o,i)=>{let s=t[i];if(s&&s.call){let a=s(n),c=a&&a.props&&a.props.className||/^go/.test(a)&&a;s=c?"."+c:a&&typeof a=="object"?a.props?"":at(a,""):a===!1?"":a}return r+o+(s??"")},"");function or(e){let t=this||{},n=e.call?e(t.p):e;return bd(n.unshift?n.raw?wd(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,gd(t.target),t.g,t.o,t.k)}let Ss,Co,Eo;or.bind({g:1});let Ye=or.bind({k:1});function _d(e,t,n,r){at.p=t,Ss=e,Co=n,Eo=r}function ct(e,t){let n=this||{};return function(){let r=arguments;function o(i,s){let a=Object.assign({},i),c=a.className||o.className;n.p=Object.assign({theme:Co&&Co()},a),n.o=/ *go\d+/.test(c),a.className=or.apply(n,r)+(c?" "+c:"");let l=e;return e[0]&&(l=a.as||e,delete a.as),Eo&&l[0]&&Eo(a),Ss(l,a)}return o}}var xd=e=>typeof e=="function",ir=(e,t)=>xd(e)?e(t):e,Cd=(()=>{let e=0;return()=>(++e).toString()})(),Ts=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Ed=20,sr=new Map,Sd=1e3,As=e=>{if(sr.has(e))return;let t=setTimeout(()=>{sr.delete(e),Tt({type:4,toastId:e})},Sd);sr.set(e,t)},Td=e=>{let t=sr.get(e);t&&clearTimeout(t)},So=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Ed)};case 1:return t.toast.id&&Td(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:n}=t;return e.toasts.find(i=>i.id===n.id)?So(e,{type:1,toast:n}):So(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?As(r):e.toasts.forEach(i=>{As(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===r||r===void 0?{...i,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(i=>({...i,pauseDuration:i.pauseDuration+o}))}}},ar=[],cr={toasts:[],pausedAt:void 0},Tt=e=>{cr=So(cr,e),ar.forEach(t=>{t(cr)})},Ad={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Pd=(e={})=>{let[t,n]=L(cr);Q(()=>(ar.push(n),()=>{let o=ar.indexOf(n);o>-1&&ar.splice(o,1)}),[t]);let r=t.toasts.map(o=>{var i,s;return{...e,...e[o.type],...o,duration:o.duration||((i=e[o.type])==null?void 0:i.duration)||(e==null?void 0:e.duration)||Ad[o.type],style:{...e.style,...(s=e[o.type])==null?void 0:s.style,...o.style}}});return{...t,toasts:r}},Rd=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||Cd()}),On=e=>(t,n)=>{let r=Rd(t,e,n);return Tt({type:2,toast:r}),r.id},Ce=(e,t)=>On("blank")(e,t);Ce.error=On("error"),Ce.success=On("success"),Ce.loading=On("loading"),Ce.custom=On("custom"),Ce.dismiss=e=>{Tt({type:3,toastId:e})},Ce.remove=e=>Tt({type:4,toastId:e}),Ce.promise=(e,t,n)=>{let r=Ce.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(o=>(Ce.success(ir(t.success,o),{id:r,...n,...n==null?void 0:n.success}),o)).catch(o=>{Ce.error(ir(t.error,o),{id:r,...n,...n==null?void 0:n.error})}),e};var Od=(e,t)=>{Tt({type:1,toast:{id:e,height:t}})},kd=()=>{Tt({type:5,time:Date.now()})},jd=e=>{let{toasts:t,pausedAt:n}=Pd(e);Q(()=>{if(n)return;let i=Date.now(),s=t.map(a=>{if(a.duration===1/0)return;let c=(a.duration||0)+a.pauseDuration-(i-a.createdAt);if(c<0){a.visible&&Ce.dismiss(a.id);return}return setTimeout(()=>Ce.dismiss(a.id),c)});return()=>{s.forEach(a=>a&&clearTimeout(a))}},[t,n]);let r=ee(()=>{n&&Tt({type:6,time:Date.now()})},[n]),o=ee((i,s)=>{let{reverseOrder:a=!1,gutter:c=8,defaultPosition:l}=s||{},d=t.filter(m=>(m.position||l)===(i.position||l)&&m.height),p=d.findIndex(m=>m.id===i.id),h=d.filter((m,w)=>w<p&&m.visible).length;return d.filter(m=>m.visible).slice(...a?[h+1]:[0,h]).reduce((m,w)=>m+(w.height||0)+c,0)},[t]);return{toasts:t,handlers:{updateHeight:Od,startPause:kd,endPause:r,calculateOffset:o}}},Dd=Ye`
59
34
  from {
60
35
  transform: scale(0) rotate(45deg);
61
36
  opacity: 0;
@@ -63,7 +38,7 @@ from {
63
38
  to {
64
39
  transform: scale(1) rotate(45deg);
65
40
  opacity: 1;
66
- }`,Gd=Ye`
41
+ }`,Ld=Ye`
67
42
  from {
68
43
  transform: scale(0);
69
44
  opacity: 0;
@@ -71,7 +46,7 @@ from {
71
46
  to {
72
47
  transform: scale(1);
73
48
  opacity: 1;
74
- }`,qd=Ye`
49
+ }`,Id=Ye`
75
50
  from {
76
51
  transform: scale(0) rotate(90deg);
77
52
  opacity: 0;
@@ -79,7 +54,7 @@ from {
79
54
  to {
80
55
  transform: scale(1) rotate(90deg);
81
56
  opacity: 1;
82
- }`,Qd=ct("div")`
57
+ }`,Nd=ct("div")`
83
58
  width: 20px;
84
59
  opacity: 0;
85
60
  height: 20px;
@@ -88,14 +63,14 @@ to {
88
63
  position: relative;
89
64
  transform: rotate(45deg);
90
65
 
91
- animation: ${Vd} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
66
+ animation: ${Dd} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
92
67
  forwards;
93
68
  animation-delay: 100ms;
94
69
 
95
70
  &:after,
96
71
  &:before {
97
72
  content: '';
98
- animation: ${Gd} 0.15s ease-out forwards;
73
+ animation: ${Ld} 0.15s ease-out forwards;
99
74
  animation-delay: 150ms;
100
75
  position: absolute;
101
76
  border-radius: 3px;
@@ -108,18 +83,18 @@ to {
108
83
  }
109
84
 
110
85
  &:before {
111
- animation: ${qd} 0.15s ease-out forwards;
86
+ animation: ${Id} 0.15s ease-out forwards;
112
87
  animation-delay: 180ms;
113
88
  transform: rotate(90deg);
114
89
  }
115
- `,Yd=Ye`
90
+ `,$d=Ye`
116
91
  from {
117
92
  transform: rotate(0deg);
118
93
  }
119
94
  to {
120
95
  transform: rotate(360deg);
121
96
  }
122
- `,Kd=ct("div")`
97
+ `,Md=ct("div")`
123
98
  width: 12px;
124
99
  height: 12px;
125
100
  box-sizing: border-box;
@@ -127,8 +102,8 @@ to {
127
102
  border-radius: 100%;
128
103
  border-color: ${e=>e.secondary||"#e0e0e0"};
129
104
  border-right-color: ${e=>e.primary||"#616161"};
130
- animation: ${Yd} 1s linear infinite;
131
- `,Zd=Ye`
105
+ animation: ${$d} 1s linear infinite;
106
+ `,Fd=Ye`
132
107
  from {
133
108
  transform: scale(0) rotate(45deg);
134
109
  opacity: 0;
@@ -136,7 +111,7 @@ from {
136
111
  to {
137
112
  transform: scale(1) rotate(45deg);
138
113
  opacity: 1;
139
- }`,Xd=Ye`
114
+ }`,Bd=Ye`
140
115
  0% {
141
116
  height: 0;
142
117
  width: 0;
@@ -150,7 +125,7 @@ to {
150
125
  100% {
151
126
  opacity: 1;
152
127
  height: 10px;
153
- }`,Jd=ct("div")`
128
+ }`,Ud=ct("div")`
154
129
  width: 20px;
155
130
  opacity: 0;
156
131
  height: 20px;
@@ -159,13 +134,13 @@ to {
159
134
  position: relative;
160
135
  transform: rotate(45deg);
161
136
 
162
- animation: ${Zd} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
137
+ animation: ${Fd} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
163
138
  forwards;
164
139
  animation-delay: 100ms;
165
140
  &:after {
166
141
  content: '';
167
142
  box-sizing: border-box;
168
- animation: ${Xd} 0.2s ease-out forwards;
143
+ animation: ${Bd} 0.2s ease-out forwards;
169
144
  opacity: 0;
170
145
  animation-delay: 200ms;
171
146
  position: absolute;
@@ -177,16 +152,16 @@ to {
177
152
  height: 10px;
178
153
  width: 6px;
179
154
  }
180
- `,ef=ct("div")`
155
+ `,zd=ct("div")`
181
156
  position: absolute;
182
- `,tf=ct("div")`
157
+ `,Hd=ct("div")`
183
158
  position: relative;
184
159
  display: flex;
185
160
  justify-content: center;
186
161
  align-items: center;
187
162
  min-width: 20px;
188
163
  min-height: 20px;
189
- `,nf=Ye`
164
+ `,Wd=Ye`
190
165
  from {
191
166
  transform: scale(0.6);
192
167
  opacity: 0.4;
@@ -194,20 +169,20 @@ from {
194
169
  to {
195
170
  transform: scale(1);
196
171
  opacity: 1;
197
- }`,rf=ct("div")`
172
+ }`,Vd=ct("div")`
198
173
  position: relative;
199
174
  transform: scale(0.6);
200
175
  opacity: 0.4;
201
176
  min-width: 20px;
202
- animation: ${nf} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
177
+ animation: ${Wd} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
203
178
  forwards;
204
- `,of=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?g.createElement(rf,null,t):t:n==="blank"?null:g.createElement(tf,null,g.createElement(Kd,{...r}),n!=="loading"&&g.createElement(ef,null,n==="error"?g.createElement(Qd,{...r}):g.createElement(Jd,{...r})))},sf=e=>`
179
+ `,Gd=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?g.createElement(Vd,null,t):t:n==="blank"?null:g.createElement(Hd,null,g.createElement(Md,{...r}),n!=="loading"&&g.createElement(zd,null,n==="error"?g.createElement(Nd,{...r}):g.createElement(Ud,{...r})))},qd=e=>`
205
180
  0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
206
181
  100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
207
- `,af=e=>`
182
+ `,Qd=e=>`
208
183
  0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
209
184
  100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
210
- `,cf="0%{opacity:0;} 100%{opacity:1;}",lf="0%{opacity:1;} 100%{opacity:0;}",uf=ct("div")`
185
+ `,Yd="0%{opacity:0;} 100%{opacity:1;}",Kd="0%{opacity:1;} 100%{opacity:0;}",Zd=ct("div")`
211
186
  display: flex;
212
187
  align-items: center;
213
188
  background: #fff;
@@ -219,20 +194,20 @@ to {
219
194
  pointer-events: auto;
220
195
  padding: 8px 10px;
221
196
  border-radius: 8px;
222
- `,df=ct("div")`
197
+ `,Xd=ct("div")`
223
198
  display: flex;
224
199
  justify-content: center;
225
200
  margin: 4px 10px;
226
201
  color: inherit;
227
202
  flex: 1 1 auto;
228
203
  white-space: pre-line;
229
- `,ff=(e,t)=>{let n=e.includes("top")?1:-1,[r,o]=Os()?[cf,lf]:[sf(n),af(n)];return{animation:t?`${Ye(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Ye(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},hf=g.memo(({toast:e,position:t,style:n,children:r})=>{let o=e.height?ff(e.position||t||"top-center",e.visible):{opacity:0},i=g.createElement(of,{toast:e}),s=g.createElement(df,{...e.ariaProps},sr(e.message,e));return g.createElement(uf,{className:e.className,style:{...o,...n,...e.style}},typeof r=="function"?r({icon:i,message:s}):g.createElement(g.Fragment,null,i,s))});Dd(g.createElement);var pf=({id:e,className:t,style:n,onHeightUpdate:r,children:o})=>{let i=g.useCallback(s=>{if(s){let a=()=>{let c=s.getBoundingClientRect().height;r(e,c)};a(),new MutationObserver(a).observe(s,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return g.createElement("div",{ref:i,className:t,style:n},o)},mf=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Os()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}},gf=ir`
204
+ `,Jd=(e,t)=>{let n=e.includes("top")?1:-1,[r,o]=Ts()?[Yd,Kd]:[qd(n),Qd(n)];return{animation:t?`${Ye(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Ye(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},ef=g.memo(({toast:e,position:t,style:n,children:r})=>{let o=e.height?Jd(e.position||t||"top-center",e.visible):{opacity:0},i=g.createElement(Gd,{toast:e}),s=g.createElement(Xd,{...e.ariaProps},ir(e.message,e));return g.createElement(Zd,{className:e.className,style:{...o,...n,...e.style}},typeof r=="function"?r({icon:i,message:s}):g.createElement(g.Fragment,null,i,s))});_d(g.createElement);var tf=({id:e,className:t,style:n,onHeightUpdate:r,children:o})=>{let i=g.useCallback(s=>{if(s){let a=()=>{let c=s.getBoundingClientRect().height;r(e,c)};a(),new MutationObserver(a).observe(s,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return g.createElement("div",{ref:i,className:t,style:n},o)},nf=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Ts()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}},rf=or`
230
205
  z-index: 9999;
231
206
  > * {
232
207
  pointer-events: auto;
233
208
  }
234
- `,ur=16,vf=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,containerStyle:i,containerClassName:s})=>{let{toasts:a,handlers:c}=Wd(n);return g.createElement("div",{style:{position:"fixed",zIndex:9999,top:ur,left:ur,right:ur,bottom:ur,pointerEvents:"none",...i},className:s,onMouseEnter:c.startPause,onMouseLeave:c.endPause},a.map(l=>{let d=l.position||t,p=c.calculateOffset(l,{reverseOrder:e,gutter:r,defaultPosition:t}),h=mf(d,p);return g.createElement(pf,{id:l.id,key:l.id,onHeightUpdate:c.updateHeight,className:l.visible?gf:"",style:h},l.type==="custom"?sr(l.message,l):o?o(l):g.createElement(hf,{toast:l,position:d}))}))},js=Ce;const Ds=E("useNotifications",()=>({notify:te((t,n,r)=>{n==="warning"||n==="info"?js(t,{icon:n==="warning"?"⚠️":"ℹ️",style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}}):js[n](t,{style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}}),r&&console.error(r)},[])}));var Yt=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},At=typeof window>"u"||"Deno"in globalThis;function fe(){}function yf(e,t){return typeof e=="function"?e(t):e}function Ao(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ls(e,t){return Math.max(e+(t||0)-Date.now(),0)}function lt(e,t){return typeof e=="function"?e(t):e}function Oe(e,t){return typeof e=="function"?e(t):e}function Is(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==Po(s,t.options))return!1}else if(!Dn(t.queryKey,s))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function Ns(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Pt(t.options.mutationKey)!==Pt(i))return!1}else if(!Dn(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Po(e,t){return((t==null?void 0:t.queryKeyHashFn)||Pt)(e)}function Pt(e){return JSON.stringify(e,(t,n)=>Oo(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Dn(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Dn(e[n],t[n])):!1}function Ro(e,t){if(e===t)return e;const n=$s(e)&&$s(t);if(n||Oo(e)&&Oo(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,a=n?[]:{};let c=0;for(let l=0;l<s;l++){const d=n?l:i[l];(!n&&r.includes(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,c++):(a[d]=Ro(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&c++)}return o===s&&c===o?e:a}return t}function dr(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function $s(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Oo(e){if(!Ms(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Ms(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Ms(e){return Object.prototype.toString.call(e)==="[object Object]"}function bf(e){return new Promise(t=>{setTimeout(t,e)})}function ko(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){try{return Ro(e,t)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`),r}return Ro(e,t)}return t}function wf(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function _f(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var fr=Symbol();function Fs(e,t){return e.queryFn===fr&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===fr?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Bs(e,t){return typeof e=="function"?e(...t):!!e}var xf=(Hl=class extends Yt{constructor(){super();D(this,Lt);D(this,pt);D(this,ln);O(this,ln,t=>{if(!At&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){b(this,pt)||this.setEventListener(b(this,ln))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,pt))==null||t.call(this),O(this,pt,void 0))}setEventListener(t){var n;O(this,ln,t),(n=b(this,pt))==null||n.call(this),O(this,pt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){b(this,Lt)!==t&&(O(this,Lt,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof b(this,Lt)=="boolean"?b(this,Lt):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Lt=new WeakMap,pt=new WeakMap,ln=new WeakMap,Hl),jo=new xf,Cf=(Wl=class extends Yt{constructor(){super();D(this,un,!0);D(this,mt);D(this,dn);O(this,dn,t=>{if(!At&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){b(this,mt)||this.setEventListener(b(this,dn))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,mt))==null||t.call(this),O(this,mt,void 0))}setEventListener(t){var n;O(this,dn,t),(n=b(this,mt))==null||n.call(this),O(this,mt,t(this.setOnline.bind(this)))}setOnline(t){b(this,un)!==t&&(O(this,un,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return b(this,un)}},un=new WeakMap,mt=new WeakMap,dn=new WeakMap,Wl),hr=new Cf;function Do(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function Ef(e){return Math.min(1e3*2**e,3e4)}function Us(e){return(e??"online")==="online"?hr.isOnline():!0}var zs=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Lo(e){return e instanceof zs}function Hs(e){let t=!1,n=0,r=!1,o;const i=Do(),s=f=>{var v;r||(h(new zs(f)),(v=e.abort)==null||v.call(e))},a=()=>{t=!0},c=()=>{t=!1},l=()=>jo.isFocused()&&(e.networkMode==="always"||hr.isOnline())&&e.canRun(),d=()=>Us(e.networkMode)&&e.canRun(),p=f=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,f),o==null||o(),i.resolve(f))},h=f=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,f),o==null||o(),i.reject(f))},m=()=>new Promise(f=>{var v;o=_=>{(r||l())&&f(_)},(v=e.onPause)==null||v.call(e)}).then(()=>{var f;o=void 0,r||(f=e.onContinue)==null||f.call(e)}),w=()=>{if(r)return;let f;const v=n===0?e.initialPromise:void 0;try{f=v??e.fn()}catch(_){f=Promise.reject(_)}Promise.resolve(f).then(p).catch(_=>{var R;if(r)return;const x=e.retry??(At?0:3),C=e.retryDelay??Ef,S=typeof C=="function"?C(n,_):C,T=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,_);if(t||!T){h(_);return}n++,(R=e.onFail)==null||R.call(e,n,_),bf(S).then(()=>l()?void 0:m()).then(()=>{t?h(_):w()})})};return{promise:i,cancel:s,continue:()=>(o==null||o(),i),cancelRetry:a,continueRetry:c,canStart:d,start:()=>(d()?w():m().then(w),i)}}var Sf=e=>setTimeout(e,0);function Tf(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=Sf;const i=a=>{t?e.push(a):o(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||s()}return c},batchCalls:a=>(...c)=>{i(()=>{a(...c)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var ae=Tf(),Ws=(Vl=class{constructor(){D(this,It)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ao(this.gcTime)&&O(this,It,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(At?1/0:5*60*1e3))}clearGcTimeout(){b(this,It)&&(clearTimeout(b(this,It)),O(this,It,void 0))}},It=new WeakMap,Vl),Af=(Gl=class extends Ws{constructor(t){super();D(this,Ne);D(this,fn);D(this,hn);D(this,Pe);D(this,Nt);D(this,de);D(this,zn);D(this,$t);O(this,$t,!1),O(this,zn,t.defaultOptions),this.setOptions(t.options),this.observers=[],O(this,Nt,t.client),O(this,Pe,b(this,Nt).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,O(this,fn,Pf(this.options)),this.state=t.state??b(this,fn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=b(this,de))==null?void 0:t.promise}setOptions(t){this.options={...b(this,zn),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&b(this,Pe).remove(this)}setData(t,n){const r=ko(this.state.data,t,this.options);return F(this,Ne,ot).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){F(this,Ne,ot).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=b(this,de))==null?void 0:r.promise;return(o=b(this,de))==null||o.cancel(t),n?n.then(fe).catch(fe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(b(this,fn))}isActive(){return this.observers.some(t=>Oe(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>lt(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Ls(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=b(this,de))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=b(this,de))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),b(this,Pe).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(b(this,de)&&(b(this,$t)?b(this,de).cancel({revert:!0}):b(this,de).cancelRetry()),this.scheduleGc()),b(this,Pe).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||F(this,Ne,ot).call(this,{type:"invalidate"})}fetch(t,n){var l,d,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(b(this,de))return b(this,de).continueRetry(),b(this,de).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(m=>m.options.queryFn);h&&this.setOptions(h.options)}Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']");const r=new AbortController,o=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(O(this,$t,!0),r.signal)})},i=()=>{const h=Fs(this.options,n),w=(()=>{const f={client:b(this,Nt),queryKey:this.queryKey,meta:this.meta};return o(f),f})();return O(this,$t,!1),this.options.persister?this.options.persister(h,w,this):h(w)},a=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:b(this,Nt),state:this.state,fetchFn:i};return o(h),h})();(l=this.options.behavior)==null||l.onFetch(a,this),O(this,hn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&F(this,Ne,ot).call(this,{type:"fetch",meta:(p=a.fetchOptions)==null?void 0:p.meta});const c=h=>{var m,w,f,v;Lo(h)&&h.silent||F(this,Ne,ot).call(this,{type:"error",error:h}),Lo(h)||((w=(m=b(this,Pe).config).onError)==null||w.call(m,h,this),(v=(f=b(this,Pe).config).onSettled)==null||v.call(f,this.state.data,h,this)),this.scheduleGc()};return O(this,de,Hs({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var m,w,f,v;if(h===void 0){console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(_){c(_);return}(w=(m=b(this,Pe).config).onSuccess)==null||w.call(m,h,this),(v=(f=b(this,Pe).config).onSettled)==null||v.call(f,h,this.state.error,this),this.scheduleGc()},onError:c,onFail:(h,m)=>{F(this,Ne,ot).call(this,{type:"failed",failureCount:h,error:m})},onPause:()=>{F(this,Ne,ot).call(this,{type:"pause"})},onContinue:()=>{F(this,Ne,ot).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),b(this,de).start()}},fn=new WeakMap,hn=new WeakMap,Pe=new WeakMap,Nt=new WeakMap,de=new WeakMap,zn=new WeakMap,$t=new WeakMap,Ne=new WeakSet,ot=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Vs(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return Lo(o)&&o.revert&&b(this,hn)?{...b(this,hn),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ae.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),b(this,Pe).notify({query:this,type:"updated",action:t})})},Gl);function Vs(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Us(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Pf(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Rf=(ql=class extends Yt{constructor(t={}){super();D(this,We);this.config=t,O(this,We,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??Po(o,n);let s=this.get(i);return s||(s=new Af({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){b(this,We).has(t.queryHash)||(b(this,We).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=b(this,We).get(t.queryHash);n&&(t.destroy(),n===t&&b(this,We).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ae.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return b(this,We).get(t)}getAll(){return[...b(this,We).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Is(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Is(t,r)):n}notify(t){ae.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ae.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ae.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},We=new WeakMap,ql),Of=(Ql=class extends Ws{constructor(t){super();D(this,Ge);D(this,Ve);D(this,pe);D(this,Mt);this.mutationId=t.mutationId,O(this,pe,t.mutationCache),O(this,Ve,[]),this.state=t.state||Gs(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){b(this,Ve).includes(t)||(b(this,Ve).push(t),this.clearGcTimeout(),b(this,pe).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){O(this,Ve,b(this,Ve).filter(n=>n!==t)),this.scheduleGc(),b(this,pe).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){b(this,Ve).length||(this.state.status==="pending"?this.scheduleGc():b(this,pe).remove(this))}continue(){var t;return((t=b(this,Mt))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,a,c,l,d,p,h,m,w,f,v,_,x,C,S,T,R,A,N;const n=()=>{F(this,Ge,Et).call(this,{type:"continue"})};O(this,Mt,Hs({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:($,M)=>{F(this,Ge,Et).call(this,{type:"failed",failureCount:$,error:M})},onPause:()=>{F(this,Ge,Et).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>b(this,pe).canRun(this)}));const r=this.state.status==="pending",o=!b(this,Mt).canStart();try{if(r)n();else{F(this,Ge,Et).call(this,{type:"pending",variables:t,isPaused:o}),await((s=(i=b(this,pe).config).onMutate)==null?void 0:s.call(i,t,this));const M=await((c=(a=this.options).onMutate)==null?void 0:c.call(a,t));M!==this.state.context&&F(this,Ge,Et).call(this,{type:"pending",context:M,variables:t,isPaused:o})}const $=await b(this,Mt).start();return await((d=(l=b(this,pe).config).onSuccess)==null?void 0:d.call(l,$,t,this.state.context,this)),await((h=(p=this.options).onSuccess)==null?void 0:h.call(p,$,t,this.state.context)),await((w=(m=b(this,pe).config).onSettled)==null?void 0:w.call(m,$,null,this.state.variables,this.state.context,this)),await((v=(f=this.options).onSettled)==null?void 0:v.call(f,$,null,t,this.state.context)),F(this,Ge,Et).call(this,{type:"success",data:$}),$}catch($){try{throw await((x=(_=b(this,pe).config).onError)==null?void 0:x.call(_,$,t,this.state.context,this)),await((S=(C=this.options).onError)==null?void 0:S.call(C,$,t,this.state.context)),await((R=(T=b(this,pe).config).onSettled)==null?void 0:R.call(T,void 0,$,this.state.variables,this.state.context,this)),await((N=(A=this.options).onSettled)==null?void 0:N.call(A,void 0,$,t,this.state.context)),$}finally{F(this,Ge,Et).call(this,{type:"error",error:$})}}finally{b(this,pe).runNext(this)}}},Ve=new WeakMap,pe=new WeakMap,Mt=new WeakMap,Ge=new WeakSet,Et=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ae.batch(()=>{b(this,Ve).forEach(r=>{r.onMutationUpdate(t)}),b(this,pe).notify({mutation:this,type:"updated",action:t})})},Ql);function Gs(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var kf=(Yl=class extends Yt{constructor(t={}){super();D(this,et);D(this,$e);D(this,Hn);this.config=t,O(this,et,new Set),O(this,$e,new Map),O(this,Hn,0)}build(t,n,r){const o=new Of({mutationCache:this,mutationId:++oo(this,Hn)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){b(this,et).add(t);const n=pr(t);if(typeof n=="string"){const r=b(this,$e).get(n);r?r.push(t):b(this,$e).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(b(this,et).delete(t)){const n=pr(t);if(typeof n=="string"){const r=b(this,$e).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&b(this,$e).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=pr(t);if(typeof n=="string"){const r=b(this,$e).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=pr(t);if(typeof n=="string"){const o=(r=b(this,$e).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ae.batch(()=>{b(this,et).forEach(t=>{this.notify({type:"removed",mutation:t})}),b(this,et).clear(),b(this,$e).clear()})}getAll(){return Array.from(b(this,et))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ns(n,r))}findAll(t={}){return this.getAll().filter(n=>Ns(t,n))}notify(t){ae.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ae.batch(()=>Promise.all(t.map(n=>n.continue().catch(fe))))}},et=new WeakMap,$e=new WeakMap,Hn=new WeakMap,Yl);function pr(e){var t;return(t=e.options.scope)==null?void 0:t.id}function qs(e){return{onFetch:(t,n)=>{var d,p,h,m,w;const r=t.options,o=(h=(p=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:p.fetchMore)==null?void 0:h.direction,i=((m=t.state.data)==null?void 0:m.pages)||[],s=((w=t.state.data)==null?void 0:w.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let f=!1;const v=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(t.signal.aborted?f=!0:t.signal.addEventListener("abort",()=>{f=!0}),t.signal)})},_=Fs(t.options,t.fetchOptions),x=async(C,S,T)=>{if(f)return Promise.reject();if(S==null&&C.pages.length)return Promise.resolve(C);const A=(()=>{const Z={client:t.client,queryKey:t.queryKey,pageParam:S,direction:T?"backward":"forward",meta:t.options.meta};return v(Z),Z})(),N=await _(A),{maxPages:$}=t.options,M=T?_f:wf;return{pages:M(C.pages,N,$),pageParams:M(C.pageParams,S,$)}};if(o&&i.length){const C=o==="backward",S=C?jf:Qs,T={pages:i,pageParams:s},R=S(r,T);a=await x(T,R,C)}else{const C=e??i.length;do{const S=c===0?s[0]??r.initialPageParam:Qs(r,a);if(c>0&&S==null)break;a=await x(a,S),c++}while(c<C)}return a};t.options.persister?t.fetchFn=()=>{var f,v;return(v=(f=t.options).persister)==null?void 0:v.call(f,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function Qs(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function jf(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Df=(Kl=class{constructor(e={}){D(this,ne);D(this,gt);D(this,vt);D(this,pn);D(this,mn);D(this,yt);D(this,gn);D(this,vn);O(this,ne,e.queryCache||new Rf),O(this,gt,e.mutationCache||new kf),O(this,vt,e.defaultOptions||{}),O(this,pn,new Map),O(this,mn,new Map),O(this,yt,0)}mount(){oo(this,yt)._++,b(this,yt)===1&&(O(this,gn,jo.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,ne).onFocus())})),O(this,vn,hr.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,ne).onOnline())})))}unmount(){var e,t;oo(this,yt)._--,b(this,yt)===0&&((e=b(this,gn))==null||e.call(this),O(this,gn,void 0),(t=b(this,vn))==null||t.call(this),O(this,vn,void 0))}isFetching(e){return b(this,ne).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return b(this,gt).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=b(this,ne).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=b(this,ne).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(lt(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return b(this,ne).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=b(this,ne).get(r.queryHash),i=o==null?void 0:o.state.data,s=yf(t,i);if(s!==void 0)return b(this,ne).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return ae.batch(()=>b(this,ne).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=b(this,ne).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=b(this,ne);ae.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=b(this,ne);return ae.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=ae.batch(()=>b(this,ne).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(fe).catch(fe)}invalidateQueries(e,t={}){return ae.batch(()=>(b(this,ne).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=ae.batch(()=>b(this,ne).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(fe)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(fe)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=b(this,ne).build(this,t);return n.isStaleByTime(lt(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(fe).catch(fe)}fetchInfiniteQuery(e){return e.behavior=qs(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(fe).catch(fe)}ensureInfiniteQueryData(e){return e.behavior=qs(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return hr.isOnline()?b(this,gt).resumePausedMutations():Promise.resolve()}getQueryCache(){return b(this,ne)}getMutationCache(){return b(this,gt)}getDefaultOptions(){return b(this,vt)}setDefaultOptions(e){O(this,vt,e)}setQueryDefaults(e,t){b(this,pn).set(Pt(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...b(this,pn).values()],n={};return t.forEach(r=>{Dn(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){b(this,mn).set(Pt(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...b(this,mn).values()],n={};return t.forEach(r=>{Dn(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...b(this,vt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Po(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===fr&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...b(this,vt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){b(this,ne).clear(),b(this,gt).clear()}},ne=new WeakMap,gt=new WeakMap,vt=new WeakMap,pn=new WeakMap,mn=new WeakMap,yt=new WeakMap,gn=new WeakMap,vn=new WeakMap,Kl),Lf=(Zl=class extends Yt{constructor(t,n){super();D(this,G);D(this,we);D(this,H);D(this,Wn);D(this,me);D(this,Ft);D(this,yn);D(this,bt);D(this,wt);D(this,Vn);D(this,bn);D(this,wn);D(this,Bt);D(this,Ut);D(this,_t);D(this,_n,new Set);this.options=n,O(this,we,t),O(this,wt,null),O(this,bt,Do()),this.options.experimental_prefetchInRender||b(this,bt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(b(this,H).addObserver(this),Ys(b(this,H),this.options)?F(this,G,Qn).call(this):this.updateResult(),F(this,G,zi).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Io(b(this,H),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Io(b(this,H),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,F(this,G,Hi).call(this),F(this,G,Wi).call(this),b(this,H).removeObserver(this)}setOptions(t){const n=this.options,r=b(this,H);if(this.options=b(this,we).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Oe(this.options.enabled,b(this,H))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");F(this,G,Vi).call(this),b(this,H).setOptions(this.options),n._defaulted&&!dr(this.options,n)&&b(this,we).getQueryCache().notify({type:"observerOptionsUpdated",query:b(this,H),observer:this});const o=this.hasListeners();o&&Ks(b(this,H),r,this.options,n)&&F(this,G,Qn).call(this),this.updateResult(),o&&(b(this,H)!==r||Oe(this.options.enabled,b(this,H))!==Oe(n.enabled,b(this,H))||lt(this.options.staleTime,b(this,H))!==lt(n.staleTime,b(this,H)))&&F(this,G,Fi).call(this);const i=F(this,G,Bi).call(this);o&&(b(this,H)!==r||Oe(this.options.enabled,b(this,H))!==Oe(n.enabled,b(this,H))||i!==b(this,_t))&&F(this,G,Ui).call(this,i)}getOptimisticResult(t){const n=b(this,we).getQueryCache().build(b(this,we),t),r=this.createResult(n,t);return Nf(this,r)&&(O(this,me,r),O(this,yn,this.options),O(this,Ft,b(this,H).state)),r}getCurrentResult(){return b(this,me)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),Reflect.get(r,o))})}trackProp(t){b(this,_n).add(t)}getCurrentQuery(){return b(this,H)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=b(this,we).defaultQueryOptions(t),r=b(this,we).getQueryCache().build(b(this,we),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return F(this,G,Qn).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),b(this,me)))}createResult(t,n){var $;const r=b(this,H),o=this.options,i=b(this,me),s=b(this,Ft),a=b(this,yn),l=t!==r?t.state:b(this,Wn),{state:d}=t;let p={...d},h=!1,m;if(n._optimisticResults){const M=this.hasListeners(),Z=!M&&Ys(t,n),X=M&&Ks(t,r,n,o);(Z||X)&&(p={...p,...Vs(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:w,errorUpdatedAt:f,status:v}=p;m=p.data;let _=!1;if(n.placeholderData!==void 0&&m===void 0&&v==="pending"){let M;i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(M=i.data,_=!0):M=typeof n.placeholderData=="function"?n.placeholderData(($=b(this,wn))==null?void 0:$.state.data,b(this,wn)):n.placeholderData,M!==void 0&&(v="success",m=ko(i==null?void 0:i.data,M,n),h=!0)}if(n.select&&m!==void 0&&!_)if(i&&m===(s==null?void 0:s.data)&&n.select===b(this,Vn))m=b(this,bn);else try{O(this,Vn,n.select),m=n.select(m),m=ko(i==null?void 0:i.data,m,n),O(this,bn,m),O(this,wt,null)}catch(M){O(this,wt,M)}b(this,wt)&&(w=b(this,wt),m=b(this,bn),f=Date.now(),v="error");const x=p.fetchStatus==="fetching",C=v==="pending",S=v==="error",T=C&&x,R=m!==void 0,N={status:v,fetchStatus:p.fetchStatus,isPending:C,isSuccess:v==="success",isError:S,isInitialLoading:T,isLoading:T,data:m,dataUpdatedAt:p.dataUpdatedAt,error:w,errorUpdatedAt:f,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>l.dataUpdateCount||p.errorUpdateCount>l.errorUpdateCount,isFetching:x,isRefetching:x&&!C,isLoadingError:S&&!R,isPaused:p.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:S&&R,isStale:No(t,n),refetch:this.refetch,promise:b(this,bt)};if(this.options.experimental_prefetchInRender){const M=V=>{N.status==="error"?V.reject(N.error):N.data!==void 0&&V.resolve(N.data)},Z=()=>{const V=O(this,bt,N.promise=Do());M(V)},X=b(this,bt);switch(X.status){case"pending":t.queryHash===r.queryHash&&M(X);break;case"fulfilled":(N.status==="error"||N.data!==X.value)&&Z();break;case"rejected":(N.status!=="error"||N.error!==X.reason)&&Z();break}}return N}updateResult(){const t=b(this,me),n=this.createResult(b(this,H),this.options);if(O(this,Ft,b(this,H).state),O(this,yn,this.options),b(this,Ft).data!==void 0&&O(this,wn,b(this,H)),dr(n,t))return;O(this,me,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,i=typeof o=="function"?o():o;if(i==="all"||!i&&!b(this,_n).size)return!0;const s=new Set(i??b(this,_n));return this.options.throwOnError&&s.add("error"),Object.keys(b(this,me)).some(a=>{const c=a;return b(this,me)[c]!==t[c]&&s.has(c)})};F(this,G,fu).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&F(this,G,zi).call(this)}},we=new WeakMap,H=new WeakMap,Wn=new WeakMap,me=new WeakMap,Ft=new WeakMap,yn=new WeakMap,bt=new WeakMap,wt=new WeakMap,Vn=new WeakMap,bn=new WeakMap,wn=new WeakMap,Bt=new WeakMap,Ut=new WeakMap,_t=new WeakMap,_n=new WeakMap,G=new WeakSet,Qn=function(t){F(this,G,Vi).call(this);let n=b(this,H).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(fe)),n},Fi=function(){F(this,G,Hi).call(this);const t=lt(this.options.staleTime,b(this,H));if(At||b(this,me).isStale||!Ao(t))return;const r=Ls(b(this,me).dataUpdatedAt,t)+1;O(this,Bt,setTimeout(()=>{b(this,me).isStale||this.updateResult()},r))},Bi=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(b(this,H)):this.options.refetchInterval)??!1},Ui=function(t){F(this,G,Wi).call(this),O(this,_t,t),!(At||Oe(this.options.enabled,b(this,H))===!1||!Ao(b(this,_t))||b(this,_t)===0)&&O(this,Ut,setInterval(()=>{(this.options.refetchIntervalInBackground||jo.isFocused())&&F(this,G,Qn).call(this)},b(this,_t)))},zi=function(){F(this,G,Fi).call(this),F(this,G,Ui).call(this,F(this,G,Bi).call(this))},Hi=function(){b(this,Bt)&&(clearTimeout(b(this,Bt)),O(this,Bt,void 0))},Wi=function(){b(this,Ut)&&(clearInterval(b(this,Ut)),O(this,Ut,void 0))},Vi=function(){const t=b(this,we).getQueryCache().build(b(this,we),this.options);if(t===b(this,H))return;const n=b(this,H);O(this,H,t),O(this,Wn,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},fu=function(t){ae.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(b(this,me))}),b(this,we).getQueryCache().notify({query:b(this,H),type:"observerResultsUpdated"})})},Zl);function If(e,t){return Oe(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ys(e,t){return If(e,t)||e.state.data!==void 0&&Io(e,t,t.refetchOnMount)}function Io(e,t,n){if(Oe(t.enabled,e)!==!1&&lt(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&No(e,t)}return!1}function Ks(e,t,n,r){return(e!==t||Oe(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&No(e,n)}function No(e,t){return Oe(t.enabled,e)!==!1&&e.isStaleByTime(lt(t.staleTime,e))}function Nf(e,t){return!dr(e.getCurrentResult(),t)}var $f=(Xl=class extends Yt{constructor(n,r){super();D(this,nt);D(this,xt);D(this,Ct);D(this,_e);D(this,tt);O(this,xt,n),this.setOptions(r),this.bindMethods(),F(this,nt,io).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=b(this,xt).defaultMutationOptions(n),dr(this.options,r)||b(this,xt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:b(this,_e),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Pt(r.mutationKey)!==Pt(this.options.mutationKey)?this.reset():((o=b(this,_e))==null?void 0:o.state.status)==="pending"&&b(this,_e).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=b(this,_e))==null||n.removeObserver(this)}onMutationUpdate(n){F(this,nt,io).call(this),F(this,nt,Gi).call(this,n)}getCurrentResult(){return b(this,Ct)}reset(){var n;(n=b(this,_e))==null||n.removeObserver(this),O(this,_e,void 0),F(this,nt,io).call(this),F(this,nt,Gi).call(this)}mutate(n,r){var o;return O(this,tt,r),(o=b(this,_e))==null||o.removeObserver(this),O(this,_e,b(this,xt).getMutationCache().build(b(this,xt),this.options)),b(this,_e).addObserver(this),b(this,_e).execute(n)}},xt=new WeakMap,Ct=new WeakMap,_e=new WeakMap,tt=new WeakMap,nt=new WeakSet,io=function(){var r;const n=((r=b(this,_e))==null?void 0:r.state)??Gs();O(this,Ct,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Gi=function(n){ae.batch(()=>{var r,o,i,s,a,c,l,d;if(b(this,tt)&&this.hasListeners()){const p=b(this,Ct).variables,h=b(this,Ct).context;(n==null?void 0:n.type)==="success"?((o=(r=b(this,tt)).onSuccess)==null||o.call(r,n.data,p,h),(s=(i=b(this,tt)).onSettled)==null||s.call(i,n.data,null,p,h)):(n==null?void 0:n.type)==="error"&&((c=(a=b(this,tt)).onError)==null||c.call(a,n.error,p,h),(d=(l=b(this,tt)).onSettled)==null||d.call(l,void 0,n.error,p,h))}this.listeners.forEach(p=>{p(b(this,Ct))})})},Xl),Zs=g.createContext(void 0),$o=e=>{const t=g.useContext(Zs);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Mf=({client:e,children:t})=>(g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(Zs.Provider,{value:e,children:t})),Xs=g.createContext(!1),Ff=()=>g.useContext(Xs);Xs.Provider;function Bf(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Uf=g.createContext(Bf()),zf=()=>g.useContext(Uf),Hf=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Wf=e=>{g.useEffect(()=>{e.clearReset()},[e])},Vf=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Bs(n,[e.error,r])),Gf=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},qf=(e,t)=>e.isLoading&&e.isFetching&&!t,Qf=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Js=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Yf(e,t,n){var p,h,m,w,f;if(typeof e!="object"||Array.isArray(e))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=Ff(),o=zf(),i=$o(),s=i.defaultQueryOptions(e);(h=(p=i.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||h.call(p,s),s.queryFn||console.error(`[${s.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`),s._optimisticResults=r?"isRestoring":"optimistic",Gf(s),Hf(s,o),Wf(o);const a=!i.getQueryCache().get(s.queryHash),[c]=g.useState(()=>new t(i,s)),l=c.getOptimisticResult(s),d=!r&&e.subscribed!==!1;if(g.useSyncExternalStore(g.useCallback(v=>{const _=d?c.subscribe(ae.batchCalls(v)):fe;return c.updateResult(),_},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),g.useEffect(()=>{c.setOptions(s)},[s,c]),Qf(s,l))throw Js(s,c,o);if(Vf({result:l,errorResetBoundary:o,throwOnError:s.throwOnError,query:i.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw l.error;if((w=(m=i.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||w.call(m,s,l),s.experimental_prefetchInRender&&!At&&qf(l,r)){const v=a?Js(s,c,o):(f=i.getQueryCache().get(s.queryHash))==null?void 0:f.promise;v==null||v.catch(fe).finally(()=>{c.updateResult()})}return s.notifyOnChangeProps?l:c.trackResult(l)}function ea(e,t){return Yf(e,Lf)}function mr(e,t){const n=$o(),[r]=g.useState(()=>new $f(n,e));g.useEffect(()=>{r.setOptions(e)},[r,e]);const o=g.useSyncExternalStore(g.useCallback(s=>r.subscribe(ae.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=g.useCallback((s,a)=>{r.mutate(s,a).catch(fe)},[r]);if(o.error&&Bs(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}const gr={STALE_TIME:1e3*60*5,GC_TIME:1e3*60*10,RETRY_COUNT:1,RETRY_DELAY:1e3},ta={refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,staleTime:gr.STALE_TIME,gcTime:gr.GC_TIME,retry:gr.RETRY_COUNT,retryDelay:gr.RETRY_DELAY,enable:!0},vr=e=>e instanceof Error?e.message:String(e),Kf=E("useResourceActions",(e,t,n)=>{const r=$o(),{notify:o}=Ds(),{createFn:i,readFn:s,readByIdFn:a,updateFn:c,deleteFn:l,partialUpdateFn:d}=n,p=()=>{r.invalidateQueries({queryKey:[e]})},h=(S,T,R,A)=>o(A!=null&&A.overrideSuccessMessage?A==null?void 0:A.overrideSuccessMessage(S,T):R,"success"),m=(S,T,R,A)=>o(A!=null&&A.overrideErrorMessage?A==null?void 0:A.overrideErrorMessage(S,T):R,"error");return{useCreate:S=>mr({mutationFn:T=>i(T),onSuccess:T=>{p(),h(t,T,`${t} created successfully`,S)},onError:T=>{m(t,T,`Error creating ${t}: ${vr(T)}`,S)}}),useReadQuery:S=>ea({queryKey:[e],queryFn:s,...ta,...S}),useReadByIdQuery:(S,T)=>ea({queryKey:[e,S],queryFn:()=>a(S),...ta,enabled:!!S,...T}),useUpdate:S=>mr({mutationFn:({id:T,data:R})=>c(T,R),onSuccess:T=>{p(),h(t,T,`${t} updated successfully`,S)},onError:T=>{m(t,T,`Error updating ${t}: ${vr(T)}`,S)}}),usePartialUpdate:S=>d&&mr({mutationFn:({id:T,data:R})=>d(T,R),onSuccess:T=>{p(),h(t,T,`${t} updated successfully`,S)},onError:T=>{m(t,T,`Error updating ${t}: ${vr(T)}`,S)}}),useDelete:S=>mr({mutationFn:T=>l(T),onSuccess:()=>{p(),h(t,null,`${t} deleted successfully`,S)},onError:T=>{m(t,T,`Error deleting ${t}: ${vr(T)}`,S)}}),invalidateQueries:p}}),Ev=E("useResource",(e,t)=>Kf(e,t,{createFn:n=>fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).then(r=>r.json()),deleteFn:n=>fetch(`${e}/${n}`,{method:"DELETE"}).then(r=>{if(!r.ok)throw new Error(`Error deleting: ${r.status}`)}),readByIdFn:n=>fetch(`${e}/${n}`).then(r=>r.json()),readFn:()=>fetch(e).then(n=>n.json()),updateFn:(n,r)=>fetch(`${e}/${n}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(o=>o.json()),partialUpdateFn:(n,r)=>fetch(`${e}/${n}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(o=>o.json())})),Zf={SINGLE_TENANT:"single-tenant"},Xf={COOKIE:"cookie"},Mo="tenant",na="tenant",ra="tenant",Jf=Zf.SINGLE_TENANT,eh=Xf.COOKIE,th={mode:Jf,clientSideMode:eh,tenantIDPProvisioningStrategy:"none"};class nh{setTenant(t,n){const r=new URL(window.location.href);r.searchParams.set(na,t.name),window.location.href=r.toString()}getCurrentTenantName(){const t=new URL(window.location.href);return new URLSearchParams(t.search).get(na)}}class rh{setTenant(t,n){sessionStorage.setItem(ra,t.name),window.location.reload()}getCurrentTenantName(){return sessionStorage.getItem(ra)}}/*! js-cookie v3.0.5 | MIT */function yr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var oh={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Fo(e,t){function n(o,i,s){if(!(typeof document>"u")){s=yr({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var c in s)s[c]&&(a+="; "+c,s[c]!==!0&&(a+="="+s[c].split(";")[0]));return document.cookie=o+"="+e.write(i,o)+a}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var i=document.cookie?document.cookie.split("; "):[],s={},a=0;a<i.length;a++){var c=i[a].split("="),l=c.slice(1).join("=");try{var d=decodeURIComponent(c[0]);if(s[d]=e.read(l,d),o===d)break}catch{}}return o?s[o]:s}}return Object.create({set:n,get:r,remove:function(o,i){n(o,"",yr({},i,{expires:-1}))},withAttributes:function(o){return Fo(this.converter,yr({},this.attributes,o))},withConverter:function(o){return Fo(yr({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Bo=Fo(oh,{path:"/"});class ih{setTenant(t,n){t?Bo.set(Mo,t.name):Bo.remove(Mo),window.location.reload()}getCurrentTenantName(){return Bo.get(Mo)}}class sh{extractSubdomain(t){if(t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t))return"";const n=t.split(".");if(n.length<2||n.length===2||n[0]==="www"&&n.length===3)return"";const o=(n[0]==="www"?n.slice(1):n).slice(0,-2);return o.length>0?o.join("."):""}getBaseDomain(t){const n=t.split(".");return t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t)||n.length<=2?t:n.slice(-2).join(".")}setTenant(t,n){var l;const r=(l=n.urlPatterns)==null?void 0:l.find(d=>d.patternType==="subdomain"&&d.tenantId===t.id&&d.isActive);if(!r)throw new Error(`No active subdomain pattern found for tenant '${t.name}'`);const o=new URL(window.location.href),i=r.patternValue,s=o.hostname,a=this.getBaseDomain(s),c=i?`${i}.${a}`:a;o.hostname=c,window.location.href=o.toString()}getCurrentTenantName(){const t=window.location.hostname;return this.extractSubdomain(t)||null}}const oa={queryParams:new nh,sessionStorage:new rh,cookie:new ih,subdomain:new sh},ah=e=>{const t=oa[e.clientSideMode];if(!t)throw new Error(`Client side tenant mode '${e.clientSideMode}' is not supported ${JSON.stringify({strategies:oa},null,2)}`);return t},ch=(e,t,n)=>{const r=t.find(i=>i.name===n);if(!r)throw Error("No tenant permission");return ah(e).setTenant(r,e),r},Sv=E("useTenants",()=>{const[e,t]=fo(),{tenants:n=[],currentTenant:r,tenantConfig:o=th}=e,i=te(s=>{const a=ch(o,n,s);t({...e,currentTenant:a})},[o,e]);return{tenants:n,currentTenant:r,tenantConfig:o,selectTenant:i}});function lh(e){if(!e.ok)throw console.error(e),new Error(e.statusText)}async function br(e,t,n,r){const o=await e(`/user-states/${encodeURIComponent(t)}/${encodeURIComponent(n)}`,r);return lh(o),o}class wr{static async get(t,n,r){const i=await br(t,n,r,{method:"GET",headers:{"Content-Type":"application/json"}});return i.status===204?null:await i.json()}static async create(t,n,r,o){const i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await br(t,n,r,i)).json()}static async update(t,n,r,o){const i={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await br(t,n,r,i)).json()}static async delete(t,n,r){return await br(t,n,r,{method:"DELETE",headers:{"Content-Type":"application/json"}}),null}}const Tv=E("useUserState",e=>{const t=hs("@bluealba/pae-nestjs-gateway-service"),n=Ju();if(!n)throw new Error("You must call the useUserState hook within a PAE application.");const[r,o]=L(null),[i,s]=L(!1),[a,c]=L(!1),[l,d]=L(null),p=(x,C)=>te(async({newValue:S,shouldThrowError:T}={})=>{try{c(!0),d(null);const R=await x(t,n,e,S);return o(R),R?R.value:null}catch(R){if(d(R==null?void 0:R.message),console.error(`Failed to ${C} ${e}:`,R),T)throw R;return null}finally{c(!1)}},[t,n,e]),h=p(wr.get,"fetch"),m=p(wr.create,"create"),w=p(wr.update,"update"),f=p(wr.delete,"delete"),v=te(async()=>{try{await h()}finally{s(!0)}},[h]);Q(()=>{v()},[v]);const _=te(async(x,C=!1)=>r==null?await m({newValue:x,shouldThrowError:C}):await w({newValue:x,shouldThrowError:C}),[r,m,w]);return{value:r?r.value:null,hasFetched:i,loading:a,error:l,setValue:_,createValue:m,updateValue:w,deleteValue:f}}),ia="__PAE_EXTENSION_POINT_REACT_CONTENT_EMPTY__",Av=E("ExtendExtensionPoint",({module:e,point:t,children:n})=>(ad(e,t,n??ia),null)),uh=E("ExtensionPoint",({name:e,children:t,...n})=>{const r=sd(e);if(r===ia)return null;if(!r)return u.jsx(u.Fragment,{children:t??null});if(dh(r)){const o=r;return u.jsx(o,{...n})}else return r}),dh=e=>typeof e=="function",Pv=E("extensionPoint",(e,t)=>{const n=r=>(t=t||e.displayName||e.name||"?",u.jsx(uh,{name:t,...r,children:u.jsx(e,{...r})}));return n.displayName=`extensionPoint(${t})`,n}),sa="single-spa:app-change";function fh(){const[e,t]=L(aa());return Q(()=>{const n=()=>{t(aa())};return window.addEventListener(sa,n),()=>{window.removeEventListener(sa,n)}},[]),e}function aa(){return Zn.getAppNames().reduce((t,n)=>(Zn.getAppStatus(n)?t[n]=Zn.getAppStatus(n):t[n]="NOT_LOADED",t),{})}function hh(e){const n=fh()[e]??"LOAD_ERROR";return{statusName:n,isLoading:n==="LOADING_SOURCE_CODE"||n==="BOOTSTRAPPING"||n==="MOUNTING",isMounted:n==="MOUNTED",isBroken:n==="SKIP_BECAUSE_BROKEN"||n==="LOAD_ERROR"}}const ca=({appName:e})=>u.jsx("div",{children:u.jsxs("p",{children:["Loading ",e,"..."]})});ca.displayName="BaseLoading";const la=({appName:e})=>u.jsxs("div",{children:[u.jsx("p",{children:"Something went wrong..."}),u.jsxs("p",{children:["Failed to load ",e]})]});la.displayName="BaseError";const ph={display:"flex",flexDirection:"column",flex:1},ua=B((e,t)=>u.jsx("div",{ref:t,style:ph,...e}));ua.displayName="BaseContainer";const mh="pae-app:",gh=E("ModulePlaceHolder",B(({appName:e,LoadingComponent:t=ca,ErrorComponent:n=la,ContainerComponent:r=ua,...o},i)=>{const s=hh(e);return u.jsxs(r,{ref:i,...o,id:`${mh}${e}`,children:[s.isLoading&&u.jsx(t,{appName:e}),s.isBroken&&u.jsx(n,{appName:e})]})}));gh.displayName="ModulePlaceHolder";const da=E("Authorized",({operations:e,children:t,forbiddenContent:n})=>{var o;const{hasAccess:r}=po();if(!r(...e)){if(!n)return null;if(typeof n=="function")if((o=n==null?void 0:n.prototype)!=null&&o.isReactComponent){const i=n;return u.jsx(i,{operations:e})}else return n({operations:e});return Yn.isValidElement(n)?n:null}return t});da.displayName="Authorized";const Rv=E("PlatformEventListener",({eventName:e,listener:t})=>(cd(e,t),null)),vh=()=>u.jsx("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:u.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M8.737 8.737a21.49 21.49 0 0 1 3.308-2.724m0 0c3.063-2.026 5.99-2.641 7.331-1.3 1.827 1.828.026 6.591-4.023 10.64-4.049 4.049-8.812 5.85-10.64 4.023-1.33-1.33-.736-4.218 1.249-7.253m6.083-6.11c-3.063-2.026-5.99-2.641-7.331-1.3-1.827 1.828-.026 6.591 4.023 10.64m3.308-9.34a21.497 21.497 0 0 1 3.308 2.724m2.775 3.386c1.985 3.035 2.579 5.923 1.248 7.253-1.336 1.337-4.245.732-7.295-1.275M14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})}),yh=E("ApplicationIcon",({applicationName:e})=>{const t=Nu(e);if(t)if(typeof t=="function"){const n=t;return u.jsx(n,{})}else return t;return u.jsx(vh,{})});yh.displayName="ApplicationIcon";const Ov=E("authorized",(e,t)=>{const n=r=>u.jsx(da,{operations:t,children:u.jsx(e,{...r})});return n.displayName="Authorized",n});function fa(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=fa(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function j(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=fa(e))&&(r&&(r+=" "),r+=t);return r}const _r={spinner:"spinner__fakUN","spinner-rotation":"spinner-rotation__wUmPV",spinnerRotation:"spinner-rotation__wUmPV",button:"button__8FA9H","button--contained-primary":"button--contained-primary__stkTx",buttonContainedPrimary:"button--contained-primary__stkTx","button--outlined-primary":"button--outlined-primary__KZ1ww",buttonOutlinedPrimary:"button--outlined-primary__KZ1ww","button--text-primary":"button--text-primary__GLTfm",buttonTextPrimary:"button--text-primary__GLTfm","button--contained-danger":"button--contained-danger__L9ehT",buttonContainedDanger:"button--contained-danger__L9ehT","button--outlined-danger":"button--outlined-danger__eoYLd",buttonOutlinedDanger:"button--outlined-danger__eoYLd","button--text-danger":"button--text-danger__Sw-ha",buttonTextDanger:"button--text-danger__Sw-ha",icon:"icon__--umH"},Uo=E("Button",B(({variant:e="contained",colorScheme:t="primary",loading:n=!1,IconComponent:r,className:o,children:i,...s},a)=>{const c=j(_r.button,_r[`button--${e}-${t}`],o);return u.jsxs("button",{ref:a,className:c,...s,children:[n?u.jsx("div",{className:_r.spinner}):r&&u.jsx(r,{className:_r.icon}),i]})}));Uo.displayName="Button";const xr={Badges:"Badges__5jpum",badges:"Badges__5jpum",Badge:"Badge__95MWM",badge:"Badge__95MWM","Badge--primary":"Badge--primary__Rx-bS",badgePrimary:"Badge--primary__Rx-bS","Badge--secondary":"Badge--secondary__d92bT",badgeSecondary:"Badge--secondary__d92bT","Badge--success":"Badge--success__Kdo98",badgeSuccess:"Badge--success__Kdo98","Badge--warning":"Badge--warning__bf-Nn",badgeWarning:"Badge--warning__bf-Nn","Badge--danger":"Badge--danger__HTj39",badgeDanger:"Badge--danger__HTj39","Badge--small":"Badge--small__y93Pj",badgeSmall:"Badge--small__y93Pj","Badge--regular":"Badge--regular__aT5AL",badgeRegular:"Badge--regular__aT5AL","Badge--large":"Badge--large__wORCH",badgeLarge:"Badge--large__wORCH"},ha={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};var pa={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function bh(e){var d,p;var t,n=[],r=1,o;if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),ha[e])n=ha[e].slice(),o="rgb";else if(e==="transparent")r=0,o="rgb",n=[0,0,0];else if(e[0]==="#"){var i=e.slice(1),s=i.length,a=s<=4;r=1,a?(n=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],s===4&&(r=parseInt(i[3]+i[3],16)/255)):(n=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],s===8&&(r=parseInt(i[6]+i[7],16)/255)),n[0]||(n[0]=0),n[1]||(n[1]=0),n[2]||(n[2]=0),o="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var c=t[1];o=c.replace(/a$/,"");var l=o==="cmyk"?4:o==="gray"?1:3;n=t[2].trim().split(/\s*[,\/]\s*|\s+/),o==="color"&&(o=n.shift()),n=n.map(function(h,m){if(h[h.length-1]==="%")return h=parseFloat(h)/100,m===3?h:o==="rgb"?h*255:o[0]==="h"||o[0]==="l"&&!m?h*100:o==="lab"?h*125:o==="lch"?m<2?h*150:h*360:o[0]==="o"&&!m?h:o==="oklab"?h*.4:o==="oklch"?m<2?h*.4:h*360:h;if(o[m]==="h"||m===2&&o[o.length-1]==="h"){if(pa[h]!==void 0)return pa[h];if(h.endsWith("deg"))return parseFloat(h);if(h.endsWith("turn"))return parseFloat(h)*360;if(h.endsWith("grad"))return parseFloat(h)*360/400;if(h.endsWith("rad"))return parseFloat(h)*180/Math.PI}return h==="none"?0:parseFloat(h)}),r=n.length>l?n.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(n=e.match(/([0-9]+)/g).map(function(h){return parseFloat(h)}),o=((p=(d=e.match(/([a-z])/ig))==null?void 0:d.join(""))==null?void 0:p.toLowerCase())||"rgb");return{space:o,values:n,alpha:r}}const wh=(e,t)=>{const{space:n,values:r}=bh(e);return n[0]==="h"?`${n}a(${r[0]}, ${r[1]}%, ${r[2]}%, ${t})`:`${n}a(${r}, ${t})`},ma=E("Badge",B(({children:e,color:t,className:n,customColor:r,size:o="small",style:i,...s},a)=>{const c=r?{color:r,background:wh(r,.1)}:{},l=j(xr.Badge,xr[`Badge--${o}`],{[xr[`Badge--${t}`]]:!!t},n);return u.jsx("span",{ref:a,className:l,style:{...i,...c},...s,children:e})}));ma.displayName="Badge";const ga=E("Badges",B(({children:e,className:t,...n},r)=>{const o=j(xr.Badges,t);return u.jsx("div",{ref:r,className:o,...n,children:e})}));ga.displayName="Badges";const _h=E("ClipboardIcon",({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...i})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:o,...i,children:[u.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),u.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"})]})),xh=E("ClipboardCheckIcon",({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...i})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:o,...i,children:[u.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),u.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}),u.jsx("path",{d:"m9 12 2 2 4-4"})]})),Ch={CopyToClipboardButton:"CopyToClipboardButton__2Nd2m"},ey=E("CopyToClipboardButton",({content:e})=>{const[t,n]=Eh(),{notify:r}=Ds(),o=t?xh:_h,i=te(async()=>{await n(e)&&r("Copied to the Clipboard !","success")},[e,r]);return u.jsx(o,{className:Ch.CopyToClipboardButton,size:18,onClick:i})}),Eh=()=>{const[e,t]=L(!1);return[e,async r=>{try{return await navigator.clipboard.writeText(r),t(!0),setTimeout(()=>t(!1),2e3),!0}catch(o){return console.error("Failed to copy text: ",o),!1}}]},va={FieldGroup:"FieldGroup__Q2JCV",fieldGroup:"FieldGroup__Q2JCV","FieldGroup--horizontal":"FieldGroup--horizontal__kpfL1",fieldGroupHorizontal:"FieldGroup--horizontal__kpfL1","FieldGroup--vertical":"FieldGroup--vertical__FLo-Q",fieldGroupVertical:"FieldGroup--vertical__FLo-Q"},Sh=E("FieldGroup",B(({children:e,className:t,orientation:n="vertical",...r},o)=>{const i=j(va.FieldGroup,va[`FieldGroup--${n}`],t);return u.jsx("div",{ref:o,className:i,...r,children:e})}));Sh.displayName="FieldGroup";const ya={Input:"Input__uS0sb",Error:"Error__-DQpw"},zo=E("Input",B(({className:e,error:t,...n},r)=>{const o=j(ya.Input,t&&ya.Error,e);return u.jsx("input",{ref:r,className:o,...n})}));zo.displayName="Input";const Th={Error:"Error__N4OP5"},Ah=E("InputError",B(({children:e,className:t,...n},r)=>{const o=j(Th.Error,t);return u.jsx("span",{ref:r,className:o,...n,children:e})}));Ah.displayName="InputError";const ba={Label:"Label__VYUvW",Error:"Error__Eu6DI"},Ph=E("Label",B(({children:e,className:t,error:n,...r},o)=>{const i=j(ba.Label,n&&ba.Error,t);return u.jsx("label",{ref:o,className:i,...r,children:e})}));Ph.displayName="Label";const Ho={Select:"Select__giqpe",Chevron:"Chevron__YvhBd"},wa=B(({children:e,className:t,...n},r)=>{const o=j(Ho.Option,t);return u.jsx("option",{ref:r,className:o,...n,children:e})});wa.displayName="Option";const _a=E("Select",B(({children:e,className:t,...n},r)=>{const o=j(Ho.Select,t);return u.jsxs("div",{className:o,children:[u.jsx("select",{ref:r,...n,children:e}),u.jsx("div",{className:Ho.Chevron,children:u.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M4 6L8 10L12 6",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})})]})}));_a.displayName="Select",_a.Option=wa;const Rh={TextArea:"TextArea__pa-A0"},Oh=E("TextArea",B(({children:e,className:t,...n},r)=>{const o=j(Rh.TextArea,t);return u.jsx("textarea",{ref:r,className:o,...n,children:e})}));Oh.displayName="TextArea";const Ln={SearchInput:"SearchInput__4OFyE",SearchIcon:"SearchIcon__YgnQy",ClearIcon:"ClearIcon__ukRVr",SearchInput__ClearIcon:"SearchInput__ClearIcon__uzVoc",SearchInput__SearchIcon:"SearchInput__SearchIcon__zoDG4"},xa=E("SearchInput",B(({className:e,placeholder:t="Type to search...",showClearButton:n=!1,showSearchIcon:r=!0,onClear:o,...i},s)=>{const a=j(Ln.SearchInput,n&&Ln.SearchInput__ClearIcon,r&&Ln.SearchInput__SearchIcon,e),c=j(Ln.SearchIcon),l=j(Ln.ClearIcon);return u.jsxs("div",{className:a,children:[u.jsx(zo,{ref:s,type:"text",placeholder:t,...i}),r&&u.jsx("svg",{className:c,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M13 13L10.6667 10.6667M12.3333 6.66667C12.3333 9.79628 9.79628 12.3333 6.66667 12.3333C3.53705 12.3333 1 9.79628 1 6.66667C1 3.53705 3.53705 1 6.66667 1C9.79628 1 12.3333 3.53705 12.3333 6.66667Z",stroke:"#A4A4A4",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})}),n&&u.jsx("svg",{className:l,width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:o,children:u.jsx("path",{d:"M7.33334 0.666748L0.666672 7.33341M0.666672 0.666748L7.33334 7.33341",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})]})}));xa.displayName="SearchInput";const Rt={SearchAutocomplete:"SearchAutocomplete__vR9Hk",AutocompleteItem:"AutocompleteItem__YIm7R","AutocompleteItem--canBeSelected":"AutocompleteItem--canBeSelected__jxk4z",AutocompleteHighlighter:"AutocompleteHighlighter__LAFTV",AutocompleteHighlighter__match:"AutocompleteHighlighter__match__Wy1o2",DropdownList:"DropdownList__-fHIk",AutocompleteItemDescription:"AutocompleteItemDescription__4QYN5"},Kt=E("dropdownListStyles",{DropdownList:"DropdownList__QTXXX",dropdownList:"DropdownList__QTXXX","DropdownList--closed":"DropdownList--closed__pdL1Z",dropdownListClosed:"DropdownList--closed__pdL1Z","DropdownList--open":"DropdownList--open__opzc9",dropdownListOpen:"DropdownList--open__opzc9","DropdownList--left":"DropdownList--left__xSwXR",dropdownListLeft:"DropdownList--left__xSwXR"}),Wo=E("DropdownList",B(({children:e,className:t,open:n,align:r="right",...o},i)=>{const s=j(Kt.DropdownList,{[Kt["DropdownList--open"]]:n,[Kt["DropdownList--closed"]]:!n,[Kt["DropdownList--left"]]:r==="left"},t);return u.jsx("div",{ref:i,className:s,...o,children:e})}));Wo.displayName="DropdownList";const In=B(({children:e,className:t,canBeSelected:n=!1,...r},o)=>{const i=j(Rt.AutocompleteItem,{[Rt["AutocompleteItem--canBeSelected"]]:n},t);return u.jsx("div",{ref:o,className:i,...r,children:e})});In.displayName="AutocompleteItem";const kh=300,jh={query:"",suggestions:[],loading:!1,error:null},Dh=({suggestionFetcher:e,canAdd:t})=>{const[n,r]=L(jh);return Q(()=>{r(a=>({...a,loading:!0}));const i=async()=>{try{const a=await e(n.query);t&&!a.some(c=>c.value.toLowerCase()===n.query.toLowerCase())&&a.push({label:`Add "${n.query}"`,value:n.query,isNew:!0}),r(c=>({...c,suggestions:a,loading:!1}))}catch(a){r(c=>({...c,suggestions:[],error:a,loading:!1}))}},s=setTimeout(()=>{i()},kh);return()=>{clearTimeout(s)}},[n.query]),{...n,setQuery:i=>{r(s=>({...s,query:i}))}}},Ca=B(({text:e,query:t,className:n,...r},o)=>{const i=j(Rt.AutocompleteHighlighter,n),s=(a,c)=>{const l=a.toLowerCase().indexOf(c.toLowerCase());if(l===-1||c.length===0)return a;const d=a.slice(0,l),p=a.slice(l,l+c.length),h=a.slice(l+c.length);return u.jsxs(u.Fragment,{children:[d,u.jsx("span",{className:Rt.AutocompleteHighlighter__match,children:p}),s(h,c)]})};return u.jsx("div",{ref:o,className:i,...r,children:s(e,t)})});Ca.displayName="AutocompleteHighlighter";const Lh=5,Ih=E("SearchAutocomplete",B(({children:e,className:t,canAdd:n,maxSuggestionsShown:r=Lh,searchInputProps:o,keepSelectedOption:i,suggestionFetcher:s,onAccept:a,...c},l)=>{const{query:d,setQuery:p,suggestions:h,loading:m}=Dh({suggestionFetcher:s,canAdd:n}),[w,f]=L(null),v=d.length>0,_=A=>{p(A.target.value)},x=A=>{a==null||a(A),i?(f(A),p(A.value)):p("")},C=()=>{a==null||a(null),f(null),p("")},S=j(Rt.SearchAutocomplete,t),T=h.slice(0,r),R=h.slice(r);return u.jsxs("div",{ref:l,className:S,...c,children:[u.jsx(xa,{...o,value:d,onChange:_,showClearButton:!!w,onClear:C}),e,u.jsxs(Wo,{className:Rt.DropdownList,open:v&&!w,role:"listbox","aria-label":"Suggestions",children:[m?u.jsx(In,{children:"Loading..."}):T.map(A=>u.jsxs(In,{canBeSelected:!0,onClick:x.bind(null,A),children:[u.jsx(Ca,{text:A.label,query:d}),A.description&&u.jsx("span",{className:Rt.AutocompleteItemDescription,children:A.description})]},A.value)),!m&&R.length>0&&u.jsxs(In,{children:[R.length," more results"]}),v&&h.length===0&&!m&&u.jsx(In,{children:"No results found"})]})]})}));Ih.displayName="SearchAutocomplete";const Ot=E("Show",e=>{let t=null,n=null;return qi.forEach(e.children,r=>{const o=r.props.condition;o===void 0?n=r:!t&&o===!0&&(t=r)}),u.jsx(u.Fragment,{children:t||n})});Ot.displayName="Show",Ot.When=({condition:e,children:t})=>u.jsx(u.Fragment,{children:e&&t}),Ot.Else=({render:e,children:t})=>u.jsx(u.Fragment,{children:e||t});function Ea(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Sa(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Ea(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Ea(e[o],null)}}}}function ke(...e){return g.useCallback(Sa(...e),e)}function Vo(e){const t=$h(e),n=g.forwardRef((r,o)=>{const{children:i,...s}=r,a=g.Children.toArray(i),c=a.find(Fh);if(c){const l=c.props.children,d=a.map(p=>p===c?g.Children.count(l)>1?g.Children.only(null):g.isValidElement(l)?l.props.children:null:p);return u.jsx(t,{...s,ref:o,children:g.isValidElement(l)?g.cloneElement(l,void 0,d):null})}return u.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var Nh=Vo("Slot");function $h(e){const t=g.forwardRef((n,r)=>{const{children:o,...i}=n;if(g.isValidElement(o)){const s=Uh(o),a=Bh(i,o.props);return o.type!==g.Fragment&&(a.ref=r?Sa(r,s):s),g.cloneElement(o,a)}return g.Children.count(o)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ta=Symbol("radix.slottable");function Mh(e){const t=({children:n})=>u.jsx(u.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Ta,t}function Fh(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ta}function Bh(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const c=i(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Uh(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Aa={SkeletonListContainer:"SkeletonListContainer__MKJhE",Skeleton:"Skeleton__Ovpiw"},Go=E("Skeleton",B((e,t)=>{const{children:n,className:r,loading:o,height:i=48,width:s,borderRadius:a,style:c,...l}=e;if(!o&&n)return n;const d=so(n)?Nh:"span";return u.jsx(d,{ref:t,"aria-hidden":!0,className:j(Aa.Skeleton,r),style:{...c,width:s,minWidth:s,height:i,borderRadius:a},"data-inline-skeleton":so(n)?void 0:!0,tabIndex:-1,...l,children:n})}));Go.displayName="Skeleton";const zh=E("SkeletonList",e=>{const{numberOfItems:t,itemsGap:n=2,itemProps:r}=e,o=Array.from({length:t},(i,s)=>s+1);return u.jsx("div",{className:j(Aa.SkeletonListContainer),style:{gap:n},children:o.map(i=>u.jsx(Go,{loading:!0,...r},i))})});zh.displayName="SkeletonList";function ve(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Hh(e,t){const n=g.createContext(t),r=i=>{const{children:s,...a}=i,c=g.useMemo(()=>a,Object.values(a));return u.jsx(n.Provider,{value:c,children:s})};r.displayName=e+"Provider";function o(i){const s=g.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function qo(e,t=[]){let n=[];function r(i,s){const a=g.createContext(s),c=n.length;n=[...n,s];const l=p=>{var _;const{scope:h,children:m,...w}=p,f=((_=h==null?void 0:h[e])==null?void 0:_[c])||a,v=g.useMemo(()=>w,Object.values(w));return u.jsx(f.Provider,{value:v,children:m})};l.displayName=i+"Provider";function d(p,h){var f;const m=((f=h==null?void 0:h[e])==null?void 0:f[c])||a,w=g.useContext(m);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[l,d]}const o=()=>{const i=n.map(s=>g.createContext(s));return function(a){const c=(a==null?void 0:a[e])||i;return g.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,Wh(o,...t)]}function Wh(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:c,scopeName:l})=>{const p=c(i)[`__scope${l}`];return{...a,...p}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var Vh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ye=Vh.reduce((e,t)=>{const n=Vo(`Primitive.${t}`),r=g.forwardRef((o,i)=>{const{asChild:s,...a}=o,c=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(c,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Gh(e,t){e&&co.flushSync(()=>e.dispatchEvent(t))}function Zt(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function qh(e,t=globalThis==null?void 0:globalThis.document){const n=Zt(e);g.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Qh="DismissableLayer",Qo="dismissableLayer.update",Yh="dismissableLayer.pointerDownOutside",Kh="dismissableLayer.focusOutside",Pa,Ra=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Yo=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,l=g.useContext(Ra),[d,p]=g.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=g.useState({}),w=ke(t,A=>p(A)),f=Array.from(l.layers),[v]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),_=f.indexOf(v),x=d?f.indexOf(d):-1,C=l.layersWithOutsidePointerEventsDisabled.size>0,S=x>=_,T=Jh(A=>{const N=A.target,$=[...l.branches].some(M=>M.contains(N));!S||$||(o==null||o(A),s==null||s(A),A.defaultPrevented||a==null||a())},h),R=ep(A=>{const N=A.target;[...l.branches].some(M=>M.contains(N))||(i==null||i(A),s==null||s(A),A.defaultPrevented||a==null||a())},h);return qh(A=>{x===l.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},h),g.useEffect(()=>{if(d)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Pa=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),Oa(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Pa)}},[d,h,n,l]),g.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),Oa())},[d,l]),g.useEffect(()=>{const A=()=>m({});return document.addEventListener(Qo,A),()=>document.removeEventListener(Qo,A)},[]),u.jsx(ye.div,{...c,ref:w,style:{pointerEvents:C?S?"auto":"none":void 0,...e.style},onFocusCapture:ve(e.onFocusCapture,R.onFocusCapture),onBlurCapture:ve(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:ve(e.onPointerDownCapture,T.onPointerDownCapture)})});Yo.displayName=Qh;var Zh="DismissableLayerBranch",Xh=g.forwardRef((e,t)=>{const n=g.useContext(Ra),r=g.useRef(null),o=ke(t,r);return g.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),u.jsx(ye.div,{...e,ref:o})});Xh.displayName=Zh;function Jh(e,t=globalThis==null?void 0:globalThis.document){const n=Zt(e),r=g.useRef(!1),o=g.useRef(()=>{});return g.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){ka(Yh,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ep(e,t=globalThis==null?void 0:globalThis.document){const n=Zt(e),r=g.useRef(!1);return g.useEffect(()=>{const o=i=>{i.target&&!r.current&&ka(Kh,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Oa(){const e=new CustomEvent(Qo);document.dispatchEvent(e)}function ka(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Gh(o,i):o.dispatchEvent(i)}var ut=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},tp=g[" useId ".trim().toString()]||(()=>{}),np=0;function Cr(e){const[t,n]=g.useState(tp());return ut(()=>{n(r=>r??String(np++))},[e]),t?`radix-${t}`:""}const rp=["top","right","bottom","left"],dt=Math.min,Ee=Math.max,Er=Math.round,Sr=Math.floor,Fe=e=>({x:e,y:e}),op={left:"right",right:"left",bottom:"top",top:"bottom"},ip={start:"end",end:"start"};function Ko(e,t,n){return Ee(e,dt(t,n))}function Ke(e,t){return typeof e=="function"?e(t):e}function Ze(e){return e.split("-")[0]}function Xt(e){return e.split("-")[1]}function Zo(e){return e==="x"?"y":"x"}function Xo(e){return e==="y"?"height":"width"}const sp=new Set(["top","bottom"]);function Be(e){return sp.has(Ze(e))?"y":"x"}function Jo(e){return Zo(Be(e))}function ap(e,t,n){n===void 0&&(n=!1);const r=Xt(e),o=Jo(e),i=Xo(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Tr(s)),[s,Tr(s)]}function cp(e){const t=Tr(e);return[ei(e),t,ei(t)]}function ei(e){return e.replace(/start|end/g,t=>ip[t])}const ja=["left","right"],Da=["right","left"],lp=["top","bottom"],up=["bottom","top"];function dp(e,t,n){switch(e){case"top":case"bottom":return n?t?Da:ja:t?ja:Da;case"left":case"right":return t?lp:up;default:return[]}}function fp(e,t,n,r){const o=Xt(e);let i=dp(Ze(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(ei)))),i}function Tr(e){return e.replace(/left|right|bottom|top/g,t=>op[t])}function hp(e){return{top:0,right:0,bottom:0,left:0,...e}}function La(e){return typeof e!="number"?hp(e):{top:e,right:e,bottom:e,left:e}}function Ar(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ia(e,t,n){let{reference:r,floating:o}=e;const i=Be(t),s=Jo(t),a=Xo(s),c=Ze(t),l=i==="y",d=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let m;switch(c){case"top":m={x:d,y:r.y-o.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:p};break;case"left":m={x:r.x-o.width,y:p};break;default:m={x:r.x,y:r.y}}switch(Xt(t)){case"start":m[s]-=h*(n&&l?-1:1);break;case"end":m[s]+=h*(n&&l?-1:1);break}return m}const pp=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=Ia(l,r,c),h=r,m={},w=0;for(let f=0;f<a.length;f++){const{name:v,fn:_}=a[f],{x,y:C,data:S,reset:T}=await _({x:d,y:p,initialPlacement:r,placement:h,strategy:o,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});d=x??d,p=C??p,m={...m,[v]:{...m[v],...S}},T&&w<=50&&(w++,typeof T=="object"&&(T.placement&&(h=T.placement),T.rects&&(l=T.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):T.rects),{x:d,y:p}=Ia(l,h,c)),f=-1)}return{x:d,y:p,placement:h,strategy:o,middlewareData:m}};async function Nn(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:m=0}=Ke(t,e),w=La(m),v=a[h?p==="floating"?"reference":"floating":p],_=Ar(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:d,strategy:c})),x=p==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),S=await(i.isElement==null?void 0:i.isElement(C))?await(i.getScale==null?void 0:i.getScale(C))||{x:1,y:1}:{x:1,y:1},T=Ar(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:C,strategy:c}):x);return{top:(_.top-T.top+w.top)/S.y,bottom:(T.bottom-_.bottom+w.bottom)/S.y,left:(_.left-T.left+w.left)/S.x,right:(T.right-_.right+w.right)/S.x}}const mp=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:d=0}=Ke(e,t)||{};if(l==null)return{};const p=La(d),h={x:n,y:r},m=Jo(o),w=Xo(m),f=await s.getDimensions(l),v=m==="y",_=v?"top":"left",x=v?"bottom":"right",C=v?"clientHeight":"clientWidth",S=i.reference[w]+i.reference[m]-h[m]-i.floating[w],T=h[m]-i.reference[m],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let A=R?R[C]:0;(!A||!await(s.isElement==null?void 0:s.isElement(R)))&&(A=a.floating[C]||i.floating[w]);const N=S/2-T/2,$=A/2-f[w]/2-1,M=dt(p[_],$),Z=dt(p[x],$),X=M,V=A-f[w]-Z,Y=A/2-f[w]/2+N,ce=Ko(X,Y,V),re=!c.arrow&&Xt(o)!=null&&Y!==ce&&i.reference[w]/2-(Y<X?M:Z)-f[w]/2<0,oe=re?Y<X?Y-X:Y-V:0;return{[m]:h[m]+oe,data:{[m]:ce,centerOffset:Y-ce-oe,...re&&{alignmentOffset:oe}},reset:re}}}),gp=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:f=!0,...v}=Ke(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const _=Ze(o),x=Be(a),C=Ze(a)===a,S=await(c.isRTL==null?void 0:c.isRTL(l.floating)),T=h||(C||!f?[Tr(a)]:cp(a)),R=w!=="none";!h&&R&&T.push(...fp(a,f,w,S));const A=[a,...T],N=await Nn(t,v),$=[];let M=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&$.push(N[_]),p){const Y=ap(o,s,S);$.push(N[Y[0]],N[Y[1]])}if(M=[...M,{placement:o,overflows:$}],!$.every(Y=>Y<=0)){var Z,X;const Y=(((Z=i.flip)==null?void 0:Z.index)||0)+1,ce=A[Y];if(ce&&(!(p==="alignment"?x!==Be(ce):!1)||M.every(U=>Be(U.placement)===x?U.overflows[0]>0:!0)))return{data:{index:Y,overflows:M},reset:{placement:ce}};let re=(X=M.filter(oe=>oe.overflows[0]<=0).sort((oe,U)=>oe.overflows[1]-U.overflows[1])[0])==null?void 0:X.placement;if(!re)switch(m){case"bestFit":{var V;const oe=(V=M.filter(U=>{if(R){const le=Be(U.placement);return le===x||le==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(le=>le>0).reduce((le,Te)=>le+Te,0)]).sort((U,le)=>U[1]-le[1])[0])==null?void 0:V[0];oe&&(re=oe);break}case"initialPlacement":re=a;break}if(o!==re)return{reset:{placement:re}}}return{}}}};function Na(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $a(e){return rp.some(t=>e[t]>=0)}const vp=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ke(e,t);switch(r){case"referenceHidden":{const i=await Nn(t,{...o,elementContext:"reference"}),s=Na(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:$a(s)}}}case"escaped":{const i=await Nn(t,{...o,altBoundary:!0}),s=Na(i,n.floating);return{data:{escapedOffsets:s,escaped:$a(s)}}}default:return{}}}}},Ma=new Set(["left","top"]);async function yp(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Ze(n),a=Xt(n),c=Be(n)==="y",l=Ma.has(s)?-1:1,d=i&&c?-1:1,p=Ke(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof w=="number"&&(m=a==="end"?w*-1:w),c?{x:m*d,y:h*l}:{x:h*l,y:m*d}}const bp=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,c=await yp(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},wp=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:_,y:x}=v;return{x:_,y:x}}},...c}=Ke(e,t),l={x:n,y:r},d=await Nn(t,c),p=Be(Ze(o)),h=Zo(p);let m=l[h],w=l[p];if(i){const v=h==="y"?"top":"left",_=h==="y"?"bottom":"right",x=m+d[v],C=m-d[_];m=Ko(x,m,C)}if(s){const v=p==="y"?"top":"left",_=p==="y"?"bottom":"right",x=w+d[v],C=w-d[_];w=Ko(x,w,C)}const f=a.fn({...t,[h]:m,[p]:w});return{...f,data:{x:f.x-n,y:f.y-r,enabled:{[h]:i,[p]:s}}}}}},_p=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Ke(e,t),d={x:n,y:r},p=Be(o),h=Zo(p);let m=d[h],w=d[p];const f=Ke(a,t),v=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(c){const C=h==="y"?"height":"width",S=i.reference[h]-i.floating[C]+v.mainAxis,T=i.reference[h]+i.reference[C]-v.mainAxis;m<S?m=S:m>T&&(m=T)}if(l){var _,x;const C=h==="y"?"width":"height",S=Ma.has(Ze(o)),T=i.reference[p]-i.floating[C]+(S&&((_=s.offset)==null?void 0:_[p])||0)+(S?0:v.crossAxis),R=i.reference[p]+i.reference[C]+(S?0:((x=s.offset)==null?void 0:x[p])||0)-(S?v.crossAxis:0);w<T?w=T:w>R&&(w=R)}return{[h]:m,[p]:w}}}},xp=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:c=()=>{},...l}=Ke(e,t),d=await Nn(t,l),p=Ze(o),h=Xt(o),m=Be(o)==="y",{width:w,height:f}=i.floating;let v,_;p==="top"||p==="bottom"?(v=p,_=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(_=p,v=h==="end"?"top":"bottom");const x=f-d.top-d.bottom,C=w-d.left-d.right,S=dt(f-d[v],x),T=dt(w-d[_],C),R=!t.middlewareData.shift;let A=S,N=T;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=x),R&&!h){const M=Ee(d.left,0),Z=Ee(d.right,0),X=Ee(d.top,0),V=Ee(d.bottom,0);m?N=w-2*(M!==0||Z!==0?M+Z:Ee(d.left,d.right)):A=f-2*(X!==0||V!==0?X+V:Ee(d.top,d.bottom))}await c({...t,availableWidth:N,availableHeight:A});const $=await s.getDimensions(a.floating);return w!==$.width||f!==$.height?{reset:{rects:!0}}:{}}}};function Pr(){return typeof window<"u"}function Jt(e){return Fa(e)?(e.nodeName||"").toLowerCase():"#document"}function Se(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ue(e){var t;return(t=(Fa(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Fa(e){return Pr()?e instanceof Node||e instanceof Se(e).Node:!1}function je(e){return Pr()?e instanceof Element||e instanceof Se(e).Element:!1}function ze(e){return Pr()?e instanceof HTMLElement||e instanceof Se(e).HTMLElement:!1}function Ba(e){return!Pr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Se(e).ShadowRoot}const Cp=new Set(["inline","contents"]);function $n(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=De(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Cp.has(o)}const Ep=new Set(["table","td","th"]);function Sp(e){return Ep.has(Jt(e))}const Tp=[":popover-open",":modal"];function Rr(e){return Tp.some(t=>{try{return e.matches(t)}catch{return!1}})}const Ap=["transform","translate","scale","rotate","perspective"],Pp=["transform","translate","scale","rotate","perspective","filter"],Rp=["paint","layout","strict","content"];function ti(e){const t=ni(),n=je(e)?De(e):e;return Ap.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Pp.some(r=>(n.willChange||"").includes(r))||Rp.some(r=>(n.contain||"").includes(r))}function Op(e){let t=ft(e);for(;ze(t)&&!en(t);){if(ti(t))return t;if(Rr(t))return null;t=ft(t)}return null}function ni(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const kp=new Set(["html","body","#document"]);function en(e){return kp.has(Jt(e))}function De(e){return Se(e).getComputedStyle(e)}function Or(e){return je(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ft(e){if(Jt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ba(e)&&e.host||Ue(e);return Ba(t)?t.host:t}function Ua(e){const t=ft(e);return en(t)?e.ownerDocument?e.ownerDocument.body:e.body:ze(t)&&$n(t)?t:Ua(t)}function Mn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ua(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Se(o);if(i){const a=ri(s);return t.concat(s,s.visualViewport||[],$n(o)?o:[],a&&n?Mn(a):[])}return t.concat(o,Mn(o,[],n))}function ri(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function za(e){const t=De(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ze(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Er(n)!==i||Er(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function oi(e){return je(e)?e:e.contextElement}function tn(e){const t=oi(e);if(!ze(t))return Fe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=za(t);let s=(i?Er(n.width):n.width)/r,a=(i?Er(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const jp=Fe(0);function Ha(e){const t=Se(e);return!ni()||!t.visualViewport?jp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Dp(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Se(e)?!1:t}function kt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=oi(e);let s=Fe(1);t&&(r?je(r)&&(s=tn(r)):s=tn(e));const a=Dp(i,n,r)?Ha(i):Fe(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,d=o.width/s.x,p=o.height/s.y;if(i){const h=Se(i),m=r&&je(r)?Se(r):r;let w=h,f=ri(w);for(;f&&r&&m!==w;){const v=tn(f),_=f.getBoundingClientRect(),x=De(f),C=_.left+(f.clientLeft+parseFloat(x.paddingLeft))*v.x,S=_.top+(f.clientTop+parseFloat(x.paddingTop))*v.y;c*=v.x,l*=v.y,d*=v.x,p*=v.y,c+=C,l+=S,w=Se(f),f=ri(w)}}return Ar({width:d,height:p,x:c,y:l})}function ii(e,t){const n=Or(e).scrollLeft;return t?t.left+n:kt(Ue(e)).left+n}function Wa(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:ii(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function Lp(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Ue(r),a=t?Rr(t.floating):!1;if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=Fe(1);const d=Fe(0),p=ze(r);if((p||!p&&!i)&&((Jt(r)!=="body"||$n(s))&&(c=Or(r)),ze(r))){const m=kt(r);l=tn(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const h=s&&!p&&!i?Wa(s,c,!0):Fe(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+d.x+h.x,y:n.y*l.y-c.scrollTop*l.y+d.y+h.y}}function Ip(e){return Array.from(e.getClientRects())}function Np(e){const t=Ue(e),n=Or(e),r=e.ownerDocument.body,o=Ee(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ee(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+ii(e);const a=-n.scrollTop;return De(r).direction==="rtl"&&(s+=Ee(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function $p(e,t){const n=Se(e),r=Ue(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const l=ni();(!l||l&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a,y:c}}const Mp=new Set(["absolute","fixed"]);function Fp(e,t){const n=kt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ze(e)?tn(e):Fe(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=o*i.x,l=r*i.y;return{width:s,height:a,x:c,y:l}}function Va(e,t,n){let r;if(t==="viewport")r=$p(e,n);else if(t==="document")r=Np(Ue(e));else if(je(t))r=Fp(t,n);else{const o=Ha(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ar(r)}function Ga(e,t){const n=ft(e);return n===t||!je(n)||en(n)?!1:De(n).position==="fixed"||Ga(n,t)}function Bp(e,t){const n=t.get(e);if(n)return n;let r=Mn(e,[],!1).filter(a=>je(a)&&Jt(a)!=="body"),o=null;const i=De(e).position==="fixed";let s=i?ft(e):e;for(;je(s)&&!en(s);){const a=De(s),c=ti(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&Mp.has(o.position)||$n(s)&&!c&&Ga(e,s))?r=r.filter(d=>d!==s):o=a,s=ft(s)}return t.set(e,r),r}function Up(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Rr(t)?[]:Bp(t,this._c):[].concat(n),r],a=s[0],c=s.reduce((l,d)=>{const p=Va(t,d,o);return l.top=Ee(p.top,l.top),l.right=dt(p.right,l.right),l.bottom=dt(p.bottom,l.bottom),l.left=Ee(p.left,l.left),l},Va(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function zp(e){const{width:t,height:n}=za(e);return{width:t,height:n}}function Hp(e,t,n){const r=ze(t),o=Ue(t),i=n==="fixed",s=kt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Fe(0);function l(){c.x=ii(o)}if(r||!r&&!i)if((Jt(t)!=="body"||$n(o))&&(a=Or(t)),r){const m=kt(t,!0,i,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else o&&l();i&&!r&&o&&l();const d=o&&!r&&!i?Wa(o,a):Fe(0),p=s.left+a.scrollLeft-c.x-d.x,h=s.top+a.scrollTop-c.y-d.y;return{x:p,y:h,width:s.width,height:s.height}}function si(e){return De(e).position==="static"}function qa(e,t){if(!ze(e)||De(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ue(e)===n&&(n=n.ownerDocument.body),n}function Qa(e,t){const n=Se(e);if(Rr(e))return n;if(!ze(e)){let o=ft(e);for(;o&&!en(o);){if(je(o)&&!si(o))return o;o=ft(o)}return n}let r=qa(e,t);for(;r&&Sp(r)&&si(r);)r=qa(r,t);return r&&en(r)&&si(r)&&!ti(r)?n:r||Op(e)||n}const Wp=async function(e){const t=this.getOffsetParent||Qa,n=this.getDimensions,r=await n(e.floating);return{reference:Hp(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Vp(e){return De(e).direction==="rtl"}const Gp={convertOffsetParentRelativeRectToViewportRelativeRect:Lp,getDocumentElement:Ue,getClippingRect:Up,getOffsetParent:Qa,getElementRects:Wp,getClientRects:Ip,getDimensions:zp,getScale:tn,isElement:je,isRTL:Vp};function Ya(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qp(e,t){let n=null,r;const o=Ue(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const l=e.getBoundingClientRect(),{left:d,top:p,width:h,height:m}=l;if(a||t(),!h||!m)return;const w=Sr(p),f=Sr(o.clientWidth-(d+h)),v=Sr(o.clientHeight-(p+m)),_=Sr(d),C={rootMargin:-w+"px "+-f+"px "+-v+"px "+-_+"px",threshold:Ee(0,dt(1,c))||1};let S=!0;function T(R){const A=R[0].intersectionRatio;if(A!==c){if(!S)return s();A?s(!1,A):r=setTimeout(()=>{s(!1,1e-7)},1e3)}A===1&&!Ya(l,e.getBoundingClientRect())&&s(),S=!1}try{n=new IntersectionObserver(T,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(T,C)}n.observe(e)}return s(!0),i}function Qp(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=oi(e),d=o||i?[...l?Mn(l):[],...Mn(t)]:[];d.forEach(_=>{o&&_.addEventListener("scroll",n,{passive:!0}),i&&_.addEventListener("resize",n)});const p=l&&a?qp(l,n):null;let h=-1,m=null;s&&(m=new ResizeObserver(_=>{let[x]=_;x&&x.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var C;(C=m)==null||C.observe(t)})),n()}),l&&!c&&m.observe(l),m.observe(t));let w,f=c?kt(e):null;c&&v();function v(){const _=kt(e);f&&!Ya(f,_)&&n(),f=_,w=requestAnimationFrame(v)}return n(),()=>{var _;d.forEach(x=>{o&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),p==null||p(),(_=m)==null||_.disconnect(),m=null,c&&cancelAnimationFrame(w)}}const Yp=bp,Kp=wp,Zp=gp,Xp=xp,Jp=vp,Ka=mp,e1=_p,t1=(e,t,n)=>{const r=new Map,o={platform:Gp,...n},i={...o.platform,_c:r};return pp(e,t,{...o,platform:i})};var n1=typeof document<"u",r1=function(){},kr=n1?Qi:r1;function jr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!jr(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!jr(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Za(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xa(e,t){const n=Za(e);return Math.round(t*n)/n}function ai(e){const t=g.useRef(e);return kr(()=>{t.current=e}),t}function o1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[d,p]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=g.useState(r);jr(h,r)||m(r);const[w,f]=g.useState(null),[v,_]=g.useState(null),x=g.useCallback(U=>{U!==R.current&&(R.current=U,f(U))},[]),C=g.useCallback(U=>{U!==A.current&&(A.current=U,_(U))},[]),S=i||w,T=s||v,R=g.useRef(null),A=g.useRef(null),N=g.useRef(d),$=c!=null,M=ai(c),Z=ai(o),X=ai(l),V=g.useCallback(()=>{if(!R.current||!A.current)return;const U={placement:t,strategy:n,middleware:h};Z.current&&(U.platform=Z.current),t1(R.current,A.current,U).then(le=>{const Te={...le,isPositioned:X.current!==!1};Y.current&&!jr(N.current,Te)&&(N.current=Te,co.flushSync(()=>{p(Te)}))})},[h,t,n,Z,X]);kr(()=>{l===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,p(U=>({...U,isPositioned:!1})))},[l]);const Y=g.useRef(!1);kr(()=>(Y.current=!0,()=>{Y.current=!1}),[]),kr(()=>{if(S&&(R.current=S),T&&(A.current=T),S&&T){if(M.current)return M.current(S,T,V);V()}},[S,T,V,M,$]);const ce=g.useMemo(()=>({reference:R,floating:A,setReference:x,setFloating:C}),[x,C]),re=g.useMemo(()=>({reference:S,floating:T}),[S,T]),oe=g.useMemo(()=>{const U={position:n,left:0,top:0};if(!re.floating)return U;const le=Xa(re.floating,d.x),Te=Xa(re.floating,d.y);return a?{...U,transform:"translate("+le+"px, "+Te+"px)",...Za(re.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:le,top:Te}},[n,a,re.floating,d.x,d.y]);return g.useMemo(()=>({...d,update:V,refs:ce,elements:re,floatingStyles:oe}),[d,V,ce,re,oe])}const i1=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ka({element:r.current,padding:o}).fn(n):{}:r?Ka({element:r,padding:o}).fn(n):{}}}},s1=(e,t)=>({...Yp(e),options:[e,t]}),a1=(e,t)=>({...Kp(e),options:[e,t]}),c1=(e,t)=>({...e1(e),options:[e,t]}),l1=(e,t)=>({...Zp(e),options:[e,t]}),u1=(e,t)=>({...Xp(e),options:[e,t]}),d1=(e,t)=>({...Jp(e),options:[e,t]}),f1=(e,t)=>({...i1(e),options:[e,t]});var h1="Arrow",Ja=g.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return u.jsx(ye.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ja.displayName=h1;var p1=Ja;function m1(e){const[t,n]=g.useState(void 0);return ut(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;s=l.inlineSize,a=l.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ci="Popper",[ec,tc]=qo(ci),[g1,nc]=ec(ci),rc=e=>{const{__scopePopper:t,children:n}=e,[r,o]=g.useState(null);return u.jsx(g1,{scope:t,anchor:r,onAnchorChange:o,children:n})};rc.displayName=ci;var oc="PopperAnchor",ic=g.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=nc(oc,n),s=g.useRef(null),a=ke(t,s);return g.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:u.jsx(ye.div,{...o,ref:a})});ic.displayName=oc;var li="PopperContent",[v1,y1]=ec(li),sc=g.forwardRef((e,t)=>{var xn,Ht,Cn,Wt,eo,qn;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:w,...f}=e,v=nc(li,n),[_,x]=g.useState(null),C=ke(t,Vt=>x(Vt)),[S,T]=g.useState(null),R=m1(S),A=(R==null?void 0:R.width)??0,N=(R==null?void 0:R.height)??0,$=r+(i!=="center"?"-"+i:""),M=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},Z=Array.isArray(l)?l:[l],X=Z.length>0,V={padding:M,boundary:Z.filter(w1),altBoundary:X},{refs:Y,floatingStyles:ce,placement:re,isPositioned:oe,middlewareData:U}=o1({strategy:"fixed",placement:$,whileElementsMounted:(...Vt)=>Qp(...Vt,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[s1({mainAxis:o+N,alignmentAxis:s}),c&&a1({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?c1():void 0,...V}),c&&l1({...V}),u1({...V,apply:({elements:Vt,rects:to,availableWidth:En,availableHeight:Gt})=>{const{width:no,height:ro}=to.reference,rt=Vt.floating.style;rt.setProperty("--radix-popper-available-width",`${En}px`),rt.setProperty("--radix-popper-available-height",`${Gt}px`),rt.setProperty("--radix-popper-anchor-width",`${no}px`),rt.setProperty("--radix-popper-anchor-height",`${ro}px`)}}),S&&f1({element:S,padding:a}),_1({arrowWidth:A,arrowHeight:N}),h&&d1({strategy:"referenceHidden",...V})]}),[le,Te]=lc(re),zt=Zt(w);ut(()=>{oe&&(zt==null||zt())},[oe,zt]);const Xr=(xn=U.arrow)==null?void 0:xn.x,Jr=(Ht=U.arrow)==null?void 0:Ht.y,ki=((Cn=U.arrow)==null?void 0:Cn.centerOffset)!==0,[ji,Gn]=g.useState();return ut(()=>{_&&Gn(window.getComputedStyle(_).zIndex)},[_]),u.jsx("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...ce,transform:oe?ce.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ji,"--radix-popper-transform-origin":[(Wt=U.transformOrigin)==null?void 0:Wt.x,(eo=U.transformOrigin)==null?void 0:eo.y].join(" "),...((qn=U.hide)==null?void 0:qn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(v1,{scope:n,placedSide:le,onArrowChange:T,arrowX:Xr,arrowY:Jr,shouldHideArrow:ki,children:u.jsx(ye.div,{"data-side":le,"data-align":Te,...f,ref:C,style:{...f.style,animation:oe?void 0:"none"}})})})});sc.displayName=li;var ac="PopperArrow",b1={top:"bottom",right:"left",bottom:"top",left:"right"},cc=g.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=y1(ac,r),s=b1[i.placedSide];return u.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:u.jsx(p1,{...o,ref:n,style:{...o.style,display:"block"}})})});cc.displayName=ac;function w1(e){return e!==null}var _1=e=>({name:"transformOrigin",options:e,fn(t){var v,_,x;const{placement:n,rects:r,middlewareData:o}=t,s=((v=o.arrow)==null?void 0:v.centerOffset)!==0,a=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[l,d]=lc(n),p={start:"0%",center:"50%",end:"100%"}[d],h=(((_=o.arrow)==null?void 0:_.x)??0)+a/2,m=(((x=o.arrow)==null?void 0:x.y)??0)+c/2;let w="",f="";return l==="bottom"?(w=s?p:`${h}px`,f=`${-c}px`):l==="top"?(w=s?p:`${h}px`,f=`${r.floating.height+c}px`):l==="right"?(w=`${-c}px`,f=s?p:`${m}px`):l==="left"&&(w=`${r.floating.width+c}px`,f=s?p:`${m}px`),{data:{x:w,y:f}}}});function lc(e){const[t,n="center"]=e.split("-");return[t,n]}var x1=rc,C1=ic,E1=sc,S1=cc,T1="Portal",ui=g.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=g.useState(!1);ut(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?Ki.createPortal(u.jsx(ye.div,{...r,ref:t}),s):null});ui.displayName=T1;function A1(e,t){return g.useReducer((n,r)=>t[n][r]??n,e)}var nn=e=>{const{present:t,children:n}=e,r=P1(t),o=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),i=ke(r.ref,R1(o));return typeof n=="function"||r.isPresent?g.cloneElement(o,{ref:i}):null};nn.displayName="Presence";function P1(e){const[t,n]=g.useState(),r=g.useRef(null),o=g.useRef(e),i=g.useRef("none"),s=e?"mounted":"unmounted",[a,c]=A1(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const l=Dr(r.current);i.current=a==="mounted"?l:"none"},[a]),ut(()=>{const l=r.current,d=o.current;if(d!==e){const h=i.current,m=Dr(l);e?c("MOUNT"):m==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(d&&h!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ut(()=>{if(t){let l;const d=t.ownerDocument.defaultView??window,p=m=>{const f=Dr(r.current).includes(m.animationName);if(m.target===t&&f&&(c("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",l=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=m=>{m.target===t&&(i.current=Dr(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:g.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function Dr(e){return(e==null?void 0:e.animationName)||"none"}function R1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var O1=g[" useInsertionEffect ".trim().toString()]||ut;function uc({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=k1({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const d=g.useRef(e!==void 0);g.useEffect(()=>{const p=d.current;p!==a&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const l=g.useCallback(d=>{var p;if(a){const h=j1(d)?d(e):d;h!==e&&((p=s.current)==null||p.call(s,h))}else i(d)},[a,e,i,s]);return[c,l]}function k1({defaultProp:e,onChange:t}){const[n,r]=g.useState(e),o=g.useRef(n),i=g.useRef(t);return O1(()=>{i.current=t},[t]),g.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function j1(e){return typeof e=="function"}var D1=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),L1="VisuallyHidden",dc=g.forwardRef((e,t)=>u.jsx(ye.span,{...e,ref:t,style:{...D1,...e.style}}));dc.displayName=L1;var I1=dc,[Lr,Py]=qo("Tooltip",[tc]),Ir=tc(),fc="TooltipProvider",N1=700,di="tooltip.open",[$1,fi]=Lr(fc),hc=e=>{const{__scopeTooltip:t,delayDuration:n=N1,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=g.useRef(!0),a=g.useRef(!1),c=g.useRef(0);return g.useEffect(()=>{const l=c.current;return()=>window.clearTimeout(l)},[]),u.jsx($1,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:g.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:g.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:g.useCallback(l=>{a.current=l},[]),disableHoverableContent:o,children:i})};hc.displayName=fc;var Fn="Tooltip",[M1,Bn]=Lr(Fn),pc=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,c=fi(Fn,e.__scopeTooltip),l=Ir(t),[d,p]=g.useState(null),h=Cr(),m=g.useRef(0),w=s??c.disableHoverableContent,f=a??c.delayDuration,v=g.useRef(!1),[_,x]=uc({prop:r,defaultProp:o??!1,onChange:A=>{A?(c.onOpen(),document.dispatchEvent(new CustomEvent(di))):c.onClose(),i==null||i(A)},caller:Fn}),C=g.useMemo(()=>_?v.current?"delayed-open":"instant-open":"closed",[_]),S=g.useCallback(()=>{window.clearTimeout(m.current),m.current=0,v.current=!1,x(!0)},[x]),T=g.useCallback(()=>{window.clearTimeout(m.current),m.current=0,x(!1)},[x]),R=g.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{v.current=!0,x(!0),m.current=0},f)},[f,x]);return g.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),u.jsx(x1,{...l,children:u.jsx(M1,{scope:t,contentId:h,open:_,stateAttribute:C,trigger:d,onTriggerChange:p,onTriggerEnter:g.useCallback(()=>{c.isOpenDelayedRef.current?R():S()},[c.isOpenDelayedRef,R,S]),onTriggerLeave:g.useCallback(()=>{w?T():(window.clearTimeout(m.current),m.current=0)},[T,w]),onOpen:S,onClose:T,disableHoverableContent:w,children:n})})};pc.displayName=Fn;var hi="TooltipTrigger",mc=g.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Bn(hi,n),i=fi(hi,n),s=Ir(n),a=g.useRef(null),c=ke(t,a,o.onTriggerChange),l=g.useRef(!1),d=g.useRef(!1),p=g.useCallback(()=>l.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),u.jsx(C1,{asChild:!0,...s,children:u.jsx(ye.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:ve(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:ve(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:ve(e.onPointerDown,()=>{o.open&&o.onClose(),l.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:ve(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:ve(e.onBlur,o.onClose),onClick:ve(e.onClick,o.onClose)})})});mc.displayName=hi;var pi="TooltipPortal",[F1,B1]=Lr(pi,{forceMount:void 0}),gc=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=Bn(pi,t);return u.jsx(F1,{scope:t,forceMount:n,children:u.jsx(nn,{present:n||i.open,children:u.jsx(ui,{asChild:!0,container:o,children:r})})})};gc.displayName=pi;var rn="TooltipContent",vc=g.forwardRef((e,t)=>{const n=B1(rn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=Bn(rn,e.__scopeTooltip);return u.jsx(nn,{present:r||s.open,children:s.disableHoverableContent?u.jsx(yc,{side:o,...i,ref:t}):u.jsx(U1,{side:o,...i,ref:t})})}),U1=g.forwardRef((e,t)=>{const n=Bn(rn,e.__scopeTooltip),r=fi(rn,e.__scopeTooltip),o=g.useRef(null),i=ke(t,o),[s,a]=g.useState(null),{trigger:c,onClose:l}=n,d=o.current,{onPointerInTransitChange:p}=r,h=g.useCallback(()=>{a(null),p(!1)},[p]),m=g.useCallback((w,f)=>{const v=w.currentTarget,_={x:w.clientX,y:w.clientY},x=V1(_,v.getBoundingClientRect()),C=G1(_,x),S=q1(f.getBoundingClientRect()),T=Y1([...C,...S]);a(T),p(!0)},[p]);return g.useEffect(()=>()=>h(),[h]),g.useEffect(()=>{if(c&&d){const w=v=>m(v,d),f=v=>m(v,c);return c.addEventListener("pointerleave",w),d.addEventListener("pointerleave",f),()=>{c.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",f)}}},[c,d,m,h]),g.useEffect(()=>{if(s){const w=f=>{const v=f.target,_={x:f.clientX,y:f.clientY},x=(c==null?void 0:c.contains(v))||(d==null?void 0:d.contains(v)),C=!Q1(_,s);x?h():C&&(h(),l())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[c,d,s,l,h]),u.jsx(yc,{...e,ref:i})}),[z1,H1]=Lr(Fn,{isInside:!1}),W1=Mh("TooltipContent"),yc=g.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,c=Bn(rn,n),l=Ir(n),{onClose:d}=c;return g.useEffect(()=>(document.addEventListener(di,d),()=>document.removeEventListener(di,d)),[d]),g.useEffect(()=>{if(c.trigger){const p=h=>{const m=h.target;m!=null&&m.contains(c.trigger)&&d()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,d]),u.jsx(Yo,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:d,children:u.jsxs(E1,{"data-state":c.stateAttribute,...l,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(W1,{children:r}),u.jsx(z1,{scope:n,isInside:!0,children:u.jsx(I1,{id:c.contentId,role:"tooltip",children:o||r})})]})})});vc.displayName=rn;var bc="TooltipArrow",wc=g.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ir(n);return H1(bc,n).isInside?null:u.jsx(S1,{...o,...r,ref:t})});wc.displayName=bc;function V1(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function G1(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function q1(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Q1(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i],c=t[s],l=a.x,d=a.y,p=c.x,h=c.y;d>r!=h>r&&n<(p-l)*(r-d)/(h-d)+l&&(o=!o)}return o}function Y1(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),K1(t)}function K1(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Z1=hc,X1=pc,J1=mc,em=gc,tm=vc,nm=wc;const _c={tooltip:"tooltip__nUuSh",tooltipArrow:"tooltipArrow__W2w-f"},rm=E("Tooltip",({children:e,open:t,displayName:n,tooltipContent:r,className:o,disabled:i,delayDuration:s=300,side:a="right",sideOffset:c=0})=>{const[l,d]=L(!1),p=t!==void 0,m=i?!1:p?t:l,w=f=>{i||p||d(f)};return u.jsx(Z1,{delayDuration:s,children:u.jsxs(X1,{open:m,onOpenChange:w,children:[u.jsx(J1,{asChild:!0,children:e}),u.jsx(em,{children:u.jsxs(tm,{className:j(_c.tooltip,o),side:a,sideOffset:c,children:[n,r,u.jsx(nm,{className:_c.tooltipArrow})]})})]})})});rm.displayName="Tooltip";const xc={spinner:"spinner__qa7F6",rotate:"rotate__EqlXe","spinner-dark":"spinner-dark__9A9-q",spinnerDark:"spinner-dark__9A9-q","spinner-white":"spinner-white__gRbtI",spinnerWhite:"spinner-white__gRbtI","spinner-success":"spinner-success__otWGm",spinnerSuccess:"spinner-success__otWGm","spinner-danger":"spinner-danger__Bq5DM",spinnerDanger:"spinner-danger__Bq5DM","spinner-warning":"spinner-warning__U900K",spinnerWarning:"spinner-warning__U900K"},om=E("Spinner",({className:e,color:t="white",size:n=80,thickness:r})=>{const o=j(xc.spinner,xc[`spinner-${t}`],e),i=r??Math.max(n/12,2);return u.jsx("span",{style:{width:n,height:n,borderWidth:i},className:o})});om.displayName="Spinner";const Nr={switch:"switch__0b2av",disabled:"disabled__KpauE",checked:"checked__2-JV-",thumb:"thumb__fEuKD"},im=E("Switch",B(({checked:e,defaultChecked:t=!1,onCheckedChange:n,disabled:r=!1,id:o,className:i,name:s,"aria-label":a,"aria-labelledby":c,"aria-describedby":l,...d},p)=>{const[h,m]=Yn.useState(t),w=e!==void 0,f=w?!!e:h,v=()=>{if(r)return;const x=!f;w||m(x),n==null||n(x)},_=x=>{(x.key===" "||x.key==="Enter")&&(x.preventDefault(),v())};return u.jsx("button",{ref:p,type:"button",role:"switch","aria-checked":f,"aria-label":a,"aria-labelledby":c,"aria-describedby":l,disabled:r,id:o,name:s,className:j(Nr.switch,{[Nr.checked]:f,[Nr.disabled]:r}),onClick:v,onKeyDown:_,...d,children:u.jsx("span",{className:Nr.thumb,"aria-hidden":"true"})})}));im.displayName="Switch";const He={tabsRoot:"tabs-root__ELmdj",tabsList:"tabs-list__rc10N",tabsListHorizontal:"tabs-list--horizontal__e1YW4",tabsListVertical:"tabs-list--vertical__huK05",tabsTrigger:"tabs-trigger__D8R4R",tabsTriggerDisabled:"tabs-trigger--disabled__ezDWc",tabsTriggerHorizontal:"tabs-trigger--horizontal__4jBFV",tabsTriggerActive:"tabs-trigger--active__S-Z-S",tabsTriggerVertical:"tabs-trigger--vertical__dNVIZ",tabsContent:"tabs-content__1d77o"},Cc=Kn(null),mi=()=>{const e=Qt(Cc);if(!e)throw new Error("Tabs components must be used within a Tabs provider");return e},Zy=E("Tabs",({defaultValue:e,value:t,onValueChange:n,orientation:r="horizontal",className:o="",children:i})=>{const[s,a]=L(e||""),c=t!==void 0,l=c?t:s,d=p=>{c||a(p),n==null||n(p)};return u.jsx(Cc.Provider,{value:{value:l,onValueChange:d,orientation:r},children:u.jsx("div",{className:j(He.tabsRoot,o),children:i})})}),Xy=E("TabsList",({className:e="",children:t})=>{const{orientation:n}=mi(),r=ao(null),o=i=>{var l;const s=(l=r.current)==null?void 0:l.querySelectorAll('[role="tab"]:not([disabled])');if(!s)return;const a=Array.from(s).findIndex(d=>d===document.activeElement);let c=a;switch(i.key){case"ArrowLeft":n==="horizontal"&&(i.preventDefault(),c=a>0?a-1:s.length-1);break;case"ArrowRight":n==="horizontal"&&(i.preventDefault(),c=a<s.length-1?a+1:0);break;case"ArrowUp":n==="vertical"&&(i.preventDefault(),c=a>0?a-1:s.length-1);break;case"ArrowDown":n==="vertical"&&(i.preventDefault(),c=a<s.length-1?a+1:0);break;case"Home":i.preventDefault(),c=0;break;case"End":i.preventDefault(),c=s.length-1;break}if(c!==a){const d=s[c];d.focus(),d.click()}};return u.jsx("div",{ref:r,role:"tablist","aria-orientation":n,onKeyDown:o,className:j(He.tabsList,n==="horizontal"?He.tabsListHorizontal:He.tabsListVertical,e),children:t})}),Jy=E("TabsTrigger",({value:e,disabled:t=!1,className:n="",children:r})=>{const{value:o,onValueChange:i,orientation:s}=mi(),a=o===e,c=()=>{t||i(e)};return u.jsx("button",{role:"tab","aria-selected":a,"aria-controls":`content-${e}`,tabIndex:a?0:-1,disabled:t,onClick:c,className:j(He.tabsTrigger,s==="horizontal"?He.tabsTriggerHorizontal:He.tabsTriggerVertical,a&&He.tabsTriggerActive,t&&He.tabsTriggerDisabled,n),children:r})}),e0=E("TabsContent",({value:e,className:t="",children:n})=>{const{value:r}=mi();return r===e?u.jsx("div",{role:"tabpanel",id:`content-${e}`,"aria-labelledby":`trigger-${e}`,tabIndex:0,className:j(He.tabsContent,t),children:n}):null}),sm=E("EyeIcon",({className:e,state:t="open",onClick:n})=>t==="open"?u.jsxs("svg",{className:e,onClick:n,xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",viewBox:"0 0 14 14",fill:"none",children:[u.jsx("path",{d:"M1.41174 7.41635C1.3323 7.29056 1.29257 7.22766 1.27034 7.13065C1.25364 7.05778 1.25364 6.94287 1.27034 6.87C1.29257 6.77299 1.3323 6.71009 1.41174 6.58431C2.06823 5.54482 4.02232 2.91699 7.00024 2.91699C9.97815 2.91699 11.9322 5.54482 12.5887 6.5843C12.6682 6.71009 12.7079 6.77299 12.7301 6.87C12.7468 6.94287 12.7468 7.05778 12.7301 7.13065C12.7079 7.22766 12.6682 7.29056 12.5887 7.41635C11.9322 8.45584 9.97815 11.0837 7.00024 11.0837C4.02232 11.0837 2.06823 8.45584 1.41174 7.41635Z",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M7.00024 8.75033C7.96673 8.75033 8.75024 7.96682 8.75024 7.00033C8.75024 6.03383 7.96673 5.25033 7.00024 5.25033C6.03374 5.25033 5.25024 6.03383 5.25024 7.00033C5.25024 7.96682 6.03374 8.75033 7.00024 8.75033Z",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})]}):u.jsx("svg",{className:e,onClick:n,xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",viewBox:"0 0 14 14",fill:"none",children:u.jsx("path",{d:"M6.26672 2.97052C6.50379 2.93547 6.74835 2.91667 7.00024 2.91667C9.97816 2.91667 11.9323 5.54449 12.5887 6.58398C12.6682 6.70979 12.7079 6.7727 12.7302 6.86973C12.7469 6.94259 12.7468 7.05755 12.7301 7.13042C12.7079 7.22744 12.6679 7.29077 12.5879 7.41741C12.413 7.69425 12.1463 8.08331 11.793 8.50527M3.92252 3.9171C2.66131 4.77266 1.8051 5.9613 1.41231 6.58308C1.3325 6.70942 1.29259 6.7726 1.27035 6.86961C1.25364 6.94248 1.25363 7.05742 1.27033 7.13029C1.29257 7.22731 1.33229 7.29022 1.41174 7.41602C2.06823 8.45551 4.02232 11.0833 7.00024 11.0833C8.20098 11.0833 9.23526 10.6561 10.0851 10.078M1.75024 1.75L12.2502 12.25M5.76281 5.76256C5.44612 6.07925 5.25024 6.51675 5.25024 7C5.25024 7.9665 6.03374 8.75 7.00024 8.75C7.48349 8.75 7.92099 8.55413 8.23768 8.23744",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})})),Ec={PasswordInput:"PasswordInput__GDJDN",eyeIcon:"eyeIcon__kDExG"},r0=E("PasswordInput",B((e,t)=>{const[n,r]=L("password"),o=te(()=>{r(i=>i==="password"?"text":"password")},[r]);return u.jsxs("div",{className:j(Ec.PasswordInput,e.className),children:[u.jsx(zo,{type:n,...e,ref:t}),u.jsx(sm,{className:Ec.eyeIcon,onClick:o,state:n==="password"?"open":"closed"})]})}));var gi="focusScope.autoFocusOnMount",vi="focusScope.autoFocusOnUnmount",Sc={bubbles:!1,cancelable:!0},am="FocusScope",Tc=g.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,c]=g.useState(null),l=Zt(o),d=Zt(i),p=g.useRef(null),h=ke(t,f=>c(f)),m=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let f=function(C){if(m.paused||!a)return;const S=C.target;a.contains(S)?p.current=S:ht(p.current,{select:!0})},v=function(C){if(m.paused||!a)return;const S=C.relatedTarget;S!==null&&(a.contains(S)||ht(p.current,{select:!0}))},_=function(C){if(document.activeElement===document.body)for(const T of C)T.removedNodes.length>0&&ht(a)};document.addEventListener("focusin",f),document.addEventListener("focusout",v);const x=new MutationObserver(_);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",v),x.disconnect()}}},[r,a,m.paused]),g.useEffect(()=>{if(a){Rc.add(m);const f=document.activeElement;if(!a.contains(f)){const _=new CustomEvent(gi,Sc);a.addEventListener(gi,l),a.dispatchEvent(_),_.defaultPrevented||(cm(hm(Ac(a)),{select:!0}),document.activeElement===f&&ht(a))}return()=>{a.removeEventListener(gi,l),setTimeout(()=>{const _=new CustomEvent(vi,Sc);a.addEventListener(vi,d),a.dispatchEvent(_),_.defaultPrevented||ht(f??document.body,{select:!0}),a.removeEventListener(vi,d),Rc.remove(m)},0)}}},[a,l,d,m]);const w=g.useCallback(f=>{if(!n&&!r||m.paused)return;const v=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,_=document.activeElement;if(v&&_){const x=f.currentTarget,[C,S]=lm(x);C&&S?!f.shiftKey&&_===S?(f.preventDefault(),n&&ht(C,{select:!0})):f.shiftKey&&_===C&&(f.preventDefault(),n&&ht(S,{select:!0})):_===x&&f.preventDefault()}},[n,r,m.paused]);return u.jsx(ye.div,{tabIndex:-1,...s,ref:h,onKeyDown:w})});Tc.displayName=am;function cm(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ht(r,{select:t}),document.activeElement!==n)return}function lm(e){const t=Ac(e),n=Pc(t,e),r=Pc(t.reverse(),e);return[n,r]}function Ac(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Pc(e,t){for(const n of e)if(!um(n,{upTo:t}))return n}function um(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function dm(e){return e instanceof HTMLInputElement&&"select"in e}function ht(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&dm(e)&&t&&e.select()}}var Rc=fm();function fm(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Oc(e,t),e.unshift(t)},remove(t){var n;e=Oc(e,t),(n=e[0])==null||n.resume()}}}function Oc(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function hm(e){return e.filter(t=>t.tagName!=="A")}var yi=0;function pm(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??kc()),document.body.insertAdjacentElement("beforeend",e[1]??kc()),yi++,()=>{yi===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),yi--}},[])}function kc(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var $r="right-scroll-bar-position",Mr="width-before-scroll-bar",mm="with-scroll-bars-hidden",gm="--removed-body-scroll-bar-size";function bi(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function vm(e,t){var n=L(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var ym=typeof window<"u"?g.useLayoutEffect:g.useEffect,jc=new WeakMap;function bm(e,t){var n=vm(null,function(r){return e.forEach(function(o){return bi(o,r)})});return ym(function(){var r=jc.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||bi(a,null)}),i.forEach(function(a){o.has(a)||bi(a,s)})}jc.set(n,e)},[e]),n}function wm(e){return e}function _m(e,t){t===void 0&&(t=wm);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var c=function(){var d=s;s=[],d.forEach(i)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(d){s.push(d),l()},filter:function(d){return s=s.filter(d),n}}}};return o}function xm(e){e===void 0&&(e={});var t=_m(null);return t.options=Me({async:!0,ssr:!1},e),t}var Dc=function(e){var t=e.sideCar,n=ms(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return g.createElement(r,Me({},n))};Dc.isSideCarExport=!0;function Cm(e,t){return e.useMedium(t),Dc}var Lc=xm(),wi=function(){},Fr=g.forwardRef(function(e,t){var n=g.useRef(null),r=g.useState({onScrollCapture:wi,onWheelCapture:wi,onTouchMoveCapture:wi}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,d=e.enabled,p=e.shards,h=e.sideCar,m=e.noRelative,w=e.noIsolation,f=e.inert,v=e.allowPinchZoom,_=e.as,x=_===void 0?"div":_,C=e.gapMode,S=ms(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=h,R=bm([n,t]),A=Me(Me({},S),o);return g.createElement(g.Fragment,null,d&&g.createElement(T,{sideCar:Lc,removeScrollBar:l,shards:p,noRelative:m,noIsolation:w,inert:f,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:C}),s?g.cloneElement(g.Children.only(a),Me(Me({},A),{ref:R})):g.createElement(x,Me({},A,{className:c,ref:R}),a))});Fr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Fr.classNames={fullWidth:Mr,zeroRight:$r};var Em=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Sm(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Em();return t&&e.setAttribute("nonce",t),e}function Tm(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Am(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Pm=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Sm())&&(Tm(t,n),Am(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Rm=function(){var e=Pm();return function(t,n){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ic=function(){var e=Rm(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Om={left:0,top:0,right:0,gap:0},_i=function(e){return parseInt(e||"",10)||0},km=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[_i(n),_i(r),_i(o)]},jm=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Om;var t=km(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Dm=Ic(),on="data-scroll-locked",Lm=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
235
- .`.concat(mm,` {
209
+ `,lr=16,of=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,containerStyle:i,containerClassName:s})=>{let{toasts:a,handlers:c}=jd(n);return g.createElement("div",{style:{position:"fixed",zIndex:9999,top:lr,left:lr,right:lr,bottom:lr,pointerEvents:"none",...i},className:s,onMouseEnter:c.startPause,onMouseLeave:c.endPause},a.map(l=>{let d=l.position||t,p=c.calculateOffset(l,{reverseOrder:e,gutter:r,defaultPosition:t}),h=nf(d,p);return g.createElement(tf,{id:l.id,key:l.id,onHeightUpdate:c.updateHeight,className:l.visible?rf:"",style:h},l.type==="custom"?ir(l.message,l):o?o(l):g.createElement(ef,{toast:l,position:d}))}))},Ps=Ce;const Rs=S("useNotifications",()=>({notify:ee((t,n,r)=>{n==="warning"||n==="info"?Ps(t,{icon:n==="warning"?"⚠️":"ℹ️",style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}}):Ps[n](t,{style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}}),r&&console.error(r)},[])}));var Yt=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},At=typeof window>"u"||"Deno"in globalThis;function fe(){}function sf(e,t){return typeof e=="function"?e(t):e}function To(e){return typeof e=="number"&&e>=0&&e!==1/0}function Os(e,t){return Math.max(e+(t||0)-Date.now(),0)}function lt(e,t){return typeof e=="function"?e(t):e}function Re(e,t){return typeof e=="function"?e(t):e}function ks(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==Ao(s,t.options))return!1}else if(!kn(t.queryKey,s))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function js(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Pt(t.options.mutationKey)!==Pt(i))return!1}else if(!kn(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Ao(e,t){return((t==null?void 0:t.queryKeyHashFn)||Pt)(e)}function Pt(e){return JSON.stringify(e,(t,n)=>Ro(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function kn(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>kn(e[n],t[n])):!1}function Po(e,t){if(e===t)return e;const n=Ds(e)&&Ds(t);if(n||Ro(e)&&Ro(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,a=n?[]:{};let c=0;for(let l=0;l<s;l++){const d=n?l:i[l];(!n&&r.includes(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,c++):(a[d]=Po(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&c++)}return o===s&&c===o?e:a}return t}function ur(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Ds(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ro(e){if(!Ls(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Ls(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Ls(e){return Object.prototype.toString.call(e)==="[object Object]"}function af(e){return new Promise(t=>{setTimeout(t,e)})}function Oo(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){try{return Po(e,t)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`),r}return Po(e,t)}return t}function cf(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function lf(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var dr=Symbol();function Is(e,t){return e.queryFn===dr&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===dr?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Ns(e,t){return typeof e=="function"?e(...t):!!e}var uf=(Fl=class extends Yt{constructor(){super();D(this,Lt);D(this,pt);D(this,ln);O(this,ln,t=>{if(!At&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){b(this,pt)||this.setEventListener(b(this,ln))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,pt))==null||t.call(this),O(this,pt,void 0))}setEventListener(t){var n;O(this,ln,t),(n=b(this,pt))==null||n.call(this),O(this,pt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){b(this,Lt)!==t&&(O(this,Lt,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof b(this,Lt)=="boolean"?b(this,Lt):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Lt=new WeakMap,pt=new WeakMap,ln=new WeakMap,Fl),ko=new uf,df=(Bl=class extends Yt{constructor(){super();D(this,un,!0);D(this,mt);D(this,dn);O(this,dn,t=>{if(!At&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){b(this,mt)||this.setEventListener(b(this,dn))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,mt))==null||t.call(this),O(this,mt,void 0))}setEventListener(t){var n;O(this,dn,t),(n=b(this,mt))==null||n.call(this),O(this,mt,t(this.setOnline.bind(this)))}setOnline(t){b(this,un)!==t&&(O(this,un,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return b(this,un)}},un=new WeakMap,mt=new WeakMap,dn=new WeakMap,Bl),fr=new df;function jo(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function ff(e){return Math.min(1e3*2**e,3e4)}function $s(e){return(e??"online")==="online"?fr.isOnline():!0}var Ms=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Do(e){return e instanceof Ms}function Fs(e){let t=!1,n=0,r=!1,o;const i=jo(),s=f=>{var v;r||(h(new Ms(f)),(v=e.abort)==null||v.call(e))},a=()=>{t=!0},c=()=>{t=!1},l=()=>ko.isFocused()&&(e.networkMode==="always"||fr.isOnline())&&e.canRun(),d=()=>$s(e.networkMode)&&e.canRun(),p=f=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,f),o==null||o(),i.resolve(f))},h=f=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,f),o==null||o(),i.reject(f))},m=()=>new Promise(f=>{var v;o=_=>{(r||l())&&f(_)},(v=e.onPause)==null||v.call(e)}).then(()=>{var f;o=void 0,r||(f=e.onContinue)==null||f.call(e)}),w=()=>{if(r)return;let f;const v=n===0?e.initialPromise:void 0;try{f=v??e.fn()}catch(_){f=Promise.reject(_)}Promise.resolve(f).then(p).catch(_=>{var R;if(r)return;const x=e.retry??(At?0:3),C=e.retryDelay??ff,E=typeof C=="function"?C(n,_):C,T=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,_);if(t||!T){h(_);return}n++,(R=e.onFail)==null||R.call(e,n,_),af(E).then(()=>l()?void 0:m()).then(()=>{t?h(_):w()})})};return{promise:i,cancel:s,continue:()=>(o==null||o(),i),cancelRetry:a,continueRetry:c,canStart:d,start:()=>(d()?w():m().then(w),i)}}var hf=e=>setTimeout(e,0);function pf(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=hf;const i=a=>{t?e.push(a):o(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||s()}return c},batchCalls:a=>(...c)=>{i(()=>{a(...c)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var ae=pf(),Bs=(Ul=class{constructor(){D(this,It)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),To(this.gcTime)&&O(this,It,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(At?1/0:5*60*1e3))}clearGcTimeout(){b(this,It)&&(clearTimeout(b(this,It)),O(this,It,void 0))}},It=new WeakMap,Ul),mf=(zl=class extends Bs{constructor(t){super();D(this,Ie);D(this,fn);D(this,hn);D(this,Ae);D(this,Nt);D(this,de);D(this,Bn);D(this,$t);O(this,$t,!1),O(this,Bn,t.defaultOptions),this.setOptions(t.options),this.observers=[],O(this,Nt,t.client),O(this,Ae,b(this,Nt).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,O(this,fn,gf(this.options)),this.state=t.state??b(this,fn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=b(this,de))==null?void 0:t.promise}setOptions(t){this.options={...b(this,Bn),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&b(this,Ae).remove(this)}setData(t,n){const r=Oo(this.state.data,t,this.options);return F(this,Ie,ot).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){F(this,Ie,ot).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=b(this,de))==null?void 0:r.promise;return(o=b(this,de))==null||o.cancel(t),n?n.then(fe).catch(fe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(b(this,fn))}isActive(){return this.observers.some(t=>Re(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===dr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>lt(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Os(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=b(this,de))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=b(this,de))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),b(this,Ae).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(b(this,de)&&(b(this,$t)?b(this,de).cancel({revert:!0}):b(this,de).cancelRetry()),this.scheduleGc()),b(this,Ae).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||F(this,Ie,ot).call(this,{type:"invalidate"})}fetch(t,n){var l,d,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(b(this,de))return b(this,de).continueRetry(),b(this,de).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(m=>m.options.queryFn);h&&this.setOptions(h.options)}Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']");const r=new AbortController,o=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(O(this,$t,!0),r.signal)})},i=()=>{const h=Is(this.options,n),w=(()=>{const f={client:b(this,Nt),queryKey:this.queryKey,meta:this.meta};return o(f),f})();return O(this,$t,!1),this.options.persister?this.options.persister(h,w,this):h(w)},a=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:b(this,Nt),state:this.state,fetchFn:i};return o(h),h})();(l=this.options.behavior)==null||l.onFetch(a,this),O(this,hn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&F(this,Ie,ot).call(this,{type:"fetch",meta:(p=a.fetchOptions)==null?void 0:p.meta});const c=h=>{var m,w,f,v;Do(h)&&h.silent||F(this,Ie,ot).call(this,{type:"error",error:h}),Do(h)||((w=(m=b(this,Ae).config).onError)==null||w.call(m,h,this),(v=(f=b(this,Ae).config).onSettled)==null||v.call(f,this.state.data,h,this)),this.scheduleGc()};return O(this,de,Fs({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var m,w,f,v;if(h===void 0){console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(_){c(_);return}(w=(m=b(this,Ae).config).onSuccess)==null||w.call(m,h,this),(v=(f=b(this,Ae).config).onSettled)==null||v.call(f,h,this.state.error,this),this.scheduleGc()},onError:c,onFail:(h,m)=>{F(this,Ie,ot).call(this,{type:"failed",failureCount:h,error:m})},onPause:()=>{F(this,Ie,ot).call(this,{type:"pause"})},onContinue:()=>{F(this,Ie,ot).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),b(this,de).start()}},fn=new WeakMap,hn=new WeakMap,Ae=new WeakMap,Nt=new WeakMap,de=new WeakMap,Bn=new WeakMap,$t=new WeakMap,Ie=new WeakSet,ot=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Us(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return Do(o)&&o.revert&&b(this,hn)?{...b(this,hn),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ae.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),b(this,Ae).notify({query:this,type:"updated",action:t})})},zl);function Us(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:$s(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function gf(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var vf=(Hl=class extends Yt{constructor(t={}){super();D(this,We);this.config=t,O(this,We,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??Ao(o,n);let s=this.get(i);return s||(s=new mf({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){b(this,We).has(t.queryHash)||(b(this,We).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=b(this,We).get(t.queryHash);n&&(t.destroy(),n===t&&b(this,We).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ae.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return b(this,We).get(t)}getAll(){return[...b(this,We).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ks(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>ks(t,r)):n}notify(t){ae.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ae.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ae.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},We=new WeakMap,Hl),yf=(Wl=class extends Bs{constructor(t){super();D(this,Ge);D(this,Ve);D(this,pe);D(this,Mt);this.mutationId=t.mutationId,O(this,pe,t.mutationCache),O(this,Ve,[]),this.state=t.state||zs(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){b(this,Ve).includes(t)||(b(this,Ve).push(t),this.clearGcTimeout(),b(this,pe).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){O(this,Ve,b(this,Ve).filter(n=>n!==t)),this.scheduleGc(),b(this,pe).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){b(this,Ve).length||(this.state.status==="pending"?this.scheduleGc():b(this,pe).remove(this))}continue(){var t;return((t=b(this,Mt))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,a,c,l,d,p,h,m,w,f,v,_,x,C,E,T,R,A,N;const n=()=>{F(this,Ge,Et).call(this,{type:"continue"})};O(this,Mt,Fs({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:($,M)=>{F(this,Ge,Et).call(this,{type:"failed",failureCount:$,error:M})},onPause:()=>{F(this,Ge,Et).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>b(this,pe).canRun(this)}));const r=this.state.status==="pending",o=!b(this,Mt).canStart();try{if(r)n();else{F(this,Ge,Et).call(this,{type:"pending",variables:t,isPaused:o}),await((s=(i=b(this,pe).config).onMutate)==null?void 0:s.call(i,t,this));const M=await((c=(a=this.options).onMutate)==null?void 0:c.call(a,t));M!==this.state.context&&F(this,Ge,Et).call(this,{type:"pending",context:M,variables:t,isPaused:o})}const $=await b(this,Mt).start();return await((d=(l=b(this,pe).config).onSuccess)==null?void 0:d.call(l,$,t,this.state.context,this)),await((h=(p=this.options).onSuccess)==null?void 0:h.call(p,$,t,this.state.context)),await((w=(m=b(this,pe).config).onSettled)==null?void 0:w.call(m,$,null,this.state.variables,this.state.context,this)),await((v=(f=this.options).onSettled)==null?void 0:v.call(f,$,null,t,this.state.context)),F(this,Ge,Et).call(this,{type:"success",data:$}),$}catch($){try{throw await((x=(_=b(this,pe).config).onError)==null?void 0:x.call(_,$,t,this.state.context,this)),await((E=(C=this.options).onError)==null?void 0:E.call(C,$,t,this.state.context)),await((R=(T=b(this,pe).config).onSettled)==null?void 0:R.call(T,void 0,$,this.state.variables,this.state.context,this)),await((N=(A=this.options).onSettled)==null?void 0:N.call(A,void 0,$,t,this.state.context)),$}finally{F(this,Ge,Et).call(this,{type:"error",error:$})}}finally{b(this,pe).runNext(this)}}},Ve=new WeakMap,pe=new WeakMap,Mt=new WeakMap,Ge=new WeakSet,Et=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ae.batch(()=>{b(this,Ve).forEach(r=>{r.onMutationUpdate(t)}),b(this,pe).notify({mutation:this,type:"updated",action:t})})},Wl);function zs(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var bf=(Vl=class extends Yt{constructor(t={}){super();D(this,et);D(this,Ne);D(this,Un);this.config=t,O(this,et,new Set),O(this,Ne,new Map),O(this,Un,0)}build(t,n,r){const o=new yf({mutationCache:this,mutationId:++ro(this,Un)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){b(this,et).add(t);const n=hr(t);if(typeof n=="string"){const r=b(this,Ne).get(n);r?r.push(t):b(this,Ne).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(b(this,et).delete(t)){const n=hr(t);if(typeof n=="string"){const r=b(this,Ne).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&b(this,Ne).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=hr(t);if(typeof n=="string"){const r=b(this,Ne).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=hr(t);if(typeof n=="string"){const o=(r=b(this,Ne).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ae.batch(()=>{b(this,et).forEach(t=>{this.notify({type:"removed",mutation:t})}),b(this,et).clear(),b(this,Ne).clear()})}getAll(){return Array.from(b(this,et))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>js(n,r))}findAll(t={}){return this.getAll().filter(n=>js(t,n))}notify(t){ae.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ae.batch(()=>Promise.all(t.map(n=>n.continue().catch(fe))))}},et=new WeakMap,Ne=new WeakMap,Un=new WeakMap,Vl);function hr(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Hs(e){return{onFetch:(t,n)=>{var d,p,h,m,w;const r=t.options,o=(h=(p=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:p.fetchMore)==null?void 0:h.direction,i=((m=t.state.data)==null?void 0:m.pages)||[],s=((w=t.state.data)==null?void 0:w.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let f=!1;const v=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(t.signal.aborted?f=!0:t.signal.addEventListener("abort",()=>{f=!0}),t.signal)})},_=Is(t.options,t.fetchOptions),x=async(C,E,T)=>{if(f)return Promise.reject();if(E==null&&C.pages.length)return Promise.resolve(C);const A=(()=>{const Z={client:t.client,queryKey:t.queryKey,pageParam:E,direction:T?"backward":"forward",meta:t.options.meta};return v(Z),Z})(),N=await _(A),{maxPages:$}=t.options,M=T?lf:cf;return{pages:M(C.pages,N,$),pageParams:M(C.pageParams,E,$)}};if(o&&i.length){const C=o==="backward",E=C?wf:Ws,T={pages:i,pageParams:s},R=E(r,T);a=await x(T,R,C)}else{const C=e??i.length;do{const E=c===0?s[0]??r.initialPageParam:Ws(r,a);if(c>0&&E==null)break;a=await x(a,E),c++}while(c<C)}return a};t.options.persister?t.fetchFn=()=>{var f,v;return(v=(f=t.options).persister)==null?void 0:v.call(f,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function Ws(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function wf(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var _f=(Gl=class{constructor(e={}){D(this,ne);D(this,gt);D(this,vt);D(this,pn);D(this,mn);D(this,yt);D(this,gn);D(this,vn);O(this,ne,e.queryCache||new vf),O(this,gt,e.mutationCache||new bf),O(this,vt,e.defaultOptions||{}),O(this,pn,new Map),O(this,mn,new Map),O(this,yt,0)}mount(){ro(this,yt)._++,b(this,yt)===1&&(O(this,gn,ko.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,ne).onFocus())})),O(this,vn,fr.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,ne).onOnline())})))}unmount(){var e,t;ro(this,yt)._--,b(this,yt)===0&&((e=b(this,gn))==null||e.call(this),O(this,gn,void 0),(t=b(this,vn))==null||t.call(this),O(this,vn,void 0))}isFetching(e){return b(this,ne).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return b(this,gt).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=b(this,ne).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=b(this,ne).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(lt(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return b(this,ne).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=b(this,ne).get(r.queryHash),i=o==null?void 0:o.state.data,s=sf(t,i);if(s!==void 0)return b(this,ne).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return ae.batch(()=>b(this,ne).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=b(this,ne).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=b(this,ne);ae.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=b(this,ne);return ae.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=ae.batch(()=>b(this,ne).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(fe).catch(fe)}invalidateQueries(e,t={}){return ae.batch(()=>(b(this,ne).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=ae.batch(()=>b(this,ne).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(fe)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(fe)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=b(this,ne).build(this,t);return n.isStaleByTime(lt(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(fe).catch(fe)}fetchInfiniteQuery(e){return e.behavior=Hs(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(fe).catch(fe)}ensureInfiniteQueryData(e){return e.behavior=Hs(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return fr.isOnline()?b(this,gt).resumePausedMutations():Promise.resolve()}getQueryCache(){return b(this,ne)}getMutationCache(){return b(this,gt)}getDefaultOptions(){return b(this,vt)}setDefaultOptions(e){O(this,vt,e)}setQueryDefaults(e,t){b(this,pn).set(Pt(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...b(this,pn).values()],n={};return t.forEach(r=>{kn(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){b(this,mn).set(Pt(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...b(this,mn).values()],n={};return t.forEach(r=>{kn(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...b(this,vt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ao(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===dr&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...b(this,vt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){b(this,ne).clear(),b(this,gt).clear()}},ne=new WeakMap,gt=new WeakMap,vt=new WeakMap,pn=new WeakMap,mn=new WeakMap,yt=new WeakMap,gn=new WeakMap,vn=new WeakMap,Gl),xf=(ql=class extends Yt{constructor(t,n){super();D(this,G);D(this,we);D(this,H);D(this,zn);D(this,me);D(this,Ft);D(this,yn);D(this,bt);D(this,wt);D(this,Hn);D(this,bn);D(this,wn);D(this,Bt);D(this,Ut);D(this,_t);D(this,_n,new Set);this.options=n,O(this,we,t),O(this,wt,null),O(this,bt,jo()),this.options.experimental_prefetchInRender||b(this,bt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(b(this,H).addObserver(this),Vs(b(this,H),this.options)?F(this,G,Gn).call(this):this.updateResult(),F(this,G,Ui).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Lo(b(this,H),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Lo(b(this,H),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,F(this,G,zi).call(this),F(this,G,Hi).call(this),b(this,H).removeObserver(this)}setOptions(t){const n=this.options,r=b(this,H);if(this.options=b(this,we).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Re(this.options.enabled,b(this,H))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");F(this,G,Wi).call(this),b(this,H).setOptions(this.options),n._defaulted&&!ur(this.options,n)&&b(this,we).getQueryCache().notify({type:"observerOptionsUpdated",query:b(this,H),observer:this});const o=this.hasListeners();o&&Gs(b(this,H),r,this.options,n)&&F(this,G,Gn).call(this),this.updateResult(),o&&(b(this,H)!==r||Re(this.options.enabled,b(this,H))!==Re(n.enabled,b(this,H))||lt(this.options.staleTime,b(this,H))!==lt(n.staleTime,b(this,H)))&&F(this,G,Mi).call(this);const i=F(this,G,Fi).call(this);o&&(b(this,H)!==r||Re(this.options.enabled,b(this,H))!==Re(n.enabled,b(this,H))||i!==b(this,_t))&&F(this,G,Bi).call(this,i)}getOptimisticResult(t){const n=b(this,we).getQueryCache().build(b(this,we),t),r=this.createResult(n,t);return Ef(this,r)&&(O(this,me,r),O(this,yn,this.options),O(this,Ft,b(this,H).state)),r}getCurrentResult(){return b(this,me)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),Reflect.get(r,o))})}trackProp(t){b(this,_n).add(t)}getCurrentQuery(){return b(this,H)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=b(this,we).defaultQueryOptions(t),r=b(this,we).getQueryCache().build(b(this,we),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return F(this,G,Gn).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),b(this,me)))}createResult(t,n){var $;const r=b(this,H),o=this.options,i=b(this,me),s=b(this,Ft),a=b(this,yn),l=t!==r?t.state:b(this,zn),{state:d}=t;let p={...d},h=!1,m;if(n._optimisticResults){const M=this.hasListeners(),Z=!M&&Vs(t,n),X=M&&Gs(t,r,n,o);(Z||X)&&(p={...p,...Us(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:w,errorUpdatedAt:f,status:v}=p;m=p.data;let _=!1;if(n.placeholderData!==void 0&&m===void 0&&v==="pending"){let M;i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(M=i.data,_=!0):M=typeof n.placeholderData=="function"?n.placeholderData(($=b(this,wn))==null?void 0:$.state.data,b(this,wn)):n.placeholderData,M!==void 0&&(v="success",m=Oo(i==null?void 0:i.data,M,n),h=!0)}if(n.select&&m!==void 0&&!_)if(i&&m===(s==null?void 0:s.data)&&n.select===b(this,Hn))m=b(this,bn);else try{O(this,Hn,n.select),m=n.select(m),m=Oo(i==null?void 0:i.data,m,n),O(this,bn,m),O(this,wt,null)}catch(M){O(this,wt,M)}b(this,wt)&&(w=b(this,wt),m=b(this,bn),f=Date.now(),v="error");const x=p.fetchStatus==="fetching",C=v==="pending",E=v==="error",T=C&&x,R=m!==void 0,N={status:v,fetchStatus:p.fetchStatus,isPending:C,isSuccess:v==="success",isError:E,isInitialLoading:T,isLoading:T,data:m,dataUpdatedAt:p.dataUpdatedAt,error:w,errorUpdatedAt:f,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>l.dataUpdateCount||p.errorUpdateCount>l.errorUpdateCount,isFetching:x,isRefetching:x&&!C,isLoadingError:E&&!R,isPaused:p.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:E&&R,isStale:Io(t,n),refetch:this.refetch,promise:b(this,bt)};if(this.options.experimental_prefetchInRender){const M=V=>{N.status==="error"?V.reject(N.error):N.data!==void 0&&V.resolve(N.data)},Z=()=>{const V=O(this,bt,N.promise=jo());M(V)},X=b(this,bt);switch(X.status){case"pending":t.queryHash===r.queryHash&&M(X);break;case"fulfilled":(N.status==="error"||N.data!==X.value)&&Z();break;case"rejected":(N.status!=="error"||N.error!==X.reason)&&Z();break}}return N}updateResult(){const t=b(this,me),n=this.createResult(b(this,H),this.options);if(O(this,Ft,b(this,H).state),O(this,yn,this.options),b(this,Ft).data!==void 0&&O(this,wn,b(this,H)),ur(n,t))return;O(this,me,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,i=typeof o=="function"?o():o;if(i==="all"||!i&&!b(this,_n).size)return!0;const s=new Set(i??b(this,_n));return this.options.throwOnError&&s.add("error"),Object.keys(b(this,me)).some(a=>{const c=a;return b(this,me)[c]!==t[c]&&s.has(c)})};F(this,G,cu).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&F(this,G,Ui).call(this)}},we=new WeakMap,H=new WeakMap,zn=new WeakMap,me=new WeakMap,Ft=new WeakMap,yn=new WeakMap,bt=new WeakMap,wt=new WeakMap,Hn=new WeakMap,bn=new WeakMap,wn=new WeakMap,Bt=new WeakMap,Ut=new WeakMap,_t=new WeakMap,_n=new WeakMap,G=new WeakSet,Gn=function(t){F(this,G,Wi).call(this);let n=b(this,H).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(fe)),n},Mi=function(){F(this,G,zi).call(this);const t=lt(this.options.staleTime,b(this,H));if(At||b(this,me).isStale||!To(t))return;const r=Os(b(this,me).dataUpdatedAt,t)+1;O(this,Bt,setTimeout(()=>{b(this,me).isStale||this.updateResult()},r))},Fi=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(b(this,H)):this.options.refetchInterval)??!1},Bi=function(t){F(this,G,Hi).call(this),O(this,_t,t),!(At||Re(this.options.enabled,b(this,H))===!1||!To(b(this,_t))||b(this,_t)===0)&&O(this,Ut,setInterval(()=>{(this.options.refetchIntervalInBackground||ko.isFocused())&&F(this,G,Gn).call(this)},b(this,_t)))},Ui=function(){F(this,G,Mi).call(this),F(this,G,Bi).call(this,F(this,G,Fi).call(this))},zi=function(){b(this,Bt)&&(clearTimeout(b(this,Bt)),O(this,Bt,void 0))},Hi=function(){b(this,Ut)&&(clearInterval(b(this,Ut)),O(this,Ut,void 0))},Wi=function(){const t=b(this,we).getQueryCache().build(b(this,we),this.options);if(t===b(this,H))return;const n=b(this,H);O(this,H,t),O(this,zn,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},cu=function(t){ae.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(b(this,me))}),b(this,we).getQueryCache().notify({query:b(this,H),type:"observerResultsUpdated"})})},ql);function Cf(e,t){return Re(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Vs(e,t){return Cf(e,t)||e.state.data!==void 0&&Lo(e,t,t.refetchOnMount)}function Lo(e,t,n){if(Re(t.enabled,e)!==!1&&lt(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Io(e,t)}return!1}function Gs(e,t,n,r){return(e!==t||Re(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Io(e,n)}function Io(e,t){return Re(t.enabled,e)!==!1&&e.isStaleByTime(lt(t.staleTime,e))}function Ef(e,t){return!ur(e.getCurrentResult(),t)}var Sf=(Ql=class extends Yt{constructor(n,r){super();D(this,nt);D(this,xt);D(this,Ct);D(this,_e);D(this,tt);O(this,xt,n),this.setOptions(r),this.bindMethods(),F(this,nt,oo).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=b(this,xt).defaultMutationOptions(n),ur(this.options,r)||b(this,xt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:b(this,_e),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Pt(r.mutationKey)!==Pt(this.options.mutationKey)?this.reset():((o=b(this,_e))==null?void 0:o.state.status)==="pending"&&b(this,_e).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=b(this,_e))==null||n.removeObserver(this)}onMutationUpdate(n){F(this,nt,oo).call(this),F(this,nt,Vi).call(this,n)}getCurrentResult(){return b(this,Ct)}reset(){var n;(n=b(this,_e))==null||n.removeObserver(this),O(this,_e,void 0),F(this,nt,oo).call(this),F(this,nt,Vi).call(this)}mutate(n,r){var o;return O(this,tt,r),(o=b(this,_e))==null||o.removeObserver(this),O(this,_e,b(this,xt).getMutationCache().build(b(this,xt),this.options)),b(this,_e).addObserver(this),b(this,_e).execute(n)}},xt=new WeakMap,Ct=new WeakMap,_e=new WeakMap,tt=new WeakMap,nt=new WeakSet,oo=function(){var r;const n=((r=b(this,_e))==null?void 0:r.state)??zs();O(this,Ct,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Vi=function(n){ae.batch(()=>{var r,o,i,s,a,c,l,d;if(b(this,tt)&&this.hasListeners()){const p=b(this,Ct).variables,h=b(this,Ct).context;(n==null?void 0:n.type)==="success"?((o=(r=b(this,tt)).onSuccess)==null||o.call(r,n.data,p,h),(s=(i=b(this,tt)).onSettled)==null||s.call(i,n.data,null,p,h)):(n==null?void 0:n.type)==="error"&&((c=(a=b(this,tt)).onError)==null||c.call(a,n.error,p,h),(d=(l=b(this,tt)).onSettled)==null||d.call(l,void 0,n.error,p,h))}this.listeners.forEach(p=>{p(b(this,Ct))})})},Ql),qs=g.createContext(void 0),No=e=>{const t=g.useContext(qs);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Tf=({client:e,children:t})=>(g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(qs.Provider,{value:e,children:t})),Qs=g.createContext(!1),Af=()=>g.useContext(Qs);Qs.Provider;function Pf(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Rf=g.createContext(Pf()),Of=()=>g.useContext(Rf),kf=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},jf=e=>{g.useEffect(()=>{e.clearReset()},[e])},Df=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Ns(n,[e.error,r])),Lf=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},If=(e,t)=>e.isLoading&&e.isFetching&&!t,Nf=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Ys=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function $f(e,t,n){var p,h,m,w,f;if(typeof e!="object"||Array.isArray(e))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=Af(),o=Of(),i=No(),s=i.defaultQueryOptions(e);(h=(p=i.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||h.call(p,s),s.queryFn||console.error(`[${s.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`),s._optimisticResults=r?"isRestoring":"optimistic",Lf(s),kf(s,o),jf(o);const a=!i.getQueryCache().get(s.queryHash),[c]=g.useState(()=>new t(i,s)),l=c.getOptimisticResult(s),d=!r&&e.subscribed!==!1;if(g.useSyncExternalStore(g.useCallback(v=>{const _=d?c.subscribe(ae.batchCalls(v)):fe;return c.updateResult(),_},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),g.useEffect(()=>{c.setOptions(s)},[s,c]),Nf(s,l))throw Ys(s,c,o);if(Df({result:l,errorResetBoundary:o,throwOnError:s.throwOnError,query:i.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw l.error;if((w=(m=i.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||w.call(m,s,l),s.experimental_prefetchInRender&&!At&&If(l,r)){const v=a?Ys(s,c,o):(f=i.getQueryCache().get(s.queryHash))==null?void 0:f.promise;v==null||v.catch(fe).finally(()=>{c.updateResult()})}return s.notifyOnChangeProps?l:c.trackResult(l)}function Ks(e,t){return $f(e,xf)}function pr(e,t){const n=No(),[r]=g.useState(()=>new Sf(n,e));g.useEffect(()=>{r.setOptions(e)},[r,e]);const o=g.useSyncExternalStore(g.useCallback(s=>r.subscribe(ae.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=g.useCallback((s,a)=>{r.mutate(s,a).catch(fe)},[r]);if(o.error&&Ns(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}const mr={STALE_TIME:1e3*60*5,GC_TIME:1e3*60*10,RETRY_COUNT:1,RETRY_DELAY:1e3},Zs={refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,staleTime:mr.STALE_TIME,gcTime:mr.GC_TIME,retry:mr.RETRY_COUNT,retryDelay:mr.RETRY_DELAY,enable:!0},gr=e=>e instanceof Error?e.message:String(e),Mf=S("useResourceActions",(e,t,n)=>{const r=No(),{notify:o}=Rs(),{createFn:i,readFn:s,readByIdFn:a,updateFn:c,deleteFn:l,partialUpdateFn:d}=n,p=()=>{r.invalidateQueries({queryKey:[e]})},h=(E,T,R,A)=>o(A!=null&&A.overrideSuccessMessage?A==null?void 0:A.overrideSuccessMessage(E,T):R,"success"),m=(E,T,R,A)=>o(A!=null&&A.overrideErrorMessage?A==null?void 0:A.overrideErrorMessage(E,T):R,"error");return{useCreate:E=>pr({mutationFn:T=>i(T),onSuccess:T=>{p(),h(t,T,`${t} created successfully`,E)},onError:T=>{m(t,T,`Error creating ${t}: ${gr(T)}`,E)}}),useReadQuery:E=>Ks({queryKey:[e],queryFn:s,...Zs,...E}),useReadByIdQuery:(E,T)=>Ks({queryKey:[e,E],queryFn:()=>a(E),...Zs,enabled:!!E,...T}),useUpdate:E=>pr({mutationFn:({id:T,data:R})=>c(T,R),onSuccess:T=>{p(),h(t,T,`${t} updated successfully`,E)},onError:T=>{m(t,T,`Error updating ${t}: ${gr(T)}`,E)}}),usePartialUpdate:E=>d&&pr({mutationFn:({id:T,data:R})=>d(T,R),onSuccess:T=>{p(),h(t,T,`${t} updated successfully`,E)},onError:T=>{m(t,T,`Error updating ${t}: ${gr(T)}`,E)}}),useDelete:E=>pr({mutationFn:T=>l(T),onSuccess:()=>{p(),h(t,null,`${t} deleted successfully`,E)},onError:T=>{m(t,T,`Error deleting ${t}: ${gr(T)}`,E)}}),invalidateQueries:p}}),dv=S("useResource",(e,t)=>Mf(e,t,{createFn:n=>fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).then(r=>r.json()),deleteFn:n=>fetch(`${e}/${n}`,{method:"DELETE"}).then(r=>{if(!r.ok)throw new Error(`Error deleting: ${r.status}`)}),readByIdFn:n=>fetch(`${e}/${n}`).then(r=>r.json()),readFn:()=>fetch(e).then(n=>n.json()),updateFn:(n,r)=>fetch(`${e}/${n}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(o=>o.json()),partialUpdateFn:(n,r)=>fetch(`${e}/${n}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(o=>o.json())})),Ff={SINGLE_TENANT:"single-tenant"},Bf={COOKIE:"cookie"},$o="tenant",Xs="tenant",Js="tenant",Uf=Ff.SINGLE_TENANT,zf=Bf.COOKIE,Hf={mode:Uf,clientSideMode:zf,tenantIDPProvisioningStrategy:"none"};class Wf{setTenant(t,n){const r=new URL(window.location.href);r.searchParams.set(Xs,t.name),window.location.href=r.toString()}getCurrentTenantName(){const t=new URL(window.location.href);return new URLSearchParams(t.search).get(Xs)}}class Vf{setTenant(t,n){sessionStorage.setItem(Js,t.name),window.location.reload()}getCurrentTenantName(){return sessionStorage.getItem(Js)}}/*! js-cookie v3.0.5 | MIT */function vr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var Gf={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Mo(e,t){function n(o,i,s){if(!(typeof document>"u")){s=vr({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var c in s)s[c]&&(a+="; "+c,s[c]!==!0&&(a+="="+s[c].split(";")[0]));return document.cookie=o+"="+e.write(i,o)+a}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var i=document.cookie?document.cookie.split("; "):[],s={},a=0;a<i.length;a++){var c=i[a].split("="),l=c.slice(1).join("=");try{var d=decodeURIComponent(c[0]);if(s[d]=e.read(l,d),o===d)break}catch{}}return o?s[o]:s}}return Object.create({set:n,get:r,remove:function(o,i){n(o,"",vr({},i,{expires:-1}))},withAttributes:function(o){return Mo(this.converter,vr({},this.attributes,o))},withConverter:function(o){return Mo(vr({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Fo=Mo(Gf,{path:"/"});class qf{setTenant(t,n){t?Fo.set($o,t.name):Fo.remove($o),window.location.reload()}getCurrentTenantName(){return Fo.get($o)}}class Qf{extractSubdomain(t){if(t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t))return"";const n=t.split(".");if(n.length<2||n.length===2||n[0]==="www"&&n.length===3)return"";const o=(n[0]==="www"?n.slice(1):n).slice(0,-2);return o.length>0?o.join("."):""}getBaseDomain(t){const n=t.split(".");return t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t)||n.length<=2?t:n.slice(-2).join(".")}setTenant(t,n){var l;const r=(l=n.urlPatterns)==null?void 0:l.find(d=>d.patternType==="subdomain"&&d.tenantId===t.id&&d.isActive);if(!r)throw new Error(`No active subdomain pattern found for tenant '${t.name}'`);const o=new URL(window.location.href),i=r.patternValue,s=o.hostname,a=this.getBaseDomain(s),c=i?`${i}.${a}`:a;o.hostname=c,window.location.href=o.toString()}getCurrentTenantName(){const t=window.location.hostname;return this.extractSubdomain(t)||null}}const ea={queryParams:new Wf,sessionStorage:new Vf,cookie:new qf,subdomain:new Qf},Yf=e=>{const t=ea[e.clientSideMode];if(!t)throw new Error(`Client side tenant mode '${e.clientSideMode}' is not supported ${JSON.stringify({strategies:ea},null,2)}`);return t},Kf=(e,t,n)=>{const r=t.find(i=>i.name===n);if(!r)throw Error("No tenant permission");return Yf(e).setTenant(r,e),r},fv=S("useTenants",()=>{const[e,t]=uo(),{tenants:n=[],currentTenant:r,tenantConfig:o=Hf}=e,i=ee(s=>{const a=Kf(o,n,s);t({...e,currentTenant:a})},[o,e]);return{tenants:n,currentTenant:r,tenantConfig:o,selectTenant:i}});function Zf(e){if(!e.ok)throw console.error(e),new Error(e.statusText)}async function yr(e,t,n,r){const o=await e(`/user-states/${encodeURIComponent(t)}/${encodeURIComponent(n)}`,r);return Zf(o),o}class br{static async get(t,n,r){const i=await yr(t,n,r,{method:"GET",headers:{"Content-Type":"application/json"}});return i.status===204?null:await i.json()}static async create(t,n,r,o){const i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await yr(t,n,r,i)).json()}static async update(t,n,r,o){const i={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await yr(t,n,r,i)).json()}static async delete(t,n,r){return await yr(t,n,r,{method:"DELETE",headers:{"Content-Type":"application/json"}}),null}}const hv=S("useUserState",e=>{const t=ls("@bluealba/pae-nestjs-gateway-service"),n=Uu();if(!n)throw new Error("You must call the useUserState hook within a PAE application.");const[r,o]=L(null),[i,s]=L(!1),[a,c]=L(!1),[l,d]=L(null),p=(x,C)=>ee(async({newValue:E,shouldThrowError:T}={})=>{try{c(!0),d(null);const R=await x(t,n,e,E);return o(R),R?R.value:null}catch(R){if(d(R==null?void 0:R.message),console.error(`Failed to ${C} ${e}:`,R),T)throw R;return null}finally{c(!1)}},[t,n,e]),h=p(br.get,"fetch"),m=p(br.create,"create"),w=p(br.update,"update"),f=p(br.delete,"delete"),v=ee(async()=>{try{await h()}finally{s(!0)}},[h]);Q(()=>{v()},[v]);const _=ee(async(x,C=!1)=>r==null?await m({newValue:x,shouldThrowError:C}):await w({newValue:x,shouldThrowError:C}),[r,m,w]);return{value:r?r.value:null,hasFetched:i,loading:a,error:l,setValue:_,createValue:m,updateValue:w,deleteValue:f}}),ta="__PAE_EXTENSION_POINT_REACT_CONTENT_EMPTY__",pv=S("ExtendExtensionPoint",({module:e,point:t,children:n})=>(Yu(e,t,n??ta),null)),Xf=S("ExtensionPoint",({name:e,children:t,...n})=>{const r=Qu(e);if(r===ta)return null;if(!r)return u.jsx(u.Fragment,{children:t??null});if(Jf(r)){const o=r;return u.jsx(o,{...n})}else return r}),Jf=e=>typeof e=="function",mv=S("extensionPoint",(e,t)=>{const n=r=>(t=t||e.displayName||e.name||"?",u.jsx(Xf,{name:t,...r,children:u.jsx(e,{...r})}));return n.displayName=`extensionPoint(${t})`,n}),na="single-spa:app-change";function eh(){const[e,t]=L(ra());return Q(()=>{const n=()=>{t(ra())};return window.addEventListener(na,n),()=>{window.removeEventListener(na,n)}},[]),e}function ra(){return Yn.getAppNames().reduce((t,n)=>(Yn.getAppStatus(n)?t[n]=Yn.getAppStatus(n):t[n]="NOT_LOADED",t),{})}function th(e){const n=eh()[e]??"LOAD_ERROR";return{statusName:n,isLoading:n==="LOADING_SOURCE_CODE"||n==="BOOTSTRAPPING"||n==="MOUNTING",isMounted:n==="MOUNTED",isBroken:n==="SKIP_BECAUSE_BROKEN"||n==="LOAD_ERROR"}}const oa=({appName:e})=>u.jsx("div",{children:u.jsxs("p",{children:["Loading ",e,"..."]})});oa.displayName="BaseLoading";const ia=({appName:e})=>u.jsxs("div",{children:[u.jsx("p",{children:"Something went wrong..."}),u.jsxs("p",{children:["Failed to load ",e]})]});ia.displayName="BaseError";const nh={display:"flex",flexDirection:"column",flex:1},sa=z((e,t)=>u.jsx("div",{ref:t,style:nh,...e}));sa.displayName="BaseContainer";const rh="pae-app:",oh=S("ModulePlaceHolder",z(({appName:e,LoadingComponent:t=oa,ErrorComponent:n=ia,ContainerComponent:r=sa,...o},i)=>{const s=th(e);return u.jsxs(r,{ref:i,...o,id:`${rh}${e}`,children:[s.isLoading&&u.jsx(t,{appName:e}),s.isBroken&&u.jsx(n,{appName:e})]})}));oh.displayName="ModulePlaceHolder";const aa=S("Authorized",({operations:e,children:t,forbiddenContent:n})=>{var o;const{hasAccess:r}=ho();if(!r(...e)){if(!n)return null;if(typeof n=="function")if((o=n==null?void 0:n.prototype)!=null&&o.isReactComponent){const i=n;return u.jsx(i,{operations:e})}else return n({operations:e});return qn.isValidElement(n)?n:null}return t});aa.displayName="Authorized";const gv=S("PlatformEventListener",({eventName:e,listener:t})=>(Ku(e,t),null)),ih=()=>u.jsx("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:u.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M8.737 8.737a21.49 21.49 0 0 1 3.308-2.724m0 0c3.063-2.026 5.99-2.641 7.331-1.3 1.827 1.828.026 6.591-4.023 10.64-4.049 4.049-8.812 5.85-10.64 4.023-1.33-1.33-.736-4.218 1.249-7.253m6.083-6.11c-3.063-2.026-5.99-2.641-7.331-1.3-1.827 1.828-.026 6.591 4.023 10.64m3.308-9.34a21.497 21.497 0 0 1 3.308 2.724m2.775 3.386c1.985 3.035 2.579 5.923 1.248 7.253-1.336 1.337-4.245.732-7.295-1.275M14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})}),sh=S("ApplicationIcon",({applicationName:e})=>{const t=ju(e);if(t)if(typeof t=="function"){const n=t;return u.jsx(n,{})}else return t;return u.jsx(ih,{})});sh.displayName="ApplicationIcon";const vv=S("authorized",(e,t)=>{const n=r=>u.jsx(aa,{operations:t,children:u.jsx(e,{...r})});return n.displayName="Authorized",n});function ca(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ca(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function j(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ca(e))&&(r&&(r+=" "),r+=t);return r}const wr={spinner:"spinner__fakUN","spinner-rotation":"spinner-rotation__wUmPV",spinnerRotation:"spinner-rotation__wUmPV",button:"button__8FA9H","button--contained-primary":"button--contained-primary__stkTx",buttonContainedPrimary:"button--contained-primary__stkTx","button--outlined-primary":"button--outlined-primary__KZ1ww",buttonOutlinedPrimary:"button--outlined-primary__KZ1ww","button--text-primary":"button--text-primary__GLTfm",buttonTextPrimary:"button--text-primary__GLTfm","button--contained-danger":"button--contained-danger__L9ehT",buttonContainedDanger:"button--contained-danger__L9ehT","button--outlined-danger":"button--outlined-danger__eoYLd",buttonOutlinedDanger:"button--outlined-danger__eoYLd","button--text-danger":"button--text-danger__Sw-ha",buttonTextDanger:"button--text-danger__Sw-ha",icon:"icon__--umH"},Bo=S("Button",z(({variant:e="contained",colorScheme:t="primary",loading:n=!1,IconComponent:r,className:o,children:i,...s},a)=>{const c=j(wr.button,wr[`button--${e}-${t}`],o);return u.jsxs("button",{ref:a,className:c,...s,children:[n?u.jsx("div",{className:wr.spinner}):r&&u.jsx(r,{className:wr.icon}),i]})}));Bo.displayName="Button";const _r={Badges:"Badges__5jpum",badges:"Badges__5jpum",Badge:"Badge__95MWM",badge:"Badge__95MWM","Badge--primary":"Badge--primary__Rx-bS",badgePrimary:"Badge--primary__Rx-bS","Badge--secondary":"Badge--secondary__d92bT",badgeSecondary:"Badge--secondary__d92bT","Badge--success":"Badge--success__Kdo98",badgeSuccess:"Badge--success__Kdo98","Badge--warning":"Badge--warning__bf-Nn",badgeWarning:"Badge--warning__bf-Nn","Badge--danger":"Badge--danger__HTj39",badgeDanger:"Badge--danger__HTj39","Badge--small":"Badge--small__y93Pj",badgeSmall:"Badge--small__y93Pj","Badge--regular":"Badge--regular__aT5AL",badgeRegular:"Badge--regular__aT5AL","Badge--large":"Badge--large__wORCH",badgeLarge:"Badge--large__wORCH"},la={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};var ua={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function ah(e){var d,p;var t,n=[],r=1,o;if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),la[e])n=la[e].slice(),o="rgb";else if(e==="transparent")r=0,o="rgb",n=[0,0,0];else if(e[0]==="#"){var i=e.slice(1),s=i.length,a=s<=4;r=1,a?(n=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],s===4&&(r=parseInt(i[3]+i[3],16)/255)):(n=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],s===8&&(r=parseInt(i[6]+i[7],16)/255)),n[0]||(n[0]=0),n[1]||(n[1]=0),n[2]||(n[2]=0),o="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var c=t[1];o=c.replace(/a$/,"");var l=o==="cmyk"?4:o==="gray"?1:3;n=t[2].trim().split(/\s*[,\/]\s*|\s+/),o==="color"&&(o=n.shift()),n=n.map(function(h,m){if(h[h.length-1]==="%")return h=parseFloat(h)/100,m===3?h:o==="rgb"?h*255:o[0]==="h"||o[0]==="l"&&!m?h*100:o==="lab"?h*125:o==="lch"?m<2?h*150:h*360:o[0]==="o"&&!m?h:o==="oklab"?h*.4:o==="oklch"?m<2?h*.4:h*360:h;if(o[m]==="h"||m===2&&o[o.length-1]==="h"){if(ua[h]!==void 0)return ua[h];if(h.endsWith("deg"))return parseFloat(h);if(h.endsWith("turn"))return parseFloat(h)*360;if(h.endsWith("grad"))return parseFloat(h)*360/400;if(h.endsWith("rad"))return parseFloat(h)*180/Math.PI}return h==="none"?0:parseFloat(h)}),r=n.length>l?n.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(n=e.match(/([0-9]+)/g).map(function(h){return parseFloat(h)}),o=((p=(d=e.match(/([a-z])/ig))==null?void 0:d.join(""))==null?void 0:p.toLowerCase())||"rgb");return{space:o,values:n,alpha:r}}const ch=(e,t)=>{const{space:n,values:r}=ah(e);return n[0]==="h"?`${n}a(${r[0]}, ${r[1]}%, ${r[2]}%, ${t})`:`${n}a(${r}, ${t})`},da=S("Badge",z(({children:e,color:t,className:n,customColor:r,size:o="small",style:i,...s},a)=>{const c=r?{color:r,background:ch(r,.1)}:{},l=j(_r.Badge,_r[`Badge--${o}`],{[_r[`Badge--${t}`]]:!!t},n);return u.jsx("span",{ref:a,className:l,style:{...i,...c},...s,children:e})}));da.displayName="Badge";const fa=S("Badges",z(({children:e,className:t,...n},r)=>{const o=j(_r.Badges,t);return u.jsx("div",{ref:r,className:o,...n,children:e})}));fa.displayName="Badges";const lh=S("ClipboardIcon",({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...i})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:o,...i,children:[u.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),u.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"})]})),uh=S("ClipboardCheckIcon",({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...i})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:o,...i,children:[u.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),u.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}),u.jsx("path",{d:"m9 12 2 2 4-4"})]})),dh={CopyToClipboardButton:"CopyToClipboardButton__2Nd2m"},Uv=S("CopyToClipboardButton",({content:e})=>{const[t,n]=fh(),{notify:r}=Rs(),o=t?uh:lh,i=ee(async()=>{await n(e)&&r("Copied to the Clipboard !","success")},[e,r]);return u.jsx(o,{className:dh.CopyToClipboardButton,size:18,onClick:i})}),fh=()=>{const[e,t]=L(!1);return[e,async r=>{try{return await navigator.clipboard.writeText(r),t(!0),setTimeout(()=>t(!1),2e3),!0}catch(o){return console.error("Failed to copy text: ",o),!1}}]},ha={FieldGroup:"FieldGroup__Q2JCV",fieldGroup:"FieldGroup__Q2JCV","FieldGroup--horizontal":"FieldGroup--horizontal__kpfL1",fieldGroupHorizontal:"FieldGroup--horizontal__kpfL1","FieldGroup--vertical":"FieldGroup--vertical__FLo-Q",fieldGroupVertical:"FieldGroup--vertical__FLo-Q"},hh=S("FieldGroup",z(({children:e,className:t,orientation:n="vertical",...r},o)=>{const i=j(ha.FieldGroup,ha[`FieldGroup--${n}`],t);return u.jsx("div",{ref:o,className:i,...r,children:e})}));hh.displayName="FieldGroup";const pa={Input:"Input__uS0sb",Error:"Error__-DQpw"},Uo=S("Input",z(({className:e,error:t,...n},r)=>{const o=j(pa.Input,t&&pa.Error,e);return u.jsx("input",{ref:r,className:o,...n})}));Uo.displayName="Input";const ph={Error:"Error__N4OP5"},mh=S("InputError",z(({children:e,className:t,...n},r)=>{const o=j(ph.Error,t);return u.jsx("span",{ref:r,className:o,...n,children:e})}));mh.displayName="InputError";const ma={Label:"Label__VYUvW",Error:"Error__Eu6DI"},gh=S("Label",z(({children:e,className:t,error:n,...r},o)=>{const i=j(ma.Label,n&&ma.Error,t);return u.jsx("label",{ref:o,className:i,...r,children:e})}));gh.displayName="Label";const zo={Select:"Select__giqpe",Chevron:"Chevron__YvhBd"},ga=z(({children:e,className:t,...n},r)=>{const o=j(zo.Option,t);return u.jsx("option",{ref:r,className:o,...n,children:e})});ga.displayName="Option";const va=S("Select",z(({children:e,className:t,...n},r)=>{const o=j(zo.Select,t);return u.jsxs("div",{className:o,children:[u.jsx("select",{ref:r,...n,children:e}),u.jsx("div",{className:zo.Chevron,children:u.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M4 6L8 10L12 6",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})})]})}));va.displayName="Select",va.Option=ga;const vh={TextArea:"TextArea__pa-A0"},yh=S("TextArea",z(({children:e,className:t,...n},r)=>{const o=j(vh.TextArea,t);return u.jsx("textarea",{ref:r,className:o,...n,children:e})}));yh.displayName="TextArea";const jn={SearchInput:"SearchInput__4OFyE",SearchIcon:"SearchIcon__YgnQy",ClearIcon:"ClearIcon__ukRVr",SearchInput__ClearIcon:"SearchInput__ClearIcon__uzVoc",SearchInput__SearchIcon:"SearchInput__SearchIcon__zoDG4"},ya=S("SearchInput",z(({className:e,placeholder:t="Type to search...",showClearButton:n=!1,showSearchIcon:r=!0,onClear:o,...i},s)=>{const a=j(jn.SearchInput,n&&jn.SearchInput__ClearIcon,r&&jn.SearchInput__SearchIcon,e),c=j(jn.SearchIcon),l=j(jn.ClearIcon);return u.jsxs("div",{className:a,children:[u.jsx(Uo,{ref:s,type:"text",placeholder:t,...i}),r&&u.jsx("svg",{className:c,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M13 13L10.6667 10.6667M12.3333 6.66667C12.3333 9.79628 9.79628 12.3333 6.66667 12.3333C3.53705 12.3333 1 9.79628 1 6.66667C1 3.53705 3.53705 1 6.66667 1C9.79628 1 12.3333 3.53705 12.3333 6.66667Z",stroke:"#A4A4A4",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})}),n&&u.jsx("svg",{className:l,width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:o,children:u.jsx("path",{d:"M7.33334 0.666748L0.666672 7.33341M0.666672 0.666748L7.33334 7.33341",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})]})}));ya.displayName="SearchInput";const Rt={SearchAutocomplete:"SearchAutocomplete__vR9Hk",AutocompleteItem:"AutocompleteItem__YIm7R","AutocompleteItem--canBeSelected":"AutocompleteItem--canBeSelected__jxk4z",AutocompleteHighlighter:"AutocompleteHighlighter__LAFTV",AutocompleteHighlighter__match:"AutocompleteHighlighter__match__Wy1o2",DropdownList:"DropdownList__-fHIk",AutocompleteItemDescription:"AutocompleteItemDescription__4QYN5"},Kt=S("dropdownListStyles",{DropdownList:"DropdownList__QTXXX",dropdownList:"DropdownList__QTXXX","DropdownList--closed":"DropdownList--closed__pdL1Z",dropdownListClosed:"DropdownList--closed__pdL1Z","DropdownList--open":"DropdownList--open__opzc9",dropdownListOpen:"DropdownList--open__opzc9","DropdownList--left":"DropdownList--left__xSwXR",dropdownListLeft:"DropdownList--left__xSwXR"}),Ho=S("DropdownList",z(({children:e,className:t,open:n,align:r="right",...o},i)=>{const s=j(Kt.DropdownList,{[Kt["DropdownList--open"]]:n,[Kt["DropdownList--closed"]]:!n,[Kt["DropdownList--left"]]:r==="left"},t);return u.jsx("div",{ref:i,className:s,...o,children:e})}));Ho.displayName="DropdownList";const Dn=z(({children:e,className:t,canBeSelected:n=!1,...r},o)=>{const i=j(Rt.AutocompleteItem,{[Rt["AutocompleteItem--canBeSelected"]]:n},t);return u.jsx("div",{ref:o,className:i,...r,children:e})});Dn.displayName="AutocompleteItem";const bh=300,wh={query:"",suggestions:[],loading:!1,error:null},_h=({suggestionFetcher:e,canAdd:t})=>{const[n,r]=L(wh);return Q(()=>{r(a=>({...a,loading:!0}));const i=async()=>{try{const a=await e(n.query);t&&!a.some(c=>c.value.toLowerCase()===n.query.toLowerCase())&&a.push({label:`Add "${n.query}"`,value:n.query,isNew:!0}),r(c=>({...c,suggestions:a,loading:!1}))}catch(a){r(c=>({...c,suggestions:[],error:a,loading:!1}))}},s=setTimeout(()=>{i()},bh);return()=>{clearTimeout(s)}},[n.query]),{...n,setQuery:i=>{r(s=>({...s,query:i}))}}},ba=z(({text:e,query:t,className:n,...r},o)=>{const i=j(Rt.AutocompleteHighlighter,n),s=(a,c)=>{const l=a.toLowerCase().indexOf(c.toLowerCase());if(l===-1||c.length===0)return a;const d=a.slice(0,l),p=a.slice(l,l+c.length),h=a.slice(l+c.length);return u.jsxs(u.Fragment,{children:[d,u.jsx("span",{className:Rt.AutocompleteHighlighter__match,children:p}),s(h,c)]})};return u.jsx("div",{ref:o,className:i,...r,children:s(e,t)})});ba.displayName="AutocompleteHighlighter";const xh=5,Ch=S("SearchAutocomplete",z(({children:e,className:t,canAdd:n,maxSuggestionsShown:r=xh,searchInputProps:o,keepSelectedOption:i,suggestionFetcher:s,onAccept:a,...c},l)=>{const{query:d,setQuery:p,suggestions:h,loading:m}=_h({suggestionFetcher:s,canAdd:n}),[w,f]=L(null),v=d.length>0,_=A=>{p(A.target.value)},x=A=>{a==null||a(A),i?(f(A),p(A.value)):p("")},C=()=>{a==null||a(null),f(null),p("")},E=j(Rt.SearchAutocomplete,t),T=h.slice(0,r),R=h.slice(r);return u.jsxs("div",{ref:l,className:E,...c,children:[u.jsx(ya,{...o,value:d,onChange:_,showClearButton:!!w,onClear:C}),e,u.jsxs(Ho,{className:Rt.DropdownList,open:v&&!w,role:"listbox","aria-label":"Suggestions",children:[m?u.jsx(Dn,{children:"Loading..."}):T.map(A=>u.jsxs(Dn,{canBeSelected:!0,onClick:x.bind(null,A),children:[u.jsx(ba,{text:A.label,query:d}),A.description&&u.jsx("span",{className:Rt.AutocompleteItemDescription,children:A.description})]},A.value)),!m&&R.length>0&&u.jsxs(Dn,{children:[R.length," more results"]}),v&&h.length===0&&!m&&u.jsx(Dn,{children:"No results found"})]})]})}));Ch.displayName="SearchAutocomplete";const Ot=S("Show",e=>{let t=null,n=null;return Gi.forEach(e.children,r=>{const o=r.props.condition;o===void 0?n=r:!t&&o===!0&&(t=r)}),u.jsx(u.Fragment,{children:t||n})});Ot.displayName="Show",Ot.When=({condition:e,children:t})=>u.jsx(u.Fragment,{children:e&&t}),Ot.Else=({render:e,children:t})=>u.jsx(u.Fragment,{children:e||t});function wa(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function _a(...e){return t=>{let n=!1;const r=e.map(o=>{const i=wa(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():wa(e[o],null)}}}}function Oe(...e){return g.useCallback(_a(...e),e)}function Wo(e){const t=Sh(e),n=g.forwardRef((r,o)=>{const{children:i,...s}=r,a=g.Children.toArray(i),c=a.find(Ah);if(c){const l=c.props.children,d=a.map(p=>p===c?g.Children.count(l)>1?g.Children.only(null):g.isValidElement(l)?l.props.children:null:p);return u.jsx(t,{...s,ref:o,children:g.isValidElement(l)?g.cloneElement(l,void 0,d):null})}return u.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var Eh=Wo("Slot");function Sh(e){const t=g.forwardRef((n,r)=>{const{children:o,...i}=n;if(g.isValidElement(o)){const s=Rh(o),a=Ph(i,o.props);return o.type!==g.Fragment&&(a.ref=r?_a(r,s):s),g.cloneElement(o,a)}return g.Children.count(o)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var xa=Symbol("radix.slottable");function Th(e){const t=({children:n})=>u.jsx(u.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=xa,t}function Ah(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xa}function Ph(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const c=i(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Rh(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Ca={SkeletonListContainer:"SkeletonListContainer__MKJhE",Skeleton:"Skeleton__Ovpiw"},Vo=S("Skeleton",z((e,t)=>{const{children:n,className:r,loading:o,height:i=48,width:s,borderRadius:a,style:c,...l}=e;if(!o&&n)return n;const d=io(n)?Eh:"span";return u.jsx(d,{ref:t,"aria-hidden":!0,className:j(Ca.Skeleton,r),style:{...c,width:s,minWidth:s,height:i,borderRadius:a},"data-inline-skeleton":io(n)?void 0:!0,tabIndex:-1,...l,children:n})}));Vo.displayName="Skeleton";const Oh=S("SkeletonList",e=>{const{numberOfItems:t,itemsGap:n=2,itemProps:r}=e,o=Array.from({length:t},(i,s)=>s+1);return u.jsx("div",{className:j(Ca.SkeletonListContainer),style:{gap:n},children:o.map(i=>u.jsx(Vo,{loading:!0,...r},i))})});Oh.displayName="SkeletonList";function ve(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function kh(e,t){const n=g.createContext(t),r=i=>{const{children:s,...a}=i,c=g.useMemo(()=>a,Object.values(a));return u.jsx(n.Provider,{value:c,children:s})};r.displayName=e+"Provider";function o(i){const s=g.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function Go(e,t=[]){let n=[];function r(i,s){const a=g.createContext(s),c=n.length;n=[...n,s];const l=p=>{var _;const{scope:h,children:m,...w}=p,f=((_=h==null?void 0:h[e])==null?void 0:_[c])||a,v=g.useMemo(()=>w,Object.values(w));return u.jsx(f.Provider,{value:v,children:m})};l.displayName=i+"Provider";function d(p,h){var f;const m=((f=h==null?void 0:h[e])==null?void 0:f[c])||a,w=g.useContext(m);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[l,d]}const o=()=>{const i=n.map(s=>g.createContext(s));return function(a){const c=(a==null?void 0:a[e])||i;return g.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,jh(o,...t)]}function jh(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:c,scopeName:l})=>{const p=c(i)[`__scope${l}`];return{...a,...p}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var Dh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ye=Dh.reduce((e,t)=>{const n=Wo(`Primitive.${t}`),r=g.forwardRef((o,i)=>{const{asChild:s,...a}=o,c=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(c,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Lh(e,t){e&&ao.flushSync(()=>e.dispatchEvent(t))}function Zt(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Ih(e,t=globalThis==null?void 0:globalThis.document){const n=Zt(e);g.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Nh="DismissableLayer",qo="dismissableLayer.update",$h="dismissableLayer.pointerDownOutside",Mh="dismissableLayer.focusOutside",Ea,Sa=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qo=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,l=g.useContext(Sa),[d,p]=g.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=g.useState({}),w=Oe(t,A=>p(A)),f=Array.from(l.layers),[v]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),_=f.indexOf(v),x=d?f.indexOf(d):-1,C=l.layersWithOutsidePointerEventsDisabled.size>0,E=x>=_,T=Uh(A=>{const N=A.target,$=[...l.branches].some(M=>M.contains(N));!E||$||(o==null||o(A),s==null||s(A),A.defaultPrevented||a==null||a())},h),R=zh(A=>{const N=A.target;[...l.branches].some(M=>M.contains(N))||(i==null||i(A),s==null||s(A),A.defaultPrevented||a==null||a())},h);return Ih(A=>{x===l.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},h),g.useEffect(()=>{if(d)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Ea=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),Ta(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Ea)}},[d,h,n,l]),g.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),Ta())},[d,l]),g.useEffect(()=>{const A=()=>m({});return document.addEventListener(qo,A),()=>document.removeEventListener(qo,A)},[]),u.jsx(ye.div,{...c,ref:w,style:{pointerEvents:C?E?"auto":"none":void 0,...e.style},onFocusCapture:ve(e.onFocusCapture,R.onFocusCapture),onBlurCapture:ve(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:ve(e.onPointerDownCapture,T.onPointerDownCapture)})});Qo.displayName=Nh;var Fh="DismissableLayerBranch",Bh=g.forwardRef((e,t)=>{const n=g.useContext(Sa),r=g.useRef(null),o=Oe(t,r);return g.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),u.jsx(ye.div,{...e,ref:o})});Bh.displayName=Fh;function Uh(e,t=globalThis==null?void 0:globalThis.document){const n=Zt(e),r=g.useRef(!1),o=g.useRef(()=>{});return g.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){Aa($h,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function zh(e,t=globalThis==null?void 0:globalThis.document){const n=Zt(e),r=g.useRef(!1);return g.useEffect(()=>{const o=i=>{i.target&&!r.current&&Aa(Mh,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ta(){const e=new CustomEvent(qo);document.dispatchEvent(e)}function Aa(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Lh(o,i):o.dispatchEvent(i)}var ut=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},Hh=g[" useId ".trim().toString()]||(()=>{}),Wh=0;function xr(e){const[t,n]=g.useState(Hh());return ut(()=>{n(r=>r??String(Wh++))},[e]),t?`radix-${t}`:""}const Vh=["top","right","bottom","left"],dt=Math.min,Ee=Math.max,Cr=Math.round,Er=Math.floor,Fe=e=>({x:e,y:e}),Gh={left:"right",right:"left",bottom:"top",top:"bottom"},qh={start:"end",end:"start"};function Yo(e,t,n){return Ee(e,dt(t,n))}function Ke(e,t){return typeof e=="function"?e(t):e}function Ze(e){return e.split("-")[0]}function Xt(e){return e.split("-")[1]}function Ko(e){return e==="x"?"y":"x"}function Zo(e){return e==="y"?"height":"width"}const Qh=new Set(["top","bottom"]);function Be(e){return Qh.has(Ze(e))?"y":"x"}function Xo(e){return Ko(Be(e))}function Yh(e,t,n){n===void 0&&(n=!1);const r=Xt(e),o=Xo(e),i=Zo(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Sr(s)),[s,Sr(s)]}function Kh(e){const t=Sr(e);return[Jo(e),t,Jo(t)]}function Jo(e){return e.replace(/start|end/g,t=>qh[t])}const Pa=["left","right"],Ra=["right","left"],Zh=["top","bottom"],Xh=["bottom","top"];function Jh(e,t,n){switch(e){case"top":case"bottom":return n?t?Ra:Pa:t?Pa:Ra;case"left":case"right":return t?Zh:Xh;default:return[]}}function ep(e,t,n,r){const o=Xt(e);let i=Jh(Ze(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Jo)))),i}function Sr(e){return e.replace(/left|right|bottom|top/g,t=>Gh[t])}function tp(e){return{top:0,right:0,bottom:0,left:0,...e}}function Oa(e){return typeof e!="number"?tp(e):{top:e,right:e,bottom:e,left:e}}function Tr(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function ka(e,t,n){let{reference:r,floating:o}=e;const i=Be(t),s=Xo(t),a=Zo(s),c=Ze(t),l=i==="y",d=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let m;switch(c){case"top":m={x:d,y:r.y-o.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:p};break;case"left":m={x:r.x-o.width,y:p};break;default:m={x:r.x,y:r.y}}switch(Xt(t)){case"start":m[s]-=h*(n&&l?-1:1);break;case"end":m[s]+=h*(n&&l?-1:1);break}return m}const np=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=ka(l,r,c),h=r,m={},w=0;for(let f=0;f<a.length;f++){const{name:v,fn:_}=a[f],{x,y:C,data:E,reset:T}=await _({x:d,y:p,initialPlacement:r,placement:h,strategy:o,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});d=x??d,p=C??p,m={...m,[v]:{...m[v],...E}},T&&w<=50&&(w++,typeof T=="object"&&(T.placement&&(h=T.placement),T.rects&&(l=T.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):T.rects),{x:d,y:p}=ka(l,h,c)),f=-1)}return{x:d,y:p,placement:h,strategy:o,middlewareData:m}};async function Ln(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:m=0}=Ke(t,e),w=Oa(m),v=a[h?p==="floating"?"reference":"floating":p],_=Tr(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:d,strategy:c})),x=p==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),E=await(i.isElement==null?void 0:i.isElement(C))?await(i.getScale==null?void 0:i.getScale(C))||{x:1,y:1}:{x:1,y:1},T=Tr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:C,strategy:c}):x);return{top:(_.top-T.top+w.top)/E.y,bottom:(T.bottom-_.bottom+w.bottom)/E.y,left:(_.left-T.left+w.left)/E.x,right:(T.right-_.right+w.right)/E.x}}const rp=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:d=0}=Ke(e,t)||{};if(l==null)return{};const p=Oa(d),h={x:n,y:r},m=Xo(o),w=Zo(m),f=await s.getDimensions(l),v=m==="y",_=v?"top":"left",x=v?"bottom":"right",C=v?"clientHeight":"clientWidth",E=i.reference[w]+i.reference[m]-h[m]-i.floating[w],T=h[m]-i.reference[m],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let A=R?R[C]:0;(!A||!await(s.isElement==null?void 0:s.isElement(R)))&&(A=a.floating[C]||i.floating[w]);const N=E/2-T/2,$=A/2-f[w]/2-1,M=dt(p[_],$),Z=dt(p[x],$),X=M,V=A-f[w]-Z,Y=A/2-f[w]/2+N,ce=Yo(X,Y,V),re=!c.arrow&&Xt(o)!=null&&Y!==ce&&i.reference[w]/2-(Y<X?M:Z)-f[w]/2<0,oe=re?Y<X?Y-X:Y-V:0;return{[m]:h[m]+oe,data:{[m]:ce,centerOffset:Y-ce-oe,...re&&{alignmentOffset:oe}},reset:re}}}),op=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:f=!0,...v}=Ke(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const _=Ze(o),x=Be(a),C=Ze(a)===a,E=await(c.isRTL==null?void 0:c.isRTL(l.floating)),T=h||(C||!f?[Sr(a)]:Kh(a)),R=w!=="none";!h&&R&&T.push(...ep(a,f,w,E));const A=[a,...T],N=await Ln(t,v),$=[];let M=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&$.push(N[_]),p){const Y=Yh(o,s,E);$.push(N[Y[0]],N[Y[1]])}if(M=[...M,{placement:o,overflows:$}],!$.every(Y=>Y<=0)){var Z,X;const Y=(((Z=i.flip)==null?void 0:Z.index)||0)+1,ce=A[Y];if(ce&&(!(p==="alignment"?x!==Be(ce):!1)||M.every(B=>Be(B.placement)===x?B.overflows[0]>0:!0)))return{data:{index:Y,overflows:M},reset:{placement:ce}};let re=(X=M.filter(oe=>oe.overflows[0]<=0).sort((oe,B)=>oe.overflows[1]-B.overflows[1])[0])==null?void 0:X.placement;if(!re)switch(m){case"bestFit":{var V;const oe=(V=M.filter(B=>{if(R){const le=Be(B.placement);return le===x||le==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(le=>le>0).reduce((le,Te)=>le+Te,0)]).sort((B,le)=>B[1]-le[1])[0])==null?void 0:V[0];oe&&(re=oe);break}case"initialPlacement":re=a;break}if(o!==re)return{reset:{placement:re}}}return{}}}};function ja(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Da(e){return Vh.some(t=>e[t]>=0)}const ip=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ke(e,t);switch(r){case"referenceHidden":{const i=await Ln(t,{...o,elementContext:"reference"}),s=ja(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Da(s)}}}case"escaped":{const i=await Ln(t,{...o,altBoundary:!0}),s=ja(i,n.floating);return{data:{escapedOffsets:s,escaped:Da(s)}}}default:return{}}}}},La=new Set(["left","top"]);async function sp(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Ze(n),a=Xt(n),c=Be(n)==="y",l=La.has(s)?-1:1,d=i&&c?-1:1,p=Ke(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof w=="number"&&(m=a==="end"?w*-1:w),c?{x:m*d,y:h*l}:{x:h*l,y:m*d}}const ap=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,c=await sp(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},cp=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:_,y:x}=v;return{x:_,y:x}}},...c}=Ke(e,t),l={x:n,y:r},d=await Ln(t,c),p=Be(Ze(o)),h=Ko(p);let m=l[h],w=l[p];if(i){const v=h==="y"?"top":"left",_=h==="y"?"bottom":"right",x=m+d[v],C=m-d[_];m=Yo(x,m,C)}if(s){const v=p==="y"?"top":"left",_=p==="y"?"bottom":"right",x=w+d[v],C=w-d[_];w=Yo(x,w,C)}const f=a.fn({...t,[h]:m,[p]:w});return{...f,data:{x:f.x-n,y:f.y-r,enabled:{[h]:i,[p]:s}}}}}},lp=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Ke(e,t),d={x:n,y:r},p=Be(o),h=Ko(p);let m=d[h],w=d[p];const f=Ke(a,t),v=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(c){const C=h==="y"?"height":"width",E=i.reference[h]-i.floating[C]+v.mainAxis,T=i.reference[h]+i.reference[C]-v.mainAxis;m<E?m=E:m>T&&(m=T)}if(l){var _,x;const C=h==="y"?"width":"height",E=La.has(Ze(o)),T=i.reference[p]-i.floating[C]+(E&&((_=s.offset)==null?void 0:_[p])||0)+(E?0:v.crossAxis),R=i.reference[p]+i.reference[C]+(E?0:((x=s.offset)==null?void 0:x[p])||0)-(E?v.crossAxis:0);w<T?w=T:w>R&&(w=R)}return{[h]:m,[p]:w}}}},up=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:c=()=>{},...l}=Ke(e,t),d=await Ln(t,l),p=Ze(o),h=Xt(o),m=Be(o)==="y",{width:w,height:f}=i.floating;let v,_;p==="top"||p==="bottom"?(v=p,_=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(_=p,v=h==="end"?"top":"bottom");const x=f-d.top-d.bottom,C=w-d.left-d.right,E=dt(f-d[v],x),T=dt(w-d[_],C),R=!t.middlewareData.shift;let A=E,N=T;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=x),R&&!h){const M=Ee(d.left,0),Z=Ee(d.right,0),X=Ee(d.top,0),V=Ee(d.bottom,0);m?N=w-2*(M!==0||Z!==0?M+Z:Ee(d.left,d.right)):A=f-2*(X!==0||V!==0?X+V:Ee(d.top,d.bottom))}await c({...t,availableWidth:N,availableHeight:A});const $=await s.getDimensions(a.floating);return w!==$.width||f!==$.height?{reset:{rects:!0}}:{}}}};function Ar(){return typeof window<"u"}function Jt(e){return Ia(e)?(e.nodeName||"").toLowerCase():"#document"}function Se(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ue(e){var t;return(t=(Ia(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ia(e){return Ar()?e instanceof Node||e instanceof Se(e).Node:!1}function ke(e){return Ar()?e instanceof Element||e instanceof Se(e).Element:!1}function ze(e){return Ar()?e instanceof HTMLElement||e instanceof Se(e).HTMLElement:!1}function Na(e){return!Ar()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Se(e).ShadowRoot}const dp=new Set(["inline","contents"]);function In(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=je(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!dp.has(o)}const fp=new Set(["table","td","th"]);function hp(e){return fp.has(Jt(e))}const pp=[":popover-open",":modal"];function Pr(e){return pp.some(t=>{try{return e.matches(t)}catch{return!1}})}const mp=["transform","translate","scale","rotate","perspective"],gp=["transform","translate","scale","rotate","perspective","filter"],vp=["paint","layout","strict","content"];function ei(e){const t=ti(),n=ke(e)?je(e):e;return mp.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||gp.some(r=>(n.willChange||"").includes(r))||vp.some(r=>(n.contain||"").includes(r))}function yp(e){let t=ft(e);for(;ze(t)&&!en(t);){if(ei(t))return t;if(Pr(t))return null;t=ft(t)}return null}function ti(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const bp=new Set(["html","body","#document"]);function en(e){return bp.has(Jt(e))}function je(e){return Se(e).getComputedStyle(e)}function Rr(e){return ke(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ft(e){if(Jt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Na(e)&&e.host||Ue(e);return Na(t)?t.host:t}function $a(e){const t=ft(e);return en(t)?e.ownerDocument?e.ownerDocument.body:e.body:ze(t)&&In(t)?t:$a(t)}function Nn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=$a(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Se(o);if(i){const a=ni(s);return t.concat(s,s.visualViewport||[],In(o)?o:[],a&&n?Nn(a):[])}return t.concat(o,Nn(o,[],n))}function ni(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ma(e){const t=je(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ze(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Cr(n)!==i||Cr(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function ri(e){return ke(e)?e:e.contextElement}function tn(e){const t=ri(e);if(!ze(t))return Fe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ma(t);let s=(i?Cr(n.width):n.width)/r,a=(i?Cr(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const wp=Fe(0);function Fa(e){const t=Se(e);return!ti()||!t.visualViewport?wp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _p(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Se(e)?!1:t}function kt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=ri(e);let s=Fe(1);t&&(r?ke(r)&&(s=tn(r)):s=tn(e));const a=_p(i,n,r)?Fa(i):Fe(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,d=o.width/s.x,p=o.height/s.y;if(i){const h=Se(i),m=r&&ke(r)?Se(r):r;let w=h,f=ni(w);for(;f&&r&&m!==w;){const v=tn(f),_=f.getBoundingClientRect(),x=je(f),C=_.left+(f.clientLeft+parseFloat(x.paddingLeft))*v.x,E=_.top+(f.clientTop+parseFloat(x.paddingTop))*v.y;c*=v.x,l*=v.y,d*=v.x,p*=v.y,c+=C,l+=E,w=Se(f),f=ni(w)}}return Tr({width:d,height:p,x:c,y:l})}function oi(e,t){const n=Rr(e).scrollLeft;return t?t.left+n:kt(Ue(e)).left+n}function Ba(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:oi(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function xp(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Ue(r),a=t?Pr(t.floating):!1;if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=Fe(1);const d=Fe(0),p=ze(r);if((p||!p&&!i)&&((Jt(r)!=="body"||In(s))&&(c=Rr(r)),ze(r))){const m=kt(r);l=tn(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const h=s&&!p&&!i?Ba(s,c,!0):Fe(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+d.x+h.x,y:n.y*l.y-c.scrollTop*l.y+d.y+h.y}}function Cp(e){return Array.from(e.getClientRects())}function Ep(e){const t=Ue(e),n=Rr(e),r=e.ownerDocument.body,o=Ee(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ee(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+oi(e);const a=-n.scrollTop;return je(r).direction==="rtl"&&(s+=Ee(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function Sp(e,t){const n=Se(e),r=Ue(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const l=ti();(!l||l&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a,y:c}}const Tp=new Set(["absolute","fixed"]);function Ap(e,t){const n=kt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ze(e)?tn(e):Fe(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=o*i.x,l=r*i.y;return{width:s,height:a,x:c,y:l}}function Ua(e,t,n){let r;if(t==="viewport")r=Sp(e,n);else if(t==="document")r=Ep(Ue(e));else if(ke(t))r=Ap(t,n);else{const o=Fa(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Tr(r)}function za(e,t){const n=ft(e);return n===t||!ke(n)||en(n)?!1:je(n).position==="fixed"||za(n,t)}function Pp(e,t){const n=t.get(e);if(n)return n;let r=Nn(e,[],!1).filter(a=>ke(a)&&Jt(a)!=="body"),o=null;const i=je(e).position==="fixed";let s=i?ft(e):e;for(;ke(s)&&!en(s);){const a=je(s),c=ei(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&Tp.has(o.position)||In(s)&&!c&&za(e,s))?r=r.filter(d=>d!==s):o=a,s=ft(s)}return t.set(e,r),r}function Rp(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Pr(t)?[]:Pp(t,this._c):[].concat(n),r],a=s[0],c=s.reduce((l,d)=>{const p=Ua(t,d,o);return l.top=Ee(p.top,l.top),l.right=dt(p.right,l.right),l.bottom=dt(p.bottom,l.bottom),l.left=Ee(p.left,l.left),l},Ua(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Op(e){const{width:t,height:n}=Ma(e);return{width:t,height:n}}function kp(e,t,n){const r=ze(t),o=Ue(t),i=n==="fixed",s=kt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Fe(0);function l(){c.x=oi(o)}if(r||!r&&!i)if((Jt(t)!=="body"||In(o))&&(a=Rr(t)),r){const m=kt(t,!0,i,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else o&&l();i&&!r&&o&&l();const d=o&&!r&&!i?Ba(o,a):Fe(0),p=s.left+a.scrollLeft-c.x-d.x,h=s.top+a.scrollTop-c.y-d.y;return{x:p,y:h,width:s.width,height:s.height}}function ii(e){return je(e).position==="static"}function Ha(e,t){if(!ze(e)||je(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ue(e)===n&&(n=n.ownerDocument.body),n}function Wa(e,t){const n=Se(e);if(Pr(e))return n;if(!ze(e)){let o=ft(e);for(;o&&!en(o);){if(ke(o)&&!ii(o))return o;o=ft(o)}return n}let r=Ha(e,t);for(;r&&hp(r)&&ii(r);)r=Ha(r,t);return r&&en(r)&&ii(r)&&!ei(r)?n:r||yp(e)||n}const jp=async function(e){const t=this.getOffsetParent||Wa,n=this.getDimensions,r=await n(e.floating);return{reference:kp(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Dp(e){return je(e).direction==="rtl"}const Lp={convertOffsetParentRelativeRectToViewportRelativeRect:xp,getDocumentElement:Ue,getClippingRect:Rp,getOffsetParent:Wa,getElementRects:jp,getClientRects:Cp,getDimensions:Op,getScale:tn,isElement:ke,isRTL:Dp};function Va(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ip(e,t){let n=null,r;const o=Ue(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const l=e.getBoundingClientRect(),{left:d,top:p,width:h,height:m}=l;if(a||t(),!h||!m)return;const w=Er(p),f=Er(o.clientWidth-(d+h)),v=Er(o.clientHeight-(p+m)),_=Er(d),C={rootMargin:-w+"px "+-f+"px "+-v+"px "+-_+"px",threshold:Ee(0,dt(1,c))||1};let E=!0;function T(R){const A=R[0].intersectionRatio;if(A!==c){if(!E)return s();A?s(!1,A):r=setTimeout(()=>{s(!1,1e-7)},1e3)}A===1&&!Va(l,e.getBoundingClientRect())&&s(),E=!1}try{n=new IntersectionObserver(T,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(T,C)}n.observe(e)}return s(!0),i}function Np(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=ri(e),d=o||i?[...l?Nn(l):[],...Nn(t)]:[];d.forEach(_=>{o&&_.addEventListener("scroll",n,{passive:!0}),i&&_.addEventListener("resize",n)});const p=l&&a?Ip(l,n):null;let h=-1,m=null;s&&(m=new ResizeObserver(_=>{let[x]=_;x&&x.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var C;(C=m)==null||C.observe(t)})),n()}),l&&!c&&m.observe(l),m.observe(t));let w,f=c?kt(e):null;c&&v();function v(){const _=kt(e);f&&!Va(f,_)&&n(),f=_,w=requestAnimationFrame(v)}return n(),()=>{var _;d.forEach(x=>{o&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),p==null||p(),(_=m)==null||_.disconnect(),m=null,c&&cancelAnimationFrame(w)}}const $p=ap,Mp=cp,Fp=op,Bp=up,Up=ip,Ga=rp,zp=lp,Hp=(e,t,n)=>{const r=new Map,o={platform:Lp,...n},i={...o.platform,_c:r};return np(e,t,{...o,platform:i})};var Wp=typeof document<"u",Vp=function(){},Or=Wp?qi:Vp;function kr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!kr(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!kr(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function qa(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Qa(e,t){const n=qa(e);return Math.round(t*n)/n}function si(e){const t=g.useRef(e);return Or(()=>{t.current=e}),t}function Gp(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[d,p]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=g.useState(r);kr(h,r)||m(r);const[w,f]=g.useState(null),[v,_]=g.useState(null),x=g.useCallback(B=>{B!==R.current&&(R.current=B,f(B))},[]),C=g.useCallback(B=>{B!==A.current&&(A.current=B,_(B))},[]),E=i||w,T=s||v,R=g.useRef(null),A=g.useRef(null),N=g.useRef(d),$=c!=null,M=si(c),Z=si(o),X=si(l),V=g.useCallback(()=>{if(!R.current||!A.current)return;const B={placement:t,strategy:n,middleware:h};Z.current&&(B.platform=Z.current),Hp(R.current,A.current,B).then(le=>{const Te={...le,isPositioned:X.current!==!1};Y.current&&!kr(N.current,Te)&&(N.current=Te,ao.flushSync(()=>{p(Te)}))})},[h,t,n,Z,X]);Or(()=>{l===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,p(B=>({...B,isPositioned:!1})))},[l]);const Y=g.useRef(!1);Or(()=>(Y.current=!0,()=>{Y.current=!1}),[]),Or(()=>{if(E&&(R.current=E),T&&(A.current=T),E&&T){if(M.current)return M.current(E,T,V);V()}},[E,T,V,M,$]);const ce=g.useMemo(()=>({reference:R,floating:A,setReference:x,setFloating:C}),[x,C]),re=g.useMemo(()=>({reference:E,floating:T}),[E,T]),oe=g.useMemo(()=>{const B={position:n,left:0,top:0};if(!re.floating)return B;const le=Qa(re.floating,d.x),Te=Qa(re.floating,d.y);return a?{...B,transform:"translate("+le+"px, "+Te+"px)",...qa(re.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:le,top:Te}},[n,a,re.floating,d.x,d.y]);return g.useMemo(()=>({...d,update:V,refs:ce,elements:re,floatingStyles:oe}),[d,V,ce,re,oe])}const qp=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ga({element:r.current,padding:o}).fn(n):{}:r?Ga({element:r,padding:o}).fn(n):{}}}},Qp=(e,t)=>({...$p(e),options:[e,t]}),Yp=(e,t)=>({...Mp(e),options:[e,t]}),Kp=(e,t)=>({...zp(e),options:[e,t]}),Zp=(e,t)=>({...Fp(e),options:[e,t]}),Xp=(e,t)=>({...Bp(e),options:[e,t]}),Jp=(e,t)=>({...Up(e),options:[e,t]}),e1=(e,t)=>({...qp(e),options:[e,t]});var t1="Arrow",Ya=g.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return u.jsx(ye.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ya.displayName=t1;var n1=Ya;function r1(e){const[t,n]=g.useState(void 0);return ut(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;s=l.inlineSize,a=l.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ai="Popper",[Ka,Za]=Go(ai),[o1,Xa]=Ka(ai),Ja=e=>{const{__scopePopper:t,children:n}=e,[r,o]=g.useState(null);return u.jsx(o1,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ja.displayName=ai;var ec="PopperAnchor",tc=g.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Xa(ec,n),s=g.useRef(null),a=Oe(t,s);return g.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:u.jsx(ye.div,{...o,ref:a})});tc.displayName=ec;var ci="PopperContent",[i1,s1]=Ka(ci),nc=g.forwardRef((e,t)=>{var xn,Ht,Cn,Wt,Jr,Vn;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:w,...f}=e,v=Xa(ci,n),[_,x]=g.useState(null),C=Oe(t,Vt=>x(Vt)),[E,T]=g.useState(null),R=r1(E),A=(R==null?void 0:R.width)??0,N=(R==null?void 0:R.height)??0,$=r+(i!=="center"?"-"+i:""),M=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},Z=Array.isArray(l)?l:[l],X=Z.length>0,V={padding:M,boundary:Z.filter(c1),altBoundary:X},{refs:Y,floatingStyles:ce,placement:re,isPositioned:oe,middlewareData:B}=Gp({strategy:"fixed",placement:$,whileElementsMounted:(...Vt)=>Np(...Vt,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[Qp({mainAxis:o+N,alignmentAxis:s}),c&&Yp({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Kp():void 0,...V}),c&&Zp({...V}),Xp({...V,apply:({elements:Vt,rects:eo,availableWidth:En,availableHeight:Gt})=>{const{width:to,height:no}=eo.reference,rt=Vt.floating.style;rt.setProperty("--radix-popper-available-width",`${En}px`),rt.setProperty("--radix-popper-available-height",`${Gt}px`),rt.setProperty("--radix-popper-anchor-width",`${to}px`),rt.setProperty("--radix-popper-anchor-height",`${no}px`)}}),E&&e1({element:E,padding:a}),l1({arrowWidth:A,arrowHeight:N}),h&&Jp({strategy:"referenceHidden",...V})]}),[le,Te]=ic(re),zt=Zt(w);ut(()=>{oe&&(zt==null||zt())},[oe,zt]);const Zr=(xn=B.arrow)==null?void 0:xn.x,Xr=(Ht=B.arrow)==null?void 0:Ht.y,Oi=((Cn=B.arrow)==null?void 0:Cn.centerOffset)!==0,[ki,Wn]=g.useState();return ut(()=>{_&&Wn(window.getComputedStyle(_).zIndex)},[_]),u.jsx("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...ce,transform:oe?ce.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ki,"--radix-popper-transform-origin":[(Wt=B.transformOrigin)==null?void 0:Wt.x,(Jr=B.transformOrigin)==null?void 0:Jr.y].join(" "),...((Vn=B.hide)==null?void 0:Vn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(i1,{scope:n,placedSide:le,onArrowChange:T,arrowX:Zr,arrowY:Xr,shouldHideArrow:Oi,children:u.jsx(ye.div,{"data-side":le,"data-align":Te,...f,ref:C,style:{...f.style,animation:oe?void 0:"none"}})})})});nc.displayName=ci;var rc="PopperArrow",a1={top:"bottom",right:"left",bottom:"top",left:"right"},oc=g.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=s1(rc,r),s=a1[i.placedSide];return u.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:u.jsx(n1,{...o,ref:n,style:{...o.style,display:"block"}})})});oc.displayName=rc;function c1(e){return e!==null}var l1=e=>({name:"transformOrigin",options:e,fn(t){var v,_,x;const{placement:n,rects:r,middlewareData:o}=t,s=((v=o.arrow)==null?void 0:v.centerOffset)!==0,a=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[l,d]=ic(n),p={start:"0%",center:"50%",end:"100%"}[d],h=(((_=o.arrow)==null?void 0:_.x)??0)+a/2,m=(((x=o.arrow)==null?void 0:x.y)??0)+c/2;let w="",f="";return l==="bottom"?(w=s?p:`${h}px`,f=`${-c}px`):l==="top"?(w=s?p:`${h}px`,f=`${r.floating.height+c}px`):l==="right"?(w=`${-c}px`,f=s?p:`${m}px`):l==="left"&&(w=`${r.floating.width+c}px`,f=s?p:`${m}px`),{data:{x:w,y:f}}}});function ic(e){const[t,n="center"]=e.split("-");return[t,n]}var u1=Ja,d1=tc,f1=nc,h1=oc,p1="Portal",li=g.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=g.useState(!1);ut(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?Yi.createPortal(u.jsx(ye.div,{...r,ref:t}),s):null});li.displayName=p1;function m1(e,t){return g.useReducer((n,r)=>t[n][r]??n,e)}var nn=e=>{const{present:t,children:n}=e,r=g1(t),o=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),i=Oe(r.ref,v1(o));return typeof n=="function"||r.isPresent?g.cloneElement(o,{ref:i}):null};nn.displayName="Presence";function g1(e){const[t,n]=g.useState(),r=g.useRef(null),o=g.useRef(e),i=g.useRef("none"),s=e?"mounted":"unmounted",[a,c]=m1(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const l=jr(r.current);i.current=a==="mounted"?l:"none"},[a]),ut(()=>{const l=r.current,d=o.current;if(d!==e){const h=i.current,m=jr(l);e?c("MOUNT"):m==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(d&&h!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ut(()=>{if(t){let l;const d=t.ownerDocument.defaultView??window,p=m=>{const f=jr(r.current).includes(m.animationName);if(m.target===t&&f&&(c("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",l=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=m=>{m.target===t&&(i.current=jr(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:g.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function jr(e){return(e==null?void 0:e.animationName)||"none"}function v1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var y1=g[" useInsertionEffect ".trim().toString()]||ut;function sc({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=b1({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const d=g.useRef(e!==void 0);g.useEffect(()=>{const p=d.current;p!==a&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const l=g.useCallback(d=>{var p;if(a){const h=w1(d)?d(e):d;h!==e&&((p=s.current)==null||p.call(s,h))}else i(d)},[a,e,i,s]);return[c,l]}function b1({defaultProp:e,onChange:t}){const[n,r]=g.useState(e),o=g.useRef(n),i=g.useRef(t);return y1(()=>{i.current=t},[t]),g.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function w1(e){return typeof e=="function"}var _1=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),x1="VisuallyHidden",ac=g.forwardRef((e,t)=>u.jsx(ye.span,{...e,ref:t,style:{..._1,...e.style}}));ac.displayName=x1;var C1=ac,[Dr,my]=Go("Tooltip",[Za]),Lr=Za(),cc="TooltipProvider",E1=700,ui="tooltip.open",[S1,di]=Dr(cc),lc=e=>{const{__scopeTooltip:t,delayDuration:n=E1,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=g.useRef(!0),a=g.useRef(!1),c=g.useRef(0);return g.useEffect(()=>{const l=c.current;return()=>window.clearTimeout(l)},[]),u.jsx(S1,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:g.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:g.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:g.useCallback(l=>{a.current=l},[]),disableHoverableContent:o,children:i})};lc.displayName=cc;var $n="Tooltip",[T1,Mn]=Dr($n),uc=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,c=di($n,e.__scopeTooltip),l=Lr(t),[d,p]=g.useState(null),h=xr(),m=g.useRef(0),w=s??c.disableHoverableContent,f=a??c.delayDuration,v=g.useRef(!1),[_,x]=sc({prop:r,defaultProp:o??!1,onChange:A=>{A?(c.onOpen(),document.dispatchEvent(new CustomEvent(ui))):c.onClose(),i==null||i(A)},caller:$n}),C=g.useMemo(()=>_?v.current?"delayed-open":"instant-open":"closed",[_]),E=g.useCallback(()=>{window.clearTimeout(m.current),m.current=0,v.current=!1,x(!0)},[x]),T=g.useCallback(()=>{window.clearTimeout(m.current),m.current=0,x(!1)},[x]),R=g.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{v.current=!0,x(!0),m.current=0},f)},[f,x]);return g.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),u.jsx(u1,{...l,children:u.jsx(T1,{scope:t,contentId:h,open:_,stateAttribute:C,trigger:d,onTriggerChange:p,onTriggerEnter:g.useCallback(()=>{c.isOpenDelayedRef.current?R():E()},[c.isOpenDelayedRef,R,E]),onTriggerLeave:g.useCallback(()=>{w?T():(window.clearTimeout(m.current),m.current=0)},[T,w]),onOpen:E,onClose:T,disableHoverableContent:w,children:n})})};uc.displayName=$n;var fi="TooltipTrigger",dc=g.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Mn(fi,n),i=di(fi,n),s=Lr(n),a=g.useRef(null),c=Oe(t,a,o.onTriggerChange),l=g.useRef(!1),d=g.useRef(!1),p=g.useCallback(()=>l.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),u.jsx(d1,{asChild:!0,...s,children:u.jsx(ye.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:ve(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:ve(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:ve(e.onPointerDown,()=>{o.open&&o.onClose(),l.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:ve(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:ve(e.onBlur,o.onClose),onClick:ve(e.onClick,o.onClose)})})});dc.displayName=fi;var hi="TooltipPortal",[A1,P1]=Dr(hi,{forceMount:void 0}),fc=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=Mn(hi,t);return u.jsx(A1,{scope:t,forceMount:n,children:u.jsx(nn,{present:n||i.open,children:u.jsx(li,{asChild:!0,container:o,children:r})})})};fc.displayName=hi;var rn="TooltipContent",hc=g.forwardRef((e,t)=>{const n=P1(rn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=Mn(rn,e.__scopeTooltip);return u.jsx(nn,{present:r||s.open,children:s.disableHoverableContent?u.jsx(pc,{side:o,...i,ref:t}):u.jsx(R1,{side:o,...i,ref:t})})}),R1=g.forwardRef((e,t)=>{const n=Mn(rn,e.__scopeTooltip),r=di(rn,e.__scopeTooltip),o=g.useRef(null),i=Oe(t,o),[s,a]=g.useState(null),{trigger:c,onClose:l}=n,d=o.current,{onPointerInTransitChange:p}=r,h=g.useCallback(()=>{a(null),p(!1)},[p]),m=g.useCallback((w,f)=>{const v=w.currentTarget,_={x:w.clientX,y:w.clientY},x=D1(_,v.getBoundingClientRect()),C=L1(_,x),E=I1(f.getBoundingClientRect()),T=$1([...C,...E]);a(T),p(!0)},[p]);return g.useEffect(()=>()=>h(),[h]),g.useEffect(()=>{if(c&&d){const w=v=>m(v,d),f=v=>m(v,c);return c.addEventListener("pointerleave",w),d.addEventListener("pointerleave",f),()=>{c.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",f)}}},[c,d,m,h]),g.useEffect(()=>{if(s){const w=f=>{const v=f.target,_={x:f.clientX,y:f.clientY},x=(c==null?void 0:c.contains(v))||(d==null?void 0:d.contains(v)),C=!N1(_,s);x?h():C&&(h(),l())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[c,d,s,l,h]),u.jsx(pc,{...e,ref:i})}),[O1,k1]=Dr($n,{isInside:!1}),j1=Th("TooltipContent"),pc=g.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,c=Mn(rn,n),l=Lr(n),{onClose:d}=c;return g.useEffect(()=>(document.addEventListener(ui,d),()=>document.removeEventListener(ui,d)),[d]),g.useEffect(()=>{if(c.trigger){const p=h=>{const m=h.target;m!=null&&m.contains(c.trigger)&&d()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,d]),u.jsx(Qo,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:d,children:u.jsxs(f1,{"data-state":c.stateAttribute,...l,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(j1,{children:r}),u.jsx(O1,{scope:n,isInside:!0,children:u.jsx(C1,{id:c.contentId,role:"tooltip",children:o||r})})]})})});hc.displayName=rn;var mc="TooltipArrow",gc=g.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Lr(n);return k1(mc,n).isInside?null:u.jsx(h1,{...o,...r,ref:t})});gc.displayName=mc;function D1(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function L1(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function I1(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function N1(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i],c=t[s],l=a.x,d=a.y,p=c.x,h=c.y;d>r!=h>r&&n<(p-l)*(r-d)/(h-d)+l&&(o=!o)}return o}function $1(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),M1(t)}function M1(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var F1=lc,B1=uc,U1=dc,z1=fc,H1=hc,W1=gc;const vc={tooltip:"tooltip__nUuSh",tooltipArrow:"tooltipArrow__W2w-f"},V1=S("Tooltip",({children:e,open:t,displayName:n,tooltipContent:r,className:o,disabled:i,delayDuration:s=300,side:a="right",sideOffset:c=0})=>{const[l,d]=L(!1),p=t!==void 0,m=i?!1:p?t:l,w=f=>{i||p||d(f)};return u.jsx(F1,{delayDuration:s,children:u.jsxs(B1,{open:m,onOpenChange:w,children:[u.jsx(U1,{asChild:!0,children:e}),u.jsx(z1,{children:u.jsxs(H1,{className:j(vc.tooltip,o),side:a,sideOffset:c,children:[n,r,u.jsx(W1,{className:vc.tooltipArrow})]})})]})})});V1.displayName="Tooltip";const yc={spinner:"spinner__qa7F6",rotate:"rotate__EqlXe","spinner-dark":"spinner-dark__9A9-q",spinnerDark:"spinner-dark__9A9-q","spinner-white":"spinner-white__gRbtI",spinnerWhite:"spinner-white__gRbtI","spinner-success":"spinner-success__otWGm",spinnerSuccess:"spinner-success__otWGm","spinner-danger":"spinner-danger__Bq5DM",spinnerDanger:"spinner-danger__Bq5DM","spinner-warning":"spinner-warning__U900K",spinnerWarning:"spinner-warning__U900K"},G1=S("Spinner",({className:e,color:t="white",size:n=80,thickness:r})=>{const o=j(yc.spinner,yc[`spinner-${t}`],e),i=r??Math.max(n/12,2);return u.jsx("span",{style:{width:n,height:n,borderWidth:i},className:o})});G1.displayName="Spinner";const Ir={switch:"switch__0b2av",disabled:"disabled__KpauE",checked:"checked__2-JV-",thumb:"thumb__fEuKD"},q1=S("Switch",z(({checked:e,defaultChecked:t=!1,onCheckedChange:n,disabled:r=!1,id:o,className:i,name:s,"aria-label":a,"aria-labelledby":c,"aria-describedby":l,...d},p)=>{const[h,m]=qn.useState(t),w=e!==void 0,f=w?!!e:h,v=()=>{if(r)return;const x=!f;w||m(x),n==null||n(x)},_=x=>{(x.key===" "||x.key==="Enter")&&(x.preventDefault(),v())};return u.jsx("button",{ref:p,type:"button",role:"switch","aria-checked":f,"aria-label":a,"aria-labelledby":c,"aria-describedby":l,disabled:r,id:o,name:s,className:j(Ir.switch,{[Ir.checked]:f,[Ir.disabled]:r}),onClick:v,onKeyDown:_,...d,children:u.jsx("span",{className:Ir.thumb,"aria-hidden":"true"})})}));q1.displayName="Switch";const He={tabsRoot:"tabs-root__ELmdj",tabsList:"tabs-list__rc10N",tabsListHorizontal:"tabs-list--horizontal__e1YW4",tabsListVertical:"tabs-list--vertical__huK05",tabsTrigger:"tabs-trigger__D8R4R",tabsTriggerDisabled:"tabs-trigger--disabled__ezDWc",tabsTriggerHorizontal:"tabs-trigger--horizontal__4jBFV",tabsTriggerActive:"tabs-trigger--active__S-Z-S",tabsTriggerVertical:"tabs-trigger--vertical__dNVIZ",tabsContent:"tabs-content__1d77o"},bc=Qn(null),pi=()=>{const e=Qt(bc);if(!e)throw new Error("Tabs components must be used within a Tabs provider");return e},My=S("Tabs",({defaultValue:e,value:t,onValueChange:n,orientation:r="horizontal",className:o="",children:i})=>{const[s,a]=L(e||""),c=t!==void 0,l=c?t:s,d=p=>{c||a(p),n==null||n(p)};return u.jsx(bc.Provider,{value:{value:l,onValueChange:d,orientation:r},children:u.jsx("div",{className:j(He.tabsRoot,o),children:i})})}),Fy=S("TabsList",({className:e="",children:t})=>{const{orientation:n}=pi(),r=so(null),o=i=>{var l;const s=(l=r.current)==null?void 0:l.querySelectorAll('[role="tab"]:not([disabled])');if(!s)return;const a=Array.from(s).findIndex(d=>d===document.activeElement);let c=a;switch(i.key){case"ArrowLeft":n==="horizontal"&&(i.preventDefault(),c=a>0?a-1:s.length-1);break;case"ArrowRight":n==="horizontal"&&(i.preventDefault(),c=a<s.length-1?a+1:0);break;case"ArrowUp":n==="vertical"&&(i.preventDefault(),c=a>0?a-1:s.length-1);break;case"ArrowDown":n==="vertical"&&(i.preventDefault(),c=a<s.length-1?a+1:0);break;case"Home":i.preventDefault(),c=0;break;case"End":i.preventDefault(),c=s.length-1;break}if(c!==a){const d=s[c];d.focus(),d.click()}};return u.jsx("div",{ref:r,role:"tablist","aria-orientation":n,onKeyDown:o,className:j(He.tabsList,n==="horizontal"?He.tabsListHorizontal:He.tabsListVertical,e),children:t})}),By=S("TabsTrigger",({value:e,disabled:t=!1,className:n="",children:r})=>{const{value:o,onValueChange:i,orientation:s}=pi(),a=o===e,c=()=>{t||i(e)};return u.jsx("button",{role:"tab","aria-selected":a,"aria-controls":`content-${e}`,tabIndex:a?0:-1,disabled:t,onClick:c,className:j(He.tabsTrigger,s==="horizontal"?He.tabsTriggerHorizontal:He.tabsTriggerVertical,a&&He.tabsTriggerActive,t&&He.tabsTriggerDisabled,n),children:r})}),Uy=S("TabsContent",({value:e,className:t="",children:n})=>{const{value:r}=pi();return r===e?u.jsx("div",{role:"tabpanel",id:`content-${e}`,"aria-labelledby":`trigger-${e}`,tabIndex:0,className:j(He.tabsContent,t),children:n}):null}),Q1=S("EyeIcon",({className:e,state:t="open",onClick:n})=>t==="open"?u.jsxs("svg",{className:e,onClick:n,xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",viewBox:"0 0 14 14",fill:"none",children:[u.jsx("path",{d:"M1.41174 7.41635C1.3323 7.29056 1.29257 7.22766 1.27034 7.13065C1.25364 7.05778 1.25364 6.94287 1.27034 6.87C1.29257 6.77299 1.3323 6.71009 1.41174 6.58431C2.06823 5.54482 4.02232 2.91699 7.00024 2.91699C9.97815 2.91699 11.9322 5.54482 12.5887 6.5843C12.6682 6.71009 12.7079 6.77299 12.7301 6.87C12.7468 6.94287 12.7468 7.05778 12.7301 7.13065C12.7079 7.22766 12.6682 7.29056 12.5887 7.41635C11.9322 8.45584 9.97815 11.0837 7.00024 11.0837C4.02232 11.0837 2.06823 8.45584 1.41174 7.41635Z",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M7.00024 8.75033C7.96673 8.75033 8.75024 7.96682 8.75024 7.00033C8.75024 6.03383 7.96673 5.25033 7.00024 5.25033C6.03374 5.25033 5.25024 6.03383 5.25024 7.00033C5.25024 7.96682 6.03374 8.75033 7.00024 8.75033Z",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})]}):u.jsx("svg",{className:e,onClick:n,xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",viewBox:"0 0 14 14",fill:"none",children:u.jsx("path",{d:"M6.26672 2.97052C6.50379 2.93547 6.74835 2.91667 7.00024 2.91667C9.97816 2.91667 11.9323 5.54449 12.5887 6.58398C12.6682 6.70979 12.7079 6.7727 12.7302 6.86973C12.7469 6.94259 12.7468 7.05755 12.7301 7.13042C12.7079 7.22744 12.6679 7.29077 12.5879 7.41741C12.413 7.69425 12.1463 8.08331 11.793 8.50527M3.92252 3.9171C2.66131 4.77266 1.8051 5.9613 1.41231 6.58308C1.3325 6.70942 1.29259 6.7726 1.27035 6.86961C1.25364 6.94248 1.25363 7.05742 1.27033 7.13029C1.29257 7.22731 1.33229 7.29022 1.41174 7.41602C2.06823 8.45551 4.02232 11.0833 7.00024 11.0833C8.20098 11.0833 9.23526 10.6561 10.0851 10.078M1.75024 1.75L12.2502 12.25M5.76281 5.76256C5.44612 6.07925 5.25024 6.51675 5.25024 7C5.25024 7.9665 6.03374 8.75 7.00024 8.75C7.48349 8.75 7.92099 8.55413 8.23768 8.23744",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})})),wc={PasswordInput:"PasswordInput__GDJDN",eyeIcon:"eyeIcon__kDExG"},Wy=S("PasswordInput",z((e,t)=>{const[n,r]=L("password"),o=ee(()=>{r(i=>i==="password"?"text":"password")},[r]);return u.jsxs("div",{className:j(wc.PasswordInput,e.className),children:[u.jsx(Uo,{type:n,...e,ref:t}),u.jsx(Q1,{className:wc.eyeIcon,onClick:o,state:n==="password"?"open":"closed"})]})}));var mi="focusScope.autoFocusOnMount",gi="focusScope.autoFocusOnUnmount",_c={bubbles:!1,cancelable:!0},Y1="FocusScope",xc=g.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,c]=g.useState(null),l=Zt(o),d=Zt(i),p=g.useRef(null),h=Oe(t,f=>c(f)),m=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let f=function(C){if(m.paused||!a)return;const E=C.target;a.contains(E)?p.current=E:ht(p.current,{select:!0})},v=function(C){if(m.paused||!a)return;const E=C.relatedTarget;E!==null&&(a.contains(E)||ht(p.current,{select:!0}))},_=function(C){if(document.activeElement===document.body)for(const T of C)T.removedNodes.length>0&&ht(a)};document.addEventListener("focusin",f),document.addEventListener("focusout",v);const x=new MutationObserver(_);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",v),x.disconnect()}}},[r,a,m.paused]),g.useEffect(()=>{if(a){Sc.add(m);const f=document.activeElement;if(!a.contains(f)){const _=new CustomEvent(mi,_c);a.addEventListener(mi,l),a.dispatchEvent(_),_.defaultPrevented||(K1(tm(Cc(a)),{select:!0}),document.activeElement===f&&ht(a))}return()=>{a.removeEventListener(mi,l),setTimeout(()=>{const _=new CustomEvent(gi,_c);a.addEventListener(gi,d),a.dispatchEvent(_),_.defaultPrevented||ht(f??document.body,{select:!0}),a.removeEventListener(gi,d),Sc.remove(m)},0)}}},[a,l,d,m]);const w=g.useCallback(f=>{if(!n&&!r||m.paused)return;const v=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,_=document.activeElement;if(v&&_){const x=f.currentTarget,[C,E]=Z1(x);C&&E?!f.shiftKey&&_===E?(f.preventDefault(),n&&ht(C,{select:!0})):f.shiftKey&&_===C&&(f.preventDefault(),n&&ht(E,{select:!0})):_===x&&f.preventDefault()}},[n,r,m.paused]);return u.jsx(ye.div,{tabIndex:-1,...s,ref:h,onKeyDown:w})});xc.displayName=Y1;function K1(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ht(r,{select:t}),document.activeElement!==n)return}function Z1(e){const t=Cc(e),n=Ec(t,e),r=Ec(t.reverse(),e);return[n,r]}function Cc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ec(e,t){for(const n of e)if(!X1(n,{upTo:t}))return n}function X1(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function J1(e){return e instanceof HTMLInputElement&&"select"in e}function ht(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&J1(e)&&t&&e.select()}}var Sc=em();function em(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Tc(e,t),e.unshift(t)},remove(t){var n;e=Tc(e,t),(n=e[0])==null||n.resume()}}}function Tc(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function tm(e){return e.filter(t=>t.tagName!=="A")}var vi=0;function nm(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ac()),document.body.insertAdjacentElement("beforeend",e[1]??Ac()),vi++,()=>{vi===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),vi--}},[])}function Ac(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Nr="right-scroll-bar-position",$r="width-before-scroll-bar",rm="with-scroll-bars-hidden",om="--removed-body-scroll-bar-size";function yi(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function im(e,t){var n=L(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var sm=typeof window<"u"?g.useLayoutEffect:g.useEffect,Pc=new WeakMap;function am(e,t){var n=im(null,function(r){return e.forEach(function(o){return yi(o,r)})});return sm(function(){var r=Pc.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||yi(a,null)}),i.forEach(function(a){o.has(a)||yi(a,s)})}Pc.set(n,e)},[e]),n}function cm(e){return e}function lm(e,t){t===void 0&&(t=cm);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var c=function(){var d=s;s=[],d.forEach(i)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(d){s.push(d),l()},filter:function(d){return s=s.filter(d),n}}}};return o}function um(e){e===void 0&&(e={});var t=lm(null);return t.options=Me({async:!0,ssr:!1},e),t}var Rc=function(e){var t=e.sideCar,n=ds(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return g.createElement(r,Me({},n))};Rc.isSideCarExport=!0;function dm(e,t){return e.useMedium(t),Rc}var Oc=um(),bi=function(){},Mr=g.forwardRef(function(e,t){var n=g.useRef(null),r=g.useState({onScrollCapture:bi,onWheelCapture:bi,onTouchMoveCapture:bi}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,d=e.enabled,p=e.shards,h=e.sideCar,m=e.noRelative,w=e.noIsolation,f=e.inert,v=e.allowPinchZoom,_=e.as,x=_===void 0?"div":_,C=e.gapMode,E=ds(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=h,R=am([n,t]),A=Me(Me({},E),o);return g.createElement(g.Fragment,null,d&&g.createElement(T,{sideCar:Oc,removeScrollBar:l,shards:p,noRelative:m,noIsolation:w,inert:f,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:C}),s?g.cloneElement(g.Children.only(a),Me(Me({},A),{ref:R})):g.createElement(x,Me({},A,{className:c,ref:R}),a))});Mr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Mr.classNames={fullWidth:$r,zeroRight:Nr};var fm=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function hm(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=fm();return t&&e.setAttribute("nonce",t),e}function pm(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function mm(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var gm=function(){var e=0,t=null;return{add:function(n){e==0&&(t=hm())&&(pm(t,n),mm(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},vm=function(){var e=gm();return function(t,n){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},kc=function(){var e=vm(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},ym={left:0,top:0,right:0,gap:0},wi=function(e){return parseInt(e||"",10)||0},bm=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[wi(n),wi(r),wi(o)]},wm=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ym;var t=bm(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},_m=kc(),on="data-scroll-locked",xm=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
210
+ .`.concat(rm,` {
236
211
  overflow: hidden `).concat(r,`;
237
212
  padding-right: `).concat(a,"px ").concat(r,`;
238
213
  }
@@ -249,30 +224,30 @@ to {
249
224
  `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
250
225
  }
251
226
 
252
- .`).concat($r,` {
227
+ .`).concat(Nr,` {
253
228
  right: `).concat(a,"px ").concat(r,`;
254
229
  }
255
230
 
256
- .`).concat(Mr,` {
231
+ .`).concat($r,` {
257
232
  margin-right: `).concat(a,"px ").concat(r,`;
258
233
  }
259
234
 
260
- .`).concat($r," .").concat($r,` {
235
+ .`).concat(Nr," .").concat(Nr,` {
261
236
  right: 0 `).concat(r,`;
262
237
  }
263
238
 
264
- .`).concat(Mr," .").concat(Mr,` {
239
+ .`).concat($r," .").concat($r,` {
265
240
  margin-right: 0 `).concat(r,`;
266
241
  }
267
242
 
268
243
  body[`).concat(on,`] {
269
- `).concat(gm,": ").concat(a,`px;
244
+ `).concat(om,": ").concat(a,`px;
270
245
  }
271
- `)},Nc=function(){var e=parseInt(document.body.getAttribute(on)||"0",10);return isFinite(e)?e:0},Im=function(){g.useEffect(function(){return document.body.setAttribute(on,(Nc()+1).toString()),function(){var e=Nc()-1;e<=0?document.body.removeAttribute(on):document.body.setAttribute(on,e.toString())}},[])},Nm=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Im();var i=g.useMemo(function(){return jm(o)},[o]);return g.createElement(Dm,{styles:Lm(i,!t,o,n?"":"!important")})},xi=!1;if(typeof window<"u")try{var Br=Object.defineProperty({},"passive",{get:function(){return xi=!0,!0}});window.addEventListener("test",Br,Br),window.removeEventListener("test",Br,Br)}catch{xi=!1}var sn=xi?{passive:!1}:!1,$m=function(e){return e.tagName==="TEXTAREA"},$c=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!$m(e)&&n[t]==="visible")},Mm=function(e){return $c(e,"overflowY")},Fm=function(e){return $c(e,"overflowX")},Mc=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Fc(e,r);if(o){var i=Bc(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Bm=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Um=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Fc=function(e,t){return e==="v"?Mm(t):Fm(t)},Bc=function(e,t){return e==="v"?Bm(t):Um(t)},zm=function(e,t){return e==="h"&&t==="rtl"?-1:1},Hm=function(e,t,n,r,o){var i=zm(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,c=t.contains(a),l=!1,d=s>0,p=0,h=0;do{if(!a)break;var m=Bc(e,a),w=m[0],f=m[1],v=m[2],_=f-v-i*w;(w||_)&&Fc(e,a)&&(p+=_,h+=w);var x=a.parentNode;a=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(d&&Math.abs(p)<1||!d&&Math.abs(h)<1)&&(l=!0),l},Ur=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Uc=function(e){return[e.deltaX,e.deltaY]},zc=function(e){return e&&"current"in e?e.current:e},Wm=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Vm=function(e){return`
246
+ `)},jc=function(){var e=parseInt(document.body.getAttribute(on)||"0",10);return isFinite(e)?e:0},Cm=function(){g.useEffect(function(){return document.body.setAttribute(on,(jc()+1).toString()),function(){var e=jc()-1;e<=0?document.body.removeAttribute(on):document.body.setAttribute(on,e.toString())}},[])},Em=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Cm();var i=g.useMemo(function(){return wm(o)},[o]);return g.createElement(_m,{styles:xm(i,!t,o,n?"":"!important")})},_i=!1;if(typeof window<"u")try{var Fr=Object.defineProperty({},"passive",{get:function(){return _i=!0,!0}});window.addEventListener("test",Fr,Fr),window.removeEventListener("test",Fr,Fr)}catch{_i=!1}var sn=_i?{passive:!1}:!1,Sm=function(e){return e.tagName==="TEXTAREA"},Dc=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Sm(e)&&n[t]==="visible")},Tm=function(e){return Dc(e,"overflowY")},Am=function(e){return Dc(e,"overflowX")},Lc=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Ic(e,r);if(o){var i=Nc(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Pm=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Rm=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ic=function(e,t){return e==="v"?Tm(t):Am(t)},Nc=function(e,t){return e==="v"?Pm(t):Rm(t)},Om=function(e,t){return e==="h"&&t==="rtl"?-1:1},km=function(e,t,n,r,o){var i=Om(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,c=t.contains(a),l=!1,d=s>0,p=0,h=0;do{if(!a)break;var m=Nc(e,a),w=m[0],f=m[1],v=m[2],_=f-v-i*w;(w||_)&&Ic(e,a)&&(p+=_,h+=w);var x=a.parentNode;a=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(d&&Math.abs(p)<1||!d&&Math.abs(h)<1)&&(l=!0),l},Br=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$c=function(e){return[e.deltaX,e.deltaY]},Mc=function(e){return e&&"current"in e?e.current:e},jm=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Dm=function(e){return`
272
247
  .block-interactivity-`.concat(e,` {pointer-events: none;}
273
248
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
274
- `)},Gm=0,an=[];function qm(e){var t=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),o=g.useState(Gm++)[0],i=g.useState(Ic)[0],s=g.useRef(e);g.useEffect(function(){s.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var f=tr([e.lockRef.current],(e.shards||[]).map(zc),!0).filter(Boolean);return f.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=g.useCallback(function(f,v){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!s.current.allowPinchZoom;var _=Ur(f),x=n.current,C="deltaX"in f?f.deltaX:x[0]-_[0],S="deltaY"in f?f.deltaY:x[1]-_[1],T,R=f.target,A=Math.abs(C)>Math.abs(S)?"h":"v";if("touches"in f&&A==="h"&&R.type==="range")return!1;var N=Mc(A,R);if(!N)return!0;if(N?T=A:(T=A==="v"?"h":"v",N=Mc(A,R)),!N)return!1;if(!r.current&&"changedTouches"in f&&(C||S)&&(r.current=T),!T)return!0;var $=r.current||T;return Hm($,v,f,$==="h"?C:S)},[]),c=g.useCallback(function(f){var v=f;if(!(!an.length||an[an.length-1]!==i)){var _="deltaY"in v?Uc(v):Ur(v),x=t.current.filter(function(T){return T.name===v.type&&(T.target===v.target||v.target===T.shadowParent)&&Wm(T.delta,_)})[0];if(x&&x.should){v.cancelable&&v.preventDefault();return}if(!x){var C=(s.current.shards||[]).map(zc).filter(Boolean).filter(function(T){return T.contains(v.target)}),S=C.length>0?a(v,C[0]):!s.current.noIsolation;S&&v.cancelable&&v.preventDefault()}}},[]),l=g.useCallback(function(f,v,_,x){var C={name:f,delta:v,target:_,should:x,shadowParent:Qm(_)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(S){return S!==C})},1)},[]),d=g.useCallback(function(f){n.current=Ur(f),r.current=void 0},[]),p=g.useCallback(function(f){l(f.type,Uc(f),f.target,a(f,e.lockRef.current))},[]),h=g.useCallback(function(f){l(f.type,Ur(f),f.target,a(f,e.lockRef.current))},[]);g.useEffect(function(){return an.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",c,sn),document.addEventListener("touchmove",c,sn),document.addEventListener("touchstart",d,sn),function(){an=an.filter(function(f){return f!==i}),document.removeEventListener("wheel",c,sn),document.removeEventListener("touchmove",c,sn),document.removeEventListener("touchstart",d,sn)}},[]);var m=e.removeScrollBar,w=e.inert;return g.createElement(g.Fragment,null,w?g.createElement(i,{styles:Vm(o)}):null,m?g.createElement(Nm,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Qm(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ym=Cm(Lc,qm);var Hc=g.forwardRef(function(e,t){return g.createElement(Fr,Me({},e,{ref:t,sideCar:Ym}))});Hc.classNames=Fr.classNames;var Km=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},cn=new WeakMap,zr=new WeakMap,Hr={},Ci=0,Wc=function(e){return e&&(e.host||Wc(e.parentNode))},Zm=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Wc(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Xm=function(e,t,n,r){var o=Zm(t,Array.isArray(e)?e:[e]);Hr[n]||(Hr[n]=new WeakMap);var i=Hr[n],s=[],a=new Set,c=new Set(o),l=function(p){!p||a.has(p)||(a.add(p),l(p.parentNode))};o.forEach(l);var d=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(h){if(a.has(h))d(h);else try{var m=h.getAttribute(r),w=m!==null&&m!=="false",f=(cn.get(h)||0)+1,v=(i.get(h)||0)+1;cn.set(h,f),i.set(h,v),s.push(h),f===1&&w&&zr.set(h,!0),v===1&&h.setAttribute(n,"true"),w||h.setAttribute(r,"true")}catch(_){console.error("aria-hidden: cannot operate on ",h,_)}})};return d(t),a.clear(),Ci++,function(){s.forEach(function(p){var h=cn.get(p)-1,m=i.get(p)-1;cn.set(p,h),i.set(p,m),h||(zr.has(p)||p.removeAttribute(r),zr.delete(p)),m||p.removeAttribute(n)}),Ci--,Ci||(cn=new WeakMap,cn=new WeakMap,zr=new WeakMap,Hr={})}},Jm=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Km(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Xm(r,o,n,"aria-hidden")):function(){return null}},Wr="Dialog",[Vc,o0]=qo(Wr),[eg,Le]=Vc(Wr),Gc=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=g.useRef(null),c=g.useRef(null),[l,d]=uc({prop:r,defaultProp:o??!1,onChange:i,caller:Wr});return u.jsx(eg,{scope:t,triggerRef:a,contentRef:c,contentId:Cr(),titleId:Cr(),descriptionId:Cr(),open:l,onOpenChange:d,onOpenToggle:g.useCallback(()=>d(p=>!p),[d]),modal:s,children:n})};Gc.displayName=Wr;var qc="DialogTrigger",tg=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Le(qc,n),i=ke(t,o.triggerRef);return u.jsx(ye.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ti(o.open),...r,ref:i,onClick:ve(e.onClick,o.onOpenToggle)})});tg.displayName=qc;var Ei="DialogPortal",[ng,Qc]=Vc(Ei,{forceMount:void 0}),Yc=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Le(Ei,t);return u.jsx(ng,{scope:t,forceMount:n,children:g.Children.map(r,s=>u.jsx(nn,{present:n||i.open,children:u.jsx(ui,{asChild:!0,container:o,children:s})}))})};Yc.displayName=Ei;var Vr="DialogOverlay",Kc=g.forwardRef((e,t)=>{const n=Qc(Vr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Le(Vr,e.__scopeDialog);return i.modal?u.jsx(nn,{present:r||i.open,children:u.jsx(og,{...o,ref:t})}):null});Kc.displayName=Vr;var rg=Vo("DialogOverlay.RemoveScroll"),og=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Le(Vr,n);return u.jsx(Hc,{as:rg,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(ye.div,{"data-state":Ti(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),jt="DialogContent",Zc=g.forwardRef((e,t)=>{const n=Qc(jt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Le(jt,e.__scopeDialog);return u.jsx(nn,{present:r||i.open,children:i.modal?u.jsx(ig,{...o,ref:t}):u.jsx(sg,{...o,ref:t})})});Zc.displayName=jt;var ig=g.forwardRef((e,t)=>{const n=Le(jt,e.__scopeDialog),r=g.useRef(null),o=ke(t,n.contentRef,r);return g.useEffect(()=>{const i=r.current;if(i)return Jm(i)},[]),u.jsx(Xc,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ve(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:ve(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:ve(e.onFocusOutside,i=>i.preventDefault())})}),sg=g.forwardRef((e,t)=>{const n=Le(jt,e.__scopeDialog),r=g.useRef(!1),o=g.useRef(!1);return u.jsx(Xc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Xc=g.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=Le(jt,n),c=g.useRef(null),l=ke(t,c);return pm(),u.jsxs(u.Fragment,{children:[u.jsx(Tc,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:u.jsx(Yo,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Ti(a.open),...s,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(ag,{titleId:a.titleId}),u.jsx(lg,{contentRef:c,descriptionId:a.descriptionId})]})]})}),Si="DialogTitle",Jc=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Le(Si,n);return u.jsx(ye.h2,{id:o.titleId,...r,ref:t})});Jc.displayName=Si;var el="DialogDescription",tl=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Le(el,n);return u.jsx(ye.p,{id:o.descriptionId,...r,ref:t})});tl.displayName=el;var nl="DialogClose",rl=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Le(nl,n);return u.jsx(ye.button,{type:"button",...r,ref:t,onClick:ve(e.onClick,()=>o.onOpenChange(!1))})});rl.displayName=nl;function Ti(e){return e?"open":"closed"}var ol="DialogTitleWarning",[i0,il]=Hh(ol,{contentName:jt,titleName:Si,docsSlug:"dialog"}),ag=({titleId:e})=>{const t=il(ol),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
249
+ `)},Lm=0,an=[];function Im(e){var t=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),o=g.useState(Lm++)[0],i=g.useState(kc)[0],s=g.useRef(e);g.useEffect(function(){s.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var f=er([e.lockRef.current],(e.shards||[]).map(Mc),!0).filter(Boolean);return f.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=g.useCallback(function(f,v){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!s.current.allowPinchZoom;var _=Br(f),x=n.current,C="deltaX"in f?f.deltaX:x[0]-_[0],E="deltaY"in f?f.deltaY:x[1]-_[1],T,R=f.target,A=Math.abs(C)>Math.abs(E)?"h":"v";if("touches"in f&&A==="h"&&R.type==="range")return!1;var N=Lc(A,R);if(!N)return!0;if(N?T=A:(T=A==="v"?"h":"v",N=Lc(A,R)),!N)return!1;if(!r.current&&"changedTouches"in f&&(C||E)&&(r.current=T),!T)return!0;var $=r.current||T;return km($,v,f,$==="h"?C:E)},[]),c=g.useCallback(function(f){var v=f;if(!(!an.length||an[an.length-1]!==i)){var _="deltaY"in v?$c(v):Br(v),x=t.current.filter(function(T){return T.name===v.type&&(T.target===v.target||v.target===T.shadowParent)&&jm(T.delta,_)})[0];if(x&&x.should){v.cancelable&&v.preventDefault();return}if(!x){var C=(s.current.shards||[]).map(Mc).filter(Boolean).filter(function(T){return T.contains(v.target)}),E=C.length>0?a(v,C[0]):!s.current.noIsolation;E&&v.cancelable&&v.preventDefault()}}},[]),l=g.useCallback(function(f,v,_,x){var C={name:f,delta:v,target:_,should:x,shadowParent:Nm(_)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(E){return E!==C})},1)},[]),d=g.useCallback(function(f){n.current=Br(f),r.current=void 0},[]),p=g.useCallback(function(f){l(f.type,$c(f),f.target,a(f,e.lockRef.current))},[]),h=g.useCallback(function(f){l(f.type,Br(f),f.target,a(f,e.lockRef.current))},[]);g.useEffect(function(){return an.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",c,sn),document.addEventListener("touchmove",c,sn),document.addEventListener("touchstart",d,sn),function(){an=an.filter(function(f){return f!==i}),document.removeEventListener("wheel",c,sn),document.removeEventListener("touchmove",c,sn),document.removeEventListener("touchstart",d,sn)}},[]);var m=e.removeScrollBar,w=e.inert;return g.createElement(g.Fragment,null,w?g.createElement(i,{styles:Dm(o)}):null,m?g.createElement(Em,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Nm(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const $m=dm(Oc,Im);var Fc=g.forwardRef(function(e,t){return g.createElement(Mr,Me({},e,{ref:t,sideCar:$m}))});Fc.classNames=Mr.classNames;var Mm=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},cn=new WeakMap,Ur=new WeakMap,zr={},xi=0,Bc=function(e){return e&&(e.host||Bc(e.parentNode))},Fm=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Bc(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Bm=function(e,t,n,r){var o=Fm(t,Array.isArray(e)?e:[e]);zr[n]||(zr[n]=new WeakMap);var i=zr[n],s=[],a=new Set,c=new Set(o),l=function(p){!p||a.has(p)||(a.add(p),l(p.parentNode))};o.forEach(l);var d=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(h){if(a.has(h))d(h);else try{var m=h.getAttribute(r),w=m!==null&&m!=="false",f=(cn.get(h)||0)+1,v=(i.get(h)||0)+1;cn.set(h,f),i.set(h,v),s.push(h),f===1&&w&&Ur.set(h,!0),v===1&&h.setAttribute(n,"true"),w||h.setAttribute(r,"true")}catch(_){console.error("aria-hidden: cannot operate on ",h,_)}})};return d(t),a.clear(),xi++,function(){s.forEach(function(p){var h=cn.get(p)-1,m=i.get(p)-1;cn.set(p,h),i.set(p,m),h||(Ur.has(p)||p.removeAttribute(r),Ur.delete(p)),m||p.removeAttribute(n)}),xi--,xi||(cn=new WeakMap,cn=new WeakMap,Ur=new WeakMap,zr={})}},Um=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Mm(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Bm(r,o,n,"aria-hidden")):function(){return null}},Hr="Dialog",[Uc,Vy]=Go(Hr),[zm,De]=Uc(Hr),zc=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=g.useRef(null),c=g.useRef(null),[l,d]=sc({prop:r,defaultProp:o??!1,onChange:i,caller:Hr});return u.jsx(zm,{scope:t,triggerRef:a,contentRef:c,contentId:xr(),titleId:xr(),descriptionId:xr(),open:l,onOpenChange:d,onOpenToggle:g.useCallback(()=>d(p=>!p),[d]),modal:s,children:n})};zc.displayName=Hr;var Hc="DialogTrigger",Hm=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=De(Hc,n),i=Oe(t,o.triggerRef);return u.jsx(ye.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Si(o.open),...r,ref:i,onClick:ve(e.onClick,o.onOpenToggle)})});Hm.displayName=Hc;var Ci="DialogPortal",[Wm,Wc]=Uc(Ci,{forceMount:void 0}),Vc=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=De(Ci,t);return u.jsx(Wm,{scope:t,forceMount:n,children:g.Children.map(r,s=>u.jsx(nn,{present:n||i.open,children:u.jsx(li,{asChild:!0,container:o,children:s})}))})};Vc.displayName=Ci;var Wr="DialogOverlay",Gc=g.forwardRef((e,t)=>{const n=Wc(Wr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=De(Wr,e.__scopeDialog);return i.modal?u.jsx(nn,{present:r||i.open,children:u.jsx(Gm,{...o,ref:t})}):null});Gc.displayName=Wr;var Vm=Wo("DialogOverlay.RemoveScroll"),Gm=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=De(Wr,n);return u.jsx(Fc,{as:Vm,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(ye.div,{"data-state":Si(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),jt="DialogContent",qc=g.forwardRef((e,t)=>{const n=Wc(jt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=De(jt,e.__scopeDialog);return u.jsx(nn,{present:r||i.open,children:i.modal?u.jsx(qm,{...o,ref:t}):u.jsx(Qm,{...o,ref:t})})});qc.displayName=jt;var qm=g.forwardRef((e,t)=>{const n=De(jt,e.__scopeDialog),r=g.useRef(null),o=Oe(t,n.contentRef,r);return g.useEffect(()=>{const i=r.current;if(i)return Um(i)},[]),u.jsx(Qc,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ve(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:ve(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:ve(e.onFocusOutside,i=>i.preventDefault())})}),Qm=g.forwardRef((e,t)=>{const n=De(jt,e.__scopeDialog),r=g.useRef(!1),o=g.useRef(!1);return u.jsx(Qc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Qc=g.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=De(jt,n),c=g.useRef(null),l=Oe(t,c);return nm(),u.jsxs(u.Fragment,{children:[u.jsx(xc,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:u.jsx(Qo,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Si(a.open),...s,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(Ym,{titleId:a.titleId}),u.jsx(Zm,{contentRef:c,descriptionId:a.descriptionId})]})]})}),Ei="DialogTitle",Yc=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=De(Ei,n);return u.jsx(ye.h2,{id:o.titleId,...r,ref:t})});Yc.displayName=Ei;var Kc="DialogDescription",Zc=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=De(Kc,n);return u.jsx(ye.p,{id:o.descriptionId,...r,ref:t})});Zc.displayName=Kc;var Xc="DialogClose",Jc=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=De(Xc,n);return u.jsx(ye.button,{type:"button",...r,ref:t,onClick:ve(e.onClick,()=>o.onOpenChange(!1))})});Jc.displayName=Xc;function Si(e){return e?"open":"closed"}var el="DialogTitleWarning",[Gy,tl]=kh(el,{contentName:jt,titleName:Ei,docsSlug:"dialog"}),Ym=({titleId:e})=>{const t=tl(el),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
275
250
 
276
251
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
277
252
 
278
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return g.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},cg="DialogDescriptionWarning",lg=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${il(cg).contentName}}.`;return g.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},ug=Gc,dg=Yc,fg=Kc,hg=Zc,pg=Jc,mg=tl,gg=rl;const sl={Overlay:"Overlay__M5Z83",Content:"Content__wAkP4"},Dt={Header:"Header__VHxNf",Content:"Content__I04qM",Close:"Close__xSN-7",Title:"Title__Dznh6",Footer:"Footer__-8gzQ",Actions:"Actions__kKF2Q"},al=B(({children:e,className:t,...n},r)=>{const o=j(Dt.Header,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});al.displayName="Header";const cl=B(({children:e,className:t,...n},r)=>{const o=j(Dt.Content,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});cl.displayName="Content";const ll=B(({children:e,className:t,...n},r)=>{const o=j(Dt.Footer,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});ll.displayName="Footer";const ul=B(({children:e,className:t,...n},r)=>{const o=j(Dt.Title,t);return u.jsx(pg,{ref:r,className:o,...n,children:e})});ul.displayName="Title";const dl=B(({className:e,...t},n)=>{const r=j(Dt.Close,e);return u.jsx(gg,{ref:n,asChild:!0,className:r,...t,children:u.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M11 1L1 11M1 1L11 11",stroke:"#A9A9A9",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})});dl.displayName="Close";const fl=B(({children:e,className:t,...n},r)=>{const o=j(Dt.Actions,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});fl.displayName="Actions";const hl=B(({children:e,className:t,...n},r)=>{const o=j(Dt.Description,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});hl.displayName="Description";const he=E("Dialog",({children:e,onClose:t,open:n=!1,className:r})=>{const o=()=>{t==null||t()};return u.jsx(ug,{onOpenChange:o,open:n,children:u.jsxs(dg,{children:[u.jsx(fg,{className:sl.Overlay}),u.jsxs(hg,{children:[u.jsx(mg,{}),u.jsx("div",{className:j(sl.Content,r),children:e})]})]})})});he.displayName="Dialog",he.Header=al,he.Content=cl,he.Footer=ll,he.Actions=fl,he.Title=ul,he.Description=hl,he.Close=dl;const pl={pill:"pill__vtGwB","pill--solid":"pill--solid__F-mR4",pillSolid:"pill--solid__F-mR4","pill--outline":"pill--outline__gC-mh",pillOutline:"pill--outline__gC-mh"},v0=E("Pill",({children:e,variant:t="solid",className:n})=>{const r=j(pl.pill,pl[`pill--${t}`],n);return u.jsx("div",{className:r,children:e})}),ml={DialogContent:"DialogContent__-WjG9",Message:"Message__AUgVP"},vg=E("ConfirmDialog",({loading:e,title:t,children:n,className:r,onClose:o,onConfirm:i,...s})=>u.jsxs(he,{...s,className:j(ml.DialogContent,r),children:[u.jsxs(he.Header,{children:[u.jsx(he.Title,{children:t}),u.jsx(he.Close,{onClick:o})]}),u.jsx(he.Content,{children:typeof n=="string"?u.jsx("p",{className:ml.Message,children:n}):n}),u.jsx(he.Footer,{children:u.jsxs(he.Actions,{children:[u.jsx(Uo,{onClick:o,disabled:e,variant:"outlined",children:"Cancel"}),u.jsx(Uo,{onClick:i,disabled:e,loading:e,variant:"contained",children:"Confirm"})]})})]}));vg.displayName="ConfirmDialog";const Gr={container:"container__AjtYJ",title:"title__A2vCu",description:"description__bP6Ig",mailToText:"mailToText__SdlsE"},gl=()=>u.jsxs("svg",{width:"200",height:"200",viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M184.415 152.221C183.936 151.406 183.401 150.621 182.892 149.824C181.61 147.817 180.327 145.809 179.045 143.801C177.102 140.759 175.159 137.717 173.215 134.676C170.766 130.841 168.316 127.006 165.866 123.171C163.068 118.79 160.27 114.41 157.472 110.03C154.484 105.352 151.496 100.674 148.508 95.9965C145.474 91.2464 142.439 86.4963 139.405 81.7463C136.513 77.2189 133.621 72.6915 130.729 68.1641C128.123 64.084 125.517 60.0039 122.91 55.9238C120.748 52.5389 118.586 49.1541 116.424 45.7692C114.864 43.3273 113.304 40.8854 111.744 38.4436C110.943 37.1899 110.142 35.9362 109.342 34.6825C108.765 33.7802 108.096 32.9744 107.292 32.2572C104.604 29.8584 100.572 29.2302 97.2301 30.5252C94.5951 31.5463 92.6177 33.3853 91.0923 35.7373C90.8768 36.0696 90.6658 36.405 90.4526 36.7387C89.3951 38.3941 88.3378 40.0494 87.2803 41.7049C85.5124 44.4725 83.7444 47.2402 81.9765 50.0079C79.644 53.6594 77.3114 57.3111 74.9788 60.9626C72.2632 65.2138 69.5477 69.465 66.8321 73.7162C63.8817 78.3349 60.9313 82.9536 57.9811 87.5722C54.9542 92.3106 51.9274 97.0491 48.9006 101.787C45.9557 106.398 43.0107 111.008 40.0658 115.618C37.3487 119.872 34.6316 124.125 31.9145 128.379C29.6106 131.986 27.3067 135.592 25.0028 139.199C23.2565 141.933 21.5101 144.667 19.7639 147.4C18.7335 149.013 17.7031 150.626 16.6728 152.239C14.8665 155.067 13.7231 158.171 14.23 161.595C14.9672 166.576 19.2366 170.131 24.2215 170.137C25.559 170.139 26.8963 170.137 28.2338 170.137C30.9198 170.137 33.6058 170.137 36.2918 170.137C40.0725 170.137 43.8533 170.137 47.6341 170.137C52.2557 170.137 56.8772 170.137 61.4989 170.137C66.7339 170.137 71.969 170.137 77.204 170.137C82.7467 170.137 88.2894 170.137 93.8322 170.137C99.4529 170.137 105.074 170.137 110.694 170.137C116.139 170.137 121.584 170.137 127.029 170.137C132.044 170.137 137.06 170.137 142.075 170.137C146.425 170.137 150.776 170.137 155.127 170.137C158.516 170.137 161.904 170.137 165.293 170.137C167.49 170.137 169.686 170.137 171.883 170.137C172.633 170.137 173.384 170.137 174.135 170.137C178.404 170.087 182.136 167.627 184.212 163.932C186.248 160.307 186.562 155.866 184.415 152.221ZM94.0937 37.3471C94.0897 37.3539 94.0862 37.3597 94.0824 37.3661C94.0826 37.3652 94.0831 37.3642 94.0833 37.3632C94.0844 37.3581 94.0909 37.3518 94.0937 37.3471ZM178.584 164.489C178.476 164.538 178.524 164.516 178.584 164.489V164.489ZM180.937 162.79C180.979 162.72 181.118 162.485 181.127 162.498C181.145 162.528 181.058 162.647 180.937 162.79ZM181.821 160.333C181.806 160.446 181.782 160.646 181.773 160.697C181.736 160.919 181.686 161.139 181.637 161.359C181.637 161.359 181.637 161.359 181.637 161.359C181.629 161.377 181.621 161.399 181.61 161.426C181.54 161.604 181.472 161.785 181.406 161.965C181.402 161.977 181.398 161.988 181.394 161.999C181.304 162.16 181.219 162.323 181.123 162.481C181.074 162.562 181.016 162.641 180.97 162.724C180.949 162.762 180.936 162.785 180.93 162.798C180.727 163.035 180.436 163.332 180.388 163.385C180.696 163.049 180.535 163.229 180.318 163.42C180.172 163.548 180.018 163.666 179.869 163.79C179.848 163.807 179.831 163.822 179.816 163.835C179.797 163.845 179.775 163.857 179.747 163.873C179.576 163.97 179.411 164.078 179.238 164.171C179.043 164.277 178.844 164.373 178.642 164.463C178.556 164.494 178.471 164.526 178.384 164.553C177.532 164.819 176.835 164.945 176.084 164.954C175.296 164.954 174.508 164.954 173.719 164.954C171.519 164.954 169.318 164.954 167.118 164.954C163.751 164.954 160.385 164.954 157.019 164.954C152.756 164.954 148.493 164.954 144.231 164.954C139.275 164.954 134.319 164.954 129.364 164.954C123.981 164.954 118.598 164.954 113.215 164.954C107.651 164.954 102.086 164.954 96.5224 164.954C91.024 164.954 85.5255 164.954 80.0271 164.954C74.8407 164.954 69.6543 164.954 64.4679 164.954C59.8401 164.954 55.2123 164.954 50.5846 164.954C46.7784 164.954 42.9721 164.954 39.166 164.954C36.3891 164.954 33.6122 164.954 30.8354 164.954C29.3555 164.954 27.8756 164.954 26.3957 164.954C25.9641 164.954 25.534 164.958 25.1029 164.922C23.4511 164.785 22.11 164.207 20.7626 163.127C20.3445 162.792 19.7301 162.074 19.3142 161.434C19.2096 161.273 19.1102 161.109 19.0161 160.942C18.9707 160.861 18.8013 160.534 18.8105 160.558C18.7451 160.414 18.5329 159.846 18.4422 159.537C18.3467 159.211 18.2692 158.879 18.2129 158.544C18.2174 158.545 18.1876 158.285 18.1815 158.192C18.1669 157.964 18.1617 157.736 18.1651 157.508C18.166 157.455 18.1793 157.245 18.185 157.131C18.2055 157.005 18.2441 156.74 18.2591 156.662C18.2913 156.493 18.3319 156.326 18.3726 156.16C18.2821 156.539 18.4099 156.072 18.4891 155.866C18.518 155.79 18.6652 155.487 18.6846 155.432C18.7383 155.339 18.7932 155.243 18.8125 155.21C18.8692 155.114 18.9282 155.019 18.9875 154.924C19.0003 154.904 19.0137 154.884 19.0265 154.863C19.2211 154.554 19.4201 154.247 19.617 153.939C20.6335 152.348 21.6501 150.756 22.6667 149.165C24.3869 146.472 26.107 143.779 27.8271 141.086C30.0848 137.552 32.3425 134.017 34.6001 130.483C37.2646 126.312 39.9291 122.141 42.5935 117.97C45.5011 113.418 48.4086 108.866 51.3161 104.315C54.3131 99.6229 57.31 94.9312 60.3069 90.2397C63.2394 85.6489 66.172 81.058 69.1045 76.4672C71.819 72.2178 74.5334 67.9683 77.2479 63.719C79.5904 60.0517 81.9331 56.3844 84.2756 52.7172C86.0852 49.8842 87.8948 47.0513 89.7044 44.2184C90.8459 42.4315 91.9873 40.6446 93.1287 38.8578C93.3976 38.4368 93.6701 38.0178 93.9356 37.5945C93.9507 37.5705 93.9737 37.5416 93.9972 37.511C93.8744 37.7231 94.1597 37.2638 94.301 37.0921C94.4017 36.9695 94.5483 36.8114 94.5423 36.8113C94.6372 36.721 94.7333 36.6319 94.8323 36.546C94.9866 36.4121 95.1478 36.2876 95.3084 36.1615C94.9392 36.4513 95.3917 36.1121 95.5441 36.0212C96.7591 35.2961 98.1095 34.9498 99.7068 35.0725C101.356 35.1993 102.702 35.7434 104.07 36.8307C104.685 37.3192 105.311 38.1542 105.817 38.9457C106.592 40.1592 107.367 41.3727 108.142 42.5862C109.667 44.9733 111.192 47.3605 112.717 49.7476C114.838 53.0679 116.959 56.3881 119.08 59.7083C121.629 63.6999 124.179 67.6913 126.729 71.6829C129.579 76.1455 132.43 80.6082 135.281 85.0709C138.267 89.7458 141.253 94.4206 144.239 99.0955C147.207 103.742 150.176 108.388 153.144 113.035C155.94 117.412 158.736 121.789 161.532 126.167C164.002 130.034 166.473 133.902 168.943 137.769C170.935 140.886 172.926 144.003 174.917 147.12C176.27 149.239 177.623 151.357 178.976 153.475C179.551 154.376 180.134 155.272 180.702 156.177C181.138 156.872 181.311 157.219 181.54 157.972C181.6 158.167 181.652 158.363 181.697 158.561C181.711 158.623 181.759 158.873 181.78 158.97C181.787 159.063 181.815 159.319 181.819 159.383C181.831 159.579 181.836 159.775 181.834 159.972C181.834 160.022 181.825 160.217 181.821 160.333Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M98.5821 122.507C99.019 122.759 99.6307 122.629 100.038 122.389C101.205 121.703 101.925 120.275 102.041 118.92C103.115 106.361 106.514 75.1051 106.514 68.3062C106.514 59.902 92.8134 60.6835 92.0664 71.3279C91.6887 76.7103 97.5083 119.581 97.8266 121.187C97.9188 121.652 98.1423 122.253 98.5821 122.507Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M101.841 133.945C101.826 133.94 101.812 133.934 101.797 133.929C98.2767 132.6 94.4012 134.976 93.9964 138.717C93.9765 138.901 93.9636 139.086 93.958 139.272C93.8552 142.712 96.4467 146.126 99.8464 146.664C103.245 147.201 106.896 144.494 107.099 141.059C107.285 137.909 104.789 135.072 101.841 133.945Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M161.729 131.662C161.873 131.367 162.082 130.81 161.71 130.584C161.365 130.375 160.901 130.836 160.768 131.107C156.804 139.201 152.84 147.295 148.877 155.389C147.759 157.67 146.642 159.952 145.525 162.233C145.38 162.528 145.171 163.085 145.543 163.311C145.888 163.52 146.352 163.059 146.485 162.788C150.449 154.694 154.413 146.6 158.377 138.506C159.494 136.225 160.611 133.943 161.729 131.662Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M144.786 152.64C144.441 152.43 143.977 152.891 143.844 153.163C142.363 156.187 140.882 159.21 139.402 162.234C139.257 162.528 139.048 163.085 139.42 163.311C139.765 163.521 140.229 163.06 140.362 162.788C141.843 159.764 143.323 156.741 144.804 153.717C144.948 153.423 145.158 152.866 144.786 152.64Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M136.792 156.459C136.447 156.25 135.983 156.711 135.85 156.982C134.993 158.733 134.136 160.483 133.279 162.233C133.134 162.528 132.925 163.085 133.297 163.311C133.642 163.52 134.106 163.06 134.239 162.788C135.096 161.037 135.953 159.287 136.81 157.537C136.955 157.242 137.164 156.685 136.792 156.459Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M129.1 159.663C128.755 159.454 128.291 159.915 128.158 160.186C127.824 160.869 127.49 161.551 127.155 162.234C127.011 162.528 126.802 163.086 127.174 163.311C127.519 163.521 127.983 163.06 128.116 162.788C128.45 162.106 128.784 161.423 129.118 160.741C129.263 160.447 129.472 159.889 129.1 159.663Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M165.835 137.946C165.979 137.652 166.188 137.094 165.816 136.868C165.471 136.659 165.007 137.12 164.874 137.392C161.72 143.832 158.566 150.273 155.412 156.713C154.511 158.553 153.609 160.393 152.708 162.233C152.564 162.528 152.355 163.085 152.726 163.311C153.071 163.52 153.535 163.06 153.669 162.788C156.823 156.347 159.977 149.907 163.131 143.466C164.032 141.626 164.933 139.786 165.835 137.946Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M169.923 143.153C169.578 142.943 169.114 143.404 168.98 143.676C165.951 149.862 162.921 156.048 159.892 162.234C159.748 162.528 159.538 163.086 159.91 163.311C160.255 163.521 160.719 163.06 160.852 162.788C163.882 156.602 166.911 150.416 169.941 144.23C170.085 143.936 170.294 143.378 169.923 143.153Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M174.332 148.821C173.987 148.611 173.523 149.072 173.39 149.344C171.286 153.64 169.182 157.937 167.077 162.234C166.933 162.528 166.724 163.086 167.095 163.311C167.44 163.521 167.905 163.06 168.038 162.788C170.142 158.492 172.246 154.195 174.351 149.898C174.495 149.604 174.704 149.046 174.332 148.821Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M178.197 155.597C177.852 155.387 177.388 155.848 177.255 156.12C176.257 158.158 175.259 160.196 174.261 162.233C174.117 162.528 173.907 163.085 174.279 163.311C174.624 163.52 175.088 163.06 175.221 162.788C176.219 160.75 177.217 158.712 178.215 156.674C178.36 156.38 178.569 155.823 178.197 155.597Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M97.1962 40.2135C97.3477 39.9803 97.4773 39.477 97.1807 39.2971C96.8678 39.1072 96.5194 39.5265 96.3794 39.7419C94.7034 42.3205 93.0556 44.9176 91.4179 47.5205C88.1743 52.6759 84.976 57.8633 81.9271 63.1367C80.4155 65.7509 78.9283 68.3855 77.5879 71.0925C77.4642 71.3423 77.2879 71.8174 77.6034 72.0088C77.8975 72.1874 78.2905 71.7947 78.4047 71.564C80.9657 66.3919 83.9726 61.4308 86.9671 56.5018C89.7369 51.9427 92.5713 47.4226 95.4474 42.9297C96.0279 42.0228 96.6094 41.1164 97.1962 40.2135Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M75.3224 76.1247C75.0193 75.9408 74.6477 76.3459 74.521 76.5695C74.1645 77.1991 73.808 77.8286 73.4515 78.4581C73.3144 78.7003 73.1605 79.1884 73.467 79.3744C73.77 79.5583 74.1416 79.1532 74.2684 78.9296C74.6248 78.3001 74.9814 77.6705 75.3378 77.0411C75.475 76.7988 75.6288 76.3107 75.3224 76.1247Z",fill:"var(--pae-shell-color-secondary)"})]});gl.displayName="WarningIcon";const yg="support@bluealba.com",bg="@bluealba/pae-shell-ui",vl=E("ErrorState",()=>{const{supportEmail:e=yg}=Su(bg),t=`mailto:${e}?Subject=Support`;return u.jsxs("div",{className:Gr.container,children:[u.jsx(gl,{}),u.jsx("div",{className:Gr.title,children:"Oops! Something went wrong"}),u.jsxs("div",{className:Gr.description,children:["If the error persists, ",u.jsx("a",{className:Gr.mailToText,href:t,children:"contact the administrator."})]})]})});vl.displayName="ErrorState";const Ie={List:"List__h09XG",list:"List__h09XG",Item:"Item__YMy2i",item:"Item__YMy2i","List--primary":"List--primary__J2pbx",listPrimary:"List--primary__J2pbx","List--secondary":"List--secondary__gi1ao",listSecondary:"List--secondary__gi1ao","Item--selected":"Item--selected__yRWow",itemSelected:"Item--selected__yRWow",Title:"Title__RJmEW",title:"Title__RJmEW",Description:"Description__DGyX2",description:"Description__DGyX2",Actions:"Actions__UHP5l",actions:"Actions__UHP5l",Action:"Action__q-R1I",action:"Action__q-R1I","Item--disabled":"Item--disabled__Ke1u-",itemDisabled:"Item--disabled__Ke1u-","List--small":"List--small__ijoSR",listSmall:"List--small__ijoSR","List--medium":"List--medium__E1FEY",listMedium:"List--medium__E1FEY","List--large":"List--large__T8tfz",listLarge:"List--large__T8tfz",Icon:"Icon__dFr-L",icon:"Icon__dFr-L"},yl=B(({children:e,className:t,selected:n,disabled:r=!1,...o},i)=>{const s=j(Ie.Item,{[Ie["Item--selected"]]:n,[Ie["Item--disabled"]]:r},t);return u.jsx("li",{ref:i,className:s,role:"listitem","aria-disabled":r,...o,children:e})});yl.displayName="Item";const bl=B(({children:e,className:t,...n},r)=>{const o=j(Ie.Title,t);return u.jsx("h3",{ref:r,className:o,...n,children:e})});bl.displayName="Title";const wl=B(({children:e,className:t,...n},r)=>{const o=j(Ie.Description,t);return u.jsx("p",{ref:r,className:o,...n,children:e})});wl.displayName="Description";const Ai=({className:e,...t})=>u.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:[u.jsx("path",{d:"M6 6.5C6.27614 6.5 6.5 6.27614 6.5 6C6.5 5.72386 6.27614 5.5 6 5.5C5.72386 5.5 5.5 5.72386 5.5 6C5.5 6.27614 5.72386 6.5 6 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M9.5 6.5C9.77614 6.5 10 6.27614 10 6C10 5.72386 9.77614 5.5 9.5 5.5C9.22386 5.5 9 5.72386 9 6C9 6.27614 9.22386 6.5 9.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M2.5 6.5C2.77614 6.5 3 6.27614 3 6C3 5.72386 2.77614 5.5 2.5 5.5C2.22386 5.5 2 5.72386 2 6C2 6.27614 2.22386 6.5 2.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"})]});Ai.displayName="HorizontalDots";const _l=B(({children:e,className:t,onClick:n,...r},o)=>{const i=ao(null),[s,a]=L(!1),c=j(Ie.Actions,t),l=()=>{const w=Kt["DropdownList--open"],f=Kt["DropdownList--closed"];document.querySelectorAll(`.${w}`).forEach(_=>{_!==i.current&&(_.classList.remove(w),_.classList.add(f))})},d=w=>{w.stopPropagation(),s?p():(a(!0),n==null||n(w))},p=()=>{a(!1)},h=w=>{w.key==="Escape"&&p()},m=w=>{i.current&&!i.current.contains(w.target)&&p()};return Q(()=>(s?(l(),document.addEventListener("keydown",h),document.addEventListener("click",m)):(document.removeEventListener("keydown",h),document.removeEventListener("click",m)),()=>{document.removeEventListener("keydown",h),document.removeEventListener("click",m)}),[s]),u.jsxs("div",{ref:o,className:c,onClick:d,role:"button",tabIndex:0,"data-testid":"actions",...r,children:[u.jsx(Ai,{}),u.jsx(Wo,{align:"left",ref:i,open:s,"data-testid":"actions-dropdown",role:"menu","aria-label":"Actions",children:e})]})});_l.displayName="Actions";const xl=B(({children:e,className:t,...n},r)=>{const o=j(Ie.Action,t);return u.jsx("button",{ref:r,className:o,...n,children:e})});xl.displayName="Action";const Cl=B(({children:e,className:t,...n},r)=>{const o=j(Ie.Icon,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});Cl.displayName="Icon";const Xe=E("List",B(({children:e,className:t,size:n="medium",variant:r,...o},i)=>{const s=j(Ie.List,{[Ie[`List--${n}`]]:n,[Ie[`List--${r}`]]:r},t);return u.jsx("ul",{ref:i,className:s,role:"list",...o,children:e})}));Xe.displayName="List",Xe.Item=yl,Xe.Badges=ga,Xe.Badge=ma,Xe.Title=bl,Xe.Description=wl,Xe.Actions=_l,Xe.Action=xl,Xe.Icon=Cl;const Je={Navigation:"Navigation__uylxk",PaginationContent:"PaginationContent__UpLw0",PaginationEllipsis:"PaginationEllipsis__perWk",PaginationLink:"PaginationLink__GVUZj",Active:"Active__u1Ahy",Disabled:"Disabled__8WM0y",Prev:"Prev__wp4hc",Next:"Next__eVyL5"},El=({className:e,...t})=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...t,children:[u.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M9 6l6 6l-6 6"})]});El.displayName="ChevronRight";const Sl=({className:e,...t})=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...t,children:[u.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M15 6l-6 6l6 6"})]});Sl.displayName="ChevronLeft";const Tl=E("Pagination",({className:e,...t})=>u.jsx("nav",{role:"navigation","aria-label":"pagination",className:j(Je.Navigation,e),...t}));Tl.displayName="Pagination";const Al=E("PaginationContent",g.forwardRef(({className:e,...t},n)=>u.jsx("ul",{ref:n,className:j(Je.PaginationContent,e),...t})));Al.displayName="PaginationContent";const qr=E("PaginationItem",g.forwardRef(({className:e,...t},n)=>u.jsx("li",{ref:n,className:e,...t})));qr.displayName="PaginationItem";const Qr=E("PaginationLink",({className:e,isActive:t,...n})=>u.jsx("a",{"aria-current":t?"page":void 0,className:j(Je.PaginationLink,t&&Je.Active,e),...n}));Qr.displayName="PaginationLink";const Pl=E("PaginationPrevious",({className:e,disabled:t,...n})=>u.jsxs(Qr,{"aria-label":"Go to previous page",className:j(t&&Je.Disabled,Je.Prev,e),...n,children:[u.jsx(Sl,{}),u.jsx("span",{children:"Previous"})]}));Pl.displayName="PaginationPrevious";const Rl=E("PaginationNext",({className:e,disabled:t,...n})=>u.jsxs(Qr,{"aria-label":"Go to next page",className:j(t&&Je.Disabled,Je.Next,e),...n,children:[u.jsx("span",{children:"Next"}),u.jsx(El,{})]}));Rl.displayName="PaginationNext";const Ol=E("PaginationEllipsis",({className:e,...t})=>u.jsx("span",{"aria-hidden":!0,className:j(Je.PaginationEllipsis,e),...t,children:u.jsx(Ai,{})}));Ol.displayName="PaginationEllipsis";function wg(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var kl={exports:{}};(function(e,t){(function(n,r){typeof wg=="function"?e.exports=r():n.pluralize=r()})(yu,function(){var n=[],r=[],o={},i={},s={};function a(f){return typeof f=="string"?new RegExp("^"+f+"$","i"):f}function c(f,v){return f===v?v:f===f.toLowerCase()?v.toLowerCase():f===f.toUpperCase()?v.toUpperCase():f[0]===f[0].toUpperCase()?v.charAt(0).toUpperCase()+v.substr(1).toLowerCase():v.toLowerCase()}function l(f,v){return f.replace(/\$(\d{1,2})/g,function(_,x){return v[x]||""})}function d(f,v){return f.replace(v[0],function(_,x){var C=l(v[1],arguments);return c(_===""?f[x-1]:_,C)})}function p(f,v,_){if(!f.length||o.hasOwnProperty(f))return v;for(var x=_.length;x--;){var C=_[x];if(C[0].test(v))return d(v,C)}return v}function h(f,v,_){return function(x){var C=x.toLowerCase();return v.hasOwnProperty(C)?c(x,C):f.hasOwnProperty(C)?c(x,f[C]):p(C,x,_)}}function m(f,v,_,x){return function(C){var S=C.toLowerCase();return v.hasOwnProperty(S)?!0:f.hasOwnProperty(S)?!1:p(S,S,_)===S}}function w(f,v,_){var x=v===1?w.singular(f):w.plural(f);return(_?v+" ":"")+x}return w.plural=h(s,i,n),w.isPlural=m(s,i,n),w.singular=h(i,s,r),w.isSingular=m(i,s,r),w.addPluralRule=function(f,v){n.push([a(f),v])},w.addSingularRule=function(f,v){r.push([a(f),v])},w.addUncountableRule=function(f){if(typeof f=="string"){o[f.toLowerCase()]=!0;return}w.addPluralRule(f,"$0"),w.addSingularRule(f,"$0")},w.addIrregularRule=function(f,v){v=v.toLowerCase(),f=f.toLowerCase(),s[f]=v,i[v]=f},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(f){return w.addIrregularRule(f[0],f[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(f){return w.addPluralRule(f[0],f[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(f){return w.addSingularRule(f[0],f[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(w.addUncountableRule),w})})(kl);var _g=kl.exports;const xg=bu(_g),jl=E("PluralizeCounter",({count:e,singularText:t,children:n=(r,o)=>`${r} ${o}`})=>u.jsx(u.Fragment,{children:n(e,xg(t,e))}));jl.displayName="PluralizeCounter";const be={TableContainer:"TableContainer__osh6Z",TableHeader:"TableHeader__sYa-8",Table:"Table__2cIs3",selectable:"selectable__WsGg1",Cell:"Cell__ZEv-K",Right:"Right__YoM1V",Center:"Center__CF3tr",Sortable:"Sortable__JIV1V",SortIcon:"SortIcon__f0bBy",Active:"Active__rJjxB",Rotate:"Rotate__7cwTK",Pagination:"Pagination__sbqMP",PointerNone:"PointerNone__kQdQS"},Dl={EmptyStateContainer:"EmptyStateContainer__Q9FEb",Message:"Message__IHK6M"},Ll=({size:e=64})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsxs("g",{clipPath:"url(#clip-path)",children:[u.jsx("mask",{id:"mask0_1070_8032",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"64",height:"64",children:u.jsx("path",{d:"M64 0H0V64H64V0Z",fill:"white"})}),u.jsx("g",{mask:"url(#mask0_1070_8032)",children:u.jsx("path",{d:"M40 10.6673H13.3333V53.334H50.6667V21.334H40V10.6673ZM8 7.97932C8 6.51798 9.192 5.33398 10.664 5.33398H42.6667L56 18.6673V55.982C56.0024 56.3321 55.936 56.6793 55.8043 57.0039C55.6725 57.3284 55.4781 57.6239 55.2323 57.8732C54.9864 58.1225 54.6936 58.3209 54.3712 58.4572C54.0485 58.5935 53.7021 58.6649 53.352 58.6673H10.648C9.94768 58.6625 9.27739 58.3823 8.78192 57.8873C8.28645 57.3924 8.00557 56.7223 8 56.022V7.97932ZM36.0773 38.5233C33.8408 39.83 31.2056 40.2788 28.6627 39.786C26.1197 39.2929 23.8428 37.8921 22.2566 35.8444C20.6704 33.7966 19.883 31.2417 20.0414 28.6564C20.1998 26.071 21.293 23.6315 23.1173 21.7927C24.9532 19.9571 27.3955 18.8541 29.9864 18.6904C32.5773 18.5267 35.1389 19.3134 37.1912 20.9032C39.2435 22.493 40.6456 24.7767 41.1347 27.3263C41.6237 29.8759 41.1664 32.5164 39.848 34.7527L45.7413 40.646L41.9707 44.4193L36.0773 38.5233ZM34.4293 33.1047C34.9387 32.6126 35.3451 32.0241 35.6245 31.3735C35.904 30.7228 36.0512 30.0231 36.0573 29.3148C36.0635 28.6065 35.9285 27.9044 35.6603 27.2489C35.3923 26.5935 34.9963 25.998 34.4955 25.4972C33.9947 24.9964 33.3992 24.6004 32.7437 24.3323C32.0883 24.0641 31.3861 23.9292 30.6779 23.9353C29.9696 23.9415 29.2699 24.0886 28.6192 24.3681C27.9685 24.6476 27.38 25.0539 26.888 25.5633C25.9165 26.5692 25.3789 27.9164 25.3911 29.3148C25.4032 30.7132 25.9641 32.0508 26.9531 33.0396C27.9419 34.0287 29.2795 34.5895 30.6779 34.6015C32.0763 34.6137 33.4235 34.0761 34.4293 33.1047Z",fill:"currentColor"})})]}),u.jsx("defs",{children:u.jsx("clipPath",{id:"clip-path",children:u.jsx("rect",{width:"64",height:"64",fill:"white"})})})]});Ll.displayName="EmptyStateIcon";const Il=E("EmptyState",({message:e="No results found"})=>u.jsxs("div",{className:j(Dl.EmptyStateContainer),children:[u.jsx(Ll,{}),u.jsx("p",{className:Dl.Message,children:e})]}));Il.displayName="EmptyState";const Cg=(e,t,n=1)=>{if(e<=1)return["1"];const r=[],o=i=>{(r.length===0||r[r.length-1]!==i)&&r.push(i)};o(1),t-n>2&&o("...");for(let i=Math.max(2,t-n);i<=Math.min(e-1,t+n);i++)o(i);return t+n<e-1&&o("..."),o(e),r.map(String)},Nl=({page:e,totalPages:t,onPageChange:n})=>{const r=e===1,o=e===t;return u.jsx(Tl,{className:be.Pagination,children:u.jsxs(Al,{children:[u.jsx(qr,{children:u.jsx(Pl,{className:j({[be.PointerNone]:r}),onClick:()=>!r&&n(e-1)})}),Cg(t,e).map((i,s)=>u.jsxs(qr,{children:[i==="..."&&u.jsx(Ol,{}),i!=="..."&&u.jsx(Qr,{isActive:+i===e,onClick:()=>+i!==e&&n(+i),children:i})]},s)),u.jsx(qr,{children:u.jsx(Rl,{className:j({[be.PointerNone]:o}),onClick:()=>!o&&n(e+1)})})]})})};Nl.displayName="TablePagination";const $l=({className:e,...t})=>u.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:u.jsx("path",{d:"M6 2.5V9.5M6 9.5L9.5 6M6 9.5L2.5 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});$l.displayName="ArrowDown";const Eg=E("Table",({columns:e,data:t,isLoading:n,totalCount:r=0,headerLabel:o,sort:i,loadingConfig:s,pagination:a,onRowClick:c})=>{const{count:l=5,height:d=40}=s||{},p=v=>v.sortName??v.name,h=v=>j({[be.Cell]:!0,[be.Center]:v.align==="center",[be.Right]:v.align==="right",[be.Sortable]:v.isSortable}),m=v=>{if(!i)return"";const _=p(v);return j({[be.SortIcon]:!0,[be.Active]:v.isSortable&&i.field===_,[be.Rotate]:i.field===_&&i.direction==="asc"})},w=v=>()=>c==null?void 0:c(v),f=v=>()=>{if(!i||!v.isSortable)return;const{field:_,direction:x,onSort:C}=i,S=p(v);_===S?C(S,x==="asc"?"desc":"asc"):C(S,"asc")};return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:be.TableContainer,children:[o&&u.jsx("div",{className:be.TableHeader,children:u.jsx(jl,{count:r,singularText:o,children:(v,_)=>`${v} ${_}`})}),u.jsxs("table",{className:be.Table,children:[u.jsx("thead",{children:u.jsx("tr",{children:e.map(v=>u.jsx("th",{children:u.jsxs("div",{className:h(v),onClick:f(v),children:[u.jsx("span",{children:v.displayName}),v.isSortable&&u.jsx($l,{className:m(v)})]})},v.name))})}),u.jsx("tbody",{children:u.jsxs(Ot,{children:[u.jsx(Ot.When,{condition:n,children:[...Array(l).keys()].map(v=>u.jsx("tr",{children:u.jsx("td",{colSpan:e.length,style:{padding:4},children:u.jsx(Go,{height:d})})},v))}),u.jsx(Ot.When,{condition:!t.length,children:u.jsx("tr",{children:u.jsx("td",{colSpan:e.length,children:u.jsx(Il,{})})})}),u.jsx(Ot.Else,{children:t.map((v,_)=>u.jsx("tr",{className:c&&be.selectable,onClick:w(v),children:e.map(x=>u.jsx("td",{style:x.width?{width:x.width}:{},children:u.jsx("div",{className:h(x),children:x.cellRenderer?x.cellRenderer(v):x.valueGetter?x.valueGetter(v):v[x.name]})},`${x.name}-${_}`))},_))})]})})]})]}),a&&u.jsx(Nl,{...a})]})});Eg.displayName="Table";const Yr={alert:"alert__LblpE",default:"default__mgO6A",destructive:"destructive__bLNSM",alertTitle:"alertTitle__gblKf",alertDescription:"alertDescription__BuVHV"},Pi=E("Alert",({className:e,variant:t="default",children:n,...r})=>u.jsx("div",{"data-slot":"alert",role:"alert",className:j(Yr.alert,Yr[t],e),...r,children:n})),Sg=g.forwardRef(({children:e,className:t,...n},r)=>u.jsx("div",{ref:r,"data-slot":"alert-title",className:j(Yr.alertTitle,t),...n,children:e})),Tg=g.forwardRef(({children:e,className:t,...n},r)=>u.jsx("div",{ref:r,"data-slot":"alert-description",className:j(Yr.alertDescription,t),...n,children:e}));Pi.displayName="Alert",Pi.Title=Sg,Pi.Description=Tg;function Ml(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Kr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ml(Object(n),!0).forEach(function(r){Ag(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ml(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fl(e){return(Fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function Ag(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ri(e){return(Ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function Bl(e,t){var n;if(typeof(n=t.domElement?function(){return t.domElement}:t.domElementGetter?t.domElementGetter:e.domElementGetter?e.domElementGetter:function(r){var o=r.appName||r.name;if(!o)throw Error("single-spa's dom-element-getter-helpers was not given an application name as a prop, so it can't make a unique dom element container for the react application");var i="single-spa-application:".concat(o);return function(){var s=document.getElementById(i);return s||((s=document.createElement("div")).id=i,document.body.appendChild(s)),s}}(t))!="function")throw Error("single-spa's dom-element-getter-helpers was given an invalid domElementGetter for application or parcel '".concat(t.name,"'. Expected a function, received ").concat(Ri(n)));return function(){var r=n(t);if(!(r instanceof HTMLElement))throw Error("single-spa's dom-element-getter-helpers: domElementGetter returned an invalid dom element for application or parcel '".concat(t.name,"'. Expected HTMLElement, received ").concat(Ri(r)));return r}}var Un=null;try{Un=require("react").createContext()}catch{}var Pg={React:null,ReactDOM:null,ReactDOMClient:null,rootComponent:null,loadRootComponent:null,errorBoundary:null,errorBoundaryClass:null,domElementGetter:null,parcelCanUpdate:!0,suppressComponentDidCatchWarning:!1,domElements:{},renderResults:{},updateResolves:{},unmountResolves:{}};function Rg(e){if(Fl(e)!=="object")throw new Error("single-spa-react requires a configuration object");var t,n=Kr(Kr({},Pg),e);if(!n.React)throw new Error("single-spa-react must be passed opts.React");if(!n.ReactDOM&&!n.ReactDOMClient)throw new Error("single-spa-react must be passed opts.ReactDOM or opts.ReactDOMClient");if(n.renderType||((t=n.ReactDOMClient)!==null&&t!==void 0&&t.createRoot?n.renderType="createRoot":n.renderType="render"),!n.rootComponent&&!n.loadRootComponent)throw new Error("single-spa-react must be passed opts.rootComponent or opts.loadRootComponent");if(n.errorBoundary&&typeof n.errorBoundary!="function")throw Error("The errorBoundary opt for single-spa-react must either be omitted or be a function that returns React elements");!Un&&n.React.createContext&&(Un=n.React.createContext()),n.SingleSpaRoot=function(o){function i(s){i.displayName="SingleSpaRoot(".concat(s.name,")")}return i.prototype=Object.create(o.React.Component.prototype),i.prototype.componentDidMount=function(){setTimeout(this.props.mountFinished)},i.prototype.componentWillUnmount=function(){setTimeout(this.props.unmountFinished)},i.prototype.render=function(){return setTimeout(this.props.updateFinished),this.props.children},i}(n);var r={bootstrap:Og.bind(null,n),mount:kg.bind(null,n),unmount:jg.bind(null,n)};return n.parcelCanUpdate&&(r.update=Dg.bind(null,n)),r}function Og(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then(function(n){e.rootComponent=n})}function kg(e,t){return new Promise(function(n,r){e.suppressComponentDidCatchWarning||!function(a){if(!(a&&typeof a.version=="string"&&a.version.indexOf(".")>=0))return!1;var c=a.version.slice(0,a.version.indexOf("."));try{return Number(c)>=16}catch{return!1}}(e.React)||e.errorBoundary||e.errorBoundaryClass||(e.rootComponent.prototype?e.rootComponent.prototype.componentDidCatch||console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire single-spa application.")):console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to singleSpaReact(opts).")));var o=Ul(e,t,function(){n(this)}),i=Bl(e,t)(),s=function(a){var c=a.reactDom,l=a.renderType,d=a.elementToRender,p=a.domElement,h=c[l];if(typeof h!="function")throw new Error('renderType "'.concat(l,'" did not return a function.'));switch(l){case"createRoot":case"unstable_createRoot":case"createBlockingRoot":case"unstable_createBlockingRoot":var m=h(p);return m.render(d),m;case"hydrateRoot":return h(p,d);case"hydrate":default:return h(d,p),null}}({elementToRender:o,domElement:i,reactDom:Oi(e),renderType:Lg(e)});e.domElements[t.name]=i,e.renderResults[t.name]=s})}function jg(e,t){return new Promise(function(n){e.unmountResolves[t.name]=n;var r=e.renderResults[t.name];r&&r.unmount?r.unmount():Oi(e).unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]})}function Dg(e,t){return new Promise(function(n){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(n);var r=Ul(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(r);else{var i=Bl(e,t)();Oi(e).render(r,i)}})}function Oi(e){return e.ReactDOMClient||e.ReactDOM}function Lg(e){return typeof e.renderType=="function"?e.renderType():e.renderType}function Ul(e,t,n){var r=e.React.createElement(e.rootComponent,t),o=Un?e.React.createElement(Un.Provider,{value:t},r):r;return(e.errorBoundary||t.errorBoundary||e.errorBoundaryClass||t.errorBoundaryClass)&&(e.errorBoundaryClass=e.errorBoundaryClass||t.errorBoundaryClass||function(i,s){function a(c){i.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},a.displayName="SingleSpaReactErrorBoundary(".concat(c.name,")")}return a.prototype=Object.create(i.React.Component.prototype),a.prototype.render=function(){return this.state.caughtError?(i.errorBoundary||s.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},a.prototype.componentDidCatch=function(c,l){this.setState({caughtError:c,caughtErrorInfo:l})},a}(e,t),o=e.React.createElement(e.errorBoundaryClass,t,o)),o=e.React.createElement(e.SingleSpaRoot,Kr(Kr({},t),{},{mountFinished:n,updateFinished:function(){e.updateResolves[t.name]&&(e.updateResolves[t.name].forEach(function(i){return i()}),delete e.updateResolves[t.name])},unmountFinished:function(){e.unmountResolves[t.name]&&(e.unmountResolves[t.name](),delete e.unmountResolves[t.name])}}),o)}const Ig=e=>{const t=new Df;return function(r){if(!r)throw new Error("Microfrontend did not receive any properties !!");const o=is(r.module.name);return u.jsx(rs,{module:o,children:u.jsxs(Mf,{client:t,children:[u.jsx(e,{...r}),u.jsx(vf,{position:"top-right",reverseOrder:!0})]})})}},yb=E("initializeMicroFrontend",({rootComponent:e,...t})=>Rg({errorBoundary(n){return console.error(n),u.jsx(vl,{})},...t,rootComponent:Ig(e)})),bb=E("setupTestEnvironment",e=>{const t={authUser:{id:"testuser",username:"testuser",displayName:"Test User",applications:[]},catalog:[],authentication:{passwordMethodEnabled:!0,registerEnabled:!0,invitationsEnabled:!0,resetPasswordExpiration:3e4,passwordConstraints:{lowerCaseRequired:!1,upperCaseRequired:!1,symbolRequired:!1,digitRequired:!1,minLength:0,maxLength:8},sessionExpiration:864e5,jwtSecret:"",sessionIncludeOrigUser:!1,impersonationMode:"cookie",canImpersonateNonExistentUsers:!1,providers:[]},platformVersion:"0.0.0"};Object.defineProperty(window,Pn,{value:e?Yu(t,e):t})}),Zr=E("FeatureFlagsContext",Kn({flags:new Map,variants:new Map,isLoading:!1,error:null,checkFlag:()=>!1,getVariant:()=>null,refresh:async()=>{}})),Ng=E("FeatureFlagsProvider",({gatewayUrl:e="",prefetchFlags:t=[],refreshInterval:n,children:r})=>{const[o,i]=L(new Map),[s,a]=L(new Map),[c,l]=L(!1),[d,p]=L(null),h=te(async _=>{if(_.length!==0){l(!0),p(null);try{const x=`${e}/_/feature-flags/evaluate`,C=await fetch(x,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({flagNames:_}),credentials:"include"});if(!C.ok)throw new Error(`Failed to fetch feature flags: ${C.status} ${C.statusText}`);const S=await C.json(),T=new Map,R=new Map;S.flags.forEach(A=>{T.set(A.flagName,A.enabled),A.variant!==void 0&&R.set(A.flagName,{variant:A.variant.name||null,payload:A.variant.payload})}),i(T),a(R)}catch(x){const C=x instanceof Error?x:new Error("Unknown error fetching feature flags");p(C),console.error("Error fetching feature flags:",C)}finally{l(!1)}}},[e]),m=te(async()=>{t.length>0&&await h(t)},[t,h]);Q(()=>{t.length>0&&h(t)},[t,h]),Q(()=>{if(n&&n>0&&t.length>0){const _=setInterval(()=>{h(t)},n);return()=>{clearInterval(_)}}},[n,t,h]);const w=te((_,x=!1)=>o.get(_)??x,[o]),f=te(_=>s.get(_)??null,[s]),v=Ae(()=>({flags:o,variants:s,isLoading:c,error:d,checkFlag:w,getVariant:f,refresh:m}),[o,s,c,d,w,f,m]);return u.jsx(Zr.Provider,{value:v,children:r})});Ng.displayName="FeatureFlagsProvider";function zl(e,t=!1,n=""){const r=Qt(Zr),[o,i]=L(t),[s,a]=L(!1);if(Q(()=>{const l=r.checkFlag(e,null);if(l!=null){i(l),a(!0);return}let d=!0;return(async()=>{try{const h=`${n}/_/feature-flags/${encodeURIComponent(e)}`,m=await fetch(h,{method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"});if(!m.ok){console.warn(`Failed to fetch feature flag '${e}': ${m.status} ${m.statusText}`),d&&(i(t),a(!0));return}const w=await m.json();if(d){const f=typeof w.value=="boolean"?w.value:t;i(f),a(!0)}}catch(h){console.error(`Error fetching feature flag '${e}':`,h),d&&(i(t),a(!0))}})(),()=>{d=!1}},[e,t,n,r]),!s&&r.flags.size===0)return t;const c=r.checkFlag(e,null);return c??o}function $g(){const e=Qt(Zr);if(!e)throw new Error("useFeatureFlags must be used within a FeatureFlagsProvider. Wrap your component tree with <FeatureFlagsProvider> to use this hook.");return e}function Mg(e,t=""){const n=Qt(Zr),[r,o]=L(null),[i,s]=L(void 0),[a,c]=L(!0);Q(()=>{const d=n.getVariant(e);if(d!==null){o(d.variant),s(d.payload),c(!1);return}let p=!0;return(async()=>{c(!0);try{const m=`${t}/_/feature-flags/${encodeURIComponent(e)}`,w=await fetch(m,{method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"});if(!w.ok){console.warn(`Failed to fetch variant for flag '${e}': ${w.status} ${w.statusText}`),p&&(o(null),s(void 0),c(!1));return}const f=await w.json();if(p){const v=typeof f.value=="string"?f.value:(f.value===null||f.value===void 0,null);o(v),s(void 0),c(!1)}}catch(m){console.error(`Error fetching variant for flag '${e}':`,m),p&&(o(null),s(void 0),c(!1))}})(),()=>{p=!1}},[e,t,n]);const l=n.getVariant(e);return l!==null?{variant:l.variant,payload:l.payload,isLoading:!1}:{variant:r,payload:i,isLoading:a}}const Fg=E("FeatureFlagGuard",({flag:e,children:t,fallback:n=null,invert:r=!1,gatewayUrl:o=""})=>{const i=zl(e,!1,o);return(r?!i:i)?u.jsx(u.Fragment,{children:t}):u.jsx(u.Fragment,{children:n})});Fg.displayName="FeatureFlagGuard"}}});
253
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return g.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Km="DialogDescriptionWarning",Zm=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${tl(Km).contentName}}.`;return g.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Xm=zc,Jm=Vc,eg=Gc,tg=qc,ng=Yc,rg=Zc,og=Jc;const nl={Overlay:"Overlay__M5Z83",Content:"Content__wAkP4"},Dt={Header:"Header__VHxNf",Content:"Content__I04qM",Close:"Close__xSN-7",Title:"Title__Dznh6",Footer:"Footer__-8gzQ",Actions:"Actions__kKF2Q"},rl=z(({children:e,className:t,...n},r)=>{const o=j(Dt.Header,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});rl.displayName="Header";const ol=z(({children:e,className:t,...n},r)=>{const o=j(Dt.Content,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});ol.displayName="Content";const il=z(({children:e,className:t,...n},r)=>{const o=j(Dt.Footer,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});il.displayName="Footer";const sl=z(({children:e,className:t,...n},r)=>{const o=j(Dt.Title,t);return u.jsx(ng,{ref:r,className:o,...n,children:e})});sl.displayName="Title";const al=z(({className:e,...t},n)=>{const r=j(Dt.Close,e);return u.jsx(og,{ref:n,asChild:!0,className:r,...t,children:u.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M11 1L1 11M1 1L11 11",stroke:"#A9A9A9",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})});al.displayName="Close";const cl=z(({children:e,className:t,...n},r)=>{const o=j(Dt.Actions,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});cl.displayName="Actions";const ll=z(({children:e,className:t,...n},r)=>{const o=j(Dt.Description,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});ll.displayName="Description";const he=S("Dialog",({children:e,onClose:t,open:n=!1,className:r})=>{const o=()=>{t==null||t()};return u.jsx(Xm,{onOpenChange:o,open:n,children:u.jsxs(Jm,{children:[u.jsx(eg,{className:nl.Overlay}),u.jsxs(tg,{children:[u.jsx(rg,{}),u.jsx("div",{className:j(nl.Content,r),children:e})]})]})})});he.displayName="Dialog",he.Header=rl,he.Content=ol,he.Footer=il,he.Actions=cl,he.Title=sl,he.Description=ll,he.Close=al;const ul={pill:"pill__vtGwB","pill--solid":"pill--solid__F-mR4",pillSolid:"pill--solid__F-mR4","pill--outline":"pill--outline__gC-mh",pillOutline:"pill--outline__gC-mh"},o0=S("Pill",({children:e,variant:t="solid",className:n})=>{const r=j(ul.pill,ul[`pill--${t}`],n);return u.jsx("div",{className:r,children:e})}),dl={DialogContent:"DialogContent__-WjG9",Message:"Message__AUgVP"},ig=S("ConfirmDialog",({loading:e,title:t,children:n,className:r,onClose:o,onConfirm:i,...s})=>u.jsxs(he,{...s,className:j(dl.DialogContent,r),children:[u.jsxs(he.Header,{children:[u.jsx(he.Title,{children:t}),u.jsx(he.Close,{onClick:o})]}),u.jsx(he.Content,{children:typeof n=="string"?u.jsx("p",{className:dl.Message,children:n}):n}),u.jsx(he.Footer,{children:u.jsxs(he.Actions,{children:[u.jsx(Bo,{onClick:o,disabled:e,variant:"outlined",children:"Cancel"}),u.jsx(Bo,{onClick:i,disabled:e,loading:e,variant:"contained",children:"Confirm"})]})})]}));ig.displayName="ConfirmDialog";const Vr={container:"container__AjtYJ",title:"title__A2vCu",description:"description__bP6Ig",mailToText:"mailToText__SdlsE"},fl=()=>u.jsxs("svg",{width:"200",height:"200",viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M184.415 152.221C183.936 151.406 183.401 150.621 182.892 149.824C181.61 147.817 180.327 145.809 179.045 143.801C177.102 140.759 175.159 137.717 173.215 134.676C170.766 130.841 168.316 127.006 165.866 123.171C163.068 118.79 160.27 114.41 157.472 110.03C154.484 105.352 151.496 100.674 148.508 95.9965C145.474 91.2464 142.439 86.4963 139.405 81.7463C136.513 77.2189 133.621 72.6915 130.729 68.1641C128.123 64.084 125.517 60.0039 122.91 55.9238C120.748 52.5389 118.586 49.1541 116.424 45.7692C114.864 43.3273 113.304 40.8854 111.744 38.4436C110.943 37.1899 110.142 35.9362 109.342 34.6825C108.765 33.7802 108.096 32.9744 107.292 32.2572C104.604 29.8584 100.572 29.2302 97.2301 30.5252C94.5951 31.5463 92.6177 33.3853 91.0923 35.7373C90.8768 36.0696 90.6658 36.405 90.4526 36.7387C89.3951 38.3941 88.3378 40.0494 87.2803 41.7049C85.5124 44.4725 83.7444 47.2402 81.9765 50.0079C79.644 53.6594 77.3114 57.3111 74.9788 60.9626C72.2632 65.2138 69.5477 69.465 66.8321 73.7162C63.8817 78.3349 60.9313 82.9536 57.9811 87.5722C54.9542 92.3106 51.9274 97.0491 48.9006 101.787C45.9557 106.398 43.0107 111.008 40.0658 115.618C37.3487 119.872 34.6316 124.125 31.9145 128.379C29.6106 131.986 27.3067 135.592 25.0028 139.199C23.2565 141.933 21.5101 144.667 19.7639 147.4C18.7335 149.013 17.7031 150.626 16.6728 152.239C14.8665 155.067 13.7231 158.171 14.23 161.595C14.9672 166.576 19.2366 170.131 24.2215 170.137C25.559 170.139 26.8963 170.137 28.2338 170.137C30.9198 170.137 33.6058 170.137 36.2918 170.137C40.0725 170.137 43.8533 170.137 47.6341 170.137C52.2557 170.137 56.8772 170.137 61.4989 170.137C66.7339 170.137 71.969 170.137 77.204 170.137C82.7467 170.137 88.2894 170.137 93.8322 170.137C99.4529 170.137 105.074 170.137 110.694 170.137C116.139 170.137 121.584 170.137 127.029 170.137C132.044 170.137 137.06 170.137 142.075 170.137C146.425 170.137 150.776 170.137 155.127 170.137C158.516 170.137 161.904 170.137 165.293 170.137C167.49 170.137 169.686 170.137 171.883 170.137C172.633 170.137 173.384 170.137 174.135 170.137C178.404 170.087 182.136 167.627 184.212 163.932C186.248 160.307 186.562 155.866 184.415 152.221ZM94.0937 37.3471C94.0897 37.3539 94.0862 37.3597 94.0824 37.3661C94.0826 37.3652 94.0831 37.3642 94.0833 37.3632C94.0844 37.3581 94.0909 37.3518 94.0937 37.3471ZM178.584 164.489C178.476 164.538 178.524 164.516 178.584 164.489V164.489ZM180.937 162.79C180.979 162.72 181.118 162.485 181.127 162.498C181.145 162.528 181.058 162.647 180.937 162.79ZM181.821 160.333C181.806 160.446 181.782 160.646 181.773 160.697C181.736 160.919 181.686 161.139 181.637 161.359C181.637 161.359 181.637 161.359 181.637 161.359C181.629 161.377 181.621 161.399 181.61 161.426C181.54 161.604 181.472 161.785 181.406 161.965C181.402 161.977 181.398 161.988 181.394 161.999C181.304 162.16 181.219 162.323 181.123 162.481C181.074 162.562 181.016 162.641 180.97 162.724C180.949 162.762 180.936 162.785 180.93 162.798C180.727 163.035 180.436 163.332 180.388 163.385C180.696 163.049 180.535 163.229 180.318 163.42C180.172 163.548 180.018 163.666 179.869 163.79C179.848 163.807 179.831 163.822 179.816 163.835C179.797 163.845 179.775 163.857 179.747 163.873C179.576 163.97 179.411 164.078 179.238 164.171C179.043 164.277 178.844 164.373 178.642 164.463C178.556 164.494 178.471 164.526 178.384 164.553C177.532 164.819 176.835 164.945 176.084 164.954C175.296 164.954 174.508 164.954 173.719 164.954C171.519 164.954 169.318 164.954 167.118 164.954C163.751 164.954 160.385 164.954 157.019 164.954C152.756 164.954 148.493 164.954 144.231 164.954C139.275 164.954 134.319 164.954 129.364 164.954C123.981 164.954 118.598 164.954 113.215 164.954C107.651 164.954 102.086 164.954 96.5224 164.954C91.024 164.954 85.5255 164.954 80.0271 164.954C74.8407 164.954 69.6543 164.954 64.4679 164.954C59.8401 164.954 55.2123 164.954 50.5846 164.954C46.7784 164.954 42.9721 164.954 39.166 164.954C36.3891 164.954 33.6122 164.954 30.8354 164.954C29.3555 164.954 27.8756 164.954 26.3957 164.954C25.9641 164.954 25.534 164.958 25.1029 164.922C23.4511 164.785 22.11 164.207 20.7626 163.127C20.3445 162.792 19.7301 162.074 19.3142 161.434C19.2096 161.273 19.1102 161.109 19.0161 160.942C18.9707 160.861 18.8013 160.534 18.8105 160.558C18.7451 160.414 18.5329 159.846 18.4422 159.537C18.3467 159.211 18.2692 158.879 18.2129 158.544C18.2174 158.545 18.1876 158.285 18.1815 158.192C18.1669 157.964 18.1617 157.736 18.1651 157.508C18.166 157.455 18.1793 157.245 18.185 157.131C18.2055 157.005 18.2441 156.74 18.2591 156.662C18.2913 156.493 18.3319 156.326 18.3726 156.16C18.2821 156.539 18.4099 156.072 18.4891 155.866C18.518 155.79 18.6652 155.487 18.6846 155.432C18.7383 155.339 18.7932 155.243 18.8125 155.21C18.8692 155.114 18.9282 155.019 18.9875 154.924C19.0003 154.904 19.0137 154.884 19.0265 154.863C19.2211 154.554 19.4201 154.247 19.617 153.939C20.6335 152.348 21.6501 150.756 22.6667 149.165C24.3869 146.472 26.107 143.779 27.8271 141.086C30.0848 137.552 32.3425 134.017 34.6001 130.483C37.2646 126.312 39.9291 122.141 42.5935 117.97C45.5011 113.418 48.4086 108.866 51.3161 104.315C54.3131 99.6229 57.31 94.9312 60.3069 90.2397C63.2394 85.6489 66.172 81.058 69.1045 76.4672C71.819 72.2178 74.5334 67.9683 77.2479 63.719C79.5904 60.0517 81.9331 56.3844 84.2756 52.7172C86.0852 49.8842 87.8948 47.0513 89.7044 44.2184C90.8459 42.4315 91.9873 40.6446 93.1287 38.8578C93.3976 38.4368 93.6701 38.0178 93.9356 37.5945C93.9507 37.5705 93.9737 37.5416 93.9972 37.511C93.8744 37.7231 94.1597 37.2638 94.301 37.0921C94.4017 36.9695 94.5483 36.8114 94.5423 36.8113C94.6372 36.721 94.7333 36.6319 94.8323 36.546C94.9866 36.4121 95.1478 36.2876 95.3084 36.1615C94.9392 36.4513 95.3917 36.1121 95.5441 36.0212C96.7591 35.2961 98.1095 34.9498 99.7068 35.0725C101.356 35.1993 102.702 35.7434 104.07 36.8307C104.685 37.3192 105.311 38.1542 105.817 38.9457C106.592 40.1592 107.367 41.3727 108.142 42.5862C109.667 44.9733 111.192 47.3605 112.717 49.7476C114.838 53.0679 116.959 56.3881 119.08 59.7083C121.629 63.6999 124.179 67.6913 126.729 71.6829C129.579 76.1455 132.43 80.6082 135.281 85.0709C138.267 89.7458 141.253 94.4206 144.239 99.0955C147.207 103.742 150.176 108.388 153.144 113.035C155.94 117.412 158.736 121.789 161.532 126.167C164.002 130.034 166.473 133.902 168.943 137.769C170.935 140.886 172.926 144.003 174.917 147.12C176.27 149.239 177.623 151.357 178.976 153.475C179.551 154.376 180.134 155.272 180.702 156.177C181.138 156.872 181.311 157.219 181.54 157.972C181.6 158.167 181.652 158.363 181.697 158.561C181.711 158.623 181.759 158.873 181.78 158.97C181.787 159.063 181.815 159.319 181.819 159.383C181.831 159.579 181.836 159.775 181.834 159.972C181.834 160.022 181.825 160.217 181.821 160.333Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M98.5821 122.507C99.019 122.759 99.6307 122.629 100.038 122.389C101.205 121.703 101.925 120.275 102.041 118.92C103.115 106.361 106.514 75.1051 106.514 68.3062C106.514 59.902 92.8134 60.6835 92.0664 71.3279C91.6887 76.7103 97.5083 119.581 97.8266 121.187C97.9188 121.652 98.1423 122.253 98.5821 122.507Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M101.841 133.945C101.826 133.94 101.812 133.934 101.797 133.929C98.2767 132.6 94.4012 134.976 93.9964 138.717C93.9765 138.901 93.9636 139.086 93.958 139.272C93.8552 142.712 96.4467 146.126 99.8464 146.664C103.245 147.201 106.896 144.494 107.099 141.059C107.285 137.909 104.789 135.072 101.841 133.945Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M161.729 131.662C161.873 131.367 162.082 130.81 161.71 130.584C161.365 130.375 160.901 130.836 160.768 131.107C156.804 139.201 152.84 147.295 148.877 155.389C147.759 157.67 146.642 159.952 145.525 162.233C145.38 162.528 145.171 163.085 145.543 163.311C145.888 163.52 146.352 163.059 146.485 162.788C150.449 154.694 154.413 146.6 158.377 138.506C159.494 136.225 160.611 133.943 161.729 131.662Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M144.786 152.64C144.441 152.43 143.977 152.891 143.844 153.163C142.363 156.187 140.882 159.21 139.402 162.234C139.257 162.528 139.048 163.085 139.42 163.311C139.765 163.521 140.229 163.06 140.362 162.788C141.843 159.764 143.323 156.741 144.804 153.717C144.948 153.423 145.158 152.866 144.786 152.64Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M136.792 156.459C136.447 156.25 135.983 156.711 135.85 156.982C134.993 158.733 134.136 160.483 133.279 162.233C133.134 162.528 132.925 163.085 133.297 163.311C133.642 163.52 134.106 163.06 134.239 162.788C135.096 161.037 135.953 159.287 136.81 157.537C136.955 157.242 137.164 156.685 136.792 156.459Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M129.1 159.663C128.755 159.454 128.291 159.915 128.158 160.186C127.824 160.869 127.49 161.551 127.155 162.234C127.011 162.528 126.802 163.086 127.174 163.311C127.519 163.521 127.983 163.06 128.116 162.788C128.45 162.106 128.784 161.423 129.118 160.741C129.263 160.447 129.472 159.889 129.1 159.663Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M165.835 137.946C165.979 137.652 166.188 137.094 165.816 136.868C165.471 136.659 165.007 137.12 164.874 137.392C161.72 143.832 158.566 150.273 155.412 156.713C154.511 158.553 153.609 160.393 152.708 162.233C152.564 162.528 152.355 163.085 152.726 163.311C153.071 163.52 153.535 163.06 153.669 162.788C156.823 156.347 159.977 149.907 163.131 143.466C164.032 141.626 164.933 139.786 165.835 137.946Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M169.923 143.153C169.578 142.943 169.114 143.404 168.98 143.676C165.951 149.862 162.921 156.048 159.892 162.234C159.748 162.528 159.538 163.086 159.91 163.311C160.255 163.521 160.719 163.06 160.852 162.788C163.882 156.602 166.911 150.416 169.941 144.23C170.085 143.936 170.294 143.378 169.923 143.153Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M174.332 148.821C173.987 148.611 173.523 149.072 173.39 149.344C171.286 153.64 169.182 157.937 167.077 162.234C166.933 162.528 166.724 163.086 167.095 163.311C167.44 163.521 167.905 163.06 168.038 162.788C170.142 158.492 172.246 154.195 174.351 149.898C174.495 149.604 174.704 149.046 174.332 148.821Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M178.197 155.597C177.852 155.387 177.388 155.848 177.255 156.12C176.257 158.158 175.259 160.196 174.261 162.233C174.117 162.528 173.907 163.085 174.279 163.311C174.624 163.52 175.088 163.06 175.221 162.788C176.219 160.75 177.217 158.712 178.215 156.674C178.36 156.38 178.569 155.823 178.197 155.597Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M97.1962 40.2135C97.3477 39.9803 97.4773 39.477 97.1807 39.2971C96.8678 39.1072 96.5194 39.5265 96.3794 39.7419C94.7034 42.3205 93.0556 44.9176 91.4179 47.5205C88.1743 52.6759 84.976 57.8633 81.9271 63.1367C80.4155 65.7509 78.9283 68.3855 77.5879 71.0925C77.4642 71.3423 77.2879 71.8174 77.6034 72.0088C77.8975 72.1874 78.2905 71.7947 78.4047 71.564C80.9657 66.3919 83.9726 61.4308 86.9671 56.5018C89.7369 51.9427 92.5713 47.4226 95.4474 42.9297C96.0279 42.0228 96.6094 41.1164 97.1962 40.2135Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M75.3224 76.1247C75.0193 75.9408 74.6477 76.3459 74.521 76.5695C74.1645 77.1991 73.808 77.8286 73.4515 78.4581C73.3144 78.7003 73.1605 79.1884 73.467 79.3744C73.77 79.5583 74.1416 79.1532 74.2684 78.9296C74.6248 78.3001 74.9814 77.6705 75.3378 77.0411C75.475 76.7988 75.6288 76.3107 75.3224 76.1247Z",fill:"var(--pae-shell-color-secondary)"})]});fl.displayName="WarningIcon";const sg="support@bluealba.com",ag="@bluealba/pae-shell-ui",hl=S("ErrorState",()=>{const{supportEmail:e=sg}=_u(ag),t=`mailto:${e}?Subject=Support`;return u.jsxs("div",{className:Vr.container,children:[u.jsx(fl,{}),u.jsx("div",{className:Vr.title,children:"Oops! Something went wrong"}),u.jsxs("div",{className:Vr.description,children:["If the error persists, ",u.jsx("a",{className:Vr.mailToText,href:t,children:"contact the administrator."})]})]})});hl.displayName="ErrorState";const Le={List:"List__h09XG",list:"List__h09XG",Item:"Item__YMy2i",item:"Item__YMy2i","List--primary":"List--primary__J2pbx",listPrimary:"List--primary__J2pbx","List--secondary":"List--secondary__gi1ao",listSecondary:"List--secondary__gi1ao","Item--selected":"Item--selected__yRWow",itemSelected:"Item--selected__yRWow",Title:"Title__RJmEW",title:"Title__RJmEW",Description:"Description__DGyX2",description:"Description__DGyX2",Actions:"Actions__UHP5l",actions:"Actions__UHP5l",Action:"Action__q-R1I",action:"Action__q-R1I","Item--disabled":"Item--disabled__Ke1u-",itemDisabled:"Item--disabled__Ke1u-","List--small":"List--small__ijoSR",listSmall:"List--small__ijoSR","List--medium":"List--medium__E1FEY",listMedium:"List--medium__E1FEY","List--large":"List--large__T8tfz",listLarge:"List--large__T8tfz",Icon:"Icon__dFr-L",icon:"Icon__dFr-L"},pl=z(({children:e,className:t,selected:n,disabled:r=!1,...o},i)=>{const s=j(Le.Item,{[Le["Item--selected"]]:n,[Le["Item--disabled"]]:r},t);return u.jsx("li",{ref:i,className:s,role:"listitem","aria-disabled":r,...o,children:e})});pl.displayName="Item";const ml=z(({children:e,className:t,...n},r)=>{const o=j(Le.Title,t);return u.jsx("h3",{ref:r,className:o,...n,children:e})});ml.displayName="Title";const gl=z(({children:e,className:t,...n},r)=>{const o=j(Le.Description,t);return u.jsx("p",{ref:r,className:o,...n,children:e})});gl.displayName="Description";const Ti=({className:e,...t})=>u.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:[u.jsx("path",{d:"M6 6.5C6.27614 6.5 6.5 6.27614 6.5 6C6.5 5.72386 6.27614 5.5 6 5.5C5.72386 5.5 5.5 5.72386 5.5 6C5.5 6.27614 5.72386 6.5 6 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M9.5 6.5C9.77614 6.5 10 6.27614 10 6C10 5.72386 9.77614 5.5 9.5 5.5C9.22386 5.5 9 5.72386 9 6C9 6.27614 9.22386 6.5 9.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M2.5 6.5C2.77614 6.5 3 6.27614 3 6C3 5.72386 2.77614 5.5 2.5 5.5C2.22386 5.5 2 5.72386 2 6C2 6.27614 2.22386 6.5 2.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"})]});Ti.displayName="HorizontalDots";const vl=z(({children:e,className:t,onClick:n,...r},o)=>{const i=so(null),[s,a]=L(!1),c=j(Le.Actions,t),l=()=>{const w=Kt["DropdownList--open"],f=Kt["DropdownList--closed"];document.querySelectorAll(`.${w}`).forEach(_=>{_!==i.current&&(_.classList.remove(w),_.classList.add(f))})},d=w=>{w.stopPropagation(),s?p():(a(!0),n==null||n(w))},p=()=>{a(!1)},h=w=>{w.key==="Escape"&&p()},m=w=>{i.current&&!i.current.contains(w.target)&&p()};return Q(()=>(s?(l(),document.addEventListener("keydown",h),document.addEventListener("click",m)):(document.removeEventListener("keydown",h),document.removeEventListener("click",m)),()=>{document.removeEventListener("keydown",h),document.removeEventListener("click",m)}),[s]),u.jsxs("div",{ref:o,className:c,onClick:d,role:"button",tabIndex:0,"data-testid":"actions",...r,children:[u.jsx(Ti,{}),u.jsx(Ho,{align:"left",ref:i,open:s,"data-testid":"actions-dropdown",role:"menu","aria-label":"Actions",children:e})]})});vl.displayName="Actions";const yl=z(({children:e,className:t,...n},r)=>{const o=j(Le.Action,t);return u.jsx("button",{ref:r,className:o,...n,children:e})});yl.displayName="Action";const bl=z(({children:e,className:t,...n},r)=>{const o=j(Le.Icon,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});bl.displayName="Icon";const Xe=S("List",z(({children:e,className:t,size:n="medium",variant:r,...o},i)=>{const s=j(Le.List,{[Le[`List--${n}`]]:n,[Le[`List--${r}`]]:r},t);return u.jsx("ul",{ref:i,className:s,role:"list",...o,children:e})}));Xe.displayName="List",Xe.Item=pl,Xe.Badges=fa,Xe.Badge=da,Xe.Title=ml,Xe.Description=gl,Xe.Actions=vl,Xe.Action=yl,Xe.Icon=bl;const Je={Navigation:"Navigation__uylxk",PaginationContent:"PaginationContent__UpLw0",PaginationEllipsis:"PaginationEllipsis__perWk",PaginationLink:"PaginationLink__GVUZj",Active:"Active__u1Ahy",Disabled:"Disabled__8WM0y",Prev:"Prev__wp4hc",Next:"Next__eVyL5"},wl=({className:e,...t})=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...t,children:[u.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M9 6l6 6l-6 6"})]});wl.displayName="ChevronRight";const _l=({className:e,...t})=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...t,children:[u.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M15 6l-6 6l6 6"})]});_l.displayName="ChevronLeft";const xl=S("Pagination",({className:e,...t})=>u.jsx("nav",{role:"navigation","aria-label":"pagination",className:j(Je.Navigation,e),...t}));xl.displayName="Pagination";const Cl=S("PaginationContent",g.forwardRef(({className:e,...t},n)=>u.jsx("ul",{ref:n,className:j(Je.PaginationContent,e),...t})));Cl.displayName="PaginationContent";const Gr=S("PaginationItem",g.forwardRef(({className:e,...t},n)=>u.jsx("li",{ref:n,className:e,...t})));Gr.displayName="PaginationItem";const qr=S("PaginationLink",({className:e,isActive:t,...n})=>u.jsx("a",{"aria-current":t?"page":void 0,className:j(Je.PaginationLink,t&&Je.Active,e),...n}));qr.displayName="PaginationLink";const El=S("PaginationPrevious",({className:e,disabled:t,...n})=>u.jsxs(qr,{"aria-label":"Go to previous page",className:j(t&&Je.Disabled,Je.Prev,e),...n,children:[u.jsx(_l,{}),u.jsx("span",{children:"Previous"})]}));El.displayName="PaginationPrevious";const Sl=S("PaginationNext",({className:e,disabled:t,...n})=>u.jsxs(qr,{"aria-label":"Go to next page",className:j(t&&Je.Disabled,Je.Next,e),...n,children:[u.jsx("span",{children:"Next"}),u.jsx(wl,{})]}));Sl.displayName="PaginationNext";const Tl=S("PaginationEllipsis",({className:e,...t})=>u.jsx("span",{"aria-hidden":!0,className:j(Je.PaginationEllipsis,e),...t,children:u.jsx(Ti,{})}));Tl.displayName="PaginationEllipsis";function cg(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Al={exports:{}};(function(e,t){(function(n,r){typeof cg=="function"?e.exports=r():n.pluralize=r()})(pu,function(){var n=[],r=[],o={},i={},s={};function a(f){return typeof f=="string"?new RegExp("^"+f+"$","i"):f}function c(f,v){return f===v?v:f===f.toLowerCase()?v.toLowerCase():f===f.toUpperCase()?v.toUpperCase():f[0]===f[0].toUpperCase()?v.charAt(0).toUpperCase()+v.substr(1).toLowerCase():v.toLowerCase()}function l(f,v){return f.replace(/\$(\d{1,2})/g,function(_,x){return v[x]||""})}function d(f,v){return f.replace(v[0],function(_,x){var C=l(v[1],arguments);return c(_===""?f[x-1]:_,C)})}function p(f,v,_){if(!f.length||o.hasOwnProperty(f))return v;for(var x=_.length;x--;){var C=_[x];if(C[0].test(v))return d(v,C)}return v}function h(f,v,_){return function(x){var C=x.toLowerCase();return v.hasOwnProperty(C)?c(x,C):f.hasOwnProperty(C)?c(x,f[C]):p(C,x,_)}}function m(f,v,_,x){return function(C){var E=C.toLowerCase();return v.hasOwnProperty(E)?!0:f.hasOwnProperty(E)?!1:p(E,E,_)===E}}function w(f,v,_){var x=v===1?w.singular(f):w.plural(f);return(_?v+" ":"")+x}return w.plural=h(s,i,n),w.isPlural=m(s,i,n),w.singular=h(i,s,r),w.isSingular=m(i,s,r),w.addPluralRule=function(f,v){n.push([a(f),v])},w.addSingularRule=function(f,v){r.push([a(f),v])},w.addUncountableRule=function(f){if(typeof f=="string"){o[f.toLowerCase()]=!0;return}w.addPluralRule(f,"$0"),w.addSingularRule(f,"$0")},w.addIrregularRule=function(f,v){v=v.toLowerCase(),f=f.toLowerCase(),s[f]=v,i[v]=f},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(f){return w.addIrregularRule(f[0],f[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(f){return w.addPluralRule(f[0],f[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(f){return w.addSingularRule(f[0],f[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(w.addUncountableRule),w})})(Al);var lg=Al.exports;const ug=mu(lg),Pl=S("PluralizeCounter",({count:e,singularText:t,children:n=(r,o)=>`${r} ${o}`})=>u.jsx(u.Fragment,{children:n(e,ug(t,e))}));Pl.displayName="PluralizeCounter";const be={TableContainer:"TableContainer__osh6Z",TableHeader:"TableHeader__sYa-8",Table:"Table__2cIs3",selectable:"selectable__WsGg1",Cell:"Cell__ZEv-K",Right:"Right__YoM1V",Center:"Center__CF3tr",Sortable:"Sortable__JIV1V",SortIcon:"SortIcon__f0bBy",Active:"Active__rJjxB",Rotate:"Rotate__7cwTK",Pagination:"Pagination__sbqMP",PointerNone:"PointerNone__kQdQS"},Rl={EmptyStateContainer:"EmptyStateContainer__Q9FEb",Message:"Message__IHK6M"},Ol=({size:e=64})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsxs("g",{clipPath:"url(#clip-path)",children:[u.jsx("mask",{id:"mask0_1070_8032",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"64",height:"64",children:u.jsx("path",{d:"M64 0H0V64H64V0Z",fill:"white"})}),u.jsx("g",{mask:"url(#mask0_1070_8032)",children:u.jsx("path",{d:"M40 10.6673H13.3333V53.334H50.6667V21.334H40V10.6673ZM8 7.97932C8 6.51798 9.192 5.33398 10.664 5.33398H42.6667L56 18.6673V55.982C56.0024 56.3321 55.936 56.6793 55.8043 57.0039C55.6725 57.3284 55.4781 57.6239 55.2323 57.8732C54.9864 58.1225 54.6936 58.3209 54.3712 58.4572C54.0485 58.5935 53.7021 58.6649 53.352 58.6673H10.648C9.94768 58.6625 9.27739 58.3823 8.78192 57.8873C8.28645 57.3924 8.00557 56.7223 8 56.022V7.97932ZM36.0773 38.5233C33.8408 39.83 31.2056 40.2788 28.6627 39.786C26.1197 39.2929 23.8428 37.8921 22.2566 35.8444C20.6704 33.7966 19.883 31.2417 20.0414 28.6564C20.1998 26.071 21.293 23.6315 23.1173 21.7927C24.9532 19.9571 27.3955 18.8541 29.9864 18.6904C32.5773 18.5267 35.1389 19.3134 37.1912 20.9032C39.2435 22.493 40.6456 24.7767 41.1347 27.3263C41.6237 29.8759 41.1664 32.5164 39.848 34.7527L45.7413 40.646L41.9707 44.4193L36.0773 38.5233ZM34.4293 33.1047C34.9387 32.6126 35.3451 32.0241 35.6245 31.3735C35.904 30.7228 36.0512 30.0231 36.0573 29.3148C36.0635 28.6065 35.9285 27.9044 35.6603 27.2489C35.3923 26.5935 34.9963 25.998 34.4955 25.4972C33.9947 24.9964 33.3992 24.6004 32.7437 24.3323C32.0883 24.0641 31.3861 23.9292 30.6779 23.9353C29.9696 23.9415 29.2699 24.0886 28.6192 24.3681C27.9685 24.6476 27.38 25.0539 26.888 25.5633C25.9165 26.5692 25.3789 27.9164 25.3911 29.3148C25.4032 30.7132 25.9641 32.0508 26.9531 33.0396C27.9419 34.0287 29.2795 34.5895 30.6779 34.6015C32.0763 34.6137 33.4235 34.0761 34.4293 33.1047Z",fill:"currentColor"})})]}),u.jsx("defs",{children:u.jsx("clipPath",{id:"clip-path",children:u.jsx("rect",{width:"64",height:"64",fill:"white"})})})]});Ol.displayName="EmptyStateIcon";const kl=S("EmptyState",({message:e="No results found"})=>u.jsxs("div",{className:j(Rl.EmptyStateContainer),children:[u.jsx(Ol,{}),u.jsx("p",{className:Rl.Message,children:e})]}));kl.displayName="EmptyState";const dg=(e,t,n=1)=>{if(e<=1)return["1"];const r=[],o=i=>{(r.length===0||r[r.length-1]!==i)&&r.push(i)};o(1),t-n>2&&o("...");for(let i=Math.max(2,t-n);i<=Math.min(e-1,t+n);i++)o(i);return t+n<e-1&&o("..."),o(e),r.map(String)},jl=({page:e,totalPages:t,onPageChange:n})=>{const r=e===1,o=e===t;return u.jsx(xl,{className:be.Pagination,children:u.jsxs(Cl,{children:[u.jsx(Gr,{children:u.jsx(El,{className:j({[be.PointerNone]:r}),onClick:()=>!r&&n(e-1)})}),dg(t,e).map((i,s)=>u.jsxs(Gr,{children:[i==="..."&&u.jsx(Tl,{}),i!=="..."&&u.jsx(qr,{isActive:+i===e,onClick:()=>+i!==e&&n(+i),children:i})]},s)),u.jsx(Gr,{children:u.jsx(Sl,{className:j({[be.PointerNone]:o}),onClick:()=>!o&&n(e+1)})})]})})};jl.displayName="TablePagination";const Dl=({className:e,...t})=>u.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:u.jsx("path",{d:"M6 2.5V9.5M6 9.5L9.5 6M6 9.5L2.5 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});Dl.displayName="ArrowDown";const fg=S("Table",({columns:e,data:t,isLoading:n,totalCount:r=0,headerLabel:o,sort:i,loadingConfig:s,pagination:a,onRowClick:c})=>{const{count:l=5,height:d=40}=s||{},p=v=>v.sortName??v.name,h=v=>j({[be.Cell]:!0,[be.Center]:v.align==="center",[be.Right]:v.align==="right",[be.Sortable]:v.isSortable}),m=v=>{if(!i)return"";const _=p(v);return j({[be.SortIcon]:!0,[be.Active]:v.isSortable&&i.field===_,[be.Rotate]:i.field===_&&i.direction==="asc"})},w=v=>()=>c==null?void 0:c(v),f=v=>()=>{if(!i||!v.isSortable)return;const{field:_,direction:x,onSort:C}=i,E=p(v);_===E?C(E,x==="asc"?"desc":"asc"):C(E,"asc")};return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:be.TableContainer,children:[o&&u.jsx("div",{className:be.TableHeader,children:u.jsx(Pl,{count:r,singularText:o,children:(v,_)=>`${v} ${_}`})}),u.jsxs("table",{className:be.Table,children:[u.jsx("thead",{children:u.jsx("tr",{children:e.map(v=>u.jsx("th",{children:u.jsxs("div",{className:h(v),onClick:f(v),children:[u.jsx("span",{children:v.displayName}),v.isSortable&&u.jsx(Dl,{className:m(v)})]})},v.name))})}),u.jsx("tbody",{children:u.jsxs(Ot,{children:[u.jsx(Ot.When,{condition:n,children:[...Array(l).keys()].map(v=>u.jsx("tr",{children:u.jsx("td",{colSpan:e.length,style:{padding:4},children:u.jsx(Vo,{height:d})})},v))}),u.jsx(Ot.When,{condition:!t.length,children:u.jsx("tr",{children:u.jsx("td",{colSpan:e.length,children:u.jsx(kl,{})})})}),u.jsx(Ot.Else,{children:t.map((v,_)=>u.jsx("tr",{className:c&&be.selectable,onClick:w(v),children:e.map(x=>u.jsx("td",{style:x.width?{width:x.width}:{},children:u.jsx("div",{className:h(x),children:x.cellRenderer?x.cellRenderer(v):x.valueGetter?x.valueGetter(v):v[x.name]})},`${x.name}-${_}`))},_))})]})})]})]}),a&&u.jsx(jl,{...a})]})});fg.displayName="Table";const Qr={alert:"alert__LblpE",default:"default__mgO6A",destructive:"destructive__bLNSM",alertTitle:"alertTitle__gblKf",alertDescription:"alertDescription__BuVHV"},Ai=S("Alert",({className:e,variant:t="default",children:n,...r})=>u.jsx("div",{"data-slot":"alert",role:"alert",className:j(Qr.alert,Qr[t],e),...r,children:n})),hg=g.forwardRef(({children:e,className:t,...n},r)=>u.jsx("div",{ref:r,"data-slot":"alert-title",className:j(Qr.alertTitle,t),...n,children:e})),pg=g.forwardRef(({children:e,className:t,...n},r)=>u.jsx("div",{ref:r,"data-slot":"alert-description",className:j(Qr.alertDescription,t),...n,children:e}));Ai.displayName="Alert",Ai.Title=hg,Ai.Description=pg;function Ll(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Yr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ll(Object(n),!0).forEach(function(r){mg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ll(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Il(e){return(Il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function mg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pi(e){return(Pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function Nl(e,t){var n;if(typeof(n=t.domElement?function(){return t.domElement}:t.domElementGetter?t.domElementGetter:e.domElementGetter?e.domElementGetter:function(r){var o=r.appName||r.name;if(!o)throw Error("single-spa's dom-element-getter-helpers was not given an application name as a prop, so it can't make a unique dom element container for the react application");var i="single-spa-application:".concat(o);return function(){var s=document.getElementById(i);return s||((s=document.createElement("div")).id=i,document.body.appendChild(s)),s}}(t))!="function")throw Error("single-spa's dom-element-getter-helpers was given an invalid domElementGetter for application or parcel '".concat(t.name,"'. Expected a function, received ").concat(Pi(n)));return function(){var r=n(t);if(!(r instanceof HTMLElement))throw Error("single-spa's dom-element-getter-helpers: domElementGetter returned an invalid dom element for application or parcel '".concat(t.name,"'. Expected HTMLElement, received ").concat(Pi(r)));return r}}var Fn=null;try{Fn=require("react").createContext()}catch{}var gg={React:null,ReactDOM:null,ReactDOMClient:null,rootComponent:null,loadRootComponent:null,errorBoundary:null,errorBoundaryClass:null,domElementGetter:null,parcelCanUpdate:!0,suppressComponentDidCatchWarning:!1,domElements:{},renderResults:{},updateResolves:{},unmountResolves:{}};function vg(e){if(Il(e)!=="object")throw new Error("single-spa-react requires a configuration object");var t,n=Yr(Yr({},gg),e);if(!n.React)throw new Error("single-spa-react must be passed opts.React");if(!n.ReactDOM&&!n.ReactDOMClient)throw new Error("single-spa-react must be passed opts.ReactDOM or opts.ReactDOMClient");if(n.renderType||((t=n.ReactDOMClient)!==null&&t!==void 0&&t.createRoot?n.renderType="createRoot":n.renderType="render"),!n.rootComponent&&!n.loadRootComponent)throw new Error("single-spa-react must be passed opts.rootComponent or opts.loadRootComponent");if(n.errorBoundary&&typeof n.errorBoundary!="function")throw Error("The errorBoundary opt for single-spa-react must either be omitted or be a function that returns React elements");!Fn&&n.React.createContext&&(Fn=n.React.createContext()),n.SingleSpaRoot=function(o){function i(s){i.displayName="SingleSpaRoot(".concat(s.name,")")}return i.prototype=Object.create(o.React.Component.prototype),i.prototype.componentDidMount=function(){setTimeout(this.props.mountFinished)},i.prototype.componentWillUnmount=function(){setTimeout(this.props.unmountFinished)},i.prototype.render=function(){return setTimeout(this.props.updateFinished),this.props.children},i}(n);var r={bootstrap:yg.bind(null,n),mount:bg.bind(null,n),unmount:wg.bind(null,n)};return n.parcelCanUpdate&&(r.update=_g.bind(null,n)),r}function yg(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then(function(n){e.rootComponent=n})}function bg(e,t){return new Promise(function(n,r){e.suppressComponentDidCatchWarning||!function(a){if(!(a&&typeof a.version=="string"&&a.version.indexOf(".")>=0))return!1;var c=a.version.slice(0,a.version.indexOf("."));try{return Number(c)>=16}catch{return!1}}(e.React)||e.errorBoundary||e.errorBoundaryClass||(e.rootComponent.prototype?e.rootComponent.prototype.componentDidCatch||console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire single-spa application.")):console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to singleSpaReact(opts).")));var o=$l(e,t,function(){n(this)}),i=Nl(e,t)(),s=function(a){var c=a.reactDom,l=a.renderType,d=a.elementToRender,p=a.domElement,h=c[l];if(typeof h!="function")throw new Error('renderType "'.concat(l,'" did not return a function.'));switch(l){case"createRoot":case"unstable_createRoot":case"createBlockingRoot":case"unstable_createBlockingRoot":var m=h(p);return m.render(d),m;case"hydrateRoot":return h(p,d);case"hydrate":default:return h(d,p),null}}({elementToRender:o,domElement:i,reactDom:Ri(e),renderType:xg(e)});e.domElements[t.name]=i,e.renderResults[t.name]=s})}function wg(e,t){return new Promise(function(n){e.unmountResolves[t.name]=n;var r=e.renderResults[t.name];r&&r.unmount?r.unmount():Ri(e).unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]})}function _g(e,t){return new Promise(function(n){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(n);var r=$l(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(r);else{var i=Nl(e,t)();Ri(e).render(r,i)}})}function Ri(e){return e.ReactDOMClient||e.ReactDOM}function xg(e){return typeof e.renderType=="function"?e.renderType():e.renderType}function $l(e,t,n){var r=e.React.createElement(e.rootComponent,t),o=Fn?e.React.createElement(Fn.Provider,{value:t},r):r;return(e.errorBoundary||t.errorBoundary||e.errorBoundaryClass||t.errorBoundaryClass)&&(e.errorBoundaryClass=e.errorBoundaryClass||t.errorBoundaryClass||function(i,s){function a(c){i.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},a.displayName="SingleSpaReactErrorBoundary(".concat(c.name,")")}return a.prototype=Object.create(i.React.Component.prototype),a.prototype.render=function(){return this.state.caughtError?(i.errorBoundary||s.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},a.prototype.componentDidCatch=function(c,l){this.setState({caughtError:c,caughtErrorInfo:l})},a}(e,t),o=e.React.createElement(e.errorBoundaryClass,t,o)),o=e.React.createElement(e.SingleSpaRoot,Yr(Yr({},t),{},{mountFinished:n,updateFinished:function(){e.updateResolves[t.name]&&(e.updateResolves[t.name].forEach(function(i){return i()}),delete e.updateResolves[t.name])},unmountFinished:function(){e.unmountResolves[t.name]&&(e.unmountResolves[t.name](),delete e.unmountResolves[t.name])}}),o)}const Cg=e=>{const t=new _f;return function(r){if(!r)throw new Error("Microfrontend did not receive any properties !!");const o=os(r.module.name);return u.jsx(ns,{module:o,children:u.jsxs(Tf,{client:t,children:[u.jsx(e,{...r}),u.jsx(of,{position:"top-right",reverseOrder:!0})]})})}},ib=S("initializeMicroFrontend",({rootComponent:e,...t})=>vg({errorBoundary(n){return console.error(n),u.jsx(hl,{})},...t,rootComponent:Cg(e)})),sb=S("setupTestEnvironment",e=>{const t={authUser:{id:"testuser",username:"testuser",displayName:"Test User",applications:[]},catalog:[],authentication:{passwordMethodEnabled:!0,registerEnabled:!0,invitationsEnabled:!0,resetPasswordExpiration:3e4,passwordConstraints:{lowerCaseRequired:!1,upperCaseRequired:!1,symbolRequired:!1,digitRequired:!1,minLength:0,maxLength:8},sessionExpiration:864e5,jwtSecret:"",sessionIncludeOrigUser:!1,impersonationMode:"cookie",canImpersonateNonExistentUsers:!1,providers:[]},platformVersion:"0.0.0"};Object.defineProperty(window,An,{value:e?$u(t,e):t})}),Kr=S("FeatureFlagsContext",Qn({flags:new Map,variants:new Map,isLoading:!1,error:null,checkFlag:()=>!1,getVariant:()=>null,refresh:async()=>{}})),Eg=S("FeatureFlagsProvider",({gatewayUrl:e="",prefetchFlags:t=[],refreshInterval:n,children:r})=>{const[o,i]=L(new Map),[s,a]=L(new Map),[c,l]=L(!1),[d,p]=L(null),h=ee(async _=>{if(_.length!==0){l(!0),p(null);try{const x=`${e}/_/feature-flags/evaluate`,C=await fetch(x,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({flagNames:_}),credentials:"include"});if(!C.ok)throw new Error(`Failed to fetch feature flags: ${C.status} ${C.statusText}`);const E=await C.json(),T=new Map,R=new Map;E.flags.forEach(A=>{T.set(A.flagName,A.enabled),A.variant!==void 0&&R.set(A.flagName,{variant:A.variant.name||null,payload:A.variant.payload})}),i(T),a(R)}catch(x){const C=x instanceof Error?x:new Error("Unknown error fetching feature flags");p(C),console.error("Error fetching feature flags:",C)}finally{l(!1)}}},[e]),m=ee(async()=>{t.length>0&&await h(t)},[t,h]);Q(()=>{t.length>0&&h(t)},[t,h]),Q(()=>{if(n&&n>0&&t.length>0){const _=setInterval(()=>{h(t)},n);return()=>{clearInterval(_)}}},[n,t,h]);const w=ee((_,x=!1)=>o.get(_)??x,[o]),f=ee(_=>s.get(_)??null,[s]),v=$e(()=>({flags:o,variants:s,isLoading:c,error:d,checkFlag:w,getVariant:f,refresh:m}),[o,s,c,d,w,f,m]);return u.jsx(Kr.Provider,{value:v,children:r})});Eg.displayName="FeatureFlagsProvider";function Ml(e,t=!1,n=""){const r=Qt(Kr),[o,i]=L(t),[s,a]=L(!1);if(Q(()=>{const l=r.checkFlag(e,null);if(l!=null){i(l),a(!0);return}let d=!0;return(async()=>{try{const h=`${n}/_/feature-flags/${encodeURIComponent(e)}`,m=await fetch(h,{method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"});if(!m.ok){console.warn(`Failed to fetch feature flag '${e}': ${m.status} ${m.statusText}`),d&&(i(t),a(!0));return}const w=await m.json();if(d){const f=typeof w.value=="boolean"?w.value:t;i(f),a(!0)}}catch(h){console.error(`Error fetching feature flag '${e}':`,h),d&&(i(t),a(!0))}})(),()=>{d=!1}},[e,t,n,r]),!s&&r.flags.size===0)return t;const c=r.checkFlag(e,null);return c??o}function Sg(){const e=Qt(Kr);if(!e)throw new Error("useFeatureFlags must be used within a FeatureFlagsProvider. Wrap your component tree with <FeatureFlagsProvider> to use this hook.");return e}function Tg(e,t=""){const n=Qt(Kr),[r,o]=L(null),[i,s]=L(void 0),[a,c]=L(!0);Q(()=>{const d=n.getVariant(e);if(d!==null){o(d.variant),s(d.payload),c(!1);return}let p=!0;return(async()=>{c(!0);try{const m=`${t}/_/feature-flags/${encodeURIComponent(e)}`,w=await fetch(m,{method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"});if(!w.ok){console.warn(`Failed to fetch variant for flag '${e}': ${w.status} ${w.statusText}`),p&&(o(null),s(void 0),c(!1));return}const f=await w.json();if(p){const v=typeof f.value=="string"?f.value:(f.value===null||f.value===void 0,null);o(v),s(void 0),c(!1)}}catch(m){console.error(`Error fetching variant for flag '${e}':`,m),p&&(o(null),s(void 0),c(!1))}})(),()=>{p=!1}},[e,t,n]);const l=n.getVariant(e);return l!==null?{variant:l.variant,payload:l.payload,isLoading:!1}:{variant:r,payload:i,isLoading:a}}const Ag=S("FeatureFlagGuard",({flag:e,children:t,fallback:n=null,invert:r=!1,gatewayUrl:o=""})=>{const i=Ml(e,!1,o);return(r?!i:i)?u.jsx(u.Fragment,{children:t}):u.jsx(u.Fragment,{children:n})});Ag.displayName="FeatureFlagGuard"}}});