@bluealba/pae-ui-react-core 4.2.0-develop-1333 → 4.2.0-develop-1349
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 +48 -48
- package/dist/index.css +1 -1
- package/dist/index.esm.js +5554 -4518
- package/dist/index.systemjs.js +49 -49
- package/dist/index.umd.js +60 -60
- package/dist/src/components/common/Select2/Select.d.ts +18 -0
- package/dist/src/components/common/Select2/index.d.ts +2 -0
- package/dist/src/components/common/Table/Table.d.ts +1 -0
- package/dist/src/components/common/TextWithTooltip/TextWithTooltip.d.ts +10 -0
- package/dist/src/components/common/index.d.ts +4 -0
- package/package.json +2 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(E,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react"),require("single-spa"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","single-spa","react-dom"],x):(E=typeof globalThis<"u"?globalThis:E||self,x(E["@bluealba/pae-ui-react-core"]={},E.React,E.singleSpa,E.ReactDOM))})(this,function(E,x,ne,_t){"use strict";var zu=E=>{throw TypeError(E)};var Xs=(E,x,ne)=>x.has(E)||zu("Cannot "+ne);var b=(E,x,ne)=>(Xs(E,x,"read from private field"),ne?ne.call(E):x.get(E)),L=(E,x,ne)=>x.has(E)?zu("Cannot add the same private member more than once"):x instanceof WeakSet?x.add(E):x.set(E,ne),k=(E,x,ne,_t)=>(Xs(E,x,"write to private field"),_t?_t.call(E,ne):x.set(E,ne),ne),F=(E,x,ne)=>(Xs(E,x,"access private method"),ne);var ao=(E,x,ne,_t)=>({set _(Qr){k(E,x,Qr,ne)},get _(){return b(E,x,_t)}});var kt,ut,nr,_u,or,dt,sr,Cu,jt,xu,ir,ar,xe,Dt,le,Ur,Lt,ke,Je,Eu,Be,Su,Ue,ue,It,We,wt,Tu,Ye,je,Wr,Au,X,ft,pt,lr,cr,ht,ur,dr,Pu,ge,W,zr,de,Nt,fr,mt,gt,Hr,pr,hr,Mt,$t,vt,mr,V,qr,Js,ei,ti,ri,ni,oi,si,Hu,Ou,yt,bt,ve,Ke,Ze,lo,ii,Ru;var Qr=document.createElement("style");Qr.textContent=`:root{--platform-label-color: var(--platform-text-secondary-color);--platform-input-border-color: var(--platform-lines);--platform-input-background-color: var(--platform-background-secondary-color);--platform-input-color: var(--platform-text-primary-color);--platform-input-focus-border-color: var(--platform-color-primary);--platform-button-base-padding: 4px 16px;--platform-button-base-border-radius: 6px;--platform-button-base-box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);--platform-button-base-font-size: 1em;--platform-button-base-line-height: 16px;--platform-button-base-height: calc(2 * var(--platform-button-base-font-size));--platform-button-contained-primary-background-color: var(--platform-color-primary);--platform-button-contained-primary-color: #ffffff;--platform-button-outlined-primary-color: var(--platform-color-primary);--platform-button-text-primary-color: var(--platform-text-primary-color);--platform-button-contained-danger-background-color: var(--platform-color-danger);--platform-button-contained-danger-color: #ffffff;--platform-button-outlined-danger-color: var(--platform-color-danger);--platform-button-text-danger-color: var(--platform-color-danger)}.container__zBqbk{display:flex;align-items:center;justify-content:center;gap:16px;width:100%;cursor:pointer;height:var(--pae-shell-apps-menu-item-size);padding:8px calc((var(--pae-shell-navbar--width) - var(--pae-shell-apps-menu-icon-size)) / 2)}.container__zBqbk.expanded__EbsIr{justify-content:flex-start}.container__zBqbk .label__cdMnm{flex:1;text-align:left;font-size:var(--pae-shell-apps-menu-item-font-size);font-weight:var(--pae-shell-apps-menu-item-font-weight);line-height:21px;color:var(--pae-shell-apps-menu-selected-item-text-color)}@keyframes spinner-rotation__wUmPV{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.spinner__fakUN{position:relative;display:flex;transition:.3s;width:var(--icon-size);height:var(--icon-size)}.spinner__fakUN:before{content:"";position:absolute;top:50%;left:50%;width:var(--icon-size);height:var(--icon-size);margin-top:calc(var(--icon-size) / -2);margin-left:calc(var(--icon-size) / -2);border:2px solid transparent;box-sizing:border-box;border-radius:50%;animation:spinner-rotation__wUmPV .6s linear infinite;display:block}.button__8FA9H{all:unset;padding:var(--platform-button-base-padding);border-radius:var(--platform-button-base-border-radius);box-shadow:var(--platform-button-base-box-shadow);font-size:var(--platform-button-base-font-size);line-height:var(--platform-button-base-line-height);height:var(--platform-button-base-height);font-weight:600;outline:none;border:none;cursor:pointer;transition:width .2s ease-in;display:flex;align-items:center;gap:8px;--icon-size: 12px}.button__8FA9H:disabled{cursor:not-allowed;opacity:.5}.button--contained-primary__stkTx{background-color:var(--platform-button-contained-primary-background-color);color:var(--platform-button-contained-primary-color)}.button--contained-primary__stkTx .spinner__fakUN:before{border-top-color:var(--platform-button-contained-primary-color);border-right-color:var(--platform-button-contained-primary-color)}.button--outlined-primary__KZ1ww{background-color:transparent;color:var(--platform-button-outlined-primary-color);border:1px solid var(--platform-button-outlined-primary-color);height:calc(var(--platform-button-base-height) - 2px)}.button--outlined-primary__KZ1ww .spinner__fakUN:before{border-top-color:var(--platform-button-outlined-primary-color);border-right-color:var(--platform-button-outlined-primary-color)}.button--text-primary__GLTfm{background-color:transparent;color:var(--platform-button-text-primary-color);box-shadow:none}.button--text-primary__GLTfm .spinner__fakUN:before{border-top-color:var(--platform-button-text-primary-color);border-right-color:var(--platform-button-text-primary-color)}.button--contained-danger__L9ehT{background-color:var(--platform-button-contained-danger-background-color);color:var(--platform-button-contained-danger-color)}.button--contained-danger__L9ehT .spinner__fakUN:before{border-top-color:var(--platform-button-contained-danger-color);border-right-color:var(--platform-button-contained-danger-color)}.button--outlined-danger__eoYLd{background-color:transparent;color:var(--platform-button-outlined-danger-color);border:1px solid var(--platform-button-outlined-danger-color);height:calc(var(--platform-button-base-height) - 2px)}.button--outlined-danger__eoYLd .spinner__fakUN:before{border-top-color:var(--platform-button-outlined-danger-color);border-right-color:var(--platform-button-outlined-danger-color)}.button--text-danger__Sw-ha{background-color:transparent;color:var(--platform-button-text-danger-color);box-shadow:none}.button--text-danger__Sw-ha .spinner__fakUN:before{border-top-color:var(--platform-button-text-danger-color);border-right-color:var(--platform-button-text-danger-color)}.icon__--umH{width:var(--icon-size);height:var(--icon-size)}.Badges__5jpum{display:flex;gap:10px;margin-top:8px}.Badge__95MWM{display:flex;flex-direction:row;justify-content:center;align-items:center;text-align:center;color:var(--admin-ui-badge-color);padding:var(--admin-ui-badge-padding);background:var(--admin-ui-badge-background-color);border-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}.container__LbyGQ{display:flex;align-items:center}.avatarWrapper__HCQIZ{position:relative;display:inline-block}.avatar__E453a{border-radius:9999px;display:flex;align-items:center;justify-content:center;font-weight:600;border-width:1px;color:var(--platform-color-white);border-color:var(--platform-lines)}.overflowWrapper__ETnPO{position:relative;display:inline-block;cursor:default}.overflowBadge__igBKT{border-radius:9999px;display:flex;align-items:center;justify-content:center;color:var(--platform-color-white);font-weight:600;border-width:1px;border-color:var(--platform-lines);background-color:var(--platform-color-primary)}
|
|
2
|
-
`,document.head.appendChild(
|
|
1
|
+
(function(T,S){typeof exports=="object"&&typeof module<"u"?S(exports,require("react"),require("single-spa"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","single-spa","react-dom"],S):(T=typeof globalThis<"u"?globalThis:T||self,S(T["@bluealba/pae-ui-react-core"]={},T.React,T.singleSpa,T.ReactDOM))})(this,function(T,S,he,Wt){"use strict";var Hd=T=>{throw TypeError(T)};var _i=(T,S,he)=>S.has(T)||Hd("Cannot "+he);var _=(T,S,he)=>(_i(T,S,"read from private field"),he?he.call(T):S.get(T)),M=(T,S,he)=>S.has(T)?Hd("Cannot add the same private member more than once"):S instanceof WeakSet?S.add(T):S.set(T,he),I=(T,S,he,Wt)=>(_i(T,S,"write to private field"),Wt?Wt.call(T,he):S.set(T,he),he),H=(T,S,he)=>(_i(T,S,"access private method"),he);var Po=(T,S,he,Wt)=>({set _(pr){I(T,S,pr,he)},get _(){return _(T,S,Wt)}});var nn,Pt,Tn,_d,Pn,At,An,xd,rn,Cd,Rn,On,je,on,be,lr,sn,We,mt,Sd,et,Ed,tt,_e,an,nt,Ut,Td,dt,He,cr,Pd,ue,Rt,Ot,In,jn,It,kn,Ln,Ad,Te,K,ur,xe,ln,Dn,jt,kt,dr,Nn,Mn,cn,un,Lt,$n,ee,fr,xi,Ci,Si,Ei,Ti,Pi,Ai,Vd,Rd,Dt,Nt,Pe,ft,pt,Ao,Ri,Od;var pr=document.createElement("style");pr.textContent=`:root{--platform-label-color: var(--platform-text-secondary-color);--platform-input-border-color: var(--platform-lines);--platform-input-background-color: var(--platform-background-secondary-color);--platform-input-color: var(--platform-text-primary-color);--platform-input-focus-border-color: var(--platform-color-primary);--platform-button-base-padding: 4px 16px;--platform-button-base-border-radius: 6px;--platform-button-base-box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);--platform-button-base-font-size: 1em;--platform-button-base-line-height: 16px;--platform-button-base-height: calc(2 * var(--platform-button-base-font-size));--platform-button-contained-primary-background-color: var(--platform-color-primary);--platform-button-contained-primary-color: #ffffff;--platform-button-outlined-primary-color: var(--platform-color-primary);--platform-button-text-primary-color: var(--platform-text-primary-color);--platform-button-contained-danger-background-color: var(--platform-color-danger);--platform-button-contained-danger-color: #ffffff;--platform-button-outlined-danger-color: var(--platform-color-danger);--platform-button-text-danger-color: var(--platform-color-danger)}.container__zBqbk{display:flex;align-items:center;justify-content:center;gap:16px;width:100%;cursor:pointer;height:var(--pae-shell-apps-menu-item-size);padding:8px calc((var(--pae-shell-navbar--width) - var(--pae-shell-apps-menu-icon-size)) / 2)}.container__zBqbk.expanded__EbsIr{justify-content:flex-start}.container__zBqbk .label__cdMnm{flex:1;text-align:left;font-size:var(--pae-shell-apps-menu-item-font-size);font-weight:var(--pae-shell-apps-menu-item-font-weight);line-height:21px;color:var(--pae-shell-apps-menu-selected-item-text-color)}@keyframes spinner-rotation__wUmPV{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.spinner__fakUN{position:relative;display:flex;transition:.3s;width:var(--icon-size);height:var(--icon-size)}.spinner__fakUN:before{content:"";position:absolute;top:50%;left:50%;width:var(--icon-size);height:var(--icon-size);margin-top:calc(var(--icon-size) / -2);margin-left:calc(var(--icon-size) / -2);border:2px solid transparent;box-sizing:border-box;border-radius:50%;animation:spinner-rotation__wUmPV .6s linear infinite;display:block}.button__8FA9H{all:unset;padding:var(--platform-button-base-padding);border-radius:var(--platform-button-base-border-radius);box-shadow:var(--platform-button-base-box-shadow);font-size:var(--platform-button-base-font-size);line-height:var(--platform-button-base-line-height);height:var(--platform-button-base-height);font-weight:600;outline:none;border:none;cursor:pointer;transition:width .2s ease-in;display:flex;align-items:center;gap:8px;--icon-size: 12px}.button__8FA9H:disabled{cursor:not-allowed;opacity:.5}.button--contained-primary__stkTx{background-color:var(--platform-button-contained-primary-background-color);color:var(--platform-button-contained-primary-color)}.button--contained-primary__stkTx .spinner__fakUN:before{border-top-color:var(--platform-button-contained-primary-color);border-right-color:var(--platform-button-contained-primary-color)}.button--outlined-primary__KZ1ww{background-color:transparent;color:var(--platform-button-outlined-primary-color);border:1px solid var(--platform-button-outlined-primary-color);height:calc(var(--platform-button-base-height) - 2px)}.button--outlined-primary__KZ1ww .spinner__fakUN:before{border-top-color:var(--platform-button-outlined-primary-color);border-right-color:var(--platform-button-outlined-primary-color)}.button--text-primary__GLTfm{background-color:transparent;color:var(--platform-button-text-primary-color);box-shadow:none}.button--text-primary__GLTfm .spinner__fakUN:before{border-top-color:var(--platform-button-text-primary-color);border-right-color:var(--platform-button-text-primary-color)}.button--contained-danger__L9ehT{background-color:var(--platform-button-contained-danger-background-color);color:var(--platform-button-contained-danger-color)}.button--contained-danger__L9ehT .spinner__fakUN:before{border-top-color:var(--platform-button-contained-danger-color);border-right-color:var(--platform-button-contained-danger-color)}.button--outlined-danger__eoYLd{background-color:transparent;color:var(--platform-button-outlined-danger-color);border:1px solid var(--platform-button-outlined-danger-color);height:calc(var(--platform-button-base-height) - 2px)}.button--outlined-danger__eoYLd .spinner__fakUN:before{border-top-color:var(--platform-button-outlined-danger-color);border-right-color:var(--platform-button-outlined-danger-color)}.button--text-danger__Sw-ha{background-color:transparent;color:var(--platform-button-text-danger-color);box-shadow:none}.button--text-danger__Sw-ha .spinner__fakUN:before{border-top-color:var(--platform-button-text-danger-color);border-right-color:var(--platform-button-text-danger-color)}.icon__--umH{width:var(--icon-size);height:var(--icon-size)}.Badges__5jpum{display:flex;gap:10px;margin-top:8px}.Badge__95MWM{display:flex;flex-direction:row;justify-content:center;align-items:center;text-align:center;color:var(--admin-ui-badge-color);padding:var(--admin-ui-badge-padding);background:var(--admin-ui-badge-background-color);border:1px solid var(--admin-ui-badge-color);border-radius:var(--admin-ui-badge-border-radius)}.Badge--primary__Rx-bS{--admin-ui-badge-background-color: var(--admin-ui-primary-color);--admin-ui-badge-color: #ffffff}.Badge--secondary__d92bT{--admin-ui-badge-background-color: var(--admin-ui-background-color-light);--admin-ui-badge-color: var(--admin-ui-secondary-text-color)}.Badge--success__Kdo98{--admin-ui-badge-background-color: var(--admin-ui-success-color-light);--admin-ui-badge-color: var(--admin-ui-success-color)}.Badge--warning__bf-Nn{--admin-ui-badge-background-color: var(--admin-ui-warning-color-light);--admin-ui-badge-color: var(--admin-ui-warning-color)}.Badge--danger__HTj39{--admin-ui-badge-background-color: var(--admin-ui-danger-color-light);--admin-ui-badge-color: var(--admin-ui-danger-color)}.Badge--small__y93Pj{font-size:var(--admin-ui-badge-font-size);line-height:var(--admin-ui-badge-line-height)}.Badge--regular__aT5AL{font-size:calc(1.25 * var(--admin-ui-badge-font-size));line-height:calc(1.25 * var(--admin-ui-badge-line-height))}.Badge--large__wORCH{font-size:calc(1.5 * var(--admin-ui-badge-font-size));line-height:calc(1.5 * var(--admin-ui-badge-line-height))}.CopyToClipboardButton__2Nd2m:hover{cursor:pointer}.FieldGroup__Q2JCV{margin-bottom:1em}.FieldGroup--horizontal__kpfL1{display:grid;grid-template-columns:max-content 1fr;grid-gap:1em;align-items:center;height:100%}.FieldGroup--vertical__FLo-Q{display:grid;grid-template-columns:1fr;grid-gap:4px}.Input__uS0sb{width:100%;padding:10px;border:1px solid var(--platform-input-border-color);background-color:var(--platform-input-background-color);color:var(--platform-input-color);border-radius:8px;font-size:1em}.Input__uS0sb:focus{outline:1px solid var(--platform-input-focus-border-color)}.Input__uS0sb.Error__-DQpw{border-color:var(--platform-color-danger)}.Error__N4OP5{width:100%;min-height:15px;color:var(--platform-color-danger);font-size:1em}.Label__VYUvW{font-size:1em;font-weight:400;color:var(--platform-label-color)}.Label__VYUvW.Error__Eu6DI{color:var(--platform-color-danger)}.Select__giqpe{width:100%;position:relative}.Select__giqpe select{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;color:var(--platform-input-color);font-size:14px;background-color:var(--platform-input-background-color);border:1px solid var(--platform-input-border-color);border-radius:8px;cursor:pointer;padding:10px}.Select__giqpe select:focus{outline:1px solid var(--platform-input-focus-border-color)}.Chevron__YvhBd{position:absolute;right:1em;top:50%;transform:translateY(-50%);pointer-events:none}.Container__xcHXp{display:flex;flex-direction:column;gap:8px}.Label__0cZB9{font-size:1em;font-weight:600;color:var(--platform-input-color)}.HelperText__m1nA9{font-size:.875em;color:var(--platform-text-secondary-color);margin-top:-4px}.Trigger__AyFUd{display:flex;align-items:center;justify-content:space-between;width:100%;padding:10px;background-color:var(--platform-input-background-color);border:1px solid var(--platform-input-border-color);border-radius:8px;font-size:1em;color:var(--platform-input-color);cursor:pointer;transition:all .2s}.Trigger__AyFUd:hover{border-color:var(--platform-input-focus-border-color)}.Trigger__AyFUd:focus{outline:none;border-color:var(--platform-input-focus-border-color)}.Trigger__AyFUd[data-disabled]{opacity:.5;cursor:not-allowed}.Trigger__AyFUd[data-placeholder]{color:var(--platform-text-secondary-color)}.TriggerIcon__aygFG{display:flex;align-items:center;color:var(--platform-text-primary-color)}.Content__llztG{overflow:hidden;background-color:var(--platform-input-background-color);border:1px solid var(--platform-input-border-color);border-radius:8px;box-shadow:0 4px 16px #0000001a;z-index:99999;min-width:var(--radix-select-trigger-width)}.Viewport__COtSL{padding:4px}.Item__XN1-2{display:flex;align-items:center;justify-content:flex-start;gap:8px;padding:10px 12px;font-size:1em;border-radius:4px;cursor:pointer;-webkit-user-select:none;user-select:none;outline:none;position:relative;color:var(--platform-input-color)}.Item__XN1-2[data-highlighted]{background-color:#0000000d}.Item__XN1-2[data-disabled]{opacity:.5;pointer-events:none}.Item__XN1-2[data-state=checked]{font-weight:500}.ItemIndicatorContainer__EQH-X{display:flex;align-items:center;justify-content:center;width:16px;height:16px;flex-shrink:0}.ItemIndicator__bySSc{display:flex;align-items:center;justify-content:center;color:var(--platform-input-color)}.TextArea__pa-A0{width:100%;height:100%;background-clip:padding-box;padding:10px;border:1px solid var(--platform-input-border-color);background-color:var(--platform-input-background-color);color:var(--platform-input-color);border-radius:8px;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}.TextArea__pa-A0:focus{outline:1px solid var(--platform-input-focus-border-color)}.tooltip__nUuSh{border-radius:8px;padding:8px 12px;font-size:12px;font-weight:var(--platform-tooltip-font-weight);line-height:18px;color:var(--platform-tooltip-color);background-color:var(--platform-tooltip-background-color);box-shadow:0 4px 10px 0 var(--platform-shadow-color);-webkit-user-select:none;user-select:none;pointer-events:none;animation-duration:.4s;animation-timing-function:cubic-bezier(.16,1,.3,1);will-change:transform,opacity}.tooltip__nUuSh[data-side=right]{animation-name:slideLeftAndFade__DYdE5}.tooltip__nUuSh[data-side=bottom]{animation-name:slideUpAndFade__itahf}.tooltipArrow__W2w-f{fill:var(--platform-tooltip-background-color)}@keyframes slideLeftAndFade__DYdE5{0%{opacity:0;transform:translate(-8px)}to{opacity:1;transform:translate(0)}}@keyframes slideUpAndFade__itahf{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translate(0)}}.truncatedText__Y-jSd{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}.overflowing__o8TC-{cursor:default}.SearchInput__4OFyE{position:relative}.SearchInput__4OFyE .SearchIcon__YgnQy{position:absolute;top:50%;transform:translateY(-50%);left:10px;color:#000}.SearchInput__4OFyE .ClearIcon__ukRVr{position:absolute;top:50%;transform:translateY(-50%);right:15px;color:#000;cursor:pointer}.SearchInput__4OFyE input{font-size:1em}.SearchInput__ClearIcon__uzVoc input{padding-right:30px}.SearchInput__SearchIcon__zoDG4 input{padding-left:30px}.SearchAutocomplete__vR9Hk{position:relative}.AutocompleteItem__YIm7R{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:4px 16px;min-height:36px;width:100%;text-align:left;border:none;background-color:transparent;line-height:14px;font-size:12px;font-weight:400;color:var(--platform-text-primary-color);pointer-events:none}.AutocompleteItem--canBeSelected__jxk4z{cursor:pointer;pointer-events:auto}.AutocompleteItem--canBeSelected__jxk4z:hover{background-color:#0000001a}.AutocompleteHighlighter__LAFTV{overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical;word-break:break-all}.AutocompleteHighlighter__match__Wy1o2{font-weight:700}.DropdownList__-fHIk{width:100%;padding-bottom:8px;padding-top:8px;min-height:0;border:1px solid var(--platform-lines)}.AutocompleteItemDescription__4QYN5{font-size:.8em;line-height:1em;font-weight:500;color:var(--platform-text-secondary-color);margin-top:2px}.DropdownList__QTXXX{position:absolute;z-index:1;background-color:var(--platform-background-primary-color);border-radius:8px;box-shadow:0 1px 5px #1018281a;min-width:105px;padding:4px 0;transition:all .2s ease-in-out}.DropdownList--closed__pdL1Z{opacity:0;pointer-events:none;transform:translateY(-10px);visibility:hidden}.DropdownList--open__opzc9{display:flex;flex-direction:column;opacity:1;pointer-events:all;transform:translateY(0)}.DropdownList--left__xSwXR{right:0}.SkeletonListContainer__MKJhE{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch}.Skeleton__Ovpiw{animation:skeleton-pulse__ZqB1e 1s infinite alternate-reverse;background-image:none;background-clip:border-box;border:none;box-shadow:none;-webkit-box-decoration-break:clone;box-decoration-break:clone;color:transparent;outline:none;pointer-events:none;-webkit-user-select:none;user-select:none;cursor:default;display:block}@keyframes skeleton-pulse__ZqB1e{0%{background-color:var(--platform-skeleton-color-1)}to{background-color:var(--platform-skeleton-color-2)}}@keyframes rotate__EqlXe{to{transform:rotate(360deg)}}.spinner__qa7F6{width:80px;height:80px;border:6px solid var(--platform-color-white);border-bottom-color:#ffffff1a;border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotate__EqlXe 2s linear infinite}.spinner-dark__9A9-q{border-color:var(--platform-color-dark);border-bottom-color:#ffffff1a}.spinner-white__gRbtI{border-color:var(--platform-color-white);border-bottom-color:#ffffff1a}.spinner-success__otWGm{border-color:var(--platform-color-success);border-bottom-color:#ffffff1a}.spinner-danger__Bq5DM{border-color:var(--platform-color-danger);border-bottom-color:#ffffff1a}.spinner-warning__U900K{border-color:var(--platform-color-warning);border-bottom-color:#ffffff1a}.switch__0b2av{position:relative;display:inline-flex;align-items:center;width:44px;min-width:44px;height:24px;padding:0;border:none;border-radius:12px;background-color:#ccc;cursor:pointer;transition:background-color .2s ease;outline:none;font-size:0}.switch__0b2av:disabled{opacity:.5}.switch__0b2av:focus-visible{box-shadow:0 0 0 2px var(--platform-color-primary)}.switch__0b2av:hover:not(.disabled__KpauE){background-color:#bbb}.switch__0b2av.checked__2-JV-{background-color:var(--platform-color-primary)}.switch__0b2av.checked__2-JV-:hover:not(.disabled__KpauE){background-color:var(--platform-color-secondary)}.switch__0b2av.disabled__KpauE{opacity:.5;cursor:not-allowed;pointer-events:none}.thumb__fEuKD{position:absolute;top:2px;left:2px;width:20px;height:20px;background-color:#fff;border-radius:50%;transition:transform .2s ease;box-shadow:0 1px 3px #0000001a}.switch__0b2av.checked__2-JV- .thumb__fEuKD{transform:translate(20px)}[data-theme=dark] .switch__0b2av{background-color:#555}[data-theme=dark] .switch__0b2av:hover:not(.disabled__KpauE){background-color:#666}[data-theme=dark] .switch__0b2av.checked__2-JV-{background-color:var(--platform-color-primary)}[data-theme=dark] .switch__0b2av.checked__2-JV-:hover:not(.disabled__KpauE){background-color:var(--platform-color-secondary)}.tabs-list__rc10N{display:flex;position:relative}.tabs-list--horizontal__e1YW4{flex-direction:row;border-bottom:1px solid var(--platform-lines)}.tabs-list--vertical__huK05{flex-direction:column;border-right:none;width:200px}.tabs-trigger__D8R4R{position:relative;background:transparent;border:none;padding:12px 16px;font-size:14px;font-weight:500;color:var(--platform-text-secondary-color);cursor:pointer;transition:all .15s ease-in-out;white-space:nowrap;outline:none}.tabs-trigger__D8R4R:hover:not(.tabs-trigger--disabled__ezDWc){color:var(--platform-text-primary-color)}.tabs-trigger__D8R4R:focus-visible{outline:2px solid var(--platform-color-primary);outline-offset:2px;border-radius:4px}.tabs-trigger--horizontal__4jBFV{border-bottom:2px solid transparent;margin-bottom:-1px}.tabs-trigger--horizontal__4jBFV.tabs-trigger--active__S-Z-S{color:var(--platform-text-primary-color);border-bottom-color:var(--platform-text-primary-color)}.tabs-trigger--vertical__dNVIZ{border-left:none;border-right:3px solid transparent;margin-right:-8px;text-align:left;justify-content:flex-start;display:flex;width:calc(100% + 8px);border-radius:6px 0 0 6px;padding-right:19px}.tabs-trigger--vertical__dNVIZ:hover:not(.tabs-trigger--disabled__ezDWc):not(.tabs-trigger--active__S-Z-S){background-color:#0000000a}.tabs-trigger--vertical__dNVIZ.tabs-trigger--active__S-Z-S{color:var(--platform-text-primary-color);border-right-color:var(--platform-text-primary-color);background-color:var(--platform-background-primary-color);font-weight:600}.tabs-trigger--disabled__ezDWc{color:#9ca3af;cursor:not-allowed}.tabs-content__1d77o{padding:16px 0;outline:none}.tabs-content__1d77o:focus-visible{outline:2px solid var(--platform-color-primary);outline-offset:2px;border-radius:4px}.PasswordInput__GDJDN{position:relative}.PasswordInput__GDJDN input{padding-right:40px;box-sizing:border-box}.PasswordInput__GDJDN .eyeIcon__kDExG{position:absolute;top:50%;right:1em;transform:translateY(-50%)}.PasswordInput__GDJDN .eyeIcon__kDExG:hover{cursor:pointer}.Overlay__M5Z83{background-color:#0e12167f;position:fixed;top:0;right:0;bottom:0;left:0;animation:overlayShow__seU5M .15s cubic-bezier(.16,1,.3,1);z-index:var(--platform-modal-layer)}.Content__wAkP4{display:flex;position:relative;flex-direction:column;justify-content:flex-start;align-items:stretch;font-size:var(--admin-ui-base-font-size);z-index:calc(var(--platform-modal-layer) + 1);background-color:var(--platform-background-primary-color);border-radius:8px;overflow:hidden;box-shadow:#0e121659 0 10px 38px -10px,#0e121633 0 10px 20px -15px;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);animation:contentShow__rxphL .15s cubic-bezier(.16,1,.3,1)}.Content__wAkP4:focus{outline:none}@keyframes overlayShow__seU5M{0%{opacity:0}to{opacity:1}}@keyframes contentShow__rxphL{0%{opacity:0;transform:translate(-50%,-48%) scale(.96)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}.ExampleDialog__llNIZ{max-width:500px}.Header__VHxNf{display:flex;justify-content:space-between;align-items:center;background-color:var(--admin-ui-background-color-light);padding:16px 24px}.Content__I04qM{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;padding:24px;width:90vw;max-height:85vh;max-width:100%;margin-bottom:64px;overflow:auto}.Close__xSN-7{cursor:pointer}.Title__Dznh6{line-height:24px;font-size:20px;font-weight:700;color:var(--admin-ui-primary-text-color)}.Footer__-8gzQ{position:absolute;bottom:0;left:0;right:0;background-color:var(--admin-ui-background-color-light);display:flex;justify-content:flex-end;padding:16px 24px;gap:16px;box-shadow:0 -1px 6px #78787826}.Actions__kKF2Q{display:flex;gap:16px}.pill__vtGwB{border-radius:300px;min-width:4em;text-align:center;padding:3px 12px;font-size:.8em;font-weight:700;border:1px solid}.pill--solid__F-mR4{border-color:var(--pae-shell-color-secondary, #ED8525);background:var(--pae-shell-color-secondary, #ED8525);color:var(--pae-shell-color-white)}.pill--outline__gC-mh{border-color:var(--pae-shell-color-secondary, #ED8525);color:var(--pae-shell-color-secondary, #ED8525);background-color:var(--pae-shell-color-white)}.DialogContent__-WjG9{max-width:450px}.Message__AUgVP{color:var(--platform-text-primary-color);font-size:1.15em}.container__AjtYJ{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;height:100vh}.title__A2vCu{font-size:24px;font-weight:600;line-height:36px;color:var(--text-primary-color);padding-top:24px}.description__bP6Ig{font-size:16px;font-weight:400;line-height:24px;color:var(--text-secondary-color)}a.mailToText__SdlsE{color:var(--pae-shell-color-secondary);font-weight:500}.List__h09XG{display:flex;flex-direction:column;position:relative;overflow-y:auto}.Item__YMy2i{display:flex;flex-direction:column;padding:12px 16px;cursor:pointer;color:var(--admin-ui-primary-text-color)}.List--primary__J2pbx{gap:16px}.List--primary__J2pbx .Item__YMy2i{border:1px solid var(--admin-ui-border-color);border-radius:8px}.List--secondary__gi1ao .Item__YMy2i{border-top:1px solid var(--admin-ui-border-color);border-bottom:1px solid transparent}.List--secondary__gi1ao .Item--selected__yRWow{background:#a0a0a01a;border-top:1px solid var(--admin-ui-primary-color);border-bottom:1px solid var(--admin-ui-primary-color)}.List__h09XG .Title__RJmEW{display:flex;align-items:center;gap:8px;padding-right:16px;font-size:1em;line-height:1.15em;color:var(--admin-ui-primary-text-color);margin-bottom:4px}.List__h09XG .Description__DGyX2{font-size:.8em;line-height:1em;font-weight:500;color:var(--admin-ui-secondary-text-color)}.List__h09XG .Actions__UHP5l{position:absolute;right:16px}.List__h09XG .Action__q-R1I{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;padding:8px 16px;gap:12px;width:100%}.List__h09XG .Action__q-R1I:hover{background:var(--admin-ui-background-color-light)}.List__h09XG .Item--disabled__Ke1u-{background:var(--admin-ui-background-color-light);cursor:not-allowed;opacity:.5}.List--small__ijoSR .Item__YMy2i{padding:8px 12px;height:auto;font-size:1em}.List--medium__E1FEY .Item__YMy2i{padding:12px 16px;height:auto;font-size:1.1em}.List--large__T8tfz .Item__YMy2i{padding:16px 24px;height:auto;font-size:1.25em}.List__h09XG .Icon__dFr-L{display:flex;align-items:center;justify-content:center;width:1.4em;height:1.4em}.Navigation__uylxk{margin:0 auto;display:flex;justify-content:flex-end;width:100%;color:var(--platform-text-primary-color)}.PaginationContent__UpLw0{display:flex;align-items:center;gap:4px}.PaginationEllipsis__perWk{display:flex;width:2.5em;height:2.5em;justify-content:center;align-items:center}.PaginationEllipsis__perWk svg{width:1em;height:1em}.PaginationLink__GVUZj{display:inline-flex;align-items:center;justify-content:center;gap:.6em;padding:.5em;min-width:32px;border-radius:4px;font-size:1em;font-weight:500;border:1px solid transparent;cursor:pointer}.PaginationLink__GVUZj:focus{outline:none}.PaginationLink__GVUZj:hover{background-color:var(--platform-background-secondary-color)}.PaginationLink__GVUZj.Active__u1Ahy{border-color:var(--platform-lines)}.PaginationLink__GVUZj.Disabled__8WM0y{opacity:.8;pointer-events:none;cursor:default}.PaginationLink__GVUZj svg{width:1em;height:1em}.Prev__wp4hc{padding-right:12px}.Next__eVyL5{padding-left:12px}.TableContainer__osh6Z{border:1px solid var(--platform-lines);border-radius:1em;overflow:hidden}.TableHeader__sYa-8{padding:.6em .8em;font-size:1.4em;font-weight:600;width:100%;border-bottom:1px solid var(--platform-lines);color:var(--platform-text-primary-color)}.Table__2cIs3{overflow-x:auto;overflow-y:hidden}.Table__2cIs3 table{border-collapse:collapse;width:100%;min-width:max-content}.Table__2cIs3 td,.Table__2cIs3 th{border-bottom:1px solid var(--platform-lines);padding:1em;font-weight:400;font-size:var(--platform-text-base-font-size);color:var(--platform-text-secondary-color)}.Table__2cIs3 td{color:var(--platform-text-primary-color)}.Table__2cIs3 tr:last-child td{border-bottom:none}.Table__2cIs3 thead th{font-weight:500;background-color:var(--platform-background-secondary-color)}.Table__2cIs3 tr{transition:background-color .2s ease-in-out;background-color:var(--platform-background-primary-color)}.Table__2cIs3 tr.selectable__WsGg1:hover{cursor:pointer;background-color:var(--platform-background-secondary-color)}.Table__2cIs3 .Cell__ZEv-K{display:flex;align-items:center;gap:4px;justify-content:flex-start}.Table__2cIs3 .Right__YoM1V{justify-content:flex-end}.Table__2cIs3 .Center__CF3tr{justify-content:center}.Table__2cIs3 .Sortable__JIV1V{cursor:pointer}.Table__2cIs3 .SortIcon__f0bBy{opacity:0;visibility:hidden;transition:opacity .2s ease-in-out,transform .2s ease-in-out}.Table__2cIs3 .SortIcon__f0bBy.Active__rJjxB{opacity:1;visibility:visible}.Table__2cIs3 .SortIcon__f0bBy.Rotate__7cwTK{transform:rotate(-180deg)}.Table__2cIs3 .Cell__ZEv-K:hover .SortIcon__f0bBy{opacity:1;visibility:visible}.Pagination__sbqMP{display:flex;justify-content:flex-end;margin-top:1em!important}.PointerNone__kQdQS{pointer-events:none}.EmptyStateContainer__Q9FEb{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1em;padding:2em 0}.EmptyStateContainer__Q9FEb .Message__IHK6M{font-size:1.15em;color:var(--platform-text-secondary-color)}.EmptyStateContainer__Q9FEb svg{color:var(--platform-text-secondary-color)}.alert__LblpE{position:relative;width:100%;border-radius:.8em;border:1px solid var(--platform-lines);padding:1em 1.2em;font-size:1em;display:grid;grid-template-columns:0 1fr;gap:.5em}.alert__LblpE:has(>svg){grid-template-columns:16px 1fr;gap:12px}.alert__LblpE>svg{margin-top:2px;width:16px;height:16px;color:inherit}.default__mgO6A{background-color:var(--platform-background-primary-color, #fff);color:var(--platform-text-primary-color, #111)}.destructive__bLNSM{background-color:var(--platform-background-primary-color, #fff);color:var(--platform-color-danger, #dc2626);border-color:var(--platform-color-danger, #dc2626)}.destructive__bLNSM>svg{color:inherit}.destructive__bLNSM [data-slot=alert-description]{color:var(--platform-color-danger, #dc2626)}.alertTitle__gblKf{grid-column-start:2;min-height:1em;font-weight:500;line-clamp:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.alertDescription__BuVHV{grid-column-start:2;display:grid;justify-items:start;gap:4px;font-size:1em;color:var(--platform-text-secondary-color)}.alertDescription__BuVHV p{line-height:1.5}.container__LbyGQ{display:flex;align-items:center}.avatarWrapper__HCQIZ{position:relative;display:inline-block}.avatar__E453a{border-radius:9999px;display:flex;align-items:center;justify-content:center;font-weight:600;border-width:1px;color:var(--platform-color-white);border-color:var(--platform-lines)}.overflowWrapper__ETnPO{position:relative;display:inline-block;cursor:default}.overflowBadge__igBKT{border-radius:9999px;display:flex;align-items:center;justify-content:center;color:var(--platform-color-white);font-weight:600;border-width:1px;border-color:var(--platform-lines);background-color:var(--platform-color-primary)}
|
|
2
|
+
`,document.head.appendChild(pr);function Oi(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const d=Oi(S),hr=Oi(Wt),zd={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"}},Un="__PAE_GLOBAL_STATE__",Ii="__PAE_REACTIVE_GLOBAL_STATE__",ji="__PAE_EXTENSIONS_POINTS_REGISTRY__",Ro="__PAE_CUSTOMIZATIONS_LOADING_STATE_KEY__",Gd="/auth/logout",qd=(e,t)=>{const[n,r]=S.useState(t);return S.useEffect(()=>{const o=e.subscribe(s=>{r(s)});return()=>{o.unsubscribe()}},[r]),n},Kd=(e,t,n)=>n.map((r,o)=>o===e?t(r):r),Qd=(e,t,n)=>Kd(n.findIndex(e),t,n),Oo=(e,t)=>typeof e=="function"?e(t):e,ki=(e,t)=>{const n=qd(e,t),r=S.useCallback(o=>{e.next(Oo(o,n))},[n]);return[n,r]},Wn=()=>ki(window[Ii],window[Un]),Hn=()=>Wn()[0].catalog,Yd=()=>{const e=Hn(),t=S.useCallback(r=>{window[Ii].next({...window[Un],catalog:Oo(r,e)})},[e]),n=S.useCallback((r,o)=>{t(s=>Qd(i=>i.name===r,i=>{var a;return{...i,ui:{...i.ui,customProps:Oo(o,((a=i.ui)==null?void 0:a.customProps)??{})}}},s))},[t]);return[e,t,n]},Li=()=>{const[e,t]=S.useState(document.location.pathname);return S.useEffect(()=>{const n=()=>{t(window.location.pathname)};return window.addEventListener("popstate",n),()=>{window.removeEventListener("popstate",n)}},[t]),e};var Zd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Di={exports:{}},Vn={},Ni;function Jd(){if(Ni)return Vn;Ni=1;/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.development.js
|
|
5
5
|
*
|
|
@@ -7,30 +7,30 @@
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/return function(){var e=
|
|
11
|
-
|
|
12
|
-
`),
|
|
13
|
-
`),
|
|
14
|
-
`+
|
|
10
|
+
*/return function(){var e=S,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),x=Symbol.iterator,f="@@iterator";function v(b){if(b===null||typeof b!="object")return null;var O=x&&b[x]||b[f];return typeof O=="function"?O:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(b){{for(var O=arguments.length,j=new Array(O>1?O-1:0),B=1;B<O;B++)j[B-1]=arguments[B];C("error",b,j)}}function C(b,O,j){{var B=y.ReactDebugCurrentFrame,re=B.getStackAddendum();re!==""&&(O+="%s",j=j.concat([re]));var ae=j.map(function(Q){return String(Q)});ae.unshift("Warning: "+O),Function.prototype.apply.call(console[b],console,ae)}}var E=!1,P=!1,R=!1,A=!1,N=!1,L;L=Symbol.for("react.module.reference");function D(b){return!!(typeof b=="string"||typeof b=="function"||b===r||b===s||N||b===o||b===u||b===p||A||b===g||E||P||R||typeof b=="object"&&b!==null&&(b.$$typeof===m||b.$$typeof===h||b.$$typeof===i||b.$$typeof===a||b.$$typeof===l||b.$$typeof===L||b.getModuleId!==void 0))}function W(b,O,j){var B=b.displayName;if(B)return B;var re=O.displayName||O.name||"";return re!==""?j+"("+re+")":j}function z(b){return b.displayName||"Context"}function U(b){if(b==null)return null;if(typeof b.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof b=="function")return b.displayName||b.name||null;if(typeof b=="string")return b;switch(b){case r:return"Fragment";case n:return"Portal";case s:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case p:return"SuspenseList"}if(typeof b=="object")switch(b.$$typeof){case a:var O=b;return z(O)+".Consumer";case i:var j=b;return z(j._context)+".Provider";case l:return W(b,b.render,"ForwardRef");case h:var B=b.displayName||null;return B!==null?B:U(b.type)||"Memo";case m:{var re=b,ae=re._payload,Q=re._init;try{return U(Q(ae))}catch{return null}}}return null}var V=Object.assign,oe=0,G,Y,F,se,ge,ke,Mt;function $t(){}$t.__reactDisabledLog=!0;function rt(){{if(oe===0){G=console.log,Y=console.info,F=console.warn,se=console.error,ge=console.group,ke=console.groupCollapsed,Mt=console.groupEnd;var b={configurable:!0,enumerable:!0,value:$t,writable:!0};Object.defineProperties(console,{info:b,log:b,warn:b,error:b,group:b,groupCollapsed:b,groupEnd:b})}oe++}}function Ft(){{if(oe--,oe===0){var b={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:V({},b,{value:G}),info:V({},b,{value:Y}),warn:V({},b,{value:F}),error:V({},b,{value:se}),group:V({},b,{value:ge}),groupCollapsed:V({},b,{value:ke}),groupEnd:V({},b,{value:Mt})})}oe<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ve=y.ReactCurrentDispatcher,$;function te(b,O,j){{if($===void 0)try{throw Error()}catch(re){var B=re.stack.trim().match(/\n( *(at )?)/);$=B&&B[1]||""}return`
|
|
11
|
+
`+$+b}}var fe=!1,X;{var ne=typeof WeakMap=="function"?WeakMap:Map;X=new ne}function J(b,O){if(!b||fe)return"";{var j=X.get(b);if(j!==void 0)return j}var B;fe=!0;var re=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ae;ae=Ve.current,Ve.current=null,rt();try{if(O){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(Ae){B=Ae}Reflect.construct(b,[],Q)}else{try{Q.call()}catch(Ae){B=Ae}b.call(Q.prototype)}}else{try{throw Error()}catch(Ae){B=Ae}b()}}catch(Ae){if(Ae&&B&&typeof Ae.stack=="string"){for(var q=Ae.stack.split(`
|
|
12
|
+
`),Se=B.stack.split(`
|
|
13
|
+
`),de=q.length-1,pe=Se.length-1;de>=1&&pe>=0&&q[de]!==Se[pe];)pe--;for(;de>=1&&pe>=0;de--,pe--)if(q[de]!==Se[pe]){if(de!==1||pe!==1)do if(de--,pe--,pe<0||q[de]!==Se[pe]){var De=`
|
|
14
|
+
`+q[de].replace(" at new "," at ");return b.displayName&&De.includes("<anonymous>")&&(De=De.replace("<anonymous>",b.displayName)),typeof b=="function"&&X.set(b,De),De}while(de>=1&&pe>=0);break}}}finally{fe=!1,Ve.current=ae,Ft(),Error.prepareStackTrace=re}var Bn=b?b.displayName||b.name:"",dn=Bn?te(Bn):"";return typeof b=="function"&&X.set(b,dn),dn}function Ce(b,O,j){return J(b,!1)}function Le(b){var O=b.prototype;return!!(O&&O.isReactComponent)}function ot(b,O,j){if(b==null)return"";if(typeof b=="function")return J(b,Le(b));if(typeof b=="string")return te(b);switch(b){case u:return te("Suspense");case p:return te("SuspenseList")}if(typeof b=="object")switch(b.$$typeof){case l:return Ce(b.render);case h:return ot(b.type,O,j);case m:{var B=b,re=B._payload,ae=B._init;try{return ot(ae(re),O,j)}catch{}}}return""}var ze=Object.prototype.hasOwnProperty,Bt={},To=y.ReactDebugCurrentFrame;function ht(b){if(b){var O=b._owner,j=ot(b.type,b._source,O?O.type:null);To.setExtraStackFrame(j)}else To.setExtraStackFrame(null)}function v0(b,O,j,B,re){{var ae=Function.call.bind(ze);for(var Q in b)if(ae(b,Q)){var q=void 0;try{if(typeof b[Q]!="function"){var Se=Error((B||"React class")+": "+j+" type `"+Q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof b[Q]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Se.name="Invariant Violation",Se}q=b[Q](O,Q,B,j,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(de){q=de}q&&!(q instanceof Error)&&(ht(re),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",B||"React class",j,Q,typeof q),ht(null)),q instanceof Error&&!(q.message in Bt)&&(Bt[q.message]=!0,ht(re),w("Failed %s type: %s",j,q.message),ht(null))}}}var y0=Array.isArray;function gi(b){return y0(b)}function b0(b){{var O=typeof Symbol=="function"&&Symbol.toStringTag,j=O&&b[Symbol.toStringTag]||b.constructor.name||"Object";return j}}function w0(b){try{return Id(b),!1}catch{return!0}}function Id(b){return""+b}function jd(b){if(w0(b))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",b0(b)),Id(b)}var kd=y.ReactCurrentOwner,_0={key:!0,ref:!0,__self:!0,__source:!0},Ld,Dd;function x0(b){if(ze.call(b,"ref")){var O=Object.getOwnPropertyDescriptor(b,"ref").get;if(O&&O.isReactWarning)return!1}return b.ref!==void 0}function C0(b){if(ze.call(b,"key")){var O=Object.getOwnPropertyDescriptor(b,"key").get;if(O&&O.isReactWarning)return!1}return b.key!==void 0}function S0(b,O){typeof b.ref=="string"&&kd.current}function E0(b,O){{var j=function(){Ld||(Ld=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",O))};j.isReactWarning=!0,Object.defineProperty(b,"key",{get:j,configurable:!0})}}function T0(b,O){{var j=function(){Dd||(Dd=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",O))};j.isReactWarning=!0,Object.defineProperty(b,"ref",{get:j,configurable:!0})}}var P0=function(b,O,j,B,re,ae,Q){var q={$$typeof:t,type:b,key:O,ref:j,props:Q,_owner:ae};return q._store={},Object.defineProperty(q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(q,"_self",{configurable:!1,enumerable:!1,writable:!1,value:B}),Object.defineProperty(q,"_source",{configurable:!1,enumerable:!1,writable:!1,value:re}),Object.freeze&&(Object.freeze(q.props),Object.freeze(q)),q};function A0(b,O,j,B,re){{var ae,Q={},q=null,Se=null;j!==void 0&&(jd(j),q=""+j),C0(O)&&(jd(O.key),q=""+O.key),x0(O)&&(Se=O.ref,S0(O,re));for(ae in O)ze.call(O,ae)&&!_0.hasOwnProperty(ae)&&(Q[ae]=O[ae]);if(b&&b.defaultProps){var de=b.defaultProps;for(ae in de)Q[ae]===void 0&&(Q[ae]=de[ae])}if(q||Se){var pe=typeof b=="function"?b.displayName||b.name||"Unknown":b;q&&E0(Q,pe),Se&&T0(Q,pe)}return P0(b,q,Se,re,B,kd.current,Q)}}var vi=y.ReactCurrentOwner,Nd=y.ReactDebugCurrentFrame;function Fn(b){if(b){var O=b._owner,j=ot(b.type,b._source,O?O.type:null);Nd.setExtraStackFrame(j)}else Nd.setExtraStackFrame(null)}var yi;yi=!1;function bi(b){return typeof b=="object"&&b!==null&&b.$$typeof===t}function Md(){{if(vi.current){var b=U(vi.current.type);if(b)return`
|
|
15
15
|
|
|
16
|
-
Check the render method of \``+
|
|
16
|
+
Check the render method of \``+b+"`."}return""}}function R0(b){return""}var $d={};function O0(b){{var O=Md();if(!O){var j=typeof b=="string"?b:b.displayName||b.name;j&&(O=`
|
|
17
17
|
|
|
18
|
-
Check the top-level render call using <`+j+">.")}return
|
|
18
|
+
Check the top-level render call using <`+j+">.")}return O}}function Fd(b,O){{if(!b._store||b._store.validated||b.key!=null)return;b._store.validated=!0;var j=O0(O);if($d[j])return;$d[j]=!0;var B="";b&&b._owner&&b._owner!==vi.current&&(B=" It was passed a child from "+U(b._owner.type)+"."),Fn(b),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',j,B),Fn(null)}}function Bd(b,O){{if(typeof b!="object")return;if(gi(b))for(var j=0;j<b.length;j++){var B=b[j];bi(B)&&Fd(B,O)}else if(bi(b))b._store&&(b._store.validated=!0);else if(b){var re=v(b);if(typeof re=="function"&&re!==b.entries)for(var ae=re.call(b),Q;!(Q=ae.next()).done;)bi(Q.value)&&Fd(Q.value,O)}}}function I0(b){{var O=b.type;if(O==null||typeof O=="string")return;var j;if(typeof O=="function")j=O.propTypes;else if(typeof O=="object"&&(O.$$typeof===l||O.$$typeof===h))j=O.propTypes;else return;if(j){var B=U(O);v0(j,b.props,"prop",B,b)}else if(O.PropTypes!==void 0&&!yi){yi=!0;var re=U(O);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",re||"Unknown")}typeof O.getDefaultProps=="function"&&!O.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function j0(b){{for(var O=Object.keys(b.props),j=0;j<O.length;j++){var B=O[j];if(B!=="children"&&B!=="key"){Fn(b),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",B),Fn(null);break}}b.ref!==null&&(Fn(b),w("Invalid attribute `ref` supplied to `React.Fragment`."),Fn(null))}}var Ud={};function Wd(b,O,j,B,re,ae){{var Q=D(b);if(!Q){var q="";(b===void 0||typeof b=="object"&&b!==null&&Object.keys(b).length===0)&&(q+=" 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 Se=R0();Se?q+=Se:q+=Md();var de;b===null?de="null":gi(b)?de="array":b!==void 0&&b.$$typeof===t?(de="<"+(U(b.type)||"Unknown")+" />",q=" Did you accidentally export a JSX literal instead of a component?"):de=typeof b,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",de,q)}var pe=A0(b,O,j,re,ae);if(pe==null)return pe;if(Q){var De=O.children;if(De!==void 0)if(B)if(gi(De)){for(var Bn=0;Bn<De.length;Bn++)Bd(De[Bn],b);Object.freeze&&Object.freeze(De)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Bd(De,b)}if(ze.call(O,"key")){var dn=U(b),Ae=Object.keys(O).filter(function($0){return $0!=="key"}),wi=Ae.length>0?"{key: someKey, "+Ae.join(": ..., ")+": ...}":"{key: someKey}";if(!Ud[dn+wi]){var M0=Ae.length>0?"{"+Ae.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
|
|
19
19
|
let props = %s;
|
|
20
20
|
<%s {...props} />
|
|
21
21
|
React keys must be passed directly to JSX without using spread:
|
|
22
22
|
let props = %s;
|
|
23
|
-
<%s key={someKey} {...props} />`,
|
|
23
|
+
<%s key={someKey} {...props} />`,wi,dn,M0,dn),Ud[dn+wi]=!0}}return b===r?j0(pe):I0(pe),pe}}function k0(b,O,j){return Wd(b,O,j,!0)}function L0(b,O,j){return Wd(b,O,j,!1)}var D0=L0,N0=k0;Vn.Fragment=r,Vn.jsx=D0,Vn.jsxs=N0}(),Vn}Di.exports=Jd();var c=Di.exports;const Mi=S.createContext(null),$i=({module:e,children:t})=>c.jsx(Mi.Provider,{value:e,children:t});$i.displayName="PAEModule";const zn=()=>{const e=S.useContext(Mi);if(!e)throw new Error("Module metadata was not setup yet !!");return e};function Io(){if(!window[Un])throw new Error("PAE Global state not found.");return window[Un]}const jo=()=>{const{authUser:{applications:e}}=Io();return e||[]},Fi=e=>jo().filter(t=>t.isGlobal||t.name===e).flatMap(t=>t.operations),Bi=()=>{const{application:e}=zn();return S.useMemo(()=>Fi(e),[e])},Ui=e=>(...t)=>t.every(n=>e.some(r=>r.name===n)),Gn=()=>{const[{authUser:e}]=Wn(),t=Bi();return{authUser:e,hasAccess:S.useMemo(()=>Ui(t),[t])}},ef=()=>{const{authUser:e}=Gn();return!e||e.id==="anon"},ko=()=>{var e;return((e=zn().ui)==null?void 0:e.customProps)??{}},Lo=e=>{const t=Hn();return S.useMemo(()=>{const n=t.find(r=>r.name===e);if(!n)throw new Error(`Could not find the module [${e}] in the local catalog !`);return n},[t,e])},Wi=e=>{var t,n;return((n=(t=Lo(e))==null?void 0:t.ui)==null?void 0:n.customProps)??{}},tf=e=>e.replace(/\/+/g,"/"),nf=(e,t="only-base-path")=>{const{apiDocs:n,health:r,version:o,changelog:s}=(e==null?void 0:e.commonPaths)||{},i=(a,l="")=>{if(a===void 0&&!l)return;const u=a??l;if(t==="only-base-path")return u;const p=tf(`${e.baseUrl}/${u}`);return t==="with-module-base"?p:`${document.location.origin}${p}`};return{apiDocsPath:i(n,"/api-docs-json"),healthPath:i(r,"/health"),versionPath:i(o,"/version"),changelogPath:i(s,"/changelog")}};function rf(){window.open(Gd,"_self")}const of=e=>he.navigateToUrl(e),sf=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,}$/,af=e=>sf.test(e),lf=(e,t=2)=>{if(!e)return"";const n=e.split(" ");return n.length===1?n.join("").slice(0,t):n.map(r=>r[0]).join("").slice(0,t)},Hi=e=>e.type==="app",cf=e=>e.modules.some(Hi)&&e.route&&e.route!=="/",Vi=e=>{const{catalog:t}=Io();return mr(t.filter(n=>n.application===e))},mr=(e=[])=>e.find(t=>{var n;return Hi(t)&&((n=t.ui)==null?void 0:n.route)!=="/"}),zi=()=>{const e=Hn();return S.useMemo(()=>jo().map(n=>{var s,i,a;const r=uf(e,n.name),o=mr(r);return{name:n.name,displayName:((i=(s=o==null?void 0:o.ui)==null?void 0:s.customProps)==null?void 0:i.overrideApplicationDisplayName)??n.displayName,modules:r,route:(a=o==null?void 0:o.ui)==null?void 0:a.route,roles:[],operations:n.operations}}),[e])},uf=(e,t)=>e.filter(n=>n.application===t)||[],Gi=()=>{const e=zi();return S.useMemo(()=>e.filter(cf),[e])},qi=e=>S.useMemo(()=>e?Vi(e.name):void 0,[e]),gt=new Map,df=e=>{try{const{catalog:t}=Io(),n=t.find(r=>r.name===e);return n!=null&&n.version?`${e}@${n.version}`:e}catch{return e}},gr=e=>{const[t,n]=S.useState(null);return S.useEffect(()=>{(async()=>{if(!e){n(null);return}try{const o=df(e);if(gt.has(o)){const i=gt.get(o);n(i);return}const s=await System.import(e);gt.set(o,s),n(s)}catch(o){console.error(`Error importing module ${e}: ${o.message}`),n(null)}})()},[e,n]),t},ff=e=>{e?(Array.from(gt.keys()).filter(n=>n.startsWith(e)).forEach(n=>gt.delete(n)),console.log(`[useApplicationJSModule] Cleared cache for module: ${e}`)):(gt.clear(),console.log("[useApplicationJSModule] Cleared all module cache"))};typeof window<"u"&&(window.PAE={...window.PAE,clearModuleCache:ff,getModuleCacheSize:()=>gt.size,getModuleCacheKeys:()=>Array.from(gt.keys())});const Ki=e=>{const t=typeof e=="string"?Vi(e):mr(e==null?void 0:e.modules),n=gr(t==null?void 0:t.name);return n==null?void 0:n.icon},Qi=e=>{const t=mr(e==null?void 0:e.modules),n=gr(t==null?void 0:t.name),[r,o]=S.useState(!1),[s,i]=S.useState({}),a=async()=>(typeof(n==null?void 0:n.menu)=="function"?await n.menu():n==null?void 0:n.menu)||[],l=async()=>{if(!(n!=null&&n.menu))return[];o(!0);const h=pf((e==null?void 0:e.operations)||[]),m=(await a()).map(g=>{const{operations:x,items:f,path:v}=g;if(x!=null&&x.length&&!h(x))return null;const y=(f||[]).filter(w=>{var C;return!((C=w==null?void 0:w.operations)!=null&&C.length)||h(w.operations)});return!y.length&&!v?null:{...g,items:y}}).filter(Boolean);return o(!1),m},u=async()=>{const h=await l();e&&i(m=>({...m,[e.name]:h}))};S.useEffect(()=>{u()},[n==null?void 0:n.menu]);const p=S.useMemo(()=>e?s[e.name]||[]:[],[s,e]);return{loading:r,menu:p}},pf=e=>t=>t.every(n=>e.some(r=>r.name===n)),hf=e=>Qi(e);function le(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function Ht(e){return function t(n){return arguments.length===0||le(n)?t:e.apply(this,arguments)}}function vt(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return le(n)?t:Ht(function(o){return e(n,o)});default:return le(n)&&le(r)?t:le(n)?Ht(function(o){return e(o,r)}):le(r)?Ht(function(o){return e(n,o)}):e(n,r)}}}function Do(e){return function t(n,r,o){switch(arguments.length){case 0:return t;case 1:return le(n)?t:vt(function(s,i){return e(n,s,i)});case 2:return le(n)&&le(r)?t:le(n)?vt(function(s,i){return e(s,r,i)}):le(r)?vt(function(s,i){return e(n,s,i)}):Ht(function(s){return e(n,r,s)});default:return le(n)&&le(r)&&le(o)?t:le(n)&&le(r)?vt(function(s,i){return e(s,i,o)}):le(n)&&le(o)?vt(function(s,i){return e(s,r,i)}):le(r)&&le(o)?vt(function(s,i){return e(n,s,i)}):le(n)?Ht(function(s){return e(s,r,o)}):le(r)?Ht(function(s){return e(n,s,o)}):le(o)?Ht(function(s){return e(n,r,s)}):e(n,r,o)}}}function vr(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function Yi(e){return Object.prototype.toString.call(e)==="[object Object]"}var mf=Do(function(t,n,r){var o=t(n),s=t(r);return o>s?-1:o<s?1:0}),gf=Do(function(t,n,r){var o={},s;n=n||{},r=r||{};for(s in n)vr(s,n)&&(o[s]=vr(s,r)?t(s,n[s],r[s]):n[s]);for(s in r)vr(s,r)&&!vr(s,o)&&(o[s]=r[s]);return o}),vf=Do(function e(t,n,r){return gf(function(o,s,i){return Yi(s)&&Yi(i)?e(t,s,i):t(o,s,i)},n,r)}),yf=vt(function(t,n){return vf(function(r,o,s){return s},t,n)}),bf=vt(function(t,n){return Array.prototype.slice.call(n,0).sort(function(r,o){for(var s=0,i=0;s===0&&i<t.length;)s=t[i](r,o),i+=1;return s})});const No=()=>{const e=Li(),t=Gi();return S.useMemo(()=>wf(e,t),[e,t])},wf=(e,t)=>bf([mf(_f)],t).find(n=>n.route&&e.startsWith(n.route)),_f=e=>{var t;return((t=e==null?void 0:e.route)==null?void 0:t.length)||-1},Zi=()=>{var e;return(e=No())==null?void 0:e.name},xf=()=>{const e=No(),t=qi(e);return gr(t==null?void 0:t.name)},Mo=(e,t)=>{const r=Hn().find(o=>o.name===e);if(!r){if(t)return null;throw new Error(`Service with name [${e}] not available in the catalog`)}return r.baseUrl},$o=(e,t)=>{const n=Mo(e,!!t)??t;return S.useCallback((r,o)=>{const i={Accept:"application/json",...(o==null?void 0:o.body)instanceof FormData?{}:{"Content-Type":"application/json"},...o==null?void 0:o.headers};return fetch(Cf(`${n}${r}`),{...o,headers:i})},[n])},Cf=e=>e.replace(/\/+/g,"/"),Sf=["impersonate","impersonate-display-name","tenant"],Xi=(e,t)=>{const n=Mo(e,t);return S.useMemo(()=>{if(!n)return null;try{const r=new URL(window.location.href),o=new URL(n,window.location.origin);return Sf.forEach(s=>{const i=r.searchParams.get(s);i&&o.searchParams.set(s,i)}),o.toString()}catch(r){return console.error("Error building WebSocket URL:",r),n}},[n])},Ef=(e,t)=>n=>({timestamp:new Date(new Date().toUTCString()).toISOString(),module:t.name,moduleVersion:t.version,application:t.application,user:e.username,...n}),Tf=(e,t,n)=>async r=>{if(r.length===0)throw new Error("Invalid call to trackEvents with an empty array of events!");const o=await e("/event",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r.map(Ef(t,n)))});if(!o.ok)throw new Error(`Error publishing habits event ${o.statusText}`)},Pf="@bluealba/pae-habits-service",Ji=()=>{const{authUser:e}=Gn(),t=zn(),n=$o(Pf);return S.useCallback(Tf(n,e,t),[n,e,t])},Af=()=>{const e=Ji();return S.useCallback((t,n)=>e([{name:t,data:n}]),[e])},ea=e=>{const t=zn(),n=window[ji],[r,o]=S.useState(null);return S.useEffect(()=>n.defineExtensionPoint(t,e,s=>{o(()=>s)}),[o]),r},ta=(e,t,n)=>{S.useEffect(()=>window[ji].setExtensionPoint(e,t,n),[])},na=(e,t)=>{S.useEffect(()=>(window.addEventListener(e,t),()=>window.removeEventListener(e,t)),[e,t])},ra=e=>{const{cssCustomizationLoadingDelay:t=1e3}=ko();S.useEffect(()=>{if(!e)return;const n=document.createElement("style");return setTimeout(()=>{n.innerHTML=e,document.head.append(n)},t),()=>n&&n.remove()},[e])},Rf=e=>{var t;return(t=e.split(/[#?]/)[0].split(".").pop())==null?void 0:t.trim()},Of={woff2:"woff2",woff:"woff",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg"},If=e=>{const t=Rf(e);return t?Of[t]:void 0},jf=(e,t)=>{const n=t??If(e);return n?`format(${n})`:""};function oa(e){const[t,n]=S.useState(!1);return S.useEffect(()=>{if(!(e!=null&&e.length))return;const r=document.createElement("style");r.setAttribute("data-generated-fonts","true");const o=e.flatMap(({fontFamily:i,variants:a})=>a.map(({path:l,fontWeight:u,format:p})=>`
|
|
24
24
|
@font-face {
|
|
25
25
|
font-family: "${i}";
|
|
26
|
-
src: url("${l}") ${
|
|
26
|
+
src: url("${l}") ${jf(l,p)};
|
|
27
27
|
font-weight: ${u};
|
|
28
28
|
font-style: normal;
|
|
29
29
|
}
|
|
30
30
|
`)).join(`
|
|
31
|
-
`);return
|
|
32
|
-
`+
|
|
33
|
-
`):"",this.name="UnsubscriptionError",this.errors=r}});function Eo(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Jr=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,s;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=_o(i),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(f){t={error:f}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else i.remove(this);var d=this.initialTeardown;if(ze(d))try{d()}catch(f){s=f instanceof xo?f.errors:[f]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var h=_o(p),g=h.next();!g.done;g=h.next()){var w=g.value;try{Ui(w)}catch(f){s=s??[],f instanceof xo?s=Xr(Xr([],Co(s)),Co(f.errors)):s.push(f)}}}catch(f){n={error:f}}finally{try{g&&!g.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}}if(s)throw new xo(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Ui(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)&&Eo(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Eo(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Fi=Jr.EMPTY;function Bi(e){return e instanceof Jr||e&&"closed"in e&&ze(e.remove)&&ze(e.add)&&ze(e.unsubscribe)}function Ui(e){ze(e)?e():e.unsubscribe()}var jd={Promise:void 0},Dd={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Xr([e,t],Co(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Ld(e){Dd.setTimeout(function(){throw e})}function Wi(){}function en(e){e()}var zi=function(e){Ar(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Bi(r)&&r.add(n)):n.destination=Md,n}return t.create=function(r,n,o){return new So(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}(Jr),Id=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){tn(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){tn(n)}else tn(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){tn(r)}},e}(),So=function(e){Ar(t,e);function t(r,n,o){var s=e.call(this)||this,i;return ze(r)||!r?i={next:r??void 0,error:n??void 0,complete:o??void 0}:i=r,s.destination=new Id(i),s}return t}(zi);function tn(e){Ld(e)}function Nd(e){throw e}var Md={closed:!0,next:Wi,error:Nd,complete:Wi},$d=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Fd(e){return e}function Bd(e){return e.length===0?Fd:e.length===1?e[0]:function(r){return e.reduce(function(n,o){return o(n)},r)}}var Hi=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,s=Wd(t)?t:new So(t,r,n);return en(function(){var i=o,a=i.operator,l=i.source;s.add(a?a.call(s,l):l?o._subscribe(s):o._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=Vi(r),new r(function(o,s){var i=new So({next:function(a){try{t(a)}catch(l){s(l),i.unsubscribe()}},error:s,complete:o});n.subscribe(i)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[$d]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Bd(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Vi(t),new t(function(n,o){var s;r.subscribe(function(i){return s=i},function(i){return o(i)},function(){return n(s)})})},e.create=function(t){return new e(t)},e}();function Vi(e){var t;return(t=e??jd.Promise)!==null&&t!==void 0?t:Promise}function Ud(e){return e&&ze(e.next)&&ze(e.error)&&ze(e.complete)}function Wd(e){return e&&e instanceof zi||Ud(e)&&Bi(e)}var zd=$i(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Gi=function(e){Ar(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 qi(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new zd},t.prototype.next=function(r){var n=this;en(function(){var o,s;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var i=_o(n.currentObservers),a=i.next();!a.done;a=i.next()){var l=a.value;l.next(r)}}catch(u){o={error:u}}finally{try{a&&!a.done&&(s=i.return)&&s.call(i)}finally{if(o)throw o.error}}}})},t.prototype.error=function(r){var n=this;en(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;en(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,s=o.hasError,i=o.isStopped,a=o.observers;return s||i?Fi:(this.currentObservers=null,a.push(r),new Jr(function(){n.currentObservers=null,Eo(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,s=n.thrownError,i=n.isStopped;o?r.error(s):i&&r.complete()},t.prototype.asObservable=function(){var r=new Hi;return r.source=this,r},t.create=function(r,n){return new qi(r,n)},t}(Hi),qi=function(e){Ar(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:Fi},t}(Gi),Hd=function(e){Ar(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,s=r._value;if(n)throw o;return this._throwIfClosed(),s},t.prototype.next=function(r){e.prototype.next.call(this,this._value=r)},t}(Gi);const Vd=e=>{const{fontsLoaded:t}=Ni(e.fonts);Ii(e.styleSheet);const r=()=>{const n=new Hd(!0);window[co]=n};x.useEffect(()=>{t&&window[co].next(!1)},[t]),x.useEffect(()=>{r()},[])},Gd=()=>{const e=window[co];return di(e,e.getValue()??void 0)},To="theme",Qi=()=>document.documentElement.dataset[To]==="dark"?"dark":"light",qd=()=>{const[e,t]=x.useState(Qi());return x.useEffect(()=>{const r=document.documentElement,n=()=>t(Qi),o=new MutationObserver(s=>{for(const i of s)i.type==="attributes"&&i.attributeName===`data-${To}`&&n()});return o.observe(r,{attributes:!0,attributeFilter:[`data-${To}`]}),n(),()=>{o.disconnect()}},[]),e},Qd=e=>e!==void 0,Yd=e=>e!==!0;let Kd={data:""},Zd=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||Kd},Xd=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Jd=/\/\*[^]*?\*\/| +/g,Yi=/\n+/g,rt=(e,t)=>{let r="",n="",o="";for(let s in e){let i=e[s];s[0]=="@"?s[1]=="i"?r=s+" "+i+";":n+=s[1]=="f"?rt(i,s):s+"{"+rt(i,s[1]=="k"?"":t)+"}":typeof i=="object"?n+=rt(i,t?t.replace(/([^,])+/g,a=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):s):i!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=rt.p?rt.p(s,i):s+":"+i+";")}return r+(t&&o?t+"{"+o+"}":o)+n},He={},Ki=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+Ki(e[r]);return t}return e},ef=(e,t,r,n,o)=>{let s=Ki(e),i=He[s]||(He[s]=(l=>{let u=0,d=11;for(;u<l.length;)d=101*d+l.charCodeAt(u++)>>>0;return"go"+d})(s));if(!He[i]){let l=s!==e?e:(u=>{let d,p,h=[{}];for(;d=Xd.exec(u.replace(Jd,""));)d[4]?h.shift():d[3]?(p=d[3].replace(Yi," ").trim(),h.unshift(h[0][p]=h[0][p]||{})):h[0][d[1]]=d[2].replace(Yi," ").trim();return h[0]})(e);He[i]=rt(o?{["@keyframes "+i]:l}:l,r?"":"."+i)}let a=r&&He.g?He.g:null;return r&&(He.g=He[i]),((l,u,d,p)=>{p?u.data=u.data.replace(p,l):u.data.indexOf(l)===-1&&(u.data=d?l+u.data:u.data+l)})(He[i],t,n,a),i},tf=(e,t,r)=>e.reduce((n,o,s)=>{let i=t[s];if(i&&i.call){let a=i(r),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;i=l?"."+l:a&&typeof a=="object"?a.props?"":rt(a,""):a===!1?"":a}return n+o+(i??"")},"");function rn(e){let t=this||{},r=e.call?e(t.p):e;return ef(r.unshift?r.raw?tf(r,[].slice.call(arguments,1),t.p):r.reduce((n,o)=>Object.assign(n,o&&o.call?o(t.p):o),{}):r,Zd(t.target),t.g,t.o,t.k)}let Zi,Ao,Po;rn.bind({g:1});let Ve=rn.bind({k:1});function rf(e,t,r,n){rt.p=t,Zi=e,Ao=r,Po=n}function nt(e,t){let r=this||{};return function(){let n=arguments;function o(s,i){let a=Object.assign({},s),l=a.className||o.className;r.p=Object.assign({theme:Ao&&Ao()},a),r.o=/ *go\d+/.test(l),a.className=rn.apply(r,n)+(l?" "+l:"");let u=e;return e[0]&&(u=a.as||e,delete a.as),Po&&u[0]&&Po(a),Zi(u,a)}return o}}var nf=e=>typeof e=="function",nn=(e,t)=>nf(e)?e(t):e,of=(()=>{let e=0;return()=>(++e).toString()})(),Xi=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),sf=20,on=new Map,af=1e3,Ji=e=>{if(on.has(e))return;let t=setTimeout(()=>{on.delete(e),xt({type:4,toastId:e})},af);on.set(e,t)},lf=e=>{let t=on.get(e);t&&clearTimeout(t)},Oo=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,sf)};case 1:return t.toast.id&&lf(t.toast.id),{...e,toasts:e.toasts.map(s=>s.id===t.toast.id?{...s,...t.toast}:s)};case 2:let{toast:r}=t;return e.toasts.find(s=>s.id===r.id)?Oo(e,{type:1,toast:r}):Oo(e,{type:0,toast:r});case 3:let{toastId:n}=t;return n?Ji(n):e.toasts.forEach(s=>{Ji(s.id)}),{...e,toasts:e.toasts.map(s=>s.id===n||n===void 0?{...s,visible:!1}:s)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(s=>s.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(s=>({...s,pauseDuration:s.pauseDuration+o}))}}},sn=[],an={toasts:[],pausedAt:void 0},xt=e=>{an=Oo(an,e),sn.forEach(t=>{t(an)})},cf={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},uf=(e={})=>{let[t,r]=x.useState(an);x.useEffect(()=>(sn.push(r),()=>{let o=sn.indexOf(r);o>-1&&sn.splice(o,1)}),[t]);let n=t.toasts.map(o=>{var s,i;return{...e,...e[o.type],...o,duration:o.duration||((s=e[o.type])==null?void 0:s.duration)||(e==null?void 0:e.duration)||cf[o.type],style:{...e.style,...(i=e[o.type])==null?void 0:i.style,...o.style}}});return{...t,toasts:n}},df=(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)||of()}),Pr=e=>(t,r)=>{let n=df(t,e,r);return xt({type:2,toast:n}),n.id},be=(e,t)=>Pr("blank")(e,t);be.error=Pr("error"),be.success=Pr("success"),be.loading=Pr("loading"),be.custom=Pr("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(nn(t.success,o),{id:n,...r,...r==null?void 0:r.success}),o)).catch(o=>{be.error(nn(t.error,o),{id:n,...r,...r==null?void 0:r.error})}),e};var ff=(e,t)=>{xt({type:1,toast:{id:e,height:t}})},pf=()=>{xt({type:5,time:Date.now()})},hf=e=>{let{toasts:t,pausedAt:r}=uf(e);x.useEffect(()=>{if(r)return;let s=Date.now(),i=t.map(a=>{if(a.duration===1/0)return;let l=(a.duration||0)+a.pauseDuration-(s-a.createdAt);if(l<0){a.visible&&be.dismiss(a.id);return}return setTimeout(()=>be.dismiss(a.id),l)});return()=>{i.forEach(a=>a&&clearTimeout(a))}},[t,r]);let n=x.useCallback(()=>{r&&xt({type:6,time:Date.now()})},[r]),o=x.useCallback((s,i)=>{let{reverseOrder:a=!1,gutter:l=8,defaultPosition:u}=i||{},d=t.filter(g=>(g.position||u)===(s.position||u)&&g.height),p=d.findIndex(g=>g.id===s.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:ff,startPause:pf,endPause:n,calculateOffset:o}}},mf=Ve`
|
|
31
|
+
`);return r.innerHTML=o,document.head.appendChild(r),(async()=>{try{await Promise.all(e.flatMap(({fontFamily:i,variants:a})=>a.map(({fontWeight:l})=>document.fonts.load(`normal ${l} 1em "${i}"`))))}finally{n(!0)}})(),()=>{document.head.removeChild(r)}},[e]),S.useEffect(()=>{!t&&!(e!=null&&e.length)&&n(!0)},[e,t]),{fontsLoaded:t}}var Fo=function(e,t){return Fo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},Fo(e,t)};function qn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Fo(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ge=function(){return Ge=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Ge.apply(this,arguments)};function sa(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Bo(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Uo(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,s=[],i;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(a){i={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s}function yr(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function st(e){return typeof e=="function"}function ia(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Wo=ia(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
32
|
+
`+n.map(function(r,o){return o+1+") "+r.toString()}).join(`
|
|
33
|
+
`):"",this.name="UnsubscriptionError",this.errors=n}});function Ho(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var br=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,o,s;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=Bo(i),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(f){t={error:f}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else i.remove(this);var p=this.initialTeardown;if(st(p))try{p()}catch(f){s=f instanceof Wo?f.errors:[f]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var m=Bo(h),g=m.next();!g.done;g=m.next()){var x=g.value;try{ca(x)}catch(f){s=s??[],f instanceof Wo?s=yr(yr([],Uo(s)),Uo(f.errors)):s.push(f)}}}catch(f){r={error:f}}finally{try{g&&!g.done&&(o=m.return)&&o.call(m)}finally{if(r)throw r.error}}}if(s)throw new Wo(s)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)ca(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&Ho(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Ho(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),aa=br.EMPTY;function la(e){return e instanceof br||e&&"closed"in e&&st(e.remove)&&st(e.add)&&st(e.unsubscribe)}function ca(e){st(e)?e():e.unsubscribe()}var kf={Promise:void 0},Lf={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,yr([e,t],Uo(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Df(e){Lf.setTimeout(function(){throw e})}function ua(){}function wr(e){e()}var da=function(e){qn(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,la(n)&&n.add(r)):r.destination=$f,r}return t.create=function(n,r,o){return new Vo(n,r,o)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(br),Nf=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){_r(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){_r(r)}else _r(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){_r(n)}},e}(),Vo=function(e){qn(t,e);function t(n,r,o){var s=e.call(this)||this,i;return st(n)||!n?i={next:n??void 0,error:r??void 0,complete:o??void 0}:i=n,s.destination=new Nf(i),s}return t}(da);function _r(e){Df(e)}function Mf(e){throw e}var $f={closed:!0,next:ua,error:Mf,complete:ua},Ff=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Bf(e){return e}function Uf(e){return e.length===0?Bf:e.length===1?e[0]:function(n){return e.reduce(function(r,o){return o(r)},n)}}var fa=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var o=this,s=Hf(t)?t:new Vo(t,n,r);return wr(function(){var i=o,a=i.operator,l=i.source;s.add(a?a.call(s,l):l?o._subscribe(s):o._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=pa(n),new n(function(o,s){var i=new Vo({next:function(a){try{t(a)}catch(l){s(l),i.unsubscribe()}},error:s,complete:o});r.subscribe(i)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[Ff]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Uf(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=pa(t),new t(function(r,o){var s;n.subscribe(function(i){return s=i},function(i){return o(i)},function(){return r(s)})})},e.create=function(t){return new e(t)},e}();function pa(e){var t;return(t=e??kf.Promise)!==null&&t!==void 0?t:Promise}function Wf(e){return e&&st(e.next)&&st(e.error)&&st(e.complete)}function Hf(e){return e&&e instanceof da||Wf(e)&&la(e)}var Vf=ia(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ha=function(e){qn(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new ma(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new Vf},t.prototype.next=function(n){var r=this;wr(function(){var o,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var i=Bo(r.currentObservers),a=i.next();!a.done;a=i.next()){var l=a.value;l.next(n)}}catch(u){o={error:u}}finally{try{a&&!a.done&&(s=i.return)&&s.call(i)}finally{if(o)throw o.error}}}})},t.prototype.error=function(n){var r=this;wr(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var o=r.observers;o.length;)o.shift().error(n)}})},t.prototype.complete=function(){var n=this;wr(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,o=this,s=o.hasError,i=o.isStopped,a=o.observers;return s||i?aa:(this.currentObservers=null,a.push(n),new br(function(){r.currentObservers=null,Ho(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,o=r.hasError,s=r.thrownError,i=r.isStopped;o?n.error(s):i&&n.complete()},t.prototype.asObservable=function(){var n=new fa;return n.source=this,n},t.create=function(n,r){return new ma(n,r)},t}(fa),ma=function(e){qn(t,e);function t(n,r){var o=e.call(this)||this;return o.destination=n,o.source=r,o}return t.prototype.next=function(n){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,n)},t.prototype.error=function(n){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&o!==void 0?o:aa},t}(ha),zf=function(e){qn(t,e);function t(n){var r=e.call(this)||this;return r._value=n,r}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(n){var r=e.prototype._subscribe.call(this,n);return!r.closed&&n.next(this._value),r},t.prototype.getValue=function(){var n=this,r=n.hasError,o=n.thrownError,s=n._value;if(r)throw o;return this._throwIfClosed(),s},t.prototype.next=function(n){e.prototype.next.call(this,this._value=n)},t}(ha);const Gf=e=>{const{fontsLoaded:t}=oa(e.fonts);ra(e.styleSheet);const n=()=>{const r=new zf(!0);window[Ro]=r};S.useEffect(()=>{t&&window[Ro].next(!1)},[t]),S.useEffect(()=>{n()},[])},qf=()=>{const e=window[Ro];return ki(e,e.getValue()??void 0)},zo="theme",ga=()=>document.documentElement.dataset[zo]==="dark"?"dark":"light",Kf=()=>{const[e,t]=S.useState(ga());return S.useEffect(()=>{const n=document.documentElement,r=()=>t(ga),o=new MutationObserver(s=>{for(const i of s)i.type==="attributes"&&i.attributeName===`data-${zo}`&&r()});return o.observe(n,{attributes:!0,attributeFilter:[`data-${zo}`]}),r(),()=>{o.disconnect()}},[]),e},Qf=e=>e!==void 0,Yf=e=>e!==!0;let Zf={data:""},Xf=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||Zf},Jf=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,ep=/\/\*[^]*?\*\/| +/g,va=/\n+/g,yt=(e,t)=>{let n="",r="",o="";for(let s in e){let i=e[s];s[0]=="@"?s[1]=="i"?n=s+" "+i+";":r+=s[1]=="f"?yt(i,s):s+"{"+yt(i,s[1]=="k"?"":t)+"}":typeof i=="object"?r+=yt(i,t?t.replace(/([^,])+/g,a=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):s):i!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=yt.p?yt.p(s,i):s+":"+i+";")}return n+(t&&o?t+"{"+o+"}":o)+r},it={},ya=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+ya(e[n]);return t}return e},tp=(e,t,n,r,o)=>{let s=ya(e),i=it[s]||(it[s]=(l=>{let u=0,p=11;for(;u<l.length;)p=101*p+l.charCodeAt(u++)>>>0;return"go"+p})(s));if(!it[i]){let l=s!==e?e:(u=>{let p,h,m=[{}];for(;p=Jf.exec(u.replace(ep,""));)p[4]?m.shift():p[3]?(h=p[3].replace(va," ").trim(),m.unshift(m[0][h]=m[0][h]||{})):m[0][p[1]]=p[2].replace(va," ").trim();return m[0]})(e);it[i]=yt(o?{["@keyframes "+i]:l}:l,n?"":"."+i)}let a=n&&it.g?it.g:null;return n&&(it.g=it[i]),((l,u,p,h)=>{h?u.data=u.data.replace(h,l):u.data.indexOf(l)===-1&&(u.data=p?l+u.data:u.data+l)})(it[i],t,r,a),i},np=(e,t,n)=>e.reduce((r,o,s)=>{let i=t[s];if(i&&i.call){let a=i(n),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;i=l?"."+l:a&&typeof a=="object"?a.props?"":yt(a,""):a===!1?"":a}return r+o+(i??"")},"");function xr(e){let t=this||{},n=e.call?e(t.p):e;return tp(n.unshift?n.raw?np(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,Xf(t.target),t.g,t.o,t.k)}let ba,Go,qo;xr.bind({g:1});let at=xr.bind({k:1});function rp(e,t,n,r){yt.p=t,ba=e,Go=n,qo=r}function bt(e,t){let n=this||{};return function(){let r=arguments;function o(s,i){let a=Object.assign({},s),l=a.className||o.className;n.p=Object.assign({theme:Go&&Go()},a),n.o=/ *go\d+/.test(l),a.className=xr.apply(n,r)+(l?" "+l:"");let u=e;return e[0]&&(u=a.as||e,delete a.as),qo&&u[0]&&qo(a),ba(u,a)}return o}}var op=e=>typeof e=="function",Cr=(e,t)=>op(e)?e(t):e,sp=(()=>{let e=0;return()=>(++e).toString()})(),wa=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),ip=20,Sr=new Map,ap=1e3,_a=e=>{if(Sr.has(e))return;let t=setTimeout(()=>{Sr.delete(e),Vt({type:4,toastId:e})},ap);Sr.set(e,t)},lp=e=>{let t=Sr.get(e);t&&clearTimeout(t)},Ko=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,ip)};case 1:return t.toast.id&&lp(t.toast.id),{...e,toasts:e.toasts.map(s=>s.id===t.toast.id?{...s,...t.toast}:s)};case 2:let{toast:n}=t;return e.toasts.find(s=>s.id===n.id)?Ko(e,{type:1,toast:n}):Ko(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?_a(r):e.toasts.forEach(s=>{_a(s.id)}),{...e,toasts:e.toasts.map(s=>s.id===r||r===void 0?{...s,visible:!1}:s)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(s=>s.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(s=>({...s,pauseDuration:s.pauseDuration+o}))}}},Er=[],Tr={toasts:[],pausedAt:void 0},Vt=e=>{Tr=Ko(Tr,e),Er.forEach(t=>{t(Tr)})},cp={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},up=(e={})=>{let[t,n]=S.useState(Tr);S.useEffect(()=>(Er.push(n),()=>{let o=Er.indexOf(n);o>-1&&Er.splice(o,1)}),[t]);let r=t.toasts.map(o=>{var s,i;return{...e,...e[o.type],...o,duration:o.duration||((s=e[o.type])==null?void 0:s.duration)||(e==null?void 0:e.duration)||cp[o.type],style:{...e.style,...(i=e[o.type])==null?void 0:i.style,...o.style}}});return{...t,toasts:r}},dp=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||sp()}),Kn=e=>(t,n)=>{let r=dp(t,e,n);return Vt({type:2,toast:r}),r.id},Re=(e,t)=>Kn("blank")(e,t);Re.error=Kn("error"),Re.success=Kn("success"),Re.loading=Kn("loading"),Re.custom=Kn("custom"),Re.dismiss=e=>{Vt({type:3,toastId:e})},Re.remove=e=>Vt({type:4,toastId:e}),Re.promise=(e,t,n)=>{let r=Re.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(o=>(Re.success(Cr(t.success,o),{id:r,...n,...n==null?void 0:n.success}),o)).catch(o=>{Re.error(Cr(t.error,o),{id:r,...n,...n==null?void 0:n.error})}),e};var fp=(e,t)=>{Vt({type:1,toast:{id:e,height:t}})},pp=()=>{Vt({type:5,time:Date.now()})},hp=e=>{let{toasts:t,pausedAt:n}=up(e);S.useEffect(()=>{if(n)return;let s=Date.now(),i=t.map(a=>{if(a.duration===1/0)return;let l=(a.duration||0)+a.pauseDuration-(s-a.createdAt);if(l<0){a.visible&&Re.dismiss(a.id);return}return setTimeout(()=>Re.dismiss(a.id),l)});return()=>{i.forEach(a=>a&&clearTimeout(a))}},[t,n]);let r=S.useCallback(()=>{n&&Vt({type:6,time:Date.now()})},[n]),o=S.useCallback((s,i)=>{let{reverseOrder:a=!1,gutter:l=8,defaultPosition:u}=i||{},p=t.filter(g=>(g.position||u)===(s.position||u)&&g.height),h=p.findIndex(g=>g.id===s.id),m=p.filter((g,x)=>x<h&&g.visible).length;return p.filter(g=>g.visible).slice(...a?[m+1]:[0,m]).reduce((g,x)=>g+(x.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:fp,startPause:pp,endPause:r,calculateOffset:o}}},mp=at`
|
|
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
|
+
}`,gp=at`
|
|
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
|
+
}`,vp=at`
|
|
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
|
+
}`,yp=bt("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: ${mp} 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: ${gp} 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: ${vp} 0.15s ease-out forwards;
|
|
87
87
|
animation-delay: 180ms;
|
|
88
88
|
transform: rotate(90deg);
|
|
89
89
|
}
|
|
90
|
-
`,
|
|
90
|
+
`,bp=at`
|
|
91
91
|
from {
|
|
92
92
|
transform: rotate(0deg);
|
|
93
93
|
}
|
|
94
94
|
to {
|
|
95
95
|
transform: rotate(360deg);
|
|
96
96
|
}
|
|
97
|
-
`,
|
|
97
|
+
`,wp=bt("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: ${bp} 1s linear infinite;
|
|
106
|
+
`,_p=at`
|
|
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
|
+
}`,xp=at`
|
|
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
|
+
}`,Cp=bt("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: ${_p} 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: ${xp} 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
|
-
`,
|
|
155
|
+
`,Sp=bt("div")`
|
|
156
156
|
position: absolute;
|
|
157
|
-
`,
|
|
157
|
+
`,Ep=bt("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
|
+
`,Tp=at`
|
|
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
|
+
}`,Pp=bt("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: ${Tp} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
178
178
|
forwards;
|
|
179
|
-
`,
|
|
179
|
+
`,Ap=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?d.createElement(Pp,null,t):t:n==="blank"?null:d.createElement(Ep,null,d.createElement(wp,{...r}),n!=="loading"&&d.createElement(Sp,null,n==="error"?d.createElement(yp,{...r}):d.createElement(Cp,{...r})))},Rp=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
|
+
`,Op=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
|
+
`,Ip="0%{opacity:0;} 100%{opacity:1;}",jp="0%{opacity:1;} 100%{opacity:0;}",kp=bt("div")`
|
|
186
186
|
display: flex;
|
|
187
187
|
align-items: center;
|
|
188
188
|
background: #fff;
|
|
@@ -194,60 +194,60 @@ to {
|
|
|
194
194
|
pointer-events: auto;
|
|
195
195
|
padding: 8px 10px;
|
|
196
196
|
border-radius: 8px;
|
|
197
|
-
`,
|
|
197
|
+
`,Lp=bt("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
|
+
`,Dp=(e,t)=>{let n=e.includes("top")?1:-1,[r,o]=wa()?[Ip,jp]:[Rp(n),Op(n)];return{animation:t?`${at(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${at(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},Np=d.memo(({toast:e,position:t,style:n,children:r})=>{let o=e.height?Dp(e.position||t||"top-center",e.visible):{opacity:0},s=d.createElement(Ap,{toast:e}),i=d.createElement(Lp,{...e.ariaProps},Cr(e.message,e));return d.createElement(kp,{className:e.className,style:{...o,...n,...e.style}},typeof r=="function"?r({icon:s,message:i}):d.createElement(d.Fragment,null,s,i))});rp(d.createElement);var Mp=({id:e,className:t,style:n,onHeightUpdate:r,children:o})=>{let s=d.useCallback(i=>{if(i){let a=()=>{let l=i.getBoundingClientRect().height;r(e,l)};a(),new MutationObserver(a).observe(i,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return d.createElement("div",{ref:s,className:t,style:n},o)},$p=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:wa()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}},Fp=xr`
|
|
205
205
|
z-index: 9999;
|
|
206
206
|
> * {
|
|
207
207
|
pointer-events: auto;
|
|
208
208
|
}
|
|
209
|
-
`,ln=16,Bf=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:n,children:o,containerStyle:s,containerClassName:i})=>{let{toasts:a,handlers:l}=hf(r);return m.createElement("div",{style:{position:"fixed",zIndex:9999,top:ln,left:ln,right:ln,bottom:ln,pointerEvents:"none",...s},className:i,onMouseEnter:l.startPause,onMouseLeave:l.endPause},a.map(u=>{let d=u.position||t,p=l.calculateOffset(u,{reverseOrder:e,gutter:n,defaultPosition:t}),h=$f(d,p);return m.createElement(Mf,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?Ff:"",style:h},u.type==="custom"?nn(u.message,u):o?o(u):m.createElement(Nf,{toast:u,position:d}))}))},ea=be;const Ro=()=>({notify:x.useCallback((t,r,n)=>{const o={style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}};r==="warning"||r==="info"?ea(t,{...o,icon:r==="warning"?"⚠️":"ℹ️"}):ea[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 Uf(e,t){return typeof e=="function"?e(t):e}function ko(e){return typeof e=="number"&&e>=0&&e!==1/0}function ta(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 ra(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(n){if(t.queryHash!==jo(i,t.options))return!1}else if(!Or(t.queryKey,i))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||s&&!s(t))}function na(e,t){const{exact:r,status:n,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(r){if(St(t.options.mutationKey)!==St(s))return!1}else if(!Or(t.options.mutationKey,s))return!1}return!(n&&t.state.status!==n||o&&!o(t))}function jo(e,t){return((t==null?void 0:t.queryKeyHashFn)||St)(e)}function St(e){return JSON.stringify(e,(t,r)=>Lo(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):r)}function Or(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Or(e[r],t[r])):!1}function Do(e,t){if(e===t)return e;const r=oa(e)&&oa(t);if(r||Lo(e)&&Lo(t)){const n=r?e:Object.keys(e),o=n.length,s=r?t:Object.keys(t),i=s.length,a=r?[]:{};let l=0;for(let u=0;u<i;u++){const d=r?u:s[u];(!r&&n.includes(d)||r)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,l++):(a[d]=Do(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&l++)}return o===i&&l===o?e:a}return t}function cn(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 oa(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Lo(e){if(!sa(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!sa(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function sa(e){return Object.prototype.toString.call(e)==="[object Object]"}function Wf(e){return new Promise(t=>{setTimeout(t,e)})}function Io(e,t,r){if(typeof r.structuralSharing=="function")return r.structuralSharing(e,t);if(r.structuralSharing!==!1){try{return Do(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 Do(e,t)}return t}function zf(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function Hf(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var un=Symbol();function ia(e,t){return e.queryFn===un&&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===un?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function aa(e,t){return typeof e=="function"?e(...t):!!e}var Vf=(_u=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,_u),No=new Vf,Gf=(Cu=class extends Vt{constructor(){super();L(this,or,!0);L(this,dt);L(this,sr);k(this,sr,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,sr))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,dt))==null||t.call(this),k(this,dt,void 0))}setEventListener(t){var r;k(this,sr,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,sr=new WeakMap,Cu),dn=new Gf;function Mo(){let e,t;const r=new Promise((o,s)=>{e=o,t=s});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 qf(e){return Math.min(1e3*2**e,3e4)}function la(e){return(e??"online")==="online"?dn.isOnline():!0}var ca=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function $o(e){return e instanceof ca}function ua(e){let t=!1,r=0,n=!1,o;const s=Mo(),i=f=>{var v;n||(h(new ca(f)),(v=e.abort)==null||v.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>No.isFocused()&&(e.networkMode==="always"||dn.isOnline())&&e.canRun(),d=()=>la(e.networkMode)&&e.canRun(),p=f=>{var v;n||(n=!0,(v=e.onSuccess)==null||v.call(e,f),o==null||o(),s.resolve(f))},h=f=>{var v;n||(n=!0,(v=e.onError)==null||v.call(e,f),o==null||o(),s.reject(f))},g=()=>new Promise(f=>{var v;o=_=>{(n||u())&&f(_)},(v=e.onPause)==null||v.call(e)}).then(()=>{var f;o=void 0,n||(f=e.onContinue)==null||f.call(e)}),w=()=>{if(n)return;let f;const v=r===0?e.initialPromise:void 0;try{f=v??e.fn()}catch(_){f=Promise.reject(_)}Promise.resolve(f).then(p).catch(_=>{var R;if(n)return;const C=e.retry??(Et?0:3),T=e.retryDelay??qf,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,_),Wf(S).then(()=>u()?void 0:g()).then(()=>{t?h(_):w()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?w():g().then(w),s)}}var Qf=e=>setTimeout(e,0);function Yf(){let e=[],t=0,r=a=>{a()},n=a=>{a()},o=Qf;const s=a=>{t?e.push(a):o(()=>{r(a)})},i=()=>{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||i()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{r=a},setBatchNotifyFunction:a=>{n=a},setScheduler:a=>{o=a}}}var oe=Yf(),da=(xu=class{constructor(){L(this,jt)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ko(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,xu),Kf=(Eu=class extends da{constructor(t){super();L(this,ke);L(this,ir);L(this,ar);L(this,xe);L(this,Dt);L(this,le);L(this,Ur);L(this,Lt);k(this,Lt,!1),k(this,Ur,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,ir,Zf(this.options)),this.state=t.state??b(this,ir),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,Ur),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&b(this,xe).remove(this)}setData(t,r){const n=Io(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,ir))}isActive(){return this.observers.some(t=>Se(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===un||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:!ta(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 u,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)})},s=()=>{const h=ia(this.options,r),w=(()=>{const f={client:b(this,Dt),queryKey:this.queryKey,meta:this.meta};return o(f),f})();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:s};return o(h),h})();(u=this.options.behavior)==null||u.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,f,v;$o(h)&&h.silent||F(this,ke,Je).call(this,{type:"error",error:h}),$o(h)||((w=(g=b(this,xe).config).onError)==null||w.call(g,h,this),(v=(f=b(this,xe).config).onSettled)==null||v.call(f,this.state.data,h,this)),this.scheduleGc()};return k(this,le,ua({initialPromise:r==null?void 0:r.initialPromise,fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:h=>{var g,w,f,v;if(h===void 0){console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),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),(v=(f=b(this,xe).config).onSettled)==null||v.call(f,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()}},ir=new WeakMap,ar=new WeakMap,xe=new WeakMap,Dt=new WeakMap,le=new WeakMap,Ur=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,...fa(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 $o(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})})},Eu);function fa(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:la(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Zf(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 Xf=(Su=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,s=r.queryHash??jo(o,r);let i=this.get(s);return i||(i=new Kf({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}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=>ra(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>ra(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,Su),Jf=(Tu=class extends da{constructor(t){super();L(this,We);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||pa(),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 s,i,a,l,u,d,p,h,g,w,f,v,_,C,T,S,A,R,O,$;const r=()=>{F(this,We,wt).call(this,{type:"continue"})};k(this,It,ua({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(N,I)=>{F(this,We,wt).call(this,{type:"failed",failureCount:N,error:I})},onPause:()=>{F(this,We,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,We,wt).call(this,{type:"pending",variables:t,isPaused:o}),await((i=(s=b(this,ue).config).onMutate)==null?void 0:i.call(s,t,this));const I=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));I!==this.state.context&&F(this,We,wt).call(this,{type:"pending",context:I,variables:t,isPaused:o})}const N=await b(this,It).start();return await((d=(u=b(this,ue).config).onSuccess)==null?void 0:d.call(u,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((v=(f=this.options).onSettled)==null?void 0:v.call(f,N,null,t,this.state.context)),F(this,We,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(($=(O=this.options).onSettled)==null?void 0:$.call(O,void 0,N,t,this.state.context)),N}finally{F(this,We,wt).call(this,{type:"error",error:N})}}finally{b(this,ue).runNext(this)}}},Ue=new WeakMap,ue=new WeakMap,It=new WeakMap,We=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})})},Tu);function pa(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ep=(Au=class extends Vt{constructor(t={}){super();L(this,Ye);L(this,je);L(this,Wr);this.config=t,k(this,Ye,new Set),k(this,je,new Map),k(this,Wr,0)}build(t,r,n){const o=new Jf({mutationCache:this,mutationId:++ao(this,Wr)._,options:t.defaultMutationOptions(r),state:n});return this.add(o),o}add(t){b(this,Ye).add(t);const r=fn(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=fn(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=fn(t);if(typeof r=="string"){const n=b(this,je).get(r),o=n==null?void 0:n.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var n;const r=fn(t);if(typeof r=="string"){const o=(n=b(this,je).get(r))==null?void 0:n.find(s=>s!==t&&s.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=>na(r,n))}findAll(t={}){return this.getAll().filter(r=>na(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,Wr=new WeakMap,Au);function fn(e){var t;return(t=e.options.scope)==null?void 0:t.id}function ha(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,s=((g=t.state.data)==null?void 0:g.pages)||[],i=((w=t.state.data)==null?void 0:w.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let f=!1;const v=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(t.signal.aborted?f=!0:t.signal.addEventListener("abort",()=>{f=!0}),t.signal)})},_=ia(t.options,t.fetchOptions),C=async(T,S,A)=>{if(f)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 v(G),G})(),$=await _(O),{maxPages:N}=t.options,I=A?Hf:zf;return{pages:I(T.pages,$,N),pageParams:I(T.pageParams,S,N)}};if(o&&s.length){const T=o==="backward",S=T?tp:ma,A={pages:s,pageParams:i},R=S(n,A);a=await C(A,R,T)}else{const T=e??s.length;do{const S=l===0?i[0]??n.initialPageParam:ma(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 f,v;return(v=(f=t.options).persister)==null?void 0:v.call(f,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=u}}}function ma(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 tp(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 rp=(Pu=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 Xf),k(this,ft,e.mutationCache||new ep),k(this,pt,e.defaultOptions||{}),k(this,lr,new Map),k(this,cr,new Map),k(this,ht,0)}mount(){ao(this,ht)._++,b(this,ht)===1&&(k(this,ur,No.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,X).onFocus())})),k(this,dr,dn.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,X).onOnline())})))}unmount(){var e,t;ao(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),s=o==null?void 0:o.state.data,i=Uf(t,s);if(i!==void 0)return b(this,X).build(this,n).setData(i,{...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 s=o.fetch(void 0,r);return r.throwOnError||(s=s.catch(ce)),o.state.fetchStatus==="paused"?Promise.resolve():s}));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=ha(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ce).catch(ce)}ensureInfiniteQueryData(e){return e.behavior=ha(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return dn.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=>{Or(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=>{Or(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=jo(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===un&&(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,Pu),np=(Ou=class extends Vt{constructor(t,r){super();L(this,V);L(this,ge);L(this,W);L(this,zr);L(this,de);L(this,Nt);L(this,fr);L(this,mt);L(this,gt);L(this,Hr);L(this,pr);L(this,hr);L(this,Mt);L(this,$t);L(this,vt);L(this,mr,new Set);this.options=r,k(this,ge,t),k(this,gt,null),k(this,mt,Mo()),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,W).addObserver(this),ga(b(this,W),this.options)?F(this,V,qr).call(this):this.updateResult(),F(this,V,ri).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Fo(b(this,W),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Fo(b(this,W),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,F(this,V,ni).call(this),F(this,V,oi).call(this),b(this,W).removeObserver(this)}setOptions(t){const r=this.options,n=b(this,W);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,W))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");F(this,V,si).call(this),b(this,W).setOptions(this.options),r._defaulted&&!cn(this.options,r)&&b(this,ge).getQueryCache().notify({type:"observerOptionsUpdated",query:b(this,W),observer:this});const o=this.hasListeners();o&&va(b(this,W),n,this.options,r)&&F(this,V,qr).call(this),this.updateResult(),o&&(b(this,W)!==n||Se(this.options.enabled,b(this,W))!==Se(r.enabled,b(this,W))||ot(this.options.staleTime,b(this,W))!==ot(r.staleTime,b(this,W)))&&F(this,V,Js).call(this);const s=F(this,V,ei).call(this);o&&(b(this,W)!==n||Se(this.options.enabled,b(this,W))!==Se(r.enabled,b(this,W))||s!==b(this,vt))&&F(this,V,ti).call(this,s)}getOptimisticResult(t){const r=b(this,ge).getQueryCache().build(b(this,ge),t),n=this.createResult(r,t);return sp(this,n)&&(k(this,de,n),k(this,fr,this.options),k(this,Nt,b(this,W).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,W)}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,qr).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),b(this,de)))}createResult(t,r){var N;const n=b(this,W),o=this.options,s=b(this,de),i=b(this,Nt),a=b(this,fr),u=t!==n?t.state:b(this,zr),{state:d}=t;let p={...d},h=!1,g;if(r._optimisticResults){const I=this.hasListeners(),G=!I&&ga(t,r),Y=I&&va(t,n,r,o);(G||Y)&&(p={...p,...fa(d.data,t.options)}),r._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:w,errorUpdatedAt:f,status:v}=p;g=p.data;let _=!1;if(r.placeholderData!==void 0&&g===void 0&&v==="pending"){let I;s!=null&&s.isPlaceholderData&&r.placeholderData===(a==null?void 0:a.placeholderData)?(I=s.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&&(v="success",g=Io(s==null?void 0:s.data,I,r),h=!0)}if(r.select&&g!==void 0&&!_)if(s&&g===(i==null?void 0:i.data)&&r.select===b(this,Hr))g=b(this,pr);else try{k(this,Hr,r.select),g=r.select(g),g=Io(s==null?void 0:s.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),f=Date.now(),v="error");const C=p.fetchStatus==="fetching",T=v==="pending",S=v==="error",A=T&&C,R=g!==void 0,$={status:v,fetchStatus:p.fetchStatus,isPending:T,isSuccess:v==="success",isError:S,isInitialLoading:A,isLoading:A,data:g,dataUpdatedAt:p.dataUpdatedAt,error:w,errorUpdatedAt:f,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>u.dataUpdateCount||p.errorUpdateCount>u.errorUpdateCount,isFetching:C,isRefetching:C&&!T,isLoadingError:S&&!R,isPaused:p.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:S&&R,isStale:Bo(t,r),refetch:this.refetch,promise:b(this,mt)};if(this.options.experimental_prefetchInRender){const I=H=>{$.status==="error"?H.reject($.error):$.data!==void 0&&H.resolve($.data)},G=()=>{const H=k(this,mt,$.promise=Mo());I(H)},Y=b(this,mt);switch(Y.status){case"pending":t.queryHash===n.queryHash&&I(Y);break;case"fulfilled":($.status==="error"||$.data!==Y.value)&&G();break;case"rejected":($.status!=="error"||$.error!==Y.reason)&&G();break}}return $}updateResult(){const t=b(this,de),r=this.createResult(b(this,W),this.options);if(k(this,Nt,b(this,W).state),k(this,fr,this.options),b(this,Nt).data!==void 0&&k(this,hr,b(this,W)),cn(r,t))return;k(this,de,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!b(this,mr).size)return!0;const i=new Set(s??b(this,mr));return this.options.throwOnError&&i.add("error"),Object.keys(b(this,de)).some(a=>{const l=a;return b(this,de)[l]!==t[l]&&i.has(l)})};F(this,V,Hu).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&F(this,V,ri).call(this)}},ge=new WeakMap,W=new WeakMap,zr=new WeakMap,de=new WeakMap,Nt=new WeakMap,fr=new WeakMap,mt=new WeakMap,gt=new WeakMap,Hr=new WeakMap,pr=new WeakMap,hr=new WeakMap,Mt=new WeakMap,$t=new WeakMap,vt=new WeakMap,mr=new WeakMap,V=new WeakSet,qr=function(t){F(this,V,si).call(this);let r=b(this,W).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(ce)),r},Js=function(){F(this,V,ni).call(this);const t=ot(this.options.staleTime,b(this,W));if(Et||b(this,de).isStale||!ko(t))return;const n=ta(b(this,de).dataUpdatedAt,t)+1;k(this,Mt,setTimeout(()=>{b(this,de).isStale||this.updateResult()},n))},ei=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(b(this,W)):this.options.refetchInterval)??!1},ti=function(t){F(this,V,oi).call(this),k(this,vt,t),!(Et||Se(this.options.enabled,b(this,W))===!1||!ko(b(this,vt))||b(this,vt)===0)&&k(this,$t,setInterval(()=>{(this.options.refetchIntervalInBackground||No.isFocused())&&F(this,V,qr).call(this)},b(this,vt)))},ri=function(){F(this,V,Js).call(this),F(this,V,ti).call(this,F(this,V,ei).call(this))},ni=function(){b(this,Mt)&&(clearTimeout(b(this,Mt)),k(this,Mt,void 0))},oi=function(){b(this,$t)&&(clearInterval(b(this,$t)),k(this,$t,void 0))},si=function(){const t=b(this,ge).getQueryCache().build(b(this,ge),this.options);if(t===b(this,W))return;const r=b(this,W);k(this,W,t),k(this,zr,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},Hu=function(t){oe.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(b(this,de))}),b(this,ge).getQueryCache().notify({query:b(this,W),type:"observerResultsUpdated"})})},Ou);function op(e,t){return Se(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ga(e,t){return op(e,t)||e.state.data!==void 0&&Fo(e,t,t.refetchOnMount)}function Fo(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&&Bo(e,t)}return!1}function va(e,t,r,n){return(e!==t||Se(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&Bo(e,r)}function Bo(e,t){return Se(t.enabled,e)!==!1&&e.isStaleByTime(ot(t.staleTime,e))}function sp(e,t){return!cn(e.getCurrentResult(),t)}var ip=(Ru=class extends Vt{constructor(r,n){super();L(this,Ze);L(this,yt);L(this,bt);L(this,ve);L(this,Ke);k(this,yt,r),this.setOptions(n),this.bindMethods(),F(this,Ze,lo).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,yt).defaultMutationOptions(r),cn(this.options,n)||b(this,yt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:b(this,ve),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&St(n.mutationKey)!==St(this.options.mutationKey)?this.reset():((o=b(this,ve))==null?void 0:o.state.status)==="pending"&&b(this,ve).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=b(this,ve))==null||r.removeObserver(this)}onMutationUpdate(r){F(this,Ze,lo).call(this),F(this,Ze,ii).call(this,r)}getCurrentResult(){return b(this,bt)}reset(){var r;(r=b(this,ve))==null||r.removeObserver(this),k(this,ve,void 0),F(this,Ze,lo).call(this),F(this,Ze,ii).call(this)}mutate(r,n){var o;return k(this,Ke,n),(o=b(this,ve))==null||o.removeObserver(this),k(this,ve,b(this,yt).getMutationCache().build(b(this,yt),this.options)),b(this,ve).addObserver(this),b(this,ve).execute(r)}},yt=new WeakMap,bt=new WeakMap,ve=new WeakMap,Ke=new WeakMap,Ze=new WeakSet,lo=function(){var n;const r=((n=b(this,ve))==null?void 0:n.state)??pa();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})},ii=function(r){oe.batch(()=>{var n,o,s,i,a,l,u,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),(i=(s=b(this,Ke)).onSettled)==null||i.call(s,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=(u=b(this,Ke)).onSettled)==null||d.call(u,void 0,r.error,p,h))}this.listeners.forEach(p=>{p(b(this,bt))})})},Ru),ya=m.createContext(void 0),Uo=e=>{const t=m.useContext(ya);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},ap=({client:e,children:t})=>(m.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(ya.Provider,{value:e,children:t})),ba=m.createContext(!1),lp=()=>m.useContext(ba);ba.Provider;function cp(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var up=m.createContext(cp()),dp=()=>m.useContext(up),fp=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},pp=e=>{m.useEffect(()=>{e.clearReset()},[e])},hp=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(o&&e.data===void 0||aa(r,[e.error,n])),mp=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))}},gp=(e,t)=>e.isLoading&&e.isFetching&&!t,vp=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,wa=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function yp(e,t,r){var p,h,g,w,f;if(typeof e!="object"||Array.isArray(e))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const n=lp(),o=dp(),s=Uo(),i=s.defaultQueryOptions(e);(h=(p=s.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||h.call(p,i),i.queryFn||console.error(`[${i.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`),i._optimisticResults=n?"isRestoring":"optimistic",mp(i),fp(i,o),pp(o);const a=!s.getQueryCache().get(i.queryHash),[l]=m.useState(()=>new t(s,i)),u=l.getOptimisticResult(i),d=!n&&e.subscribed!==!1;if(m.useSyncExternalStore(m.useCallback(v=>{const _=d?l.subscribe(oe.batchCalls(v)):ce;return l.updateResult(),_},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),m.useEffect(()=>{l.setOptions(i)},[i,l]),vp(i,u))throw wa(i,l,o);if(hp({result:u,errorResetBoundary:o,throwOnError:i.throwOnError,query:s.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw u.error;if((w=(g=s.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||w.call(g,i,u),i.experimental_prefetchInRender&&!Et&&gp(u,n)){const v=a?wa(i,l,o):(f=s.getQueryCache().get(i.queryHash))==null?void 0:f.promise;v==null||v.catch(ce).finally(()=>{l.updateResult()})}return i.notifyOnChangeProps?u:l.trackResult(u)}function _a(e,t){return yp(e,np)}function pn(e,t){const r=Uo(),[n]=m.useState(()=>new ip(r,e));m.useEffect(()=>{n.setOptions(e)},[n,e]);const o=m.useSyncExternalStore(m.useCallback(i=>n.subscribe(oe.batchCalls(i)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),s=m.useCallback((i,a)=>{n.mutate(i,a).catch(ce)},[n]);if(o.error&&aa(n.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}const hn={STALE_TIME:1e3*60*5,GC_TIME:1e3*60*10,RETRY_COUNT:1,RETRY_DELAY:1e3},Ca={refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,staleTime:hn.STALE_TIME,gcTime:hn.GC_TIME,retry:hn.RETRY_COUNT,retryDelay:hn.RETRY_DELAY,enable:!0},mn=e=>e instanceof Error?e.message:String(e),xa=(e,t,r)=>{const n=Uo(),{notify:o}=Ro(),{createFn:s,readFn:i,readByIdFn:a,updateFn:l,deleteFn:u,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=>pn({mutationFn:A=>s(A),onSuccess:A=>{p(),h(t,A,`${t} created successfully`,S)},onError:A=>{g(t,A,`Error creating ${t}: ${mn(A)}`,S)}}),useReadQuery:S=>_a({queryKey:[e],queryFn:i,...Ca,...S}),useReadByIdQuery:(S,A)=>_a({queryKey:[e,S],queryFn:()=>a(S),...Ca,enabled:!!S,...A}),useUpdate:S=>pn({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}: ${mn(A)}`,S)}}),usePartialUpdate:S=>d&&pn({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}: ${mn(A)}`,S)}}),useDelete:S=>pn({mutationFn:A=>u(A),onSuccess:()=>{p(),h(t,null,`${t} deleted successfully`,S)},onError:A=>{g(t,A,`Error deleting ${t}: ${mn(A)}`,S)}}),invalidateQueries:p}},bp=(e,t)=>xa(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())}),wp={SINGLE_TENANT:"single-tenant"},_p={COOKIE:"cookie"},Wo="tenant",Ea="tenant",Sa="tenant",Cp=wp.SINGLE_TENANT,xp=_p.COOKIE,Ep={mode:Cp,clientSideMode:xp,tenantIDPProvisioningStrategy:"none"};class Sp{setTenant(t,r){const n=new URL(window.location.href);n.searchParams.set(Ea,t.name),window.location.href=n.toString()}getCurrentTenantName(){const t=new URL(window.location.href);return new URLSearchParams(t.search).get(Ea)}}class Tp{setTenant(t,r){sessionStorage.setItem(Sa,t.name),window.location.reload()}getCurrentTenantName(){return sessionStorage.getItem(Sa)}}/*! js-cookie v3.0.5 | MIT */function gn(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 Ap={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 zo(e,t){function r(o,s,i){if(!(typeof document>"u")){i=gn({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in i)i[l]&&(a+="; "+l,i[l]!==!0&&(a+="="+i[l].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+a}}function n(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],i={},a=0;a<s.length;a++){var l=s[a].split("="),u=l.slice(1).join("=");try{var d=decodeURIComponent(l[0]);if(i[d]=e.read(u,d),o===d)break}catch{}}return o?i[o]:i}}return Object.create({set:r,get:n,remove:function(o,s){r(o,"",gn({},s,{expires:-1}))},withAttributes:function(o){return zo(this.converter,gn({},this.attributes,o))},withConverter:function(o){return zo(gn({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Ho=zo(Ap,{path:"/"});class Pp{setTenant(t,r){t?Ho.set(Wo,t.name):Ho.remove(Wo),window.location.reload()}getCurrentTenantName(){return Ho.get(Wo)}}class Op{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 u;const n=(u=r.urlPatterns)==null?void 0:u.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),s=n.patternValue,i=o.hostname,a=this.getBaseDomain(i),l=s?`${s}.${a}`:a;o.hostname=l,window.location.href=o.toString()}getCurrentTenantName(){const t=window.location.hostname;return this.extractSubdomain(t)||null}}const Ta={queryParams:new Sp,sessionStorage:new Tp,cookie:new Pp,subdomain:new Op},Rp=e=>{const t=Ta[e.clientSideMode];if(!t)throw new Error(`Client side tenant mode '${e.clientSideMode}' is not supported ${JSON.stringify({strategies:Ta},null,2)}`);return t},kp=(e,t,r)=>{const n=t.find(s=>s.name===r);if(!n)throw Error("No tenant permission");return Rp(e).setTenant(n,e),n},jp=()=>{const[e,t]=Cr(),{tenants:r=[],currentTenant:n,tenantConfig:o=Ep}=e,s=x.useCallback(i=>{const a=kp(o,r,i);t({...e,currentTenant:a})},[o,e]);return{tenants:r,currentTenant:n,tenantConfig:o,selectTenant:s}};function Dp(e){if(!e.ok)throw console.error(e),new Error(e.statusText)}async function vn(e,t,r,n){const o=await e(`/user-states/${encodeURIComponent(t)}/${encodeURIComponent(r)}`,n);return Dp(o),o}class yn{static async get(t,r,n){const s=await vn(t,r,n,{method:"GET",headers:{"Content-Type":"application/json"}});return s.status===204?null:await s.json()}static async create(t,r,n,o){const s={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await vn(t,r,n,s)).json()}static async update(t,r,n,o){const s={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await vn(t,r,n,s)).json()}static async delete(t,r,n){return await vn(t,r,n,{method:"DELETE",headers:{"Content-Type":"application/json"}}),null}}const Lp=e=>{const t=bo("@bluealba/pae-nestjs-gateway-service"),r=Oi();if(!r)throw new Error("You must call the useUserState hook within a PAE application.");const[n,o]=x.useState(null),[s,i]=x.useState(!1),[a,l]=x.useState(!1),[u,d]=x.useState(null),p=(C,T)=>x.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"),f=p(yn.delete,"delete"),v=x.useCallback(async()=>{try{await h()}finally{i(!0)}},[h]);x.useEffect(()=>{v()},[v]);const _=x.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:s,loading:a,error:u,setValue:_,createValue:g,updateValue:w,deleteValue:f}},Aa="__PAE_EXTENSION_POINT_REACT_CONTENT_EMPTY__",Ip=({module:e,point:t,children:r})=>(Di(e,t,r??Aa),null),Pa=({name:e,children:t,...r})=>{const n=ji(e);if(n===Aa)return null;if(!n)return c.jsx(c.Fragment,{children:t??null});if(Np(n)){const o=n;return c.jsx(o,{...r})}else return n},Np=e=>typeof e=="function",Mp=(e,t)=>{const r=n=>(t=t||e.displayName||e.name||"?",c.jsx(Pa,{name:t,...n,children:c.jsx(e,{...n})}));return r.displayName=`extensionPoint(${t})`,r},Oa="single-spa:app-change";function $p(){const[e,t]=x.useState(Ra());return x.useEffect(()=>{const r=()=>{t(Ra())};return window.addEventListener(Oa,r),()=>{window.removeEventListener(Oa,r)}},[]),e}function Ra(){return ne.getAppNames().reduce((t,r)=>(ne.getAppStatus(r)?t[r]=ne.getAppStatus(r):t[r]="NOT_LOADED",t),{})}function Fp(e){const r=$p()[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 ka=({appName:e})=>c.jsx("div",{children:c.jsxs("p",{children:["Loading ",e,"..."]})});ka.displayName="BaseLoading";const ja=({appName:e})=>c.jsxs("div",{children:[c.jsx("p",{children:"Something went wrong..."}),c.jsxs("p",{children:["Failed to load ",e]})]});ja.displayName="BaseError";const Bp={display:"flex",flexDirection:"column",flex:1},Da=x.forwardRef((e,t)=>c.jsx("div",{ref:t,style:Bp,...e}));Da.displayName="BaseContainer";const Up="pae-app:",La=x.forwardRef(({appName:e,LoadingComponent:t=ka,ErrorComponent:r=ja,ContainerComponent:n=Da,...o},s)=>{const i=Fp(e);return c.jsxs(n,{ref:s,...o,id:`${Up}${e}`,children:[i.isLoading&&c.jsx(t,{appName:e}),i.isBroken&&c.jsx(r,{appName:e})]})});La.displayName="ModulePlaceHolder";const Vo=({operations:e,children:t,forbiddenContent:r})=>{var o;const{hasAccess:n}=Tr();if(!n(...e)){if(!r)return null;if(typeof r=="function")if((o=r==null?void 0:r.prototype)!=null&&o.isReactComponent){const s=r;return c.jsx(s,{operations:e})}else return r({operations:e});return x.isValidElement(r)?r:null}return t};Vo.displayName="Authorized";const Wp=({eventName:e,listener:t})=>(Li(e,t),null),zp=()=>c.jsx("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:c.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M8.737 8.737a21.49 21.49 0 0 1 3.308-2.724m0 0c3.063-2.026 5.99-2.641 7.331-1.3 1.827 1.828.026 6.591-4.023 10.64-4.049 4.049-8.812 5.85-10.64 4.023-1.33-1.33-.736-4.218 1.249-7.253m6.083-6.11c-3.063-2.026-5.99-2.641-7.331-1.3-1.827 1.828-.026 6.591 4.023 10.64m3.308-9.34a21.497 21.497 0 0 1 3.308 2.724m2.775 3.386c1.985 3.035 2.579 5.923 1.248 7.253-1.336 1.337-4.245.732-7.295-1.275M14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})}),Ia=({applicationName:e})=>{const t=Ti(e);if(t)if(typeof t=="function"){const r=t;return c.jsx(r,{})}else return t;return c.jsx(zp,{})};Ia.displayName="ApplicationIcon";const Na=()=>c.jsx("svg",{width:"28",height:"28",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M15.9998 29.3337C8.63584 29.3337 2.6665 23.3643 2.6665 16.0003C2.6665 8.63633 8.63584 2.66699 15.9998 2.66699C23.3638 2.66699 29.3332 8.63633 29.3332 16.0003C29.3332 23.3643 23.3638 29.3337 15.9998 29.3337ZM15.9998 26.667C18.8288 26.667 21.5419 25.5432 23.5423 23.5428C25.5427 21.5424 26.6665 18.8293 26.6665 16.0003C26.6665 13.1713 25.5427 10.4582 23.5423 8.45785C21.5419 6.45747 18.8288 5.33366 15.9998 5.33366C13.1709 5.33366 10.4578 6.45747 8.45736 8.45785C6.45698 10.4582 5.33317 13.1713 5.33317 16.0003C5.33317 18.8293 6.45698 21.5424 8.45736 23.5428C10.4578 25.5432 13.1709 26.667 15.9998 26.667ZM9.33317 20.427C12.2066 20.2205 14.9088 18.9833 16.9425 16.943C18.9828 14.9092 20.2201 12.2071 20.4265 9.33366C21.4117 9.99003 22.2389 10.8569 22.8486 11.8716C23.4582 12.8864 23.835 14.0239 23.9519 15.2019C24.0687 16.3799 23.9226 17.5692 23.5242 18.684C23.1257 19.7987 22.4849 20.8112 21.6478 21.6483C20.8107 22.4853 19.7982 23.1262 18.6835 23.5247C17.5687 23.9231 16.3795 24.0692 15.2014 23.9523C14.0234 23.8355 12.8859 23.4587 11.8712 22.8491C10.8564 22.2394 9.98954 21.4122 9.33317 20.427Z",fill:"currentColor"})});Na.displayName="DarkModeIcon";const Ma=()=>c.jsx("svg",{width:"28",height:"28",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",transform:"matrix(-1,1.2246467991473532e-16,-1.2246467991473532e-16,-1,0,0)",children:c.jsx("path",{d:"M15.9998 29.3337C8.63584 29.3337 2.6665 23.3643 2.6665 16.0003C2.6665 8.63633 8.63584 2.66699 15.9998 2.66699C23.3638 2.66699 29.3332 8.63633 29.3332 16.0003C29.3332 23.3643 23.3638 29.3337 15.9998 29.3337ZM15.9998 26.667C18.8288 26.667 21.5419 25.5432 23.5423 23.5428C25.5427 21.5424 26.6665 18.8293 26.6665 16.0003C26.6665 13.1713 25.5427 10.4582 23.5423 8.45785C21.5419 6.45747 18.8288 5.33366 15.9998 5.33366C13.1709 5.33366 10.4578 6.45747 8.45736 8.45785C6.45698 10.4582 5.33317 13.1713 5.33317 16.0003C5.33317 18.8293 6.45698 21.5424 8.45736 23.5428C10.4578 25.5432 13.1709 26.667 15.9998 26.667ZM9.33317 20.427C12.2066 20.2205 14.9088 18.9833 16.9425 16.943C18.9828 14.9092 20.2201 12.2071 20.4265 9.33366C21.4117 9.99003 22.2389 10.8569 22.8486 11.8716C23.4582 12.8864 23.835 14.0239 23.9519 15.2019C24.0687 16.3799 23.9226 17.5692 23.5242 18.684C23.1257 19.7987 22.4849 20.8112 21.6478 21.6483C20.8107 22.4853 19.7982 23.1262 18.6835 23.5247C17.5687 23.9231 16.3795 24.0692 15.2014 23.9523C14.0234 23.8355 12.8859 23.4587 11.8712 22.8491C10.8564 22.2394 9.98954 21.4122 9.33317 20.427Z",fill:"currentColor"})});Ma.displayName="LightModeIcon";const Go={container:"container__zBqbk",expanded:"expanded__EbsIr",label:"label__cdMnm"};function $a(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=$a(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=$a(e))&&(n&&(n+=" "),n+=t);return n}const Hp=e=>e.toLowerCase().trim().split(" ").join("-"),Vp=e=>`${Hp(e)}-theme`,Fa=()=>{const{platformName:e="Platform"}=ho(),t=Vp(e),[r,n]=x.useState(()=>{const s=localStorage.getItem(t);return s==="light"||s==="dark"?s:"light"}),o=s=>{localStorage.setItem(t,s),n(s)};return x.useEffect(()=>{document.documentElement.setAttribute("data-theme",r)},[r]),{theme:r,setTheme:o}},bn={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"},wn=x.forwardRef(({variant:e="contained",colorScheme:t="primary",loading:r=!1,IconComponent:n,className:o,children:s,...i},a)=>{const l=D(bn.button,bn[`button--${e}-${t}`],o);return c.jsxs("button",{ref:a,className:l,...i,children:[r?c.jsx("div",{className:bn.spinner}):n&&c.jsx(n,{className:bn.icon}),s]})});wn.displayName="Button";const _n={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"},qo={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 qo)Object.freeze(qo[e]);const Ba=Object.freeze(qo);var Ua={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function Gp(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(),Ba[e])r=Ba[e].slice(),o="rgb";else if(e==="transparent")n=0,o="rgb",r=[0,0,0];else if(e[0]==="#"){var s=e.slice(1),i=s.length,a=i<=4;n=1,a?(r=[parseInt(s[0]+s[0],16),parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16)],i===4&&(n=parseInt(s[3]+s[3],16)/255)):(r=[parseInt(s[0]+s[1],16),parseInt(s[2]+s[3],16),parseInt(s[4]+s[5],16)],i===8&&(n=parseInt(s[6]+s[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 u=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(Ua[h]!==void 0)return Ua[h];if(h.endsWith("deg"))return parseFloat(h);if(h.endsWith("turn"))return parseFloat(h)*360;if(h.endsWith("grad"))return parseFloat(h)*360/400;if(h.endsWith("rad"))return parseFloat(h)*180/Math.PI}return h==="none"?0:parseFloat(h)}),n=r.length>u?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 qp=(e,t)=>{const{space:r,values:n}=Gp(e);return r[0]==="h"?`${r}a(${n[0]}, ${n[1]}%, ${n[2]}%, ${t})`:`${r}a(${n}, ${t})`},Qo=x.forwardRef(({children:e,color:t,className:r,customColor:n,size:o="small",style:s,...i},a)=>{const l=n?{color:n,background:qp(n,.1)}:{},u=D(_n.Badge,_n[`Badge--${o}`],{[_n[`Badge--${t}`]]:!!t},r);return c.jsx("span",{ref:a,className:u,style:{...s,...l},...i,children:e})});Qo.displayName="Badge";const Yo=x.forwardRef(({children:e,className:t,...r},n)=>{const o=D(_n.Badges,t);return c.jsx("div",{ref:n,className:o,...r,children:e})});Yo.displayName="Badges";const Wa=({size:e=24,color:t="currentColor",strokeWidth:r=2,className:n,style:o,...s})=>c.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,...s,children:[c.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),c.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"})]}),za=({size:e=24,color:t="currentColor",strokeWidth:r=2,className:n,style:o,...s})=>c.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,...s,children:[c.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),c.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}),c.jsx("path",{d:"m9 12 2 2 4-4"})]}),Qp={CopyToClipboardButton:"CopyToClipboardButton__2Nd2m"},Yp=({content:e})=>{const[t,r]=Kp(),{notify:n}=Ro(),o=t?za:Wa,s=x.useCallback(async()=>{await r(e)&&n("Copied to the Clipboard !","success")},[e,n]);return c.jsx(o,{className:Qp.CopyToClipboardButton,size:18,onClick:s})},Kp=()=>{const[e,t]=x.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}}]},Ha={FieldGroup:"FieldGroup__Q2JCV",fieldGroup:"FieldGroup__Q2JCV","FieldGroup--horizontal":"FieldGroup--horizontal__kpfL1",fieldGroupHorizontal:"FieldGroup--horizontal__kpfL1","FieldGroup--vertical":"FieldGroup--vertical__FLo-Q",fieldGroupVertical:"FieldGroup--vertical__FLo-Q"},Va=x.forwardRef(({children:e,className:t,orientation:r="vertical",...n},o)=>{const s=D(Ha.FieldGroup,Ha[`FieldGroup--${r}`],t);return c.jsx("div",{ref:o,className:s,...n,children:e})});Va.displayName="FieldGroup";const Ga={Input:"Input__uS0sb",Error:"Error__-DQpw"},Cn=x.forwardRef(({className:e,error:t,...r},n)=>{const o=D(Ga.Input,t&&Ga.Error,e);return c.jsx("input",{ref:n,className:o,...r})});Cn.displayName="Input";const Zp={Error:"Error__N4OP5"},qa=x.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Zp.Error,t);return c.jsx("span",{ref:n,className:o,...r,children:e})});qa.displayName="InputError";const Qa={Label:"Label__VYUvW",Error:"Error__Eu6DI"},Ya=x.forwardRef(({children:e,className:t,error:r,...n},o)=>{const s=D(Qa.Label,r&&Qa.Error,t);return c.jsx("label",{ref:o,className:s,...n,children:e})});Ya.displayName="Label";const Ko={Select:"Select__giqpe",Chevron:"Chevron__YvhBd"},Ka=x.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Ko.Option,t);return c.jsx("option",{ref:n,className:o,...r,children:e})});Ka.displayName="Option";const Zo=x.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Ko.Select,t);return c.jsxs("div",{className:o,children:[c.jsx("select",{ref:n,...r,children:e}),c.jsx("div",{className:Ko.Chevron,children:c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M4 6L8 10L12 6",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})})]})});Zo.displayName="Select",Zo.Option=Ka;const Xp={TextArea:"TextArea__pa-A0"},Za=x.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Xp.TextArea,t);return c.jsx("textarea",{ref:n,className:o,...r,children:e})});Za.displayName="TextArea";const Rr={SearchInput:"SearchInput__4OFyE",SearchIcon:"SearchIcon__YgnQy",ClearIcon:"ClearIcon__ukRVr",SearchInput__ClearIcon:"SearchInput__ClearIcon__uzVoc",SearchInput__SearchIcon:"SearchInput__SearchIcon__zoDG4"},Xo=x.forwardRef(({className:e,placeholder:t="Type to search...",showClearButton:r=!1,showSearchIcon:n=!0,onClear:o,...s},i)=>{const a=D(Rr.SearchInput,r&&Rr.SearchInput__ClearIcon,n&&Rr.SearchInput__SearchIcon,e),l=D(Rr.SearchIcon),u=D(Rr.ClearIcon);return c.jsxs("div",{className:a,children:[c.jsx(Cn,{ref:i,type:"text",placeholder:t,...s}),n&&c.jsx("svg",{className:l,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M13 13L10.6667 10.6667M12.3333 6.66667C12.3333 9.79628 9.79628 12.3333 6.66667 12.3333C3.53705 12.3333 1 9.79628 1 6.66667C1 3.53705 3.53705 1 6.66667 1C9.79628 1 12.3333 3.53705 12.3333 6.66667Z",stroke:"#A4A4A4",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})}),r&&c.jsx("svg",{className:u,width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:o,children:c.jsx("path",{d:"M7.33334 0.666748L0.666672 7.33341M0.666672 0.666748L7.33334 7.33341",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})]})});Xo.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"},xn=x.forwardRef(({children:e,className:t,open:r,align:n="right",...o},s)=>{const i=D(At.DropdownList,{[At["DropdownList--open"]]:r,[At["DropdownList--closed"]]:!r,[At["DropdownList--left"]]:n==="left"},t);return c.jsx("div",{ref:s,className:i,...o,children:e})});xn.displayName="DropdownList";const kr=x.forwardRef(({children:e,className:t,canBeSelected:r=!1,...n},o)=>{const s=D(Tt.AutocompleteItem,{[Tt["AutocompleteItem--canBeSelected"]]:r},t);return c.jsx("div",{ref:o,className:s,role:r?"option":void 0,...n,children:e})});kr.displayName="AutocompleteItem";const Jp=300,eh={query:"",suggestions:[],loading:!1,error:null},th=({suggestionFetcher:e,canAdd:t})=>{const[r,n]=x.useState(eh);return x.useEffect(()=>{n(a=>({...a,loading:!0}));const s=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}))}},i=setTimeout(()=>{s()},Jp);return()=>{clearTimeout(i)}},[r.query]),{...r,setQuery:s=>{n(i=>({...i,query:s}))}}},Xa=x.forwardRef(({text:e,query:t,className:r,...n},o)=>{const s=D(Tt.AutocompleteHighlighter,r),i=(a,l)=>{const u=a.toLowerCase().indexOf(l.toLowerCase());if(u===-1||l.length===0)return a;const d=a.slice(0,u),p=a.slice(u,u+l.length),h=a.slice(u+l.length);return c.jsxs(c.Fragment,{children:[d,c.jsx("span",{className:Tt.AutocompleteHighlighter__match,children:p}),i(h,l)]})};return c.jsx("div",{ref:o,className:s,...n,children:i(e,t)})});Xa.displayName="AutocompleteHighlighter";const rh=5,Ja=x.forwardRef(({children:e,className:t,canAdd:r,maxSuggestionsShown:n=rh,searchInputProps:o,keepSelectedOption:s,suggestionFetcher:i,onAccept:a,...l},u)=>{const{query:d,setQuery:p,suggestions:h,loading:g}=th({suggestionFetcher:i,canAdd:r}),[w,f]=x.useState(null),v=d.length>0,_=O=>{p(O.target.value)},C=O=>{a==null||a(O),s?(f(O),p(O.value)):p("")},T=()=>{a==null||a(null),f(null),p("")},S=D(Tt.SearchAutocomplete,t),A=h.slice(0,n),R=h.slice(n);return c.jsxs("div",{ref:u,className:S,...l,children:[c.jsx(Xo,{...o,value:d,onChange:_,showClearButton:!!w,onClear:T}),e,c.jsxs(xn,{className:Tt.DropdownList,open:v&&!w,role:"listbox","aria-label":"Suggestions",children:[g?c.jsx(kr,{children:"Loading..."}):A.map(O=>c.jsxs(kr,{canBeSelected:!0,onClick:C.bind(null,O),children:[c.jsx(Xa,{text:O.label,query:d}),O.description&&c.jsx("span",{className:Tt.AutocompleteItemDescription,children:O.description})]},O.value)),!g&&R.length>0&&c.jsxs(kr,{children:[R.length," more results"]}),v&&h.length===0&&!g&&c.jsx(kr,{children:"No results found"})]})]})});Ja.displayName="SearchAutocomplete";const st=e=>{let t=null,r=null;return x.Children.forEach(e.children,n=>{const o=n.props.condition;o===void 0?r=n:!t&&o===!0&&(t=n)}),c.jsx(c.Fragment,{children:t||r})};st.displayName="Show",st.When=({condition:e,children:t})=>c.jsx(c.Fragment,{children:e&&t}),st.Else=({render:e,children:t})=>c.jsx(c.Fragment,{children:e||t});function el(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function En(...e){return t=>{let r=!1;const n=e.map(o=>{const s=el(o,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let o=0;o<n.length;o++){const s=n[o];typeof s=="function"?s():el(e[o],null)}}}}function Te(...e){return m.useCallback(En(...e),e)}var nh=Symbol.for("react.lazy"),Sn=m[" use ".trim().toString()];function oh(e){return typeof e=="object"&&e!==null&&"then"in e}function tl(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===nh&&"_payload"in e&&oh(e._payload)}function sh(e){const t=ah(e),r=m.forwardRef((n,o)=>{let{children:s,...i}=n;tl(s)&&typeof Sn=="function"&&(s=Sn(s._payload));const a=m.Children.toArray(s),l=a.find(ch);if(l){const u=l.props.children,d=a.map(p=>p===l?m.Children.count(u)>1?m.Children.only(null):m.isValidElement(u)?u.props.children:null:p);return c.jsx(t,{...i,ref:o,children:m.isValidElement(u)?m.cloneElement(u,void 0,d):null})}return c.jsx(t,{...i,ref:o,children:s})});return r.displayName=`${e}.Slot`,r}var ih=sh("Slot");function ah(e){const t=m.forwardRef((r,n)=>{let{children:o,...s}=r;if(tl(o)&&typeof Sn=="function"&&(o=Sn(o._payload)),m.isValidElement(o)){const i=dh(o),a=uh(s,o.props);return o.type!==m.Fragment&&(a.ref=n?En(n,i):i),m.cloneElement(o,a)}return m.Children.count(o)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var lh=Symbol("radix.slottable");function ch(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===lh}function uh(e,t){const r={...t};for(const n in t){const o=e[n],s=t[n];/^on[A-Z]/.test(n)?o&&s?r[n]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...s}:n==="className"&&(r[n]=[o,s].filter(Boolean).join(" "))}return{...e,...r}}function dh(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 rl={SkeletonListContainer:"SkeletonListContainer__MKJhE",Skeleton:"Skeleton__Ovpiw"},Tn=x.forwardRef((e,t)=>{const{children:r,className:n,loading:o,height:s=48,width:i,borderRadius:a,style:l,...u}=e;if(!o&&r)return r;const d=x.isValidElement(r)?ih:"span";return c.jsx(d,{ref:t,"aria-hidden":!0,className:D(rl.Skeleton,n),style:{...l,width:i,minWidth:i,height:s,borderRadius:a},"data-inline-skeleton":x.isValidElement(r)?void 0:!0,tabIndex:-1,...u,children:r})});Tn.displayName="Skeleton";const nl=e=>{const{numberOfItems:t,itemsGap:r=2,itemProps:n}=e,o=Array.from({length:t},(s,i)=>i+1);return c.jsx("div",{className:D(rl.SkeletonListContainer),style:{gap:r},children:o.map(s=>c.jsx(Tn,{loading:!0,...n},s))})};nl.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 fh(e,t){const r=m.createContext(t),n=s=>{const{children:i,...a}=s,l=m.useMemo(()=>a,Object.values(a));return c.jsx(r.Provider,{value:l,children:i})};n.displayName=e+"Provider";function o(s){const i=m.useContext(r);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[n,o]}function Jo(e,t=[]){let r=[];function n(s,i){const a=m.createContext(i),l=r.length;r=[...r,i];const u=p=>{var _;const{scope:h,children:g,...w}=p,f=((_=h==null?void 0:h[e])==null?void 0:_[l])||a,v=m.useMemo(()=>w,Object.values(w));return c.jsx(f.Provider,{value:v,children:g})};u.displayName=s+"Provider";function d(p,h){var f;const g=((f=h==null?void 0:h[e])==null?void 0:f[l])||a,w=m.useContext(g);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[u,d]}const o=()=>{const s=r.map(i=>m.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return m.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[n,ph(o,...t)]}function ph(...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(s){const i=n.reduce((a,{useScope:l,scopeName:u})=>{const p=l(s)[`__scope${u}`];return{...a,...p}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function hh(e){const t=mh(e),r=m.forwardRef((n,o)=>{const{children:s,...i}=n,a=m.Children.toArray(s),l=a.find(vh);if(l){const u=l.props.children,d=a.map(p=>p===l?m.Children.count(u)>1?m.Children.only(null):m.isValidElement(u)?u.props.children:null:p);return c.jsx(t,{...i,ref:o,children:m.isValidElement(u)?m.cloneElement(u,void 0,d):null})}return c.jsx(t,{...i,ref:o,children:s})});return r.displayName=`${e}.Slot`,r}function mh(e){const t=m.forwardRef((r,n)=>{const{children:o,...s}=r;if(m.isValidElement(o)){const i=bh(o),a=yh(s,o.props);return o.type!==m.Fragment&&(a.ref=n?En(n,i):i),m.cloneElement(o,a)}return m.Children.count(o)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var gh=Symbol("radix.slottable");function vh(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===gh}function yh(e,t){const r={...t};for(const n in t){const o=e[n],s=t[n];/^on[A-Z]/.test(n)?o&&s?r[n]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...s}:n==="className"&&(r[n]=[o,s].filter(Boolean).join(" "))}return{...e,...r}}function bh(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 wh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],he=wh.reduce((e,t)=>{const r=hh(`Primitive.${t}`),n=m.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...a,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function _h(e,t){e&&li.flushSync(()=>e.dispatchEvent(t))}function Gt(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.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);m.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 xh="DismissableLayer",es="dismissableLayer.update",Eh="dismissableLayer.pointerDownOutside",Sh="dismissableLayer.focusOutside",ol,sl=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ts=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,u=m.useContext(sl),[d,p]=m.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=m.useState({}),w=Te(t,O=>p(O)),f=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),_=f.indexOf(v),C=d?f.indexOf(d):-1,T=u.layersWithOutsidePointerEventsDisabled.size>0,S=C>=_,A=Ph(O=>{const $=O.target,N=[...u.branches].some(I=>I.contains($));!S||N||(o==null||o(O),i==null||i(O),O.defaultPrevented||a==null||a())},h),R=Oh(O=>{const $=O.target;[...u.branches].some(I=>I.contains($))||(s==null||s(O),i==null||i(O),O.defaultPrevented||a==null||a())},h);return Ch(O=>{C===u.layers.size-1&&(n==null||n(O),!O.defaultPrevented&&a&&(O.preventDefault(),a()))},h),m.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ol=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),il(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=ol)}},[d,h,r,u]),m.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),il())},[d,u]),m.useEffect(()=>{const O=()=>g({});return document.addEventListener(es,O),()=>document.removeEventListener(es,O)},[]),c.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)})});ts.displayName=xh;var Th="DismissableLayerBranch",Ah=m.forwardRef((e,t)=>{const r=m.useContext(sl),n=m.useRef(null),o=Te(t,n);return m.useEffect(()=>{const s=n.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),c.jsx(he.div,{...e,ref:o})});Ah.displayName=Th;function Ph(e,t=globalThis==null?void 0:globalThis.document){const r=Gt(e),n=m.useRef(!1),o=m.useRef(()=>{});return m.useEffect(()=>{const s=a=>{if(a.target&&!n.current){let l=function(){al(Eh,r,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Oh(e,t=globalThis==null?void 0:globalThis.document){const r=Gt(e),n=m.useRef(!1);return m.useEffect(()=>{const o=s=>{s.target&&!n.current&&al(Sh,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function il(){const e=new CustomEvent(es);document.dispatchEvent(e)}function al(e,t,r,{discrete:n}){const o=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?_h(o,s):o.dispatchEvent(s)}var it=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},Rh=m[" useId ".trim().toString()]||(()=>{}),kh=0;function An(e){const[t,r]=m.useState(Rh());return it(()=>{r(n=>n??String(kh++))},[e]),e||(t?`radix-${t}`:"")}const jh=["top","right","bottom","left"],at=Math.min,we=Math.max,Pn=Math.round,On=Math.floor,Le=e=>({x:e,y:e}),Dh={left:"right",right:"left",bottom:"top",top:"bottom"},Lh={start:"end",end:"start"};function rs(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 ns(e){return e==="x"?"y":"x"}function os(e){return e==="y"?"height":"width"}const Ih=new Set(["top","bottom"]);function Ie(e){return Ih.has(qe(e))?"y":"x"}function ss(e){return ns(Ie(e))}function Nh(e,t,r){r===void 0&&(r=!1);const n=qt(e),o=ss(e),s=os(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Rn(i)),[i,Rn(i)]}function Mh(e){const t=Rn(e);return[is(e),t,is(t)]}function is(e){return e.replace(/start|end/g,t=>Lh[t])}const ll=["left","right"],cl=["right","left"],$h=["top","bottom"],Fh=["bottom","top"];function Bh(e,t,r){switch(e){case"top":case"bottom":return r?t?cl:ll:t?ll:cl;case"left":case"right":return t?$h:Fh;default:return[]}}function Uh(e,t,r,n){const o=qt(e);let s=Bh(qe(e),r==="start",n);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(is)))),s}function Rn(e){return e.replace(/left|right|bottom|top/g,t=>Dh[t])}function Wh(e){return{top:0,right:0,bottom:0,left:0,...e}}function ul(e){return typeof e!="number"?Wh(e):{top:e,right:e,bottom:e,left:e}}function kn(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 dl(e,t,r){let{reference:n,floating:o}=e;const s=Ie(t),i=ss(t),a=os(i),l=qe(t),u=s==="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[i]-=h*(r&&u?-1:1);break;case"end":g[i]+=h*(r&&u?-1:1);break}return g}async function zh(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:g=0}=Ge(t,e),w=ul(g),v=a[h?p==="floating"?"reference":"floating":p],_=kn(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(v)))==null||r?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),C=p==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(T))?await(s.getScale==null?void 0:s.getScale(T))||{x:1,y:1}:{x:1,y:1},A=kn(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.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 Hh=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:s=[],platform:i}=r,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=dl(u,n,l),h=n,g={},w=0;for(let v=0;v<a.length;v++){var f;const{name:_,fn:C}=a[v],{x:T,y:S,data:A,reset:R}=await C({x:d,y:p,initialPlacement:n,placement:h,strategy:o,middlewareData:g,rects:u,platform:{...i,detectOverflow:(f=i.detectOverflow)!=null?f:zh},elements:{reference:e,floating:t}});d=T??d,p=S??p,g={...g,[_]:{...g[_],...A}},R&&w<=50&&(w++,typeof R=="object"&&(R.placement&&(h=R.placement),R.rects&&(u=R.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):R.rects),{x:d,y:p}=dl(u,h,l)),v=-1)}return{x:d,y:p,placement:h,strategy:o,middlewareData:g}},Vh=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:u,padding:d=0}=Ge(e,t)||{};if(u==null)return{};const p=ul(d),h={x:r,y:n},g=ss(o),w=os(g),f=await i.getDimensions(u),v=g==="y",_=v?"top":"left",C=v?"bottom":"right",T=v?"clientHeight":"clientWidth",S=s.reference[w]+s.reference[g]-h[g]-s.floating[w],A=h[g]-s.reference[g],R=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let O=R?R[T]:0;(!O||!await(i.isElement==null?void 0:i.isElement(R)))&&(O=a.floating[T]||s.floating[w]);const $=S/2-A/2,N=O/2-f[w]/2-1,I=at(p[_],N),G=at(p[C],N),Y=I,H=O-f[w]-G,Q=O/2-f[w]/2+$,se=rs(Y,Q,H),J=!l.arrow&&qt(o)!=null&&Q!==se&&s.reference[w]/2-(Q<Y?I:G)-f[w]/2<0,ee=J?Q<Y?Q-Y:Q-H:0;return{[g]:h[g]+ee,data:{[g]:se,centerOffset:Q-se-ee,...J&&{alignmentOffset:ee}},reset:J}}}),Gh=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:f=!0,...v}=Ge(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const _=qe(o),C=Ie(a),T=qe(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),A=h||(T||!f?[Rn(a)]:Mh(a)),R=w!=="none";!h&&R&&A.push(...Uh(a,f,w,S));const O=[a,...A],$=await l.detectOverflow(t,v),N=[];let I=((n=s.flip)==null?void 0:n.overflows)||[];if(d&&N.push($[_]),p){const Q=Nh(o,i,S);N.push($[Q[0]],$[Q[1]])}if(I=[...I,{placement:o,overflows:N}],!N.every(Q=>Q<=0)){var G,Y;const Q=(((G=s.flip)==null?void 0:G.index)||0)+1,se=O[Q];if(se&&(!(p==="alignment"?C!==Ie(se):!1)||I.every(B=>Ie(B.placement)===C?B.overflows[0]>0:!0)))return{data:{index:Q,overflows:I},reset:{placement:se}};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 ie=Ie(B.placement);return ie===C||ie==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(ie=>ie>0).reduce((ie,Ce)=>ie+Ce,0)]).sort((B,ie)=>B[1]-ie[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 fl(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function pl(e){return jh.some(t=>e[t]>=0)}const qh=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:o="referenceHidden",...s}=Ge(e,t);switch(o){case"referenceHidden":{const i=await n.detectOverflow(t,{...s,elementContext:"reference"}),a=fl(i,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:pl(a)}}}case"escaped":{const i=await n.detectOverflow(t,{...s,altBoundary:!0}),a=fl(i,r.floating);return{data:{escapedOffsets:a,escaped:pl(a)}}}default:return{}}}}},hl=new Set(["left","top"]);async function Qh(e,t){const{placement:r,platform:n,elements:o}=e,s=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=qe(r),a=qt(r),l=Ie(r)==="y",u=hl.has(i)?-1:1,d=s&&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*u}:{x:h*u,y:g*d}}const Yh=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await Qh(t,e);return i===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},Kh=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:_=>{let{x:C,y:T}=_;return{x:C,y:T}}},...u}=Ge(e,t),d={x:r,y:n},p=await s.detectOverflow(t,u),h=Ie(qe(o)),g=ns(h);let w=d[g],f=d[h];if(i){const _=g==="y"?"top":"left",C=g==="y"?"bottom":"right",T=w+p[_],S=w-p[C];w=rs(T,w,S)}if(a){const _=h==="y"?"top":"left",C=h==="y"?"bottom":"right",T=f+p[_],S=f-p[C];f=rs(T,f,S)}const v=l.fn({...t,[g]:w,[h]:f});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[g]:i,[h]:a}}}}}},Zh=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=Ge(e,t),d={x:r,y:n},p=Ie(o),h=ns(p);let g=d[h],w=d[p];const f=Ge(a,t),v=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(l){const T=h==="y"?"height":"width",S=s.reference[h]-s.floating[T]+v.mainAxis,A=s.reference[h]+s.reference[T]-v.mainAxis;g<S?g=S:g>A&&(g=A)}if(u){var _,C;const T=h==="y"?"width":"height",S=hl.has(qe(o)),A=s.reference[p]-s.floating[T]+(S&&((_=i.offset)==null?void 0:_[p])||0)+(S?0:v.crossAxis),R=s.reference[p]+s.reference[T]+(S?0:((C=i.offset)==null?void 0:C[p])||0)-(S?v.crossAxis:0);w<A?w=A:w>R&&(w=R)}return{[h]:g,[p]:w}}}},Xh=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...u}=Ge(e,t),d=await i.detectOverflow(t,u),p=qe(o),h=qt(o),g=Ie(o)==="y",{width:w,height:f}=s.floating;let v,_;p==="top"||p==="bottom"?(v=p,_=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(_=p,v=h==="end"?"top":"bottom");const C=f-d.top-d.bottom,T=w-d.left-d.right,S=at(f-d[v],C),A=at(w-d[_],T),R=!t.middlewareData.shift;let O=S,$=A;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&($=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?$=w-2*(I!==0||G!==0?I+G:we(d.left,d.right)):O=f-2*(Y!==0||H!==0?Y+H:we(d.top,d.bottom))}await l({...t,availableWidth:$,availableHeight:O});const N=await i.getDimensions(a.floating);return w!==N.width||f!==N.height?{reset:{rects:!0}}:{}}}};function jn(){return typeof window<"u"}function Qt(e){return ml(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=(ml(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ml(e){return jn()?e instanceof Node||e instanceof _e(e).Node:!1}function Ae(e){return jn()?e instanceof Element||e instanceof _e(e).Element:!1}function Me(e){return jn()?e instanceof HTMLElement||e instanceof _e(e).HTMLElement:!1}function gl(e){return!jn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _e(e).ShadowRoot}const Jh=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)&&!Jh.has(o)}const e1=new Set(["table","td","th"]);function t1(e){return e1.has(Qt(e))}const r1=[":popover-open",":modal"];function Dn(e){return r1.some(t=>{try{return e.matches(t)}catch{return!1}})}const n1=["transform","translate","scale","rotate","perspective"],o1=["transform","translate","scale","rotate","perspective","filter"],s1=["paint","layout","strict","content"];function as(e){const t=ls(),r=Ae(e)?Pe(e):e;return n1.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)||o1.some(n=>(r.willChange||"").includes(n))||s1.some(n=>(r.contain||"").includes(n))}function i1(e){let t=lt(e);for(;Me(t)&&!Yt(t);){if(as(t))return t;if(Dn(t))return null;t=lt(t)}return null}function ls(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const a1=new Set(["html","body","#document"]);function Yt(e){return a1.has(Qt(e))}function Pe(e){return _e(e).getComputedStyle(e)}function Ln(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||gl(e)&&e.host||Ne(e);return gl(t)?t.host:t}function vl(e){const t=lt(e);return Yt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Me(t)&&jr(t)?t:vl(t)}function Dr(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=vl(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),i=_e(o);if(s){const a=cs(i);return t.concat(i,i.visualViewport||[],jr(o)?o:[],a&&r?Dr(a):[])}return t.concat(o,Dr(o,[],r))}function cs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yl(e){const t=Pe(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Me(e),s=o?e.offsetWidth:r,i=o?e.offsetHeight:n,a=Pn(r)!==s||Pn(n)!==i;return a&&(r=s,n=i),{width:r,height:n,$:a}}function us(e){return Ae(e)?e:e.contextElement}function Kt(e){const t=us(e);if(!Me(t))return Le(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:s}=yl(t);let i=(s?Pn(r.width):r.width)/n,a=(s?Pn(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const l1=Le(0);function bl(e){const t=_e(e);return!ls()||!t.visualViewport?l1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function c1(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(),s=us(e);let i=Le(1);t&&(n?Ae(n)&&(i=Kt(n)):i=Kt(e));const a=c1(s,r,n)?bl(s):Le(0);let l=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,d=o.width/i.x,p=o.height/i.y;if(s){const h=_e(s),g=n&&Ae(n)?_e(n):n;let w=h,f=cs(w);for(;f&&n&&g!==w;){const v=Kt(f),_=f.getBoundingClientRect(),C=Pe(f),T=_.left+(f.clientLeft+parseFloat(C.paddingLeft))*v.x,S=_.top+(f.clientTop+parseFloat(C.paddingTop))*v.y;l*=v.x,u*=v.y,d*=v.x,p*=v.y,l+=T,u+=S,w=_e(f),f=cs(w)}}return kn({width:d,height:p,x:l,y:u})}function In(e,t){const r=Ln(e).scrollLeft;return t?t.left+r:Pt(Ne(e)).left+r}function wl(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-In(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function u1(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const s=o==="fixed",i=Ne(n),a=t?Dn(t.floating):!1;if(n===i||a&&s)return r;let l={scrollLeft:0,scrollTop:0},u=Le(1);const d=Le(0),p=Me(n);if((p||!p&&!s)&&((Qt(n)!=="body"||jr(i))&&(l=Ln(n)),Me(n))){const g=Pt(n);u=Kt(n),d.x=g.x+n.clientLeft,d.y=g.y+n.clientTop}const h=i&&!p&&!s?wl(i,l):Le(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+d.x+h.x,y:r.y*u.y-l.scrollTop*u.y+d.y+h.y}}function d1(e){return Array.from(e.getClientRects())}function f1(e){const t=Ne(e),r=Ln(e),n=e.ownerDocument.body,o=we(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=we(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+In(e);const a=-r.scrollTop;return Pe(n).direction==="rtl"&&(i+=we(t.clientWidth,n.clientWidth)-o),{width:o,height:s,x:i,y:a}}const _l=25;function p1(e,t){const r=_e(e),n=Ne(e),o=r.visualViewport;let s=n.clientWidth,i=n.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const d=ls();(!d||d&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const u=In(n);if(u<=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<=_l&&(s-=w)}else u<=_l&&(s+=u);return{width:s,height:i,x:a,y:l}}const h1=new Set(["absolute","fixed"]);function m1(e,t){const r=Pt(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,s=Me(e)?Kt(e):Le(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=o*s.x,u=n*s.y;return{width:i,height:a,x:l,y:u}}function Cl(e,t,r){let n;if(t==="viewport")n=p1(e,r);else if(t==="document")n=f1(Ne(e));else if(Ae(t))n=m1(t,r);else{const o=bl(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return kn(n)}function xl(e,t){const r=lt(e);return r===t||!Ae(r)||Yt(r)?!1:Pe(r).position==="fixed"||xl(r,t)}function g1(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 s=Pe(e).position==="fixed";let i=s?lt(e):e;for(;Ae(i)&&!Yt(i);){const a=Pe(i),l=as(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&h1.has(o.position)||jr(i)&&!l&&xl(e,i))?n=n.filter(d=>d!==i):o=a,i=lt(i)}return t.set(e,n),n}function v1(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[...r==="clippingAncestors"?Dn(t)?[]:g1(t,this._c):[].concat(r),n],a=i[0],l=i.reduce((u,d)=>{const p=Cl(t,d,o);return u.top=we(p.top,u.top),u.right=at(p.right,u.right),u.bottom=at(p.bottom,u.bottom),u.left=we(p.left,u.left),u},Cl(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function y1(e){const{width:t,height:r}=yl(e);return{width:t,height:r}}function b1(e,t,r){const n=Me(t),o=Ne(t),s=r==="fixed",i=Pt(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Le(0);function u(){l.x=In(o)}if(n||!n&&!s)if((Qt(t)!=="body"||jr(o))&&(a=Ln(t)),n){const g=Pt(t,!0,s,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else o&&u();s&&!n&&o&&u();const d=o&&!n&&!s?wl(o,a):Le(0),p=i.left+a.scrollLeft-l.x-d.x,h=i.top+a.scrollTop-l.y-d.y;return{x:p,y:h,width:i.width,height:i.height}}function ds(e){return Pe(e).position==="static"}function El(e,t){if(!Me(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 Sl(e,t){const r=_e(e);if(Dn(e))return r;if(!Me(e)){let o=lt(e);for(;o&&!Yt(o);){if(Ae(o)&&!ds(o))return o;o=lt(o)}return r}let n=El(e,t);for(;n&&t1(n)&&ds(n);)n=El(n,t);return n&&Yt(n)&&ds(n)&&!as(n)?r:n||i1(e)||r}const w1=async function(e){const t=this.getOffsetParent||Sl,r=this.getDimensions,n=await r(e.floating);return{reference:b1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function _1(e){return Pe(e).direction==="rtl"}const C1={convertOffsetParentRelativeRectToViewportRelativeRect:u1,getDocumentElement:Ne,getClippingRect:v1,getOffsetParent:Sl,getElementRects:w1,getClientRects:d1,getDimensions:y1,getScale:Kt,isElement:Ae,isRTL:_1};function Tl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function x1(e,t){let r=null,n;const o=Ne(e);function s(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:d,top:p,width:h,height:g}=u;if(a||t(),!h||!g)return;const w=On(p),f=On(o.clientWidth-(d+h)),v=On(o.clientHeight-(p+g)),_=On(d),T={rootMargin:-w+"px "+-f+"px "+-v+"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 i();O?i(!1,O):n=setTimeout(()=>{i(!1,1e-7)},1e3)}O===1&&!Tl(u,e.getBoundingClientRect())&&i(),S=!1}try{r=new IntersectionObserver(A,{...T,root:o.ownerDocument})}catch{r=new IntersectionObserver(A,T)}r.observe(e)}return i(!0),s}function E1(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=us(e),d=o||s?[...u?Dr(u):[],...Dr(t)]:[];d.forEach(_=>{o&&_.addEventListener("scroll",r,{passive:!0}),s&&_.addEventListener("resize",r)});const p=u&&a?x1(u,r):null;let h=-1,g=null;i&&(g=new ResizeObserver(_=>{let[C]=_;C&&C.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var T;(T=g)==null||T.observe(t)})),r()}),u&&!l&&g.observe(u),g.observe(t));let w,f=l?Pt(e):null;l&&v();function v(){const _=Pt(e);f&&!Tl(f,_)&&r(),f=_,w=requestAnimationFrame(v)}return r(),()=>{var _;d.forEach(C=>{o&&C.removeEventListener("scroll",r),s&&C.removeEventListener("resize",r)}),p==null||p(),(_=g)==null||_.disconnect(),g=null,l&&cancelAnimationFrame(w)}}const S1=Yh,T1=Kh,A1=Gh,P1=Xh,O1=qh,Al=Vh,R1=Zh,k1=(e,t,r)=>{const n=new Map,o={platform:C1,...r},s={...o.platform,_c:n};return Hh(e,t,{...o,platform:s})};var j1=typeof document<"u",D1=function(){},Nn=j1?x.useLayoutEffect:D1;function Mn(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(!Mn(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 s=o[n];if(!(s==="_owner"&&e.$$typeof)&&!Mn(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Pl(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ol(e,t){const r=Pl(e);return Math.round(t*r)/r}function fs(e){const t=m.useRef(e);return Nn(()=>{t.current=e}),t}function L1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,p]=m.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=m.useState(n);Mn(h,n)||g(n);const[w,f]=m.useState(null),[v,_]=m.useState(null),C=m.useCallback(B=>{B!==R.current&&(R.current=B,f(B))},[]),T=m.useCallback(B=>{B!==O.current&&(O.current=B,_(B))},[]),S=s||w,A=i||v,R=m.useRef(null),O=m.useRef(null),$=m.useRef(d),N=l!=null,I=fs(l),G=fs(o),Y=fs(u),H=m.useCallback(()=>{if(!R.current||!O.current)return;const B={placement:t,strategy:r,middleware:h};G.current&&(B.platform=G.current),k1(R.current,O.current,B).then(ie=>{const Ce={...ie,isPositioned:Y.current!==!1};Q.current&&!Mn($.current,Ce)&&($.current=Ce,li.flushSync(()=>{p(Ce)}))})},[h,t,r,G,Y]);Nn(()=>{u===!1&&$.current.isPositioned&&($.current.isPositioned=!1,p(B=>({...B,isPositioned:!1})))},[u]);const Q=m.useRef(!1);Nn(()=>(Q.current=!0,()=>{Q.current=!1}),[]),Nn(()=>{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 se=m.useMemo(()=>({reference:R,floating:O,setReference:C,setFloating:T}),[C,T]),J=m.useMemo(()=>({reference:S,floating:A}),[S,A]),ee=m.useMemo(()=>{const B={position:r,left:0,top:0};if(!J.floating)return B;const ie=Ol(J.floating,d.x),Ce=Ol(J.floating,d.y);return a?{...B,transform:"translate("+ie+"px, "+Ce+"px)",...Pl(J.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ie,top:Ce}},[r,a,J.floating,d.x,d.y]);return m.useMemo(()=>({...d,update:H,refs:se,elements:J,floatingStyles:ee}),[d,H,se,J,ee])}const I1=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?Al({element:n.current,padding:o}).fn(r):{}:n?Al({element:n,padding:o}).fn(r):{}}}},N1=(e,t)=>({...S1(e),options:[e,t]}),M1=(e,t)=>({...T1(e),options:[e,t]}),$1=(e,t)=>({...R1(e),options:[e,t]}),F1=(e,t)=>({...A1(e),options:[e,t]}),B1=(e,t)=>({...P1(e),options:[e,t]}),U1=(e,t)=>({...O1(e),options:[e,t]}),W1=(e,t)=>({...I1(e),options:[e,t]});var z1="Arrow",Rl=m.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...s}=e;return c.jsx(he.svg,{...s,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});Rl.displayName=z1;var H1=Rl;function V1(e){const[t,r]=m.useState(void 0);return it(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;r({width:i,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var ps="Popper",[kl,jl]=Jo(ps),[G1,Dl]=kl(ps),Ll=e=>{const{__scopePopper:t,children:r}=e,[n,o]=m.useState(null);return c.jsx(G1,{scope:t,anchor:n,onAnchorChange:o,children:r})};Ll.displayName=ps;var Il="PopperAnchor",Nl=m.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,s=Dl(Il,r),i=m.useRef(null),a=Te(t,i),l=m.useRef(null);return m.useEffect(()=>{const u=l.current;l.current=(n==null?void 0:n.current)||i.current,u!==l.current&&s.onAnchorChange(l.current)}),n?null:c.jsx(he.div,{...o,ref:a})});Nl.displayName=Il;var hs="PopperContent",[q1,Q1]=kl(hs),Ml=m.forwardRef((e,t)=>{var gr,Bt,vr,Ut,no,Gr;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:g="optimized",onPlaced:w,...f}=e,v=Dl(hs,r),[_,C]=m.useState(null),T=Te(t,Wt=>C(Wt)),[S,A]=m.useState(null),R=V1(S),O=(R==null?void 0:R.width)??0,$=(R==null?void 0:R.height)??0,N=n+(s!=="center"?"-"+s:""),I=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},G=Array.isArray(u)?u:[u],Y=G.length>0,H={padding:I,boundary:G.filter(K1),altBoundary:Y},{refs:Q,floatingStyles:se,placement:J,isPositioned:ee,middlewareData:B}=L1({strategy:"fixed",placement:N,whileElementsMounted:(...Wt)=>E1(...Wt,{animationFrame:g==="always"}),elements:{reference:v.anchor},middleware:[N1({mainAxis:o+$,alignmentAxis:i}),l&&M1({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?$1():void 0,...H}),l&&F1({...H}),B1({...H,apply:({elements:Wt,rects:oo,availableWidth:yr,availableHeight:zt})=>{const{width:so,height:io}=oo.reference,Xe=Wt.floating.style;Xe.setProperty("--radix-popper-available-width",`${yr}px`),Xe.setProperty("--radix-popper-available-height",`${zt}px`),Xe.setProperty("--radix-popper-anchor-width",`${so}px`),Xe.setProperty("--radix-popper-anchor-height",`${io}px`)}}),S&&W1({element:S,padding:a}),Z1({arrowWidth:O,arrowHeight:$}),h&&U1({strategy:"referenceHidden",...H})]}),[ie,Ce]=Bl(J),Ft=Gt(w);it(()=>{ee&&(Ft==null||Ft())},[ee,Ft]);const to=(gr=B.arrow)==null?void 0:gr.x,ro=(Bt=B.arrow)==null?void 0:Bt.y,Vs=((vr=B.arrow)==null?void 0:vr.centerOffset)!==0,[Gs,Vr]=m.useState();return it(()=>{_&&Vr(window.getComputedStyle(_).zIndex)},[_]),c.jsx("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:{...se,transform:ee?se.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Gs,"--radix-popper-transform-origin":[(Ut=B.transformOrigin)==null?void 0:Ut.x,(no=B.transformOrigin)==null?void 0:no.y].join(" "),...((Gr=B.hide)==null?void 0:Gr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(q1,{scope:r,placedSide:ie,onArrowChange:A,arrowX:to,arrowY:ro,shouldHideArrow:Vs,children:c.jsx(he.div,{"data-side":ie,"data-align":Ce,...f,ref:T,style:{...f.style,animation:ee?void 0:"none"}})})})});Ml.displayName=hs;var $l="PopperArrow",Y1={top:"bottom",right:"left",bottom:"top",left:"right"},Fl=m.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,s=Q1($l,n),i=Y1[s.placedSide];return c.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:c.jsx(H1,{...o,ref:r,style:{...o.style,display:"block"}})})});Fl.displayName=$l;function K1(e){return e!==null}var Z1=e=>({name:"transformOrigin",options:e,fn(t){var v,_,C;const{placement:r,rects:n,middlewareData:o}=t,i=((v=o.arrow)==null?void 0:v.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,d]=Bl(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="",f="";return u==="bottom"?(w=i?p:`${h}px`,f=`${-l}px`):u==="top"?(w=i?p:`${h}px`,f=`${n.floating.height+l}px`):u==="right"?(w=`${-l}px`,f=i?p:`${g}px`):u==="left"&&(w=`${n.floating.width+l}px`,f=i?p:`${g}px`),{data:{x:w,y:f}}}});function Bl(e){const[t,r="center"]=e.split("-");return[t,r]}var X1=Ll,J1=Nl,em=Ml,tm=Fl,rm="Portal",ms=m.forwardRef((e,t)=>{var a;const{container:r,...n}=e,[o,s]=m.useState(!1);it(()=>s(!0),[]);const i=r||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?_t.createPortal(c.jsx(he.div,{...n,ref:t}),i):null});ms.displayName=rm;function nm(e,t){return m.useReducer((r,n)=>t[r][n]??r,e)}var Zt=e=>{const{present:t,children:r}=e,n=om(t),o=typeof r=="function"?r({present:n.isPresent}):m.Children.only(r),s=Te(n.ref,sm(o));return typeof r=="function"||n.isPresent?m.cloneElement(o,{ref:s}):null};Zt.displayName="Presence";function om(e){const[t,r]=m.useState(),n=m.useRef(null),o=m.useRef(e),s=m.useRef("none"),i=e?"mounted":"unmounted",[a,l]=nm(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const u=$n(n.current);s.current=a==="mounted"?u:"none"},[a]),it(()=>{const u=n.current,d=o.current;if(d!==e){const h=s.current,g=$n(u);e?l("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),it(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,p=g=>{const f=$n(n.current).includes(CSS.escape(g.animationName));if(g.target===t&&f&&(l("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=g=>{g.target===t&&(s.current=$n(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function $n(e){return(e==null?void 0:e.animationName)||"none"}function sm(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 im=Symbol("radix.slottable");function am(e){const t=({children:r})=>c.jsx(c.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=im,t}var lm=m[" useInsertionEffect ".trim().toString()]||it;function Ul({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,s,i]=cm({defaultProp:t,onChange:r}),a=e!==void 0,l=a?e:o;{const d=m.useRef(e!==void 0);m.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 u=m.useCallback(d=>{var p;if(a){const h=um(d)?d(e):d;h!==e&&((p=i.current)==null||p.call(i,h))}else s(d)},[a,e,s,i]);return[l,u]}function cm({defaultProp:e,onChange:t}){const[r,n]=m.useState(e),o=m.useRef(r),s=m.useRef(t);return lm(()=>{s.current=t},[t]),m.useEffect(()=>{var i;o.current!==r&&((i=s.current)==null||i.call(s,r),o.current=r)},[r,o]),[r,n,s]}function um(e){return typeof e=="function"}var dm=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"}),fm="VisuallyHidden",Wl=m.forwardRef((e,t)=>c.jsx(he.span,{...e,ref:t,style:{...dm,...e.style}}));Wl.displayName=fm;var pm=Wl,[Fn]=Jo("Tooltip",[jl]),Bn=jl(),zl="TooltipProvider",hm=700,gs="tooltip.open",[mm,vs]=Fn(zl),Hl=e=>{const{__scopeTooltip:t,delayDuration:r=hm,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:s}=e,i=m.useRef(!0),a=m.useRef(!1),l=m.useRef(0);return m.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),c.jsx(mm,{scope:t,isOpenDelayedRef:i,delayDuration:r,onOpen:m.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:m.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,n)},[n]),isPointerInTransitRef:a,onPointerInTransitChange:m.useCallback(u=>{a.current=u},[]),disableHoverableContent:o,children:s})};Hl.displayName=zl;var Lr="Tooltip",[gm,Ir]=Fn(Lr),Vl=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:s,disableHoverableContent:i,delayDuration:a}=e,l=vs(Lr,e.__scopeTooltip),u=Bn(t),[d,p]=m.useState(null),h=An(),g=m.useRef(0),w=i??l.disableHoverableContent,f=a??l.delayDuration,v=m.useRef(!1),[_,C]=Ul({prop:n,defaultProp:o??!1,onChange:O=>{O?(l.onOpen(),document.dispatchEvent(new CustomEvent(gs))):l.onClose(),s==null||s(O)},caller:Lr}),T=m.useMemo(()=>_?v.current?"delayed-open":"instant-open":"closed",[_]),S=m.useCallback(()=>{window.clearTimeout(g.current),g.current=0,v.current=!1,C(!0)},[C]),A=m.useCallback(()=>{window.clearTimeout(g.current),g.current=0,C(!1)},[C]),R=m.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{v.current=!0,C(!0),g.current=0},f)},[f,C]);return m.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),c.jsx(X1,{...u,children:c.jsx(gm,{scope:t,contentId:h,open:_,stateAttribute:T,trigger:d,onTriggerChange:p,onTriggerEnter:m.useCallback(()=>{l.isOpenDelayedRef.current?R():S()},[l.isOpenDelayedRef,R,S]),onTriggerLeave:m.useCallback(()=>{w?A():(window.clearTimeout(g.current),g.current=0)},[A,w]),onOpen:S,onClose:A,disableHoverableContent:w,children:r})})};Vl.displayName=Lr;var ys="TooltipTrigger",Gl=m.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Ir(ys,r),s=vs(ys,r),i=Bn(r),a=m.useRef(null),l=Te(t,a,o.onTriggerChange),u=m.useRef(!1),d=m.useRef(!1),p=m.useCallback(()=>u.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),c.jsx(J1,{asChild:!0,...i,children:c.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&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:pe(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:pe(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:pe(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:pe(e.onBlur,o.onClose),onClick:pe(e.onClick,o.onClose)})})});Gl.displayName=ys;var bs="TooltipPortal",[vm,ym]=Fn(bs,{forceMount:void 0}),ql=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,s=Ir(bs,t);return c.jsx(vm,{scope:t,forceMount:r,children:c.jsx(Zt,{present:r||s.open,children:c.jsx(ms,{asChild:!0,container:o,children:n})})})};ql.displayName=bs;var Xt="TooltipContent",Ql=m.forwardRef((e,t)=>{const r=ym(Xt,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...s}=e,i=Ir(Xt,e.__scopeTooltip);return c.jsx(Zt,{present:n||i.open,children:i.disableHoverableContent?c.jsx(Yl,{side:o,...s,ref:t}):c.jsx(bm,{side:o,...s,ref:t})})}),bm=m.forwardRef((e,t)=>{const r=Ir(Xt,e.__scopeTooltip),n=vs(Xt,e.__scopeTooltip),o=m.useRef(null),s=Te(t,o),[i,a]=m.useState(null),{trigger:l,onClose:u}=r,d=o.current,{onPointerInTransitChange:p}=n,h=m.useCallback(()=>{a(null),p(!1)},[p]),g=m.useCallback((w,f)=>{const v=w.currentTarget,_={x:w.clientX,y:w.clientY},C=xm(_,v.getBoundingClientRect()),T=Em(_,C),S=Sm(f.getBoundingClientRect()),A=Am([...T,...S]);a(A),p(!0)},[p]);return m.useEffect(()=>()=>h(),[h]),m.useEffect(()=>{if(l&&d){const w=v=>g(v,d),f=v=>g(v,l);return l.addEventListener("pointerleave",w),d.addEventListener("pointerleave",f),()=>{l.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",f)}}},[l,d,g,h]),m.useEffect(()=>{if(i){const w=f=>{const v=f.target,_={x:f.clientX,y:f.clientY},C=(l==null?void 0:l.contains(v))||(d==null?void 0:d.contains(v)),T=!Tm(_,i);C?h():T&&(h(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[l,d,i,u,h]),c.jsx(Yl,{...e,ref:s})}),[wm,_m]=Fn(Lr,{isInside:!1}),Cm=am("TooltipContent"),Yl=m.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,l=Ir(Xt,r),u=Bn(r),{onClose:d}=l;return m.useEffect(()=>(document.addEventListener(gs,d),()=>document.removeEventListener(gs,d)),[d]),m.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]),c.jsx(ts,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:d,children:c.jsxs(em,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(Cm,{children:n}),c.jsx(wm,{scope:r,isInside:!0,children:c.jsx(pm,{id:l.contentId,role:"tooltip",children:o||n})})]})})});Ql.displayName=Xt;var Kl="TooltipArrow",Zl=m.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Bn(r);return _m(Kl,r).isInside?null:c.jsx(tm,{...o,...n,ref:t})});Zl.displayName=Kl;function xm(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(r,n,o,s)){case s:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Em(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 Sm(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 Tm(e,t){const{x:r,y:n}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],l=t[i],u=a.x,d=a.y,p=l.x,h=l.y;d>n!=h>n&&r<(p-u)*(n-d)/(h-d)+u&&(o=!o)}return o}function Am(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),Pm(t)}function Pm(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 s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const s=r[r.length-1],i=r[r.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.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 Om=Hl,Rm=Vl,km=Gl,jm=ql,Dm=Ql,Lm=Zl;const Xl={tooltip:"tooltip__nUuSh",tooltipArrow:"tooltipArrow__W2w-f"},Nr=({children:e,open:t,displayName:r,tooltipContent:n,className:o,disabled:s,delayDuration:i=300,side:a="right",sideOffset:l=0})=>{const[u,d]=x.useState(!1),p=t!==void 0,g=s?!1:p?t:u,w=f=>{s||p||d(f)};return c.jsx(Om,{delayDuration:i,children:c.jsxs(Rm,{open:g,onOpenChange:w,children:[c.jsx(km,{asChild:!0,children:e}),c.jsx(jm,{children:c.jsxs(Dm,{className:D(Xl.tooltip,o),side:a,sideOffset:l,children:[r,n,c.jsx(Lm,{className:Xl.tooltipArrow})]})})]})})};Nr.displayName="Tooltip";const Jl={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"},ec=({className:e,color:t="white",size:r=80,thickness:n})=>{const o=D(Jl.spinner,Jl[`spinner-${t}`],e),s=n??Math.max(r/12,2);return c.jsx("span",{style:{width:r,height:r,borderWidth:s},className:o})};ec.displayName="Spinner";const Un={switch:"switch__0b2av",disabled:"disabled__KpauE",checked:"checked__2-JV-",thumb:"thumb__fEuKD"},tc=x.forwardRef(({checked:e,defaultChecked:t=!1,onCheckedChange:r,disabled:n=!1,id:o,className:s,name:i,"aria-label":a,"aria-labelledby":l,"aria-describedby":u,...d},p)=>{const[h,g]=x.useState(t),w=e!==void 0,f=w?!!e:h,v=()=>{if(n)return;const C=!f;w||g(C),r==null||r(C)},_=C=>{(C.key===" "||C.key==="Enter")&&(C.preventDefault(),v())};return c.jsx("button",{ref:p,type:"button",role:"switch","aria-checked":f,"aria-label":a,"aria-labelledby":l,"aria-describedby":u,disabled:n,id:o,name:i,className:D(Un.switch,{[Un.checked]:f,[Un.disabled]:n}),onClick:v,onKeyDown:_,...d,children:c.jsx("span",{className:Un.thumb,"aria-hidden":"true"})})});tc.displayName="Switch";const $e={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"},rc=x.createContext(null),ws=()=>{const e=x.useContext(rc);if(!e)throw new Error("Tabs components must be used within a Tabs provider");return e},Im=({defaultValue:e,value:t,onValueChange:r,orientation:n="horizontal",className:o="",children:s})=>{const[i,a]=x.useState(e||""),l=t!==void 0,u=l?t:i,d=p=>{l||a(p),r==null||r(p)};return c.jsx(rc.Provider,{value:{value:u,onValueChange:d,orientation:n},children:c.jsx("div",{className:D($e.tabsRoot,o),children:s})})},Nm=({className:e="",children:t})=>{const{orientation:r}=ws(),n=x.useRef(null),o=s=>{var u;const i=(u=n.current)==null?void 0:u.querySelectorAll('[role="tab"]:not([disabled])');if(!i)return;const a=Array.from(i).findIndex(d=>d===document.activeElement);let l=a;switch(s.key){case"ArrowLeft":r==="horizontal"&&(s.preventDefault(),l=a>0?a-1:i.length-1);break;case"ArrowRight":r==="horizontal"&&(s.preventDefault(),l=a<i.length-1?a+1:0);break;case"ArrowUp":r==="vertical"&&(s.preventDefault(),l=a>0?a-1:i.length-1);break;case"ArrowDown":r==="vertical"&&(s.preventDefault(),l=a<i.length-1?a+1:0);break;case"Home":s.preventDefault(),l=0;break;case"End":s.preventDefault(),l=i.length-1;break}if(l!==a){const d=i[l];d.focus(),d.click()}};return c.jsx("div",{ref:n,role:"tablist","aria-orientation":r,onKeyDown:o,className:D($e.tabsList,r==="horizontal"?$e.tabsListHorizontal:$e.tabsListVertical,e),children:t})},Mm=({value:e,disabled:t=!1,className:r="",children:n})=>{const{value:o,onValueChange:s,orientation:i}=ws(),a=o===e,l=()=>{t||s(e)};return c.jsx("button",{role:"tab","aria-selected":a,"aria-controls":`content-${e}`,tabIndex:a?0:-1,disabled:t,onClick:l,className:D($e.tabsTrigger,i==="horizontal"?$e.tabsTriggerHorizontal:$e.tabsTriggerVertical,a&&$e.tabsTriggerActive,t&&$e.tabsTriggerDisabled,r),children:n})},$m=({value:e,className:t="",children:r})=>{const{value:n}=ws();return n===e?c.jsx("div",{role:"tabpanel",id:`content-${e}`,"aria-labelledby":`trigger-${e}`,tabIndex:0,className:D($e.tabsContent,t),children:r}):null},nc=({className:e,state:t="open",onClick:r})=>t==="open"?c.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:[c.jsx("path",{d:"M1.41174 7.41635C1.3323 7.29056 1.29257 7.22766 1.27034 7.13065C1.25364 7.05778 1.25364 6.94287 1.27034 6.87C1.29257 6.77299 1.3323 6.71009 1.41174 6.58431C2.06823 5.54482 4.02232 2.91699 7.00024 2.91699C9.97815 2.91699 11.9322 5.54482 12.5887 6.5843C12.6682 6.71009 12.7079 6.77299 12.7301 6.87C12.7468 6.94287 12.7468 7.05778 12.7301 7.13065C12.7079 7.22766 12.6682 7.29056 12.5887 7.41635C11.9322 8.45584 9.97815 11.0837 7.00024 11.0837C4.02232 11.0837 2.06823 8.45584 1.41174 7.41635Z",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M7.00024 8.75033C7.96673 8.75033 8.75024 7.96682 8.75024 7.00033C8.75024 6.03383 7.96673 5.25033 7.00024 5.25033C6.03374 5.25033 5.25024 6.03383 5.25024 7.00033C5.25024 7.96682 6.03374 8.75033 7.00024 8.75033Z",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})]}):c.jsx("svg",{className:e,onClick:r,xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",viewBox:"0 0 14 14",fill:"none",children:c.jsx("path",{d:"M6.26672 2.97052C6.50379 2.93547 6.74835 2.91667 7.00024 2.91667C9.97816 2.91667 11.9323 5.54449 12.5887 6.58398C12.6682 6.70979 12.7079 6.7727 12.7302 6.86973C12.7469 6.94259 12.7468 7.05755 12.7301 7.13042C12.7079 7.22744 12.6679 7.29077 12.5879 7.41741C12.413 7.69425 12.1463 8.08331 11.793 8.50527M3.92252 3.9171C2.66131 4.77266 1.8051 5.9613 1.41231 6.58308C1.3325 6.70942 1.29259 6.7726 1.27035 6.86961C1.25364 6.94248 1.25363 7.05742 1.27033 7.13029C1.29257 7.22731 1.33229 7.29022 1.41174 7.41602C2.06823 8.45551 4.02232 11.0833 7.00024 11.0833C8.20098 11.0833 9.23526 10.6561 10.0851 10.078M1.75024 1.75L12.2502 12.25M5.76281 5.76256C5.44612 6.07925 5.25024 6.51675 5.25024 7C5.25024 7.9665 6.03374 8.75 7.00024 8.75C7.48349 8.75 7.92099 8.55413 8.23768 8.23744",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})}),oc={PasswordInput:"PasswordInput__GDJDN",eyeIcon:"eyeIcon__kDExG"},Fm=x.forwardRef((e,t)=>{const[r,n]=x.useState("password"),o=x.useCallback(()=>{n(s=>s==="password"?"text":"password")},[n]);return c.jsxs("div",{className:D(oc.PasswordInput,e.className),children:[c.jsx(Cn,{type:r,...e,ref:t}),c.jsx(nc,{className:oc.eyeIcon,onClick:o,state:r==="password"?"open":"closed"})]})});var _s="focusScope.autoFocusOnMount",Cs="focusScope.autoFocusOnUnmount",sc={bubbles:!1,cancelable:!0},Bm="FocusScope",ic=m.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,l]=m.useState(null),u=Gt(o),d=Gt(s),p=m.useRef(null),h=Te(t,f=>l(f)),g=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(n){let f=function(T){if(g.paused||!a)return;const S=T.target;a.contains(S)?p.current=S:ct(p.current,{select:!0})},v=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",f),document.addEventListener("focusout",v);const C=new MutationObserver(_);return a&&C.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",v),C.disconnect()}}},[n,a,g.paused]),m.useEffect(()=>{if(a){cc.add(g);const f=document.activeElement;if(!a.contains(f)){const _=new CustomEvent(_s,sc);a.addEventListener(_s,u),a.dispatchEvent(_),_.defaultPrevented||(Um(Gm(ac(a)),{select:!0}),document.activeElement===f&&ct(a))}return()=>{a.removeEventListener(_s,u),setTimeout(()=>{const _=new CustomEvent(Cs,sc);a.addEventListener(Cs,d),a.dispatchEvent(_),_.defaultPrevented||ct(f??document.body,{select:!0}),a.removeEventListener(Cs,d),cc.remove(g)},0)}}},[a,u,d,g]);const w=m.useCallback(f=>{if(!r&&!n||g.paused)return;const v=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,_=document.activeElement;if(v&&_){const C=f.currentTarget,[T,S]=Wm(C);T&&S?!f.shiftKey&&_===S?(f.preventDefault(),r&&ct(T,{select:!0})):f.shiftKey&&_===T&&(f.preventDefault(),r&&ct(S,{select:!0})):_===C&&f.preventDefault()}},[r,n,g.paused]);return c.jsx(he.div,{tabIndex:-1,...i,ref:h,onKeyDown:w})});ic.displayName=Bm;function Um(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(ct(n,{select:t}),document.activeElement!==r)return}function Wm(e){const t=ac(e),r=lc(t,e),n=lc(t.reverse(),e);return[r,n]}function ac(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 lc(e,t){for(const r of e)if(!zm(r,{upTo:t}))return r}function zm(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 Hm(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&&Hm(e)&&t&&e.select()}}var cc=Vm();function Vm(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=uc(e,t),e.unshift(t)},remove(t){var r;e=uc(e,t),(r=e[0])==null||r.resume()}}}function uc(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Gm(e){return e.filter(t=>t.tagName!=="A")}var xs=0;function qm(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??dc()),document.body.insertAdjacentElement("beforeend",e[1]??dc()),xs++,()=>{xs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),xs--}},[])}function dc(){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 Wn="right-scroll-bar-position",zn="width-before-scroll-bar",Qm="with-scroll-bars-hidden",Ym="--removed-body-scroll-bar-size";function Es(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Km(e,t){var r=x.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 Zm=typeof window<"u"?m.useLayoutEffect:m.useEffect,fc=new WeakMap;function Xm(e,t){var r=Km(null,function(n){return e.forEach(function(o){return Es(o,n)})});return Zm(function(){var n=fc.get(r);if(n){var o=new Set(n),s=new Set(e),i=r.current;o.forEach(function(a){s.has(a)||Es(a,null)}),s.forEach(function(a){o.has(a)||Es(a,i)})}fc.set(r,e)},[e]),r}function Jm(e){return e}function eg(e,t){t===void 0&&(t=Jm);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(s){var i=t(s,n);return r.push(i),function(){r=r.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(n=!0;r.length;){var i=r;r=[],i.forEach(s)}r={push:function(a){return s(a)},filter:function(){return r}}},assignMedium:function(s){n=!0;var i=[];if(r.length){var a=r;r=[],a.forEach(s),i=r}var l=function(){var d=i;i=[],d.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),r={push:function(d){i.push(d),u()},filter:function(d){return i=i.filter(d),r}}}};return o}function tg(e){e===void 0&&(e={});var t=eg(null);return t.options=De({async:!0,ssr:!1},e),t}var pc=function(e){var t=e.sideCar,r=Mi(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 m.createElement(n,De({},r))};pc.isSideCarExport=!0;function rg(e,t){return e.useMedium(t),pc}var hc=tg(),Ss=function(){},Hn=m.forwardRef(function(e,t){var r=m.useRef(null),n=m.useState({onScrollCapture:Ss,onWheelCapture:Ss,onTouchMoveCapture:Ss}),o=n[0],s=n[1],i=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,h=e.sideCar,g=e.noRelative,w=e.noIsolation,f=e.inert,v=e.allowPinchZoom,_=e.as,C=_===void 0?"div":_,T=e.gapMode,S=Mi(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=h,R=Xm([r,t]),O=De(De({},S),o);return m.createElement(m.Fragment,null,d&&m.createElement(A,{sideCar:hc,removeScrollBar:u,shards:p,noRelative:g,noIsolation:w,inert:f,setCallbacks:s,allowPinchZoom:!!v,lockRef:r,gapMode:T}),i?m.cloneElement(m.Children.only(a),De(De({},O),{ref:R})):m.createElement(C,De({},O,{className:l,ref:R}),a))});Hn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Hn.classNames={fullWidth:zn,zeroRight:Wn};var ng=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function og(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ng();return t&&e.setAttribute("nonce",t),e}function sg(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ig(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ag=function(){var e=0,t=null;return{add:function(r){e==0&&(t=og())&&(sg(t,r),ig(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},lg=function(){var e=ag();return function(t,r){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},mc=function(){var e=lg(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},cg={left:0,top:0,right:0,gap:0},Ts=function(e){return parseInt(e||"",10)||0},ug=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[Ts(r),Ts(n),Ts(o)]},dg=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return cg;var t=ug(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])}},fg=mc(),Jt="data-scroll-locked",pg=function(e,t,r,n){var o=e.left,s=e.top,i=e.right,a=e.gap;return r===void 0&&(r="margin"),`
|
|
210
|
-
.`.concat(
|
|
211
|
-
overflow: hidden `).concat(
|
|
212
|
-
padding-right: `).concat(a,"px ").concat(
|
|
209
|
+
`,Pr=16,Bp=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,containerStyle:s,containerClassName:i})=>{let{toasts:a,handlers:l}=hp(n);return d.createElement("div",{style:{position:"fixed",zIndex:9999,top:Pr,left:Pr,right:Pr,bottom:Pr,pointerEvents:"none",...s},className:i,onMouseEnter:l.startPause,onMouseLeave:l.endPause},a.map(u=>{let p=u.position||t,h=l.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),m=$p(p,h);return d.createElement(Mp,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?Fp:"",style:m},u.type==="custom"?Cr(u.message,u):o?o(u):d.createElement(Np,{toast:u,position:p}))}))},xa=Re;const Qo=()=>({notify:S.useCallback((t,n,r)=>{const o={style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}};n==="warning"||n==="info"?xa(t,{...o,icon:n==="warning"?"⚠️":"ℹ️"}):xa[n](t,o),r&&console.error(r)},[])});var fn=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(){}},zt=typeof window>"u"||"Deno"in globalThis;function we(){}function Up(e,t){return typeof e=="function"?e(t):e}function Yo(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ca(e,t){return Math.max(e+(t||0)-Date.now(),0)}function wt(e,t){return typeof e=="function"?e(t):e}function Ne(e,t){return typeof e=="function"?e(t):e}function Sa(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==Zo(i,t.options))return!1}else if(!Qn(t.queryKey,i))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function Ea(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Gt(t.options.mutationKey)!==Gt(s))return!1}else if(!Qn(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Zo(e,t){return((t==null?void 0:t.queryKeyHashFn)||Gt)(e)}function Gt(e){return JSON.stringify(e,(t,n)=>Jo(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Qn(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Qn(e[n],t[n])):!1}function Xo(e,t){if(e===t)return e;const n=Ta(e)&&Ta(t);if(n||Jo(e)&&Jo(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,a=n?[]:{};let l=0;for(let u=0;u<i;u++){const p=n?u:s[u];(!n&&r.includes(p)||n)&&e[p]===void 0&&t[p]===void 0?(a[p]=void 0,l++):(a[p]=Xo(e[p],t[p]),a[p]===e[p]&&e[p]!==void 0&&l++)}return o===i&&l===o?e:a}return t}function Ar(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Ta(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Jo(e){if(!Pa(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Pa(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Pa(e){return Object.prototype.toString.call(e)==="[object Object]"}function Wp(e){return new Promise(t=>{setTimeout(t,e)})}function es(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){try{return Xo(e,t)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`),r}return Xo(e,t)}return t}function Hp(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Vp(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Rr=Symbol();function Aa(e,t){return e.queryFn===Rr&&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===Rr?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Ra(e,t){return typeof e=="function"?e(...t):!!e}var zp=(_d=class extends fn{constructor(){super();M(this,nn);M(this,Pt);M(this,Tn);I(this,Tn,t=>{if(!zt&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){_(this,Pt)||this.setEventListener(_(this,Tn))}onUnsubscribe(){var t;this.hasListeners()||((t=_(this,Pt))==null||t.call(this),I(this,Pt,void 0))}setEventListener(t){var n;I(this,Tn,t),(n=_(this,Pt))==null||n.call(this),I(this,Pt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){_(this,nn)!==t&&(I(this,nn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof _(this,nn)=="boolean"?_(this,nn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},nn=new WeakMap,Pt=new WeakMap,Tn=new WeakMap,_d),ts=new zp,Gp=(xd=class extends fn{constructor(){super();M(this,Pn,!0);M(this,At);M(this,An);I(this,An,t=>{if(!zt&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){_(this,At)||this.setEventListener(_(this,An))}onUnsubscribe(){var t;this.hasListeners()||((t=_(this,At))==null||t.call(this),I(this,At,void 0))}setEventListener(t){var n;I(this,An,t),(n=_(this,At))==null||n.call(this),I(this,At,t(this.setOnline.bind(this)))}setOnline(t){_(this,Pn)!==t&&(I(this,Pn,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return _(this,Pn)}},Pn=new WeakMap,At=new WeakMap,An=new WeakMap,xd),Or=new Gp;function ns(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function qp(e){return Math.min(1e3*2**e,3e4)}function Oa(e){return(e??"online")==="online"?Or.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 rs(e){return e instanceof Ia}function ja(e){let t=!1,n=0,r=!1,o;const s=ns(),i=f=>{var v;r||(m(new Ia(f)),(v=e.abort)==null||v.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>ts.isFocused()&&(e.networkMode==="always"||Or.isOnline())&&e.canRun(),p=()=>Oa(e.networkMode)&&e.canRun(),h=f=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,f),o==null||o(),s.resolve(f))},m=f=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,f),o==null||o(),s.reject(f))},g=()=>new Promise(f=>{var v;o=y=>{(r||u())&&f(y)},(v=e.onPause)==null||v.call(e)}).then(()=>{var f;o=void 0,r||(f=e.onContinue)==null||f.call(e)}),x=()=>{if(r)return;let f;const v=n===0?e.initialPromise:void 0;try{f=v??e.fn()}catch(y){f=Promise.reject(y)}Promise.resolve(f).then(h).catch(y=>{var R;if(r)return;const w=e.retry??(zt?0:3),C=e.retryDelay??qp,E=typeof C=="function"?C(n,y):C,P=w===!0||typeof w=="number"&&n<w||typeof w=="function"&&w(n,y);if(t||!P){m(y);return}n++,(R=e.onFail)==null||R.call(e,n,y),Wp(E).then(()=>u()?void 0:g()).then(()=>{t?m(y):x()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:a,continueRetry:l,canStart:p,start:()=>(p()?x():g().then(x),s)}}var Kp=e=>setTimeout(e,0);function Qp(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=Kp;const s=a=>{t?e.push(a):o(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||i()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var me=Qp(),ka=(Cd=class{constructor(){M(this,rn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Yo(this.gcTime)&&I(this,rn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(zt?1/0:5*60*1e3))}clearGcTimeout(){_(this,rn)&&(clearTimeout(_(this,rn)),I(this,rn,void 0))}},rn=new WeakMap,Cd),Yp=(Sd=class extends ka{constructor(t){super();M(this,We);M(this,Rn);M(this,On);M(this,je);M(this,on);M(this,be);M(this,lr);M(this,sn);I(this,sn,!1),I(this,lr,t.defaultOptions),this.setOptions(t.options),this.observers=[],I(this,on,t.client),I(this,je,_(this,on).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,I(this,Rn,Zp(this.options)),this.state=t.state??_(this,Rn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=_(this,be))==null?void 0:t.promise}setOptions(t){this.options={..._(this,lr),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&_(this,je).remove(this)}setData(t,n){const r=es(this.state.data,t,this.options);return H(this,We,mt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){H(this,We,mt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=_(this,be))==null?void 0:r.promise;return(o=_(this,be))==null||o.cancel(t),n?n.then(we).catch(we):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(_(this,Rn))}isActive(){return this.observers.some(t=>Ne(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Rr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>wt(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:!Ca(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=_(this,be))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=_(this,be))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),_(this,je).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(_(this,be)&&(_(this,sn)?_(this,be).cancel({revert:!0}):_(this,be).cancelRetry()),this.scheduleGc()),_(this,je).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||H(this,We,mt).call(this,{type:"invalidate"})}fetch(t,n){var u,p,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(_(this,be))return _(this,be).continueRetry(),_(this,be).promise}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(g=>g.options.queryFn);m&&this.setOptions(m.options)}Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']");const r=new AbortController,o=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(I(this,sn,!0),r.signal)})},s=()=>{const m=Aa(this.options,n),x=(()=>{const f={client:_(this,on),queryKey:this.queryKey,meta:this.meta};return o(f),f})();return I(this,sn,!1),this.options.persister?this.options.persister(m,x,this):m(x)},a=(()=>{const m={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:_(this,on),state:this.state,fetchFn:s};return o(m),m})();(u=this.options.behavior)==null||u.onFetch(a,this),I(this,On,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=a.fetchOptions)==null?void 0:p.meta))&&H(this,We,mt).call(this,{type:"fetch",meta:(h=a.fetchOptions)==null?void 0:h.meta});const l=m=>{var g,x,f,v;rs(m)&&m.silent||H(this,We,mt).call(this,{type:"error",error:m}),rs(m)||((x=(g=_(this,je).config).onError)==null||x.call(g,m,this),(v=(f=_(this,je).config).onSettled)==null||v.call(f,this.state.data,m,this)),this.scheduleGc()};return I(this,be,ja({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:m=>{var g,x,f,v;if(m===void 0){console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(m)}catch(y){l(y);return}(x=(g=_(this,je).config).onSuccess)==null||x.call(g,m,this),(v=(f=_(this,je).config).onSettled)==null||v.call(f,m,this.state.error,this),this.scheduleGc()},onError:l,onFail:(m,g)=>{H(this,We,mt).call(this,{type:"failed",failureCount:m,error:g})},onPause:()=>{H(this,We,mt).call(this,{type:"pause"})},onContinue:()=>{H(this,We,mt).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),_(this,be).start()}},Rn=new WeakMap,On=new WeakMap,je=new WeakMap,on=new WeakMap,be=new WeakMap,lr=new WeakMap,sn=new WeakMap,We=new WeakSet,mt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...La(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return rs(o)&&o.revert&&_(this,On)?{..._(this,On),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),me.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),_(this,je).notify({query:this,type:"updated",action:t})})},Sd);function La(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Oa(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Zp(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Xp=(Ed=class extends fn{constructor(t={}){super();M(this,et);this.config=t,I(this,et,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??Zo(o,n);let i=this.get(s);return i||(i=new Yp({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){_(this,et).has(t.queryHash)||(_(this,et).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=_(this,et).get(t.queryHash);n&&(t.destroy(),n===t&&_(this,et).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){me.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return _(this,et).get(t)}getAll(){return[..._(this,et).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Sa(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Sa(t,r)):n}notify(t){me.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){me.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){me.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},et=new WeakMap,Ed),Jp=(Td=class extends ka{constructor(t){super();M(this,nt);M(this,tt);M(this,_e);M(this,an);this.mutationId=t.mutationId,I(this,_e,t.mutationCache),I(this,tt,[]),this.state=t.state||Da(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){_(this,tt).includes(t)||(_(this,tt).push(t),this.clearGcTimeout(),_(this,_e).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){I(this,tt,_(this,tt).filter(n=>n!==t)),this.scheduleGc(),_(this,_e).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){_(this,tt).length||(this.state.status==="pending"?this.scheduleGc():_(this,_e).remove(this))}continue(){var t;return((t=_(this,an))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,i,a,l,u,p,h,m,g,x,f,v,y,w,C,E,P,R,A,N;const n=()=>{H(this,nt,Ut).call(this,{type:"continue"})};I(this,an,ja({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(L,D)=>{H(this,nt,Ut).call(this,{type:"failed",failureCount:L,error:D})},onPause:()=>{H(this,nt,Ut).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>_(this,_e).canRun(this)}));const r=this.state.status==="pending",o=!_(this,an).canStart();try{if(r)n();else{H(this,nt,Ut).call(this,{type:"pending",variables:t,isPaused:o}),await((i=(s=_(this,_e).config).onMutate)==null?void 0:i.call(s,t,this));const D=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));D!==this.state.context&&H(this,nt,Ut).call(this,{type:"pending",context:D,variables:t,isPaused:o})}const L=await _(this,an).start();return await((p=(u=_(this,_e).config).onSuccess)==null?void 0:p.call(u,L,t,this.state.context,this)),await((m=(h=this.options).onSuccess)==null?void 0:m.call(h,L,t,this.state.context)),await((x=(g=_(this,_e).config).onSettled)==null?void 0:x.call(g,L,null,this.state.variables,this.state.context,this)),await((v=(f=this.options).onSettled)==null?void 0:v.call(f,L,null,t,this.state.context)),H(this,nt,Ut).call(this,{type:"success",data:L}),L}catch(L){try{throw await((w=(y=_(this,_e).config).onError)==null?void 0:w.call(y,L,t,this.state.context,this)),await((E=(C=this.options).onError)==null?void 0:E.call(C,L,t,this.state.context)),await((R=(P=_(this,_e).config).onSettled)==null?void 0:R.call(P,void 0,L,this.state.variables,this.state.context,this)),await((N=(A=this.options).onSettled)==null?void 0:N.call(A,void 0,L,t,this.state.context)),L}finally{H(this,nt,Ut).call(this,{type:"error",error:L})}}finally{_(this,_e).runNext(this)}}},tt=new WeakMap,_e=new WeakMap,an=new WeakMap,nt=new WeakSet,Ut=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),me.batch(()=>{_(this,tt).forEach(r=>{r.onMutationUpdate(t)}),_(this,_e).notify({mutation:this,type:"updated",action:t})})},Td);function Da(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var eh=(Pd=class extends fn{constructor(t={}){super();M(this,dt);M(this,He);M(this,cr);this.config=t,I(this,dt,new Set),I(this,He,new Map),I(this,cr,0)}build(t,n,r){const o=new Jp({mutationCache:this,mutationId:++Po(this,cr)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){_(this,dt).add(t);const n=Ir(t);if(typeof n=="string"){const r=_(this,He).get(n);r?r.push(t):_(this,He).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(_(this,dt).delete(t)){const n=Ir(t);if(typeof n=="string"){const r=_(this,He).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&_(this,He).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Ir(t);if(typeof n=="string"){const r=_(this,He).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=Ir(t);if(typeof n=="string"){const o=(r=_(this,He).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){me.batch(()=>{_(this,dt).forEach(t=>{this.notify({type:"removed",mutation:t})}),_(this,dt).clear(),_(this,He).clear()})}getAll(){return Array.from(_(this,dt))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ea(n,r))}findAll(t={}){return this.getAll().filter(n=>Ea(t,n))}notify(t){me.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return me.batch(()=>Promise.all(t.map(n=>n.continue().catch(we))))}},dt=new WeakMap,He=new WeakMap,cr=new WeakMap,Pd);function Ir(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Na(e){return{onFetch:(t,n)=>{var p,h,m,g,x;const r=t.options,o=(m=(h=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:h.fetchMore)==null?void 0:m.direction,s=((g=t.state.data)==null?void 0:g.pages)||[],i=((x=t.state.data)==null?void 0:x.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let f=!1;const v=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(t.signal.aborted?f=!0:t.signal.addEventListener("abort",()=>{f=!0}),t.signal)})},y=Aa(t.options,t.fetchOptions),w=async(C,E,P)=>{if(f)return Promise.reject();if(E==null&&C.pages.length)return Promise.resolve(C);const A=(()=>{const W={client:t.client,queryKey:t.queryKey,pageParam:E,direction:P?"backward":"forward",meta:t.options.meta};return v(W),W})(),N=await y(A),{maxPages:L}=t.options,D=P?Vp:Hp;return{pages:D(C.pages,N,L),pageParams:D(C.pageParams,E,L)}};if(o&&s.length){const C=o==="backward",E=C?th:Ma,P={pages:s,pageParams:i},R=E(r,P);a=await w(P,R,C)}else{const C=e??s.length;do{const E=l===0?i[0]??r.initialPageParam:Ma(r,a);if(l>0&&E==null)break;a=await w(a,E),l++}while(l<C)}return a};t.options.persister?t.fetchFn=()=>{var f,v;return(v=(f=t.options).persister)==null?void 0:v.call(f,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Ma(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function th(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var nh=(Ad=class{constructor(e={}){M(this,ue);M(this,Rt);M(this,Ot);M(this,In);M(this,jn);M(this,It);M(this,kn);M(this,Ln);I(this,ue,e.queryCache||new Xp),I(this,Rt,e.mutationCache||new eh),I(this,Ot,e.defaultOptions||{}),I(this,In,new Map),I(this,jn,new Map),I(this,It,0)}mount(){Po(this,It)._++,_(this,It)===1&&(I(this,kn,ts.subscribe(async e=>{e&&(await this.resumePausedMutations(),_(this,ue).onFocus())})),I(this,Ln,Or.subscribe(async e=>{e&&(await this.resumePausedMutations(),_(this,ue).onOnline())})))}unmount(){var e,t;Po(this,It)._--,_(this,It)===0&&((e=_(this,kn))==null||e.call(this),I(this,kn,void 0),(t=_(this,Ln))==null||t.call(this),I(this,Ln,void 0))}isFetching(e){return _(this,ue).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return _(this,Rt).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=_(this,ue).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=_(this,ue).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(wt(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return _(this,ue).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=_(this,ue).get(r.queryHash),s=o==null?void 0:o.state.data,i=Up(t,s);if(i!==void 0)return _(this,ue).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return me.batch(()=>_(this,ue).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=_(this,ue).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=_(this,ue);me.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=_(this,ue);return me.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=me.batch(()=>_(this,ue).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(we).catch(we)}invalidateQueries(e,t={}){return me.batch(()=>(_(this,ue).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=me.batch(()=>_(this,ue).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(we)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(we)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=_(this,ue).build(this,t);return n.isStaleByTime(wt(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(we).catch(we)}fetchInfiniteQuery(e){return e.behavior=Na(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(we).catch(we)}ensureInfiniteQueryData(e){return e.behavior=Na(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Or.isOnline()?_(this,Rt).resumePausedMutations():Promise.resolve()}getQueryCache(){return _(this,ue)}getMutationCache(){return _(this,Rt)}getDefaultOptions(){return _(this,Ot)}setDefaultOptions(e){I(this,Ot,e)}setQueryDefaults(e,t){_(this,In).set(Gt(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[..._(this,In).values()],n={};return t.forEach(r=>{Qn(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){_(this,jn).set(Gt(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[..._(this,jn).values()],n={};return t.forEach(r=>{Qn(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={..._(this,Ot).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Zo(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===Rr&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{..._(this,Ot).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){_(this,ue).clear(),_(this,Rt).clear()}},ue=new WeakMap,Rt=new WeakMap,Ot=new WeakMap,In=new WeakMap,jn=new WeakMap,It=new WeakMap,kn=new WeakMap,Ln=new WeakMap,Ad),rh=(Rd=class extends fn{constructor(t,n){super();M(this,ee);M(this,Te);M(this,K);M(this,ur);M(this,xe);M(this,ln);M(this,Dn);M(this,jt);M(this,kt);M(this,dr);M(this,Nn);M(this,Mn);M(this,cn);M(this,un);M(this,Lt);M(this,$n,new Set);this.options=n,I(this,Te,t),I(this,kt,null),I(this,jt,ns()),this.options.experimental_prefetchInRender||_(this,jt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(_(this,K).addObserver(this),$a(_(this,K),this.options)?H(this,ee,fr).call(this):this.updateResult(),H(this,ee,Ei).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return os(_(this,K),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return os(_(this,K),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,H(this,ee,Ti).call(this),H(this,ee,Pi).call(this),_(this,K).removeObserver(this)}setOptions(t){const n=this.options,r=_(this,K);if(this.options=_(this,Te).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ne(this.options.enabled,_(this,K))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");H(this,ee,Ai).call(this),_(this,K).setOptions(this.options),n._defaulted&&!Ar(this.options,n)&&_(this,Te).getQueryCache().notify({type:"observerOptionsUpdated",query:_(this,K),observer:this});const o=this.hasListeners();o&&Fa(_(this,K),r,this.options,n)&&H(this,ee,fr).call(this),this.updateResult(),o&&(_(this,K)!==r||Ne(this.options.enabled,_(this,K))!==Ne(n.enabled,_(this,K))||wt(this.options.staleTime,_(this,K))!==wt(n.staleTime,_(this,K)))&&H(this,ee,xi).call(this);const s=H(this,ee,Ci).call(this);o&&(_(this,K)!==r||Ne(this.options.enabled,_(this,K))!==Ne(n.enabled,_(this,K))||s!==_(this,Lt))&&H(this,ee,Si).call(this,s)}getOptimisticResult(t){const n=_(this,Te).getQueryCache().build(_(this,Te),t),r=this.createResult(n,t);return sh(this,r)&&(I(this,xe,r),I(this,Dn,this.options),I(this,ln,_(this,K).state)),r}getCurrentResult(){return _(this,xe)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),Reflect.get(r,o))})}trackProp(t){_(this,$n).add(t)}getCurrentQuery(){return _(this,K)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=_(this,Te).defaultQueryOptions(t),r=_(this,Te).getQueryCache().build(_(this,Te),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return H(this,ee,fr).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),_(this,xe)))}createResult(t,n){var L;const r=_(this,K),o=this.options,s=_(this,xe),i=_(this,ln),a=_(this,Dn),u=t!==r?t.state:_(this,ur),{state:p}=t;let h={...p},m=!1,g;if(n._optimisticResults){const D=this.hasListeners(),W=!D&&$a(t,n),z=D&&Fa(t,r,n,o);(W||z)&&(h={...h,...La(p.data,t.options)}),n._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:x,errorUpdatedAt:f,status:v}=h;g=h.data;let y=!1;if(n.placeholderData!==void 0&&g===void 0&&v==="pending"){let D;s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(D=s.data,y=!0):D=typeof n.placeholderData=="function"?n.placeholderData((L=_(this,Mn))==null?void 0:L.state.data,_(this,Mn)):n.placeholderData,D!==void 0&&(v="success",g=es(s==null?void 0:s.data,D,n),m=!0)}if(n.select&&g!==void 0&&!y)if(s&&g===(i==null?void 0:i.data)&&n.select===_(this,dr))g=_(this,Nn);else try{I(this,dr,n.select),g=n.select(g),g=es(s==null?void 0:s.data,g,n),I(this,Nn,g),I(this,kt,null)}catch(D){I(this,kt,D)}_(this,kt)&&(x=_(this,kt),g=_(this,Nn),f=Date.now(),v="error");const w=h.fetchStatus==="fetching",C=v==="pending",E=v==="error",P=C&&w,R=g!==void 0,N={status:v,fetchStatus:h.fetchStatus,isPending:C,isSuccess:v==="success",isError:E,isInitialLoading:P,isLoading:P,data:g,dataUpdatedAt:h.dataUpdatedAt,error:x,errorUpdatedAt:f,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>u.dataUpdateCount||h.errorUpdateCount>u.errorUpdateCount,isFetching:w,isRefetching:w&&!C,isLoadingError:E&&!R,isPaused:h.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:E&&R,isStale:ss(t,n),refetch:this.refetch,promise:_(this,jt)};if(this.options.experimental_prefetchInRender){const D=U=>{N.status==="error"?U.reject(N.error):N.data!==void 0&&U.resolve(N.data)},W=()=>{const U=I(this,jt,N.promise=ns());D(U)},z=_(this,jt);switch(z.status){case"pending":t.queryHash===r.queryHash&&D(z);break;case"fulfilled":(N.status==="error"||N.data!==z.value)&&W();break;case"rejected":(N.status!=="error"||N.error!==z.reason)&&W();break}}return N}updateResult(){const t=_(this,xe),n=this.createResult(_(this,K),this.options);if(I(this,ln,_(this,K).state),I(this,Dn,this.options),_(this,ln).data!==void 0&&I(this,Mn,_(this,K)),Ar(n,t))return;I(this,xe,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!_(this,$n).size)return!0;const i=new Set(s??_(this,$n));return this.options.throwOnError&&i.add("error"),Object.keys(_(this,xe)).some(a=>{const l=a;return _(this,xe)[l]!==t[l]&&i.has(l)})};H(this,ee,Vd).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&H(this,ee,Ei).call(this)}},Te=new WeakMap,K=new WeakMap,ur=new WeakMap,xe=new WeakMap,ln=new WeakMap,Dn=new WeakMap,jt=new WeakMap,kt=new WeakMap,dr=new WeakMap,Nn=new WeakMap,Mn=new WeakMap,cn=new WeakMap,un=new WeakMap,Lt=new WeakMap,$n=new WeakMap,ee=new WeakSet,fr=function(t){H(this,ee,Ai).call(this);let n=_(this,K).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(we)),n},xi=function(){H(this,ee,Ti).call(this);const t=wt(this.options.staleTime,_(this,K));if(zt||_(this,xe).isStale||!Yo(t))return;const r=Ca(_(this,xe).dataUpdatedAt,t)+1;I(this,cn,setTimeout(()=>{_(this,xe).isStale||this.updateResult()},r))},Ci=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(_(this,K)):this.options.refetchInterval)??!1},Si=function(t){H(this,ee,Pi).call(this),I(this,Lt,t),!(zt||Ne(this.options.enabled,_(this,K))===!1||!Yo(_(this,Lt))||_(this,Lt)===0)&&I(this,un,setInterval(()=>{(this.options.refetchIntervalInBackground||ts.isFocused())&&H(this,ee,fr).call(this)},_(this,Lt)))},Ei=function(){H(this,ee,xi).call(this),H(this,ee,Si).call(this,H(this,ee,Ci).call(this))},Ti=function(){_(this,cn)&&(clearTimeout(_(this,cn)),I(this,cn,void 0))},Pi=function(){_(this,un)&&(clearInterval(_(this,un)),I(this,un,void 0))},Ai=function(){const t=_(this,Te).getQueryCache().build(_(this,Te),this.options);if(t===_(this,K))return;const n=_(this,K);I(this,K,t),I(this,ur,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Vd=function(t){me.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(_(this,xe))}),_(this,Te).getQueryCache().notify({query:_(this,K),type:"observerResultsUpdated"})})},Rd);function oh(e,t){return Ne(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function $a(e,t){return oh(e,t)||e.state.data!==void 0&&os(e,t,t.refetchOnMount)}function os(e,t,n){if(Ne(t.enabled,e)!==!1&&wt(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&ss(e,t)}return!1}function Fa(e,t,n,r){return(e!==t||Ne(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&ss(e,n)}function ss(e,t){return Ne(t.enabled,e)!==!1&&e.isStaleByTime(wt(t.staleTime,e))}function sh(e,t){return!Ar(e.getCurrentResult(),t)}var ih=(Od=class extends fn{constructor(n,r){super();M(this,pt);M(this,Dt);M(this,Nt);M(this,Pe);M(this,ft);I(this,Dt,n),this.setOptions(r),this.bindMethods(),H(this,pt,Ao).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=_(this,Dt).defaultMutationOptions(n),Ar(this.options,r)||_(this,Dt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:_(this,Pe),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Gt(r.mutationKey)!==Gt(this.options.mutationKey)?this.reset():((o=_(this,Pe))==null?void 0:o.state.status)==="pending"&&_(this,Pe).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=_(this,Pe))==null||n.removeObserver(this)}onMutationUpdate(n){H(this,pt,Ao).call(this),H(this,pt,Ri).call(this,n)}getCurrentResult(){return _(this,Nt)}reset(){var n;(n=_(this,Pe))==null||n.removeObserver(this),I(this,Pe,void 0),H(this,pt,Ao).call(this),H(this,pt,Ri).call(this)}mutate(n,r){var o;return I(this,ft,r),(o=_(this,Pe))==null||o.removeObserver(this),I(this,Pe,_(this,Dt).getMutationCache().build(_(this,Dt),this.options)),_(this,Pe).addObserver(this),_(this,Pe).execute(n)}},Dt=new WeakMap,Nt=new WeakMap,Pe=new WeakMap,ft=new WeakMap,pt=new WeakSet,Ao=function(){var r;const n=((r=_(this,Pe))==null?void 0:r.state)??Da();I(this,Nt,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Ri=function(n){me.batch(()=>{var r,o,s,i,a,l,u,p;if(_(this,ft)&&this.hasListeners()){const h=_(this,Nt).variables,m=_(this,Nt).context;(n==null?void 0:n.type)==="success"?((o=(r=_(this,ft)).onSuccess)==null||o.call(r,n.data,h,m),(i=(s=_(this,ft)).onSettled)==null||i.call(s,n.data,null,h,m)):(n==null?void 0:n.type)==="error"&&((l=(a=_(this,ft)).onError)==null||l.call(a,n.error,h,m),(p=(u=_(this,ft)).onSettled)==null||p.call(u,void 0,n.error,h,m))}this.listeners.forEach(h=>{h(_(this,Nt))})})},Od),Ba=d.createContext(void 0),is=e=>{const t=d.useContext(Ba);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},ah=({client:e,children:t})=>(d.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(Ba.Provider,{value:e,children:t})),Ua=d.createContext(!1),lh=()=>d.useContext(Ua);Ua.Provider;function ch(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var uh=d.createContext(ch()),dh=()=>d.useContext(uh),fh=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},ph=e=>{d.useEffect(()=>{e.clearReset()},[e])},hh=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Ra(n,[e.error,r])),mh=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},gh=(e,t)=>e.isLoading&&e.isFetching&&!t,vh=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Wa=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function yh(e,t,n){var h,m,g,x,f;if(typeof e!="object"||Array.isArray(e))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=lh(),o=dh(),s=is(),i=s.defaultQueryOptions(e);(m=(h=s.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||m.call(h,i),i.queryFn||console.error(`[${i.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`),i._optimisticResults=r?"isRestoring":"optimistic",mh(i),fh(i,o),ph(o);const a=!s.getQueryCache().get(i.queryHash),[l]=d.useState(()=>new t(s,i)),u=l.getOptimisticResult(i),p=!r&&e.subscribed!==!1;if(d.useSyncExternalStore(d.useCallback(v=>{const y=p?l.subscribe(me.batchCalls(v)):we;return l.updateResult(),y},[l,p]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),d.useEffect(()=>{l.setOptions(i)},[i,l]),vh(i,u))throw Wa(i,l,o);if(hh({result:u,errorResetBoundary:o,throwOnError:i.throwOnError,query:s.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw u.error;if((x=(g=s.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||x.call(g,i,u),i.experimental_prefetchInRender&&!zt&&gh(u,r)){const v=a?Wa(i,l,o):(f=s.getQueryCache().get(i.queryHash))==null?void 0:f.promise;v==null||v.catch(we).finally(()=>{l.updateResult()})}return i.notifyOnChangeProps?u:l.trackResult(u)}function Ha(e,t){return yh(e,rh)}function jr(e,t){const n=is(),[r]=d.useState(()=>new ih(n,e));d.useEffect(()=>{r.setOptions(e)},[r,e]);const o=d.useSyncExternalStore(d.useCallback(i=>r.subscribe(me.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=d.useCallback((i,a)=>{r.mutate(i,a).catch(we)},[r]);if(o.error&&Ra(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}const kr={STALE_TIME:1e3*60*5,GC_TIME:1e3*60*10,RETRY_COUNT:1,RETRY_DELAY:1e3},Va={refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,staleTime:kr.STALE_TIME,gcTime:kr.GC_TIME,retry:kr.RETRY_COUNT,retryDelay:kr.RETRY_DELAY,enable:!0},Lr=e=>e instanceof Error?e.message:String(e),za=(e,t,n)=>{const r=is(),{notify:o}=Qo(),{createFn:s,readFn:i,readByIdFn:a,updateFn:l,deleteFn:u,partialUpdateFn:p}=n,h=()=>{r.invalidateQueries({queryKey:[e]})},m=(E,P,R,A)=>o(A!=null&&A.overrideSuccessMessage?A==null?void 0:A.overrideSuccessMessage(E,P):R,"success"),g=(E,P,R,A)=>o(A!=null&&A.overrideErrorMessage?A==null?void 0:A.overrideErrorMessage(E,P):R,"error");return{useCreate:E=>jr({mutationFn:P=>s(P),onSuccess:P=>{h(),m(t,P,`${t} created successfully`,E)},onError:P=>{g(t,P,`Error creating ${t}: ${Lr(P)}`,E)}}),useReadQuery:E=>Ha({queryKey:[e],queryFn:i,...Va,...E}),useReadByIdQuery:(E,P)=>Ha({queryKey:[e,E],queryFn:()=>a(E),...Va,enabled:!!E,...P}),useUpdate:E=>jr({mutationFn:({id:P,data:R})=>l(P,R),onSuccess:P=>{h(),m(t,P,`${t} updated successfully`,E)},onError:P=>{g(t,P,`Error updating ${t}: ${Lr(P)}`,E)}}),usePartialUpdate:E=>p&&jr({mutationFn:({id:P,data:R})=>p(P,R),onSuccess:P=>{h(),m(t,P,`${t} updated successfully`,E)},onError:P=>{g(t,P,`Error updating ${t}: ${Lr(P)}`,E)}}),useDelete:E=>jr({mutationFn:P=>u(P),onSuccess:()=>{h(),m(t,null,`${t} deleted successfully`,E)},onError:P=>{g(t,P,`Error deleting ${t}: ${Lr(P)}`,E)}}),invalidateQueries:h}},bh=(e,t)=>za(e,t,{createFn:n=>fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).then(r=>r.json()),deleteFn:n=>fetch(`${e}/${n}`,{method:"DELETE"}).then(r=>{if(!r.ok)throw new Error(`Error deleting: ${r.status}`)}),readByIdFn:n=>fetch(`${e}/${n}`).then(r=>r.json()),readFn:()=>fetch(e).then(n=>n.json()),updateFn:(n,r)=>fetch(`${e}/${n}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(o=>o.json()),partialUpdateFn:(n,r)=>fetch(`${e}/${n}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(o=>o.json())}),wh={SINGLE_TENANT:"single-tenant"},_h={COOKIE:"cookie"},as="tenant",Ga="tenant",qa="tenant",xh=wh.SINGLE_TENANT,Ch=_h.COOKIE,Sh={mode:xh,clientSideMode:Ch,tenantIDPProvisioningStrategy:"none"};class Eh{setTenant(t,n){const r=new URL(window.location.href);r.searchParams.set(Ga,t.name),window.location.href=r.toString()}getCurrentTenantName(){const t=new URL(window.location.href);return new URLSearchParams(t.search).get(Ga)}}class Th{setTenant(t,n){sessionStorage.setItem(qa,t.name),window.location.reload()}getCurrentTenantName(){return sessionStorage.getItem(qa)}}/*! js-cookie v3.0.5 | MIT */function Dr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var Ph={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function ls(e,t){function n(o,s,i){if(!(typeof document>"u")){i=Dr({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in i)i[l]&&(a+="; "+l,i[l]!==!0&&(a+="="+i[l].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+a}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],i={},a=0;a<s.length;a++){var l=s[a].split("="),u=l.slice(1).join("=");try{var p=decodeURIComponent(l[0]);if(i[p]=e.read(u,p),o===p)break}catch{}}return o?i[o]:i}}return Object.create({set:n,get:r,remove:function(o,s){n(o,"",Dr({},s,{expires:-1}))},withAttributes:function(o){return ls(this.converter,Dr({},this.attributes,o))},withConverter:function(o){return ls(Dr({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var cs=ls(Ph,{path:"/"});class Ah{setTenant(t,n){t?cs.set(as,t.name):cs.remove(as),window.location.reload()}getCurrentTenantName(){return cs.get(as)}}class Rh{extractSubdomain(t){if(t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t))return"";const n=t.split(".");if(n.length<2||n.length===2||n[0]==="www"&&n.length===3)return"";const o=(n[0]==="www"?n.slice(1):n).slice(0,-2);return o.length>0?o.join("."):""}getBaseDomain(t){const n=t.split(".");return t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t)||n.length<=2?t:n.slice(-2).join(".")}setTenant(t,n){var u;const r=(u=n.urlPatterns)==null?void 0:u.find(p=>p.patternType==="subdomain"&&p.tenantId===t.id&&p.isActive);if(!r)throw new Error(`No active subdomain pattern found for tenant '${t.name}'`);const o=new URL(window.location.href),s=r.patternValue,i=o.hostname,a=this.getBaseDomain(i),l=s?`${s}.${a}`:a;o.hostname=l,window.location.href=o.toString()}getCurrentTenantName(){const t=window.location.hostname;return this.extractSubdomain(t)||null}}const Ka={queryParams:new Eh,sessionStorage:new Th,cookie:new Ah,subdomain:new Rh},Oh=e=>{const t=Ka[e.clientSideMode];if(!t)throw new Error(`Client side tenant mode '${e.clientSideMode}' is not supported ${JSON.stringify({strategies:Ka},null,2)}`);return t},Ih=(e,t,n)=>{const r=t.find(s=>s.name===n);if(!r)throw Error("No tenant permission");return Oh(e).setTenant(r,e),r},jh=()=>{const[e,t]=Wn(),{tenants:n=[],currentTenant:r,tenantConfig:o=Sh}=e,s=S.useCallback(i=>{const a=Ih(o,n,i);t({...e,currentTenant:a})},[o,e]);return{tenants:n,currentTenant:r,tenantConfig:o,selectTenant:s}};function kh(e){if(!e.ok)throw console.error(e),new Error(e.statusText)}async function Nr(e,t,n,r){const o=await e(`/user-states/${encodeURIComponent(t)}/${encodeURIComponent(n)}`,r);return kh(o),o}class Mr{static async get(t,n,r){const s=await Nr(t,n,r,{method:"GET",headers:{"Content-Type":"application/json"}});return s.status===204?null:await s.json()}static async create(t,n,r,o){const s={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await Nr(t,n,r,s)).json()}static async update(t,n,r,o){const s={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await Nr(t,n,r,s)).json()}static async delete(t,n,r){return await Nr(t,n,r,{method:"DELETE",headers:{"Content-Type":"application/json"}}),null}}const Lh=e=>{const t=$o("@bluealba/pae-nestjs-gateway-service"),n=Zi();if(!n)throw new Error("You must call the useUserState hook within a PAE application.");const[r,o]=S.useState(null),[s,i]=S.useState(!1),[a,l]=S.useState(!1),[u,p]=S.useState(null),h=(w,C)=>S.useCallback(async({newValue:E,shouldThrowError:P}={})=>{try{l(!0),p(null);const R=await w(t,n,e,E);return o(R),R?R.value:null}catch(R){if(p(R==null?void 0:R.message),console.error(`Failed to ${C} ${e}:`,R),P)throw R;return null}finally{l(!1)}},[t,n,e]),m=h(Mr.get,"fetch"),g=h(Mr.create,"create"),x=h(Mr.update,"update"),f=h(Mr.delete,"delete"),v=S.useCallback(async()=>{try{await m()}finally{i(!0)}},[m]);S.useEffect(()=>{v()},[v]);const y=S.useCallback(async(w,C=!1)=>r==null?await g({newValue:w,shouldThrowError:C}):await x({newValue:w,shouldThrowError:C}),[r,g,x]);return{value:r?r.value:null,hasFetched:s,loading:a,error:u,setValue:y,createValue:g,updateValue:x,deleteValue:f}},Qa="__PAE_EXTENSION_POINT_REACT_CONTENT_EMPTY__",Dh=({module:e,point:t,children:n})=>(ta(e,t,n??Qa),null),Ya=({name:e,children:t,...n})=>{const r=ea(e);if(r===Qa)return null;if(!r)return c.jsx(c.Fragment,{children:t??null});if(Nh(r)){const o=r;return c.jsx(o,{...n})}else return r},Nh=e=>typeof e=="function",Mh=(e,t)=>{const n=r=>(t=t||e.displayName||e.name||"?",c.jsx(Ya,{name:t,...r,children:c.jsx(e,{...r})}));return n.displayName=`extensionPoint(${t})`,n},Za="single-spa:app-change";function $h(){const[e,t]=S.useState(Xa());return S.useEffect(()=>{const n=()=>{t(Xa())};return window.addEventListener(Za,n),()=>{window.removeEventListener(Za,n)}},[]),e}function Xa(){return he.getAppNames().reduce((t,n)=>(he.getAppStatus(n)?t[n]=he.getAppStatus(n):t[n]="NOT_LOADED",t),{})}function Fh(e){const n=$h()[e]??"LOAD_ERROR";return{statusName:n,isLoading:n==="LOADING_SOURCE_CODE"||n==="BOOTSTRAPPING"||n==="MOUNTING",isMounted:n==="MOUNTED",isBroken:n==="SKIP_BECAUSE_BROKEN"||n==="LOAD_ERROR"}}const Ja=({appName:e})=>c.jsx("div",{children:c.jsxs("p",{children:["Loading ",e,"..."]})});Ja.displayName="BaseLoading";const el=({appName:e})=>c.jsxs("div",{children:[c.jsx("p",{children:"Something went wrong..."}),c.jsxs("p",{children:["Failed to load ",e]})]});el.displayName="BaseError";const Bh={display:"flex",flexDirection:"column",flex:1},tl=S.forwardRef((e,t)=>c.jsx("div",{ref:t,style:Bh,...e}));tl.displayName="BaseContainer";const Uh="pae-app:",nl=S.forwardRef(({appName:e,LoadingComponent:t=Ja,ErrorComponent:n=el,ContainerComponent:r=tl,...o},s)=>{const i=Fh(e);return c.jsxs(r,{ref:s,...o,id:`${Uh}${e}`,children:[i.isLoading&&c.jsx(t,{appName:e}),i.isBroken&&c.jsx(n,{appName:e})]})});nl.displayName="ModulePlaceHolder";const us=({operations:e,children:t,forbiddenContent:n})=>{var o;const{hasAccess:r}=Gn();if(!r(...e)){if(!n)return null;if(typeof n=="function")if((o=n==null?void 0:n.prototype)!=null&&o.isReactComponent){const s=n;return c.jsx(s,{operations:e})}else return n({operations:e});return S.isValidElement(n)?n:null}return t};us.displayName="Authorized";const Wh=({eventName:e,listener:t})=>(na(e,t),null),Hh=()=>c.jsx("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:c.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M8.737 8.737a21.49 21.49 0 0 1 3.308-2.724m0 0c3.063-2.026 5.99-2.641 7.331-1.3 1.827 1.828.026 6.591-4.023 10.64-4.049 4.049-8.812 5.85-10.64 4.023-1.33-1.33-.736-4.218 1.249-7.253m6.083-6.11c-3.063-2.026-5.99-2.641-7.331-1.3-1.827 1.828-.026 6.591 4.023 10.64m3.308-9.34a21.497 21.497 0 0 1 3.308 2.724m2.775 3.386c1.985 3.035 2.579 5.923 1.248 7.253-1.336 1.337-4.245.732-7.295-1.275M14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})}),rl=({applicationName:e})=>{const t=Ki(e);if(t)if(typeof t=="function"){const n=t;return c.jsx(n,{})}else return t;return c.jsx(Hh,{})};rl.displayName="ApplicationIcon";const ol=()=>c.jsx("svg",{width:"28",height:"28",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M15.9998 29.3337C8.63584 29.3337 2.6665 23.3643 2.6665 16.0003C2.6665 8.63633 8.63584 2.66699 15.9998 2.66699C23.3638 2.66699 29.3332 8.63633 29.3332 16.0003C29.3332 23.3643 23.3638 29.3337 15.9998 29.3337ZM15.9998 26.667C18.8288 26.667 21.5419 25.5432 23.5423 23.5428C25.5427 21.5424 26.6665 18.8293 26.6665 16.0003C26.6665 13.1713 25.5427 10.4582 23.5423 8.45785C21.5419 6.45747 18.8288 5.33366 15.9998 5.33366C13.1709 5.33366 10.4578 6.45747 8.45736 8.45785C6.45698 10.4582 5.33317 13.1713 5.33317 16.0003C5.33317 18.8293 6.45698 21.5424 8.45736 23.5428C10.4578 25.5432 13.1709 26.667 15.9998 26.667ZM9.33317 20.427C12.2066 20.2205 14.9088 18.9833 16.9425 16.943C18.9828 14.9092 20.2201 12.2071 20.4265 9.33366C21.4117 9.99003 22.2389 10.8569 22.8486 11.8716C23.4582 12.8864 23.835 14.0239 23.9519 15.2019C24.0687 16.3799 23.9226 17.5692 23.5242 18.684C23.1257 19.7987 22.4849 20.8112 21.6478 21.6483C20.8107 22.4853 19.7982 23.1262 18.6835 23.5247C17.5687 23.9231 16.3795 24.0692 15.2014 23.9523C14.0234 23.8355 12.8859 23.4587 11.8712 22.8491C10.8564 22.2394 9.98954 21.4122 9.33317 20.427Z",fill:"currentColor"})});ol.displayName="DarkModeIcon";const sl=()=>c.jsx("svg",{width:"28",height:"28",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",transform:"matrix(-1,1.2246467991473532e-16,-1.2246467991473532e-16,-1,0,0)",children:c.jsx("path",{d:"M15.9998 29.3337C8.63584 29.3337 2.6665 23.3643 2.6665 16.0003C2.6665 8.63633 8.63584 2.66699 15.9998 2.66699C23.3638 2.66699 29.3332 8.63633 29.3332 16.0003C29.3332 23.3643 23.3638 29.3337 15.9998 29.3337ZM15.9998 26.667C18.8288 26.667 21.5419 25.5432 23.5423 23.5428C25.5427 21.5424 26.6665 18.8293 26.6665 16.0003C26.6665 13.1713 25.5427 10.4582 23.5423 8.45785C21.5419 6.45747 18.8288 5.33366 15.9998 5.33366C13.1709 5.33366 10.4578 6.45747 8.45736 8.45785C6.45698 10.4582 5.33317 13.1713 5.33317 16.0003C5.33317 18.8293 6.45698 21.5424 8.45736 23.5428C10.4578 25.5432 13.1709 26.667 15.9998 26.667ZM9.33317 20.427C12.2066 20.2205 14.9088 18.9833 16.9425 16.943C18.9828 14.9092 20.2201 12.2071 20.4265 9.33366C21.4117 9.99003 22.2389 10.8569 22.8486 11.8716C23.4582 12.8864 23.835 14.0239 23.9519 15.2019C24.0687 16.3799 23.9226 17.5692 23.5242 18.684C23.1257 19.7987 22.4849 20.8112 21.6478 21.6483C20.8107 22.4853 19.7982 23.1262 18.6835 23.5247C17.5687 23.9231 16.3795 24.0692 15.2014 23.9523C14.0234 23.8355 12.8859 23.4587 11.8712 22.8491C10.8564 22.2394 9.98954 21.4122 9.33317 20.427Z",fill:"currentColor"})});sl.displayName="LightModeIcon";const ds={container:"container__zBqbk",expanded:"expanded__EbsIr",label:"label__cdMnm"};function il(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=il(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function k(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=il(e))&&(r&&(r+=" "),r+=t);return r}const Vh=e=>e.toLowerCase().trim().split(" ").join("-"),zh=e=>`${Vh(e)}-theme`,al=()=>{const{platformName:e="Platform"}=ko(),t=zh(e),[n,r]=S.useState(()=>{const s=localStorage.getItem(t);return s==="light"||s==="dark"?s:"light"}),o=s=>{localStorage.setItem(t,s),r(s)};return S.useEffect(()=>{document.documentElement.setAttribute("data-theme",n)},[n]),{theme:n,setTheme:o}},$r={spinner:"spinner__fakUN","spinner-rotation":"spinner-rotation__wUmPV",spinnerRotation:"spinner-rotation__wUmPV",button:"button__8FA9H","button--contained-primary":"button--contained-primary__stkTx",buttonContainedPrimary:"button--contained-primary__stkTx","button--outlined-primary":"button--outlined-primary__KZ1ww",buttonOutlinedPrimary:"button--outlined-primary__KZ1ww","button--text-primary":"button--text-primary__GLTfm",buttonTextPrimary:"button--text-primary__GLTfm","button--contained-danger":"button--contained-danger__L9ehT",buttonContainedDanger:"button--contained-danger__L9ehT","button--outlined-danger":"button--outlined-danger__eoYLd",buttonOutlinedDanger:"button--outlined-danger__eoYLd","button--text-danger":"button--text-danger__Sw-ha",buttonTextDanger:"button--text-danger__Sw-ha",icon:"icon__--umH"},Fr=S.forwardRef(({variant:e="contained",colorScheme:t="primary",loading:n=!1,IconComponent:r,className:o,children:s,...i},a)=>{const l=k($r.button,$r[`button--${e}-${t}`],o);return c.jsxs("button",{ref:a,className:l,...i,children:[n?c.jsx("div",{className:$r.spinner}):r&&c.jsx(r,{className:$r.icon}),s]})});Fr.displayName="Button";const Br={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"},fs={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 fs)Object.freeze(fs[e]);const ll=Object.freeze(fs);var cl={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function Gh(e){var p,h;var t,n=[],r=1,o;if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),ll[e])n=ll[e].slice(),o="rgb";else if(e==="transparent")r=0,o="rgb",n=[0,0,0];else if(e[0]==="#"){var s=e.slice(1),i=s.length,a=i<=4;r=1,a?(n=[parseInt(s[0]+s[0],16),parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16)],i===4&&(r=parseInt(s[3]+s[3],16)/255)):(n=[parseInt(s[0]+s[1],16),parseInt(s[2]+s[3],16),parseInt(s[4]+s[5],16)],i===8&&(r=parseInt(s[6]+s[7],16)/255)),n[0]||(n[0]=0),n[1]||(n[1]=0),n[2]||(n[2]=0),o="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var l=t[1];o=l.replace(/a$/,"");var u=o==="cmyk"?4:o==="gray"?1:3;n=t[2].trim().split(/\s*[,\/]\s*|\s+/),o==="color"&&(o=n.shift()),n=n.map(function(m,g){if(m[m.length-1]==="%")return m=parseFloat(m)/100,g===3?m:o==="rgb"?m*255:o[0]==="h"||o[0]==="l"&&!g?m*100:o==="lab"?m*125:o==="lch"?g<2?m*150:m*360:o[0]==="o"&&!g?m:o==="oklab"?m*.4:o==="oklch"?g<2?m*.4:m*360:m;if(o[g]==="h"||g===2&&o[o.length-1]==="h"){if(cl[m]!==void 0)return cl[m];if(m.endsWith("deg"))return parseFloat(m);if(m.endsWith("turn"))return parseFloat(m)*360;if(m.endsWith("grad"))return parseFloat(m)*360/400;if(m.endsWith("rad"))return parseFloat(m)*180/Math.PI}return m==="none"?0:parseFloat(m)}),r=n.length>u?n.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(n=e.match(/([0-9]+)/g).map(function(m){return parseFloat(m)}),o=((h=(p=e.match(/([a-z])/ig))==null?void 0:p.join(""))==null?void 0:h.toLowerCase())||"rgb");return{space:o,values:n,alpha:r}}const qh=(e,t)=>{const{space:n,values:r}=Gh(e);return n[0]==="h"?`${n}a(${r[0]}, ${r[1]}%, ${r[2]}%, ${t})`:`${n}a(${r}, ${t})`},ps=S.forwardRef(({children:e,color:t,className:n,customColor:r,size:o="small",style:s,...i},a)=>{const l=r?{color:r,background:qh(r,.1)}:{},u=k(Br.Badge,Br[`Badge--${o}`],{[Br[`Badge--${t}`]]:!!t},n);return c.jsx("span",{ref:a,className:u,style:{...s,...l},...i,children:e})});ps.displayName="Badge";const hs=S.forwardRef(({children:e,className:t,...n},r)=>{const o=k(Br.Badges,t);return c.jsx("div",{ref:r,className:o,...n,children:e})});hs.displayName="Badges";const ul=({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...s})=>c.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:o,...s,children:[c.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),c.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"})]}),dl=({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...s})=>c.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:o,...s,children:[c.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),c.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}),c.jsx("path",{d:"m9 12 2 2 4-4"})]}),Kh={CopyToClipboardButton:"CopyToClipboardButton__2Nd2m"},Qh=({content:e})=>{const[t,n]=Yh(),{notify:r}=Qo(),o=t?dl:ul,s=S.useCallback(async()=>{await n(e)&&r("Copied to the Clipboard !","success")},[e,r]);return c.jsx(o,{className:Kh.CopyToClipboardButton,size:18,onClick:s})},Yh=()=>{const[e,t]=S.useState(!1);return[e,async r=>{try{return await navigator.clipboard.writeText(r),t(!0),setTimeout(()=>t(!1),2e3),!0}catch(o){return console.error("Failed to copy text: ",o),!1}}]},fl={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"},pl=S.forwardRef(({children:e,className:t,orientation:n="vertical",...r},o)=>{const s=k(fl.FieldGroup,fl[`FieldGroup--${n}`],t);return c.jsx("div",{ref:o,className:s,...r,children:e})});pl.displayName="FieldGroup";const hl={Input:"Input__uS0sb",Error:"Error__-DQpw"},Ur=S.forwardRef(({className:e,error:t,...n},r)=>{const o=k(hl.Input,t&&hl.Error,e);return c.jsx("input",{ref:r,className:o,...n})});Ur.displayName="Input";const Zh={Error:"Error__N4OP5"},ml=S.forwardRef(({children:e,className:t,...n},r)=>{const o=k(Zh.Error,t);return c.jsx("span",{ref:r,className:o,...n,children:e})});ml.displayName="InputError";const gl={Label:"Label__VYUvW",Error:"Error__Eu6DI"},vl=S.forwardRef(({children:e,className:t,error:n,...r},o)=>{const s=k(gl.Label,n&&gl.Error,t);return c.jsx("label",{ref:o,className:s,...r,children:e})});vl.displayName="Label";const ms={Select:"Select__giqpe",Chevron:"Chevron__YvhBd"},yl=S.forwardRef(({children:e,className:t,...n},r)=>{const o=k(ms.Option,t);return c.jsx("option",{ref:r,className:o,...n,children:e})});yl.displayName="Option";const gs=S.forwardRef(({children:e,className:t,...n},r)=>{const o=k(ms.Select,t);return c.jsxs("div",{className:o,children:[c.jsx("select",{ref:r,...n,children:e}),c.jsx("div",{className:ms.Chevron,children:c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M4 6L8 10L12 6",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})})]})});gs.displayName="Select",gs.Option=yl;function bl(e,[t,n]){return Math.min(n,Math.max(t,e))}function Z(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Xh(e,t){const n=d.createContext(t),r=s=>{const{children:i,...a}=s,l=d.useMemo(()=>a,Object.values(a));return c.jsx(n.Provider,{value:l,children:i})};r.displayName=e+"Provider";function o(s){const i=d.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Yn(e,t=[]){let n=[];function r(s,i){const a=d.createContext(i),l=n.length;n=[...n,i];const u=h=>{var y;const{scope:m,children:g,...x}=h,f=((y=m==null?void 0:m[e])==null?void 0:y[l])||a,v=d.useMemo(()=>x,Object.values(x));return c.jsx(f.Provider,{value:v,children:g})};u.displayName=s+"Provider";function p(h,m){var f;const g=((f=m==null?void 0:m[e])==null?void 0:f[l])||a,x=d.useContext(g);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[u,p]}const o=()=>{const s=n.map(i=>d.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return d.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,Jh(o,...t)]}function Jh(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:u})=>{const h=l(s)[`__scope${u}`];return{...a,...h}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function wl(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function pn(...e){return t=>{let n=!1;const r=e.map(o=>{const s=wl(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():wl(e[o],null)}}}}function ce(...e){return d.useCallback(pn(...e),e)}function _l(e){const t=e1(e),n=d.forwardRef((r,o)=>{const{children:s,...i}=r,a=d.Children.toArray(s),l=a.find(n1);if(l){const u=l.props.children,p=a.map(h=>h===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return c.jsx(t,{...i,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,p):null})}return c.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function e1(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const i=o1(o),a=r1(s,o.props);return o.type!==d.Fragment&&(a.ref=r?pn(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var t1=Symbol("radix.slottable");function n1(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===t1}function r1(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function o1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function s1(e){const t=e+"CollectionProvider",[n,r]=Yn(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=f=>{const{scope:v,children:y}=f,w=S.useRef(null),C=S.useRef(new Map).current;return c.jsx(o,{scope:v,itemMap:C,collectionRef:w,children:y})};i.displayName=t;const a=e+"CollectionSlot",l=_l(a),u=S.forwardRef((f,v)=>{const{scope:y,children:w}=f,C=s(a,y),E=ce(v,C.collectionRef);return c.jsx(l,{ref:E,children:w})});u.displayName=a;const p=e+"CollectionItemSlot",h="data-radix-collection-item",m=_l(p),g=S.forwardRef((f,v)=>{const{scope:y,children:w,...C}=f,E=S.useRef(null),P=ce(v,E),R=s(p,y);return S.useEffect(()=>(R.itemMap.set(E,{ref:E,...C}),()=>void R.itemMap.delete(E))),c.jsx(m,{[h]:"",ref:P,children:w})});g.displayName=p;function x(f){const v=s(e+"CollectionConsumer",f);return S.useCallback(()=>{const w=v.collectionRef.current;if(!w)return[];const C=Array.from(w.querySelectorAll(`[${h}]`));return Array.from(v.itemMap.values()).sort((R,A)=>C.indexOf(R.ref.current)-C.indexOf(A.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:i,Slot:u,ItemSlot:g},x,r]}var i1=d.createContext(void 0);function a1(e){const t=d.useContext(i1);return e||t||"ltr"}function l1(e){const t=c1(e),n=d.forwardRef((r,o)=>{const{children:s,...i}=r,a=d.Children.toArray(s),l=a.find(d1);if(l){const u=l.props.children,p=a.map(h=>h===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return c.jsx(t,{...i,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,p):null})}return c.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function c1(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const i=p1(o),a=f1(s,o.props);return o.type!==d.Fragment&&(a.ref=r?pn(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var u1=Symbol("radix.slottable");function d1(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===u1}function f1(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function p1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var h1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ie=h1.reduce((e,t)=>{const n=l1(`Primitive.${t}`),r=d.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function m1(e,t){e&&hr.flushSync(()=>e.dispatchEvent(t))}function qt(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function g1(e,t=globalThis==null?void 0:globalThis.document){const n=qt(e);d.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var v1="DismissableLayer",vs="dismissableLayer.update",y1="dismissableLayer.pointerDownOutside",b1="dismissableLayer.focusOutside",xl,Cl=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Wr=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,u=d.useContext(Cl),[p,h]=d.useState(null),m=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=d.useState({}),x=ce(t,A=>h(A)),f=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=f.indexOf(v),w=p?f.indexOf(p):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,E=w>=y,P=x1(A=>{const N=A.target,L=[...u.branches].some(D=>D.contains(N));!E||L||(o==null||o(A),i==null||i(A),A.defaultPrevented||a==null||a())},m),R=C1(A=>{const N=A.target;[...u.branches].some(D=>D.contains(N))||(s==null||s(A),i==null||i(A),A.defaultPrevented||a==null||a())},m);return g1(A=>{w===u.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},m),d.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(xl=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),Sl(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=xl)}},[p,m,n,u]),d.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),Sl())},[p,u]),d.useEffect(()=>{const A=()=>g({});return document.addEventListener(vs,A),()=>document.removeEventListener(vs,A)},[]),c.jsx(ie.div,{...l,ref:x,style:{pointerEvents:C?E?"auto":"none":void 0,...e.style},onFocusCapture:Z(e.onFocusCapture,R.onFocusCapture),onBlurCapture:Z(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:Z(e.onPointerDownCapture,P.onPointerDownCapture)})});Wr.displayName=v1;var w1="DismissableLayerBranch",_1=d.forwardRef((e,t)=>{const n=d.useContext(Cl),r=d.useRef(null),o=ce(t,r);return d.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),c.jsx(ie.div,{...e,ref:o})});_1.displayName=w1;function x1(e,t=globalThis==null?void 0:globalThis.document){const n=qt(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){El(y1,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function C1(e,t=globalThis==null?void 0:globalThis.document){const n=qt(e),r=d.useRef(!1);return d.useEffect(()=>{const o=s=>{s.target&&!r.current&&El(b1,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Sl(){const e=new CustomEvent(vs);document.dispatchEvent(e)}function El(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?m1(o,s):o.dispatchEvent(s)}var ys=0;function Tl(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Pl()),document.body.insertAdjacentElement("beforeend",e[1]??Pl()),ys++,()=>{ys===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ys--}},[])}function Pl(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var bs="focusScope.autoFocusOnMount",ws="focusScope.autoFocusOnUnmount",Al={bubbles:!1,cancelable:!0},S1="FocusScope",_s=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,l]=d.useState(null),u=qt(o),p=qt(s),h=d.useRef(null),m=ce(t,f=>l(f)),g=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let f=function(C){if(g.paused||!a)return;const E=C.target;a.contains(E)?h.current=E:_t(h.current,{select:!0})},v=function(C){if(g.paused||!a)return;const E=C.relatedTarget;E!==null&&(a.contains(E)||_t(h.current,{select:!0}))},y=function(C){if(document.activeElement===document.body)for(const P of C)P.removedNodes.length>0&&_t(a)};document.addEventListener("focusin",f),document.addEventListener("focusout",v);const w=new MutationObserver(y);return a&&w.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",v),w.disconnect()}}},[r,a,g.paused]),d.useEffect(()=>{if(a){Il.add(g);const f=document.activeElement;if(!a.contains(f)){const y=new CustomEvent(bs,Al);a.addEventListener(bs,u),a.dispatchEvent(y),y.defaultPrevented||(E1(O1(Rl(a)),{select:!0}),document.activeElement===f&&_t(a))}return()=>{a.removeEventListener(bs,u),setTimeout(()=>{const y=new CustomEvent(ws,Al);a.addEventListener(ws,p),a.dispatchEvent(y),y.defaultPrevented||_t(f??document.body,{select:!0}),a.removeEventListener(ws,p),Il.remove(g)},0)}}},[a,u,p,g]);const x=d.useCallback(f=>{if(!n&&!r||g.paused)return;const v=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,y=document.activeElement;if(v&&y){const w=f.currentTarget,[C,E]=T1(w);C&&E?!f.shiftKey&&y===E?(f.preventDefault(),n&&_t(C,{select:!0})):f.shiftKey&&y===C&&(f.preventDefault(),n&&_t(E,{select:!0})):y===w&&f.preventDefault()}},[n,r,g.paused]);return c.jsx(ie.div,{tabIndex:-1,...i,ref:m,onKeyDown:x})});_s.displayName=S1;function E1(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(_t(r,{select:t}),document.activeElement!==n)return}function T1(e){const t=Rl(e),n=Ol(t,e),r=Ol(t.reverse(),e);return[n,r]}function Rl(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ol(e,t){for(const n of e)if(!P1(n,{upTo:t}))return n}function P1(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 A1(e){return e instanceof HTMLInputElement&&"select"in e}function _t(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&A1(e)&&t&&e.select()}}var Il=R1();function R1(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=jl(e,t),e.unshift(t)},remove(t){var n;e=jl(e,t),(n=e[0])==null||n.resume()}}}function jl(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function O1(e){return e.filter(t=>t.tagName!=="A")}var ve=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{},I1=d[" useId ".trim().toString()]||(()=>{}),j1=0;function Kt(e){const[t,n]=d.useState(I1());return ve(()=>{n(r=>r??String(j1++))},[e]),e||(t?`radix-${t}`:"")}const k1=["top","right","bottom","left"],xt=Math.min,Oe=Math.max,Hr=Math.round,Vr=Math.floor,qe=e=>({x:e,y:e}),L1={left:"right",right:"left",bottom:"top",top:"bottom"},D1={start:"end",end:"start"};function xs(e,t,n){return Oe(e,xt(t,n))}function lt(e,t){return typeof e=="function"?e(t):e}function ct(e){return e.split("-")[0]}function hn(e){return e.split("-")[1]}function Cs(e){return e==="x"?"y":"x"}function Ss(e){return e==="y"?"height":"width"}const N1=new Set(["top","bottom"]);function Ke(e){return N1.has(ct(e))?"y":"x"}function Es(e){return Cs(Ke(e))}function M1(e,t,n){n===void 0&&(n=!1);const r=hn(e),o=Es(e),s=Ss(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=zr(i)),[i,zr(i)]}function $1(e){const t=zr(e);return[Ts(e),t,Ts(t)]}function Ts(e){return e.replace(/start|end/g,t=>D1[t])}const kl=["left","right"],Ll=["right","left"],F1=["top","bottom"],B1=["bottom","top"];function U1(e,t,n){switch(e){case"top":case"bottom":return n?t?Ll:kl:t?kl:Ll;case"left":case"right":return t?F1:B1;default:return[]}}function W1(e,t,n,r){const o=hn(e);let s=U1(ct(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Ts)))),s}function zr(e){return e.replace(/left|right|bottom|top/g,t=>L1[t])}function H1(e){return{top:0,right:0,bottom:0,left:0,...e}}function Dl(e){return typeof e!="number"?H1(e):{top:e,right:e,bottom:e,left:e}}function Gr(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Nl(e,t,n){let{reference:r,floating:o}=e;const s=Ke(t),i=Es(t),a=Ss(i),l=ct(t),u=s==="y",p=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,m=r[a]/2-o[a]/2;let g;switch(l){case"top":g={x:p,y:r.y-o.height};break;case"bottom":g={x:p,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:h};break;case"left":g={x:r.x-o.width,y:h};break;default:g={x:r.x,y:r.y}}switch(hn(t)){case"start":g[i]-=m*(n&&u?-1:1);break;case"end":g[i]+=m*(n&&u?-1:1);break}return g}async function V1(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:h="floating",altBoundary:m=!1,padding:g=0}=lt(t,e),x=Dl(g),v=a[m?h==="floating"?"reference":"floating":h],y=Gr(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:p,strategy:l})),w=h==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),E=await(s.isElement==null?void 0:s.isElement(C))?await(s.getScale==null?void 0:s.getScale(C))||{x:1,y:1}:{x:1,y:1},P=Gr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:C,strategy:l}):w);return{top:(y.top-P.top+x.top)/E.y,bottom:(P.bottom-y.bottom+x.bottom)/E.y,left:(y.left-P.left+x.left)/E.x,right:(P.right-y.right+x.right)/E.x}}const z1=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:h}=Nl(u,r,l),m=r,g={},x=0;for(let v=0;v<a.length;v++){var f;const{name:y,fn:w}=a[v],{x:C,y:E,data:P,reset:R}=await w({x:p,y:h,initialPlacement:r,placement:m,strategy:o,middlewareData:g,rects:u,platform:{...i,detectOverflow:(f=i.detectOverflow)!=null?f:V1},elements:{reference:e,floating:t}});p=C??p,h=E??h,g={...g,[y]:{...g[y],...P}},R&&x<=50&&(x++,typeof R=="object"&&(R.placement&&(m=R.placement),R.rects&&(u=R.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):R.rects),{x:p,y:h}=Nl(u,m,l)),v=-1)}return{x:p,y:h,placement:m,strategy:o,middlewareData:g}},G1=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:u,padding:p=0}=lt(e,t)||{};if(u==null)return{};const h=Dl(p),m={x:n,y:r},g=Es(o),x=Ss(g),f=await i.getDimensions(u),v=g==="y",y=v?"top":"left",w=v?"bottom":"right",C=v?"clientHeight":"clientWidth",E=s.reference[x]+s.reference[g]-m[g]-s.floating[x],P=m[g]-s.reference[g],R=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let A=R?R[C]:0;(!A||!await(i.isElement==null?void 0:i.isElement(R)))&&(A=a.floating[C]||s.floating[x]);const N=E/2-P/2,L=A/2-f[x]/2-1,D=xt(h[y],L),W=xt(h[w],L),z=D,U=A-f[x]-W,V=A/2-f[x]/2+N,oe=xs(z,V,U),G=!l.arrow&&hn(o)!=null&&V!==oe&&s.reference[x]/2-(V<z?D:W)-f[x]/2<0,Y=G?V<z?V-z:V-U:0;return{[g]:m[g]+Y,data:{[g]:oe,centerOffset:V-oe-Y,...G&&{alignmentOffset:Y}},reset:G}}}),q1=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:f=!0,...v}=lt(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=ct(o),w=Ke(a),C=ct(a)===a,E=await(l.isRTL==null?void 0:l.isRTL(u.floating)),P=m||(C||!f?[zr(a)]:$1(a)),R=x!=="none";!m&&R&&P.push(...W1(a,f,x,E));const A=[a,...P],N=await l.detectOverflow(t,v),L=[];let D=((r=s.flip)==null?void 0:r.overflows)||[];if(p&&L.push(N[y]),h){const V=M1(o,i,E);L.push(N[V[0]],N[V[1]])}if(D=[...D,{placement:o,overflows:L}],!L.every(V=>V<=0)){var W,z;const V=(((W=s.flip)==null?void 0:W.index)||0)+1,oe=A[V];if(oe&&(!(h==="alignment"?w!==Ke(oe):!1)||D.every(F=>Ke(F.placement)===w?F.overflows[0]>0:!0)))return{data:{index:V,overflows:D},reset:{placement:oe}};let G=(z=D.filter(Y=>Y.overflows[0]<=0).sort((Y,F)=>Y.overflows[1]-F.overflows[1])[0])==null?void 0:z.placement;if(!G)switch(g){case"bestFit":{var U;const Y=(U=D.filter(F=>{if(R){const se=Ke(F.placement);return se===w||se==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(se=>se>0).reduce((se,ge)=>se+ge,0)]).sort((F,se)=>F[1]-se[1])[0])==null?void 0:U[0];Y&&(G=Y);break}case"initialPlacement":G=a;break}if(o!==G)return{reset:{placement:G}}}return{}}}};function Ml(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $l(e){return k1.some(t=>e[t]>=0)}const K1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=lt(e,t);switch(o){case"referenceHidden":{const i=await r.detectOverflow(t,{...s,elementContext:"reference"}),a=Ml(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:$l(a)}}}case"escaped":{const i=await r.detectOverflow(t,{...s,altBoundary:!0}),a=Ml(i,n.floating);return{data:{escapedOffsets:a,escaped:$l(a)}}}default:return{}}}}},Fl=new Set(["left","top"]);async function Q1(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=ct(n),a=hn(n),l=Ke(n)==="y",u=Fl.has(i)?-1:1,p=s&&l?-1:1,h=lt(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:x}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof x=="number"&&(g=a==="end"?x*-1:x),l?{x:g*p,y:m*u}:{x:m*u,y:g*p}}const Y1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await Q1(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},Z1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:y=>{let{x:w,y:C}=y;return{x:w,y:C}}},...u}=lt(e,t),p={x:n,y:r},h=await s.detectOverflow(t,u),m=Ke(ct(o)),g=Cs(m);let x=p[g],f=p[m];if(i){const y=g==="y"?"top":"left",w=g==="y"?"bottom":"right",C=x+h[y],E=x-h[w];x=xs(C,x,E)}if(a){const y=m==="y"?"top":"left",w=m==="y"?"bottom":"right",C=f+h[y],E=f-h[w];f=xs(C,f,E)}const v=l.fn({...t,[g]:x,[m]:f});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[g]:i,[m]:a}}}}}},X1=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=lt(e,t),p={x:n,y:r},h=Ke(o),m=Cs(h);let g=p[m],x=p[h];const f=lt(a,t),v=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(l){const C=m==="y"?"height":"width",E=s.reference[m]-s.floating[C]+v.mainAxis,P=s.reference[m]+s.reference[C]-v.mainAxis;g<E?g=E:g>P&&(g=P)}if(u){var y,w;const C=m==="y"?"width":"height",E=Fl.has(ct(o)),P=s.reference[h]-s.floating[C]+(E&&((y=i.offset)==null?void 0:y[h])||0)+(E?0:v.crossAxis),R=s.reference[h]+s.reference[C]+(E?0:((w=i.offset)==null?void 0:w[h])||0)-(E?v.crossAxis:0);x<P?x=P:x>R&&(x=R)}return{[m]:g,[h]:x}}}},J1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...u}=lt(e,t),p=await i.detectOverflow(t,u),h=ct(o),m=hn(o),g=Ke(o)==="y",{width:x,height:f}=s.floating;let v,y;h==="top"||h==="bottom"?(v=h,y=m===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(y=h,v=m==="end"?"top":"bottom");const w=f-p.top-p.bottom,C=x-p.left-p.right,E=xt(f-p[v],w),P=xt(x-p[y],C),R=!t.middlewareData.shift;let A=E,N=P;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=w),R&&!m){const D=Oe(p.left,0),W=Oe(p.right,0),z=Oe(p.top,0),U=Oe(p.bottom,0);g?N=x-2*(D!==0||W!==0?D+W:Oe(p.left,p.right)):A=f-2*(z!==0||U!==0?z+U:Oe(p.top,p.bottom))}await l({...t,availableWidth:N,availableHeight:A});const L=await i.getDimensions(a.floating);return x!==L.width||f!==L.height?{reset:{rects:!0}}:{}}}};function qr(){return typeof window<"u"}function mn(e){return Bl(e)?(e.nodeName||"").toLowerCase():"#document"}function Ie(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qe(e){var t;return(t=(Bl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Bl(e){return qr()?e instanceof Node||e instanceof Ie(e).Node:!1}function Me(e){return qr()?e instanceof Element||e instanceof Ie(e).Element:!1}function Ye(e){return qr()?e instanceof HTMLElement||e instanceof Ie(e).HTMLElement:!1}function Ul(e){return!qr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ie(e).ShadowRoot}const em=new Set(["inline","contents"]);function Zn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=$e(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!em.has(o)}const tm=new Set(["table","td","th"]);function nm(e){return tm.has(mn(e))}const rm=[":popover-open",":modal"];function Kr(e){return rm.some(t=>{try{return e.matches(t)}catch{return!1}})}const om=["transform","translate","scale","rotate","perspective"],sm=["transform","translate","scale","rotate","perspective","filter"],im=["paint","layout","strict","content"];function Ps(e){const t=As(),n=Me(e)?$e(e):e;return om.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||sm.some(r=>(n.willChange||"").includes(r))||im.some(r=>(n.contain||"").includes(r))}function am(e){let t=Ct(e);for(;Ye(t)&&!gn(t);){if(Ps(t))return t;if(Kr(t))return null;t=Ct(t)}return null}function As(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const lm=new Set(["html","body","#document"]);function gn(e){return lm.has(mn(e))}function $e(e){return Ie(e).getComputedStyle(e)}function Qr(e){return Me(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ct(e){if(mn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ul(e)&&e.host||Qe(e);return Ul(t)?t.host:t}function Wl(e){const t=Ct(e);return gn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ye(t)&&Zn(t)?t:Wl(t)}function Xn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Wl(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=Ie(o);if(s){const a=Rs(i);return t.concat(i,i.visualViewport||[],Zn(o)?o:[],a&&n?Xn(a):[])}return t.concat(o,Xn(o,[],n))}function Rs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Hl(e){const t=$e(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ye(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=Hr(n)!==s||Hr(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Os(e){return Me(e)?e:e.contextElement}function vn(e){const t=Os(e);if(!Ye(t))return qe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Hl(t);let i=(s?Hr(n.width):n.width)/r,a=(s?Hr(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const cm=qe(0);function Vl(e){const t=Ie(e);return!As()||!t.visualViewport?cm:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function um(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ie(e)?!1:t}function Qt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Os(e);let i=qe(1);t&&(r?Me(r)&&(i=vn(r)):i=vn(e));const a=um(s,n,r)?Vl(s):qe(0);let l=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,p=o.width/i.x,h=o.height/i.y;if(s){const m=Ie(s),g=r&&Me(r)?Ie(r):r;let x=m,f=Rs(x);for(;f&&r&&g!==x;){const v=vn(f),y=f.getBoundingClientRect(),w=$e(f),C=y.left+(f.clientLeft+parseFloat(w.paddingLeft))*v.x,E=y.top+(f.clientTop+parseFloat(w.paddingTop))*v.y;l*=v.x,u*=v.y,p*=v.x,h*=v.y,l+=C,u+=E,x=Ie(f),f=Rs(x)}}return Gr({width:p,height:h,x:l,y:u})}function Yr(e,t){const n=Qr(e).scrollLeft;return t?t.left+n:Qt(Qe(e)).left+n}function zl(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Yr(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function dm(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Qe(r),a=t?Kr(t.floating):!1;if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},u=qe(1);const p=qe(0),h=Ye(r);if((h||!h&&!s)&&((mn(r)!=="body"||Zn(i))&&(l=Qr(r)),Ye(r))){const g=Qt(r);u=vn(r),p.x=g.x+r.clientLeft,p.y=g.y+r.clientTop}const m=i&&!h&&!s?zl(i,l):qe(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+p.x+m.x,y:n.y*u.y-l.scrollTop*u.y+p.y+m.y}}function fm(e){return Array.from(e.getClientRects())}function pm(e){const t=Qe(e),n=Qr(e),r=e.ownerDocument.body,o=Oe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Oe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Yr(e);const a=-n.scrollTop;return $e(r).direction==="rtl"&&(i+=Oe(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const Gl=25;function hm(e,t){const n=Ie(e),r=Qe(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const p=As();(!p||p&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const u=Yr(r);if(u<=0){const p=r.ownerDocument,h=p.body,m=getComputedStyle(h),g=p.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,x=Math.abs(r.clientWidth-h.clientWidth-g);x<=Gl&&(s-=x)}else u<=Gl&&(s+=u);return{width:s,height:i,x:a,y:l}}const mm=new Set(["absolute","fixed"]);function gm(e,t){const n=Qt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Ye(e)?vn(e):qe(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=o*s.x,u=r*s.y;return{width:i,height:a,x:l,y:u}}function ql(e,t,n){let r;if(t==="viewport")r=hm(e,n);else if(t==="document")r=pm(Qe(e));else if(Me(t))r=gm(t,n);else{const o=Vl(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Gr(r)}function Kl(e,t){const n=Ct(e);return n===t||!Me(n)||gn(n)?!1:$e(n).position==="fixed"||Kl(n,t)}function vm(e,t){const n=t.get(e);if(n)return n;let r=Xn(e,[],!1).filter(a=>Me(a)&&mn(a)!=="body"),o=null;const s=$e(e).position==="fixed";let i=s?Ct(e):e;for(;Me(i)&&!gn(i);){const a=$e(i),l=Ps(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&mm.has(o.position)||Zn(i)&&!l&&Kl(e,i))?r=r.filter(p=>p!==i):o=a,i=Ct(i)}return t.set(e,r),r}function ym(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Kr(t)?[]:vm(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((u,p)=>{const h=ql(t,p,o);return u.top=Oe(h.top,u.top),u.right=xt(h.right,u.right),u.bottom=xt(h.bottom,u.bottom),u.left=Oe(h.left,u.left),u},ql(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function bm(e){const{width:t,height:n}=Hl(e);return{width:t,height:n}}function wm(e,t,n){const r=Ye(t),o=Qe(t),s=n==="fixed",i=Qt(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=qe(0);function u(){l.x=Yr(o)}if(r||!r&&!s)if((mn(t)!=="body"||Zn(o))&&(a=Qr(t)),r){const g=Qt(t,!0,s,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else o&&u();s&&!r&&o&&u();const p=o&&!r&&!s?zl(o,a):qe(0),h=i.left+a.scrollLeft-l.x-p.x,m=i.top+a.scrollTop-l.y-p.y;return{x:h,y:m,width:i.width,height:i.height}}function Is(e){return $e(e).position==="static"}function Ql(e,t){if(!Ye(e)||$e(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Qe(e)===n&&(n=n.ownerDocument.body),n}function Yl(e,t){const n=Ie(e);if(Kr(e))return n;if(!Ye(e)){let o=Ct(e);for(;o&&!gn(o);){if(Me(o)&&!Is(o))return o;o=Ct(o)}return n}let r=Ql(e,t);for(;r&&nm(r)&&Is(r);)r=Ql(r,t);return r&&gn(r)&&Is(r)&&!Ps(r)?n:r||am(e)||n}const _m=async function(e){const t=this.getOffsetParent||Yl,n=this.getDimensions,r=await n(e.floating);return{reference:wm(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function xm(e){return $e(e).direction==="rtl"}const Cm={convertOffsetParentRelativeRectToViewportRelativeRect:dm,getDocumentElement:Qe,getClippingRect:ym,getOffsetParent:Yl,getElementRects:_m,getClientRects:fm,getDimensions:bm,getScale:vn,isElement:Me,isRTL:xm};function Zl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Sm(e,t){let n=null,r;const o=Qe(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:p,top:h,width:m,height:g}=u;if(a||t(),!m||!g)return;const x=Vr(h),f=Vr(o.clientWidth-(p+m)),v=Vr(o.clientHeight-(h+g)),y=Vr(p),C={rootMargin:-x+"px "+-f+"px "+-v+"px "+-y+"px",threshold:Oe(0,xt(1,l))||1};let E=!0;function P(R){const A=R[0].intersectionRatio;if(A!==l){if(!E)return i();A?i(!1,A):r=setTimeout(()=>{i(!1,1e-7)},1e3)}A===1&&!Zl(u,e.getBoundingClientRect())&&i(),E=!1}try{n=new IntersectionObserver(P,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(P,C)}n.observe(e)}return i(!0),s}function Em(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Os(e),p=o||s?[...u?Xn(u):[],...Xn(t)]:[];p.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const h=u&&a?Sm(u,n):null;let m=-1,g=null;i&&(g=new ResizeObserver(y=>{let[w]=y;w&&w.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var C;(C=g)==null||C.observe(t)})),n()}),u&&!l&&g.observe(u),g.observe(t));let x,f=l?Qt(e):null;l&&v();function v(){const y=Qt(e);f&&!Zl(f,y)&&n(),f=y,x=requestAnimationFrame(v)}return n(),()=>{var y;p.forEach(w=>{o&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),h==null||h(),(y=g)==null||y.disconnect(),g=null,l&&cancelAnimationFrame(x)}}const Tm=Y1,Pm=Z1,Am=q1,Rm=J1,Om=K1,Xl=G1,Im=X1,jm=(e,t,n)=>{const r=new Map,o={platform:Cm,...n},s={...o.platform,_c:r};return z1(e,t,{...o,platform:s})};var km=typeof document<"u",Lm=function(){},Zr=km?S.useLayoutEffect:Lm;function Xr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Xr(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Xr(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Jl(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ec(e,t){const n=Jl(e);return Math.round(t*n)/n}function js(e){const t=d.useRef(e);return Zr(()=>{t.current=e}),t}function Dm(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[p,h]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=d.useState(r);Xr(m,r)||g(r);const[x,f]=d.useState(null),[v,y]=d.useState(null),w=d.useCallback(F=>{F!==R.current&&(R.current=F,f(F))},[]),C=d.useCallback(F=>{F!==A.current&&(A.current=F,y(F))},[]),E=s||x,P=i||v,R=d.useRef(null),A=d.useRef(null),N=d.useRef(p),L=l!=null,D=js(l),W=js(o),z=js(u),U=d.useCallback(()=>{if(!R.current||!A.current)return;const F={placement:t,strategy:n,middleware:m};W.current&&(F.platform=W.current),jm(R.current,A.current,F).then(se=>{const ge={...se,isPositioned:z.current!==!1};V.current&&!Xr(N.current,ge)&&(N.current=ge,hr.flushSync(()=>{h(ge)}))})},[m,t,n,W,z]);Zr(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,h(F=>({...F,isPositioned:!1})))},[u]);const V=d.useRef(!1);Zr(()=>(V.current=!0,()=>{V.current=!1}),[]),Zr(()=>{if(E&&(R.current=E),P&&(A.current=P),E&&P){if(D.current)return D.current(E,P,U);U()}},[E,P,U,D,L]);const oe=d.useMemo(()=>({reference:R,floating:A,setReference:w,setFloating:C}),[w,C]),G=d.useMemo(()=>({reference:E,floating:P}),[E,P]),Y=d.useMemo(()=>{const F={position:n,left:0,top:0};if(!G.floating)return F;const se=ec(G.floating,p.x),ge=ec(G.floating,p.y);return a?{...F,transform:"translate("+se+"px, "+ge+"px)",...Jl(G.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:se,top:ge}},[n,a,G.floating,p.x,p.y]);return d.useMemo(()=>({...p,update:U,refs:oe,elements:G,floatingStyles:Y}),[p,U,oe,G,Y])}const Nm=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Xl({element:r.current,padding:o}).fn(n):{}:r?Xl({element:r,padding:o}).fn(n):{}}}},Mm=(e,t)=>({...Tm(e),options:[e,t]}),$m=(e,t)=>({...Pm(e),options:[e,t]}),Fm=(e,t)=>({...Im(e),options:[e,t]}),Bm=(e,t)=>({...Am(e),options:[e,t]}),Um=(e,t)=>({...Rm(e),options:[e,t]}),Wm=(e,t)=>({...Om(e),options:[e,t]}),Hm=(e,t)=>({...Nm(e),options:[e,t]});var Vm="Arrow",tc=d.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return c.jsx(ie.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});tc.displayName=Vm;var zm=tc;function Gm(e){const[t,n]=d.useState(void 0);return ve(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ks="Popper",[nc,Jr]=Yn(ks),[qm,rc]=nc(ks),oc=e=>{const{__scopePopper:t,children:n}=e,[r,o]=d.useState(null);return c.jsx(qm,{scope:t,anchor:r,onAnchorChange:o,children:n})};oc.displayName=ks;var sc="PopperAnchor",ic=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=rc(sc,n),i=d.useRef(null),a=ce(t,i),l=d.useRef(null);return d.useEffect(()=>{const u=l.current;l.current=(r==null?void 0:r.current)||i.current,u!==l.current&&s.onAnchorChange(l.current)}),r?null:c.jsx(ie.div,{...o,ref:a})});ic.displayName=sc;var Ls="PopperContent",[Km,Qm]=nc(Ls),ac=d.forwardRef((e,t)=>{var $,te,fe,X,ne,J;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:p=0,sticky:h="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:x,...f}=e,v=rc(Ls,n),[y,w]=d.useState(null),C=ce(t,Ce=>w(Ce)),[E,P]=d.useState(null),R=Gm(E),A=(R==null?void 0:R.width)??0,N=(R==null?void 0:R.height)??0,L=r+(s!=="center"?"-"+s:""),D=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},W=Array.isArray(u)?u:[u],z=W.length>0,U={padding:D,boundary:W.filter(Zm),altBoundary:z},{refs:V,floatingStyles:oe,placement:G,isPositioned:Y,middlewareData:F}=Dm({strategy:"fixed",placement:L,whileElementsMounted:(...Ce)=>Em(...Ce,{animationFrame:g==="always"}),elements:{reference:v.anchor},middleware:[Mm({mainAxis:o+N,alignmentAxis:i}),l&&$m({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?Fm():void 0,...U}),l&&Bm({...U}),Um({...U,apply:({elements:Ce,rects:Le,availableWidth:ot,availableHeight:ze})=>{const{width:Bt,height:To}=Le.reference,ht=Ce.floating.style;ht.setProperty("--radix-popper-available-width",`${ot}px`),ht.setProperty("--radix-popper-available-height",`${ze}px`),ht.setProperty("--radix-popper-anchor-width",`${Bt}px`),ht.setProperty("--radix-popper-anchor-height",`${To}px`)}}),E&&Hm({element:E,padding:a}),Xm({arrowWidth:A,arrowHeight:N}),m&&Wm({strategy:"referenceHidden",...U})]}),[se,ge]=uc(G),ke=qt(x);ve(()=>{Y&&(ke==null||ke())},[Y,ke]);const Mt=($=F.arrow)==null?void 0:$.x,$t=(te=F.arrow)==null?void 0:te.y,rt=((fe=F.arrow)==null?void 0:fe.centerOffset)!==0,[Ft,Ve]=d.useState();return ve(()=>{y&&Ve(window.getComputedStyle(y).zIndex)},[y]),c.jsx("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...oe,transform:Y?oe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ft,"--radix-popper-transform-origin":[(X=F.transformOrigin)==null?void 0:X.x,(ne=F.transformOrigin)==null?void 0:ne.y].join(" "),...((J=F.hide)==null?void 0:J.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(Km,{scope:n,placedSide:se,onArrowChange:P,arrowX:Mt,arrowY:$t,shouldHideArrow:rt,children:c.jsx(ie.div,{"data-side":se,"data-align":ge,...f,ref:C,style:{...f.style,animation:Y?void 0:"none"}})})})});ac.displayName=Ls;var lc="PopperArrow",Ym={top:"bottom",right:"left",bottom:"top",left:"right"},cc=d.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Qm(lc,r),i=Ym[s.placedSide];return c.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:c.jsx(zm,{...o,ref:n,style:{...o.style,display:"block"}})})});cc.displayName=lc;function Zm(e){return e!==null}var Xm=e=>({name:"transformOrigin",options:e,fn(t){var v,y,w;const{placement:n,rects:r,middlewareData:o}=t,i=((v=o.arrow)==null?void 0:v.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,p]=uc(n),h={start:"0%",center:"50%",end:"100%"}[p],m=(((y=o.arrow)==null?void 0:y.x)??0)+a/2,g=(((w=o.arrow)==null?void 0:w.y)??0)+l/2;let x="",f="";return u==="bottom"?(x=i?h:`${m}px`,f=`${-l}px`):u==="top"?(x=i?h:`${m}px`,f=`${r.floating.height+l}px`):u==="right"?(x=`${-l}px`,f=i?h:`${g}px`):u==="left"&&(x=`${r.floating.width+l}px`,f=i?h:`${g}px`),{data:{x,y:f}}}});function uc(e){const[t,n="center"]=e.split("-");return[t,n]}var dc=oc,fc=ic,pc=ac,hc=cc,Jm="Portal",Ds=d.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=d.useState(!1);ve(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Wt.createPortal(c.jsx(ie.div,{...r,ref:t}),i):null});Ds.displayName=Jm;function eg(e){const t=tg(e),n=d.forwardRef((r,o)=>{const{children:s,...i}=r,a=d.Children.toArray(s),l=a.find(rg);if(l){const u=l.props.children,p=a.map(h=>h===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return c.jsx(t,{...i,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,p):null})}return c.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function tg(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const i=sg(o),a=og(s,o.props);return o.type!==d.Fragment&&(a.ref=r?pn(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ng=Symbol("radix.slottable");function rg(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ng}function og(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function sg(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ig=d[" useInsertionEffect ".trim().toString()]||ve;function eo({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=ag({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const p=d.useRef(e!==void 0);d.useEffect(()=>{const h=p.current;h!==a&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=a},[a,r])}const u=d.useCallback(p=>{var h;if(a){const m=lg(p)?p(e):p;m!==e&&((h=i.current)==null||h.call(i,m))}else s(p)},[a,e,s,i]);return[l,u]}function ag({defaultProp:e,onChange:t}){const[n,r]=d.useState(e),o=d.useRef(n),s=d.useRef(t);return ig(()=>{s.current=t},[t]),d.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function lg(e){return typeof e=="function"}function cg(e){const t=d.useRef({value:e,previous:e});return d.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var mc=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"}),ug="VisuallyHidden",gc=d.forwardRef((e,t)=>c.jsx(ie.span,{...e,ref:t,style:{...mc,...e.style}}));gc.displayName=ug;var dg=gc,fg=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},yn=new WeakMap,to=new WeakMap,no={},Ns=0,vc=function(e){return e&&(e.host||vc(e.parentNode))},pg=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=vc(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},hg=function(e,t,n,r){var o=pg(t,Array.isArray(e)?e:[e]);no[n]||(no[n]=new WeakMap);var s=no[n],i=[],a=new Set,l=new Set(o),u=function(h){!h||a.has(h)||(a.add(h),u(h.parentNode))};o.forEach(u);var p=function(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,function(m){if(a.has(m))p(m);else try{var g=m.getAttribute(r),x=g!==null&&g!=="false",f=(yn.get(m)||0)+1,v=(s.get(m)||0)+1;yn.set(m,f),s.set(m,v),i.push(m),f===1&&x&&to.set(m,!0),v===1&&m.setAttribute(n,"true"),x||m.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};return p(t),a.clear(),Ns++,function(){i.forEach(function(h){var m=yn.get(h)-1,g=s.get(h)-1;yn.set(h,m),s.set(h,g),m||(to.has(h)||h.removeAttribute(r),to.delete(h)),g||h.removeAttribute(n)}),Ns--,Ns||(yn=new WeakMap,yn=new WeakMap,to=new WeakMap,no={})}},yc=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=fg(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),hg(r,o,n,"aria-hidden")):function(){return null}},ro="right-scroll-bar-position",oo="width-before-scroll-bar",mg="with-scroll-bars-hidden",gg="--removed-body-scroll-bar-size";function Ms(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function vg(e,t){var n=S.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var yg=typeof window<"u"?d.useLayoutEffect:d.useEffect,bc=new WeakMap;function bg(e,t){var n=vg(null,function(r){return e.forEach(function(o){return Ms(o,r)})});return yg(function(){var r=bc.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||Ms(a,null)}),s.forEach(function(a){o.has(a)||Ms(a,i)})}bc.set(n,e)},[e]),n}function wg(e){return e}function _g(e,t){t===void 0&&(t=wg);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var l=function(){var p=i;i=[],p.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(p){i.push(p),u()},filter:function(p){return i=i.filter(p),n}}}};return o}function xg(e){e===void 0&&(e={});var t=_g(null);return t.options=Ge({async:!0,ssr:!1},e),t}var wc=function(e){var t=e.sideCar,n=sa(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return d.createElement(r,Ge({},n))};wc.isSideCarExport=!0;function Cg(e,t){return e.useMedium(t),wc}var _c=xg(),$s=function(){},so=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:$s,onWheelCapture:$s,onTouchMoveCapture:$s}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,p=e.enabled,h=e.shards,m=e.sideCar,g=e.noRelative,x=e.noIsolation,f=e.inert,v=e.allowPinchZoom,y=e.as,w=y===void 0?"div":y,C=e.gapMode,E=sa(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=m,R=bg([n,t]),A=Ge(Ge({},E),o);return d.createElement(d.Fragment,null,p&&d.createElement(P,{sideCar:_c,removeScrollBar:u,shards:h,noRelative:g,noIsolation:x,inert:f,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:C}),i?d.cloneElement(d.Children.only(a),Ge(Ge({},A),{ref:R})):d.createElement(w,Ge({},A,{className:l,ref:R}),a))});so.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},so.classNames={fullWidth:oo,zeroRight:ro};var Sg=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Eg(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Sg();return t&&e.setAttribute("nonce",t),e}function Tg(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Pg(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ag=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Eg())&&(Tg(t,n),Pg(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Rg=function(){var e=Ag();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},xc=function(){var e=Rg(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Og={left:0,top:0,right:0,gap:0},Fs=function(e){return parseInt(e||"",10)||0},Ig=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Fs(n),Fs(r),Fs(o)]},jg=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Og;var t=Ig(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},kg=xc(),bn="data-scroll-locked",Lg=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
210
|
+
.`.concat(mg,` {
|
|
211
|
+
overflow: hidden `).concat(r,`;
|
|
212
|
+
padding-right: `).concat(a,"px ").concat(r,`;
|
|
213
213
|
}
|
|
214
|
-
body[`).concat(
|
|
215
|
-
overflow: hidden `).concat(
|
|
214
|
+
body[`).concat(bn,`] {
|
|
215
|
+
overflow: hidden `).concat(r,`;
|
|
216
216
|
overscroll-behavior: contain;
|
|
217
|
-
`).concat([t&&"position: relative ".concat(
|
|
217
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
218
218
|
padding-left: `.concat(o,`px;
|
|
219
219
|
padding-top: `).concat(s,`px;
|
|
220
220
|
padding-right: `).concat(i,`px;
|
|
221
221
|
margin-left:0;
|
|
222
222
|
margin-top:0;
|
|
223
|
-
margin-right: `).concat(a,"px ").concat(
|
|
224
|
-
`),
|
|
223
|
+
margin-right: `).concat(a,"px ").concat(r,`;
|
|
224
|
+
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
225
225
|
}
|
|
226
226
|
|
|
227
|
-
.`).concat(
|
|
228
|
-
right: `).concat(a,"px ").concat(
|
|
227
|
+
.`).concat(ro,` {
|
|
228
|
+
right: `).concat(a,"px ").concat(r,`;
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
.`).concat(
|
|
232
|
-
margin-right: `).concat(a,"px ").concat(
|
|
231
|
+
.`).concat(oo,` {
|
|
232
|
+
margin-right: `).concat(a,"px ").concat(r,`;
|
|
233
233
|
}
|
|
234
234
|
|
|
235
|
-
.`).concat(
|
|
236
|
-
right: 0 `).concat(
|
|
235
|
+
.`).concat(ro," .").concat(ro,` {
|
|
236
|
+
right: 0 `).concat(r,`;
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
-
.`).concat(
|
|
240
|
-
margin-right: 0 `).concat(
|
|
239
|
+
.`).concat(oo," .").concat(oo,` {
|
|
240
|
+
margin-right: 0 `).concat(r,`;
|
|
241
241
|
}
|
|
242
242
|
|
|
243
|
-
body[`).concat(
|
|
244
|
-
`).concat(
|
|
243
|
+
body[`).concat(bn,`] {
|
|
244
|
+
`).concat(gg,": ").concat(a,`px;
|
|
245
245
|
}
|
|
246
|
-
`)},
|
|
246
|
+
`)},Cc=function(){var e=parseInt(document.body.getAttribute(bn)||"0",10);return isFinite(e)?e:0},Dg=function(){d.useEffect(function(){return document.body.setAttribute(bn,(Cc()+1).toString()),function(){var e=Cc()-1;e<=0?document.body.removeAttribute(bn):document.body.setAttribute(bn,e.toString())}},[])},Ng=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Dg();var s=d.useMemo(function(){return jg(o)},[o]);return d.createElement(kg,{styles:Lg(s,!t,o,n?"":"!important")})},Bs=!1;if(typeof window<"u")try{var io=Object.defineProperty({},"passive",{get:function(){return Bs=!0,!0}});window.addEventListener("test",io,io),window.removeEventListener("test",io,io)}catch{Bs=!1}var wn=Bs?{passive:!1}:!1,Mg=function(e){return e.tagName==="TEXTAREA"},Sc=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Mg(e)&&n[t]==="visible")},$g=function(e){return Sc(e,"overflowY")},Fg=function(e){return Sc(e,"overflowX")},Ec=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Tc(e,r);if(o){var s=Pc(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Bg=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Ug=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Tc=function(e,t){return e==="v"?$g(t):Fg(t)},Pc=function(e,t){return e==="v"?Bg(t):Ug(t)},Wg=function(e,t){return e==="h"&&t==="rtl"?-1:1},Hg=function(e,t,n,r,o){var s=Wg(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,l=t.contains(a),u=!1,p=i>0,h=0,m=0;do{if(!a)break;var g=Pc(e,a),x=g[0],f=g[1],v=g[2],y=f-v-s*x;(x||y)&&Tc(e,a)&&(h+=y,m+=x);var w=a.parentNode;a=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(p&&Math.abs(h)<1||!p&&Math.abs(m)<1)&&(u=!0),u},ao=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ac=function(e){return[e.deltaX,e.deltaY]},Rc=function(e){return e&&"current"in e?e.current:e},Vg=function(e,t){return e[0]===t[0]&&e[1]===t[1]},zg=function(e){return`
|
|
247
247
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
248
248
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
249
|
-
`)},Sg=0,tr=[];function Tg(e){var t=m.useRef([]),r=m.useRef([0,0]),n=m.useRef(),o=m.useState(Sg++)[0],s=m.useState(mc)[0],i=m.useRef(e);m.useEffect(function(){i.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var f=Xr([e.lockRef.current],(e.shards||[]).map(Cc),!0).filter(Boolean);return f.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=m.useCallback(function(f,v){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!i.current.allowPinchZoom;var _=Gn(f),C=r.current,T="deltaX"in f?f.deltaX:C[0]-_[0],S="deltaY"in f?f.deltaY:C[1]-_[1],A,R=f.target,O=Math.abs(T)>Math.abs(S)?"h":"v";if("touches"in f&&O==="h"&&R.type==="range")return!1;var $=window.getSelection(),N=$&&$.anchorNode,I=N?N===R||N.contains(R):!1;if(I)return!1;var G=yc(O,R);if(!G)return!0;if(G?A=O:(A=O==="v"?"h":"v",G=yc(O,R)),!G)return!1;if(!n.current&&"changedTouches"in f&&(T||S)&&(n.current=A),!A)return!0;var Y=n.current||A;return Cg(Y,v,f,Y==="h"?T:S)},[]),l=m.useCallback(function(f){var v=f;if(!(!tr.length||tr[tr.length-1]!==s)){var _="deltaY"in v?_c(v):Gn(v),C=t.current.filter(function(A){return A.name===v.type&&(A.target===v.target||v.target===A.shadowParent)&&xg(A.delta,_)})[0];if(C&&C.should){v.cancelable&&v.preventDefault();return}if(!C){var T=(i.current.shards||[]).map(Cc).filter(Boolean).filter(function(A){return A.contains(v.target)}),S=T.length>0?a(v,T[0]):!i.current.noIsolation;S&&v.cancelable&&v.preventDefault()}}},[]),u=m.useCallback(function(f,v,_,C){var T={name:f,delta:v,target:_,should:C,shadowParent:Ag(_)};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(S){return S!==T})},1)},[]),d=m.useCallback(function(f){r.current=Gn(f),n.current=void 0},[]),p=m.useCallback(function(f){u(f.type,_c(f),f.target,a(f,e.lockRef.current))},[]),h=m.useCallback(function(f){u(f.type,Gn(f),f.target,a(f,e.lockRef.current))},[]);m.useEffect(function(){return tr.push(s),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(f){return f!==s}),document.removeEventListener("wheel",l,er),document.removeEventListener("touchmove",l,er),document.removeEventListener("touchstart",d,er)}},[]);var g=e.removeScrollBar,w=e.inert;return m.createElement(m.Fragment,null,w?m.createElement(s,{styles:Eg(o)}):null,g?m.createElement(mg,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ag(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Pg=rg(hc,Tg);var xc=m.forwardRef(function(e,t){return m.createElement(Hn,De({},e,{ref:t,sideCar:Pg}))});xc.classNames=Hn.classNames;var Og=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},rr=new WeakMap,qn=new WeakMap,Qn={},Ps=0,Ec=function(e){return e&&(e.host||Ec(e.parentNode))},Rg=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Ec(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})},kg=function(e,t,r,n){var o=Rg(t,Array.isArray(e)?e:[e]);Qn[r]||(Qn[r]=new WeakMap);var s=Qn[r],i=[],a=new Set,l=new Set(o),u=function(p){!p||a.has(p)||(a.add(p),u(p.parentNode))};o.forEach(u);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",f=(rr.get(h)||0)+1,v=(s.get(h)||0)+1;rr.set(h,f),s.set(h,v),i.push(h),f===1&&w&&qn.set(h,!0),v===1&&h.setAttribute(r,"true"),w||h.setAttribute(n,"true")}catch(_){console.error("aria-hidden: cannot operate on ",h,_)}})};return d(t),a.clear(),Ps++,function(){i.forEach(function(p){var h=rr.get(p)-1,g=s.get(p)-1;rr.set(p,h),s.set(p,g),h||(qn.has(p)||p.removeAttribute(n),qn.delete(p)),g||p.removeAttribute(r)}),Ps--,Ps||(rr=new WeakMap,rr=new WeakMap,qn=new WeakMap,Qn={})}},jg=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Og(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),kg(n,o,r,"aria-hidden")):function(){return null}};function Dg(e){const t=Lg(e),r=m.forwardRef((n,o)=>{const{children:s,...i}=n,a=m.Children.toArray(s),l=a.find(Ng);if(l){const u=l.props.children,d=a.map(p=>p===l?m.Children.count(u)>1?m.Children.only(null):m.isValidElement(u)?u.props.children:null:p);return c.jsx(t,{...i,ref:o,children:m.isValidElement(u)?m.cloneElement(u,void 0,d):null})}return c.jsx(t,{...i,ref:o,children:s})});return r.displayName=`${e}.Slot`,r}function Lg(e){const t=m.forwardRef((r,n)=>{const{children:o,...s}=r;if(m.isValidElement(o)){const i=$g(o),a=Mg(s,o.props);return o.type!==m.Fragment&&(a.ref=n?En(n,i):i),m.cloneElement(o,a)}return m.Children.count(o)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ig=Symbol("radix.slottable");function Ng(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ig}function Mg(e,t){const r={...t};for(const n in t){const o=e[n],s=t[n];/^on[A-Z]/.test(n)?o&&s?r[n]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...s}:n==="className"&&(r[n]=[o,s].filter(Boolean).join(" "))}return{...e,...r}}function $g(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 Yn="Dialog",[Sc]=Jo(Yn),[Fg,Oe]=Sc(Yn),Tc=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,a=m.useRef(null),l=m.useRef(null),[u,d]=Ul({prop:n,defaultProp:o??!1,onChange:s,caller:Yn});return c.jsx(Fg,{scope:t,triggerRef:a,contentRef:l,contentId:An(),titleId:An(),descriptionId:An(),open:u,onOpenChange:d,onOpenToggle:m.useCallback(()=>d(p=>!p),[d]),modal:i,children:r})};Tc.displayName=Yn;var Ac="DialogTrigger",Bg=m.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(Ac,r),s=Te(t,o.triggerRef);return c.jsx(he.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ks(o.open),...n,ref:s,onClick:pe(e.onClick,o.onOpenToggle)})});Bg.displayName=Ac;var Os="DialogPortal",[Ug,Pc]=Sc(Os,{forceMount:void 0}),Oc=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,s=Oe(Os,t);return c.jsx(Ug,{scope:t,forceMount:r,children:m.Children.map(n,i=>c.jsx(Zt,{present:r||s.open,children:c.jsx(ms,{asChild:!0,container:o,children:i})}))})};Oc.displayName=Os;var Kn="DialogOverlay",Rc=m.forwardRef((e,t)=>{const r=Pc(Kn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,s=Oe(Kn,e.__scopeDialog);return s.modal?c.jsx(Zt,{present:n||s.open,children:c.jsx(zg,{...o,ref:t})}):null});Rc.displayName=Kn;var Wg=Dg("DialogOverlay.RemoveScroll"),zg=m.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(Kn,r);return c.jsx(xc,{as:Wg,allowPinchZoom:!0,shards:[o.contentRef],children:c.jsx(he.div,{"data-state":ks(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Ot="DialogContent",kc=m.forwardRef((e,t)=>{const r=Pc(Ot,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,s=Oe(Ot,e.__scopeDialog);return c.jsx(Zt,{present:n||s.open,children:s.modal?c.jsx(Hg,{...o,ref:t}):c.jsx(Vg,{...o,ref:t})})});kc.displayName=Ot;var Hg=m.forwardRef((e,t)=>{const r=Oe(Ot,e.__scopeDialog),n=m.useRef(null),o=Te(t,r.contentRef,n);return m.useEffect(()=>{const s=n.current;if(s)return jg(s)},[]),c.jsx(jc,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pe(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:pe(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&s.preventDefault()}),onFocusOutside:pe(e.onFocusOutside,s=>s.preventDefault())})}),Vg=m.forwardRef((e,t)=>{const r=Oe(Ot,e.__scopeDialog),n=m.useRef(!1),o=m.useRef(!1);return c.jsx(jc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(n.current||(a=r.triggerRef.current)==null||a.focus(),s.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:s=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((u=r.triggerRef.current)==null?void 0:u.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),jc=m.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,a=Oe(Ot,r),l=m.useRef(null),u=Te(t,l);return qm(),c.jsxs(c.Fragment,{children:[c.jsx(ic,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:s,children:c.jsx(ts,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":ks(a.open),...i,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(Gg,{titleId:a.titleId}),c.jsx(Qg,{contentRef:l,descriptionId:a.descriptionId})]})]})}),Rs="DialogTitle",Dc=m.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(Rs,r);return c.jsx(he.h2,{id:o.titleId,...n,ref:t})});Dc.displayName=Rs;var Lc="DialogDescription",Ic=m.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(Lc,r);return c.jsx(he.p,{id:o.descriptionId,...n,ref:t})});Ic.displayName=Lc;var Nc="DialogClose",Mc=m.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(Nc,r);return c.jsx(he.button,{type:"button",...n,ref:t,onClick:pe(e.onClick,()=>o.onOpenChange(!1))})});Mc.displayName=Nc;function ks(e){return e?"open":"closed"}var $c="DialogTitleWarning",[b0,Fc]=fh($c,{contentName:Ot,titleName:Rs,docsSlug:"dialog"}),Gg=({titleId:e})=>{const t=Fc($c),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
249
|
+
`)},Gg=0,_n=[];function qg(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(Gg++)[0],s=d.useState(xc)[0],i=d.useRef(e);d.useEffect(function(){i.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var f=yr([e.lockRef.current],(e.shards||[]).map(Rc),!0).filter(Boolean);return f.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=d.useCallback(function(f,v){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!i.current.allowPinchZoom;var y=ao(f),w=n.current,C="deltaX"in f?f.deltaX:w[0]-y[0],E="deltaY"in f?f.deltaY:w[1]-y[1],P,R=f.target,A=Math.abs(C)>Math.abs(E)?"h":"v";if("touches"in f&&A==="h"&&R.type==="range")return!1;var N=window.getSelection(),L=N&&N.anchorNode,D=L?L===R||L.contains(R):!1;if(D)return!1;var W=Ec(A,R);if(!W)return!0;if(W?P=A:(P=A==="v"?"h":"v",W=Ec(A,R)),!W)return!1;if(!r.current&&"changedTouches"in f&&(C||E)&&(r.current=P),!P)return!0;var z=r.current||P;return Hg(z,v,f,z==="h"?C:E)},[]),l=d.useCallback(function(f){var v=f;if(!(!_n.length||_n[_n.length-1]!==s)){var y="deltaY"in v?Ac(v):ao(v),w=t.current.filter(function(P){return P.name===v.type&&(P.target===v.target||v.target===P.shadowParent)&&Vg(P.delta,y)})[0];if(w&&w.should){v.cancelable&&v.preventDefault();return}if(!w){var C=(i.current.shards||[]).map(Rc).filter(Boolean).filter(function(P){return P.contains(v.target)}),E=C.length>0?a(v,C[0]):!i.current.noIsolation;E&&v.cancelable&&v.preventDefault()}}},[]),u=d.useCallback(function(f,v,y,w){var C={name:f,delta:v,target:y,should:w,shadowParent:Kg(y)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(E){return E!==C})},1)},[]),p=d.useCallback(function(f){n.current=ao(f),r.current=void 0},[]),h=d.useCallback(function(f){u(f.type,Ac(f),f.target,a(f,e.lockRef.current))},[]),m=d.useCallback(function(f){u(f.type,ao(f),f.target,a(f,e.lockRef.current))},[]);d.useEffect(function(){return _n.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:m}),document.addEventListener("wheel",l,wn),document.addEventListener("touchmove",l,wn),document.addEventListener("touchstart",p,wn),function(){_n=_n.filter(function(f){return f!==s}),document.removeEventListener("wheel",l,wn),document.removeEventListener("touchmove",l,wn),document.removeEventListener("touchstart",p,wn)}},[]);var g=e.removeScrollBar,x=e.inert;return d.createElement(d.Fragment,null,x?d.createElement(s,{styles:zg(o)}):null,g?d.createElement(Ng,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Kg(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Qg=Cg(_c,qg);var Us=d.forwardRef(function(e,t){return d.createElement(so,Ge({},e,{ref:t,sideCar:Qg}))});Us.classNames=so.classNames;var Yg=[" ","Enter","ArrowUp","ArrowDown"],Zg=[" ","Enter"],Yt="Select",[lo,co,Xg]=s1(Yt),[xn]=Yn(Yt,[Xg,Jr]),uo=Jr(),[Jg,St]=xn(Yt),[ev,tv]=xn(Yt),Oc=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:i,defaultValue:a,onValueChange:l,dir:u,name:p,autoComplete:h,disabled:m,required:g,form:x}=e,f=uo(t),[v,y]=d.useState(null),[w,C]=d.useState(null),[E,P]=d.useState(!1),R=a1(u),[A,N]=eo({prop:r,defaultProp:o??!1,onChange:s,caller:Yt}),[L,D]=eo({prop:i,defaultProp:a,onChange:l,caller:Yt}),W=d.useRef(null),z=v?x||!!v.closest("form"):!0,[U,V]=d.useState(new Set),oe=Array.from(U).map(G=>G.props.value).join(";");return c.jsx(dc,{...f,children:c.jsxs(Jg,{required:g,scope:t,trigger:v,onTriggerChange:y,valueNode:w,onValueNodeChange:C,valueNodeHasChildren:E,onValueNodeHasChildrenChange:P,contentId:Kt(),value:L,onValueChange:D,open:A,onOpenChange:N,dir:R,triggerPointerDownPosRef:W,disabled:m,children:[c.jsx(lo.Provider,{scope:t,children:c.jsx(ev,{scope:e.__scopeSelect,onNativeOptionAdd:d.useCallback(G=>{V(Y=>new Set(Y).add(G))},[]),onNativeOptionRemove:d.useCallback(G=>{V(Y=>{const F=new Set(Y);return F.delete(G),F})},[]),children:n})}),z?c.jsxs(Yc,{"aria-hidden":!0,required:g,tabIndex:-1,name:p,autoComplete:h,value:L,onChange:G=>D(G.target.value),disabled:m,form:x,children:[L===void 0?c.jsx("option",{value:""}):null,Array.from(U)]},oe):null]})})};Oc.displayName=Yt;var Ic="SelectTrigger",jc=d.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=uo(n),i=St(Ic,n),a=i.disabled||r,l=ce(t,i.onTriggerChange),u=co(n),p=d.useRef("touch"),[h,m,g]=Xc(f=>{const v=u().filter(C=>!C.disabled),y=v.find(C=>C.value===i.value),w=Jc(v,f,y);w!==void 0&&i.onValueChange(w.value)}),x=f=>{a||(i.onOpenChange(!0),g()),f&&(i.triggerPointerDownPosRef.current={x:Math.round(f.pageX),y:Math.round(f.pageY)})};return c.jsx(fc,{asChild:!0,...s,children:c.jsx(ie.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":Zc(i.value)?"":void 0,...o,ref:l,onClick:Z(o.onClick,f=>{f.currentTarget.focus(),p.current!=="mouse"&&x(f)}),onPointerDown:Z(o.onPointerDown,f=>{p.current=f.pointerType;const v=f.target;v.hasPointerCapture(f.pointerId)&&v.releasePointerCapture(f.pointerId),f.button===0&&f.ctrlKey===!1&&f.pointerType==="mouse"&&(x(f),f.preventDefault())}),onKeyDown:Z(o.onKeyDown,f=>{const v=h.current!=="";!(f.ctrlKey||f.altKey||f.metaKey)&&f.key.length===1&&m(f.key),!(v&&f.key===" ")&&Yg.includes(f.key)&&(x(),f.preventDefault())})})})});jc.displayName=Ic;var kc="SelectValue",Lc=d.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:i="",...a}=e,l=St(kc,n),{onValueNodeHasChildrenChange:u}=l,p=s!==void 0,h=ce(t,l.onValueNodeChange);return ve(()=>{u(p)},[u,p]),c.jsx(ie.span,{...a,ref:h,style:{pointerEvents:"none"},children:Zc(l.value)?c.jsx(c.Fragment,{children:i}):s})});Lc.displayName=kc;var nv="SelectIcon",Dc=d.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return c.jsx(ie.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Dc.displayName=nv;var Zt="SelectContent",Nc=d.forwardRef((e,t)=>{const n=St(Zt,e.__scopeSelect),[r,o]=d.useState();if(ve(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?hr.createPortal(c.jsx(Mc,{scope:e.__scopeSelect,children:c.jsx(lo.Slot,{scope:e.__scopeSelect,children:c.jsx("div",{children:e.children})})}),s):null}return c.jsx($c,{...e,ref:t})});Nc.displayName=Zt;var Fe=10,[Mc,Et]=xn(Zt),rv="SelectContentImpl",ov=eg("SelectContent.RemoveScroll"),$c=d.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:i,side:a,sideOffset:l,align:u,alignOffset:p,arrowPadding:h,collisionBoundary:m,collisionPadding:g,sticky:x,hideWhenDetached:f,avoidCollisions:v,...y}=e,w=St(Zt,n),[C,E]=d.useState(null),[P,R]=d.useState(null),A=ce(t,$=>E($)),[N,L]=d.useState(null),[D,W]=d.useState(null),z=co(n),[U,V]=d.useState(!1),oe=d.useRef(!1);d.useEffect(()=>{if(C)return yc(C)},[C]),Tl();const G=d.useCallback($=>{const[te,...fe]=z().map(J=>J.ref.current),[X]=fe.slice(-1),ne=document.activeElement;for(const J of $)if(J===ne||(J==null||J.scrollIntoView({block:"nearest"}),J===te&&P&&(P.scrollTop=0),J===X&&P&&(P.scrollTop=P.scrollHeight),J==null||J.focus(),document.activeElement!==ne))return},[z,P]),Y=d.useCallback(()=>G([N,C]),[G,N,C]);d.useEffect(()=>{U&&Y()},[U,Y]);const{onOpenChange:F,triggerPointerDownPosRef:se}=w;d.useEffect(()=>{if(C){let $={x:0,y:0};const te=X=>{var ne,J;$={x:Math.abs(Math.round(X.pageX)-(((ne=se.current)==null?void 0:ne.x)??0)),y:Math.abs(Math.round(X.pageY)-(((J=se.current)==null?void 0:J.y)??0))}},fe=X=>{$.x<=10&&$.y<=10?X.preventDefault():C.contains(X.target)||F(!1),document.removeEventListener("pointermove",te),se.current=null};return se.current!==null&&(document.addEventListener("pointermove",te),document.addEventListener("pointerup",fe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",te),document.removeEventListener("pointerup",fe,{capture:!0})}}},[C,F,se]),d.useEffect(()=>{const $=()=>F(!1);return window.addEventListener("blur",$),window.addEventListener("resize",$),()=>{window.removeEventListener("blur",$),window.removeEventListener("resize",$)}},[F]);const[ge,ke]=Xc($=>{const te=z().filter(ne=>!ne.disabled),fe=te.find(ne=>ne.ref.current===document.activeElement),X=Jc(te,$,fe);X&&setTimeout(()=>X.ref.current.focus())}),Mt=d.useCallback(($,te,fe)=>{const X=!oe.current&&!fe;(w.value!==void 0&&w.value===te||X)&&(L($),X&&(oe.current=!0))},[w.value]),$t=d.useCallback(()=>C==null?void 0:C.focus(),[C]),rt=d.useCallback(($,te,fe)=>{const X=!oe.current&&!fe;(w.value!==void 0&&w.value===te||X)&&W($)},[w.value]),Ft=r==="popper"?Ws:Fc,Ve=Ft===Ws?{side:a,sideOffset:l,align:u,alignOffset:p,arrowPadding:h,collisionBoundary:m,collisionPadding:g,sticky:x,hideWhenDetached:f,avoidCollisions:v}:{};return c.jsx(Mc,{scope:n,content:C,viewport:P,onViewportChange:R,itemRefCallback:Mt,selectedItem:N,onItemLeave:$t,itemTextRefCallback:rt,focusSelectedItem:Y,selectedItemText:D,position:r,isPositioned:U,searchRef:ge,children:c.jsx(Us,{as:ov,allowPinchZoom:!0,children:c.jsx(_s,{asChild:!0,trapped:w.open,onMountAutoFocus:$=>{$.preventDefault()},onUnmountAutoFocus:Z(o,$=>{var te;(te=w.trigger)==null||te.focus({preventScroll:!0}),$.preventDefault()}),children:c.jsx(Wr,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:$=>$.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:c.jsx(Ft,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:$=>$.preventDefault(),...y,...Ve,onPlaced:()=>V(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:Z(y.onKeyDown,$=>{const te=$.ctrlKey||$.altKey||$.metaKey;if($.key==="Tab"&&$.preventDefault(),!te&&$.key.length===1&&ke($.key),["ArrowUp","ArrowDown","Home","End"].includes($.key)){let X=z().filter(ne=>!ne.disabled).map(ne=>ne.ref.current);if(["ArrowUp","End"].includes($.key)&&(X=X.slice().reverse()),["ArrowUp","ArrowDown"].includes($.key)){const ne=$.target,J=X.indexOf(ne);X=X.slice(J+1)}setTimeout(()=>G(X)),$.preventDefault()}})})})})})})});$c.displayName=rv;var sv="SelectItemAlignedPosition",Fc=d.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=St(Zt,n),i=Et(Zt,n),[a,l]=d.useState(null),[u,p]=d.useState(null),h=ce(t,A=>p(A)),m=co(n),g=d.useRef(!1),x=d.useRef(!0),{viewport:f,selectedItem:v,selectedItemText:y,focusSelectedItem:w}=i,C=d.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&u&&f&&v&&y){const A=s.trigger.getBoundingClientRect(),N=u.getBoundingClientRect(),L=s.valueNode.getBoundingClientRect(),D=y.getBoundingClientRect();if(s.dir!=="rtl"){const ne=D.left-N.left,J=L.left-ne,Ce=A.left-J,Le=A.width+Ce,ot=Math.max(Le,N.width),ze=window.innerWidth-Fe,Bt=bl(J,[Fe,Math.max(Fe,ze-ot)]);a.style.minWidth=Le+"px",a.style.left=Bt+"px"}else{const ne=N.right-D.right,J=window.innerWidth-L.right-ne,Ce=window.innerWidth-A.right-J,Le=A.width+Ce,ot=Math.max(Le,N.width),ze=window.innerWidth-Fe,Bt=bl(J,[Fe,Math.max(Fe,ze-ot)]);a.style.minWidth=Le+"px",a.style.right=Bt+"px"}const W=m(),z=window.innerHeight-Fe*2,U=f.scrollHeight,V=window.getComputedStyle(u),oe=parseInt(V.borderTopWidth,10),G=parseInt(V.paddingTop,10),Y=parseInt(V.borderBottomWidth,10),F=parseInt(V.paddingBottom,10),se=oe+G+U+F+Y,ge=Math.min(v.offsetHeight*5,se),ke=window.getComputedStyle(f),Mt=parseInt(ke.paddingTop,10),$t=parseInt(ke.paddingBottom,10),rt=A.top+A.height/2-Fe,Ft=z-rt,Ve=v.offsetHeight/2,$=v.offsetTop+Ve,te=oe+G+$,fe=se-te;if(te<=rt){const ne=W.length>0&&v===W[W.length-1].ref.current;a.style.bottom="0px";const J=u.clientHeight-f.offsetTop-f.offsetHeight,Ce=Math.max(Ft,Ve+(ne?$t:0)+J+Y),Le=te+Ce;a.style.height=Le+"px"}else{const ne=W.length>0&&v===W[0].ref.current;a.style.top="0px";const Ce=Math.max(rt,oe+f.offsetTop+(ne?Mt:0)+Ve)+fe;a.style.height=Ce+"px",f.scrollTop=te-rt+f.offsetTop}a.style.margin=`${Fe}px 0`,a.style.minHeight=ge+"px",a.style.maxHeight=z+"px",r==null||r(),requestAnimationFrame(()=>g.current=!0)}},[m,s.trigger,s.valueNode,a,u,f,v,y,s.dir,r]);ve(()=>C(),[C]);const[E,P]=d.useState();ve(()=>{u&&P(window.getComputedStyle(u).zIndex)},[u]);const R=d.useCallback(A=>{A&&x.current===!0&&(C(),w==null||w(),x.current=!1)},[C,w]);return c.jsx(av,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:g,onScrollButtonChange:R,children:c.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:c.jsx(ie.div,{...o,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Fc.displayName=sv;var iv="SelectPopperPosition",Ws=d.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Fe,...s}=e,i=uo(n);return c.jsx(pc,{...i,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Ws.displayName=iv;var[av,Hs]=xn(Zt,{}),Vs="SelectViewport",Bc=d.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=Et(Vs,n),i=Hs(Vs,n),a=ce(t,s.onViewportChange),l=d.useRef(0);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),c.jsx(lo.Slot,{scope:n,children:c.jsx(ie.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Z(o.onScroll,u=>{const p=u.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:m}=i;if(m!=null&&m.current&&h){const g=Math.abs(l.current-p.scrollTop);if(g>0){const x=window.innerHeight-Fe*2,f=parseFloat(h.style.minHeight),v=parseFloat(h.style.height),y=Math.max(f,v);if(y<x){const w=y+g,C=Math.min(x,w),E=w-C;h.style.height=C+"px",h.style.bottom==="0px"&&(p.scrollTop=E>0?E:0,h.style.justifyContent="flex-end")}}}l.current=p.scrollTop})})})]})});Bc.displayName=Vs;var Uc="SelectGroup",[lv,cv]=xn(Uc),Wc=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Kt();return c.jsx(lv,{scope:n,id:o,children:c.jsx(ie.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Wc.displayName=Uc;var Hc="SelectLabel",uv=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=cv(Hc,n);return c.jsx(ie.div,{id:o.id,...r,ref:t})});uv.displayName=Hc;var fo="SelectItem",[dv,Vc]=xn(fo),zc=d.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...i}=e,a=St(fo,n),l=Et(fo,n),u=a.value===r,[p,h]=d.useState(s??""),[m,g]=d.useState(!1),x=ce(t,w=>{var C;return(C=l.itemRefCallback)==null?void 0:C.call(l,w,r,o)}),f=Kt(),v=d.useRef("touch"),y=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return c.jsx(dv,{scope:n,value:r,disabled:o,textId:f,isSelected:u,onItemTextChange:d.useCallback(w=>{h(C=>C||((w==null?void 0:w.textContent)??"").trim())},[]),children:c.jsx(lo.ItemSlot,{scope:n,value:r,disabled:o,textValue:p,children:c.jsx(ie.div,{role:"option","aria-labelledby":f,"data-highlighted":m?"":void 0,"aria-selected":u&&m,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:x,onFocus:Z(i.onFocus,()=>g(!0)),onBlur:Z(i.onBlur,()=>g(!1)),onClick:Z(i.onClick,()=>{v.current!=="mouse"&&y()}),onPointerUp:Z(i.onPointerUp,()=>{v.current==="mouse"&&y()}),onPointerDown:Z(i.onPointerDown,w=>{v.current=w.pointerType}),onPointerMove:Z(i.onPointerMove,w=>{var C;v.current=w.pointerType,o?(C=l.onItemLeave)==null||C.call(l):v.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Z(i.onPointerLeave,w=>{var C;w.currentTarget===document.activeElement&&((C=l.onItemLeave)==null||C.call(l))}),onKeyDown:Z(i.onKeyDown,w=>{var E;((E=l.searchRef)==null?void 0:E.current)!==""&&w.key===" "||(Zg.includes(w.key)&&y(),w.key===" "&&w.preventDefault())})})})})});zc.displayName=fo;var Jn="SelectItemText",Gc=d.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,i=St(Jn,n),a=Et(Jn,n),l=Vc(Jn,n),u=tv(Jn,n),[p,h]=d.useState(null),m=ce(t,y=>h(y),l.onItemTextChange,y=>{var w;return(w=a.itemTextRefCallback)==null?void 0:w.call(a,y,l.value,l.disabled)}),g=p==null?void 0:p.textContent,x=d.useMemo(()=>c.jsx("option",{value:l.value,disabled:l.disabled,children:g},l.value),[l.disabled,l.value,g]),{onNativeOptionAdd:f,onNativeOptionRemove:v}=u;return ve(()=>(f(x),()=>v(x)),[f,v,x]),c.jsxs(c.Fragment,{children:[c.jsx(ie.span,{id:l.textId,...s,ref:m}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?hr.createPortal(s.children,i.valueNode):null]})});Gc.displayName=Jn;var qc="SelectItemIndicator",Kc=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Vc(qc,n).isSelected?c.jsx(ie.span,{"aria-hidden":!0,...r,ref:t}):null});Kc.displayName=qc;var zs="SelectScrollUpButton",fv=d.forwardRef((e,t)=>{const n=Et(zs,e.__scopeSelect),r=Hs(zs,e.__scopeSelect),[o,s]=d.useState(!1),i=ce(t,r.onScrollButtonChange);return ve(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=l.scrollTop>0;s(u)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?c.jsx(Qc,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});fv.displayName=zs;var Gs="SelectScrollDownButton",pv=d.forwardRef((e,t)=>{const n=Et(Gs,e.__scopeSelect),r=Hs(Gs,e.__scopeSelect),[o,s]=d.useState(!1),i=ce(t,r.onScrollButtonChange);return ve(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=l.scrollHeight-l.clientHeight,p=Math.ceil(l.scrollTop)<u;s(p)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?c.jsx(Qc,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});pv.displayName=Gs;var Qc=d.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=Et("SelectScrollButton",n),i=d.useRef(null),a=co(n),l=d.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return d.useEffect(()=>()=>l(),[l]),ve(()=>{var p;const u=a().find(h=>h.ref.current===document.activeElement);(p=u==null?void 0:u.ref.current)==null||p.scrollIntoView({block:"nearest"})},[a]),c.jsx(ie.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Z(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:Z(o.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:Z(o.onPointerLeave,()=>{l()})})}),hv="SelectSeparator",mv=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return c.jsx(ie.div,{"aria-hidden":!0,...r,ref:t})});mv.displayName=hv;var qs="SelectArrow",gv=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=uo(n),s=St(qs,n),i=Et(qs,n);return s.open&&i.position==="popper"?c.jsx(hc,{...o,...r,ref:t}):null});gv.displayName=qs;var vv="SelectBubbleInput",Yc=d.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=d.useRef(null),s=ce(r,o),i=cg(t);return d.useEffect(()=>{const a=o.current;if(!a)return;const l=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==t&&p){const h=new Event("change",{bubbles:!0});p.call(a,t),a.dispatchEvent(h)}},[i,t]),c.jsx(ie.select,{...n,style:{...mc,...n.style},ref:s,defaultValue:t})});Yc.displayName=vv;function Zc(e){return e===""||e===void 0}function Xc(e){const t=qt(e),n=d.useRef(""),r=d.useRef(0),o=d.useCallback(i=>{const a=n.current+i;t(a),function l(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),s=d.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return d.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function Jc(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=yv(e,Math.max(s,0));o.length===1&&(i=i.filter(u=>u!==n));const l=i.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function yv(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var bv=Oc,wv=jc,_v=Lc,xv=Dc,Cv=Nc,Sv=Bc,Ev=Wc,Tv=zc,Pv=Gc,Av=Kc;const Ze={Container:"Container__xcHXp",Label:"Label__0cZB9",HelperText:"HelperText__m1nA9",Trigger:"Trigger__AyFUd",TriggerIcon:"TriggerIcon__aygFG",Content:"Content__llztG",Viewport:"Viewport__COtSL",Item:"Item__XN1-2",ItemIndicatorContainer:"ItemIndicatorContainer__EQH-X",ItemIndicator:"ItemIndicator__bySSc"},eu=S.forwardRef(({label:e,helperText:t,value:n,onValueChange:r,options:o,placeholder:s="Select",disabled:i=!1,className:a,name:l},u)=>c.jsxs("div",{className:k(Ze.Container,a),children:[e&&c.jsx("label",{className:Ze.Label,children:e}),c.jsxs(bv,{value:n,onValueChange:r,disabled:i,name:l,children:[c.jsxs(wv,{ref:u,className:Ze.Trigger,children:[c.jsx(_v,{placeholder:s}),c.jsx(xv,{className:Ze.TriggerIcon,children:c.jsx(Rv,{})})]}),c.jsx(Cv,{className:Ze.Content,position:"popper",sideOffset:4,children:c.jsx(Sv,{className:Ze.Viewport,children:c.jsx(Ev,{children:o.map(p=>c.jsxs(Tv,{value:p.value,disabled:p.disabled,className:Ze.Item,children:[c.jsx("div",{className:Ze.ItemIndicatorContainer,children:c.jsx(Av,{className:Ze.ItemIndicator,children:c.jsx(Ov,{})})}),c.jsx(Pv,{children:p.label})]},p.value))})})})]}),t&&c.jsx("div",{className:Ze.HelperText,children:t})]}));eu.displayName="Select";const Rv=()=>c.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.52459 12.7746C6.8907 12.4085 7.4843 12.4085 7.85041 12.7746L10 14.9242L12.1496 12.7746C12.5157 12.4085 13.1093 12.4085 13.4754 12.7746C13.8415 13.1407 13.8415 13.7343 13.4754 14.1004L10.6629 16.9129C10.2968 17.279 9.7032 17.279 9.33709 16.9129L6.52459 14.1004C6.15847 13.7343 6.15847 13.1407 6.52459 12.7746Z",fill:"currentColor"}),c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.4754 7.22541C13.1093 7.59153 12.5157 7.59153 12.1496 7.22541L10 5.07583L7.85041 7.22541C7.4843 7.59153 6.8907 7.59153 6.52459 7.22541C6.15847 6.8593 6.15847 6.2657 6.52459 5.89959L9.33709 3.08709C9.7032 2.72097 10.2968 2.72097 10.6629 3.08709L13.4754 5.89959C13.8415 6.2657 13.8415 6.8593 13.4754 7.22541Z",fill:"currentColor"})]}),Ov=()=>c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M13.3333 4L6 11.3333L2.66667 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Iv={TextArea:"TextArea__pa-A0"},tu=S.forwardRef(({children:e,className:t,...n},r)=>{const o=k(Iv.TextArea,t);return c.jsx("textarea",{ref:r,className:o,...n,children:e})});tu.displayName="TextArea";function jv(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var Cn=e=>{const{present:t,children:n}=e,r=kv(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),s=ce(r.ref,Lv(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:s}):null};Cn.displayName="Presence";function kv(e){const[t,n]=d.useState(),r=d.useRef(null),o=d.useRef(e),s=d.useRef("none"),i=e?"mounted":"unmounted",[a,l]=jv(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const u=po(r.current);s.current=a==="mounted"?u:"none"},[a]),ve(()=>{const u=r.current,p=o.current;if(p!==e){const m=s.current,g=po(u);e?l("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(p&&m!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),ve(()=>{if(t){let u;const p=t.ownerDocument.defaultView??window,h=g=>{const f=po(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&f&&(l("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},m=g=>{g.target===t&&(s.current=po(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{p.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:d.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function po(e){return(e==null?void 0:e.animationName)||"none"}function Lv(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Dv=Symbol("radix.slottable");function Nv(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Dv,t}var[ho]=Yn("Tooltip",[Jr]),mo=Jr(),nu="TooltipProvider",Mv=700,Ks="tooltip.open",[$v,Qs]=ho(nu),ru=e=>{const{__scopeTooltip:t,delayDuration:n=Mv,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=d.useRef(!0),a=d.useRef(!1),l=d.useRef(0);return d.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),c.jsx($v,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:d.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:d.useCallback(u=>{a.current=u},[]),disableHoverableContent:o,children:s})};ru.displayName=nu;var er="Tooltip",[Fv,tr]=ho(er),ou=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:i,delayDuration:a}=e,l=Qs(er,e.__scopeTooltip),u=mo(t),[p,h]=d.useState(null),m=Kt(),g=d.useRef(0),x=i??l.disableHoverableContent,f=a??l.delayDuration,v=d.useRef(!1),[y,w]=eo({prop:r,defaultProp:o??!1,onChange:A=>{A?(l.onOpen(),document.dispatchEvent(new CustomEvent(Ks))):l.onClose(),s==null||s(A)},caller:er}),C=d.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),E=d.useCallback(()=>{window.clearTimeout(g.current),g.current=0,v.current=!1,w(!0)},[w]),P=d.useCallback(()=>{window.clearTimeout(g.current),g.current=0,w(!1)},[w]),R=d.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{v.current=!0,w(!0),g.current=0},f)},[f,w]);return d.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),c.jsx(dc,{...u,children:c.jsx(Fv,{scope:t,contentId:m,open:y,stateAttribute:C,trigger:p,onTriggerChange:h,onTriggerEnter:d.useCallback(()=>{l.isOpenDelayedRef.current?R():E()},[l.isOpenDelayedRef,R,E]),onTriggerLeave:d.useCallback(()=>{x?P():(window.clearTimeout(g.current),g.current=0)},[P,x]),onOpen:E,onClose:P,disableHoverableContent:x,children:n})})};ou.displayName=er;var Ys="TooltipTrigger",su=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=tr(Ys,n),s=Qs(Ys,n),i=mo(n),a=d.useRef(null),l=ce(t,a,o.onTriggerChange),u=d.useRef(!1),p=d.useRef(!1),h=d.useCallback(()=>u.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),c.jsx(fc,{asChild:!0,...i,children:c.jsx(ie.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:Z(e.onPointerMove,m=>{m.pointerType!=="touch"&&!p.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),p.current=!0)}),onPointerLeave:Z(e.onPointerLeave,()=>{o.onTriggerLeave(),p.current=!1}),onPointerDown:Z(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Z(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Z(e.onBlur,o.onClose),onClick:Z(e.onClick,o.onClose)})})});su.displayName=Ys;var Zs="TooltipPortal",[Bv,Uv]=ho(Zs,{forceMount:void 0}),iu=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=tr(Zs,t);return c.jsx(Bv,{scope:t,forceMount:n,children:c.jsx(Cn,{present:n||s.open,children:c.jsx(Ds,{asChild:!0,container:o,children:r})})})};iu.displayName=Zs;var Sn="TooltipContent",au=d.forwardRef((e,t)=>{const n=Uv(Sn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=tr(Sn,e.__scopeTooltip);return c.jsx(Cn,{present:r||i.open,children:i.disableHoverableContent?c.jsx(lu,{side:o,...s,ref:t}):c.jsx(Wv,{side:o,...s,ref:t})})}),Wv=d.forwardRef((e,t)=>{const n=tr(Sn,e.__scopeTooltip),r=Qs(Sn,e.__scopeTooltip),o=d.useRef(null),s=ce(t,o),[i,a]=d.useState(null),{trigger:l,onClose:u}=n,p=o.current,{onPointerInTransitChange:h}=r,m=d.useCallback(()=>{a(null),h(!1)},[h]),g=d.useCallback((x,f)=>{const v=x.currentTarget,y={x:x.clientX,y:x.clientY},w=Gv(y,v.getBoundingClientRect()),C=qv(y,w),E=Kv(f.getBoundingClientRect()),P=Yv([...C,...E]);a(P),h(!0)},[h]);return d.useEffect(()=>()=>m(),[m]),d.useEffect(()=>{if(l&&p){const x=v=>g(v,p),f=v=>g(v,l);return l.addEventListener("pointerleave",x),p.addEventListener("pointerleave",f),()=>{l.removeEventListener("pointerleave",x),p.removeEventListener("pointerleave",f)}}},[l,p,g,m]),d.useEffect(()=>{if(i){const x=f=>{const v=f.target,y={x:f.clientX,y:f.clientY},w=(l==null?void 0:l.contains(v))||(p==null?void 0:p.contains(v)),C=!Qv(y,i);w?m():C&&(m(),u())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[l,p,i,u,m]),c.jsx(lu,{...e,ref:s})}),[Hv,Vv]=ho(er,{isInside:!1}),zv=Nv("TooltipContent"),lu=d.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,l=tr(Sn,n),u=mo(n),{onClose:p}=l;return d.useEffect(()=>(document.addEventListener(Ks,p),()=>document.removeEventListener(Ks,p)),[p]),d.useEffect(()=>{if(l.trigger){const h=m=>{const g=m.target;g!=null&&g.contains(l.trigger)&&p()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[l.trigger,p]),c.jsx(Wr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:h=>h.preventDefault(),onDismiss:p,children:c.jsxs(pc,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(zv,{children:r}),c.jsx(Hv,{scope:n,isInside:!0,children:c.jsx(dg,{id:l.contentId,role:"tooltip",children:o||r})})]})})});au.displayName=Sn;var cu="TooltipArrow",uu=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=mo(n);return Vv(cu,n).isInside?null:c.jsx(hc,{...o,...r,ref:t})});uu.displayName=cu;function Gv(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function qv(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Kv(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Qv(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],l=t[i],u=a.x,p=a.y,h=l.x,m=l.y;p>r!=m>r&&n<(h-u)*(r-p)/(m-p)+u&&(o=!o)}return o}function Yv(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Zv(t)}function Zv(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Xv=ru,Jv=ou,ey=su,ty=iu,ny=au,ry=uu;const du={tooltip:"tooltip__nUuSh",tooltipArrow:"tooltipArrow__W2w-f"},En=({children:e,open:t,displayName:n,tooltipContent:r,className:o,disabled:s,delayDuration:i=300,side:a="right",sideOffset:l=0})=>{const[u,p]=S.useState(!1),h=t!==void 0,g=s?!1:h?t:u,x=f=>{s||h||p(f)};return c.jsx(Xv,{delayDuration:i,children:c.jsxs(Jv,{open:g,onOpenChange:x,children:[c.jsx(ey,{asChild:!0,children:e}),c.jsx(ty,{children:c.jsxs(ny,{className:k(du.tooltip,o),side:a,sideOffset:l,children:[n,r,c.jsx(ry,{className:du.tooltipArrow})]})})]})})};En.displayName="Tooltip";const fu={truncatedText:"truncatedText__Y-jSd",overflowing:"overflowing__o8TC-"},pu=({children:e,className:t,tooltipSide:n="top",tooltipClassName:r})=>{const o=S.useRef(null),[s,i]=S.useState(!1);S.useEffect(()=>{const l=()=>{if(o.current){const u=o.current.scrollWidth>o.current.clientWidth;i(u)}};return l(),window.addEventListener("resize",l),()=>{window.removeEventListener("resize",l)}},[e]);const a=c.jsx("span",{ref:o,className:k(fu.truncatedText,s?fu.overflowing:"",t||""),children:e});return s?c.jsx(En,{tooltipContent:e,side:n,className:r,children:a}):a};pu.displayName="TextWithTooltip";const nr={SearchInput:"SearchInput__4OFyE",SearchIcon:"SearchIcon__YgnQy",ClearIcon:"ClearIcon__ukRVr",SearchInput__ClearIcon:"SearchInput__ClearIcon__uzVoc",SearchInput__SearchIcon:"SearchInput__SearchIcon__zoDG4"},Xs=S.forwardRef(({className:e,placeholder:t="Type to search...",showClearButton:n=!1,showSearchIcon:r=!0,onClear:o,...s},i)=>{const a=k(nr.SearchInput,n&&nr.SearchInput__ClearIcon,r&&nr.SearchInput__SearchIcon,e),l=k(nr.SearchIcon),u=k(nr.ClearIcon);return c.jsxs("div",{className:a,children:[c.jsx(Ur,{ref:i,type:"text",placeholder:t,...s}),r&&c.jsx("svg",{className:l,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M13 13L10.6667 10.6667M12.3333 6.66667C12.3333 9.79628 9.79628 12.3333 6.66667 12.3333C3.53705 12.3333 1 9.79628 1 6.66667C1 3.53705 3.53705 1 6.66667 1C9.79628 1 12.3333 3.53705 12.3333 6.66667Z",stroke:"#A4A4A4",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})}),n&&c.jsx("svg",{className:u,width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:o,children:c.jsx("path",{d:"M7.33334 0.666748L0.666672 7.33341M0.666672 0.666748L7.33334 7.33341",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})]})});Xs.displayName="SearchInput";const Xt={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"},Jt={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"},go=S.forwardRef(({children:e,className:t,open:n,align:r="right",...o},s)=>{const i=k(Jt.DropdownList,{[Jt["DropdownList--open"]]:n,[Jt["DropdownList--closed"]]:!n,[Jt["DropdownList--left"]]:r==="left"},t);return c.jsx("div",{ref:s,className:i,...o,children:e})});go.displayName="DropdownList";const rr=S.forwardRef(({children:e,className:t,canBeSelected:n=!1,...r},o)=>{const s=k(Xt.AutocompleteItem,{[Xt["AutocompleteItem--canBeSelected"]]:n},t);return c.jsx("div",{ref:o,className:s,role:n?"option":void 0,...r,children:e})});rr.displayName="AutocompleteItem";const oy=300,sy={query:"",suggestions:[],loading:!1,error:null},iy=({suggestionFetcher:e,canAdd:t})=>{const[n,r]=S.useState(sy);return S.useEffect(()=>{r(a=>({...a,loading:!0}));const s=async()=>{try{const a=await e(n.query);t&&!a.some(l=>l.value.toLowerCase()===n.query.toLowerCase())&&a.push({label:`Add "${n.query}"`,value:n.query,isNew:!0}),r(l=>({...l,suggestions:a,loading:!1}))}catch(a){r(l=>({...l,suggestions:[],error:a,loading:!1}))}},i=setTimeout(()=>{s()},oy);return()=>{clearTimeout(i)}},[n.query]),{...n,setQuery:s=>{r(i=>({...i,query:s}))}}},hu=S.forwardRef(({text:e,query:t,className:n,...r},o)=>{const s=k(Xt.AutocompleteHighlighter,n),i=(a,l)=>{const u=a.toLowerCase().indexOf(l.toLowerCase());if(u===-1||l.length===0)return a;const p=a.slice(0,u),h=a.slice(u,u+l.length),m=a.slice(u+l.length);return c.jsxs(c.Fragment,{children:[p,c.jsx("span",{className:Xt.AutocompleteHighlighter__match,children:h}),i(m,l)]})};return c.jsx("div",{ref:o,className:s,...r,children:i(e,t)})});hu.displayName="AutocompleteHighlighter";const ay=5,mu=S.forwardRef(({children:e,className:t,canAdd:n,maxSuggestionsShown:r=ay,searchInputProps:o,keepSelectedOption:s,suggestionFetcher:i,onAccept:a,...l},u)=>{const{query:p,setQuery:h,suggestions:m,loading:g}=iy({suggestionFetcher:i,canAdd:n}),[x,f]=S.useState(null),v=p.length>0,y=A=>{h(A.target.value)},w=A=>{a==null||a(A),s?(f(A),h(A.value)):h("")},C=()=>{a==null||a(null),f(null),h("")},E=k(Xt.SearchAutocomplete,t),P=m.slice(0,r),R=m.slice(r);return c.jsxs("div",{ref:u,className:E,...l,children:[c.jsx(Xs,{...o,value:p,onChange:y,showClearButton:!!x,onClear:C}),e,c.jsxs(go,{className:Xt.DropdownList,open:v&&!x,role:"listbox","aria-label":"Suggestions",children:[g?c.jsx(rr,{children:"Loading..."}):P.map(A=>c.jsxs(rr,{canBeSelected:!0,onClick:w.bind(null,A),children:[c.jsx(hu,{text:A.label,query:p}),A.description&&c.jsx("span",{className:Xt.AutocompleteItemDescription,children:A.description})]},A.value)),!g&&R.length>0&&c.jsxs(rr,{children:[R.length," more results"]}),v&&m.length===0&&!g&&c.jsx(rr,{children:"No results found"})]})]})});mu.displayName="SearchAutocomplete";const Tt=e=>{let t=null,n=null;return S.Children.forEach(e.children,r=>{const o=r.props.condition;o===void 0?n=r:!t&&o===!0&&(t=r)}),c.jsx(c.Fragment,{children:t||n})};Tt.displayName="Show",Tt.When=({condition:e,children:t})=>c.jsx(c.Fragment,{children:e&&t}),Tt.Else=({render:e,children:t})=>c.jsx(c.Fragment,{children:e||t});var ly=Symbol.for("react.lazy"),vo=d[" use ".trim().toString()];function cy(e){return typeof e=="object"&&e!==null&&"then"in e}function gu(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===ly&&"_payload"in e&&cy(e._payload)}function uy(e){const t=fy(e),n=d.forwardRef((r,o)=>{let{children:s,...i}=r;gu(s)&&typeof vo=="function"&&(s=vo(s._payload));const a=d.Children.toArray(s),l=a.find(hy);if(l){const u=l.props.children,p=a.map(h=>h===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return c.jsx(t,{...i,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,p):null})}return c.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var dy=uy("Slot");function fy(e){const t=d.forwardRef((n,r)=>{let{children:o,...s}=n;if(gu(o)&&typeof vo=="function"&&(o=vo(o._payload)),d.isValidElement(o)){const i=gy(o),a=my(s,o.props);return o.type!==d.Fragment&&(a.ref=r?pn(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var py=Symbol("radix.slottable");function hy(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===py}function my(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function gy(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const vu={SkeletonListContainer:"SkeletonListContainer__MKJhE",Skeleton:"Skeleton__Ovpiw"},yo=S.forwardRef((e,t)=>{const{children:n,className:r,loading:o,height:s=48,width:i,borderRadius:a,style:l,...u}=e;if(!o&&n)return n;const p=S.isValidElement(n)?dy:"span";return c.jsx(p,{ref:t,"aria-hidden":!0,className:k(vu.Skeleton,r),style:{...l,width:i,minWidth:i,height:s,borderRadius:a},"data-inline-skeleton":S.isValidElement(n)?void 0:!0,tabIndex:-1,...u,children:n})});yo.displayName="Skeleton";const yu=e=>{const{numberOfItems:t,itemsGap:n=2,itemProps:r}=e,o=Array.from({length:t},(s,i)=>i+1);return c.jsx("div",{className:k(vu.SkeletonListContainer),style:{gap:n},children:o.map(s=>c.jsx(yo,{loading:!0,...r},s))})};yu.displayName="SkeletonList";const bu={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"},wu=({className:e,color:t="white",size:n=80,thickness:r})=>{const o=k(bu.spinner,bu[`spinner-${t}`],e),s=r??Math.max(n/12,2);return c.jsx("span",{style:{width:n,height:n,borderWidth:s},className:o})};wu.displayName="Spinner";const bo={switch:"switch__0b2av",disabled:"disabled__KpauE",checked:"checked__2-JV-",thumb:"thumb__fEuKD"},_u=S.forwardRef(({checked:e,defaultChecked:t=!1,onCheckedChange:n,disabled:r=!1,id:o,className:s,name:i,"aria-label":a,"aria-labelledby":l,"aria-describedby":u,...p},h)=>{const[m,g]=S.useState(t),x=e!==void 0,f=x?!!e:m,v=()=>{if(r)return;const w=!f;x||g(w),n==null||n(w)},y=w=>{(w.key===" "||w.key==="Enter")&&(w.preventDefault(),v())};return c.jsx("button",{ref:h,type:"button",role:"switch","aria-checked":f,"aria-label":a,"aria-labelledby":l,"aria-describedby":u,disabled:r,id:o,name:i,className:k(bo.switch,{[bo.checked]:f,[bo.disabled]:r}),onClick:v,onKeyDown:y,...p,children:c.jsx("span",{className:bo.thumb,"aria-hidden":"true"})})});_u.displayName="Switch";const Xe={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"},xu=S.createContext(null),Js=()=>{const e=S.useContext(xu);if(!e)throw new Error("Tabs components must be used within a Tabs provider");return e},vy=({defaultValue:e,value:t,onValueChange:n,orientation:r="horizontal",className:o="",children:s})=>{const[i,a]=S.useState(e||""),l=t!==void 0,u=l?t:i,p=h=>{l||a(h),n==null||n(h)};return c.jsx(xu.Provider,{value:{value:u,onValueChange:p,orientation:r},children:c.jsx("div",{className:k(Xe.tabsRoot,o),children:s})})},yy=({className:e="",children:t})=>{const{orientation:n}=Js(),r=S.useRef(null),o=s=>{var u;const i=(u=r.current)==null?void 0:u.querySelectorAll('[role="tab"]:not([disabled])');if(!i)return;const a=Array.from(i).findIndex(p=>p===document.activeElement);let l=a;switch(s.key){case"ArrowLeft":n==="horizontal"&&(s.preventDefault(),l=a>0?a-1:i.length-1);break;case"ArrowRight":n==="horizontal"&&(s.preventDefault(),l=a<i.length-1?a+1:0);break;case"ArrowUp":n==="vertical"&&(s.preventDefault(),l=a>0?a-1:i.length-1);break;case"ArrowDown":n==="vertical"&&(s.preventDefault(),l=a<i.length-1?a+1:0);break;case"Home":s.preventDefault(),l=0;break;case"End":s.preventDefault(),l=i.length-1;break}if(l!==a){const p=i[l];p.focus(),p.click()}};return c.jsx("div",{ref:r,role:"tablist","aria-orientation":n,onKeyDown:o,className:k(Xe.tabsList,n==="horizontal"?Xe.tabsListHorizontal:Xe.tabsListVertical,e),children:t})},by=({value:e,disabled:t=!1,className:n="",children:r})=>{const{value:o,onValueChange:s,orientation:i}=Js(),a=o===e,l=()=>{t||s(e)};return c.jsx("button",{role:"tab","aria-selected":a,"aria-controls":`content-${e}`,tabIndex:a?0:-1,disabled:t,onClick:l,className:k(Xe.tabsTrigger,i==="horizontal"?Xe.tabsTriggerHorizontal:Xe.tabsTriggerVertical,a&&Xe.tabsTriggerActive,t&&Xe.tabsTriggerDisabled,n),children:r})},wy=({value:e,className:t="",children:n})=>{const{value:r}=Js();return r===e?c.jsx("div",{role:"tabpanel",id:`content-${e}`,"aria-labelledby":`trigger-${e}`,tabIndex:0,className:k(Xe.tabsContent,t),children:n}):null},Cu=({className:e,state:t="open",onClick:n})=>t==="open"?c.jsxs("svg",{className:e,onClick:n,xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",viewBox:"0 0 14 14",fill:"none",children:[c.jsx("path",{d:"M1.41174 7.41635C1.3323 7.29056 1.29257 7.22766 1.27034 7.13065C1.25364 7.05778 1.25364 6.94287 1.27034 6.87C1.29257 6.77299 1.3323 6.71009 1.41174 6.58431C2.06823 5.54482 4.02232 2.91699 7.00024 2.91699C9.97815 2.91699 11.9322 5.54482 12.5887 6.5843C12.6682 6.71009 12.7079 6.77299 12.7301 6.87C12.7468 6.94287 12.7468 7.05778 12.7301 7.13065C12.7079 7.22766 12.6682 7.29056 12.5887 7.41635C11.9322 8.45584 9.97815 11.0837 7.00024 11.0837C4.02232 11.0837 2.06823 8.45584 1.41174 7.41635Z",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M7.00024 8.75033C7.96673 8.75033 8.75024 7.96682 8.75024 7.00033C8.75024 6.03383 7.96673 5.25033 7.00024 5.25033C6.03374 5.25033 5.25024 6.03383 5.25024 7.00033C5.25024 7.96682 6.03374 8.75033 7.00024 8.75033Z",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})]}):c.jsx("svg",{className:e,onClick:n,xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",viewBox:"0 0 14 14",fill:"none",children:c.jsx("path",{d:"M6.26672 2.97052C6.50379 2.93547 6.74835 2.91667 7.00024 2.91667C9.97816 2.91667 11.9323 5.54449 12.5887 6.58398C12.6682 6.70979 12.7079 6.7727 12.7302 6.86973C12.7469 6.94259 12.7468 7.05755 12.7301 7.13042C12.7079 7.22744 12.6679 7.29077 12.5879 7.41741C12.413 7.69425 12.1463 8.08331 11.793 8.50527M3.92252 3.9171C2.66131 4.77266 1.8051 5.9613 1.41231 6.58308C1.3325 6.70942 1.29259 6.7726 1.27035 6.86961C1.25364 6.94248 1.25363 7.05742 1.27033 7.13029C1.29257 7.22731 1.33229 7.29022 1.41174 7.41602C2.06823 8.45551 4.02232 11.0833 7.00024 11.0833C8.20098 11.0833 9.23526 10.6561 10.0851 10.078M1.75024 1.75L12.2502 12.25M5.76281 5.76256C5.44612 6.07925 5.25024 6.51675 5.25024 7C5.25024 7.9665 6.03374 8.75 7.00024 8.75C7.48349 8.75 7.92099 8.55413 8.23768 8.23744",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})}),Su={PasswordInput:"PasswordInput__GDJDN",eyeIcon:"eyeIcon__kDExG"},_y=S.forwardRef((e,t)=>{const[n,r]=S.useState("password"),o=S.useCallback(()=>{r(s=>s==="password"?"text":"password")},[r]);return c.jsxs("div",{className:k(Su.PasswordInput,e.className),children:[c.jsx(Ur,{type:n,...e,ref:t}),c.jsx(Cu,{className:Su.eyeIcon,onClick:o,state:n==="password"?"open":"closed"})]})});function xy(e){const t=Cy(e),n=d.forwardRef((r,o)=>{const{children:s,...i}=r,a=d.Children.toArray(s),l=a.find(Ey);if(l){const u=l.props.children,p=a.map(h=>h===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return c.jsx(t,{...i,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,p):null})}return c.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Cy(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const i=Py(o),a=Ty(s,o.props);return o.type!==d.Fragment&&(a.ref=r?pn(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Sy=Symbol("radix.slottable");function Ey(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Sy}function Ty(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Py(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var wo="Dialog",[Eu]=Yn(wo),[Ay,Be]=Eu(wo),Tu=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,a=d.useRef(null),l=d.useRef(null),[u,p]=eo({prop:r,defaultProp:o??!1,onChange:s,caller:wo});return c.jsx(Ay,{scope:t,triggerRef:a,contentRef:l,contentId:Kt(),titleId:Kt(),descriptionId:Kt(),open:u,onOpenChange:p,onOpenToggle:d.useCallback(()=>p(h=>!h),[p]),modal:i,children:n})};Tu.displayName=wo;var Pu="DialogTrigger",Ry=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Be(Pu,n),s=ce(t,o.triggerRef);return c.jsx(ie.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ni(o.open),...r,ref:s,onClick:Z(e.onClick,o.onOpenToggle)})});Ry.displayName=Pu;var ei="DialogPortal",[Oy,Au]=Eu(ei,{forceMount:void 0}),Ru=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Be(ei,t);return c.jsx(Oy,{scope:t,forceMount:n,children:d.Children.map(r,i=>c.jsx(Cn,{present:n||s.open,children:c.jsx(Ds,{asChild:!0,container:o,children:i})}))})};Ru.displayName=ei;var _o="DialogOverlay",Ou=d.forwardRef((e,t)=>{const n=Au(_o,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Be(_o,e.__scopeDialog);return s.modal?c.jsx(Cn,{present:r||s.open,children:c.jsx(jy,{...o,ref:t})}):null});Ou.displayName=_o;var Iy=xy("DialogOverlay.RemoveScroll"),jy=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Be(_o,n);return c.jsx(Us,{as:Iy,allowPinchZoom:!0,shards:[o.contentRef],children:c.jsx(ie.div,{"data-state":ni(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),en="DialogContent",Iu=d.forwardRef((e,t)=>{const n=Au(en,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Be(en,e.__scopeDialog);return c.jsx(Cn,{present:r||s.open,children:s.modal?c.jsx(ky,{...o,ref:t}):c.jsx(Ly,{...o,ref:t})})});Iu.displayName=en;var ky=d.forwardRef((e,t)=>{const n=Be(en,e.__scopeDialog),r=d.useRef(null),o=ce(t,n.contentRef,r);return d.useEffect(()=>{const s=r.current;if(s)return yc(s)},[]),c.jsx(ju,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:Z(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&s.preventDefault()}),onFocusOutside:Z(e.onFocusOutside,s=>s.preventDefault())})}),Ly=d.forwardRef((e,t)=>{const n=Be(en,e.__scopeDialog),r=d.useRef(!1),o=d.useRef(!1);return c.jsx(ju,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),ju=d.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,a=Be(en,n),l=d.useRef(null),u=ce(t,l);return Tl(),c.jsxs(c.Fragment,{children:[c.jsx(_s,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:c.jsx(Wr,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":ni(a.open),...i,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(Dy,{titleId:a.titleId}),c.jsx(My,{contentRef:l,descriptionId:a.descriptionId})]})]})}),ti="DialogTitle",ku=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Be(ti,n);return c.jsx(ie.h2,{id:o.titleId,...r,ref:t})});ku.displayName=ti;var Lu="DialogDescription",Du=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Be(Lu,n);return c.jsx(ie.p,{id:o.descriptionId,...r,ref:t})});Du.displayName=Lu;var Nu="DialogClose",Mu=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Be(Nu,n);return c.jsx(ie.button,{type:"button",...r,ref:t,onClick:Z(e.onClick,()=>o.onOpenChange(!1))})});Mu.displayName=Nu;function ni(e){return e?"open":"closed"}var $u="DialogTitleWarning",[w2,Fu]=Xh($u,{contentName:en,titleName:ti,docsSlug:"dialog"}),Dy=({titleId:e})=>{const t=Fu($u),n=`\`${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 m.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},qg="DialogDescriptionWarning",Qg=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Fc(qg).contentName}}.`;return m.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Yg=Tc,Kg=Oc,Zg=Rc,Xg=kc,Jg=Dc,ev=Ic,tv=Mc;const Bc={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"},Uc=x.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Rt.Header,t);return c.jsx("div",{ref:n,className:o,...r,children:e})});Uc.displayName="Header";const Wc=x.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Rt.Content,t);return c.jsx("div",{ref:n,className:o,...r,children:e})});Wc.displayName="Content";const zc=x.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Rt.Footer,t);return c.jsx("div",{ref:n,className:o,...r,children:e})});zc.displayName="Footer";const Hc=x.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Rt.Title,t);return c.jsx(Jg,{ref:n,className:o,...r,children:e})});Hc.displayName="Title";const Vc=x.forwardRef(({className:e,...t},r)=>{const n=D(Rt.Close,e);return c.jsx(tv,{ref:r,asChild:!0,className:n,...t,children:c.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M11 1L1 11M1 1L11 11",stroke:"#A9A9A9",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})});Vc.displayName="Close";const Gc=x.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Rt.Actions,t);return c.jsx("div",{ref:n,className:o,...r,children:e})});Gc.displayName="Actions";const qc=x.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Rt.Description,t);return c.jsx("div",{ref:n,className:o,...r,children:e})});qc.displayName="Description";const ae=({children:e,onClose:t,open:r=!1,className:n})=>{const o=()=>{t==null||t()};return c.jsx(Yg,{onOpenChange:o,open:r,children:c.jsxs(Kg,{children:[c.jsx(Zg,{className:Bc.Overlay}),c.jsxs(Xg,{children:[c.jsx(ev,{}),c.jsx("div",{className:D(Bc.Content,n),children:e})]})]})})};ae.displayName="Dialog",ae.Header=Uc,ae.Content=Wc,ae.Footer=zc,ae.Actions=Gc,ae.Title=Hc,ae.Description=qc,ae.Close=Vc;const Qc={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"},rv=({children:e,variant:t="solid",className:r})=>{const n=D(Qc.pill,Qc[`pill--${t}`],r);return c.jsx("div",{className:n,children:e})},Yc={DialogContent:"DialogContent__-WjG9",Message:"Message__AUgVP"},Kc=({loading:e,title:t,children:r,className:n,onClose:o,onConfirm:s,...i})=>c.jsxs(ae,{...i,className:D(Yc.DialogContent,n),children:[c.jsxs(ae.Header,{children:[c.jsx(ae.Title,{children:t}),c.jsx(ae.Close,{onClick:o})]}),c.jsx(ae.Content,{children:typeof r=="string"?c.jsx("p",{className:Yc.Message,children:r}):r}),c.jsx(ae.Footer,{children:c.jsxs(ae.Actions,{children:[c.jsx(wn,{onClick:o,disabled:e,variant:"outlined",children:"Cancel"}),c.jsx(wn,{onClick:s,disabled:e,loading:e,variant:"contained",children:"Confirm"})]})})]});Kc.displayName="ConfirmDialog";const Zn={container:"container__AjtYJ",title:"title__A2vCu",description:"description__bP6Ig",mailToText:"mailToText__SdlsE"},Zc=()=>c.jsxs("svg",{width:"200",height:"200",viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M184.415 152.221C183.936 151.406 183.401 150.621 182.892 149.824C181.61 147.817 180.327 145.809 179.045 143.801C177.102 140.759 175.159 137.717 173.215 134.676C170.766 130.841 168.316 127.006 165.866 123.171C163.068 118.79 160.27 114.41 157.472 110.03C154.484 105.352 151.496 100.674 148.508 95.9965C145.474 91.2464 142.439 86.4963 139.405 81.7463C136.513 77.2189 133.621 72.6915 130.729 68.1641C128.123 64.084 125.517 60.0039 122.91 55.9238C120.748 52.5389 118.586 49.1541 116.424 45.7692C114.864 43.3273 113.304 40.8854 111.744 38.4436C110.943 37.1899 110.142 35.9362 109.342 34.6825C108.765 33.7802 108.096 32.9744 107.292 32.2572C104.604 29.8584 100.572 29.2302 97.2301 30.5252C94.5951 31.5463 92.6177 33.3853 91.0923 35.7373C90.8768 36.0696 90.6658 36.405 90.4526 36.7387C89.3951 38.3941 88.3378 40.0494 87.2803 41.7049C85.5124 44.4725 83.7444 47.2402 81.9765 50.0079C79.644 53.6594 77.3114 57.3111 74.9788 60.9626C72.2632 65.2138 69.5477 69.465 66.8321 73.7162C63.8817 78.3349 60.9313 82.9536 57.9811 87.5722C54.9542 92.3106 51.9274 97.0491 48.9006 101.787C45.9557 106.398 43.0107 111.008 40.0658 115.618C37.3487 119.872 34.6316 124.125 31.9145 128.379C29.6106 131.986 27.3067 135.592 25.0028 139.199C23.2565 141.933 21.5101 144.667 19.7639 147.4C18.7335 149.013 17.7031 150.626 16.6728 152.239C14.8665 155.067 13.7231 158.171 14.23 161.595C14.9672 166.576 19.2366 170.131 24.2215 170.137C25.559 170.139 26.8963 170.137 28.2338 170.137C30.9198 170.137 33.6058 170.137 36.2918 170.137C40.0725 170.137 43.8533 170.137 47.6341 170.137C52.2557 170.137 56.8772 170.137 61.4989 170.137C66.7339 170.137 71.969 170.137 77.204 170.137C82.7467 170.137 88.2894 170.137 93.8322 170.137C99.4529 170.137 105.074 170.137 110.694 170.137C116.139 170.137 121.584 170.137 127.029 170.137C132.044 170.137 137.06 170.137 142.075 170.137C146.425 170.137 150.776 170.137 155.127 170.137C158.516 170.137 161.904 170.137 165.293 170.137C167.49 170.137 169.686 170.137 171.883 170.137C172.633 170.137 173.384 170.137 174.135 170.137C178.404 170.087 182.136 167.627 184.212 163.932C186.248 160.307 186.562 155.866 184.415 152.221ZM94.0937 37.3471C94.0897 37.3539 94.0862 37.3597 94.0824 37.3661C94.0826 37.3652 94.0831 37.3642 94.0833 37.3632C94.0844 37.3581 94.0909 37.3518 94.0937 37.3471ZM178.584 164.489C178.476 164.538 178.524 164.516 178.584 164.489V164.489ZM180.937 162.79C180.979 162.72 181.118 162.485 181.127 162.498C181.145 162.528 181.058 162.647 180.937 162.79ZM181.821 160.333C181.806 160.446 181.782 160.646 181.773 160.697C181.736 160.919 181.686 161.139 181.637 161.359C181.637 161.359 181.637 161.359 181.637 161.359C181.629 161.377 181.621 161.399 181.61 161.426C181.54 161.604 181.472 161.785 181.406 161.965C181.402 161.977 181.398 161.988 181.394 161.999C181.304 162.16 181.219 162.323 181.123 162.481C181.074 162.562 181.016 162.641 180.97 162.724C180.949 162.762 180.936 162.785 180.93 162.798C180.727 163.035 180.436 163.332 180.388 163.385C180.696 163.049 180.535 163.229 180.318 163.42C180.172 163.548 180.018 163.666 179.869 163.79C179.848 163.807 179.831 163.822 179.816 163.835C179.797 163.845 179.775 163.857 179.747 163.873C179.576 163.97 179.411 164.078 179.238 164.171C179.043 164.277 178.844 164.373 178.642 164.463C178.556 164.494 178.471 164.526 178.384 164.553C177.532 164.819 176.835 164.945 176.084 164.954C175.296 164.954 174.508 164.954 173.719 164.954C171.519 164.954 169.318 164.954 167.118 164.954C163.751 164.954 160.385 164.954 157.019 164.954C152.756 164.954 148.493 164.954 144.231 164.954C139.275 164.954 134.319 164.954 129.364 164.954C123.981 164.954 118.598 164.954 113.215 164.954C107.651 164.954 102.086 164.954 96.5224 164.954C91.024 164.954 85.5255 164.954 80.0271 164.954C74.8407 164.954 69.6543 164.954 64.4679 164.954C59.8401 164.954 55.2123 164.954 50.5846 164.954C46.7784 164.954 42.9721 164.954 39.166 164.954C36.3891 164.954 33.6122 164.954 30.8354 164.954C29.3555 164.954 27.8756 164.954 26.3957 164.954C25.9641 164.954 25.534 164.958 25.1029 164.922C23.4511 164.785 22.11 164.207 20.7626 163.127C20.3445 162.792 19.7301 162.074 19.3142 161.434C19.2096 161.273 19.1102 161.109 19.0161 160.942C18.9707 160.861 18.8013 160.534 18.8105 160.558C18.7451 160.414 18.5329 159.846 18.4422 159.537C18.3467 159.211 18.2692 158.879 18.2129 158.544C18.2174 158.545 18.1876 158.285 18.1815 158.192C18.1669 157.964 18.1617 157.736 18.1651 157.508C18.166 157.455 18.1793 157.245 18.185 157.131C18.2055 157.005 18.2441 156.74 18.2591 156.662C18.2913 156.493 18.3319 156.326 18.3726 156.16C18.2821 156.539 18.4099 156.072 18.4891 155.866C18.518 155.79 18.6652 155.487 18.6846 155.432C18.7383 155.339 18.7932 155.243 18.8125 155.21C18.8692 155.114 18.9282 155.019 18.9875 154.924C19.0003 154.904 19.0137 154.884 19.0265 154.863C19.2211 154.554 19.4201 154.247 19.617 153.939C20.6335 152.348 21.6501 150.756 22.6667 149.165C24.3869 146.472 26.107 143.779 27.8271 141.086C30.0848 137.552 32.3425 134.017 34.6001 130.483C37.2646 126.312 39.9291 122.141 42.5935 117.97C45.5011 113.418 48.4086 108.866 51.3161 104.315C54.3131 99.6229 57.31 94.9312 60.3069 90.2397C63.2394 85.6489 66.172 81.058 69.1045 76.4672C71.819 72.2178 74.5334 67.9683 77.2479 63.719C79.5904 60.0517 81.9331 56.3844 84.2756 52.7172C86.0852 49.8842 87.8948 47.0513 89.7044 44.2184C90.8459 42.4315 91.9873 40.6446 93.1287 38.8578C93.3976 38.4368 93.6701 38.0178 93.9356 37.5945C93.9507 37.5705 93.9737 37.5416 93.9972 37.511C93.8744 37.7231 94.1597 37.2638 94.301 37.0921C94.4017 36.9695 94.5483 36.8114 94.5423 36.8113C94.6372 36.721 94.7333 36.6319 94.8323 36.546C94.9866 36.4121 95.1478 36.2876 95.3084 36.1615C94.9392 36.4513 95.3917 36.1121 95.5441 36.0212C96.7591 35.2961 98.1095 34.9498 99.7068 35.0725C101.356 35.1993 102.702 35.7434 104.07 36.8307C104.685 37.3192 105.311 38.1542 105.817 38.9457C106.592 40.1592 107.367 41.3727 108.142 42.5862C109.667 44.9733 111.192 47.3605 112.717 49.7476C114.838 53.0679 116.959 56.3881 119.08 59.7083C121.629 63.6999 124.179 67.6913 126.729 71.6829C129.579 76.1455 132.43 80.6082 135.281 85.0709C138.267 89.7458 141.253 94.4206 144.239 99.0955C147.207 103.742 150.176 108.388 153.144 113.035C155.94 117.412 158.736 121.789 161.532 126.167C164.002 130.034 166.473 133.902 168.943 137.769C170.935 140.886 172.926 144.003 174.917 147.12C176.27 149.239 177.623 151.357 178.976 153.475C179.551 154.376 180.134 155.272 180.702 156.177C181.138 156.872 181.311 157.219 181.54 157.972C181.6 158.167 181.652 158.363 181.697 158.561C181.711 158.623 181.759 158.873 181.78 158.97C181.787 159.063 181.815 159.319 181.819 159.383C181.831 159.579 181.836 159.775 181.834 159.972C181.834 160.022 181.825 160.217 181.821 160.333Z",fill:"var(--pae-shell-color-secondary)"}),c.jsx("path",{d:"M98.5821 122.507C99.019 122.759 99.6307 122.629 100.038 122.389C101.205 121.703 101.925 120.275 102.041 118.92C103.115 106.361 106.514 75.1051 106.514 68.3062C106.514 59.902 92.8134 60.6835 92.0664 71.3279C91.6887 76.7103 97.5083 119.581 97.8266 121.187C97.9188 121.652 98.1423 122.253 98.5821 122.507Z",fill:"var(--pae-shell-color-secondary)"}),c.jsx("path",{d:"M101.841 133.945C101.826 133.94 101.812 133.934 101.797 133.929C98.2767 132.6 94.4012 134.976 93.9964 138.717C93.9765 138.901 93.9636 139.086 93.958 139.272C93.8552 142.712 96.4467 146.126 99.8464 146.664C103.245 147.201 106.896 144.494 107.099 141.059C107.285 137.909 104.789 135.072 101.841 133.945Z",fill:"var(--pae-shell-color-secondary)"}),c.jsx("path",{d:"M161.729 131.662C161.873 131.367 162.082 130.81 161.71 130.584C161.365 130.375 160.901 130.836 160.768 131.107C156.804 139.201 152.84 147.295 148.877 155.389C147.759 157.67 146.642 159.952 145.525 162.233C145.38 162.528 145.171 163.085 145.543 163.311C145.888 163.52 146.352 163.059 146.485 162.788C150.449 154.694 154.413 146.6 158.377 138.506C159.494 136.225 160.611 133.943 161.729 131.662Z",fill:"var(--pae-shell-color-secondary)"}),c.jsx("path",{d:"M144.786 152.64C144.441 152.43 143.977 152.891 143.844 153.163C142.363 156.187 140.882 159.21 139.402 162.234C139.257 162.528 139.048 163.085 139.42 163.311C139.765 163.521 140.229 163.06 140.362 162.788C141.843 159.764 143.323 156.741 144.804 153.717C144.948 153.423 145.158 152.866 144.786 152.64Z",fill:"var(--pae-shell-color-secondary)"}),c.jsx("path",{d:"M136.792 156.459C136.447 156.25 135.983 156.711 135.85 156.982C134.993 158.733 134.136 160.483 133.279 162.233C133.134 162.528 132.925 163.085 133.297 163.311C133.642 163.52 134.106 163.06 134.239 162.788C135.096 161.037 135.953 159.287 136.81 157.537C136.955 157.242 137.164 156.685 136.792 156.459Z",fill:"var(--pae-shell-color-secondary)"}),c.jsx("path",{d:"M129.1 159.663C128.755 159.454 128.291 159.915 128.158 160.186C127.824 160.869 127.49 161.551 127.155 162.234C127.011 162.528 126.802 163.086 127.174 163.311C127.519 163.521 127.983 163.06 128.116 162.788C128.45 162.106 128.784 161.423 129.118 160.741C129.263 160.447 129.472 159.889 129.1 159.663Z",fill:"var(--pae-shell-color-secondary)"}),c.jsx("path",{d:"M165.835 137.946C165.979 137.652 166.188 137.094 165.816 136.868C165.471 136.659 165.007 137.12 164.874 137.392C161.72 143.832 158.566 150.273 155.412 156.713C154.511 158.553 153.609 160.393 152.708 162.233C152.564 162.528 152.355 163.085 152.726 163.311C153.071 163.52 153.535 163.06 153.669 162.788C156.823 156.347 159.977 149.907 163.131 143.466C164.032 141.626 164.933 139.786 165.835 137.946Z",fill:"var(--pae-shell-color-secondary)"}),c.jsx("path",{d:"M169.923 143.153C169.578 142.943 169.114 143.404 168.98 143.676C165.951 149.862 162.921 156.048 159.892 162.234C159.748 162.528 159.538 163.086 159.91 163.311C160.255 163.521 160.719 163.06 160.852 162.788C163.882 156.602 166.911 150.416 169.941 144.23C170.085 143.936 170.294 143.378 169.923 143.153Z",fill:"var(--pae-shell-color-secondary)"}),c.jsx("path",{d:"M174.332 148.821C173.987 148.611 173.523 149.072 173.39 149.344C171.286 153.64 169.182 157.937 167.077 162.234C166.933 162.528 166.724 163.086 167.095 163.311C167.44 163.521 167.905 163.06 168.038 162.788C170.142 158.492 172.246 154.195 174.351 149.898C174.495 149.604 174.704 149.046 174.332 148.821Z",fill:"var(--pae-shell-color-secondary)"}),c.jsx("path",{d:"M178.197 155.597C177.852 155.387 177.388 155.848 177.255 156.12C176.257 158.158 175.259 160.196 174.261 162.233C174.117 162.528 173.907 163.085 174.279 163.311C174.624 163.52 175.088 163.06 175.221 162.788C176.219 160.75 177.217 158.712 178.215 156.674C178.36 156.38 178.569 155.823 178.197 155.597Z",fill:"var(--pae-shell-color-secondary)"}),c.jsx("path",{d:"M97.1962 40.2135C97.3477 39.9803 97.4773 39.477 97.1807 39.2971C96.8678 39.1072 96.5194 39.5265 96.3794 39.7419C94.7034 42.3205 93.0556 44.9176 91.4179 47.5205C88.1743 52.6759 84.976 57.8633 81.9271 63.1367C80.4155 65.7509 78.9283 68.3855 77.5879 71.0925C77.4642 71.3423 77.2879 71.8174 77.6034 72.0088C77.8975 72.1874 78.2905 71.7947 78.4047 71.564C80.9657 66.3919 83.9726 61.4308 86.9671 56.5018C89.7369 51.9427 92.5713 47.4226 95.4474 42.9297C96.0279 42.0228 96.6094 41.1164 97.1962 40.2135Z",fill:"var(--pae-shell-color-secondary)"}),c.jsx("path",{d:"M75.3224 76.1247C75.0193 75.9408 74.6477 76.3459 74.521 76.5695C74.1645 77.1991 73.808 77.8286 73.4515 78.4581C73.3144 78.7003 73.1605 79.1884 73.467 79.3744C73.77 79.5583 74.1416 79.1532 74.2684 78.9296C74.6248 78.3001 74.9814 77.6705 75.3378 77.0411C75.475 76.7988 75.6288 76.3107 75.3224 76.1247Z",fill:"var(--pae-shell-color-secondary)"})]});Zc.displayName="WarningIcon";const nv="support@bluealba.com",ov="@bluealba/pae-shell-ui",js=()=>{const{supportEmail:e=nv}=wi(ov),t=`mailto:${e}?Subject=Support`;return c.jsxs("div",{className:Zn.container,children:[c.jsx(Zc,{}),c.jsx("div",{className:Zn.title,children:"Oops! Something went wrong"}),c.jsxs("div",{className:Zn.description,children:["If the error persists, ",c.jsx("a",{className:Zn.mailToText,href:t,children:"contact the administrator."})]})]})};js.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"},Xc=x.forwardRef(({children:e,className:t,selected:r,disabled:n=!1,...o},s)=>{const i=D(Re.Item,{[Re["Item--selected"]]:r,[Re["Item--disabled"]]:n},t);return c.jsx("li",{ref:s,className:i,role:"listitem","aria-disabled":n,...o,children:e})});Xc.displayName="Item";const Jc=x.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Re.Title,t);return c.jsx("h3",{ref:n,className:o,...r,children:e})});Jc.displayName="Title";const eu=x.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Re.Description,t);return c.jsx("p",{ref:n,className:o,...r,children:e})});eu.displayName="Description";const Ds=({className:e,...t})=>c.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:[c.jsx("path",{d:"M6 6.5C6.27614 6.5 6.5 6.27614 6.5 6C6.5 5.72386 6.27614 5.5 6 5.5C5.72386 5.5 5.5 5.72386 5.5 6C5.5 6.27614 5.72386 6.5 6 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M9.5 6.5C9.77614 6.5 10 6.27614 10 6C10 5.72386 9.77614 5.5 9.5 5.5C9.22386 5.5 9 5.72386 9 6C9 6.27614 9.22386 6.5 9.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M2.5 6.5C2.77614 6.5 3 6.27614 3 6C3 5.72386 2.77614 5.5 2.5 5.5C2.22386 5.5 2 5.72386 2 6C2 6.27614 2.22386 6.5 2.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"})]});Ds.displayName="HorizontalDots";const tu=x.forwardRef(({children:e,className:t,onClick:r,...n},o)=>{const s=x.useRef(null),[i,a]=x.useState(!1),l=D(Re.Actions,t),u=()=>{const w=At["DropdownList--open"],f=At["DropdownList--closed"];document.querySelectorAll(`.${w}`).forEach(_=>{_!==s.current&&(_.classList.remove(w),_.classList.add(f))})},d=w=>{w.stopPropagation(),i?p():(a(!0),r==null||r(w))},p=()=>{a(!1)},h=w=>{w.key==="Escape"&&p()},g=w=>{s.current&&!s.current.contains(w.target)&&p()};return x.useEffect(()=>(i?(u(),document.addEventListener("keydown",h),document.addEventListener("click",g)):(document.removeEventListener("keydown",h),document.removeEventListener("click",g)),()=>{document.removeEventListener("keydown",h),document.removeEventListener("click",g)}),[i]),c.jsxs("div",{ref:o,className:l,onClick:d,role:"button",tabIndex:0,"data-testid":"actions",...n,children:[c.jsx(Ds,{}),c.jsx(xn,{align:"left",ref:s,open:i,"data-testid":"actions-dropdown",role:"menu","aria-label":"Actions",children:e})]})});tu.displayName="Actions";const ru=x.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Re.Action,t);return c.jsx("button",{ref:n,className:o,...r,children:e})});ru.displayName="Action";const nu=x.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Re.Icon,t);return c.jsx("div",{ref:n,className:o,...r,children:e})});nu.displayName="Icon";const Fe=x.forwardRef(({children:e,className:t,size:r="medium",variant:n,...o},s)=>{const i=D(Re.List,{[Re[`List--${r}`]]:r,[Re[`List--${n}`]]:n},t);return c.jsx("ul",{ref:s,className:i,role:"list",...o,children:e})});Fe.displayName="List",Fe.Item=Xc,Fe.Badges=Yo,Fe.Badge=Qo,Fe.Title=Jc,Fe.Description=eu,Fe.Actions=tu,Fe.Action=ru,Fe.Icon=nu;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"},ou=({className:e,...t})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...t,children:[c.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.jsx("path",{d:"M9 6l6 6l-6 6"})]});ou.displayName="ChevronRight";const su=({className:e,...t})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...t,children:[c.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.jsx("path",{d:"M15 6l-6 6l6 6"})]});su.displayName="ChevronLeft";const Ls=({className:e,...t})=>c.jsx("nav",{role:"navigation","aria-label":"pagination",className:D(Qe.Navigation,e),...t});Ls.displayName="Pagination";const Is=m.forwardRef(({className:e,...t},r)=>c.jsx("ul",{ref:r,className:D(Qe.PaginationContent,e),...t}));Is.displayName="PaginationContent";const Mr=m.forwardRef(({className:e,...t},r)=>c.jsx("li",{ref:r,className:e,...t}));Mr.displayName="PaginationItem";const $r=({className:e,isActive:t,...r})=>c.jsx("a",{"aria-current":t?"page":void 0,className:D(Qe.PaginationLink,t&&Qe.Active,e),...r});$r.displayName="PaginationLink";const Ns=({className:e,disabled:t,...r})=>c.jsxs($r,{"aria-label":"Go to previous page",className:D(t&&Qe.Disabled,Qe.Prev,e),...r,children:[c.jsx(su,{}),c.jsx("span",{children:"Previous"})]});Ns.displayName="PaginationPrevious";const Ms=({className:e,disabled:t,...r})=>c.jsxs($r,{"aria-label":"Go to next page",className:D(t&&Qe.Disabled,Qe.Next,e),...r,children:[c.jsx("span",{children:"Next"}),c.jsx(ou,{})]});Ms.displayName="PaginationNext";const $s=({className:e,...t})=>c.jsx("span",{"aria-hidden":!0,className:D(Qe.PaginationEllipsis,e),...t,children:c.jsx(Ds,{})});$s.displayName="PaginationEllipsis";function sv(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 iu={exports:{}};(function(e,t){(function(r,n){typeof sv=="function"?e.exports=n():r.pluralize=n()})(Zu,function(){var r=[],n=[],o={},s={},i={};function a(f){return typeof f=="string"?new RegExp("^"+f+"$","i"):f}function l(f,v){return f===v?v:f===f.toLowerCase()?v.toLowerCase():f===f.toUpperCase()?v.toUpperCase():f[0]===f[0].toUpperCase()?v.charAt(0).toUpperCase()+v.substr(1).toLowerCase():v.toLowerCase()}function u(f,v){return f.replace(/\$(\d{1,2})/g,function(_,C){return v[C]||""})}function d(f,v){return f.replace(v[0],function(_,C){var T=u(v[1],arguments);return l(_===""?f[C-1]:_,T)})}function p(f,v,_){if(!f.length||o.hasOwnProperty(f))return v;for(var C=_.length;C--;){var T=_[C];if(T[0].test(v))return d(v,T)}return v}function h(f,v,_){return function(C){var T=C.toLowerCase();return v.hasOwnProperty(T)?l(C,T):f.hasOwnProperty(T)?l(C,f[T]):p(T,C,_)}}function g(f,v,_,C){return function(T){var S=T.toLowerCase();return v.hasOwnProperty(S)?!0:f.hasOwnProperty(S)?!1:p(S,S,_)===S}}function w(f,v,_){var C=v===1?w.singular(f):w.plural(f);return(_?v+" ":"")+C}return w.plural=h(i,s,r),w.isPlural=g(i,s,r),w.singular=h(s,i,n),w.isSingular=g(s,i,n),w.addPluralRule=function(f,v){r.push([a(f),v])},w.addSingularRule=function(f,v){n.push([a(f),v])},w.addUncountableRule=function(f){if(typeof f=="string"){o[f.toLowerCase()]=!0;return}w.addPluralRule(f,"$0"),w.addSingularRule(f,"$0")},w.addIrregularRule=function(f,v){v=v.toLowerCase(),f=f.toLowerCase(),i[f]=v,s[v]=f},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(f){return w.addIrregularRule(f[0],f[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(f){return w.addPluralRule(f[0],f[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(f){return w.addSingularRule(f[0],f[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(w.addUncountableRule),w})})(iu);var iv=iu.exports;const av=Xu(iv),Fs=({count:e,singularText:t,children:r=(n,o)=>`${n} ${o}`})=>c.jsx(c.Fragment,{children:r(e,av(t,e))});Fs.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"},au={EmptyStateContainer:"EmptyStateContainer__Q9FEb",Message:"Message__IHK6M"},lu=({size:e=64})=>c.jsxs("svg",{width:e,height:e,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsxs("g",{clipPath:"url(#clip-path)",children:[c.jsx("mask",{id:"mask0_1070_8032",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"64",height:"64",children:c.jsx("path",{d:"M64 0H0V64H64V0Z",fill:"white"})}),c.jsx("g",{mask:"url(#mask0_1070_8032)",children:c.jsx("path",{d:"M40 10.6673H13.3333V53.334H50.6667V21.334H40V10.6673ZM8 7.97932C8 6.51798 9.192 5.33398 10.664 5.33398H42.6667L56 18.6673V55.982C56.0024 56.3321 55.936 56.6793 55.8043 57.0039C55.6725 57.3284 55.4781 57.6239 55.2323 57.8732C54.9864 58.1225 54.6936 58.3209 54.3712 58.4572C54.0485 58.5935 53.7021 58.6649 53.352 58.6673H10.648C9.94768 58.6625 9.27739 58.3823 8.78192 57.8873C8.28645 57.3924 8.00557 56.7223 8 56.022V7.97932ZM36.0773 38.5233C33.8408 39.83 31.2056 40.2788 28.6627 39.786C26.1197 39.2929 23.8428 37.8921 22.2566 35.8444C20.6704 33.7966 19.883 31.2417 20.0414 28.6564C20.1998 26.071 21.293 23.6315 23.1173 21.7927C24.9532 19.9571 27.3955 18.8541 29.9864 18.6904C32.5773 18.5267 35.1389 19.3134 37.1912 20.9032C39.2435 22.493 40.6456 24.7767 41.1347 27.3263C41.6237 29.8759 41.1664 32.5164 39.848 34.7527L45.7413 40.646L41.9707 44.4193L36.0773 38.5233ZM34.4293 33.1047C34.9387 32.6126 35.3451 32.0241 35.6245 31.3735C35.904 30.7228 36.0512 30.0231 36.0573 29.3148C36.0635 28.6065 35.9285 27.9044 35.6603 27.2489C35.3923 26.5935 34.9963 25.998 34.4955 25.4972C33.9947 24.9964 33.3992 24.6004 32.7437 24.3323C32.0883 24.0641 31.3861 23.9292 30.6779 23.9353C29.9696 23.9415 29.2699 24.0886 28.6192 24.3681C27.9685 24.6476 27.38 25.0539 26.888 25.5633C25.9165 26.5692 25.3789 27.9164 25.3911 29.3148C25.4032 30.7132 25.9641 32.0508 26.9531 33.0396C27.9419 34.0287 29.2795 34.5895 30.6779 34.6015C32.0763 34.6137 33.4235 34.0761 34.4293 33.1047Z",fill:"currentColor"})})]}),c.jsx("defs",{children:c.jsx("clipPath",{id:"clip-path",children:c.jsx("rect",{width:"64",height:"64",fill:"white"})})})]});lu.displayName="EmptyStateIcon";const Bs=({message:e="No results found"})=>c.jsxs("div",{className:D(au.EmptyStateContainer),children:[c.jsx(lu,{}),c.jsx("p",{className:au.Message,children:e})]});Bs.displayName="EmptyState";const lv=(e,t,r=1)=>{if(e<=1)return["1"];const n=[],o=s=>{(n.length===0||n[n.length-1]!==s)&&n.push(s)};o(1),t-r>2&&o("...");for(let s=Math.max(2,t-r);s<=Math.min(e-1,t+r);s++)o(s);return t+r<e-1&&o("..."),o(e),n.map(String)},cu=({page:e,totalPages:t,onPageChange:r})=>{const n=e===1,o=e===t;return c.jsx(Ls,{className:me.Pagination,children:c.jsxs(Is,{children:[c.jsx(Mr,{children:c.jsx(Ns,{className:D({[me.PointerNone]:n}),onClick:()=>!n&&r(e-1)})}),lv(t,e).map((s,i)=>c.jsxs(Mr,{children:[s==="..."&&c.jsx($s,{}),s!=="..."&&c.jsx($r,{isActive:+s===e,onClick:()=>+s!==e&&r(+s),children:s})]},i)),c.jsx(Mr,{children:c.jsx(Ms,{className:D({[me.PointerNone]:o}),onClick:()=>!o&&r(e+1)})})]})})};cu.displayName="TablePagination";const uu=({className:e,...t})=>c.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:c.jsx("path",{d:"M6 2.5V9.5M6 9.5L9.5 6M6 9.5L2.5 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});uu.displayName="ArrowDown";const du=({columns:e,data:t,isLoading:r,totalCount:n=0,headerLabel:o,sort:s,loadingConfig:i,pagination:a,onRowClick:l})=>{const{count:u=5,height:d=40}=i||{},p=v=>v.sortName??v.name,h=v=>D({[me.Cell]:!0,[me.Center]:v.align==="center",[me.Right]:v.align==="right",[me.Sortable]:v.isSortable}),g=v=>{if(!s)return"";const _=p(v);return D({[me.SortIcon]:!0,[me.Active]:v.isSortable&&s.field===_,[me.Rotate]:s.field===_&&s.direction==="asc"})},w=v=>()=>l==null?void 0:l(v),f=v=>()=>{if(!s||!v.isSortable)return;const{field:_,direction:C,onSort:T}=s,S=p(v);_===S?T(S,C==="asc"?"desc":"asc"):T(S,"asc")};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:me.TableContainer,children:[o&&c.jsx("div",{className:me.TableHeader,children:c.jsx(Fs,{count:n,singularText:o,children:(v,_)=>`${v} ${_}`})}),c.jsxs("table",{className:me.Table,children:[c.jsx("thead",{children:c.jsx("tr",{children:e.map(v=>c.jsx("th",{children:c.jsxs("div",{className:h(v),onClick:f(v),children:[c.jsx("span",{children:v.displayName}),v.isSortable&&c.jsx(uu,{className:g(v)})]})},v.name))})}),c.jsx("tbody",{children:c.jsxs(st,{children:[c.jsx(st.When,{condition:r,children:[...Array(u).keys()].map(v=>c.jsx("tr",{children:c.jsx("td",{colSpan:e.length,style:{padding:4},children:c.jsx(Tn,{height:d})})},v))}),c.jsx(st.When,{condition:!t.length,children:c.jsx("tr",{children:c.jsx("td",{colSpan:e.length,children:c.jsx(Bs,{})})})}),c.jsx(st.Else,{children:t.map((v,_)=>c.jsx("tr",{className:l&&me.selectable,onClick:w(v),children:e.map(C=>c.jsx("td",{style:C.width?{width:C.width}:{},children:c.jsx("div",{className:h(C),children:C.cellRenderer?C.cellRenderer(v):C.valueGetter?C.valueGetter(v):v[C.name]})},`${C.name}-${_}`))},_))})]})})]})]}),a&&c.jsx(cu,{...a})]})};du.displayName="Table";const Xn={alert:"alert__LblpE",default:"default__mgO6A",destructive:"destructive__bLNSM",alertTitle:"alertTitle__gblKf",alertDescription:"alertDescription__BuVHV"},Jn=({className:e,variant:t="default",children:r,...n})=>c.jsx("div",{"data-slot":"alert",role:"alert",className:D(Xn.alert,Xn[t],e),...n,children:r}),cv=m.forwardRef(({children:e,className:t,...r},n)=>c.jsx("div",{ref:n,"data-slot":"alert-title",className:D(Xn.alertTitle,t),...r,children:e})),uv=m.forwardRef(({children:e,className:t,...r},n)=>c.jsx("div",{ref:n,"data-slot":"alert-description",className:D(Xn.alertDescription,t),...r,children:e}));Jn.displayName="Alert",Jn.Title=cv,Jn.Description=uv;const fu=({isNavbarExpanded:e})=>{const{theme:t,setTheme:r}=Fa(),n=()=>r(t==="dark"?"light":"dark"),o=c.jsxs("div",{className:D(Go.container,e&&Go.expanded),onClick:n,children:[t==="light"?c.jsx(Na,{}):c.jsx(Ma,{}),e&&c.jsx("p",{className:Go.label,children:t==="light"?"Dark Mode":"Light Mode"})]});return e?o:c.jsx(Nr,{displayName:t==="light"?"Switch to dark mode":"Switch to light mode",sideOffset:-16,children:o})};fu.displayName="ToggleTheme";const dv=(e,t)=>{const r=n=>c.jsx(Vo,{operations:t,children:c.jsx(e,{...n})});return r.displayName="Authorized",r};function pu(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 eo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pu(Object(r),!0).forEach(function(n){fv(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hu(e){return(hu=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 fv(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Us(e){return(Us=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 mu(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 s="single-spa-application:".concat(o);return function(){var i=document.getElementById(s);return i||((i=document.createElement("div")).id=s,document.body.appendChild(i)),i}}(t))!="function")throw Error("single-spa's dom-element-getter-helpers was given an invalid domElementGetter for application or parcel '".concat(t.name,"'. Expected a function, received ").concat(Us(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(Us(n)));return n}}var Fr=null;try{Fr=require("react").createContext()}catch{}var pv={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 hv(e){if(hu(e)!=="object")throw new Error("single-spa-react requires a configuration object");var t,r=eo(eo({},pv),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");!Fr&&r.React.createContext&&(Fr=r.React.createContext()),r.SingleSpaRoot=function(o){function s(i){s.displayName="SingleSpaRoot(".concat(i.name,")")}return s.prototype=Object.create(o.React.Component.prototype),s.prototype.componentDidMount=function(){setTimeout(this.props.mountFinished)},s.prototype.componentWillUnmount=function(){setTimeout(this.props.unmountFinished)},s.prototype.render=function(){return setTimeout(this.props.updateFinished),this.props.children},s}(r);var n={bootstrap:mv.bind(null,r),mount:gv.bind(null,r),unmount:vv.bind(null,r)};return r.parcelCanUpdate&&(n.update=yv.bind(null,r)),n}function mv(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then(function(r){e.rootComponent=r})}function gv(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=gu(e,t,function(){r(this)}),s=mu(e,t)(),i=function(a){var l=a.reactDom,u=a.renderType,d=a.elementToRender,p=a.domElement,h=l[u];if(typeof h!="function")throw new Error('renderType "'.concat(u,'" did not return a function.'));switch(u){case"createRoot":case"unstable_createRoot":case"createBlockingRoot":case"unstable_createBlockingRoot":var g=h(p);return g.render(d),g;case"hydrateRoot":return h(p,d);case"hydrate":default:return h(d,p),null}}({elementToRender:o,domElement:s,reactDom:Ws(e),renderType:bv(e)});e.domElements[t.name]=s,e.renderResults[t.name]=i})}function vv(e,t){return new Promise(function(r){e.unmountResolves[t.name]=r;var n=e.renderResults[t.name];n&&n.unmount?n.unmount():Ws(e).unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]})}function yv(e,t){return new Promise(function(r){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(r);var n=gu(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(n);else{var s=mu(e,t)();Ws(e).render(n,s)}})}function Ws(e){return e.ReactDOMClient||e.ReactDOM}function bv(e){return typeof e.renderType=="function"?e.renderType():e.renderType}function gu(e,t,r){var n=e.React.createElement(e.rootComponent,t),o=Fr?e.React.createElement(Fr.Provider,{value:t},n):n;return(e.errorBoundary||t.errorBoundary||e.errorBoundaryClass||t.errorBoundaryClass)&&(e.errorBoundaryClass=e.errorBoundaryClass||t.errorBoundaryClass||function(s,i){function a(l){s.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},a.displayName="SingleSpaReactErrorBoundary(".concat(l.name,")")}return a.prototype=Object.create(s.React.Component.prototype),a.prototype.render=function(){return this.state.caughtError?(s.errorBoundary||i.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},a.prototype.componentDidCatch=function(l,u){this.setState({caughtError:l,caughtErrorInfo:u})},a}(e,t),o=e.React.createElement(e.errorBoundaryClass,t,o)),o=e.React.createElement(e.SingleSpaRoot,eo(eo({},t),{},{mountFinished:r,updateFinished:function(){e.updateResolves[t.name]&&(e.updateResolves[t.name].forEach(function(s){return s()}),delete e.updateResolves[t.name])},unmountFinished:function(){e.unmountResolves[t.name]&&(e.unmountResolves[t.name](),delete e.unmountResolves[t.name])}}),o)}const wv=e=>{const t=new rp;return function(n){if(!n)throw new Error("Microfrontend did not receive any properties !!");const o=mo(n.module.name);return c.jsx(gi,{module:o,children:c.jsxs(ap,{client:t,children:[c.jsx(e,{...n}),c.jsx(Bf,{position:"top-right",reverseOrder:!0})]})})}},_v=({rootComponent:e,...t})=>hv({errorBoundary(r){return console.error(r),c.jsx(js,{})},...t,rootComponent:wv(e)}),Cv=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?vd(t,e):t})},zs=()=>{const[e]=Cr();return e.featureFlags},xv=e=>!!zs()[e],vu=({flag:e,children:t,fallback:r=null,invert:n=!1})=>{const s=zs()[e]===!0;return(n?!s:s)?c.jsx(c.Fragment,{children:t}):c.jsx(c.Fragment,{children:r})};vu.displayName="FeatureFlagGuard";const yu=x.createContext(null);function bu(e){const t=["#FF6B6B","#4ECDC4","#45B7D1","#FFA07A","#98D8C8","#F7DC6F","#BB8FCE","#85C1E2","#F8B739","#52B788","#E74C3C","#3498DB","#9B59B6","#1ABC9C","#F39C12","#E67E22","#95A5A6","#34495E","#16A085","#27AE60"];let r=0;for(let o=0;o<e.length;o++)r=e.charCodeAt(o)+((r<<5)-r),r=r&r;const n=Math.abs(r)%t.length;return t[n]}const Hs={JOIN_ROOM:"join_room",LEAVE_ROOM:"leave_room",USER_LIST:"user_list"},Ev=({children:e})=>{const t=Ri("@bluealba/pae-rooms-service"),[r,n]=x.useState([]),[o,s]=x.useState("loading"),[i,a]=x.useState(null);x.useEffect(()=>{if(t){const f=new WebSocket(t);return f.onopen=()=>{s("connected")},f.addEventListener("message",async v=>{try{const _=await l(v);_.event===Hs.USER_LIST&&h(_.data)}catch(_){console.error("Error parsing WebSocket message:",_)}}),f.onclose=()=>{s("closed")},f.onerror=v=>{console.error("Rooms WebSocket error",v),s("error")},a(f),()=>{f.close()}}},[t]);const l=async f=>{if(f.data instanceof Blob){const v=await f.data.text();return JSON.parse(v)}else return JSON.parse(f.data)},u=(f,v)=>{i&&i.readyState===WebSocket.OPEN&&setTimeout(()=>{i.send(JSON.stringify({event:f,data:v}))},100)},d=f=>{u(Hs.JOIN_ROOM,{roomId:f})},p=f=>{u(Hs.LEAVE_ROOM,{roomId:f})},h=f=>{n(f.map(v=>({...v,username:v.username.toLowerCase(),color:bu(v.username)})))},g=x.useCallback(f=>r.filter(v=>v.rooms.includes(f)),[r]),w={status:o,getRoomUsers:g,joinRoom:d,leaveRoom:p};return c.jsx(yu.Provider,{value:w,children:e})},wu={autoJoin:!0,autoLeave:!0};function Sv(e,t=wu){const{autoJoin:r,autoLeave:n}=t,o=x.useContext(yu),{authUser:s}=Tr();if(!o)throw new Error("useRoom must be used within RoomsProvider");const i=()=>{if(r){console.warn("[useRoom] Ignoring manual joinRoom call because autoJoin is enabled.",{roomId:e});return}return o.joinRoom(e)},a=()=>{if(n){console.warn("[useRoom] Ignoring manual leaveRoom call because autoLeave is enabled.",{roomId:e});return}return o.leaveRoom(e)};x.useEffect(()=>{if(!(!e||o.status!=="connected"))return r&&o.joinRoom(e),()=>{n&&o.leaveRoom(e)}},[o.status,e]);const l=o.getRoomUsers(e),u=l.findIndex(d=>d.username===(s==null?void 0:s.username))!==-1;return{users:l,roomId:e,hasJoined:u,joinRoom:i,leaveRoom:a}}const Br={container:"container__LbyGQ",avatarWrapper:"avatarWrapper__HCQIZ",avatar:"avatar__E453a",overflowWrapper:"overflowWrapper__ETnPO",overflowBadge:"overflowBadge__igBKT"},Tv={sm:24,md:32,lg:40},Av=({users:e,maxVisible:t=5,size:r="md",overlap:n=!0,className:o="",onUserClick:s})=>{const i=Tv[r],a=x.useMemo(()=>e.slice(0,t),[e,t]),l=x.useMemo(()=>e.slice(t),[e,t]),u=Math.max(0,e.length-t),d=p=>p.split(" ").map(h=>h[0]).join("").toUpperCase().slice(0,2);return c.jsxs("div",{className:D(Br.container,o),children:[a.map((p,h)=>c.jsx(Nr,{tooltipContent:p.displayName,side:"bottom",children:c.jsx("div",{className:Br.avatarWrapper,style:{marginLeft:h>0&&n?`-${i*.25}px`:void 0},onClick:()=>s==null?void 0:s(p),children:c.jsx("div",{className:Br.avatar,style:{width:i,height:i,backgroundColor:p.color,fontSize:r==="sm"?"10px":r==="md"?"12px":"14px",cursor:s?"pointer":"default"},children:d(p.displayName)})})},p.username)),u>0&&c.jsx(Nr,{side:"bottom",tooltipContent:c.jsx("div",{children:l.map(p=>c.jsx("p",{children:p.displayName},p.username))}),children:c.jsx("div",{className:Br.overflowWrapper,style:{marginLeft:n?`-${i*.25}px`:void 0},children:c.jsxs("div",{className:Br.overflowBadge,style:{width:i,height:i,fontSize:r==="sm"?"10px":r==="md"?"12px":"14px"},children:["+",u]})})})]})};E.Alert=Jn,E.ApplicationIcon=Ia,E.Authorized=Vo,E.Badge=Qo,E.Badges=Yo,E.Button=wn,E.ClipboardCheckIcon=za,E.ClipboardIcon=Wa,E.ConfirmDialog=Kc,E.CopyToClipboardButton=Yp,E.DEFAULT_OPTIONS=wu,E.Dialog=ae,E.DropdownList=xn,E.EmptyState=Bs,E.ErrorState=js,E.ExtendExtensionPoint=Ip,E.ExtensionPoint=Pa,E.EyeIcon=nc,E.FeatureFlagGuard=vu,E.FieldGroup=Va,E.Input=Cn,E.InputError=qa,E.Label=Ya,E.List=Fe,E.ModulePlaceHolder=La,E.Pagination=Ls,E.PaginationContent=Is,E.PaginationEllipsis=$s,E.PaginationItem=Mr,E.PaginationLink=$r,E.PaginationNext=Ms,E.PaginationPrevious=Ns,E.PasswordInput=Fm,E.Pill=rv,E.PlatformEventListener=Wp,E.PlatformEvents=Vu,E.PluralizeCounter=Fs,E.RoomAvatars=Av,E.RoomsProvider=Ev,E.SearchAutocomplete=Ja,E.SearchInput=Xo,E.Select=Zo,E.Show=st,E.Skeleton=Tn,E.SkeletonList=nl,E.Spinner=ec,E.Switch=tc,E.Table=du,E.Tabs=Im,E.TabsContent=$m,E.TabsList=Nm,E.TabsTrigger=Mm,E.TextArea=Za,E.ThemeToggle=fu,E.Tooltip=Nr,E.authorized=dv,E.dropdownListStyles=At,E.extensionPoint=Mp,E.generateUserColor=bu,E.getApplications=po,E.getInitials=ad,E.getOperations=vi,E.hasAccess=bi,E.initializeMicroFrontend=_v,E.isPlatformCustomizationCompleted=Yd,E.isValidEmail=id,E.logout=nd,E.navigateTo=od,E.platformHaveAnyCustomization=Qd,E.setupTestEnvironment=Cv,E.useApplicationIcon=Ti,E.useApplicationJSModule=Kr,E.useApplicationMenu=pd,E.useApplicationUIModule=Si,E.useApplications=xi,E.useAuth=Tr,E.useCatalog=xr,E.useCurrentApplication=vo,E.useCurrentApplicationName=Oi,E.useCurrentJSModule=_d,E.useDynamicFonts=Ni,E.useDynamicStyleSheet=Ii,E.useExtendExtensionPoint=Di,E.useExtensionPoint=ji,E.useFeatureFlag=xv,E.useFeatureFlags=zs,E.useGetPlatformTheme=qd,E.useHasNoSession=ed,E.useLocation=fi,E.useModule=mo,E.useModuleCommonPaths=rd,E.useModuleConfig=ho,E.useModuleConfigByName=wi,E.useModuleMenu=Ai,E.useModuleMetadata=Sr,E.useMutableCatalog=Ku,E.useNotifications=Ro,E.useOperations=yi,E.usePAECustomizationsLoadingState=Gd,E.usePAEState=Cr,E.usePlatformCustomization=Vd,E.usePlatformEventListener=Li,E.useResource=bp,E.useResourceActions=xa,E.useRoom=Sv,E.useServiceBaseURL=yo,E.useServiceInvoker=bo,E.useServiceWebSocketURL=Ri,E.useTenants=jp,E.useTheme=Fa,E.useTrackEvent=Ad,E.useTrackEvents=ki,E.useUIApplications=Ei,E.useUserState=Lp,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});
|
|
253
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return d.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Ny="DialogDescriptionWarning",My=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Fu(Ny).contentName}}.`;return d.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},$y=Tu,Fy=Ru,By=Ou,Uy=Iu,Wy=ku,Hy=Du,Vy=Mu;const Bu={Overlay:"Overlay__M5Z83",Content:"Content__wAkP4"},tn={Header:"Header__VHxNf",Content:"Content__I04qM",Close:"Close__xSN-7",Title:"Title__Dznh6",Footer:"Footer__-8gzQ",Actions:"Actions__kKF2Q"},Uu=S.forwardRef(({children:e,className:t,...n},r)=>{const o=k(tn.Header,t);return c.jsx("div",{ref:r,className:o,...n,children:e})});Uu.displayName="Header";const Wu=S.forwardRef(({children:e,className:t,...n},r)=>{const o=k(tn.Content,t);return c.jsx("div",{ref:r,className:o,...n,children:e})});Wu.displayName="Content";const Hu=S.forwardRef(({children:e,className:t,...n},r)=>{const o=k(tn.Footer,t);return c.jsx("div",{ref:r,className:o,...n,children:e})});Hu.displayName="Footer";const Vu=S.forwardRef(({children:e,className:t,...n},r)=>{const o=k(tn.Title,t);return c.jsx(Wy,{ref:r,className:o,...n,children:e})});Vu.displayName="Title";const zu=S.forwardRef(({className:e,...t},n)=>{const r=k(tn.Close,e);return c.jsx(Vy,{ref:n,asChild:!0,className:r,...t,children:c.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M11 1L1 11M1 1L11 11",stroke:"#A9A9A9",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})});zu.displayName="Close";const Gu=S.forwardRef(({children:e,className:t,...n},r)=>{const o=k(tn.Actions,t);return c.jsx("div",{ref:r,className:o,...n,children:e})});Gu.displayName="Actions";const qu=S.forwardRef(({children:e,className:t,...n},r)=>{const o=k(tn.Description,t);return c.jsx("div",{ref:r,className:o,...n,children:e})});qu.displayName="Description";const ye=({children:e,onClose:t,open:n=!1,className:r})=>{const o=()=>{t==null||t()};return c.jsx($y,{onOpenChange:o,open:n,children:c.jsxs(Fy,{children:[c.jsx(By,{className:Bu.Overlay}),c.jsxs(Uy,{children:[c.jsx(Hy,{}),c.jsx("div",{className:k(Bu.Content,r),children:e})]})]})})};ye.displayName="Dialog",ye.Header=Uu,ye.Content=Wu,ye.Footer=Hu,ye.Actions=Gu,ye.Title=Vu,ye.Description=qu,ye.Close=zu;const Ku={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"},zy=({children:e,variant:t="solid",className:n})=>{const r=k(Ku.pill,Ku[`pill--${t}`],n);return c.jsx("div",{className:r,children:e})},Qu={DialogContent:"DialogContent__-WjG9",Message:"Message__AUgVP"},Yu=({loading:e,title:t,children:n,className:r,onClose:o,onConfirm:s,...i})=>c.jsxs(ye,{...i,className:k(Qu.DialogContent,r),children:[c.jsxs(ye.Header,{children:[c.jsx(ye.Title,{children:t}),c.jsx(ye.Close,{onClick:o})]}),c.jsx(ye.Content,{children:typeof n=="string"?c.jsx("p",{className:Qu.Message,children:n}):n}),c.jsx(ye.Footer,{children:c.jsxs(ye.Actions,{children:[c.jsx(Fr,{onClick:o,disabled:e,variant:"outlined",children:"Cancel"}),c.jsx(Fr,{onClick:s,disabled:e,loading:e,variant:"contained",children:"Confirm"})]})})]});Yu.displayName="ConfirmDialog";const xo={container:"container__AjtYJ",title:"title__A2vCu",description:"description__bP6Ig",mailToText:"mailToText__SdlsE"},Zu=()=>c.jsxs("svg",{width:"200",height:"200",viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M184.415 152.221C183.936 151.406 183.401 150.621 182.892 149.824C181.61 147.817 180.327 145.809 179.045 143.801C177.102 140.759 175.159 137.717 173.215 134.676C170.766 130.841 168.316 127.006 165.866 123.171C163.068 118.79 160.27 114.41 157.472 110.03C154.484 105.352 151.496 100.674 148.508 95.9965C145.474 91.2464 142.439 86.4963 139.405 81.7463C136.513 77.2189 133.621 72.6915 130.729 68.1641C128.123 64.084 125.517 60.0039 122.91 55.9238C120.748 52.5389 118.586 49.1541 116.424 45.7692C114.864 43.3273 113.304 40.8854 111.744 38.4436C110.943 37.1899 110.142 35.9362 109.342 34.6825C108.765 33.7802 108.096 32.9744 107.292 32.2572C104.604 29.8584 100.572 29.2302 97.2301 30.5252C94.5951 31.5463 92.6177 33.3853 91.0923 35.7373C90.8768 36.0696 90.6658 36.405 90.4526 36.7387C89.3951 38.3941 88.3378 40.0494 87.2803 41.7049C85.5124 44.4725 83.7444 47.2402 81.9765 50.0079C79.644 53.6594 77.3114 57.3111 74.9788 60.9626C72.2632 65.2138 69.5477 69.465 66.8321 73.7162C63.8817 78.3349 60.9313 82.9536 57.9811 87.5722C54.9542 92.3106 51.9274 97.0491 48.9006 101.787C45.9557 106.398 43.0107 111.008 40.0658 115.618C37.3487 119.872 34.6316 124.125 31.9145 128.379C29.6106 131.986 27.3067 135.592 25.0028 139.199C23.2565 141.933 21.5101 144.667 19.7639 147.4C18.7335 149.013 17.7031 150.626 16.6728 152.239C14.8665 155.067 13.7231 158.171 14.23 161.595C14.9672 166.576 19.2366 170.131 24.2215 170.137C25.559 170.139 26.8963 170.137 28.2338 170.137C30.9198 170.137 33.6058 170.137 36.2918 170.137C40.0725 170.137 43.8533 170.137 47.6341 170.137C52.2557 170.137 56.8772 170.137 61.4989 170.137C66.7339 170.137 71.969 170.137 77.204 170.137C82.7467 170.137 88.2894 170.137 93.8322 170.137C99.4529 170.137 105.074 170.137 110.694 170.137C116.139 170.137 121.584 170.137 127.029 170.137C132.044 170.137 137.06 170.137 142.075 170.137C146.425 170.137 150.776 170.137 155.127 170.137C158.516 170.137 161.904 170.137 165.293 170.137C167.49 170.137 169.686 170.137 171.883 170.137C172.633 170.137 173.384 170.137 174.135 170.137C178.404 170.087 182.136 167.627 184.212 163.932C186.248 160.307 186.562 155.866 184.415 152.221ZM94.0937 37.3471C94.0897 37.3539 94.0862 37.3597 94.0824 37.3661C94.0826 37.3652 94.0831 37.3642 94.0833 37.3632C94.0844 37.3581 94.0909 37.3518 94.0937 37.3471ZM178.584 164.489C178.476 164.538 178.524 164.516 178.584 164.489V164.489ZM180.937 162.79C180.979 162.72 181.118 162.485 181.127 162.498C181.145 162.528 181.058 162.647 180.937 162.79ZM181.821 160.333C181.806 160.446 181.782 160.646 181.773 160.697C181.736 160.919 181.686 161.139 181.637 161.359C181.637 161.359 181.637 161.359 181.637 161.359C181.629 161.377 181.621 161.399 181.61 161.426C181.54 161.604 181.472 161.785 181.406 161.965C181.402 161.977 181.398 161.988 181.394 161.999C181.304 162.16 181.219 162.323 181.123 162.481C181.074 162.562 181.016 162.641 180.97 162.724C180.949 162.762 180.936 162.785 180.93 162.798C180.727 163.035 180.436 163.332 180.388 163.385C180.696 163.049 180.535 163.229 180.318 163.42C180.172 163.548 180.018 163.666 179.869 163.79C179.848 163.807 179.831 163.822 179.816 163.835C179.797 163.845 179.775 163.857 179.747 163.873C179.576 163.97 179.411 164.078 179.238 164.171C179.043 164.277 178.844 164.373 178.642 164.463C178.556 164.494 178.471 164.526 178.384 164.553C177.532 164.819 176.835 164.945 176.084 164.954C175.296 164.954 174.508 164.954 173.719 164.954C171.519 164.954 169.318 164.954 167.118 164.954C163.751 164.954 160.385 164.954 157.019 164.954C152.756 164.954 148.493 164.954 144.231 164.954C139.275 164.954 134.319 164.954 129.364 164.954C123.981 164.954 118.598 164.954 113.215 164.954C107.651 164.954 102.086 164.954 96.5224 164.954C91.024 164.954 85.5255 164.954 80.0271 164.954C74.8407 164.954 69.6543 164.954 64.4679 164.954C59.8401 164.954 55.2123 164.954 50.5846 164.954C46.7784 164.954 42.9721 164.954 39.166 164.954C36.3891 164.954 33.6122 164.954 30.8354 164.954C29.3555 164.954 27.8756 164.954 26.3957 164.954C25.9641 164.954 25.534 164.958 25.1029 164.922C23.4511 164.785 22.11 164.207 20.7626 163.127C20.3445 162.792 19.7301 162.074 19.3142 161.434C19.2096 161.273 19.1102 161.109 19.0161 160.942C18.9707 160.861 18.8013 160.534 18.8105 160.558C18.7451 160.414 18.5329 159.846 18.4422 159.537C18.3467 159.211 18.2692 158.879 18.2129 158.544C18.2174 158.545 18.1876 158.285 18.1815 158.192C18.1669 157.964 18.1617 157.736 18.1651 157.508C18.166 157.455 18.1793 157.245 18.185 157.131C18.2055 157.005 18.2441 156.74 18.2591 156.662C18.2913 156.493 18.3319 156.326 18.3726 156.16C18.2821 156.539 18.4099 156.072 18.4891 155.866C18.518 155.79 18.6652 155.487 18.6846 155.432C18.7383 155.339 18.7932 155.243 18.8125 155.21C18.8692 155.114 18.9282 155.019 18.9875 154.924C19.0003 154.904 19.0137 154.884 19.0265 154.863C19.2211 154.554 19.4201 154.247 19.617 153.939C20.6335 152.348 21.6501 150.756 22.6667 149.165C24.3869 146.472 26.107 143.779 27.8271 141.086C30.0848 137.552 32.3425 134.017 34.6001 130.483C37.2646 126.312 39.9291 122.141 42.5935 117.97C45.5011 113.418 48.4086 108.866 51.3161 104.315C54.3131 99.6229 57.31 94.9312 60.3069 90.2397C63.2394 85.6489 66.172 81.058 69.1045 76.4672C71.819 72.2178 74.5334 67.9683 77.2479 63.719C79.5904 60.0517 81.9331 56.3844 84.2756 52.7172C86.0852 49.8842 87.8948 47.0513 89.7044 44.2184C90.8459 42.4315 91.9873 40.6446 93.1287 38.8578C93.3976 38.4368 93.6701 38.0178 93.9356 37.5945C93.9507 37.5705 93.9737 37.5416 93.9972 37.511C93.8744 37.7231 94.1597 37.2638 94.301 37.0921C94.4017 36.9695 94.5483 36.8114 94.5423 36.8113C94.6372 36.721 94.7333 36.6319 94.8323 36.546C94.9866 36.4121 95.1478 36.2876 95.3084 36.1615C94.9392 36.4513 95.3917 36.1121 95.5441 36.0212C96.7591 35.2961 98.1095 34.9498 99.7068 35.0725C101.356 35.1993 102.702 35.7434 104.07 36.8307C104.685 37.3192 105.311 38.1542 105.817 38.9457C106.592 40.1592 107.367 41.3727 108.142 42.5862C109.667 44.9733 111.192 47.3605 112.717 49.7476C114.838 53.0679 116.959 56.3881 119.08 59.7083C121.629 63.6999 124.179 67.6913 126.729 71.6829C129.579 76.1455 132.43 80.6082 135.281 85.0709C138.267 89.7458 141.253 94.4206 144.239 99.0955C147.207 103.742 150.176 108.388 153.144 113.035C155.94 117.412 158.736 121.789 161.532 126.167C164.002 130.034 166.473 133.902 168.943 137.769C170.935 140.886 172.926 144.003 174.917 147.12C176.27 149.239 177.623 151.357 178.976 153.475C179.551 154.376 180.134 155.272 180.702 156.177C181.138 156.872 181.311 157.219 181.54 157.972C181.6 158.167 181.652 158.363 181.697 158.561C181.711 158.623 181.759 158.873 181.78 158.97C181.787 159.063 181.815 159.319 181.819 159.383C181.831 159.579 181.836 159.775 181.834 159.972C181.834 160.022 181.825 160.217 181.821 160.333Z",fill:"var(--pae-shell-color-secondary)"}),c.jsx("path",{d:"M98.5821 122.507C99.019 122.759 99.6307 122.629 100.038 122.389C101.205 121.703 101.925 120.275 102.041 118.92C103.115 106.361 106.514 75.1051 106.514 68.3062C106.514 59.902 92.8134 60.6835 92.0664 71.3279C91.6887 76.7103 97.5083 119.581 97.8266 121.187C97.9188 121.652 98.1423 122.253 98.5821 122.507Z",fill:"var(--pae-shell-color-secondary)"}),c.jsx("path",{d:"M101.841 133.945C101.826 133.94 101.812 133.934 101.797 133.929C98.2767 132.6 94.4012 134.976 93.9964 138.717C93.9765 138.901 93.9636 139.086 93.958 139.272C93.8552 142.712 96.4467 146.126 99.8464 146.664C103.245 147.201 106.896 144.494 107.099 141.059C107.285 137.909 104.789 135.072 101.841 133.945Z",fill:"var(--pae-shell-color-secondary)"}),c.jsx("path",{d:"M161.729 131.662C161.873 131.367 162.082 130.81 161.71 130.584C161.365 130.375 160.901 130.836 160.768 131.107C156.804 139.201 152.84 147.295 148.877 155.389C147.759 157.67 146.642 159.952 145.525 162.233C145.38 162.528 145.171 163.085 145.543 163.311C145.888 163.52 146.352 163.059 146.485 162.788C150.449 154.694 154.413 146.6 158.377 138.506C159.494 136.225 160.611 133.943 161.729 131.662Z",fill:"var(--pae-shell-color-secondary)"}),c.jsx("path",{d:"M144.786 152.64C144.441 152.43 143.977 152.891 143.844 153.163C142.363 156.187 140.882 159.21 139.402 162.234C139.257 162.528 139.048 163.085 139.42 163.311C139.765 163.521 140.229 163.06 140.362 162.788C141.843 159.764 143.323 156.741 144.804 153.717C144.948 153.423 145.158 152.866 144.786 152.64Z",fill:"var(--pae-shell-color-secondary)"}),c.jsx("path",{d:"M136.792 156.459C136.447 156.25 135.983 156.711 135.85 156.982C134.993 158.733 134.136 160.483 133.279 162.233C133.134 162.528 132.925 163.085 133.297 163.311C133.642 163.52 134.106 163.06 134.239 162.788C135.096 161.037 135.953 159.287 136.81 157.537C136.955 157.242 137.164 156.685 136.792 156.459Z",fill:"var(--pae-shell-color-secondary)"}),c.jsx("path",{d:"M129.1 159.663C128.755 159.454 128.291 159.915 128.158 160.186C127.824 160.869 127.49 161.551 127.155 162.234C127.011 162.528 126.802 163.086 127.174 163.311C127.519 163.521 127.983 163.06 128.116 162.788C128.45 162.106 128.784 161.423 129.118 160.741C129.263 160.447 129.472 159.889 129.1 159.663Z",fill:"var(--pae-shell-color-secondary)"}),c.jsx("path",{d:"M165.835 137.946C165.979 137.652 166.188 137.094 165.816 136.868C165.471 136.659 165.007 137.12 164.874 137.392C161.72 143.832 158.566 150.273 155.412 156.713C154.511 158.553 153.609 160.393 152.708 162.233C152.564 162.528 152.355 163.085 152.726 163.311C153.071 163.52 153.535 163.06 153.669 162.788C156.823 156.347 159.977 149.907 163.131 143.466C164.032 141.626 164.933 139.786 165.835 137.946Z",fill:"var(--pae-shell-color-secondary)"}),c.jsx("path",{d:"M169.923 143.153C169.578 142.943 169.114 143.404 168.98 143.676C165.951 149.862 162.921 156.048 159.892 162.234C159.748 162.528 159.538 163.086 159.91 163.311C160.255 163.521 160.719 163.06 160.852 162.788C163.882 156.602 166.911 150.416 169.941 144.23C170.085 143.936 170.294 143.378 169.923 143.153Z",fill:"var(--pae-shell-color-secondary)"}),c.jsx("path",{d:"M174.332 148.821C173.987 148.611 173.523 149.072 173.39 149.344C171.286 153.64 169.182 157.937 167.077 162.234C166.933 162.528 166.724 163.086 167.095 163.311C167.44 163.521 167.905 163.06 168.038 162.788C170.142 158.492 172.246 154.195 174.351 149.898C174.495 149.604 174.704 149.046 174.332 148.821Z",fill:"var(--pae-shell-color-secondary)"}),c.jsx("path",{d:"M178.197 155.597C177.852 155.387 177.388 155.848 177.255 156.12C176.257 158.158 175.259 160.196 174.261 162.233C174.117 162.528 173.907 163.085 174.279 163.311C174.624 163.52 175.088 163.06 175.221 162.788C176.219 160.75 177.217 158.712 178.215 156.674C178.36 156.38 178.569 155.823 178.197 155.597Z",fill:"var(--pae-shell-color-secondary)"}),c.jsx("path",{d:"M97.1962 40.2135C97.3477 39.9803 97.4773 39.477 97.1807 39.2971C96.8678 39.1072 96.5194 39.5265 96.3794 39.7419C94.7034 42.3205 93.0556 44.9176 91.4179 47.5205C88.1743 52.6759 84.976 57.8633 81.9271 63.1367C80.4155 65.7509 78.9283 68.3855 77.5879 71.0925C77.4642 71.3423 77.2879 71.8174 77.6034 72.0088C77.8975 72.1874 78.2905 71.7947 78.4047 71.564C80.9657 66.3919 83.9726 61.4308 86.9671 56.5018C89.7369 51.9427 92.5713 47.4226 95.4474 42.9297C96.0279 42.0228 96.6094 41.1164 97.1962 40.2135Z",fill:"var(--pae-shell-color-secondary)"}),c.jsx("path",{d:"M75.3224 76.1247C75.0193 75.9408 74.6477 76.3459 74.521 76.5695C74.1645 77.1991 73.808 77.8286 73.4515 78.4581C73.3144 78.7003 73.1605 79.1884 73.467 79.3744C73.77 79.5583 74.1416 79.1532 74.2684 78.9296C74.6248 78.3001 74.9814 77.6705 75.3378 77.0411C75.475 76.7988 75.6288 76.3107 75.3224 76.1247Z",fill:"var(--pae-shell-color-secondary)"})]});Zu.displayName="WarningIcon";const Gy="support@bluealba.com",qy="@bluealba/pae-shell-ui",ri=()=>{const{supportEmail:e=Gy}=Wi(qy),t=`mailto:${e}?Subject=Support`;return c.jsxs("div",{className:xo.container,children:[c.jsx(Zu,{}),c.jsx("div",{className:xo.title,children:"Oops! Something went wrong"}),c.jsxs("div",{className:xo.description,children:["If the error persists, ",c.jsx("a",{className:xo.mailToText,href:t,children:"contact the administrator."})]})]})};ri.displayName="ErrorState";const Ue={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"},Xu=S.forwardRef(({children:e,className:t,selected:n,disabled:r=!1,...o},s)=>{const i=k(Ue.Item,{[Ue["Item--selected"]]:n,[Ue["Item--disabled"]]:r},t);return c.jsx("li",{ref:s,className:i,role:"listitem","aria-disabled":r,...o,children:e})});Xu.displayName="Item";const Ju=S.forwardRef(({children:e,className:t,...n},r)=>{const o=k(Ue.Title,t);return c.jsx("h3",{ref:r,className:o,...n,children:e})});Ju.displayName="Title";const ed=S.forwardRef(({children:e,className:t,...n},r)=>{const o=k(Ue.Description,t);return c.jsx("p",{ref:r,className:o,...n,children:e})});ed.displayName="Description";const oi=({className:e,...t})=>c.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:[c.jsx("path",{d:"M6 6.5C6.27614 6.5 6.5 6.27614 6.5 6C6.5 5.72386 6.27614 5.5 6 5.5C5.72386 5.5 5.5 5.72386 5.5 6C5.5 6.27614 5.72386 6.5 6 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M9.5 6.5C9.77614 6.5 10 6.27614 10 6C10 5.72386 9.77614 5.5 9.5 5.5C9.22386 5.5 9 5.72386 9 6C9 6.27614 9.22386 6.5 9.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M2.5 6.5C2.77614 6.5 3 6.27614 3 6C3 5.72386 2.77614 5.5 2.5 5.5C2.22386 5.5 2 5.72386 2 6C2 6.27614 2.22386 6.5 2.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"})]});oi.displayName="HorizontalDots";const td=S.forwardRef(({children:e,className:t,onClick:n,...r},o)=>{const s=S.useRef(null),[i,a]=S.useState(!1),l=k(Ue.Actions,t),u=()=>{const x=Jt["DropdownList--open"],f=Jt["DropdownList--closed"];document.querySelectorAll(`.${x}`).forEach(y=>{y!==s.current&&(y.classList.remove(x),y.classList.add(f))})},p=x=>{x.stopPropagation(),i?h():(a(!0),n==null||n(x))},h=()=>{a(!1)},m=x=>{x.key==="Escape"&&h()},g=x=>{s.current&&!s.current.contains(x.target)&&h()};return S.useEffect(()=>(i?(u(),document.addEventListener("keydown",m),document.addEventListener("click",g)):(document.removeEventListener("keydown",m),document.removeEventListener("click",g)),()=>{document.removeEventListener("keydown",m),document.removeEventListener("click",g)}),[i]),c.jsxs("div",{ref:o,className:l,onClick:p,role:"button",tabIndex:0,"data-testid":"actions",...r,children:[c.jsx(oi,{}),c.jsx(go,{align:"left",ref:s,open:i,"data-testid":"actions-dropdown",role:"menu","aria-label":"Actions",children:e})]})});td.displayName="Actions";const nd=S.forwardRef(({children:e,className:t,...n},r)=>{const o=k(Ue.Action,t);return c.jsx("button",{ref:r,className:o,...n,children:e})});nd.displayName="Action";const rd=S.forwardRef(({children:e,className:t,...n},r)=>{const o=k(Ue.Icon,t);return c.jsx("div",{ref:r,className:o,...n,children:e})});rd.displayName="Icon";const Je=S.forwardRef(({children:e,className:t,size:n="medium",variant:r,...o},s)=>{const i=k(Ue.List,{[Ue[`List--${n}`]]:n,[Ue[`List--${r}`]]:r},t);return c.jsx("ul",{ref:s,className:i,role:"list",...o,children:e})});Je.displayName="List",Je.Item=Xu,Je.Badges=hs,Je.Badge=ps,Je.Title=Ju,Je.Description=ed,Je.Actions=td,Je.Action=nd,Je.Icon=rd;const ut={Navigation:"Navigation__uylxk",PaginationContent:"PaginationContent__UpLw0",PaginationEllipsis:"PaginationEllipsis__perWk",PaginationLink:"PaginationLink__GVUZj",Active:"Active__u1Ahy",Disabled:"Disabled__8WM0y",Prev:"Prev__wp4hc",Next:"Next__eVyL5"},od=({className:e,...t})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...t,children:[c.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.jsx("path",{d:"M9 6l6 6l-6 6"})]});od.displayName="ChevronRight";const sd=({className:e,...t})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...t,children:[c.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.jsx("path",{d:"M15 6l-6 6l6 6"})]});sd.displayName="ChevronLeft";const si=({className:e,...t})=>c.jsx("nav",{role:"navigation","aria-label":"pagination",className:k(ut.Navigation,e),...t});si.displayName="Pagination";const ii=d.forwardRef(({className:e,...t},n)=>c.jsx("ul",{ref:n,className:k(ut.PaginationContent,e),...t}));ii.displayName="PaginationContent";const or=d.forwardRef(({className:e,...t},n)=>c.jsx("li",{ref:n,className:e,...t}));or.displayName="PaginationItem";const sr=({className:e,isActive:t,...n})=>c.jsx("a",{"aria-current":t?"page":void 0,className:k(ut.PaginationLink,t&&ut.Active,e),...n});sr.displayName="PaginationLink";const ai=({className:e,disabled:t,...n})=>c.jsxs(sr,{"aria-label":"Go to previous page",className:k(t&&ut.Disabled,ut.Prev,e),...n,children:[c.jsx(sd,{}),c.jsx("span",{children:"Previous"})]});ai.displayName="PaginationPrevious";const li=({className:e,disabled:t,...n})=>c.jsxs(sr,{"aria-label":"Go to next page",className:k(t&&ut.Disabled,ut.Next,e),...n,children:[c.jsx("span",{children:"Next"}),c.jsx(od,{})]});li.displayName="PaginationNext";const ci=({className:e,...t})=>c.jsx("span",{"aria-hidden":!0,className:k(ut.PaginationEllipsis,e),...t,children:c.jsx(oi,{})});ci.displayName="PaginationEllipsis";function Ky(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 id={exports:{}};(function(e,t){(function(n,r){typeof Ky=="function"?e.exports=r():n.pluralize=r()})(Zd,function(){var n=[],r=[],o={},s={},i={};function a(f){return typeof f=="string"?new RegExp("^"+f+"$","i"):f}function l(f,v){return f===v?v:f===f.toLowerCase()?v.toLowerCase():f===f.toUpperCase()?v.toUpperCase():f[0]===f[0].toUpperCase()?v.charAt(0).toUpperCase()+v.substr(1).toLowerCase():v.toLowerCase()}function u(f,v){return f.replace(/\$(\d{1,2})/g,function(y,w){return v[w]||""})}function p(f,v){return f.replace(v[0],function(y,w){var C=u(v[1],arguments);return l(y===""?f[w-1]:y,C)})}function h(f,v,y){if(!f.length||o.hasOwnProperty(f))return v;for(var w=y.length;w--;){var C=y[w];if(C[0].test(v))return p(v,C)}return v}function m(f,v,y){return function(w){var C=w.toLowerCase();return v.hasOwnProperty(C)?l(w,C):f.hasOwnProperty(C)?l(w,f[C]):h(C,w,y)}}function g(f,v,y,w){return function(C){var E=C.toLowerCase();return v.hasOwnProperty(E)?!0:f.hasOwnProperty(E)?!1:h(E,E,y)===E}}function x(f,v,y){var w=v===1?x.singular(f):x.plural(f);return(y?v+" ":"")+w}return x.plural=m(i,s,n),x.isPlural=g(i,s,n),x.singular=m(s,i,r),x.isSingular=g(s,i,r),x.addPluralRule=function(f,v){n.push([a(f),v])},x.addSingularRule=function(f,v){r.push([a(f),v])},x.addUncountableRule=function(f){if(typeof f=="string"){o[f.toLowerCase()]=!0;return}x.addPluralRule(f,"$0"),x.addSingularRule(f,"$0")},x.addIrregularRule=function(f,v){v=v.toLowerCase(),f=f.toLowerCase(),i[f]=v,s[v]=f},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(f){return x.addIrregularRule(f[0],f[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(f){return x.addPluralRule(f[0],f[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(f){return x.addSingularRule(f[0],f[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(x.addUncountableRule),x})})(id);var Qy=id.exports;const Yy=Xd(Qy),ui=({count:e,singularText:t,children:n=(r,o)=>`${r} ${o}`})=>c.jsx(c.Fragment,{children:n(e,Yy(t,e))});ui.displayName="PluralizeCounter";const Ee={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"},ad={EmptyStateContainer:"EmptyStateContainer__Q9FEb",Message:"Message__IHK6M"},ld=({size:e=64})=>c.jsxs("svg",{width:e,height:e,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsxs("g",{clipPath:"url(#clip-path)",children:[c.jsx("mask",{id:"mask0_1070_8032",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"64",height:"64",children:c.jsx("path",{d:"M64 0H0V64H64V0Z",fill:"white"})}),c.jsx("g",{mask:"url(#mask0_1070_8032)",children:c.jsx("path",{d:"M40 10.6673H13.3333V53.334H50.6667V21.334H40V10.6673ZM8 7.97932C8 6.51798 9.192 5.33398 10.664 5.33398H42.6667L56 18.6673V55.982C56.0024 56.3321 55.936 56.6793 55.8043 57.0039C55.6725 57.3284 55.4781 57.6239 55.2323 57.8732C54.9864 58.1225 54.6936 58.3209 54.3712 58.4572C54.0485 58.5935 53.7021 58.6649 53.352 58.6673H10.648C9.94768 58.6625 9.27739 58.3823 8.78192 57.8873C8.28645 57.3924 8.00557 56.7223 8 56.022V7.97932ZM36.0773 38.5233C33.8408 39.83 31.2056 40.2788 28.6627 39.786C26.1197 39.2929 23.8428 37.8921 22.2566 35.8444C20.6704 33.7966 19.883 31.2417 20.0414 28.6564C20.1998 26.071 21.293 23.6315 23.1173 21.7927C24.9532 19.9571 27.3955 18.8541 29.9864 18.6904C32.5773 18.5267 35.1389 19.3134 37.1912 20.9032C39.2435 22.493 40.6456 24.7767 41.1347 27.3263C41.6237 29.8759 41.1664 32.5164 39.848 34.7527L45.7413 40.646L41.9707 44.4193L36.0773 38.5233ZM34.4293 33.1047C34.9387 32.6126 35.3451 32.0241 35.6245 31.3735C35.904 30.7228 36.0512 30.0231 36.0573 29.3148C36.0635 28.6065 35.9285 27.9044 35.6603 27.2489C35.3923 26.5935 34.9963 25.998 34.4955 25.4972C33.9947 24.9964 33.3992 24.6004 32.7437 24.3323C32.0883 24.0641 31.3861 23.9292 30.6779 23.9353C29.9696 23.9415 29.2699 24.0886 28.6192 24.3681C27.9685 24.6476 27.38 25.0539 26.888 25.5633C25.9165 26.5692 25.3789 27.9164 25.3911 29.3148C25.4032 30.7132 25.9641 32.0508 26.9531 33.0396C27.9419 34.0287 29.2795 34.5895 30.6779 34.6015C32.0763 34.6137 33.4235 34.0761 34.4293 33.1047Z",fill:"currentColor"})})]}),c.jsx("defs",{children:c.jsx("clipPath",{id:"clip-path",children:c.jsx("rect",{width:"64",height:"64",fill:"white"})})})]});ld.displayName="EmptyStateIcon";const di=({message:e="No results found"})=>c.jsxs("div",{className:k(ad.EmptyStateContainer),children:[c.jsx(ld,{}),c.jsx("p",{className:ad.Message,children:e})]});di.displayName="EmptyState";const Zy=(e,t,n=1)=>{if(e<=1)return["1"];const r=[],o=s=>{(r.length===0||r[r.length-1]!==s)&&r.push(s)};o(1),t-n>2&&o("...");for(let s=Math.max(2,t-n);s<=Math.min(e-1,t+n);s++)o(s);return t+n<e-1&&o("..."),o(e),r.map(String)},cd=({page:e,totalPages:t,onPageChange:n})=>{const r=e===1,o=e===t;return c.jsx(si,{className:Ee.Pagination,children:c.jsxs(ii,{children:[c.jsx(or,{children:c.jsx(ai,{className:k({[Ee.PointerNone]:r}),onClick:()=>!r&&n(e-1)})}),Zy(t,e).map((s,i)=>c.jsxs(or,{children:[s==="..."&&c.jsx(ci,{}),s!=="..."&&c.jsx(sr,{isActive:+s===e,onClick:()=>+s!==e&&n(+s),children:s})]},i)),c.jsx(or,{children:c.jsx(li,{className:k({[Ee.PointerNone]:o}),onClick:()=>!o&&n(e+1)})})]})})};cd.displayName="TablePagination";const ud=({className:e,...t})=>c.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:c.jsx("path",{d:"M6 2.5V9.5M6 9.5L9.5 6M6 9.5L2.5 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});ud.displayName="ArrowDown";const dd=({columns:e,data:t,isLoading:n,totalCount:r=0,headerLabel:o,sort:s,loadingConfig:i,pagination:a,onRowClick:l})=>{const{count:u=5,height:p=40}=i||{},h=y=>y.sortName??y.name,m=({width:y,maxWidth:w})=>!y&&!w?{}:{...y?{width:y,minWidth:y}:{},...w?{maxWidth:w}:{},overflow:"hidden"},g=y=>k({[Ee.Cell]:!0,[Ee.Center]:y.align==="center",[Ee.Right]:y.align==="right",[Ee.Sortable]:y.isSortable}),x=y=>{if(!s)return"";const w=h(y);return k({[Ee.SortIcon]:!0,[Ee.Active]:y.isSortable&&s.field===w,[Ee.Rotate]:s.field===w&&s.direction==="asc"})},f=y=>()=>l==null?void 0:l(y),v=y=>()=>{if(!s||!y.isSortable)return;const{field:w,direction:C,onSort:E}=s,P=h(y);w===P?E(P,C==="asc"?"desc":"asc"):E(P,"asc")};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:Ee.TableContainer,children:[o&&c.jsx("div",{className:Ee.TableHeader,children:c.jsx(ui,{count:r,singularText:o,children:(y,w)=>`${y} ${w}`})}),c.jsx("div",{className:Ee.Table,children:c.jsxs("table",{children:[c.jsx("thead",{children:c.jsx("tr",{children:e.map(y=>c.jsx("th",{children:c.jsxs("div",{className:g(y),onClick:v(y),children:[c.jsx("span",{children:y.displayName}),y.isSortable&&c.jsx(ud,{className:x(y)})]})},y.name))})}),c.jsx("tbody",{children:c.jsxs(Tt,{children:[c.jsx(Tt.When,{condition:n,children:[...Array(u).keys()].map(y=>c.jsx("tr",{children:c.jsx("td",{colSpan:e.length,style:{padding:4},children:c.jsx(yo,{height:p})})},y))}),c.jsx(Tt.When,{condition:!t.length,children:c.jsx("tr",{children:c.jsx("td",{colSpan:e.length,children:c.jsx(di,{})})})}),c.jsx(Tt.Else,{children:t.map((y,w)=>c.jsx("tr",{className:l&&Ee.selectable,onClick:f(y),children:e.map(C=>c.jsx("td",{style:m(C),children:c.jsx("div",{className:g(C),children:C.cellRenderer?C.cellRenderer(y):C.valueGetter?C.valueGetter(y):y[C.name]})},`${C.name}-${w}`))},w))})]})})]})})]}),a&&c.jsx(cd,{...a})]})};dd.displayName="Table";const Co={alert:"alert__LblpE",default:"default__mgO6A",destructive:"destructive__bLNSM",alertTitle:"alertTitle__gblKf",alertDescription:"alertDescription__BuVHV"},So=({className:e,variant:t="default",children:n,...r})=>c.jsx("div",{"data-slot":"alert",role:"alert",className:k(Co.alert,Co[t],e),...r,children:n}),Xy=d.forwardRef(({children:e,className:t,...n},r)=>c.jsx("div",{ref:r,"data-slot":"alert-title",className:k(Co.alertTitle,t),...n,children:e})),Jy=d.forwardRef(({children:e,className:t,...n},r)=>c.jsx("div",{ref:r,"data-slot":"alert-description",className:k(Co.alertDescription,t),...n,children:e}));So.displayName="Alert",So.Title=Xy,So.Description=Jy;const fd=({isNavbarExpanded:e})=>{const{theme:t,setTheme:n}=al(),r=()=>n(t==="dark"?"light":"dark"),o=c.jsxs("div",{className:k(ds.container,e&&ds.expanded),onClick:r,children:[t==="light"?c.jsx(ol,{}):c.jsx(sl,{}),e&&c.jsx("p",{className:ds.label,children:t==="light"?"Dark Mode":"Light Mode"})]});return e?o:c.jsx(En,{displayName:t==="light"?"Switch to dark mode":"Switch to light mode",sideOffset:-16,children:o})};fd.displayName="ToggleTheme";const e0=(e,t)=>{const n=r=>c.jsx(us,{operations:t,children:c.jsx(e,{...r})});return n.displayName="Authorized",n};function pd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Eo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pd(Object(n),!0).forEach(function(r){t0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pd(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hd(e){return(hd=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 t0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fi(e){return(fi=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 md(e,t){var n;if(typeof(n=t.domElement?function(){return t.domElement}:t.domElementGetter?t.domElementGetter:e.domElementGetter?e.domElementGetter:function(r){var o=r.appName||r.name;if(!o)throw Error("single-spa's dom-element-getter-helpers was not given an application name as a prop, so it can't make a unique dom element container for the react application");var s="single-spa-application:".concat(o);return function(){var i=document.getElementById(s);return i||((i=document.createElement("div")).id=s,document.body.appendChild(i)),i}}(t))!="function")throw Error("single-spa's dom-element-getter-helpers was given an invalid domElementGetter for application or parcel '".concat(t.name,"'. Expected a function, received ").concat(fi(n)));return function(){var r=n(t);if(!(r instanceof HTMLElement))throw Error("single-spa's dom-element-getter-helpers: domElementGetter returned an invalid dom element for application or parcel '".concat(t.name,"'. Expected HTMLElement, received ").concat(fi(r)));return r}}var ir=null;try{ir=require("react").createContext()}catch{}var n0={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 r0(e){if(hd(e)!=="object")throw new Error("single-spa-react requires a configuration object");var t,n=Eo(Eo({},n0),e);if(!n.React)throw new Error("single-spa-react must be passed opts.React");if(!n.ReactDOM&&!n.ReactDOMClient)throw new Error("single-spa-react must be passed opts.ReactDOM or opts.ReactDOMClient");if(n.renderType||((t=n.ReactDOMClient)!==null&&t!==void 0&&t.createRoot?n.renderType="createRoot":n.renderType="render"),!n.rootComponent&&!n.loadRootComponent)throw new Error("single-spa-react must be passed opts.rootComponent or opts.loadRootComponent");if(n.errorBoundary&&typeof n.errorBoundary!="function")throw Error("The errorBoundary opt for single-spa-react must either be omitted or be a function that returns React elements");!ir&&n.React.createContext&&(ir=n.React.createContext()),n.SingleSpaRoot=function(o){function s(i){s.displayName="SingleSpaRoot(".concat(i.name,")")}return s.prototype=Object.create(o.React.Component.prototype),s.prototype.componentDidMount=function(){setTimeout(this.props.mountFinished)},s.prototype.componentWillUnmount=function(){setTimeout(this.props.unmountFinished)},s.prototype.render=function(){return setTimeout(this.props.updateFinished),this.props.children},s}(n);var r={bootstrap:o0.bind(null,n),mount:s0.bind(null,n),unmount:i0.bind(null,n)};return n.parcelCanUpdate&&(r.update=a0.bind(null,n)),r}function o0(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then(function(n){e.rootComponent=n})}function s0(e,t){return new Promise(function(n,r){e.suppressComponentDidCatchWarning||!function(a){if(!(a&&typeof a.version=="string"&&a.version.indexOf(".")>=0))return!1;var l=a.version.slice(0,a.version.indexOf("."));try{return Number(l)>=16}catch{return!1}}(e.React)||e.errorBoundary||e.errorBoundaryClass||(e.rootComponent.prototype?e.rootComponent.prototype.componentDidCatch||console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire single-spa application.")):console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to singleSpaReact(opts).")));var o=gd(e,t,function(){n(this)}),s=md(e,t)(),i=function(a){var l=a.reactDom,u=a.renderType,p=a.elementToRender,h=a.domElement,m=l[u];if(typeof m!="function")throw new Error('renderType "'.concat(u,'" did not return a function.'));switch(u){case"createRoot":case"unstable_createRoot":case"createBlockingRoot":case"unstable_createBlockingRoot":var g=m(h);return g.render(p),g;case"hydrateRoot":return m(h,p);case"hydrate":default:return m(p,h),null}}({elementToRender:o,domElement:s,reactDom:pi(e),renderType:l0(e)});e.domElements[t.name]=s,e.renderResults[t.name]=i})}function i0(e,t){return new Promise(function(n){e.unmountResolves[t.name]=n;var r=e.renderResults[t.name];r&&r.unmount?r.unmount():pi(e).unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]})}function a0(e,t){return new Promise(function(n){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(n);var r=gd(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(r);else{var s=md(e,t)();pi(e).render(r,s)}})}function pi(e){return e.ReactDOMClient||e.ReactDOM}function l0(e){return typeof e.renderType=="function"?e.renderType():e.renderType}function gd(e,t,n){var r=e.React.createElement(e.rootComponent,t),o=ir?e.React.createElement(ir.Provider,{value:t},r):r;return(e.errorBoundary||t.errorBoundary||e.errorBoundaryClass||t.errorBoundaryClass)&&(e.errorBoundaryClass=e.errorBoundaryClass||t.errorBoundaryClass||function(s,i){function a(l){s.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},a.displayName="SingleSpaReactErrorBoundary(".concat(l.name,")")}return a.prototype=Object.create(s.React.Component.prototype),a.prototype.render=function(){return this.state.caughtError?(s.errorBoundary||i.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},a.prototype.componentDidCatch=function(l,u){this.setState({caughtError:l,caughtErrorInfo:u})},a}(e,t),o=e.React.createElement(e.errorBoundaryClass,t,o)),o=e.React.createElement(e.SingleSpaRoot,Eo(Eo({},t),{},{mountFinished:n,updateFinished:function(){e.updateResolves[t.name]&&(e.updateResolves[t.name].forEach(function(s){return s()}),delete e.updateResolves[t.name])},unmountFinished:function(){e.unmountResolves[t.name]&&(e.unmountResolves[t.name](),delete e.unmountResolves[t.name])}}),o)}const c0=e=>{const t=new nh;return function(r){if(!r)throw new Error("Microfrontend did not receive any properties !!");const o=Lo(r.module.name);return c.jsx($i,{module:o,children:c.jsxs(ah,{client:t,children:[c.jsx(e,{...r}),c.jsx(Bp,{position:"top-right",reverseOrder:!0})]})})}},u0=({rootComponent:e,...t})=>r0({errorBoundary(n){return console.error(n),c.jsx(ri,{})},...t,rootComponent:c0(e)}),d0=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,Un,{value:e?yf(t,e):t})},hi=()=>{const[e]=Wn();return e.featureFlags},f0=e=>!!hi()[e],vd=({flag:e,children:t,fallback:n=null,invert:r=!1})=>{const s=hi()[e]===!0;return(r?!s:s)?c.jsx(c.Fragment,{children:t}):c.jsx(c.Fragment,{children:n})};vd.displayName="FeatureFlagGuard";const yd=S.createContext(null);function bd(e){const t=["#FF6B6B","#4ECDC4","#45B7D1","#FFA07A","#98D8C8","#F7DC6F","#BB8FCE","#85C1E2","#F8B739","#52B788","#E74C3C","#3498DB","#9B59B6","#1ABC9C","#F39C12","#E67E22","#95A5A6","#34495E","#16A085","#27AE60"];let n=0;for(let o=0;o<e.length;o++)n=e.charCodeAt(o)+((n<<5)-n),n=n&n;const r=Math.abs(n)%t.length;return t[r]}const mi={JOIN_ROOM:"join_room",LEAVE_ROOM:"leave_room",USER_LIST:"user_list"},p0=({children:e})=>{const t=Xi("@bluealba/pae-rooms-service"),[n,r]=S.useState([]),[o,s]=S.useState("loading"),[i,a]=S.useState(null);S.useEffect(()=>{if(t){const f=new WebSocket(t);return f.onopen=()=>{s("connected")},f.addEventListener("message",async v=>{try{const y=await l(v);y.event===mi.USER_LIST&&m(y.data)}catch(y){console.error("Error parsing WebSocket message:",y)}}),f.onclose=()=>{s("closed")},f.onerror=v=>{console.error("Rooms WebSocket error",v),s("error")},a(f),()=>{f.close()}}},[t]);const l=async f=>{if(f.data instanceof Blob){const v=await f.data.text();return JSON.parse(v)}else return JSON.parse(f.data)},u=(f,v)=>{i&&i.readyState===WebSocket.OPEN&&setTimeout(()=>{i.send(JSON.stringify({event:f,data:v}))},100)},p=f=>{u(mi.JOIN_ROOM,{roomId:f})},h=f=>{u(mi.LEAVE_ROOM,{roomId:f})},m=f=>{r(f.map(v=>({...v,username:v.username.toLowerCase(),color:bd(v.username)})))},g=S.useCallback(f=>n.filter(v=>v.rooms.includes(f)),[n]),x={status:o,getRoomUsers:g,joinRoom:p,leaveRoom:h};return c.jsx(yd.Provider,{value:x,children:e})},wd={autoJoin:!0,autoLeave:!0};function h0(e,t=wd){const{autoJoin:n,autoLeave:r}=t,o=S.useContext(yd),{authUser:s}=Gn();if(!o)throw new Error("useRoom must be used within RoomsProvider");const i=()=>{if(n){console.warn("[useRoom] Ignoring manual joinRoom call because autoJoin is enabled.",{roomId:e});return}return o.joinRoom(e)},a=()=>{if(r){console.warn("[useRoom] Ignoring manual leaveRoom call because autoLeave is enabled.",{roomId:e});return}return o.leaveRoom(e)};S.useEffect(()=>{if(!(!e||o.status!=="connected"))return n&&o.joinRoom(e),()=>{r&&o.leaveRoom(e)}},[o.status,e]);const l=o.getRoomUsers(e),u=l.findIndex(p=>p.username===(s==null?void 0:s.username))!==-1;return{users:l,roomId:e,hasJoined:u,joinRoom:i,leaveRoom:a}}const ar={container:"container__LbyGQ",avatarWrapper:"avatarWrapper__HCQIZ",avatar:"avatar__E453a",overflowWrapper:"overflowWrapper__ETnPO",overflowBadge:"overflowBadge__igBKT"},m0={sm:24,md:32,lg:40},g0=({users:e,maxVisible:t=5,size:n="md",overlap:r=!0,className:o="",onUserClick:s})=>{const i=m0[n],a=S.useMemo(()=>e.slice(0,t),[e,t]),l=S.useMemo(()=>e.slice(t),[e,t]),u=Math.max(0,e.length-t),p=h=>h.split(" ").map(m=>m[0]).join("").toUpperCase().slice(0,2);return c.jsxs("div",{className:k(ar.container,o),children:[a.map((h,m)=>c.jsx(En,{tooltipContent:h.displayName,side:"bottom",children:c.jsx("div",{className:ar.avatarWrapper,style:{marginLeft:m>0&&r?`-${i*.25}px`:void 0},onClick:()=>s==null?void 0:s(h),children:c.jsx("div",{className:ar.avatar,style:{width:i,height:i,backgroundColor:h.color,fontSize:n==="sm"?"10px":n==="md"?"12px":"14px",cursor:s?"pointer":"default"},children:p(h.displayName)})})},h.username)),u>0&&c.jsx(En,{side:"bottom",tooltipContent:c.jsx("div",{children:l.map(h=>c.jsx("p",{children:h.displayName},h.username))}),children:c.jsx("div",{className:ar.overflowWrapper,style:{marginLeft:r?`-${i*.25}px`:void 0},children:c.jsxs("div",{className:ar.overflowBadge,style:{width:i,height:i,fontSize:n==="sm"?"10px":n==="md"?"12px":"14px"},children:["+",u]})})})]})};T.Alert=So,T.ApplicationIcon=rl,T.Authorized=us,T.Badge=ps,T.Badges=hs,T.Button=Fr,T.ClipboardCheckIcon=dl,T.ClipboardIcon=ul,T.ConfirmDialog=Yu,T.CopyToClipboardButton=Qh,T.DEFAULT_OPTIONS=wd,T.Dialog=ye,T.DropdownList=go,T.EmptyState=di,T.ErrorState=ri,T.ExtendExtensionPoint=Dh,T.ExtensionPoint=Ya,T.EyeIcon=Cu,T.FeatureFlagGuard=vd,T.FieldGroup=pl,T.Input=Ur,T.InputError=ml,T.Label=vl,T.List=Je,T.ModulePlaceHolder=nl,T.Pagination=si,T.PaginationContent=ii,T.PaginationEllipsis=ci,T.PaginationItem=or,T.PaginationLink=sr,T.PaginationNext=li,T.PaginationPrevious=ai,T.PasswordInput=_y,T.Pill=zy,T.PlatformEventListener=Wh,T.PlatformEvents=zd,T.PluralizeCounter=ui,T.RoomAvatars=g0,T.RoomsProvider=p0,T.SearchAutocomplete=mu,T.SearchInput=Xs,T.Select=gs,T.Select2=eu,T.Show=Tt,T.Skeleton=yo,T.SkeletonList=yu,T.Spinner=wu,T.Switch=_u,T.Table=dd,T.Tabs=vy,T.TabsContent=wy,T.TabsList=yy,T.TabsTrigger=by,T.TextArea=tu,T.TextWithTooltip=pu,T.ThemeToggle=fd,T.Tooltip=En,T.authorized=e0,T.dropdownListStyles=Jt,T.extensionPoint=Mh,T.generateUserColor=bd,T.getApplications=jo,T.getInitials=lf,T.getOperations=Fi,T.hasAccess=Ui,T.initializeMicroFrontend=u0,T.isPlatformCustomizationCompleted=Yf,T.isValidEmail=af,T.logout=rf,T.navigateTo=of,T.platformHaveAnyCustomization=Qf,T.setupTestEnvironment=d0,T.useApplicationIcon=Ki,T.useApplicationJSModule=gr,T.useApplicationMenu=hf,T.useApplicationUIModule=qi,T.useApplications=zi,T.useAuth=Gn,T.useCatalog=Hn,T.useCurrentApplication=No,T.useCurrentApplicationName=Zi,T.useCurrentJSModule=xf,T.useDynamicFonts=oa,T.useDynamicStyleSheet=ra,T.useExtendExtensionPoint=ta,T.useExtensionPoint=ea,T.useFeatureFlag=f0,T.useFeatureFlags=hi,T.useGetPlatformTheme=Kf,T.useHasNoSession=ef,T.useLocation=Li,T.useModule=Lo,T.useModuleCommonPaths=nf,T.useModuleConfig=ko,T.useModuleConfigByName=Wi,T.useModuleMenu=Qi,T.useModuleMetadata=zn,T.useMutableCatalog=Yd,T.useNotifications=Qo,T.useOperations=Bi,T.usePAECustomizationsLoadingState=qf,T.usePAEState=Wn,T.usePlatformCustomization=Gf,T.usePlatformEventListener=na,T.useResource=bh,T.useResourceActions=za,T.useRoom=h0,T.useServiceBaseURL=Mo,T.useServiceInvoker=$o,T.useServiceWebSocketURL=Xi,T.useTenants=jh,T.useTheme=al,T.useTrackEvent=Af,T.useTrackEvents=Ji,T.useUIApplications=Gi,T.useUserState=Lh,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})});
|