@bluealba/pae-ui-react-core 4.0.1-develop-1260 → 4.0.1-develop-1269
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 +38 -38
- package/dist/index.esm.js +885 -883
- package/dist/index.systemjs.js +37 -37
- package/dist/index.umd.js +39 -39
- package/dist/src/hooks/applications/ApplicationMenu.d.ts +2 -0
- package/dist/src/hooks/applications/useApplicationMenu.d.ts +1 -3
- package/dist/src/hooks/applications/useModuleMenu.d.ts +11 -0
- package/dist/src/hooks/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(x,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("react"),require("single-spa"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","single-spa","react-dom"],E):(x=typeof globalThis<"u"?globalThis:x||self,E(x["@bluealba/pae-ui-react-core"]={},x.React,x.singleSpa,x.ReactDOM))})(this,function(x,E,ne,_t){"use strict";var ju=x=>{throw TypeError(x)};var qi=(x,E,ne)=>E.has(x)||ju("Cannot "+ne);var b=(x,E,ne)=>(qi(x,E,"read from private field"),ne?ne.call(x):E.get(x)),L=(x,E,ne)=>E.has(x)?ju("Cannot add the same private member more than once"):E instanceof WeakSet?E.add(x):E.set(x,ne),k=(x,E,ne,_t)=>(qi(x,E,"write to private field"),_t?_t.call(x,ne):E.set(x,ne),ne),F=(x,E,ne)=>(qi(x,E,"access private method"),ne);var so=(x,E,ne,_t)=>({set _(Gr){k(x,E,Gr,ne)},get _(){return b(x,E,_t)}});var kt,ut,nr,uu,or,dt,ir,du,jt,fu,sr,ar,xe,Dt,le,Fr,Lt,ke,Je,pu,Be,hu,Ue,ue,It,ze,wt,mu,Ye,je,Br,gu,X,ft,pt,lr,cr,ht,ur,dr,yu,ge,z,Ur,de,Nt,fr,mt,gt,zr,pr,hr,$t,Mt,yt,mr,V,Vr,Qi,Yi,Ki,Zi,Xi,Ji,es,Du,vu,vt,bt,ye,Ke,Ze,ao,ts,bu;var Gr=document.createElement("style");Gr.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(Gr);function rs(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const f=rs(E),ns=rs(_t),
|
|
1
|
+
(function(x,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("react"),require("single-spa"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","single-spa","react-dom"],E):(x=typeof globalThis<"u"?globalThis:x||self,E(x["@bluealba/pae-ui-react-core"]={},x.React,x.singleSpa,x.ReactDOM))})(this,function(x,E,ne,_t){"use strict";var Du=x=>{throw TypeError(x)};var qi=(x,E,ne)=>E.has(x)||Du("Cannot "+ne);var b=(x,E,ne)=>(qi(x,E,"read from private field"),ne?ne.call(x):E.get(x)),L=(x,E,ne)=>E.has(x)?Du("Cannot add the same private member more than once"):E instanceof WeakSet?E.add(x):E.set(x,ne),k=(x,E,ne,_t)=>(qi(x,E,"write to private field"),_t?_t.call(x,ne):E.set(x,ne),ne),F=(x,E,ne)=>(qi(x,E,"access private method"),ne);var so=(x,E,ne,_t)=>({set _(Gr){k(x,E,Gr,ne)},get _(){return b(x,E,_t)}});var kt,ut,nr,du,or,dt,ir,fu,jt,pu,sr,ar,xe,Dt,le,Fr,Lt,ke,Je,hu,Be,mu,Ue,ue,It,ze,wt,gu,Ye,je,Br,yu,X,ft,pt,lr,cr,ht,ur,dr,vu,ge,z,Ur,de,Nt,fr,mt,gt,zr,pr,hr,$t,Mt,yt,mr,V,Vr,Qi,Yi,Ki,Zi,Xi,Ji,es,Lu,bu,vt,bt,ye,Ke,Ze,ao,ts,wu;var Gr=document.createElement("style");Gr.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(Gr);function rs(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const f=rs(E),ns=rs(_t),Iu={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"}},_r="__PAE_GLOBAL_STATE__",os="__PAE_REACTIVE_GLOBAL_STATE__",is="__PAE_EXTENSIONS_POINTS_REGISTRY__",lo="__PAE_CUSTOMIZATIONS_LOADING_STATE_KEY__",Nu="/auth/logout",$u=(e,t)=>{const[r,n]=E.useState(t);return E.useEffect(()=>{const o=e.subscribe(i=>{n(i)});return()=>{o.unsubscribe()}},[n]),r},Mu=(e,t,r)=>r.map((n,o)=>o===e?t(n):n),Fu=(e,t,r)=>Mu(r.findIndex(e),t,r),co=(e,t)=>typeof e=="function"?e(t):e,ss=(e,t)=>{const r=$u(e,t),n=E.useCallback(o=>{e.next(co(o,r))},[r]);return[r,n]},Cr=()=>ss(window[os],window[_r]),xr=()=>Cr()[0].catalog,Bu=()=>{const e=xr(),t=E.useCallback(n=>{window[os].next({...window[_r],catalog:co(n,e)})},[e]),r=E.useCallback((n,o)=>{t(i=>Fu(s=>s.name===n,s=>{var a;return{...s,ui:{...s.ui,customProps:co(o,((a=s.ui)==null?void 0:a.customProps)??{})}}},i))},[t]);return[e,t,r]},as=()=>{const[e,t]=E.useState(document.location.pathname);return E.useEffect(()=>{const r=()=>{t(window.location.pathname)};return window.addEventListener("popstate",r),()=>{window.removeEventListener("popstate",r)}},[t]),e};var Uu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ls={exports:{}},Er={},cs;function Wu(){if(cs)return Er;cs=1;/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.development.js
|
|
5
5
|
*
|
|
@@ -11,26 +11,26 @@
|
|
|
11
11
|
`+gr+v}}var yr=!1,Ut;{var ro=typeof WeakMap=="function"?WeakMap:Map;Ut=new ro}function Hr(v,P){if(!v||yr)return"";{var j=Ut.get(v);if(j!==void 0)return j}var $;yr=!0;var q=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var K;K=Wr.current,Wr.current=null,Bi();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(ve){$=ve}Reflect.construct(v,[],W)}else{try{W.call()}catch(ve){$=ve}v.call(W.prototype)}}else{try{throw Error()}catch(ve){$=ve}v()}}catch(ve){if(ve&&$&&typeof ve.stack=="string"){for(var U=ve.stack.split(`
|
|
12
12
|
`),fe=$.stack.split(`
|
|
13
13
|
`),te=U.length-1,re=fe.length-1;te>=1&&re>=0&&U[te]!==fe[re];)re--;for(;te>=1&&re>=0;te--,re--)if(U[te]!==fe[re]){if(te!==1||re!==1)do if(te--,re--,re<0||U[te]!==fe[re]){var Ee=`
|
|
14
|
-
`+U[te].replace(" at new "," at ");return v.displayName&&Ee.includes("<anonymous>")&&(Ee=Ee.replace("<anonymous>",v.displayName)),typeof v=="function"&&Ut.set(v,Ee),Ee}while(te>=1&&re>=0);break}}}finally{yr=!1,Wr.current=K,Ui(),Error.prepareStackTrace=q}var wr=v?v.displayName||v.name:"",Ht=wr?Bt(wr):"";return typeof v=="function"&&Ut.set(v,Ht),Ht}function zt(v,P,j){return Hr(v,!1)}function no(v){var P=v.prototype;return!!(P&&P.isReactComponent)}function vr(v,P,j){if(v==null)return"";if(typeof v=="function")return Hr(v,no(v));if(typeof v=="string")return Bt(v);switch(v){case c:return Bt("Suspense");case d:return Bt("SuspenseList")}if(typeof v=="object")switch(v.$$typeof){case l:return zt(v.render);case p:return vr(v.type,P,j);case h:{var $=v,q=$._payload,K=$._init;try{return vr(K(q),P,j)}catch{}}}return""}var Wt=Object.prototype.hasOwnProperty,oo={},io=_.ReactDebugCurrentFrame;function Xe(v){if(v){var P=v._owner,j=vr(v.type,v._source,P?P.type:null);io.setExtraStackFrame(j)}else io.setExtraStackFrame(null)}function
|
|
14
|
+
`+U[te].replace(" at new "," at ");return v.displayName&&Ee.includes("<anonymous>")&&(Ee=Ee.replace("<anonymous>",v.displayName)),typeof v=="function"&&Ut.set(v,Ee),Ee}while(te>=1&&re>=0);break}}}finally{yr=!1,Wr.current=K,Ui(),Error.prepareStackTrace=q}var wr=v?v.displayName||v.name:"",Ht=wr?Bt(wr):"";return typeof v=="function"&&Ut.set(v,Ht),Ht}function zt(v,P,j){return Hr(v,!1)}function no(v){var P=v.prototype;return!!(P&&P.isReactComponent)}function vr(v,P,j){if(v==null)return"";if(typeof v=="function")return Hr(v,no(v));if(typeof v=="string")return Bt(v);switch(v){case c:return Bt("Suspense");case d:return Bt("SuspenseList")}if(typeof v=="object")switch(v.$$typeof){case l:return zt(v.render);case p:return vr(v.type,P,j);case h:{var $=v,q=$._payload,K=$._init;try{return vr(K(q),P,j)}catch{}}}return""}var Wt=Object.prototype.hasOwnProperty,oo={},io=_.ReactDebugCurrentFrame;function Xe(v){if(v){var P=v._owner,j=vr(v.type,v._source,P?P.type:null);io.setExtraStackFrame(j)}else io.setExtraStackFrame(null)}function uy(v,P,j,$,q){{var K=Function.call.bind(Wt);for(var W in v)if(K(v,W)){var U=void 0;try{if(typeof v[W]!="function"){var fe=Error(($||"React class")+": "+j+" type `"+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof v[W]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw fe.name="Invariant Violation",fe}U=v[W](P,W,$,j,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(te){U=te}U&&!(U instanceof Error)&&(Xe(q),C("%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).",$||"React class",j,W,typeof U),Xe(null)),U instanceof Error&&!(U.message in oo)&&(oo[U.message]=!0,Xe(q),C("Failed %s type: %s",j,U.message),Xe(null))}}}var dy=Array.isArray;function zi(v){return dy(v)}function fy(v){{var P=typeof Symbol=="function"&&Symbol.toStringTag,j=P&&v[Symbol.toStringTag]||v.constructor.name||"Object";return j}}function py(v){try{return _u(v),!1}catch{return!0}}function _u(v){return""+v}function Cu(v){if(py(v))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",fy(v)),_u(v)}var xu=_.ReactCurrentOwner,hy={key:!0,ref:!0,__self:!0,__source:!0},Eu,Su;function my(v){if(Wt.call(v,"ref")){var P=Object.getOwnPropertyDescriptor(v,"ref").get;if(P&&P.isReactWarning)return!1}return v.ref!==void 0}function gy(v){if(Wt.call(v,"key")){var P=Object.getOwnPropertyDescriptor(v,"key").get;if(P&&P.isReactWarning)return!1}return v.key!==void 0}function yy(v,P){typeof v.ref=="string"&&xu.current}function vy(v,P){{var j=function(){Eu||(Eu=!0,C("%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))};j.isReactWarning=!0,Object.defineProperty(v,"key",{get:j,configurable:!0})}}function by(v,P){{var j=function(){Su||(Su=!0,C("%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))};j.isReactWarning=!0,Object.defineProperty(v,"ref",{get:j,configurable:!0})}}var wy=function(v,P,j,$,q,K,W){var U={$$typeof:t,type:v,key:P,ref:j,props:W,_owner:K};return U._store={},Object.defineProperty(U._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(U,"_self",{configurable:!1,enumerable:!1,writable:!1,value:$}),Object.defineProperty(U,"_source",{configurable:!1,enumerable:!1,writable:!1,value:q}),Object.freeze&&(Object.freeze(U.props),Object.freeze(U)),U};function _y(v,P,j,$,q){{var K,W={},U=null,fe=null;j!==void 0&&(Cu(j),U=""+j),gy(P)&&(Cu(P.key),U=""+P.key),my(P)&&(fe=P.ref,yy(P,q));for(K in P)Wt.call(P,K)&&!hy.hasOwnProperty(K)&&(W[K]=P[K]);if(v&&v.defaultProps){var te=v.defaultProps;for(K in te)W[K]===void 0&&(W[K]=te[K])}if(U||fe){var re=typeof v=="function"?v.displayName||v.name||"Unknown":v;U&&vy(W,re),fe&&by(W,re)}return wy(v,U,fe,q,$,xu.current,W)}}var Wi=_.ReactCurrentOwner,Tu=_.ReactDebugCurrentFrame;function br(v){if(v){var P=v._owner,j=vr(v.type,v._source,P?P.type:null);Tu.setExtraStackFrame(j)}else Tu.setExtraStackFrame(null)}var Hi;Hi=!1;function Vi(v){return typeof v=="object"&&v!==null&&v.$$typeof===t}function Au(){{if(Wi.current){var v=H(Wi.current.type);if(v)return`
|
|
15
15
|
|
|
16
|
-
Check the render method of \``+v+"`."}return""}}function
|
|
16
|
+
Check the render method of \``+v+"`."}return""}}function Cy(v){return""}var Pu={};function xy(v){{var P=Au();if(!P){var j=typeof v=="string"?v:v.displayName||v.name;j&&(P=`
|
|
17
17
|
|
|
18
|
-
Check the top-level render call using <`+j+">.")}return P}}function
|
|
18
|
+
Check the top-level render call using <`+j+">.")}return P}}function Ou(v,P){{if(!v._store||v._store.validated||v.key!=null)return;v._store.validated=!0;var j=xy(P);if(Pu[j])return;Pu[j]=!0;var $="";v&&v._owner&&v._owner!==Wi.current&&($=" It was passed a child from "+H(v._owner.type)+"."),br(v),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',j,$),br(null)}}function Ru(v,P){{if(typeof v!="object")return;if(zi(v))for(var j=0;j<v.length;j++){var $=v[j];Vi($)&&Ou($,P)}else if(Vi(v))v._store&&(v._store.validated=!0);else if(v){var q=y(v);if(typeof q=="function"&&q!==v.entries)for(var K=q.call(v),W;!(W=K.next()).done;)Vi(W.value)&&Ou(W.value,P)}}}function Ey(v){{var P=v.type;if(P==null||typeof P=="string")return;var j;if(typeof P=="function")j=P.propTypes;else if(typeof P=="object"&&(P.$$typeof===l||P.$$typeof===p))j=P.propTypes;else return;if(j){var $=H(P);uy(j,v.props,"prop",$,v)}else if(P.PropTypes!==void 0&&!Hi){Hi=!0;var q=H(P);C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",q||"Unknown")}typeof P.getDefaultProps=="function"&&!P.getDefaultProps.isReactClassApproved&&C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Sy(v){{for(var P=Object.keys(v.props),j=0;j<P.length;j++){var $=P[j];if($!=="children"&&$!=="key"){br(v),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",$),br(null);break}}v.ref!==null&&(br(v),C("Invalid attribute `ref` supplied to `React.Fragment`."),br(null))}}var ku={};function ju(v,P,j,$,q,K){{var W=I(v);if(!W){var U="";(v===void 0||typeof v=="object"&&v!==null&&Object.keys(v).length===0)&&(U+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var fe=Cy();fe?U+=fe:U+=Au();var te;v===null?te="null":zi(v)?te="array":v!==void 0&&v.$$typeof===t?(te="<"+(H(v.type)||"Unknown")+" />",U=" Did you accidentally export a JSX literal instead of a component?"):te=typeof v,C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",te,U)}var re=_y(v,P,j,q,K);if(re==null)return re;if(W){var Ee=P.children;if(Ee!==void 0)if($)if(zi(Ee)){for(var wr=0;wr<Ee.length;wr++)Ru(Ee[wr],v);Object.freeze&&Object.freeze(Ee)}else C("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 Ru(Ee,v)}if(Wt.call(P,"key")){var Ht=H(v),ve=Object.keys(P).filter(function(ky){return ky!=="key"}),Gi=ve.length>0?"{key: someKey, "+ve.join(": ..., ")+": ...}":"{key: someKey}";if(!ku[Ht+Gi]){var Ry=ve.length>0?"{"+ve.join(": ..., ")+": ...}":"{}";C(`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} />`,Gi,Ht,
|
|
23
|
+
<%s key={someKey} {...props} />`,Gi,Ht,Ry,Ht),ku[Ht+Gi]=!0}}return v===n?Sy(re):Ey(re),re}}function Ty(v,P,j){return ju(v,P,j,!0)}function Ay(v,P,j){return ju(v,P,j,!1)}var Py=Ay,Oy=Ty;Er.Fragment=n,Er.jsx=Py,Er.jsxs=Oy}(),Er}ls.exports=Wu();var u=ls.exports;const us=E.createContext(null),ds=({module:e,children:t})=>u.jsx(us.Provider,{value:e,children:t});ds.displayName="PAEModule";const Sr=()=>{const e=E.useContext(us);if(!e)throw new Error("Module metadata was not setup yet !!");return e};function uo(){if(!window[_r])throw new Error("PAE Global state not found.");return window[_r]}const fo=()=>{const{authUser:{applications:e}}=uo();return e||[]},fs=e=>fo().filter(t=>t.isGlobal||t.name===e).flatMap(t=>t.operations),ps=()=>{const{application:e}=Sr();return E.useMemo(()=>fs(e),[e])},hs=e=>(...t)=>t.every(r=>e.some(n=>n.name===r)),qr=()=>{const[{authUser:e}]=Cr(),t=ps();return{authUser:e,hasAccess:E.useMemo(()=>hs(t),[t])}},Hu=()=>{const{authUser:e}=qr();return!e||e.id==="anon"},ms=()=>{var e;return((e=Sr().ui)==null?void 0:e.customProps)??{}},po=e=>{const t=xr();return E.useMemo(()=>{const r=t.find(n=>n.name===e);if(!r)throw new Error(`Could not find the module [${e}] in the local catalog !`);return r},[t,e])},gs=e=>{var t,r;return((r=(t=po(e))==null?void 0:t.ui)==null?void 0:r.customProps)??{}},Vu=e=>e.replace(/\/+/g,"/"),Gu=(e,t="only-base-path")=>{const{apiDocs:r,health:n,version:o,changelog:i}=(e==null?void 0:e.commonPaths)||{},s=(a,l="")=>{if(a===void 0&&!l)return;const c=a??l;if(t==="only-base-path")return c;const d=Vu(`${e.baseUrl}/${c}`);return t==="with-module-base"?d:`${document.location.origin}${d}`};return{apiDocsPath:s(r,"/api-docs-json"),healthPath:s(n,"/health"),versionPath:s(o,"/version"),changelogPath:s(i,"/changelog")}};function qu(){window.open(Nu,"_self")}const Qu=e=>ne.navigateToUrl(e),Yu=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,}$/,Ku=e=>Yu.test(e),Zu=(e,t=2)=>{if(!e)return"";const r=e.split(" ");return r.length===1?r.join("").slice(0,t):r.map(n=>n[0]).join("").slice(0,t)},ys=e=>e.type==="app",Xu=e=>e.modules.some(ys)&&e.route&&e.route!=="/",vs=e=>{const{catalog:t}=uo();return Qr(t.filter(r=>r.application===e))},Qr=(e=[])=>e.find(t=>{var r;return ys(t)&&((r=t.ui)==null?void 0:r.route)!=="/"}),bs=()=>{const e=xr();return E.useMemo(()=>fo().map(r=>{var i,s,a;const n=Ju(e,r.name),o=Qr(n);return{name:r.name,displayName:((s=(i=o==null?void 0:o.ui)==null?void 0:i.customProps)==null?void 0:s.overrideApplicationDisplayName)??r.displayName,modules:n,route:(a=o==null?void 0:o.ui)==null?void 0:a.route,roles:[],operations:r.operations}}),[e])},Ju=(e,t)=>e.filter(r=>r.application===t)||[],ws=()=>{const e=bs();return E.useMemo(()=>e.filter(Xu),[e])},_s=e=>E.useMemo(()=>e?vs(e.name):void 0,[e]),et=new Map,ed=e=>{try{const{catalog:t}=uo(),r=t.find(n=>n.name===e);return r!=null&&r.version?`${e}@${r.version}`:e}catch{return e}},Yr=e=>{const[t,r]=E.useState(null);return E.useEffect(()=>{(async()=>{if(!e){r(null);return}try{const o=ed(e);if(et.has(o)){const s=et.get(o);r(s);return}const i=await System.import(e);et.set(o,i),r(i)}catch(o){console.error(`Error importing module ${e}: ${o.message}`),r(null)}})()},[e,r]),t},td=e=>{e?(Array.from(et.keys()).filter(r=>r.startsWith(e)).forEach(r=>et.delete(r)),console.log(`[useApplicationJSModule] Cleared cache for module: ${e}`)):(et.clear(),console.log("[useApplicationJSModule] Cleared all module cache"))};typeof window<"u"&&(window.PAE={...window.PAE,clearModuleCache:td,getModuleCacheSize:()=>et.size,getModuleCacheKeys:()=>Array.from(et.keys())});const Cs=e=>{const t=typeof e=="string"?vs(e):Qr(e==null?void 0:e.modules),r=Yr(t==null?void 0:t.name);return r==null?void 0:r.icon},xs=e=>{const t=Qr(e==null?void 0:e.modules),r=Yr(t==null?void 0:t.name),[n,o]=E.useState(!1),[i,s]=E.useState({}),a=async()=>(typeof(r==null?void 0:r.menu)=="function"?await r.menu():r==null?void 0:r.menu)||[],l=async()=>{if(!(r!=null&&r.menu))return[];o(!0);const p=rd((e==null?void 0:e.operations)||[]),h=(await a()).map(g=>{const{operations:w,items:m,path:y}=g;if(w!=null&&w.length&&!p(w))return null;const _=(m||[]).filter(C=>{var T;return!((T=C==null?void 0:C.operations)!=null&&T.length)||p(C.operations)});return!_.length&&!y?null:{...g,items:_}}).filter(Boolean);return o(!1),h},c=async()=>{const p=await l();e&&s(h=>({...h,[e.name]:p}))};E.useEffect(()=>{c()},[r==null?void 0:r.menu]);const d=E.useMemo(()=>e?i[e.name]||[]:[],[i,e]);return{loading:n,menu:d}},rd=e=>t=>t.every(r=>e.some(n=>n.name===r)),nd=e=>xs(e);function Z(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function Ct(e){return function t(r){return arguments.length===0||Z(r)?t:e.apply(this,arguments)}}function tt(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return Z(r)?t:Ct(function(o){return e(r,o)});default:return Z(r)&&Z(n)?t:Z(r)?Ct(function(o){return e(o,n)}):Z(n)?Ct(function(o){return e(r,o)}):e(r,n)}}}function ho(e){return function t(r,n,o){switch(arguments.length){case 0:return t;case 1:return Z(r)?t:tt(function(i,s){return e(r,i,s)});case 2:return Z(r)&&Z(n)?t:Z(r)?tt(function(i,s){return e(i,n,s)}):Z(n)?tt(function(i,s){return e(r,i,s)}):Ct(function(i){return e(r,n,i)});default:return Z(r)&&Z(n)&&Z(o)?t:Z(r)&&Z(n)?tt(function(i,s){return e(i,s,o)}):Z(r)&&Z(o)?tt(function(i,s){return e(i,n,s)}):Z(n)&&Z(o)?tt(function(i,s){return e(r,i,s)}):Z(r)?Ct(function(i){return e(i,n,o)}):Z(n)?Ct(function(i){return e(r,i,o)}):Z(o)?Ct(function(i){return e(r,n,i)}):e(r,n,o)}}}function Kr(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function Es(e){return Object.prototype.toString.call(e)==="[object Object]"}var od=ho(function(t,r,n){var o=t(r),i=t(n);return o>i?-1:o<i?1:0}),id=ho(function(t,r,n){var o={},i;r=r||{},n=n||{};for(i in r)Kr(i,r)&&(o[i]=Kr(i,n)?t(i,r[i],n[i]):r[i]);for(i in n)Kr(i,n)&&!Kr(i,o)&&(o[i]=n[i]);return o}),sd=ho(function e(t,r,n){return id(function(o,i,s){return Es(i)&&Es(s)?e(t,i,s):t(o,i,s)},r,n)}),ad=tt(function(t,r){return sd(function(n,o,i){return i},t,r)}),ld=tt(function(t,r){return Array.prototype.slice.call(r,0).sort(function(n,o){for(var i=0,s=0;i===0&&s<t.length;)i=t[s](n,o),s+=1;return i})});const mo=()=>{const e=as(),t=ws();return E.useMemo(()=>cd(e,t),[e,t])},cd=(e,t)=>ld([od(ud)],t).find(r=>r.route&&e.startsWith(r.route)),ud=e=>{var t;return((t=e==null?void 0:e.route)==null?void 0:t.length)||-1},Ss=()=>{var e;return(e=mo())==null?void 0:e.name},dd=()=>{const e=mo(),t=_s(e);return Yr(t==null?void 0:t.name)},Ts=(e,t)=>{const n=xr().find(o=>o.name===e);if(!n){if(t)return null;throw new Error(`Service with name [${e}] not available in the catalog`)}return n.baseUrl},go=(e,t)=>{const r=Ts(e,!!t)??t;return E.useCallback((n,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(fd(`${r}${n}`),{...o,headers:s})},[r])},fd=e=>e.replace(/\/+/g,"/"),pd=(e,t)=>r=>({timestamp:new Date(new Date().toUTCString()).toISOString(),module:t.name,moduleVersion:t.version,application:t.application,user:e.username,...r}),hd=(e,t,r)=>async n=>{if(n.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(n.map(pd(t,r)))});if(!o.ok)throw new Error(`Error publishing habits event ${o.statusText}`)},md="@bluealba/pae-habits-service",As=()=>{const{authUser:e}=qr(),t=Sr(),r=go(md);return E.useCallback(hd(r,e,t),[r,e,t])},gd=()=>{const e=As();return E.useCallback((t,r)=>e([{name:t,data:r}]),[e])},Ps=e=>{const t=Sr(),r=window[is],[n,o]=E.useState(null);return E.useEffect(()=>r.defineExtensionPoint(t,e,i=>{o(()=>i)}),[o]),n},Os=(e,t,r)=>{E.useEffect(()=>window[is].setExtensionPoint(e,t,r),[])},Rs=(e,t)=>{E.useEffect(()=>(window.addEventListener(e,t),()=>window.removeEventListener(e,t)),[e,t])},ks=e=>{const{cssCustomizationLoadingDelay:t=1e3}=ms();E.useEffect(()=>{if(!e)return;const r=document.createElement("style");return setTimeout(()=>{r.innerHTML=e,document.head.append(r)},t),()=>r&&r.remove()},[e])},yd=e=>{var t;return(t=e.split(/[#?]/)[0].split(".").pop())==null?void 0:t.trim()},vd={woff2:"woff2",woff:"woff",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg"},bd=e=>{const t=yd(e);return t?vd[t]:void 0},wd=(e,t)=>{const r=t??bd(e);return r?`format(${r})`:""};function js(e){const[t,r]=E.useState(!1);return E.useEffect(()=>{if(!(e!=null&&e.length))return;const n=document.createElement("style");n.setAttribute("data-generated-fonts","true");const o=e.flatMap(({fontFamily:s,variants:a})=>a.map(({path:l,fontWeight:c,format:d})=>`
|
|
24
24
|
@font-face {
|
|
25
25
|
font-family: "${s}";
|
|
26
|
-
src: url("${l}") ${
|
|
26
|
+
src: url("${l}") ${wd(l,d)};
|
|
27
27
|
font-weight: ${c};
|
|
28
28
|
font-style: normal;
|
|
29
29
|
}
|
|
30
30
|
`)).join(`
|
|
31
|
-
`);return n.innerHTML=o,document.head.appendChild(n),(async()=>{try{await Promise.all(e.flatMap(({fontFamily:s,variants:a})=>a.map(({fontWeight:l})=>document.fonts.load(`normal ${l} 1em "${s}"`))))}finally{r(!0)}})(),()=>{document.head.removeChild(n)}},[e]),E.useEffect(()=>{!t&&!(e!=null&&e.length)&&r(!0)},[e,t]),{fontsLoaded:t}}var yo=function(e,t){return yo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},yo(e,t)};function Tr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");yo(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var De=function(){return De=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},De.apply(this,arguments)};function
|
|
31
|
+
`);return n.innerHTML=o,document.head.appendChild(n),(async()=>{try{await Promise.all(e.flatMap(({fontFamily:s,variants:a})=>a.map(({fontWeight:l})=>document.fonts.load(`normal ${l} 1em "${s}"`))))}finally{r(!0)}})(),()=>{document.head.removeChild(n)}},[e]),E.useEffect(()=>{!t&&!(e!=null&&e.length)&&r(!0)},[e,t]),{fontsLoaded:t}}var yo=function(e,t){return yo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},yo(e,t)};function Tr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");yo(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var De=function(){return De=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},De.apply(this,arguments)};function Ds(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function vo(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function bo(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i}function Zr(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function We(e){return typeof e=="function"}function Ls(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var wo=Ls(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
32
32
|
`+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
|
|
33
|
-
`):"",this.name="UnsubscriptionError",this.errors=r}});function _o(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Xr=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,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),l=a.next();!l.done;l=a.next()){var c=l.value;c.remove(this)}}catch(m){t={error:m}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var d=this.initialTeardown;if(We(d))try{d()}catch(m){i=m instanceof wo?m.errors:[m]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var h=vo(p),g=h.next();!g.done;g=h.next()){var w=g.value;try{Ns(w)}catch(m){i=i??[],m instanceof wo?i=Zr(Zr([],bo(i)),bo(m.errors)):i.push(m)}}}catch(m){n={error:m}}finally{try{g&&!g.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}}if(i)throw new wo(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Ns(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&_o(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&_o(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Ls=Xr.EMPTY;function Is(e){return e instanceof Xr||e&&"closed"in e&&We(e.remove)&&We(e.add)&&We(e.unsubscribe)}function Ns(e){We(e)?e():e.unsubscribe()}var wd={Promise:void 0},_d={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Zr([e,t],bo(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Cd(e){_d.setTimeout(function(){throw e})}function $s(){}function Jr(e){e()}var Ms=function(e){Tr(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Is(r)&&r.add(n)):n.destination=Sd,n}return t.create=function(r,n,o){return new Co(r,n,o)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},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(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Xr),xd=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){en(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){en(n)}else en(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){en(r)}},e}(),Co=function(e){Tr(t,e);function t(r,n,o){var i=e.call(this)||this,s;return We(r)||!r?s={next:r??void 0,error:n??void 0,complete:o??void 0}:s=r,i.destination=new xd(s),i}return t}(Ms);function en(e){Cd(e)}function Ed(e){throw e}var Sd={closed:!0,next:$s,error:Ed,complete:$s},Td=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ad(e){return e}function Pd(e){return e.length===0?Ad:e.length===1?e[0]:function(r){return e.reduce(function(n,o){return o(n)},r)}}var Fs=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var o=this,i=Rd(t)?t:new Co(t,r,n);return Jr(function(){var s=o,a=s.operator,l=s.source;i.add(a?a.call(i,l):l?o._subscribe(i):o._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=Bs(r),new r(function(o,i){var s=new Co({next:function(a){try{t(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});n.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[Td]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Pd(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Bs(t),new t(function(n,o){var i;r.subscribe(function(s){return i=s},function(s){return o(s)},function(){return n(i)})})},e.create=function(t){return new e(t)},e}();function Bs(e){var t;return(t=e??wd.Promise)!==null&&t!==void 0?t:Promise}function Od(e){return e&&We(e.next)&&We(e.error)&&We(e.complete)}function Rd(e){return e&&e instanceof Ms||Od(e)&&Is(e)}var kd=Ds(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Us=function(e){Tr(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new zs(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new kd},t.prototype.next=function(r){var n=this;Jr(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=vo(n.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(r)}}catch(c){o={error:c}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}}})},t.prototype.error=function(r){var n=this;Jr(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var o=n.observers;o.length;)o.shift().error(r)}})},t.prototype.complete=function(){var r=this;Jr(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,s=o.isStopped,a=o.observers;return i||s?Ls:(this.currentObservers=null,a.push(r),new Xr(function(){n.currentObservers=null,_o(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,s=n.isStopped;o?r.error(i):s&&r.complete()},t.prototype.asObservable=function(){var r=new Fs;return r.source=this,r},t.create=function(r,n){return new zs(r,n)},t}(Fs),zs=function(e){Tr(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Ls},t}(Us),jd=function(e){Tr(t,e);function t(r){var n=e.call(this)||this;return n._value=r,n}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(r){var n=e.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},t.prototype.getValue=function(){var r=this,n=r.hasError,o=r.thrownError,i=r._value;if(n)throw o;return this._throwIfClosed(),i},t.prototype.next=function(r){e.prototype.next.call(this,this._value=r)},t}(Us);const Dd=e=>{const{fontsLoaded:t}=ks(e.fonts);Rs(e.styleSheet);const r=()=>{const n=new jd(!0);window[lo]=n};E.useEffect(()=>{t&&window[lo].next(!1)},[t]),E.useEffect(()=>{r()},[])},Ld=()=>{const e=window[lo];return ss(e,e.getValue()??void 0)},xo="theme",Ws=()=>document.documentElement.dataset[xo]==="dark"?"dark":"light",Id=()=>{const[e,t]=E.useState(Ws());return E.useEffect(()=>{const r=document.documentElement,n=()=>t(Ws),o=new MutationObserver(i=>{for(const s of i)s.type==="attributes"&&s.attributeName===`data-${xo}`&&n()});return o.observe(r,{attributes:!0,attributeFilter:[`data-${xo}`]}),n(),()=>{o.disconnect()}},[]),e},Nd=e=>e!==void 0,$d=e=>e!==!0;let Md={data:""},Fd=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||Md},Bd=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Ud=/\/\*[^]*?\*\/| +/g,Hs=/\n+/g,rt=(e,t)=>{let r="",n="",o="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?r=i+" "+s+";":n+=i[1]=="f"?rt(s,i):i+"{"+rt(s,i[1]=="k"?"":t)+"}":typeof s=="object"?n+=rt(s,t?t.replace(/([^,])+/g,a=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):i):s!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=rt.p?rt.p(i,s):i+":"+s+";")}return r+(t&&o?t+"{"+o+"}":o)+n},He={},Vs=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+Vs(e[r]);return t}return e},zd=(e,t,r,n,o)=>{let i=Vs(e),s=He[i]||(He[i]=(l=>{let c=0,d=11;for(;c<l.length;)d=101*d+l.charCodeAt(c++)>>>0;return"go"+d})(i));if(!He[s]){let l=i!==e?e:(c=>{let d,p,h=[{}];for(;d=Bd.exec(c.replace(Ud,""));)d[4]?h.shift():d[3]?(p=d[3].replace(Hs," ").trim(),h.unshift(h[0][p]=h[0][p]||{})):h[0][d[1]]=d[2].replace(Hs," ").trim();return h[0]})(e);He[s]=rt(o?{["@keyframes "+s]:l}:l,r?"":"."+s)}let a=r&&He.g?He.g:null;return r&&(He.g=He[s]),((l,c,d,p)=>{p?c.data=c.data.replace(p,l):c.data.indexOf(l)===-1&&(c.data=d?l+c.data:c.data+l)})(He[s],t,n,a),s},Wd=(e,t,r)=>e.reduce((n,o,i)=>{let s=t[i];if(s&&s.call){let a=s(r),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;s=l?"."+l:a&&typeof a=="object"?a.props?"":rt(a,""):a===!1?"":a}return n+o+(s??"")},"");function tn(e){let t=this||{},r=e.call?e(t.p):e;return zd(r.unshift?r.raw?Wd(r,[].slice.call(arguments,1),t.p):r.reduce((n,o)=>Object.assign(n,o&&o.call?o(t.p):o),{}):r,Fd(t.target),t.g,t.o,t.k)}let Gs,Eo,So;tn.bind({g:1});let Ve=tn.bind({k:1});function Hd(e,t,r,n){rt.p=t,Gs=e,Eo=r,So=n}function nt(e,t){let r=this||{};return function(){let n=arguments;function o(i,s){let a=Object.assign({},i),l=a.className||o.className;r.p=Object.assign({theme:Eo&&Eo()},a),r.o=/ *go\d+/.test(l),a.className=tn.apply(r,n)+(l?" "+l:"");let c=e;return e[0]&&(c=a.as||e,delete a.as),So&&c[0]&&So(a),Gs(c,a)}return o}}var Vd=e=>typeof e=="function",rn=(e,t)=>Vd(e)?e(t):e,Gd=(()=>{let e=0;return()=>(++e).toString()})(),qs=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),qd=20,nn=new Map,Qd=1e3,Qs=e=>{if(nn.has(e))return;let t=setTimeout(()=>{nn.delete(e),xt({type:4,toastId:e})},Qd);nn.set(e,t)},Yd=e=>{let t=nn.get(e);t&&clearTimeout(t)},To=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,qd)};case 1:return t.toast.id&&Yd(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:r}=t;return e.toasts.find(i=>i.id===r.id)?To(e,{type:1,toast:r}):To(e,{type:0,toast:r});case 3:let{toastId:n}=t;return n?Qs(n):e.toasts.forEach(i=>{Qs(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===n||n===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}))}}},on=[],sn={toasts:[],pausedAt:void 0},xt=e=>{sn=To(sn,e),on.forEach(t=>{t(sn)})},Kd={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Zd=(e={})=>{let[t,r]=E.useState(sn);E.useEffect(()=>(on.push(r),()=>{let o=on.indexOf(r);o>-1&&on.splice(o,1)}),[t]);let n=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)||Kd[o.type],style:{...e.style,...(s=e[o.type])==null?void 0:s.style,...o.style}}});return{...t,toasts:n}},Xd=(e,t="blank",r)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(r==null?void 0:r.id)||Gd()}),Ar=e=>(t,r)=>{let n=Xd(t,e,r);return xt({type:2,toast:n}),n.id},be=(e,t)=>Ar("blank")(e,t);be.error=Ar("error"),be.success=Ar("success"),be.loading=Ar("loading"),be.custom=Ar("custom"),be.dismiss=e=>{xt({type:3,toastId:e})},be.remove=e=>xt({type:4,toastId:e}),be.promise=(e,t,r)=>{let n=be.loading(t.loading,{...r,...r==null?void 0:r.loading});return e.then(o=>(be.success(rn(t.success,o),{id:n,...r,...r==null?void 0:r.success}),o)).catch(o=>{be.error(rn(t.error,o),{id:n,...r,...r==null?void 0:r.error})}),e};var Jd=(e,t)=>{xt({type:1,toast:{id:e,height:t}})},ef=()=>{xt({type:5,time:Date.now()})},tf=e=>{let{toasts:t,pausedAt:r}=Zd(e);E.useEffect(()=>{if(r)return;let i=Date.now(),s=t.map(a=>{if(a.duration===1/0)return;let l=(a.duration||0)+a.pauseDuration-(i-a.createdAt);if(l<0){a.visible&&be.dismiss(a.id);return}return setTimeout(()=>be.dismiss(a.id),l)});return()=>{s.forEach(a=>a&&clearTimeout(a))}},[t,r]);let n=E.useCallback(()=>{r&&xt({type:6,time:Date.now()})},[r]),o=E.useCallback((i,s)=>{let{reverseOrder:a=!1,gutter:l=8,defaultPosition:c}=s||{},d=t.filter(g=>(g.position||c)===(i.position||c)&&g.height),p=d.findIndex(g=>g.id===i.id),h=d.filter((g,w)=>w<p&&g.visible).length;return d.filter(g=>g.visible).slice(...a?[h+1]:[0,h]).reduce((g,w)=>g+(w.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:Jd,startPause:ef,endPause:n,calculateOffset:o}}},rf=Ve`
|
|
33
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function _o(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Xr=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,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),l=a.next();!l.done;l=a.next()){var c=l.value;c.remove(this)}}catch(m){t={error:m}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var d=this.initialTeardown;if(We(d))try{d()}catch(m){i=m instanceof wo?m.errors:[m]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var h=vo(p),g=h.next();!g.done;g=h.next()){var w=g.value;try{$s(w)}catch(m){i=i??[],m instanceof wo?i=Zr(Zr([],bo(i)),bo(m.errors)):i.push(m)}}}catch(m){n={error:m}}finally{try{g&&!g.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}}if(i)throw new wo(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)$s(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&_o(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&_o(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Is=Xr.EMPTY;function Ns(e){return e instanceof Xr||e&&"closed"in e&&We(e.remove)&&We(e.add)&&We(e.unsubscribe)}function $s(e){We(e)?e():e.unsubscribe()}var _d={Promise:void 0},Cd={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Zr([e,t],bo(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function xd(e){Cd.setTimeout(function(){throw e})}function Ms(){}function Jr(e){e()}var Fs=function(e){Tr(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Ns(r)&&r.add(n)):n.destination=Td,n}return t.create=function(r,n,o){return new Co(r,n,o)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},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(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Xr),Ed=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){en(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){en(n)}else en(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){en(r)}},e}(),Co=function(e){Tr(t,e);function t(r,n,o){var i=e.call(this)||this,s;return We(r)||!r?s={next:r??void 0,error:n??void 0,complete:o??void 0}:s=r,i.destination=new Ed(s),i}return t}(Fs);function en(e){xd(e)}function Sd(e){throw e}var Td={closed:!0,next:Ms,error:Sd,complete:Ms},Ad=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Pd(e){return e}function Od(e){return e.length===0?Pd:e.length===1?e[0]:function(r){return e.reduce(function(n,o){return o(n)},r)}}var Bs=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var o=this,i=kd(t)?t:new Co(t,r,n);return Jr(function(){var s=o,a=s.operator,l=s.source;i.add(a?a.call(i,l):l?o._subscribe(i):o._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=Us(r),new r(function(o,i){var s=new Co({next:function(a){try{t(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});n.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[Ad]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Od(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Us(t),new t(function(n,o){var i;r.subscribe(function(s){return i=s},function(s){return o(s)},function(){return n(i)})})},e.create=function(t){return new e(t)},e}();function Us(e){var t;return(t=e??_d.Promise)!==null&&t!==void 0?t:Promise}function Rd(e){return e&&We(e.next)&&We(e.error)&&We(e.complete)}function kd(e){return e&&e instanceof Fs||Rd(e)&&Ns(e)}var jd=Ls(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),zs=function(e){Tr(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new Ws(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new jd},t.prototype.next=function(r){var n=this;Jr(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=vo(n.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(r)}}catch(c){o={error:c}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}}})},t.prototype.error=function(r){var n=this;Jr(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var o=n.observers;o.length;)o.shift().error(r)}})},t.prototype.complete=function(){var r=this;Jr(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,s=o.isStopped,a=o.observers;return i||s?Is:(this.currentObservers=null,a.push(r),new Xr(function(){n.currentObservers=null,_o(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,s=n.isStopped;o?r.error(i):s&&r.complete()},t.prototype.asObservable=function(){var r=new Bs;return r.source=this,r},t.create=function(r,n){return new Ws(r,n)},t}(Bs),Ws=function(e){Tr(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Is},t}(zs),Dd=function(e){Tr(t,e);function t(r){var n=e.call(this)||this;return n._value=r,n}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(r){var n=e.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},t.prototype.getValue=function(){var r=this,n=r.hasError,o=r.thrownError,i=r._value;if(n)throw o;return this._throwIfClosed(),i},t.prototype.next=function(r){e.prototype.next.call(this,this._value=r)},t}(zs);const Ld=e=>{const{fontsLoaded:t}=js(e.fonts);ks(e.styleSheet);const r=()=>{const n=new Dd(!0);window[lo]=n};E.useEffect(()=>{t&&window[lo].next(!1)},[t]),E.useEffect(()=>{r()},[])},Id=()=>{const e=window[lo];return ss(e,e.getValue()??void 0)},xo="theme",Hs=()=>document.documentElement.dataset[xo]==="dark"?"dark":"light",Nd=()=>{const[e,t]=E.useState(Hs());return E.useEffect(()=>{const r=document.documentElement,n=()=>t(Hs),o=new MutationObserver(i=>{for(const s of i)s.type==="attributes"&&s.attributeName===`data-${xo}`&&n()});return o.observe(r,{attributes:!0,attributeFilter:[`data-${xo}`]}),n(),()=>{o.disconnect()}},[]),e},$d=e=>e!==void 0,Md=e=>e!==!0;let Fd={data:""},Bd=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||Fd},Ud=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,zd=/\/\*[^]*?\*\/| +/g,Vs=/\n+/g,rt=(e,t)=>{let r="",n="",o="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?r=i+" "+s+";":n+=i[1]=="f"?rt(s,i):i+"{"+rt(s,i[1]=="k"?"":t)+"}":typeof s=="object"?n+=rt(s,t?t.replace(/([^,])+/g,a=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):i):s!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=rt.p?rt.p(i,s):i+":"+s+";")}return r+(t&&o?t+"{"+o+"}":o)+n},He={},Gs=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+Gs(e[r]);return t}return e},Wd=(e,t,r,n,o)=>{let i=Gs(e),s=He[i]||(He[i]=(l=>{let c=0,d=11;for(;c<l.length;)d=101*d+l.charCodeAt(c++)>>>0;return"go"+d})(i));if(!He[s]){let l=i!==e?e:(c=>{let d,p,h=[{}];for(;d=Ud.exec(c.replace(zd,""));)d[4]?h.shift():d[3]?(p=d[3].replace(Vs," ").trim(),h.unshift(h[0][p]=h[0][p]||{})):h[0][d[1]]=d[2].replace(Vs," ").trim();return h[0]})(e);He[s]=rt(o?{["@keyframes "+s]:l}:l,r?"":"."+s)}let a=r&&He.g?He.g:null;return r&&(He.g=He[s]),((l,c,d,p)=>{p?c.data=c.data.replace(p,l):c.data.indexOf(l)===-1&&(c.data=d?l+c.data:c.data+l)})(He[s],t,n,a),s},Hd=(e,t,r)=>e.reduce((n,o,i)=>{let s=t[i];if(s&&s.call){let a=s(r),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;s=l?"."+l:a&&typeof a=="object"?a.props?"":rt(a,""):a===!1?"":a}return n+o+(s??"")},"");function tn(e){let t=this||{},r=e.call?e(t.p):e;return Wd(r.unshift?r.raw?Hd(r,[].slice.call(arguments,1),t.p):r.reduce((n,o)=>Object.assign(n,o&&o.call?o(t.p):o),{}):r,Bd(t.target),t.g,t.o,t.k)}let qs,Eo,So;tn.bind({g:1});let Ve=tn.bind({k:1});function Vd(e,t,r,n){rt.p=t,qs=e,Eo=r,So=n}function nt(e,t){let r=this||{};return function(){let n=arguments;function o(i,s){let a=Object.assign({},i),l=a.className||o.className;r.p=Object.assign({theme:Eo&&Eo()},a),r.o=/ *go\d+/.test(l),a.className=tn.apply(r,n)+(l?" "+l:"");let c=e;return e[0]&&(c=a.as||e,delete a.as),So&&c[0]&&So(a),qs(c,a)}return o}}var Gd=e=>typeof e=="function",rn=(e,t)=>Gd(e)?e(t):e,qd=(()=>{let e=0;return()=>(++e).toString()})(),Qs=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Qd=20,nn=new Map,Yd=1e3,Ys=e=>{if(nn.has(e))return;let t=setTimeout(()=>{nn.delete(e),xt({type:4,toastId:e})},Yd);nn.set(e,t)},Kd=e=>{let t=nn.get(e);t&&clearTimeout(t)},To=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Qd)};case 1:return t.toast.id&&Kd(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:r}=t;return e.toasts.find(i=>i.id===r.id)?To(e,{type:1,toast:r}):To(e,{type:0,toast:r});case 3:let{toastId:n}=t;return n?Ys(n):e.toasts.forEach(i=>{Ys(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===n||n===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}))}}},on=[],sn={toasts:[],pausedAt:void 0},xt=e=>{sn=To(sn,e),on.forEach(t=>{t(sn)})},Zd={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Xd=(e={})=>{let[t,r]=E.useState(sn);E.useEffect(()=>(on.push(r),()=>{let o=on.indexOf(r);o>-1&&on.splice(o,1)}),[t]);let n=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)||Zd[o.type],style:{...e.style,...(s=e[o.type])==null?void 0:s.style,...o.style}}});return{...t,toasts:n}},Jd=(e,t="blank",r)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(r==null?void 0:r.id)||qd()}),Ar=e=>(t,r)=>{let n=Jd(t,e,r);return xt({type:2,toast:n}),n.id},be=(e,t)=>Ar("blank")(e,t);be.error=Ar("error"),be.success=Ar("success"),be.loading=Ar("loading"),be.custom=Ar("custom"),be.dismiss=e=>{xt({type:3,toastId:e})},be.remove=e=>xt({type:4,toastId:e}),be.promise=(e,t,r)=>{let n=be.loading(t.loading,{...r,...r==null?void 0:r.loading});return e.then(o=>(be.success(rn(t.success,o),{id:n,...r,...r==null?void 0:r.success}),o)).catch(o=>{be.error(rn(t.error,o),{id:n,...r,...r==null?void 0:r.error})}),e};var ef=(e,t)=>{xt({type:1,toast:{id:e,height:t}})},tf=()=>{xt({type:5,time:Date.now()})},rf=e=>{let{toasts:t,pausedAt:r}=Xd(e);E.useEffect(()=>{if(r)return;let i=Date.now(),s=t.map(a=>{if(a.duration===1/0)return;let l=(a.duration||0)+a.pauseDuration-(i-a.createdAt);if(l<0){a.visible&&be.dismiss(a.id);return}return setTimeout(()=>be.dismiss(a.id),l)});return()=>{s.forEach(a=>a&&clearTimeout(a))}},[t,r]);let n=E.useCallback(()=>{r&&xt({type:6,time:Date.now()})},[r]),o=E.useCallback((i,s)=>{let{reverseOrder:a=!1,gutter:l=8,defaultPosition:c}=s||{},d=t.filter(g=>(g.position||c)===(i.position||c)&&g.height),p=d.findIndex(g=>g.id===i.id),h=d.filter((g,w)=>w<p&&g.visible).length;return d.filter(g=>g.visible).slice(...a?[h+1]:[0,h]).reduce((g,w)=>g+(w.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:ef,startPause:tf,endPause:n,calculateOffset:o}}},nf=Ve`
|
|
34
34
|
from {
|
|
35
35
|
transform: scale(0) rotate(45deg);
|
|
36
36
|
opacity: 0;
|
|
@@ -38,7 +38,7 @@ from {
|
|
|
38
38
|
to {
|
|
39
39
|
transform: scale(1) rotate(45deg);
|
|
40
40
|
opacity: 1;
|
|
41
|
-
}`,
|
|
41
|
+
}`,of=Ve`
|
|
42
42
|
from {
|
|
43
43
|
transform: scale(0);
|
|
44
44
|
opacity: 0;
|
|
@@ -46,7 +46,7 @@ from {
|
|
|
46
46
|
to {
|
|
47
47
|
transform: scale(1);
|
|
48
48
|
opacity: 1;
|
|
49
|
-
}`,
|
|
49
|
+
}`,sf=Ve`
|
|
50
50
|
from {
|
|
51
51
|
transform: scale(0) rotate(90deg);
|
|
52
52
|
opacity: 0;
|
|
@@ -54,7 +54,7 @@ from {
|
|
|
54
54
|
to {
|
|
55
55
|
transform: scale(1) rotate(90deg);
|
|
56
56
|
opacity: 1;
|
|
57
|
-
}`,
|
|
57
|
+
}`,af=nt("div")`
|
|
58
58
|
width: 20px;
|
|
59
59
|
opacity: 0;
|
|
60
60
|
height: 20px;
|
|
@@ -63,14 +63,14 @@ to {
|
|
|
63
63
|
position: relative;
|
|
64
64
|
transform: rotate(45deg);
|
|
65
65
|
|
|
66
|
-
animation: ${
|
|
66
|
+
animation: ${nf} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
67
67
|
forwards;
|
|
68
68
|
animation-delay: 100ms;
|
|
69
69
|
|
|
70
70
|
&:after,
|
|
71
71
|
&:before {
|
|
72
72
|
content: '';
|
|
73
|
-
animation: ${
|
|
73
|
+
animation: ${of} 0.15s ease-out forwards;
|
|
74
74
|
animation-delay: 150ms;
|
|
75
75
|
position: absolute;
|
|
76
76
|
border-radius: 3px;
|
|
@@ -83,18 +83,18 @@ to {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
&:before {
|
|
86
|
-
animation: ${
|
|
86
|
+
animation: ${sf} 0.15s ease-out forwards;
|
|
87
87
|
animation-delay: 180ms;
|
|
88
88
|
transform: rotate(90deg);
|
|
89
89
|
}
|
|
90
|
-
`,
|
|
90
|
+
`,lf=Ve`
|
|
91
91
|
from {
|
|
92
92
|
transform: rotate(0deg);
|
|
93
93
|
}
|
|
94
94
|
to {
|
|
95
95
|
transform: rotate(360deg);
|
|
96
96
|
}
|
|
97
|
-
`,
|
|
97
|
+
`,cf=nt("div")`
|
|
98
98
|
width: 12px;
|
|
99
99
|
height: 12px;
|
|
100
100
|
box-sizing: border-box;
|
|
@@ -102,8 +102,8 @@ to {
|
|
|
102
102
|
border-radius: 100%;
|
|
103
103
|
border-color: ${e=>e.secondary||"#e0e0e0"};
|
|
104
104
|
border-right-color: ${e=>e.primary||"#616161"};
|
|
105
|
-
animation: ${
|
|
106
|
-
`,
|
|
105
|
+
animation: ${lf} 1s linear infinite;
|
|
106
|
+
`,uf=Ve`
|
|
107
107
|
from {
|
|
108
108
|
transform: scale(0) rotate(45deg);
|
|
109
109
|
opacity: 0;
|
|
@@ -111,7 +111,7 @@ from {
|
|
|
111
111
|
to {
|
|
112
112
|
transform: scale(1) rotate(45deg);
|
|
113
113
|
opacity: 1;
|
|
114
|
-
}`,
|
|
114
|
+
}`,df=Ve`
|
|
115
115
|
0% {
|
|
116
116
|
height: 0;
|
|
117
117
|
width: 0;
|
|
@@ -125,7 +125,7 @@ to {
|
|
|
125
125
|
100% {
|
|
126
126
|
opacity: 1;
|
|
127
127
|
height: 10px;
|
|
128
|
-
}`,
|
|
128
|
+
}`,ff=nt("div")`
|
|
129
129
|
width: 20px;
|
|
130
130
|
opacity: 0;
|
|
131
131
|
height: 20px;
|
|
@@ -134,13 +134,13 @@ to {
|
|
|
134
134
|
position: relative;
|
|
135
135
|
transform: rotate(45deg);
|
|
136
136
|
|
|
137
|
-
animation: ${
|
|
137
|
+
animation: ${uf} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
138
138
|
forwards;
|
|
139
139
|
animation-delay: 100ms;
|
|
140
140
|
&:after {
|
|
141
141
|
content: '';
|
|
142
142
|
box-sizing: border-box;
|
|
143
|
-
animation: ${
|
|
143
|
+
animation: ${df} 0.2s ease-out forwards;
|
|
144
144
|
opacity: 0;
|
|
145
145
|
animation-delay: 200ms;
|
|
146
146
|
position: absolute;
|
|
@@ -152,16 +152,16 @@ to {
|
|
|
152
152
|
height: 10px;
|
|
153
153
|
width: 6px;
|
|
154
154
|
}
|
|
155
|
-
`,ff=nt("div")`
|
|
156
|
-
position: absolute;
|
|
157
155
|
`,pf=nt("div")`
|
|
156
|
+
position: absolute;
|
|
157
|
+
`,hf=nt("div")`
|
|
158
158
|
position: relative;
|
|
159
159
|
display: flex;
|
|
160
160
|
justify-content: center;
|
|
161
161
|
align-items: center;
|
|
162
162
|
min-width: 20px;
|
|
163
163
|
min-height: 20px;
|
|
164
|
-
`,
|
|
164
|
+
`,mf=Ve`
|
|
165
165
|
from {
|
|
166
166
|
transform: scale(0.6);
|
|
167
167
|
opacity: 0.4;
|
|
@@ -169,20 +169,20 @@ from {
|
|
|
169
169
|
to {
|
|
170
170
|
transform: scale(1);
|
|
171
171
|
opacity: 1;
|
|
172
|
-
}`,
|
|
172
|
+
}`,gf=nt("div")`
|
|
173
173
|
position: relative;
|
|
174
174
|
transform: scale(0.6);
|
|
175
175
|
opacity: 0.4;
|
|
176
176
|
min-width: 20px;
|
|
177
|
-
animation: ${
|
|
177
|
+
animation: ${mf} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
178
178
|
forwards;
|
|
179
|
-
`,
|
|
179
|
+
`,yf=({toast:e})=>{let{icon:t,type:r,iconTheme:n}=e;return t!==void 0?typeof t=="string"?f.createElement(gf,null,t):t:r==="blank"?null:f.createElement(hf,null,f.createElement(cf,{...n}),r!=="loading"&&f.createElement(pf,null,r==="error"?f.createElement(af,{...n}):f.createElement(ff,{...n})))},vf=e=>`
|
|
180
180
|
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
|
|
181
181
|
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
|
182
|
-
`,
|
|
182
|
+
`,bf=e=>`
|
|
183
183
|
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
|
184
184
|
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
|
|
185
|
-
`,
|
|
185
|
+
`,wf="0%{opacity:0;} 100%{opacity:1;}",_f="0%{opacity:1;} 100%{opacity:0;}",Cf=nt("div")`
|
|
186
186
|
display: flex;
|
|
187
187
|
align-items: center;
|
|
188
188
|
background: #fff;
|
|
@@ -194,20 +194,20 @@ to {
|
|
|
194
194
|
pointer-events: auto;
|
|
195
195
|
padding: 8px 10px;
|
|
196
196
|
border-radius: 8px;
|
|
197
|
-
`,
|
|
197
|
+
`,xf=nt("div")`
|
|
198
198
|
display: flex;
|
|
199
199
|
justify-content: center;
|
|
200
200
|
margin: 4px 10px;
|
|
201
201
|
color: inherit;
|
|
202
202
|
flex: 1 1 auto;
|
|
203
203
|
white-space: pre-line;
|
|
204
|
-
`,
|
|
204
|
+
`,Ef=(e,t)=>{let r=e.includes("top")?1:-1,[n,o]=Qs()?[wf,_f]:[vf(r),bf(r)];return{animation:t?`${Ve(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Ve(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},Sf=f.memo(({toast:e,position:t,style:r,children:n})=>{let o=e.height?Ef(e.position||t||"top-center",e.visible):{opacity:0},i=f.createElement(yf,{toast:e}),s=f.createElement(xf,{...e.ariaProps},rn(e.message,e));return f.createElement(Cf,{className:e.className,style:{...o,...r,...e.style}},typeof n=="function"?n({icon:i,message:s}):f.createElement(f.Fragment,null,i,s))});Vd(f.createElement);var Tf=({id:e,className:t,style:r,onHeightUpdate:n,children:o})=>{let i=f.useCallback(s=>{if(s){let a=()=>{let l=s.getBoundingClientRect().height;n(e,l)};a(),new MutationObserver(a).observe(s,{subtree:!0,childList:!0,characterData:!0})}},[e,n]);return f.createElement("div",{ref:i,className:t,style:r},o)},Af=(e,t)=>{let r=e.includes("top"),n=r?{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:Qs()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(r?1:-1)}px)`,...n,...o}},Pf=tn`
|
|
205
205
|
z-index: 9999;
|
|
206
206
|
> * {
|
|
207
207
|
pointer-events: auto;
|
|
208
208
|
}
|
|
209
|
-
`,an=16,Pf=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:n,children:o,containerStyle:i,containerClassName:s})=>{let{toasts:a,handlers:l}=tf(r);return f.createElement("div",{style:{position:"fixed",zIndex:9999,top:an,left:an,right:an,bottom:an,pointerEvents:"none",...i},className:s,onMouseEnter:l.startPause,onMouseLeave:l.endPause},a.map(c=>{let d=c.position||t,p=l.calculateOffset(c,{reverseOrder:e,gutter:n,defaultPosition:t}),h=Tf(d,p);return f.createElement(Sf,{id:c.id,key:c.id,onHeightUpdate:l.updateHeight,className:c.visible?Af:"",style:h},c.type==="custom"?rn(c.message,c):o?o(c):f.createElement(Ef,{toast:c,position:d}))}))},Ys=be;const Ao=()=>({notify:E.useCallback((t,r,n)=>{const o={style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}};r==="warning"||r==="info"?Ys(t,{...o,icon:r==="warning"?"⚠️":"ℹ️"}):Ys[r](t,o),n&&console.error(n)},[])});var Vt=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(){}},Et=typeof window>"u"||"Deno"in globalThis;function ce(){}function Of(e,t){return typeof e=="function"?e(t):e}function Po(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ks(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ot(e,t){return typeof e=="function"?e(t):e}function Se(e,t){return typeof e=="function"?e(t):e}function Zs(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(n){if(t.queryHash!==Oo(s,t.options))return!1}else if(!Pr(t.queryKey,s))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function Xs(e,t){const{exact:r,status:n,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(St(t.options.mutationKey)!==St(i))return!1}else if(!Pr(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||o&&!o(t))}function Oo(e,t){return((t==null?void 0:t.queryKeyHashFn)||St)(e)}function St(e){return JSON.stringify(e,(t,r)=>ko(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):r)}function Pr(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Pr(e[r],t[r])):!1}function Ro(e,t){if(e===t)return e;const r=Js(e)&&Js(t);if(r||ko(e)&&ko(t)){const n=r?e:Object.keys(e),o=n.length,i=r?t:Object.keys(t),s=i.length,a=r?[]:{};let l=0;for(let c=0;c<s;c++){const d=r?c:i[c];(!r&&n.includes(d)||r)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,l++):(a[d]=Ro(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&l++)}return o===s&&l===o?e:a}return t}function ln(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function Js(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ko(e){if(!ea(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!ea(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function ea(e){return Object.prototype.toString.call(e)==="[object Object]"}function Rf(e){return new Promise(t=>{setTimeout(t,e)})}function jo(e,t,r){if(typeof r.structuralSharing=="function")return r.structuralSharing(e,t);if(r.structuralSharing!==!1){try{return Ro(e,t)}catch(n){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. [${r.queryHash}]: ${n}`),n}return Ro(e,t)}return t}function kf(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function jf(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var cn=Symbol();function ta(e,t){return e.queryFn===cn&&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===cn?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ra(e,t){return typeof e=="function"?e(...t):!!e}var Df=(uu=class extends Vt{constructor(){super();L(this,kt);L(this,ut);L(this,nr);k(this,nr,t=>{if(!Et&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){b(this,ut)||this.setEventListener(b(this,nr))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,ut))==null||t.call(this),k(this,ut,void 0))}setEventListener(t){var r;k(this,nr,t),(r=b(this,ut))==null||r.call(this),k(this,ut,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){b(this,kt)!==t&&(k(this,kt,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof b(this,kt)=="boolean"?b(this,kt):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},kt=new WeakMap,ut=new WeakMap,nr=new WeakMap,uu),Do=new Df,Lf=(du=class extends Vt{constructor(){super();L(this,or,!0);L(this,dt);L(this,ir);k(this,ir,t=>{if(!Et&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){b(this,dt)||this.setEventListener(b(this,ir))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,dt))==null||t.call(this),k(this,dt,void 0))}setEventListener(t){var r;k(this,ir,t),(r=b(this,dt))==null||r.call(this),k(this,dt,t(this.setOnline.bind(this)))}setOnline(t){b(this,or)!==t&&(k(this,or,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return b(this,or)}},or=new WeakMap,dt=new WeakMap,ir=new WeakMap,du),un=new Lf;function Lo(){let e,t;const r=new Promise((o,i)=>{e=o,t=i});r.status="pending",r.catch(()=>{});function n(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{n({status:"fulfilled",value:o}),e(o)},r.reject=o=>{n({status:"rejected",reason:o}),t(o)},r}function If(e){return Math.min(1e3*2**e,3e4)}function na(e){return(e??"online")==="online"?un.isOnline():!0}var oa=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Io(e){return e instanceof oa}function ia(e){let t=!1,r=0,n=!1,o;const i=Lo(),s=m=>{var y;n||(h(new oa(m)),(y=e.abort)==null||y.call(e))},a=()=>{t=!0},l=()=>{t=!1},c=()=>Do.isFocused()&&(e.networkMode==="always"||un.isOnline())&&e.canRun(),d=()=>na(e.networkMode)&&e.canRun(),p=m=>{var y;n||(n=!0,(y=e.onSuccess)==null||y.call(e,m),o==null||o(),i.resolve(m))},h=m=>{var y;n||(n=!0,(y=e.onError)==null||y.call(e,m),o==null||o(),i.reject(m))},g=()=>new Promise(m=>{var y;o=_=>{(n||c())&&m(_)},(y=e.onPause)==null||y.call(e)}).then(()=>{var m;o=void 0,n||(m=e.onContinue)==null||m.call(e)}),w=()=>{if(n)return;let m;const y=r===0?e.initialPromise:void 0;try{m=y??e.fn()}catch(_){m=Promise.reject(_)}Promise.resolve(m).then(p).catch(_=>{var R;if(n)return;const C=e.retry??(Et?0:3),T=e.retryDelay??If,S=typeof T=="function"?T(r,_):T,A=C===!0||typeof C=="number"&&r<C||typeof C=="function"&&C(r,_);if(t||!A){h(_);return}r++,(R=e.onFail)==null||R.call(e,r,_),Rf(S).then(()=>c()?void 0:g()).then(()=>{t?h(_):w()})})};return{promise:i,cancel:s,continue:()=>(o==null||o(),i),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?w():g().then(w),i)}}var Nf=e=>setTimeout(e,0);function $f(){let e=[],t=0,r=a=>{a()},n=a=>{a()},o=Nf;const i=a=>{t?e.push(a):o(()=>{r(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{n(()=>{a.forEach(l=>{r(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{r=a},setBatchNotifyFunction:a=>{n=a},setScheduler:a=>{o=a}}}var oe=$f(),sa=(fu=class{constructor(){L(this,jt)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Po(this.gcTime)&&k(this,jt,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Et?1/0:5*60*1e3))}clearGcTimeout(){b(this,jt)&&(clearTimeout(b(this,jt)),k(this,jt,void 0))}},jt=new WeakMap,fu),Mf=(pu=class extends sa{constructor(t){super();L(this,ke);L(this,sr);L(this,ar);L(this,xe);L(this,Dt);L(this,le);L(this,Fr);L(this,Lt);k(this,Lt,!1),k(this,Fr,t.defaultOptions),this.setOptions(t.options),this.observers=[],k(this,Dt,t.client),k(this,xe,b(this,Dt).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,k(this,sr,Ff(this.options)),this.state=t.state??b(this,sr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=b(this,le))==null?void 0:t.promise}setOptions(t){this.options={...b(this,Fr),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&b(this,xe).remove(this)}setData(t,r){const n=jo(this.state.data,t,this.options);return F(this,ke,Je).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){F(this,ke,Je).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,o;const r=(n=b(this,le))==null?void 0:n.promise;return(o=b(this,le))==null||o.cancel(t),r?r.then(ce).catch(ce):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(b(this,sr))}isActive(){return this.observers.some(t=>Se(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===cn||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ot(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:!Ks(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=b(this,le))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=b(this,le))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),b(this,xe).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(b(this,le)&&(b(this,Lt)?b(this,le).cancel({revert:!0}):b(this,le).cancelRetry()),this.scheduleGc()),b(this,xe).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||F(this,ke,Je).call(this,{type:"invalidate"})}fetch(t,r){var c,d,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(b(this,le))return b(this,le).continueRetry(),b(this,le).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(g=>g.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 n=new AbortController,o=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(k(this,Lt,!0),n.signal)})},i=()=>{const h=ta(this.options,r),w=(()=>{const m={client:b(this,Dt),queryKey:this.queryKey,meta:this.meta};return o(m),m})();return k(this,Lt,!1),this.options.persister?this.options.persister(h,w,this):h(w)},a=(()=>{const h={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:b(this,Dt),state:this.state,fetchFn:i};return o(h),h})();(c=this.options.behavior)==null||c.onFetch(a,this),k(this,ar,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&F(this,ke,Je).call(this,{type:"fetch",meta:(p=a.fetchOptions)==null?void 0:p.meta});const l=h=>{var g,w,m,y;Io(h)&&h.silent||F(this,ke,Je).call(this,{type:"error",error:h}),Io(h)||((w=(g=b(this,xe).config).onError)==null||w.call(g,h,this),(y=(m=b(this,xe).config).onSettled)==null||y.call(m,this.state.data,h,this)),this.scheduleGc()};return k(this,le,ia({initialPromise:r==null?void 0:r.initialPromise,fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:h=>{var g,w,m,y;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}`),l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(_){l(_);return}(w=(g=b(this,xe).config).onSuccess)==null||w.call(g,h,this),(y=(m=b(this,xe).config).onSettled)==null||y.call(m,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,g)=>{F(this,ke,Je).call(this,{type:"failed",failureCount:h,error:g})},onPause:()=>{F(this,ke,Je).call(this,{type:"pause"})},onContinue:()=>{F(this,ke,Je).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),b(this,le).start()}},sr=new WeakMap,ar=new WeakMap,xe=new WeakMap,Dt=new WeakMap,le=new WeakMap,Fr=new WeakMap,Lt=new WeakMap,ke=new WeakSet,Je=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...aa(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...n,data:t.data,dataUpdateCount:n.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 Io(o)&&o.revert&&b(this,ar)?{...b(this,ar),fetchStatus:"idle"}:{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),oe.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),b(this,xe).notify({query:this,type:"updated",action:t})})},pu);function aa(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:na(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Ff(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Bf=(hu=class extends Vt{constructor(t={}){super();L(this,Be);this.config=t,k(this,Be,new Map)}build(t,r,n){const o=r.queryKey,i=r.queryHash??Oo(o,r);let s=this.get(i);return s||(s=new Mf({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){b(this,Be).has(t.queryHash)||(b(this,Be).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=b(this,Be).get(t.queryHash);r&&(t.destroy(),r===t&&b(this,Be).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){oe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return b(this,Be).get(t)}getAll(){return[...b(this,Be).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Zs(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>Zs(t,n)):r}notify(t){oe.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){oe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){oe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Be=new WeakMap,hu),Uf=(mu=class extends sa{constructor(t){super();L(this,ze);L(this,Ue);L(this,ue);L(this,It);this.mutationId=t.mutationId,k(this,ue,t.mutationCache),k(this,Ue,[]),this.state=t.state||la(),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,Ue).includes(t)||(b(this,Ue).push(t),this.clearGcTimeout(),b(this,ue).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){k(this,Ue,b(this,Ue).filter(r=>r!==t)),this.scheduleGc(),b(this,ue).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){b(this,Ue).length||(this.state.status==="pending"?this.scheduleGc():b(this,ue).remove(this))}continue(){var t;return((t=b(this,It))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,a,l,c,d,p,h,g,w,m,y,_,C,T,S,A,R,O,M;const r=()=>{F(this,ze,wt).call(this,{type:"continue"})};k(this,It,ia({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(N,I)=>{F(this,ze,wt).call(this,{type:"failed",failureCount:N,error:I})},onPause:()=>{F(this,ze,wt).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>b(this,ue).canRun(this)}));const n=this.state.status==="pending",o=!b(this,It).canStart();try{if(n)r();else{F(this,ze,wt).call(this,{type:"pending",variables:t,isPaused:o}),await((s=(i=b(this,ue).config).onMutate)==null?void 0:s.call(i,t,this));const I=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));I!==this.state.context&&F(this,ze,wt).call(this,{type:"pending",context:I,variables:t,isPaused:o})}const N=await b(this,It).start();return await((d=(c=b(this,ue).config).onSuccess)==null?void 0:d.call(c,N,t,this.state.context,this)),await((h=(p=this.options).onSuccess)==null?void 0:h.call(p,N,t,this.state.context)),await((w=(g=b(this,ue).config).onSettled)==null?void 0:w.call(g,N,null,this.state.variables,this.state.context,this)),await((y=(m=this.options).onSettled)==null?void 0:y.call(m,N,null,t,this.state.context)),F(this,ze,wt).call(this,{type:"success",data:N}),N}catch(N){try{throw await((C=(_=b(this,ue).config).onError)==null?void 0:C.call(_,N,t,this.state.context,this)),await((S=(T=this.options).onError)==null?void 0:S.call(T,N,t,this.state.context)),await((R=(A=b(this,ue).config).onSettled)==null?void 0:R.call(A,void 0,N,this.state.variables,this.state.context,this)),await((M=(O=this.options).onSettled)==null?void 0:M.call(O,void 0,N,t,this.state.context)),N}finally{F(this,ze,wt).call(this,{type:"error",error:N})}}finally{b(this,ue).runNext(this)}}},Ue=new WeakMap,ue=new WeakMap,It=new WeakMap,ze=new WeakSet,wt=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,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{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),oe.batch(()=>{b(this,Ue).forEach(n=>{n.onMutationUpdate(t)}),b(this,ue).notify({mutation:this,type:"updated",action:t})})},mu);function la(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var zf=(gu=class extends Vt{constructor(t={}){super();L(this,Ye);L(this,je);L(this,Br);this.config=t,k(this,Ye,new Set),k(this,je,new Map),k(this,Br,0)}build(t,r,n){const o=new Uf({mutationCache:this,mutationId:++so(this,Br)._,options:t.defaultMutationOptions(r),state:n});return this.add(o),o}add(t){b(this,Ye).add(t);const r=dn(t);if(typeof r=="string"){const n=b(this,je).get(r);n?n.push(t):b(this,je).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(b(this,Ye).delete(t)){const r=dn(t);if(typeof r=="string"){const n=b(this,je).get(r);if(n)if(n.length>1){const o=n.indexOf(t);o!==-1&&n.splice(o,1)}else n[0]===t&&b(this,je).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=dn(t);if(typeof r=="string"){const n=b(this,je).get(r),o=n==null?void 0:n.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var n;const r=dn(t);if(typeof r=="string"){const o=(n=b(this,je).get(r))==null?void 0:n.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){oe.batch(()=>{b(this,Ye).forEach(t=>{this.notify({type:"removed",mutation:t})}),b(this,Ye).clear(),b(this,je).clear()})}getAll(){return Array.from(b(this,Ye))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Xs(r,n))}findAll(t={}){return this.getAll().filter(r=>Xs(t,r))}notify(t){oe.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return oe.batch(()=>Promise.all(t.map(r=>r.continue().catch(ce))))}},Ye=new WeakMap,je=new WeakMap,Br=new WeakMap,gu);function dn(e){var t;return(t=e.options.scope)==null?void 0:t.id}function ca(e){return{onFetch:(t,r)=>{var d,p,h,g,w;const n=t.options,o=(h=(p=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:p.fetchMore)==null?void 0:h.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:[]},l=0;const c=async()=>{let m=!1;const y=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},_=ta(t.options,t.fetchOptions),C=async(T,S,A)=>{if(m)return Promise.reject();if(S==null&&T.pages.length)return Promise.resolve(T);const O=(()=>{const G={client:t.client,queryKey:t.queryKey,pageParam:S,direction:A?"backward":"forward",meta:t.options.meta};return y(G),G})(),M=await _(O),{maxPages:N}=t.options,I=A?jf:kf;return{pages:I(T.pages,M,N),pageParams:I(T.pageParams,S,N)}};if(o&&i.length){const T=o==="backward",S=T?Wf:ua,A={pages:i,pageParams:s},R=S(n,A);a=await C(A,R,T)}else{const T=e??i.length;do{const S=l===0?s[0]??n.initialPageParam:ua(n,a);if(l>0&&S==null)break;a=await C(a,S),l++}while(l<T)}return a};t.options.persister?t.fetchFn=()=>{var m,y;return(y=(m=t.options).persister)==null?void 0:y.call(m,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=c}}}function ua(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function Wf(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var Hf=(yu=class{constructor(e={}){L(this,X);L(this,ft);L(this,pt);L(this,lr);L(this,cr);L(this,ht);L(this,ur);L(this,dr);k(this,X,e.queryCache||new Bf),k(this,ft,e.mutationCache||new zf),k(this,pt,e.defaultOptions||{}),k(this,lr,new Map),k(this,cr,new Map),k(this,ht,0)}mount(){so(this,ht)._++,b(this,ht)===1&&(k(this,ur,Do.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,X).onFocus())})),k(this,dr,un.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,X).onOnline())})))}unmount(){var e,t;so(this,ht)._--,b(this,ht)===0&&((e=b(this,ur))==null||e.call(this),k(this,ur,void 0),(t=b(this,dr))==null||t.call(this),k(this,dr,void 0))}isFetching(e){return b(this,X).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return b(this,ft).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=b(this,X).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=b(this,X).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(ot(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return b(this,X).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),o=b(this,X).get(n.queryHash),i=o==null?void 0:o.state.data,s=Of(t,i);if(s!==void 0)return b(this,X).build(this,n).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return oe.batch(()=>b(this,X).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=b(this,X).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=b(this,X);oe.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=b(this,X);return oe.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=oe.batch(()=>b(this,X).findAll(e).map(o=>o.cancel(r)));return Promise.all(n).then(ce).catch(ce)}invalidateQueries(e,t={}){return oe.batch(()=>(b(this,X).findAll(e).forEach(r=>{r.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 r={...t,cancelRefetch:t.cancelRefetch??!0},n=oe.batch(()=>b(this,X).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,r);return r.throwOnError||(i=i.catch(ce)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(n).then(ce)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=b(this,X).build(this,t);return r.isStaleByTime(ot(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ce).catch(ce)}fetchInfiniteQuery(e){return e.behavior=ca(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ce).catch(ce)}ensureInfiniteQueryData(e){return e.behavior=ca(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return un.isOnline()?b(this,ft).resumePausedMutations():Promise.resolve()}getQueryCache(){return b(this,X)}getMutationCache(){return b(this,ft)}getDefaultOptions(){return b(this,pt)}setDefaultOptions(e){k(this,pt,e)}setQueryDefaults(e,t){b(this,lr).set(St(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...b(this,lr).values()],r={};return t.forEach(n=>{Pr(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){b(this,cr).set(St(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...b(this,cr).values()],r={};return t.forEach(n=>{Pr(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...b(this,pt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Oo(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===cn&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...b(this,pt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){b(this,X).clear(),b(this,ft).clear()}},X=new WeakMap,ft=new WeakMap,pt=new WeakMap,lr=new WeakMap,cr=new WeakMap,ht=new WeakMap,ur=new WeakMap,dr=new WeakMap,yu),Vf=(vu=class extends Vt{constructor(t,r){super();L(this,V);L(this,ge);L(this,z);L(this,Ur);L(this,de);L(this,Nt);L(this,fr);L(this,mt);L(this,gt);L(this,zr);L(this,pr);L(this,hr);L(this,$t);L(this,Mt);L(this,yt);L(this,mr,new Set);this.options=r,k(this,ge,t),k(this,gt,null),k(this,mt,Lo()),this.options.experimental_prefetchInRender||b(this,mt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(b(this,z).addObserver(this),da(b(this,z),this.options)?F(this,V,Vr).call(this):this.updateResult(),F(this,V,Zi).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return No(b(this,z),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return No(b(this,z),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,F(this,V,Xi).call(this),F(this,V,Ji).call(this),b(this,z).removeObserver(this)}setOptions(t){const r=this.options,n=b(this,z);if(this.options=b(this,ge).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Se(this.options.enabled,b(this,z))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");F(this,V,es).call(this),b(this,z).setOptions(this.options),r._defaulted&&!ln(this.options,r)&&b(this,ge).getQueryCache().notify({type:"observerOptionsUpdated",query:b(this,z),observer:this});const o=this.hasListeners();o&&fa(b(this,z),n,this.options,r)&&F(this,V,Vr).call(this),this.updateResult(),o&&(b(this,z)!==n||Se(this.options.enabled,b(this,z))!==Se(r.enabled,b(this,z))||ot(this.options.staleTime,b(this,z))!==ot(r.staleTime,b(this,z)))&&F(this,V,Qi).call(this);const i=F(this,V,Yi).call(this);o&&(b(this,z)!==n||Se(this.options.enabled,b(this,z))!==Se(r.enabled,b(this,z))||i!==b(this,yt))&&F(this,V,Ki).call(this,i)}getOptimisticResult(t){const r=b(this,ge).getQueryCache().build(b(this,ge),t),n=this.createResult(r,t);return qf(this,n)&&(k(this,de,n),k(this,fr,this.options),k(this,Nt,b(this,z).state)),n}getCurrentResult(){return b(this,de)}trackResult(t,r){return new Proxy(t,{get:(n,o)=>(this.trackProp(o),r==null||r(o),Reflect.get(n,o))})}trackProp(t){b(this,mr).add(t)}getCurrentQuery(){return b(this,z)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=b(this,ge).defaultQueryOptions(t),n=b(this,ge).getQueryCache().build(b(this,ge),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return F(this,V,Vr).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),b(this,de)))}createResult(t,r){var N;const n=b(this,z),o=this.options,i=b(this,de),s=b(this,Nt),a=b(this,fr),c=t!==n?t.state:b(this,Ur),{state:d}=t;let p={...d},h=!1,g;if(r._optimisticResults){const I=this.hasListeners(),G=!I&&da(t,r),Y=I&&fa(t,n,r,o);(G||Y)&&(p={...p,...aa(d.data,t.options)}),r._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:w,errorUpdatedAt:m,status:y}=p;g=p.data;let _=!1;if(r.placeholderData!==void 0&&g===void 0&&y==="pending"){let I;i!=null&&i.isPlaceholderData&&r.placeholderData===(a==null?void 0:a.placeholderData)?(I=i.data,_=!0):I=typeof r.placeholderData=="function"?r.placeholderData((N=b(this,hr))==null?void 0:N.state.data,b(this,hr)):r.placeholderData,I!==void 0&&(y="success",g=jo(i==null?void 0:i.data,I,r),h=!0)}if(r.select&&g!==void 0&&!_)if(i&&g===(s==null?void 0:s.data)&&r.select===b(this,zr))g=b(this,pr);else try{k(this,zr,r.select),g=r.select(g),g=jo(i==null?void 0:i.data,g,r),k(this,pr,g),k(this,gt,null)}catch(I){k(this,gt,I)}b(this,gt)&&(w=b(this,gt),g=b(this,pr),m=Date.now(),y="error");const C=p.fetchStatus==="fetching",T=y==="pending",S=y==="error",A=T&&C,R=g!==void 0,M={status:y,fetchStatus:p.fetchStatus,isPending:T,isSuccess:y==="success",isError:S,isInitialLoading:A,isLoading:A,data:g,dataUpdatedAt:p.dataUpdatedAt,error:w,errorUpdatedAt:m,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>c.dataUpdateCount||p.errorUpdateCount>c.errorUpdateCount,isFetching:C,isRefetching:C&&!T,isLoadingError:S&&!R,isPaused:p.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:S&&R,isStale:$o(t,r),refetch:this.refetch,promise:b(this,mt)};if(this.options.experimental_prefetchInRender){const I=H=>{M.status==="error"?H.reject(M.error):M.data!==void 0&&H.resolve(M.data)},G=()=>{const H=k(this,mt,M.promise=Lo());I(H)},Y=b(this,mt);switch(Y.status){case"pending":t.queryHash===n.queryHash&&I(Y);break;case"fulfilled":(M.status==="error"||M.data!==Y.value)&&G();break;case"rejected":(M.status!=="error"||M.error!==Y.reason)&&G();break}}return M}updateResult(){const t=b(this,de),r=this.createResult(b(this,z),this.options);if(k(this,Nt,b(this,z).state),k(this,fr,this.options),b(this,Nt).data!==void 0&&k(this,hr,b(this,z)),ln(r,t))return;k(this,de,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,i=typeof o=="function"?o():o;if(i==="all"||!i&&!b(this,mr).size)return!0;const s=new Set(i??b(this,mr));return this.options.throwOnError&&s.add("error"),Object.keys(b(this,de)).some(a=>{const l=a;return b(this,de)[l]!==t[l]&&s.has(l)})};F(this,V,Du).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&F(this,V,Zi).call(this)}},ge=new WeakMap,z=new WeakMap,Ur=new WeakMap,de=new WeakMap,Nt=new WeakMap,fr=new WeakMap,mt=new WeakMap,gt=new WeakMap,zr=new WeakMap,pr=new WeakMap,hr=new WeakMap,$t=new WeakMap,Mt=new WeakMap,yt=new WeakMap,mr=new WeakMap,V=new WeakSet,Vr=function(t){F(this,V,es).call(this);let r=b(this,z).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(ce)),r},Qi=function(){F(this,V,Xi).call(this);const t=ot(this.options.staleTime,b(this,z));if(Et||b(this,de).isStale||!Po(t))return;const n=Ks(b(this,de).dataUpdatedAt,t)+1;k(this,$t,setTimeout(()=>{b(this,de).isStale||this.updateResult()},n))},Yi=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(b(this,z)):this.options.refetchInterval)??!1},Ki=function(t){F(this,V,Ji).call(this),k(this,yt,t),!(Et||Se(this.options.enabled,b(this,z))===!1||!Po(b(this,yt))||b(this,yt)===0)&&k(this,Mt,setInterval(()=>{(this.options.refetchIntervalInBackground||Do.isFocused())&&F(this,V,Vr).call(this)},b(this,yt)))},Zi=function(){F(this,V,Qi).call(this),F(this,V,Ki).call(this,F(this,V,Yi).call(this))},Xi=function(){b(this,$t)&&(clearTimeout(b(this,$t)),k(this,$t,void 0))},Ji=function(){b(this,Mt)&&(clearInterval(b(this,Mt)),k(this,Mt,void 0))},es=function(){const t=b(this,ge).getQueryCache().build(b(this,ge),this.options);if(t===b(this,z))return;const r=b(this,z);k(this,z,t),k(this,Ur,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},Du=function(t){oe.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(b(this,de))}),b(this,ge).getQueryCache().notify({query:b(this,z),type:"observerResultsUpdated"})})},vu);function Gf(e,t){return Se(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function da(e,t){return Gf(e,t)||e.state.data!==void 0&&No(e,t,t.refetchOnMount)}function No(e,t,r){if(Se(t.enabled,e)!==!1&&ot(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&$o(e,t)}return!1}function fa(e,t,r,n){return(e!==t||Se(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&$o(e,r)}function $o(e,t){return Se(t.enabled,e)!==!1&&e.isStaleByTime(ot(t.staleTime,e))}function qf(e,t){return!ln(e.getCurrentResult(),t)}var Qf=(bu=class extends Vt{constructor(r,n){super();L(this,Ze);L(this,vt);L(this,bt);L(this,ye);L(this,Ke);k(this,vt,r),this.setOptions(n),this.bindMethods(),F(this,Ze,ao).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var o;const n=this.options;this.options=b(this,vt).defaultMutationOptions(r),ln(this.options,n)||b(this,vt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:b(this,ye),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&St(n.mutationKey)!==St(this.options.mutationKey)?this.reset():((o=b(this,ye))==null?void 0:o.state.status)==="pending"&&b(this,ye).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=b(this,ye))==null||r.removeObserver(this)}onMutationUpdate(r){F(this,Ze,ao).call(this),F(this,Ze,ts).call(this,r)}getCurrentResult(){return b(this,bt)}reset(){var r;(r=b(this,ye))==null||r.removeObserver(this),k(this,ye,void 0),F(this,Ze,ao).call(this),F(this,Ze,ts).call(this)}mutate(r,n){var o;return k(this,Ke,n),(o=b(this,ye))==null||o.removeObserver(this),k(this,ye,b(this,vt).getMutationCache().build(b(this,vt),this.options)),b(this,ye).addObserver(this),b(this,ye).execute(r)}},vt=new WeakMap,bt=new WeakMap,ye=new WeakMap,Ke=new WeakMap,Ze=new WeakSet,ao=function(){var n;const r=((n=b(this,ye))==null?void 0:n.state)??la();k(this,bt,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},ts=function(r){oe.batch(()=>{var n,o,i,s,a,l,c,d;if(b(this,Ke)&&this.hasListeners()){const p=b(this,bt).variables,h=b(this,bt).context;(r==null?void 0:r.type)==="success"?((o=(n=b(this,Ke)).onSuccess)==null||o.call(n,r.data,p,h),(s=(i=b(this,Ke)).onSettled)==null||s.call(i,r.data,null,p,h)):(r==null?void 0:r.type)==="error"&&((l=(a=b(this,Ke)).onError)==null||l.call(a,r.error,p,h),(d=(c=b(this,Ke)).onSettled)==null||d.call(c,void 0,r.error,p,h))}this.listeners.forEach(p=>{p(b(this,bt))})})},bu),pa=f.createContext(void 0),Mo=e=>{const t=f.useContext(pa);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Yf=({client:e,children:t})=>(f.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(pa.Provider,{value:e,children:t})),ha=f.createContext(!1),Kf=()=>f.useContext(ha);ha.Provider;function Zf(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Xf=f.createContext(Zf()),Jf=()=>f.useContext(Xf),ep=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},tp=e=>{f.useEffect(()=>{e.clearReset()},[e])},rp=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(o&&e.data===void 0||ra(r,[e.error,n])),np=e=>{if(e.suspense){const t=n=>n==="static"?n:Math.max(n??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...n)=>t(r(...n)):t(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},op=(e,t)=>e.isLoading&&e.isFetching&&!t,ip=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,ma=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function sp(e,t,r){var p,h,g,w,m;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 n=Kf(),o=Jf(),i=Mo(),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=n?"isRestoring":"optimistic",np(s),ep(s,o),tp(o);const a=!i.getQueryCache().get(s.queryHash),[l]=f.useState(()=>new t(i,s)),c=l.getOptimisticResult(s),d=!n&&e.subscribed!==!1;if(f.useSyncExternalStore(f.useCallback(y=>{const _=d?l.subscribe(oe.batchCalls(y)):ce;return l.updateResult(),_},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),f.useEffect(()=>{l.setOptions(s)},[s,l]),ip(s,c))throw ma(s,l,o);if(rp({result:c,errorResetBoundary:o,throwOnError:s.throwOnError,query:i.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw c.error;if((w=(g=i.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||w.call(g,s,c),s.experimental_prefetchInRender&&!Et&&op(c,n)){const y=a?ma(s,l,o):(m=i.getQueryCache().get(s.queryHash))==null?void 0:m.promise;y==null||y.catch(ce).finally(()=>{l.updateResult()})}return s.notifyOnChangeProps?c:l.trackResult(c)}function ga(e,t){return sp(e,Vf)}function fn(e,t){const r=Mo(),[n]=f.useState(()=>new Qf(r,e));f.useEffect(()=>{n.setOptions(e)},[n,e]);const o=f.useSyncExternalStore(f.useCallback(s=>n.subscribe(oe.batchCalls(s)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),i=f.useCallback((s,a)=>{n.mutate(s,a).catch(ce)},[n]);if(o.error&&ra(n.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}const pn={STALE_TIME:1e3*60*5,GC_TIME:1e3*60*10,RETRY_COUNT:1,RETRY_DELAY:1e3},ya={refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,staleTime:pn.STALE_TIME,gcTime:pn.GC_TIME,retry:pn.RETRY_COUNT,retryDelay:pn.RETRY_DELAY,enable:!0},hn=e=>e instanceof Error?e.message:String(e),va=(e,t,r)=>{const n=Mo(),{notify:o}=Ao(),{createFn:i,readFn:s,readByIdFn:a,updateFn:l,deleteFn:c,partialUpdateFn:d}=r,p=()=>{n.invalidateQueries({queryKey:[e]})},h=(S,A,R,O)=>o(O!=null&&O.overrideSuccessMessage?O==null?void 0:O.overrideSuccessMessage(S,A):R,"success"),g=(S,A,R,O)=>o(O!=null&&O.overrideErrorMessage?O==null?void 0:O.overrideErrorMessage(S,A):R,"error");return{useCreate:S=>fn({mutationFn:A=>i(A),onSuccess:A=>{p(),h(t,A,`${t} created successfully`,S)},onError:A=>{g(t,A,`Error creating ${t}: ${hn(A)}`,S)}}),useReadQuery:S=>ga({queryKey:[e],queryFn:s,...ya,...S}),useReadByIdQuery:(S,A)=>ga({queryKey:[e,S],queryFn:()=>a(S),...ya,enabled:!!S,...A}),useUpdate:S=>fn({mutationFn:({id:A,data:R})=>l(A,R),onSuccess:A=>{p(),h(t,A,`${t} updated successfully`,S)},onError:A=>{g(t,A,`Error updating ${t}: ${hn(A)}`,S)}}),usePartialUpdate:S=>d&&fn({mutationFn:({id:A,data:R})=>d(A,R),onSuccess:A=>{p(),h(t,A,`${t} updated successfully`,S)},onError:A=>{g(t,A,`Error updating ${t}: ${hn(A)}`,S)}}),useDelete:S=>fn({mutationFn:A=>c(A),onSuccess:()=>{p(),h(t,null,`${t} deleted successfully`,S)},onError:A=>{g(t,A,`Error deleting ${t}: ${hn(A)}`,S)}}),invalidateQueries:p}},ap=(e,t)=>va(e,t,{createFn:r=>fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(n=>n.json()),deleteFn:r=>fetch(`${e}/${r}`,{method:"DELETE"}).then(n=>{if(!n.ok)throw new Error(`Error deleting: ${n.status}`)}),readByIdFn:r=>fetch(`${e}/${r}`).then(n=>n.json()),readFn:()=>fetch(e).then(r=>r.json()),updateFn:(r,n)=>fetch(`${e}/${r}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).then(o=>o.json()),partialUpdateFn:(r,n)=>fetch(`${e}/${r}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).then(o=>o.json())}),lp={SINGLE_TENANT:"single-tenant"},cp={COOKIE:"cookie"},Fo="tenant",ba="tenant",wa="tenant",up=lp.SINGLE_TENANT,dp=cp.COOKIE,fp={mode:up,clientSideMode:dp,tenantIDPProvisioningStrategy:"none"};class pp{setTenant(t,r){const n=new URL(window.location.href);n.searchParams.set(ba,t.name),window.location.href=n.toString()}getCurrentTenantName(){const t=new URL(window.location.href);return new URLSearchParams(t.search).get(ba)}}class hp{setTenant(t,r){sessionStorage.setItem(wa,t.name),window.location.reload()}getCurrentTenantName(){return sessionStorage.getItem(wa)}}/*! js-cookie v3.0.5 | MIT */function mn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var mp={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 Bo(e,t){function r(o,i,s){if(!(typeof document>"u")){s=mn({},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 l in s)s[l]&&(a+="; "+l,s[l]!==!0&&(a+="="+s[l].split(";")[0]));return document.cookie=o+"="+e.write(i,o)+a}}function n(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var i=document.cookie?document.cookie.split("; "):[],s={},a=0;a<i.length;a++){var l=i[a].split("="),c=l.slice(1).join("=");try{var d=decodeURIComponent(l[0]);if(s[d]=e.read(c,d),o===d)break}catch{}}return o?s[o]:s}}return Object.create({set:r,get:n,remove:function(o,i){r(o,"",mn({},i,{expires:-1}))},withAttributes:function(o){return Bo(this.converter,mn({},this.attributes,o))},withConverter:function(o){return Bo(mn({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Uo=Bo(mp,{path:"/"});class gp{setTenant(t,r){t?Uo.set(Fo,t.name):Uo.remove(Fo),window.location.reload()}getCurrentTenantName(){return Uo.get(Fo)}}class yp{extractSubdomain(t){if(t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t))return"";const r=t.split(".");if(r.length<2||r.length===2||r[0]==="www"&&r.length===3)return"";const o=(r[0]==="www"?r.slice(1):r).slice(0,-2);return o.length>0?o.join("."):""}getBaseDomain(t){const r=t.split(".");return t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t)||r.length<=2?t:r.slice(-2).join(".")}setTenant(t,r){var c;const n=(c=r.urlPatterns)==null?void 0:c.find(d=>d.patternType==="subdomain"&&d.tenantId===t.id&&d.isActive);if(!n)throw new Error(`No active subdomain pattern found for tenant '${t.name}'`);const o=new URL(window.location.href),i=n.patternValue,s=o.hostname,a=this.getBaseDomain(s),l=i?`${i}.${a}`:a;o.hostname=l,window.location.href=o.toString()}getCurrentTenantName(){const t=window.location.hostname;return this.extractSubdomain(t)||null}}const _a={queryParams:new pp,sessionStorage:new hp,cookie:new gp,subdomain:new yp},vp=e=>{const t=_a[e.clientSideMode];if(!t)throw new Error(`Client side tenant mode '${e.clientSideMode}' is not supported ${JSON.stringify({strategies:_a},null,2)}`);return t},bp=(e,t,r)=>{const n=t.find(i=>i.name===r);if(!n)throw Error("No tenant permission");return vp(e).setTenant(n,e),n},wp=()=>{const[e,t]=Cr(),{tenants:r=[],currentTenant:n,tenantConfig:o=fp}=e,i=E.useCallback(s=>{const a=bp(o,r,s);t({...e,currentTenant:a})},[o,e]);return{tenants:r,currentTenant:n,tenantConfig:o,selectTenant:i}};function _p(e){if(!e.ok)throw console.error(e),new Error(e.statusText)}async function gn(e,t,r,n){const o=await e(`/user-states/${encodeURIComponent(t)}/${encodeURIComponent(r)}`,n);return _p(o),o}class yn{static async get(t,r,n){const i=await gn(t,r,n,{method:"GET",headers:{"Content-Type":"application/json"}});return i.status===204?null:await i.json()}static async create(t,r,n,o){const i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await gn(t,r,n,i)).json()}static async update(t,r,n,o){const i={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await gn(t,r,n,i)).json()}static async delete(t,r,n){return await gn(t,r,n,{method:"DELETE",headers:{"Content-Type":"application/json"}}),null}}const Cp=e=>{const t=go("@bluealba/pae-nestjs-gateway-service"),r=Es();if(!r)throw new Error("You must call the useUserState hook within a PAE application.");const[n,o]=E.useState(null),[i,s]=E.useState(!1),[a,l]=E.useState(!1),[c,d]=E.useState(null),p=(C,T)=>E.useCallback(async({newValue:S,shouldThrowError:A}={})=>{try{l(!0),d(null);const R=await C(t,r,e,S);return o(R),R?R.value:null}catch(R){if(d(R==null?void 0:R.message),console.error(`Failed to ${T} ${e}:`,R),A)throw R;return null}finally{l(!1)}},[t,r,e]),h=p(yn.get,"fetch"),g=p(yn.create,"create"),w=p(yn.update,"update"),m=p(yn.delete,"delete"),y=E.useCallback(async()=>{try{await h()}finally{s(!0)}},[h]);E.useEffect(()=>{y()},[y]);const _=E.useCallback(async(C,T=!1)=>n==null?await g({newValue:C,shouldThrowError:T}):await w({newValue:C,shouldThrowError:T}),[n,g,w]);return{value:n?n.value:null,hasFetched:i,loading:a,error:c,setValue:_,createValue:g,updateValue:w,deleteValue:m}},Ca="__PAE_EXTENSION_POINT_REACT_CONTENT_EMPTY__",xp=({module:e,point:t,children:r})=>(Ps(e,t,r??Ca),null),xa=({name:e,children:t,...r})=>{const n=As(e);if(n===Ca)return null;if(!n)return u.jsx(u.Fragment,{children:t??null});if(Ep(n)){const o=n;return u.jsx(o,{...r})}else return n},Ep=e=>typeof e=="function",Sp=(e,t)=>{const r=n=>(t=t||e.displayName||e.name||"?",u.jsx(xa,{name:t,...n,children:u.jsx(e,{...n})}));return r.displayName=`extensionPoint(${t})`,r},Ea="single-spa:app-change";function Tp(){const[e,t]=E.useState(Sa());return E.useEffect(()=>{const r=()=>{t(Sa())};return window.addEventListener(Ea,r),()=>{window.removeEventListener(Ea,r)}},[]),e}function Sa(){return ne.getAppNames().reduce((t,r)=>(ne.getAppStatus(r)?t[r]=ne.getAppStatus(r):t[r]="NOT_LOADED",t),{})}function Ap(e){const r=Tp()[e]??"LOAD_ERROR";return{statusName:r,isLoading:r==="LOADING_SOURCE_CODE"||r==="BOOTSTRAPPING"||r==="MOUNTING",isMounted:r==="MOUNTED",isBroken:r==="SKIP_BECAUSE_BROKEN"||r==="LOAD_ERROR"}}const Ta=({appName:e})=>u.jsx("div",{children:u.jsxs("p",{children:["Loading ",e,"..."]})});Ta.displayName="BaseLoading";const Aa=({appName:e})=>u.jsxs("div",{children:[u.jsx("p",{children:"Something went wrong..."}),u.jsxs("p",{children:["Failed to load ",e]})]});Aa.displayName="BaseError";const Pp={display:"flex",flexDirection:"column",flex:1},Pa=E.forwardRef((e,t)=>u.jsx("div",{ref:t,style:Pp,...e}));Pa.displayName="BaseContainer";const Op="pae-app:",Oa=E.forwardRef(({appName:e,LoadingComponent:t=Ta,ErrorComponent:r=Aa,ContainerComponent:n=Pa,...o},i)=>{const s=Ap(e);return u.jsxs(n,{ref:i,...o,id:`${Op}${e}`,children:[s.isLoading&&u.jsx(t,{appName:e}),s.isBroken&&u.jsx(r,{appName:e})]})});Oa.displayName="ModulePlaceHolder";const zo=({operations:e,children:t,forbiddenContent:r})=>{var o;const{hasAccess:n}=qr();if(!n(...e)){if(!r)return null;if(typeof r=="function")if((o=r==null?void 0:r.prototype)!=null&&o.isReactComponent){const i=r;return u.jsx(i,{operations:e})}else return r({operations:e});return E.isValidElement(r)?r:null}return t};zo.displayName="Authorized";const Rp=({eventName:e,listener:t})=>(Os(e,t),null),kp=()=>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"})}),Ra=({applicationName:e})=>{const t=Cs(e);if(t)if(typeof t=="function"){const r=t;return u.jsx(r,{})}else return t;return u.jsx(kp,{})};Ra.displayName="ApplicationIcon";const jp=(e,t)=>{const r=n=>u.jsx(zo,{operations:t,children:u.jsx(e,{...n})});return r.displayName="Authorized",r};function ka(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=ka(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function D(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ka(e))&&(n&&(n+=" "),n+=t);return n}const vn={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"},bn=E.forwardRef(({variant:e="contained",colorScheme:t="primary",loading:r=!1,IconComponent:n,className:o,children:i,...s},a)=>{const l=D(vn.button,vn[`button--${e}-${t}`],o);return u.jsxs("button",{ref:a,className:l,...s,children:[r?u.jsx("div",{className:vn.spinner}):n&&u.jsx(n,{className:vn.icon}),i]})});bn.displayName="Button";const wn={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"},Wo={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};for(const e in Wo)Object.freeze(Wo[e]);const ja=Object.freeze(Wo);var Da={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function Dp(e){var d,p;var t,r=[],n=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(),ja[e])r=ja[e].slice(),o="rgb";else if(e==="transparent")n=0,o="rgb",r=[0,0,0];else if(e[0]==="#"){var i=e.slice(1),s=i.length,a=s<=4;n=1,a?(r=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],s===4&&(n=parseInt(i[3]+i[3],16)/255)):(r=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],s===8&&(n=parseInt(i[6]+i[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),o="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var l=t[1];o=l.replace(/a$/,"");var c=o==="cmyk"?4:o==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/),o==="color"&&(o=r.shift()),r=r.map(function(h,g){if(h[h.length-1]==="%")return h=parseFloat(h)/100,g===3?h:o==="rgb"?h*255:o[0]==="h"||o[0]==="l"&&!g?h*100:o==="lab"?h*125:o==="lch"?g<2?h*150:h*360:o[0]==="o"&&!g?h:o==="oklab"?h*.4:o==="oklch"?g<2?h*.4:h*360:h;if(o[g]==="h"||g===2&&o[o.length-1]==="h"){if(Da[h]!==void 0)return Da[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)}),n=r.length>c?r.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(r=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:r,alpha:n}}const Lp=(e,t)=>{const{space:r,values:n}=Dp(e);return r[0]==="h"?`${r}a(${n[0]}, ${n[1]}%, ${n[2]}%, ${t})`:`${r}a(${n}, ${t})`},Ho=E.forwardRef(({children:e,color:t,className:r,customColor:n,size:o="small",style:i,...s},a)=>{const l=n?{color:n,background:Lp(n,.1)}:{},c=D(wn.Badge,wn[`Badge--${o}`],{[wn[`Badge--${t}`]]:!!t},r);return u.jsx("span",{ref:a,className:c,style:{...i,...l},...s,children:e})});Ho.displayName="Badge";const Vo=E.forwardRef(({children:e,className:t,...r},n)=>{const o=D(wn.Badges,t);return u.jsx("div",{ref:n,className:o,...r,children:e})});Vo.displayName="Badges";const La=({size:e=24,color:t="currentColor",strokeWidth:r=2,className:n,style:o,...i})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round",className:n,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"})]}),Ia=({size:e=24,color:t="currentColor",strokeWidth:r=2,className:n,style:o,...i})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round",className:n,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"})]}),Ip={CopyToClipboardButton:"CopyToClipboardButton__2Nd2m"},Np=({content:e})=>{const[t,r]=$p(),{notify:n}=Ao(),o=t?Ia:La,i=E.useCallback(async()=>{await r(e)&&n("Copied to the Clipboard !","success")},[e,n]);return u.jsx(o,{className:Ip.CopyToClipboardButton,size:18,onClick:i})},$p=()=>{const[e,t]=E.useState(!1);return[e,async n=>{try{return await navigator.clipboard.writeText(n),t(!0),setTimeout(()=>t(!1),2e3),!0}catch(o){return console.error("Failed to copy text: ",o),!1}}]},Na={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"},$a=E.forwardRef(({children:e,className:t,orientation:r="vertical",...n},o)=>{const i=D(Na.FieldGroup,Na[`FieldGroup--${r}`],t);return u.jsx("div",{ref:o,className:i,...n,children:e})});$a.displayName="FieldGroup";const Ma={Input:"Input__uS0sb",Error:"Error__-DQpw"},_n=E.forwardRef(({className:e,error:t,...r},n)=>{const o=D(Ma.Input,t&&Ma.Error,e);return u.jsx("input",{ref:n,className:o,...r})});_n.displayName="Input";const Mp={Error:"Error__N4OP5"},Fa=E.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Mp.Error,t);return u.jsx("span",{ref:n,className:o,...r,children:e})});Fa.displayName="InputError";const Ba={Label:"Label__VYUvW",Error:"Error__Eu6DI"},Ua=E.forwardRef(({children:e,className:t,error:r,...n},o)=>{const i=D(Ba.Label,r&&Ba.Error,t);return u.jsx("label",{ref:o,className:i,...n,children:e})});Ua.displayName="Label";const Go={Select:"Select__giqpe",Chevron:"Chevron__YvhBd"},za=E.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Go.Option,t);return u.jsx("option",{ref:n,className:o,...r,children:e})});za.displayName="Option";const qo=E.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Go.Select,t);return u.jsxs("div",{className:o,children:[u.jsx("select",{ref:n,...r,children:e}),u.jsx("div",{className:Go.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"})})})]})});qo.displayName="Select",qo.Option=za;const Fp={TextArea:"TextArea__pa-A0"},Wa=E.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Fp.TextArea,t);return u.jsx("textarea",{ref:n,className:o,...r,children:e})});Wa.displayName="TextArea";const Or={SearchInput:"SearchInput__4OFyE",SearchIcon:"SearchIcon__YgnQy",ClearIcon:"ClearIcon__ukRVr",SearchInput__ClearIcon:"SearchInput__ClearIcon__uzVoc",SearchInput__SearchIcon:"SearchInput__SearchIcon__zoDG4"},Qo=E.forwardRef(({className:e,placeholder:t="Type to search...",showClearButton:r=!1,showSearchIcon:n=!0,onClear:o,...i},s)=>{const a=D(Or.SearchInput,r&&Or.SearchInput__ClearIcon,n&&Or.SearchInput__SearchIcon,e),l=D(Or.SearchIcon),c=D(Or.ClearIcon);return u.jsxs("div",{className:a,children:[u.jsx(_n,{ref:s,type:"text",placeholder:t,...i}),n&&u.jsx("svg",{className:l,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"})}),r&&u.jsx("svg",{className:c,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"})})]})});Qo.displayName="SearchInput";const Tt={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"},At={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"},Cn=E.forwardRef(({children:e,className:t,open:r,align:n="right",...o},i)=>{const s=D(At.DropdownList,{[At["DropdownList--open"]]:r,[At["DropdownList--closed"]]:!r,[At["DropdownList--left"]]:n==="left"},t);return u.jsx("div",{ref:i,className:s,...o,children:e})});Cn.displayName="DropdownList";const Rr=E.forwardRef(({children:e,className:t,canBeSelected:r=!1,...n},o)=>{const i=D(Tt.AutocompleteItem,{[Tt["AutocompleteItem--canBeSelected"]]:r},t);return u.jsx("div",{ref:o,className:i,role:r?"option":void 0,...n,children:e})});Rr.displayName="AutocompleteItem";const Bp=300,Up={query:"",suggestions:[],loading:!1,error:null},zp=({suggestionFetcher:e,canAdd:t})=>{const[r,n]=E.useState(Up);return E.useEffect(()=>{n(a=>({...a,loading:!0}));const i=async()=>{try{const a=await e(r.query);t&&!a.some(l=>l.value.toLowerCase()===r.query.toLowerCase())&&a.push({label:`Add "${r.query}"`,value:r.query,isNew:!0}),n(l=>({...l,suggestions:a,loading:!1}))}catch(a){n(l=>({...l,suggestions:[],error:a,loading:!1}))}},s=setTimeout(()=>{i()},Bp);return()=>{clearTimeout(s)}},[r.query]),{...r,setQuery:i=>{n(s=>({...s,query:i}))}}},Ha=E.forwardRef(({text:e,query:t,className:r,...n},o)=>{const i=D(Tt.AutocompleteHighlighter,r),s=(a,l)=>{const c=a.toLowerCase().indexOf(l.toLowerCase());if(c===-1||l.length===0)return a;const d=a.slice(0,c),p=a.slice(c,c+l.length),h=a.slice(c+l.length);return u.jsxs(u.Fragment,{children:[d,u.jsx("span",{className:Tt.AutocompleteHighlighter__match,children:p}),s(h,l)]})};return u.jsx("div",{ref:o,className:i,...n,children:s(e,t)})});Ha.displayName="AutocompleteHighlighter";const Wp=5,Va=E.forwardRef(({children:e,className:t,canAdd:r,maxSuggestionsShown:n=Wp,searchInputProps:o,keepSelectedOption:i,suggestionFetcher:s,onAccept:a,...l},c)=>{const{query:d,setQuery:p,suggestions:h,loading:g}=zp({suggestionFetcher:s,canAdd:r}),[w,m]=E.useState(null),y=d.length>0,_=O=>{p(O.target.value)},C=O=>{a==null||a(O),i?(m(O),p(O.value)):p("")},T=()=>{a==null||a(null),m(null),p("")},S=D(Tt.SearchAutocomplete,t),A=h.slice(0,n),R=h.slice(n);return u.jsxs("div",{ref:c,className:S,...l,children:[u.jsx(Qo,{...o,value:d,onChange:_,showClearButton:!!w,onClear:T}),e,u.jsxs(Cn,{className:Tt.DropdownList,open:y&&!w,role:"listbox","aria-label":"Suggestions",children:[g?u.jsx(Rr,{children:"Loading..."}):A.map(O=>u.jsxs(Rr,{canBeSelected:!0,onClick:C.bind(null,O),children:[u.jsx(Ha,{text:O.label,query:d}),O.description&&u.jsx("span",{className:Tt.AutocompleteItemDescription,children:O.description})]},O.value)),!g&&R.length>0&&u.jsxs(Rr,{children:[R.length," more results"]}),y&&h.length===0&&!g&&u.jsx(Rr,{children:"No results found"})]})]})});Va.displayName="SearchAutocomplete";const it=e=>{let t=null,r=null;return E.Children.forEach(e.children,n=>{const o=n.props.condition;o===void 0?r=n:!t&&o===!0&&(t=n)}),u.jsx(u.Fragment,{children:t||r})};it.displayName="Show",it.When=({condition:e,children:t})=>u.jsx(u.Fragment,{children:e&&t}),it.Else=({render:e,children:t})=>u.jsx(u.Fragment,{children:e||t});function Ga(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function xn(...e){return t=>{let r=!1;const n=e.map(o=>{const i=Ga(o,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let o=0;o<n.length;o++){const i=n[o];typeof i=="function"?i():Ga(e[o],null)}}}}function Te(...e){return f.useCallback(xn(...e),e)}var Hp=Symbol.for("react.lazy"),En=f[" use ".trim().toString()];function Vp(e){return typeof e=="object"&&e!==null&&"then"in e}function qa(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Hp&&"_payload"in e&&Vp(e._payload)}function Gp(e){const t=Qp(e),r=f.forwardRef((n,o)=>{let{children:i,...s}=n;qa(i)&&typeof En=="function"&&(i=En(i._payload));const a=f.Children.toArray(i),l=a.find(Kp);if(l){const c=l.props.children,d=a.map(p=>p===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:p);return u.jsx(t,{...s,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,d):null})}return u.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}var qp=Gp("Slot");function Qp(e){const t=f.forwardRef((r,n)=>{let{children:o,...i}=r;if(qa(o)&&typeof En=="function"&&(o=En(o._payload)),f.isValidElement(o)){const s=Xp(o),a=Zp(i,o.props);return o.type!==f.Fragment&&(a.ref=n?xn(n,s):s),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Yp=Symbol("radix.slottable");function Kp(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Yp}function Zp(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{const l=i(...a);return o(...a),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function Xp(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const Qa={SkeletonListContainer:"SkeletonListContainer__MKJhE",Skeleton:"Skeleton__Ovpiw"},Sn=E.forwardRef((e,t)=>{const{children:r,className:n,loading:o,height:i=48,width:s,borderRadius:a,style:l,...c}=e;if(!o&&r)return r;const d=E.isValidElement(r)?qp:"span";return u.jsx(d,{ref:t,"aria-hidden":!0,className:D(Qa.Skeleton,n),style:{...l,width:s,minWidth:s,height:i,borderRadius:a},"data-inline-skeleton":E.isValidElement(r)?void 0:!0,tabIndex:-1,...c,children:r})});Sn.displayName="Skeleton";const Ya=e=>{const{numberOfItems:t,itemsGap:r=2,itemProps:n}=e,o=Array.from({length:t},(i,s)=>s+1);return u.jsx("div",{className:D(Qa.SkeletonListContainer),style:{gap:r},children:o.map(i=>u.jsx(Sn,{loading:!0,...n},i))})};Ya.displayName="SkeletonList";function pe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Jp(e,t){const r=f.createContext(t),n=i=>{const{children:s,...a}=i,l=f.useMemo(()=>a,Object.values(a));return u.jsx(r.Provider,{value:l,children:s})};n.displayName=e+"Provider";function o(i){const s=f.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[n,o]}function Yo(e,t=[]){let r=[];function n(i,s){const a=f.createContext(s),l=r.length;r=[...r,s];const c=p=>{var _;const{scope:h,children:g,...w}=p,m=((_=h==null?void 0:h[e])==null?void 0:_[l])||a,y=f.useMemo(()=>w,Object.values(w));return u.jsx(m.Provider,{value:y,children:g})};c.displayName=i+"Provider";function d(p,h){var m;const g=((m=h==null?void 0:h[e])==null?void 0:m[l])||a,w=f.useContext(g);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[c,d]}const o=()=>{const i=r.map(s=>f.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[n,eh(o,...t)]}function eh(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=n.reduce((a,{useScope:l,scopeName:c})=>{const p=l(i)[`__scope${c}`];return{...a,...p}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function th(e){const t=rh(e),r=f.forwardRef((n,o)=>{const{children:i,...s}=n,a=f.Children.toArray(i),l=a.find(oh);if(l){const c=l.props.children,d=a.map(p=>p===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:p);return u.jsx(t,{...s,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,d):null})}return u.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function rh(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const s=sh(o),a=ih(i,o.props);return o.type!==f.Fragment&&(a.ref=n?xn(n,s):s),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var nh=Symbol("radix.slottable");function oh(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===nh}function ih(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{const l=i(...a);return o(...a),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function sh(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var ah=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],he=ah.reduce((e,t)=>{const r=th(`Primitive.${t}`),n=f.forwardRef((o,i)=>{const{asChild:s,...a}=o,l=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function lh(e,t){e&&ns.flushSync(()=>e.dispatchEvent(t))}function Gt(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function ch(e,t=globalThis==null?void 0:globalThis.document){const r=Gt(e);f.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var uh="DismissableLayer",Ko="dismissableLayer.update",dh="dismissableLayer.pointerDownOutside",fh="dismissableLayer.focusOutside",Ka,Za=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Zo=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,c=f.useContext(Za),[d,p]=f.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=f.useState({}),w=Te(t,O=>p(O)),m=Array.from(c.layers),[y]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),_=m.indexOf(y),C=d?m.indexOf(d):-1,T=c.layersWithOutsidePointerEventsDisabled.size>0,S=C>=_,A=mh(O=>{const M=O.target,N=[...c.branches].some(I=>I.contains(M));!S||N||(o==null||o(O),s==null||s(O),O.defaultPrevented||a==null||a())},h),R=gh(O=>{const M=O.target;[...c.branches].some(I=>I.contains(M))||(i==null||i(O),s==null||s(O),O.defaultPrevented||a==null||a())},h);return ch(O=>{C===c.layers.size-1&&(n==null||n(O),!O.defaultPrevented&&a&&(O.preventDefault(),a()))},h),f.useEffect(()=>{if(d)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Ka=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Xa(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Ka)}},[d,h,r,c]),f.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Xa())},[d,c]),f.useEffect(()=>{const O=()=>g({});return document.addEventListener(Ko,O),()=>document.removeEventListener(Ko,O)},[]),u.jsx(he.div,{...l,ref:w,style:{pointerEvents:T?S?"auto":"none":void 0,...e.style},onFocusCapture:pe(e.onFocusCapture,R.onFocusCapture),onBlurCapture:pe(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:pe(e.onPointerDownCapture,A.onPointerDownCapture)})});Zo.displayName=uh;var ph="DismissableLayerBranch",hh=f.forwardRef((e,t)=>{const r=f.useContext(Za),n=f.useRef(null),o=Te(t,n);return f.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),u.jsx(he.div,{...e,ref:o})});hh.displayName=ph;function mh(e,t=globalThis==null?void 0:globalThis.document){const r=Gt(e),n=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const i=a=>{if(a.target&&!n.current){let l=function(){Ja(dh,r,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function gh(e,t=globalThis==null?void 0:globalThis.document){const r=Gt(e),n=f.useRef(!1);return f.useEffect(()=>{const o=i=>{i.target&&!n.current&&Ja(fh,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Xa(){const e=new CustomEvent(Ko);document.dispatchEvent(e)}function Ja(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?lh(o,i):o.dispatchEvent(i)}var st=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},yh=f[" useId ".trim().toString()]||(()=>{}),vh=0;function Tn(e){const[t,r]=f.useState(yh());return st(()=>{r(n=>n??String(vh++))},[e]),t?`radix-${t}`:""}const bh=["top","right","bottom","left"],at=Math.min,we=Math.max,An=Math.round,Pn=Math.floor,Le=e=>({x:e,y:e}),wh={left:"right",right:"left",bottom:"top",top:"bottom"},_h={start:"end",end:"start"};function Xo(e,t,r){return we(e,at(t,r))}function Ge(e,t){return typeof e=="function"?e(t):e}function qe(e){return e.split("-")[0]}function qt(e){return e.split("-")[1]}function Jo(e){return e==="x"?"y":"x"}function ei(e){return e==="y"?"height":"width"}const Ch=new Set(["top","bottom"]);function Ie(e){return Ch.has(qe(e))?"y":"x"}function ti(e){return Jo(Ie(e))}function xh(e,t,r){r===void 0&&(r=!1);const n=qt(e),o=ti(e),i=ei(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=On(s)),[s,On(s)]}function Eh(e){const t=On(e);return[ri(e),t,ri(t)]}function ri(e){return e.replace(/start|end/g,t=>_h[t])}const el=["left","right"],tl=["right","left"],Sh=["top","bottom"],Th=["bottom","top"];function Ah(e,t,r){switch(e){case"top":case"bottom":return r?t?tl:el:t?el:tl;case"left":case"right":return t?Sh:Th;default:return[]}}function Ph(e,t,r,n){const o=qt(e);let i=Ah(qe(e),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(ri)))),i}function On(e){return e.replace(/left|right|bottom|top/g,t=>wh[t])}function Oh(e){return{top:0,right:0,bottom:0,left:0,...e}}function rl(e){return typeof e!="number"?Oh(e):{top:e,right:e,bottom:e,left:e}}function Rn(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function nl(e,t,r){let{reference:n,floating:o}=e;const i=Ie(t),s=ti(t),a=ei(s),l=qe(t),c=i==="y",d=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,h=n[a]/2-o[a]/2;let g;switch(l){case"top":g={x:d,y:n.y-o.height};break;case"bottom":g={x:d,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:p};break;case"left":g={x:n.x-o.width,y:p};break;default:g={x:n.x,y:n.y}}switch(qt(t)){case"start":g[s]-=h*(r&&c?-1:1);break;case"end":g[s]+=h*(r&&c?-1:1);break}return g}const Rh=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=nl(c,n,l),h=n,g={},w=0;for(let m=0;m<a.length;m++){const{name:y,fn:_}=a[m],{x:C,y:T,data:S,reset:A}=await _({x:d,y:p,initialPlacement:n,placement:h,strategy:o,middlewareData:g,rects:c,platform:s,elements:{reference:e,floating:t}});d=C??d,p=T??p,g={...g,[y]:{...g[y],...S}},A&&w<=50&&(w++,typeof A=="object"&&(A.placement&&(h=A.placement),A.rects&&(c=A.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):A.rects),{x:d,y:p}=nl(c,h,l)),m=-1)}return{x:d,y:p,placement:h,strategy:o,middlewareData:g}};async function kr(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:g=0}=Ge(t,e),w=rl(g),y=a[h?p==="floating"?"reference":"floating":p],_=Rn(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(y)))==null||r?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),C=p==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),S=await(i.isElement==null?void 0:i.isElement(T))?await(i.getScale==null?void 0:i.getScale(T))||{x:1,y:1}:{x:1,y:1},A=Rn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:C,offsetParent:T,strategy:l}):C);return{top:(_.top-A.top+w.top)/S.y,bottom:(A.bottom-_.bottom+w.bottom)/S.y,left:(_.left-A.left+w.left)/S.x,right:(A.right-_.right+w.right)/S.x}}const kh=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=Ge(e,t)||{};if(c==null)return{};const p=rl(d),h={x:r,y:n},g=ti(o),w=ei(g),m=await s.getDimensions(c),y=g==="y",_=y?"top":"left",C=y?"bottom":"right",T=y?"clientHeight":"clientWidth",S=i.reference[w]+i.reference[g]-h[g]-i.floating[w],A=h[g]-i.reference[g],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let O=R?R[T]:0;(!O||!await(s.isElement==null?void 0:s.isElement(R)))&&(O=a.floating[T]||i.floating[w]);const M=S/2-A/2,N=O/2-m[w]/2-1,I=at(p[_],N),G=at(p[C],N),Y=I,H=O-m[w]-G,Q=O/2-m[w]/2+M,ie=Xo(Y,Q,H),J=!l.arrow&&qt(o)!=null&&Q!==ie&&i.reference[w]/2-(Q<Y?I:G)-m[w]/2<0,ee=J?Q<Y?Q-Y:Q-H:0;return{[g]:h[g]+ee,data:{[g]:ie,centerOffset:Q-ie-ee,...J&&{alignmentOffset:ee}},reset:J}}}),jh=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:m=!0,...y}=Ge(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const _=qe(o),C=Ie(a),T=qe(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),A=h||(T||!m?[On(a)]:Eh(a)),R=w!=="none";!h&&R&&A.push(...Ph(a,m,w,S));const O=[a,...A],M=await kr(t,y),N=[];let I=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&N.push(M[_]),p){const Q=xh(o,s,S);N.push(M[Q[0]],M[Q[1]])}if(I=[...I,{placement:o,overflows:N}],!N.every(Q=>Q<=0)){var G,Y;const Q=(((G=i.flip)==null?void 0:G.index)||0)+1,ie=O[Q];if(ie&&(!(p==="alignment"?C!==Ie(ie):!1)||I.every(B=>Ie(B.placement)===C?B.overflows[0]>0:!0)))return{data:{index:Q,overflows:I},reset:{placement:ie}};let J=(Y=I.filter(ee=>ee.overflows[0]<=0).sort((ee,B)=>ee.overflows[1]-B.overflows[1])[0])==null?void 0:Y.placement;if(!J)switch(g){case"bestFit":{var H;const ee=(H=I.filter(B=>{if(R){const se=Ie(B.placement);return se===C||se==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(se=>se>0).reduce((se,Ce)=>se+Ce,0)]).sort((B,se)=>B[1]-se[1])[0])==null?void 0:H[0];ee&&(J=ee);break}case"initialPlacement":J=a;break}if(o!==J)return{reset:{placement:J}}}return{}}}};function ol(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function il(e){return bh.some(t=>e[t]>=0)}const Dh=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Ge(e,t);switch(n){case"referenceHidden":{const i=await kr(t,{...o,elementContext:"reference"}),s=ol(i,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:il(s)}}}case"escaped":{const i=await kr(t,{...o,altBoundary:!0}),s=ol(i,r.floating);return{data:{escapedOffsets:s,escaped:il(s)}}}default:return{}}}}},sl=new Set(["left","top"]);async function Lh(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=qe(r),a=qt(r),l=Ie(r)==="y",c=sl.has(s)?-1:1,d=i&&l?-1:1,p=Ge(t,e);let{mainAxis:h,crossAxis:g,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"&&(g=a==="end"?w*-1:w),l?{x:g*d,y:h*c}:{x:h*c,y:g*d}}const Ih=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await Lh(t,e);return s===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},Nh=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:y=>{let{x:_,y:C}=y;return{x:_,y:C}}},...l}=Ge(e,t),c={x:r,y:n},d=await kr(t,l),p=Ie(qe(o)),h=Jo(p);let g=c[h],w=c[p];if(i){const y=h==="y"?"top":"left",_=h==="y"?"bottom":"right",C=g+d[y],T=g-d[_];g=Xo(C,g,T)}if(s){const y=p==="y"?"top":"left",_=p==="y"?"bottom":"right",C=w+d[y],T=w-d[_];w=Xo(C,w,T)}const m=a.fn({...t,[h]:g,[p]:w});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[h]:i,[p]:s}}}}}},$h=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Ge(e,t),d={x:r,y:n},p=Ie(o),h=Jo(p);let g=d[h],w=d[p];const m=Ge(a,t),y=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const T=h==="y"?"height":"width",S=i.reference[h]-i.floating[T]+y.mainAxis,A=i.reference[h]+i.reference[T]-y.mainAxis;g<S?g=S:g>A&&(g=A)}if(c){var _,C;const T=h==="y"?"width":"height",S=sl.has(qe(o)),A=i.reference[p]-i.floating[T]+(S&&((_=s.offset)==null?void 0:_[p])||0)+(S?0:y.crossAxis),R=i.reference[p]+i.reference[T]+(S?0:((C=s.offset)==null?void 0:C[p])||0)-(S?y.crossAxis:0);w<A?w=A:w>R&&(w=R)}return{[h]:g,[p]:w}}}},Mh=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=Ge(e,t),d=await kr(t,c),p=qe(o),h=qt(o),g=Ie(o)==="y",{width:w,height:m}=i.floating;let y,_;p==="top"||p==="bottom"?(y=p,_=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(_=p,y=h==="end"?"top":"bottom");const C=m-d.top-d.bottom,T=w-d.left-d.right,S=at(m-d[y],C),A=at(w-d[_],T),R=!t.middlewareData.shift;let O=S,M=A;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(M=T),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(O=C),R&&!h){const I=we(d.left,0),G=we(d.right,0),Y=we(d.top,0),H=we(d.bottom,0);g?M=w-2*(I!==0||G!==0?I+G:we(d.left,d.right)):O=m-2*(Y!==0||H!==0?Y+H:we(d.top,d.bottom))}await l({...t,availableWidth:M,availableHeight:O});const N=await s.getDimensions(a.floating);return w!==N.width||m!==N.height?{reset:{rects:!0}}:{}}}};function kn(){return typeof window<"u"}function Qt(e){return al(e)?(e.nodeName||"").toLowerCase():"#document"}function _e(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ne(e){var t;return(t=(al(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function al(e){return kn()?e instanceof Node||e instanceof _e(e).Node:!1}function Ae(e){return kn()?e instanceof Element||e instanceof _e(e).Element:!1}function $e(e){return kn()?e instanceof HTMLElement||e instanceof _e(e).HTMLElement:!1}function ll(e){return!kn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _e(e).ShadowRoot}const Fh=new Set(["inline","contents"]);function jr(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Pe(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!Fh.has(o)}const Bh=new Set(["table","td","th"]);function Uh(e){return Bh.has(Qt(e))}const zh=[":popover-open",":modal"];function jn(e){return zh.some(t=>{try{return e.matches(t)}catch{return!1}})}const Wh=["transform","translate","scale","rotate","perspective"],Hh=["transform","translate","scale","rotate","perspective","filter"],Vh=["paint","layout","strict","content"];function ni(e){const t=oi(),r=Ae(e)?Pe(e):e;return Wh.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Hh.some(n=>(r.willChange||"").includes(n))||Vh.some(n=>(r.contain||"").includes(n))}function Gh(e){let t=lt(e);for(;$e(t)&&!Yt(t);){if(ni(t))return t;if(jn(t))return null;t=lt(t)}return null}function oi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const qh=new Set(["html","body","#document"]);function Yt(e){return qh.has(Qt(e))}function Pe(e){return _e(e).getComputedStyle(e)}function Dn(e){return Ae(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function lt(e){if(Qt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ll(e)&&e.host||Ne(e);return ll(t)?t.host:t}function cl(e){const t=lt(e);return Yt(t)?e.ownerDocument?e.ownerDocument.body:e.body:$e(t)&&jr(t)?t:cl(t)}function Dr(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=cl(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=_e(o);if(i){const a=ii(s);return t.concat(s,s.visualViewport||[],jr(o)?o:[],a&&r?Dr(a):[])}return t.concat(o,Dr(o,[],r))}function ii(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ul(e){const t=Pe(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=$e(e),i=o?e.offsetWidth:r,s=o?e.offsetHeight:n,a=An(r)!==i||An(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function si(e){return Ae(e)?e:e.contextElement}function Kt(e){const t=si(e);if(!$e(t))return Le(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=ul(t);let s=(i?An(r.width):r.width)/n,a=(i?An(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Qh=Le(0);function dl(e){const t=_e(e);return!oi()||!t.visualViewport?Qh:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Yh(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==_e(e)?!1:t}function Pt(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=si(e);let s=Le(1);t&&(n?Ae(n)&&(s=Kt(n)):s=Kt(e));const a=Yh(i,r,n)?dl(i):Le(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,d=o.width/s.x,p=o.height/s.y;if(i){const h=_e(i),g=n&&Ae(n)?_e(n):n;let w=h,m=ii(w);for(;m&&n&&g!==w;){const y=Kt(m),_=m.getBoundingClientRect(),C=Pe(m),T=_.left+(m.clientLeft+parseFloat(C.paddingLeft))*y.x,S=_.top+(m.clientTop+parseFloat(C.paddingTop))*y.y;l*=y.x,c*=y.y,d*=y.x,p*=y.y,l+=T,c+=S,w=_e(m),m=ii(w)}}return Rn({width:d,height:p,x:l,y:c})}function Ln(e,t){const r=Dn(e).scrollLeft;return t?t.left+r:Pt(Ne(e)).left+r}function fl(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Ln(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function Kh(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",s=Ne(n),a=t?jn(t.floating):!1;if(n===s||a&&i)return r;let l={scrollLeft:0,scrollTop:0},c=Le(1);const d=Le(0),p=$e(n);if((p||!p&&!i)&&((Qt(n)!=="body"||jr(s))&&(l=Dn(n)),$e(n))){const g=Pt(n);c=Kt(n),d.x=g.x+n.clientLeft,d.y=g.y+n.clientTop}const h=s&&!p&&!i?fl(s,l):Le(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+d.x+h.x,y:r.y*c.y-l.scrollTop*c.y+d.y+h.y}}function Zh(e){return Array.from(e.getClientRects())}function Xh(e){const t=Ne(e),r=Dn(e),n=e.ownerDocument.body,o=we(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=we(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+Ln(e);const a=-r.scrollTop;return Pe(n).direction==="rtl"&&(s+=we(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}const pl=25;function Jh(e,t){const r=_e(e),n=Ne(e),o=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const d=oi();(!d||d&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const c=Ln(n);if(c<=0){const d=n.ownerDocument,p=d.body,h=getComputedStyle(p),g=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,w=Math.abs(n.clientWidth-p.clientWidth-g);w<=pl&&(i-=w)}else c<=pl&&(i+=c);return{width:i,height:s,x:a,y:l}}const e1=new Set(["absolute","fixed"]);function t1(e,t){const r=Pt(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=$e(e)?Kt(e):Le(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=n*i.y;return{width:s,height:a,x:l,y:c}}function hl(e,t,r){let n;if(t==="viewport")n=Jh(e,r);else if(t==="document")n=Xh(Ne(e));else if(Ae(t))n=t1(t,r);else{const o=dl(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Rn(n)}function ml(e,t){const r=lt(e);return r===t||!Ae(r)||Yt(r)?!1:Pe(r).position==="fixed"||ml(r,t)}function r1(e,t){const r=t.get(e);if(r)return r;let n=Dr(e,[],!1).filter(a=>Ae(a)&&Qt(a)!=="body"),o=null;const i=Pe(e).position==="fixed";let s=i?lt(e):e;for(;Ae(s)&&!Yt(s);){const a=Pe(s),l=ni(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&e1.has(o.position)||jr(s)&&!l&&ml(e,s))?n=n.filter(d=>d!==s):o=a,s=lt(s)}return t.set(e,n),n}function n1(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?jn(t)?[]:r1(t,this._c):[].concat(r),n],a=s[0],l=s.reduce((c,d)=>{const p=hl(t,d,o);return c.top=we(p.top,c.top),c.right=at(p.right,c.right),c.bottom=at(p.bottom,c.bottom),c.left=we(p.left,c.left),c},hl(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function o1(e){const{width:t,height:r}=ul(e);return{width:t,height:r}}function i1(e,t,r){const n=$e(t),o=Ne(t),i=r==="fixed",s=Pt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Le(0);function c(){l.x=Ln(o)}if(n||!n&&!i)if((Qt(t)!=="body"||jr(o))&&(a=Dn(t)),n){const g=Pt(t,!0,i,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else o&&c();i&&!n&&o&&c();const d=o&&!n&&!i?fl(o,a):Le(0),p=s.left+a.scrollLeft-l.x-d.x,h=s.top+a.scrollTop-l.y-d.y;return{x:p,y:h,width:s.width,height:s.height}}function ai(e){return Pe(e).position==="static"}function gl(e,t){if(!$e(e)||Pe(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ne(e)===r&&(r=r.ownerDocument.body),r}function yl(e,t){const r=_e(e);if(jn(e))return r;if(!$e(e)){let o=lt(e);for(;o&&!Yt(o);){if(Ae(o)&&!ai(o))return o;o=lt(o)}return r}let n=gl(e,t);for(;n&&Uh(n)&&ai(n);)n=gl(n,t);return n&&Yt(n)&&ai(n)&&!ni(n)?r:n||Gh(e)||r}const s1=async function(e){const t=this.getOffsetParent||yl,r=this.getDimensions,n=await r(e.floating);return{reference:i1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function a1(e){return Pe(e).direction==="rtl"}const l1={convertOffsetParentRelativeRectToViewportRelativeRect:Kh,getDocumentElement:Ne,getClippingRect:n1,getOffsetParent:yl,getElementRects:s1,getClientRects:Zh,getDimensions:o1,getScale:Kt,isElement:Ae,isRTL:a1};function vl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function c1(e,t){let r=null,n;const o=Ne(e);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:d,top:p,width:h,height:g}=c;if(a||t(),!h||!g)return;const w=Pn(p),m=Pn(o.clientWidth-(d+h)),y=Pn(o.clientHeight-(p+g)),_=Pn(d),T={rootMargin:-w+"px "+-m+"px "+-y+"px "+-_+"px",threshold:we(0,at(1,l))||1};let S=!0;function A(R){const O=R[0].intersectionRatio;if(O!==l){if(!S)return s();O?s(!1,O):n=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!vl(c,e.getBoundingClientRect())&&s(),S=!1}try{r=new IntersectionObserver(A,{...T,root:o.ownerDocument})}catch{r=new IntersectionObserver(A,T)}r.observe(e)}return s(!0),i}function u1(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=si(e),d=o||i?[...c?Dr(c):[],...Dr(t)]:[];d.forEach(_=>{o&&_.addEventListener("scroll",r,{passive:!0}),i&&_.addEventListener("resize",r)});const p=c&&a?c1(c,r):null;let h=-1,g=null;s&&(g=new ResizeObserver(_=>{let[C]=_;C&&C.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var T;(T=g)==null||T.observe(t)})),r()}),c&&!l&&g.observe(c),g.observe(t));let w,m=l?Pt(e):null;l&&y();function y(){const _=Pt(e);m&&!vl(m,_)&&r(),m=_,w=requestAnimationFrame(y)}return r(),()=>{var _;d.forEach(C=>{o&&C.removeEventListener("scroll",r),i&&C.removeEventListener("resize",r)}),p==null||p(),(_=g)==null||_.disconnect(),g=null,l&&cancelAnimationFrame(w)}}const d1=Ih,f1=Nh,p1=jh,h1=Mh,m1=Dh,bl=kh,g1=$h,y1=(e,t,r)=>{const n=new Map,o={platform:l1,...r},i={...o.platform,_c:n};return Rh(e,t,{...o,platform:i})};var v1=typeof document<"u",b1=function(){},In=v1?E.useLayoutEffect:b1;function Nn(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 r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Nn(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!Nn(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function wl(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _l(e,t){const r=wl(e);return Math.round(t*r)/r}function li(e){const t=f.useRef(e);return In(()=>{t.current=e}),t}function w1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,p]=f.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=f.useState(n);Nn(h,n)||g(n);const[w,m]=f.useState(null),[y,_]=f.useState(null),C=f.useCallback(B=>{B!==R.current&&(R.current=B,m(B))},[]),T=f.useCallback(B=>{B!==O.current&&(O.current=B,_(B))},[]),S=i||w,A=s||y,R=f.useRef(null),O=f.useRef(null),M=f.useRef(d),N=l!=null,I=li(l),G=li(o),Y=li(c),H=f.useCallback(()=>{if(!R.current||!O.current)return;const B={placement:t,strategy:r,middleware:h};G.current&&(B.platform=G.current),y1(R.current,O.current,B).then(se=>{const Ce={...se,isPositioned:Y.current!==!1};Q.current&&!Nn(M.current,Ce)&&(M.current=Ce,ns.flushSync(()=>{p(Ce)}))})},[h,t,r,G,Y]);In(()=>{c===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,p(B=>({...B,isPositioned:!1})))},[c]);const Q=f.useRef(!1);In(()=>(Q.current=!0,()=>{Q.current=!1}),[]),In(()=>{if(S&&(R.current=S),A&&(O.current=A),S&&A){if(I.current)return I.current(S,A,H);H()}},[S,A,H,I,N]);const ie=f.useMemo(()=>({reference:R,floating:O,setReference:C,setFloating:T}),[C,T]),J=f.useMemo(()=>({reference:S,floating:A}),[S,A]),ee=f.useMemo(()=>{const B={position:r,left:0,top:0};if(!J.floating)return B;const se=_l(J.floating,d.x),Ce=_l(J.floating,d.y);return a?{...B,transform:"translate("+se+"px, "+Ce+"px)",...wl(J.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:se,top:Ce}},[r,a,J.floating,d.x,d.y]);return f.useMemo(()=>({...d,update:H,refs:ie,elements:J,floatingStyles:ee}),[d,H,ie,J,ee])}const _1=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?bl({element:n.current,padding:o}).fn(r):{}:n?bl({element:n,padding:o}).fn(r):{}}}},C1=(e,t)=>({...d1(e),options:[e,t]}),x1=(e,t)=>({...f1(e),options:[e,t]}),E1=(e,t)=>({...g1(e),options:[e,t]}),S1=(e,t)=>({...p1(e),options:[e,t]}),T1=(e,t)=>({...h1(e),options:[e,t]}),A1=(e,t)=>({...m1(e),options:[e,t]}),P1=(e,t)=>({..._1(e),options:[e,t]});var O1="Arrow",Cl=f.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return u.jsx(he.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});Cl.displayName=O1;var R1=Cl;function k1(e){const[t,r]=f.useState(void 0);return st(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,a=c.blockSize}else s=e.offsetWidth,a=e.offsetHeight;r({width:s,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var ci="Popper",[xl,El]=Yo(ci),[j1,Sl]=xl(ci),Tl=e=>{const{__scopePopper:t,children:r}=e,[n,o]=f.useState(null);return u.jsx(j1,{scope:t,anchor:n,onAnchorChange:o,children:r})};Tl.displayName=ci;var Al="PopperAnchor",Pl=f.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,i=Sl(Al,r),s=f.useRef(null),a=Te(t,s),l=f.useRef(null);return f.useEffect(()=>{const c=l.current;l.current=(n==null?void 0:n.current)||s.current,c!==l.current&&i.onAnchorChange(l.current)}),n?null:u.jsx(he.div,{...o,ref:a})});Pl.displayName=Al;var ui="PopperContent",[D1,L1]=xl(ui),Ol=f.forwardRef((e,t)=>{var gr,Bt,yr,Ut,ro,Hr;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:g="optimized",onPlaced:w,...m}=e,y=Sl(ui,r),[_,C]=f.useState(null),T=Te(t,zt=>C(zt)),[S,A]=f.useState(null),R=k1(S),O=(R==null?void 0:R.width)??0,M=(R==null?void 0:R.height)??0,N=n+(i!=="center"?"-"+i:""),I=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},G=Array.isArray(c)?c:[c],Y=G.length>0,H={padding:I,boundary:G.filter(N1),altBoundary:Y},{refs:Q,floatingStyles:ie,placement:J,isPositioned:ee,middlewareData:B}=w1({strategy:"fixed",placement:N,whileElementsMounted:(...zt)=>u1(...zt,{animationFrame:g==="always"}),elements:{reference:y.anchor},middleware:[C1({mainAxis:o+M,alignmentAxis:s}),l&&x1({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?E1():void 0,...H}),l&&S1({...H}),T1({...H,apply:({elements:zt,rects:no,availableWidth:vr,availableHeight:Wt})=>{const{width:oo,height:io}=no.reference,Xe=zt.floating.style;Xe.setProperty("--radix-popper-available-width",`${vr}px`),Xe.setProperty("--radix-popper-available-height",`${Wt}px`),Xe.setProperty("--radix-popper-anchor-width",`${oo}px`),Xe.setProperty("--radix-popper-anchor-height",`${io}px`)}}),S&&P1({element:S,padding:a}),$1({arrowWidth:O,arrowHeight:M}),h&&A1({strategy:"referenceHidden",...H})]}),[se,Ce]=jl(J),Ft=Gt(w);st(()=>{ee&&(Ft==null||Ft())},[ee,Ft]);const eo=(gr=B.arrow)==null?void 0:gr.x,to=(Bt=B.arrow)==null?void 0:Bt.y,Bi=((yr=B.arrow)==null?void 0:yr.centerOffset)!==0,[Ui,Wr]=f.useState();return st(()=>{_&&Wr(window.getComputedStyle(_).zIndex)},[_]),u.jsx("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:{...ie,transform:ee?ie.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ui,"--radix-popper-transform-origin":[(Ut=B.transformOrigin)==null?void 0:Ut.x,(ro=B.transformOrigin)==null?void 0:ro.y].join(" "),...((Hr=B.hide)==null?void 0:Hr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(D1,{scope:r,placedSide:se,onArrowChange:A,arrowX:eo,arrowY:to,shouldHideArrow:Bi,children:u.jsx(he.div,{"data-side":se,"data-align":Ce,...m,ref:T,style:{...m.style,animation:ee?void 0:"none"}})})})});Ol.displayName=ui;var Rl="PopperArrow",I1={top:"bottom",right:"left",bottom:"top",left:"right"},kl=f.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,i=L1(Rl,n),s=I1[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(R1,{...o,ref:r,style:{...o.style,display:"block"}})})});kl.displayName=Rl;function N1(e){return e!==null}var $1=e=>({name:"transformOrigin",options:e,fn(t){var y,_,C;const{placement:r,rects:n,middlewareData:o}=t,s=((y=o.arrow)==null?void 0:y.centerOffset)!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[c,d]=jl(r),p={start:"0%",center:"50%",end:"100%"}[d],h=(((_=o.arrow)==null?void 0:_.x)??0)+a/2,g=(((C=o.arrow)==null?void 0:C.y)??0)+l/2;let w="",m="";return c==="bottom"?(w=s?p:`${h}px`,m=`${-l}px`):c==="top"?(w=s?p:`${h}px`,m=`${n.floating.height+l}px`):c==="right"?(w=`${-l}px`,m=s?p:`${g}px`):c==="left"&&(w=`${n.floating.width+l}px`,m=s?p:`${g}px`),{data:{x:w,y:m}}}});function jl(e){const[t,r="center"]=e.split("-");return[t,r]}var M1=Tl,F1=Pl,B1=Ol,U1=kl,z1="Portal",di=f.forwardRef((e,t)=>{var a;const{container:r,...n}=e,[o,i]=f.useState(!1);st(()=>i(!0),[]);const s=r||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?_t.createPortal(u.jsx(he.div,{...n,ref:t}),s):null});di.displayName=z1;function W1(e,t){return f.useReducer((r,n)=>t[r][n]??r,e)}var Zt=e=>{const{present:t,children:r}=e,n=H1(t),o=typeof r=="function"?r({present:n.isPresent}):f.Children.only(r),i=Te(n.ref,V1(o));return typeof r=="function"||n.isPresent?f.cloneElement(o,{ref:i}):null};Zt.displayName="Presence";function H1(e){const[t,r]=f.useState(),n=f.useRef(null),o=f.useRef(e),i=f.useRef("none"),s=e?"mounted":"unmounted",[a,l]=W1(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const c=$n(n.current);i.current=a==="mounted"?c:"none"},[a]),st(()=>{const c=n.current,d=o.current;if(d!==e){const h=i.current,g=$n(c);e?l("MOUNT"):g==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),st(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,p=g=>{const m=$n(n.current).includes(CSS.escape(g.animationName));if(g.target===t&&m&&(l("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},h=g=>{g.target===t&&(i.current=$n(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:f.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function $n(e){return(e==null?void 0:e.animationName)||"none"}function V1(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var G1=Symbol("radix.slottable");function q1(e){const t=({children:r})=>u.jsx(u.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=G1,t}var Q1=f[" useInsertionEffect ".trim().toString()]||st;function Dl({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,i,s]=Y1({defaultProp:t,onChange:r}),a=e!==void 0,l=a?e:o;{const d=f.useRef(e!==void 0);f.useEffect(()=>{const p=d.current;p!==a&&console.warn(`${n} 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,n])}const c=f.useCallback(d=>{var p;if(a){const h=K1(d)?d(e):d;h!==e&&((p=s.current)==null||p.call(s,h))}else i(d)},[a,e,i,s]);return[l,c]}function Y1({defaultProp:e,onChange:t}){const[r,n]=f.useState(e),o=f.useRef(r),i=f.useRef(t);return Q1(()=>{i.current=t},[t]),f.useEffect(()=>{var s;o.current!==r&&((s=i.current)==null||s.call(i,r),o.current=r)},[r,o]),[r,n,i]}function K1(e){return typeof e=="function"}var Z1=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),X1="VisuallyHidden",Ll=f.forwardRef((e,t)=>u.jsx(he.span,{...e,ref:t,style:{...Z1,...e.style}}));Ll.displayName=X1;var J1=Ll,[Mn]=Yo("Tooltip",[El]),Fn=El(),Il="TooltipProvider",em=700,fi="tooltip.open",[tm,pi]=Mn(Il),Nl=e=>{const{__scopeTooltip:t,delayDuration:r=em,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:i}=e,s=f.useRef(!0),a=f.useRef(!1),l=f.useRef(0);return f.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),u.jsx(tm,{scope:t,isOpenDelayedRef:s,delayDuration:r,onOpen:f.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,n)},[n]),isPointerInTransitRef:a,onPointerInTransitChange:f.useCallback(c=>{a.current=c},[]),disableHoverableContent:o,children:i})};Nl.displayName=Il;var Lr="Tooltip",[rm,Ir]=Mn(Lr),$l=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,l=pi(Lr,e.__scopeTooltip),c=Fn(t),[d,p]=f.useState(null),h=Tn(),g=f.useRef(0),w=s??l.disableHoverableContent,m=a??l.delayDuration,y=f.useRef(!1),[_,C]=Dl({prop:n,defaultProp:o??!1,onChange:O=>{O?(l.onOpen(),document.dispatchEvent(new CustomEvent(fi))):l.onClose(),i==null||i(O)},caller:Lr}),T=f.useMemo(()=>_?y.current?"delayed-open":"instant-open":"closed",[_]),S=f.useCallback(()=>{window.clearTimeout(g.current),g.current=0,y.current=!1,C(!0)},[C]),A=f.useCallback(()=>{window.clearTimeout(g.current),g.current=0,C(!1)},[C]),R=f.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{y.current=!0,C(!0),g.current=0},m)},[m,C]);return f.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),u.jsx(M1,{...c,children:u.jsx(rm,{scope:t,contentId:h,open:_,stateAttribute:T,trigger:d,onTriggerChange:p,onTriggerEnter:f.useCallback(()=>{l.isOpenDelayedRef.current?R():S()},[l.isOpenDelayedRef,R,S]),onTriggerLeave:f.useCallback(()=>{w?A():(window.clearTimeout(g.current),g.current=0)},[A,w]),onOpen:S,onClose:A,disableHoverableContent:w,children:r})})};$l.displayName=Lr;var hi="TooltipTrigger",Ml=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Ir(hi,r),i=pi(hi,r),s=Fn(r),a=f.useRef(null),l=Te(t,a,o.onTriggerChange),c=f.useRef(!1),d=f.useRef(!1),p=f.useCallback(()=>c.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),u.jsx(F1,{asChild:!0,...s,children:u.jsx(he.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:l,onPointerMove:pe(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:pe(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:pe(e.onPointerDown,()=>{o.open&&o.onClose(),c.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:pe(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:pe(e.onBlur,o.onClose),onClick:pe(e.onClick,o.onClose)})})});Ml.displayName=hi;var mi="TooltipPortal",[nm,om]=Mn(mi,{forceMount:void 0}),Fl=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,i=Ir(mi,t);return u.jsx(nm,{scope:t,forceMount:r,children:u.jsx(Zt,{present:r||i.open,children:u.jsx(di,{asChild:!0,container:o,children:n})})})};Fl.displayName=mi;var Xt="TooltipContent",Bl=f.forwardRef((e,t)=>{const r=om(Xt,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...i}=e,s=Ir(Xt,e.__scopeTooltip);return u.jsx(Zt,{present:n||s.open,children:s.disableHoverableContent?u.jsx(Ul,{side:o,...i,ref:t}):u.jsx(im,{side:o,...i,ref:t})})}),im=f.forwardRef((e,t)=>{const r=Ir(Xt,e.__scopeTooltip),n=pi(Xt,e.__scopeTooltip),o=f.useRef(null),i=Te(t,o),[s,a]=f.useState(null),{trigger:l,onClose:c}=r,d=o.current,{onPointerInTransitChange:p}=n,h=f.useCallback(()=>{a(null),p(!1)},[p]),g=f.useCallback((w,m)=>{const y=w.currentTarget,_={x:w.clientX,y:w.clientY},C=cm(_,y.getBoundingClientRect()),T=um(_,C),S=dm(m.getBoundingClientRect()),A=pm([...T,...S]);a(A),p(!0)},[p]);return f.useEffect(()=>()=>h(),[h]),f.useEffect(()=>{if(l&&d){const w=y=>g(y,d),m=y=>g(y,l);return l.addEventListener("pointerleave",w),d.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",m)}}},[l,d,g,h]),f.useEffect(()=>{if(s){const w=m=>{const y=m.target,_={x:m.clientX,y:m.clientY},C=(l==null?void 0:l.contains(y))||(d==null?void 0:d.contains(y)),T=!fm(_,s);C?h():T&&(h(),c())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[l,d,s,c,h]),u.jsx(Ul,{...e,ref:i})}),[sm,am]=Mn(Lr,{isInside:!1}),lm=q1("TooltipContent"),Ul=f.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,l=Ir(Xt,r),c=Fn(r),{onClose:d}=l;return f.useEffect(()=>(document.addEventListener(fi,d),()=>document.removeEventListener(fi,d)),[d]),f.useEffect(()=>{if(l.trigger){const p=h=>{const g=h.target;g!=null&&g.contains(l.trigger)&&d()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[l.trigger,d]),u.jsx(Zo,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:d,children:u.jsxs(B1,{"data-state":l.stateAttribute,...c,...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(lm,{children:n}),u.jsx(sm,{scope:r,isInside:!0,children:u.jsx(J1,{id:l.contentId,role:"tooltip",children:o||n})})]})})});Bl.displayName=Xt;var zl="TooltipArrow",Wl=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Fn(r);return am(zl,r).isInside?null:u.jsx(U1,{...o,...n,ref:t})});Wl.displayName=zl;function cm(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,o,i)){case i:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function um(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function dm(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function fm(e,t){const{x:r,y:n}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i],l=t[s],c=a.x,d=a.y,p=l.x,h=l.y;d>n!=h>n&&r<(p-c)*(n-d)/(h-d)+c&&(o=!o)}return o}function pm(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),hm(t)}function hm(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];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 r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const i=r[r.length-1],s=r[r.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var mm=Nl,gm=$l,ym=Ml,vm=Fl,bm=Bl,wm=Wl;const Hl={tooltip:"tooltip__nUuSh",tooltipArrow:"tooltipArrow__W2w-f"},Vl=({children:e,open:t,displayName:r,tooltipContent:n,className:o,disabled:i,delayDuration:s=300,side:a="right",sideOffset:l=0})=>{const[c,d]=E.useState(!1),p=t!==void 0,g=i?!1:p?t:c,w=m=>{i||p||d(m)};return u.jsx(mm,{delayDuration:s,children:u.jsxs(gm,{open:g,onOpenChange:w,children:[u.jsx(ym,{asChild:!0,children:e}),u.jsx(vm,{children:u.jsxs(bm,{className:D(Hl.tooltip,o),side:a,sideOffset:l,children:[r,n,u.jsx(wm,{className:Hl.tooltipArrow})]})})]})})};Vl.displayName="Tooltip";const Gl={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"},ql=({className:e,color:t="white",size:r=80,thickness:n})=>{const o=D(Gl.spinner,Gl[`spinner-${t}`],e),i=n??Math.max(r/12,2);return u.jsx("span",{style:{width:r,height:r,borderWidth:i},className:o})};ql.displayName="Spinner";const Bn={switch:"switch__0b2av",disabled:"disabled__KpauE",checked:"checked__2-JV-",thumb:"thumb__fEuKD"},Ql=E.forwardRef(({checked:e,defaultChecked:t=!1,onCheckedChange:r,disabled:n=!1,id:o,className:i,name:s,"aria-label":a,"aria-labelledby":l,"aria-describedby":c,...d},p)=>{const[h,g]=E.useState(t),w=e!==void 0,m=w?!!e:h,y=()=>{if(n)return;const C=!m;w||g(C),r==null||r(C)},_=C=>{(C.key===" "||C.key==="Enter")&&(C.preventDefault(),y())};return u.jsx("button",{ref:p,type:"button",role:"switch","aria-checked":m,"aria-label":a,"aria-labelledby":l,"aria-describedby":c,disabled:n,id:o,name:s,className:D(Bn.switch,{[Bn.checked]:m,[Bn.disabled]:n}),onClick:y,onKeyDown:_,...d,children:u.jsx("span",{className:Bn.thumb,"aria-hidden":"true"})})});Ql.displayName="Switch";const Me={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"},Yl=E.createContext(null),gi=()=>{const e=E.useContext(Yl);if(!e)throw new Error("Tabs components must be used within a Tabs provider");return e},_m=({defaultValue:e,value:t,onValueChange:r,orientation:n="horizontal",className:o="",children:i})=>{const[s,a]=E.useState(e||""),l=t!==void 0,c=l?t:s,d=p=>{l||a(p),r==null||r(p)};return u.jsx(Yl.Provider,{value:{value:c,onValueChange:d,orientation:n},children:u.jsx("div",{className:D(Me.tabsRoot,o),children:i})})},Cm=({className:e="",children:t})=>{const{orientation:r}=gi(),n=E.useRef(null),o=i=>{var c;const s=(c=n.current)==null?void 0:c.querySelectorAll('[role="tab"]:not([disabled])');if(!s)return;const a=Array.from(s).findIndex(d=>d===document.activeElement);let l=a;switch(i.key){case"ArrowLeft":r==="horizontal"&&(i.preventDefault(),l=a>0?a-1:s.length-1);break;case"ArrowRight":r==="horizontal"&&(i.preventDefault(),l=a<s.length-1?a+1:0);break;case"ArrowUp":r==="vertical"&&(i.preventDefault(),l=a>0?a-1:s.length-1);break;case"ArrowDown":r==="vertical"&&(i.preventDefault(),l=a<s.length-1?a+1:0);break;case"Home":i.preventDefault(),l=0;break;case"End":i.preventDefault(),l=s.length-1;break}if(l!==a){const d=s[l];d.focus(),d.click()}};return u.jsx("div",{ref:n,role:"tablist","aria-orientation":r,onKeyDown:o,className:D(Me.tabsList,r==="horizontal"?Me.tabsListHorizontal:Me.tabsListVertical,e),children:t})},xm=({value:e,disabled:t=!1,className:r="",children:n})=>{const{value:o,onValueChange:i,orientation:s}=gi(),a=o===e,l=()=>{t||i(e)};return u.jsx("button",{role:"tab","aria-selected":a,"aria-controls":`content-${e}`,tabIndex:a?0:-1,disabled:t,onClick:l,className:D(Me.tabsTrigger,s==="horizontal"?Me.tabsTriggerHorizontal:Me.tabsTriggerVertical,a&&Me.tabsTriggerActive,t&&Me.tabsTriggerDisabled,r),children:n})},Em=({value:e,className:t="",children:r})=>{const{value:n}=gi();return n===e?u.jsx("div",{role:"tabpanel",id:`content-${e}`,"aria-labelledby":`trigger-${e}`,tabIndex:0,className:D(Me.tabsContent,t),children:r}):null},Kl=({className:e,state:t="open",onClick:r})=>t==="open"?u.jsxs("svg",{className:e,onClick:r,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:r,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"})}),Zl={PasswordInput:"PasswordInput__GDJDN",eyeIcon:"eyeIcon__kDExG"},Sm=E.forwardRef((e,t)=>{const[r,n]=E.useState("password"),o=E.useCallback(()=>{n(i=>i==="password"?"text":"password")},[n]);return u.jsxs("div",{className:D(Zl.PasswordInput,e.className),children:[u.jsx(_n,{type:r,...e,ref:t}),u.jsx(Kl,{className:Zl.eyeIcon,onClick:o,state:r==="password"?"open":"closed"})]})});var yi="focusScope.autoFocusOnMount",vi="focusScope.autoFocusOnUnmount",Xl={bubbles:!1,cancelable:!0},Tm="FocusScope",Jl=f.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,l]=f.useState(null),c=Gt(o),d=Gt(i),p=f.useRef(null),h=Te(t,m=>l(m)),g=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(n){let m=function(T){if(g.paused||!a)return;const S=T.target;a.contains(S)?p.current=S:ct(p.current,{select:!0})},y=function(T){if(g.paused||!a)return;const S=T.relatedTarget;S!==null&&(a.contains(S)||ct(p.current,{select:!0}))},_=function(T){if(document.activeElement===document.body)for(const A of T)A.removedNodes.length>0&&ct(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",y);const C=new MutationObserver(_);return a&&C.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",y),C.disconnect()}}},[n,a,g.paused]),f.useEffect(()=>{if(a){rc.add(g);const m=document.activeElement;if(!a.contains(m)){const _=new CustomEvent(yi,Xl);a.addEventListener(yi,c),a.dispatchEvent(_),_.defaultPrevented||(Am(jm(ec(a)),{select:!0}),document.activeElement===m&&ct(a))}return()=>{a.removeEventListener(yi,c),setTimeout(()=>{const _=new CustomEvent(vi,Xl);a.addEventListener(vi,d),a.dispatchEvent(_),_.defaultPrevented||ct(m??document.body,{select:!0}),a.removeEventListener(vi,d),rc.remove(g)},0)}}},[a,c,d,g]);const w=f.useCallback(m=>{if(!r&&!n||g.paused)return;const y=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,_=document.activeElement;if(y&&_){const C=m.currentTarget,[T,S]=Pm(C);T&&S?!m.shiftKey&&_===S?(m.preventDefault(),r&&ct(T,{select:!0})):m.shiftKey&&_===T&&(m.preventDefault(),r&&ct(S,{select:!0})):_===C&&m.preventDefault()}},[r,n,g.paused]);return u.jsx(he.div,{tabIndex:-1,...s,ref:h,onKeyDown:w})});Jl.displayName=Tm;function Am(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(ct(n,{select:t}),document.activeElement!==r)return}function Pm(e){const t=ec(e),r=tc(t,e),n=tc(t.reverse(),e);return[r,n]}function ec(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function tc(e,t){for(const r of e)if(!Om(r,{upTo:t}))return r}function Om(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 Rm(e){return e instanceof HTMLInputElement&&"select"in e}function ct(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Rm(e)&&t&&e.select()}}var rc=km();function km(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=nc(e,t),e.unshift(t)},remove(t){var r;e=nc(e,t),(r=e[0])==null||r.resume()}}}function nc(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function jm(e){return e.filter(t=>t.tagName!=="A")}var bi=0;function Dm(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??oc()),document.body.insertAdjacentElement("beforeend",e[1]??oc()),bi++,()=>{bi===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),bi--}},[])}function oc(){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 Un="right-scroll-bar-position",zn="width-before-scroll-bar",Lm="with-scroll-bars-hidden",Im="--removed-body-scroll-bar-size";function wi(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Nm(e,t){var r=E.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var $m=typeof window<"u"?f.useLayoutEffect:f.useEffect,ic=new WeakMap;function Mm(e,t){var r=Nm(null,function(n){return e.forEach(function(o){return wi(o,n)})});return $m(function(){var n=ic.get(r);if(n){var o=new Set(n),i=new Set(e),s=r.current;o.forEach(function(a){i.has(a)||wi(a,null)}),i.forEach(function(a){o.has(a)||wi(a,s)})}ic.set(r,e)},[e]),r}function Fm(e){return e}function Bm(e,t){t===void 0&&(t=Fm);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var s=t(i,n);return r.push(s),function(){r=r.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(n=!0;r.length;){var s=r;r=[],s.forEach(i)}r={push:function(a){return i(a)},filter:function(){return r}}},assignMedium:function(i){n=!0;var s=[];if(r.length){var a=r;r=[],a.forEach(i),s=r}var l=function(){var d=s;s=[],d.forEach(i)},c=function(){return Promise.resolve().then(l)};c(),r={push:function(d){s.push(d),c()},filter:function(d){return s=s.filter(d),r}}}};return o}function Um(e){e===void 0&&(e={});var t=Bm(null);return t.options=De({async:!0,ssr:!1},e),t}var sc=function(e){var t=e.sideCar,r=js(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return f.createElement(n,De({},r))};sc.isSideCarExport=!0;function zm(e,t){return e.useMedium(t),sc}var ac=Um(),_i=function(){},Wn=f.forwardRef(function(e,t){var r=f.useRef(null),n=f.useState({onScrollCapture:_i,onWheelCapture:_i,onTouchMoveCapture:_i}),o=n[0],i=n[1],s=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,p=e.shards,h=e.sideCar,g=e.noRelative,w=e.noIsolation,m=e.inert,y=e.allowPinchZoom,_=e.as,C=_===void 0?"div":_,T=e.gapMode,S=js(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=h,R=Mm([r,t]),O=De(De({},S),o);return f.createElement(f.Fragment,null,d&&f.createElement(A,{sideCar:ac,removeScrollBar:c,shards:p,noRelative:g,noIsolation:w,inert:m,setCallbacks:i,allowPinchZoom:!!y,lockRef:r,gapMode:T}),s?f.cloneElement(f.Children.only(a),De(De({},O),{ref:R})):f.createElement(C,De({},O,{className:l,ref:R}),a))});Wn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Wn.classNames={fullWidth:zn,zeroRight:Un};var Wm=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Hm(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Wm();return t&&e.setAttribute("nonce",t),e}function Vm(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Gm(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var qm=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Hm())&&(Vm(t,r),Gm(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Qm=function(){var e=qm();return function(t,r){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},lc=function(){var e=Qm(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Ym={left:0,top:0,right:0,gap:0},Ci=function(e){return parseInt(e||"",10)||0},Km=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ci(r),Ci(n),Ci(o)]},Zm=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ym;var t=Km(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Xm=lc(),Jt="data-scroll-locked",Jm=function(e,t,r,n){var o=e.left,i=e.top,s=e.right,a=e.gap;return r===void 0&&(r="margin"),`
|
|
210
|
-
.`.concat(
|
|
209
|
+
`,an=16,Of=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:n,children:o,containerStyle:i,containerClassName:s})=>{let{toasts:a,handlers:l}=rf(r);return f.createElement("div",{style:{position:"fixed",zIndex:9999,top:an,left:an,right:an,bottom:an,pointerEvents:"none",...i},className:s,onMouseEnter:l.startPause,onMouseLeave:l.endPause},a.map(c=>{let d=c.position||t,p=l.calculateOffset(c,{reverseOrder:e,gutter:n,defaultPosition:t}),h=Af(d,p);return f.createElement(Tf,{id:c.id,key:c.id,onHeightUpdate:l.updateHeight,className:c.visible?Pf:"",style:h},c.type==="custom"?rn(c.message,c):o?o(c):f.createElement(Sf,{toast:c,position:d}))}))},Ks=be;const Ao=()=>({notify:E.useCallback((t,r,n)=>{const o={style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}};r==="warning"||r==="info"?Ks(t,{...o,icon:r==="warning"?"⚠️":"ℹ️"}):Ks[r](t,o),n&&console.error(n)},[])});var Vt=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(){}},Et=typeof window>"u"||"Deno"in globalThis;function ce(){}function Rf(e,t){return typeof e=="function"?e(t):e}function Po(e){return typeof e=="number"&&e>=0&&e!==1/0}function Zs(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ot(e,t){return typeof e=="function"?e(t):e}function Se(e,t){return typeof e=="function"?e(t):e}function Xs(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(n){if(t.queryHash!==Oo(s,t.options))return!1}else if(!Pr(t.queryKey,s))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function Js(e,t){const{exact:r,status:n,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(St(t.options.mutationKey)!==St(i))return!1}else if(!Pr(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||o&&!o(t))}function Oo(e,t){return((t==null?void 0:t.queryKeyHashFn)||St)(e)}function St(e){return JSON.stringify(e,(t,r)=>ko(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):r)}function Pr(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Pr(e[r],t[r])):!1}function Ro(e,t){if(e===t)return e;const r=ea(e)&&ea(t);if(r||ko(e)&&ko(t)){const n=r?e:Object.keys(e),o=n.length,i=r?t:Object.keys(t),s=i.length,a=r?[]:{};let l=0;for(let c=0;c<s;c++){const d=r?c:i[c];(!r&&n.includes(d)||r)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,l++):(a[d]=Ro(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&l++)}return o===s&&l===o?e:a}return t}function ln(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function ea(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ko(e){if(!ta(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!ta(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function ta(e){return Object.prototype.toString.call(e)==="[object Object]"}function kf(e){return new Promise(t=>{setTimeout(t,e)})}function jo(e,t,r){if(typeof r.structuralSharing=="function")return r.structuralSharing(e,t);if(r.structuralSharing!==!1){try{return Ro(e,t)}catch(n){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. [${r.queryHash}]: ${n}`),n}return Ro(e,t)}return t}function jf(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function Df(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var cn=Symbol();function ra(e,t){return e.queryFn===cn&&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===cn?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function na(e,t){return typeof e=="function"?e(...t):!!e}var Lf=(du=class extends Vt{constructor(){super();L(this,kt);L(this,ut);L(this,nr);k(this,nr,t=>{if(!Et&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){b(this,ut)||this.setEventListener(b(this,nr))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,ut))==null||t.call(this),k(this,ut,void 0))}setEventListener(t){var r;k(this,nr,t),(r=b(this,ut))==null||r.call(this),k(this,ut,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){b(this,kt)!==t&&(k(this,kt,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof b(this,kt)=="boolean"?b(this,kt):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},kt=new WeakMap,ut=new WeakMap,nr=new WeakMap,du),Do=new Lf,If=(fu=class extends Vt{constructor(){super();L(this,or,!0);L(this,dt);L(this,ir);k(this,ir,t=>{if(!Et&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){b(this,dt)||this.setEventListener(b(this,ir))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,dt))==null||t.call(this),k(this,dt,void 0))}setEventListener(t){var r;k(this,ir,t),(r=b(this,dt))==null||r.call(this),k(this,dt,t(this.setOnline.bind(this)))}setOnline(t){b(this,or)!==t&&(k(this,or,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return b(this,or)}},or=new WeakMap,dt=new WeakMap,ir=new WeakMap,fu),un=new If;function Lo(){let e,t;const r=new Promise((o,i)=>{e=o,t=i});r.status="pending",r.catch(()=>{});function n(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{n({status:"fulfilled",value:o}),e(o)},r.reject=o=>{n({status:"rejected",reason:o}),t(o)},r}function Nf(e){return Math.min(1e3*2**e,3e4)}function oa(e){return(e??"online")==="online"?un.isOnline():!0}var ia=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Io(e){return e instanceof ia}function sa(e){let t=!1,r=0,n=!1,o;const i=Lo(),s=m=>{var y;n||(h(new ia(m)),(y=e.abort)==null||y.call(e))},a=()=>{t=!0},l=()=>{t=!1},c=()=>Do.isFocused()&&(e.networkMode==="always"||un.isOnline())&&e.canRun(),d=()=>oa(e.networkMode)&&e.canRun(),p=m=>{var y;n||(n=!0,(y=e.onSuccess)==null||y.call(e,m),o==null||o(),i.resolve(m))},h=m=>{var y;n||(n=!0,(y=e.onError)==null||y.call(e,m),o==null||o(),i.reject(m))},g=()=>new Promise(m=>{var y;o=_=>{(n||c())&&m(_)},(y=e.onPause)==null||y.call(e)}).then(()=>{var m;o=void 0,n||(m=e.onContinue)==null||m.call(e)}),w=()=>{if(n)return;let m;const y=r===0?e.initialPromise:void 0;try{m=y??e.fn()}catch(_){m=Promise.reject(_)}Promise.resolve(m).then(p).catch(_=>{var R;if(n)return;const C=e.retry??(Et?0:3),T=e.retryDelay??Nf,S=typeof T=="function"?T(r,_):T,A=C===!0||typeof C=="number"&&r<C||typeof C=="function"&&C(r,_);if(t||!A){h(_);return}r++,(R=e.onFail)==null||R.call(e,r,_),kf(S).then(()=>c()?void 0:g()).then(()=>{t?h(_):w()})})};return{promise:i,cancel:s,continue:()=>(o==null||o(),i),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?w():g().then(w),i)}}var $f=e=>setTimeout(e,0);function Mf(){let e=[],t=0,r=a=>{a()},n=a=>{a()},o=$f;const i=a=>{t?e.push(a):o(()=>{r(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{n(()=>{a.forEach(l=>{r(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{r=a},setBatchNotifyFunction:a=>{n=a},setScheduler:a=>{o=a}}}var oe=Mf(),aa=(pu=class{constructor(){L(this,jt)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Po(this.gcTime)&&k(this,jt,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Et?1/0:5*60*1e3))}clearGcTimeout(){b(this,jt)&&(clearTimeout(b(this,jt)),k(this,jt,void 0))}},jt=new WeakMap,pu),Ff=(hu=class extends aa{constructor(t){super();L(this,ke);L(this,sr);L(this,ar);L(this,xe);L(this,Dt);L(this,le);L(this,Fr);L(this,Lt);k(this,Lt,!1),k(this,Fr,t.defaultOptions),this.setOptions(t.options),this.observers=[],k(this,Dt,t.client),k(this,xe,b(this,Dt).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,k(this,sr,Bf(this.options)),this.state=t.state??b(this,sr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=b(this,le))==null?void 0:t.promise}setOptions(t){this.options={...b(this,Fr),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&b(this,xe).remove(this)}setData(t,r){const n=jo(this.state.data,t,this.options);return F(this,ke,Je).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){F(this,ke,Je).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,o;const r=(n=b(this,le))==null?void 0:n.promise;return(o=b(this,le))==null||o.cancel(t),r?r.then(ce).catch(ce):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(b(this,sr))}isActive(){return this.observers.some(t=>Se(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===cn||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ot(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:!Zs(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=b(this,le))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=b(this,le))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),b(this,xe).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(b(this,le)&&(b(this,Lt)?b(this,le).cancel({revert:!0}):b(this,le).cancelRetry()),this.scheduleGc()),b(this,xe).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||F(this,ke,Je).call(this,{type:"invalidate"})}fetch(t,r){var c,d,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(b(this,le))return b(this,le).continueRetry(),b(this,le).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(g=>g.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 n=new AbortController,o=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(k(this,Lt,!0),n.signal)})},i=()=>{const h=ra(this.options,r),w=(()=>{const m={client:b(this,Dt),queryKey:this.queryKey,meta:this.meta};return o(m),m})();return k(this,Lt,!1),this.options.persister?this.options.persister(h,w,this):h(w)},a=(()=>{const h={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:b(this,Dt),state:this.state,fetchFn:i};return o(h),h})();(c=this.options.behavior)==null||c.onFetch(a,this),k(this,ar,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&F(this,ke,Je).call(this,{type:"fetch",meta:(p=a.fetchOptions)==null?void 0:p.meta});const l=h=>{var g,w,m,y;Io(h)&&h.silent||F(this,ke,Je).call(this,{type:"error",error:h}),Io(h)||((w=(g=b(this,xe).config).onError)==null||w.call(g,h,this),(y=(m=b(this,xe).config).onSettled)==null||y.call(m,this.state.data,h,this)),this.scheduleGc()};return k(this,le,sa({initialPromise:r==null?void 0:r.initialPromise,fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:h=>{var g,w,m,y;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}`),l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(_){l(_);return}(w=(g=b(this,xe).config).onSuccess)==null||w.call(g,h,this),(y=(m=b(this,xe).config).onSettled)==null||y.call(m,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,g)=>{F(this,ke,Je).call(this,{type:"failed",failureCount:h,error:g})},onPause:()=>{F(this,ke,Je).call(this,{type:"pause"})},onContinue:()=>{F(this,ke,Je).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),b(this,le).start()}},sr=new WeakMap,ar=new WeakMap,xe=new WeakMap,Dt=new WeakMap,le=new WeakMap,Fr=new WeakMap,Lt=new WeakMap,ke=new WeakSet,Je=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...la(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...n,data:t.data,dataUpdateCount:n.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 Io(o)&&o.revert&&b(this,ar)?{...b(this,ar),fetchStatus:"idle"}:{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),oe.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),b(this,xe).notify({query:this,type:"updated",action:t})})},hu);function la(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:oa(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Bf(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Uf=(mu=class extends Vt{constructor(t={}){super();L(this,Be);this.config=t,k(this,Be,new Map)}build(t,r,n){const o=r.queryKey,i=r.queryHash??Oo(o,r);let s=this.get(i);return s||(s=new Ff({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){b(this,Be).has(t.queryHash)||(b(this,Be).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=b(this,Be).get(t.queryHash);r&&(t.destroy(),r===t&&b(this,Be).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){oe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return b(this,Be).get(t)}getAll(){return[...b(this,Be).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Xs(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>Xs(t,n)):r}notify(t){oe.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){oe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){oe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Be=new WeakMap,mu),zf=(gu=class extends aa{constructor(t){super();L(this,ze);L(this,Ue);L(this,ue);L(this,It);this.mutationId=t.mutationId,k(this,ue,t.mutationCache),k(this,Ue,[]),this.state=t.state||ca(),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,Ue).includes(t)||(b(this,Ue).push(t),this.clearGcTimeout(),b(this,ue).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){k(this,Ue,b(this,Ue).filter(r=>r!==t)),this.scheduleGc(),b(this,ue).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){b(this,Ue).length||(this.state.status==="pending"?this.scheduleGc():b(this,ue).remove(this))}continue(){var t;return((t=b(this,It))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,a,l,c,d,p,h,g,w,m,y,_,C,T,S,A,R,O,M;const r=()=>{F(this,ze,wt).call(this,{type:"continue"})};k(this,It,sa({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(N,I)=>{F(this,ze,wt).call(this,{type:"failed",failureCount:N,error:I})},onPause:()=>{F(this,ze,wt).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>b(this,ue).canRun(this)}));const n=this.state.status==="pending",o=!b(this,It).canStart();try{if(n)r();else{F(this,ze,wt).call(this,{type:"pending",variables:t,isPaused:o}),await((s=(i=b(this,ue).config).onMutate)==null?void 0:s.call(i,t,this));const I=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));I!==this.state.context&&F(this,ze,wt).call(this,{type:"pending",context:I,variables:t,isPaused:o})}const N=await b(this,It).start();return await((d=(c=b(this,ue).config).onSuccess)==null?void 0:d.call(c,N,t,this.state.context,this)),await((h=(p=this.options).onSuccess)==null?void 0:h.call(p,N,t,this.state.context)),await((w=(g=b(this,ue).config).onSettled)==null?void 0:w.call(g,N,null,this.state.variables,this.state.context,this)),await((y=(m=this.options).onSettled)==null?void 0:y.call(m,N,null,t,this.state.context)),F(this,ze,wt).call(this,{type:"success",data:N}),N}catch(N){try{throw await((C=(_=b(this,ue).config).onError)==null?void 0:C.call(_,N,t,this.state.context,this)),await((S=(T=this.options).onError)==null?void 0:S.call(T,N,t,this.state.context)),await((R=(A=b(this,ue).config).onSettled)==null?void 0:R.call(A,void 0,N,this.state.variables,this.state.context,this)),await((M=(O=this.options).onSettled)==null?void 0:M.call(O,void 0,N,t,this.state.context)),N}finally{F(this,ze,wt).call(this,{type:"error",error:N})}}finally{b(this,ue).runNext(this)}}},Ue=new WeakMap,ue=new WeakMap,It=new WeakMap,ze=new WeakSet,wt=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,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{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),oe.batch(()=>{b(this,Ue).forEach(n=>{n.onMutationUpdate(t)}),b(this,ue).notify({mutation:this,type:"updated",action:t})})},gu);function ca(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Wf=(yu=class extends Vt{constructor(t={}){super();L(this,Ye);L(this,je);L(this,Br);this.config=t,k(this,Ye,new Set),k(this,je,new Map),k(this,Br,0)}build(t,r,n){const o=new zf({mutationCache:this,mutationId:++so(this,Br)._,options:t.defaultMutationOptions(r),state:n});return this.add(o),o}add(t){b(this,Ye).add(t);const r=dn(t);if(typeof r=="string"){const n=b(this,je).get(r);n?n.push(t):b(this,je).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(b(this,Ye).delete(t)){const r=dn(t);if(typeof r=="string"){const n=b(this,je).get(r);if(n)if(n.length>1){const o=n.indexOf(t);o!==-1&&n.splice(o,1)}else n[0]===t&&b(this,je).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=dn(t);if(typeof r=="string"){const n=b(this,je).get(r),o=n==null?void 0:n.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var n;const r=dn(t);if(typeof r=="string"){const o=(n=b(this,je).get(r))==null?void 0:n.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){oe.batch(()=>{b(this,Ye).forEach(t=>{this.notify({type:"removed",mutation:t})}),b(this,Ye).clear(),b(this,je).clear()})}getAll(){return Array.from(b(this,Ye))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Js(r,n))}findAll(t={}){return this.getAll().filter(r=>Js(t,r))}notify(t){oe.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return oe.batch(()=>Promise.all(t.map(r=>r.continue().catch(ce))))}},Ye=new WeakMap,je=new WeakMap,Br=new WeakMap,yu);function dn(e){var t;return(t=e.options.scope)==null?void 0:t.id}function ua(e){return{onFetch:(t,r)=>{var d,p,h,g,w;const n=t.options,o=(h=(p=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:p.fetchMore)==null?void 0:h.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:[]},l=0;const c=async()=>{let m=!1;const y=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},_=ra(t.options,t.fetchOptions),C=async(T,S,A)=>{if(m)return Promise.reject();if(S==null&&T.pages.length)return Promise.resolve(T);const O=(()=>{const G={client:t.client,queryKey:t.queryKey,pageParam:S,direction:A?"backward":"forward",meta:t.options.meta};return y(G),G})(),M=await _(O),{maxPages:N}=t.options,I=A?Df:jf;return{pages:I(T.pages,M,N),pageParams:I(T.pageParams,S,N)}};if(o&&i.length){const T=o==="backward",S=T?Hf:da,A={pages:i,pageParams:s},R=S(n,A);a=await C(A,R,T)}else{const T=e??i.length;do{const S=l===0?s[0]??n.initialPageParam:da(n,a);if(l>0&&S==null)break;a=await C(a,S),l++}while(l<T)}return a};t.options.persister?t.fetchFn=()=>{var m,y;return(y=(m=t.options).persister)==null?void 0:y.call(m,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=c}}}function da(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function Hf(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var Vf=(vu=class{constructor(e={}){L(this,X);L(this,ft);L(this,pt);L(this,lr);L(this,cr);L(this,ht);L(this,ur);L(this,dr);k(this,X,e.queryCache||new Uf),k(this,ft,e.mutationCache||new Wf),k(this,pt,e.defaultOptions||{}),k(this,lr,new Map),k(this,cr,new Map),k(this,ht,0)}mount(){so(this,ht)._++,b(this,ht)===1&&(k(this,ur,Do.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,X).onFocus())})),k(this,dr,un.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,X).onOnline())})))}unmount(){var e,t;so(this,ht)._--,b(this,ht)===0&&((e=b(this,ur))==null||e.call(this),k(this,ur,void 0),(t=b(this,dr))==null||t.call(this),k(this,dr,void 0))}isFetching(e){return b(this,X).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return b(this,ft).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=b(this,X).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=b(this,X).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(ot(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return b(this,X).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),o=b(this,X).get(n.queryHash),i=o==null?void 0:o.state.data,s=Rf(t,i);if(s!==void 0)return b(this,X).build(this,n).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return oe.batch(()=>b(this,X).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=b(this,X).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=b(this,X);oe.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=b(this,X);return oe.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=oe.batch(()=>b(this,X).findAll(e).map(o=>o.cancel(r)));return Promise.all(n).then(ce).catch(ce)}invalidateQueries(e,t={}){return oe.batch(()=>(b(this,X).findAll(e).forEach(r=>{r.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 r={...t,cancelRefetch:t.cancelRefetch??!0},n=oe.batch(()=>b(this,X).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,r);return r.throwOnError||(i=i.catch(ce)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(n).then(ce)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=b(this,X).build(this,t);return r.isStaleByTime(ot(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ce).catch(ce)}fetchInfiniteQuery(e){return e.behavior=ua(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ce).catch(ce)}ensureInfiniteQueryData(e){return e.behavior=ua(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return un.isOnline()?b(this,ft).resumePausedMutations():Promise.resolve()}getQueryCache(){return b(this,X)}getMutationCache(){return b(this,ft)}getDefaultOptions(){return b(this,pt)}setDefaultOptions(e){k(this,pt,e)}setQueryDefaults(e,t){b(this,lr).set(St(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...b(this,lr).values()],r={};return t.forEach(n=>{Pr(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){b(this,cr).set(St(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...b(this,cr).values()],r={};return t.forEach(n=>{Pr(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...b(this,pt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Oo(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===cn&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...b(this,pt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){b(this,X).clear(),b(this,ft).clear()}},X=new WeakMap,ft=new WeakMap,pt=new WeakMap,lr=new WeakMap,cr=new WeakMap,ht=new WeakMap,ur=new WeakMap,dr=new WeakMap,vu),Gf=(bu=class extends Vt{constructor(t,r){super();L(this,V);L(this,ge);L(this,z);L(this,Ur);L(this,de);L(this,Nt);L(this,fr);L(this,mt);L(this,gt);L(this,zr);L(this,pr);L(this,hr);L(this,$t);L(this,Mt);L(this,yt);L(this,mr,new Set);this.options=r,k(this,ge,t),k(this,gt,null),k(this,mt,Lo()),this.options.experimental_prefetchInRender||b(this,mt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(b(this,z).addObserver(this),fa(b(this,z),this.options)?F(this,V,Vr).call(this):this.updateResult(),F(this,V,Zi).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return No(b(this,z),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return No(b(this,z),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,F(this,V,Xi).call(this),F(this,V,Ji).call(this),b(this,z).removeObserver(this)}setOptions(t){const r=this.options,n=b(this,z);if(this.options=b(this,ge).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Se(this.options.enabled,b(this,z))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");F(this,V,es).call(this),b(this,z).setOptions(this.options),r._defaulted&&!ln(this.options,r)&&b(this,ge).getQueryCache().notify({type:"observerOptionsUpdated",query:b(this,z),observer:this});const o=this.hasListeners();o&&pa(b(this,z),n,this.options,r)&&F(this,V,Vr).call(this),this.updateResult(),o&&(b(this,z)!==n||Se(this.options.enabled,b(this,z))!==Se(r.enabled,b(this,z))||ot(this.options.staleTime,b(this,z))!==ot(r.staleTime,b(this,z)))&&F(this,V,Qi).call(this);const i=F(this,V,Yi).call(this);o&&(b(this,z)!==n||Se(this.options.enabled,b(this,z))!==Se(r.enabled,b(this,z))||i!==b(this,yt))&&F(this,V,Ki).call(this,i)}getOptimisticResult(t){const r=b(this,ge).getQueryCache().build(b(this,ge),t),n=this.createResult(r,t);return Qf(this,n)&&(k(this,de,n),k(this,fr,this.options),k(this,Nt,b(this,z).state)),n}getCurrentResult(){return b(this,de)}trackResult(t,r){return new Proxy(t,{get:(n,o)=>(this.trackProp(o),r==null||r(o),Reflect.get(n,o))})}trackProp(t){b(this,mr).add(t)}getCurrentQuery(){return b(this,z)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=b(this,ge).defaultQueryOptions(t),n=b(this,ge).getQueryCache().build(b(this,ge),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return F(this,V,Vr).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),b(this,de)))}createResult(t,r){var N;const n=b(this,z),o=this.options,i=b(this,de),s=b(this,Nt),a=b(this,fr),c=t!==n?t.state:b(this,Ur),{state:d}=t;let p={...d},h=!1,g;if(r._optimisticResults){const I=this.hasListeners(),G=!I&&fa(t,r),Y=I&&pa(t,n,r,o);(G||Y)&&(p={...p,...la(d.data,t.options)}),r._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:w,errorUpdatedAt:m,status:y}=p;g=p.data;let _=!1;if(r.placeholderData!==void 0&&g===void 0&&y==="pending"){let I;i!=null&&i.isPlaceholderData&&r.placeholderData===(a==null?void 0:a.placeholderData)?(I=i.data,_=!0):I=typeof r.placeholderData=="function"?r.placeholderData((N=b(this,hr))==null?void 0:N.state.data,b(this,hr)):r.placeholderData,I!==void 0&&(y="success",g=jo(i==null?void 0:i.data,I,r),h=!0)}if(r.select&&g!==void 0&&!_)if(i&&g===(s==null?void 0:s.data)&&r.select===b(this,zr))g=b(this,pr);else try{k(this,zr,r.select),g=r.select(g),g=jo(i==null?void 0:i.data,g,r),k(this,pr,g),k(this,gt,null)}catch(I){k(this,gt,I)}b(this,gt)&&(w=b(this,gt),g=b(this,pr),m=Date.now(),y="error");const C=p.fetchStatus==="fetching",T=y==="pending",S=y==="error",A=T&&C,R=g!==void 0,M={status:y,fetchStatus:p.fetchStatus,isPending:T,isSuccess:y==="success",isError:S,isInitialLoading:A,isLoading:A,data:g,dataUpdatedAt:p.dataUpdatedAt,error:w,errorUpdatedAt:m,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>c.dataUpdateCount||p.errorUpdateCount>c.errorUpdateCount,isFetching:C,isRefetching:C&&!T,isLoadingError:S&&!R,isPaused:p.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:S&&R,isStale:$o(t,r),refetch:this.refetch,promise:b(this,mt)};if(this.options.experimental_prefetchInRender){const I=H=>{M.status==="error"?H.reject(M.error):M.data!==void 0&&H.resolve(M.data)},G=()=>{const H=k(this,mt,M.promise=Lo());I(H)},Y=b(this,mt);switch(Y.status){case"pending":t.queryHash===n.queryHash&&I(Y);break;case"fulfilled":(M.status==="error"||M.data!==Y.value)&&G();break;case"rejected":(M.status!=="error"||M.error!==Y.reason)&&G();break}}return M}updateResult(){const t=b(this,de),r=this.createResult(b(this,z),this.options);if(k(this,Nt,b(this,z).state),k(this,fr,this.options),b(this,Nt).data!==void 0&&k(this,hr,b(this,z)),ln(r,t))return;k(this,de,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,i=typeof o=="function"?o():o;if(i==="all"||!i&&!b(this,mr).size)return!0;const s=new Set(i??b(this,mr));return this.options.throwOnError&&s.add("error"),Object.keys(b(this,de)).some(a=>{const l=a;return b(this,de)[l]!==t[l]&&s.has(l)})};F(this,V,Lu).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&F(this,V,Zi).call(this)}},ge=new WeakMap,z=new WeakMap,Ur=new WeakMap,de=new WeakMap,Nt=new WeakMap,fr=new WeakMap,mt=new WeakMap,gt=new WeakMap,zr=new WeakMap,pr=new WeakMap,hr=new WeakMap,$t=new WeakMap,Mt=new WeakMap,yt=new WeakMap,mr=new WeakMap,V=new WeakSet,Vr=function(t){F(this,V,es).call(this);let r=b(this,z).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(ce)),r},Qi=function(){F(this,V,Xi).call(this);const t=ot(this.options.staleTime,b(this,z));if(Et||b(this,de).isStale||!Po(t))return;const n=Zs(b(this,de).dataUpdatedAt,t)+1;k(this,$t,setTimeout(()=>{b(this,de).isStale||this.updateResult()},n))},Yi=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(b(this,z)):this.options.refetchInterval)??!1},Ki=function(t){F(this,V,Ji).call(this),k(this,yt,t),!(Et||Se(this.options.enabled,b(this,z))===!1||!Po(b(this,yt))||b(this,yt)===0)&&k(this,Mt,setInterval(()=>{(this.options.refetchIntervalInBackground||Do.isFocused())&&F(this,V,Vr).call(this)},b(this,yt)))},Zi=function(){F(this,V,Qi).call(this),F(this,V,Ki).call(this,F(this,V,Yi).call(this))},Xi=function(){b(this,$t)&&(clearTimeout(b(this,$t)),k(this,$t,void 0))},Ji=function(){b(this,Mt)&&(clearInterval(b(this,Mt)),k(this,Mt,void 0))},es=function(){const t=b(this,ge).getQueryCache().build(b(this,ge),this.options);if(t===b(this,z))return;const r=b(this,z);k(this,z,t),k(this,Ur,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},Lu=function(t){oe.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(b(this,de))}),b(this,ge).getQueryCache().notify({query:b(this,z),type:"observerResultsUpdated"})})},bu);function qf(e,t){return Se(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function fa(e,t){return qf(e,t)||e.state.data!==void 0&&No(e,t,t.refetchOnMount)}function No(e,t,r){if(Se(t.enabled,e)!==!1&&ot(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&$o(e,t)}return!1}function pa(e,t,r,n){return(e!==t||Se(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&$o(e,r)}function $o(e,t){return Se(t.enabled,e)!==!1&&e.isStaleByTime(ot(t.staleTime,e))}function Qf(e,t){return!ln(e.getCurrentResult(),t)}var Yf=(wu=class extends Vt{constructor(r,n){super();L(this,Ze);L(this,vt);L(this,bt);L(this,ye);L(this,Ke);k(this,vt,r),this.setOptions(n),this.bindMethods(),F(this,Ze,ao).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var o;const n=this.options;this.options=b(this,vt).defaultMutationOptions(r),ln(this.options,n)||b(this,vt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:b(this,ye),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&St(n.mutationKey)!==St(this.options.mutationKey)?this.reset():((o=b(this,ye))==null?void 0:o.state.status)==="pending"&&b(this,ye).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=b(this,ye))==null||r.removeObserver(this)}onMutationUpdate(r){F(this,Ze,ao).call(this),F(this,Ze,ts).call(this,r)}getCurrentResult(){return b(this,bt)}reset(){var r;(r=b(this,ye))==null||r.removeObserver(this),k(this,ye,void 0),F(this,Ze,ao).call(this),F(this,Ze,ts).call(this)}mutate(r,n){var o;return k(this,Ke,n),(o=b(this,ye))==null||o.removeObserver(this),k(this,ye,b(this,vt).getMutationCache().build(b(this,vt),this.options)),b(this,ye).addObserver(this),b(this,ye).execute(r)}},vt=new WeakMap,bt=new WeakMap,ye=new WeakMap,Ke=new WeakMap,Ze=new WeakSet,ao=function(){var n;const r=((n=b(this,ye))==null?void 0:n.state)??ca();k(this,bt,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},ts=function(r){oe.batch(()=>{var n,o,i,s,a,l,c,d;if(b(this,Ke)&&this.hasListeners()){const p=b(this,bt).variables,h=b(this,bt).context;(r==null?void 0:r.type)==="success"?((o=(n=b(this,Ke)).onSuccess)==null||o.call(n,r.data,p,h),(s=(i=b(this,Ke)).onSettled)==null||s.call(i,r.data,null,p,h)):(r==null?void 0:r.type)==="error"&&((l=(a=b(this,Ke)).onError)==null||l.call(a,r.error,p,h),(d=(c=b(this,Ke)).onSettled)==null||d.call(c,void 0,r.error,p,h))}this.listeners.forEach(p=>{p(b(this,bt))})})},wu),ha=f.createContext(void 0),Mo=e=>{const t=f.useContext(ha);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Kf=({client:e,children:t})=>(f.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(ha.Provider,{value:e,children:t})),ma=f.createContext(!1),Zf=()=>f.useContext(ma);ma.Provider;function Xf(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Jf=f.createContext(Xf()),ep=()=>f.useContext(Jf),tp=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},rp=e=>{f.useEffect(()=>{e.clearReset()},[e])},np=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(o&&e.data===void 0||na(r,[e.error,n])),op=e=>{if(e.suspense){const t=n=>n==="static"?n:Math.max(n??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...n)=>t(r(...n)):t(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},ip=(e,t)=>e.isLoading&&e.isFetching&&!t,sp=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,ga=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function ap(e,t,r){var p,h,g,w,m;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 n=Zf(),o=ep(),i=Mo(),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=n?"isRestoring":"optimistic",op(s),tp(s,o),rp(o);const a=!i.getQueryCache().get(s.queryHash),[l]=f.useState(()=>new t(i,s)),c=l.getOptimisticResult(s),d=!n&&e.subscribed!==!1;if(f.useSyncExternalStore(f.useCallback(y=>{const _=d?l.subscribe(oe.batchCalls(y)):ce;return l.updateResult(),_},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),f.useEffect(()=>{l.setOptions(s)},[s,l]),sp(s,c))throw ga(s,l,o);if(np({result:c,errorResetBoundary:o,throwOnError:s.throwOnError,query:i.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw c.error;if((w=(g=i.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||w.call(g,s,c),s.experimental_prefetchInRender&&!Et&&ip(c,n)){const y=a?ga(s,l,o):(m=i.getQueryCache().get(s.queryHash))==null?void 0:m.promise;y==null||y.catch(ce).finally(()=>{l.updateResult()})}return s.notifyOnChangeProps?c:l.trackResult(c)}function ya(e,t){return ap(e,Gf)}function fn(e,t){const r=Mo(),[n]=f.useState(()=>new Yf(r,e));f.useEffect(()=>{n.setOptions(e)},[n,e]);const o=f.useSyncExternalStore(f.useCallback(s=>n.subscribe(oe.batchCalls(s)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),i=f.useCallback((s,a)=>{n.mutate(s,a).catch(ce)},[n]);if(o.error&&na(n.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}const pn={STALE_TIME:1e3*60*5,GC_TIME:1e3*60*10,RETRY_COUNT:1,RETRY_DELAY:1e3},va={refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,staleTime:pn.STALE_TIME,gcTime:pn.GC_TIME,retry:pn.RETRY_COUNT,retryDelay:pn.RETRY_DELAY,enable:!0},hn=e=>e instanceof Error?e.message:String(e),ba=(e,t,r)=>{const n=Mo(),{notify:o}=Ao(),{createFn:i,readFn:s,readByIdFn:a,updateFn:l,deleteFn:c,partialUpdateFn:d}=r,p=()=>{n.invalidateQueries({queryKey:[e]})},h=(S,A,R,O)=>o(O!=null&&O.overrideSuccessMessage?O==null?void 0:O.overrideSuccessMessage(S,A):R,"success"),g=(S,A,R,O)=>o(O!=null&&O.overrideErrorMessage?O==null?void 0:O.overrideErrorMessage(S,A):R,"error");return{useCreate:S=>fn({mutationFn:A=>i(A),onSuccess:A=>{p(),h(t,A,`${t} created successfully`,S)},onError:A=>{g(t,A,`Error creating ${t}: ${hn(A)}`,S)}}),useReadQuery:S=>ya({queryKey:[e],queryFn:s,...va,...S}),useReadByIdQuery:(S,A)=>ya({queryKey:[e,S],queryFn:()=>a(S),...va,enabled:!!S,...A}),useUpdate:S=>fn({mutationFn:({id:A,data:R})=>l(A,R),onSuccess:A=>{p(),h(t,A,`${t} updated successfully`,S)},onError:A=>{g(t,A,`Error updating ${t}: ${hn(A)}`,S)}}),usePartialUpdate:S=>d&&fn({mutationFn:({id:A,data:R})=>d(A,R),onSuccess:A=>{p(),h(t,A,`${t} updated successfully`,S)},onError:A=>{g(t,A,`Error updating ${t}: ${hn(A)}`,S)}}),useDelete:S=>fn({mutationFn:A=>c(A),onSuccess:()=>{p(),h(t,null,`${t} deleted successfully`,S)},onError:A=>{g(t,A,`Error deleting ${t}: ${hn(A)}`,S)}}),invalidateQueries:p}},lp=(e,t)=>ba(e,t,{createFn:r=>fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(n=>n.json()),deleteFn:r=>fetch(`${e}/${r}`,{method:"DELETE"}).then(n=>{if(!n.ok)throw new Error(`Error deleting: ${n.status}`)}),readByIdFn:r=>fetch(`${e}/${r}`).then(n=>n.json()),readFn:()=>fetch(e).then(r=>r.json()),updateFn:(r,n)=>fetch(`${e}/${r}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).then(o=>o.json()),partialUpdateFn:(r,n)=>fetch(`${e}/${r}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).then(o=>o.json())}),cp={SINGLE_TENANT:"single-tenant"},up={COOKIE:"cookie"},Fo="tenant",wa="tenant",_a="tenant",dp=cp.SINGLE_TENANT,fp=up.COOKIE,pp={mode:dp,clientSideMode:fp,tenantIDPProvisioningStrategy:"none"};class hp{setTenant(t,r){const n=new URL(window.location.href);n.searchParams.set(wa,t.name),window.location.href=n.toString()}getCurrentTenantName(){const t=new URL(window.location.href);return new URLSearchParams(t.search).get(wa)}}class mp{setTenant(t,r){sessionStorage.setItem(_a,t.name),window.location.reload()}getCurrentTenantName(){return sessionStorage.getItem(_a)}}/*! js-cookie v3.0.5 | MIT */function mn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var gp={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 Bo(e,t){function r(o,i,s){if(!(typeof document>"u")){s=mn({},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 l in s)s[l]&&(a+="; "+l,s[l]!==!0&&(a+="="+s[l].split(";")[0]));return document.cookie=o+"="+e.write(i,o)+a}}function n(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var i=document.cookie?document.cookie.split("; "):[],s={},a=0;a<i.length;a++){var l=i[a].split("="),c=l.slice(1).join("=");try{var d=decodeURIComponent(l[0]);if(s[d]=e.read(c,d),o===d)break}catch{}}return o?s[o]:s}}return Object.create({set:r,get:n,remove:function(o,i){r(o,"",mn({},i,{expires:-1}))},withAttributes:function(o){return Bo(this.converter,mn({},this.attributes,o))},withConverter:function(o){return Bo(mn({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Uo=Bo(gp,{path:"/"});class yp{setTenant(t,r){t?Uo.set(Fo,t.name):Uo.remove(Fo),window.location.reload()}getCurrentTenantName(){return Uo.get(Fo)}}class vp{extractSubdomain(t){if(t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t))return"";const r=t.split(".");if(r.length<2||r.length===2||r[0]==="www"&&r.length===3)return"";const o=(r[0]==="www"?r.slice(1):r).slice(0,-2);return o.length>0?o.join("."):""}getBaseDomain(t){const r=t.split(".");return t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t)||r.length<=2?t:r.slice(-2).join(".")}setTenant(t,r){var c;const n=(c=r.urlPatterns)==null?void 0:c.find(d=>d.patternType==="subdomain"&&d.tenantId===t.id&&d.isActive);if(!n)throw new Error(`No active subdomain pattern found for tenant '${t.name}'`);const o=new URL(window.location.href),i=n.patternValue,s=o.hostname,a=this.getBaseDomain(s),l=i?`${i}.${a}`:a;o.hostname=l,window.location.href=o.toString()}getCurrentTenantName(){const t=window.location.hostname;return this.extractSubdomain(t)||null}}const Ca={queryParams:new hp,sessionStorage:new mp,cookie:new yp,subdomain:new vp},bp=e=>{const t=Ca[e.clientSideMode];if(!t)throw new Error(`Client side tenant mode '${e.clientSideMode}' is not supported ${JSON.stringify({strategies:Ca},null,2)}`);return t},wp=(e,t,r)=>{const n=t.find(i=>i.name===r);if(!n)throw Error("No tenant permission");return bp(e).setTenant(n,e),n},_p=()=>{const[e,t]=Cr(),{tenants:r=[],currentTenant:n,tenantConfig:o=pp}=e,i=E.useCallback(s=>{const a=wp(o,r,s);t({...e,currentTenant:a})},[o,e]);return{tenants:r,currentTenant:n,tenantConfig:o,selectTenant:i}};function Cp(e){if(!e.ok)throw console.error(e),new Error(e.statusText)}async function gn(e,t,r,n){const o=await e(`/user-states/${encodeURIComponent(t)}/${encodeURIComponent(r)}`,n);return Cp(o),o}class yn{static async get(t,r,n){const i=await gn(t,r,n,{method:"GET",headers:{"Content-Type":"application/json"}});return i.status===204?null:await i.json()}static async create(t,r,n,o){const i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await gn(t,r,n,i)).json()}static async update(t,r,n,o){const i={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await gn(t,r,n,i)).json()}static async delete(t,r,n){return await gn(t,r,n,{method:"DELETE",headers:{"Content-Type":"application/json"}}),null}}const xp=e=>{const t=go("@bluealba/pae-nestjs-gateway-service"),r=Ss();if(!r)throw new Error("You must call the useUserState hook within a PAE application.");const[n,o]=E.useState(null),[i,s]=E.useState(!1),[a,l]=E.useState(!1),[c,d]=E.useState(null),p=(C,T)=>E.useCallback(async({newValue:S,shouldThrowError:A}={})=>{try{l(!0),d(null);const R=await C(t,r,e,S);return o(R),R?R.value:null}catch(R){if(d(R==null?void 0:R.message),console.error(`Failed to ${T} ${e}:`,R),A)throw R;return null}finally{l(!1)}},[t,r,e]),h=p(yn.get,"fetch"),g=p(yn.create,"create"),w=p(yn.update,"update"),m=p(yn.delete,"delete"),y=E.useCallback(async()=>{try{await h()}finally{s(!0)}},[h]);E.useEffect(()=>{y()},[y]);const _=E.useCallback(async(C,T=!1)=>n==null?await g({newValue:C,shouldThrowError:T}):await w({newValue:C,shouldThrowError:T}),[n,g,w]);return{value:n?n.value:null,hasFetched:i,loading:a,error:c,setValue:_,createValue:g,updateValue:w,deleteValue:m}},xa="__PAE_EXTENSION_POINT_REACT_CONTENT_EMPTY__",Ep=({module:e,point:t,children:r})=>(Os(e,t,r??xa),null),Ea=({name:e,children:t,...r})=>{const n=Ps(e);if(n===xa)return null;if(!n)return u.jsx(u.Fragment,{children:t??null});if(Sp(n)){const o=n;return u.jsx(o,{...r})}else return n},Sp=e=>typeof e=="function",Tp=(e,t)=>{const r=n=>(t=t||e.displayName||e.name||"?",u.jsx(Ea,{name:t,...n,children:u.jsx(e,{...n})}));return r.displayName=`extensionPoint(${t})`,r},Sa="single-spa:app-change";function Ap(){const[e,t]=E.useState(Ta());return E.useEffect(()=>{const r=()=>{t(Ta())};return window.addEventListener(Sa,r),()=>{window.removeEventListener(Sa,r)}},[]),e}function Ta(){return ne.getAppNames().reduce((t,r)=>(ne.getAppStatus(r)?t[r]=ne.getAppStatus(r):t[r]="NOT_LOADED",t),{})}function Pp(e){const r=Ap()[e]??"LOAD_ERROR";return{statusName:r,isLoading:r==="LOADING_SOURCE_CODE"||r==="BOOTSTRAPPING"||r==="MOUNTING",isMounted:r==="MOUNTED",isBroken:r==="SKIP_BECAUSE_BROKEN"||r==="LOAD_ERROR"}}const Aa=({appName:e})=>u.jsx("div",{children:u.jsxs("p",{children:["Loading ",e,"..."]})});Aa.displayName="BaseLoading";const Pa=({appName:e})=>u.jsxs("div",{children:[u.jsx("p",{children:"Something went wrong..."}),u.jsxs("p",{children:["Failed to load ",e]})]});Pa.displayName="BaseError";const Op={display:"flex",flexDirection:"column",flex:1},Oa=E.forwardRef((e,t)=>u.jsx("div",{ref:t,style:Op,...e}));Oa.displayName="BaseContainer";const Rp="pae-app:",Ra=E.forwardRef(({appName:e,LoadingComponent:t=Aa,ErrorComponent:r=Pa,ContainerComponent:n=Oa,...o},i)=>{const s=Pp(e);return u.jsxs(n,{ref:i,...o,id:`${Rp}${e}`,children:[s.isLoading&&u.jsx(t,{appName:e}),s.isBroken&&u.jsx(r,{appName:e})]})});Ra.displayName="ModulePlaceHolder";const zo=({operations:e,children:t,forbiddenContent:r})=>{var o;const{hasAccess:n}=qr();if(!n(...e)){if(!r)return null;if(typeof r=="function")if((o=r==null?void 0:r.prototype)!=null&&o.isReactComponent){const i=r;return u.jsx(i,{operations:e})}else return r({operations:e});return E.isValidElement(r)?r:null}return t};zo.displayName="Authorized";const kp=({eventName:e,listener:t})=>(Rs(e,t),null),jp=()=>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"})}),ka=({applicationName:e})=>{const t=Cs(e);if(t)if(typeof t=="function"){const r=t;return u.jsx(r,{})}else return t;return u.jsx(jp,{})};ka.displayName="ApplicationIcon";const Dp=(e,t)=>{const r=n=>u.jsx(zo,{operations:t,children:u.jsx(e,{...n})});return r.displayName="Authorized",r};function ja(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=ja(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function D(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ja(e))&&(n&&(n+=" "),n+=t);return n}const vn={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"},bn=E.forwardRef(({variant:e="contained",colorScheme:t="primary",loading:r=!1,IconComponent:n,className:o,children:i,...s},a)=>{const l=D(vn.button,vn[`button--${e}-${t}`],o);return u.jsxs("button",{ref:a,className:l,...s,children:[r?u.jsx("div",{className:vn.spinner}):n&&u.jsx(n,{className:vn.icon}),i]})});bn.displayName="Button";const wn={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"},Wo={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};for(const e in Wo)Object.freeze(Wo[e]);const Da=Object.freeze(Wo);var La={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function Lp(e){var d,p;var t,r=[],n=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(),Da[e])r=Da[e].slice(),o="rgb";else if(e==="transparent")n=0,o="rgb",r=[0,0,0];else if(e[0]==="#"){var i=e.slice(1),s=i.length,a=s<=4;n=1,a?(r=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],s===4&&(n=parseInt(i[3]+i[3],16)/255)):(r=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],s===8&&(n=parseInt(i[6]+i[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),o="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var l=t[1];o=l.replace(/a$/,"");var c=o==="cmyk"?4:o==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/),o==="color"&&(o=r.shift()),r=r.map(function(h,g){if(h[h.length-1]==="%")return h=parseFloat(h)/100,g===3?h:o==="rgb"?h*255:o[0]==="h"||o[0]==="l"&&!g?h*100:o==="lab"?h*125:o==="lch"?g<2?h*150:h*360:o[0]==="o"&&!g?h:o==="oklab"?h*.4:o==="oklch"?g<2?h*.4:h*360:h;if(o[g]==="h"||g===2&&o[o.length-1]==="h"){if(La[h]!==void 0)return La[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)}),n=r.length>c?r.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(r=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:r,alpha:n}}const Ip=(e,t)=>{const{space:r,values:n}=Lp(e);return r[0]==="h"?`${r}a(${n[0]}, ${n[1]}%, ${n[2]}%, ${t})`:`${r}a(${n}, ${t})`},Ho=E.forwardRef(({children:e,color:t,className:r,customColor:n,size:o="small",style:i,...s},a)=>{const l=n?{color:n,background:Ip(n,.1)}:{},c=D(wn.Badge,wn[`Badge--${o}`],{[wn[`Badge--${t}`]]:!!t},r);return u.jsx("span",{ref:a,className:c,style:{...i,...l},...s,children:e})});Ho.displayName="Badge";const Vo=E.forwardRef(({children:e,className:t,...r},n)=>{const o=D(wn.Badges,t);return u.jsx("div",{ref:n,className:o,...r,children:e})});Vo.displayName="Badges";const Ia=({size:e=24,color:t="currentColor",strokeWidth:r=2,className:n,style:o,...i})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round",className:n,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"})]}),Na=({size:e=24,color:t="currentColor",strokeWidth:r=2,className:n,style:o,...i})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round",className:n,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"})]}),Np={CopyToClipboardButton:"CopyToClipboardButton__2Nd2m"},$p=({content:e})=>{const[t,r]=Mp(),{notify:n}=Ao(),o=t?Na:Ia,i=E.useCallback(async()=>{await r(e)&&n("Copied to the Clipboard !","success")},[e,n]);return u.jsx(o,{className:Np.CopyToClipboardButton,size:18,onClick:i})},Mp=()=>{const[e,t]=E.useState(!1);return[e,async n=>{try{return await navigator.clipboard.writeText(n),t(!0),setTimeout(()=>t(!1),2e3),!0}catch(o){return console.error("Failed to copy text: ",o),!1}}]},$a={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"},Ma=E.forwardRef(({children:e,className:t,orientation:r="vertical",...n},o)=>{const i=D($a.FieldGroup,$a[`FieldGroup--${r}`],t);return u.jsx("div",{ref:o,className:i,...n,children:e})});Ma.displayName="FieldGroup";const Fa={Input:"Input__uS0sb",Error:"Error__-DQpw"},_n=E.forwardRef(({className:e,error:t,...r},n)=>{const o=D(Fa.Input,t&&Fa.Error,e);return u.jsx("input",{ref:n,className:o,...r})});_n.displayName="Input";const Fp={Error:"Error__N4OP5"},Ba=E.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Fp.Error,t);return u.jsx("span",{ref:n,className:o,...r,children:e})});Ba.displayName="InputError";const Ua={Label:"Label__VYUvW",Error:"Error__Eu6DI"},za=E.forwardRef(({children:e,className:t,error:r,...n},o)=>{const i=D(Ua.Label,r&&Ua.Error,t);return u.jsx("label",{ref:o,className:i,...n,children:e})});za.displayName="Label";const Go={Select:"Select__giqpe",Chevron:"Chevron__YvhBd"},Wa=E.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Go.Option,t);return u.jsx("option",{ref:n,className:o,...r,children:e})});Wa.displayName="Option";const qo=E.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Go.Select,t);return u.jsxs("div",{className:o,children:[u.jsx("select",{ref:n,...r,children:e}),u.jsx("div",{className:Go.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"})})})]})});qo.displayName="Select",qo.Option=Wa;const Bp={TextArea:"TextArea__pa-A0"},Ha=E.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Bp.TextArea,t);return u.jsx("textarea",{ref:n,className:o,...r,children:e})});Ha.displayName="TextArea";const Or={SearchInput:"SearchInput__4OFyE",SearchIcon:"SearchIcon__YgnQy",ClearIcon:"ClearIcon__ukRVr",SearchInput__ClearIcon:"SearchInput__ClearIcon__uzVoc",SearchInput__SearchIcon:"SearchInput__SearchIcon__zoDG4"},Qo=E.forwardRef(({className:e,placeholder:t="Type to search...",showClearButton:r=!1,showSearchIcon:n=!0,onClear:o,...i},s)=>{const a=D(Or.SearchInput,r&&Or.SearchInput__ClearIcon,n&&Or.SearchInput__SearchIcon,e),l=D(Or.SearchIcon),c=D(Or.ClearIcon);return u.jsxs("div",{className:a,children:[u.jsx(_n,{ref:s,type:"text",placeholder:t,...i}),n&&u.jsx("svg",{className:l,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"})}),r&&u.jsx("svg",{className:c,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"})})]})});Qo.displayName="SearchInput";const Tt={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"},At={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"},Cn=E.forwardRef(({children:e,className:t,open:r,align:n="right",...o},i)=>{const s=D(At.DropdownList,{[At["DropdownList--open"]]:r,[At["DropdownList--closed"]]:!r,[At["DropdownList--left"]]:n==="left"},t);return u.jsx("div",{ref:i,className:s,...o,children:e})});Cn.displayName="DropdownList";const Rr=E.forwardRef(({children:e,className:t,canBeSelected:r=!1,...n},o)=>{const i=D(Tt.AutocompleteItem,{[Tt["AutocompleteItem--canBeSelected"]]:r},t);return u.jsx("div",{ref:o,className:i,role:r?"option":void 0,...n,children:e})});Rr.displayName="AutocompleteItem";const Up=300,zp={query:"",suggestions:[],loading:!1,error:null},Wp=({suggestionFetcher:e,canAdd:t})=>{const[r,n]=E.useState(zp);return E.useEffect(()=>{n(a=>({...a,loading:!0}));const i=async()=>{try{const a=await e(r.query);t&&!a.some(l=>l.value.toLowerCase()===r.query.toLowerCase())&&a.push({label:`Add "${r.query}"`,value:r.query,isNew:!0}),n(l=>({...l,suggestions:a,loading:!1}))}catch(a){n(l=>({...l,suggestions:[],error:a,loading:!1}))}},s=setTimeout(()=>{i()},Up);return()=>{clearTimeout(s)}},[r.query]),{...r,setQuery:i=>{n(s=>({...s,query:i}))}}},Va=E.forwardRef(({text:e,query:t,className:r,...n},o)=>{const i=D(Tt.AutocompleteHighlighter,r),s=(a,l)=>{const c=a.toLowerCase().indexOf(l.toLowerCase());if(c===-1||l.length===0)return a;const d=a.slice(0,c),p=a.slice(c,c+l.length),h=a.slice(c+l.length);return u.jsxs(u.Fragment,{children:[d,u.jsx("span",{className:Tt.AutocompleteHighlighter__match,children:p}),s(h,l)]})};return u.jsx("div",{ref:o,className:i,...n,children:s(e,t)})});Va.displayName="AutocompleteHighlighter";const Hp=5,Ga=E.forwardRef(({children:e,className:t,canAdd:r,maxSuggestionsShown:n=Hp,searchInputProps:o,keepSelectedOption:i,suggestionFetcher:s,onAccept:a,...l},c)=>{const{query:d,setQuery:p,suggestions:h,loading:g}=Wp({suggestionFetcher:s,canAdd:r}),[w,m]=E.useState(null),y=d.length>0,_=O=>{p(O.target.value)},C=O=>{a==null||a(O),i?(m(O),p(O.value)):p("")},T=()=>{a==null||a(null),m(null),p("")},S=D(Tt.SearchAutocomplete,t),A=h.slice(0,n),R=h.slice(n);return u.jsxs("div",{ref:c,className:S,...l,children:[u.jsx(Qo,{...o,value:d,onChange:_,showClearButton:!!w,onClear:T}),e,u.jsxs(Cn,{className:Tt.DropdownList,open:y&&!w,role:"listbox","aria-label":"Suggestions",children:[g?u.jsx(Rr,{children:"Loading..."}):A.map(O=>u.jsxs(Rr,{canBeSelected:!0,onClick:C.bind(null,O),children:[u.jsx(Va,{text:O.label,query:d}),O.description&&u.jsx("span",{className:Tt.AutocompleteItemDescription,children:O.description})]},O.value)),!g&&R.length>0&&u.jsxs(Rr,{children:[R.length," more results"]}),y&&h.length===0&&!g&&u.jsx(Rr,{children:"No results found"})]})]})});Ga.displayName="SearchAutocomplete";const it=e=>{let t=null,r=null;return E.Children.forEach(e.children,n=>{const o=n.props.condition;o===void 0?r=n:!t&&o===!0&&(t=n)}),u.jsx(u.Fragment,{children:t||r})};it.displayName="Show",it.When=({condition:e,children:t})=>u.jsx(u.Fragment,{children:e&&t}),it.Else=({render:e,children:t})=>u.jsx(u.Fragment,{children:e||t});function qa(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function xn(...e){return t=>{let r=!1;const n=e.map(o=>{const i=qa(o,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let o=0;o<n.length;o++){const i=n[o];typeof i=="function"?i():qa(e[o],null)}}}}function Te(...e){return f.useCallback(xn(...e),e)}var Vp=Symbol.for("react.lazy"),En=f[" use ".trim().toString()];function Gp(e){return typeof e=="object"&&e!==null&&"then"in e}function Qa(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Vp&&"_payload"in e&&Gp(e._payload)}function qp(e){const t=Yp(e),r=f.forwardRef((n,o)=>{let{children:i,...s}=n;Qa(i)&&typeof En=="function"&&(i=En(i._payload));const a=f.Children.toArray(i),l=a.find(Zp);if(l){const c=l.props.children,d=a.map(p=>p===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:p);return u.jsx(t,{...s,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,d):null})}return u.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}var Qp=qp("Slot");function Yp(e){const t=f.forwardRef((r,n)=>{let{children:o,...i}=r;if(Qa(o)&&typeof En=="function"&&(o=En(o._payload)),f.isValidElement(o)){const s=Jp(o),a=Xp(i,o.props);return o.type!==f.Fragment&&(a.ref=n?xn(n,s):s),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Kp=Symbol("radix.slottable");function Zp(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Kp}function Xp(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{const l=i(...a);return o(...a),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function Jp(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const Ya={SkeletonListContainer:"SkeletonListContainer__MKJhE",Skeleton:"Skeleton__Ovpiw"},Sn=E.forwardRef((e,t)=>{const{children:r,className:n,loading:o,height:i=48,width:s,borderRadius:a,style:l,...c}=e;if(!o&&r)return r;const d=E.isValidElement(r)?Qp:"span";return u.jsx(d,{ref:t,"aria-hidden":!0,className:D(Ya.Skeleton,n),style:{...l,width:s,minWidth:s,height:i,borderRadius:a},"data-inline-skeleton":E.isValidElement(r)?void 0:!0,tabIndex:-1,...c,children:r})});Sn.displayName="Skeleton";const Ka=e=>{const{numberOfItems:t,itemsGap:r=2,itemProps:n}=e,o=Array.from({length:t},(i,s)=>s+1);return u.jsx("div",{className:D(Ya.SkeletonListContainer),style:{gap:r},children:o.map(i=>u.jsx(Sn,{loading:!0,...n},i))})};Ka.displayName="SkeletonList";function pe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function eh(e,t){const r=f.createContext(t),n=i=>{const{children:s,...a}=i,l=f.useMemo(()=>a,Object.values(a));return u.jsx(r.Provider,{value:l,children:s})};n.displayName=e+"Provider";function o(i){const s=f.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[n,o]}function Yo(e,t=[]){let r=[];function n(i,s){const a=f.createContext(s),l=r.length;r=[...r,s];const c=p=>{var _;const{scope:h,children:g,...w}=p,m=((_=h==null?void 0:h[e])==null?void 0:_[l])||a,y=f.useMemo(()=>w,Object.values(w));return u.jsx(m.Provider,{value:y,children:g})};c.displayName=i+"Provider";function d(p,h){var m;const g=((m=h==null?void 0:h[e])==null?void 0:m[l])||a,w=f.useContext(g);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[c,d]}const o=()=>{const i=r.map(s=>f.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[n,th(o,...t)]}function th(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=n.reduce((a,{useScope:l,scopeName:c})=>{const p=l(i)[`__scope${c}`];return{...a,...p}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function rh(e){const t=nh(e),r=f.forwardRef((n,o)=>{const{children:i,...s}=n,a=f.Children.toArray(i),l=a.find(ih);if(l){const c=l.props.children,d=a.map(p=>p===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:p);return u.jsx(t,{...s,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,d):null})}return u.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function nh(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const s=ah(o),a=sh(i,o.props);return o.type!==f.Fragment&&(a.ref=n?xn(n,s):s),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var oh=Symbol("radix.slottable");function ih(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===oh}function sh(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{const l=i(...a);return o(...a),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function ah(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var lh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],he=lh.reduce((e,t)=>{const r=rh(`Primitive.${t}`),n=f.forwardRef((o,i)=>{const{asChild:s,...a}=o,l=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ch(e,t){e&&ns.flushSync(()=>e.dispatchEvent(t))}function Gt(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function uh(e,t=globalThis==null?void 0:globalThis.document){const r=Gt(e);f.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var dh="DismissableLayer",Ko="dismissableLayer.update",fh="dismissableLayer.pointerDownOutside",ph="dismissableLayer.focusOutside",Za,Xa=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Zo=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,c=f.useContext(Xa),[d,p]=f.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=f.useState({}),w=Te(t,O=>p(O)),m=Array.from(c.layers),[y]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),_=m.indexOf(y),C=d?m.indexOf(d):-1,T=c.layersWithOutsidePointerEventsDisabled.size>0,S=C>=_,A=gh(O=>{const M=O.target,N=[...c.branches].some(I=>I.contains(M));!S||N||(o==null||o(O),s==null||s(O),O.defaultPrevented||a==null||a())},h),R=yh(O=>{const M=O.target;[...c.branches].some(I=>I.contains(M))||(i==null||i(O),s==null||s(O),O.defaultPrevented||a==null||a())},h);return uh(O=>{C===c.layers.size-1&&(n==null||n(O),!O.defaultPrevented&&a&&(O.preventDefault(),a()))},h),f.useEffect(()=>{if(d)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Za=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Ja(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Za)}},[d,h,r,c]),f.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Ja())},[d,c]),f.useEffect(()=>{const O=()=>g({});return document.addEventListener(Ko,O),()=>document.removeEventListener(Ko,O)},[]),u.jsx(he.div,{...l,ref:w,style:{pointerEvents:T?S?"auto":"none":void 0,...e.style},onFocusCapture:pe(e.onFocusCapture,R.onFocusCapture),onBlurCapture:pe(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:pe(e.onPointerDownCapture,A.onPointerDownCapture)})});Zo.displayName=dh;var hh="DismissableLayerBranch",mh=f.forwardRef((e,t)=>{const r=f.useContext(Xa),n=f.useRef(null),o=Te(t,n);return f.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),u.jsx(he.div,{...e,ref:o})});mh.displayName=hh;function gh(e,t=globalThis==null?void 0:globalThis.document){const r=Gt(e),n=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const i=a=>{if(a.target&&!n.current){let l=function(){el(fh,r,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function yh(e,t=globalThis==null?void 0:globalThis.document){const r=Gt(e),n=f.useRef(!1);return f.useEffect(()=>{const o=i=>{i.target&&!n.current&&el(ph,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Ja(){const e=new CustomEvent(Ko);document.dispatchEvent(e)}function el(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?ch(o,i):o.dispatchEvent(i)}var st=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},vh=f[" useId ".trim().toString()]||(()=>{}),bh=0;function Tn(e){const[t,r]=f.useState(vh());return st(()=>{r(n=>n??String(bh++))},[e]),e||(t?`radix-${t}`:"")}const wh=["top","right","bottom","left"],at=Math.min,we=Math.max,An=Math.round,Pn=Math.floor,Le=e=>({x:e,y:e}),_h={left:"right",right:"left",bottom:"top",top:"bottom"},Ch={start:"end",end:"start"};function Xo(e,t,r){return we(e,at(t,r))}function Ge(e,t){return typeof e=="function"?e(t):e}function qe(e){return e.split("-")[0]}function qt(e){return e.split("-")[1]}function Jo(e){return e==="x"?"y":"x"}function ei(e){return e==="y"?"height":"width"}const xh=new Set(["top","bottom"]);function Ie(e){return xh.has(qe(e))?"y":"x"}function ti(e){return Jo(Ie(e))}function Eh(e,t,r){r===void 0&&(r=!1);const n=qt(e),o=ti(e),i=ei(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=On(s)),[s,On(s)]}function Sh(e){const t=On(e);return[ri(e),t,ri(t)]}function ri(e){return e.replace(/start|end/g,t=>Ch[t])}const tl=["left","right"],rl=["right","left"],Th=["top","bottom"],Ah=["bottom","top"];function Ph(e,t,r){switch(e){case"top":case"bottom":return r?t?rl:tl:t?tl:rl;case"left":case"right":return t?Th:Ah;default:return[]}}function Oh(e,t,r,n){const o=qt(e);let i=Ph(qe(e),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(ri)))),i}function On(e){return e.replace(/left|right|bottom|top/g,t=>_h[t])}function Rh(e){return{top:0,right:0,bottom:0,left:0,...e}}function nl(e){return typeof e!="number"?Rh(e):{top:e,right:e,bottom:e,left:e}}function Rn(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function ol(e,t,r){let{reference:n,floating:o}=e;const i=Ie(t),s=ti(t),a=ei(s),l=qe(t),c=i==="y",d=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,h=n[a]/2-o[a]/2;let g;switch(l){case"top":g={x:d,y:n.y-o.height};break;case"bottom":g={x:d,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:p};break;case"left":g={x:n.x-o.width,y:p};break;default:g={x:n.x,y:n.y}}switch(qt(t)){case"start":g[s]-=h*(r&&c?-1:1);break;case"end":g[s]+=h*(r&&c?-1:1);break}return g}const kh=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=ol(c,n,l),h=n,g={},w=0;for(let m=0;m<a.length;m++){const{name:y,fn:_}=a[m],{x:C,y:T,data:S,reset:A}=await _({x:d,y:p,initialPlacement:n,placement:h,strategy:o,middlewareData:g,rects:c,platform:s,elements:{reference:e,floating:t}});d=C??d,p=T??p,g={...g,[y]:{...g[y],...S}},A&&w<=50&&(w++,typeof A=="object"&&(A.placement&&(h=A.placement),A.rects&&(c=A.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):A.rects),{x:d,y:p}=ol(c,h,l)),m=-1)}return{x:d,y:p,placement:h,strategy:o,middlewareData:g}};async function kr(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:g=0}=Ge(t,e),w=nl(g),y=a[h?p==="floating"?"reference":"floating":p],_=Rn(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(y)))==null||r?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),C=p==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),S=await(i.isElement==null?void 0:i.isElement(T))?await(i.getScale==null?void 0:i.getScale(T))||{x:1,y:1}:{x:1,y:1},A=Rn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:C,offsetParent:T,strategy:l}):C);return{top:(_.top-A.top+w.top)/S.y,bottom:(A.bottom-_.bottom+w.bottom)/S.y,left:(_.left-A.left+w.left)/S.x,right:(A.right-_.right+w.right)/S.x}}const jh=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=Ge(e,t)||{};if(c==null)return{};const p=nl(d),h={x:r,y:n},g=ti(o),w=ei(g),m=await s.getDimensions(c),y=g==="y",_=y?"top":"left",C=y?"bottom":"right",T=y?"clientHeight":"clientWidth",S=i.reference[w]+i.reference[g]-h[g]-i.floating[w],A=h[g]-i.reference[g],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let O=R?R[T]:0;(!O||!await(s.isElement==null?void 0:s.isElement(R)))&&(O=a.floating[T]||i.floating[w]);const M=S/2-A/2,N=O/2-m[w]/2-1,I=at(p[_],N),G=at(p[C],N),Y=I,H=O-m[w]-G,Q=O/2-m[w]/2+M,ie=Xo(Y,Q,H),J=!l.arrow&&qt(o)!=null&&Q!==ie&&i.reference[w]/2-(Q<Y?I:G)-m[w]/2<0,ee=J?Q<Y?Q-Y:Q-H:0;return{[g]:h[g]+ee,data:{[g]:ie,centerOffset:Q-ie-ee,...J&&{alignmentOffset:ee}},reset:J}}}),Dh=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:m=!0,...y}=Ge(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const _=qe(o),C=Ie(a),T=qe(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),A=h||(T||!m?[On(a)]:Sh(a)),R=w!=="none";!h&&R&&A.push(...Oh(a,m,w,S));const O=[a,...A],M=await kr(t,y),N=[];let I=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&N.push(M[_]),p){const Q=Eh(o,s,S);N.push(M[Q[0]],M[Q[1]])}if(I=[...I,{placement:o,overflows:N}],!N.every(Q=>Q<=0)){var G,Y;const Q=(((G=i.flip)==null?void 0:G.index)||0)+1,ie=O[Q];if(ie&&(!(p==="alignment"?C!==Ie(ie):!1)||I.every(B=>Ie(B.placement)===C?B.overflows[0]>0:!0)))return{data:{index:Q,overflows:I},reset:{placement:ie}};let J=(Y=I.filter(ee=>ee.overflows[0]<=0).sort((ee,B)=>ee.overflows[1]-B.overflows[1])[0])==null?void 0:Y.placement;if(!J)switch(g){case"bestFit":{var H;const ee=(H=I.filter(B=>{if(R){const se=Ie(B.placement);return se===C||se==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(se=>se>0).reduce((se,Ce)=>se+Ce,0)]).sort((B,se)=>B[1]-se[1])[0])==null?void 0:H[0];ee&&(J=ee);break}case"initialPlacement":J=a;break}if(o!==J)return{reset:{placement:J}}}return{}}}};function il(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function sl(e){return wh.some(t=>e[t]>=0)}const Lh=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Ge(e,t);switch(n){case"referenceHidden":{const i=await kr(t,{...o,elementContext:"reference"}),s=il(i,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:sl(s)}}}case"escaped":{const i=await kr(t,{...o,altBoundary:!0}),s=il(i,r.floating);return{data:{escapedOffsets:s,escaped:sl(s)}}}default:return{}}}}},al=new Set(["left","top"]);async function Ih(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=qe(r),a=qt(r),l=Ie(r)==="y",c=al.has(s)?-1:1,d=i&&l?-1:1,p=Ge(t,e);let{mainAxis:h,crossAxis:g,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"&&(g=a==="end"?w*-1:w),l?{x:g*d,y:h*c}:{x:h*c,y:g*d}}const Nh=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await Ih(t,e);return s===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},$h=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:y=>{let{x:_,y:C}=y;return{x:_,y:C}}},...l}=Ge(e,t),c={x:r,y:n},d=await kr(t,l),p=Ie(qe(o)),h=Jo(p);let g=c[h],w=c[p];if(i){const y=h==="y"?"top":"left",_=h==="y"?"bottom":"right",C=g+d[y],T=g-d[_];g=Xo(C,g,T)}if(s){const y=p==="y"?"top":"left",_=p==="y"?"bottom":"right",C=w+d[y],T=w-d[_];w=Xo(C,w,T)}const m=a.fn({...t,[h]:g,[p]:w});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[h]:i,[p]:s}}}}}},Mh=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Ge(e,t),d={x:r,y:n},p=Ie(o),h=Jo(p);let g=d[h],w=d[p];const m=Ge(a,t),y=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const T=h==="y"?"height":"width",S=i.reference[h]-i.floating[T]+y.mainAxis,A=i.reference[h]+i.reference[T]-y.mainAxis;g<S?g=S:g>A&&(g=A)}if(c){var _,C;const T=h==="y"?"width":"height",S=al.has(qe(o)),A=i.reference[p]-i.floating[T]+(S&&((_=s.offset)==null?void 0:_[p])||0)+(S?0:y.crossAxis),R=i.reference[p]+i.reference[T]+(S?0:((C=s.offset)==null?void 0:C[p])||0)-(S?y.crossAxis:0);w<A?w=A:w>R&&(w=R)}return{[h]:g,[p]:w}}}},Fh=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=Ge(e,t),d=await kr(t,c),p=qe(o),h=qt(o),g=Ie(o)==="y",{width:w,height:m}=i.floating;let y,_;p==="top"||p==="bottom"?(y=p,_=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(_=p,y=h==="end"?"top":"bottom");const C=m-d.top-d.bottom,T=w-d.left-d.right,S=at(m-d[y],C),A=at(w-d[_],T),R=!t.middlewareData.shift;let O=S,M=A;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(M=T),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(O=C),R&&!h){const I=we(d.left,0),G=we(d.right,0),Y=we(d.top,0),H=we(d.bottom,0);g?M=w-2*(I!==0||G!==0?I+G:we(d.left,d.right)):O=m-2*(Y!==0||H!==0?Y+H:we(d.top,d.bottom))}await l({...t,availableWidth:M,availableHeight:O});const N=await s.getDimensions(a.floating);return w!==N.width||m!==N.height?{reset:{rects:!0}}:{}}}};function kn(){return typeof window<"u"}function Qt(e){return ll(e)?(e.nodeName||"").toLowerCase():"#document"}function _e(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ne(e){var t;return(t=(ll(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ll(e){return kn()?e instanceof Node||e instanceof _e(e).Node:!1}function Ae(e){return kn()?e instanceof Element||e instanceof _e(e).Element:!1}function $e(e){return kn()?e instanceof HTMLElement||e instanceof _e(e).HTMLElement:!1}function cl(e){return!kn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _e(e).ShadowRoot}const Bh=new Set(["inline","contents"]);function jr(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Pe(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!Bh.has(o)}const Uh=new Set(["table","td","th"]);function zh(e){return Uh.has(Qt(e))}const Wh=[":popover-open",":modal"];function jn(e){return Wh.some(t=>{try{return e.matches(t)}catch{return!1}})}const Hh=["transform","translate","scale","rotate","perspective"],Vh=["transform","translate","scale","rotate","perspective","filter"],Gh=["paint","layout","strict","content"];function ni(e){const t=oi(),r=Ae(e)?Pe(e):e;return Hh.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Vh.some(n=>(r.willChange||"").includes(n))||Gh.some(n=>(r.contain||"").includes(n))}function qh(e){let t=lt(e);for(;$e(t)&&!Yt(t);){if(ni(t))return t;if(jn(t))return null;t=lt(t)}return null}function oi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Qh=new Set(["html","body","#document"]);function Yt(e){return Qh.has(Qt(e))}function Pe(e){return _e(e).getComputedStyle(e)}function Dn(e){return Ae(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function lt(e){if(Qt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||cl(e)&&e.host||Ne(e);return cl(t)?t.host:t}function ul(e){const t=lt(e);return Yt(t)?e.ownerDocument?e.ownerDocument.body:e.body:$e(t)&&jr(t)?t:ul(t)}function Dr(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=ul(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=_e(o);if(i){const a=ii(s);return t.concat(s,s.visualViewport||[],jr(o)?o:[],a&&r?Dr(a):[])}return t.concat(o,Dr(o,[],r))}function ii(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function dl(e){const t=Pe(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=$e(e),i=o?e.offsetWidth:r,s=o?e.offsetHeight:n,a=An(r)!==i||An(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function si(e){return Ae(e)?e:e.contextElement}function Kt(e){const t=si(e);if(!$e(t))return Le(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=dl(t);let s=(i?An(r.width):r.width)/n,a=(i?An(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Yh=Le(0);function fl(e){const t=_e(e);return!oi()||!t.visualViewport?Yh:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Kh(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==_e(e)?!1:t}function Pt(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=si(e);let s=Le(1);t&&(n?Ae(n)&&(s=Kt(n)):s=Kt(e));const a=Kh(i,r,n)?fl(i):Le(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,d=o.width/s.x,p=o.height/s.y;if(i){const h=_e(i),g=n&&Ae(n)?_e(n):n;let w=h,m=ii(w);for(;m&&n&&g!==w;){const y=Kt(m),_=m.getBoundingClientRect(),C=Pe(m),T=_.left+(m.clientLeft+parseFloat(C.paddingLeft))*y.x,S=_.top+(m.clientTop+parseFloat(C.paddingTop))*y.y;l*=y.x,c*=y.y,d*=y.x,p*=y.y,l+=T,c+=S,w=_e(m),m=ii(w)}}return Rn({width:d,height:p,x:l,y:c})}function Ln(e,t){const r=Dn(e).scrollLeft;return t?t.left+r:Pt(Ne(e)).left+r}function pl(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Ln(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function Zh(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",s=Ne(n),a=t?jn(t.floating):!1;if(n===s||a&&i)return r;let l={scrollLeft:0,scrollTop:0},c=Le(1);const d=Le(0),p=$e(n);if((p||!p&&!i)&&((Qt(n)!=="body"||jr(s))&&(l=Dn(n)),$e(n))){const g=Pt(n);c=Kt(n),d.x=g.x+n.clientLeft,d.y=g.y+n.clientTop}const h=s&&!p&&!i?pl(s,l):Le(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+d.x+h.x,y:r.y*c.y-l.scrollTop*c.y+d.y+h.y}}function Xh(e){return Array.from(e.getClientRects())}function Jh(e){const t=Ne(e),r=Dn(e),n=e.ownerDocument.body,o=we(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=we(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+Ln(e);const a=-r.scrollTop;return Pe(n).direction==="rtl"&&(s+=we(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}const hl=25;function e1(e,t){const r=_e(e),n=Ne(e),o=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const d=oi();(!d||d&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const c=Ln(n);if(c<=0){const d=n.ownerDocument,p=d.body,h=getComputedStyle(p),g=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,w=Math.abs(n.clientWidth-p.clientWidth-g);w<=hl&&(i-=w)}else c<=hl&&(i+=c);return{width:i,height:s,x:a,y:l}}const t1=new Set(["absolute","fixed"]);function r1(e,t){const r=Pt(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=$e(e)?Kt(e):Le(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=n*i.y;return{width:s,height:a,x:l,y:c}}function ml(e,t,r){let n;if(t==="viewport")n=e1(e,r);else if(t==="document")n=Jh(Ne(e));else if(Ae(t))n=r1(t,r);else{const o=fl(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Rn(n)}function gl(e,t){const r=lt(e);return r===t||!Ae(r)||Yt(r)?!1:Pe(r).position==="fixed"||gl(r,t)}function n1(e,t){const r=t.get(e);if(r)return r;let n=Dr(e,[],!1).filter(a=>Ae(a)&&Qt(a)!=="body"),o=null;const i=Pe(e).position==="fixed";let s=i?lt(e):e;for(;Ae(s)&&!Yt(s);){const a=Pe(s),l=ni(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&t1.has(o.position)||jr(s)&&!l&&gl(e,s))?n=n.filter(d=>d!==s):o=a,s=lt(s)}return t.set(e,n),n}function o1(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?jn(t)?[]:n1(t,this._c):[].concat(r),n],a=s[0],l=s.reduce((c,d)=>{const p=ml(t,d,o);return c.top=we(p.top,c.top),c.right=at(p.right,c.right),c.bottom=at(p.bottom,c.bottom),c.left=we(p.left,c.left),c},ml(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function i1(e){const{width:t,height:r}=dl(e);return{width:t,height:r}}function s1(e,t,r){const n=$e(t),o=Ne(t),i=r==="fixed",s=Pt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Le(0);function c(){l.x=Ln(o)}if(n||!n&&!i)if((Qt(t)!=="body"||jr(o))&&(a=Dn(t)),n){const g=Pt(t,!0,i,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else o&&c();i&&!n&&o&&c();const d=o&&!n&&!i?pl(o,a):Le(0),p=s.left+a.scrollLeft-l.x-d.x,h=s.top+a.scrollTop-l.y-d.y;return{x:p,y:h,width:s.width,height:s.height}}function ai(e){return Pe(e).position==="static"}function yl(e,t){if(!$e(e)||Pe(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ne(e)===r&&(r=r.ownerDocument.body),r}function vl(e,t){const r=_e(e);if(jn(e))return r;if(!$e(e)){let o=lt(e);for(;o&&!Yt(o);){if(Ae(o)&&!ai(o))return o;o=lt(o)}return r}let n=yl(e,t);for(;n&&zh(n)&&ai(n);)n=yl(n,t);return n&&Yt(n)&&ai(n)&&!ni(n)?r:n||qh(e)||r}const a1=async function(e){const t=this.getOffsetParent||vl,r=this.getDimensions,n=await r(e.floating);return{reference:s1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function l1(e){return Pe(e).direction==="rtl"}const c1={convertOffsetParentRelativeRectToViewportRelativeRect:Zh,getDocumentElement:Ne,getClippingRect:o1,getOffsetParent:vl,getElementRects:a1,getClientRects:Xh,getDimensions:i1,getScale:Kt,isElement:Ae,isRTL:l1};function bl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function u1(e,t){let r=null,n;const o=Ne(e);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:d,top:p,width:h,height:g}=c;if(a||t(),!h||!g)return;const w=Pn(p),m=Pn(o.clientWidth-(d+h)),y=Pn(o.clientHeight-(p+g)),_=Pn(d),T={rootMargin:-w+"px "+-m+"px "+-y+"px "+-_+"px",threshold:we(0,at(1,l))||1};let S=!0;function A(R){const O=R[0].intersectionRatio;if(O!==l){if(!S)return s();O?s(!1,O):n=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!bl(c,e.getBoundingClientRect())&&s(),S=!1}try{r=new IntersectionObserver(A,{...T,root:o.ownerDocument})}catch{r=new IntersectionObserver(A,T)}r.observe(e)}return s(!0),i}function d1(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=si(e),d=o||i?[...c?Dr(c):[],...Dr(t)]:[];d.forEach(_=>{o&&_.addEventListener("scroll",r,{passive:!0}),i&&_.addEventListener("resize",r)});const p=c&&a?u1(c,r):null;let h=-1,g=null;s&&(g=new ResizeObserver(_=>{let[C]=_;C&&C.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var T;(T=g)==null||T.observe(t)})),r()}),c&&!l&&g.observe(c),g.observe(t));let w,m=l?Pt(e):null;l&&y();function y(){const _=Pt(e);m&&!bl(m,_)&&r(),m=_,w=requestAnimationFrame(y)}return r(),()=>{var _;d.forEach(C=>{o&&C.removeEventListener("scroll",r),i&&C.removeEventListener("resize",r)}),p==null||p(),(_=g)==null||_.disconnect(),g=null,l&&cancelAnimationFrame(w)}}const f1=Nh,p1=$h,h1=Dh,m1=Fh,g1=Lh,wl=jh,y1=Mh,v1=(e,t,r)=>{const n=new Map,o={platform:c1,...r},i={...o.platform,_c:n};return kh(e,t,{...o,platform:i})};var b1=typeof document<"u",w1=function(){},In=b1?E.useLayoutEffect:w1;function Nn(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 r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Nn(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!Nn(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function _l(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Cl(e,t){const r=_l(e);return Math.round(t*r)/r}function li(e){const t=f.useRef(e);return In(()=>{t.current=e}),t}function _1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,p]=f.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=f.useState(n);Nn(h,n)||g(n);const[w,m]=f.useState(null),[y,_]=f.useState(null),C=f.useCallback(B=>{B!==R.current&&(R.current=B,m(B))},[]),T=f.useCallback(B=>{B!==O.current&&(O.current=B,_(B))},[]),S=i||w,A=s||y,R=f.useRef(null),O=f.useRef(null),M=f.useRef(d),N=l!=null,I=li(l),G=li(o),Y=li(c),H=f.useCallback(()=>{if(!R.current||!O.current)return;const B={placement:t,strategy:r,middleware:h};G.current&&(B.platform=G.current),v1(R.current,O.current,B).then(se=>{const Ce={...se,isPositioned:Y.current!==!1};Q.current&&!Nn(M.current,Ce)&&(M.current=Ce,ns.flushSync(()=>{p(Ce)}))})},[h,t,r,G,Y]);In(()=>{c===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,p(B=>({...B,isPositioned:!1})))},[c]);const Q=f.useRef(!1);In(()=>(Q.current=!0,()=>{Q.current=!1}),[]),In(()=>{if(S&&(R.current=S),A&&(O.current=A),S&&A){if(I.current)return I.current(S,A,H);H()}},[S,A,H,I,N]);const ie=f.useMemo(()=>({reference:R,floating:O,setReference:C,setFloating:T}),[C,T]),J=f.useMemo(()=>({reference:S,floating:A}),[S,A]),ee=f.useMemo(()=>{const B={position:r,left:0,top:0};if(!J.floating)return B;const se=Cl(J.floating,d.x),Ce=Cl(J.floating,d.y);return a?{...B,transform:"translate("+se+"px, "+Ce+"px)",..._l(J.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:se,top:Ce}},[r,a,J.floating,d.x,d.y]);return f.useMemo(()=>({...d,update:H,refs:ie,elements:J,floatingStyles:ee}),[d,H,ie,J,ee])}const C1=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?wl({element:n.current,padding:o}).fn(r):{}:n?wl({element:n,padding:o}).fn(r):{}}}},x1=(e,t)=>({...f1(e),options:[e,t]}),E1=(e,t)=>({...p1(e),options:[e,t]}),S1=(e,t)=>({...y1(e),options:[e,t]}),T1=(e,t)=>({...h1(e),options:[e,t]}),A1=(e,t)=>({...m1(e),options:[e,t]}),P1=(e,t)=>({...g1(e),options:[e,t]}),O1=(e,t)=>({...C1(e),options:[e,t]});var R1="Arrow",xl=f.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return u.jsx(he.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});xl.displayName=R1;var k1=xl;function j1(e){const[t,r]=f.useState(void 0);return st(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,a=c.blockSize}else s=e.offsetWidth,a=e.offsetHeight;r({width:s,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var ci="Popper",[El,Sl]=Yo(ci),[D1,Tl]=El(ci),Al=e=>{const{__scopePopper:t,children:r}=e,[n,o]=f.useState(null);return u.jsx(D1,{scope:t,anchor:n,onAnchorChange:o,children:r})};Al.displayName=ci;var Pl="PopperAnchor",Ol=f.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,i=Tl(Pl,r),s=f.useRef(null),a=Te(t,s),l=f.useRef(null);return f.useEffect(()=>{const c=l.current;l.current=(n==null?void 0:n.current)||s.current,c!==l.current&&i.onAnchorChange(l.current)}),n?null:u.jsx(he.div,{...o,ref:a})});Ol.displayName=Pl;var ui="PopperContent",[L1,I1]=El(ui),Rl=f.forwardRef((e,t)=>{var gr,Bt,yr,Ut,ro,Hr;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:g="optimized",onPlaced:w,...m}=e,y=Tl(ui,r),[_,C]=f.useState(null),T=Te(t,zt=>C(zt)),[S,A]=f.useState(null),R=j1(S),O=(R==null?void 0:R.width)??0,M=(R==null?void 0:R.height)??0,N=n+(i!=="center"?"-"+i:""),I=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},G=Array.isArray(c)?c:[c],Y=G.length>0,H={padding:I,boundary:G.filter($1),altBoundary:Y},{refs:Q,floatingStyles:ie,placement:J,isPositioned:ee,middlewareData:B}=_1({strategy:"fixed",placement:N,whileElementsMounted:(...zt)=>d1(...zt,{animationFrame:g==="always"}),elements:{reference:y.anchor},middleware:[x1({mainAxis:o+M,alignmentAxis:s}),l&&E1({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?S1():void 0,...H}),l&&T1({...H}),A1({...H,apply:({elements:zt,rects:no,availableWidth:vr,availableHeight:Wt})=>{const{width:oo,height:io}=no.reference,Xe=zt.floating.style;Xe.setProperty("--radix-popper-available-width",`${vr}px`),Xe.setProperty("--radix-popper-available-height",`${Wt}px`),Xe.setProperty("--radix-popper-anchor-width",`${oo}px`),Xe.setProperty("--radix-popper-anchor-height",`${io}px`)}}),S&&O1({element:S,padding:a}),M1({arrowWidth:O,arrowHeight:M}),h&&P1({strategy:"referenceHidden",...H})]}),[se,Ce]=Dl(J),Ft=Gt(w);st(()=>{ee&&(Ft==null||Ft())},[ee,Ft]);const eo=(gr=B.arrow)==null?void 0:gr.x,to=(Bt=B.arrow)==null?void 0:Bt.y,Bi=((yr=B.arrow)==null?void 0:yr.centerOffset)!==0,[Ui,Wr]=f.useState();return st(()=>{_&&Wr(window.getComputedStyle(_).zIndex)},[_]),u.jsx("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:{...ie,transform:ee?ie.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ui,"--radix-popper-transform-origin":[(Ut=B.transformOrigin)==null?void 0:Ut.x,(ro=B.transformOrigin)==null?void 0:ro.y].join(" "),...((Hr=B.hide)==null?void 0:Hr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(L1,{scope:r,placedSide:se,onArrowChange:A,arrowX:eo,arrowY:to,shouldHideArrow:Bi,children:u.jsx(he.div,{"data-side":se,"data-align":Ce,...m,ref:T,style:{...m.style,animation:ee?void 0:"none"}})})})});Rl.displayName=ui;var kl="PopperArrow",N1={top:"bottom",right:"left",bottom:"top",left:"right"},jl=f.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,i=I1(kl,n),s=N1[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(k1,{...o,ref:r,style:{...o.style,display:"block"}})})});jl.displayName=kl;function $1(e){return e!==null}var M1=e=>({name:"transformOrigin",options:e,fn(t){var y,_,C;const{placement:r,rects:n,middlewareData:o}=t,s=((y=o.arrow)==null?void 0:y.centerOffset)!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[c,d]=Dl(r),p={start:"0%",center:"50%",end:"100%"}[d],h=(((_=o.arrow)==null?void 0:_.x)??0)+a/2,g=(((C=o.arrow)==null?void 0:C.y)??0)+l/2;let w="",m="";return c==="bottom"?(w=s?p:`${h}px`,m=`${-l}px`):c==="top"?(w=s?p:`${h}px`,m=`${n.floating.height+l}px`):c==="right"?(w=`${-l}px`,m=s?p:`${g}px`):c==="left"&&(w=`${n.floating.width+l}px`,m=s?p:`${g}px`),{data:{x:w,y:m}}}});function Dl(e){const[t,r="center"]=e.split("-");return[t,r]}var F1=Al,B1=Ol,U1=Rl,z1=jl,W1="Portal",di=f.forwardRef((e,t)=>{var a;const{container:r,...n}=e,[o,i]=f.useState(!1);st(()=>i(!0),[]);const s=r||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?_t.createPortal(u.jsx(he.div,{...n,ref:t}),s):null});di.displayName=W1;function H1(e,t){return f.useReducer((r,n)=>t[r][n]??r,e)}var Zt=e=>{const{present:t,children:r}=e,n=V1(t),o=typeof r=="function"?r({present:n.isPresent}):f.Children.only(r),i=Te(n.ref,G1(o));return typeof r=="function"||n.isPresent?f.cloneElement(o,{ref:i}):null};Zt.displayName="Presence";function V1(e){const[t,r]=f.useState(),n=f.useRef(null),o=f.useRef(e),i=f.useRef("none"),s=e?"mounted":"unmounted",[a,l]=H1(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const c=$n(n.current);i.current=a==="mounted"?c:"none"},[a]),st(()=>{const c=n.current,d=o.current;if(d!==e){const h=i.current,g=$n(c);e?l("MOUNT"):g==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),st(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,p=g=>{const m=$n(n.current).includes(CSS.escape(g.animationName));if(g.target===t&&m&&(l("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},h=g=>{g.target===t&&(i.current=$n(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:f.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function $n(e){return(e==null?void 0:e.animationName)||"none"}function G1(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var q1=Symbol("radix.slottable");function Q1(e){const t=({children:r})=>u.jsx(u.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=q1,t}var Y1=f[" useInsertionEffect ".trim().toString()]||st;function Ll({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,i,s]=K1({defaultProp:t,onChange:r}),a=e!==void 0,l=a?e:o;{const d=f.useRef(e!==void 0);f.useEffect(()=>{const p=d.current;p!==a&&console.warn(`${n} 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,n])}const c=f.useCallback(d=>{var p;if(a){const h=Z1(d)?d(e):d;h!==e&&((p=s.current)==null||p.call(s,h))}else i(d)},[a,e,i,s]);return[l,c]}function K1({defaultProp:e,onChange:t}){const[r,n]=f.useState(e),o=f.useRef(r),i=f.useRef(t);return Y1(()=>{i.current=t},[t]),f.useEffect(()=>{var s;o.current!==r&&((s=i.current)==null||s.call(i,r),o.current=r)},[r,o]),[r,n,i]}function Z1(e){return typeof e=="function"}var X1=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"}),J1="VisuallyHidden",Il=f.forwardRef((e,t)=>u.jsx(he.span,{...e,ref:t,style:{...X1,...e.style}}));Il.displayName=J1;var em=Il,[Mn]=Yo("Tooltip",[Sl]),Fn=Sl(),Nl="TooltipProvider",tm=700,fi="tooltip.open",[rm,pi]=Mn(Nl),$l=e=>{const{__scopeTooltip:t,delayDuration:r=tm,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:i}=e,s=f.useRef(!0),a=f.useRef(!1),l=f.useRef(0);return f.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),u.jsx(rm,{scope:t,isOpenDelayedRef:s,delayDuration:r,onOpen:f.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,n)},[n]),isPointerInTransitRef:a,onPointerInTransitChange:f.useCallback(c=>{a.current=c},[]),disableHoverableContent:o,children:i})};$l.displayName=Nl;var Lr="Tooltip",[nm,Ir]=Mn(Lr),Ml=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,l=pi(Lr,e.__scopeTooltip),c=Fn(t),[d,p]=f.useState(null),h=Tn(),g=f.useRef(0),w=s??l.disableHoverableContent,m=a??l.delayDuration,y=f.useRef(!1),[_,C]=Ll({prop:n,defaultProp:o??!1,onChange:O=>{O?(l.onOpen(),document.dispatchEvent(new CustomEvent(fi))):l.onClose(),i==null||i(O)},caller:Lr}),T=f.useMemo(()=>_?y.current?"delayed-open":"instant-open":"closed",[_]),S=f.useCallback(()=>{window.clearTimeout(g.current),g.current=0,y.current=!1,C(!0)},[C]),A=f.useCallback(()=>{window.clearTimeout(g.current),g.current=0,C(!1)},[C]),R=f.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{y.current=!0,C(!0),g.current=0},m)},[m,C]);return f.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),u.jsx(F1,{...c,children:u.jsx(nm,{scope:t,contentId:h,open:_,stateAttribute:T,trigger:d,onTriggerChange:p,onTriggerEnter:f.useCallback(()=>{l.isOpenDelayedRef.current?R():S()},[l.isOpenDelayedRef,R,S]),onTriggerLeave:f.useCallback(()=>{w?A():(window.clearTimeout(g.current),g.current=0)},[A,w]),onOpen:S,onClose:A,disableHoverableContent:w,children:r})})};Ml.displayName=Lr;var hi="TooltipTrigger",Fl=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Ir(hi,r),i=pi(hi,r),s=Fn(r),a=f.useRef(null),l=Te(t,a,o.onTriggerChange),c=f.useRef(!1),d=f.useRef(!1),p=f.useCallback(()=>c.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),u.jsx(B1,{asChild:!0,...s,children:u.jsx(he.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:l,onPointerMove:pe(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:pe(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:pe(e.onPointerDown,()=>{o.open&&o.onClose(),c.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:pe(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:pe(e.onBlur,o.onClose),onClick:pe(e.onClick,o.onClose)})})});Fl.displayName=hi;var mi="TooltipPortal",[om,im]=Mn(mi,{forceMount:void 0}),Bl=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,i=Ir(mi,t);return u.jsx(om,{scope:t,forceMount:r,children:u.jsx(Zt,{present:r||i.open,children:u.jsx(di,{asChild:!0,container:o,children:n})})})};Bl.displayName=mi;var Xt="TooltipContent",Ul=f.forwardRef((e,t)=>{const r=im(Xt,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...i}=e,s=Ir(Xt,e.__scopeTooltip);return u.jsx(Zt,{present:n||s.open,children:s.disableHoverableContent?u.jsx(zl,{side:o,...i,ref:t}):u.jsx(sm,{side:o,...i,ref:t})})}),sm=f.forwardRef((e,t)=>{const r=Ir(Xt,e.__scopeTooltip),n=pi(Xt,e.__scopeTooltip),o=f.useRef(null),i=Te(t,o),[s,a]=f.useState(null),{trigger:l,onClose:c}=r,d=o.current,{onPointerInTransitChange:p}=n,h=f.useCallback(()=>{a(null),p(!1)},[p]),g=f.useCallback((w,m)=>{const y=w.currentTarget,_={x:w.clientX,y:w.clientY},C=um(_,y.getBoundingClientRect()),T=dm(_,C),S=fm(m.getBoundingClientRect()),A=hm([...T,...S]);a(A),p(!0)},[p]);return f.useEffect(()=>()=>h(),[h]),f.useEffect(()=>{if(l&&d){const w=y=>g(y,d),m=y=>g(y,l);return l.addEventListener("pointerleave",w),d.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",m)}}},[l,d,g,h]),f.useEffect(()=>{if(s){const w=m=>{const y=m.target,_={x:m.clientX,y:m.clientY},C=(l==null?void 0:l.contains(y))||(d==null?void 0:d.contains(y)),T=!pm(_,s);C?h():T&&(h(),c())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[l,d,s,c,h]),u.jsx(zl,{...e,ref:i})}),[am,lm]=Mn(Lr,{isInside:!1}),cm=Q1("TooltipContent"),zl=f.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,l=Ir(Xt,r),c=Fn(r),{onClose:d}=l;return f.useEffect(()=>(document.addEventListener(fi,d),()=>document.removeEventListener(fi,d)),[d]),f.useEffect(()=>{if(l.trigger){const p=h=>{const g=h.target;g!=null&&g.contains(l.trigger)&&d()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[l.trigger,d]),u.jsx(Zo,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:d,children:u.jsxs(U1,{"data-state":l.stateAttribute,...c,...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(cm,{children:n}),u.jsx(am,{scope:r,isInside:!0,children:u.jsx(em,{id:l.contentId,role:"tooltip",children:o||n})})]})})});Ul.displayName=Xt;var Wl="TooltipArrow",Hl=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Fn(r);return lm(Wl,r).isInside?null:u.jsx(z1,{...o,...n,ref:t})});Hl.displayName=Wl;function um(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,o,i)){case i:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function dm(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function fm(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function pm(e,t){const{x:r,y:n}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i],l=t[s],c=a.x,d=a.y,p=l.x,h=l.y;d>n!=h>n&&r<(p-c)*(n-d)/(h-d)+c&&(o=!o)}return o}function hm(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),mm(t)}function mm(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];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 r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const i=r[r.length-1],s=r[r.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var gm=$l,ym=Ml,vm=Fl,bm=Bl,wm=Ul,_m=Hl;const Vl={tooltip:"tooltip__nUuSh",tooltipArrow:"tooltipArrow__W2w-f"},Gl=({children:e,open:t,displayName:r,tooltipContent:n,className:o,disabled:i,delayDuration:s=300,side:a="right",sideOffset:l=0})=>{const[c,d]=E.useState(!1),p=t!==void 0,g=i?!1:p?t:c,w=m=>{i||p||d(m)};return u.jsx(gm,{delayDuration:s,children:u.jsxs(ym,{open:g,onOpenChange:w,children:[u.jsx(vm,{asChild:!0,children:e}),u.jsx(bm,{children:u.jsxs(wm,{className:D(Vl.tooltip,o),side:a,sideOffset:l,children:[r,n,u.jsx(_m,{className:Vl.tooltipArrow})]})})]})})};Gl.displayName="Tooltip";const ql={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"},Ql=({className:e,color:t="white",size:r=80,thickness:n})=>{const o=D(ql.spinner,ql[`spinner-${t}`],e),i=n??Math.max(r/12,2);return u.jsx("span",{style:{width:r,height:r,borderWidth:i},className:o})};Ql.displayName="Spinner";const Bn={switch:"switch__0b2av",disabled:"disabled__KpauE",checked:"checked__2-JV-",thumb:"thumb__fEuKD"},Yl=E.forwardRef(({checked:e,defaultChecked:t=!1,onCheckedChange:r,disabled:n=!1,id:o,className:i,name:s,"aria-label":a,"aria-labelledby":l,"aria-describedby":c,...d},p)=>{const[h,g]=E.useState(t),w=e!==void 0,m=w?!!e:h,y=()=>{if(n)return;const C=!m;w||g(C),r==null||r(C)},_=C=>{(C.key===" "||C.key==="Enter")&&(C.preventDefault(),y())};return u.jsx("button",{ref:p,type:"button",role:"switch","aria-checked":m,"aria-label":a,"aria-labelledby":l,"aria-describedby":c,disabled:n,id:o,name:s,className:D(Bn.switch,{[Bn.checked]:m,[Bn.disabled]:n}),onClick:y,onKeyDown:_,...d,children:u.jsx("span",{className:Bn.thumb,"aria-hidden":"true"})})});Yl.displayName="Switch";const Me={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"},Kl=E.createContext(null),gi=()=>{const e=E.useContext(Kl);if(!e)throw new Error("Tabs components must be used within a Tabs provider");return e},Cm=({defaultValue:e,value:t,onValueChange:r,orientation:n="horizontal",className:o="",children:i})=>{const[s,a]=E.useState(e||""),l=t!==void 0,c=l?t:s,d=p=>{l||a(p),r==null||r(p)};return u.jsx(Kl.Provider,{value:{value:c,onValueChange:d,orientation:n},children:u.jsx("div",{className:D(Me.tabsRoot,o),children:i})})},xm=({className:e="",children:t})=>{const{orientation:r}=gi(),n=E.useRef(null),o=i=>{var c;const s=(c=n.current)==null?void 0:c.querySelectorAll('[role="tab"]:not([disabled])');if(!s)return;const a=Array.from(s).findIndex(d=>d===document.activeElement);let l=a;switch(i.key){case"ArrowLeft":r==="horizontal"&&(i.preventDefault(),l=a>0?a-1:s.length-1);break;case"ArrowRight":r==="horizontal"&&(i.preventDefault(),l=a<s.length-1?a+1:0);break;case"ArrowUp":r==="vertical"&&(i.preventDefault(),l=a>0?a-1:s.length-1);break;case"ArrowDown":r==="vertical"&&(i.preventDefault(),l=a<s.length-1?a+1:0);break;case"Home":i.preventDefault(),l=0;break;case"End":i.preventDefault(),l=s.length-1;break}if(l!==a){const d=s[l];d.focus(),d.click()}};return u.jsx("div",{ref:n,role:"tablist","aria-orientation":r,onKeyDown:o,className:D(Me.tabsList,r==="horizontal"?Me.tabsListHorizontal:Me.tabsListVertical,e),children:t})},Em=({value:e,disabled:t=!1,className:r="",children:n})=>{const{value:o,onValueChange:i,orientation:s}=gi(),a=o===e,l=()=>{t||i(e)};return u.jsx("button",{role:"tab","aria-selected":a,"aria-controls":`content-${e}`,tabIndex:a?0:-1,disabled:t,onClick:l,className:D(Me.tabsTrigger,s==="horizontal"?Me.tabsTriggerHorizontal:Me.tabsTriggerVertical,a&&Me.tabsTriggerActive,t&&Me.tabsTriggerDisabled,r),children:n})},Sm=({value:e,className:t="",children:r})=>{const{value:n}=gi();return n===e?u.jsx("div",{role:"tabpanel",id:`content-${e}`,"aria-labelledby":`trigger-${e}`,tabIndex:0,className:D(Me.tabsContent,t),children:r}):null},Zl=({className:e,state:t="open",onClick:r})=>t==="open"?u.jsxs("svg",{className:e,onClick:r,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:r,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"})}),Xl={PasswordInput:"PasswordInput__GDJDN",eyeIcon:"eyeIcon__kDExG"},Tm=E.forwardRef((e,t)=>{const[r,n]=E.useState("password"),o=E.useCallback(()=>{n(i=>i==="password"?"text":"password")},[n]);return u.jsxs("div",{className:D(Xl.PasswordInput,e.className),children:[u.jsx(_n,{type:r,...e,ref:t}),u.jsx(Zl,{className:Xl.eyeIcon,onClick:o,state:r==="password"?"open":"closed"})]})});var yi="focusScope.autoFocusOnMount",vi="focusScope.autoFocusOnUnmount",Jl={bubbles:!1,cancelable:!0},Am="FocusScope",ec=f.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,l]=f.useState(null),c=Gt(o),d=Gt(i),p=f.useRef(null),h=Te(t,m=>l(m)),g=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(n){let m=function(T){if(g.paused||!a)return;const S=T.target;a.contains(S)?p.current=S:ct(p.current,{select:!0})},y=function(T){if(g.paused||!a)return;const S=T.relatedTarget;S!==null&&(a.contains(S)||ct(p.current,{select:!0}))},_=function(T){if(document.activeElement===document.body)for(const A of T)A.removedNodes.length>0&&ct(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",y);const C=new MutationObserver(_);return a&&C.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",y),C.disconnect()}}},[n,a,g.paused]),f.useEffect(()=>{if(a){nc.add(g);const m=document.activeElement;if(!a.contains(m)){const _=new CustomEvent(yi,Jl);a.addEventListener(yi,c),a.dispatchEvent(_),_.defaultPrevented||(Pm(Dm(tc(a)),{select:!0}),document.activeElement===m&&ct(a))}return()=>{a.removeEventListener(yi,c),setTimeout(()=>{const _=new CustomEvent(vi,Jl);a.addEventListener(vi,d),a.dispatchEvent(_),_.defaultPrevented||ct(m??document.body,{select:!0}),a.removeEventListener(vi,d),nc.remove(g)},0)}}},[a,c,d,g]);const w=f.useCallback(m=>{if(!r&&!n||g.paused)return;const y=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,_=document.activeElement;if(y&&_){const C=m.currentTarget,[T,S]=Om(C);T&&S?!m.shiftKey&&_===S?(m.preventDefault(),r&&ct(T,{select:!0})):m.shiftKey&&_===T&&(m.preventDefault(),r&&ct(S,{select:!0})):_===C&&m.preventDefault()}},[r,n,g.paused]);return u.jsx(he.div,{tabIndex:-1,...s,ref:h,onKeyDown:w})});ec.displayName=Am;function Pm(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(ct(n,{select:t}),document.activeElement!==r)return}function Om(e){const t=tc(e),r=rc(t,e),n=rc(t.reverse(),e);return[r,n]}function tc(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function rc(e,t){for(const r of e)if(!Rm(r,{upTo:t}))return r}function Rm(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 km(e){return e instanceof HTMLInputElement&&"select"in e}function ct(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&km(e)&&t&&e.select()}}var nc=jm();function jm(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=oc(e,t),e.unshift(t)},remove(t){var r;e=oc(e,t),(r=e[0])==null||r.resume()}}}function oc(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Dm(e){return e.filter(t=>t.tagName!=="A")}var bi=0;function Lm(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ic()),document.body.insertAdjacentElement("beforeend",e[1]??ic()),bi++,()=>{bi===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),bi--}},[])}function ic(){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 Un="right-scroll-bar-position",zn="width-before-scroll-bar",Im="with-scroll-bars-hidden",Nm="--removed-body-scroll-bar-size";function wi(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function $m(e,t){var r=E.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var Mm=typeof window<"u"?f.useLayoutEffect:f.useEffect,sc=new WeakMap;function Fm(e,t){var r=$m(null,function(n){return e.forEach(function(o){return wi(o,n)})});return Mm(function(){var n=sc.get(r);if(n){var o=new Set(n),i=new Set(e),s=r.current;o.forEach(function(a){i.has(a)||wi(a,null)}),i.forEach(function(a){o.has(a)||wi(a,s)})}sc.set(r,e)},[e]),r}function Bm(e){return e}function Um(e,t){t===void 0&&(t=Bm);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var s=t(i,n);return r.push(s),function(){r=r.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(n=!0;r.length;){var s=r;r=[],s.forEach(i)}r={push:function(a){return i(a)},filter:function(){return r}}},assignMedium:function(i){n=!0;var s=[];if(r.length){var a=r;r=[],a.forEach(i),s=r}var l=function(){var d=s;s=[],d.forEach(i)},c=function(){return Promise.resolve().then(l)};c(),r={push:function(d){s.push(d),c()},filter:function(d){return s=s.filter(d),r}}}};return o}function zm(e){e===void 0&&(e={});var t=Um(null);return t.options=De({async:!0,ssr:!1},e),t}var ac=function(e){var t=e.sideCar,r=Ds(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return f.createElement(n,De({},r))};ac.isSideCarExport=!0;function Wm(e,t){return e.useMedium(t),ac}var lc=zm(),_i=function(){},Wn=f.forwardRef(function(e,t){var r=f.useRef(null),n=f.useState({onScrollCapture:_i,onWheelCapture:_i,onTouchMoveCapture:_i}),o=n[0],i=n[1],s=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,p=e.shards,h=e.sideCar,g=e.noRelative,w=e.noIsolation,m=e.inert,y=e.allowPinchZoom,_=e.as,C=_===void 0?"div":_,T=e.gapMode,S=Ds(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=h,R=Fm([r,t]),O=De(De({},S),o);return f.createElement(f.Fragment,null,d&&f.createElement(A,{sideCar:lc,removeScrollBar:c,shards:p,noRelative:g,noIsolation:w,inert:m,setCallbacks:i,allowPinchZoom:!!y,lockRef:r,gapMode:T}),s?f.cloneElement(f.Children.only(a),De(De({},O),{ref:R})):f.createElement(C,De({},O,{className:l,ref:R}),a))});Wn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Wn.classNames={fullWidth:zn,zeroRight:Un};var Hm=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Vm(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Hm();return t&&e.setAttribute("nonce",t),e}function Gm(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function qm(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Qm=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Vm())&&(Gm(t,r),qm(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ym=function(){var e=Qm();return function(t,r){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},cc=function(){var e=Ym(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Km={left:0,top:0,right:0,gap:0},Ci=function(e){return parseInt(e||"",10)||0},Zm=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ci(r),Ci(n),Ci(o)]},Xm=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Km;var t=Zm(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Jm=cc(),Jt="data-scroll-locked",eg=function(e,t,r,n){var o=e.left,i=e.top,s=e.right,a=e.gap;return r===void 0&&(r="margin"),`
|
|
210
|
+
.`.concat(Im,` {
|
|
211
211
|
overflow: hidden `).concat(n,`;
|
|
212
212
|
padding-right: `).concat(a,"px ").concat(n,`;
|
|
213
213
|
}
|
|
@@ -241,13 +241,13 @@ to {
|
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
body[`).concat(Jt,`] {
|
|
244
|
-
`).concat(
|
|
244
|
+
`).concat(Nm,": ").concat(a,`px;
|
|
245
245
|
}
|
|
246
|
-
`)},
|
|
246
|
+
`)},uc=function(){var e=parseInt(document.body.getAttribute(Jt)||"0",10);return isFinite(e)?e:0},tg=function(){f.useEffect(function(){return document.body.setAttribute(Jt,(uc()+1).toString()),function(){var e=uc()-1;e<=0?document.body.removeAttribute(Jt):document.body.setAttribute(Jt,e.toString())}},[])},rg=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;tg();var i=f.useMemo(function(){return Xm(o)},[o]);return f.createElement(Jm,{styles:eg(i,!t,o,r?"":"!important")})},xi=!1;if(typeof window<"u")try{var Hn=Object.defineProperty({},"passive",{get:function(){return xi=!0,!0}});window.addEventListener("test",Hn,Hn),window.removeEventListener("test",Hn,Hn)}catch{xi=!1}var er=xi?{passive:!1}:!1,ng=function(e){return e.tagName==="TEXTAREA"},dc=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!ng(e)&&r[t]==="visible")},og=function(e){return dc(e,"overflowY")},ig=function(e){return dc(e,"overflowX")},fc=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=pc(e,n);if(o){var i=hc(e,n),s=i[1],a=i[2];if(s>a)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},sg=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},ag=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},pc=function(e,t){return e==="v"?og(t):ig(t)},hc=function(e,t){return e==="v"?sg(t):ag(t)},lg=function(e,t){return e==="h"&&t==="rtl"?-1:1},cg=function(e,t,r,n,o){var i=lg(e,window.getComputedStyle(t).direction),s=i*n,a=r.target,l=t.contains(a),c=!1,d=s>0,p=0,h=0;do{if(!a)break;var g=hc(e,a),w=g[0],m=g[1],y=g[2],_=m-y-i*w;(w||_)&&pc(e,a)&&(p+=_,h+=w);var C=a.parentNode;a=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&Math.abs(p)<1||!d&&Math.abs(h)<1)&&(c=!0),c},Vn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},mc=function(e){return[e.deltaX,e.deltaY]},gc=function(e){return e&&"current"in e?e.current:e},ug=function(e,t){return e[0]===t[0]&&e[1]===t[1]},dg=function(e){return`
|
|
247
247
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
248
248
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
249
|
-
`)},dg=0,tr=[];function fg(e){var t=f.useRef([]),r=f.useRef([0,0]),n=f.useRef(),o=f.useState(dg++)[0],i=f.useState(lc)[0],s=f.useRef(e);f.useEffect(function(){s.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=Zr([e.lockRef.current],(e.shards||[]).map(mc),!0).filter(Boolean);return m.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=f.useCallback(function(m,y){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var _=Vn(m),C=r.current,T="deltaX"in m?m.deltaX:C[0]-_[0],S="deltaY"in m?m.deltaY:C[1]-_[1],A,R=m.target,O=Math.abs(T)>Math.abs(S)?"h":"v";if("touches"in m&&O==="h"&&R.type==="range")return!1;var M=window.getSelection(),N=M&&M.anchorNode,I=N?N===R||N.contains(R):!1;if(I)return!1;var G=dc(O,R);if(!G)return!0;if(G?A=O:(A=O==="v"?"h":"v",G=dc(O,R)),!G)return!1;if(!n.current&&"changedTouches"in m&&(T||S)&&(n.current=A),!A)return!0;var Y=n.current||A;return lg(Y,y,m,Y==="h"?T:S)},[]),l=f.useCallback(function(m){var y=m;if(!(!tr.length||tr[tr.length-1]!==i)){var _="deltaY"in y?hc(y):Vn(y),C=t.current.filter(function(A){return A.name===y.type&&(A.target===y.target||y.target===A.shadowParent)&&cg(A.delta,_)})[0];if(C&&C.should){y.cancelable&&y.preventDefault();return}if(!C){var T=(s.current.shards||[]).map(mc).filter(Boolean).filter(function(A){return A.contains(y.target)}),S=T.length>0?a(y,T[0]):!s.current.noIsolation;S&&y.cancelable&&y.preventDefault()}}},[]),c=f.useCallback(function(m,y,_,C){var T={name:m,delta:y,target:_,should:C,shadowParent:pg(_)};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(S){return S!==T})},1)},[]),d=f.useCallback(function(m){r.current=Vn(m),n.current=void 0},[]),p=f.useCallback(function(m){c(m.type,hc(m),m.target,a(m,e.lockRef.current))},[]),h=f.useCallback(function(m){c(m.type,Vn(m),m.target,a(m,e.lockRef.current))},[]);f.useEffect(function(){return tr.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",l,er),document.addEventListener("touchmove",l,er),document.addEventListener("touchstart",d,er),function(){tr=tr.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,er),document.removeEventListener("touchmove",l,er),document.removeEventListener("touchstart",d,er)}},[]);var g=e.removeScrollBar,w=e.inert;return f.createElement(f.Fragment,null,w?f.createElement(i,{styles:ug(o)}):null,g?f.createElement(tg,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function pg(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const hg=zm(ac,fg);var gc=f.forwardRef(function(e,t){return f.createElement(Wn,De({},e,{ref:t,sideCar:hg}))});gc.classNames=Wn.classNames;var mg=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},rr=new WeakMap,Gn=new WeakMap,qn={},Ei=0,yc=function(e){return e&&(e.host||yc(e.parentNode))},gg=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=yc(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},yg=function(e,t,r,n){var o=gg(t,Array.isArray(e)?e:[e]);qn[r]||(qn[r]=new WeakMap);var i=qn[r],s=[],a=new Set,l=new Set(o),c=function(p){!p||a.has(p)||(a.add(p),c(p.parentNode))};o.forEach(c);var d=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(h){if(a.has(h))d(h);else try{var g=h.getAttribute(n),w=g!==null&&g!=="false",m=(rr.get(h)||0)+1,y=(i.get(h)||0)+1;rr.set(h,m),i.set(h,y),s.push(h),m===1&&w&&Gn.set(h,!0),y===1&&h.setAttribute(r,"true"),w||h.setAttribute(n,"true")}catch(_){console.error("aria-hidden: cannot operate on ",h,_)}})};return d(t),a.clear(),Ei++,function(){s.forEach(function(p){var h=rr.get(p)-1,g=i.get(p)-1;rr.set(p,h),i.set(p,g),h||(Gn.has(p)||p.removeAttribute(n),Gn.delete(p)),g||p.removeAttribute(r)}),Ei--,Ei||(rr=new WeakMap,rr=new WeakMap,Gn=new WeakMap,qn={})}},vg=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=mg(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),yg(n,o,r,"aria-hidden")):function(){return null}};function bg(e){const t=wg(e),r=f.forwardRef((n,o)=>{const{children:i,...s}=n,a=f.Children.toArray(i),l=a.find(Cg);if(l){const c=l.props.children,d=a.map(p=>p===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:p);return u.jsx(t,{...s,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,d):null})}return u.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function wg(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const s=Eg(o),a=xg(i,o.props);return o.type!==f.Fragment&&(a.ref=n?xn(n,s):s),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var _g=Symbol("radix.slottable");function Cg(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===_g}function xg(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{const l=i(...a);return o(...a),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function Eg(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Qn="Dialog",[vc]=Yo(Qn),[Sg,Oe]=vc(Qn),bc=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=f.useRef(null),l=f.useRef(null),[c,d]=Dl({prop:n,defaultProp:o??!1,onChange:i,caller:Qn});return u.jsx(Sg,{scope:t,triggerRef:a,contentRef:l,contentId:Tn(),titleId:Tn(),descriptionId:Tn(),open:c,onOpenChange:d,onOpenToggle:f.useCallback(()=>d(p=>!p),[d]),modal:s,children:r})};bc.displayName=Qn;var wc="DialogTrigger",Tg=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(wc,r),i=Te(t,o.triggerRef);return u.jsx(he.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ai(o.open),...n,ref:i,onClick:pe(e.onClick,o.onOpenToggle)})});Tg.displayName=wc;var Si="DialogPortal",[Ag,_c]=vc(Si,{forceMount:void 0}),Cc=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,i=Oe(Si,t);return u.jsx(Ag,{scope:t,forceMount:r,children:f.Children.map(n,s=>u.jsx(Zt,{present:r||i.open,children:u.jsx(di,{asChild:!0,container:o,children:s})}))})};Cc.displayName=Si;var Yn="DialogOverlay",xc=f.forwardRef((e,t)=>{const r=_c(Yn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=Oe(Yn,e.__scopeDialog);return i.modal?u.jsx(Zt,{present:n||i.open,children:u.jsx(Og,{...o,ref:t})}):null});xc.displayName=Yn;var Pg=bg("DialogOverlay.RemoveScroll"),Og=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(Yn,r);return u.jsx(gc,{as:Pg,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(he.div,{"data-state":Ai(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Ot="DialogContent",Ec=f.forwardRef((e,t)=>{const r=_c(Ot,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=Oe(Ot,e.__scopeDialog);return u.jsx(Zt,{present:n||i.open,children:i.modal?u.jsx(Rg,{...o,ref:t}):u.jsx(kg,{...o,ref:t})})});Ec.displayName=Ot;var Rg=f.forwardRef((e,t)=>{const r=Oe(Ot,e.__scopeDialog),n=f.useRef(null),o=Te(t,r.contentRef,n);return f.useEffect(()=>{const i=n.current;if(i)return vg(i)},[]),u.jsx(Sc,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pe(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=r.triggerRef.current)==null||s.focus()}),onPointerDownOutside:pe(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:pe(e.onFocusOutside,i=>i.preventDefault())})}),kg=f.forwardRef((e,t)=>{const r=Oe(Ot,e.__scopeDialog),n=f.useRef(!1),o=f.useRef(!1);return u.jsx(Sc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(n.current||(a=r.triggerRef.current)==null||a.focus(),i.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((c=r.triggerRef.current)==null?void 0:c.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Sc=f.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=Oe(Ot,r),l=f.useRef(null),c=Te(t,l);return Dm(),u.jsxs(u.Fragment,{children:[u.jsx(Jl,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:u.jsx(Zo,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Ai(a.open),...s,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(jg,{titleId:a.titleId}),u.jsx(Lg,{contentRef:l,descriptionId:a.descriptionId})]})]})}),Ti="DialogTitle",Tc=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(Ti,r);return u.jsx(he.h2,{id:o.titleId,...n,ref:t})});Tc.displayName=Ti;var Ac="DialogDescription",Pc=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(Ac,r);return u.jsx(he.p,{id:o.descriptionId,...n,ref:t})});Pc.displayName=Ac;var Oc="DialogClose",Rc=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(Oc,r);return u.jsx(he.button,{type:"button",...n,ref:t,onClick:pe(e.onClick,()=>o.onOpenChange(!1))})});Rc.displayName=Oc;function Ai(e){return e?"open":"closed"}var kc="DialogTitleWarning",[Zv,jc]=Jp(kc,{contentName:Ot,titleName:Ti,docsSlug:"dialog"}),jg=({titleId:e})=>{const t=jc(kc),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
249
|
+
`)},fg=0,tr=[];function pg(e){var t=f.useRef([]),r=f.useRef([0,0]),n=f.useRef(),o=f.useState(fg++)[0],i=f.useState(cc)[0],s=f.useRef(e);f.useEffect(function(){s.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=Zr([e.lockRef.current],(e.shards||[]).map(gc),!0).filter(Boolean);return m.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=f.useCallback(function(m,y){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var _=Vn(m),C=r.current,T="deltaX"in m?m.deltaX:C[0]-_[0],S="deltaY"in m?m.deltaY:C[1]-_[1],A,R=m.target,O=Math.abs(T)>Math.abs(S)?"h":"v";if("touches"in m&&O==="h"&&R.type==="range")return!1;var M=window.getSelection(),N=M&&M.anchorNode,I=N?N===R||N.contains(R):!1;if(I)return!1;var G=fc(O,R);if(!G)return!0;if(G?A=O:(A=O==="v"?"h":"v",G=fc(O,R)),!G)return!1;if(!n.current&&"changedTouches"in m&&(T||S)&&(n.current=A),!A)return!0;var Y=n.current||A;return cg(Y,y,m,Y==="h"?T:S)},[]),l=f.useCallback(function(m){var y=m;if(!(!tr.length||tr[tr.length-1]!==i)){var _="deltaY"in y?mc(y):Vn(y),C=t.current.filter(function(A){return A.name===y.type&&(A.target===y.target||y.target===A.shadowParent)&&ug(A.delta,_)})[0];if(C&&C.should){y.cancelable&&y.preventDefault();return}if(!C){var T=(s.current.shards||[]).map(gc).filter(Boolean).filter(function(A){return A.contains(y.target)}),S=T.length>0?a(y,T[0]):!s.current.noIsolation;S&&y.cancelable&&y.preventDefault()}}},[]),c=f.useCallback(function(m,y,_,C){var T={name:m,delta:y,target:_,should:C,shadowParent:hg(_)};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(S){return S!==T})},1)},[]),d=f.useCallback(function(m){r.current=Vn(m),n.current=void 0},[]),p=f.useCallback(function(m){c(m.type,mc(m),m.target,a(m,e.lockRef.current))},[]),h=f.useCallback(function(m){c(m.type,Vn(m),m.target,a(m,e.lockRef.current))},[]);f.useEffect(function(){return tr.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",l,er),document.addEventListener("touchmove",l,er),document.addEventListener("touchstart",d,er),function(){tr=tr.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,er),document.removeEventListener("touchmove",l,er),document.removeEventListener("touchstart",d,er)}},[]);var g=e.removeScrollBar,w=e.inert;return f.createElement(f.Fragment,null,w?f.createElement(i,{styles:dg(o)}):null,g?f.createElement(rg,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function hg(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const mg=Wm(lc,pg);var yc=f.forwardRef(function(e,t){return f.createElement(Wn,De({},e,{ref:t,sideCar:mg}))});yc.classNames=Wn.classNames;var gg=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},rr=new WeakMap,Gn=new WeakMap,qn={},Ei=0,vc=function(e){return e&&(e.host||vc(e.parentNode))},yg=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=vc(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},vg=function(e,t,r,n){var o=yg(t,Array.isArray(e)?e:[e]);qn[r]||(qn[r]=new WeakMap);var i=qn[r],s=[],a=new Set,l=new Set(o),c=function(p){!p||a.has(p)||(a.add(p),c(p.parentNode))};o.forEach(c);var d=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(h){if(a.has(h))d(h);else try{var g=h.getAttribute(n),w=g!==null&&g!=="false",m=(rr.get(h)||0)+1,y=(i.get(h)||0)+1;rr.set(h,m),i.set(h,y),s.push(h),m===1&&w&&Gn.set(h,!0),y===1&&h.setAttribute(r,"true"),w||h.setAttribute(n,"true")}catch(_){console.error("aria-hidden: cannot operate on ",h,_)}})};return d(t),a.clear(),Ei++,function(){s.forEach(function(p){var h=rr.get(p)-1,g=i.get(p)-1;rr.set(p,h),i.set(p,g),h||(Gn.has(p)||p.removeAttribute(n),Gn.delete(p)),g||p.removeAttribute(r)}),Ei--,Ei||(rr=new WeakMap,rr=new WeakMap,Gn=new WeakMap,qn={})}},bg=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=gg(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),vg(n,o,r,"aria-hidden")):function(){return null}};function wg(e){const t=_g(e),r=f.forwardRef((n,o)=>{const{children:i,...s}=n,a=f.Children.toArray(i),l=a.find(xg);if(l){const c=l.props.children,d=a.map(p=>p===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:p);return u.jsx(t,{...s,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,d):null})}return u.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function _g(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const s=Sg(o),a=Eg(i,o.props);return o.type!==f.Fragment&&(a.ref=n?xn(n,s):s),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Cg=Symbol("radix.slottable");function xg(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Cg}function Eg(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{const l=i(...a);return o(...a),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function Sg(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Qn="Dialog",[bc]=Yo(Qn),[Tg,Oe]=bc(Qn),wc=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=f.useRef(null),l=f.useRef(null),[c,d]=Ll({prop:n,defaultProp:o??!1,onChange:i,caller:Qn});return u.jsx(Tg,{scope:t,triggerRef:a,contentRef:l,contentId:Tn(),titleId:Tn(),descriptionId:Tn(),open:c,onOpenChange:d,onOpenToggle:f.useCallback(()=>d(p=>!p),[d]),modal:s,children:r})};wc.displayName=Qn;var _c="DialogTrigger",Ag=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(_c,r),i=Te(t,o.triggerRef);return u.jsx(he.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ai(o.open),...n,ref:i,onClick:pe(e.onClick,o.onOpenToggle)})});Ag.displayName=_c;var Si="DialogPortal",[Pg,Cc]=bc(Si,{forceMount:void 0}),xc=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,i=Oe(Si,t);return u.jsx(Pg,{scope:t,forceMount:r,children:f.Children.map(n,s=>u.jsx(Zt,{present:r||i.open,children:u.jsx(di,{asChild:!0,container:o,children:s})}))})};xc.displayName=Si;var Yn="DialogOverlay",Ec=f.forwardRef((e,t)=>{const r=Cc(Yn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=Oe(Yn,e.__scopeDialog);return i.modal?u.jsx(Zt,{present:n||i.open,children:u.jsx(Rg,{...o,ref:t})}):null});Ec.displayName=Yn;var Og=wg("DialogOverlay.RemoveScroll"),Rg=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(Yn,r);return u.jsx(yc,{as:Og,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(he.div,{"data-state":Ai(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Ot="DialogContent",Sc=f.forwardRef((e,t)=>{const r=Cc(Ot,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=Oe(Ot,e.__scopeDialog);return u.jsx(Zt,{present:n||i.open,children:i.modal?u.jsx(kg,{...o,ref:t}):u.jsx(jg,{...o,ref:t})})});Sc.displayName=Ot;var kg=f.forwardRef((e,t)=>{const r=Oe(Ot,e.__scopeDialog),n=f.useRef(null),o=Te(t,r.contentRef,n);return f.useEffect(()=>{const i=n.current;if(i)return bg(i)},[]),u.jsx(Tc,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pe(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=r.triggerRef.current)==null||s.focus()}),onPointerDownOutside:pe(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:pe(e.onFocusOutside,i=>i.preventDefault())})}),jg=f.forwardRef((e,t)=>{const r=Oe(Ot,e.__scopeDialog),n=f.useRef(!1),o=f.useRef(!1);return u.jsx(Tc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(n.current||(a=r.triggerRef.current)==null||a.focus(),i.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((c=r.triggerRef.current)==null?void 0:c.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Tc=f.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=Oe(Ot,r),l=f.useRef(null),c=Te(t,l);return Lm(),u.jsxs(u.Fragment,{children:[u.jsx(ec,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:u.jsx(Zo,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Ai(a.open),...s,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(Dg,{titleId:a.titleId}),u.jsx(Ig,{contentRef:l,descriptionId:a.descriptionId})]})]})}),Ti="DialogTitle",Ac=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(Ti,r);return u.jsx(he.h2,{id:o.titleId,...n,ref:t})});Ac.displayName=Ti;var Pc="DialogDescription",Oc=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(Pc,r);return u.jsx(he.p,{id:o.descriptionId,...n,ref:t})});Oc.displayName=Pc;var Rc="DialogClose",kc=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(Rc,r);return u.jsx(he.button,{type:"button",...n,ref:t,onClick:pe(e.onClick,()=>o.onOpenChange(!1))})});kc.displayName=Rc;function Ai(e){return e?"open":"closed"}var jc="DialogTitleWarning",[Xv,Dc]=eh(jc,{contentName:Ot,titleName:Ti,docsSlug:"dialog"}),Dg=({titleId:e})=>{const t=Dc(jc),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
250
250
|
|
|
251
251
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
252
252
|
|
|
253
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Dg="DialogDescriptionWarning",Lg=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${jc(Dg).contentName}}.`;return f.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Ig=bc,Ng=Cc,$g=xc,Mg=Ec,Fg=Tc,Bg=Pc,Ug=Rc;const Dc={Overlay:"Overlay__M5Z83",Content:"Content__wAkP4"},Rt={Header:"Header__VHxNf",Content:"Content__I04qM",Close:"Close__xSN-7",Title:"Title__Dznh6",Footer:"Footer__-8gzQ",Actions:"Actions__kKF2Q"},Lc=E.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Rt.Header,t);return u.jsx("div",{ref:n,className:o,...r,children:e})});Lc.displayName="Header";const Ic=E.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Rt.Content,t);return u.jsx("div",{ref:n,className:o,...r,children:e})});Ic.displayName="Content";const Nc=E.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Rt.Footer,t);return u.jsx("div",{ref:n,className:o,...r,children:e})});Nc.displayName="Footer";const $c=E.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Rt.Title,t);return u.jsx(Fg,{ref:n,className:o,...r,children:e})});$c.displayName="Title";const Mc=E.forwardRef(({className:e,...t},r)=>{const n=D(Rt.Close,e);return u.jsx(Ug,{ref:r,asChild:!0,className:n,...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"})})})});Mc.displayName="Close";const Fc=E.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Rt.Actions,t);return u.jsx("div",{ref:n,className:o,...r,children:e})});Fc.displayName="Actions";const Bc=E.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Rt.Description,t);return u.jsx("div",{ref:n,className:o,...r,children:e})});Bc.displayName="Description";const ae=({children:e,onClose:t,open:r=!1,className:n})=>{const o=()=>{t==null||t()};return u.jsx(Ig,{onOpenChange:o,open:r,children:u.jsxs(Ng,{children:[u.jsx($g,{className:Dc.Overlay}),u.jsxs(Mg,{children:[u.jsx(Bg,{}),u.jsx("div",{className:D(Dc.Content,n),children:e})]})]})})};ae.displayName="Dialog",ae.Header=Lc,ae.Content=Ic,ae.Footer=Nc,ae.Actions=Fc,ae.Title=$c,ae.Description=Bc,ae.Close=Mc;const Uc={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"},zg=({children:e,variant:t="solid",className:r})=>{const n=D(Uc.pill,Uc[`pill--${t}`],r);return u.jsx("div",{className:n,children:e})},zc={DialogContent:"DialogContent__-WjG9",Message:"Message__AUgVP"},Wc=({loading:e,title:t,children:r,className:n,onClose:o,onConfirm:i,...s})=>u.jsxs(ae,{...s,className:D(zc.DialogContent,n),children:[u.jsxs(ae.Header,{children:[u.jsx(ae.Title,{children:t}),u.jsx(ae.Close,{onClick:o})]}),u.jsx(ae.Content,{children:typeof r=="string"?u.jsx("p",{className:zc.Message,children:r}):r}),u.jsx(ae.Footer,{children:u.jsxs(ae.Actions,{children:[u.jsx(bn,{onClick:o,disabled:e,variant:"outlined",children:"Cancel"}),u.jsx(bn,{onClick:i,disabled:e,loading:e,variant:"contained",children:"Confirm"})]})})]});Wc.displayName="ConfirmDialog";const Kn={container:"container__AjtYJ",title:"title__A2vCu",description:"description__bP6Ig",mailToText:"mailToText__SdlsE"},Hc=()=>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)"})]});Hc.displayName="WarningIcon";const Wg="support@bluealba.com",Hg="@bluealba/pae-shell-ui",Pi=()=>{const{supportEmail:e=Wg}=gs(Hg),t=`mailto:${e}?Subject=Support`;return u.jsxs("div",{className:Kn.container,children:[u.jsx(Hc,{}),u.jsx("div",{className:Kn.title,children:"Oops! Something went wrong"}),u.jsxs("div",{className:Kn.description,children:["If the error persists, ",u.jsx("a",{className:Kn.mailToText,href:t,children:"contact the administrator."})]})]})};Pi.displayName="ErrorState";const Re={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"},Vc=E.forwardRef(({children:e,className:t,selected:r,disabled:n=!1,...o},i)=>{const s=D(Re.Item,{[Re["Item--selected"]]:r,[Re["Item--disabled"]]:n},t);return u.jsx("li",{ref:i,className:s,role:"listitem","aria-disabled":n,...o,children:e})});Vc.displayName="Item";const Gc=E.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Re.Title,t);return u.jsx("h3",{ref:n,className:o,...r,children:e})});Gc.displayName="Title";const qc=E.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Re.Description,t);return u.jsx("p",{ref:n,className:o,...r,children:e})});qc.displayName="Description";const Oi=({className:e,...t})=>u.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:[u.jsx("path",{d:"M6 6.5C6.27614 6.5 6.5 6.27614 6.5 6C6.5 5.72386 6.27614 5.5 6 5.5C5.72386 5.5 5.5 5.72386 5.5 6C5.5 6.27614 5.72386 6.5 6 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M9.5 6.5C9.77614 6.5 10 6.27614 10 6C10 5.72386 9.77614 5.5 9.5 5.5C9.22386 5.5 9 5.72386 9 6C9 6.27614 9.22386 6.5 9.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M2.5 6.5C2.77614 6.5 3 6.27614 3 6C3 5.72386 2.77614 5.5 2.5 5.5C2.22386 5.5 2 5.72386 2 6C2 6.27614 2.22386 6.5 2.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"})]});Oi.displayName="HorizontalDots";const Qc=E.forwardRef(({children:e,className:t,onClick:r,...n},o)=>{const i=E.useRef(null),[s,a]=E.useState(!1),l=D(Re.Actions,t),c=()=>{const w=At["DropdownList--open"],m=At["DropdownList--closed"];document.querySelectorAll(`.${w}`).forEach(_=>{_!==i.current&&(_.classList.remove(w),_.classList.add(m))})},d=w=>{w.stopPropagation(),s?p():(a(!0),r==null||r(w))},p=()=>{a(!1)},h=w=>{w.key==="Escape"&&p()},g=w=>{i.current&&!i.current.contains(w.target)&&p()};return E.useEffect(()=>(s?(c(),document.addEventListener("keydown",h),document.addEventListener("click",g)):(document.removeEventListener("keydown",h),document.removeEventListener("click",g)),()=>{document.removeEventListener("keydown",h),document.removeEventListener("click",g)}),[s]),u.jsxs("div",{ref:o,className:l,onClick:d,role:"button",tabIndex:0,"data-testid":"actions",...n,children:[u.jsx(Oi,{}),u.jsx(Cn,{align:"left",ref:i,open:s,"data-testid":"actions-dropdown",role:"menu","aria-label":"Actions",children:e})]})});Qc.displayName="Actions";const Yc=E.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Re.Action,t);return u.jsx("button",{ref:n,className:o,...r,children:e})});Yc.displayName="Action";const Kc=E.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Re.Icon,t);return u.jsx("div",{ref:n,className:o,...r,children:e})});Kc.displayName="Icon";const Fe=E.forwardRef(({children:e,className:t,size:r="medium",variant:n,...o},i)=>{const s=D(Re.List,{[Re[`List--${r}`]]:r,[Re[`List--${n}`]]:n},t);return u.jsx("ul",{ref:i,className:s,role:"list",...o,children:e})});Fe.displayName="List",Fe.Item=Vc,Fe.Badges=Vo,Fe.Badge=Ho,Fe.Title=Gc,Fe.Description=qc,Fe.Actions=Qc,Fe.Action=Yc,Fe.Icon=Kc;const Qe={Navigation:"Navigation__uylxk",PaginationContent:"PaginationContent__UpLw0",PaginationEllipsis:"PaginationEllipsis__perWk",PaginationLink:"PaginationLink__GVUZj",Active:"Active__u1Ahy",Disabled:"Disabled__8WM0y",Prev:"Prev__wp4hc",Next:"Next__eVyL5"},Zc=({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"})]});Zc.displayName="ChevronRight";const Xc=({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"})]});Xc.displayName="ChevronLeft";const Ri=({className:e,...t})=>u.jsx("nav",{role:"navigation","aria-label":"pagination",className:D(Qe.Navigation,e),...t});Ri.displayName="Pagination";const ki=f.forwardRef(({className:e,...t},r)=>u.jsx("ul",{ref:r,className:D(Qe.PaginationContent,e),...t}));ki.displayName="PaginationContent";const Nr=f.forwardRef(({className:e,...t},r)=>u.jsx("li",{ref:r,className:e,...t}));Nr.displayName="PaginationItem";const $r=({className:e,isActive:t,...r})=>u.jsx("a",{"aria-current":t?"page":void 0,className:D(Qe.PaginationLink,t&&Qe.Active,e),...r});$r.displayName="PaginationLink";const ji=({className:e,disabled:t,...r})=>u.jsxs($r,{"aria-label":"Go to previous page",className:D(t&&Qe.Disabled,Qe.Prev,e),...r,children:[u.jsx(Xc,{}),u.jsx("span",{children:"Previous"})]});ji.displayName="PaginationPrevious";const Di=({className:e,disabled:t,...r})=>u.jsxs($r,{"aria-label":"Go to next page",className:D(t&&Qe.Disabled,Qe.Next,e),...r,children:[u.jsx("span",{children:"Next"}),u.jsx(Zc,{})]});Di.displayName="PaginationNext";const Li=({className:e,...t})=>u.jsx("span",{"aria-hidden":!0,className:D(Qe.PaginationEllipsis,e),...t,children:u.jsx(Oi,{})});Li.displayName="PaginationEllipsis";function Vg(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 Jc={exports:{}};(function(e,t){(function(r,n){typeof Vg=="function"?e.exports=n():r.pluralize=n()})(Bu,function(){var r=[],n=[],o={},i={},s={};function a(m){return typeof m=="string"?new RegExp("^"+m+"$","i"):m}function l(m,y){return m===y?y:m===m.toLowerCase()?y.toLowerCase():m===m.toUpperCase()?y.toUpperCase():m[0]===m[0].toUpperCase()?y.charAt(0).toUpperCase()+y.substr(1).toLowerCase():y.toLowerCase()}function c(m,y){return m.replace(/\$(\d{1,2})/g,function(_,C){return y[C]||""})}function d(m,y){return m.replace(y[0],function(_,C){var T=c(y[1],arguments);return l(_===""?m[C-1]:_,T)})}function p(m,y,_){if(!m.length||o.hasOwnProperty(m))return y;for(var C=_.length;C--;){var T=_[C];if(T[0].test(y))return d(y,T)}return y}function h(m,y,_){return function(C){var T=C.toLowerCase();return y.hasOwnProperty(T)?l(C,T):m.hasOwnProperty(T)?l(C,m[T]):p(T,C,_)}}function g(m,y,_,C){return function(T){var S=T.toLowerCase();return y.hasOwnProperty(S)?!0:m.hasOwnProperty(S)?!1:p(S,S,_)===S}}function w(m,y,_){var C=y===1?w.singular(m):w.plural(m);return(_?y+" ":"")+C}return w.plural=h(s,i,r),w.isPlural=g(s,i,r),w.singular=h(i,s,n),w.isSingular=g(i,s,n),w.addPluralRule=function(m,y){r.push([a(m),y])},w.addSingularRule=function(m,y){n.push([a(m),y])},w.addUncountableRule=function(m){if(typeof m=="string"){o[m.toLowerCase()]=!0;return}w.addPluralRule(m,"$0"),w.addSingularRule(m,"$0")},w.addIrregularRule=function(m,y){y=y.toLowerCase(),m=m.toLowerCase(),s[m]=y,i[y]=m},[["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(m){return w.addIrregularRule(m[0],m[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(m){return w.addPluralRule(m[0],m[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(m){return w.addSingularRule(m[0],m[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})})(Jc);var Gg=Jc.exports;const qg=Uu(Gg),Ii=({count:e,singularText:t,children:r=(n,o)=>`${n} ${o}`})=>u.jsx(u.Fragment,{children:r(e,qg(t,e))});Ii.displayName="PluralizeCounter";const me={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"},eu={EmptyStateContainer:"EmptyStateContainer__Q9FEb",Message:"Message__IHK6M"},tu=({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"})})})]});tu.displayName="EmptyStateIcon";const Ni=({message:e="No results found"})=>u.jsxs("div",{className:D(eu.EmptyStateContainer),children:[u.jsx(tu,{}),u.jsx("p",{className:eu.Message,children:e})]});Ni.displayName="EmptyState";const Qg=(e,t,r=1)=>{if(e<=1)return["1"];const n=[],o=i=>{(n.length===0||n[n.length-1]!==i)&&n.push(i)};o(1),t-r>2&&o("...");for(let i=Math.max(2,t-r);i<=Math.min(e-1,t+r);i++)o(i);return t+r<e-1&&o("..."),o(e),n.map(String)},ru=({page:e,totalPages:t,onPageChange:r})=>{const n=e===1,o=e===t;return u.jsx(Ri,{className:me.Pagination,children:u.jsxs(ki,{children:[u.jsx(Nr,{children:u.jsx(ji,{className:D({[me.PointerNone]:n}),onClick:()=>!n&&r(e-1)})}),Qg(t,e).map((i,s)=>u.jsxs(Nr,{children:[i==="..."&&u.jsx(Li,{}),i!=="..."&&u.jsx($r,{isActive:+i===e,onClick:()=>+i!==e&&r(+i),children:i})]},s)),u.jsx(Nr,{children:u.jsx(Di,{className:D({[me.PointerNone]:o}),onClick:()=>!o&&r(e+1)})})]})})};ru.displayName="TablePagination";const nu=({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"})});nu.displayName="ArrowDown";const ou=({columns:e,data:t,isLoading:r,totalCount:n=0,headerLabel:o,sort:i,loadingConfig:s,pagination:a,onRowClick:l})=>{const{count:c=5,height:d=40}=s||{},p=y=>y.sortName??y.name,h=y=>D({[me.Cell]:!0,[me.Center]:y.align==="center",[me.Right]:y.align==="right",[me.Sortable]:y.isSortable}),g=y=>{if(!i)return"";const _=p(y);return D({[me.SortIcon]:!0,[me.Active]:y.isSortable&&i.field===_,[me.Rotate]:i.field===_&&i.direction==="asc"})},w=y=>()=>l==null?void 0:l(y),m=y=>()=>{if(!i||!y.isSortable)return;const{field:_,direction:C,onSort:T}=i,S=p(y);_===S?T(S,C==="asc"?"desc":"asc"):T(S,"asc")};return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:me.TableContainer,children:[o&&u.jsx("div",{className:me.TableHeader,children:u.jsx(Ii,{count:n,singularText:o,children:(y,_)=>`${y} ${_}`})}),u.jsxs("table",{className:me.Table,children:[u.jsx("thead",{children:u.jsx("tr",{children:e.map(y=>u.jsx("th",{children:u.jsxs("div",{className:h(y),onClick:m(y),children:[u.jsx("span",{children:y.displayName}),y.isSortable&&u.jsx(nu,{className:g(y)})]})},y.name))})}),u.jsx("tbody",{children:u.jsxs(it,{children:[u.jsx(it.When,{condition:r,children:[...Array(c).keys()].map(y=>u.jsx("tr",{children:u.jsx("td",{colSpan:e.length,style:{padding:4},children:u.jsx(Sn,{height:d})})},y))}),u.jsx(it.When,{condition:!t.length,children:u.jsx("tr",{children:u.jsx("td",{colSpan:e.length,children:u.jsx(Ni,{})})})}),u.jsx(it.Else,{children:t.map((y,_)=>u.jsx("tr",{className:l&&me.selectable,onClick:w(y),children:e.map(C=>u.jsx("td",{style:C.width?{width:C.width}:{},children:u.jsx("div",{className:h(C),children:C.cellRenderer?C.cellRenderer(y):C.valueGetter?C.valueGetter(y):y[C.name]})},`${C.name}-${_}`))},_))})]})})]})]}),a&&u.jsx(ru,{...a})]})};ou.displayName="Table";const Zn={alert:"alert__LblpE",default:"default__mgO6A",destructive:"destructive__bLNSM",alertTitle:"alertTitle__gblKf",alertDescription:"alertDescription__BuVHV"},Xn=({className:e,variant:t="default",children:r,...n})=>u.jsx("div",{"data-slot":"alert",role:"alert",className:D(Zn.alert,Zn[t],e),...n,children:r}),Yg=f.forwardRef(({children:e,className:t,...r},n)=>u.jsx("div",{ref:n,"data-slot":"alert-title",className:D(Zn.alertTitle,t),...r,children:e})),Kg=f.forwardRef(({children:e,className:t,...r},n)=>u.jsx("div",{ref:n,"data-slot":"alert-description",className:D(Zn.alertDescription,t),...r,children:e}));Xn.displayName="Alert",Xn.Title=Yg,Xn.Description=Kg;function iu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Jn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iu(Object(r),!0).forEach(function(n){Zg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function su(e){return(su=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 Zg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $i(e){return($i=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 au(e,t){var r;if(typeof(r=t.domElement?function(){return t.domElement}:t.domElementGetter?t.domElementGetter:e.domElementGetter?e.domElementGetter:function(n){var o=n.appName||n.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($i(r)));return function(){var n=r(t);if(!(n 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($i(n)));return n}}var Mr=null;try{Mr=require("react").createContext()}catch{}var Xg={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 Jg(e){if(su(e)!=="object")throw new Error("single-spa-react requires a configuration object");var t,r=Jn(Jn({},Xg),e);if(!r.React)throw new Error("single-spa-react must be passed opts.React");if(!r.ReactDOM&&!r.ReactDOMClient)throw new Error("single-spa-react must be passed opts.ReactDOM or opts.ReactDOMClient");if(r.renderType||((t=r.ReactDOMClient)!==null&&t!==void 0&&t.createRoot?r.renderType="createRoot":r.renderType="render"),!r.rootComponent&&!r.loadRootComponent)throw new Error("single-spa-react must be passed opts.rootComponent or opts.loadRootComponent");if(r.errorBoundary&&typeof r.errorBoundary!="function")throw Error("The errorBoundary opt for single-spa-react must either be omitted or be a function that returns React elements");!Mr&&r.React.createContext&&(Mr=r.React.createContext()),r.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}(r);var n={bootstrap:ey.bind(null,r),mount:ty.bind(null,r),unmount:ry.bind(null,r)};return r.parcelCanUpdate&&(n.update=ny.bind(null,r)),n}function ey(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then(function(r){e.rootComponent=r})}function ty(e,t){return new Promise(function(r,n){e.suppressComponentDidCatchWarning||!function(a){if(!(a&&typeof a.version=="string"&&a.version.indexOf(".")>=0))return!1;var l=a.version.slice(0,a.version.indexOf("."));try{return Number(l)>=16}catch{return!1}}(e.React)||e.errorBoundary||e.errorBoundaryClass||(e.rootComponent.prototype?e.rootComponent.prototype.componentDidCatch||console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire single-spa application.")):console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to singleSpaReact(opts).")));var o=lu(e,t,function(){r(this)}),i=au(e,t)(),s=function(a){var l=a.reactDom,c=a.renderType,d=a.elementToRender,p=a.domElement,h=l[c];if(typeof h!="function")throw new Error('renderType "'.concat(c,'" did not return a function.'));switch(c){case"createRoot":case"unstable_createRoot":case"createBlockingRoot":case"unstable_createBlockingRoot":var g=h(p);return g.render(d),g;case"hydrateRoot":return h(p,d);case"hydrate":default:return h(d,p),null}}({elementToRender:o,domElement:i,reactDom:Mi(e),renderType:oy(e)});e.domElements[t.name]=i,e.renderResults[t.name]=s})}function ry(e,t){return new Promise(function(r){e.unmountResolves[t.name]=r;var n=e.renderResults[t.name];n&&n.unmount?n.unmount():Mi(e).unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]})}function ny(e,t){return new Promise(function(r){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(r);var n=lu(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(n);else{var i=au(e,t)();Mi(e).render(n,i)}})}function Mi(e){return e.ReactDOMClient||e.ReactDOM}function oy(e){return typeof e.renderType=="function"?e.renderType():e.renderType}function lu(e,t,r){var n=e.React.createElement(e.rootComponent,t),o=Mr?e.React.createElement(Mr.Provider,{value:t},n):n;return(e.errorBoundary||t.errorBoundary||e.errorBoundaryClass||t.errorBoundaryClass)&&(e.errorBoundaryClass=e.errorBoundaryClass||t.errorBoundaryClass||function(i,s){function a(l){i.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},a.displayName="SingleSpaReactErrorBoundary(".concat(l.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(l,c){this.setState({caughtError:l,caughtErrorInfo:c})},a}(e,t),o=e.React.createElement(e.errorBoundaryClass,t,o)),o=e.React.createElement(e.SingleSpaRoot,Jn(Jn({},t),{},{mountFinished:r,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 iy=e=>{const t=new Hf;return function(n){if(!n)throw new Error("Microfrontend did not receive any properties !!");const o=po(n.module.name);return u.jsx(ds,{module:o,children:u.jsxs(Yf,{client:t,children:[u.jsx(e,{...n}),u.jsx(Pf,{position:"top-right",reverseOrder:!0})]})})}},sy=({rootComponent:e,...t})=>Jg({errorBoundary(r){return console.error(r),u.jsx(Pi,{})},...t,rootComponent:iy(e)}),ay=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,_r,{value:e?sd(t,e):t})},Fi=()=>{const[e]=Cr();return e.featureFlags},ly=e=>!!Fi()[e],cu=({flag:e,children:t,fallback:r=null,invert:n=!1})=>{const i=Fi()[e]===!0;return(n?!i:i)?u.jsx(u.Fragment,{children:t}):u.jsx(u.Fragment,{children:r})};cu.displayName="FeatureFlagGuard",x.Alert=Xn,x.ApplicationIcon=Ra,x.Authorized=zo,x.Badge=Ho,x.Badges=Vo,x.Button=bn,x.ClipboardCheckIcon=Ia,x.ClipboardIcon=La,x.ConfirmDialog=Wc,x.CopyToClipboardButton=Np,x.Dialog=ae,x.DropdownList=Cn,x.EmptyState=Ni,x.ErrorState=Pi,x.ExtendExtensionPoint=xp,x.ExtensionPoint=xa,x.EyeIcon=Kl,x.FeatureFlagGuard=cu,x.FieldGroup=$a,x.Input=_n,x.InputError=Fa,x.Label=Ua,x.List=Fe,x.ModulePlaceHolder=Oa,x.Pagination=Ri,x.PaginationContent=ki,x.PaginationEllipsis=Li,x.PaginationItem=Nr,x.PaginationLink=$r,x.PaginationNext=Di,x.PaginationPrevious=ji,x.PasswordInput=Sm,x.Pill=zg,x.PlatformEventListener=Rp,x.PlatformEvents=Lu,x.PluralizeCounter=Ii,x.SearchAutocomplete=Va,x.SearchInput=Qo,x.Select=qo,x.Show=it,x.Skeleton=Sn,x.SkeletonList=Ya,x.Spinner=ql,x.Switch=Ql,x.Table=ou,x.Tabs=_m,x.TabsContent=Em,x.TabsList=Cm,x.TabsTrigger=xm,x.TextArea=Wa,x.Tooltip=Vl,x.authorized=jp,x.dropdownListStyles=At,x.extensionPoint=Sp,x.getApplications=fo,x.getInitials=Ku,x.getOperations=fs,x.hasAccess=hs,x.initializeMicroFrontend=sy,x.isPlatformCustomizationCompleted=$d,x.isValidEmail=Yu,x.logout=Gu,x.navigateTo=qu,x.platformHaveAnyCustomization=Nd,x.setupTestEnvironment=ay,x.useApplicationIcon=Cs,x.useApplicationJSModule=Yr,x.useApplicationMenu=td,x.useApplicationUIModule=_s,x.useApplications=bs,x.useAuth=qr,x.useCatalog=xr,x.useCurrentApplication=mo,x.useCurrentApplicationName=Es,x.useCurrentJSModule=ud,x.useDynamicFonts=ks,x.useDynamicStyleSheet=Rs,x.useExtendExtensionPoint=Ps,x.useExtensionPoint=As,x.useFeatureFlag=ly,x.useFeatureFlags=Fi,x.useGetPlatformTheme=Id,x.useHasNoSession=Wu,x.useLocation=as,x.useModule=po,x.useModuleCommonPaths=Vu,x.useModuleConfig=ms,x.useModuleConfigByName=gs,x.useModuleMetadata=Sr,x.useMutableCatalog=Fu,x.useNotifications=Ao,x.useOperations=ps,x.usePAECustomizationsLoadingState=Ld,x.usePAEState=Cr,x.usePlatformCustomization=Dd,x.usePlatformEventListener=Os,x.useResource=ap,x.useResourceActions=va,x.useServiceBaseURL=Ss,x.useServiceInvoker=go,x.useTenants=wp,x.useTrackEvent=md,x.useTrackEvents=Ts,x.useUIApplications=ws,x.useUserState=Cp,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
|
|
253
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Lg="DialogDescriptionWarning",Ig=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Dc(Lg).contentName}}.`;return f.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Ng=wc,$g=xc,Mg=Ec,Fg=Sc,Bg=Ac,Ug=Oc,zg=kc;const Lc={Overlay:"Overlay__M5Z83",Content:"Content__wAkP4"},Rt={Header:"Header__VHxNf",Content:"Content__I04qM",Close:"Close__xSN-7",Title:"Title__Dznh6",Footer:"Footer__-8gzQ",Actions:"Actions__kKF2Q"},Ic=E.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Rt.Header,t);return u.jsx("div",{ref:n,className:o,...r,children:e})});Ic.displayName="Header";const Nc=E.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Rt.Content,t);return u.jsx("div",{ref:n,className:o,...r,children:e})});Nc.displayName="Content";const $c=E.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Rt.Footer,t);return u.jsx("div",{ref:n,className:o,...r,children:e})});$c.displayName="Footer";const Mc=E.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Rt.Title,t);return u.jsx(Bg,{ref:n,className:o,...r,children:e})});Mc.displayName="Title";const Fc=E.forwardRef(({className:e,...t},r)=>{const n=D(Rt.Close,e);return u.jsx(zg,{ref:r,asChild:!0,className:n,...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"})})})});Fc.displayName="Close";const Bc=E.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Rt.Actions,t);return u.jsx("div",{ref:n,className:o,...r,children:e})});Bc.displayName="Actions";const Uc=E.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Rt.Description,t);return u.jsx("div",{ref:n,className:o,...r,children:e})});Uc.displayName="Description";const ae=({children:e,onClose:t,open:r=!1,className:n})=>{const o=()=>{t==null||t()};return u.jsx(Ng,{onOpenChange:o,open:r,children:u.jsxs($g,{children:[u.jsx(Mg,{className:Lc.Overlay}),u.jsxs(Fg,{children:[u.jsx(Ug,{}),u.jsx("div",{className:D(Lc.Content,n),children:e})]})]})})};ae.displayName="Dialog",ae.Header=Ic,ae.Content=Nc,ae.Footer=$c,ae.Actions=Bc,ae.Title=Mc,ae.Description=Uc,ae.Close=Fc;const zc={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"},Wg=({children:e,variant:t="solid",className:r})=>{const n=D(zc.pill,zc[`pill--${t}`],r);return u.jsx("div",{className:n,children:e})},Wc={DialogContent:"DialogContent__-WjG9",Message:"Message__AUgVP"},Hc=({loading:e,title:t,children:r,className:n,onClose:o,onConfirm:i,...s})=>u.jsxs(ae,{...s,className:D(Wc.DialogContent,n),children:[u.jsxs(ae.Header,{children:[u.jsx(ae.Title,{children:t}),u.jsx(ae.Close,{onClick:o})]}),u.jsx(ae.Content,{children:typeof r=="string"?u.jsx("p",{className:Wc.Message,children:r}):r}),u.jsx(ae.Footer,{children:u.jsxs(ae.Actions,{children:[u.jsx(bn,{onClick:o,disabled:e,variant:"outlined",children:"Cancel"}),u.jsx(bn,{onClick:i,disabled:e,loading:e,variant:"contained",children:"Confirm"})]})})]});Hc.displayName="ConfirmDialog";const Kn={container:"container__AjtYJ",title:"title__A2vCu",description:"description__bP6Ig",mailToText:"mailToText__SdlsE"},Vc=()=>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)"})]});Vc.displayName="WarningIcon";const Hg="support@bluealba.com",Vg="@bluealba/pae-shell-ui",Pi=()=>{const{supportEmail:e=Hg}=gs(Vg),t=`mailto:${e}?Subject=Support`;return u.jsxs("div",{className:Kn.container,children:[u.jsx(Vc,{}),u.jsx("div",{className:Kn.title,children:"Oops! Something went wrong"}),u.jsxs("div",{className:Kn.description,children:["If the error persists, ",u.jsx("a",{className:Kn.mailToText,href:t,children:"contact the administrator."})]})]})};Pi.displayName="ErrorState";const Re={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"},Gc=E.forwardRef(({children:e,className:t,selected:r,disabled:n=!1,...o},i)=>{const s=D(Re.Item,{[Re["Item--selected"]]:r,[Re["Item--disabled"]]:n},t);return u.jsx("li",{ref:i,className:s,role:"listitem","aria-disabled":n,...o,children:e})});Gc.displayName="Item";const qc=E.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Re.Title,t);return u.jsx("h3",{ref:n,className:o,...r,children:e})});qc.displayName="Title";const Qc=E.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Re.Description,t);return u.jsx("p",{ref:n,className:o,...r,children:e})});Qc.displayName="Description";const Oi=({className:e,...t})=>u.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:[u.jsx("path",{d:"M6 6.5C6.27614 6.5 6.5 6.27614 6.5 6C6.5 5.72386 6.27614 5.5 6 5.5C5.72386 5.5 5.5 5.72386 5.5 6C5.5 6.27614 5.72386 6.5 6 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M9.5 6.5C9.77614 6.5 10 6.27614 10 6C10 5.72386 9.77614 5.5 9.5 5.5C9.22386 5.5 9 5.72386 9 6C9 6.27614 9.22386 6.5 9.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M2.5 6.5C2.77614 6.5 3 6.27614 3 6C3 5.72386 2.77614 5.5 2.5 5.5C2.22386 5.5 2 5.72386 2 6C2 6.27614 2.22386 6.5 2.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"})]});Oi.displayName="HorizontalDots";const Yc=E.forwardRef(({children:e,className:t,onClick:r,...n},o)=>{const i=E.useRef(null),[s,a]=E.useState(!1),l=D(Re.Actions,t),c=()=>{const w=At["DropdownList--open"],m=At["DropdownList--closed"];document.querySelectorAll(`.${w}`).forEach(_=>{_!==i.current&&(_.classList.remove(w),_.classList.add(m))})},d=w=>{w.stopPropagation(),s?p():(a(!0),r==null||r(w))},p=()=>{a(!1)},h=w=>{w.key==="Escape"&&p()},g=w=>{i.current&&!i.current.contains(w.target)&&p()};return E.useEffect(()=>(s?(c(),document.addEventListener("keydown",h),document.addEventListener("click",g)):(document.removeEventListener("keydown",h),document.removeEventListener("click",g)),()=>{document.removeEventListener("keydown",h),document.removeEventListener("click",g)}),[s]),u.jsxs("div",{ref:o,className:l,onClick:d,role:"button",tabIndex:0,"data-testid":"actions",...n,children:[u.jsx(Oi,{}),u.jsx(Cn,{align:"left",ref:i,open:s,"data-testid":"actions-dropdown",role:"menu","aria-label":"Actions",children:e})]})});Yc.displayName="Actions";const Kc=E.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Re.Action,t);return u.jsx("button",{ref:n,className:o,...r,children:e})});Kc.displayName="Action";const Zc=E.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Re.Icon,t);return u.jsx("div",{ref:n,className:o,...r,children:e})});Zc.displayName="Icon";const Fe=E.forwardRef(({children:e,className:t,size:r="medium",variant:n,...o},i)=>{const s=D(Re.List,{[Re[`List--${r}`]]:r,[Re[`List--${n}`]]:n},t);return u.jsx("ul",{ref:i,className:s,role:"list",...o,children:e})});Fe.displayName="List",Fe.Item=Gc,Fe.Badges=Vo,Fe.Badge=Ho,Fe.Title=qc,Fe.Description=Qc,Fe.Actions=Yc,Fe.Action=Kc,Fe.Icon=Zc;const Qe={Navigation:"Navigation__uylxk",PaginationContent:"PaginationContent__UpLw0",PaginationEllipsis:"PaginationEllipsis__perWk",PaginationLink:"PaginationLink__GVUZj",Active:"Active__u1Ahy",Disabled:"Disabled__8WM0y",Prev:"Prev__wp4hc",Next:"Next__eVyL5"},Xc=({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"})]});Xc.displayName="ChevronRight";const Jc=({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"})]});Jc.displayName="ChevronLeft";const Ri=({className:e,...t})=>u.jsx("nav",{role:"navigation","aria-label":"pagination",className:D(Qe.Navigation,e),...t});Ri.displayName="Pagination";const ki=f.forwardRef(({className:e,...t},r)=>u.jsx("ul",{ref:r,className:D(Qe.PaginationContent,e),...t}));ki.displayName="PaginationContent";const Nr=f.forwardRef(({className:e,...t},r)=>u.jsx("li",{ref:r,className:e,...t}));Nr.displayName="PaginationItem";const $r=({className:e,isActive:t,...r})=>u.jsx("a",{"aria-current":t?"page":void 0,className:D(Qe.PaginationLink,t&&Qe.Active,e),...r});$r.displayName="PaginationLink";const ji=({className:e,disabled:t,...r})=>u.jsxs($r,{"aria-label":"Go to previous page",className:D(t&&Qe.Disabled,Qe.Prev,e),...r,children:[u.jsx(Jc,{}),u.jsx("span",{children:"Previous"})]});ji.displayName="PaginationPrevious";const Di=({className:e,disabled:t,...r})=>u.jsxs($r,{"aria-label":"Go to next page",className:D(t&&Qe.Disabled,Qe.Next,e),...r,children:[u.jsx("span",{children:"Next"}),u.jsx(Xc,{})]});Di.displayName="PaginationNext";const Li=({className:e,...t})=>u.jsx("span",{"aria-hidden":!0,className:D(Qe.PaginationEllipsis,e),...t,children:u.jsx(Oi,{})});Li.displayName="PaginationEllipsis";function Gg(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 eu={exports:{}};(function(e,t){(function(r,n){typeof Gg=="function"?e.exports=n():r.pluralize=n()})(Uu,function(){var r=[],n=[],o={},i={},s={};function a(m){return typeof m=="string"?new RegExp("^"+m+"$","i"):m}function l(m,y){return m===y?y:m===m.toLowerCase()?y.toLowerCase():m===m.toUpperCase()?y.toUpperCase():m[0]===m[0].toUpperCase()?y.charAt(0).toUpperCase()+y.substr(1).toLowerCase():y.toLowerCase()}function c(m,y){return m.replace(/\$(\d{1,2})/g,function(_,C){return y[C]||""})}function d(m,y){return m.replace(y[0],function(_,C){var T=c(y[1],arguments);return l(_===""?m[C-1]:_,T)})}function p(m,y,_){if(!m.length||o.hasOwnProperty(m))return y;for(var C=_.length;C--;){var T=_[C];if(T[0].test(y))return d(y,T)}return y}function h(m,y,_){return function(C){var T=C.toLowerCase();return y.hasOwnProperty(T)?l(C,T):m.hasOwnProperty(T)?l(C,m[T]):p(T,C,_)}}function g(m,y,_,C){return function(T){var S=T.toLowerCase();return y.hasOwnProperty(S)?!0:m.hasOwnProperty(S)?!1:p(S,S,_)===S}}function w(m,y,_){var C=y===1?w.singular(m):w.plural(m);return(_?y+" ":"")+C}return w.plural=h(s,i,r),w.isPlural=g(s,i,r),w.singular=h(i,s,n),w.isSingular=g(i,s,n),w.addPluralRule=function(m,y){r.push([a(m),y])},w.addSingularRule=function(m,y){n.push([a(m),y])},w.addUncountableRule=function(m){if(typeof m=="string"){o[m.toLowerCase()]=!0;return}w.addPluralRule(m,"$0"),w.addSingularRule(m,"$0")},w.addIrregularRule=function(m,y){y=y.toLowerCase(),m=m.toLowerCase(),s[m]=y,i[y]=m},[["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(m){return w.addIrregularRule(m[0],m[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(m){return w.addPluralRule(m[0],m[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(m){return w.addSingularRule(m[0],m[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})})(eu);var qg=eu.exports;const Qg=zu(qg),Ii=({count:e,singularText:t,children:r=(n,o)=>`${n} ${o}`})=>u.jsx(u.Fragment,{children:r(e,Qg(t,e))});Ii.displayName="PluralizeCounter";const me={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"},tu={EmptyStateContainer:"EmptyStateContainer__Q9FEb",Message:"Message__IHK6M"},ru=({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"})})})]});ru.displayName="EmptyStateIcon";const Ni=({message:e="No results found"})=>u.jsxs("div",{className:D(tu.EmptyStateContainer),children:[u.jsx(ru,{}),u.jsx("p",{className:tu.Message,children:e})]});Ni.displayName="EmptyState";const Yg=(e,t,r=1)=>{if(e<=1)return["1"];const n=[],o=i=>{(n.length===0||n[n.length-1]!==i)&&n.push(i)};o(1),t-r>2&&o("...");for(let i=Math.max(2,t-r);i<=Math.min(e-1,t+r);i++)o(i);return t+r<e-1&&o("..."),o(e),n.map(String)},nu=({page:e,totalPages:t,onPageChange:r})=>{const n=e===1,o=e===t;return u.jsx(Ri,{className:me.Pagination,children:u.jsxs(ki,{children:[u.jsx(Nr,{children:u.jsx(ji,{className:D({[me.PointerNone]:n}),onClick:()=>!n&&r(e-1)})}),Yg(t,e).map((i,s)=>u.jsxs(Nr,{children:[i==="..."&&u.jsx(Li,{}),i!=="..."&&u.jsx($r,{isActive:+i===e,onClick:()=>+i!==e&&r(+i),children:i})]},s)),u.jsx(Nr,{children:u.jsx(Di,{className:D({[me.PointerNone]:o}),onClick:()=>!o&&r(e+1)})})]})})};nu.displayName="TablePagination";const ou=({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"})});ou.displayName="ArrowDown";const iu=({columns:e,data:t,isLoading:r,totalCount:n=0,headerLabel:o,sort:i,loadingConfig:s,pagination:a,onRowClick:l})=>{const{count:c=5,height:d=40}=s||{},p=y=>y.sortName??y.name,h=y=>D({[me.Cell]:!0,[me.Center]:y.align==="center",[me.Right]:y.align==="right",[me.Sortable]:y.isSortable}),g=y=>{if(!i)return"";const _=p(y);return D({[me.SortIcon]:!0,[me.Active]:y.isSortable&&i.field===_,[me.Rotate]:i.field===_&&i.direction==="asc"})},w=y=>()=>l==null?void 0:l(y),m=y=>()=>{if(!i||!y.isSortable)return;const{field:_,direction:C,onSort:T}=i,S=p(y);_===S?T(S,C==="asc"?"desc":"asc"):T(S,"asc")};return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:me.TableContainer,children:[o&&u.jsx("div",{className:me.TableHeader,children:u.jsx(Ii,{count:n,singularText:o,children:(y,_)=>`${y} ${_}`})}),u.jsxs("table",{className:me.Table,children:[u.jsx("thead",{children:u.jsx("tr",{children:e.map(y=>u.jsx("th",{children:u.jsxs("div",{className:h(y),onClick:m(y),children:[u.jsx("span",{children:y.displayName}),y.isSortable&&u.jsx(ou,{className:g(y)})]})},y.name))})}),u.jsx("tbody",{children:u.jsxs(it,{children:[u.jsx(it.When,{condition:r,children:[...Array(c).keys()].map(y=>u.jsx("tr",{children:u.jsx("td",{colSpan:e.length,style:{padding:4},children:u.jsx(Sn,{height:d})})},y))}),u.jsx(it.When,{condition:!t.length,children:u.jsx("tr",{children:u.jsx("td",{colSpan:e.length,children:u.jsx(Ni,{})})})}),u.jsx(it.Else,{children:t.map((y,_)=>u.jsx("tr",{className:l&&me.selectable,onClick:w(y),children:e.map(C=>u.jsx("td",{style:C.width?{width:C.width}:{},children:u.jsx("div",{className:h(C),children:C.cellRenderer?C.cellRenderer(y):C.valueGetter?C.valueGetter(y):y[C.name]})},`${C.name}-${_}`))},_))})]})})]})]}),a&&u.jsx(nu,{...a})]})};iu.displayName="Table";const Zn={alert:"alert__LblpE",default:"default__mgO6A",destructive:"destructive__bLNSM",alertTitle:"alertTitle__gblKf",alertDescription:"alertDescription__BuVHV"},Xn=({className:e,variant:t="default",children:r,...n})=>u.jsx("div",{"data-slot":"alert",role:"alert",className:D(Zn.alert,Zn[t],e),...n,children:r}),Kg=f.forwardRef(({children:e,className:t,...r},n)=>u.jsx("div",{ref:n,"data-slot":"alert-title",className:D(Zn.alertTitle,t),...r,children:e})),Zg=f.forwardRef(({children:e,className:t,...r},n)=>u.jsx("div",{ref:n,"data-slot":"alert-description",className:D(Zn.alertDescription,t),...r,children:e}));Xn.displayName="Alert",Xn.Title=Kg,Xn.Description=Zg;function su(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Jn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?su(Object(r),!0).forEach(function(n){Xg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):su(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function au(e){return(au=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 Xg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $i(e){return($i=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 lu(e,t){var r;if(typeof(r=t.domElement?function(){return t.domElement}:t.domElementGetter?t.domElementGetter:e.domElementGetter?e.domElementGetter:function(n){var o=n.appName||n.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($i(r)));return function(){var n=r(t);if(!(n 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($i(n)));return n}}var Mr=null;try{Mr=require("react").createContext()}catch{}var Jg={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 ey(e){if(au(e)!=="object")throw new Error("single-spa-react requires a configuration object");var t,r=Jn(Jn({},Jg),e);if(!r.React)throw new Error("single-spa-react must be passed opts.React");if(!r.ReactDOM&&!r.ReactDOMClient)throw new Error("single-spa-react must be passed opts.ReactDOM or opts.ReactDOMClient");if(r.renderType||((t=r.ReactDOMClient)!==null&&t!==void 0&&t.createRoot?r.renderType="createRoot":r.renderType="render"),!r.rootComponent&&!r.loadRootComponent)throw new Error("single-spa-react must be passed opts.rootComponent or opts.loadRootComponent");if(r.errorBoundary&&typeof r.errorBoundary!="function")throw Error("The errorBoundary opt for single-spa-react must either be omitted or be a function that returns React elements");!Mr&&r.React.createContext&&(Mr=r.React.createContext()),r.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}(r);var n={bootstrap:ty.bind(null,r),mount:ry.bind(null,r),unmount:ny.bind(null,r)};return r.parcelCanUpdate&&(n.update=oy.bind(null,r)),n}function ty(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then(function(r){e.rootComponent=r})}function ry(e,t){return new Promise(function(r,n){e.suppressComponentDidCatchWarning||!function(a){if(!(a&&typeof a.version=="string"&&a.version.indexOf(".")>=0))return!1;var l=a.version.slice(0,a.version.indexOf("."));try{return Number(l)>=16}catch{return!1}}(e.React)||e.errorBoundary||e.errorBoundaryClass||(e.rootComponent.prototype?e.rootComponent.prototype.componentDidCatch||console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire single-spa application.")):console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to singleSpaReact(opts).")));var o=cu(e,t,function(){r(this)}),i=lu(e,t)(),s=function(a){var l=a.reactDom,c=a.renderType,d=a.elementToRender,p=a.domElement,h=l[c];if(typeof h!="function")throw new Error('renderType "'.concat(c,'" did not return a function.'));switch(c){case"createRoot":case"unstable_createRoot":case"createBlockingRoot":case"unstable_createBlockingRoot":var g=h(p);return g.render(d),g;case"hydrateRoot":return h(p,d);case"hydrate":default:return h(d,p),null}}({elementToRender:o,domElement:i,reactDom:Mi(e),renderType:iy(e)});e.domElements[t.name]=i,e.renderResults[t.name]=s})}function ny(e,t){return new Promise(function(r){e.unmountResolves[t.name]=r;var n=e.renderResults[t.name];n&&n.unmount?n.unmount():Mi(e).unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]})}function oy(e,t){return new Promise(function(r){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(r);var n=cu(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(n);else{var i=lu(e,t)();Mi(e).render(n,i)}})}function Mi(e){return e.ReactDOMClient||e.ReactDOM}function iy(e){return typeof e.renderType=="function"?e.renderType():e.renderType}function cu(e,t,r){var n=e.React.createElement(e.rootComponent,t),o=Mr?e.React.createElement(Mr.Provider,{value:t},n):n;return(e.errorBoundary||t.errorBoundary||e.errorBoundaryClass||t.errorBoundaryClass)&&(e.errorBoundaryClass=e.errorBoundaryClass||t.errorBoundaryClass||function(i,s){function a(l){i.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},a.displayName="SingleSpaReactErrorBoundary(".concat(l.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(l,c){this.setState({caughtError:l,caughtErrorInfo:c})},a}(e,t),o=e.React.createElement(e.errorBoundaryClass,t,o)),o=e.React.createElement(e.SingleSpaRoot,Jn(Jn({},t),{},{mountFinished:r,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 sy=e=>{const t=new Vf;return function(n){if(!n)throw new Error("Microfrontend did not receive any properties !!");const o=po(n.module.name);return u.jsx(ds,{module:o,children:u.jsxs(Kf,{client:t,children:[u.jsx(e,{...n}),u.jsx(Of,{position:"top-right",reverseOrder:!0})]})})}},ay=({rootComponent:e,...t})=>ey({errorBoundary(r){return console.error(r),u.jsx(Pi,{})},...t,rootComponent:sy(e)}),ly=e=>{const t={authUser:{id:"testuser",username:"testuser",displayName:"Test User",applications:[]},catalog:[],authentication:{passwordMethodEnabled:!0,registerEnabled:!0,invitationsEnabled:!0,resetPasswordExpiration:3e4,passwordConstraints:{lowerCaseRequired:!1,upperCaseRequired:!1,symbolRequired:!1,digitRequired:!1,minLength:0,maxLength:8},sessionExpiration:864e5,jwtSecret:"",sessionIncludeOrigUser:!1,impersonationMode:"cookie",canImpersonateNonExistentUsers:!1,providers:[]},platformVersion:"0.0.0",featureFlags:{}};Object.defineProperty(window,_r,{value:e?ad(t,e):t})},Fi=()=>{const[e]=Cr();return e.featureFlags},cy=e=>!!Fi()[e],uu=({flag:e,children:t,fallback:r=null,invert:n=!1})=>{const i=Fi()[e]===!0;return(n?!i:i)?u.jsx(u.Fragment,{children:t}):u.jsx(u.Fragment,{children:r})};uu.displayName="FeatureFlagGuard",x.Alert=Xn,x.ApplicationIcon=ka,x.Authorized=zo,x.Badge=Ho,x.Badges=Vo,x.Button=bn,x.ClipboardCheckIcon=Na,x.ClipboardIcon=Ia,x.ConfirmDialog=Hc,x.CopyToClipboardButton=$p,x.Dialog=ae,x.DropdownList=Cn,x.EmptyState=Ni,x.ErrorState=Pi,x.ExtendExtensionPoint=Ep,x.ExtensionPoint=Ea,x.EyeIcon=Zl,x.FeatureFlagGuard=uu,x.FieldGroup=Ma,x.Input=_n,x.InputError=Ba,x.Label=za,x.List=Fe,x.ModulePlaceHolder=Ra,x.Pagination=Ri,x.PaginationContent=ki,x.PaginationEllipsis=Li,x.PaginationItem=Nr,x.PaginationLink=$r,x.PaginationNext=Di,x.PaginationPrevious=ji,x.PasswordInput=Tm,x.Pill=Wg,x.PlatformEventListener=kp,x.PlatformEvents=Iu,x.PluralizeCounter=Ii,x.SearchAutocomplete=Ga,x.SearchInput=Qo,x.Select=qo,x.Show=it,x.Skeleton=Sn,x.SkeletonList=Ka,x.Spinner=Ql,x.Switch=Yl,x.Table=iu,x.Tabs=Cm,x.TabsContent=Sm,x.TabsList=xm,x.TabsTrigger=Em,x.TextArea=Ha,x.Tooltip=Gl,x.authorized=Dp,x.dropdownListStyles=At,x.extensionPoint=Tp,x.getApplications=fo,x.getInitials=Zu,x.getOperations=fs,x.hasAccess=hs,x.initializeMicroFrontend=ay,x.isPlatformCustomizationCompleted=Md,x.isValidEmail=Ku,x.logout=qu,x.navigateTo=Qu,x.platformHaveAnyCustomization=$d,x.setupTestEnvironment=ly,x.useApplicationIcon=Cs,x.useApplicationJSModule=Yr,x.useApplicationMenu=nd,x.useApplicationUIModule=_s,x.useApplications=bs,x.useAuth=qr,x.useCatalog=xr,x.useCurrentApplication=mo,x.useCurrentApplicationName=Ss,x.useCurrentJSModule=dd,x.useDynamicFonts=js,x.useDynamicStyleSheet=ks,x.useExtendExtensionPoint=Os,x.useExtensionPoint=Ps,x.useFeatureFlag=cy,x.useFeatureFlags=Fi,x.useGetPlatformTheme=Nd,x.useHasNoSession=Hu,x.useLocation=as,x.useModule=po,x.useModuleCommonPaths=Gu,x.useModuleConfig=ms,x.useModuleConfigByName=gs,x.useModuleMenu=xs,x.useModuleMetadata=Sr,x.useMutableCatalog=Bu,x.useNotifications=Ao,x.useOperations=ps,x.usePAECustomizationsLoadingState=Id,x.usePAEState=Cr,x.usePlatformCustomization=Ld,x.usePlatformEventListener=Rs,x.useResource=lp,x.useResourceActions=ba,x.useServiceBaseURL=Ts,x.useServiceInvoker=go,x.useTenants=_p,x.useTrackEvent=gd,x.useTrackEvents=As,x.useUIApplications=ws,x.useUserState=xp,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
|