@bluealba/pae-ui-react-core 4.0.1-feature-menu-display-order-1213 → 4.0.1-feature-initial-feature-flags-poc-1242
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +50 -50
- package/dist/index.esm.js +2614 -2437
- package/dist/index.systemjs.js +55 -55
- package/dist/index.umd.js +68 -68
- package/dist/src/feature-flags/FeatureFlagGuard.d.ts +35 -0
- package/dist/src/feature-flags/FeatureFlagsProvider.d.ts +79 -0
- package/dist/src/feature-flags/index.d.ts +39 -0
- package/dist/src/feature-flags/types.d.ts +114 -0
- package/dist/src/feature-flags/useFeatureFlag.d.ts +25 -0
- package/dist/src/feature-flags/useFeatureFlags.d.ts +9 -0
- package/dist/src/feature-flags/useVariant.d.ts +54 -0
- package/dist/src/hooks/applications/ApplicationMenu.d.ts +0 -2
- package/dist/src/hooks/index.d.ts +0 -1
- package/dist/src/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/src/hooks/applications/sortByDisplayOrder.d.ts +0 -10
package/dist/index.systemjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var uu=C=>{throw TypeError(C)};var Mi=(C,le,F)=>le.has(C)||uu("Cannot "+F);var b=(C,le,F)=>(Mi(C,le,"read from private field"),F?F.call(C):le.get(C)),D=(C,le,F)=>le.has(C)?uu("Cannot add the same private member more than once"):le instanceof WeakSet?le.add(C):le.set(C,F),O=(C,le,F,K)=>(Mi(C,le,"write to private field"),K?K.call(C,F):le.set(C,F),F),$=(C,le,F)=>(Mi(C,le,"access private method"),F);var to=(C,le,F,K)=>({set _(ue){O(C,le,ue,F)},get _(){return b(C,le,K)}});System.register("@bluealba/pae-ui-react-core",["react","single-spa","react-dom"],function(C,le){"use strict";var F,K,ue,Qn,ro,oo,Re,B,Tn,m,Gi,io,qi,so,Qi,Yn,ao,Yi;return{setters:[J=>{F=J.useState,K=J.useEffect,ue=J.useCallback,Qn=J.default,ro=J.createContext,oo=J.useContext,Re=J.useMemo,B=J.forwardRef,Tn=J.createElement,m=J,Gi=J.Children,io=J.isValidElement,qi=J.useLayoutEffect,so=J.useRef},J=>{Qi=J.navigateToUrl,Yn=J.default},J=>{ao=J,Yi=J.default}],execute:function(){var Lt,ht,cn,zl,ln,mt,un,Hl,It,Wl,dn,fn,Ae,Nt,de,Un,Mt,Ne,ot,Vl,We,Gl,Ve,he,$t,Ge,Et,ql,et,Me,zn,Ql,te,gt,vt,pn,hn,yt,mn,gn,Yl,we,H,Hn,me,Ft,vn,bt,wt,Wn,yn,bn,Bt,Ut,_t,wn,G,qn,$i,Fi,Bi,Ui,zi,Hi,Wi,du,Kl,xt,Ct,_e,tt,nt,no,Vi,Zl;var J=document.createElement("style");J.textContent=`:root{--platform-label-color: var(--platform-text-secondary-color);--platform-input-border-color: var(--platform-lines);--platform-input-background-color: var(--platform-background-secondary-color);--platform-input-color: var(--platform-text-primary-color);--platform-input-focus-border-color: var(--platform-color-primary);--platform-button-base-padding: 4px 16px;--platform-button-base-border-radius: 6px;--platform-button-base-box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);--platform-button-base-font-size: 1em;--platform-button-base-line-height: 16px;--platform-button-base-height: calc(2 * var(--platform-button-base-font-size));--platform-button-contained-primary-background-color: var(--platform-color-primary);--platform-button-contained-primary-color: #ffffff;--platform-button-outlined-primary-color: var(--platform-color-primary);--platform-button-text-primary-color: var(--platform-text-primary-color);--platform-button-contained-danger-background-color: var(--platform-color-danger);--platform-button-contained-danger-color: #ffffff;--platform-button-outlined-danger-color: var(--platform-color-danger);--platform-button-text-danger-color: var(--platform-color-danger)}@keyframes spinner-rotation__wUmPV{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.spinner__fakUN{position:relative;display:flex;transition:.3s;width:var(--icon-size);height:var(--icon-size)}.spinner__fakUN:before{content:"";position:absolute;top:50%;left:50%;width:var(--icon-size);height:var(--icon-size);margin-top:calc(var(--icon-size) / -2);margin-left:calc(var(--icon-size) / -2);border:2px solid transparent;box-sizing:border-box;border-radius:50%;animation:spinner-rotation__wUmPV .6s linear infinite;display:block}.button__8FA9H{all:unset;padding:var(--platform-button-base-padding);border-radius:var(--platform-button-base-border-radius);box-shadow:var(--platform-button-base-box-shadow);font-size:var(--platform-button-base-font-size);line-height:var(--platform-button-base-line-height);height:var(--platform-button-base-height);font-weight:600;outline:none;border:none;cursor:pointer;transition:width .2s ease-in;display:flex;align-items:center;gap:8px;--icon-size: 12px}.button__8FA9H:disabled{cursor:not-allowed;opacity:.5}.button--contained-primary__stkTx{background-color:var(--platform-button-contained-primary-background-color);color:var(--platform-button-contained-primary-color)}.button--contained-primary__stkTx .spinner__fakUN:before{border-top-color:var(--platform-button-contained-primary-color);border-right-color:var(--platform-button-contained-primary-color)}.button--outlined-primary__KZ1ww{background-color:transparent;color:var(--platform-button-outlined-primary-color);border:1px solid var(--platform-button-outlined-primary-color);height:calc(var(--platform-button-base-height) - 2px)}.button--outlined-primary__KZ1ww .spinner__fakUN:before{border-top-color:var(--platform-button-outlined-primary-color);border-right-color:var(--platform-button-outlined-primary-color)}.button--text-primary__GLTfm{background-color:transparent;color:var(--platform-button-text-primary-color);box-shadow:none}.button--text-primary__GLTfm .spinner__fakUN:before{border-top-color:var(--platform-button-text-primary-color);border-right-color:var(--platform-button-text-primary-color)}.button--contained-danger__L9ehT{background-color:var(--platform-button-contained-danger-background-color);color:var(--platform-button-contained-danger-color)}.button--contained-danger__L9ehT .spinner__fakUN:before{border-top-color:var(--platform-button-contained-danger-color);border-right-color:var(--platform-button-contained-danger-color)}.button--outlined-danger__eoYLd{background-color:transparent;color:var(--platform-button-outlined-danger-color);border:1px solid var(--platform-button-outlined-danger-color);height:calc(var(--platform-button-base-height) - 2px)}.button--outlined-danger__eoYLd .spinner__fakUN:before{border-top-color:var(--platform-button-outlined-danger-color);border-right-color:var(--platform-button-outlined-danger-color)}.button--text-danger__Sw-ha{background-color:transparent;color:var(--platform-button-text-danger-color);box-shadow:none}.button--text-danger__Sw-ha .spinner__fakUN:before{border-top-color:var(--platform-button-text-danger-color);border-right-color:var(--platform-button-text-danger-color)}.icon__--umH{width:var(--icon-size);height:var(--icon-size)}.Badges__5jpum{display:flex;gap:10px;margin-top:8px}.Badge__95MWM{display:flex;flex-direction:row;justify-content:center;align-items:center;text-align:center;color:var(--admin-ui-badge-color);padding:var(--admin-ui-badge-padding);background:var(--admin-ui-badge-background-color);border-radius:var(--admin-ui-badge-border-radius)}.Badge--primary__Rx-bS{--admin-ui-badge-background-color: var(--admin-ui-primary-color);--admin-ui-badge-color: #ffffff}.Badge--secondary__d92bT{--admin-ui-badge-background-color: var(--admin-ui-background-color-light);--admin-ui-badge-color: var(--admin-ui-secondary-text-color)}.Badge--success__Kdo98{--admin-ui-badge-background-color: var(--admin-ui-success-color-light);--admin-ui-badge-color: var(--admin-ui-success-color)}.Badge--warning__bf-Nn{--admin-ui-badge-background-color: var(--admin-ui-warning-color-light);--admin-ui-badge-color: var(--admin-ui-warning-color)}.Badge--danger__HTj39{--admin-ui-badge-background-color: var(--admin-ui-danger-color-light);--admin-ui-badge-color: var(--admin-ui-danger-color)}.Badge--small__y93Pj{font-size:var(--admin-ui-badge-font-size);line-height:var(--admin-ui-badge-line-height)}.Badge--regular__aT5AL{font-size:calc(1.25 * var(--admin-ui-badge-font-size));line-height:calc(1.25 * var(--admin-ui-badge-line-height))}.Badge--large__wORCH{font-size:calc(1.5 * var(--admin-ui-badge-font-size));line-height:calc(1.5 * var(--admin-ui-badge-line-height))}.CopyToClipboardButton__2Nd2m:hover{cursor:pointer}.FieldGroup__Q2JCV{margin-bottom:1em}.FieldGroup--horizontal__kpfL1{display:grid;grid-template-columns:max-content 1fr;grid-gap:1em;align-items:center;height:100%}.FieldGroup--vertical__FLo-Q{display:grid;grid-template-columns:1fr;grid-gap:4px}.Input__uS0sb{width:100%;padding:10px;border:1px solid var(--platform-input-border-color);background-color:var(--platform-input-background-color);color:var(--platform-input-color);border-radius:8px;font-size:1em}.Input__uS0sb:focus{outline:1px solid var(--platform-input-focus-border-color)}.Input__uS0sb.Error__-DQpw{border-color:var(--platform-color-danger)}.Error__N4OP5{width:100%;min-height:15px;color:var(--platform-color-danger);font-size:1em}.Label__VYUvW{font-size:1em;font-weight:400;color:var(--platform-label-color)}.Label__VYUvW.Error__Eu6DI{color:var(--platform-color-danger)}.Select__giqpe{width:100%;position:relative}.Select__giqpe select{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;color:var(--platform-input-color);font-size:14px;background-color:var(--platform-input-background-color);border:1px solid var(--platform-input-border-color);border-radius:8px;cursor:pointer;padding:10px}.Select__giqpe select:focus{outline:1px solid var(--platform-input-focus-border-color)}.Chevron__YvhBd{position:absolute;right:1em;top:50%;transform:translateY(-50%);pointer-events:none}.TextArea__pa-A0{width:100%;height:100%;background-clip:padding-box;padding:10px;border:1px solid var(--platform-input-border-color);background-color:var(--platform-input-background-color);color:var(--platform-input-color);border-radius:8px;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}.TextArea__pa-A0:focus{outline:1px solid var(--platform-input-focus-border-color)}.SearchInput__4OFyE{position:relative}.SearchInput__4OFyE .SearchIcon__YgnQy{position:absolute;top:50%;transform:translateY(-50%);left:10px;color:#000}.SearchInput__4OFyE .ClearIcon__ukRVr{position:absolute;top:50%;transform:translateY(-50%);right:15px;color:#000;cursor:pointer}.SearchInput__4OFyE input{font-size:1em}.SearchInput__ClearIcon__uzVoc input{padding-right:30px}.SearchInput__SearchIcon__zoDG4 input{padding-left:30px}.SearchAutocomplete__vR9Hk{position:relative}.AutocompleteItem__YIm7R{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:4px 16px;min-height:36px;width:100%;text-align:left;border:none;background-color:transparent;line-height:14px;font-size:12px;font-weight:400;color:var(--platform-text-primary-color);pointer-events:none}.AutocompleteItem--canBeSelected__jxk4z{cursor:pointer;pointer-events:auto}.AutocompleteItem--canBeSelected__jxk4z:hover{background-color:#0000001a}.AutocompleteHighlighter__LAFTV{overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical;word-break:break-all}.AutocompleteHighlighter__match__Wy1o2{font-weight:700}.DropdownList__-fHIk{width:100%;padding-bottom:8px;padding-top:8px;min-height:0;border:1px solid var(--platform-lines)}.AutocompleteItemDescription__4QYN5{font-size:.8em;line-height:1em;font-weight:500;color:var(--platform-text-secondary-color);margin-top:2px}.DropdownList__QTXXX{position:absolute;z-index:1;background-color:var(--platform-background-primary-color);border-radius:8px;box-shadow:0 1px 5px #1018281a;min-width:105px;padding:4px 0;transition:all .2s ease-in-out}.DropdownList--closed__pdL1Z{opacity:0;pointer-events:none;transform:translateY(-10px);visibility:hidden}.DropdownList--open__opzc9{display:flex;flex-direction:column;opacity:1;pointer-events:all;transform:translateY(0)}.DropdownList--left__xSwXR{right:0}.SkeletonListContainer__MKJhE{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch}.Skeleton__Ovpiw{animation:skeleton-pulse__ZqB1e 1s infinite alternate-reverse;background-image:none;background-clip:border-box;border:none;box-shadow:none;-webkit-box-decoration-break:clone;box-decoration-break:clone;color:transparent;outline:none;pointer-events:none;-webkit-user-select:none;user-select:none;cursor:default;display:block}@keyframes skeleton-pulse__ZqB1e{0%{background-color:var(--platform-skeleton-color-1)}to{background-color:var(--platform-skeleton-color-2)}}.tooltip__nUuSh{border-radius:8px;padding:8px 12px;font-size:12px;font-weight:var(--platform-tooltip-font-weight);line-height:18px;color:var(--platform-tooltip-color);background-color:var(--platform-tooltip-background-color);box-shadow:0 4px 10px 0 var(--platform-shadow-color);-webkit-user-select:none;user-select:none;pointer-events:none;animation-duration:.4s;animation-timing-function:cubic-bezier(.16,1,.3,1);will-change:transform,opacity}.tooltip__nUuSh[data-side=right]{animation-name:slideLeftAndFade__DYdE5}.tooltip__nUuSh[data-side=bottom]{animation-name:slideUpAndFade__itahf}.tooltipArrow__W2w-f{fill:var(--platform-tooltip-background-color)}@keyframes slideLeftAndFade__DYdE5{0%{opacity:0;transform:translate(-8px)}to{opacity:1;transform:translate(0)}}@keyframes slideUpAndFade__itahf{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translate(0)}}@keyframes rotate__EqlXe{to{transform:rotate(360deg)}}.spinner__qa7F6{width:80px;height:80px;border:6px solid var(--platform-color-white);border-bottom-color:#ffffff1a;border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotate__EqlXe 2s linear infinite}.spinner-dark__9A9-q{border-color:var(--platform-color-dark);border-bottom-color:#ffffff1a}.spinner-white__gRbtI{border-color:var(--platform-color-white);border-bottom-color:#ffffff1a}.spinner-success__otWGm{border-color:var(--platform-color-success);border-bottom-color:#ffffff1a}.spinner-danger__Bq5DM{border-color:var(--platform-color-danger);border-bottom-color:#ffffff1a}.spinner-warning__U900K{border-color:var(--platform-color-warning);border-bottom-color:#ffffff1a}.switch__0b2av{position:relative;display:inline-flex;align-items:center;width:44px;min-width:44px;height:24px;padding:0;border:none;border-radius:12px;background-color:#ccc;cursor:pointer;transition:background-color .2s ease;outline:none;font-size:0}.switch__0b2av:disabled{opacity:.5}.switch__0b2av:focus-visible{box-shadow:0 0 0 2px var(--platform-color-primary)}.switch__0b2av:hover:not(.disabled__KpauE){background-color:#bbb}.switch__0b2av.checked__2-JV-{background-color:var(--platform-color-primary)}.switch__0b2av.checked__2-JV-:hover:not(.disabled__KpauE){background-color:var(--platform-color-secondary)}.switch__0b2av.disabled__KpauE{opacity:.5;cursor:not-allowed;pointer-events:none}.thumb__fEuKD{position:absolute;top:2px;left:2px;width:20px;height:20px;background-color:#fff;border-radius:50%;transition:transform .2s ease;box-shadow:0 1px 3px #0000001a}.switch__0b2av.checked__2-JV- .thumb__fEuKD{transform:translate(20px)}[data-theme=dark] .switch__0b2av{background-color:#555}[data-theme=dark] .switch__0b2av:hover:not(.disabled__KpauE){background-color:#666}[data-theme=dark] .switch__0b2av.checked__2-JV-{background-color:var(--platform-color-primary)}[data-theme=dark] .switch__0b2av.checked__2-JV-:hover:not(.disabled__KpauE){background-color:var(--platform-color-secondary)}.tabs-list__rc10N{display:flex;position:relative}.tabs-list--horizontal__e1YW4{flex-direction:row;border-bottom:1px solid var(--platform-lines)}.tabs-list--vertical__huK05{flex-direction:column;border-right:none;width:200px}.tabs-trigger__D8R4R{position:relative;background:transparent;border:none;padding:12px 16px;font-size:14px;font-weight:500;color:var(--platform-text-secondary-color);cursor:pointer;transition:all .15s ease-in-out;white-space:nowrap;outline:none}.tabs-trigger__D8R4R:hover:not(.tabs-trigger--disabled__ezDWc){color:var(--platform-text-primary-color)}.tabs-trigger__D8R4R:focus-visible{outline:2px solid var(--platform-color-primary);outline-offset:2px;border-radius:4px}.tabs-trigger--horizontal__4jBFV{border-bottom:2px solid transparent;margin-bottom:-1px}.tabs-trigger--horizontal__4jBFV.tabs-trigger--active__S-Z-S{color:var(--platform-text-primary-color);border-bottom-color:var(--platform-text-primary-color)}.tabs-trigger--vertical__dNVIZ{border-left:none;border-right:3px solid transparent;margin-right:-8px;text-align:left;justify-content:flex-start;display:flex;width:calc(100% + 8px);border-radius:6px 0 0 6px;padding-right:19px}.tabs-trigger--vertical__dNVIZ:hover:not(.tabs-trigger--disabled__ezDWc):not(.tabs-trigger--active__S-Z-S){background-color:#0000000a}.tabs-trigger--vertical__dNVIZ.tabs-trigger--active__S-Z-S{color:var(--platform-text-primary-color);border-right-color:var(--platform-text-primary-color);background-color:var(--platform-background-primary-color);font-weight:600}.tabs-trigger--disabled__ezDWc{color:#9ca3af;cursor:not-allowed}.tabs-content__1d77o{padding:16px 0;outline:none}.tabs-content__1d77o:focus-visible{outline:2px solid var(--platform-color-primary);outline-offset:2px;border-radius:4px}.PasswordInput__GDJDN{position:relative}.PasswordInput__GDJDN input{padding-right:40px;box-sizing:border-box}.PasswordInput__GDJDN .eyeIcon__kDExG{position:absolute;top:50%;right:1em;transform:translateY(-50%)}.PasswordInput__GDJDN .eyeIcon__kDExG:hover{cursor:pointer}.Overlay__M5Z83{background-color:#0e12167f;position:fixed;top:0;right:0;bottom:0;left:0;animation:overlayShow__seU5M .15s cubic-bezier(.16,1,.3,1);z-index:var(--platform-modal-layer)}.Content__wAkP4{display:flex;position:relative;flex-direction:column;justify-content:flex-start;align-items:stretch;font-size:var(--admin-ui-base-font-size);z-index:calc(var(--platform-modal-layer) + 1);background-color:var(--platform-background-primary-color);border-radius:8px;overflow:hidden;box-shadow:#0e121659 0 10px 38px -10px,#0e121633 0 10px 20px -15px;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);animation:contentShow__rxphL .15s cubic-bezier(.16,1,.3,1)}.Content__wAkP4:focus{outline:none}@keyframes overlayShow__seU5M{0%{opacity:0}to{opacity:1}}@keyframes contentShow__rxphL{0%{opacity:0;transform:translate(-50%,-48%) scale(.96)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}.ExampleDialog__llNIZ{max-width:500px}.Header__VHxNf{display:flex;justify-content:space-between;align-items:center;background-color:var(--admin-ui-background-color-light);padding:16px 24px}.Content__I04qM{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;padding:24px;width:90vw;max-height:85vh;max-width:100%;margin-bottom:64px;overflow:auto}.Close__xSN-7{cursor:pointer}.Title__Dznh6{line-height:24px;font-size:20px;font-weight:700;color:var(--admin-ui-primary-text-color)}.Footer__-8gzQ{position:absolute;bottom:0;left:0;right:0;background-color:var(--admin-ui-background-color-light);display:flex;justify-content:flex-end;padding:16px 24px;gap:16px;box-shadow:0 -1px 6px #78787826}.Actions__kKF2Q{display:flex;gap:16px}.pill__vtGwB{border-radius:300px;min-width:4em;text-align:center;padding:3px 12px;font-size:.8em;font-weight:700;border:1px solid}.pill--solid__F-mR4{border-color:var(--pae-shell-color-secondary, #ED8525);background:var(--pae-shell-color-secondary, #ED8525);color:var(--pae-shell-color-white)}.pill--outline__gC-mh{border-color:var(--pae-shell-color-secondary, #ED8525);color:var(--pae-shell-color-secondary, #ED8525);background-color:var(--pae-shell-color-white)}.DialogContent__-WjG9{max-width:450px}.Message__AUgVP{color:var(--platform-text-primary-color);font-size:1.15em}.container__AjtYJ{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;height:100vh}.title__A2vCu{font-size:24px;font-weight:600;line-height:36px;color:var(--text-primary-color);padding-top:24px}.description__bP6Ig{font-size:16px;font-weight:400;line-height:24px;color:var(--text-secondary-color)}a.mailToText__SdlsE{color:var(--pae-shell-color-secondary);font-weight:500}.List__h09XG{display:flex;flex-direction:column;position:relative;overflow-y:auto}.Item__YMy2i{display:flex;flex-direction:column;padding:12px 16px;cursor:pointer;color:var(--admin-ui-primary-text-color)}.List--primary__J2pbx{gap:16px}.List--primary__J2pbx .Item__YMy2i{border:1px solid var(--admin-ui-border-color);border-radius:8px}.List--secondary__gi1ao .Item__YMy2i{border-top:1px solid var(--admin-ui-border-color);border-bottom:1px solid transparent}.List--secondary__gi1ao .Item--selected__yRWow{background:#a0a0a01a;border-top:1px solid var(--admin-ui-primary-color);border-bottom:1px solid var(--admin-ui-primary-color)}.List__h09XG .Title__RJmEW{display:flex;align-items:center;gap:8px;padding-right:16px;font-size:1em;line-height:1.15em;color:var(--admin-ui-primary-text-color);margin-bottom:4px}.List__h09XG .Description__DGyX2{font-size:.8em;line-height:1em;font-weight:500;color:var(--admin-ui-secondary-text-color)}.List__h09XG .Actions__UHP5l{position:absolute;right:16px}.List__h09XG .Action__q-R1I{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;padding:8px 16px;gap:12px;width:100%}.List__h09XG .Action__q-R1I:hover{background:var(--admin-ui-background-color-light)}.List__h09XG .Item--disabled__Ke1u-{background:var(--admin-ui-background-color-light);cursor:not-allowed;opacity:.5}.List--small__ijoSR .Item__YMy2i{padding:8px 12px;height:auto;font-size:1em}.List--medium__E1FEY .Item__YMy2i{padding:12px 16px;height:auto;font-size:1.1em}.List--large__T8tfz .Item__YMy2i{padding:16px 24px;height:auto;font-size:1.25em}.List__h09XG .Icon__dFr-L{display:flex;align-items:center;justify-content:center;width:1.4em;height:1.4em}.Navigation__uylxk{margin:0 auto;display:flex;justify-content:flex-end;width:100%;color:var(--platform-text-primary-color)}.PaginationContent__UpLw0{display:flex;align-items:center;gap:4px}.PaginationEllipsis__perWk{display:flex;width:2.5em;height:2.5em;justify-content:center;align-items:center}.PaginationEllipsis__perWk svg{width:1em;height:1em}.PaginationLink__GVUZj{display:inline-flex;align-items:center;justify-content:center;gap:.6em;padding:.5em;min-width:32px;border-radius:4px;font-size:1em;font-weight:500;border:1px solid transparent;cursor:pointer}.PaginationLink__GVUZj:focus{outline:none}.PaginationLink__GVUZj:hover{background-color:var(--platform-background-secondary-color)}.PaginationLink__GVUZj.Active__u1Ahy{border-color:var(--platform-lines)}.PaginationLink__GVUZj.Disabled__8WM0y{opacity:.8;pointer-events:none;cursor:default}.PaginationLink__GVUZj svg{width:1em;height:1em}.Prev__wp4hc{padding-right:12px}.Next__eVyL5{padding-left:12px}.TableContainer__osh6Z{border:1px solid var(--platform-lines);border-radius:1em;overflow:hidden}.TableHeader__sYa-8{padding:.6em .8em;font-size:1.4em;font-weight:600;width:100%;border-bottom:1px solid var(--platform-lines);color:var(--platform-text-primary-color)}.Table__2cIs3{border-collapse:collapse;width:100%}.Table__2cIs3 td,.Table__2cIs3 th{border-bottom:1px solid var(--platform-lines);padding:1em;font-weight:400;font-size:var(--platform-text-base-font-size);color:var(--platform-text-secondary-color)}.Table__2cIs3 td{color:var(--platform-text-primary-color)}.Table__2cIs3 tr:last-child td{border-bottom:none}.Table__2cIs3 thead th{font-weight:500;background-color:var(--platform-background-secondary-color)}.Table__2cIs3 tr{transition:background-color .2s ease-in-out;background-color:var(--platform-background-primary-color)}.Table__2cIs3 tr.selectable__WsGg1:hover{cursor:pointer;background-color:var(--platform-background-secondary-color)}.Table__2cIs3 .Cell__ZEv-K{display:flex;align-items:center;gap:4px;justify-content:flex-start}.Table__2cIs3 .Right__YoM1V{justify-content:flex-end}.Table__2cIs3 .Center__CF3tr{justify-content:center}.Table__2cIs3 .Sortable__JIV1V{cursor:pointer}.Table__2cIs3 .SortIcon__f0bBy{opacity:0;visibility:hidden;transition:opacity .2s ease-in-out,transform .2s ease-in-out}.Table__2cIs3 .SortIcon__f0bBy.Active__rJjxB{opacity:1;visibility:visible}.Table__2cIs3 .SortIcon__f0bBy.Rotate__7cwTK{transform:rotate(-180deg)}.Table__2cIs3 .Cell__ZEv-K:hover .SortIcon__f0bBy{opacity:1;visibility:visible}.Pagination__sbqMP{display:flex;justify-content:flex-end;margin-top:1em!important}.PointerNone__kQdQS{pointer-events:none}.EmptyStateContainer__Q9FEb{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1em;padding:2em 0}.EmptyStateContainer__Q9FEb .Message__IHK6M{font-size:1.15em;color:var(--platform-text-secondary-color)}.EmptyStateContainer__Q9FEb svg{color:var(--platform-text-secondary-color)}.alert__LblpE{position:relative;width:100%;border-radius:.8em;border:1px solid var(--platform-lines);padding:1em 1.2em;font-size:1em;display:grid;grid-template-columns:0 1fr;gap:.5em}.alert__LblpE:has(>svg){grid-template-columns:16px 1fr;gap:12px}.alert__LblpE>svg{margin-top:2px;width:16px;height:16px;color:inherit}.default__mgO6A{background-color:var(--platform-background-primary-color, #fff);color:var(--platform-text-primary-color, #111)}.destructive__bLNSM{background-color:var(--platform-background-primary-color, #fff);color:var(--platform-color-danger, #dc2626);border-color:var(--platform-color-danger, #dc2626)}.destructive__bLNSM>svg{color:inherit}.destructive__bLNSM [data-slot=alert-description]{color:var(--platform-color-danger, #dc2626)}.alertTitle__gblKf{grid-column-start:2;min-height:1em;font-weight:500;line-clamp:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.alertDescription__BuVHV{grid-column-start:2;display:grid;justify-items:start;gap:4px;font-size:1em;color:var(--platform-text-secondary-color)}.alertDescription__BuVHV p{line-height:1.5}
|
|
2
|
-
`,document.head.appendChild(J),
|
|
1
|
+
var du=E=>{throw TypeError(E)};var Mi=(E,ue,L)=>ue.has(E)||du("Cannot "+L);var b=(E,ue,L)=>(Mi(E,ue,"read from private field"),L?L.call(E):ue.get(E)),D=(E,ue,L)=>ue.has(E)?du("Cannot add the same private member more than once"):ue instanceof WeakSet?ue.add(E):ue.set(E,L),O=(E,ue,L,Q)=>(Mi(E,ue,"write to private field"),Q?Q.call(E,L):ue.set(E,L),L),F=(E,ue,L)=>(Mi(E,ue,"access private method"),L);var oo=(E,ue,L,Q)=>({set _(te){O(E,ue,te,L)},get _(){return b(E,ue,Q)}});System.register("@bluealba/pae-ui-react-core",["react","single-spa","react-dom"],function(E,ue){"use strict";var L,Q,te,Yn,Kn,Qt,Ae,B,An,g,qi,so,Qi,ao,Yi,Zn,co,Ki;return{setters:[J=>{L=J.useState,Q=J.useEffect,te=J.useCallback,Yn=J.default,Kn=J.createContext,Qt=J.useContext,Ae=J.useMemo,B=J.forwardRef,An=J.createElement,g=J,qi=J.Children,so=J.isValidElement,Qi=J.useLayoutEffect,ao=J.useRef},J=>{Yi=J.navigateToUrl,Zn=J.default},J=>{co=J,Ki=J.default}],execute:function(){var Lt,pt,ln,Hl,un,mt,dn,Wl,It,Vl,fn,hn,Pe,Nt,de,zn,$t,Ne,ot,Gl,We,ql,Ve,pe,Mt,Ge,Et,Ql,et,$e,Hn,Yl,ne,gt,vt,pn,mn,yt,gn,vn,Kl,we,H,Wn,me,Ft,yn,bt,wt,Vn,bn,wn,Bt,Ut,_t,_n,G,Qn,Fi,Bi,Ui,zi,Hi,Wi,Vi,fu,Zl,xt,Ct,_e,tt,nt,io,Gi,Xl;var J=document.createElement("style");J.textContent=`:root{--platform-label-color: var(--platform-text-secondary-color);--platform-input-border-color: var(--platform-lines);--platform-input-background-color: var(--platform-background-secondary-color);--platform-input-color: var(--platform-text-primary-color);--platform-input-focus-border-color: var(--platform-color-primary);--platform-button-base-padding: 4px 16px;--platform-button-base-border-radius: 6px;--platform-button-base-box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);--platform-button-base-font-size: 1em;--platform-button-base-line-height: 16px;--platform-button-base-height: calc(2 * var(--platform-button-base-font-size));--platform-button-contained-primary-background-color: var(--platform-color-primary);--platform-button-contained-primary-color: #ffffff;--platform-button-outlined-primary-color: var(--platform-color-primary);--platform-button-text-primary-color: var(--platform-text-primary-color);--platform-button-contained-danger-background-color: var(--platform-color-danger);--platform-button-contained-danger-color: #ffffff;--platform-button-outlined-danger-color: var(--platform-color-danger);--platform-button-text-danger-color: var(--platform-color-danger)}@keyframes spinner-rotation__wUmPV{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.spinner__fakUN{position:relative;display:flex;transition:.3s;width:var(--icon-size);height:var(--icon-size)}.spinner__fakUN:before{content:"";position:absolute;top:50%;left:50%;width:var(--icon-size);height:var(--icon-size);margin-top:calc(var(--icon-size) / -2);margin-left:calc(var(--icon-size) / -2);border:2px solid transparent;box-sizing:border-box;border-radius:50%;animation:spinner-rotation__wUmPV .6s linear infinite;display:block}.button__8FA9H{all:unset;padding:var(--platform-button-base-padding);border-radius:var(--platform-button-base-border-radius);box-shadow:var(--platform-button-base-box-shadow);font-size:var(--platform-button-base-font-size);line-height:var(--platform-button-base-line-height);height:var(--platform-button-base-height);font-weight:600;outline:none;border:none;cursor:pointer;transition:width .2s ease-in;display:flex;align-items:center;gap:8px;--icon-size: 12px}.button__8FA9H:disabled{cursor:not-allowed;opacity:.5}.button--contained-primary__stkTx{background-color:var(--platform-button-contained-primary-background-color);color:var(--platform-button-contained-primary-color)}.button--contained-primary__stkTx .spinner__fakUN:before{border-top-color:var(--platform-button-contained-primary-color);border-right-color:var(--platform-button-contained-primary-color)}.button--outlined-primary__KZ1ww{background-color:transparent;color:var(--platform-button-outlined-primary-color);border:1px solid var(--platform-button-outlined-primary-color);height:calc(var(--platform-button-base-height) - 2px)}.button--outlined-primary__KZ1ww .spinner__fakUN:before{border-top-color:var(--platform-button-outlined-primary-color);border-right-color:var(--platform-button-outlined-primary-color)}.button--text-primary__GLTfm{background-color:transparent;color:var(--platform-button-text-primary-color);box-shadow:none}.button--text-primary__GLTfm .spinner__fakUN:before{border-top-color:var(--platform-button-text-primary-color);border-right-color:var(--platform-button-text-primary-color)}.button--contained-danger__L9ehT{background-color:var(--platform-button-contained-danger-background-color);color:var(--platform-button-contained-danger-color)}.button--contained-danger__L9ehT .spinner__fakUN:before{border-top-color:var(--platform-button-contained-danger-color);border-right-color:var(--platform-button-contained-danger-color)}.button--outlined-danger__eoYLd{background-color:transparent;color:var(--platform-button-outlined-danger-color);border:1px solid var(--platform-button-outlined-danger-color);height:calc(var(--platform-button-base-height) - 2px)}.button--outlined-danger__eoYLd .spinner__fakUN:before{border-top-color:var(--platform-button-outlined-danger-color);border-right-color:var(--platform-button-outlined-danger-color)}.button--text-danger__Sw-ha{background-color:transparent;color:var(--platform-button-text-danger-color);box-shadow:none}.button--text-danger__Sw-ha .spinner__fakUN:before{border-top-color:var(--platform-button-text-danger-color);border-right-color:var(--platform-button-text-danger-color)}.icon__--umH{width:var(--icon-size);height:var(--icon-size)}.Badges__5jpum{display:flex;gap:10px;margin-top:8px}.Badge__95MWM{display:flex;flex-direction:row;justify-content:center;align-items:center;text-align:center;color:var(--admin-ui-badge-color);padding:var(--admin-ui-badge-padding);background:var(--admin-ui-badge-background-color);border-radius:var(--admin-ui-badge-border-radius)}.Badge--primary__Rx-bS{--admin-ui-badge-background-color: var(--admin-ui-primary-color);--admin-ui-badge-color: #ffffff}.Badge--secondary__d92bT{--admin-ui-badge-background-color: var(--admin-ui-background-color-light);--admin-ui-badge-color: var(--admin-ui-secondary-text-color)}.Badge--success__Kdo98{--admin-ui-badge-background-color: var(--admin-ui-success-color-light);--admin-ui-badge-color: var(--admin-ui-success-color)}.Badge--warning__bf-Nn{--admin-ui-badge-background-color: var(--admin-ui-warning-color-light);--admin-ui-badge-color: var(--admin-ui-warning-color)}.Badge--danger__HTj39{--admin-ui-badge-background-color: var(--admin-ui-danger-color-light);--admin-ui-badge-color: var(--admin-ui-danger-color)}.Badge--small__y93Pj{font-size:var(--admin-ui-badge-font-size);line-height:var(--admin-ui-badge-line-height)}.Badge--regular__aT5AL{font-size:calc(1.25 * var(--admin-ui-badge-font-size));line-height:calc(1.25 * var(--admin-ui-badge-line-height))}.Badge--large__wORCH{font-size:calc(1.5 * var(--admin-ui-badge-font-size));line-height:calc(1.5 * var(--admin-ui-badge-line-height))}.CopyToClipboardButton__2Nd2m:hover{cursor:pointer}.FieldGroup__Q2JCV{margin-bottom:1em}.FieldGroup--horizontal__kpfL1{display:grid;grid-template-columns:max-content 1fr;grid-gap:1em;align-items:center;height:100%}.FieldGroup--vertical__FLo-Q{display:grid;grid-template-columns:1fr;grid-gap:4px}.Input__uS0sb{width:100%;padding:10px;border:1px solid var(--platform-input-border-color);background-color:var(--platform-input-background-color);color:var(--platform-input-color);border-radius:8px;font-size:1em}.Input__uS0sb:focus{outline:1px solid var(--platform-input-focus-border-color)}.Input__uS0sb.Error__-DQpw{border-color:var(--platform-color-danger)}.Error__N4OP5{width:100%;min-height:15px;color:var(--platform-color-danger);font-size:1em}.Label__VYUvW{font-size:1em;font-weight:400;color:var(--platform-label-color)}.Label__VYUvW.Error__Eu6DI{color:var(--platform-color-danger)}.Select__giqpe{width:100%;position:relative}.Select__giqpe select{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;color:var(--platform-input-color);font-size:14px;background-color:var(--platform-input-background-color);border:1px solid var(--platform-input-border-color);border-radius:8px;cursor:pointer;padding:10px}.Select__giqpe select:focus{outline:1px solid var(--platform-input-focus-border-color)}.Chevron__YvhBd{position:absolute;right:1em;top:50%;transform:translateY(-50%);pointer-events:none}.TextArea__pa-A0{width:100%;height:100%;background-clip:padding-box;padding:10px;border:1px solid var(--platform-input-border-color);background-color:var(--platform-input-background-color);color:var(--platform-input-color);border-radius:8px;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}.TextArea__pa-A0:focus{outline:1px solid var(--platform-input-focus-border-color)}.SearchInput__4OFyE{position:relative}.SearchInput__4OFyE .SearchIcon__YgnQy{position:absolute;top:50%;transform:translateY(-50%);left:10px;color:#000}.SearchInput__4OFyE .ClearIcon__ukRVr{position:absolute;top:50%;transform:translateY(-50%);right:15px;color:#000;cursor:pointer}.SearchInput__4OFyE input{font-size:1em}.SearchInput__ClearIcon__uzVoc input{padding-right:30px}.SearchInput__SearchIcon__zoDG4 input{padding-left:30px}.SearchAutocomplete__vR9Hk{position:relative}.AutocompleteItem__YIm7R{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:4px 16px;min-height:36px;width:100%;text-align:left;border:none;background-color:transparent;line-height:14px;font-size:12px;font-weight:400;color:var(--platform-text-primary-color);pointer-events:none}.AutocompleteItem--canBeSelected__jxk4z{cursor:pointer;pointer-events:auto}.AutocompleteItem--canBeSelected__jxk4z:hover{background-color:#0000001a}.AutocompleteHighlighter__LAFTV{overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical;word-break:break-all}.AutocompleteHighlighter__match__Wy1o2{font-weight:700}.DropdownList__-fHIk{width:100%;padding-bottom:8px;padding-top:8px;min-height:0;border:1px solid var(--platform-lines)}.AutocompleteItemDescription__4QYN5{font-size:.8em;line-height:1em;font-weight:500;color:var(--platform-text-secondary-color);margin-top:2px}.DropdownList__QTXXX{position:absolute;z-index:1;background-color:var(--platform-background-primary-color);border-radius:8px;box-shadow:0 1px 5px #1018281a;min-width:105px;padding:4px 0;transition:all .2s ease-in-out}.DropdownList--closed__pdL1Z{opacity:0;pointer-events:none;transform:translateY(-10px);visibility:hidden}.DropdownList--open__opzc9{display:flex;flex-direction:column;opacity:1;pointer-events:all;transform:translateY(0)}.DropdownList--left__xSwXR{right:0}.SkeletonListContainer__MKJhE{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch}.Skeleton__Ovpiw{animation:skeleton-pulse__ZqB1e 1s infinite alternate-reverse;background-image:none;background-clip:border-box;border:none;box-shadow:none;-webkit-box-decoration-break:clone;box-decoration-break:clone;color:transparent;outline:none;pointer-events:none;-webkit-user-select:none;user-select:none;cursor:default;display:block}@keyframes skeleton-pulse__ZqB1e{0%{background-color:var(--platform-skeleton-color-1)}to{background-color:var(--platform-skeleton-color-2)}}.tooltip__nUuSh{border-radius:8px;padding:8px 12px;font-size:12px;font-weight:var(--platform-tooltip-font-weight);line-height:18px;color:var(--platform-tooltip-color);background-color:var(--platform-tooltip-background-color);box-shadow:0 4px 10px 0 var(--platform-shadow-color);-webkit-user-select:none;user-select:none;pointer-events:none;animation-duration:.4s;animation-timing-function:cubic-bezier(.16,1,.3,1);will-change:transform,opacity}.tooltip__nUuSh[data-side=right]{animation-name:slideLeftAndFade__DYdE5}.tooltip__nUuSh[data-side=bottom]{animation-name:slideUpAndFade__itahf}.tooltipArrow__W2w-f{fill:var(--platform-tooltip-background-color)}@keyframes slideLeftAndFade__DYdE5{0%{opacity:0;transform:translate(-8px)}to{opacity:1;transform:translate(0)}}@keyframes slideUpAndFade__itahf{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translate(0)}}@keyframes rotate__EqlXe{to{transform:rotate(360deg)}}.spinner__qa7F6{width:80px;height:80px;border:6px solid var(--platform-color-white);border-bottom-color:#ffffff1a;border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotate__EqlXe 2s linear infinite}.spinner-dark__9A9-q{border-color:var(--platform-color-dark);border-bottom-color:#ffffff1a}.spinner-white__gRbtI{border-color:var(--platform-color-white);border-bottom-color:#ffffff1a}.spinner-success__otWGm{border-color:var(--platform-color-success);border-bottom-color:#ffffff1a}.spinner-danger__Bq5DM{border-color:var(--platform-color-danger);border-bottom-color:#ffffff1a}.spinner-warning__U900K{border-color:var(--platform-color-warning);border-bottom-color:#ffffff1a}.switch__0b2av{position:relative;display:inline-flex;align-items:center;width:44px;min-width:44px;height:24px;padding:0;border:none;border-radius:12px;background-color:#ccc;cursor:pointer;transition:background-color .2s ease;outline:none;font-size:0}.switch__0b2av:disabled{opacity:.5}.switch__0b2av:focus-visible{box-shadow:0 0 0 2px var(--platform-color-primary)}.switch__0b2av:hover:not(.disabled__KpauE){background-color:#bbb}.switch__0b2av.checked__2-JV-{background-color:var(--platform-color-primary)}.switch__0b2av.checked__2-JV-:hover:not(.disabled__KpauE){background-color:var(--platform-color-secondary)}.switch__0b2av.disabled__KpauE{opacity:.5;cursor:not-allowed;pointer-events:none}.thumb__fEuKD{position:absolute;top:2px;left:2px;width:20px;height:20px;background-color:#fff;border-radius:50%;transition:transform .2s ease;box-shadow:0 1px 3px #0000001a}.switch__0b2av.checked__2-JV- .thumb__fEuKD{transform:translate(20px)}[data-theme=dark] .switch__0b2av{background-color:#555}[data-theme=dark] .switch__0b2av:hover:not(.disabled__KpauE){background-color:#666}[data-theme=dark] .switch__0b2av.checked__2-JV-{background-color:var(--platform-color-primary)}[data-theme=dark] .switch__0b2av.checked__2-JV-:hover:not(.disabled__KpauE){background-color:var(--platform-color-secondary)}.tabs-list__rc10N{display:flex;position:relative}.tabs-list--horizontal__e1YW4{flex-direction:row;border-bottom:1px solid var(--platform-lines)}.tabs-list--vertical__huK05{flex-direction:column;border-right:none;width:200px}.tabs-trigger__D8R4R{position:relative;background:transparent;border:none;padding:12px 16px;font-size:14px;font-weight:500;color:var(--platform-text-secondary-color);cursor:pointer;transition:all .15s ease-in-out;white-space:nowrap;outline:none}.tabs-trigger__D8R4R:hover:not(.tabs-trigger--disabled__ezDWc){color:var(--platform-text-primary-color)}.tabs-trigger__D8R4R:focus-visible{outline:2px solid var(--platform-color-primary);outline-offset:2px;border-radius:4px}.tabs-trigger--horizontal__4jBFV{border-bottom:2px solid transparent;margin-bottom:-1px}.tabs-trigger--horizontal__4jBFV.tabs-trigger--active__S-Z-S{color:var(--platform-text-primary-color);border-bottom-color:var(--platform-text-primary-color)}.tabs-trigger--vertical__dNVIZ{border-left:none;border-right:3px solid transparent;margin-right:-8px;text-align:left;justify-content:flex-start;display:flex;width:calc(100% + 8px);border-radius:6px 0 0 6px;padding-right:19px}.tabs-trigger--vertical__dNVIZ:hover:not(.tabs-trigger--disabled__ezDWc):not(.tabs-trigger--active__S-Z-S){background-color:#0000000a}.tabs-trigger--vertical__dNVIZ.tabs-trigger--active__S-Z-S{color:var(--platform-text-primary-color);border-right-color:var(--platform-text-primary-color);background-color:var(--platform-background-primary-color);font-weight:600}.tabs-trigger--disabled__ezDWc{color:#9ca3af;cursor:not-allowed}.tabs-content__1d77o{padding:16px 0;outline:none}.tabs-content__1d77o:focus-visible{outline:2px solid var(--platform-color-primary);outline-offset:2px;border-radius:4px}.PasswordInput__GDJDN{position:relative}.PasswordInput__GDJDN input{padding-right:40px;box-sizing:border-box}.PasswordInput__GDJDN .eyeIcon__kDExG{position:absolute;top:50%;right:1em;transform:translateY(-50%)}.PasswordInput__GDJDN .eyeIcon__kDExG:hover{cursor:pointer}.Overlay__M5Z83{background-color:#0e12167f;position:fixed;top:0;right:0;bottom:0;left:0;animation:overlayShow__seU5M .15s cubic-bezier(.16,1,.3,1);z-index:var(--platform-modal-layer)}.Content__wAkP4{display:flex;position:relative;flex-direction:column;justify-content:flex-start;align-items:stretch;font-size:var(--admin-ui-base-font-size);z-index:calc(var(--platform-modal-layer) + 1);background-color:var(--platform-background-primary-color);border-radius:8px;overflow:hidden;box-shadow:#0e121659 0 10px 38px -10px,#0e121633 0 10px 20px -15px;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);animation:contentShow__rxphL .15s cubic-bezier(.16,1,.3,1)}.Content__wAkP4:focus{outline:none}@keyframes overlayShow__seU5M{0%{opacity:0}to{opacity:1}}@keyframes contentShow__rxphL{0%{opacity:0;transform:translate(-50%,-48%) scale(.96)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}.ExampleDialog__llNIZ{max-width:500px}.Header__VHxNf{display:flex;justify-content:space-between;align-items:center;background-color:var(--admin-ui-background-color-light);padding:16px 24px}.Content__I04qM{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;padding:24px;width:90vw;max-height:85vh;max-width:100%;margin-bottom:64px;overflow:auto}.Close__xSN-7{cursor:pointer}.Title__Dznh6{line-height:24px;font-size:20px;font-weight:700;color:var(--admin-ui-primary-text-color)}.Footer__-8gzQ{position:absolute;bottom:0;left:0;right:0;background-color:var(--admin-ui-background-color-light);display:flex;justify-content:flex-end;padding:16px 24px;gap:16px;box-shadow:0 -1px 6px #78787826}.Actions__kKF2Q{display:flex;gap:16px}.pill__vtGwB{border-radius:300px;min-width:4em;text-align:center;padding:3px 12px;font-size:.8em;font-weight:700;border:1px solid}.pill--solid__F-mR4{border-color:var(--pae-shell-color-secondary, #ED8525);background:var(--pae-shell-color-secondary, #ED8525);color:var(--pae-shell-color-white)}.pill--outline__gC-mh{border-color:var(--pae-shell-color-secondary, #ED8525);color:var(--pae-shell-color-secondary, #ED8525);background-color:var(--pae-shell-color-white)}.DialogContent__-WjG9{max-width:450px}.Message__AUgVP{color:var(--platform-text-primary-color);font-size:1.15em}.container__AjtYJ{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;height:100vh}.title__A2vCu{font-size:24px;font-weight:600;line-height:36px;color:var(--text-primary-color);padding-top:24px}.description__bP6Ig{font-size:16px;font-weight:400;line-height:24px;color:var(--text-secondary-color)}a.mailToText__SdlsE{color:var(--pae-shell-color-secondary);font-weight:500}.List__h09XG{display:flex;flex-direction:column;position:relative;overflow-y:auto}.Item__YMy2i{display:flex;flex-direction:column;padding:12px 16px;cursor:pointer;color:var(--admin-ui-primary-text-color)}.List--primary__J2pbx{gap:16px}.List--primary__J2pbx .Item__YMy2i{border:1px solid var(--admin-ui-border-color);border-radius:8px}.List--secondary__gi1ao .Item__YMy2i{border-top:1px solid var(--admin-ui-border-color);border-bottom:1px solid transparent}.List--secondary__gi1ao .Item--selected__yRWow{background:#a0a0a01a;border-top:1px solid var(--admin-ui-primary-color);border-bottom:1px solid var(--admin-ui-primary-color)}.List__h09XG .Title__RJmEW{display:flex;align-items:center;gap:8px;padding-right:16px;font-size:1em;line-height:1.15em;color:var(--admin-ui-primary-text-color);margin-bottom:4px}.List__h09XG .Description__DGyX2{font-size:.8em;line-height:1em;font-weight:500;color:var(--admin-ui-secondary-text-color)}.List__h09XG .Actions__UHP5l{position:absolute;right:16px}.List__h09XG .Action__q-R1I{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;padding:8px 16px;gap:12px;width:100%}.List__h09XG .Action__q-R1I:hover{background:var(--admin-ui-background-color-light)}.List__h09XG .Item--disabled__Ke1u-{background:var(--admin-ui-background-color-light);cursor:not-allowed;opacity:.5}.List--small__ijoSR .Item__YMy2i{padding:8px 12px;height:auto;font-size:1em}.List--medium__E1FEY .Item__YMy2i{padding:12px 16px;height:auto;font-size:1.1em}.List--large__T8tfz .Item__YMy2i{padding:16px 24px;height:auto;font-size:1.25em}.List__h09XG .Icon__dFr-L{display:flex;align-items:center;justify-content:center;width:1.4em;height:1.4em}.Navigation__uylxk{margin:0 auto;display:flex;justify-content:flex-end;width:100%;color:var(--platform-text-primary-color)}.PaginationContent__UpLw0{display:flex;align-items:center;gap:4px}.PaginationEllipsis__perWk{display:flex;width:2.5em;height:2.5em;justify-content:center;align-items:center}.PaginationEllipsis__perWk svg{width:1em;height:1em}.PaginationLink__GVUZj{display:inline-flex;align-items:center;justify-content:center;gap:.6em;padding:.5em;min-width:32px;border-radius:4px;font-size:1em;font-weight:500;border:1px solid transparent;cursor:pointer}.PaginationLink__GVUZj:focus{outline:none}.PaginationLink__GVUZj:hover{background-color:var(--platform-background-secondary-color)}.PaginationLink__GVUZj.Active__u1Ahy{border-color:var(--platform-lines)}.PaginationLink__GVUZj.Disabled__8WM0y{opacity:.8;pointer-events:none;cursor:default}.PaginationLink__GVUZj svg{width:1em;height:1em}.Prev__wp4hc{padding-right:12px}.Next__eVyL5{padding-left:12px}.TableContainer__osh6Z{border:1px solid var(--platform-lines);border-radius:1em;overflow:hidden}.TableHeader__sYa-8{padding:.6em .8em;font-size:1.4em;font-weight:600;width:100%;border-bottom:1px solid var(--platform-lines);color:var(--platform-text-primary-color)}.Table__2cIs3{border-collapse:collapse;width:100%}.Table__2cIs3 td,.Table__2cIs3 th{border-bottom:1px solid var(--platform-lines);padding:1em;font-weight:400;font-size:var(--platform-text-base-font-size);color:var(--platform-text-secondary-color)}.Table__2cIs3 td{color:var(--platform-text-primary-color)}.Table__2cIs3 tr:last-child td{border-bottom:none}.Table__2cIs3 thead th{font-weight:500;background-color:var(--platform-background-secondary-color)}.Table__2cIs3 tr{transition:background-color .2s ease-in-out;background-color:var(--platform-background-primary-color)}.Table__2cIs3 tr.selectable__WsGg1:hover{cursor:pointer;background-color:var(--platform-background-secondary-color)}.Table__2cIs3 .Cell__ZEv-K{display:flex;align-items:center;gap:4px;justify-content:flex-start}.Table__2cIs3 .Right__YoM1V{justify-content:flex-end}.Table__2cIs3 .Center__CF3tr{justify-content:center}.Table__2cIs3 .Sortable__JIV1V{cursor:pointer}.Table__2cIs3 .SortIcon__f0bBy{opacity:0;visibility:hidden;transition:opacity .2s ease-in-out,transform .2s ease-in-out}.Table__2cIs3 .SortIcon__f0bBy.Active__rJjxB{opacity:1;visibility:visible}.Table__2cIs3 .SortIcon__f0bBy.Rotate__7cwTK{transform:rotate(-180deg)}.Table__2cIs3 .Cell__ZEv-K:hover .SortIcon__f0bBy{opacity:1;visibility:visible}.Pagination__sbqMP{display:flex;justify-content:flex-end;margin-top:1em!important}.PointerNone__kQdQS{pointer-events:none}.EmptyStateContainer__Q9FEb{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1em;padding:2em 0}.EmptyStateContainer__Q9FEb .Message__IHK6M{font-size:1.15em;color:var(--platform-text-secondary-color)}.EmptyStateContainer__Q9FEb svg{color:var(--platform-text-secondary-color)}.alert__LblpE{position:relative;width:100%;border-radius:.8em;border:1px solid var(--platform-lines);padding:1em 1.2em;font-size:1em;display:grid;grid-template-columns:0 1fr;gap:.5em}.alert__LblpE:has(>svg){grid-template-columns:16px 1fr;gap:12px}.alert__LblpE>svg{margin-top:2px;width:16px;height:16px;color:inherit}.default__mgO6A{background-color:var(--platform-background-primary-color, #fff);color:var(--platform-text-primary-color, #111)}.destructive__bLNSM{background-color:var(--platform-background-primary-color, #fff);color:var(--platform-color-danger, #dc2626);border-color:var(--platform-color-danger, #dc2626)}.destructive__bLNSM>svg{color:inherit}.destructive__bLNSM [data-slot=alert-description]{color:var(--platform-color-danger, #dc2626)}.alertTitle__gblKf{grid-column-start:2;min-height:1em;font-weight:500;line-clamp:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.alertDescription__BuVHV{grid-column-start:2;display:grid;justify-items:start;gap:4px;font-size:1em;color:var(--platform-text-secondary-color)}.alertDescription__BuVHV p{line-height:1.5}
|
|
2
|
+
`,document.head.appendChild(J),E({logout:Au,useDynamicFonts:ps,useFeatureFlag:zl,useFeatureFlags:$g,useVariant:Mg});const cv=E("PlatformEvents",{auth:{SESSION_EXPIRED:"platform:auth:session-expired"},apps:{APP_CLICKED:"platform:apps:app-clicked"},shell:{NAVBAR_STATE_CHANGED:"platform:shell:navbar-state-changed",MENU_STATE_CHANGED:"platform:shell:menu-state-changed"}}),Pn="__PAE_GLOBAL_STATE__",Zi="__PAE_REACTIVE_GLOBAL_STATE__",Xi="__PAE_EXTENSIONS_POINTS_REGISTRY__",lo="__PAE_CUSTOMIZATIONS_LOADING_STATE_KEY__",hu="/auth/logout",pu=(e,t)=>{const[n,r]=L(t);return Q(()=>{const o=e.subscribe(i=>{r(i)});return()=>{o.unsubscribe()}},[r]),n},mu=(e,t,n)=>n.map((r,o)=>o===e?t(r):r),gu=(e,t,n)=>mu(n.findIndex(e),t,n),uo=(e,t)=>typeof e=="function"?e(t):e,Ji=(e,t)=>{const n=pu(e,t),r=te(o=>{e.next(uo(o,n))},[n]);return[n,r]},fo=E("usePAEState",()=>Ji(window[Zi],window[Pn])),Rn=E("useCatalog",()=>fo()[0].catalog),lv=E("useMutableCatalog",()=>{const e=Rn(),t=te(r=>{window[Zi].next({...window[Pn],catalog:uo(r,e)})},[e]),n=te((r,o)=>{t(i=>gu(s=>s.name===r,s=>{var a;return{...s,ui:{...s.ui,customProps:uo(o,((a=s.ui)==null?void 0:a.customProps)??{})}}},i))},[t]);return[e,t,n]}),vu=E("useLocation",()=>{const[e,t]=L(document.location.pathname);return Q(()=>{const n=()=>{t(window.location.pathname)};return window.addEventListener("popstate",n),()=>{window.removeEventListener("popstate",n)}},[t]),e});var yu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var es={exports:{}},On={},ts;function wu(){if(ts)return On;ts=1;/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.development.js
|
|
5
5
|
*
|
|
@@ -7,55 +7,55 @@ var uu=C=>{throw TypeError(C)};var Mi=(C,le,F)=>le.has(C)||uu("Cannot "+F);var b
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/return function(){var e=
|
|
11
|
-
`+
|
|
12
|
-
`),ge=
|
|
13
|
-
`),
|
|
14
|
-
`+z[
|
|
10
|
+
*/return function(){var e=Yn,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),w=Symbol.iterator,f="@@iterator";function v(y){if(y===null||typeof y!="object")return null;var P=w&&y[w]||y[f];return typeof P=="function"?P:null}var _=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(y){{for(var P=arguments.length,k=new Array(P>1?P-1:0),I=1;I<P;I++)k[I-1]=arguments[I];C("error",y,k)}}function C(y,P,k){{var I=_.ReactDebugCurrentFrame,q=I.getStackAddendum();q!==""&&(P+="%s",k=k.concat([q]));var K=k.map(function(W){return String(W)});K.unshift("Warning: "+P),Function.prototype.apply.call(console[y],console,K)}}var S=!1,T=!1,R=!1,A=!1,N=!1,$;$=Symbol.for("react.module.reference");function M(y){return!!(typeof y=="string"||typeof y=="function"||y===r||y===i||N||y===o||y===l||y===d||A||y===m||S||T||R||typeof y=="object"&&y!==null&&(y.$$typeof===h||y.$$typeof===p||y.$$typeof===s||y.$$typeof===a||y.$$typeof===c||y.$$typeof===$||y.getModuleId!==void 0))}function Z(y,P,k){var I=y.displayName;if(I)return I;var q=P.displayName||P.name||"";return q!==""?k+"("+q+")":k}function X(y){return y.displayName||"Context"}function V(y){if(y==null)return null;if(typeof y.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof y=="function")return y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case l:return"Suspense";case d:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case a:var P=y;return X(P)+".Consumer";case s:var k=y;return X(k._context)+".Provider";case c:return Z(y,y.render,"ForwardRef");case p:var I=y.displayName||null;return I!==null?I:V(y.type)||"Memo";case h:{var q=y,K=q._payload,W=q._init;try{return V(W(K))}catch{return null}}}return null}var Y=Object.assign,ce=0,re,oe,U,le,Te,zt,Xr;function Jr(){}Jr.__reactDisabledLog=!0;function ki(){{if(ce===0){re=console.log,oe=console.info,U=console.warn,le=console.error,Te=console.group,zt=console.groupCollapsed,Xr=console.groupEnd;var y={configurable:!0,enumerable:!0,value:Jr,writable:!0};Object.defineProperties(console,{info:y,log:y,warn:y,error:y,group:y,groupCollapsed:y,groupEnd:y})}ce++}}function ji(){{if(ce--,ce===0){var y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Y({},y,{value:re}),info:Y({},y,{value:oe}),warn:Y({},y,{value:U}),error:Y({},y,{value:le}),group:Y({},y,{value:Te}),groupCollapsed:Y({},y,{value:zt}),groupEnd:Y({},y,{value:Xr})})}ce<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Gn=_.ReactCurrentDispatcher,xn;function Ht(y,P,k){{if(xn===void 0)try{throw Error()}catch(q){var I=q.stack.trim().match(/\n( *(at )?)/);xn=I&&I[1]||""}return`
|
|
11
|
+
`+xn+y}}var Cn=!1,Wt;{var eo=typeof WeakMap=="function"?WeakMap:Map;Wt=new eo}function qn(y,P){if(!y||Cn)return"";{var k=Wt.get(y);if(k!==void 0)return k}var I;Cn=!0;var q=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var K;K=Gn.current,Gn.current=null,ki();try{if(P){var W=function(){throw Error()};if(Object.defineProperty(W.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(W,[])}catch(xe){I=xe}Reflect.construct(y,[],W)}else{try{W.call()}catch(xe){I=xe}y.call(W.prototype)}}else{try{throw Error()}catch(xe){I=xe}y()}}catch(xe){if(xe&&I&&typeof xe.stack=="string"){for(var z=xe.stack.split(`
|
|
12
|
+
`),ge=I.stack.split(`
|
|
13
|
+
`),ie=z.length-1,se=ge.length-1;ie>=1&&se>=0&&z[ie]!==ge[se];)se--;for(;ie>=1&&se>=0;ie--,se--)if(z[ie]!==ge[se]){if(ie!==1||se!==1)do if(ie--,se--,se<0||z[ie]!==ge[se]){var Re=`
|
|
14
|
+
`+z[ie].replace(" at new "," at ");return y.displayName&&Re.includes("<anonymous>")&&(Re=Re.replace("<anonymous>",y.displayName)),typeof y=="function"&&Wt.set(y,Re),Re}while(ie>=1&&se>=0);break}}}finally{Cn=!1,Gn.current=K,ji(),Error.prepareStackTrace=q}var Tn=y?y.displayName||y.name:"",qt=Tn?Ht(Tn):"";return typeof y=="function"&&Wt.set(y,qt),qt}function Vt(y,P,k){return qn(y,!1)}function to(y){var P=y.prototype;return!!(P&&P.isReactComponent)}function En(y,P,k){if(y==null)return"";if(typeof y=="function")return qn(y,to(y));if(typeof y=="string")return Ht(y);switch(y){case l:return Ht("Suspense");case d:return Ht("SuspenseList")}if(typeof y=="object")switch(y.$$typeof){case c:return Vt(y.render);case p:return En(y.type,P,k);case h:{var I=y,q=I._payload,K=I._init;try{return En(K(q),P,k)}catch{}}}return""}var Gt=Object.prototype.hasOwnProperty,no={},ro=_.ReactDebugCurrentFrame;function rt(y){if(y){var P=y._owner,k=En(y.type,y._source,P?P.type:null);ro.setExtraStackFrame(k)}else ro.setExtraStackFrame(null)}function Bg(y,P,k,I,q){{var K=Function.call.bind(Gt);for(var W in y)if(K(y,W)){var z=void 0;try{if(typeof y[W]!="function"){var ge=Error((I||"React class")+": "+k+" type `"+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof y[W]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ge.name="Invariant Violation",ge}z=y[W](P,W,I,k,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ie){z=ie}z&&!(z instanceof Error)&&(rt(q),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",I||"React class",k,W,typeof z),rt(null)),z instanceof Error&&!(z.message in no)&&(no[z.message]=!0,rt(q),x("Failed %s type: %s",k,z.message),rt(null))}}}var Ug=Array.isArray;function Di(y){return Ug(y)}function zg(y){{var P=typeof Symbol=="function"&&Symbol.toStringTag,k=P&&y[Symbol.toStringTag]||y.constructor.name||"Object";return k}}function Hg(y){try{return Jl(y),!1}catch{return!0}}function Jl(y){return""+y}function eu(y){if(Hg(y))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",zg(y)),Jl(y)}var tu=_.ReactCurrentOwner,Wg={key:!0,ref:!0,__self:!0,__source:!0},nu,ru;function Vg(y){if(Gt.call(y,"ref")){var P=Object.getOwnPropertyDescriptor(y,"ref").get;if(P&&P.isReactWarning)return!1}return y.ref!==void 0}function Gg(y){if(Gt.call(y,"key")){var P=Object.getOwnPropertyDescriptor(y,"key").get;if(P&&P.isReactWarning)return!1}return y.key!==void 0}function qg(y,P){typeof y.ref=="string"&&tu.current}function Qg(y,P){{var k=function(){nu||(nu=!0,x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",P))};k.isReactWarning=!0,Object.defineProperty(y,"key",{get:k,configurable:!0})}}function Yg(y,P){{var k=function(){ru||(ru=!0,x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",P))};k.isReactWarning=!0,Object.defineProperty(y,"ref",{get:k,configurable:!0})}}var Kg=function(y,P,k,I,q,K,W){var z={$$typeof:t,type:y,key:P,ref:k,props:W,_owner:K};return z._store={},Object.defineProperty(z._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(z,"_self",{configurable:!1,enumerable:!1,writable:!1,value:I}),Object.defineProperty(z,"_source",{configurable:!1,enumerable:!1,writable:!1,value:q}),Object.freeze&&(Object.freeze(z.props),Object.freeze(z)),z};function Zg(y,P,k,I,q){{var K,W={},z=null,ge=null;k!==void 0&&(eu(k),z=""+k),Gg(P)&&(eu(P.key),z=""+P.key),Vg(P)&&(ge=P.ref,qg(P,q));for(K in P)Gt.call(P,K)&&!Wg.hasOwnProperty(K)&&(W[K]=P[K]);if(y&&y.defaultProps){var ie=y.defaultProps;for(K in ie)W[K]===void 0&&(W[K]=ie[K])}if(z||ge){var se=typeof y=="function"?y.displayName||y.name||"Unknown":y;z&&Qg(W,se),ge&&Yg(W,se)}return Kg(y,z,ge,q,I,tu.current,W)}}var Li=_.ReactCurrentOwner,ou=_.ReactDebugCurrentFrame;function Sn(y){if(y){var P=y._owner,k=En(y.type,y._source,P?P.type:null);ou.setExtraStackFrame(k)}else ou.setExtraStackFrame(null)}var Ii;Ii=!1;function Ni(y){return typeof y=="object"&&y!==null&&y.$$typeof===t}function iu(){{if(Li.current){var y=V(Li.current.type);if(y)return`
|
|
15
15
|
|
|
16
|
-
Check the render method of \``+y+"`."}return""}}function
|
|
16
|
+
Check the render method of \``+y+"`."}return""}}function Xg(y){return""}var su={};function Jg(y){{var P=iu();if(!P){var k=typeof y=="string"?y:y.displayName||y.name;k&&(P=`
|
|
17
17
|
|
|
18
|
-
Check the top-level render call using <`+k+">.")}return
|
|
18
|
+
Check the top-level render call using <`+k+">.")}return P}}function au(y,P){{if(!y._store||y._store.validated||y.key!=null)return;y._store.validated=!0;var k=Jg(P);if(su[k])return;su[k]=!0;var I="";y&&y._owner&&y._owner!==Li.current&&(I=" It was passed a child from "+V(y._owner.type)+"."),Sn(y),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',k,I),Sn(null)}}function cu(y,P){{if(typeof y!="object")return;if(Di(y))for(var k=0;k<y.length;k++){var I=y[k];Ni(I)&&au(I,P)}else if(Ni(y))y._store&&(y._store.validated=!0);else if(y){var q=v(y);if(typeof q=="function"&&q!==y.entries)for(var K=q.call(y),W;!(W=K.next()).done;)Ni(W.value)&&au(W.value,P)}}}function ev(y){{var P=y.type;if(P==null||typeof P=="string")return;var k;if(typeof P=="function")k=P.propTypes;else if(typeof P=="object"&&(P.$$typeof===c||P.$$typeof===p))k=P.propTypes;else return;if(k){var I=V(P);Bg(k,y.props,"prop",I,y)}else if(P.PropTypes!==void 0&&!Ii){Ii=!0;var q=V(P);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",q||"Unknown")}typeof P.getDefaultProps=="function"&&!P.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function tv(y){{for(var P=Object.keys(y.props),k=0;k<P.length;k++){var I=P[k];if(I!=="children"&&I!=="key"){Sn(y),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",I),Sn(null);break}}y.ref!==null&&(Sn(y),x("Invalid attribute `ref` supplied to `React.Fragment`."),Sn(null))}}var lu={};function uu(y,P,k,I,q,K){{var W=M(y);if(!W){var z="";(y===void 0||typeof y=="object"&&y!==null&&Object.keys(y).length===0)&&(z+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ge=Xg();ge?z+=ge:z+=iu();var ie;y===null?ie="null":Di(y)?ie="array":y!==void 0&&y.$$typeof===t?(ie="<"+(V(y.type)||"Unknown")+" />",z=" Did you accidentally export a JSX literal instead of a component?"):ie=typeof y,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ie,z)}var se=Zg(y,P,k,q,K);if(se==null)return se;if(W){var Re=P.children;if(Re!==void 0)if(I)if(Di(Re)){for(var Tn=0;Tn<Re.length;Tn++)cu(Re[Tn],y);Object.freeze&&Object.freeze(Re)}else x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else cu(Re,y)}if(Gt.call(P,"key")){var qt=V(y),xe=Object.keys(P).filter(function(av){return av!=="key"}),$i=xe.length>0?"{key: someKey, "+xe.join(": ..., ")+": ...}":"{key: someKey}";if(!lu[qt+$i]){var sv=xe.length>0?"{"+xe.join(": ..., ")+": ...}":"{}";x(`A props object containing a "key" prop is being spread into JSX:
|
|
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}
|
|
23
|
+
<%s key={someKey} {...props} />`,$i,qt,sv,qt),lu[qt+$i]=!0}}return y===r?tv(se):ev(se),se}}function nv(y,P,k){return uu(y,P,k,!0)}function rv(y,P,k){return uu(y,P,k,!1)}var ov=rv,iv=nv;On.Fragment=r,On.jsx=ov,On.jsxs=iv}(),On}es.exports=wu();var u=es.exports;const ns=Kn(null),rs=({module:e,children:t})=>u.jsx(ns.Provider,{value:e,children:t});rs.displayName="PAEModule";const Xn=E("useModuleMetadata",()=>{const e=Qt(ns);if(!e)throw new Error("Module metadata was not setup yet !!");return e});function ho(){if(!window[Pn])throw new Error("PAE Global state not found.");return window[Pn]}const os=E("getApplications",()=>{const{authUser:{applications:e}}=ho();return e||[]}),_u=E("getOperations",e=>os().filter(t=>t.isGlobal||t.name===e).flatMap(t=>t.operations)),xu=E("useOperations",()=>{const{application:e}=Xn();return Ae(()=>_u(e),[e])}),Cu=E("hasAccess",e=>(...t)=>t.every(n=>e.some(r=>r.name===n))),po=E("useAuth",()=>{const[{authUser:e}]=fo(),t=xu();return{authUser:e,hasAccess:Ae(()=>Cu(t),[t])}}),uv=E("useHasNoSession",()=>{const{authUser:e}=po();return!e||e.id==="anon"}),Eu=E("useModuleConfig",()=>{var e;return((e=Xn().ui)==null?void 0:e.customProps)??{}}),is=E("useModule",e=>{const t=Rn();return Ae(()=>{const n=t.find(r=>r.name===e);if(!n)throw new Error(`Could not find the module [${e}] in the local catalog !`);return n},[t,e])}),Su=E("useModuleConfigByName",e=>{var t,n;return((n=(t=is(e))==null?void 0:t.ui)==null?void 0:n.customProps)??{}}),Tu=e=>e.replace(/\/+/g,"/"),dv=E("useModuleCommonPaths",(e,t="only-base-path")=>{const{apiDocs:n,health:r,version:o,changelog:i}=(e==null?void 0:e.commonPaths)||{},s=(a,c="")=>{if(a===void 0&&!c)return;const l=a??c;if(t==="only-base-path")return l;const d=Tu(`${e.baseUrl}/${l}`);return t==="with-module-base"?d:`${document.location.origin}${d}`};return{apiDocsPath:s(n,"/api-docs-json"),healthPath:s(r,"/health"),versionPath:s(o,"/version"),changelogPath:s(i,"/changelog")}});function Au(){window.open(hu,"_self")}const fv=E("navigateTo",e=>Yi(e)),Pu=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,}$/,hv=E("isValidEmail",e=>Pu.test(e)),pv=E("getInitials",(e,t=2)=>{if(!e)return"";const n=e.split(" ");return n.length===1?n.join("").slice(0,t):n.map(r=>r[0]).join("").slice(0,t)}),ss=e=>e.type==="app",Ru=e=>e.modules.some(ss)&&e.route&&e.route!=="/",as=e=>{const{catalog:t}=ho();return Jn(t.filter(n=>n.application===e))},Jn=(e=[])=>e.find(t=>{var n;return ss(t)&&((n=t.ui)==null?void 0:n.route)!=="/"}),Ou=E("useApplications",()=>{const e=Rn();return Ae(()=>os().map(n=>{var i,s,a;const r=ku(e,n.name),o=Jn(r);return{name:n.name,displayName:((s=(i=o==null?void 0:o.ui)==null?void 0:i.customProps)==null?void 0:s.overrideApplicationDisplayName)??n.displayName,modules:r,route:(a=o==null?void 0:o.ui)==null?void 0:a.route,roles:[],operations:n.operations}}),[e])}),ku=(e,t)=>e.filter(n=>n.application===t)||[],ju=E("useUIApplications",()=>{const e=Ou();return Ae(()=>e.filter(Ru),[e])}),Du=E("useApplicationUIModule",e=>Ae(()=>e?as(e.name):void 0,[e])),it=new Map,Lu=e=>{try{const{catalog:t}=ho(),n=t.find(r=>r.name===e);return n!=null&&n.version?`${e}@${n.version}`:e}catch{return e}},mo=E("useApplicationJSModule",e=>{const[t,n]=L(null);return Q(()=>{(async()=>{if(!e){n(null);return}try{const o=Lu(e);if(it.has(o)){const s=it.get(o);n(s);return}const i=await System.import(e);it.set(o,i),n(i)}catch(o){console.error(`Error importing module ${e}: ${o.message}`),n(null)}})()},[e,n]),t}),Iu=e=>{e?(Array.from(it.keys()).filter(n=>n.startsWith(e)).forEach(n=>it.delete(n)),console.log(`[useApplicationJSModule] Cleared cache for module: ${e}`)):(it.clear(),console.log("[useApplicationJSModule] Cleared all module cache"))};typeof window<"u"&&(window.PAE={...window.PAE,clearModuleCache:Iu,getModuleCacheSize:()=>it.size,getModuleCacheKeys:()=>Array.from(it.keys())});const Nu=E("useApplicationIcon",e=>{const t=typeof e=="string"?as(e):Jn(e==null?void 0:e.modules),n=mo(t==null?void 0:t.name);return n==null?void 0:n.icon}),$u=E("useModuleMenu",e=>{const t=Jn(e==null?void 0:e.modules),n=mo(t==null?void 0:t.name),[r,o]=L(!1),[i,s]=L({}),a=async()=>(typeof(n==null?void 0:n.menu)=="function"?await n.menu():n==null?void 0:n.menu)||[],c=async()=>{if(!(n!=null&&n.menu))return[];o(!0);const p=cs((e==null?void 0:e.operations)||[]),h=(await a()).map(m=>{const{operations:w,items:f,path:v}=m;if(w!=null&&w.length&&!p(w))return null;const _=(f||[]).filter(x=>{var C;return!((C=x==null?void 0:x.operations)!=null&&C.length)||p(x.operations)});return!_.length&&!v?null:{...m,items:_}}).filter(Boolean);return o(!1),h},l=async()=>{const p=await c();e&&s(h=>({...h,[e.name]:p}))};Q(()=>{l()},[n==null?void 0:n.menu]);const d=Ae(()=>e?i[e.name]||[]:[],[i,e]);return{loading:r,menu:d}}),cs=e=>t=>t.every(n=>e.some(r=>r.name===n));/**
|
|
24
24
|
* @license lucide-react v0.511.0 - ISC
|
|
25
25
|
*
|
|
26
26
|
* This source code is licensed under the ISC license.
|
|
27
27
|
* See the LICENSE file in the root directory of this source tree.
|
|
28
|
-
*/const Mu=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()
|
|
28
|
+
*/const Mu=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Fu=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),ls=e=>{const t=Fu(e);return t.charAt(0).toUpperCase()+t.slice(1)},us=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Bu=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
|
29
29
|
* @license lucide-react v0.511.0 - ISC
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the ISC license.
|
|
32
32
|
* See the LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var
|
|
33
|
+
*/var Uu={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
34
34
|
* @license lucide-react v0.511.0 - ISC
|
|
35
35
|
*
|
|
36
36
|
* This source code is licensed under the ISC license.
|
|
37
37
|
* See the LICENSE file in the root directory of this source tree.
|
|
38
|
-
*/const
|
|
38
|
+
*/const zu=B(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...a},c)=>An("svg",{ref:c,...Uu,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:us("lucide",o),...!i&&!Bu(a)&&{"aria-hidden":"true"},...a},[...s.map(([l,d])=>An(l,d)),...Array.isArray(i)?i:[i]]));/**
|
|
39
39
|
* @license lucide-react v0.511.0 - ISC
|
|
40
40
|
*
|
|
41
41
|
* This source code is licensed under the ISC license.
|
|
42
42
|
* See the LICENSE file in the root directory of this source tree.
|
|
43
|
-
*/const
|
|
43
|
+
*/const Hu=(e,t)=>{const n=B(({className:r,...o},i)=>An(zu,{ref:i,iconNode:t,className:us(`lucide-${Mu(ls(e))}`,`lucide-${e}`,r),...o}));return n.displayName=ls(e),n};/**
|
|
44
44
|
* @license lucide-react v0.511.0 - ISC
|
|
45
45
|
*
|
|
46
46
|
* This source code is licensed under the ISC license.
|
|
47
47
|
* See the LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/const Hu
|
|
48
|
+
*/const Wu=Hu("book-text",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M8 11h8",key:"vwpz6n"}],["path",{d:"M8 7h6",key:"1f0q6e"}]]),Vu=E("useDocumentationMenuItems",e=>{const t=Rn();return Ae(()=>{if(!e)return[];const n=t.filter(o=>o.type==="documentation"&&o.application===e.name),r=cs(e.operations||[]);return n.filter(o=>{var i,s;return(s=(i=o.authorization)==null?void 0:i.operations)!=null&&s.length?r(o.authorization.operations):!0}).map(o=>{var i;return{label:o.displayName,externalUrl:o.baseUrl,target:"_blank",align:"bottom",Icon:An(Wu,{size:20}),operations:((i=o.authorization)==null?void 0:i.operations)||[]}})},[t,e])}),gv=E("useApplicationMenu",e=>{const{menu:t,loading:n}=$u(e),r=Vu(e),o=Ae(()=>[...t,...r],[t,r]);return{loading:n,menu:o}});function ee(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function St(e){return function t(n){return arguments.length===0||ee(n)?t:e.apply(this,arguments)}}function st(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return ee(n)?t:St(function(o){return e(n,o)});default:return ee(n)&&ee(r)?t:ee(n)?St(function(o){return e(o,r)}):ee(r)?St(function(o){return e(n,o)}):e(n,r)}}}function go(e){return function t(n,r,o){switch(arguments.length){case 0:return t;case 1:return ee(n)?t:st(function(i,s){return e(n,i,s)});case 2:return ee(n)&&ee(r)?t:ee(n)?st(function(i,s){return e(i,r,s)}):ee(r)?st(function(i,s){return e(n,i,s)}):St(function(i){return e(n,r,i)});default:return ee(n)&&ee(r)&&ee(o)?t:ee(n)&&ee(r)?st(function(i,s){return e(i,s,o)}):ee(n)&&ee(o)?st(function(i,s){return e(i,r,s)}):ee(r)&&ee(o)?st(function(i,s){return e(n,i,s)}):ee(n)?St(function(i){return e(i,r,o)}):ee(r)?St(function(i){return e(n,i,o)}):ee(o)?St(function(i){return e(n,r,i)}):e(n,r,o)}}}function er(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function ds(e){return Object.prototype.toString.call(e)==="[object Object]"}var Gu=go(function(t,n,r){var o=t(n),i=t(r);return o>i?-1:o<i?1:0}),qu=go(function(t,n,r){var o={},i;n=n||{},r=r||{};for(i in n)er(i,n)&&(o[i]=er(i,r)?t(i,n[i],r[i]):n[i]);for(i in r)er(i,r)&&!er(i,o)&&(o[i]=r[i]);return o}),Qu=go(function e(t,n,r){return qu(function(o,i,s){return ds(i)&&ds(s)?e(t,i,s):t(o,i,s)},n,r)}),Yu=st(function(t,n){return Qu(function(r,o,i){return i},t,n)}),Ku=st(function(t,n){return Array.prototype.slice.call(n,0).sort(function(r,o){for(var i=0,s=0;i===0&&s<t.length;)i=t[s](r,o),s+=1;return i})});const fs=E("useCurrentApplication",()=>{const e=vu(),t=ju();return Ae(()=>Zu(e,t),[e,t])}),Zu=(e,t)=>Ku([Gu(Xu)],t).find(n=>n.route&&e.startsWith(n.route)),Xu=e=>{var t;return((t=e==null?void 0:e.route)==null?void 0:t.length)||-1},Ju=E("useCurrentApplicationName",()=>{var e;return(e=fs())==null?void 0:e.name}),vv=E("useCurrentJSModule",()=>{const e=fs(),t=Du(e);return mo(t==null?void 0:t.name)}),ed=E("useServiceBaseURL",(e,t)=>{const r=Rn().find(o=>o.name===e);if(!r){if(t)return null;throw new Error(`Service with name [${e}] not available in the catalog`)}return r.baseUrl}),hs=E("useServiceInvoker",(e,t)=>{const n=ed(e,!!t)??t;return te((r,o)=>{const s={Accept:"application/json",...(o==null?void 0:o.body)instanceof FormData?{}:{"Content-Type":"application/json"},...o==null?void 0:o.headers};return fetch(td(`${n}${r}`),{...o,headers:s})},[n])}),td=e=>e.replace(/\/+/g,"/"),nd=(e,t)=>n=>({timestamp:new Date(new Date().toUTCString()).toISOString(),module:t.name,moduleVersion:t.version,application:t.application,user:e.username,...n}),rd=(e,t,n)=>async r=>{if(r.length===0)throw new Error("Invalid call to trackEvents with an empty array of events!");const o=await e("/event",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r.map(nd(t,n)))});if(!o.ok)throw new Error(`Error publishing habits event ${o.statusText}`)},od="@bluealba/pae-habits-service",id=E("useTrackEvents",()=>{const{authUser:e}=po(),t=Xn(),n=hs(od);return te(rd(n,e,t),[n,e,t])}),yv=E("useTrackEvent",()=>{const e=id();return te((t,n)=>e([{name:t,data:n}]),[e])}),sd=E("useExtensionPoint",e=>{const t=Xn(),n=window[Xi],[r,o]=L(null);return Q(()=>n.defineExtensionPoint(t,e,i=>{o(()=>i)}),[o]),r}),ad=E("useExtendExtensionPoint",(e,t,n)=>{Q(()=>window[Xi].setExtensionPoint(e,t,n),[])}),cd=E("usePlatformEventListener",(e,t)=>{Q(()=>(window.addEventListener(e,t),()=>window.removeEventListener(e,t)),[e,t])}),ld=E("useDynamicStyleSheet",e=>{const{cssCustomizationLoadingDelay:t=1e3}=Eu();Q(()=>{if(!e)return;const n=document.createElement("style");return setTimeout(()=>{n.innerHTML=e,document.head.append(n)},t),()=>n&&n.remove()},[e])}),ud=e=>{var t;return(t=e.split(/[#?]/)[0].split(".").pop())==null?void 0:t.trim()},dd={woff2:"woff2",woff:"woff",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg"},fd=e=>{const t=ud(e);return t?dd[t]:void 0},hd=(e,t)=>{const n=t??fd(e);return n?`format(${n})`:""};function ps(e){const[t,n]=L(!1);return Q(()=>{if(!(e!=null&&e.length))return;const r=document.createElement("style");r.setAttribute("data-generated-fonts","true");const o=e.flatMap(({fontFamily:s,variants:a})=>a.map(({path:c,fontWeight:l,format:d})=>`
|
|
49
49
|
@font-face {
|
|
50
50
|
font-family: "${s}";
|
|
51
|
-
src: url("${c}") ${
|
|
52
|
-
font-weight: ${
|
|
51
|
+
src: url("${c}") ${hd(c,d)};
|
|
52
|
+
font-weight: ${l};
|
|
53
53
|
font-style: normal;
|
|
54
54
|
}
|
|
55
55
|
`)).join(`
|
|
56
|
-
`);return r.innerHTML=o,document.head.appendChild(r),(async()=>{try{await Promise.all(e.flatMap(({fontFamily:s,variants:a})=>a.map(({fontWeight:c})=>document.fonts.load(`normal ${c} 1em "${s}"`))))}finally{n(!0)}})(),()=>{document.head.removeChild(r)}},[e]),
|
|
56
|
+
`);return r.innerHTML=o,document.head.appendChild(r),(async()=>{try{await Promise.all(e.flatMap(({fontFamily:s,variants:a})=>a.map(({fontWeight:c})=>document.fonts.load(`normal ${c} 1em "${s}"`))))}finally{n(!0)}})(),()=>{document.head.removeChild(r)}},[e]),Q(()=>{!t&&!(e!=null&&e.length)&&n(!0)},[e,t]),{fontsLoaded:t}}var vo=function(e,t){return vo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},vo(e,t)};function kn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");vo(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Me=function(){return Me=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Me.apply(this,arguments)};function ms(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function yo(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function bo(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function tr(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function qe(e){return typeof e=="function"}function gs(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var wo=gs(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
57
57
|
`+n.map(function(r,o){return o+1+") "+r.toString()}).join(`
|
|
58
|
-
`):"",this.name="UnsubscriptionError",this.errors=n}});function wo(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var er=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,o,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=vo(s),c=a.next();!c.done;c=a.next()){var u=c.value;u.remove(this)}}catch(f){t={error:f}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else s.remove(this);var d=this.initialTeardown;if(qe(d))try{d()}catch(f){i=f instanceof bo?f.errors:[f]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var p=vo(h),g=p.next();!g.done;g=p.next()){var w=g.value;try{bs(w)}catch(f){i=i??[],f instanceof bo?i=Jn(Jn([],yo(i)),yo(f.errors)):i.push(f)}}}catch(f){r={error:f}}finally{try{g&&!g.done&&(o=p.return)&&o.call(p)}finally{if(r)throw r.error}}}if(i)throw new bo(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)bs(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&wo(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&wo(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),vs=er.EMPTY;function ys(e){return e instanceof er||e&&"closed"in e&&qe(e.remove)&&qe(e.add)&&qe(e.unsubscribe)}function bs(e){qe(e)?e():e.unsubscribe()}var pd={Promise:void 0},hd={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,Jn([e,t],yo(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function md(e){hd.setTimeout(function(){throw e})}function ws(){}function tr(e){e()}var _s=function(e){On(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,ys(n)&&n.add(r)):r.destination=yd,r}return t.create=function(n,r,o){return new _o(n,r,o)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(er),gd=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){nr(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){nr(r)}else nr(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){nr(n)}},e}(),_o=function(e){On(t,e);function t(n,r,o){var i=e.call(this)||this,s;return qe(n)||!n?s={next:n??void 0,error:r??void 0,complete:o??void 0}:s=n,i.destination=new gd(s),i}return t}(_s);function nr(e){md(e)}function vd(e){throw e}var yd={closed:!0,next:ws,error:vd,complete:ws},bd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function wd(e){return e}function _d(e){return e.length===0?wd:e.length===1?e[0]:function(n){return e.reduce(function(r,o){return o(r)},n)}}var xs=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var o=this,i=Cd(t)?t:new _o(t,n,r);return tr(function(){var s=o,a=s.operator,c=s.source;i.add(a?a.call(i,c):c?o._subscribe(i):o._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=Cs(n),new n(function(o,i){var s=new _o({next:function(a){try{t(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});r.subscribe(s)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[bd]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return _d(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=Cs(t),new t(function(r,o){var i;n.subscribe(function(s){return i=s},function(s){return o(s)},function(){return r(i)})})},e.create=function(t){return new e(t)},e}();function Cs(e){var t;return(t=e??pd.Promise)!==null&&t!==void 0?t:Promise}function xd(e){return e&&qe(e.next)&&qe(e.error)&&qe(e.complete)}function Cd(e){return e&&e instanceof _s||xd(e)&&ys(e)}var Ed=gs(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Es=function(e){On(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new Ss(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new Ed},t.prototype.next=function(n){var r=this;tr(function(){var o,i;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=vo(r.currentObservers),a=s.next();!a.done;a=s.next()){var c=a.value;c.next(n)}}catch(u){o={error:u}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}}})},t.prototype.error=function(n){var r=this;tr(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;tr(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,o=this,i=o.hasError,s=o.isStopped,a=o.observers;return i||s?vs:(this.currentObservers=null,a.push(n),new er(function(){r.currentObservers=null,wo(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,o=r.hasError,i=r.thrownError,s=r.isStopped;o?n.error(i):s&&n.complete()},t.prototype.asObservable=function(){var n=new xs;return n.source=this,n},t.create=function(n,r){return new Ss(n,r)},t}(xs),Ss=function(e){On(t,e);function t(n,r){var o=e.call(this)||this;return o.destination=n,o.source=r,o}return t.prototype.next=function(n){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,n)},t.prototype.error=function(n){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&o!==void 0?o:vs},t}(Es),Sd=function(e){On(t,e);function t(n){var r=e.call(this)||this;return r._value=n,r}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(n){var r=e.prototype._subscribe.call(this,n);return!r.closed&&n.next(this._value),r},t.prototype.getValue=function(){var n=this,r=n.hasError,o=n.thrownError,i=n._value;if(r)throw o;return this._throwIfClosed(),i},t.prototype.next=function(n){e.prototype.next.call(this,this._value=n)},t}(Es);const hv=C("usePlatformCustomization",e=>{const{fontsLoaded:t}=hs(e.fonts);cd(e.styleSheet);const n=()=>{const r=new Sd(!0);window[co]=r};K(()=>{t&&window[co].next(!1)},[t]),K(()=>{n()},[])}),mv=C("usePAECustomizationsLoadingState",()=>{const e=window[co];return Xi(e,e.getValue()??void 0)}),xo="theme",Ts=()=>document.documentElement.dataset[xo]==="dark"?"dark":"light",gv=C("useGetPlatformTheme",()=>{const[e,t]=F(Ts());return K(()=>{const n=document.documentElement,r=()=>t(Ts),o=new MutationObserver(i=>{for(const s of i)s.type==="attributes"&&s.attributeName===`data-${xo}`&&r()});return o.observe(n,{attributes:!0,attributeFilter:[`data-${xo}`]}),r(),()=>{o.disconnect()}},[]),e}),vv=C("platformHaveAnyCustomization",e=>e!==void 0),yv=C("isPlatformCustomizationCompleted",e=>e!==!0);let Td={data:""},Ad=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Td,Pd=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Rd=/\/\*[^]*?\*\/| +/g,As=/\n+/g,at=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+s+";":r+=i[1]=="f"?at(s,i):i+"{"+at(s,i[1]=="k"?"":t)+"}":typeof s=="object"?r+=at(s,t?t.replace(/([^,])+/g,a=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,a):a?a+" "+c:c)):i):s!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=at.p?at.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Qe={},Ps=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Ps(e[n]);return t}return e},Od=(e,t,n,r,o)=>{let i=Ps(e),s=Qe[i]||(Qe[i]=(c=>{let u=0,d=11;for(;u<c.length;)d=101*d+c.charCodeAt(u++)>>>0;return"go"+d})(i));if(!Qe[s]){let c=i!==e?e:(u=>{let d,h,p=[{}];for(;d=Pd.exec(u.replace(Rd,""));)d[4]?p.shift():d[3]?(h=d[3].replace(As," ").trim(),p.unshift(p[0][h]=p[0][h]||{})):p[0][d[1]]=d[2].replace(As," ").trim();return p[0]})(e);Qe[s]=at(o?{["@keyframes "+s]:c}:c,n?"":"."+s)}let a=n&&Qe.g?Qe.g:null;return n&&(Qe.g=Qe[s]),((c,u,d,h)=>{h?u.data=u.data.replace(h,c):u.data.indexOf(c)===-1&&(u.data=d?c+u.data:u.data+c)})(Qe[s],t,r,a),s},kd=(e,t,n)=>e.reduce((r,o,i)=>{let s=t[i];if(s&&s.call){let a=s(n),c=a&&a.props&&a.props.className||/^go/.test(a)&&a;s=c?"."+c:a&&typeof a=="object"?a.props?"":at(a,""):a===!1?"":a}return r+o+(s??"")},"");function rr(e){let t=this||{},n=e.call?e(t.p):e;return Od(n.unshift?n.raw?kd(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,Ad(t.target),t.g,t.o,t.k)}let Rs,Co,Eo;rr.bind({g:1});let Ye=rr.bind({k:1});function jd(e,t,n,r){at.p=t,Rs=e,Co=n,Eo=r}function ct(e,t){let n=this||{};return function(){let r=arguments;function o(i,s){let a=Object.assign({},i),c=a.className||o.className;n.p=Object.assign({theme:Co&&Co()},a),n.o=/ *go\d+/.test(c),a.className=rr.apply(n,r)+(c?" "+c:"");let u=e;return e[0]&&(u=a.as||e,delete a.as),Eo&&u[0]&&Eo(a),Rs(u,a)}return o}}var Dd=e=>typeof e=="function",or=(e,t)=>Dd(e)?e(t):e,Ld=(()=>{let e=0;return()=>(++e).toString()})(),Os=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Id=20,ir=new Map,Nd=1e3,ks=e=>{if(ir.has(e))return;let t=setTimeout(()=>{ir.delete(e),Tt({type:4,toastId:e})},Nd);ir.set(e,t)},Md=e=>{let t=ir.get(e);t&&clearTimeout(t)},So=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Id)};case 1:return t.toast.id&&Md(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:n}=t;return e.toasts.find(i=>i.id===n.id)?So(e,{type:1,toast:n}):So(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?ks(r):e.toasts.forEach(i=>{ks(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===r||r===void 0?{...i,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(i=>({...i,pauseDuration:i.pauseDuration+o}))}}},sr=[],ar={toasts:[],pausedAt:void 0},Tt=e=>{ar=So(ar,e),sr.forEach(t=>{t(ar)})},$d={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Fd=(e={})=>{let[t,n]=F(ar);K(()=>(sr.push(n),()=>{let o=sr.indexOf(n);o>-1&&sr.splice(o,1)}),[t]);let r=t.toasts.map(o=>{var i,s;return{...e,...e[o.type],...o,duration:o.duration||((i=e[o.type])==null?void 0:i.duration)||(e==null?void 0:e.duration)||$d[o.type],style:{...e.style,...(s=e[o.type])==null?void 0:s.style,...o.style}}});return{...t,toasts:r}},Bd=(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)||Ld()}),kn=e=>(t,n)=>{let r=Bd(t,e,n);return Tt({type:2,toast:r}),r.id},Ce=(e,t)=>kn("blank")(e,t);Ce.error=kn("error"),Ce.success=kn("success"),Ce.loading=kn("loading"),Ce.custom=kn("custom"),Ce.dismiss=e=>{Tt({type:3,toastId:e})},Ce.remove=e=>Tt({type:4,toastId:e}),Ce.promise=(e,t,n)=>{let r=Ce.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(o=>(Ce.success(or(t.success,o),{id:r,...n,...n==null?void 0:n.success}),o)).catch(o=>{Ce.error(or(t.error,o),{id:r,...n,...n==null?void 0:n.error})}),e};var Ud=(e,t)=>{Tt({type:1,toast:{id:e,height:t}})},zd=()=>{Tt({type:5,time:Date.now()})},Hd=e=>{let{toasts:t,pausedAt:n}=Fd(e);K(()=>{if(n)return;let i=Date.now(),s=t.map(a=>{if(a.duration===1/0)return;let c=(a.duration||0)+a.pauseDuration-(i-a.createdAt);if(c<0){a.visible&&Ce.dismiss(a.id);return}return setTimeout(()=>Ce.dismiss(a.id),c)});return()=>{s.forEach(a=>a&&clearTimeout(a))}},[t,n]);let r=ue(()=>{n&&Tt({type:6,time:Date.now()})},[n]),o=ue((i,s)=>{let{reverseOrder:a=!1,gutter:c=8,defaultPosition:u}=s||{},d=t.filter(g=>(g.position||u)===(i.position||u)&&g.height),h=d.findIndex(g=>g.id===i.id),p=d.filter((g,w)=>w<h&&g.visible).length;return d.filter(g=>g.visible).slice(...a?[p+1]:[0,p]).reduce((g,w)=>g+(w.height||0)+c,0)},[t]);return{toasts:t,handlers:{updateHeight:Ud,startPause:zd,endPause:r,calculateOffset:o}}},Wd=Ye`
|
|
58
|
+
`):"",this.name="UnsubscriptionError",this.errors=n}});function _o(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var nr=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,o,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=yo(s),c=a.next();!c.done;c=a.next()){var l=c.value;l.remove(this)}}catch(f){t={error:f}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else s.remove(this);var d=this.initialTeardown;if(qe(d))try{d()}catch(f){i=f instanceof wo?f.errors:[f]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var h=yo(p),m=h.next();!m.done;m=h.next()){var w=m.value;try{bs(w)}catch(f){i=i??[],f instanceof wo?i=tr(tr([],bo(i)),bo(f.errors)):i.push(f)}}}catch(f){r={error:f}}finally{try{m&&!m.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}}if(i)throw new wo(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)bs(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&_o(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&_o(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),vs=nr.EMPTY;function ys(e){return e instanceof nr||e&&"closed"in e&&qe(e.remove)&&qe(e.add)&&qe(e.unsubscribe)}function bs(e){qe(e)?e():e.unsubscribe()}var pd={Promise:void 0},md={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,tr([e,t],bo(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function gd(e){md.setTimeout(function(){throw e})}function ws(){}function rr(e){e()}var _s=function(e){kn(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,ys(n)&&n.add(r)):r.destination=bd,r}return t.create=function(n,r,o){return new xo(n,r,o)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(nr),vd=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){or(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){or(r)}else or(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){or(n)}},e}(),xo=function(e){kn(t,e);function t(n,r,o){var i=e.call(this)||this,s;return qe(n)||!n?s={next:n??void 0,error:r??void 0,complete:o??void 0}:s=n,i.destination=new vd(s),i}return t}(_s);function or(e){gd(e)}function yd(e){throw e}var bd={closed:!0,next:ws,error:yd,complete:ws},wd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function _d(e){return e}function xd(e){return e.length===0?_d:e.length===1?e[0]:function(n){return e.reduce(function(r,o){return o(r)},n)}}var xs=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var o=this,i=Ed(t)?t:new xo(t,n,r);return rr(function(){var s=o,a=s.operator,c=s.source;i.add(a?a.call(i,c):c?o._subscribe(i):o._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=Cs(n),new n(function(o,i){var s=new xo({next:function(a){try{t(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});r.subscribe(s)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[wd]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return xd(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=Cs(t),new t(function(r,o){var i;n.subscribe(function(s){return i=s},function(s){return o(s)},function(){return r(i)})})},e.create=function(t){return new e(t)},e}();function Cs(e){var t;return(t=e??pd.Promise)!==null&&t!==void 0?t:Promise}function Cd(e){return e&&qe(e.next)&&qe(e.error)&&qe(e.complete)}function Ed(e){return e&&e instanceof _s||Cd(e)&&ys(e)}var Sd=gs(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Es=function(e){kn(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new Ss(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new Sd},t.prototype.next=function(n){var r=this;rr(function(){var o,i;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=yo(r.currentObservers),a=s.next();!a.done;a=s.next()){var c=a.value;c.next(n)}}catch(l){o={error:l}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}}})},t.prototype.error=function(n){var r=this;rr(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var o=r.observers;o.length;)o.shift().error(n)}})},t.prototype.complete=function(){var n=this;rr(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,o=this,i=o.hasError,s=o.isStopped,a=o.observers;return i||s?vs:(this.currentObservers=null,a.push(n),new nr(function(){r.currentObservers=null,_o(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,o=r.hasError,i=r.thrownError,s=r.isStopped;o?n.error(i):s&&n.complete()},t.prototype.asObservable=function(){var n=new xs;return n.source=this,n},t.create=function(n,r){return new Ss(n,r)},t}(xs),Ss=function(e){kn(t,e);function t(n,r){var o=e.call(this)||this;return o.destination=n,o.source=r,o}return t.prototype.next=function(n){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,n)},t.prototype.error=function(n){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&o!==void 0?o:vs},t}(Es),Td=function(e){kn(t,e);function t(n){var r=e.call(this)||this;return r._value=n,r}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(n){var r=e.prototype._subscribe.call(this,n);return!r.closed&&n.next(this._value),r},t.prototype.getValue=function(){var n=this,r=n.hasError,o=n.thrownError,i=n._value;if(r)throw o;return this._throwIfClosed(),i},t.prototype.next=function(n){e.prototype.next.call(this,this._value=n)},t}(Es);const bv=E("usePlatformCustomization",e=>{const{fontsLoaded:t}=ps(e.fonts);ld(e.styleSheet);const n=()=>{const r=new Td(!0);window[lo]=r};Q(()=>{t&&window[lo].next(!1)},[t]),Q(()=>{n()},[])}),wv=E("usePAECustomizationsLoadingState",()=>{const e=window[lo];return Ji(e,e.getValue()??void 0)}),Co="theme",Ts=()=>document.documentElement.dataset[Co]==="dark"?"dark":"light",_v=E("useGetPlatformTheme",()=>{const[e,t]=L(Ts());return Q(()=>{const n=document.documentElement,r=()=>t(Ts),o=new MutationObserver(i=>{for(const s of i)s.type==="attributes"&&s.attributeName===`data-${Co}`&&r()});return o.observe(n,{attributes:!0,attributeFilter:[`data-${Co}`]}),r(),()=>{o.disconnect()}},[]),e}),xv=E("platformHaveAnyCustomization",e=>e!==void 0),Cv=E("isPlatformCustomizationCompleted",e=>e!==!0);let Ad={data:""},Pd=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Ad,Rd=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Od=/\/\*[^]*?\*\/| +/g,As=/\n+/g,at=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+s+";":r+=i[1]=="f"?at(s,i):i+"{"+at(s,i[1]=="k"?"":t)+"}":typeof s=="object"?r+=at(s,t?t.replace(/([^,])+/g,a=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,a):a?a+" "+c:c)):i):s!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=at.p?at.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Qe={},Ps=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Ps(e[n]);return t}return e},kd=(e,t,n,r,o)=>{let i=Ps(e),s=Qe[i]||(Qe[i]=(c=>{let l=0,d=11;for(;l<c.length;)d=101*d+c.charCodeAt(l++)>>>0;return"go"+d})(i));if(!Qe[s]){let c=i!==e?e:(l=>{let d,p,h=[{}];for(;d=Rd.exec(l.replace(Od,""));)d[4]?h.shift():d[3]?(p=d[3].replace(As," ").trim(),h.unshift(h[0][p]=h[0][p]||{})):h[0][d[1]]=d[2].replace(As," ").trim();return h[0]})(e);Qe[s]=at(o?{["@keyframes "+s]:c}:c,n?"":"."+s)}let a=n&&Qe.g?Qe.g:null;return n&&(Qe.g=Qe[s]),((c,l,d,p)=>{p?l.data=l.data.replace(p,c):l.data.indexOf(c)===-1&&(l.data=d?c+l.data:l.data+c)})(Qe[s],t,r,a),s},jd=(e,t,n)=>e.reduce((r,o,i)=>{let s=t[i];if(s&&s.call){let a=s(n),c=a&&a.props&&a.props.className||/^go/.test(a)&&a;s=c?"."+c:a&&typeof a=="object"?a.props?"":at(a,""):a===!1?"":a}return r+o+(s??"")},"");function ir(e){let t=this||{},n=e.call?e(t.p):e;return kd(n.unshift?n.raw?jd(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,Pd(t.target),t.g,t.o,t.k)}let Rs,Eo,So;ir.bind({g:1});let Ye=ir.bind({k:1});function Dd(e,t,n,r){at.p=t,Rs=e,Eo=n,So=r}function ct(e,t){let n=this||{};return function(){let r=arguments;function o(i,s){let a=Object.assign({},i),c=a.className||o.className;n.p=Object.assign({theme:Eo&&Eo()},a),n.o=/ *go\d+/.test(c),a.className=ir.apply(n,r)+(c?" "+c:"");let l=e;return e[0]&&(l=a.as||e,delete a.as),So&&l[0]&&So(a),Rs(l,a)}return o}}var Ld=e=>typeof e=="function",sr=(e,t)=>Ld(e)?e(t):e,Id=(()=>{let e=0;return()=>(++e).toString()})(),Os=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Nd=20,ar=new Map,$d=1e3,ks=e=>{if(ar.has(e))return;let t=setTimeout(()=>{ar.delete(e),Tt({type:4,toastId:e})},$d);ar.set(e,t)},Md=e=>{let t=ar.get(e);t&&clearTimeout(t)},To=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Nd)};case 1:return t.toast.id&&Md(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:n}=t;return e.toasts.find(i=>i.id===n.id)?To(e,{type:1,toast:n}):To(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?ks(r):e.toasts.forEach(i=>{ks(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===r||r===void 0?{...i,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(i=>({...i,pauseDuration:i.pauseDuration+o}))}}},cr=[],lr={toasts:[],pausedAt:void 0},Tt=e=>{lr=To(lr,e),cr.forEach(t=>{t(lr)})},Fd={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Bd=(e={})=>{let[t,n]=L(lr);Q(()=>(cr.push(n),()=>{let o=cr.indexOf(n);o>-1&&cr.splice(o,1)}),[t]);let r=t.toasts.map(o=>{var i,s;return{...e,...e[o.type],...o,duration:o.duration||((i=e[o.type])==null?void 0:i.duration)||(e==null?void 0:e.duration)||Fd[o.type],style:{...e.style,...(s=e[o.type])==null?void 0:s.style,...o.style}}});return{...t,toasts:r}},Ud=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||Id()}),jn=e=>(t,n)=>{let r=Ud(t,e,n);return Tt({type:2,toast:r}),r.id},Ce=(e,t)=>jn("blank")(e,t);Ce.error=jn("error"),Ce.success=jn("success"),Ce.loading=jn("loading"),Ce.custom=jn("custom"),Ce.dismiss=e=>{Tt({type:3,toastId:e})},Ce.remove=e=>Tt({type:4,toastId:e}),Ce.promise=(e,t,n)=>{let r=Ce.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(o=>(Ce.success(sr(t.success,o),{id:r,...n,...n==null?void 0:n.success}),o)).catch(o=>{Ce.error(sr(t.error,o),{id:r,...n,...n==null?void 0:n.error})}),e};var zd=(e,t)=>{Tt({type:1,toast:{id:e,height:t}})},Hd=()=>{Tt({type:5,time:Date.now()})},Wd=e=>{let{toasts:t,pausedAt:n}=Bd(e);Q(()=>{if(n)return;let i=Date.now(),s=t.map(a=>{if(a.duration===1/0)return;let c=(a.duration||0)+a.pauseDuration-(i-a.createdAt);if(c<0){a.visible&&Ce.dismiss(a.id);return}return setTimeout(()=>Ce.dismiss(a.id),c)});return()=>{s.forEach(a=>a&&clearTimeout(a))}},[t,n]);let r=te(()=>{n&&Tt({type:6,time:Date.now()})},[n]),o=te((i,s)=>{let{reverseOrder:a=!1,gutter:c=8,defaultPosition:l}=s||{},d=t.filter(m=>(m.position||l)===(i.position||l)&&m.height),p=d.findIndex(m=>m.id===i.id),h=d.filter((m,w)=>w<p&&m.visible).length;return d.filter(m=>m.visible).slice(...a?[h+1]:[0,h]).reduce((m,w)=>m+(w.height||0)+c,0)},[t]);return{toasts:t,handlers:{updateHeight:zd,startPause:Hd,endPause:r,calculateOffset:o}}},Vd=Ye`
|
|
59
59
|
from {
|
|
60
60
|
transform: scale(0) rotate(45deg);
|
|
61
61
|
opacity: 0;
|
|
@@ -63,7 +63,7 @@ from {
|
|
|
63
63
|
to {
|
|
64
64
|
transform: scale(1) rotate(45deg);
|
|
65
65
|
opacity: 1;
|
|
66
|
-
}`,
|
|
66
|
+
}`,Gd=Ye`
|
|
67
67
|
from {
|
|
68
68
|
transform: scale(0);
|
|
69
69
|
opacity: 0;
|
|
@@ -71,7 +71,7 @@ from {
|
|
|
71
71
|
to {
|
|
72
72
|
transform: scale(1);
|
|
73
73
|
opacity: 1;
|
|
74
|
-
}`,
|
|
74
|
+
}`,qd=Ye`
|
|
75
75
|
from {
|
|
76
76
|
transform: scale(0) rotate(90deg);
|
|
77
77
|
opacity: 0;
|
|
@@ -79,7 +79,7 @@ from {
|
|
|
79
79
|
to {
|
|
80
80
|
transform: scale(1) rotate(90deg);
|
|
81
81
|
opacity: 1;
|
|
82
|
-
}`,
|
|
82
|
+
}`,Qd=ct("div")`
|
|
83
83
|
width: 20px;
|
|
84
84
|
opacity: 0;
|
|
85
85
|
height: 20px;
|
|
@@ -88,14 +88,14 @@ to {
|
|
|
88
88
|
position: relative;
|
|
89
89
|
transform: rotate(45deg);
|
|
90
90
|
|
|
91
|
-
animation: ${
|
|
91
|
+
animation: ${Vd} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
92
92
|
forwards;
|
|
93
93
|
animation-delay: 100ms;
|
|
94
94
|
|
|
95
95
|
&:after,
|
|
96
96
|
&:before {
|
|
97
97
|
content: '';
|
|
98
|
-
animation: ${
|
|
98
|
+
animation: ${Gd} 0.15s ease-out forwards;
|
|
99
99
|
animation-delay: 150ms;
|
|
100
100
|
position: absolute;
|
|
101
101
|
border-radius: 3px;
|
|
@@ -108,18 +108,18 @@ to {
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
&:before {
|
|
111
|
-
animation: ${
|
|
111
|
+
animation: ${qd} 0.15s ease-out forwards;
|
|
112
112
|
animation-delay: 180ms;
|
|
113
113
|
transform: rotate(90deg);
|
|
114
114
|
}
|
|
115
|
-
`,
|
|
115
|
+
`,Yd=Ye`
|
|
116
116
|
from {
|
|
117
117
|
transform: rotate(0deg);
|
|
118
118
|
}
|
|
119
119
|
to {
|
|
120
120
|
transform: rotate(360deg);
|
|
121
121
|
}
|
|
122
|
-
`,
|
|
122
|
+
`,Kd=ct("div")`
|
|
123
123
|
width: 12px;
|
|
124
124
|
height: 12px;
|
|
125
125
|
box-sizing: border-box;
|
|
@@ -127,8 +127,8 @@ to {
|
|
|
127
127
|
border-radius: 100%;
|
|
128
128
|
border-color: ${e=>e.secondary||"#e0e0e0"};
|
|
129
129
|
border-right-color: ${e=>e.primary||"#616161"};
|
|
130
|
-
animation: ${
|
|
131
|
-
`,
|
|
130
|
+
animation: ${Yd} 1s linear infinite;
|
|
131
|
+
`,Zd=Ye`
|
|
132
132
|
from {
|
|
133
133
|
transform: scale(0) rotate(45deg);
|
|
134
134
|
opacity: 0;
|
|
@@ -136,7 +136,7 @@ from {
|
|
|
136
136
|
to {
|
|
137
137
|
transform: scale(1) rotate(45deg);
|
|
138
138
|
opacity: 1;
|
|
139
|
-
}`,
|
|
139
|
+
}`,Xd=Ye`
|
|
140
140
|
0% {
|
|
141
141
|
height: 0;
|
|
142
142
|
width: 0;
|
|
@@ -150,7 +150,7 @@ to {
|
|
|
150
150
|
100% {
|
|
151
151
|
opacity: 1;
|
|
152
152
|
height: 10px;
|
|
153
|
-
}`,
|
|
153
|
+
}`,Jd=ct("div")`
|
|
154
154
|
width: 20px;
|
|
155
155
|
opacity: 0;
|
|
156
156
|
height: 20px;
|
|
@@ -159,13 +159,13 @@ to {
|
|
|
159
159
|
position: relative;
|
|
160
160
|
transform: rotate(45deg);
|
|
161
161
|
|
|
162
|
-
animation: ${
|
|
162
|
+
animation: ${Zd} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
163
163
|
forwards;
|
|
164
164
|
animation-delay: 100ms;
|
|
165
165
|
&:after {
|
|
166
166
|
content: '';
|
|
167
167
|
box-sizing: border-box;
|
|
168
|
-
animation: ${
|
|
168
|
+
animation: ${Xd} 0.2s ease-out forwards;
|
|
169
169
|
opacity: 0;
|
|
170
170
|
animation-delay: 200ms;
|
|
171
171
|
position: absolute;
|
|
@@ -177,16 +177,16 @@ to {
|
|
|
177
177
|
height: 10px;
|
|
178
178
|
width: 6px;
|
|
179
179
|
}
|
|
180
|
-
`,Jd=ct("div")`
|
|
181
|
-
position: absolute;
|
|
182
180
|
`,ef=ct("div")`
|
|
181
|
+
position: absolute;
|
|
182
|
+
`,tf=ct("div")`
|
|
183
183
|
position: relative;
|
|
184
184
|
display: flex;
|
|
185
185
|
justify-content: center;
|
|
186
186
|
align-items: center;
|
|
187
187
|
min-width: 20px;
|
|
188
188
|
min-height: 20px;
|
|
189
|
-
`,
|
|
189
|
+
`,nf=Ye`
|
|
190
190
|
from {
|
|
191
191
|
transform: scale(0.6);
|
|
192
192
|
opacity: 0.4;
|
|
@@ -194,20 +194,20 @@ from {
|
|
|
194
194
|
to {
|
|
195
195
|
transform: scale(1);
|
|
196
196
|
opacity: 1;
|
|
197
|
-
}`,
|
|
197
|
+
}`,rf=ct("div")`
|
|
198
198
|
position: relative;
|
|
199
199
|
transform: scale(0.6);
|
|
200
200
|
opacity: 0.4;
|
|
201
201
|
min-width: 20px;
|
|
202
|
-
animation: ${
|
|
202
|
+
animation: ${nf} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
203
203
|
forwards;
|
|
204
|
-
`,
|
|
204
|
+
`,of=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?g.createElement(rf,null,t):t:n==="blank"?null:g.createElement(tf,null,g.createElement(Kd,{...r}),n!=="loading"&&g.createElement(ef,null,n==="error"?g.createElement(Qd,{...r}):g.createElement(Jd,{...r})))},sf=e=>`
|
|
205
205
|
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
|
|
206
206
|
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
|
207
|
-
`,
|
|
207
|
+
`,af=e=>`
|
|
208
208
|
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
|
209
209
|
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
|
|
210
|
-
`,
|
|
210
|
+
`,cf="0%{opacity:0;} 100%{opacity:1;}",lf="0%{opacity:1;} 100%{opacity:0;}",uf=ct("div")`
|
|
211
211
|
display: flex;
|
|
212
212
|
align-items: center;
|
|
213
213
|
background: #fff;
|
|
@@ -219,24 +219,24 @@ to {
|
|
|
219
219
|
pointer-events: auto;
|
|
220
220
|
padding: 8px 10px;
|
|
221
221
|
border-radius: 8px;
|
|
222
|
-
`,
|
|
222
|
+
`,df=ct("div")`
|
|
223
223
|
display: flex;
|
|
224
224
|
justify-content: center;
|
|
225
225
|
margin: 4px 10px;
|
|
226
226
|
color: inherit;
|
|
227
227
|
flex: 1 1 auto;
|
|
228
228
|
white-space: pre-line;
|
|
229
|
-
`,
|
|
229
|
+
`,ff=(e,t)=>{let n=e.includes("top")?1:-1,[r,o]=Os()?[cf,lf]:[sf(n),af(n)];return{animation:t?`${Ye(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Ye(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},hf=g.memo(({toast:e,position:t,style:n,children:r})=>{let o=e.height?ff(e.position||t||"top-center",e.visible):{opacity:0},i=g.createElement(of,{toast:e}),s=g.createElement(df,{...e.ariaProps},sr(e.message,e));return g.createElement(uf,{className:e.className,style:{...o,...n,...e.style}},typeof r=="function"?r({icon:i,message:s}):g.createElement(g.Fragment,null,i,s))});Dd(g.createElement);var pf=({id:e,className:t,style:n,onHeightUpdate:r,children:o})=>{let i=g.useCallback(s=>{if(s){let a=()=>{let c=s.getBoundingClientRect().height;r(e,c)};a(),new MutationObserver(a).observe(s,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return g.createElement("div",{ref:i,className:t,style:n},o)},mf=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Os()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}},gf=ir`
|
|
230
230
|
z-index: 9999;
|
|
231
231
|
> * {
|
|
232
232
|
pointer-events: auto;
|
|
233
233
|
}
|
|
234
|
-
`,cr=16,gf=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,containerStyle:i,containerClassName:s})=>{let{toasts:a,handlers:c}=Hd(n);return m.createElement("div",{style:{position:"fixed",zIndex:9999,top:cr,left:cr,right:cr,bottom:cr,pointerEvents:"none",...i},className:s,onMouseEnter:c.startPause,onMouseLeave:c.endPause},a.map(u=>{let d=u.position||t,h=c.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),p=hf(d,h);return m.createElement(pf,{id:u.id,key:u.id,onHeightUpdate:c.updateHeight,className:u.visible?mf:"",style:p},u.type==="custom"?or(u.message,u):o?o(u):m.createElement(ff,{toast:u,position:d}))}))},js=Ce;const Ds=C("useNotifications",()=>({notify:ue((t,n,r)=>{n==="warning"||n==="info"?js(t,{icon:n==="warning"?"⚠️":"ℹ️",style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}}):js[n](t,{style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}}),r&&console.error(r)},[])}));var Qt=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},At=typeof window>"u"||"Deno"in globalThis;function fe(){}function vf(e,t){return typeof e=="function"?e(t):e}function To(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ls(e,t){return Math.max(e+(t||0)-Date.now(),0)}function lt(e,t){return typeof e=="function"?e(t):e}function Oe(e,t){return typeof e=="function"?e(t):e}function Is(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==Ao(s,t.options))return!1}else if(!jn(t.queryKey,s))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function Ns(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Pt(t.options.mutationKey)!==Pt(i))return!1}else if(!jn(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Ao(e,t){return((t==null?void 0:t.queryKeyHashFn)||Pt)(e)}function Pt(e){return JSON.stringify(e,(t,n)=>Ro(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function jn(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>jn(e[n],t[n])):!1}function Po(e,t){if(e===t)return e;const n=Ms(e)&&Ms(t);if(n||Ro(e)&&Ro(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,a=n?[]:{};let c=0;for(let u=0;u<s;u++){const d=n?u:i[u];(!n&&r.includes(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,c++):(a[d]=Po(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&c++)}return o===s&&c===o?e:a}return t}function lr(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 Ms(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ro(e){if(!$s(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!$s(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function $s(e){return Object.prototype.toString.call(e)==="[object Object]"}function yf(e){return new Promise(t=>{setTimeout(t,e)})}function Oo(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){try{return Po(e,t)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`),r}return Po(e,t)}return t}function bf(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function wf(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ur=Symbol();function Fs(e,t){return e.queryFn===ur&&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===ur?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Bs(e,t){return typeof e=="function"?e(...t):!!e}var _f=(zl=class extends Qt{constructor(){super();D(this,Lt);D(this,ht);D(this,cn);O(this,cn,t=>{if(!At&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){b(this,ht)||this.setEventListener(b(this,cn))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,ht))==null||t.call(this),O(this,ht,void 0))}setEventListener(t){var n;O(this,cn,t),(n=b(this,ht))==null||n.call(this),O(this,ht,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){b(this,Lt)!==t&&(O(this,Lt,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof b(this,Lt)=="boolean"?b(this,Lt):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Lt=new WeakMap,ht=new WeakMap,cn=new WeakMap,zl),ko=new _f,xf=(Hl=class extends Qt{constructor(){super();D(this,ln,!0);D(this,mt);D(this,un);O(this,un,t=>{if(!At&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){b(this,mt)||this.setEventListener(b(this,un))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,mt))==null||t.call(this),O(this,mt,void 0))}setEventListener(t){var n;O(this,un,t),(n=b(this,mt))==null||n.call(this),O(this,mt,t(this.setOnline.bind(this)))}setOnline(t){b(this,ln)!==t&&(O(this,ln,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return b(this,ln)}},ln=new WeakMap,mt=new WeakMap,un=new WeakMap,Hl),dr=new xf;function jo(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function Cf(e){return Math.min(1e3*2**e,3e4)}function Us(e){return(e??"online")==="online"?dr.isOnline():!0}var zs=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Do(e){return e instanceof zs}function Hs(e){let t=!1,n=0,r=!1,o;const i=jo(),s=f=>{var v;r||(p(new zs(f)),(v=e.abort)==null||v.call(e))},a=()=>{t=!0},c=()=>{t=!1},u=()=>ko.isFocused()&&(e.networkMode==="always"||dr.isOnline())&&e.canRun(),d=()=>Us(e.networkMode)&&e.canRun(),h=f=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,f),o==null||o(),i.resolve(f))},p=f=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,f),o==null||o(),i.reject(f))},g=()=>new Promise(f=>{var v;o=_=>{(r||u())&&f(_)},(v=e.onPause)==null||v.call(e)}).then(()=>{var f;o=void 0,r||(f=e.onContinue)==null||f.call(e)}),w=()=>{if(r)return;let f;const v=n===0?e.initialPromise:void 0;try{f=v??e.fn()}catch(_){f=Promise.reject(_)}Promise.resolve(f).then(h).catch(_=>{var R;if(r)return;const x=e.retry??(At?0:3),S=e.retryDelay??Cf,E=typeof S=="function"?S(n,_):S,T=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,_);if(t||!T){p(_);return}n++,(R=e.onFail)==null||R.call(e,n,_),yf(E).then(()=>u()?void 0:g()).then(()=>{t?p(_):w()})})};return{promise:i,cancel:s,continue:()=>(o==null||o(),i),cancelRetry:a,continueRetry:c,canStart:d,start:()=>(d()?w():g().then(w),i)}}var Ef=e=>setTimeout(e,0);function Sf(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=Ef;const i=a=>{t?e.push(a):o(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||s()}return c},batchCalls:a=>(...c)=>{i(()=>{a(...c)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var se=Sf(),Ws=(Wl=class{constructor(){D(this,It)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),To(this.gcTime)&&O(this,It,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(At?1/0:5*60*1e3))}clearGcTimeout(){b(this,It)&&(clearTimeout(b(this,It)),O(this,It,void 0))}},It=new WeakMap,Wl),Tf=(Vl=class extends Ws{constructor(t){super();D(this,Ne);D(this,dn);D(this,fn);D(this,Ae);D(this,Nt);D(this,de);D(this,Un);D(this,Mt);O(this,Mt,!1),O(this,Un,t.defaultOptions),this.setOptions(t.options),this.observers=[],O(this,Nt,t.client),O(this,Ae,b(this,Nt).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,O(this,dn,Af(this.options)),this.state=t.state??b(this,dn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=b(this,de))==null?void 0:t.promise}setOptions(t){this.options={...b(this,Un),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&b(this,Ae).remove(this)}setData(t,n){const r=Oo(this.state.data,t,this.options);return $(this,Ne,ot).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){$(this,Ne,ot).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=b(this,de))==null?void 0:r.promise;return(o=b(this,de))==null||o.cancel(t),n?n.then(fe).catch(fe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(b(this,dn))}isActive(){return this.observers.some(t=>Oe(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ur||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>lt(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Ls(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=b(this,de))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=b(this,de))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),b(this,Ae).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(b(this,de)&&(b(this,Mt)?b(this,de).cancel({revert:!0}):b(this,de).cancelRetry()),this.scheduleGc()),b(this,Ae).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||$(this,Ne,ot).call(this,{type:"invalidate"})}fetch(t,n){var u,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(b(this,de))return b(this,de).continueRetry(),b(this,de).promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(g=>g.options.queryFn);p&&this.setOptions(p.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=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(O(this,Mt,!0),r.signal)})},i=()=>{const p=Fs(this.options,n),w=(()=>{const f={client:b(this,Nt),queryKey:this.queryKey,meta:this.meta};return o(f),f})();return O(this,Mt,!1),this.options.persister?this.options.persister(p,w,this):p(w)},a=(()=>{const p={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:b(this,Nt),state:this.state,fetchFn:i};return o(p),p})();(u=this.options.behavior)==null||u.onFetch(a,this),O(this,fn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&$(this,Ne,ot).call(this,{type:"fetch",meta:(h=a.fetchOptions)==null?void 0:h.meta});const c=p=>{var g,w,f,v;Do(p)&&p.silent||$(this,Ne,ot).call(this,{type:"error",error:p}),Do(p)||((w=(g=b(this,Ae).config).onError)==null||w.call(g,p,this),(v=(f=b(this,Ae).config).onSettled)==null||v.call(f,this.state.data,p,this)),this.scheduleGc()};return O(this,de,Hs({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:p=>{var g,w,f,v;if(p===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(p)}catch(_){c(_);return}(w=(g=b(this,Ae).config).onSuccess)==null||w.call(g,p,this),(v=(f=b(this,Ae).config).onSettled)==null||v.call(f,p,this.state.error,this),this.scheduleGc()},onError:c,onFail:(p,g)=>{$(this,Ne,ot).call(this,{type:"failed",failureCount:p,error:g})},onPause:()=>{$(this,Ne,ot).call(this,{type:"pause"})},onContinue:()=>{$(this,Ne,ot).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),b(this,de).start()}},dn=new WeakMap,fn=new WeakMap,Ae=new WeakMap,Nt=new WeakMap,de=new WeakMap,Un=new WeakMap,Mt=new WeakMap,Ne=new WeakSet,ot=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Vs(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return Do(o)&&o.revert&&b(this,fn)?{...b(this,fn),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),se.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),b(this,Ae).notify({query:this,type:"updated",action:t})})},Vl);function Vs(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Us(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Af(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 Pf=(Gl=class extends Qt{constructor(t={}){super();D(this,We);this.config=t,O(this,We,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??Ao(o,n);let s=this.get(i);return s||(s=new Tf({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){b(this,We).has(t.queryHash)||(b(this,We).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=b(this,We).get(t.queryHash);n&&(t.destroy(),n===t&&b(this,We).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){se.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return b(this,We).get(t)}getAll(){return[...b(this,We).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Is(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Is(t,r)):n}notify(t){se.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){se.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){se.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},We=new WeakMap,Gl),Rf=(ql=class extends Ws{constructor(t){super();D(this,Ge);D(this,Ve);D(this,he);D(this,$t);this.mutationId=t.mutationId,O(this,he,t.mutationCache),O(this,Ve,[]),this.state=t.state||Gs(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){b(this,Ve).includes(t)||(b(this,Ve).push(t),this.clearGcTimeout(),b(this,he).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){O(this,Ve,b(this,Ve).filter(n=>n!==t)),this.scheduleGc(),b(this,he).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){b(this,Ve).length||(this.state.status==="pending"?this.scheduleGc():b(this,he).remove(this))}continue(){var t;return((t=b(this,$t))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,a,c,u,d,h,p,g,w,f,v,_,x,S,E,T,R,P,I;const n=()=>{$(this,Ge,Et).call(this,{type:"continue"})};O(this,$t,Hs({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(N,M)=>{$(this,Ge,Et).call(this,{type:"failed",failureCount:N,error:M})},onPause:()=>{$(this,Ge,Et).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>b(this,he).canRun(this)}));const r=this.state.status==="pending",o=!b(this,$t).canStart();try{if(r)n();else{$(this,Ge,Et).call(this,{type:"pending",variables:t,isPaused:o}),await((s=(i=b(this,he).config).onMutate)==null?void 0:s.call(i,t,this));const M=await((c=(a=this.options).onMutate)==null?void 0:c.call(a,t));M!==this.state.context&&$(this,Ge,Et).call(this,{type:"pending",context:M,variables:t,isPaused:o})}const N=await b(this,$t).start();return await((d=(u=b(this,he).config).onSuccess)==null?void 0:d.call(u,N,t,this.state.context,this)),await((p=(h=this.options).onSuccess)==null?void 0:p.call(h,N,t,this.state.context)),await((w=(g=b(this,he).config).onSettled)==null?void 0:w.call(g,N,null,this.state.variables,this.state.context,this)),await((v=(f=this.options).onSettled)==null?void 0:v.call(f,N,null,t,this.state.context)),$(this,Ge,Et).call(this,{type:"success",data:N}),N}catch(N){try{throw await((x=(_=b(this,he).config).onError)==null?void 0:x.call(_,N,t,this.state.context,this)),await((E=(S=this.options).onError)==null?void 0:E.call(S,N,t,this.state.context)),await((R=(T=b(this,he).config).onSettled)==null?void 0:R.call(T,void 0,N,this.state.variables,this.state.context,this)),await((I=(P=this.options).onSettled)==null?void 0:I.call(P,void 0,N,t,this.state.context)),N}finally{$(this,Ge,Et).call(this,{type:"error",error:N})}}finally{b(this,he).runNext(this)}}},Ve=new WeakMap,he=new WeakMap,$t=new WeakMap,Ge=new WeakSet,Et=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),se.batch(()=>{b(this,Ve).forEach(r=>{r.onMutationUpdate(t)}),b(this,he).notify({mutation:this,type:"updated",action:t})})},ql);function Gs(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Of=(Ql=class extends Qt{constructor(t={}){super();D(this,et);D(this,Me);D(this,zn);this.config=t,O(this,et,new Set),O(this,Me,new Map),O(this,zn,0)}build(t,n,r){const o=new Rf({mutationCache:this,mutationId:++to(this,zn)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){b(this,et).add(t);const n=fr(t);if(typeof n=="string"){const r=b(this,Me).get(n);r?r.push(t):b(this,Me).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(b(this,et).delete(t)){const n=fr(t);if(typeof n=="string"){const r=b(this,Me).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&b(this,Me).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=fr(t);if(typeof n=="string"){const r=b(this,Me).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=fr(t);if(typeof n=="string"){const o=(r=b(this,Me).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){se.batch(()=>{b(this,et).forEach(t=>{this.notify({type:"removed",mutation:t})}),b(this,et).clear(),b(this,Me).clear()})}getAll(){return Array.from(b(this,et))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ns(n,r))}findAll(t={}){return this.getAll().filter(n=>Ns(t,n))}notify(t){se.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return se.batch(()=>Promise.all(t.map(n=>n.continue().catch(fe))))}},et=new WeakMap,Me=new WeakMap,zn=new WeakMap,Ql);function fr(e){var t;return(t=e.options.scope)==null?void 0:t.id}function qs(e){return{onFetch:(t,n)=>{var d,h,p,g,w;const r=t.options,o=(p=(h=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:p.direction,i=((g=t.state.data)==null?void 0:g.pages)||[],s=((w=t.state.data)==null?void 0:w.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const u=async()=>{let f=!1;const v=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?f=!0:t.signal.addEventListener("abort",()=>{f=!0}),t.signal)})},_=Fs(t.options,t.fetchOptions),x=async(S,E,T)=>{if(f)return Promise.reject();if(E==null&&S.pages.length)return Promise.resolve(S);const P=(()=>{const Z={client:t.client,queryKey:t.queryKey,pageParam:E,direction:T?"backward":"forward",meta:t.options.meta};return v(Z),Z})(),I=await _(P),{maxPages:N}=t.options,M=T?wf:bf;return{pages:M(S.pages,I,N),pageParams:M(S.pageParams,E,N)}};if(o&&i.length){const S=o==="backward",E=S?kf:Qs,T={pages:i,pageParams:s},R=E(r,T);a=await x(T,R,S)}else{const S=e??i.length;do{const E=c===0?s[0]??r.initialPageParam:Qs(r,a);if(c>0&&E==null)break;a=await x(a,E),c++}while(c<S)}return a};t.options.persister?t.fetchFn=()=>{var f,v;return(v=(f=t.options).persister)==null?void 0:v.call(f,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Qs(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function kf(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 jf=(Yl=class{constructor(e={}){D(this,te);D(this,gt);D(this,vt);D(this,pn);D(this,hn);D(this,yt);D(this,mn);D(this,gn);O(this,te,e.queryCache||new Pf),O(this,gt,e.mutationCache||new Of),O(this,vt,e.defaultOptions||{}),O(this,pn,new Map),O(this,hn,new Map),O(this,yt,0)}mount(){to(this,yt)._++,b(this,yt)===1&&(O(this,mn,ko.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,te).onFocus())})),O(this,gn,dr.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,te).onOnline())})))}unmount(){var e,t;to(this,yt)._--,b(this,yt)===0&&((e=b(this,mn))==null||e.call(this),O(this,mn,void 0),(t=b(this,gn))==null||t.call(this),O(this,gn,void 0))}isFetching(e){return b(this,te).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return b(this,gt).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=b(this,te).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=b(this,te).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(lt(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return b(this,te).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=b(this,te).get(r.queryHash),i=o==null?void 0:o.state.data,s=vf(t,i);if(s!==void 0)return b(this,te).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return se.batch(()=>b(this,te).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=b(this,te).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=b(this,te);se.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=b(this,te);return se.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=se.batch(()=>b(this,te).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(fe).catch(fe)}invalidateQueries(e,t={}){return se.batch(()=>(b(this,te).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=se.batch(()=>b(this,te).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(fe)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(fe)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=b(this,te).build(this,t);return n.isStaleByTime(lt(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(fe).catch(fe)}fetchInfiniteQuery(e){return e.behavior=qs(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(fe).catch(fe)}ensureInfiniteQueryData(e){return e.behavior=qs(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return dr.isOnline()?b(this,gt).resumePausedMutations():Promise.resolve()}getQueryCache(){return b(this,te)}getMutationCache(){return b(this,gt)}getDefaultOptions(){return b(this,vt)}setDefaultOptions(e){O(this,vt,e)}setQueryDefaults(e,t){b(this,pn).set(Pt(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...b(this,pn).values()],n={};return t.forEach(r=>{jn(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){b(this,hn).set(Pt(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...b(this,hn).values()],n={};return t.forEach(r=>{jn(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...b(this,vt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ao(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===ur&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...b(this,vt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){b(this,te).clear(),b(this,gt).clear()}},te=new WeakMap,gt=new WeakMap,vt=new WeakMap,pn=new WeakMap,hn=new WeakMap,yt=new WeakMap,mn=new WeakMap,gn=new WeakMap,Yl),Df=(Kl=class extends Qt{constructor(t,n){super();D(this,G);D(this,we);D(this,H);D(this,Hn);D(this,me);D(this,Ft);D(this,vn);D(this,bt);D(this,wt);D(this,Wn);D(this,yn);D(this,bn);D(this,Bt);D(this,Ut);D(this,_t);D(this,wn,new Set);this.options=n,O(this,we,t),O(this,wt,null),O(this,bt,jo()),this.options.experimental_prefetchInRender||b(this,bt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(b(this,H).addObserver(this),Ys(b(this,H),this.options)?$(this,G,qn).call(this):this.updateResult(),$(this,G,Ui).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Lo(b(this,H),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Lo(b(this,H),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,$(this,G,zi).call(this),$(this,G,Hi).call(this),b(this,H).removeObserver(this)}setOptions(t){const n=this.options,r=b(this,H);if(this.options=b(this,we).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Oe(this.options.enabled,b(this,H))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");$(this,G,Wi).call(this),b(this,H).setOptions(this.options),n._defaulted&&!lr(this.options,n)&&b(this,we).getQueryCache().notify({type:"observerOptionsUpdated",query:b(this,H),observer:this});const o=this.hasListeners();o&&Ks(b(this,H),r,this.options,n)&&$(this,G,qn).call(this),this.updateResult(),o&&(b(this,H)!==r||Oe(this.options.enabled,b(this,H))!==Oe(n.enabled,b(this,H))||lt(this.options.staleTime,b(this,H))!==lt(n.staleTime,b(this,H)))&&$(this,G,$i).call(this);const i=$(this,G,Fi).call(this);o&&(b(this,H)!==r||Oe(this.options.enabled,b(this,H))!==Oe(n.enabled,b(this,H))||i!==b(this,_t))&&$(this,G,Bi).call(this,i)}getOptimisticResult(t){const n=b(this,we).getQueryCache().build(b(this,we),t),r=this.createResult(n,t);return If(this,r)&&(O(this,me,r),O(this,vn,this.options),O(this,Ft,b(this,H).state)),r}getCurrentResult(){return b(this,me)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),Reflect.get(r,o))})}trackProp(t){b(this,wn).add(t)}getCurrentQuery(){return b(this,H)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=b(this,we).defaultQueryOptions(t),r=b(this,we).getQueryCache().build(b(this,we),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return $(this,G,qn).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),b(this,me)))}createResult(t,n){var N;const r=b(this,H),o=this.options,i=b(this,me),s=b(this,Ft),a=b(this,vn),u=t!==r?t.state:b(this,Hn),{state:d}=t;let h={...d},p=!1,g;if(n._optimisticResults){const M=this.hasListeners(),Z=!M&&Ys(t,n),X=M&&Ks(t,r,n,o);(Z||X)&&(h={...h,...Vs(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:w,errorUpdatedAt:f,status:v}=h;g=h.data;let _=!1;if(n.placeholderData!==void 0&&g===void 0&&v==="pending"){let M;i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(M=i.data,_=!0):M=typeof n.placeholderData=="function"?n.placeholderData((N=b(this,bn))==null?void 0:N.state.data,b(this,bn)):n.placeholderData,M!==void 0&&(v="success",g=Oo(i==null?void 0:i.data,M,n),p=!0)}if(n.select&&g!==void 0&&!_)if(i&&g===(s==null?void 0:s.data)&&n.select===b(this,Wn))g=b(this,yn);else try{O(this,Wn,n.select),g=n.select(g),g=Oo(i==null?void 0:i.data,g,n),O(this,yn,g),O(this,wt,null)}catch(M){O(this,wt,M)}b(this,wt)&&(w=b(this,wt),g=b(this,yn),f=Date.now(),v="error");const x=h.fetchStatus==="fetching",S=v==="pending",E=v==="error",T=S&&x,R=g!==void 0,I={status:v,fetchStatus:h.fetchStatus,isPending:S,isSuccess:v==="success",isError:E,isInitialLoading:T,isLoading:T,data:g,dataUpdatedAt:h.dataUpdatedAt,error:w,errorUpdatedAt:f,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:x,isRefetching:x&&!S,isLoadingError:E&&!R,isPaused:h.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:E&&R,isStale:Io(t,n),refetch:this.refetch,promise:b(this,bt)};if(this.options.experimental_prefetchInRender){const M=V=>{I.status==="error"?V.reject(I.error):I.data!==void 0&&V.resolve(I.data)},Z=()=>{const V=O(this,bt,I.promise=jo());M(V)},X=b(this,bt);switch(X.status){case"pending":t.queryHash===r.queryHash&&M(X);break;case"fulfilled":(I.status==="error"||I.data!==X.value)&&Z();break;case"rejected":(I.status!=="error"||I.error!==X.reason)&&Z();break}}return I}updateResult(){const t=b(this,me),n=this.createResult(b(this,H),this.options);if(O(this,Ft,b(this,H).state),O(this,vn,this.options),b(this,Ft).data!==void 0&&O(this,bn,b(this,H)),lr(n,t))return;O(this,me,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,i=typeof o=="function"?o():o;if(i==="all"||!i&&!b(this,wn).size)return!0;const s=new Set(i??b(this,wn));return this.options.throwOnError&&s.add("error"),Object.keys(b(this,me)).some(a=>{const c=a;return b(this,me)[c]!==t[c]&&s.has(c)})};$(this,G,du).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&$(this,G,Ui).call(this)}},we=new WeakMap,H=new WeakMap,Hn=new WeakMap,me=new WeakMap,Ft=new WeakMap,vn=new WeakMap,bt=new WeakMap,wt=new WeakMap,Wn=new WeakMap,yn=new WeakMap,bn=new WeakMap,Bt=new WeakMap,Ut=new WeakMap,_t=new WeakMap,wn=new WeakMap,G=new WeakSet,qn=function(t){$(this,G,Wi).call(this);let n=b(this,H).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(fe)),n},$i=function(){$(this,G,zi).call(this);const t=lt(this.options.staleTime,b(this,H));if(At||b(this,me).isStale||!To(t))return;const r=Ls(b(this,me).dataUpdatedAt,t)+1;O(this,Bt,setTimeout(()=>{b(this,me).isStale||this.updateResult()},r))},Fi=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(b(this,H)):this.options.refetchInterval)??!1},Bi=function(t){$(this,G,Hi).call(this),O(this,_t,t),!(At||Oe(this.options.enabled,b(this,H))===!1||!To(b(this,_t))||b(this,_t)===0)&&O(this,Ut,setInterval(()=>{(this.options.refetchIntervalInBackground||ko.isFocused())&&$(this,G,qn).call(this)},b(this,_t)))},Ui=function(){$(this,G,$i).call(this),$(this,G,Bi).call(this,$(this,G,Fi).call(this))},zi=function(){b(this,Bt)&&(clearTimeout(b(this,Bt)),O(this,Bt,void 0))},Hi=function(){b(this,Ut)&&(clearInterval(b(this,Ut)),O(this,Ut,void 0))},Wi=function(){const t=b(this,we).getQueryCache().build(b(this,we),this.options);if(t===b(this,H))return;const n=b(this,H);O(this,H,t),O(this,Hn,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},du=function(t){se.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(b(this,me))}),b(this,we).getQueryCache().notify({query:b(this,H),type:"observerResultsUpdated"})})},Kl);function Lf(e,t){return Oe(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ys(e,t){return Lf(e,t)||e.state.data!==void 0&&Lo(e,t,t.refetchOnMount)}function Lo(e,t,n){if(Oe(t.enabled,e)!==!1&<(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Io(e,t)}return!1}function Ks(e,t,n,r){return(e!==t||Oe(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Io(e,n)}function Io(e,t){return Oe(t.enabled,e)!==!1&&e.isStaleByTime(lt(t.staleTime,e))}function If(e,t){return!lr(e.getCurrentResult(),t)}var Nf=(Zl=class extends Qt{constructor(n,r){super();D(this,nt);D(this,xt);D(this,Ct);D(this,_e);D(this,tt);O(this,xt,n),this.setOptions(r),this.bindMethods(),$(this,nt,no).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=b(this,xt).defaultMutationOptions(n),lr(this.options,r)||b(this,xt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:b(this,_e),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Pt(r.mutationKey)!==Pt(this.options.mutationKey)?this.reset():((o=b(this,_e))==null?void 0:o.state.status)==="pending"&&b(this,_e).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=b(this,_e))==null||n.removeObserver(this)}onMutationUpdate(n){$(this,nt,no).call(this),$(this,nt,Vi).call(this,n)}getCurrentResult(){return b(this,Ct)}reset(){var n;(n=b(this,_e))==null||n.removeObserver(this),O(this,_e,void 0),$(this,nt,no).call(this),$(this,nt,Vi).call(this)}mutate(n,r){var o;return O(this,tt,r),(o=b(this,_e))==null||o.removeObserver(this),O(this,_e,b(this,xt).getMutationCache().build(b(this,xt),this.options)),b(this,_e).addObserver(this),b(this,_e).execute(n)}},xt=new WeakMap,Ct=new WeakMap,_e=new WeakMap,tt=new WeakMap,nt=new WeakSet,no=function(){var r;const n=((r=b(this,_e))==null?void 0:r.state)??Gs();O(this,Ct,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Vi=function(n){se.batch(()=>{var r,o,i,s,a,c,u,d;if(b(this,tt)&&this.hasListeners()){const h=b(this,Ct).variables,p=b(this,Ct).context;(n==null?void 0:n.type)==="success"?((o=(r=b(this,tt)).onSuccess)==null||o.call(r,n.data,h,p),(s=(i=b(this,tt)).onSettled)==null||s.call(i,n.data,null,h,p)):(n==null?void 0:n.type)==="error"&&((c=(a=b(this,tt)).onError)==null||c.call(a,n.error,h,p),(d=(u=b(this,tt)).onSettled)==null||d.call(u,void 0,n.error,h,p))}this.listeners.forEach(h=>{h(b(this,Ct))})})},Zl),Zs=m.createContext(void 0),No=e=>{const t=m.useContext(Zs);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Mf=({client:e,children:t})=>(m.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),l.jsx(Zs.Provider,{value:e,children:t})),Xs=m.createContext(!1),$f=()=>m.useContext(Xs);Xs.Provider;function Ff(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Bf=m.createContext(Ff()),Uf=()=>m.useContext(Bf),zf=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Hf=e=>{m.useEffect(()=>{e.clearReset()},[e])},Wf=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Bs(n,[e.error,r])),Vf=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))}},Gf=(e,t)=>e.isLoading&&e.isFetching&&!t,qf=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Js=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Qf(e,t,n){var h,p,g,w,f;if(typeof e!="object"||Array.isArray(e))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=$f(),o=Uf(),i=No(),s=i.defaultQueryOptions(e);(p=(h=i.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||p.call(h,s),s.queryFn||console.error(`[${s.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`),s._optimisticResults=r?"isRestoring":"optimistic",Vf(s),zf(s,o),Hf(o);const a=!i.getQueryCache().get(s.queryHash),[c]=m.useState(()=>new t(i,s)),u=c.getOptimisticResult(s),d=!r&&e.subscribed!==!1;if(m.useSyncExternalStore(m.useCallback(v=>{const _=d?c.subscribe(se.batchCalls(v)):fe;return c.updateResult(),_},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),m.useEffect(()=>{c.setOptions(s)},[s,c]),qf(s,u))throw Js(s,c,o);if(Wf({result:u,errorResetBoundary:o,throwOnError:s.throwOnError,query:i.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw u.error;if((w=(g=i.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||w.call(g,s,u),s.experimental_prefetchInRender&&!At&&Gf(u,r)){const v=a?Js(s,c,o):(f=i.getQueryCache().get(s.queryHash))==null?void 0:f.promise;v==null||v.catch(fe).finally(()=>{c.updateResult()})}return s.notifyOnChangeProps?u:c.trackResult(u)}function ea(e,t){return Qf(e,Df)}function pr(e,t){const n=No(),[r]=m.useState(()=>new Nf(n,e));m.useEffect(()=>{r.setOptions(e)},[r,e]);const o=m.useSyncExternalStore(m.useCallback(s=>r.subscribe(se.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=m.useCallback((s,a)=>{r.mutate(s,a).catch(fe)},[r]);if(o.error&&Bs(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}const hr={STALE_TIME:1e3*60*5,GC_TIME:1e3*60*10,RETRY_COUNT:1,RETRY_DELAY:1e3},ta={refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,staleTime:hr.STALE_TIME,gcTime:hr.GC_TIME,retry:hr.RETRY_COUNT,retryDelay:hr.RETRY_DELAY,enable:!0},mr=e=>e instanceof Error?e.message:String(e),Yf=C("useResourceActions",(e,t,n)=>{const r=No(),{notify:o}=Ds(),{createFn:i,readFn:s,readByIdFn:a,updateFn:c,deleteFn:u,partialUpdateFn:d}=n,h=()=>{r.invalidateQueries({queryKey:[e]})},p=(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=>pr({mutationFn:T=>i(T),onSuccess:T=>{h(),p(t,T,`${t} created successfully`,E)},onError:T=>{g(t,T,`Error creating ${t}: ${mr(T)}`,E)}}),useReadQuery:E=>ea({queryKey:[e],queryFn:s,...ta,...E}),useReadByIdQuery:(E,T)=>ea({queryKey:[e,E],queryFn:()=>a(E),...ta,enabled:!!E,...T}),useUpdate:E=>pr({mutationFn:({id:T,data:R})=>c(T,R),onSuccess:T=>{h(),p(t,T,`${t} updated successfully`,E)},onError:T=>{g(t,T,`Error updating ${t}: ${mr(T)}`,E)}}),usePartialUpdate:E=>d&&pr({mutationFn:({id:T,data:R})=>d(T,R),onSuccess:T=>{h(),p(t,T,`${t} updated successfully`,E)},onError:T=>{g(t,T,`Error updating ${t}: ${mr(T)}`,E)}}),useDelete:E=>pr({mutationFn:T=>u(T),onSuccess:()=>{h(),p(t,null,`${t} deleted successfully`,E)},onError:T=>{g(t,T,`Error deleting ${t}: ${mr(T)}`,E)}}),invalidateQueries:h}}),bv=C("useResource",(e,t)=>Yf(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())})),Kf={SINGLE_TENANT:"single-tenant"},Zf={COOKIE:"cookie"},Mo="tenant",na="tenant",ra="tenant",Xf=Kf.SINGLE_TENANT,Jf=Zf.COOKIE,ep={mode:Xf,clientSideMode:Jf,tenantIDPProvisioningStrategy:"none"};class tp{setTenant(t,n){const r=new URL(window.location.href);r.searchParams.set(na,t.name),window.location.href=r.toString()}getCurrentTenantName(){const t=new URL(window.location.href);return new URLSearchParams(t.search).get(na)}}class np{setTenant(t,n){sessionStorage.setItem(ra,t.name),window.location.reload()}getCurrentTenantName(){return sessionStorage.getItem(ra)}}/*! js-cookie v3.0.5 | MIT */function gr(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 rp={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 $o(e,t){function n(o,i,s){if(!(typeof document>"u")){s=gr({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var c in s)s[c]&&(a+="; "+c,s[c]!==!0&&(a+="="+s[c].split(";")[0]));return document.cookie=o+"="+e.write(i,o)+a}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var i=document.cookie?document.cookie.split("; "):[],s={},a=0;a<i.length;a++){var c=i[a].split("="),u=c.slice(1).join("=");try{var d=decodeURIComponent(c[0]);if(s[d]=e.read(u,d),o===d)break}catch{}}return o?s[o]:s}}return Object.create({set:n,get:r,remove:function(o,i){n(o,"",gr({},i,{expires:-1}))},withAttributes:function(o){return $o(this.converter,gr({},this.attributes,o))},withConverter:function(o){return $o(gr({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Fo=$o(rp,{path:"/"});class op{setTenant(t,n){t?Fo.set(Mo,t.name):Fo.remove(Mo),window.location.reload()}getCurrentTenantName(){return Fo.get(Mo)}}class ip{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(d=>d.patternType==="subdomain"&&d.tenantId===t.id&&d.isActive);if(!r)throw new Error(`No active subdomain pattern found for tenant '${t.name}'`);const o=new URL(window.location.href),i=r.patternValue,s=o.hostname,a=this.getBaseDomain(s),c=i?`${i}.${a}`:a;o.hostname=c,window.location.href=o.toString()}getCurrentTenantName(){const t=window.location.hostname;return this.extractSubdomain(t)||null}}const oa={queryParams:new tp,sessionStorage:new np,cookie:new op,subdomain:new ip},sp=e=>{const t=oa[e.clientSideMode];if(!t)throw new Error(`Client side tenant mode '${e.clientSideMode}' is not supported ${JSON.stringify({strategies:oa},null,2)}`);return t},ap=(e,t,n)=>{const r=t.find(i=>i.name===n);if(!r)throw Error("No tenant permission");return sp(e).setTenant(r,e),r},wv=C("useTenants",()=>{const[e,t]=uo(),{tenants:n=[],currentTenant:r,tenantConfig:o=ep}=e,i=ue(s=>{const a=ap(o,n,s);t({...e,currentTenant:a})},[o,e]);return{tenants:n,currentTenant:r,tenantConfig:o,selectTenant:i}});function cp(e){if(!e.ok)throw console.error(e),new Error(e.statusText)}async function vr(e,t,n,r){const o=await e(`/user-states/${encodeURIComponent(t)}/${encodeURIComponent(n)}`,r);return cp(o),o}class yr{static async get(t,n,r){const i=await vr(t,n,r,{method:"GET",headers:{"Content-Type":"application/json"}});return i.status===204?null:await i.json()}static async create(t,n,r,o){const i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await vr(t,n,r,i)).json()}static async update(t,n,r,o){const i={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await vr(t,n,r,i)).json()}static async delete(t,n,r){return await vr(t,n,r,{method:"DELETE",headers:{"Content-Type":"application/json"}}),null}}const _v=C("useUserState",e=>{const t=ps("@bluealba/pae-nestjs-gateway-service"),n=Xu();if(!n)throw new Error("You must call the useUserState hook within a PAE application.");const[r,o]=F(null),[i,s]=F(!1),[a,c]=F(!1),[u,d]=F(null),h=(x,S)=>ue(async({newValue:E,shouldThrowError:T}={})=>{try{c(!0),d(null);const R=await x(t,n,e,E);return o(R),R?R.value:null}catch(R){if(d(R==null?void 0:R.message),console.error(`Failed to ${S} ${e}:`,R),T)throw R;return null}finally{c(!1)}},[t,n,e]),p=h(yr.get,"fetch"),g=h(yr.create,"create"),w=h(yr.update,"update"),f=h(yr.delete,"delete"),v=ue(async()=>{try{await p()}finally{s(!0)}},[p]);K(()=>{v()},[v]);const _=ue(async(x,S=!1)=>r==null?await g({newValue:x,shouldThrowError:S}):await w({newValue:x,shouldThrowError:S}),[r,g,w]);return{value:r?r.value:null,hasFetched:i,loading:a,error:u,setValue:_,createValue:g,updateValue:w,deleteValue:f}}),ia="__PAE_EXTENSION_POINT_REACT_CONTENT_EMPTY__",xv=C("ExtendExtensionPoint",({module:e,point:t,children:n})=>(sd(e,t,n??ia),null)),lp=C("ExtensionPoint",({name:e,children:t,...n})=>{const r=id(e);if(r===ia)return null;if(!r)return l.jsx(l.Fragment,{children:t??null});if(up(r)){const o=r;return l.jsx(o,{...n})}else return r}),up=e=>typeof e=="function",Cv=C("extensionPoint",(e,t)=>{const n=r=>(t=t||e.displayName||e.name||"?",l.jsx(lp,{name:t,...r,children:l.jsx(e,{...r})}));return n.displayName=`extensionPoint(${t})`,n}),sa="single-spa:app-change";function dp(){const[e,t]=F(aa());return K(()=>{const n=()=>{t(aa())};return window.addEventListener(sa,n),()=>{window.removeEventListener(sa,n)}},[]),e}function aa(){return Yn.getAppNames().reduce((t,n)=>(Yn.getAppStatus(n)?t[n]=Yn.getAppStatus(n):t[n]="NOT_LOADED",t),{})}function fp(e){const n=dp()[e]??"LOAD_ERROR";return{statusName:n,isLoading:n==="LOADING_SOURCE_CODE"||n==="BOOTSTRAPPING"||n==="MOUNTING",isMounted:n==="MOUNTED",isBroken:n==="SKIP_BECAUSE_BROKEN"||n==="LOAD_ERROR"}}const ca=({appName:e})=>l.jsx("div",{children:l.jsxs("p",{children:["Loading ",e,"..."]})});ca.displayName="BaseLoading";const la=({appName:e})=>l.jsxs("div",{children:[l.jsx("p",{children:"Something went wrong..."}),l.jsxs("p",{children:["Failed to load ",e]})]});la.displayName="BaseError";const pp={display:"flex",flexDirection:"column",flex:1},ua=B((e,t)=>l.jsx("div",{ref:t,style:pp,...e}));ua.displayName="BaseContainer";const hp="pae-app:",mp=C("ModulePlaceHolder",B(({appName:e,LoadingComponent:t=ca,ErrorComponent:n=la,ContainerComponent:r=ua,...o},i)=>{const s=fp(e);return l.jsxs(r,{ref:i,...o,id:`${hp}${e}`,children:[s.isLoading&&l.jsx(t,{appName:e}),s.isBroken&&l.jsx(n,{appName:e})]})}));mp.displayName="ModulePlaceHolder";const da=C("Authorized",({operations:e,children:t,forbiddenContent:n})=>{var o;const{hasAccess:r}=po();if(!r(...e)){if(!n)return null;if(typeof n=="function")if((o=n==null?void 0:n.prototype)!=null&&o.isReactComponent){const i=n;return l.jsx(i,{operations:e})}else return n({operations:e});return Qn.isValidElement(n)?n:null}return t});da.displayName="Authorized";const Ev=C("PlatformEventListener",({eventName:e,listener:t})=>(ad(e,t),null)),gp=()=>l.jsx("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:l.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"})}),vp=C("ApplicationIcon",({applicationName:e})=>{const t=Iu(e);if(t)if(typeof t=="function"){const n=t;return l.jsx(n,{})}else return t;return l.jsx(gp,{})});vp.displayName="ApplicationIcon";const Sv=C("authorized",(e,t)=>{const n=r=>l.jsx(da,{operations:t,children:l.jsx(e,{...r})});return n.displayName="Authorized",n});function fa(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=fa(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function j(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=fa(e))&&(r&&(r+=" "),r+=t);return r}const br={spinner:"spinner__fakUN","spinner-rotation":"spinner-rotation__wUmPV",spinnerRotation:"spinner-rotation__wUmPV",button:"button__8FA9H","button--contained-primary":"button--contained-primary__stkTx",buttonContainedPrimary:"button--contained-primary__stkTx","button--outlined-primary":"button--outlined-primary__KZ1ww",buttonOutlinedPrimary:"button--outlined-primary__KZ1ww","button--text-primary":"button--text-primary__GLTfm",buttonTextPrimary:"button--text-primary__GLTfm","button--contained-danger":"button--contained-danger__L9ehT",buttonContainedDanger:"button--contained-danger__L9ehT","button--outlined-danger":"button--outlined-danger__eoYLd",buttonOutlinedDanger:"button--outlined-danger__eoYLd","button--text-danger":"button--text-danger__Sw-ha",buttonTextDanger:"button--text-danger__Sw-ha",icon:"icon__--umH"},Bo=C("Button",B(({variant:e="contained",colorScheme:t="primary",loading:n=!1,IconComponent:r,className:o,children:i,...s},a)=>{const c=j(br.button,br[`button--${e}-${t}`],o);return l.jsxs("button",{ref:a,className:c,...s,children:[n?l.jsx("div",{className:br.spinner}):r&&l.jsx(r,{className:br.icon}),i]})}));Bo.displayName="Button";const wr={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"},pa={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};var ha={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function yp(e){var d,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(),pa[e])n=pa[e].slice(),o="rgb";else if(e==="transparent")r=0,o="rgb",n=[0,0,0];else if(e[0]==="#"){var i=e.slice(1),s=i.length,a=s<=4;r=1,a?(n=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],s===4&&(r=parseInt(i[3]+i[3],16)/255)):(n=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],s===8&&(r=parseInt(i[6]+i[7],16)/255)),n[0]||(n[0]=0),n[1]||(n[1]=0),n[2]||(n[2]=0),o="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var c=t[1];o=c.replace(/a$/,"");var 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(p,g){if(p[p.length-1]==="%")return p=parseFloat(p)/100,g===3?p:o==="rgb"?p*255:o[0]==="h"||o[0]==="l"&&!g?p*100:o==="lab"?p*125:o==="lch"?g<2?p*150:p*360:o[0]==="o"&&!g?p:o==="oklab"?p*.4:o==="oklch"?g<2?p*.4:p*360:p;if(o[g]==="h"||g===2&&o[o.length-1]==="h"){if(ha[p]!==void 0)return ha[p];if(p.endsWith("deg"))return parseFloat(p);if(p.endsWith("turn"))return parseFloat(p)*360;if(p.endsWith("grad"))return parseFloat(p)*360/400;if(p.endsWith("rad"))return parseFloat(p)*180/Math.PI}return p==="none"?0:parseFloat(p)}),r=n.length>u?n.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(n=e.match(/([0-9]+)/g).map(function(p){return parseFloat(p)}),o=((h=(d=e.match(/([a-z])/ig))==null?void 0:d.join(""))==null?void 0:h.toLowerCase())||"rgb");return{space:o,values:n,alpha:r}}const bp=(e,t)=>{const{space:n,values:r}=yp(e);return n[0]==="h"?`${n}a(${r[0]}, ${r[1]}%, ${r[2]}%, ${t})`:`${n}a(${r}, ${t})`},ma=C("Badge",B(({children:e,color:t,className:n,customColor:r,size:o="small",style:i,...s},a)=>{const c=r?{color:r,background:bp(r,.1)}:{},u=j(wr.Badge,wr[`Badge--${o}`],{[wr[`Badge--${t}`]]:!!t},n);return l.jsx("span",{ref:a,className:u,style:{...i,...c},...s,children:e})}));ma.displayName="Badge";const ga=C("Badges",B(({children:e,className:t,...n},r)=>{const o=j(wr.Badges,t);return l.jsx("div",{ref:r,className:o,...n,children:e})}));ga.displayName="Badges";const wp=C("ClipboardIcon",({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...i})=>l.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:o,...i,children:[l.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),l.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"})]})),_p=C("ClipboardCheckIcon",({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...i})=>l.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:o,...i,children:[l.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),l.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"}),l.jsx("path",{d:"m9 12 2 2 4-4"})]})),xp={CopyToClipboardButton:"CopyToClipboardButton__2Nd2m"},Yv=C("CopyToClipboardButton",({content:e})=>{const[t,n]=Cp(),{notify:r}=Ds(),o=t?_p:wp,i=ue(async()=>{await n(e)&&r("Copied to the Clipboard !","success")},[e,r]);return l.jsx(o,{className:xp.CopyToClipboardButton,size:18,onClick:i})}),Cp=()=>{const[e,t]=F(!1);return[e,async r=>{try{return await navigator.clipboard.writeText(r),t(!0),setTimeout(()=>t(!1),2e3),!0}catch(o){return console.error("Failed to copy text: ",o),!1}}]},va={FieldGroup:"FieldGroup__Q2JCV",fieldGroup:"FieldGroup__Q2JCV","FieldGroup--horizontal":"FieldGroup--horizontal__kpfL1",fieldGroupHorizontal:"FieldGroup--horizontal__kpfL1","FieldGroup--vertical":"FieldGroup--vertical__FLo-Q",fieldGroupVertical:"FieldGroup--vertical__FLo-Q"},Ep=C("FieldGroup",B(({children:e,className:t,orientation:n="vertical",...r},o)=>{const i=j(va.FieldGroup,va[`FieldGroup--${n}`],t);return l.jsx("div",{ref:o,className:i,...r,children:e})}));Ep.displayName="FieldGroup";const ya={Input:"Input__uS0sb",Error:"Error__-DQpw"},Uo=C("Input",B(({className:e,error:t,...n},r)=>{const o=j(ya.Input,t&&ya.Error,e);return l.jsx("input",{ref:r,className:o,...n})}));Uo.displayName="Input";const Sp={Error:"Error__N4OP5"},Tp=C("InputError",B(({children:e,className:t,...n},r)=>{const o=j(Sp.Error,t);return l.jsx("span",{ref:r,className:o,...n,children:e})}));Tp.displayName="InputError";const ba={Label:"Label__VYUvW",Error:"Error__Eu6DI"},Ap=C("Label",B(({children:e,className:t,error:n,...r},o)=>{const i=j(ba.Label,n&&ba.Error,t);return l.jsx("label",{ref:o,className:i,...r,children:e})}));Ap.displayName="Label";const zo={Select:"Select__giqpe",Chevron:"Chevron__YvhBd"},wa=B(({children:e,className:t,...n},r)=>{const o=j(zo.Option,t);return l.jsx("option",{ref:r,className:o,...n,children:e})});wa.displayName="Option";const _a=C("Select",B(({children:e,className:t,...n},r)=>{const o=j(zo.Select,t);return l.jsxs("div",{className:o,children:[l.jsx("select",{ref:r,...n,children:e}),l.jsx("div",{className:zo.Chevron,children:l.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M4 6L8 10L12 6",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})})]})}));_a.displayName="Select",_a.Option=wa;const Pp={TextArea:"TextArea__pa-A0"},Rp=C("TextArea",B(({children:e,className:t,...n},r)=>{const o=j(Pp.TextArea,t);return l.jsx("textarea",{ref:r,className:o,...n,children:e})}));Rp.displayName="TextArea";const Dn={SearchInput:"SearchInput__4OFyE",SearchIcon:"SearchIcon__YgnQy",ClearIcon:"ClearIcon__ukRVr",SearchInput__ClearIcon:"SearchInput__ClearIcon__uzVoc",SearchInput__SearchIcon:"SearchInput__SearchIcon__zoDG4"},xa=C("SearchInput",B(({className:e,placeholder:t="Type to search...",showClearButton:n=!1,showSearchIcon:r=!0,onClear:o,...i},s)=>{const a=j(Dn.SearchInput,n&&Dn.SearchInput__ClearIcon,r&&Dn.SearchInput__SearchIcon,e),c=j(Dn.SearchIcon),u=j(Dn.ClearIcon);return l.jsxs("div",{className:a,children:[l.jsx(Uo,{ref:s,type:"text",placeholder:t,...i}),r&&l.jsx("svg",{className:c,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.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&&l.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:l.jsx("path",{d:"M7.33334 0.666748L0.666672 7.33341M0.666672 0.666748L7.33334 7.33341",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})]})}));xa.displayName="SearchInput";const Rt={SearchAutocomplete:"SearchAutocomplete__vR9Hk",AutocompleteItem:"AutocompleteItem__YIm7R","AutocompleteItem--canBeSelected":"AutocompleteItem--canBeSelected__jxk4z",AutocompleteHighlighter:"AutocompleteHighlighter__LAFTV",AutocompleteHighlighter__match:"AutocompleteHighlighter__match__Wy1o2",DropdownList:"DropdownList__-fHIk",AutocompleteItemDescription:"AutocompleteItemDescription__4QYN5"},Yt=C("dropdownListStyles",{DropdownList:"DropdownList__QTXXX",dropdownList:"DropdownList__QTXXX","DropdownList--closed":"DropdownList--closed__pdL1Z",dropdownListClosed:"DropdownList--closed__pdL1Z","DropdownList--open":"DropdownList--open__opzc9",dropdownListOpen:"DropdownList--open__opzc9","DropdownList--left":"DropdownList--left__xSwXR",dropdownListLeft:"DropdownList--left__xSwXR"}),Ho=C("DropdownList",B(({children:e,className:t,open:n,align:r="right",...o},i)=>{const s=j(Yt.DropdownList,{[Yt["DropdownList--open"]]:n,[Yt["DropdownList--closed"]]:!n,[Yt["DropdownList--left"]]:r==="left"},t);return l.jsx("div",{ref:i,className:s,...o,children:e})}));Ho.displayName="DropdownList";const Ln=B(({children:e,className:t,canBeSelected:n=!1,...r},o)=>{const i=j(Rt.AutocompleteItem,{[Rt["AutocompleteItem--canBeSelected"]]:n},t);return l.jsx("div",{ref:o,className:i,...r,children:e})});Ln.displayName="AutocompleteItem";const Op=300,kp={query:"",suggestions:[],loading:!1,error:null},jp=({suggestionFetcher:e,canAdd:t})=>{const[n,r]=F(kp);return K(()=>{r(a=>({...a,loading:!0}));const i=async()=>{try{const a=await e(n.query);t&&!a.some(c=>c.value.toLowerCase()===n.query.toLowerCase())&&a.push({label:`Add "${n.query}"`,value:n.query,isNew:!0}),r(c=>({...c,suggestions:a,loading:!1}))}catch(a){r(c=>({...c,suggestions:[],error:a,loading:!1}))}},s=setTimeout(()=>{i()},Op);return()=>{clearTimeout(s)}},[n.query]),{...n,setQuery:i=>{r(s=>({...s,query:i}))}}},Ca=B(({text:e,query:t,className:n,...r},o)=>{const i=j(Rt.AutocompleteHighlighter,n),s=(a,c)=>{const u=a.toLowerCase().indexOf(c.toLowerCase());if(u===-1||c.length===0)return a;const d=a.slice(0,u),h=a.slice(u,u+c.length),p=a.slice(u+c.length);return l.jsxs(l.Fragment,{children:[d,l.jsx("span",{className:Rt.AutocompleteHighlighter__match,children:h}),s(p,c)]})};return l.jsx("div",{ref:o,className:i,...r,children:s(e,t)})});Ca.displayName="AutocompleteHighlighter";const Dp=5,Lp=C("SearchAutocomplete",B(({children:e,className:t,canAdd:n,maxSuggestionsShown:r=Dp,searchInputProps:o,keepSelectedOption:i,suggestionFetcher:s,onAccept:a,...c},u)=>{const{query:d,setQuery:h,suggestions:p,loading:g}=jp({suggestionFetcher:s,canAdd:n}),[w,f]=F(null),v=d.length>0,_=P=>{h(P.target.value)},x=P=>{a==null||a(P),i?(f(P),h(P.value)):h("")},S=()=>{a==null||a(null),f(null),h("")},E=j(Rt.SearchAutocomplete,t),T=p.slice(0,r),R=p.slice(r);return l.jsxs("div",{ref:u,className:E,...c,children:[l.jsx(xa,{...o,value:d,onChange:_,showClearButton:!!w,onClear:S}),e,l.jsxs(Ho,{className:Rt.DropdownList,open:v&&!w,role:"listbox","aria-label":"Suggestions",children:[g?l.jsx(Ln,{children:"Loading..."}):T.map(P=>l.jsxs(Ln,{canBeSelected:!0,onClick:x.bind(null,P),children:[l.jsx(Ca,{text:P.label,query:d}),P.description&&l.jsx("span",{className:Rt.AutocompleteItemDescription,children:P.description})]},P.value)),!g&&R.length>0&&l.jsxs(Ln,{children:[R.length," more results"]}),v&&p.length===0&&!g&&l.jsx(Ln,{children:"No results found"})]})]})}));Lp.displayName="SearchAutocomplete";const Ot=C("Show",e=>{let t=null,n=null;return Gi.forEach(e.children,r=>{const o=r.props.condition;o===void 0?n=r:!t&&o===!0&&(t=r)}),l.jsx(l.Fragment,{children:t||n})});Ot.displayName="Show",Ot.When=({condition:e,children:t})=>l.jsx(l.Fragment,{children:e&&t}),Ot.Else=({render:e,children:t})=>l.jsx(l.Fragment,{children:e||t});function Ea(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Sa(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Ea(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Ea(e[o],null)}}}}function ke(...e){return m.useCallback(Sa(...e),e)}function Wo(e){const t=Np(e),n=m.forwardRef((r,o)=>{const{children:i,...s}=r,a=m.Children.toArray(i),c=a.find($p);if(c){const u=c.props.children,d=a.map(h=>h===c?m.Children.count(u)>1?m.Children.only(null):m.isValidElement(u)?u.props.children:null:h);return l.jsx(t,{...s,ref:o,children:m.isValidElement(u)?m.cloneElement(u,void 0,d):null})}return l.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var Ip=Wo("Slot");function Np(e){const t=m.forwardRef((n,r)=>{const{children:o,...i}=n;if(m.isValidElement(o)){const s=Bp(o),a=Fp(i,o.props);return o.type!==m.Fragment&&(a.ref=r?Sa(r,s):s),m.cloneElement(o,a)}return m.Children.count(o)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ta=Symbol("radix.slottable");function Mp(e){const t=({children:n})=>l.jsx(l.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Ta,t}function $p(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ta}function Fp(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const c=i(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Bp(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Aa={SkeletonListContainer:"SkeletonListContainer__MKJhE",Skeleton:"Skeleton__Ovpiw"},Vo=C("Skeleton",B((e,t)=>{const{children:n,className:r,loading:o,height:i=48,width:s,borderRadius:a,style:c,...u}=e;if(!o&&n)return n;const d=io(n)?Ip:"span";return l.jsx(d,{ref:t,"aria-hidden":!0,className:j(Aa.Skeleton,r),style:{...c,width:s,minWidth:s,height:i,borderRadius:a},"data-inline-skeleton":io(n)?void 0:!0,tabIndex:-1,...u,children:n})}));Vo.displayName="Skeleton";const Up=C("SkeletonList",e=>{const{numberOfItems:t,itemsGap:n=2,itemProps:r}=e,o=Array.from({length:t},(i,s)=>s+1);return l.jsx("div",{className:j(Aa.SkeletonListContainer),style:{gap:n},children:o.map(i=>l.jsx(Vo,{loading:!0,...r},i))})});Up.displayName="SkeletonList";function ve(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function zp(e,t){const n=m.createContext(t),r=i=>{const{children:s,...a}=i,c=m.useMemo(()=>a,Object.values(a));return l.jsx(n.Provider,{value:c,children:s})};r.displayName=e+"Provider";function o(i){const s=m.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function Go(e,t=[]){let n=[];function r(i,s){const a=m.createContext(s),c=n.length;n=[...n,s];const u=h=>{var _;const{scope:p,children:g,...w}=h,f=((_=p==null?void 0:p[e])==null?void 0:_[c])||a,v=m.useMemo(()=>w,Object.values(w));return l.jsx(f.Provider,{value:v,children:g})};u.displayName=i+"Provider";function d(h,p){var f;const g=((f=p==null?void 0:p[e])==null?void 0:f[c])||a,w=m.useContext(g);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(s=>m.createContext(s));return function(a){const c=(a==null?void 0:a[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,Hp(o,...t)]}function Hp(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:c,scopeName:u})=>{const h=c(i)[`__scope${u}`];return{...a,...h}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var Wp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ye=Wp.reduce((e,t)=>{const n=Wo(`Primitive.${t}`),r=m.forwardRef((o,i)=>{const{asChild:s,...a}=o,c=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(c,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Vp(e,t){e&&ao.flushSync(()=>e.dispatchEvent(t))}function Kt(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Gp(e,t=globalThis==null?void 0:globalThis.document){const n=Kt(e);m.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 qp="DismissableLayer",qo="dismissableLayer.update",Qp="dismissableLayer.pointerDownOutside",Yp="dismissableLayer.focusOutside",Pa,Ra=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qo=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,u=m.useContext(Ra),[d,h]=m.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=m.useState({}),w=ke(t,P=>h(P)),f=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),_=f.indexOf(v),x=d?f.indexOf(d):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,E=x>=_,T=Xp(P=>{const I=P.target,N=[...u.branches].some(M=>M.contains(I));!E||N||(o==null||o(P),s==null||s(P),P.defaultPrevented||a==null||a())},p),R=Jp(P=>{const I=P.target;[...u.branches].some(M=>M.contains(I))||(i==null||i(P),s==null||s(P),P.defaultPrevented||a==null||a())},p);return Gp(P=>{x===u.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&a&&(P.preventDefault(),a()))},p),m.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Pa=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Oa(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Pa)}},[d,p,n,u]),m.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Oa())},[d,u]),m.useEffect(()=>{const P=()=>g({});return document.addEventListener(qo,P),()=>document.removeEventListener(qo,P)},[]),l.jsx(ye.div,{...c,ref:w,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:ve(e.onFocusCapture,R.onFocusCapture),onBlurCapture:ve(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:ve(e.onPointerDownCapture,T.onPointerDownCapture)})});Qo.displayName=qp;var Kp="DismissableLayerBranch",Zp=m.forwardRef((e,t)=>{const n=m.useContext(Ra),r=m.useRef(null),o=ke(t,r);return m.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),l.jsx(ye.div,{...e,ref:o})});Zp.displayName=Kp;function Xp(e,t=globalThis==null?void 0:globalThis.document){const n=Kt(e),r=m.useRef(!1),o=m.useRef(()=>{});return m.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){ka(Qp,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Jp(e,t=globalThis==null?void 0:globalThis.document){const n=Kt(e),r=m.useRef(!1);return m.useEffect(()=>{const o=i=>{i.target&&!r.current&&ka(Yp,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Oa(){const e=new CustomEvent(qo);document.dispatchEvent(e)}function ka(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Vp(o,i):o.dispatchEvent(i)}var ut=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},eh=m[" useId ".trim().toString()]||(()=>{}),th=0;function _r(e){const[t,n]=m.useState(eh());return ut(()=>{n(r=>r??String(th++))},[e]),t?`radix-${t}`:""}const nh=["top","right","bottom","left"],dt=Math.min,Ee=Math.max,xr=Math.round,Cr=Math.floor,Fe=e=>({x:e,y:e}),rh={left:"right",right:"left",bottom:"top",top:"bottom"},oh={start:"end",end:"start"};function Yo(e,t,n){return Ee(e,dt(t,n))}function Ke(e,t){return typeof e=="function"?e(t):e}function Ze(e){return e.split("-")[0]}function Zt(e){return e.split("-")[1]}function Ko(e){return e==="x"?"y":"x"}function Zo(e){return e==="y"?"height":"width"}const ih=new Set(["top","bottom"]);function Be(e){return ih.has(Ze(e))?"y":"x"}function Xo(e){return Ko(Be(e))}function sh(e,t,n){n===void 0&&(n=!1);const r=Zt(e),o=Xo(e),i=Zo(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Er(s)),[s,Er(s)]}function ah(e){const t=Er(e);return[Jo(e),t,Jo(t)]}function Jo(e){return e.replace(/start|end/g,t=>oh[t])}const ja=["left","right"],Da=["right","left"],ch=["top","bottom"],lh=["bottom","top"];function uh(e,t,n){switch(e){case"top":case"bottom":return n?t?Da:ja:t?ja:Da;case"left":case"right":return t?ch:lh;default:return[]}}function dh(e,t,n,r){const o=Zt(e);let i=uh(Ze(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Jo)))),i}function Er(e){return e.replace(/left|right|bottom|top/g,t=>rh[t])}function fh(e){return{top:0,right:0,bottom:0,left:0,...e}}function La(e){return typeof e!="number"?fh(e):{top:e,right:e,bottom:e,left:e}}function Sr(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ia(e,t,n){let{reference:r,floating:o}=e;const i=Be(t),s=Xo(t),a=Zo(s),c=Ze(t),u=i==="y",d=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let g;switch(c){case"top":g={x:d,y:r.y-o.height};break;case"bottom":g={x:d,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(Zt(t)){case"start":g[s]-=p*(n&&u?-1:1);break;case"end":g[s]+=p*(n&&u?-1:1);break}return g}const ph=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:h}=Ia(u,r,c),p=r,g={},w=0;for(let f=0;f<a.length;f++){const{name:v,fn:_}=a[f],{x,y:S,data:E,reset:T}=await _({x:d,y:h,initialPlacement:r,placement:p,strategy:o,middlewareData:g,rects:u,platform:s,elements:{reference:e,floating:t}});d=x??d,h=S??h,g={...g,[v]:{...g[v],...E}},T&&w<=50&&(w++,typeof T=="object"&&(T.placement&&(p=T.placement),T.rects&&(u=T.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):T.rects),{x:d,y:h}=Ia(u,p,c)),f=-1)}return{x:d,y:h,placement:p,strategy:o,middlewareData:g}};async function In(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:p=!1,padding:g=0}=Ke(t,e),w=La(g),v=a[p?h==="floating"?"reference":"floating":h],_=Sr(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:c})),x=h==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),E=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},T=Sr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:S,strategy:c}):x);return{top:(_.top-T.top+w.top)/E.y,bottom:(T.bottom-_.bottom+w.bottom)/E.y,left:(_.left-T.left+w.left)/E.x,right:(T.right-_.right+w.right)/E.x}}const hh=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:u,padding:d=0}=Ke(e,t)||{};if(u==null)return{};const h=La(d),p={x:n,y:r},g=Xo(o),w=Zo(g),f=await s.getDimensions(u),v=g==="y",_=v?"top":"left",x=v?"bottom":"right",S=v?"clientHeight":"clientWidth",E=i.reference[w]+i.reference[g]-p[g]-i.floating[w],T=p[g]-i.reference[g],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let P=R?R[S]:0;(!P||!await(s.isElement==null?void 0:s.isElement(R)))&&(P=a.floating[S]||i.floating[w]);const I=E/2-T/2,N=P/2-f[w]/2-1,M=dt(h[_],N),Z=dt(h[x],N),X=M,V=P-f[w]-Z,Q=P/2-f[w]/2+I,ae=Yo(X,Q,V),ne=!c.arrow&&Zt(o)!=null&&Q!==ae&&i.reference[w]/2-(Q<X?M:Z)-f[w]/2<0,re=ne?Q<X?Q-X:Q-V:0;return{[g]:p[g]+re,data:{[g]:ae,centerOffset:Q-ae-re,...ne&&{alignmentOffset:re}},reset:ne}}}),mh=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:f=!0,...v}=Ke(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const _=Ze(o),x=Be(a),S=Ze(a)===a,E=await(c.isRTL==null?void 0:c.isRTL(u.floating)),T=p||(S||!f?[Er(a)]:ah(a)),R=w!=="none";!p&&R&&T.push(...dh(a,f,w,E));const P=[a,...T],I=await In(t,v),N=[];let M=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&N.push(I[_]),h){const Q=sh(o,s,E);N.push(I[Q[0]],I[Q[1]])}if(M=[...M,{placement:o,overflows:N}],!N.every(Q=>Q<=0)){var Z,X;const Q=(((Z=i.flip)==null?void 0:Z.index)||0)+1,ae=P[Q];if(ae&&(!(h==="alignment"?x!==Be(ae):!1)||M.every(U=>Be(U.placement)===x?U.overflows[0]>0:!0)))return{data:{index:Q,overflows:M},reset:{placement:ae}};let ne=(X=M.filter(re=>re.overflows[0]<=0).sort((re,U)=>re.overflows[1]-U.overflows[1])[0])==null?void 0:X.placement;if(!ne)switch(g){case"bestFit":{var V;const re=(V=M.filter(U=>{if(R){const ce=Be(U.placement);return ce===x||ce==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(ce=>ce>0).reduce((ce,Te)=>ce+Te,0)]).sort((U,ce)=>U[1]-ce[1])[0])==null?void 0:V[0];re&&(ne=re);break}case"initialPlacement":ne=a;break}if(o!==ne)return{reset:{placement:ne}}}return{}}}};function Na(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ma(e){return nh.some(t=>e[t]>=0)}const gh=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ke(e,t);switch(r){case"referenceHidden":{const i=await In(t,{...o,elementContext:"reference"}),s=Na(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ma(s)}}}case"escaped":{const i=await In(t,{...o,altBoundary:!0}),s=Na(i,n.floating);return{data:{escapedOffsets:s,escaped:Ma(s)}}}default:return{}}}}},$a=new Set(["left","top"]);async function vh(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Ze(n),a=Zt(n),c=Be(n)==="y",u=$a.has(s)?-1:1,d=i&&c?-1:1,h=Ke(t,e);let{mainAxis:p,crossAxis:g,alignmentAxis:w}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof w=="number"&&(g=a==="end"?w*-1:w),c?{x:g*d,y:p*u}:{x:p*u,y:g*d}}const yh=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,c=await vh(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},bh=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:_,y:x}=v;return{x:_,y:x}}},...c}=Ke(e,t),u={x:n,y:r},d=await In(t,c),h=Be(Ze(o)),p=Ko(h);let g=u[p],w=u[h];if(i){const v=p==="y"?"top":"left",_=p==="y"?"bottom":"right",x=g+d[v],S=g-d[_];g=Yo(x,g,S)}if(s){const v=h==="y"?"top":"left",_=h==="y"?"bottom":"right",x=w+d[v],S=w-d[_];w=Yo(x,w,S)}const f=a.fn({...t,[p]:g,[h]:w});return{...f,data:{x:f.x-n,y:f.y-r,enabled:{[p]:i,[h]:s}}}}}},wh=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=Ke(e,t),d={x:n,y:r},h=Be(o),p=Ko(h);let g=d[p],w=d[h];const f=Ke(a,t),v=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(c){const S=p==="y"?"height":"width",E=i.reference[p]-i.floating[S]+v.mainAxis,T=i.reference[p]+i.reference[S]-v.mainAxis;g<E?g=E:g>T&&(g=T)}if(u){var _,x;const S=p==="y"?"width":"height",E=$a.has(Ze(o)),T=i.reference[h]-i.floating[S]+(E&&((_=s.offset)==null?void 0:_[h])||0)+(E?0:v.crossAxis),R=i.reference[h]+i.reference[S]+(E?0:((x=s.offset)==null?void 0:x[h])||0)-(E?v.crossAxis:0);w<T?w=T:w>R&&(w=R)}return{[p]:g,[h]:w}}}},_h=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:c=()=>{},...u}=Ke(e,t),d=await In(t,u),h=Ze(o),p=Zt(o),g=Be(o)==="y",{width:w,height:f}=i.floating;let v,_;h==="top"||h==="bottom"?(v=h,_=p===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(_=h,v=p==="end"?"top":"bottom");const x=f-d.top-d.bottom,S=w-d.left-d.right,E=dt(f-d[v],x),T=dt(w-d[_],S),R=!t.middlewareData.shift;let P=E,I=T;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(I=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=x),R&&!p){const M=Ee(d.left,0),Z=Ee(d.right,0),X=Ee(d.top,0),V=Ee(d.bottom,0);g?I=w-2*(M!==0||Z!==0?M+Z:Ee(d.left,d.right)):P=f-2*(X!==0||V!==0?X+V:Ee(d.top,d.bottom))}await c({...t,availableWidth:I,availableHeight:P});const N=await s.getDimensions(a.floating);return w!==N.width||f!==N.height?{reset:{rects:!0}}:{}}}};function Tr(){return typeof window<"u"}function Xt(e){return Fa(e)?(e.nodeName||"").toLowerCase():"#document"}function Se(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ue(e){var t;return(t=(Fa(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Fa(e){return Tr()?e instanceof Node||e instanceof Se(e).Node:!1}function je(e){return Tr()?e instanceof Element||e instanceof Se(e).Element:!1}function ze(e){return Tr()?e instanceof HTMLElement||e instanceof Se(e).HTMLElement:!1}function Ba(e){return!Tr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Se(e).ShadowRoot}const xh=new Set(["inline","contents"]);function Nn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=De(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!xh.has(o)}const Ch=new Set(["table","td","th"]);function Eh(e){return Ch.has(Xt(e))}const Sh=[":popover-open",":modal"];function Ar(e){return Sh.some(t=>{try{return e.matches(t)}catch{return!1}})}const Th=["transform","translate","scale","rotate","perspective"],Ah=["transform","translate","scale","rotate","perspective","filter"],Ph=["paint","layout","strict","content"];function ei(e){const t=ti(),n=je(e)?De(e):e;return Th.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)||Ah.some(r=>(n.willChange||"").includes(r))||Ph.some(r=>(n.contain||"").includes(r))}function Rh(e){let t=ft(e);for(;ze(t)&&!Jt(t);){if(ei(t))return t;if(Ar(t))return null;t=ft(t)}return null}function ti(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Oh=new Set(["html","body","#document"]);function Jt(e){return Oh.has(Xt(e))}function De(e){return Se(e).getComputedStyle(e)}function Pr(e){return je(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ft(e){if(Xt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ba(e)&&e.host||Ue(e);return Ba(t)?t.host:t}function Ua(e){const t=ft(e);return Jt(t)?e.ownerDocument?e.ownerDocument.body:e.body:ze(t)&&Nn(t)?t:Ua(t)}function Mn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ua(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Se(o);if(i){const a=ni(s);return t.concat(s,s.visualViewport||[],Nn(o)?o:[],a&&n?Mn(a):[])}return t.concat(o,Mn(o,[],n))}function ni(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function za(e){const t=De(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ze(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=xr(n)!==i||xr(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function ri(e){return je(e)?e:e.contextElement}function en(e){const t=ri(e);if(!ze(t))return Fe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=za(t);let s=(i?xr(n.width):n.width)/r,a=(i?xr(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const kh=Fe(0);function Ha(e){const t=Se(e);return!ti()||!t.visualViewport?kh:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function jh(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Se(e)?!1:t}function kt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=ri(e);let s=Fe(1);t&&(r?je(r)&&(s=en(r)):s=en(e));const a=jh(i,n,r)?Ha(i):Fe(0);let c=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,d=o.width/s.x,h=o.height/s.y;if(i){const p=Se(i),g=r&&je(r)?Se(r):r;let w=p,f=ni(w);for(;f&&r&&g!==w;){const v=en(f),_=f.getBoundingClientRect(),x=De(f),S=_.left+(f.clientLeft+parseFloat(x.paddingLeft))*v.x,E=_.top+(f.clientTop+parseFloat(x.paddingTop))*v.y;c*=v.x,u*=v.y,d*=v.x,h*=v.y,c+=S,u+=E,w=Se(f),f=ni(w)}}return Sr({width:d,height:h,x:c,y:u})}function oi(e,t){const n=Pr(e).scrollLeft;return t?t.left+n:kt(Ue(e)).left+n}function Wa(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:oi(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function Dh(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Ue(r),a=t?Ar(t.floating):!1;if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},u=Fe(1);const d=Fe(0),h=ze(r);if((h||!h&&!i)&&((Xt(r)!=="body"||Nn(s))&&(c=Pr(r)),ze(r))){const g=kt(r);u=en(r),d.x=g.x+r.clientLeft,d.y=g.y+r.clientTop}const p=s&&!h&&!i?Wa(s,c,!0):Fe(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-c.scrollTop*u.y+d.y+p.y}}function Lh(e){return Array.from(e.getClientRects())}function Ih(e){const t=Ue(e),n=Pr(e),r=e.ownerDocument.body,o=Ee(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ee(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+oi(e);const a=-n.scrollTop;return De(r).direction==="rtl"&&(s+=Ee(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function Nh(e,t){const n=Se(e),r=Ue(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const u=ti();(!u||u&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a,y:c}}const Mh=new Set(["absolute","fixed"]);function $h(e,t){const n=kt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ze(e)?en(e):Fe(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=o*i.x,u=r*i.y;return{width:s,height:a,x:c,y:u}}function Va(e,t,n){let r;if(t==="viewport")r=Nh(e,n);else if(t==="document")r=Ih(Ue(e));else if(je(t))r=$h(t,n);else{const o=Ha(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Sr(r)}function Ga(e,t){const n=ft(e);return n===t||!je(n)||Jt(n)?!1:De(n).position==="fixed"||Ga(n,t)}function Fh(e,t){const n=t.get(e);if(n)return n;let r=Mn(e,[],!1).filter(a=>je(a)&&Xt(a)!=="body"),o=null;const i=De(e).position==="fixed";let s=i?ft(e):e;for(;je(s)&&!Jt(s);){const a=De(s),c=ei(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&Mh.has(o.position)||Nn(s)&&!c&&Ga(e,s))?r=r.filter(d=>d!==s):o=a,s=ft(s)}return t.set(e,r),r}function Bh(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Ar(t)?[]:Fh(t,this._c):[].concat(n),r],a=s[0],c=s.reduce((u,d)=>{const h=Va(t,d,o);return u.top=Ee(h.top,u.top),u.right=dt(h.right,u.right),u.bottom=dt(h.bottom,u.bottom),u.left=Ee(h.left,u.left),u},Va(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Uh(e){const{width:t,height:n}=za(e);return{width:t,height:n}}function zh(e,t,n){const r=ze(t),o=Ue(t),i=n==="fixed",s=kt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Fe(0);function u(){c.x=oi(o)}if(r||!r&&!i)if((Xt(t)!=="body"||Nn(o))&&(a=Pr(t)),r){const g=kt(t,!0,i,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else o&&u();i&&!r&&o&&u();const d=o&&!r&&!i?Wa(o,a):Fe(0),h=s.left+a.scrollLeft-c.x-d.x,p=s.top+a.scrollTop-c.y-d.y;return{x:h,y:p,width:s.width,height:s.height}}function ii(e){return De(e).position==="static"}function qa(e,t){if(!ze(e)||De(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ue(e)===n&&(n=n.ownerDocument.body),n}function Qa(e,t){const n=Se(e);if(Ar(e))return n;if(!ze(e)){let o=ft(e);for(;o&&!Jt(o);){if(je(o)&&!ii(o))return o;o=ft(o)}return n}let r=qa(e,t);for(;r&&Eh(r)&&ii(r);)r=qa(r,t);return r&&Jt(r)&&ii(r)&&!ei(r)?n:r||Rh(e)||n}const Hh=async function(e){const t=this.getOffsetParent||Qa,n=this.getDimensions,r=await n(e.floating);return{reference:zh(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Wh(e){return De(e).direction==="rtl"}const Vh={convertOffsetParentRelativeRectToViewportRelativeRect:Dh,getDocumentElement:Ue,getClippingRect:Bh,getOffsetParent:Qa,getElementRects:Hh,getClientRects:Lh,getDimensions:Uh,getScale:en,isElement:je,isRTL:Wh};function Ya(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Gh(e,t){let n=null,r;const o=Ue(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:d,top:h,width:p,height:g}=u;if(a||t(),!p||!g)return;const w=Cr(h),f=Cr(o.clientWidth-(d+p)),v=Cr(o.clientHeight-(h+g)),_=Cr(d),S={rootMargin:-w+"px "+-f+"px "+-v+"px "+-_+"px",threshold:Ee(0,dt(1,c))||1};let E=!0;function T(R){const P=R[0].intersectionRatio;if(P!==c){if(!E)return s();P?s(!1,P):r=setTimeout(()=>{s(!1,1e-7)},1e3)}P===1&&!Ya(u,e.getBoundingClientRect())&&s(),E=!1}try{n=new IntersectionObserver(T,{...S,root:o.ownerDocument})}catch{n=new IntersectionObserver(T,S)}n.observe(e)}return s(!0),i}function qh(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=ri(e),d=o||i?[...u?Mn(u):[],...Mn(t)]:[];d.forEach(_=>{o&&_.addEventListener("scroll",n,{passive:!0}),i&&_.addEventListener("resize",n)});const h=u&&a?Gh(u,n):null;let p=-1,g=null;s&&(g=new ResizeObserver(_=>{let[x]=_;x&&x.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var S;(S=g)==null||S.observe(t)})),n()}),u&&!c&&g.observe(u),g.observe(t));let w,f=c?kt(e):null;c&&v();function v(){const _=kt(e);f&&!Ya(f,_)&&n(),f=_,w=requestAnimationFrame(v)}return n(),()=>{var _;d.forEach(x=>{o&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),h==null||h(),(_=g)==null||_.disconnect(),g=null,c&&cancelAnimationFrame(w)}}const Qh=yh,Yh=bh,Kh=mh,Zh=_h,Xh=gh,Ka=hh,Jh=wh,e1=(e,t,n)=>{const r=new Map,o={platform:Vh,...n},i={...o.platform,_c:r};return ph(e,t,{...o,platform:i})};var t1=typeof document<"u",n1=function(){},Rr=t1?qi:n1;function Or(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(!Or(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Or(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Za(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xa(e,t){const n=Za(e);return Math.round(t*n)/n}function si(e){const t=m.useRef(e);return Rr(()=>{t.current=e}),t}function r1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:u}=e,[d,h]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,g]=m.useState(r);Or(p,r)||g(r);const[w,f]=m.useState(null),[v,_]=m.useState(null),x=m.useCallback(U=>{U!==R.current&&(R.current=U,f(U))},[]),S=m.useCallback(U=>{U!==P.current&&(P.current=U,_(U))},[]),E=i||w,T=s||v,R=m.useRef(null),P=m.useRef(null),I=m.useRef(d),N=c!=null,M=si(c),Z=si(o),X=si(u),V=m.useCallback(()=>{if(!R.current||!P.current)return;const U={placement:t,strategy:n,middleware:p};Z.current&&(U.platform=Z.current),e1(R.current,P.current,U).then(ce=>{const Te={...ce,isPositioned:X.current!==!1};Q.current&&!Or(I.current,Te)&&(I.current=Te,ao.flushSync(()=>{h(Te)}))})},[p,t,n,Z,X]);Rr(()=>{u===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,h(U=>({...U,isPositioned:!1})))},[u]);const Q=m.useRef(!1);Rr(()=>(Q.current=!0,()=>{Q.current=!1}),[]),Rr(()=>{if(E&&(R.current=E),T&&(P.current=T),E&&T){if(M.current)return M.current(E,T,V);V()}},[E,T,V,M,N]);const ae=m.useMemo(()=>({reference:R,floating:P,setReference:x,setFloating:S}),[x,S]),ne=m.useMemo(()=>({reference:E,floating:T}),[E,T]),re=m.useMemo(()=>{const U={position:n,left:0,top:0};if(!ne.floating)return U;const ce=Xa(ne.floating,d.x),Te=Xa(ne.floating,d.y);return a?{...U,transform:"translate("+ce+"px, "+Te+"px)",...Za(ne.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ce,top:Te}},[n,a,ne.floating,d.x,d.y]);return m.useMemo(()=>({...d,update:V,refs:ae,elements:ne,floatingStyles:re}),[d,V,ae,ne,re])}const o1=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ka({element:r.current,padding:o}).fn(n):{}:r?Ka({element:r,padding:o}).fn(n):{}}}},i1=(e,t)=>({...Qh(e),options:[e,t]}),s1=(e,t)=>({...Yh(e),options:[e,t]}),a1=(e,t)=>({...Jh(e),options:[e,t]}),c1=(e,t)=>({...Kh(e),options:[e,t]}),l1=(e,t)=>({...Zh(e),options:[e,t]}),u1=(e,t)=>({...Xh(e),options:[e,t]}),d1=(e,t)=>({...o1(e),options:[e,t]});var f1="Arrow",Ja=m.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return l.jsx(ye.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ja.displayName=f1;var p1=Ja;function h1(e){const[t,n]=m.useState(void 0);return ut(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;s=u.inlineSize,a=u.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ai="Popper",[ec,tc]=Go(ai),[m1,nc]=ec(ai),rc=e=>{const{__scopePopper:t,children:n}=e,[r,o]=m.useState(null);return l.jsx(m1,{scope:t,anchor:r,onAnchorChange:o,children:n})};rc.displayName=ai;var oc="PopperAnchor",ic=m.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=nc(oc,n),s=m.useRef(null),a=ke(t,s);return m.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:l.jsx(ye.div,{...o,ref:a})});ic.displayName=oc;var ci="PopperContent",[g1,v1]=ec(ci),sc=m.forwardRef((e,t)=>{var _n,Ht,xn,Wt,Zr,Gn;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:p=!1,updatePositionStrategy:g="optimized",onPlaced:w,...f}=e,v=nc(ci,n),[_,x]=m.useState(null),S=ke(t,Vt=>x(Vt)),[E,T]=m.useState(null),R=h1(E),P=(R==null?void 0:R.width)??0,I=(R==null?void 0:R.height)??0,N=r+(i!=="center"?"-"+i:""),M=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},Z=Array.isArray(u)?u:[u],X=Z.length>0,V={padding:M,boundary:Z.filter(b1),altBoundary:X},{refs:Q,floatingStyles:ae,placement:ne,isPositioned:re,middlewareData:U}=r1({strategy:"fixed",placement:N,whileElementsMounted:(...Vt)=>qh(...Vt,{animationFrame:g==="always"}),elements:{reference:v.anchor},middleware:[i1({mainAxis:o+I,alignmentAxis:s}),c&&s1({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?a1():void 0,...V}),c&&c1({...V}),l1({...V,apply:({elements:Vt,rects:Xr,availableWidth:Cn,availableHeight:Gt})=>{const{width:Jr,height:eo}=Xr.reference,rt=Vt.floating.style;rt.setProperty("--radix-popper-available-width",`${Cn}px`),rt.setProperty("--radix-popper-available-height",`${Gt}px`),rt.setProperty("--radix-popper-anchor-width",`${Jr}px`),rt.setProperty("--radix-popper-anchor-height",`${eo}px`)}}),E&&d1({element:E,padding:a}),w1({arrowWidth:P,arrowHeight:I}),p&&u1({strategy:"referenceHidden",...V})]}),[ce,Te]=lc(ne),zt=Kt(w);ut(()=>{re&&(zt==null||zt())},[re,zt]);const Yr=(_n=U.arrow)==null?void 0:_n.x,Kr=(Ht=U.arrow)==null?void 0:Ht.y,Oi=((xn=U.arrow)==null?void 0:xn.centerOffset)!==0,[ki,Vn]=m.useState();return ut(()=>{_&&Vn(window.getComputedStyle(_).zIndex)},[_]),l.jsx("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:{...ae,transform:re?ae.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ki,"--radix-popper-transform-origin":[(Wt=U.transformOrigin)==null?void 0:Wt.x,(Zr=U.transformOrigin)==null?void 0:Zr.y].join(" "),...((Gn=U.hide)==null?void 0:Gn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(g1,{scope:n,placedSide:ce,onArrowChange:T,arrowX:Yr,arrowY:Kr,shouldHideArrow:Oi,children:l.jsx(ye.div,{"data-side":ce,"data-align":Te,...f,ref:S,style:{...f.style,animation:re?void 0:"none"}})})})});sc.displayName=ci;var ac="PopperArrow",y1={top:"bottom",right:"left",bottom:"top",left:"right"},cc=m.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=v1(ac,r),s=y1[i.placedSide];return l.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:l.jsx(p1,{...o,ref:n,style:{...o.style,display:"block"}})})});cc.displayName=ac;function b1(e){return e!==null}var w1=e=>({name:"transformOrigin",options:e,fn(t){var v,_,x;const{placement:n,rects:r,middlewareData:o}=t,s=((v=o.arrow)==null?void 0:v.centerOffset)!==0,a=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[u,d]=lc(n),h={start:"0%",center:"50%",end:"100%"}[d],p=(((_=o.arrow)==null?void 0:_.x)??0)+a/2,g=(((x=o.arrow)==null?void 0:x.y)??0)+c/2;let w="",f="";return u==="bottom"?(w=s?h:`${p}px`,f=`${-c}px`):u==="top"?(w=s?h:`${p}px`,f=`${r.floating.height+c}px`):u==="right"?(w=`${-c}px`,f=s?h:`${g}px`):u==="left"&&(w=`${r.floating.width+c}px`,f=s?h:`${g}px`),{data:{x:w,y:f}}}});function lc(e){const[t,n="center"]=e.split("-");return[t,n]}var _1=rc,x1=ic,C1=sc,E1=cc,S1="Portal",li=m.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=m.useState(!1);ut(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?Yi.createPortal(l.jsx(ye.div,{...r,ref:t}),s):null});li.displayName=S1;function T1(e,t){return m.useReducer((n,r)=>t[n][r]??n,e)}var tn=e=>{const{present:t,children:n}=e,r=A1(t),o=typeof n=="function"?n({present:r.isPresent}):m.Children.only(n),i=ke(r.ref,P1(o));return typeof n=="function"||r.isPresent?m.cloneElement(o,{ref:i}):null};tn.displayName="Presence";function A1(e){const[t,n]=m.useState(),r=m.useRef(null),o=m.useRef(e),i=m.useRef("none"),s=e?"mounted":"unmounted",[a,c]=T1(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const u=kr(r.current);i.current=a==="mounted"?u:"none"},[a]),ut(()=>{const u=r.current,d=o.current;if(d!==e){const p=i.current,g=kr(u);e?c("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&p!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ut(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,h=g=>{const f=kr(r.current).includes(g.animationName);if(g.target===t&&f&&(c("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},p=g=>{g.target===t&&(i.current=kr(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function kr(e){return(e==null?void 0:e.animationName)||"none"}function P1(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 R1=m[" useInsertionEffect ".trim().toString()]||ut;function uc({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=O1({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const d=m.useRef(e!==void 0);m.useEffect(()=>{const h=d.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.`),d.current=a},[a,r])}const u=m.useCallback(d=>{var h;if(a){const p=k1(d)?d(e):d;p!==e&&((h=s.current)==null||h.call(s,p))}else i(d)},[a,e,i,s]);return[c,u]}function O1({defaultProp:e,onChange:t}){const[n,r]=m.useState(e),o=m.useRef(n),i=m.useRef(t);return R1(()=>{i.current=t},[t]),m.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function k1(e){return typeof e=="function"}var j1=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"}),D1="VisuallyHidden",dc=m.forwardRef((e,t)=>l.jsx(ye.span,{...e,ref:t,style:{...j1,...e.style}}));dc.displayName=D1;var L1=dc,[jr,Cy]=Go("Tooltip",[tc]),Dr=tc(),fc="TooltipProvider",I1=700,ui="tooltip.open",[N1,di]=jr(fc),pc=e=>{const{__scopeTooltip:t,delayDuration:n=I1,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=m.useRef(!0),a=m.useRef(!1),c=m.useRef(0);return m.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),l.jsx(N1,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:m.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:m.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:m.useCallback(u=>{a.current=u},[]),disableHoverableContent:o,children:i})};pc.displayName=fc;var $n="Tooltip",[M1,Fn]=jr($n),hc=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,c=di($n,e.__scopeTooltip),u=Dr(t),[d,h]=m.useState(null),p=_r(),g=m.useRef(0),w=s??c.disableHoverableContent,f=a??c.delayDuration,v=m.useRef(!1),[_,x]=uc({prop:r,defaultProp:o??!1,onChange:P=>{P?(c.onOpen(),document.dispatchEvent(new CustomEvent(ui))):c.onClose(),i==null||i(P)},caller:$n}),S=m.useMemo(()=>_?v.current?"delayed-open":"instant-open":"closed",[_]),E=m.useCallback(()=>{window.clearTimeout(g.current),g.current=0,v.current=!1,x(!0)},[x]),T=m.useCallback(()=>{window.clearTimeout(g.current),g.current=0,x(!1)},[x]),R=m.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{v.current=!0,x(!0),g.current=0},f)},[f,x]);return m.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),l.jsx(_1,{...u,children:l.jsx(M1,{scope:t,contentId:p,open:_,stateAttribute:S,trigger:d,onTriggerChange:h,onTriggerEnter:m.useCallback(()=>{c.isOpenDelayedRef.current?R():E()},[c.isOpenDelayedRef,R,E]),onTriggerLeave:m.useCallback(()=>{w?T():(window.clearTimeout(g.current),g.current=0)},[T,w]),onOpen:E,onClose:T,disableHoverableContent:w,children:n})})};hc.displayName=$n;var fi="TooltipTrigger",mc=m.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Fn(fi,n),i=di(fi,n),s=Dr(n),a=m.useRef(null),c=ke(t,a,o.onTriggerChange),u=m.useRef(!1),d=m.useRef(!1),h=m.useCallback(()=>u.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),l.jsx(x1,{asChild:!0,...s,children:l.jsx(ye.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:ve(e.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:ve(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:ve(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:ve(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:ve(e.onBlur,o.onClose),onClick:ve(e.onClick,o.onClose)})})});mc.displayName=fi;var pi="TooltipPortal",[$1,F1]=jr(pi,{forceMount:void 0}),gc=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=Fn(pi,t);return l.jsx($1,{scope:t,forceMount:n,children:l.jsx(tn,{present:n||i.open,children:l.jsx(li,{asChild:!0,container:o,children:r})})})};gc.displayName=pi;var nn="TooltipContent",vc=m.forwardRef((e,t)=>{const n=F1(nn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=Fn(nn,e.__scopeTooltip);return l.jsx(tn,{present:r||s.open,children:s.disableHoverableContent?l.jsx(yc,{side:o,...i,ref:t}):l.jsx(B1,{side:o,...i,ref:t})})}),B1=m.forwardRef((e,t)=>{const n=Fn(nn,e.__scopeTooltip),r=di(nn,e.__scopeTooltip),o=m.useRef(null),i=ke(t,o),[s,a]=m.useState(null),{trigger:c,onClose:u}=n,d=o.current,{onPointerInTransitChange:h}=r,p=m.useCallback(()=>{a(null),h(!1)},[h]),g=m.useCallback((w,f)=>{const v=w.currentTarget,_={x:w.clientX,y:w.clientY},x=W1(_,v.getBoundingClientRect()),S=V1(_,x),E=G1(f.getBoundingClientRect()),T=Q1([...S,...E]);a(T),h(!0)},[h]);return m.useEffect(()=>()=>p(),[p]),m.useEffect(()=>{if(c&&d){const w=v=>g(v,d),f=v=>g(v,c);return c.addEventListener("pointerleave",w),d.addEventListener("pointerleave",f),()=>{c.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",f)}}},[c,d,g,p]),m.useEffect(()=>{if(s){const w=f=>{const v=f.target,_={x:f.clientX,y:f.clientY},x=(c==null?void 0:c.contains(v))||(d==null?void 0:d.contains(v)),S=!q1(_,s);x?p():S&&(p(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[c,d,s,u,p]),l.jsx(yc,{...e,ref:i})}),[U1,z1]=jr($n,{isInside:!1}),H1=Mp("TooltipContent"),yc=m.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,c=Fn(nn,n),u=Dr(n),{onClose:d}=c;return m.useEffect(()=>(document.addEventListener(ui,d),()=>document.removeEventListener(ui,d)),[d]),m.useEffect(()=>{if(c.trigger){const h=p=>{const g=p.target;g!=null&&g.contains(c.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,d]),l.jsx(Qo,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:l.jsxs(C1,{"data-state":c.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:[l.jsx(H1,{children:r}),l.jsx(U1,{scope:n,isInside:!0,children:l.jsx(L1,{id:c.contentId,role:"tooltip",children:o||r})})]})})});vc.displayName=nn;var bc="TooltipArrow",wc=m.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Dr(n);return z1(bc,n).isInside?null:l.jsx(E1,{...o,...r,ref:t})});wc.displayName=bc;function W1(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function V1(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 G1(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function q1(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i],c=t[s],u=a.x,d=a.y,h=c.x,p=c.y;d>r!=p>r&&n<(h-u)*(r-d)/(p-d)+u&&(o=!o)}return o}function Q1(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),Y1(t)}function Y1(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var K1=pc,Z1=hc,X1=mc,J1=gc,em=vc,tm=wc;const _c={tooltip:"tooltip__nUuSh",tooltipArrow:"tooltipArrow__W2w-f"},nm=C("Tooltip",({children:e,open:t,displayName:n,tooltipContent:r,className:o,disabled:i,delayDuration:s=300,side:a="right",sideOffset:c=0})=>{const[u,d]=F(!1),h=t!==void 0,g=i?!1:h?t:u,w=f=>{i||h||d(f)};return l.jsx(K1,{delayDuration:s,children:l.jsxs(Z1,{open:g,onOpenChange:w,children:[l.jsx(X1,{asChild:!0,children:e}),l.jsx(J1,{children:l.jsxs(em,{className:j(_c.tooltip,o),side:a,sideOffset:c,children:[n,r,l.jsx(tm,{className:_c.tooltipArrow})]})})]})})});nm.displayName="Tooltip";const xc={spinner:"spinner__qa7F6",rotate:"rotate__EqlXe","spinner-dark":"spinner-dark__9A9-q",spinnerDark:"spinner-dark__9A9-q","spinner-white":"spinner-white__gRbtI",spinnerWhite:"spinner-white__gRbtI","spinner-success":"spinner-success__otWGm",spinnerSuccess:"spinner-success__otWGm","spinner-danger":"spinner-danger__Bq5DM",spinnerDanger:"spinner-danger__Bq5DM","spinner-warning":"spinner-warning__U900K",spinnerWarning:"spinner-warning__U900K"},rm=C("Spinner",({className:e,color:t="white",size:n=80,thickness:r})=>{const o=j(xc.spinner,xc[`spinner-${t}`],e),i=r??Math.max(n/12,2);return l.jsx("span",{style:{width:n,height:n,borderWidth:i},className:o})});rm.displayName="Spinner";const Lr={switch:"switch__0b2av",disabled:"disabled__KpauE",checked:"checked__2-JV-",thumb:"thumb__fEuKD"},om=C("Switch",B(({checked:e,defaultChecked:t=!1,onCheckedChange:n,disabled:r=!1,id:o,className:i,name:s,"aria-label":a,"aria-labelledby":c,"aria-describedby":u,...d},h)=>{const[p,g]=Qn.useState(t),w=e!==void 0,f=w?!!e:p,v=()=>{if(r)return;const x=!f;w||g(x),n==null||n(x)},_=x=>{(x.key===" "||x.key==="Enter")&&(x.preventDefault(),v())};return l.jsx("button",{ref:h,type:"button",role:"switch","aria-checked":f,"aria-label":a,"aria-labelledby":c,"aria-describedby":u,disabled:r,id:o,name:s,className:j(Lr.switch,{[Lr.checked]:f,[Lr.disabled]:r}),onClick:v,onKeyDown:_,...d,children:l.jsx("span",{className:Lr.thumb,"aria-hidden":"true"})})}));om.displayName="Switch";const He={tabsRoot:"tabs-root__ELmdj",tabsList:"tabs-list__rc10N",tabsListHorizontal:"tabs-list--horizontal__e1YW4",tabsListVertical:"tabs-list--vertical__huK05",tabsTrigger:"tabs-trigger__D8R4R",tabsTriggerDisabled:"tabs-trigger--disabled__ezDWc",tabsTriggerHorizontal:"tabs-trigger--horizontal__4jBFV",tabsTriggerActive:"tabs-trigger--active__S-Z-S",tabsTriggerVertical:"tabs-trigger--vertical__dNVIZ",tabsContent:"tabs-content__1d77o"},Cc=ro(null),hi=()=>{const e=oo(Cc);if(!e)throw new Error("Tabs components must be used within a Tabs provider");return e},Gy=C("Tabs",({defaultValue:e,value:t,onValueChange:n,orientation:r="horizontal",className:o="",children:i})=>{const[s,a]=F(e||""),c=t!==void 0,u=c?t:s,d=h=>{c||a(h),n==null||n(h)};return l.jsx(Cc.Provider,{value:{value:u,onValueChange:d,orientation:r},children:l.jsx("div",{className:j(He.tabsRoot,o),children:i})})}),qy=C("TabsList",({className:e="",children:t})=>{const{orientation:n}=hi(),r=so(null),o=i=>{var u;const s=(u=r.current)==null?void 0:u.querySelectorAll('[role="tab"]:not([disabled])');if(!s)return;const a=Array.from(s).findIndex(d=>d===document.activeElement);let c=a;switch(i.key){case"ArrowLeft":n==="horizontal"&&(i.preventDefault(),c=a>0?a-1:s.length-1);break;case"ArrowRight":n==="horizontal"&&(i.preventDefault(),c=a<s.length-1?a+1:0);break;case"ArrowUp":n==="vertical"&&(i.preventDefault(),c=a>0?a-1:s.length-1);break;case"ArrowDown":n==="vertical"&&(i.preventDefault(),c=a<s.length-1?a+1:0);break;case"Home":i.preventDefault(),c=0;break;case"End":i.preventDefault(),c=s.length-1;break}if(c!==a){const d=s[c];d.focus(),d.click()}};return l.jsx("div",{ref:r,role:"tablist","aria-orientation":n,onKeyDown:o,className:j(He.tabsList,n==="horizontal"?He.tabsListHorizontal:He.tabsListVertical,e),children:t})}),Qy=C("TabsTrigger",({value:e,disabled:t=!1,className:n="",children:r})=>{const{value:o,onValueChange:i,orientation:s}=hi(),a=o===e,c=()=>{t||i(e)};return l.jsx("button",{role:"tab","aria-selected":a,"aria-controls":`content-${e}`,tabIndex:a?0:-1,disabled:t,onClick:c,className:j(He.tabsTrigger,s==="horizontal"?He.tabsTriggerHorizontal:He.tabsTriggerVertical,a&&He.tabsTriggerActive,t&&He.tabsTriggerDisabled,n),children:r})}),Yy=C("TabsContent",({value:e,className:t="",children:n})=>{const{value:r}=hi();return r===e?l.jsx("div",{role:"tabpanel",id:`content-${e}`,"aria-labelledby":`trigger-${e}`,tabIndex:0,className:j(He.tabsContent,t),children:n}):null}),im=C("EyeIcon",({className:e,state:t="open",onClick:n})=>t==="open"?l.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:[l.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"}),l.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"})]}):l.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:l.jsx("path",{d:"M6.26672 2.97052C6.50379 2.93547 6.74835 2.91667 7.00024 2.91667C9.97816 2.91667 11.9323 5.54449 12.5887 6.58398C12.6682 6.70979 12.7079 6.7727 12.7302 6.86973C12.7469 6.94259 12.7468 7.05755 12.7301 7.13042C12.7079 7.22744 12.6679 7.29077 12.5879 7.41741C12.413 7.69425 12.1463 8.08331 11.793 8.50527M3.92252 3.9171C2.66131 4.77266 1.8051 5.9613 1.41231 6.58308C1.3325 6.70942 1.29259 6.7726 1.27035 6.86961C1.25364 6.94248 1.25363 7.05742 1.27033 7.13029C1.29257 7.22731 1.33229 7.29022 1.41174 7.41602C2.06823 8.45551 4.02232 11.0833 7.00024 11.0833C8.20098 11.0833 9.23526 10.6561 10.0851 10.078M1.75024 1.75L12.2502 12.25M5.76281 5.76256C5.44612 6.07925 5.25024 6.51675 5.25024 7C5.25024 7.9665 6.03374 8.75 7.00024 8.75C7.48349 8.75 7.92099 8.55413 8.23768 8.23744",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})})),Ec={PasswordInput:"PasswordInput__GDJDN",eyeIcon:"eyeIcon__kDExG"},Xy=C("PasswordInput",B((e,t)=>{const[n,r]=F("password"),o=ue(()=>{r(i=>i==="password"?"text":"password")},[r]);return l.jsxs("div",{className:j(Ec.PasswordInput,e.className),children:[l.jsx(Uo,{type:n,...e,ref:t}),l.jsx(im,{className:Ec.eyeIcon,onClick:o,state:n==="password"?"open":"closed"})]})}));var mi="focusScope.autoFocusOnMount",gi="focusScope.autoFocusOnUnmount",Sc={bubbles:!1,cancelable:!0},sm="FocusScope",Tc=m.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,c]=m.useState(null),u=Kt(o),d=Kt(i),h=m.useRef(null),p=ke(t,f=>c(f)),g=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(r){let f=function(S){if(g.paused||!a)return;const E=S.target;a.contains(E)?h.current=E:pt(h.current,{select:!0})},v=function(S){if(g.paused||!a)return;const E=S.relatedTarget;E!==null&&(a.contains(E)||pt(h.current,{select:!0}))},_=function(S){if(document.activeElement===document.body)for(const T of S)T.removedNodes.length>0&&pt(a)};document.addEventListener("focusin",f),document.addEventListener("focusout",v);const x=new MutationObserver(_);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",v),x.disconnect()}}},[r,a,g.paused]),m.useEffect(()=>{if(a){Rc.add(g);const f=document.activeElement;if(!a.contains(f)){const _=new CustomEvent(mi,Sc);a.addEventListener(mi,u),a.dispatchEvent(_),_.defaultPrevented||(am(fm(Ac(a)),{select:!0}),document.activeElement===f&&pt(a))}return()=>{a.removeEventListener(mi,u),setTimeout(()=>{const _=new CustomEvent(gi,Sc);a.addEventListener(gi,d),a.dispatchEvent(_),_.defaultPrevented||pt(f??document.body,{select:!0}),a.removeEventListener(gi,d),Rc.remove(g)},0)}}},[a,u,d,g]);const w=m.useCallback(f=>{if(!n&&!r||g.paused)return;const v=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,_=document.activeElement;if(v&&_){const x=f.currentTarget,[S,E]=cm(x);S&&E?!f.shiftKey&&_===E?(f.preventDefault(),n&&pt(S,{select:!0})):f.shiftKey&&_===S&&(f.preventDefault(),n&&pt(E,{select:!0})):_===x&&f.preventDefault()}},[n,r,g.paused]);return l.jsx(ye.div,{tabIndex:-1,...s,ref:p,onKeyDown:w})});Tc.displayName=sm;function am(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(pt(r,{select:t}),document.activeElement!==n)return}function cm(e){const t=Ac(e),n=Pc(t,e),r=Pc(t.reverse(),e);return[n,r]}function Ac(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Pc(e,t){for(const n of e)if(!lm(n,{upTo:t}))return n}function lm(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 um(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&&um(e)&&t&&e.select()}}var Rc=dm();function dm(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Oc(e,t),e.unshift(t)},remove(t){var n;e=Oc(e,t),(n=e[0])==null||n.resume()}}}function Oc(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function fm(e){return e.filter(t=>t.tagName!=="A")}var vi=0;function pm(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??kc()),document.body.insertAdjacentElement("beforeend",e[1]??kc()),vi++,()=>{vi===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),vi--}},[])}function kc(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ir="right-scroll-bar-position",Nr="width-before-scroll-bar",hm="with-scroll-bars-hidden",mm="--removed-body-scroll-bar-size";function yi(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function gm(e,t){var n=F(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 vm=typeof window<"u"?m.useLayoutEffect:m.useEffect,jc=new WeakMap;function ym(e,t){var n=gm(null,function(r){return e.forEach(function(o){return yi(o,r)})});return vm(function(){var r=jc.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||yi(a,null)}),i.forEach(function(a){o.has(a)||yi(a,s)})}jc.set(n,e)},[e]),n}function bm(e){return e}function wm(e,t){t===void 0&&(t=bm);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var c=function(){var d=s;s=[],d.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){s.push(d),u()},filter:function(d){return s=s.filter(d),n}}}};return o}function _m(e){e===void 0&&(e={});var t=wm(null);return t.options=$e({async:!0,ssr:!1},e),t}var Dc=function(e){var t=e.sideCar,n=ms(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return m.createElement(r,$e({},n))};Dc.isSideCarExport=!0;function xm(e,t){return e.useMedium(t),Dc}var Lc=_m(),bi=function(){},Mr=m.forwardRef(function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:bi,onWheelCapture:bi,onTouchMoveCapture:bi}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,h=e.shards,p=e.sideCar,g=e.noRelative,w=e.noIsolation,f=e.inert,v=e.allowPinchZoom,_=e.as,x=_===void 0?"div":_,S=e.gapMode,E=ms(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=p,R=ym([n,t]),P=$e($e({},E),o);return m.createElement(m.Fragment,null,d&&m.createElement(T,{sideCar:Lc,removeScrollBar:u,shards:h,noRelative:g,noIsolation:w,inert:f,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:S}),s?m.cloneElement(m.Children.only(a),$e($e({},P),{ref:R})):m.createElement(x,$e({},P,{className:c,ref:R}),a))});Mr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Mr.classNames={fullWidth:Nr,zeroRight:Ir};var Cm=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Em(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Cm();return t&&e.setAttribute("nonce",t),e}function Sm(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Tm(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Am=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Em())&&(Sm(t,n),Tm(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Pm=function(){var e=Am();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ic=function(){var e=Pm(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Rm={left:0,top:0,right:0,gap:0},wi=function(e){return parseInt(e||"",10)||0},Om=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[wi(n),wi(r),wi(o)]},km=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Rm;var t=Om(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])}},jm=Ic(),rn="data-scroll-locked",Dm=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
235
|
-
.`.concat(
|
|
234
|
+
`,ur=16,vf=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,containerStyle:i,containerClassName:s})=>{let{toasts:a,handlers:c}=Wd(n);return g.createElement("div",{style:{position:"fixed",zIndex:9999,top:ur,left:ur,right:ur,bottom:ur,pointerEvents:"none",...i},className:s,onMouseEnter:c.startPause,onMouseLeave:c.endPause},a.map(l=>{let d=l.position||t,p=c.calculateOffset(l,{reverseOrder:e,gutter:r,defaultPosition:t}),h=mf(d,p);return g.createElement(pf,{id:l.id,key:l.id,onHeightUpdate:c.updateHeight,className:l.visible?gf:"",style:h},l.type==="custom"?sr(l.message,l):o?o(l):g.createElement(hf,{toast:l,position:d}))}))},js=Ce;const Ds=E("useNotifications",()=>({notify:te((t,n,r)=>{n==="warning"||n==="info"?js(t,{icon:n==="warning"?"⚠️":"ℹ️",style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}}):js[n](t,{style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}}),r&&console.error(r)},[])}));var Yt=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},At=typeof window>"u"||"Deno"in globalThis;function fe(){}function yf(e,t){return typeof e=="function"?e(t):e}function Ao(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ls(e,t){return Math.max(e+(t||0)-Date.now(),0)}function lt(e,t){return typeof e=="function"?e(t):e}function Oe(e,t){return typeof e=="function"?e(t):e}function Is(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==Po(s,t.options))return!1}else if(!Dn(t.queryKey,s))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function Ns(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Pt(t.options.mutationKey)!==Pt(i))return!1}else if(!Dn(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Po(e,t){return((t==null?void 0:t.queryKeyHashFn)||Pt)(e)}function Pt(e){return JSON.stringify(e,(t,n)=>Oo(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Dn(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Dn(e[n],t[n])):!1}function Ro(e,t){if(e===t)return e;const n=$s(e)&&$s(t);if(n||Oo(e)&&Oo(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,a=n?[]:{};let c=0;for(let l=0;l<s;l++){const d=n?l:i[l];(!n&&r.includes(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,c++):(a[d]=Ro(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&c++)}return o===s&&c===o?e:a}return t}function dr(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function $s(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Oo(e){if(!Ms(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Ms(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Ms(e){return Object.prototype.toString.call(e)==="[object Object]"}function bf(e){return new Promise(t=>{setTimeout(t,e)})}function ko(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){try{return Ro(e,t)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`),r}return Ro(e,t)}return t}function wf(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function _f(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var fr=Symbol();function Fs(e,t){return e.queryFn===fr&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===fr?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Bs(e,t){return typeof e=="function"?e(...t):!!e}var xf=(Hl=class extends Yt{constructor(){super();D(this,Lt);D(this,pt);D(this,ln);O(this,ln,t=>{if(!At&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){b(this,pt)||this.setEventListener(b(this,ln))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,pt))==null||t.call(this),O(this,pt,void 0))}setEventListener(t){var n;O(this,ln,t),(n=b(this,pt))==null||n.call(this),O(this,pt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){b(this,Lt)!==t&&(O(this,Lt,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof b(this,Lt)=="boolean"?b(this,Lt):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Lt=new WeakMap,pt=new WeakMap,ln=new WeakMap,Hl),jo=new xf,Cf=(Wl=class extends Yt{constructor(){super();D(this,un,!0);D(this,mt);D(this,dn);O(this,dn,t=>{if(!At&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){b(this,mt)||this.setEventListener(b(this,dn))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,mt))==null||t.call(this),O(this,mt,void 0))}setEventListener(t){var n;O(this,dn,t),(n=b(this,mt))==null||n.call(this),O(this,mt,t(this.setOnline.bind(this)))}setOnline(t){b(this,un)!==t&&(O(this,un,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return b(this,un)}},un=new WeakMap,mt=new WeakMap,dn=new WeakMap,Wl),hr=new Cf;function Do(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function Ef(e){return Math.min(1e3*2**e,3e4)}function Us(e){return(e??"online")==="online"?hr.isOnline():!0}var zs=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Lo(e){return e instanceof zs}function Hs(e){let t=!1,n=0,r=!1,o;const i=Do(),s=f=>{var v;r||(h(new zs(f)),(v=e.abort)==null||v.call(e))},a=()=>{t=!0},c=()=>{t=!1},l=()=>jo.isFocused()&&(e.networkMode==="always"||hr.isOnline())&&e.canRun(),d=()=>Us(e.networkMode)&&e.canRun(),p=f=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,f),o==null||o(),i.resolve(f))},h=f=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,f),o==null||o(),i.reject(f))},m=()=>new Promise(f=>{var v;o=_=>{(r||l())&&f(_)},(v=e.onPause)==null||v.call(e)}).then(()=>{var f;o=void 0,r||(f=e.onContinue)==null||f.call(e)}),w=()=>{if(r)return;let f;const v=n===0?e.initialPromise:void 0;try{f=v??e.fn()}catch(_){f=Promise.reject(_)}Promise.resolve(f).then(p).catch(_=>{var R;if(r)return;const x=e.retry??(At?0:3),C=e.retryDelay??Ef,S=typeof C=="function"?C(n,_):C,T=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,_);if(t||!T){h(_);return}n++,(R=e.onFail)==null||R.call(e,n,_),bf(S).then(()=>l()?void 0:m()).then(()=>{t?h(_):w()})})};return{promise:i,cancel:s,continue:()=>(o==null||o(),i),cancelRetry:a,continueRetry:c,canStart:d,start:()=>(d()?w():m().then(w),i)}}var Sf=e=>setTimeout(e,0);function Tf(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=Sf;const i=a=>{t?e.push(a):o(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||s()}return c},batchCalls:a=>(...c)=>{i(()=>{a(...c)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var ae=Tf(),Ws=(Vl=class{constructor(){D(this,It)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ao(this.gcTime)&&O(this,It,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(At?1/0:5*60*1e3))}clearGcTimeout(){b(this,It)&&(clearTimeout(b(this,It)),O(this,It,void 0))}},It=new WeakMap,Vl),Af=(Gl=class extends Ws{constructor(t){super();D(this,Ne);D(this,fn);D(this,hn);D(this,Pe);D(this,Nt);D(this,de);D(this,zn);D(this,$t);O(this,$t,!1),O(this,zn,t.defaultOptions),this.setOptions(t.options),this.observers=[],O(this,Nt,t.client),O(this,Pe,b(this,Nt).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,O(this,fn,Pf(this.options)),this.state=t.state??b(this,fn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=b(this,de))==null?void 0:t.promise}setOptions(t){this.options={...b(this,zn),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&b(this,Pe).remove(this)}setData(t,n){const r=ko(this.state.data,t,this.options);return F(this,Ne,ot).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){F(this,Ne,ot).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=b(this,de))==null?void 0:r.promise;return(o=b(this,de))==null||o.cancel(t),n?n.then(fe).catch(fe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(b(this,fn))}isActive(){return this.observers.some(t=>Oe(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>lt(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Ls(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=b(this,de))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=b(this,de))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),b(this,Pe).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(b(this,de)&&(b(this,$t)?b(this,de).cancel({revert:!0}):b(this,de).cancelRetry()),this.scheduleGc()),b(this,Pe).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||F(this,Ne,ot).call(this,{type:"invalidate"})}fetch(t,n){var l,d,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(b(this,de))return b(this,de).continueRetry(),b(this,de).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(m=>m.options.queryFn);h&&this.setOptions(h.options)}Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']");const r=new AbortController,o=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(O(this,$t,!0),r.signal)})},i=()=>{const h=Fs(this.options,n),w=(()=>{const f={client:b(this,Nt),queryKey:this.queryKey,meta:this.meta};return o(f),f})();return O(this,$t,!1),this.options.persister?this.options.persister(h,w,this):h(w)},a=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:b(this,Nt),state:this.state,fetchFn:i};return o(h),h})();(l=this.options.behavior)==null||l.onFetch(a,this),O(this,hn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&F(this,Ne,ot).call(this,{type:"fetch",meta:(p=a.fetchOptions)==null?void 0:p.meta});const c=h=>{var m,w,f,v;Lo(h)&&h.silent||F(this,Ne,ot).call(this,{type:"error",error:h}),Lo(h)||((w=(m=b(this,Pe).config).onError)==null||w.call(m,h,this),(v=(f=b(this,Pe).config).onSettled)==null||v.call(f,this.state.data,h,this)),this.scheduleGc()};return O(this,de,Hs({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var m,w,f,v;if(h===void 0){console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(_){c(_);return}(w=(m=b(this,Pe).config).onSuccess)==null||w.call(m,h,this),(v=(f=b(this,Pe).config).onSettled)==null||v.call(f,h,this.state.error,this),this.scheduleGc()},onError:c,onFail:(h,m)=>{F(this,Ne,ot).call(this,{type:"failed",failureCount:h,error:m})},onPause:()=>{F(this,Ne,ot).call(this,{type:"pause"})},onContinue:()=>{F(this,Ne,ot).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),b(this,de).start()}},fn=new WeakMap,hn=new WeakMap,Pe=new WeakMap,Nt=new WeakMap,de=new WeakMap,zn=new WeakMap,$t=new WeakMap,Ne=new WeakSet,ot=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Vs(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return Lo(o)&&o.revert&&b(this,hn)?{...b(this,hn),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ae.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),b(this,Pe).notify({query:this,type:"updated",action:t})})},Gl);function Vs(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Us(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Pf(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Rf=(ql=class extends Yt{constructor(t={}){super();D(this,We);this.config=t,O(this,We,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??Po(o,n);let s=this.get(i);return s||(s=new Af({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){b(this,We).has(t.queryHash)||(b(this,We).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=b(this,We).get(t.queryHash);n&&(t.destroy(),n===t&&b(this,We).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ae.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return b(this,We).get(t)}getAll(){return[...b(this,We).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Is(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Is(t,r)):n}notify(t){ae.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ae.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ae.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},We=new WeakMap,ql),Of=(Ql=class extends Ws{constructor(t){super();D(this,Ge);D(this,Ve);D(this,pe);D(this,Mt);this.mutationId=t.mutationId,O(this,pe,t.mutationCache),O(this,Ve,[]),this.state=t.state||Gs(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){b(this,Ve).includes(t)||(b(this,Ve).push(t),this.clearGcTimeout(),b(this,pe).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){O(this,Ve,b(this,Ve).filter(n=>n!==t)),this.scheduleGc(),b(this,pe).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){b(this,Ve).length||(this.state.status==="pending"?this.scheduleGc():b(this,pe).remove(this))}continue(){var t;return((t=b(this,Mt))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,a,c,l,d,p,h,m,w,f,v,_,x,C,S,T,R,A,N;const n=()=>{F(this,Ge,Et).call(this,{type:"continue"})};O(this,Mt,Hs({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:($,M)=>{F(this,Ge,Et).call(this,{type:"failed",failureCount:$,error:M})},onPause:()=>{F(this,Ge,Et).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>b(this,pe).canRun(this)}));const r=this.state.status==="pending",o=!b(this,Mt).canStart();try{if(r)n();else{F(this,Ge,Et).call(this,{type:"pending",variables:t,isPaused:o}),await((s=(i=b(this,pe).config).onMutate)==null?void 0:s.call(i,t,this));const M=await((c=(a=this.options).onMutate)==null?void 0:c.call(a,t));M!==this.state.context&&F(this,Ge,Et).call(this,{type:"pending",context:M,variables:t,isPaused:o})}const $=await b(this,Mt).start();return await((d=(l=b(this,pe).config).onSuccess)==null?void 0:d.call(l,$,t,this.state.context,this)),await((h=(p=this.options).onSuccess)==null?void 0:h.call(p,$,t,this.state.context)),await((w=(m=b(this,pe).config).onSettled)==null?void 0:w.call(m,$,null,this.state.variables,this.state.context,this)),await((v=(f=this.options).onSettled)==null?void 0:v.call(f,$,null,t,this.state.context)),F(this,Ge,Et).call(this,{type:"success",data:$}),$}catch($){try{throw await((x=(_=b(this,pe).config).onError)==null?void 0:x.call(_,$,t,this.state.context,this)),await((S=(C=this.options).onError)==null?void 0:S.call(C,$,t,this.state.context)),await((R=(T=b(this,pe).config).onSettled)==null?void 0:R.call(T,void 0,$,this.state.variables,this.state.context,this)),await((N=(A=this.options).onSettled)==null?void 0:N.call(A,void 0,$,t,this.state.context)),$}finally{F(this,Ge,Et).call(this,{type:"error",error:$})}}finally{b(this,pe).runNext(this)}}},Ve=new WeakMap,pe=new WeakMap,Mt=new WeakMap,Ge=new WeakSet,Et=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ae.batch(()=>{b(this,Ve).forEach(r=>{r.onMutationUpdate(t)}),b(this,pe).notify({mutation:this,type:"updated",action:t})})},Ql);function Gs(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var kf=(Yl=class extends Yt{constructor(t={}){super();D(this,et);D(this,$e);D(this,Hn);this.config=t,O(this,et,new Set),O(this,$e,new Map),O(this,Hn,0)}build(t,n,r){const o=new Of({mutationCache:this,mutationId:++oo(this,Hn)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){b(this,et).add(t);const n=pr(t);if(typeof n=="string"){const r=b(this,$e).get(n);r?r.push(t):b(this,$e).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(b(this,et).delete(t)){const n=pr(t);if(typeof n=="string"){const r=b(this,$e).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&b(this,$e).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=pr(t);if(typeof n=="string"){const r=b(this,$e).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=pr(t);if(typeof n=="string"){const o=(r=b(this,$e).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ae.batch(()=>{b(this,et).forEach(t=>{this.notify({type:"removed",mutation:t})}),b(this,et).clear(),b(this,$e).clear()})}getAll(){return Array.from(b(this,et))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ns(n,r))}findAll(t={}){return this.getAll().filter(n=>Ns(t,n))}notify(t){ae.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ae.batch(()=>Promise.all(t.map(n=>n.continue().catch(fe))))}},et=new WeakMap,$e=new WeakMap,Hn=new WeakMap,Yl);function pr(e){var t;return(t=e.options.scope)==null?void 0:t.id}function qs(e){return{onFetch:(t,n)=>{var d,p,h,m,w;const r=t.options,o=(h=(p=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:p.fetchMore)==null?void 0:h.direction,i=((m=t.state.data)==null?void 0:m.pages)||[],s=((w=t.state.data)==null?void 0:w.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let f=!1;const v=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(t.signal.aborted?f=!0:t.signal.addEventListener("abort",()=>{f=!0}),t.signal)})},_=Fs(t.options,t.fetchOptions),x=async(C,S,T)=>{if(f)return Promise.reject();if(S==null&&C.pages.length)return Promise.resolve(C);const A=(()=>{const Z={client:t.client,queryKey:t.queryKey,pageParam:S,direction:T?"backward":"forward",meta:t.options.meta};return v(Z),Z})(),N=await _(A),{maxPages:$}=t.options,M=T?_f:wf;return{pages:M(C.pages,N,$),pageParams:M(C.pageParams,S,$)}};if(o&&i.length){const C=o==="backward",S=C?jf:Qs,T={pages:i,pageParams:s},R=S(r,T);a=await x(T,R,C)}else{const C=e??i.length;do{const S=c===0?s[0]??r.initialPageParam:Qs(r,a);if(c>0&&S==null)break;a=await x(a,S),c++}while(c<C)}return a};t.options.persister?t.fetchFn=()=>{var f,v;return(v=(f=t.options).persister)==null?void 0:v.call(f,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function Qs(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function jf(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Df=(Kl=class{constructor(e={}){D(this,ne);D(this,gt);D(this,vt);D(this,pn);D(this,mn);D(this,yt);D(this,gn);D(this,vn);O(this,ne,e.queryCache||new Rf),O(this,gt,e.mutationCache||new kf),O(this,vt,e.defaultOptions||{}),O(this,pn,new Map),O(this,mn,new Map),O(this,yt,0)}mount(){oo(this,yt)._++,b(this,yt)===1&&(O(this,gn,jo.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,ne).onFocus())})),O(this,vn,hr.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,ne).onOnline())})))}unmount(){var e,t;oo(this,yt)._--,b(this,yt)===0&&((e=b(this,gn))==null||e.call(this),O(this,gn,void 0),(t=b(this,vn))==null||t.call(this),O(this,vn,void 0))}isFetching(e){return b(this,ne).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return b(this,gt).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=b(this,ne).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=b(this,ne).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(lt(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return b(this,ne).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=b(this,ne).get(r.queryHash),i=o==null?void 0:o.state.data,s=yf(t,i);if(s!==void 0)return b(this,ne).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return ae.batch(()=>b(this,ne).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=b(this,ne).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=b(this,ne);ae.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=b(this,ne);return ae.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=ae.batch(()=>b(this,ne).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(fe).catch(fe)}invalidateQueries(e,t={}){return ae.batch(()=>(b(this,ne).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=ae.batch(()=>b(this,ne).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(fe)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(fe)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=b(this,ne).build(this,t);return n.isStaleByTime(lt(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(fe).catch(fe)}fetchInfiniteQuery(e){return e.behavior=qs(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(fe).catch(fe)}ensureInfiniteQueryData(e){return e.behavior=qs(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return hr.isOnline()?b(this,gt).resumePausedMutations():Promise.resolve()}getQueryCache(){return b(this,ne)}getMutationCache(){return b(this,gt)}getDefaultOptions(){return b(this,vt)}setDefaultOptions(e){O(this,vt,e)}setQueryDefaults(e,t){b(this,pn).set(Pt(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...b(this,pn).values()],n={};return t.forEach(r=>{Dn(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){b(this,mn).set(Pt(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...b(this,mn).values()],n={};return t.forEach(r=>{Dn(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...b(this,vt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Po(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===fr&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...b(this,vt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){b(this,ne).clear(),b(this,gt).clear()}},ne=new WeakMap,gt=new WeakMap,vt=new WeakMap,pn=new WeakMap,mn=new WeakMap,yt=new WeakMap,gn=new WeakMap,vn=new WeakMap,Kl),Lf=(Zl=class extends Yt{constructor(t,n){super();D(this,G);D(this,we);D(this,H);D(this,Wn);D(this,me);D(this,Ft);D(this,yn);D(this,bt);D(this,wt);D(this,Vn);D(this,bn);D(this,wn);D(this,Bt);D(this,Ut);D(this,_t);D(this,_n,new Set);this.options=n,O(this,we,t),O(this,wt,null),O(this,bt,Do()),this.options.experimental_prefetchInRender||b(this,bt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(b(this,H).addObserver(this),Ys(b(this,H),this.options)?F(this,G,Qn).call(this):this.updateResult(),F(this,G,zi).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Io(b(this,H),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Io(b(this,H),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,F(this,G,Hi).call(this),F(this,G,Wi).call(this),b(this,H).removeObserver(this)}setOptions(t){const n=this.options,r=b(this,H);if(this.options=b(this,we).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Oe(this.options.enabled,b(this,H))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");F(this,G,Vi).call(this),b(this,H).setOptions(this.options),n._defaulted&&!dr(this.options,n)&&b(this,we).getQueryCache().notify({type:"observerOptionsUpdated",query:b(this,H),observer:this});const o=this.hasListeners();o&&Ks(b(this,H),r,this.options,n)&&F(this,G,Qn).call(this),this.updateResult(),o&&(b(this,H)!==r||Oe(this.options.enabled,b(this,H))!==Oe(n.enabled,b(this,H))||lt(this.options.staleTime,b(this,H))!==lt(n.staleTime,b(this,H)))&&F(this,G,Fi).call(this);const i=F(this,G,Bi).call(this);o&&(b(this,H)!==r||Oe(this.options.enabled,b(this,H))!==Oe(n.enabled,b(this,H))||i!==b(this,_t))&&F(this,G,Ui).call(this,i)}getOptimisticResult(t){const n=b(this,we).getQueryCache().build(b(this,we),t),r=this.createResult(n,t);return Nf(this,r)&&(O(this,me,r),O(this,yn,this.options),O(this,Ft,b(this,H).state)),r}getCurrentResult(){return b(this,me)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),Reflect.get(r,o))})}trackProp(t){b(this,_n).add(t)}getCurrentQuery(){return b(this,H)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=b(this,we).defaultQueryOptions(t),r=b(this,we).getQueryCache().build(b(this,we),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return F(this,G,Qn).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),b(this,me)))}createResult(t,n){var $;const r=b(this,H),o=this.options,i=b(this,me),s=b(this,Ft),a=b(this,yn),l=t!==r?t.state:b(this,Wn),{state:d}=t;let p={...d},h=!1,m;if(n._optimisticResults){const M=this.hasListeners(),Z=!M&&Ys(t,n),X=M&&Ks(t,r,n,o);(Z||X)&&(p={...p,...Vs(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:w,errorUpdatedAt:f,status:v}=p;m=p.data;let _=!1;if(n.placeholderData!==void 0&&m===void 0&&v==="pending"){let M;i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(M=i.data,_=!0):M=typeof n.placeholderData=="function"?n.placeholderData(($=b(this,wn))==null?void 0:$.state.data,b(this,wn)):n.placeholderData,M!==void 0&&(v="success",m=ko(i==null?void 0:i.data,M,n),h=!0)}if(n.select&&m!==void 0&&!_)if(i&&m===(s==null?void 0:s.data)&&n.select===b(this,Vn))m=b(this,bn);else try{O(this,Vn,n.select),m=n.select(m),m=ko(i==null?void 0:i.data,m,n),O(this,bn,m),O(this,wt,null)}catch(M){O(this,wt,M)}b(this,wt)&&(w=b(this,wt),m=b(this,bn),f=Date.now(),v="error");const x=p.fetchStatus==="fetching",C=v==="pending",S=v==="error",T=C&&x,R=m!==void 0,N={status:v,fetchStatus:p.fetchStatus,isPending:C,isSuccess:v==="success",isError:S,isInitialLoading:T,isLoading:T,data:m,dataUpdatedAt:p.dataUpdatedAt,error:w,errorUpdatedAt:f,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>l.dataUpdateCount||p.errorUpdateCount>l.errorUpdateCount,isFetching:x,isRefetching:x&&!C,isLoadingError:S&&!R,isPaused:p.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:S&&R,isStale:No(t,n),refetch:this.refetch,promise:b(this,bt)};if(this.options.experimental_prefetchInRender){const M=V=>{N.status==="error"?V.reject(N.error):N.data!==void 0&&V.resolve(N.data)},Z=()=>{const V=O(this,bt,N.promise=Do());M(V)},X=b(this,bt);switch(X.status){case"pending":t.queryHash===r.queryHash&&M(X);break;case"fulfilled":(N.status==="error"||N.data!==X.value)&&Z();break;case"rejected":(N.status!=="error"||N.error!==X.reason)&&Z();break}}return N}updateResult(){const t=b(this,me),n=this.createResult(b(this,H),this.options);if(O(this,Ft,b(this,H).state),O(this,yn,this.options),b(this,Ft).data!==void 0&&O(this,wn,b(this,H)),dr(n,t))return;O(this,me,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,i=typeof o=="function"?o():o;if(i==="all"||!i&&!b(this,_n).size)return!0;const s=new Set(i??b(this,_n));return this.options.throwOnError&&s.add("error"),Object.keys(b(this,me)).some(a=>{const c=a;return b(this,me)[c]!==t[c]&&s.has(c)})};F(this,G,fu).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&F(this,G,zi).call(this)}},we=new WeakMap,H=new WeakMap,Wn=new WeakMap,me=new WeakMap,Ft=new WeakMap,yn=new WeakMap,bt=new WeakMap,wt=new WeakMap,Vn=new WeakMap,bn=new WeakMap,wn=new WeakMap,Bt=new WeakMap,Ut=new WeakMap,_t=new WeakMap,_n=new WeakMap,G=new WeakSet,Qn=function(t){F(this,G,Vi).call(this);let n=b(this,H).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(fe)),n},Fi=function(){F(this,G,Hi).call(this);const t=lt(this.options.staleTime,b(this,H));if(At||b(this,me).isStale||!Ao(t))return;const r=Ls(b(this,me).dataUpdatedAt,t)+1;O(this,Bt,setTimeout(()=>{b(this,me).isStale||this.updateResult()},r))},Bi=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(b(this,H)):this.options.refetchInterval)??!1},Ui=function(t){F(this,G,Wi).call(this),O(this,_t,t),!(At||Oe(this.options.enabled,b(this,H))===!1||!Ao(b(this,_t))||b(this,_t)===0)&&O(this,Ut,setInterval(()=>{(this.options.refetchIntervalInBackground||jo.isFocused())&&F(this,G,Qn).call(this)},b(this,_t)))},zi=function(){F(this,G,Fi).call(this),F(this,G,Ui).call(this,F(this,G,Bi).call(this))},Hi=function(){b(this,Bt)&&(clearTimeout(b(this,Bt)),O(this,Bt,void 0))},Wi=function(){b(this,Ut)&&(clearInterval(b(this,Ut)),O(this,Ut,void 0))},Vi=function(){const t=b(this,we).getQueryCache().build(b(this,we),this.options);if(t===b(this,H))return;const n=b(this,H);O(this,H,t),O(this,Wn,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},fu=function(t){ae.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(b(this,me))}),b(this,we).getQueryCache().notify({query:b(this,H),type:"observerResultsUpdated"})})},Zl);function If(e,t){return Oe(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ys(e,t){return If(e,t)||e.state.data!==void 0&&Io(e,t,t.refetchOnMount)}function Io(e,t,n){if(Oe(t.enabled,e)!==!1&<(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&No(e,t)}return!1}function Ks(e,t,n,r){return(e!==t||Oe(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&No(e,n)}function No(e,t){return Oe(t.enabled,e)!==!1&&e.isStaleByTime(lt(t.staleTime,e))}function Nf(e,t){return!dr(e.getCurrentResult(),t)}var $f=(Xl=class extends Yt{constructor(n,r){super();D(this,nt);D(this,xt);D(this,Ct);D(this,_e);D(this,tt);O(this,xt,n),this.setOptions(r),this.bindMethods(),F(this,nt,io).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=b(this,xt).defaultMutationOptions(n),dr(this.options,r)||b(this,xt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:b(this,_e),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Pt(r.mutationKey)!==Pt(this.options.mutationKey)?this.reset():((o=b(this,_e))==null?void 0:o.state.status)==="pending"&&b(this,_e).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=b(this,_e))==null||n.removeObserver(this)}onMutationUpdate(n){F(this,nt,io).call(this),F(this,nt,Gi).call(this,n)}getCurrentResult(){return b(this,Ct)}reset(){var n;(n=b(this,_e))==null||n.removeObserver(this),O(this,_e,void 0),F(this,nt,io).call(this),F(this,nt,Gi).call(this)}mutate(n,r){var o;return O(this,tt,r),(o=b(this,_e))==null||o.removeObserver(this),O(this,_e,b(this,xt).getMutationCache().build(b(this,xt),this.options)),b(this,_e).addObserver(this),b(this,_e).execute(n)}},xt=new WeakMap,Ct=new WeakMap,_e=new WeakMap,tt=new WeakMap,nt=new WeakSet,io=function(){var r;const n=((r=b(this,_e))==null?void 0:r.state)??Gs();O(this,Ct,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Gi=function(n){ae.batch(()=>{var r,o,i,s,a,c,l,d;if(b(this,tt)&&this.hasListeners()){const p=b(this,Ct).variables,h=b(this,Ct).context;(n==null?void 0:n.type)==="success"?((o=(r=b(this,tt)).onSuccess)==null||o.call(r,n.data,p,h),(s=(i=b(this,tt)).onSettled)==null||s.call(i,n.data,null,p,h)):(n==null?void 0:n.type)==="error"&&((c=(a=b(this,tt)).onError)==null||c.call(a,n.error,p,h),(d=(l=b(this,tt)).onSettled)==null||d.call(l,void 0,n.error,p,h))}this.listeners.forEach(p=>{p(b(this,Ct))})})},Xl),Zs=g.createContext(void 0),$o=e=>{const t=g.useContext(Zs);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Mf=({client:e,children:t})=>(g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(Zs.Provider,{value:e,children:t})),Xs=g.createContext(!1),Ff=()=>g.useContext(Xs);Xs.Provider;function Bf(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Uf=g.createContext(Bf()),zf=()=>g.useContext(Uf),Hf=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Wf=e=>{g.useEffect(()=>{e.clearReset()},[e])},Vf=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Bs(n,[e.error,r])),Gf=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},qf=(e,t)=>e.isLoading&&e.isFetching&&!t,Qf=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Js=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Yf(e,t,n){var p,h,m,w,f;if(typeof e!="object"||Array.isArray(e))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=Ff(),o=zf(),i=$o(),s=i.defaultQueryOptions(e);(h=(p=i.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||h.call(p,s),s.queryFn||console.error(`[${s.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`),s._optimisticResults=r?"isRestoring":"optimistic",Gf(s),Hf(s,o),Wf(o);const a=!i.getQueryCache().get(s.queryHash),[c]=g.useState(()=>new t(i,s)),l=c.getOptimisticResult(s),d=!r&&e.subscribed!==!1;if(g.useSyncExternalStore(g.useCallback(v=>{const _=d?c.subscribe(ae.batchCalls(v)):fe;return c.updateResult(),_},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),g.useEffect(()=>{c.setOptions(s)},[s,c]),Qf(s,l))throw Js(s,c,o);if(Vf({result:l,errorResetBoundary:o,throwOnError:s.throwOnError,query:i.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw l.error;if((w=(m=i.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||w.call(m,s,l),s.experimental_prefetchInRender&&!At&&qf(l,r)){const v=a?Js(s,c,o):(f=i.getQueryCache().get(s.queryHash))==null?void 0:f.promise;v==null||v.catch(fe).finally(()=>{c.updateResult()})}return s.notifyOnChangeProps?l:c.trackResult(l)}function ea(e,t){return Yf(e,Lf)}function mr(e,t){const n=$o(),[r]=g.useState(()=>new $f(n,e));g.useEffect(()=>{r.setOptions(e)},[r,e]);const o=g.useSyncExternalStore(g.useCallback(s=>r.subscribe(ae.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=g.useCallback((s,a)=>{r.mutate(s,a).catch(fe)},[r]);if(o.error&&Bs(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}const gr={STALE_TIME:1e3*60*5,GC_TIME:1e3*60*10,RETRY_COUNT:1,RETRY_DELAY:1e3},ta={refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,staleTime:gr.STALE_TIME,gcTime:gr.GC_TIME,retry:gr.RETRY_COUNT,retryDelay:gr.RETRY_DELAY,enable:!0},vr=e=>e instanceof Error?e.message:String(e),Kf=E("useResourceActions",(e,t,n)=>{const r=$o(),{notify:o}=Ds(),{createFn:i,readFn:s,readByIdFn:a,updateFn:c,deleteFn:l,partialUpdateFn:d}=n,p=()=>{r.invalidateQueries({queryKey:[e]})},h=(S,T,R,A)=>o(A!=null&&A.overrideSuccessMessage?A==null?void 0:A.overrideSuccessMessage(S,T):R,"success"),m=(S,T,R,A)=>o(A!=null&&A.overrideErrorMessage?A==null?void 0:A.overrideErrorMessage(S,T):R,"error");return{useCreate:S=>mr({mutationFn:T=>i(T),onSuccess:T=>{p(),h(t,T,`${t} created successfully`,S)},onError:T=>{m(t,T,`Error creating ${t}: ${vr(T)}`,S)}}),useReadQuery:S=>ea({queryKey:[e],queryFn:s,...ta,...S}),useReadByIdQuery:(S,T)=>ea({queryKey:[e,S],queryFn:()=>a(S),...ta,enabled:!!S,...T}),useUpdate:S=>mr({mutationFn:({id:T,data:R})=>c(T,R),onSuccess:T=>{p(),h(t,T,`${t} updated successfully`,S)},onError:T=>{m(t,T,`Error updating ${t}: ${vr(T)}`,S)}}),usePartialUpdate:S=>d&&mr({mutationFn:({id:T,data:R})=>d(T,R),onSuccess:T=>{p(),h(t,T,`${t} updated successfully`,S)},onError:T=>{m(t,T,`Error updating ${t}: ${vr(T)}`,S)}}),useDelete:S=>mr({mutationFn:T=>l(T),onSuccess:()=>{p(),h(t,null,`${t} deleted successfully`,S)},onError:T=>{m(t,T,`Error deleting ${t}: ${vr(T)}`,S)}}),invalidateQueries:p}}),Ev=E("useResource",(e,t)=>Kf(e,t,{createFn:n=>fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).then(r=>r.json()),deleteFn:n=>fetch(`${e}/${n}`,{method:"DELETE"}).then(r=>{if(!r.ok)throw new Error(`Error deleting: ${r.status}`)}),readByIdFn:n=>fetch(`${e}/${n}`).then(r=>r.json()),readFn:()=>fetch(e).then(n=>n.json()),updateFn:(n,r)=>fetch(`${e}/${n}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(o=>o.json()),partialUpdateFn:(n,r)=>fetch(`${e}/${n}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(o=>o.json())})),Zf={SINGLE_TENANT:"single-tenant"},Xf={COOKIE:"cookie"},Mo="tenant",na="tenant",ra="tenant",Jf=Zf.SINGLE_TENANT,eh=Xf.COOKIE,th={mode:Jf,clientSideMode:eh,tenantIDPProvisioningStrategy:"none"};class nh{setTenant(t,n){const r=new URL(window.location.href);r.searchParams.set(na,t.name),window.location.href=r.toString()}getCurrentTenantName(){const t=new URL(window.location.href);return new URLSearchParams(t.search).get(na)}}class rh{setTenant(t,n){sessionStorage.setItem(ra,t.name),window.location.reload()}getCurrentTenantName(){return sessionStorage.getItem(ra)}}/*! js-cookie v3.0.5 | MIT */function yr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var oh={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Fo(e,t){function n(o,i,s){if(!(typeof document>"u")){s=yr({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var c in s)s[c]&&(a+="; "+c,s[c]!==!0&&(a+="="+s[c].split(";")[0]));return document.cookie=o+"="+e.write(i,o)+a}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var i=document.cookie?document.cookie.split("; "):[],s={},a=0;a<i.length;a++){var c=i[a].split("="),l=c.slice(1).join("=");try{var d=decodeURIComponent(c[0]);if(s[d]=e.read(l,d),o===d)break}catch{}}return o?s[o]:s}}return Object.create({set:n,get:r,remove:function(o,i){n(o,"",yr({},i,{expires:-1}))},withAttributes:function(o){return Fo(this.converter,yr({},this.attributes,o))},withConverter:function(o){return Fo(yr({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Bo=Fo(oh,{path:"/"});class ih{setTenant(t,n){t?Bo.set(Mo,t.name):Bo.remove(Mo),window.location.reload()}getCurrentTenantName(){return Bo.get(Mo)}}class sh{extractSubdomain(t){if(t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t))return"";const n=t.split(".");if(n.length<2||n.length===2||n[0]==="www"&&n.length===3)return"";const o=(n[0]==="www"?n.slice(1):n).slice(0,-2);return o.length>0?o.join("."):""}getBaseDomain(t){const n=t.split(".");return t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t)||n.length<=2?t:n.slice(-2).join(".")}setTenant(t,n){var l;const r=(l=n.urlPatterns)==null?void 0:l.find(d=>d.patternType==="subdomain"&&d.tenantId===t.id&&d.isActive);if(!r)throw new Error(`No active subdomain pattern found for tenant '${t.name}'`);const o=new URL(window.location.href),i=r.patternValue,s=o.hostname,a=this.getBaseDomain(s),c=i?`${i}.${a}`:a;o.hostname=c,window.location.href=o.toString()}getCurrentTenantName(){const t=window.location.hostname;return this.extractSubdomain(t)||null}}const oa={queryParams:new nh,sessionStorage:new rh,cookie:new ih,subdomain:new sh},ah=e=>{const t=oa[e.clientSideMode];if(!t)throw new Error(`Client side tenant mode '${e.clientSideMode}' is not supported ${JSON.stringify({strategies:oa},null,2)}`);return t},ch=(e,t,n)=>{const r=t.find(i=>i.name===n);if(!r)throw Error("No tenant permission");return ah(e).setTenant(r,e),r},Sv=E("useTenants",()=>{const[e,t]=fo(),{tenants:n=[],currentTenant:r,tenantConfig:o=th}=e,i=te(s=>{const a=ch(o,n,s);t({...e,currentTenant:a})},[o,e]);return{tenants:n,currentTenant:r,tenantConfig:o,selectTenant:i}});function lh(e){if(!e.ok)throw console.error(e),new Error(e.statusText)}async function br(e,t,n,r){const o=await e(`/user-states/${encodeURIComponent(t)}/${encodeURIComponent(n)}`,r);return lh(o),o}class wr{static async get(t,n,r){const i=await br(t,n,r,{method:"GET",headers:{"Content-Type":"application/json"}});return i.status===204?null:await i.json()}static async create(t,n,r,o){const i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await br(t,n,r,i)).json()}static async update(t,n,r,o){const i={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await br(t,n,r,i)).json()}static async delete(t,n,r){return await br(t,n,r,{method:"DELETE",headers:{"Content-Type":"application/json"}}),null}}const Tv=E("useUserState",e=>{const t=hs("@bluealba/pae-nestjs-gateway-service"),n=Ju();if(!n)throw new Error("You must call the useUserState hook within a PAE application.");const[r,o]=L(null),[i,s]=L(!1),[a,c]=L(!1),[l,d]=L(null),p=(x,C)=>te(async({newValue:S,shouldThrowError:T}={})=>{try{c(!0),d(null);const R=await x(t,n,e,S);return o(R),R?R.value:null}catch(R){if(d(R==null?void 0:R.message),console.error(`Failed to ${C} ${e}:`,R),T)throw R;return null}finally{c(!1)}},[t,n,e]),h=p(wr.get,"fetch"),m=p(wr.create,"create"),w=p(wr.update,"update"),f=p(wr.delete,"delete"),v=te(async()=>{try{await h()}finally{s(!0)}},[h]);Q(()=>{v()},[v]);const _=te(async(x,C=!1)=>r==null?await m({newValue:x,shouldThrowError:C}):await w({newValue:x,shouldThrowError:C}),[r,m,w]);return{value:r?r.value:null,hasFetched:i,loading:a,error:l,setValue:_,createValue:m,updateValue:w,deleteValue:f}}),ia="__PAE_EXTENSION_POINT_REACT_CONTENT_EMPTY__",Av=E("ExtendExtensionPoint",({module:e,point:t,children:n})=>(ad(e,t,n??ia),null)),uh=E("ExtensionPoint",({name:e,children:t,...n})=>{const r=sd(e);if(r===ia)return null;if(!r)return u.jsx(u.Fragment,{children:t??null});if(dh(r)){const o=r;return u.jsx(o,{...n})}else return r}),dh=e=>typeof e=="function",Pv=E("extensionPoint",(e,t)=>{const n=r=>(t=t||e.displayName||e.name||"?",u.jsx(uh,{name:t,...r,children:u.jsx(e,{...r})}));return n.displayName=`extensionPoint(${t})`,n}),sa="single-spa:app-change";function fh(){const[e,t]=L(aa());return Q(()=>{const n=()=>{t(aa())};return window.addEventListener(sa,n),()=>{window.removeEventListener(sa,n)}},[]),e}function aa(){return Zn.getAppNames().reduce((t,n)=>(Zn.getAppStatus(n)?t[n]=Zn.getAppStatus(n):t[n]="NOT_LOADED",t),{})}function hh(e){const n=fh()[e]??"LOAD_ERROR";return{statusName:n,isLoading:n==="LOADING_SOURCE_CODE"||n==="BOOTSTRAPPING"||n==="MOUNTING",isMounted:n==="MOUNTED",isBroken:n==="SKIP_BECAUSE_BROKEN"||n==="LOAD_ERROR"}}const ca=({appName:e})=>u.jsx("div",{children:u.jsxs("p",{children:["Loading ",e,"..."]})});ca.displayName="BaseLoading";const la=({appName:e})=>u.jsxs("div",{children:[u.jsx("p",{children:"Something went wrong..."}),u.jsxs("p",{children:["Failed to load ",e]})]});la.displayName="BaseError";const ph={display:"flex",flexDirection:"column",flex:1},ua=B((e,t)=>u.jsx("div",{ref:t,style:ph,...e}));ua.displayName="BaseContainer";const mh="pae-app:",gh=E("ModulePlaceHolder",B(({appName:e,LoadingComponent:t=ca,ErrorComponent:n=la,ContainerComponent:r=ua,...o},i)=>{const s=hh(e);return u.jsxs(r,{ref:i,...o,id:`${mh}${e}`,children:[s.isLoading&&u.jsx(t,{appName:e}),s.isBroken&&u.jsx(n,{appName:e})]})}));gh.displayName="ModulePlaceHolder";const da=E("Authorized",({operations:e,children:t,forbiddenContent:n})=>{var o;const{hasAccess:r}=po();if(!r(...e)){if(!n)return null;if(typeof n=="function")if((o=n==null?void 0:n.prototype)!=null&&o.isReactComponent){const i=n;return u.jsx(i,{operations:e})}else return n({operations:e});return Yn.isValidElement(n)?n:null}return t});da.displayName="Authorized";const Rv=E("PlatformEventListener",({eventName:e,listener:t})=>(cd(e,t),null)),vh=()=>u.jsx("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:u.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M8.737 8.737a21.49 21.49 0 0 1 3.308-2.724m0 0c3.063-2.026 5.99-2.641 7.331-1.3 1.827 1.828.026 6.591-4.023 10.64-4.049 4.049-8.812 5.85-10.64 4.023-1.33-1.33-.736-4.218 1.249-7.253m6.083-6.11c-3.063-2.026-5.99-2.641-7.331-1.3-1.827 1.828-.026 6.591 4.023 10.64m3.308-9.34a21.497 21.497 0 0 1 3.308 2.724m2.775 3.386c1.985 3.035 2.579 5.923 1.248 7.253-1.336 1.337-4.245.732-7.295-1.275M14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})}),yh=E("ApplicationIcon",({applicationName:e})=>{const t=Nu(e);if(t)if(typeof t=="function"){const n=t;return u.jsx(n,{})}else return t;return u.jsx(vh,{})});yh.displayName="ApplicationIcon";const Ov=E("authorized",(e,t)=>{const n=r=>u.jsx(da,{operations:t,children:u.jsx(e,{...r})});return n.displayName="Authorized",n});function fa(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=fa(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function j(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=fa(e))&&(r&&(r+=" "),r+=t);return r}const _r={spinner:"spinner__fakUN","spinner-rotation":"spinner-rotation__wUmPV",spinnerRotation:"spinner-rotation__wUmPV",button:"button__8FA9H","button--contained-primary":"button--contained-primary__stkTx",buttonContainedPrimary:"button--contained-primary__stkTx","button--outlined-primary":"button--outlined-primary__KZ1ww",buttonOutlinedPrimary:"button--outlined-primary__KZ1ww","button--text-primary":"button--text-primary__GLTfm",buttonTextPrimary:"button--text-primary__GLTfm","button--contained-danger":"button--contained-danger__L9ehT",buttonContainedDanger:"button--contained-danger__L9ehT","button--outlined-danger":"button--outlined-danger__eoYLd",buttonOutlinedDanger:"button--outlined-danger__eoYLd","button--text-danger":"button--text-danger__Sw-ha",buttonTextDanger:"button--text-danger__Sw-ha",icon:"icon__--umH"},Uo=E("Button",B(({variant:e="contained",colorScheme:t="primary",loading:n=!1,IconComponent:r,className:o,children:i,...s},a)=>{const c=j(_r.button,_r[`button--${e}-${t}`],o);return u.jsxs("button",{ref:a,className:c,...s,children:[n?u.jsx("div",{className:_r.spinner}):r&&u.jsx(r,{className:_r.icon}),i]})}));Uo.displayName="Button";const xr={Badges:"Badges__5jpum",badges:"Badges__5jpum",Badge:"Badge__95MWM",badge:"Badge__95MWM","Badge--primary":"Badge--primary__Rx-bS",badgePrimary:"Badge--primary__Rx-bS","Badge--secondary":"Badge--secondary__d92bT",badgeSecondary:"Badge--secondary__d92bT","Badge--success":"Badge--success__Kdo98",badgeSuccess:"Badge--success__Kdo98","Badge--warning":"Badge--warning__bf-Nn",badgeWarning:"Badge--warning__bf-Nn","Badge--danger":"Badge--danger__HTj39",badgeDanger:"Badge--danger__HTj39","Badge--small":"Badge--small__y93Pj",badgeSmall:"Badge--small__y93Pj","Badge--regular":"Badge--regular__aT5AL",badgeRegular:"Badge--regular__aT5AL","Badge--large":"Badge--large__wORCH",badgeLarge:"Badge--large__wORCH"},ha={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};var pa={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function bh(e){var d,p;var t,n=[],r=1,o;if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),ha[e])n=ha[e].slice(),o="rgb";else if(e==="transparent")r=0,o="rgb",n=[0,0,0];else if(e[0]==="#"){var i=e.slice(1),s=i.length,a=s<=4;r=1,a?(n=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],s===4&&(r=parseInt(i[3]+i[3],16)/255)):(n=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],s===8&&(r=parseInt(i[6]+i[7],16)/255)),n[0]||(n[0]=0),n[1]||(n[1]=0),n[2]||(n[2]=0),o="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var c=t[1];o=c.replace(/a$/,"");var l=o==="cmyk"?4:o==="gray"?1:3;n=t[2].trim().split(/\s*[,\/]\s*|\s+/),o==="color"&&(o=n.shift()),n=n.map(function(h,m){if(h[h.length-1]==="%")return h=parseFloat(h)/100,m===3?h:o==="rgb"?h*255:o[0]==="h"||o[0]==="l"&&!m?h*100:o==="lab"?h*125:o==="lch"?m<2?h*150:h*360:o[0]==="o"&&!m?h:o==="oklab"?h*.4:o==="oklch"?m<2?h*.4:h*360:h;if(o[m]==="h"||m===2&&o[o.length-1]==="h"){if(pa[h]!==void 0)return pa[h];if(h.endsWith("deg"))return parseFloat(h);if(h.endsWith("turn"))return parseFloat(h)*360;if(h.endsWith("grad"))return parseFloat(h)*360/400;if(h.endsWith("rad"))return parseFloat(h)*180/Math.PI}return h==="none"?0:parseFloat(h)}),r=n.length>l?n.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(n=e.match(/([0-9]+)/g).map(function(h){return parseFloat(h)}),o=((p=(d=e.match(/([a-z])/ig))==null?void 0:d.join(""))==null?void 0:p.toLowerCase())||"rgb");return{space:o,values:n,alpha:r}}const wh=(e,t)=>{const{space:n,values:r}=bh(e);return n[0]==="h"?`${n}a(${r[0]}, ${r[1]}%, ${r[2]}%, ${t})`:`${n}a(${r}, ${t})`},ma=E("Badge",B(({children:e,color:t,className:n,customColor:r,size:o="small",style:i,...s},a)=>{const c=r?{color:r,background:wh(r,.1)}:{},l=j(xr.Badge,xr[`Badge--${o}`],{[xr[`Badge--${t}`]]:!!t},n);return u.jsx("span",{ref:a,className:l,style:{...i,...c},...s,children:e})}));ma.displayName="Badge";const ga=E("Badges",B(({children:e,className:t,...n},r)=>{const o=j(xr.Badges,t);return u.jsx("div",{ref:r,className:o,...n,children:e})}));ga.displayName="Badges";const _h=E("ClipboardIcon",({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...i})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:o,...i,children:[u.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),u.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"})]})),xh=E("ClipboardCheckIcon",({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...i})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:o,...i,children:[u.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),u.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}),u.jsx("path",{d:"m9 12 2 2 4-4"})]})),Ch={CopyToClipboardButton:"CopyToClipboardButton__2Nd2m"},ey=E("CopyToClipboardButton",({content:e})=>{const[t,n]=Eh(),{notify:r}=Ds(),o=t?xh:_h,i=te(async()=>{await n(e)&&r("Copied to the Clipboard !","success")},[e,r]);return u.jsx(o,{className:Ch.CopyToClipboardButton,size:18,onClick:i})}),Eh=()=>{const[e,t]=L(!1);return[e,async r=>{try{return await navigator.clipboard.writeText(r),t(!0),setTimeout(()=>t(!1),2e3),!0}catch(o){return console.error("Failed to copy text: ",o),!1}}]},va={FieldGroup:"FieldGroup__Q2JCV",fieldGroup:"FieldGroup__Q2JCV","FieldGroup--horizontal":"FieldGroup--horizontal__kpfL1",fieldGroupHorizontal:"FieldGroup--horizontal__kpfL1","FieldGroup--vertical":"FieldGroup--vertical__FLo-Q",fieldGroupVertical:"FieldGroup--vertical__FLo-Q"},Sh=E("FieldGroup",B(({children:e,className:t,orientation:n="vertical",...r},o)=>{const i=j(va.FieldGroup,va[`FieldGroup--${n}`],t);return u.jsx("div",{ref:o,className:i,...r,children:e})}));Sh.displayName="FieldGroup";const ya={Input:"Input__uS0sb",Error:"Error__-DQpw"},zo=E("Input",B(({className:e,error:t,...n},r)=>{const o=j(ya.Input,t&&ya.Error,e);return u.jsx("input",{ref:r,className:o,...n})}));zo.displayName="Input";const Th={Error:"Error__N4OP5"},Ah=E("InputError",B(({children:e,className:t,...n},r)=>{const o=j(Th.Error,t);return u.jsx("span",{ref:r,className:o,...n,children:e})}));Ah.displayName="InputError";const ba={Label:"Label__VYUvW",Error:"Error__Eu6DI"},Ph=E("Label",B(({children:e,className:t,error:n,...r},o)=>{const i=j(ba.Label,n&&ba.Error,t);return u.jsx("label",{ref:o,className:i,...r,children:e})}));Ph.displayName="Label";const Ho={Select:"Select__giqpe",Chevron:"Chevron__YvhBd"},wa=B(({children:e,className:t,...n},r)=>{const o=j(Ho.Option,t);return u.jsx("option",{ref:r,className:o,...n,children:e})});wa.displayName="Option";const _a=E("Select",B(({children:e,className:t,...n},r)=>{const o=j(Ho.Select,t);return u.jsxs("div",{className:o,children:[u.jsx("select",{ref:r,...n,children:e}),u.jsx("div",{className:Ho.Chevron,children:u.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M4 6L8 10L12 6",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})})]})}));_a.displayName="Select",_a.Option=wa;const Rh={TextArea:"TextArea__pa-A0"},Oh=E("TextArea",B(({children:e,className:t,...n},r)=>{const o=j(Rh.TextArea,t);return u.jsx("textarea",{ref:r,className:o,...n,children:e})}));Oh.displayName="TextArea";const Ln={SearchInput:"SearchInput__4OFyE",SearchIcon:"SearchIcon__YgnQy",ClearIcon:"ClearIcon__ukRVr",SearchInput__ClearIcon:"SearchInput__ClearIcon__uzVoc",SearchInput__SearchIcon:"SearchInput__SearchIcon__zoDG4"},xa=E("SearchInput",B(({className:e,placeholder:t="Type to search...",showClearButton:n=!1,showSearchIcon:r=!0,onClear:o,...i},s)=>{const a=j(Ln.SearchInput,n&&Ln.SearchInput__ClearIcon,r&&Ln.SearchInput__SearchIcon,e),c=j(Ln.SearchIcon),l=j(Ln.ClearIcon);return u.jsxs("div",{className:a,children:[u.jsx(zo,{ref:s,type:"text",placeholder:t,...i}),r&&u.jsx("svg",{className:c,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M13 13L10.6667 10.6667M12.3333 6.66667C12.3333 9.79628 9.79628 12.3333 6.66667 12.3333C3.53705 12.3333 1 9.79628 1 6.66667C1 3.53705 3.53705 1 6.66667 1C9.79628 1 12.3333 3.53705 12.3333 6.66667Z",stroke:"#A4A4A4",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})}),n&&u.jsx("svg",{className:l,width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:o,children:u.jsx("path",{d:"M7.33334 0.666748L0.666672 7.33341M0.666672 0.666748L7.33334 7.33341",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})]})}));xa.displayName="SearchInput";const Rt={SearchAutocomplete:"SearchAutocomplete__vR9Hk",AutocompleteItem:"AutocompleteItem__YIm7R","AutocompleteItem--canBeSelected":"AutocompleteItem--canBeSelected__jxk4z",AutocompleteHighlighter:"AutocompleteHighlighter__LAFTV",AutocompleteHighlighter__match:"AutocompleteHighlighter__match__Wy1o2",DropdownList:"DropdownList__-fHIk",AutocompleteItemDescription:"AutocompleteItemDescription__4QYN5"},Kt=E("dropdownListStyles",{DropdownList:"DropdownList__QTXXX",dropdownList:"DropdownList__QTXXX","DropdownList--closed":"DropdownList--closed__pdL1Z",dropdownListClosed:"DropdownList--closed__pdL1Z","DropdownList--open":"DropdownList--open__opzc9",dropdownListOpen:"DropdownList--open__opzc9","DropdownList--left":"DropdownList--left__xSwXR",dropdownListLeft:"DropdownList--left__xSwXR"}),Wo=E("DropdownList",B(({children:e,className:t,open:n,align:r="right",...o},i)=>{const s=j(Kt.DropdownList,{[Kt["DropdownList--open"]]:n,[Kt["DropdownList--closed"]]:!n,[Kt["DropdownList--left"]]:r==="left"},t);return u.jsx("div",{ref:i,className:s,...o,children:e})}));Wo.displayName="DropdownList";const In=B(({children:e,className:t,canBeSelected:n=!1,...r},o)=>{const i=j(Rt.AutocompleteItem,{[Rt["AutocompleteItem--canBeSelected"]]:n},t);return u.jsx("div",{ref:o,className:i,...r,children:e})});In.displayName="AutocompleteItem";const kh=300,jh={query:"",suggestions:[],loading:!1,error:null},Dh=({suggestionFetcher:e,canAdd:t})=>{const[n,r]=L(jh);return Q(()=>{r(a=>({...a,loading:!0}));const i=async()=>{try{const a=await e(n.query);t&&!a.some(c=>c.value.toLowerCase()===n.query.toLowerCase())&&a.push({label:`Add "${n.query}"`,value:n.query,isNew:!0}),r(c=>({...c,suggestions:a,loading:!1}))}catch(a){r(c=>({...c,suggestions:[],error:a,loading:!1}))}},s=setTimeout(()=>{i()},kh);return()=>{clearTimeout(s)}},[n.query]),{...n,setQuery:i=>{r(s=>({...s,query:i}))}}},Ca=B(({text:e,query:t,className:n,...r},o)=>{const i=j(Rt.AutocompleteHighlighter,n),s=(a,c)=>{const l=a.toLowerCase().indexOf(c.toLowerCase());if(l===-1||c.length===0)return a;const d=a.slice(0,l),p=a.slice(l,l+c.length),h=a.slice(l+c.length);return u.jsxs(u.Fragment,{children:[d,u.jsx("span",{className:Rt.AutocompleteHighlighter__match,children:p}),s(h,c)]})};return u.jsx("div",{ref:o,className:i,...r,children:s(e,t)})});Ca.displayName="AutocompleteHighlighter";const Lh=5,Ih=E("SearchAutocomplete",B(({children:e,className:t,canAdd:n,maxSuggestionsShown:r=Lh,searchInputProps:o,keepSelectedOption:i,suggestionFetcher:s,onAccept:a,...c},l)=>{const{query:d,setQuery:p,suggestions:h,loading:m}=Dh({suggestionFetcher:s,canAdd:n}),[w,f]=L(null),v=d.length>0,_=A=>{p(A.target.value)},x=A=>{a==null||a(A),i?(f(A),p(A.value)):p("")},C=()=>{a==null||a(null),f(null),p("")},S=j(Rt.SearchAutocomplete,t),T=h.slice(0,r),R=h.slice(r);return u.jsxs("div",{ref:l,className:S,...c,children:[u.jsx(xa,{...o,value:d,onChange:_,showClearButton:!!w,onClear:C}),e,u.jsxs(Wo,{className:Rt.DropdownList,open:v&&!w,role:"listbox","aria-label":"Suggestions",children:[m?u.jsx(In,{children:"Loading..."}):T.map(A=>u.jsxs(In,{canBeSelected:!0,onClick:x.bind(null,A),children:[u.jsx(Ca,{text:A.label,query:d}),A.description&&u.jsx("span",{className:Rt.AutocompleteItemDescription,children:A.description})]},A.value)),!m&&R.length>0&&u.jsxs(In,{children:[R.length," more results"]}),v&&h.length===0&&!m&&u.jsx(In,{children:"No results found"})]})]})}));Ih.displayName="SearchAutocomplete";const Ot=E("Show",e=>{let t=null,n=null;return qi.forEach(e.children,r=>{const o=r.props.condition;o===void 0?n=r:!t&&o===!0&&(t=r)}),u.jsx(u.Fragment,{children:t||n})});Ot.displayName="Show",Ot.When=({condition:e,children:t})=>u.jsx(u.Fragment,{children:e&&t}),Ot.Else=({render:e,children:t})=>u.jsx(u.Fragment,{children:e||t});function Ea(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Sa(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Ea(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Ea(e[o],null)}}}}function ke(...e){return g.useCallback(Sa(...e),e)}function Vo(e){const t=$h(e),n=g.forwardRef((r,o)=>{const{children:i,...s}=r,a=g.Children.toArray(i),c=a.find(Fh);if(c){const l=c.props.children,d=a.map(p=>p===c?g.Children.count(l)>1?g.Children.only(null):g.isValidElement(l)?l.props.children:null:p);return u.jsx(t,{...s,ref:o,children:g.isValidElement(l)?g.cloneElement(l,void 0,d):null})}return u.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var Nh=Vo("Slot");function $h(e){const t=g.forwardRef((n,r)=>{const{children:o,...i}=n;if(g.isValidElement(o)){const s=Uh(o),a=Bh(i,o.props);return o.type!==g.Fragment&&(a.ref=r?Sa(r,s):s),g.cloneElement(o,a)}return g.Children.count(o)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ta=Symbol("radix.slottable");function Mh(e){const t=({children:n})=>u.jsx(u.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Ta,t}function Fh(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ta}function Bh(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const c=i(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Uh(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Aa={SkeletonListContainer:"SkeletonListContainer__MKJhE",Skeleton:"Skeleton__Ovpiw"},Go=E("Skeleton",B((e,t)=>{const{children:n,className:r,loading:o,height:i=48,width:s,borderRadius:a,style:c,...l}=e;if(!o&&n)return n;const d=so(n)?Nh:"span";return u.jsx(d,{ref:t,"aria-hidden":!0,className:j(Aa.Skeleton,r),style:{...c,width:s,minWidth:s,height:i,borderRadius:a},"data-inline-skeleton":so(n)?void 0:!0,tabIndex:-1,...l,children:n})}));Go.displayName="Skeleton";const zh=E("SkeletonList",e=>{const{numberOfItems:t,itemsGap:n=2,itemProps:r}=e,o=Array.from({length:t},(i,s)=>s+1);return u.jsx("div",{className:j(Aa.SkeletonListContainer),style:{gap:n},children:o.map(i=>u.jsx(Go,{loading:!0,...r},i))})});zh.displayName="SkeletonList";function ve(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Hh(e,t){const n=g.createContext(t),r=i=>{const{children:s,...a}=i,c=g.useMemo(()=>a,Object.values(a));return u.jsx(n.Provider,{value:c,children:s})};r.displayName=e+"Provider";function o(i){const s=g.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function qo(e,t=[]){let n=[];function r(i,s){const a=g.createContext(s),c=n.length;n=[...n,s];const l=p=>{var _;const{scope:h,children:m,...w}=p,f=((_=h==null?void 0:h[e])==null?void 0:_[c])||a,v=g.useMemo(()=>w,Object.values(w));return u.jsx(f.Provider,{value:v,children:m})};l.displayName=i+"Provider";function d(p,h){var f;const m=((f=h==null?void 0:h[e])==null?void 0:f[c])||a,w=g.useContext(m);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[l,d]}const o=()=>{const i=n.map(s=>g.createContext(s));return function(a){const c=(a==null?void 0:a[e])||i;return g.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,Wh(o,...t)]}function Wh(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:c,scopeName:l})=>{const p=c(i)[`__scope${l}`];return{...a,...p}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var Vh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ye=Vh.reduce((e,t)=>{const n=Vo(`Primitive.${t}`),r=g.forwardRef((o,i)=>{const{asChild:s,...a}=o,c=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(c,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Gh(e,t){e&&co.flushSync(()=>e.dispatchEvent(t))}function Zt(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function qh(e,t=globalThis==null?void 0:globalThis.document){const n=Zt(e);g.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Qh="DismissableLayer",Qo="dismissableLayer.update",Yh="dismissableLayer.pointerDownOutside",Kh="dismissableLayer.focusOutside",Pa,Ra=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Yo=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,l=g.useContext(Ra),[d,p]=g.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=g.useState({}),w=ke(t,A=>p(A)),f=Array.from(l.layers),[v]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),_=f.indexOf(v),x=d?f.indexOf(d):-1,C=l.layersWithOutsidePointerEventsDisabled.size>0,S=x>=_,T=Jh(A=>{const N=A.target,$=[...l.branches].some(M=>M.contains(N));!S||$||(o==null||o(A),s==null||s(A),A.defaultPrevented||a==null||a())},h),R=ep(A=>{const N=A.target;[...l.branches].some(M=>M.contains(N))||(i==null||i(A),s==null||s(A),A.defaultPrevented||a==null||a())},h);return qh(A=>{x===l.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},h),g.useEffect(()=>{if(d)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Pa=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),Oa(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Pa)}},[d,h,n,l]),g.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),Oa())},[d,l]),g.useEffect(()=>{const A=()=>m({});return document.addEventListener(Qo,A),()=>document.removeEventListener(Qo,A)},[]),u.jsx(ye.div,{...c,ref:w,style:{pointerEvents:C?S?"auto":"none":void 0,...e.style},onFocusCapture:ve(e.onFocusCapture,R.onFocusCapture),onBlurCapture:ve(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:ve(e.onPointerDownCapture,T.onPointerDownCapture)})});Yo.displayName=Qh;var Zh="DismissableLayerBranch",Xh=g.forwardRef((e,t)=>{const n=g.useContext(Ra),r=g.useRef(null),o=ke(t,r);return g.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),u.jsx(ye.div,{...e,ref:o})});Xh.displayName=Zh;function Jh(e,t=globalThis==null?void 0:globalThis.document){const n=Zt(e),r=g.useRef(!1),o=g.useRef(()=>{});return g.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){ka(Yh,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ep(e,t=globalThis==null?void 0:globalThis.document){const n=Zt(e),r=g.useRef(!1);return g.useEffect(()=>{const o=i=>{i.target&&!r.current&&ka(Kh,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Oa(){const e=new CustomEvent(Qo);document.dispatchEvent(e)}function ka(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Gh(o,i):o.dispatchEvent(i)}var ut=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},tp=g[" useId ".trim().toString()]||(()=>{}),np=0;function Cr(e){const[t,n]=g.useState(tp());return ut(()=>{n(r=>r??String(np++))},[e]),t?`radix-${t}`:""}const rp=["top","right","bottom","left"],dt=Math.min,Ee=Math.max,Er=Math.round,Sr=Math.floor,Fe=e=>({x:e,y:e}),op={left:"right",right:"left",bottom:"top",top:"bottom"},ip={start:"end",end:"start"};function Ko(e,t,n){return Ee(e,dt(t,n))}function Ke(e,t){return typeof e=="function"?e(t):e}function Ze(e){return e.split("-")[0]}function Xt(e){return e.split("-")[1]}function Zo(e){return e==="x"?"y":"x"}function Xo(e){return e==="y"?"height":"width"}const sp=new Set(["top","bottom"]);function Be(e){return sp.has(Ze(e))?"y":"x"}function Jo(e){return Zo(Be(e))}function ap(e,t,n){n===void 0&&(n=!1);const r=Xt(e),o=Jo(e),i=Xo(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Tr(s)),[s,Tr(s)]}function cp(e){const t=Tr(e);return[ei(e),t,ei(t)]}function ei(e){return e.replace(/start|end/g,t=>ip[t])}const ja=["left","right"],Da=["right","left"],lp=["top","bottom"],up=["bottom","top"];function dp(e,t,n){switch(e){case"top":case"bottom":return n?t?Da:ja:t?ja:Da;case"left":case"right":return t?lp:up;default:return[]}}function fp(e,t,n,r){const o=Xt(e);let i=dp(Ze(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(ei)))),i}function Tr(e){return e.replace(/left|right|bottom|top/g,t=>op[t])}function hp(e){return{top:0,right:0,bottom:0,left:0,...e}}function La(e){return typeof e!="number"?hp(e):{top:e,right:e,bottom:e,left:e}}function Ar(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ia(e,t,n){let{reference:r,floating:o}=e;const i=Be(t),s=Jo(t),a=Xo(s),c=Ze(t),l=i==="y",d=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let m;switch(c){case"top":m={x:d,y:r.y-o.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:p};break;case"left":m={x:r.x-o.width,y:p};break;default:m={x:r.x,y:r.y}}switch(Xt(t)){case"start":m[s]-=h*(n&&l?-1:1);break;case"end":m[s]+=h*(n&&l?-1:1);break}return m}const pp=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=Ia(l,r,c),h=r,m={},w=0;for(let f=0;f<a.length;f++){const{name:v,fn:_}=a[f],{x,y:C,data:S,reset:T}=await _({x:d,y:p,initialPlacement:r,placement:h,strategy:o,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});d=x??d,p=C??p,m={...m,[v]:{...m[v],...S}},T&&w<=50&&(w++,typeof T=="object"&&(T.placement&&(h=T.placement),T.rects&&(l=T.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):T.rects),{x:d,y:p}=Ia(l,h,c)),f=-1)}return{x:d,y:p,placement:h,strategy:o,middlewareData:m}};async function Nn(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:m=0}=Ke(t,e),w=La(m),v=a[h?p==="floating"?"reference":"floating":p],_=Ar(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:d,strategy:c})),x=p==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),S=await(i.isElement==null?void 0:i.isElement(C))?await(i.getScale==null?void 0:i.getScale(C))||{x:1,y:1}:{x:1,y:1},T=Ar(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:C,strategy:c}):x);return{top:(_.top-T.top+w.top)/S.y,bottom:(T.bottom-_.bottom+w.bottom)/S.y,left:(_.left-T.left+w.left)/S.x,right:(T.right-_.right+w.right)/S.x}}const mp=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:d=0}=Ke(e,t)||{};if(l==null)return{};const p=La(d),h={x:n,y:r},m=Jo(o),w=Xo(m),f=await s.getDimensions(l),v=m==="y",_=v?"top":"left",x=v?"bottom":"right",C=v?"clientHeight":"clientWidth",S=i.reference[w]+i.reference[m]-h[m]-i.floating[w],T=h[m]-i.reference[m],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let A=R?R[C]:0;(!A||!await(s.isElement==null?void 0:s.isElement(R)))&&(A=a.floating[C]||i.floating[w]);const N=S/2-T/2,$=A/2-f[w]/2-1,M=dt(p[_],$),Z=dt(p[x],$),X=M,V=A-f[w]-Z,Y=A/2-f[w]/2+N,ce=Ko(X,Y,V),re=!c.arrow&&Xt(o)!=null&&Y!==ce&&i.reference[w]/2-(Y<X?M:Z)-f[w]/2<0,oe=re?Y<X?Y-X:Y-V:0;return{[m]:h[m]+oe,data:{[m]:ce,centerOffset:Y-ce-oe,...re&&{alignmentOffset:oe}},reset:re}}}),gp=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:f=!0,...v}=Ke(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const _=Ze(o),x=Be(a),C=Ze(a)===a,S=await(c.isRTL==null?void 0:c.isRTL(l.floating)),T=h||(C||!f?[Tr(a)]:cp(a)),R=w!=="none";!h&&R&&T.push(...fp(a,f,w,S));const A=[a,...T],N=await Nn(t,v),$=[];let M=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&$.push(N[_]),p){const Y=ap(o,s,S);$.push(N[Y[0]],N[Y[1]])}if(M=[...M,{placement:o,overflows:$}],!$.every(Y=>Y<=0)){var Z,X;const Y=(((Z=i.flip)==null?void 0:Z.index)||0)+1,ce=A[Y];if(ce&&(!(p==="alignment"?x!==Be(ce):!1)||M.every(U=>Be(U.placement)===x?U.overflows[0]>0:!0)))return{data:{index:Y,overflows:M},reset:{placement:ce}};let re=(X=M.filter(oe=>oe.overflows[0]<=0).sort((oe,U)=>oe.overflows[1]-U.overflows[1])[0])==null?void 0:X.placement;if(!re)switch(m){case"bestFit":{var V;const oe=(V=M.filter(U=>{if(R){const le=Be(U.placement);return le===x||le==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(le=>le>0).reduce((le,Te)=>le+Te,0)]).sort((U,le)=>U[1]-le[1])[0])==null?void 0:V[0];oe&&(re=oe);break}case"initialPlacement":re=a;break}if(o!==re)return{reset:{placement:re}}}return{}}}};function Na(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $a(e){return rp.some(t=>e[t]>=0)}const vp=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ke(e,t);switch(r){case"referenceHidden":{const i=await Nn(t,{...o,elementContext:"reference"}),s=Na(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:$a(s)}}}case"escaped":{const i=await Nn(t,{...o,altBoundary:!0}),s=Na(i,n.floating);return{data:{escapedOffsets:s,escaped:$a(s)}}}default:return{}}}}},Ma=new Set(["left","top"]);async function yp(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Ze(n),a=Xt(n),c=Be(n)==="y",l=Ma.has(s)?-1:1,d=i&&c?-1:1,p=Ke(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof w=="number"&&(m=a==="end"?w*-1:w),c?{x:m*d,y:h*l}:{x:h*l,y:m*d}}const bp=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,c=await yp(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},wp=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:_,y:x}=v;return{x:_,y:x}}},...c}=Ke(e,t),l={x:n,y:r},d=await Nn(t,c),p=Be(Ze(o)),h=Zo(p);let m=l[h],w=l[p];if(i){const v=h==="y"?"top":"left",_=h==="y"?"bottom":"right",x=m+d[v],C=m-d[_];m=Ko(x,m,C)}if(s){const v=p==="y"?"top":"left",_=p==="y"?"bottom":"right",x=w+d[v],C=w-d[_];w=Ko(x,w,C)}const f=a.fn({...t,[h]:m,[p]:w});return{...f,data:{x:f.x-n,y:f.y-r,enabled:{[h]:i,[p]:s}}}}}},_p=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Ke(e,t),d={x:n,y:r},p=Be(o),h=Zo(p);let m=d[h],w=d[p];const f=Ke(a,t),v=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(c){const C=h==="y"?"height":"width",S=i.reference[h]-i.floating[C]+v.mainAxis,T=i.reference[h]+i.reference[C]-v.mainAxis;m<S?m=S:m>T&&(m=T)}if(l){var _,x;const C=h==="y"?"width":"height",S=Ma.has(Ze(o)),T=i.reference[p]-i.floating[C]+(S&&((_=s.offset)==null?void 0:_[p])||0)+(S?0:v.crossAxis),R=i.reference[p]+i.reference[C]+(S?0:((x=s.offset)==null?void 0:x[p])||0)-(S?v.crossAxis:0);w<T?w=T:w>R&&(w=R)}return{[h]:m,[p]:w}}}},xp=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:c=()=>{},...l}=Ke(e,t),d=await Nn(t,l),p=Ze(o),h=Xt(o),m=Be(o)==="y",{width:w,height:f}=i.floating;let v,_;p==="top"||p==="bottom"?(v=p,_=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(_=p,v=h==="end"?"top":"bottom");const x=f-d.top-d.bottom,C=w-d.left-d.right,S=dt(f-d[v],x),T=dt(w-d[_],C),R=!t.middlewareData.shift;let A=S,N=T;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=x),R&&!h){const M=Ee(d.left,0),Z=Ee(d.right,0),X=Ee(d.top,0),V=Ee(d.bottom,0);m?N=w-2*(M!==0||Z!==0?M+Z:Ee(d.left,d.right)):A=f-2*(X!==0||V!==0?X+V:Ee(d.top,d.bottom))}await c({...t,availableWidth:N,availableHeight:A});const $=await s.getDimensions(a.floating);return w!==$.width||f!==$.height?{reset:{rects:!0}}:{}}}};function Pr(){return typeof window<"u"}function Jt(e){return Fa(e)?(e.nodeName||"").toLowerCase():"#document"}function Se(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ue(e){var t;return(t=(Fa(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Fa(e){return Pr()?e instanceof Node||e instanceof Se(e).Node:!1}function je(e){return Pr()?e instanceof Element||e instanceof Se(e).Element:!1}function ze(e){return Pr()?e instanceof HTMLElement||e instanceof Se(e).HTMLElement:!1}function Ba(e){return!Pr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Se(e).ShadowRoot}const Cp=new Set(["inline","contents"]);function $n(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=De(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Cp.has(o)}const Ep=new Set(["table","td","th"]);function Sp(e){return Ep.has(Jt(e))}const Tp=[":popover-open",":modal"];function Rr(e){return Tp.some(t=>{try{return e.matches(t)}catch{return!1}})}const Ap=["transform","translate","scale","rotate","perspective"],Pp=["transform","translate","scale","rotate","perspective","filter"],Rp=["paint","layout","strict","content"];function ti(e){const t=ni(),n=je(e)?De(e):e;return Ap.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Pp.some(r=>(n.willChange||"").includes(r))||Rp.some(r=>(n.contain||"").includes(r))}function Op(e){let t=ft(e);for(;ze(t)&&!en(t);){if(ti(t))return t;if(Rr(t))return null;t=ft(t)}return null}function ni(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const kp=new Set(["html","body","#document"]);function en(e){return kp.has(Jt(e))}function De(e){return Se(e).getComputedStyle(e)}function Or(e){return je(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ft(e){if(Jt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ba(e)&&e.host||Ue(e);return Ba(t)?t.host:t}function Ua(e){const t=ft(e);return en(t)?e.ownerDocument?e.ownerDocument.body:e.body:ze(t)&&$n(t)?t:Ua(t)}function Mn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ua(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Se(o);if(i){const a=ri(s);return t.concat(s,s.visualViewport||[],$n(o)?o:[],a&&n?Mn(a):[])}return t.concat(o,Mn(o,[],n))}function ri(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function za(e){const t=De(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ze(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Er(n)!==i||Er(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function oi(e){return je(e)?e:e.contextElement}function tn(e){const t=oi(e);if(!ze(t))return Fe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=za(t);let s=(i?Er(n.width):n.width)/r,a=(i?Er(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const jp=Fe(0);function Ha(e){const t=Se(e);return!ni()||!t.visualViewport?jp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Dp(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Se(e)?!1:t}function kt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=oi(e);let s=Fe(1);t&&(r?je(r)&&(s=tn(r)):s=tn(e));const a=Dp(i,n,r)?Ha(i):Fe(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,d=o.width/s.x,p=o.height/s.y;if(i){const h=Se(i),m=r&&je(r)?Se(r):r;let w=h,f=ri(w);for(;f&&r&&m!==w;){const v=tn(f),_=f.getBoundingClientRect(),x=De(f),C=_.left+(f.clientLeft+parseFloat(x.paddingLeft))*v.x,S=_.top+(f.clientTop+parseFloat(x.paddingTop))*v.y;c*=v.x,l*=v.y,d*=v.x,p*=v.y,c+=C,l+=S,w=Se(f),f=ri(w)}}return Ar({width:d,height:p,x:c,y:l})}function ii(e,t){const n=Or(e).scrollLeft;return t?t.left+n:kt(Ue(e)).left+n}function Wa(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:ii(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function Lp(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Ue(r),a=t?Rr(t.floating):!1;if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=Fe(1);const d=Fe(0),p=ze(r);if((p||!p&&!i)&&((Jt(r)!=="body"||$n(s))&&(c=Or(r)),ze(r))){const m=kt(r);l=tn(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const h=s&&!p&&!i?Wa(s,c,!0):Fe(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+d.x+h.x,y:n.y*l.y-c.scrollTop*l.y+d.y+h.y}}function Ip(e){return Array.from(e.getClientRects())}function Np(e){const t=Ue(e),n=Or(e),r=e.ownerDocument.body,o=Ee(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ee(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+ii(e);const a=-n.scrollTop;return De(r).direction==="rtl"&&(s+=Ee(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function $p(e,t){const n=Se(e),r=Ue(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const l=ni();(!l||l&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a,y:c}}const Mp=new Set(["absolute","fixed"]);function Fp(e,t){const n=kt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ze(e)?tn(e):Fe(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=o*i.x,l=r*i.y;return{width:s,height:a,x:c,y:l}}function Va(e,t,n){let r;if(t==="viewport")r=$p(e,n);else if(t==="document")r=Np(Ue(e));else if(je(t))r=Fp(t,n);else{const o=Ha(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ar(r)}function Ga(e,t){const n=ft(e);return n===t||!je(n)||en(n)?!1:De(n).position==="fixed"||Ga(n,t)}function Bp(e,t){const n=t.get(e);if(n)return n;let r=Mn(e,[],!1).filter(a=>je(a)&&Jt(a)!=="body"),o=null;const i=De(e).position==="fixed";let s=i?ft(e):e;for(;je(s)&&!en(s);){const a=De(s),c=ti(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&Mp.has(o.position)||$n(s)&&!c&&Ga(e,s))?r=r.filter(d=>d!==s):o=a,s=ft(s)}return t.set(e,r),r}function Up(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Rr(t)?[]:Bp(t,this._c):[].concat(n),r],a=s[0],c=s.reduce((l,d)=>{const p=Va(t,d,o);return l.top=Ee(p.top,l.top),l.right=dt(p.right,l.right),l.bottom=dt(p.bottom,l.bottom),l.left=Ee(p.left,l.left),l},Va(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function zp(e){const{width:t,height:n}=za(e);return{width:t,height:n}}function Hp(e,t,n){const r=ze(t),o=Ue(t),i=n==="fixed",s=kt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Fe(0);function l(){c.x=ii(o)}if(r||!r&&!i)if((Jt(t)!=="body"||$n(o))&&(a=Or(t)),r){const m=kt(t,!0,i,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else o&&l();i&&!r&&o&&l();const d=o&&!r&&!i?Wa(o,a):Fe(0),p=s.left+a.scrollLeft-c.x-d.x,h=s.top+a.scrollTop-c.y-d.y;return{x:p,y:h,width:s.width,height:s.height}}function si(e){return De(e).position==="static"}function qa(e,t){if(!ze(e)||De(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ue(e)===n&&(n=n.ownerDocument.body),n}function Qa(e,t){const n=Se(e);if(Rr(e))return n;if(!ze(e)){let o=ft(e);for(;o&&!en(o);){if(je(o)&&!si(o))return o;o=ft(o)}return n}let r=qa(e,t);for(;r&&Sp(r)&&si(r);)r=qa(r,t);return r&&en(r)&&si(r)&&!ti(r)?n:r||Op(e)||n}const Wp=async function(e){const t=this.getOffsetParent||Qa,n=this.getDimensions,r=await n(e.floating);return{reference:Hp(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Vp(e){return De(e).direction==="rtl"}const Gp={convertOffsetParentRelativeRectToViewportRelativeRect:Lp,getDocumentElement:Ue,getClippingRect:Up,getOffsetParent:Qa,getElementRects:Wp,getClientRects:Ip,getDimensions:zp,getScale:tn,isElement:je,isRTL:Vp};function Ya(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qp(e,t){let n=null,r;const o=Ue(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const l=e.getBoundingClientRect(),{left:d,top:p,width:h,height:m}=l;if(a||t(),!h||!m)return;const w=Sr(p),f=Sr(o.clientWidth-(d+h)),v=Sr(o.clientHeight-(p+m)),_=Sr(d),C={rootMargin:-w+"px "+-f+"px "+-v+"px "+-_+"px",threshold:Ee(0,dt(1,c))||1};let S=!0;function T(R){const A=R[0].intersectionRatio;if(A!==c){if(!S)return s();A?s(!1,A):r=setTimeout(()=>{s(!1,1e-7)},1e3)}A===1&&!Ya(l,e.getBoundingClientRect())&&s(),S=!1}try{n=new IntersectionObserver(T,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(T,C)}n.observe(e)}return s(!0),i}function Qp(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=oi(e),d=o||i?[...l?Mn(l):[],...Mn(t)]:[];d.forEach(_=>{o&&_.addEventListener("scroll",n,{passive:!0}),i&&_.addEventListener("resize",n)});const p=l&&a?qp(l,n):null;let h=-1,m=null;s&&(m=new ResizeObserver(_=>{let[x]=_;x&&x.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var C;(C=m)==null||C.observe(t)})),n()}),l&&!c&&m.observe(l),m.observe(t));let w,f=c?kt(e):null;c&&v();function v(){const _=kt(e);f&&!Ya(f,_)&&n(),f=_,w=requestAnimationFrame(v)}return n(),()=>{var _;d.forEach(x=>{o&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),p==null||p(),(_=m)==null||_.disconnect(),m=null,c&&cancelAnimationFrame(w)}}const Yp=bp,Kp=wp,Zp=gp,Xp=xp,Jp=vp,Ka=mp,e1=_p,t1=(e,t,n)=>{const r=new Map,o={platform:Gp,...n},i={...o.platform,_c:r};return pp(e,t,{...o,platform:i})};var n1=typeof document<"u",r1=function(){},kr=n1?Qi:r1;function jr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!jr(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!jr(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Za(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xa(e,t){const n=Za(e);return Math.round(t*n)/n}function ai(e){const t=g.useRef(e);return kr(()=>{t.current=e}),t}function o1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[d,p]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=g.useState(r);jr(h,r)||m(r);const[w,f]=g.useState(null),[v,_]=g.useState(null),x=g.useCallback(U=>{U!==R.current&&(R.current=U,f(U))},[]),C=g.useCallback(U=>{U!==A.current&&(A.current=U,_(U))},[]),S=i||w,T=s||v,R=g.useRef(null),A=g.useRef(null),N=g.useRef(d),$=c!=null,M=ai(c),Z=ai(o),X=ai(l),V=g.useCallback(()=>{if(!R.current||!A.current)return;const U={placement:t,strategy:n,middleware:h};Z.current&&(U.platform=Z.current),t1(R.current,A.current,U).then(le=>{const Te={...le,isPositioned:X.current!==!1};Y.current&&!jr(N.current,Te)&&(N.current=Te,co.flushSync(()=>{p(Te)}))})},[h,t,n,Z,X]);kr(()=>{l===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,p(U=>({...U,isPositioned:!1})))},[l]);const Y=g.useRef(!1);kr(()=>(Y.current=!0,()=>{Y.current=!1}),[]),kr(()=>{if(S&&(R.current=S),T&&(A.current=T),S&&T){if(M.current)return M.current(S,T,V);V()}},[S,T,V,M,$]);const ce=g.useMemo(()=>({reference:R,floating:A,setReference:x,setFloating:C}),[x,C]),re=g.useMemo(()=>({reference:S,floating:T}),[S,T]),oe=g.useMemo(()=>{const U={position:n,left:0,top:0};if(!re.floating)return U;const le=Xa(re.floating,d.x),Te=Xa(re.floating,d.y);return a?{...U,transform:"translate("+le+"px, "+Te+"px)",...Za(re.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:le,top:Te}},[n,a,re.floating,d.x,d.y]);return g.useMemo(()=>({...d,update:V,refs:ce,elements:re,floatingStyles:oe}),[d,V,ce,re,oe])}const i1=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ka({element:r.current,padding:o}).fn(n):{}:r?Ka({element:r,padding:o}).fn(n):{}}}},s1=(e,t)=>({...Yp(e),options:[e,t]}),a1=(e,t)=>({...Kp(e),options:[e,t]}),c1=(e,t)=>({...e1(e),options:[e,t]}),l1=(e,t)=>({...Zp(e),options:[e,t]}),u1=(e,t)=>({...Xp(e),options:[e,t]}),d1=(e,t)=>({...Jp(e),options:[e,t]}),f1=(e,t)=>({...i1(e),options:[e,t]});var h1="Arrow",Ja=g.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return u.jsx(ye.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ja.displayName=h1;var p1=Ja;function m1(e){const[t,n]=g.useState(void 0);return ut(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;s=l.inlineSize,a=l.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ci="Popper",[ec,tc]=qo(ci),[g1,nc]=ec(ci),rc=e=>{const{__scopePopper:t,children:n}=e,[r,o]=g.useState(null);return u.jsx(g1,{scope:t,anchor:r,onAnchorChange:o,children:n})};rc.displayName=ci;var oc="PopperAnchor",ic=g.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=nc(oc,n),s=g.useRef(null),a=ke(t,s);return g.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:u.jsx(ye.div,{...o,ref:a})});ic.displayName=oc;var li="PopperContent",[v1,y1]=ec(li),sc=g.forwardRef((e,t)=>{var xn,Ht,Cn,Wt,eo,qn;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:w,...f}=e,v=nc(li,n),[_,x]=g.useState(null),C=ke(t,Vt=>x(Vt)),[S,T]=g.useState(null),R=m1(S),A=(R==null?void 0:R.width)??0,N=(R==null?void 0:R.height)??0,$=r+(i!=="center"?"-"+i:""),M=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},Z=Array.isArray(l)?l:[l],X=Z.length>0,V={padding:M,boundary:Z.filter(w1),altBoundary:X},{refs:Y,floatingStyles:ce,placement:re,isPositioned:oe,middlewareData:U}=o1({strategy:"fixed",placement:$,whileElementsMounted:(...Vt)=>Qp(...Vt,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[s1({mainAxis:o+N,alignmentAxis:s}),c&&a1({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?c1():void 0,...V}),c&&l1({...V}),u1({...V,apply:({elements:Vt,rects:to,availableWidth:En,availableHeight:Gt})=>{const{width:no,height:ro}=to.reference,rt=Vt.floating.style;rt.setProperty("--radix-popper-available-width",`${En}px`),rt.setProperty("--radix-popper-available-height",`${Gt}px`),rt.setProperty("--radix-popper-anchor-width",`${no}px`),rt.setProperty("--radix-popper-anchor-height",`${ro}px`)}}),S&&f1({element:S,padding:a}),_1({arrowWidth:A,arrowHeight:N}),h&&d1({strategy:"referenceHidden",...V})]}),[le,Te]=lc(re),zt=Zt(w);ut(()=>{oe&&(zt==null||zt())},[oe,zt]);const Xr=(xn=U.arrow)==null?void 0:xn.x,Jr=(Ht=U.arrow)==null?void 0:Ht.y,ki=((Cn=U.arrow)==null?void 0:Cn.centerOffset)!==0,[ji,Gn]=g.useState();return ut(()=>{_&&Gn(window.getComputedStyle(_).zIndex)},[_]),u.jsx("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...ce,transform:oe?ce.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ji,"--radix-popper-transform-origin":[(Wt=U.transformOrigin)==null?void 0:Wt.x,(eo=U.transformOrigin)==null?void 0:eo.y].join(" "),...((qn=U.hide)==null?void 0:qn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(v1,{scope:n,placedSide:le,onArrowChange:T,arrowX:Xr,arrowY:Jr,shouldHideArrow:ki,children:u.jsx(ye.div,{"data-side":le,"data-align":Te,...f,ref:C,style:{...f.style,animation:oe?void 0:"none"}})})})});sc.displayName=li;var ac="PopperArrow",b1={top:"bottom",right:"left",bottom:"top",left:"right"},cc=g.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=y1(ac,r),s=b1[i.placedSide];return u.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:u.jsx(p1,{...o,ref:n,style:{...o.style,display:"block"}})})});cc.displayName=ac;function w1(e){return e!==null}var _1=e=>({name:"transformOrigin",options:e,fn(t){var v,_,x;const{placement:n,rects:r,middlewareData:o}=t,s=((v=o.arrow)==null?void 0:v.centerOffset)!==0,a=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[l,d]=lc(n),p={start:"0%",center:"50%",end:"100%"}[d],h=(((_=o.arrow)==null?void 0:_.x)??0)+a/2,m=(((x=o.arrow)==null?void 0:x.y)??0)+c/2;let w="",f="";return l==="bottom"?(w=s?p:`${h}px`,f=`${-c}px`):l==="top"?(w=s?p:`${h}px`,f=`${r.floating.height+c}px`):l==="right"?(w=`${-c}px`,f=s?p:`${m}px`):l==="left"&&(w=`${r.floating.width+c}px`,f=s?p:`${m}px`),{data:{x:w,y:f}}}});function lc(e){const[t,n="center"]=e.split("-");return[t,n]}var x1=rc,C1=ic,E1=sc,S1=cc,T1="Portal",ui=g.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=g.useState(!1);ut(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?Ki.createPortal(u.jsx(ye.div,{...r,ref:t}),s):null});ui.displayName=T1;function A1(e,t){return g.useReducer((n,r)=>t[n][r]??n,e)}var nn=e=>{const{present:t,children:n}=e,r=P1(t),o=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),i=ke(r.ref,R1(o));return typeof n=="function"||r.isPresent?g.cloneElement(o,{ref:i}):null};nn.displayName="Presence";function P1(e){const[t,n]=g.useState(),r=g.useRef(null),o=g.useRef(e),i=g.useRef("none"),s=e?"mounted":"unmounted",[a,c]=A1(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const l=Dr(r.current);i.current=a==="mounted"?l:"none"},[a]),ut(()=>{const l=r.current,d=o.current;if(d!==e){const h=i.current,m=Dr(l);e?c("MOUNT"):m==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(d&&h!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ut(()=>{if(t){let l;const d=t.ownerDocument.defaultView??window,p=m=>{const f=Dr(r.current).includes(m.animationName);if(m.target===t&&f&&(c("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",l=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=m=>{m.target===t&&(i.current=Dr(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:g.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function Dr(e){return(e==null?void 0:e.animationName)||"none"}function R1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var O1=g[" useInsertionEffect ".trim().toString()]||ut;function uc({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=k1({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const d=g.useRef(e!==void 0);g.useEffect(()=>{const p=d.current;p!==a&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const l=g.useCallback(d=>{var p;if(a){const h=j1(d)?d(e):d;h!==e&&((p=s.current)==null||p.call(s,h))}else i(d)},[a,e,i,s]);return[c,l]}function k1({defaultProp:e,onChange:t}){const[n,r]=g.useState(e),o=g.useRef(n),i=g.useRef(t);return O1(()=>{i.current=t},[t]),g.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function j1(e){return typeof e=="function"}var D1=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),L1="VisuallyHidden",dc=g.forwardRef((e,t)=>u.jsx(ye.span,{...e,ref:t,style:{...D1,...e.style}}));dc.displayName=L1;var I1=dc,[Lr,Py]=qo("Tooltip",[tc]),Ir=tc(),fc="TooltipProvider",N1=700,di="tooltip.open",[$1,fi]=Lr(fc),hc=e=>{const{__scopeTooltip:t,delayDuration:n=N1,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=g.useRef(!0),a=g.useRef(!1),c=g.useRef(0);return g.useEffect(()=>{const l=c.current;return()=>window.clearTimeout(l)},[]),u.jsx($1,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:g.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:g.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:g.useCallback(l=>{a.current=l},[]),disableHoverableContent:o,children:i})};hc.displayName=fc;var Fn="Tooltip",[M1,Bn]=Lr(Fn),pc=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,c=fi(Fn,e.__scopeTooltip),l=Ir(t),[d,p]=g.useState(null),h=Cr(),m=g.useRef(0),w=s??c.disableHoverableContent,f=a??c.delayDuration,v=g.useRef(!1),[_,x]=uc({prop:r,defaultProp:o??!1,onChange:A=>{A?(c.onOpen(),document.dispatchEvent(new CustomEvent(di))):c.onClose(),i==null||i(A)},caller:Fn}),C=g.useMemo(()=>_?v.current?"delayed-open":"instant-open":"closed",[_]),S=g.useCallback(()=>{window.clearTimeout(m.current),m.current=0,v.current=!1,x(!0)},[x]),T=g.useCallback(()=>{window.clearTimeout(m.current),m.current=0,x(!1)},[x]),R=g.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{v.current=!0,x(!0),m.current=0},f)},[f,x]);return g.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),u.jsx(x1,{...l,children:u.jsx(M1,{scope:t,contentId:h,open:_,stateAttribute:C,trigger:d,onTriggerChange:p,onTriggerEnter:g.useCallback(()=>{c.isOpenDelayedRef.current?R():S()},[c.isOpenDelayedRef,R,S]),onTriggerLeave:g.useCallback(()=>{w?T():(window.clearTimeout(m.current),m.current=0)},[T,w]),onOpen:S,onClose:T,disableHoverableContent:w,children:n})})};pc.displayName=Fn;var hi="TooltipTrigger",mc=g.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Bn(hi,n),i=fi(hi,n),s=Ir(n),a=g.useRef(null),c=ke(t,a,o.onTriggerChange),l=g.useRef(!1),d=g.useRef(!1),p=g.useCallback(()=>l.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),u.jsx(C1,{asChild:!0,...s,children:u.jsx(ye.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:ve(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:ve(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:ve(e.onPointerDown,()=>{o.open&&o.onClose(),l.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:ve(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:ve(e.onBlur,o.onClose),onClick:ve(e.onClick,o.onClose)})})});mc.displayName=hi;var pi="TooltipPortal",[F1,B1]=Lr(pi,{forceMount:void 0}),gc=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=Bn(pi,t);return u.jsx(F1,{scope:t,forceMount:n,children:u.jsx(nn,{present:n||i.open,children:u.jsx(ui,{asChild:!0,container:o,children:r})})})};gc.displayName=pi;var rn="TooltipContent",vc=g.forwardRef((e,t)=>{const n=B1(rn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=Bn(rn,e.__scopeTooltip);return u.jsx(nn,{present:r||s.open,children:s.disableHoverableContent?u.jsx(yc,{side:o,...i,ref:t}):u.jsx(U1,{side:o,...i,ref:t})})}),U1=g.forwardRef((e,t)=>{const n=Bn(rn,e.__scopeTooltip),r=fi(rn,e.__scopeTooltip),o=g.useRef(null),i=ke(t,o),[s,a]=g.useState(null),{trigger:c,onClose:l}=n,d=o.current,{onPointerInTransitChange:p}=r,h=g.useCallback(()=>{a(null),p(!1)},[p]),m=g.useCallback((w,f)=>{const v=w.currentTarget,_={x:w.clientX,y:w.clientY},x=V1(_,v.getBoundingClientRect()),C=G1(_,x),S=q1(f.getBoundingClientRect()),T=Y1([...C,...S]);a(T),p(!0)},[p]);return g.useEffect(()=>()=>h(),[h]),g.useEffect(()=>{if(c&&d){const w=v=>m(v,d),f=v=>m(v,c);return c.addEventListener("pointerleave",w),d.addEventListener("pointerleave",f),()=>{c.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",f)}}},[c,d,m,h]),g.useEffect(()=>{if(s){const w=f=>{const v=f.target,_={x:f.clientX,y:f.clientY},x=(c==null?void 0:c.contains(v))||(d==null?void 0:d.contains(v)),C=!Q1(_,s);x?h():C&&(h(),l())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[c,d,s,l,h]),u.jsx(yc,{...e,ref:i})}),[z1,H1]=Lr(Fn,{isInside:!1}),W1=Mh("TooltipContent"),yc=g.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,c=Bn(rn,n),l=Ir(n),{onClose:d}=c;return g.useEffect(()=>(document.addEventListener(di,d),()=>document.removeEventListener(di,d)),[d]),g.useEffect(()=>{if(c.trigger){const p=h=>{const m=h.target;m!=null&&m.contains(c.trigger)&&d()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,d]),u.jsx(Yo,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:d,children:u.jsxs(E1,{"data-state":c.stateAttribute,...l,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(W1,{children:r}),u.jsx(z1,{scope:n,isInside:!0,children:u.jsx(I1,{id:c.contentId,role:"tooltip",children:o||r})})]})})});vc.displayName=rn;var bc="TooltipArrow",wc=g.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ir(n);return H1(bc,n).isInside?null:u.jsx(S1,{...o,...r,ref:t})});wc.displayName=bc;function V1(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function G1(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function q1(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Q1(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i],c=t[s],l=a.x,d=a.y,p=c.x,h=c.y;d>r!=h>r&&n<(p-l)*(r-d)/(h-d)+l&&(o=!o)}return o}function Y1(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),K1(t)}function K1(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Z1=hc,X1=pc,J1=mc,em=gc,tm=vc,nm=wc;const _c={tooltip:"tooltip__nUuSh",tooltipArrow:"tooltipArrow__W2w-f"},rm=E("Tooltip",({children:e,open:t,displayName:n,tooltipContent:r,className:o,disabled:i,delayDuration:s=300,side:a="right",sideOffset:c=0})=>{const[l,d]=L(!1),p=t!==void 0,m=i?!1:p?t:l,w=f=>{i||p||d(f)};return u.jsx(Z1,{delayDuration:s,children:u.jsxs(X1,{open:m,onOpenChange:w,children:[u.jsx(J1,{asChild:!0,children:e}),u.jsx(em,{children:u.jsxs(tm,{className:j(_c.tooltip,o),side:a,sideOffset:c,children:[n,r,u.jsx(nm,{className:_c.tooltipArrow})]})})]})})});rm.displayName="Tooltip";const xc={spinner:"spinner__qa7F6",rotate:"rotate__EqlXe","spinner-dark":"spinner-dark__9A9-q",spinnerDark:"spinner-dark__9A9-q","spinner-white":"spinner-white__gRbtI",spinnerWhite:"spinner-white__gRbtI","spinner-success":"spinner-success__otWGm",spinnerSuccess:"spinner-success__otWGm","spinner-danger":"spinner-danger__Bq5DM",spinnerDanger:"spinner-danger__Bq5DM","spinner-warning":"spinner-warning__U900K",spinnerWarning:"spinner-warning__U900K"},om=E("Spinner",({className:e,color:t="white",size:n=80,thickness:r})=>{const o=j(xc.spinner,xc[`spinner-${t}`],e),i=r??Math.max(n/12,2);return u.jsx("span",{style:{width:n,height:n,borderWidth:i},className:o})});om.displayName="Spinner";const Nr={switch:"switch__0b2av",disabled:"disabled__KpauE",checked:"checked__2-JV-",thumb:"thumb__fEuKD"},im=E("Switch",B(({checked:e,defaultChecked:t=!1,onCheckedChange:n,disabled:r=!1,id:o,className:i,name:s,"aria-label":a,"aria-labelledby":c,"aria-describedby":l,...d},p)=>{const[h,m]=Yn.useState(t),w=e!==void 0,f=w?!!e:h,v=()=>{if(r)return;const x=!f;w||m(x),n==null||n(x)},_=x=>{(x.key===" "||x.key==="Enter")&&(x.preventDefault(),v())};return u.jsx("button",{ref:p,type:"button",role:"switch","aria-checked":f,"aria-label":a,"aria-labelledby":c,"aria-describedby":l,disabled:r,id:o,name:s,className:j(Nr.switch,{[Nr.checked]:f,[Nr.disabled]:r}),onClick:v,onKeyDown:_,...d,children:u.jsx("span",{className:Nr.thumb,"aria-hidden":"true"})})}));im.displayName="Switch";const He={tabsRoot:"tabs-root__ELmdj",tabsList:"tabs-list__rc10N",tabsListHorizontal:"tabs-list--horizontal__e1YW4",tabsListVertical:"tabs-list--vertical__huK05",tabsTrigger:"tabs-trigger__D8R4R",tabsTriggerDisabled:"tabs-trigger--disabled__ezDWc",tabsTriggerHorizontal:"tabs-trigger--horizontal__4jBFV",tabsTriggerActive:"tabs-trigger--active__S-Z-S",tabsTriggerVertical:"tabs-trigger--vertical__dNVIZ",tabsContent:"tabs-content__1d77o"},Cc=Kn(null),mi=()=>{const e=Qt(Cc);if(!e)throw new Error("Tabs components must be used within a Tabs provider");return e},Zy=E("Tabs",({defaultValue:e,value:t,onValueChange:n,orientation:r="horizontal",className:o="",children:i})=>{const[s,a]=L(e||""),c=t!==void 0,l=c?t:s,d=p=>{c||a(p),n==null||n(p)};return u.jsx(Cc.Provider,{value:{value:l,onValueChange:d,orientation:r},children:u.jsx("div",{className:j(He.tabsRoot,o),children:i})})}),Xy=E("TabsList",({className:e="",children:t})=>{const{orientation:n}=mi(),r=ao(null),o=i=>{var l;const s=(l=r.current)==null?void 0:l.querySelectorAll('[role="tab"]:not([disabled])');if(!s)return;const a=Array.from(s).findIndex(d=>d===document.activeElement);let c=a;switch(i.key){case"ArrowLeft":n==="horizontal"&&(i.preventDefault(),c=a>0?a-1:s.length-1);break;case"ArrowRight":n==="horizontal"&&(i.preventDefault(),c=a<s.length-1?a+1:0);break;case"ArrowUp":n==="vertical"&&(i.preventDefault(),c=a>0?a-1:s.length-1);break;case"ArrowDown":n==="vertical"&&(i.preventDefault(),c=a<s.length-1?a+1:0);break;case"Home":i.preventDefault(),c=0;break;case"End":i.preventDefault(),c=s.length-1;break}if(c!==a){const d=s[c];d.focus(),d.click()}};return u.jsx("div",{ref:r,role:"tablist","aria-orientation":n,onKeyDown:o,className:j(He.tabsList,n==="horizontal"?He.tabsListHorizontal:He.tabsListVertical,e),children:t})}),Jy=E("TabsTrigger",({value:e,disabled:t=!1,className:n="",children:r})=>{const{value:o,onValueChange:i,orientation:s}=mi(),a=o===e,c=()=>{t||i(e)};return u.jsx("button",{role:"tab","aria-selected":a,"aria-controls":`content-${e}`,tabIndex:a?0:-1,disabled:t,onClick:c,className:j(He.tabsTrigger,s==="horizontal"?He.tabsTriggerHorizontal:He.tabsTriggerVertical,a&&He.tabsTriggerActive,t&&He.tabsTriggerDisabled,n),children:r})}),e0=E("TabsContent",({value:e,className:t="",children:n})=>{const{value:r}=mi();return r===e?u.jsx("div",{role:"tabpanel",id:`content-${e}`,"aria-labelledby":`trigger-${e}`,tabIndex:0,className:j(He.tabsContent,t),children:n}):null}),sm=E("EyeIcon",({className:e,state:t="open",onClick:n})=>t==="open"?u.jsxs("svg",{className:e,onClick:n,xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",viewBox:"0 0 14 14",fill:"none",children:[u.jsx("path",{d:"M1.41174 7.41635C1.3323 7.29056 1.29257 7.22766 1.27034 7.13065C1.25364 7.05778 1.25364 6.94287 1.27034 6.87C1.29257 6.77299 1.3323 6.71009 1.41174 6.58431C2.06823 5.54482 4.02232 2.91699 7.00024 2.91699C9.97815 2.91699 11.9322 5.54482 12.5887 6.5843C12.6682 6.71009 12.7079 6.77299 12.7301 6.87C12.7468 6.94287 12.7468 7.05778 12.7301 7.13065C12.7079 7.22766 12.6682 7.29056 12.5887 7.41635C11.9322 8.45584 9.97815 11.0837 7.00024 11.0837C4.02232 11.0837 2.06823 8.45584 1.41174 7.41635Z",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M7.00024 8.75033C7.96673 8.75033 8.75024 7.96682 8.75024 7.00033C8.75024 6.03383 7.96673 5.25033 7.00024 5.25033C6.03374 5.25033 5.25024 6.03383 5.25024 7.00033C5.25024 7.96682 6.03374 8.75033 7.00024 8.75033Z",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})]}):u.jsx("svg",{className:e,onClick:n,xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",viewBox:"0 0 14 14",fill:"none",children:u.jsx("path",{d:"M6.26672 2.97052C6.50379 2.93547 6.74835 2.91667 7.00024 2.91667C9.97816 2.91667 11.9323 5.54449 12.5887 6.58398C12.6682 6.70979 12.7079 6.7727 12.7302 6.86973C12.7469 6.94259 12.7468 7.05755 12.7301 7.13042C12.7079 7.22744 12.6679 7.29077 12.5879 7.41741C12.413 7.69425 12.1463 8.08331 11.793 8.50527M3.92252 3.9171C2.66131 4.77266 1.8051 5.9613 1.41231 6.58308C1.3325 6.70942 1.29259 6.7726 1.27035 6.86961C1.25364 6.94248 1.25363 7.05742 1.27033 7.13029C1.29257 7.22731 1.33229 7.29022 1.41174 7.41602C2.06823 8.45551 4.02232 11.0833 7.00024 11.0833C8.20098 11.0833 9.23526 10.6561 10.0851 10.078M1.75024 1.75L12.2502 12.25M5.76281 5.76256C5.44612 6.07925 5.25024 6.51675 5.25024 7C5.25024 7.9665 6.03374 8.75 7.00024 8.75C7.48349 8.75 7.92099 8.55413 8.23768 8.23744",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})})),Ec={PasswordInput:"PasswordInput__GDJDN",eyeIcon:"eyeIcon__kDExG"},r0=E("PasswordInput",B((e,t)=>{const[n,r]=L("password"),o=te(()=>{r(i=>i==="password"?"text":"password")},[r]);return u.jsxs("div",{className:j(Ec.PasswordInput,e.className),children:[u.jsx(zo,{type:n,...e,ref:t}),u.jsx(sm,{className:Ec.eyeIcon,onClick:o,state:n==="password"?"open":"closed"})]})}));var gi="focusScope.autoFocusOnMount",vi="focusScope.autoFocusOnUnmount",Sc={bubbles:!1,cancelable:!0},am="FocusScope",Tc=g.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,c]=g.useState(null),l=Zt(o),d=Zt(i),p=g.useRef(null),h=ke(t,f=>c(f)),m=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let f=function(C){if(m.paused||!a)return;const S=C.target;a.contains(S)?p.current=S:ht(p.current,{select:!0})},v=function(C){if(m.paused||!a)return;const S=C.relatedTarget;S!==null&&(a.contains(S)||ht(p.current,{select:!0}))},_=function(C){if(document.activeElement===document.body)for(const T of C)T.removedNodes.length>0&&ht(a)};document.addEventListener("focusin",f),document.addEventListener("focusout",v);const x=new MutationObserver(_);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",v),x.disconnect()}}},[r,a,m.paused]),g.useEffect(()=>{if(a){Rc.add(m);const f=document.activeElement;if(!a.contains(f)){const _=new CustomEvent(gi,Sc);a.addEventListener(gi,l),a.dispatchEvent(_),_.defaultPrevented||(cm(hm(Ac(a)),{select:!0}),document.activeElement===f&&ht(a))}return()=>{a.removeEventListener(gi,l),setTimeout(()=>{const _=new CustomEvent(vi,Sc);a.addEventListener(vi,d),a.dispatchEvent(_),_.defaultPrevented||ht(f??document.body,{select:!0}),a.removeEventListener(vi,d),Rc.remove(m)},0)}}},[a,l,d,m]);const w=g.useCallback(f=>{if(!n&&!r||m.paused)return;const v=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,_=document.activeElement;if(v&&_){const x=f.currentTarget,[C,S]=lm(x);C&&S?!f.shiftKey&&_===S?(f.preventDefault(),n&&ht(C,{select:!0})):f.shiftKey&&_===C&&(f.preventDefault(),n&&ht(S,{select:!0})):_===x&&f.preventDefault()}},[n,r,m.paused]);return u.jsx(ye.div,{tabIndex:-1,...s,ref:h,onKeyDown:w})});Tc.displayName=am;function cm(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ht(r,{select:t}),document.activeElement!==n)return}function lm(e){const t=Ac(e),n=Pc(t,e),r=Pc(t.reverse(),e);return[n,r]}function Ac(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Pc(e,t){for(const n of e)if(!um(n,{upTo:t}))return n}function um(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function dm(e){return e instanceof HTMLInputElement&&"select"in e}function ht(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&dm(e)&&t&&e.select()}}var Rc=fm();function fm(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Oc(e,t),e.unshift(t)},remove(t){var n;e=Oc(e,t),(n=e[0])==null||n.resume()}}}function Oc(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function hm(e){return e.filter(t=>t.tagName!=="A")}var yi=0;function pm(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??kc()),document.body.insertAdjacentElement("beforeend",e[1]??kc()),yi++,()=>{yi===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),yi--}},[])}function kc(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var $r="right-scroll-bar-position",Mr="width-before-scroll-bar",mm="with-scroll-bars-hidden",gm="--removed-body-scroll-bar-size";function bi(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function vm(e,t){var n=L(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var ym=typeof window<"u"?g.useLayoutEffect:g.useEffect,jc=new WeakMap;function bm(e,t){var n=vm(null,function(r){return e.forEach(function(o){return bi(o,r)})});return ym(function(){var r=jc.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||bi(a,null)}),i.forEach(function(a){o.has(a)||bi(a,s)})}jc.set(n,e)},[e]),n}function wm(e){return e}function _m(e,t){t===void 0&&(t=wm);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var c=function(){var d=s;s=[],d.forEach(i)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(d){s.push(d),l()},filter:function(d){return s=s.filter(d),n}}}};return o}function xm(e){e===void 0&&(e={});var t=_m(null);return t.options=Me({async:!0,ssr:!1},e),t}var Dc=function(e){var t=e.sideCar,n=ms(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return g.createElement(r,Me({},n))};Dc.isSideCarExport=!0;function Cm(e,t){return e.useMedium(t),Dc}var Lc=xm(),wi=function(){},Fr=g.forwardRef(function(e,t){var n=g.useRef(null),r=g.useState({onScrollCapture:wi,onWheelCapture:wi,onTouchMoveCapture:wi}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,d=e.enabled,p=e.shards,h=e.sideCar,m=e.noRelative,w=e.noIsolation,f=e.inert,v=e.allowPinchZoom,_=e.as,x=_===void 0?"div":_,C=e.gapMode,S=ms(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=h,R=bm([n,t]),A=Me(Me({},S),o);return g.createElement(g.Fragment,null,d&&g.createElement(T,{sideCar:Lc,removeScrollBar:l,shards:p,noRelative:m,noIsolation:w,inert:f,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:C}),s?g.cloneElement(g.Children.only(a),Me(Me({},A),{ref:R})):g.createElement(x,Me({},A,{className:c,ref:R}),a))});Fr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Fr.classNames={fullWidth:Mr,zeroRight:$r};var Em=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Sm(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Em();return t&&e.setAttribute("nonce",t),e}function Tm(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Am(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Pm=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Sm())&&(Tm(t,n),Am(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Rm=function(){var e=Pm();return function(t,n){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ic=function(){var e=Rm(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Om={left:0,top:0,right:0,gap:0},_i=function(e){return parseInt(e||"",10)||0},km=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[_i(n),_i(r),_i(o)]},jm=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Om;var t=km(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Dm=Ic(),on="data-scroll-locked",Lm=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
235
|
+
.`.concat(mm,` {
|
|
236
236
|
overflow: hidden `).concat(r,`;
|
|
237
237
|
padding-right: `).concat(a,"px ").concat(r,`;
|
|
238
238
|
}
|
|
239
|
-
body[`).concat(
|
|
239
|
+
body[`).concat(on,`] {
|
|
240
240
|
overflow: hidden `).concat(r,`;
|
|
241
241
|
overscroll-behavior: contain;
|
|
242
242
|
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
@@ -249,30 +249,30 @@ to {
|
|
|
249
249
|
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
.`).concat(
|
|
252
|
+
.`).concat($r,` {
|
|
253
253
|
right: `).concat(a,"px ").concat(r,`;
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
.`).concat(
|
|
256
|
+
.`).concat(Mr,` {
|
|
257
257
|
margin-right: `).concat(a,"px ").concat(r,`;
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
-
.`).concat(
|
|
260
|
+
.`).concat($r," .").concat($r,` {
|
|
261
261
|
right: 0 `).concat(r,`;
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
.`).concat(
|
|
264
|
+
.`).concat(Mr," .").concat(Mr,` {
|
|
265
265
|
margin-right: 0 `).concat(r,`;
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
body[`).concat(
|
|
269
|
-
`).concat(
|
|
268
|
+
body[`).concat(on,`] {
|
|
269
|
+
`).concat(gm,": ").concat(a,`px;
|
|
270
270
|
}
|
|
271
|
-
`)},Nc=function(){var e=parseInt(document.body.getAttribute(
|
|
271
|
+
`)},Nc=function(){var e=parseInt(document.body.getAttribute(on)||"0",10);return isFinite(e)?e:0},Im=function(){g.useEffect(function(){return document.body.setAttribute(on,(Nc()+1).toString()),function(){var e=Nc()-1;e<=0?document.body.removeAttribute(on):document.body.setAttribute(on,e.toString())}},[])},Nm=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Im();var i=g.useMemo(function(){return jm(o)},[o]);return g.createElement(Dm,{styles:Lm(i,!t,o,n?"":"!important")})},xi=!1;if(typeof window<"u")try{var Br=Object.defineProperty({},"passive",{get:function(){return xi=!0,!0}});window.addEventListener("test",Br,Br),window.removeEventListener("test",Br,Br)}catch{xi=!1}var sn=xi?{passive:!1}:!1,$m=function(e){return e.tagName==="TEXTAREA"},$c=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!$m(e)&&n[t]==="visible")},Mm=function(e){return $c(e,"overflowY")},Fm=function(e){return $c(e,"overflowX")},Mc=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Fc(e,r);if(o){var i=Bc(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Bm=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Um=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Fc=function(e,t){return e==="v"?Mm(t):Fm(t)},Bc=function(e,t){return e==="v"?Bm(t):Um(t)},zm=function(e,t){return e==="h"&&t==="rtl"?-1:1},Hm=function(e,t,n,r,o){var i=zm(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,c=t.contains(a),l=!1,d=s>0,p=0,h=0;do{if(!a)break;var m=Bc(e,a),w=m[0],f=m[1],v=m[2],_=f-v-i*w;(w||_)&&Fc(e,a)&&(p+=_,h+=w);var x=a.parentNode;a=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(d&&Math.abs(p)<1||!d&&Math.abs(h)<1)&&(l=!0),l},Ur=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Uc=function(e){return[e.deltaX,e.deltaY]},zc=function(e){return e&&"current"in e?e.current:e},Wm=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Vm=function(e){return`
|
|
272
272
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
273
273
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
274
|
-
`)},
|
|
274
|
+
`)},Gm=0,an=[];function qm(e){var t=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),o=g.useState(Gm++)[0],i=g.useState(Ic)[0],s=g.useRef(e);g.useEffect(function(){s.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var f=tr([e.lockRef.current],(e.shards||[]).map(zc),!0).filter(Boolean);return f.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=g.useCallback(function(f,v){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!s.current.allowPinchZoom;var _=Ur(f),x=n.current,C="deltaX"in f?f.deltaX:x[0]-_[0],S="deltaY"in f?f.deltaY:x[1]-_[1],T,R=f.target,A=Math.abs(C)>Math.abs(S)?"h":"v";if("touches"in f&&A==="h"&&R.type==="range")return!1;var N=Mc(A,R);if(!N)return!0;if(N?T=A:(T=A==="v"?"h":"v",N=Mc(A,R)),!N)return!1;if(!r.current&&"changedTouches"in f&&(C||S)&&(r.current=T),!T)return!0;var $=r.current||T;return Hm($,v,f,$==="h"?C:S)},[]),c=g.useCallback(function(f){var v=f;if(!(!an.length||an[an.length-1]!==i)){var _="deltaY"in v?Uc(v):Ur(v),x=t.current.filter(function(T){return T.name===v.type&&(T.target===v.target||v.target===T.shadowParent)&&Wm(T.delta,_)})[0];if(x&&x.should){v.cancelable&&v.preventDefault();return}if(!x){var C=(s.current.shards||[]).map(zc).filter(Boolean).filter(function(T){return T.contains(v.target)}),S=C.length>0?a(v,C[0]):!s.current.noIsolation;S&&v.cancelable&&v.preventDefault()}}},[]),l=g.useCallback(function(f,v,_,x){var C={name:f,delta:v,target:_,should:x,shadowParent:Qm(_)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(S){return S!==C})},1)},[]),d=g.useCallback(function(f){n.current=Ur(f),r.current=void 0},[]),p=g.useCallback(function(f){l(f.type,Uc(f),f.target,a(f,e.lockRef.current))},[]),h=g.useCallback(function(f){l(f.type,Ur(f),f.target,a(f,e.lockRef.current))},[]);g.useEffect(function(){return an.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",c,sn),document.addEventListener("touchmove",c,sn),document.addEventListener("touchstart",d,sn),function(){an=an.filter(function(f){return f!==i}),document.removeEventListener("wheel",c,sn),document.removeEventListener("touchmove",c,sn),document.removeEventListener("touchstart",d,sn)}},[]);var m=e.removeScrollBar,w=e.inert;return g.createElement(g.Fragment,null,w?g.createElement(i,{styles:Vm(o)}):null,m?g.createElement(Nm,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Qm(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ym=Cm(Lc,qm);var Hc=g.forwardRef(function(e,t){return g.createElement(Fr,Me({},e,{ref:t,sideCar:Ym}))});Hc.classNames=Fr.classNames;var Km=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},cn=new WeakMap,zr=new WeakMap,Hr={},Ci=0,Wc=function(e){return e&&(e.host||Wc(e.parentNode))},Zm=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Wc(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Xm=function(e,t,n,r){var o=Zm(t,Array.isArray(e)?e:[e]);Hr[n]||(Hr[n]=new WeakMap);var i=Hr[n],s=[],a=new Set,c=new Set(o),l=function(p){!p||a.has(p)||(a.add(p),l(p.parentNode))};o.forEach(l);var d=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(h){if(a.has(h))d(h);else try{var m=h.getAttribute(r),w=m!==null&&m!=="false",f=(cn.get(h)||0)+1,v=(i.get(h)||0)+1;cn.set(h,f),i.set(h,v),s.push(h),f===1&&w&&zr.set(h,!0),v===1&&h.setAttribute(n,"true"),w||h.setAttribute(r,"true")}catch(_){console.error("aria-hidden: cannot operate on ",h,_)}})};return d(t),a.clear(),Ci++,function(){s.forEach(function(p){var h=cn.get(p)-1,m=i.get(p)-1;cn.set(p,h),i.set(p,m),h||(zr.has(p)||p.removeAttribute(r),zr.delete(p)),m||p.removeAttribute(n)}),Ci--,Ci||(cn=new WeakMap,cn=new WeakMap,zr=new WeakMap,Hr={})}},Jm=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Km(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Xm(r,o,n,"aria-hidden")):function(){return null}},Wr="Dialog",[Vc,o0]=qo(Wr),[eg,Le]=Vc(Wr),Gc=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=g.useRef(null),c=g.useRef(null),[l,d]=uc({prop:r,defaultProp:o??!1,onChange:i,caller:Wr});return u.jsx(eg,{scope:t,triggerRef:a,contentRef:c,contentId:Cr(),titleId:Cr(),descriptionId:Cr(),open:l,onOpenChange:d,onOpenToggle:g.useCallback(()=>d(p=>!p),[d]),modal:s,children:n})};Gc.displayName=Wr;var qc="DialogTrigger",tg=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Le(qc,n),i=ke(t,o.triggerRef);return u.jsx(ye.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ti(o.open),...r,ref:i,onClick:ve(e.onClick,o.onOpenToggle)})});tg.displayName=qc;var Ei="DialogPortal",[ng,Qc]=Vc(Ei,{forceMount:void 0}),Yc=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Le(Ei,t);return u.jsx(ng,{scope:t,forceMount:n,children:g.Children.map(r,s=>u.jsx(nn,{present:n||i.open,children:u.jsx(ui,{asChild:!0,container:o,children:s})}))})};Yc.displayName=Ei;var Vr="DialogOverlay",Kc=g.forwardRef((e,t)=>{const n=Qc(Vr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Le(Vr,e.__scopeDialog);return i.modal?u.jsx(nn,{present:r||i.open,children:u.jsx(og,{...o,ref:t})}):null});Kc.displayName=Vr;var rg=Vo("DialogOverlay.RemoveScroll"),og=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Le(Vr,n);return u.jsx(Hc,{as:rg,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(ye.div,{"data-state":Ti(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),jt="DialogContent",Zc=g.forwardRef((e,t)=>{const n=Qc(jt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Le(jt,e.__scopeDialog);return u.jsx(nn,{present:r||i.open,children:i.modal?u.jsx(ig,{...o,ref:t}):u.jsx(sg,{...o,ref:t})})});Zc.displayName=jt;var ig=g.forwardRef((e,t)=>{const n=Le(jt,e.__scopeDialog),r=g.useRef(null),o=ke(t,n.contentRef,r);return g.useEffect(()=>{const i=r.current;if(i)return Jm(i)},[]),u.jsx(Xc,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ve(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:ve(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:ve(e.onFocusOutside,i=>i.preventDefault())})}),sg=g.forwardRef((e,t)=>{const n=Le(jt,e.__scopeDialog),r=g.useRef(!1),o=g.useRef(!1);return u.jsx(Xc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Xc=g.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=Le(jt,n),c=g.useRef(null),l=ke(t,c);return pm(),u.jsxs(u.Fragment,{children:[u.jsx(Tc,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:u.jsx(Yo,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Ti(a.open),...s,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(ag,{titleId:a.titleId}),u.jsx(lg,{contentRef:c,descriptionId:a.descriptionId})]})]})}),Si="DialogTitle",Jc=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Le(Si,n);return u.jsx(ye.h2,{id:o.titleId,...r,ref:t})});Jc.displayName=Si;var el="DialogDescription",tl=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Le(el,n);return u.jsx(ye.p,{id:o.descriptionId,...r,ref:t})});tl.displayName=el;var nl="DialogClose",rl=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Le(nl,n);return u.jsx(ye.button,{type:"button",...r,ref:t,onClick:ve(e.onClick,()=>o.onOpenChange(!1))})});rl.displayName=nl;function Ti(e){return e?"open":"closed"}var ol="DialogTitleWarning",[i0,il]=Hh(ol,{contentName:jt,titleName:Si,docsSlug:"dialog"}),ag=({titleId:e})=>{const t=il(ol),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
275
275
|
|
|
276
276
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
277
277
|
|
|
278
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return m.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},ag="DialogDescriptionWarning",cg=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${il(ag).contentName}}.`;return m.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},lg=Gc,ug=Yc,dg=Kc,fg=Zc,pg=Jc,hg=tl,mg=rl;const sl={Overlay:"Overlay__M5Z83",Content:"Content__wAkP4"},Dt={Header:"Header__VHxNf",Content:"Content__I04qM",Close:"Close__xSN-7",Title:"Title__Dznh6",Footer:"Footer__-8gzQ",Actions:"Actions__kKF2Q"},al=B(({children:e,className:t,...n},r)=>{const o=j(Dt.Header,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});al.displayName="Header";const cl=B(({children:e,className:t,...n},r)=>{const o=j(Dt.Content,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});cl.displayName="Content";const ll=B(({children:e,className:t,...n},r)=>{const o=j(Dt.Footer,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});ll.displayName="Footer";const ul=B(({children:e,className:t,...n},r)=>{const o=j(Dt.Title,t);return l.jsx(pg,{ref:r,className:o,...n,children:e})});ul.displayName="Title";const dl=B(({className:e,...t},n)=>{const r=j(Dt.Close,e);return l.jsx(mg,{ref:n,asChild:!0,className:r,...t,children:l.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M11 1L1 11M1 1L11 11",stroke:"#A9A9A9",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})});dl.displayName="Close";const fl=B(({children:e,className:t,...n},r)=>{const o=j(Dt.Actions,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});fl.displayName="Actions";const pl=B(({children:e,className:t,...n},r)=>{const o=j(Dt.Description,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});pl.displayName="Description";const pe=C("Dialog",({children:e,onClose:t,open:n=!1,className:r})=>{const o=()=>{t==null||t()};return l.jsx(lg,{onOpenChange:o,open:n,children:l.jsxs(ug,{children:[l.jsx(dg,{className:sl.Overlay}),l.jsxs(fg,{children:[l.jsx(hg,{}),l.jsx("div",{className:j(sl.Content,r),children:e})]})]})})});pe.displayName="Dialog",pe.Header=al,pe.Content=cl,pe.Footer=ll,pe.Actions=fl,pe.Title=ul,pe.Description=pl,pe.Close=dl;const hl={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"},f0=C("Pill",({children:e,variant:t="solid",className:n})=>{const r=j(hl.pill,hl[`pill--${t}`],n);return l.jsx("div",{className:r,children:e})}),ml={DialogContent:"DialogContent__-WjG9",Message:"Message__AUgVP"},gg=C("ConfirmDialog",({loading:e,title:t,children:n,className:r,onClose:o,onConfirm:i,...s})=>l.jsxs(pe,{...s,className:j(ml.DialogContent,r),children:[l.jsxs(pe.Header,{children:[l.jsx(pe.Title,{children:t}),l.jsx(pe.Close,{onClick:o})]}),l.jsx(pe.Content,{children:typeof n=="string"?l.jsx("p",{className:ml.Message,children:n}):n}),l.jsx(pe.Footer,{children:l.jsxs(pe.Actions,{children:[l.jsx(Bo,{onClick:o,disabled:e,variant:"outlined",children:"Cancel"}),l.jsx(Bo,{onClick:i,disabled:e,loading:e,variant:"contained",children:"Confirm"})]})})]}));gg.displayName="ConfirmDialog";const Wr={container:"container__AjtYJ",title:"title__A2vCu",description:"description__bP6Ig",mailToText:"mailToText__SdlsE"},gl=()=>l.jsxs("svg",{width:"200",height:"200",viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.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)"}),l.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)"}),l.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)"}),l.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)"}),l.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)"}),l.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)"}),l.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)"}),l.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)"}),l.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)"}),l.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)"}),l.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)"}),l.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)"}),l.jsx("path",{d:"M75.3224 76.1247C75.0193 75.9408 74.6477 76.3459 74.521 76.5695C74.1645 77.1991 73.808 77.8286 73.4515 78.4581C73.3144 78.7003 73.1605 79.1884 73.467 79.3744C73.77 79.5583 74.1416 79.1532 74.2684 78.9296C74.6248 78.3001 74.9814 77.6705 75.3378 77.0411C75.475 76.7988 75.6288 76.3107 75.3224 76.1247Z",fill:"var(--pae-shell-color-secondary)"})]});gl.displayName="WarningIcon";const vg="support@bluealba.com",yg="@bluealba/pae-shell-ui",vl=C("ErrorState",()=>{const{supportEmail:e=vg}=Eu(yg),t=`mailto:${e}?Subject=Support`;return l.jsxs("div",{className:Wr.container,children:[l.jsx(gl,{}),l.jsx("div",{className:Wr.title,children:"Oops! Something went wrong"}),l.jsxs("div",{className:Wr.description,children:["If the error persists, ",l.jsx("a",{className:Wr.mailToText,href:t,children:"contact the administrator."})]})]})});vl.displayName="ErrorState";const Ie={List:"List__h09XG",list:"List__h09XG",Item:"Item__YMy2i",item:"Item__YMy2i","List--primary":"List--primary__J2pbx",listPrimary:"List--primary__J2pbx","List--secondary":"List--secondary__gi1ao",listSecondary:"List--secondary__gi1ao","Item--selected":"Item--selected__yRWow",itemSelected:"Item--selected__yRWow",Title:"Title__RJmEW",title:"Title__RJmEW",Description:"Description__DGyX2",description:"Description__DGyX2",Actions:"Actions__UHP5l",actions:"Actions__UHP5l",Action:"Action__q-R1I",action:"Action__q-R1I","Item--disabled":"Item--disabled__Ke1u-",itemDisabled:"Item--disabled__Ke1u-","List--small":"List--small__ijoSR",listSmall:"List--small__ijoSR","List--medium":"List--medium__E1FEY",listMedium:"List--medium__E1FEY","List--large":"List--large__T8tfz",listLarge:"List--large__T8tfz",Icon:"Icon__dFr-L",icon:"Icon__dFr-L"},yl=B(({children:e,className:t,selected:n,disabled:r=!1,...o},i)=>{const s=j(Ie.Item,{[Ie["Item--selected"]]:n,[Ie["Item--disabled"]]:r},t);return l.jsx("li",{ref:i,className:s,role:"listitem","aria-disabled":r,...o,children:e})});yl.displayName="Item";const bl=B(({children:e,className:t,...n},r)=>{const o=j(Ie.Title,t);return l.jsx("h3",{ref:r,className:o,...n,children:e})});bl.displayName="Title";const wl=B(({children:e,className:t,...n},r)=>{const o=j(Ie.Description,t);return l.jsx("p",{ref:r,className:o,...n,children:e})});wl.displayName="Description";const Ti=({className:e,...t})=>l.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:[l.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"}),l.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"}),l.jsx("path",{d:"M2.5 6.5C2.77614 6.5 3 6.27614 3 6C3 5.72386 2.77614 5.5 2.5 5.5C2.22386 5.5 2 5.72386 2 6C2 6.27614 2.22386 6.5 2.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"})]});Ti.displayName="HorizontalDots";const _l=B(({children:e,className:t,onClick:n,...r},o)=>{const i=so(null),[s,a]=F(!1),c=j(Ie.Actions,t),u=()=>{const w=Yt["DropdownList--open"],f=Yt["DropdownList--closed"];document.querySelectorAll(`.${w}`).forEach(_=>{_!==i.current&&(_.classList.remove(w),_.classList.add(f))})},d=w=>{w.stopPropagation(),s?h():(a(!0),n==null||n(w))},h=()=>{a(!1)},p=w=>{w.key==="Escape"&&h()},g=w=>{i.current&&!i.current.contains(w.target)&&h()};return K(()=>(s?(u(),document.addEventListener("keydown",p),document.addEventListener("click",g)):(document.removeEventListener("keydown",p),document.removeEventListener("click",g)),()=>{document.removeEventListener("keydown",p),document.removeEventListener("click",g)}),[s]),l.jsxs("div",{ref:o,className:c,onClick:d,role:"button",tabIndex:0,"data-testid":"actions",...r,children:[l.jsx(Ti,{}),l.jsx(Ho,{align:"left",ref:i,open:s,"data-testid":"actions-dropdown",role:"menu","aria-label":"Actions",children:e})]})});_l.displayName="Actions";const xl=B(({children:e,className:t,...n},r)=>{const o=j(Ie.Action,t);return l.jsx("button",{ref:r,className:o,...n,children:e})});xl.displayName="Action";const Cl=B(({children:e,className:t,...n},r)=>{const o=j(Ie.Icon,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});Cl.displayName="Icon";const Xe=C("List",B(({children:e,className:t,size:n="medium",variant:r,...o},i)=>{const s=j(Ie.List,{[Ie[`List--${n}`]]:n,[Ie[`List--${r}`]]:r},t);return l.jsx("ul",{ref:i,className:s,role:"list",...o,children:e})}));Xe.displayName="List",Xe.Item=yl,Xe.Badges=ga,Xe.Badge=ma,Xe.Title=bl,Xe.Description=wl,Xe.Actions=_l,Xe.Action=xl,Xe.Icon=Cl;const Je={Navigation:"Navigation__uylxk",PaginationContent:"PaginationContent__UpLw0",PaginationEllipsis:"PaginationEllipsis__perWk",PaginationLink:"PaginationLink__GVUZj",Active:"Active__u1Ahy",Disabled:"Disabled__8WM0y",Prev:"Prev__wp4hc",Next:"Next__eVyL5"},El=({className:e,...t})=>l.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:[l.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),l.jsx("path",{d:"M9 6l6 6l-6 6"})]});El.displayName="ChevronRight";const Sl=({className:e,...t})=>l.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:[l.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),l.jsx("path",{d:"M15 6l-6 6l6 6"})]});Sl.displayName="ChevronLeft";const Tl=C("Pagination",({className:e,...t})=>l.jsx("nav",{role:"navigation","aria-label":"pagination",className:j(Je.Navigation,e),...t}));Tl.displayName="Pagination";const Al=C("PaginationContent",m.forwardRef(({className:e,...t},n)=>l.jsx("ul",{ref:n,className:j(Je.PaginationContent,e),...t})));Al.displayName="PaginationContent";const Vr=C("PaginationItem",m.forwardRef(({className:e,...t},n)=>l.jsx("li",{ref:n,className:e,...t})));Vr.displayName="PaginationItem";const Gr=C("PaginationLink",({className:e,isActive:t,...n})=>l.jsx("a",{"aria-current":t?"page":void 0,className:j(Je.PaginationLink,t&&Je.Active,e),...n}));Gr.displayName="PaginationLink";const Pl=C("PaginationPrevious",({className:e,disabled:t,...n})=>l.jsxs(Gr,{"aria-label":"Go to previous page",className:j(t&&Je.Disabled,Je.Prev,e),...n,children:[l.jsx(Sl,{}),l.jsx("span",{children:"Previous"})]}));Pl.displayName="PaginationPrevious";const Rl=C("PaginationNext",({className:e,disabled:t,...n})=>l.jsxs(Gr,{"aria-label":"Go to next page",className:j(t&&Je.Disabled,Je.Next,e),...n,children:[l.jsx("span",{children:"Next"}),l.jsx(El,{})]}));Rl.displayName="PaginationNext";const Ol=C("PaginationEllipsis",({className:e,...t})=>l.jsx("span",{"aria-hidden":!0,className:j(Je.PaginationEllipsis,e),...t,children:l.jsx(Ti,{})}));Ol.displayName="PaginationEllipsis";function bg(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var kl={exports:{}};(function(e,t){(function(n,r){typeof bg=="function"?e.exports=r():n.pluralize=r()})(vu,function(){var n=[],r=[],o={},i={},s={};function a(f){return typeof f=="string"?new RegExp("^"+f+"$","i"):f}function c(f,v){return f===v?v:f===f.toLowerCase()?v.toLowerCase():f===f.toUpperCase()?v.toUpperCase():f[0]===f[0].toUpperCase()?v.charAt(0).toUpperCase()+v.substr(1).toLowerCase():v.toLowerCase()}function u(f,v){return f.replace(/\$(\d{1,2})/g,function(_,x){return v[x]||""})}function d(f,v){return f.replace(v[0],function(_,x){var S=u(v[1],arguments);return c(_===""?f[x-1]:_,S)})}function h(f,v,_){if(!f.length||o.hasOwnProperty(f))return v;for(var x=_.length;x--;){var S=_[x];if(S[0].test(v))return d(v,S)}return v}function p(f,v,_){return function(x){var S=x.toLowerCase();return v.hasOwnProperty(S)?c(x,S):f.hasOwnProperty(S)?c(x,f[S]):h(S,x,_)}}function g(f,v,_,x){return function(S){var E=S.toLowerCase();return v.hasOwnProperty(E)?!0:f.hasOwnProperty(E)?!1:h(E,E,_)===E}}function w(f,v,_){var x=v===1?w.singular(f):w.plural(f);return(_?v+" ":"")+x}return w.plural=p(s,i,n),w.isPlural=g(s,i,n),w.singular=p(i,s,r),w.isSingular=g(i,s,r),w.addPluralRule=function(f,v){n.push([a(f),v])},w.addSingularRule=function(f,v){r.push([a(f),v])},w.addUncountableRule=function(f){if(typeof f=="string"){o[f.toLowerCase()]=!0;return}w.addPluralRule(f,"$0"),w.addSingularRule(f,"$0")},w.addIrregularRule=function(f,v){v=v.toLowerCase(),f=f.toLowerCase(),s[f]=v,i[v]=f},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(f){return w.addIrregularRule(f[0],f[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(f){return w.addPluralRule(f[0],f[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(f){return w.addSingularRule(f[0],f[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(w.addUncountableRule),w})})(kl);var wg=kl.exports;const _g=yu(wg),jl=C("PluralizeCounter",({count:e,singularText:t,children:n=(r,o)=>`${r} ${o}`})=>l.jsx(l.Fragment,{children:n(e,_g(t,e))}));jl.displayName="PluralizeCounter";const be={TableContainer:"TableContainer__osh6Z",TableHeader:"TableHeader__sYa-8",Table:"Table__2cIs3",selectable:"selectable__WsGg1",Cell:"Cell__ZEv-K",Right:"Right__YoM1V",Center:"Center__CF3tr",Sortable:"Sortable__JIV1V",SortIcon:"SortIcon__f0bBy",Active:"Active__rJjxB",Rotate:"Rotate__7cwTK",Pagination:"Pagination__sbqMP",PointerNone:"PointerNone__kQdQS"},Dl={EmptyStateContainer:"EmptyStateContainer__Q9FEb",Message:"Message__IHK6M"},Ll=({size:e=64})=>l.jsxs("svg",{width:e,height:e,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsxs("g",{clipPath:"url(#clip-path)",children:[l.jsx("mask",{id:"mask0_1070_8032",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"64",height:"64",children:l.jsx("path",{d:"M64 0H0V64H64V0Z",fill:"white"})}),l.jsx("g",{mask:"url(#mask0_1070_8032)",children:l.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"})})]}),l.jsx("defs",{children:l.jsx("clipPath",{id:"clip-path",children:l.jsx("rect",{width:"64",height:"64",fill:"white"})})})]});Ll.displayName="EmptyStateIcon";const Il=C("EmptyState",({message:e="No results found"})=>l.jsxs("div",{className:j(Dl.EmptyStateContainer),children:[l.jsx(Ll,{}),l.jsx("p",{className:Dl.Message,children:e})]}));Il.displayName="EmptyState";const xg=(e,t,n=1)=>{if(e<=1)return["1"];const r=[],o=i=>{(r.length===0||r[r.length-1]!==i)&&r.push(i)};o(1),t-n>2&&o("...");for(let i=Math.max(2,t-n);i<=Math.min(e-1,t+n);i++)o(i);return t+n<e-1&&o("..."),o(e),r.map(String)},Nl=({page:e,totalPages:t,onPageChange:n})=>{const r=e===1,o=e===t;return l.jsx(Tl,{className:be.Pagination,children:l.jsxs(Al,{children:[l.jsx(Vr,{children:l.jsx(Pl,{className:j({[be.PointerNone]:r}),onClick:()=>!r&&n(e-1)})}),xg(t,e).map((i,s)=>l.jsxs(Vr,{children:[i==="..."&&l.jsx(Ol,{}),i!=="..."&&l.jsx(Gr,{isActive:+i===e,onClick:()=>+i!==e&&n(+i),children:i})]},s)),l.jsx(Vr,{children:l.jsx(Rl,{className:j({[be.PointerNone]:o}),onClick:()=>!o&&n(e+1)})})]})})};Nl.displayName="TablePagination";const Ml=({className:e,...t})=>l.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:l.jsx("path",{d:"M6 2.5V9.5M6 9.5L9.5 6M6 9.5L2.5 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});Ml.displayName="ArrowDown";const Cg=C("Table",({columns:e,data:t,isLoading:n,totalCount:r=0,headerLabel:o,sort:i,loadingConfig:s,pagination:a,onRowClick:c})=>{const{count:u=5,height:d=40}=s||{},h=v=>v.sortName??v.name,p=v=>j({[be.Cell]:!0,[be.Center]:v.align==="center",[be.Right]:v.align==="right",[be.Sortable]:v.isSortable}),g=v=>{if(!i)return"";const _=h(v);return j({[be.SortIcon]:!0,[be.Active]:v.isSortable&&i.field===_,[be.Rotate]:i.field===_&&i.direction==="asc"})},w=v=>()=>c==null?void 0:c(v),f=v=>()=>{if(!i||!v.isSortable)return;const{field:_,direction:x,onSort:S}=i,E=h(v);_===E?S(E,x==="asc"?"desc":"asc"):S(E,"asc")};return l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:be.TableContainer,children:[o&&l.jsx("div",{className:be.TableHeader,children:l.jsx(jl,{count:r,singularText:o,children:(v,_)=>`${v} ${_}`})}),l.jsxs("table",{className:be.Table,children:[l.jsx("thead",{children:l.jsx("tr",{children:e.map(v=>l.jsx("th",{children:l.jsxs("div",{className:p(v),onClick:f(v),children:[l.jsx("span",{children:v.displayName}),v.isSortable&&l.jsx(Ml,{className:g(v)})]})},v.name))})}),l.jsx("tbody",{children:l.jsxs(Ot,{children:[l.jsx(Ot.When,{condition:n,children:[...Array(u).keys()].map(v=>l.jsx("tr",{children:l.jsx("td",{colSpan:e.length,style:{padding:4},children:l.jsx(Vo,{height:d})})},v))}),l.jsx(Ot.When,{condition:!t.length,children:l.jsx("tr",{children:l.jsx("td",{colSpan:e.length,children:l.jsx(Il,{})})})}),l.jsx(Ot.Else,{children:t.map((v,_)=>l.jsx("tr",{className:c&&be.selectable,onClick:w(v),children:e.map(x=>l.jsx("td",{style:x.width?{width:x.width}:{},children:l.jsx("div",{className:p(x),children:x.cellRenderer?x.cellRenderer(v):x.valueGetter?x.valueGetter(v):v[x.name]})},`${x.name}-${_}`))},_))})]})})]})]}),a&&l.jsx(Nl,{...a})]})});Cg.displayName="Table";const qr={alert:"alert__LblpE",default:"default__mgO6A",destructive:"destructive__bLNSM",alertTitle:"alertTitle__gblKf",alertDescription:"alertDescription__BuVHV"},Ai=C("Alert",({className:e,variant:t="default",children:n,...r})=>l.jsx("div",{"data-slot":"alert",role:"alert",className:j(qr.alert,qr[t],e),...r,children:n})),Eg=m.forwardRef(({children:e,className:t,...n},r)=>l.jsx("div",{ref:r,"data-slot":"alert-title",className:j(qr.alertTitle,t),...n,children:e})),Sg=m.forwardRef(({children:e,className:t,...n},r)=>l.jsx("div",{ref:r,"data-slot":"alert-description",className:j(qr.alertDescription,t),...n,children:e}));Ai.displayName="Alert",Ai.Title=Eg,Ai.Description=Sg;function $l(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 Qr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$l(Object(n),!0).forEach(function(r){Tg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$l(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fl(e){return(Fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function Tg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pi(e){return(Pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function Bl(e,t){var n;if(typeof(n=t.domElement?function(){return t.domElement}:t.domElementGetter?t.domElementGetter:e.domElementGetter?e.domElementGetter:function(r){var o=r.appName||r.name;if(!o)throw Error("single-spa's dom-element-getter-helpers was not given an application name as a prop, so it can't make a unique dom element container for the react application");var i="single-spa-application:".concat(o);return function(){var s=document.getElementById(i);return s||((s=document.createElement("div")).id=i,document.body.appendChild(s)),s}}(t))!="function")throw Error("single-spa's dom-element-getter-helpers was given an invalid domElementGetter for application or parcel '".concat(t.name,"'. Expected a function, received ").concat(Pi(n)));return function(){var r=n(t);if(!(r instanceof HTMLElement))throw Error("single-spa's dom-element-getter-helpers: domElementGetter returned an invalid dom element for application or parcel '".concat(t.name,"'. Expected HTMLElement, received ").concat(Pi(r)));return r}}var Bn=null;try{Bn=require("react").createContext()}catch{}var Ag={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 Pg(e){if(Fl(e)!=="object")throw new Error("single-spa-react requires a configuration object");var t,n=Qr(Qr({},Ag),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");!Bn&&n.React.createContext&&(Bn=n.React.createContext()),n.SingleSpaRoot=function(o){function i(s){i.displayName="SingleSpaRoot(".concat(s.name,")")}return i.prototype=Object.create(o.React.Component.prototype),i.prototype.componentDidMount=function(){setTimeout(this.props.mountFinished)},i.prototype.componentWillUnmount=function(){setTimeout(this.props.unmountFinished)},i.prototype.render=function(){return setTimeout(this.props.updateFinished),this.props.children},i}(n);var r={bootstrap:Rg.bind(null,n),mount:Og.bind(null,n),unmount:kg.bind(null,n)};return n.parcelCanUpdate&&(r.update=jg.bind(null,n)),r}function Rg(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then(function(n){e.rootComponent=n})}function Og(e,t){return new Promise(function(n,r){e.suppressComponentDidCatchWarning||!function(a){if(!(a&&typeof a.version=="string"&&a.version.indexOf(".")>=0))return!1;var c=a.version.slice(0,a.version.indexOf("."));try{return Number(c)>=16}catch{return!1}}(e.React)||e.errorBoundary||e.errorBoundaryClass||(e.rootComponent.prototype?e.rootComponent.prototype.componentDidCatch||console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire single-spa application.")):console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to singleSpaReact(opts).")));var o=Ul(e,t,function(){n(this)}),i=Bl(e,t)(),s=function(a){var c=a.reactDom,u=a.renderType,d=a.elementToRender,h=a.domElement,p=c[u];if(typeof p!="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=p(h);return g.render(d),g;case"hydrateRoot":return p(h,d);case"hydrate":default:return p(d,h),null}}({elementToRender:o,domElement:i,reactDom:Ri(e),renderType:Dg(e)});e.domElements[t.name]=i,e.renderResults[t.name]=s})}function kg(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 jg(e,t){return new Promise(function(n){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(n);var r=Ul(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(r);else{var i=Bl(e,t)();Ri(e).render(r,i)}})}function Ri(e){return e.ReactDOMClient||e.ReactDOM}function Dg(e){return typeof e.renderType=="function"?e.renderType():e.renderType}function Ul(e,t,n){var r=e.React.createElement(e.rootComponent,t),o=Bn?e.React.createElement(Bn.Provider,{value:t},r):r;return(e.errorBoundary||t.errorBoundary||e.errorBoundaryClass||t.errorBoundaryClass)&&(e.errorBoundaryClass=e.errorBoundaryClass||t.errorBoundaryClass||function(i,s){function a(c){i.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},a.displayName="SingleSpaReactErrorBoundary(".concat(c.name,")")}return a.prototype=Object.create(i.React.Component.prototype),a.prototype.render=function(){return this.state.caughtError?(i.errorBoundary||s.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},a.prototype.componentDidCatch=function(c,u){this.setState({caughtError:c,caughtErrorInfo:u})},a}(e,t),o=e.React.createElement(e.errorBoundaryClass,t,o)),o=e.React.createElement(e.SingleSpaRoot,Qr(Qr({},t),{},{mountFinished:n,updateFinished:function(){e.updateResolves[t.name]&&(e.updateResolves[t.name].forEach(function(i){return i()}),delete e.updateResolves[t.name])},unmountFinished:function(){e.unmountResolves[t.name]&&(e.unmountResolves[t.name](),delete e.unmountResolves[t.name])}}),o)}const Lg=e=>{const t=new jf;return function(r){if(!r)throw new Error("Microfrontend did not receive any properties !!");const o=os(r.module.name);return l.jsx(ns,{module:o,children:l.jsxs(Mf,{client:t,children:[l.jsx(e,{...r}),l.jsx(gf,{position:"top-right",reverseOrder:!0})]})})}},pb=C("initializeMicroFrontend",({rootComponent:e,...t})=>Pg({errorBoundary(n){return console.error(n),l.jsx(vl,{})},...t,rootComponent:Lg(e)})),hb=C("setupTestEnvironment",e=>{const t={authUser:{id:"testuser",username:"testuser",displayName:"Test User",applications:[]},catalog:[],authentication:{passwordMethodEnabled:!0,registerEnabled:!0,invitationsEnabled:!0,resetPasswordExpiration:3e4,passwordConstraints:{lowerCaseRequired:!1,upperCaseRequired:!1,symbolRequired:!1,digitRequired:!1,minLength:0,maxLength:8},sessionExpiration:864e5,jwtSecret:"",sessionIncludeOrigUser:!1,impersonationMode:"cookie",canImpersonateNonExistentUsers:!1,providers:[]},platformVersion:"0.0.0"};Object.defineProperty(window,An,{value:e?Qu(t,e):t})})}}});
|
|
278
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return g.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},cg="DialogDescriptionWarning",lg=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${il(cg).contentName}}.`;return g.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},ug=Gc,dg=Yc,fg=Kc,hg=Zc,pg=Jc,mg=tl,gg=rl;const sl={Overlay:"Overlay__M5Z83",Content:"Content__wAkP4"},Dt={Header:"Header__VHxNf",Content:"Content__I04qM",Close:"Close__xSN-7",Title:"Title__Dznh6",Footer:"Footer__-8gzQ",Actions:"Actions__kKF2Q"},al=B(({children:e,className:t,...n},r)=>{const o=j(Dt.Header,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});al.displayName="Header";const cl=B(({children:e,className:t,...n},r)=>{const o=j(Dt.Content,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});cl.displayName="Content";const ll=B(({children:e,className:t,...n},r)=>{const o=j(Dt.Footer,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});ll.displayName="Footer";const ul=B(({children:e,className:t,...n},r)=>{const o=j(Dt.Title,t);return u.jsx(pg,{ref:r,className:o,...n,children:e})});ul.displayName="Title";const dl=B(({className:e,...t},n)=>{const r=j(Dt.Close,e);return u.jsx(gg,{ref:n,asChild:!0,className:r,...t,children:u.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M11 1L1 11M1 1L11 11",stroke:"#A9A9A9",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})});dl.displayName="Close";const fl=B(({children:e,className:t,...n},r)=>{const o=j(Dt.Actions,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});fl.displayName="Actions";const hl=B(({children:e,className:t,...n},r)=>{const o=j(Dt.Description,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});hl.displayName="Description";const he=E("Dialog",({children:e,onClose:t,open:n=!1,className:r})=>{const o=()=>{t==null||t()};return u.jsx(ug,{onOpenChange:o,open:n,children:u.jsxs(dg,{children:[u.jsx(fg,{className:sl.Overlay}),u.jsxs(hg,{children:[u.jsx(mg,{}),u.jsx("div",{className:j(sl.Content,r),children:e})]})]})})});he.displayName="Dialog",he.Header=al,he.Content=cl,he.Footer=ll,he.Actions=fl,he.Title=ul,he.Description=hl,he.Close=dl;const pl={pill:"pill__vtGwB","pill--solid":"pill--solid__F-mR4",pillSolid:"pill--solid__F-mR4","pill--outline":"pill--outline__gC-mh",pillOutline:"pill--outline__gC-mh"},v0=E("Pill",({children:e,variant:t="solid",className:n})=>{const r=j(pl.pill,pl[`pill--${t}`],n);return u.jsx("div",{className:r,children:e})}),ml={DialogContent:"DialogContent__-WjG9",Message:"Message__AUgVP"},vg=E("ConfirmDialog",({loading:e,title:t,children:n,className:r,onClose:o,onConfirm:i,...s})=>u.jsxs(he,{...s,className:j(ml.DialogContent,r),children:[u.jsxs(he.Header,{children:[u.jsx(he.Title,{children:t}),u.jsx(he.Close,{onClick:o})]}),u.jsx(he.Content,{children:typeof n=="string"?u.jsx("p",{className:ml.Message,children:n}):n}),u.jsx(he.Footer,{children:u.jsxs(he.Actions,{children:[u.jsx(Uo,{onClick:o,disabled:e,variant:"outlined",children:"Cancel"}),u.jsx(Uo,{onClick:i,disabled:e,loading:e,variant:"contained",children:"Confirm"})]})})]}));vg.displayName="ConfirmDialog";const Gr={container:"container__AjtYJ",title:"title__A2vCu",description:"description__bP6Ig",mailToText:"mailToText__SdlsE"},gl=()=>u.jsxs("svg",{width:"200",height:"200",viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M184.415 152.221C183.936 151.406 183.401 150.621 182.892 149.824C181.61 147.817 180.327 145.809 179.045 143.801C177.102 140.759 175.159 137.717 173.215 134.676C170.766 130.841 168.316 127.006 165.866 123.171C163.068 118.79 160.27 114.41 157.472 110.03C154.484 105.352 151.496 100.674 148.508 95.9965C145.474 91.2464 142.439 86.4963 139.405 81.7463C136.513 77.2189 133.621 72.6915 130.729 68.1641C128.123 64.084 125.517 60.0039 122.91 55.9238C120.748 52.5389 118.586 49.1541 116.424 45.7692C114.864 43.3273 113.304 40.8854 111.744 38.4436C110.943 37.1899 110.142 35.9362 109.342 34.6825C108.765 33.7802 108.096 32.9744 107.292 32.2572C104.604 29.8584 100.572 29.2302 97.2301 30.5252C94.5951 31.5463 92.6177 33.3853 91.0923 35.7373C90.8768 36.0696 90.6658 36.405 90.4526 36.7387C89.3951 38.3941 88.3378 40.0494 87.2803 41.7049C85.5124 44.4725 83.7444 47.2402 81.9765 50.0079C79.644 53.6594 77.3114 57.3111 74.9788 60.9626C72.2632 65.2138 69.5477 69.465 66.8321 73.7162C63.8817 78.3349 60.9313 82.9536 57.9811 87.5722C54.9542 92.3106 51.9274 97.0491 48.9006 101.787C45.9557 106.398 43.0107 111.008 40.0658 115.618C37.3487 119.872 34.6316 124.125 31.9145 128.379C29.6106 131.986 27.3067 135.592 25.0028 139.199C23.2565 141.933 21.5101 144.667 19.7639 147.4C18.7335 149.013 17.7031 150.626 16.6728 152.239C14.8665 155.067 13.7231 158.171 14.23 161.595C14.9672 166.576 19.2366 170.131 24.2215 170.137C25.559 170.139 26.8963 170.137 28.2338 170.137C30.9198 170.137 33.6058 170.137 36.2918 170.137C40.0725 170.137 43.8533 170.137 47.6341 170.137C52.2557 170.137 56.8772 170.137 61.4989 170.137C66.7339 170.137 71.969 170.137 77.204 170.137C82.7467 170.137 88.2894 170.137 93.8322 170.137C99.4529 170.137 105.074 170.137 110.694 170.137C116.139 170.137 121.584 170.137 127.029 170.137C132.044 170.137 137.06 170.137 142.075 170.137C146.425 170.137 150.776 170.137 155.127 170.137C158.516 170.137 161.904 170.137 165.293 170.137C167.49 170.137 169.686 170.137 171.883 170.137C172.633 170.137 173.384 170.137 174.135 170.137C178.404 170.087 182.136 167.627 184.212 163.932C186.248 160.307 186.562 155.866 184.415 152.221ZM94.0937 37.3471C94.0897 37.3539 94.0862 37.3597 94.0824 37.3661C94.0826 37.3652 94.0831 37.3642 94.0833 37.3632C94.0844 37.3581 94.0909 37.3518 94.0937 37.3471ZM178.584 164.489C178.476 164.538 178.524 164.516 178.584 164.489V164.489ZM180.937 162.79C180.979 162.72 181.118 162.485 181.127 162.498C181.145 162.528 181.058 162.647 180.937 162.79ZM181.821 160.333C181.806 160.446 181.782 160.646 181.773 160.697C181.736 160.919 181.686 161.139 181.637 161.359C181.637 161.359 181.637 161.359 181.637 161.359C181.629 161.377 181.621 161.399 181.61 161.426C181.54 161.604 181.472 161.785 181.406 161.965C181.402 161.977 181.398 161.988 181.394 161.999C181.304 162.16 181.219 162.323 181.123 162.481C181.074 162.562 181.016 162.641 180.97 162.724C180.949 162.762 180.936 162.785 180.93 162.798C180.727 163.035 180.436 163.332 180.388 163.385C180.696 163.049 180.535 163.229 180.318 163.42C180.172 163.548 180.018 163.666 179.869 163.79C179.848 163.807 179.831 163.822 179.816 163.835C179.797 163.845 179.775 163.857 179.747 163.873C179.576 163.97 179.411 164.078 179.238 164.171C179.043 164.277 178.844 164.373 178.642 164.463C178.556 164.494 178.471 164.526 178.384 164.553C177.532 164.819 176.835 164.945 176.084 164.954C175.296 164.954 174.508 164.954 173.719 164.954C171.519 164.954 169.318 164.954 167.118 164.954C163.751 164.954 160.385 164.954 157.019 164.954C152.756 164.954 148.493 164.954 144.231 164.954C139.275 164.954 134.319 164.954 129.364 164.954C123.981 164.954 118.598 164.954 113.215 164.954C107.651 164.954 102.086 164.954 96.5224 164.954C91.024 164.954 85.5255 164.954 80.0271 164.954C74.8407 164.954 69.6543 164.954 64.4679 164.954C59.8401 164.954 55.2123 164.954 50.5846 164.954C46.7784 164.954 42.9721 164.954 39.166 164.954C36.3891 164.954 33.6122 164.954 30.8354 164.954C29.3555 164.954 27.8756 164.954 26.3957 164.954C25.9641 164.954 25.534 164.958 25.1029 164.922C23.4511 164.785 22.11 164.207 20.7626 163.127C20.3445 162.792 19.7301 162.074 19.3142 161.434C19.2096 161.273 19.1102 161.109 19.0161 160.942C18.9707 160.861 18.8013 160.534 18.8105 160.558C18.7451 160.414 18.5329 159.846 18.4422 159.537C18.3467 159.211 18.2692 158.879 18.2129 158.544C18.2174 158.545 18.1876 158.285 18.1815 158.192C18.1669 157.964 18.1617 157.736 18.1651 157.508C18.166 157.455 18.1793 157.245 18.185 157.131C18.2055 157.005 18.2441 156.74 18.2591 156.662C18.2913 156.493 18.3319 156.326 18.3726 156.16C18.2821 156.539 18.4099 156.072 18.4891 155.866C18.518 155.79 18.6652 155.487 18.6846 155.432C18.7383 155.339 18.7932 155.243 18.8125 155.21C18.8692 155.114 18.9282 155.019 18.9875 154.924C19.0003 154.904 19.0137 154.884 19.0265 154.863C19.2211 154.554 19.4201 154.247 19.617 153.939C20.6335 152.348 21.6501 150.756 22.6667 149.165C24.3869 146.472 26.107 143.779 27.8271 141.086C30.0848 137.552 32.3425 134.017 34.6001 130.483C37.2646 126.312 39.9291 122.141 42.5935 117.97C45.5011 113.418 48.4086 108.866 51.3161 104.315C54.3131 99.6229 57.31 94.9312 60.3069 90.2397C63.2394 85.6489 66.172 81.058 69.1045 76.4672C71.819 72.2178 74.5334 67.9683 77.2479 63.719C79.5904 60.0517 81.9331 56.3844 84.2756 52.7172C86.0852 49.8842 87.8948 47.0513 89.7044 44.2184C90.8459 42.4315 91.9873 40.6446 93.1287 38.8578C93.3976 38.4368 93.6701 38.0178 93.9356 37.5945C93.9507 37.5705 93.9737 37.5416 93.9972 37.511C93.8744 37.7231 94.1597 37.2638 94.301 37.0921C94.4017 36.9695 94.5483 36.8114 94.5423 36.8113C94.6372 36.721 94.7333 36.6319 94.8323 36.546C94.9866 36.4121 95.1478 36.2876 95.3084 36.1615C94.9392 36.4513 95.3917 36.1121 95.5441 36.0212C96.7591 35.2961 98.1095 34.9498 99.7068 35.0725C101.356 35.1993 102.702 35.7434 104.07 36.8307C104.685 37.3192 105.311 38.1542 105.817 38.9457C106.592 40.1592 107.367 41.3727 108.142 42.5862C109.667 44.9733 111.192 47.3605 112.717 49.7476C114.838 53.0679 116.959 56.3881 119.08 59.7083C121.629 63.6999 124.179 67.6913 126.729 71.6829C129.579 76.1455 132.43 80.6082 135.281 85.0709C138.267 89.7458 141.253 94.4206 144.239 99.0955C147.207 103.742 150.176 108.388 153.144 113.035C155.94 117.412 158.736 121.789 161.532 126.167C164.002 130.034 166.473 133.902 168.943 137.769C170.935 140.886 172.926 144.003 174.917 147.12C176.27 149.239 177.623 151.357 178.976 153.475C179.551 154.376 180.134 155.272 180.702 156.177C181.138 156.872 181.311 157.219 181.54 157.972C181.6 158.167 181.652 158.363 181.697 158.561C181.711 158.623 181.759 158.873 181.78 158.97C181.787 159.063 181.815 159.319 181.819 159.383C181.831 159.579 181.836 159.775 181.834 159.972C181.834 160.022 181.825 160.217 181.821 160.333Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M98.5821 122.507C99.019 122.759 99.6307 122.629 100.038 122.389C101.205 121.703 101.925 120.275 102.041 118.92C103.115 106.361 106.514 75.1051 106.514 68.3062C106.514 59.902 92.8134 60.6835 92.0664 71.3279C91.6887 76.7103 97.5083 119.581 97.8266 121.187C97.9188 121.652 98.1423 122.253 98.5821 122.507Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M101.841 133.945C101.826 133.94 101.812 133.934 101.797 133.929C98.2767 132.6 94.4012 134.976 93.9964 138.717C93.9765 138.901 93.9636 139.086 93.958 139.272C93.8552 142.712 96.4467 146.126 99.8464 146.664C103.245 147.201 106.896 144.494 107.099 141.059C107.285 137.909 104.789 135.072 101.841 133.945Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M161.729 131.662C161.873 131.367 162.082 130.81 161.71 130.584C161.365 130.375 160.901 130.836 160.768 131.107C156.804 139.201 152.84 147.295 148.877 155.389C147.759 157.67 146.642 159.952 145.525 162.233C145.38 162.528 145.171 163.085 145.543 163.311C145.888 163.52 146.352 163.059 146.485 162.788C150.449 154.694 154.413 146.6 158.377 138.506C159.494 136.225 160.611 133.943 161.729 131.662Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M144.786 152.64C144.441 152.43 143.977 152.891 143.844 153.163C142.363 156.187 140.882 159.21 139.402 162.234C139.257 162.528 139.048 163.085 139.42 163.311C139.765 163.521 140.229 163.06 140.362 162.788C141.843 159.764 143.323 156.741 144.804 153.717C144.948 153.423 145.158 152.866 144.786 152.64Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M136.792 156.459C136.447 156.25 135.983 156.711 135.85 156.982C134.993 158.733 134.136 160.483 133.279 162.233C133.134 162.528 132.925 163.085 133.297 163.311C133.642 163.52 134.106 163.06 134.239 162.788C135.096 161.037 135.953 159.287 136.81 157.537C136.955 157.242 137.164 156.685 136.792 156.459Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M129.1 159.663C128.755 159.454 128.291 159.915 128.158 160.186C127.824 160.869 127.49 161.551 127.155 162.234C127.011 162.528 126.802 163.086 127.174 163.311C127.519 163.521 127.983 163.06 128.116 162.788C128.45 162.106 128.784 161.423 129.118 160.741C129.263 160.447 129.472 159.889 129.1 159.663Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M165.835 137.946C165.979 137.652 166.188 137.094 165.816 136.868C165.471 136.659 165.007 137.12 164.874 137.392C161.72 143.832 158.566 150.273 155.412 156.713C154.511 158.553 153.609 160.393 152.708 162.233C152.564 162.528 152.355 163.085 152.726 163.311C153.071 163.52 153.535 163.06 153.669 162.788C156.823 156.347 159.977 149.907 163.131 143.466C164.032 141.626 164.933 139.786 165.835 137.946Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M169.923 143.153C169.578 142.943 169.114 143.404 168.98 143.676C165.951 149.862 162.921 156.048 159.892 162.234C159.748 162.528 159.538 163.086 159.91 163.311C160.255 163.521 160.719 163.06 160.852 162.788C163.882 156.602 166.911 150.416 169.941 144.23C170.085 143.936 170.294 143.378 169.923 143.153Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M174.332 148.821C173.987 148.611 173.523 149.072 173.39 149.344C171.286 153.64 169.182 157.937 167.077 162.234C166.933 162.528 166.724 163.086 167.095 163.311C167.44 163.521 167.905 163.06 168.038 162.788C170.142 158.492 172.246 154.195 174.351 149.898C174.495 149.604 174.704 149.046 174.332 148.821Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M178.197 155.597C177.852 155.387 177.388 155.848 177.255 156.12C176.257 158.158 175.259 160.196 174.261 162.233C174.117 162.528 173.907 163.085 174.279 163.311C174.624 163.52 175.088 163.06 175.221 162.788C176.219 160.75 177.217 158.712 178.215 156.674C178.36 156.38 178.569 155.823 178.197 155.597Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M97.1962 40.2135C97.3477 39.9803 97.4773 39.477 97.1807 39.2971C96.8678 39.1072 96.5194 39.5265 96.3794 39.7419C94.7034 42.3205 93.0556 44.9176 91.4179 47.5205C88.1743 52.6759 84.976 57.8633 81.9271 63.1367C80.4155 65.7509 78.9283 68.3855 77.5879 71.0925C77.4642 71.3423 77.2879 71.8174 77.6034 72.0088C77.8975 72.1874 78.2905 71.7947 78.4047 71.564C80.9657 66.3919 83.9726 61.4308 86.9671 56.5018C89.7369 51.9427 92.5713 47.4226 95.4474 42.9297C96.0279 42.0228 96.6094 41.1164 97.1962 40.2135Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M75.3224 76.1247C75.0193 75.9408 74.6477 76.3459 74.521 76.5695C74.1645 77.1991 73.808 77.8286 73.4515 78.4581C73.3144 78.7003 73.1605 79.1884 73.467 79.3744C73.77 79.5583 74.1416 79.1532 74.2684 78.9296C74.6248 78.3001 74.9814 77.6705 75.3378 77.0411C75.475 76.7988 75.6288 76.3107 75.3224 76.1247Z",fill:"var(--pae-shell-color-secondary)"})]});gl.displayName="WarningIcon";const yg="support@bluealba.com",bg="@bluealba/pae-shell-ui",vl=E("ErrorState",()=>{const{supportEmail:e=yg}=Su(bg),t=`mailto:${e}?Subject=Support`;return u.jsxs("div",{className:Gr.container,children:[u.jsx(gl,{}),u.jsx("div",{className:Gr.title,children:"Oops! Something went wrong"}),u.jsxs("div",{className:Gr.description,children:["If the error persists, ",u.jsx("a",{className:Gr.mailToText,href:t,children:"contact the administrator."})]})]})});vl.displayName="ErrorState";const Ie={List:"List__h09XG",list:"List__h09XG",Item:"Item__YMy2i",item:"Item__YMy2i","List--primary":"List--primary__J2pbx",listPrimary:"List--primary__J2pbx","List--secondary":"List--secondary__gi1ao",listSecondary:"List--secondary__gi1ao","Item--selected":"Item--selected__yRWow",itemSelected:"Item--selected__yRWow",Title:"Title__RJmEW",title:"Title__RJmEW",Description:"Description__DGyX2",description:"Description__DGyX2",Actions:"Actions__UHP5l",actions:"Actions__UHP5l",Action:"Action__q-R1I",action:"Action__q-R1I","Item--disabled":"Item--disabled__Ke1u-",itemDisabled:"Item--disabled__Ke1u-","List--small":"List--small__ijoSR",listSmall:"List--small__ijoSR","List--medium":"List--medium__E1FEY",listMedium:"List--medium__E1FEY","List--large":"List--large__T8tfz",listLarge:"List--large__T8tfz",Icon:"Icon__dFr-L",icon:"Icon__dFr-L"},yl=B(({children:e,className:t,selected:n,disabled:r=!1,...o},i)=>{const s=j(Ie.Item,{[Ie["Item--selected"]]:n,[Ie["Item--disabled"]]:r},t);return u.jsx("li",{ref:i,className:s,role:"listitem","aria-disabled":r,...o,children:e})});yl.displayName="Item";const bl=B(({children:e,className:t,...n},r)=>{const o=j(Ie.Title,t);return u.jsx("h3",{ref:r,className:o,...n,children:e})});bl.displayName="Title";const wl=B(({children:e,className:t,...n},r)=>{const o=j(Ie.Description,t);return u.jsx("p",{ref:r,className:o,...n,children:e})});wl.displayName="Description";const Ai=({className:e,...t})=>u.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:[u.jsx("path",{d:"M6 6.5C6.27614 6.5 6.5 6.27614 6.5 6C6.5 5.72386 6.27614 5.5 6 5.5C5.72386 5.5 5.5 5.72386 5.5 6C5.5 6.27614 5.72386 6.5 6 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M9.5 6.5C9.77614 6.5 10 6.27614 10 6C10 5.72386 9.77614 5.5 9.5 5.5C9.22386 5.5 9 5.72386 9 6C9 6.27614 9.22386 6.5 9.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M2.5 6.5C2.77614 6.5 3 6.27614 3 6C3 5.72386 2.77614 5.5 2.5 5.5C2.22386 5.5 2 5.72386 2 6C2 6.27614 2.22386 6.5 2.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"})]});Ai.displayName="HorizontalDots";const _l=B(({children:e,className:t,onClick:n,...r},o)=>{const i=ao(null),[s,a]=L(!1),c=j(Ie.Actions,t),l=()=>{const w=Kt["DropdownList--open"],f=Kt["DropdownList--closed"];document.querySelectorAll(`.${w}`).forEach(_=>{_!==i.current&&(_.classList.remove(w),_.classList.add(f))})},d=w=>{w.stopPropagation(),s?p():(a(!0),n==null||n(w))},p=()=>{a(!1)},h=w=>{w.key==="Escape"&&p()},m=w=>{i.current&&!i.current.contains(w.target)&&p()};return Q(()=>(s?(l(),document.addEventListener("keydown",h),document.addEventListener("click",m)):(document.removeEventListener("keydown",h),document.removeEventListener("click",m)),()=>{document.removeEventListener("keydown",h),document.removeEventListener("click",m)}),[s]),u.jsxs("div",{ref:o,className:c,onClick:d,role:"button",tabIndex:0,"data-testid":"actions",...r,children:[u.jsx(Ai,{}),u.jsx(Wo,{align:"left",ref:i,open:s,"data-testid":"actions-dropdown",role:"menu","aria-label":"Actions",children:e})]})});_l.displayName="Actions";const xl=B(({children:e,className:t,...n},r)=>{const o=j(Ie.Action,t);return u.jsx("button",{ref:r,className:o,...n,children:e})});xl.displayName="Action";const Cl=B(({children:e,className:t,...n},r)=>{const o=j(Ie.Icon,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});Cl.displayName="Icon";const Xe=E("List",B(({children:e,className:t,size:n="medium",variant:r,...o},i)=>{const s=j(Ie.List,{[Ie[`List--${n}`]]:n,[Ie[`List--${r}`]]:r},t);return u.jsx("ul",{ref:i,className:s,role:"list",...o,children:e})}));Xe.displayName="List",Xe.Item=yl,Xe.Badges=ga,Xe.Badge=ma,Xe.Title=bl,Xe.Description=wl,Xe.Actions=_l,Xe.Action=xl,Xe.Icon=Cl;const Je={Navigation:"Navigation__uylxk",PaginationContent:"PaginationContent__UpLw0",PaginationEllipsis:"PaginationEllipsis__perWk",PaginationLink:"PaginationLink__GVUZj",Active:"Active__u1Ahy",Disabled:"Disabled__8WM0y",Prev:"Prev__wp4hc",Next:"Next__eVyL5"},El=({className:e,...t})=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...t,children:[u.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M9 6l6 6l-6 6"})]});El.displayName="ChevronRight";const Sl=({className:e,...t})=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...t,children:[u.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M15 6l-6 6l6 6"})]});Sl.displayName="ChevronLeft";const Tl=E("Pagination",({className:e,...t})=>u.jsx("nav",{role:"navigation","aria-label":"pagination",className:j(Je.Navigation,e),...t}));Tl.displayName="Pagination";const Al=E("PaginationContent",g.forwardRef(({className:e,...t},n)=>u.jsx("ul",{ref:n,className:j(Je.PaginationContent,e),...t})));Al.displayName="PaginationContent";const qr=E("PaginationItem",g.forwardRef(({className:e,...t},n)=>u.jsx("li",{ref:n,className:e,...t})));qr.displayName="PaginationItem";const Qr=E("PaginationLink",({className:e,isActive:t,...n})=>u.jsx("a",{"aria-current":t?"page":void 0,className:j(Je.PaginationLink,t&&Je.Active,e),...n}));Qr.displayName="PaginationLink";const Pl=E("PaginationPrevious",({className:e,disabled:t,...n})=>u.jsxs(Qr,{"aria-label":"Go to previous page",className:j(t&&Je.Disabled,Je.Prev,e),...n,children:[u.jsx(Sl,{}),u.jsx("span",{children:"Previous"})]}));Pl.displayName="PaginationPrevious";const Rl=E("PaginationNext",({className:e,disabled:t,...n})=>u.jsxs(Qr,{"aria-label":"Go to next page",className:j(t&&Je.Disabled,Je.Next,e),...n,children:[u.jsx("span",{children:"Next"}),u.jsx(El,{})]}));Rl.displayName="PaginationNext";const Ol=E("PaginationEllipsis",({className:e,...t})=>u.jsx("span",{"aria-hidden":!0,className:j(Je.PaginationEllipsis,e),...t,children:u.jsx(Ai,{})}));Ol.displayName="PaginationEllipsis";function wg(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var kl={exports:{}};(function(e,t){(function(n,r){typeof wg=="function"?e.exports=r():n.pluralize=r()})(yu,function(){var n=[],r=[],o={},i={},s={};function a(f){return typeof f=="string"?new RegExp("^"+f+"$","i"):f}function c(f,v){return f===v?v:f===f.toLowerCase()?v.toLowerCase():f===f.toUpperCase()?v.toUpperCase():f[0]===f[0].toUpperCase()?v.charAt(0).toUpperCase()+v.substr(1).toLowerCase():v.toLowerCase()}function l(f,v){return f.replace(/\$(\d{1,2})/g,function(_,x){return v[x]||""})}function d(f,v){return f.replace(v[0],function(_,x){var C=l(v[1],arguments);return c(_===""?f[x-1]:_,C)})}function p(f,v,_){if(!f.length||o.hasOwnProperty(f))return v;for(var x=_.length;x--;){var C=_[x];if(C[0].test(v))return d(v,C)}return v}function h(f,v,_){return function(x){var C=x.toLowerCase();return v.hasOwnProperty(C)?c(x,C):f.hasOwnProperty(C)?c(x,f[C]):p(C,x,_)}}function m(f,v,_,x){return function(C){var S=C.toLowerCase();return v.hasOwnProperty(S)?!0:f.hasOwnProperty(S)?!1:p(S,S,_)===S}}function w(f,v,_){var x=v===1?w.singular(f):w.plural(f);return(_?v+" ":"")+x}return w.plural=h(s,i,n),w.isPlural=m(s,i,n),w.singular=h(i,s,r),w.isSingular=m(i,s,r),w.addPluralRule=function(f,v){n.push([a(f),v])},w.addSingularRule=function(f,v){r.push([a(f),v])},w.addUncountableRule=function(f){if(typeof f=="string"){o[f.toLowerCase()]=!0;return}w.addPluralRule(f,"$0"),w.addSingularRule(f,"$0")},w.addIrregularRule=function(f,v){v=v.toLowerCase(),f=f.toLowerCase(),s[f]=v,i[v]=f},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(f){return w.addIrregularRule(f[0],f[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(f){return w.addPluralRule(f[0],f[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(f){return w.addSingularRule(f[0],f[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(w.addUncountableRule),w})})(kl);var _g=kl.exports;const xg=bu(_g),jl=E("PluralizeCounter",({count:e,singularText:t,children:n=(r,o)=>`${r} ${o}`})=>u.jsx(u.Fragment,{children:n(e,xg(t,e))}));jl.displayName="PluralizeCounter";const be={TableContainer:"TableContainer__osh6Z",TableHeader:"TableHeader__sYa-8",Table:"Table__2cIs3",selectable:"selectable__WsGg1",Cell:"Cell__ZEv-K",Right:"Right__YoM1V",Center:"Center__CF3tr",Sortable:"Sortable__JIV1V",SortIcon:"SortIcon__f0bBy",Active:"Active__rJjxB",Rotate:"Rotate__7cwTK",Pagination:"Pagination__sbqMP",PointerNone:"PointerNone__kQdQS"},Dl={EmptyStateContainer:"EmptyStateContainer__Q9FEb",Message:"Message__IHK6M"},Ll=({size:e=64})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsxs("g",{clipPath:"url(#clip-path)",children:[u.jsx("mask",{id:"mask0_1070_8032",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"64",height:"64",children:u.jsx("path",{d:"M64 0H0V64H64V0Z",fill:"white"})}),u.jsx("g",{mask:"url(#mask0_1070_8032)",children:u.jsx("path",{d:"M40 10.6673H13.3333V53.334H50.6667V21.334H40V10.6673ZM8 7.97932C8 6.51798 9.192 5.33398 10.664 5.33398H42.6667L56 18.6673V55.982C56.0024 56.3321 55.936 56.6793 55.8043 57.0039C55.6725 57.3284 55.4781 57.6239 55.2323 57.8732C54.9864 58.1225 54.6936 58.3209 54.3712 58.4572C54.0485 58.5935 53.7021 58.6649 53.352 58.6673H10.648C9.94768 58.6625 9.27739 58.3823 8.78192 57.8873C8.28645 57.3924 8.00557 56.7223 8 56.022V7.97932ZM36.0773 38.5233C33.8408 39.83 31.2056 40.2788 28.6627 39.786C26.1197 39.2929 23.8428 37.8921 22.2566 35.8444C20.6704 33.7966 19.883 31.2417 20.0414 28.6564C20.1998 26.071 21.293 23.6315 23.1173 21.7927C24.9532 19.9571 27.3955 18.8541 29.9864 18.6904C32.5773 18.5267 35.1389 19.3134 37.1912 20.9032C39.2435 22.493 40.6456 24.7767 41.1347 27.3263C41.6237 29.8759 41.1664 32.5164 39.848 34.7527L45.7413 40.646L41.9707 44.4193L36.0773 38.5233ZM34.4293 33.1047C34.9387 32.6126 35.3451 32.0241 35.6245 31.3735C35.904 30.7228 36.0512 30.0231 36.0573 29.3148C36.0635 28.6065 35.9285 27.9044 35.6603 27.2489C35.3923 26.5935 34.9963 25.998 34.4955 25.4972C33.9947 24.9964 33.3992 24.6004 32.7437 24.3323C32.0883 24.0641 31.3861 23.9292 30.6779 23.9353C29.9696 23.9415 29.2699 24.0886 28.6192 24.3681C27.9685 24.6476 27.38 25.0539 26.888 25.5633C25.9165 26.5692 25.3789 27.9164 25.3911 29.3148C25.4032 30.7132 25.9641 32.0508 26.9531 33.0396C27.9419 34.0287 29.2795 34.5895 30.6779 34.6015C32.0763 34.6137 33.4235 34.0761 34.4293 33.1047Z",fill:"currentColor"})})]}),u.jsx("defs",{children:u.jsx("clipPath",{id:"clip-path",children:u.jsx("rect",{width:"64",height:"64",fill:"white"})})})]});Ll.displayName="EmptyStateIcon";const Il=E("EmptyState",({message:e="No results found"})=>u.jsxs("div",{className:j(Dl.EmptyStateContainer),children:[u.jsx(Ll,{}),u.jsx("p",{className:Dl.Message,children:e})]}));Il.displayName="EmptyState";const Cg=(e,t,n=1)=>{if(e<=1)return["1"];const r=[],o=i=>{(r.length===0||r[r.length-1]!==i)&&r.push(i)};o(1),t-n>2&&o("...");for(let i=Math.max(2,t-n);i<=Math.min(e-1,t+n);i++)o(i);return t+n<e-1&&o("..."),o(e),r.map(String)},Nl=({page:e,totalPages:t,onPageChange:n})=>{const r=e===1,o=e===t;return u.jsx(Tl,{className:be.Pagination,children:u.jsxs(Al,{children:[u.jsx(qr,{children:u.jsx(Pl,{className:j({[be.PointerNone]:r}),onClick:()=>!r&&n(e-1)})}),Cg(t,e).map((i,s)=>u.jsxs(qr,{children:[i==="..."&&u.jsx(Ol,{}),i!=="..."&&u.jsx(Qr,{isActive:+i===e,onClick:()=>+i!==e&&n(+i),children:i})]},s)),u.jsx(qr,{children:u.jsx(Rl,{className:j({[be.PointerNone]:o}),onClick:()=>!o&&n(e+1)})})]})})};Nl.displayName="TablePagination";const $l=({className:e,...t})=>u.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:u.jsx("path",{d:"M6 2.5V9.5M6 9.5L9.5 6M6 9.5L2.5 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});$l.displayName="ArrowDown";const Eg=E("Table",({columns:e,data:t,isLoading:n,totalCount:r=0,headerLabel:o,sort:i,loadingConfig:s,pagination:a,onRowClick:c})=>{const{count:l=5,height:d=40}=s||{},p=v=>v.sortName??v.name,h=v=>j({[be.Cell]:!0,[be.Center]:v.align==="center",[be.Right]:v.align==="right",[be.Sortable]:v.isSortable}),m=v=>{if(!i)return"";const _=p(v);return j({[be.SortIcon]:!0,[be.Active]:v.isSortable&&i.field===_,[be.Rotate]:i.field===_&&i.direction==="asc"})},w=v=>()=>c==null?void 0:c(v),f=v=>()=>{if(!i||!v.isSortable)return;const{field:_,direction:x,onSort:C}=i,S=p(v);_===S?C(S,x==="asc"?"desc":"asc"):C(S,"asc")};return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:be.TableContainer,children:[o&&u.jsx("div",{className:be.TableHeader,children:u.jsx(jl,{count:r,singularText:o,children:(v,_)=>`${v} ${_}`})}),u.jsxs("table",{className:be.Table,children:[u.jsx("thead",{children:u.jsx("tr",{children:e.map(v=>u.jsx("th",{children:u.jsxs("div",{className:h(v),onClick:f(v),children:[u.jsx("span",{children:v.displayName}),v.isSortable&&u.jsx($l,{className:m(v)})]})},v.name))})}),u.jsx("tbody",{children:u.jsxs(Ot,{children:[u.jsx(Ot.When,{condition:n,children:[...Array(l).keys()].map(v=>u.jsx("tr",{children:u.jsx("td",{colSpan:e.length,style:{padding:4},children:u.jsx(Go,{height:d})})},v))}),u.jsx(Ot.When,{condition:!t.length,children:u.jsx("tr",{children:u.jsx("td",{colSpan:e.length,children:u.jsx(Il,{})})})}),u.jsx(Ot.Else,{children:t.map((v,_)=>u.jsx("tr",{className:c&&be.selectable,onClick:w(v),children:e.map(x=>u.jsx("td",{style:x.width?{width:x.width}:{},children:u.jsx("div",{className:h(x),children:x.cellRenderer?x.cellRenderer(v):x.valueGetter?x.valueGetter(v):v[x.name]})},`${x.name}-${_}`))},_))})]})})]})]}),a&&u.jsx(Nl,{...a})]})});Eg.displayName="Table";const Yr={alert:"alert__LblpE",default:"default__mgO6A",destructive:"destructive__bLNSM",alertTitle:"alertTitle__gblKf",alertDescription:"alertDescription__BuVHV"},Pi=E("Alert",({className:e,variant:t="default",children:n,...r})=>u.jsx("div",{"data-slot":"alert",role:"alert",className:j(Yr.alert,Yr[t],e),...r,children:n})),Sg=g.forwardRef(({children:e,className:t,...n},r)=>u.jsx("div",{ref:r,"data-slot":"alert-title",className:j(Yr.alertTitle,t),...n,children:e})),Tg=g.forwardRef(({children:e,className:t,...n},r)=>u.jsx("div",{ref:r,"data-slot":"alert-description",className:j(Yr.alertDescription,t),...n,children:e}));Pi.displayName="Alert",Pi.Title=Sg,Pi.Description=Tg;function Ml(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Kr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ml(Object(n),!0).forEach(function(r){Ag(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ml(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fl(e){return(Fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function Ag(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ri(e){return(Ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function Bl(e,t){var n;if(typeof(n=t.domElement?function(){return t.domElement}:t.domElementGetter?t.domElementGetter:e.domElementGetter?e.domElementGetter:function(r){var o=r.appName||r.name;if(!o)throw Error("single-spa's dom-element-getter-helpers was not given an application name as a prop, so it can't make a unique dom element container for the react application");var i="single-spa-application:".concat(o);return function(){var s=document.getElementById(i);return s||((s=document.createElement("div")).id=i,document.body.appendChild(s)),s}}(t))!="function")throw Error("single-spa's dom-element-getter-helpers was given an invalid domElementGetter for application or parcel '".concat(t.name,"'. Expected a function, received ").concat(Ri(n)));return function(){var r=n(t);if(!(r instanceof HTMLElement))throw Error("single-spa's dom-element-getter-helpers: domElementGetter returned an invalid dom element for application or parcel '".concat(t.name,"'. Expected HTMLElement, received ").concat(Ri(r)));return r}}var Un=null;try{Un=require("react").createContext()}catch{}var Pg={React:null,ReactDOM:null,ReactDOMClient:null,rootComponent:null,loadRootComponent:null,errorBoundary:null,errorBoundaryClass:null,domElementGetter:null,parcelCanUpdate:!0,suppressComponentDidCatchWarning:!1,domElements:{},renderResults:{},updateResolves:{},unmountResolves:{}};function Rg(e){if(Fl(e)!=="object")throw new Error("single-spa-react requires a configuration object");var t,n=Kr(Kr({},Pg),e);if(!n.React)throw new Error("single-spa-react must be passed opts.React");if(!n.ReactDOM&&!n.ReactDOMClient)throw new Error("single-spa-react must be passed opts.ReactDOM or opts.ReactDOMClient");if(n.renderType||((t=n.ReactDOMClient)!==null&&t!==void 0&&t.createRoot?n.renderType="createRoot":n.renderType="render"),!n.rootComponent&&!n.loadRootComponent)throw new Error("single-spa-react must be passed opts.rootComponent or opts.loadRootComponent");if(n.errorBoundary&&typeof n.errorBoundary!="function")throw Error("The errorBoundary opt for single-spa-react must either be omitted or be a function that returns React elements");!Un&&n.React.createContext&&(Un=n.React.createContext()),n.SingleSpaRoot=function(o){function i(s){i.displayName="SingleSpaRoot(".concat(s.name,")")}return i.prototype=Object.create(o.React.Component.prototype),i.prototype.componentDidMount=function(){setTimeout(this.props.mountFinished)},i.prototype.componentWillUnmount=function(){setTimeout(this.props.unmountFinished)},i.prototype.render=function(){return setTimeout(this.props.updateFinished),this.props.children},i}(n);var r={bootstrap:Og.bind(null,n),mount:kg.bind(null,n),unmount:jg.bind(null,n)};return n.parcelCanUpdate&&(r.update=Dg.bind(null,n)),r}function Og(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then(function(n){e.rootComponent=n})}function kg(e,t){return new Promise(function(n,r){e.suppressComponentDidCatchWarning||!function(a){if(!(a&&typeof a.version=="string"&&a.version.indexOf(".")>=0))return!1;var c=a.version.slice(0,a.version.indexOf("."));try{return Number(c)>=16}catch{return!1}}(e.React)||e.errorBoundary||e.errorBoundaryClass||(e.rootComponent.prototype?e.rootComponent.prototype.componentDidCatch||console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire single-spa application.")):console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to singleSpaReact(opts).")));var o=Ul(e,t,function(){n(this)}),i=Bl(e,t)(),s=function(a){var c=a.reactDom,l=a.renderType,d=a.elementToRender,p=a.domElement,h=c[l];if(typeof h!="function")throw new Error('renderType "'.concat(l,'" did not return a function.'));switch(l){case"createRoot":case"unstable_createRoot":case"createBlockingRoot":case"unstable_createBlockingRoot":var m=h(p);return m.render(d),m;case"hydrateRoot":return h(p,d);case"hydrate":default:return h(d,p),null}}({elementToRender:o,domElement:i,reactDom:Oi(e),renderType:Lg(e)});e.domElements[t.name]=i,e.renderResults[t.name]=s})}function jg(e,t){return new Promise(function(n){e.unmountResolves[t.name]=n;var r=e.renderResults[t.name];r&&r.unmount?r.unmount():Oi(e).unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]})}function Dg(e,t){return new Promise(function(n){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(n);var r=Ul(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(r);else{var i=Bl(e,t)();Oi(e).render(r,i)}})}function Oi(e){return e.ReactDOMClient||e.ReactDOM}function Lg(e){return typeof e.renderType=="function"?e.renderType():e.renderType}function Ul(e,t,n){var r=e.React.createElement(e.rootComponent,t),o=Un?e.React.createElement(Un.Provider,{value:t},r):r;return(e.errorBoundary||t.errorBoundary||e.errorBoundaryClass||t.errorBoundaryClass)&&(e.errorBoundaryClass=e.errorBoundaryClass||t.errorBoundaryClass||function(i,s){function a(c){i.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},a.displayName="SingleSpaReactErrorBoundary(".concat(c.name,")")}return a.prototype=Object.create(i.React.Component.prototype),a.prototype.render=function(){return this.state.caughtError?(i.errorBoundary||s.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},a.prototype.componentDidCatch=function(c,l){this.setState({caughtError:c,caughtErrorInfo:l})},a}(e,t),o=e.React.createElement(e.errorBoundaryClass,t,o)),o=e.React.createElement(e.SingleSpaRoot,Kr(Kr({},t),{},{mountFinished:n,updateFinished:function(){e.updateResolves[t.name]&&(e.updateResolves[t.name].forEach(function(i){return i()}),delete e.updateResolves[t.name])},unmountFinished:function(){e.unmountResolves[t.name]&&(e.unmountResolves[t.name](),delete e.unmountResolves[t.name])}}),o)}const Ig=e=>{const t=new Df;return function(r){if(!r)throw new Error("Microfrontend did not receive any properties !!");const o=is(r.module.name);return u.jsx(rs,{module:o,children:u.jsxs(Mf,{client:t,children:[u.jsx(e,{...r}),u.jsx(vf,{position:"top-right",reverseOrder:!0})]})})}},yb=E("initializeMicroFrontend",({rootComponent:e,...t})=>Rg({errorBoundary(n){return console.error(n),u.jsx(vl,{})},...t,rootComponent:Ig(e)})),bb=E("setupTestEnvironment",e=>{const t={authUser:{id:"testuser",username:"testuser",displayName:"Test User",applications:[]},catalog:[],authentication:{passwordMethodEnabled:!0,registerEnabled:!0,invitationsEnabled:!0,resetPasswordExpiration:3e4,passwordConstraints:{lowerCaseRequired:!1,upperCaseRequired:!1,symbolRequired:!1,digitRequired:!1,minLength:0,maxLength:8},sessionExpiration:864e5,jwtSecret:"",sessionIncludeOrigUser:!1,impersonationMode:"cookie",canImpersonateNonExistentUsers:!1,providers:[]},platformVersion:"0.0.0"};Object.defineProperty(window,Pn,{value:e?Yu(t,e):t})}),Zr=E("FeatureFlagsContext",Kn({flags:new Map,variants:new Map,isLoading:!1,error:null,checkFlag:()=>!1,getVariant:()=>null,refresh:async()=>{}})),Ng=E("FeatureFlagsProvider",({gatewayUrl:e="",prefetchFlags:t=[],refreshInterval:n,children:r})=>{const[o,i]=L(new Map),[s,a]=L(new Map),[c,l]=L(!1),[d,p]=L(null),h=te(async _=>{if(_.length!==0){l(!0),p(null);try{const x=`${e}/_/feature-flags/evaluate`,C=await fetch(x,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({flagNames:_}),credentials:"include"});if(!C.ok)throw new Error(`Failed to fetch feature flags: ${C.status} ${C.statusText}`);const S=await C.json(),T=new Map,R=new Map;S.flags.forEach(A=>{T.set(A.flagName,A.enabled),A.variant!==void 0&&R.set(A.flagName,{variant:A.variant.name||null,payload:A.variant.payload})}),i(T),a(R)}catch(x){const C=x instanceof Error?x:new Error("Unknown error fetching feature flags");p(C),console.error("Error fetching feature flags:",C)}finally{l(!1)}}},[e]),m=te(async()=>{t.length>0&&await h(t)},[t,h]);Q(()=>{t.length>0&&h(t)},[t,h]),Q(()=>{if(n&&n>0&&t.length>0){const _=setInterval(()=>{h(t)},n);return()=>{clearInterval(_)}}},[n,t,h]);const w=te((_,x=!1)=>o.get(_)??x,[o]),f=te(_=>s.get(_)??null,[s]),v=Ae(()=>({flags:o,variants:s,isLoading:c,error:d,checkFlag:w,getVariant:f,refresh:m}),[o,s,c,d,w,f,m]);return u.jsx(Zr.Provider,{value:v,children:r})});Ng.displayName="FeatureFlagsProvider";function zl(e,t=!1,n=""){const r=Qt(Zr),[o,i]=L(t),[s,a]=L(!1);if(Q(()=>{const l=r.checkFlag(e,null);if(l!=null){i(l),a(!0);return}let d=!0;return(async()=>{try{const h=`${n}/_/feature-flags/${encodeURIComponent(e)}`,m=await fetch(h,{method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"});if(!m.ok){console.warn(`Failed to fetch feature flag '${e}': ${m.status} ${m.statusText}`),d&&(i(t),a(!0));return}const w=await m.json();if(d){const f=typeof w.value=="boolean"?w.value:t;i(f),a(!0)}}catch(h){console.error(`Error fetching feature flag '${e}':`,h),d&&(i(t),a(!0))}})(),()=>{d=!1}},[e,t,n,r]),!s&&r.flags.size===0)return t;const c=r.checkFlag(e,null);return c??o}function $g(){const e=Qt(Zr);if(!e)throw new Error("useFeatureFlags must be used within a FeatureFlagsProvider. Wrap your component tree with <FeatureFlagsProvider> to use this hook.");return e}function Mg(e,t=""){const n=Qt(Zr),[r,o]=L(null),[i,s]=L(void 0),[a,c]=L(!0);Q(()=>{const d=n.getVariant(e);if(d!==null){o(d.variant),s(d.payload),c(!1);return}let p=!0;return(async()=>{c(!0);try{const m=`${t}/_/feature-flags/${encodeURIComponent(e)}`,w=await fetch(m,{method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"});if(!w.ok){console.warn(`Failed to fetch variant for flag '${e}': ${w.status} ${w.statusText}`),p&&(o(null),s(void 0),c(!1));return}const f=await w.json();if(p){const v=typeof f.value=="string"?f.value:(f.value===null||f.value===void 0,null);o(v),s(void 0),c(!1)}}catch(m){console.error(`Error fetching variant for flag '${e}':`,m),p&&(o(null),s(void 0),c(!1))}})(),()=>{p=!1}},[e,t,n]);const l=n.getVariant(e);return l!==null?{variant:l.variant,payload:l.payload,isLoading:!1}:{variant:r,payload:i,isLoading:a}}const Fg=E("FeatureFlagGuard",({flag:e,children:t,fallback:n=null,invert:r=!1,gatewayUrl:o=""})=>{const i=zl(e,!1,o);return(r?!i:i)?u.jsx(u.Fragment,{children:t}):u.jsx(u.Fragment,{children:n})});Fg.displayName="FeatureFlagGuard"}}});
|