@bluealba/pae-ui-react-core 4.0.1-develop-1260 → 4.0.1-develop-1269
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +38 -38
- package/dist/index.esm.js +885 -883
- package/dist/index.systemjs.js +37 -37
- package/dist/index.umd.js +39 -39
- package/dist/src/hooks/applications/ApplicationMenu.d.ts +2 -0
- package/dist/src/hooks/applications/useApplicationMenu.d.ts +1 -3
- package/dist/src/hooks/applications/useModuleMenu.d.ts +11 -0
- package/dist/src/hooks/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";require('./index.css');var di=e=>{throw TypeError(e)};var ho=(e,t,n)=>t.has(e)||di("Cannot "+n);var b=(e,t,n)=>(ho(e,t,"read from private field"),n?n.call(e):t.get(e)),L=(e,t,n)=>t.has(e)?di("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),O=(e,t,n,r)=>(ho(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),$=(e,t,n)=>(ho(e,t,"access private method"),n);var Yn=(e,t,n,r)=>({set _(o){O(e,t,o,n)},get _(){return b(e,t,r)}});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("react"),gr=require("single-spa"),Da=require("react-dom");function La(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 f=La(R),ka=La(Da),
|
|
1
|
+
"use strict";require('./index.css');var di=e=>{throw TypeError(e)};var ho=(e,t,n)=>t.has(e)||di("Cannot "+n);var b=(e,t,n)=>(ho(e,t,"read from private field"),n?n.call(e):t.get(e)),L=(e,t,n)=>t.has(e)?di("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),O=(e,t,n,r)=>(ho(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),$=(e,t,n)=>(ho(e,t,"access private method"),n);var Yn=(e,t,n,r)=>({set _(o){O(e,t,o,n)},get _(){return b(e,t,r)}});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("react"),gr=require("single-spa"),Da=require("react-dom");function La(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 f=La(R),ka=La(Da),td={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"}},Rn="__PAE_GLOBAL_STATE__",Ia="__PAE_REACTIVE_GLOBAL_STATE__",Na="__PAE_EXTENSIONS_POINTS_REGISTRY__",To="__PAE_CUSTOMIZATIONS_LOADING_STATE_KEY__",nd="/auth/logout",rd=(e,t)=>{const[n,r]=R.useState(t);return R.useEffect(()=>{const o=e.subscribe(s=>{r(s)});return()=>{o.unsubscribe()}},[r]),n},od=(e,t,n)=>n.map((r,o)=>o===e?t(r):r),sd=(e,t,n)=>od(n.findIndex(e),t,n),Ao=(e,t)=>typeof e=="function"?e(t):e,Ma=(e,t)=>{const n=rd(e,t),r=R.useCallback(o=>{e.next(Ao(o,n))},[n]);return[n,r]},Nn=()=>Ma(window[Ia],window[Rn]),Mn=()=>Nn()[0].catalog,id=()=>{const e=Mn(),t=R.useCallback(r=>{window[Ia].next({...window[Rn],catalog:Ao(r,e)})},[e]),n=R.useCallback((r,o)=>{t(s=>sd(i=>i.name===r,i=>{var a;return{...i,ui:{...i.ui,customProps:Ao(o,((a=i.ui)==null?void 0:a.customProps)??{})}}},s))},[t]);return[e,t,n]},$a=()=>{const[e,t]=R.useState(document.location.pathname);return R.useEffect(()=>{const n=()=>{t(window.location.pathname)};return window.addEventListener("popstate",n),()=>{window.removeEventListener("popstate",n)}},[t]),e};var ad=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fa={exports:{}},Cn={},fi;function ld(){if(fi)return Cn;fi=1;/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.development.js
|
|
4
4
|
*
|
|
@@ -10,26 +10,26 @@
|
|
|
10
10
|
`+Wt+v}}var Ht=!1,Ct;{var zn=typeof WeakMap=="function"?WeakMap:Map;Ct=new zn}function wn(v,T){if(!v||Ht)return"";{var j=Ct.get(v);if(j!==void 0)return j}var N;Ht=!0;var q=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var K;K=bn.current,bn.current=null,so();try{if(T){var W=function(){throw Error()};if(Object.defineProperty(W.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(W,[])}catch(de){N=de}Reflect.construct(v,[],W)}else{try{W.call()}catch(de){N=de}v.call(W.prototype)}}else{try{throw Error()}catch(de){N=de}v()}}catch(de){if(de&&N&&typeof de.stack=="string"){for(var B=de.stack.split(`
|
|
11
11
|
`),ae=N.stack.split(`
|
|
12
12
|
`),ee=B.length-1,te=ae.length-1;ee>=1&&te>=0&&B[ee]!==ae[te];)te--;for(;ee>=1&&te>=0;ee--,te--)if(B[ee]!==ae[te]){if(ee!==1||te!==1)do if(ee--,te--,te<0||B[ee]!==ae[te]){var Ce=`
|
|
13
|
-
`+B[ee].replace(" at new "," at ");return v.displayName&&Ce.includes("<anonymous>")&&(Ce=Ce.replace("<anonymous>",v.displayName)),typeof v=="function"&&Ct.set(v,Ce),Ce}while(ee>=1&&te>=0);break}}}finally{Ht=!1,bn.current=K,io(),Error.prepareStackTrace=q}var zt=v?v.displayName||v.name:"",St=zt?wt(zt):"";return typeof v=="function"&&Ct.set(v,St),St}function xt(v,T,j){return wn(v,!1)}function Gn(v){var T=v.prototype;return!!(T&&T.isReactComponent)}function Vt(v,T,j){if(v==null)return"";if(typeof v=="function")return wn(v,Gn(v));if(typeof v=="string")return wt(v);switch(v){case l:return wt("Suspense");case d:return wt("SuspenseList")}if(typeof v=="object")switch(v.$$typeof){case c:return xt(v.render);case h:return Vt(v.type,T,j);case p:{var N=v,q=N._payload,K=N._init;try{return Vt(K(q),T,j)}catch{}}}return""}var Et=Object.prototype.hasOwnProperty,Qn={},Kn=C.ReactDebugCurrentFrame;function Ue(v){if(v){var T=v._owner,j=Vt(v.type,v._source,T?T.type:null);Kn.setExtraStackFrame(j)}else Kn.setExtraStackFrame(null)}function
|
|
13
|
+
`+B[ee].replace(" at new "," at ");return v.displayName&&Ce.includes("<anonymous>")&&(Ce=Ce.replace("<anonymous>",v.displayName)),typeof v=="function"&&Ct.set(v,Ce),Ce}while(ee>=1&&te>=0);break}}}finally{Ht=!1,bn.current=K,io(),Error.prepareStackTrace=q}var zt=v?v.displayName||v.name:"",St=zt?wt(zt):"";return typeof v=="function"&&Ct.set(v,St),St}function xt(v,T,j){return wn(v,!1)}function Gn(v){var T=v.prototype;return!!(T&&T.isReactComponent)}function Vt(v,T,j){if(v==null)return"";if(typeof v=="function")return wn(v,Gn(v));if(typeof v=="string")return wt(v);switch(v){case l:return wt("Suspense");case d:return wt("SuspenseList")}if(typeof v=="object")switch(v.$$typeof){case c:return xt(v.render);case h:return Vt(v.type,T,j);case p:{var N=v,q=N._payload,K=N._init;try{return Vt(K(q),T,j)}catch{}}}return""}var Et=Object.prototype.hasOwnProperty,Qn={},Kn=C.ReactDebugCurrentFrame;function Ue(v){if(v){var T=v._owner,j=Vt(v.type,v._source,T?T.type:null);Kn.setExtraStackFrame(j)}else Kn.setExtraStackFrame(null)}function Lu(v,T,j,N,q){{var K=Function.call.bind(Et);for(var W in v)if(K(v,W)){var B=void 0;try{if(typeof v[W]!="function"){var ae=Error((N||"React class")+": "+j+" type `"+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof v[W]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ae.name="Invariant Violation",ae}B=v[W](T,W,N,j,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ee){B=ee}B&&!(B instanceof Error)&&(Ue(q),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",N||"React class",j,W,typeof B),Ue(null)),B instanceof Error&&!(B.message in Qn)&&(Qn[B.message]=!0,Ue(q),x("Failed %s type: %s",j,B.message),Ue(null))}}}var ku=Array.isArray;function ao(v){return ku(v)}function Iu(v){{var T=typeof Symbol=="function"&&Symbol.toStringTag,j=T&&v[Symbol.toStringTag]||v.constructor.name||"Object";return j}}function Nu(v){try{return Js(v),!1}catch{return!0}}function Js(v){return""+v}function ei(v){if(Nu(v))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Iu(v)),Js(v)}var ti=C.ReactCurrentOwner,Mu={key:!0,ref:!0,__self:!0,__source:!0},ni,ri;function $u(v){if(Et.call(v,"ref")){var T=Object.getOwnPropertyDescriptor(v,"ref").get;if(T&&T.isReactWarning)return!1}return v.ref!==void 0}function Fu(v){if(Et.call(v,"key")){var T=Object.getOwnPropertyDescriptor(v,"key").get;if(T&&T.isReactWarning)return!1}return v.key!==void 0}function Bu(v,T){typeof v.ref=="string"&&ti.current}function Uu(v,T){{var j=function(){ni||(ni=!0,x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",T))};j.isReactWarning=!0,Object.defineProperty(v,"key",{get:j,configurable:!0})}}function Wu(v,T){{var j=function(){ri||(ri=!0,x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",T))};j.isReactWarning=!0,Object.defineProperty(v,"ref",{get:j,configurable:!0})}}var Hu=function(v,T,j,N,q,K,W){var B={$$typeof:t,type:v,key:T,ref:j,props:W,_owner:K};return B._store={},Object.defineProperty(B._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(B,"_self",{configurable:!1,enumerable:!1,writable:!1,value:N}),Object.defineProperty(B,"_source",{configurable:!1,enumerable:!1,writable:!1,value:q}),Object.freeze&&(Object.freeze(B.props),Object.freeze(B)),B};function Vu(v,T,j,N,q){{var K,W={},B=null,ae=null;j!==void 0&&(ei(j),B=""+j),Fu(T)&&(ei(T.key),B=""+T.key),$u(T)&&(ae=T.ref,Bu(T,q));for(K in T)Et.call(T,K)&&!Mu.hasOwnProperty(K)&&(W[K]=T[K]);if(v&&v.defaultProps){var ee=v.defaultProps;for(K in ee)W[K]===void 0&&(W[K]=ee[K])}if(B||ae){var te=typeof v=="function"?v.displayName||v.name||"Unknown":v;B&&Uu(W,te),ae&&Wu(W,te)}return Hu(v,B,ae,q,N,ti.current,W)}}var co=C.ReactCurrentOwner,oi=C.ReactDebugCurrentFrame;function qt(v){if(v){var T=v._owner,j=Vt(v.type,v._source,T?T.type:null);oi.setExtraStackFrame(j)}else oi.setExtraStackFrame(null)}var lo;lo=!1;function uo(v){return typeof v=="object"&&v!==null&&v.$$typeof===t}function si(){{if(co.current){var v=H(co.current.type);if(v)return`
|
|
14
14
|
|
|
15
|
-
Check the render method of \``+v+"`."}return""}}function
|
|
15
|
+
Check the render method of \``+v+"`."}return""}}function qu(v){return""}var ii={};function zu(v){{var T=si();if(!T){var j=typeof v=="string"?v:v.displayName||v.name;j&&(T=`
|
|
16
16
|
|
|
17
|
-
Check the top-level render call using <`+j+">.")}return T}}function ai(v,T){{if(!v._store||v._store.validated||v.key!=null)return;v._store.validated=!0;var j=
|
|
17
|
+
Check the top-level render call using <`+j+">.")}return T}}function ai(v,T){{if(!v._store||v._store.validated||v.key!=null)return;v._store.validated=!0;var j=zu(T);if(ii[j])return;ii[j]=!0;var N="";v&&v._owner&&v._owner!==co.current&&(N=" It was passed a child from "+H(v._owner.type)+"."),qt(v),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',j,N),qt(null)}}function ci(v,T){{if(typeof v!="object")return;if(ao(v))for(var j=0;j<v.length;j++){var N=v[j];uo(N)&&ai(N,T)}else if(uo(v))v._store&&(v._store.validated=!0);else if(v){var q=y(v);if(typeof q=="function"&&q!==v.entries)for(var K=q.call(v),W;!(W=K.next()).done;)uo(W.value)&&ai(W.value,T)}}}function Gu(v){{var T=v.type;if(T==null||typeof T=="string")return;var j;if(typeof T=="function")j=T.propTypes;else if(typeof T=="object"&&(T.$$typeof===c||T.$$typeof===h))j=T.propTypes;else return;if(j){var N=H(T);Lu(j,v.props,"prop",N,v)}else if(T.PropTypes!==void 0&&!lo){lo=!0;var q=H(T);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",q||"Unknown")}typeof T.getDefaultProps=="function"&&!T.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Qu(v){{for(var T=Object.keys(v.props),j=0;j<T.length;j++){var N=T[j];if(N!=="children"&&N!=="key"){qt(v),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",N),qt(null);break}}v.ref!==null&&(qt(v),x("Invalid attribute `ref` supplied to `React.Fragment`."),qt(null))}}var li={};function ui(v,T,j,N,q,K){{var W=k(v);if(!W){var B="";(v===void 0||typeof v=="object"&&v!==null&&Object.keys(v).length===0)&&(B+=" 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 ae=qu();ae?B+=ae:B+=si();var ee;v===null?ee="null":ao(v)?ee="array":v!==void 0&&v.$$typeof===t?(ee="<"+(H(v.type)||"Unknown")+" />",B=" Did you accidentally export a JSX literal instead of a component?"):ee=typeof v,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ee,B)}var te=Vu(v,T,j,q,K);if(te==null)return te;if(W){var Ce=T.children;if(Ce!==void 0)if(N)if(ao(Ce)){for(var zt=0;zt<Ce.length;zt++)ci(Ce[zt],v);Object.freeze&&Object.freeze(Ce)}else x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ci(Ce,v)}if(Et.call(T,"key")){var St=H(v),de=Object.keys(T).filter(function(ed){return ed!=="key"}),fo=de.length>0?"{key: someKey, "+de.join(": ..., ")+": ...}":"{key: someKey}";if(!li[St+fo]){var Ju=de.length>0?"{"+de.join(": ..., ")+": ...}":"{}";x(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,fo,St,
|
|
22
|
+
<%s key={someKey} {...props} />`,fo,St,Ju,St),li[St+fo]=!0}}return v===r?Qu(te):Gu(te),te}}function Ku(v,T,j){return ui(v,T,j,!0)}function Yu(v,T,j){return ui(v,T,j,!1)}var Zu=Yu,Xu=Ku;Cn.Fragment=r,Cn.jsx=Zu,Cn.jsxs=Xu}(),Cn}Fa.exports=ld();var u=Fa.exports;const Ba=R.createContext(null),Ua=({module:e,children:t})=>u.jsx(Ba.Provider,{value:e,children:t});Ua.displayName="PAEModule";const $n=()=>{const e=R.useContext(Ba);if(!e)throw new Error("Module metadata was not setup yet !!");return e};function ls(){if(!window[Rn])throw new Error("PAE Global state not found.");return window[Rn]}const us=()=>{const{authUser:{applications:e}}=ls();return e||[]},Wa=e=>us().filter(t=>t.isGlobal||t.name===e).flatMap(t=>t.operations),Ha=()=>{const{application:e}=$n();return R.useMemo(()=>Wa(e),[e])},Va=e=>(...t)=>t.every(n=>e.some(r=>r.name===n)),Ur=()=>{const[{authUser:e}]=Nn(),t=Ha();return{authUser:e,hasAccess:R.useMemo(()=>Va(t),[t])}},ud=()=>{const{authUser:e}=Ur();return!e||e.id==="anon"},qa=()=>{var e;return((e=$n().ui)==null?void 0:e.customProps)??{}},ds=e=>{const t=Mn();return R.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])},za=e=>{var t,n;return((n=(t=ds(e))==null?void 0:t.ui)==null?void 0:n.customProps)??{}},dd=e=>e.replace(/\/+/g,"/"),fd=(e,t="only-base-path")=>{const{apiDocs:n,health:r,version:o,changelog:s}=(e==null?void 0:e.commonPaths)||{},i=(a,c="")=>{if(a===void 0&&!c)return;const l=a??c;if(t==="only-base-path")return l;const d=dd(`${e.baseUrl}/${l}`);return t==="with-module-base"?d:`${document.location.origin}${d}`};return{apiDocsPath:i(n,"/api-docs-json"),healthPath:i(r,"/health"),versionPath:i(o,"/version"),changelogPath:i(s,"/changelog")}};function hd(){window.open(nd,"_self")}const pd=e=>gr.navigateToUrl(e),md=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,}$/,gd=e=>md.test(e),yd=(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)},Ga=e=>e.type==="app",vd=e=>e.modules.some(Ga)&&e.route&&e.route!=="/",Qa=e=>{const{catalog:t}=ls();return Wr(t.filter(n=>n.application===e))},Wr=(e=[])=>e.find(t=>{var n;return Ga(t)&&((n=t.ui)==null?void 0:n.route)!=="/"}),Ka=()=>{const e=Mn();return R.useMemo(()=>us().map(n=>{var s,i,a;const r=bd(e,n.name),o=Wr(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])},bd=(e,t)=>e.filter(n=>n.application===t)||[],Ya=()=>{const e=Ka();return R.useMemo(()=>e.filter(vd),[e])},Za=e=>R.useMemo(()=>e?Qa(e.name):void 0,[e]),ht=new Map,wd=e=>{try{const{catalog:t}=ls(),n=t.find(r=>r.name===e);return n!=null&&n.version?`${e}@${n.version}`:e}catch{return e}},Hr=e=>{const[t,n]=R.useState(null);return R.useEffect(()=>{(async()=>{if(!e){n(null);return}try{const o=wd(e);if(ht.has(o)){const i=ht.get(o);n(i);return}const s=await System.import(e);ht.set(o,s),n(s)}catch(o){console.error(`Error importing module ${e}: ${o.message}`),n(null)}})()},[e,n]),t},Cd=e=>{e?(Array.from(ht.keys()).filter(n=>n.startsWith(e)).forEach(n=>ht.delete(n)),console.log(`[useApplicationJSModule] Cleared cache for module: ${e}`)):(ht.clear(),console.log("[useApplicationJSModule] Cleared all module cache"))};typeof window<"u"&&(window.PAE={...window.PAE,clearModuleCache:Cd,getModuleCacheSize:()=>ht.size,getModuleCacheKeys:()=>Array.from(ht.keys())});const Xa=e=>{const t=typeof e=="string"?Qa(e):Wr(e==null?void 0:e.modules),n=Hr(t==null?void 0:t.name);return n==null?void 0:n.icon},Ja=e=>{const t=Wr(e==null?void 0:e.modules),n=Hr(t==null?void 0:t.name),[r,o]=R.useState(!1),[s,i]=R.useState({}),a=async()=>(typeof(n==null?void 0:n.menu)=="function"?await n.menu():n==null?void 0:n.menu)||[],c=async()=>{if(!(n!=null&&n.menu))return[];o(!0);const h=xd((e==null?void 0:e.operations)||[]),p=(await a()).map(g=>{const{operations:w,items:m,path:y}=g;if(w!=null&&w.length&&!h(w))return null;const C=(m||[]).filter(x=>{var S;return!((S=x==null?void 0:x.operations)!=null&&S.length)||h(x.operations)});return!C.length&&!y?null:{...g,items:C}}).filter(Boolean);return o(!1),p},l=async()=>{const h=await c();e&&i(p=>({...p,[e.name]:h}))};R.useEffect(()=>{l()},[n==null?void 0:n.menu]);const d=R.useMemo(()=>e?s[e.name]||[]:[],[s,e]);return{loading:r,menu:d}},xd=e=>t=>t.every(n=>e.some(r=>r.name===n)),Ed=e=>Ja(e);function Y(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function _t(e){return function t(n){return arguments.length===0||Y(n)?t:e.apply(this,arguments)}}function et(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return Y(n)?t:_t(function(o){return e(n,o)});default:return Y(n)&&Y(r)?t:Y(n)?_t(function(o){return e(o,r)}):Y(r)?_t(function(o){return e(n,o)}):e(n,r)}}}function fs(e){return function t(n,r,o){switch(arguments.length){case 0:return t;case 1:return Y(n)?t:et(function(s,i){return e(n,s,i)});case 2:return Y(n)&&Y(r)?t:Y(n)?et(function(s,i){return e(s,r,i)}):Y(r)?et(function(s,i){return e(n,s,i)}):_t(function(s){return e(n,r,s)});default:return Y(n)&&Y(r)&&Y(o)?t:Y(n)&&Y(r)?et(function(s,i){return e(s,i,o)}):Y(n)&&Y(o)?et(function(s,i){return e(s,r,i)}):Y(r)&&Y(o)?et(function(s,i){return e(n,s,i)}):Y(n)?_t(function(s){return e(s,r,o)}):Y(r)?_t(function(s){return e(n,s,o)}):Y(o)?_t(function(s){return e(n,r,s)}):e(n,r,o)}}}function Zn(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function hi(e){return Object.prototype.toString.call(e)==="[object Object]"}var Sd=fs(function(t,n,r){var o=t(n),s=t(r);return o>s?-1:o<s?1:0}),_d=fs(function(t,n,r){var o={},s;n=n||{},r=r||{};for(s in n)Zn(s,n)&&(o[s]=Zn(s,r)?t(s,n[s],r[s]):n[s]);for(s in r)Zn(s,r)&&!Zn(s,o)&&(o[s]=r[s]);return o}),Rd=fs(function e(t,n,r){return _d(function(o,s,i){return hi(s)&&hi(i)?e(t,s,i):t(o,s,i)},n,r)}),Td=et(function(t,n){return Rd(function(r,o,s){return s},t,n)}),Ad=et(function(t,n){return Array.prototype.slice.call(n,0).sort(function(r,o){for(var s=0,i=0;s===0&&i<t.length;)s=t[i](r,o),i+=1;return s})});const hs=()=>{const e=$a(),t=Ya();return R.useMemo(()=>Pd(e,t),[e,t])},Pd=(e,t)=>Ad([Sd(Od)],t).find(n=>n.route&&e.startsWith(n.route)),Od=e=>{var t;return((t=e==null?void 0:e.route)==null?void 0:t.length)||-1},ec=()=>{var e;return(e=hs())==null?void 0:e.name},jd=()=>{const e=hs(),t=Za(e);return Hr(t==null?void 0:t.name)},tc=(e,t)=>{const r=Mn().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},ps=(e,t)=>{const n=tc(e,!!t)??t;return R.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(Dd(`${n}${r}`),{...o,headers:i})},[n])},Dd=e=>e.replace(/\/+/g,"/"),Ld=(e,t)=>n=>({timestamp:new Date(new Date().toUTCString()).toISOString(),module:t.name,moduleVersion:t.version,application:t.application,user:e.username,...n}),kd=(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(Ld(t,n)))});if(!o.ok)throw new Error(`Error publishing habits event ${o.statusText}`)},Id="@bluealba/pae-habits-service",nc=()=>{const{authUser:e}=Ur(),t=$n(),n=ps(Id);return R.useCallback(kd(n,e,t),[n,e,t])},Nd=()=>{const e=nc();return R.useCallback((t,n)=>e([{name:t,data:n}]),[e])},rc=e=>{const t=$n(),n=window[Na],[r,o]=R.useState(null);return R.useEffect(()=>n.defineExtensionPoint(t,e,s=>{o(()=>s)}),[o]),r},oc=(e,t,n)=>{R.useEffect(()=>window[Na].setExtensionPoint(e,t,n),[])},sc=(e,t)=>{R.useEffect(()=>(window.addEventListener(e,t),()=>window.removeEventListener(e,t)),[e,t])},ic=e=>{const{cssCustomizationLoadingDelay:t=1e3}=qa();R.useEffect(()=>{if(!e)return;const n=document.createElement("style");return setTimeout(()=>{n.innerHTML=e,document.head.append(n)},t),()=>n&&n.remove()},[e])},Md=e=>{var t;return(t=e.split(/[#?]/)[0].split(".").pop())==null?void 0:t.trim()},$d={woff2:"woff2",woff:"woff",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg"},Fd=e=>{const t=Md(e);return t?$d[t]:void 0},Bd=(e,t)=>{const n=t??Fd(e);return n?`format(${n})`:""};function ac(e){const[t,n]=R.useState(!1);return R.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:c,fontWeight:l,format:d})=>`
|
|
23
23
|
@font-face {
|
|
24
24
|
font-family: "${i}";
|
|
25
|
-
src: url("${c}") ${
|
|
25
|
+
src: url("${c}") ${Bd(c,d)};
|
|
26
26
|
font-weight: ${l};
|
|
27
27
|
font-style: normal;
|
|
28
28
|
}
|
|
29
29
|
`)).join(`
|
|
30
|
-
`);return r.innerHTML=o,document.head.appendChild(r),(async()=>{try{await Promise.all(e.flatMap(({fontFamily:i,variants:a})=>a.map(({fontWeight:c})=>document.fonts.load(`normal ${c} 1em "${i}"`))))}finally{n(!0)}})(),()=>{document.head.removeChild(r)}},[e]),R.useEffect(()=>{!t&&!(e!=null&&e.length)&&n(!0)},[e,t]),{fontsLoaded:t}}var Po=function(e,t){return Po=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])},Po(e,t)};function Fn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Po(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ke=function(){return ke=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},ke.apply(this,arguments)};function
|
|
30
|
+
`);return r.innerHTML=o,document.head.appendChild(r),(async()=>{try{await Promise.all(e.flatMap(({fontFamily:i,variants:a})=>a.map(({fontWeight:c})=>document.fonts.load(`normal ${c} 1em "${i}"`))))}finally{n(!0)}})(),()=>{document.head.removeChild(r)}},[e]),R.useEffect(()=>{!t&&!(e!=null&&e.length)&&n(!0)},[e,t]),{fontsLoaded:t}}var Po=function(e,t){return Po=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])},Po(e,t)};function Fn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Po(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ke=function(){return ke=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},ke.apply(this,arguments)};function cc(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 Oo(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 jo(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 Tr(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))}function ze(e){return typeof e=="function"}function lc(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 po=lc(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
31
31
|
`+n.map(function(r,o){return o+1+") "+r.toString()}).join(`
|
|
32
|
-
`):"",this.name="UnsubscriptionError",this.errors=n}});function Do(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Vr=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=Oo(i),c=a.next();!c.done;c=a.next()){var l=c.value;l.remove(this)}}catch(m){t={error:m}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else i.remove(this);var d=this.initialTeardown;if(ze(d))try{d()}catch(m){s=m instanceof po?m.errors:[m]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var p=Oo(h),g=p.next();!g.done;g=p.next()){var w=g.value;try{pi(w)}catch(m){s=s??[],m instanceof po?s=Tr(Tr([],jo(s)),jo(m.errors)):s.push(m)}}}catch(m){r={error:m}}finally{try{g&&!g.done&&(o=p.return)&&o.call(p)}finally{if(r)throw r.error}}}if(s)throw new po(s)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)pi(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)&&Do(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Do(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),lc=Vr.EMPTY;function uc(e){return e instanceof Vr||e&&"closed"in e&&ze(e.remove)&&ze(e.add)&&ze(e.unsubscribe)}function pi(e){ze(e)?e():e.unsubscribe()}var Bd={Promise:void 0},Ud={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,Tr([e,t],jo(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Wd(e){Ud.setTimeout(function(){throw e})}function mi(){}function yr(e){e()}var dc=function(e){Fn(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,uc(n)&&n.add(r)):r.destination=qd,r}return t.create=function(n,r,o){return new Lo(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}(Vr),Hd=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){Xn(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){Xn(r)}else Xn(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Xn(n)}},e}(),Lo=function(e){Fn(t,e);function t(n,r,o){var s=e.call(this)||this,i;return ze(n)||!n?i={next:n??void 0,error:r??void 0,complete:o??void 0}:i=n,s.destination=new Hd(i),s}return t}(dc);function Xn(e){Wd(e)}function Vd(e){throw e}var qd={closed:!0,next:mi,error:Vd,complete:mi},zd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Gd(e){return e}function Qd(e){return e.length===0?Gd:e.length===1?e[0]:function(n){return e.reduce(function(r,o){return o(r)},n)}}var gi=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=Yd(t)?t:new Lo(t,n,r);return yr(function(){var i=o,a=i.operator,c=i.source;s.add(a?a.call(s,c):c?o._subscribe(s):o._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=yi(n),new n(function(o,s){var i=new Lo({next:function(a){try{t(a)}catch(c){s(c),i.unsubscribe()}},error:s,complete:o});r.subscribe(i)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[zd]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Qd(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=yi(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 yi(e){var t;return(t=e??Bd.Promise)!==null&&t!==void 0?t:Promise}function Kd(e){return e&&ze(e.next)&&ze(e.error)&&ze(e.complete)}function Yd(e){return e&&e instanceof dc||Kd(e)&&uc(e)}var Zd=cc(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),fc=function(e){Fn(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 vi(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new Zd},t.prototype.next=function(n){var r=this;yr(function(){var o,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var i=Oo(r.currentObservers),a=i.next();!a.done;a=i.next()){var c=a.value;c.next(n)}}catch(l){o={error:l}}finally{try{a&&!a.done&&(s=i.return)&&s.call(i)}finally{if(o)throw o.error}}}})},t.prototype.error=function(n){var r=this;yr(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;yr(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?lc:(this.currentObservers=null,a.push(n),new Vr(function(){r.currentObservers=null,Do(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 gi;return n.source=this,n},t.create=function(n,r){return new vi(n,r)},t}(gi),vi=function(e){Fn(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:lc},t}(fc),Xd=function(e){Fn(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}(fc);const Jd=e=>{const{fontsLoaded:t}=ic(e.fonts);sc(e.styleSheet);const n=()=>{const r=new Xd(!0);window[To]=r};R.useEffect(()=>{t&&window[To].next(!1)},[t]),R.useEffect(()=>{n()},[])},ef=()=>{const e=window[To];return Ma(e,e.getValue()??void 0)},ko="theme",bi=()=>document.documentElement.dataset[ko]==="dark"?"dark":"light",tf=()=>{const[e,t]=R.useState(bi());return R.useEffect(()=>{const n=document.documentElement,r=()=>t(bi),o=new MutationObserver(s=>{for(const i of s)i.type==="attributes"&&i.attributeName===`data-${ko}`&&r()});return o.observe(n,{attributes:!0,attributeFilter:[`data-${ko}`]}),r(),()=>{o.disconnect()}},[]),e},nf=e=>e!==void 0,rf=e=>e!==!0;let of={data:""},sf=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||of},af=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,cf=/\/\*[^]*?\*\/| +/g,wi=/\n+/g,tt=(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"?tt(i,s):s+"{"+tt(i,s[1]=="k"?"":t)+"}":typeof i=="object"?r+=tt(i,t?t.replace(/([^,])+/g,a=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,a):a?a+" "+c:c)):s):i!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=tt.p?tt.p(s,i):s+":"+i+";")}return n+(t&&o?t+"{"+o+"}":o)+r},We={},hc=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+hc(e[n]);return t}return e},lf=(e,t,n,r,o)=>{let s=hc(e),i=We[s]||(We[s]=(c=>{let l=0,d=11;for(;l<c.length;)d=101*d+c.charCodeAt(l++)>>>0;return"go"+d})(s));if(!We[i]){let c=s!==e?e:(l=>{let d,h,p=[{}];for(;d=af.exec(l.replace(cf,""));)d[4]?p.shift():d[3]?(h=d[3].replace(wi," ").trim(),p.unshift(p[0][h]=p[0][h]||{})):p[0][d[1]]=d[2].replace(wi," ").trim();return p[0]})(e);We[i]=tt(o?{["@keyframes "+i]:c}:c,n?"":"."+i)}let a=n&&We.g?We.g:null;return n&&(We.g=We[i]),((c,l,d,h)=>{h?l.data=l.data.replace(h,c):l.data.indexOf(c)===-1&&(l.data=d?c+l.data:l.data+c)})(We[i],t,r,a),i},uf=(e,t,n)=>e.reduce((r,o,s)=>{let i=t[s];if(i&&i.call){let a=i(n),c=a&&a.props&&a.props.className||/^go/.test(a)&&a;i=c?"."+c:a&&typeof a=="object"?a.props?"":tt(a,""):a===!1?"":a}return r+o+(i??"")},"");function qr(e){let t=this||{},n=e.call?e(t.p):e;return lf(n.unshift?n.raw?uf(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,sf(t.target),t.g,t.o,t.k)}let pc,Io,No;qr.bind({g:1});let Qe=qr.bind({k:1});function df(e,t,n,r){tt.p=t,pc=e,Io=n,No=r}function vt(e,t){let n=this||{};return function(){let r=arguments;function o(s,i){let a=Object.assign({},s),c=a.className||o.className;n.p=Object.assign({theme:Io&&Io()},a),n.o=/ *go\d+/.test(c),a.className=qr.apply(n,r)+(c?" "+c:"");let l=e;return e[0]&&(l=a.as||e,delete a.as),No&&l[0]&&No(a),pc(l,a)}return o}}var ff=e=>typeof e=="function",Ar=(e,t)=>ff(e)?e(t):e,hf=(()=>{let e=0;return()=>(++e).toString()})(),mc=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),pf=20,vr=new Map,mf=1e3,Ci=e=>{if(vr.has(e))return;let t=setTimeout(()=>{vr.delete(e),Bt({type:4,toastId:e})},mf);vr.set(e,t)},gf=e=>{let t=vr.get(e);t&&clearTimeout(t)},Mo=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,pf)};case 1:return t.toast.id&&gf(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)?Mo(e,{type:1,toast:n}):Mo(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?Ci(r):e.toasts.forEach(s=>{Ci(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}))}}},br=[],wr={toasts:[],pausedAt:void 0},Bt=e=>{wr=Mo(wr,e),br.forEach(t=>{t(wr)})},yf={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},vf=(e={})=>{let[t,n]=R.useState(wr);R.useEffect(()=>(br.push(n),()=>{let o=br.indexOf(n);o>-1&&br.splice(o,1)}),[t]);let r=t.toasts.map(o=>{var s,i;return{...e,...e[o.type],...o,duration:o.duration||((s=e[o.type])==null?void 0:s.duration)||(e==null?void 0:e.duration)||yf[o.type],style:{...e.style,...(i=e[o.type])==null?void 0:i.style,...o.style}}});return{...t,toasts:r}},bf=(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)||hf()}),Bn=e=>(t,n)=>{let r=bf(t,e,n);return Bt({type:2,toast:r}),r.id},be=(e,t)=>Bn("blank")(e,t);be.error=Bn("error");be.success=Bn("success");be.loading=Bn("loading");be.custom=Bn("custom");be.dismiss=e=>{Bt({type:3,toastId:e})};be.remove=e=>Bt({type:4,toastId:e});be.promise=(e,t,n)=>{let r=be.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(o=>(be.success(Ar(t.success,o),{id:r,...n,...n==null?void 0:n.success}),o)).catch(o=>{be.error(Ar(t.error,o),{id:r,...n,...n==null?void 0:n.error})}),e};var wf=(e,t)=>{Bt({type:1,toast:{id:e,height:t}})},Cf=()=>{Bt({type:5,time:Date.now()})},xf=e=>{let{toasts:t,pausedAt:n}=vf(e);R.useEffect(()=>{if(n)return;let s=Date.now(),i=t.map(a=>{if(a.duration===1/0)return;let c=(a.duration||0)+a.pauseDuration-(s-a.createdAt);if(c<0){a.visible&&be.dismiss(a.id);return}return setTimeout(()=>be.dismiss(a.id),c)});return()=>{i.forEach(a=>a&&clearTimeout(a))}},[t,n]);let r=R.useCallback(()=>{n&&Bt({type:6,time:Date.now()})},[n]),o=R.useCallback((s,i)=>{let{reverseOrder:a=!1,gutter:c=8,defaultPosition:l}=i||{},d=t.filter(g=>(g.position||l)===(s.position||l)&&g.height),h=d.findIndex(g=>g.id===s.id),p=d.filter((g,w)=>w<h&&g.visible).length;return d.filter(g=>g.visible).slice(...a?[p+1]:[0,p]).reduce((g,w)=>g+(w.height||0)+c,0)},[t]);return{toasts:t,handlers:{updateHeight:wf,startPause:Cf,endPause:r,calculateOffset:o}}},Ef=Qe`
|
|
32
|
+
`):"",this.name="UnsubscriptionError",this.errors=n}});function Do(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Vr=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=Oo(i),c=a.next();!c.done;c=a.next()){var l=c.value;l.remove(this)}}catch(m){t={error:m}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else i.remove(this);var d=this.initialTeardown;if(ze(d))try{d()}catch(m){s=m instanceof po?m.errors:[m]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var p=Oo(h),g=p.next();!g.done;g=p.next()){var w=g.value;try{pi(w)}catch(m){s=s??[],m instanceof po?s=Tr(Tr([],jo(s)),jo(m.errors)):s.push(m)}}}catch(m){r={error:m}}finally{try{g&&!g.done&&(o=p.return)&&o.call(p)}finally{if(r)throw r.error}}}if(s)throw new po(s)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)pi(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)&&Do(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Do(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),uc=Vr.EMPTY;function dc(e){return e instanceof Vr||e&&"closed"in e&&ze(e.remove)&&ze(e.add)&&ze(e.unsubscribe)}function pi(e){ze(e)?e():e.unsubscribe()}var Ud={Promise:void 0},Wd={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,Tr([e,t],jo(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Hd(e){Wd.setTimeout(function(){throw e})}function mi(){}function yr(e){e()}var fc=function(e){Fn(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,dc(n)&&n.add(r)):r.destination=zd,r}return t.create=function(n,r,o){return new Lo(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}(Vr),Vd=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){Xn(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){Xn(r)}else Xn(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Xn(n)}},e}(),Lo=function(e){Fn(t,e);function t(n,r,o){var s=e.call(this)||this,i;return ze(n)||!n?i={next:n??void 0,error:r??void 0,complete:o??void 0}:i=n,s.destination=new Vd(i),s}return t}(fc);function Xn(e){Hd(e)}function qd(e){throw e}var zd={closed:!0,next:mi,error:qd,complete:mi},Gd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Qd(e){return e}function Kd(e){return e.length===0?Qd:e.length===1?e[0]:function(n){return e.reduce(function(r,o){return o(r)},n)}}var gi=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=Zd(t)?t:new Lo(t,n,r);return yr(function(){var i=o,a=i.operator,c=i.source;s.add(a?a.call(s,c):c?o._subscribe(s):o._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=yi(n),new n(function(o,s){var i=new Lo({next:function(a){try{t(a)}catch(c){s(c),i.unsubscribe()}},error:s,complete:o});r.subscribe(i)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[Gd]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Kd(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=yi(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 yi(e){var t;return(t=e??Ud.Promise)!==null&&t!==void 0?t:Promise}function Yd(e){return e&&ze(e.next)&&ze(e.error)&&ze(e.complete)}function Zd(e){return e&&e instanceof fc||Yd(e)&&dc(e)}var Xd=lc(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),hc=function(e){Fn(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 vi(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new Xd},t.prototype.next=function(n){var r=this;yr(function(){var o,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var i=Oo(r.currentObservers),a=i.next();!a.done;a=i.next()){var c=a.value;c.next(n)}}catch(l){o={error:l}}finally{try{a&&!a.done&&(s=i.return)&&s.call(i)}finally{if(o)throw o.error}}}})},t.prototype.error=function(n){var r=this;yr(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;yr(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?uc:(this.currentObservers=null,a.push(n),new Vr(function(){r.currentObservers=null,Do(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 gi;return n.source=this,n},t.create=function(n,r){return new vi(n,r)},t}(gi),vi=function(e){Fn(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:uc},t}(hc),Jd=function(e){Fn(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}(hc);const ef=e=>{const{fontsLoaded:t}=ac(e.fonts);ic(e.styleSheet);const n=()=>{const r=new Jd(!0);window[To]=r};R.useEffect(()=>{t&&window[To].next(!1)},[t]),R.useEffect(()=>{n()},[])},tf=()=>{const e=window[To];return Ma(e,e.getValue()??void 0)},ko="theme",bi=()=>document.documentElement.dataset[ko]==="dark"?"dark":"light",nf=()=>{const[e,t]=R.useState(bi());return R.useEffect(()=>{const n=document.documentElement,r=()=>t(bi),o=new MutationObserver(s=>{for(const i of s)i.type==="attributes"&&i.attributeName===`data-${ko}`&&r()});return o.observe(n,{attributes:!0,attributeFilter:[`data-${ko}`]}),r(),()=>{o.disconnect()}},[]),e},rf=e=>e!==void 0,of=e=>e!==!0;let sf={data:""},af=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||sf},cf=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,lf=/\/\*[^]*?\*\/| +/g,wi=/\n+/g,tt=(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"?tt(i,s):s+"{"+tt(i,s[1]=="k"?"":t)+"}":typeof i=="object"?r+=tt(i,t?t.replace(/([^,])+/g,a=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,a):a?a+" "+c:c)):s):i!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=tt.p?tt.p(s,i):s+":"+i+";")}return n+(t&&o?t+"{"+o+"}":o)+r},We={},pc=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+pc(e[n]);return t}return e},uf=(e,t,n,r,o)=>{let s=pc(e),i=We[s]||(We[s]=(c=>{let l=0,d=11;for(;l<c.length;)d=101*d+c.charCodeAt(l++)>>>0;return"go"+d})(s));if(!We[i]){let c=s!==e?e:(l=>{let d,h,p=[{}];for(;d=cf.exec(l.replace(lf,""));)d[4]?p.shift():d[3]?(h=d[3].replace(wi," ").trim(),p.unshift(p[0][h]=p[0][h]||{})):p[0][d[1]]=d[2].replace(wi," ").trim();return p[0]})(e);We[i]=tt(o?{["@keyframes "+i]:c}:c,n?"":"."+i)}let a=n&&We.g?We.g:null;return n&&(We.g=We[i]),((c,l,d,h)=>{h?l.data=l.data.replace(h,c):l.data.indexOf(c)===-1&&(l.data=d?c+l.data:l.data+c)})(We[i],t,r,a),i},df=(e,t,n)=>e.reduce((r,o,s)=>{let i=t[s];if(i&&i.call){let a=i(n),c=a&&a.props&&a.props.className||/^go/.test(a)&&a;i=c?"."+c:a&&typeof a=="object"?a.props?"":tt(a,""):a===!1?"":a}return r+o+(i??"")},"");function qr(e){let t=this||{},n=e.call?e(t.p):e;return uf(n.unshift?n.raw?df(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,af(t.target),t.g,t.o,t.k)}let mc,Io,No;qr.bind({g:1});let Qe=qr.bind({k:1});function ff(e,t,n,r){tt.p=t,mc=e,Io=n,No=r}function vt(e,t){let n=this||{};return function(){let r=arguments;function o(s,i){let a=Object.assign({},s),c=a.className||o.className;n.p=Object.assign({theme:Io&&Io()},a),n.o=/ *go\d+/.test(c),a.className=qr.apply(n,r)+(c?" "+c:"");let l=e;return e[0]&&(l=a.as||e,delete a.as),No&&l[0]&&No(a),mc(l,a)}return o}}var hf=e=>typeof e=="function",Ar=(e,t)=>hf(e)?e(t):e,pf=(()=>{let e=0;return()=>(++e).toString()})(),gc=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),mf=20,vr=new Map,gf=1e3,Ci=e=>{if(vr.has(e))return;let t=setTimeout(()=>{vr.delete(e),Bt({type:4,toastId:e})},gf);vr.set(e,t)},yf=e=>{let t=vr.get(e);t&&clearTimeout(t)},Mo=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,mf)};case 1:return t.toast.id&&yf(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)?Mo(e,{type:1,toast:n}):Mo(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?Ci(r):e.toasts.forEach(s=>{Ci(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}))}}},br=[],wr={toasts:[],pausedAt:void 0},Bt=e=>{wr=Mo(wr,e),br.forEach(t=>{t(wr)})},vf={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},bf=(e={})=>{let[t,n]=R.useState(wr);R.useEffect(()=>(br.push(n),()=>{let o=br.indexOf(n);o>-1&&br.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)||vf[o.type],style:{...e.style,...(i=e[o.type])==null?void 0:i.style,...o.style}}});return{...t,toasts:r}},wf=(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)||pf()}),Bn=e=>(t,n)=>{let r=wf(t,e,n);return Bt({type:2,toast:r}),r.id},be=(e,t)=>Bn("blank")(e,t);be.error=Bn("error");be.success=Bn("success");be.loading=Bn("loading");be.custom=Bn("custom");be.dismiss=e=>{Bt({type:3,toastId:e})};be.remove=e=>Bt({type:4,toastId:e});be.promise=(e,t,n)=>{let r=be.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(o=>(be.success(Ar(t.success,o),{id:r,...n,...n==null?void 0:n.success}),o)).catch(o=>{be.error(Ar(t.error,o),{id:r,...n,...n==null?void 0:n.error})}),e};var Cf=(e,t)=>{Bt({type:1,toast:{id:e,height:t}})},xf=()=>{Bt({type:5,time:Date.now()})},Ef=e=>{let{toasts:t,pausedAt:n}=bf(e);R.useEffect(()=>{if(n)return;let s=Date.now(),i=t.map(a=>{if(a.duration===1/0)return;let c=(a.duration||0)+a.pauseDuration-(s-a.createdAt);if(c<0){a.visible&&be.dismiss(a.id);return}return setTimeout(()=>be.dismiss(a.id),c)});return()=>{i.forEach(a=>a&&clearTimeout(a))}},[t,n]);let r=R.useCallback(()=>{n&&Bt({type:6,time:Date.now()})},[n]),o=R.useCallback((s,i)=>{let{reverseOrder:a=!1,gutter:c=8,defaultPosition:l}=i||{},d=t.filter(g=>(g.position||l)===(s.position||l)&&g.height),h=d.findIndex(g=>g.id===s.id),p=d.filter((g,w)=>w<h&&g.visible).length;return d.filter(g=>g.visible).slice(...a?[p+1]:[0,p]).reduce((g,w)=>g+(w.height||0)+c,0)},[t]);return{toasts:t,handlers:{updateHeight:Cf,startPause:xf,endPause:r,calculateOffset:o}}},Sf=Qe`
|
|
33
33
|
from {
|
|
34
34
|
transform: scale(0) rotate(45deg);
|
|
35
35
|
opacity: 0;
|
|
@@ -37,7 +37,7 @@ from {
|
|
|
37
37
|
to {
|
|
38
38
|
transform: scale(1) rotate(45deg);
|
|
39
39
|
opacity: 1;
|
|
40
|
-
}`,
|
|
40
|
+
}`,_f=Qe`
|
|
41
41
|
from {
|
|
42
42
|
transform: scale(0);
|
|
43
43
|
opacity: 0;
|
|
@@ -45,7 +45,7 @@ from {
|
|
|
45
45
|
to {
|
|
46
46
|
transform: scale(1);
|
|
47
47
|
opacity: 1;
|
|
48
|
-
}`,
|
|
48
|
+
}`,Rf=Qe`
|
|
49
49
|
from {
|
|
50
50
|
transform: scale(0) rotate(90deg);
|
|
51
51
|
opacity: 0;
|
|
@@ -53,7 +53,7 @@ from {
|
|
|
53
53
|
to {
|
|
54
54
|
transform: scale(1) rotate(90deg);
|
|
55
55
|
opacity: 1;
|
|
56
|
-
}`,
|
|
56
|
+
}`,Tf=vt("div")`
|
|
57
57
|
width: 20px;
|
|
58
58
|
opacity: 0;
|
|
59
59
|
height: 20px;
|
|
@@ -62,14 +62,14 @@ to {
|
|
|
62
62
|
position: relative;
|
|
63
63
|
transform: rotate(45deg);
|
|
64
64
|
|
|
65
|
-
animation: ${
|
|
65
|
+
animation: ${Sf} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
66
66
|
forwards;
|
|
67
67
|
animation-delay: 100ms;
|
|
68
68
|
|
|
69
69
|
&:after,
|
|
70
70
|
&:before {
|
|
71
71
|
content: '';
|
|
72
|
-
animation: ${
|
|
72
|
+
animation: ${_f} 0.15s ease-out forwards;
|
|
73
73
|
animation-delay: 150ms;
|
|
74
74
|
position: absolute;
|
|
75
75
|
border-radius: 3px;
|
|
@@ -82,18 +82,18 @@ to {
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
&:before {
|
|
85
|
-
animation: ${
|
|
85
|
+
animation: ${Rf} 0.15s ease-out forwards;
|
|
86
86
|
animation-delay: 180ms;
|
|
87
87
|
transform: rotate(90deg);
|
|
88
88
|
}
|
|
89
|
-
`,
|
|
89
|
+
`,Af=Qe`
|
|
90
90
|
from {
|
|
91
91
|
transform: rotate(0deg);
|
|
92
92
|
}
|
|
93
93
|
to {
|
|
94
94
|
transform: rotate(360deg);
|
|
95
95
|
}
|
|
96
|
-
`,
|
|
96
|
+
`,Pf=vt("div")`
|
|
97
97
|
width: 12px;
|
|
98
98
|
height: 12px;
|
|
99
99
|
box-sizing: border-box;
|
|
@@ -101,8 +101,8 @@ to {
|
|
|
101
101
|
border-radius: 100%;
|
|
102
102
|
border-color: ${e=>e.secondary||"#e0e0e0"};
|
|
103
103
|
border-right-color: ${e=>e.primary||"#616161"};
|
|
104
|
-
animation: ${
|
|
105
|
-
`,
|
|
104
|
+
animation: ${Af} 1s linear infinite;
|
|
105
|
+
`,Of=Qe`
|
|
106
106
|
from {
|
|
107
107
|
transform: scale(0) rotate(45deg);
|
|
108
108
|
opacity: 0;
|
|
@@ -110,7 +110,7 @@ from {
|
|
|
110
110
|
to {
|
|
111
111
|
transform: scale(1) rotate(45deg);
|
|
112
112
|
opacity: 1;
|
|
113
|
-
}`,
|
|
113
|
+
}`,jf=Qe`
|
|
114
114
|
0% {
|
|
115
115
|
height: 0;
|
|
116
116
|
width: 0;
|
|
@@ -124,7 +124,7 @@ to {
|
|
|
124
124
|
100% {
|
|
125
125
|
opacity: 1;
|
|
126
126
|
height: 10px;
|
|
127
|
-
}`,
|
|
127
|
+
}`,Df=vt("div")`
|
|
128
128
|
width: 20px;
|
|
129
129
|
opacity: 0;
|
|
130
130
|
height: 20px;
|
|
@@ -133,13 +133,13 @@ to {
|
|
|
133
133
|
position: relative;
|
|
134
134
|
transform: rotate(45deg);
|
|
135
135
|
|
|
136
|
-
animation: ${
|
|
136
|
+
animation: ${Of} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
137
137
|
forwards;
|
|
138
138
|
animation-delay: 100ms;
|
|
139
139
|
&:after {
|
|
140
140
|
content: '';
|
|
141
141
|
box-sizing: border-box;
|
|
142
|
-
animation: ${
|
|
142
|
+
animation: ${jf} 0.2s ease-out forwards;
|
|
143
143
|
opacity: 0;
|
|
144
144
|
animation-delay: 200ms;
|
|
145
145
|
position: absolute;
|
|
@@ -151,16 +151,16 @@ to {
|
|
|
151
151
|
height: 10px;
|
|
152
152
|
width: 6px;
|
|
153
153
|
}
|
|
154
|
-
`,Df=vt("div")`
|
|
155
|
-
position: absolute;
|
|
156
154
|
`,Lf=vt("div")`
|
|
155
|
+
position: absolute;
|
|
156
|
+
`,kf=vt("div")`
|
|
157
157
|
position: relative;
|
|
158
158
|
display: flex;
|
|
159
159
|
justify-content: center;
|
|
160
160
|
align-items: center;
|
|
161
161
|
min-width: 20px;
|
|
162
162
|
min-height: 20px;
|
|
163
|
-
`,
|
|
163
|
+
`,If=Qe`
|
|
164
164
|
from {
|
|
165
165
|
transform: scale(0.6);
|
|
166
166
|
opacity: 0.4;
|
|
@@ -168,20 +168,20 @@ from {
|
|
|
168
168
|
to {
|
|
169
169
|
transform: scale(1);
|
|
170
170
|
opacity: 1;
|
|
171
|
-
}`,
|
|
171
|
+
}`,Nf=vt("div")`
|
|
172
172
|
position: relative;
|
|
173
173
|
transform: scale(0.6);
|
|
174
174
|
opacity: 0.4;
|
|
175
175
|
min-width: 20px;
|
|
176
|
-
animation: ${
|
|
176
|
+
animation: ${If} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
177
177
|
forwards;
|
|
178
|
-
`,
|
|
178
|
+
`,Mf=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?f.createElement(Nf,null,t):t:n==="blank"?null:f.createElement(kf,null,f.createElement(Pf,{...r}),n!=="loading"&&f.createElement(Lf,null,n==="error"?f.createElement(Tf,{...r}):f.createElement(Df,{...r})))},$f=e=>`
|
|
179
179
|
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
|
|
180
180
|
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
|
181
|
-
|
|
181
|
+
`,Ff=e=>`
|
|
182
182
|
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
|
183
183
|
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
|
|
184
|
-
`,
|
|
184
|
+
`,Bf="0%{opacity:0;} 100%{opacity:1;}",Uf="0%{opacity:1;} 100%{opacity:0;}",Wf=vt("div")`
|
|
185
185
|
display: flex;
|
|
186
186
|
align-items: center;
|
|
187
187
|
background: #fff;
|
|
@@ -193,20 +193,20 @@ to {
|
|
|
193
193
|
pointer-events: auto;
|
|
194
194
|
padding: 8px 10px;
|
|
195
195
|
border-radius: 8px;
|
|
196
|
-
`,
|
|
196
|
+
`,Hf=vt("div")`
|
|
197
197
|
display: flex;
|
|
198
198
|
justify-content: center;
|
|
199
199
|
margin: 4px 10px;
|
|
200
200
|
color: inherit;
|
|
201
201
|
flex: 1 1 auto;
|
|
202
202
|
white-space: pre-line;
|
|
203
|
-
`,
|
|
203
|
+
`,Vf=(e,t)=>{let n=e.includes("top")?1:-1,[r,o]=gc()?[Bf,Uf]:[$f(n),Ff(n)];return{animation:t?`${Qe(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Qe(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},qf=f.memo(({toast:e,position:t,style:n,children:r})=>{let o=e.height?Vf(e.position||t||"top-center",e.visible):{opacity:0},s=f.createElement(Mf,{toast:e}),i=f.createElement(Hf,{...e.ariaProps},Ar(e.message,e));return f.createElement(Wf,{className:e.className,style:{...o,...n,...e.style}},typeof r=="function"?r({icon:s,message:i}):f.createElement(f.Fragment,null,s,i))});ff(f.createElement);var zf=({id:e,className:t,style:n,onHeightUpdate:r,children:o})=>{let s=f.useCallback(i=>{if(i){let a=()=>{let c=i.getBoundingClientRect().height;r(e,c)};a(),new MutationObserver(a).observe(i,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return f.createElement("div",{ref:s,className:t,style:n},o)},Gf=(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:gc()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}},Qf=qr`
|
|
204
204
|
z-index: 9999;
|
|
205
205
|
> * {
|
|
206
206
|
pointer-events: auto;
|
|
207
207
|
}
|
|
208
|
-
`,Jn=16,Qf=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,containerStyle:s,containerClassName:i})=>{let{toasts:a,handlers:c}=xf(n);return f.createElement("div",{style:{position:"fixed",zIndex:9999,top:Jn,left:Jn,right:Jn,bottom:Jn,pointerEvents:"none",...s},className:i,onMouseEnter:c.startPause,onMouseLeave:c.endPause},a.map(l=>{let d=l.position||t,h=c.calculateOffset(l,{reverseOrder:e,gutter:r,defaultPosition:t}),p=zf(d,h);return f.createElement(qf,{id:l.id,key:l.id,onHeightUpdate:c.updateHeight,className:l.visible?Gf:"",style:p},l.type==="custom"?Ar(l.message,l):o?o(l):f.createElement(Vf,{toast:l,position:d}))}))},xi=be;const ms=()=>({notify:R.useCallback((t,n,r)=>{const o={style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}};n==="warning"||n==="info"?xi(t,{...o,icon:n==="warning"?"⚠️":"ℹ️"}):xi[n](t,o),r&&console.error(r)},[])});var mn=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(){}},Nt=typeof window>"u"||"Deno"in globalThis;function ue(){}function Kf(e,t){return typeof e=="function"?e(t):e}function $o(e){return typeof e=="number"&&e>=0&&e!==1/0}function gc(e,t){return Math.max(e+(t||0)-Date.now(),0)}function pt(e,t){return typeof e=="function"?e(t):e}function _e(e,t){return typeof e=="function"?e(t):e}function Ei(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==gs(i,t.options))return!1}else if(!Tn(t.queryKey,i))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function Si(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Mt(t.options.mutationKey)!==Mt(s))return!1}else if(!Tn(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function gs(e,t){return((t==null?void 0:t.queryKeyHashFn)||Mt)(e)}function Mt(e){return JSON.stringify(e,(t,n)=>Bo(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Tn(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Tn(e[n],t[n])):!1}function Fo(e,t){if(e===t)return e;const n=_i(e)&&_i(t);if(n||Bo(e)&&Bo(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,a=n?[]:{};let c=0;for(let l=0;l<i;l++){const d=n?l:s[l];(!n&&r.includes(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,c++):(a[d]=Fo(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&c++)}return o===i&&c===o?e:a}return t}function Pr(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 _i(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Bo(e){if(!Ri(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Ri(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Ri(e){return Object.prototype.toString.call(e)==="[object Object]"}function Yf(e){return new Promise(t=>{setTimeout(t,e)})}function Uo(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){try{return Fo(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 Fo(e,t)}return t}function Zf(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Xf(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Or=Symbol();function yc(e,t){return e.queryFn===Or&&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===Or?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function vc(e,t){return typeof e=="function"?e(...t):!!e}var Tt,nt,Xt,xa,Jf=(xa=class extends mn{constructor(){super();L(this,Tt);L(this,nt);L(this,Xt);O(this,Xt,t=>{if(!Nt&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){b(this,nt)||this.setEventListener(b(this,Xt))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,nt))==null||t.call(this),O(this,nt,void 0))}setEventListener(t){var n;O(this,Xt,t),(n=b(this,nt))==null||n.call(this),O(this,nt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){b(this,Tt)!==t&&(O(this,Tt,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof b(this,Tt)=="boolean"?b(this,Tt):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Tt=new WeakMap,nt=new WeakMap,Xt=new WeakMap,xa),ys=new Jf,Jt,rt,en,Ea,eh=(Ea=class extends mn{constructor(){super();L(this,Jt,!0);L(this,rt);L(this,en);O(this,en,t=>{if(!Nt&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){b(this,rt)||this.setEventListener(b(this,en))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,rt))==null||t.call(this),O(this,rt,void 0))}setEventListener(t){var n;O(this,en,t),(n=b(this,rt))==null||n.call(this),O(this,rt,t(this.setOnline.bind(this)))}setOnline(t){b(this,Jt)!==t&&(O(this,Jt,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return b(this,Jt)}},Jt=new WeakMap,rt=new WeakMap,en=new WeakMap,Ea),jr=new eh;function Wo(){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 th(e){return Math.min(1e3*2**e,3e4)}function bc(e){return(e??"online")==="online"?jr.isOnline():!0}var wc=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function mo(e){return e instanceof wc}function Cc(e){let t=!1,n=0,r=!1,o;const s=Wo(),i=m=>{var y;r||(p(new wc(m)),(y=e.abort)==null||y.call(e))},a=()=>{t=!0},c=()=>{t=!1},l=()=>ys.isFocused()&&(e.networkMode==="always"||jr.isOnline())&&e.canRun(),d=()=>bc(e.networkMode)&&e.canRun(),h=m=>{var y;r||(r=!0,(y=e.onSuccess)==null||y.call(e,m),o==null||o(),s.resolve(m))},p=m=>{var y;r||(r=!0,(y=e.onError)==null||y.call(e,m),o==null||o(),s.reject(m))},g=()=>new Promise(m=>{var y;o=C=>{(r||l())&&m(C)},(y=e.onPause)==null||y.call(e)}).then(()=>{var m;o=void 0,r||(m=e.onContinue)==null||m.call(e)}),w=()=>{if(r)return;let m;const y=n===0?e.initialPromise:void 0;try{m=y??e.fn()}catch(C){m=Promise.reject(C)}Promise.resolve(m).then(h).catch(C=>{var P;if(r)return;const x=e.retry??(Nt?0:3),S=e.retryDelay??th,E=typeof S=="function"?S(n,C):S,_=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,C);if(t||!_){p(C);return}n++,(P=e.onFail)==null||P.call(e,n,C),Yf(E).then(()=>l()?void 0:g()).then(()=>{t?p(C):w()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:a,continueRetry:c,canStart:d,start:()=>(d()?w():g().then(w),s)}}var nh=e=>setTimeout(e,0);function rh(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=nh;const s=a=>{t?e.push(a):o(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||i()}return c},batchCalls:a=>(...c)=>{s(()=>{a(...c)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var oe=rh(),At,Sa,xc=(Sa=class{constructor(){L(this,At)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),$o(this.gcTime)&&O(this,At,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Nt?1/0:5*60*1e3))}clearGcTimeout(){b(this,At)&&(clearTimeout(b(this,At)),O(this,At,void 0))}},At=new WeakMap,Sa),tn,nn,xe,Pt,se,Dn,Ot,Ee,He,_a,oh=(_a=class extends xc{constructor(t){super();L(this,Ee);L(this,tn);L(this,nn);L(this,xe);L(this,Pt);L(this,se);L(this,Dn);L(this,Ot);O(this,Ot,!1),O(this,Dn,t.defaultOptions),this.setOptions(t.options),this.observers=[],O(this,Pt,t.client),O(this,xe,b(this,Pt).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,O(this,tn,sh(this.options)),this.state=t.state??b(this,tn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=b(this,se))==null?void 0:t.promise}setOptions(t){this.options={...b(this,Dn),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&b(this,xe).remove(this)}setData(t,n){const r=Uo(this.state.data,t,this.options);return $(this,Ee,He).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){$(this,Ee,He).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=b(this,se))==null?void 0:r.promise;return(o=b(this,se))==null||o.cancel(t),n?n.then(ue).catch(ue):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(b(this,tn))}isActive(){return this.observers.some(t=>_e(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Or||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>pt(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:!gc(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=b(this,se))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=b(this,se))==null||n.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(n=>n!==t),this.observers.length||(b(this,se)&&(b(this,Ot)?b(this,se).cancel({revert:!0}):b(this,se).cancelRetry()),this.scheduleGc()),b(this,xe).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||$(this,Ee,He).call(this,{type:"invalidate"})}fetch(t,n){var l,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(b(this,se))return b(this,se).continueRetry(),b(this,se).promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(g=>g.options.queryFn);p&&this.setOptions(p.options)}Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']");const r=new AbortController,o=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(O(this,Ot,!0),r.signal)})},s=()=>{const p=yc(this.options,n),w=(()=>{const m={client:b(this,Pt),queryKey:this.queryKey,meta:this.meta};return o(m),m})();return O(this,Ot,!1),this.options.persister?this.options.persister(p,w,this):p(w)},a=(()=>{const p={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:b(this,Pt),state:this.state,fetchFn:s};return o(p),p})();(l=this.options.behavior)==null||l.onFetch(a,this),O(this,nn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&$(this,Ee,He).call(this,{type:"fetch",meta:(h=a.fetchOptions)==null?void 0:h.meta});const c=p=>{var g,w,m,y;mo(p)&&p.silent||$(this,Ee,He).call(this,{type:"error",error:p}),mo(p)||((w=(g=b(this,xe).config).onError)==null||w.call(g,p,this),(y=(m=b(this,xe).config).onSettled)==null||y.call(m,this.state.data,p,this)),this.scheduleGc()};return O(this,se,Cc({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:p=>{var g,w,m,y;if(p===void 0){console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(C){c(C);return}(w=(g=b(this,xe).config).onSuccess)==null||w.call(g,p,this),(y=(m=b(this,xe).config).onSettled)==null||y.call(m,p,this.state.error,this),this.scheduleGc()},onError:c,onFail:(p,g)=>{$(this,Ee,He).call(this,{type:"failed",failureCount:p,error:g})},onPause:()=>{$(this,Ee,He).call(this,{type:"pause"})},onContinue:()=>{$(this,Ee,He).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),b(this,se).start()}},tn=new WeakMap,nn=new WeakMap,xe=new WeakMap,Pt=new WeakMap,se=new WeakMap,Dn=new WeakMap,Ot=new WeakMap,Ee=new WeakSet,He=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,...Ec(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 mo(o)&&o.revert&&b(this,nn)?{...b(this,nn),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),oe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),b(this,xe).notify({query:this,type:"updated",action:t})})},_a);function Ec(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:bc(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function sh(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 je,Ra,ih=(Ra=class extends mn{constructor(t={}){super();L(this,je);this.config=t,O(this,je,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??gs(o,n);let i=this.get(s);return i||(i=new oh({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){b(this,je).has(t.queryHash)||(b(this,je).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=b(this,je).get(t.queryHash);n&&(t.destroy(),n===t&&b(this,je).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){oe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return b(this,je).get(t)}getAll(){return[...b(this,je).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ei(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Ei(t,r)):n}notify(t){oe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){oe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){oe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},je=new WeakMap,Ra),De,ce,jt,Le,Xe,Ta,ah=(Ta=class extends xc{constructor(t){super();L(this,Le);L(this,De);L(this,ce);L(this,jt);this.mutationId=t.mutationId,O(this,ce,t.mutationCache),O(this,De,[]),this.state=t.state||Sc(),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,De).includes(t)||(b(this,De).push(t),this.clearGcTimeout(),b(this,ce).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){O(this,De,b(this,De).filter(n=>n!==t)),this.scheduleGc(),b(this,ce).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){b(this,De).length||(this.state.status==="pending"?this.scheduleGc():b(this,ce).remove(this))}continue(){var t;return((t=b(this,jt))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,i,a,c,l,d,h,p,g,w,m,y,C,x,S,E,_,P,A,M;const n=()=>{$(this,Le,Xe).call(this,{type:"continue"})};O(this,jt,Cc({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(I,k)=>{$(this,Le,Xe).call(this,{type:"failed",failureCount:I,error:k})},onPause:()=>{$(this,Le,Xe).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>b(this,ce).canRun(this)}));const r=this.state.status==="pending",o=!b(this,jt).canStart();try{if(r)n();else{$(this,Le,Xe).call(this,{type:"pending",variables:t,isPaused:o}),await((i=(s=b(this,ce).config).onMutate)==null?void 0:i.call(s,t,this));const k=await((c=(a=this.options).onMutate)==null?void 0:c.call(a,t));k!==this.state.context&&$(this,Le,Xe).call(this,{type:"pending",context:k,variables:t,isPaused:o})}const I=await b(this,jt).start();return await((d=(l=b(this,ce).config).onSuccess)==null?void 0:d.call(l,I,t,this.state.context,this)),await((p=(h=this.options).onSuccess)==null?void 0:p.call(h,I,t,this.state.context)),await((w=(g=b(this,ce).config).onSettled)==null?void 0:w.call(g,I,null,this.state.variables,this.state.context,this)),await((y=(m=this.options).onSettled)==null?void 0:y.call(m,I,null,t,this.state.context)),$(this,Le,Xe).call(this,{type:"success",data:I}),I}catch(I){try{throw await((x=(C=b(this,ce).config).onError)==null?void 0:x.call(C,I,t,this.state.context,this)),await((E=(S=this.options).onError)==null?void 0:E.call(S,I,t,this.state.context)),await((P=(_=b(this,ce).config).onSettled)==null?void 0:P.call(_,void 0,I,this.state.variables,this.state.context,this)),await((M=(A=this.options).onSettled)==null?void 0:M.call(A,void 0,I,t,this.state.context)),I}finally{$(this,Le,Xe).call(this,{type:"error",error:I})}}finally{b(this,ce).runNext(this)}}},De=new WeakMap,ce=new WeakMap,jt=new WeakMap,Le=new WeakSet,Xe=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),oe.batch(()=>{b(this,De).forEach(r=>{r.onMutationUpdate(t)}),b(this,ce).notify({mutation:this,type:"updated",action:t})})},Ta);function Sc(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ve,Se,Ln,Aa,ch=(Aa=class extends mn{constructor(t={}){super();L(this,Ve);L(this,Se);L(this,Ln);this.config=t,O(this,Ve,new Set),O(this,Se,new Map),O(this,Ln,0)}build(t,n,r){const o=new ah({mutationCache:this,mutationId:++Yn(this,Ln)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){b(this,Ve).add(t);const n=er(t);if(typeof n=="string"){const r=b(this,Se).get(n);r?r.push(t):b(this,Se).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(b(this,Ve).delete(t)){const n=er(t);if(typeof n=="string"){const r=b(this,Se).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&b(this,Se).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=er(t);if(typeof n=="string"){const r=b(this,Se).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=er(t);if(typeof n=="string"){const o=(r=b(this,Se).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(){oe.batch(()=>{b(this,Ve).forEach(t=>{this.notify({type:"removed",mutation:t})}),b(this,Ve).clear(),b(this,Se).clear()})}getAll(){return Array.from(b(this,Ve))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Si(n,r))}findAll(t={}){return this.getAll().filter(n=>Si(t,n))}notify(t){oe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return oe.batch(()=>Promise.all(t.map(n=>n.continue().catch(ue))))}},Ve=new WeakMap,Se=new WeakMap,Ln=new WeakMap,Aa);function er(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Ti(e){return{onFetch:(t,n)=>{var d,h,p,g,w;const r=t.options,o=(p=(h=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:p.direction,s=((g=t.state.data)==null?void 0:g.pages)||[],i=((w=t.state.data)==null?void 0:w.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let m=!1;const y=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},C=yc(t.options,t.fetchOptions),x=async(S,E,_)=>{if(m)return Promise.reject();if(E==null&&S.pages.length)return Promise.resolve(S);const A=(()=>{const V={client:t.client,queryKey:t.queryKey,pageParam:E,direction:_?"backward":"forward",meta:t.options.meta};return y(V),V})(),M=await C(A),{maxPages:I}=t.options,k=_?Xf:Zf;return{pages:k(S.pages,M,I),pageParams:k(S.pageParams,E,I)}};if(o&&s.length){const S=o==="backward",E=S?lh:Ai,_={pages:s,pageParams:i},P=E(r,_);a=await x(_,P,S)}else{const S=e??s.length;do{const E=c===0?i[0]??r.initialPageParam:Ai(r,a);if(c>0&&E==null)break;a=await x(a,E),c++}while(c<S)}return a};t.options.persister?t.fetchFn=()=>{var m,y;return(y=(m=t.options).persister)==null?void 0:y.call(m,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function Ai(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 lh(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 J,ot,st,rn,on,it,sn,an,Pa,uh=(Pa=class{constructor(e={}){L(this,J);L(this,ot);L(this,st);L(this,rn);L(this,on);L(this,it);L(this,sn);L(this,an);O(this,J,e.queryCache||new ih),O(this,ot,e.mutationCache||new ch),O(this,st,e.defaultOptions||{}),O(this,rn,new Map),O(this,on,new Map),O(this,it,0)}mount(){Yn(this,it)._++,b(this,it)===1&&(O(this,sn,ys.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,J).onFocus())})),O(this,an,jr.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,J).onOnline())})))}unmount(){var e,t;Yn(this,it)._--,b(this,it)===0&&((e=b(this,sn))==null||e.call(this),O(this,sn,void 0),(t=b(this,an))==null||t.call(this),O(this,an,void 0))}isFetching(e){return b(this,J).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return b(this,ot).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=b(this,J).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=b(this,J).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(pt(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return b(this,J).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=b(this,J).get(r.queryHash),s=o==null?void 0:o.state.data,i=Kf(t,s);if(i!==void 0)return b(this,J).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return oe.batch(()=>b(this,J).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=b(this,J).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=b(this,J);oe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=b(this,J);return oe.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=oe.batch(()=>b(this,J).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(ue).catch(ue)}invalidateQueries(e,t={}){return oe.batch(()=>(b(this,J).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=oe.batch(()=>b(this,J).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(ue)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(ue)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=b(this,J).build(this,t);return n.isStaleByTime(pt(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ue).catch(ue)}fetchInfiniteQuery(e){return e.behavior=Ti(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ue).catch(ue)}ensureInfiniteQueryData(e){return e.behavior=Ti(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return jr.isOnline()?b(this,ot).resumePausedMutations():Promise.resolve()}getQueryCache(){return b(this,J)}getMutationCache(){return b(this,ot)}getDefaultOptions(){return b(this,st)}setDefaultOptions(e){O(this,st,e)}setQueryDefaults(e,t){b(this,rn).set(Mt(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...b(this,rn).values()],n={};return t.forEach(r=>{Tn(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){b(this,on).set(Mt(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...b(this,on).values()],n={};return t.forEach(r=>{Tn(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...b(this,st).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=gs(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===Or&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...b(this,st).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){b(this,J).clear(),b(this,ot).clear()}},J=new WeakMap,ot=new WeakMap,st=new WeakMap,rn=new WeakMap,on=new WeakMap,it=new WeakMap,sn=new WeakMap,an=new WeakMap,Pa),he,U,kn,le,Dt,cn,at,ct,In,ln,un,Lt,kt,lt,dn,z,En,Ho,Vo,qo,zo,Go,Qo,Ko,_c,Oa,dh=(Oa=class extends mn{constructor(t,n){super();L(this,z);L(this,he);L(this,U);L(this,kn);L(this,le);L(this,Dt);L(this,cn);L(this,at);L(this,ct);L(this,In);L(this,ln);L(this,un);L(this,Lt);L(this,kt);L(this,lt);L(this,dn,new Set);this.options=n,O(this,he,t),O(this,ct,null),O(this,at,Wo()),this.options.experimental_prefetchInRender||b(this,at).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(b(this,U).addObserver(this),Pi(b(this,U),this.options)?$(this,z,En).call(this):this.updateResult(),$(this,z,zo).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Yo(b(this,U),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Yo(b(this,U),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,$(this,z,Go).call(this),$(this,z,Qo).call(this),b(this,U).removeObserver(this)}setOptions(t){const n=this.options,r=b(this,U);if(this.options=b(this,he).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof _e(this.options.enabled,b(this,U))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");$(this,z,Ko).call(this),b(this,U).setOptions(this.options),n._defaulted&&!Pr(this.options,n)&&b(this,he).getQueryCache().notify({type:"observerOptionsUpdated",query:b(this,U),observer:this});const o=this.hasListeners();o&&Oi(b(this,U),r,this.options,n)&&$(this,z,En).call(this),this.updateResult(),o&&(b(this,U)!==r||_e(this.options.enabled,b(this,U))!==_e(n.enabled,b(this,U))||pt(this.options.staleTime,b(this,U))!==pt(n.staleTime,b(this,U)))&&$(this,z,Ho).call(this);const s=$(this,z,Vo).call(this);o&&(b(this,U)!==r||_e(this.options.enabled,b(this,U))!==_e(n.enabled,b(this,U))||s!==b(this,lt))&&$(this,z,qo).call(this,s)}getOptimisticResult(t){const n=b(this,he).getQueryCache().build(b(this,he),t),r=this.createResult(n,t);return hh(this,r)&&(O(this,le,r),O(this,cn,this.options),O(this,Dt,b(this,U).state)),r}getCurrentResult(){return b(this,le)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),Reflect.get(r,o))})}trackProp(t){b(this,dn).add(t)}getCurrentQuery(){return b(this,U)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=b(this,he).defaultQueryOptions(t),r=b(this,he).getQueryCache().build(b(this,he),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return $(this,z,En).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),b(this,le)))}createResult(t,n){var I;const r=b(this,U),o=this.options,s=b(this,le),i=b(this,Dt),a=b(this,cn),l=t!==r?t.state:b(this,kn),{state:d}=t;let h={...d},p=!1,g;if(n._optimisticResults){const k=this.hasListeners(),V=!k&&Pi(t,n),Q=k&&Oi(t,r,n,o);(V||Q)&&(h={...h,...Ec(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:w,errorUpdatedAt:m,status:y}=h;g=h.data;let C=!1;if(n.placeholderData!==void 0&&g===void 0&&y==="pending"){let k;s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(k=s.data,C=!0):k=typeof n.placeholderData=="function"?n.placeholderData((I=b(this,un))==null?void 0:I.state.data,b(this,un)):n.placeholderData,k!==void 0&&(y="success",g=Uo(s==null?void 0:s.data,k,n),p=!0)}if(n.select&&g!==void 0&&!C)if(s&&g===(i==null?void 0:i.data)&&n.select===b(this,In))g=b(this,ln);else try{O(this,In,n.select),g=n.select(g),g=Uo(s==null?void 0:s.data,g,n),O(this,ln,g),O(this,ct,null)}catch(k){O(this,ct,k)}b(this,ct)&&(w=b(this,ct),g=b(this,ln),m=Date.now(),y="error");const x=h.fetchStatus==="fetching",S=y==="pending",E=y==="error",_=S&&x,P=g!==void 0,M={status:y,fetchStatus:h.fetchStatus,isPending:S,isSuccess:y==="success",isError:E,isInitialLoading:_,isLoading:_,data:g,dataUpdatedAt:h.dataUpdatedAt,error:w,errorUpdatedAt:m,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>l.dataUpdateCount||h.errorUpdateCount>l.errorUpdateCount,isFetching:x,isRefetching:x&&!S,isLoadingError:E&&!P,isPaused:h.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:E&&P,isStale:vs(t,n),refetch:this.refetch,promise:b(this,at)};if(this.options.experimental_prefetchInRender){const k=H=>{M.status==="error"?H.reject(M.error):M.data!==void 0&&H.resolve(M.data)},V=()=>{const H=O(this,at,M.promise=Wo());k(H)},Q=b(this,at);switch(Q.status){case"pending":t.queryHash===r.queryHash&&k(Q);break;case"fulfilled":(M.status==="error"||M.data!==Q.value)&&V();break;case"rejected":(M.status!=="error"||M.error!==Q.reason)&&V();break}}return M}updateResult(){const t=b(this,le),n=this.createResult(b(this,U),this.options);if(O(this,Dt,b(this,U).state),O(this,cn,this.options),b(this,Dt).data!==void 0&&O(this,un,b(this,U)),Pr(n,t))return;O(this,le,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!b(this,dn).size)return!0;const i=new Set(s??b(this,dn));return this.options.throwOnError&&i.add("error"),Object.keys(b(this,le)).some(a=>{const c=a;return b(this,le)[c]!==t[c]&&i.has(c)})};$(this,z,_c).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&$(this,z,zo).call(this)}},he=new WeakMap,U=new WeakMap,kn=new WeakMap,le=new WeakMap,Dt=new WeakMap,cn=new WeakMap,at=new WeakMap,ct=new WeakMap,In=new WeakMap,ln=new WeakMap,un=new WeakMap,Lt=new WeakMap,kt=new WeakMap,lt=new WeakMap,dn=new WeakMap,z=new WeakSet,En=function(t){$(this,z,Ko).call(this);let n=b(this,U).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(ue)),n},Ho=function(){$(this,z,Go).call(this);const t=pt(this.options.staleTime,b(this,U));if(Nt||b(this,le).isStale||!$o(t))return;const r=gc(b(this,le).dataUpdatedAt,t)+1;O(this,Lt,setTimeout(()=>{b(this,le).isStale||this.updateResult()},r))},Vo=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(b(this,U)):this.options.refetchInterval)??!1},qo=function(t){$(this,z,Qo).call(this),O(this,lt,t),!(Nt||_e(this.options.enabled,b(this,U))===!1||!$o(b(this,lt))||b(this,lt)===0)&&O(this,kt,setInterval(()=>{(this.options.refetchIntervalInBackground||ys.isFocused())&&$(this,z,En).call(this)},b(this,lt)))},zo=function(){$(this,z,Ho).call(this),$(this,z,qo).call(this,$(this,z,Vo).call(this))},Go=function(){b(this,Lt)&&(clearTimeout(b(this,Lt)),O(this,Lt,void 0))},Qo=function(){b(this,kt)&&(clearInterval(b(this,kt)),O(this,kt,void 0))},Ko=function(){const t=b(this,he).getQueryCache().build(b(this,he),this.options);if(t===b(this,U))return;const n=b(this,U);O(this,U,t),O(this,kn,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},_c=function(t){oe.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(b(this,le))}),b(this,he).getQueryCache().notify({query:b(this,U),type:"observerResultsUpdated"})})},Oa);function fh(e,t){return _e(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Pi(e,t){return fh(e,t)||e.state.data!==void 0&&Yo(e,t,t.refetchOnMount)}function Yo(e,t,n){if(_e(t.enabled,e)!==!1&&pt(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&vs(e,t)}return!1}function Oi(e,t,n,r){return(e!==t||_e(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&vs(e,n)}function vs(e,t){return _e(t.enabled,e)!==!1&&e.isStaleByTime(pt(t.staleTime,e))}function hh(e,t){return!Pr(e.getCurrentResult(),t)}var ut,dt,pe,qe,Ge,Cr,Zo,ja,ph=(ja=class extends mn{constructor(n,r){super();L(this,Ge);L(this,ut);L(this,dt);L(this,pe);L(this,qe);O(this,ut,n),this.setOptions(r),this.bindMethods(),$(this,Ge,Cr).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=b(this,ut).defaultMutationOptions(n),Pr(this.options,r)||b(this,ut).getMutationCache().notify({type:"observerOptionsUpdated",mutation:b(this,pe),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Mt(r.mutationKey)!==Mt(this.options.mutationKey)?this.reset():((o=b(this,pe))==null?void 0:o.state.status)==="pending"&&b(this,pe).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=b(this,pe))==null||n.removeObserver(this)}onMutationUpdate(n){$(this,Ge,Cr).call(this),$(this,Ge,Zo).call(this,n)}getCurrentResult(){return b(this,dt)}reset(){var n;(n=b(this,pe))==null||n.removeObserver(this),O(this,pe,void 0),$(this,Ge,Cr).call(this),$(this,Ge,Zo).call(this)}mutate(n,r){var o;return O(this,qe,r),(o=b(this,pe))==null||o.removeObserver(this),O(this,pe,b(this,ut).getMutationCache().build(b(this,ut),this.options)),b(this,pe).addObserver(this),b(this,pe).execute(n)}},ut=new WeakMap,dt=new WeakMap,pe=new WeakMap,qe=new WeakMap,Ge=new WeakSet,Cr=function(){var r;const n=((r=b(this,pe))==null?void 0:r.state)??Sc();O(this,dt,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Zo=function(n){oe.batch(()=>{var r,o,s,i,a,c,l,d;if(b(this,qe)&&this.hasListeners()){const h=b(this,dt).variables,p=b(this,dt).context;(n==null?void 0:n.type)==="success"?((o=(r=b(this,qe)).onSuccess)==null||o.call(r,n.data,h,p),(i=(s=b(this,qe)).onSettled)==null||i.call(s,n.data,null,h,p)):(n==null?void 0:n.type)==="error"&&((c=(a=b(this,qe)).onError)==null||c.call(a,n.error,h,p),(d=(l=b(this,qe)).onSettled)==null||d.call(l,void 0,n.error,h,p))}this.listeners.forEach(h=>{h(b(this,dt))})})},ja),Rc=f.createContext(void 0),bs=e=>{const t=f.useContext(Rc);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},mh=({client:e,children:t})=>(f.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(Rc.Provider,{value:e,children:t})),Tc=f.createContext(!1),gh=()=>f.useContext(Tc);Tc.Provider;function yh(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var vh=f.createContext(yh()),bh=()=>f.useContext(vh),wh=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Ch=e=>{f.useEffect(()=>{e.clearReset()},[e])},xh=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||vc(n,[e.error,r])),Eh=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))}},Sh=(e,t)=>e.isLoading&&e.isFetching&&!t,_h=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,ji=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Rh(e,t,n){var h,p,g,w,m;if(typeof e!="object"||Array.isArray(e))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=gh(),o=bh(),s=bs(),i=s.defaultQueryOptions(e);(p=(h=s.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||p.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",Eh(i),wh(i,o),Ch(o);const a=!s.getQueryCache().get(i.queryHash),[c]=f.useState(()=>new t(s,i)),l=c.getOptimisticResult(i),d=!r&&e.subscribed!==!1;if(f.useSyncExternalStore(f.useCallback(y=>{const C=d?c.subscribe(oe.batchCalls(y)):ue;return c.updateResult(),C},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),f.useEffect(()=>{c.setOptions(i)},[i,c]),_h(i,l))throw ji(i,c,o);if(xh({result:l,errorResetBoundary:o,throwOnError:i.throwOnError,query:s.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw l.error;if((w=(g=s.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||w.call(g,i,l),i.experimental_prefetchInRender&&!Nt&&Sh(l,r)){const y=a?ji(i,c,o):(m=s.getQueryCache().get(i.queryHash))==null?void 0:m.promise;y==null||y.catch(ue).finally(()=>{c.updateResult()})}return i.notifyOnChangeProps?l:c.trackResult(l)}function Di(e,t){return Rh(e,dh)}function tr(e,t){const n=bs(),[r]=f.useState(()=>new ph(n,e));f.useEffect(()=>{r.setOptions(e)},[r,e]);const o=f.useSyncExternalStore(f.useCallback(i=>r.subscribe(oe.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=f.useCallback((i,a)=>{r.mutate(i,a).catch(ue)},[r]);if(o.error&&vc(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}const nr={STALE_TIME:1e3*60*5,GC_TIME:1e3*60*10,RETRY_COUNT:1,RETRY_DELAY:1e3},Li={refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,staleTime:nr.STALE_TIME,gcTime:nr.GC_TIME,retry:nr.RETRY_COUNT,retryDelay:nr.RETRY_DELAY,enable:!0},rr=e=>e instanceof Error?e.message:String(e),Ac=(e,t,n)=>{const r=bs(),{notify:o}=ms(),{createFn:s,readFn:i,readByIdFn:a,updateFn:c,deleteFn:l,partialUpdateFn:d}=n,h=()=>{r.invalidateQueries({queryKey:[e]})},p=(E,_,P,A)=>o(A!=null&&A.overrideSuccessMessage?A==null?void 0:A.overrideSuccessMessage(E,_):P,"success"),g=(E,_,P,A)=>o(A!=null&&A.overrideErrorMessage?A==null?void 0:A.overrideErrorMessage(E,_):P,"error");return{useCreate:E=>tr({mutationFn:_=>s(_),onSuccess:_=>{h(),p(t,_,`${t} created successfully`,E)},onError:_=>{g(t,_,`Error creating ${t}: ${rr(_)}`,E)}}),useReadQuery:E=>Di({queryKey:[e],queryFn:i,...Li,...E}),useReadByIdQuery:(E,_)=>Di({queryKey:[e,E],queryFn:()=>a(E),...Li,enabled:!!E,..._}),useUpdate:E=>tr({mutationFn:({id:_,data:P})=>c(_,P),onSuccess:_=>{h(),p(t,_,`${t} updated successfully`,E)},onError:_=>{g(t,_,`Error updating ${t}: ${rr(_)}`,E)}}),usePartialUpdate:E=>d&&tr({mutationFn:({id:_,data:P})=>d(_,P),onSuccess:_=>{h(),p(t,_,`${t} updated successfully`,E)},onError:_=>{g(t,_,`Error updating ${t}: ${rr(_)}`,E)}}),useDelete:E=>tr({mutationFn:_=>l(_),onSuccess:()=>{h(),p(t,null,`${t} deleted successfully`,E)},onError:_=>{g(t,_,`Error deleting ${t}: ${rr(_)}`,E)}}),invalidateQueries:h}},Th=(e,t)=>Ac(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())}),Ah={SINGLE_TENANT:"single-tenant"},Ph={COOKIE:"cookie"},go="tenant",ki="tenant",Ii="tenant",Oh=Ah.SINGLE_TENANT,jh=Ph.COOKIE,Dh={mode:Oh,clientSideMode:jh,tenantIDPProvisioningStrategy:"none"};class Lh{setTenant(t,n){const r=new URL(window.location.href);r.searchParams.set(ki,t.name),window.location.href=r.toString()}getCurrentTenantName(){const t=new URL(window.location.href);return new URLSearchParams(t.search).get(ki)}}class kh{setTenant(t,n){sessionStorage.setItem(Ii,t.name),window.location.reload()}getCurrentTenantName(){return sessionStorage.getItem(Ii)}}/*! js-cookie v3.0.5 | MIT */function or(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 Ih={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 Xo(e,t){function n(o,s,i){if(!(typeof document>"u")){i=or({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var c in i)i[c]&&(a+="; "+c,i[c]!==!0&&(a+="="+i[c].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+a}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],i={},a=0;a<s.length;a++){var c=s[a].split("="),l=c.slice(1).join("=");try{var d=decodeURIComponent(c[0]);if(i[d]=e.read(l,d),o===d)break}catch{}}return o?i[o]:i}}return Object.create({set:n,get:r,remove:function(o,s){n(o,"",or({},s,{expires:-1}))},withAttributes:function(o){return Xo(this.converter,or({},this.attributes,o))},withConverter:function(o){return Xo(or({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var yo=Xo(Ih,{path:"/"});class Nh{setTenant(t,n){t?yo.set(go,t.name):yo.remove(go),window.location.reload()}getCurrentTenantName(){return yo.get(go)}}class Mh{extractSubdomain(t){if(t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t))return"";const n=t.split(".");if(n.length<2||n.length===2||n[0]==="www"&&n.length===3)return"";const o=(n[0]==="www"?n.slice(1):n).slice(0,-2);return o.length>0?o.join("."):""}getBaseDomain(t){const n=t.split(".");return t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t)||n.length<=2?t:n.slice(-2).join(".")}setTenant(t,n){var l;const r=(l=n.urlPatterns)==null?void 0:l.find(d=>d.patternType==="subdomain"&&d.tenantId===t.id&&d.isActive);if(!r)throw new Error(`No active subdomain pattern found for tenant '${t.name}'`);const o=new URL(window.location.href),s=r.patternValue,i=o.hostname,a=this.getBaseDomain(i),c=s?`${s}.${a}`:a;o.hostname=c,window.location.href=o.toString()}getCurrentTenantName(){const t=window.location.hostname;return this.extractSubdomain(t)||null}}const Ni={queryParams:new Lh,sessionStorage:new kh,cookie:new Nh,subdomain:new Mh},$h=e=>{const t=Ni[e.clientSideMode];if(!t)throw new Error(`Client side tenant mode '${e.clientSideMode}' is not supported ${JSON.stringify({strategies:Ni},null,2)}`);return t},Fh=(e,t,n)=>{const r=t.find(s=>s.name===n);if(!r)throw Error("No tenant permission");return $h(e).setTenant(r,e),r},Bh=()=>{const[e,t]=Nn(),{tenants:n=[],currentTenant:r,tenantConfig:o=Dh}=e,s=R.useCallback(i=>{const a=Fh(o,n,i);t({...e,currentTenant:a})},[o,e]);return{tenants:n,currentTenant:r,tenantConfig:o,selectTenant:s}};function Uh(e){if(!e.ok)throw console.error(e),new Error(e.statusText)}async function sr(e,t,n,r){const o=await e(`/user-states/${encodeURIComponent(t)}/${encodeURIComponent(n)}`,r);return Uh(o),o}class ir{static async get(t,n,r){const s=await sr(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 sr(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 sr(t,n,r,s)).json()}static async delete(t,n,r){return await sr(t,n,r,{method:"DELETE",headers:{"Content-Type":"application/json"}}),null}}const Wh=e=>{const t=ps("@bluealba/pae-nestjs-gateway-service"),n=Ja();if(!n)throw new Error("You must call the useUserState hook within a PAE application.");const[r,o]=R.useState(null),[s,i]=R.useState(!1),[a,c]=R.useState(!1),[l,d]=R.useState(null),h=(x,S)=>R.useCallback(async({newValue:E,shouldThrowError:_}={})=>{try{c(!0),d(null);const P=await x(t,n,e,E);return o(P),P?P.value:null}catch(P){if(d(P==null?void 0:P.message),console.error(`Failed to ${S} ${e}:`,P),_)throw P;return null}finally{c(!1)}},[t,n,e]),p=h(ir.get,"fetch"),g=h(ir.create,"create"),w=h(ir.update,"update"),m=h(ir.delete,"delete"),y=R.useCallback(async()=>{try{await p()}finally{i(!0)}},[p]);R.useEffect(()=>{y()},[y]);const C=R.useCallback(async(x,S=!1)=>r==null?await g({newValue:x,shouldThrowError:S}):await w({newValue:x,shouldThrowError:S}),[r,g,w]);return{value:r?r.value:null,hasFetched:s,loading:a,error:l,setValue:C,createValue:g,updateValue:w,deleteValue:m}},Pc="__PAE_EXTENSION_POINT_REACT_CONTENT_EMPTY__",Hh=({module:e,point:t,children:n})=>(rc(e,t,n??Pc),null),Oc=({name:e,children:t,...n})=>{const r=nc(e);if(r===Pc)return null;if(!r)return u.jsx(u.Fragment,{children:t??null});if(Vh(r)){const o=r;return u.jsx(o,{...n})}else return r},Vh=e=>typeof e=="function",qh=(e,t)=>{const n=r=>(t=t||e.displayName||e.name||"?",u.jsx(Oc,{name:t,...r,children:u.jsx(e,{...r})}));return n.displayName=`extensionPoint(${t})`,n},Mi="single-spa:app-change";function zh(){const[e,t]=R.useState($i());return R.useEffect(()=>{const n=()=>{t($i())};return window.addEventListener(Mi,n),()=>{window.removeEventListener(Mi,n)}},[]),e}function $i(){return gr.getAppNames().reduce((t,n)=>(gr.getAppStatus(n)?t[n]=gr.getAppStatus(n):t[n]="NOT_LOADED",t),{})}function Gh(e){const n=zh()[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 jc=({appName:e})=>u.jsx("div",{children:u.jsxs("p",{children:["Loading ",e,"..."]})});jc.displayName="BaseLoading";const Dc=({appName:e})=>u.jsxs("div",{children:[u.jsx("p",{children:"Something went wrong..."}),u.jsxs("p",{children:["Failed to load ",e]})]});Dc.displayName="BaseError";const Qh={display:"flex",flexDirection:"column",flex:1},Lc=R.forwardRef((e,t)=>u.jsx("div",{ref:t,style:Qh,...e}));Lc.displayName="BaseContainer";const Kh="pae-app:",kc=R.forwardRef(({appName:e,LoadingComponent:t=jc,ErrorComponent:n=Dc,ContainerComponent:r=Lc,...o},s)=>{const i=Gh(e);return u.jsxs(r,{ref:s,...o,id:`${Kh}${e}`,children:[i.isLoading&&u.jsx(t,{appName:e}),i.isBroken&&u.jsx(n,{appName:e})]})});kc.displayName="ModulePlaceHolder";const ws=({operations:e,children:t,forbiddenContent:n})=>{var o;const{hasAccess:r}=Ur();if(!r(...e)){if(!n)return null;if(typeof n=="function")if((o=n==null?void 0:n.prototype)!=null&&o.isReactComponent){const s=n;return u.jsx(s,{operations:e})}else return n({operations:e});return R.isValidElement(n)?n:null}return t};ws.displayName="Authorized";const Yh=({eventName:e,listener:t})=>(oc(e,t),null),Zh=()=>u.jsx("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:u.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M8.737 8.737a21.49 21.49 0 0 1 3.308-2.724m0 0c3.063-2.026 5.99-2.641 7.331-1.3 1.827 1.828.026 6.591-4.023 10.64-4.049 4.049-8.812 5.85-10.64 4.023-1.33-1.33-.736-4.218 1.249-7.253m6.083-6.11c-3.063-2.026-5.99-2.641-7.331-1.3-1.827 1.828-.026 6.591 4.023 10.64m3.308-9.34a21.497 21.497 0 0 1 3.308 2.724m2.775 3.386c1.985 3.035 2.579 5.923 1.248 7.253-1.336 1.337-4.245.732-7.295-1.275M14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})}),Ic=({applicationName:e})=>{const t=Xa(e);if(t)if(typeof t=="function"){const n=t;return u.jsx(n,{})}else return t;return u.jsx(Zh,{})};Ic.displayName="ApplicationIcon";const Xh=(e,t)=>{const n=r=>u.jsx(ws,{operations:t,children:u.jsx(e,{...r})});return n.displayName="Authorized",n};function Nc(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=Nc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function D(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Nc(e))&&(r&&(r+=" "),r+=t);return r}const Jh="spinner__fakUN",ep="spinner-rotation__wUmPV",tp="button__8FA9H",np="button--contained-primary__stkTx",rp="button--outlined-primary__KZ1ww",op="button--text-primary__GLTfm",sp="button--contained-danger__L9ehT",ip="button--outlined-danger__eoYLd",ap="button--text-danger__Sw-ha",cp="icon__--umH",ar={spinner:Jh,"spinner-rotation":"spinner-rotation__wUmPV",spinnerRotation:ep,button:tp,"button--contained-primary":"button--contained-primary__stkTx",buttonContainedPrimary:np,"button--outlined-primary":"button--outlined-primary__KZ1ww",buttonOutlinedPrimary:rp,"button--text-primary":"button--text-primary__GLTfm",buttonTextPrimary:op,"button--contained-danger":"button--contained-danger__L9ehT",buttonContainedDanger:sp,"button--outlined-danger":"button--outlined-danger__eoYLd",buttonOutlinedDanger:ip,"button--text-danger":"button--text-danger__Sw-ha",buttonTextDanger:ap,icon:cp},Dr=R.forwardRef(({variant:e="contained",colorScheme:t="primary",loading:n=!1,IconComponent:r,className:o,children:s,...i},a)=>{const c=D(ar.button,ar[`button--${e}-${t}`],o);return u.jsxs("button",{ref:a,className:c,...i,children:[n?u.jsx("div",{className:ar.spinner}):r&&u.jsx(r,{className:ar.icon}),s]})});Dr.displayName="Button";const lp="Badges__5jpum",up="Badges__5jpum",dp="Badge__95MWM",fp="Badge__95MWM",hp="Badge--primary__Rx-bS",pp="Badge--secondary__d92bT",mp="Badge--success__Kdo98",gp="Badge--warning__bf-Nn",yp="Badge--danger__HTj39",vp="Badge--small__y93Pj",bp="Badge--regular__aT5AL",wp="Badge--large__wORCH",xr={Badges:lp,badges:up,Badge:dp,badge:fp,"Badge--primary":"Badge--primary__Rx-bS",badgePrimary:hp,"Badge--secondary":"Badge--secondary__d92bT",badgeSecondary:pp,"Badge--success":"Badge--success__Kdo98",badgeSuccess:mp,"Badge--warning":"Badge--warning__bf-Nn",badgeWarning:gp,"Badge--danger":"Badge--danger__HTj39",badgeDanger:yp,"Badge--small":"Badge--small__y93Pj",badgeSmall:vp,"Badge--regular":"Badge--regular__aT5AL",badgeRegular:bp,"Badge--large":"Badge--large__wORCH",badgeLarge:wp},Jo={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 Jo)Object.freeze(Jo[e]);const Fi=Object.freeze(Jo);var Bi={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function Cp(e){var d,h;var t,n=[],r=1,o;if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),Fi[e])n=Fi[e].slice(),o="rgb";else if(e==="transparent")r=0,o="rgb",n=[0,0,0];else if(e[0]==="#"){var s=e.slice(1),i=s.length,a=i<=4;r=1,a?(n=[parseInt(s[0]+s[0],16),parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16)],i===4&&(r=parseInt(s[3]+s[3],16)/255)):(n=[parseInt(s[0]+s[1],16),parseInt(s[2]+s[3],16),parseInt(s[4]+s[5],16)],i===8&&(r=parseInt(s[6]+s[7],16)/255)),n[0]||(n[0]=0),n[1]||(n[1]=0),n[2]||(n[2]=0),o="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var c=t[1];o=c.replace(/a$/,"");var l=o==="cmyk"?4:o==="gray"?1:3;n=t[2].trim().split(/\s*[,\/]\s*|\s+/),o==="color"&&(o=n.shift()),n=n.map(function(p,g){if(p[p.length-1]==="%")return p=parseFloat(p)/100,g===3?p:o==="rgb"?p*255:o[0]==="h"||o[0]==="l"&&!g?p*100:o==="lab"?p*125:o==="lch"?g<2?p*150:p*360:o[0]==="o"&&!g?p:o==="oklab"?p*.4:o==="oklch"?g<2?p*.4:p*360:p;if(o[g]==="h"||g===2&&o[o.length-1]==="h"){if(Bi[p]!==void 0)return Bi[p];if(p.endsWith("deg"))return parseFloat(p);if(p.endsWith("turn"))return parseFloat(p)*360;if(p.endsWith("grad"))return parseFloat(p)*360/400;if(p.endsWith("rad"))return parseFloat(p)*180/Math.PI}return p==="none"?0:parseFloat(p)}),r=n.length>l?n.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(n=e.match(/([0-9]+)/g).map(function(p){return parseFloat(p)}),o=((h=(d=e.match(/([a-z])/ig))==null?void 0:d.join(""))==null?void 0:h.toLowerCase())||"rgb");return{space:o,values:n,alpha:r}}const xp=(e,t)=>{const{space:n,values:r}=Cp(e);return n[0]==="h"?`${n}a(${r[0]}, ${r[1]}%, ${r[2]}%, ${t})`:`${n}a(${r}, ${t})`},Cs=R.forwardRef(({children:e,color:t,className:n,customColor:r,size:o="small",style:s,...i},a)=>{const c=r?{color:r,background:xp(r,.1)}:{},l=D(xr.Badge,xr[`Badge--${o}`],{[xr[`Badge--${t}`]]:!!t},n);return u.jsx("span",{ref:a,className:l,style:{...s,...c},...i,children:e})});Cs.displayName="Badge";const xs=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(xr.Badges,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});xs.displayName="Badges";const Mc=({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...s})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:o,...s,children:[u.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),u.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"})]}),$c=({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...s})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:o,...s,children:[u.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),u.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}),u.jsx("path",{d:"m9 12 2 2 4-4"})]}),Ep="CopyToClipboardButton__2Nd2m",Sp={CopyToClipboardButton:Ep},_p=({content:e})=>{const[t,n]=Rp(),{notify:r}=ms(),o=t?$c:Mc,s=R.useCallback(async()=>{await n(e)&&r("Copied to the Clipboard !","success")},[e,r]);return u.jsx(o,{className:Sp.CopyToClipboardButton,size:18,onClick:s})},Rp=()=>{const[e,t]=R.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}}]},Tp="FieldGroup__Q2JCV",Ap="FieldGroup__Q2JCV",Pp="FieldGroup--horizontal__kpfL1",Op="FieldGroup--vertical__FLo-Q",Ui={FieldGroup:Tp,fieldGroup:Ap,"FieldGroup--horizontal":"FieldGroup--horizontal__kpfL1",fieldGroupHorizontal:Pp,"FieldGroup--vertical":"FieldGroup--vertical__FLo-Q",fieldGroupVertical:Op},Fc=R.forwardRef(({children:e,className:t,orientation:n="vertical",...r},o)=>{const s=D(Ui.FieldGroup,Ui[`FieldGroup--${n}`],t);return u.jsx("div",{ref:o,className:s,...r,children:e})});Fc.displayName="FieldGroup";const jp="Input__uS0sb",Wi={Input:jp,Error:"Error__-DQpw"},zr=R.forwardRef(({className:e,error:t,...n},r)=>{const o=D(Wi.Input,t&&Wi.Error,e);return u.jsx("input",{ref:r,className:o,...n})});zr.displayName="Input";const Dp={Error:"Error__N4OP5"},Bc=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Dp.Error,t);return u.jsx("span",{ref:r,className:o,...n,children:e})});Bc.displayName="InputError";const Lp="Label__VYUvW",Hi={Label:Lp,Error:"Error__Eu6DI"},Uc=R.forwardRef(({children:e,className:t,error:n,...r},o)=>{const s=D(Hi.Label,n&&Hi.Error,t);return u.jsx("label",{ref:o,className:s,...r,children:e})});Uc.displayName="Label";const kp="Select__giqpe",Ip="Chevron__YvhBd",es={Select:kp,Chevron:Ip},Wc=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(es.Option,t);return u.jsx("option",{ref:r,className:o,...n,children:e})});Wc.displayName="Option";const Es=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(es.Select,t);return u.jsxs("div",{className:o,children:[u.jsx("select",{ref:r,...n,children:e}),u.jsx("div",{className:es.Chevron,children:u.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M4 6L8 10L12 6",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})})]})});Es.displayName="Select";Es.Option=Wc;const Np="TextArea__pa-A0",Mp={TextArea:Np},Hc=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Mp.TextArea,t);return u.jsx("textarea",{ref:r,className:o,...n,children:e})});Hc.displayName="TextArea";const $p="SearchInput__4OFyE",Fp="SearchIcon__YgnQy",Bp="ClearIcon__ukRVr",Up="SearchInput__ClearIcon__uzVoc",Wp="SearchInput__SearchIcon__zoDG4",xn={SearchInput:$p,SearchIcon:Fp,ClearIcon:Bp,SearchInput__ClearIcon:Up,SearchInput__SearchIcon:Wp},Ss=R.forwardRef(({className:e,placeholder:t="Type to search...",showClearButton:n=!1,showSearchIcon:r=!0,onClear:o,...s},i)=>{const a=D(xn.SearchInput,n&&xn.SearchInput__ClearIcon,r&&xn.SearchInput__SearchIcon,e),c=D(xn.SearchIcon),l=D(xn.ClearIcon);return u.jsxs("div",{className:a,children:[u.jsx(zr,{ref:i,type:"text",placeholder:t,...s}),r&&u.jsx("svg",{className:c,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M13 13L10.6667 10.6667M12.3333 6.66667C12.3333 9.79628 9.79628 12.3333 6.66667 12.3333C3.53705 12.3333 1 9.79628 1 6.66667C1 3.53705 3.53705 1 6.66667 1C9.79628 1 12.3333 3.53705 12.3333 6.66667Z",stroke:"#A4A4A4",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})}),n&&u.jsx("svg",{className:l,width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:o,children:u.jsx("path",{d:"M7.33334 0.666748L0.666672 7.33341M0.666672 0.666748L7.33334 7.33341",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})]})});Ss.displayName="SearchInput";const Hp="SearchAutocomplete__vR9Hk",Vp="AutocompleteItem__YIm7R",qp="AutocompleteHighlighter__LAFTV",zp="AutocompleteHighlighter__match__Wy1o2",Gp="DropdownList__-fHIk",Qp="AutocompleteItemDescription__4QYN5",It={SearchAutocomplete:Hp,AutocompleteItem:Vp,"AutocompleteItem--canBeSelected":"AutocompleteItem--canBeSelected__jxk4z",AutocompleteHighlighter:qp,AutocompleteHighlighter__match:zp,DropdownList:Gp,AutocompleteItemDescription:Qp},Kp="DropdownList__QTXXX",Yp="DropdownList__QTXXX",Zp="DropdownList--closed__pdL1Z",Xp="DropdownList--open__opzc9",Jp="DropdownList--left__xSwXR",Rt={DropdownList:Kp,dropdownList:Yp,"DropdownList--closed":"DropdownList--closed__pdL1Z",dropdownListClosed:Zp,"DropdownList--open":"DropdownList--open__opzc9",dropdownListOpen:Xp,"DropdownList--left":"DropdownList--left__xSwXR",dropdownListLeft:Jp},Gr=R.forwardRef(({children:e,className:t,open:n,align:r="right",...o},s)=>{const i=D(Rt.DropdownList,{[Rt["DropdownList--open"]]:n,[Rt["DropdownList--closed"]]:!n,[Rt["DropdownList--left"]]:r==="left"},t);return u.jsx("div",{ref:s,className:i,...o,children:e})});Gr.displayName="DropdownList";const Sn=R.forwardRef(({children:e,className:t,canBeSelected:n=!1,...r},o)=>{const s=D(It.AutocompleteItem,{[It["AutocompleteItem--canBeSelected"]]:n},t);return u.jsx("div",{ref:o,className:s,role:n?"option":void 0,...r,children:e})});Sn.displayName="AutocompleteItem";const e1=300,t1={query:"",suggestions:[],loading:!1,error:null},n1=({suggestionFetcher:e,canAdd:t})=>{const[n,r]=R.useState(t1);return R.useEffect(()=>{r(a=>({...a,loading:!0}));const s=async()=>{try{const a=await e(n.query);t&&!a.some(c=>c.value.toLowerCase()===n.query.toLowerCase())&&a.push({label:`Add "${n.query}"`,value:n.query,isNew:!0}),r(c=>({...c,suggestions:a,loading:!1}))}catch(a){r(c=>({...c,suggestions:[],error:a,loading:!1}))}},i=setTimeout(()=>{s()},e1);return()=>{clearTimeout(i)}},[n.query]),{...n,setQuery:s=>{r(i=>({...i,query:s}))}}},Vc=R.forwardRef(({text:e,query:t,className:n,...r},o)=>{const s=D(It.AutocompleteHighlighter,n),i=(a,c)=>{const l=a.toLowerCase().indexOf(c.toLowerCase());if(l===-1||c.length===0)return a;const d=a.slice(0,l),h=a.slice(l,l+c.length),p=a.slice(l+c.length);return u.jsxs(u.Fragment,{children:[d,u.jsx("span",{className:It.AutocompleteHighlighter__match,children:h}),i(p,c)]})};return u.jsx("div",{ref:o,className:s,...r,children:i(e,t)})});Vc.displayName="AutocompleteHighlighter";const r1=5,qc=R.forwardRef(({children:e,className:t,canAdd:n,maxSuggestionsShown:r=r1,searchInputProps:o,keepSelectedOption:s,suggestionFetcher:i,onAccept:a,...c},l)=>{const{query:d,setQuery:h,suggestions:p,loading:g}=n1({suggestionFetcher:i,canAdd:n}),[w,m]=R.useState(null),y=d.length>0,C=A=>{h(A.target.value)},x=A=>{a==null||a(A),s?(m(A),h(A.value)):h("")},S=()=>{a==null||a(null),m(null),h("")},E=D(It.SearchAutocomplete,t),_=p.slice(0,r),P=p.slice(r);return u.jsxs("div",{ref:l,className:E,...c,children:[u.jsx(Ss,{...o,value:d,onChange:C,showClearButton:!!w,onClear:S}),e,u.jsxs(Gr,{className:It.DropdownList,open:y&&!w,role:"listbox","aria-label":"Suggestions",children:[g?u.jsx(Sn,{children:"Loading..."}):_.map(A=>u.jsxs(Sn,{canBeSelected:!0,onClick:x.bind(null,A),children:[u.jsx(Vc,{text:A.label,query:d}),A.description&&u.jsx("span",{className:It.AutocompleteItemDescription,children:A.description})]},A.value)),!g&&P.length>0&&u.jsxs(Sn,{children:[P.length," more results"]}),y&&p.length===0&&!g&&u.jsx(Sn,{children:"No results found"})]})]})});qc.displayName="SearchAutocomplete";const ft=e=>{let t=null,n=null;return R.Children.forEach(e.children,r=>{const o=r.props.condition;o===void 0?n=r:!t&&o===!0&&(t=r)}),u.jsx(u.Fragment,{children:t||n})};ft.displayName="Show";ft.When=({condition:e,children:t})=>u.jsx(u.Fragment,{children:e&&t});ft.Else=({render:e,children:t})=>u.jsx(u.Fragment,{children:e||t});function Vi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Qr(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Vi(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():Vi(e[o],null)}}}}function Pe(...e){return f.useCallback(Qr(...e),e)}var o1=Symbol.for("react.lazy"),Lr=f[" use ".trim().toString()];function s1(e){return typeof e=="object"&&e!==null&&"then"in e}function zc(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===o1&&"_payload"in e&&s1(e._payload)}function i1(e){const t=c1(e),n=f.forwardRef((r,o)=>{let{children:s,...i}=r;zc(s)&&typeof Lr=="function"&&(s=Lr(s._payload));const a=f.Children.toArray(s),c=a.find(u1);if(c){const l=c.props.children,d=a.map(h=>h===c?f.Children.count(l)>1?f.Children.only(null):f.isValidElement(l)?l.props.children:null:h);return u.jsx(t,{...i,ref:o,children:f.isValidElement(l)?f.cloneElement(l,void 0,d):null})}return u.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var a1=i1("Slot");function c1(e){const t=f.forwardRef((n,r)=>{let{children:o,...s}=n;if(zc(o)&&typeof Lr=="function"&&(o=Lr(o._payload)),f.isValidElement(o)){const i=f1(o),a=d1(s,o.props);return o.type!==f.Fragment&&(a.ref=r?Qr(r,i):i),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var l1=Symbol("radix.slottable");function u1(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===l1}function d1(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function f1(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 h1="SkeletonListContainer__MKJhE",p1="Skeleton__Ovpiw",Gc={SkeletonListContainer:h1,Skeleton:p1},Kr=R.forwardRef((e,t)=>{const{children:n,className:r,loading:o,height:s=48,width:i,borderRadius:a,style:c,...l}=e;if(!o&&n)return n;const d=R.isValidElement(n)?a1:"span";return u.jsx(d,{ref:t,"aria-hidden":!0,className:D(Gc.Skeleton,r),style:{...c,width:i,minWidth:i,height:s,borderRadius:a},"data-inline-skeleton":R.isValidElement(n)?void 0:!0,tabIndex:-1,...l,children:n})});Kr.displayName="Skeleton";const Qc=e=>{const{numberOfItems:t,itemsGap:n=2,itemProps:r}=e,o=Array.from({length:t},(s,i)=>i+1);return u.jsx("div",{className:D(Gc.SkeletonListContainer),style:{gap:n},children:o.map(s=>u.jsx(Kr,{loading:!0,...r},s))})};Qc.displayName="SkeletonList";function me(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 m1(e,t){const n=f.createContext(t),r=s=>{const{children:i,...a}=s,c=f.useMemo(()=>a,Object.values(a));return u.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function o(s){const i=f.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 _s(e,t=[]){let n=[];function r(s,i){const a=f.createContext(i),c=n.length;n=[...n,i];const l=h=>{var C;const{scope:p,children:g,...w}=h,m=((C=p==null?void 0:p[e])==null?void 0:C[c])||a,y=f.useMemo(()=>w,Object.values(w));return u.jsx(m.Provider,{value:y,children:g})};l.displayName=s+"Provider";function d(h,p){var m;const g=((m=p==null?void 0:p[e])==null?void 0:m[c])||a,w=f.useContext(g);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[l,d]}const o=()=>{const s=n.map(i=>f.createContext(i));return function(a){const c=(a==null?void 0:a[e])||s;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,g1(o,...t)]}function g1(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:c,scopeName:l})=>{const h=c(s)[`__scope${l}`];return{...a,...h}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function y1(e){const t=v1(e),n=f.forwardRef((r,o)=>{const{children:s,...i}=r,a=f.Children.toArray(s),c=a.find(w1);if(c){const l=c.props.children,d=a.map(h=>h===c?f.Children.count(l)>1?f.Children.only(null):f.isValidElement(l)?l.props.children:null:h);return u.jsx(t,{...i,ref:o,children:f.isValidElement(l)?f.cloneElement(l,void 0,d):null})}return u.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function v1(e){const t=f.forwardRef((n,r)=>{const{children:o,...s}=n;if(f.isValidElement(o)){const i=x1(o),a=C1(s,o.props);return o.type!==f.Fragment&&(a.ref=r?Qr(r,i):i),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var b1=Symbol("radix.slottable");function w1(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===b1}function C1(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function x1(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 E1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ge=E1.reduce((e,t)=>{const n=y1(`Primitive.${t}`),r=f.forwardRef((o,s)=>{const{asChild:i,...a}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(c,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function S1(e,t){e&&ka.flushSync(()=>e.dispatchEvent(t))}function fn(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function _1(e,t=globalThis==null?void 0:globalThis.document){const n=fn(e);f.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 R1="DismissableLayer",ts="dismissableLayer.update",T1="dismissableLayer.pointerDownOutside",A1="dismissableLayer.focusOutside",qi,Kc=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Rs=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...c}=e,l=f.useContext(Kc),[d,h]=f.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=f.useState({}),w=Pe(t,A=>h(A)),m=Array.from(l.layers),[y]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),C=m.indexOf(y),x=d?m.indexOf(d):-1,S=l.layersWithOutsidePointerEventsDisabled.size>0,E=x>=C,_=j1(A=>{const M=A.target,I=[...l.branches].some(k=>k.contains(M));!E||I||(o==null||o(A),i==null||i(A),A.defaultPrevented||a==null||a())},p),P=D1(A=>{const M=A.target;[...l.branches].some(k=>k.contains(M))||(s==null||s(A),i==null||i(A),A.defaultPrevented||a==null||a())},p);return _1(A=>{x===l.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},p),f.useEffect(()=>{if(d)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(qi=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),zi(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=qi)}},[d,p,n,l]),f.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),zi())},[d,l]),f.useEffect(()=>{const A=()=>g({});return document.addEventListener(ts,A),()=>document.removeEventListener(ts,A)},[]),u.jsx(ge.div,{...c,ref:w,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:me(e.onFocusCapture,P.onFocusCapture),onBlurCapture:me(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:me(e.onPointerDownCapture,_.onPointerDownCapture)})});Rs.displayName=R1;var P1="DismissableLayerBranch",O1=f.forwardRef((e,t)=>{const n=f.useContext(Kc),r=f.useRef(null),o=Pe(t,r);return f.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),u.jsx(ge.div,{...e,ref:o})});O1.displayName=P1;function j1(e,t=globalThis==null?void 0:globalThis.document){const n=fn(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let c=function(){Yc(T1,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function D1(e,t=globalThis==null?void 0:globalThis.document){const n=fn(e),r=f.useRef(!1);return f.useEffect(()=>{const o=s=>{s.target&&!r.current&&Yc(A1,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 zi(){const e=new CustomEvent(ts);document.dispatchEvent(e)}function Yc(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?S1(o,s):o.dispatchEvent(s)}var mt=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},L1=f[" useId ".trim().toString()]||(()=>{}),k1=0;function Er(e){const[t,n]=f.useState(L1());return mt(()=>{n(r=>r??String(k1++))},[e]),t?`radix-${t}`:""}const I1=["top","right","bottom","left"],gt=Math.min,ve=Math.max,kr=Math.round,cr=Math.floor,Me=e=>({x:e,y:e}),N1={left:"right",right:"left",bottom:"top",top:"bottom"},M1={start:"end",end:"start"};function ns(e,t,n){return ve(e,gt(t,n))}function Ke(e,t){return typeof e=="function"?e(t):e}function Ye(e){return e.split("-")[0]}function gn(e){return e.split("-")[1]}function Ts(e){return e==="x"?"y":"x"}function As(e){return e==="y"?"height":"width"}const $1=new Set(["top","bottom"]);function Ne(e){return $1.has(Ye(e))?"y":"x"}function Ps(e){return Ts(Ne(e))}function F1(e,t,n){n===void 0&&(n=!1);const r=gn(e),o=Ps(e),s=As(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Ir(i)),[i,Ir(i)]}function B1(e){const t=Ir(e);return[rs(e),t,rs(t)]}function rs(e){return e.replace(/start|end/g,t=>M1[t])}const Gi=["left","right"],Qi=["right","left"],U1=["top","bottom"],W1=["bottom","top"];function H1(e,t,n){switch(e){case"top":case"bottom":return n?t?Qi:Gi:t?Gi:Qi;case"left":case"right":return t?U1:W1;default:return[]}}function V1(e,t,n,r){const o=gn(e);let s=H1(Ye(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(rs)))),s}function Ir(e){return e.replace(/left|right|bottom|top/g,t=>N1[t])}function q1(e){return{top:0,right:0,bottom:0,left:0,...e}}function Zc(e){return typeof e!="number"?q1(e):{top:e,right:e,bottom:e,left:e}}function Nr(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 Ki(e,t,n){let{reference:r,floating:o}=e;const s=Ne(t),i=Ps(t),a=As(i),c=Ye(t),l=s==="y",d=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let g;switch(c){case"top":g={x:d,y:r.y-o.height};break;case"bottom":g={x:d,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:h};break;case"left":g={x:r.x-o.width,y:h};break;default:g={x:r.x,y:r.y}}switch(gn(t)){case"start":g[i]-=p*(n&&l?-1:1);break;case"end":g[i]+=p*(n&&l?-1:1);break}return g}const z1=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:h}=Ki(l,r,c),p=r,g={},w=0;for(let m=0;m<a.length;m++){const{name:y,fn:C}=a[m],{x,y:S,data:E,reset:_}=await C({x:d,y:h,initialPlacement:r,placement:p,strategy:o,middlewareData:g,rects:l,platform:i,elements:{reference:e,floating:t}});d=x??d,h=S??h,g={...g,[y]:{...g[y],...E}},_&&w<=50&&(w++,typeof _=="object"&&(_.placement&&(p=_.placement),_.rects&&(l=_.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:d,y:h}=Ki(l,p,c)),m=-1)}return{x:d,y:h,placement:p,strategy:o,middlewareData:g}};async function An(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:p=!1,padding:g=0}=Ke(t,e),w=Zc(g),y=a[p?h==="floating"?"reference":"floating":h],C=Nr(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:d,strategy:c})),x=h==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),E=await(s.isElement==null?void 0:s.isElement(S))?await(s.getScale==null?void 0:s.getScale(S))||{x:1,y:1}:{x:1,y:1},_=Nr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:S,strategy:c}):x);return{top:(C.top-_.top+w.top)/E.y,bottom:(_.bottom-C.bottom+w.bottom)/E.y,left:(C.left-_.left+w.left)/E.x,right:(_.right-C.right+w.right)/E.x}}const G1=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:c}=t,{element:l,padding:d=0}=Ke(e,t)||{};if(l==null)return{};const h=Zc(d),p={x:n,y:r},g=Ps(o),w=As(g),m=await i.getDimensions(l),y=g==="y",C=y?"top":"left",x=y?"bottom":"right",S=y?"clientHeight":"clientWidth",E=s.reference[w]+s.reference[g]-p[g]-s.floating[w],_=p[g]-s.reference[g],P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let A=P?P[S]:0;(!A||!await(i.isElement==null?void 0:i.isElement(P)))&&(A=a.floating[S]||s.floating[w]);const M=E/2-_/2,I=A/2-m[w]/2-1,k=gt(h[C],I),V=gt(h[x],I),Q=k,H=A-m[w]-V,G=A/2-m[w]/2+M,ne=ns(Q,G,H),Z=!c.arrow&&gn(o)!=null&&G!==ne&&s.reference[w]/2-(G<Q?k:V)-m[w]/2<0,X=Z?G<Q?G-Q:G-H:0;return{[g]:p[g]+X,data:{[g]:ne,centerOffset:G-ne-X,...Z&&{alignmentOffset:X}},reset:Z}}}),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:c,elements:l}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:m=!0,...y}=Ke(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const C=Ye(o),x=Ne(a),S=Ye(a)===a,E=await(c.isRTL==null?void 0:c.isRTL(l.floating)),_=p||(S||!m?[Ir(a)]:B1(a)),P=w!=="none";!p&&P&&_.push(...V1(a,m,w,E));const A=[a,..._],M=await An(t,y),I=[];let k=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&I.push(M[C]),h){const G=F1(o,i,E);I.push(M[G[0]],M[G[1]])}if(k=[...k,{placement:o,overflows:I}],!I.every(G=>G<=0)){var V,Q;const G=(((V=s.flip)==null?void 0:V.index)||0)+1,ne=A[G];if(ne&&(!(h==="alignment"?x!==Ne(ne):!1)||k.every(F=>Ne(F.placement)===x?F.overflows[0]>0:!0)))return{data:{index:G,overflows:k},reset:{placement:ne}};let Z=(Q=k.filter(X=>X.overflows[0]<=0).sort((X,F)=>X.overflows[1]-F.overflows[1])[0])==null?void 0:Q.placement;if(!Z)switch(g){case"bestFit":{var H;const X=(H=k.filter(F=>{if(P){const re=Ne(F.placement);return re===x||re==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(re=>re>0).reduce((re,ye)=>re+ye,0)]).sort((F,re)=>F[1]-re[1])[0])==null?void 0:H[0];X&&(Z=X);break}case"initialPlacement":Z=a;break}if(o!==Z)return{reset:{placement:Z}}}return{}}}};function Yi(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Zi(e){return I1.some(t=>e[t]>=0)}const K1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ke(e,t);switch(r){case"referenceHidden":{const s=await An(t,{...o,elementContext:"reference"}),i=Yi(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Zi(i)}}}case"escaped":{const s=await An(t,{...o,altBoundary:!0}),i=Yi(s,n.floating);return{data:{escapedOffsets:i,escaped:Zi(i)}}}default:return{}}}}},Xc=new Set(["left","top"]);async function Y1(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Ye(n),a=gn(n),c=Ne(n)==="y",l=Xc.has(i)?-1:1,d=s&&c?-1:1,h=Ke(t,e);let{mainAxis:p,crossAxis:g,alignmentAxis:w}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof w=="number"&&(g=a==="end"?w*-1:w),c?{x:g*d,y:p*l}:{x:p*l,y:g*d}}const Z1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,c=await Y1(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},X1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:y=>{let{x:C,y:x}=y;return{x:C,y:x}}},...c}=Ke(e,t),l={x:n,y:r},d=await An(t,c),h=Ne(Ye(o)),p=Ts(h);let g=l[p],w=l[h];if(s){const y=p==="y"?"top":"left",C=p==="y"?"bottom":"right",x=g+d[y],S=g-d[C];g=ns(x,g,S)}if(i){const y=h==="y"?"top":"left",C=h==="y"?"bottom":"right",x=w+d[y],S=w-d[C];w=ns(x,w,S)}const m=a.fn({...t,[p]:g,[h]:w});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[p]:s,[h]:i}}}}}},J1=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Ke(e,t),d={x:n,y:r},h=Ne(o),p=Ts(h);let g=d[p],w=d[h];const m=Ke(a,t),y=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const S=p==="y"?"height":"width",E=s.reference[p]-s.floating[S]+y.mainAxis,_=s.reference[p]+s.reference[S]-y.mainAxis;g<E?g=E:g>_&&(g=_)}if(l){var C,x;const S=p==="y"?"width":"height",E=Xc.has(Ye(o)),_=s.reference[h]-s.floating[S]+(E&&((C=i.offset)==null?void 0:C[h])||0)+(E?0:y.crossAxis),P=s.reference[h]+s.reference[S]+(E?0:((x=i.offset)==null?void 0:x[h])||0)-(E?y.crossAxis:0);w<_?w=_:w>P&&(w=P)}return{[p]:g,[h]:w}}}},em=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:c=()=>{},...l}=Ke(e,t),d=await An(t,l),h=Ye(o),p=gn(o),g=Ne(o)==="y",{width:w,height:m}=s.floating;let y,C;h==="top"||h==="bottom"?(y=h,C=p===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(C=h,y=p==="end"?"top":"bottom");const x=m-d.top-d.bottom,S=w-d.left-d.right,E=gt(m-d[y],x),_=gt(w-d[C],S),P=!t.middlewareData.shift;let A=E,M=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(M=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=x),P&&!p){const k=ve(d.left,0),V=ve(d.right,0),Q=ve(d.top,0),H=ve(d.bottom,0);g?M=w-2*(k!==0||V!==0?k+V:ve(d.left,d.right)):A=m-2*(Q!==0||H!==0?Q+H:ve(d.top,d.bottom))}await c({...t,availableWidth:M,availableHeight:A});const I=await i.getDimensions(a.floating);return w!==I.width||m!==I.height?{reset:{rects:!0}}:{}}}};function Yr(){return typeof window<"u"}function yn(e){return Jc(e)?(e.nodeName||"").toLowerCase():"#document"}function we(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fe(e){var t;return(t=(Jc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Jc(e){return Yr()?e instanceof Node||e instanceof we(e).Node:!1}function Te(e){return Yr()?e instanceof Element||e instanceof we(e).Element:!1}function $e(e){return Yr()?e instanceof HTMLElement||e instanceof we(e).HTMLElement:!1}function Xi(e){return!Yr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof we(e).ShadowRoot}const tm=new Set(["inline","contents"]);function Un(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ae(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!tm.has(o)}const nm=new Set(["table","td","th"]);function rm(e){return nm.has(yn(e))}const om=[":popover-open",":modal"];function Zr(e){return om.some(t=>{try{return e.matches(t)}catch{return!1}})}const sm=["transform","translate","scale","rotate","perspective"],im=["transform","translate","scale","rotate","perspective","filter"],am=["paint","layout","strict","content"];function Os(e){const t=js(),n=Te(e)?Ae(e):e;return sm.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)||im.some(r=>(n.willChange||"").includes(r))||am.some(r=>(n.contain||"").includes(r))}function cm(e){let t=yt(e);for(;$e(t)&&!hn(t);){if(Os(t))return t;if(Zr(t))return null;t=yt(t)}return null}function js(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const lm=new Set(["html","body","#document"]);function hn(e){return lm.has(yn(e))}function Ae(e){return we(e).getComputedStyle(e)}function Xr(e){return Te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function yt(e){if(yn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xi(e)&&e.host||Fe(e);return Xi(t)?t.host:t}function el(e){const t=yt(e);return hn(t)?e.ownerDocument?e.ownerDocument.body:e.body:$e(t)&&Un(t)?t:el(t)}function Pn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=el(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=we(o);if(s){const a=os(i);return t.concat(i,i.visualViewport||[],Un(o)?o:[],a&&n?Pn(a):[])}return t.concat(o,Pn(o,[],n))}function os(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function tl(e){const t=Ae(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=$e(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=kr(n)!==s||kr(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Ds(e){return Te(e)?e:e.contextElement}function Yt(e){const t=Ds(e);if(!$e(t))return Me(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=tl(t);let i=(s?kr(n.width):n.width)/r,a=(s?kr(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const um=Me(0);function nl(e){const t=we(e);return!js()||!t.visualViewport?um:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function dm(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==we(e)?!1:t}function $t(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Ds(e);let i=Me(1);t&&(r?Te(r)&&(i=Yt(r)):i=Yt(e));const a=dm(s,n,r)?nl(s):Me(0);let c=(o.left+a.x)/i.x,l=(o.top+a.y)/i.y,d=o.width/i.x,h=o.height/i.y;if(s){const p=we(s),g=r&&Te(r)?we(r):r;let w=p,m=os(w);for(;m&&r&&g!==w;){const y=Yt(m),C=m.getBoundingClientRect(),x=Ae(m),S=C.left+(m.clientLeft+parseFloat(x.paddingLeft))*y.x,E=C.top+(m.clientTop+parseFloat(x.paddingTop))*y.y;c*=y.x,l*=y.y,d*=y.x,h*=y.y,c+=S,l+=E,w=we(m),m=os(w)}}return Nr({width:d,height:h,x:c,y:l})}function Jr(e,t){const n=Xr(e).scrollLeft;return t?t.left+n:$t(Fe(e)).left+n}function rl(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Jr(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function fm(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Fe(r),a=t?Zr(t.floating):!1;if(r===i||a&&s)return n;let c={scrollLeft:0,scrollTop:0},l=Me(1);const d=Me(0),h=$e(r);if((h||!h&&!s)&&((yn(r)!=="body"||Un(i))&&(c=Xr(r)),$e(r))){const g=$t(r);l=Yt(r),d.x=g.x+r.clientLeft,d.y=g.y+r.clientTop}const p=i&&!h&&!s?rl(i,c):Me(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+d.x+p.x,y:n.y*l.y-c.scrollTop*l.y+d.y+p.y}}function hm(e){return Array.from(e.getClientRects())}function pm(e){const t=Fe(e),n=Xr(e),r=e.ownerDocument.body,o=ve(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ve(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Jr(e);const a=-n.scrollTop;return Ae(r).direction==="rtl"&&(i+=ve(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const Ji=25;function mm(e,t){const n=we(e),r=Fe(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,c=0;if(o){s=o.width,i=o.height;const d=js();(!d||d&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const l=Jr(r);if(l<=0){const d=r.ownerDocument,h=d.body,p=getComputedStyle(h),g=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,w=Math.abs(r.clientWidth-h.clientWidth-g);w<=Ji&&(s-=w)}else l<=Ji&&(s+=l);return{width:s,height:i,x:a,y:c}}const gm=new Set(["absolute","fixed"]);function ym(e,t){const n=$t(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=$e(e)?Yt(e):Me(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,c=o*s.x,l=r*s.y;return{width:i,height:a,x:c,y:l}}function ea(e,t,n){let r;if(t==="viewport")r=mm(e,n);else if(t==="document")r=pm(Fe(e));else if(Te(t))r=ym(t,n);else{const o=nl(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Nr(r)}function ol(e,t){const n=yt(e);return n===t||!Te(n)||hn(n)?!1:Ae(n).position==="fixed"||ol(n,t)}function vm(e,t){const n=t.get(e);if(n)return n;let r=Pn(e,[],!1).filter(a=>Te(a)&&yn(a)!=="body"),o=null;const s=Ae(e).position==="fixed";let i=s?yt(e):e;for(;Te(i)&&!hn(i);){const a=Ae(i),c=Os(i);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&gm.has(o.position)||Un(i)&&!c&&ol(e,i))?r=r.filter(d=>d!==i):o=a,i=yt(i)}return t.set(e,r),r}function bm(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Zr(t)?[]:vm(t,this._c):[].concat(n),r],a=i[0],c=i.reduce((l,d)=>{const h=ea(t,d,o);return l.top=ve(h.top,l.top),l.right=gt(h.right,l.right),l.bottom=gt(h.bottom,l.bottom),l.left=ve(h.left,l.left),l},ea(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function wm(e){const{width:t,height:n}=tl(e);return{width:t,height:n}}function Cm(e,t,n){const r=$e(t),o=Fe(t),s=n==="fixed",i=$t(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=Me(0);function l(){c.x=Jr(o)}if(r||!r&&!s)if((yn(t)!=="body"||Un(o))&&(a=Xr(t)),r){const g=$t(t,!0,s,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else o&&l();s&&!r&&o&&l();const d=o&&!r&&!s?rl(o,a):Me(0),h=i.left+a.scrollLeft-c.x-d.x,p=i.top+a.scrollTop-c.y-d.y;return{x:h,y:p,width:i.width,height:i.height}}function vo(e){return Ae(e).position==="static"}function ta(e,t){if(!$e(e)||Ae(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Fe(e)===n&&(n=n.ownerDocument.body),n}function sl(e,t){const n=we(e);if(Zr(e))return n;if(!$e(e)){let o=yt(e);for(;o&&!hn(o);){if(Te(o)&&!vo(o))return o;o=yt(o)}return n}let r=ta(e,t);for(;r&&rm(r)&&vo(r);)r=ta(r,t);return r&&hn(r)&&vo(r)&&!Os(r)?n:r||cm(e)||n}const xm=async function(e){const t=this.getOffsetParent||sl,n=this.getDimensions,r=await n(e.floating);return{reference:Cm(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Em(e){return Ae(e).direction==="rtl"}const Sm={convertOffsetParentRelativeRectToViewportRelativeRect:fm,getDocumentElement:Fe,getClippingRect:bm,getOffsetParent:sl,getElementRects:xm,getClientRects:hm,getDimensions:wm,getScale:Yt,isElement:Te,isRTL:Em};function il(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function _m(e,t){let n=null,r;const o=Fe(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const l=e.getBoundingClientRect(),{left:d,top:h,width:p,height:g}=l;if(a||t(),!p||!g)return;const w=cr(h),m=cr(o.clientWidth-(d+p)),y=cr(o.clientHeight-(h+g)),C=cr(d),S={rootMargin:-w+"px "+-m+"px "+-y+"px "+-C+"px",threshold:ve(0,gt(1,c))||1};let E=!0;function _(P){const A=P[0].intersectionRatio;if(A!==c){if(!E)return i();A?i(!1,A):r=setTimeout(()=>{i(!1,1e-7)},1e3)}A===1&&!il(l,e.getBoundingClientRect())&&i(),E=!1}try{n=new IntersectionObserver(_,{...S,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,S)}n.observe(e)}return i(!0),s}function Rm(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=Ds(e),d=o||s?[...l?Pn(l):[],...Pn(t)]:[];d.forEach(C=>{o&&C.addEventListener("scroll",n,{passive:!0}),s&&C.addEventListener("resize",n)});const h=l&&a?_m(l,n):null;let p=-1,g=null;i&&(g=new ResizeObserver(C=>{let[x]=C;x&&x.target===l&&g&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var S;(S=g)==null||S.observe(t)})),n()}),l&&!c&&g.observe(l),g.observe(t));let w,m=c?$t(e):null;c&&y();function y(){const C=$t(e);m&&!il(m,C)&&n(),m=C,w=requestAnimationFrame(y)}return n(),()=>{var C;d.forEach(x=>{o&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),h==null||h(),(C=g)==null||C.disconnect(),g=null,c&&cancelAnimationFrame(w)}}const Tm=Z1,Am=X1,Pm=Q1,Om=em,jm=K1,na=G1,Dm=J1,Lm=(e,t,n)=>{const r=new Map,o={platform:Sm,...n},s={...o.platform,_c:r};return z1(e,t,{...o,platform:s})};var km=typeof document<"u",Im=function(){},Sr=km?R.useLayoutEffect:Im;function Mr(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(!Mr(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)&&!Mr(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function al(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ra(e,t){const n=al(e);return Math.round(t*n)/n}function bo(e){const t=f.useRef(e);return Sr(()=>{t.current=e}),t}function Nm(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[d,h]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,g]=f.useState(r);Mr(p,r)||g(r);const[w,m]=f.useState(null),[y,C]=f.useState(null),x=f.useCallback(F=>{F!==P.current&&(P.current=F,m(F))},[]),S=f.useCallback(F=>{F!==A.current&&(A.current=F,C(F))},[]),E=s||w,_=i||y,P=f.useRef(null),A=f.useRef(null),M=f.useRef(d),I=c!=null,k=bo(c),V=bo(o),Q=bo(l),H=f.useCallback(()=>{if(!P.current||!A.current)return;const F={placement:t,strategy:n,middleware:p};V.current&&(F.platform=V.current),Lm(P.current,A.current,F).then(re=>{const ye={...re,isPositioned:Q.current!==!1};G.current&&!Mr(M.current,ye)&&(M.current=ye,ka.flushSync(()=>{h(ye)}))})},[p,t,n,V,Q]);Sr(()=>{l===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,h(F=>({...F,isPositioned:!1})))},[l]);const G=f.useRef(!1);Sr(()=>(G.current=!0,()=>{G.current=!1}),[]),Sr(()=>{if(E&&(P.current=E),_&&(A.current=_),E&&_){if(k.current)return k.current(E,_,H);H()}},[E,_,H,k,I]);const ne=f.useMemo(()=>({reference:P,floating:A,setReference:x,setFloating:S}),[x,S]),Z=f.useMemo(()=>({reference:E,floating:_}),[E,_]),X=f.useMemo(()=>{const F={position:n,left:0,top:0};if(!Z.floating)return F;const re=ra(Z.floating,d.x),ye=ra(Z.floating,d.y);return a?{...F,transform:"translate("+re+"px, "+ye+"px)",...al(Z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:re,top:ye}},[n,a,Z.floating,d.x,d.y]);return f.useMemo(()=>({...d,update:H,refs:ne,elements:Z,floatingStyles:X}),[d,H,ne,Z,X])}const Mm=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?na({element:r.current,padding:o}).fn(n):{}:r?na({element:r,padding:o}).fn(n):{}}}},$m=(e,t)=>({...Tm(e),options:[e,t]}),Fm=(e,t)=>({...Am(e),options:[e,t]}),Bm=(e,t)=>({...Dm(e),options:[e,t]}),Um=(e,t)=>({...Pm(e),options:[e,t]}),Wm=(e,t)=>({...Om(e),options:[e,t]}),Hm=(e,t)=>({...jm(e),options:[e,t]}),Vm=(e,t)=>({...Mm(e),options:[e,t]});var qm="Arrow",cl=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return u.jsx(ge.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});cl.displayName=qm;var zm=cl;function Gm(e){const[t,n]=f.useState(void 0);return mt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const c=s.borderBoxSize,l=Array.isArray(c)?c[0]:c;i=l.inlineSize,a=l.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ls="Popper",[ll,ul]=_s(Ls),[Qm,dl]=ll(Ls),fl=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return u.jsx(Qm,{scope:t,anchor:r,onAnchorChange:o,children:n})};fl.displayName=Ls;var hl="PopperAnchor",pl=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=dl(hl,n),i=f.useRef(null),a=Pe(t,i),c=f.useRef(null);return f.useEffect(()=>{const l=c.current;c.current=(r==null?void 0:r.current)||i.current,l!==c.current&&s.onAnchorChange(c.current)}),r?null:u.jsx(ge.div,{...o,ref:a})});pl.displayName=hl;var ks="PopperContent",[Km,Ym]=ll(ks),ml=f.forwardRef((e,t)=>{var Wt,wt,Ht,Ct,zn,wn;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:p=!1,updatePositionStrategy:g="optimized",onPlaced:w,...m}=e,y=dl(ks,n),[C,x]=f.useState(null),S=Pe(t,xt=>x(xt)),[E,_]=f.useState(null),P=Gm(E),A=(P==null?void 0:P.width)??0,M=(P==null?void 0:P.height)??0,I=r+(s!=="center"?"-"+s:""),k=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},V=Array.isArray(l)?l:[l],Q=V.length>0,H={padding:k,boundary:V.filter(Xm),altBoundary:Q},{refs:G,floatingStyles:ne,placement:Z,isPositioned:X,middlewareData:F}=Nm({strategy:"fixed",placement:I,whileElementsMounted:(...xt)=>Rm(...xt,{animationFrame:g==="always"}),elements:{reference:y.anchor},middleware:[$m({mainAxis:o+M,alignmentAxis:i}),c&&Fm({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?Bm():void 0,...H}),c&&Um({...H}),Wm({...H,apply:({elements:xt,rects:Gn,availableWidth:Vt,availableHeight:Et})=>{const{width:Qn,height:Kn}=Gn.reference,Ue=xt.floating.style;Ue.setProperty("--radix-popper-available-width",`${Vt}px`),Ue.setProperty("--radix-popper-available-height",`${Et}px`),Ue.setProperty("--radix-popper-anchor-width",`${Qn}px`),Ue.setProperty("--radix-popper-anchor-height",`${Kn}px`)}}),E&&Vm({element:E,padding:a}),Jm({arrowWidth:A,arrowHeight:M}),p&&Hm({strategy:"referenceHidden",...H})]}),[re,ye]=vl(Z),bt=fn(w);mt(()=>{X&&(bt==null||bt())},[X,bt]);const Vn=(Wt=F.arrow)==null?void 0:Wt.x,qn=(wt=F.arrow)==null?void 0:wt.y,so=((Ht=F.arrow)==null?void 0:Ht.centerOffset)!==0,[io,bn]=f.useState();return mt(()=>{C&&bn(window.getComputedStyle(C).zIndex)},[C]),u.jsx("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...ne,transform:X?ne.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:io,"--radix-popper-transform-origin":[(Ct=F.transformOrigin)==null?void 0:Ct.x,(zn=F.transformOrigin)==null?void 0:zn.y].join(" "),...((wn=F.hide)==null?void 0:wn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(Km,{scope:n,placedSide:re,onArrowChange:_,arrowX:Vn,arrowY:qn,shouldHideArrow:so,children:u.jsx(ge.div,{"data-side":re,"data-align":ye,...m,ref:S,style:{...m.style,animation:X?void 0:"none"}})})})});ml.displayName=ks;var gl="PopperArrow",Zm={top:"bottom",right:"left",bottom:"top",left:"right"},yl=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Ym(gl,r),i=Zm[s.placedSide];return u.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:u.jsx(zm,{...o,ref:n,style:{...o.style,display:"block"}})})});yl.displayName=gl;function Xm(e){return e!==null}var Jm=e=>({name:"transformOrigin",options:e,fn(t){var y,C,x;const{placement:n,rects:r,middlewareData:o}=t,i=((y=o.arrow)==null?void 0:y.centerOffset)!==0,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[l,d]=vl(n),h={start:"0%",center:"50%",end:"100%"}[d],p=(((C=o.arrow)==null?void 0:C.x)??0)+a/2,g=(((x=o.arrow)==null?void 0:x.y)??0)+c/2;let w="",m="";return l==="bottom"?(w=i?h:`${p}px`,m=`${-c}px`):l==="top"?(w=i?h:`${p}px`,m=`${r.floating.height+c}px`):l==="right"?(w=`${-c}px`,m=i?h:`${g}px`):l==="left"&&(w=`${r.floating.width+c}px`,m=i?h:`${g}px`),{data:{x:w,y:m}}}});function vl(e){const[t,n="center"]=e.split("-");return[t,n]}var eg=fl,tg=pl,ng=ml,rg=yl,og="Portal",Is=f.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=f.useState(!1);mt(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Da.createPortal(u.jsx(ge.div,{...r,ref:t}),i):null});Is.displayName=og;function sg(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var vn=e=>{const{present:t,children:n}=e,r=ig(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),s=Pe(r.ref,ag(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:s}):null};vn.displayName="Presence";function ig(e){const[t,n]=f.useState(),r=f.useRef(null),o=f.useRef(e),s=f.useRef("none"),i=e?"mounted":"unmounted",[a,c]=sg(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=lr(r.current);s.current=a==="mounted"?l:"none"},[a]),mt(()=>{const l=r.current,d=o.current;if(d!==e){const p=s.current,g=lr(l);e?c("MOUNT"):g==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(d&&p!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),mt(()=>{if(t){let l;const d=t.ownerDocument.defaultView??window,h=g=>{const m=lr(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&m&&(c("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",l=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},p=g=>{g.target===t&&(s.current=lr(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{d.clearTimeout(l),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:f.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function lr(e){return(e==null?void 0:e.animationName)||"none"}function ag(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 cg=Symbol("radix.slottable");function lg(e){const t=({children:n})=>u.jsx(u.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=cg,t}var ug=f[" useInsertionEffect ".trim().toString()]||mt;function bl({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=dg({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const d=f.useRef(e!==void 0);f.useEffect(()=>{const h=d.current;h!==a&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const l=f.useCallback(d=>{var h;if(a){const p=fg(d)?d(e):d;p!==e&&((h=i.current)==null||h.call(i,p))}else s(d)},[a,e,s,i]);return[c,l]}function dg({defaultProp:e,onChange:t}){const[n,r]=f.useState(e),o=f.useRef(n),s=f.useRef(t);return ug(()=>{s.current=t},[t]),f.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function fg(e){return typeof e=="function"}var hg=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"}),pg="VisuallyHidden",wl=f.forwardRef((e,t)=>u.jsx(ge.span,{...e,ref:t,style:{...hg,...e.style}}));wl.displayName=pg;var mg=wl,[eo]=_s("Tooltip",[ul]),to=ul(),Cl="TooltipProvider",gg=700,ss="tooltip.open",[yg,Ns]=eo(Cl),xl=e=>{const{__scopeTooltip:t,delayDuration:n=gg,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=f.useRef(!0),a=f.useRef(!1),c=f.useRef(0);return f.useEffect(()=>{const l=c.current;return()=>window.clearTimeout(l)},[]),u.jsx(yg,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:f.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:f.useCallback(l=>{a.current=l},[]),disableHoverableContent:o,children:s})};xl.displayName=Cl;var On="Tooltip",[vg,Wn]=eo(On),El=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:i,delayDuration:a}=e,c=Ns(On,e.__scopeTooltip),l=to(t),[d,h]=f.useState(null),p=Er(),g=f.useRef(0),w=i??c.disableHoverableContent,m=a??c.delayDuration,y=f.useRef(!1),[C,x]=bl({prop:r,defaultProp:o??!1,onChange:A=>{A?(c.onOpen(),document.dispatchEvent(new CustomEvent(ss))):c.onClose(),s==null||s(A)},caller:On}),S=f.useMemo(()=>C?y.current?"delayed-open":"instant-open":"closed",[C]),E=f.useCallback(()=>{window.clearTimeout(g.current),g.current=0,y.current=!1,x(!0)},[x]),_=f.useCallback(()=>{window.clearTimeout(g.current),g.current=0,x(!1)},[x]),P=f.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{y.current=!0,x(!0),g.current=0},m)},[m,x]);return f.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),u.jsx(eg,{...l,children:u.jsx(vg,{scope:t,contentId:p,open:C,stateAttribute:S,trigger:d,onTriggerChange:h,onTriggerEnter:f.useCallback(()=>{c.isOpenDelayedRef.current?P():E()},[c.isOpenDelayedRef,P,E]),onTriggerLeave:f.useCallback(()=>{w?_():(window.clearTimeout(g.current),g.current=0)},[_,w]),onOpen:E,onClose:_,disableHoverableContent:w,children:n})})};El.displayName=On;var is="TooltipTrigger",Sl=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Wn(is,n),s=Ns(is,n),i=to(n),a=f.useRef(null),c=Pe(t,a,o.onTriggerChange),l=f.useRef(!1),d=f.useRef(!1),h=f.useCallback(()=>l.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),u.jsx(tg,{asChild:!0,...i,children:u.jsx(ge.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:me(e.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:me(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:me(e.onPointerDown,()=>{o.open&&o.onClose(),l.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:me(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:me(e.onBlur,o.onClose),onClick:me(e.onClick,o.onClose)})})});Sl.displayName=is;var Ms="TooltipPortal",[bg,wg]=eo(Ms,{forceMount:void 0}),_l=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=Wn(Ms,t);return u.jsx(bg,{scope:t,forceMount:n,children:u.jsx(vn,{present:n||s.open,children:u.jsx(Is,{asChild:!0,container:o,children:r})})})};_l.displayName=Ms;var pn="TooltipContent",Rl=f.forwardRef((e,t)=>{const n=wg(pn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=Wn(pn,e.__scopeTooltip);return u.jsx(vn,{present:r||i.open,children:i.disableHoverableContent?u.jsx(Tl,{side:o,...s,ref:t}):u.jsx(Cg,{side:o,...s,ref:t})})}),Cg=f.forwardRef((e,t)=>{const n=Wn(pn,e.__scopeTooltip),r=Ns(pn,e.__scopeTooltip),o=f.useRef(null),s=Pe(t,o),[i,a]=f.useState(null),{trigger:c,onClose:l}=n,d=o.current,{onPointerInTransitChange:h}=r,p=f.useCallback(()=>{a(null),h(!1)},[h]),g=f.useCallback((w,m)=>{const y=w.currentTarget,C={x:w.clientX,y:w.clientY},x=_g(C,y.getBoundingClientRect()),S=Rg(C,x),E=Tg(m.getBoundingClientRect()),_=Pg([...S,...E]);a(_),h(!0)},[h]);return f.useEffect(()=>()=>p(),[p]),f.useEffect(()=>{if(c&&d){const w=y=>g(y,d),m=y=>g(y,c);return c.addEventListener("pointerleave",w),d.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",m)}}},[c,d,g,p]),f.useEffect(()=>{if(i){const w=m=>{const y=m.target,C={x:m.clientX,y:m.clientY},x=(c==null?void 0:c.contains(y))||(d==null?void 0:d.contains(y)),S=!Ag(C,i);x?p():S&&(p(),l())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[c,d,i,l,p]),u.jsx(Tl,{...e,ref:s})}),[xg,Eg]=eo(On,{isInside:!1}),Sg=lg("TooltipContent"),Tl=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,c=Wn(pn,n),l=to(n),{onClose:d}=c;return f.useEffect(()=>(document.addEventListener(ss,d),()=>document.removeEventListener(ss,d)),[d]),f.useEffect(()=>{if(c.trigger){const h=p=>{const g=p.target;g!=null&&g.contains(c.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,d]),u.jsx(Rs,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:u.jsxs(ng,{"data-state":c.stateAttribute,...l,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(Sg,{children:r}),u.jsx(xg,{scope:n,isInside:!0,children:u.jsx(mg,{id:c.contentId,role:"tooltip",children:o||r})})]})})});Rl.displayName=pn;var Al="TooltipArrow",Pl=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=to(n);return Eg(Al,n).isInside?null:u.jsx(rg,{...o,...r,ref:t})});Pl.displayName=Al;function _g(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 Rg(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 Tg(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 Ag(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],c=t[i],l=a.x,d=a.y,h=c.x,p=c.y;d>r!=p>r&&n<(h-l)*(r-d)/(p-d)+l&&(o=!o)}return o}function Pg(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),Og(t)}function Og(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 jg=xl,Dg=El,Lg=Sl,kg=_l,Ig=Rl,Ng=Pl;const Mg="tooltip__nUuSh",$g="tooltipArrow__W2w-f",oa={tooltip:Mg,tooltipArrow:$g},Ol=({children:e,open:t,displayName:n,tooltipContent:r,className:o,disabled:s,delayDuration:i=300,side:a="right",sideOffset:c=0})=>{const[l,d]=R.useState(!1),h=t!==void 0,g=s?!1:h?t:l,w=m=>{s||h||d(m)};return u.jsx(jg,{delayDuration:i,children:u.jsxs(Dg,{open:g,onOpenChange:w,children:[u.jsx(Lg,{asChild:!0,children:e}),u.jsx(kg,{children:u.jsxs(Ig,{className:D(oa.tooltip,o),side:a,sideOffset:c,children:[n,r,u.jsx(Ng,{className:oa.tooltipArrow})]})})]})})};Ol.displayName="Tooltip";const Fg="spinner__qa7F6",Bg="rotate__EqlXe",Ug="spinner-dark__9A9-q",Wg="spinner-white__gRbtI",Hg="spinner-success__otWGm",Vg="spinner-danger__Bq5DM",qg="spinner-warning__U900K",sa={spinner:Fg,rotate:Bg,"spinner-dark":"spinner-dark__9A9-q",spinnerDark:Ug,"spinner-white":"spinner-white__gRbtI",spinnerWhite:Wg,"spinner-success":"spinner-success__otWGm",spinnerSuccess:Hg,"spinner-danger":"spinner-danger__Bq5DM",spinnerDanger:Vg,"spinner-warning":"spinner-warning__U900K",spinnerWarning:qg},jl=({className:e,color:t="white",size:n=80,thickness:r})=>{const o=D(sa.spinner,sa[`spinner-${t}`],e),s=r??Math.max(n/12,2);return u.jsx("span",{style:{width:n,height:n,borderWidth:s},className:o})};jl.displayName="Spinner";const zg="disabled__KpauE",Gg="checked__2-JV-",Qg="thumb__fEuKD",ur={switch:"switch__0b2av",disabled:zg,checked:Gg,thumb:Qg},Dl=R.forwardRef(({checked:e,defaultChecked:t=!1,onCheckedChange:n,disabled:r=!1,id:o,className:s,name:i,"aria-label":a,"aria-labelledby":c,"aria-describedby":l,...d},h)=>{const[p,g]=R.useState(t),w=e!==void 0,m=w?!!e:p,y=()=>{if(r)return;const x=!m;w||g(x),n==null||n(x)},C=x=>{(x.key===" "||x.key==="Enter")&&(x.preventDefault(),y())};return u.jsx("button",{ref:h,type:"button",role:"switch","aria-checked":m,"aria-label":a,"aria-labelledby":c,"aria-describedby":l,disabled:r,id:o,name:i,className:D(ur.switch,{[ur.checked]:m,[ur.disabled]:r}),onClick:y,onKeyDown:C,...d,children:u.jsx("span",{className:ur.thumb,"aria-hidden":"true"})})});Dl.displayName="Switch";const Kg="tabs-root__ELmdj",Yg="tabs-list__rc10N",Zg="tabs-list--horizontal__e1YW4",Xg="tabs-list--vertical__huK05",Jg="tabs-trigger__D8R4R",ey="tabs-trigger--disabled__ezDWc",ty="tabs-trigger--horizontal__4jBFV",ny="tabs-trigger--active__S-Z-S",ry="tabs-trigger--vertical__dNVIZ",oy="tabs-content__1d77o",Ie={tabsRoot:Kg,tabsList:Yg,tabsListHorizontal:Zg,tabsListVertical:Xg,tabsTrigger:Jg,tabsTriggerDisabled:ey,tabsTriggerHorizontal:ty,tabsTriggerActive:ny,tabsTriggerVertical:ry,tabsContent:oy},Ll=R.createContext(null),$s=()=>{const e=R.useContext(Ll);if(!e)throw new Error("Tabs components must be used within a Tabs provider");return e},sy=({defaultValue:e,value:t,onValueChange:n,orientation:r="horizontal",className:o="",children:s})=>{const[i,a]=R.useState(e||""),c=t!==void 0,l=c?t:i,d=h=>{c||a(h),n==null||n(h)};return u.jsx(Ll.Provider,{value:{value:l,onValueChange:d,orientation:r},children:u.jsx("div",{className:D(Ie.tabsRoot,o),children:s})})},iy=({className:e="",children:t})=>{const{orientation:n}=$s(),r=R.useRef(null),o=s=>{var l;const i=(l=r.current)==null?void 0:l.querySelectorAll('[role="tab"]:not([disabled])');if(!i)return;const a=Array.from(i).findIndex(d=>d===document.activeElement);let c=a;switch(s.key){case"ArrowLeft":n==="horizontal"&&(s.preventDefault(),c=a>0?a-1:i.length-1);break;case"ArrowRight":n==="horizontal"&&(s.preventDefault(),c=a<i.length-1?a+1:0);break;case"ArrowUp":n==="vertical"&&(s.preventDefault(),c=a>0?a-1:i.length-1);break;case"ArrowDown":n==="vertical"&&(s.preventDefault(),c=a<i.length-1?a+1:0);break;case"Home":s.preventDefault(),c=0;break;case"End":s.preventDefault(),c=i.length-1;break}if(c!==a){const d=i[c];d.focus(),d.click()}};return u.jsx("div",{ref:r,role:"tablist","aria-orientation":n,onKeyDown:o,className:D(Ie.tabsList,n==="horizontal"?Ie.tabsListHorizontal:Ie.tabsListVertical,e),children:t})},ay=({value:e,disabled:t=!1,className:n="",children:r})=>{const{value:o,onValueChange:s,orientation:i}=$s(),a=o===e,c=()=>{t||s(e)};return u.jsx("button",{role:"tab","aria-selected":a,"aria-controls":`content-${e}`,tabIndex:a?0:-1,disabled:t,onClick:c,className:D(Ie.tabsTrigger,i==="horizontal"?Ie.tabsTriggerHorizontal:Ie.tabsTriggerVertical,a&&Ie.tabsTriggerActive,t&&Ie.tabsTriggerDisabled,n),children:r})},cy=({value:e,className:t="",children:n})=>{const{value:r}=$s();return r===e?u.jsx("div",{role:"tabpanel",id:`content-${e}`,"aria-labelledby":`trigger-${e}`,tabIndex:0,className:D(Ie.tabsContent,t),children:n}):null},kl=({className:e,state:t="open",onClick:n})=>t==="open"?u.jsxs("svg",{className:e,onClick:n,xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",viewBox:"0 0 14 14",fill:"none",children:[u.jsx("path",{d:"M1.41174 7.41635C1.3323 7.29056 1.29257 7.22766 1.27034 7.13065C1.25364 7.05778 1.25364 6.94287 1.27034 6.87C1.29257 6.77299 1.3323 6.71009 1.41174 6.58431C2.06823 5.54482 4.02232 2.91699 7.00024 2.91699C9.97815 2.91699 11.9322 5.54482 12.5887 6.5843C12.6682 6.71009 12.7079 6.77299 12.7301 6.87C12.7468 6.94287 12.7468 7.05778 12.7301 7.13065C12.7079 7.22766 12.6682 7.29056 12.5887 7.41635C11.9322 8.45584 9.97815 11.0837 7.00024 11.0837C4.02232 11.0837 2.06823 8.45584 1.41174 7.41635Z",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M7.00024 8.75033C7.96673 8.75033 8.75024 7.96682 8.75024 7.00033C8.75024 6.03383 7.96673 5.25033 7.00024 5.25033C6.03374 5.25033 5.25024 6.03383 5.25024 7.00033C5.25024 7.96682 6.03374 8.75033 7.00024 8.75033Z",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})]}):u.jsx("svg",{className:e,onClick:n,xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",viewBox:"0 0 14 14",fill:"none",children:u.jsx("path",{d:"M6.26672 2.97052C6.50379 2.93547 6.74835 2.91667 7.00024 2.91667C9.97816 2.91667 11.9323 5.54449 12.5887 6.58398C12.6682 6.70979 12.7079 6.7727 12.7302 6.86973C12.7469 6.94259 12.7468 7.05755 12.7301 7.13042C12.7079 7.22744 12.6679 7.29077 12.5879 7.41741C12.413 7.69425 12.1463 8.08331 11.793 8.50527M3.92252 3.9171C2.66131 4.77266 1.8051 5.9613 1.41231 6.58308C1.3325 6.70942 1.29259 6.7726 1.27035 6.86961C1.25364 6.94248 1.25363 7.05742 1.27033 7.13029C1.29257 7.22731 1.33229 7.29022 1.41174 7.41602C2.06823 8.45551 4.02232 11.0833 7.00024 11.0833C8.20098 11.0833 9.23526 10.6561 10.0851 10.078M1.75024 1.75L12.2502 12.25M5.76281 5.76256C5.44612 6.07925 5.25024 6.51675 5.25024 7C5.25024 7.9665 6.03374 8.75 7.00024 8.75C7.48349 8.75 7.92099 8.55413 8.23768 8.23744",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})}),ly="PasswordInput__GDJDN",uy="eyeIcon__kDExG",ia={PasswordInput:ly,eyeIcon:uy},dy=R.forwardRef((e,t)=>{const[n,r]=R.useState("password"),o=R.useCallback(()=>{r(s=>s==="password"?"text":"password")},[r]);return u.jsxs("div",{className:D(ia.PasswordInput,e.className),children:[u.jsx(zr,{type:n,...e,ref:t}),u.jsx(kl,{className:ia.eyeIcon,onClick:o,state:n==="password"?"open":"closed"})]})});var wo="focusScope.autoFocusOnMount",Co="focusScope.autoFocusOnUnmount",aa={bubbles:!1,cancelable:!0},fy="FocusScope",Il=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,c]=f.useState(null),l=fn(o),d=fn(s),h=f.useRef(null),p=Pe(t,m=>c(m)),g=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let m=function(S){if(g.paused||!a)return;const E=S.target;a.contains(E)?h.current=E:Je(h.current,{select:!0})},y=function(S){if(g.paused||!a)return;const E=S.relatedTarget;E!==null&&(a.contains(E)||Je(h.current,{select:!0}))},C=function(S){if(document.activeElement===document.body)for(const _ of S)_.removedNodes.length>0&&Je(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",y);const x=new MutationObserver(C);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",y),x.disconnect()}}},[r,a,g.paused]),f.useEffect(()=>{if(a){la.add(g);const m=document.activeElement;if(!a.contains(m)){const C=new CustomEvent(wo,aa);a.addEventListener(wo,l),a.dispatchEvent(C),C.defaultPrevented||(hy(vy(Nl(a)),{select:!0}),document.activeElement===m&&Je(a))}return()=>{a.removeEventListener(wo,l),setTimeout(()=>{const C=new CustomEvent(Co,aa);a.addEventListener(Co,d),a.dispatchEvent(C),C.defaultPrevented||Je(m??document.body,{select:!0}),a.removeEventListener(Co,d),la.remove(g)},0)}}},[a,l,d,g]);const w=f.useCallback(m=>{if(!n&&!r||g.paused)return;const y=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,C=document.activeElement;if(y&&C){const x=m.currentTarget,[S,E]=py(x);S&&E?!m.shiftKey&&C===E?(m.preventDefault(),n&&Je(S,{select:!0})):m.shiftKey&&C===S&&(m.preventDefault(),n&&Je(E,{select:!0})):C===x&&m.preventDefault()}},[n,r,g.paused]);return u.jsx(ge.div,{tabIndex:-1,...i,ref:p,onKeyDown:w})});Il.displayName=fy;function hy(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Je(r,{select:t}),document.activeElement!==n)return}function py(e){const t=Nl(e),n=ca(t,e),r=ca(t.reverse(),e);return[n,r]}function Nl(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 ca(e,t){for(const n of e)if(!my(n,{upTo:t}))return n}function my(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 gy(e){return e instanceof HTMLInputElement&&"select"in e}function Je(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&gy(e)&&t&&e.select()}}var la=yy();function yy(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ua(e,t),e.unshift(t)},remove(t){var n;e=ua(e,t),(n=e[0])==null||n.resume()}}}function ua(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function vy(e){return e.filter(t=>t.tagName!=="A")}var xo=0;function by(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??da()),document.body.insertAdjacentElement("beforeend",e[1]??da()),xo++,()=>{xo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),xo--}},[])}function da(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var _r="right-scroll-bar-position",Rr="width-before-scroll-bar",wy="with-scroll-bars-hidden",Cy="--removed-body-scroll-bar-size";function Eo(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function xy(e,t){var n=R.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 Ey=typeof window<"u"?f.useLayoutEffect:f.useEffect,fa=new WeakMap;function Sy(e,t){var n=xy(null,function(r){return e.forEach(function(o){return Eo(o,r)})});return Ey(function(){var r=fa.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||Eo(a,null)}),s.forEach(function(a){o.has(a)||Eo(a,i)})}fa.set(n,e)},[e]),n}function _y(e){return e}function Ry(e,t){t===void 0&&(t=_y);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var c=function(){var d=i;i=[],d.forEach(s)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(d){i.push(d),l()},filter:function(d){return i=i.filter(d),n}}}};return o}function Ty(e){e===void 0&&(e={});var t=Ry(null);return t.options=ke({async:!0,ssr:!1},e),t}var Ml=function(e){var t=e.sideCar,n=ac(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 f.createElement(r,ke({},n))};Ml.isSideCarExport=!0;function Ay(e,t){return e.useMedium(t),Ml}var $l=Ty(),So=function(){},no=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:So,onWheelCapture:So,onTouchMoveCapture:So}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,d=e.enabled,h=e.shards,p=e.sideCar,g=e.noRelative,w=e.noIsolation,m=e.inert,y=e.allowPinchZoom,C=e.as,x=C===void 0?"div":C,S=e.gapMode,E=ac(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=p,P=Sy([n,t]),A=ke(ke({},E),o);return f.createElement(f.Fragment,null,d&&f.createElement(_,{sideCar:$l,removeScrollBar:l,shards:h,noRelative:g,noIsolation:w,inert:m,setCallbacks:s,allowPinchZoom:!!y,lockRef:n,gapMode:S}),i?f.cloneElement(f.Children.only(a),ke(ke({},A),{ref:P})):f.createElement(x,ke({},A,{className:c,ref:P}),a))});no.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};no.classNames={fullWidth:Rr,zeroRight:_r};var Py=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Oy(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Py();return t&&e.setAttribute("nonce",t),e}function jy(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Dy(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ly=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Oy())&&(jy(t,n),Dy(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ky=function(){var e=Ly();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Fl=function(){var e=ky(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Iy={left:0,top:0,right:0,gap:0},_o=function(e){return parseInt(e||"",10)||0},Ny=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[_o(n),_o(r),_o(o)]},My=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Iy;var t=Ny(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])}},$y=Fl(),Zt="data-scroll-locked",Fy=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
209
|
-
.`.concat(
|
|
208
|
+
`,Jn=16,Kf=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,containerStyle:s,containerClassName:i})=>{let{toasts:a,handlers:c}=Ef(n);return f.createElement("div",{style:{position:"fixed",zIndex:9999,top:Jn,left:Jn,right:Jn,bottom:Jn,pointerEvents:"none",...s},className:i,onMouseEnter:c.startPause,onMouseLeave:c.endPause},a.map(l=>{let d=l.position||t,h=c.calculateOffset(l,{reverseOrder:e,gutter:r,defaultPosition:t}),p=Gf(d,h);return f.createElement(zf,{id:l.id,key:l.id,onHeightUpdate:c.updateHeight,className:l.visible?Qf:"",style:p},l.type==="custom"?Ar(l.message,l):o?o(l):f.createElement(qf,{toast:l,position:d}))}))},xi=be;const ms=()=>({notify:R.useCallback((t,n,r)=>{const o={style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}};n==="warning"||n==="info"?xi(t,{...o,icon:n==="warning"?"⚠️":"ℹ️"}):xi[n](t,o),r&&console.error(r)},[])});var mn=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(){}},Nt=typeof window>"u"||"Deno"in globalThis;function ue(){}function Yf(e,t){return typeof e=="function"?e(t):e}function $o(e){return typeof e=="number"&&e>=0&&e!==1/0}function yc(e,t){return Math.max(e+(t||0)-Date.now(),0)}function pt(e,t){return typeof e=="function"?e(t):e}function _e(e,t){return typeof e=="function"?e(t):e}function Ei(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==gs(i,t.options))return!1}else if(!Tn(t.queryKey,i))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function Si(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Mt(t.options.mutationKey)!==Mt(s))return!1}else if(!Tn(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function gs(e,t){return((t==null?void 0:t.queryKeyHashFn)||Mt)(e)}function Mt(e){return JSON.stringify(e,(t,n)=>Bo(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Tn(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Tn(e[n],t[n])):!1}function Fo(e,t){if(e===t)return e;const n=_i(e)&&_i(t);if(n||Bo(e)&&Bo(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,a=n?[]:{};let c=0;for(let l=0;l<i;l++){const d=n?l:s[l];(!n&&r.includes(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,c++):(a[d]=Fo(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&c++)}return o===i&&c===o?e:a}return t}function Pr(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 _i(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Bo(e){if(!Ri(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Ri(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Ri(e){return Object.prototype.toString.call(e)==="[object Object]"}function Zf(e){return new Promise(t=>{setTimeout(t,e)})}function Uo(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){try{return Fo(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 Fo(e,t)}return t}function Xf(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Jf(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Or=Symbol();function vc(e,t){return e.queryFn===Or&&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===Or?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function bc(e,t){return typeof e=="function"?e(...t):!!e}var Tt,nt,Xt,xa,eh=(xa=class extends mn{constructor(){super();L(this,Tt);L(this,nt);L(this,Xt);O(this,Xt,t=>{if(!Nt&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){b(this,nt)||this.setEventListener(b(this,Xt))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,nt))==null||t.call(this),O(this,nt,void 0))}setEventListener(t){var n;O(this,Xt,t),(n=b(this,nt))==null||n.call(this),O(this,nt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){b(this,Tt)!==t&&(O(this,Tt,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof b(this,Tt)=="boolean"?b(this,Tt):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Tt=new WeakMap,nt=new WeakMap,Xt=new WeakMap,xa),ys=new eh,Jt,rt,en,Ea,th=(Ea=class extends mn{constructor(){super();L(this,Jt,!0);L(this,rt);L(this,en);O(this,en,t=>{if(!Nt&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){b(this,rt)||this.setEventListener(b(this,en))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,rt))==null||t.call(this),O(this,rt,void 0))}setEventListener(t){var n;O(this,en,t),(n=b(this,rt))==null||n.call(this),O(this,rt,t(this.setOnline.bind(this)))}setOnline(t){b(this,Jt)!==t&&(O(this,Jt,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return b(this,Jt)}},Jt=new WeakMap,rt=new WeakMap,en=new WeakMap,Ea),jr=new th;function Wo(){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 nh(e){return Math.min(1e3*2**e,3e4)}function wc(e){return(e??"online")==="online"?jr.isOnline():!0}var Cc=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function mo(e){return e instanceof Cc}function xc(e){let t=!1,n=0,r=!1,o;const s=Wo(),i=m=>{var y;r||(p(new Cc(m)),(y=e.abort)==null||y.call(e))},a=()=>{t=!0},c=()=>{t=!1},l=()=>ys.isFocused()&&(e.networkMode==="always"||jr.isOnline())&&e.canRun(),d=()=>wc(e.networkMode)&&e.canRun(),h=m=>{var y;r||(r=!0,(y=e.onSuccess)==null||y.call(e,m),o==null||o(),s.resolve(m))},p=m=>{var y;r||(r=!0,(y=e.onError)==null||y.call(e,m),o==null||o(),s.reject(m))},g=()=>new Promise(m=>{var y;o=C=>{(r||l())&&m(C)},(y=e.onPause)==null||y.call(e)}).then(()=>{var m;o=void 0,r||(m=e.onContinue)==null||m.call(e)}),w=()=>{if(r)return;let m;const y=n===0?e.initialPromise:void 0;try{m=y??e.fn()}catch(C){m=Promise.reject(C)}Promise.resolve(m).then(h).catch(C=>{var P;if(r)return;const x=e.retry??(Nt?0:3),S=e.retryDelay??nh,E=typeof S=="function"?S(n,C):S,_=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,C);if(t||!_){p(C);return}n++,(P=e.onFail)==null||P.call(e,n,C),Zf(E).then(()=>l()?void 0:g()).then(()=>{t?p(C):w()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:a,continueRetry:c,canStart:d,start:()=>(d()?w():g().then(w),s)}}var rh=e=>setTimeout(e,0);function oh(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=rh;const s=a=>{t?e.push(a):o(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||i()}return c},batchCalls:a=>(...c)=>{s(()=>{a(...c)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var oe=oh(),At,Sa,Ec=(Sa=class{constructor(){L(this,At)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),$o(this.gcTime)&&O(this,At,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Nt?1/0:5*60*1e3))}clearGcTimeout(){b(this,At)&&(clearTimeout(b(this,At)),O(this,At,void 0))}},At=new WeakMap,Sa),tn,nn,xe,Pt,se,Dn,Ot,Ee,He,_a,sh=(_a=class extends Ec{constructor(t){super();L(this,Ee);L(this,tn);L(this,nn);L(this,xe);L(this,Pt);L(this,se);L(this,Dn);L(this,Ot);O(this,Ot,!1),O(this,Dn,t.defaultOptions),this.setOptions(t.options),this.observers=[],O(this,Pt,t.client),O(this,xe,b(this,Pt).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,O(this,tn,ih(this.options)),this.state=t.state??b(this,tn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=b(this,se))==null?void 0:t.promise}setOptions(t){this.options={...b(this,Dn),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&b(this,xe).remove(this)}setData(t,n){const r=Uo(this.state.data,t,this.options);return $(this,Ee,He).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){$(this,Ee,He).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=b(this,se))==null?void 0:r.promise;return(o=b(this,se))==null||o.cancel(t),n?n.then(ue).catch(ue):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(b(this,tn))}isActive(){return this.observers.some(t=>_e(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Or||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>pt(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:!yc(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=b(this,se))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=b(this,se))==null||n.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(n=>n!==t),this.observers.length||(b(this,se)&&(b(this,Ot)?b(this,se).cancel({revert:!0}):b(this,se).cancelRetry()),this.scheduleGc()),b(this,xe).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||$(this,Ee,He).call(this,{type:"invalidate"})}fetch(t,n){var l,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(b(this,se))return b(this,se).continueRetry(),b(this,se).promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(g=>g.options.queryFn);p&&this.setOptions(p.options)}Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']");const r=new AbortController,o=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(O(this,Ot,!0),r.signal)})},s=()=>{const p=vc(this.options,n),w=(()=>{const m={client:b(this,Pt),queryKey:this.queryKey,meta:this.meta};return o(m),m})();return O(this,Ot,!1),this.options.persister?this.options.persister(p,w,this):p(w)},a=(()=>{const p={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:b(this,Pt),state:this.state,fetchFn:s};return o(p),p})();(l=this.options.behavior)==null||l.onFetch(a,this),O(this,nn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&$(this,Ee,He).call(this,{type:"fetch",meta:(h=a.fetchOptions)==null?void 0:h.meta});const c=p=>{var g,w,m,y;mo(p)&&p.silent||$(this,Ee,He).call(this,{type:"error",error:p}),mo(p)||((w=(g=b(this,xe).config).onError)==null||w.call(g,p,this),(y=(m=b(this,xe).config).onSettled)==null||y.call(m,this.state.data,p,this)),this.scheduleGc()};return O(this,se,xc({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:p=>{var g,w,m,y;if(p===void 0){console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(C){c(C);return}(w=(g=b(this,xe).config).onSuccess)==null||w.call(g,p,this),(y=(m=b(this,xe).config).onSettled)==null||y.call(m,p,this.state.error,this),this.scheduleGc()},onError:c,onFail:(p,g)=>{$(this,Ee,He).call(this,{type:"failed",failureCount:p,error:g})},onPause:()=>{$(this,Ee,He).call(this,{type:"pause"})},onContinue:()=>{$(this,Ee,He).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),b(this,se).start()}},tn=new WeakMap,nn=new WeakMap,xe=new WeakMap,Pt=new WeakMap,se=new WeakMap,Dn=new WeakMap,Ot=new WeakMap,Ee=new WeakSet,He=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,...Sc(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 mo(o)&&o.revert&&b(this,nn)?{...b(this,nn),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),oe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),b(this,xe).notify({query:this,type:"updated",action:t})})},_a);function Sc(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:wc(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function ih(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 je,Ra,ah=(Ra=class extends mn{constructor(t={}){super();L(this,je);this.config=t,O(this,je,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??gs(o,n);let i=this.get(s);return i||(i=new sh({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){b(this,je).has(t.queryHash)||(b(this,je).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=b(this,je).get(t.queryHash);n&&(t.destroy(),n===t&&b(this,je).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){oe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return b(this,je).get(t)}getAll(){return[...b(this,je).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ei(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Ei(t,r)):n}notify(t){oe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){oe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){oe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},je=new WeakMap,Ra),De,ce,jt,Le,Xe,Ta,ch=(Ta=class extends Ec{constructor(t){super();L(this,Le);L(this,De);L(this,ce);L(this,jt);this.mutationId=t.mutationId,O(this,ce,t.mutationCache),O(this,De,[]),this.state=t.state||_c(),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,De).includes(t)||(b(this,De).push(t),this.clearGcTimeout(),b(this,ce).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){O(this,De,b(this,De).filter(n=>n!==t)),this.scheduleGc(),b(this,ce).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){b(this,De).length||(this.state.status==="pending"?this.scheduleGc():b(this,ce).remove(this))}continue(){var t;return((t=b(this,jt))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,i,a,c,l,d,h,p,g,w,m,y,C,x,S,E,_,P,A,M;const n=()=>{$(this,Le,Xe).call(this,{type:"continue"})};O(this,jt,xc({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(I,k)=>{$(this,Le,Xe).call(this,{type:"failed",failureCount:I,error:k})},onPause:()=>{$(this,Le,Xe).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>b(this,ce).canRun(this)}));const r=this.state.status==="pending",o=!b(this,jt).canStart();try{if(r)n();else{$(this,Le,Xe).call(this,{type:"pending",variables:t,isPaused:o}),await((i=(s=b(this,ce).config).onMutate)==null?void 0:i.call(s,t,this));const k=await((c=(a=this.options).onMutate)==null?void 0:c.call(a,t));k!==this.state.context&&$(this,Le,Xe).call(this,{type:"pending",context:k,variables:t,isPaused:o})}const I=await b(this,jt).start();return await((d=(l=b(this,ce).config).onSuccess)==null?void 0:d.call(l,I,t,this.state.context,this)),await((p=(h=this.options).onSuccess)==null?void 0:p.call(h,I,t,this.state.context)),await((w=(g=b(this,ce).config).onSettled)==null?void 0:w.call(g,I,null,this.state.variables,this.state.context,this)),await((y=(m=this.options).onSettled)==null?void 0:y.call(m,I,null,t,this.state.context)),$(this,Le,Xe).call(this,{type:"success",data:I}),I}catch(I){try{throw await((x=(C=b(this,ce).config).onError)==null?void 0:x.call(C,I,t,this.state.context,this)),await((E=(S=this.options).onError)==null?void 0:E.call(S,I,t,this.state.context)),await((P=(_=b(this,ce).config).onSettled)==null?void 0:P.call(_,void 0,I,this.state.variables,this.state.context,this)),await((M=(A=this.options).onSettled)==null?void 0:M.call(A,void 0,I,t,this.state.context)),I}finally{$(this,Le,Xe).call(this,{type:"error",error:I})}}finally{b(this,ce).runNext(this)}}},De=new WeakMap,ce=new WeakMap,jt=new WeakMap,Le=new WeakSet,Xe=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),oe.batch(()=>{b(this,De).forEach(r=>{r.onMutationUpdate(t)}),b(this,ce).notify({mutation:this,type:"updated",action:t})})},Ta);function _c(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ve,Se,Ln,Aa,lh=(Aa=class extends mn{constructor(t={}){super();L(this,Ve);L(this,Se);L(this,Ln);this.config=t,O(this,Ve,new Set),O(this,Se,new Map),O(this,Ln,0)}build(t,n,r){const o=new ch({mutationCache:this,mutationId:++Yn(this,Ln)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){b(this,Ve).add(t);const n=er(t);if(typeof n=="string"){const r=b(this,Se).get(n);r?r.push(t):b(this,Se).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(b(this,Ve).delete(t)){const n=er(t);if(typeof n=="string"){const r=b(this,Se).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&b(this,Se).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=er(t);if(typeof n=="string"){const r=b(this,Se).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=er(t);if(typeof n=="string"){const o=(r=b(this,Se).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(){oe.batch(()=>{b(this,Ve).forEach(t=>{this.notify({type:"removed",mutation:t})}),b(this,Ve).clear(),b(this,Se).clear()})}getAll(){return Array.from(b(this,Ve))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Si(n,r))}findAll(t={}){return this.getAll().filter(n=>Si(t,n))}notify(t){oe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return oe.batch(()=>Promise.all(t.map(n=>n.continue().catch(ue))))}},Ve=new WeakMap,Se=new WeakMap,Ln=new WeakMap,Aa);function er(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Ti(e){return{onFetch:(t,n)=>{var d,h,p,g,w;const r=t.options,o=(p=(h=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:p.direction,s=((g=t.state.data)==null?void 0:g.pages)||[],i=((w=t.state.data)==null?void 0:w.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let m=!1;const y=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},C=vc(t.options,t.fetchOptions),x=async(S,E,_)=>{if(m)return Promise.reject();if(E==null&&S.pages.length)return Promise.resolve(S);const A=(()=>{const V={client:t.client,queryKey:t.queryKey,pageParam:E,direction:_?"backward":"forward",meta:t.options.meta};return y(V),V})(),M=await C(A),{maxPages:I}=t.options,k=_?Jf:Xf;return{pages:k(S.pages,M,I),pageParams:k(S.pageParams,E,I)}};if(o&&s.length){const S=o==="backward",E=S?uh:Ai,_={pages:s,pageParams:i},P=E(r,_);a=await x(_,P,S)}else{const S=e??s.length;do{const E=c===0?i[0]??r.initialPageParam:Ai(r,a);if(c>0&&E==null)break;a=await x(a,E),c++}while(c<S)}return a};t.options.persister?t.fetchFn=()=>{var m,y;return(y=(m=t.options).persister)==null?void 0:y.call(m,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function Ai(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 uh(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 J,ot,st,rn,on,it,sn,an,Pa,dh=(Pa=class{constructor(e={}){L(this,J);L(this,ot);L(this,st);L(this,rn);L(this,on);L(this,it);L(this,sn);L(this,an);O(this,J,e.queryCache||new ah),O(this,ot,e.mutationCache||new lh),O(this,st,e.defaultOptions||{}),O(this,rn,new Map),O(this,on,new Map),O(this,it,0)}mount(){Yn(this,it)._++,b(this,it)===1&&(O(this,sn,ys.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,J).onFocus())})),O(this,an,jr.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,J).onOnline())})))}unmount(){var e,t;Yn(this,it)._--,b(this,it)===0&&((e=b(this,sn))==null||e.call(this),O(this,sn,void 0),(t=b(this,an))==null||t.call(this),O(this,an,void 0))}isFetching(e){return b(this,J).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return b(this,ot).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=b(this,J).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=b(this,J).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(pt(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return b(this,J).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=b(this,J).get(r.queryHash),s=o==null?void 0:o.state.data,i=Yf(t,s);if(i!==void 0)return b(this,J).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return oe.batch(()=>b(this,J).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=b(this,J).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=b(this,J);oe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=b(this,J);return oe.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=oe.batch(()=>b(this,J).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(ue).catch(ue)}invalidateQueries(e,t={}){return oe.batch(()=>(b(this,J).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=oe.batch(()=>b(this,J).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(ue)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(ue)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=b(this,J).build(this,t);return n.isStaleByTime(pt(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ue).catch(ue)}fetchInfiniteQuery(e){return e.behavior=Ti(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ue).catch(ue)}ensureInfiniteQueryData(e){return e.behavior=Ti(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return jr.isOnline()?b(this,ot).resumePausedMutations():Promise.resolve()}getQueryCache(){return b(this,J)}getMutationCache(){return b(this,ot)}getDefaultOptions(){return b(this,st)}setDefaultOptions(e){O(this,st,e)}setQueryDefaults(e,t){b(this,rn).set(Mt(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...b(this,rn).values()],n={};return t.forEach(r=>{Tn(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){b(this,on).set(Mt(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...b(this,on).values()],n={};return t.forEach(r=>{Tn(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...b(this,st).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=gs(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===Or&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...b(this,st).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){b(this,J).clear(),b(this,ot).clear()}},J=new WeakMap,ot=new WeakMap,st=new WeakMap,rn=new WeakMap,on=new WeakMap,it=new WeakMap,sn=new WeakMap,an=new WeakMap,Pa),he,U,kn,le,Dt,cn,at,ct,In,ln,un,Lt,kt,lt,dn,z,En,Ho,Vo,qo,zo,Go,Qo,Ko,Rc,Oa,fh=(Oa=class extends mn{constructor(t,n){super();L(this,z);L(this,he);L(this,U);L(this,kn);L(this,le);L(this,Dt);L(this,cn);L(this,at);L(this,ct);L(this,In);L(this,ln);L(this,un);L(this,Lt);L(this,kt);L(this,lt);L(this,dn,new Set);this.options=n,O(this,he,t),O(this,ct,null),O(this,at,Wo()),this.options.experimental_prefetchInRender||b(this,at).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(b(this,U).addObserver(this),Pi(b(this,U),this.options)?$(this,z,En).call(this):this.updateResult(),$(this,z,zo).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Yo(b(this,U),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Yo(b(this,U),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,$(this,z,Go).call(this),$(this,z,Qo).call(this),b(this,U).removeObserver(this)}setOptions(t){const n=this.options,r=b(this,U);if(this.options=b(this,he).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof _e(this.options.enabled,b(this,U))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");$(this,z,Ko).call(this),b(this,U).setOptions(this.options),n._defaulted&&!Pr(this.options,n)&&b(this,he).getQueryCache().notify({type:"observerOptionsUpdated",query:b(this,U),observer:this});const o=this.hasListeners();o&&Oi(b(this,U),r,this.options,n)&&$(this,z,En).call(this),this.updateResult(),o&&(b(this,U)!==r||_e(this.options.enabled,b(this,U))!==_e(n.enabled,b(this,U))||pt(this.options.staleTime,b(this,U))!==pt(n.staleTime,b(this,U)))&&$(this,z,Ho).call(this);const s=$(this,z,Vo).call(this);o&&(b(this,U)!==r||_e(this.options.enabled,b(this,U))!==_e(n.enabled,b(this,U))||s!==b(this,lt))&&$(this,z,qo).call(this,s)}getOptimisticResult(t){const n=b(this,he).getQueryCache().build(b(this,he),t),r=this.createResult(n,t);return ph(this,r)&&(O(this,le,r),O(this,cn,this.options),O(this,Dt,b(this,U).state)),r}getCurrentResult(){return b(this,le)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),Reflect.get(r,o))})}trackProp(t){b(this,dn).add(t)}getCurrentQuery(){return b(this,U)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=b(this,he).defaultQueryOptions(t),r=b(this,he).getQueryCache().build(b(this,he),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return $(this,z,En).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),b(this,le)))}createResult(t,n){var I;const r=b(this,U),o=this.options,s=b(this,le),i=b(this,Dt),a=b(this,cn),l=t!==r?t.state:b(this,kn),{state:d}=t;let h={...d},p=!1,g;if(n._optimisticResults){const k=this.hasListeners(),V=!k&&Pi(t,n),Q=k&&Oi(t,r,n,o);(V||Q)&&(h={...h,...Sc(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:w,errorUpdatedAt:m,status:y}=h;g=h.data;let C=!1;if(n.placeholderData!==void 0&&g===void 0&&y==="pending"){let k;s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(k=s.data,C=!0):k=typeof n.placeholderData=="function"?n.placeholderData((I=b(this,un))==null?void 0:I.state.data,b(this,un)):n.placeholderData,k!==void 0&&(y="success",g=Uo(s==null?void 0:s.data,k,n),p=!0)}if(n.select&&g!==void 0&&!C)if(s&&g===(i==null?void 0:i.data)&&n.select===b(this,In))g=b(this,ln);else try{O(this,In,n.select),g=n.select(g),g=Uo(s==null?void 0:s.data,g,n),O(this,ln,g),O(this,ct,null)}catch(k){O(this,ct,k)}b(this,ct)&&(w=b(this,ct),g=b(this,ln),m=Date.now(),y="error");const x=h.fetchStatus==="fetching",S=y==="pending",E=y==="error",_=S&&x,P=g!==void 0,M={status:y,fetchStatus:h.fetchStatus,isPending:S,isSuccess:y==="success",isError:E,isInitialLoading:_,isLoading:_,data:g,dataUpdatedAt:h.dataUpdatedAt,error:w,errorUpdatedAt:m,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>l.dataUpdateCount||h.errorUpdateCount>l.errorUpdateCount,isFetching:x,isRefetching:x&&!S,isLoadingError:E&&!P,isPaused:h.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:E&&P,isStale:vs(t,n),refetch:this.refetch,promise:b(this,at)};if(this.options.experimental_prefetchInRender){const k=H=>{M.status==="error"?H.reject(M.error):M.data!==void 0&&H.resolve(M.data)},V=()=>{const H=O(this,at,M.promise=Wo());k(H)},Q=b(this,at);switch(Q.status){case"pending":t.queryHash===r.queryHash&&k(Q);break;case"fulfilled":(M.status==="error"||M.data!==Q.value)&&V();break;case"rejected":(M.status!=="error"||M.error!==Q.reason)&&V();break}}return M}updateResult(){const t=b(this,le),n=this.createResult(b(this,U),this.options);if(O(this,Dt,b(this,U).state),O(this,cn,this.options),b(this,Dt).data!==void 0&&O(this,un,b(this,U)),Pr(n,t))return;O(this,le,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!b(this,dn).size)return!0;const i=new Set(s??b(this,dn));return this.options.throwOnError&&i.add("error"),Object.keys(b(this,le)).some(a=>{const c=a;return b(this,le)[c]!==t[c]&&i.has(c)})};$(this,z,Rc).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&$(this,z,zo).call(this)}},he=new WeakMap,U=new WeakMap,kn=new WeakMap,le=new WeakMap,Dt=new WeakMap,cn=new WeakMap,at=new WeakMap,ct=new WeakMap,In=new WeakMap,ln=new WeakMap,un=new WeakMap,Lt=new WeakMap,kt=new WeakMap,lt=new WeakMap,dn=new WeakMap,z=new WeakSet,En=function(t){$(this,z,Ko).call(this);let n=b(this,U).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(ue)),n},Ho=function(){$(this,z,Go).call(this);const t=pt(this.options.staleTime,b(this,U));if(Nt||b(this,le).isStale||!$o(t))return;const r=yc(b(this,le).dataUpdatedAt,t)+1;O(this,Lt,setTimeout(()=>{b(this,le).isStale||this.updateResult()},r))},Vo=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(b(this,U)):this.options.refetchInterval)??!1},qo=function(t){$(this,z,Qo).call(this),O(this,lt,t),!(Nt||_e(this.options.enabled,b(this,U))===!1||!$o(b(this,lt))||b(this,lt)===0)&&O(this,kt,setInterval(()=>{(this.options.refetchIntervalInBackground||ys.isFocused())&&$(this,z,En).call(this)},b(this,lt)))},zo=function(){$(this,z,Ho).call(this),$(this,z,qo).call(this,$(this,z,Vo).call(this))},Go=function(){b(this,Lt)&&(clearTimeout(b(this,Lt)),O(this,Lt,void 0))},Qo=function(){b(this,kt)&&(clearInterval(b(this,kt)),O(this,kt,void 0))},Ko=function(){const t=b(this,he).getQueryCache().build(b(this,he),this.options);if(t===b(this,U))return;const n=b(this,U);O(this,U,t),O(this,kn,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Rc=function(t){oe.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(b(this,le))}),b(this,he).getQueryCache().notify({query:b(this,U),type:"observerResultsUpdated"})})},Oa);function hh(e,t){return _e(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Pi(e,t){return hh(e,t)||e.state.data!==void 0&&Yo(e,t,t.refetchOnMount)}function Yo(e,t,n){if(_e(t.enabled,e)!==!1&&pt(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&vs(e,t)}return!1}function Oi(e,t,n,r){return(e!==t||_e(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&vs(e,n)}function vs(e,t){return _e(t.enabled,e)!==!1&&e.isStaleByTime(pt(t.staleTime,e))}function ph(e,t){return!Pr(e.getCurrentResult(),t)}var ut,dt,pe,qe,Ge,Cr,Zo,ja,mh=(ja=class extends mn{constructor(n,r){super();L(this,Ge);L(this,ut);L(this,dt);L(this,pe);L(this,qe);O(this,ut,n),this.setOptions(r),this.bindMethods(),$(this,Ge,Cr).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=b(this,ut).defaultMutationOptions(n),Pr(this.options,r)||b(this,ut).getMutationCache().notify({type:"observerOptionsUpdated",mutation:b(this,pe),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Mt(r.mutationKey)!==Mt(this.options.mutationKey)?this.reset():((o=b(this,pe))==null?void 0:o.state.status)==="pending"&&b(this,pe).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=b(this,pe))==null||n.removeObserver(this)}onMutationUpdate(n){$(this,Ge,Cr).call(this),$(this,Ge,Zo).call(this,n)}getCurrentResult(){return b(this,dt)}reset(){var n;(n=b(this,pe))==null||n.removeObserver(this),O(this,pe,void 0),$(this,Ge,Cr).call(this),$(this,Ge,Zo).call(this)}mutate(n,r){var o;return O(this,qe,r),(o=b(this,pe))==null||o.removeObserver(this),O(this,pe,b(this,ut).getMutationCache().build(b(this,ut),this.options)),b(this,pe).addObserver(this),b(this,pe).execute(n)}},ut=new WeakMap,dt=new WeakMap,pe=new WeakMap,qe=new WeakMap,Ge=new WeakSet,Cr=function(){var r;const n=((r=b(this,pe))==null?void 0:r.state)??_c();O(this,dt,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Zo=function(n){oe.batch(()=>{var r,o,s,i,a,c,l,d;if(b(this,qe)&&this.hasListeners()){const h=b(this,dt).variables,p=b(this,dt).context;(n==null?void 0:n.type)==="success"?((o=(r=b(this,qe)).onSuccess)==null||o.call(r,n.data,h,p),(i=(s=b(this,qe)).onSettled)==null||i.call(s,n.data,null,h,p)):(n==null?void 0:n.type)==="error"&&((c=(a=b(this,qe)).onError)==null||c.call(a,n.error,h,p),(d=(l=b(this,qe)).onSettled)==null||d.call(l,void 0,n.error,h,p))}this.listeners.forEach(h=>{h(b(this,dt))})})},ja),Tc=f.createContext(void 0),bs=e=>{const t=f.useContext(Tc);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},gh=({client:e,children:t})=>(f.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(Tc.Provider,{value:e,children:t})),Ac=f.createContext(!1),yh=()=>f.useContext(Ac);Ac.Provider;function vh(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var bh=f.createContext(vh()),wh=()=>f.useContext(bh),Ch=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},xh=e=>{f.useEffect(()=>{e.clearReset()},[e])},Eh=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||bc(n,[e.error,r])),Sh=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))}},_h=(e,t)=>e.isLoading&&e.isFetching&&!t,Rh=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,ji=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Th(e,t,n){var h,p,g,w,m;if(typeof e!="object"||Array.isArray(e))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=yh(),o=wh(),s=bs(),i=s.defaultQueryOptions(e);(p=(h=s.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||p.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",Sh(i),Ch(i,o),xh(o);const a=!s.getQueryCache().get(i.queryHash),[c]=f.useState(()=>new t(s,i)),l=c.getOptimisticResult(i),d=!r&&e.subscribed!==!1;if(f.useSyncExternalStore(f.useCallback(y=>{const C=d?c.subscribe(oe.batchCalls(y)):ue;return c.updateResult(),C},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),f.useEffect(()=>{c.setOptions(i)},[i,c]),Rh(i,l))throw ji(i,c,o);if(Eh({result:l,errorResetBoundary:o,throwOnError:i.throwOnError,query:s.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw l.error;if((w=(g=s.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||w.call(g,i,l),i.experimental_prefetchInRender&&!Nt&&_h(l,r)){const y=a?ji(i,c,o):(m=s.getQueryCache().get(i.queryHash))==null?void 0:m.promise;y==null||y.catch(ue).finally(()=>{c.updateResult()})}return i.notifyOnChangeProps?l:c.trackResult(l)}function Di(e,t){return Th(e,fh)}function tr(e,t){const n=bs(),[r]=f.useState(()=>new mh(n,e));f.useEffect(()=>{r.setOptions(e)},[r,e]);const o=f.useSyncExternalStore(f.useCallback(i=>r.subscribe(oe.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=f.useCallback((i,a)=>{r.mutate(i,a).catch(ue)},[r]);if(o.error&&bc(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}const nr={STALE_TIME:1e3*60*5,GC_TIME:1e3*60*10,RETRY_COUNT:1,RETRY_DELAY:1e3},Li={refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,staleTime:nr.STALE_TIME,gcTime:nr.GC_TIME,retry:nr.RETRY_COUNT,retryDelay:nr.RETRY_DELAY,enable:!0},rr=e=>e instanceof Error?e.message:String(e),Pc=(e,t,n)=>{const r=bs(),{notify:o}=ms(),{createFn:s,readFn:i,readByIdFn:a,updateFn:c,deleteFn:l,partialUpdateFn:d}=n,h=()=>{r.invalidateQueries({queryKey:[e]})},p=(E,_,P,A)=>o(A!=null&&A.overrideSuccessMessage?A==null?void 0:A.overrideSuccessMessage(E,_):P,"success"),g=(E,_,P,A)=>o(A!=null&&A.overrideErrorMessage?A==null?void 0:A.overrideErrorMessage(E,_):P,"error");return{useCreate:E=>tr({mutationFn:_=>s(_),onSuccess:_=>{h(),p(t,_,`${t} created successfully`,E)},onError:_=>{g(t,_,`Error creating ${t}: ${rr(_)}`,E)}}),useReadQuery:E=>Di({queryKey:[e],queryFn:i,...Li,...E}),useReadByIdQuery:(E,_)=>Di({queryKey:[e,E],queryFn:()=>a(E),...Li,enabled:!!E,..._}),useUpdate:E=>tr({mutationFn:({id:_,data:P})=>c(_,P),onSuccess:_=>{h(),p(t,_,`${t} updated successfully`,E)},onError:_=>{g(t,_,`Error updating ${t}: ${rr(_)}`,E)}}),usePartialUpdate:E=>d&&tr({mutationFn:({id:_,data:P})=>d(_,P),onSuccess:_=>{h(),p(t,_,`${t} updated successfully`,E)},onError:_=>{g(t,_,`Error updating ${t}: ${rr(_)}`,E)}}),useDelete:E=>tr({mutationFn:_=>l(_),onSuccess:()=>{h(),p(t,null,`${t} deleted successfully`,E)},onError:_=>{g(t,_,`Error deleting ${t}: ${rr(_)}`,E)}}),invalidateQueries:h}},Ah=(e,t)=>Pc(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())}),Ph={SINGLE_TENANT:"single-tenant"},Oh={COOKIE:"cookie"},go="tenant",ki="tenant",Ii="tenant",jh=Ph.SINGLE_TENANT,Dh=Oh.COOKIE,Lh={mode:jh,clientSideMode:Dh,tenantIDPProvisioningStrategy:"none"};class kh{setTenant(t,n){const r=new URL(window.location.href);r.searchParams.set(ki,t.name),window.location.href=r.toString()}getCurrentTenantName(){const t=new URL(window.location.href);return new URLSearchParams(t.search).get(ki)}}class Ih{setTenant(t,n){sessionStorage.setItem(Ii,t.name),window.location.reload()}getCurrentTenantName(){return sessionStorage.getItem(Ii)}}/*! js-cookie v3.0.5 | MIT */function or(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 Nh={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 Xo(e,t){function n(o,s,i){if(!(typeof document>"u")){i=or({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var c in i)i[c]&&(a+="; "+c,i[c]!==!0&&(a+="="+i[c].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+a}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],i={},a=0;a<s.length;a++){var c=s[a].split("="),l=c.slice(1).join("=");try{var d=decodeURIComponent(c[0]);if(i[d]=e.read(l,d),o===d)break}catch{}}return o?i[o]:i}}return Object.create({set:n,get:r,remove:function(o,s){n(o,"",or({},s,{expires:-1}))},withAttributes:function(o){return Xo(this.converter,or({},this.attributes,o))},withConverter:function(o){return Xo(or({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var yo=Xo(Nh,{path:"/"});class Mh{setTenant(t,n){t?yo.set(go,t.name):yo.remove(go),window.location.reload()}getCurrentTenantName(){return yo.get(go)}}class $h{extractSubdomain(t){if(t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t))return"";const n=t.split(".");if(n.length<2||n.length===2||n[0]==="www"&&n.length===3)return"";const o=(n[0]==="www"?n.slice(1):n).slice(0,-2);return o.length>0?o.join("."):""}getBaseDomain(t){const n=t.split(".");return t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t)||n.length<=2?t:n.slice(-2).join(".")}setTenant(t,n){var l;const r=(l=n.urlPatterns)==null?void 0:l.find(d=>d.patternType==="subdomain"&&d.tenantId===t.id&&d.isActive);if(!r)throw new Error(`No active subdomain pattern found for tenant '${t.name}'`);const o=new URL(window.location.href),s=r.patternValue,i=o.hostname,a=this.getBaseDomain(i),c=s?`${s}.${a}`:a;o.hostname=c,window.location.href=o.toString()}getCurrentTenantName(){const t=window.location.hostname;return this.extractSubdomain(t)||null}}const Ni={queryParams:new kh,sessionStorage:new Ih,cookie:new Mh,subdomain:new $h},Fh=e=>{const t=Ni[e.clientSideMode];if(!t)throw new Error(`Client side tenant mode '${e.clientSideMode}' is not supported ${JSON.stringify({strategies:Ni},null,2)}`);return t},Bh=(e,t,n)=>{const r=t.find(s=>s.name===n);if(!r)throw Error("No tenant permission");return Fh(e).setTenant(r,e),r},Uh=()=>{const[e,t]=Nn(),{tenants:n=[],currentTenant:r,tenantConfig:o=Lh}=e,s=R.useCallback(i=>{const a=Bh(o,n,i);t({...e,currentTenant:a})},[o,e]);return{tenants:n,currentTenant:r,tenantConfig:o,selectTenant:s}};function Wh(e){if(!e.ok)throw console.error(e),new Error(e.statusText)}async function sr(e,t,n,r){const o=await e(`/user-states/${encodeURIComponent(t)}/${encodeURIComponent(n)}`,r);return Wh(o),o}class ir{static async get(t,n,r){const s=await sr(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 sr(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 sr(t,n,r,s)).json()}static async delete(t,n,r){return await sr(t,n,r,{method:"DELETE",headers:{"Content-Type":"application/json"}}),null}}const Hh=e=>{const t=ps("@bluealba/pae-nestjs-gateway-service"),n=ec();if(!n)throw new Error("You must call the useUserState hook within a PAE application.");const[r,o]=R.useState(null),[s,i]=R.useState(!1),[a,c]=R.useState(!1),[l,d]=R.useState(null),h=(x,S)=>R.useCallback(async({newValue:E,shouldThrowError:_}={})=>{try{c(!0),d(null);const P=await x(t,n,e,E);return o(P),P?P.value:null}catch(P){if(d(P==null?void 0:P.message),console.error(`Failed to ${S} ${e}:`,P),_)throw P;return null}finally{c(!1)}},[t,n,e]),p=h(ir.get,"fetch"),g=h(ir.create,"create"),w=h(ir.update,"update"),m=h(ir.delete,"delete"),y=R.useCallback(async()=>{try{await p()}finally{i(!0)}},[p]);R.useEffect(()=>{y()},[y]);const C=R.useCallback(async(x,S=!1)=>r==null?await g({newValue:x,shouldThrowError:S}):await w({newValue:x,shouldThrowError:S}),[r,g,w]);return{value:r?r.value:null,hasFetched:s,loading:a,error:l,setValue:C,createValue:g,updateValue:w,deleteValue:m}},Oc="__PAE_EXTENSION_POINT_REACT_CONTENT_EMPTY__",Vh=({module:e,point:t,children:n})=>(oc(e,t,n??Oc),null),jc=({name:e,children:t,...n})=>{const r=rc(e);if(r===Oc)return null;if(!r)return u.jsx(u.Fragment,{children:t??null});if(qh(r)){const o=r;return u.jsx(o,{...n})}else return r},qh=e=>typeof e=="function",zh=(e,t)=>{const n=r=>(t=t||e.displayName||e.name||"?",u.jsx(jc,{name:t,...r,children:u.jsx(e,{...r})}));return n.displayName=`extensionPoint(${t})`,n},Mi="single-spa:app-change";function Gh(){const[e,t]=R.useState($i());return R.useEffect(()=>{const n=()=>{t($i())};return window.addEventListener(Mi,n),()=>{window.removeEventListener(Mi,n)}},[]),e}function $i(){return gr.getAppNames().reduce((t,n)=>(gr.getAppStatus(n)?t[n]=gr.getAppStatus(n):t[n]="NOT_LOADED",t),{})}function Qh(e){const n=Gh()[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 Dc=({appName:e})=>u.jsx("div",{children:u.jsxs("p",{children:["Loading ",e,"..."]})});Dc.displayName="BaseLoading";const Lc=({appName:e})=>u.jsxs("div",{children:[u.jsx("p",{children:"Something went wrong..."}),u.jsxs("p",{children:["Failed to load ",e]})]});Lc.displayName="BaseError";const Kh={display:"flex",flexDirection:"column",flex:1},kc=R.forwardRef((e,t)=>u.jsx("div",{ref:t,style:Kh,...e}));kc.displayName="BaseContainer";const Yh="pae-app:",Ic=R.forwardRef(({appName:e,LoadingComponent:t=Dc,ErrorComponent:n=Lc,ContainerComponent:r=kc,...o},s)=>{const i=Qh(e);return u.jsxs(r,{ref:s,...o,id:`${Yh}${e}`,children:[i.isLoading&&u.jsx(t,{appName:e}),i.isBroken&&u.jsx(n,{appName:e})]})});Ic.displayName="ModulePlaceHolder";const ws=({operations:e,children:t,forbiddenContent:n})=>{var o;const{hasAccess:r}=Ur();if(!r(...e)){if(!n)return null;if(typeof n=="function")if((o=n==null?void 0:n.prototype)!=null&&o.isReactComponent){const s=n;return u.jsx(s,{operations:e})}else return n({operations:e});return R.isValidElement(n)?n:null}return t};ws.displayName="Authorized";const Zh=({eventName:e,listener:t})=>(sc(e,t),null),Xh=()=>u.jsx("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:u.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M8.737 8.737a21.49 21.49 0 0 1 3.308-2.724m0 0c3.063-2.026 5.99-2.641 7.331-1.3 1.827 1.828.026 6.591-4.023 10.64-4.049 4.049-8.812 5.85-10.64 4.023-1.33-1.33-.736-4.218 1.249-7.253m6.083-6.11c-3.063-2.026-5.99-2.641-7.331-1.3-1.827 1.828-.026 6.591 4.023 10.64m3.308-9.34a21.497 21.497 0 0 1 3.308 2.724m2.775 3.386c1.985 3.035 2.579 5.923 1.248 7.253-1.336 1.337-4.245.732-7.295-1.275M14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})}),Nc=({applicationName:e})=>{const t=Xa(e);if(t)if(typeof t=="function"){const n=t;return u.jsx(n,{})}else return t;return u.jsx(Xh,{})};Nc.displayName="ApplicationIcon";const Jh=(e,t)=>{const n=r=>u.jsx(ws,{operations:t,children:u.jsx(e,{...r})});return n.displayName="Authorized",n};function Mc(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=Mc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function D(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Mc(e))&&(r&&(r+=" "),r+=t);return r}const ep="spinner__fakUN",tp="spinner-rotation__wUmPV",np="button__8FA9H",rp="button--contained-primary__stkTx",op="button--outlined-primary__KZ1ww",sp="button--text-primary__GLTfm",ip="button--contained-danger__L9ehT",ap="button--outlined-danger__eoYLd",cp="button--text-danger__Sw-ha",lp="icon__--umH",ar={spinner:ep,"spinner-rotation":"spinner-rotation__wUmPV",spinnerRotation:tp,button:np,"button--contained-primary":"button--contained-primary__stkTx",buttonContainedPrimary:rp,"button--outlined-primary":"button--outlined-primary__KZ1ww",buttonOutlinedPrimary:op,"button--text-primary":"button--text-primary__GLTfm",buttonTextPrimary:sp,"button--contained-danger":"button--contained-danger__L9ehT",buttonContainedDanger:ip,"button--outlined-danger":"button--outlined-danger__eoYLd",buttonOutlinedDanger:ap,"button--text-danger":"button--text-danger__Sw-ha",buttonTextDanger:cp,icon:lp},Dr=R.forwardRef(({variant:e="contained",colorScheme:t="primary",loading:n=!1,IconComponent:r,className:o,children:s,...i},a)=>{const c=D(ar.button,ar[`button--${e}-${t}`],o);return u.jsxs("button",{ref:a,className:c,...i,children:[n?u.jsx("div",{className:ar.spinner}):r&&u.jsx(r,{className:ar.icon}),s]})});Dr.displayName="Button";const up="Badges__5jpum",dp="Badges__5jpum",fp="Badge__95MWM",hp="Badge__95MWM",pp="Badge--primary__Rx-bS",mp="Badge--secondary__d92bT",gp="Badge--success__Kdo98",yp="Badge--warning__bf-Nn",vp="Badge--danger__HTj39",bp="Badge--small__y93Pj",wp="Badge--regular__aT5AL",Cp="Badge--large__wORCH",xr={Badges:up,badges:dp,Badge:fp,badge:hp,"Badge--primary":"Badge--primary__Rx-bS",badgePrimary:pp,"Badge--secondary":"Badge--secondary__d92bT",badgeSecondary:mp,"Badge--success":"Badge--success__Kdo98",badgeSuccess:gp,"Badge--warning":"Badge--warning__bf-Nn",badgeWarning:yp,"Badge--danger":"Badge--danger__HTj39",badgeDanger:vp,"Badge--small":"Badge--small__y93Pj",badgeSmall:bp,"Badge--regular":"Badge--regular__aT5AL",badgeRegular:wp,"Badge--large":"Badge--large__wORCH",badgeLarge:Cp},Jo={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 Jo)Object.freeze(Jo[e]);const Fi=Object.freeze(Jo);var Bi={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function xp(e){var d,h;var t,n=[],r=1,o;if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),Fi[e])n=Fi[e].slice(),o="rgb";else if(e==="transparent")r=0,o="rgb",n=[0,0,0];else if(e[0]==="#"){var s=e.slice(1),i=s.length,a=i<=4;r=1,a?(n=[parseInt(s[0]+s[0],16),parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16)],i===4&&(r=parseInt(s[3]+s[3],16)/255)):(n=[parseInt(s[0]+s[1],16),parseInt(s[2]+s[3],16),parseInt(s[4]+s[5],16)],i===8&&(r=parseInt(s[6]+s[7],16)/255)),n[0]||(n[0]=0),n[1]||(n[1]=0),n[2]||(n[2]=0),o="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var c=t[1];o=c.replace(/a$/,"");var l=o==="cmyk"?4:o==="gray"?1:3;n=t[2].trim().split(/\s*[,\/]\s*|\s+/),o==="color"&&(o=n.shift()),n=n.map(function(p,g){if(p[p.length-1]==="%")return p=parseFloat(p)/100,g===3?p:o==="rgb"?p*255:o[0]==="h"||o[0]==="l"&&!g?p*100:o==="lab"?p*125:o==="lch"?g<2?p*150:p*360:o[0]==="o"&&!g?p:o==="oklab"?p*.4:o==="oklch"?g<2?p*.4:p*360:p;if(o[g]==="h"||g===2&&o[o.length-1]==="h"){if(Bi[p]!==void 0)return Bi[p];if(p.endsWith("deg"))return parseFloat(p);if(p.endsWith("turn"))return parseFloat(p)*360;if(p.endsWith("grad"))return parseFloat(p)*360/400;if(p.endsWith("rad"))return parseFloat(p)*180/Math.PI}return p==="none"?0:parseFloat(p)}),r=n.length>l?n.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(n=e.match(/([0-9]+)/g).map(function(p){return parseFloat(p)}),o=((h=(d=e.match(/([a-z])/ig))==null?void 0:d.join(""))==null?void 0:h.toLowerCase())||"rgb");return{space:o,values:n,alpha:r}}const Ep=(e,t)=>{const{space:n,values:r}=xp(e);return n[0]==="h"?`${n}a(${r[0]}, ${r[1]}%, ${r[2]}%, ${t})`:`${n}a(${r}, ${t})`},Cs=R.forwardRef(({children:e,color:t,className:n,customColor:r,size:o="small",style:s,...i},a)=>{const c=r?{color:r,background:Ep(r,.1)}:{},l=D(xr.Badge,xr[`Badge--${o}`],{[xr[`Badge--${t}`]]:!!t},n);return u.jsx("span",{ref:a,className:l,style:{...s,...c},...i,children:e})});Cs.displayName="Badge";const xs=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(xr.Badges,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});xs.displayName="Badges";const $c=({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...s})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:o,...s,children:[u.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),u.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"})]}),Fc=({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...s})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:o,...s,children:[u.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),u.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}),u.jsx("path",{d:"m9 12 2 2 4-4"})]}),Sp="CopyToClipboardButton__2Nd2m",_p={CopyToClipboardButton:Sp},Rp=({content:e})=>{const[t,n]=Tp(),{notify:r}=ms(),o=t?Fc:$c,s=R.useCallback(async()=>{await n(e)&&r("Copied to the Clipboard !","success")},[e,r]);return u.jsx(o,{className:_p.CopyToClipboardButton,size:18,onClick:s})},Tp=()=>{const[e,t]=R.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}}]},Ap="FieldGroup__Q2JCV",Pp="FieldGroup__Q2JCV",Op="FieldGroup--horizontal__kpfL1",jp="FieldGroup--vertical__FLo-Q",Ui={FieldGroup:Ap,fieldGroup:Pp,"FieldGroup--horizontal":"FieldGroup--horizontal__kpfL1",fieldGroupHorizontal:Op,"FieldGroup--vertical":"FieldGroup--vertical__FLo-Q",fieldGroupVertical:jp},Bc=R.forwardRef(({children:e,className:t,orientation:n="vertical",...r},o)=>{const s=D(Ui.FieldGroup,Ui[`FieldGroup--${n}`],t);return u.jsx("div",{ref:o,className:s,...r,children:e})});Bc.displayName="FieldGroup";const Dp="Input__uS0sb",Wi={Input:Dp,Error:"Error__-DQpw"},zr=R.forwardRef(({className:e,error:t,...n},r)=>{const o=D(Wi.Input,t&&Wi.Error,e);return u.jsx("input",{ref:r,className:o,...n})});zr.displayName="Input";const Lp={Error:"Error__N4OP5"},Uc=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Lp.Error,t);return u.jsx("span",{ref:r,className:o,...n,children:e})});Uc.displayName="InputError";const kp="Label__VYUvW",Hi={Label:kp,Error:"Error__Eu6DI"},Wc=R.forwardRef(({children:e,className:t,error:n,...r},o)=>{const s=D(Hi.Label,n&&Hi.Error,t);return u.jsx("label",{ref:o,className:s,...r,children:e})});Wc.displayName="Label";const Ip="Select__giqpe",Np="Chevron__YvhBd",es={Select:Ip,Chevron:Np},Hc=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(es.Option,t);return u.jsx("option",{ref:r,className:o,...n,children:e})});Hc.displayName="Option";const Es=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(es.Select,t);return u.jsxs("div",{className:o,children:[u.jsx("select",{ref:r,...n,children:e}),u.jsx("div",{className:es.Chevron,children:u.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M4 6L8 10L12 6",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})})]})});Es.displayName="Select";Es.Option=Hc;const Mp="TextArea__pa-A0",$p={TextArea:Mp},Vc=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D($p.TextArea,t);return u.jsx("textarea",{ref:r,className:o,...n,children:e})});Vc.displayName="TextArea";const Fp="SearchInput__4OFyE",Bp="SearchIcon__YgnQy",Up="ClearIcon__ukRVr",Wp="SearchInput__ClearIcon__uzVoc",Hp="SearchInput__SearchIcon__zoDG4",xn={SearchInput:Fp,SearchIcon:Bp,ClearIcon:Up,SearchInput__ClearIcon:Wp,SearchInput__SearchIcon:Hp},Ss=R.forwardRef(({className:e,placeholder:t="Type to search...",showClearButton:n=!1,showSearchIcon:r=!0,onClear:o,...s},i)=>{const a=D(xn.SearchInput,n&&xn.SearchInput__ClearIcon,r&&xn.SearchInput__SearchIcon,e),c=D(xn.SearchIcon),l=D(xn.ClearIcon);return u.jsxs("div",{className:a,children:[u.jsx(zr,{ref:i,type:"text",placeholder:t,...s}),r&&u.jsx("svg",{className:c,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M13 13L10.6667 10.6667M12.3333 6.66667C12.3333 9.79628 9.79628 12.3333 6.66667 12.3333C3.53705 12.3333 1 9.79628 1 6.66667C1 3.53705 3.53705 1 6.66667 1C9.79628 1 12.3333 3.53705 12.3333 6.66667Z",stroke:"#A4A4A4",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})}),n&&u.jsx("svg",{className:l,width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:o,children:u.jsx("path",{d:"M7.33334 0.666748L0.666672 7.33341M0.666672 0.666748L7.33334 7.33341",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})]})});Ss.displayName="SearchInput";const Vp="SearchAutocomplete__vR9Hk",qp="AutocompleteItem__YIm7R",zp="AutocompleteHighlighter__LAFTV",Gp="AutocompleteHighlighter__match__Wy1o2",Qp="DropdownList__-fHIk",Kp="AutocompleteItemDescription__4QYN5",It={SearchAutocomplete:Vp,AutocompleteItem:qp,"AutocompleteItem--canBeSelected":"AutocompleteItem--canBeSelected__jxk4z",AutocompleteHighlighter:zp,AutocompleteHighlighter__match:Gp,DropdownList:Qp,AutocompleteItemDescription:Kp},Yp="DropdownList__QTXXX",Zp="DropdownList__QTXXX",Xp="DropdownList--closed__pdL1Z",Jp="DropdownList--open__opzc9",e1="DropdownList--left__xSwXR",Rt={DropdownList:Yp,dropdownList:Zp,"DropdownList--closed":"DropdownList--closed__pdL1Z",dropdownListClosed:Xp,"DropdownList--open":"DropdownList--open__opzc9",dropdownListOpen:Jp,"DropdownList--left":"DropdownList--left__xSwXR",dropdownListLeft:e1},Gr=R.forwardRef(({children:e,className:t,open:n,align:r="right",...o},s)=>{const i=D(Rt.DropdownList,{[Rt["DropdownList--open"]]:n,[Rt["DropdownList--closed"]]:!n,[Rt["DropdownList--left"]]:r==="left"},t);return u.jsx("div",{ref:s,className:i,...o,children:e})});Gr.displayName="DropdownList";const Sn=R.forwardRef(({children:e,className:t,canBeSelected:n=!1,...r},o)=>{const s=D(It.AutocompleteItem,{[It["AutocompleteItem--canBeSelected"]]:n},t);return u.jsx("div",{ref:o,className:s,role:n?"option":void 0,...r,children:e})});Sn.displayName="AutocompleteItem";const t1=300,n1={query:"",suggestions:[],loading:!1,error:null},r1=({suggestionFetcher:e,canAdd:t})=>{const[n,r]=R.useState(n1);return R.useEffect(()=>{r(a=>({...a,loading:!0}));const s=async()=>{try{const a=await e(n.query);t&&!a.some(c=>c.value.toLowerCase()===n.query.toLowerCase())&&a.push({label:`Add "${n.query}"`,value:n.query,isNew:!0}),r(c=>({...c,suggestions:a,loading:!1}))}catch(a){r(c=>({...c,suggestions:[],error:a,loading:!1}))}},i=setTimeout(()=>{s()},t1);return()=>{clearTimeout(i)}},[n.query]),{...n,setQuery:s=>{r(i=>({...i,query:s}))}}},qc=R.forwardRef(({text:e,query:t,className:n,...r},o)=>{const s=D(It.AutocompleteHighlighter,n),i=(a,c)=>{const l=a.toLowerCase().indexOf(c.toLowerCase());if(l===-1||c.length===0)return a;const d=a.slice(0,l),h=a.slice(l,l+c.length),p=a.slice(l+c.length);return u.jsxs(u.Fragment,{children:[d,u.jsx("span",{className:It.AutocompleteHighlighter__match,children:h}),i(p,c)]})};return u.jsx("div",{ref:o,className:s,...r,children:i(e,t)})});qc.displayName="AutocompleteHighlighter";const o1=5,zc=R.forwardRef(({children:e,className:t,canAdd:n,maxSuggestionsShown:r=o1,searchInputProps:o,keepSelectedOption:s,suggestionFetcher:i,onAccept:a,...c},l)=>{const{query:d,setQuery:h,suggestions:p,loading:g}=r1({suggestionFetcher:i,canAdd:n}),[w,m]=R.useState(null),y=d.length>0,C=A=>{h(A.target.value)},x=A=>{a==null||a(A),s?(m(A),h(A.value)):h("")},S=()=>{a==null||a(null),m(null),h("")},E=D(It.SearchAutocomplete,t),_=p.slice(0,r),P=p.slice(r);return u.jsxs("div",{ref:l,className:E,...c,children:[u.jsx(Ss,{...o,value:d,onChange:C,showClearButton:!!w,onClear:S}),e,u.jsxs(Gr,{className:It.DropdownList,open:y&&!w,role:"listbox","aria-label":"Suggestions",children:[g?u.jsx(Sn,{children:"Loading..."}):_.map(A=>u.jsxs(Sn,{canBeSelected:!0,onClick:x.bind(null,A),children:[u.jsx(qc,{text:A.label,query:d}),A.description&&u.jsx("span",{className:It.AutocompleteItemDescription,children:A.description})]},A.value)),!g&&P.length>0&&u.jsxs(Sn,{children:[P.length," more results"]}),y&&p.length===0&&!g&&u.jsx(Sn,{children:"No results found"})]})]})});zc.displayName="SearchAutocomplete";const ft=e=>{let t=null,n=null;return R.Children.forEach(e.children,r=>{const o=r.props.condition;o===void 0?n=r:!t&&o===!0&&(t=r)}),u.jsx(u.Fragment,{children:t||n})};ft.displayName="Show";ft.When=({condition:e,children:t})=>u.jsx(u.Fragment,{children:e&&t});ft.Else=({render:e,children:t})=>u.jsx(u.Fragment,{children:e||t});function Vi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Qr(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Vi(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():Vi(e[o],null)}}}}function Pe(...e){return f.useCallback(Qr(...e),e)}var s1=Symbol.for("react.lazy"),Lr=f[" use ".trim().toString()];function i1(e){return typeof e=="object"&&e!==null&&"then"in e}function Gc(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===s1&&"_payload"in e&&i1(e._payload)}function a1(e){const t=l1(e),n=f.forwardRef((r,o)=>{let{children:s,...i}=r;Gc(s)&&typeof Lr=="function"&&(s=Lr(s._payload));const a=f.Children.toArray(s),c=a.find(d1);if(c){const l=c.props.children,d=a.map(h=>h===c?f.Children.count(l)>1?f.Children.only(null):f.isValidElement(l)?l.props.children:null:h);return u.jsx(t,{...i,ref:o,children:f.isValidElement(l)?f.cloneElement(l,void 0,d):null})}return u.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var c1=a1("Slot");function l1(e){const t=f.forwardRef((n,r)=>{let{children:o,...s}=n;if(Gc(o)&&typeof Lr=="function"&&(o=Lr(o._payload)),f.isValidElement(o)){const i=h1(o),a=f1(s,o.props);return o.type!==f.Fragment&&(a.ref=r?Qr(r,i):i),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var u1=Symbol("radix.slottable");function d1(e){return f.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 c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function h1(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 p1="SkeletonListContainer__MKJhE",m1="Skeleton__Ovpiw",Qc={SkeletonListContainer:p1,Skeleton:m1},Kr=R.forwardRef((e,t)=>{const{children:n,className:r,loading:o,height:s=48,width:i,borderRadius:a,style:c,...l}=e;if(!o&&n)return n;const d=R.isValidElement(n)?c1:"span";return u.jsx(d,{ref:t,"aria-hidden":!0,className:D(Qc.Skeleton,r),style:{...c,width:i,minWidth:i,height:s,borderRadius:a},"data-inline-skeleton":R.isValidElement(n)?void 0:!0,tabIndex:-1,...l,children:n})});Kr.displayName="Skeleton";const Kc=e=>{const{numberOfItems:t,itemsGap:n=2,itemProps:r}=e,o=Array.from({length:t},(s,i)=>i+1);return u.jsx("div",{className:D(Qc.SkeletonListContainer),style:{gap:n},children:o.map(s=>u.jsx(Kr,{loading:!0,...r},s))})};Kc.displayName="SkeletonList";function me(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 g1(e,t){const n=f.createContext(t),r=s=>{const{children:i,...a}=s,c=f.useMemo(()=>a,Object.values(a));return u.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function o(s){const i=f.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 _s(e,t=[]){let n=[];function r(s,i){const a=f.createContext(i),c=n.length;n=[...n,i];const l=h=>{var C;const{scope:p,children:g,...w}=h,m=((C=p==null?void 0:p[e])==null?void 0:C[c])||a,y=f.useMemo(()=>w,Object.values(w));return u.jsx(m.Provider,{value:y,children:g})};l.displayName=s+"Provider";function d(h,p){var m;const g=((m=p==null?void 0:p[e])==null?void 0:m[c])||a,w=f.useContext(g);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[l,d]}const o=()=>{const s=n.map(i=>f.createContext(i));return function(a){const c=(a==null?void 0:a[e])||s;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,y1(o,...t)]}function y1(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:c,scopeName:l})=>{const h=c(s)[`__scope${l}`];return{...a,...h}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function v1(e){const t=b1(e),n=f.forwardRef((r,o)=>{const{children:s,...i}=r,a=f.Children.toArray(s),c=a.find(C1);if(c){const l=c.props.children,d=a.map(h=>h===c?f.Children.count(l)>1?f.Children.only(null):f.isValidElement(l)?l.props.children:null:h);return u.jsx(t,{...i,ref:o,children:f.isValidElement(l)?f.cloneElement(l,void 0,d):null})}return u.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function b1(e){const t=f.forwardRef((n,r)=>{const{children:o,...s}=n;if(f.isValidElement(o)){const i=E1(o),a=x1(s,o.props);return o.type!==f.Fragment&&(a.ref=r?Qr(r,i):i),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var w1=Symbol("radix.slottable");function C1(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===w1}function x1(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function E1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var S1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ge=S1.reduce((e,t)=>{const n=v1(`Primitive.${t}`),r=f.forwardRef((o,s)=>{const{asChild:i,...a}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(c,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function _1(e,t){e&&ka.flushSync(()=>e.dispatchEvent(t))}function fn(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function R1(e,t=globalThis==null?void 0:globalThis.document){const n=fn(e);f.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 T1="DismissableLayer",ts="dismissableLayer.update",A1="dismissableLayer.pointerDownOutside",P1="dismissableLayer.focusOutside",qi,Yc=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Rs=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...c}=e,l=f.useContext(Yc),[d,h]=f.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=f.useState({}),w=Pe(t,A=>h(A)),m=Array.from(l.layers),[y]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),C=m.indexOf(y),x=d?m.indexOf(d):-1,S=l.layersWithOutsidePointerEventsDisabled.size>0,E=x>=C,_=D1(A=>{const M=A.target,I=[...l.branches].some(k=>k.contains(M));!E||I||(o==null||o(A),i==null||i(A),A.defaultPrevented||a==null||a())},p),P=L1(A=>{const M=A.target;[...l.branches].some(k=>k.contains(M))||(s==null||s(A),i==null||i(A),A.defaultPrevented||a==null||a())},p);return R1(A=>{x===l.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},p),f.useEffect(()=>{if(d)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(qi=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),zi(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=qi)}},[d,p,n,l]),f.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),zi())},[d,l]),f.useEffect(()=>{const A=()=>g({});return document.addEventListener(ts,A),()=>document.removeEventListener(ts,A)},[]),u.jsx(ge.div,{...c,ref:w,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:me(e.onFocusCapture,P.onFocusCapture),onBlurCapture:me(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:me(e.onPointerDownCapture,_.onPointerDownCapture)})});Rs.displayName=T1;var O1="DismissableLayerBranch",j1=f.forwardRef((e,t)=>{const n=f.useContext(Yc),r=f.useRef(null),o=Pe(t,r);return f.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),u.jsx(ge.div,{...e,ref:o})});j1.displayName=O1;function D1(e,t=globalThis==null?void 0:globalThis.document){const n=fn(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let c=function(){Zc(A1,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function L1(e,t=globalThis==null?void 0:globalThis.document){const n=fn(e),r=f.useRef(!1);return f.useEffect(()=>{const o=s=>{s.target&&!r.current&&Zc(P1,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 zi(){const e=new CustomEvent(ts);document.dispatchEvent(e)}function Zc(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?_1(o,s):o.dispatchEvent(s)}var mt=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},k1=f[" useId ".trim().toString()]||(()=>{}),I1=0;function Er(e){const[t,n]=f.useState(k1());return mt(()=>{n(r=>r??String(I1++))},[e]),e||(t?`radix-${t}`:"")}const N1=["top","right","bottom","left"],gt=Math.min,ve=Math.max,kr=Math.round,cr=Math.floor,Me=e=>({x:e,y:e}),M1={left:"right",right:"left",bottom:"top",top:"bottom"},$1={start:"end",end:"start"};function ns(e,t,n){return ve(e,gt(t,n))}function Ke(e,t){return typeof e=="function"?e(t):e}function Ye(e){return e.split("-")[0]}function gn(e){return e.split("-")[1]}function Ts(e){return e==="x"?"y":"x"}function As(e){return e==="y"?"height":"width"}const F1=new Set(["top","bottom"]);function Ne(e){return F1.has(Ye(e))?"y":"x"}function Ps(e){return Ts(Ne(e))}function B1(e,t,n){n===void 0&&(n=!1);const r=gn(e),o=Ps(e),s=As(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Ir(i)),[i,Ir(i)]}function U1(e){const t=Ir(e);return[rs(e),t,rs(t)]}function rs(e){return e.replace(/start|end/g,t=>$1[t])}const Gi=["left","right"],Qi=["right","left"],W1=["top","bottom"],H1=["bottom","top"];function V1(e,t,n){switch(e){case"top":case"bottom":return n?t?Qi:Gi:t?Gi:Qi;case"left":case"right":return t?W1:H1;default:return[]}}function q1(e,t,n,r){const o=gn(e);let s=V1(Ye(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(rs)))),s}function Ir(e){return e.replace(/left|right|bottom|top/g,t=>M1[t])}function z1(e){return{top:0,right:0,bottom:0,left:0,...e}}function Xc(e){return typeof e!="number"?z1(e):{top:e,right:e,bottom:e,left:e}}function Nr(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 Ki(e,t,n){let{reference:r,floating:o}=e;const s=Ne(t),i=Ps(t),a=As(i),c=Ye(t),l=s==="y",d=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let g;switch(c){case"top":g={x:d,y:r.y-o.height};break;case"bottom":g={x:d,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:h};break;case"left":g={x:r.x-o.width,y:h};break;default:g={x:r.x,y:r.y}}switch(gn(t)){case"start":g[i]-=p*(n&&l?-1:1);break;case"end":g[i]+=p*(n&&l?-1:1);break}return g}const G1=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:h}=Ki(l,r,c),p=r,g={},w=0;for(let m=0;m<a.length;m++){const{name:y,fn:C}=a[m],{x,y:S,data:E,reset:_}=await C({x:d,y:h,initialPlacement:r,placement:p,strategy:o,middlewareData:g,rects:l,platform:i,elements:{reference:e,floating:t}});d=x??d,h=S??h,g={...g,[y]:{...g[y],...E}},_&&w<=50&&(w++,typeof _=="object"&&(_.placement&&(p=_.placement),_.rects&&(l=_.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:d,y:h}=Ki(l,p,c)),m=-1)}return{x:d,y:h,placement:p,strategy:o,middlewareData:g}};async function An(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:p=!1,padding:g=0}=Ke(t,e),w=Xc(g),y=a[p?h==="floating"?"reference":"floating":h],C=Nr(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:d,strategy:c})),x=h==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),E=await(s.isElement==null?void 0:s.isElement(S))?await(s.getScale==null?void 0:s.getScale(S))||{x:1,y:1}:{x:1,y:1},_=Nr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:S,strategy:c}):x);return{top:(C.top-_.top+w.top)/E.y,bottom:(_.bottom-C.bottom+w.bottom)/E.y,left:(C.left-_.left+w.left)/E.x,right:(_.right-C.right+w.right)/E.x}}const Q1=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:c}=t,{element:l,padding:d=0}=Ke(e,t)||{};if(l==null)return{};const h=Xc(d),p={x:n,y:r},g=Ps(o),w=As(g),m=await i.getDimensions(l),y=g==="y",C=y?"top":"left",x=y?"bottom":"right",S=y?"clientHeight":"clientWidth",E=s.reference[w]+s.reference[g]-p[g]-s.floating[w],_=p[g]-s.reference[g],P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let A=P?P[S]:0;(!A||!await(i.isElement==null?void 0:i.isElement(P)))&&(A=a.floating[S]||s.floating[w]);const M=E/2-_/2,I=A/2-m[w]/2-1,k=gt(h[C],I),V=gt(h[x],I),Q=k,H=A-m[w]-V,G=A/2-m[w]/2+M,ne=ns(Q,G,H),Z=!c.arrow&&gn(o)!=null&&G!==ne&&s.reference[w]/2-(G<Q?k:V)-m[w]/2<0,X=Z?G<Q?G-Q:G-H:0;return{[g]:p[g]+X,data:{[g]:ne,centerOffset:G-ne-X,...Z&&{alignmentOffset:X}},reset:Z}}}),K1=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:m=!0,...y}=Ke(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const C=Ye(o),x=Ne(a),S=Ye(a)===a,E=await(c.isRTL==null?void 0:c.isRTL(l.floating)),_=p||(S||!m?[Ir(a)]:U1(a)),P=w!=="none";!p&&P&&_.push(...q1(a,m,w,E));const A=[a,..._],M=await An(t,y),I=[];let k=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&I.push(M[C]),h){const G=B1(o,i,E);I.push(M[G[0]],M[G[1]])}if(k=[...k,{placement:o,overflows:I}],!I.every(G=>G<=0)){var V,Q;const G=(((V=s.flip)==null?void 0:V.index)||0)+1,ne=A[G];if(ne&&(!(h==="alignment"?x!==Ne(ne):!1)||k.every(F=>Ne(F.placement)===x?F.overflows[0]>0:!0)))return{data:{index:G,overflows:k},reset:{placement:ne}};let Z=(Q=k.filter(X=>X.overflows[0]<=0).sort((X,F)=>X.overflows[1]-F.overflows[1])[0])==null?void 0:Q.placement;if(!Z)switch(g){case"bestFit":{var H;const X=(H=k.filter(F=>{if(P){const re=Ne(F.placement);return re===x||re==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(re=>re>0).reduce((re,ye)=>re+ye,0)]).sort((F,re)=>F[1]-re[1])[0])==null?void 0:H[0];X&&(Z=X);break}case"initialPlacement":Z=a;break}if(o!==Z)return{reset:{placement:Z}}}return{}}}};function Yi(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Zi(e){return N1.some(t=>e[t]>=0)}const Y1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ke(e,t);switch(r){case"referenceHidden":{const s=await An(t,{...o,elementContext:"reference"}),i=Yi(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Zi(i)}}}case"escaped":{const s=await An(t,{...o,altBoundary:!0}),i=Yi(s,n.floating);return{data:{escapedOffsets:i,escaped:Zi(i)}}}default:return{}}}}},Jc=new Set(["left","top"]);async function Z1(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Ye(n),a=gn(n),c=Ne(n)==="y",l=Jc.has(i)?-1:1,d=s&&c?-1:1,h=Ke(t,e);let{mainAxis:p,crossAxis:g,alignmentAxis:w}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof w=="number"&&(g=a==="end"?w*-1:w),c?{x:g*d,y:p*l}:{x:p*l,y:g*d}}const X1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,c=await Z1(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},J1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:y=>{let{x:C,y:x}=y;return{x:C,y:x}}},...c}=Ke(e,t),l={x:n,y:r},d=await An(t,c),h=Ne(Ye(o)),p=Ts(h);let g=l[p],w=l[h];if(s){const y=p==="y"?"top":"left",C=p==="y"?"bottom":"right",x=g+d[y],S=g-d[C];g=ns(x,g,S)}if(i){const y=h==="y"?"top":"left",C=h==="y"?"bottom":"right",x=w+d[y],S=w-d[C];w=ns(x,w,S)}const m=a.fn({...t,[p]:g,[h]:w});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[p]:s,[h]:i}}}}}},em=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Ke(e,t),d={x:n,y:r},h=Ne(o),p=Ts(h);let g=d[p],w=d[h];const m=Ke(a,t),y=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const S=p==="y"?"height":"width",E=s.reference[p]-s.floating[S]+y.mainAxis,_=s.reference[p]+s.reference[S]-y.mainAxis;g<E?g=E:g>_&&(g=_)}if(l){var C,x;const S=p==="y"?"width":"height",E=Jc.has(Ye(o)),_=s.reference[h]-s.floating[S]+(E&&((C=i.offset)==null?void 0:C[h])||0)+(E?0:y.crossAxis),P=s.reference[h]+s.reference[S]+(E?0:((x=i.offset)==null?void 0:x[h])||0)-(E?y.crossAxis:0);w<_?w=_:w>P&&(w=P)}return{[p]:g,[h]:w}}}},tm=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:c=()=>{},...l}=Ke(e,t),d=await An(t,l),h=Ye(o),p=gn(o),g=Ne(o)==="y",{width:w,height:m}=s.floating;let y,C;h==="top"||h==="bottom"?(y=h,C=p===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(C=h,y=p==="end"?"top":"bottom");const x=m-d.top-d.bottom,S=w-d.left-d.right,E=gt(m-d[y],x),_=gt(w-d[C],S),P=!t.middlewareData.shift;let A=E,M=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(M=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=x),P&&!p){const k=ve(d.left,0),V=ve(d.right,0),Q=ve(d.top,0),H=ve(d.bottom,0);g?M=w-2*(k!==0||V!==0?k+V:ve(d.left,d.right)):A=m-2*(Q!==0||H!==0?Q+H:ve(d.top,d.bottom))}await c({...t,availableWidth:M,availableHeight:A});const I=await i.getDimensions(a.floating);return w!==I.width||m!==I.height?{reset:{rects:!0}}:{}}}};function Yr(){return typeof window<"u"}function yn(e){return el(e)?(e.nodeName||"").toLowerCase():"#document"}function we(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fe(e){var t;return(t=(el(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function el(e){return Yr()?e instanceof Node||e instanceof we(e).Node:!1}function Te(e){return Yr()?e instanceof Element||e instanceof we(e).Element:!1}function $e(e){return Yr()?e instanceof HTMLElement||e instanceof we(e).HTMLElement:!1}function Xi(e){return!Yr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof we(e).ShadowRoot}const nm=new Set(["inline","contents"]);function Un(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ae(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!nm.has(o)}const rm=new Set(["table","td","th"]);function om(e){return rm.has(yn(e))}const sm=[":popover-open",":modal"];function Zr(e){return sm.some(t=>{try{return e.matches(t)}catch{return!1}})}const im=["transform","translate","scale","rotate","perspective"],am=["transform","translate","scale","rotate","perspective","filter"],cm=["paint","layout","strict","content"];function Os(e){const t=js(),n=Te(e)?Ae(e):e;return im.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)||am.some(r=>(n.willChange||"").includes(r))||cm.some(r=>(n.contain||"").includes(r))}function lm(e){let t=yt(e);for(;$e(t)&&!hn(t);){if(Os(t))return t;if(Zr(t))return null;t=yt(t)}return null}function js(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const um=new Set(["html","body","#document"]);function hn(e){return um.has(yn(e))}function Ae(e){return we(e).getComputedStyle(e)}function Xr(e){return Te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function yt(e){if(yn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xi(e)&&e.host||Fe(e);return Xi(t)?t.host:t}function tl(e){const t=yt(e);return hn(t)?e.ownerDocument?e.ownerDocument.body:e.body:$e(t)&&Un(t)?t:tl(t)}function Pn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=tl(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=we(o);if(s){const a=os(i);return t.concat(i,i.visualViewport||[],Un(o)?o:[],a&&n?Pn(a):[])}return t.concat(o,Pn(o,[],n))}function os(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function nl(e){const t=Ae(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=$e(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=kr(n)!==s||kr(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Ds(e){return Te(e)?e:e.contextElement}function Yt(e){const t=Ds(e);if(!$e(t))return Me(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=nl(t);let i=(s?kr(n.width):n.width)/r,a=(s?kr(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const dm=Me(0);function rl(e){const t=we(e);return!js()||!t.visualViewport?dm:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function fm(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==we(e)?!1:t}function $t(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Ds(e);let i=Me(1);t&&(r?Te(r)&&(i=Yt(r)):i=Yt(e));const a=fm(s,n,r)?rl(s):Me(0);let c=(o.left+a.x)/i.x,l=(o.top+a.y)/i.y,d=o.width/i.x,h=o.height/i.y;if(s){const p=we(s),g=r&&Te(r)?we(r):r;let w=p,m=os(w);for(;m&&r&&g!==w;){const y=Yt(m),C=m.getBoundingClientRect(),x=Ae(m),S=C.left+(m.clientLeft+parseFloat(x.paddingLeft))*y.x,E=C.top+(m.clientTop+parseFloat(x.paddingTop))*y.y;c*=y.x,l*=y.y,d*=y.x,h*=y.y,c+=S,l+=E,w=we(m),m=os(w)}}return Nr({width:d,height:h,x:c,y:l})}function Jr(e,t){const n=Xr(e).scrollLeft;return t?t.left+n:$t(Fe(e)).left+n}function ol(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Jr(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function hm(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Fe(r),a=t?Zr(t.floating):!1;if(r===i||a&&s)return n;let c={scrollLeft:0,scrollTop:0},l=Me(1);const d=Me(0),h=$e(r);if((h||!h&&!s)&&((yn(r)!=="body"||Un(i))&&(c=Xr(r)),$e(r))){const g=$t(r);l=Yt(r),d.x=g.x+r.clientLeft,d.y=g.y+r.clientTop}const p=i&&!h&&!s?ol(i,c):Me(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+d.x+p.x,y:n.y*l.y-c.scrollTop*l.y+d.y+p.y}}function pm(e){return Array.from(e.getClientRects())}function mm(e){const t=Fe(e),n=Xr(e),r=e.ownerDocument.body,o=ve(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ve(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Jr(e);const a=-n.scrollTop;return Ae(r).direction==="rtl"&&(i+=ve(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const Ji=25;function gm(e,t){const n=we(e),r=Fe(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,c=0;if(o){s=o.width,i=o.height;const d=js();(!d||d&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const l=Jr(r);if(l<=0){const d=r.ownerDocument,h=d.body,p=getComputedStyle(h),g=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,w=Math.abs(r.clientWidth-h.clientWidth-g);w<=Ji&&(s-=w)}else l<=Ji&&(s+=l);return{width:s,height:i,x:a,y:c}}const ym=new Set(["absolute","fixed"]);function vm(e,t){const n=$t(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=$e(e)?Yt(e):Me(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,c=o*s.x,l=r*s.y;return{width:i,height:a,x:c,y:l}}function ea(e,t,n){let r;if(t==="viewport")r=gm(e,n);else if(t==="document")r=mm(Fe(e));else if(Te(t))r=vm(t,n);else{const o=rl(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Nr(r)}function sl(e,t){const n=yt(e);return n===t||!Te(n)||hn(n)?!1:Ae(n).position==="fixed"||sl(n,t)}function bm(e,t){const n=t.get(e);if(n)return n;let r=Pn(e,[],!1).filter(a=>Te(a)&&yn(a)!=="body"),o=null;const s=Ae(e).position==="fixed";let i=s?yt(e):e;for(;Te(i)&&!hn(i);){const a=Ae(i),c=Os(i);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&ym.has(o.position)||Un(i)&&!c&&sl(e,i))?r=r.filter(d=>d!==i):o=a,i=yt(i)}return t.set(e,r),r}function wm(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Zr(t)?[]:bm(t,this._c):[].concat(n),r],a=i[0],c=i.reduce((l,d)=>{const h=ea(t,d,o);return l.top=ve(h.top,l.top),l.right=gt(h.right,l.right),l.bottom=gt(h.bottom,l.bottom),l.left=ve(h.left,l.left),l},ea(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Cm(e){const{width:t,height:n}=nl(e);return{width:t,height:n}}function xm(e,t,n){const r=$e(t),o=Fe(t),s=n==="fixed",i=$t(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=Me(0);function l(){c.x=Jr(o)}if(r||!r&&!s)if((yn(t)!=="body"||Un(o))&&(a=Xr(t)),r){const g=$t(t,!0,s,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else o&&l();s&&!r&&o&&l();const d=o&&!r&&!s?ol(o,a):Me(0),h=i.left+a.scrollLeft-c.x-d.x,p=i.top+a.scrollTop-c.y-d.y;return{x:h,y:p,width:i.width,height:i.height}}function vo(e){return Ae(e).position==="static"}function ta(e,t){if(!$e(e)||Ae(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Fe(e)===n&&(n=n.ownerDocument.body),n}function il(e,t){const n=we(e);if(Zr(e))return n;if(!$e(e)){let o=yt(e);for(;o&&!hn(o);){if(Te(o)&&!vo(o))return o;o=yt(o)}return n}let r=ta(e,t);for(;r&&om(r)&&vo(r);)r=ta(r,t);return r&&hn(r)&&vo(r)&&!Os(r)?n:r||lm(e)||n}const Em=async function(e){const t=this.getOffsetParent||il,n=this.getDimensions,r=await n(e.floating);return{reference:xm(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Sm(e){return Ae(e).direction==="rtl"}const _m={convertOffsetParentRelativeRectToViewportRelativeRect:hm,getDocumentElement:Fe,getClippingRect:wm,getOffsetParent:il,getElementRects:Em,getClientRects:pm,getDimensions:Cm,getScale:Yt,isElement:Te,isRTL:Sm};function al(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Rm(e,t){let n=null,r;const o=Fe(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const l=e.getBoundingClientRect(),{left:d,top:h,width:p,height:g}=l;if(a||t(),!p||!g)return;const w=cr(h),m=cr(o.clientWidth-(d+p)),y=cr(o.clientHeight-(h+g)),C=cr(d),S={rootMargin:-w+"px "+-m+"px "+-y+"px "+-C+"px",threshold:ve(0,gt(1,c))||1};let E=!0;function _(P){const A=P[0].intersectionRatio;if(A!==c){if(!E)return i();A?i(!1,A):r=setTimeout(()=>{i(!1,1e-7)},1e3)}A===1&&!al(l,e.getBoundingClientRect())&&i(),E=!1}try{n=new IntersectionObserver(_,{...S,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,S)}n.observe(e)}return i(!0),s}function Tm(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=Ds(e),d=o||s?[...l?Pn(l):[],...Pn(t)]:[];d.forEach(C=>{o&&C.addEventListener("scroll",n,{passive:!0}),s&&C.addEventListener("resize",n)});const h=l&&a?Rm(l,n):null;let p=-1,g=null;i&&(g=new ResizeObserver(C=>{let[x]=C;x&&x.target===l&&g&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var S;(S=g)==null||S.observe(t)})),n()}),l&&!c&&g.observe(l),g.observe(t));let w,m=c?$t(e):null;c&&y();function y(){const C=$t(e);m&&!al(m,C)&&n(),m=C,w=requestAnimationFrame(y)}return n(),()=>{var C;d.forEach(x=>{o&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),h==null||h(),(C=g)==null||C.disconnect(),g=null,c&&cancelAnimationFrame(w)}}const Am=X1,Pm=J1,Om=K1,jm=tm,Dm=Y1,na=Q1,Lm=em,km=(e,t,n)=>{const r=new Map,o={platform:_m,...n},s={...o.platform,_c:r};return G1(e,t,{...o,platform:s})};var Im=typeof document<"u",Nm=function(){},Sr=Im?R.useLayoutEffect:Nm;function Mr(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(!Mr(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)&&!Mr(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function cl(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ra(e,t){const n=cl(e);return Math.round(t*n)/n}function bo(e){const t=f.useRef(e);return Sr(()=>{t.current=e}),t}function Mm(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[d,h]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,g]=f.useState(r);Mr(p,r)||g(r);const[w,m]=f.useState(null),[y,C]=f.useState(null),x=f.useCallback(F=>{F!==P.current&&(P.current=F,m(F))},[]),S=f.useCallback(F=>{F!==A.current&&(A.current=F,C(F))},[]),E=s||w,_=i||y,P=f.useRef(null),A=f.useRef(null),M=f.useRef(d),I=c!=null,k=bo(c),V=bo(o),Q=bo(l),H=f.useCallback(()=>{if(!P.current||!A.current)return;const F={placement:t,strategy:n,middleware:p};V.current&&(F.platform=V.current),km(P.current,A.current,F).then(re=>{const ye={...re,isPositioned:Q.current!==!1};G.current&&!Mr(M.current,ye)&&(M.current=ye,ka.flushSync(()=>{h(ye)}))})},[p,t,n,V,Q]);Sr(()=>{l===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,h(F=>({...F,isPositioned:!1})))},[l]);const G=f.useRef(!1);Sr(()=>(G.current=!0,()=>{G.current=!1}),[]),Sr(()=>{if(E&&(P.current=E),_&&(A.current=_),E&&_){if(k.current)return k.current(E,_,H);H()}},[E,_,H,k,I]);const ne=f.useMemo(()=>({reference:P,floating:A,setReference:x,setFloating:S}),[x,S]),Z=f.useMemo(()=>({reference:E,floating:_}),[E,_]),X=f.useMemo(()=>{const F={position:n,left:0,top:0};if(!Z.floating)return F;const re=ra(Z.floating,d.x),ye=ra(Z.floating,d.y);return a?{...F,transform:"translate("+re+"px, "+ye+"px)",...cl(Z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:re,top:ye}},[n,a,Z.floating,d.x,d.y]);return f.useMemo(()=>({...d,update:H,refs:ne,elements:Z,floatingStyles:X}),[d,H,ne,Z,X])}const $m=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?na({element:r.current,padding:o}).fn(n):{}:r?na({element:r,padding:o}).fn(n):{}}}},Fm=(e,t)=>({...Am(e),options:[e,t]}),Bm=(e,t)=>({...Pm(e),options:[e,t]}),Um=(e,t)=>({...Lm(e),options:[e,t]}),Wm=(e,t)=>({...Om(e),options:[e,t]}),Hm=(e,t)=>({...jm(e),options:[e,t]}),Vm=(e,t)=>({...Dm(e),options:[e,t]}),qm=(e,t)=>({...$m(e),options:[e,t]});var zm="Arrow",ll=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return u.jsx(ge.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});ll.displayName=zm;var Gm=ll;function Qm(e){const[t,n]=f.useState(void 0);return mt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const c=s.borderBoxSize,l=Array.isArray(c)?c[0]:c;i=l.inlineSize,a=l.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ls="Popper",[ul,dl]=_s(Ls),[Km,fl]=ul(Ls),hl=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return u.jsx(Km,{scope:t,anchor:r,onAnchorChange:o,children:n})};hl.displayName=Ls;var pl="PopperAnchor",ml=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=fl(pl,n),i=f.useRef(null),a=Pe(t,i),c=f.useRef(null);return f.useEffect(()=>{const l=c.current;c.current=(r==null?void 0:r.current)||i.current,l!==c.current&&s.onAnchorChange(c.current)}),r?null:u.jsx(ge.div,{...o,ref:a})});ml.displayName=pl;var ks="PopperContent",[Ym,Zm]=ul(ks),gl=f.forwardRef((e,t)=>{var Wt,wt,Ht,Ct,zn,wn;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:p=!1,updatePositionStrategy:g="optimized",onPlaced:w,...m}=e,y=fl(ks,n),[C,x]=f.useState(null),S=Pe(t,xt=>x(xt)),[E,_]=f.useState(null),P=Qm(E),A=(P==null?void 0:P.width)??0,M=(P==null?void 0:P.height)??0,I=r+(s!=="center"?"-"+s:""),k=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},V=Array.isArray(l)?l:[l],Q=V.length>0,H={padding:k,boundary:V.filter(Jm),altBoundary:Q},{refs:G,floatingStyles:ne,placement:Z,isPositioned:X,middlewareData:F}=Mm({strategy:"fixed",placement:I,whileElementsMounted:(...xt)=>Tm(...xt,{animationFrame:g==="always"}),elements:{reference:y.anchor},middleware:[Fm({mainAxis:o+M,alignmentAxis:i}),c&&Bm({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?Um():void 0,...H}),c&&Wm({...H}),Hm({...H,apply:({elements:xt,rects:Gn,availableWidth:Vt,availableHeight:Et})=>{const{width:Qn,height:Kn}=Gn.reference,Ue=xt.floating.style;Ue.setProperty("--radix-popper-available-width",`${Vt}px`),Ue.setProperty("--radix-popper-available-height",`${Et}px`),Ue.setProperty("--radix-popper-anchor-width",`${Qn}px`),Ue.setProperty("--radix-popper-anchor-height",`${Kn}px`)}}),E&&qm({element:E,padding:a}),eg({arrowWidth:A,arrowHeight:M}),p&&Vm({strategy:"referenceHidden",...H})]}),[re,ye]=bl(Z),bt=fn(w);mt(()=>{X&&(bt==null||bt())},[X,bt]);const Vn=(Wt=F.arrow)==null?void 0:Wt.x,qn=(wt=F.arrow)==null?void 0:wt.y,so=((Ht=F.arrow)==null?void 0:Ht.centerOffset)!==0,[io,bn]=f.useState();return mt(()=>{C&&bn(window.getComputedStyle(C).zIndex)},[C]),u.jsx("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...ne,transform:X?ne.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:io,"--radix-popper-transform-origin":[(Ct=F.transformOrigin)==null?void 0:Ct.x,(zn=F.transformOrigin)==null?void 0:zn.y].join(" "),...((wn=F.hide)==null?void 0:wn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(Ym,{scope:n,placedSide:re,onArrowChange:_,arrowX:Vn,arrowY:qn,shouldHideArrow:so,children:u.jsx(ge.div,{"data-side":re,"data-align":ye,...m,ref:S,style:{...m.style,animation:X?void 0:"none"}})})})});gl.displayName=ks;var yl="PopperArrow",Xm={top:"bottom",right:"left",bottom:"top",left:"right"},vl=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Zm(yl,r),i=Xm[s.placedSide];return u.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:u.jsx(Gm,{...o,ref:n,style:{...o.style,display:"block"}})})});vl.displayName=yl;function Jm(e){return e!==null}var eg=e=>({name:"transformOrigin",options:e,fn(t){var y,C,x;const{placement:n,rects:r,middlewareData:o}=t,i=((y=o.arrow)==null?void 0:y.centerOffset)!==0,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[l,d]=bl(n),h={start:"0%",center:"50%",end:"100%"}[d],p=(((C=o.arrow)==null?void 0:C.x)??0)+a/2,g=(((x=o.arrow)==null?void 0:x.y)??0)+c/2;let w="",m="";return l==="bottom"?(w=i?h:`${p}px`,m=`${-c}px`):l==="top"?(w=i?h:`${p}px`,m=`${r.floating.height+c}px`):l==="right"?(w=`${-c}px`,m=i?h:`${g}px`):l==="left"&&(w=`${r.floating.width+c}px`,m=i?h:`${g}px`),{data:{x:w,y:m}}}});function bl(e){const[t,n="center"]=e.split("-");return[t,n]}var tg=hl,ng=ml,rg=gl,og=vl,sg="Portal",Is=f.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=f.useState(!1);mt(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Da.createPortal(u.jsx(ge.div,{...r,ref:t}),i):null});Is.displayName=sg;function ig(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var vn=e=>{const{present:t,children:n}=e,r=ag(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),s=Pe(r.ref,cg(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:s}):null};vn.displayName="Presence";function ag(e){const[t,n]=f.useState(),r=f.useRef(null),o=f.useRef(e),s=f.useRef("none"),i=e?"mounted":"unmounted",[a,c]=ig(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=lr(r.current);s.current=a==="mounted"?l:"none"},[a]),mt(()=>{const l=r.current,d=o.current;if(d!==e){const p=s.current,g=lr(l);e?c("MOUNT"):g==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(d&&p!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),mt(()=>{if(t){let l;const d=t.ownerDocument.defaultView??window,h=g=>{const m=lr(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&m&&(c("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",l=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},p=g=>{g.target===t&&(s.current=lr(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{d.clearTimeout(l),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:f.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function lr(e){return(e==null?void 0:e.animationName)||"none"}function cg(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 lg=Symbol("radix.slottable");function ug(e){const t=({children:n})=>u.jsx(u.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=lg,t}var dg=f[" useInsertionEffect ".trim().toString()]||mt;function wl({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=fg({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const d=f.useRef(e!==void 0);f.useEffect(()=>{const h=d.current;h!==a&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const l=f.useCallback(d=>{var h;if(a){const p=hg(d)?d(e):d;p!==e&&((h=i.current)==null||h.call(i,p))}else s(d)},[a,e,s,i]);return[c,l]}function fg({defaultProp:e,onChange:t}){const[n,r]=f.useState(e),o=f.useRef(n),s=f.useRef(t);return dg(()=>{s.current=t},[t]),f.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function hg(e){return typeof e=="function"}var pg=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"}),mg="VisuallyHidden",Cl=f.forwardRef((e,t)=>u.jsx(ge.span,{...e,ref:t,style:{...pg,...e.style}}));Cl.displayName=mg;var gg=Cl,[eo]=_s("Tooltip",[dl]),to=dl(),xl="TooltipProvider",yg=700,ss="tooltip.open",[vg,Ns]=eo(xl),El=e=>{const{__scopeTooltip:t,delayDuration:n=yg,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=f.useRef(!0),a=f.useRef(!1),c=f.useRef(0);return f.useEffect(()=>{const l=c.current;return()=>window.clearTimeout(l)},[]),u.jsx(vg,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:f.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:f.useCallback(l=>{a.current=l},[]),disableHoverableContent:o,children:s})};El.displayName=xl;var On="Tooltip",[bg,Wn]=eo(On),Sl=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:i,delayDuration:a}=e,c=Ns(On,e.__scopeTooltip),l=to(t),[d,h]=f.useState(null),p=Er(),g=f.useRef(0),w=i??c.disableHoverableContent,m=a??c.delayDuration,y=f.useRef(!1),[C,x]=wl({prop:r,defaultProp:o??!1,onChange:A=>{A?(c.onOpen(),document.dispatchEvent(new CustomEvent(ss))):c.onClose(),s==null||s(A)},caller:On}),S=f.useMemo(()=>C?y.current?"delayed-open":"instant-open":"closed",[C]),E=f.useCallback(()=>{window.clearTimeout(g.current),g.current=0,y.current=!1,x(!0)},[x]),_=f.useCallback(()=>{window.clearTimeout(g.current),g.current=0,x(!1)},[x]),P=f.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{y.current=!0,x(!0),g.current=0},m)},[m,x]);return f.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),u.jsx(tg,{...l,children:u.jsx(bg,{scope:t,contentId:p,open:C,stateAttribute:S,trigger:d,onTriggerChange:h,onTriggerEnter:f.useCallback(()=>{c.isOpenDelayedRef.current?P():E()},[c.isOpenDelayedRef,P,E]),onTriggerLeave:f.useCallback(()=>{w?_():(window.clearTimeout(g.current),g.current=0)},[_,w]),onOpen:E,onClose:_,disableHoverableContent:w,children:n})})};Sl.displayName=On;var is="TooltipTrigger",_l=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Wn(is,n),s=Ns(is,n),i=to(n),a=f.useRef(null),c=Pe(t,a,o.onTriggerChange),l=f.useRef(!1),d=f.useRef(!1),h=f.useCallback(()=>l.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),u.jsx(ng,{asChild:!0,...i,children:u.jsx(ge.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:me(e.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:me(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:me(e.onPointerDown,()=>{o.open&&o.onClose(),l.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:me(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:me(e.onBlur,o.onClose),onClick:me(e.onClick,o.onClose)})})});_l.displayName=is;var Ms="TooltipPortal",[wg,Cg]=eo(Ms,{forceMount:void 0}),Rl=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=Wn(Ms,t);return u.jsx(wg,{scope:t,forceMount:n,children:u.jsx(vn,{present:n||s.open,children:u.jsx(Is,{asChild:!0,container:o,children:r})})})};Rl.displayName=Ms;var pn="TooltipContent",Tl=f.forwardRef((e,t)=>{const n=Cg(pn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=Wn(pn,e.__scopeTooltip);return u.jsx(vn,{present:r||i.open,children:i.disableHoverableContent?u.jsx(Al,{side:o,...s,ref:t}):u.jsx(xg,{side:o,...s,ref:t})})}),xg=f.forwardRef((e,t)=>{const n=Wn(pn,e.__scopeTooltip),r=Ns(pn,e.__scopeTooltip),o=f.useRef(null),s=Pe(t,o),[i,a]=f.useState(null),{trigger:c,onClose:l}=n,d=o.current,{onPointerInTransitChange:h}=r,p=f.useCallback(()=>{a(null),h(!1)},[h]),g=f.useCallback((w,m)=>{const y=w.currentTarget,C={x:w.clientX,y:w.clientY},x=Rg(C,y.getBoundingClientRect()),S=Tg(C,x),E=Ag(m.getBoundingClientRect()),_=Og([...S,...E]);a(_),h(!0)},[h]);return f.useEffect(()=>()=>p(),[p]),f.useEffect(()=>{if(c&&d){const w=y=>g(y,d),m=y=>g(y,c);return c.addEventListener("pointerleave",w),d.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",m)}}},[c,d,g,p]),f.useEffect(()=>{if(i){const w=m=>{const y=m.target,C={x:m.clientX,y:m.clientY},x=(c==null?void 0:c.contains(y))||(d==null?void 0:d.contains(y)),S=!Pg(C,i);x?p():S&&(p(),l())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[c,d,i,l,p]),u.jsx(Al,{...e,ref:s})}),[Eg,Sg]=eo(On,{isInside:!1}),_g=ug("TooltipContent"),Al=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,c=Wn(pn,n),l=to(n),{onClose:d}=c;return f.useEffect(()=>(document.addEventListener(ss,d),()=>document.removeEventListener(ss,d)),[d]),f.useEffect(()=>{if(c.trigger){const h=p=>{const g=p.target;g!=null&&g.contains(c.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,d]),u.jsx(Rs,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:u.jsxs(rg,{"data-state":c.stateAttribute,...l,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(_g,{children:r}),u.jsx(Eg,{scope:n,isInside:!0,children:u.jsx(gg,{id:c.contentId,role:"tooltip",children:o||r})})]})})});Tl.displayName=pn;var Pl="TooltipArrow",Ol=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=to(n);return Sg(Pl,n).isInside?null:u.jsx(og,{...o,...r,ref:t})});Ol.displayName=Pl;function Rg(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 Tg(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 Ag(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 Pg(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],c=t[i],l=a.x,d=a.y,h=c.x,p=c.y;d>r!=p>r&&n<(h-l)*(r-d)/(p-d)+l&&(o=!o)}return o}function Og(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),jg(t)}function jg(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 Dg=El,Lg=Sl,kg=_l,Ig=Rl,Ng=Tl,Mg=Ol;const $g="tooltip__nUuSh",Fg="tooltipArrow__W2w-f",oa={tooltip:$g,tooltipArrow:Fg},jl=({children:e,open:t,displayName:n,tooltipContent:r,className:o,disabled:s,delayDuration:i=300,side:a="right",sideOffset:c=0})=>{const[l,d]=R.useState(!1),h=t!==void 0,g=s?!1:h?t:l,w=m=>{s||h||d(m)};return u.jsx(Dg,{delayDuration:i,children:u.jsxs(Lg,{open:g,onOpenChange:w,children:[u.jsx(kg,{asChild:!0,children:e}),u.jsx(Ig,{children:u.jsxs(Ng,{className:D(oa.tooltip,o),side:a,sideOffset:c,children:[n,r,u.jsx(Mg,{className:oa.tooltipArrow})]})})]})})};jl.displayName="Tooltip";const Bg="spinner__qa7F6",Ug="rotate__EqlXe",Wg="spinner-dark__9A9-q",Hg="spinner-white__gRbtI",Vg="spinner-success__otWGm",qg="spinner-danger__Bq5DM",zg="spinner-warning__U900K",sa={spinner:Bg,rotate:Ug,"spinner-dark":"spinner-dark__9A9-q",spinnerDark:Wg,"spinner-white":"spinner-white__gRbtI",spinnerWhite:Hg,"spinner-success":"spinner-success__otWGm",spinnerSuccess:Vg,"spinner-danger":"spinner-danger__Bq5DM",spinnerDanger:qg,"spinner-warning":"spinner-warning__U900K",spinnerWarning:zg},Dl=({className:e,color:t="white",size:n=80,thickness:r})=>{const o=D(sa.spinner,sa[`spinner-${t}`],e),s=r??Math.max(n/12,2);return u.jsx("span",{style:{width:n,height:n,borderWidth:s},className:o})};Dl.displayName="Spinner";const Gg="disabled__KpauE",Qg="checked__2-JV-",Kg="thumb__fEuKD",ur={switch:"switch__0b2av",disabled:Gg,checked:Qg,thumb:Kg},Ll=R.forwardRef(({checked:e,defaultChecked:t=!1,onCheckedChange:n,disabled:r=!1,id:o,className:s,name:i,"aria-label":a,"aria-labelledby":c,"aria-describedby":l,...d},h)=>{const[p,g]=R.useState(t),w=e!==void 0,m=w?!!e:p,y=()=>{if(r)return;const x=!m;w||g(x),n==null||n(x)},C=x=>{(x.key===" "||x.key==="Enter")&&(x.preventDefault(),y())};return u.jsx("button",{ref:h,type:"button",role:"switch","aria-checked":m,"aria-label":a,"aria-labelledby":c,"aria-describedby":l,disabled:r,id:o,name:i,className:D(ur.switch,{[ur.checked]:m,[ur.disabled]:r}),onClick:y,onKeyDown:C,...d,children:u.jsx("span",{className:ur.thumb,"aria-hidden":"true"})})});Ll.displayName="Switch";const Yg="tabs-root__ELmdj",Zg="tabs-list__rc10N",Xg="tabs-list--horizontal__e1YW4",Jg="tabs-list--vertical__huK05",ey="tabs-trigger__D8R4R",ty="tabs-trigger--disabled__ezDWc",ny="tabs-trigger--horizontal__4jBFV",ry="tabs-trigger--active__S-Z-S",oy="tabs-trigger--vertical__dNVIZ",sy="tabs-content__1d77o",Ie={tabsRoot:Yg,tabsList:Zg,tabsListHorizontal:Xg,tabsListVertical:Jg,tabsTrigger:ey,tabsTriggerDisabled:ty,tabsTriggerHorizontal:ny,tabsTriggerActive:ry,tabsTriggerVertical:oy,tabsContent:sy},kl=R.createContext(null),$s=()=>{const e=R.useContext(kl);if(!e)throw new Error("Tabs components must be used within a Tabs provider");return e},iy=({defaultValue:e,value:t,onValueChange:n,orientation:r="horizontal",className:o="",children:s})=>{const[i,a]=R.useState(e||""),c=t!==void 0,l=c?t:i,d=h=>{c||a(h),n==null||n(h)};return u.jsx(kl.Provider,{value:{value:l,onValueChange:d,orientation:r},children:u.jsx("div",{className:D(Ie.tabsRoot,o),children:s})})},ay=({className:e="",children:t})=>{const{orientation:n}=$s(),r=R.useRef(null),o=s=>{var l;const i=(l=r.current)==null?void 0:l.querySelectorAll('[role="tab"]:not([disabled])');if(!i)return;const a=Array.from(i).findIndex(d=>d===document.activeElement);let c=a;switch(s.key){case"ArrowLeft":n==="horizontal"&&(s.preventDefault(),c=a>0?a-1:i.length-1);break;case"ArrowRight":n==="horizontal"&&(s.preventDefault(),c=a<i.length-1?a+1:0);break;case"ArrowUp":n==="vertical"&&(s.preventDefault(),c=a>0?a-1:i.length-1);break;case"ArrowDown":n==="vertical"&&(s.preventDefault(),c=a<i.length-1?a+1:0);break;case"Home":s.preventDefault(),c=0;break;case"End":s.preventDefault(),c=i.length-1;break}if(c!==a){const d=i[c];d.focus(),d.click()}};return u.jsx("div",{ref:r,role:"tablist","aria-orientation":n,onKeyDown:o,className:D(Ie.tabsList,n==="horizontal"?Ie.tabsListHorizontal:Ie.tabsListVertical,e),children:t})},cy=({value:e,disabled:t=!1,className:n="",children:r})=>{const{value:o,onValueChange:s,orientation:i}=$s(),a=o===e,c=()=>{t||s(e)};return u.jsx("button",{role:"tab","aria-selected":a,"aria-controls":`content-${e}`,tabIndex:a?0:-1,disabled:t,onClick:c,className:D(Ie.tabsTrigger,i==="horizontal"?Ie.tabsTriggerHorizontal:Ie.tabsTriggerVertical,a&&Ie.tabsTriggerActive,t&&Ie.tabsTriggerDisabled,n),children:r})},ly=({value:e,className:t="",children:n})=>{const{value:r}=$s();return r===e?u.jsx("div",{role:"tabpanel",id:`content-${e}`,"aria-labelledby":`trigger-${e}`,tabIndex:0,className:D(Ie.tabsContent,t),children:n}):null},Il=({className:e,state:t="open",onClick:n})=>t==="open"?u.jsxs("svg",{className:e,onClick:n,xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",viewBox:"0 0 14 14",fill:"none",children:[u.jsx("path",{d:"M1.41174 7.41635C1.3323 7.29056 1.29257 7.22766 1.27034 7.13065C1.25364 7.05778 1.25364 6.94287 1.27034 6.87C1.29257 6.77299 1.3323 6.71009 1.41174 6.58431C2.06823 5.54482 4.02232 2.91699 7.00024 2.91699C9.97815 2.91699 11.9322 5.54482 12.5887 6.5843C12.6682 6.71009 12.7079 6.77299 12.7301 6.87C12.7468 6.94287 12.7468 7.05778 12.7301 7.13065C12.7079 7.22766 12.6682 7.29056 12.5887 7.41635C11.9322 8.45584 9.97815 11.0837 7.00024 11.0837C4.02232 11.0837 2.06823 8.45584 1.41174 7.41635Z",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M7.00024 8.75033C7.96673 8.75033 8.75024 7.96682 8.75024 7.00033C8.75024 6.03383 7.96673 5.25033 7.00024 5.25033C6.03374 5.25033 5.25024 6.03383 5.25024 7.00033C5.25024 7.96682 6.03374 8.75033 7.00024 8.75033Z",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})]}):u.jsx("svg",{className:e,onClick:n,xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",viewBox:"0 0 14 14",fill:"none",children:u.jsx("path",{d:"M6.26672 2.97052C6.50379 2.93547 6.74835 2.91667 7.00024 2.91667C9.97816 2.91667 11.9323 5.54449 12.5887 6.58398C12.6682 6.70979 12.7079 6.7727 12.7302 6.86973C12.7469 6.94259 12.7468 7.05755 12.7301 7.13042C12.7079 7.22744 12.6679 7.29077 12.5879 7.41741C12.413 7.69425 12.1463 8.08331 11.793 8.50527M3.92252 3.9171C2.66131 4.77266 1.8051 5.9613 1.41231 6.58308C1.3325 6.70942 1.29259 6.7726 1.27035 6.86961C1.25364 6.94248 1.25363 7.05742 1.27033 7.13029C1.29257 7.22731 1.33229 7.29022 1.41174 7.41602C2.06823 8.45551 4.02232 11.0833 7.00024 11.0833C8.20098 11.0833 9.23526 10.6561 10.0851 10.078M1.75024 1.75L12.2502 12.25M5.76281 5.76256C5.44612 6.07925 5.25024 6.51675 5.25024 7C5.25024 7.9665 6.03374 8.75 7.00024 8.75C7.48349 8.75 7.92099 8.55413 8.23768 8.23744",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})}),uy="PasswordInput__GDJDN",dy="eyeIcon__kDExG",ia={PasswordInput:uy,eyeIcon:dy},fy=R.forwardRef((e,t)=>{const[n,r]=R.useState("password"),o=R.useCallback(()=>{r(s=>s==="password"?"text":"password")},[r]);return u.jsxs("div",{className:D(ia.PasswordInput,e.className),children:[u.jsx(zr,{type:n,...e,ref:t}),u.jsx(Il,{className:ia.eyeIcon,onClick:o,state:n==="password"?"open":"closed"})]})});var wo="focusScope.autoFocusOnMount",Co="focusScope.autoFocusOnUnmount",aa={bubbles:!1,cancelable:!0},hy="FocusScope",Nl=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,c]=f.useState(null),l=fn(o),d=fn(s),h=f.useRef(null),p=Pe(t,m=>c(m)),g=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let m=function(S){if(g.paused||!a)return;const E=S.target;a.contains(E)?h.current=E:Je(h.current,{select:!0})},y=function(S){if(g.paused||!a)return;const E=S.relatedTarget;E!==null&&(a.contains(E)||Je(h.current,{select:!0}))},C=function(S){if(document.activeElement===document.body)for(const _ of S)_.removedNodes.length>0&&Je(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",y);const x=new MutationObserver(C);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",y),x.disconnect()}}},[r,a,g.paused]),f.useEffect(()=>{if(a){la.add(g);const m=document.activeElement;if(!a.contains(m)){const C=new CustomEvent(wo,aa);a.addEventListener(wo,l),a.dispatchEvent(C),C.defaultPrevented||(py(by(Ml(a)),{select:!0}),document.activeElement===m&&Je(a))}return()=>{a.removeEventListener(wo,l),setTimeout(()=>{const C=new CustomEvent(Co,aa);a.addEventListener(Co,d),a.dispatchEvent(C),C.defaultPrevented||Je(m??document.body,{select:!0}),a.removeEventListener(Co,d),la.remove(g)},0)}}},[a,l,d,g]);const w=f.useCallback(m=>{if(!n&&!r||g.paused)return;const y=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,C=document.activeElement;if(y&&C){const x=m.currentTarget,[S,E]=my(x);S&&E?!m.shiftKey&&C===E?(m.preventDefault(),n&&Je(S,{select:!0})):m.shiftKey&&C===S&&(m.preventDefault(),n&&Je(E,{select:!0})):C===x&&m.preventDefault()}},[n,r,g.paused]);return u.jsx(ge.div,{tabIndex:-1,...i,ref:p,onKeyDown:w})});Nl.displayName=hy;function py(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Je(r,{select:t}),document.activeElement!==n)return}function my(e){const t=Ml(e),n=ca(t,e),r=ca(t.reverse(),e);return[n,r]}function Ml(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 ca(e,t){for(const n of e)if(!gy(n,{upTo:t}))return n}function gy(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 yy(e){return e instanceof HTMLInputElement&&"select"in e}function Je(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&yy(e)&&t&&e.select()}}var la=vy();function vy(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ua(e,t),e.unshift(t)},remove(t){var n;e=ua(e,t),(n=e[0])==null||n.resume()}}}function ua(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function by(e){return e.filter(t=>t.tagName!=="A")}var xo=0;function wy(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??da()),document.body.insertAdjacentElement("beforeend",e[1]??da()),xo++,()=>{xo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),xo--}},[])}function da(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var _r="right-scroll-bar-position",Rr="width-before-scroll-bar",Cy="with-scroll-bars-hidden",xy="--removed-body-scroll-bar-size";function Eo(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ey(e,t){var n=R.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 Sy=typeof window<"u"?f.useLayoutEffect:f.useEffect,fa=new WeakMap;function _y(e,t){var n=Ey(null,function(r){return e.forEach(function(o){return Eo(o,r)})});return Sy(function(){var r=fa.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||Eo(a,null)}),s.forEach(function(a){o.has(a)||Eo(a,i)})}fa.set(n,e)},[e]),n}function Ry(e){return e}function Ty(e,t){t===void 0&&(t=Ry);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var c=function(){var d=i;i=[],d.forEach(s)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(d){i.push(d),l()},filter:function(d){return i=i.filter(d),n}}}};return o}function Ay(e){e===void 0&&(e={});var t=Ty(null);return t.options=ke({async:!0,ssr:!1},e),t}var $l=function(e){var t=e.sideCar,n=cc(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 f.createElement(r,ke({},n))};$l.isSideCarExport=!0;function Py(e,t){return e.useMedium(t),$l}var Fl=Ay(),So=function(){},no=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:So,onWheelCapture:So,onTouchMoveCapture:So}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,d=e.enabled,h=e.shards,p=e.sideCar,g=e.noRelative,w=e.noIsolation,m=e.inert,y=e.allowPinchZoom,C=e.as,x=C===void 0?"div":C,S=e.gapMode,E=cc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=p,P=_y([n,t]),A=ke(ke({},E),o);return f.createElement(f.Fragment,null,d&&f.createElement(_,{sideCar:Fl,removeScrollBar:l,shards:h,noRelative:g,noIsolation:w,inert:m,setCallbacks:s,allowPinchZoom:!!y,lockRef:n,gapMode:S}),i?f.cloneElement(f.Children.only(a),ke(ke({},A),{ref:P})):f.createElement(x,ke({},A,{className:c,ref:P}),a))});no.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};no.classNames={fullWidth:Rr,zeroRight:_r};var Oy=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function jy(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Oy();return t&&e.setAttribute("nonce",t),e}function Dy(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ly(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ky=function(){var e=0,t=null;return{add:function(n){e==0&&(t=jy())&&(Dy(t,n),Ly(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Iy=function(){var e=ky();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Bl=function(){var e=Iy(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Ny={left:0,top:0,right:0,gap:0},_o=function(e){return parseInt(e||"",10)||0},My=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[_o(n),_o(r),_o(o)]},$y=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ny;var t=My(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])}},Fy=Bl(),Zt="data-scroll-locked",By=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
209
|
+
.`.concat(Cy,` {
|
|
210
210
|
overflow: hidden `).concat(r,`;
|
|
211
211
|
padding-right: `).concat(a,"px ").concat(r,`;
|
|
212
212
|
}
|
|
@@ -240,13 +240,13 @@ to {
|
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
body[`).concat(Zt,`] {
|
|
243
|
-
`).concat(
|
|
243
|
+
`).concat(xy,": ").concat(a,`px;
|
|
244
244
|
}
|
|
245
|
-
`)},ha=function(){var e=parseInt(document.body.getAttribute(Zt)||"0",10);return isFinite(e)?e:0},
|
|
245
|
+
`)},ha=function(){var e=parseInt(document.body.getAttribute(Zt)||"0",10);return isFinite(e)?e:0},Uy=function(){f.useEffect(function(){return document.body.setAttribute(Zt,(ha()+1).toString()),function(){var e=ha()-1;e<=0?document.body.removeAttribute(Zt):document.body.setAttribute(Zt,e.toString())}},[])},Wy=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Uy();var s=f.useMemo(function(){return $y(o)},[o]);return f.createElement(Fy,{styles:By(s,!t,o,n?"":"!important")})},as=!1;if(typeof window<"u")try{var dr=Object.defineProperty({},"passive",{get:function(){return as=!0,!0}});window.addEventListener("test",dr,dr),window.removeEventListener("test",dr,dr)}catch{as=!1}var Gt=as?{passive:!1}:!1,Hy=function(e){return e.tagName==="TEXTAREA"},Ul=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Hy(e)&&n[t]==="visible")},Vy=function(e){return Ul(e,"overflowY")},qy=function(e){return Ul(e,"overflowX")},pa=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Wl(e,r);if(o){var s=Hl(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},zy=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Gy=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Wl=function(e,t){return e==="v"?Vy(t):qy(t)},Hl=function(e,t){return e==="v"?zy(t):Gy(t)},Qy=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ky=function(e,t,n,r,o){var s=Qy(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,c=t.contains(a),l=!1,d=i>0,h=0,p=0;do{if(!a)break;var g=Hl(e,a),w=g[0],m=g[1],y=g[2],C=m-y-s*w;(w||C)&&Wl(e,a)&&(h+=C,p+=w);var x=a.parentNode;a=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(d&&Math.abs(h)<1||!d&&Math.abs(p)<1)&&(l=!0),l},fr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ma=function(e){return[e.deltaX,e.deltaY]},ga=function(e){return e&&"current"in e?e.current:e},Yy=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Zy=function(e){return`
|
|
246
246
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
247
247
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
248
|
-
`)},Zy=0,Qt=[];function Xy(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(Zy++)[0],s=f.useState(Fl)[0],i=f.useRef(e);f.useEffect(function(){i.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=Tr([e.lockRef.current],(e.shards||[]).map(ga),!0).filter(Boolean);return m.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=f.useCallback(function(m,y){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!i.current.allowPinchZoom;var C=fr(m),x=n.current,S="deltaX"in m?m.deltaX:x[0]-C[0],E="deltaY"in m?m.deltaY:x[1]-C[1],_,P=m.target,A=Math.abs(S)>Math.abs(E)?"h":"v";if("touches"in m&&A==="h"&&P.type==="range")return!1;var M=window.getSelection(),I=M&&M.anchorNode,k=I?I===P||I.contains(P):!1;if(k)return!1;var V=pa(A,P);if(!V)return!0;if(V?_=A:(_=A==="v"?"h":"v",V=pa(A,P)),!V)return!1;if(!r.current&&"changedTouches"in m&&(S||E)&&(r.current=_),!_)return!0;var Q=r.current||_;return Qy(Q,y,m,Q==="h"?S:E)},[]),c=f.useCallback(function(m){var y=m;if(!(!Qt.length||Qt[Qt.length-1]!==s)){var C="deltaY"in y?ma(y):fr(y),x=t.current.filter(function(_){return _.name===y.type&&(_.target===y.target||y.target===_.shadowParent)&&Ky(_.delta,C)})[0];if(x&&x.should){y.cancelable&&y.preventDefault();return}if(!x){var S=(i.current.shards||[]).map(ga).filter(Boolean).filter(function(_){return _.contains(y.target)}),E=S.length>0?a(y,S[0]):!i.current.noIsolation;E&&y.cancelable&&y.preventDefault()}}},[]),l=f.useCallback(function(m,y,C,x){var S={name:m,delta:y,target:C,should:x,shadowParent:Jy(C)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(E){return E!==S})},1)},[]),d=f.useCallback(function(m){n.current=fr(m),r.current=void 0},[]),h=f.useCallback(function(m){l(m.type,ma(m),m.target,a(m,e.lockRef.current))},[]),p=f.useCallback(function(m){l(m.type,fr(m),m.target,a(m,e.lockRef.current))},[]);f.useEffect(function(){return Qt.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Gt),document.addEventListener("touchmove",c,Gt),document.addEventListener("touchstart",d,Gt),function(){Qt=Qt.filter(function(m){return m!==s}),document.removeEventListener("wheel",c,Gt),document.removeEventListener("touchmove",c,Gt),document.removeEventListener("touchstart",d,Gt)}},[]);var g=e.removeScrollBar,w=e.inert;return f.createElement(f.Fragment,null,w?f.createElement(s,{styles:Yy(o)}):null,g?f.createElement(Uy,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Jy(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ev=Ay($l,Xy);var Hl=f.forwardRef(function(e,t){return f.createElement(no,ke({},e,{ref:t,sideCar:ev}))});Hl.classNames=no.classNames;var tv=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Kt=new WeakMap,hr=new WeakMap,pr={},Ro=0,Vl=function(e){return e&&(e.host||Vl(e.parentNode))},nv=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Vl(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})},rv=function(e,t,n,r){var o=nv(t,Array.isArray(e)?e:[e]);pr[n]||(pr[n]=new WeakMap);var s=pr[n],i=[],a=new Set,c=new Set(o),l=function(h){!h||a.has(h)||(a.add(h),l(h.parentNode))};o.forEach(l);var d=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(p){if(a.has(p))d(p);else try{var g=p.getAttribute(r),w=g!==null&&g!=="false",m=(Kt.get(p)||0)+1,y=(s.get(p)||0)+1;Kt.set(p,m),s.set(p,y),i.push(p),m===1&&w&&hr.set(p,!0),y===1&&p.setAttribute(n,"true"),w||p.setAttribute(r,"true")}catch(C){console.error("aria-hidden: cannot operate on ",p,C)}})};return d(t),a.clear(),Ro++,function(){i.forEach(function(h){var p=Kt.get(h)-1,g=s.get(h)-1;Kt.set(h,p),s.set(h,g),p||(hr.has(h)||h.removeAttribute(r),hr.delete(h)),g||h.removeAttribute(n)}),Ro--,Ro||(Kt=new WeakMap,Kt=new WeakMap,hr=new WeakMap,pr={})}},ov=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=tv(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),rv(r,o,n,"aria-hidden")):function(){return null}};function sv(e){const t=iv(e),n=f.forwardRef((r,o)=>{const{children:s,...i}=r,a=f.Children.toArray(s),c=a.find(cv);if(c){const l=c.props.children,d=a.map(h=>h===c?f.Children.count(l)>1?f.Children.only(null):f.isValidElement(l)?l.props.children:null:h);return u.jsx(t,{...i,ref:o,children:f.isValidElement(l)?f.cloneElement(l,void 0,d):null})}return u.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function iv(e){const t=f.forwardRef((n,r)=>{const{children:o,...s}=n;if(f.isValidElement(o)){const i=uv(o),a=lv(s,o.props);return o.type!==f.Fragment&&(a.ref=r?Qr(r,i):i),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var av=Symbol("radix.slottable");function cv(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===av}function lv(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function uv(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 ro="Dialog",[ql]=_s(ro),[dv,Oe]=ql(ro),zl=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,a=f.useRef(null),c=f.useRef(null),[l,d]=bl({prop:r,defaultProp:o??!1,onChange:s,caller:ro});return u.jsx(dv,{scope:t,triggerRef:a,contentRef:c,contentId:Er(),titleId:Er(),descriptionId:Er(),open:l,onOpenChange:d,onOpenToggle:f.useCallback(()=>d(h=>!h),[d]),modal:i,children:n})};zl.displayName=ro;var Gl="DialogTrigger",fv=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe(Gl,n),s=Pe(t,o.triggerRef);return u.jsx(ge.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Us(o.open),...r,ref:s,onClick:me(e.onClick,o.onOpenToggle)})});fv.displayName=Gl;var Fs="DialogPortal",[hv,Ql]=ql(Fs,{forceMount:void 0}),Kl=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Oe(Fs,t);return u.jsx(hv,{scope:t,forceMount:n,children:f.Children.map(r,i=>u.jsx(vn,{present:n||s.open,children:u.jsx(Is,{asChild:!0,container:o,children:i})}))})};Kl.displayName=Fs;var $r="DialogOverlay",Yl=f.forwardRef((e,t)=>{const n=Ql($r,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Oe($r,e.__scopeDialog);return s.modal?u.jsx(vn,{present:r||s.open,children:u.jsx(mv,{...o,ref:t})}):null});Yl.displayName=$r;var pv=sv("DialogOverlay.RemoveScroll"),mv=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe($r,n);return u.jsx(Hl,{as:pv,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(ge.div,{"data-state":Us(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ft="DialogContent",Zl=f.forwardRef((e,t)=>{const n=Ql(Ft,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Oe(Ft,e.__scopeDialog);return u.jsx(vn,{present:r||s.open,children:s.modal?u.jsx(gv,{...o,ref:t}):u.jsx(yv,{...o,ref:t})})});Zl.displayName=Ft;var gv=f.forwardRef((e,t)=>{const n=Oe(Ft,e.__scopeDialog),r=f.useRef(null),o=Pe(t,n.contentRef,r);return f.useEffect(()=>{const s=r.current;if(s)return ov(s)},[]),u.jsx(Xl,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:me(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:me(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&s.preventDefault()}),onFocusOutside:me(e.onFocusOutside,s=>s.preventDefault())})}),yv=f.forwardRef((e,t)=>{const n=Oe(Ft,e.__scopeDialog),r=f.useRef(!1),o=f.useRef(!1);return u.jsx(Xl,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((l=n.triggerRef.current)==null?void 0:l.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Xl=f.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,a=Oe(Ft,n),c=f.useRef(null),l=Pe(t,c);return by(),u.jsxs(u.Fragment,{children:[u.jsx(Il,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:u.jsx(Rs,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Us(a.open),...i,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(vv,{titleId:a.titleId}),u.jsx(wv,{contentRef:c,descriptionId:a.descriptionId})]})]})}),Bs="DialogTitle",Jl=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe(Bs,n);return u.jsx(ge.h2,{id:o.titleId,...r,ref:t})});Jl.displayName=Bs;var eu="DialogDescription",tu=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe(eu,n);return u.jsx(ge.p,{id:o.descriptionId,...r,ref:t})});tu.displayName=eu;var nu="DialogClose",ru=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe(nu,n);return u.jsx(ge.button,{type:"button",...r,ref:t,onClick:me(e.onClick,()=>o.onOpenChange(!1))})});ru.displayName=nu;function Us(e){return e?"open":"closed"}var ou="DialogTitleWarning",[c2,su]=m1(ou,{contentName:Ft,titleName:Bs,docsSlug:"dialog"}),vv=({titleId:e})=>{const t=su(ou),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
248
|
+
`)},Xy=0,Qt=[];function Jy(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(Xy++)[0],s=f.useState(Bl)[0],i=f.useRef(e);f.useEffect(function(){i.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=Tr([e.lockRef.current],(e.shards||[]).map(ga),!0).filter(Boolean);return m.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=f.useCallback(function(m,y){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!i.current.allowPinchZoom;var C=fr(m),x=n.current,S="deltaX"in m?m.deltaX:x[0]-C[0],E="deltaY"in m?m.deltaY:x[1]-C[1],_,P=m.target,A=Math.abs(S)>Math.abs(E)?"h":"v";if("touches"in m&&A==="h"&&P.type==="range")return!1;var M=window.getSelection(),I=M&&M.anchorNode,k=I?I===P||I.contains(P):!1;if(k)return!1;var V=pa(A,P);if(!V)return!0;if(V?_=A:(_=A==="v"?"h":"v",V=pa(A,P)),!V)return!1;if(!r.current&&"changedTouches"in m&&(S||E)&&(r.current=_),!_)return!0;var Q=r.current||_;return Ky(Q,y,m,Q==="h"?S:E)},[]),c=f.useCallback(function(m){var y=m;if(!(!Qt.length||Qt[Qt.length-1]!==s)){var C="deltaY"in y?ma(y):fr(y),x=t.current.filter(function(_){return _.name===y.type&&(_.target===y.target||y.target===_.shadowParent)&&Yy(_.delta,C)})[0];if(x&&x.should){y.cancelable&&y.preventDefault();return}if(!x){var S=(i.current.shards||[]).map(ga).filter(Boolean).filter(function(_){return _.contains(y.target)}),E=S.length>0?a(y,S[0]):!i.current.noIsolation;E&&y.cancelable&&y.preventDefault()}}},[]),l=f.useCallback(function(m,y,C,x){var S={name:m,delta:y,target:C,should:x,shadowParent:ev(C)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(E){return E!==S})},1)},[]),d=f.useCallback(function(m){n.current=fr(m),r.current=void 0},[]),h=f.useCallback(function(m){l(m.type,ma(m),m.target,a(m,e.lockRef.current))},[]),p=f.useCallback(function(m){l(m.type,fr(m),m.target,a(m,e.lockRef.current))},[]);f.useEffect(function(){return Qt.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Gt),document.addEventListener("touchmove",c,Gt),document.addEventListener("touchstart",d,Gt),function(){Qt=Qt.filter(function(m){return m!==s}),document.removeEventListener("wheel",c,Gt),document.removeEventListener("touchmove",c,Gt),document.removeEventListener("touchstart",d,Gt)}},[]);var g=e.removeScrollBar,w=e.inert;return f.createElement(f.Fragment,null,w?f.createElement(s,{styles:Zy(o)}):null,g?f.createElement(Wy,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ev(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const tv=Py(Fl,Jy);var Vl=f.forwardRef(function(e,t){return f.createElement(no,ke({},e,{ref:t,sideCar:tv}))});Vl.classNames=no.classNames;var nv=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Kt=new WeakMap,hr=new WeakMap,pr={},Ro=0,ql=function(e){return e&&(e.host||ql(e.parentNode))},rv=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ql(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},ov=function(e,t,n,r){var o=rv(t,Array.isArray(e)?e:[e]);pr[n]||(pr[n]=new WeakMap);var s=pr[n],i=[],a=new Set,c=new Set(o),l=function(h){!h||a.has(h)||(a.add(h),l(h.parentNode))};o.forEach(l);var d=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(p){if(a.has(p))d(p);else try{var g=p.getAttribute(r),w=g!==null&&g!=="false",m=(Kt.get(p)||0)+1,y=(s.get(p)||0)+1;Kt.set(p,m),s.set(p,y),i.push(p),m===1&&w&&hr.set(p,!0),y===1&&p.setAttribute(n,"true"),w||p.setAttribute(r,"true")}catch(C){console.error("aria-hidden: cannot operate on ",p,C)}})};return d(t),a.clear(),Ro++,function(){i.forEach(function(h){var p=Kt.get(h)-1,g=s.get(h)-1;Kt.set(h,p),s.set(h,g),p||(hr.has(h)||h.removeAttribute(r),hr.delete(h)),g||h.removeAttribute(n)}),Ro--,Ro||(Kt=new WeakMap,Kt=new WeakMap,hr=new WeakMap,pr={})}},sv=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=nv(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),ov(r,o,n,"aria-hidden")):function(){return null}};function iv(e){const t=av(e),n=f.forwardRef((r,o)=>{const{children:s,...i}=r,a=f.Children.toArray(s),c=a.find(lv);if(c){const l=c.props.children,d=a.map(h=>h===c?f.Children.count(l)>1?f.Children.only(null):f.isValidElement(l)?l.props.children:null:h);return u.jsx(t,{...i,ref:o,children:f.isValidElement(l)?f.cloneElement(l,void 0,d):null})}return u.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function av(e){const t=f.forwardRef((n,r)=>{const{children:o,...s}=n;if(f.isValidElement(o)){const i=dv(o),a=uv(s,o.props);return o.type!==f.Fragment&&(a.ref=r?Qr(r,i):i),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var cv=Symbol("radix.slottable");function lv(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===cv}function uv(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function dv(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 ro="Dialog",[zl]=_s(ro),[fv,Oe]=zl(ro),Gl=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,a=f.useRef(null),c=f.useRef(null),[l,d]=wl({prop:r,defaultProp:o??!1,onChange:s,caller:ro});return u.jsx(fv,{scope:t,triggerRef:a,contentRef:c,contentId:Er(),titleId:Er(),descriptionId:Er(),open:l,onOpenChange:d,onOpenToggle:f.useCallback(()=>d(h=>!h),[d]),modal:i,children:n})};Gl.displayName=ro;var Ql="DialogTrigger",hv=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe(Ql,n),s=Pe(t,o.triggerRef);return u.jsx(ge.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Us(o.open),...r,ref:s,onClick:me(e.onClick,o.onOpenToggle)})});hv.displayName=Ql;var Fs="DialogPortal",[pv,Kl]=zl(Fs,{forceMount:void 0}),Yl=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Oe(Fs,t);return u.jsx(pv,{scope:t,forceMount:n,children:f.Children.map(r,i=>u.jsx(vn,{present:n||s.open,children:u.jsx(Is,{asChild:!0,container:o,children:i})}))})};Yl.displayName=Fs;var $r="DialogOverlay",Zl=f.forwardRef((e,t)=>{const n=Kl($r,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Oe($r,e.__scopeDialog);return s.modal?u.jsx(vn,{present:r||s.open,children:u.jsx(gv,{...o,ref:t})}):null});Zl.displayName=$r;var mv=iv("DialogOverlay.RemoveScroll"),gv=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe($r,n);return u.jsx(Vl,{as:mv,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(ge.div,{"data-state":Us(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ft="DialogContent",Xl=f.forwardRef((e,t)=>{const n=Kl(Ft,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Oe(Ft,e.__scopeDialog);return u.jsx(vn,{present:r||s.open,children:s.modal?u.jsx(yv,{...o,ref:t}):u.jsx(vv,{...o,ref:t})})});Xl.displayName=Ft;var yv=f.forwardRef((e,t)=>{const n=Oe(Ft,e.__scopeDialog),r=f.useRef(null),o=Pe(t,n.contentRef,r);return f.useEffect(()=>{const s=r.current;if(s)return sv(s)},[]),u.jsx(Jl,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:me(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:me(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&s.preventDefault()}),onFocusOutside:me(e.onFocusOutside,s=>s.preventDefault())})}),vv=f.forwardRef((e,t)=>{const n=Oe(Ft,e.__scopeDialog),r=f.useRef(!1),o=f.useRef(!1);return u.jsx(Jl,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((l=n.triggerRef.current)==null?void 0:l.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Jl=f.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,a=Oe(Ft,n),c=f.useRef(null),l=Pe(t,c);return wy(),u.jsxs(u.Fragment,{children:[u.jsx(Nl,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:u.jsx(Rs,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Us(a.open),...i,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(bv,{titleId:a.titleId}),u.jsx(Cv,{contentRef:c,descriptionId:a.descriptionId})]})]})}),Bs="DialogTitle",eu=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe(Bs,n);return u.jsx(ge.h2,{id:o.titleId,...r,ref:t})});eu.displayName=Bs;var tu="DialogDescription",nu=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe(tu,n);return u.jsx(ge.p,{id:o.descriptionId,...r,ref:t})});nu.displayName=tu;var ru="DialogClose",ou=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe(ru,n);return u.jsx(ge.button,{type:"button",...r,ref:t,onClick:me(e.onClick,()=>o.onOpenChange(!1))})});ou.displayName=ru;function Us(e){return e?"open":"closed"}var su="DialogTitleWarning",[l2,iu]=g1(su,{contentName:Ft,titleName:Bs,docsSlug:"dialog"}),bv=({titleId:e})=>{const t=iu(su),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
249
249
|
|
|
250
250
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
251
251
|
|
|
252
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},bv="DialogDescriptionWarning",wv=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${su(bv).contentName}}.`;return f.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},Cv=zl,xv=Kl,Ev=Yl,Sv=Zl,_v=Jl,Rv=tu,Tv=ru;const Av="Overlay__M5Z83",Pv="Content__wAkP4",ya={Overlay:Av,Content:Pv},Ov="Header__VHxNf",jv="Content__I04qM",Dv="Close__xSN-7",Lv="Title__Dznh6",kv="Footer__-8gzQ",Iv="Actions__kKF2Q",Ut={Header:Ov,Content:jv,Close:Dv,Title:Lv,Footer:kv,Actions:Iv},iu=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Header,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});iu.displayName="Header";const au=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Content,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});au.displayName="Content";const cu=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Footer,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});cu.displayName="Footer";const lu=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Title,t);return u.jsx(_v,{ref:r,className:o,...n,children:e})});lu.displayName="Title";const uu=R.forwardRef(({className:e,...t},n)=>{const r=D(Ut.Close,e);return u.jsx(Tv,{ref:n,asChild:!0,className:r,...t,children:u.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M11 1L1 11M1 1L11 11",stroke:"#A9A9A9",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})});uu.displayName="Close";const du=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Actions,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});du.displayName="Actions";const fu=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Description,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});fu.displayName="Description";const ie=({children:e,onClose:t,open:n=!1,className:r})=>{const o=()=>{t==null||t()};return u.jsx(Cv,{onOpenChange:o,open:n,children:u.jsxs(xv,{children:[u.jsx(Ev,{className:ya.Overlay}),u.jsxs(Sv,{children:[u.jsx(Rv,{}),u.jsx("div",{className:D(ya.Content,r),children:e})]})]})})};ie.displayName="Dialog";ie.Header=iu;ie.Content=au;ie.Footer=cu;ie.Actions=du;ie.Title=lu;ie.Description=fu;ie.Close=uu;const Nv="pill__vtGwB",Mv="pill--solid__F-mR4",$v="pill--outline__gC-mh",va={pill:Nv,"pill--solid":"pill--solid__F-mR4",pillSolid:Mv,"pill--outline":"pill--outline__gC-mh",pillOutline:$v},Fv=({children:e,variant:t="solid",className:n})=>{const r=D(va.pill,va[`pill--${t}`],n);return u.jsx("div",{className:r,children:e})},Bv="DialogContent__-WjG9",Uv="Message__AUgVP",ba={DialogContent:Bv,Message:Uv},hu=({loading:e,title:t,children:n,className:r,onClose:o,onConfirm:s,...i})=>u.jsxs(ie,{...i,className:D(ba.DialogContent,r),children:[u.jsxs(ie.Header,{children:[u.jsx(ie.Title,{children:t}),u.jsx(ie.Close,{onClick:o})]}),u.jsx(ie.Content,{children:typeof n=="string"?u.jsx("p",{className:ba.Message,children:n}):n}),u.jsx(ie.Footer,{children:u.jsxs(ie.Actions,{children:[u.jsx(Dr,{onClick:o,disabled:e,variant:"outlined",children:"Cancel"}),u.jsx(Dr,{onClick:s,disabled:e,loading:e,variant:"contained",children:"Confirm"})]})})]});hu.displayName="ConfirmDialog";const Wv="container__AjtYJ",Hv="title__A2vCu",Vv="description__bP6Ig",qv="mailToText__SdlsE",mr={container:Wv,title:Hv,description:Vv,mailToText:qv},pu=()=>u.jsxs("svg",{width:"200",height:"200",viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M184.415 152.221C183.936 151.406 183.401 150.621 182.892 149.824C181.61 147.817 180.327 145.809 179.045 143.801C177.102 140.759 175.159 137.717 173.215 134.676C170.766 130.841 168.316 127.006 165.866 123.171C163.068 118.79 160.27 114.41 157.472 110.03C154.484 105.352 151.496 100.674 148.508 95.9965C145.474 91.2464 142.439 86.4963 139.405 81.7463C136.513 77.2189 133.621 72.6915 130.729 68.1641C128.123 64.084 125.517 60.0039 122.91 55.9238C120.748 52.5389 118.586 49.1541 116.424 45.7692C114.864 43.3273 113.304 40.8854 111.744 38.4436C110.943 37.1899 110.142 35.9362 109.342 34.6825C108.765 33.7802 108.096 32.9744 107.292 32.2572C104.604 29.8584 100.572 29.2302 97.2301 30.5252C94.5951 31.5463 92.6177 33.3853 91.0923 35.7373C90.8768 36.0696 90.6658 36.405 90.4526 36.7387C89.3951 38.3941 88.3378 40.0494 87.2803 41.7049C85.5124 44.4725 83.7444 47.2402 81.9765 50.0079C79.644 53.6594 77.3114 57.3111 74.9788 60.9626C72.2632 65.2138 69.5477 69.465 66.8321 73.7162C63.8817 78.3349 60.9313 82.9536 57.9811 87.5722C54.9542 92.3106 51.9274 97.0491 48.9006 101.787C45.9557 106.398 43.0107 111.008 40.0658 115.618C37.3487 119.872 34.6316 124.125 31.9145 128.379C29.6106 131.986 27.3067 135.592 25.0028 139.199C23.2565 141.933 21.5101 144.667 19.7639 147.4C18.7335 149.013 17.7031 150.626 16.6728 152.239C14.8665 155.067 13.7231 158.171 14.23 161.595C14.9672 166.576 19.2366 170.131 24.2215 170.137C25.559 170.139 26.8963 170.137 28.2338 170.137C30.9198 170.137 33.6058 170.137 36.2918 170.137C40.0725 170.137 43.8533 170.137 47.6341 170.137C52.2557 170.137 56.8772 170.137 61.4989 170.137C66.7339 170.137 71.969 170.137 77.204 170.137C82.7467 170.137 88.2894 170.137 93.8322 170.137C99.4529 170.137 105.074 170.137 110.694 170.137C116.139 170.137 121.584 170.137 127.029 170.137C132.044 170.137 137.06 170.137 142.075 170.137C146.425 170.137 150.776 170.137 155.127 170.137C158.516 170.137 161.904 170.137 165.293 170.137C167.49 170.137 169.686 170.137 171.883 170.137C172.633 170.137 173.384 170.137 174.135 170.137C178.404 170.087 182.136 167.627 184.212 163.932C186.248 160.307 186.562 155.866 184.415 152.221ZM94.0937 37.3471C94.0897 37.3539 94.0862 37.3597 94.0824 37.3661C94.0826 37.3652 94.0831 37.3642 94.0833 37.3632C94.0844 37.3581 94.0909 37.3518 94.0937 37.3471ZM178.584 164.489C178.476 164.538 178.524 164.516 178.584 164.489V164.489ZM180.937 162.79C180.979 162.72 181.118 162.485 181.127 162.498C181.145 162.528 181.058 162.647 180.937 162.79ZM181.821 160.333C181.806 160.446 181.782 160.646 181.773 160.697C181.736 160.919 181.686 161.139 181.637 161.359C181.637 161.359 181.637 161.359 181.637 161.359C181.629 161.377 181.621 161.399 181.61 161.426C181.54 161.604 181.472 161.785 181.406 161.965C181.402 161.977 181.398 161.988 181.394 161.999C181.304 162.16 181.219 162.323 181.123 162.481C181.074 162.562 181.016 162.641 180.97 162.724C180.949 162.762 180.936 162.785 180.93 162.798C180.727 163.035 180.436 163.332 180.388 163.385C180.696 163.049 180.535 163.229 180.318 163.42C180.172 163.548 180.018 163.666 179.869 163.79C179.848 163.807 179.831 163.822 179.816 163.835C179.797 163.845 179.775 163.857 179.747 163.873C179.576 163.97 179.411 164.078 179.238 164.171C179.043 164.277 178.844 164.373 178.642 164.463C178.556 164.494 178.471 164.526 178.384 164.553C177.532 164.819 176.835 164.945 176.084 164.954C175.296 164.954 174.508 164.954 173.719 164.954C171.519 164.954 169.318 164.954 167.118 164.954C163.751 164.954 160.385 164.954 157.019 164.954C152.756 164.954 148.493 164.954 144.231 164.954C139.275 164.954 134.319 164.954 129.364 164.954C123.981 164.954 118.598 164.954 113.215 164.954C107.651 164.954 102.086 164.954 96.5224 164.954C91.024 164.954 85.5255 164.954 80.0271 164.954C74.8407 164.954 69.6543 164.954 64.4679 164.954C59.8401 164.954 55.2123 164.954 50.5846 164.954C46.7784 164.954 42.9721 164.954 39.166 164.954C36.3891 164.954 33.6122 164.954 30.8354 164.954C29.3555 164.954 27.8756 164.954 26.3957 164.954C25.9641 164.954 25.534 164.958 25.1029 164.922C23.4511 164.785 22.11 164.207 20.7626 163.127C20.3445 162.792 19.7301 162.074 19.3142 161.434C19.2096 161.273 19.1102 161.109 19.0161 160.942C18.9707 160.861 18.8013 160.534 18.8105 160.558C18.7451 160.414 18.5329 159.846 18.4422 159.537C18.3467 159.211 18.2692 158.879 18.2129 158.544C18.2174 158.545 18.1876 158.285 18.1815 158.192C18.1669 157.964 18.1617 157.736 18.1651 157.508C18.166 157.455 18.1793 157.245 18.185 157.131C18.2055 157.005 18.2441 156.74 18.2591 156.662C18.2913 156.493 18.3319 156.326 18.3726 156.16C18.2821 156.539 18.4099 156.072 18.4891 155.866C18.518 155.79 18.6652 155.487 18.6846 155.432C18.7383 155.339 18.7932 155.243 18.8125 155.21C18.8692 155.114 18.9282 155.019 18.9875 154.924C19.0003 154.904 19.0137 154.884 19.0265 154.863C19.2211 154.554 19.4201 154.247 19.617 153.939C20.6335 152.348 21.6501 150.756 22.6667 149.165C24.3869 146.472 26.107 143.779 27.8271 141.086C30.0848 137.552 32.3425 134.017 34.6001 130.483C37.2646 126.312 39.9291 122.141 42.5935 117.97C45.5011 113.418 48.4086 108.866 51.3161 104.315C54.3131 99.6229 57.31 94.9312 60.3069 90.2397C63.2394 85.6489 66.172 81.058 69.1045 76.4672C71.819 72.2178 74.5334 67.9683 77.2479 63.719C79.5904 60.0517 81.9331 56.3844 84.2756 52.7172C86.0852 49.8842 87.8948 47.0513 89.7044 44.2184C90.8459 42.4315 91.9873 40.6446 93.1287 38.8578C93.3976 38.4368 93.6701 38.0178 93.9356 37.5945C93.9507 37.5705 93.9737 37.5416 93.9972 37.511C93.8744 37.7231 94.1597 37.2638 94.301 37.0921C94.4017 36.9695 94.5483 36.8114 94.5423 36.8113C94.6372 36.721 94.7333 36.6319 94.8323 36.546C94.9866 36.4121 95.1478 36.2876 95.3084 36.1615C94.9392 36.4513 95.3917 36.1121 95.5441 36.0212C96.7591 35.2961 98.1095 34.9498 99.7068 35.0725C101.356 35.1993 102.702 35.7434 104.07 36.8307C104.685 37.3192 105.311 38.1542 105.817 38.9457C106.592 40.1592 107.367 41.3727 108.142 42.5862C109.667 44.9733 111.192 47.3605 112.717 49.7476C114.838 53.0679 116.959 56.3881 119.08 59.7083C121.629 63.6999 124.179 67.6913 126.729 71.6829C129.579 76.1455 132.43 80.6082 135.281 85.0709C138.267 89.7458 141.253 94.4206 144.239 99.0955C147.207 103.742 150.176 108.388 153.144 113.035C155.94 117.412 158.736 121.789 161.532 126.167C164.002 130.034 166.473 133.902 168.943 137.769C170.935 140.886 172.926 144.003 174.917 147.12C176.27 149.239 177.623 151.357 178.976 153.475C179.551 154.376 180.134 155.272 180.702 156.177C181.138 156.872 181.311 157.219 181.54 157.972C181.6 158.167 181.652 158.363 181.697 158.561C181.711 158.623 181.759 158.873 181.78 158.97C181.787 159.063 181.815 159.319 181.819 159.383C181.831 159.579 181.836 159.775 181.834 159.972C181.834 160.022 181.825 160.217 181.821 160.333Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M98.5821 122.507C99.019 122.759 99.6307 122.629 100.038 122.389C101.205 121.703 101.925 120.275 102.041 118.92C103.115 106.361 106.514 75.1051 106.514 68.3062C106.514 59.902 92.8134 60.6835 92.0664 71.3279C91.6887 76.7103 97.5083 119.581 97.8266 121.187C97.9188 121.652 98.1423 122.253 98.5821 122.507Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M101.841 133.945C101.826 133.94 101.812 133.934 101.797 133.929C98.2767 132.6 94.4012 134.976 93.9964 138.717C93.9765 138.901 93.9636 139.086 93.958 139.272C93.8552 142.712 96.4467 146.126 99.8464 146.664C103.245 147.201 106.896 144.494 107.099 141.059C107.285 137.909 104.789 135.072 101.841 133.945Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M161.729 131.662C161.873 131.367 162.082 130.81 161.71 130.584C161.365 130.375 160.901 130.836 160.768 131.107C156.804 139.201 152.84 147.295 148.877 155.389C147.759 157.67 146.642 159.952 145.525 162.233C145.38 162.528 145.171 163.085 145.543 163.311C145.888 163.52 146.352 163.059 146.485 162.788C150.449 154.694 154.413 146.6 158.377 138.506C159.494 136.225 160.611 133.943 161.729 131.662Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M144.786 152.64C144.441 152.43 143.977 152.891 143.844 153.163C142.363 156.187 140.882 159.21 139.402 162.234C139.257 162.528 139.048 163.085 139.42 163.311C139.765 163.521 140.229 163.06 140.362 162.788C141.843 159.764 143.323 156.741 144.804 153.717C144.948 153.423 145.158 152.866 144.786 152.64Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M136.792 156.459C136.447 156.25 135.983 156.711 135.85 156.982C134.993 158.733 134.136 160.483 133.279 162.233C133.134 162.528 132.925 163.085 133.297 163.311C133.642 163.52 134.106 163.06 134.239 162.788C135.096 161.037 135.953 159.287 136.81 157.537C136.955 157.242 137.164 156.685 136.792 156.459Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M129.1 159.663C128.755 159.454 128.291 159.915 128.158 160.186C127.824 160.869 127.49 161.551 127.155 162.234C127.011 162.528 126.802 163.086 127.174 163.311C127.519 163.521 127.983 163.06 128.116 162.788C128.45 162.106 128.784 161.423 129.118 160.741C129.263 160.447 129.472 159.889 129.1 159.663Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M165.835 137.946C165.979 137.652 166.188 137.094 165.816 136.868C165.471 136.659 165.007 137.12 164.874 137.392C161.72 143.832 158.566 150.273 155.412 156.713C154.511 158.553 153.609 160.393 152.708 162.233C152.564 162.528 152.355 163.085 152.726 163.311C153.071 163.52 153.535 163.06 153.669 162.788C156.823 156.347 159.977 149.907 163.131 143.466C164.032 141.626 164.933 139.786 165.835 137.946Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M169.923 143.153C169.578 142.943 169.114 143.404 168.98 143.676C165.951 149.862 162.921 156.048 159.892 162.234C159.748 162.528 159.538 163.086 159.91 163.311C160.255 163.521 160.719 163.06 160.852 162.788C163.882 156.602 166.911 150.416 169.941 144.23C170.085 143.936 170.294 143.378 169.923 143.153Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M174.332 148.821C173.987 148.611 173.523 149.072 173.39 149.344C171.286 153.64 169.182 157.937 167.077 162.234C166.933 162.528 166.724 163.086 167.095 163.311C167.44 163.521 167.905 163.06 168.038 162.788C170.142 158.492 172.246 154.195 174.351 149.898C174.495 149.604 174.704 149.046 174.332 148.821Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M178.197 155.597C177.852 155.387 177.388 155.848 177.255 156.12C176.257 158.158 175.259 160.196 174.261 162.233C174.117 162.528 173.907 163.085 174.279 163.311C174.624 163.52 175.088 163.06 175.221 162.788C176.219 160.75 177.217 158.712 178.215 156.674C178.36 156.38 178.569 155.823 178.197 155.597Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M97.1962 40.2135C97.3477 39.9803 97.4773 39.477 97.1807 39.2971C96.8678 39.1072 96.5194 39.5265 96.3794 39.7419C94.7034 42.3205 93.0556 44.9176 91.4179 47.5205C88.1743 52.6759 84.976 57.8633 81.9271 63.1367C80.4155 65.7509 78.9283 68.3855 77.5879 71.0925C77.4642 71.3423 77.2879 71.8174 77.6034 72.0088C77.8975 72.1874 78.2905 71.7947 78.4047 71.564C80.9657 66.3919 83.9726 61.4308 86.9671 56.5018C89.7369 51.9427 92.5713 47.4226 95.4474 42.9297C96.0279 42.0228 96.6094 41.1164 97.1962 40.2135Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M75.3224 76.1247C75.0193 75.9408 74.6477 76.3459 74.521 76.5695C74.1645 77.1991 73.808 77.8286 73.4515 78.4581C73.3144 78.7003 73.1605 79.1884 73.467 79.3744C73.77 79.5583 74.1416 79.1532 74.2684 78.9296C74.6248 78.3001 74.9814 77.6705 75.3378 77.0411C75.475 76.7988 75.6288 76.3107 75.3224 76.1247Z",fill:"var(--pae-shell-color-secondary)"})]});pu.displayName="WarningIcon";const zv="support@bluealba.com",Gv="@bluealba/pae-shell-ui",Ws=()=>{const{supportEmail:e=zv}=za(Gv),t=`mailto:${e}?Subject=Support`;return u.jsxs("div",{className:mr.container,children:[u.jsx(pu,{}),u.jsx("div",{className:mr.title,children:"Oops! Something went wrong"}),u.jsxs("div",{className:mr.description,children:["If the error persists, ",u.jsx("a",{className:mr.mailToText,href:t,children:"contact the administrator."})]})]})};Ws.displayName="ErrorState";const Qv="List__h09XG",Kv="List__h09XG",Yv="Item__YMy2i",Zv="Item__YMy2i",Xv="List--primary__J2pbx",Jv="List--secondary__gi1ao",e0="Item--selected__yRWow",t0="Title__RJmEW",n0="Title__RJmEW",r0="Description__DGyX2",o0="Description__DGyX2",s0="Actions__UHP5l",i0="Actions__UHP5l",a0="Action__q-R1I",c0="Action__q-R1I",l0="Item--disabled__Ke1u-",u0="List--small__ijoSR",d0="List--medium__E1FEY",f0="List--large__T8tfz",h0="Icon__dFr-L",p0="Icon__dFr-L",Re={List:Qv,list:Kv,Item:Yv,item:Zv,"List--primary":"List--primary__J2pbx",listPrimary:Xv,"List--secondary":"List--secondary__gi1ao",listSecondary:Jv,"Item--selected":"Item--selected__yRWow",itemSelected:e0,Title:t0,title:n0,Description:r0,description:o0,Actions:s0,actions:i0,Action:a0,action:c0,"Item--disabled":"Item--disabled__Ke1u-",itemDisabled:l0,"List--small":"List--small__ijoSR",listSmall:u0,"List--medium":"List--medium__E1FEY",listMedium:d0,"List--large":"List--large__T8tfz",listLarge:f0,Icon:h0,icon:p0},mu=R.forwardRef(({children:e,className:t,selected:n,disabled:r=!1,...o},s)=>{const i=D(Re.Item,{[Re["Item--selected"]]:n,[Re["Item--disabled"]]:r},t);return u.jsx("li",{ref:s,className:i,role:"listitem","aria-disabled":r,...o,children:e})});mu.displayName="Item";const gu=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Re.Title,t);return u.jsx("h3",{ref:r,className:o,...n,children:e})});gu.displayName="Title";const yu=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Re.Description,t);return u.jsx("p",{ref:r,className:o,...n,children:e})});yu.displayName="Description";const Hs=({className:e,...t})=>u.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:[u.jsx("path",{d:"M6 6.5C6.27614 6.5 6.5 6.27614 6.5 6C6.5 5.72386 6.27614 5.5 6 5.5C5.72386 5.5 5.5 5.72386 5.5 6C5.5 6.27614 5.72386 6.5 6 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M9.5 6.5C9.77614 6.5 10 6.27614 10 6C10 5.72386 9.77614 5.5 9.5 5.5C9.22386 5.5 9 5.72386 9 6C9 6.27614 9.22386 6.5 9.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M2.5 6.5C2.77614 6.5 3 6.27614 3 6C3 5.72386 2.77614 5.5 2.5 5.5C2.22386 5.5 2 5.72386 2 6C2 6.27614 2.22386 6.5 2.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"})]});Hs.displayName="HorizontalDots";const vu=R.forwardRef(({children:e,className:t,onClick:n,...r},o)=>{const s=R.useRef(null),[i,a]=R.useState(!1),c=D(Re.Actions,t),l=()=>{const w=Rt["DropdownList--open"],m=Rt["DropdownList--closed"];document.querySelectorAll(`.${w}`).forEach(C=>{C!==s.current&&(C.classList.remove(w),C.classList.add(m))})},d=w=>{w.stopPropagation(),i?h():(a(!0),n==null||n(w))},h=()=>{a(!1)},p=w=>{w.key==="Escape"&&h()},g=w=>{s.current&&!s.current.contains(w.target)&&h()};return R.useEffect(()=>(i?(l(),document.addEventListener("keydown",p),document.addEventListener("click",g)):(document.removeEventListener("keydown",p),document.removeEventListener("click",g)),()=>{document.removeEventListener("keydown",p),document.removeEventListener("click",g)}),[i]),u.jsxs("div",{ref:o,className:c,onClick:d,role:"button",tabIndex:0,"data-testid":"actions",...r,children:[u.jsx(Hs,{}),u.jsx(Gr,{align:"left",ref:s,open:i,"data-testid":"actions-dropdown",role:"menu","aria-label":"Actions",children:e})]})});vu.displayName="Actions";const bu=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Re.Action,t);return u.jsx("button",{ref:r,className:o,...n,children:e})});bu.displayName="Action";const wu=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Re.Icon,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});wu.displayName="Icon";const Be=R.forwardRef(({children:e,className:t,size:n="medium",variant:r,...o},s)=>{const i=D(Re.List,{[Re[`List--${n}`]]:n,[Re[`List--${r}`]]:r},t);return u.jsx("ul",{ref:s,className:i,role:"list",...o,children:e})});Be.displayName="List";Be.Item=mu;Be.Badges=xs;Be.Badge=Cs;Be.Title=gu;Be.Description=yu;Be.Actions=vu;Be.Action=bu;Be.Icon=wu;const m0="Navigation__uylxk",g0="PaginationContent__UpLw0",y0="PaginationEllipsis__perWk",v0="PaginationLink__GVUZj",b0="Active__u1Ahy",w0="Disabled__8WM0y",C0="Prev__wp4hc",x0="Next__eVyL5",Ze={Navigation:m0,PaginationContent:g0,PaginationEllipsis:y0,PaginationLink:v0,Active:b0,Disabled:w0,Prev:C0,Next:x0},Cu=({className:e,...t})=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...t,children:[u.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M9 6l6 6l-6 6"})]});Cu.displayName="ChevronRight";const xu=({className:e,...t})=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...t,children:[u.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M15 6l-6 6l6 6"})]});xu.displayName="ChevronLeft";const Vs=({className:e,...t})=>u.jsx("nav",{role:"navigation","aria-label":"pagination",className:D(Ze.Navigation,e),...t});Vs.displayName="Pagination";const qs=f.forwardRef(({className:e,...t},n)=>u.jsx("ul",{ref:n,className:D(Ze.PaginationContent,e),...t}));qs.displayName="PaginationContent";const _n=f.forwardRef(({className:e,...t},n)=>u.jsx("li",{ref:n,className:e,...t}));_n.displayName="PaginationItem";const Hn=({className:e,isActive:t,...n})=>u.jsx("a",{"aria-current":t?"page":void 0,className:D(Ze.PaginationLink,t&&Ze.Active,e),...n});Hn.displayName="PaginationLink";const zs=({className:e,disabled:t,...n})=>u.jsxs(Hn,{"aria-label":"Go to previous page",className:D(t&&Ze.Disabled,Ze.Prev,e),...n,children:[u.jsx(xu,{}),u.jsx("span",{children:"Previous"})]});zs.displayName="PaginationPrevious";const Gs=({className:e,disabled:t,...n})=>u.jsxs(Hn,{"aria-label":"Go to next page",className:D(t&&Ze.Disabled,Ze.Next,e),...n,children:[u.jsx("span",{children:"Next"}),u.jsx(Cu,{})]});Gs.displayName="PaginationNext";const Qs=({className:e,...t})=>u.jsx("span",{"aria-hidden":!0,className:D(Ze.PaginationEllipsis,e),...t,children:u.jsx(Hs,{})});Qs.displayName="PaginationEllipsis";function E0(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Eu={exports:{}};(function(e,t){(function(n,r){typeof E0=="function"?e.exports=r():n.pluralize=r()})(id,function(){var n=[],r=[],o={},s={},i={};function a(m){return typeof m=="string"?new RegExp("^"+m+"$","i"):m}function c(m,y){return m===y?y:m===m.toLowerCase()?y.toLowerCase():m===m.toUpperCase()?y.toUpperCase():m[0]===m[0].toUpperCase()?y.charAt(0).toUpperCase()+y.substr(1).toLowerCase():y.toLowerCase()}function l(m,y){return m.replace(/\$(\d{1,2})/g,function(C,x){return y[x]||""})}function d(m,y){return m.replace(y[0],function(C,x){var S=l(y[1],arguments);return c(C===""?m[x-1]:C,S)})}function h(m,y,C){if(!m.length||o.hasOwnProperty(m))return y;for(var x=C.length;x--;){var S=C[x];if(S[0].test(y))return d(y,S)}return y}function p(m,y,C){return function(x){var S=x.toLowerCase();return y.hasOwnProperty(S)?c(x,S):m.hasOwnProperty(S)?c(x,m[S]):h(S,x,C)}}function g(m,y,C,x){return function(S){var E=S.toLowerCase();return y.hasOwnProperty(E)?!0:m.hasOwnProperty(E)?!1:h(E,E,C)===E}}function w(m,y,C){var x=y===1?w.singular(m):w.plural(m);return(C?y+" ":"")+x}return w.plural=p(i,s,n),w.isPlural=g(i,s,n),w.singular=p(s,i,r),w.isSingular=g(s,i,r),w.addPluralRule=function(m,y){n.push([a(m),y])},w.addSingularRule=function(m,y){r.push([a(m),y])},w.addUncountableRule=function(m){if(typeof m=="string"){o[m.toLowerCase()]=!0;return}w.addPluralRule(m,"$0"),w.addSingularRule(m,"$0")},w.addIrregularRule=function(m,y){y=y.toLowerCase(),m=m.toLowerCase(),i[m]=y,s[y]=m},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(m){return w.addIrregularRule(m[0],m[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(m){return w.addPluralRule(m[0],m[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(m){return w.addSingularRule(m[0],m[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(w.addUncountableRule),w})})(Eu);var S0=Eu.exports;const _0=ad(S0),Ks=({count:e,singularText:t,children:n=(r,o)=>`${r} ${o}`})=>u.jsx(u.Fragment,{children:n(e,_0(t,e))});Ks.displayName="PluralizeCounter";const R0="TableContainer__osh6Z",T0="TableHeader__sYa-8",A0="Table__2cIs3",P0="selectable__WsGg1",O0="Cell__ZEv-K",j0="Right__YoM1V",D0="Center__CF3tr",L0="Sortable__JIV1V",k0="SortIcon__f0bBy",I0="Active__rJjxB",N0="Rotate__7cwTK",M0="Pagination__sbqMP",$0="PointerNone__kQdQS",fe={TableContainer:R0,TableHeader:T0,Table:A0,selectable:P0,Cell:O0,Right:j0,Center:D0,Sortable:L0,SortIcon:k0,Active:I0,Rotate:N0,Pagination:M0,PointerNone:$0},F0="EmptyStateContainer__Q9FEb",B0="Message__IHK6M",wa={EmptyStateContainer:F0,Message:B0},Su=({size:e=64})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsxs("g",{clipPath:"url(#clip-path)",children:[u.jsx("mask",{id:"mask0_1070_8032",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"64",height:"64",children:u.jsx("path",{d:"M64 0H0V64H64V0Z",fill:"white"})}),u.jsx("g",{mask:"url(#mask0_1070_8032)",children:u.jsx("path",{d:"M40 10.6673H13.3333V53.334H50.6667V21.334H40V10.6673ZM8 7.97932C8 6.51798 9.192 5.33398 10.664 5.33398H42.6667L56 18.6673V55.982C56.0024 56.3321 55.936 56.6793 55.8043 57.0039C55.6725 57.3284 55.4781 57.6239 55.2323 57.8732C54.9864 58.1225 54.6936 58.3209 54.3712 58.4572C54.0485 58.5935 53.7021 58.6649 53.352 58.6673H10.648C9.94768 58.6625 9.27739 58.3823 8.78192 57.8873C8.28645 57.3924 8.00557 56.7223 8 56.022V7.97932ZM36.0773 38.5233C33.8408 39.83 31.2056 40.2788 28.6627 39.786C26.1197 39.2929 23.8428 37.8921 22.2566 35.8444C20.6704 33.7966 19.883 31.2417 20.0414 28.6564C20.1998 26.071 21.293 23.6315 23.1173 21.7927C24.9532 19.9571 27.3955 18.8541 29.9864 18.6904C32.5773 18.5267 35.1389 19.3134 37.1912 20.9032C39.2435 22.493 40.6456 24.7767 41.1347 27.3263C41.6237 29.8759 41.1664 32.5164 39.848 34.7527L45.7413 40.646L41.9707 44.4193L36.0773 38.5233ZM34.4293 33.1047C34.9387 32.6126 35.3451 32.0241 35.6245 31.3735C35.904 30.7228 36.0512 30.0231 36.0573 29.3148C36.0635 28.6065 35.9285 27.9044 35.6603 27.2489C35.3923 26.5935 34.9963 25.998 34.4955 25.4972C33.9947 24.9964 33.3992 24.6004 32.7437 24.3323C32.0883 24.0641 31.3861 23.9292 30.6779 23.9353C29.9696 23.9415 29.2699 24.0886 28.6192 24.3681C27.9685 24.6476 27.38 25.0539 26.888 25.5633C25.9165 26.5692 25.3789 27.9164 25.3911 29.3148C25.4032 30.7132 25.9641 32.0508 26.9531 33.0396C27.9419 34.0287 29.2795 34.5895 30.6779 34.6015C32.0763 34.6137 33.4235 34.0761 34.4293 33.1047Z",fill:"currentColor"})})]}),u.jsx("defs",{children:u.jsx("clipPath",{id:"clip-path",children:u.jsx("rect",{width:"64",height:"64",fill:"white"})})})]});Su.displayName="EmptyStateIcon";const Ys=({message:e="No results found"})=>u.jsxs("div",{className:D(wa.EmptyStateContainer),children:[u.jsx(Su,{}),u.jsx("p",{className:wa.Message,children:e})]});Ys.displayName="EmptyState";const U0=(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)},_u=({page:e,totalPages:t,onPageChange:n})=>{const r=e===1,o=e===t;return u.jsx(Vs,{className:fe.Pagination,children:u.jsxs(qs,{children:[u.jsx(_n,{children:u.jsx(zs,{className:D({[fe.PointerNone]:r}),onClick:()=>!r&&n(e-1)})}),U0(t,e).map((s,i)=>u.jsxs(_n,{children:[s==="..."&&u.jsx(Qs,{}),s!=="..."&&u.jsx(Hn,{isActive:+s===e,onClick:()=>+s!==e&&n(+s),children:s})]},i)),u.jsx(_n,{children:u.jsx(Gs,{className:D({[fe.PointerNone]:o}),onClick:()=>!o&&n(e+1)})})]})})};_u.displayName="TablePagination";const Ru=({className:e,...t})=>u.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:u.jsx("path",{d:"M6 2.5V9.5M6 9.5L9.5 6M6 9.5L2.5 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});Ru.displayName="ArrowDown";const Tu=({columns:e,data:t,isLoading:n,totalCount:r=0,headerLabel:o,sort:s,loadingConfig:i,pagination:a,onRowClick:c})=>{const{count:l=5,height:d=40}=i||{},h=y=>y.sortName??y.name,p=y=>D({[fe.Cell]:!0,[fe.Center]:y.align==="center",[fe.Right]:y.align==="right",[fe.Sortable]:y.isSortable}),g=y=>{if(!s)return"";const C=h(y);return D({[fe.SortIcon]:!0,[fe.Active]:y.isSortable&&s.field===C,[fe.Rotate]:s.field===C&&s.direction==="asc"})},w=y=>()=>c==null?void 0:c(y),m=y=>()=>{if(!s||!y.isSortable)return;const{field:C,direction:x,onSort:S}=s,E=h(y);C===E?S(E,x==="asc"?"desc":"asc"):S(E,"asc")};return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:fe.TableContainer,children:[o&&u.jsx("div",{className:fe.TableHeader,children:u.jsx(Ks,{count:r,singularText:o,children:(y,C)=>`${y} ${C}`})}),u.jsxs("table",{className:fe.Table,children:[u.jsx("thead",{children:u.jsx("tr",{children:e.map(y=>u.jsx("th",{children:u.jsxs("div",{className:p(y),onClick:m(y),children:[u.jsx("span",{children:y.displayName}),y.isSortable&&u.jsx(Ru,{className:g(y)})]})},y.name))})}),u.jsx("tbody",{children:u.jsxs(ft,{children:[u.jsx(ft.When,{condition:n,children:[...Array(l).keys()].map(y=>u.jsx("tr",{children:u.jsx("td",{colSpan:e.length,style:{padding:4},children:u.jsx(Kr,{height:d})})},y))}),u.jsx(ft.When,{condition:!t.length,children:u.jsx("tr",{children:u.jsx("td",{colSpan:e.length,children:u.jsx(Ys,{})})})}),u.jsx(ft.Else,{children:t.map((y,C)=>u.jsx("tr",{className:c&&fe.selectable,onClick:w(y),children:e.map(x=>u.jsx("td",{style:x.width?{width:x.width}:{},children:u.jsx("div",{className:p(x),children:x.cellRenderer?x.cellRenderer(y):x.valueGetter?x.valueGetter(y):y[x.name]})},`${x.name}-${C}`))},C))})]})})]})]}),a&&u.jsx(_u,{...a})]})};Tu.displayName="Table";const W0="alert__LblpE",H0="destructive__bLNSM",V0="alertTitle__gblKf",q0="alertDescription__BuVHV",Fr={alert:W0,default:"default__mgO6A",destructive:H0,alertTitle:V0,alertDescription:q0},oo=({className:e,variant:t="default",children:n,...r})=>u.jsx("div",{"data-slot":"alert",role:"alert",className:D(Fr.alert,Fr[t],e),...r,children:n}),z0=f.forwardRef(({children:e,className:t,...n},r)=>u.jsx("div",{ref:r,"data-slot":"alert-title",className:D(Fr.alertTitle,t),...n,children:e})),G0=f.forwardRef(({children:e,className:t,...n},r)=>u.jsx("div",{ref:r,"data-slot":"alert-description",className:D(Fr.alertDescription,t),...n,children:e}));oo.displayName="Alert";oo.Title=z0;oo.Description=G0;function Ca(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 Br(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ca(Object(n),!0).forEach(function(r){Q0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ca(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Au(e){return(Au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function Q0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cs(e){return(cs=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 Pu(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(cs(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(cs(r)));return r}}var jn=null;try{jn=require("react").createContext()}catch{}var K0={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 Y0(e){if(Au(e)!=="object")throw new Error("single-spa-react requires a configuration object");var t,n=Br(Br({},K0),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");!jn&&n.React.createContext&&(jn=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:Z0.bind(null,n),mount:X0.bind(null,n),unmount:J0.bind(null,n)};return n.parcelCanUpdate&&(r.update=e2.bind(null,n)),r}function Z0(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then(function(n){e.rootComponent=n})}function X0(e,t){return new Promise(function(n,r){e.suppressComponentDidCatchWarning||!function(a){if(!(a&&typeof a.version=="string"&&a.version.indexOf(".")>=0))return!1;var c=a.version.slice(0,a.version.indexOf("."));try{return Number(c)>=16}catch{return!1}}(e.React)||e.errorBoundary||e.errorBoundaryClass||(e.rootComponent.prototype?e.rootComponent.prototype.componentDidCatch||console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire single-spa application.")):console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to singleSpaReact(opts).")));var o=Ou(e,t,function(){n(this)}),s=Pu(e,t)(),i=function(a){var c=a.reactDom,l=a.renderType,d=a.elementToRender,h=a.domElement,p=c[l];if(typeof p!="function")throw new Error('renderType "'.concat(l,'" did not return a function.'));switch(l){case"createRoot":case"unstable_createRoot":case"createBlockingRoot":case"unstable_createBlockingRoot":var g=p(h);return g.render(d),g;case"hydrateRoot":return p(h,d);case"hydrate":default:return p(d,h),null}}({elementToRender:o,domElement:s,reactDom:Zs(e),renderType:t2(e)});e.domElements[t.name]=s,e.renderResults[t.name]=i})}function J0(e,t){return new Promise(function(n){e.unmountResolves[t.name]=n;var r=e.renderResults[t.name];r&&r.unmount?r.unmount():Zs(e).unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]})}function e2(e,t){return new Promise(function(n){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(n);var r=Ou(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(r);else{var s=Pu(e,t)();Zs(e).render(r,s)}})}function Zs(e){return e.ReactDOMClient||e.ReactDOM}function t2(e){return typeof e.renderType=="function"?e.renderType():e.renderType}function Ou(e,t,n){var r=e.React.createElement(e.rootComponent,t),o=jn?e.React.createElement(jn.Provider,{value:t},r):r;return(e.errorBoundary||t.errorBoundary||e.errorBoundaryClass||t.errorBoundaryClass)&&(e.errorBoundaryClass=e.errorBoundaryClass||t.errorBoundaryClass||function(s,i){function a(c){s.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},a.displayName="SingleSpaReactErrorBoundary(".concat(c.name,")")}return a.prototype=Object.create(s.React.Component.prototype),a.prototype.render=function(){return this.state.caughtError?(s.errorBoundary||i.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},a.prototype.componentDidCatch=function(c,l){this.setState({caughtError:c,caughtErrorInfo:l})},a}(e,t),o=e.React.createElement(e.errorBoundaryClass,t,o)),o=e.React.createElement(e.SingleSpaRoot,Br(Br({},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 n2=e=>{const t=new uh;return function(r){if(!r)throw new Error("Microfrontend did not receive any properties !!");const o=ds(r.module.name);return u.jsx(Ua,{module:o,children:u.jsxs(mh,{client:t,children:[u.jsx(e,{...r}),u.jsx(Qf,{position:"top-right",reverseOrder:!0})]})})}},r2=({rootComponent:e,...t})=>Y0({errorBoundary(n){return console.error(n),u.jsx(Ws,{})},...t,rootComponent:n2(e)}),o2=e=>{const t={authUser:{id:"testuser",username:"testuser",displayName:"Test User",applications:[]},catalog:[],authentication:{passwordMethodEnabled:!0,registerEnabled:!0,invitationsEnabled:!0,resetPasswordExpiration:3e4,passwordConstraints:{lowerCaseRequired:!1,upperCaseRequired:!1,symbolRequired:!1,digitRequired:!1,minLength:0,maxLength:8},sessionExpiration:864e5,jwtSecret:"",sessionIncludeOrigUser:!1,impersonationMode:"cookie",canImpersonateNonExistentUsers:!1,providers:[]},platformVersion:"0.0.0"};Object.defineProperty(window,Rn,{value:e?Rd(t,e):t})},Xs=()=>{const[e]=Nn();return e.featureFlags},s2=e=>!!Xs()[e],ju=({flag:e,children:t,fallback:n=null,invert:r=!1})=>{const s=Xs()[e]===!0;return(r?!s:s)?u.jsx(u.Fragment,{children:t}):u.jsx(u.Fragment,{children:n})};ju.displayName="FeatureFlagGuard";exports.Alert=oo;exports.ApplicationIcon=Ic;exports.Authorized=ws;exports.Badge=Cs;exports.Badges=xs;exports.Button=Dr;exports.ClipboardCheckIcon=$c;exports.ClipboardIcon=Mc;exports.ConfirmDialog=hu;exports.CopyToClipboardButton=_p;exports.Dialog=ie;exports.DropdownList=Gr;exports.EmptyState=Ys;exports.ErrorState=Ws;exports.ExtendExtensionPoint=Hh;exports.ExtensionPoint=Oc;exports.EyeIcon=kl;exports.FeatureFlagGuard=ju;exports.FieldGroup=Fc;exports.Input=zr;exports.InputError=Bc;exports.Label=Uc;exports.List=Be;exports.ModulePlaceHolder=kc;exports.Pagination=Vs;exports.PaginationContent=qs;exports.PaginationEllipsis=Qs;exports.PaginationItem=_n;exports.PaginationLink=Hn;exports.PaginationNext=Gs;exports.PaginationPrevious=zs;exports.PasswordInput=dy;exports.Pill=Fv;exports.PlatformEventListener=Yh;exports.PlatformEvents=ed;exports.PluralizeCounter=Ks;exports.SearchAutocomplete=qc;exports.SearchInput=Ss;exports.Select=Es;exports.Show=ft;exports.Skeleton=Kr;exports.SkeletonList=Qc;exports.Spinner=jl;exports.Switch=Dl;exports.Table=Tu;exports.Tabs=sy;exports.TabsContent=cy;exports.TabsList=iy;exports.TabsTrigger=ay;exports.TextArea=Hc;exports.Tooltip=Ol;exports.authorized=Xh;exports.dropdownListStyles=Rt;exports.extensionPoint=qh;exports.getApplications=us;exports.getInitials=gd;exports.getOperations=Wa;exports.hasAccess=Va;exports.initializeMicroFrontend=r2;exports.isPlatformCustomizationCompleted=rf;exports.isValidEmail=md;exports.logout=fd;exports.navigateTo=hd;exports.platformHaveAnyCustomization=nf;exports.setupTestEnvironment=o2;exports.useApplicationIcon=Xa;exports.useApplicationJSModule=Hr;exports.useApplicationMenu=Cd;exports.useApplicationUIModule=Za;exports.useApplications=Ka;exports.useAuth=Ur;exports.useCatalog=Mn;exports.useCurrentApplication=hs;exports.useCurrentApplicationName=Ja;exports.useCurrentJSModule=Od;exports.useDynamicFonts=ic;exports.useDynamicStyleSheet=sc;exports.useExtendExtensionPoint=rc;exports.useExtensionPoint=nc;exports.useFeatureFlag=s2;exports.useFeatureFlags=Xs;exports.useGetPlatformTheme=tf;exports.useHasNoSession=ld;exports.useLocation=$a;exports.useModule=ds;exports.useModuleCommonPaths=dd;exports.useModuleConfig=qa;exports.useModuleConfigByName=za;exports.useModuleMetadata=$n;exports.useMutableCatalog=sd;exports.useNotifications=ms;exports.useOperations=Ha;exports.usePAECustomizationsLoadingState=ef;exports.usePAEState=Nn;exports.usePlatformCustomization=Jd;exports.usePlatformEventListener=oc;exports.useResource=Th;exports.useResourceActions=Ac;exports.useServiceBaseURL=ec;exports.useServiceInvoker=ps;exports.useTenants=Bh;exports.useTrackEvent=Id;exports.useTrackEvents=tc;exports.useUIApplications=Ya;exports.useUserState=Wh;
|
|
252
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},wv="DialogDescriptionWarning",Cv=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${iu(wv).contentName}}.`;return f.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},xv=Gl,Ev=Yl,Sv=Zl,_v=Xl,Rv=eu,Tv=nu,Av=ou;const Pv="Overlay__M5Z83",Ov="Content__wAkP4",ya={Overlay:Pv,Content:Ov},jv="Header__VHxNf",Dv="Content__I04qM",Lv="Close__xSN-7",kv="Title__Dznh6",Iv="Footer__-8gzQ",Nv="Actions__kKF2Q",Ut={Header:jv,Content:Dv,Close:Lv,Title:kv,Footer:Iv,Actions:Nv},au=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Header,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});au.displayName="Header";const cu=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Content,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});cu.displayName="Content";const lu=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Footer,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});lu.displayName="Footer";const uu=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Title,t);return u.jsx(Rv,{ref:r,className:o,...n,children:e})});uu.displayName="Title";const du=R.forwardRef(({className:e,...t},n)=>{const r=D(Ut.Close,e);return u.jsx(Av,{ref:n,asChild:!0,className:r,...t,children:u.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M11 1L1 11M1 1L11 11",stroke:"#A9A9A9",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})});du.displayName="Close";const fu=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Actions,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});fu.displayName="Actions";const hu=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Description,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});hu.displayName="Description";const ie=({children:e,onClose:t,open:n=!1,className:r})=>{const o=()=>{t==null||t()};return u.jsx(xv,{onOpenChange:o,open:n,children:u.jsxs(Ev,{children:[u.jsx(Sv,{className:ya.Overlay}),u.jsxs(_v,{children:[u.jsx(Tv,{}),u.jsx("div",{className:D(ya.Content,r),children:e})]})]})})};ie.displayName="Dialog";ie.Header=au;ie.Content=cu;ie.Footer=lu;ie.Actions=fu;ie.Title=uu;ie.Description=hu;ie.Close=du;const Mv="pill__vtGwB",$v="pill--solid__F-mR4",Fv="pill--outline__gC-mh",va={pill:Mv,"pill--solid":"pill--solid__F-mR4",pillSolid:$v,"pill--outline":"pill--outline__gC-mh",pillOutline:Fv},Bv=({children:e,variant:t="solid",className:n})=>{const r=D(va.pill,va[`pill--${t}`],n);return u.jsx("div",{className:r,children:e})},Uv="DialogContent__-WjG9",Wv="Message__AUgVP",ba={DialogContent:Uv,Message:Wv},pu=({loading:e,title:t,children:n,className:r,onClose:o,onConfirm:s,...i})=>u.jsxs(ie,{...i,className:D(ba.DialogContent,r),children:[u.jsxs(ie.Header,{children:[u.jsx(ie.Title,{children:t}),u.jsx(ie.Close,{onClick:o})]}),u.jsx(ie.Content,{children:typeof n=="string"?u.jsx("p",{className:ba.Message,children:n}):n}),u.jsx(ie.Footer,{children:u.jsxs(ie.Actions,{children:[u.jsx(Dr,{onClick:o,disabled:e,variant:"outlined",children:"Cancel"}),u.jsx(Dr,{onClick:s,disabled:e,loading:e,variant:"contained",children:"Confirm"})]})})]});pu.displayName="ConfirmDialog";const Hv="container__AjtYJ",Vv="title__A2vCu",qv="description__bP6Ig",zv="mailToText__SdlsE",mr={container:Hv,title:Vv,description:qv,mailToText:zv},mu=()=>u.jsxs("svg",{width:"200",height:"200",viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M184.415 152.221C183.936 151.406 183.401 150.621 182.892 149.824C181.61 147.817 180.327 145.809 179.045 143.801C177.102 140.759 175.159 137.717 173.215 134.676C170.766 130.841 168.316 127.006 165.866 123.171C163.068 118.79 160.27 114.41 157.472 110.03C154.484 105.352 151.496 100.674 148.508 95.9965C145.474 91.2464 142.439 86.4963 139.405 81.7463C136.513 77.2189 133.621 72.6915 130.729 68.1641C128.123 64.084 125.517 60.0039 122.91 55.9238C120.748 52.5389 118.586 49.1541 116.424 45.7692C114.864 43.3273 113.304 40.8854 111.744 38.4436C110.943 37.1899 110.142 35.9362 109.342 34.6825C108.765 33.7802 108.096 32.9744 107.292 32.2572C104.604 29.8584 100.572 29.2302 97.2301 30.5252C94.5951 31.5463 92.6177 33.3853 91.0923 35.7373C90.8768 36.0696 90.6658 36.405 90.4526 36.7387C89.3951 38.3941 88.3378 40.0494 87.2803 41.7049C85.5124 44.4725 83.7444 47.2402 81.9765 50.0079C79.644 53.6594 77.3114 57.3111 74.9788 60.9626C72.2632 65.2138 69.5477 69.465 66.8321 73.7162C63.8817 78.3349 60.9313 82.9536 57.9811 87.5722C54.9542 92.3106 51.9274 97.0491 48.9006 101.787C45.9557 106.398 43.0107 111.008 40.0658 115.618C37.3487 119.872 34.6316 124.125 31.9145 128.379C29.6106 131.986 27.3067 135.592 25.0028 139.199C23.2565 141.933 21.5101 144.667 19.7639 147.4C18.7335 149.013 17.7031 150.626 16.6728 152.239C14.8665 155.067 13.7231 158.171 14.23 161.595C14.9672 166.576 19.2366 170.131 24.2215 170.137C25.559 170.139 26.8963 170.137 28.2338 170.137C30.9198 170.137 33.6058 170.137 36.2918 170.137C40.0725 170.137 43.8533 170.137 47.6341 170.137C52.2557 170.137 56.8772 170.137 61.4989 170.137C66.7339 170.137 71.969 170.137 77.204 170.137C82.7467 170.137 88.2894 170.137 93.8322 170.137C99.4529 170.137 105.074 170.137 110.694 170.137C116.139 170.137 121.584 170.137 127.029 170.137C132.044 170.137 137.06 170.137 142.075 170.137C146.425 170.137 150.776 170.137 155.127 170.137C158.516 170.137 161.904 170.137 165.293 170.137C167.49 170.137 169.686 170.137 171.883 170.137C172.633 170.137 173.384 170.137 174.135 170.137C178.404 170.087 182.136 167.627 184.212 163.932C186.248 160.307 186.562 155.866 184.415 152.221ZM94.0937 37.3471C94.0897 37.3539 94.0862 37.3597 94.0824 37.3661C94.0826 37.3652 94.0831 37.3642 94.0833 37.3632C94.0844 37.3581 94.0909 37.3518 94.0937 37.3471ZM178.584 164.489C178.476 164.538 178.524 164.516 178.584 164.489V164.489ZM180.937 162.79C180.979 162.72 181.118 162.485 181.127 162.498C181.145 162.528 181.058 162.647 180.937 162.79ZM181.821 160.333C181.806 160.446 181.782 160.646 181.773 160.697C181.736 160.919 181.686 161.139 181.637 161.359C181.637 161.359 181.637 161.359 181.637 161.359C181.629 161.377 181.621 161.399 181.61 161.426C181.54 161.604 181.472 161.785 181.406 161.965C181.402 161.977 181.398 161.988 181.394 161.999C181.304 162.16 181.219 162.323 181.123 162.481C181.074 162.562 181.016 162.641 180.97 162.724C180.949 162.762 180.936 162.785 180.93 162.798C180.727 163.035 180.436 163.332 180.388 163.385C180.696 163.049 180.535 163.229 180.318 163.42C180.172 163.548 180.018 163.666 179.869 163.79C179.848 163.807 179.831 163.822 179.816 163.835C179.797 163.845 179.775 163.857 179.747 163.873C179.576 163.97 179.411 164.078 179.238 164.171C179.043 164.277 178.844 164.373 178.642 164.463C178.556 164.494 178.471 164.526 178.384 164.553C177.532 164.819 176.835 164.945 176.084 164.954C175.296 164.954 174.508 164.954 173.719 164.954C171.519 164.954 169.318 164.954 167.118 164.954C163.751 164.954 160.385 164.954 157.019 164.954C152.756 164.954 148.493 164.954 144.231 164.954C139.275 164.954 134.319 164.954 129.364 164.954C123.981 164.954 118.598 164.954 113.215 164.954C107.651 164.954 102.086 164.954 96.5224 164.954C91.024 164.954 85.5255 164.954 80.0271 164.954C74.8407 164.954 69.6543 164.954 64.4679 164.954C59.8401 164.954 55.2123 164.954 50.5846 164.954C46.7784 164.954 42.9721 164.954 39.166 164.954C36.3891 164.954 33.6122 164.954 30.8354 164.954C29.3555 164.954 27.8756 164.954 26.3957 164.954C25.9641 164.954 25.534 164.958 25.1029 164.922C23.4511 164.785 22.11 164.207 20.7626 163.127C20.3445 162.792 19.7301 162.074 19.3142 161.434C19.2096 161.273 19.1102 161.109 19.0161 160.942C18.9707 160.861 18.8013 160.534 18.8105 160.558C18.7451 160.414 18.5329 159.846 18.4422 159.537C18.3467 159.211 18.2692 158.879 18.2129 158.544C18.2174 158.545 18.1876 158.285 18.1815 158.192C18.1669 157.964 18.1617 157.736 18.1651 157.508C18.166 157.455 18.1793 157.245 18.185 157.131C18.2055 157.005 18.2441 156.74 18.2591 156.662C18.2913 156.493 18.3319 156.326 18.3726 156.16C18.2821 156.539 18.4099 156.072 18.4891 155.866C18.518 155.79 18.6652 155.487 18.6846 155.432C18.7383 155.339 18.7932 155.243 18.8125 155.21C18.8692 155.114 18.9282 155.019 18.9875 154.924C19.0003 154.904 19.0137 154.884 19.0265 154.863C19.2211 154.554 19.4201 154.247 19.617 153.939C20.6335 152.348 21.6501 150.756 22.6667 149.165C24.3869 146.472 26.107 143.779 27.8271 141.086C30.0848 137.552 32.3425 134.017 34.6001 130.483C37.2646 126.312 39.9291 122.141 42.5935 117.97C45.5011 113.418 48.4086 108.866 51.3161 104.315C54.3131 99.6229 57.31 94.9312 60.3069 90.2397C63.2394 85.6489 66.172 81.058 69.1045 76.4672C71.819 72.2178 74.5334 67.9683 77.2479 63.719C79.5904 60.0517 81.9331 56.3844 84.2756 52.7172C86.0852 49.8842 87.8948 47.0513 89.7044 44.2184C90.8459 42.4315 91.9873 40.6446 93.1287 38.8578C93.3976 38.4368 93.6701 38.0178 93.9356 37.5945C93.9507 37.5705 93.9737 37.5416 93.9972 37.511C93.8744 37.7231 94.1597 37.2638 94.301 37.0921C94.4017 36.9695 94.5483 36.8114 94.5423 36.8113C94.6372 36.721 94.7333 36.6319 94.8323 36.546C94.9866 36.4121 95.1478 36.2876 95.3084 36.1615C94.9392 36.4513 95.3917 36.1121 95.5441 36.0212C96.7591 35.2961 98.1095 34.9498 99.7068 35.0725C101.356 35.1993 102.702 35.7434 104.07 36.8307C104.685 37.3192 105.311 38.1542 105.817 38.9457C106.592 40.1592 107.367 41.3727 108.142 42.5862C109.667 44.9733 111.192 47.3605 112.717 49.7476C114.838 53.0679 116.959 56.3881 119.08 59.7083C121.629 63.6999 124.179 67.6913 126.729 71.6829C129.579 76.1455 132.43 80.6082 135.281 85.0709C138.267 89.7458 141.253 94.4206 144.239 99.0955C147.207 103.742 150.176 108.388 153.144 113.035C155.94 117.412 158.736 121.789 161.532 126.167C164.002 130.034 166.473 133.902 168.943 137.769C170.935 140.886 172.926 144.003 174.917 147.12C176.27 149.239 177.623 151.357 178.976 153.475C179.551 154.376 180.134 155.272 180.702 156.177C181.138 156.872 181.311 157.219 181.54 157.972C181.6 158.167 181.652 158.363 181.697 158.561C181.711 158.623 181.759 158.873 181.78 158.97C181.787 159.063 181.815 159.319 181.819 159.383C181.831 159.579 181.836 159.775 181.834 159.972C181.834 160.022 181.825 160.217 181.821 160.333Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M98.5821 122.507C99.019 122.759 99.6307 122.629 100.038 122.389C101.205 121.703 101.925 120.275 102.041 118.92C103.115 106.361 106.514 75.1051 106.514 68.3062C106.514 59.902 92.8134 60.6835 92.0664 71.3279C91.6887 76.7103 97.5083 119.581 97.8266 121.187C97.9188 121.652 98.1423 122.253 98.5821 122.507Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M101.841 133.945C101.826 133.94 101.812 133.934 101.797 133.929C98.2767 132.6 94.4012 134.976 93.9964 138.717C93.9765 138.901 93.9636 139.086 93.958 139.272C93.8552 142.712 96.4467 146.126 99.8464 146.664C103.245 147.201 106.896 144.494 107.099 141.059C107.285 137.909 104.789 135.072 101.841 133.945Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M161.729 131.662C161.873 131.367 162.082 130.81 161.71 130.584C161.365 130.375 160.901 130.836 160.768 131.107C156.804 139.201 152.84 147.295 148.877 155.389C147.759 157.67 146.642 159.952 145.525 162.233C145.38 162.528 145.171 163.085 145.543 163.311C145.888 163.52 146.352 163.059 146.485 162.788C150.449 154.694 154.413 146.6 158.377 138.506C159.494 136.225 160.611 133.943 161.729 131.662Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M144.786 152.64C144.441 152.43 143.977 152.891 143.844 153.163C142.363 156.187 140.882 159.21 139.402 162.234C139.257 162.528 139.048 163.085 139.42 163.311C139.765 163.521 140.229 163.06 140.362 162.788C141.843 159.764 143.323 156.741 144.804 153.717C144.948 153.423 145.158 152.866 144.786 152.64Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M136.792 156.459C136.447 156.25 135.983 156.711 135.85 156.982C134.993 158.733 134.136 160.483 133.279 162.233C133.134 162.528 132.925 163.085 133.297 163.311C133.642 163.52 134.106 163.06 134.239 162.788C135.096 161.037 135.953 159.287 136.81 157.537C136.955 157.242 137.164 156.685 136.792 156.459Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M129.1 159.663C128.755 159.454 128.291 159.915 128.158 160.186C127.824 160.869 127.49 161.551 127.155 162.234C127.011 162.528 126.802 163.086 127.174 163.311C127.519 163.521 127.983 163.06 128.116 162.788C128.45 162.106 128.784 161.423 129.118 160.741C129.263 160.447 129.472 159.889 129.1 159.663Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M165.835 137.946C165.979 137.652 166.188 137.094 165.816 136.868C165.471 136.659 165.007 137.12 164.874 137.392C161.72 143.832 158.566 150.273 155.412 156.713C154.511 158.553 153.609 160.393 152.708 162.233C152.564 162.528 152.355 163.085 152.726 163.311C153.071 163.52 153.535 163.06 153.669 162.788C156.823 156.347 159.977 149.907 163.131 143.466C164.032 141.626 164.933 139.786 165.835 137.946Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M169.923 143.153C169.578 142.943 169.114 143.404 168.98 143.676C165.951 149.862 162.921 156.048 159.892 162.234C159.748 162.528 159.538 163.086 159.91 163.311C160.255 163.521 160.719 163.06 160.852 162.788C163.882 156.602 166.911 150.416 169.941 144.23C170.085 143.936 170.294 143.378 169.923 143.153Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M174.332 148.821C173.987 148.611 173.523 149.072 173.39 149.344C171.286 153.64 169.182 157.937 167.077 162.234C166.933 162.528 166.724 163.086 167.095 163.311C167.44 163.521 167.905 163.06 168.038 162.788C170.142 158.492 172.246 154.195 174.351 149.898C174.495 149.604 174.704 149.046 174.332 148.821Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M178.197 155.597C177.852 155.387 177.388 155.848 177.255 156.12C176.257 158.158 175.259 160.196 174.261 162.233C174.117 162.528 173.907 163.085 174.279 163.311C174.624 163.52 175.088 163.06 175.221 162.788C176.219 160.75 177.217 158.712 178.215 156.674C178.36 156.38 178.569 155.823 178.197 155.597Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M97.1962 40.2135C97.3477 39.9803 97.4773 39.477 97.1807 39.2971C96.8678 39.1072 96.5194 39.5265 96.3794 39.7419C94.7034 42.3205 93.0556 44.9176 91.4179 47.5205C88.1743 52.6759 84.976 57.8633 81.9271 63.1367C80.4155 65.7509 78.9283 68.3855 77.5879 71.0925C77.4642 71.3423 77.2879 71.8174 77.6034 72.0088C77.8975 72.1874 78.2905 71.7947 78.4047 71.564C80.9657 66.3919 83.9726 61.4308 86.9671 56.5018C89.7369 51.9427 92.5713 47.4226 95.4474 42.9297C96.0279 42.0228 96.6094 41.1164 97.1962 40.2135Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M75.3224 76.1247C75.0193 75.9408 74.6477 76.3459 74.521 76.5695C74.1645 77.1991 73.808 77.8286 73.4515 78.4581C73.3144 78.7003 73.1605 79.1884 73.467 79.3744C73.77 79.5583 74.1416 79.1532 74.2684 78.9296C74.6248 78.3001 74.9814 77.6705 75.3378 77.0411C75.475 76.7988 75.6288 76.3107 75.3224 76.1247Z",fill:"var(--pae-shell-color-secondary)"})]});mu.displayName="WarningIcon";const Gv="support@bluealba.com",Qv="@bluealba/pae-shell-ui",Ws=()=>{const{supportEmail:e=Gv}=za(Qv),t=`mailto:${e}?Subject=Support`;return u.jsxs("div",{className:mr.container,children:[u.jsx(mu,{}),u.jsx("div",{className:mr.title,children:"Oops! Something went wrong"}),u.jsxs("div",{className:mr.description,children:["If the error persists, ",u.jsx("a",{className:mr.mailToText,href:t,children:"contact the administrator."})]})]})};Ws.displayName="ErrorState";const Kv="List__h09XG",Yv="List__h09XG",Zv="Item__YMy2i",Xv="Item__YMy2i",Jv="List--primary__J2pbx",e0="List--secondary__gi1ao",t0="Item--selected__yRWow",n0="Title__RJmEW",r0="Title__RJmEW",o0="Description__DGyX2",s0="Description__DGyX2",i0="Actions__UHP5l",a0="Actions__UHP5l",c0="Action__q-R1I",l0="Action__q-R1I",u0="Item--disabled__Ke1u-",d0="List--small__ijoSR",f0="List--medium__E1FEY",h0="List--large__T8tfz",p0="Icon__dFr-L",m0="Icon__dFr-L",Re={List:Kv,list:Yv,Item:Zv,item:Xv,"List--primary":"List--primary__J2pbx",listPrimary:Jv,"List--secondary":"List--secondary__gi1ao",listSecondary:e0,"Item--selected":"Item--selected__yRWow",itemSelected:t0,Title:n0,title:r0,Description:o0,description:s0,Actions:i0,actions:a0,Action:c0,action:l0,"Item--disabled":"Item--disabled__Ke1u-",itemDisabled:u0,"List--small":"List--small__ijoSR",listSmall:d0,"List--medium":"List--medium__E1FEY",listMedium:f0,"List--large":"List--large__T8tfz",listLarge:h0,Icon:p0,icon:m0},gu=R.forwardRef(({children:e,className:t,selected:n,disabled:r=!1,...o},s)=>{const i=D(Re.Item,{[Re["Item--selected"]]:n,[Re["Item--disabled"]]:r},t);return u.jsx("li",{ref:s,className:i,role:"listitem","aria-disabled":r,...o,children:e})});gu.displayName="Item";const yu=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Re.Title,t);return u.jsx("h3",{ref:r,className:o,...n,children:e})});yu.displayName="Title";const vu=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Re.Description,t);return u.jsx("p",{ref:r,className:o,...n,children:e})});vu.displayName="Description";const Hs=({className:e,...t})=>u.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:[u.jsx("path",{d:"M6 6.5C6.27614 6.5 6.5 6.27614 6.5 6C6.5 5.72386 6.27614 5.5 6 5.5C5.72386 5.5 5.5 5.72386 5.5 6C5.5 6.27614 5.72386 6.5 6 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M9.5 6.5C9.77614 6.5 10 6.27614 10 6C10 5.72386 9.77614 5.5 9.5 5.5C9.22386 5.5 9 5.72386 9 6C9 6.27614 9.22386 6.5 9.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M2.5 6.5C2.77614 6.5 3 6.27614 3 6C3 5.72386 2.77614 5.5 2.5 5.5C2.22386 5.5 2 5.72386 2 6C2 6.27614 2.22386 6.5 2.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"})]});Hs.displayName="HorizontalDots";const bu=R.forwardRef(({children:e,className:t,onClick:n,...r},o)=>{const s=R.useRef(null),[i,a]=R.useState(!1),c=D(Re.Actions,t),l=()=>{const w=Rt["DropdownList--open"],m=Rt["DropdownList--closed"];document.querySelectorAll(`.${w}`).forEach(C=>{C!==s.current&&(C.classList.remove(w),C.classList.add(m))})},d=w=>{w.stopPropagation(),i?h():(a(!0),n==null||n(w))},h=()=>{a(!1)},p=w=>{w.key==="Escape"&&h()},g=w=>{s.current&&!s.current.contains(w.target)&&h()};return R.useEffect(()=>(i?(l(),document.addEventListener("keydown",p),document.addEventListener("click",g)):(document.removeEventListener("keydown",p),document.removeEventListener("click",g)),()=>{document.removeEventListener("keydown",p),document.removeEventListener("click",g)}),[i]),u.jsxs("div",{ref:o,className:c,onClick:d,role:"button",tabIndex:0,"data-testid":"actions",...r,children:[u.jsx(Hs,{}),u.jsx(Gr,{align:"left",ref:s,open:i,"data-testid":"actions-dropdown",role:"menu","aria-label":"Actions",children:e})]})});bu.displayName="Actions";const wu=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Re.Action,t);return u.jsx("button",{ref:r,className:o,...n,children:e})});wu.displayName="Action";const Cu=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Re.Icon,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});Cu.displayName="Icon";const Be=R.forwardRef(({children:e,className:t,size:n="medium",variant:r,...o},s)=>{const i=D(Re.List,{[Re[`List--${n}`]]:n,[Re[`List--${r}`]]:r},t);return u.jsx("ul",{ref:s,className:i,role:"list",...o,children:e})});Be.displayName="List";Be.Item=gu;Be.Badges=xs;Be.Badge=Cs;Be.Title=yu;Be.Description=vu;Be.Actions=bu;Be.Action=wu;Be.Icon=Cu;const g0="Navigation__uylxk",y0="PaginationContent__UpLw0",v0="PaginationEllipsis__perWk",b0="PaginationLink__GVUZj",w0="Active__u1Ahy",C0="Disabled__8WM0y",x0="Prev__wp4hc",E0="Next__eVyL5",Ze={Navigation:g0,PaginationContent:y0,PaginationEllipsis:v0,PaginationLink:b0,Active:w0,Disabled:C0,Prev:x0,Next:E0},xu=({className:e,...t})=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...t,children:[u.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M9 6l6 6l-6 6"})]});xu.displayName="ChevronRight";const Eu=({className:e,...t})=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...t,children:[u.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M15 6l-6 6l6 6"})]});Eu.displayName="ChevronLeft";const Vs=({className:e,...t})=>u.jsx("nav",{role:"navigation","aria-label":"pagination",className:D(Ze.Navigation,e),...t});Vs.displayName="Pagination";const qs=f.forwardRef(({className:e,...t},n)=>u.jsx("ul",{ref:n,className:D(Ze.PaginationContent,e),...t}));qs.displayName="PaginationContent";const _n=f.forwardRef(({className:e,...t},n)=>u.jsx("li",{ref:n,className:e,...t}));_n.displayName="PaginationItem";const Hn=({className:e,isActive:t,...n})=>u.jsx("a",{"aria-current":t?"page":void 0,className:D(Ze.PaginationLink,t&&Ze.Active,e),...n});Hn.displayName="PaginationLink";const zs=({className:e,disabled:t,...n})=>u.jsxs(Hn,{"aria-label":"Go to previous page",className:D(t&&Ze.Disabled,Ze.Prev,e),...n,children:[u.jsx(Eu,{}),u.jsx("span",{children:"Previous"})]});zs.displayName="PaginationPrevious";const Gs=({className:e,disabled:t,...n})=>u.jsxs(Hn,{"aria-label":"Go to next page",className:D(t&&Ze.Disabled,Ze.Next,e),...n,children:[u.jsx("span",{children:"Next"}),u.jsx(xu,{})]});Gs.displayName="PaginationNext";const Qs=({className:e,...t})=>u.jsx("span",{"aria-hidden":!0,className:D(Ze.PaginationEllipsis,e),...t,children:u.jsx(Hs,{})});Qs.displayName="PaginationEllipsis";function S0(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 Su={exports:{}};(function(e,t){(function(n,r){typeof S0=="function"?e.exports=r():n.pluralize=r()})(ad,function(){var n=[],r=[],o={},s={},i={};function a(m){return typeof m=="string"?new RegExp("^"+m+"$","i"):m}function c(m,y){return m===y?y:m===m.toLowerCase()?y.toLowerCase():m===m.toUpperCase()?y.toUpperCase():m[0]===m[0].toUpperCase()?y.charAt(0).toUpperCase()+y.substr(1).toLowerCase():y.toLowerCase()}function l(m,y){return m.replace(/\$(\d{1,2})/g,function(C,x){return y[x]||""})}function d(m,y){return m.replace(y[0],function(C,x){var S=l(y[1],arguments);return c(C===""?m[x-1]:C,S)})}function h(m,y,C){if(!m.length||o.hasOwnProperty(m))return y;for(var x=C.length;x--;){var S=C[x];if(S[0].test(y))return d(y,S)}return y}function p(m,y,C){return function(x){var S=x.toLowerCase();return y.hasOwnProperty(S)?c(x,S):m.hasOwnProperty(S)?c(x,m[S]):h(S,x,C)}}function g(m,y,C,x){return function(S){var E=S.toLowerCase();return y.hasOwnProperty(E)?!0:m.hasOwnProperty(E)?!1:h(E,E,C)===E}}function w(m,y,C){var x=y===1?w.singular(m):w.plural(m);return(C?y+" ":"")+x}return w.plural=p(i,s,n),w.isPlural=g(i,s,n),w.singular=p(s,i,r),w.isSingular=g(s,i,r),w.addPluralRule=function(m,y){n.push([a(m),y])},w.addSingularRule=function(m,y){r.push([a(m),y])},w.addUncountableRule=function(m){if(typeof m=="string"){o[m.toLowerCase()]=!0;return}w.addPluralRule(m,"$0"),w.addSingularRule(m,"$0")},w.addIrregularRule=function(m,y){y=y.toLowerCase(),m=m.toLowerCase(),i[m]=y,s[y]=m},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(m){return w.addIrregularRule(m[0],m[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(m){return w.addPluralRule(m[0],m[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(m){return w.addSingularRule(m[0],m[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(w.addUncountableRule),w})})(Su);var _0=Su.exports;const R0=cd(_0),Ks=({count:e,singularText:t,children:n=(r,o)=>`${r} ${o}`})=>u.jsx(u.Fragment,{children:n(e,R0(t,e))});Ks.displayName="PluralizeCounter";const T0="TableContainer__osh6Z",A0="TableHeader__sYa-8",P0="Table__2cIs3",O0="selectable__WsGg1",j0="Cell__ZEv-K",D0="Right__YoM1V",L0="Center__CF3tr",k0="Sortable__JIV1V",I0="SortIcon__f0bBy",N0="Active__rJjxB",M0="Rotate__7cwTK",$0="Pagination__sbqMP",F0="PointerNone__kQdQS",fe={TableContainer:T0,TableHeader:A0,Table:P0,selectable:O0,Cell:j0,Right:D0,Center:L0,Sortable:k0,SortIcon:I0,Active:N0,Rotate:M0,Pagination:$0,PointerNone:F0},B0="EmptyStateContainer__Q9FEb",U0="Message__IHK6M",wa={EmptyStateContainer:B0,Message:U0},_u=({size:e=64})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsxs("g",{clipPath:"url(#clip-path)",children:[u.jsx("mask",{id:"mask0_1070_8032",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"64",height:"64",children:u.jsx("path",{d:"M64 0H0V64H64V0Z",fill:"white"})}),u.jsx("g",{mask:"url(#mask0_1070_8032)",children:u.jsx("path",{d:"M40 10.6673H13.3333V53.334H50.6667V21.334H40V10.6673ZM8 7.97932C8 6.51798 9.192 5.33398 10.664 5.33398H42.6667L56 18.6673V55.982C56.0024 56.3321 55.936 56.6793 55.8043 57.0039C55.6725 57.3284 55.4781 57.6239 55.2323 57.8732C54.9864 58.1225 54.6936 58.3209 54.3712 58.4572C54.0485 58.5935 53.7021 58.6649 53.352 58.6673H10.648C9.94768 58.6625 9.27739 58.3823 8.78192 57.8873C8.28645 57.3924 8.00557 56.7223 8 56.022V7.97932ZM36.0773 38.5233C33.8408 39.83 31.2056 40.2788 28.6627 39.786C26.1197 39.2929 23.8428 37.8921 22.2566 35.8444C20.6704 33.7966 19.883 31.2417 20.0414 28.6564C20.1998 26.071 21.293 23.6315 23.1173 21.7927C24.9532 19.9571 27.3955 18.8541 29.9864 18.6904C32.5773 18.5267 35.1389 19.3134 37.1912 20.9032C39.2435 22.493 40.6456 24.7767 41.1347 27.3263C41.6237 29.8759 41.1664 32.5164 39.848 34.7527L45.7413 40.646L41.9707 44.4193L36.0773 38.5233ZM34.4293 33.1047C34.9387 32.6126 35.3451 32.0241 35.6245 31.3735C35.904 30.7228 36.0512 30.0231 36.0573 29.3148C36.0635 28.6065 35.9285 27.9044 35.6603 27.2489C35.3923 26.5935 34.9963 25.998 34.4955 25.4972C33.9947 24.9964 33.3992 24.6004 32.7437 24.3323C32.0883 24.0641 31.3861 23.9292 30.6779 23.9353C29.9696 23.9415 29.2699 24.0886 28.6192 24.3681C27.9685 24.6476 27.38 25.0539 26.888 25.5633C25.9165 26.5692 25.3789 27.9164 25.3911 29.3148C25.4032 30.7132 25.9641 32.0508 26.9531 33.0396C27.9419 34.0287 29.2795 34.5895 30.6779 34.6015C32.0763 34.6137 33.4235 34.0761 34.4293 33.1047Z",fill:"currentColor"})})]}),u.jsx("defs",{children:u.jsx("clipPath",{id:"clip-path",children:u.jsx("rect",{width:"64",height:"64",fill:"white"})})})]});_u.displayName="EmptyStateIcon";const Ys=({message:e="No results found"})=>u.jsxs("div",{className:D(wa.EmptyStateContainer),children:[u.jsx(_u,{}),u.jsx("p",{className:wa.Message,children:e})]});Ys.displayName="EmptyState";const W0=(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)},Ru=({page:e,totalPages:t,onPageChange:n})=>{const r=e===1,o=e===t;return u.jsx(Vs,{className:fe.Pagination,children:u.jsxs(qs,{children:[u.jsx(_n,{children:u.jsx(zs,{className:D({[fe.PointerNone]:r}),onClick:()=>!r&&n(e-1)})}),W0(t,e).map((s,i)=>u.jsxs(_n,{children:[s==="..."&&u.jsx(Qs,{}),s!=="..."&&u.jsx(Hn,{isActive:+s===e,onClick:()=>+s!==e&&n(+s),children:s})]},i)),u.jsx(_n,{children:u.jsx(Gs,{className:D({[fe.PointerNone]:o}),onClick:()=>!o&&n(e+1)})})]})})};Ru.displayName="TablePagination";const Tu=({className:e,...t})=>u.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:u.jsx("path",{d:"M6 2.5V9.5M6 9.5L9.5 6M6 9.5L2.5 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});Tu.displayName="ArrowDown";const Au=({columns:e,data:t,isLoading:n,totalCount:r=0,headerLabel:o,sort:s,loadingConfig:i,pagination:a,onRowClick:c})=>{const{count:l=5,height:d=40}=i||{},h=y=>y.sortName??y.name,p=y=>D({[fe.Cell]:!0,[fe.Center]:y.align==="center",[fe.Right]:y.align==="right",[fe.Sortable]:y.isSortable}),g=y=>{if(!s)return"";const C=h(y);return D({[fe.SortIcon]:!0,[fe.Active]:y.isSortable&&s.field===C,[fe.Rotate]:s.field===C&&s.direction==="asc"})},w=y=>()=>c==null?void 0:c(y),m=y=>()=>{if(!s||!y.isSortable)return;const{field:C,direction:x,onSort:S}=s,E=h(y);C===E?S(E,x==="asc"?"desc":"asc"):S(E,"asc")};return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:fe.TableContainer,children:[o&&u.jsx("div",{className:fe.TableHeader,children:u.jsx(Ks,{count:r,singularText:o,children:(y,C)=>`${y} ${C}`})}),u.jsxs("table",{className:fe.Table,children:[u.jsx("thead",{children:u.jsx("tr",{children:e.map(y=>u.jsx("th",{children:u.jsxs("div",{className:p(y),onClick:m(y),children:[u.jsx("span",{children:y.displayName}),y.isSortable&&u.jsx(Tu,{className:g(y)})]})},y.name))})}),u.jsx("tbody",{children:u.jsxs(ft,{children:[u.jsx(ft.When,{condition:n,children:[...Array(l).keys()].map(y=>u.jsx("tr",{children:u.jsx("td",{colSpan:e.length,style:{padding:4},children:u.jsx(Kr,{height:d})})},y))}),u.jsx(ft.When,{condition:!t.length,children:u.jsx("tr",{children:u.jsx("td",{colSpan:e.length,children:u.jsx(Ys,{})})})}),u.jsx(ft.Else,{children:t.map((y,C)=>u.jsx("tr",{className:c&&fe.selectable,onClick:w(y),children:e.map(x=>u.jsx("td",{style:x.width?{width:x.width}:{},children:u.jsx("div",{className:p(x),children:x.cellRenderer?x.cellRenderer(y):x.valueGetter?x.valueGetter(y):y[x.name]})},`${x.name}-${C}`))},C))})]})})]})]}),a&&u.jsx(Ru,{...a})]})};Au.displayName="Table";const H0="alert__LblpE",V0="destructive__bLNSM",q0="alertTitle__gblKf",z0="alertDescription__BuVHV",Fr={alert:H0,default:"default__mgO6A",destructive:V0,alertTitle:q0,alertDescription:z0},oo=({className:e,variant:t="default",children:n,...r})=>u.jsx("div",{"data-slot":"alert",role:"alert",className:D(Fr.alert,Fr[t],e),...r,children:n}),G0=f.forwardRef(({children:e,className:t,...n},r)=>u.jsx("div",{ref:r,"data-slot":"alert-title",className:D(Fr.alertTitle,t),...n,children:e})),Q0=f.forwardRef(({children:e,className:t,...n},r)=>u.jsx("div",{ref:r,"data-slot":"alert-description",className:D(Fr.alertDescription,t),...n,children:e}));oo.displayName="Alert";oo.Title=G0;oo.Description=Q0;function Ca(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 Br(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ca(Object(n),!0).forEach(function(r){K0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ca(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pu(e){return(Pu=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 K0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cs(e){return(cs=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 Ou(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(cs(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(cs(r)));return r}}var jn=null;try{jn=require("react").createContext()}catch{}var Y0={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 Z0(e){if(Pu(e)!=="object")throw new Error("single-spa-react requires a configuration object");var t,n=Br(Br({},Y0),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");!jn&&n.React.createContext&&(jn=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:X0.bind(null,n),mount:J0.bind(null,n),unmount:e2.bind(null,n)};return n.parcelCanUpdate&&(r.update=t2.bind(null,n)),r}function X0(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then(function(n){e.rootComponent=n})}function J0(e,t){return new Promise(function(n,r){e.suppressComponentDidCatchWarning||!function(a){if(!(a&&typeof a.version=="string"&&a.version.indexOf(".")>=0))return!1;var c=a.version.slice(0,a.version.indexOf("."));try{return Number(c)>=16}catch{return!1}}(e.React)||e.errorBoundary||e.errorBoundaryClass||(e.rootComponent.prototype?e.rootComponent.prototype.componentDidCatch||console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire single-spa application.")):console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to singleSpaReact(opts).")));var o=ju(e,t,function(){n(this)}),s=Ou(e,t)(),i=function(a){var c=a.reactDom,l=a.renderType,d=a.elementToRender,h=a.domElement,p=c[l];if(typeof p!="function")throw new Error('renderType "'.concat(l,'" did not return a function.'));switch(l){case"createRoot":case"unstable_createRoot":case"createBlockingRoot":case"unstable_createBlockingRoot":var g=p(h);return g.render(d),g;case"hydrateRoot":return p(h,d);case"hydrate":default:return p(d,h),null}}({elementToRender:o,domElement:s,reactDom:Zs(e),renderType:n2(e)});e.domElements[t.name]=s,e.renderResults[t.name]=i})}function e2(e,t){return new Promise(function(n){e.unmountResolves[t.name]=n;var r=e.renderResults[t.name];r&&r.unmount?r.unmount():Zs(e).unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]})}function t2(e,t){return new Promise(function(n){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(n);var r=ju(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(r);else{var s=Ou(e,t)();Zs(e).render(r,s)}})}function Zs(e){return e.ReactDOMClient||e.ReactDOM}function n2(e){return typeof e.renderType=="function"?e.renderType():e.renderType}function ju(e,t,n){var r=e.React.createElement(e.rootComponent,t),o=jn?e.React.createElement(jn.Provider,{value:t},r):r;return(e.errorBoundary||t.errorBoundary||e.errorBoundaryClass||t.errorBoundaryClass)&&(e.errorBoundaryClass=e.errorBoundaryClass||t.errorBoundaryClass||function(s,i){function a(c){s.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},a.displayName="SingleSpaReactErrorBoundary(".concat(c.name,")")}return a.prototype=Object.create(s.React.Component.prototype),a.prototype.render=function(){return this.state.caughtError?(s.errorBoundary||i.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},a.prototype.componentDidCatch=function(c,l){this.setState({caughtError:c,caughtErrorInfo:l})},a}(e,t),o=e.React.createElement(e.errorBoundaryClass,t,o)),o=e.React.createElement(e.SingleSpaRoot,Br(Br({},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 r2=e=>{const t=new dh;return function(r){if(!r)throw new Error("Microfrontend did not receive any properties !!");const o=ds(r.module.name);return u.jsx(Ua,{module:o,children:u.jsxs(gh,{client:t,children:[u.jsx(e,{...r}),u.jsx(Kf,{position:"top-right",reverseOrder:!0})]})})}},o2=({rootComponent:e,...t})=>Z0({errorBoundary(n){return console.error(n),u.jsx(Ws,{})},...t,rootComponent:r2(e)}),s2=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,Rn,{value:e?Td(t,e):t})},Xs=()=>{const[e]=Nn();return e.featureFlags},i2=e=>!!Xs()[e],Du=({flag:e,children:t,fallback:n=null,invert:r=!1})=>{const s=Xs()[e]===!0;return(r?!s:s)?u.jsx(u.Fragment,{children:t}):u.jsx(u.Fragment,{children:n})};Du.displayName="FeatureFlagGuard";exports.Alert=oo;exports.ApplicationIcon=Nc;exports.Authorized=ws;exports.Badge=Cs;exports.Badges=xs;exports.Button=Dr;exports.ClipboardCheckIcon=Fc;exports.ClipboardIcon=$c;exports.ConfirmDialog=pu;exports.CopyToClipboardButton=Rp;exports.Dialog=ie;exports.DropdownList=Gr;exports.EmptyState=Ys;exports.ErrorState=Ws;exports.ExtendExtensionPoint=Vh;exports.ExtensionPoint=jc;exports.EyeIcon=Il;exports.FeatureFlagGuard=Du;exports.FieldGroup=Bc;exports.Input=zr;exports.InputError=Uc;exports.Label=Wc;exports.List=Be;exports.ModulePlaceHolder=Ic;exports.Pagination=Vs;exports.PaginationContent=qs;exports.PaginationEllipsis=Qs;exports.PaginationItem=_n;exports.PaginationLink=Hn;exports.PaginationNext=Gs;exports.PaginationPrevious=zs;exports.PasswordInput=fy;exports.Pill=Bv;exports.PlatformEventListener=Zh;exports.PlatformEvents=td;exports.PluralizeCounter=Ks;exports.SearchAutocomplete=zc;exports.SearchInput=Ss;exports.Select=Es;exports.Show=ft;exports.Skeleton=Kr;exports.SkeletonList=Kc;exports.Spinner=Dl;exports.Switch=Ll;exports.Table=Au;exports.Tabs=iy;exports.TabsContent=ly;exports.TabsList=ay;exports.TabsTrigger=cy;exports.TextArea=Vc;exports.Tooltip=jl;exports.authorized=Jh;exports.dropdownListStyles=Rt;exports.extensionPoint=zh;exports.getApplications=us;exports.getInitials=yd;exports.getOperations=Wa;exports.hasAccess=Va;exports.initializeMicroFrontend=o2;exports.isPlatformCustomizationCompleted=of;exports.isValidEmail=gd;exports.logout=hd;exports.navigateTo=pd;exports.platformHaveAnyCustomization=rf;exports.setupTestEnvironment=s2;exports.useApplicationIcon=Xa;exports.useApplicationJSModule=Hr;exports.useApplicationMenu=Ed;exports.useApplicationUIModule=Za;exports.useApplications=Ka;exports.useAuth=Ur;exports.useCatalog=Mn;exports.useCurrentApplication=hs;exports.useCurrentApplicationName=ec;exports.useCurrentJSModule=jd;exports.useDynamicFonts=ac;exports.useDynamicStyleSheet=ic;exports.useExtendExtensionPoint=oc;exports.useExtensionPoint=rc;exports.useFeatureFlag=i2;exports.useFeatureFlags=Xs;exports.useGetPlatformTheme=nf;exports.useHasNoSession=ud;exports.useLocation=$a;exports.useModule=ds;exports.useModuleCommonPaths=fd;exports.useModuleConfig=qa;exports.useModuleConfigByName=za;exports.useModuleMenu=Ja;exports.useModuleMetadata=$n;exports.useMutableCatalog=id;exports.useNotifications=ms;exports.useOperations=Ha;exports.usePAECustomizationsLoadingState=tf;exports.usePAEState=Nn;exports.usePlatformCustomization=ef;exports.usePlatformEventListener=sc;exports.useResource=Ah;exports.useResourceActions=Pc;exports.useServiceBaseURL=tc;exports.useServiceInvoker=ps;exports.useTenants=Uh;exports.useTrackEvent=Nd;exports.useTrackEvents=nc;exports.useUIApplications=Ya;exports.useUserState=Hh;
|