@bluealba/pae-ui-react-core 4.0.1-feature-add-documentation-templat-1205 → 4.0.1-feature-menu-display-order-1213

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 CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";require('./index.css');var ci=e=>{throw TypeError(e)};var lo=(e,t,n)=>t.has(e)||ci("Cannot "+n);var b=(e,t,n)=>(lo(e,t,"read from private field"),n?n.call(e):t.get(e)),k=(e,t,n)=>t.has(e)?ci("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),O=(e,t,n,r)=>(lo(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),$=(e,t,n)=>(lo(e,t,"access private method"),n);var Kn=(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 _=require("react"),mr=require("single-spa"),Pa=require("react-dom");function Oa(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 m=Oa(_),ja=Oa(Pa),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"}},Tn="__PAE_GLOBAL_STATE__",Da="__PAE_REACTIVE_GLOBAL_STATE__",ka="__PAE_EXTENSIONS_POINTS_REGISTRY__",So="__PAE_CUSTOMIZATIONS_LOADING_STATE_KEY__",nd="/auth/logout",rd=(e,t)=>{const[n,r]=_.useState(t);return _.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),_o=(e,t)=>typeof e=="function"?e(t):e,La=(e,t)=>{const n=rd(e,t),r=_.useCallback(o=>{e.next(_o(o,n))},[n]);return[n,r]},Fr=()=>La(window[Da],window[Tn]),mn=()=>Fr()[0].catalog,id=()=>{const e=mn(),t=_.useCallback(r=>{window[Da].next({...window[Tn],catalog:_o(r,e)})},[e]),n=_.useCallback((r,o)=>{t(s=>sd(i=>i.name===r,i=>{var a;return{...i,ui:{...i.ui,customProps:_o(o,((a=i.ui)==null?void 0:a.customProps)??{})}}},s))},[t]);return[e,t,n]},Ia=()=>{const[e,t]=_.useState(document.location.pathname);return _.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 Na={exports:{}},xn={},li;function ld(){if(li)return xn;li=1;/**
1
+ "use strict";require('./index.css');var ci=e=>{throw TypeError(e)};var lo=(e,t,n)=>t.has(e)||ci("Cannot "+n);var b=(e,t,n)=>(lo(e,t,"read from private field"),n?n.call(e):t.get(e)),k=(e,t,n)=>t.has(e)?ci("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),O=(e,t,n,r)=>(lo(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),$=(e,t,n)=>(lo(e,t,"access private method"),n);var Kn=(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 _=require("react"),mr=require("single-spa"),Pa=require("react-dom");function Oa(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 m=Oa(_),ja=Oa(Pa),nd={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"}},Tn="__PAE_GLOBAL_STATE__",Da="__PAE_REACTIVE_GLOBAL_STATE__",ka="__PAE_EXTENSIONS_POINTS_REGISTRY__",So="__PAE_CUSTOMIZATIONS_LOADING_STATE_KEY__",rd="/auth/logout",od=(e,t)=>{const[n,r]=_.useState(t);return _.useEffect(()=>{const o=e.subscribe(s=>{r(s)});return()=>{o.unsubscribe()}},[r]),n},sd=(e,t,n)=>n.map((r,o)=>o===e?t(r):r),id=(e,t,n)=>sd(n.findIndex(e),t,n),_o=(e,t)=>typeof e=="function"?e(t):e,La=(e,t)=>{const n=od(e,t),r=_.useCallback(o=>{e.next(_o(o,n))},[n]);return[n,r]},Fr=()=>La(window[Da],window[Tn]),mn=()=>Fr()[0].catalog,ad=()=>{const e=mn(),t=_.useCallback(r=>{window[Da].next({...window[Tn],catalog:_o(r,e)})},[e]),n=_.useCallback((r,o)=>{t(s=>id(i=>i.name===r,i=>{var a;return{...i,ui:{...i.ui,customProps:_o(o,((a=i.ui)==null?void 0:a.customProps)??{})}}},s))},[t]);return[e,t,n]},Ia=()=>{const[e,t]=_.useState(document.location.pathname);return _.useEffect(()=>{const n=()=>{t(window.location.pathname)};return window.addEventListener("popstate",n),()=>{window.removeEventListener("popstate",n)}},[t]),e};var cd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ld(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Na={exports:{}},xn={},li;function ud(){if(li)return xn;li=1;/**
2
2
  * @license React
3
3
  * react-jsx-runtime.development.js
4
4
  *
@@ -10,51 +10,51 @@
10
10
  `+Ht+v}}var Wt=!1,Ct;{var zn=typeof WeakMap=="function"?WeakMap:Map;Ct=new zn}function Cn(v,T){if(!v||Wt)return"";{var j=Ct.get(v);if(j!==void 0)return j}var L;Wt=!0;var q=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var G;G=wn.current,wn.current=null,no();try{if(T){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(de){L=de}Reflect.construct(v,[],H)}else{try{H.call()}catch(de){L=de}v.call(H.prototype)}}else{try{throw Error()}catch(de){L=de}v()}}catch(de){if(de&&L&&typeof de.stack=="string"){for(var B=de.stack.split(`
11
11
  `),ae=L.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{Wt=!1,wn.current=G,ro(),Error.prepareStackTrace=q}var Vt=v?v.displayName||v.name:"",St=Vt?wt(Vt):"";return typeof v=="function"&&Ct.set(v,St),St}function xt(v,T,j){return Cn(v,!1)}function Vn(v){var T=v.prototype;return!!(T&&T.isReactComponent)}function qt(v,T,j){if(v==null)return"";if(typeof v=="function")return Cn(v,Vn(v));if(typeof v=="string")return wt(v);switch(v){case u:return wt("Suspense");case d:return wt("SuspenseList")}if(typeof v=="object")switch(v.$$typeof){case c:return xt(v.render);case p:return qt(v.type,T,j);case h:{var L=v,q=L._payload,G=L._init;try{return qt(G(q),T,j)}catch{}}}return""}var Et=Object.prototype.hasOwnProperty,Gn={},Qn=C.ReactDebugCurrentFrame;function Ue(v){if(v){var T=v._owner,j=qt(v.type,v._source,T?T.type:null);Qn.setExtraStackFrame(j)}else Qn.setExtraStackFrame(null)}function ku(v,T,j,L,q){{var G=Function.call.bind(Et);for(var H in v)if(G(v,H)){var B=void 0;try{if(typeof v[H]!="function"){var ae=Error((L||"React class")+": "+j+" type `"+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof v[H]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ae.name="Invariant Violation",ae}B=v[H](T,H,L,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).",L||"React class",j,H,typeof B),Ue(null)),B instanceof Error&&!(B.message in Gn)&&(Gn[B.message]=!0,Ue(q),x("Failed %s type: %s",j,B.message),Ue(null))}}}var Lu=Array.isArray;function oo(v){return Lu(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 Ys(v),!1}catch{return!0}}function Ys(v){return""+v}function Zs(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)),Ys(v)}var Xs=C.ReactCurrentOwner,Mu={key:!0,ref:!0,__self:!0,__source:!0},Js,ei;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"&&Xs.current}function Uu(v,T){{var j=function(){Js||(Js=!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 Hu(v,T){{var j=function(){ei||(ei=!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 Wu=function(v,T,j,L,q,G,H){var B={$$typeof:t,type:v,key:T,ref:j,props:H,_owner:G};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:L}),Object.defineProperty(B,"_source",{configurable:!1,enumerable:!1,writable:!1,value:q}),Object.freeze&&(Object.freeze(B.props),Object.freeze(B)),B};function qu(v,T,j,L,q){{var G,H={},B=null,ae=null;j!==void 0&&(Zs(j),B=""+j),Fu(T)&&(Zs(T.key),B=""+T.key),$u(T)&&(ae=T.ref,Bu(T,q));for(G in T)Et.call(T,G)&&!Mu.hasOwnProperty(G)&&(H[G]=T[G]);if(v&&v.defaultProps){var ee=v.defaultProps;for(G in ee)H[G]===void 0&&(H[G]=ee[G])}if(B||ae){var te=typeof v=="function"?v.displayName||v.name||"Unknown":v;B&&Uu(H,te),ae&&Hu(H,te)}return Wu(v,B,ae,q,L,Xs.current,H)}}var so=C.ReactCurrentOwner,ti=C.ReactDebugCurrentFrame;function zt(v){if(v){var T=v._owner,j=qt(v.type,v._source,T?T.type:null);ti.setExtraStackFrame(j)}else ti.setExtraStackFrame(null)}var io;io=!1;function ao(v){return typeof v=="object"&&v!==null&&v.$$typeof===t}function ni(){{if(so.current){var v=W(so.current.type);if(v)return`
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{Wt=!1,wn.current=G,ro(),Error.prepareStackTrace=q}var Vt=v?v.displayName||v.name:"",St=Vt?wt(Vt):"";return typeof v=="function"&&Ct.set(v,St),St}function xt(v,T,j){return Cn(v,!1)}function Vn(v){var T=v.prototype;return!!(T&&T.isReactComponent)}function qt(v,T,j){if(v==null)return"";if(typeof v=="function")return Cn(v,Vn(v));if(typeof v=="string")return wt(v);switch(v){case u:return wt("Suspense");case d:return wt("SuspenseList")}if(typeof v=="object")switch(v.$$typeof){case c:return xt(v.render);case p:return qt(v.type,T,j);case h:{var L=v,q=L._payload,G=L._init;try{return qt(G(q),T,j)}catch{}}}return""}var Et=Object.prototype.hasOwnProperty,Gn={},Qn=C.ReactDebugCurrentFrame;function Ue(v){if(v){var T=v._owner,j=qt(v.type,v._source,T?T.type:null);Qn.setExtraStackFrame(j)}else Qn.setExtraStackFrame(null)}function Lu(v,T,j,L,q){{var G=Function.call.bind(Et);for(var H in v)if(G(v,H)){var B=void 0;try{if(typeof v[H]!="function"){var ae=Error((L||"React class")+": "+j+" type `"+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof v[H]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ae.name="Invariant Violation",ae}B=v[H](T,H,L,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).",L||"React class",j,H,typeof B),Ue(null)),B instanceof Error&&!(B.message in Gn)&&(Gn[B.message]=!0,Ue(q),x("Failed %s type: %s",j,B.message),Ue(null))}}}var Iu=Array.isArray;function oo(v){return Iu(v)}function Nu(v){{var T=typeof Symbol=="function"&&Symbol.toStringTag,j=T&&v[Symbol.toStringTag]||v.constructor.name||"Object";return j}}function Mu(v){try{return Ys(v),!1}catch{return!0}}function Ys(v){return""+v}function Zs(v){if(Mu(v))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Nu(v)),Ys(v)}var Xs=C.ReactCurrentOwner,$u={key:!0,ref:!0,__self:!0,__source:!0},Js,ei;function Fu(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 Bu(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 Uu(v,T){typeof v.ref=="string"&&Xs.current}function Hu(v,T){{var j=function(){Js||(Js=!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(){ei||(ei=!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 qu=function(v,T,j,L,q,G,H){var B={$$typeof:t,type:v,key:T,ref:j,props:H,_owner:G};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:L}),Object.defineProperty(B,"_source",{configurable:!1,enumerable:!1,writable:!1,value:q}),Object.freeze&&(Object.freeze(B.props),Object.freeze(B)),B};function zu(v,T,j,L,q){{var G,H={},B=null,ae=null;j!==void 0&&(Zs(j),B=""+j),Bu(T)&&(Zs(T.key),B=""+T.key),Fu(T)&&(ae=T.ref,Uu(T,q));for(G in T)Et.call(T,G)&&!$u.hasOwnProperty(G)&&(H[G]=T[G]);if(v&&v.defaultProps){var ee=v.defaultProps;for(G in ee)H[G]===void 0&&(H[G]=ee[G])}if(B||ae){var te=typeof v=="function"?v.displayName||v.name||"Unknown":v;B&&Hu(H,te),ae&&Wu(H,te)}return qu(v,B,ae,q,L,Xs.current,H)}}var so=C.ReactCurrentOwner,ti=C.ReactDebugCurrentFrame;function zt(v){if(v){var T=v._owner,j=qt(v.type,v._source,T?T.type:null);ti.setExtraStackFrame(j)}else ti.setExtraStackFrame(null)}var io;io=!1;function ao(v){return typeof v=="object"&&v!==null&&v.$$typeof===t}function ni(){{if(so.current){var v=W(so.current.type);if(v)return`
14
14
 
15
- Check the render method of \``+v+"`."}return""}}function zu(v){return""}var ri={};function Vu(v){{var T=ni();if(!T){var j=typeof v=="string"?v:v.displayName||v.name;j&&(T=`
15
+ Check the render method of \``+v+"`."}return""}}function Vu(v){return""}var ri={};function Gu(v){{var T=ni();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 oi(v,T){{if(!v._store||v._store.validated||v.key!=null)return;v._store.validated=!0;var j=Vu(T);if(ri[j])return;ri[j]=!0;var L="";v&&v._owner&&v._owner!==so.current&&(L=" It was passed a child from "+W(v._owner.type)+"."),zt(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,L),zt(null)}}function si(v,T){{if(typeof v!="object")return;if(oo(v))for(var j=0;j<v.length;j++){var L=v[j];ao(L)&&oi(L,T)}else if(ao(v))v._store&&(v._store.validated=!0);else if(v){var q=y(v);if(typeof q=="function"&&q!==v.entries)for(var G=q.call(v),H;!(H=G.next()).done;)ao(H.value)&&oi(H.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===p))j=T.propTypes;else return;if(j){var L=W(T);ku(j,v.props,"prop",L,v)}else if(T.PropTypes!==void 0&&!io){io=!0;var q=W(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 L=T[j];if(L!=="children"&&L!=="key"){zt(v),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",L),zt(null);break}}v.ref!==null&&(zt(v),x("Invalid attribute `ref` supplied to `React.Fragment`."),zt(null))}}var ii={};function ai(v,T,j,L,q,G){{var H=M(v);if(!H){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=zu();ae?B+=ae:B+=ni();var ee;v===null?ee="null":oo(v)?ee="array":v!==void 0&&v.$$typeof===t?(ee="<"+(W(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=qu(v,T,j,q,G);if(te==null)return te;if(H){var Ce=T.children;if(Ce!==void 0)if(L)if(oo(Ce)){for(var Vt=0;Vt<Ce.length;Vt++)si(Ce[Vt],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 si(Ce,v)}if(Et.call(T,"key")){var St=W(v),de=Object.keys(T).filter(function(ed){return ed!=="key"}),co=de.length>0?"{key: someKey, "+de.join(": ..., ")+": ...}":"{key: someKey}";if(!ii[St+co]){var Ju=de.length>0?"{"+de.join(": ..., ")+": ...}":"{}";x(`A props object containing a "key" prop is being spread into JSX:
17
+ Check the top-level render call using <`+j+">.")}return T}}function oi(v,T){{if(!v._store||v._store.validated||v.key!=null)return;v._store.validated=!0;var j=Gu(T);if(ri[j])return;ri[j]=!0;var L="";v&&v._owner&&v._owner!==so.current&&(L=" It was passed a child from "+W(v._owner.type)+"."),zt(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,L),zt(null)}}function si(v,T){{if(typeof v!="object")return;if(oo(v))for(var j=0;j<v.length;j++){var L=v[j];ao(L)&&oi(L,T)}else if(ao(v))v._store&&(v._store.validated=!0);else if(v){var q=y(v);if(typeof q=="function"&&q!==v.entries)for(var G=q.call(v),H;!(H=G.next()).done;)ao(H.value)&&oi(H.value,T)}}}function Qu(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===p))j=T.propTypes;else return;if(j){var L=W(T);Lu(j,v.props,"prop",L,v)}else if(T.PropTypes!==void 0&&!io){io=!0;var q=W(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 Ku(v){{for(var T=Object.keys(v.props),j=0;j<T.length;j++){var L=T[j];if(L!=="children"&&L!=="key"){zt(v),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",L),zt(null);break}}v.ref!==null&&(zt(v),x("Invalid attribute `ref` supplied to `React.Fragment`."),zt(null))}}var ii={};function ai(v,T,j,L,q,G){{var H=M(v);if(!H){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=Vu();ae?B+=ae:B+=ni();var ee;v===null?ee="null":oo(v)?ee="array":v!==void 0&&v.$$typeof===t?(ee="<"+(W(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=zu(v,T,j,q,G);if(te==null)return te;if(H){var Ce=T.children;if(Ce!==void 0)if(L)if(oo(Ce)){for(var Vt=0;Vt<Ce.length;Vt++)si(Ce[Vt],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 si(Ce,v)}if(Et.call(T,"key")){var St=W(v),de=Object.keys(T).filter(function(td){return td!=="key"}),co=de.length>0?"{key: someKey, "+de.join(": ..., ")+": ...}":"{key: someKey}";if(!ii[St+co]){var ed=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} />`,co,St,Ju,St),ii[St+co]=!0}}return v===r?Qu(te):Gu(te),te}}function Ku(v,T,j){return ai(v,T,j,!0)}function Yu(v,T,j){return ai(v,T,j,!1)}var Zu=Yu,Xu=Ku;xn.Fragment=r,xn.jsx=Zu,xn.jsxs=Xu}(),xn}Na.exports=ld();var l=Na.exports;const Ma=_.createContext(null),$a=({module:e,children:t})=>l.jsx(Ma.Provider,{value:e,children:t});$a.displayName="PAEModule";const Mn=()=>{const e=_.useContext(Ma);if(!e)throw new Error("Module metadata was not setup yet !!");return e};function ss(){if(!window[Tn])throw new Error("PAE Global state not found.");return window[Tn]}const is=()=>{const{authUser:{applications:e}}=ss();return e||[]},Fa=e=>is().filter(t=>t.isGlobal||t.name===e).flatMap(t=>t.operations),Ba=()=>{const{application:e}=Mn();return _.useMemo(()=>Fa(e),[e])},Ua=e=>(...t)=>t.every(n=>e.some(r=>r.name===n)),Br=()=>{const[{authUser:e}]=Fr(),t=Ba();return{authUser:e,hasAccess:_.useMemo(()=>Ua(t),[t])}},ud=()=>{const{authUser:e}=Br();return!e||e.id==="anon"},Ha=()=>{var e;return((e=Mn().ui)==null?void 0:e.customProps)??{}},as=e=>{const t=mn();return _.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])},Wa=e=>{var t,n;return((n=(t=as(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 u=a??c;if(t==="only-base-path")return u;const d=dd(`${e.baseUrl}/${u}`);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=>mr.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)},qa=e=>e.type==="app",vd=e=>e.modules.some(qa)&&e.route&&e.route!=="/",za=e=>{const{catalog:t}=ss();return Ur(t.filter(n=>n.application===e))},Ur=(e=[])=>e.find(t=>{var n;return qa(t)&&((n=t.ui)==null?void 0:n.route)!=="/"}),Va=()=>{const e=mn();return _.useMemo(()=>is().map(n=>{var s,i,a;const r=bd(e,n.name),o=Ur(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)||[],Ga=()=>{const e=Va();return _.useMemo(()=>e.filter(vd),[e])},Qa=e=>_.useMemo(()=>e?za(e.name):void 0,[e]),ht=new Map,wd=e=>{try{const{catalog:t}=ss(),n=t.find(r=>r.name===e);return n!=null&&n.version?`${e}@${n.version}`:e}catch{return e}},Hr=e=>{const[t,n]=_.useState(null);return _.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 Ka=e=>{const t=typeof e=="string"?za(e):Ur(e==null?void 0:e.modules),n=Hr(t==null?void 0:t.name);return n==null?void 0:n.icon},Ya=e=>{const t=Ur(e==null?void 0:e.modules),n=Hr(t==null?void 0:t.name),[r,o]=_.useState(!1),[s,i]=_.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 p=Za((e==null?void 0:e.operations)||[]),h=(await a()).map(g=>{const{operations:w,items:f,path:y}=g;if(w!=null&&w.length&&!p(w))return null;const C=(f||[]).filter(x=>{var S;return!((S=x==null?void 0:x.operations)!=null&&S.length)||p(x.operations)});return!C.length&&!y?null:{...g,items:C}}).filter(Boolean);return o(!1),h},u=async()=>{const p=await c();e&&i(h=>({...h,[e.name]:p}))};_.useEffect(()=>{u()},[n==null?void 0:n.menu]);const d=_.useMemo(()=>e?s[e.name]||[]:[],[s,e]);return{loading:r,menu:d}},Za=e=>t=>t.every(n=>e.some(r=>r.name===n));/**
22
+ <%s key={someKey} {...props} />`,co,St,ed,St),ii[St+co]=!0}}return v===r?Ku(te):Qu(te),te}}function Yu(v,T,j){return ai(v,T,j,!0)}function Zu(v,T,j){return ai(v,T,j,!1)}var Xu=Zu,Ju=Yu;xn.Fragment=r,xn.jsx=Xu,xn.jsxs=Ju}(),xn}Na.exports=ud();var l=Na.exports;const Ma=_.createContext(null),$a=({module:e,children:t})=>l.jsx(Ma.Provider,{value:e,children:t});$a.displayName="PAEModule";const Mn=()=>{const e=_.useContext(Ma);if(!e)throw new Error("Module metadata was not setup yet !!");return e};function ss(){if(!window[Tn])throw new Error("PAE Global state not found.");return window[Tn]}const is=()=>{const{authUser:{applications:e}}=ss();return e||[]},Fa=e=>is().filter(t=>t.isGlobal||t.name===e).flatMap(t=>t.operations),Ba=()=>{const{application:e}=Mn();return _.useMemo(()=>Fa(e),[e])},Ua=e=>(...t)=>t.every(n=>e.some(r=>r.name===n)),Br=()=>{const[{authUser:e}]=Fr(),t=Ba();return{authUser:e,hasAccess:_.useMemo(()=>Ua(t),[t])}},dd=()=>{const{authUser:e}=Br();return!e||e.id==="anon"},Ha=()=>{var e;return((e=Mn().ui)==null?void 0:e.customProps)??{}},as=e=>{const t=mn();return _.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])},Wa=e=>{var t,n;return((n=(t=as(e))==null?void 0:t.ui)==null?void 0:n.customProps)??{}},fd=e=>e.replace(/\/+/g,"/"),hd=(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 u=a??c;if(t==="only-base-path")return u;const d=fd(`${e.baseUrl}/${u}`);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 pd(){window.open(rd,"_self")}const md=e=>mr.navigateToUrl(e),gd=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,}$/,yd=e=>gd.test(e),vd=(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)},qa=e=>e.type==="app",bd=e=>e.modules.some(qa)&&e.route&&e.route!=="/",za=e=>{const{catalog:t}=ss();return Ur(t.filter(n=>n.application===e))},Ur=(e=[])=>e.find(t=>{var n;return qa(t)&&((n=t.ui)==null?void 0:n.route)!=="/"}),Va=()=>{const e=mn();return _.useMemo(()=>is().map(n=>{var s,i,a;const r=wd(e,n.name),o=Ur(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])},wd=(e,t)=>e.filter(n=>n.application===t)||[],Ga=()=>{const e=Va();return _.useMemo(()=>e.filter(bd),[e])},Qa=e=>_.useMemo(()=>e?za(e.name):void 0,[e]),ht=new Map,Cd=e=>{try{const{catalog:t}=ss(),n=t.find(r=>r.name===e);return n!=null&&n.version?`${e}@${n.version}`:e}catch{return e}},Hr=e=>{const[t,n]=_.useState(null);return _.useEffect(()=>{(async()=>{if(!e){n(null);return}try{const o=Cd(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},xd=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:xd,getModuleCacheSize:()=>ht.size,getModuleCacheKeys:()=>Array.from(ht.keys())});const Ka=e=>{const t=typeof e=="string"?za(e):Ur(e==null?void 0:e.modules),n=Hr(t==null?void 0:t.name);return n==null?void 0:n.icon},Ya=e=>{const t=Ur(e==null?void 0:e.modules),n=Hr(t==null?void 0:t.name),[r,o]=_.useState(!1),[s,i]=_.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 p=Za((e==null?void 0:e.operations)||[]),h=(await a()).map(g=>{const{operations:w,items:f,path:y}=g;if(w!=null&&w.length&&!p(w))return null;const C=(f||[]).filter(x=>{var S;return!((S=x==null?void 0:x.operations)!=null&&S.length)||p(x.operations)});return!C.length&&!y?null:{...g,items:C}}).filter(Boolean);return o(!1),h},u=async()=>{const p=await c();e&&i(h=>({...h,[e.name]:p}))};_.useEffect(()=>{u()},[n==null?void 0:n.menu]);const d=_.useMemo(()=>e?s[e.name]||[]:[],[s,e]);return{loading:r,menu:d}},Za=e=>t=>t.every(n=>e.some(r=>r.name===n));/**
23
23
  * @license lucide-react v0.511.0 - ISC
24
24
  *
25
25
  * This source code is licensed under the ISC license.
26
26
  * See the LICENSE file in the root directory of this source tree.
27
- */const xd=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ed=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),ui=e=>{const t=Ed(e);return t.charAt(0).toUpperCase()+t.slice(1)},Xa=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Sd=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
27
+ */const Ed=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Sd=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),ui=e=>{const t=Sd(e);return t.charAt(0).toUpperCase()+t.slice(1)},Xa=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),_d=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
28
28
  * @license lucide-react v0.511.0 - ISC
29
29
  *
30
30
  * This source code is licensed under the ISC license.
31
31
  * See the LICENSE file in the root directory of this source tree.
32
- */var _d={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"};/**
32
+ */var Rd={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"};/**
33
33
  * @license lucide-react v0.511.0 - ISC
34
34
  *
35
35
  * This source code is licensed under the ISC license.
36
36
  * See the LICENSE file in the root directory of this source tree.
37
- */const Rd=_.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},c)=>_.createElement("svg",{ref:c,..._d,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Xa("lucide",o),...!s&&!Sd(a)&&{"aria-hidden":"true"},...a},[...i.map(([u,d])=>_.createElement(u,d)),...Array.isArray(s)?s:[s]]));/**
37
+ */const Td=_.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},c)=>_.createElement("svg",{ref:c,...Rd,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Xa("lucide",o),...!s&&!_d(a)&&{"aria-hidden":"true"},...a},[...i.map(([u,d])=>_.createElement(u,d)),...Array.isArray(s)?s:[s]]));/**
38
38
  * @license lucide-react v0.511.0 - ISC
39
39
  *
40
40
  * This source code is licensed under the ISC license.
41
41
  * See the LICENSE file in the root directory of this source tree.
42
- */const Td=(e,t)=>{const n=_.forwardRef(({className:r,...o},s)=>_.createElement(Rd,{ref:s,iconNode:t,className:Xa(`lucide-${xd(ui(e))}`,`lucide-${e}`,r),...o}));return n.displayName=ui(e),n};/**
42
+ */const Ad=(e,t)=>{const n=_.forwardRef(({className:r,...o},s)=>_.createElement(Td,{ref:s,iconNode:t,className:Xa(`lucide-${Ed(ui(e))}`,`lucide-${e}`,r),...o}));return n.displayName=ui(e),n};/**
43
43
  * @license lucide-react v0.511.0 - ISC
44
44
  *
45
45
  * This source code is licensed under the ISC license.
46
46
  * See the LICENSE file in the root directory of this source tree.
47
- */const Ad=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M8 11h8",key:"vwpz6n"}],["path",{d:"M8 7h6",key:"1f0q6e"}]],Pd=Td("book-text",Ad),Ja=e=>{const t=mn();return _.useMemo(()=>{if(!e)return[];const n=t.filter(o=>o.type==="documentation"&&o.application===e.name),r=Za(e.operations||[]);return n.filter(o=>{var s,i;return(i=(s=o.authorization)==null?void 0:s.operations)!=null&&i.length?r(o.authorization.operations):!0}).map(o=>{var s;return{label:o.displayName,externalUrl:o.baseUrl,target:"_blank",align:"bottom",Icon:_.createElement(Pd,{size:20}),operations:((s=o.authorization)==null?void 0:s.operations)||[]}})},[t,e])},Od=e=>{const{menu:t,loading:n}=Ya(e),r=Ja(e),o=_.useMemo(()=>[...t,...r],[t,r]);return{loading:n,menu:o}};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 cs(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 Yn(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function di(e){return Object.prototype.toString.call(e)==="[object Object]"}var jd=cs(function(t,n,r){var o=t(n),s=t(r);return o>s?-1:o<s?1:0}),Dd=cs(function(t,n,r){var o={},s;n=n||{},r=r||{};for(s in n)Yn(s,n)&&(o[s]=Yn(s,r)?t(s,n[s],r[s]):n[s]);for(s in r)Yn(s,r)&&!Yn(s,o)&&(o[s]=r[s]);return o}),kd=cs(function e(t,n,r){return Dd(function(o,s,i){return di(s)&&di(i)?e(t,s,i):t(o,s,i)},n,r)}),Ld=et(function(t,n){return kd(function(r,o,s){return s},t,n)}),Id=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 ls=()=>{const e=Ia(),t=Ga();return _.useMemo(()=>Nd(e,t),[e,t])},Nd=(e,t)=>Id([jd(Md)],t).find(n=>n.route&&e.startsWith(n.route)),Md=e=>{var t;return((t=e==null?void 0:e.route)==null?void 0:t.length)||-1},ec=()=>{var e;return(e=ls())==null?void 0:e.name},$d=()=>{const e=ls(),t=Qa(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},us=(e,t)=>{const n=tc(e,!!t)??t;return _.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(Fd(`${n}${r}`),{...o,headers:i})},[n])},Fd=e=>e.replace(/\/+/g,"/"),Bd=(e,t)=>n=>({timestamp:new Date(new Date().toUTCString()).toISOString(),module:t.name,moduleVersion:t.version,application:t.application,user:e.username,...n}),Ud=(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(Bd(t,n)))});if(!o.ok)throw new Error(`Error publishing habits event ${o.statusText}`)},Hd="@bluealba/pae-habits-service",nc=()=>{const{authUser:e}=Br(),t=Mn(),n=us(Hd);return _.useCallback(Ud(n,e,t),[n,e,t])},Wd=()=>{const e=nc();return _.useCallback((t,n)=>e([{name:t,data:n}]),[e])},rc=e=>{const t=Mn(),n=window[ka],[r,o]=_.useState(null);return _.useEffect(()=>n.defineExtensionPoint(t,e,s=>{o(()=>s)}),[o]),r},oc=(e,t,n)=>{_.useEffect(()=>window[ka].setExtensionPoint(e,t,n),[])},sc=(e,t)=>{_.useEffect(()=>(window.addEventListener(e,t),()=>window.removeEventListener(e,t)),[e,t])},ic=e=>{const{cssCustomizationLoadingDelay:t=1e3}=Ha();_.useEffect(()=>{if(!e)return;const n=document.createElement("style");return setTimeout(()=>{n.innerHTML=e,document.head.append(n)},t),()=>n&&n.remove()},[e])},qd=e=>{var t;return(t=e.split(/[#?]/)[0].split(".").pop())==null?void 0:t.trim()},zd={woff2:"woff2",woff:"woff",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg"},Vd=e=>{const t=qd(e);return t?zd[t]:void 0},Gd=(e,t)=>{const n=t??Vd(e);return n?`format(${n})`:""};function ac(e){const[t,n]=_.useState(!1);return _.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:u,format:d})=>`
47
+ */const Pd=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M8 11h8",key:"vwpz6n"}],["path",{d:"M8 7h6",key:"1f0q6e"}]],Od=Ad("book-text",Pd);function Ja(e){return[...e].sort((t,n)=>t.displayOrder==null&&n.displayOrder==null?0:t.displayOrder==null?1:n.displayOrder==null?-1:n.displayOrder-t.displayOrder)}const ec=e=>{const t=mn();return _.useMemo(()=>{if(!e)return[];const n=t.filter(o=>o.type==="documentation"&&o.application===e.name),r=Za(e.operations||[]);return Ja(n.filter(o=>{var s,i;return(i=(s=o.authorization)==null?void 0:s.operations)!=null&&i.length?r(o.authorization.operations):!0}).map(o=>{var s;return{label:o.displayName,externalUrl:o.baseUrl,target:"_blank",align:"bottom",Icon:_.createElement(Od,{size:20}),operations:((s=o.authorization)==null?void 0:s.operations)||[],displayOrder:o.displayOrder}}))},[t,e])},jd=e=>{const{menu:t,loading:n}=Ya(e),r=ec(e),o=_.useMemo(()=>[...t,...r],[t,r]);return{loading:n,menu:o}};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 cs(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 Yn(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function di(e){return Object.prototype.toString.call(e)==="[object Object]"}var Dd=cs(function(t,n,r){var o=t(n),s=t(r);return o>s?-1:o<s?1:0}),kd=cs(function(t,n,r){var o={},s;n=n||{},r=r||{};for(s in n)Yn(s,n)&&(o[s]=Yn(s,r)?t(s,n[s],r[s]):n[s]);for(s in r)Yn(s,r)&&!Yn(s,o)&&(o[s]=r[s]);return o}),Ld=cs(function e(t,n,r){return kd(function(o,s,i){return di(s)&&di(i)?e(t,s,i):t(o,s,i)},n,r)}),Id=et(function(t,n){return Ld(function(r,o,s){return s},t,n)}),Nd=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 ls=()=>{const e=Ia(),t=Ga();return _.useMemo(()=>Md(e,t),[e,t])},Md=(e,t)=>Nd([Dd($d)],t).find(n=>n.route&&e.startsWith(n.route)),$d=e=>{var t;return((t=e==null?void 0:e.route)==null?void 0:t.length)||-1},tc=()=>{var e;return(e=ls())==null?void 0:e.name},Fd=()=>{const e=ls(),t=Qa(e);return Hr(t==null?void 0:t.name)},nc=(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},us=(e,t)=>{const n=nc(e,!!t)??t;return _.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(Bd(`${n}${r}`),{...o,headers:i})},[n])},Bd=e=>e.replace(/\/+/g,"/"),Ud=(e,t)=>n=>({timestamp:new Date(new Date().toUTCString()).toISOString(),module:t.name,moduleVersion:t.version,application:t.application,user:e.username,...n}),Hd=(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(Ud(t,n)))});if(!o.ok)throw new Error(`Error publishing habits event ${o.statusText}`)},Wd="@bluealba/pae-habits-service",rc=()=>{const{authUser:e}=Br(),t=Mn(),n=us(Wd);return _.useCallback(Hd(n,e,t),[n,e,t])},qd=()=>{const e=rc();return _.useCallback((t,n)=>e([{name:t,data:n}]),[e])},oc=e=>{const t=Mn(),n=window[ka],[r,o]=_.useState(null);return _.useEffect(()=>n.defineExtensionPoint(t,e,s=>{o(()=>s)}),[o]),r},sc=(e,t,n)=>{_.useEffect(()=>window[ka].setExtensionPoint(e,t,n),[])},ic=(e,t)=>{_.useEffect(()=>(window.addEventListener(e,t),()=>window.removeEventListener(e,t)),[e,t])},ac=e=>{const{cssCustomizationLoadingDelay:t=1e3}=Ha();_.useEffect(()=>{if(!e)return;const n=document.createElement("style");return setTimeout(()=>{n.innerHTML=e,document.head.append(n)},t),()=>n&&n.remove()},[e])},zd=e=>{var t;return(t=e.split(/[#?]/)[0].split(".").pop())==null?void 0:t.trim()},Vd={woff2:"woff2",woff:"woff",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg"},Gd=e=>{const t=zd(e);return t?Vd[t]:void 0},Qd=(e,t)=>{const n=t??Gd(e);return n?`format(${n})`:""};function cc(e){const[t,n]=_.useState(!1);return _.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:u,format:d})=>`
48
48
  @font-face {
49
49
  font-family: "${i}";
50
- src: url("${c}") ${Gd(c,d)};
50
+ src: url("${c}") ${Qd(c,d)};
51
51
  font-weight: ${u};
52
52
  font-style: normal;
53
53
  }
54
54
  `)).join(`
55
- `);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]),_.useEffect(()=>{!t&&!(e!=null&&e.length)&&n(!0)},[e,t]),{fontsLoaded:t}}var Ro=function(e,t){return Ro=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])},Ro(e,t)};function $n(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ro(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Le=function(){return Le=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},Le.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 To(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 Ao(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 Rr(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 Ve(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 uo=lc(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
55
+ `);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]),_.useEffect(()=>{!t&&!(e!=null&&e.length)&&n(!0)},[e,t]),{fontsLoaded:t}}var Ro=function(e,t){return Ro=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])},Ro(e,t)};function $n(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ro(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Le=function(){return Le=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},Le.apply(this,arguments)};function lc(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 To(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 Ao(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 Rr(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 Ve(e){return typeof e=="function"}function uc(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 uo=uc(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
56
56
  `+n.map(function(r,o){return o+1+") "+r.toString()}).join(`
57
- `):"",this.name="UnsubscriptionError",this.errors=n}});function Po(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Wr=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=To(i),c=a.next();!c.done;c=a.next()){var u=c.value;u.remove(this)}}catch(f){t={error:f}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else i.remove(this);var d=this.initialTeardown;if(Ve(d))try{d()}catch(f){s=f instanceof uo?f.errors:[f]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var h=To(p),g=h.next();!g.done;g=h.next()){var w=g.value;try{fi(w)}catch(f){s=s??[],f instanceof uo?s=Rr(Rr([],Ao(s)),Ao(f.errors)):s.push(f)}}}catch(f){r={error:f}}finally{try{g&&!g.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}}if(s)throw new uo(s)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)fi(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)&&Po(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Po(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),uc=Wr.EMPTY;function dc(e){return e instanceof Wr||e&&"closed"in e&&Ve(e.remove)&&Ve(e.add)&&Ve(e.unsubscribe)}function fi(e){Ve(e)?e():e.unsubscribe()}var Qd={Promise:void 0},Kd={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,Rr([e,t],Ao(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Yd(e){Kd.setTimeout(function(){throw e})}function hi(){}function gr(e){e()}var fc=function(e){$n(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=Jd,r}return t.create=function(n,r,o){return new Oo(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}(Wr),Zd=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){Zn(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){Zn(r)}else Zn(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Zn(n)}},e}(),Oo=function(e){$n(t,e);function t(n,r,o){var s=e.call(this)||this,i;return Ve(n)||!n?i={next:n??void 0,error:r??void 0,complete:o??void 0}:i=n,s.destination=new Zd(i),s}return t}(fc);function Zn(e){Yd(e)}function Xd(e){throw e}var Jd={closed:!0,next:hi,error:Xd,complete:hi},ef=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function tf(e){return e}function nf(e){return e.length===0?tf:e.length===1?e[0]:function(n){return e.reduce(function(r,o){return o(r)},n)}}var pi=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=of(t)?t:new Oo(t,n,r);return gr(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=mi(n),new n(function(o,s){var i=new Oo({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[ef]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return nf(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=mi(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 mi(e){var t;return(t=e??Qd.Promise)!==null&&t!==void 0?t:Promise}function rf(e){return e&&Ve(e.next)&&Ve(e.error)&&Ve(e.complete)}function of(e){return e&&e instanceof fc||rf(e)&&dc(e)}var sf=lc(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),hc=function(e){$n(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 gi(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new sf},t.prototype.next=function(n){var r=this;gr(function(){var o,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var i=To(r.currentObservers),a=i.next();!a.done;a=i.next()){var c=a.value;c.next(n)}}catch(u){o={error:u}}finally{try{a&&!a.done&&(s=i.return)&&s.call(i)}finally{if(o)throw o.error}}}})},t.prototype.error=function(n){var r=this;gr(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;gr(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 Wr(function(){r.currentObservers=null,Po(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 pi;return n.source=this,n},t.create=function(n,r){return new gi(n,r)},t}(pi),gi=function(e){$n(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),af=function(e){$n(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 cf=e=>{const{fontsLoaded:t}=ac(e.fonts);ic(e.styleSheet);const n=()=>{const r=new af(!0);window[So]=r};_.useEffect(()=>{t&&window[So].next(!1)},[t]),_.useEffect(()=>{n()},[])},lf=()=>{const e=window[So];return La(e,e.getValue()??void 0)},jo="theme",yi=()=>document.documentElement.dataset[jo]==="dark"?"dark":"light",uf=()=>{const[e,t]=_.useState(yi());return _.useEffect(()=>{const n=document.documentElement,r=()=>t(yi),o=new MutationObserver(s=>{for(const i of s)i.type==="attributes"&&i.attributeName===`data-${jo}`&&r()});return o.observe(n,{attributes:!0,attributeFilter:[`data-${jo}`]}),r(),()=>{o.disconnect()}},[]),e},df=e=>e!==void 0,ff=e=>e!==!0;let hf={data:""},pf=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||hf,mf=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,gf=/\/\*[^]*?\*\/| +/g,vi=/\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},He={},pc=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+pc(e[n]);return t}return e},yf=(e,t,n,r,o)=>{let s=pc(e),i=He[s]||(He[s]=(c=>{let u=0,d=11;for(;u<c.length;)d=101*d+c.charCodeAt(u++)>>>0;return"go"+d})(s));if(!He[i]){let c=s!==e?e:(u=>{let d,p,h=[{}];for(;d=mf.exec(u.replace(gf,""));)d[4]?h.shift():d[3]?(p=d[3].replace(vi," ").trim(),h.unshift(h[0][p]=h[0][p]||{})):h[0][d[1]]=d[2].replace(vi," ").trim();return h[0]})(e);He[i]=tt(o?{["@keyframes "+i]:c}:c,n?"":"."+i)}let a=n&&He.g?He.g:null;return n&&(He.g=He[i]),((c,u,d,p)=>{p?u.data=u.data.replace(p,c):u.data.indexOf(c)===-1&&(u.data=d?c+u.data:u.data+c)})(He[i],t,r,a),i},vf=(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 yf(n.unshift?n.raw?vf(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,pf(t.target),t.g,t.o,t.k)}let mc,Do,ko;qr.bind({g:1});let Qe=qr.bind({k:1});function bf(e,t,n,r){tt.p=t,mc=e,Do=n,ko=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:Do&&Do()},a),n.o=/ *go\d+/.test(c),a.className=qr.apply(n,r)+(c?" "+c:"");let u=e;return e[0]&&(u=a.as||e,delete a.as),ko&&u[0]&&ko(a),mc(u,a)}return o}}var wf=e=>typeof e=="function",Tr=(e,t)=>wf(e)?e(t):e,Cf=(()=>{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}})(),xf=20,yr=new Map,Ef=1e3,bi=e=>{if(yr.has(e))return;let t=setTimeout(()=>{yr.delete(e),Bt({type:4,toastId:e})},Ef);yr.set(e,t)},Sf=e=>{let t=yr.get(e);t&&clearTimeout(t)},Lo=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,xf)};case 1:return t.toast.id&&Sf(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)?Lo(e,{type:1,toast:n}):Lo(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?bi(r):e.toasts.forEach(s=>{bi(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}))}}},vr=[],br={toasts:[],pausedAt:void 0},Bt=e=>{br=Lo(br,e),vr.forEach(t=>{t(br)})},_f={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Rf=(e={})=>{let[t,n]=_.useState(br);_.useEffect(()=>(vr.push(n),()=>{let o=vr.indexOf(n);o>-1&&vr.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)||_f[o.type],style:{...e.style,...(i=e[o.type])==null?void 0:i.style,...o.style}}});return{...t,toasts:r}},Tf=(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)||Cf()}),Fn=e=>(t,n)=>{let r=Tf(t,e,n);return Bt({type:2,toast:r}),r.id},be=(e,t)=>Fn("blank")(e,t);be.error=Fn("error");be.success=Fn("success");be.loading=Fn("loading");be.custom=Fn("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(Tr(t.success,o),{id:r,...n,...n==null?void 0:n.success}),o)).catch(o=>{be.error(Tr(t.error,o),{id:r,...n,...n==null?void 0:n.error})}),e};var Af=(e,t)=>{Bt({type:1,toast:{id:e,height:t}})},Pf=()=>{Bt({type:5,time:Date.now()})},Of=e=>{let{toasts:t,pausedAt:n}=Rf(e);_.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=_.useCallback(()=>{n&&Bt({type:6,time:Date.now()})},[n]),o=_.useCallback((s,i)=>{let{reverseOrder:a=!1,gutter:c=8,defaultPosition:u}=i||{},d=t.filter(g=>(g.position||u)===(s.position||u)&&g.height),p=d.findIndex(g=>g.id===s.id),h=d.filter((g,w)=>w<p&&g.visible).length;return d.filter(g=>g.visible).slice(...a?[h+1]:[0,h]).reduce((g,w)=>g+(w.height||0)+c,0)},[t]);return{toasts:t,handlers:{updateHeight:Af,startPause:Pf,endPause:r,calculateOffset:o}}},jf=Qe`
57
+ `):"",this.name="UnsubscriptionError",this.errors=n}});function Po(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Wr=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=To(i),c=a.next();!c.done;c=a.next()){var u=c.value;u.remove(this)}}catch(f){t={error:f}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else i.remove(this);var d=this.initialTeardown;if(Ve(d))try{d()}catch(f){s=f instanceof uo?f.errors:[f]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var h=To(p),g=h.next();!g.done;g=h.next()){var w=g.value;try{fi(w)}catch(f){s=s??[],f instanceof uo?s=Rr(Rr([],Ao(s)),Ao(f.errors)):s.push(f)}}}catch(f){r={error:f}}finally{try{g&&!g.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}}if(s)throw new uo(s)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)fi(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)&&Po(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Po(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),dc=Wr.EMPTY;function fc(e){return e instanceof Wr||e&&"closed"in e&&Ve(e.remove)&&Ve(e.add)&&Ve(e.unsubscribe)}function fi(e){Ve(e)?e():e.unsubscribe()}var Kd={Promise:void 0},Yd={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,Rr([e,t],Ao(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Zd(e){Yd.setTimeout(function(){throw e})}function hi(){}function gr(e){e()}var hc=function(e){$n(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,fc(n)&&n.add(r)):r.destination=ef,r}return t.create=function(n,r,o){return new Oo(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}(Wr),Xd=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){Zn(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){Zn(r)}else Zn(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Zn(n)}},e}(),Oo=function(e){$n(t,e);function t(n,r,o){var s=e.call(this)||this,i;return Ve(n)||!n?i={next:n??void 0,error:r??void 0,complete:o??void 0}:i=n,s.destination=new Xd(i),s}return t}(hc);function Zn(e){Zd(e)}function Jd(e){throw e}var ef={closed:!0,next:hi,error:Jd,complete:hi},tf=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function nf(e){return e}function rf(e){return e.length===0?nf:e.length===1?e[0]:function(n){return e.reduce(function(r,o){return o(r)},n)}}var pi=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var o=this,s=sf(t)?t:new Oo(t,n,r);return gr(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=mi(n),new n(function(o,s){var i=new Oo({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[tf]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return rf(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=mi(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 mi(e){var t;return(t=e??Kd.Promise)!==null&&t!==void 0?t:Promise}function of(e){return e&&Ve(e.next)&&Ve(e.error)&&Ve(e.complete)}function sf(e){return e&&e instanceof hc||of(e)&&fc(e)}var af=uc(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),pc=function(e){$n(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 gi(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new af},t.prototype.next=function(n){var r=this;gr(function(){var o,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var i=To(r.currentObservers),a=i.next();!a.done;a=i.next()){var c=a.value;c.next(n)}}catch(u){o={error:u}}finally{try{a&&!a.done&&(s=i.return)&&s.call(i)}finally{if(o)throw o.error}}}})},t.prototype.error=function(n){var r=this;gr(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;gr(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?dc:(this.currentObservers=null,a.push(n),new Wr(function(){r.currentObservers=null,Po(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 pi;return n.source=this,n},t.create=function(n,r){return new gi(n,r)},t}(pi),gi=function(e){$n(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:dc},t}(pc),cf=function(e){$n(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}(pc);const lf=e=>{const{fontsLoaded:t}=cc(e.fonts);ac(e.styleSheet);const n=()=>{const r=new cf(!0);window[So]=r};_.useEffect(()=>{t&&window[So].next(!1)},[t]),_.useEffect(()=>{n()},[])},uf=()=>{const e=window[So];return La(e,e.getValue()??void 0)},jo="theme",yi=()=>document.documentElement.dataset[jo]==="dark"?"dark":"light",df=()=>{const[e,t]=_.useState(yi());return _.useEffect(()=>{const n=document.documentElement,r=()=>t(yi),o=new MutationObserver(s=>{for(const i of s)i.type==="attributes"&&i.attributeName===`data-${jo}`&&r()});return o.observe(n,{attributes:!0,attributeFilter:[`data-${jo}`]}),r(),()=>{o.disconnect()}},[]),e},ff=e=>e!==void 0,hf=e=>e!==!0;let pf={data:""},mf=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||pf,gf=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,yf=/\/\*[^]*?\*\/| +/g,vi=/\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},He={},mc=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+mc(e[n]);return t}return e},vf=(e,t,n,r,o)=>{let s=mc(e),i=He[s]||(He[s]=(c=>{let u=0,d=11;for(;u<c.length;)d=101*d+c.charCodeAt(u++)>>>0;return"go"+d})(s));if(!He[i]){let c=s!==e?e:(u=>{let d,p,h=[{}];for(;d=gf.exec(u.replace(yf,""));)d[4]?h.shift():d[3]?(p=d[3].replace(vi," ").trim(),h.unshift(h[0][p]=h[0][p]||{})):h[0][d[1]]=d[2].replace(vi," ").trim();return h[0]})(e);He[i]=tt(o?{["@keyframes "+i]:c}:c,n?"":"."+i)}let a=n&&He.g?He.g:null;return n&&(He.g=He[i]),((c,u,d,p)=>{p?u.data=u.data.replace(p,c):u.data.indexOf(c)===-1&&(u.data=d?c+u.data:u.data+c)})(He[i],t,r,a),i},bf=(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 vf(n.unshift?n.raw?bf(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,mf(t.target),t.g,t.o,t.k)}let gc,Do,ko;qr.bind({g:1});let Qe=qr.bind({k:1});function wf(e,t,n,r){tt.p=t,gc=e,Do=n,ko=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:Do&&Do()},a),n.o=/ *go\d+/.test(c),a.className=qr.apply(n,r)+(c?" "+c:"");let u=e;return e[0]&&(u=a.as||e,delete a.as),ko&&u[0]&&ko(a),gc(u,a)}return o}}var Cf=e=>typeof e=="function",Tr=(e,t)=>Cf(e)?e(t):e,xf=(()=>{let e=0;return()=>(++e).toString()})(),yc=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Ef=20,yr=new Map,Sf=1e3,bi=e=>{if(yr.has(e))return;let t=setTimeout(()=>{yr.delete(e),Bt({type:4,toastId:e})},Sf);yr.set(e,t)},_f=e=>{let t=yr.get(e);t&&clearTimeout(t)},Lo=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Ef)};case 1:return t.toast.id&&_f(t.toast.id),{...e,toasts:e.toasts.map(s=>s.id===t.toast.id?{...s,...t.toast}:s)};case 2:let{toast:n}=t;return e.toasts.find(s=>s.id===n.id)?Lo(e,{type:1,toast:n}):Lo(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?bi(r):e.toasts.forEach(s=>{bi(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}))}}},vr=[],br={toasts:[],pausedAt:void 0},Bt=e=>{br=Lo(br,e),vr.forEach(t=>{t(br)})},Rf={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Tf=(e={})=>{let[t,n]=_.useState(br);_.useEffect(()=>(vr.push(n),()=>{let o=vr.indexOf(n);o>-1&&vr.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)||Rf[o.type],style:{...e.style,...(i=e[o.type])==null?void 0:i.style,...o.style}}});return{...t,toasts:r}},Af=(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)||xf()}),Fn=e=>(t,n)=>{let r=Af(t,e,n);return Bt({type:2,toast:r}),r.id},be=(e,t)=>Fn("blank")(e,t);be.error=Fn("error");be.success=Fn("success");be.loading=Fn("loading");be.custom=Fn("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(Tr(t.success,o),{id:r,...n,...n==null?void 0:n.success}),o)).catch(o=>{be.error(Tr(t.error,o),{id:r,...n,...n==null?void 0:n.error})}),e};var Pf=(e,t)=>{Bt({type:1,toast:{id:e,height:t}})},Of=()=>{Bt({type:5,time:Date.now()})},jf=e=>{let{toasts:t,pausedAt:n}=Tf(e);_.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=_.useCallback(()=>{n&&Bt({type:6,time:Date.now()})},[n]),o=_.useCallback((s,i)=>{let{reverseOrder:a=!1,gutter:c=8,defaultPosition:u}=i||{},d=t.filter(g=>(g.position||u)===(s.position||u)&&g.height),p=d.findIndex(g=>g.id===s.id),h=d.filter((g,w)=>w<p&&g.visible).length;return d.filter(g=>g.visible).slice(...a?[h+1]:[0,h]).reduce((g,w)=>g+(w.height||0)+c,0)},[t]);return{toasts:t,handlers:{updateHeight:Pf,startPause:Of,endPause:r,calculateOffset:o}}},Df=Qe`
58
58
  from {
59
59
  transform: scale(0) rotate(45deg);
60
60
  opacity: 0;
@@ -62,7 +62,7 @@ from {
62
62
  to {
63
63
  transform: scale(1) rotate(45deg);
64
64
  opacity: 1;
65
- }`,Df=Qe`
65
+ }`,kf=Qe`
66
66
  from {
67
67
  transform: scale(0);
68
68
  opacity: 0;
@@ -70,7 +70,7 @@ from {
70
70
  to {
71
71
  transform: scale(1);
72
72
  opacity: 1;
73
- }`,kf=Qe`
73
+ }`,Lf=Qe`
74
74
  from {
75
75
  transform: scale(0) rotate(90deg);
76
76
  opacity: 0;
@@ -78,7 +78,7 @@ from {
78
78
  to {
79
79
  transform: scale(1) rotate(90deg);
80
80
  opacity: 1;
81
- }`,Lf=vt("div")`
81
+ }`,If=vt("div")`
82
82
  width: 20px;
83
83
  opacity: 0;
84
84
  height: 20px;
@@ -87,14 +87,14 @@ to {
87
87
  position: relative;
88
88
  transform: rotate(45deg);
89
89
 
90
- animation: ${jf} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
90
+ animation: ${Df} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
91
91
  forwards;
92
92
  animation-delay: 100ms;
93
93
 
94
94
  &:after,
95
95
  &:before {
96
96
  content: '';
97
- animation: ${Df} 0.15s ease-out forwards;
97
+ animation: ${kf} 0.15s ease-out forwards;
98
98
  animation-delay: 150ms;
99
99
  position: absolute;
100
100
  border-radius: 3px;
@@ -107,18 +107,18 @@ to {
107
107
  }
108
108
 
109
109
  &:before {
110
- animation: ${kf} 0.15s ease-out forwards;
110
+ animation: ${Lf} 0.15s ease-out forwards;
111
111
  animation-delay: 180ms;
112
112
  transform: rotate(90deg);
113
113
  }
114
- `,If=Qe`
114
+ `,Nf=Qe`
115
115
  from {
116
116
  transform: rotate(0deg);
117
117
  }
118
118
  to {
119
119
  transform: rotate(360deg);
120
120
  }
121
- `,Nf=vt("div")`
121
+ `,Mf=vt("div")`
122
122
  width: 12px;
123
123
  height: 12px;
124
124
  box-sizing: border-box;
@@ -126,8 +126,8 @@ to {
126
126
  border-radius: 100%;
127
127
  border-color: ${e=>e.secondary||"#e0e0e0"};
128
128
  border-right-color: ${e=>e.primary||"#616161"};
129
- animation: ${If} 1s linear infinite;
130
- `,Mf=Qe`
129
+ animation: ${Nf} 1s linear infinite;
130
+ `,$f=Qe`
131
131
  from {
132
132
  transform: scale(0) rotate(45deg);
133
133
  opacity: 0;
@@ -135,7 +135,7 @@ from {
135
135
  to {
136
136
  transform: scale(1) rotate(45deg);
137
137
  opacity: 1;
138
- }`,$f=Qe`
138
+ }`,Ff=Qe`
139
139
  0% {
140
140
  height: 0;
141
141
  width: 0;
@@ -149,7 +149,7 @@ to {
149
149
  100% {
150
150
  opacity: 1;
151
151
  height: 10px;
152
- }`,Ff=vt("div")`
152
+ }`,Bf=vt("div")`
153
153
  width: 20px;
154
154
  opacity: 0;
155
155
  height: 20px;
@@ -158,13 +158,13 @@ to {
158
158
  position: relative;
159
159
  transform: rotate(45deg);
160
160
 
161
- animation: ${Mf} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
161
+ animation: ${$f} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
162
162
  forwards;
163
163
  animation-delay: 100ms;
164
164
  &:after {
165
165
  content: '';
166
166
  box-sizing: border-box;
167
- animation: ${$f} 0.2s ease-out forwards;
167
+ animation: ${Ff} 0.2s ease-out forwards;
168
168
  opacity: 0;
169
169
  animation-delay: 200ms;
170
170
  position: absolute;
@@ -176,16 +176,16 @@ to {
176
176
  height: 10px;
177
177
  width: 6px;
178
178
  }
179
- `,Bf=vt("div")`
180
- position: absolute;
181
179
  `,Uf=vt("div")`
180
+ position: absolute;
181
+ `,Hf=vt("div")`
182
182
  position: relative;
183
183
  display: flex;
184
184
  justify-content: center;
185
185
  align-items: center;
186
186
  min-width: 20px;
187
187
  min-height: 20px;
188
- `,Hf=Qe`
188
+ `,Wf=Qe`
189
189
  from {
190
190
  transform: scale(0.6);
191
191
  opacity: 0.4;
@@ -193,20 +193,20 @@ from {
193
193
  to {
194
194
  transform: scale(1);
195
195
  opacity: 1;
196
- }`,Wf=vt("div")`
196
+ }`,qf=vt("div")`
197
197
  position: relative;
198
198
  transform: scale(0.6);
199
199
  opacity: 0.4;
200
200
  min-width: 20px;
201
- animation: ${Hf} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
201
+ animation: ${Wf} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
202
202
  forwards;
203
- `,qf=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?m.createElement(Wf,null,t):t:n==="blank"?null:m.createElement(Uf,null,m.createElement(Nf,{...r}),n!=="loading"&&m.createElement(Bf,null,n==="error"?m.createElement(Lf,{...r}):m.createElement(Ff,{...r})))},zf=e=>`
203
+ `,zf=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?m.createElement(qf,null,t):t:n==="blank"?null:m.createElement(Hf,null,m.createElement(Mf,{...r}),n!=="loading"&&m.createElement(Uf,null,n==="error"?m.createElement(If,{...r}):m.createElement(Bf,{...r})))},Vf=e=>`
204
204
  0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
205
205
  100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
206
- `,Vf=e=>`
206
+ `,Gf=e=>`
207
207
  0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
208
208
  100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
209
- `,Gf="0%{opacity:0;} 100%{opacity:1;}",Qf="0%{opacity:1;} 100%{opacity:0;}",Kf=vt("div")`
209
+ `,Qf="0%{opacity:0;} 100%{opacity:1;}",Kf="0%{opacity:1;} 100%{opacity:0;}",Yf=vt("div")`
210
210
  display: flex;
211
211
  align-items: center;
212
212
  background: #fff;
@@ -218,20 +218,20 @@ to {
218
218
  pointer-events: auto;
219
219
  padding: 8px 10px;
220
220
  border-radius: 8px;
221
- `,Yf=vt("div")`
221
+ `,Zf=vt("div")`
222
222
  display: flex;
223
223
  justify-content: center;
224
224
  margin: 4px 10px;
225
225
  color: inherit;
226
226
  flex: 1 1 auto;
227
227
  white-space: pre-line;
228
- `,Zf=(e,t)=>{let n=e.includes("top")?1:-1,[r,o]=gc()?[Gf,Qf]:[zf(n),Vf(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)`}},Xf=m.memo(({toast:e,position:t,style:n,children:r})=>{let o=e.height?Zf(e.position||t||"top-center",e.visible):{opacity:0},s=m.createElement(qf,{toast:e}),i=m.createElement(Yf,{...e.ariaProps},Tr(e.message,e));return m.createElement(Kf,{className:e.className,style:{...o,...n,...e.style}},typeof r=="function"?r({icon:s,message:i}):m.createElement(m.Fragment,null,s,i))});bf(m.createElement);var Jf=({id:e,className:t,style:n,onHeightUpdate:r,children:o})=>{let s=m.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 m.createElement("div",{ref:s,className:t,style:n},o)},eh=(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}},th=qr`
228
+ `,Xf=(e,t)=>{let n=e.includes("top")?1:-1,[r,o]=yc()?[Qf,Kf]:[Vf(n),Gf(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)`}},Jf=m.memo(({toast:e,position:t,style:n,children:r})=>{let o=e.height?Xf(e.position||t||"top-center",e.visible):{opacity:0},s=m.createElement(zf,{toast:e}),i=m.createElement(Zf,{...e.ariaProps},Tr(e.message,e));return m.createElement(Yf,{className:e.className,style:{...o,...n,...e.style}},typeof r=="function"?r({icon:s,message:i}):m.createElement(m.Fragment,null,s,i))});wf(m.createElement);var eh=({id:e,className:t,style:n,onHeightUpdate:r,children:o})=>{let s=m.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 m.createElement("div",{ref:s,className:t,style:n},o)},th=(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:yc()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}},nh=qr`
229
229
  z-index: 9999;
230
230
  > * {
231
231
  pointer-events: auto;
232
232
  }
233
- `,Xn=16,nh=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,containerStyle:s,containerClassName:i})=>{let{toasts:a,handlers:c}=Of(n);return m.createElement("div",{style:{position:"fixed",zIndex:9999,top:Xn,left:Xn,right:Xn,bottom:Xn,pointerEvents:"none",...s},className:i,onMouseEnter:c.startPause,onMouseLeave:c.endPause},a.map(u=>{let d=u.position||t,p=c.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),h=eh(d,p);return m.createElement(Jf,{id:u.id,key:u.id,onHeightUpdate:c.updateHeight,className:u.visible?th:"",style:h},u.type==="custom"?Tr(u.message,u):o?o(u):m.createElement(Xf,{toast:u,position:d}))}))},wi=be;const ds=()=>({notify:_.useCallback((t,n,r)=>{n==="warning"||n==="info"?wi(t,{icon:n==="warning"?"⚠️":"ℹ️",style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}}):wi[n](t,{style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}}),r&&console.error(r)},[])});var gn=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 rh(e,t){return typeof e=="function"?e(t):e}function Io(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 Ci(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==fs(i,t.options))return!1}else if(!An(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 xi(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(!An(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function fs(e,t){return((t==null?void 0:t.queryKeyHashFn)||Mt)(e)}function Mt(e){return JSON.stringify(e,(t,n)=>Mo(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function An(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>An(e[n],t[n])):!1}function No(e,t){if(e===t)return e;const n=Ei(e)&&Ei(t);if(n||Mo(e)&&Mo(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 u=0;u<i;u++){const d=n?u:s[u];(!n&&r.includes(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,c++):(a[d]=No(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&c++)}return o===i&&c===o?e:a}return t}function Ar(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Ei(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Mo(e){if(!Si(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Si(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Si(e){return Object.prototype.toString.call(e)==="[object Object]"}function oh(e){return new Promise(t=>{setTimeout(t,e)})}function $o(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){try{return No(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 No(e,t)}return t}function sh(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function ih(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Pr=Symbol();function vc(e,t){return e.queryFn===Pr&&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===Pr?()=>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,ba,ah=(ba=class extends gn{constructor(){super();k(this,Tt);k(this,nt);k(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,ba),hs=new ah,Jt,rt,en,wa,ch=(wa=class extends gn{constructor(){super();k(this,Jt,!0);k(this,rt);k(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,wa),Or=new ch;function Fo(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function lh(e){return Math.min(1e3*2**e,3e4)}function wc(e){return(e??"online")==="online"?Or.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 fo(e){return e instanceof Cc}function xc(e){let t=!1,n=0,r=!1,o;const s=Fo(),i=f=>{var y;r||(h(new Cc(f)),(y=e.abort)==null||y.call(e))},a=()=>{t=!0},c=()=>{t=!1},u=()=>hs.isFocused()&&(e.networkMode==="always"||Or.isOnline())&&e.canRun(),d=()=>wc(e.networkMode)&&e.canRun(),p=f=>{var y;r||(r=!0,(y=e.onSuccess)==null||y.call(e,f),o==null||o(),s.resolve(f))},h=f=>{var y;r||(r=!0,(y=e.onError)==null||y.call(e,f),o==null||o(),s.reject(f))},g=()=>new Promise(f=>{var y;o=C=>{(r||u())&&f(C)},(y=e.onPause)==null||y.call(e)}).then(()=>{var f;o=void 0,r||(f=e.onContinue)==null||f.call(e)}),w=()=>{if(r)return;let f;const y=n===0?e.initialPromise:void 0;try{f=y??e.fn()}catch(C){f=Promise.reject(C)}Promise.resolve(f).then(p).catch(C=>{var P;if(r)return;const x=e.retry??(Nt?0:3),S=e.retryDelay??lh,E=typeof S=="function"?S(n,C):S,R=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,C);if(t||!R){h(C);return}n++,(P=e.onFail)==null||P.call(e,n,C),oh(E).then(()=>u()?void 0:g()).then(()=>{t?h(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 uh=e=>setTimeout(e,0);function dh(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=uh;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=dh(),At,Ca,Ec=(Ca=class{constructor(){k(this,At)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Io(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,Ca),tn,nn,xe,Pt,se,kn,Ot,Ee,We,xa,fh=(xa=class extends Ec{constructor(t){super();k(this,Ee);k(this,tn);k(this,nn);k(this,xe);k(this,Pt);k(this,se);k(this,kn);k(this,Ot);O(this,Ot,!1),O(this,kn,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,hh(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,kn),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&b(this,xe).remove(this)}setData(t,n){const r=$o(this.state.data,t,this.options);return $(this,Ee,We).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,We).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===Pr||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,We).call(this,{type:"invalidate"})}fetch(t,n){var u,d,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(b(this,se))return b(this,se).continueRetry(),b(this,se).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(g=>g.options.queryFn);h&&this.setOptions(h.options)}Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']");const r=new AbortController,o=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(O(this,Ot,!0),r.signal)})},s=()=>{const h=vc(this.options,n),w=(()=>{const f={client:b(this,Pt),queryKey:this.queryKey,meta:this.meta};return o(f),f})();return O(this,Ot,!1),this.options.persister?this.options.persister(h,w,this):h(w)},a=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:b(this,Pt),state:this.state,fetchFn:s};return o(h),h})();(u=this.options.behavior)==null||u.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,We).call(this,{type:"fetch",meta:(p=a.fetchOptions)==null?void 0:p.meta});const c=h=>{var g,w,f,y;fo(h)&&h.silent||$(this,Ee,We).call(this,{type:"error",error:h}),fo(h)||((w=(g=b(this,xe).config).onError)==null||w.call(g,h,this),(y=(f=b(this,xe).config).onSettled)==null||y.call(f,this.state.data,h,this)),this.scheduleGc()};return O(this,se,xc({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var g,w,f,y;if(h===void 0){console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(C){c(C);return}(w=(g=b(this,xe).config).onSuccess)==null||w.call(g,h,this),(y=(f=b(this,xe).config).onSettled)==null||y.call(f,h,this.state.error,this),this.scheduleGc()},onError:c,onFail:(h,g)=>{$(this,Ee,We).call(this,{type:"failed",failureCount:h,error:g})},onPause:()=>{$(this,Ee,We).call(this,{type:"pause"})},onContinue:()=>{$(this,Ee,We).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,kn=new WeakMap,Ot=new WeakMap,Ee=new WeakSet,We=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 fo(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})})},xa);function Sc(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:wc(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function hh(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,Ea,ph=(Ea=class extends gn{constructor(t={}){super();k(this,je);this.config=t,O(this,je,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??fs(o,n);let i=this.get(s);return i||(i=new fh({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=>Ci(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Ci(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,Ea),De,ce,jt,ke,Xe,Sa,mh=(Sa=class extends Ec{constructor(t){super();k(this,ke);k(this,De);k(this,ce);k(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,u,d,p,h,g,w,f,y,C,x,S,E,R,P,A,I;const n=()=>{$(this,ke,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:(N,M)=>{$(this,ke,Xe).call(this,{type:"failed",failureCount:N,error:M})},onPause:()=>{$(this,ke,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,ke,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 M=await((c=(a=this.options).onMutate)==null?void 0:c.call(a,t));M!==this.state.context&&$(this,ke,Xe).call(this,{type:"pending",context:M,variables:t,isPaused:o})}const N=await b(this,jt).start();return await((d=(u=b(this,ce).config).onSuccess)==null?void 0:d.call(u,N,t,this.state.context,this)),await((h=(p=this.options).onSuccess)==null?void 0:h.call(p,N,t,this.state.context)),await((w=(g=b(this,ce).config).onSettled)==null?void 0:w.call(g,N,null,this.state.variables,this.state.context,this)),await((y=(f=this.options).onSettled)==null?void 0:y.call(f,N,null,t,this.state.context)),$(this,ke,Xe).call(this,{type:"success",data:N}),N}catch(N){try{throw await((x=(C=b(this,ce).config).onError)==null?void 0:x.call(C,N,t,this.state.context,this)),await((E=(S=this.options).onError)==null?void 0:E.call(S,N,t,this.state.context)),await((P=(R=b(this,ce).config).onSettled)==null?void 0:P.call(R,void 0,N,this.state.variables,this.state.context,this)),await((I=(A=this.options).onSettled)==null?void 0:I.call(A,void 0,N,t,this.state.context)),N}finally{$(this,ke,Xe).call(this,{type:"error",error:N})}}finally{b(this,ce).runNext(this)}}},De=new WeakMap,ce=new WeakMap,jt=new WeakMap,ke=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})})},Sa);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 qe,Se,Ln,_a,gh=(_a=class extends gn{constructor(t={}){super();k(this,qe);k(this,Se);k(this,Ln);this.config=t,O(this,qe,new Set),O(this,Se,new Map),O(this,Ln,0)}build(t,n,r){const o=new mh({mutationCache:this,mutationId:++Kn(this,Ln)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){b(this,qe).add(t);const n=Jn(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,qe).delete(t)){const n=Jn(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=Jn(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=Jn(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,qe).forEach(t=>{this.notify({type:"removed",mutation:t})}),b(this,qe).clear(),b(this,Se).clear()})}getAll(){return Array.from(b(this,qe))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>xi(n,r))}findAll(t={}){return this.getAll().filter(n=>xi(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))))}},qe=new WeakMap,Se=new WeakMap,Ln=new WeakMap,_a);function Jn(e){var t;return(t=e.options.scope)==null?void 0:t.id}function _i(e){return{onFetch:(t,n)=>{var d,p,h,g,w;const r=t.options,o=(h=(p=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:p.fetchMore)==null?void 0:h.direction,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 u=async()=>{let f=!1;const y=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?f=!0:t.signal.addEventListener("abort",()=>{f=!0}),t.signal)})},C=vc(t.options,t.fetchOptions),x=async(S,E,R)=>{if(f)return Promise.reject();if(E==null&&S.pages.length)return Promise.resolve(S);const A=(()=>{const Q={client:t.client,queryKey:t.queryKey,pageParam:E,direction:R?"backward":"forward",meta:t.options.meta};return y(Q),Q})(),I=await C(A),{maxPages:N}=t.options,M=R?ih:sh;return{pages:M(S.pages,I,N),pageParams:M(S.pageParams,E,N)}};if(o&&s.length){const S=o==="backward",E=S?yh:Ri,R={pages:s,pageParams:i},P=E(r,R);a=await x(R,P,S)}else{const S=e??s.length;do{const E=c===0?i[0]??r.initialPageParam:Ri(r,a);if(c>0&&E==null)break;a=await x(a,E),c++}while(c<S)}return a};t.options.persister?t.fetchFn=()=>{var f,y;return(y=(f=t.options).persister)==null?void 0:y.call(f,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Ri(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 yh(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,Ra,vh=(Ra=class{constructor(e={}){k(this,J);k(this,ot);k(this,st);k(this,rn);k(this,on);k(this,it);k(this,sn);k(this,an);O(this,J,e.queryCache||new ph),O(this,ot,e.mutationCache||new gh),O(this,st,e.defaultOptions||{}),O(this,rn,new Map),O(this,on,new Map),O(this,it,0)}mount(){Kn(this,it)._++,b(this,it)===1&&(O(this,sn,hs.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,J).onFocus())})),O(this,an,Or.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,J).onOnline())})))}unmount(){var e,t;Kn(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=rh(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=_i(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ue).catch(ue)}ensureInfiniteQueryData(e){return e.behavior=_i(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Or.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=>{An(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=>{An(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=fs(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===Pr&&(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,Ra),he,U,In,le,Dt,cn,at,ct,Nn,ln,un,kt,Lt,lt,dn,z,Sn,Bo,Uo,Ho,Wo,qo,zo,Vo,Rc,Ta,bh=(Ta=class extends gn{constructor(t,n){super();k(this,z);k(this,he);k(this,U);k(this,In);k(this,le);k(this,Dt);k(this,cn);k(this,at);k(this,ct);k(this,Nn);k(this,ln);k(this,un);k(this,kt);k(this,Lt);k(this,lt);k(this,dn,new Set);this.options=n,O(this,he,t),O(this,ct,null),O(this,at,Fo()),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),Ti(b(this,U),this.options)?$(this,z,Sn).call(this):this.updateResult(),$(this,z,Wo).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Go(b(this,U),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Go(b(this,U),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,$(this,z,qo).call(this),$(this,z,zo).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,Vo).call(this),b(this,U).setOptions(this.options),n._defaulted&&!Ar(this.options,n)&&b(this,he).getQueryCache().notify({type:"observerOptionsUpdated",query:b(this,U),observer:this});const o=this.hasListeners();o&&Ai(b(this,U),r,this.options,n)&&$(this,z,Sn).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,Bo).call(this);const s=$(this,z,Uo).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,Ho).call(this,s)}getOptimisticResult(t){const n=b(this,he).getQueryCache().build(b(this,he),t),r=this.createResult(n,t);return Ch(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,Sn).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),b(this,le)))}createResult(t,n){var N;const r=b(this,U),o=this.options,s=b(this,le),i=b(this,Dt),a=b(this,cn),u=t!==r?t.state:b(this,In),{state:d}=t;let p={...d},h=!1,g;if(n._optimisticResults){const M=this.hasListeners(),Q=!M&&Ti(t,n),K=M&&Ai(t,r,n,o);(Q||K)&&(p={...p,...Sc(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:w,errorUpdatedAt:f,status:y}=p;g=p.data;let C=!1;if(n.placeholderData!==void 0&&g===void 0&&y==="pending"){let M;s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(M=s.data,C=!0):M=typeof n.placeholderData=="function"?n.placeholderData((N=b(this,un))==null?void 0:N.state.data,b(this,un)):n.placeholderData,M!==void 0&&(y="success",g=$o(s==null?void 0:s.data,M,n),h=!0)}if(n.select&&g!==void 0&&!C)if(s&&g===(i==null?void 0:i.data)&&n.select===b(this,Nn))g=b(this,ln);else try{O(this,Nn,n.select),g=n.select(g),g=$o(s==null?void 0:s.data,g,n),O(this,ln,g),O(this,ct,null)}catch(M){O(this,ct,M)}b(this,ct)&&(w=b(this,ct),g=b(this,ln),f=Date.now(),y="error");const x=p.fetchStatus==="fetching",S=y==="pending",E=y==="error",R=S&&x,P=g!==void 0,I={status:y,fetchStatus:p.fetchStatus,isPending:S,isSuccess:y==="success",isError:E,isInitialLoading:R,isLoading:R,data:g,dataUpdatedAt:p.dataUpdatedAt,error:w,errorUpdatedAt:f,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>u.dataUpdateCount||p.errorUpdateCount>u.errorUpdateCount,isFetching:x,isRefetching:x&&!S,isLoadingError:E&&!P,isPaused:p.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:E&&P,isStale:ps(t,n),refetch:this.refetch,promise:b(this,at)};if(this.options.experimental_prefetchInRender){const M=W=>{I.status==="error"?W.reject(I.error):I.data!==void 0&&W.resolve(I.data)},Q=()=>{const W=O(this,at,I.promise=Fo());M(W)},K=b(this,at);switch(K.status){case"pending":t.queryHash===r.queryHash&&M(K);break;case"fulfilled":(I.status==="error"||I.data!==K.value)&&Q();break;case"rejected":(I.status!=="error"||I.error!==K.reason)&&Q();break}}return I}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)),Ar(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,Wo).call(this)}},he=new WeakMap,U=new WeakMap,In=new WeakMap,le=new WeakMap,Dt=new WeakMap,cn=new WeakMap,at=new WeakMap,ct=new WeakMap,Nn=new WeakMap,ln=new WeakMap,un=new WeakMap,kt=new WeakMap,Lt=new WeakMap,lt=new WeakMap,dn=new WeakMap,z=new WeakSet,Sn=function(t){$(this,z,Vo).call(this);let n=b(this,U).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(ue)),n},Bo=function(){$(this,z,qo).call(this);const t=pt(this.options.staleTime,b(this,U));if(Nt||b(this,le).isStale||!Io(t))return;const r=yc(b(this,le).dataUpdatedAt,t)+1;O(this,kt,setTimeout(()=>{b(this,le).isStale||this.updateResult()},r))},Uo=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(b(this,U)):this.options.refetchInterval)??!1},Ho=function(t){$(this,z,zo).call(this),O(this,lt,t),!(Nt||_e(this.options.enabled,b(this,U))===!1||!Io(b(this,lt))||b(this,lt)===0)&&O(this,Lt,setInterval(()=>{(this.options.refetchIntervalInBackground||hs.isFocused())&&$(this,z,Sn).call(this)},b(this,lt)))},Wo=function(){$(this,z,Bo).call(this),$(this,z,Ho).call(this,$(this,z,Uo).call(this))},qo=function(){b(this,kt)&&(clearTimeout(b(this,kt)),O(this,kt,void 0))},zo=function(){b(this,Lt)&&(clearInterval(b(this,Lt)),O(this,Lt,void 0))},Vo=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,In,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"})})},Ta);function wh(e,t){return _e(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ti(e,t){return wh(e,t)||e.state.data!==void 0&&Go(e,t,t.refetchOnMount)}function Go(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&&ps(e,t)}return!1}function Ai(e,t,n,r){return(e!==t||_e(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&ps(e,n)}function ps(e,t){return _e(t.enabled,e)!==!1&&e.isStaleByTime(pt(t.staleTime,e))}function Ch(e,t){return!Ar(e.getCurrentResult(),t)}var ut,dt,pe,ze,Ge,wr,Qo,Aa,xh=(Aa=class extends gn{constructor(n,r){super();k(this,Ge);k(this,ut);k(this,dt);k(this,pe);k(this,ze);O(this,ut,n),this.setOptions(r),this.bindMethods(),$(this,Ge,wr).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),Ar(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,wr).call(this),$(this,Ge,Qo).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,wr).call(this),$(this,Ge,Qo).call(this)}mutate(n,r){var o;return O(this,ze,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,ze=new WeakMap,Ge=new WeakSet,wr=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})},Qo=function(n){oe.batch(()=>{var r,o,s,i,a,c,u,d;if(b(this,ze)&&this.hasListeners()){const p=b(this,dt).variables,h=b(this,dt).context;(n==null?void 0:n.type)==="success"?((o=(r=b(this,ze)).onSuccess)==null||o.call(r,n.data,p,h),(i=(s=b(this,ze)).onSettled)==null||i.call(s,n.data,null,p,h)):(n==null?void 0:n.type)==="error"&&((c=(a=b(this,ze)).onError)==null||c.call(a,n.error,p,h),(d=(u=b(this,ze)).onSettled)==null||d.call(u,void 0,n.error,p,h))}this.listeners.forEach(p=>{p(b(this,dt))})})},Aa),Tc=m.createContext(void 0),ms=e=>{const t=m.useContext(Tc);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Eh=({client:e,children:t})=>(m.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),l.jsx(Tc.Provider,{value:e,children:t})),Ac=m.createContext(!1),Sh=()=>m.useContext(Ac);Ac.Provider;function _h(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Rh=m.createContext(_h()),Th=()=>m.useContext(Rh),Ah=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Ph=e=>{m.useEffect(()=>{e.clearReset()},[e])},Oh=({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])),jh=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))}},Dh=(e,t)=>e.isLoading&&e.isFetching&&!t,kh=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Pi=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Lh(e,t,n){var p,h,g,w,f;if(typeof e!="object"||Array.isArray(e))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=Sh(),o=Th(),s=ms(),i=s.defaultQueryOptions(e);(h=(p=s.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||h.call(p,i),i.queryFn||console.error(`[${i.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`),i._optimisticResults=r?"isRestoring":"optimistic",jh(i),Ah(i,o),Ph(o);const a=!s.getQueryCache().get(i.queryHash),[c]=m.useState(()=>new t(s,i)),u=c.getOptimisticResult(i),d=!r&&e.subscribed!==!1;if(m.useSyncExternalStore(m.useCallback(y=>{const C=d?c.subscribe(oe.batchCalls(y)):ue;return c.updateResult(),C},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),m.useEffect(()=>{c.setOptions(i)},[i,c]),kh(i,u))throw Pi(i,c,o);if(Oh({result:u,errorResetBoundary:o,throwOnError:i.throwOnError,query:s.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw u.error;if((w=(g=s.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||w.call(g,i,u),i.experimental_prefetchInRender&&!Nt&&Dh(u,r)){const y=a?Pi(i,c,o):(f=s.getQueryCache().get(i.queryHash))==null?void 0:f.promise;y==null||y.catch(ue).finally(()=>{c.updateResult()})}return i.notifyOnChangeProps?u:c.trackResult(u)}function Oi(e,t){return Lh(e,bh)}function er(e,t){const n=ms(),[r]=m.useState(()=>new xh(n,e));m.useEffect(()=>{r.setOptions(e)},[r,e]);const o=m.useSyncExternalStore(m.useCallback(i=>r.subscribe(oe.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=m.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 tr={STALE_TIME:1e3*60*5,GC_TIME:1e3*60*10,RETRY_COUNT:1,RETRY_DELAY:1e3},ji={refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,staleTime:tr.STALE_TIME,gcTime:tr.GC_TIME,retry:tr.RETRY_COUNT,retryDelay:tr.RETRY_DELAY,enable:!0},nr=e=>e instanceof Error?e.message:String(e),Pc=(e,t,n)=>{const r=ms(),{notify:o}=ds(),{createFn:s,readFn:i,readByIdFn:a,updateFn:c,deleteFn:u,partialUpdateFn:d}=n,p=()=>{r.invalidateQueries({queryKey:[e]})},h=(E,R,P,A)=>o(A!=null&&A.overrideSuccessMessage?A==null?void 0:A.overrideSuccessMessage(E,R):P,"success"),g=(E,R,P,A)=>o(A!=null&&A.overrideErrorMessage?A==null?void 0:A.overrideErrorMessage(E,R):P,"error");return{useCreate:E=>er({mutationFn:R=>s(R),onSuccess:R=>{p(),h(t,R,`${t} created successfully`,E)},onError:R=>{g(t,R,`Error creating ${t}: ${nr(R)}`,E)}}),useReadQuery:E=>Oi({queryKey:[e],queryFn:i,...ji,...E}),useReadByIdQuery:(E,R)=>Oi({queryKey:[e,E],queryFn:()=>a(E),...ji,enabled:!!E,...R}),useUpdate:E=>er({mutationFn:({id:R,data:P})=>c(R,P),onSuccess:R=>{p(),h(t,R,`${t} updated successfully`,E)},onError:R=>{g(t,R,`Error updating ${t}: ${nr(R)}`,E)}}),usePartialUpdate:E=>d&&er({mutationFn:({id:R,data:P})=>d(R,P),onSuccess:R=>{p(),h(t,R,`${t} updated successfully`,E)},onError:R=>{g(t,R,`Error updating ${t}: ${nr(R)}`,E)}}),useDelete:E=>er({mutationFn:R=>u(R),onSuccess:()=>{p(),h(t,null,`${t} deleted successfully`,E)},onError:R=>{g(t,R,`Error deleting ${t}: ${nr(R)}`,E)}}),invalidateQueries:p}},Ih=(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())}),Nh={SINGLE_TENANT:"single-tenant"},Mh={COOKIE:"cookie"},ho="tenant",Di="tenant",ki="tenant",$h=Nh.SINGLE_TENANT,Fh=Mh.COOKIE,Bh={mode:$h,clientSideMode:Fh,tenantIDPProvisioningStrategy:"none"};class Uh{setTenant(t,n){const r=new URL(window.location.href);r.searchParams.set(Di,t.name),window.location.href=r.toString()}getCurrentTenantName(){const t=new URL(window.location.href);return new URLSearchParams(t.search).get(Di)}}class Hh{setTenant(t,n){sessionStorage.setItem(ki,t.name),window.location.reload()}getCurrentTenantName(){return sessionStorage.getItem(ki)}}/*! js-cookie v3.0.5 | MIT */function rr(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 Wh={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 Ko(e,t){function n(o,s,i){if(!(typeof document>"u")){i=rr({},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("="),u=c.slice(1).join("=");try{var d=decodeURIComponent(c[0]);if(i[d]=e.read(u,d),o===d)break}catch{}}return o?i[o]:i}}return Object.create({set:n,get:r,remove:function(o,s){n(o,"",rr({},s,{expires:-1}))},withAttributes:function(o){return Ko(this.converter,rr({},this.attributes,o))},withConverter:function(o){return Ko(rr({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var po=Ko(Wh,{path:"/"});class qh{setTenant(t,n){t?po.set(ho,t.name):po.remove(ho),window.location.reload()}getCurrentTenantName(){return po.get(ho)}}class zh{extractSubdomain(t){if(t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t))return"";const n=t.split(".");if(n.length<2||n.length===2||n[0]==="www"&&n.length===3)return"";const o=(n[0]==="www"?n.slice(1):n).slice(0,-2);return o.length>0?o.join("."):""}getBaseDomain(t){const n=t.split(".");return t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t)||n.length<=2?t:n.slice(-2).join(".")}setTenant(t,n){var u;const r=(u=n.urlPatterns)==null?void 0:u.find(d=>d.patternType==="subdomain"&&d.tenantId===t.id&&d.isActive);if(!r)throw new Error(`No active subdomain pattern found for tenant '${t.name}'`);const o=new URL(window.location.href),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 Li={queryParams:new Uh,sessionStorage:new Hh,cookie:new qh,subdomain:new zh},Vh=e=>{const t=Li[e.clientSideMode];if(!t)throw new Error(`Client side tenant mode '${e.clientSideMode}' is not supported ${JSON.stringify({strategies:Li},null,2)}`);return t},Gh=(e,t,n)=>{const r=t.find(s=>s.name===n);if(!r)throw Error("No tenant permission");return Vh(e).setTenant(r,e),r},Qh=()=>{const[e,t]=Fr(),{tenants:n=[],currentTenant:r,tenantConfig:o=Bh}=e,s=_.useCallback(i=>{const a=Gh(o,n,i);t({...e,currentTenant:a})},[o,e]);return{tenants:n,currentTenant:r,tenantConfig:o,selectTenant:s}};function Kh(e){if(!e.ok)throw console.error(e),new Error(e.statusText)}async function or(e,t,n,r){const o=await e(`/user-states/${encodeURIComponent(t)}/${encodeURIComponent(n)}`,r);return Kh(o),o}class sr{static async get(t,n,r){const s=await or(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 or(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 or(t,n,r,s)).json()}static async delete(t,n,r){return await or(t,n,r,{method:"DELETE",headers:{"Content-Type":"application/json"}}),null}}const Yh=e=>{const t=us("@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]=_.useState(null),[s,i]=_.useState(!1),[a,c]=_.useState(!1),[u,d]=_.useState(null),p=(x,S)=>_.useCallback(async({newValue:E,shouldThrowError:R}={})=>{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),R)throw P;return null}finally{c(!1)}},[t,n,e]),h=p(sr.get,"fetch"),g=p(sr.create,"create"),w=p(sr.update,"update"),f=p(sr.delete,"delete"),y=_.useCallback(async()=>{try{await h()}finally{i(!0)}},[h]);_.useEffect(()=>{y()},[y]);const C=_.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:u,setValue:C,createValue:g,updateValue:w,deleteValue:f}},Oc="__PAE_EXTENSION_POINT_REACT_CONTENT_EMPTY__",Zh=({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 l.jsx(l.Fragment,{children:t??null});if(Xh(r)){const o=r;return l.jsx(o,{...n})}else return r},Xh=e=>typeof e=="function",Jh=(e,t)=>{const n=r=>(t=t||e.displayName||e.name||"?",l.jsx(jc,{name:t,...r,children:l.jsx(e,{...r})}));return n.displayName=`extensionPoint(${t})`,n},Ii="single-spa:app-change";function ep(){const[e,t]=_.useState(Ni());return _.useEffect(()=>{const n=()=>{t(Ni())};return window.addEventListener(Ii,n),()=>{window.removeEventListener(Ii,n)}},[]),e}function Ni(){return mr.getAppNames().reduce((t,n)=>(mr.getAppStatus(n)?t[n]=mr.getAppStatus(n):t[n]="NOT_LOADED",t),{})}function tp(e){const n=ep()[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})=>l.jsx("div",{children:l.jsxs("p",{children:["Loading ",e,"..."]})});Dc.displayName="BaseLoading";const kc=({appName:e})=>l.jsxs("div",{children:[l.jsx("p",{children:"Something went wrong..."}),l.jsxs("p",{children:["Failed to load ",e]})]});kc.displayName="BaseError";const np={display:"flex",flexDirection:"column",flex:1},Lc=_.forwardRef((e,t)=>l.jsx("div",{ref:t,style:np,...e}));Lc.displayName="BaseContainer";const rp="pae-app:",Ic=_.forwardRef(({appName:e,LoadingComponent:t=Dc,ErrorComponent:n=kc,ContainerComponent:r=Lc,...o},s)=>{const i=tp(e);return l.jsxs(r,{ref:s,...o,id:`${rp}${e}`,children:[i.isLoading&&l.jsx(t,{appName:e}),i.isBroken&&l.jsx(n,{appName:e})]})});Ic.displayName="ModulePlaceHolder";const gs=({operations:e,children:t,forbiddenContent:n})=>{var o;const{hasAccess:r}=Br();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 l.jsx(s,{operations:e})}else return n({operations:e});return _.isValidElement(n)?n:null}return t};gs.displayName="Authorized";const op=({eventName:e,listener:t})=>(sc(e,t),null),sp=()=>l.jsx("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:l.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M8.737 8.737a21.49 21.49 0 0 1 3.308-2.724m0 0c3.063-2.026 5.99-2.641 7.331-1.3 1.827 1.828.026 6.591-4.023 10.64-4.049 4.049-8.812 5.85-10.64 4.023-1.33-1.33-.736-4.218 1.249-7.253m6.083-6.11c-3.063-2.026-5.99-2.641-7.331-1.3-1.827 1.828-.026 6.591 4.023 10.64m3.308-9.34a21.497 21.497 0 0 1 3.308 2.724m2.775 3.386c1.985 3.035 2.579 5.923 1.248 7.253-1.336 1.337-4.245.732-7.295-1.275M14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})}),Nc=({applicationName:e})=>{const t=Ka(e);if(t)if(typeof t=="function"){const n=t;return l.jsx(n,{})}else return t;return l.jsx(sp,{})};Nc.displayName="ApplicationIcon";const ip=(e,t)=>{const n=r=>l.jsx(gs,{operations:t,children:l.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 ap="spinner__fakUN",cp="spinner-rotation__wUmPV",lp="button__8FA9H",up="button--contained-primary__stkTx",dp="button--outlined-primary__KZ1ww",fp="button--text-primary__GLTfm",hp="button--contained-danger__L9ehT",pp="button--outlined-danger__eoYLd",mp="button--text-danger__Sw-ha",gp="icon__--umH",ir={spinner:ap,"spinner-rotation":"spinner-rotation__wUmPV",spinnerRotation:cp,button:lp,"button--contained-primary":"button--contained-primary__stkTx",buttonContainedPrimary:up,"button--outlined-primary":"button--outlined-primary__KZ1ww",buttonOutlinedPrimary:dp,"button--text-primary":"button--text-primary__GLTfm",buttonTextPrimary:fp,"button--contained-danger":"button--contained-danger__L9ehT",buttonContainedDanger:hp,"button--outlined-danger":"button--outlined-danger__eoYLd",buttonOutlinedDanger:pp,"button--text-danger":"button--text-danger__Sw-ha",buttonTextDanger:mp,icon:gp},jr=_.forwardRef(({variant:e="contained",colorScheme:t="primary",loading:n=!1,IconComponent:r,className:o,children:s,...i},a)=>{const c=D(ir.button,ir[`button--${e}-${t}`],o);return l.jsxs("button",{ref:a,className:c,...i,children:[n?l.jsx("div",{className:ir.spinner}):r&&l.jsx(r,{className:ir.icon}),s]})});jr.displayName="Button";const yp="Badges__5jpum",vp="Badges__5jpum",bp="Badge__95MWM",wp="Badge__95MWM",Cp="Badge--primary__Rx-bS",xp="Badge--secondary__d92bT",Ep="Badge--success__Kdo98",Sp="Badge--warning__bf-Nn",_p="Badge--danger__HTj39",Rp="Badge--small__y93Pj",Tp="Badge--regular__aT5AL",Ap="Badge--large__wORCH",Cr={Badges:yp,badges:vp,Badge:bp,badge:wp,"Badge--primary":"Badge--primary__Rx-bS",badgePrimary:Cp,"Badge--secondary":"Badge--secondary__d92bT",badgeSecondary:xp,"Badge--success":"Badge--success__Kdo98",badgeSuccess:Ep,"Badge--warning":"Badge--warning__bf-Nn",badgeWarning:Sp,"Badge--danger":"Badge--danger__HTj39",badgeDanger:_p,"Badge--small":"Badge--small__y93Pj",badgeSmall:Rp,"Badge--regular":"Badge--regular__aT5AL",badgeRegular:Tp,"Badge--large":"Badge--large__wORCH",badgeLarge:Ap},Mi={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};var $i={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function Pp(e){var d,p;var t,n=[],r=1,o;if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),Mi[e])n=Mi[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 u=o==="cmyk"?4:o==="gray"?1:3;n=t[2].trim().split(/\s*[,\/]\s*|\s+/),o==="color"&&(o=n.shift()),n=n.map(function(h,g){if(h[h.length-1]==="%")return h=parseFloat(h)/100,g===3?h:o==="rgb"?h*255:o[0]==="h"||o[0]==="l"&&!g?h*100:o==="lab"?h*125:o==="lch"?g<2?h*150:h*360:o[0]==="o"&&!g?h:o==="oklab"?h*.4:o==="oklch"?g<2?h*.4:h*360:h;if(o[g]==="h"||g===2&&o[o.length-1]==="h"){if($i[h]!==void 0)return $i[h];if(h.endsWith("deg"))return parseFloat(h);if(h.endsWith("turn"))return parseFloat(h)*360;if(h.endsWith("grad"))return parseFloat(h)*360/400;if(h.endsWith("rad"))return parseFloat(h)*180/Math.PI}return h==="none"?0:parseFloat(h)}),r=n.length>u?n.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(n=e.match(/([0-9]+)/g).map(function(h){return parseFloat(h)}),o=((p=(d=e.match(/([a-z])/ig))==null?void 0:d.join(""))==null?void 0:p.toLowerCase())||"rgb");return{space:o,values:n,alpha:r}}const Op=(e,t)=>{const{space:n,values:r}=Pp(e);return n[0]==="h"?`${n}a(${r[0]}, ${r[1]}%, ${r[2]}%, ${t})`:`${n}a(${r}, ${t})`},ys=_.forwardRef(({children:e,color:t,className:n,customColor:r,size:o="small",style:s,...i},a)=>{const c=r?{color:r,background:Op(r,.1)}:{},u=D(Cr.Badge,Cr[`Badge--${o}`],{[Cr[`Badge--${t}`]]:!!t},n);return l.jsx("span",{ref:a,className:u,style:{...s,...c},...i,children:e})});ys.displayName="Badge";const vs=_.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Cr.Badges,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});vs.displayName="Badges";const $c=({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...s})=>l.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:o,...s,children:[l.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),l.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"})]}),Fc=({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...s})=>l.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:o,...s,children:[l.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),l.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}),l.jsx("path",{d:"m9 12 2 2 4-4"})]}),jp="CopyToClipboardButton__2Nd2m",Dp={CopyToClipboardButton:jp},kp=({content:e})=>{const[t,n]=Lp(),{notify:r}=ds(),o=t?Fc:$c,s=_.useCallback(async()=>{await n(e)&&r("Copied to the Clipboard !","success")},[e,r]);return l.jsx(o,{className:Dp.CopyToClipboardButton,size:18,onClick:s})},Lp=()=>{const[e,t]=_.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}}]},Ip="FieldGroup__Q2JCV",Np="FieldGroup__Q2JCV",Mp="FieldGroup--horizontal__kpfL1",$p="FieldGroup--vertical__FLo-Q",Fi={FieldGroup:Ip,fieldGroup:Np,"FieldGroup--horizontal":"FieldGroup--horizontal__kpfL1",fieldGroupHorizontal:Mp,"FieldGroup--vertical":"FieldGroup--vertical__FLo-Q",fieldGroupVertical:$p},Bc=_.forwardRef(({children:e,className:t,orientation:n="vertical",...r},o)=>{const s=D(Fi.FieldGroup,Fi[`FieldGroup--${n}`],t);return l.jsx("div",{ref:o,className:s,...r,children:e})});Bc.displayName="FieldGroup";const Fp="Input__uS0sb",Bi={Input:Fp,Error:"Error__-DQpw"},zr=_.forwardRef(({className:e,error:t,...n},r)=>{const o=D(Bi.Input,t&&Bi.Error,e);return l.jsx("input",{ref:r,className:o,...n})});zr.displayName="Input";const Bp={Error:"Error__N4OP5"},Uc=_.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Bp.Error,t);return l.jsx("span",{ref:r,className:o,...n,children:e})});Uc.displayName="InputError";const Up="Label__VYUvW",Ui={Label:Up,Error:"Error__Eu6DI"},Hc=_.forwardRef(({children:e,className:t,error:n,...r},o)=>{const s=D(Ui.Label,n&&Ui.Error,t);return l.jsx("label",{ref:o,className:s,...r,children:e})});Hc.displayName="Label";const Hp="Select__giqpe",Wp="Chevron__YvhBd",Yo={Select:Hp,Chevron:Wp},Wc=_.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Yo.Option,t);return l.jsx("option",{ref:r,className:o,...n,children:e})});Wc.displayName="Option";const bs=_.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Yo.Select,t);return l.jsxs("div",{className:o,children:[l.jsx("select",{ref:r,...n,children:e}),l.jsx("div",{className:Yo.Chevron,children:l.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M4 6L8 10L12 6",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})})]})});bs.displayName="Select";bs.Option=Wc;const qp="TextArea__pa-A0",zp={TextArea:qp},qc=_.forwardRef(({children:e,className:t,...n},r)=>{const o=D(zp.TextArea,t);return l.jsx("textarea",{ref:r,className:o,...n,children:e})});qc.displayName="TextArea";const Vp="SearchInput__4OFyE",Gp="SearchIcon__YgnQy",Qp="ClearIcon__ukRVr",Kp="SearchInput__ClearIcon__uzVoc",Yp="SearchInput__SearchIcon__zoDG4",En={SearchInput:Vp,SearchIcon:Gp,ClearIcon:Qp,SearchInput__ClearIcon:Kp,SearchInput__SearchIcon:Yp},ws=_.forwardRef(({className:e,placeholder:t="Type to search...",showClearButton:n=!1,showSearchIcon:r=!0,onClear:o,...s},i)=>{const a=D(En.SearchInput,n&&En.SearchInput__ClearIcon,r&&En.SearchInput__SearchIcon,e),c=D(En.SearchIcon),u=D(En.ClearIcon);return l.jsxs("div",{className:a,children:[l.jsx(zr,{ref:i,type:"text",placeholder:t,...s}),r&&l.jsx("svg",{className:c,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M13 13L10.6667 10.6667M12.3333 6.66667C12.3333 9.79628 9.79628 12.3333 6.66667 12.3333C3.53705 12.3333 1 9.79628 1 6.66667C1 3.53705 3.53705 1 6.66667 1C9.79628 1 12.3333 3.53705 12.3333 6.66667Z",stroke:"#A4A4A4",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})}),n&&l.jsx("svg",{className:u,width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:o,children:l.jsx("path",{d:"M7.33334 0.666748L0.666672 7.33341M0.666672 0.666748L7.33334 7.33341",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})]})});ws.displayName="SearchInput";const Zp="SearchAutocomplete__vR9Hk",Xp="AutocompleteItem__YIm7R",Jp="AutocompleteHighlighter__LAFTV",e1="AutocompleteHighlighter__match__Wy1o2",t1="DropdownList__-fHIk",n1="AutocompleteItemDescription__4QYN5",It={SearchAutocomplete:Zp,AutocompleteItem:Xp,"AutocompleteItem--canBeSelected":"AutocompleteItem--canBeSelected__jxk4z",AutocompleteHighlighter:Jp,AutocompleteHighlighter__match:e1,DropdownList:t1,AutocompleteItemDescription:n1},r1="DropdownList__QTXXX",o1="DropdownList__QTXXX",s1="DropdownList--closed__pdL1Z",i1="DropdownList--open__opzc9",a1="DropdownList--left__xSwXR",Rt={DropdownList:r1,dropdownList:o1,"DropdownList--closed":"DropdownList--closed__pdL1Z",dropdownListClosed:s1,"DropdownList--open":"DropdownList--open__opzc9",dropdownListOpen:i1,"DropdownList--left":"DropdownList--left__xSwXR",dropdownListLeft:a1},Vr=_.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 l.jsx("div",{ref:s,className:i,...o,children:e})});Vr.displayName="DropdownList";const _n=_.forwardRef(({children:e,className:t,canBeSelected:n=!1,...r},o)=>{const s=D(It.AutocompleteItem,{[It["AutocompleteItem--canBeSelected"]]:n},t);return l.jsx("div",{ref:o,className:s,...r,children:e})});_n.displayName="AutocompleteItem";const c1=300,l1={query:"",suggestions:[],loading:!1,error:null},u1=({suggestionFetcher:e,canAdd:t})=>{const[n,r]=_.useState(l1);return _.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()},c1);return()=>{clearTimeout(i)}},[n.query]),{...n,setQuery:s=>{r(i=>({...i,query:s}))}}},zc=_.forwardRef(({text:e,query:t,className:n,...r},o)=>{const s=D(It.AutocompleteHighlighter,n),i=(a,c)=>{const u=a.toLowerCase().indexOf(c.toLowerCase());if(u===-1||c.length===0)return a;const d=a.slice(0,u),p=a.slice(u,u+c.length),h=a.slice(u+c.length);return l.jsxs(l.Fragment,{children:[d,l.jsx("span",{className:It.AutocompleteHighlighter__match,children:p}),i(h,c)]})};return l.jsx("div",{ref:o,className:s,...r,children:i(e,t)})});zc.displayName="AutocompleteHighlighter";const d1=5,Vc=_.forwardRef(({children:e,className:t,canAdd:n,maxSuggestionsShown:r=d1,searchInputProps:o,keepSelectedOption:s,suggestionFetcher:i,onAccept:a,...c},u)=>{const{query:d,setQuery:p,suggestions:h,loading:g}=u1({suggestionFetcher:i,canAdd:n}),[w,f]=_.useState(null),y=d.length>0,C=A=>{p(A.target.value)},x=A=>{a==null||a(A),s?(f(A),p(A.value)):p("")},S=()=>{a==null||a(null),f(null),p("")},E=D(It.SearchAutocomplete,t),R=h.slice(0,r),P=h.slice(r);return l.jsxs("div",{ref:u,className:E,...c,children:[l.jsx(ws,{...o,value:d,onChange:C,showClearButton:!!w,onClear:S}),e,l.jsxs(Vr,{className:It.DropdownList,open:y&&!w,role:"listbox","aria-label":"Suggestions",children:[g?l.jsx(_n,{children:"Loading..."}):R.map(A=>l.jsxs(_n,{canBeSelected:!0,onClick:x.bind(null,A),children:[l.jsx(zc,{text:A.label,query:d}),A.description&&l.jsx("span",{className:It.AutocompleteItemDescription,children:A.description})]},A.value)),!g&&P.length>0&&l.jsxs(_n,{children:[P.length," more results"]}),y&&h.length===0&&!g&&l.jsx(_n,{children:"No results found"})]})]})});Vc.displayName="SearchAutocomplete";const ft=e=>{let t=null,n=null;return _.Children.forEach(e.children,r=>{const o=r.props.condition;o===void 0?n=r:!t&&o===!0&&(t=r)}),l.jsx(l.Fragment,{children:t||n})};ft.displayName="Show";ft.When=({condition:e,children:t})=>l.jsx(l.Fragment,{children:e&&t});ft.Else=({render:e,children:t})=>l.jsx(l.Fragment,{children:e||t});function Hi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Gc(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Hi(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():Hi(e[o],null)}}}}function Pe(...e){return m.useCallback(Gc(...e),e)}function Cs(e){const t=h1(e),n=m.forwardRef((r,o)=>{const{children:s,...i}=r,a=m.Children.toArray(s),c=a.find(m1);if(c){const u=c.props.children,d=a.map(p=>p===c?m.Children.count(u)>1?m.Children.only(null):m.isValidElement(u)?u.props.children:null:p);return l.jsx(t,{...i,ref:o,children:m.isValidElement(u)?m.cloneElement(u,void 0,d):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var f1=Cs("Slot");function h1(e){const t=m.forwardRef((n,r)=>{const{children:o,...s}=n;if(m.isValidElement(o)){const i=y1(o),a=g1(s,o.props);return o.type!==m.Fragment&&(a.ref=r?Gc(r,i):i),m.cloneElement(o,a)}return m.Children.count(o)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Qc=Symbol("radix.slottable");function p1(e){const t=({children:n})=>l.jsx(l.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Qc,t}function m1(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qc}function g1(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 y1(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 v1="SkeletonListContainer__MKJhE",b1="Skeleton__Ovpiw",Kc={SkeletonListContainer:v1,Skeleton:b1},Gr=_.forwardRef((e,t)=>{const{children:n,className:r,loading:o,height:s=48,width:i,borderRadius:a,style:c,...u}=e;if(!o&&n)return n;const d=_.isValidElement(n)?f1:"span";return l.jsx(d,{ref:t,"aria-hidden":!0,className:D(Kc.Skeleton,r),style:{...c,width:i,minWidth:i,height:s,borderRadius:a},"data-inline-skeleton":_.isValidElement(n)?void 0:!0,tabIndex:-1,...u,children:n})});Gr.displayName="Skeleton";const Yc=e=>{const{numberOfItems:t,itemsGap:n=2,itemProps:r}=e,o=Array.from({length:t},(s,i)=>i+1);return l.jsx("div",{className:D(Kc.SkeletonListContainer),style:{gap:n},children:o.map(s=>l.jsx(Gr,{loading:!0,...r},s))})};Yc.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 w1(e,t){const n=m.createContext(t),r=s=>{const{children:i,...a}=s,c=m.useMemo(()=>a,Object.values(a));return l.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function o(s){const i=m.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 xs(e,t=[]){let n=[];function r(s,i){const a=m.createContext(i),c=n.length;n=[...n,i];const u=p=>{var C;const{scope:h,children:g,...w}=p,f=((C=h==null?void 0:h[e])==null?void 0:C[c])||a,y=m.useMemo(()=>w,Object.values(w));return l.jsx(f.Provider,{value:y,children:g})};u.displayName=s+"Provider";function d(p,h){var f;const g=((f=h==null?void 0:h[e])==null?void 0:f[c])||a,w=m.useContext(g);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[u,d]}const o=()=>{const s=n.map(i=>m.createContext(i));return function(a){const c=(a==null?void 0:a[e])||s;return m.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,C1(o,...t)]}function C1(...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:u})=>{const p=c(s)[`__scope${u}`];return{...a,...p}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var x1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ge=x1.reduce((e,t)=>{const n=Cs(`Primitive.${t}`),r=m.forwardRef((o,s)=>{const{asChild:i,...a}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(c,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function E1(e,t){e&&ja.flushSync(()=>e.dispatchEvent(t))}function fn(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function S1(e,t=globalThis==null?void 0:globalThis.document){const n=fn(e);m.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var _1="DismissableLayer",Zo="dismissableLayer.update",R1="dismissableLayer.pointerDownOutside",T1="dismissableLayer.focusOutside",Wi,Zc=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Es=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...c}=e,u=m.useContext(Zc),[d,p]=m.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=m.useState({}),w=Pe(t,A=>p(A)),f=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),C=f.indexOf(y),x=d?f.indexOf(d):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,E=x>=C,R=O1(A=>{const I=A.target,N=[...u.branches].some(M=>M.contains(I));!E||N||(o==null||o(A),i==null||i(A),A.defaultPrevented||a==null||a())},h),P=j1(A=>{const I=A.target;[...u.branches].some(M=>M.contains(I))||(s==null||s(A),i==null||i(A),A.defaultPrevented||a==null||a())},h);return S1(A=>{x===u.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},h),m.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Wi=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),qi(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Wi)}},[d,h,n,u]),m.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),qi())},[d,u]),m.useEffect(()=>{const A=()=>g({});return document.addEventListener(Zo,A),()=>document.removeEventListener(Zo,A)},[]),l.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,R.onPointerDownCapture)})});Es.displayName=_1;var A1="DismissableLayerBranch",P1=m.forwardRef((e,t)=>{const n=m.useContext(Zc),r=m.useRef(null),o=Pe(t,r);return m.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsx(ge.div,{...e,ref:o})});P1.displayName=A1;function O1(e,t=globalThis==null?void 0:globalThis.document){const n=fn(e),r=m.useRef(!1),o=m.useRef(()=>{});return m.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let c=function(){Xc(R1,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},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 j1(e,t=globalThis==null?void 0:globalThis.document){const n=fn(e),r=m.useRef(!1);return m.useEffect(()=>{const o=s=>{s.target&&!r.current&&Xc(T1,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 qi(){const e=new CustomEvent(Zo);document.dispatchEvent(e)}function Xc(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?E1(o,s):o.dispatchEvent(s)}var mt=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},D1=m[" useId ".trim().toString()]||(()=>{}),k1=0;function xr(e){const[t,n]=m.useState(D1());return mt(()=>{n(r=>r??String(k1++))},[e]),t?`radix-${t}`:""}const L1=["top","right","bottom","left"],gt=Math.min,ve=Math.max,Dr=Math.round,ar=Math.floor,Me=e=>({x:e,y:e}),I1={left:"right",right:"left",bottom:"top",top:"bottom"},N1={start:"end",end:"start"};function Xo(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 yn(e){return e.split("-")[1]}function Ss(e){return e==="x"?"y":"x"}function _s(e){return e==="y"?"height":"width"}const M1=new Set(["top","bottom"]);function Ne(e){return M1.has(Ye(e))?"y":"x"}function Rs(e){return Ss(Ne(e))}function $1(e,t,n){n===void 0&&(n=!1);const r=yn(e),o=Rs(e),s=_s(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=kr(i)),[i,kr(i)]}function F1(e){const t=kr(e);return[Jo(e),t,Jo(t)]}function Jo(e){return e.replace(/start|end/g,t=>N1[t])}const zi=["left","right"],Vi=["right","left"],B1=["top","bottom"],U1=["bottom","top"];function H1(e,t,n){switch(e){case"top":case"bottom":return n?t?Vi:zi:t?zi:Vi;case"left":case"right":return t?B1:U1;default:return[]}}function W1(e,t,n,r){const o=yn(e);let s=H1(Ye(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Jo)))),s}function kr(e){return e.replace(/left|right|bottom|top/g,t=>I1[t])}function q1(e){return{top:0,right:0,bottom:0,left:0,...e}}function Jc(e){return typeof e!="number"?q1(e):{top:e,right:e,bottom:e,left:e}}function Lr(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 Gi(e,t,n){let{reference:r,floating:o}=e;const s=Ne(t),i=Rs(t),a=_s(i),c=Ye(t),u=s==="y",d=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let 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:p};break;case"left":g={x:r.x-o.width,y:p};break;default:g={x:r.x,y:r.y}}switch(yn(t)){case"start":g[i]-=h*(n&&u?-1:1);break;case"end":g[i]+=h*(n&&u?-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 u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=Gi(u,r,c),h=r,g={},w=0;for(let f=0;f<a.length;f++){const{name:y,fn:C}=a[f],{x,y:S,data:E,reset:R}=await C({x:d,y:p,initialPlacement:r,placement:h,strategy:o,middlewareData:g,rects:u,platform:i,elements:{reference:e,floating:t}});d=x??d,p=S??p,g={...g,[y]:{...g[y],...E}},R&&w<=50&&(w++,typeof R=="object"&&(R.placement&&(h=R.placement),R.rects&&(u=R.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):R.rects),{x:d,y:p}=Gi(u,h,c)),f=-1)}return{x:d,y:p,placement:h,strategy:o,middlewareData:g}};async function Pn(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:g=0}=Ke(t,e),w=Jc(g),y=a[h?p==="floating"?"reference":"floating":p],C=Lr(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:u,rootBoundary:d,strategy:c})),x=p==="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},R=Lr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:S,strategy:c}):x);return{top:(C.top-R.top+w.top)/E.y,bottom:(R.bottom-C.bottom+w.bottom)/E.y,left:(C.left-R.left+w.left)/E.x,right:(R.right-C.right+w.right)/E.x}}const V1=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:u,padding:d=0}=Ke(e,t)||{};if(u==null)return{};const p=Jc(d),h={x:n,y:r},g=Rs(o),w=_s(g),f=await i.getDimensions(u),y=g==="y",C=y?"top":"left",x=y?"bottom":"right",S=y?"clientHeight":"clientWidth",E=s.reference[w]+s.reference[g]-h[g]-s.floating[w],R=h[g]-s.reference[g],P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let A=P?P[S]:0;(!A||!await(i.isElement==null?void 0:i.isElement(P)))&&(A=a.floating[S]||s.floating[w]);const I=E/2-R/2,N=A/2-f[w]/2-1,M=gt(p[C],N),Q=gt(p[x],N),K=M,W=A-f[w]-Q,V=A/2-f[w]/2+I,ne=Xo(K,V,W),Z=!c.arrow&&yn(o)!=null&&V!==ne&&s.reference[w]/2-(V<K?M:Q)-f[w]/2<0,X=Z?V<K?V-K:V-W:0;return{[g]:h[g]+X,data:{[g]:ne,centerOffset:V-ne-X,...Z&&{alignmentOffset:X}},reset:Z}}}),G1=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:u}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:f=!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(u.floating)),R=h||(S||!f?[kr(a)]:F1(a)),P=w!=="none";!h&&P&&R.push(...W1(a,f,w,E));const A=[a,...R],I=await Pn(t,y),N=[];let M=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&N.push(I[C]),p){const V=$1(o,i,E);N.push(I[V[0]],I[V[1]])}if(M=[...M,{placement:o,overflows:N}],!N.every(V=>V<=0)){var Q,K;const V=(((Q=s.flip)==null?void 0:Q.index)||0)+1,ne=A[V];if(ne&&(!(p==="alignment"?x!==Ne(ne):!1)||M.every(F=>Ne(F.placement)===x?F.overflows[0]>0:!0)))return{data:{index:V,overflows:M},reset:{placement:ne}};let Z=(K=M.filter(X=>X.overflows[0]<=0).sort((X,F)=>X.overflows[1]-F.overflows[1])[0])==null?void 0:K.placement;if(!Z)switch(g){case"bestFit":{var W;const X=(W=M.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:W[0];X&&(Z=X);break}case"initialPlacement":Z=a;break}if(o!==Z)return{reset:{placement:Z}}}return{}}}};function Qi(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ki(e){return L1.some(t=>e[t]>=0)}const Q1=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 Pn(t,{...o,elementContext:"reference"}),i=Qi(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Ki(i)}}}case"escaped":{const s=await Pn(t,{...o,altBoundary:!0}),i=Qi(s,n.floating);return{data:{escapedOffsets:i,escaped:Ki(i)}}}default:return{}}}}},el=new Set(["left","top"]);async function K1(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=yn(n),c=Ne(n)==="y",u=el.has(i)?-1:1,d=s&&c?-1:1,p=Ke(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof w=="number"&&(g=a==="end"?w*-1:w),c?{x:g*d,y:h*u}:{x:h*u,y:g*d}}const Y1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,c=await K1(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}}}}},Z1=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),u={x:n,y:r},d=await Pn(t,c),p=Ne(Ye(o)),h=Ss(p);let g=u[h],w=u[p];if(s){const y=h==="y"?"top":"left",C=h==="y"?"bottom":"right",x=g+d[y],S=g-d[C];g=Xo(x,g,S)}if(i){const y=p==="y"?"top":"left",C=p==="y"?"bottom":"right",x=w+d[y],S=w-d[C];w=Xo(x,w,S)}const f=a.fn({...t,[h]:g,[p]:w});return{...f,data:{x:f.x-n,y:f.y-r,enabled:{[h]:s,[p]:i}}}}}},X1=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=Ke(e,t),d={x:n,y:r},p=Ne(o),h=Ss(p);let g=d[h],w=d[p];const f=Ke(a,t),y=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(c){const S=h==="y"?"height":"width",E=s.reference[h]-s.floating[S]+y.mainAxis,R=s.reference[h]+s.reference[S]-y.mainAxis;g<E?g=E:g>R&&(g=R)}if(u){var C,x;const S=h==="y"?"width":"height",E=el.has(Ye(o)),R=s.reference[p]-s.floating[S]+(E&&((C=i.offset)==null?void 0:C[p])||0)+(E?0:y.crossAxis),P=s.reference[p]+s.reference[S]+(E?0:((x=i.offset)==null?void 0:x[p])||0)-(E?y.crossAxis:0);w<R?w=R:w>P&&(w=P)}return{[h]:g,[p]:w}}}},J1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:c=()=>{},...u}=Ke(e,t),d=await Pn(t,u),p=Ye(o),h=yn(o),g=Ne(o)==="y",{width:w,height:f}=s.floating;let y,C;p==="top"||p==="bottom"?(y=p,C=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(C=p,y=h==="end"?"top":"bottom");const x=f-d.top-d.bottom,S=w-d.left-d.right,E=gt(f-d[y],x),R=gt(w-d[C],S),P=!t.middlewareData.shift;let A=E,I=R;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(I=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=x),P&&!h){const M=ve(d.left,0),Q=ve(d.right,0),K=ve(d.top,0),W=ve(d.bottom,0);g?I=w-2*(M!==0||Q!==0?M+Q:ve(d.left,d.right)):A=f-2*(K!==0||W!==0?K+W:ve(d.top,d.bottom))}await c({...t,availableWidth:I,availableHeight:A});const N=await i.getDimensions(a.floating);return w!==N.width||f!==N.height?{reset:{rects:!0}}:{}}}};function Qr(){return typeof window<"u"}function vn(e){return tl(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=(tl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function tl(e){return Qr()?e instanceof Node||e instanceof we(e).Node:!1}function Te(e){return Qr()?e instanceof Element||e instanceof we(e).Element:!1}function $e(e){return Qr()?e instanceof HTMLElement||e instanceof we(e).HTMLElement:!1}function Yi(e){return!Qr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof we(e).ShadowRoot}const em=new Set(["inline","contents"]);function Bn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ae(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!em.has(o)}const tm=new Set(["table","td","th"]);function nm(e){return tm.has(vn(e))}const rm=[":popover-open",":modal"];function Kr(e){return rm.some(t=>{try{return e.matches(t)}catch{return!1}})}const om=["transform","translate","scale","rotate","perspective"],sm=["transform","translate","scale","rotate","perspective","filter"],im=["paint","layout","strict","content"];function Ts(e){const t=As(),n=Te(e)?Ae(e):e;return om.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||sm.some(r=>(n.willChange||"").includes(r))||im.some(r=>(n.contain||"").includes(r))}function am(e){let t=yt(e);for(;$e(t)&&!hn(t);){if(Ts(t))return t;if(Kr(t))return null;t=yt(t)}return null}function As(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const cm=new Set(["html","body","#document"]);function hn(e){return cm.has(vn(e))}function Ae(e){return we(e).getComputedStyle(e)}function Yr(e){return Te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function yt(e){if(vn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Yi(e)&&e.host||Fe(e);return Yi(t)?t.host:t}function nl(e){const t=yt(e);return hn(t)?e.ownerDocument?e.ownerDocument.body:e.body:$e(t)&&Bn(t)?t:nl(t)}function On(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=nl(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=we(o);if(s){const a=es(i);return t.concat(i,i.visualViewport||[],Bn(o)?o:[],a&&n?On(a):[])}return t.concat(o,On(o,[],n))}function es(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function rl(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=Dr(n)!==s||Dr(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Ps(e){return Te(e)?e:e.contextElement}function Yt(e){const t=Ps(e);if(!$e(t))return Me(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=rl(t);let i=(s?Dr(n.width):n.width)/r,a=(s?Dr(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const lm=Me(0);function ol(e){const t=we(e);return!As()||!t.visualViewport?lm:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function um(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=Ps(e);let i=Me(1);t&&(r?Te(r)&&(i=Yt(r)):i=Yt(e));const a=um(s,n,r)?ol(s):Me(0);let c=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,d=o.width/i.x,p=o.height/i.y;if(s){const h=we(s),g=r&&Te(r)?we(r):r;let w=h,f=es(w);for(;f&&r&&g!==w;){const y=Yt(f),C=f.getBoundingClientRect(),x=Ae(f),S=C.left+(f.clientLeft+parseFloat(x.paddingLeft))*y.x,E=C.top+(f.clientTop+parseFloat(x.paddingTop))*y.y;c*=y.x,u*=y.y,d*=y.x,p*=y.y,c+=S,u+=E,w=we(f),f=es(w)}}return Lr({width:d,height:p,x:c,y:u})}function Os(e,t){const n=Yr(e).scrollLeft;return t?t.left+n:$t(Fe(e)).left+n}function sl(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Os(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function dm(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Fe(r),a=t?Kr(t.floating):!1;if(r===i||a&&s)return n;let c={scrollLeft:0,scrollTop:0},u=Me(1);const d=Me(0),p=$e(r);if((p||!p&&!s)&&((vn(r)!=="body"||Bn(i))&&(c=Yr(r)),$e(r))){const g=$t(r);u=Yt(r),d.x=g.x+r.clientLeft,d.y=g.y+r.clientTop}const h=i&&!p&&!s?sl(i,c,!0):Me(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+h.x,y:n.y*u.y-c.scrollTop*u.y+d.y+h.y}}function fm(e){return Array.from(e.getClientRects())}function hm(e){const t=Fe(e),n=Yr(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+Os(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}}function pm(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 u=As();(!u||u&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:s,height:i,x:a,y:c}}const mm=new Set(["absolute","fixed"]);function gm(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,u=r*s.y;return{width:i,height:a,x:c,y:u}}function Zi(e,t,n){let r;if(t==="viewport")r=pm(e,n);else if(t==="document")r=hm(Fe(e));else if(Te(t))r=gm(t,n);else{const o=ol(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Lr(r)}function il(e,t){const n=yt(e);return n===t||!Te(n)||hn(n)?!1:Ae(n).position==="fixed"||il(n,t)}function ym(e,t){const n=t.get(e);if(n)return n;let r=On(e,[],!1).filter(a=>Te(a)&&vn(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=Ts(i);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&mm.has(o.position)||Bn(i)&&!c&&il(e,i))?r=r.filter(d=>d!==i):o=a,i=yt(i)}return t.set(e,r),r}function vm(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Kr(t)?[]:ym(t,this._c):[].concat(n),r],a=i[0],c=i.reduce((u,d)=>{const p=Zi(t,d,o);return u.top=ve(p.top,u.top),u.right=gt(p.right,u.right),u.bottom=gt(p.bottom,u.bottom),u.left=ve(p.left,u.left),u},Zi(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function bm(e){const{width:t,height:n}=rl(e);return{width:t,height:n}}function wm(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 u(){c.x=Os(o)}if(r||!r&&!s)if((vn(t)!=="body"||Bn(o))&&(a=Yr(t)),r){const g=$t(t,!0,s,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else o&&u();s&&!r&&o&&u();const d=o&&!r&&!s?sl(o,a):Me(0),p=i.left+a.scrollLeft-c.x-d.x,h=i.top+a.scrollTop-c.y-d.y;return{x:p,y:h,width:i.width,height:i.height}}function mo(e){return Ae(e).position==="static"}function Xi(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 al(e,t){const n=we(e);if(Kr(e))return n;if(!$e(e)){let o=yt(e);for(;o&&!hn(o);){if(Te(o)&&!mo(o))return o;o=yt(o)}return n}let r=Xi(e,t);for(;r&&nm(r)&&mo(r);)r=Xi(r,t);return r&&hn(r)&&mo(r)&&!Ts(r)?n:r||am(e)||n}const Cm=async function(e){const t=this.getOffsetParent||al,n=this.getDimensions,r=await n(e.floating);return{reference:wm(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function xm(e){return Ae(e).direction==="rtl"}const Em={convertOffsetParentRelativeRectToViewportRelativeRect:dm,getDocumentElement:Fe,getClippingRect:vm,getOffsetParent:al,getElementRects:Cm,getClientRects:fm,getDimensions:bm,getScale:Yt,isElement:Te,isRTL:xm};function cl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Sm(e,t){let n=null,r;const o=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 u=e.getBoundingClientRect(),{left:d,top:p,width:h,height:g}=u;if(a||t(),!h||!g)return;const w=ar(p),f=ar(o.clientWidth-(d+h)),y=ar(o.clientHeight-(p+g)),C=ar(d),S={rootMargin:-w+"px "+-f+"px "+-y+"px "+-C+"px",threshold:ve(0,gt(1,c))||1};let E=!0;function R(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&&!cl(u,e.getBoundingClientRect())&&i(),E=!1}try{n=new IntersectionObserver(R,{...S,root:o.ownerDocument})}catch{n=new IntersectionObserver(R,S)}n.observe(e)}return i(!0),s}function _m(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,u=Ps(e),d=o||s?[...u?On(u):[],...On(t)]:[];d.forEach(C=>{o&&C.addEventListener("scroll",n,{passive:!0}),s&&C.addEventListener("resize",n)});const p=u&&a?Sm(u,n):null;let h=-1,g=null;i&&(g=new ResizeObserver(C=>{let[x]=C;x&&x.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var S;(S=g)==null||S.observe(t)})),n()}),u&&!c&&g.observe(u),g.observe(t));let w,f=c?$t(e):null;c&&y();function y(){const C=$t(e);f&&!cl(f,C)&&n(),f=C,w=requestAnimationFrame(y)}return n(),()=>{var C;d.forEach(x=>{o&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),p==null||p(),(C=g)==null||C.disconnect(),g=null,c&&cancelAnimationFrame(w)}}const Rm=Y1,Tm=Z1,Am=G1,Pm=J1,Om=Q1,Ji=V1,jm=X1,Dm=(e,t,n)=>{const r=new Map,o={platform:Em,...n},s={...o.platform,_c:r};return z1(e,t,{...o,platform:s})};var km=typeof document<"u",Lm=function(){},Er=km?_.useLayoutEffect:Lm;function Ir(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(!Ir(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)&&!Ir(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function ll(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ea(e,t){const n=ll(e);return Math.round(t*n)/n}function go(e){const t=m.useRef(e);return Er(()=>{t.current=e}),t}function Im(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:u}=e,[d,p]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=m.useState(r);Ir(h,r)||g(r);const[w,f]=m.useState(null),[y,C]=m.useState(null),x=m.useCallback(F=>{F!==P.current&&(P.current=F,f(F))},[]),S=m.useCallback(F=>{F!==A.current&&(A.current=F,C(F))},[]),E=s||w,R=i||y,P=m.useRef(null),A=m.useRef(null),I=m.useRef(d),N=c!=null,M=go(c),Q=go(o),K=go(u),W=m.useCallback(()=>{if(!P.current||!A.current)return;const F={placement:t,strategy:n,middleware:h};Q.current&&(F.platform=Q.current),Dm(P.current,A.current,F).then(re=>{const ye={...re,isPositioned:K.current!==!1};V.current&&!Ir(I.current,ye)&&(I.current=ye,ja.flushSync(()=>{p(ye)}))})},[h,t,n,Q,K]);Er(()=>{u===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,p(F=>({...F,isPositioned:!1})))},[u]);const V=m.useRef(!1);Er(()=>(V.current=!0,()=>{V.current=!1}),[]),Er(()=>{if(E&&(P.current=E),R&&(A.current=R),E&&R){if(M.current)return M.current(E,R,W);W()}},[E,R,W,M,N]);const ne=m.useMemo(()=>({reference:P,floating:A,setReference:x,setFloating:S}),[x,S]),Z=m.useMemo(()=>({reference:E,floating:R}),[E,R]),X=m.useMemo(()=>{const F={position:n,left:0,top:0};if(!Z.floating)return F;const re=ea(Z.floating,d.x),ye=ea(Z.floating,d.y);return a?{...F,transform:"translate("+re+"px, "+ye+"px)",...ll(Z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:re,top:ye}},[n,a,Z.floating,d.x,d.y]);return m.useMemo(()=>({...d,update:W,refs:ne,elements:Z,floatingStyles:X}),[d,W,ne,Z,X])}const Nm=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ji({element:r.current,padding:o}).fn(n):{}:r?Ji({element:r,padding:o}).fn(n):{}}}},Mm=(e,t)=>({...Rm(e),options:[e,t]}),$m=(e,t)=>({...Tm(e),options:[e,t]}),Fm=(e,t)=>({...jm(e),options:[e,t]}),Bm=(e,t)=>({...Am(e),options:[e,t]}),Um=(e,t)=>({...Pm(e),options:[e,t]}),Hm=(e,t)=>({...Om(e),options:[e,t]}),Wm=(e,t)=>({...Nm(e),options:[e,t]});var qm="Arrow",ul=m.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return l.jsx(ge.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});ul.displayName=qm;var zm=ul;function Vm(e){const[t,n]=m.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,u=Array.isArray(c)?c[0]:c;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var js="Popper",[dl,fl]=xs(js),[Gm,hl]=dl(js),pl=e=>{const{__scopePopper:t,children:n}=e,[r,o]=m.useState(null);return l.jsx(Gm,{scope:t,anchor:r,onAnchorChange:o,children:n})};pl.displayName=js;var ml="PopperAnchor",gl=m.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=hl(ml,n),i=m.useRef(null),a=Pe(t,i);return m.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:l.jsx(ge.div,{...o,ref:a})});gl.displayName=ml;var Ds="PopperContent",[Qm,Km]=dl(Ds),yl=m.forwardRef((e,t)=>{var Ht,wt,Wt,Ct,zn,Cn;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:g="optimized",onPlaced:w,...f}=e,y=hl(Ds,n),[C,x]=m.useState(null),S=Pe(t,xt=>x(xt)),[E,R]=m.useState(null),P=Vm(E),A=(P==null?void 0:P.width)??0,I=(P==null?void 0:P.height)??0,N=r+(s!=="center"?"-"+s:""),M=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},Q=Array.isArray(u)?u:[u],K=Q.length>0,W={padding:M,boundary:Q.filter(Zm),altBoundary:K},{refs:V,floatingStyles:ne,placement:Z,isPositioned:X,middlewareData:F}=Im({strategy:"fixed",placement:N,whileElementsMounted:(...xt)=>_m(...xt,{animationFrame:g==="always"}),elements:{reference:y.anchor},middleware:[Mm({mainAxis:o+I,alignmentAxis:i}),c&&$m({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Fm():void 0,...W}),c&&Bm({...W}),Um({...W,apply:({elements:xt,rects:Vn,availableWidth:qt,availableHeight:Et})=>{const{width:Gn,height:Qn}=Vn.reference,Ue=xt.floating.style;Ue.setProperty("--radix-popper-available-width",`${qt}px`),Ue.setProperty("--radix-popper-available-height",`${Et}px`),Ue.setProperty("--radix-popper-anchor-width",`${Gn}px`),Ue.setProperty("--radix-popper-anchor-height",`${Qn}px`)}}),E&&Wm({element:E,padding:a}),Xm({arrowWidth:A,arrowHeight:I}),h&&Hm({strategy:"referenceHidden",...W})]}),[re,ye]=wl(Z),bt=fn(w);mt(()=>{X&&(bt==null||bt())},[X,bt]);const Wn=(Ht=F.arrow)==null?void 0:Ht.x,qn=(wt=F.arrow)==null?void 0:wt.y,no=((Wt=F.arrow)==null?void 0:Wt.centerOffset)!==0,[ro,wn]=m.useState();return mt(()=>{C&&wn(window.getComputedStyle(C).zIndex)},[C]),l.jsx("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...ne,transform:X?ne.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ro,"--radix-popper-transform-origin":[(Ct=F.transformOrigin)==null?void 0:Ct.x,(zn=F.transformOrigin)==null?void 0:zn.y].join(" "),...((Cn=F.hide)==null?void 0:Cn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(Qm,{scope:n,placedSide:re,onArrowChange:R,arrowX:Wn,arrowY:qn,shouldHideArrow:no,children:l.jsx(ge.div,{"data-side":re,"data-align":ye,...f,ref:S,style:{...f.style,animation:X?void 0:"none"}})})})});yl.displayName=Ds;var vl="PopperArrow",Ym={top:"bottom",right:"left",bottom:"top",left:"right"},bl=m.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Km(vl,r),i=Ym[s.placedSide];return l.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:l.jsx(zm,{...o,ref:n,style:{...o.style,display:"block"}})})});bl.displayName=vl;function Zm(e){return e!==null}var Xm=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,[u,d]=wl(n),p={start:"0%",center:"50%",end:"100%"}[d],h=(((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="",f="";return u==="bottom"?(w=i?p:`${h}px`,f=`${-c}px`):u==="top"?(w=i?p:`${h}px`,f=`${r.floating.height+c}px`):u==="right"?(w=`${-c}px`,f=i?p:`${g}px`):u==="left"&&(w=`${r.floating.width+c}px`,f=i?p:`${g}px`),{data:{x:w,y:f}}}});function wl(e){const[t,n="center"]=e.split("-");return[t,n]}var Jm=pl,eg=gl,tg=yl,ng=bl,rg="Portal",ks=m.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=m.useState(!1);mt(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Pa.createPortal(l.jsx(ge.div,{...r,ref:t}),i):null});ks.displayName=rg;function og(e,t){return m.useReducer((n,r)=>t[n][r]??n,e)}var bn=e=>{const{present:t,children:n}=e,r=sg(t),o=typeof n=="function"?n({present:r.isPresent}):m.Children.only(n),s=Pe(r.ref,ig(o));return typeof n=="function"||r.isPresent?m.cloneElement(o,{ref:s}):null};bn.displayName="Presence";function sg(e){const[t,n]=m.useState(),r=m.useRef(null),o=m.useRef(e),s=m.useRef("none"),i=e?"mounted":"unmounted",[a,c]=og(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const u=cr(r.current);s.current=a==="mounted"?u:"none"},[a]),mt(()=>{const u=r.current,d=o.current;if(d!==e){const h=s.current,g=cr(u);e?c("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),mt(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,p=g=>{const f=cr(r.current).includes(g.animationName);if(g.target===t&&f&&(c("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},h=g=>{g.target===t&&(s.current=cr(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function cr(e){return(e==null?void 0:e.animationName)||"none"}function ig(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 ag=m[" useInsertionEffect ".trim().toString()]||mt;function Cl({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=cg({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const d=m.useRef(e!==void 0);m.useEffect(()=>{const p=d.current;p!==a&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const u=m.useCallback(d=>{var p;if(a){const h=lg(d)?d(e):d;h!==e&&((p=i.current)==null||p.call(i,h))}else s(d)},[a,e,s,i]);return[c,u]}function cg({defaultProp:e,onChange:t}){const[n,r]=m.useState(e),o=m.useRef(n),s=m.useRef(t);return ag(()=>{s.current=t},[t]),m.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function lg(e){return typeof e=="function"}var ug=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"}),dg="VisuallyHidden",xl=m.forwardRef((e,t)=>l.jsx(ge.span,{...e,ref:t,style:{...ug,...e.style}}));xl.displayName=dg;var fg=xl,[Zr,X0]=xs("Tooltip",[fl]),Xr=fl(),El="TooltipProvider",hg=700,ts="tooltip.open",[pg,Ls]=Zr(El),Sl=e=>{const{__scopeTooltip:t,delayDuration:n=hg,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=m.useRef(!0),a=m.useRef(!1),c=m.useRef(0);return m.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),l.jsx(pg,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:m.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:m.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:m.useCallback(u=>{a.current=u},[]),disableHoverableContent:o,children:s})};Sl.displayName=El;var jn="Tooltip",[mg,Un]=Zr(jn),_l=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:i,delayDuration:a}=e,c=Ls(jn,e.__scopeTooltip),u=Xr(t),[d,p]=m.useState(null),h=xr(),g=m.useRef(0),w=i??c.disableHoverableContent,f=a??c.delayDuration,y=m.useRef(!1),[C,x]=Cl({prop:r,defaultProp:o??!1,onChange:A=>{A?(c.onOpen(),document.dispatchEvent(new CustomEvent(ts))):c.onClose(),s==null||s(A)},caller:jn}),S=m.useMemo(()=>C?y.current?"delayed-open":"instant-open":"closed",[C]),E=m.useCallback(()=>{window.clearTimeout(g.current),g.current=0,y.current=!1,x(!0)},[x]),R=m.useCallback(()=>{window.clearTimeout(g.current),g.current=0,x(!1)},[x]),P=m.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{y.current=!0,x(!0),g.current=0},f)},[f,x]);return m.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),l.jsx(Jm,{...u,children:l.jsx(mg,{scope:t,contentId:h,open:C,stateAttribute:S,trigger:d,onTriggerChange:p,onTriggerEnter:m.useCallback(()=>{c.isOpenDelayedRef.current?P():E()},[c.isOpenDelayedRef,P,E]),onTriggerLeave:m.useCallback(()=>{w?R():(window.clearTimeout(g.current),g.current=0)},[R,w]),onOpen:E,onClose:R,disableHoverableContent:w,children:n})})};_l.displayName=jn;var ns="TooltipTrigger",Rl=m.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Un(ns,n),s=Ls(ns,n),i=Xr(n),a=m.useRef(null),c=Pe(t,a,o.onTriggerChange),u=m.useRef(!1),d=m.useRef(!1),p=m.useCallback(()=>u.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),l.jsx(eg,{asChild:!0,...i,children:l.jsx(ge.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:me(e.onPointerMove,h=>{h.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(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:me(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:me(e.onBlur,o.onClose),onClick:me(e.onClick,o.onClose)})})});Rl.displayName=ns;var Is="TooltipPortal",[gg,yg]=Zr(Is,{forceMount:void 0}),Tl=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=Un(Is,t);return l.jsx(gg,{scope:t,forceMount:n,children:l.jsx(bn,{present:n||s.open,children:l.jsx(ks,{asChild:!0,container:o,children:r})})})};Tl.displayName=Is;var pn="TooltipContent",Al=m.forwardRef((e,t)=>{const n=yg(pn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=Un(pn,e.__scopeTooltip);return l.jsx(bn,{present:r||i.open,children:i.disableHoverableContent?l.jsx(Pl,{side:o,...s,ref:t}):l.jsx(vg,{side:o,...s,ref:t})})}),vg=m.forwardRef((e,t)=>{const n=Un(pn,e.__scopeTooltip),r=Ls(pn,e.__scopeTooltip),o=m.useRef(null),s=Pe(t,o),[i,a]=m.useState(null),{trigger:c,onClose:u}=n,d=o.current,{onPointerInTransitChange:p}=r,h=m.useCallback(()=>{a(null),p(!1)},[p]),g=m.useCallback((w,f)=>{const y=w.currentTarget,C={x:w.clientX,y:w.clientY},x=xg(C,y.getBoundingClientRect()),S=Eg(C,x),E=Sg(f.getBoundingClientRect()),R=Rg([...S,...E]);a(R),p(!0)},[p]);return m.useEffect(()=>()=>h(),[h]),m.useEffect(()=>{if(c&&d){const w=y=>g(y,d),f=y=>g(y,c);return c.addEventListener("pointerleave",w),d.addEventListener("pointerleave",f),()=>{c.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",f)}}},[c,d,g,h]),m.useEffect(()=>{if(i){const w=f=>{const y=f.target,C={x:f.clientX,y:f.clientY},x=(c==null?void 0:c.contains(y))||(d==null?void 0:d.contains(y)),S=!_g(C,i);x?h():S&&(h(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[c,d,i,u,h]),l.jsx(Pl,{...e,ref:s})}),[bg,wg]=Zr(jn,{isInside:!1}),Cg=p1("TooltipContent"),Pl=m.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,c=Un(pn,n),u=Xr(n),{onClose:d}=c;return m.useEffect(()=>(document.addEventListener(ts,d),()=>document.removeEventListener(ts,d)),[d]),m.useEffect(()=>{if(c.trigger){const p=h=>{const g=h.target;g!=null&&g.contains(c.trigger)&&d()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,d]),l.jsx(Es,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:d,children:l.jsxs(tg,{"data-state":c.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[l.jsx(Cg,{children:r}),l.jsx(bg,{scope:n,isInside:!0,children:l.jsx(fg,{id:c.contentId,role:"tooltip",children:o||r})})]})})});Al.displayName=pn;var Ol="TooltipArrow",jl=m.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Xr(n);return wg(Ol,n).isInside?null:l.jsx(ng,{...o,...r,ref:t})});jl.displayName=Ol;function xg(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 Eg(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 Sg(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 _g(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],u=a.x,d=a.y,p=c.x,h=c.y;d>r!=h>r&&n<(p-u)*(r-d)/(h-d)+u&&(o=!o)}return o}function Rg(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),Tg(t)}function Tg(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 Ag=Sl,Pg=_l,Og=Rl,jg=Tl,Dg=Al,kg=jl;const Lg="tooltip__nUuSh",Ig="tooltipArrow__W2w-f",ta={tooltip:Lg,tooltipArrow:Ig},Dl=({children:e,open:t,displayName:n,tooltipContent:r,className:o,disabled:s,delayDuration:i=300,side:a="right",sideOffset:c=0})=>{const[u,d]=_.useState(!1),p=t!==void 0,g=s?!1:p?t:u,w=f=>{s||p||d(f)};return l.jsx(Ag,{delayDuration:i,children:l.jsxs(Pg,{open:g,onOpenChange:w,children:[l.jsx(Og,{asChild:!0,children:e}),l.jsx(jg,{children:l.jsxs(Dg,{className:D(ta.tooltip,o),side:a,sideOffset:c,children:[n,r,l.jsx(kg,{className:ta.tooltipArrow})]})})]})})};Dl.displayName="Tooltip";const Ng="spinner__qa7F6",Mg="rotate__EqlXe",$g="spinner-dark__9A9-q",Fg="spinner-white__gRbtI",Bg="spinner-success__otWGm",Ug="spinner-danger__Bq5DM",Hg="spinner-warning__U900K",na={spinner:Ng,rotate:Mg,"spinner-dark":"spinner-dark__9A9-q",spinnerDark:$g,"spinner-white":"spinner-white__gRbtI",spinnerWhite:Fg,"spinner-success":"spinner-success__otWGm",spinnerSuccess:Bg,"spinner-danger":"spinner-danger__Bq5DM",spinnerDanger:Ug,"spinner-warning":"spinner-warning__U900K",spinnerWarning:Hg},kl=({className:e,color:t="white",size:n=80,thickness:r})=>{const o=D(na.spinner,na[`spinner-${t}`],e),s=r??Math.max(n/12,2);return l.jsx("span",{style:{width:n,height:n,borderWidth:s},className:o})};kl.displayName="Spinner";const Wg="disabled__KpauE",qg="checked__2-JV-",zg="thumb__fEuKD",lr={switch:"switch__0b2av",disabled:Wg,checked:qg,thumb:zg},Ll=_.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":u,...d},p)=>{const[h,g]=_.useState(t),w=e!==void 0,f=w?!!e:h,y=()=>{if(r)return;const x=!f;w||g(x),n==null||n(x)},C=x=>{(x.key===" "||x.key==="Enter")&&(x.preventDefault(),y())};return l.jsx("button",{ref:p,type:"button",role:"switch","aria-checked":f,"aria-label":a,"aria-labelledby":c,"aria-describedby":u,disabled:r,id:o,name:i,className:D(lr.switch,{[lr.checked]:f,[lr.disabled]:r}),onClick:y,onKeyDown:C,...d,children:l.jsx("span",{className:lr.thumb,"aria-hidden":"true"})})});Ll.displayName="Switch";const Vg="tabs-root__ELmdj",Gg="tabs-list__rc10N",Qg="tabs-list--horizontal__e1YW4",Kg="tabs-list--vertical__huK05",Yg="tabs-trigger__D8R4R",Zg="tabs-trigger--disabled__ezDWc",Xg="tabs-trigger--horizontal__4jBFV",Jg="tabs-trigger--active__S-Z-S",ey="tabs-trigger--vertical__dNVIZ",ty="tabs-content__1d77o",Ie={tabsRoot:Vg,tabsList:Gg,tabsListHorizontal:Qg,tabsListVertical:Kg,tabsTrigger:Yg,tabsTriggerDisabled:Zg,tabsTriggerHorizontal:Xg,tabsTriggerActive:Jg,tabsTriggerVertical:ey,tabsContent:ty},Il=_.createContext(null),Ns=()=>{const e=_.useContext(Il);if(!e)throw new Error("Tabs components must be used within a Tabs provider");return e},ny=({defaultValue:e,value:t,onValueChange:n,orientation:r="horizontal",className:o="",children:s})=>{const[i,a]=_.useState(e||""),c=t!==void 0,u=c?t:i,d=p=>{c||a(p),n==null||n(p)};return l.jsx(Il.Provider,{value:{value:u,onValueChange:d,orientation:r},children:l.jsx("div",{className:D(Ie.tabsRoot,o),children:s})})},ry=({className:e="",children:t})=>{const{orientation:n}=Ns(),r=_.useRef(null),o=s=>{var u;const i=(u=r.current)==null?void 0:u.querySelectorAll('[role="tab"]:not([disabled])');if(!i)return;const a=Array.from(i).findIndex(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 l.jsx("div",{ref:r,role:"tablist","aria-orientation":n,onKeyDown:o,className:D(Ie.tabsList,n==="horizontal"?Ie.tabsListHorizontal:Ie.tabsListVertical,e),children:t})},oy=({value:e,disabled:t=!1,className:n="",children:r})=>{const{value:o,onValueChange:s,orientation:i}=Ns(),a=o===e,c=()=>{t||s(e)};return l.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})},sy=({value:e,className:t="",children:n})=>{const{value:r}=Ns();return r===e?l.jsx("div",{role:"tabpanel",id:`content-${e}`,"aria-labelledby":`trigger-${e}`,tabIndex:0,className:D(Ie.tabsContent,t),children:n}):null},Nl=({className:e,state:t="open",onClick:n})=>t==="open"?l.jsxs("svg",{className:e,onClick:n,xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",viewBox:"0 0 14 14",fill:"none",children:[l.jsx("path",{d:"M1.41174 7.41635C1.3323 7.29056 1.29257 7.22766 1.27034 7.13065C1.25364 7.05778 1.25364 6.94287 1.27034 6.87C1.29257 6.77299 1.3323 6.71009 1.41174 6.58431C2.06823 5.54482 4.02232 2.91699 7.00024 2.91699C9.97815 2.91699 11.9322 5.54482 12.5887 6.5843C12.6682 6.71009 12.7079 6.77299 12.7301 6.87C12.7468 6.94287 12.7468 7.05778 12.7301 7.13065C12.7079 7.22766 12.6682 7.29056 12.5887 7.41635C11.9322 8.45584 9.97815 11.0837 7.00024 11.0837C4.02232 11.0837 2.06823 8.45584 1.41174 7.41635Z",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M7.00024 8.75033C7.96673 8.75033 8.75024 7.96682 8.75024 7.00033C8.75024 6.03383 7.96673 5.25033 7.00024 5.25033C6.03374 5.25033 5.25024 6.03383 5.25024 7.00033C5.25024 7.96682 6.03374 8.75033 7.00024 8.75033Z",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})]}):l.jsx("svg",{className:e,onClick:n,xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",viewBox:"0 0 14 14",fill:"none",children:l.jsx("path",{d:"M6.26672 2.97052C6.50379 2.93547 6.74835 2.91667 7.00024 2.91667C9.97816 2.91667 11.9323 5.54449 12.5887 6.58398C12.6682 6.70979 12.7079 6.7727 12.7302 6.86973C12.7469 6.94259 12.7468 7.05755 12.7301 7.13042C12.7079 7.22744 12.6679 7.29077 12.5879 7.41741C12.413 7.69425 12.1463 8.08331 11.793 8.50527M3.92252 3.9171C2.66131 4.77266 1.8051 5.9613 1.41231 6.58308C1.3325 6.70942 1.29259 6.7726 1.27035 6.86961C1.25364 6.94248 1.25363 7.05742 1.27033 7.13029C1.29257 7.22731 1.33229 7.29022 1.41174 7.41602C2.06823 8.45551 4.02232 11.0833 7.00024 11.0833C8.20098 11.0833 9.23526 10.6561 10.0851 10.078M1.75024 1.75L12.2502 12.25M5.76281 5.76256C5.44612 6.07925 5.25024 6.51675 5.25024 7C5.25024 7.9665 6.03374 8.75 7.00024 8.75C7.48349 8.75 7.92099 8.55413 8.23768 8.23744",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})}),iy="PasswordInput__GDJDN",ay="eyeIcon__kDExG",ra={PasswordInput:iy,eyeIcon:ay},cy=_.forwardRef((e,t)=>{const[n,r]=_.useState("password"),o=_.useCallback(()=>{r(s=>s==="password"?"text":"password")},[r]);return l.jsxs("div",{className:D(ra.PasswordInput,e.className),children:[l.jsx(zr,{type:n,...e,ref:t}),l.jsx(Nl,{className:ra.eyeIcon,onClick:o,state:n==="password"?"open":"closed"})]})});var yo="focusScope.autoFocusOnMount",vo="focusScope.autoFocusOnUnmount",oa={bubbles:!1,cancelable:!0},ly="FocusScope",Ml=m.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,c]=m.useState(null),u=fn(o),d=fn(s),p=m.useRef(null),h=Pe(t,f=>c(f)),g=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(r){let f=function(S){if(g.paused||!a)return;const E=S.target;a.contains(E)?p.current=E:Je(p.current,{select:!0})},y=function(S){if(g.paused||!a)return;const E=S.relatedTarget;E!==null&&(a.contains(E)||Je(p.current,{select:!0}))},C=function(S){if(document.activeElement===document.body)for(const R of S)R.removedNodes.length>0&&Je(a)};document.addEventListener("focusin",f),document.addEventListener("focusout",y);const x=new MutationObserver(C);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",y),x.disconnect()}}},[r,a,g.paused]),m.useEffect(()=>{if(a){ia.add(g);const f=document.activeElement;if(!a.contains(f)){const C=new CustomEvent(yo,oa);a.addEventListener(yo,u),a.dispatchEvent(C),C.defaultPrevented||(uy(my($l(a)),{select:!0}),document.activeElement===f&&Je(a))}return()=>{a.removeEventListener(yo,u),setTimeout(()=>{const C=new CustomEvent(vo,oa);a.addEventListener(vo,d),a.dispatchEvent(C),C.defaultPrevented||Je(f??document.body,{select:!0}),a.removeEventListener(vo,d),ia.remove(g)},0)}}},[a,u,d,g]);const w=m.useCallback(f=>{if(!n&&!r||g.paused)return;const y=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,C=document.activeElement;if(y&&C){const x=f.currentTarget,[S,E]=dy(x);S&&E?!f.shiftKey&&C===E?(f.preventDefault(),n&&Je(S,{select:!0})):f.shiftKey&&C===S&&(f.preventDefault(),n&&Je(E,{select:!0})):C===x&&f.preventDefault()}},[n,r,g.paused]);return l.jsx(ge.div,{tabIndex:-1,...i,ref:h,onKeyDown:w})});Ml.displayName=ly;function uy(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Je(r,{select:t}),document.activeElement!==n)return}function dy(e){const t=$l(e),n=sa(t,e),r=sa(t.reverse(),e);return[n,r]}function $l(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 sa(e,t){for(const n of e)if(!fy(n,{upTo:t}))return n}function fy(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 hy(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&&hy(e)&&t&&e.select()}}var ia=py();function py(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=aa(e,t),e.unshift(t)},remove(t){var n;e=aa(e,t),(n=e[0])==null||n.resume()}}}function aa(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function my(e){return e.filter(t=>t.tagName!=="A")}var bo=0;function gy(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ca()),document.body.insertAdjacentElement("beforeend",e[1]??ca()),bo++,()=>{bo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),bo--}},[])}function ca(){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 Sr="right-scroll-bar-position",_r="width-before-scroll-bar",yy="with-scroll-bars-hidden",vy="--removed-body-scroll-bar-size";function wo(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function by(e,t){var n=_.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 wy=typeof window<"u"?m.useLayoutEffect:m.useEffect,la=new WeakMap;function Cy(e,t){var n=by(null,function(r){return e.forEach(function(o){return wo(o,r)})});return wy(function(){var r=la.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||wo(a,null)}),s.forEach(function(a){o.has(a)||wo(a,i)})}la.set(n,e)},[e]),n}function xy(e){return e}function Ey(e,t){t===void 0&&(t=xy);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)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){i.push(d),u()},filter:function(d){return i=i.filter(d),n}}}};return o}function Sy(e){e===void 0&&(e={});var t=Ey(null);return t.options=Le({async:!0,ssr:!1},e),t}var Fl=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 m.createElement(r,Le({},n))};Fl.isSideCarExport=!0;function _y(e,t){return e.useMedium(t),Fl}var Bl=Sy(),Co=function(){},Jr=m.forwardRef(function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:Co,onWheelCapture:Co,onTouchMoveCapture:Co}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,h=e.sideCar,g=e.noRelative,w=e.noIsolation,f=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"]),R=h,P=Cy([n,t]),A=Le(Le({},E),o);return m.createElement(m.Fragment,null,d&&m.createElement(R,{sideCar:Bl,removeScrollBar:u,shards:p,noRelative:g,noIsolation:w,inert:f,setCallbacks:s,allowPinchZoom:!!y,lockRef:n,gapMode:S}),i?m.cloneElement(m.Children.only(a),Le(Le({},A),{ref:P})):m.createElement(x,Le({},A,{className:c,ref:P}),a))});Jr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Jr.classNames={fullWidth:_r,zeroRight:Sr};var Ry=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ty(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ry();return t&&e.setAttribute("nonce",t),e}function Ay(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Py(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Oy=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ty())&&(Ay(t,n),Py(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},jy=function(){var e=Oy();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ul=function(){var e=jy(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Dy={left:0,top:0,right:0,gap:0},xo=function(e){return parseInt(e||"",10)||0},ky=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[xo(n),xo(r),xo(o)]},Ly=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Dy;var t=ky(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])}},Iy=Ul(),Zt="data-scroll-locked",Ny=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
234
- .`.concat(yy,` {
233
+ `,Xn=16,rh=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,containerStyle:s,containerClassName:i})=>{let{toasts:a,handlers:c}=jf(n);return m.createElement("div",{style:{position:"fixed",zIndex:9999,top:Xn,left:Xn,right:Xn,bottom:Xn,pointerEvents:"none",...s},className:i,onMouseEnter:c.startPause,onMouseLeave:c.endPause},a.map(u=>{let d=u.position||t,p=c.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),h=th(d,p);return m.createElement(eh,{id:u.id,key:u.id,onHeightUpdate:c.updateHeight,className:u.visible?nh:"",style:h},u.type==="custom"?Tr(u.message,u):o?o(u):m.createElement(Jf,{toast:u,position:d}))}))},wi=be;const ds=()=>({notify:_.useCallback((t,n,r)=>{n==="warning"||n==="info"?wi(t,{icon:n==="warning"?"⚠️":"ℹ️",style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}}):wi[n](t,{style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}}),r&&console.error(r)},[])});var gn=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 oh(e,t){return typeof e=="function"?e(t):e}function Io(e){return typeof e=="number"&&e>=0&&e!==1/0}function vc(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 Ci(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==fs(i,t.options))return!1}else if(!An(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 xi(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(!An(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function fs(e,t){return((t==null?void 0:t.queryKeyHashFn)||Mt)(e)}function Mt(e){return JSON.stringify(e,(t,n)=>Mo(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function An(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>An(e[n],t[n])):!1}function No(e,t){if(e===t)return e;const n=Ei(e)&&Ei(t);if(n||Mo(e)&&Mo(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 u=0;u<i;u++){const d=n?u:s[u];(!n&&r.includes(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,c++):(a[d]=No(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&c++)}return o===i&&c===o?e:a}return t}function Ar(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Ei(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Mo(e){if(!Si(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Si(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Si(e){return Object.prototype.toString.call(e)==="[object Object]"}function sh(e){return new Promise(t=>{setTimeout(t,e)})}function $o(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){try{return No(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 No(e,t)}return t}function ih(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function ah(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Pr=Symbol();function bc(e,t){return e.queryFn===Pr&&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===Pr?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function wc(e,t){return typeof e=="function"?e(...t):!!e}var Tt,nt,Xt,ba,ch=(ba=class extends gn{constructor(){super();k(this,Tt);k(this,nt);k(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,ba),hs=new ch,Jt,rt,en,wa,lh=(wa=class extends gn{constructor(){super();k(this,Jt,!0);k(this,rt);k(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,wa),Or=new lh;function Fo(){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 uh(e){return Math.min(1e3*2**e,3e4)}function Cc(e){return(e??"online")==="online"?Or.isOnline():!0}var xc=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function fo(e){return e instanceof xc}function Ec(e){let t=!1,n=0,r=!1,o;const s=Fo(),i=f=>{var y;r||(h(new xc(f)),(y=e.abort)==null||y.call(e))},a=()=>{t=!0},c=()=>{t=!1},u=()=>hs.isFocused()&&(e.networkMode==="always"||Or.isOnline())&&e.canRun(),d=()=>Cc(e.networkMode)&&e.canRun(),p=f=>{var y;r||(r=!0,(y=e.onSuccess)==null||y.call(e,f),o==null||o(),s.resolve(f))},h=f=>{var y;r||(r=!0,(y=e.onError)==null||y.call(e,f),o==null||o(),s.reject(f))},g=()=>new Promise(f=>{var y;o=C=>{(r||u())&&f(C)},(y=e.onPause)==null||y.call(e)}).then(()=>{var f;o=void 0,r||(f=e.onContinue)==null||f.call(e)}),w=()=>{if(r)return;let f;const y=n===0?e.initialPromise:void 0;try{f=y??e.fn()}catch(C){f=Promise.reject(C)}Promise.resolve(f).then(p).catch(C=>{var P;if(r)return;const x=e.retry??(Nt?0:3),S=e.retryDelay??uh,E=typeof S=="function"?S(n,C):S,R=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,C);if(t||!R){h(C);return}n++,(P=e.onFail)==null||P.call(e,n,C),sh(E).then(()=>u()?void 0:g()).then(()=>{t?h(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 dh=e=>setTimeout(e,0);function fh(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=dh;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=fh(),At,Ca,Sc=(Ca=class{constructor(){k(this,At)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Io(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,Ca),tn,nn,xe,Pt,se,kn,Ot,Ee,We,xa,hh=(xa=class extends Sc{constructor(t){super();k(this,Ee);k(this,tn);k(this,nn);k(this,xe);k(this,Pt);k(this,se);k(this,kn);k(this,Ot);O(this,Ot,!1),O(this,kn,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,ph(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,kn),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&b(this,xe).remove(this)}setData(t,n){const r=$o(this.state.data,t,this.options);return $(this,Ee,We).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,We).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===Pr||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:!vc(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,We).call(this,{type:"invalidate"})}fetch(t,n){var u,d,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(b(this,se))return b(this,se).continueRetry(),b(this,se).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(g=>g.options.queryFn);h&&this.setOptions(h.options)}Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']");const r=new AbortController,o=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(O(this,Ot,!0),r.signal)})},s=()=>{const h=bc(this.options,n),w=(()=>{const f={client:b(this,Pt),queryKey:this.queryKey,meta:this.meta};return o(f),f})();return O(this,Ot,!1),this.options.persister?this.options.persister(h,w,this):h(w)},a=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:b(this,Pt),state:this.state,fetchFn:s};return o(h),h})();(u=this.options.behavior)==null||u.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,We).call(this,{type:"fetch",meta:(p=a.fetchOptions)==null?void 0:p.meta});const c=h=>{var g,w,f,y;fo(h)&&h.silent||$(this,Ee,We).call(this,{type:"error",error:h}),fo(h)||((w=(g=b(this,xe).config).onError)==null||w.call(g,h,this),(y=(f=b(this,xe).config).onSettled)==null||y.call(f,this.state.data,h,this)),this.scheduleGc()};return O(this,se,Ec({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var g,w,f,y;if(h===void 0){console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(C){c(C);return}(w=(g=b(this,xe).config).onSuccess)==null||w.call(g,h,this),(y=(f=b(this,xe).config).onSettled)==null||y.call(f,h,this.state.error,this),this.scheduleGc()},onError:c,onFail:(h,g)=>{$(this,Ee,We).call(this,{type:"failed",failureCount:h,error:g})},onPause:()=>{$(this,Ee,We).call(this,{type:"pause"})},onContinue:()=>{$(this,Ee,We).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,kn=new WeakMap,Ot=new WeakMap,Ee=new WeakSet,We=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,..._c(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 fo(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})})},xa);function _c(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Cc(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function ph(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,Ea,mh=(Ea=class extends gn{constructor(t={}){super();k(this,je);this.config=t,O(this,je,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??fs(o,n);let i=this.get(s);return i||(i=new hh({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=>Ci(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Ci(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,Ea),De,ce,jt,ke,Xe,Sa,gh=(Sa=class extends Sc{constructor(t){super();k(this,ke);k(this,De);k(this,ce);k(this,jt);this.mutationId=t.mutationId,O(this,ce,t.mutationCache),O(this,De,[]),this.state=t.state||Rc(),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,u,d,p,h,g,w,f,y,C,x,S,E,R,P,A,I;const n=()=>{$(this,ke,Xe).call(this,{type:"continue"})};O(this,jt,Ec({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(N,M)=>{$(this,ke,Xe).call(this,{type:"failed",failureCount:N,error:M})},onPause:()=>{$(this,ke,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,ke,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 M=await((c=(a=this.options).onMutate)==null?void 0:c.call(a,t));M!==this.state.context&&$(this,ke,Xe).call(this,{type:"pending",context:M,variables:t,isPaused:o})}const N=await b(this,jt).start();return await((d=(u=b(this,ce).config).onSuccess)==null?void 0:d.call(u,N,t,this.state.context,this)),await((h=(p=this.options).onSuccess)==null?void 0:h.call(p,N,t,this.state.context)),await((w=(g=b(this,ce).config).onSettled)==null?void 0:w.call(g,N,null,this.state.variables,this.state.context,this)),await((y=(f=this.options).onSettled)==null?void 0:y.call(f,N,null,t,this.state.context)),$(this,ke,Xe).call(this,{type:"success",data:N}),N}catch(N){try{throw await((x=(C=b(this,ce).config).onError)==null?void 0:x.call(C,N,t,this.state.context,this)),await((E=(S=this.options).onError)==null?void 0:E.call(S,N,t,this.state.context)),await((P=(R=b(this,ce).config).onSettled)==null?void 0:P.call(R,void 0,N,this.state.variables,this.state.context,this)),await((I=(A=this.options).onSettled)==null?void 0:I.call(A,void 0,N,t,this.state.context)),N}finally{$(this,ke,Xe).call(this,{type:"error",error:N})}}finally{b(this,ce).runNext(this)}}},De=new WeakMap,ce=new WeakMap,jt=new WeakMap,ke=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})})},Sa);function Rc(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var qe,Se,Ln,_a,yh=(_a=class extends gn{constructor(t={}){super();k(this,qe);k(this,Se);k(this,Ln);this.config=t,O(this,qe,new Set),O(this,Se,new Map),O(this,Ln,0)}build(t,n,r){const o=new gh({mutationCache:this,mutationId:++Kn(this,Ln)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){b(this,qe).add(t);const n=Jn(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,qe).delete(t)){const n=Jn(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=Jn(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=Jn(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,qe).forEach(t=>{this.notify({type:"removed",mutation:t})}),b(this,qe).clear(),b(this,Se).clear()})}getAll(){return Array.from(b(this,qe))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>xi(n,r))}findAll(t={}){return this.getAll().filter(n=>xi(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))))}},qe=new WeakMap,Se=new WeakMap,Ln=new WeakMap,_a);function Jn(e){var t;return(t=e.options.scope)==null?void 0:t.id}function _i(e){return{onFetch:(t,n)=>{var d,p,h,g,w;const r=t.options,o=(h=(p=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:p.fetchMore)==null?void 0:h.direction,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 u=async()=>{let f=!1;const y=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?f=!0:t.signal.addEventListener("abort",()=>{f=!0}),t.signal)})},C=bc(t.options,t.fetchOptions),x=async(S,E,R)=>{if(f)return Promise.reject();if(E==null&&S.pages.length)return Promise.resolve(S);const A=(()=>{const Q={client:t.client,queryKey:t.queryKey,pageParam:E,direction:R?"backward":"forward",meta:t.options.meta};return y(Q),Q})(),I=await C(A),{maxPages:N}=t.options,M=R?ah:ih;return{pages:M(S.pages,I,N),pageParams:M(S.pageParams,E,N)}};if(o&&s.length){const S=o==="backward",E=S?vh:Ri,R={pages:s,pageParams:i},P=E(r,R);a=await x(R,P,S)}else{const S=e??s.length;do{const E=c===0?i[0]??r.initialPageParam:Ri(r,a);if(c>0&&E==null)break;a=await x(a,E),c++}while(c<S)}return a};t.options.persister?t.fetchFn=()=>{var f,y;return(y=(f=t.options).persister)==null?void 0:y.call(f,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Ri(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 vh(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,Ra,bh=(Ra=class{constructor(e={}){k(this,J);k(this,ot);k(this,st);k(this,rn);k(this,on);k(this,it);k(this,sn);k(this,an);O(this,J,e.queryCache||new mh),O(this,ot,e.mutationCache||new yh),O(this,st,e.defaultOptions||{}),O(this,rn,new Map),O(this,on,new Map),O(this,it,0)}mount(){Kn(this,it)._++,b(this,it)===1&&(O(this,sn,hs.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,J).onFocus())})),O(this,an,Or.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,J).onOnline())})))}unmount(){var e,t;Kn(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=oh(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=_i(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ue).catch(ue)}ensureInfiniteQueryData(e){return e.behavior=_i(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Or.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=>{An(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=>{An(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=fs(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===Pr&&(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,Ra),he,U,In,le,Dt,cn,at,ct,Nn,ln,un,kt,Lt,lt,dn,z,Sn,Bo,Uo,Ho,Wo,qo,zo,Vo,Tc,Ta,wh=(Ta=class extends gn{constructor(t,n){super();k(this,z);k(this,he);k(this,U);k(this,In);k(this,le);k(this,Dt);k(this,cn);k(this,at);k(this,ct);k(this,Nn);k(this,ln);k(this,un);k(this,kt);k(this,Lt);k(this,lt);k(this,dn,new Set);this.options=n,O(this,he,t),O(this,ct,null),O(this,at,Fo()),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),Ti(b(this,U),this.options)?$(this,z,Sn).call(this):this.updateResult(),$(this,z,Wo).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Go(b(this,U),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Go(b(this,U),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,$(this,z,qo).call(this),$(this,z,zo).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,Vo).call(this),b(this,U).setOptions(this.options),n._defaulted&&!Ar(this.options,n)&&b(this,he).getQueryCache().notify({type:"observerOptionsUpdated",query:b(this,U),observer:this});const o=this.hasListeners();o&&Ai(b(this,U),r,this.options,n)&&$(this,z,Sn).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,Bo).call(this);const s=$(this,z,Uo).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,Ho).call(this,s)}getOptimisticResult(t){const n=b(this,he).getQueryCache().build(b(this,he),t),r=this.createResult(n,t);return xh(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,Sn).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),b(this,le)))}createResult(t,n){var N;const r=b(this,U),o=this.options,s=b(this,le),i=b(this,Dt),a=b(this,cn),u=t!==r?t.state:b(this,In),{state:d}=t;let p={...d},h=!1,g;if(n._optimisticResults){const M=this.hasListeners(),Q=!M&&Ti(t,n),K=M&&Ai(t,r,n,o);(Q||K)&&(p={...p,..._c(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:w,errorUpdatedAt:f,status:y}=p;g=p.data;let C=!1;if(n.placeholderData!==void 0&&g===void 0&&y==="pending"){let M;s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(M=s.data,C=!0):M=typeof n.placeholderData=="function"?n.placeholderData((N=b(this,un))==null?void 0:N.state.data,b(this,un)):n.placeholderData,M!==void 0&&(y="success",g=$o(s==null?void 0:s.data,M,n),h=!0)}if(n.select&&g!==void 0&&!C)if(s&&g===(i==null?void 0:i.data)&&n.select===b(this,Nn))g=b(this,ln);else try{O(this,Nn,n.select),g=n.select(g),g=$o(s==null?void 0:s.data,g,n),O(this,ln,g),O(this,ct,null)}catch(M){O(this,ct,M)}b(this,ct)&&(w=b(this,ct),g=b(this,ln),f=Date.now(),y="error");const x=p.fetchStatus==="fetching",S=y==="pending",E=y==="error",R=S&&x,P=g!==void 0,I={status:y,fetchStatus:p.fetchStatus,isPending:S,isSuccess:y==="success",isError:E,isInitialLoading:R,isLoading:R,data:g,dataUpdatedAt:p.dataUpdatedAt,error:w,errorUpdatedAt:f,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>u.dataUpdateCount||p.errorUpdateCount>u.errorUpdateCount,isFetching:x,isRefetching:x&&!S,isLoadingError:E&&!P,isPaused:p.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:E&&P,isStale:ps(t,n),refetch:this.refetch,promise:b(this,at)};if(this.options.experimental_prefetchInRender){const M=W=>{I.status==="error"?W.reject(I.error):I.data!==void 0&&W.resolve(I.data)},Q=()=>{const W=O(this,at,I.promise=Fo());M(W)},K=b(this,at);switch(K.status){case"pending":t.queryHash===r.queryHash&&M(K);break;case"fulfilled":(I.status==="error"||I.data!==K.value)&&Q();break;case"rejected":(I.status!=="error"||I.error!==K.reason)&&Q();break}}return I}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)),Ar(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,Tc).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&$(this,z,Wo).call(this)}},he=new WeakMap,U=new WeakMap,In=new WeakMap,le=new WeakMap,Dt=new WeakMap,cn=new WeakMap,at=new WeakMap,ct=new WeakMap,Nn=new WeakMap,ln=new WeakMap,un=new WeakMap,kt=new WeakMap,Lt=new WeakMap,lt=new WeakMap,dn=new WeakMap,z=new WeakSet,Sn=function(t){$(this,z,Vo).call(this);let n=b(this,U).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(ue)),n},Bo=function(){$(this,z,qo).call(this);const t=pt(this.options.staleTime,b(this,U));if(Nt||b(this,le).isStale||!Io(t))return;const r=vc(b(this,le).dataUpdatedAt,t)+1;O(this,kt,setTimeout(()=>{b(this,le).isStale||this.updateResult()},r))},Uo=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(b(this,U)):this.options.refetchInterval)??!1},Ho=function(t){$(this,z,zo).call(this),O(this,lt,t),!(Nt||_e(this.options.enabled,b(this,U))===!1||!Io(b(this,lt))||b(this,lt)===0)&&O(this,Lt,setInterval(()=>{(this.options.refetchIntervalInBackground||hs.isFocused())&&$(this,z,Sn).call(this)},b(this,lt)))},Wo=function(){$(this,z,Bo).call(this),$(this,z,Ho).call(this,$(this,z,Uo).call(this))},qo=function(){b(this,kt)&&(clearTimeout(b(this,kt)),O(this,kt,void 0))},zo=function(){b(this,Lt)&&(clearInterval(b(this,Lt)),O(this,Lt,void 0))},Vo=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,In,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Tc=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"})})},Ta);function Ch(e,t){return _e(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ti(e,t){return Ch(e,t)||e.state.data!==void 0&&Go(e,t,t.refetchOnMount)}function Go(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&&ps(e,t)}return!1}function Ai(e,t,n,r){return(e!==t||_e(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&ps(e,n)}function ps(e,t){return _e(t.enabled,e)!==!1&&e.isStaleByTime(pt(t.staleTime,e))}function xh(e,t){return!Ar(e.getCurrentResult(),t)}var ut,dt,pe,ze,Ge,wr,Qo,Aa,Eh=(Aa=class extends gn{constructor(n,r){super();k(this,Ge);k(this,ut);k(this,dt);k(this,pe);k(this,ze);O(this,ut,n),this.setOptions(r),this.bindMethods(),$(this,Ge,wr).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),Ar(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,wr).call(this),$(this,Ge,Qo).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,wr).call(this),$(this,Ge,Qo).call(this)}mutate(n,r){var o;return O(this,ze,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,ze=new WeakMap,Ge=new WeakSet,wr=function(){var r;const n=((r=b(this,pe))==null?void 0:r.state)??Rc();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})},Qo=function(n){oe.batch(()=>{var r,o,s,i,a,c,u,d;if(b(this,ze)&&this.hasListeners()){const p=b(this,dt).variables,h=b(this,dt).context;(n==null?void 0:n.type)==="success"?((o=(r=b(this,ze)).onSuccess)==null||o.call(r,n.data,p,h),(i=(s=b(this,ze)).onSettled)==null||i.call(s,n.data,null,p,h)):(n==null?void 0:n.type)==="error"&&((c=(a=b(this,ze)).onError)==null||c.call(a,n.error,p,h),(d=(u=b(this,ze)).onSettled)==null||d.call(u,void 0,n.error,p,h))}this.listeners.forEach(p=>{p(b(this,dt))})})},Aa),Ac=m.createContext(void 0),ms=e=>{const t=m.useContext(Ac);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Sh=({client:e,children:t})=>(m.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),l.jsx(Ac.Provider,{value:e,children:t})),Pc=m.createContext(!1),_h=()=>m.useContext(Pc);Pc.Provider;function Rh(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Th=m.createContext(Rh()),Ah=()=>m.useContext(Th),Ph=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Oh=e=>{m.useEffect(()=>{e.clearReset()},[e])},jh=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||wc(n,[e.error,r])),Dh=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))}},kh=(e,t)=>e.isLoading&&e.isFetching&&!t,Lh=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Pi=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Ih(e,t,n){var p,h,g,w,f;if(typeof e!="object"||Array.isArray(e))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=_h(),o=Ah(),s=ms(),i=s.defaultQueryOptions(e);(h=(p=s.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||h.call(p,i),i.queryFn||console.error(`[${i.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`),i._optimisticResults=r?"isRestoring":"optimistic",Dh(i),Ph(i,o),Oh(o);const a=!s.getQueryCache().get(i.queryHash),[c]=m.useState(()=>new t(s,i)),u=c.getOptimisticResult(i),d=!r&&e.subscribed!==!1;if(m.useSyncExternalStore(m.useCallback(y=>{const C=d?c.subscribe(oe.batchCalls(y)):ue;return c.updateResult(),C},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),m.useEffect(()=>{c.setOptions(i)},[i,c]),Lh(i,u))throw Pi(i,c,o);if(jh({result:u,errorResetBoundary:o,throwOnError:i.throwOnError,query:s.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw u.error;if((w=(g=s.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||w.call(g,i,u),i.experimental_prefetchInRender&&!Nt&&kh(u,r)){const y=a?Pi(i,c,o):(f=s.getQueryCache().get(i.queryHash))==null?void 0:f.promise;y==null||y.catch(ue).finally(()=>{c.updateResult()})}return i.notifyOnChangeProps?u:c.trackResult(u)}function Oi(e,t){return Ih(e,wh)}function er(e,t){const n=ms(),[r]=m.useState(()=>new Eh(n,e));m.useEffect(()=>{r.setOptions(e)},[r,e]);const o=m.useSyncExternalStore(m.useCallback(i=>r.subscribe(oe.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=m.useCallback((i,a)=>{r.mutate(i,a).catch(ue)},[r]);if(o.error&&wc(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}const tr={STALE_TIME:1e3*60*5,GC_TIME:1e3*60*10,RETRY_COUNT:1,RETRY_DELAY:1e3},ji={refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,staleTime:tr.STALE_TIME,gcTime:tr.GC_TIME,retry:tr.RETRY_COUNT,retryDelay:tr.RETRY_DELAY,enable:!0},nr=e=>e instanceof Error?e.message:String(e),Oc=(e,t,n)=>{const r=ms(),{notify:o}=ds(),{createFn:s,readFn:i,readByIdFn:a,updateFn:c,deleteFn:u,partialUpdateFn:d}=n,p=()=>{r.invalidateQueries({queryKey:[e]})},h=(E,R,P,A)=>o(A!=null&&A.overrideSuccessMessage?A==null?void 0:A.overrideSuccessMessage(E,R):P,"success"),g=(E,R,P,A)=>o(A!=null&&A.overrideErrorMessage?A==null?void 0:A.overrideErrorMessage(E,R):P,"error");return{useCreate:E=>er({mutationFn:R=>s(R),onSuccess:R=>{p(),h(t,R,`${t} created successfully`,E)},onError:R=>{g(t,R,`Error creating ${t}: ${nr(R)}`,E)}}),useReadQuery:E=>Oi({queryKey:[e],queryFn:i,...ji,...E}),useReadByIdQuery:(E,R)=>Oi({queryKey:[e,E],queryFn:()=>a(E),...ji,enabled:!!E,...R}),useUpdate:E=>er({mutationFn:({id:R,data:P})=>c(R,P),onSuccess:R=>{p(),h(t,R,`${t} updated successfully`,E)},onError:R=>{g(t,R,`Error updating ${t}: ${nr(R)}`,E)}}),usePartialUpdate:E=>d&&er({mutationFn:({id:R,data:P})=>d(R,P),onSuccess:R=>{p(),h(t,R,`${t} updated successfully`,E)},onError:R=>{g(t,R,`Error updating ${t}: ${nr(R)}`,E)}}),useDelete:E=>er({mutationFn:R=>u(R),onSuccess:()=>{p(),h(t,null,`${t} deleted successfully`,E)},onError:R=>{g(t,R,`Error deleting ${t}: ${nr(R)}`,E)}}),invalidateQueries:p}},Nh=(e,t)=>Oc(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())}),Mh={SINGLE_TENANT:"single-tenant"},$h={COOKIE:"cookie"},ho="tenant",Di="tenant",ki="tenant",Fh=Mh.SINGLE_TENANT,Bh=$h.COOKIE,Uh={mode:Fh,clientSideMode:Bh,tenantIDPProvisioningStrategy:"none"};class Hh{setTenant(t,n){const r=new URL(window.location.href);r.searchParams.set(Di,t.name),window.location.href=r.toString()}getCurrentTenantName(){const t=new URL(window.location.href);return new URLSearchParams(t.search).get(Di)}}class Wh{setTenant(t,n){sessionStorage.setItem(ki,t.name),window.location.reload()}getCurrentTenantName(){return sessionStorage.getItem(ki)}}/*! js-cookie v3.0.5 | MIT */function rr(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 qh={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 Ko(e,t){function n(o,s,i){if(!(typeof document>"u")){i=rr({},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("="),u=c.slice(1).join("=");try{var d=decodeURIComponent(c[0]);if(i[d]=e.read(u,d),o===d)break}catch{}}return o?i[o]:i}}return Object.create({set:n,get:r,remove:function(o,s){n(o,"",rr({},s,{expires:-1}))},withAttributes:function(o){return Ko(this.converter,rr({},this.attributes,o))},withConverter:function(o){return Ko(rr({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var po=Ko(qh,{path:"/"});class zh{setTenant(t,n){t?po.set(ho,t.name):po.remove(ho),window.location.reload()}getCurrentTenantName(){return po.get(ho)}}class Vh{extractSubdomain(t){if(t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t))return"";const n=t.split(".");if(n.length<2||n.length===2||n[0]==="www"&&n.length===3)return"";const o=(n[0]==="www"?n.slice(1):n).slice(0,-2);return o.length>0?o.join("."):""}getBaseDomain(t){const n=t.split(".");return t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t)||n.length<=2?t:n.slice(-2).join(".")}setTenant(t,n){var u;const r=(u=n.urlPatterns)==null?void 0:u.find(d=>d.patternType==="subdomain"&&d.tenantId===t.id&&d.isActive);if(!r)throw new Error(`No active subdomain pattern found for tenant '${t.name}'`);const o=new URL(window.location.href),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 Li={queryParams:new Hh,sessionStorage:new Wh,cookie:new zh,subdomain:new Vh},Gh=e=>{const t=Li[e.clientSideMode];if(!t)throw new Error(`Client side tenant mode '${e.clientSideMode}' is not supported ${JSON.stringify({strategies:Li},null,2)}`);return t},Qh=(e,t,n)=>{const r=t.find(s=>s.name===n);if(!r)throw Error("No tenant permission");return Gh(e).setTenant(r,e),r},Kh=()=>{const[e,t]=Fr(),{tenants:n=[],currentTenant:r,tenantConfig:o=Uh}=e,s=_.useCallback(i=>{const a=Qh(o,n,i);t({...e,currentTenant:a})},[o,e]);return{tenants:n,currentTenant:r,tenantConfig:o,selectTenant:s}};function Yh(e){if(!e.ok)throw console.error(e),new Error(e.statusText)}async function or(e,t,n,r){const o=await e(`/user-states/${encodeURIComponent(t)}/${encodeURIComponent(n)}`,r);return Yh(o),o}class sr{static async get(t,n,r){const s=await or(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 or(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 or(t,n,r,s)).json()}static async delete(t,n,r){return await or(t,n,r,{method:"DELETE",headers:{"Content-Type":"application/json"}}),null}}const Zh=e=>{const t=us("@bluealba/pae-nestjs-gateway-service"),n=tc();if(!n)throw new Error("You must call the useUserState hook within a PAE application.");const[r,o]=_.useState(null),[s,i]=_.useState(!1),[a,c]=_.useState(!1),[u,d]=_.useState(null),p=(x,S)=>_.useCallback(async({newValue:E,shouldThrowError:R}={})=>{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),R)throw P;return null}finally{c(!1)}},[t,n,e]),h=p(sr.get,"fetch"),g=p(sr.create,"create"),w=p(sr.update,"update"),f=p(sr.delete,"delete"),y=_.useCallback(async()=>{try{await h()}finally{i(!0)}},[h]);_.useEffect(()=>{y()},[y]);const C=_.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:u,setValue:C,createValue:g,updateValue:w,deleteValue:f}},jc="__PAE_EXTENSION_POINT_REACT_CONTENT_EMPTY__",Xh=({module:e,point:t,children:n})=>(sc(e,t,n??jc),null),Dc=({name:e,children:t,...n})=>{const r=oc(e);if(r===jc)return null;if(!r)return l.jsx(l.Fragment,{children:t??null});if(Jh(r)){const o=r;return l.jsx(o,{...n})}else return r},Jh=e=>typeof e=="function",ep=(e,t)=>{const n=r=>(t=t||e.displayName||e.name||"?",l.jsx(Dc,{name:t,...r,children:l.jsx(e,{...r})}));return n.displayName=`extensionPoint(${t})`,n},Ii="single-spa:app-change";function tp(){const[e,t]=_.useState(Ni());return _.useEffect(()=>{const n=()=>{t(Ni())};return window.addEventListener(Ii,n),()=>{window.removeEventListener(Ii,n)}},[]),e}function Ni(){return mr.getAppNames().reduce((t,n)=>(mr.getAppStatus(n)?t[n]=mr.getAppStatus(n):t[n]="NOT_LOADED",t),{})}function np(e){const n=tp()[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 kc=({appName:e})=>l.jsx("div",{children:l.jsxs("p",{children:["Loading ",e,"..."]})});kc.displayName="BaseLoading";const Lc=({appName:e})=>l.jsxs("div",{children:[l.jsx("p",{children:"Something went wrong..."}),l.jsxs("p",{children:["Failed to load ",e]})]});Lc.displayName="BaseError";const rp={display:"flex",flexDirection:"column",flex:1},Ic=_.forwardRef((e,t)=>l.jsx("div",{ref:t,style:rp,...e}));Ic.displayName="BaseContainer";const op="pae-app:",Nc=_.forwardRef(({appName:e,LoadingComponent:t=kc,ErrorComponent:n=Lc,ContainerComponent:r=Ic,...o},s)=>{const i=np(e);return l.jsxs(r,{ref:s,...o,id:`${op}${e}`,children:[i.isLoading&&l.jsx(t,{appName:e}),i.isBroken&&l.jsx(n,{appName:e})]})});Nc.displayName="ModulePlaceHolder";const gs=({operations:e,children:t,forbiddenContent:n})=>{var o;const{hasAccess:r}=Br();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 l.jsx(s,{operations:e})}else return n({operations:e});return _.isValidElement(n)?n:null}return t};gs.displayName="Authorized";const sp=({eventName:e,listener:t})=>(ic(e,t),null),ip=()=>l.jsx("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:l.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M8.737 8.737a21.49 21.49 0 0 1 3.308-2.724m0 0c3.063-2.026 5.99-2.641 7.331-1.3 1.827 1.828.026 6.591-4.023 10.64-4.049 4.049-8.812 5.85-10.64 4.023-1.33-1.33-.736-4.218 1.249-7.253m6.083-6.11c-3.063-2.026-5.99-2.641-7.331-1.3-1.827 1.828-.026 6.591 4.023 10.64m3.308-9.34a21.497 21.497 0 0 1 3.308 2.724m2.775 3.386c1.985 3.035 2.579 5.923 1.248 7.253-1.336 1.337-4.245.732-7.295-1.275M14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})}),Mc=({applicationName:e})=>{const t=Ka(e);if(t)if(typeof t=="function"){const n=t;return l.jsx(n,{})}else return t;return l.jsx(ip,{})};Mc.displayName="ApplicationIcon";const ap=(e,t)=>{const n=r=>l.jsx(gs,{operations:t,children:l.jsx(e,{...r})});return n.displayName="Authorized",n};function $c(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=$c(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=$c(e))&&(r&&(r+=" "),r+=t);return r}const cp="spinner__fakUN",lp="spinner-rotation__wUmPV",up="button__8FA9H",dp="button--contained-primary__stkTx",fp="button--outlined-primary__KZ1ww",hp="button--text-primary__GLTfm",pp="button--contained-danger__L9ehT",mp="button--outlined-danger__eoYLd",gp="button--text-danger__Sw-ha",yp="icon__--umH",ir={spinner:cp,"spinner-rotation":"spinner-rotation__wUmPV",spinnerRotation:lp,button:up,"button--contained-primary":"button--contained-primary__stkTx",buttonContainedPrimary:dp,"button--outlined-primary":"button--outlined-primary__KZ1ww",buttonOutlinedPrimary:fp,"button--text-primary":"button--text-primary__GLTfm",buttonTextPrimary:hp,"button--contained-danger":"button--contained-danger__L9ehT",buttonContainedDanger:pp,"button--outlined-danger":"button--outlined-danger__eoYLd",buttonOutlinedDanger:mp,"button--text-danger":"button--text-danger__Sw-ha",buttonTextDanger:gp,icon:yp},jr=_.forwardRef(({variant:e="contained",colorScheme:t="primary",loading:n=!1,IconComponent:r,className:o,children:s,...i},a)=>{const c=D(ir.button,ir[`button--${e}-${t}`],o);return l.jsxs("button",{ref:a,className:c,...i,children:[n?l.jsx("div",{className:ir.spinner}):r&&l.jsx(r,{className:ir.icon}),s]})});jr.displayName="Button";const vp="Badges__5jpum",bp="Badges__5jpum",wp="Badge__95MWM",Cp="Badge__95MWM",xp="Badge--primary__Rx-bS",Ep="Badge--secondary__d92bT",Sp="Badge--success__Kdo98",_p="Badge--warning__bf-Nn",Rp="Badge--danger__HTj39",Tp="Badge--small__y93Pj",Ap="Badge--regular__aT5AL",Pp="Badge--large__wORCH",Cr={Badges:vp,badges:bp,Badge:wp,badge:Cp,"Badge--primary":"Badge--primary__Rx-bS",badgePrimary:xp,"Badge--secondary":"Badge--secondary__d92bT",badgeSecondary:Ep,"Badge--success":"Badge--success__Kdo98",badgeSuccess:Sp,"Badge--warning":"Badge--warning__bf-Nn",badgeWarning:_p,"Badge--danger":"Badge--danger__HTj39",badgeDanger:Rp,"Badge--small":"Badge--small__y93Pj",badgeSmall:Tp,"Badge--regular":"Badge--regular__aT5AL",badgeRegular:Ap,"Badge--large":"Badge--large__wORCH",badgeLarge:Pp},Mi={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};var $i={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function Op(e){var d,p;var t,n=[],r=1,o;if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),Mi[e])n=Mi[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 u=o==="cmyk"?4:o==="gray"?1:3;n=t[2].trim().split(/\s*[,\/]\s*|\s+/),o==="color"&&(o=n.shift()),n=n.map(function(h,g){if(h[h.length-1]==="%")return h=parseFloat(h)/100,g===3?h:o==="rgb"?h*255:o[0]==="h"||o[0]==="l"&&!g?h*100:o==="lab"?h*125:o==="lch"?g<2?h*150:h*360:o[0]==="o"&&!g?h:o==="oklab"?h*.4:o==="oklch"?g<2?h*.4:h*360:h;if(o[g]==="h"||g===2&&o[o.length-1]==="h"){if($i[h]!==void 0)return $i[h];if(h.endsWith("deg"))return parseFloat(h);if(h.endsWith("turn"))return parseFloat(h)*360;if(h.endsWith("grad"))return parseFloat(h)*360/400;if(h.endsWith("rad"))return parseFloat(h)*180/Math.PI}return h==="none"?0:parseFloat(h)}),r=n.length>u?n.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(n=e.match(/([0-9]+)/g).map(function(h){return parseFloat(h)}),o=((p=(d=e.match(/([a-z])/ig))==null?void 0:d.join(""))==null?void 0:p.toLowerCase())||"rgb");return{space:o,values:n,alpha:r}}const jp=(e,t)=>{const{space:n,values:r}=Op(e);return n[0]==="h"?`${n}a(${r[0]}, ${r[1]}%, ${r[2]}%, ${t})`:`${n}a(${r}, ${t})`},ys=_.forwardRef(({children:e,color:t,className:n,customColor:r,size:o="small",style:s,...i},a)=>{const c=r?{color:r,background:jp(r,.1)}:{},u=D(Cr.Badge,Cr[`Badge--${o}`],{[Cr[`Badge--${t}`]]:!!t},n);return l.jsx("span",{ref:a,className:u,style:{...s,...c},...i,children:e})});ys.displayName="Badge";const vs=_.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Cr.Badges,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});vs.displayName="Badges";const Fc=({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...s})=>l.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:o,...s,children:[l.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),l.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"})]}),Bc=({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...s})=>l.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:o,...s,children:[l.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),l.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}),l.jsx("path",{d:"m9 12 2 2 4-4"})]}),Dp="CopyToClipboardButton__2Nd2m",kp={CopyToClipboardButton:Dp},Lp=({content:e})=>{const[t,n]=Ip(),{notify:r}=ds(),o=t?Bc:Fc,s=_.useCallback(async()=>{await n(e)&&r("Copied to the Clipboard !","success")},[e,r]);return l.jsx(o,{className:kp.CopyToClipboardButton,size:18,onClick:s})},Ip=()=>{const[e,t]=_.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}}]},Np="FieldGroup__Q2JCV",Mp="FieldGroup__Q2JCV",$p="FieldGroup--horizontal__kpfL1",Fp="FieldGroup--vertical__FLo-Q",Fi={FieldGroup:Np,fieldGroup:Mp,"FieldGroup--horizontal":"FieldGroup--horizontal__kpfL1",fieldGroupHorizontal:$p,"FieldGroup--vertical":"FieldGroup--vertical__FLo-Q",fieldGroupVertical:Fp},Uc=_.forwardRef(({children:e,className:t,orientation:n="vertical",...r},o)=>{const s=D(Fi.FieldGroup,Fi[`FieldGroup--${n}`],t);return l.jsx("div",{ref:o,className:s,...r,children:e})});Uc.displayName="FieldGroup";const Bp="Input__uS0sb",Bi={Input:Bp,Error:"Error__-DQpw"},zr=_.forwardRef(({className:e,error:t,...n},r)=>{const o=D(Bi.Input,t&&Bi.Error,e);return l.jsx("input",{ref:r,className:o,...n})});zr.displayName="Input";const Up={Error:"Error__N4OP5"},Hc=_.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Up.Error,t);return l.jsx("span",{ref:r,className:o,...n,children:e})});Hc.displayName="InputError";const Hp="Label__VYUvW",Ui={Label:Hp,Error:"Error__Eu6DI"},Wc=_.forwardRef(({children:e,className:t,error:n,...r},o)=>{const s=D(Ui.Label,n&&Ui.Error,t);return l.jsx("label",{ref:o,className:s,...r,children:e})});Wc.displayName="Label";const Wp="Select__giqpe",qp="Chevron__YvhBd",Yo={Select:Wp,Chevron:qp},qc=_.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Yo.Option,t);return l.jsx("option",{ref:r,className:o,...n,children:e})});qc.displayName="Option";const bs=_.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Yo.Select,t);return l.jsxs("div",{className:o,children:[l.jsx("select",{ref:r,...n,children:e}),l.jsx("div",{className:Yo.Chevron,children:l.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M4 6L8 10L12 6",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})})]})});bs.displayName="Select";bs.Option=qc;const zp="TextArea__pa-A0",Vp={TextArea:zp},zc=_.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Vp.TextArea,t);return l.jsx("textarea",{ref:r,className:o,...n,children:e})});zc.displayName="TextArea";const Gp="SearchInput__4OFyE",Qp="SearchIcon__YgnQy",Kp="ClearIcon__ukRVr",Yp="SearchInput__ClearIcon__uzVoc",Zp="SearchInput__SearchIcon__zoDG4",En={SearchInput:Gp,SearchIcon:Qp,ClearIcon:Kp,SearchInput__ClearIcon:Yp,SearchInput__SearchIcon:Zp},ws=_.forwardRef(({className:e,placeholder:t="Type to search...",showClearButton:n=!1,showSearchIcon:r=!0,onClear:o,...s},i)=>{const a=D(En.SearchInput,n&&En.SearchInput__ClearIcon,r&&En.SearchInput__SearchIcon,e),c=D(En.SearchIcon),u=D(En.ClearIcon);return l.jsxs("div",{className:a,children:[l.jsx(zr,{ref:i,type:"text",placeholder:t,...s}),r&&l.jsx("svg",{className:c,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M13 13L10.6667 10.6667M12.3333 6.66667C12.3333 9.79628 9.79628 12.3333 6.66667 12.3333C3.53705 12.3333 1 9.79628 1 6.66667C1 3.53705 3.53705 1 6.66667 1C9.79628 1 12.3333 3.53705 12.3333 6.66667Z",stroke:"#A4A4A4",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})}),n&&l.jsx("svg",{className:u,width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:o,children:l.jsx("path",{d:"M7.33334 0.666748L0.666672 7.33341M0.666672 0.666748L7.33334 7.33341",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})]})});ws.displayName="SearchInput";const Xp="SearchAutocomplete__vR9Hk",Jp="AutocompleteItem__YIm7R",e1="AutocompleteHighlighter__LAFTV",t1="AutocompleteHighlighter__match__Wy1o2",n1="DropdownList__-fHIk",r1="AutocompleteItemDescription__4QYN5",It={SearchAutocomplete:Xp,AutocompleteItem:Jp,"AutocompleteItem--canBeSelected":"AutocompleteItem--canBeSelected__jxk4z",AutocompleteHighlighter:e1,AutocompleteHighlighter__match:t1,DropdownList:n1,AutocompleteItemDescription:r1},o1="DropdownList__QTXXX",s1="DropdownList__QTXXX",i1="DropdownList--closed__pdL1Z",a1="DropdownList--open__opzc9",c1="DropdownList--left__xSwXR",Rt={DropdownList:o1,dropdownList:s1,"DropdownList--closed":"DropdownList--closed__pdL1Z",dropdownListClosed:i1,"DropdownList--open":"DropdownList--open__opzc9",dropdownListOpen:a1,"DropdownList--left":"DropdownList--left__xSwXR",dropdownListLeft:c1},Vr=_.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 l.jsx("div",{ref:s,className:i,...o,children:e})});Vr.displayName="DropdownList";const _n=_.forwardRef(({children:e,className:t,canBeSelected:n=!1,...r},o)=>{const s=D(It.AutocompleteItem,{[It["AutocompleteItem--canBeSelected"]]:n},t);return l.jsx("div",{ref:o,className:s,...r,children:e})});_n.displayName="AutocompleteItem";const l1=300,u1={query:"",suggestions:[],loading:!1,error:null},d1=({suggestionFetcher:e,canAdd:t})=>{const[n,r]=_.useState(u1);return _.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()},l1);return()=>{clearTimeout(i)}},[n.query]),{...n,setQuery:s=>{r(i=>({...i,query:s}))}}},Vc=_.forwardRef(({text:e,query:t,className:n,...r},o)=>{const s=D(It.AutocompleteHighlighter,n),i=(a,c)=>{const u=a.toLowerCase().indexOf(c.toLowerCase());if(u===-1||c.length===0)return a;const d=a.slice(0,u),p=a.slice(u,u+c.length),h=a.slice(u+c.length);return l.jsxs(l.Fragment,{children:[d,l.jsx("span",{className:It.AutocompleteHighlighter__match,children:p}),i(h,c)]})};return l.jsx("div",{ref:o,className:s,...r,children:i(e,t)})});Vc.displayName="AutocompleteHighlighter";const f1=5,Gc=_.forwardRef(({children:e,className:t,canAdd:n,maxSuggestionsShown:r=f1,searchInputProps:o,keepSelectedOption:s,suggestionFetcher:i,onAccept:a,...c},u)=>{const{query:d,setQuery:p,suggestions:h,loading:g}=d1({suggestionFetcher:i,canAdd:n}),[w,f]=_.useState(null),y=d.length>0,C=A=>{p(A.target.value)},x=A=>{a==null||a(A),s?(f(A),p(A.value)):p("")},S=()=>{a==null||a(null),f(null),p("")},E=D(It.SearchAutocomplete,t),R=h.slice(0,r),P=h.slice(r);return l.jsxs("div",{ref:u,className:E,...c,children:[l.jsx(ws,{...o,value:d,onChange:C,showClearButton:!!w,onClear:S}),e,l.jsxs(Vr,{className:It.DropdownList,open:y&&!w,role:"listbox","aria-label":"Suggestions",children:[g?l.jsx(_n,{children:"Loading..."}):R.map(A=>l.jsxs(_n,{canBeSelected:!0,onClick:x.bind(null,A),children:[l.jsx(Vc,{text:A.label,query:d}),A.description&&l.jsx("span",{className:It.AutocompleteItemDescription,children:A.description})]},A.value)),!g&&P.length>0&&l.jsxs(_n,{children:[P.length," more results"]}),y&&h.length===0&&!g&&l.jsx(_n,{children:"No results found"})]})]})});Gc.displayName="SearchAutocomplete";const ft=e=>{let t=null,n=null;return _.Children.forEach(e.children,r=>{const o=r.props.condition;o===void 0?n=r:!t&&o===!0&&(t=r)}),l.jsx(l.Fragment,{children:t||n})};ft.displayName="Show";ft.When=({condition:e,children:t})=>l.jsx(l.Fragment,{children:e&&t});ft.Else=({render:e,children:t})=>l.jsx(l.Fragment,{children:e||t});function Hi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Qc(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Hi(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():Hi(e[o],null)}}}}function Pe(...e){return m.useCallback(Qc(...e),e)}function Cs(e){const t=p1(e),n=m.forwardRef((r,o)=>{const{children:s,...i}=r,a=m.Children.toArray(s),c=a.find(g1);if(c){const u=c.props.children,d=a.map(p=>p===c?m.Children.count(u)>1?m.Children.only(null):m.isValidElement(u)?u.props.children:null:p);return l.jsx(t,{...i,ref:o,children:m.isValidElement(u)?m.cloneElement(u,void 0,d):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var h1=Cs("Slot");function p1(e){const t=m.forwardRef((n,r)=>{const{children:o,...s}=n;if(m.isValidElement(o)){const i=v1(o),a=y1(s,o.props);return o.type!==m.Fragment&&(a.ref=r?Qc(r,i):i),m.cloneElement(o,a)}return m.Children.count(o)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Kc=Symbol("radix.slottable");function m1(e){const t=({children:n})=>l.jsx(l.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Kc,t}function g1(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Kc}function y1(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 v1(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 b1="SkeletonListContainer__MKJhE",w1="Skeleton__Ovpiw",Yc={SkeletonListContainer:b1,Skeleton:w1},Gr=_.forwardRef((e,t)=>{const{children:n,className:r,loading:o,height:s=48,width:i,borderRadius:a,style:c,...u}=e;if(!o&&n)return n;const d=_.isValidElement(n)?h1:"span";return l.jsx(d,{ref:t,"aria-hidden":!0,className:D(Yc.Skeleton,r),style:{...c,width:i,minWidth:i,height:s,borderRadius:a},"data-inline-skeleton":_.isValidElement(n)?void 0:!0,tabIndex:-1,...u,children:n})});Gr.displayName="Skeleton";const Zc=e=>{const{numberOfItems:t,itemsGap:n=2,itemProps:r}=e,o=Array.from({length:t},(s,i)=>i+1);return l.jsx("div",{className:D(Yc.SkeletonListContainer),style:{gap:n},children:o.map(s=>l.jsx(Gr,{loading:!0,...r},s))})};Zc.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 C1(e,t){const n=m.createContext(t),r=s=>{const{children:i,...a}=s,c=m.useMemo(()=>a,Object.values(a));return l.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function o(s){const i=m.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 xs(e,t=[]){let n=[];function r(s,i){const a=m.createContext(i),c=n.length;n=[...n,i];const u=p=>{var C;const{scope:h,children:g,...w}=p,f=((C=h==null?void 0:h[e])==null?void 0:C[c])||a,y=m.useMemo(()=>w,Object.values(w));return l.jsx(f.Provider,{value:y,children:g})};u.displayName=s+"Provider";function d(p,h){var f;const g=((f=h==null?void 0:h[e])==null?void 0:f[c])||a,w=m.useContext(g);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[u,d]}const o=()=>{const s=n.map(i=>m.createContext(i));return function(a){const c=(a==null?void 0:a[e])||s;return m.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,x1(o,...t)]}function x1(...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:u})=>{const p=c(s)[`__scope${u}`];return{...a,...p}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}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=Cs(`Primitive.${t}`),r=m.forwardRef((o,s)=>{const{asChild:i,...a}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(c,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function S1(e,t){e&&ja.flushSync(()=>e.dispatchEvent(t))}function fn(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function _1(e,t=globalThis==null?void 0:globalThis.document){const n=fn(e);m.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var R1="DismissableLayer",Zo="dismissableLayer.update",T1="dismissableLayer.pointerDownOutside",A1="dismissableLayer.focusOutside",Wi,Xc=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Es=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...c}=e,u=m.useContext(Xc),[d,p]=m.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=m.useState({}),w=Pe(t,A=>p(A)),f=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),C=f.indexOf(y),x=d?f.indexOf(d):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,E=x>=C,R=j1(A=>{const I=A.target,N=[...u.branches].some(M=>M.contains(I));!E||N||(o==null||o(A),i==null||i(A),A.defaultPrevented||a==null||a())},h),P=D1(A=>{const I=A.target;[...u.branches].some(M=>M.contains(I))||(s==null||s(A),i==null||i(A),A.defaultPrevented||a==null||a())},h);return _1(A=>{x===u.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},h),m.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Wi=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),qi(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Wi)}},[d,h,n,u]),m.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),qi())},[d,u]),m.useEffect(()=>{const A=()=>g({});return document.addEventListener(Zo,A),()=>document.removeEventListener(Zo,A)},[]),l.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,R.onPointerDownCapture)})});Es.displayName=R1;var P1="DismissableLayerBranch",O1=m.forwardRef((e,t)=>{const n=m.useContext(Xc),r=m.useRef(null),o=Pe(t,r);return m.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsx(ge.div,{...e,ref:o})});O1.displayName=P1;function j1(e,t=globalThis==null?void 0:globalThis.document){const n=fn(e),r=m.useRef(!1),o=m.useRef(()=>{});return m.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let c=function(){Jc(T1,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},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=m.useRef(!1);return m.useEffect(()=>{const o=s=>{s.target&&!r.current&&Jc(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 qi(){const e=new CustomEvent(Zo);document.dispatchEvent(e)}function Jc(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?m.useLayoutEffect:()=>{},k1=m[" useId ".trim().toString()]||(()=>{}),L1=0;function xr(e){const[t,n]=m.useState(k1());return mt(()=>{n(r=>r??String(L1++))},[e]),t?`radix-${t}`:""}const I1=["top","right","bottom","left"],gt=Math.min,ve=Math.max,Dr=Math.round,ar=Math.floor,Me=e=>({x:e,y:e}),N1={left:"right",right:"left",bottom:"top",top:"bottom"},M1={start:"end",end:"start"};function Xo(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 yn(e){return e.split("-")[1]}function Ss(e){return e==="x"?"y":"x"}function _s(e){return e==="y"?"height":"width"}const $1=new Set(["top","bottom"]);function Ne(e){return $1.has(Ye(e))?"y":"x"}function Rs(e){return Ss(Ne(e))}function F1(e,t,n){n===void 0&&(n=!1);const r=yn(e),o=Rs(e),s=_s(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=kr(i)),[i,kr(i)]}function B1(e){const t=kr(e);return[Jo(e),t,Jo(t)]}function Jo(e){return e.replace(/start|end/g,t=>M1[t])}const zi=["left","right"],Vi=["right","left"],U1=["top","bottom"],H1=["bottom","top"];function W1(e,t,n){switch(e){case"top":case"bottom":return n?t?Vi:zi:t?zi:Vi;case"left":case"right":return t?U1:H1;default:return[]}}function q1(e,t,n,r){const o=yn(e);let s=W1(Ye(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Jo)))),s}function kr(e){return e.replace(/left|right|bottom|top/g,t=>N1[t])}function z1(e){return{top:0,right:0,bottom:0,left:0,...e}}function el(e){return typeof e!="number"?z1(e):{top:e,right:e,bottom:e,left:e}}function Lr(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 Gi(e,t,n){let{reference:r,floating:o}=e;const s=Ne(t),i=Rs(t),a=_s(i),c=Ye(t),u=s==="y",d=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let 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:p};break;case"left":g={x:r.x-o.width,y:p};break;default:g={x:r.x,y:r.y}}switch(yn(t)){case"start":g[i]-=h*(n&&u?-1:1);break;case"end":g[i]+=h*(n&&u?-1:1);break}return g}const V1=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 u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=Gi(u,r,c),h=r,g={},w=0;for(let f=0;f<a.length;f++){const{name:y,fn:C}=a[f],{x,y:S,data:E,reset:R}=await C({x:d,y:p,initialPlacement:r,placement:h,strategy:o,middlewareData:g,rects:u,platform:i,elements:{reference:e,floating:t}});d=x??d,p=S??p,g={...g,[y]:{...g[y],...E}},R&&w<=50&&(w++,typeof R=="object"&&(R.placement&&(h=R.placement),R.rects&&(u=R.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):R.rects),{x:d,y:p}=Gi(u,h,c)),f=-1)}return{x:d,y:p,placement:h,strategy:o,middlewareData:g}};async function Pn(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:g=0}=Ke(t,e),w=el(g),y=a[h?p==="floating"?"reference":"floating":p],C=Lr(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:u,rootBoundary:d,strategy:c})),x=p==="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},R=Lr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:S,strategy:c}):x);return{top:(C.top-R.top+w.top)/E.y,bottom:(R.bottom-C.bottom+w.bottom)/E.y,left:(C.left-R.left+w.left)/E.x,right:(R.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:u,padding:d=0}=Ke(e,t)||{};if(u==null)return{};const p=el(d),h={x:n,y:r},g=Rs(o),w=_s(g),f=await i.getDimensions(u),y=g==="y",C=y?"top":"left",x=y?"bottom":"right",S=y?"clientHeight":"clientWidth",E=s.reference[w]+s.reference[g]-h[g]-s.floating[w],R=h[g]-s.reference[g],P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let A=P?P[S]:0;(!A||!await(i.isElement==null?void 0:i.isElement(P)))&&(A=a.floating[S]||s.floating[w]);const I=E/2-R/2,N=A/2-f[w]/2-1,M=gt(p[C],N),Q=gt(p[x],N),K=M,W=A-f[w]-Q,V=A/2-f[w]/2+I,ne=Xo(K,V,W),Z=!c.arrow&&yn(o)!=null&&V!==ne&&s.reference[w]/2-(V<K?M:Q)-f[w]/2<0,X=Z?V<K?V-K:V-W:0;return{[g]:h[g]+X,data:{[g]:ne,centerOffset:V-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:u}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:f=!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(u.floating)),R=h||(S||!f?[kr(a)]:B1(a)),P=w!=="none";!h&&P&&R.push(...q1(a,f,w,E));const A=[a,...R],I=await Pn(t,y),N=[];let M=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&N.push(I[C]),p){const V=F1(o,i,E);N.push(I[V[0]],I[V[1]])}if(M=[...M,{placement:o,overflows:N}],!N.every(V=>V<=0)){var Q,K;const V=(((Q=s.flip)==null?void 0:Q.index)||0)+1,ne=A[V];if(ne&&(!(p==="alignment"?x!==Ne(ne):!1)||M.every(F=>Ne(F.placement)===x?F.overflows[0]>0:!0)))return{data:{index:V,overflows:M},reset:{placement:ne}};let Z=(K=M.filter(X=>X.overflows[0]<=0).sort((X,F)=>X.overflows[1]-F.overflows[1])[0])==null?void 0:K.placement;if(!Z)switch(g){case"bestFit":{var W;const X=(W=M.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:W[0];X&&(Z=X);break}case"initialPlacement":Z=a;break}if(o!==Z)return{reset:{placement:Z}}}return{}}}};function Qi(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ki(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 Pn(t,{...o,elementContext:"reference"}),i=Qi(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Ki(i)}}}case"escaped":{const s=await Pn(t,{...o,altBoundary:!0}),i=Qi(s,n.floating);return{data:{escapedOffsets:i,escaped:Ki(i)}}}default:return{}}}}},tl=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=yn(n),c=Ne(n)==="y",u=tl.has(i)?-1:1,d=s&&c?-1:1,p=Ke(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof w=="number"&&(g=a==="end"?w*-1:w),c?{x:g*d,y:h*u}:{x:h*u,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),u={x:n,y:r},d=await Pn(t,c),p=Ne(Ye(o)),h=Ss(p);let g=u[h],w=u[p];if(s){const y=h==="y"?"top":"left",C=h==="y"?"bottom":"right",x=g+d[y],S=g-d[C];g=Xo(x,g,S)}if(i){const y=p==="y"?"top":"left",C=p==="y"?"bottom":"right",x=w+d[y],S=w-d[C];w=Xo(x,w,S)}const f=a.fn({...t,[h]:g,[p]:w});return{...f,data:{x:f.x-n,y:f.y-r,enabled:{[h]:s,[p]: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:u=!0}=Ke(e,t),d={x:n,y:r},p=Ne(o),h=Ss(p);let g=d[h],w=d[p];const f=Ke(a,t),y=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(c){const S=h==="y"?"height":"width",E=s.reference[h]-s.floating[S]+y.mainAxis,R=s.reference[h]+s.reference[S]-y.mainAxis;g<E?g=E:g>R&&(g=R)}if(u){var C,x;const S=h==="y"?"width":"height",E=tl.has(Ye(o)),R=s.reference[p]-s.floating[S]+(E&&((C=i.offset)==null?void 0:C[p])||0)+(E?0:y.crossAxis),P=s.reference[p]+s.reference[S]+(E?0:((x=i.offset)==null?void 0:x[p])||0)-(E?y.crossAxis:0);w<R?w=R:w>P&&(w=P)}return{[h]:g,[p]: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=()=>{},...u}=Ke(e,t),d=await Pn(t,u),p=Ye(o),h=yn(o),g=Ne(o)==="y",{width:w,height:f}=s.floating;let y,C;p==="top"||p==="bottom"?(y=p,C=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(C=p,y=h==="end"?"top":"bottom");const x=f-d.top-d.bottom,S=w-d.left-d.right,E=gt(f-d[y],x),R=gt(w-d[C],S),P=!t.middlewareData.shift;let A=E,I=R;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(I=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=x),P&&!h){const M=ve(d.left,0),Q=ve(d.right,0),K=ve(d.top,0),W=ve(d.bottom,0);g?I=w-2*(M!==0||Q!==0?M+Q:ve(d.left,d.right)):A=f-2*(K!==0||W!==0?K+W:ve(d.top,d.bottom))}await c({...t,availableWidth:I,availableHeight:A});const N=await i.getDimensions(a.floating);return w!==N.width||f!==N.height?{reset:{rects:!0}}:{}}}};function Qr(){return typeof window<"u"}function vn(e){return nl(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=(nl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function nl(e){return Qr()?e instanceof Node||e instanceof we(e).Node:!1}function Te(e){return Qr()?e instanceof Element||e instanceof we(e).Element:!1}function $e(e){return Qr()?e instanceof HTMLElement||e instanceof we(e).HTMLElement:!1}function Yi(e){return!Qr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof we(e).ShadowRoot}const tm=new Set(["inline","contents"]);function Bn(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(vn(e))}const om=[":popover-open",":modal"];function Kr(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 Ts(e){const t=As(),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(Ts(t))return t;if(Kr(t))return null;t=yt(t)}return null}function As(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const lm=new Set(["html","body","#document"]);function hn(e){return lm.has(vn(e))}function Ae(e){return we(e).getComputedStyle(e)}function Yr(e){return Te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function yt(e){if(vn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Yi(e)&&e.host||Fe(e);return Yi(t)?t.host:t}function rl(e){const t=yt(e);return hn(t)?e.ownerDocument?e.ownerDocument.body:e.body:$e(t)&&Bn(t)?t:rl(t)}function On(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=rl(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=we(o);if(s){const a=es(i);return t.concat(i,i.visualViewport||[],Bn(o)?o:[],a&&n?On(a):[])}return t.concat(o,On(o,[],n))}function es(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ol(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=Dr(n)!==s||Dr(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Ps(e){return Te(e)?e:e.contextElement}function Yt(e){const t=Ps(e);if(!$e(t))return Me(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=ol(t);let i=(s?Dr(n.width):n.width)/r,a=(s?Dr(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 sl(e){const t=we(e);return!As()||!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=Ps(e);let i=Me(1);t&&(r?Te(r)&&(i=Yt(r)):i=Yt(e));const a=dm(s,n,r)?sl(s):Me(0);let c=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,d=o.width/i.x,p=o.height/i.y;if(s){const h=we(s),g=r&&Te(r)?we(r):r;let w=h,f=es(w);for(;f&&r&&g!==w;){const y=Yt(f),C=f.getBoundingClientRect(),x=Ae(f),S=C.left+(f.clientLeft+parseFloat(x.paddingLeft))*y.x,E=C.top+(f.clientTop+parseFloat(x.paddingTop))*y.y;c*=y.x,u*=y.y,d*=y.x,p*=y.y,c+=S,u+=E,w=we(f),f=es(w)}}return Lr({width:d,height:p,x:c,y:u})}function Os(e,t){const n=Yr(e).scrollLeft;return t?t.left+n:$t(Fe(e)).left+n}function il(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Os(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function fm(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Fe(r),a=t?Kr(t.floating):!1;if(r===i||a&&s)return n;let c={scrollLeft:0,scrollTop:0},u=Me(1);const d=Me(0),p=$e(r);if((p||!p&&!s)&&((vn(r)!=="body"||Bn(i))&&(c=Yr(r)),$e(r))){const g=$t(r);u=Yt(r),d.x=g.x+r.clientLeft,d.y=g.y+r.clientTop}const h=i&&!p&&!s?il(i,c,!0):Me(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+h.x,y:n.y*u.y-c.scrollTop*u.y+d.y+h.y}}function hm(e){return Array.from(e.getClientRects())}function pm(e){const t=Fe(e),n=Yr(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+Os(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}}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 u=As();(!u||u&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}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,u=r*s.y;return{width:i,height:a,x:c,y:u}}function Zi(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=sl(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Lr(r)}function al(e,t){const n=yt(e);return n===t||!Te(n)||hn(n)?!1:Ae(n).position==="fixed"||al(n,t)}function vm(e,t){const n=t.get(e);if(n)return n;let r=On(e,[],!1).filter(a=>Te(a)&&vn(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=Ts(i);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&gm.has(o.position)||Bn(i)&&!c&&al(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"?Kr(t)?[]:vm(t,this._c):[].concat(n),r],a=i[0],c=i.reduce((u,d)=>{const p=Zi(t,d,o);return u.top=ve(p.top,u.top),u.right=gt(p.right,u.right),u.bottom=gt(p.bottom,u.bottom),u.left=ve(p.left,u.left),u},Zi(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}=ol(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 u(){c.x=Os(o)}if(r||!r&&!s)if((vn(t)!=="body"||Bn(o))&&(a=Yr(t)),r){const g=$t(t,!0,s,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else o&&u();s&&!r&&o&&u();const d=o&&!r&&!s?il(o,a):Me(0),p=i.left+a.scrollLeft-c.x-d.x,h=i.top+a.scrollTop-c.y-d.y;return{x:p,y:h,width:i.width,height:i.height}}function mo(e){return Ae(e).position==="static"}function Xi(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 cl(e,t){const n=we(e);if(Kr(e))return n;if(!$e(e)){let o=yt(e);for(;o&&!hn(o);){if(Te(o)&&!mo(o))return o;o=yt(o)}return n}let r=Xi(e,t);for(;r&&rm(r)&&mo(r);)r=Xi(r,t);return r&&hn(r)&&mo(r)&&!Ts(r)?n:r||cm(e)||n}const xm=async function(e){const t=this.getOffsetParent||cl,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:cl,getElementRects:xm,getClientRects:hm,getDimensions:wm,getScale:Yt,isElement:Te,isRTL:Em};function ll(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 u=e.getBoundingClientRect(),{left:d,top:p,width:h,height:g}=u;if(a||t(),!h||!g)return;const w=ar(p),f=ar(o.clientWidth-(d+h)),y=ar(o.clientHeight-(p+g)),C=ar(d),S={rootMargin:-w+"px "+-f+"px "+-y+"px "+-C+"px",threshold:ve(0,gt(1,c))||1};let E=!0;function R(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&&!ll(u,e.getBoundingClientRect())&&i(),E=!1}try{n=new IntersectionObserver(R,{...S,root:o.ownerDocument})}catch{n=new IntersectionObserver(R,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,u=Ps(e),d=o||s?[...u?On(u):[],...On(t)]:[];d.forEach(C=>{o&&C.addEventListener("scroll",n,{passive:!0}),s&&C.addEventListener("resize",n)});const p=u&&a?_m(u,n):null;let h=-1,g=null;i&&(g=new ResizeObserver(C=>{let[x]=C;x&&x.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var S;(S=g)==null||S.observe(t)})),n()}),u&&!c&&g.observe(u),g.observe(t));let w,f=c?$t(e):null;c&&y();function y(){const C=$t(e);f&&!ll(f,C)&&n(),f=C,w=requestAnimationFrame(y)}return n(),()=>{var C;d.forEach(x=>{o&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),p==null||p(),(C=g)==null||C.disconnect(),g=null,c&&cancelAnimationFrame(w)}}const Tm=Z1,Am=X1,Pm=Q1,Om=em,jm=K1,Ji=G1,Dm=J1,km=(e,t,n)=>{const r=new Map,o={platform:Sm,...n},s={...o.platform,_c:r};return V1(e,t,{...o,platform:s})};var Lm=typeof document<"u",Im=function(){},Er=Lm?_.useLayoutEffect:Im;function Ir(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(!Ir(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)&&!Ir(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function ul(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ea(e,t){const n=ul(e);return Math.round(t*n)/n}function go(e){const t=m.useRef(e);return Er(()=>{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:u}=e,[d,p]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=m.useState(r);Ir(h,r)||g(r);const[w,f]=m.useState(null),[y,C]=m.useState(null),x=m.useCallback(F=>{F!==P.current&&(P.current=F,f(F))},[]),S=m.useCallback(F=>{F!==A.current&&(A.current=F,C(F))},[]),E=s||w,R=i||y,P=m.useRef(null),A=m.useRef(null),I=m.useRef(d),N=c!=null,M=go(c),Q=go(o),K=go(u),W=m.useCallback(()=>{if(!P.current||!A.current)return;const F={placement:t,strategy:n,middleware:h};Q.current&&(F.platform=Q.current),km(P.current,A.current,F).then(re=>{const ye={...re,isPositioned:K.current!==!1};V.current&&!Ir(I.current,ye)&&(I.current=ye,ja.flushSync(()=>{p(ye)}))})},[h,t,n,Q,K]);Er(()=>{u===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,p(F=>({...F,isPositioned:!1})))},[u]);const V=m.useRef(!1);Er(()=>(V.current=!0,()=>{V.current=!1}),[]),Er(()=>{if(E&&(P.current=E),R&&(A.current=R),E&&R){if(M.current)return M.current(E,R,W);W()}},[E,R,W,M,N]);const ne=m.useMemo(()=>({reference:P,floating:A,setReference:x,setFloating:S}),[x,S]),Z=m.useMemo(()=>({reference:E,floating:R}),[E,R]),X=m.useMemo(()=>{const F={position:n,left:0,top:0};if(!Z.floating)return F;const re=ea(Z.floating,d.x),ye=ea(Z.floating,d.y);return a?{...F,transform:"translate("+re+"px, "+ye+"px)",...ul(Z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:re,top:ye}},[n,a,Z.floating,d.x,d.y]);return m.useMemo(()=>({...d,update:W,refs:ne,elements:Z,floatingStyles:X}),[d,W,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?Ji({element:r.current,padding:o}).fn(n):{}:r?Ji({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]}),Hm=(e,t)=>({...Om(e),options:[e,t]}),Wm=(e,t)=>({...jm(e),options:[e,t]}),qm=(e,t)=>({...Mm(e),options:[e,t]});var zm="Arrow",dl=m.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return l.jsx(ge.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});dl.displayName=zm;var Vm=dl;function Gm(e){const[t,n]=m.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,u=Array.isArray(c)?c[0]:c;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var js="Popper",[fl,hl]=xs(js),[Qm,pl]=fl(js),ml=e=>{const{__scopePopper:t,children:n}=e,[r,o]=m.useState(null);return l.jsx(Qm,{scope:t,anchor:r,onAnchorChange:o,children:n})};ml.displayName=js;var gl="PopperAnchor",yl=m.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=pl(gl,n),i=m.useRef(null),a=Pe(t,i);return m.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:l.jsx(ge.div,{...o,ref:a})});yl.displayName=gl;var Ds="PopperContent",[Km,Ym]=fl(Ds),vl=m.forwardRef((e,t)=>{var Ht,wt,Wt,Ct,zn,Cn;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:g="optimized",onPlaced:w,...f}=e,y=pl(Ds,n),[C,x]=m.useState(null),S=Pe(t,xt=>x(xt)),[E,R]=m.useState(null),P=Gm(E),A=(P==null?void 0:P.width)??0,I=(P==null?void 0:P.height)??0,N=r+(s!=="center"?"-"+s:""),M=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},Q=Array.isArray(u)?u:[u],K=Q.length>0,W={padding:M,boundary:Q.filter(Xm),altBoundary:K},{refs:V,floatingStyles:ne,placement:Z,isPositioned:X,middlewareData:F}=Nm({strategy:"fixed",placement:N,whileElementsMounted:(...xt)=>Rm(...xt,{animationFrame:g==="always"}),elements:{reference:y.anchor},middleware:[$m({mainAxis:o+I,alignmentAxis:i}),c&&Fm({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Bm():void 0,...W}),c&&Um({...W}),Hm({...W,apply:({elements:xt,rects:Vn,availableWidth:qt,availableHeight:Et})=>{const{width:Gn,height:Qn}=Vn.reference,Ue=xt.floating.style;Ue.setProperty("--radix-popper-available-width",`${qt}px`),Ue.setProperty("--radix-popper-available-height",`${Et}px`),Ue.setProperty("--radix-popper-anchor-width",`${Gn}px`),Ue.setProperty("--radix-popper-anchor-height",`${Qn}px`)}}),E&&qm({element:E,padding:a}),Jm({arrowWidth:A,arrowHeight:I}),h&&Wm({strategy:"referenceHidden",...W})]}),[re,ye]=Cl(Z),bt=fn(w);mt(()=>{X&&(bt==null||bt())},[X,bt]);const Wn=(Ht=F.arrow)==null?void 0:Ht.x,qn=(wt=F.arrow)==null?void 0:wt.y,no=((Wt=F.arrow)==null?void 0:Wt.centerOffset)!==0,[ro,wn]=m.useState();return mt(()=>{C&&wn(window.getComputedStyle(C).zIndex)},[C]),l.jsx("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...ne,transform:X?ne.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ro,"--radix-popper-transform-origin":[(Ct=F.transformOrigin)==null?void 0:Ct.x,(zn=F.transformOrigin)==null?void 0:zn.y].join(" "),...((Cn=F.hide)==null?void 0:Cn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(Km,{scope:n,placedSide:re,onArrowChange:R,arrowX:Wn,arrowY:qn,shouldHideArrow:no,children:l.jsx(ge.div,{"data-side":re,"data-align":ye,...f,ref:S,style:{...f.style,animation:X?void 0:"none"}})})})});vl.displayName=Ds;var bl="PopperArrow",Zm={top:"bottom",right:"left",bottom:"top",left:"right"},wl=m.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Ym(bl,r),i=Zm[s.placedSide];return l.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:l.jsx(Vm,{...o,ref:n,style:{...o.style,display:"block"}})})});wl.displayName=bl;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,[u,d]=Cl(n),p={start:"0%",center:"50%",end:"100%"}[d],h=(((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="",f="";return u==="bottom"?(w=i?p:`${h}px`,f=`${-c}px`):u==="top"?(w=i?p:`${h}px`,f=`${r.floating.height+c}px`):u==="right"?(w=`${-c}px`,f=i?p:`${g}px`):u==="left"&&(w=`${r.floating.width+c}px`,f=i?p:`${g}px`),{data:{x:w,y:f}}}});function Cl(e){const[t,n="center"]=e.split("-");return[t,n]}var eg=ml,tg=yl,ng=vl,rg=wl,og="Portal",ks=m.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=m.useState(!1);mt(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Pa.createPortal(l.jsx(ge.div,{...r,ref:t}),i):null});ks.displayName=og;function sg(e,t){return m.useReducer((n,r)=>t[n][r]??n,e)}var bn=e=>{const{present:t,children:n}=e,r=ig(t),o=typeof n=="function"?n({present:r.isPresent}):m.Children.only(n),s=Pe(r.ref,ag(o));return typeof n=="function"||r.isPresent?m.cloneElement(o,{ref:s}):null};bn.displayName="Presence";function ig(e){const[t,n]=m.useState(),r=m.useRef(null),o=m.useRef(e),s=m.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 m.useEffect(()=>{const u=cr(r.current);s.current=a==="mounted"?u:"none"},[a]),mt(()=>{const u=r.current,d=o.current;if(d!==e){const h=s.current,g=cr(u);e?c("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),mt(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,p=g=>{const f=cr(r.current).includes(g.animationName);if(g.target===t&&f&&(c("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},h=g=>{g.target===t&&(s.current=cr(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function cr(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=m[" useInsertionEffect ".trim().toString()]||mt;function xl({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=lg({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const d=m.useRef(e!==void 0);m.useEffect(()=>{const p=d.current;p!==a&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const u=m.useCallback(d=>{var p;if(a){const h=ug(d)?d(e):d;h!==e&&((p=i.current)==null||p.call(i,h))}else s(d)},[a,e,s,i]);return[c,u]}function lg({defaultProp:e,onChange:t}){const[n,r]=m.useState(e),o=m.useRef(n),s=m.useRef(t);return cg(()=>{s.current=t},[t]),m.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function ug(e){return typeof e=="function"}var dg=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"}),fg="VisuallyHidden",El=m.forwardRef((e,t)=>l.jsx(ge.span,{...e,ref:t,style:{...dg,...e.style}}));El.displayName=fg;var hg=El,[Zr,J0]=xs("Tooltip",[hl]),Xr=hl(),Sl="TooltipProvider",pg=700,ts="tooltip.open",[mg,Ls]=Zr(Sl),_l=e=>{const{__scopeTooltip:t,delayDuration:n=pg,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=m.useRef(!0),a=m.useRef(!1),c=m.useRef(0);return m.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),l.jsx(mg,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:m.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:m.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:m.useCallback(u=>{a.current=u},[]),disableHoverableContent:o,children:s})};_l.displayName=Sl;var jn="Tooltip",[gg,Un]=Zr(jn),Rl=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:i,delayDuration:a}=e,c=Ls(jn,e.__scopeTooltip),u=Xr(t),[d,p]=m.useState(null),h=xr(),g=m.useRef(0),w=i??c.disableHoverableContent,f=a??c.delayDuration,y=m.useRef(!1),[C,x]=xl({prop:r,defaultProp:o??!1,onChange:A=>{A?(c.onOpen(),document.dispatchEvent(new CustomEvent(ts))):c.onClose(),s==null||s(A)},caller:jn}),S=m.useMemo(()=>C?y.current?"delayed-open":"instant-open":"closed",[C]),E=m.useCallback(()=>{window.clearTimeout(g.current),g.current=0,y.current=!1,x(!0)},[x]),R=m.useCallback(()=>{window.clearTimeout(g.current),g.current=0,x(!1)},[x]),P=m.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{y.current=!0,x(!0),g.current=0},f)},[f,x]);return m.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),l.jsx(eg,{...u,children:l.jsx(gg,{scope:t,contentId:h,open:C,stateAttribute:S,trigger:d,onTriggerChange:p,onTriggerEnter:m.useCallback(()=>{c.isOpenDelayedRef.current?P():E()},[c.isOpenDelayedRef,P,E]),onTriggerLeave:m.useCallback(()=>{w?R():(window.clearTimeout(g.current),g.current=0)},[R,w]),onOpen:E,onClose:R,disableHoverableContent:w,children:n})})};Rl.displayName=jn;var ns="TooltipTrigger",Tl=m.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Un(ns,n),s=Ls(ns,n),i=Xr(n),a=m.useRef(null),c=Pe(t,a,o.onTriggerChange),u=m.useRef(!1),d=m.useRef(!1),p=m.useCallback(()=>u.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),l.jsx(tg,{asChild:!0,...i,children:l.jsx(ge.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:me(e.onPointerMove,h=>{h.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(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:me(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:me(e.onBlur,o.onClose),onClick:me(e.onClick,o.onClose)})})});Tl.displayName=ns;var Is="TooltipPortal",[yg,vg]=Zr(Is,{forceMount:void 0}),Al=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=Un(Is,t);return l.jsx(yg,{scope:t,forceMount:n,children:l.jsx(bn,{present:n||s.open,children:l.jsx(ks,{asChild:!0,container:o,children:r})})})};Al.displayName=Is;var pn="TooltipContent",Pl=m.forwardRef((e,t)=>{const n=vg(pn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=Un(pn,e.__scopeTooltip);return l.jsx(bn,{present:r||i.open,children:i.disableHoverableContent?l.jsx(Ol,{side:o,...s,ref:t}):l.jsx(bg,{side:o,...s,ref:t})})}),bg=m.forwardRef((e,t)=>{const n=Un(pn,e.__scopeTooltip),r=Ls(pn,e.__scopeTooltip),o=m.useRef(null),s=Pe(t,o),[i,a]=m.useState(null),{trigger:c,onClose:u}=n,d=o.current,{onPointerInTransitChange:p}=r,h=m.useCallback(()=>{a(null),p(!1)},[p]),g=m.useCallback((w,f)=>{const y=w.currentTarget,C={x:w.clientX,y:w.clientY},x=Eg(C,y.getBoundingClientRect()),S=Sg(C,x),E=_g(f.getBoundingClientRect()),R=Tg([...S,...E]);a(R),p(!0)},[p]);return m.useEffect(()=>()=>h(),[h]),m.useEffect(()=>{if(c&&d){const w=y=>g(y,d),f=y=>g(y,c);return c.addEventListener("pointerleave",w),d.addEventListener("pointerleave",f),()=>{c.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",f)}}},[c,d,g,h]),m.useEffect(()=>{if(i){const w=f=>{const y=f.target,C={x:f.clientX,y:f.clientY},x=(c==null?void 0:c.contains(y))||(d==null?void 0:d.contains(y)),S=!Rg(C,i);x?h():S&&(h(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[c,d,i,u,h]),l.jsx(Ol,{...e,ref:s})}),[wg,Cg]=Zr(jn,{isInside:!1}),xg=m1("TooltipContent"),Ol=m.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,c=Un(pn,n),u=Xr(n),{onClose:d}=c;return m.useEffect(()=>(document.addEventListener(ts,d),()=>document.removeEventListener(ts,d)),[d]),m.useEffect(()=>{if(c.trigger){const p=h=>{const g=h.target;g!=null&&g.contains(c.trigger)&&d()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,d]),l.jsx(Es,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:d,children:l.jsxs(ng,{"data-state":c.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[l.jsx(xg,{children:r}),l.jsx(wg,{scope:n,isInside:!0,children:l.jsx(hg,{id:c.contentId,role:"tooltip",children:o||r})})]})})});Pl.displayName=pn;var jl="TooltipArrow",Dl=m.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Xr(n);return Cg(jl,n).isInside?null:l.jsx(rg,{...o,...r,ref:t})});Dl.displayName=jl;function Eg(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 Sg(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 _g(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 Rg(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],u=a.x,d=a.y,p=c.x,h=c.y;d>r!=h>r&&n<(p-u)*(r-d)/(h-d)+u&&(o=!o)}return o}function Tg(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),Ag(t)}function Ag(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 Pg=_l,Og=Rl,jg=Tl,Dg=Al,kg=Pl,Lg=Dl;const Ig="tooltip__nUuSh",Ng="tooltipArrow__W2w-f",ta={tooltip:Ig,tooltipArrow:Ng},kl=({children:e,open:t,displayName:n,tooltipContent:r,className:o,disabled:s,delayDuration:i=300,side:a="right",sideOffset:c=0})=>{const[u,d]=_.useState(!1),p=t!==void 0,g=s?!1:p?t:u,w=f=>{s||p||d(f)};return l.jsx(Pg,{delayDuration:i,children:l.jsxs(Og,{open:g,onOpenChange:w,children:[l.jsx(jg,{asChild:!0,children:e}),l.jsx(Dg,{children:l.jsxs(kg,{className:D(ta.tooltip,o),side:a,sideOffset:c,children:[n,r,l.jsx(Lg,{className:ta.tooltipArrow})]})})]})})};kl.displayName="Tooltip";const Mg="spinner__qa7F6",$g="rotate__EqlXe",Fg="spinner-dark__9A9-q",Bg="spinner-white__gRbtI",Ug="spinner-success__otWGm",Hg="spinner-danger__Bq5DM",Wg="spinner-warning__U900K",na={spinner:Mg,rotate:$g,"spinner-dark":"spinner-dark__9A9-q",spinnerDark:Fg,"spinner-white":"spinner-white__gRbtI",spinnerWhite:Bg,"spinner-success":"spinner-success__otWGm",spinnerSuccess:Ug,"spinner-danger":"spinner-danger__Bq5DM",spinnerDanger:Hg,"spinner-warning":"spinner-warning__U900K",spinnerWarning:Wg},Ll=({className:e,color:t="white",size:n=80,thickness:r})=>{const o=D(na.spinner,na[`spinner-${t}`],e),s=r??Math.max(n/12,2);return l.jsx("span",{style:{width:n,height:n,borderWidth:s},className:o})};Ll.displayName="Spinner";const qg="disabled__KpauE",zg="checked__2-JV-",Vg="thumb__fEuKD",lr={switch:"switch__0b2av",disabled:qg,checked:zg,thumb:Vg},Il=_.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":u,...d},p)=>{const[h,g]=_.useState(t),w=e!==void 0,f=w?!!e:h,y=()=>{if(r)return;const x=!f;w||g(x),n==null||n(x)},C=x=>{(x.key===" "||x.key==="Enter")&&(x.preventDefault(),y())};return l.jsx("button",{ref:p,type:"button",role:"switch","aria-checked":f,"aria-label":a,"aria-labelledby":c,"aria-describedby":u,disabled:r,id:o,name:i,className:D(lr.switch,{[lr.checked]:f,[lr.disabled]:r}),onClick:y,onKeyDown:C,...d,children:l.jsx("span",{className:lr.thumb,"aria-hidden":"true"})})});Il.displayName="Switch";const Gg="tabs-root__ELmdj",Qg="tabs-list__rc10N",Kg="tabs-list--horizontal__e1YW4",Yg="tabs-list--vertical__huK05",Zg="tabs-trigger__D8R4R",Xg="tabs-trigger--disabled__ezDWc",Jg="tabs-trigger--horizontal__4jBFV",ey="tabs-trigger--active__S-Z-S",ty="tabs-trigger--vertical__dNVIZ",ny="tabs-content__1d77o",Ie={tabsRoot:Gg,tabsList:Qg,tabsListHorizontal:Kg,tabsListVertical:Yg,tabsTrigger:Zg,tabsTriggerDisabled:Xg,tabsTriggerHorizontal:Jg,tabsTriggerActive:ey,tabsTriggerVertical:ty,tabsContent:ny},Nl=_.createContext(null),Ns=()=>{const e=_.useContext(Nl);if(!e)throw new Error("Tabs components must be used within a Tabs provider");return e},ry=({defaultValue:e,value:t,onValueChange:n,orientation:r="horizontal",className:o="",children:s})=>{const[i,a]=_.useState(e||""),c=t!==void 0,u=c?t:i,d=p=>{c||a(p),n==null||n(p)};return l.jsx(Nl.Provider,{value:{value:u,onValueChange:d,orientation:r},children:l.jsx("div",{className:D(Ie.tabsRoot,o),children:s})})},oy=({className:e="",children:t})=>{const{orientation:n}=Ns(),r=_.useRef(null),o=s=>{var u;const i=(u=r.current)==null?void 0:u.querySelectorAll('[role="tab"]:not([disabled])');if(!i)return;const a=Array.from(i).findIndex(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 l.jsx("div",{ref:r,role:"tablist","aria-orientation":n,onKeyDown:o,className:D(Ie.tabsList,n==="horizontal"?Ie.tabsListHorizontal:Ie.tabsListVertical,e),children:t})},sy=({value:e,disabled:t=!1,className:n="",children:r})=>{const{value:o,onValueChange:s,orientation:i}=Ns(),a=o===e,c=()=>{t||s(e)};return l.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})},iy=({value:e,className:t="",children:n})=>{const{value:r}=Ns();return r===e?l.jsx("div",{role:"tabpanel",id:`content-${e}`,"aria-labelledby":`trigger-${e}`,tabIndex:0,className:D(Ie.tabsContent,t),children:n}):null},Ml=({className:e,state:t="open",onClick:n})=>t==="open"?l.jsxs("svg",{className:e,onClick:n,xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",viewBox:"0 0 14 14",fill:"none",children:[l.jsx("path",{d:"M1.41174 7.41635C1.3323 7.29056 1.29257 7.22766 1.27034 7.13065C1.25364 7.05778 1.25364 6.94287 1.27034 6.87C1.29257 6.77299 1.3323 6.71009 1.41174 6.58431C2.06823 5.54482 4.02232 2.91699 7.00024 2.91699C9.97815 2.91699 11.9322 5.54482 12.5887 6.5843C12.6682 6.71009 12.7079 6.77299 12.7301 6.87C12.7468 6.94287 12.7468 7.05778 12.7301 7.13065C12.7079 7.22766 12.6682 7.29056 12.5887 7.41635C11.9322 8.45584 9.97815 11.0837 7.00024 11.0837C4.02232 11.0837 2.06823 8.45584 1.41174 7.41635Z",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M7.00024 8.75033C7.96673 8.75033 8.75024 7.96682 8.75024 7.00033C8.75024 6.03383 7.96673 5.25033 7.00024 5.25033C6.03374 5.25033 5.25024 6.03383 5.25024 7.00033C5.25024 7.96682 6.03374 8.75033 7.00024 8.75033Z",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})]}):l.jsx("svg",{className:e,onClick:n,xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",viewBox:"0 0 14 14",fill:"none",children:l.jsx("path",{d:"M6.26672 2.97052C6.50379 2.93547 6.74835 2.91667 7.00024 2.91667C9.97816 2.91667 11.9323 5.54449 12.5887 6.58398C12.6682 6.70979 12.7079 6.7727 12.7302 6.86973C12.7469 6.94259 12.7468 7.05755 12.7301 7.13042C12.7079 7.22744 12.6679 7.29077 12.5879 7.41741C12.413 7.69425 12.1463 8.08331 11.793 8.50527M3.92252 3.9171C2.66131 4.77266 1.8051 5.9613 1.41231 6.58308C1.3325 6.70942 1.29259 6.7726 1.27035 6.86961C1.25364 6.94248 1.25363 7.05742 1.27033 7.13029C1.29257 7.22731 1.33229 7.29022 1.41174 7.41602C2.06823 8.45551 4.02232 11.0833 7.00024 11.0833C8.20098 11.0833 9.23526 10.6561 10.0851 10.078M1.75024 1.75L12.2502 12.25M5.76281 5.76256C5.44612 6.07925 5.25024 6.51675 5.25024 7C5.25024 7.9665 6.03374 8.75 7.00024 8.75C7.48349 8.75 7.92099 8.55413 8.23768 8.23744",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})}),ay="PasswordInput__GDJDN",cy="eyeIcon__kDExG",ra={PasswordInput:ay,eyeIcon:cy},ly=_.forwardRef((e,t)=>{const[n,r]=_.useState("password"),o=_.useCallback(()=>{r(s=>s==="password"?"text":"password")},[r]);return l.jsxs("div",{className:D(ra.PasswordInput,e.className),children:[l.jsx(zr,{type:n,...e,ref:t}),l.jsx(Ml,{className:ra.eyeIcon,onClick:o,state:n==="password"?"open":"closed"})]})});var yo="focusScope.autoFocusOnMount",vo="focusScope.autoFocusOnUnmount",oa={bubbles:!1,cancelable:!0},uy="FocusScope",$l=m.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,c]=m.useState(null),u=fn(o),d=fn(s),p=m.useRef(null),h=Pe(t,f=>c(f)),g=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(r){let f=function(S){if(g.paused||!a)return;const E=S.target;a.contains(E)?p.current=E:Je(p.current,{select:!0})},y=function(S){if(g.paused||!a)return;const E=S.relatedTarget;E!==null&&(a.contains(E)||Je(p.current,{select:!0}))},C=function(S){if(document.activeElement===document.body)for(const R of S)R.removedNodes.length>0&&Je(a)};document.addEventListener("focusin",f),document.addEventListener("focusout",y);const x=new MutationObserver(C);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",y),x.disconnect()}}},[r,a,g.paused]),m.useEffect(()=>{if(a){ia.add(g);const f=document.activeElement;if(!a.contains(f)){const C=new CustomEvent(yo,oa);a.addEventListener(yo,u),a.dispatchEvent(C),C.defaultPrevented||(dy(gy(Fl(a)),{select:!0}),document.activeElement===f&&Je(a))}return()=>{a.removeEventListener(yo,u),setTimeout(()=>{const C=new CustomEvent(vo,oa);a.addEventListener(vo,d),a.dispatchEvent(C),C.defaultPrevented||Je(f??document.body,{select:!0}),a.removeEventListener(vo,d),ia.remove(g)},0)}}},[a,u,d,g]);const w=m.useCallback(f=>{if(!n&&!r||g.paused)return;const y=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,C=document.activeElement;if(y&&C){const x=f.currentTarget,[S,E]=fy(x);S&&E?!f.shiftKey&&C===E?(f.preventDefault(),n&&Je(S,{select:!0})):f.shiftKey&&C===S&&(f.preventDefault(),n&&Je(E,{select:!0})):C===x&&f.preventDefault()}},[n,r,g.paused]);return l.jsx(ge.div,{tabIndex:-1,...i,ref:h,onKeyDown:w})});$l.displayName=uy;function dy(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Je(r,{select:t}),document.activeElement!==n)return}function fy(e){const t=Fl(e),n=sa(t,e),r=sa(t.reverse(),e);return[n,r]}function Fl(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 sa(e,t){for(const n of e)if(!hy(n,{upTo:t}))return n}function hy(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 py(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&&py(e)&&t&&e.select()}}var ia=my();function my(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=aa(e,t),e.unshift(t)},remove(t){var n;e=aa(e,t),(n=e[0])==null||n.resume()}}}function aa(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function gy(e){return e.filter(t=>t.tagName!=="A")}var bo=0;function yy(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ca()),document.body.insertAdjacentElement("beforeend",e[1]??ca()),bo++,()=>{bo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),bo--}},[])}function ca(){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 Sr="right-scroll-bar-position",_r="width-before-scroll-bar",vy="with-scroll-bars-hidden",by="--removed-body-scroll-bar-size";function wo(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function wy(e,t){var n=_.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 Cy=typeof window<"u"?m.useLayoutEffect:m.useEffect,la=new WeakMap;function xy(e,t){var n=wy(null,function(r){return e.forEach(function(o){return wo(o,r)})});return Cy(function(){var r=la.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||wo(a,null)}),s.forEach(function(a){o.has(a)||wo(a,i)})}la.set(n,e)},[e]),n}function Ey(e){return e}function Sy(e,t){t===void 0&&(t=Ey);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)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){i.push(d),u()},filter:function(d){return i=i.filter(d),n}}}};return o}function _y(e){e===void 0&&(e={});var t=Sy(null);return t.options=Le({async:!0,ssr:!1},e),t}var Bl=function(e){var t=e.sideCar,n=lc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return m.createElement(r,Le({},n))};Bl.isSideCarExport=!0;function Ry(e,t){return e.useMedium(t),Bl}var Ul=_y(),Co=function(){},Jr=m.forwardRef(function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:Co,onWheelCapture:Co,onTouchMoveCapture:Co}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,h=e.sideCar,g=e.noRelative,w=e.noIsolation,f=e.inert,y=e.allowPinchZoom,C=e.as,x=C===void 0?"div":C,S=e.gapMode,E=lc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=h,P=xy([n,t]),A=Le(Le({},E),o);return m.createElement(m.Fragment,null,d&&m.createElement(R,{sideCar:Ul,removeScrollBar:u,shards:p,noRelative:g,noIsolation:w,inert:f,setCallbacks:s,allowPinchZoom:!!y,lockRef:n,gapMode:S}),i?m.cloneElement(m.Children.only(a),Le(Le({},A),{ref:P})):m.createElement(x,Le({},A,{className:c,ref:P}),a))});Jr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Jr.classNames={fullWidth:_r,zeroRight:Sr};var Ty=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ay(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ty();return t&&e.setAttribute("nonce",t),e}function Py(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Oy(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var jy=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ay())&&(Py(t,n),Oy(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Dy=function(){var e=jy();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Hl=function(){var e=Dy(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},ky={left:0,top:0,right:0,gap:0},xo=function(e){return parseInt(e||"",10)||0},Ly=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[xo(n),xo(r),xo(o)]},Iy=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ky;var t=Ly(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])}},Ny=Hl(),Zt="data-scroll-locked",My=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
234
+ .`.concat(vy,` {
235
235
  overflow: hidden `).concat(r,`;
236
236
  padding-right: `).concat(a,"px ").concat(r,`;
237
237
  }
@@ -265,13 +265,13 @@ to {
265
265
  }
266
266
 
267
267
  body[`).concat(Zt,`] {
268
- `).concat(vy,": ").concat(a,`px;
268
+ `).concat(by,": ").concat(a,`px;
269
269
  }
270
- `)},ua=function(){var e=parseInt(document.body.getAttribute(Zt)||"0",10);return isFinite(e)?e:0},My=function(){m.useEffect(function(){return document.body.setAttribute(Zt,(ua()+1).toString()),function(){var e=ua()-1;e<=0?document.body.removeAttribute(Zt):document.body.setAttribute(Zt,e.toString())}},[])},$y=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;My();var s=m.useMemo(function(){return Ly(o)},[o]);return m.createElement(Iy,{styles:Ny(s,!t,o,n?"":"!important")})},rs=!1;if(typeof window<"u")try{var ur=Object.defineProperty({},"passive",{get:function(){return rs=!0,!0}});window.addEventListener("test",ur,ur),window.removeEventListener("test",ur,ur)}catch{rs=!1}var Gt=rs?{passive:!1}:!1,Fy=function(e){return e.tagName==="TEXTAREA"},Hl=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Fy(e)&&n[t]==="visible")},By=function(e){return Hl(e,"overflowY")},Uy=function(e){return Hl(e,"overflowX")},da=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=ql(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Hy=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Wy=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Wl=function(e,t){return e==="v"?By(t):Uy(t)},ql=function(e,t){return e==="v"?Hy(t):Wy(t)},qy=function(e,t){return e==="h"&&t==="rtl"?-1:1},zy=function(e,t,n,r,o){var s=qy(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,c=t.contains(a),u=!1,d=i>0,p=0,h=0;do{if(!a)break;var g=ql(e,a),w=g[0],f=g[1],y=g[2],C=f-y-s*w;(w||C)&&Wl(e,a)&&(p+=C,h+=w);var x=a.parentNode;a=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(d&&Math.abs(p)<1||!d&&Math.abs(h)<1)&&(u=!0),u},dr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},fa=function(e){return[e.deltaX,e.deltaY]},ha=function(e){return e&&"current"in e?e.current:e},Vy=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Gy=function(e){return`
270
+ `)},ua=function(){var e=parseInt(document.body.getAttribute(Zt)||"0",10);return isFinite(e)?e:0},$y=function(){m.useEffect(function(){return document.body.setAttribute(Zt,(ua()+1).toString()),function(){var e=ua()-1;e<=0?document.body.removeAttribute(Zt):document.body.setAttribute(Zt,e.toString())}},[])},Fy=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;$y();var s=m.useMemo(function(){return Iy(o)},[o]);return m.createElement(Ny,{styles:My(s,!t,o,n?"":"!important")})},rs=!1;if(typeof window<"u")try{var ur=Object.defineProperty({},"passive",{get:function(){return rs=!0,!0}});window.addEventListener("test",ur,ur),window.removeEventListener("test",ur,ur)}catch{rs=!1}var Gt=rs?{passive:!1}:!1,By=function(e){return e.tagName==="TEXTAREA"},Wl=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!By(e)&&n[t]==="visible")},Uy=function(e){return Wl(e,"overflowY")},Hy=function(e){return Wl(e,"overflowX")},da=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=ql(e,r);if(o){var s=zl(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Wy=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},qy=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ql=function(e,t){return e==="v"?Uy(t):Hy(t)},zl=function(e,t){return e==="v"?Wy(t):qy(t)},zy=function(e,t){return e==="h"&&t==="rtl"?-1:1},Vy=function(e,t,n,r,o){var s=zy(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,c=t.contains(a),u=!1,d=i>0,p=0,h=0;do{if(!a)break;var g=zl(e,a),w=g[0],f=g[1],y=g[2],C=f-y-s*w;(w||C)&&ql(e,a)&&(p+=C,h+=w);var x=a.parentNode;a=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(d&&Math.abs(p)<1||!d&&Math.abs(h)<1)&&(u=!0),u},dr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},fa=function(e){return[e.deltaX,e.deltaY]},ha=function(e){return e&&"current"in e?e.current:e},Gy=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Qy=function(e){return`
271
271
  .block-interactivity-`.concat(e,` {pointer-events: none;}
272
272
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
273
- `)},Qy=0,Qt=[];function Ky(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),o=m.useState(Qy++)[0],s=m.useState(Ul)[0],i=m.useRef(e);m.useEffect(function(){i.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var f=Rr([e.lockRef.current],(e.shards||[]).map(ha),!0).filter(Boolean);return f.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=m.useCallback(function(f,y){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!i.current.allowPinchZoom;var C=dr(f),x=n.current,S="deltaX"in f?f.deltaX:x[0]-C[0],E="deltaY"in f?f.deltaY:x[1]-C[1],R,P=f.target,A=Math.abs(S)>Math.abs(E)?"h":"v";if("touches"in f&&A==="h"&&P.type==="range")return!1;var I=da(A,P);if(!I)return!0;if(I?R=A:(R=A==="v"?"h":"v",I=da(A,P)),!I)return!1;if(!r.current&&"changedTouches"in f&&(S||E)&&(r.current=R),!R)return!0;var N=r.current||R;return zy(N,y,f,N==="h"?S:E)},[]),c=m.useCallback(function(f){var y=f;if(!(!Qt.length||Qt[Qt.length-1]!==s)){var C="deltaY"in y?fa(y):dr(y),x=t.current.filter(function(R){return R.name===y.type&&(R.target===y.target||y.target===R.shadowParent)&&Vy(R.delta,C)})[0];if(x&&x.should){y.cancelable&&y.preventDefault();return}if(!x){var S=(i.current.shards||[]).map(ha).filter(Boolean).filter(function(R){return R.contains(y.target)}),E=S.length>0?a(y,S[0]):!i.current.noIsolation;E&&y.cancelable&&y.preventDefault()}}},[]),u=m.useCallback(function(f,y,C,x){var S={name:f,delta:y,target:C,should:x,shadowParent:Yy(C)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(E){return E!==S})},1)},[]),d=m.useCallback(function(f){n.current=dr(f),r.current=void 0},[]),p=m.useCallback(function(f){u(f.type,fa(f),f.target,a(f,e.lockRef.current))},[]),h=m.useCallback(function(f){u(f.type,dr(f),f.target,a(f,e.lockRef.current))},[]);m.useEffect(function(){return Qt.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",c,Gt),document.addEventListener("touchmove",c,Gt),document.addEventListener("touchstart",d,Gt),function(){Qt=Qt.filter(function(f){return f!==s}),document.removeEventListener("wheel",c,Gt),document.removeEventListener("touchmove",c,Gt),document.removeEventListener("touchstart",d,Gt)}},[]);var g=e.removeScrollBar,w=e.inert;return m.createElement(m.Fragment,null,w?m.createElement(s,{styles:Gy(o)}):null,g?m.createElement($y,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Yy(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Zy=_y(Bl,Ky);var zl=m.forwardRef(function(e,t){return m.createElement(Jr,Le({},e,{ref:t,sideCar:Zy}))});zl.classNames=Jr.classNames;var Xy=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Kt=new WeakMap,fr=new WeakMap,hr={},Eo=0,Vl=function(e){return e&&(e.host||Vl(e.parentNode))},Jy=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})},ev=function(e,t,n,r){var o=Jy(t,Array.isArray(e)?e:[e]);hr[n]||(hr[n]=new WeakMap);var s=hr[n],i=[],a=new Set,c=new Set(o),u=function(p){!p||a.has(p)||(a.add(p),u(p.parentNode))};o.forEach(u);var d=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(h){if(a.has(h))d(h);else try{var g=h.getAttribute(r),w=g!==null&&g!=="false",f=(Kt.get(h)||0)+1,y=(s.get(h)||0)+1;Kt.set(h,f),s.set(h,y),i.push(h),f===1&&w&&fr.set(h,!0),y===1&&h.setAttribute(n,"true"),w||h.setAttribute(r,"true")}catch(C){console.error("aria-hidden: cannot operate on ",h,C)}})};return d(t),a.clear(),Eo++,function(){i.forEach(function(p){var h=Kt.get(p)-1,g=s.get(p)-1;Kt.set(p,h),s.set(p,g),h||(fr.has(p)||p.removeAttribute(r),fr.delete(p)),g||p.removeAttribute(n)}),Eo--,Eo||(Kt=new WeakMap,Kt=new WeakMap,fr=new WeakMap,hr={})}},tv=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Xy(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),ev(r,o,n,"aria-hidden")):function(){return null}},eo="Dialog",[Gl,J0]=xs(eo),[nv,Oe]=Gl(eo),Ql=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,a=m.useRef(null),c=m.useRef(null),[u,d]=Cl({prop:r,defaultProp:o??!1,onChange:s,caller:eo});return l.jsx(nv,{scope:t,triggerRef:a,contentRef:c,contentId:xr(),titleId:xr(),descriptionId:xr(),open:u,onOpenChange:d,onOpenToggle:m.useCallback(()=>d(p=>!p),[d]),modal:i,children:n})};Ql.displayName=eo;var Kl="DialogTrigger",rv=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe(Kl,n),s=Pe(t,o.triggerRef);return l.jsx(ge.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Fs(o.open),...r,ref:s,onClick:me(e.onClick,o.onOpenToggle)})});rv.displayName=Kl;var Ms="DialogPortal",[ov,Yl]=Gl(Ms,{forceMount:void 0}),Zl=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Oe(Ms,t);return l.jsx(ov,{scope:t,forceMount:n,children:m.Children.map(r,i=>l.jsx(bn,{present:n||s.open,children:l.jsx(ks,{asChild:!0,container:o,children:i})}))})};Zl.displayName=Ms;var Nr="DialogOverlay",Xl=m.forwardRef((e,t)=>{const n=Yl(Nr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Oe(Nr,e.__scopeDialog);return s.modal?l.jsx(bn,{present:r||s.open,children:l.jsx(iv,{...o,ref:t})}):null});Xl.displayName=Nr;var sv=Cs("DialogOverlay.RemoveScroll"),iv=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe(Nr,n);return l.jsx(zl,{as:sv,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsx(ge.div,{"data-state":Fs(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ft="DialogContent",Jl=m.forwardRef((e,t)=>{const n=Yl(Ft,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Oe(Ft,e.__scopeDialog);return l.jsx(bn,{present:r||s.open,children:s.modal?l.jsx(av,{...o,ref:t}):l.jsx(cv,{...o,ref:t})})});Jl.displayName=Ft;var av=m.forwardRef((e,t)=>{const n=Oe(Ft,e.__scopeDialog),r=m.useRef(null),o=Pe(t,n.contentRef,r);return m.useEffect(()=>{const s=r.current;if(s)return tv(s)},[]),l.jsx(eu,{...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())})}),cv=m.forwardRef((e,t)=>{const n=Oe(Ft,e.__scopeDialog),r=m.useRef(!1),o=m.useRef(!1);return l.jsx(eu,{...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,u;(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;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),eu=m.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,a=Oe(Ft,n),c=m.useRef(null),u=Pe(t,c);return gy(),l.jsxs(l.Fragment,{children:[l.jsx(Ml,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:l.jsx(Es,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Fs(a.open),...i,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(lv,{titleId:a.titleId}),l.jsx(dv,{contentRef:c,descriptionId:a.descriptionId})]})]})}),$s="DialogTitle",tu=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe($s,n);return l.jsx(ge.h2,{id:o.titleId,...r,ref:t})});tu.displayName=$s;var nu="DialogDescription",ru=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe(nu,n);return l.jsx(ge.p,{id:o.descriptionId,...r,ref:t})});ru.displayName=nu;var ou="DialogClose",su=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe(ou,n);return l.jsx(ge.button,{type:"button",...r,ref:t,onClick:me(e.onClick,()=>o.onOpenChange(!1))})});su.displayName=ou;function Fs(e){return e?"open":"closed"}var iu="DialogTitleWarning",[e2,au]=w1(iu,{contentName:Ft,titleName:$s,docsSlug:"dialog"}),lv=({titleId:e})=>{const t=au(iu),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
273
+ `)},Ky=0,Qt=[];function Yy(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),o=m.useState(Ky++)[0],s=m.useState(Hl)[0],i=m.useRef(e);m.useEffect(function(){i.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var f=Rr([e.lockRef.current],(e.shards||[]).map(ha),!0).filter(Boolean);return f.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=m.useCallback(function(f,y){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!i.current.allowPinchZoom;var C=dr(f),x=n.current,S="deltaX"in f?f.deltaX:x[0]-C[0],E="deltaY"in f?f.deltaY:x[1]-C[1],R,P=f.target,A=Math.abs(S)>Math.abs(E)?"h":"v";if("touches"in f&&A==="h"&&P.type==="range")return!1;var I=da(A,P);if(!I)return!0;if(I?R=A:(R=A==="v"?"h":"v",I=da(A,P)),!I)return!1;if(!r.current&&"changedTouches"in f&&(S||E)&&(r.current=R),!R)return!0;var N=r.current||R;return Vy(N,y,f,N==="h"?S:E)},[]),c=m.useCallback(function(f){var y=f;if(!(!Qt.length||Qt[Qt.length-1]!==s)){var C="deltaY"in y?fa(y):dr(y),x=t.current.filter(function(R){return R.name===y.type&&(R.target===y.target||y.target===R.shadowParent)&&Gy(R.delta,C)})[0];if(x&&x.should){y.cancelable&&y.preventDefault();return}if(!x){var S=(i.current.shards||[]).map(ha).filter(Boolean).filter(function(R){return R.contains(y.target)}),E=S.length>0?a(y,S[0]):!i.current.noIsolation;E&&y.cancelable&&y.preventDefault()}}},[]),u=m.useCallback(function(f,y,C,x){var S={name:f,delta:y,target:C,should:x,shadowParent:Zy(C)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(E){return E!==S})},1)},[]),d=m.useCallback(function(f){n.current=dr(f),r.current=void 0},[]),p=m.useCallback(function(f){u(f.type,fa(f),f.target,a(f,e.lockRef.current))},[]),h=m.useCallback(function(f){u(f.type,dr(f),f.target,a(f,e.lockRef.current))},[]);m.useEffect(function(){return Qt.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",c,Gt),document.addEventListener("touchmove",c,Gt),document.addEventListener("touchstart",d,Gt),function(){Qt=Qt.filter(function(f){return f!==s}),document.removeEventListener("wheel",c,Gt),document.removeEventListener("touchmove",c,Gt),document.removeEventListener("touchstart",d,Gt)}},[]);var g=e.removeScrollBar,w=e.inert;return m.createElement(m.Fragment,null,w?m.createElement(s,{styles:Qy(o)}):null,g?m.createElement(Fy,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Zy(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Xy=Ry(Ul,Yy);var Vl=m.forwardRef(function(e,t){return m.createElement(Jr,Le({},e,{ref:t,sideCar:Xy}))});Vl.classNames=Jr.classNames;var Jy=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Kt=new WeakMap,fr=new WeakMap,hr={},Eo=0,Gl=function(e){return e&&(e.host||Gl(e.parentNode))},ev=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Gl(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})},tv=function(e,t,n,r){var o=ev(t,Array.isArray(e)?e:[e]);hr[n]||(hr[n]=new WeakMap);var s=hr[n],i=[],a=new Set,c=new Set(o),u=function(p){!p||a.has(p)||(a.add(p),u(p.parentNode))};o.forEach(u);var d=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(h){if(a.has(h))d(h);else try{var g=h.getAttribute(r),w=g!==null&&g!=="false",f=(Kt.get(h)||0)+1,y=(s.get(h)||0)+1;Kt.set(h,f),s.set(h,y),i.push(h),f===1&&w&&fr.set(h,!0),y===1&&h.setAttribute(n,"true"),w||h.setAttribute(r,"true")}catch(C){console.error("aria-hidden: cannot operate on ",h,C)}})};return d(t),a.clear(),Eo++,function(){i.forEach(function(p){var h=Kt.get(p)-1,g=s.get(p)-1;Kt.set(p,h),s.set(p,g),h||(fr.has(p)||p.removeAttribute(r),fr.delete(p)),g||p.removeAttribute(n)}),Eo--,Eo||(Kt=new WeakMap,Kt=new WeakMap,fr=new WeakMap,hr={})}},nv=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Jy(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),tv(r,o,n,"aria-hidden")):function(){return null}},eo="Dialog",[Ql,e2]=xs(eo),[rv,Oe]=Ql(eo),Kl=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,a=m.useRef(null),c=m.useRef(null),[u,d]=xl({prop:r,defaultProp:o??!1,onChange:s,caller:eo});return l.jsx(rv,{scope:t,triggerRef:a,contentRef:c,contentId:xr(),titleId:xr(),descriptionId:xr(),open:u,onOpenChange:d,onOpenToggle:m.useCallback(()=>d(p=>!p),[d]),modal:i,children:n})};Kl.displayName=eo;var Yl="DialogTrigger",ov=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe(Yl,n),s=Pe(t,o.triggerRef);return l.jsx(ge.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Fs(o.open),...r,ref:s,onClick:me(e.onClick,o.onOpenToggle)})});ov.displayName=Yl;var Ms="DialogPortal",[sv,Zl]=Ql(Ms,{forceMount:void 0}),Xl=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Oe(Ms,t);return l.jsx(sv,{scope:t,forceMount:n,children:m.Children.map(r,i=>l.jsx(bn,{present:n||s.open,children:l.jsx(ks,{asChild:!0,container:o,children:i})}))})};Xl.displayName=Ms;var Nr="DialogOverlay",Jl=m.forwardRef((e,t)=>{const n=Zl(Nr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Oe(Nr,e.__scopeDialog);return s.modal?l.jsx(bn,{present:r||s.open,children:l.jsx(av,{...o,ref:t})}):null});Jl.displayName=Nr;var iv=Cs("DialogOverlay.RemoveScroll"),av=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe(Nr,n);return l.jsx(Vl,{as:iv,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsx(ge.div,{"data-state":Fs(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ft="DialogContent",eu=m.forwardRef((e,t)=>{const n=Zl(Ft,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Oe(Ft,e.__scopeDialog);return l.jsx(bn,{present:r||s.open,children:s.modal?l.jsx(cv,{...o,ref:t}):l.jsx(lv,{...o,ref:t})})});eu.displayName=Ft;var cv=m.forwardRef((e,t)=>{const n=Oe(Ft,e.__scopeDialog),r=m.useRef(null),o=Pe(t,n.contentRef,r);return m.useEffect(()=>{const s=r.current;if(s)return nv(s)},[]),l.jsx(tu,{...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())})}),lv=m.forwardRef((e,t)=>{const n=Oe(Ft,e.__scopeDialog),r=m.useRef(!1),o=m.useRef(!1);return l.jsx(tu,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var c,u;(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;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),tu=m.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,a=Oe(Ft,n),c=m.useRef(null),u=Pe(t,c);return yy(),l.jsxs(l.Fragment,{children:[l.jsx($l,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:l.jsx(Es,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Fs(a.open),...i,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(uv,{titleId:a.titleId}),l.jsx(fv,{contentRef:c,descriptionId:a.descriptionId})]})]})}),$s="DialogTitle",nu=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe($s,n);return l.jsx(ge.h2,{id:o.titleId,...r,ref:t})});nu.displayName=$s;var ru="DialogDescription",ou=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe(ru,n);return l.jsx(ge.p,{id:o.descriptionId,...r,ref:t})});ou.displayName=ru;var su="DialogClose",iu=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe(su,n);return l.jsx(ge.button,{type:"button",...r,ref:t,onClick:me(e.onClick,()=>o.onOpenChange(!1))})});iu.displayName=su;function Fs(e){return e?"open":"closed"}var au="DialogTitleWarning",[t2,cu]=C1(au,{contentName:Ft,titleName:$s,docsSlug:"dialog"}),uv=({titleId:e})=>{const t=cu(au),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
274
274
 
275
275
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
276
276
 
277
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return m.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},uv="DialogDescriptionWarning",dv=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${au(uv).contentName}}.`;return m.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},fv=Ql,hv=Zl,pv=Xl,mv=Jl,gv=tu,yv=ru,vv=su;const bv="Overlay__M5Z83",wv="Content__wAkP4",pa={Overlay:bv,Content:wv},Cv="Header__VHxNf",xv="Content__I04qM",Ev="Close__xSN-7",Sv="Title__Dznh6",_v="Footer__-8gzQ",Rv="Actions__kKF2Q",Ut={Header:Cv,Content:xv,Close:Ev,Title:Sv,Footer:_v,Actions:Rv},cu=_.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Header,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});cu.displayName="Header";const lu=_.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Content,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});lu.displayName="Content";const uu=_.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Footer,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});uu.displayName="Footer";const du=_.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Title,t);return l.jsx(gv,{ref:r,className:o,...n,children:e})});du.displayName="Title";const fu=_.forwardRef(({className:e,...t},n)=>{const r=D(Ut.Close,e);return l.jsx(vv,{ref:n,asChild:!0,className:r,...t,children:l.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M11 1L1 11M1 1L11 11",stroke:"#A9A9A9",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})});fu.displayName="Close";const hu=_.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Actions,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});hu.displayName="Actions";const pu=_.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Description,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});pu.displayName="Description";const ie=({children:e,onClose:t,open:n=!1,className:r})=>{const o=()=>{t==null||t()};return l.jsx(fv,{onOpenChange:o,open:n,children:l.jsxs(hv,{children:[l.jsx(pv,{className:pa.Overlay}),l.jsxs(mv,{children:[l.jsx(yv,{}),l.jsx("div",{className:D(pa.Content,r),children:e})]})]})})};ie.displayName="Dialog";ie.Header=cu;ie.Content=lu;ie.Footer=uu;ie.Actions=hu;ie.Title=du;ie.Description=pu;ie.Close=fu;const Tv="pill__vtGwB",Av="pill--solid__F-mR4",Pv="pill--outline__gC-mh",ma={pill:Tv,"pill--solid":"pill--solid__F-mR4",pillSolid:Av,"pill--outline":"pill--outline__gC-mh",pillOutline:Pv},Ov=({children:e,variant:t="solid",className:n})=>{const r=D(ma.pill,ma[`pill--${t}`],n);return l.jsx("div",{className:r,children:e})},jv="DialogContent__-WjG9",Dv="Message__AUgVP",ga={DialogContent:jv,Message:Dv},mu=({loading:e,title:t,children:n,className:r,onClose:o,onConfirm:s,...i})=>l.jsxs(ie,{...i,className:D(ga.DialogContent,r),children:[l.jsxs(ie.Header,{children:[l.jsx(ie.Title,{children:t}),l.jsx(ie.Close,{onClick:o})]}),l.jsx(ie.Content,{children:typeof n=="string"?l.jsx("p",{className:ga.Message,children:n}):n}),l.jsx(ie.Footer,{children:l.jsxs(ie.Actions,{children:[l.jsx(jr,{onClick:o,disabled:e,variant:"outlined",children:"Cancel"}),l.jsx(jr,{onClick:s,disabled:e,loading:e,variant:"contained",children:"Confirm"})]})})]});mu.displayName="ConfirmDialog";const kv="container__AjtYJ",Lv="title__A2vCu",Iv="description__bP6Ig",Nv="mailToText__SdlsE",pr={container:kv,title:Lv,description:Iv,mailToText:Nv},gu=()=>l.jsxs("svg",{width:"200",height:"200",viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M184.415 152.221C183.936 151.406 183.401 150.621 182.892 149.824C181.61 147.817 180.327 145.809 179.045 143.801C177.102 140.759 175.159 137.717 173.215 134.676C170.766 130.841 168.316 127.006 165.866 123.171C163.068 118.79 160.27 114.41 157.472 110.03C154.484 105.352 151.496 100.674 148.508 95.9965C145.474 91.2464 142.439 86.4963 139.405 81.7463C136.513 77.2189 133.621 72.6915 130.729 68.1641C128.123 64.084 125.517 60.0039 122.91 55.9238C120.748 52.5389 118.586 49.1541 116.424 45.7692C114.864 43.3273 113.304 40.8854 111.744 38.4436C110.943 37.1899 110.142 35.9362 109.342 34.6825C108.765 33.7802 108.096 32.9744 107.292 32.2572C104.604 29.8584 100.572 29.2302 97.2301 30.5252C94.5951 31.5463 92.6177 33.3853 91.0923 35.7373C90.8768 36.0696 90.6658 36.405 90.4526 36.7387C89.3951 38.3941 88.3378 40.0494 87.2803 41.7049C85.5124 44.4725 83.7444 47.2402 81.9765 50.0079C79.644 53.6594 77.3114 57.3111 74.9788 60.9626C72.2632 65.2138 69.5477 69.465 66.8321 73.7162C63.8817 78.3349 60.9313 82.9536 57.9811 87.5722C54.9542 92.3106 51.9274 97.0491 48.9006 101.787C45.9557 106.398 43.0107 111.008 40.0658 115.618C37.3487 119.872 34.6316 124.125 31.9145 128.379C29.6106 131.986 27.3067 135.592 25.0028 139.199C23.2565 141.933 21.5101 144.667 19.7639 147.4C18.7335 149.013 17.7031 150.626 16.6728 152.239C14.8665 155.067 13.7231 158.171 14.23 161.595C14.9672 166.576 19.2366 170.131 24.2215 170.137C25.559 170.139 26.8963 170.137 28.2338 170.137C30.9198 170.137 33.6058 170.137 36.2918 170.137C40.0725 170.137 43.8533 170.137 47.6341 170.137C52.2557 170.137 56.8772 170.137 61.4989 170.137C66.7339 170.137 71.969 170.137 77.204 170.137C82.7467 170.137 88.2894 170.137 93.8322 170.137C99.4529 170.137 105.074 170.137 110.694 170.137C116.139 170.137 121.584 170.137 127.029 170.137C132.044 170.137 137.06 170.137 142.075 170.137C146.425 170.137 150.776 170.137 155.127 170.137C158.516 170.137 161.904 170.137 165.293 170.137C167.49 170.137 169.686 170.137 171.883 170.137C172.633 170.137 173.384 170.137 174.135 170.137C178.404 170.087 182.136 167.627 184.212 163.932C186.248 160.307 186.562 155.866 184.415 152.221ZM94.0937 37.3471C94.0897 37.3539 94.0862 37.3597 94.0824 37.3661C94.0826 37.3652 94.0831 37.3642 94.0833 37.3632C94.0844 37.3581 94.0909 37.3518 94.0937 37.3471ZM178.584 164.489C178.476 164.538 178.524 164.516 178.584 164.489V164.489ZM180.937 162.79C180.979 162.72 181.118 162.485 181.127 162.498C181.145 162.528 181.058 162.647 180.937 162.79ZM181.821 160.333C181.806 160.446 181.782 160.646 181.773 160.697C181.736 160.919 181.686 161.139 181.637 161.359C181.637 161.359 181.637 161.359 181.637 161.359C181.629 161.377 181.621 161.399 181.61 161.426C181.54 161.604 181.472 161.785 181.406 161.965C181.402 161.977 181.398 161.988 181.394 161.999C181.304 162.16 181.219 162.323 181.123 162.481C181.074 162.562 181.016 162.641 180.97 162.724C180.949 162.762 180.936 162.785 180.93 162.798C180.727 163.035 180.436 163.332 180.388 163.385C180.696 163.049 180.535 163.229 180.318 163.42C180.172 163.548 180.018 163.666 179.869 163.79C179.848 163.807 179.831 163.822 179.816 163.835C179.797 163.845 179.775 163.857 179.747 163.873C179.576 163.97 179.411 164.078 179.238 164.171C179.043 164.277 178.844 164.373 178.642 164.463C178.556 164.494 178.471 164.526 178.384 164.553C177.532 164.819 176.835 164.945 176.084 164.954C175.296 164.954 174.508 164.954 173.719 164.954C171.519 164.954 169.318 164.954 167.118 164.954C163.751 164.954 160.385 164.954 157.019 164.954C152.756 164.954 148.493 164.954 144.231 164.954C139.275 164.954 134.319 164.954 129.364 164.954C123.981 164.954 118.598 164.954 113.215 164.954C107.651 164.954 102.086 164.954 96.5224 164.954C91.024 164.954 85.5255 164.954 80.0271 164.954C74.8407 164.954 69.6543 164.954 64.4679 164.954C59.8401 164.954 55.2123 164.954 50.5846 164.954C46.7784 164.954 42.9721 164.954 39.166 164.954C36.3891 164.954 33.6122 164.954 30.8354 164.954C29.3555 164.954 27.8756 164.954 26.3957 164.954C25.9641 164.954 25.534 164.958 25.1029 164.922C23.4511 164.785 22.11 164.207 20.7626 163.127C20.3445 162.792 19.7301 162.074 19.3142 161.434C19.2096 161.273 19.1102 161.109 19.0161 160.942C18.9707 160.861 18.8013 160.534 18.8105 160.558C18.7451 160.414 18.5329 159.846 18.4422 159.537C18.3467 159.211 18.2692 158.879 18.2129 158.544C18.2174 158.545 18.1876 158.285 18.1815 158.192C18.1669 157.964 18.1617 157.736 18.1651 157.508C18.166 157.455 18.1793 157.245 18.185 157.131C18.2055 157.005 18.2441 156.74 18.2591 156.662C18.2913 156.493 18.3319 156.326 18.3726 156.16C18.2821 156.539 18.4099 156.072 18.4891 155.866C18.518 155.79 18.6652 155.487 18.6846 155.432C18.7383 155.339 18.7932 155.243 18.8125 155.21C18.8692 155.114 18.9282 155.019 18.9875 154.924C19.0003 154.904 19.0137 154.884 19.0265 154.863C19.2211 154.554 19.4201 154.247 19.617 153.939C20.6335 152.348 21.6501 150.756 22.6667 149.165C24.3869 146.472 26.107 143.779 27.8271 141.086C30.0848 137.552 32.3425 134.017 34.6001 130.483C37.2646 126.312 39.9291 122.141 42.5935 117.97C45.5011 113.418 48.4086 108.866 51.3161 104.315C54.3131 99.6229 57.31 94.9312 60.3069 90.2397C63.2394 85.6489 66.172 81.058 69.1045 76.4672C71.819 72.2178 74.5334 67.9683 77.2479 63.719C79.5904 60.0517 81.9331 56.3844 84.2756 52.7172C86.0852 49.8842 87.8948 47.0513 89.7044 44.2184C90.8459 42.4315 91.9873 40.6446 93.1287 38.8578C93.3976 38.4368 93.6701 38.0178 93.9356 37.5945C93.9507 37.5705 93.9737 37.5416 93.9972 37.511C93.8744 37.7231 94.1597 37.2638 94.301 37.0921C94.4017 36.9695 94.5483 36.8114 94.5423 36.8113C94.6372 36.721 94.7333 36.6319 94.8323 36.546C94.9866 36.4121 95.1478 36.2876 95.3084 36.1615C94.9392 36.4513 95.3917 36.1121 95.5441 36.0212C96.7591 35.2961 98.1095 34.9498 99.7068 35.0725C101.356 35.1993 102.702 35.7434 104.07 36.8307C104.685 37.3192 105.311 38.1542 105.817 38.9457C106.592 40.1592 107.367 41.3727 108.142 42.5862C109.667 44.9733 111.192 47.3605 112.717 49.7476C114.838 53.0679 116.959 56.3881 119.08 59.7083C121.629 63.6999 124.179 67.6913 126.729 71.6829C129.579 76.1455 132.43 80.6082 135.281 85.0709C138.267 89.7458 141.253 94.4206 144.239 99.0955C147.207 103.742 150.176 108.388 153.144 113.035C155.94 117.412 158.736 121.789 161.532 126.167C164.002 130.034 166.473 133.902 168.943 137.769C170.935 140.886 172.926 144.003 174.917 147.12C176.27 149.239 177.623 151.357 178.976 153.475C179.551 154.376 180.134 155.272 180.702 156.177C181.138 156.872 181.311 157.219 181.54 157.972C181.6 158.167 181.652 158.363 181.697 158.561C181.711 158.623 181.759 158.873 181.78 158.97C181.787 159.063 181.815 159.319 181.819 159.383C181.831 159.579 181.836 159.775 181.834 159.972C181.834 160.022 181.825 160.217 181.821 160.333Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M98.5821 122.507C99.019 122.759 99.6307 122.629 100.038 122.389C101.205 121.703 101.925 120.275 102.041 118.92C103.115 106.361 106.514 75.1051 106.514 68.3062C106.514 59.902 92.8134 60.6835 92.0664 71.3279C91.6887 76.7103 97.5083 119.581 97.8266 121.187C97.9188 121.652 98.1423 122.253 98.5821 122.507Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M101.841 133.945C101.826 133.94 101.812 133.934 101.797 133.929C98.2767 132.6 94.4012 134.976 93.9964 138.717C93.9765 138.901 93.9636 139.086 93.958 139.272C93.8552 142.712 96.4467 146.126 99.8464 146.664C103.245 147.201 106.896 144.494 107.099 141.059C107.285 137.909 104.789 135.072 101.841 133.945Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M161.729 131.662C161.873 131.367 162.082 130.81 161.71 130.584C161.365 130.375 160.901 130.836 160.768 131.107C156.804 139.201 152.84 147.295 148.877 155.389C147.759 157.67 146.642 159.952 145.525 162.233C145.38 162.528 145.171 163.085 145.543 163.311C145.888 163.52 146.352 163.059 146.485 162.788C150.449 154.694 154.413 146.6 158.377 138.506C159.494 136.225 160.611 133.943 161.729 131.662Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M144.786 152.64C144.441 152.43 143.977 152.891 143.844 153.163C142.363 156.187 140.882 159.21 139.402 162.234C139.257 162.528 139.048 163.085 139.42 163.311C139.765 163.521 140.229 163.06 140.362 162.788C141.843 159.764 143.323 156.741 144.804 153.717C144.948 153.423 145.158 152.866 144.786 152.64Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M136.792 156.459C136.447 156.25 135.983 156.711 135.85 156.982C134.993 158.733 134.136 160.483 133.279 162.233C133.134 162.528 132.925 163.085 133.297 163.311C133.642 163.52 134.106 163.06 134.239 162.788C135.096 161.037 135.953 159.287 136.81 157.537C136.955 157.242 137.164 156.685 136.792 156.459Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M129.1 159.663C128.755 159.454 128.291 159.915 128.158 160.186C127.824 160.869 127.49 161.551 127.155 162.234C127.011 162.528 126.802 163.086 127.174 163.311C127.519 163.521 127.983 163.06 128.116 162.788C128.45 162.106 128.784 161.423 129.118 160.741C129.263 160.447 129.472 159.889 129.1 159.663Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M165.835 137.946C165.979 137.652 166.188 137.094 165.816 136.868C165.471 136.659 165.007 137.12 164.874 137.392C161.72 143.832 158.566 150.273 155.412 156.713C154.511 158.553 153.609 160.393 152.708 162.233C152.564 162.528 152.355 163.085 152.726 163.311C153.071 163.52 153.535 163.06 153.669 162.788C156.823 156.347 159.977 149.907 163.131 143.466C164.032 141.626 164.933 139.786 165.835 137.946Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M169.923 143.153C169.578 142.943 169.114 143.404 168.98 143.676C165.951 149.862 162.921 156.048 159.892 162.234C159.748 162.528 159.538 163.086 159.91 163.311C160.255 163.521 160.719 163.06 160.852 162.788C163.882 156.602 166.911 150.416 169.941 144.23C170.085 143.936 170.294 143.378 169.923 143.153Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M174.332 148.821C173.987 148.611 173.523 149.072 173.39 149.344C171.286 153.64 169.182 157.937 167.077 162.234C166.933 162.528 166.724 163.086 167.095 163.311C167.44 163.521 167.905 163.06 168.038 162.788C170.142 158.492 172.246 154.195 174.351 149.898C174.495 149.604 174.704 149.046 174.332 148.821Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M178.197 155.597C177.852 155.387 177.388 155.848 177.255 156.12C176.257 158.158 175.259 160.196 174.261 162.233C174.117 162.528 173.907 163.085 174.279 163.311C174.624 163.52 175.088 163.06 175.221 162.788C176.219 160.75 177.217 158.712 178.215 156.674C178.36 156.38 178.569 155.823 178.197 155.597Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M97.1962 40.2135C97.3477 39.9803 97.4773 39.477 97.1807 39.2971C96.8678 39.1072 96.5194 39.5265 96.3794 39.7419C94.7034 42.3205 93.0556 44.9176 91.4179 47.5205C88.1743 52.6759 84.976 57.8633 81.9271 63.1367C80.4155 65.7509 78.9283 68.3855 77.5879 71.0925C77.4642 71.3423 77.2879 71.8174 77.6034 72.0088C77.8975 72.1874 78.2905 71.7947 78.4047 71.564C80.9657 66.3919 83.9726 61.4308 86.9671 56.5018C89.7369 51.9427 92.5713 47.4226 95.4474 42.9297C96.0279 42.0228 96.6094 41.1164 97.1962 40.2135Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M75.3224 76.1247C75.0193 75.9408 74.6477 76.3459 74.521 76.5695C74.1645 77.1991 73.808 77.8286 73.4515 78.4581C73.3144 78.7003 73.1605 79.1884 73.467 79.3744C73.77 79.5583 74.1416 79.1532 74.2684 78.9296C74.6248 78.3001 74.9814 77.6705 75.3378 77.0411C75.475 76.7988 75.6288 76.3107 75.3224 76.1247Z",fill:"var(--pae-shell-color-secondary)"})]});gu.displayName="WarningIcon";const Mv="support@bluealba.com",$v="@bluealba/pae-shell-ui",Bs=()=>{const{supportEmail:e=Mv}=Wa($v),t=`mailto:${e}?Subject=Support`;return l.jsxs("div",{className:pr.container,children:[l.jsx(gu,{}),l.jsx("div",{className:pr.title,children:"Oops! Something went wrong"}),l.jsxs("div",{className:pr.description,children:["If the error persists, ",l.jsx("a",{className:pr.mailToText,href:t,children:"contact the administrator."})]})]})};Bs.displayName="ErrorState";const Fv="List__h09XG",Bv="List__h09XG",Uv="Item__YMy2i",Hv="Item__YMy2i",Wv="List--primary__J2pbx",qv="List--secondary__gi1ao",zv="Item--selected__yRWow",Vv="Title__RJmEW",Gv="Title__RJmEW",Qv="Description__DGyX2",Kv="Description__DGyX2",Yv="Actions__UHP5l",Zv="Actions__UHP5l",Xv="Action__q-R1I",Jv="Action__q-R1I",e0="Item--disabled__Ke1u-",t0="List--small__ijoSR",n0="List--medium__E1FEY",r0="List--large__T8tfz",o0="Icon__dFr-L",s0="Icon__dFr-L",Re={List:Fv,list:Bv,Item:Uv,item:Hv,"List--primary":"List--primary__J2pbx",listPrimary:Wv,"List--secondary":"List--secondary__gi1ao",listSecondary:qv,"Item--selected":"Item--selected__yRWow",itemSelected:zv,Title:Vv,title:Gv,Description:Qv,description:Kv,Actions:Yv,actions:Zv,Action:Xv,action:Jv,"Item--disabled":"Item--disabled__Ke1u-",itemDisabled:e0,"List--small":"List--small__ijoSR",listSmall:t0,"List--medium":"List--medium__E1FEY",listMedium:n0,"List--large":"List--large__T8tfz",listLarge:r0,Icon:o0,icon:s0},yu=_.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 l.jsx("li",{ref:s,className:i,role:"listitem","aria-disabled":r,...o,children:e})});yu.displayName="Item";const vu=_.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Re.Title,t);return l.jsx("h3",{ref:r,className:o,...n,children:e})});vu.displayName="Title";const bu=_.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Re.Description,t);return l.jsx("p",{ref:r,className:o,...n,children:e})});bu.displayName="Description";const Us=({className:e,...t})=>l.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:[l.jsx("path",{d:"M6 6.5C6.27614 6.5 6.5 6.27614 6.5 6C6.5 5.72386 6.27614 5.5 6 5.5C5.72386 5.5 5.5 5.72386 5.5 6C5.5 6.27614 5.72386 6.5 6 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M9.5 6.5C9.77614 6.5 10 6.27614 10 6C10 5.72386 9.77614 5.5 9.5 5.5C9.22386 5.5 9 5.72386 9 6C9 6.27614 9.22386 6.5 9.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M2.5 6.5C2.77614 6.5 3 6.27614 3 6C3 5.72386 2.77614 5.5 2.5 5.5C2.22386 5.5 2 5.72386 2 6C2 6.27614 2.22386 6.5 2.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"})]});Us.displayName="HorizontalDots";const wu=_.forwardRef(({children:e,className:t,onClick:n,...r},o)=>{const s=_.useRef(null),[i,a]=_.useState(!1),c=D(Re.Actions,t),u=()=>{const w=Rt["DropdownList--open"],f=Rt["DropdownList--closed"];document.querySelectorAll(`.${w}`).forEach(C=>{C!==s.current&&(C.classList.remove(w),C.classList.add(f))})},d=w=>{w.stopPropagation(),i?p():(a(!0),n==null||n(w))},p=()=>{a(!1)},h=w=>{w.key==="Escape"&&p()},g=w=>{s.current&&!s.current.contains(w.target)&&p()};return _.useEffect(()=>(i?(u(),document.addEventListener("keydown",h),document.addEventListener("click",g)):(document.removeEventListener("keydown",h),document.removeEventListener("click",g)),()=>{document.removeEventListener("keydown",h),document.removeEventListener("click",g)}),[i]),l.jsxs("div",{ref:o,className:c,onClick:d,role:"button",tabIndex:0,"data-testid":"actions",...r,children:[l.jsx(Us,{}),l.jsx(Vr,{align:"left",ref:s,open:i,"data-testid":"actions-dropdown",role:"menu","aria-label":"Actions",children:e})]})});wu.displayName="Actions";const Cu=_.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Re.Action,t);return l.jsx("button",{ref:r,className:o,...n,children:e})});Cu.displayName="Action";const xu=_.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Re.Icon,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});xu.displayName="Icon";const Be=_.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 l.jsx("ul",{ref:s,className:i,role:"list",...o,children:e})});Be.displayName="List";Be.Item=yu;Be.Badges=vs;Be.Badge=ys;Be.Title=vu;Be.Description=bu;Be.Actions=wu;Be.Action=Cu;Be.Icon=xu;const i0="Navigation__uylxk",a0="PaginationContent__UpLw0",c0="PaginationEllipsis__perWk",l0="PaginationLink__GVUZj",u0="Active__u1Ahy",d0="Disabled__8WM0y",f0="Prev__wp4hc",h0="Next__eVyL5",Ze={Navigation:i0,PaginationContent:a0,PaginationEllipsis:c0,PaginationLink:l0,Active:u0,Disabled:d0,Prev:f0,Next:h0},Eu=({className:e,...t})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...t,children:[l.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),l.jsx("path",{d:"M9 6l6 6l-6 6"})]});Eu.displayName="ChevronRight";const Su=({className:e,...t})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...t,children:[l.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),l.jsx("path",{d:"M15 6l-6 6l6 6"})]});Su.displayName="ChevronLeft";const Hs=({className:e,...t})=>l.jsx("nav",{role:"navigation","aria-label":"pagination",className:D(Ze.Navigation,e),...t});Hs.displayName="Pagination";const Ws=m.forwardRef(({className:e,...t},n)=>l.jsx("ul",{ref:n,className:D(Ze.PaginationContent,e),...t}));Ws.displayName="PaginationContent";const Rn=m.forwardRef(({className:e,...t},n)=>l.jsx("li",{ref:n,className:e,...t}));Rn.displayName="PaginationItem";const Hn=({className:e,isActive:t,...n})=>l.jsx("a",{"aria-current":t?"page":void 0,className:D(Ze.PaginationLink,t&&Ze.Active,e),...n});Hn.displayName="PaginationLink";const qs=({className:e,disabled:t,...n})=>l.jsxs(Hn,{"aria-label":"Go to previous page",className:D(t&&Ze.Disabled,Ze.Prev,e),...n,children:[l.jsx(Su,{}),l.jsx("span",{children:"Previous"})]});qs.displayName="PaginationPrevious";const zs=({className:e,disabled:t,...n})=>l.jsxs(Hn,{"aria-label":"Go to next page",className:D(t&&Ze.Disabled,Ze.Next,e),...n,children:[l.jsx("span",{children:"Next"}),l.jsx(Eu,{})]});zs.displayName="PaginationNext";const Vs=({className:e,...t})=>l.jsx("span",{"aria-hidden":!0,className:D(Ze.PaginationEllipsis,e),...t,children:l.jsx(Us,{})});Vs.displayName="PaginationEllipsis";function p0(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 _u={exports:{}};(function(e,t){(function(n,r){typeof p0=="function"?e.exports=r():n.pluralize=r()})(ad,function(){var n=[],r=[],o={},s={},i={};function a(f){return typeof f=="string"?new RegExp("^"+f+"$","i"):f}function c(f,y){return f===y?y:f===f.toLowerCase()?y.toLowerCase():f===f.toUpperCase()?y.toUpperCase():f[0]===f[0].toUpperCase()?y.charAt(0).toUpperCase()+y.substr(1).toLowerCase():y.toLowerCase()}function u(f,y){return f.replace(/\$(\d{1,2})/g,function(C,x){return y[x]||""})}function d(f,y){return f.replace(y[0],function(C,x){var S=u(y[1],arguments);return c(C===""?f[x-1]:C,S)})}function p(f,y,C){if(!f.length||o.hasOwnProperty(f))return y;for(var x=C.length;x--;){var S=C[x];if(S[0].test(y))return d(y,S)}return y}function h(f,y,C){return function(x){var S=x.toLowerCase();return y.hasOwnProperty(S)?c(x,S):f.hasOwnProperty(S)?c(x,f[S]):p(S,x,C)}}function g(f,y,C,x){return function(S){var E=S.toLowerCase();return y.hasOwnProperty(E)?!0:f.hasOwnProperty(E)?!1:p(E,E,C)===E}}function w(f,y,C){var x=y===1?w.singular(f):w.plural(f);return(C?y+" ":"")+x}return w.plural=h(i,s,n),w.isPlural=g(i,s,n),w.singular=h(s,i,r),w.isSingular=g(s,i,r),w.addPluralRule=function(f,y){n.push([a(f),y])},w.addSingularRule=function(f,y){r.push([a(f),y])},w.addUncountableRule=function(f){if(typeof f=="string"){o[f.toLowerCase()]=!0;return}w.addPluralRule(f,"$0"),w.addSingularRule(f,"$0")},w.addIrregularRule=function(f,y){y=y.toLowerCase(),f=f.toLowerCase(),i[f]=y,s[y]=f},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(f){return w.addIrregularRule(f[0],f[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(f){return w.addPluralRule(f[0],f[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(f){return w.addSingularRule(f[0],f[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(w.addUncountableRule),w})})(_u);var m0=_u.exports;const g0=cd(m0),Gs=({count:e,singularText:t,children:n=(r,o)=>`${r} ${o}`})=>l.jsx(l.Fragment,{children:n(e,g0(t,e))});Gs.displayName="PluralizeCounter";const y0="TableContainer__osh6Z",v0="TableHeader__sYa-8",b0="Table__2cIs3",w0="selectable__WsGg1",C0="Cell__ZEv-K",x0="Right__YoM1V",E0="Center__CF3tr",S0="Sortable__JIV1V",_0="SortIcon__f0bBy",R0="Active__rJjxB",T0="Rotate__7cwTK",A0="Pagination__sbqMP",P0="PointerNone__kQdQS",fe={TableContainer:y0,TableHeader:v0,Table:b0,selectable:w0,Cell:C0,Right:x0,Center:E0,Sortable:S0,SortIcon:_0,Active:R0,Rotate:T0,Pagination:A0,PointerNone:P0},O0="EmptyStateContainer__Q9FEb",j0="Message__IHK6M",ya={EmptyStateContainer:O0,Message:j0},Ru=({size:e=64})=>l.jsxs("svg",{width:e,height:e,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsxs("g",{clipPath:"url(#clip-path)",children:[l.jsx("mask",{id:"mask0_1070_8032",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"64",height:"64",children:l.jsx("path",{d:"M64 0H0V64H64V0Z",fill:"white"})}),l.jsx("g",{mask:"url(#mask0_1070_8032)",children:l.jsx("path",{d:"M40 10.6673H13.3333V53.334H50.6667V21.334H40V10.6673ZM8 7.97932C8 6.51798 9.192 5.33398 10.664 5.33398H42.6667L56 18.6673V55.982C56.0024 56.3321 55.936 56.6793 55.8043 57.0039C55.6725 57.3284 55.4781 57.6239 55.2323 57.8732C54.9864 58.1225 54.6936 58.3209 54.3712 58.4572C54.0485 58.5935 53.7021 58.6649 53.352 58.6673H10.648C9.94768 58.6625 9.27739 58.3823 8.78192 57.8873C8.28645 57.3924 8.00557 56.7223 8 56.022V7.97932ZM36.0773 38.5233C33.8408 39.83 31.2056 40.2788 28.6627 39.786C26.1197 39.2929 23.8428 37.8921 22.2566 35.8444C20.6704 33.7966 19.883 31.2417 20.0414 28.6564C20.1998 26.071 21.293 23.6315 23.1173 21.7927C24.9532 19.9571 27.3955 18.8541 29.9864 18.6904C32.5773 18.5267 35.1389 19.3134 37.1912 20.9032C39.2435 22.493 40.6456 24.7767 41.1347 27.3263C41.6237 29.8759 41.1664 32.5164 39.848 34.7527L45.7413 40.646L41.9707 44.4193L36.0773 38.5233ZM34.4293 33.1047C34.9387 32.6126 35.3451 32.0241 35.6245 31.3735C35.904 30.7228 36.0512 30.0231 36.0573 29.3148C36.0635 28.6065 35.9285 27.9044 35.6603 27.2489C35.3923 26.5935 34.9963 25.998 34.4955 25.4972C33.9947 24.9964 33.3992 24.6004 32.7437 24.3323C32.0883 24.0641 31.3861 23.9292 30.6779 23.9353C29.9696 23.9415 29.2699 24.0886 28.6192 24.3681C27.9685 24.6476 27.38 25.0539 26.888 25.5633C25.9165 26.5692 25.3789 27.9164 25.3911 29.3148C25.4032 30.7132 25.9641 32.0508 26.9531 33.0396C27.9419 34.0287 29.2795 34.5895 30.6779 34.6015C32.0763 34.6137 33.4235 34.0761 34.4293 33.1047Z",fill:"currentColor"})})]}),l.jsx("defs",{children:l.jsx("clipPath",{id:"clip-path",children:l.jsx("rect",{width:"64",height:"64",fill:"white"})})})]});Ru.displayName="EmptyStateIcon";const Qs=({message:e="No results found"})=>l.jsxs("div",{className:D(ya.EmptyStateContainer),children:[l.jsx(Ru,{}),l.jsx("p",{className:ya.Message,children:e})]});Qs.displayName="EmptyState";const D0=(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)},Tu=({page:e,totalPages:t,onPageChange:n})=>{const r=e===1,o=e===t;return l.jsx(Hs,{className:fe.Pagination,children:l.jsxs(Ws,{children:[l.jsx(Rn,{children:l.jsx(qs,{className:D({[fe.PointerNone]:r}),onClick:()=>!r&&n(e-1)})}),D0(t,e).map((s,i)=>l.jsxs(Rn,{children:[s==="..."&&l.jsx(Vs,{}),s!=="..."&&l.jsx(Hn,{isActive:+s===e,onClick:()=>+s!==e&&n(+s),children:s})]},i)),l.jsx(Rn,{children:l.jsx(zs,{className:D({[fe.PointerNone]:o}),onClick:()=>!o&&n(e+1)})})]})})};Tu.displayName="TablePagination";const Au=({className:e,...t})=>l.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:l.jsx("path",{d:"M6 2.5V9.5M6 9.5L9.5 6M6 9.5L2.5 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});Au.displayName="ArrowDown";const Pu=({columns:e,data:t,isLoading:n,totalCount:r=0,headerLabel:o,sort:s,loadingConfig:i,pagination:a,onRowClick:c})=>{const{count:u=5,height:d=40}=i||{},p=y=>y.sortName??y.name,h=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=p(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),f=y=>()=>{if(!s||!y.isSortable)return;const{field:C,direction:x,onSort:S}=s,E=p(y);C===E?S(E,x==="asc"?"desc":"asc"):S(E,"asc")};return l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:fe.TableContainer,children:[o&&l.jsx("div",{className:fe.TableHeader,children:l.jsx(Gs,{count:r,singularText:o,children:(y,C)=>`${y} ${C}`})}),l.jsxs("table",{className:fe.Table,children:[l.jsx("thead",{children:l.jsx("tr",{children:e.map(y=>l.jsx("th",{children:l.jsxs("div",{className:h(y),onClick:f(y),children:[l.jsx("span",{children:y.displayName}),y.isSortable&&l.jsx(Au,{className:g(y)})]})},y.name))})}),l.jsx("tbody",{children:l.jsxs(ft,{children:[l.jsx(ft.When,{condition:n,children:[...Array(u).keys()].map(y=>l.jsx("tr",{children:l.jsx("td",{colSpan:e.length,style:{padding:4},children:l.jsx(Gr,{height:d})})},y))}),l.jsx(ft.When,{condition:!t.length,children:l.jsx("tr",{children:l.jsx("td",{colSpan:e.length,children:l.jsx(Qs,{})})})}),l.jsx(ft.Else,{children:t.map((y,C)=>l.jsx("tr",{className:c&&fe.selectable,onClick:w(y),children:e.map(x=>l.jsx("td",{style:x.width?{width:x.width}:{},children:l.jsx("div",{className:h(x),children:x.cellRenderer?x.cellRenderer(y):x.valueGetter?x.valueGetter(y):y[x.name]})},`${x.name}-${C}`))},C))})]})})]})]}),a&&l.jsx(Tu,{...a})]})};Pu.displayName="Table";const k0="alert__LblpE",L0="destructive__bLNSM",I0="alertTitle__gblKf",N0="alertDescription__BuVHV",Mr={alert:k0,default:"default__mgO6A",destructive:L0,alertTitle:I0,alertDescription:N0},to=({className:e,variant:t="default",children:n,...r})=>l.jsx("div",{"data-slot":"alert",role:"alert",className:D(Mr.alert,Mr[t],e),...r,children:n}),M0=m.forwardRef(({children:e,className:t,...n},r)=>l.jsx("div",{ref:r,"data-slot":"alert-title",className:D(Mr.alertTitle,t),...n,children:e})),$0=m.forwardRef(({children:e,className:t,...n},r)=>l.jsx("div",{ref:r,"data-slot":"alert-description",className:D(Mr.alertDescription,t),...n,children:e}));to.displayName="Alert";to.Title=M0;to.Description=$0;function va(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 $r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?va(Object(n),!0).forEach(function(r){F0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):va(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ou(e){return(Ou=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 F0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function os(e){return(os=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 ju(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(os(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(os(r)));return r}}var Dn=null;try{Dn=require("react").createContext()}catch{}var B0={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 U0(e){if(Ou(e)!=="object")throw new Error("single-spa-react requires a configuration object");var t,n=$r($r({},B0),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");!Dn&&n.React.createContext&&(Dn=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:H0.bind(null,n),mount:W0.bind(null,n),unmount:q0.bind(null,n)};return n.parcelCanUpdate&&(r.update=z0.bind(null,n)),r}function H0(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then(function(n){e.rootComponent=n})}function W0(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=Du(e,t,function(){n(this)}),s=ju(e,t)(),i=function(a){var c=a.reactDom,u=a.renderType,d=a.elementToRender,p=a.domElement,h=c[u];if(typeof h!="function")throw new Error('renderType "'.concat(u,'" did not return a function.'));switch(u){case"createRoot":case"unstable_createRoot":case"createBlockingRoot":case"unstable_createBlockingRoot":var g=h(p);return g.render(d),g;case"hydrateRoot":return h(p,d);case"hydrate":default:return h(d,p),null}}({elementToRender:o,domElement:s,reactDom:Ks(e),renderType:V0(e)});e.domElements[t.name]=s,e.renderResults[t.name]=i})}function q0(e,t){return new Promise(function(n){e.unmountResolves[t.name]=n;var r=e.renderResults[t.name];r&&r.unmount?r.unmount():Ks(e).unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]})}function z0(e,t){return new Promise(function(n){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(n);var r=Du(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(r);else{var s=ju(e,t)();Ks(e).render(r,s)}})}function Ks(e){return e.ReactDOMClient||e.ReactDOM}function V0(e){return typeof e.renderType=="function"?e.renderType():e.renderType}function Du(e,t,n){var r=e.React.createElement(e.rootComponent,t),o=Dn?e.React.createElement(Dn.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,u){this.setState({caughtError:c,caughtErrorInfo:u})},a}(e,t),o=e.React.createElement(e.errorBoundaryClass,t,o)),o=e.React.createElement(e.SingleSpaRoot,$r($r({},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 G0=e=>{const t=new vh;return function(r){if(!r)throw new Error("Microfrontend did not receive any properties !!");const o=as(r.module.name);return l.jsx($a,{module:o,children:l.jsxs(Eh,{client:t,children:[l.jsx(e,{...r}),l.jsx(nh,{position:"top-right",reverseOrder:!0})]})})}},Q0=({rootComponent:e,...t})=>U0({errorBoundary(n){return console.error(n),l.jsx(Bs,{})},...t,rootComponent:G0(e)}),K0=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,Tn,{value:e?Ld(t,e):t})};exports.Alert=to;exports.ApplicationIcon=Nc;exports.Authorized=gs;exports.Badge=ys;exports.Badges=vs;exports.Button=jr;exports.ClipboardCheckIcon=Fc;exports.ClipboardIcon=$c;exports.ConfirmDialog=mu;exports.CopyToClipboardButton=kp;exports.Dialog=ie;exports.DropdownList=Vr;exports.EmptyState=Qs;exports.ErrorState=Bs;exports.ExtendExtensionPoint=Zh;exports.ExtensionPoint=jc;exports.EyeIcon=Nl;exports.FieldGroup=Bc;exports.Input=zr;exports.InputError=Uc;exports.Label=Hc;exports.List=Be;exports.ModulePlaceHolder=Ic;exports.Pagination=Hs;exports.PaginationContent=Ws;exports.PaginationEllipsis=Vs;exports.PaginationItem=Rn;exports.PaginationLink=Hn;exports.PaginationNext=zs;exports.PaginationPrevious=qs;exports.PasswordInput=cy;exports.Pill=Ov;exports.PlatformEventListener=op;exports.PlatformEvents=td;exports.PluralizeCounter=Gs;exports.SearchAutocomplete=Vc;exports.SearchInput=ws;exports.Select=bs;exports.Show=ft;exports.Skeleton=Gr;exports.SkeletonList=Yc;exports.Spinner=kl;exports.Switch=Ll;exports.Table=Pu;exports.Tabs=ny;exports.TabsContent=sy;exports.TabsList=ry;exports.TabsTrigger=oy;exports.TextArea=qc;exports.Tooltip=Dl;exports.authorized=ip;exports.dropdownListStyles=Rt;exports.extensionPoint=Jh;exports.getApplications=is;exports.getInitials=yd;exports.getOperations=Fa;exports.hasAccess=Ua;exports.initializeMicroFrontend=Q0;exports.isPlatformCustomizationCompleted=ff;exports.isValidEmail=gd;exports.logout=hd;exports.navigateTo=pd;exports.platformHaveAnyCustomization=df;exports.setupTestEnvironment=K0;exports.useApplicationIcon=Ka;exports.useApplicationJSModule=Hr;exports.useApplicationMenu=Ya;exports.useApplicationMenuWithDocumentation=Od;exports.useApplicationUIModule=Qa;exports.useApplications=Va;exports.useAuth=Br;exports.useCatalog=mn;exports.useCurrentApplication=ls;exports.useCurrentApplicationName=ec;exports.useCurrentJSModule=$d;exports.useDocumentationMenuItems=Ja;exports.useDynamicFonts=ac;exports.useDynamicStyleSheet=ic;exports.useExtendExtensionPoint=oc;exports.useExtensionPoint=rc;exports.useGetPlatformTheme=uf;exports.useHasNoSession=ud;exports.useLocation=Ia;exports.useModule=as;exports.useModuleCommonPaths=fd;exports.useModuleConfig=Ha;exports.useModuleConfigByName=Wa;exports.useModuleMetadata=Mn;exports.useMutableCatalog=id;exports.useNotifications=ds;exports.useOperations=Ba;exports.usePAECustomizationsLoadingState=lf;exports.usePAEState=Fr;exports.usePlatformCustomization=cf;exports.usePlatformEventListener=sc;exports.useResource=Ih;exports.useResourceActions=Pc;exports.useServiceBaseURL=tc;exports.useServiceInvoker=us;exports.useTenants=Qh;exports.useTrackEvent=Wd;exports.useTrackEvents=nc;exports.useUIApplications=Ga;exports.useUserState=Yh;
277
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return m.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},dv="DialogDescriptionWarning",fv=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${cu(dv).contentName}}.`;return m.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},hv=Kl,pv=Xl,mv=Jl,gv=eu,yv=nu,vv=ou,bv=iu;const wv="Overlay__M5Z83",Cv="Content__wAkP4",pa={Overlay:wv,Content:Cv},xv="Header__VHxNf",Ev="Content__I04qM",Sv="Close__xSN-7",_v="Title__Dznh6",Rv="Footer__-8gzQ",Tv="Actions__kKF2Q",Ut={Header:xv,Content:Ev,Close:Sv,Title:_v,Footer:Rv,Actions:Tv},lu=_.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Header,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});lu.displayName="Header";const uu=_.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Content,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});uu.displayName="Content";const du=_.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Footer,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});du.displayName="Footer";const fu=_.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Title,t);return l.jsx(yv,{ref:r,className:o,...n,children:e})});fu.displayName="Title";const hu=_.forwardRef(({className:e,...t},n)=>{const r=D(Ut.Close,e);return l.jsx(bv,{ref:n,asChild:!0,className:r,...t,children:l.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M11 1L1 11M1 1L11 11",stroke:"#A9A9A9",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})});hu.displayName="Close";const pu=_.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Actions,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});pu.displayName="Actions";const mu=_.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Description,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});mu.displayName="Description";const ie=({children:e,onClose:t,open:n=!1,className:r})=>{const o=()=>{t==null||t()};return l.jsx(hv,{onOpenChange:o,open:n,children:l.jsxs(pv,{children:[l.jsx(mv,{className:pa.Overlay}),l.jsxs(gv,{children:[l.jsx(vv,{}),l.jsx("div",{className:D(pa.Content,r),children:e})]})]})})};ie.displayName="Dialog";ie.Header=lu;ie.Content=uu;ie.Footer=du;ie.Actions=pu;ie.Title=fu;ie.Description=mu;ie.Close=hu;const Av="pill__vtGwB",Pv="pill--solid__F-mR4",Ov="pill--outline__gC-mh",ma={pill:Av,"pill--solid":"pill--solid__F-mR4",pillSolid:Pv,"pill--outline":"pill--outline__gC-mh",pillOutline:Ov},jv=({children:e,variant:t="solid",className:n})=>{const r=D(ma.pill,ma[`pill--${t}`],n);return l.jsx("div",{className:r,children:e})},Dv="DialogContent__-WjG9",kv="Message__AUgVP",ga={DialogContent:Dv,Message:kv},gu=({loading:e,title:t,children:n,className:r,onClose:o,onConfirm:s,...i})=>l.jsxs(ie,{...i,className:D(ga.DialogContent,r),children:[l.jsxs(ie.Header,{children:[l.jsx(ie.Title,{children:t}),l.jsx(ie.Close,{onClick:o})]}),l.jsx(ie.Content,{children:typeof n=="string"?l.jsx("p",{className:ga.Message,children:n}):n}),l.jsx(ie.Footer,{children:l.jsxs(ie.Actions,{children:[l.jsx(jr,{onClick:o,disabled:e,variant:"outlined",children:"Cancel"}),l.jsx(jr,{onClick:s,disabled:e,loading:e,variant:"contained",children:"Confirm"})]})})]});gu.displayName="ConfirmDialog";const Lv="container__AjtYJ",Iv="title__A2vCu",Nv="description__bP6Ig",Mv="mailToText__SdlsE",pr={container:Lv,title:Iv,description:Nv,mailToText:Mv},yu=()=>l.jsxs("svg",{width:"200",height:"200",viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M184.415 152.221C183.936 151.406 183.401 150.621 182.892 149.824C181.61 147.817 180.327 145.809 179.045 143.801C177.102 140.759 175.159 137.717 173.215 134.676C170.766 130.841 168.316 127.006 165.866 123.171C163.068 118.79 160.27 114.41 157.472 110.03C154.484 105.352 151.496 100.674 148.508 95.9965C145.474 91.2464 142.439 86.4963 139.405 81.7463C136.513 77.2189 133.621 72.6915 130.729 68.1641C128.123 64.084 125.517 60.0039 122.91 55.9238C120.748 52.5389 118.586 49.1541 116.424 45.7692C114.864 43.3273 113.304 40.8854 111.744 38.4436C110.943 37.1899 110.142 35.9362 109.342 34.6825C108.765 33.7802 108.096 32.9744 107.292 32.2572C104.604 29.8584 100.572 29.2302 97.2301 30.5252C94.5951 31.5463 92.6177 33.3853 91.0923 35.7373C90.8768 36.0696 90.6658 36.405 90.4526 36.7387C89.3951 38.3941 88.3378 40.0494 87.2803 41.7049C85.5124 44.4725 83.7444 47.2402 81.9765 50.0079C79.644 53.6594 77.3114 57.3111 74.9788 60.9626C72.2632 65.2138 69.5477 69.465 66.8321 73.7162C63.8817 78.3349 60.9313 82.9536 57.9811 87.5722C54.9542 92.3106 51.9274 97.0491 48.9006 101.787C45.9557 106.398 43.0107 111.008 40.0658 115.618C37.3487 119.872 34.6316 124.125 31.9145 128.379C29.6106 131.986 27.3067 135.592 25.0028 139.199C23.2565 141.933 21.5101 144.667 19.7639 147.4C18.7335 149.013 17.7031 150.626 16.6728 152.239C14.8665 155.067 13.7231 158.171 14.23 161.595C14.9672 166.576 19.2366 170.131 24.2215 170.137C25.559 170.139 26.8963 170.137 28.2338 170.137C30.9198 170.137 33.6058 170.137 36.2918 170.137C40.0725 170.137 43.8533 170.137 47.6341 170.137C52.2557 170.137 56.8772 170.137 61.4989 170.137C66.7339 170.137 71.969 170.137 77.204 170.137C82.7467 170.137 88.2894 170.137 93.8322 170.137C99.4529 170.137 105.074 170.137 110.694 170.137C116.139 170.137 121.584 170.137 127.029 170.137C132.044 170.137 137.06 170.137 142.075 170.137C146.425 170.137 150.776 170.137 155.127 170.137C158.516 170.137 161.904 170.137 165.293 170.137C167.49 170.137 169.686 170.137 171.883 170.137C172.633 170.137 173.384 170.137 174.135 170.137C178.404 170.087 182.136 167.627 184.212 163.932C186.248 160.307 186.562 155.866 184.415 152.221ZM94.0937 37.3471C94.0897 37.3539 94.0862 37.3597 94.0824 37.3661C94.0826 37.3652 94.0831 37.3642 94.0833 37.3632C94.0844 37.3581 94.0909 37.3518 94.0937 37.3471ZM178.584 164.489C178.476 164.538 178.524 164.516 178.584 164.489V164.489ZM180.937 162.79C180.979 162.72 181.118 162.485 181.127 162.498C181.145 162.528 181.058 162.647 180.937 162.79ZM181.821 160.333C181.806 160.446 181.782 160.646 181.773 160.697C181.736 160.919 181.686 161.139 181.637 161.359C181.637 161.359 181.637 161.359 181.637 161.359C181.629 161.377 181.621 161.399 181.61 161.426C181.54 161.604 181.472 161.785 181.406 161.965C181.402 161.977 181.398 161.988 181.394 161.999C181.304 162.16 181.219 162.323 181.123 162.481C181.074 162.562 181.016 162.641 180.97 162.724C180.949 162.762 180.936 162.785 180.93 162.798C180.727 163.035 180.436 163.332 180.388 163.385C180.696 163.049 180.535 163.229 180.318 163.42C180.172 163.548 180.018 163.666 179.869 163.79C179.848 163.807 179.831 163.822 179.816 163.835C179.797 163.845 179.775 163.857 179.747 163.873C179.576 163.97 179.411 164.078 179.238 164.171C179.043 164.277 178.844 164.373 178.642 164.463C178.556 164.494 178.471 164.526 178.384 164.553C177.532 164.819 176.835 164.945 176.084 164.954C175.296 164.954 174.508 164.954 173.719 164.954C171.519 164.954 169.318 164.954 167.118 164.954C163.751 164.954 160.385 164.954 157.019 164.954C152.756 164.954 148.493 164.954 144.231 164.954C139.275 164.954 134.319 164.954 129.364 164.954C123.981 164.954 118.598 164.954 113.215 164.954C107.651 164.954 102.086 164.954 96.5224 164.954C91.024 164.954 85.5255 164.954 80.0271 164.954C74.8407 164.954 69.6543 164.954 64.4679 164.954C59.8401 164.954 55.2123 164.954 50.5846 164.954C46.7784 164.954 42.9721 164.954 39.166 164.954C36.3891 164.954 33.6122 164.954 30.8354 164.954C29.3555 164.954 27.8756 164.954 26.3957 164.954C25.9641 164.954 25.534 164.958 25.1029 164.922C23.4511 164.785 22.11 164.207 20.7626 163.127C20.3445 162.792 19.7301 162.074 19.3142 161.434C19.2096 161.273 19.1102 161.109 19.0161 160.942C18.9707 160.861 18.8013 160.534 18.8105 160.558C18.7451 160.414 18.5329 159.846 18.4422 159.537C18.3467 159.211 18.2692 158.879 18.2129 158.544C18.2174 158.545 18.1876 158.285 18.1815 158.192C18.1669 157.964 18.1617 157.736 18.1651 157.508C18.166 157.455 18.1793 157.245 18.185 157.131C18.2055 157.005 18.2441 156.74 18.2591 156.662C18.2913 156.493 18.3319 156.326 18.3726 156.16C18.2821 156.539 18.4099 156.072 18.4891 155.866C18.518 155.79 18.6652 155.487 18.6846 155.432C18.7383 155.339 18.7932 155.243 18.8125 155.21C18.8692 155.114 18.9282 155.019 18.9875 154.924C19.0003 154.904 19.0137 154.884 19.0265 154.863C19.2211 154.554 19.4201 154.247 19.617 153.939C20.6335 152.348 21.6501 150.756 22.6667 149.165C24.3869 146.472 26.107 143.779 27.8271 141.086C30.0848 137.552 32.3425 134.017 34.6001 130.483C37.2646 126.312 39.9291 122.141 42.5935 117.97C45.5011 113.418 48.4086 108.866 51.3161 104.315C54.3131 99.6229 57.31 94.9312 60.3069 90.2397C63.2394 85.6489 66.172 81.058 69.1045 76.4672C71.819 72.2178 74.5334 67.9683 77.2479 63.719C79.5904 60.0517 81.9331 56.3844 84.2756 52.7172C86.0852 49.8842 87.8948 47.0513 89.7044 44.2184C90.8459 42.4315 91.9873 40.6446 93.1287 38.8578C93.3976 38.4368 93.6701 38.0178 93.9356 37.5945C93.9507 37.5705 93.9737 37.5416 93.9972 37.511C93.8744 37.7231 94.1597 37.2638 94.301 37.0921C94.4017 36.9695 94.5483 36.8114 94.5423 36.8113C94.6372 36.721 94.7333 36.6319 94.8323 36.546C94.9866 36.4121 95.1478 36.2876 95.3084 36.1615C94.9392 36.4513 95.3917 36.1121 95.5441 36.0212C96.7591 35.2961 98.1095 34.9498 99.7068 35.0725C101.356 35.1993 102.702 35.7434 104.07 36.8307C104.685 37.3192 105.311 38.1542 105.817 38.9457C106.592 40.1592 107.367 41.3727 108.142 42.5862C109.667 44.9733 111.192 47.3605 112.717 49.7476C114.838 53.0679 116.959 56.3881 119.08 59.7083C121.629 63.6999 124.179 67.6913 126.729 71.6829C129.579 76.1455 132.43 80.6082 135.281 85.0709C138.267 89.7458 141.253 94.4206 144.239 99.0955C147.207 103.742 150.176 108.388 153.144 113.035C155.94 117.412 158.736 121.789 161.532 126.167C164.002 130.034 166.473 133.902 168.943 137.769C170.935 140.886 172.926 144.003 174.917 147.12C176.27 149.239 177.623 151.357 178.976 153.475C179.551 154.376 180.134 155.272 180.702 156.177C181.138 156.872 181.311 157.219 181.54 157.972C181.6 158.167 181.652 158.363 181.697 158.561C181.711 158.623 181.759 158.873 181.78 158.97C181.787 159.063 181.815 159.319 181.819 159.383C181.831 159.579 181.836 159.775 181.834 159.972C181.834 160.022 181.825 160.217 181.821 160.333Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M98.5821 122.507C99.019 122.759 99.6307 122.629 100.038 122.389C101.205 121.703 101.925 120.275 102.041 118.92C103.115 106.361 106.514 75.1051 106.514 68.3062C106.514 59.902 92.8134 60.6835 92.0664 71.3279C91.6887 76.7103 97.5083 119.581 97.8266 121.187C97.9188 121.652 98.1423 122.253 98.5821 122.507Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M101.841 133.945C101.826 133.94 101.812 133.934 101.797 133.929C98.2767 132.6 94.4012 134.976 93.9964 138.717C93.9765 138.901 93.9636 139.086 93.958 139.272C93.8552 142.712 96.4467 146.126 99.8464 146.664C103.245 147.201 106.896 144.494 107.099 141.059C107.285 137.909 104.789 135.072 101.841 133.945Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M161.729 131.662C161.873 131.367 162.082 130.81 161.71 130.584C161.365 130.375 160.901 130.836 160.768 131.107C156.804 139.201 152.84 147.295 148.877 155.389C147.759 157.67 146.642 159.952 145.525 162.233C145.38 162.528 145.171 163.085 145.543 163.311C145.888 163.52 146.352 163.059 146.485 162.788C150.449 154.694 154.413 146.6 158.377 138.506C159.494 136.225 160.611 133.943 161.729 131.662Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M144.786 152.64C144.441 152.43 143.977 152.891 143.844 153.163C142.363 156.187 140.882 159.21 139.402 162.234C139.257 162.528 139.048 163.085 139.42 163.311C139.765 163.521 140.229 163.06 140.362 162.788C141.843 159.764 143.323 156.741 144.804 153.717C144.948 153.423 145.158 152.866 144.786 152.64Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M136.792 156.459C136.447 156.25 135.983 156.711 135.85 156.982C134.993 158.733 134.136 160.483 133.279 162.233C133.134 162.528 132.925 163.085 133.297 163.311C133.642 163.52 134.106 163.06 134.239 162.788C135.096 161.037 135.953 159.287 136.81 157.537C136.955 157.242 137.164 156.685 136.792 156.459Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M129.1 159.663C128.755 159.454 128.291 159.915 128.158 160.186C127.824 160.869 127.49 161.551 127.155 162.234C127.011 162.528 126.802 163.086 127.174 163.311C127.519 163.521 127.983 163.06 128.116 162.788C128.45 162.106 128.784 161.423 129.118 160.741C129.263 160.447 129.472 159.889 129.1 159.663Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M165.835 137.946C165.979 137.652 166.188 137.094 165.816 136.868C165.471 136.659 165.007 137.12 164.874 137.392C161.72 143.832 158.566 150.273 155.412 156.713C154.511 158.553 153.609 160.393 152.708 162.233C152.564 162.528 152.355 163.085 152.726 163.311C153.071 163.52 153.535 163.06 153.669 162.788C156.823 156.347 159.977 149.907 163.131 143.466C164.032 141.626 164.933 139.786 165.835 137.946Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M169.923 143.153C169.578 142.943 169.114 143.404 168.98 143.676C165.951 149.862 162.921 156.048 159.892 162.234C159.748 162.528 159.538 163.086 159.91 163.311C160.255 163.521 160.719 163.06 160.852 162.788C163.882 156.602 166.911 150.416 169.941 144.23C170.085 143.936 170.294 143.378 169.923 143.153Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M174.332 148.821C173.987 148.611 173.523 149.072 173.39 149.344C171.286 153.64 169.182 157.937 167.077 162.234C166.933 162.528 166.724 163.086 167.095 163.311C167.44 163.521 167.905 163.06 168.038 162.788C170.142 158.492 172.246 154.195 174.351 149.898C174.495 149.604 174.704 149.046 174.332 148.821Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M178.197 155.597C177.852 155.387 177.388 155.848 177.255 156.12C176.257 158.158 175.259 160.196 174.261 162.233C174.117 162.528 173.907 163.085 174.279 163.311C174.624 163.52 175.088 163.06 175.221 162.788C176.219 160.75 177.217 158.712 178.215 156.674C178.36 156.38 178.569 155.823 178.197 155.597Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M97.1962 40.2135C97.3477 39.9803 97.4773 39.477 97.1807 39.2971C96.8678 39.1072 96.5194 39.5265 96.3794 39.7419C94.7034 42.3205 93.0556 44.9176 91.4179 47.5205C88.1743 52.6759 84.976 57.8633 81.9271 63.1367C80.4155 65.7509 78.9283 68.3855 77.5879 71.0925C77.4642 71.3423 77.2879 71.8174 77.6034 72.0088C77.8975 72.1874 78.2905 71.7947 78.4047 71.564C80.9657 66.3919 83.9726 61.4308 86.9671 56.5018C89.7369 51.9427 92.5713 47.4226 95.4474 42.9297C96.0279 42.0228 96.6094 41.1164 97.1962 40.2135Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M75.3224 76.1247C75.0193 75.9408 74.6477 76.3459 74.521 76.5695C74.1645 77.1991 73.808 77.8286 73.4515 78.4581C73.3144 78.7003 73.1605 79.1884 73.467 79.3744C73.77 79.5583 74.1416 79.1532 74.2684 78.9296C74.6248 78.3001 74.9814 77.6705 75.3378 77.0411C75.475 76.7988 75.6288 76.3107 75.3224 76.1247Z",fill:"var(--pae-shell-color-secondary)"})]});yu.displayName="WarningIcon";const $v="support@bluealba.com",Fv="@bluealba/pae-shell-ui",Bs=()=>{const{supportEmail:e=$v}=Wa(Fv),t=`mailto:${e}?Subject=Support`;return l.jsxs("div",{className:pr.container,children:[l.jsx(yu,{}),l.jsx("div",{className:pr.title,children:"Oops! Something went wrong"}),l.jsxs("div",{className:pr.description,children:["If the error persists, ",l.jsx("a",{className:pr.mailToText,href:t,children:"contact the administrator."})]})]})};Bs.displayName="ErrorState";const Bv="List__h09XG",Uv="List__h09XG",Hv="Item__YMy2i",Wv="Item__YMy2i",qv="List--primary__J2pbx",zv="List--secondary__gi1ao",Vv="Item--selected__yRWow",Gv="Title__RJmEW",Qv="Title__RJmEW",Kv="Description__DGyX2",Yv="Description__DGyX2",Zv="Actions__UHP5l",Xv="Actions__UHP5l",Jv="Action__q-R1I",e0="Action__q-R1I",t0="Item--disabled__Ke1u-",n0="List--small__ijoSR",r0="List--medium__E1FEY",o0="List--large__T8tfz",s0="Icon__dFr-L",i0="Icon__dFr-L",Re={List:Bv,list:Uv,Item:Hv,item:Wv,"List--primary":"List--primary__J2pbx",listPrimary:qv,"List--secondary":"List--secondary__gi1ao",listSecondary:zv,"Item--selected":"Item--selected__yRWow",itemSelected:Vv,Title:Gv,title:Qv,Description:Kv,description:Yv,Actions:Zv,actions:Xv,Action:Jv,action:e0,"Item--disabled":"Item--disabled__Ke1u-",itemDisabled:t0,"List--small":"List--small__ijoSR",listSmall:n0,"List--medium":"List--medium__E1FEY",listMedium:r0,"List--large":"List--large__T8tfz",listLarge:o0,Icon:s0,icon:i0},vu=_.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 l.jsx("li",{ref:s,className:i,role:"listitem","aria-disabled":r,...o,children:e})});vu.displayName="Item";const bu=_.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Re.Title,t);return l.jsx("h3",{ref:r,className:o,...n,children:e})});bu.displayName="Title";const wu=_.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Re.Description,t);return l.jsx("p",{ref:r,className:o,...n,children:e})});wu.displayName="Description";const Us=({className:e,...t})=>l.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:[l.jsx("path",{d:"M6 6.5C6.27614 6.5 6.5 6.27614 6.5 6C6.5 5.72386 6.27614 5.5 6 5.5C5.72386 5.5 5.5 5.72386 5.5 6C5.5 6.27614 5.72386 6.5 6 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M9.5 6.5C9.77614 6.5 10 6.27614 10 6C10 5.72386 9.77614 5.5 9.5 5.5C9.22386 5.5 9 5.72386 9 6C9 6.27614 9.22386 6.5 9.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M2.5 6.5C2.77614 6.5 3 6.27614 3 6C3 5.72386 2.77614 5.5 2.5 5.5C2.22386 5.5 2 5.72386 2 6C2 6.27614 2.22386 6.5 2.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"})]});Us.displayName="HorizontalDots";const Cu=_.forwardRef(({children:e,className:t,onClick:n,...r},o)=>{const s=_.useRef(null),[i,a]=_.useState(!1),c=D(Re.Actions,t),u=()=>{const w=Rt["DropdownList--open"],f=Rt["DropdownList--closed"];document.querySelectorAll(`.${w}`).forEach(C=>{C!==s.current&&(C.classList.remove(w),C.classList.add(f))})},d=w=>{w.stopPropagation(),i?p():(a(!0),n==null||n(w))},p=()=>{a(!1)},h=w=>{w.key==="Escape"&&p()},g=w=>{s.current&&!s.current.contains(w.target)&&p()};return _.useEffect(()=>(i?(u(),document.addEventListener("keydown",h),document.addEventListener("click",g)):(document.removeEventListener("keydown",h),document.removeEventListener("click",g)),()=>{document.removeEventListener("keydown",h),document.removeEventListener("click",g)}),[i]),l.jsxs("div",{ref:o,className:c,onClick:d,role:"button",tabIndex:0,"data-testid":"actions",...r,children:[l.jsx(Us,{}),l.jsx(Vr,{align:"left",ref:s,open:i,"data-testid":"actions-dropdown",role:"menu","aria-label":"Actions",children:e})]})});Cu.displayName="Actions";const xu=_.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Re.Action,t);return l.jsx("button",{ref:r,className:o,...n,children:e})});xu.displayName="Action";const Eu=_.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Re.Icon,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});Eu.displayName="Icon";const Be=_.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 l.jsx("ul",{ref:s,className:i,role:"list",...o,children:e})});Be.displayName="List";Be.Item=vu;Be.Badges=vs;Be.Badge=ys;Be.Title=bu;Be.Description=wu;Be.Actions=Cu;Be.Action=xu;Be.Icon=Eu;const a0="Navigation__uylxk",c0="PaginationContent__UpLw0",l0="PaginationEllipsis__perWk",u0="PaginationLink__GVUZj",d0="Active__u1Ahy",f0="Disabled__8WM0y",h0="Prev__wp4hc",p0="Next__eVyL5",Ze={Navigation:a0,PaginationContent:c0,PaginationEllipsis:l0,PaginationLink:u0,Active:d0,Disabled:f0,Prev:h0,Next:p0},Su=({className:e,...t})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...t,children:[l.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),l.jsx("path",{d:"M9 6l6 6l-6 6"})]});Su.displayName="ChevronRight";const _u=({className:e,...t})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...t,children:[l.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),l.jsx("path",{d:"M15 6l-6 6l6 6"})]});_u.displayName="ChevronLeft";const Hs=({className:e,...t})=>l.jsx("nav",{role:"navigation","aria-label":"pagination",className:D(Ze.Navigation,e),...t});Hs.displayName="Pagination";const Ws=m.forwardRef(({className:e,...t},n)=>l.jsx("ul",{ref:n,className:D(Ze.PaginationContent,e),...t}));Ws.displayName="PaginationContent";const Rn=m.forwardRef(({className:e,...t},n)=>l.jsx("li",{ref:n,className:e,...t}));Rn.displayName="PaginationItem";const Hn=({className:e,isActive:t,...n})=>l.jsx("a",{"aria-current":t?"page":void 0,className:D(Ze.PaginationLink,t&&Ze.Active,e),...n});Hn.displayName="PaginationLink";const qs=({className:e,disabled:t,...n})=>l.jsxs(Hn,{"aria-label":"Go to previous page",className:D(t&&Ze.Disabled,Ze.Prev,e),...n,children:[l.jsx(_u,{}),l.jsx("span",{children:"Previous"})]});qs.displayName="PaginationPrevious";const zs=({className:e,disabled:t,...n})=>l.jsxs(Hn,{"aria-label":"Go to next page",className:D(t&&Ze.Disabled,Ze.Next,e),...n,children:[l.jsx("span",{children:"Next"}),l.jsx(Su,{})]});zs.displayName="PaginationNext";const Vs=({className:e,...t})=>l.jsx("span",{"aria-hidden":!0,className:D(Ze.PaginationEllipsis,e),...t,children:l.jsx(Us,{})});Vs.displayName="PaginationEllipsis";function m0(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 Ru={exports:{}};(function(e,t){(function(n,r){typeof m0=="function"?e.exports=r():n.pluralize=r()})(cd,function(){var n=[],r=[],o={},s={},i={};function a(f){return typeof f=="string"?new RegExp("^"+f+"$","i"):f}function c(f,y){return f===y?y:f===f.toLowerCase()?y.toLowerCase():f===f.toUpperCase()?y.toUpperCase():f[0]===f[0].toUpperCase()?y.charAt(0).toUpperCase()+y.substr(1).toLowerCase():y.toLowerCase()}function u(f,y){return f.replace(/\$(\d{1,2})/g,function(C,x){return y[x]||""})}function d(f,y){return f.replace(y[0],function(C,x){var S=u(y[1],arguments);return c(C===""?f[x-1]:C,S)})}function p(f,y,C){if(!f.length||o.hasOwnProperty(f))return y;for(var x=C.length;x--;){var S=C[x];if(S[0].test(y))return d(y,S)}return y}function h(f,y,C){return function(x){var S=x.toLowerCase();return y.hasOwnProperty(S)?c(x,S):f.hasOwnProperty(S)?c(x,f[S]):p(S,x,C)}}function g(f,y,C,x){return function(S){var E=S.toLowerCase();return y.hasOwnProperty(E)?!0:f.hasOwnProperty(E)?!1:p(E,E,C)===E}}function w(f,y,C){var x=y===1?w.singular(f):w.plural(f);return(C?y+" ":"")+x}return w.plural=h(i,s,n),w.isPlural=g(i,s,n),w.singular=h(s,i,r),w.isSingular=g(s,i,r),w.addPluralRule=function(f,y){n.push([a(f),y])},w.addSingularRule=function(f,y){r.push([a(f),y])},w.addUncountableRule=function(f){if(typeof f=="string"){o[f.toLowerCase()]=!0;return}w.addPluralRule(f,"$0"),w.addSingularRule(f,"$0")},w.addIrregularRule=function(f,y){y=y.toLowerCase(),f=f.toLowerCase(),i[f]=y,s[y]=f},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(f){return w.addIrregularRule(f[0],f[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(f){return w.addPluralRule(f[0],f[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(f){return w.addSingularRule(f[0],f[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(w.addUncountableRule),w})})(Ru);var g0=Ru.exports;const y0=ld(g0),Gs=({count:e,singularText:t,children:n=(r,o)=>`${r} ${o}`})=>l.jsx(l.Fragment,{children:n(e,y0(t,e))});Gs.displayName="PluralizeCounter";const v0="TableContainer__osh6Z",b0="TableHeader__sYa-8",w0="Table__2cIs3",C0="selectable__WsGg1",x0="Cell__ZEv-K",E0="Right__YoM1V",S0="Center__CF3tr",_0="Sortable__JIV1V",R0="SortIcon__f0bBy",T0="Active__rJjxB",A0="Rotate__7cwTK",P0="Pagination__sbqMP",O0="PointerNone__kQdQS",fe={TableContainer:v0,TableHeader:b0,Table:w0,selectable:C0,Cell:x0,Right:E0,Center:S0,Sortable:_0,SortIcon:R0,Active:T0,Rotate:A0,Pagination:P0,PointerNone:O0},j0="EmptyStateContainer__Q9FEb",D0="Message__IHK6M",ya={EmptyStateContainer:j0,Message:D0},Tu=({size:e=64})=>l.jsxs("svg",{width:e,height:e,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsxs("g",{clipPath:"url(#clip-path)",children:[l.jsx("mask",{id:"mask0_1070_8032",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"64",height:"64",children:l.jsx("path",{d:"M64 0H0V64H64V0Z",fill:"white"})}),l.jsx("g",{mask:"url(#mask0_1070_8032)",children:l.jsx("path",{d:"M40 10.6673H13.3333V53.334H50.6667V21.334H40V10.6673ZM8 7.97932C8 6.51798 9.192 5.33398 10.664 5.33398H42.6667L56 18.6673V55.982C56.0024 56.3321 55.936 56.6793 55.8043 57.0039C55.6725 57.3284 55.4781 57.6239 55.2323 57.8732C54.9864 58.1225 54.6936 58.3209 54.3712 58.4572C54.0485 58.5935 53.7021 58.6649 53.352 58.6673H10.648C9.94768 58.6625 9.27739 58.3823 8.78192 57.8873C8.28645 57.3924 8.00557 56.7223 8 56.022V7.97932ZM36.0773 38.5233C33.8408 39.83 31.2056 40.2788 28.6627 39.786C26.1197 39.2929 23.8428 37.8921 22.2566 35.8444C20.6704 33.7966 19.883 31.2417 20.0414 28.6564C20.1998 26.071 21.293 23.6315 23.1173 21.7927C24.9532 19.9571 27.3955 18.8541 29.9864 18.6904C32.5773 18.5267 35.1389 19.3134 37.1912 20.9032C39.2435 22.493 40.6456 24.7767 41.1347 27.3263C41.6237 29.8759 41.1664 32.5164 39.848 34.7527L45.7413 40.646L41.9707 44.4193L36.0773 38.5233ZM34.4293 33.1047C34.9387 32.6126 35.3451 32.0241 35.6245 31.3735C35.904 30.7228 36.0512 30.0231 36.0573 29.3148C36.0635 28.6065 35.9285 27.9044 35.6603 27.2489C35.3923 26.5935 34.9963 25.998 34.4955 25.4972C33.9947 24.9964 33.3992 24.6004 32.7437 24.3323C32.0883 24.0641 31.3861 23.9292 30.6779 23.9353C29.9696 23.9415 29.2699 24.0886 28.6192 24.3681C27.9685 24.6476 27.38 25.0539 26.888 25.5633C25.9165 26.5692 25.3789 27.9164 25.3911 29.3148C25.4032 30.7132 25.9641 32.0508 26.9531 33.0396C27.9419 34.0287 29.2795 34.5895 30.6779 34.6015C32.0763 34.6137 33.4235 34.0761 34.4293 33.1047Z",fill:"currentColor"})})]}),l.jsx("defs",{children:l.jsx("clipPath",{id:"clip-path",children:l.jsx("rect",{width:"64",height:"64",fill:"white"})})})]});Tu.displayName="EmptyStateIcon";const Qs=({message:e="No results found"})=>l.jsxs("div",{className:D(ya.EmptyStateContainer),children:[l.jsx(Tu,{}),l.jsx("p",{className:ya.Message,children:e})]});Qs.displayName="EmptyState";const k0=(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)},Au=({page:e,totalPages:t,onPageChange:n})=>{const r=e===1,o=e===t;return l.jsx(Hs,{className:fe.Pagination,children:l.jsxs(Ws,{children:[l.jsx(Rn,{children:l.jsx(qs,{className:D({[fe.PointerNone]:r}),onClick:()=>!r&&n(e-1)})}),k0(t,e).map((s,i)=>l.jsxs(Rn,{children:[s==="..."&&l.jsx(Vs,{}),s!=="..."&&l.jsx(Hn,{isActive:+s===e,onClick:()=>+s!==e&&n(+s),children:s})]},i)),l.jsx(Rn,{children:l.jsx(zs,{className:D({[fe.PointerNone]:o}),onClick:()=>!o&&n(e+1)})})]})})};Au.displayName="TablePagination";const Pu=({className:e,...t})=>l.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:l.jsx("path",{d:"M6 2.5V9.5M6 9.5L9.5 6M6 9.5L2.5 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});Pu.displayName="ArrowDown";const Ou=({columns:e,data:t,isLoading:n,totalCount:r=0,headerLabel:o,sort:s,loadingConfig:i,pagination:a,onRowClick:c})=>{const{count:u=5,height:d=40}=i||{},p=y=>y.sortName??y.name,h=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=p(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),f=y=>()=>{if(!s||!y.isSortable)return;const{field:C,direction:x,onSort:S}=s,E=p(y);C===E?S(E,x==="asc"?"desc":"asc"):S(E,"asc")};return l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:fe.TableContainer,children:[o&&l.jsx("div",{className:fe.TableHeader,children:l.jsx(Gs,{count:r,singularText:o,children:(y,C)=>`${y} ${C}`})}),l.jsxs("table",{className:fe.Table,children:[l.jsx("thead",{children:l.jsx("tr",{children:e.map(y=>l.jsx("th",{children:l.jsxs("div",{className:h(y),onClick:f(y),children:[l.jsx("span",{children:y.displayName}),y.isSortable&&l.jsx(Pu,{className:g(y)})]})},y.name))})}),l.jsx("tbody",{children:l.jsxs(ft,{children:[l.jsx(ft.When,{condition:n,children:[...Array(u).keys()].map(y=>l.jsx("tr",{children:l.jsx("td",{colSpan:e.length,style:{padding:4},children:l.jsx(Gr,{height:d})})},y))}),l.jsx(ft.When,{condition:!t.length,children:l.jsx("tr",{children:l.jsx("td",{colSpan:e.length,children:l.jsx(Qs,{})})})}),l.jsx(ft.Else,{children:t.map((y,C)=>l.jsx("tr",{className:c&&fe.selectable,onClick:w(y),children:e.map(x=>l.jsx("td",{style:x.width?{width:x.width}:{},children:l.jsx("div",{className:h(x),children:x.cellRenderer?x.cellRenderer(y):x.valueGetter?x.valueGetter(y):y[x.name]})},`${x.name}-${C}`))},C))})]})})]})]}),a&&l.jsx(Au,{...a})]})};Ou.displayName="Table";const L0="alert__LblpE",I0="destructive__bLNSM",N0="alertTitle__gblKf",M0="alertDescription__BuVHV",Mr={alert:L0,default:"default__mgO6A",destructive:I0,alertTitle:N0,alertDescription:M0},to=({className:e,variant:t="default",children:n,...r})=>l.jsx("div",{"data-slot":"alert",role:"alert",className:D(Mr.alert,Mr[t],e),...r,children:n}),$0=m.forwardRef(({children:e,className:t,...n},r)=>l.jsx("div",{ref:r,"data-slot":"alert-title",className:D(Mr.alertTitle,t),...n,children:e})),F0=m.forwardRef(({children:e,className:t,...n},r)=>l.jsx("div",{ref:r,"data-slot":"alert-description",className:D(Mr.alertDescription,t),...n,children:e}));to.displayName="Alert";to.Title=$0;to.Description=F0;function va(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 $r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?va(Object(n),!0).forEach(function(r){B0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):va(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ju(e){return(ju=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 B0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function os(e){return(os=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 Du(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(os(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(os(r)));return r}}var Dn=null;try{Dn=require("react").createContext()}catch{}var U0={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 H0(e){if(ju(e)!=="object")throw new Error("single-spa-react requires a configuration object");var t,n=$r($r({},U0),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");!Dn&&n.React.createContext&&(Dn=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:W0.bind(null,n),mount:q0.bind(null,n),unmount:z0.bind(null,n)};return n.parcelCanUpdate&&(r.update=V0.bind(null,n)),r}function W0(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then(function(n){e.rootComponent=n})}function q0(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=ku(e,t,function(){n(this)}),s=Du(e,t)(),i=function(a){var c=a.reactDom,u=a.renderType,d=a.elementToRender,p=a.domElement,h=c[u];if(typeof h!="function")throw new Error('renderType "'.concat(u,'" did not return a function.'));switch(u){case"createRoot":case"unstable_createRoot":case"createBlockingRoot":case"unstable_createBlockingRoot":var g=h(p);return g.render(d),g;case"hydrateRoot":return h(p,d);case"hydrate":default:return h(d,p),null}}({elementToRender:o,domElement:s,reactDom:Ks(e),renderType:G0(e)});e.domElements[t.name]=s,e.renderResults[t.name]=i})}function z0(e,t){return new Promise(function(n){e.unmountResolves[t.name]=n;var r=e.renderResults[t.name];r&&r.unmount?r.unmount():Ks(e).unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]})}function V0(e,t){return new Promise(function(n){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(n);var r=ku(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(r);else{var s=Du(e,t)();Ks(e).render(r,s)}})}function Ks(e){return e.ReactDOMClient||e.ReactDOM}function G0(e){return typeof e.renderType=="function"?e.renderType():e.renderType}function ku(e,t,n){var r=e.React.createElement(e.rootComponent,t),o=Dn?e.React.createElement(Dn.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,u){this.setState({caughtError:c,caughtErrorInfo:u})},a}(e,t),o=e.React.createElement(e.errorBoundaryClass,t,o)),o=e.React.createElement(e.SingleSpaRoot,$r($r({},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 Q0=e=>{const t=new bh;return function(r){if(!r)throw new Error("Microfrontend did not receive any properties !!");const o=as(r.module.name);return l.jsx($a,{module:o,children:l.jsxs(Sh,{client:t,children:[l.jsx(e,{...r}),l.jsx(rh,{position:"top-right",reverseOrder:!0})]})})}},K0=({rootComponent:e,...t})=>H0({errorBoundary(n){return console.error(n),l.jsx(Bs,{})},...t,rootComponent:Q0(e)}),Y0=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,Tn,{value:e?Id(t,e):t})};exports.Alert=to;exports.ApplicationIcon=Mc;exports.Authorized=gs;exports.Badge=ys;exports.Badges=vs;exports.Button=jr;exports.ClipboardCheckIcon=Bc;exports.ClipboardIcon=Fc;exports.ConfirmDialog=gu;exports.CopyToClipboardButton=Lp;exports.Dialog=ie;exports.DropdownList=Vr;exports.EmptyState=Qs;exports.ErrorState=Bs;exports.ExtendExtensionPoint=Xh;exports.ExtensionPoint=Dc;exports.EyeIcon=Ml;exports.FieldGroup=Uc;exports.Input=zr;exports.InputError=Hc;exports.Label=Wc;exports.List=Be;exports.ModulePlaceHolder=Nc;exports.Pagination=Hs;exports.PaginationContent=Ws;exports.PaginationEllipsis=Vs;exports.PaginationItem=Rn;exports.PaginationLink=Hn;exports.PaginationNext=zs;exports.PaginationPrevious=qs;exports.PasswordInput=ly;exports.Pill=jv;exports.PlatformEventListener=sp;exports.PlatformEvents=nd;exports.PluralizeCounter=Gs;exports.SearchAutocomplete=Gc;exports.SearchInput=ws;exports.Select=bs;exports.Show=ft;exports.Skeleton=Gr;exports.SkeletonList=Zc;exports.Spinner=Ll;exports.Switch=Il;exports.Table=Ou;exports.Tabs=ry;exports.TabsContent=iy;exports.TabsList=oy;exports.TabsTrigger=sy;exports.TextArea=zc;exports.Tooltip=kl;exports.authorized=ap;exports.dropdownListStyles=Rt;exports.extensionPoint=ep;exports.getApplications=is;exports.getInitials=vd;exports.getOperations=Fa;exports.hasAccess=Ua;exports.initializeMicroFrontend=K0;exports.isPlatformCustomizationCompleted=hf;exports.isValidEmail=yd;exports.logout=pd;exports.navigateTo=md;exports.platformHaveAnyCustomization=ff;exports.setupTestEnvironment=Y0;exports.sortByDisplayOrder=Ja;exports.useApplicationIcon=Ka;exports.useApplicationJSModule=Hr;exports.useApplicationMenu=jd;exports.useApplicationUIModule=Qa;exports.useApplications=Va;exports.useAuth=Br;exports.useCatalog=mn;exports.useCurrentApplication=ls;exports.useCurrentApplicationName=tc;exports.useCurrentJSModule=Fd;exports.useDocumentationMenuItems=ec;exports.useDynamicFonts=cc;exports.useDynamicStyleSheet=ac;exports.useExtendExtensionPoint=sc;exports.useExtensionPoint=oc;exports.useGetPlatformTheme=df;exports.useHasNoSession=dd;exports.useLocation=Ia;exports.useModule=as;exports.useModuleCommonPaths=hd;exports.useModuleConfig=Ha;exports.useModuleConfigByName=Wa;exports.useModuleMenu=Ya;exports.useModuleMetadata=Mn;exports.useMutableCatalog=ad;exports.useNotifications=ds;exports.useOperations=Ba;exports.usePAECustomizationsLoadingState=uf;exports.usePAEState=Fr;exports.usePlatformCustomization=lf;exports.usePlatformEventListener=ic;exports.useResource=Nh;exports.useResourceActions=Oc;exports.useServiceBaseURL=nc;exports.useServiceInvoker=us;exports.useTenants=Kh;exports.useTrackEvent=qd;exports.useTrackEvents=rc;exports.useUIApplications=Ga;exports.useUserState=Zh;