@bluealba/pae-ui-react-core 4.6.0 → 4.7.0-develop-417

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 vd=E=>{throw TypeError(E)};var ui=(E,be,W)=>be.has(E)||vd("Cannot "+W);var _=(E,be,W)=>(ui(E,be,"read from private field"),W?W.call(E):be.get(E)),N=(E,be,W)=>be.has(E)?vd("Cannot add the same private member more than once"):be instanceof WeakSet?be.add(E):be.set(E,W),O=(E,be,W,X)=>(ui(E,be,"write to private field"),X?X.call(E,W):be.set(E,W),W),V=(E,be,W)=>(ui(E,be,"access private method"),W);var Ao=(E,be,W,X)=>({set _(fe){O(E,be,fe,W)},get _(){return _(E,be,X)}});System.register("@bluealba/pae-ui-react-core",["react","single-spa","react-dom"],function(E,be){"use strict";var W,X,fe,Ue,mr,gr,ke,d,q,bi,We,wi,Io,_i,vr,Gn,xi;return{setters:[pe=>{W=pe.useState,X=pe.useEffect,fe=pe.useCallback,Ue=pe.default,mr=pe.createContext,gr=pe.useContext,ke=pe.useMemo,d=pe,q=pe.forwardRef,bi=pe.useLayoutEffect,We=pe.useRef,wi=pe.Children,Io=pe.isValidElement},pe=>{_i=pe.navigateToUrl,vr=pe.default},pe=>{Gn=pe,xi=pe.default}],execute:function(){var ln,kt,In,Qu,jn,Lt,kn,Yu,cn,Zu,Ln,Dn,Me,un,xe,ur,dn,Qe,xt,Xu,it,Ju,at,Ee,fn,lt,qt,ed,yt,Ye,dr,td,he,Dt,Nt,Nn,Mn,Mt,$n,Fn,nd,Oe,Q,fr,Te,pn,Bn,$t,Ft,pr,Un,Wn,hn,mn,Bt,Hn,ne,hr,di,fi,pi,hi,mi,gi,vi,yd,rd,Ut,Wt,Ie,bt,wt,Oo,yi,od;var pe=document.createElement("style");pe.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)}.container__zBqbk{display:flex;align-items:center;justify-content:center;gap:16px;width:100%;cursor:pointer;height:var(--pae-shell-apps-menu-item-size);padding:8px calc((var(--pae-shell-navbar--width) - var(--pae-shell-apps-menu-icon-size)) / 2)}.container__zBqbk.expanded__EbsIr{justify-content:flex-start}.container__zBqbk .label__cdMnm{flex:1;text-align:left;font-size:var(--pae-shell-apps-menu-item-font-size);font-weight:var(--pae-shell-apps-menu-item-font-weight);line-height:21px;color:var(--pae-shell-apps-menu-selected-item-text-color)}@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:1px solid var(--admin-ui-badge-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}.Container__xcHXp{display:flex;flex-direction:column;gap:8px}.Label__0cZB9{font-size:1em;font-weight:600;color:var(--platform-input-color)}.HelperText__m1nA9{font-size:.875em;color:var(--platform-text-secondary-color);margin-top:-4px}.Trigger__AyFUd{display:flex;align-items:center;justify-content:space-between;width:100%;padding:10px;background-color:var(--platform-input-background-color);border:1px solid var(--platform-input-border-color);border-radius:8px;font-size:1em;color:var(--platform-input-color);cursor:pointer;transition:all .2s}.Trigger__AyFUd:hover{border-color:var(--platform-input-focus-border-color)}.Trigger__AyFUd:focus{outline:none;border-color:var(--platform-input-focus-border-color)}.Trigger__AyFUd[data-disabled]{opacity:.5;cursor:not-allowed}.Trigger__AyFUd[data-disabled]:hover{border-color:var(--platform-input-border-color)}.Trigger__AyFUd[data-placeholder]{color:var(--platform-text-secondary-color)}.TriggerIcon__aygFG{display:flex;align-items:center;color:var(--platform-text-primary-color)}.Content__llztG{overflow:hidden;background-color:var(--platform-input-background-color);border:1px solid var(--platform-input-border-color);border-radius:8px;box-shadow:0 4px 16px #0000001a;z-index:99999;min-width:var(--radix-select-trigger-width)}.Viewport__COtSL{padding:4px}.Item__XN1-2{display:flex;align-items:center;justify-content:flex-start;gap:8px;padding:10px 12px;font-size:1em;border-radius:4px;cursor:pointer;-webkit-user-select:none;user-select:none;outline:none;position:relative;color:var(--platform-input-color)}.Item__XN1-2[data-highlighted]{background-color:#0000000d}.Item__XN1-2[data-disabled]{opacity:.5;pointer-events:none}.Item__XN1-2[data-state=checked]{font-weight:500}.ItemIndicatorContainer__EQH-X{display:flex;align-items:center;justify-content:center;width:16px;height:16px;flex-shrink:0}.ItemIndicator__bySSc{display:flex;align-items:center;justify-content:center;color:var(--platform-input-color)}.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)}.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)}}.truncatedText__Y-jSd{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}.overflowing__o8TC-{cursor:default}.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)}}@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)}.Description__ALT2w{font-size:12px;color:var(--platform-text-primary-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{overflow-x:auto;overflow-y:hidden}.Table__2cIs3 table{border-collapse:collapse;width:100%;min-width:max-content}.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}.container__LbyGQ{display:flex;align-items:center}.avatarWrapper__HCQIZ{position:relative;display:inline-block}.avatar__E453a{border-radius:9999px;display:flex;align-items:center;justify-content:center;font-weight:600;border-width:1px;color:var(--platform-color-white);border-color:var(--platform-lines)}.overflowWrapper__ETnPO{position:relative;display:inline-block;cursor:default}.overflowBadge__igBKT{border-radius:9999px;display:flex;align-items:center;justify-content:center;color:var(--platform-color-white);font-weight:600;border-width:1px;border-color:var(--platform-lines);background-color:var(--platform-color-primary)}
2
- `,document.head.appendChild(pe),E({generateUserColor:qu,logout:jd,useAppStatus:as,useDynamicFonts:Fi,useRoom:Yy});const w0=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"}}),qn="__PAE_GLOBAL_STATE__",Ci="__PAE_REACTIVE_GLOBAL_STATE__",Si="__PAE_EXTENSIONS_POINTS_REGISTRY__",jo="__PAE_CUSTOMIZATIONS_LOADING_STATE_KEY__",bd="/auth/logout",wd=(e,t)=>{const[n,r]=W(t);return X(()=>{const o=e.subscribe(s=>{r(s)});return()=>{o.unsubscribe()}},[r]),n},_d=(e,t,n)=>n.map((r,o)=>o===e?t(r):r),xd=(e,t,n)=>_d(n.findIndex(e),t,n),ko=(e,t)=>typeof e=="function"?e(t):e,Ei=(e,t)=>{const n=wd(e,t),r=fe(o=>{e.next(ko(o,n))},[n]);return[n,r]},yr=E("usePAEState",()=>Ei(window[Ci],window[qn])),Kn=E("useCatalog",()=>yr()[0].catalog),_0=E("useMutableCatalog",()=>{const e=Kn(),t=fe(r=>{window[Ci].next({...window[qn],catalog:ko(r,e)})},[e]),n=fe((r,o)=>{t(s=>xd(i=>i.name===r,i=>{var a;return{...i,ui:{...i.ui,customProps:ko(o,((a=i.ui)==null?void 0:a.customProps)??{})}}},s))},[t]);return[e,t,n]}),Cd=E("useLocation",()=>{const[e,t]=W(document.location.pathname);return X(()=>{const n=()=>{t(window.location.pathname)};return window.addEventListener("popstate",n),()=>{window.removeEventListener("popstate",n)}},[t]),e});var Sd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ed(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ti={exports:{}},Qn={},Ri;function Td(){if(Ri)return Qn;Ri=1;/**
1
+ globalThis.__PAE_UI_CORE_CSS__ = ".container__zBqbk{display:flex;align-items:center;justify-content:center;gap:16px;width:100%;cursor:pointer;height:var(--pae-shell-apps-menu-item-size);padding:8px calc((var(--pae-shell-navbar--width) - var(--pae-shell-apps-menu-icon-size)) / 2)}.container__zBqbk.expanded__EbsIr{justify-content:flex-start}.container__zBqbk .label__cdMnm{flex:1;text-align:left;font-size:var(--pae-shell-apps-menu-item-font-size);font-weight:var(--pae-shell-apps-menu-item-font-weight);line-height:21px;color:var(--pae-shell-apps-menu-selected-item-text-color)}@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:1px solid var(--admin-ui-badge-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{box-sizing:border-box;margin:0;font-family:inherit;line-height:inherit;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{box-sizing:border-box;width:100%;position:relative}.Select__giqpe select{box-sizing:border-box;margin:0;font-family:inherit;line-height:inherit;text-transform:none;-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}.Container__xcHXp{display:flex;flex-direction:column;gap:8px}.Label__0cZB9{font-size:1em;font-weight:600;color:var(--platform-input-color)}.HelperText__m1nA9{font-size:.875em;color:var(--platform-text-secondary-color);margin-top:-4px}.Trigger__AyFUd{box-sizing:border-box;margin:0;font-family:inherit;line-height:inherit;text-transform:none;text-align:left;display:flex;align-items:center;justify-content:space-between;width:100%;padding:10px;background-color:var(--platform-input-background-color);border:1px solid var(--platform-input-border-color);border-radius:8px;font-size:1em;color:var(--platform-input-color);cursor:pointer;transition:all .2s}.Trigger__AyFUd:hover{border-color:var(--platform-input-focus-border-color)}.Trigger__AyFUd:focus{outline:none;border-color:var(--platform-input-focus-border-color)}.Trigger__AyFUd[data-disabled]{opacity:.5;cursor:not-allowed}.Trigger__AyFUd[data-disabled]:hover{border-color:var(--platform-input-border-color)}.Trigger__AyFUd[data-placeholder]{color:var(--platform-text-secondary-color)}.TriggerIcon__aygFG{display:flex;align-items:center;color:var(--platform-text-primary-color)}.Content__llztG{overflow:hidden;background-color:var(--platform-input-background-color);border:1px solid var(--platform-input-border-color);border-radius:8px;box-shadow:0 4px 16px #0000001a;z-index:99999;min-width:var(--radix-select-trigger-width)}.Viewport__COtSL{padding:4px}.Item__XN1-2{box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;gap:8px;padding:10px 12px;font-size:1em;border-radius:4px;cursor:pointer;-webkit-user-select:none;user-select:none;outline:none;position:relative;color:var(--platform-input-color)}.Item__XN1-2[data-highlighted]{background-color:#0000000d}.Item__XN1-2[data-disabled]{opacity:.5;pointer-events:none}.Item__XN1-2[data-state=checked]{font-weight:500}.ItemIndicatorContainer__EQH-X{display:flex;align-items:center;justify-content:center;width:16px;height:16px;flex-shrink:0}.ItemIndicator__bySSc{display:flex;align-items:center;justify-content:center;color:var(--platform-input-color)}.TextArea__pa-A0{box-sizing:border-box;margin:0;font-family:inherit;font-size:1em;line-height:inherit;resize:vertical;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)}.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)}}.truncatedText__Y-jSd{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}.overflowing__o8TC-{cursor:default}.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{box-sizing:border-box;margin:0;font-family:inherit;text-transform:none;-moz-appearance:none;appearance:none;-webkit-appearance:none;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)}}@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{box-sizing:border-box;margin:0;-moz-appearance:none;appearance:none;-webkit-appearance:none;font-family:inherit;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{box-sizing:border-box;margin:0;font-family:inherit;text-transform:none;-moz-appearance:none;appearance:none;-webkit-appearance:none;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)}.Description__ALT2w{font-size:12px;color:var(--platform-text-primary-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{overflow-x:auto;overflow-y:hidden}.Table__2cIs3 table{border-collapse:collapse;text-indent:0;border-color:inherit;width:100%;min-width:max-content}.Table__2cIs3 td,.Table__2cIs3 th{box-sizing:border-box;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}.container__LbyGQ{display:flex;align-items:center}.avatarWrapper__HCQIZ{position:relative;display:inline-block}.avatar__E453a{border-radius:9999px;display:flex;align-items:center;justify-content:center;font-weight:600;border-width:1px;color:var(--platform-color-white);border-color:var(--platform-lines)}.overflowWrapper__ETnPO{position:relative;display:inline-block;cursor:default}.overflowBadge__igBKT{border-radius:9999px;display:flex;align-items:center;justify-content:center;color:var(--platform-color-white);font-weight:600;border-width:1px;border-color:var(--platform-lines);background-color:var(--platform-color-primary)}\n";
2
+ var _d=_=>{throw TypeError(_)};var gi=(_,be,W)=>be.has(_)||_d("Cannot "+W);var C=(_,be,W)=>(gi(_,be,"read from private field"),W?W.call(_):be.get(_)),M=(_,be,W)=>be.has(_)?_d("Cannot add the same private member more than once"):be instanceof WeakSet?be.add(_):be.set(_,W),O=(_,be,W,X)=>(gi(_,be,"write to private field"),X?X.call(_,W):be.set(_,W),W),V=(_,be,W)=>(gi(_,be,"access private method"),W);var Do=(_,be,W,X)=>({set _(ce){O(_,be,ce,W)},get _(){return C(_,be,X)}});System.register("@bluealba/pae-ui-react-core",["react","single-spa","react-dom"],function(_,be){"use strict";var W,X,ce,Ue,qn,Gn,De,d,G,_i,We,Ti,No,Ri,br,Kn,Pi;return{setters:[he=>{W=he.useState,X=he.useEffect,ce=he.useCallback,Ue=he.default,qn=he.createContext,Gn=he.useContext,De=he.useMemo,d=he,G=he.forwardRef,_i=he.useLayoutEffect,We=he.useRef,Ti=he.Children,No=he.isValidElement},he=>{Ri=he.navigateToUrl,br=he.default},he=>{Kn=he,Pi=he.default}],execute:function(){var cn,Dt,jn,rd,In,Lt,Dn,od,ln,sd,Ln,Nn,$e,un,Se,pr,dn,Qe,St,id,it,ad,at,_e,fn,ct,Gt,cd,yt,Ye,mr,ld,pe,Nt,Mt,Mn,$n,$t,kn,Fn,ud,Oe,Q,gr,Te,hn,Bn,kt,Ft,vr,Un,Wn,pn,mn,Bt,Hn,ne,yr,vi,yi,bi,wi,Ci,Si,xi,Td,dd,Ut,Wt,je,bt,wt,Lo,Ei,fd;_({generateUserColor:td,logout:Hd,useAppStatus:ds,useDynamicFonts:Vi,useFileStorage:Sp,useRoom:d0});const he=()=>typeof document<"u"&&"adoptedStyleSheets"in Document.prototype&&typeof CSSStyleSheet<"u"&&"replaceSync"in CSSStyleSheet.prototype;class Rd{constructor(){this.styles=[],this.shadowRoots=new Set}register(t){const n={cssText:t,styleElements:new Map};if(this.styles.push(n),typeof document>"u")return()=>this.unregister(n);if(he()){const r=new CSSStyleSheet;r.replaceSync(t),n.sheet=r,document.adoptedStyleSheets=[...document.adoptedStyleSheets,r],this.shadowRoots.forEach(o=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,r]})}else this.appendStyleElement(n,document),this.shadowRoots.forEach(r=>this.appendStyleElement(n,r));return()=>this.unregister(n)}adoptInto(t){if(!this.shadowRoots.has(t))if(this.shadowRoots.add(t),he()){const n=this.styles.map(r=>r.sheet).filter(r=>!!r);t.adoptedStyleSheets=[...t.adoptedStyleSheets,...n]}else this.styles.forEach(n=>this.appendStyleElement(n,t))}releaseRoot(t){this.shadowRoots.delete(t)&&this.styles.forEach(n=>{var r;n.sheet&&(t.adoptedStyleSheets=t.adoptedStyleSheets.filter(o=>o!==n.sheet)),(r=n.styleElements.get(t))==null||r.remove(),n.styleElements.delete(t)})}unregister(t){const n=this.styles.indexOf(t);n!==-1&&(this.styles.splice(n,1),t.sheet&&(document.adoptedStyleSheets=document.adoptedStyleSheets.filter(r=>r!==t.sheet),this.shadowRoots.forEach(r=>{r.adoptedStyleSheets=r.adoptedStyleSheets.filter(o=>o!==t.sheet)})),t.styleElements.forEach(r=>r.remove()),t.styleElements.clear())}appendStyleElement(t,n){const r=document.createElement("style");r.setAttribute("data-pae-style-registry",""),r.textContent=t.cssText,(n instanceof Document?n.head:n).appendChild(r),t.styleElements.set(n,r)}}const wr=_("StyleRegistry",new Rd),Pd=()=>{const e=globalThis.__PAE_UI_CORE_CSS__;e&&(wr.register(e),delete globalThis.__PAE_UI_CORE_CSS__)},N0=_("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"}}),Qn="__PAE_GLOBAL_STATE__",Ai="__PAE_REACTIVE_GLOBAL_STATE__",Oi="__PAE_EXTENSIONS_POINTS_REGISTRY__",Mo="__PAE_CUSTOMIZATIONS_LOADING_STATE_KEY__",Ad="/auth/logout",Od=(e,t)=>{const[n,r]=W(t);return X(()=>{const o=e.subscribe(s=>{r(s)});return()=>{o.unsubscribe()}},[r]),n},jd=(e,t,n)=>n.map((r,o)=>o===e?t(r):r),Id=(e,t,n)=>jd(n.findIndex(e),t,n),$o=(e,t)=>typeof e=="function"?e(t):e,ji=(e,t)=>{const n=Od(e,t),r=ce(o=>{e.next($o(o,n))},[n]);return[n,r]},Yn=_("usePAEState",()=>ji(window[Ai],window[Qn])),Zn=_("useCatalog",()=>Yn()[0].catalog),M0=_("useMutableCatalog",()=>{const e=Zn(),t=ce(r=>{window[Ai].next({...window[Qn],catalog:$o(r,e)})},[e]),n=ce((r,o)=>{t(s=>Id(i=>i.name===r,i=>{var a;return{...i,ui:{...i.ui,customProps:$o(o,((a=i.ui)==null?void 0:a.customProps)??{})}}},s))},[t]);return[e,t,n]}),Dd=_("useLocation",()=>{const[e,t]=W(document.location.pathname);return X(()=>{const n=()=>{t(window.location.pathname)};return window.addEventListener("popstate",n),()=>{window.removeEventListener("popstate",n)}},[t]),e});var Ld=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ii={exports:{}},Xn={},Di;function Md(){if(Di)return Xn;Di=1;/**
3
3
  * @license React
4
4
  * react-jsx-runtime.development.js
5
5
  *
@@ -7,30 +7,32 @@ var vd=E=>{throw TypeError(E)};var ui=(E,be,W)=>be.has(E)||vd("Cannot "+W);var _
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=Ue,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),x=Symbol.iterator,p="@@iterator";function v(b){if(b===null||typeof b!="object")return null;var A=x&&b[x]||b[p];return typeof A=="function"?A:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(b){{for(var A=arguments.length,I=new Array(A>1?A-1:0),F=1;F<A;F++)I[F-1]=arguments[F];C("error",b,I)}}function C(b,A,I){{var F=y.ReactDebugCurrentFrame,se=F.getStackAddendum();se!==""&&(A+="%s",I=I.concat([se]));var ce=I.map(function(Y){return String(Y)});ce.unshift("Warning: "+A),Function.prototype.apply.call(console[b],console,ce)}}var S=!1,T=!1,R=!1,P=!1,L=!1,j;j=Symbol.for("react.module.reference");function D(b){return!!(typeof b=="string"||typeof b=="function"||b===r||b===s||L||b===o||b===u||b===f||P||b===g||S||T||R||typeof b=="object"&&b!==null&&(b.$$typeof===m||b.$$typeof===h||b.$$typeof===i||b.$$typeof===a||b.$$typeof===l||b.$$typeof===j||b.getModuleId!==void 0))}function B(b,A,I){var F=b.displayName;if(F)return F;var se=A.displayName||A.name||"";return se!==""?I+"("+se+")":I}function U(b){return b.displayName||"Context"}function H(b){if(b==null)return null;if(typeof b.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof b=="function")return b.displayName||b.name||null;if(typeof b=="string")return b;switch(b){case r:return"Fragment";case n:return"Portal";case s:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if(typeof b=="object")switch(b.$$typeof){case a:var A=b;return U(A)+".Consumer";case i:var I=b;return U(I._context)+".Provider";case l:return B(b,b.render,"ForwardRef");case h:var F=b.displayName||null;return F!==null?F:H(b.type)||"Memo";case m:{var se=b,ce=se._payload,Y=se._init;try{return H(Y(ce))}catch{return null}}}return null}var z=Object.assign,ie=0,G,Z,$,ae,we,$e,Ht;function Vt(){}Vt.__reactDisabledLog=!0;function ct(){{if(ie===0){G=console.log,Z=console.info,$=console.warn,ae=console.error,we=console.group,$e=console.groupCollapsed,Ht=console.groupEnd;var b={configurable:!0,enumerable:!0,value:Vt,writable:!0};Object.defineProperties(console,{info:b,log:b,warn:b,error:b,group:b,groupCollapsed:b,groupEnd:b})}ie++}}function zt(){{if(ie--,ie===0){var b={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},b,{value:G}),info:z({},b,{value:Z}),warn:z({},b,{value:$}),error:z({},b,{value:ae}),group:z({},b,{value:we}),groupCollapsed:z({},b,{value:$e}),groupEnd:z({},b,{value:Ht})})}ie<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ze=y.ReactCurrentDispatcher,M;function re(b,A,I){{if(M===void 0)try{throw Error()}catch(se){var F=se.stack.trim().match(/\n( *(at )?)/);M=F&&F[1]||""}return`
11
- `+M+b}}var ge=!1,ee;{var oe=typeof WeakMap=="function"?WeakMap:Map;ee=new oe}function te(b,A){if(!b||ge)return"";{var I=ee.get(b);if(I!==void 0)return I}var F;ge=!0;var se=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ce;ce=Ze.current,Ze.current=null,ct();try{if(A){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(je){F=je}Reflect.construct(b,[],Y)}else{try{Y.call()}catch(je){F=je}b.call(Y.prototype)}}else{try{throw Error()}catch(je){F=je}b()}}catch(je){if(je&&F&&typeof je.stack=="string"){for(var K=je.stack.split(`
10
+ */return function(){var e=Ue,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),S=Symbol.iterator,p="@@iterator";function v(b){if(b===null||typeof b!="object")return null;var A=S&&b[S]||b[p];return typeof A=="function"?A:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(b){{for(var A=arguments.length,j=new Array(A>1?A-1:0),F=1;F<A;F++)j[F-1]=arguments[F];x("error",b,j)}}function x(b,A,j){{var F=y.ReactDebugCurrentFrame,se=F.getStackAddendum();se!==""&&(A+="%s",j=j.concat([se]));var ue=j.map(function(Y){return String(Y)});ue.unshift("Warning: "+A),Function.prototype.apply.call(console[b],console,ue)}}var E=!1,T=!1,R=!1,P=!1,L=!1,I;I=Symbol.for("react.module.reference");function N(b){return!!(typeof b=="string"||typeof b=="function"||b===r||b===s||L||b===o||b===l||b===f||P||b===g||E||T||R||typeof b=="object"&&b!==null&&(b.$$typeof===m||b.$$typeof===h||b.$$typeof===i||b.$$typeof===a||b.$$typeof===c||b.$$typeof===I||b.getModuleId!==void 0))}function B(b,A,j){var F=b.displayName;if(F)return F;var se=A.displayName||A.name||"";return se!==""?j+"("+se+")":j}function U(b){return b.displayName||"Context"}function H(b){if(b==null)return null;if(typeof b.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof b=="function")return b.displayName||b.name||null;if(typeof b=="string")return b;switch(b){case r:return"Fragment";case n:return"Portal";case s:return"Profiler";case o:return"StrictMode";case l:return"Suspense";case f:return"SuspenseList"}if(typeof b=="object")switch(b.$$typeof){case a:var A=b;return U(A)+".Consumer";case i:var j=b;return U(j._context)+".Provider";case c:return B(b,b.render,"ForwardRef");case h:var F=b.displayName||null;return F!==null?F:H(b.type)||"Memo";case m:{var se=b,ue=se._payload,Y=se._init;try{return H(Y(ue))}catch{return null}}}return null}var z=Object.assign,ie=0,q,Z,k,ae,we,ke,Ht;function Vt(){}Vt.__reactDisabledLog=!0;function lt(){{if(ie===0){q=console.log,Z=console.info,k=console.warn,ae=console.error,we=console.group,ke=console.groupCollapsed,Ht=console.groupEnd;var b={configurable:!0,enumerable:!0,value:Vt,writable:!0};Object.defineProperties(console,{info:b,log:b,warn:b,error:b,group:b,groupCollapsed:b,groupEnd:b})}ie++}}function zt(){{if(ie--,ie===0){var b={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},b,{value:q}),info:z({},b,{value:Z}),warn:z({},b,{value:k}),error:z({},b,{value:ae}),group:z({},b,{value:we}),groupCollapsed:z({},b,{value:ke}),groupEnd:z({},b,{value:Ht})})}ie<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ze=y.ReactCurrentDispatcher,$;function re(b,A,j){{if($===void 0)try{throw Error()}catch(se){var F=se.stack.trim().match(/\n( *(at )?)/);$=F&&F[1]||""}return`
11
+ `+$+b}}var ge=!1,ee;{var oe=typeof WeakMap=="function"?WeakMap:Map;ee=new oe}function te(b,A){if(!b||ge)return"";{var j=ee.get(b);if(j!==void 0)return j}var F;ge=!0;var se=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ue;ue=Ze.current,Ze.current=null,lt();try{if(A){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(Ie){F=Ie}Reflect.construct(b,[],Y)}else{try{Y.call()}catch(Ie){F=Ie}b.call(Y.prototype)}}else{try{throw Error()}catch(Ie){F=Ie}b()}}catch(Ie){if(Ie&&F&&typeof Ie.stack=="string"){for(var K=Ie.stack.split(`
12
12
  `),Pe=F.stack.split(`
13
13
  `),me=K.length-1,ve=Pe.length-1;me>=1&&ve>=0&&K[me]!==Pe[ve];)ve--;for(;me>=1&&ve>=0;me--,ve--)if(K[me]!==Pe[ve]){if(me!==1||ve!==1)do if(me--,ve--,ve<0||K[me]!==Pe[ve]){var Be=`
14
- `+K[me].replace(" at new "," at ");return b.displayName&&Be.includes("<anonymous>")&&(Be=Be.replace("<anonymous>",b.displayName)),typeof b=="function"&&ee.set(b,Be),Be}while(me>=1&&ve>=0);break}}}finally{ge=!1,Ze.current=ce,zt(),Error.prepareStackTrace=se}var zn=b?b.displayName||b.name:"",gn=zn?re(zn):"";return typeof b=="function"&&ee.set(b,gn),gn}function Re(b,A,I){return te(b,!1)}function Fe(b){var A=b.prototype;return!!(A&&A.isReactComponent)}function ut(b,A,I){if(b==null)return"";if(typeof b=="function")return te(b,Fe(b));if(typeof b=="string")return re(b);switch(b){case u:return re("Suspense");case f:return re("SuspenseList")}if(typeof b=="object")switch(b.$$typeof){case l:return Re(b.render);case h:return ut(b.type,A,I);case m:{var F=b,se=F._payload,ce=F._init;try{return ut(ce(se),A,I)}catch{}}}return""}var Xe=Object.prototype.hasOwnProperty,Gt={},Po=y.ReactDebugCurrentFrame;function _t(b){if(b){var A=b._owner,I=ut(b.type,b._source,A?A.type:null);Po.setExtraStackFrame(I)}else Po.setExtraStackFrame(null)}function Xy(b,A,I,F,se){{var ce=Function.call.bind(Xe);for(var Y in b)if(ce(b,Y)){var K=void 0;try{if(typeof b[Y]!="function"){var Pe=Error((F||"React class")+": "+I+" type `"+Y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof b[Y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Pe.name="Invariant Violation",Pe}K=b[Y](A,Y,F,I,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(me){K=me}K&&!(K instanceof Error)&&(_t(se),w("%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).",F||"React class",I,Y,typeof K),_t(null)),K instanceof Error&&!(K.message in Gt)&&(Gt[K.message]=!0,_t(se),w("Failed %s type: %s",I,K.message),_t(null))}}}var Jy=Array.isArray;function si(b){return Jy(b)}function e0(b){{var A=typeof Symbol=="function"&&Symbol.toStringTag,I=A&&b[Symbol.toStringTag]||b.constructor.name||"Object";return I}}function t0(b){try{return sd(b),!1}catch{return!0}}function sd(b){return""+b}function id(b){if(t0(b))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",e0(b)),sd(b)}var ad=y.ReactCurrentOwner,n0={key:!0,ref:!0,__self:!0,__source:!0},ld,cd;function r0(b){if(Xe.call(b,"ref")){var A=Object.getOwnPropertyDescriptor(b,"ref").get;if(A&&A.isReactWarning)return!1}return b.ref!==void 0}function o0(b){if(Xe.call(b,"key")){var A=Object.getOwnPropertyDescriptor(b,"key").get;if(A&&A.isReactWarning)return!1}return b.key!==void 0}function s0(b,A){typeof b.ref=="string"&&ad.current}function i0(b,A){{var I=function(){ld||(ld=!0,w("%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)",A))};I.isReactWarning=!0,Object.defineProperty(b,"key",{get:I,configurable:!0})}}function a0(b,A){{var I=function(){cd||(cd=!0,w("%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)",A))};I.isReactWarning=!0,Object.defineProperty(b,"ref",{get:I,configurable:!0})}}var l0=function(b,A,I,F,se,ce,Y){var K={$$typeof:t,type:b,key:A,ref:I,props:Y,_owner:ce};return K._store={},Object.defineProperty(K._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(K,"_self",{configurable:!1,enumerable:!1,writable:!1,value:F}),Object.defineProperty(K,"_source",{configurable:!1,enumerable:!1,writable:!1,value:se}),Object.freeze&&(Object.freeze(K.props),Object.freeze(K)),K};function c0(b,A,I,F,se){{var ce,Y={},K=null,Pe=null;I!==void 0&&(id(I),K=""+I),o0(A)&&(id(A.key),K=""+A.key),r0(A)&&(Pe=A.ref,s0(A,se));for(ce in A)Xe.call(A,ce)&&!n0.hasOwnProperty(ce)&&(Y[ce]=A[ce]);if(b&&b.defaultProps){var me=b.defaultProps;for(ce in me)Y[ce]===void 0&&(Y[ce]=me[ce])}if(K||Pe){var ve=typeof b=="function"?b.displayName||b.name||"Unknown":b;K&&i0(Y,ve),Pe&&a0(Y,ve)}return l0(b,K,Pe,se,F,ad.current,Y)}}var ii=y.ReactCurrentOwner,ud=y.ReactDebugCurrentFrame;function Vn(b){if(b){var A=b._owner,I=ut(b.type,b._source,A?A.type:null);ud.setExtraStackFrame(I)}else ud.setExtraStackFrame(null)}var ai;ai=!1;function li(b){return typeof b=="object"&&b!==null&&b.$$typeof===t}function dd(){{if(ii.current){var b=H(ii.current.type);if(b)return`
14
+ `+K[me].replace(" at new "," at ");return b.displayName&&Be.includes("<anonymous>")&&(Be=Be.replace("<anonymous>",b.displayName)),typeof b=="function"&&ee.set(b,Be),Be}while(me>=1&&ve>=0);break}}}finally{ge=!1,Ze.current=ue,zt(),Error.prepareStackTrace=se}var zn=b?b.displayName||b.name:"",gn=zn?re(zn):"";return typeof b=="function"&&ee.set(b,gn),gn}function Re(b,A,j){return te(b,!1)}function Fe(b){var A=b.prototype;return!!(A&&A.isReactComponent)}function ut(b,A,j){if(b==null)return"";if(typeof b=="function")return te(b,Fe(b));if(typeof b=="string")return re(b);switch(b){case l:return re("Suspense");case f:return re("SuspenseList")}if(typeof b=="object")switch(b.$$typeof){case c:return Re(b.render);case h:return ut(b.type,A,j);case m:{var F=b,se=F._payload,ue=F._init;try{return ut(ue(se),A,j)}catch{}}}return""}var Xe=Object.prototype.hasOwnProperty,qt={},Io=y.ReactDebugCurrentFrame;function Ct(b){if(b){var A=b._owner,j=ut(b.type,b._source,A?A.type:null);Io.setExtraStackFrame(j)}else Io.setExtraStackFrame(null)}function h0(b,A,j,F,se){{var ue=Function.call.bind(Xe);for(var Y in b)if(ue(b,Y)){var K=void 0;try{if(typeof b[Y]!="function"){var Pe=Error((F||"React class")+": "+j+" type `"+Y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof b[Y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Pe.name="Invariant Violation",Pe}K=b[Y](A,Y,F,j,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(me){K=me}K&&!(K instanceof Error)&&(Ct(se),w("%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).",F||"React class",j,Y,typeof K),Ct(null)),K instanceof Error&&!(K.message in qt)&&(qt[K.message]=!0,Ct(se),w("Failed %s type: %s",j,K.message),Ct(null))}}}var p0=Array.isArray;function di(b){return p0(b)}function m0(b){{var A=typeof Symbol=="function"&&Symbol.toStringTag,j=A&&b[Symbol.toStringTag]||b.constructor.name||"Object";return j}}function g0(b){try{return hd(b),!1}catch{return!0}}function hd(b){return""+b}function pd(b){if(g0(b))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",m0(b)),hd(b)}var md=y.ReactCurrentOwner,v0={key:!0,ref:!0,__self:!0,__source:!0},gd,vd;function y0(b){if(Xe.call(b,"ref")){var A=Object.getOwnPropertyDescriptor(b,"ref").get;if(A&&A.isReactWarning)return!1}return b.ref!==void 0}function b0(b){if(Xe.call(b,"key")){var A=Object.getOwnPropertyDescriptor(b,"key").get;if(A&&A.isReactWarning)return!1}return b.key!==void 0}function w0(b,A){typeof b.ref=="string"&&md.current}function C0(b,A){{var j=function(){gd||(gd=!0,w("%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)",A))};j.isReactWarning=!0,Object.defineProperty(b,"key",{get:j,configurable:!0})}}function S0(b,A){{var j=function(){vd||(vd=!0,w("%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)",A))};j.isReactWarning=!0,Object.defineProperty(b,"ref",{get:j,configurable:!0})}}var x0=function(b,A,j,F,se,ue,Y){var K={$$typeof:t,type:b,key:A,ref:j,props:Y,_owner:ue};return K._store={},Object.defineProperty(K._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(K,"_self",{configurable:!1,enumerable:!1,writable:!1,value:F}),Object.defineProperty(K,"_source",{configurable:!1,enumerable:!1,writable:!1,value:se}),Object.freeze&&(Object.freeze(K.props),Object.freeze(K)),K};function E0(b,A,j,F,se){{var ue,Y={},K=null,Pe=null;j!==void 0&&(pd(j),K=""+j),b0(A)&&(pd(A.key),K=""+A.key),y0(A)&&(Pe=A.ref,w0(A,se));for(ue in A)Xe.call(A,ue)&&!v0.hasOwnProperty(ue)&&(Y[ue]=A[ue]);if(b&&b.defaultProps){var me=b.defaultProps;for(ue in me)Y[ue]===void 0&&(Y[ue]=me[ue])}if(K||Pe){var ve=typeof b=="function"?b.displayName||b.name||"Unknown":b;K&&C0(Y,ve),Pe&&S0(Y,ve)}return x0(b,K,Pe,se,F,md.current,Y)}}var fi=y.ReactCurrentOwner,yd=y.ReactDebugCurrentFrame;function Vn(b){if(b){var A=b._owner,j=ut(b.type,b._source,A?A.type:null);yd.setExtraStackFrame(j)}else yd.setExtraStackFrame(null)}var hi;hi=!1;function pi(b){return typeof b=="object"&&b!==null&&b.$$typeof===t}function bd(){{if(fi.current){var b=H(fi.current.type);if(b)return`
15
15
 
16
- Check the render method of \``+b+"`."}return""}}function u0(b){return""}var fd={};function d0(b){{var A=dd();if(!A){var I=typeof b=="string"?b:b.displayName||b.name;I&&(A=`
16
+ Check the render method of \``+b+"`."}return""}}function _0(b){return""}var wd={};function T0(b){{var A=bd();if(!A){var j=typeof b=="string"?b:b.displayName||b.name;j&&(A=`
17
17
 
18
- Check the top-level render call using <`+I+">.")}return A}}function pd(b,A){{if(!b._store||b._store.validated||b.key!=null)return;b._store.validated=!0;var I=d0(A);if(fd[I])return;fd[I]=!0;var F="";b&&b._owner&&b._owner!==ii.current&&(F=" It was passed a child from "+H(b._owner.type)+"."),Vn(b),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',I,F),Vn(null)}}function hd(b,A){{if(typeof b!="object")return;if(si(b))for(var I=0;I<b.length;I++){var F=b[I];li(F)&&pd(F,A)}else if(li(b))b._store&&(b._store.validated=!0);else if(b){var se=v(b);if(typeof se=="function"&&se!==b.entries)for(var ce=se.call(b),Y;!(Y=ce.next()).done;)li(Y.value)&&pd(Y.value,A)}}}function f0(b){{var A=b.type;if(A==null||typeof A=="string")return;var I;if(typeof A=="function")I=A.propTypes;else if(typeof A=="object"&&(A.$$typeof===l||A.$$typeof===h))I=A.propTypes;else return;if(I){var F=H(A);Xy(I,b.props,"prop",F,b)}else if(A.PropTypes!==void 0&&!ai){ai=!0;var se=H(A);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",se||"Unknown")}typeof A.getDefaultProps=="function"&&!A.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function p0(b){{for(var A=Object.keys(b.props),I=0;I<A.length;I++){var F=A[I];if(F!=="children"&&F!=="key"){Vn(b),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",F),Vn(null);break}}b.ref!==null&&(Vn(b),w("Invalid attribute `ref` supplied to `React.Fragment`."),Vn(null))}}var md={};function gd(b,A,I,F,se,ce){{var Y=D(b);if(!Y){var K="";(b===void 0||typeof b=="object"&&b!==null&&Object.keys(b).length===0)&&(K+=" 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 Pe=u0();Pe?K+=Pe:K+=dd();var me;b===null?me="null":si(b)?me="array":b!==void 0&&b.$$typeof===t?(me="<"+(H(b.type)||"Unknown")+" />",K=" Did you accidentally export a JSX literal instead of a component?"):me=typeof b,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",me,K)}var ve=c0(b,A,I,se,ce);if(ve==null)return ve;if(Y){var Be=A.children;if(Be!==void 0)if(F)if(si(Be)){for(var zn=0;zn<Be.length;zn++)hd(Be[zn],b);Object.freeze&&Object.freeze(Be)}else w("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 hd(Be,b)}if(Xe.call(A,"key")){var gn=H(b),je=Object.keys(A).filter(function(b0){return b0!=="key"}),ci=je.length>0?"{key: someKey, "+je.join(": ..., ")+": ...}":"{key: someKey}";if(!md[gn+ci]){var y0=je.length>0?"{"+je.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
18
+ Check the top-level render call using <`+j+">.")}return A}}function Cd(b,A){{if(!b._store||b._store.validated||b.key!=null)return;b._store.validated=!0;var j=T0(A);if(wd[j])return;wd[j]=!0;var F="";b&&b._owner&&b._owner!==fi.current&&(F=" It was passed a child from "+H(b._owner.type)+"."),Vn(b),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',j,F),Vn(null)}}function Sd(b,A){{if(typeof b!="object")return;if(di(b))for(var j=0;j<b.length;j++){var F=b[j];pi(F)&&Cd(F,A)}else if(pi(b))b._store&&(b._store.validated=!0);else if(b){var se=v(b);if(typeof se=="function"&&se!==b.entries)for(var ue=se.call(b),Y;!(Y=ue.next()).done;)pi(Y.value)&&Cd(Y.value,A)}}}function R0(b){{var A=b.type;if(A==null||typeof A=="string")return;var j;if(typeof A=="function")j=A.propTypes;else if(typeof A=="object"&&(A.$$typeof===c||A.$$typeof===h))j=A.propTypes;else return;if(j){var F=H(A);h0(j,b.props,"prop",F,b)}else if(A.PropTypes!==void 0&&!hi){hi=!0;var se=H(A);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",se||"Unknown")}typeof A.getDefaultProps=="function"&&!A.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function P0(b){{for(var A=Object.keys(b.props),j=0;j<A.length;j++){var F=A[j];if(F!=="children"&&F!=="key"){Vn(b),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",F),Vn(null);break}}b.ref!==null&&(Vn(b),w("Invalid attribute `ref` supplied to `React.Fragment`."),Vn(null))}}var xd={};function Ed(b,A,j,F,se,ue){{var Y=N(b);if(!Y){var K="";(b===void 0||typeof b=="object"&&b!==null&&Object.keys(b).length===0)&&(K+=" 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 Pe=_0();Pe?K+=Pe:K+=bd();var me;b===null?me="null":di(b)?me="array":b!==void 0&&b.$$typeof===t?(me="<"+(H(b.type)||"Unknown")+" />",K=" Did you accidentally export a JSX literal instead of a component?"):me=typeof b,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",me,K)}var ve=E0(b,A,j,se,ue);if(ve==null)return ve;if(Y){var Be=A.children;if(Be!==void 0)if(F)if(di(Be)){for(var zn=0;zn<Be.length;zn++)Sd(Be[zn],b);Object.freeze&&Object.freeze(Be)}else w("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 Sd(Be,b)}if(Xe.call(A,"key")){var gn=H(b),Ie=Object.keys(A).filter(function(L0){return L0!=="key"}),mi=Ie.length>0?"{key: someKey, "+Ie.join(": ..., ")+": ...}":"{key: someKey}";if(!xd[gn+mi]){var D0=Ie.length>0?"{"+Ie.join(": ..., ")+": ...}":"{}";w(`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} />`,ci,gn,y0,gn),md[gn+ci]=!0}}return b===r?p0(ve):f0(ve),ve}}function h0(b,A,I){return gd(b,A,I,!0)}function m0(b,A,I){return gd(b,A,I,!1)}var g0=m0,v0=h0;Qn.Fragment=r,Qn.jsx=g0,Qn.jsxs=v0}(),Qn}Ti.exports=Td();var c=Ti.exports;const Pi=mr(null),Ai=({module:e,children:t})=>c.jsx(Pi.Provider,{value:e,children:t});Ai.displayName="PAEModule";const br=E("useModuleMetadata",()=>{const e=gr(Pi);if(!e)throw new Error("Module metadata was not setup yet !!");return e});function Lo(){if(!window[qn])throw new Error("PAE Global state not found.");return window[qn]}const Oi=E("getApplications",()=>{const{authUser:{applications:e}}=Lo();return e||[]}),Rd=E("getOperations",e=>Oi().filter(t=>t.name===e).flatMap(t=>t.operations)),Pd=E("useOperations",()=>{const{application:e}=br();return ke(()=>Rd(e),[e])}),Ad=E("hasAccess",e=>(...t)=>t.every(n=>e.some(r=>r.name===n))),wr=E("useAuth",()=>{const[{authUser:e}]=yr(),t=Pd();return{authUser:e,hasAccess:ke(()=>Ad(t),[t])}}),x0=E("useHasNoSession",()=>{const{authUser:e}=wr();return!e||e.id==="anon"}),Ii=E("useModuleConfig",()=>{var e;return((e=br().ui)==null?void 0:e.customProps)??{}}),ji=E("useModule",e=>{const t=Kn();return ke(()=>{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])}),Od=E("useModuleConfigByName",e=>{var t,n;return((n=(t=ji(e))==null?void 0:t.ui)==null?void 0:n.customProps)??{}}),Id=e=>e.replace(/\/+/g,"/"),C0=E("useModuleCommonPaths",(e,t="only-base-path")=>{const{apiDocs:n,health:r,version:o,changelog:s}=(e==null?void 0:e.commonPaths)||{},i=(a,l="")=>{if(a===void 0&&!l)return;const u=a??l;if(t==="only-base-path")return u;const f=Id(`${e.baseUrl}/${u}`);return t==="with-module-base"?f:`${document.location.origin}${f}`};return{apiDocsPath:i(n,"/api-docs-json"),healthPath:i(r,"/health"),versionPath:i(o,"/version"),changelogPath:i(s,"/changelog")}});function jd(){window.open(bd,"_self")}const S0=E("navigateTo",e=>_i(e)),kd=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,}$/,E0=E("isValidEmail",e=>kd.test(e)),T0=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)}),ki=e=>e.type==="app"||e.type==="tool",Ld=e=>e.modules.some(ki)&&e.route&&e.route!=="/",Li=e=>{const{catalog:t}=Lo();return _r(t.filter(n=>n.application===e))},_r=(e=[])=>e.find(t=>{var n;return ki(t)&&((n=t.ui)==null?void 0:n.route)!=="/"}),Dd=E("useApplications",()=>{const e=Kn();return ke(()=>Oi().map(n=>{var s,i,a;const r=Nd(e,n.name),o=_r(r);return{name:n.name,displayName:((i=(s=o==null?void 0:o.ui)==null?void 0:s.customProps)==null?void 0:i.overrideApplicationDisplayName)??n.displayName,modules:r,route:(a=o==null?void 0:o.ui)==null?void 0:a.route,roles:[],operations:n.operations}}),[e])}),Nd=(e,t)=>e.filter(n=>n.application===t)||[],Md=E("useUIApplications",()=>{const e=Dd();return ke(()=>e.filter(Ld),[e])}),$d=E("useApplicationUIModule",e=>ke(()=>e?Li(e.name):void 0,[e])),Ct=new Map,Fd=e=>{try{const{catalog:t}=Lo(),n=t.find(r=>r.name===e);return n!=null&&n.version?`${e}@${n.version}`:e}catch{return e}},Do=E("useApplicationJSModule",e=>{const[t,n]=W(null);return X(()=>{(async()=>{if(!e){n(null);return}try{const o=Fd(e);if(Ct.has(o)){const i=Ct.get(o);n(i);return}const s=await System.import(e);Ct.set(o,s),n(s)}catch(o){console.error(`Error importing module ${e}: ${o.message}`),n(null)}})()},[e,n]),t}),Bd=e=>{e?(Array.from(Ct.keys()).filter(n=>n.startsWith(e)).forEach(n=>Ct.delete(n)),console.log(`[useApplicationJSModule] Cleared cache for module: ${e}`)):(Ct.clear(),console.log("[useApplicationJSModule] Cleared all module cache"))};typeof window<"u"&&(window.PAE={...window.PAE,clearModuleCache:Bd,getModuleCacheSize:()=>Ct.size,getModuleCacheKeys:()=>Array.from(Ct.keys())});const Ud=E("useApplicationIcon",e=>{const t=typeof e=="string"?Li(e):_r(e==null?void 0:e.modules),n=Do(t==null?void 0:t.name);return n==null?void 0:n.icon}),Wd=E("useModuleMenu",e=>{const t=_r(e==null?void 0:e.modules),n=Do(t==null?void 0:t.name),[r,o]=W(!1),[s,i]=W({}),a=async()=>(typeof(n==null?void 0:n.menu)=="function"?await n.menu():n==null?void 0:n.menu)||[],l=async()=>{if(!(n!=null&&n.menu))return[];o(!0);const h=Hd((e==null?void 0:e.operations)||[]),m=(await a()).map(g=>{const{operations:x,items:p,path:v}=g;if(x!=null&&x.length&&!h(x))return null;const y=(p||[]).filter(w=>{var C;return!((C=w==null?void 0:w.operations)!=null&&C.length)||h(w.operations)});return!y.length&&!v?null:{...g,items:y}}).filter(Boolean);return o(!1),m},u=async()=>{const h=await l();e&&i(m=>({...m,[e.name]:h}))};X(()=>{u()},[n==null?void 0:n.menu]);const f=ke(()=>e?s[e.name]||[]:[],[s,e]);return{loading:r,menu:f}}),Hd=e=>t=>t.every(n=>e.some(r=>r.name===n)),R0=E("useApplicationMenu",e=>Wd(e));function ue(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function Kt(e){return function t(n){return arguments.length===0||ue(n)?t:e.apply(this,arguments)}}function St(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return ue(n)?t:Kt(function(o){return e(n,o)});default:return ue(n)&&ue(r)?t:ue(n)?Kt(function(o){return e(o,r)}):ue(r)?Kt(function(o){return e(n,o)}):e(n,r)}}}function No(e){return function t(n,r,o){switch(arguments.length){case 0:return t;case 1:return ue(n)?t:St(function(s,i){return e(n,s,i)});case 2:return ue(n)&&ue(r)?t:ue(n)?St(function(s,i){return e(s,r,i)}):ue(r)?St(function(s,i){return e(n,s,i)}):Kt(function(s){return e(n,r,s)});default:return ue(n)&&ue(r)&&ue(o)?t:ue(n)&&ue(r)?St(function(s,i){return e(s,i,o)}):ue(n)&&ue(o)?St(function(s,i){return e(s,r,i)}):ue(r)&&ue(o)?St(function(s,i){return e(n,s,i)}):ue(n)?Kt(function(s){return e(s,r,o)}):ue(r)?Kt(function(s){return e(n,s,o)}):ue(o)?Kt(function(s){return e(n,r,s)}):e(n,r,o)}}}function xr(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function Di(e){return Object.prototype.toString.call(e)==="[object Object]"}var Vd=No(function(t,n,r){var o=t(n),s=t(r);return o>s?-1:o<s?1:0}),zd=No(function(t,n,r){var o={},s;n=n||{},r=r||{};for(s in n)xr(s,n)&&(o[s]=xr(s,r)?t(s,n[s],r[s]):n[s]);for(s in r)xr(s,r)&&!xr(s,o)&&(o[s]=r[s]);return o}),Gd=No(function e(t,n,r){return zd(function(o,s,i){return Di(s)&&Di(i)?e(t,s,i):t(o,s,i)},n,r)}),qd=St(function(t,n){return Gd(function(r,o,s){return s},t,n)}),Kd=St(function(t,n){return Array.prototype.slice.call(n,0).sort(function(r,o){for(var s=0,i=0;s===0&&i<t.length;)s=t[i](r,o),i+=1;return s})});const Ni=E("useCurrentApplication",()=>{const e=Cd(),t=Md();return ke(()=>Qd(e,t),[e,t])}),Qd=(e,t)=>Kd([Vd(Yd)],t).find(n=>n.route&&e.startsWith(n.route)),Yd=e=>{var t;return((t=e==null?void 0:e.route)==null?void 0:t.length)||-1},Zd=E("useCurrentApplicationName",()=>{var e;return(e=Ni())==null?void 0:e.name}),P0=E("useCurrentJSModule",()=>{const e=Ni(),t=$d(e);return Do(t==null?void 0:t.name)}),Mi=E("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}),$i=E("useServiceInvoker",(e,t)=>{const n=Mi(e,!!t)??t;return fe((r,o)=>{const i={Accept:"application/json",...(o==null?void 0:o.body)instanceof FormData?{}:{"Content-Type":"application/json"},...o==null?void 0:o.headers};return fetch(Xd(`${n}${r}`),{...o,headers:i})},[n])}),Xd=e=>e.replace(/\/+/g,"/"),Jd=["impersonate","impersonate-display-name","tenant"],ef=E("useServiceWebSocketURL",(e,t)=>{const n=Mi(e,t);return ke(()=>{if(!n)return null;try{const r=new URL(window.location.href),o=new URL(n,window.location.origin);return Jd.forEach(s=>{const i=r.searchParams.get(s);i&&o.searchParams.set(s,i)}),o.toString()}catch(r){return console.error("Error building WebSocket URL:",r),n}},[n])}),tf=(e,t)=>n=>({timestamp:new Date(new Date().toUTCString()).toISOString(),module:t.name,moduleVersion:t.version,application:t.application,user:e.username,...n}),nf=(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(tf(t,n)))});if(!o.ok)throw new Error(`Error publishing habits event ${o.statusText}`)},rf="@bluealba/pae-habits-service",of=E("useTrackEvents",()=>{const{authUser:e}=wr(),t=br(),n=$i(rf);return fe(nf(n,e,t),[n,e,t])}),A0=E("useTrackEvent",()=>{const e=of();return fe((t,n)=>e([{name:t,data:n}]),[e])}),sf=E("useExtensionPoint",e=>{const t=br(),n=window[Si],[r,o]=W(null);return X(()=>n.defineExtensionPoint(t,e,s=>{o(()=>s)}),[o]),r}),af=E("useExtendExtensionPoint",(e,t,n)=>{X(()=>window[Si].setExtensionPoint(e,t,n),[])}),lf=E("usePlatformEventListener",(e,t)=>{X(()=>(window.addEventListener(e,t),()=>window.removeEventListener(e,t)),[e,t])}),cf=E("useDynamicStyleSheet",e=>{const{cssCustomizationLoadingDelay:t=1e3}=Ii();X(()=>{if(!e)return;const n=document.createElement("style");return setTimeout(()=>{n.innerHTML=e,document.head.append(n)},t),()=>n&&n.remove()},[e])}),uf=e=>{var t;return(t=e.split(/[#?]/)[0].split(".").pop())==null?void 0:t.trim()},df={woff2:"woff2",woff:"woff",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg"},ff=e=>{const t=uf(e);return t?df[t]:void 0},pf=(e,t)=>{const n=t??ff(e);return n?`format(${n})`:""};function Fi(e){const[t,n]=W(!1);return X(()=>{if(!(e!=null&&e.length))return;const r=document.createElement("style");r.setAttribute("data-generated-fonts","true");const o=e.flatMap(({fontFamily:i,variants:a})=>a.map(({path:l,fontWeight:u,format:f})=>`
23
+ <%s key={someKey} {...props} />`,mi,gn,D0,gn),xd[gn+mi]=!0}}return b===r?P0(ve):R0(ve),ve}}function A0(b,A,j){return Ed(b,A,j,!0)}function O0(b,A,j){return Ed(b,A,j,!1)}var j0=O0,I0=A0;Xn.Fragment=r,Xn.jsx=j0,Xn.jsxs=I0}(),Xn}Ii.exports=Md();var u=Ii.exports;const Li=qn(null),Ni=({module:e,children:t})=>u.jsx(Li.Provider,{value:e,children:t});Ni.displayName="PAEModule";const Cr=_("useModuleMetadata",()=>{const e=Gn(Li);if(!e)throw new Error("Module metadata was not setup yet !!");return e});function ko(){if(!window[Qn])throw new Error("PAE Global state not found.");return window[Qn]}const Mi=_("getApplications",()=>{const{authUser:{applications:e}}=ko();return e||[]}),$d=_("getOperations",e=>Mi().filter(t=>t.name===e).flatMap(t=>t.operations)),kd=_("useOperations",()=>{const{application:e}=Cr();return De(()=>$d(e),[e])}),Fd=_("hasAccess",e=>(...t)=>t.every(n=>e.some(r=>r.name===n))),Sr=_("useAuth",()=>{const[{authUser:e}]=Yn(),t=kd();return{authUser:e,hasAccess:De(()=>Fd(t),[t])}}),$0=_("useHasNoSession",()=>{const{authUser:e}=Sr();return!e||e.id==="anon"}),Bd=_("useModuleConfig",()=>{var e;return((e=Cr().ui)==null?void 0:e.customProps)??{}}),$i=_("useModule",e=>{const t=Zn();return De(()=>{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])}),Ud=_("useModuleConfigByName",e=>{var t,n;return((n=(t=$i(e))==null?void 0:t.ui)==null?void 0:n.customProps)??{}}),Wd=e=>e.replace(/\/+/g,"/"),k0=_("useModuleCommonPaths",(e,t="only-base-path")=>{const{apiDocs:n,health:r,version:o,changelog:s}=(e==null?void 0:e.commonPaths)||{},i=(a,c="")=>{if(a===void 0&&!c)return;const l=a??c;if(t==="only-base-path")return l;const f=Wd(`${e.baseUrl}/${l}`);return t==="with-module-base"?f:`${document.location.origin}${f}`};return{apiDocsPath:i(n,"/api-docs-json"),healthPath:i(r,"/health"),versionPath:i(o,"/version"),changelogPath:i(s,"/changelog")}});function Hd(){window.open(Ad,"_self")}const F0=_("navigateTo",e=>Ri(e)),Vd=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,}$/,B0=_("isValidEmail",e=>Vd.test(e)),U0=_("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)}),ki=e=>e.type==="app"||e.type==="tool",zd=e=>e.modules.some(ki)&&e.route&&e.route!=="/",Fi=e=>{const{catalog:t}=ko();return xr(t.filter(n=>n.application===e))},xr=(e=[])=>e.find(t=>{var n;return ki(t)&&((n=t.ui)==null?void 0:n.route)!=="/"}),qd=_("useApplications",()=>{const e=Zn();return De(()=>Mi().map(n=>{var s,i,a;const r=Gd(e,n.name),o=xr(r);return{name:n.name,displayName:((i=(s=o==null?void 0:o.ui)==null?void 0:s.customProps)==null?void 0:i.overrideApplicationDisplayName)??n.displayName,modules:r,route:(a=o==null?void 0:o.ui)==null?void 0:a.route,roles:[],operations:n.operations}}),[e])}),Gd=(e,t)=>e.filter(n=>n.application===t)||[],Kd=_("useUIApplications",()=>{const e=qd();return De(()=>e.filter(zd),[e])}),Qd=_("useApplicationUIModule",e=>De(()=>e?Fi(e.name):void 0,[e])),xt=new Map,Yd=e=>{try{const{catalog:t}=ko(),n=t.find(r=>r.name===e);return n!=null&&n.version?`${e}@${n.version}`:e}catch{return e}},Fo=_("useApplicationJSModule",e=>{const[t,n]=W(null);return X(()=>{(async()=>{if(!e){n(null);return}try{const o=Yd(e);if(xt.has(o)){const i=xt.get(o);n(i);return}const s=await System.import(e);xt.set(o,s),n(s)}catch(o){console.error(`Error importing module ${e}: ${o.message}`),n(null)}})()},[e,n]),t}),Zd=e=>{e?(Array.from(xt.keys()).filter(n=>n.startsWith(e)).forEach(n=>xt.delete(n)),console.log(`[useApplicationJSModule] Cleared cache for module: ${e}`)):(xt.clear(),console.log("[useApplicationJSModule] Cleared all module cache"))};typeof window<"u"&&(window.PAE={...window.PAE,clearModuleCache:Zd,getModuleCacheSize:()=>xt.size,getModuleCacheKeys:()=>Array.from(xt.keys())});const Xd=_("useApplicationIcon",e=>{const t=typeof e=="string"?Fi(e):xr(e==null?void 0:e.modules),n=Fo(t==null?void 0:t.name);return n==null?void 0:n.icon}),Jd=_("useModuleMenu",e=>{const t=xr(e==null?void 0:e.modules),n=Fo(t==null?void 0:t.name),[r,o]=W(!1),[s,i]=W({}),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 h=ef((e==null?void 0:e.operations)||[]),m=(await a()).map(g=>{const{operations:S,items:p,path:v}=g;if(S!=null&&S.length&&!h(S))return null;const y=(p||[]).filter(w=>{var x;return!((x=w==null?void 0:w.operations)!=null&&x.length)||h(w.operations)});return!y.length&&!v?null:{...g,items:y}}).filter(Boolean);return o(!1),m},l=async()=>{const h=await c();e&&i(m=>({...m,[e.name]:h}))};X(()=>{l()},[n==null?void 0:n.menu]);const f=De(()=>e?s[e.name]||[]:[],[s,e]);return{loading:r,menu:f}}),ef=e=>t=>t.every(n=>e.some(r=>r.name===n)),W0=_("useApplicationMenu",e=>Jd(e));function de(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function Kt(e){return function t(n){return arguments.length===0||de(n)?t:e.apply(this,arguments)}}function Et(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return de(n)?t:Kt(function(o){return e(n,o)});default:return de(n)&&de(r)?t:de(n)?Kt(function(o){return e(o,r)}):de(r)?Kt(function(o){return e(n,o)}):e(n,r)}}}function Bo(e){return function t(n,r,o){switch(arguments.length){case 0:return t;case 1:return de(n)?t:Et(function(s,i){return e(n,s,i)});case 2:return de(n)&&de(r)?t:de(n)?Et(function(s,i){return e(s,r,i)}):de(r)?Et(function(s,i){return e(n,s,i)}):Kt(function(s){return e(n,r,s)});default:return de(n)&&de(r)&&de(o)?t:de(n)&&de(r)?Et(function(s,i){return e(s,i,o)}):de(n)&&de(o)?Et(function(s,i){return e(s,r,i)}):de(r)&&de(o)?Et(function(s,i){return e(n,s,i)}):de(n)?Kt(function(s){return e(s,r,o)}):de(r)?Kt(function(s){return e(n,s,o)}):de(o)?Kt(function(s){return e(n,r,s)}):e(n,r,o)}}}function Er(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function Bi(e){return Object.prototype.toString.call(e)==="[object Object]"}var tf=Bo(function(t,n,r){var o=t(n),s=t(r);return o>s?-1:o<s?1:0}),nf=Bo(function(t,n,r){var o={},s;n=n||{},r=r||{};for(s in n)Er(s,n)&&(o[s]=Er(s,r)?t(s,n[s],r[s]):n[s]);for(s in r)Er(s,r)&&!Er(s,o)&&(o[s]=r[s]);return o}),rf=Bo(function e(t,n,r){return nf(function(o,s,i){return Bi(s)&&Bi(i)?e(t,s,i):t(o,s,i)},n,r)}),of=Et(function(t,n){return rf(function(r,o,s){return s},t,n)}),sf=Et(function(t,n){return Array.prototype.slice.call(n,0).sort(function(r,o){for(var s=0,i=0;s===0&&i<t.length;)s=t[i](r,o),i+=1;return s})});const Ui=_("useCurrentApplication",()=>{const e=Dd(),t=Kd();return De(()=>af(e,t),[e,t])}),af=(e,t)=>sf([tf(cf)],t).find(n=>n.route&&e.startsWith(n.route)),cf=e=>{var t;return((t=e==null?void 0:e.route)==null?void 0:t.length)||-1},lf=_("useCurrentApplicationName",()=>{var e;return(e=Ui())==null?void 0:e.name}),H0=_("useCurrentJSModule",()=>{const e=Ui(),t=Qd(e);return Fo(t==null?void 0:t.name)}),Wi=_("useServiceBaseURL",(e,t)=>{const r=Zn().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}),Hi=_("useServiceInvoker",(e,t)=>{const n=Wi(e,!!t)??t;return ce((r,o)=>{const i={Accept:"application/json",...(o==null?void 0:o.body)instanceof FormData?{}:{"Content-Type":"application/json"},...o==null?void 0:o.headers};return fetch(uf(`${n}${r}`),{...o,headers:i})},[n])}),uf=e=>e.replace(/\/+/g,"/"),df=["impersonate","impersonate-display-name","tenant"],ff=_("useServiceWebSocketURL",(e,t)=>{const n=Wi(e,t);return De(()=>{if(!n)return null;try{const r=new URL(window.location.href),o=new URL(n,window.location.origin);return df.forEach(s=>{const i=r.searchParams.get(s);i&&o.searchParams.set(s,i)}),o.toString()}catch(r){return console.error("Error building WebSocket URL:",r),n}},[n])}),hf=(e,t)=>n=>({timestamp:new Date(new Date().toUTCString()).toISOString(),module:t.name,moduleVersion:t.version,application:t.application,user:e.username,...n}),pf=(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(hf(t,n)))});if(!o.ok)throw new Error(`Error publishing habits event ${o.statusText}`)},mf="@bluealba/pae-habits-service",gf=_("useTrackEvents",()=>{const{authUser:e}=Sr(),t=Cr(),n=Hi(mf);return ce(pf(n,e,t),[n,e,t])}),V0=_("useTrackEvent",()=>{const e=gf();return ce((t,n)=>e([{name:t,data:n}]),[e])}),vf=_("useExtensionPoint",e=>{const t=Cr(),n=window[Oi],[r,o]=W(null);return X(()=>n.defineExtensionPoint(t,e,s=>{o(()=>s)}),[o]),r}),yf=_("useExtendExtensionPoint",(e,t,n)=>{X(()=>window[Oi].setExtensionPoint(e,t,n),[])}),bf=_("usePlatformEventListener",(e,t)=>{X(()=>(window.addEventListener(e,t),()=>window.removeEventListener(e,t)),[e,t])}),wf=_("useDynamicStyleSheet",e=>{X(()=>{if(!e)return;const t=e.includes("@layer")?e:`@layer pae.customization {
24
+ ${e}
25
+ }`;return wr.register(t)},[e])}),Cf=e=>{var t;return(t=e.split(/[#?]/)[0].split(".").pop())==null?void 0:t.trim()},Sf={woff2:"woff2",woff:"woff",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg"},xf=e=>{const t=Cf(e);return t?Sf[t]:void 0},Ef=(e,t)=>{const n=t??xf(e);return n?`format(${n})`:""};function Vi(e){const[t,n]=W(!1);return X(()=>{if(!(e!=null&&e.length))return;const r=document.createElement("style");r.setAttribute("data-generated-fonts","true");const o=e.flatMap(({fontFamily:i,variants:a})=>a.map(({path:c,fontWeight:l,format:f})=>`
24
26
  @font-face {
25
27
  font-family: "${i}";
26
- src: url("${l}") ${pf(l,f)};
27
- font-weight: ${u};
28
+ src: url("${c}") ${Ef(c,f)};
29
+ font-weight: ${l};
28
30
  font-style: normal;
29
31
  }
30
32
  `)).join(`
31
- `);return r.innerHTML=o,document.head.appendChild(r),(async()=>{try{await Promise.all(e.flatMap(({fontFamily:i,variants:a})=>a.map(({fontWeight:l})=>document.fonts.load(`normal ${l} 1em "${i}"`))))}finally{n(!0)}})(),()=>{document.head.removeChild(r)}},[e]),X(()=>{!t&&!(e!=null&&e.length)&&n(!0)},[e,t]),{fontsLoaded:t}}var Mo=function(e,t){return Mo=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])},Mo(e,t)};function Yn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Mo(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Je=function(){return Je=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Je.apply(this,arguments)};function Bi(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 $o(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 Fo(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,s=[],i;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(a){i={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s}function Cr(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function dt(e){return typeof e=="function"}function Ui(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=Ui(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
33
+ `);return r.innerHTML=o,document.head.appendChild(r),(async()=>{try{await Promise.all(e.flatMap(({fontFamily:i,variants:a})=>a.map(({fontWeight:c})=>document.fonts.load(`normal ${c} 1em "${i}"`))))}finally{n(!0)}})(),()=>{document.head.removeChild(r)}},[e]),X(()=>{!t&&!(e!=null&&e.length)&&n(!0)},[e,t]),{fontsLoaded:t}}var Uo=function(e,t){return Uo=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])},Uo(e,t)};function Jn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Uo(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Je=function(){return Je=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Je.apply(this,arguments)};function zi(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 Wo(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 Ho(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,s=[],i;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(a){i={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s}function _r(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function dt(e){return typeof e=="function"}function qi(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 Vo=qi(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
32
34
  `+n.map(function(r,o){return o+1+") "+r.toString()}).join(`
33
- `):"",this.name="UnsubscriptionError",this.errors=n}});function Uo(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Sr=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,s;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=$o(i),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(p){t={error:p}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else i.remove(this);var f=this.initialTeardown;if(dt(f))try{f()}catch(p){s=p instanceof Bo?p.errors:[p]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var m=$o(h),g=m.next();!g.done;g=m.next()){var x=g.value;try{Vi(x)}catch(p){s=s??[],p instanceof Bo?s=Cr(Cr([],Fo(s)),Fo(p.errors)):s.push(p)}}}catch(p){r={error:p}}finally{try{g&&!g.done&&(o=m.return)&&o.call(m)}finally{if(r)throw r.error}}}if(s)throw new Bo(s)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Vi(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)&&Uo(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Uo(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Wi=Sr.EMPTY;function Hi(e){return e instanceof Sr||e&&"closed"in e&&dt(e.remove)&&dt(e.add)&&dt(e.unsubscribe)}function Vi(e){dt(e)?e():e.unsubscribe()}var hf={Promise:void 0},mf={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,Cr([e,t],Fo(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function gf(e){mf.setTimeout(function(){throw e})}function zi(){}function Er(e){e()}var Gi=function(e){Yn(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,Hi(n)&&n.add(r)):r.destination=bf,r}return t.create=function(n,r,o){return new Wo(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}(Sr),vf=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){Tr(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){Tr(r)}else Tr(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Tr(n)}},e}(),Wo=function(e){Yn(t,e);function t(n,r,o){var s=e.call(this)||this,i;return dt(n)||!n?i={next:n??void 0,error:r??void 0,complete:o??void 0}:i=n,s.destination=new vf(i),s}return t}(Gi);function Tr(e){gf(e)}function yf(e){throw e}var bf={closed:!0,next:zi,error:yf,complete:zi},wf=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function _f(e){return e}function xf(e){return e.length===0?_f:e.length===1?e[0]:function(n){return e.reduce(function(r,o){return o(r)},n)}}var qi=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,s=Sf(t)?t:new Wo(t,n,r);return Er(function(){var i=o,a=i.operator,l=i.source;s.add(a?a.call(s,l):l?o._subscribe(s):o._trySubscribe(s))}),s},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=Ki(n),new n(function(o,s){var i=new Wo({next:function(a){try{t(a)}catch(l){s(l),i.unsubscribe()}},error:s,complete:o});r.subscribe(i)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[wf]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return xf(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=Ki(t),new t(function(r,o){var s;n.subscribe(function(i){return s=i},function(i){return o(i)},function(){return r(s)})})},e.create=function(t){return new e(t)},e}();function Ki(e){var t;return(t=e??hf.Promise)!==null&&t!==void 0?t:Promise}function Cf(e){return e&&dt(e.next)&&dt(e.error)&&dt(e.complete)}function Sf(e){return e&&e instanceof Gi||Cf(e)&&Hi(e)}var Ef=Ui(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Qi=function(e){Yn(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 Yi(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new Ef},t.prototype.next=function(n){var r=this;Er(function(){var o,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var i=$o(r.currentObservers),a=i.next();!a.done;a=i.next()){var l=a.value;l.next(n)}}catch(u){o={error:u}}finally{try{a&&!a.done&&(s=i.return)&&s.call(i)}finally{if(o)throw o.error}}}})},t.prototype.error=function(n){var r=this;Er(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;Er(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,s=o.hasError,i=o.isStopped,a=o.observers;return s||i?Wi:(this.currentObservers=null,a.push(n),new Sr(function(){r.currentObservers=null,Uo(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,o=r.hasError,s=r.thrownError,i=r.isStopped;o?n.error(s):i&&n.complete()},t.prototype.asObservable=function(){var n=new qi;return n.source=this,n},t.create=function(n,r){return new Yi(n,r)},t}(qi),Yi=function(e){Yn(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:Wi},t}(Qi),Tf=function(e){Yn(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,s=n._value;if(r)throw o;return this._throwIfClosed(),s},t.prototype.next=function(n){e.prototype.next.call(this,this._value=n)},t}(Qi);const O0=E("usePlatformCustomization",e=>{const{fontsLoaded:t}=Fi(e.fonts);cf(e.styleSheet);const n=()=>{const r=new Tf(!0);window[jo]=r};X(()=>{t&&window[jo].next(!1)},[t]),X(()=>{n()},[])}),I0=E("usePAECustomizationsLoadingState",()=>{const e=window[jo];return Ei(e,e.getValue()??void 0)}),Ho="theme",Zi=()=>document.documentElement.dataset[Ho]==="dark"?"dark":"light",j0=E("useGetPlatformTheme",()=>{const[e,t]=W(Zi());return X(()=>{const n=document.documentElement,r=()=>t(Zi),o=new MutationObserver(s=>{for(const i of s)i.type==="attributes"&&i.attributeName===`data-${Ho}`&&r()});return o.observe(n,{attributes:!0,attributeFilter:[`data-${Ho}`]}),r(),()=>{o.disconnect()}},[]),e}),k0=E("platformHaveAnyCustomization",e=>e!==void 0),L0=E("isPlatformCustomizationCompleted",e=>e!==!0);let Rf={data:""},Pf=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||Rf},Af=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Of=/\/\*[^]*?\*\/| +/g,Xi=/\n+/g,Et=(e,t)=>{let n="",r="",o="";for(let s in e){let i=e[s];s[0]=="@"?s[1]=="i"?n=s+" "+i+";":r+=s[1]=="f"?Et(i,s):s+"{"+Et(i,s[1]=="k"?"":t)+"}":typeof i=="object"?r+=Et(i,t?t.replace(/([^,])+/g,a=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):s):i!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Et.p?Et.p(s,i):s+":"+i+";")}return n+(t&&o?t+"{"+o+"}":o)+r},ft={},Ji=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Ji(e[n]);return t}return e},If=(e,t,n,r,o)=>{let s=Ji(e),i=ft[s]||(ft[s]=(l=>{let u=0,f=11;for(;u<l.length;)f=101*f+l.charCodeAt(u++)>>>0;return"go"+f})(s));if(!ft[i]){let l=s!==e?e:(u=>{let f,h,m=[{}];for(;f=Af.exec(u.replace(Of,""));)f[4]?m.shift():f[3]?(h=f[3].replace(Xi," ").trim(),m.unshift(m[0][h]=m[0][h]||{})):m[0][f[1]]=f[2].replace(Xi," ").trim();return m[0]})(e);ft[i]=Et(o?{["@keyframes "+i]:l}:l,n?"":"."+i)}let a=n&&ft.g?ft.g:null;return n&&(ft.g=ft[i]),((l,u,f,h)=>{h?u.data=u.data.replace(h,l):u.data.indexOf(l)===-1&&(u.data=f?l+u.data:u.data+l)})(ft[i],t,r,a),i},jf=(e,t,n)=>e.reduce((r,o,s)=>{let i=t[s];if(i&&i.call){let a=i(n),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;i=l?"."+l:a&&typeof a=="object"?a.props?"":Et(a,""):a===!1?"":a}return r+o+(i??"")},"");function Rr(e){let t=this||{},n=e.call?e(t.p):e;return If(n.unshift?n.raw?jf(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,Pf(t.target),t.g,t.o,t.k)}let ea,Vo,zo;Rr.bind({g:1});let pt=Rr.bind({k:1});function kf(e,t,n,r){Et.p=t,ea=e,Vo=n,zo=r}function Tt(e,t){let n=this||{};return function(){let r=arguments;function o(s,i){let a=Object.assign({},s),l=a.className||o.className;n.p=Object.assign({theme:Vo&&Vo()},a),n.o=/ *go\d+/.test(l),a.className=Rr.apply(n,r)+(l?" "+l:"");let u=e;return e[0]&&(u=a.as||e,delete a.as),zo&&u[0]&&zo(a),ea(u,a)}return o}}var Lf=e=>typeof e=="function",Pr=(e,t)=>Lf(e)?e(t):e,Df=(()=>{let e=0;return()=>(++e).toString()})(),ta=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Nf=20,Ar=new Map,Mf=1e3,na=e=>{if(Ar.has(e))return;let t=setTimeout(()=>{Ar.delete(e),Qt({type:4,toastId:e})},Mf);Ar.set(e,t)},$f=e=>{let t=Ar.get(e);t&&clearTimeout(t)},Go=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Nf)};case 1:return t.toast.id&&$f(t.toast.id),{...e,toasts:e.toasts.map(s=>s.id===t.toast.id?{...s,...t.toast}:s)};case 2:let{toast:n}=t;return e.toasts.find(s=>s.id===n.id)?Go(e,{type:1,toast:n}):Go(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?na(r):e.toasts.forEach(s=>{na(s.id)}),{...e,toasts:e.toasts.map(s=>s.id===r||r===void 0?{...s,visible:!1}:s)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(s=>s.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(s=>({...s,pauseDuration:s.pauseDuration+o}))}}},Or=[],Ir={toasts:[],pausedAt:void 0},Qt=e=>{Ir=Go(Ir,e),Or.forEach(t=>{t(Ir)})},Ff={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Bf=(e={})=>{let[t,n]=W(Ir);X(()=>(Or.push(n),()=>{let o=Or.indexOf(n);o>-1&&Or.splice(o,1)}),[t]);let r=t.toasts.map(o=>{var s,i;return{...e,...e[o.type],...o,duration:o.duration||((s=e[o.type])==null?void 0:s.duration)||(e==null?void 0:e.duration)||Ff[o.type],style:{...e.style,...(i=e[o.type])==null?void 0:i.style,...o.style}}});return{...t,toasts:r}},Uf=(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)||Df()}),Zn=e=>(t,n)=>{let r=Uf(t,e,n);return Qt({type:2,toast:r}),r.id},Le=(e,t)=>Zn("blank")(e,t);Le.error=Zn("error"),Le.success=Zn("success"),Le.loading=Zn("loading"),Le.custom=Zn("custom"),Le.dismiss=e=>{Qt({type:3,toastId:e})},Le.remove=e=>Qt({type:4,toastId:e}),Le.promise=(e,t,n)=>{let r=Le.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(o=>(Le.success(Pr(t.success,o),{id:r,...n,...n==null?void 0:n.success}),o)).catch(o=>{Le.error(Pr(t.error,o),{id:r,...n,...n==null?void 0:n.error})}),e};var Wf=(e,t)=>{Qt({type:1,toast:{id:e,height:t}})},Hf=()=>{Qt({type:5,time:Date.now()})},Vf=e=>{let{toasts:t,pausedAt:n}=Bf(e);X(()=>{if(n)return;let s=Date.now(),i=t.map(a=>{if(a.duration===1/0)return;let l=(a.duration||0)+a.pauseDuration-(s-a.createdAt);if(l<0){a.visible&&Le.dismiss(a.id);return}return setTimeout(()=>Le.dismiss(a.id),l)});return()=>{i.forEach(a=>a&&clearTimeout(a))}},[t,n]);let r=fe(()=>{n&&Qt({type:6,time:Date.now()})},[n]),o=fe((s,i)=>{let{reverseOrder:a=!1,gutter:l=8,defaultPosition:u}=i||{},f=t.filter(g=>(g.position||u)===(s.position||u)&&g.height),h=f.findIndex(g=>g.id===s.id),m=f.filter((g,x)=>x<h&&g.visible).length;return f.filter(g=>g.visible).slice(...a?[m+1]:[0,m]).reduce((g,x)=>g+(x.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:Wf,startPause:Hf,endPause:r,calculateOffset:o}}},zf=pt`
35
+ `):"",this.name="UnsubscriptionError",this.errors=n}});function zo(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,s;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=Wo(i),c=a.next();!c.done;c=a.next()){var l=c.value;l.remove(this)}}catch(p){t={error:p}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else i.remove(this);var f=this.initialTeardown;if(dt(f))try{f()}catch(p){s=p instanceof Vo?p.errors:[p]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var m=Wo(h),g=m.next();!g.done;g=m.next()){var S=g.value;try{Qi(S)}catch(p){s=s??[],p instanceof Vo?s=_r(_r([],Ho(s)),Ho(p.errors)):s.push(p)}}}catch(p){r={error:p}}finally{try{g&&!g.done&&(o=m.return)&&o.call(m)}finally{if(r)throw r.error}}}if(s)throw new Vo(s)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Qi(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)&&zo(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&zo(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Gi=Tr.EMPTY;function Ki(e){return e instanceof Tr||e&&"closed"in e&&dt(e.remove)&&dt(e.add)&&dt(e.unsubscribe)}function Qi(e){dt(e)?e():e.unsubscribe()}var _f={Promise:void 0},Tf={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,_r([e,t],Ho(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Rf(e){Tf.setTimeout(function(){throw e})}function Yi(){}function Rr(e){e()}var Zi=function(e){Jn(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,Ki(n)&&n.add(r)):r.destination=Of,r}return t.create=function(n,r,o){return new qo(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),Pf=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){Pr(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){Pr(r)}else Pr(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Pr(n)}},e}(),qo=function(e){Jn(t,e);function t(n,r,o){var s=e.call(this)||this,i;return dt(n)||!n?i={next:n??void 0,error:r??void 0,complete:o??void 0}:i=n,s.destination=new Pf(i),s}return t}(Zi);function Pr(e){Rf(e)}function Af(e){throw e}var Of={closed:!0,next:Yi,error:Af,complete:Yi},jf=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function If(e){return e}function Df(e){return e.length===0?If:e.length===1?e[0]:function(n){return e.reduce(function(r,o){return o(r)},n)}}var Xi=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,s=Nf(t)?t:new qo(t,n,r);return Rr(function(){var i=o,a=i.operator,c=i.source;s.add(a?a.call(s,c):c?o._subscribe(s):o._trySubscribe(s))}),s},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=Ji(n),new n(function(o,s){var i=new qo({next:function(a){try{t(a)}catch(c){s(c),i.unsubscribe()}},error:s,complete:o});r.subscribe(i)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[jf]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Df(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=Ji(t),new t(function(r,o){var s;n.subscribe(function(i){return s=i},function(i){return o(i)},function(){return r(s)})})},e.create=function(t){return new e(t)},e}();function Ji(e){var t;return(t=e??_f.Promise)!==null&&t!==void 0?t:Promise}function Lf(e){return e&&dt(e.next)&&dt(e.error)&&dt(e.complete)}function Nf(e){return e&&e instanceof Zi||Lf(e)&&Ki(e)}var Mf=qi(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ea=function(e){Jn(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 ta(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new Mf},t.prototype.next=function(n){var r=this;Rr(function(){var o,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var i=Wo(r.currentObservers),a=i.next();!a.done;a=i.next()){var c=a.value;c.next(n)}}catch(l){o={error:l}}finally{try{a&&!a.done&&(s=i.return)&&s.call(i)}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,s=o.hasError,i=o.isStopped,a=o.observers;return s||i?Gi:(this.currentObservers=null,a.push(n),new Tr(function(){r.currentObservers=null,zo(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,o=r.hasError,s=r.thrownError,i=r.isStopped;o?n.error(s):i&&n.complete()},t.prototype.asObservable=function(){var n=new Xi;return n.source=this,n},t.create=function(n,r){return new ta(n,r)},t}(Xi),ta=function(e){Jn(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:Gi},t}(ea),$f=function(e){Jn(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,s=n._value;if(r)throw o;return this._throwIfClosed(),s},t.prototype.next=function(n){e.prototype.next.call(this,this._value=n)},t}(ea);const z0=_("usePlatformCustomization",e=>{const{fontsLoaded:t}=Vi(e.fonts);wf(e.styleSheet);const n=()=>{const r=new $f(!0);window[Mo]=r};X(()=>{t&&window[Mo].next(!1)},[t]),X(()=>{n()},[])}),q0=_("usePAECustomizationsLoadingState",()=>{const e=window[Mo];return ji(e,e.getValue()??void 0)}),Go="theme",na=()=>document.documentElement.dataset[Go]==="dark"?"dark":"light",G0=_("useGetPlatformTheme",()=>{const[e,t]=W(na());return X(()=>{const n=document.documentElement,r=()=>t(na),o=new MutationObserver(s=>{for(const i of s)i.type==="attributes"&&i.attributeName===`data-${Go}`&&r()});return o.observe(n,{attributes:!0,attributeFilter:[`data-${Go}`]}),r(),()=>{o.disconnect()}},[]),e}),K0=_("platformHaveAnyCustomization",e=>e!==void 0),Q0=_("isPlatformCustomizationCompleted",e=>e!==!0);let kf={data:""},Ff=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||kf},Bf=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Uf=/\/\*[^]*?\*\/| +/g,ra=/\n+/g,_t=(e,t)=>{let n="",r="",o="";for(let s in e){let i=e[s];s[0]=="@"?s[1]=="i"?n=s+" "+i+";":r+=s[1]=="f"?_t(i,s):s+"{"+_t(i,s[1]=="k"?"":t)+"}":typeof i=="object"?r+=_t(i,t?t.replace(/([^,])+/g,a=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,a):a?a+" "+c:c)):s):i!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=_t.p?_t.p(s,i):s+":"+i+";")}return n+(t&&o?t+"{"+o+"}":o)+r},ft={},oa=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+oa(e[n]);return t}return e},Wf=(e,t,n,r,o)=>{let s=oa(e),i=ft[s]||(ft[s]=(c=>{let l=0,f=11;for(;l<c.length;)f=101*f+c.charCodeAt(l++)>>>0;return"go"+f})(s));if(!ft[i]){let c=s!==e?e:(l=>{let f,h,m=[{}];for(;f=Bf.exec(l.replace(Uf,""));)f[4]?m.shift():f[3]?(h=f[3].replace(ra," ").trim(),m.unshift(m[0][h]=m[0][h]||{})):m[0][f[1]]=f[2].replace(ra," ").trim();return m[0]})(e);ft[i]=_t(o?{["@keyframes "+i]:c}:c,n?"":"."+i)}let a=n&&ft.g?ft.g:null;return n&&(ft.g=ft[i]),((c,l,f,h)=>{h?l.data=l.data.replace(h,c):l.data.indexOf(c)===-1&&(l.data=f?c+l.data:l.data+c)})(ft[i],t,r,a),i},Hf=(e,t,n)=>e.reduce((r,o,s)=>{let i=t[s];if(i&&i.call){let a=i(n),c=a&&a.props&&a.props.className||/^go/.test(a)&&a;i=c?"."+c:a&&typeof a=="object"?a.props?"":_t(a,""):a===!1?"":a}return r+o+(i??"")},"");function Ar(e){let t=this||{},n=e.call?e(t.p):e;return Wf(n.unshift?n.raw?Hf(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,Ff(t.target),t.g,t.o,t.k)}let sa,Ko,Qo;Ar.bind({g:1});let ht=Ar.bind({k:1});function Vf(e,t,n,r){_t.p=t,sa=e,Ko=n,Qo=r}function Tt(e,t){let n=this||{};return function(){let r=arguments;function o(s,i){let a=Object.assign({},s),c=a.className||o.className;n.p=Object.assign({theme:Ko&&Ko()},a),n.o=/ *go\d+/.test(c),a.className=Ar.apply(n,r)+(c?" "+c:"");let l=e;return e[0]&&(l=a.as||e,delete a.as),Qo&&l[0]&&Qo(a),sa(l,a)}return o}}var zf=e=>typeof e=="function",Or=(e,t)=>zf(e)?e(t):e,qf=(()=>{let e=0;return()=>(++e).toString()})(),ia=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Gf=20,jr=new Map,Kf=1e3,aa=e=>{if(jr.has(e))return;let t=setTimeout(()=>{jr.delete(e),Qt({type:4,toastId:e})},Kf);jr.set(e,t)},Qf=e=>{let t=jr.get(e);t&&clearTimeout(t)},Yo=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Gf)};case 1:return t.toast.id&&Qf(t.toast.id),{...e,toasts:e.toasts.map(s=>s.id===t.toast.id?{...s,...t.toast}:s)};case 2:let{toast:n}=t;return e.toasts.find(s=>s.id===n.id)?Yo(e,{type:1,toast:n}):Yo(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?aa(r):e.toasts.forEach(s=>{aa(s.id)}),{...e,toasts:e.toasts.map(s=>s.id===r||r===void 0?{...s,visible:!1}:s)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(s=>s.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(s=>({...s,pauseDuration:s.pauseDuration+o}))}}},Ir=[],Dr={toasts:[],pausedAt:void 0},Qt=e=>{Dr=Yo(Dr,e),Ir.forEach(t=>{t(Dr)})},Yf={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Zf=(e={})=>{let[t,n]=W(Dr);X(()=>(Ir.push(n),()=>{let o=Ir.indexOf(n);o>-1&&Ir.splice(o,1)}),[t]);let r=t.toasts.map(o=>{var s,i;return{...e,...e[o.type],...o,duration:o.duration||((s=e[o.type])==null?void 0:s.duration)||(e==null?void 0:e.duration)||Yf[o.type],style:{...e.style,...(i=e[o.type])==null?void 0:i.style,...o.style}}});return{...t,toasts:r}},Xf=(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)||qf()}),er=e=>(t,n)=>{let r=Xf(t,e,n);return Qt({type:2,toast:r}),r.id},Le=(e,t)=>er("blank")(e,t);Le.error=er("error"),Le.success=er("success"),Le.loading=er("loading"),Le.custom=er("custom"),Le.dismiss=e=>{Qt({type:3,toastId:e})},Le.remove=e=>Qt({type:4,toastId:e}),Le.promise=(e,t,n)=>{let r=Le.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(o=>(Le.success(Or(t.success,o),{id:r,...n,...n==null?void 0:n.success}),o)).catch(o=>{Le.error(Or(t.error,o),{id:r,...n,...n==null?void 0:n.error})}),e};var Jf=(e,t)=>{Qt({type:1,toast:{id:e,height:t}})},eh=()=>{Qt({type:5,time:Date.now()})},th=e=>{let{toasts:t,pausedAt:n}=Zf(e);X(()=>{if(n)return;let s=Date.now(),i=t.map(a=>{if(a.duration===1/0)return;let c=(a.duration||0)+a.pauseDuration-(s-a.createdAt);if(c<0){a.visible&&Le.dismiss(a.id);return}return setTimeout(()=>Le.dismiss(a.id),c)});return()=>{i.forEach(a=>a&&clearTimeout(a))}},[t,n]);let r=ce(()=>{n&&Qt({type:6,time:Date.now()})},[n]),o=ce((s,i)=>{let{reverseOrder:a=!1,gutter:c=8,defaultPosition:l}=i||{},f=t.filter(g=>(g.position||l)===(s.position||l)&&g.height),h=f.findIndex(g=>g.id===s.id),m=f.filter((g,S)=>S<h&&g.visible).length;return f.filter(g=>g.visible).slice(...a?[m+1]:[0,m]).reduce((g,S)=>g+(S.height||0)+c,0)},[t]);return{toasts:t,handlers:{updateHeight:Jf,startPause:eh,endPause:r,calculateOffset:o}}},nh=ht`
34
36
  from {
35
37
  transform: scale(0) rotate(45deg);
36
38
  opacity: 0;
@@ -38,7 +40,7 @@ from {
38
40
  to {
39
41
  transform: scale(1) rotate(45deg);
40
42
  opacity: 1;
41
- }`,Gf=pt`
43
+ }`,rh=ht`
42
44
  from {
43
45
  transform: scale(0);
44
46
  opacity: 0;
@@ -46,7 +48,7 @@ from {
46
48
  to {
47
49
  transform: scale(1);
48
50
  opacity: 1;
49
- }`,qf=pt`
51
+ }`,oh=ht`
50
52
  from {
51
53
  transform: scale(0) rotate(90deg);
52
54
  opacity: 0;
@@ -54,7 +56,7 @@ from {
54
56
  to {
55
57
  transform: scale(1) rotate(90deg);
56
58
  opacity: 1;
57
- }`,Kf=Tt("div")`
59
+ }`,sh=Tt("div")`
58
60
  width: 20px;
59
61
  opacity: 0;
60
62
  height: 20px;
@@ -63,14 +65,14 @@ to {
63
65
  position: relative;
64
66
  transform: rotate(45deg);
65
67
 
66
- animation: ${zf} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
68
+ animation: ${nh} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
67
69
  forwards;
68
70
  animation-delay: 100ms;
69
71
 
70
72
  &:after,
71
73
  &:before {
72
74
  content: '';
73
- animation: ${Gf} 0.15s ease-out forwards;
75
+ animation: ${rh} 0.15s ease-out forwards;
74
76
  animation-delay: 150ms;
75
77
  position: absolute;
76
78
  border-radius: 3px;
@@ -83,18 +85,18 @@ to {
83
85
  }
84
86
 
85
87
  &:before {
86
- animation: ${qf} 0.15s ease-out forwards;
88
+ animation: ${oh} 0.15s ease-out forwards;
87
89
  animation-delay: 180ms;
88
90
  transform: rotate(90deg);
89
91
  }
90
- `,Qf=pt`
92
+ `,ih=ht`
91
93
  from {
92
94
  transform: rotate(0deg);
93
95
  }
94
96
  to {
95
97
  transform: rotate(360deg);
96
98
  }
97
- `,Yf=Tt("div")`
99
+ `,ah=Tt("div")`
98
100
  width: 12px;
99
101
  height: 12px;
100
102
  box-sizing: border-box;
@@ -102,8 +104,8 @@ to {
102
104
  border-radius: 100%;
103
105
  border-color: ${e=>e.secondary||"#e0e0e0"};
104
106
  border-right-color: ${e=>e.primary||"#616161"};
105
- animation: ${Qf} 1s linear infinite;
106
- `,Zf=pt`
107
+ animation: ${ih} 1s linear infinite;
108
+ `,ch=ht`
107
109
  from {
108
110
  transform: scale(0) rotate(45deg);
109
111
  opacity: 0;
@@ -111,7 +113,7 @@ from {
111
113
  to {
112
114
  transform: scale(1) rotate(45deg);
113
115
  opacity: 1;
114
- }`,Xf=pt`
116
+ }`,lh=ht`
115
117
  0% {
116
118
  height: 0;
117
119
  width: 0;
@@ -125,7 +127,7 @@ to {
125
127
  100% {
126
128
  opacity: 1;
127
129
  height: 10px;
128
- }`,Jf=Tt("div")`
130
+ }`,uh=Tt("div")`
129
131
  width: 20px;
130
132
  opacity: 0;
131
133
  height: 20px;
@@ -134,13 +136,13 @@ to {
134
136
  position: relative;
135
137
  transform: rotate(45deg);
136
138
 
137
- animation: ${Zf} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
139
+ animation: ${ch} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
138
140
  forwards;
139
141
  animation-delay: 100ms;
140
142
  &:after {
141
143
  content: '';
142
144
  box-sizing: border-box;
143
- animation: ${Xf} 0.2s ease-out forwards;
145
+ animation: ${lh} 0.2s ease-out forwards;
144
146
  opacity: 0;
145
147
  animation-delay: 200ms;
146
148
  position: absolute;
@@ -152,16 +154,16 @@ to {
152
154
  height: 10px;
153
155
  width: 6px;
154
156
  }
155
- `,ep=Tt("div")`
157
+ `,dh=Tt("div")`
156
158
  position: absolute;
157
- `,tp=Tt("div")`
159
+ `,fh=Tt("div")`
158
160
  position: relative;
159
161
  display: flex;
160
162
  justify-content: center;
161
163
  align-items: center;
162
164
  min-width: 20px;
163
165
  min-height: 20px;
164
- `,np=pt`
166
+ `,hh=ht`
165
167
  from {
166
168
  transform: scale(0.6);
167
169
  opacity: 0.4;
@@ -169,20 +171,20 @@ from {
169
171
  to {
170
172
  transform: scale(1);
171
173
  opacity: 1;
172
- }`,rp=Tt("div")`
174
+ }`,ph=Tt("div")`
173
175
  position: relative;
174
176
  transform: scale(0.6);
175
177
  opacity: 0.4;
176
178
  min-width: 20px;
177
- animation: ${np} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
179
+ animation: ${hh} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
178
180
  forwards;
179
- `,op=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?d.createElement(rp,null,t):t:n==="blank"?null:d.createElement(tp,null,d.createElement(Yf,{...r}),n!=="loading"&&d.createElement(ep,null,n==="error"?d.createElement(Kf,{...r}):d.createElement(Jf,{...r})))},sp=e=>`
181
+ `,mh=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?d.createElement(ph,null,t):t:n==="blank"?null:d.createElement(fh,null,d.createElement(ah,{...r}),n!=="loading"&&d.createElement(dh,null,n==="error"?d.createElement(sh,{...r}):d.createElement(uh,{...r})))},gh=e=>`
180
182
  0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
181
183
  100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
182
- `,ip=e=>`
184
+ `,vh=e=>`
183
185
  0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
184
186
  100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
185
- `,ap="0%{opacity:0;} 100%{opacity:1;}",lp="0%{opacity:1;} 100%{opacity:0;}",cp=Tt("div")`
187
+ `,yh="0%{opacity:0;} 100%{opacity:1;}",bh="0%{opacity:1;} 100%{opacity:0;}",wh=Tt("div")`
186
188
  display: flex;
187
189
  align-items: center;
188
190
  background: #fff;
@@ -194,24 +196,24 @@ to {
194
196
  pointer-events: auto;
195
197
  padding: 8px 10px;
196
198
  border-radius: 8px;
197
- `,up=Tt("div")`
199
+ `,Ch=Tt("div")`
198
200
  display: flex;
199
201
  justify-content: center;
200
202
  margin: 4px 10px;
201
203
  color: inherit;
202
204
  flex: 1 1 auto;
203
205
  white-space: pre-line;
204
- `,dp=(e,t)=>{let n=e.includes("top")?1:-1,[r,o]=ta()?[ap,lp]:[sp(n),ip(n)];return{animation:t?`${pt(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${pt(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},fp=d.memo(({toast:e,position:t,style:n,children:r})=>{let o=e.height?dp(e.position||t||"top-center",e.visible):{opacity:0},s=d.createElement(op,{toast:e}),i=d.createElement(up,{...e.ariaProps},Pr(e.message,e));return d.createElement(cp,{className:e.className,style:{...o,...n,...e.style}},typeof r=="function"?r({icon:s,message:i}):d.createElement(d.Fragment,null,s,i))});kf(d.createElement);var pp=({id:e,className:t,style:n,onHeightUpdate:r,children:o})=>{let s=d.useCallback(i=>{if(i){let a=()=>{let l=i.getBoundingClientRect().height;r(e,l)};a(),new MutationObserver(a).observe(i,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return d.createElement("div",{ref:s,className:t,style:n},o)},hp=(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:ta()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}},mp=Rr`
206
+ `,Sh=(e,t)=>{let n=e.includes("top")?1:-1,[r,o]=ia()?[yh,bh]:[gh(n),vh(n)];return{animation:t?`${ht(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${ht(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},xh=d.memo(({toast:e,position:t,style:n,children:r})=>{let o=e.height?Sh(e.position||t||"top-center",e.visible):{opacity:0},s=d.createElement(mh,{toast:e}),i=d.createElement(Ch,{...e.ariaProps},Or(e.message,e));return d.createElement(wh,{className:e.className,style:{...o,...n,...e.style}},typeof r=="function"?r({icon:s,message:i}):d.createElement(d.Fragment,null,s,i))});Vf(d.createElement);var Eh=({id:e,className:t,style:n,onHeightUpdate:r,children:o})=>{let s=d.useCallback(i=>{if(i){let a=()=>{let c=i.getBoundingClientRect().height;r(e,c)};a(),new MutationObserver(a).observe(i,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return d.createElement("div",{ref:s,className:t,style:n},o)},_h=(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:ia()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}},Th=Ar`
205
207
  z-index: 9999;
206
208
  > * {
207
209
  pointer-events: auto;
208
210
  }
209
- `,jr=16,gp=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,containerStyle:s,containerClassName:i})=>{let{toasts:a,handlers:l}=Vf(n);return d.createElement("div",{style:{position:"fixed",zIndex:9999,top:jr,left:jr,right:jr,bottom:jr,pointerEvents:"none",...s},className:i,onMouseEnter:l.startPause,onMouseLeave:l.endPause},a.map(u=>{let f=u.position||t,h=l.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),m=hp(f,h);return d.createElement(pp,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?mp:"",style:m},u.type==="custom"?Pr(u.message,u):o?o(u):d.createElement(fp,{toast:u,position:f}))}))},ra=Le;const oa=E("useNotifications",()=>({notify:fe((t,n,r)=>{const o={style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}};n==="warning"||n==="info"?ra(t,{...o,icon:n==="warning"?"⚠️":"ℹ️"}):ra[n](t,o),r&&console.error(r)},[])}));var vn=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(){}},Yt=typeof window>"u"||"Deno"in globalThis;function Ce(){}function vp(e,t){return typeof e=="function"?e(t):e}function qo(e){return typeof e=="number"&&e>=0&&e!==1/0}function sa(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Rt(e,t){return typeof e=="function"?e(t):e}function He(e,t){return typeof e=="function"?e(t):e}function ia(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==Ko(i,t.options))return!1}else if(!Xn(t.queryKey,i))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function aa(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Zt(t.options.mutationKey)!==Zt(s))return!1}else if(!Xn(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Ko(e,t){return((t==null?void 0:t.queryKeyHashFn)||Zt)(e)}function Zt(e){return JSON.stringify(e,(t,n)=>Yo(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Xn(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Xn(e[n],t[n])):!1}function Qo(e,t){if(e===t)return e;const n=la(e)&&la(t);if(n||Yo(e)&&Yo(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,a=n?[]:{};let l=0;for(let u=0;u<i;u++){const f=n?u:s[u];(!n&&r.includes(f)||n)&&e[f]===void 0&&t[f]===void 0?(a[f]=void 0,l++):(a[f]=Qo(e[f],t[f]),a[f]===e[f]&&e[f]!==void 0&&l++)}return o===i&&l===o?e:a}return t}function kr(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 la(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Yo(e){if(!ca(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!ca(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function ca(e){return Object.prototype.toString.call(e)==="[object Object]"}function yp(e){return new Promise(t=>{setTimeout(t,e)})}function Zo(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){try{return Qo(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 Qo(e,t)}return t}function bp(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function wp(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Lr=Symbol();function ua(e,t){return e.queryFn===Lr&&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===Lr?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function da(e,t){return typeof e=="function"?e(...t):!!e}var _p=(Qu=class extends vn{constructor(){super();N(this,ln);N(this,kt);N(this,In);O(this,In,t=>{if(!Yt&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){_(this,kt)||this.setEventListener(_(this,In))}onUnsubscribe(){var t;this.hasListeners()||((t=_(this,kt))==null||t.call(this),O(this,kt,void 0))}setEventListener(t){var n;O(this,In,t),(n=_(this,kt))==null||n.call(this),O(this,kt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){_(this,ln)!==t&&(O(this,ln,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof _(this,ln)=="boolean"?_(this,ln):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ln=new WeakMap,kt=new WeakMap,In=new WeakMap,Qu),Xo=new _p,xp=(Yu=class extends vn{constructor(){super();N(this,jn,!0);N(this,Lt);N(this,kn);O(this,kn,t=>{if(!Yt&&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(){_(this,Lt)||this.setEventListener(_(this,kn))}onUnsubscribe(){var t;this.hasListeners()||((t=_(this,Lt))==null||t.call(this),O(this,Lt,void 0))}setEventListener(t){var n;O(this,kn,t),(n=_(this,Lt))==null||n.call(this),O(this,Lt,t(this.setOnline.bind(this)))}setOnline(t){_(this,jn)!==t&&(O(this,jn,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return _(this,jn)}},jn=new WeakMap,Lt=new WeakMap,kn=new WeakMap,Yu),Dr=new xp;function Jo(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});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 Cp(e){return Math.min(1e3*2**e,3e4)}function fa(e){return(e??"online")==="online"?Dr.isOnline():!0}var pa=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function es(e){return e instanceof pa}function ha(e){let t=!1,n=0,r=!1,o;const s=Jo(),i=p=>{var v;r||(m(new pa(p)),(v=e.abort)==null||v.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>Xo.isFocused()&&(e.networkMode==="always"||Dr.isOnline())&&e.canRun(),f=()=>fa(e.networkMode)&&e.canRun(),h=p=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,p),o==null||o(),s.resolve(p))},m=p=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,p),o==null||o(),s.reject(p))},g=()=>new Promise(p=>{var v;o=y=>{(r||u())&&p(y)},(v=e.onPause)==null||v.call(e)}).then(()=>{var p;o=void 0,r||(p=e.onContinue)==null||p.call(e)}),x=()=>{if(r)return;let p;const v=n===0?e.initialPromise:void 0;try{p=v??e.fn()}catch(y){p=Promise.reject(y)}Promise.resolve(p).then(h).catch(y=>{var R;if(r)return;const w=e.retry??(Yt?0:3),C=e.retryDelay??Cp,S=typeof C=="function"?C(n,y):C,T=w===!0||typeof w=="number"&&n<w||typeof w=="function"&&w(n,y);if(t||!T){m(y);return}n++,(R=e.onFail)==null||R.call(e,n,y),yp(S).then(()=>u()?void 0:g()).then(()=>{t?m(y):x()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:a,continueRetry:l,canStart:f,start:()=>(f()?x():g().then(x),s)}}var Sp=e=>setTimeout(e,0);function Ep(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=Sp;const s=a=>{t?e.push(a):o(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||i()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var ye=Ep(),ma=(Zu=class{constructor(){N(this,cn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),qo(this.gcTime)&&O(this,cn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Yt?1/0:5*60*1e3))}clearGcTimeout(){_(this,cn)&&(clearTimeout(_(this,cn)),O(this,cn,void 0))}},cn=new WeakMap,Zu),Tp=(Xu=class extends ma{constructor(t){super();N(this,Qe);N(this,Ln);N(this,Dn);N(this,Me);N(this,un);N(this,xe);N(this,ur);N(this,dn);O(this,dn,!1),O(this,ur,t.defaultOptions),this.setOptions(t.options),this.observers=[],O(this,un,t.client),O(this,Me,_(this,un).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,O(this,Ln,Rp(this.options)),this.state=t.state??_(this,Ln),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=_(this,xe))==null?void 0:t.promise}setOptions(t){this.options={..._(this,ur),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&_(this,Me).remove(this)}setData(t,n){const r=Zo(this.state.data,t,this.options);return V(this,Qe,xt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){V(this,Qe,xt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=_(this,xe))==null?void 0:r.promise;return(o=_(this,xe))==null||o.cancel(t),n?n.then(Ce).catch(Ce):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(_(this,Ln))}isActive(){return this.observers.some(t=>He(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Lr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Rt(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:!sa(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=_(this,xe))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=_(this,xe))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),_(this,Me).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(_(this,xe)&&(_(this,dn)?_(this,xe).cancel({revert:!0}):_(this,xe).cancelRetry()),this.scheduleGc()),_(this,Me).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||V(this,Qe,xt).call(this,{type:"invalidate"})}fetch(t,n){var u,f,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(_(this,xe))return _(this,xe).continueRetry(),_(this,xe).promise}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(g=>g.options.queryFn);m&&this.setOptions(m.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=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(O(this,dn,!0),r.signal)})},s=()=>{const m=ua(this.options,n),x=(()=>{const p={client:_(this,un),queryKey:this.queryKey,meta:this.meta};return o(p),p})();return O(this,dn,!1),this.options.persister?this.options.persister(m,x,this):m(x)},a=(()=>{const m={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:_(this,un),state:this.state,fetchFn:s};return o(m),m})();(u=this.options.behavior)==null||u.onFetch(a,this),O(this,Dn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=a.fetchOptions)==null?void 0:f.meta))&&V(this,Qe,xt).call(this,{type:"fetch",meta:(h=a.fetchOptions)==null?void 0:h.meta});const l=m=>{var g,x,p,v;es(m)&&m.silent||V(this,Qe,xt).call(this,{type:"error",error:m}),es(m)||((x=(g=_(this,Me).config).onError)==null||x.call(g,m,this),(v=(p=_(this,Me).config).onSettled)==null||v.call(p,this.state.data,m,this)),this.scheduleGc()};return O(this,xe,ha({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:m=>{var g,x,p,v;if(m===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}`),l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(m)}catch(y){l(y);return}(x=(g=_(this,Me).config).onSuccess)==null||x.call(g,m,this),(v=(p=_(this,Me).config).onSettled)==null||v.call(p,m,this.state.error,this),this.scheduleGc()},onError:l,onFail:(m,g)=>{V(this,Qe,xt).call(this,{type:"failed",failureCount:m,error:g})},onPause:()=>{V(this,Qe,xt).call(this,{type:"pause"})},onContinue:()=>{V(this,Qe,xt).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),_(this,xe).start()}},Ln=new WeakMap,Dn=new WeakMap,Me=new WeakMap,un=new WeakMap,xe=new WeakMap,ur=new WeakMap,dn=new WeakMap,Qe=new WeakSet,xt=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,...ga(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 es(o)&&o.revert&&_(this,Dn)?{..._(this,Dn),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),ye.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),_(this,Me).notify({query:this,type:"updated",action:t})})},Xu);function ga(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:fa(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Rp(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 Pp=(Ju=class extends vn{constructor(t={}){super();N(this,it);this.config=t,O(this,it,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??Ko(o,n);let i=this.get(s);return i||(i=new Tp({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){_(this,it).has(t.queryHash)||(_(this,it).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=_(this,it).get(t.queryHash);n&&(t.destroy(),n===t&&_(this,it).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ye.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return _(this,it).get(t)}getAll(){return[..._(this,it).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ia(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>ia(t,r)):n}notify(t){ye.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ye.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ye.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},it=new WeakMap,Ju),Ap=(ed=class extends ma{constructor(t){super();N(this,lt);N(this,at);N(this,Ee);N(this,fn);this.mutationId=t.mutationId,O(this,Ee,t.mutationCache),O(this,at,[]),this.state=t.state||va(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){_(this,at).includes(t)||(_(this,at).push(t),this.clearGcTimeout(),_(this,Ee).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){O(this,at,_(this,at).filter(n=>n!==t)),this.scheduleGc(),_(this,Ee).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){_(this,at).length||(this.state.status==="pending"?this.scheduleGc():_(this,Ee).remove(this))}continue(){var t;return((t=_(this,fn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,i,a,l,u,f,h,m,g,x,p,v,y,w,C,S,T,R,P,L;const n=()=>{V(this,lt,qt).call(this,{type:"continue"})};O(this,fn,ha({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(j,D)=>{V(this,lt,qt).call(this,{type:"failed",failureCount:j,error:D})},onPause:()=>{V(this,lt,qt).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>_(this,Ee).canRun(this)}));const r=this.state.status==="pending",o=!_(this,fn).canStart();try{if(r)n();else{V(this,lt,qt).call(this,{type:"pending",variables:t,isPaused:o}),await((i=(s=_(this,Ee).config).onMutate)==null?void 0:i.call(s,t,this));const D=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));D!==this.state.context&&V(this,lt,qt).call(this,{type:"pending",context:D,variables:t,isPaused:o})}const j=await _(this,fn).start();return await((f=(u=_(this,Ee).config).onSuccess)==null?void 0:f.call(u,j,t,this.state.context,this)),await((m=(h=this.options).onSuccess)==null?void 0:m.call(h,j,t,this.state.context)),await((x=(g=_(this,Ee).config).onSettled)==null?void 0:x.call(g,j,null,this.state.variables,this.state.context,this)),await((v=(p=this.options).onSettled)==null?void 0:v.call(p,j,null,t,this.state.context)),V(this,lt,qt).call(this,{type:"success",data:j}),j}catch(j){try{throw await((w=(y=_(this,Ee).config).onError)==null?void 0:w.call(y,j,t,this.state.context,this)),await((S=(C=this.options).onError)==null?void 0:S.call(C,j,t,this.state.context)),await((R=(T=_(this,Ee).config).onSettled)==null?void 0:R.call(T,void 0,j,this.state.variables,this.state.context,this)),await((L=(P=this.options).onSettled)==null?void 0:L.call(P,void 0,j,t,this.state.context)),j}finally{V(this,lt,qt).call(this,{type:"error",error:j})}}finally{_(this,Ee).runNext(this)}}},at=new WeakMap,Ee=new WeakMap,fn=new WeakMap,lt=new WeakSet,qt=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),ye.batch(()=>{_(this,at).forEach(r=>{r.onMutationUpdate(t)}),_(this,Ee).notify({mutation:this,type:"updated",action:t})})},ed);function va(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Op=(td=class extends vn{constructor(t={}){super();N(this,yt);N(this,Ye);N(this,dr);this.config=t,O(this,yt,new Set),O(this,Ye,new Map),O(this,dr,0)}build(t,n,r){const o=new Ap({mutationCache:this,mutationId:++Ao(this,dr)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){_(this,yt).add(t);const n=Nr(t);if(typeof n=="string"){const r=_(this,Ye).get(n);r?r.push(t):_(this,Ye).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(_(this,yt).delete(t)){const n=Nr(t);if(typeof n=="string"){const r=_(this,Ye).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&_(this,Ye).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Nr(t);if(typeof n=="string"){const r=_(this,Ye).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=Nr(t);if(typeof n=="string"){const o=(r=_(this,Ye).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ye.batch(()=>{_(this,yt).forEach(t=>{this.notify({type:"removed",mutation:t})}),_(this,yt).clear(),_(this,Ye).clear()})}getAll(){return Array.from(_(this,yt))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>aa(n,r))}findAll(t={}){return this.getAll().filter(n=>aa(t,n))}notify(t){ye.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ye.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ce))))}},yt=new WeakMap,Ye=new WeakMap,dr=new WeakMap,td);function Nr(e){var t;return(t=e.options.scope)==null?void 0:t.id}function ya(e){return{onFetch:(t,n)=>{var f,h,m,g,x;const r=t.options,o=(m=(h=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:h.fetchMore)==null?void 0:m.direction,s=((g=t.state.data)==null?void 0:g.pages)||[],i=((x=t.state.data)==null?void 0:x.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let p=!1;const v=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},y=ua(t.options,t.fetchOptions),w=async(C,S,T)=>{if(p)return Promise.reject();if(S==null&&C.pages.length)return Promise.resolve(C);const P=(()=>{const B={client:t.client,queryKey:t.queryKey,pageParam:S,direction:T?"backward":"forward",meta:t.options.meta};return v(B),B})(),L=await y(P),{maxPages:j}=t.options,D=T?wp:bp;return{pages:D(C.pages,L,j),pageParams:D(C.pageParams,S,j)}};if(o&&s.length){const C=o==="backward",S=C?Ip:ba,T={pages:s,pageParams:i},R=S(r,T);a=await w(T,R,C)}else{const C=e??s.length;do{const S=l===0?i[0]??r.initialPageParam:ba(r,a);if(l>0&&S==null)break;a=await w(a,S),l++}while(l<C)}return a};t.options.persister?t.fetchFn=()=>{var p,v;return(v=(p=t.options).persister)==null?void 0:v.call(p,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function ba(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 Ip(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 jp=(nd=class{constructor(e={}){N(this,he);N(this,Dt);N(this,Nt);N(this,Nn);N(this,Mn);N(this,Mt);N(this,$n);N(this,Fn);O(this,he,e.queryCache||new Pp),O(this,Dt,e.mutationCache||new Op),O(this,Nt,e.defaultOptions||{}),O(this,Nn,new Map),O(this,Mn,new Map),O(this,Mt,0)}mount(){Ao(this,Mt)._++,_(this,Mt)===1&&(O(this,$n,Xo.subscribe(async e=>{e&&(await this.resumePausedMutations(),_(this,he).onFocus())})),O(this,Fn,Dr.subscribe(async e=>{e&&(await this.resumePausedMutations(),_(this,he).onOnline())})))}unmount(){var e,t;Ao(this,Mt)._--,_(this,Mt)===0&&((e=_(this,$n))==null||e.call(this),O(this,$n,void 0),(t=_(this,Fn))==null||t.call(this),O(this,Fn,void 0))}isFetching(e){return _(this,he).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return _(this,Dt).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=_(this,he).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=_(this,he).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Rt(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return _(this,he).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=_(this,he).get(r.queryHash),s=o==null?void 0:o.state.data,i=vp(t,s);if(i!==void 0)return _(this,he).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return ye.batch(()=>_(this,he).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=_(this,he).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=_(this,he);ye.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=_(this,he);return ye.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=ye.batch(()=>_(this,he).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Ce).catch(Ce)}invalidateQueries(e,t={}){return ye.batch(()=>(_(this,he).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=ye.batch(()=>_(this,he).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(Ce)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Ce)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=_(this,he).build(this,t);return n.isStaleByTime(Rt(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ce).catch(Ce)}fetchInfiniteQuery(e){return e.behavior=ya(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ce).catch(Ce)}ensureInfiniteQueryData(e){return e.behavior=ya(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Dr.isOnline()?_(this,Dt).resumePausedMutations():Promise.resolve()}getQueryCache(){return _(this,he)}getMutationCache(){return _(this,Dt)}getDefaultOptions(){return _(this,Nt)}setDefaultOptions(e){O(this,Nt,e)}setQueryDefaults(e,t){_(this,Nn).set(Zt(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[..._(this,Nn).values()],n={};return t.forEach(r=>{Xn(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){_(this,Mn).set(Zt(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[..._(this,Mn).values()],n={};return t.forEach(r=>{Xn(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={..._(this,Nt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ko(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===Lr&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{..._(this,Nt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){_(this,he).clear(),_(this,Dt).clear()}},he=new WeakMap,Dt=new WeakMap,Nt=new WeakMap,Nn=new WeakMap,Mn=new WeakMap,Mt=new WeakMap,$n=new WeakMap,Fn=new WeakMap,nd),kp=(rd=class extends vn{constructor(t,n){super();N(this,ne);N(this,Oe);N(this,Q);N(this,fr);N(this,Te);N(this,pn);N(this,Bn);N(this,$t);N(this,Ft);N(this,pr);N(this,Un);N(this,Wn);N(this,hn);N(this,mn);N(this,Bt);N(this,Hn,new Set);this.options=n,O(this,Oe,t),O(this,Ft,null),O(this,$t,Jo()),this.options.experimental_prefetchInRender||_(this,$t).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&&(_(this,Q).addObserver(this),wa(_(this,Q),this.options)?V(this,ne,hr).call(this):this.updateResult(),V(this,ne,hi).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ts(_(this,Q),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ts(_(this,Q),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,V(this,ne,mi).call(this),V(this,ne,gi).call(this),_(this,Q).removeObserver(this)}setOptions(t){const n=this.options,r=_(this,Q);if(this.options=_(this,Oe).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof He(this.options.enabled,_(this,Q))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");V(this,ne,vi).call(this),_(this,Q).setOptions(this.options),n._defaulted&&!kr(this.options,n)&&_(this,Oe).getQueryCache().notify({type:"observerOptionsUpdated",query:_(this,Q),observer:this});const o=this.hasListeners();o&&_a(_(this,Q),r,this.options,n)&&V(this,ne,hr).call(this),this.updateResult(),o&&(_(this,Q)!==r||He(this.options.enabled,_(this,Q))!==He(n.enabled,_(this,Q))||Rt(this.options.staleTime,_(this,Q))!==Rt(n.staleTime,_(this,Q)))&&V(this,ne,di).call(this);const s=V(this,ne,fi).call(this);o&&(_(this,Q)!==r||He(this.options.enabled,_(this,Q))!==He(n.enabled,_(this,Q))||s!==_(this,Bt))&&V(this,ne,pi).call(this,s)}getOptimisticResult(t){const n=_(this,Oe).getQueryCache().build(_(this,Oe),t),r=this.createResult(n,t);return Dp(this,r)&&(O(this,Te,r),O(this,Bn,this.options),O(this,pn,_(this,Q).state)),r}getCurrentResult(){return _(this,Te)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),Reflect.get(r,o))})}trackProp(t){_(this,Hn).add(t)}getCurrentQuery(){return _(this,Q)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=_(this,Oe).defaultQueryOptions(t),r=_(this,Oe).getQueryCache().build(_(this,Oe),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return V(this,ne,hr).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),_(this,Te)))}createResult(t,n){var j;const r=_(this,Q),o=this.options,s=_(this,Te),i=_(this,pn),a=_(this,Bn),u=t!==r?t.state:_(this,fr),{state:f}=t;let h={...f},m=!1,g;if(n._optimisticResults){const D=this.hasListeners(),B=!D&&wa(t,n),U=D&&_a(t,r,n,o);(B||U)&&(h={...h,...ga(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:x,errorUpdatedAt:p,status:v}=h;g=h.data;let y=!1;if(n.placeholderData!==void 0&&g===void 0&&v==="pending"){let D;s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(D=s.data,y=!0):D=typeof n.placeholderData=="function"?n.placeholderData((j=_(this,Wn))==null?void 0:j.state.data,_(this,Wn)):n.placeholderData,D!==void 0&&(v="success",g=Zo(s==null?void 0:s.data,D,n),m=!0)}if(n.select&&g!==void 0&&!y)if(s&&g===(i==null?void 0:i.data)&&n.select===_(this,pr))g=_(this,Un);else try{O(this,pr,n.select),g=n.select(g),g=Zo(s==null?void 0:s.data,g,n),O(this,Un,g),O(this,Ft,null)}catch(D){O(this,Ft,D)}_(this,Ft)&&(x=_(this,Ft),g=_(this,Un),p=Date.now(),v="error");const w=h.fetchStatus==="fetching",C=v==="pending",S=v==="error",T=C&&w,R=g!==void 0,L={status:v,fetchStatus:h.fetchStatus,isPending:C,isSuccess:v==="success",isError:S,isInitialLoading:T,isLoading:T,data:g,dataUpdatedAt:h.dataUpdatedAt,error:x,errorUpdatedAt:p,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>u.dataUpdateCount||h.errorUpdateCount>u.errorUpdateCount,isFetching:w,isRefetching:w&&!C,isLoadingError:S&&!R,isPaused:h.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:S&&R,isStale:ns(t,n),refetch:this.refetch,promise:_(this,$t)};if(this.options.experimental_prefetchInRender){const D=H=>{L.status==="error"?H.reject(L.error):L.data!==void 0&&H.resolve(L.data)},B=()=>{const H=O(this,$t,L.promise=Jo());D(H)},U=_(this,$t);switch(U.status){case"pending":t.queryHash===r.queryHash&&D(U);break;case"fulfilled":(L.status==="error"||L.data!==U.value)&&B();break;case"rejected":(L.status!=="error"||L.error!==U.reason)&&B();break}}return L}updateResult(){const t=_(this,Te),n=this.createResult(_(this,Q),this.options);if(O(this,pn,_(this,Q).state),O(this,Bn,this.options),_(this,pn).data!==void 0&&O(this,Wn,_(this,Q)),kr(n,t))return;O(this,Te,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!_(this,Hn).size)return!0;const i=new Set(s??_(this,Hn));return this.options.throwOnError&&i.add("error"),Object.keys(_(this,Te)).some(a=>{const l=a;return _(this,Te)[l]!==t[l]&&i.has(l)})};V(this,ne,yd).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&V(this,ne,hi).call(this)}},Oe=new WeakMap,Q=new WeakMap,fr=new WeakMap,Te=new WeakMap,pn=new WeakMap,Bn=new WeakMap,$t=new WeakMap,Ft=new WeakMap,pr=new WeakMap,Un=new WeakMap,Wn=new WeakMap,hn=new WeakMap,mn=new WeakMap,Bt=new WeakMap,Hn=new WeakMap,ne=new WeakSet,hr=function(t){V(this,ne,vi).call(this);let n=_(this,Q).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ce)),n},di=function(){V(this,ne,mi).call(this);const t=Rt(this.options.staleTime,_(this,Q));if(Yt||_(this,Te).isStale||!qo(t))return;const r=sa(_(this,Te).dataUpdatedAt,t)+1;O(this,hn,setTimeout(()=>{_(this,Te).isStale||this.updateResult()},r))},fi=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(_(this,Q)):this.options.refetchInterval)??!1},pi=function(t){V(this,ne,gi).call(this),O(this,Bt,t),!(Yt||He(this.options.enabled,_(this,Q))===!1||!qo(_(this,Bt))||_(this,Bt)===0)&&O(this,mn,setInterval(()=>{(this.options.refetchIntervalInBackground||Xo.isFocused())&&V(this,ne,hr).call(this)},_(this,Bt)))},hi=function(){V(this,ne,di).call(this),V(this,ne,pi).call(this,V(this,ne,fi).call(this))},mi=function(){_(this,hn)&&(clearTimeout(_(this,hn)),O(this,hn,void 0))},gi=function(){_(this,mn)&&(clearInterval(_(this,mn)),O(this,mn,void 0))},vi=function(){const t=_(this,Oe).getQueryCache().build(_(this,Oe),this.options);if(t===_(this,Q))return;const n=_(this,Q);O(this,Q,t),O(this,fr,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},yd=function(t){ye.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(_(this,Te))}),_(this,Oe).getQueryCache().notify({query:_(this,Q),type:"observerResultsUpdated"})})},rd);function Lp(e,t){return He(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function wa(e,t){return Lp(e,t)||e.state.data!==void 0&&ts(e,t,t.refetchOnMount)}function ts(e,t,n){if(He(t.enabled,e)!==!1&&Rt(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&ns(e,t)}return!1}function _a(e,t,n,r){return(e!==t||He(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&ns(e,n)}function ns(e,t){return He(t.enabled,e)!==!1&&e.isStaleByTime(Rt(t.staleTime,e))}function Dp(e,t){return!kr(e.getCurrentResult(),t)}var Np=(od=class extends vn{constructor(n,r){super();N(this,wt);N(this,Ut);N(this,Wt);N(this,Ie);N(this,bt);O(this,Ut,n),this.setOptions(r),this.bindMethods(),V(this,wt,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=_(this,Ut).defaultMutationOptions(n),kr(this.options,r)||_(this,Ut).getMutationCache().notify({type:"observerOptionsUpdated",mutation:_(this,Ie),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Zt(r.mutationKey)!==Zt(this.options.mutationKey)?this.reset():((o=_(this,Ie))==null?void 0:o.state.status)==="pending"&&_(this,Ie).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=_(this,Ie))==null||n.removeObserver(this)}onMutationUpdate(n){V(this,wt,Oo).call(this),V(this,wt,yi).call(this,n)}getCurrentResult(){return _(this,Wt)}reset(){var n;(n=_(this,Ie))==null||n.removeObserver(this),O(this,Ie,void 0),V(this,wt,Oo).call(this),V(this,wt,yi).call(this)}mutate(n,r){var o;return O(this,bt,r),(o=_(this,Ie))==null||o.removeObserver(this),O(this,Ie,_(this,Ut).getMutationCache().build(_(this,Ut),this.options)),_(this,Ie).addObserver(this),_(this,Ie).execute(n)}},Ut=new WeakMap,Wt=new WeakMap,Ie=new WeakMap,bt=new WeakMap,wt=new WeakSet,Oo=function(){var r;const n=((r=_(this,Ie))==null?void 0:r.state)??va();O(this,Wt,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},yi=function(n){ye.batch(()=>{var r,o,s,i,a,l,u,f;if(_(this,bt)&&this.hasListeners()){const h=_(this,Wt).variables,m=_(this,Wt).context;(n==null?void 0:n.type)==="success"?((o=(r=_(this,bt)).onSuccess)==null||o.call(r,n.data,h,m),(i=(s=_(this,bt)).onSettled)==null||i.call(s,n.data,null,h,m)):(n==null?void 0:n.type)==="error"&&((l=(a=_(this,bt)).onError)==null||l.call(a,n.error,h,m),(f=(u=_(this,bt)).onSettled)==null||f.call(u,void 0,n.error,h,m))}this.listeners.forEach(h=>{h(_(this,Wt))})})},od),xa=d.createContext(void 0),rs=e=>{const t=d.useContext(xa);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Mp=({client:e,children:t})=>(d.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(xa.Provider,{value:e,children:t})),Ca=d.createContext(!1),$p=()=>d.useContext(Ca);Ca.Provider;function Fp(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Bp=d.createContext(Fp()),Up=()=>d.useContext(Bp),Wp=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Hp=e=>{d.useEffect(()=>{e.clearReset()},[e])},Vp=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||da(n,[e.error,r])),zp=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))}},Gp=(e,t)=>e.isLoading&&e.isFetching&&!t,qp=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Sa=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Kp(e,t,n){var h,m,g,x,p;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=$p(),o=Up(),s=rs(),i=s.defaultQueryOptions(e);(m=(h=s.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||m.call(h,i),i.queryFn||console.error(`[${i.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`),i._optimisticResults=r?"isRestoring":"optimistic",zp(i),Wp(i,o),Hp(o);const a=!s.getQueryCache().get(i.queryHash),[l]=d.useState(()=>new t(s,i)),u=l.getOptimisticResult(i),f=!r&&e.subscribed!==!1;if(d.useSyncExternalStore(d.useCallback(v=>{const y=f?l.subscribe(ye.batchCalls(v)):Ce;return l.updateResult(),y},[l,f]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),d.useEffect(()=>{l.setOptions(i)},[i,l]),qp(i,u))throw Sa(i,l,o);if(Vp({result:u,errorResetBoundary:o,throwOnError:i.throwOnError,query:s.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw u.error;if((x=(g=s.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||x.call(g,i,u),i.experimental_prefetchInRender&&!Yt&&Gp(u,r)){const v=a?Sa(i,l,o):(p=s.getQueryCache().get(i.queryHash))==null?void 0:p.promise;v==null||v.catch(Ce).finally(()=>{l.updateResult()})}return i.notifyOnChangeProps?u:l.trackResult(u)}function Ea(e,t){return Kp(e,kp)}function Mr(e,t){const n=rs(),[r]=d.useState(()=>new Np(n,e));d.useEffect(()=>{r.setOptions(e)},[r,e]);const o=d.useSyncExternalStore(d.useCallback(i=>r.subscribe(ye.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=d.useCallback((i,a)=>{r.mutate(i,a).catch(Ce)},[r]);if(o.error&&da(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}const $r={STALE_TIME:1e3*60*5,GC_TIME:1e3*60*10,RETRY_COUNT:1,RETRY_DELAY:1e3},Ta={refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,staleTime:$r.STALE_TIME,gcTime:$r.GC_TIME,retry:$r.RETRY_COUNT,retryDelay:$r.RETRY_DELAY,enable:!0},Fr=e=>e instanceof Error?e.message:String(e),Qp=E("useResourceActions",(e,t,n)=>{const r=rs(),{notify:o}=oa(),{createFn:s,readFn:i,readByIdFn:a,updateFn:l,deleteFn:u,partialUpdateFn:f}=n,h=()=>{r.invalidateQueries({queryKey:[e]})},m=(S,T,R,P)=>o(P!=null&&P.overrideSuccessMessage?P==null?void 0:P.overrideSuccessMessage(S,T):R,"success"),g=(S,T,R,P)=>o(P!=null&&P.overrideErrorMessage?P==null?void 0:P.overrideErrorMessage(S,T):R,"error");return{useCreate:S=>Mr({mutationFn:T=>s(T),onSuccess:T=>{h(),m(t,T,`${t} created successfully`,S)},onError:T=>{g(t,T,`Error creating ${t}: ${Fr(T)}`,S)}}),useReadQuery:S=>Ea({queryKey:[e],queryFn:i,...Ta,...S}),useReadByIdQuery:(S,T)=>Ea({queryKey:[e,S],queryFn:()=>a(S),...Ta,enabled:!!S,...T}),useUpdate:S=>Mr({mutationFn:({id:T,data:R})=>l(T,R),onSuccess:T=>{h(),m(t,T,`${t} updated successfully`,S)},onError:T=>{g(t,T,`Error updating ${t}: ${Fr(T)}`,S)}}),usePartialUpdate:S=>f&&Mr({mutationFn:({id:T,data:R})=>f(T,R),onSuccess:T=>{h(),m(t,T,`${t} updated successfully`,S)},onError:T=>{g(t,T,`Error updating ${t}: ${Fr(T)}`,S)}}),useDelete:S=>Mr({mutationFn:T=>u(T),onSuccess:()=>{h(),m(t,null,`${t} deleted successfully`,S)},onError:T=>{g(t,T,`Error deleting ${t}: ${Fr(T)}`,S)}}),invalidateQueries:h}}),D0=E("useResource",(e,t)=>Qp(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())})),Yp={SINGLE_TENANT:"single-tenant"},Zp={COOKIE:"cookie"},os="tenant",Ra="tenant",Pa="tenant",Xp=Yp.SINGLE_TENANT,Jp=Zp.COOKIE,eh={mode:Xp,clientSideMode:Jp,tenantIDPProvisioningStrategy:"none"};class th{setTenant(t,n){const r=new URL(window.location.href);r.searchParams.set(Ra,t.name),window.location.href=r.toString()}getCurrentTenantName(){const t=new URL(window.location.href);return new URLSearchParams(t.search).get(Ra)}}class nh{setTenant(t,n){sessionStorage.setItem(Pa,t.name),window.location.reload()}getCurrentTenantName(){return sessionStorage.getItem(Pa)}}/*! js-cookie v3.0.5 | MIT */function Br(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 rh={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 ss(e,t){function n(o,s,i){if(!(typeof document>"u")){i=Br({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in i)i[l]&&(a+="; "+l,i[l]!==!0&&(a+="="+i[l].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+a}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],i={},a=0;a<s.length;a++){var l=s[a].split("="),u=l.slice(1).join("=");try{var f=decodeURIComponent(l[0]);if(i[f]=e.read(u,f),o===f)break}catch{}}return o?i[o]:i}}return Object.create({set:n,get:r,remove:function(o,s){n(o,"",Br({},s,{expires:-1}))},withAttributes:function(o){return ss(this.converter,Br({},this.attributes,o))},withConverter:function(o){return ss(Br({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var is=ss(rh,{path:"/"});class oh{setTenant(t,n){t?is.set(os,t.name):is.remove(os),window.location.reload()}getCurrentTenantName(){return is.get(os)}}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 u;const r=(u=n.urlPatterns)==null?void 0:u.find(f=>f.patternType==="subdomain"&&f.tenantId===t.id&&f.isActive);if(!r)throw new Error(`No active subdomain pattern found for tenant '${t.name}'`);const o=new URL(window.location.href),s=r.patternValue,i=o.hostname,a=this.getBaseDomain(i),l=s?`${s}.${a}`:a;o.hostname=l,window.location.href=o.toString()}getCurrentTenantName(){const t=window.location.hostname;return this.extractSubdomain(t)||null}}const Aa={queryParams:new th,sessionStorage:new nh,cookie:new oh,subdomain:new sh},ih=e=>{const t=Aa[e.clientSideMode];if(!t)throw new Error(`Client side tenant mode '${e.clientSideMode}' is not supported ${JSON.stringify({strategies:Aa},null,2)}`);return t},ah=(e,t,n)=>{const r=t.find(s=>s.name===n);if(!r)throw Error("No tenant permission");return ih(e).setTenant(r,e),r},N0=E("useTenants",()=>{const[e,t]=yr(),{tenants:n=[],currentTenant:r,tenantConfig:o=eh}=e,s=fe(i=>{const a=ah(o,n,i);t({...e,currentTenant:a})},[o,e]);return{tenants:n,currentTenant:r,tenantConfig:o,selectTenant:s}});function lh(e){if(!e.ok)throw console.error(e),new Error(e.statusText)}async function Ur(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 s=await Ur(t,n,r,{method:"GET",headers:{"Content-Type":"application/json"}});return s.status===204?null:await s.json()}static async create(t,n,r,o){const s={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await Ur(t,n,r,s)).json()}static async update(t,n,r,o){const s={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await Ur(t,n,r,s)).json()}static async delete(t,n,r){return await Ur(t,n,r,{method:"DELETE",headers:{"Content-Type":"application/json"}}),null}}const M0=E("useUserState",e=>{const t=$i("@bluealba/pae-nestjs-gateway-service"),n=Zd();if(!n)throw new Error("You must call the useUserState hook within a PAE application.");const[r,o]=W(null),[s,i]=W(!1),[a,l]=W(!1),[u,f]=W(null),h=(w,C)=>fe(async({newValue:S,shouldThrowError:T}={})=>{try{l(!0),f(null);const R=await w(t,n,e,S);return o(R),R?R.value:null}catch(R){if(f(R==null?void 0:R.message),console.error(`Failed to ${C} ${e}:`,R),T)throw R;return null}finally{l(!1)}},[t,n,e]),m=h(Wr.get,"fetch"),g=h(Wr.create,"create"),x=h(Wr.update,"update"),p=h(Wr.delete,"delete"),v=fe(async()=>{try{await m()}finally{i(!0)}},[m]);X(()=>{v()},[v]);const y=fe(async(w,C=!1)=>r==null?await g({newValue:w,shouldThrowError:C}):await x({newValue:w,shouldThrowError:C}),[r,g,x]);return{value:r?r.value:null,hasFetched:s,loading:a,error:u,setValue:y,createValue:g,updateValue:x,deleteValue:p}}),Oa="single-spa:app-change";function ch(){const[e,t]=W(Ia());return X(()=>{const n=()=>{t(Ia())};return window.addEventListener(Oa,n),()=>{window.removeEventListener(Oa,n)}},[]),e}function Ia(){return vr.getAppNames().reduce((t,n)=>(vr.getAppStatus(n)?t[n]=vr.getAppStatus(n):t[n]="NOT_LOADED",t),{})}function as(e){const n=ch()[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 ja="__PAE_EXTENSION_POINT_REACT_CONTENT_EMPTY__",$0=E("ExtendExtensionPoint",({module:e,point:t,children:n})=>(af(e,t,n??ja),null)),uh=E("ExtensionPoint",({name:e,children:t,...n})=>{const r=sf(e);if(r===ja)return null;if(!r)return c.jsx(c.Fragment,{children:t??null});if(dh(r)){const o=r;return c.jsx(o,{...n})}else return r}),dh=e=>typeof e=="function",F0=E("extensionPoint",(e,t)=>{const n=r=>(t=t||e.displayName||e.name||"?",c.jsx(uh,{name:t,...r,children:c.jsx(e,{...r})}));return n.displayName=`extensionPoint(${t})`,n}),ka=({appName:e})=>c.jsx("div",{children:c.jsxs("p",{children:["Loading ",e,"..."]})});ka.displayName="BaseLoading";const La=({appName:e})=>c.jsxs("div",{children:[c.jsx("p",{children:"Something went wrong..."}),c.jsxs("p",{children:["Failed to load ",e]})]});La.displayName="BaseError";const fh={display:"flex",flexDirection:"column",flex:1},Da=q((e,t)=>c.jsx("div",{ref:t,style:fh,...e}));Da.displayName="BaseContainer";const ph="pae-app:",hh=E("ModulePlaceHolder",q(({appName:e,LoadingComponent:t=ka,ErrorComponent:n=La,ContainerComponent:r=Da,...o},s)=>{const i=as(e);return c.jsxs(r,{ref:s,...o,id:`${ph}${e}`,children:[i.isLoading&&c.jsx(t,{appName:e}),i.isBroken&&c.jsx(n,{appName:e})]})}));hh.displayName="ModulePlaceHolder";const Na=E("Authorized",({operations:e,children:t,forbiddenContent:n})=>{var o;const{hasAccess:r}=wr();if(!r(...e)){if(!n)return null;if(typeof n=="function")if((o=n==null?void 0:n.prototype)!=null&&o.isReactComponent){const s=n;return c.jsx(s,{operations:e})}else return n({operations:e});return Ue.isValidElement(n)?n:null}return t});Na.displayName="Authorized";const B0=E("PlatformEventListener",({eventName:e,listener:t})=>(lf(e,t),null)),mh=()=>c.jsx("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:c.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"})}),gh=E("ApplicationIcon",({applicationName:e})=>{const t=Ud(e);if(t)if(typeof t=="function"){const n=t;return c.jsx(n,{})}else return t;return c.jsx(mh,{})});gh.displayName="ApplicationIcon";const Ma=()=>c.jsx("svg",{width:"28",height:"28",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M15.9998 29.3337C8.63584 29.3337 2.6665 23.3643 2.6665 16.0003C2.6665 8.63633 8.63584 2.66699 15.9998 2.66699C23.3638 2.66699 29.3332 8.63633 29.3332 16.0003C29.3332 23.3643 23.3638 29.3337 15.9998 29.3337ZM15.9998 26.667C18.8288 26.667 21.5419 25.5432 23.5423 23.5428C25.5427 21.5424 26.6665 18.8293 26.6665 16.0003C26.6665 13.1713 25.5427 10.4582 23.5423 8.45785C21.5419 6.45747 18.8288 5.33366 15.9998 5.33366C13.1709 5.33366 10.4578 6.45747 8.45736 8.45785C6.45698 10.4582 5.33317 13.1713 5.33317 16.0003C5.33317 18.8293 6.45698 21.5424 8.45736 23.5428C10.4578 25.5432 13.1709 26.667 15.9998 26.667ZM9.33317 20.427C12.2066 20.2205 14.9088 18.9833 16.9425 16.943C18.9828 14.9092 20.2201 12.2071 20.4265 9.33366C21.4117 9.99003 22.2389 10.8569 22.8486 11.8716C23.4582 12.8864 23.835 14.0239 23.9519 15.2019C24.0687 16.3799 23.9226 17.5692 23.5242 18.684C23.1257 19.7987 22.4849 20.8112 21.6478 21.6483C20.8107 22.4853 19.7982 23.1262 18.6835 23.5247C17.5687 23.9231 16.3795 24.0692 15.2014 23.9523C14.0234 23.8355 12.8859 23.4587 11.8712 22.8491C10.8564 22.2394 9.98954 21.4122 9.33317 20.427Z",fill:"currentColor"})});Ma.displayName="DarkModeIcon";const $a=()=>c.jsx("svg",{width:"28",height:"28",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",transform:"matrix(-1,1.2246467991473532e-16,-1.2246467991473532e-16,-1,0,0)",children:c.jsx("path",{d:"M15.9998 29.3337C8.63584 29.3337 2.6665 23.3643 2.6665 16.0003C2.6665 8.63633 8.63584 2.66699 15.9998 2.66699C23.3638 2.66699 29.3332 8.63633 29.3332 16.0003C29.3332 23.3643 23.3638 29.3337 15.9998 29.3337ZM15.9998 26.667C18.8288 26.667 21.5419 25.5432 23.5423 23.5428C25.5427 21.5424 26.6665 18.8293 26.6665 16.0003C26.6665 13.1713 25.5427 10.4582 23.5423 8.45785C21.5419 6.45747 18.8288 5.33366 15.9998 5.33366C13.1709 5.33366 10.4578 6.45747 8.45736 8.45785C6.45698 10.4582 5.33317 13.1713 5.33317 16.0003C5.33317 18.8293 6.45698 21.5424 8.45736 23.5428C10.4578 25.5432 13.1709 26.667 15.9998 26.667ZM9.33317 20.427C12.2066 20.2205 14.9088 18.9833 16.9425 16.943C18.9828 14.9092 20.2201 12.2071 20.4265 9.33366C21.4117 9.99003 22.2389 10.8569 22.8486 11.8716C23.4582 12.8864 23.835 14.0239 23.9519 15.2019C24.0687 16.3799 23.9226 17.5692 23.5242 18.684C23.1257 19.7987 22.4849 20.8112 21.6478 21.6483C20.8107 22.4853 19.7982 23.1262 18.6835 23.5247C17.5687 23.9231 16.3795 24.0692 15.2014 23.9523C14.0234 23.8355 12.8859 23.4587 11.8712 22.8491C10.8564 22.2394 9.98954 21.4122 9.33317 20.427Z",fill:"currentColor"})});$a.displayName="LightModeIcon";const ls={container:"container__zBqbk",expanded:"expanded__EbsIr",label:"label__cdMnm"};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 k(){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 vh=e=>e.toLowerCase().trim().split(" ").join("-"),yh=e=>`${vh(e)}-theme`,bh=E("useTheme",()=>{const{platformName:e="Platform"}=Ii(),t=yh(e),[n,r]=W(()=>{const s=localStorage.getItem(t);return s==="light"||s==="dark"?s:"light"}),o=s=>{localStorage.setItem(t,s),r(s)};return X(()=>{document.documentElement.setAttribute("data-theme",n)},[n]),{theme:n,setTheme:o}}),Hr={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"},cs=E("Button",q(({variant:e="contained",colorScheme:t="primary",loading:n=!1,IconComponent:r,className:o,children:s,...i},a)=>{const l=k(Hr.button,Hr[`button--${e}-${t}`],o);return c.jsxs("button",{ref:a,className:l,...i,children:[n?c.jsx("div",{className:Hr.spinner}):r&&c.jsx(r,{className:Hr.icon}),s]})}));cs.displayName="Button";const Vr={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"},us={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]};for(const e in us)Object.freeze(us[e]);const Ba=Object.freeze(us);var Ua={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function wh(e){var f,h;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(),Ba[e])n=Ba[e].slice(),o="rgb";else if(e==="transparent")r=0,o="rgb",n=[0,0,0];else if(e[0]==="#"){var s=e.slice(1),i=s.length,a=i<=4;r=1,a?(n=[parseInt(s[0]+s[0],16),parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16)],i===4&&(r=parseInt(s[3]+s[3],16)/255)):(n=[parseInt(s[0]+s[1],16),parseInt(s[2]+s[3],16),parseInt(s[4]+s[5],16)],i===8&&(r=parseInt(s[6]+s[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 l=t[1];o=l.replace(/a$/,"");var u=o==="cmyk"?4:o==="gray"?1:3;n=t[2].trim().split(/\s*[,\/]\s*|\s+/),o==="color"&&(o=n.shift()),n=n.map(function(m,g){if(m[m.length-1]==="%")return m=parseFloat(m)/100,g===3?m:o==="rgb"?m*255:o[0]==="h"||o[0]==="l"&&!g?m*100:o==="lab"?m*125:o==="lch"?g<2?m*150:m*360:o[0]==="o"&&!g?m:o==="oklab"?m*.4:o==="oklch"?g<2?m*.4:m*360:m;if(o[g]==="h"||g===2&&o[o.length-1]==="h"){if(Ua[m]!==void 0)return Ua[m];if(m.endsWith("deg"))return parseFloat(m);if(m.endsWith("turn"))return parseFloat(m)*360;if(m.endsWith("grad"))return parseFloat(m)*360/400;if(m.endsWith("rad"))return parseFloat(m)*180/Math.PI}return m==="none"?0:parseFloat(m)}),r=n.length>u?n.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(n=e.match(/([0-9]+)/g).map(function(m){return parseFloat(m)}),o=((h=(f=e.match(/([a-z])/ig))==null?void 0:f.join(""))==null?void 0:h.toLowerCase())||"rgb");return{space:o,values:n,alpha:r}}const _h=(e,t)=>{const{space:n,values:r}=wh(e);return n[0]==="h"?`${n}a(${r[0]}, ${r[1]}%, ${r[2]}%, ${t})`:`${n}a(${r}, ${t})`},Wa=E("Badge",q(({children:e,color:t,className:n,customColor:r,size:o="small",style:s,...i},a)=>{const l=r?{color:r,background:_h(r,.1)}:{},u=k(Vr.Badge,Vr[`Badge--${o}`],{[Vr[`Badge--${t}`]]:!!t},n);return c.jsx("span",{ref:a,className:u,style:{...s,...l},...i,children:e})}));Wa.displayName="Badge";const Ha=E("Badges",q(({children:e,className:t,...n},r)=>{const o=k(Vr.Badges,t);return c.jsx("div",{ref:r,className:o,...n,children:e})}));Ha.displayName="Badges";const xh=E("ClipboardIcon",({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...s})=>c.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,...s,children:[c.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),c.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"})]})),Ch=E("ClipboardCheckIcon",({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...s})=>c.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,...s,children:[c.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),c.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"}),c.jsx("path",{d:"m9 12 2 2 4-4"})]})),Sh={CopyToClipboardButton:"CopyToClipboardButton__2Nd2m"},pb=E("CopyToClipboardButton",({content:e})=>{const[t,n]=Eh(),{notify:r}=oa(),o=t?Ch:xh,s=fe(async()=>{await n(e)&&r("Copied to the Clipboard !","success")},[e,r]);return c.jsx(o,{className:Sh.CopyToClipboardButton,size:18,onClick:s})}),Eh=()=>{const[e,t]=W(!1);return[e,async r=>{var o;try{return await((o=navigator==null?void 0:navigator.clipboard)==null?void 0:o.writeText(r)),t(!0),setTimeout(()=>t(!1),2e3),!0}catch(s){return console.error("Failed to copy text: ",s),!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"},Th=E("FieldGroup",q(({children:e,className:t,orientation:n="vertical",...r},o)=>{const s=k(Va.FieldGroup,Va[`FieldGroup--${n}`],t);return c.jsx("div",{ref:o,className:s,...r,children:e})}));Th.displayName="FieldGroup";const za={Input:"Input__uS0sb",Error:"Error__-DQpw"},ds=E("Input",q(({className:e,error:t,...n},r)=>{const o=k(za.Input,t&&za.Error,e);return c.jsx("input",{ref:r,className:o,...n})}));ds.displayName="Input";const Rh={Error:"Error__N4OP5"},Ph=E("InputError",q(({children:e,className:t,...n},r)=>{const o=k(Rh.Error,t);return c.jsx("span",{ref:r,className:o,...n,children:e})}));Ph.displayName="InputError";const Ga={Label:"Label__VYUvW",Error:"Error__Eu6DI"},Ah=E("Label",q(({children:e,className:t,error:n,...r},o)=>{const s=k(Ga.Label,n&&Ga.Error,t);return c.jsx("label",{ref:o,className:s,...r,children:e})}));Ah.displayName="Label";const fs={Select:"Select__giqpe",Chevron:"Chevron__YvhBd"},qa=q(({children:e,className:t,...n},r)=>{const o=k(fs.Option,t);return c.jsx("option",{ref:r,className:o,...n,children:e})});qa.displayName="Option";const Ka=E("Select",q(({children:e,className:t,...n},r)=>{const o=k(fs.Select,t);return c.jsxs("div",{className:o,children:[c.jsx("select",{ref:r,...n,children:e}),c.jsx("div",{className:fs.Chevron,children:c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M4 6L8 10L12 6",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})})]})}));Ka.displayName="Select",Ka.Option=qa;function Qa(e,[t,n]){return Math.min(n,Math.max(t,e))}function J(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 Oh(e,t){const n=d.createContext(t),r=s=>{const{children:i,...a}=s,l=d.useMemo(()=>a,Object.values(a));return c.jsx(n.Provider,{value:l,children:i})};r.displayName=e+"Provider";function o(s){const i=d.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Jn(e,t=[]){let n=[];function r(s,i){const a=d.createContext(i),l=n.length;n=[...n,i];const u=h=>{var y;const{scope:m,children:g,...x}=h,p=((y=m==null?void 0:m[e])==null?void 0:y[l])||a,v=d.useMemo(()=>x,Object.values(x));return c.jsx(p.Provider,{value:v,children:g})};u.displayName=s+"Provider";function f(h,m){var p;const g=((p=m==null?void 0:m[e])==null?void 0:p[l])||a,x=d.useContext(g);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(i=>d.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return d.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,Ih(o,...t)]}function Ih(...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(s){const i=r.reduce((a,{useScope:l,scopeName:u})=>{const h=l(s)[`__scope${u}`];return{...a,...h}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Ya(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function yn(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Ya(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Ya(e[o],null)}}}}function de(...e){return d.useCallback(yn(...e),e)}function Za(e){const t=jh(e),n=d.forwardRef((r,o)=>{const{children:s,...i}=r,a=d.Children.toArray(s),l=a.find(Lh);if(l){const u=l.props.children,f=a.map(h=>h===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return c.jsx(t,{...i,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return c.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function jh(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const i=Nh(o),a=Dh(s,o.props);return o.type!==d.Fragment&&(a.ref=r?yn(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var kh=Symbol("radix.slottable");function Lh(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===kh}function Dh(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Nh(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)}function Mh(e){const t=e+"CollectionProvider",[n,r]=Jn(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=p=>{const{scope:v,children:y}=p,w=Ue.useRef(null),C=Ue.useRef(new Map).current;return c.jsx(o,{scope:v,itemMap:C,collectionRef:w,children:y})};i.displayName=t;const a=e+"CollectionSlot",l=Za(a),u=Ue.forwardRef((p,v)=>{const{scope:y,children:w}=p,C=s(a,y),S=de(v,C.collectionRef);return c.jsx(l,{ref:S,children:w})});u.displayName=a;const f=e+"CollectionItemSlot",h="data-radix-collection-item",m=Za(f),g=Ue.forwardRef((p,v)=>{const{scope:y,children:w,...C}=p,S=Ue.useRef(null),T=de(v,S),R=s(f,y);return Ue.useEffect(()=>(R.itemMap.set(S,{ref:S,...C}),()=>void R.itemMap.delete(S))),c.jsx(m,{[h]:"",ref:T,children:w})});g.displayName=f;function x(p){const v=s(e+"CollectionConsumer",p);return Ue.useCallback(()=>{const w=v.collectionRef.current;if(!w)return[];const C=Array.from(w.querySelectorAll(`[${h}]`));return Array.from(v.itemMap.values()).sort((R,P)=>C.indexOf(R.ref.current)-C.indexOf(P.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:i,Slot:u,ItemSlot:g},x,r]}var $h=d.createContext(void 0);function Fh(e){const t=d.useContext($h);return e||t||"ltr"}function Bh(e){const t=Uh(e),n=d.forwardRef((r,o)=>{const{children:s,...i}=r,a=d.Children.toArray(s),l=a.find(Hh);if(l){const u=l.props.children,f=a.map(h=>h===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return c.jsx(t,{...i,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return c.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Uh(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const i=zh(o),a=Vh(s,o.props);return o.type!==d.Fragment&&(a.ref=r?yn(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Wh=Symbol("radix.slottable");function Hh(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Wh}function Vh(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function zh(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 Gh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],le=Gh.reduce((e,t)=>{const n=Bh(`Primitive.${t}`),r=d.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function qh(e,t){e&&Gn.flushSync(()=>e.dispatchEvent(t))}function Xt(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Kh(e,t=globalThis==null?void 0:globalThis.document){const n=Xt(e);d.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",ps="dismissableLayer.update",Yh="dismissableLayer.pointerDownOutside",Zh="dismissableLayer.focusOutside",Xa,Ja=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zr=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,u=d.useContext(Ja),[f,h]=d.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=d.useState({}),x=de(t,P=>h(P)),p=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(v),w=f?p.indexOf(f):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,S=w>=y,T=e1(P=>{const L=P.target,j=[...u.branches].some(D=>D.contains(L));!S||j||(o==null||o(P),i==null||i(P),P.defaultPrevented||a==null||a())},m),R=t1(P=>{const L=P.target;[...u.branches].some(D=>D.contains(L))||(s==null||s(P),i==null||i(P),P.defaultPrevented||a==null||a())},m);return Kh(P=>{w===u.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&a&&(P.preventDefault(),a()))},m),d.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Xa=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),el(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Xa)}},[f,m,n,u]),d.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),el())},[f,u]),d.useEffect(()=>{const P=()=>g({});return document.addEventListener(ps,P),()=>document.removeEventListener(ps,P)},[]),c.jsx(le.div,{...l,ref:x,style:{pointerEvents:C?S?"auto":"none":void 0,...e.style},onFocusCapture:J(e.onFocusCapture,R.onFocusCapture),onBlurCapture:J(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:J(e.onPointerDownCapture,T.onPointerDownCapture)})});zr.displayName=Qh;var Xh="DismissableLayerBranch",Jh=d.forwardRef((e,t)=>{const n=d.useContext(Ja),r=d.useRef(null),o=de(t,r);return d.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),c.jsx(le.div,{...e,ref:o})});Jh.displayName=Xh;function e1(e,t=globalThis==null?void 0:globalThis.document){const n=Xt(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){tl(Yh,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function t1(e,t=globalThis==null?void 0:globalThis.document){const n=Xt(e),r=d.useRef(!1);return d.useEffect(()=>{const o=s=>{s.target&&!r.current&&tl(Zh,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function el(){const e=new CustomEvent(ps);document.dispatchEvent(e)}function tl(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?qh(o,s):o.dispatchEvent(s)}var hs=0;function nl(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??rl()),document.body.insertAdjacentElement("beforeend",e[1]??rl()),hs++,()=>{hs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),hs--}},[])}function rl(){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 ms="focusScope.autoFocusOnMount",gs="focusScope.autoFocusOnUnmount",ol={bubbles:!1,cancelable:!0},n1="FocusScope",vs=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,l]=d.useState(null),u=Xt(o),f=Xt(s),h=d.useRef(null),m=de(t,p=>l(p)),g=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let p=function(C){if(g.paused||!a)return;const S=C.target;a.contains(S)?h.current=S:Pt(h.current,{select:!0})},v=function(C){if(g.paused||!a)return;const S=C.relatedTarget;S!==null&&(a.contains(S)||Pt(h.current,{select:!0}))},y=function(C){if(document.activeElement===document.body)for(const T of C)T.removedNodes.length>0&&Pt(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",v);const w=new MutationObserver(y);return a&&w.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),w.disconnect()}}},[r,a,g.paused]),d.useEffect(()=>{if(a){al.add(g);const p=document.activeElement;if(!a.contains(p)){const y=new CustomEvent(ms,ol);a.addEventListener(ms,u),a.dispatchEvent(y),y.defaultPrevented||(r1(l1(sl(a)),{select:!0}),document.activeElement===p&&Pt(a))}return()=>{a.removeEventListener(ms,u),setTimeout(()=>{const y=new CustomEvent(gs,ol);a.addEventListener(gs,f),a.dispatchEvent(y),y.defaultPrevented||Pt(p??document.body,{select:!0}),a.removeEventListener(gs,f),al.remove(g)},0)}}},[a,u,f,g]);const x=d.useCallback(p=>{if(!n&&!r||g.paused)return;const v=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(v&&y){const w=p.currentTarget,[C,S]=o1(w);C&&S?!p.shiftKey&&y===S?(p.preventDefault(),n&&Pt(C,{select:!0})):p.shiftKey&&y===C&&(p.preventDefault(),n&&Pt(S,{select:!0})):y===w&&p.preventDefault()}},[n,r,g.paused]);return c.jsx(le.div,{tabIndex:-1,...i,ref:m,onKeyDown:x})});vs.displayName=n1;function r1(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Pt(r,{select:t}),document.activeElement!==n)return}function o1(e){const t=sl(e),n=il(t,e),r=il(t.reverse(),e);return[n,r]}function sl(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 il(e,t){for(const n of e)if(!s1(n,{upTo:t}))return n}function s1(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 i1(e){return e instanceof HTMLInputElement&&"select"in e}function Pt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&i1(e)&&t&&e.select()}}var al=a1();function a1(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ll(e,t),e.unshift(t)},remove(t){var n;e=ll(e,t),(n=e[0])==null||n.resume()}}}function ll(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function l1(e){return e.filter(t=>t.tagName!=="A")}var _e=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{},c1=d[" useId ".trim().toString()]||(()=>{}),u1=0;function Jt(e){const[t,n]=d.useState(c1());return _e(()=>{n(r=>r??String(u1++))},[e]),e||(t?`radix-${t}`:"")}const d1=["top","right","bottom","left"],At=Math.min,De=Math.max,Gr=Math.round,qr=Math.floor,et=e=>({x:e,y:e}),f1={left:"right",right:"left",bottom:"top",top:"bottom"},p1={start:"end",end:"start"};function ys(e,t,n){return De(e,At(t,n))}function ht(e,t){return typeof e=="function"?e(t):e}function mt(e){return e.split("-")[0]}function bn(e){return e.split("-")[1]}function bs(e){return e==="x"?"y":"x"}function ws(e){return e==="y"?"height":"width"}const h1=new Set(["top","bottom"]);function tt(e){return h1.has(mt(e))?"y":"x"}function _s(e){return bs(tt(e))}function m1(e,t,n){n===void 0&&(n=!1);const r=bn(e),o=_s(e),s=ws(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Kr(i)),[i,Kr(i)]}function g1(e){const t=Kr(e);return[xs(e),t,xs(t)]}function xs(e){return e.replace(/start|end/g,t=>p1[t])}const cl=["left","right"],ul=["right","left"],v1=["top","bottom"],y1=["bottom","top"];function b1(e,t,n){switch(e){case"top":case"bottom":return n?t?ul:cl:t?cl:ul;case"left":case"right":return t?v1:y1;default:return[]}}function w1(e,t,n,r){const o=bn(e);let s=b1(mt(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(xs)))),s}function Kr(e){return e.replace(/left|right|bottom|top/g,t=>f1[t])}function _1(e){return{top:0,right:0,bottom:0,left:0,...e}}function dl(e){return typeof e!="number"?_1(e):{top:e,right:e,bottom:e,left:e}}function Qr(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 fl(e,t,n){let{reference:r,floating:o}=e;const s=tt(t),i=_s(t),a=ws(i),l=mt(t),u=s==="y",f=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,m=r[a]/2-o[a]/2;let g;switch(l){case"top":g={x:f,y:r.y-o.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:h};break;case"left":g={x:r.x-o.width,y:h};break;default:g={x:r.x,y:r.y}}switch(bn(t)){case"start":g[i]-=m*(n&&u?-1:1);break;case"end":g[i]+=m*(n&&u?-1:1);break}return g}async function x1(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:m=!1,padding:g=0}=ht(t,e),x=dl(g),v=a[m?h==="floating"?"reference":"floating":h],y=Qr(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:l})),w=h==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(C))?await(s.getScale==null?void 0:s.getScale(C))||{x:1,y:1}:{x:1,y:1},T=Qr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:C,strategy:l}):w);return{top:(y.top-T.top+x.top)/S.y,bottom:(T.bottom-y.bottom+x.bottom)/S.y,left:(y.left-T.left+x.left)/S.x,right:(T.right-y.right+x.right)/S.x}}const C1=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:h}=fl(u,r,l),m=r,g={},x=0;for(let v=0;v<a.length;v++){var p;const{name:y,fn:w}=a[v],{x:C,y:S,data:T,reset:R}=await w({x:f,y:h,initialPlacement:r,placement:m,strategy:o,middlewareData:g,rects:u,platform:{...i,detectOverflow:(p=i.detectOverflow)!=null?p:x1},elements:{reference:e,floating:t}});f=C??f,h=S??h,g={...g,[y]:{...g[y],...T}},R&&x<=50&&(x++,typeof R=="object"&&(R.placement&&(m=R.placement),R.rects&&(u=R.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):R.rects),{x:f,y:h}=fl(u,m,l)),v=-1)}return{x:f,y:h,placement:m,strategy:o,middlewareData:g}},S1=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:u,padding:f=0}=ht(e,t)||{};if(u==null)return{};const h=dl(f),m={x:n,y:r},g=_s(o),x=ws(g),p=await i.getDimensions(u),v=g==="y",y=v?"top":"left",w=v?"bottom":"right",C=v?"clientHeight":"clientWidth",S=s.reference[x]+s.reference[g]-m[g]-s.floating[x],T=m[g]-s.reference[g],R=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let P=R?R[C]:0;(!P||!await(i.isElement==null?void 0:i.isElement(R)))&&(P=a.floating[C]||s.floating[x]);const L=S/2-T/2,j=P/2-p[x]/2-1,D=At(h[y],j),B=At(h[w],j),U=D,H=P-p[x]-B,z=P/2-p[x]/2+L,ie=ys(U,z,H),G=!l.arrow&&bn(o)!=null&&z!==ie&&s.reference[x]/2-(z<U?D:B)-p[x]/2<0,Z=G?z<U?z-U:z-H:0;return{[g]:m[g]+Z,data:{[g]:ie,centerOffset:z-ie-Z,...G&&{alignmentOffset:Z}},reset:G}}}),E1=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:p=!0,...v}=ht(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=mt(o),w=tt(a),C=mt(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),T=m||(C||!p?[Kr(a)]:g1(a)),R=x!=="none";!m&&R&&T.push(...w1(a,p,x,S));const P=[a,...T],L=await l.detectOverflow(t,v),j=[];let D=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&j.push(L[y]),h){const z=m1(o,i,S);j.push(L[z[0]],L[z[1]])}if(D=[...D,{placement:o,overflows:j}],!j.every(z=>z<=0)){var B,U;const z=(((B=s.flip)==null?void 0:B.index)||0)+1,ie=P[z];if(ie&&(!(h==="alignment"?w!==tt(ie):!1)||D.every($=>tt($.placement)===w?$.overflows[0]>0:!0)))return{data:{index:z,overflows:D},reset:{placement:ie}};let G=(U=D.filter(Z=>Z.overflows[0]<=0).sort((Z,$)=>Z.overflows[1]-$.overflows[1])[0])==null?void 0:U.placement;if(!G)switch(g){case"bestFit":{var H;const Z=(H=D.filter($=>{if(R){const ae=tt($.placement);return ae===w||ae==="y"}return!0}).map($=>[$.placement,$.overflows.filter(ae=>ae>0).reduce((ae,we)=>ae+we,0)]).sort(($,ae)=>$[1]-ae[1])[0])==null?void 0:H[0];Z&&(G=Z);break}case"initialPlacement":G=a;break}if(o!==G)return{reset:{placement:G}}}return{}}}};function pl(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function hl(e){return d1.some(t=>e[t]>=0)}const T1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=ht(e,t);switch(o){case"referenceHidden":{const i=await r.detectOverflow(t,{...s,elementContext:"reference"}),a=pl(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:hl(a)}}}case"escaped":{const i=await r.detectOverflow(t,{...s,altBoundary:!0}),a=pl(i,n.floating);return{data:{escapedOffsets:a,escaped:hl(a)}}}default:return{}}}}},ml=new Set(["left","top"]);async function R1(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=mt(n),a=bn(n),l=tt(n)==="y",u=ml.has(i)?-1:1,f=s&&l?-1:1,h=ht(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:x}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof x=="number"&&(g=a==="end"?x*-1:x),l?{x:g*f,y:m*u}:{x:m*u,y:g*f}}const P1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await R1(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},A1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:y=>{let{x:w,y:C}=y;return{x:w,y:C}}},...u}=ht(e,t),f={x:n,y:r},h=await s.detectOverflow(t,u),m=tt(mt(o)),g=bs(m);let x=f[g],p=f[m];if(i){const y=g==="y"?"top":"left",w=g==="y"?"bottom":"right",C=x+h[y],S=x-h[w];x=ys(C,x,S)}if(a){const y=m==="y"?"top":"left",w=m==="y"?"bottom":"right",C=p+h[y],S=p-h[w];p=ys(C,p,S)}const v=l.fn({...t,[g]:x,[m]:p});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[g]:i,[m]:a}}}}}},O1=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=ht(e,t),f={x:n,y:r},h=tt(o),m=bs(h);let g=f[m],x=f[h];const p=ht(a,t),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const C=m==="y"?"height":"width",S=s.reference[m]-s.floating[C]+v.mainAxis,T=s.reference[m]+s.reference[C]-v.mainAxis;g<S?g=S:g>T&&(g=T)}if(u){var y,w;const C=m==="y"?"width":"height",S=ml.has(mt(o)),T=s.reference[h]-s.floating[C]+(S&&((y=i.offset)==null?void 0:y[h])||0)+(S?0:v.crossAxis),R=s.reference[h]+s.reference[C]+(S?0:((w=i.offset)==null?void 0:w[h])||0)-(S?v.crossAxis:0);x<T?x=T:x>R&&(x=R)}return{[m]:g,[h]:x}}}},I1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...u}=ht(e,t),f=await i.detectOverflow(t,u),h=mt(o),m=bn(o),g=tt(o)==="y",{width:x,height:p}=s.floating;let v,y;h==="top"||h==="bottom"?(v=h,y=m===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(y=h,v=m==="end"?"top":"bottom");const w=p-f.top-f.bottom,C=x-f.left-f.right,S=At(p-f[v],w),T=At(x-f[y],C),R=!t.middlewareData.shift;let P=S,L=T;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(L=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=w),R&&!m){const D=De(f.left,0),B=De(f.right,0),U=De(f.top,0),H=De(f.bottom,0);g?L=x-2*(D!==0||B!==0?D+B:De(f.left,f.right)):P=p-2*(U!==0||H!==0?U+H:De(f.top,f.bottom))}await l({...t,availableWidth:L,availableHeight:P});const j=await i.getDimensions(a.floating);return x!==j.width||p!==j.height?{reset:{rects:!0}}:{}}}};function Yr(){return typeof window<"u"}function wn(e){return gl(e)?(e.nodeName||"").toLowerCase():"#document"}function Ne(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function nt(e){var t;return(t=(gl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function gl(e){return Yr()?e instanceof Node||e instanceof Ne(e).Node:!1}function Ve(e){return Yr()?e instanceof Element||e instanceof Ne(e).Element:!1}function rt(e){return Yr()?e instanceof HTMLElement||e instanceof Ne(e).HTMLElement:!1}function vl(e){return!Yr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ne(e).ShadowRoot}const j1=new Set(["inline","contents"]);function er(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ze(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!j1.has(o)}const k1=new Set(["table","td","th"]);function L1(e){return k1.has(wn(e))}const D1=[":popover-open",":modal"];function Zr(e){return D1.some(t=>{try{return e.matches(t)}catch{return!1}})}const N1=["transform","translate","scale","rotate","perspective"],M1=["transform","translate","scale","rotate","perspective","filter"],$1=["paint","layout","strict","content"];function Cs(e){const t=Ss(),n=Ve(e)?ze(e):e;return N1.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)||M1.some(r=>(n.willChange||"").includes(r))||$1.some(r=>(n.contain||"").includes(r))}function F1(e){let t=Ot(e);for(;rt(t)&&!_n(t);){if(Cs(t))return t;if(Zr(t))return null;t=Ot(t)}return null}function Ss(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const B1=new Set(["html","body","#document"]);function _n(e){return B1.has(wn(e))}function ze(e){return Ne(e).getComputedStyle(e)}function Xr(e){return Ve(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ot(e){if(wn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||vl(e)&&e.host||nt(e);return vl(t)?t.host:t}function yl(e){const t=Ot(e);return _n(t)?e.ownerDocument?e.ownerDocument.body:e.body:rt(t)&&er(t)?t:yl(t)}function tr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=yl(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=Ne(o);if(s){const a=Es(i);return t.concat(i,i.visualViewport||[],er(o)?o:[],a&&n?tr(a):[])}return t.concat(o,tr(o,[],n))}function Es(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bl(e){const t=ze(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=rt(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=Gr(n)!==s||Gr(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Ts(e){return Ve(e)?e:e.contextElement}function xn(e){const t=Ts(e);if(!rt(t))return et(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=bl(t);let i=(s?Gr(n.width):n.width)/r,a=(s?Gr(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const U1=et(0);function wl(e){const t=Ne(e);return!Ss()||!t.visualViewport?U1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function W1(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ne(e)?!1:t}function en(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Ts(e);let i=et(1);t&&(r?Ve(r)&&(i=xn(r)):i=xn(e));const a=W1(s,n,r)?wl(s):et(0);let l=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,f=o.width/i.x,h=o.height/i.y;if(s){const m=Ne(s),g=r&&Ve(r)?Ne(r):r;let x=m,p=Es(x);for(;p&&r&&g!==x;){const v=xn(p),y=p.getBoundingClientRect(),w=ze(p),C=y.left+(p.clientLeft+parseFloat(w.paddingLeft))*v.x,S=y.top+(p.clientTop+parseFloat(w.paddingTop))*v.y;l*=v.x,u*=v.y,f*=v.x,h*=v.y,l+=C,u+=S,x=Ne(p),p=Es(x)}}return Qr({width:f,height:h,x:l,y:u})}function Jr(e,t){const n=Xr(e).scrollLeft;return t?t.left+n:en(nt(e)).left+n}function _l(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Jr(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function H1(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=nt(r),a=t?Zr(t.floating):!1;if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},u=et(1);const f=et(0),h=rt(r);if((h||!h&&!s)&&((wn(r)!=="body"||er(i))&&(l=Xr(r)),rt(r))){const g=en(r);u=xn(r),f.x=g.x+r.clientLeft,f.y=g.y+r.clientTop}const m=i&&!h&&!s?_l(i,l):et(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+m.x,y:n.y*u.y-l.scrollTop*u.y+f.y+m.y}}function V1(e){return Array.from(e.getClientRects())}function z1(e){const t=nt(e),n=Xr(e),r=e.ownerDocument.body,o=De(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=De(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Jr(e);const a=-n.scrollTop;return ze(r).direction==="rtl"&&(i+=De(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const xl=25;function G1(e,t){const n=Ne(e),r=nt(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const f=Ss();(!f||f&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const u=Jr(r);if(u<=0){const f=r.ownerDocument,h=f.body,m=getComputedStyle(h),g=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,x=Math.abs(r.clientWidth-h.clientWidth-g);x<=xl&&(s-=x)}else u<=xl&&(s+=u);return{width:s,height:i,x:a,y:l}}const q1=new Set(["absolute","fixed"]);function K1(e,t){const n=en(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=rt(e)?xn(e):et(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=o*s.x,u=r*s.y;return{width:i,height:a,x:l,y:u}}function Cl(e,t,n){let r;if(t==="viewport")r=G1(e,n);else if(t==="document")r=z1(nt(e));else if(Ve(t))r=K1(t,n);else{const o=wl(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Qr(r)}function Sl(e,t){const n=Ot(e);return n===t||!Ve(n)||_n(n)?!1:ze(n).position==="fixed"||Sl(n,t)}function Q1(e,t){const n=t.get(e);if(n)return n;let r=tr(e,[],!1).filter(a=>Ve(a)&&wn(a)!=="body"),o=null;const s=ze(e).position==="fixed";let i=s?Ot(e):e;for(;Ve(i)&&!_n(i);){const a=ze(i),l=Cs(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&q1.has(o.position)||er(i)&&!l&&Sl(e,i))?r=r.filter(f=>f!==i):o=a,i=Ot(i)}return t.set(e,r),r}function Y1(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Zr(t)?[]:Q1(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((u,f)=>{const h=Cl(t,f,o);return u.top=De(h.top,u.top),u.right=At(h.right,u.right),u.bottom=At(h.bottom,u.bottom),u.left=De(h.left,u.left),u},Cl(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Z1(e){const{width:t,height:n}=bl(e);return{width:t,height:n}}function X1(e,t,n){const r=rt(t),o=nt(t),s=n==="fixed",i=en(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=et(0);function u(){l.x=Jr(o)}if(r||!r&&!s)if((wn(t)!=="body"||er(o))&&(a=Xr(t)),r){const g=en(t,!0,s,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else o&&u();s&&!r&&o&&u();const f=o&&!r&&!s?_l(o,a):et(0),h=i.left+a.scrollLeft-l.x-f.x,m=i.top+a.scrollTop-l.y-f.y;return{x:h,y:m,width:i.width,height:i.height}}function Rs(e){return ze(e).position==="static"}function El(e,t){if(!rt(e)||ze(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return nt(e)===n&&(n=n.ownerDocument.body),n}function Tl(e,t){const n=Ne(e);if(Zr(e))return n;if(!rt(e)){let o=Ot(e);for(;o&&!_n(o);){if(Ve(o)&&!Rs(o))return o;o=Ot(o)}return n}let r=El(e,t);for(;r&&L1(r)&&Rs(r);)r=El(r,t);return r&&_n(r)&&Rs(r)&&!Cs(r)?n:r||F1(e)||n}const J1=async function(e){const t=this.getOffsetParent||Tl,n=this.getDimensions,r=await n(e.floating);return{reference:X1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function em(e){return ze(e).direction==="rtl"}const tm={convertOffsetParentRelativeRectToViewportRelativeRect:H1,getDocumentElement:nt,getClippingRect:Y1,getOffsetParent:Tl,getElementRects:J1,getClientRects:V1,getDimensions:Z1,getScale:xn,isElement:Ve,isRTL:em};function Rl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function nm(e,t){let n=null,r;const o=nt(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:f,top:h,width:m,height:g}=u;if(a||t(),!m||!g)return;const x=qr(h),p=qr(o.clientWidth-(f+m)),v=qr(o.clientHeight-(h+g)),y=qr(f),C={rootMargin:-x+"px "+-p+"px "+-v+"px "+-y+"px",threshold:De(0,At(1,l))||1};let S=!0;function T(R){const P=R[0].intersectionRatio;if(P!==l){if(!S)return i();P?i(!1,P):r=setTimeout(()=>{i(!1,1e-7)},1e3)}P===1&&!Rl(u,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(T,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(T,C)}n.observe(e)}return i(!0),s}function rm(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Ts(e),f=o||s?[...u?tr(u):[],...tr(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const h=u&&a?nm(u,n):null;let m=-1,g=null;i&&(g=new ResizeObserver(y=>{let[w]=y;w&&w.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var C;(C=g)==null||C.observe(t)})),n()}),u&&!l&&g.observe(u),g.observe(t));let x,p=l?en(e):null;l&&v();function v(){const y=en(e);p&&!Rl(p,y)&&n(),p=y,x=requestAnimationFrame(v)}return n(),()=>{var y;f.forEach(w=>{o&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),h==null||h(),(y=g)==null||y.disconnect(),g=null,l&&cancelAnimationFrame(x)}}const om=P1,sm=A1,im=E1,am=I1,lm=T1,Pl=S1,cm=O1,um=(e,t,n)=>{const r=new Map,o={platform:tm,...n},s={...o.platform,_c:r};return C1(e,t,{...o,platform:s})};var dm=typeof document<"u",fm=function(){},eo=dm?bi:fm;function to(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(!to(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 s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!to(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Al(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ol(e,t){const n=Al(e);return Math.round(t*n)/n}function Ps(e){const t=d.useRef(e);return eo(()=>{t.current=e}),t}function pm(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[f,h]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=d.useState(r);to(m,r)||g(r);const[x,p]=d.useState(null),[v,y]=d.useState(null),w=d.useCallback($=>{$!==R.current&&(R.current=$,p($))},[]),C=d.useCallback($=>{$!==P.current&&(P.current=$,y($))},[]),S=s||x,T=i||v,R=d.useRef(null),P=d.useRef(null),L=d.useRef(f),j=l!=null,D=Ps(l),B=Ps(o),U=Ps(u),H=d.useCallback(()=>{if(!R.current||!P.current)return;const $={placement:t,strategy:n,middleware:m};B.current&&($.platform=B.current),um(R.current,P.current,$).then(ae=>{const we={...ae,isPositioned:U.current!==!1};z.current&&!to(L.current,we)&&(L.current=we,Gn.flushSync(()=>{h(we)}))})},[m,t,n,B,U]);eo(()=>{u===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,h($=>({...$,isPositioned:!1})))},[u]);const z=d.useRef(!1);eo(()=>(z.current=!0,()=>{z.current=!1}),[]),eo(()=>{if(S&&(R.current=S),T&&(P.current=T),S&&T){if(D.current)return D.current(S,T,H);H()}},[S,T,H,D,j]);const ie=d.useMemo(()=>({reference:R,floating:P,setReference:w,setFloating:C}),[w,C]),G=d.useMemo(()=>({reference:S,floating:T}),[S,T]),Z=d.useMemo(()=>{const $={position:n,left:0,top:0};if(!G.floating)return $;const ae=Ol(G.floating,f.x),we=Ol(G.floating,f.y);return a?{...$,transform:"translate("+ae+"px, "+we+"px)",...Al(G.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ae,top:we}},[n,a,G.floating,f.x,f.y]);return d.useMemo(()=>({...f,update:H,refs:ie,elements:G,floatingStyles:Z}),[f,H,ie,G,Z])}const hm=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?Pl({element:r.current,padding:o}).fn(n):{}:r?Pl({element:r,padding:o}).fn(n):{}}}},mm=(e,t)=>({...om(e),options:[e,t]}),gm=(e,t)=>({...sm(e),options:[e,t]}),vm=(e,t)=>({...cm(e),options:[e,t]}),ym=(e,t)=>({...im(e),options:[e,t]}),bm=(e,t)=>({...am(e),options:[e,t]}),wm=(e,t)=>({...lm(e),options:[e,t]}),_m=(e,t)=>({...hm(e),options:[e,t]});var xm="Arrow",Il=d.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return c.jsx(le.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});Il.displayName=xm;var Cm=Il;function Sm(e){const[t,n]=d.useState(void 0);return _e(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var As="Popper",[jl,no]=Jn(As),[Em,kl]=jl(As),Ll=e=>{const{__scopePopper:t,children:n}=e,[r,o]=d.useState(null);return c.jsx(Em,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ll.displayName=As;var Dl="PopperAnchor",Nl=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=kl(Dl,n),i=d.useRef(null),a=de(t,i),l=d.useRef(null);return d.useEffect(()=>{const u=l.current;l.current=(r==null?void 0:r.current)||i.current,u!==l.current&&s.onAnchorChange(l.current)}),r?null:c.jsx(le.div,{...o,ref:a})});Nl.displayName=Dl;var Os="PopperContent",[Tm,Rm]=jl(Os),Ml=d.forwardRef((e,t)=>{var M,re,ge,ee,oe,te;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:h="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:x,...p}=e,v=kl(Os,n),[y,w]=d.useState(null),C=de(t,Re=>w(Re)),[S,T]=d.useState(null),R=Sm(S),P=(R==null?void 0:R.width)??0,L=(R==null?void 0:R.height)??0,j=r+(s!=="center"?"-"+s:""),D=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},B=Array.isArray(u)?u:[u],U=B.length>0,H={padding:D,boundary:B.filter(Am),altBoundary:U},{refs:z,floatingStyles:ie,placement:G,isPositioned:Z,middlewareData:$}=pm({strategy:"fixed",placement:j,whileElementsMounted:(...Re)=>rm(...Re,{animationFrame:g==="always"}),elements:{reference:v.anchor},middleware:[mm({mainAxis:o+L,alignmentAxis:i}),l&&gm({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?vm():void 0,...H}),l&&ym({...H}),bm({...H,apply:({elements:Re,rects:Fe,availableWidth:ut,availableHeight:Xe})=>{const{width:Gt,height:Po}=Fe.reference,_t=Re.floating.style;_t.setProperty("--radix-popper-available-width",`${ut}px`),_t.setProperty("--radix-popper-available-height",`${Xe}px`),_t.setProperty("--radix-popper-anchor-width",`${Gt}px`),_t.setProperty("--radix-popper-anchor-height",`${Po}px`)}}),S&&_m({element:S,padding:a}),Om({arrowWidth:P,arrowHeight:L}),m&&wm({strategy:"referenceHidden",...H})]}),[ae,we]=Bl(G),$e=Xt(x);_e(()=>{Z&&($e==null||$e())},[Z,$e]);const Ht=(M=$.arrow)==null?void 0:M.x,Vt=(re=$.arrow)==null?void 0:re.y,ct=((ge=$.arrow)==null?void 0:ge.centerOffset)!==0,[zt,Ze]=d.useState();return _e(()=>{y&&Ze(window.getComputedStyle(y).zIndex)},[y]),c.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...ie,transform:Z?ie.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:zt,"--radix-popper-transform-origin":[(ee=$.transformOrigin)==null?void 0:ee.x,(oe=$.transformOrigin)==null?void 0:oe.y].join(" "),...((te=$.hide)==null?void 0:te.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(Tm,{scope:n,placedSide:ae,onArrowChange:T,arrowX:Ht,arrowY:Vt,shouldHideArrow:ct,children:c.jsx(le.div,{"data-side":ae,"data-align":we,...p,ref:C,style:{...p.style,animation:Z?void 0:"none"}})})})});Ml.displayName=Os;var $l="PopperArrow",Pm={top:"bottom",right:"left",bottom:"top",left:"right"},Fl=d.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Rm($l,r),i=Pm[s.placedSide];return c.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:c.jsx(Cm,{...o,ref:n,style:{...o.style,display:"block"}})})});Fl.displayName=$l;function Am(e){return e!==null}var Om=e=>({name:"transformOrigin",options:e,fn(t){var v,y,w;const{placement:n,rects:r,middlewareData:o}=t,i=((v=o.arrow)==null?void 0:v.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,f]=Bl(n),h={start:"0%",center:"50%",end:"100%"}[f],m=(((y=o.arrow)==null?void 0:y.x)??0)+a/2,g=(((w=o.arrow)==null?void 0:w.y)??0)+l/2;let x="",p="";return u==="bottom"?(x=i?h:`${m}px`,p=`${-l}px`):u==="top"?(x=i?h:`${m}px`,p=`${r.floating.height+l}px`):u==="right"?(x=`${-l}px`,p=i?h:`${g}px`):u==="left"&&(x=`${r.floating.width+l}px`,p=i?h:`${g}px`),{data:{x,y:p}}}});function Bl(e){const[t,n="center"]=e.split("-");return[t,n]}var Ul=Ll,Wl=Nl,Hl=Ml,Vl=Fl,Im="Portal",Is=d.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=d.useState(!1);_e(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?xi.createPortal(c.jsx(le.div,{...r,ref:t}),i):null});Is.displayName=Im;function jm(e){const t=km(e),n=d.forwardRef((r,o)=>{const{children:s,...i}=r,a=d.Children.toArray(s),l=a.find(Dm);if(l){const u=l.props.children,f=a.map(h=>h===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return c.jsx(t,{...i,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return c.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function km(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const i=Mm(o),a=Nm(s,o.props);return o.type!==d.Fragment&&(a.ref=r?yn(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Lm=Symbol("radix.slottable");function Dm(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Lm}function Nm(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Mm(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 $m=d[" useInsertionEffect ".trim().toString()]||_e;function ro({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=Fm({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const f=d.useRef(e!==void 0);d.useEffect(()=>{const h=f.current;h!==a&&console.warn(`${r} is changing from ${h?"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.`),f.current=a},[a,r])}const u=d.useCallback(f=>{var h;if(a){const m=Bm(f)?f(e):f;m!==e&&((h=i.current)==null||h.call(i,m))}else s(f)},[a,e,s,i]);return[l,u]}function Fm({defaultProp:e,onChange:t}){const[n,r]=d.useState(e),o=d.useRef(n),s=d.useRef(t);return $m(()=>{s.current=t},[t]),d.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function Bm(e){return typeof e=="function"}function Um(e){const t=d.useRef({value:e,previous:e});return d.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var zl=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"}),Wm="VisuallyHidden",Gl=d.forwardRef((e,t)=>c.jsx(le.span,{...e,ref:t,style:{...zl,...e.style}}));Gl.displayName=Wm;var Hm=Gl,Vm=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Cn=new WeakMap,oo=new WeakMap,so={},js=0,ql=function(e){return e&&(e.host||ql(e.parentNode))},zm=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ql(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})},Gm=function(e,t,n,r){var o=zm(t,Array.isArray(e)?e:[e]);so[n]||(so[n]=new WeakMap);var s=so[n],i=[],a=new Set,l=new Set(o),u=function(h){!h||a.has(h)||(a.add(h),u(h.parentNode))};o.forEach(u);var f=function(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,function(m){if(a.has(m))f(m);else try{var g=m.getAttribute(r),x=g!==null&&g!=="false",p=(Cn.get(m)||0)+1,v=(s.get(m)||0)+1;Cn.set(m,p),s.set(m,v),i.push(m),p===1&&x&&oo.set(m,!0),v===1&&m.setAttribute(n,"true"),x||m.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};return f(t),a.clear(),js++,function(){i.forEach(function(h){var m=Cn.get(h)-1,g=s.get(h)-1;Cn.set(h,m),s.set(h,g),m||(oo.has(h)||h.removeAttribute(r),oo.delete(h)),g||h.removeAttribute(n)}),js--,js||(Cn=new WeakMap,Cn=new WeakMap,oo=new WeakMap,so={})}},Kl=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Vm(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Gm(r,o,n,"aria-hidden")):function(){return null}},io="right-scroll-bar-position",ao="width-before-scroll-bar",qm="with-scroll-bars-hidden",Km="--removed-body-scroll-bar-size";function ks(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Qm(e,t){var n=W(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"?d.useLayoutEffect:d.useEffect,Ql=new WeakMap;function Zm(e,t){var n=Qm(null,function(r){return e.forEach(function(o){return ks(o,r)})});return Ym(function(){var r=Ql.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||ks(a,null)}),s.forEach(function(a){o.has(a)||ks(a,i)})}Ql.set(n,e)},[e]),n}function Xm(e){return e}function Jm(e,t){t===void 0&&(t=Xm);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(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var l=function(){var f=i;i=[],f.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(f){i.push(f),u()},filter:function(f){return i=i.filter(f),n}}}};return o}function eg(e){e===void 0&&(e={});var t=Jm(null);return t.options=Je({async:!0,ssr:!1},e),t}var Yl=function(e){var t=e.sideCar,n=Bi(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 d.createElement(r,Je({},n))};Yl.isSideCarExport=!0;function tg(e,t){return e.useMedium(t),Yl}var Zl=eg(),Ls=function(){},lo=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:Ls,onWheelCapture:Ls,onTouchMoveCapture:Ls}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,f=e.enabled,h=e.shards,m=e.sideCar,g=e.noRelative,x=e.noIsolation,p=e.inert,v=e.allowPinchZoom,y=e.as,w=y===void 0?"div":y,C=e.gapMode,S=Bi(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=m,R=Zm([n,t]),P=Je(Je({},S),o);return d.createElement(d.Fragment,null,f&&d.createElement(T,{sideCar:Zl,removeScrollBar:u,shards:h,noRelative:g,noIsolation:x,inert:p,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:C}),i?d.cloneElement(d.Children.only(a),Je(Je({},P),{ref:R})):d.createElement(w,Je({},P,{className:l,ref:R}),a))});lo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},lo.classNames={fullWidth:ao,zeroRight:io};var ng=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function rg(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ng();return t&&e.setAttribute("nonce",t),e}function og(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function sg(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ig=function(){var e=0,t=null;return{add:function(n){e==0&&(t=rg())&&(og(t,n),sg(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ag=function(){var e=ig();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Xl=function(){var e=ag(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},lg={left:0,top:0,right:0,gap:0},Ds=function(e){return parseInt(e||"",10)||0},cg=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[Ds(n),Ds(r),Ds(o)]},ug=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return lg;var t=cg(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])}},dg=Xl(),Sn="data-scroll-locked",fg=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
210
- .`.concat(qm,` {
211
+ `,Lr=16,Rh=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,containerStyle:s,containerClassName:i})=>{let{toasts:a,handlers:c}=th(n);return d.createElement("div",{style:{position:"fixed",zIndex:9999,top:Lr,left:Lr,right:Lr,bottom:Lr,pointerEvents:"none",...s},className:i,onMouseEnter:c.startPause,onMouseLeave:c.endPause},a.map(l=>{let f=l.position||t,h=c.calculateOffset(l,{reverseOrder:e,gutter:r,defaultPosition:t}),m=_h(f,h);return d.createElement(Eh,{id:l.id,key:l.id,onHeightUpdate:c.updateHeight,className:l.visible?Th:"",style:m},l.type==="custom"?Or(l.message,l):o?o(l):d.createElement(xh,{toast:l,position:f}))}))},ca=Le;const la=_("useNotifications",()=>({notify:ce((t,n,r)=>{const o={style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}};n==="warning"||n==="info"?ca(t,{...o,icon:n==="warning"?"⚠️":"ℹ️"}):ca[n](t,o),r&&console.error(r)},[])}));var vn=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(){}},Yt=typeof window>"u"||"Deno"in globalThis;function xe(){}function Ph(e,t){return typeof e=="function"?e(t):e}function Zo(e){return typeof e=="number"&&e>=0&&e!==1/0}function ua(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Rt(e,t){return typeof e=="function"?e(t):e}function He(e,t){return typeof e=="function"?e(t):e}function da(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==Xo(i,t.options))return!1}else if(!tr(t.queryKey,i))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||s&&!s(t))}function fa(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Zt(t.options.mutationKey)!==Zt(s))return!1}else if(!tr(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Xo(e,t){return((t==null?void 0:t.queryKeyHashFn)||Zt)(e)}function Zt(e){return JSON.stringify(e,(t,n)=>es(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function tr(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>tr(e[n],t[n])):!1}function Jo(e,t){if(e===t)return e;const n=ha(e)&&ha(t);if(n||es(e)&&es(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,a=n?[]:{};let c=0;for(let l=0;l<i;l++){const f=n?l:s[l];(!n&&r.includes(f)||n)&&e[f]===void 0&&t[f]===void 0?(a[f]=void 0,c++):(a[f]=Jo(e[f],t[f]),a[f]===e[f]&&e[f]!==void 0&&c++)}return o===i&&c===o?e:a}return t}function Nr(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 ha(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function es(e){if(!pa(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!pa(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function pa(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ah(e){return new Promise(t=>{setTimeout(t,e)})}function ts(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){try{return Jo(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 Jo(e,t)}return t}function Oh(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function jh(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Mr=Symbol();function ma(e,t){return e.queryFn===Mr&&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===Mr?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ga(e,t){return typeof e=="function"?e(...t):!!e}var Ih=(rd=class extends vn{constructor(){super();M(this,cn);M(this,Dt);M(this,jn);O(this,jn,t=>{if(!Yt&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,Dt)||this.setEventListener(C(this,jn))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,Dt))==null||t.call(this),O(this,Dt,void 0))}setEventListener(t){var n;O(this,jn,t),(n=C(this,Dt))==null||n.call(this),O(this,Dt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){C(this,cn)!==t&&(O(this,cn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,cn)=="boolean"?C(this,cn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},cn=new WeakMap,Dt=new WeakMap,jn=new WeakMap,rd),ns=new Ih,Dh=(od=class extends vn{constructor(){super();M(this,In,!0);M(this,Lt);M(this,Dn);O(this,Dn,t=>{if(!Yt&&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(){C(this,Lt)||this.setEventListener(C(this,Dn))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,Lt))==null||t.call(this),O(this,Lt,void 0))}setEventListener(t){var n;O(this,Dn,t),(n=C(this,Lt))==null||n.call(this),O(this,Lt,t(this.setOnline.bind(this)))}setOnline(t){C(this,In)!==t&&(O(this,In,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return C(this,In)}},In=new WeakMap,Lt=new WeakMap,Dn=new WeakMap,od),$r=new Dh;function rs(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});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 Lh(e){return Math.min(1e3*2**e,3e4)}function va(e){return(e??"online")==="online"?$r.isOnline():!0}var ya=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function os(e){return e instanceof ya}function ba(e){let t=!1,n=0,r=!1,o;const s=rs(),i=p=>{var v;r||(m(new ya(p)),(v=e.abort)==null||v.call(e))},a=()=>{t=!0},c=()=>{t=!1},l=()=>ns.isFocused()&&(e.networkMode==="always"||$r.isOnline())&&e.canRun(),f=()=>va(e.networkMode)&&e.canRun(),h=p=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,p),o==null||o(),s.resolve(p))},m=p=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,p),o==null||o(),s.reject(p))},g=()=>new Promise(p=>{var v;o=y=>{(r||l())&&p(y)},(v=e.onPause)==null||v.call(e)}).then(()=>{var p;o=void 0,r||(p=e.onContinue)==null||p.call(e)}),S=()=>{if(r)return;let p;const v=n===0?e.initialPromise:void 0;try{p=v??e.fn()}catch(y){p=Promise.reject(y)}Promise.resolve(p).then(h).catch(y=>{var R;if(r)return;const w=e.retry??(Yt?0:3),x=e.retryDelay??Lh,E=typeof x=="function"?x(n,y):x,T=w===!0||typeof w=="number"&&n<w||typeof w=="function"&&w(n,y);if(t||!T){m(y);return}n++,(R=e.onFail)==null||R.call(e,n,y),Ah(E).then(()=>l()?void 0:g()).then(()=>{t?m(y):S()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:a,continueRetry:c,canStart:f,start:()=>(f()?S():g().then(S),s)}}var Nh=e=>setTimeout(e,0);function Mh(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=Nh;const s=a=>{t?e.push(a):o(()=>{n(a)})},i=()=>{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||i()}return c},batchCalls:a=>(...c)=>{s(()=>{a(...c)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var ye=Mh(),wa=(sd=class{constructor(){M(this,ln)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Zo(this.gcTime)&&O(this,ln,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Yt?1/0:5*60*1e3))}clearGcTimeout(){C(this,ln)&&(clearTimeout(C(this,ln)),O(this,ln,void 0))}},ln=new WeakMap,sd),$h=(id=class extends wa{constructor(t){super();M(this,Qe);M(this,Ln);M(this,Nn);M(this,$e);M(this,un);M(this,Se);M(this,pr);M(this,dn);O(this,dn,!1),O(this,pr,t.defaultOptions),this.setOptions(t.options),this.observers=[],O(this,un,t.client),O(this,$e,C(this,un).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,O(this,Ln,kh(this.options)),this.state=t.state??C(this,Ln),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=C(this,Se))==null?void 0:t.promise}setOptions(t){this.options={...C(this,pr),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,$e).remove(this)}setData(t,n){const r=ts(this.state.data,t,this.options);return V(this,Qe,St).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){V(this,Qe,St).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=C(this,Se))==null?void 0:r.promise;return(o=C(this,Se))==null||o.cancel(t),n?n.then(xe).catch(xe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,Ln))}isActive(){return this.observers.some(t=>He(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Mr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Rt(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:!ua(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Se))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Se))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,$e).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(C(this,Se)&&(C(this,dn)?C(this,Se).cancel({revert:!0}):C(this,Se).cancelRetry()),this.scheduleGc()),C(this,$e).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||V(this,Qe,St).call(this,{type:"invalidate"})}fetch(t,n){var l,f,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(C(this,Se))return C(this,Se).continueRetry(),C(this,Se).promise}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(g=>g.options.queryFn);m&&this.setOptions(m.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=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(O(this,dn,!0),r.signal)})},s=()=>{const m=ma(this.options,n),S=(()=>{const p={client:C(this,un),queryKey:this.queryKey,meta:this.meta};return o(p),p})();return O(this,dn,!1),this.options.persister?this.options.persister(m,S,this):m(S)},a=(()=>{const m={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:C(this,un),state:this.state,fetchFn:s};return o(m),m})();(l=this.options.behavior)==null||l.onFetch(a,this),O(this,Nn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=a.fetchOptions)==null?void 0:f.meta))&&V(this,Qe,St).call(this,{type:"fetch",meta:(h=a.fetchOptions)==null?void 0:h.meta});const c=m=>{var g,S,p,v;os(m)&&m.silent||V(this,Qe,St).call(this,{type:"error",error:m}),os(m)||((S=(g=C(this,$e).config).onError)==null||S.call(g,m,this),(v=(p=C(this,$e).config).onSettled)==null||v.call(p,this.state.data,m,this)),this.scheduleGc()};return O(this,Se,ba({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:m=>{var g,S,p,v;if(m===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(m)}catch(y){c(y);return}(S=(g=C(this,$e).config).onSuccess)==null||S.call(g,m,this),(v=(p=C(this,$e).config).onSettled)==null||v.call(p,m,this.state.error,this),this.scheduleGc()},onError:c,onFail:(m,g)=>{V(this,Qe,St).call(this,{type:"failed",failureCount:m,error:g})},onPause:()=>{V(this,Qe,St).call(this,{type:"pause"})},onContinue:()=>{V(this,Qe,St).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),C(this,Se).start()}},Ln=new WeakMap,Nn=new WeakMap,$e=new WeakMap,un=new WeakMap,Se=new WeakMap,pr=new WeakMap,dn=new WeakMap,Qe=new WeakSet,St=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,...Ca(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 os(o)&&o.revert&&C(this,Nn)?{...C(this,Nn),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),ye.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,$e).notify({query:this,type:"updated",action:t})})},id);function Ca(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:va(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function kh(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 Fh=(ad=class extends vn{constructor(t={}){super();M(this,it);this.config=t,O(this,it,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??Xo(o,n);let i=this.get(s);return i||(i=new $h({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){C(this,it).has(t.queryHash)||(C(this,it).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,it).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,it).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ye.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,it).get(t)}getAll(){return[...C(this,it).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>da(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>da(t,r)):n}notify(t){ye.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ye.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ye.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},it=new WeakMap,ad),Bh=(cd=class extends wa{constructor(t){super();M(this,ct);M(this,at);M(this,_e);M(this,fn);this.mutationId=t.mutationId,O(this,_e,t.mutationCache),O(this,at,[]),this.state=t.state||Sa(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){C(this,at).includes(t)||(C(this,at).push(t),this.clearGcTimeout(),C(this,_e).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){O(this,at,C(this,at).filter(n=>n!==t)),this.scheduleGc(),C(this,_e).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,at).length||(this.state.status==="pending"?this.scheduleGc():C(this,_e).remove(this))}continue(){var t;return((t=C(this,fn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,i,a,c,l,f,h,m,g,S,p,v,y,w,x,E,T,R,P,L;const n=()=>{V(this,ct,Gt).call(this,{type:"continue"})};O(this,fn,ba({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(I,N)=>{V(this,ct,Gt).call(this,{type:"failed",failureCount:I,error:N})},onPause:()=>{V(this,ct,Gt).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,_e).canRun(this)}));const r=this.state.status==="pending",o=!C(this,fn).canStart();try{if(r)n();else{V(this,ct,Gt).call(this,{type:"pending",variables:t,isPaused:o}),await((i=(s=C(this,_e).config).onMutate)==null?void 0:i.call(s,t,this));const N=await((c=(a=this.options).onMutate)==null?void 0:c.call(a,t));N!==this.state.context&&V(this,ct,Gt).call(this,{type:"pending",context:N,variables:t,isPaused:o})}const I=await C(this,fn).start();return await((f=(l=C(this,_e).config).onSuccess)==null?void 0:f.call(l,I,t,this.state.context,this)),await((m=(h=this.options).onSuccess)==null?void 0:m.call(h,I,t,this.state.context)),await((S=(g=C(this,_e).config).onSettled)==null?void 0:S.call(g,I,null,this.state.variables,this.state.context,this)),await((v=(p=this.options).onSettled)==null?void 0:v.call(p,I,null,t,this.state.context)),V(this,ct,Gt).call(this,{type:"success",data:I}),I}catch(I){try{throw await((w=(y=C(this,_e).config).onError)==null?void 0:w.call(y,I,t,this.state.context,this)),await((E=(x=this.options).onError)==null?void 0:E.call(x,I,t,this.state.context)),await((R=(T=C(this,_e).config).onSettled)==null?void 0:R.call(T,void 0,I,this.state.variables,this.state.context,this)),await((L=(P=this.options).onSettled)==null?void 0:L.call(P,void 0,I,t,this.state.context)),I}finally{V(this,ct,Gt).call(this,{type:"error",error:I})}}finally{C(this,_e).runNext(this)}}},at=new WeakMap,_e=new WeakMap,fn=new WeakMap,ct=new WeakSet,Gt=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),ye.batch(()=>{C(this,at).forEach(r=>{r.onMutationUpdate(t)}),C(this,_e).notify({mutation:this,type:"updated",action:t})})},cd);function Sa(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Uh=(ld=class extends vn{constructor(t={}){super();M(this,yt);M(this,Ye);M(this,mr);this.config=t,O(this,yt,new Set),O(this,Ye,new Map),O(this,mr,0)}build(t,n,r){const o=new Bh({mutationCache:this,mutationId:++Do(this,mr)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){C(this,yt).add(t);const n=kr(t);if(typeof n=="string"){const r=C(this,Ye).get(n);r?r.push(t):C(this,Ye).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(C(this,yt).delete(t)){const n=kr(t);if(typeof n=="string"){const r=C(this,Ye).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&C(this,Ye).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=kr(t);if(typeof n=="string"){const r=C(this,Ye).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=kr(t);if(typeof n=="string"){const o=(r=C(this,Ye).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ye.batch(()=>{C(this,yt).forEach(t=>{this.notify({type:"removed",mutation:t})}),C(this,yt).clear(),C(this,Ye).clear()})}getAll(){return Array.from(C(this,yt))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>fa(n,r))}findAll(t={}){return this.getAll().filter(n=>fa(t,n))}notify(t){ye.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ye.batch(()=>Promise.all(t.map(n=>n.continue().catch(xe))))}},yt=new WeakMap,Ye=new WeakMap,mr=new WeakMap,ld);function kr(e){var t;return(t=e.options.scope)==null?void 0:t.id}function xa(e){return{onFetch:(t,n)=>{var f,h,m,g,S;const r=t.options,o=(m=(h=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:h.fetchMore)==null?void 0:m.direction,s=((g=t.state.data)==null?void 0:g.pages)||[],i=((S=t.state.data)==null?void 0:S.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let p=!1;const v=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},y=ma(t.options,t.fetchOptions),w=async(x,E,T)=>{if(p)return Promise.reject();if(E==null&&x.pages.length)return Promise.resolve(x);const P=(()=>{const B={client:t.client,queryKey:t.queryKey,pageParam:E,direction:T?"backward":"forward",meta:t.options.meta};return v(B),B})(),L=await y(P),{maxPages:I}=t.options,N=T?jh:Oh;return{pages:N(x.pages,L,I),pageParams:N(x.pageParams,E,I)}};if(o&&s.length){const x=o==="backward",E=x?Wh:Ea,T={pages:s,pageParams:i},R=E(r,T);a=await w(T,R,x)}else{const x=e??s.length;do{const E=c===0?i[0]??r.initialPageParam:Ea(r,a);if(c>0&&E==null)break;a=await w(a,E),c++}while(c<x)}return a};t.options.persister?t.fetchFn=()=>{var p,v;return(v=(p=t.options).persister)==null?void 0:v.call(p,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function Ea(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 Wh(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 Hh=(ud=class{constructor(e={}){M(this,pe);M(this,Nt);M(this,Mt);M(this,Mn);M(this,$n);M(this,$t);M(this,kn);M(this,Fn);O(this,pe,e.queryCache||new Fh),O(this,Nt,e.mutationCache||new Uh),O(this,Mt,e.defaultOptions||{}),O(this,Mn,new Map),O(this,$n,new Map),O(this,$t,0)}mount(){Do(this,$t)._++,C(this,$t)===1&&(O(this,kn,ns.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,pe).onFocus())})),O(this,Fn,$r.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,pe).onOnline())})))}unmount(){var e,t;Do(this,$t)._--,C(this,$t)===0&&((e=C(this,kn))==null||e.call(this),O(this,kn,void 0),(t=C(this,Fn))==null||t.call(this),O(this,Fn,void 0))}isFetching(e){return C(this,pe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,Nt).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,pe).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=C(this,pe).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Rt(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return C(this,pe).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=C(this,pe).get(r.queryHash),s=o==null?void 0:o.state.data,i=Ph(t,s);if(i!==void 0)return C(this,pe).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return ye.batch(()=>C(this,pe).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,pe).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,pe);ye.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,pe);return ye.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=ye.batch(()=>C(this,pe).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(xe).catch(xe)}invalidateQueries(e,t={}){return ye.batch(()=>(C(this,pe).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=ye.batch(()=>C(this,pe).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(xe)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(xe)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,pe).build(this,t);return n.isStaleByTime(Rt(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(xe).catch(xe)}fetchInfiniteQuery(e){return e.behavior=xa(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(xe).catch(xe)}ensureInfiniteQueryData(e){return e.behavior=xa(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return $r.isOnline()?C(this,Nt).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,pe)}getMutationCache(){return C(this,Nt)}getDefaultOptions(){return C(this,Mt)}setDefaultOptions(e){O(this,Mt,e)}setQueryDefaults(e,t){C(this,Mn).set(Zt(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,Mn).values()],n={};return t.forEach(r=>{tr(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){C(this,$n).set(Zt(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,$n).values()],n={};return t.forEach(r=>{tr(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,Mt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Xo(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===Mr&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,Mt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,pe).clear(),C(this,Nt).clear()}},pe=new WeakMap,Nt=new WeakMap,Mt=new WeakMap,Mn=new WeakMap,$n=new WeakMap,$t=new WeakMap,kn=new WeakMap,Fn=new WeakMap,ud),Vh=(dd=class extends vn{constructor(t,n){super();M(this,ne);M(this,Oe);M(this,Q);M(this,gr);M(this,Te);M(this,hn);M(this,Bn);M(this,kt);M(this,Ft);M(this,vr);M(this,Un);M(this,Wn);M(this,pn);M(this,mn);M(this,Bt);M(this,Hn,new Set);this.options=n,O(this,Oe,t),O(this,Ft,null),O(this,kt,rs()),this.options.experimental_prefetchInRender||C(this,kt).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&&(C(this,Q).addObserver(this),_a(C(this,Q),this.options)?V(this,ne,yr).call(this):this.updateResult(),V(this,ne,wi).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ss(C(this,Q),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ss(C(this,Q),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,V(this,ne,Ci).call(this),V(this,ne,Si).call(this),C(this,Q).removeObserver(this)}setOptions(t){const n=this.options,r=C(this,Q);if(this.options=C(this,Oe).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof He(this.options.enabled,C(this,Q))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");V(this,ne,xi).call(this),C(this,Q).setOptions(this.options),n._defaulted&&!Nr(this.options,n)&&C(this,Oe).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,Q),observer:this});const o=this.hasListeners();o&&Ta(C(this,Q),r,this.options,n)&&V(this,ne,yr).call(this),this.updateResult(),o&&(C(this,Q)!==r||He(this.options.enabled,C(this,Q))!==He(n.enabled,C(this,Q))||Rt(this.options.staleTime,C(this,Q))!==Rt(n.staleTime,C(this,Q)))&&V(this,ne,vi).call(this);const s=V(this,ne,yi).call(this);o&&(C(this,Q)!==r||He(this.options.enabled,C(this,Q))!==He(n.enabled,C(this,Q))||s!==C(this,Bt))&&V(this,ne,bi).call(this,s)}getOptimisticResult(t){const n=C(this,Oe).getQueryCache().build(C(this,Oe),t),r=this.createResult(n,t);return qh(this,r)&&(O(this,Te,r),O(this,Bn,this.options),O(this,hn,C(this,Q).state)),r}getCurrentResult(){return C(this,Te)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),Reflect.get(r,o))})}trackProp(t){C(this,Hn).add(t)}getCurrentQuery(){return C(this,Q)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,Oe).defaultQueryOptions(t),r=C(this,Oe).getQueryCache().build(C(this,Oe),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return V(this,ne,yr).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,Te)))}createResult(t,n){var I;const r=C(this,Q),o=this.options,s=C(this,Te),i=C(this,hn),a=C(this,Bn),l=t!==r?t.state:C(this,gr),{state:f}=t;let h={...f},m=!1,g;if(n._optimisticResults){const N=this.hasListeners(),B=!N&&_a(t,n),U=N&&Ta(t,r,n,o);(B||U)&&(h={...h,...Ca(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:S,errorUpdatedAt:p,status:v}=h;g=h.data;let y=!1;if(n.placeholderData!==void 0&&g===void 0&&v==="pending"){let N;s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(N=s.data,y=!0):N=typeof n.placeholderData=="function"?n.placeholderData((I=C(this,Wn))==null?void 0:I.state.data,C(this,Wn)):n.placeholderData,N!==void 0&&(v="success",g=ts(s==null?void 0:s.data,N,n),m=!0)}if(n.select&&g!==void 0&&!y)if(s&&g===(i==null?void 0:i.data)&&n.select===C(this,vr))g=C(this,Un);else try{O(this,vr,n.select),g=n.select(g),g=ts(s==null?void 0:s.data,g,n),O(this,Un,g),O(this,Ft,null)}catch(N){O(this,Ft,N)}C(this,Ft)&&(S=C(this,Ft),g=C(this,Un),p=Date.now(),v="error");const w=h.fetchStatus==="fetching",x=v==="pending",E=v==="error",T=x&&w,R=g!==void 0,L={status:v,fetchStatus:h.fetchStatus,isPending:x,isSuccess:v==="success",isError:E,isInitialLoading:T,isLoading:T,data:g,dataUpdatedAt:h.dataUpdatedAt,error:S,errorUpdatedAt:p,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>l.dataUpdateCount||h.errorUpdateCount>l.errorUpdateCount,isFetching:w,isRefetching:w&&!x,isLoadingError:E&&!R,isPaused:h.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:E&&R,isStale:is(t,n),refetch:this.refetch,promise:C(this,kt)};if(this.options.experimental_prefetchInRender){const N=H=>{L.status==="error"?H.reject(L.error):L.data!==void 0&&H.resolve(L.data)},B=()=>{const H=O(this,kt,L.promise=rs());N(H)},U=C(this,kt);switch(U.status){case"pending":t.queryHash===r.queryHash&&N(U);break;case"fulfilled":(L.status==="error"||L.data!==U.value)&&B();break;case"rejected":(L.status!=="error"||L.error!==U.reason)&&B();break}}return L}updateResult(){const t=C(this,Te),n=this.createResult(C(this,Q),this.options);if(O(this,hn,C(this,Q).state),O(this,Bn,this.options),C(this,hn).data!==void 0&&O(this,Wn,C(this,Q)),Nr(n,t))return;O(this,Te,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!C(this,Hn).size)return!0;const i=new Set(s??C(this,Hn));return this.options.throwOnError&&i.add("error"),Object.keys(C(this,Te)).some(a=>{const c=a;return C(this,Te)[c]!==t[c]&&i.has(c)})};V(this,ne,Td).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&V(this,ne,wi).call(this)}},Oe=new WeakMap,Q=new WeakMap,gr=new WeakMap,Te=new WeakMap,hn=new WeakMap,Bn=new WeakMap,kt=new WeakMap,Ft=new WeakMap,vr=new WeakMap,Un=new WeakMap,Wn=new WeakMap,pn=new WeakMap,mn=new WeakMap,Bt=new WeakMap,Hn=new WeakMap,ne=new WeakSet,yr=function(t){V(this,ne,xi).call(this);let n=C(this,Q).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(xe)),n},vi=function(){V(this,ne,Ci).call(this);const t=Rt(this.options.staleTime,C(this,Q));if(Yt||C(this,Te).isStale||!Zo(t))return;const r=ua(C(this,Te).dataUpdatedAt,t)+1;O(this,pn,setTimeout(()=>{C(this,Te).isStale||this.updateResult()},r))},yi=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,Q)):this.options.refetchInterval)??!1},bi=function(t){V(this,ne,Si).call(this),O(this,Bt,t),!(Yt||He(this.options.enabled,C(this,Q))===!1||!Zo(C(this,Bt))||C(this,Bt)===0)&&O(this,mn,setInterval(()=>{(this.options.refetchIntervalInBackground||ns.isFocused())&&V(this,ne,yr).call(this)},C(this,Bt)))},wi=function(){V(this,ne,vi).call(this),V(this,ne,bi).call(this,V(this,ne,yi).call(this))},Ci=function(){C(this,pn)&&(clearTimeout(C(this,pn)),O(this,pn,void 0))},Si=function(){C(this,mn)&&(clearInterval(C(this,mn)),O(this,mn,void 0))},xi=function(){const t=C(this,Oe).getQueryCache().build(C(this,Oe),this.options);if(t===C(this,Q))return;const n=C(this,Q);O(this,Q,t),O(this,gr,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Td=function(t){ye.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,Te))}),C(this,Oe).getQueryCache().notify({query:C(this,Q),type:"observerResultsUpdated"})})},dd);function zh(e,t){return He(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function _a(e,t){return zh(e,t)||e.state.data!==void 0&&ss(e,t,t.refetchOnMount)}function ss(e,t,n){if(He(t.enabled,e)!==!1&&Rt(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&is(e,t)}return!1}function Ta(e,t,n,r){return(e!==t||He(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&is(e,n)}function is(e,t){return He(t.enabled,e)!==!1&&e.isStaleByTime(Rt(t.staleTime,e))}function qh(e,t){return!Nr(e.getCurrentResult(),t)}var Gh=(fd=class extends vn{constructor(n,r){super();M(this,wt);M(this,Ut);M(this,Wt);M(this,je);M(this,bt);O(this,Ut,n),this.setOptions(r),this.bindMethods(),V(this,wt,Lo).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=C(this,Ut).defaultMutationOptions(n),Nr(this.options,r)||C(this,Ut).getMutationCache().notify({type:"observerOptionsUpdated",mutation:C(this,je),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Zt(r.mutationKey)!==Zt(this.options.mutationKey)?this.reset():((o=C(this,je))==null?void 0:o.state.status)==="pending"&&C(this,je).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=C(this,je))==null||n.removeObserver(this)}onMutationUpdate(n){V(this,wt,Lo).call(this),V(this,wt,Ei).call(this,n)}getCurrentResult(){return C(this,Wt)}reset(){var n;(n=C(this,je))==null||n.removeObserver(this),O(this,je,void 0),V(this,wt,Lo).call(this),V(this,wt,Ei).call(this)}mutate(n,r){var o;return O(this,bt,r),(o=C(this,je))==null||o.removeObserver(this),O(this,je,C(this,Ut).getMutationCache().build(C(this,Ut),this.options)),C(this,je).addObserver(this),C(this,je).execute(n)}},Ut=new WeakMap,Wt=new WeakMap,je=new WeakMap,bt=new WeakMap,wt=new WeakSet,Lo=function(){var r;const n=((r=C(this,je))==null?void 0:r.state)??Sa();O(this,Wt,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Ei=function(n){ye.batch(()=>{var r,o,s,i,a,c,l,f;if(C(this,bt)&&this.hasListeners()){const h=C(this,Wt).variables,m=C(this,Wt).context;(n==null?void 0:n.type)==="success"?((o=(r=C(this,bt)).onSuccess)==null||o.call(r,n.data,h,m),(i=(s=C(this,bt)).onSettled)==null||i.call(s,n.data,null,h,m)):(n==null?void 0:n.type)==="error"&&((c=(a=C(this,bt)).onError)==null||c.call(a,n.error,h,m),(f=(l=C(this,bt)).onSettled)==null||f.call(l,void 0,n.error,h,m))}this.listeners.forEach(h=>{h(C(this,Wt))})})},fd),Ra=d.createContext(void 0),as=e=>{const t=d.useContext(Ra);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Kh=({client:e,children:t})=>(d.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(Ra.Provider,{value:e,children:t})),Pa=d.createContext(!1),Qh=()=>d.useContext(Pa);Pa.Provider;function Yh(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Zh=d.createContext(Yh()),Xh=()=>d.useContext(Zh),Jh=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},ep=e=>{d.useEffect(()=>{e.clearReset()},[e])},tp=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||ga(n,[e.error,r])),np=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))}},rp=(e,t)=>e.isLoading&&e.isFetching&&!t,op=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Aa=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function sp(e,t,n){var h,m,g,S,p;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=Qh(),o=Xh(),s=as(),i=s.defaultQueryOptions(e);(m=(h=s.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||m.call(h,i),i.queryFn||console.error(`[${i.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`),i._optimisticResults=r?"isRestoring":"optimistic",np(i),Jh(i,o),ep(o);const a=!s.getQueryCache().get(i.queryHash),[c]=d.useState(()=>new t(s,i)),l=c.getOptimisticResult(i),f=!r&&e.subscribed!==!1;if(d.useSyncExternalStore(d.useCallback(v=>{const y=f?c.subscribe(ye.batchCalls(v)):xe;return c.updateResult(),y},[c,f]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),d.useEffect(()=>{c.setOptions(i)},[i,c]),op(i,l))throw Aa(i,c,o);if(tp({result:l,errorResetBoundary:o,throwOnError:i.throwOnError,query:s.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw l.error;if((S=(g=s.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||S.call(g,i,l),i.experimental_prefetchInRender&&!Yt&&rp(l,r)){const v=a?Aa(i,c,o):(p=s.getQueryCache().get(i.queryHash))==null?void 0:p.promise;v==null||v.catch(xe).finally(()=>{c.updateResult()})}return i.notifyOnChangeProps?l:c.trackResult(l)}function Oa(e,t){return sp(e,Vh)}function Fr(e,t){const n=as(),[r]=d.useState(()=>new Gh(n,e));d.useEffect(()=>{r.setOptions(e)},[r,e]);const o=d.useSyncExternalStore(d.useCallback(i=>r.subscribe(ye.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=d.useCallback((i,a)=>{r.mutate(i,a).catch(xe)},[r]);if(o.error&&ga(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}const Br={STALE_TIME:1e3*60*5,GC_TIME:1e3*60*10,RETRY_COUNT:1,RETRY_DELAY:1e3},ja={refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,staleTime:Br.STALE_TIME,gcTime:Br.GC_TIME,retry:Br.RETRY_COUNT,retryDelay:Br.RETRY_DELAY,enable:!0},Ur=e=>e instanceof Error?e.message:String(e),ip=_("useResourceActions",(e,t,n)=>{const r=as(),{notify:o}=la(),{createFn:s,readFn:i,readByIdFn:a,updateFn:c,deleteFn:l,partialUpdateFn:f}=n,h=()=>{r.invalidateQueries({queryKey:[e]})},m=(E,T,R,P)=>o(P!=null&&P.overrideSuccessMessage?P==null?void 0:P.overrideSuccessMessage(E,T):R,"success"),g=(E,T,R,P)=>o(P!=null&&P.overrideErrorMessage?P==null?void 0:P.overrideErrorMessage(E,T):R,"error");return{useCreate:E=>Fr({mutationFn:T=>s(T),onSuccess:T=>{h(),m(t,T,`${t} created successfully`,E)},onError:T=>{g(t,T,`Error creating ${t}: ${Ur(T)}`,E)}}),useReadQuery:E=>Oa({queryKey:[e],queryFn:i,...ja,...E}),useReadByIdQuery:(E,T)=>Oa({queryKey:[e,E],queryFn:()=>a(E),...ja,enabled:!!E,...T}),useUpdate:E=>Fr({mutationFn:({id:T,data:R})=>c(T,R),onSuccess:T=>{h(),m(t,T,`${t} updated successfully`,E)},onError:T=>{g(t,T,`Error updating ${t}: ${Ur(T)}`,E)}}),usePartialUpdate:E=>f&&Fr({mutationFn:({id:T,data:R})=>f(T,R),onSuccess:T=>{h(),m(t,T,`${t} updated successfully`,E)},onError:T=>{g(t,T,`Error updating ${t}: ${Ur(T)}`,E)}}),useDelete:E=>Fr({mutationFn:T=>l(T),onSuccess:()=>{h(),m(t,null,`${t} deleted successfully`,E)},onError:T=>{g(t,T,`Error deleting ${t}: ${Ur(T)}`,E)}}),invalidateQueries:h}}),Y0=_("useResource",(e,t)=>ip(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())})),ap={SINGLE_TENANT:"single-tenant"},cp={COOKIE:"cookie"},cs="tenant",Ia="tenant",Da="tenant",lp=ap.SINGLE_TENANT,up=cp.COOKIE,dp={mode:lp,clientSideMode:up,tenantIDPProvisioningStrategy:"none"};class fp{setTenant(t,n){const r=new URL(window.location.href);r.searchParams.set(Ia,t.name),window.location.href=r.toString()}getCurrentTenantName(){const t=new URL(window.location.href);return new URLSearchParams(t.search).get(Ia)}}class hp{setTenant(t,n){sessionStorage.setItem(Da,t.name),window.location.reload()}getCurrentTenantName(){return sessionStorage.getItem(Da)}}/*! js-cookie v3.0.5 | MIT */function Wr(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 pp={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 ls(e,t){function n(o,s,i){if(!(typeof document>"u")){i=Wr({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var c in i)i[c]&&(a+="; "+c,i[c]!==!0&&(a+="="+i[c].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+a}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],i={},a=0;a<s.length;a++){var c=s[a].split("="),l=c.slice(1).join("=");try{var f=decodeURIComponent(c[0]);if(i[f]=e.read(l,f),o===f)break}catch{}}return o?i[o]:i}}return Object.create({set:n,get:r,remove:function(o,s){n(o,"",Wr({},s,{expires:-1}))},withAttributes:function(o){return ls(this.converter,Wr({},this.attributes,o))},withConverter:function(o){return ls(Wr({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var us=ls(pp,{path:"/"});class mp{setTenant(t,n){t?us.set(cs,t.name):us.remove(cs),window.location.reload()}getCurrentTenantName(){return us.get(cs)}}class gp{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(f=>f.patternType==="subdomain"&&f.tenantId===t.id&&f.isActive);if(!r)throw new Error(`No active subdomain pattern found for tenant '${t.name}'`);const o=new URL(window.location.href),s=r.patternValue,i=o.hostname,a=this.getBaseDomain(i),c=s?`${s}.${a}`:a;o.hostname=c,window.location.href=o.toString()}getCurrentTenantName(){const t=window.location.hostname;return this.extractSubdomain(t)||null}}const La={queryParams:new fp,sessionStorage:new hp,cookie:new mp,subdomain:new gp},vp=e=>{const t=La[e.clientSideMode];if(!t)throw new Error(`Client side tenant mode '${e.clientSideMode}' is not supported ${JSON.stringify({strategies:La},null,2)}`);return t},yp=(e,t,n)=>{const r=t.find(s=>s.name===n);if(!r)throw Error("No tenant permission");return vp(e).setTenant(r,e),r},Z0=_("useTenants",()=>{const[e,t]=Yn(),{tenants:n=[],currentTenant:r,tenantConfig:o=dp}=e,s=ce(i=>{const a=yp(o,n,i);t({...e,currentTenant:a})},[o,e]);return{tenants:n,currentTenant:r,tenantConfig:o,selectTenant:s}});function bp(e){if(!e.ok)throw console.error(e),new Error(e.statusText)}async function Hr(e,t,n,r){const o=await e(`/user-states/${encodeURIComponent(t)}/${encodeURIComponent(n)}`,r);return bp(o),o}class Vr{static async get(t,n,r){const s=await Hr(t,n,r,{method:"GET",headers:{"Content-Type":"application/json"}});return s.status===204?null:await s.json()}static async create(t,n,r,o){const s={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await Hr(t,n,r,s)).json()}static async update(t,n,r,o){const s={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await Hr(t,n,r,s)).json()}static async delete(t,n,r){return await Hr(t,n,r,{method:"DELETE",headers:{"Content-Type":"application/json"}}),null}}const X0=_("useUserState",e=>{const t=Hi("@bluealba/pae-nestjs-gateway-service"),n=lf();if(!n)throw new Error("You must call the useUserState hook within a PAE application.");const[r,o]=W(null),[s,i]=W(!1),[a,c]=W(!1),[l,f]=W(null),h=(w,x)=>ce(async({newValue:E,shouldThrowError:T}={})=>{try{c(!0),f(null);const R=await w(t,n,e,E);return o(R),R?R.value:null}catch(R){if(f(R==null?void 0:R.message),console.error(`Failed to ${x} ${e}:`,R),T)throw R;return null}finally{c(!1)}},[t,n,e]),m=h(Vr.get,"fetch"),g=h(Vr.create,"create"),S=h(Vr.update,"update"),p=h(Vr.delete,"delete"),v=ce(async()=>{try{await m()}finally{i(!0)}},[m]);X(()=>{v()},[v]);const y=ce(async(w,x=!1)=>r==null?await g({newValue:w,shouldThrowError:x}):await S({newValue:w,shouldThrowError:x}),[r,g,S]);return{value:r?r.value:null,hasFetched:s,loading:a,error:l,setValue:y,createValue:g,updateValue:S,deleteValue:p}}),Na="single-spa:app-change";function wp(){const[e,t]=W(Ma());return X(()=>{const n=()=>{t(Ma())};return window.addEventListener(Na,n),()=>{window.removeEventListener(Na,n)}},[]),e}function Ma(){return br.getAppNames().reduce((t,n)=>(br.getAppStatus(n)?t[n]=br.getAppStatus(n):t[n]="NOT_LOADED",t),{})}function ds(e){const n=wp()[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"}}function Cp(e){const{url:t,method:n,formData:r,onProgress:o,signal:s}=e;return new Promise((i,a)=>{const c=new XMLHttpRequest;c.withCredentials=!0,c.upload.onprogress=l=>{l.lengthComputable&&o&&o(Math.round(l.loaded/l.total*100))},c.onload=()=>{if(c.status>=400){let l="Upload failed";try{l=JSON.parse(c.responseText).message??l}catch{}const f=new Error(l);f.status=c.status,a(f);return}try{const l=JSON.parse(c.responseText);i(l)}catch{a(new Error("Failed to parse response JSON"))}},c.onerror=()=>{a(new Error("Upload failed due to a network error"))},s&&s.addEventListener("abort",()=>c.abort()),c.open(n,t),c.send(r)})}const nr="File storage is disabled on this platform";async function zr(e){let t=`Request failed with status ${e.status}`;try{const n=await e.json();n!=null&&n.message&&(t=n.message)}catch{}throw new Error(t)}function Sp(){const[{fileStorageEnabled:e}]=Yn(),t=ce((i,a)=>{if(!e)return Promise.reject(new Error(nr));const c=new FormData;return c.append("file",i),(a==null?void 0:a.isPublic)!==void 0&&c.append("isPublic",String(a.isPublic)),(a==null?void 0:a.description)!==void 0&&c.append("description",a.description),(a==null?void 0:a.metadata)!==void 0&&c.append("metadata",JSON.stringify(a.metadata)),Cp({url:"/files",method:"POST",formData:c,onProgress:a==null?void 0:a.onProgress,signal:a==null?void 0:a.signal})},[e]),n=ce(async(i,a)=>{if(!e)return Promise.reject(new Error(nr));const c=new FormData;a.originalName!==void 0&&c.append("originalName",a.originalName),a.isPublic!==void 0&&c.append("isPublic",String(a.isPublic)),a.description!==void 0&&c.append("description",a.description),a.metadata!==void 0&&c.append("metadata",JSON.stringify(a.metadata));const l=await fetch(`/files/${i}`,{method:"PATCH",headers:{Accept:"application/json"},body:c});return l.ok||await zr(l),l.json()},[e]),r=ce(async i=>{if(!e)return Promise.reject(new Error(nr));const a=await fetch(`/files/${i}`,{method:"DELETE",headers:{Accept:"application/json"}});a.ok||await zr(a)},[e]),o=ce(async i=>{if(!e)return Promise.reject(new Error(nr));const a=await fetch(`/files/${i}/download`);a.ok||await zr(a);const c=await a.blob(),l=URL.createObjectURL(c);let f=`file-${i}`;const h=a.headers.get("Content-Disposition");if(h){const g=h.match(/attachment;\s*filename="([^"]+)"/);g&&(f=g[1])}const m=document.createElement("a");m.href=l,m.download=f,document.body.appendChild(m),m.click(),document.body.removeChild(m),URL.revokeObjectURL(l)},[e]),s=ce(async i=>{if(!e)return Promise.reject(new Error(nr));const a=await fetch(`/files/${i}/download`);a.ok||await zr(a);const c=await a.blob();return URL.createObjectURL(c)},[e]);return{isEnabled:e,upload:t,updateMetadata:n,remove:r,download:o,getPreviewUrl:s}}const $a="__PAE_EXTENSION_POINT_REACT_CONTENT_EMPTY__",J0=_("ExtendExtensionPoint",({module:e,point:t,children:n})=>(yf(e,t,n??$a),null)),xp=_("ExtensionPoint",({name:e,children:t,...n})=>{const r=vf(e);if(r===$a)return null;if(!r)return u.jsx(u.Fragment,{children:t??null});if(Ep(r)){const o=r;return u.jsx(o,{...n})}else return r}),Ep=e=>typeof e=="function",e2=_("extensionPoint",(e,t)=>{const n=r=>(t=t||e.displayName||e.name||"?",u.jsx(xp,{name:t,...r,children:u.jsx(e,{...r})}));return n.displayName=`extensionPoint(${t})`,n}),ka=({appName:e})=>u.jsx("div",{children:u.jsxs("p",{children:["Loading ",e,"..."]})});ka.displayName="BaseLoading";const Fa=({appName:e})=>u.jsxs("div",{children:[u.jsx("p",{children:"Something went wrong..."}),u.jsxs("p",{children:["Failed to load ",e]})]});Fa.displayName="BaseError";const _p={display:"flex",flexDirection:"column",flex:1},Ba=G((e,t)=>u.jsx("div",{ref:t,style:_p,...e}));Ba.displayName="BaseContainer";const Tp="pae-app:",Rp=_("ModulePlaceHolder",G(({appName:e,LoadingComponent:t=ka,ErrorComponent:n=Fa,ContainerComponent:r=Ba,...o},s)=>{const i=ds(e);return u.jsxs(r,{ref:s,...o,id:`${Tp}${e}`,children:[i.isLoading&&u.jsx(t,{appName:e}),i.isBroken&&u.jsx(n,{appName:e})]})}));Rp.displayName="ModulePlaceHolder";const Ua=_("Authorized",({operations:e,children:t,forbiddenContent:n})=>{var o;const{hasAccess:r}=Sr();if(!r(...e)){if(!n)return null;if(typeof n=="function")if((o=n==null?void 0:n.prototype)!=null&&o.isReactComponent){const s=n;return u.jsx(s,{operations:e})}else return n({operations:e});return Ue.isValidElement(n)?n:null}return t});Ua.displayName="Authorized";const t2=_("PlatformEventListener",({eventName:e,listener:t})=>(bf(e,t),null)),Pp=()=>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"})}),Ap=_("ApplicationIcon",({applicationName:e})=>{const t=Xd(e);if(t)if(typeof t=="function"){const n=t;return u.jsx(n,{})}else return t;return u.jsx(Pp,{})});Ap.displayName="ApplicationIcon";const Wa=()=>u.jsx("svg",{width:"28",height:"28",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M15.9998 29.3337C8.63584 29.3337 2.6665 23.3643 2.6665 16.0003C2.6665 8.63633 8.63584 2.66699 15.9998 2.66699C23.3638 2.66699 29.3332 8.63633 29.3332 16.0003C29.3332 23.3643 23.3638 29.3337 15.9998 29.3337ZM15.9998 26.667C18.8288 26.667 21.5419 25.5432 23.5423 23.5428C25.5427 21.5424 26.6665 18.8293 26.6665 16.0003C26.6665 13.1713 25.5427 10.4582 23.5423 8.45785C21.5419 6.45747 18.8288 5.33366 15.9998 5.33366C13.1709 5.33366 10.4578 6.45747 8.45736 8.45785C6.45698 10.4582 5.33317 13.1713 5.33317 16.0003C5.33317 18.8293 6.45698 21.5424 8.45736 23.5428C10.4578 25.5432 13.1709 26.667 15.9998 26.667ZM9.33317 20.427C12.2066 20.2205 14.9088 18.9833 16.9425 16.943C18.9828 14.9092 20.2201 12.2071 20.4265 9.33366C21.4117 9.99003 22.2389 10.8569 22.8486 11.8716C23.4582 12.8864 23.835 14.0239 23.9519 15.2019C24.0687 16.3799 23.9226 17.5692 23.5242 18.684C23.1257 19.7987 22.4849 20.8112 21.6478 21.6483C20.8107 22.4853 19.7982 23.1262 18.6835 23.5247C17.5687 23.9231 16.3795 24.0692 15.2014 23.9523C14.0234 23.8355 12.8859 23.4587 11.8712 22.8491C10.8564 22.2394 9.98954 21.4122 9.33317 20.427Z",fill:"currentColor"})});Wa.displayName="DarkModeIcon";const Ha=()=>u.jsx("svg",{width:"28",height:"28",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",transform:"matrix(-1,1.2246467991473532e-16,-1.2246467991473532e-16,-1,0,0)",children:u.jsx("path",{d:"M15.9998 29.3337C8.63584 29.3337 2.6665 23.3643 2.6665 16.0003C2.6665 8.63633 8.63584 2.66699 15.9998 2.66699C23.3638 2.66699 29.3332 8.63633 29.3332 16.0003C29.3332 23.3643 23.3638 29.3337 15.9998 29.3337ZM15.9998 26.667C18.8288 26.667 21.5419 25.5432 23.5423 23.5428C25.5427 21.5424 26.6665 18.8293 26.6665 16.0003C26.6665 13.1713 25.5427 10.4582 23.5423 8.45785C21.5419 6.45747 18.8288 5.33366 15.9998 5.33366C13.1709 5.33366 10.4578 6.45747 8.45736 8.45785C6.45698 10.4582 5.33317 13.1713 5.33317 16.0003C5.33317 18.8293 6.45698 21.5424 8.45736 23.5428C10.4578 25.5432 13.1709 26.667 15.9998 26.667ZM9.33317 20.427C12.2066 20.2205 14.9088 18.9833 16.9425 16.943C18.9828 14.9092 20.2201 12.2071 20.4265 9.33366C21.4117 9.99003 22.2389 10.8569 22.8486 11.8716C23.4582 12.8864 23.835 14.0239 23.9519 15.2019C24.0687 16.3799 23.9226 17.5692 23.5242 18.684C23.1257 19.7987 22.4849 20.8112 21.6478 21.6483C20.8107 22.4853 19.7982 23.1262 18.6835 23.5247C17.5687 23.9231 16.3795 24.0692 15.2014 23.9523C14.0234 23.8355 12.8859 23.4587 11.8712 22.8491C10.8564 22.2394 9.98954 21.4122 9.33317 20.427Z",fill:"currentColor"})});Ha.displayName="LightModeIcon";const fs={container:"container__zBqbk",expanded:"expanded__EbsIr",label:"label__cdMnm"};function Va(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=Va(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function D(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Va(e))&&(r&&(r+=" "),r+=t);return r}const Op=e=>e.toLowerCase().trim().split(" ").join("-"),jp=e=>`${Op(e)}-theme`,Ip=_("useTheme",()=>{const{platformName:e="Platform"}=Bd(),t=jp(e),[n,r]=W(()=>{const s=localStorage.getItem(t);return s==="light"||s==="dark"?s:"light"}),o=s=>{localStorage.setItem(t,s),r(s)};return X(()=>{document.documentElement.setAttribute("data-theme",n)},[n]),{theme:n,setTheme:o}}),qr={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"},hs=_("Button",G(({variant:e="contained",colorScheme:t="primary",loading:n=!1,IconComponent:r,className:o,children:s,...i},a)=>{const c=D(qr.button,qr[`button--${e}-${t}`],o);return u.jsxs("button",{ref:a,className:c,...i,children:[n?u.jsx("div",{className:qr.spinner}):r&&u.jsx(r,{className:qr.icon}),s]})}));hs.displayName="Button";const Gr={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"},ps={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]};for(const e in ps)Object.freeze(ps[e]);const za=Object.freeze(ps);var qa={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function Dp(e){var f,h;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(),za[e])n=za[e].slice(),o="rgb";else if(e==="transparent")r=0,o="rgb",n=[0,0,0];else if(e[0]==="#"){var s=e.slice(1),i=s.length,a=i<=4;r=1,a?(n=[parseInt(s[0]+s[0],16),parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16)],i===4&&(r=parseInt(s[3]+s[3],16)/255)):(n=[parseInt(s[0]+s[1],16),parseInt(s[2]+s[3],16),parseInt(s[4]+s[5],16)],i===8&&(r=parseInt(s[6]+s[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(m,g){if(m[m.length-1]==="%")return m=parseFloat(m)/100,g===3?m:o==="rgb"?m*255:o[0]==="h"||o[0]==="l"&&!g?m*100:o==="lab"?m*125:o==="lch"?g<2?m*150:m*360:o[0]==="o"&&!g?m:o==="oklab"?m*.4:o==="oklch"?g<2?m*.4:m*360:m;if(o[g]==="h"||g===2&&o[o.length-1]==="h"){if(qa[m]!==void 0)return qa[m];if(m.endsWith("deg"))return parseFloat(m);if(m.endsWith("turn"))return parseFloat(m)*360;if(m.endsWith("grad"))return parseFloat(m)*360/400;if(m.endsWith("rad"))return parseFloat(m)*180/Math.PI}return m==="none"?0:parseFloat(m)}),r=n.length>l?n.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(n=e.match(/([0-9]+)/g).map(function(m){return parseFloat(m)}),o=((h=(f=e.match(/([a-z])/ig))==null?void 0:f.join(""))==null?void 0:h.toLowerCase())||"rgb");return{space:o,values:n,alpha:r}}const Lp=(e,t)=>{const{space:n,values:r}=Dp(e);return n[0]==="h"?`${n}a(${r[0]}, ${r[1]}%, ${r[2]}%, ${t})`:`${n}a(${r}, ${t})`},Ga=_("Badge",G(({children:e,color:t,className:n,customColor:r,size:o="small",style:s,...i},a)=>{const c=r?{color:r,background:Lp(r,.1)}:{},l=D(Gr.Badge,Gr[`Badge--${o}`],{[Gr[`Badge--${t}`]]:!!t},n);return u.jsx("span",{ref:a,className:l,style:{...s,...c},...i,children:e})}));Ga.displayName="Badge";const Ka=_("Badges",G(({children:e,className:t,...n},r)=>{const o=D(Gr.Badges,t);return u.jsx("div",{ref:r,className:o,...n,children:e})}));Ka.displayName="Badges";const Np=_("ClipboardIcon",({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...s})=>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,...s,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"})]})),Mp=_("ClipboardCheckIcon",({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...s})=>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,...s,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"})]})),$p={CopyToClipboardButton:"CopyToClipboardButton__2Nd2m"},P2=_("CopyToClipboardButton",({content:e})=>{const[t,n]=kp(),{notify:r}=la(),o=t?Mp:Np,s=ce(async()=>{await n(e)&&r("Copied to the Clipboard !","success")},[e,r]);return u.jsx(o,{className:$p.CopyToClipboardButton,size:18,onClick:s})}),kp=()=>{const[e,t]=W(!1);return[e,async r=>{var o;try{return await((o=navigator==null?void 0:navigator.clipboard)==null?void 0:o.writeText(r)),t(!0),setTimeout(()=>t(!1),2e3),!0}catch(s){return console.error("Failed to copy text: ",s),!1}}]},Qa={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"},Fp=_("FieldGroup",G(({children:e,className:t,orientation:n="vertical",...r},o)=>{const s=D(Qa.FieldGroup,Qa[`FieldGroup--${n}`],t);return u.jsx("div",{ref:o,className:s,...r,children:e})}));Fp.displayName="FieldGroup";const Ya={Input:"Input__uS0sb",Error:"Error__-DQpw"},ms=_("Input",G(({className:e,error:t,...n},r)=>{const o=D(Ya.Input,t&&Ya.Error,e);return u.jsx("input",{ref:r,className:o,...n})}));ms.displayName="Input";const Bp={Error:"Error__N4OP5"},Up=_("InputError",G(({children:e,className:t,...n},r)=>{const o=D(Bp.Error,t);return u.jsx("span",{ref:r,className:o,...n,children:e})}));Up.displayName="InputError";const Za={Label:"Label__VYUvW",Error:"Error__Eu6DI"},Wp=_("Label",G(({children:e,className:t,error:n,...r},o)=>{const s=D(Za.Label,n&&Za.Error,t);return u.jsx("label",{ref:o,className:s,...r,children:e})}));Wp.displayName="Label";const gs={Select:"Select__giqpe",Chevron:"Chevron__YvhBd"},Xa=G(({children:e,className:t,...n},r)=>{const o=D(gs.Option,t);return u.jsx("option",{ref:r,className:o,...n,children:e})});Xa.displayName="Option";const Ja=_("Select",G(({children:e,className:t,...n},r)=>{const o=D(gs.Select,t);return u.jsxs("div",{className:o,children:[u.jsx("select",{ref:r,...n,children:e}),u.jsx("div",{className:gs.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"})})})]})}));Ja.displayName="Select",Ja.Option=Xa;function ec(e,[t,n]){return Math.min(n,Math.max(t,e))}function J(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 Hp(e,t){const n=d.createContext(t),r=s=>{const{children:i,...a}=s,c=d.useMemo(()=>a,Object.values(a));return u.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function o(s){const i=d.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function rr(e,t=[]){let n=[];function r(s,i){const a=d.createContext(i),c=n.length;n=[...n,i];const l=h=>{var y;const{scope:m,children:g,...S}=h,p=((y=m==null?void 0:m[e])==null?void 0:y[c])||a,v=d.useMemo(()=>S,Object.values(S));return u.jsx(p.Provider,{value:v,children:g})};l.displayName=s+"Provider";function f(h,m){var p;const g=((p=m==null?void 0:m[e])==null?void 0:p[c])||a,S=d.useContext(g);if(S)return S;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[l,f]}const o=()=>{const s=n.map(i=>d.createContext(i));return function(a){const c=(a==null?void 0:a[e])||s;return d.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,Vp(o,...t)]}function Vp(...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(s){const i=r.reduce((a,{useScope:c,scopeName:l})=>{const h=c(s)[`__scope${l}`];return{...a,...h}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function tc(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function yn(...e){return t=>{let n=!1;const r=e.map(o=>{const s=tc(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():tc(e[o],null)}}}}function fe(...e){return d.useCallback(yn(...e),e)}function nc(e){const t=zp(e),n=d.forwardRef((r,o)=>{const{children:s,...i}=r,a=d.Children.toArray(s),c=a.find(Gp);if(c){const l=c.props.children,f=a.map(h=>h===c?d.Children.count(l)>1?d.Children.only(null):d.isValidElement(l)?l.props.children:null:h);return u.jsx(t,{...i,ref:o,children:d.isValidElement(l)?d.cloneElement(l,void 0,f):null})}return u.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function zp(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const i=Qp(o),a=Kp(s,o.props);return o.type!==d.Fragment&&(a.ref=r?yn(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var qp=Symbol("radix.slottable");function Gp(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===qp}function Kp(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Qp(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)}function Yp(e){const t=e+"CollectionProvider",[n,r]=rr(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=p=>{const{scope:v,children:y}=p,w=Ue.useRef(null),x=Ue.useRef(new Map).current;return u.jsx(o,{scope:v,itemMap:x,collectionRef:w,children:y})};i.displayName=t;const a=e+"CollectionSlot",c=nc(a),l=Ue.forwardRef((p,v)=>{const{scope:y,children:w}=p,x=s(a,y),E=fe(v,x.collectionRef);return u.jsx(c,{ref:E,children:w})});l.displayName=a;const f=e+"CollectionItemSlot",h="data-radix-collection-item",m=nc(f),g=Ue.forwardRef((p,v)=>{const{scope:y,children:w,...x}=p,E=Ue.useRef(null),T=fe(v,E),R=s(f,y);return Ue.useEffect(()=>(R.itemMap.set(E,{ref:E,...x}),()=>void R.itemMap.delete(E))),u.jsx(m,{[h]:"",ref:T,children:w})});g.displayName=f;function S(p){const v=s(e+"CollectionConsumer",p);return Ue.useCallback(()=>{const w=v.collectionRef.current;if(!w)return[];const x=Array.from(w.querySelectorAll(`[${h}]`));return Array.from(v.itemMap.values()).sort((R,P)=>x.indexOf(R.ref.current)-x.indexOf(P.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:i,Slot:l,ItemSlot:g},S,r]}var Zp=d.createContext(void 0);function Xp(e){const t=d.useContext(Zp);return e||t||"ltr"}function Jp(e){const t=e1(e),n=d.forwardRef((r,o)=>{const{children:s,...i}=r,a=d.Children.toArray(s),c=a.find(n1);if(c){const l=c.props.children,f=a.map(h=>h===c?d.Children.count(l)>1?d.Children.only(null):d.isValidElement(l)?l.props.children:null:h);return u.jsx(t,{...i,ref:o,children:d.isValidElement(l)?d.cloneElement(l,void 0,f):null})}return u.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function e1(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const i=o1(o),a=r1(s,o.props);return o.type!==d.Fragment&&(a.ref=r?yn(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var t1=Symbol("radix.slottable");function n1(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===t1}function r1(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function o1(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 s1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],le=s1.reduce((e,t)=>{const n=Jp(`Primitive.${t}`),r=d.forwardRef((o,s)=>{const{asChild:i,...a}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(c,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function i1(e,t){e&&Kn.flushSync(()=>e.dispatchEvent(t))}function Xt(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function a1(e,t=globalThis==null?void 0:globalThis.document){const n=Xt(e);d.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 c1="DismissableLayer",vs="dismissableLayer.update",l1="dismissableLayer.pointerDownOutside",u1="dismissableLayer.focusOutside",rc,oc=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Kr=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...c}=e,l=d.useContext(oc),[f,h]=d.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=d.useState({}),S=fe(t,P=>h(P)),p=Array.from(l.layers),[v]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(v),w=f?p.indexOf(f):-1,x=l.layersWithOutsidePointerEventsDisabled.size>0,E=w>=y,T=h1(P=>{const L=P.target,I=[...l.branches].some(N=>N.contains(L));!E||I||(o==null||o(P),i==null||i(P),P.defaultPrevented||a==null||a())},m),R=p1(P=>{const L=P.target;[...l.branches].some(N=>N.contains(L))||(s==null||s(P),i==null||i(P),P.defaultPrevented||a==null||a())},m);return a1(P=>{w===l.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&a&&(P.preventDefault(),a()))},m),d.useEffect(()=>{if(f)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(rc=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),sc(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=rc)}},[f,m,n,l]),d.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),sc())},[f,l]),d.useEffect(()=>{const P=()=>g({});return document.addEventListener(vs,P),()=>document.removeEventListener(vs,P)},[]),u.jsx(le.div,{...c,ref:S,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:J(e.onFocusCapture,R.onFocusCapture),onBlurCapture:J(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:J(e.onPointerDownCapture,T.onPointerDownCapture)})});Kr.displayName=c1;var d1="DismissableLayerBranch",f1=d.forwardRef((e,t)=>{const n=d.useContext(oc),r=d.useRef(null),o=fe(t,r);return d.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),u.jsx(le.div,{...e,ref:o})});f1.displayName=d1;function h1(e,t=globalThis==null?void 0:globalThis.document){const n=Xt(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let c=function(){ic(l1,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},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function p1(e,t=globalThis==null?void 0:globalThis.document){const n=Xt(e),r=d.useRef(!1);return d.useEffect(()=>{const o=s=>{s.target&&!r.current&&ic(u1,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function sc(){const e=new CustomEvent(vs);document.dispatchEvent(e)}function ic(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?i1(o,s):o.dispatchEvent(s)}var ys=0;function ac(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??cc()),document.body.insertAdjacentElement("beforeend",e[1]??cc()),ys++,()=>{ys===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ys--}},[])}function cc(){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 bs="focusScope.autoFocusOnMount",ws="focusScope.autoFocusOnUnmount",lc={bubbles:!1,cancelable:!0},m1="FocusScope",Cs=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,c]=d.useState(null),l=Xt(o),f=Xt(s),h=d.useRef(null),m=fe(t,p=>c(p)),g=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let p=function(x){if(g.paused||!a)return;const E=x.target;a.contains(E)?h.current=E:Pt(h.current,{select:!0})},v=function(x){if(g.paused||!a)return;const E=x.relatedTarget;E!==null&&(a.contains(E)||Pt(h.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const T of x)T.removedNodes.length>0&&Pt(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",v);const w=new MutationObserver(y);return a&&w.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),w.disconnect()}}},[r,a,g.paused]),d.useEffect(()=>{if(a){fc.add(g);const p=document.activeElement;if(!a.contains(p)){const y=new CustomEvent(bs,lc);a.addEventListener(bs,l),a.dispatchEvent(y),y.defaultPrevented||(g1(C1(uc(a)),{select:!0}),document.activeElement===p&&Pt(a))}return()=>{a.removeEventListener(bs,l),setTimeout(()=>{const y=new CustomEvent(ws,lc);a.addEventListener(ws,f),a.dispatchEvent(y),y.defaultPrevented||Pt(p??document.body,{select:!0}),a.removeEventListener(ws,f),fc.remove(g)},0)}}},[a,l,f,g]);const S=d.useCallback(p=>{if(!n&&!r||g.paused)return;const v=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(v&&y){const w=p.currentTarget,[x,E]=v1(w);x&&E?!p.shiftKey&&y===E?(p.preventDefault(),n&&Pt(x,{select:!0})):p.shiftKey&&y===x&&(p.preventDefault(),n&&Pt(E,{select:!0})):y===w&&p.preventDefault()}},[n,r,g.paused]);return u.jsx(le.div,{tabIndex:-1,...i,ref:m,onKeyDown:S})});Cs.displayName=m1;function g1(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Pt(r,{select:t}),document.activeElement!==n)return}function v1(e){const t=uc(e),n=dc(t,e),r=dc(t.reverse(),e);return[n,r]}function uc(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 dc(e,t){for(const n of e)if(!y1(n,{upTo:t}))return n}function y1(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 b1(e){return e instanceof HTMLInputElement&&"select"in e}function Pt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&b1(e)&&t&&e.select()}}var fc=w1();function w1(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=hc(e,t),e.unshift(t)},remove(t){var n;e=hc(e,t),(n=e[0])==null||n.resume()}}}function hc(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function C1(e){return e.filter(t=>t.tagName!=="A")}var Ce=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{},S1=d[" useId ".trim().toString()]||(()=>{}),x1=0;function Jt(e){const[t,n]=d.useState(S1());return Ce(()=>{n(r=>r??String(x1++))},[e]),e||(t?`radix-${t}`:"")}const E1=["top","right","bottom","left"],At=Math.min,Ne=Math.max,Qr=Math.round,Yr=Math.floor,et=e=>({x:e,y:e}),_1={left:"right",right:"left",bottom:"top",top:"bottom"},T1={start:"end",end:"start"};function Ss(e,t,n){return Ne(e,At(t,n))}function pt(e,t){return typeof e=="function"?e(t):e}function mt(e){return e.split("-")[0]}function bn(e){return e.split("-")[1]}function xs(e){return e==="x"?"y":"x"}function Es(e){return e==="y"?"height":"width"}const R1=new Set(["top","bottom"]);function tt(e){return R1.has(mt(e))?"y":"x"}function _s(e){return xs(tt(e))}function P1(e,t,n){n===void 0&&(n=!1);const r=bn(e),o=_s(e),s=Es(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Zr(i)),[i,Zr(i)]}function A1(e){const t=Zr(e);return[Ts(e),t,Ts(t)]}function Ts(e){return e.replace(/start|end/g,t=>T1[t])}const pc=["left","right"],mc=["right","left"],O1=["top","bottom"],j1=["bottom","top"];function I1(e,t,n){switch(e){case"top":case"bottom":return n?t?mc:pc:t?pc:mc;case"left":case"right":return t?O1:j1;default:return[]}}function D1(e,t,n,r){const o=bn(e);let s=I1(mt(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Ts)))),s}function Zr(e){return e.replace(/left|right|bottom|top/g,t=>_1[t])}function L1(e){return{top:0,right:0,bottom:0,left:0,...e}}function gc(e){return typeof e!="number"?L1(e):{top:e,right:e,bottom:e,left:e}}function Xr(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 vc(e,t,n){let{reference:r,floating:o}=e;const s=tt(t),i=_s(t),a=Es(i),c=mt(t),l=s==="y",f=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,m=r[a]/2-o[a]/2;let g;switch(c){case"top":g={x:f,y:r.y-o.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:h};break;case"left":g={x:r.x-o.width,y:h};break;default:g={x:r.x,y:r.y}}switch(bn(t)){case"start":g[i]-=m*(n&&l?-1:1);break;case"end":g[i]+=m*(n&&l?-1:1);break}return g}async function N1(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:m=!1,padding:g=0}=pt(t,e),S=gc(g),v=a[m?h==="floating"?"reference":"floating":h],y=Xr(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:f,strategy:c})),w=h==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),E=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},T=Xr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:x,strategy:c}):w);return{top:(y.top-T.top+S.top)/E.y,bottom:(T.bottom-y.bottom+S.bottom)/E.y,left:(y.left-T.left+S.left)/E.x,right:(T.right-y.right+S.right)/E.x}}const M1=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:h}=vc(l,r,c),m=r,g={},S=0;for(let v=0;v<a.length;v++){var p;const{name:y,fn:w}=a[v],{x,y:E,data:T,reset:R}=await w({x:f,y:h,initialPlacement:r,placement:m,strategy:o,middlewareData:g,rects:l,platform:{...i,detectOverflow:(p=i.detectOverflow)!=null?p:N1},elements:{reference:e,floating:t}});f=x??f,h=E??h,g={...g,[y]:{...g[y],...T}},R&&S<=50&&(S++,typeof R=="object"&&(R.placement&&(m=R.placement),R.rects&&(l=R.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):R.rects),{x:f,y:h}=vc(l,m,c)),v=-1)}return{x:f,y:h,placement:m,strategy:o,middlewareData:g}},$1=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:c}=t,{element:l,padding:f=0}=pt(e,t)||{};if(l==null)return{};const h=gc(f),m={x:n,y:r},g=_s(o),S=Es(g),p=await i.getDimensions(l),v=g==="y",y=v?"top":"left",w=v?"bottom":"right",x=v?"clientHeight":"clientWidth",E=s.reference[S]+s.reference[g]-m[g]-s.floating[S],T=m[g]-s.reference[g],R=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let P=R?R[x]:0;(!P||!await(i.isElement==null?void 0:i.isElement(R)))&&(P=a.floating[x]||s.floating[S]);const L=E/2-T/2,I=P/2-p[S]/2-1,N=At(h[y],I),B=At(h[w],I),U=N,H=P-p[S]-B,z=P/2-p[S]/2+L,ie=Ss(U,z,H),q=!c.arrow&&bn(o)!=null&&z!==ie&&s.reference[S]/2-(z<U?N:B)-p[S]/2<0,Z=q?z<U?z-U:z-H:0;return{[g]:m[g]+Z,data:{[g]:ie,centerOffset:z-ie-Z,...q&&{alignmentOffset:Z}},reset:q}}}),k1=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:p=!0,...v}=pt(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=mt(o),w=tt(a),x=mt(a)===a,E=await(c.isRTL==null?void 0:c.isRTL(l.floating)),T=m||(x||!p?[Zr(a)]:A1(a)),R=S!=="none";!m&&R&&T.push(...D1(a,p,S,E));const P=[a,...T],L=await c.detectOverflow(t,v),I=[];let N=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&I.push(L[y]),h){const z=P1(o,i,E);I.push(L[z[0]],L[z[1]])}if(N=[...N,{placement:o,overflows:I}],!I.every(z=>z<=0)){var B,U;const z=(((B=s.flip)==null?void 0:B.index)||0)+1,ie=P[z];if(ie&&(!(h==="alignment"?w!==tt(ie):!1)||N.every(k=>tt(k.placement)===w?k.overflows[0]>0:!0)))return{data:{index:z,overflows:N},reset:{placement:ie}};let q=(U=N.filter(Z=>Z.overflows[0]<=0).sort((Z,k)=>Z.overflows[1]-k.overflows[1])[0])==null?void 0:U.placement;if(!q)switch(g){case"bestFit":{var H;const Z=(H=N.filter(k=>{if(R){const ae=tt(k.placement);return ae===w||ae==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(ae=>ae>0).reduce((ae,we)=>ae+we,0)]).sort((k,ae)=>k[1]-ae[1])[0])==null?void 0:H[0];Z&&(q=Z);break}case"initialPlacement":q=a;break}if(o!==q)return{reset:{placement:q}}}return{}}}};function yc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function bc(e){return E1.some(t=>e[t]>=0)}const F1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=pt(e,t);switch(o){case"referenceHidden":{const i=await r.detectOverflow(t,{...s,elementContext:"reference"}),a=yc(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:bc(a)}}}case"escaped":{const i=await r.detectOverflow(t,{...s,altBoundary:!0}),a=yc(i,n.floating);return{data:{escapedOffsets:a,escaped:bc(a)}}}default:return{}}}}},wc=new Set(["left","top"]);async function B1(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=mt(n),a=bn(n),c=tt(n)==="y",l=wc.has(i)?-1:1,f=s&&c?-1:1,h=pt(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:S}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof S=="number"&&(g=a==="end"?S*-1:S),c?{x:g*f,y:m*l}:{x:m*l,y:g*f}}const U1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,c=await B1(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},W1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:c={fn:y=>{let{x:w,y:x}=y;return{x:w,y:x}}},...l}=pt(e,t),f={x:n,y:r},h=await s.detectOverflow(t,l),m=tt(mt(o)),g=xs(m);let S=f[g],p=f[m];if(i){const y=g==="y"?"top":"left",w=g==="y"?"bottom":"right",x=S+h[y],E=S-h[w];S=Ss(x,S,E)}if(a){const y=m==="y"?"top":"left",w=m==="y"?"bottom":"right",x=p+h[y],E=p-h[w];p=Ss(x,p,E)}const v=c.fn({...t,[g]:S,[m]:p});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[g]:i,[m]:a}}}}}},H1=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=pt(e,t),f={x:n,y:r},h=tt(o),m=xs(h);let g=f[m],S=f[h];const p=pt(a,t),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const x=m==="y"?"height":"width",E=s.reference[m]-s.floating[x]+v.mainAxis,T=s.reference[m]+s.reference[x]-v.mainAxis;g<E?g=E:g>T&&(g=T)}if(l){var y,w;const x=m==="y"?"width":"height",E=wc.has(mt(o)),T=s.reference[h]-s.floating[x]+(E&&((y=i.offset)==null?void 0:y[h])||0)+(E?0:v.crossAxis),R=s.reference[h]+s.reference[x]+(E?0:((w=i.offset)==null?void 0:w[h])||0)-(E?v.crossAxis:0);S<T?S=T:S>R&&(S=R)}return{[m]:g,[h]:S}}}},V1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:c=()=>{},...l}=pt(e,t),f=await i.detectOverflow(t,l),h=mt(o),m=bn(o),g=tt(o)==="y",{width:S,height:p}=s.floating;let v,y;h==="top"||h==="bottom"?(v=h,y=m===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(y=h,v=m==="end"?"top":"bottom");const w=p-f.top-f.bottom,x=S-f.left-f.right,E=At(p-f[v],w),T=At(S-f[y],x),R=!t.middlewareData.shift;let P=E,L=T;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(L=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=w),R&&!m){const N=Ne(f.left,0),B=Ne(f.right,0),U=Ne(f.top,0),H=Ne(f.bottom,0);g?L=S-2*(N!==0||B!==0?N+B:Ne(f.left,f.right)):P=p-2*(U!==0||H!==0?U+H:Ne(f.top,f.bottom))}await c({...t,availableWidth:L,availableHeight:P});const I=await i.getDimensions(a.floating);return S!==I.width||p!==I.height?{reset:{rects:!0}}:{}}}};function Jr(){return typeof window<"u"}function wn(e){return Cc(e)?(e.nodeName||"").toLowerCase():"#document"}function Me(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function nt(e){var t;return(t=(Cc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Cc(e){return Jr()?e instanceof Node||e instanceof Me(e).Node:!1}function Ve(e){return Jr()?e instanceof Element||e instanceof Me(e).Element:!1}function rt(e){return Jr()?e instanceof HTMLElement||e instanceof Me(e).HTMLElement:!1}function Sc(e){return!Jr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Me(e).ShadowRoot}const z1=new Set(["inline","contents"]);function or(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ze(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!z1.has(o)}const q1=new Set(["table","td","th"]);function G1(e){return q1.has(wn(e))}const K1=[":popover-open",":modal"];function eo(e){return K1.some(t=>{try{return e.matches(t)}catch{return!1}})}const Q1=["transform","translate","scale","rotate","perspective"],Y1=["transform","translate","scale","rotate","perspective","filter"],Z1=["paint","layout","strict","content"];function Rs(e){const t=Ps(),n=Ve(e)?ze(e):e;return Q1.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)||Y1.some(r=>(n.willChange||"").includes(r))||Z1.some(r=>(n.contain||"").includes(r))}function X1(e){let t=Ot(e);for(;rt(t)&&!Cn(t);){if(Rs(t))return t;if(eo(t))return null;t=Ot(t)}return null}function Ps(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const J1=new Set(["html","body","#document"]);function Cn(e){return J1.has(wn(e))}function ze(e){return Me(e).getComputedStyle(e)}function to(e){return Ve(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ot(e){if(wn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Sc(e)&&e.host||nt(e);return Sc(t)?t.host:t}function xc(e){const t=Ot(e);return Cn(t)?e.ownerDocument?e.ownerDocument.body:e.body:rt(t)&&or(t)?t:xc(t)}function sr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=xc(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=Me(o);if(s){const a=As(i);return t.concat(i,i.visualViewport||[],or(o)?o:[],a&&n?sr(a):[])}return t.concat(o,sr(o,[],n))}function As(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ec(e){const t=ze(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=rt(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=Qr(n)!==s||Qr(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Os(e){return Ve(e)?e:e.contextElement}function Sn(e){const t=Os(e);if(!rt(t))return et(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Ec(t);let i=(s?Qr(n.width):n.width)/r,a=(s?Qr(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const em=et(0);function _c(e){const t=Me(e);return!Ps()||!t.visualViewport?em:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function tm(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Me(e)?!1:t}function en(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Os(e);let i=et(1);t&&(r?Ve(r)&&(i=Sn(r)):i=Sn(e));const a=tm(s,n,r)?_c(s):et(0);let c=(o.left+a.x)/i.x,l=(o.top+a.y)/i.y,f=o.width/i.x,h=o.height/i.y;if(s){const m=Me(s),g=r&&Ve(r)?Me(r):r;let S=m,p=As(S);for(;p&&r&&g!==S;){const v=Sn(p),y=p.getBoundingClientRect(),w=ze(p),x=y.left+(p.clientLeft+parseFloat(w.paddingLeft))*v.x,E=y.top+(p.clientTop+parseFloat(w.paddingTop))*v.y;c*=v.x,l*=v.y,f*=v.x,h*=v.y,c+=x,l+=E,S=Me(p),p=As(S)}}return Xr({width:f,height:h,x:c,y:l})}function no(e,t){const n=to(e).scrollLeft;return t?t.left+n:en(nt(e)).left+n}function Tc(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-no(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function nm(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=nt(r),a=t?eo(t.floating):!1;if(r===i||a&&s)return n;let c={scrollLeft:0,scrollTop:0},l=et(1);const f=et(0),h=rt(r);if((h||!h&&!s)&&((wn(r)!=="body"||or(i))&&(c=to(r)),rt(r))){const g=en(r);l=Sn(r),f.x=g.x+r.clientLeft,f.y=g.y+r.clientTop}const m=i&&!h&&!s?Tc(i,c):et(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+f.x+m.x,y:n.y*l.y-c.scrollTop*l.y+f.y+m.y}}function rm(e){return Array.from(e.getClientRects())}function om(e){const t=nt(e),n=to(e),r=e.ownerDocument.body,o=Ne(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Ne(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+no(e);const a=-n.scrollTop;return ze(r).direction==="rtl"&&(i+=Ne(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const Rc=25;function sm(e,t){const n=Me(e),r=nt(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,c=0;if(o){s=o.width,i=o.height;const f=Ps();(!f||f&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const l=no(r);if(l<=0){const f=r.ownerDocument,h=f.body,m=getComputedStyle(h),g=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,S=Math.abs(r.clientWidth-h.clientWidth-g);S<=Rc&&(s-=S)}else l<=Rc&&(s+=l);return{width:s,height:i,x:a,y:c}}const im=new Set(["absolute","fixed"]);function am(e,t){const n=en(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=rt(e)?Sn(e):et(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,c=o*s.x,l=r*s.y;return{width:i,height:a,x:c,y:l}}function Pc(e,t,n){let r;if(t==="viewport")r=sm(e,n);else if(t==="document")r=om(nt(e));else if(Ve(t))r=am(t,n);else{const o=_c(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Xr(r)}function Ac(e,t){const n=Ot(e);return n===t||!Ve(n)||Cn(n)?!1:ze(n).position==="fixed"||Ac(n,t)}function cm(e,t){const n=t.get(e);if(n)return n;let r=sr(e,[],!1).filter(a=>Ve(a)&&wn(a)!=="body"),o=null;const s=ze(e).position==="fixed";let i=s?Ot(e):e;for(;Ve(i)&&!Cn(i);){const a=ze(i),c=Rs(i);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&im.has(o.position)||or(i)&&!c&&Ac(e,i))?r=r.filter(f=>f!==i):o=a,i=Ot(i)}return t.set(e,r),r}function lm(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?eo(t)?[]:cm(t,this._c):[].concat(n),r],a=i[0],c=i.reduce((l,f)=>{const h=Pc(t,f,o);return l.top=Ne(h.top,l.top),l.right=At(h.right,l.right),l.bottom=At(h.bottom,l.bottom),l.left=Ne(h.left,l.left),l},Pc(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function um(e){const{width:t,height:n}=Ec(e);return{width:t,height:n}}function dm(e,t,n){const r=rt(t),o=nt(t),s=n==="fixed",i=en(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=et(0);function l(){c.x=no(o)}if(r||!r&&!s)if((wn(t)!=="body"||or(o))&&(a=to(t)),r){const g=en(t,!0,s,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else o&&l();s&&!r&&o&&l();const f=o&&!r&&!s?Tc(o,a):et(0),h=i.left+a.scrollLeft-c.x-f.x,m=i.top+a.scrollTop-c.y-f.y;return{x:h,y:m,width:i.width,height:i.height}}function js(e){return ze(e).position==="static"}function Oc(e,t){if(!rt(e)||ze(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return nt(e)===n&&(n=n.ownerDocument.body),n}function jc(e,t){const n=Me(e);if(eo(e))return n;if(!rt(e)){let o=Ot(e);for(;o&&!Cn(o);){if(Ve(o)&&!js(o))return o;o=Ot(o)}return n}let r=Oc(e,t);for(;r&&G1(r)&&js(r);)r=Oc(r,t);return r&&Cn(r)&&js(r)&&!Rs(r)?n:r||X1(e)||n}const fm=async function(e){const t=this.getOffsetParent||jc,n=this.getDimensions,r=await n(e.floating);return{reference:dm(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function hm(e){return ze(e).direction==="rtl"}const pm={convertOffsetParentRelativeRectToViewportRelativeRect:nm,getDocumentElement:nt,getClippingRect:lm,getOffsetParent:jc,getElementRects:fm,getClientRects:rm,getDimensions:um,getScale:Sn,isElement:Ve,isRTL:hm};function Ic(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function mm(e,t){let n=null,r;const o=nt(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const l=e.getBoundingClientRect(),{left:f,top:h,width:m,height:g}=l;if(a||t(),!m||!g)return;const S=Yr(h),p=Yr(o.clientWidth-(f+m)),v=Yr(o.clientHeight-(h+g)),y=Yr(f),x={rootMargin:-S+"px "+-p+"px "+-v+"px "+-y+"px",threshold:Ne(0,At(1,c))||1};let E=!0;function T(R){const P=R[0].intersectionRatio;if(P!==c){if(!E)return i();P?i(!1,P):r=setTimeout(()=>{i(!1,1e-7)},1e3)}P===1&&!Ic(l,e.getBoundingClientRect())&&i(),E=!1}try{n=new IntersectionObserver(T,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(T,x)}n.observe(e)}return i(!0),s}function gm(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=Os(e),f=o||s?[...l?sr(l):[],...sr(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const h=l&&a?mm(l,n):null;let m=-1,g=null;i&&(g=new ResizeObserver(y=>{let[w]=y;w&&w.target===l&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=g)==null||x.observe(t)})),n()}),l&&!c&&g.observe(l),g.observe(t));let S,p=c?en(e):null;c&&v();function v(){const y=en(e);p&&!Ic(p,y)&&n(),p=y,S=requestAnimationFrame(v)}return n(),()=>{var y;f.forEach(w=>{o&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),h==null||h(),(y=g)==null||y.disconnect(),g=null,c&&cancelAnimationFrame(S)}}const vm=U1,ym=W1,bm=k1,wm=V1,Cm=F1,Dc=$1,Sm=H1,xm=(e,t,n)=>{const r=new Map,o={platform:pm,...n},s={...o.platform,_c:r};return M1(e,t,{...o,platform:s})};var Em=typeof document<"u",_m=function(){},ro=Em?_i:_m;function oo(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(!oo(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 s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!oo(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Lc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Nc(e,t){const n=Lc(e);return Math.round(t*n)/n}function Is(e){const t=d.useRef(e);return ro(()=>{t.current=e}),t}function Tm(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[f,h]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=d.useState(r);oo(m,r)||g(r);const[S,p]=d.useState(null),[v,y]=d.useState(null),w=d.useCallback(k=>{k!==R.current&&(R.current=k,p(k))},[]),x=d.useCallback(k=>{k!==P.current&&(P.current=k,y(k))},[]),E=s||S,T=i||v,R=d.useRef(null),P=d.useRef(null),L=d.useRef(f),I=c!=null,N=Is(c),B=Is(o),U=Is(l),H=d.useCallback(()=>{if(!R.current||!P.current)return;const k={placement:t,strategy:n,middleware:m};B.current&&(k.platform=B.current),xm(R.current,P.current,k).then(ae=>{const we={...ae,isPositioned:U.current!==!1};z.current&&!oo(L.current,we)&&(L.current=we,Kn.flushSync(()=>{h(we)}))})},[m,t,n,B,U]);ro(()=>{l===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,h(k=>({...k,isPositioned:!1})))},[l]);const z=d.useRef(!1);ro(()=>(z.current=!0,()=>{z.current=!1}),[]),ro(()=>{if(E&&(R.current=E),T&&(P.current=T),E&&T){if(N.current)return N.current(E,T,H);H()}},[E,T,H,N,I]);const ie=d.useMemo(()=>({reference:R,floating:P,setReference:w,setFloating:x}),[w,x]),q=d.useMemo(()=>({reference:E,floating:T}),[E,T]),Z=d.useMemo(()=>{const k={position:n,left:0,top:0};if(!q.floating)return k;const ae=Nc(q.floating,f.x),we=Nc(q.floating,f.y);return a?{...k,transform:"translate("+ae+"px, "+we+"px)",...Lc(q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ae,top:we}},[n,a,q.floating,f.x,f.y]);return d.useMemo(()=>({...f,update:H,refs:ie,elements:q,floatingStyles:Z}),[f,H,ie,q,Z])}const Rm=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?Dc({element:r.current,padding:o}).fn(n):{}:r?Dc({element:r,padding:o}).fn(n):{}}}},Pm=(e,t)=>({...vm(e),options:[e,t]}),Am=(e,t)=>({...ym(e),options:[e,t]}),Om=(e,t)=>({...Sm(e),options:[e,t]}),jm=(e,t)=>({...bm(e),options:[e,t]}),Im=(e,t)=>({...wm(e),options:[e,t]}),Dm=(e,t)=>({...Cm(e),options:[e,t]}),Lm=(e,t)=>({...Rm(e),options:[e,t]});var Nm="Arrow",Mc=d.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return u.jsx(le.svg,{...s,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"})})});Mc.displayName=Nm;var Mm=Mc;function $m(e){const[t,n]=d.useState(void 0);return Ce(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const c=s.borderBoxSize,l=Array.isArray(c)?c[0]:c;i=l.inlineSize,a=l.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ds="Popper",[$c,so]=rr(Ds),[km,kc]=$c(Ds),Fc=e=>{const{__scopePopper:t,children:n}=e,[r,o]=d.useState(null);return u.jsx(km,{scope:t,anchor:r,onAnchorChange:o,children:n})};Fc.displayName=Ds;var Bc="PopperAnchor",Uc=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=kc(Bc,n),i=d.useRef(null),a=fe(t,i),c=d.useRef(null);return d.useEffect(()=>{const l=c.current;c.current=(r==null?void 0:r.current)||i.current,l!==c.current&&s.onAnchorChange(c.current)}),r?null:u.jsx(le.div,{...o,ref:a})});Uc.displayName=Bc;var Ls="PopperContent",[Fm,Bm]=$c(Ls),Wc=d.forwardRef((e,t)=>{var $,re,ge,ee,oe,te;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:f=0,sticky:h="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:S,...p}=e,v=kc(Ls,n),[y,w]=d.useState(null),x=fe(t,Re=>w(Re)),[E,T]=d.useState(null),R=$m(E),P=(R==null?void 0:R.width)??0,L=(R==null?void 0:R.height)??0,I=r+(s!=="center"?"-"+s:""),N=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},B=Array.isArray(l)?l:[l],U=B.length>0,H={padding:N,boundary:B.filter(Wm),altBoundary:U},{refs:z,floatingStyles:ie,placement:q,isPositioned:Z,middlewareData:k}=Tm({strategy:"fixed",placement:I,whileElementsMounted:(...Re)=>gm(...Re,{animationFrame:g==="always"}),elements:{reference:v.anchor},middleware:[Pm({mainAxis:o+L,alignmentAxis:i}),c&&Am({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?Om():void 0,...H}),c&&jm({...H}),Im({...H,apply:({elements:Re,rects:Fe,availableWidth:ut,availableHeight:Xe})=>{const{width:qt,height:Io}=Fe.reference,Ct=Re.floating.style;Ct.setProperty("--radix-popper-available-width",`${ut}px`),Ct.setProperty("--radix-popper-available-height",`${Xe}px`),Ct.setProperty("--radix-popper-anchor-width",`${qt}px`),Ct.setProperty("--radix-popper-anchor-height",`${Io}px`)}}),E&&Lm({element:E,padding:a}),Hm({arrowWidth:P,arrowHeight:L}),m&&Dm({strategy:"referenceHidden",...H})]}),[ae,we]=zc(q),ke=Xt(S);Ce(()=>{Z&&(ke==null||ke())},[Z,ke]);const Ht=($=k.arrow)==null?void 0:$.x,Vt=(re=k.arrow)==null?void 0:re.y,lt=((ge=k.arrow)==null?void 0:ge.centerOffset)!==0,[zt,Ze]=d.useState();return Ce(()=>{y&&Ze(window.getComputedStyle(y).zIndex)},[y]),u.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...ie,transform:Z?ie.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:zt,"--radix-popper-transform-origin":[(ee=k.transformOrigin)==null?void 0:ee.x,(oe=k.transformOrigin)==null?void 0:oe.y].join(" "),...((te=k.hide)==null?void 0:te.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(Fm,{scope:n,placedSide:ae,onArrowChange:T,arrowX:Ht,arrowY:Vt,shouldHideArrow:lt,children:u.jsx(le.div,{"data-side":ae,"data-align":we,...p,ref:x,style:{...p.style,animation:Z?void 0:"none"}})})})});Wc.displayName=Ls;var Hc="PopperArrow",Um={top:"bottom",right:"left",bottom:"top",left:"right"},Vc=d.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Bm(Hc,r),i=Um[s.placedSide];return u.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:u.jsx(Mm,{...o,ref:n,style:{...o.style,display:"block"}})})});Vc.displayName=Hc;function Wm(e){return e!==null}var Hm=e=>({name:"transformOrigin",options:e,fn(t){var v,y,w;const{placement:n,rects:r,middlewareData:o}=t,i=((v=o.arrow)==null?void 0:v.centerOffset)!==0,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[l,f]=zc(n),h={start:"0%",center:"50%",end:"100%"}[f],m=(((y=o.arrow)==null?void 0:y.x)??0)+a/2,g=(((w=o.arrow)==null?void 0:w.y)??0)+c/2;let S="",p="";return l==="bottom"?(S=i?h:`${m}px`,p=`${-c}px`):l==="top"?(S=i?h:`${m}px`,p=`${r.floating.height+c}px`):l==="right"?(S=`${-c}px`,p=i?h:`${g}px`):l==="left"&&(S=`${r.floating.width+c}px`,p=i?h:`${g}px`),{data:{x:S,y:p}}}});function zc(e){const[t,n="center"]=e.split("-");return[t,n]}var qc=Fc,Gc=Uc,Kc=Wc,Qc=Vc,Vm="Portal",Ns=d.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=d.useState(!1);Ce(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Pi.createPortal(u.jsx(le.div,{...r,ref:t}),i):null});Ns.displayName=Vm;function zm(e){const t=qm(e),n=d.forwardRef((r,o)=>{const{children:s,...i}=r,a=d.Children.toArray(s),c=a.find(Km);if(c){const l=c.props.children,f=a.map(h=>h===c?d.Children.count(l)>1?d.Children.only(null):d.isValidElement(l)?l.props.children:null:h);return u.jsx(t,{...i,ref:o,children:d.isValidElement(l)?d.cloneElement(l,void 0,f):null})}return u.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function qm(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const i=Ym(o),a=Qm(s,o.props);return o.type!==d.Fragment&&(a.ref=r?yn(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Gm=Symbol("radix.slottable");function Km(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Gm}function Qm(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Ym(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 Zm=d[" useInsertionEffect ".trim().toString()]||Ce;function io({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=Xm({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const f=d.useRef(e!==void 0);d.useEffect(()=>{const h=f.current;h!==a&&console.warn(`${r} is changing from ${h?"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.`),f.current=a},[a,r])}const l=d.useCallback(f=>{var h;if(a){const m=Jm(f)?f(e):f;m!==e&&((h=i.current)==null||h.call(i,m))}else s(f)},[a,e,s,i]);return[c,l]}function Xm({defaultProp:e,onChange:t}){const[n,r]=d.useState(e),o=d.useRef(n),s=d.useRef(t);return Zm(()=>{s.current=t},[t]),d.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function Jm(e){return typeof e=="function"}function eg(e){const t=d.useRef({value:e,previous:e});return d.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Yc=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"}),tg="VisuallyHidden",Zc=d.forwardRef((e,t)=>u.jsx(le.span,{...e,ref:t,style:{...Yc,...e.style}}));Zc.displayName=tg;var ng=Zc,rg=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},xn=new WeakMap,ao=new WeakMap,co={},Ms=0,Xc=function(e){return e&&(e.host||Xc(e.parentNode))},og=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Xc(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})},sg=function(e,t,n,r){var o=og(t,Array.isArray(e)?e:[e]);co[n]||(co[n]=new WeakMap);var s=co[n],i=[],a=new Set,c=new Set(o),l=function(h){!h||a.has(h)||(a.add(h),l(h.parentNode))};o.forEach(l);var f=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(m){if(a.has(m))f(m);else try{var g=m.getAttribute(r),S=g!==null&&g!=="false",p=(xn.get(m)||0)+1,v=(s.get(m)||0)+1;xn.set(m,p),s.set(m,v),i.push(m),p===1&&S&&ao.set(m,!0),v===1&&m.setAttribute(n,"true"),S||m.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};return f(t),a.clear(),Ms++,function(){i.forEach(function(h){var m=xn.get(h)-1,g=s.get(h)-1;xn.set(h,m),s.set(h,g),m||(ao.has(h)||h.removeAttribute(r),ao.delete(h)),g||h.removeAttribute(n)}),Ms--,Ms||(xn=new WeakMap,xn=new WeakMap,ao=new WeakMap,co={})}},Jc=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=rg(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),sg(r,o,n,"aria-hidden")):function(){return null}},lo="right-scroll-bar-position",uo="width-before-scroll-bar",ig="with-scroll-bars-hidden",ag="--removed-body-scroll-bar-size";function $s(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function cg(e,t){var n=W(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 lg=typeof window<"u"?d.useLayoutEffect:d.useEffect,el=new WeakMap;function ug(e,t){var n=cg(null,function(r){return e.forEach(function(o){return $s(o,r)})});return lg(function(){var r=el.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||$s(a,null)}),s.forEach(function(a){o.has(a)||$s(a,i)})}el.set(n,e)},[e]),n}function dg(e){return e}function fg(e,t){t===void 0&&(t=dg);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(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var c=function(){var f=i;i=[],f.forEach(s)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(f){i.push(f),l()},filter:function(f){return i=i.filter(f),n}}}};return o}function hg(e){e===void 0&&(e={});var t=fg(null);return t.options=Je({async:!0,ssr:!1},e),t}var tl=function(e){var t=e.sideCar,n=zi(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 d.createElement(r,Je({},n))};tl.isSideCarExport=!0;function pg(e,t){return e.useMedium(t),tl}var nl=hg(),ks=function(){},fo=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:ks,onWheelCapture:ks,onTouchMoveCapture:ks}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,f=e.enabled,h=e.shards,m=e.sideCar,g=e.noRelative,S=e.noIsolation,p=e.inert,v=e.allowPinchZoom,y=e.as,w=y===void 0?"div":y,x=e.gapMode,E=zi(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=m,R=ug([n,t]),P=Je(Je({},E),o);return d.createElement(d.Fragment,null,f&&d.createElement(T,{sideCar:nl,removeScrollBar:l,shards:h,noRelative:g,noIsolation:S,inert:p,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:x}),i?d.cloneElement(d.Children.only(a),Je(Je({},P),{ref:R})):d.createElement(w,Je({},P,{className:c,ref:R}),a))});fo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},fo.classNames={fullWidth:uo,zeroRight:lo};var mg=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function gg(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=mg();return t&&e.setAttribute("nonce",t),e}function vg(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function yg(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var bg=function(){var e=0,t=null;return{add:function(n){e==0&&(t=gg())&&(vg(t,n),yg(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},wg=function(){var e=bg();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},rl=function(){var e=wg(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Cg={left:0,top:0,right:0,gap:0},Fs=function(e){return parseInt(e||"",10)||0},Sg=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[Fs(n),Fs(r),Fs(o)]},xg=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Cg;var t=Sg(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])}},Eg=rl(),En="data-scroll-locked",_g=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
212
+ .`.concat(ig,` {
211
213
  overflow: hidden `).concat(r,`;
212
214
  padding-right: `).concat(a,"px ").concat(r,`;
213
215
  }
214
- body[`).concat(Sn,`] {
216
+ body[`).concat(En,`] {
215
217
  overflow: hidden `).concat(r,`;
216
218
  overscroll-behavior: contain;
217
219
  `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
@@ -224,30 +226,30 @@ to {
224
226
  `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
225
227
  }
226
228
 
227
- .`).concat(io,` {
229
+ .`).concat(lo,` {
228
230
  right: `).concat(a,"px ").concat(r,`;
229
231
  }
230
232
 
231
- .`).concat(ao,` {
233
+ .`).concat(uo,` {
232
234
  margin-right: `).concat(a,"px ").concat(r,`;
233
235
  }
234
236
 
235
- .`).concat(io," .").concat(io,` {
237
+ .`).concat(lo," .").concat(lo,` {
236
238
  right: 0 `).concat(r,`;
237
239
  }
238
240
 
239
- .`).concat(ao," .").concat(ao,` {
241
+ .`).concat(uo," .").concat(uo,` {
240
242
  margin-right: 0 `).concat(r,`;
241
243
  }
242
244
 
243
- body[`).concat(Sn,`] {
244
- `).concat(Km,": ").concat(a,`px;
245
+ body[`).concat(En,`] {
246
+ `).concat(ag,": ").concat(a,`px;
245
247
  }
246
- `)},Jl=function(){var e=parseInt(document.body.getAttribute(Sn)||"0",10);return isFinite(e)?e:0},pg=function(){d.useEffect(function(){return document.body.setAttribute(Sn,(Jl()+1).toString()),function(){var e=Jl()-1;e<=0?document.body.removeAttribute(Sn):document.body.setAttribute(Sn,e.toString())}},[])},hg=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;pg();var s=d.useMemo(function(){return ug(o)},[o]);return d.createElement(dg,{styles:fg(s,!t,o,n?"":"!important")})},Ns=!1;if(typeof window<"u")try{var co=Object.defineProperty({},"passive",{get:function(){return Ns=!0,!0}});window.addEventListener("test",co,co),window.removeEventListener("test",co,co)}catch{Ns=!1}var En=Ns?{passive:!1}:!1,mg=function(e){return e.tagName==="TEXTAREA"},ec=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!mg(e)&&n[t]==="visible")},gg=function(e){return ec(e,"overflowY")},vg=function(e){return ec(e,"overflowX")},tc=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=nc(e,r);if(o){var s=rc(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},yg=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},bg=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},nc=function(e,t){return e==="v"?gg(t):vg(t)},rc=function(e,t){return e==="v"?yg(t):bg(t)},wg=function(e,t){return e==="h"&&t==="rtl"?-1:1},_g=function(e,t,n,r,o){var s=wg(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,l=t.contains(a),u=!1,f=i>0,h=0,m=0;do{if(!a)break;var g=rc(e,a),x=g[0],p=g[1],v=g[2],y=p-v-s*x;(x||y)&&nc(e,a)&&(h+=y,m+=x);var w=a.parentNode;a=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(f&&Math.abs(h)<1||!f&&Math.abs(m)<1)&&(u=!0),u},uo=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},oc=function(e){return[e.deltaX,e.deltaY]},sc=function(e){return e&&"current"in e?e.current:e},xg=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Cg=function(e){return`
248
+ `)},ol=function(){var e=parseInt(document.body.getAttribute(En)||"0",10);return isFinite(e)?e:0},Tg=function(){d.useEffect(function(){return document.body.setAttribute(En,(ol()+1).toString()),function(){var e=ol()-1;e<=0?document.body.removeAttribute(En):document.body.setAttribute(En,e.toString())}},[])},Rg=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Tg();var s=d.useMemo(function(){return xg(o)},[o]);return d.createElement(Eg,{styles:_g(s,!t,o,n?"":"!important")})},Bs=!1;if(typeof window<"u")try{var ho=Object.defineProperty({},"passive",{get:function(){return Bs=!0,!0}});window.addEventListener("test",ho,ho),window.removeEventListener("test",ho,ho)}catch{Bs=!1}var _n=Bs?{passive:!1}:!1,Pg=function(e){return e.tagName==="TEXTAREA"},sl=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Pg(e)&&n[t]==="visible")},Ag=function(e){return sl(e,"overflowY")},Og=function(e){return sl(e,"overflowX")},il=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=al(e,r);if(o){var s=cl(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},jg=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Ig=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},al=function(e,t){return e==="v"?Ag(t):Og(t)},cl=function(e,t){return e==="v"?jg(t):Ig(t)},Dg=function(e,t){return e==="h"&&t==="rtl"?-1:1},Lg=function(e,t,n,r,o){var s=Dg(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,c=t.contains(a),l=!1,f=i>0,h=0,m=0;do{if(!a)break;var g=cl(e,a),S=g[0],p=g[1],v=g[2],y=p-v-s*S;(S||y)&&al(e,a)&&(h+=y,m+=S);var w=a.parentNode;a=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(f&&Math.abs(h)<1||!f&&Math.abs(m)<1)&&(l=!0),l},po=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ll=function(e){return[e.deltaX,e.deltaY]},ul=function(e){return e&&"current"in e?e.current:e},Ng=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Mg=function(e){return`
247
249
  .block-interactivity-`.concat(e,` {pointer-events: none;}
248
250
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
249
- `)},Sg=0,Tn=[];function Eg(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(Sg++)[0],s=d.useState(Xl)[0],i=d.useRef(e);d.useEffect(function(){i.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=Cr([e.lockRef.current],(e.shards||[]).map(sc),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=d.useCallback(function(p,v){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!i.current.allowPinchZoom;var y=uo(p),w=n.current,C="deltaX"in p?p.deltaX:w[0]-y[0],S="deltaY"in p?p.deltaY:w[1]-y[1],T,R=p.target,P=Math.abs(C)>Math.abs(S)?"h":"v";if("touches"in p&&P==="h"&&R.type==="range")return!1;var L=window.getSelection(),j=L&&L.anchorNode,D=j?j===R||j.contains(R):!1;if(D)return!1;var B=tc(P,R);if(!B)return!0;if(B?T=P:(T=P==="v"?"h":"v",B=tc(P,R)),!B)return!1;if(!r.current&&"changedTouches"in p&&(C||S)&&(r.current=T),!T)return!0;var U=r.current||T;return _g(U,v,p,U==="h"?C:S)},[]),l=d.useCallback(function(p){var v=p;if(!(!Tn.length||Tn[Tn.length-1]!==s)){var y="deltaY"in v?oc(v):uo(v),w=t.current.filter(function(T){return T.name===v.type&&(T.target===v.target||v.target===T.shadowParent)&&xg(T.delta,y)})[0];if(w&&w.should){v.cancelable&&v.preventDefault();return}if(!w){var C=(i.current.shards||[]).map(sc).filter(Boolean).filter(function(T){return T.contains(v.target)}),S=C.length>0?a(v,C[0]):!i.current.noIsolation;S&&v.cancelable&&v.preventDefault()}}},[]),u=d.useCallback(function(p,v,y,w){var C={name:p,delta:v,target:y,should:w,shadowParent:Tg(y)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(S){return S!==C})},1)},[]),f=d.useCallback(function(p){n.current=uo(p),r.current=void 0},[]),h=d.useCallback(function(p){u(p.type,oc(p),p.target,a(p,e.lockRef.current))},[]),m=d.useCallback(function(p){u(p.type,uo(p),p.target,a(p,e.lockRef.current))},[]);d.useEffect(function(){return Tn.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:m}),document.addEventListener("wheel",l,En),document.addEventListener("touchmove",l,En),document.addEventListener("touchstart",f,En),function(){Tn=Tn.filter(function(p){return p!==s}),document.removeEventListener("wheel",l,En),document.removeEventListener("touchmove",l,En),document.removeEventListener("touchstart",f,En)}},[]);var g=e.removeScrollBar,x=e.inert;return d.createElement(d.Fragment,null,x?d.createElement(s,{styles:Cg(o)}):null,g?d.createElement(hg,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Tg(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Rg=tg(Zl,Eg);var Ms=d.forwardRef(function(e,t){return d.createElement(lo,Je({},e,{ref:t,sideCar:Rg}))});Ms.classNames=lo.classNames;var Pg=[" ","Enter","ArrowUp","ArrowDown"],Ag=[" ","Enter"],tn="Select",[fo,po,Og]=Mh(tn),[Rn]=Jn(tn,[Og,no]),ho=no(),[Ig,It]=Rn(tn),[jg,kg]=Rn(tn),ic=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:i,defaultValue:a,onValueChange:l,dir:u,name:f,autoComplete:h,disabled:m,required:g,form:x}=e,p=ho(t),[v,y]=d.useState(null),[w,C]=d.useState(null),[S,T]=d.useState(!1),R=Fh(u),[P,L]=ro({prop:r,defaultProp:o??!1,onChange:s,caller:tn}),[j,D]=ro({prop:i,defaultProp:a,onChange:l,caller:tn}),B=d.useRef(null),U=v?x||!!v.closest("form"):!0,[H,z]=d.useState(new Set),ie=Array.from(H).map(G=>G.props.value).join(";");return c.jsx(Ul,{...p,children:c.jsxs(Ig,{required:g,scope:t,trigger:v,onTriggerChange:y,valueNode:w,onValueNodeChange:C,valueNodeHasChildren:S,onValueNodeHasChildrenChange:T,contentId:Jt(),value:j,onValueChange:D,open:P,onOpenChange:L,dir:R,triggerPointerDownPosRef:B,disabled:m,children:[c.jsx(fo.Provider,{scope:t,children:c.jsx(jg,{scope:e.__scopeSelect,onNativeOptionAdd:d.useCallback(G=>{z(Z=>new Set(Z).add(G))},[]),onNativeOptionRemove:d.useCallback(G=>{z(Z=>{const $=new Set(Z);return $.delete(G),$})},[]),children:n})}),U?c.jsxs(Tc,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:h,value:j,onChange:G=>D(G.target.value),disabled:m,form:x,children:[j===void 0?c.jsx("option",{value:""}):null,Array.from(H)]},ie):null]})})};ic.displayName=tn;var ac="SelectTrigger",lc=d.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=ho(n),i=It(ac,n),a=i.disabled||r,l=de(t,i.onTriggerChange),u=po(n),f=d.useRef("touch"),[h,m,g]=Pc(p=>{const v=u().filter(C=>!C.disabled),y=v.find(C=>C.value===i.value),w=Ac(v,p,y);w!==void 0&&i.onValueChange(w.value)}),x=p=>{a||(i.onOpenChange(!0),g()),p&&(i.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return c.jsx(Wl,{asChild:!0,...s,children:c.jsx(le.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":Rc(i.value)?"":void 0,...o,ref:l,onClick:J(o.onClick,p=>{p.currentTarget.focus(),f.current!=="mouse"&&x(p)}),onPointerDown:J(o.onPointerDown,p=>{f.current=p.pointerType;const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(x(p),p.preventDefault())}),onKeyDown:J(o.onKeyDown,p=>{const v=h.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&m(p.key),!(v&&p.key===" ")&&Pg.includes(p.key)&&(x(),p.preventDefault())})})})});lc.displayName=ac;var cc="SelectValue",uc=d.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:i="",...a}=e,l=It(cc,n),{onValueNodeHasChildrenChange:u}=l,f=s!==void 0,h=de(t,l.onValueNodeChange);return _e(()=>{u(f)},[u,f]),c.jsx(le.span,{...a,ref:h,style:{pointerEvents:"none"},children:Rc(l.value)?c.jsx(c.Fragment,{children:i}):s})});uc.displayName=cc;var Lg="SelectIcon",dc=d.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return c.jsx(le.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});dc.displayName=Lg;var nn="SelectContent",fc=d.forwardRef((e,t)=>{const n=It(nn,e.__scopeSelect),[r,o]=d.useState();if(_e(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?Gn.createPortal(c.jsx(pc,{scope:e.__scopeSelect,children:c.jsx(fo.Slot,{scope:e.__scopeSelect,children:c.jsx("div",{children:e.children})})}),s):null}return c.jsx(hc,{...e,ref:t})});fc.displayName=nn;var Ge=10,[pc,jt]=Rn(nn),Dg="SelectContentImpl",Ng=jm("SelectContent.RemoveScroll"),hc=d.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:i,side:a,sideOffset:l,align:u,alignOffset:f,arrowPadding:h,collisionBoundary:m,collisionPadding:g,sticky:x,hideWhenDetached:p,avoidCollisions:v,...y}=e,w=It(nn,n),[C,S]=d.useState(null),[T,R]=d.useState(null),P=de(t,M=>S(M)),[L,j]=d.useState(null),[D,B]=d.useState(null),U=po(n),[H,z]=d.useState(!1),ie=d.useRef(!1);d.useEffect(()=>{if(C)return Kl(C)},[C]),nl();const G=d.useCallback(M=>{const[re,...ge]=U().map(te=>te.ref.current),[ee]=ge.slice(-1),oe=document.activeElement;for(const te of M)if(te===oe||(te==null||te.scrollIntoView({block:"nearest"}),te===re&&T&&(T.scrollTop=0),te===ee&&T&&(T.scrollTop=T.scrollHeight),te==null||te.focus(),document.activeElement!==oe))return},[U,T]),Z=d.useCallback(()=>G([L,C]),[G,L,C]);d.useEffect(()=>{H&&Z()},[H,Z]);const{onOpenChange:$,triggerPointerDownPosRef:ae}=w;d.useEffect(()=>{if(C){let M={x:0,y:0};const re=ee=>{var oe,te;M={x:Math.abs(Math.round(ee.pageX)-(((oe=ae.current)==null?void 0:oe.x)??0)),y:Math.abs(Math.round(ee.pageY)-(((te=ae.current)==null?void 0:te.y)??0))}},ge=ee=>{M.x<=10&&M.y<=10?ee.preventDefault():C.contains(ee.target)||$(!1),document.removeEventListener("pointermove",re),ae.current=null};return ae.current!==null&&(document.addEventListener("pointermove",re),document.addEventListener("pointerup",ge,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",re),document.removeEventListener("pointerup",ge,{capture:!0})}}},[C,$,ae]),d.useEffect(()=>{const M=()=>$(!1);return window.addEventListener("blur",M),window.addEventListener("resize",M),()=>{window.removeEventListener("blur",M),window.removeEventListener("resize",M)}},[$]);const[we,$e]=Pc(M=>{const re=U().filter(oe=>!oe.disabled),ge=re.find(oe=>oe.ref.current===document.activeElement),ee=Ac(re,M,ge);ee&&setTimeout(()=>ee.ref.current.focus())}),Ht=d.useCallback((M,re,ge)=>{const ee=!ie.current&&!ge;(w.value!==void 0&&w.value===re||ee)&&(j(M),ee&&(ie.current=!0))},[w.value]),Vt=d.useCallback(()=>C==null?void 0:C.focus(),[C]),ct=d.useCallback((M,re,ge)=>{const ee=!ie.current&&!ge;(w.value!==void 0&&w.value===re||ee)&&B(M)},[w.value]),zt=r==="popper"?$s:mc,Ze=zt===$s?{side:a,sideOffset:l,align:u,alignOffset:f,arrowPadding:h,collisionBoundary:m,collisionPadding:g,sticky:x,hideWhenDetached:p,avoidCollisions:v}:{};return c.jsx(pc,{scope:n,content:C,viewport:T,onViewportChange:R,itemRefCallback:Ht,selectedItem:L,onItemLeave:Vt,itemTextRefCallback:ct,focusSelectedItem:Z,selectedItemText:D,position:r,isPositioned:H,searchRef:we,children:c.jsx(Ms,{as:Ng,allowPinchZoom:!0,children:c.jsx(vs,{asChild:!0,trapped:w.open,onMountAutoFocus:M=>{M.preventDefault()},onUnmountAutoFocus:J(o,M=>{var re;(re=w.trigger)==null||re.focus({preventScroll:!0}),M.preventDefault()}),children:c.jsx(zr,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:M=>M.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:c.jsx(zt,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:M=>M.preventDefault(),...y,...Ze,onPlaced:()=>z(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:J(y.onKeyDown,M=>{const re=M.ctrlKey||M.altKey||M.metaKey;if(M.key==="Tab"&&M.preventDefault(),!re&&M.key.length===1&&$e(M.key),["ArrowUp","ArrowDown","Home","End"].includes(M.key)){let ee=U().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);if(["ArrowUp","End"].includes(M.key)&&(ee=ee.slice().reverse()),["ArrowUp","ArrowDown"].includes(M.key)){const oe=M.target,te=ee.indexOf(oe);ee=ee.slice(te+1)}setTimeout(()=>G(ee)),M.preventDefault()}})})})})})})});hc.displayName=Dg;var Mg="SelectItemAlignedPosition",mc=d.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=It(nn,n),i=jt(nn,n),[a,l]=d.useState(null),[u,f]=d.useState(null),h=de(t,P=>f(P)),m=po(n),g=d.useRef(!1),x=d.useRef(!0),{viewport:p,selectedItem:v,selectedItemText:y,focusSelectedItem:w}=i,C=d.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&u&&p&&v&&y){const P=s.trigger.getBoundingClientRect(),L=u.getBoundingClientRect(),j=s.valueNode.getBoundingClientRect(),D=y.getBoundingClientRect();if(s.dir!=="rtl"){const oe=D.left-L.left,te=j.left-oe,Re=P.left-te,Fe=P.width+Re,ut=Math.max(Fe,L.width),Xe=window.innerWidth-Ge,Gt=Qa(te,[Ge,Math.max(Ge,Xe-ut)]);a.style.minWidth=Fe+"px",a.style.left=Gt+"px"}else{const oe=L.right-D.right,te=window.innerWidth-j.right-oe,Re=window.innerWidth-P.right-te,Fe=P.width+Re,ut=Math.max(Fe,L.width),Xe=window.innerWidth-Ge,Gt=Qa(te,[Ge,Math.max(Ge,Xe-ut)]);a.style.minWidth=Fe+"px",a.style.right=Gt+"px"}const B=m(),U=window.innerHeight-Ge*2,H=p.scrollHeight,z=window.getComputedStyle(u),ie=parseInt(z.borderTopWidth,10),G=parseInt(z.paddingTop,10),Z=parseInt(z.borderBottomWidth,10),$=parseInt(z.paddingBottom,10),ae=ie+G+H+$+Z,we=Math.min(v.offsetHeight*5,ae),$e=window.getComputedStyle(p),Ht=parseInt($e.paddingTop,10),Vt=parseInt($e.paddingBottom,10),ct=P.top+P.height/2-Ge,zt=U-ct,Ze=v.offsetHeight/2,M=v.offsetTop+Ze,re=ie+G+M,ge=ae-re;if(re<=ct){const oe=B.length>0&&v===B[B.length-1].ref.current;a.style.bottom="0px";const te=u.clientHeight-p.offsetTop-p.offsetHeight,Re=Math.max(zt,Ze+(oe?Vt:0)+te+Z),Fe=re+Re;a.style.height=Fe+"px"}else{const oe=B.length>0&&v===B[0].ref.current;a.style.top="0px";const Re=Math.max(ct,ie+p.offsetTop+(oe?Ht:0)+Ze)+ge;a.style.height=Re+"px",p.scrollTop=re-ct+p.offsetTop}a.style.margin=`${Ge}px 0`,a.style.minHeight=we+"px",a.style.maxHeight=U+"px",r==null||r(),requestAnimationFrame(()=>g.current=!0)}},[m,s.trigger,s.valueNode,a,u,p,v,y,s.dir,r]);_e(()=>C(),[C]);const[S,T]=d.useState();_e(()=>{u&&T(window.getComputedStyle(u).zIndex)},[u]);const R=d.useCallback(P=>{P&&x.current===!0&&(C(),w==null||w(),x.current=!1)},[C,w]);return c.jsx(Fg,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:g,onScrollButtonChange:R,children:c.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:c.jsx(le.div,{...o,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});mc.displayName=Mg;var $g="SelectPopperPosition",$s=d.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ge,...s}=e,i=ho(n);return c.jsx(Hl,{...i,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});$s.displayName=$g;var[Fg,Fs]=Rn(nn,{}),Bs="SelectViewport",gc=d.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=jt(Bs,n),i=Fs(Bs,n),a=de(t,s.onViewportChange),l=d.useRef(0);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),c.jsx(fo.Slot,{scope:n,children:c.jsx(le.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:J(o.onScroll,u=>{const f=u.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:m}=i;if(m!=null&&m.current&&h){const g=Math.abs(l.current-f.scrollTop);if(g>0){const x=window.innerHeight-Ge*2,p=parseFloat(h.style.minHeight),v=parseFloat(h.style.height),y=Math.max(p,v);if(y<x){const w=y+g,C=Math.min(x,w),S=w-C;h.style.height=C+"px",h.style.bottom==="0px"&&(f.scrollTop=S>0?S:0,h.style.justifyContent="flex-end")}}}l.current=f.scrollTop})})})]})});gc.displayName=Bs;var vc="SelectGroup",[Bg,Ug]=Rn(vc),yc=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Jt();return c.jsx(Bg,{scope:n,id:o,children:c.jsx(le.div,{role:"group","aria-labelledby":o,...r,ref:t})})});yc.displayName=vc;var bc="SelectLabel",Wg=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ug(bc,n);return c.jsx(le.div,{id:o.id,...r,ref:t})});Wg.displayName=bc;var mo="SelectItem",[Hg,wc]=Rn(mo),_c=d.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...i}=e,a=It(mo,n),l=jt(mo,n),u=a.value===r,[f,h]=d.useState(s??""),[m,g]=d.useState(!1),x=de(t,w=>{var C;return(C=l.itemRefCallback)==null?void 0:C.call(l,w,r,o)}),p=Jt(),v=d.useRef("touch"),y=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return c.jsx(Hg,{scope:n,value:r,disabled:o,textId:p,isSelected:u,onItemTextChange:d.useCallback(w=>{h(C=>C||((w==null?void 0:w.textContent)??"").trim())},[]),children:c.jsx(fo.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:c.jsx(le.div,{role:"option","aria-labelledby":p,"data-highlighted":m?"":void 0,"aria-selected":u&&m,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:x,onFocus:J(i.onFocus,()=>g(!0)),onBlur:J(i.onBlur,()=>g(!1)),onClick:J(i.onClick,()=>{v.current!=="mouse"&&y()}),onPointerUp:J(i.onPointerUp,()=>{v.current==="mouse"&&y()}),onPointerDown:J(i.onPointerDown,w=>{v.current=w.pointerType}),onPointerMove:J(i.onPointerMove,w=>{var C;v.current=w.pointerType,o?(C=l.onItemLeave)==null||C.call(l):v.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:J(i.onPointerLeave,w=>{var C;w.currentTarget===document.activeElement&&((C=l.onItemLeave)==null||C.call(l))}),onKeyDown:J(i.onKeyDown,w=>{var S;((S=l.searchRef)==null?void 0:S.current)!==""&&w.key===" "||(Ag.includes(w.key)&&y(),w.key===" "&&w.preventDefault())})})})})});_c.displayName=mo;var nr="SelectItemText",xc=d.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,i=It(nr,n),a=jt(nr,n),l=wc(nr,n),u=kg(nr,n),[f,h]=d.useState(null),m=de(t,y=>h(y),l.onItemTextChange,y=>{var w;return(w=a.itemTextRefCallback)==null?void 0:w.call(a,y,l.value,l.disabled)}),g=f==null?void 0:f.textContent,x=d.useMemo(()=>c.jsx("option",{value:l.value,disabled:l.disabled,children:g},l.value),[l.disabled,l.value,g]),{onNativeOptionAdd:p,onNativeOptionRemove:v}=u;return _e(()=>(p(x),()=>v(x)),[p,v,x]),c.jsxs(c.Fragment,{children:[c.jsx(le.span,{id:l.textId,...s,ref:m}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Gn.createPortal(s.children,i.valueNode):null]})});xc.displayName=nr;var Cc="SelectItemIndicator",Sc=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return wc(Cc,n).isSelected?c.jsx(le.span,{"aria-hidden":!0,...r,ref:t}):null});Sc.displayName=Cc;var Us="SelectScrollUpButton",Vg=d.forwardRef((e,t)=>{const n=jt(Us,e.__scopeSelect),r=Fs(Us,e.__scopeSelect),[o,s]=d.useState(!1),i=de(t,r.onScrollButtonChange);return _e(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=l.scrollTop>0;s(u)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?c.jsx(Ec,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});Vg.displayName=Us;var Ws="SelectScrollDownButton",zg=d.forwardRef((e,t)=>{const n=jt(Ws,e.__scopeSelect),r=Fs(Ws,e.__scopeSelect),[o,s]=d.useState(!1),i=de(t,r.onScrollButtonChange);return _e(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=l.scrollHeight-l.clientHeight,f=Math.ceil(l.scrollTop)<u;s(f)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?c.jsx(Ec,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});zg.displayName=Ws;var Ec=d.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=jt("SelectScrollButton",n),i=d.useRef(null),a=po(n),l=d.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return d.useEffect(()=>()=>l(),[l]),_e(()=>{var f;const u=a().find(h=>h.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[a]),c.jsx(le.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:J(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:J(o.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:J(o.onPointerLeave,()=>{l()})})}),Gg="SelectSeparator",qg=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return c.jsx(le.div,{"aria-hidden":!0,...r,ref:t})});qg.displayName=Gg;var Hs="SelectArrow",Kg=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ho(n),s=It(Hs,n),i=jt(Hs,n);return s.open&&i.position==="popper"?c.jsx(Vl,{...o,...r,ref:t}):null});Kg.displayName=Hs;var Qg="SelectBubbleInput",Tc=d.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=d.useRef(null),s=de(r,o),i=Um(t);return d.useEffect(()=>{const a=o.current;if(!a)return;const l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==t&&f){const h=new Event("change",{bubbles:!0});f.call(a,t),a.dispatchEvent(h)}},[i,t]),c.jsx(le.select,{...n,style:{...zl,...n.style},ref:s,defaultValue:t})});Tc.displayName=Qg;function Rc(e){return e===""||e===void 0}function Pc(e){const t=Xt(e),n=d.useRef(""),r=d.useRef(0),o=d.useCallback(i=>{const a=n.current+i;t(a),function l(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),s=d.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return d.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function Ac(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=Yg(e,Math.max(s,0));o.length===1&&(i=i.filter(u=>u!==n));const l=i.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Yg(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Zg=ic,Xg=lc,Jg=uc,ev=dc,tv=fc,nv=gc,rv=yc,ov=_c,sv=xc,iv=Sc;const ot={Container:"Container__xcHXp",Label:"Label__0cZB9",HelperText:"HelperText__m1nA9",Trigger:"Trigger__AyFUd",TriggerIcon:"TriggerIcon__aygFG",Content:"Content__llztG",Viewport:"Viewport__COtSL",Item:"Item__XN1-2",ItemIndicatorContainer:"ItemIndicatorContainer__EQH-X",ItemIndicator:"ItemIndicator__bySSc"},av=E("Select2",q(({label:e,helperText:t,value:n,onValueChange:r,options:o,placeholder:s="Select",disabled:i=!1,className:a,name:l},u)=>c.jsxs("div",{className:k(ot.Container,a),children:[e&&c.jsx("label",{className:ot.Label,children:e}),c.jsxs(Zg,{value:n,onValueChange:r,disabled:i,name:l,children:[c.jsxs(Xg,{ref:u,className:ot.Trigger,children:[c.jsx(Jg,{placeholder:s}),c.jsx(ev,{className:ot.TriggerIcon,children:c.jsx(lv,{})})]}),c.jsx(tv,{className:ot.Content,position:"popper",sideOffset:4,children:c.jsx(nv,{className:ot.Viewport,children:c.jsx(rv,{children:o.map(f=>c.jsxs(ov,{value:f.value,disabled:f.disabled,className:ot.Item,children:[c.jsx("div",{className:ot.ItemIndicatorContainer,children:c.jsx(iv,{className:ot.ItemIndicator,children:c.jsx(cv,{})})}),c.jsx(sv,{children:f.label})]},f.value))})})})]}),t&&c.jsx("div",{className:ot.HelperText,children:t})]})));av.displayName="Select";const lv=()=>c.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.52459 12.7746C6.8907 12.4085 7.4843 12.4085 7.85041 12.7746L10 14.9242L12.1496 12.7746C12.5157 12.4085 13.1093 12.4085 13.4754 12.7746C13.8415 13.1407 13.8415 13.7343 13.4754 14.1004L10.6629 16.9129C10.2968 17.279 9.7032 17.279 9.33709 16.9129L6.52459 14.1004C6.15847 13.7343 6.15847 13.1407 6.52459 12.7746Z",fill:"currentColor"}),c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.4754 7.22541C13.1093 7.59153 12.5157 7.59153 12.1496 7.22541L10 5.07583L7.85041 7.22541C7.4843 7.59153 6.8907 7.59153 6.52459 7.22541C6.15847 6.8593 6.15847 6.2657 6.52459 5.89959L9.33709 3.08709C9.7032 2.72097 10.2968 2.72097 10.6629 3.08709L13.4754 5.89959C13.8415 6.2657 13.8415 6.8593 13.4754 7.22541Z",fill:"currentColor"})]}),cv=()=>c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M13.3333 4L6 11.3333L2.66667 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),uv={TextArea:"TextArea__pa-A0"},dv=E("TextArea",q(({children:e,className:t,...n},r)=>{const o=k(uv.TextArea,t);return c.jsx("textarea",{ref:r,className:o,...n,children:e})}));dv.displayName="TextArea";function fv(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var Pn=e=>{const{present:t,children:n}=e,r=pv(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),s=de(r.ref,hv(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:s}):null};Pn.displayName="Presence";function pv(e){const[t,n]=d.useState(),r=d.useRef(null),o=d.useRef(e),s=d.useRef("none"),i=e?"mounted":"unmounted",[a,l]=fv(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const u=go(r.current);s.current=a==="mounted"?u:"none"},[a]),_e(()=>{const u=r.current,f=o.current;if(f!==e){const m=s.current,g=go(u);e?l("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(f&&m!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),_e(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,h=g=>{const p=go(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&p&&(l("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},m=g=>{g.target===t&&(s.current=go(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:d.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function go(e){return(e==null?void 0:e.animationName)||"none"}function hv(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 mv=Symbol("radix.slottable");function gv(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=mv,t}var[vo]=Jn("Tooltip",[no]),yo=no(),Oc="TooltipProvider",vv=700,Vs="tooltip.open",[yv,zs]=vo(Oc),Ic=e=>{const{__scopeTooltip:t,delayDuration:n=vv,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=d.useRef(!0),a=d.useRef(!1),l=d.useRef(0);return d.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),c.jsx(yv,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:d.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:d.useCallback(u=>{a.current=u},[]),disableHoverableContent:o,children:s})};Ic.displayName=Oc;var rr="Tooltip",[bv,or]=vo(rr),jc=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:i,delayDuration:a}=e,l=zs(rr,e.__scopeTooltip),u=yo(t),[f,h]=d.useState(null),m=Jt(),g=d.useRef(0),x=i??l.disableHoverableContent,p=a??l.delayDuration,v=d.useRef(!1),[y,w]=ro({prop:r,defaultProp:o??!1,onChange:P=>{P?(l.onOpen(),document.dispatchEvent(new CustomEvent(Vs))):l.onClose(),s==null||s(P)},caller:rr}),C=d.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),S=d.useCallback(()=>{window.clearTimeout(g.current),g.current=0,v.current=!1,w(!0)},[w]),T=d.useCallback(()=>{window.clearTimeout(g.current),g.current=0,w(!1)},[w]),R=d.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{v.current=!0,w(!0),g.current=0},p)},[p,w]);return d.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),c.jsx(Ul,{...u,children:c.jsx(bv,{scope:t,contentId:m,open:y,stateAttribute:C,trigger:f,onTriggerChange:h,onTriggerEnter:d.useCallback(()=>{l.isOpenDelayedRef.current?R():S()},[l.isOpenDelayedRef,R,S]),onTriggerLeave:d.useCallback(()=>{x?T():(window.clearTimeout(g.current),g.current=0)},[T,x]),onOpen:S,onClose:T,disableHoverableContent:x,children:n})})};jc.displayName=rr;var Gs="TooltipTrigger",kc=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=or(Gs,n),s=zs(Gs,n),i=yo(n),a=d.useRef(null),l=de(t,a,o.onTriggerChange),u=d.useRef(!1),f=d.useRef(!1),h=d.useCallback(()=>u.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),c.jsx(Wl,{asChild:!0,...i,children:c.jsx(le.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:J(e.onPointerMove,m=>{m.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:J(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:J(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:J(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:J(e.onBlur,o.onClose),onClick:J(e.onClick,o.onClose)})})});kc.displayName=Gs;var qs="TooltipPortal",[wv,_v]=vo(qs,{forceMount:void 0}),Lc=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=or(qs,t);return c.jsx(wv,{scope:t,forceMount:n,children:c.jsx(Pn,{present:n||s.open,children:c.jsx(Is,{asChild:!0,container:o,children:r})})})};Lc.displayName=qs;var An="TooltipContent",Dc=d.forwardRef((e,t)=>{const n=_v(An,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=or(An,e.__scopeTooltip);return c.jsx(Pn,{present:r||i.open,children:i.disableHoverableContent?c.jsx(Nc,{side:o,...s,ref:t}):c.jsx(xv,{side:o,...s,ref:t})})}),xv=d.forwardRef((e,t)=>{const n=or(An,e.__scopeTooltip),r=zs(An,e.__scopeTooltip),o=d.useRef(null),s=de(t,o),[i,a]=d.useState(null),{trigger:l,onClose:u}=n,f=o.current,{onPointerInTransitChange:h}=r,m=d.useCallback(()=>{a(null),h(!1)},[h]),g=d.useCallback((x,p)=>{const v=x.currentTarget,y={x:x.clientX,y:x.clientY},w=Tv(y,v.getBoundingClientRect()),C=Rv(y,w),S=Pv(p.getBoundingClientRect()),T=Ov([...C,...S]);a(T),h(!0)},[h]);return d.useEffect(()=>()=>m(),[m]),d.useEffect(()=>{if(l&&f){const x=v=>g(v,f),p=v=>g(v,l);return l.addEventListener("pointerleave",x),f.addEventListener("pointerleave",p),()=>{l.removeEventListener("pointerleave",x),f.removeEventListener("pointerleave",p)}}},[l,f,g,m]),d.useEffect(()=>{if(i){const x=p=>{const v=p.target,y={x:p.clientX,y:p.clientY},w=(l==null?void 0:l.contains(v))||(f==null?void 0:f.contains(v)),C=!Av(y,i);w?m():C&&(m(),u())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[l,f,i,u,m]),c.jsx(Nc,{...e,ref:s})}),[Cv,Sv]=vo(rr,{isInside:!1}),Ev=gv("TooltipContent"),Nc=d.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,l=or(An,n),u=yo(n),{onClose:f}=l;return d.useEffect(()=>(document.addEventListener(Vs,f),()=>document.removeEventListener(Vs,f)),[f]),d.useEffect(()=>{if(l.trigger){const h=m=>{const g=m.target;g!=null&&g.contains(l.trigger)&&f()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[l.trigger,f]),c.jsx(zr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:h=>h.preventDefault(),onDismiss:f,children:c.jsxs(Hl,{"data-state":l.stateAttribute,...u,...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:[c.jsx(Ev,{children:r}),c.jsx(Cv,{scope:n,isInside:!0,children:c.jsx(Hm,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Dc.displayName=An;var Mc="TooltipArrow",$c=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=yo(n);return Sv(Mc,n).isInside?null:c.jsx(Vl,{...o,...r,ref:t})});$c.displayName=Mc;function Tv(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Rv(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 Pv(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 Av(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],l=t[i],u=a.x,f=a.y,h=l.x,m=l.y;f>r!=m>r&&n<(h-u)*(r-f)/(m-f)+u&&(o=!o)}return o}function Ov(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),Iv(t)}function Iv(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 s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.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 s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.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 jv=Ic,kv=jc,Lv=kc,Dv=Lc,Nv=Dc,Mv=$c;const Fc={tooltip:"tooltip__nUuSh",tooltipArrow:"tooltipArrow__W2w-f"},sr=E("Tooltip",({children:e,open:t,displayName:n,tooltipContent:r,className:o,disabled:s,delayDuration:i=300,side:a="right",sideOffset:l=0})=>{const[u,f]=W(!1),h=t!==void 0,g=s?!1:h?t:u,x=p=>{s||h||f(p)};return c.jsx(jv,{delayDuration:i,children:c.jsxs(kv,{open:g,onOpenChange:x,children:[c.jsx(Lv,{asChild:!0,children:e}),c.jsx(Dv,{children:c.jsxs(Nv,{className:k(Fc.tooltip,o),side:a,sideOffset:l,children:[n,r,c.jsx(Mv,{className:Fc.tooltipArrow})]})})]})})});sr.displayName="Tooltip";const Bc={truncatedText:"truncatedText__Y-jSd",overflowing:"overflowing__o8TC-"},$v=E("TextWithTooltip",({children:e,className:t,tooltipSide:n="top",tooltipClassName:r})=>{const o=We(null),[s,i]=W(!1);X(()=>{const l=()=>{if(o.current){const u=o.current.scrollWidth>o.current.clientWidth;i(u)}};return l(),window.addEventListener("resize",l),()=>{window.removeEventListener("resize",l)}},[e]);const a=c.jsx("span",{ref:o,className:k(Bc.truncatedText,s?Bc.overflowing:"",t||""),children:e});return s?c.jsx(sr,{tooltipContent:e,side:n,className:r,children:a}):a});$v.displayName="TextWithTooltip";const ir={SearchInput:"SearchInput__4OFyE",SearchIcon:"SearchIcon__YgnQy",ClearIcon:"ClearIcon__ukRVr",SearchInput__ClearIcon:"SearchInput__ClearIcon__uzVoc",SearchInput__SearchIcon:"SearchInput__SearchIcon__zoDG4"},Uc=E("SearchInput",q(({className:e,placeholder:t="Type to search...",showClearButton:n=!1,showSearchIcon:r=!0,onClear:o,...s},i)=>{const a=k(ir.SearchInput,n&&ir.SearchInput__ClearIcon,r&&ir.SearchInput__SearchIcon,e),l=k(ir.SearchIcon),u=k(ir.ClearIcon);return c.jsxs("div",{className:a,children:[c.jsx(ds,{ref:i,type:"text",placeholder:t,...s}),r&&c.jsx("svg",{className:l,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.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&&c.jsx("svg",{className:u,width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:o,children:c.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"})})]})}));Uc.displayName="SearchInput";const rn={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"},On=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"}),Ks=E("DropdownList",q(({children:e,className:t,open:n,align:r="right",...o},s)=>{const i=k(On.DropdownList,{[On["DropdownList--open"]]:n,[On["DropdownList--closed"]]:!n,[On["DropdownList--left"]]:r==="left"},t);return c.jsx("div",{ref:s,className:i,...o,children:e})}));Ks.displayName="DropdownList";const ar=q(({children:e,className:t,canBeSelected:n=!1,...r},o)=>{const s=k(rn.AutocompleteItem,{[rn["AutocompleteItem--canBeSelected"]]:n},t);return c.jsx("div",{ref:o,className:s,role:n?"option":void 0,...r,children:e})});ar.displayName="AutocompleteItem";const Fv=300,Bv={query:"",suggestions:[],loading:!1,error:null},Uv=({suggestionFetcher:e,canAdd:t})=>{const[n,r]=W(Bv);return X(()=>{r(a=>({...a,loading:!0}));const s=async()=>{try{const a=await e(n.query);t&&!a.some(l=>l.value.toLowerCase()===n.query.toLowerCase())&&a.push({label:`Add "${n.query}"`,value:n.query,isNew:!0}),r(l=>({...l,suggestions:a,loading:!1}))}catch(a){r(l=>({...l,suggestions:[],error:a,loading:!1}))}},i=setTimeout(()=>{s()},Fv);return()=>{clearTimeout(i)}},[n.query]),{...n,setQuery:s=>{r(i=>({...i,query:s}))}}},Wc=q(({text:e,query:t,className:n,...r},o)=>{const s=k(rn.AutocompleteHighlighter,n),i=(a,l)=>{const u=a.toLowerCase().indexOf(l.toLowerCase());if(u===-1||l.length===0)return a;const f=a.slice(0,u),h=a.slice(u,u+l.length),m=a.slice(u+l.length);return c.jsxs(c.Fragment,{children:[f,c.jsx("span",{className:rn.AutocompleteHighlighter__match,children:h}),i(m,l)]})};return c.jsx("div",{ref:o,className:s,...r,children:i(e,t)})});Wc.displayName="AutocompleteHighlighter";const Wv=5,Hv=E("SearchAutocomplete",q(({children:e,className:t,canAdd:n,maxSuggestionsShown:r=Wv,searchInputProps:o,keepSelectedOption:s,suggestionFetcher:i,onAccept:a,...l},u)=>{const{query:f,setQuery:h,suggestions:m,loading:g}=Uv({suggestionFetcher:i,canAdd:n}),[x,p]=W(null),v=f.length>0,y=P=>{h(P.target.value)},w=P=>{a==null||a(P),s?(p(P),h(P.value)):h("")},C=()=>{a==null||a(null),p(null),h("")},S=k(rn.SearchAutocomplete,t),T=m.slice(0,r),R=m.slice(r);return c.jsxs("div",{ref:u,className:S,...l,children:[c.jsx(Uc,{...o,value:f,onChange:y,showClearButton:!!x,onClear:C}),e,c.jsxs(Ks,{className:rn.DropdownList,open:v&&!x,role:"listbox","aria-label":"Suggestions",children:[g?c.jsx(ar,{children:"Loading..."}):T.map(P=>c.jsxs(ar,{canBeSelected:!0,onClick:w.bind(null,P),children:[c.jsx(Wc,{text:P.label,query:f}),P.description&&c.jsx("span",{className:rn.AutocompleteItemDescription,children:P.description})]},P.value)),!g&&R.length>0&&c.jsxs(ar,{children:[R.length," more results"]}),v&&m.length===0&&!g&&c.jsx(ar,{children:"No results found"})]})]})}));Hv.displayName="SearchAutocomplete";const on=E("Show",e=>{let t=null,n=null;return wi.forEach(e.children,r=>{const o=r.props.condition;o===void 0?n=r:!t&&o===!0&&(t=r)}),c.jsx(c.Fragment,{children:t||n})});on.displayName="Show",on.When=({condition:e,children:t})=>c.jsx(c.Fragment,{children:e&&t}),on.Else=({render:e,children:t})=>c.jsx(c.Fragment,{children:e||t});var Vv=Symbol.for("react.lazy"),bo=d[" use ".trim().toString()];function zv(e){return typeof e=="object"&&e!==null&&"then"in e}function Hc(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Vv&&"_payload"in e&&zv(e._payload)}function Gv(e){const t=Kv(e),n=d.forwardRef((r,o)=>{let{children:s,...i}=r;Hc(s)&&typeof bo=="function"&&(s=bo(s._payload));const a=d.Children.toArray(s),l=a.find(Yv);if(l){const u=l.props.children,f=a.map(h=>h===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return c.jsx(t,{...i,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return c.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var qv=Gv("Slot");function Kv(e){const t=d.forwardRef((n,r)=>{let{children:o,...s}=n;if(Hc(o)&&typeof bo=="function"&&(o=bo(o._payload)),d.isValidElement(o)){const i=Xv(o),a=Zv(s,o.props);return o.type!==d.Fragment&&(a.ref=r?yn(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Qv=Symbol("radix.slottable");function Yv(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qv}function Zv(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Xv(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 Vc={SkeletonListContainer:"SkeletonListContainer__MKJhE",Skeleton:"Skeleton__Ovpiw"},Qs=E("Skeleton",q((e,t)=>{const{children:n,className:r,loading:o,height:s=48,width:i,borderRadius:a,style:l,...u}=e;if(!o&&n)return n;const f=Io(n)?qv:"span";return c.jsx(f,{ref:t,"aria-hidden":!0,className:k(Vc.Skeleton,r),style:{...l,width:i,minWidth:i,height:s,borderRadius:a},"data-inline-skeleton":Io(n)?void 0:!0,tabIndex:-1,...u,children:n})}));Qs.displayName="Skeleton";const Jv=E("SkeletonList",e=>{const{numberOfItems:t,itemsGap:n=2,itemProps:r}=e,o=Array.from({length:t},(s,i)=>i+1);return c.jsx("div",{className:k(Vc.SkeletonListContainer),style:{gap:n},children:o.map(s=>c.jsx(Qs,{loading:!0,...r},s))})});Jv.displayName="SkeletonList";const zc={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"},ey=E("Spinner",({className:e,color:t="white",size:n=80,thickness:r})=>{const o=k(zc.spinner,zc[`spinner-${t}`],e),s=r??Math.max(n/12,2);return c.jsx("span",{style:{width:n,height:n,borderWidth:s},className:o})});ey.displayName="Spinner";const wo={switch:"switch__0b2av",disabled:"disabled__KpauE",checked:"checked__2-JV-",thumb:"thumb__fEuKD"},ty=E("Switch",q(({checked:e,defaultChecked:t=!1,onCheckedChange:n,disabled:r=!1,id:o,className:s,name:i,"aria-label":a,"aria-labelledby":l,"aria-describedby":u,...f},h)=>{const[m,g]=Ue.useState(t),x=e!==void 0,p=x?!!e:m,v=()=>{if(r)return;const w=!p;x||g(w),n==null||n(w)},y=w=>{(w.key===" "||w.key==="Enter")&&(w.preventDefault(),v())};return c.jsx("button",{ref:h,type:"button",role:"switch","aria-checked":p,"aria-label":a,"aria-labelledby":l,"aria-describedby":u,disabled:r,id:o,name:i,className:k(wo.switch,{[wo.checked]:p,[wo.disabled]:r}),onClick:v,onKeyDown:y,...f,children:c.jsx("span",{className:wo.thumb,"aria-hidden":"true"})})}));ty.displayName="Switch";const st={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"},Gc=mr(null),Ys=()=>{const e=gr(Gc);if(!e)throw new Error("Tabs components must be used within a Tabs provider");return e},_2=E("Tabs",({defaultValue:e,value:t,onValueChange:n,orientation:r="horizontal",className:o="",children:s})=>{const[i,a]=W(e||""),l=t!==void 0,u=l?t:i,f=h=>{l||a(h),n==null||n(h)};return c.jsx(Gc.Provider,{value:{value:u,onValueChange:f,orientation:r},children:c.jsx("div",{className:k(st.tabsRoot,o),children:s})})}),x2=E("TabsList",({className:e="",children:t})=>{const{orientation:n}=Ys(),r=We(null),o=s=>{var u;const i=(u=r.current)==null?void 0:u.querySelectorAll('[role="tab"]:not([disabled])');if(!i)return;const a=Array.from(i).findIndex(f=>f===document.activeElement);let l=a;switch(s.key){case"ArrowLeft":n==="horizontal"&&(s.preventDefault(),l=a>0?a-1:i.length-1);break;case"ArrowRight":n==="horizontal"&&(s.preventDefault(),l=a<i.length-1?a+1:0);break;case"ArrowUp":n==="vertical"&&(s.preventDefault(),l=a>0?a-1:i.length-1);break;case"ArrowDown":n==="vertical"&&(s.preventDefault(),l=a<i.length-1?a+1:0);break;case"Home":s.preventDefault(),l=0;break;case"End":s.preventDefault(),l=i.length-1;break}if(l!==a){const f=i[l];f.focus(),f.click()}};return c.jsx("div",{ref:r,role:"tablist","aria-orientation":n,onKeyDown:o,className:k(st.tabsList,n==="horizontal"?st.tabsListHorizontal:st.tabsListVertical,e),children:t})}),C2=E("TabsTrigger",({value:e,disabled:t=!1,className:n="",children:r})=>{const{value:o,onValueChange:s,orientation:i}=Ys(),a=o===e,l=()=>{t||s(e)};return c.jsx("button",{role:"tab","aria-selected":a,"aria-controls":`content-${e}`,tabIndex:a?0:-1,disabled:t,onClick:l,className:k(st.tabsTrigger,i==="horizontal"?st.tabsTriggerHorizontal:st.tabsTriggerVertical,a&&st.tabsTriggerActive,t&&st.tabsTriggerDisabled,n),children:r})}),S2=E("TabsContent",({value:e,className:t="",children:n})=>{const{value:r}=Ys();return r===e?c.jsx("div",{role:"tabpanel",id:`content-${e}`,"aria-labelledby":`trigger-${e}`,tabIndex:0,className:k(st.tabsContent,t),children:n}):null}),ny=E("EyeIcon",({className:e,state:t="open",onClick:n})=>t==="open"?c.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:[c.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"}),c.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"})]}):c.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:c.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"})})),qc={PasswordInput:"PasswordInput__GDJDN",eyeIcon:"eyeIcon__kDExG"},R2=E("PasswordInput",q((e,t)=>{const[n,r]=W("password"),o=fe(()=>{r(s=>s==="password"?"text":"password")},[r]);return c.jsxs("div",{className:k(qc.PasswordInput,e.className),children:[c.jsx(ds,{type:n,...e,ref:t}),c.jsx(ny,{className:qc.eyeIcon,onClick:o,state:n==="password"?"open":"closed"})]})}));function ry(e){const t=oy(e),n=d.forwardRef((r,o)=>{const{children:s,...i}=r,a=d.Children.toArray(s),l=a.find(iy);if(l){const u=l.props.children,f=a.map(h=>h===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return c.jsx(t,{...i,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return c.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function oy(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const i=ly(o),a=ay(s,o.props);return o.type!==d.Fragment&&(a.ref=r?yn(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var sy=Symbol("radix.slottable");function iy(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===sy}function ay(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function ly(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 _o="Dialog",[Kc]=Jn(_o),[cy,qe]=Kc(_o),Qc=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,a=d.useRef(null),l=d.useRef(null),[u,f]=ro({prop:r,defaultProp:o??!1,onChange:s,caller:_o});return c.jsx(cy,{scope:t,triggerRef:a,contentRef:l,contentId:Jt(),titleId:Jt(),descriptionId:Jt(),open:u,onOpenChange:f,onOpenToggle:d.useCallback(()=>f(h=>!h),[f]),modal:i,children:n})};Qc.displayName=_o;var Yc="DialogTrigger",uy=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=qe(Yc,n),s=de(t,o.triggerRef);return c.jsx(le.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Js(o.open),...r,ref:s,onClick:J(e.onClick,o.onOpenToggle)})});uy.displayName=Yc;var Zs="DialogPortal",[dy,Zc]=Kc(Zs,{forceMount:void 0}),Xc=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=qe(Zs,t);return c.jsx(dy,{scope:t,forceMount:n,children:d.Children.map(r,i=>c.jsx(Pn,{present:n||s.open,children:c.jsx(Is,{asChild:!0,container:o,children:i})}))})};Xc.displayName=Zs;var xo="DialogOverlay",Jc=d.forwardRef((e,t)=>{const n=Zc(xo,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=qe(xo,e.__scopeDialog);return s.modal?c.jsx(Pn,{present:r||s.open,children:c.jsx(py,{...o,ref:t})}):null});Jc.displayName=xo;var fy=ry("DialogOverlay.RemoveScroll"),py=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=qe(xo,n);return c.jsx(Ms,{as:fy,allowPinchZoom:!0,shards:[o.contentRef],children:c.jsx(le.div,{"data-state":Js(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),sn="DialogContent",eu=d.forwardRef((e,t)=>{const n=Zc(sn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=qe(sn,e.__scopeDialog);return c.jsx(Pn,{present:r||s.open,children:s.modal?c.jsx(hy,{...o,ref:t}):c.jsx(my,{...o,ref:t})})});eu.displayName=sn;var hy=d.forwardRef((e,t)=>{const n=qe(sn,e.__scopeDialog),r=d.useRef(null),o=de(t,n.contentRef,r);return d.useEffect(()=>{const s=r.current;if(s)return Kl(s)},[]),c.jsx(tu,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:J(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:J(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&s.preventDefault()}),onFocusOutside:J(e.onFocusOutside,s=>s.preventDefault())})}),my=d.forwardRef((e,t)=>{const n=qe(sn,e.__scopeDialog),r=d.useRef(!1),o=d.useRef(!1);return c.jsx(tu,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),tu=d.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,a=qe(sn,n),l=d.useRef(null),u=de(t,l);return nl(),c.jsxs(c.Fragment,{children:[c.jsx(vs,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:c.jsx(zr,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Js(a.open),...i,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(gy,{titleId:a.titleId}),c.jsx(yy,{contentRef:l,descriptionId:a.descriptionId})]})]})}),Xs="DialogTitle",nu=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=qe(Xs,n);return c.jsx(le.h2,{id:o.titleId,...r,ref:t})});nu.displayName=Xs;var ru="DialogDescription",ou=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=qe(ru,n);return c.jsx(le.p,{id:o.descriptionId,...r,ref:t})});ou.displayName=ru;var su="DialogClose",iu=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=qe(su,n);return c.jsx(le.button,{type:"button",...r,ref:t,onClick:J(e.onClick,()=>o.onOpenChange(!1))})});iu.displayName=su;function Js(e){return e?"open":"closed"}var au="DialogTitleWarning",[P2,lu]=Oh(au,{contentName:sn,titleName:Xs,docsSlug:"dialog"}),gy=({titleId:e})=>{const t=lu(au),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
251
+ `)},$g=0,Tn=[];function kg(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState($g++)[0],s=d.useState(rl)[0],i=d.useRef(e);d.useEffect(function(){i.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=_r([e.lockRef.current],(e.shards||[]).map(ul),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=d.useCallback(function(p,v){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!i.current.allowPinchZoom;var y=po(p),w=n.current,x="deltaX"in p?p.deltaX:w[0]-y[0],E="deltaY"in p?p.deltaY:w[1]-y[1],T,R=p.target,P=Math.abs(x)>Math.abs(E)?"h":"v";if("touches"in p&&P==="h"&&R.type==="range")return!1;var L=window.getSelection(),I=L&&L.anchorNode,N=I?I===R||I.contains(R):!1;if(N)return!1;var B=il(P,R);if(!B)return!0;if(B?T=P:(T=P==="v"?"h":"v",B=il(P,R)),!B)return!1;if(!r.current&&"changedTouches"in p&&(x||E)&&(r.current=T),!T)return!0;var U=r.current||T;return Lg(U,v,p,U==="h"?x:E)},[]),c=d.useCallback(function(p){var v=p;if(!(!Tn.length||Tn[Tn.length-1]!==s)){var y="deltaY"in v?ll(v):po(v),w=t.current.filter(function(T){return T.name===v.type&&(T.target===v.target||v.target===T.shadowParent)&&Ng(T.delta,y)})[0];if(w&&w.should){v.cancelable&&v.preventDefault();return}if(!w){var x=(i.current.shards||[]).map(ul).filter(Boolean).filter(function(T){return T.contains(v.target)}),E=x.length>0?a(v,x[0]):!i.current.noIsolation;E&&v.cancelable&&v.preventDefault()}}},[]),l=d.useCallback(function(p,v,y,w){var x={name:p,delta:v,target:y,should:w,shadowParent:Fg(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(E){return E!==x})},1)},[]),f=d.useCallback(function(p){n.current=po(p),r.current=void 0},[]),h=d.useCallback(function(p){l(p.type,ll(p),p.target,a(p,e.lockRef.current))},[]),m=d.useCallback(function(p){l(p.type,po(p),p.target,a(p,e.lockRef.current))},[]);d.useEffect(function(){return Tn.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:m}),document.addEventListener("wheel",c,_n),document.addEventListener("touchmove",c,_n),document.addEventListener("touchstart",f,_n),function(){Tn=Tn.filter(function(p){return p!==s}),document.removeEventListener("wheel",c,_n),document.removeEventListener("touchmove",c,_n),document.removeEventListener("touchstart",f,_n)}},[]);var g=e.removeScrollBar,S=e.inert;return d.createElement(d.Fragment,null,S?d.createElement(s,{styles:Mg(o)}):null,g?d.createElement(Rg,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Fg(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Bg=pg(nl,kg);var Us=d.forwardRef(function(e,t){return d.createElement(fo,Je({},e,{ref:t,sideCar:Bg}))});Us.classNames=fo.classNames;var Ug=[" ","Enter","ArrowUp","ArrowDown"],Wg=[" ","Enter"],tn="Select",[mo,go,Hg]=Yp(tn),[Rn]=rr(tn,[Hg,so]),vo=so(),[Vg,jt]=Rn(tn),[zg,qg]=Rn(tn),dl=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:i,defaultValue:a,onValueChange:c,dir:l,name:f,autoComplete:h,disabled:m,required:g,form:S}=e,p=vo(t),[v,y]=d.useState(null),[w,x]=d.useState(null),[E,T]=d.useState(!1),R=Xp(l),[P,L]=io({prop:r,defaultProp:o??!1,onChange:s,caller:tn}),[I,N]=io({prop:i,defaultProp:a,onChange:c,caller:tn}),B=d.useRef(null),U=v?S||!!v.closest("form"):!0,[H,z]=d.useState(new Set),ie=Array.from(H).map(q=>q.props.value).join(";");return u.jsx(qc,{...p,children:u.jsxs(Vg,{required:g,scope:t,trigger:v,onTriggerChange:y,valueNode:w,onValueNodeChange:x,valueNodeHasChildren:E,onValueNodeHasChildrenChange:T,contentId:Jt(),value:I,onValueChange:N,open:P,onOpenChange:L,dir:R,triggerPointerDownPosRef:B,disabled:m,children:[u.jsx(mo.Provider,{scope:t,children:u.jsx(zg,{scope:e.__scopeSelect,onNativeOptionAdd:d.useCallback(q=>{z(Z=>new Set(Z).add(q))},[]),onNativeOptionRemove:d.useCallback(q=>{z(Z=>{const k=new Set(Z);return k.delete(q),k})},[]),children:n})}),U?u.jsxs(jl,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:h,value:I,onChange:q=>N(q.target.value),disabled:m,form:S,children:[I===void 0?u.jsx("option",{value:""}):null,Array.from(H)]},ie):null]})})};dl.displayName=tn;var fl="SelectTrigger",hl=d.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=vo(n),i=jt(fl,n),a=i.disabled||r,c=fe(t,i.onTriggerChange),l=go(n),f=d.useRef("touch"),[h,m,g]=Dl(p=>{const v=l().filter(x=>!x.disabled),y=v.find(x=>x.value===i.value),w=Ll(v,p,y);w!==void 0&&i.onValueChange(w.value)}),S=p=>{a||(i.onOpenChange(!0),g()),p&&(i.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return u.jsx(Gc,{asChild:!0,...s,children:u.jsx(le.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":Il(i.value)?"":void 0,...o,ref:c,onClick:J(o.onClick,p=>{p.currentTarget.focus(),f.current!=="mouse"&&S(p)}),onPointerDown:J(o.onPointerDown,p=>{f.current=p.pointerType;const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(S(p),p.preventDefault())}),onKeyDown:J(o.onKeyDown,p=>{const v=h.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&m(p.key),!(v&&p.key===" ")&&Ug.includes(p.key)&&(S(),p.preventDefault())})})})});hl.displayName=fl;var pl="SelectValue",ml=d.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:i="",...a}=e,c=jt(pl,n),{onValueNodeHasChildrenChange:l}=c,f=s!==void 0,h=fe(t,c.onValueNodeChange);return Ce(()=>{l(f)},[l,f]),u.jsx(le.span,{...a,ref:h,style:{pointerEvents:"none"},children:Il(c.value)?u.jsx(u.Fragment,{children:i}):s})});ml.displayName=pl;var Gg="SelectIcon",gl=d.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return u.jsx(le.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});gl.displayName=Gg;var nn="SelectContent",vl=d.forwardRef((e,t)=>{const n=jt(nn,e.__scopeSelect),[r,o]=d.useState();if(Ce(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?Kn.createPortal(u.jsx(yl,{scope:e.__scopeSelect,children:u.jsx(mo.Slot,{scope:e.__scopeSelect,children:u.jsx("div",{children:e.children})})}),s):null}return u.jsx(bl,{...e,ref:t})});vl.displayName=nn;var qe=10,[yl,It]=Rn(nn),Kg="SelectContentImpl",Qg=zm("SelectContent.RemoveScroll"),bl=d.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:i,side:a,sideOffset:c,align:l,alignOffset:f,arrowPadding:h,collisionBoundary:m,collisionPadding:g,sticky:S,hideWhenDetached:p,avoidCollisions:v,...y}=e,w=jt(nn,n),[x,E]=d.useState(null),[T,R]=d.useState(null),P=fe(t,$=>E($)),[L,I]=d.useState(null),[N,B]=d.useState(null),U=go(n),[H,z]=d.useState(!1),ie=d.useRef(!1);d.useEffect(()=>{if(x)return Jc(x)},[x]),ac();const q=d.useCallback($=>{const[re,...ge]=U().map(te=>te.ref.current),[ee]=ge.slice(-1),oe=document.activeElement;for(const te of $)if(te===oe||(te==null||te.scrollIntoView({block:"nearest"}),te===re&&T&&(T.scrollTop=0),te===ee&&T&&(T.scrollTop=T.scrollHeight),te==null||te.focus(),document.activeElement!==oe))return},[U,T]),Z=d.useCallback(()=>q([L,x]),[q,L,x]);d.useEffect(()=>{H&&Z()},[H,Z]);const{onOpenChange:k,triggerPointerDownPosRef:ae}=w;d.useEffect(()=>{if(x){let $={x:0,y:0};const re=ee=>{var oe,te;$={x:Math.abs(Math.round(ee.pageX)-(((oe=ae.current)==null?void 0:oe.x)??0)),y:Math.abs(Math.round(ee.pageY)-(((te=ae.current)==null?void 0:te.y)??0))}},ge=ee=>{$.x<=10&&$.y<=10?ee.preventDefault():x.contains(ee.target)||k(!1),document.removeEventListener("pointermove",re),ae.current=null};return ae.current!==null&&(document.addEventListener("pointermove",re),document.addEventListener("pointerup",ge,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",re),document.removeEventListener("pointerup",ge,{capture:!0})}}},[x,k,ae]),d.useEffect(()=>{const $=()=>k(!1);return window.addEventListener("blur",$),window.addEventListener("resize",$),()=>{window.removeEventListener("blur",$),window.removeEventListener("resize",$)}},[k]);const[we,ke]=Dl($=>{const re=U().filter(oe=>!oe.disabled),ge=re.find(oe=>oe.ref.current===document.activeElement),ee=Ll(re,$,ge);ee&&setTimeout(()=>ee.ref.current.focus())}),Ht=d.useCallback(($,re,ge)=>{const ee=!ie.current&&!ge;(w.value!==void 0&&w.value===re||ee)&&(I($),ee&&(ie.current=!0))},[w.value]),Vt=d.useCallback(()=>x==null?void 0:x.focus(),[x]),lt=d.useCallback(($,re,ge)=>{const ee=!ie.current&&!ge;(w.value!==void 0&&w.value===re||ee)&&B($)},[w.value]),zt=r==="popper"?Ws:wl,Ze=zt===Ws?{side:a,sideOffset:c,align:l,alignOffset:f,arrowPadding:h,collisionBoundary:m,collisionPadding:g,sticky:S,hideWhenDetached:p,avoidCollisions:v}:{};return u.jsx(yl,{scope:n,content:x,viewport:T,onViewportChange:R,itemRefCallback:Ht,selectedItem:L,onItemLeave:Vt,itemTextRefCallback:lt,focusSelectedItem:Z,selectedItemText:N,position:r,isPositioned:H,searchRef:we,children:u.jsx(Us,{as:Qg,allowPinchZoom:!0,children:u.jsx(Cs,{asChild:!0,trapped:w.open,onMountAutoFocus:$=>{$.preventDefault()},onUnmountAutoFocus:J(o,$=>{var re;(re=w.trigger)==null||re.focus({preventScroll:!0}),$.preventDefault()}),children:u.jsx(Kr,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:$=>$.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:u.jsx(zt,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:$=>$.preventDefault(),...y,...Ze,onPlaced:()=>z(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:J(y.onKeyDown,$=>{const re=$.ctrlKey||$.altKey||$.metaKey;if($.key==="Tab"&&$.preventDefault(),!re&&$.key.length===1&&ke($.key),["ArrowUp","ArrowDown","Home","End"].includes($.key)){let ee=U().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);if(["ArrowUp","End"].includes($.key)&&(ee=ee.slice().reverse()),["ArrowUp","ArrowDown"].includes($.key)){const oe=$.target,te=ee.indexOf(oe);ee=ee.slice(te+1)}setTimeout(()=>q(ee)),$.preventDefault()}})})})})})})});bl.displayName=Kg;var Yg="SelectItemAlignedPosition",wl=d.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=jt(nn,n),i=It(nn,n),[a,c]=d.useState(null),[l,f]=d.useState(null),h=fe(t,P=>f(P)),m=go(n),g=d.useRef(!1),S=d.useRef(!0),{viewport:p,selectedItem:v,selectedItemText:y,focusSelectedItem:w}=i,x=d.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&l&&p&&v&&y){const P=s.trigger.getBoundingClientRect(),L=l.getBoundingClientRect(),I=s.valueNode.getBoundingClientRect(),N=y.getBoundingClientRect();if(s.dir!=="rtl"){const oe=N.left-L.left,te=I.left-oe,Re=P.left-te,Fe=P.width+Re,ut=Math.max(Fe,L.width),Xe=window.innerWidth-qe,qt=ec(te,[qe,Math.max(qe,Xe-ut)]);a.style.minWidth=Fe+"px",a.style.left=qt+"px"}else{const oe=L.right-N.right,te=window.innerWidth-I.right-oe,Re=window.innerWidth-P.right-te,Fe=P.width+Re,ut=Math.max(Fe,L.width),Xe=window.innerWidth-qe,qt=ec(te,[qe,Math.max(qe,Xe-ut)]);a.style.minWidth=Fe+"px",a.style.right=qt+"px"}const B=m(),U=window.innerHeight-qe*2,H=p.scrollHeight,z=window.getComputedStyle(l),ie=parseInt(z.borderTopWidth,10),q=parseInt(z.paddingTop,10),Z=parseInt(z.borderBottomWidth,10),k=parseInt(z.paddingBottom,10),ae=ie+q+H+k+Z,we=Math.min(v.offsetHeight*5,ae),ke=window.getComputedStyle(p),Ht=parseInt(ke.paddingTop,10),Vt=parseInt(ke.paddingBottom,10),lt=P.top+P.height/2-qe,zt=U-lt,Ze=v.offsetHeight/2,$=v.offsetTop+Ze,re=ie+q+$,ge=ae-re;if(re<=lt){const oe=B.length>0&&v===B[B.length-1].ref.current;a.style.bottom="0px";const te=l.clientHeight-p.offsetTop-p.offsetHeight,Re=Math.max(zt,Ze+(oe?Vt:0)+te+Z),Fe=re+Re;a.style.height=Fe+"px"}else{const oe=B.length>0&&v===B[0].ref.current;a.style.top="0px";const Re=Math.max(lt,ie+p.offsetTop+(oe?Ht:0)+Ze)+ge;a.style.height=Re+"px",p.scrollTop=re-lt+p.offsetTop}a.style.margin=`${qe}px 0`,a.style.minHeight=we+"px",a.style.maxHeight=U+"px",r==null||r(),requestAnimationFrame(()=>g.current=!0)}},[m,s.trigger,s.valueNode,a,l,p,v,y,s.dir,r]);Ce(()=>x(),[x]);const[E,T]=d.useState();Ce(()=>{l&&T(window.getComputedStyle(l).zIndex)},[l]);const R=d.useCallback(P=>{P&&S.current===!0&&(x(),w==null||w(),S.current=!1)},[x,w]);return u.jsx(Xg,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:g,onScrollButtonChange:R,children:u.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:u.jsx(le.div,{...o,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});wl.displayName=Yg;var Zg="SelectPopperPosition",Ws=d.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=qe,...s}=e,i=vo(n);return u.jsx(Kc,{...i,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Ws.displayName=Zg;var[Xg,Hs]=Rn(nn,{}),Vs="SelectViewport",Cl=d.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=It(Vs,n),i=Hs(Vs,n),a=fe(t,s.onViewportChange),c=d.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),u.jsx(mo.Slot,{scope:n,children:u.jsx(le.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:J(o.onScroll,l=>{const f=l.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:m}=i;if(m!=null&&m.current&&h){const g=Math.abs(c.current-f.scrollTop);if(g>0){const S=window.innerHeight-qe*2,p=parseFloat(h.style.minHeight),v=parseFloat(h.style.height),y=Math.max(p,v);if(y<S){const w=y+g,x=Math.min(S,w),E=w-x;h.style.height=x+"px",h.style.bottom==="0px"&&(f.scrollTop=E>0?E:0,h.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});Cl.displayName=Vs;var Sl="SelectGroup",[Jg,ev]=Rn(Sl),xl=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Jt();return u.jsx(Jg,{scope:n,id:o,children:u.jsx(le.div,{role:"group","aria-labelledby":o,...r,ref:t})})});xl.displayName=Sl;var El="SelectLabel",tv=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ev(El,n);return u.jsx(le.div,{id:o.id,...r,ref:t})});tv.displayName=El;var yo="SelectItem",[nv,_l]=Rn(yo),Tl=d.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...i}=e,a=jt(yo,n),c=It(yo,n),l=a.value===r,[f,h]=d.useState(s??""),[m,g]=d.useState(!1),S=fe(t,w=>{var x;return(x=c.itemRefCallback)==null?void 0:x.call(c,w,r,o)}),p=Jt(),v=d.useRef("touch"),y=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.jsx(nv,{scope:n,value:r,disabled:o,textId:p,isSelected:l,onItemTextChange:d.useCallback(w=>{h(x=>x||((w==null?void 0:w.textContent)??"").trim())},[]),children:u.jsx(mo.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:u.jsx(le.div,{role:"option","aria-labelledby":p,"data-highlighted":m?"":void 0,"aria-selected":l&&m,"data-state":l?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:S,onFocus:J(i.onFocus,()=>g(!0)),onBlur:J(i.onBlur,()=>g(!1)),onClick:J(i.onClick,()=>{v.current!=="mouse"&&y()}),onPointerUp:J(i.onPointerUp,()=>{v.current==="mouse"&&y()}),onPointerDown:J(i.onPointerDown,w=>{v.current=w.pointerType}),onPointerMove:J(i.onPointerMove,w=>{var x;v.current=w.pointerType,o?(x=c.onItemLeave)==null||x.call(c):v.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:J(i.onPointerLeave,w=>{var x;w.currentTarget===document.activeElement&&((x=c.onItemLeave)==null||x.call(c))}),onKeyDown:J(i.onKeyDown,w=>{var E;((E=c.searchRef)==null?void 0:E.current)!==""&&w.key===" "||(Wg.includes(w.key)&&y(),w.key===" "&&w.preventDefault())})})})})});Tl.displayName=yo;var ir="SelectItemText",Rl=d.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,i=jt(ir,n),a=It(ir,n),c=_l(ir,n),l=qg(ir,n),[f,h]=d.useState(null),m=fe(t,y=>h(y),c.onItemTextChange,y=>{var w;return(w=a.itemTextRefCallback)==null?void 0:w.call(a,y,c.value,c.disabled)}),g=f==null?void 0:f.textContent,S=d.useMemo(()=>u.jsx("option",{value:c.value,disabled:c.disabled,children:g},c.value),[c.disabled,c.value,g]),{onNativeOptionAdd:p,onNativeOptionRemove:v}=l;return Ce(()=>(p(S),()=>v(S)),[p,v,S]),u.jsxs(u.Fragment,{children:[u.jsx(le.span,{id:c.textId,...s,ref:m}),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Kn.createPortal(s.children,i.valueNode):null]})});Rl.displayName=ir;var Pl="SelectItemIndicator",Al=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return _l(Pl,n).isSelected?u.jsx(le.span,{"aria-hidden":!0,...r,ref:t}):null});Al.displayName=Pl;var zs="SelectScrollUpButton",rv=d.forwardRef((e,t)=>{const n=It(zs,e.__scopeSelect),r=Hs(zs,e.__scopeSelect),[o,s]=d.useState(!1),i=fe(t,r.onScrollButtonChange);return Ce(()=>{if(n.viewport&&n.isPositioned){let a=function(){const l=c.scrollTop>0;s(l)};const c=n.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?u.jsx(Ol,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=n;a&&c&&(a.scrollTop=a.scrollTop-c.offsetHeight)}}):null});rv.displayName=zs;var qs="SelectScrollDownButton",ov=d.forwardRef((e,t)=>{const n=It(qs,e.__scopeSelect),r=Hs(qs,e.__scopeSelect),[o,s]=d.useState(!1),i=fe(t,r.onScrollButtonChange);return Ce(()=>{if(n.viewport&&n.isPositioned){let a=function(){const l=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<l;s(f)};const c=n.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?u.jsx(Ol,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=n;a&&c&&(a.scrollTop=a.scrollTop+c.offsetHeight)}}):null});ov.displayName=qs;var Ol=d.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=It("SelectScrollButton",n),i=d.useRef(null),a=go(n),c=d.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return d.useEffect(()=>()=>c(),[c]),Ce(()=>{var f;const l=a().find(h=>h.ref.current===document.activeElement);(f=l==null?void 0:l.ref.current)==null||f.scrollIntoView({block:"nearest"})},[a]),u.jsx(le.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:J(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:J(o.onPointerMove,()=>{var l;(l=s.onItemLeave)==null||l.call(s),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:J(o.onPointerLeave,()=>{c()})})}),sv="SelectSeparator",iv=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return u.jsx(le.div,{"aria-hidden":!0,...r,ref:t})});iv.displayName=sv;var Gs="SelectArrow",av=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=vo(n),s=jt(Gs,n),i=It(Gs,n);return s.open&&i.position==="popper"?u.jsx(Qc,{...o,...r,ref:t}):null});av.displayName=Gs;var cv="SelectBubbleInput",jl=d.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=d.useRef(null),s=fe(r,o),i=eg(t);return d.useEffect(()=>{const a=o.current;if(!a)return;const c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==t&&f){const h=new Event("change",{bubbles:!0});f.call(a,t),a.dispatchEvent(h)}},[i,t]),u.jsx(le.select,{...n,style:{...Yc,...n.style},ref:s,defaultValue:t})});jl.displayName=cv;function Il(e){return e===""||e===void 0}function Dl(e){const t=Xt(e),n=d.useRef(""),r=d.useRef(0),o=d.useCallback(i=>{const a=n.current+i;t(a),function c(l){n.current=l,window.clearTimeout(r.current),l!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(a)},[t]),s=d.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return d.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function Ll(e,t,n){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=lv(e,Math.max(s,0));o.length===1&&(i=i.filter(l=>l!==n));const c=i.find(l=>l.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function lv(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var uv=dl,dv=hl,fv=ml,hv=gl,pv=vl,mv=Cl,gv=xl,vv=Tl,yv=Rl,bv=Al;const ot={Container:"Container__xcHXp",Label:"Label__0cZB9",HelperText:"HelperText__m1nA9",Trigger:"Trigger__AyFUd",TriggerIcon:"TriggerIcon__aygFG",Content:"Content__llztG",Viewport:"Viewport__COtSL",Item:"Item__XN1-2",ItemIndicatorContainer:"ItemIndicatorContainer__EQH-X",ItemIndicator:"ItemIndicator__bySSc"},wv=_("Select2",G(({label:e,helperText:t,value:n,onValueChange:r,options:o,placeholder:s="Select",disabled:i=!1,className:a,name:c},l)=>u.jsxs("div",{className:D(ot.Container,a),children:[e&&u.jsx("label",{className:ot.Label,children:e}),u.jsxs(uv,{value:n,onValueChange:r,disabled:i,name:c,children:[u.jsxs(dv,{ref:l,className:ot.Trigger,children:[u.jsx(fv,{placeholder:s}),u.jsx(hv,{className:ot.TriggerIcon,children:u.jsx(Cv,{})})]}),u.jsx(pv,{className:ot.Content,position:"popper",sideOffset:4,children:u.jsx(mv,{className:ot.Viewport,children:u.jsx(gv,{children:o.map(f=>u.jsxs(vv,{value:f.value,disabled:f.disabled,className:ot.Item,children:[u.jsx("div",{className:ot.ItemIndicatorContainer,children:u.jsx(bv,{className:ot.ItemIndicator,children:u.jsx(Sv,{})})}),u.jsx(yv,{children:f.label})]},f.value))})})})]}),t&&u.jsx("div",{className:ot.HelperText,children:t})]})));wv.displayName="Select";const Cv=()=>u.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.52459 12.7746C6.8907 12.4085 7.4843 12.4085 7.85041 12.7746L10 14.9242L12.1496 12.7746C12.5157 12.4085 13.1093 12.4085 13.4754 12.7746C13.8415 13.1407 13.8415 13.7343 13.4754 14.1004L10.6629 16.9129C10.2968 17.279 9.7032 17.279 9.33709 16.9129L6.52459 14.1004C6.15847 13.7343 6.15847 13.1407 6.52459 12.7746Z",fill:"currentColor"}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.4754 7.22541C13.1093 7.59153 12.5157 7.59153 12.1496 7.22541L10 5.07583L7.85041 7.22541C7.4843 7.59153 6.8907 7.59153 6.52459 7.22541C6.15847 6.8593 6.15847 6.2657 6.52459 5.89959L9.33709 3.08709C9.7032 2.72097 10.2968 2.72097 10.6629 3.08709L13.4754 5.89959C13.8415 6.2657 13.8415 6.8593 13.4754 7.22541Z",fill:"currentColor"})]}),Sv=()=>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:"M13.3333 4L6 11.3333L2.66667 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),xv={TextArea:"TextArea__pa-A0"},Ev=_("TextArea",G(({children:e,className:t,...n},r)=>{const o=D(xv.TextArea,t);return u.jsx("textarea",{ref:r,className:o,...n,children:e})}));Ev.displayName="TextArea";function _v(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var Pn=e=>{const{present:t,children:n}=e,r=Tv(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),s=fe(r.ref,Rv(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:s}):null};Pn.displayName="Presence";function Tv(e){const[t,n]=d.useState(),r=d.useRef(null),o=d.useRef(e),s=d.useRef("none"),i=e?"mounted":"unmounted",[a,c]=_v(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const l=bo(r.current);s.current=a==="mounted"?l:"none"},[a]),Ce(()=>{const l=r.current,f=o.current;if(f!==e){const m=s.current,g=bo(l);e?c("MOUNT"):g==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(f&&m!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Ce(()=>{if(t){let l;const f=t.ownerDocument.defaultView??window,h=g=>{const p=bo(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&p&&(c("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",l=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},m=g=>{g.target===t&&(s.current=bo(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{f.clearTimeout(l),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:d.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function bo(e){return(e==null?void 0:e.animationName)||"none"}function Rv(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 Pv=Symbol("radix.slottable");function Av(e){const t=({children:n})=>u.jsx(u.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Pv,t}var[wo]=rr("Tooltip",[so]),Co=so(),Nl="TooltipProvider",Ov=700,Ks="tooltip.open",[jv,Qs]=wo(Nl),Ml=e=>{const{__scopeTooltip:t,delayDuration:n=Ov,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=d.useRef(!0),a=d.useRef(!1),c=d.useRef(0);return d.useEffect(()=>{const l=c.current;return()=>window.clearTimeout(l)},[]),u.jsx(jv,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:d.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:d.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:d.useCallback(l=>{a.current=l},[]),disableHoverableContent:o,children:s})};Ml.displayName=Nl;var ar="Tooltip",[Iv,cr]=wo(ar),$l=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:i,delayDuration:a}=e,c=Qs(ar,e.__scopeTooltip),l=Co(t),[f,h]=d.useState(null),m=Jt(),g=d.useRef(0),S=i??c.disableHoverableContent,p=a??c.delayDuration,v=d.useRef(!1),[y,w]=io({prop:r,defaultProp:o??!1,onChange:P=>{P?(c.onOpen(),document.dispatchEvent(new CustomEvent(Ks))):c.onClose(),s==null||s(P)},caller:ar}),x=d.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),E=d.useCallback(()=>{window.clearTimeout(g.current),g.current=0,v.current=!1,w(!0)},[w]),T=d.useCallback(()=>{window.clearTimeout(g.current),g.current=0,w(!1)},[w]),R=d.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{v.current=!0,w(!0),g.current=0},p)},[p,w]);return d.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),u.jsx(qc,{...l,children:u.jsx(Iv,{scope:t,contentId:m,open:y,stateAttribute:x,trigger:f,onTriggerChange:h,onTriggerEnter:d.useCallback(()=>{c.isOpenDelayedRef.current?R():E()},[c.isOpenDelayedRef,R,E]),onTriggerLeave:d.useCallback(()=>{S?T():(window.clearTimeout(g.current),g.current=0)},[T,S]),onOpen:E,onClose:T,disableHoverableContent:S,children:n})})};$l.displayName=ar;var Ys="TooltipTrigger",kl=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=cr(Ys,n),s=Qs(Ys,n),i=Co(n),a=d.useRef(null),c=fe(t,a,o.onTriggerChange),l=d.useRef(!1),f=d.useRef(!1),h=d.useCallback(()=>l.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),u.jsx(Gc,{asChild:!0,...i,children:u.jsx(le.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:J(e.onPointerMove,m=>{m.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:J(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:J(e.onPointerDown,()=>{o.open&&o.onClose(),l.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:J(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:J(e.onBlur,o.onClose),onClick:J(e.onClick,o.onClose)})})});kl.displayName=Ys;var Zs="TooltipPortal",[Dv,Lv]=wo(Zs,{forceMount:void 0}),Fl=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=cr(Zs,t);return u.jsx(Dv,{scope:t,forceMount:n,children:u.jsx(Pn,{present:n||s.open,children:u.jsx(Ns,{asChild:!0,container:o,children:r})})})};Fl.displayName=Zs;var An="TooltipContent",Bl=d.forwardRef((e,t)=>{const n=Lv(An,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=cr(An,e.__scopeTooltip);return u.jsx(Pn,{present:r||i.open,children:i.disableHoverableContent?u.jsx(Ul,{side:o,...s,ref:t}):u.jsx(Nv,{side:o,...s,ref:t})})}),Nv=d.forwardRef((e,t)=>{const n=cr(An,e.__scopeTooltip),r=Qs(An,e.__scopeTooltip),o=d.useRef(null),s=fe(t,o),[i,a]=d.useState(null),{trigger:c,onClose:l}=n,f=o.current,{onPointerInTransitChange:h}=r,m=d.useCallback(()=>{a(null),h(!1)},[h]),g=d.useCallback((S,p)=>{const v=S.currentTarget,y={x:S.clientX,y:S.clientY},w=Fv(y,v.getBoundingClientRect()),x=Bv(y,w),E=Uv(p.getBoundingClientRect()),T=Hv([...x,...E]);a(T),h(!0)},[h]);return d.useEffect(()=>()=>m(),[m]),d.useEffect(()=>{if(c&&f){const S=v=>g(v,f),p=v=>g(v,c);return c.addEventListener("pointerleave",S),f.addEventListener("pointerleave",p),()=>{c.removeEventListener("pointerleave",S),f.removeEventListener("pointerleave",p)}}},[c,f,g,m]),d.useEffect(()=>{if(i){const S=p=>{const v=p.target,y={x:p.clientX,y:p.clientY},w=(c==null?void 0:c.contains(v))||(f==null?void 0:f.contains(v)),x=!Wv(y,i);w?m():x&&(m(),l())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[c,f,i,l,m]),u.jsx(Ul,{...e,ref:s})}),[Mv,$v]=wo(ar,{isInside:!1}),kv=Av("TooltipContent"),Ul=d.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,c=cr(An,n),l=Co(n),{onClose:f}=c;return d.useEffect(()=>(document.addEventListener(Ks,f),()=>document.removeEventListener(Ks,f)),[f]),d.useEffect(()=>{if(c.trigger){const h=m=>{const g=m.target;g!=null&&g.contains(c.trigger)&&f()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,f]),u.jsx(Kr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:h=>h.preventDefault(),onDismiss:f,children:u.jsxs(Kc,{"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(kv,{children:r}),u.jsx(Mv,{scope:n,isInside:!0,children:u.jsx(ng,{id:c.contentId,role:"tooltip",children:o||r})})]})})});Bl.displayName=An;var Wl="TooltipArrow",Hl=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Co(n);return $v(Wl,n).isInside?null:u.jsx(Qc,{...o,...r,ref:t})});Hl.displayName=Wl;function Fv(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Bv(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 Uv(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 Wv(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],c=t[i],l=a.x,f=a.y,h=c.x,m=c.y;f>r!=m>r&&n<(h-l)*(r-f)/(m-f)+l&&(o=!o)}return o}function Hv(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),Vv(t)}function Vv(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 s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.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 s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.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 zv=Ml,qv=$l,Gv=kl,Kv=Fl,Qv=Bl,Yv=Hl;const Vl={tooltip:"tooltip__nUuSh",tooltipArrow:"tooltipArrow__W2w-f"},zl=qn(null),Zv=_("PortalContainerProvider",({container:e,children:t})=>u.jsx(zl.Provider,{value:e,children:t})),ql=_("usePortalContainer",()=>Gn(zl)??void 0),lr=_("Tooltip",({children:e,open:t,displayName:n,tooltipContent:r,className:o,disabled:s,delayDuration:i=300,side:a="right",sideOffset:c=0})=>{const[l,f]=W(!1),h=ql(),m=t!==void 0,S=s?!1:m?t:l,p=v=>{s||m||f(v)};return u.jsx(zv,{delayDuration:i,children:u.jsxs(qv,{open:S,onOpenChange:p,children:[u.jsx(Gv,{asChild:!0,children:e}),u.jsx(Kv,{container:h,children:u.jsxs(Qv,{className:D(Vl.tooltip,o),side:a,sideOffset:c,children:[n,r,u.jsx(Yv,{className:Vl.tooltipArrow})]})})]})})});lr.displayName="Tooltip";const Gl={truncatedText:"truncatedText__Y-jSd",overflowing:"overflowing__o8TC-"},Xv=_("TextWithTooltip",({children:e,className:t,tooltipSide:n="top",tooltipClassName:r})=>{const o=We(null),[s,i]=W(!1);X(()=>{const c=()=>{if(o.current){const l=o.current.scrollWidth>o.current.clientWidth;i(l)}};return c(),window.addEventListener("resize",c),()=>{window.removeEventListener("resize",c)}},[e]);const a=u.jsx("span",{ref:o,className:D(Gl.truncatedText,s?Gl.overflowing:"",t||""),children:e});return s?u.jsx(lr,{tooltipContent:e,side:n,className:r,children:a}):a});Xv.displayName="TextWithTooltip";const ur={SearchInput:"SearchInput__4OFyE",SearchIcon:"SearchIcon__YgnQy",ClearIcon:"ClearIcon__ukRVr",SearchInput__ClearIcon:"SearchInput__ClearIcon__uzVoc",SearchInput__SearchIcon:"SearchInput__SearchIcon__zoDG4"},Kl=_("SearchInput",G(({className:e,placeholder:t="Type to search...",showClearButton:n=!1,showSearchIcon:r=!0,onClear:o,...s},i)=>{const a=D(ur.SearchInput,n&&ur.SearchInput__ClearIcon,r&&ur.SearchInput__SearchIcon,e),c=D(ur.SearchIcon),l=D(ur.ClearIcon);return u.jsxs("div",{className:a,children:[u.jsx(ms,{ref:i,type:"text",placeholder:t,...s}),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"})})]})}));Kl.displayName="SearchInput";const rn={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"},On=_("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"}),Xs=_("DropdownList",G(({children:e,className:t,open:n,align:r="right",...o},s)=>{const i=D(On.DropdownList,{[On["DropdownList--open"]]:n,[On["DropdownList--closed"]]:!n,[On["DropdownList--left"]]:r==="left"},t);return u.jsx("div",{ref:s,className:i,...o,children:e})}));Xs.displayName="DropdownList";const dr=G(({children:e,className:t,canBeSelected:n=!1,...r},o)=>{const s=D(rn.AutocompleteItem,{[rn["AutocompleteItem--canBeSelected"]]:n},t);return u.jsx("div",{ref:o,className:s,role:n?"option":void 0,...r,children:e})});dr.displayName="AutocompleteItem";const Jv=300,ey={query:"",suggestions:[],loading:!1,error:null},ty=({suggestionFetcher:e,canAdd:t})=>{const[n,r]=W(ey);return X(()=>{r(a=>({...a,loading:!0}));const s=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}))}},i=setTimeout(()=>{s()},Jv);return()=>{clearTimeout(i)}},[n.query]),{...n,setQuery:s=>{r(i=>({...i,query:s}))}}},Ql=G(({text:e,query:t,className:n,...r},o)=>{const s=D(rn.AutocompleteHighlighter,n),i=(a,c)=>{const l=a.toLowerCase().indexOf(c.toLowerCase());if(l===-1||c.length===0)return a;const f=a.slice(0,l),h=a.slice(l,l+c.length),m=a.slice(l+c.length);return u.jsxs(u.Fragment,{children:[f,u.jsx("span",{className:rn.AutocompleteHighlighter__match,children:h}),i(m,c)]})};return u.jsx("div",{ref:o,className:s,...r,children:i(e,t)})});Ql.displayName="AutocompleteHighlighter";const ny=5,ry=_("SearchAutocomplete",G(({children:e,className:t,canAdd:n,maxSuggestionsShown:r=ny,searchInputProps:o,keepSelectedOption:s,suggestionFetcher:i,onAccept:a,...c},l)=>{const{query:f,setQuery:h,suggestions:m,loading:g}=ty({suggestionFetcher:i,canAdd:n}),[S,p]=W(null),v=f.length>0,y=P=>{h(P.target.value)},w=P=>{a==null||a(P),s?(p(P),h(P.value)):h("")},x=()=>{a==null||a(null),p(null),h("")},E=D(rn.SearchAutocomplete,t),T=m.slice(0,r),R=m.slice(r);return u.jsxs("div",{ref:l,className:E,...c,children:[u.jsx(Kl,{...o,value:f,onChange:y,showClearButton:!!S,onClear:x}),e,u.jsxs(Xs,{className:rn.DropdownList,open:v&&!S,role:"listbox","aria-label":"Suggestions",children:[g?u.jsx(dr,{children:"Loading..."}):T.map(P=>u.jsxs(dr,{canBeSelected:!0,onClick:w.bind(null,P),children:[u.jsx(Ql,{text:P.label,query:f}),P.description&&u.jsx("span",{className:rn.AutocompleteItemDescription,children:P.description})]},P.value)),!g&&R.length>0&&u.jsxs(dr,{children:[R.length," more results"]}),v&&m.length===0&&!g&&u.jsx(dr,{children:"No results found"})]})]})}));ry.displayName="SearchAutocomplete";const on=_("Show",e=>{let t=null,n=null;return Ti.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})});on.displayName="Show",on.When=({condition:e,children:t})=>u.jsx(u.Fragment,{children:e&&t}),on.Else=({render:e,children:t})=>u.jsx(u.Fragment,{children:e||t});var oy=Symbol.for("react.lazy"),So=d[" use ".trim().toString()];function sy(e){return typeof e=="object"&&e!==null&&"then"in e}function Yl(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===oy&&"_payload"in e&&sy(e._payload)}function iy(e){const t=cy(e),n=d.forwardRef((r,o)=>{let{children:s,...i}=r;Yl(s)&&typeof So=="function"&&(s=So(s._payload));const a=d.Children.toArray(s),c=a.find(uy);if(c){const l=c.props.children,f=a.map(h=>h===c?d.Children.count(l)>1?d.Children.only(null):d.isValidElement(l)?l.props.children:null:h);return u.jsx(t,{...i,ref:o,children:d.isValidElement(l)?d.cloneElement(l,void 0,f):null})}return u.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var ay=iy("Slot");function cy(e){const t=d.forwardRef((n,r)=>{let{children:o,...s}=n;if(Yl(o)&&typeof So=="function"&&(o=So(o._payload)),d.isValidElement(o)){const i=fy(o),a=dy(s,o.props);return o.type!==d.Fragment&&(a.ref=r?yn(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ly=Symbol("radix.slottable");function uy(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ly}function dy(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function fy(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 Zl={SkeletonListContainer:"SkeletonListContainer__MKJhE",Skeleton:"Skeleton__Ovpiw"},Js=_("Skeleton",G((e,t)=>{const{children:n,className:r,loading:o,height:s=48,width:i,borderRadius:a,style:c,...l}=e;if(!o&&n)return n;const f=No(n)?ay:"span";return u.jsx(f,{ref:t,"aria-hidden":!0,className:D(Zl.Skeleton,r),style:{...c,width:i,minWidth:i,height:s,borderRadius:a},"data-inline-skeleton":No(n)?void 0:!0,tabIndex:-1,...l,children:n})}));Js.displayName="Skeleton";const hy=_("SkeletonList",e=>{const{numberOfItems:t,itemsGap:n=2,itemProps:r}=e,o=Array.from({length:t},(s,i)=>i+1);return u.jsx("div",{className:D(Zl.SkeletonListContainer),style:{gap:n},children:o.map(s=>u.jsx(Js,{loading:!0,...r},s))})});hy.displayName="SkeletonList";const Xl={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"},py=_("Spinner",({className:e,color:t="white",size:n=80,thickness:r})=>{const o=D(Xl.spinner,Xl[`spinner-${t}`],e),s=r??Math.max(n/12,2);return u.jsx("span",{style:{width:n,height:n,borderWidth:s},className:o})});py.displayName="Spinner";const xo={switch:"switch__0b2av",disabled:"disabled__KpauE",checked:"checked__2-JV-",thumb:"thumb__fEuKD"},my=_("Switch",G(({checked:e,defaultChecked:t=!1,onCheckedChange:n,disabled:r=!1,id:o,className:s,name:i,"aria-label":a,"aria-labelledby":c,"aria-describedby":l,...f},h)=>{const[m,g]=Ue.useState(t),S=e!==void 0,p=S?!!e:m,v=()=>{if(r)return;const w=!p;S||g(w),n==null||n(w)},y=w=>{(w.key===" "||w.key==="Enter")&&(w.preventDefault(),v())};return u.jsx("button",{ref:h,type:"button",role:"switch","aria-checked":p,"aria-label":a,"aria-labelledby":c,"aria-describedby":l,disabled:r,id:o,name:i,className:D(xo.switch,{[xo.checked]:p,[xo.disabled]:r}),onClick:v,onKeyDown:y,...f,children:u.jsx("span",{className:xo.thumb,"aria-hidden":"true"})})}));my.displayName="Switch";const st={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"},Jl=qn(null),ei=()=>{const e=Gn(Jl);if(!e)throw new Error("Tabs components must be used within a Tabs provider");return e},M3=_("Tabs",({defaultValue:e,value:t,onValueChange:n,orientation:r="horizontal",className:o="",children:s})=>{const[i,a]=W(e||""),c=t!==void 0,l=c?t:i,f=h=>{c||a(h),n==null||n(h)};return u.jsx(Jl.Provider,{value:{value:l,onValueChange:f,orientation:r},children:u.jsx("div",{className:D(st.tabsRoot,o),children:s})})}),$3=_("TabsList",({className:e="",children:t})=>{const{orientation:n}=ei(),r=We(null),o=s=>{var l;const i=(l=r.current)==null?void 0:l.querySelectorAll('[role="tab"]:not([disabled])');if(!i)return;const a=Array.from(i).findIndex(f=>f===document.activeElement);let c=a;switch(s.key){case"ArrowLeft":n==="horizontal"&&(s.preventDefault(),c=a>0?a-1:i.length-1);break;case"ArrowRight":n==="horizontal"&&(s.preventDefault(),c=a<i.length-1?a+1:0);break;case"ArrowUp":n==="vertical"&&(s.preventDefault(),c=a>0?a-1:i.length-1);break;case"ArrowDown":n==="vertical"&&(s.preventDefault(),c=a<i.length-1?a+1:0);break;case"Home":s.preventDefault(),c=0;break;case"End":s.preventDefault(),c=i.length-1;break}if(c!==a){const f=i[c];f.focus(),f.click()}};return u.jsx("div",{ref:r,role:"tablist","aria-orientation":n,onKeyDown:o,className:D(st.tabsList,n==="horizontal"?st.tabsListHorizontal:st.tabsListVertical,e),children:t})}),k3=_("TabsTrigger",({value:e,disabled:t=!1,className:n="",children:r})=>{const{value:o,onValueChange:s,orientation:i}=ei(),a=o===e,c=()=>{t||s(e)};return u.jsx("button",{role:"tab","aria-selected":a,"aria-controls":`content-${e}`,tabIndex:a?0:-1,disabled:t,onClick:c,className:D(st.tabsTrigger,i==="horizontal"?st.tabsTriggerHorizontal:st.tabsTriggerVertical,a&&st.tabsTriggerActive,t&&st.tabsTriggerDisabled,n),children:r})}),F3=_("TabsContent",({value:e,className:t="",children:n})=>{const{value:r}=ei();return r===e?u.jsx("div",{role:"tabpanel",id:`content-${e}`,"aria-labelledby":`trigger-${e}`,tabIndex:0,className:D(st.tabsContent,t),children:n}):null}),gy=_("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"})})),eu={PasswordInput:"PasswordInput__GDJDN",eyeIcon:"eyeIcon__kDExG"},W3=_("PasswordInput",G((e,t)=>{const[n,r]=W("password"),o=ce(()=>{r(s=>s==="password"?"text":"password")},[r]);return u.jsxs("div",{className:D(eu.PasswordInput,e.className),children:[u.jsx(ms,{type:n,...e,ref:t}),u.jsx(gy,{className:eu.eyeIcon,onClick:o,state:n==="password"?"open":"closed"})]})}));function vy(e){const t=yy(e),n=d.forwardRef((r,o)=>{const{children:s,...i}=r,a=d.Children.toArray(s),c=a.find(wy);if(c){const l=c.props.children,f=a.map(h=>h===c?d.Children.count(l)>1?d.Children.only(null):d.isValidElement(l)?l.props.children:null:h);return u.jsx(t,{...i,ref:o,children:d.isValidElement(l)?d.cloneElement(l,void 0,f):null})}return u.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function yy(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const i=Sy(o),a=Cy(s,o.props);return o.type!==d.Fragment&&(a.ref=r?yn(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var by=Symbol("radix.slottable");function wy(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===by}function Cy(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Sy(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 Eo="Dialog",[tu]=rr(Eo),[xy,Ge]=tu(Eo),nu=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,a=d.useRef(null),c=d.useRef(null),[l,f]=io({prop:r,defaultProp:o??!1,onChange:s,caller:Eo});return u.jsx(xy,{scope:t,triggerRef:a,contentRef:c,contentId:Jt(),titleId:Jt(),descriptionId:Jt(),open:l,onOpenChange:f,onOpenToggle:d.useCallback(()=>f(h=>!h),[f]),modal:i,children:n})};nu.displayName=Eo;var ru="DialogTrigger",Ey=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ge(ru,n),s=fe(t,o.triggerRef);return u.jsx(le.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ri(o.open),...r,ref:s,onClick:J(e.onClick,o.onOpenToggle)})});Ey.displayName=ru;var ti="DialogPortal",[_y,ou]=tu(ti,{forceMount:void 0}),su=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Ge(ti,t);return u.jsx(_y,{scope:t,forceMount:n,children:d.Children.map(r,i=>u.jsx(Pn,{present:n||s.open,children:u.jsx(Ns,{asChild:!0,container:o,children:i})}))})};su.displayName=ti;var _o="DialogOverlay",iu=d.forwardRef((e,t)=>{const n=ou(_o,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Ge(_o,e.__scopeDialog);return s.modal?u.jsx(Pn,{present:r||s.open,children:u.jsx(Ry,{...o,ref:t})}):null});iu.displayName=_o;var Ty=vy("DialogOverlay.RemoveScroll"),Ry=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ge(_o,n);return u.jsx(Us,{as:Ty,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(le.div,{"data-state":ri(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),sn="DialogContent",au=d.forwardRef((e,t)=>{const n=ou(sn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Ge(sn,e.__scopeDialog);return u.jsx(Pn,{present:r||s.open,children:s.modal?u.jsx(Py,{...o,ref:t}):u.jsx(Ay,{...o,ref:t})})});au.displayName=sn;var Py=d.forwardRef((e,t)=>{const n=Ge(sn,e.__scopeDialog),r=d.useRef(null),o=fe(t,n.contentRef,r);return d.useEffect(()=>{const s=r.current;if(s)return Jc(s)},[]),u.jsx(cu,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:J(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:J(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&s.preventDefault()}),onFocusOutside:J(e.onFocusOutside,s=>s.preventDefault())})}),Ay=d.forwardRef((e,t)=>{const n=Ge(sn,e.__scopeDialog),r=d.useRef(!1),o=d.useRef(!1);return u.jsx(cu,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((l=n.triggerRef.current)==null?void 0:l.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),cu=d.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,a=Ge(sn,n),c=d.useRef(null),l=fe(t,c);return ac(),u.jsxs(u.Fragment,{children:[u.jsx(Cs,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:u.jsx(Kr,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":ri(a.open),...i,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(Oy,{titleId:a.titleId}),u.jsx(Iy,{contentRef:c,descriptionId:a.descriptionId})]})]})}),ni="DialogTitle",lu=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ge(ni,n);return u.jsx(le.h2,{id:o.titleId,...r,ref:t})});lu.displayName=ni;var uu="DialogDescription",du=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ge(uu,n);return u.jsx(le.p,{id:o.descriptionId,...r,ref:t})});du.displayName=uu;var fu="DialogClose",hu=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ge(fu,n);return u.jsx(le.button,{type:"button",...r,ref:t,onClick:J(e.onClick,()=>o.onOpenChange(!1))})});hu.displayName=fu;function ri(e){return e?"open":"closed"}var pu="DialogTitleWarning",[H3,mu]=Hp(pu,{contentName:sn,titleName:ni,docsSlug:"dialog"}),Oy=({titleId:e})=>{const t=mu(pu),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
250
252
 
251
253
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
252
254
 
253
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return d.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},vy="DialogDescriptionWarning",yy=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${lu(vy).contentName}}.`;return d.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},by=Qc,wy=Xc,_y=Jc,xy=eu,Cy=nu,Sy=ou,Ey=iu;const cu={Overlay:"Overlay__M5Z83",Content:"Content__wAkP4"},an={Header:"Header__VHxNf",Content:"Content__I04qM",Close:"Close__xSN-7",Title:"Title__Dznh6",Description:"Description__ALT2w",Footer:"Footer__-8gzQ",Actions:"Actions__kKF2Q"},uu=q(({children:e,className:t,...n},r)=>{const o=k(an.Header,t);return c.jsx("div",{ref:r,className:o,...n,children:e})});uu.displayName="Header";const du=q(({children:e,className:t,...n},r)=>{const o=k(an.Content,t);return c.jsx("div",{ref:r,className:o,...n,children:e})});du.displayName="Content";const fu=q(({children:e,className:t,...n},r)=>{const o=k(an.Footer,t);return c.jsx("div",{ref:r,className:o,...n,children:e})});fu.displayName="Footer";const pu=q(({children:e,className:t,...n},r)=>{const o=k(an.Title,t);return c.jsx(Cy,{ref:r,className:o,...n,children:e})});pu.displayName="Title";const hu=q(({className:e,...t},n)=>{const r=k(an.Close,e);return c.jsx(Ey,{ref:n,asChild:!0,className:r,...t,children:c.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M11 1L1 11M1 1L11 11",stroke:"#A9A9A9",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})});hu.displayName="Close";const mu=q(({children:e,className:t,...n},r)=>{const o=k(an.Actions,t);return c.jsx("div",{ref:r,className:o,...n,children:e})});mu.displayName="Actions";const gu=q(({children:e,className:t,...n},r)=>{const o=k(an.Description,t);return c.jsx("div",{ref:r,className:o,...n,children:e})});gu.displayName="Description";const Se=E("Dialog",({children:e,onClose:t,open:n=!1,className:r,zIndexLevel:o=0})=>{const s=()=>{t==null||t()},i={zIndex:`calc(var(--platform-modal-layer) + ${o*2})`},a={zIndex:`calc(var(--platform-modal-layer) + ${o*2+1})`};return c.jsx(by,{onOpenChange:s,open:n,children:c.jsxs(wy,{children:[c.jsx(_y,{className:cu.Overlay,style:i}),c.jsxs(xy,{children:[c.jsx(Sy,{}),c.jsx("div",{className:k(cu.Content,r),style:a,children:e})]})]})})});Se.displayName="Dialog",Se.Header=uu,Se.Content=du,Se.Footer=fu,Se.Actions=mu,Se.Title=pu,Se.Description=gu,Se.Close=hu;const vu={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"},U2=E("Pill",({children:e,variant:t="solid",className:n})=>{const r=k(vu.pill,vu[`pill--${t}`],n);return c.jsx("div",{className:r,children:e})}),yu={DialogContent:"DialogContent__-WjG9",Message:"Message__AUgVP"},Ty=E("ConfirmDialog",({loading:e,title:t,children:n,className:r,onClose:o,onConfirm:s,zIndexLevel:i=1,...a})=>c.jsxs(Se,{...a,zIndexLevel:i,className:k(yu.DialogContent,r),children:[c.jsxs(Se.Header,{children:[c.jsx(Se.Title,{children:t}),c.jsx(Se.Close,{onClick:o})]}),c.jsx(Se.Content,{children:typeof n=="string"?c.jsx("p",{className:yu.Message,children:n}):n}),c.jsx(Se.Footer,{children:c.jsxs(Se.Actions,{children:[c.jsx(cs,{onClick:o,disabled:e,variant:"outlined",children:"Cancel"}),c.jsx(cs,{onClick:s,disabled:e,loading:e,variant:"contained",children:"Confirm"})]})})]}));Ty.displayName="ConfirmDialog";const Co={container:"container__AjtYJ",title:"title__A2vCu",description:"description__bP6Ig",mailToText:"mailToText__SdlsE"},bu=()=>c.jsxs("svg",{width:"200",height:"200",viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.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)"}),c.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)"}),c.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)"}),c.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)"}),c.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)"}),c.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)"}),c.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)"}),c.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)"}),c.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)"}),c.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)"}),c.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)"}),c.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)"}),c.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)"})]});bu.displayName="WarningIcon";const Ry="support@bluealba.com",Py="@bluealba/pae-shell-ui",wu=E("ErrorState",()=>{const{supportEmail:e=Ry}=Od(Py),t=`mailto:${e}?Subject=Support`;return c.jsxs("div",{className:Co.container,children:[c.jsx(bu,{}),c.jsx("div",{className:Co.title,children:"Oops! Something went wrong"}),c.jsxs("div",{className:Co.description,children:["If the error persists, ",c.jsx("a",{className:Co.mailToText,href:t,children:"contact the administrator."})]})]})});wu.displayName="ErrorState";const Ke={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"},_u=q(({children:e,className:t,selected:n,disabled:r=!1,...o},s)=>{const i=k(Ke.Item,{[Ke["Item--selected"]]:n,[Ke["Item--disabled"]]:r},t);return c.jsx("li",{ref:s,className:i,role:"listitem","aria-disabled":r,...o,children:e})});_u.displayName="Item";const xu=q(({children:e,className:t,...n},r)=>{const o=k(Ke.Title,t);return c.jsx("h3",{ref:r,className:o,...n,children:e})});xu.displayName="Title";const Cu=q(({children:e,className:t,...n},r)=>{const o=k(Ke.Description,t);return c.jsx("p",{ref:r,className:o,...n,children:e})});Cu.displayName="Description";const ei=({className:e,...t})=>c.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:[c.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"}),c.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"}),c.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"})]});ei.displayName="HorizontalDots";const Su=q(({children:e,className:t,onClick:n,...r},o)=>{const s=We(null),[i,a]=W(!1),l=k(Ke.Actions,t),u=()=>{const x=On["DropdownList--open"],p=On["DropdownList--closed"];document.querySelectorAll(`.${x}`).forEach(y=>{y!==s.current&&(y.classList.remove(x),y.classList.add(p))})},f=x=>{x.stopPropagation(),i?h():(a(!0),n==null||n(x))},h=()=>{a(!1)},m=x=>{x.key==="Escape"&&h()},g=x=>{s.current&&!s.current.contains(x.target)&&h()};return X(()=>(i?(u(),document.addEventListener("keydown",m),document.addEventListener("click",g)):(document.removeEventListener("keydown",m),document.removeEventListener("click",g)),()=>{document.removeEventListener("keydown",m),document.removeEventListener("click",g)}),[i]),c.jsxs("div",{ref:o,className:l,onClick:f,role:"button",tabIndex:0,"data-testid":"actions",...r,children:[c.jsx(ei,{}),c.jsx(Ks,{align:"left",ref:s,open:i,"data-testid":"actions-dropdown",role:"menu","aria-label":"Actions",children:e})]})});Su.displayName="Actions";const Eu=q(({children:e,className:t,...n},r)=>{const o=k(Ke.Action,t);return c.jsx("button",{ref:r,className:o,...n,children:e})});Eu.displayName="Action";const Tu=q(({children:e,className:t,...n},r)=>{const o=k(Ke.Icon,t);return c.jsx("div",{ref:r,className:o,...n,children:e})});Tu.displayName="Icon";const gt=E("List",q(({children:e,className:t,size:n="medium",variant:r,...o},s)=>{const i=k(Ke.List,{[Ke[`List--${n}`]]:n,[Ke[`List--${r}`]]:r},t);return c.jsx("ul",{ref:s,className:i,role:"list",...o,children:e})}));gt.displayName="List",gt.Item=_u,gt.Badges=Ha,gt.Badge=Wa,gt.Title=xu,gt.Description=Cu,gt.Actions=Su,gt.Action=Eu,gt.Icon=Tu;const vt={Navigation:"Navigation__uylxk",PaginationContent:"PaginationContent__UpLw0",PaginationEllipsis:"PaginationEllipsis__perWk",PaginationLink:"PaginationLink__GVUZj",Active:"Active__u1Ahy",Disabled:"Disabled__8WM0y",Prev:"Prev__wp4hc",Next:"Next__eVyL5"},Ru=({className:e,...t})=>c.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:[c.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.jsx("path",{d:"M9 6l6 6l-6 6"})]});Ru.displayName="ChevronRight";const Pu=({className:e,...t})=>c.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:[c.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.jsx("path",{d:"M15 6l-6 6l6 6"})]});Pu.displayName="ChevronLeft";const Au=E("Pagination",({className:e,...t})=>c.jsx("nav",{role:"navigation","aria-label":"pagination",className:k(vt.Navigation,e),...t}));Au.displayName="Pagination";const Ou=E("PaginationContent",d.forwardRef(({className:e,...t},n)=>c.jsx("ul",{ref:n,className:k(vt.PaginationContent,e),...t})));Ou.displayName="PaginationContent";const So=E("PaginationItem",d.forwardRef(({className:e,...t},n)=>c.jsx("li",{ref:n,className:e,...t})));So.displayName="PaginationItem";const Eo=E("PaginationLink",({className:e,isActive:t,...n})=>c.jsx("a",{"aria-current":t?"page":void 0,className:k(vt.PaginationLink,t&&vt.Active,e),...n}));Eo.displayName="PaginationLink";const Iu=E("PaginationPrevious",({className:e,disabled:t,...n})=>c.jsxs(Eo,{"aria-label":"Go to previous page",className:k(t&&vt.Disabled,vt.Prev,e),...n,children:[c.jsx(Pu,{}),c.jsx("span",{children:"Previous"})]}));Iu.displayName="PaginationPrevious";const ju=E("PaginationNext",({className:e,disabled:t,...n})=>c.jsxs(Eo,{"aria-label":"Go to next page",className:k(t&&vt.Disabled,vt.Next,e),...n,children:[c.jsx("span",{children:"Next"}),c.jsx(Ru,{})]}));ju.displayName="PaginationNext";const ku=E("PaginationEllipsis",({className:e,...t})=>c.jsx("span",{"aria-hidden":!0,className:k(vt.PaginationEllipsis,e),...t,children:c.jsx(ei,{})}));ku.displayName="PaginationEllipsis";function Ay(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 Lu={exports:{}};(function(e,t){(function(n,r){typeof Ay=="function"?e.exports=r():n.pluralize=r()})(Sd,function(){var n=[],r=[],o={},s={},i={};function a(p){return typeof p=="string"?new RegExp("^"+p+"$","i"):p}function l(p,v){return p===v?v:p===p.toLowerCase()?v.toLowerCase():p===p.toUpperCase()?v.toUpperCase():p[0]===p[0].toUpperCase()?v.charAt(0).toUpperCase()+v.substr(1).toLowerCase():v.toLowerCase()}function u(p,v){return p.replace(/\$(\d{1,2})/g,function(y,w){return v[w]||""})}function f(p,v){return p.replace(v[0],function(y,w){var C=u(v[1],arguments);return l(y===""?p[w-1]:y,C)})}function h(p,v,y){if(!p.length||o.hasOwnProperty(p))return v;for(var w=y.length;w--;){var C=y[w];if(C[0].test(v))return f(v,C)}return v}function m(p,v,y){return function(w){var C=w.toLowerCase();return v.hasOwnProperty(C)?l(w,C):p.hasOwnProperty(C)?l(w,p[C]):h(C,w,y)}}function g(p,v,y,w){return function(C){var S=C.toLowerCase();return v.hasOwnProperty(S)?!0:p.hasOwnProperty(S)?!1:h(S,S,y)===S}}function x(p,v,y){var w=v===1?x.singular(p):x.plural(p);return(y?v+" ":"")+w}return x.plural=m(i,s,n),x.isPlural=g(i,s,n),x.singular=m(s,i,r),x.isSingular=g(s,i,r),x.addPluralRule=function(p,v){n.push([a(p),v])},x.addSingularRule=function(p,v){r.push([a(p),v])},x.addUncountableRule=function(p){if(typeof p=="string"){o[p.toLowerCase()]=!0;return}x.addPluralRule(p,"$0"),x.addSingularRule(p,"$0")},x.addIrregularRule=function(p,v){v=v.toLowerCase(),p=p.toLowerCase(),i[p]=v,s[v]=p},[["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(p){return x.addIrregularRule(p[0],p[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(p){return x.addPluralRule(p[0],p[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(p){return x.addSingularRule(p[0],p[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(x.addUncountableRule),x})})(Lu);var Oy=Lu.exports;const Iy=Ed(Oy),Du=E("PluralizeCounter",({count:e,singularText:t,children:n=(r,o)=>`${r} ${o}`})=>c.jsx(c.Fragment,{children:n(e,Iy(t,e))}));Du.displayName="PluralizeCounter";const Ae={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"},Nu={EmptyStateContainer:"EmptyStateContainer__Q9FEb",Message:"Message__IHK6M"},Mu=({size:e=64})=>c.jsxs("svg",{width:e,height:e,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsxs("g",{clipPath:"url(#clip-path)",children:[c.jsx("mask",{id:"mask0_1070_8032",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"64",height:"64",children:c.jsx("path",{d:"M64 0H0V64H64V0Z",fill:"white"})}),c.jsx("g",{mask:"url(#mask0_1070_8032)",children:c.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"})})]}),c.jsx("defs",{children:c.jsx("clipPath",{id:"clip-path",children:c.jsx("rect",{width:"64",height:"64",fill:"white"})})})]});Mu.displayName="EmptyStateIcon";const $u=E("EmptyState",({message:e="No results found"})=>c.jsxs("div",{className:k(Nu.EmptyStateContainer),children:[c.jsx(Mu,{}),c.jsx("p",{className:Nu.Message,children:e})]}));$u.displayName="EmptyState";const jy=(e,t,n=1)=>{if(e<=1)return["1"];const r=[],o=s=>{(r.length===0||r[r.length-1]!==s)&&r.push(s)};o(1),t-n>2&&o("...");for(let s=Math.max(2,t-n);s<=Math.min(e-1,t+n);s++)o(s);return t+n<e-1&&o("..."),o(e),r.map(String)},Fu=({page:e,totalPages:t,onPageChange:n})=>{const r=e===1,o=e===t;return c.jsx(Au,{className:Ae.Pagination,children:c.jsxs(Ou,{children:[c.jsx(So,{children:c.jsx(Iu,{className:k({[Ae.PointerNone]:r}),onClick:()=>!r&&n(e-1)})}),jy(t,e).map((s,i)=>c.jsxs(So,{children:[s==="..."&&c.jsx(ku,{}),s!=="..."&&c.jsx(Eo,{isActive:+s===e,onClick:()=>+s!==e&&n(+s),children:s})]},i)),c.jsx(So,{children:c.jsx(ju,{className:k({[Ae.PointerNone]:o}),onClick:()=>!o&&n(e+1)})})]})})};Fu.displayName="TablePagination";const Bu=({className:e,...t})=>c.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:c.jsx("path",{d:"M6 2.5V9.5M6 9.5L9.5 6M6 9.5L2.5 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});Bu.displayName="ArrowDown";const ky=E("Table",({columns:e,data:t,isLoading:n,totalCount:r=0,headerLabel:o,sort:s,loadingConfig:i,pagination:a,onRowClick:l})=>{const{count:u=5,height:f=40}=i||{},h=y=>y.sortName??y.name,m=({width:y,maxWidth:w})=>!y&&!w?{}:{...y?{width:y,minWidth:y}:{},...w?{maxWidth:w}:{},overflow:"hidden"},g=y=>k({[Ae.Cell]:!0,[Ae.Center]:y.align==="center",[Ae.Right]:y.align==="right",[Ae.Sortable]:y.isSortable}),x=y=>{if(!s)return"";const w=h(y);return k({[Ae.SortIcon]:!0,[Ae.Active]:y.isSortable&&s.field===w,[Ae.Rotate]:s.field===w&&s.direction==="asc"})},p=y=>()=>l==null?void 0:l(y),v=y=>()=>{if(!s||!y.isSortable)return;const{field:w,direction:C,onSort:S}=s,T=h(y);w===T?S(T,C==="asc"?"desc":"asc"):S(T,"asc")};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:Ae.TableContainer,children:[o&&c.jsx("div",{className:Ae.TableHeader,children:c.jsx(Du,{count:r,singularText:o,children:(y,w)=>`${y} ${w}`})}),c.jsx("div",{className:Ae.Table,children:c.jsxs("table",{children:[c.jsx("thead",{children:c.jsx("tr",{children:e.map(y=>c.jsx("th",{children:c.jsxs("div",{className:g(y),onClick:v(y),children:[c.jsx("span",{children:y.displayName}),y.isSortable&&c.jsx(Bu,{className:x(y)})]})},y.name))})}),c.jsx("tbody",{children:c.jsxs(on,{children:[c.jsx(on.When,{condition:n,children:[...Array(u).keys()].map(y=>c.jsx("tr",{children:c.jsx("td",{colSpan:e.length,style:{padding:4},children:c.jsx(Qs,{height:f})})},y))}),c.jsx(on.When,{condition:!t.length,children:c.jsx("tr",{children:c.jsx("td",{colSpan:e.length,children:c.jsx($u,{})})})}),c.jsx(on.Else,{children:t.map((y,w)=>c.jsx("tr",{className:l&&Ae.selectable,onClick:p(y),children:e.map(C=>c.jsx("td",{style:m(C),children:c.jsx("div",{className:g(C),children:C.cellRenderer?C.cellRenderer(y):C.valueGetter?C.valueGetter(y):y[C.name]})},`${C.name}-${w}`))},w))})]})})]})})]}),a&&c.jsx(Fu,{...a})]})});ky.displayName="Table";const To={alert:"alert__LblpE",default:"default__mgO6A",destructive:"destructive__bLNSM",alertTitle:"alertTitle__gblKf",alertDescription:"alertDescription__BuVHV"},ti=E("Alert",({className:e,variant:t="default",children:n,...r})=>c.jsx("div",{"data-slot":"alert",role:"alert",className:k(To.alert,To[t],e),...r,children:n})),Ly=d.forwardRef(({children:e,className:t,...n},r)=>c.jsx("div",{ref:r,"data-slot":"alert-title",className:k(To.alertTitle,t),...n,children:e})),Dy=d.forwardRef(({children:e,className:t,...n},r)=>c.jsx("div",{ref:r,"data-slot":"alert-description",className:k(To.alertDescription,t),...n,children:e}));ti.displayName="Alert",ti.Title=Ly,ti.Description=Dy;const Ny=E("ThemeToggle",({isNavbarExpanded:e})=>{const{theme:t,setTheme:n}=bh(),r=()=>n(t==="dark"?"light":"dark"),o=c.jsxs("div",{className:k(ls.container,e&&ls.expanded),onClick:r,children:[t==="light"?c.jsx(Ma,{}):c.jsx($a,{}),e&&c.jsx("p",{className:ls.label,children:t==="light"?"Dark Mode":"Light Mode"})]});return e?o:c.jsx(sr,{displayName:t==="light"?"Switch to dark mode":"Switch to light mode",sideOffset:-16,children:o})});Ny.displayName="ToggleTheme";const My=E("FragmentSlot",({moduleName:e,className:t,style:n,LoadingComponent:r,ErrorComponent:o,IdleComponent:s})=>{var p;const i=Kn(),{statusName:a,isLoading:l,isMounted:u,isBroken:f}=as(e),h=ke(()=>i.find(v=>v.name===e),[i,e]),m=(h==null?void 0:h.type)==="fragment"?(p=h.ui)==null?void 0:p.mountAtSelector:void 0,g=m!=null&&m.startsWith("#")?m.slice(1):null;if(X(()=>{h?h.type!=="fragment"?console.warn(`[FragmentSlot] Module "${e}" has type "${h.type}" but expected "fragment". Only modules of type "fragment" can be rendered with the <FragmentSlot> component.`):m?m.startsWith("#")||console.warn(`[FragmentSlot] Module "${e}" has "ui.mountAtSelector" = "${m}" which is not an id selector. Only "#id" selectors are supported — the value must start with "#".`):console.warn(`[FragmentSlot] Module "${e}" does not have a "ui.mountAtSelector" configured. A fragment module must declare the DOM selector where it will be mounted.`):console.warn(`[FragmentSlot] Module "${e}" was not found in the platform catalog.`)},[h,e,m]),!h||h.type!=="fragment"||!g)return null;const x=!l&&!u&&!f;return c.jsxs(c.Fragment,{children:[c.jsx("div",{id:g,className:t,style:n}),l&&r&&c.jsx(r,{moduleName:e}),f&&o&&c.jsx(o,{moduleName:e}),x&&s&&c.jsx(s,{moduleName:e,status:a})]})});My.displayName="FragmentSlot";const W3=E("authorized",(e,t)=>{const n=r=>c.jsx(Na,{operations:t,children:c.jsx(e,{...r})});return n.displayName="Authorized",n});function Uu(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 Ro(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Uu(Object(n),!0).forEach(function(r){$y(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uu(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wu(e){return(Wu=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 $y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ni(e){return(ni=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 Hu(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 s="single-spa-application:".concat(o);return function(){var i=document.getElementById(s);return i||((i=document.createElement("div")).id=s,document.body.appendChild(i)),i}}(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(ni(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(ni(r)));return r}}var lr=null;try{lr=require("react").createContext()}catch{}var Fy={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 By(e){if(Wu(e)!=="object")throw new Error("single-spa-react requires a configuration object");var t,n=Ro(Ro({},Fy),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");!lr&&n.React.createContext&&(lr=n.React.createContext()),n.SingleSpaRoot=function(o){function s(i){s.displayName="SingleSpaRoot(".concat(i.name,")")}return s.prototype=Object.create(o.React.Component.prototype),s.prototype.componentDidMount=function(){setTimeout(this.props.mountFinished)},s.prototype.componentWillUnmount=function(){setTimeout(this.props.unmountFinished)},s.prototype.render=function(){return setTimeout(this.props.updateFinished),this.props.children},s}(n);var r={bootstrap:Uy.bind(null,n),mount:Wy.bind(null,n),unmount:Hy.bind(null,n)};return n.parcelCanUpdate&&(r.update=Vy.bind(null,n)),r}function Uy(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then(function(n){e.rootComponent=n})}function Wy(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 l=a.version.slice(0,a.version.indexOf("."));try{return Number(l)>=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=Vu(e,t,function(){n(this)}),s=Hu(e,t)(),i=function(a){var l=a.reactDom,u=a.renderType,f=a.elementToRender,h=a.domElement,m=l[u];if(typeof m!="function")throw new Error('renderType "'.concat(u,'" did not return a function.'));switch(u){case"createRoot":case"unstable_createRoot":case"createBlockingRoot":case"unstable_createBlockingRoot":var g=m(h);return g.render(f),g;case"hydrateRoot":return m(h,f);case"hydrate":default:return m(f,h),null}}({elementToRender:o,domElement:s,reactDom:ri(e),renderType:zy(e)});e.domElements[t.name]=s,e.renderResults[t.name]=i})}function Hy(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 Vy(e,t){return new Promise(function(n){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(n);var r=Vu(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(r);else{var s=Hu(e,t)();ri(e).render(r,s)}})}function ri(e){return e.ReactDOMClient||e.ReactDOM}function zy(e){return typeof e.renderType=="function"?e.renderType():e.renderType}function Vu(e,t,n){var r=e.React.createElement(e.rootComponent,t),o=lr?e.React.createElement(lr.Provider,{value:t},r):r;return(e.errorBoundary||t.errorBoundary||e.errorBoundaryClass||t.errorBoundaryClass)&&(e.errorBoundaryClass=e.errorBoundaryClass||t.errorBoundaryClass||function(s,i){function a(l){s.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},a.displayName="SingleSpaReactErrorBoundary(".concat(l.name,")")}return a.prototype=Object.create(s.React.Component.prototype),a.prototype.render=function(){return this.state.caughtError?(s.errorBoundary||i.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},a.prototype.componentDidCatch=function(l,u){this.setState({caughtError:l,caughtErrorInfo:u})},a}(e,t),o=e.React.createElement(e.errorBoundaryClass,t,o)),o=e.React.createElement(e.SingleSpaRoot,Ro(Ro({},t),{},{mountFinished:n,updateFinished:function(){e.updateResolves[t.name]&&(e.updateResolves[t.name].forEach(function(s){return s()}),delete e.updateResolves[t.name])},unmountFinished:function(){e.unmountResolves[t.name]&&(e.unmountResolves[t.name](),delete e.unmountResolves[t.name])}}),o)}const Gy=e=>{const t=new jp;return function(r){if(!r)throw new Error("Microfrontend did not receive any properties !!");const o=ji(r.module.name);return c.jsx(Ai,{module:o,children:c.jsxs(Mp,{client:t,children:[c.jsx(e,{...r}),c.jsx(gp,{position:"top-right",reverseOrder:!0})]})})}},H3=E("initializeMicroFrontend",({rootComponent:e,...t})=>By({errorBoundary(n){return console.error(n),c.jsx(wu,{})},...t,rootComponent:Gy(e)})),V3=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",featureFlags:{}};Object.defineProperty(window,qn,{value:e?qd(t,e):t})}),zu=E("useFeatureFlags",()=>{const[e]=yr();return e.featureFlags}),z3=E("useFeatureFlag",e=>zu()[e]),qy=E("FeatureFlagGuard",({flag:e,children:t,fallback:n=null,invert:r=!1})=>{const s=zu()[e]===!0;return(r?!s:s)?c.jsx(c.Fragment,{children:t}):c.jsx(c.Fragment,{children:n})});qy.displayName="FeatureFlagGuard";const Gu=mr(null);function qu(e){const t=["#FF6B6B","#4ECDC4","#45B7D1","#FFA07A","#98D8C8","#F7DC6F","#BB8FCE","#85C1E2","#F8B739","#52B788","#E74C3C","#3498DB","#9B59B6","#1ABC9C","#F39C12","#E67E22","#95A5A6","#34495E","#16A085","#27AE60"];let n=0;for(let o=0;o<e.length;o++)n=e.charCodeAt(o)+((n<<5)-n),n=n&n;const r=Math.abs(n)%t.length;return t[r]}const oi={JOIN_ROOM:"join_room",LEAVE_ROOM:"leave_room",USER_LIST:"user_list"},Ku=[1e3,2e3,4e3,8e3,16e3],Ky=Ku.length,G3=E("RoomsProvider",({children:e})=>{const t=ef("@bluealba/pae-rooms-service"),[n,r]=W([]),[o,s]=W("loading"),i=We(null),a=We(!1),l=We(0),u=We(null),f=We(!0),h=We(()=>{}),m=fe(R=>new Promise((P,L)=>{const j=new WebSocket(R);let D=!1;j.onopen=()=>{D=!0,l.current=0,f.current&&s("connected"),P(j)},j.addEventListener("message",async B=>{try{const U=await p(B);U.event===oi.USER_LIST&&C(U.data)}catch(U){console.error("Error parsing WebSocket message:",U)}}),j.onerror=B=>{console.error("Rooms WebSocket error",B)},j.onclose=()=>{if(i.current!==j){D||L(new Error("WebSocket connection replaced"));return}a.current?f.current&&s("closed"):h.current(),D||L(new Error("WebSocket connection failed"))},i.current=j}),[]),g=fe(()=>{if(!t||!f.current)return;if(l.current>=Ky){s("error");return}const R=Ku[l.current];l.current++,s("reconnecting"),u.current=setTimeout(()=>{f.current&&t&&m(t).catch(()=>{})},R)},[t,m]);h.current=g;const x=fe(()=>{if(!t)return;u.current&&(clearTimeout(u.current),u.current=null);const R=i.current;R&&R.readyState!==WebSocket.CLOSED&&(a.current=!0,R.close()),l.current=0,a.current=!1,s("loading"),m(t)},[t,m]);X(()=>{if(f.current=!0,a.current=!1,t)return m(t),()=>{var R;f.current=!1,u.current&&(clearTimeout(u.current),u.current=null),a.current=!0,(R=i.current)==null||R.close()}},[t,m]),X(()=>{const R=()=>{if(document.visibilityState!=="visible")return;const P=i.current;P&&P.readyState===WebSocket.OPEN||(u.current&&(clearTimeout(u.current),u.current=null),l.current=0,x())};return document.addEventListener("visibilitychange",R),()=>{document.removeEventListener("visibilitychange",R)}},[x]);const p=async R=>{if(R.data instanceof Blob){const P=await R.data.text();return JSON.parse(P)}else return JSON.parse(R.data)},v=(R,P)=>{const L=i.current;!L||L.readyState!==WebSocket.OPEN||setTimeout(()=>{L.send(JSON.stringify({event:R,data:P}))},100)},y=R=>{v(oi.JOIN_ROOM,{roomId:R})},w=R=>{v(oi.LEAVE_ROOM,{roomId:R})},C=R=>{r(R.map(P=>({...P,username:P.username.toLowerCase(),color:qu(P.username)})))},S=fe(R=>n.filter(P=>P.rooms.includes(R)),[n]),T={status:o,getRoomUsers:S,joinRoom:y,leaveRoom:w,reconnect:x};return c.jsx(Gu.Provider,{value:T,children:e})}),Qy=E("DEFAULT_OPTIONS",{autoJoin:!0,autoLeave:!0});function Yy(e,t=Qy){const{autoJoin:n,autoLeave:r}=t,o=gr(Gu),{authUser:s}=wr();if(!o)throw new Error("useRoom must be used within RoomsProvider");const i=We(!1),a=()=>{if(n){console.warn("[useRoom] Ignoring manual joinRoom call because autoJoin is enabled.",{roomId:e});return}return i.current=!0,o.joinRoom(e)},l=()=>{if(r){console.warn("[useRoom] Ignoring manual leaveRoom call because autoLeave is enabled.",{roomId:e});return}return i.current=!1,o.leaveRoom(e)};X(()=>{if(!(!e||o.status!=="connected"))return(n||i.current)&&o.joinRoom(e),()=>{r&&o.status==="connected"&&o.leaveRoom(e)}},[o.status,e]);const u=o.getRoomUsers(e),f=u.findIndex(h=>h.username===(s==null?void 0:s.username))!==-1;return{users:u,roomId:e,hasJoined:f,joinRoom:a,leaveRoom:l,reconnect:o.reconnect}}const cr={container:"container__LbyGQ",avatarWrapper:"avatarWrapper__HCQIZ",avatar:"avatar__E453a",overflowWrapper:"overflowWrapper__ETnPO",overflowBadge:"overflowBadge__igBKT"},Zy={sm:24,md:32,lg:40},X3=E("RoomAvatars",({users:e,maxVisible:t=5,size:n="md",overlap:r=!0,className:o="",onUserClick:s})=>{const i=Zy[n],a=ke(()=>e.slice(0,t),[e,t]),l=ke(()=>e.slice(t),[e,t]),u=Math.max(0,e.length-t),f=h=>h.split(" ").map(m=>m[0]).join("").toUpperCase().slice(0,2);return c.jsxs("div",{className:k(cr.container,o),children:[a.map((h,m)=>c.jsx(sr,{tooltipContent:h.displayName,side:"bottom",children:c.jsx("div",{className:cr.avatarWrapper,style:{marginLeft:m>0&&r?`-${i*.25}px`:void 0},onClick:()=>s==null?void 0:s(h),children:c.jsx("div",{className:cr.avatar,style:{width:i,height:i,backgroundColor:h.color,fontSize:n==="sm"?"10px":n==="md"?"12px":"14px",cursor:s?"pointer":"default"},children:f(h.displayName)})})},h.username)),u>0&&c.jsx(sr,{side:"bottom",tooltipContent:c.jsx("div",{children:l.map(h=>c.jsx("p",{children:h.displayName},h.username))}),children:c.jsx("div",{className:cr.overflowWrapper,style:{marginLeft:r?`-${i*.25}px`:void 0},children:c.jsxs("div",{className:cr.overflowBadge,style:{width:i,height:i,fontSize:n==="sm"?"10px":n==="md"?"12px":"14px"},children:["+",u]})})})]})})}}});
255
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return d.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},jy="DialogDescriptionWarning",Iy=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${mu(jy).contentName}}.`;return d.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Dy=nu,Ly=su,Ny=iu,My=au,$y=lu,ky=du,Fy=hu;const gu={Overlay:"Overlay__M5Z83",Content:"Content__wAkP4"},an={Header:"Header__VHxNf",Content:"Content__I04qM",Close:"Close__xSN-7",Title:"Title__Dznh6",Description:"Description__ALT2w",Footer:"Footer__-8gzQ",Actions:"Actions__kKF2Q"},vu=G(({children:e,className:t,...n},r)=>{const o=D(an.Header,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});vu.displayName="Header";const yu=G(({children:e,className:t,...n},r)=>{const o=D(an.Content,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});yu.displayName="Content";const bu=G(({children:e,className:t,...n},r)=>{const o=D(an.Footer,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});bu.displayName="Footer";const wu=G(({children:e,className:t,...n},r)=>{const o=D(an.Title,t);return u.jsx($y,{ref:r,className:o,...n,children:e})});wu.displayName="Title";const Cu=G(({className:e,...t},n)=>{const r=D(an.Close,e);return u.jsx(Fy,{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"})})})});Cu.displayName="Close";const Su=G(({children:e,className:t,...n},r)=>{const o=D(an.Actions,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});Su.displayName="Actions";const xu=G(({children:e,className:t,...n},r)=>{const o=D(an.Description,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});xu.displayName="Description";const Ee=_("Dialog",({children:e,onClose:t,open:n=!1,className:r,zIndexLevel:o=0})=>{const s=()=>{t==null||t()},i={zIndex:`calc(var(--platform-modal-layer) + ${o*2})`},a={zIndex:`calc(var(--platform-modal-layer) + ${o*2+1})`},c=ql();return u.jsx(Dy,{onOpenChange:s,open:n,children:u.jsxs(Ly,{container:c,children:[u.jsx(Ny,{className:gu.Overlay,style:i}),u.jsxs(My,{children:[u.jsx(ky,{}),u.jsx("div",{className:D(gu.Content,r),style:a,children:e})]})]})})});Ee.displayName="Dialog",Ee.Header=vu,Ee.Content=yu,Ee.Footer=bu,Ee.Actions=Su,Ee.Title=wu,Ee.Description=xu,Ee.Close=Cu;const Eu={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"},nb=_("Pill",({children:e,variant:t="solid",className:n})=>{const r=D(Eu.pill,Eu[`pill--${t}`],n);return u.jsx("div",{className:r,children:e})}),_u={DialogContent:"DialogContent__-WjG9",Message:"Message__AUgVP"},By=_("ConfirmDialog",({loading:e,title:t,children:n,className:r,onClose:o,onConfirm:s,zIndexLevel:i=1,...a})=>u.jsxs(Ee,{...a,zIndexLevel:i,className:D(_u.DialogContent,r),children:[u.jsxs(Ee.Header,{children:[u.jsx(Ee.Title,{children:t}),u.jsx(Ee.Close,{onClick:o})]}),u.jsx(Ee.Content,{children:typeof n=="string"?u.jsx("p",{className:_u.Message,children:n}):n}),u.jsx(Ee.Footer,{children:u.jsxs(Ee.Actions,{children:[u.jsx(hs,{onClick:o,disabled:e,variant:"outlined",children:"Cancel"}),u.jsx(hs,{onClick:s,disabled:e,loading:e,variant:"contained",children:"Confirm"})]})})]}));By.displayName="ConfirmDialog";const To={container:"container__AjtYJ",title:"title__A2vCu",description:"description__bP6Ig",mailToText:"mailToText__SdlsE"},Tu=()=>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)"})]});Tu.displayName="WarningIcon";const Uy="support@bluealba.com",Wy="@bluealba/pae-shell-ui",Ru=_("ErrorState",()=>{const{supportEmail:e=Uy}=Ud(Wy),t=`mailto:${e}?Subject=Support`;return u.jsxs("div",{className:To.container,children:[u.jsx(Tu,{}),u.jsx("div",{className:To.title,children:"Oops! Something went wrong"}),u.jsxs("div",{className:To.description,children:["If the error persists, ",u.jsx("a",{className:To.mailToText,href:t,children:"contact the administrator."})]})]})});Ru.displayName="ErrorState";const Ke={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"},Pu=G(({children:e,className:t,selected:n,disabled:r=!1,...o},s)=>{const i=D(Ke.Item,{[Ke["Item--selected"]]:n,[Ke["Item--disabled"]]:r},t);return u.jsx("li",{ref:s,className:i,role:"listitem","aria-disabled":r,...o,children:e})});Pu.displayName="Item";const Au=G(({children:e,className:t,...n},r)=>{const o=D(Ke.Title,t);return u.jsx("h3",{ref:r,className:o,...n,children:e})});Au.displayName="Title";const Ou=G(({children:e,className:t,...n},r)=>{const o=D(Ke.Description,t);return u.jsx("p",{ref:r,className:o,...n,children:e})});Ou.displayName="Description";const oi=({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"})]});oi.displayName="HorizontalDots";const ju=G(({children:e,className:t,onClick:n,...r},o)=>{const s=We(null),[i,a]=W(!1),c=D(Ke.Actions,t),l=()=>{const S=On["DropdownList--open"],p=On["DropdownList--closed"];document.querySelectorAll(`.${S}`).forEach(y=>{y!==s.current&&(y.classList.remove(S),y.classList.add(p))})},f=S=>{S.stopPropagation(),i?h():(a(!0),n==null||n(S))},h=()=>{a(!1)},m=S=>{S.key==="Escape"&&h()},g=S=>{s.current&&!s.current.contains(S.target)&&h()};return X(()=>(i?(l(),document.addEventListener("keydown",m),document.addEventListener("click",g)):(document.removeEventListener("keydown",m),document.removeEventListener("click",g)),()=>{document.removeEventListener("keydown",m),document.removeEventListener("click",g)}),[i]),u.jsxs("div",{ref:o,className:c,onClick:f,role:"button",tabIndex:0,"data-testid":"actions",...r,children:[u.jsx(oi,{}),u.jsx(Xs,{align:"left",ref:s,open:i,"data-testid":"actions-dropdown",role:"menu","aria-label":"Actions",children:e})]})});ju.displayName="Actions";const Iu=G(({children:e,className:t,...n},r)=>{const o=D(Ke.Action,t);return u.jsx("button",{ref:r,className:o,...n,children:e})});Iu.displayName="Action";const Du=G(({children:e,className:t,...n},r)=>{const o=D(Ke.Icon,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});Du.displayName="Icon";const gt=_("List",G(({children:e,className:t,size:n="medium",variant:r,...o},s)=>{const i=D(Ke.List,{[Ke[`List--${n}`]]:n,[Ke[`List--${r}`]]:r},t);return u.jsx("ul",{ref:s,className:i,role:"list",...o,children:e})}));gt.displayName="List",gt.Item=Pu,gt.Badges=Ka,gt.Badge=Ga,gt.Title=Au,gt.Description=Ou,gt.Actions=ju,gt.Action=Iu,gt.Icon=Du;const vt={Navigation:"Navigation__uylxk",PaginationContent:"PaginationContent__UpLw0",PaginationEllipsis:"PaginationEllipsis__perWk",PaginationLink:"PaginationLink__GVUZj",Active:"Active__u1Ahy",Disabled:"Disabled__8WM0y",Prev:"Prev__wp4hc",Next:"Next__eVyL5"},Lu=({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"})]});Lu.displayName="ChevronRight";const Nu=({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"})]});Nu.displayName="ChevronLeft";const Mu=_("Pagination",({className:e,...t})=>u.jsx("nav",{role:"navigation","aria-label":"pagination",className:D(vt.Navigation,e),...t}));Mu.displayName="Pagination";const $u=_("PaginationContent",d.forwardRef(({className:e,...t},n)=>u.jsx("ul",{ref:n,className:D(vt.PaginationContent,e),...t})));$u.displayName="PaginationContent";const Ro=_("PaginationItem",d.forwardRef(({className:e,...t},n)=>u.jsx("li",{ref:n,className:e,...t})));Ro.displayName="PaginationItem";const Po=_("PaginationLink",({className:e,isActive:t,...n})=>u.jsx("a",{"aria-current":t?"page":void 0,className:D(vt.PaginationLink,t&&vt.Active,e),...n}));Po.displayName="PaginationLink";const ku=_("PaginationPrevious",({className:e,disabled:t,...n})=>u.jsxs(Po,{"aria-label":"Go to previous page",className:D(t&&vt.Disabled,vt.Prev,e),...n,children:[u.jsx(Nu,{}),u.jsx("span",{children:"Previous"})]}));ku.displayName="PaginationPrevious";const Fu=_("PaginationNext",({className:e,disabled:t,...n})=>u.jsxs(Po,{"aria-label":"Go to next page",className:D(t&&vt.Disabled,vt.Next,e),...n,children:[u.jsx("span",{children:"Next"}),u.jsx(Lu,{})]}));Fu.displayName="PaginationNext";const Bu=_("PaginationEllipsis",({className:e,...t})=>u.jsx("span",{"aria-hidden":!0,className:D(vt.PaginationEllipsis,e),...t,children:u.jsx(oi,{})}));Bu.displayName="PaginationEllipsis";function Hy(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 Uu={exports:{}};(function(e,t){(function(n,r){typeof Hy=="function"?e.exports=r():n.pluralize=r()})(Ld,function(){var n=[],r=[],o={},s={},i={};function a(p){return typeof p=="string"?new RegExp("^"+p+"$","i"):p}function c(p,v){return p===v?v:p===p.toLowerCase()?v.toLowerCase():p===p.toUpperCase()?v.toUpperCase():p[0]===p[0].toUpperCase()?v.charAt(0).toUpperCase()+v.substr(1).toLowerCase():v.toLowerCase()}function l(p,v){return p.replace(/\$(\d{1,2})/g,function(y,w){return v[w]||""})}function f(p,v){return p.replace(v[0],function(y,w){var x=l(v[1],arguments);return c(y===""?p[w-1]:y,x)})}function h(p,v,y){if(!p.length||o.hasOwnProperty(p))return v;for(var w=y.length;w--;){var x=y[w];if(x[0].test(v))return f(v,x)}return v}function m(p,v,y){return function(w){var x=w.toLowerCase();return v.hasOwnProperty(x)?c(w,x):p.hasOwnProperty(x)?c(w,p[x]):h(x,w,y)}}function g(p,v,y,w){return function(x){var E=x.toLowerCase();return v.hasOwnProperty(E)?!0:p.hasOwnProperty(E)?!1:h(E,E,y)===E}}function S(p,v,y){var w=v===1?S.singular(p):S.plural(p);return(y?v+" ":"")+w}return S.plural=m(i,s,n),S.isPlural=g(i,s,n),S.singular=m(s,i,r),S.isSingular=g(s,i,r),S.addPluralRule=function(p,v){n.push([a(p),v])},S.addSingularRule=function(p,v){r.push([a(p),v])},S.addUncountableRule=function(p){if(typeof p=="string"){o[p.toLowerCase()]=!0;return}S.addPluralRule(p,"$0"),S.addSingularRule(p,"$0")},S.addIrregularRule=function(p,v){v=v.toLowerCase(),p=p.toLowerCase(),i[p]=v,s[v]=p},[["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(p){return S.addIrregularRule(p[0],p[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(p){return S.addPluralRule(p[0],p[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(p){return S.addSingularRule(p[0],p[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(S.addUncountableRule),S})})(Uu);var Vy=Uu.exports;const zy=Nd(Vy),Wu=_("PluralizeCounter",({count:e,singularText:t,children:n=(r,o)=>`${r} ${o}`})=>u.jsx(u.Fragment,{children:n(e,zy(t,e))}));Wu.displayName="PluralizeCounter";const Ae={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"},Hu={EmptyStateContainer:"EmptyStateContainer__Q9FEb",Message:"Message__IHK6M"},Vu=({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"})})})]});Vu.displayName="EmptyStateIcon";const zu=_("EmptyState",({message:e="No results found"})=>u.jsxs("div",{className:D(Hu.EmptyStateContainer),children:[u.jsx(Vu,{}),u.jsx("p",{className:Hu.Message,children:e})]}));zu.displayName="EmptyState";const qy=(e,t,n=1)=>{if(e<=1)return["1"];const r=[],o=s=>{(r.length===0||r[r.length-1]!==s)&&r.push(s)};o(1),t-n>2&&o("...");for(let s=Math.max(2,t-n);s<=Math.min(e-1,t+n);s++)o(s);return t+n<e-1&&o("..."),o(e),r.map(String)},qu=({page:e,totalPages:t,onPageChange:n})=>{const r=e===1,o=e===t;return u.jsx(Mu,{className:Ae.Pagination,children:u.jsxs($u,{children:[u.jsx(Ro,{children:u.jsx(ku,{className:D({[Ae.PointerNone]:r}),onClick:()=>!r&&n(e-1)})}),qy(t,e).map((s,i)=>u.jsxs(Ro,{children:[s==="..."&&u.jsx(Bu,{}),s!=="..."&&u.jsx(Po,{isActive:+s===e,onClick:()=>+s!==e&&n(+s),children:s})]},i)),u.jsx(Ro,{children:u.jsx(Fu,{className:D({[Ae.PointerNone]:o}),onClick:()=>!o&&n(e+1)})})]})})};qu.displayName="TablePagination";const Gu=({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"})});Gu.displayName="ArrowDown";const Gy=_("Table",({columns:e,data:t,isLoading:n,totalCount:r=0,headerLabel:o,sort:s,loadingConfig:i,pagination:a,onRowClick:c})=>{const{count:l=5,height:f=40}=i||{},h=y=>y.sortName??y.name,m=({width:y,maxWidth:w})=>!y&&!w?{}:{...y?{width:y,minWidth:y}:{},...w?{maxWidth:w}:{},overflow:"hidden"},g=y=>D({[Ae.Cell]:!0,[Ae.Center]:y.align==="center",[Ae.Right]:y.align==="right",[Ae.Sortable]:y.isSortable}),S=y=>{if(!s)return"";const w=h(y);return D({[Ae.SortIcon]:!0,[Ae.Active]:y.isSortable&&s.field===w,[Ae.Rotate]:s.field===w&&s.direction==="asc"})},p=y=>()=>c==null?void 0:c(y),v=y=>()=>{if(!s||!y.isSortable)return;const{field:w,direction:x,onSort:E}=s,T=h(y);w===T?E(T,x==="asc"?"desc":"asc"):E(T,"asc")};return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:Ae.TableContainer,children:[o&&u.jsx("div",{className:Ae.TableHeader,children:u.jsx(Wu,{count:r,singularText:o,children:(y,w)=>`${y} ${w}`})}),u.jsx("div",{className:Ae.Table,children:u.jsxs("table",{children:[u.jsx("thead",{children:u.jsx("tr",{children:e.map(y=>u.jsx("th",{children:u.jsxs("div",{className:g(y),onClick:v(y),children:[u.jsx("span",{children:y.displayName}),y.isSortable&&u.jsx(Gu,{className:S(y)})]})},y.name))})}),u.jsx("tbody",{children:u.jsxs(on,{children:[u.jsx(on.When,{condition:n,children:[...Array(l).keys()].map(y=>u.jsx("tr",{children:u.jsx("td",{colSpan:e.length,style:{padding:4},children:u.jsx(Js,{height:f})})},y))}),u.jsx(on.When,{condition:!t.length,children:u.jsx("tr",{children:u.jsx("td",{colSpan:e.length,children:u.jsx(zu,{})})})}),u.jsx(on.Else,{children:t.map((y,w)=>u.jsx("tr",{className:c&&Ae.selectable,onClick:p(y),children:e.map(x=>u.jsx("td",{style:m(x),children:u.jsx("div",{className:g(x),children:x.cellRenderer?x.cellRenderer(y):x.valueGetter?x.valueGetter(y):y[x.name]})},`${x.name}-${w}`))},w))})]})})]})})]}),a&&u.jsx(qu,{...a})]})});Gy.displayName="Table";const Ao={alert:"alert__LblpE",default:"default__mgO6A",destructive:"destructive__bLNSM",alertTitle:"alertTitle__gblKf",alertDescription:"alertDescription__BuVHV"},si=_("Alert",({className:e,variant:t="default",children:n,...r})=>u.jsx("div",{"data-slot":"alert",role:"alert",className:D(Ao.alert,Ao[t],e),...r,children:n})),Ky=d.forwardRef(({children:e,className:t,...n},r)=>u.jsx("div",{ref:r,"data-slot":"alert-title",className:D(Ao.alertTitle,t),...n,children:e})),Qy=d.forwardRef(({children:e,className:t,...n},r)=>u.jsx("div",{ref:r,"data-slot":"alert-description",className:D(Ao.alertDescription,t),...n,children:e}));si.displayName="Alert",si.Title=Ky,si.Description=Qy;const Yy=_("ThemeToggle",({isNavbarExpanded:e})=>{const{theme:t,setTheme:n}=Ip(),r=()=>n(t==="dark"?"light":"dark"),o=u.jsxs("div",{className:D(fs.container,e&&fs.expanded),onClick:r,children:[t==="light"?u.jsx(Wa,{}):u.jsx(Ha,{}),e&&u.jsx("p",{className:fs.label,children:t==="light"?"Dark Mode":"Light Mode"})]});return e?o:u.jsx(lr,{displayName:t==="light"?"Switch to dark mode":"Switch to light mode",sideOffset:-16,children:o})});Yy.displayName="ToggleTheme";const Zy=_("FragmentSlot",({moduleName:e,className:t,style:n,LoadingComponent:r,ErrorComponent:o,IdleComponent:s})=>{var p;const i=Zn(),{statusName:a,isLoading:c,isMounted:l,isBroken:f}=ds(e),h=De(()=>i.find(v=>v.name===e),[i,e]),m=(h==null?void 0:h.type)==="fragment"?(p=h.ui)==null?void 0:p.mountAtSelector:void 0,g=m!=null&&m.startsWith("#")?m.slice(1):null;if(X(()=>{h?h.type!=="fragment"?console.warn(`[FragmentSlot] Module "${e}" has type "${h.type}" but expected "fragment". Only modules of type "fragment" can be rendered with the <FragmentSlot> component.`):m?m.startsWith("#")||console.warn(`[FragmentSlot] Module "${e}" has "ui.mountAtSelector" = "${m}" which is not an id selector. Only "#id" selectors are supported — the value must start with "#".`):console.warn(`[FragmentSlot] Module "${e}" does not have a "ui.mountAtSelector" configured. A fragment module must declare the DOM selector where it will be mounted.`):console.warn(`[FragmentSlot] Module "${e}" was not found in the platform catalog.`)},[h,e,m]),!h||h.type!=="fragment"||!g)return null;const S=!c&&!l&&!f;return u.jsxs(u.Fragment,{children:[u.jsx("div",{id:g,className:t,style:n}),c&&r&&u.jsx(r,{moduleName:e}),f&&o&&u.jsx(o,{moduleName:e}),S&&s&&u.jsx(s,{moduleName:e,status:a})]})});Zy.displayName="FragmentSlot";const rw=_("authorized",(e,t)=>{const n=r=>u.jsx(Ua,{operations:t,children:u.jsx(e,{...r})});return n.displayName="Authorized",n});function Ku(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 Oo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ku(Object(n),!0).forEach(function(r){Xy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ku(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qu(e){return(Qu=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 Xy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ii(e){return(ii=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 Yu(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 s="single-spa-application:".concat(o);return function(){var i=document.getElementById(s);return i||((i=document.createElement("div")).id=s,document.body.appendChild(i)),i}}(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(ii(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(ii(r)));return r}}var fr=null;try{fr=require("react").createContext()}catch{}var Jy={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 e0(e){if(Qu(e)!=="object")throw new Error("single-spa-react requires a configuration object");var t,n=Oo(Oo({},Jy),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");!fr&&n.React.createContext&&(fr=n.React.createContext()),n.SingleSpaRoot=function(o){function s(i){s.displayName="SingleSpaRoot(".concat(i.name,")")}return s.prototype=Object.create(o.React.Component.prototype),s.prototype.componentDidMount=function(){setTimeout(this.props.mountFinished)},s.prototype.componentWillUnmount=function(){setTimeout(this.props.unmountFinished)},s.prototype.render=function(){return setTimeout(this.props.updateFinished),this.props.children},s}(n);var r={bootstrap:t0.bind(null,n),mount:n0.bind(null,n),unmount:r0.bind(null,n)};return n.parcelCanUpdate&&(r.update=o0.bind(null,n)),r}function t0(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then(function(n){e.rootComponent=n})}function n0(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=Zu(e,t,function(){n(this)}),s=Yu(e,t)(),i=function(a){var c=a.reactDom,l=a.renderType,f=a.elementToRender,h=a.domElement,m=c[l];if(typeof m!="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 g=m(h);return g.render(f),g;case"hydrateRoot":return m(h,f);case"hydrate":default:return m(f,h),null}}({elementToRender:o,domElement:s,reactDom:ai(e),renderType:s0(e)});e.domElements[t.name]=s,e.renderResults[t.name]=i})}function r0(e,t){return new Promise(function(n){e.unmountResolves[t.name]=n;var r=e.renderResults[t.name];r&&r.unmount?r.unmount():ai(e).unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]})}function o0(e,t){return new Promise(function(n){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(n);var r=Zu(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(r);else{var s=Yu(e,t)();ai(e).render(r,s)}})}function ai(e){return e.ReactDOMClient||e.ReactDOM}function s0(e){return typeof e.renderType=="function"?e.renderType():e.renderType}function Zu(e,t,n){var r=e.React.createElement(e.rootComponent,t),o=fr?e.React.createElement(fr.Provider,{value:t},r):r;return(e.errorBoundary||t.errorBoundary||e.errorBoundaryClass||t.errorBoundaryClass)&&(e.errorBoundaryClass=e.errorBoundaryClass||t.errorBoundaryClass||function(s,i){function a(c){s.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},a.displayName="SingleSpaReactErrorBoundary(".concat(c.name,")")}return a.prototype=Object.create(s.React.Component.prototype),a.prototype.render=function(){return this.state.caughtError?(s.errorBoundary||i.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,Oo(Oo({},t),{},{mountFinished:n,updateFinished:function(){e.updateResolves[t.name]&&(e.updateResolves[t.name].forEach(function(s){return s()}),delete e.updateResolves[t.name])},unmountFinished:function(){e.unmountResolves[t.name]&&(e.unmountResolves[t.name](),delete e.unmountResolves[t.name])}}),o)}const i0=e=>{const t=new Hh;return function(r){if(!r)throw new Error("Microfrontend did not receive any properties !!");const o=$i(r.module.name),s=r.domElement;return X(()=>{s==null||s.setAttribute("data-pae-ui","")},[s]),u.jsx(Ni,{module:o,children:u.jsxs(Kh,{client:t,children:[u.jsx(e,{...r}),u.jsx(Rh,{position:"top-right",reverseOrder:!0})]})})}},jo=new Map,a0=e=>`style[data-pae-module="${CSS.escape(e)}"]`,ci=(e,t)=>Array.from(e.querySelectorAll(a0(t))),Xu=(e,t)=>{if(typeof document>"u")return;const n=[...ci(document,e),...t?ci(t,e):[]];n.length!==0&&(n.forEach(r=>r.remove()),jo.set(e,[...jo.get(e)??[],...n]))},li=(e,t)=>{if(typeof document>"u")return;const n=jo.get(e)??[];if(jo.delete(e),t&&n.push(...ci(document,e)),n.length===0)return;const r=t??document.head;n.forEach(o=>r.appendChild(o))},ow=_("initializeMicroFrontend",({rootComponent:e,shadowDom:t,...n})=>{const r={shadowRoot:null,container:null,portalContainer:null},o=i0(e),i=e0({errorBoundary(c){return console.error(c),u.jsx(Ru,{})},...n,rootComponent:t?c=>u.jsx(Zv,{container:r.portalContainer,children:u.jsx(o,{...c})}):o}),a=c=>{const l=c.shadowRoot??c.attachShadow({mode:"open"});let f=l.querySelector(":scope > [data-pae-module-root]");f||(f=document.createElement("div"),f.setAttribute("data-pae-module-root",""),l.appendChild(f));let h=l.querySelector(":scope > [data-pae-module-portal]");return h||(h=document.createElement("div"),h.setAttribute("data-pae-module-portal",""),l.appendChild(h)),wr.adoptInto(l),r.shadowRoot=l,r.container=f,r.portalContainer=h,f};return t?{...i,mount:async c=>{const l=c==null?void 0:c.domElement;if(!l||typeof l.attachShadow!="function")return c!=null&&c.name&&li(c.name),i.mount(c);const f=a(l);return c!=null&&c.name&&r.shadowRoot&&li(c.name,r.shadowRoot),i.mount({...c,domElement:f})},unmount:async c=>{const l=r.container,f=await i.unmount(l?{...c,domElement:l}:c);return c!=null&&c.name&&Xu(c.name,r.shadowRoot??void 0),r.shadowRoot&&wr.releaseRoot(r.shadowRoot),r.shadowRoot=null,r.container=null,r.portalContainer=null,f}}:{...i,mount:async c=>(c!=null&&c.name&&li(c.name),i.mount(c)),unmount:async c=>{const l=await i.unmount(c);return c!=null&&c.name&&Xu(c.name),l}}}),sw=_("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",featureFlags:{},fileStorageEnabled:!1};Object.defineProperty(window,Qn,{value:e?of(t,e):t})}),Ju=_("useFeatureFlags",()=>{const[e]=Yn();return e.featureFlags}),iw=_("useFeatureFlag",e=>Ju()[e]),c0=_("FeatureFlagGuard",({flag:e,children:t,fallback:n=null,invert:r=!1})=>{const s=Ju()[e]===!0;return(r?!s:s)?u.jsx(u.Fragment,{children:t}):u.jsx(u.Fragment,{children:n})});c0.displayName="FeatureFlagGuard";const ed=qn(null);function td(e){const t=["#FF6B6B","#4ECDC4","#45B7D1","#FFA07A","#98D8C8","#F7DC6F","#BB8FCE","#85C1E2","#F8B739","#52B788","#E74C3C","#3498DB","#9B59B6","#1ABC9C","#F39C12","#E67E22","#95A5A6","#34495E","#16A085","#27AE60"];let n=0;for(let o=0;o<e.length;o++)n=e.charCodeAt(o)+((n<<5)-n),n=n&n;const r=Math.abs(n)%t.length;return t[r]}const ui={JOIN_ROOM:"join_room",LEAVE_ROOM:"leave_room",USER_LIST:"user_list"},nd=[1e3,2e3,4e3,8e3,16e3],l0=nd.length,aw=_("RoomsProvider",({children:e})=>{const t=ff("@bluealba/pae-rooms-service"),[n,r]=W([]),[o,s]=W("loading"),i=We(null),a=We(!1),c=We(0),l=We(null),f=We(!0),h=We(()=>{}),m=ce(R=>new Promise((P,L)=>{const I=new WebSocket(R);let N=!1;I.onopen=()=>{N=!0,c.current=0,f.current&&s("connected"),P(I)},I.addEventListener("message",async B=>{try{const U=await p(B);U.event===ui.USER_LIST&&x(U.data)}catch(U){console.error("Error parsing WebSocket message:",U)}}),I.onerror=B=>{console.error("Rooms WebSocket error",B)},I.onclose=()=>{if(i.current!==I){N||L(new Error("WebSocket connection replaced"));return}a.current?f.current&&s("closed"):h.current(),N||L(new Error("WebSocket connection failed"))},i.current=I}),[]),g=ce(()=>{if(!t||!f.current)return;if(c.current>=l0){s("error");return}const R=nd[c.current];c.current++,s("reconnecting"),l.current=setTimeout(()=>{f.current&&t&&m(t).catch(()=>{})},R)},[t,m]);h.current=g;const S=ce(()=>{if(!t)return;l.current&&(clearTimeout(l.current),l.current=null);const R=i.current;R&&R.readyState!==WebSocket.CLOSED&&(a.current=!0,R.close()),c.current=0,a.current=!1,s("loading"),m(t)},[t,m]);X(()=>{if(f.current=!0,a.current=!1,t)return m(t),()=>{var R;f.current=!1,l.current&&(clearTimeout(l.current),l.current=null),a.current=!0,(R=i.current)==null||R.close()}},[t,m]),X(()=>{const R=()=>{if(document.visibilityState!=="visible")return;const P=i.current;P&&P.readyState===WebSocket.OPEN||(l.current&&(clearTimeout(l.current),l.current=null),c.current=0,S())};return document.addEventListener("visibilitychange",R),()=>{document.removeEventListener("visibilitychange",R)}},[S]);const p=async R=>{if(R.data instanceof Blob){const P=await R.data.text();return JSON.parse(P)}else return JSON.parse(R.data)},v=(R,P)=>{const L=i.current;!L||L.readyState!==WebSocket.OPEN||setTimeout(()=>{L.send(JSON.stringify({event:R,data:P}))},100)},y=R=>{v(ui.JOIN_ROOM,{roomId:R})},w=R=>{v(ui.LEAVE_ROOM,{roomId:R})},x=R=>{r(R.map(P=>({...P,username:P.username.toLowerCase(),color:td(P.username)})))},E=ce(R=>n.filter(P=>P.rooms.includes(R)),[n]),T={status:o,getRoomUsers:E,joinRoom:y,leaveRoom:w,reconnect:S};return u.jsx(ed.Provider,{value:T,children:e})}),u0=_("DEFAULT_OPTIONS",{autoJoin:!0,autoLeave:!0});function d0(e,t=u0){const{autoJoin:n,autoLeave:r}=t,o=Gn(ed),{authUser:s}=Sr();if(!o)throw new Error("useRoom must be used within RoomsProvider");const i=We(!1),a=()=>{if(n){console.warn("[useRoom] Ignoring manual joinRoom call because autoJoin is enabled.",{roomId:e});return}return i.current=!0,o.joinRoom(e)},c=()=>{if(r){console.warn("[useRoom] Ignoring manual leaveRoom call because autoLeave is enabled.",{roomId:e});return}return i.current=!1,o.leaveRoom(e)};X(()=>{if(!(!e||o.status!=="connected"))return(n||i.current)&&o.joinRoom(e),()=>{r&&o.status==="connected"&&o.leaveRoom(e)}},[o.status,e]);const l=o.getRoomUsers(e),f=l.findIndex(h=>h.username===(s==null?void 0:s.username))!==-1;return{users:l,roomId:e,hasJoined:f,joinRoom:a,leaveRoom:c,reconnect:o.reconnect}}const hr={container:"container__LbyGQ",avatarWrapper:"avatarWrapper__HCQIZ",avatar:"avatar__E453a",overflowWrapper:"overflowWrapper__ETnPO",overflowBadge:"overflowBadge__igBKT"},f0={sm:24,md:32,lg:40},hw=_("RoomAvatars",({users:e,maxVisible:t=5,size:n="md",overlap:r=!0,className:o="",onUserClick:s})=>{const i=f0[n],a=De(()=>e.slice(0,t),[e,t]),c=De(()=>e.slice(t),[e,t]),l=Math.max(0,e.length-t),f=h=>h.split(" ").map(m=>m[0]).join("").toUpperCase().slice(0,2);return u.jsxs("div",{className:D(hr.container,o),children:[a.map((h,m)=>u.jsx(lr,{tooltipContent:h.displayName,side:"bottom",children:u.jsx("div",{className:hr.avatarWrapper,style:{marginLeft:m>0&&r?`-${i*.25}px`:void 0},onClick:()=>s==null?void 0:s(h),children:u.jsx("div",{className:hr.avatar,style:{width:i,height:i,backgroundColor:h.color,fontSize:n==="sm"?"10px":n==="md"?"12px":"14px",cursor:s?"pointer":"default"},children:f(h.displayName)})})},h.username)),l>0&&u.jsx(lr,{side:"bottom",tooltipContent:u.jsx("div",{children:c.map(h=>u.jsx("p",{children:h.displayName},h.username))}),children:u.jsx("div",{className:hr.overflowWrapper,style:{marginLeft:r?`-${i*.25}px`:void 0},children:u.jsxs("div",{className:hr.overflowBadge,style:{width:i,height:i,fontSize:n==="sm"?"10px":n==="md"?"12px":"14px"},children:["+",l]})})})]})});Pd()}}});