@gouvfr-lasuite/ui-kit 0.19.0 → 0.19.1

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 CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),X=require("@gouvfr-lasuite/cunningham-react"),Bt=require("react-dom");function x2(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const A=x2(u),_f=x2(Bt);function Pf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var fn={exports:{}},$r={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),X=require("@gouvfr-lasuite/cunningham-react"),Nt=require("react-dom");function x2(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const A=x2(u),Pf=x2(Nt);function Af(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var fn={exports:{}},Fr={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Il;function Af(){if(Il)return $r;Il=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function r(n,i,o){var a=null;if(o!==void 0&&(a=""+o),i.key!==void 0&&(a=""+i.key),"key"in i){o={};for(var l in i)l!=="key"&&(o[l]=i[l])}else o=i;return i=o.ref,{$$typeof:t,type:n,key:a,ref:i!==void 0?i:null,props:o}}return $r.Fragment=e,$r.jsx=r,$r.jsxs=r,$r}var _r={};/**
9
+ */var Il;function Tf(){if(Il)return Fr;Il=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function r(n,i,o){var a=null;if(o!==void 0&&(a=""+o),i.key!==void 0&&(a=""+i.key),"key"in i){o={};for(var l in i)l!=="key"&&(o[l]=i[l])}else o=i;return i=o.ref,{$$typeof:t,type:n,key:a,ref:i!==void 0?i:null,props:o}}return Fr.Fragment=e,Fr.jsx=r,Fr.jsxs=r,Fr}var $r={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,18 +14,18 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Ol;function Tf(){return Ol||(Ol=1,process.env.NODE_ENV!=="production"&&function(){function t(M){if(M==null)return null;if(typeof M=="function")return M.$$typeof===V?null:M.displayName||M.name||null;if(typeof M=="string")return M;switch(M){case h:return"Fragment";case m:return"Profiler";case b:return"StrictMode";case w:return"Suspense";case x:return"SuspenseList";case K:return"Activity"}if(typeof M=="object")switch(typeof M.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),M.$$typeof){case y:return"Portal";case E:return(M.displayName||"Context")+".Provider";case C:return(M._context.displayName||"Context")+".Consumer";case $:var R=M.render;return M=M.displayName,M||(M=R.displayName||R.name||"",M=M!==""?"ForwardRef("+M+")":"ForwardRef"),M;case S:return R=M.displayName||null,R!==null?R:t(M.type)||"Memo";case N:R=M._payload,M=M._init;try{return t(M(R))}catch{}}return null}function e(M){return""+M}function r(M){try{e(M);var R=!1}catch{R=!0}if(R){R=console;var F=R.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&M[Symbol.toStringTag]||M.constructor.name||"Object";return F.call(R,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),e(M)}}function n(M){if(M===h)return"<>";if(typeof M=="object"&&M!==null&&M.$$typeof===N)return"<...>";try{var R=t(M);return R?"<"+R+">":"<...>"}catch{return"<...>"}}function i(){var M=D.A;return M===null?null:M.getOwner()}function o(){return Error("react-stack-top-frame")}function a(M){if(T.call(M,"key")){var R=Object.getOwnPropertyDescriptor(M,"key").get;if(R&&R.isReactWarning)return!1}return M.key!==void 0}function l(M,R){function F(){U||(U=!0,console.error("%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://react.dev/link/special-props)",R))}F.isReactWarning=!0,Object.defineProperty(M,"key",{get:F,configurable:!0})}function s(){var M=t(this.type);return P[M]||(P[M]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),M=this.props.ref,M!==void 0?M:null}function c(M,R,F,_,I,L,j,H){return F=L.ref,M={$$typeof:g,type:M,key:R,props:L,_owner:I},(F!==void 0?F:null)!==null?Object.defineProperty(M,"ref",{enumerable:!1,get:s}):Object.defineProperty(M,"ref",{enumerable:!1,value:null}),M._store={},Object.defineProperty(M._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(M,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(M,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:j}),Object.defineProperty(M,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:H}),Object.freeze&&(Object.freeze(M.props),Object.freeze(M)),M}function d(M,R,F,_,I,L,j,H){var W=R.children;if(W!==void 0)if(_)if(Z(W)){for(_=0;_<W.length;_++)f(W[_]);Object.freeze&&Object.freeze(W)}else console.error("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 f(W);if(T.call(R,"key")){W=t(M);var q=Object.keys(R).filter(function(le){return le!=="key"});_=0<q.length?"{key: someKey, "+q.join(": ..., ")+": ...}":"{key: someKey}",B[W+_]||(q=0<q.length?"{"+q.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var Ol;function kf(){return Ol||(Ol=1,process.env.NODE_ENV!=="production"&&function(){function t(N){if(N==null)return null;if(typeof N=="function")return N.$$typeof===V?null:N.displayName||N.name||null;if(typeof N=="string")return N;switch(N){case h:return"Fragment";case m:return"Profiler";case v:return"StrictMode";case D:return"Suspense";case w:return"SuspenseList";case K:return"Activity"}if(typeof N=="object")switch(typeof N.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),N.$$typeof){case y:return"Portal";case E:return(N.displayName||"Context")+".Provider";case C:return(N._context.displayName||"Context")+".Consumer";case F:var R=N.render;return N=N.displayName,N||(N=R.displayName||R.name||"",N=N!==""?"ForwardRef("+N+")":"ForwardRef"),N;case S:return R=N.displayName||null,R!==null?R:t(N.type)||"Memo";case O:R=N._payload,N=N._init;try{return t(N(R))}catch{}}return null}function e(N){return""+N}function r(N){try{e(N);var R=!1}catch{R=!0}if(R){R=console;var $=R.error,P=typeof Symbol=="function"&&Symbol.toStringTag&&N[Symbol.toStringTag]||N.constructor.name||"Object";return $.call(R,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",P),e(N)}}function n(N){if(N===h)return"<>";if(typeof N=="object"&&N!==null&&N.$$typeof===O)return"<...>";try{var R=t(N);return R?"<"+R+">":"<...>"}catch{return"<...>"}}function i(){var N=x.A;return N===null?null:N.getOwner()}function o(){return Error("react-stack-top-frame")}function a(N){if(B.call(N,"key")){var R=Object.getOwnPropertyDescriptor(N,"key").get;if(R&&R.isReactWarning)return!1}return N.key!==void 0}function l(N,R){function $(){W||(W=!0,console.error("%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://react.dev/link/special-props)",R))}$.isReactWarning=!0,Object.defineProperty(N,"key",{get:$,configurable:!0})}function s(){var N=t(this.type);return _[N]||(_[N]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),N=this.props.ref,N!==void 0?N:null}function c(N,R,$,P,T,M,j,H){return $=M.ref,N={$$typeof:g,type:N,key:R,props:M,_owner:T},($!==void 0?$:null)!==null?Object.defineProperty(N,"ref",{enumerable:!1,get:s}):Object.defineProperty(N,"ref",{enumerable:!1,value:null}),N._store={},Object.defineProperty(N._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(N,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(N,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:j}),Object.defineProperty(N,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:H}),Object.freeze&&(Object.freeze(N.props),Object.freeze(N)),N}function d(N,R,$,P,T,M,j,H){var Z=R.children;if(Z!==void 0)if(P)if(U(Z)){for(P=0;P<Z.length;P++)f(Z[P]);Object.freeze&&Object.freeze(Z)}else console.error("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 f(Z);if(B.call(R,"key")){Z=t(N);var q=Object.keys(R).filter(function(le){return le!=="key"});P=0<q.length?"{key: someKey, "+q.join(": ..., ")+": ...}":"{key: someKey}",L[Z+P]||(q=0<q.length?"{"+q.join(": ..., ")+": ...}":"{}",console.error(`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} />`,_,W,q,W),B[W+_]=!0)}if(W=null,F!==void 0&&(r(F),W=""+F),a(R)&&(r(R.key),W=""+R.key),"key"in R){F={};for(var Y in R)Y!=="key"&&(F[Y]=R[Y])}else F=R;return W&&l(F,typeof M=="function"?M.displayName||M.name||"Unknown":M),c(M,W,L,I,i(),F,j,H)}function f(M){typeof M=="object"&&M!==null&&M.$$typeof===g&&M._store&&(M._store.validated=1)}var p=u,g=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),E=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),V=Symbol.for("react.client.reference"),D=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,T=Object.prototype.hasOwnProperty,Z=Array.isArray,k=console.createTask?console.createTask:function(){return null};p={react_stack_bottom_frame:function(M){return M()}};var U,P={},O=p.react_stack_bottom_frame.bind(p,o)(),z=k(n(o)),B={};_r.Fragment=h,_r.jsx=function(M,R,F,_,I){var L=1e4>D.recentlyCreatedOwnerStacks++;return d(M,R,F,!1,_,I,L?Error("react-stack-top-frame"):O,L?k(n(M)):z)},_r.jsxs=function(M,R,F,_,I){var L=1e4>D.recentlyCreatedOwnerStacks++;return d(M,R,F,!0,_,I,L?Error("react-stack-top-frame"):O,L?k(n(M)):z)}}()),_r}var Ml;function kf(){return Ml||(Ml=1,process.env.NODE_ENV==="production"?fn.exports=Af():fn.exports=Tf()),fn.exports}var v=kf();const If={share:{copyLink:"Copy link",ok:"Ok",shareButton:"Share",modalTitle:"Share folder",modalAriaLabel:"Share modal",access:{delete:"Remove access"},cannot_view:{message:"You can view this item but you need additional access to view its members or modify the settings."},invitations:{title:"Pending invitations"},members:{title_plural:"Shared between {count} people",title_singular:"Shared between {count} person",load_more:"Show more "},item:{add:"Add"},search:{placeholder:"Search user",group_name:"Search user result"},user:{no_result:"No result",placeholder:"Search user"},linkSettings:{title:"Link settings",reach:{choices:{public:{title:"Public",description:"Anyone with the link can access the document"},authenticated:{title:"Authenticated",description:"Only authenticated users can access the document"},restricted:{title:"Private",description:"Only users of the space can access the document"}}},role:{choices:{reader:{title:"Reader"},editor:{title:"Editor"}}}}},laGaufre:{label:"Digital LaSuite services",closeLabel:"Close the menu",viewMoreLabel:"View more",viewLessLabel:"View less",loadingText:"Loading…",newWindowLabelSuffix:" (new window)",headerLabel:"About"},userMenu:{term_of_service:"Terms of service",manage_account:"Manage account",open:"Open user menu",close:"Close user menu",accountSettings:"Account settings",logout:"Logout",dialogTitle:"User menu"},treeView:{viewMore:"Load more elements"},footer:{logo:{alt:"Logo of the French government"}},onboarding:{skip:"Skip",next:"Next",previous:"Previous",complete:"Understood",stepLabel:"Step {current} of {total}: {title}",currentStepSuffix:" (current)",contentRegionLabel:"Step {current} of {total} content"}},Of={components:If},Mf={share:{copyLink:"Copier le lien",ok:"Ok",modalTitle:"Partage",modalAriaLabel:"Modale de partage",shareButton:"Partager",access:{delete:"Retirer l'accès"},cannot_view:{message:"Vous pouvez voir cet élément mais vous avez besoin d'un accès supplémentaire pour voir ses membres ou modifier les paramètres."},invitations:{title:"Invitations en attente"},members:{title_plural:"Partagé entre {count} personnes",title_singular:"Partagé entre {count} personne",load_more:"Afficher plus"},item:{add:"Ajouter"},search:{placeholder:"Rechercher un utilisateur",group_name:"Résultat de la recherche d'utilisateur"},user:{no_result:"Aucun résultat",placeholder:"Rechercher un utilisateur"},linkSettings:{title:"Paramètres du lien",reach:{choices:{public:{title:"Public",description:"N'importe qui avec le lien peut accéder au document"},restricted:{title:"Privé",description:"Seulement les utilisateurs de l'espace peuvent y avoir accès"},authenticated:{title:"Authenticated",description:"Seuls les utilisateurs authentifiés peuvent accéder au document"}}},role:{choices:{reader:{title:"Lecture seule"},editor:{title:"Édition"}}}}},laGaufre:{label:"Services de la Suite numérique",closeLabel:"Fermer le menu",loadingText:"Chargement…",viewMoreLabel:"Voir plus",viewLessLabel:"Voir moins",newWindowLabelSuffix:" (nouvelle fenêtre)",headerLabel:"À propos"},userMenu:{term_of_service:"Conditions d'utilisation",open:"Ouvrir le menu utilisateur",close:"Fermer le menu utilisateur",accountSettings:"Paramètres du compte",logout:"Déconnexion",dialogTitle:"Menu utilisateur",manage_account:"Gérer le compte"},treeView:{viewMore:"Charger plus d'éléments"},footer:{logo:{alt:"Logo du gouvernement français"}},onboarding:{skip:"Passer",next:"Suivant",previous:"Précédent",complete:"Compris",stepLabel:"Étape {current} sur {total} : {title}",currentStepSuffix:" (actuelle)",contentRegionLabel:"Contenu de l'étape {current} sur {total}"}},Nf={components:Mf};function Yi(t){return t&&typeof t=="object"&&!Array.isArray(t)}function br(t,...e){if(!e.length)return t;const r=e.shift();if(Yi(t)&&Yi(r))for(const n in r)Yi(r[n])?(t[n]||Object.assign(t,{[n]:{}}),br(t[n],r[n])):Object.assign(t,{[n]:r[n]});return br(t,...e)}const D2={"en-US":br(X.enUS,Of),"fr-FR":br(X.frFR,Nf)},Rf=t=>v.jsx(X.CunninghamProvider,{customLocales:D2,...t}),Bf="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='192'%20height='48'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='m60.986%2021.454%201.156-1.076c.833%201.059%201.819%201.605%202.94%201.605%201.293%200%202.04-.82%202.04-1.912%200-2.56-5.626-2.253-5.626-6.059%200-1.74%201.428-3.209%203.45-3.209%201.684%200%202.908.768%203.792%201.946l-1.19%201.041c-.697-1.007-1.547-1.553-2.584-1.553-1.105%200-1.836.751-1.836%201.74%200%202.578%205.627%202.254%205.627%206.077%200%202.031-1.581%203.363-3.655%203.363-1.768%200-3.077-.666-4.114-1.963Zm10.817-5.735H70.46l1.445-4.574h1.649l-1.751%204.574Zm4.818-3.465c-.56%200-1.02-.46-1.02-1.024a1.026%201.026%200%200%201%201.02-1.007c.56%200%201.003.46%201.003%201.007a1.01%201.01%200%200%201-1.003%201.024Zm-.73%2010.838V14.49h1.444v8.602H75.89Zm3.767-4.3c0-2.51%201.717-4.643%204.403-4.643%201.24%200%202.26.46%203.043%201.297V10.29h1.445v12.801h-1.445v-.955c-.782.836-1.802%201.297-3.043%201.297-2.686%200-4.403-2.134-4.403-4.643Zm1.53%200c0%201.825%201.224%203.276%203.043%203.276%201.19%200%202.21-.58%202.873-1.604v-3.345c-.68-1.042-1.7-1.605-2.873-1.605-1.82%200-3.043%201.45-3.043%203.277Zm18.023%202.884c-.8%201.075-2.074%201.758-3.672%201.758-2.89%200-4.675-2.134-4.675-4.643%200-2.611%201.666-4.642%204.318-4.642%202.329%200%203.842%201.587%203.842%203.738%200%20.34-.051.682-.102.921H92.36v.034c0%201.895%201.292%203.277%203.213%203.277a3.143%203.143%200%200%200%202.567-1.28l1.07.837Zm-4.012-6.281c-1.394%200-2.38.785-2.72%202.27h5.083c-.051-1.246-.952-2.27-2.363-2.27Zm6.274%207.697V14.49h1.445v.973c.697-.768%201.581-1.314%202.856-1.314%201.921%200%203.349%201.297%203.349%203.738v5.205h-1.462v-5.154c0-1.536-.85-2.424-2.176-2.424-1.241%200-2.023.717-2.567%201.622v5.956h-1.445Zm11.052-2.884V15.82h-1.615V14.49h1.615v-2.15h1.462v2.15h2.975v1.331h-2.975v4.387c0%201.348.68%201.724%201.717%201.724.561%200%20.952-.069%201.275-.205v1.297c-.408.17-.867.239-1.479.239-1.904%200-2.975-.956-2.975-3.055Zm7.377-7.954c-.561%200-1.02-.46-1.02-1.024a1.024%201.024%200%200%201%201.02-1.007c.561%200%201.003.46%201.003%201.007a1.01%201.01%200%200%201-1.003%201.024Zm-.731%2010.838V14.49h1.445v8.602h-1.445Zm3.377-8.602h1.615v-1.058c0-1.844%201.207-3.14%203.043-3.14.952%200%201.7.34%202.21.835l-.901%201.059a1.638%201.638%200%200%200-1.292-.58c-.935%200-1.598.682-1.598%201.792v1.092h2.975v1.331h-2.975v7.271h-1.462v-7.27h-1.615V14.49Zm8.543-2.236c-.561%200-1.02-.46-1.02-1.024a1.024%201.024%200%200%201%201.02-1.007c.561%200%201.003.46%201.003%201.007a1.01%201.01%200%200%201-1.003%201.024Zm-.731%2010.838V14.49h1.445v8.602h-1.445Zm12.115-1.416c-.799%201.075-2.074%201.758-3.672%201.758-2.89%200-4.675-2.134-4.675-4.643%200-2.611%201.666-4.642%204.318-4.642%202.329%200%203.842%201.587%203.842%203.738%200%20.34-.051.682-.102.921h-6.562v.034c0%201.895%201.292%203.277%203.213%203.277a3.143%203.143%200%200%200%202.567-1.28l1.071.837Zm-4.012-6.281c-1.394%200-2.38.785-2.72%202.27h5.083c-.051-1.246-.952-2.27-2.363-2.27Zm6.274%207.697V14.49h1.445v1.075c.629-.75%201.411-1.246%202.499-1.246.272%200%20.527.034.731.103v1.502a3.1%203.1%200%200%200-.85-.12c-1.122%200-1.853.58-2.38%201.451v5.837h-1.445Zm13.685.342c-1.683%200-2.822-.956-2.822-2.458%200-1.331.986-2.287%202.822-2.577l2.873-.478v-.598c0-1.195-.85-1.877-2.057-1.877-1.003%200-1.836.444-2.329%201.195l-1.088-.837c.748-1.024%201.955-1.655%203.451-1.655%202.176%200%203.468%201.28%203.468%203.174v5.77h-1.445V22c-.646.905-1.717%201.434-2.873%201.434Zm-1.377-2.51c0%20.735.629%201.298%201.615%201.298%201.139%200%202.04-.598%202.635-1.588v-1.638l-2.533.444c-1.19.188-1.717.734-1.717%201.485Zm7.252-6.434h1.564l2.737%207.083%202.737-7.083h1.564l-3.349%208.602h-1.904l-3.349-8.602Zm17.856%207.186c-.799%201.075-2.074%201.758-3.672%201.758-2.89%200-4.675-2.134-4.675-4.643%200-2.611%201.666-4.642%204.318-4.642%202.329%200%203.842%201.587%203.842%203.738%200%20.34-.051.682-.102.921h-6.562v.034c0%201.895%201.292%203.277%203.213%203.277a3.143%203.143%200%200%200%202.567-1.28l1.071.837Zm-4.012-6.281c-1.394%200-2.38.785-2.72%202.27h5.083c-.051-1.246-.952-2.27-2.363-2.27Zm10.185%206.673a2.891%202.891%200%200%200%202.431-1.28l1.156.888c-.799%201.075-2.04%201.758-3.604%201.758-2.839%200-4.658-2.134-4.658-4.643s1.819-4.642%204.658-4.642c1.547%200%202.805.7%203.604%201.758l-1.156.887a2.917%202.917%200%200%200-2.448-1.28c-1.836%200-3.145%201.45-3.145%203.277%200%201.843%201.309%203.277%203.162%203.277ZM61.854%2040.161V27.51h4.158c2.772%200%204.464%201.428%204.464%203.777%200%202.331-1.692%203.76-4.464%203.76H64.41v5.114h-2.556Zm4.266-10.464h-1.71v3.162h1.71c1.08%200%201.728-.578%201.728-1.608%200-.958-.648-1.554-1.728-1.554Zm6.129%2010.464v-9.109h2.286v.904c.594-.615%201.368-1.084%202.394-1.084.306%200%20.576.054.792.126v2.404a3.922%203.922%200%200%200-1.008-.127c-1.116%200-1.836.614-2.178%201.175v5.71h-2.286Zm11.386-9.47c2.952%200%204.968%202.186%204.968%204.915%200%202.73-2.016%204.916-4.968%204.916s-4.968-2.187-4.968-4.916c0-2.729%202.016-4.915%204.968-4.915Zm.036%207.662c1.458%200%202.556-1.174%202.556-2.747%200-1.59-1.098-2.747-2.556-2.747-1.512%200-2.628%201.157-2.628%202.747%200%201.59%201.116%202.747%202.628%202.747Zm13.172-.235c1.44%200%202.574-.704%203.294-1.735l2.016%201.555c-1.152%201.572-3.024%202.584-5.31%202.584-3.978%200-6.696-3.072-6.696-6.687%200-3.614%202.718-6.686%206.696-6.686%202.286%200%204.158%201.03%205.31%202.566l-2.016%201.572c-.72-1.03-1.854-1.735-3.294-1.735-2.376%200-4.068%201.862-4.068%204.283%200%202.422%201.692%204.283%204.068%204.283Zm11.366-7.427c2.952%200%204.968%202.186%204.968%204.915%200%202.73-2.016%204.916-4.968%204.916s-4.968-2.187-4.968-4.916c0-2.729%202.016-4.915%204.968-4.915Zm.036%207.662c1.458%200%202.556-1.174%202.556-2.747%200-1.59-1.098-2.747-2.556-2.747-1.512%200-2.628%201.157-2.628%202.747%200%201.59%201.116%202.747%202.628%202.747Zm7.018%201.808v-9.109h2.286v.723c.63-.614%201.476-1.084%202.682-1.084%201.962%200%203.528%201.355%203.528%204.048v5.422h-2.322v-5.332c0-1.21-.666-1.97-1.782-1.97-1.152%200-1.764.777-2.106%201.356v5.946h-2.286Zm11.091%200v-9.109h2.286v.723c.63-.614%201.476-1.084%202.682-1.084%201.962%200%203.528%201.355%203.528%204.048v5.422h-2.322v-5.332c0-1.21-.666-1.97-1.782-1.97-1.152%200-1.764.777-2.106%201.356v5.946h-2.286Zm19.444-1.482c-.846%201.138-2.25%201.843-3.96%201.843-3.222%200-5.04-2.259-5.04-4.916%200-2.692%201.692-4.915%204.662-4.915%202.52%200%204.176%201.698%204.176%204.084%200%20.506-.072.994-.144%201.301h-6.354c.144%201.5%201.188%202.386%202.736%202.386.99%200%201.8-.434%202.286-1.085l1.638%201.302Zm-4.338-6.073c-1.116%200-1.872.543-2.178%201.735h4.086c-.036-.903-.702-1.735-1.908-1.735Zm10.696%205.747c.882%200%201.584-.433%202.016-1.066l1.818%201.392c-.846%201.12-2.178%201.843-3.834%201.843-3.132%200-5.004-2.259-5.004-4.916%200-2.656%201.872-4.915%205.004-4.915%201.656%200%202.988.723%203.834%201.843l-1.818%201.392c-.432-.633-1.116-1.067-2.052-1.067-1.494%200-2.592%201.157-2.592%202.747%200%201.609%201.098%202.747%202.628%202.747Zm6.204-1.518V33.15h-1.692v-2.097h1.692v-2.277h2.304v2.277h2.772v2.097h-2.772v3.686c0%201.012.54%201.41%201.44%201.41.63%200%201.044-.072%201.35-.199v2.006c-.45.199-.99.29-1.746.29-2.268%200-3.348-1.284-3.348-3.507Z'/%3e%3cpath%20fill='%23000091'%20d='M37.992%2014.155%2022.998%205.442%208.004%2014.237a.607.607%200%200%200-.306.527V31.78a.67.67%200%200%200%20.306.526l14.992%208.635L37.99%2032.2a.667.667%200%200%200%20.306-.526v-16.99a.608.608%200%200%200-.304-.53Z'/%3e%3cpath%20fill='%23FCC63A'%20d='m17.641%2014.656-5.029%208.663-4.557-9.212%205.39-3.125%204.49%203.173-.294.502Zm20.656%2017.049V14.679a.604.604%200%200%200-.306-.526L22.998%205.442'/%3e%3cpath%20fill='%230063CB'%20d='M7.7%2031.705%2023%205.442v35.504l-14.996-8.64a.667.667%200%200%201-.306-.526V14.765l.002%2016.94Zm24.67-20.819%205.457%203.168-4.489%209.187-5.387-9.273%204.418-3.083v.001Z'/%3e%3cpath%20fill='%23fff'%20d='M42.606%2011.348%2023.416.284a.93.93%200%200%200-.832%200L3.394%2011.348a.89.89%200%200%200-.394.698v22.088a.891.891%200%200%200%20.394.703l19.189%2011.064a.929.929%200%200%200%20.832%200l19.191-11.064a.888.888%200%200%200%20.394-.703V12.046a.893.893%200%200%200-.394-.698ZM13.789%2029.176h.079c-.042%200-.079.007-.079.05%200%20.1.151%200%20.2.1a.91.91%200%200%200-.629.277c0%20.05.1.05.151.05-.075.1-.226.05-.277.153a.176.176%200%200%200%20.1.05c-.05%200-.1%200-.1.05v.153c-.126%200-.176.1-.277.15.2.153.327%200%20.528%200-.528.201-.956.482-1.484.633-.1%200%200%20.15-.1.15.151.101.227-.05.377-.05-.654.38-1.333.703-2.037%201.138a.353.353%200%200%200-.1.201h-.2c-.1.05-.05.177-.151.278.226.15.5-.2.654%200%20.05%200-.1.05-.2.05-.05%200-.05.1-.1.1H9.99c-.1.076-.2.127-.2.278a.22.22%200%200%200-.226.1%209%209%200%200%200%203.144-.58%207.687%207.687%200%200%200%202.088-1.566.177.177%200%200%201%20.05.1c-.147.439-.43.82-.806%201.084-.277.153-.478.38-.7.481a4.05%204.05%200%200%200-.428.277c-.632.198-1.281.337-1.939.414l-.305.044c-.225.033-.449.07-.671.109l-1.993-1.143a.648.648%200%200%201-.288-.413.568.568%200%200%200%20.094-.063.267.267%200%200%200-.113-.071v-.653a12.74%2012.74%200%200%200%203.038-.945%208.731%208.731%200%200%200-3.037-1.349v-1.52c.555.09%201.103.222%201.639.393a6.41%206.41%200%200%201%201.182.58c.147.14.307.268.478.379a.908.908%200%200%200%20.8.05h.33a3.954%203.954%200%200%200%201.937-.909c0%20.05.05.05.1.05-.078.4-.223.785-.428%201.137.003.05-.048.152.053.203Zm2.817%203.584c.251-.1.4-.277.629-.378-.05.05-.05.151-.1.201a3.71%203.71%200%200%200-.528.402%2016%2016%200%200%200-1.585%201.616c-.252.302-.528.58-.8.859-.096.09-.2.172-.31.246l-2.527-1.456c.36.03.721.013%201.076-.053.294-.084.58-.193.855-.329v.1c.7-.277%201.232-.909%201.937-1.136.025%200%20.126.1.226.05a1.885%201.885%200%200%201%201.509-.702c0%20.05%200%20.1.05.1h.025c-.151.127-.327.251-.5.378-.057.053-.007.102.043.102Zm-8.908-6.188v-.187a5.795%205.795%200%200%201%201.588-.188c.158-.026.32-.026.478%200a5.84%205.84%200%200%200-2.066.375Zm30.6%205.109a.67.67%200%200%201-.306.526L27.913%2038.08a32.214%2032.214%200%200%201-3.408-1.189%202.847%202.847%200%200%201-.05-2.254c.08-.309.198-.607.352-.886.025-.025.05-.05.05-.076a.025.025%200%200%200%20.025-.025%204.33%204.33%200%200%201%20.377-.558l.015-.015.02-.02.015-.016c0-.025.025-.05.05-.076.025-.052.075-.077.1-.127a3.78%203.78%200%200%201%20.579-.502c.213-.077.431-.136.654-.178.811.06%201.617.171%202.415.33a.753.753%200%200%201%20.277.1c.301.06.612.041.905-.05a1.135%201.135%200%200%200%20.855-.709%201.22%201.22%200%200%200%20.05-1.064c-.178-.276-.013-.438.181-.592l.068-.055c.086-.06.164-.134.231-.216.126-.254-.1-.402-.151-.633-.05-.1-.226-.05-.327-.2.352-.152.855-.433.629-.861-.151-.228-.377-.633-.1-.86.352-.201.855-.152%201.006-.483a1.146%201.146%200%200%200-.292-1.088l-.075-.108a4.776%204.776%200%200%201-.211-.322%206.934%206.934%200%200%200-.528-.76%204.32%204.32%200%200%201-.528-1.014c-.151-.378.05-.708.05-1.087a6.397%206.397%200%200%200-.327-2.153c-.126-.354-.176-.734-.327-1.064a1.127%201.127%200%200%200-.226-.582.376.376%200%200%201%200-.329c.205-.145.399-.306.579-.482a.571.571%200%200%200-.2-.707c-.327-.152-.3.329-.528.43h-.151c-.05-.126.05-.177.151-.278%200-.05%200-.151-.05-.151-.2%200-.377-.052-.428-.152a3.956%203.956%200%200%200-1.861-1.291c.188.058.382.091.579.1.338.072.69.036%201.006-.1.227-.077.277-.482.377-.709a.806.806%200%200%200-.151-.634%202.192%202.192%200%200%200-.906-.759%209.094%209.094%200%200%201-.679-.354.952.952%200%200%200-.251-.127c-2.965-1.49-9.069-.2-9.534%200h-.009a8.23%208.23%200%200%200-1.249.477%203.92%203.92%200%200%200-2.365%202.475%203.84%203.84%200%200%200-1.333%201.515c-.428.804-1.056%201.515-.956%202.424.1.783.277%201.49.428%202.298.043.273.11.542.2.803.1.278%200%20.632.151.859.075.15.025.328.227.43v.2c.05.05.05.1.151.1v.202c.435.424.807.91%201.107%201.44.1.276-.478.15-.7.05a5.983%205.983%200%200%201-1.132-.96.177.177%200%200%200-.051.1c.2.354.906.783.528%201.01-.2.1-.428-.151-.629.05-.05.077%200%20.178%200%20.278-.277-.2-.578-.1-.855-.2-.2-.05-.252-.429-.478-.429a15.135%2015.135%200%200%200-1.811-.328%2015.1%2015.1%200%200%200-1.739-.161V14.766a.61.61%200%200%201%20.306-.526l14.987-8.796%2014.994%208.712a.606.606%200%200%201%20.306.526V31.68Zm-7.954-8.295a.325.325%200%200%201-.282.15c-.1.085-.194.176-.282.274.1%200%200%20.15.1.15-.205.224.077.697-.205.796-.37.1-.758.1-1.127%200a.721.721%200%200%201%20.167-.016h.085a.38.38%200%200%200%20.337-.133v-.2c0-.05-.051-.05-.1-.05a.16.16%200%200%201-.1.05.225.225%200%200%200-.154-.201.804.804%200%200%201-.718-.274.668.668%200%200%201%20.436-.05c.128%200%20.077-.225.231-.324h.154c.307-.373.871-.473.974-.846%200-.1-.282-.1-.487-.15a2.253%202.253%200%200%200-.82.05c-.36.05-.712.142-1.051.274.28-.206.592-.366.923-.472.232-.09.473-.158.718-.201l.132-.026.133-.027a.968.968%200%200%201%20.556%200c.231.1.615.1.666.248.1.275-.154.548-.435.747-.057.08.149.136.149.231Z'/%3e%3cpath%20fill='%23FCC63A'%20d='M55.56%200H30c-1.105%200-2%20.899-2%202.008v9.34c0%201.108.895%202.007%202%202.007h25.56c1.105%200%202-.899%202-2.008V2.008a2.004%202.004%200%200%200-2-2.008Z'/%3e%3cpath%20fill='%23161616'%20d='M30.562%2011.213V2.325h2.921c.97%200%201.732.237%202.289.711.565.474.847%201.122.847%201.943%200%20.813-.282%201.456-.847%201.93-.557.474-1.32.71-2.289.71h-1.125v3.594h-1.796Zm2.997-7.351h-1.201v2.221h1.2c.38%200%20.675-.097.886-.29.22-.197.329-.476.329-.84%200-.338-.11-.605-.329-.8-.21-.194-.506-.291-.885-.291Zm4.671%207.35V2.326h2.707c.97%200%201.736.237%202.301.711.565.474.847%201.122.847%201.943%200%20.532-.126.999-.379%201.396a2.4%202.4%200%200%201-1.037.902l2.782%203.936h-2.15L40.949%207.62h-.923v3.593H38.23Zm2.808-7.35h-1.012v2.221h1.012c.38%200%20.674-.097.885-.29.21-.197.316-.476.316-.84%200-.338-.105-.605-.316-.8-.21-.194-.506-.291-.885-.291Zm9.511-1.79c.69%200%201.323.126%201.896.38.582.254%201.08.593%201.492%201.016.414.423.734.923.962%201.498a4.81%204.81%200%200%201%20.341%201.803c0%20.635-.114%201.24-.341%201.815a4.504%204.504%200%200%201-.962%201.486%204.67%204.67%200%200%201-1.492%201.015c-.598.26-1.244.39-1.896.382a4.721%204.721%200%200%201-3.402-1.397%204.504%204.504%200%200%201-.961-1.486%204.892%204.892%200%200%201-.342-1.815c0-.635.114-1.236.342-1.803a4.473%204.473%200%200%201%20.961-1.498%204.72%204.72%200%200%201%203.402-1.397Zm0%207.706a2.79%202.79%200%200%200%201.138-.229c.354-.16.653-.371.898-.634.252-.271.45-.589.594-.953.145-.38.218-.785.215-1.193a3.193%203.193%200%200%200-.215-1.18%202.805%202.805%200%200%200-.595-.953A2.547%202.547%200%200%200%2051.687%204a2.664%202.664%200%200%200-1.138-.24c-.413%200-.797.08-1.151.24a2.678%202.678%200%200%200-.91.635c-.254.276-.451.6-.582.952a3.193%203.193%200%200%200-.215%201.181c0%20.423.071.82.215%201.193.143.364.337.682.581.953.253.262.557.474.91.634.355.153.739.23%201.152.23Z'/%3e%3c/svg%3e",Lf="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='190'%20height='48'%20fill='none'%3e%3cpath%20fill='%23929292'%20d='m57.986%2021.454%201.156-1.076c.833%201.059%201.819%201.605%202.94%201.605%201.293%200%202.04-.82%202.04-1.912%200-2.56-5.626-2.253-5.626-6.059%200-1.74%201.428-3.209%203.45-3.209%201.684%200%202.908.768%203.792%201.946l-1.19%201.041c-.697-1.007-1.547-1.553-2.584-1.553-1.105%200-1.836.751-1.836%201.74%200%202.578%205.627%202.254%205.627%206.077%200%202.031-1.581%203.363-3.655%203.363-1.768%200-3.077-.666-4.114-1.963Zm10.817-5.735H67.46l1.445-4.574h1.649l-1.751%204.574Zm4.818-3.465c-.56%200-1.02-.46-1.02-1.024a1.026%201.026%200%200%201%201.02-1.007c.56%200%201.003.46%201.003%201.007a1.01%201.01%200%200%201-1.003%201.024Zm-.73%2010.838V14.49h1.444v8.602H72.89Zm3.767-4.3c0-2.51%201.717-4.643%204.403-4.643%201.24%200%202.26.46%203.043%201.297V10.29h1.445v12.801h-1.445v-.955c-.782.836-1.802%201.297-3.043%201.297-2.686%200-4.403-2.134-4.403-4.643Zm1.53%200c0%201.825%201.224%203.276%203.043%203.276%201.19%200%202.21-.58%202.873-1.604v-3.345c-.68-1.042-1.7-1.605-2.873-1.605-1.82%200-3.043%201.45-3.043%203.277Zm18.023%202.884c-.8%201.075-2.074%201.758-3.672%201.758-2.89%200-4.675-2.134-4.675-4.643%200-2.611%201.666-4.642%204.318-4.642%202.329%200%203.842%201.587%203.842%203.738%200%20.34-.051.682-.102.921H89.36v.034c0%201.895%201.292%203.277%203.213%203.277a3.143%203.143%200%200%200%202.567-1.28l1.07.837Zm-4.012-6.281c-1.394%200-2.38.785-2.72%202.27h5.083c-.051-1.246-.952-2.27-2.363-2.27Zm6.274%207.697V14.49h1.445v.973c.697-.768%201.581-1.314%202.856-1.314%201.921%200%203.349%201.297%203.349%203.738v5.205h-1.462v-5.154c0-1.536-.85-2.424-2.176-2.424-1.241%200-2.023.717-2.567%201.622v5.956h-1.445Zm11.052-2.884V15.82h-1.615V14.49h1.615v-2.15h1.462v2.15h2.975v1.331h-2.975v4.387c0%201.348.68%201.724%201.717%201.724.561%200%20.952-.069%201.275-.205v1.297c-.408.17-.867.239-1.479.239-1.904%200-2.975-.956-2.975-3.055Zm7.377-7.954c-.561%200-1.02-.46-1.02-1.024a1.024%201.024%200%200%201%201.02-1.007c.561%200%201.003.46%201.003%201.007a1.01%201.01%200%200%201-1.003%201.024Zm-.731%2010.838V14.49h1.445v8.602h-1.445Zm3.377-8.602h1.615v-1.058c0-1.844%201.207-3.14%203.043-3.14.952%200%201.7.34%202.21.835l-.901%201.059a1.638%201.638%200%200%200-1.292-.58c-.935%200-1.598.682-1.598%201.792v1.092h2.975v1.331h-2.975v7.271h-1.462v-7.27h-1.615V14.49Zm8.543-2.236c-.561%200-1.02-.46-1.02-1.024a1.024%201.024%200%200%201%201.02-1.007c.561%200%201.003.46%201.003%201.007a1.01%201.01%200%200%201-1.003%201.024Zm-.731%2010.838V14.49h1.445v8.602h-1.445Zm12.115-1.416c-.799%201.075-2.074%201.758-3.672%201.758-2.89%200-4.675-2.134-4.675-4.643%200-2.611%201.666-4.642%204.318-4.642%202.329%200%203.842%201.587%203.842%203.738%200%20.34-.051.682-.102.921h-6.562v.034c0%201.895%201.292%203.277%203.213%203.277a3.143%203.143%200%200%200%202.567-1.28l1.071.837Zm-4.012-6.281c-1.394%200-2.38.785-2.72%202.27h5.083c-.051-1.246-.952-2.27-2.363-2.27Zm6.274%207.697V14.49h1.445v1.075c.629-.75%201.411-1.246%202.499-1.246.272%200%20.527.034.731.103v1.502a3.1%203.1%200%200%200-.85-.12c-1.122%200-1.853.58-2.38%201.451v5.837h-1.445Zm13.685.342c-1.683%200-2.822-.956-2.822-2.458%200-1.331.986-2.287%202.822-2.577l2.873-.478v-.598c0-1.195-.85-1.877-2.057-1.877-1.003%200-1.836.444-2.329%201.195l-1.088-.837c.748-1.024%201.955-1.655%203.451-1.655%202.176%200%203.468%201.28%203.468%203.174v5.77h-1.445V22c-.646.905-1.717%201.434-2.873%201.434Zm-1.377-2.51c0%20.735.629%201.298%201.615%201.298%201.139%200%202.04-.598%202.635-1.588v-1.638l-2.533.444c-1.19.188-1.717.734-1.717%201.485Zm7.252-6.434h1.564l2.737%207.083%202.737-7.083h1.564l-3.349%208.602h-1.904l-3.349-8.602Zm17.856%207.186c-.799%201.075-2.074%201.758-3.672%201.758-2.89%200-4.675-2.134-4.675-4.643%200-2.611%201.666-4.642%204.318-4.642%202.329%200%203.842%201.587%203.842%203.738%200%20.34-.051.682-.102.921h-6.562v.034c0%201.895%201.292%203.277%203.213%203.277a3.143%203.143%200%200%200%202.567-1.28l1.071.837Zm-4.012-6.281c-1.394%200-2.38.785-2.72%202.27h5.083c-.051-1.246-.952-2.27-2.363-2.27Zm10.185%206.673a2.891%202.891%200%200%200%202.431-1.28l1.156.888c-.799%201.075-2.04%201.758-3.604%201.758-2.839%200-4.658-2.134-4.658-4.643s1.819-4.642%204.658-4.642c1.547%200%202.805.7%203.604%201.758l-1.156.887a2.917%202.917%200%200%200-2.448-1.28c-1.836%200-3.145%201.45-3.145%203.277%200%201.843%201.309%203.277%203.162%203.277ZM58.854%2040.161V27.51h4.158c2.772%200%204.464%201.428%204.464%203.777%200%202.331-1.692%203.76-4.464%203.76H61.41v5.114h-2.556Zm4.266-10.464h-1.71v3.162h1.71c1.08%200%201.728-.578%201.728-1.608%200-.958-.648-1.554-1.728-1.554Zm6.129%2010.464v-9.109h2.286v.904c.594-.615%201.368-1.084%202.394-1.084.306%200%20.576.054.792.126v2.404a3.922%203.922%200%200%200-1.008-.127c-1.116%200-1.836.614-2.178%201.175v5.71h-2.286Zm11.386-9.47c2.952%200%204.968%202.186%204.968%204.915%200%202.73-2.016%204.916-4.968%204.916s-4.968-2.187-4.968-4.916c0-2.729%202.016-4.915%204.968-4.915Zm.036%207.662c1.458%200%202.556-1.174%202.556-2.747%200-1.59-1.098-2.747-2.556-2.747-1.512%200-2.628%201.157-2.628%202.747%200%201.59%201.116%202.747%202.628%202.747Zm13.172-.235c1.44%200%202.574-.704%203.294-1.735l2.016%201.555c-1.152%201.572-3.024%202.584-5.31%202.584-3.978%200-6.696-3.072-6.696-6.687%200-3.614%202.718-6.686%206.696-6.686%202.286%200%204.158%201.03%205.31%202.566l-2.016%201.572c-.72-1.03-1.854-1.735-3.294-1.735-2.376%200-4.068%201.862-4.068%204.283%200%202.422%201.692%204.283%204.068%204.283Zm11.366-7.427c2.952%200%204.968%202.186%204.968%204.915%200%202.73-2.016%204.916-4.968%204.916s-4.968-2.187-4.968-4.916c0-2.729%202.016-4.915%204.968-4.915Zm.036%207.662c1.458%200%202.556-1.174%202.556-2.747%200-1.59-1.098-2.747-2.556-2.747-1.512%200-2.628%201.157-2.628%202.747%200%201.59%201.116%202.747%202.628%202.747Zm7.018%201.808v-9.109h2.286v.723c.63-.614%201.476-1.084%202.682-1.084%201.962%200%203.528%201.355%203.528%204.048v5.422h-2.322v-5.332c0-1.21-.666-1.97-1.782-1.97-1.152%200-1.764.777-2.106%201.356v5.946h-2.286Zm11.091%200v-9.109h2.286v.723c.63-.614%201.476-1.084%202.682-1.084%201.962%200%203.528%201.355%203.528%204.048v5.422h-2.322v-5.332c0-1.21-.666-1.97-1.782-1.97-1.152%200-1.764.777-2.106%201.356v5.946h-2.286Zm19.444-1.482c-.846%201.138-2.25%201.843-3.96%201.843-3.222%200-5.04-2.259-5.04-4.916%200-2.692%201.692-4.915%204.662-4.915%202.52%200%204.176%201.698%204.176%204.084%200%20.506-.072.994-.144%201.301h-6.354c.144%201.5%201.188%202.386%202.736%202.386.99%200%201.8-.434%202.286-1.085l1.638%201.302Zm-4.338-6.073c-1.116%200-1.872.543-2.178%201.735h4.086c-.036-.903-.702-1.735-1.908-1.735Zm10.696%205.747c.882%200%201.584-.433%202.016-1.066l1.818%201.392c-.846%201.12-2.178%201.843-3.834%201.843-3.132%200-5.004-2.259-5.004-4.916%200-2.656%201.872-4.915%205.004-4.915%201.656%200%202.988.723%203.834%201.843l-1.818%201.392c-.432-.633-1.116-1.067-2.052-1.067-1.494%200-2.592%201.157-2.592%202.747%200%201.609%201.098%202.747%202.628%202.747Zm6.204-1.518V33.15h-1.692v-2.097h1.692v-2.277h2.304v2.277h2.772v2.097h-2.772v3.686c0%201.012.54%201.41%201.44%201.41.63%200%201.044-.072%201.35-.199v2.006c-.45.199-.99.29-1.746.29-2.268%200-3.348-1.284-3.348-3.507Z'/%3e%3cpath%20fill='%237C7C7C'%20d='M34.992%2014.155%2019.998%205.442%205.004%2014.237a.607.607%200%200%200-.306.527V31.78a.67.67%200%200%200%20.306.526l14.992%208.635L34.99%2032.2a.667.667%200%200%200%20.306-.526v-16.99a.608.608%200%200%200-.304-.53Z'/%3e%3cpath%20fill='%23F6F6F6'%20d='M14.641%2014.656%209.612%2023.32l-4.557-9.212%205.39-3.125%204.49%203.173-.294.502Zm20.656%2017.049V14.679a.604.604%200%200%200-.306-.526L19.998%205.442'/%3e%3cpath%20fill='%23929292'%20d='M4.7%2031.705%2020%205.442v35.504l-14.996-8.64a.667.667%200%200%201-.306-.526V14.765l.002%2016.94Zm24.67-20.819%205.457%203.168-4.489%209.187-5.387-9.273%204.418-3.083v.001Z'/%3e%3cpath%20fill='%23CECECE'%20d='M39.606%2011.348%2020.416.284a.93.93%200%200%200-.832%200L.394%2011.348a.89.89%200%200%200-.394.698v22.088a.891.891%200%200%200%20.394.703l19.189%2011.064a.929.929%200%200%200%20.832%200l19.191-11.064a.888.888%200%200%200%20.394-.703V12.046a.893.893%200%200%200-.394-.698ZM10.789%2029.176h.079c-.042%200-.079.007-.079.05%200%20.1.151%200%20.2.1a.91.91%200%200%200-.629.277c0%20.05.1.05.151.05-.075.1-.226.05-.277.153a.176.176%200%200%200%20.1.05c-.05%200-.1%200-.1.05v.153c-.126%200-.176.1-.277.15.2.153.327%200%20.528%200-.528.201-.956.482-1.484.633-.1%200%200%20.15-.1.15.151.101.227-.05.377-.05-.654.38-1.333.703-2.037%201.138a.353.353%200%200%200-.1.201h-.2c-.1.05-.05.177-.151.278.226.15.5-.2.654%200%20.05%200-.1.05-.2.05-.05%200-.05.1-.1.1H6.99c-.1.076-.2.127-.2.278a.22.22%200%200%200-.226.1%209%209%200%200%200%203.144-.58%207.687%207.687%200%200%200%202.088-1.566.177.177%200%200%201%20.05.1c-.147.439-.43.82-.806%201.084-.277.153-.478.38-.7.481a4.05%204.05%200%200%200-.428.277c-.632.198-1.281.337-1.939.414l-.305.044c-.225.033-.449.07-.671.109l-1.993-1.143a.648.648%200%200%201-.288-.413.568.568%200%200%200%20.094-.063.267.267%200%200%200-.113-.071v-.653a12.74%2012.74%200%200%200%203.038-.945%208.731%208.731%200%200%200-3.037-1.349v-1.52c.555.09%201.103.222%201.639.393.413.152.809.346%201.182.58.147.14.307.268.478.379a.908.908%200%200%200%20.8.05h.33a3.954%203.954%200%200%200%201.937-.909c0%20.05.05.05.1.05-.078.4-.223.785-.428%201.137.003.05-.048.152.053.203Zm2.817%203.584c.251-.1.4-.277.629-.378-.05.05-.05.151-.1.201a3.71%203.71%200%200%200-.528.402%2016%2016%200%200%200-1.585%201.616c-.252.302-.528.58-.8.859-.096.09-.2.172-.31.246L8.385%2034.25c.36.03.721.013%201.076-.053.294-.084.58-.193.855-.329v.1c.7-.277%201.232-.909%201.937-1.136.025%200%20.126.1.226.05a1.885%201.885%200%200%201%201.509-.702c0%20.05%200%20.1.05.1h.025c-.151.127-.327.251-.5.378-.057.053-.007.102.043.102Zm-8.908-6.188v-.187a5.795%205.795%200%200%201%201.588-.188c.158-.026.32-.026.478%200a5.84%205.84%200%200%200-2.066.375Zm30.6%205.109a.67.67%200%200%201-.306.526L24.913%2038.08a32.214%2032.214%200%200%201-3.408-1.189%202.847%202.847%200%200%201-.05-2.254c.08-.309.198-.607.352-.886.025-.025.05-.05.05-.076a.025.025%200%200%200%20.025-.025%204.33%204.33%200%200%201%20.377-.558l.015-.015.02-.02.015-.016c0-.025.025-.05.05-.076.025-.052.075-.077.1-.127a3.78%203.78%200%200%201%20.579-.502c.213-.077.431-.136.654-.178.811.06%201.617.171%202.415.33a.753.753%200%200%201%20.277.1c.301.06.612.041.905-.05a1.135%201.135%200%200%200%20.855-.709%201.22%201.22%200%200%200%20.05-1.064c-.178-.276-.013-.438.181-.592l.068-.055c.086-.06.164-.134.231-.216.126-.254-.1-.402-.151-.633-.05-.1-.226-.05-.327-.2.352-.152.855-.433.629-.861-.151-.228-.377-.633-.1-.86.352-.201.855-.152%201.006-.483a1.146%201.146%200%200%200-.292-1.088l-.075-.108a4.776%204.776%200%200%201-.211-.322%206.934%206.934%200%200%200-.528-.76%204.32%204.32%200%200%201-.528-1.014c-.151-.378.05-.708.05-1.087a6.397%206.397%200%200%200-.327-2.153c-.126-.354-.176-.734-.327-1.064a1.127%201.127%200%200%200-.226-.582.376.376%200%200%201%200-.329c.205-.145.399-.306.579-.482a.571.571%200%200%200-.2-.707c-.327-.152-.3.329-.528.43h-.151c-.05-.126.05-.177.151-.278%200-.05%200-.151-.05-.151-.2%200-.377-.052-.428-.152a3.956%203.956%200%200%200-1.861-1.291c.188.058.382.091.579.1.338.072.69.036%201.006-.1.227-.077.277-.482.377-.709a.806.806%200%200%200-.151-.634%202.192%202.192%200%200%200-.906-.759%209.094%209.094%200%200%201-.679-.354.952.952%200%200%200-.251-.127c-2.965-1.49-9.069-.2-9.534%200h-.009a8.23%208.23%200%200%200-1.249.477%203.92%203.92%200%200%200-2.365%202.475%203.84%203.84%200%200%200-1.333%201.515c-.428.804-1.056%201.515-.956%202.424.1.783.277%201.49.428%202.298.043.273.11.542.2.803.1.278%200%20.632.151.859.075.15.025.328.227.43v.2c.05.05.05.1.151.1v.202c.435.424.807.91%201.107%201.44.1.276-.478.15-.7.05a5.983%205.983%200%200%201-1.132-.96.177.177%200%200%200-.051.1c.2.354.906.783.528%201.01-.2.1-.428-.151-.629.05-.05.077%200%20.178%200%20.278-.277-.2-.578-.1-.855-.2-.2-.05-.252-.429-.478-.429a15.135%2015.135%200%200%200-1.811-.328%2015.1%2015.1%200%200%200-1.739-.161V14.766a.61.61%200%200%201%20.306-.526l14.987-8.796%2014.994%208.712a.606.606%200%200%201%20.306.526V31.68Zm-7.954-8.295a.325.325%200%200%201-.282.15c-.1.085-.194.176-.282.274.1%200%200%20.15.1.15-.205.224.077.697-.205.796-.37.1-.758.1-1.127%200a.721.721%200%200%201%20.167-.016h.085a.38.38%200%200%200%20.337-.133v-.2c0-.05-.051-.05-.1-.05a.16.16%200%200%201-.1.05.225.225%200%200%200-.154-.201.804.804%200%200%201-.718-.274.668.668%200%200%201%20.436-.05c.128%200%20.077-.225.231-.324h.154c.307-.373.871-.473.974-.846%200-.1-.282-.1-.487-.15a2.253%202.253%200%200%200-.82.05c-.36.05-.712.142-1.051.274.28-.206.592-.366.923-.472.232-.09.473-.158.718-.201l.132-.026.133-.027a.968.968%200%200%201%20.556%200c.231.1.615.1.666.248.1.275-.154.548-.435.747-.057.08.149.136.149.231Z'/%3e%3cpath%20fill='%23DDD'%20d='M52.56%200H27c-1.105%200-2%20.899-2%202.008v9.34c0%201.108.895%202.007%202%202.007h25.56c1.105%200%202-.899%202-2.008V2.008a2.004%202.004%200%200%200-2-2.008Z'/%3e%3cpath%20fill='%23929292'%20d='M27.562%2011.213V2.325h2.921c.97%200%201.732.237%202.289.711.565.474.847%201.122.847%201.943%200%20.813-.282%201.456-.847%201.93-.557.474-1.32.71-2.289.71h-1.125v3.594h-1.796Zm2.997-7.351h-1.201v2.221h1.2c.38%200%20.675-.097.886-.29.22-.197.329-.476.329-.84%200-.338-.11-.605-.329-.8-.21-.194-.506-.291-.885-.291Zm4.671%207.35V2.326h2.707c.97%200%201.736.237%202.301.711.565.474.847%201.122.847%201.943%200%20.532-.126.999-.379%201.396a2.4%202.4%200%200%201-1.037.902l2.782%203.936h-2.15L37.949%207.62h-.923v3.593H35.23Zm2.808-7.35h-1.012v2.221h1.012c.38%200%20.674-.097.885-.29.21-.197.316-.476.316-.84%200-.338-.105-.605-.316-.8-.21-.194-.506-.291-.885-.291Zm9.511-1.79c.69%200%201.323.126%201.896.38.582.254%201.08.593%201.492%201.016.414.423.734.923.962%201.498a4.81%204.81%200%200%201%20.341%201.803c0%20.635-.114%201.24-.341%201.815a4.504%204.504%200%200%201-.962%201.486%204.67%204.67%200%200%201-1.492%201.015c-.598.26-1.244.39-1.896.382a4.721%204.721%200%200%201-3.402-1.397%204.504%204.504%200%200%201-.961-1.486%204.892%204.892%200%200%201-.342-1.815c0-.635.114-1.236.342-1.803a4.473%204.473%200%200%201%20.961-1.498%204.72%204.72%200%200%201%203.402-1.397Zm0%207.706a2.79%202.79%200%200%200%201.138-.229c.354-.16.653-.371.898-.634.252-.271.45-.589.594-.953.145-.38.218-.785.215-1.193a3.193%203.193%200%200%200-.215-1.18%202.805%202.805%200%200%200-.595-.953A2.547%202.547%200%200%200%2048.687%204a2.664%202.664%200%200%200-1.138-.24c-.413%200-.797.08-1.151.24a2.678%202.678%200%200%200-.91.635c-.254.276-.451.6-.582.952a3.193%203.193%200%200%200-.215%201.181c0%20.423.071.82.215%201.193.143.364.337.682.581.953.253.262.557.474.91.634.355.153.739.23%201.152.23Z'/%3e%3c/svg%3e",S2=({disabled:t,onClick:e})=>v.jsx(X.Button,{disabled:t,className:"pro-connect-button",onClick:e,style:{backgroundImage:`url("${t?Lf:Bf}")`}});u.createContext(null);u.createContext(null);u.createContext(null);u.createContext(null);u.createContext(null);const jf=u.createContext({}),ne=typeof document<"u"?u.useLayoutEffect:()=>{};var Xi;const Kf=(Xi=u.useInsertionEffect)!==null&&Xi!==void 0?Xi:ne;function ve(t){const e=u.useRef(null);return Kf(()=>{e.current=t},[t]),u.useCallback((...r)=>{const n=e.current;return n==null?void 0:n(...r)},[])}function Vf(t){let[e,r]=u.useState(t),n=u.useRef(null),i=ve(()=>{if(!n.current)return;let a=n.current.next();if(a.done){n.current=null;return}e===a.value?i():r(a.value)});ne(()=>{n.current&&i()});let o=ve(a=>{n.current=a(e),i()});return[e,o]}const Zn={prefix:String(Math.round(Math.random()*1e10)),current:0},F2=u.createContext(Zn),Hf=u.createContext(!1);let zf=!!(typeof window<"u"&&window.document&&window.document.createElement),Ji=new WeakMap;function Uf(t=!1){let e=u.useContext(F2),r=u.useRef(null);if(r.current===null&&!t){var n,i;let o=(i=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(n=i.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(o){let a=Ji.get(o);a==null?Ji.set(o,{id:e.current,state:o.memoizedState}):o.memoizedState!==a.state&&(e.current=a.id,Ji.delete(o))}r.current=++e.current}return r.current}function Wf(t){let e=u.useContext(F2);e===Zn&&!zf&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=Uf(!!t),n=e===Zn&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${n}-${r}`}function Zf(t){let e=u.useId(),[r]=u.useState(sn()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Zn.prefix}`;return t||`${n}-${e}`}const Gf=typeof u.useId=="function"?Zf:Wf;function qf(){return!1}function Yf(){return!0}function Xf(t){return()=>{}}function sn(){return typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore(Xf,qf,Yf):u.useContext(Hf)}let Jf=!!(typeof window<"u"&&window.document&&window.document.createElement),ur=new Map,Lr;typeof FinalizationRegistry<"u"&&(Lr=new FinalizationRegistry(t=>{ur.delete(t)}));function Se(t){let[e,r]=u.useState(t),n=u.useRef(null),i=Gf(e),o=u.useRef(null);if(Lr&&Lr.register(o,i),Jf){const a=ur.get(i);a&&!a.includes(n)?a.push(n):ur.set(i,[n])}return ne(()=>{let a=i;return()=>{Lr&&Lr.unregister(o),ur.delete(a)}},[i]),u.useEffect(()=>{let a=n.current;return a&&r(a),()=>{a&&(n.current=null)}}),i}function Qf(t,e){if(t===e)return t;let r=ur.get(t);if(r)return r.forEach(i=>i.current=e),e;let n=ur.get(e);return n?(n.forEach(i=>i.current=t),t):e}function ht(t=[]){let e=Se(),[r,n]=Vf(e),i=u.useCallback(()=>{n(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,n]);return ne(i,[e,i,...t]),r}function gt(...t){return(...e)=>{for(let r of t)typeof r=="function"&&r(...e)}}const ae=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},Te=t=>t&&"window"in t&&t.window===t?t:ae(t).defaultView||window;function e5(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function t5(t){return e5(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let r5=!1;function pi(){return r5}function ue(t,e){if(!pi())return e&&t?t.contains(e):!1;if(!t||!e)return!1;let r=e;for(;r!==null;){if(r===t)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:t5(r)?r=r.host:r=r.parentNode}return!1}const xe=(t=document)=>{var e;if(!pi())return t.activeElement;let r=t.activeElement;for(;r&&"shadowRoot"in r&&(!((e=r.shadowRoot)===null||e===void 0)&&e.activeElement);)r=r.shadowRoot.activeElement;return r};function oe(t){return pi()&&t.target.shadowRoot&&t.composedPath?t.composedPath()[0]:t.target}class n5{get currentNode(){return this._currentNode}set currentNode(e){if(!ue(this.root,e))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const r=[];let n=e,i=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const a=n,l=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});r.push(l),l.currentNode=i,this._currentSetFor.add(l),n=i=a.host}else n=n.parentNode;const o=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});r.push(o),o.currentNode=i,this._currentSetFor.add(o),this._walkerStack=r}get doc(){return this._doc}firstChild(){let e=this.currentNode,r=this.nextNode();return ue(e,r)?(r&&(this.currentNode=r),r):(this.currentNode=e,null)}lastChild(){let r=this._walkerStack[0].lastChild();return r&&(this.currentNode=r),r}nextNode(){const e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var r;let i;if(typeof this.filter=="function"?i=this.filter(e):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(i=this.filter.acceptNode(e)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let o=this.nextNode();return o&&(this.currentNode=o),o}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){const e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const r=e.previousNode();if(r){if(r.shadowRoot){var n;let o;if(typeof this.filter=="function"?o=this.filter(r):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(o=this.filter.acceptNode(r)),o===NodeFilter.FILTER_ACCEPT)return r&&(this.currentNode=r),r;let a=this.lastChild();return a&&(this.currentNode=a),a}return r&&(this.currentNode=r),r}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,r,n,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=a=>{if(a.nodeType===Node.ELEMENT_NODE){const s=a.shadowRoot;if(s){const c=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(c),NodeFilter.FILTER_ACCEPT}else{var l;if(typeof this.filter=="function")return this.filter(a);if(!((l=this.filter)===null||l===void 0)&&l.acceptNode)return this.filter.acceptNode(a);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=r,this.filter=i??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=r,this._walkerStack.unshift(e.createTreeWalker(r,n,this._acceptNode));const o=r.shadowRoot;if(o){const a=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(a)}}}function i5(t,e,r,n){return pi()?new n5(t,e,r,n):t.createTreeWalker(e,r,n)}function $2(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=$2(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function be(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=$2(t))&&(n&&(n+=" "),n+=e);return n}function ie(...t){let e={...t[0]};for(let r=1;r<t.length;r++){let n=t[r];for(let i in n){let o=e[i],a=n[i];typeof o=="function"&&typeof a=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?e[i]=gt(o,a):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof a=="string"?e[i]=be(o,a):i==="id"&&o&&a?e.id=Qf(o,a):e[i]=a!==void 0?a:o}}return e}function ka(...t){return t.length===1&&t[0]?t[0]:e=>{let r=!1;const n=t.map(i=>{const o=Nl(i,e);return r||(r=typeof o=="function"),o});if(r)return()=>{n.forEach((i,o)=>{typeof i=="function"?i():Nl(t[o],null)})}}}function Nl(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}const o5=new Set(["id"]),a5=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),l5=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),s5=new Set(["dir","lang","hidden","inert","translate"]),Rl=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),c5=/^(data-.*)$/;function he(t,e={}){let{labelable:r,isLink:n,global:i,events:o=i,propNames:a}=e,l={};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(o5.has(s)||r&&a5.has(s)||n&&l5.has(s)||i&&s5.has(s)||o&&Rl.has(s)||s.endsWith("Capture")&&Rl.has(s.slice(0,-7))||a!=null&&a.has(s)||c5.test(s))&&(l[s]=t[s]);return l}function He(t){if(u5())t.focus({preventScroll:!0});else{let e=d5(t);t.focus(),f5(e)}}let hn=null;function u5(){if(hn==null){hn=!1;try{document.createElement("div").focus({get preventScroll(){return hn=!0,!0}})}catch{}}return hn}function d5(t){let e=t.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==n;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&r.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function f5(t){for(let{element:e,scrollTop:r,scrollLeft:n}of t)e.scrollTop=r,e.scrollLeft=n}function gi(t){var e;if(typeof window>"u"||window.navigator==null)return!1;let r=(e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands;return Array.isArray(r)&&r.some(n=>t.test(n.brand))||t.test(window.navigator.userAgent)}function Ia(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function rt(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const vt=rt(function(){return Ia(/^Mac/i)}),h5=rt(function(){return Ia(/^iPhone/i)}),_2=rt(function(){return Ia(/^iPad/i)||vt()&&navigator.maxTouchPoints>1}),vi=rt(function(){return h5()||_2()}),p5=rt(function(){return vt()||vi()}),Oa=rt(function(){return gi(/AppleWebKit/i)&&!P2()}),P2=rt(function(){return gi(/Chrome/i)}),Ma=rt(function(){return gi(/Android/i)}),g5=rt(function(){return gi(/Firefox/i)}),v5=u.createContext({isNative:!0,open:y5,useHref:t=>t});function bi(){return u.useContext(v5)}function b5(t,e){let r=t.getAttribute("target");return(!r||r==="_self")&&t.origin===location.origin&&!t.hasAttribute("download")&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey}function At(t,e,r=!0){var n,i;let{metaKey:o,ctrlKey:a,altKey:l,shiftKey:s}=e;g5()&&(!((i=window.event)===null||i===void 0||(n=i.type)===null||n===void 0)&&n.startsWith("key"))&&t.target==="_blank"&&(vt()?o=!0:a=!0);let c=Oa()&&vt()&&!_2()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:a,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:o,ctrlKey:a,altKey:l,shiftKey:s,bubbles:!0,cancelable:!0});At.isOpening=r,He(t),t.dispatchEvent(c),At.isOpening=!1}At.isOpening=!1;function m5(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let r=document.createElement("a");r.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(r.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(r.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(r.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(r.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(r),e(r),t.removeChild(r)}}function y5(t,e){m5(t,r=>At(r,e))}function Na(t){let e=bi();var r;const n=e.useHref((r=t==null?void 0:t.href)!==null&&r!==void 0?r:"");return{href:t!=null&&t.href?n:void 0,target:t==null?void 0:t.target,rel:t==null?void 0:t.rel,download:t==null?void 0:t.download,ping:t==null?void 0:t.ping,referrerPolicy:t==null?void 0:t.referrerPolicy}}function C5(t,e,r,n){!e.isNative&&t.currentTarget instanceof HTMLAnchorElement&&t.currentTarget.href&&!t.isDefaultPrevented()&&b5(t.currentTarget,t)&&r&&(t.preventDefault(),e.open(t.currentTarget,t,r,n))}let ut=new Map,zo=new Set;function Bl(){if(typeof window>"u")return;function t(n){return"propertyName"in n}let e=n=>{if(!t(n)||!n.target)return;let i=ut.get(n.target);i||(i=new Set,ut.set(n.target,i),n.target.addEventListener("transitioncancel",r,{once:!0})),i.add(n.propertyName)},r=n=>{if(!t(n)||!n.target)return;let i=ut.get(n.target);if(i&&(i.delete(n.propertyName),i.size===0&&(n.target.removeEventListener("transitioncancel",r),ut.delete(n.target)),ut.size===0)){for(let o of zo)o();zo.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Bl():document.addEventListener("DOMContentLoaded",Bl));function E5(){for(const[t]of ut)"isConnected"in t&&!t.isConnected&&ut.delete(t)}function A2(t){requestAnimationFrame(()=>{E5(),ut.size===0?t():zo.add(t)})}function mi(){let t=u.useRef(new Map),e=u.useCallback((i,o,a,l)=>{let s=l!=null&&l.once?(...c)=>{t.current.delete(a),a(...c)}:a;t.current.set(a,{type:o,eventTarget:i,fn:s,options:l}),i.addEventListener(o,s,l)},[]),r=u.useCallback((i,o,a,l)=>{var s;let c=((s=t.current.get(a))===null||s===void 0?void 0:s.fn)||a;i.removeEventListener(o,c,l),t.current.delete(a)},[]),n=u.useCallback(()=>{t.current.forEach((i,o)=>{r(i.eventTarget,i.type,o,i.options)})},[r]);return u.useEffect(()=>n,[n]),{addGlobalListener:e,removeGlobalListener:r,removeAllGlobalListeners:n}}function yi(t,e){let{id:r,"aria-label":n,"aria-labelledby":i}=t;return r=Se(r),i&&n?i=[...new Set([r,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!n&&!i&&e&&(n=e),{id:r,"aria-label":n,"aria-labelledby":i}}function nt(t){const e=u.useRef(null),r=u.useRef(void 0),n=u.useCallback(i=>{if(typeof t=="function"){const o=t,a=o(i);return()=>{typeof a=="function"?a():o(null)}}else if(t)return t.current=i,()=>{t.current=null}},[t]);return u.useMemo(()=>({get current(){return e.current},set current(i){e.current=i,r.current&&(r.current(),r.current=void 0),i!=null&&(r.current=n(i))}}),[n])}function Ll(t,e){const r=u.useRef(!0),n=u.useRef(null);ne(()=>(r.current=!0,()=>{r.current=!1}),[]),ne(()=>{r.current?r.current=!1:(!n.current||e.some((i,o)=>!Object.is(i,n[o])))&&t(),n.current=e},e)}function w5(){return typeof window.ResizeObserver<"u"}function Uo(t){const{ref:e,box:r,onResize:n}=t;u.useEffect(()=>{let i=e==null?void 0:e.current;if(i)if(w5()){const o=new window.ResizeObserver(a=>{a.length&&n()});return o.observe(i,{box:r}),()=>{i&&o.unobserve(i)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,e,r])}function T2(t,e){ne(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function Gr(t,e){if(!t)return!1;let r=window.getComputedStyle(t),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&e&&(n=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),n}function k2(t,e){let r=t;for(Gr(r,e)&&(r=r.parentElement);r&&!Gr(r,e);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function x5(t,e){const r=[];for(;t&&t!==document.documentElement;)Gr(t,e)&&r.push(t),t=t.parentElement;return r}let D5=0;const Qi=new Map;function S5(t){let[e,r]=u.useState();return ne(()=>{if(!t)return;let n=Qi.get(t);if(n)r(n.element.id);else{let i=`react-aria-description-${D5++}`;r(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=t,document.body.appendChild(o),n={refCount:0,element:o},Qi.set(t,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),Qi.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function pn(t,e,r,n){let i=ve(r),o=r==null;u.useEffect(()=>{if(o||!t.current)return;let a=t.current;return a.addEventListener(e,i,n),()=>{a.removeEventListener(e,i,n)}},[t,e,n,o,i])}function I2(t,e){let r=jl(t,e,"left"),n=jl(t,e,"top"),i=e.offsetWidth,o=e.offsetHeight,a=t.scrollLeft,l=t.scrollTop,{borderTopWidth:s,borderLeftWidth:c,scrollPaddingTop:d,scrollPaddingRight:f,scrollPaddingBottom:p,scrollPaddingLeft:g}=getComputedStyle(t),y=a+parseInt(c,10),h=l+parseInt(s,10),b=y+t.clientWidth,m=h+t.clientHeight,C=parseInt(d,10)||0,E=parseInt(p,10)||0,$=parseInt(f,10)||0,w=parseInt(g,10)||0;r<=a+w?a=r-parseInt(c,10)-w:r+i>b-$&&(a+=r+i-b+$),n<=h+C?l=n-parseInt(s,10)-C:n+o>m-E&&(l+=n+o-m+E),t.scrollLeft=a,t.scrollTop=l}function jl(t,e,r){const n=r==="left"?"offsetLeft":"offsetTop";let i=0;for(;e.offsetParent&&(i+=e[n],e.offsetParent!==t);){if(e.offsetParent.contains(t)){i-=t[n];break}e=e.offsetParent}return i}function Kl(t,e){if(t&&document.contains(t)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let s=x5(t);for(let c of s)I2(c,t)}else{var r;let{left:s,top:c}=t.getBoundingClientRect();t==null||(r=t.scrollIntoView)===null||r===void 0||r.call(t,{block:"nearest"});let{left:d,top:f}=t.getBoundingClientRect();if(Math.abs(s-d)>1||Math.abs(c-f)>1){var n,i,o;e==null||(i=e.containingElement)===null||i===void 0||(n=i.scrollIntoView)===null||n===void 0||n.call(i,{block:"center",inline:"center"}),(o=t.scrollIntoView)===null||o===void 0||o.call(t,{block:"nearest"})}}}}function Wo(t){return t.pointerType===""&&t.isTrusted?!0:Ma()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function F5(t){return!Ma()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function $5(t,e,r){let n=ve(()=>{r&&r(e)});u.useEffect(()=>{var i;let o=t==null||(i=t.current)===null||i===void 0?void 0:i.form;return o==null||o.addEventListener("reset",n),()=>{o==null||o.removeEventListener("reset",n)}},[t,n])}function _5(t){const e=u.version.split(".");return parseInt(e[0],10)>=19?t:t?"true":void 0}const P5="react-aria-clear-focus",A5="react-aria-focus";function ir(t){return vt()?t.metaKey:t.ctrlKey}function T5(t,e=!0){let[r,n]=u.useState(!0),i=r&&e;return ne(()=>{if(i&&t.current&&"getAnimations"in t.current)for(let o of t.current.getAnimations())o instanceof CSSTransition&&o.cancel()},[t,i]),O2(t,i,u.useCallback(()=>n(!1),[])),i}function k5(t,e){let[r,n]=u.useState(e?"open":"closed");switch(r){case"open":e||n("exiting");break;case"closed":case"exiting":e&&n("open");break}let i=r==="exiting";return O2(t,i,u.useCallback(()=>{n(o=>o==="exiting"?"closed":o)},[])),i}function O2(t,e,r){ne(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){r();return}let n=t.current.getAnimations();if(n.length===0){r();return}let i=!1;return Promise.all(n.map(o=>o.finished)).then(()=>{i||Bt.flushSync(()=>{r()})}).catch(()=>{}),()=>{i=!0}}},[t,e,r])}const I5=typeof Element<"u"&&"checkVisibility"in Element.prototype;function O5(t){const e=Te(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:r,visibility:n}=t.style,i=r!=="none"&&n!=="hidden"&&n!=="collapse";if(i){const{getComputedStyle:o}=t.ownerDocument.defaultView;let{display:a,visibility:l}=o(t);i=a!=="none"&&l!=="hidden"&&l!=="collapse"}return i}function M5(t,e){return!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&(t.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function Ra(t,e){return I5?t.checkVisibility()&&!t.closest("[data-react-aria-prevent-focus]"):t.nodeName!=="#comment"&&O5(t)&&M5(t,e)&&(!t.parentElement||Ra(t.parentElement,t))}const Ba=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],N5=Ba.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Ba.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const R5=Ba.join(':not([hidden]):not([tabindex="-1"]),');function M2(t){return t.matches(N5)&&Ra(t)&&!N2(t)}function B5(t){return t.matches(R5)&&Ra(t)&&!N2(t)}function N2(t){let e=t;for(;e!=null;){if(e instanceof e.ownerDocument.defaultView.HTMLElement&&e.inert)return!0;e=e.parentElement}return!1}function Ci(t,e,r){let[n,i]=u.useState(t||e),o=u.useRef(t!==void 0),a=t!==void 0;u.useEffect(()=>{let c=o.current;c!==a&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),o.current=a},[a]);let l=a?t:n,s=u.useCallback((c,...d)=>{let f=(p,...g)=>{r&&(Object.is(l,p)||r(p,...g)),a||(l=p)};typeof c=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((g,...y)=>{let h=c(a?l:g,...y);return f(h,...d),a?g:h})):(a||i(c),f(c,...d))},[a,l,r]);return[l,s]}function Zo(t,e=-1/0,r=1/0){return Math.min(Math.max(t,e),r)}const qr=Symbol("default");function it({values:t,children:e}){for(let[r,n]of t)e=u.createElement(r.Provider,{value:n},e);return e}function Fe(t){let{className:e,style:r,children:n,defaultClassName:i,defaultChildren:o,defaultStyle:a,values:l}=t;return u.useMemo(()=>{let s,c,d;return typeof e=="function"?s=e({...l,defaultClassName:i}):s=e,typeof r=="function"?c=r({...l,defaultStyle:a||{}}):c=r,typeof n=="function"?d=n({...l,defaultChildren:o}):n==null?d=o:d=n,{className:s??i,style:c||a?{...a,...c}:void 0,children:d??o,"data-rac":""}},[e,r,n,i,o,a,l])}function Ei(t,e){let r=u.useContext(t);if(e===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=e||qr;if(!r.slots[n]){let i=new Intl.ListFormat().format(Object.keys(r.slots).map(a=>`"${a}"`)),o=e?`Invalid slot "${e}".`:"A slot prop is required.";throw new Error(`${o} Valid slot names are ${i}.`)}return r.slots[n]}return r}function Xe(t,e,r){let n=Ei(r,t.slot)||{},{ref:i,...o}=n,a=nt(u.useMemo(()=>ka(e,i),[e,i])),l=ie(o,t);return"style"in o&&o.style&&"style"in t&&t.style&&(typeof o.style=="function"||typeof t.style=="function"?l.style=s=>{let c=typeof o.style=="function"?o.style(s):o.style,d={...s.defaultStyle,...c},f=typeof t.style=="function"?t.style({...s,defaultStyle:d}):t.style;return{...d,...f}}:l.style={...o.style,...t.style}),[l,a]}function La(t=!0){let[e,r]=u.useState(t),n=u.useRef(!1),i=u.useCallback(o=>{n.current=!0,r(!!o)},[]);return ne(()=>{n.current||r(!1)},[]),[i,e]}function L5(t){const e=/^(data-.*)$/;let r={};for(const n in t)e.test(n)||(r[n]=t[n]);return r}class ja{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new ja(this.type,this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}constructor(e,r){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=e,this.key=r}}class Ka{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let r=this.keyMap;return{*[Symbol.iterator](){let n=r.get(e),i=(n==null?void 0:n.firstChildKey)!=null?r.get(n.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?r.get(i.nextKey):void 0}}}getKeyBefore(e){let r=this.keyMap.get(e);if(!r)return null;if(r.prevKey!=null){for(r=this.keyMap.get(r.prevKey);r&&r.type!=="item"&&r.lastChildKey!=null;)r=this.keyMap.get(r.lastChildKey);var n;return(n=r==null?void 0:r.key)!==null&&n!==void 0?n:null}return r.parentKey}getKeyAfter(e){let r=this.keyMap.get(e);if(!r)return null;if(r.type!=="item"&&r.firstChildKey!=null)return r.firstChildKey;for(;r;){if(r.nextKey!=null)return r.nextKey;if(r.parentKey!=null)r=this.keyMap.get(r.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var r;return(r=e==null?void 0:e.key)!==null&&r!==void 0?r:null}getItem(e){var r;return(r=this.keyMap.get(e))!==null&&r!==void 0?r:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,r=new e;return r.keyMap=new Map(this.keyMap),r.firstKey=this.firstKey,r.lastKey=this.lastKey,r}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(e.key,e)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(e)}commit(e,r,n=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=r,this.frozen=!n}UNSTABLE_filter(e){let r=new Ka,n=null;for(let i of this)if(i.type==="section"&&i.hasChildNodes){let o=i.clone(),a=null;for(let l of this.getChildren(i.key))if(Vl(l,e,this,r)){let s=l.clone();a==null&&(o.firstChildKey=s.key),r.firstKey==null&&(r.firstKey=o.key),a&&a.parentKey===s.parentKey?(a.nextKey=s.key,s.prevKey=a.key):s.prevKey=null,s.nextKey=null,r.addNode(s),a=s}a&&(a.type!=="header"?(o.lastChildKey=a.key,n==null?o.prevKey=null:(n.type==="section"||n.type==="separator")&&(n.nextKey=o.key,o.prevKey=n.key),o.nextKey=null,n=o,r.addNode(o)):(r.firstKey===o.key&&(r.firstKey=null),r.removeNode(a.key)))}else if(i.type==="separator"){let o=i.clone();o.nextKey=null,(n==null?void 0:n.type)==="section"&&(n.nextKey=o.key,o.prevKey=n.key,n=o,r.addNode(o))}else{let o=i.clone();Vl(o,e,this,r)&&(r.firstKey==null&&(r.firstKey=o.key),n!=null&&n.type!=="section"&&n.type!=="separator"&&n.parentKey===o.parentKey?(n.nextKey=o.key,o.prevKey=n.key):o.prevKey=null,o.nextKey=null,r.addNode(o),n=o)}if((n==null?void 0:n.type)==="separator"&&n.nextKey===null){let i;n.prevKey!=null&&(i=r.getItem(n.prevKey),i.nextKey=null),r.removeNode(n.key),n=i}return r.lastKey=(n==null?void 0:n.key)||null,r}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}function Vl(t,e,r,n){if(t.type==="subdialogtrigger"||t.type==="submenutrigger"){let i=[...r.getChildren(t.key)][0];if(i&&e(i.textValue)){let o=i.clone();return n.addNode(o),!0}else return!1}else return t.type==="header"?!0:e(t.textValue)}class R2{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e)}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.ownerDocument.queueUpdate()}insertBefore(e,r){if(r==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=r,e.previousSibling=r.previousSibling,e.index=r.index,this.firstChild===r?this.firstChild=e:r.previousSibling&&(r.previousSibling.nextSibling=e),r.previousSibling=e,e.parentNode=r.parentNode,this.invalidateChildIndices(r),this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode!==this||!this.ownerDocument.isMounted||(e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}}class dr extends R2{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof dr?this.parentNode.level+(this.node.type==="item"?1:0):0}getMutableNode(){return this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node}updateNode(){var e,r,n;let i=this.nextVisibleSibling,o=this.getMutableNode();o.index=this.index,o.level=this.level,o.parentKey=this.parentNode instanceof dr?this.parentNode.node.key:null;var a;o.prevKey=(a=(e=this.previousVisibleSibling)===null||e===void 0?void 0:e.node.key)!==null&&a!==void 0?a:null;var l;o.nextKey=(l=i==null?void 0:i.node.key)!==null&&l!==void 0?l:null,o.hasChildNodes=!!this.firstChild;var s;o.firstChildKey=(s=(r=this.firstVisibleChild)===null||r===void 0?void 0:r.node.key)!==null&&s!==void 0?s:null;var c;if(o.lastChildKey=(c=(n=this.lastVisibleChild)===null||n===void 0?void 0:n.node.key)!==null&&c!==void 0?c:null,(o.colSpan!=null||o.colIndex!=null)&&i){var d,f;let p=((d=o.colIndex)!==null&&d!==void 0?d:o.index)+((f=o.colSpan)!==null&&f!==void 0?f:1);if(p!==i.node.colIndex){let g=i.getMutableNode();g.colIndex=p}}}setProps(e,r,n,i){let o=this.getMutableNode(),{value:a,textValue:l,id:s,...c}=e;if(c.ref=r,o.props=c,o.rendered=n,o.render=i,o.value=a,o.textValue=l||(typeof c.children=="string"?c.children:"")||e["aria-label"]||"",s!=null&&s!==o.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");o.key=s}c.colSpan!=null&&(o.colSpan=c.colSpan),this.hasSetProps=!0,this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?"none":""},set display(r){let n=r==="none";if(e.isHidden!==n){var i,o;(((i=e.parentNode)===null||i===void 0?void 0:i.firstVisibleChild)===e||((o=e.parentNode)===null||o===void 0?void 0:o.lastVisibleChild)===e)&&e.ownerDocument.markDirty(e.parentNode);let a=e.previousVisibleSibling,l=e.nextVisibleSibling;a&&e.ownerDocument.markDirty(a),l&&e.ownerDocument.markDirty(l),e.isHidden=n,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,r){super(r),this.nodeType=8,this.isMutated=!0,this._index=0,this.hasSetProps=!1,this.isHidden=!1,this.node=new ja(e,`react-aria-${++r.nodeId}`)}}class j5 extends R2{get isConnected(){return this.isMounted}createElement(e){return new dr(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden)return;let r=this.getMutableCollection();if(!r.getItem(e.node.key))for(let n of e)this.addNode(n);r.addNode(e.node)}removeNode(e){for(let n of e)this.removeNode(n);this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let o of this.dirtyNodes)o instanceof dr&&(!o.isConnected||o.isHidden)?this.removeNode(o):o.updateChildIndices();for(let o of this.dirtyNodes)o instanceof dr&&(o.isConnected&&!o.isHidden&&(o.updateNode(),this.addNode(o)),o.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,r,n,i;this.nextCollection.commit((n=(e=this.firstVisibleChild)===null||e===void 0?void 0:e.node.key)!==null&&n!==void 0?n:null,(i=(r=this.lastVisibleChild)===null||r===void 0?void 0:r.node.key)!==null&&i!==void 0?i:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}}function B2(t){let{children:e,items:r,idScope:n,addIdAndValue:i,dependencies:o=[]}=t,a=u.useMemo(()=>new WeakMap,o);return u.useMemo(()=>{if(r&&typeof e=="function"){let c=[];for(let d of r){let f=a.get(d);if(!f){f=e(d);var l,s;let p=(s=(l=f.props.id)!==null&&l!==void 0?l:d.key)!==null&&s!==void 0?s:d.id;if(p==null)throw new Error("Could not determine key for item");n&&(p=n+":"+p),f=u.cloneElement(f,i?{key:p,id:p,value:d}:{key:p}),a.set(d,f)}c.push(f)}return c}else if(typeof e!="function")return e},[e,r,a,n,i])}if(typeof HTMLTemplateElement<"u"){const t=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:t.call(this)}})}const Gn=u.createContext(!1);function K5(t){if(u.useContext(Gn))return u.createElement(u.Fragment,null,t.children);let r=u.createElement(Gn.Provider,{value:!0},t.children);return u.createElement("template",{"data-react-aria-hidden":!0},r)}function Va(t){let e=(r,n)=>u.useContext(Gn)?null:t(r,n);return e.displayName=t.displayName||t.name,u.forwardRef(e)}function V5(){return u.useContext(Gn)}function Ha(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function L2(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function j2(t){let e=u.useRef({isFocused:!1,observer:null});ne(()=>{const n=e.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=ve(n=>{t==null||t(n)});return u.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){e.current.isFocused=!0;let i=n.target,o=a=>{if(e.current.isFocused=!1,i.disabled){let l=Ha(a);r(l)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&i.disabled){var a;(a=e.current.observer)===null||a===void 0||a.disconnect();let l=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[r])}let qn=!1;function Hl(t){for(;t&&!M2(t);)t=t.parentElement;let e=Te(t),r=e.document.activeElement;if(!r||r===t)return;qn=!0;let n=!1,i=d=>{(d.target===r||n)&&d.stopImmediatePropagation()},o=d=>{(d.target===r||n)&&(d.stopImmediatePropagation(),!t&&!n&&(n=!0,He(r),s()))},a=d=>{(d.target===t||n)&&d.stopImmediatePropagation()},l=d=>{(d.target===t||n)&&(d.stopImmediatePropagation(),n||(n=!0,He(r),s()))};e.addEventListener("blur",i,!0),e.addEventListener("focusout",o,!0),e.addEventListener("focusin",l,!0),e.addEventListener("focus",a,!0);let s=()=>{cancelAnimationFrame(c),e.removeEventListener("blur",i,!0),e.removeEventListener("focusout",o,!0),e.removeEventListener("focusin",l,!0),e.removeEventListener("focus",a,!0),qn=!1,n=!1},c=requestAnimationFrame(s);return s}let lr="default",Go="",On=new WeakMap;function zl(t){if(vi()){if(lr==="default"){const e=ae(t);Go=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}lr="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";On.set(t,t.style[e]),t.style[e]="none"}}function eo(t){if(vi()){if(lr!=="disabled")return;lr="restoring",setTimeout(()=>{A2(()=>{if(lr==="restoring"){const e=ae(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=Go||""),Go="",lr="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&On.has(t)){let e=On.get(t),r="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[r]==="none"&&(t.style[r]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),On.delete(t)}}const za=u.createContext({register:()=>{}});za.displayName="PressResponderContext";function H5(t,e){return e.get?e.get.call(t):e.value}function K2(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function z5(t,e){var r=K2(t,e,"get");return H5(t,r)}function U5(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function W5(t,e,r){U5(t,e),e.set(t,r)}function Z5(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}function Ul(t,e,r){var n=K2(t,e,"set");return Z5(t,n,r),r}function G5(t){let e=u.useContext(za);if(e){let{register:r,...n}=e;t=ie(n,t),r()}return T2(e,t.ref),t}var gn=new WeakMap;class vn{continuePropagation(){Ul(this,gn,!1)}get shouldStopPropagation(){return z5(this,gn)}constructor(e,r,n,i){W5(this,gn,{writable:!0,value:void 0}),Ul(this,gn,!0);var o;let a=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:n.currentTarget;const l=a==null?void 0:a.getBoundingClientRect();let s,c=0,d,f=null;n.clientX!=null&&n.clientY!=null&&(d=n.clientX,f=n.clientY),l&&(d!=null&&f!=null?(s=d-l.left,c=f-l.top):(s=l.width/2,c=l.height/2)),this.type=e,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=s,this.y=c}}const Wl=Symbol("linkClicked"),Zl="react-aria-pressable-style",Gl="data-react-aria-pressable";function wi(t){let{onPress:e,onPressChange:r,onPressStart:n,onPressEnd:i,onPressUp:o,onClick:a,isDisabled:l,isPressed:s,preventFocusOnPress:c,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:p,...g}=G5(t),[y,h]=u.useState(!1),b=u.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:m,removeAllGlobalListeners:C}=mi(),E=ve((D,T)=>{let Z=b.current;if(l||Z.didFirePressStart)return!1;let k=!0;if(Z.isTriggeringEvent=!0,n){let U=new vn("pressstart",T,D);n(U),k=U.shouldStopPropagation}return r&&r(!0),Z.isTriggeringEvent=!1,Z.didFirePressStart=!0,h(!0),k}),$=ve((D,T,Z=!0)=>{let k=b.current;if(!k.didFirePressStart)return!1;k.didFirePressStart=!1,k.isTriggeringEvent=!0;let U=!0;if(i){let P=new vn("pressend",T,D);i(P),U=P.shouldStopPropagation}if(r&&r(!1),h(!1),e&&Z&&!l){let P=new vn("press",T,D);e(P),U&&(U=P.shouldStopPropagation)}return k.isTriggeringEvent=!1,U}),w=ve((D,T)=>{let Z=b.current;if(l)return!1;if(o){Z.isTriggeringEvent=!0;let k=new vn("pressup",T,D);return o(k),Z.isTriggeringEvent=!1,k.shouldStopPropagation}return!0}),x=ve(D=>{let T=b.current;if(T.isPressed&&T.target){T.didFirePressStart&&T.pointerType!=null&&$(yt(T.target,D),T.pointerType,!1),T.isPressed=!1,T.isOverTarget=!1,T.activePointerId=null,T.pointerType=null,C(),f||eo(T.target);for(let Z of T.disposables)Z();T.disposables=[]}}),S=ve(D=>{d&&x(D)}),N=ve(D=>{a==null||a(D)}),K=ve((D,T)=>{if(a){let Z=new MouseEvent("click",D);L2(Z,T),a(Ha(Z))}}),V=u.useMemo(()=>{let D=b.current,T={onKeyDown(k){if(to(k.nativeEvent,k.currentTarget)&&ue(k.currentTarget,oe(k.nativeEvent))){var U;Xl(oe(k.nativeEvent),k.key)&&k.preventDefault();let P=!0;if(!D.isPressed&&!k.repeat){D.target=k.currentTarget,D.isPressed=!0,D.pointerType="keyboard",P=E(k,"keyboard");let O=k.currentTarget,z=B=>{to(B,O)&&!B.repeat&&ue(O,oe(B))&&D.target&&w(yt(D.target,B),"keyboard")};m(ae(k.currentTarget),"keyup",gt(z,Z),!0)}P&&k.stopPropagation(),k.metaKey&&vt()&&((U=D.metaKeyEvents)===null||U===void 0||U.set(k.key,k.nativeEvent))}else k.key==="Meta"&&(D.metaKeyEvents=new Map)},onClick(k){if(!(k&&!ue(k.currentTarget,oe(k.nativeEvent)))&&k&&k.button===0&&!D.isTriggeringEvent&&!At.isOpening){let U=!0;if(l&&k.preventDefault(),!D.ignoreEmulatedMouseEvents&&!D.isPressed&&(D.pointerType==="virtual"||Wo(k.nativeEvent))){let P=E(k,"virtual"),O=w(k,"virtual"),z=$(k,"virtual");N(k),U=P&&O&&z}else if(D.isPressed&&D.pointerType!=="keyboard"){let P=D.pointerType||k.nativeEvent.pointerType||"virtual",O=w(yt(k.currentTarget,k),P),z=$(yt(k.currentTarget,k),P,!0);U=O&&z,D.isOverTarget=!1,N(k),x(k)}D.ignoreEmulatedMouseEvents=!1,U&&k.stopPropagation()}}},Z=k=>{var U;if(D.isPressed&&D.target&&to(k,D.target)){var P;Xl(oe(k),k.key)&&k.preventDefault();let z=oe(k),B=ue(D.target,oe(k));$(yt(D.target,k),"keyboard",B),B&&K(k,D.target),C(),k.key!=="Enter"&&Ua(D.target)&&ue(D.target,z)&&!k[Wl]&&(k[Wl]=!0,At(D.target,k,!1)),D.isPressed=!1,(P=D.metaKeyEvents)===null||P===void 0||P.delete(k.key)}else if(k.key==="Meta"&&(!((U=D.metaKeyEvents)===null||U===void 0)&&U.size)){var O;let z=D.metaKeyEvents;D.metaKeyEvents=void 0;for(let B of z.values())(O=D.target)===null||O===void 0||O.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent<"u"){T.onPointerDown=P=>{if(P.button!==0||!ue(P.currentTarget,oe(P.nativeEvent)))return;if(F5(P.nativeEvent)){D.pointerType="virtual";return}D.pointerType=P.pointerType;let O=!0;if(!D.isPressed){D.isPressed=!0,D.isOverTarget=!0,D.activePointerId=P.pointerId,D.target=P.currentTarget,f||zl(D.target),O=E(P,D.pointerType);let z=oe(P.nativeEvent);"releasePointerCapture"in z&&z.releasePointerCapture(P.pointerId),m(ae(P.currentTarget),"pointerup",k,!1),m(ae(P.currentTarget),"pointercancel",U,!1)}O&&P.stopPropagation()},T.onMouseDown=P=>{if(ue(P.currentTarget,oe(P.nativeEvent))&&P.button===0){if(c){let O=Hl(P.target);O&&D.disposables.push(O)}P.stopPropagation()}},T.onPointerUp=P=>{!ue(P.currentTarget,oe(P.nativeEvent))||D.pointerType==="virtual"||P.button===0&&!D.isPressed&&w(P,D.pointerType||P.pointerType)},T.onPointerEnter=P=>{P.pointerId===D.activePointerId&&D.target&&!D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!0,E(yt(D.target,P),D.pointerType))},T.onPointerLeave=P=>{P.pointerId===D.activePointerId&&D.target&&D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!1,$(yt(D.target,P),D.pointerType,!1),S(P))};let k=P=>{if(P.pointerId===D.activePointerId&&D.isPressed&&P.button===0&&D.target){if(ue(D.target,oe(P))&&D.pointerType!=null){let O=!1,z=setTimeout(()=>{D.isPressed&&D.target instanceof HTMLElement&&(O?x(P):(He(D.target),D.target.click()))},80);m(P.currentTarget,"click",()=>O=!0,!0),D.disposables.push(()=>clearTimeout(z))}else x(P);D.isOverTarget=!1}},U=P=>{x(P)};T.onDragStart=P=>{ue(P.currentTarget,oe(P.nativeEvent))&&x(P)}}else if(process.env.NODE_ENV==="test"){T.onMouseDown=P=>{if(P.button!==0||!ue(P.currentTarget,oe(P.nativeEvent)))return;if(D.ignoreEmulatedMouseEvents){P.stopPropagation();return}if(D.isPressed=!0,D.isOverTarget=!0,D.target=P.currentTarget,D.pointerType=Wo(P.nativeEvent)?"virtual":"mouse",Bt.flushSync(()=>E(P,D.pointerType))&&P.stopPropagation(),c){let z=Hl(P.target);z&&D.disposables.push(z)}m(ae(P.currentTarget),"mouseup",k,!1)},T.onMouseEnter=P=>{if(!ue(P.currentTarget,oe(P.nativeEvent)))return;let O=!0;D.isPressed&&!D.ignoreEmulatedMouseEvents&&D.pointerType!=null&&(D.isOverTarget=!0,O=E(P,D.pointerType)),O&&P.stopPropagation()},T.onMouseLeave=P=>{if(!ue(P.currentTarget,oe(P.nativeEvent)))return;let O=!0;D.isPressed&&!D.ignoreEmulatedMouseEvents&&D.pointerType!=null&&(D.isOverTarget=!1,O=$(P,D.pointerType,!1),S(P)),O&&P.stopPropagation()},T.onMouseUp=P=>{ue(P.currentTarget,oe(P.nativeEvent))&&!D.ignoreEmulatedMouseEvents&&P.button===0&&!D.isPressed&&w(P,D.pointerType||"mouse")};let k=P=>{if(P.button===0){if(D.ignoreEmulatedMouseEvents){D.ignoreEmulatedMouseEvents=!1;return}D.target&&D.target.contains(P.target)&&D.pointerType!=null||x(P),D.isOverTarget=!1}};T.onTouchStart=P=>{if(!ue(P.currentTarget,oe(P.nativeEvent)))return;let O=q5(P.nativeEvent);if(!O)return;D.activePointerId=O.identifier,D.ignoreEmulatedMouseEvents=!0,D.isOverTarget=!0,D.isPressed=!0,D.target=P.currentTarget,D.pointerType="touch",f||zl(D.target),E(at(D.target,P),D.pointerType)&&P.stopPropagation(),m(Te(P.currentTarget),"scroll",U,!0)},T.onTouchMove=P=>{if(!ue(P.currentTarget,oe(P.nativeEvent)))return;if(!D.isPressed){P.stopPropagation();return}let O=ql(P.nativeEvent,D.activePointerId),z=!0;O&&Yl(O,P.currentTarget)?!D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!0,z=E(at(D.target,P),D.pointerType)):D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!1,z=$(at(D.target,P),D.pointerType,!1),S(at(D.target,P))),z&&P.stopPropagation()},T.onTouchEnd=P=>{if(!ue(P.currentTarget,oe(P.nativeEvent)))return;if(!D.isPressed){P.stopPropagation();return}let O=ql(P.nativeEvent,D.activePointerId),z=!0;O&&Yl(O,P.currentTarget)&&D.pointerType!=null?(w(at(D.target,P),D.pointerType),z=$(at(D.target,P),D.pointerType),K(P.nativeEvent,D.target)):D.isOverTarget&&D.pointerType!=null&&(z=$(at(D.target,P),D.pointerType,!1)),z&&P.stopPropagation(),D.isPressed=!1,D.activePointerId=null,D.isOverTarget=!1,D.ignoreEmulatedMouseEvents=!0,D.target&&!f&&eo(D.target),C()},T.onTouchCancel=P=>{ue(P.currentTarget,oe(P.nativeEvent))&&(P.stopPropagation(),D.isPressed&&x(at(D.target,P)))};let U=P=>{D.isPressed&&ue(oe(P),D.target)&&x({currentTarget:D.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};T.onDragStart=P=>{ue(P.currentTarget,oe(P.nativeEvent))&&x(P)}}return T},[m,l,c,C,f,x,S,$,E,w,N,K]);return u.useEffect(()=>{if(!p||process.env.NODE_ENV==="test")return;const D=ae(p.current);if(!D||!D.head||D.getElementById(Zl))return;const T=D.createElement("style");T.id=Zl,T.textContent=`
22
+ <%s key={someKey} {...props} />`,P,Z,q,Z),L[Z+P]=!0)}if(Z=null,$!==void 0&&(r($),Z=""+$),a(R)&&(r(R.key),Z=""+R.key),"key"in R){$={};for(var Y in R)Y!=="key"&&($[Y]=R[Y])}else $=R;return Z&&l($,typeof N=="function"?N.displayName||N.name||"Unknown":N),c(N,Z,M,T,i(),$,j,H)}function f(N){typeof N=="object"&&N!==null&&N.$$typeof===g&&N._store&&(N._store.validated=1)}var p=u,g=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),E=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),V=Symbol.for("react.client.reference"),x=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,U=Array.isArray,k=console.createTask?console.createTask:function(){return null};p={react_stack_bottom_frame:function(N){return N()}};var W,_={},I=p.react_stack_bottom_frame.bind(p,o)(),z=k(n(o)),L={};$r.Fragment=h,$r.jsx=function(N,R,$,P,T){var M=1e4>x.recentlyCreatedOwnerStacks++;return d(N,R,$,!1,P,T,M?Error("react-stack-top-frame"):I,M?k(n(N)):z)},$r.jsxs=function(N,R,$,P,T){var M=1e4>x.recentlyCreatedOwnerStacks++;return d(N,R,$,!0,P,T,M?Error("react-stack-top-frame"):I,M?k(n(N)):z)}}()),$r}var Ml;function If(){return Ml||(Ml=1,process.env.NODE_ENV==="production"?fn.exports=Tf():fn.exports=kf()),fn.exports}var b=If();const Of={share:{copyLink:"Copy link",ok:"Ok",shareButton:"Share",modalTitle:"Share folder",modalAriaLabel:"Share modal",access:{delete:"Remove access"},cannot_view:{message:"You can view this item but you need additional access to view its members or modify the settings."},invitations:{title:"Pending invitations"},members:{title_plural:"Shared between {count} people",title_singular:"Shared between {count} person",load_more:"Show more "},item:{add:"Add"},search:{placeholder:"Search user",group_name:"Search user result"},user:{no_result:"No result",placeholder:"Search user"},linkSettings:{title:"Link settings",reach:{choices:{public:{title:"Public",description:"Anyone with the link can access the document"},authenticated:{title:"Authenticated",description:"Only authenticated users can access the document"},restricted:{title:"Private",description:"Only users of the space can access the document"}}},role:{choices:{reader:{title:"Reader"},editor:{title:"Editor"}}}}},laGaufre:{label:"Digital LaSuite services",closeLabel:"Close the menu",viewMoreLabel:"View more",viewLessLabel:"View less",loadingText:"Loading…",newWindowLabelSuffix:" (new window)",headerLabel:"About"},userMenu:{term_of_service:"Terms of service",manage_account:"Manage account",open:"Open user menu",close:"Close user menu",accountSettings:"Account settings",logout:"Logout",dialogTitle:"User menu"},treeView:{viewMore:"Load more elements"},footer:{logo:{alt:"Logo of the French government"}},onboarding:{skip:"Skip",next:"Next",previous:"Previous",complete:"Understood",stepLabel:"Step {current} of {total}: {title}",currentStepSuffix:" (current)",contentRegionLabel:"Step {current} of {total} content"}},Mf={components:Of},Nf={share:{copyLink:"Copier le lien",ok:"Ok",modalTitle:"Partage",modalAriaLabel:"Modale de partage",shareButton:"Partager",access:{delete:"Retirer l'accès"},cannot_view:{message:"Vous pouvez voir cet élément mais vous avez besoin d'un accès supplémentaire pour voir ses membres ou modifier les paramètres."},invitations:{title:"Invitations en attente"},members:{title_plural:"Partagé entre {count} personnes",title_singular:"Partagé entre {count} personne",load_more:"Afficher plus"},item:{add:"Ajouter"},search:{placeholder:"Rechercher un utilisateur",group_name:"Résultat de la recherche d'utilisateur"},user:{no_result:"Aucun résultat",placeholder:"Rechercher un utilisateur"},linkSettings:{title:"Paramètres du lien",reach:{choices:{public:{title:"Public",description:"N'importe qui avec le lien peut accéder au document"},restricted:{title:"Privé",description:"Seulement les utilisateurs de l'espace peuvent y avoir accès"},authenticated:{title:"Authenticated",description:"Seuls les utilisateurs authentifiés peuvent accéder au document"}}},role:{choices:{reader:{title:"Lecture seule"},editor:{title:"Édition"}}}}},laGaufre:{label:"Services de la Suite numérique",closeLabel:"Fermer le menu",loadingText:"Chargement…",viewMoreLabel:"Voir plus",viewLessLabel:"Voir moins",newWindowLabelSuffix:" (nouvelle fenêtre)",headerLabel:"À propos"},userMenu:{term_of_service:"Conditions d'utilisation",open:"Ouvrir le menu utilisateur",close:"Fermer le menu utilisateur",accountSettings:"Paramètres du compte",logout:"Déconnexion",dialogTitle:"Menu utilisateur",manage_account:"Gérer le compte"},treeView:{viewMore:"Charger plus d'éléments"},footer:{logo:{alt:"Logo du gouvernement français"}},onboarding:{skip:"Passer",next:"Suivant",previous:"Précédent",complete:"Compris",stepLabel:"Étape {current} sur {total} : {title}",currentStepSuffix:" (actuelle)",contentRegionLabel:"Contenu de l'étape {current} sur {total}"}},Rf={components:Nf};function Yi(t){return t&&typeof t=="object"&&!Array.isArray(t)}function gr(t,...e){if(!e.length)return t;const r=e.shift();if(Yi(t)&&Yi(r))for(const n in r)Yi(r[n])?(t[n]||Object.assign(t,{[n]:{}}),gr(t[n],r[n])):Object.assign(t,{[n]:r[n]});return gr(t,...e)}const D2={"en-US":gr(X.enUS,Mf),"fr-FR":gr(X.frFR,Rf)},Bf=t=>b.jsx(X.CunninghamProvider,{customLocales:D2,...t}),Lf="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='192'%20height='48'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='m60.986%2021.454%201.156-1.076c.833%201.059%201.819%201.605%202.94%201.605%201.293%200%202.04-.82%202.04-1.912%200-2.56-5.626-2.253-5.626-6.059%200-1.74%201.428-3.209%203.45-3.209%201.684%200%202.908.768%203.792%201.946l-1.19%201.041c-.697-1.007-1.547-1.553-2.584-1.553-1.105%200-1.836.751-1.836%201.74%200%202.578%205.627%202.254%205.627%206.077%200%202.031-1.581%203.363-3.655%203.363-1.768%200-3.077-.666-4.114-1.963Zm10.817-5.735H70.46l1.445-4.574h1.649l-1.751%204.574Zm4.818-3.465c-.56%200-1.02-.46-1.02-1.024a1.026%201.026%200%200%201%201.02-1.007c.56%200%201.003.46%201.003%201.007a1.01%201.01%200%200%201-1.003%201.024Zm-.73%2010.838V14.49h1.444v8.602H75.89Zm3.767-4.3c0-2.51%201.717-4.643%204.403-4.643%201.24%200%202.26.46%203.043%201.297V10.29h1.445v12.801h-1.445v-.955c-.782.836-1.802%201.297-3.043%201.297-2.686%200-4.403-2.134-4.403-4.643Zm1.53%200c0%201.825%201.224%203.276%203.043%203.276%201.19%200%202.21-.58%202.873-1.604v-3.345c-.68-1.042-1.7-1.605-2.873-1.605-1.82%200-3.043%201.45-3.043%203.277Zm18.023%202.884c-.8%201.075-2.074%201.758-3.672%201.758-2.89%200-4.675-2.134-4.675-4.643%200-2.611%201.666-4.642%204.318-4.642%202.329%200%203.842%201.587%203.842%203.738%200%20.34-.051.682-.102.921H92.36v.034c0%201.895%201.292%203.277%203.213%203.277a3.143%203.143%200%200%200%202.567-1.28l1.07.837Zm-4.012-6.281c-1.394%200-2.38.785-2.72%202.27h5.083c-.051-1.246-.952-2.27-2.363-2.27Zm6.274%207.697V14.49h1.445v.973c.697-.768%201.581-1.314%202.856-1.314%201.921%200%203.349%201.297%203.349%203.738v5.205h-1.462v-5.154c0-1.536-.85-2.424-2.176-2.424-1.241%200-2.023.717-2.567%201.622v5.956h-1.445Zm11.052-2.884V15.82h-1.615V14.49h1.615v-2.15h1.462v2.15h2.975v1.331h-2.975v4.387c0%201.348.68%201.724%201.717%201.724.561%200%20.952-.069%201.275-.205v1.297c-.408.17-.867.239-1.479.239-1.904%200-2.975-.956-2.975-3.055Zm7.377-7.954c-.561%200-1.02-.46-1.02-1.024a1.024%201.024%200%200%201%201.02-1.007c.561%200%201.003.46%201.003%201.007a1.01%201.01%200%200%201-1.003%201.024Zm-.731%2010.838V14.49h1.445v8.602h-1.445Zm3.377-8.602h1.615v-1.058c0-1.844%201.207-3.14%203.043-3.14.952%200%201.7.34%202.21.835l-.901%201.059a1.638%201.638%200%200%200-1.292-.58c-.935%200-1.598.682-1.598%201.792v1.092h2.975v1.331h-2.975v7.271h-1.462v-7.27h-1.615V14.49Zm8.543-2.236c-.561%200-1.02-.46-1.02-1.024a1.024%201.024%200%200%201%201.02-1.007c.561%200%201.003.46%201.003%201.007a1.01%201.01%200%200%201-1.003%201.024Zm-.731%2010.838V14.49h1.445v8.602h-1.445Zm12.115-1.416c-.799%201.075-2.074%201.758-3.672%201.758-2.89%200-4.675-2.134-4.675-4.643%200-2.611%201.666-4.642%204.318-4.642%202.329%200%203.842%201.587%203.842%203.738%200%20.34-.051.682-.102.921h-6.562v.034c0%201.895%201.292%203.277%203.213%203.277a3.143%203.143%200%200%200%202.567-1.28l1.071.837Zm-4.012-6.281c-1.394%200-2.38.785-2.72%202.27h5.083c-.051-1.246-.952-2.27-2.363-2.27Zm6.274%207.697V14.49h1.445v1.075c.629-.75%201.411-1.246%202.499-1.246.272%200%20.527.034.731.103v1.502a3.1%203.1%200%200%200-.85-.12c-1.122%200-1.853.58-2.38%201.451v5.837h-1.445Zm13.685.342c-1.683%200-2.822-.956-2.822-2.458%200-1.331.986-2.287%202.822-2.577l2.873-.478v-.598c0-1.195-.85-1.877-2.057-1.877-1.003%200-1.836.444-2.329%201.195l-1.088-.837c.748-1.024%201.955-1.655%203.451-1.655%202.176%200%203.468%201.28%203.468%203.174v5.77h-1.445V22c-.646.905-1.717%201.434-2.873%201.434Zm-1.377-2.51c0%20.735.629%201.298%201.615%201.298%201.139%200%202.04-.598%202.635-1.588v-1.638l-2.533.444c-1.19.188-1.717.734-1.717%201.485Zm7.252-6.434h1.564l2.737%207.083%202.737-7.083h1.564l-3.349%208.602h-1.904l-3.349-8.602Zm17.856%207.186c-.799%201.075-2.074%201.758-3.672%201.758-2.89%200-4.675-2.134-4.675-4.643%200-2.611%201.666-4.642%204.318-4.642%202.329%200%203.842%201.587%203.842%203.738%200%20.34-.051.682-.102.921h-6.562v.034c0%201.895%201.292%203.277%203.213%203.277a3.143%203.143%200%200%200%202.567-1.28l1.071.837Zm-4.012-6.281c-1.394%200-2.38.785-2.72%202.27h5.083c-.051-1.246-.952-2.27-2.363-2.27Zm10.185%206.673a2.891%202.891%200%200%200%202.431-1.28l1.156.888c-.799%201.075-2.04%201.758-3.604%201.758-2.839%200-4.658-2.134-4.658-4.643s1.819-4.642%204.658-4.642c1.547%200%202.805.7%203.604%201.758l-1.156.887a2.917%202.917%200%200%200-2.448-1.28c-1.836%200-3.145%201.45-3.145%203.277%200%201.843%201.309%203.277%203.162%203.277ZM61.854%2040.161V27.51h4.158c2.772%200%204.464%201.428%204.464%203.777%200%202.331-1.692%203.76-4.464%203.76H64.41v5.114h-2.556Zm4.266-10.464h-1.71v3.162h1.71c1.08%200%201.728-.578%201.728-1.608%200-.958-.648-1.554-1.728-1.554Zm6.129%2010.464v-9.109h2.286v.904c.594-.615%201.368-1.084%202.394-1.084.306%200%20.576.054.792.126v2.404a3.922%203.922%200%200%200-1.008-.127c-1.116%200-1.836.614-2.178%201.175v5.71h-2.286Zm11.386-9.47c2.952%200%204.968%202.186%204.968%204.915%200%202.73-2.016%204.916-4.968%204.916s-4.968-2.187-4.968-4.916c0-2.729%202.016-4.915%204.968-4.915Zm.036%207.662c1.458%200%202.556-1.174%202.556-2.747%200-1.59-1.098-2.747-2.556-2.747-1.512%200-2.628%201.157-2.628%202.747%200%201.59%201.116%202.747%202.628%202.747Zm13.172-.235c1.44%200%202.574-.704%203.294-1.735l2.016%201.555c-1.152%201.572-3.024%202.584-5.31%202.584-3.978%200-6.696-3.072-6.696-6.687%200-3.614%202.718-6.686%206.696-6.686%202.286%200%204.158%201.03%205.31%202.566l-2.016%201.572c-.72-1.03-1.854-1.735-3.294-1.735-2.376%200-4.068%201.862-4.068%204.283%200%202.422%201.692%204.283%204.068%204.283Zm11.366-7.427c2.952%200%204.968%202.186%204.968%204.915%200%202.73-2.016%204.916-4.968%204.916s-4.968-2.187-4.968-4.916c0-2.729%202.016-4.915%204.968-4.915Zm.036%207.662c1.458%200%202.556-1.174%202.556-2.747%200-1.59-1.098-2.747-2.556-2.747-1.512%200-2.628%201.157-2.628%202.747%200%201.59%201.116%202.747%202.628%202.747Zm7.018%201.808v-9.109h2.286v.723c.63-.614%201.476-1.084%202.682-1.084%201.962%200%203.528%201.355%203.528%204.048v5.422h-2.322v-5.332c0-1.21-.666-1.97-1.782-1.97-1.152%200-1.764.777-2.106%201.356v5.946h-2.286Zm11.091%200v-9.109h2.286v.723c.63-.614%201.476-1.084%202.682-1.084%201.962%200%203.528%201.355%203.528%204.048v5.422h-2.322v-5.332c0-1.21-.666-1.97-1.782-1.97-1.152%200-1.764.777-2.106%201.356v5.946h-2.286Zm19.444-1.482c-.846%201.138-2.25%201.843-3.96%201.843-3.222%200-5.04-2.259-5.04-4.916%200-2.692%201.692-4.915%204.662-4.915%202.52%200%204.176%201.698%204.176%204.084%200%20.506-.072.994-.144%201.301h-6.354c.144%201.5%201.188%202.386%202.736%202.386.99%200%201.8-.434%202.286-1.085l1.638%201.302Zm-4.338-6.073c-1.116%200-1.872.543-2.178%201.735h4.086c-.036-.903-.702-1.735-1.908-1.735Zm10.696%205.747c.882%200%201.584-.433%202.016-1.066l1.818%201.392c-.846%201.12-2.178%201.843-3.834%201.843-3.132%200-5.004-2.259-5.004-4.916%200-2.656%201.872-4.915%205.004-4.915%201.656%200%202.988.723%203.834%201.843l-1.818%201.392c-.432-.633-1.116-1.067-2.052-1.067-1.494%200-2.592%201.157-2.592%202.747%200%201.609%201.098%202.747%202.628%202.747Zm6.204-1.518V33.15h-1.692v-2.097h1.692v-2.277h2.304v2.277h2.772v2.097h-2.772v3.686c0%201.012.54%201.41%201.44%201.41.63%200%201.044-.072%201.35-.199v2.006c-.45.199-.99.29-1.746.29-2.268%200-3.348-1.284-3.348-3.507Z'/%3e%3cpath%20fill='%23000091'%20d='M37.992%2014.155%2022.998%205.442%208.004%2014.237a.607.607%200%200%200-.306.527V31.78a.67.67%200%200%200%20.306.526l14.992%208.635L37.99%2032.2a.667.667%200%200%200%20.306-.526v-16.99a.608.608%200%200%200-.304-.53Z'/%3e%3cpath%20fill='%23FCC63A'%20d='m17.641%2014.656-5.029%208.663-4.557-9.212%205.39-3.125%204.49%203.173-.294.502Zm20.656%2017.049V14.679a.604.604%200%200%200-.306-.526L22.998%205.442'/%3e%3cpath%20fill='%230063CB'%20d='M7.7%2031.705%2023%205.442v35.504l-14.996-8.64a.667.667%200%200%201-.306-.526V14.765l.002%2016.94Zm24.67-20.819%205.457%203.168-4.489%209.187-5.387-9.273%204.418-3.083v.001Z'/%3e%3cpath%20fill='%23fff'%20d='M42.606%2011.348%2023.416.284a.93.93%200%200%200-.832%200L3.394%2011.348a.89.89%200%200%200-.394.698v22.088a.891.891%200%200%200%20.394.703l19.189%2011.064a.929.929%200%200%200%20.832%200l19.191-11.064a.888.888%200%200%200%20.394-.703V12.046a.893.893%200%200%200-.394-.698ZM13.789%2029.176h.079c-.042%200-.079.007-.079.05%200%20.1.151%200%20.2.1a.91.91%200%200%200-.629.277c0%20.05.1.05.151.05-.075.1-.226.05-.277.153a.176.176%200%200%200%20.1.05c-.05%200-.1%200-.1.05v.153c-.126%200-.176.1-.277.15.2.153.327%200%20.528%200-.528.201-.956.482-1.484.633-.1%200%200%20.15-.1.15.151.101.227-.05.377-.05-.654.38-1.333.703-2.037%201.138a.353.353%200%200%200-.1.201h-.2c-.1.05-.05.177-.151.278.226.15.5-.2.654%200%20.05%200-.1.05-.2.05-.05%200-.05.1-.1.1H9.99c-.1.076-.2.127-.2.278a.22.22%200%200%200-.226.1%209%209%200%200%200%203.144-.58%207.687%207.687%200%200%200%202.088-1.566.177.177%200%200%201%20.05.1c-.147.439-.43.82-.806%201.084-.277.153-.478.38-.7.481a4.05%204.05%200%200%200-.428.277c-.632.198-1.281.337-1.939.414l-.305.044c-.225.033-.449.07-.671.109l-1.993-1.143a.648.648%200%200%201-.288-.413.568.568%200%200%200%20.094-.063.267.267%200%200%200-.113-.071v-.653a12.74%2012.74%200%200%200%203.038-.945%208.731%208.731%200%200%200-3.037-1.349v-1.52c.555.09%201.103.222%201.639.393a6.41%206.41%200%200%201%201.182.58c.147.14.307.268.478.379a.908.908%200%200%200%20.8.05h.33a3.954%203.954%200%200%200%201.937-.909c0%20.05.05.05.1.05-.078.4-.223.785-.428%201.137.003.05-.048.152.053.203Zm2.817%203.584c.251-.1.4-.277.629-.378-.05.05-.05.151-.1.201a3.71%203.71%200%200%200-.528.402%2016%2016%200%200%200-1.585%201.616c-.252.302-.528.58-.8.859-.096.09-.2.172-.31.246l-2.527-1.456c.36.03.721.013%201.076-.053.294-.084.58-.193.855-.329v.1c.7-.277%201.232-.909%201.937-1.136.025%200%20.126.1.226.05a1.885%201.885%200%200%201%201.509-.702c0%20.05%200%20.1.05.1h.025c-.151.127-.327.251-.5.378-.057.053-.007.102.043.102Zm-8.908-6.188v-.187a5.795%205.795%200%200%201%201.588-.188c.158-.026.32-.026.478%200a5.84%205.84%200%200%200-2.066.375Zm30.6%205.109a.67.67%200%200%201-.306.526L27.913%2038.08a32.214%2032.214%200%200%201-3.408-1.189%202.847%202.847%200%200%201-.05-2.254c.08-.309.198-.607.352-.886.025-.025.05-.05.05-.076a.025.025%200%200%200%20.025-.025%204.33%204.33%200%200%201%20.377-.558l.015-.015.02-.02.015-.016c0-.025.025-.05.05-.076.025-.052.075-.077.1-.127a3.78%203.78%200%200%201%20.579-.502c.213-.077.431-.136.654-.178.811.06%201.617.171%202.415.33a.753.753%200%200%201%20.277.1c.301.06.612.041.905-.05a1.135%201.135%200%200%200%20.855-.709%201.22%201.22%200%200%200%20.05-1.064c-.178-.276-.013-.438.181-.592l.068-.055c.086-.06.164-.134.231-.216.126-.254-.1-.402-.151-.633-.05-.1-.226-.05-.327-.2.352-.152.855-.433.629-.861-.151-.228-.377-.633-.1-.86.352-.201.855-.152%201.006-.483a1.146%201.146%200%200%200-.292-1.088l-.075-.108a4.776%204.776%200%200%201-.211-.322%206.934%206.934%200%200%200-.528-.76%204.32%204.32%200%200%201-.528-1.014c-.151-.378.05-.708.05-1.087a6.397%206.397%200%200%200-.327-2.153c-.126-.354-.176-.734-.327-1.064a1.127%201.127%200%200%200-.226-.582.376.376%200%200%201%200-.329c.205-.145.399-.306.579-.482a.571.571%200%200%200-.2-.707c-.327-.152-.3.329-.528.43h-.151c-.05-.126.05-.177.151-.278%200-.05%200-.151-.05-.151-.2%200-.377-.052-.428-.152a3.956%203.956%200%200%200-1.861-1.291c.188.058.382.091.579.1.338.072.69.036%201.006-.1.227-.077.277-.482.377-.709a.806.806%200%200%200-.151-.634%202.192%202.192%200%200%200-.906-.759%209.094%209.094%200%200%201-.679-.354.952.952%200%200%200-.251-.127c-2.965-1.49-9.069-.2-9.534%200h-.009a8.23%208.23%200%200%200-1.249.477%203.92%203.92%200%200%200-2.365%202.475%203.84%203.84%200%200%200-1.333%201.515c-.428.804-1.056%201.515-.956%202.424.1.783.277%201.49.428%202.298.043.273.11.542.2.803.1.278%200%20.632.151.859.075.15.025.328.227.43v.2c.05.05.05.1.151.1v.202c.435.424.807.91%201.107%201.44.1.276-.478.15-.7.05a5.983%205.983%200%200%201-1.132-.96.177.177%200%200%200-.051.1c.2.354.906.783.528%201.01-.2.1-.428-.151-.629.05-.05.077%200%20.178%200%20.278-.277-.2-.578-.1-.855-.2-.2-.05-.252-.429-.478-.429a15.135%2015.135%200%200%200-1.811-.328%2015.1%2015.1%200%200%200-1.739-.161V14.766a.61.61%200%200%201%20.306-.526l14.987-8.796%2014.994%208.712a.606.606%200%200%201%20.306.526V31.68Zm-7.954-8.295a.325.325%200%200%201-.282.15c-.1.085-.194.176-.282.274.1%200%200%20.15.1.15-.205.224.077.697-.205.796-.37.1-.758.1-1.127%200a.721.721%200%200%201%20.167-.016h.085a.38.38%200%200%200%20.337-.133v-.2c0-.05-.051-.05-.1-.05a.16.16%200%200%201-.1.05.225.225%200%200%200-.154-.201.804.804%200%200%201-.718-.274.668.668%200%200%201%20.436-.05c.128%200%20.077-.225.231-.324h.154c.307-.373.871-.473.974-.846%200-.1-.282-.1-.487-.15a2.253%202.253%200%200%200-.82.05c-.36.05-.712.142-1.051.274.28-.206.592-.366.923-.472.232-.09.473-.158.718-.201l.132-.026.133-.027a.968.968%200%200%201%20.556%200c.231.1.615.1.666.248.1.275-.154.548-.435.747-.057.08.149.136.149.231Z'/%3e%3cpath%20fill='%23FCC63A'%20d='M55.56%200H30c-1.105%200-2%20.899-2%202.008v9.34c0%201.108.895%202.007%202%202.007h25.56c1.105%200%202-.899%202-2.008V2.008a2.004%202.004%200%200%200-2-2.008Z'/%3e%3cpath%20fill='%23161616'%20d='M30.562%2011.213V2.325h2.921c.97%200%201.732.237%202.289.711.565.474.847%201.122.847%201.943%200%20.813-.282%201.456-.847%201.93-.557.474-1.32.71-2.289.71h-1.125v3.594h-1.796Zm2.997-7.351h-1.201v2.221h1.2c.38%200%20.675-.097.886-.29.22-.197.329-.476.329-.84%200-.338-.11-.605-.329-.8-.21-.194-.506-.291-.885-.291Zm4.671%207.35V2.326h2.707c.97%200%201.736.237%202.301.711.565.474.847%201.122.847%201.943%200%20.532-.126.999-.379%201.396a2.4%202.4%200%200%201-1.037.902l2.782%203.936h-2.15L40.949%207.62h-.923v3.593H38.23Zm2.808-7.35h-1.012v2.221h1.012c.38%200%20.674-.097.885-.29.21-.197.316-.476.316-.84%200-.338-.105-.605-.316-.8-.21-.194-.506-.291-.885-.291Zm9.511-1.79c.69%200%201.323.126%201.896.38.582.254%201.08.593%201.492%201.016.414.423.734.923.962%201.498a4.81%204.81%200%200%201%20.341%201.803c0%20.635-.114%201.24-.341%201.815a4.504%204.504%200%200%201-.962%201.486%204.67%204.67%200%200%201-1.492%201.015c-.598.26-1.244.39-1.896.382a4.721%204.721%200%200%201-3.402-1.397%204.504%204.504%200%200%201-.961-1.486%204.892%204.892%200%200%201-.342-1.815c0-.635.114-1.236.342-1.803a4.473%204.473%200%200%201%20.961-1.498%204.72%204.72%200%200%201%203.402-1.397Zm0%207.706a2.79%202.79%200%200%200%201.138-.229c.354-.16.653-.371.898-.634.252-.271.45-.589.594-.953.145-.38.218-.785.215-1.193a3.193%203.193%200%200%200-.215-1.18%202.805%202.805%200%200%200-.595-.953A2.547%202.547%200%200%200%2051.687%204a2.664%202.664%200%200%200-1.138-.24c-.413%200-.797.08-1.151.24a2.678%202.678%200%200%200-.91.635c-.254.276-.451.6-.582.952a3.193%203.193%200%200%200-.215%201.181c0%20.423.071.82.215%201.193.143.364.337.682.581.953.253.262.557.474.91.634.355.153.739.23%201.152.23Z'/%3e%3c/svg%3e",jf="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='190'%20height='48'%20fill='none'%3e%3cpath%20fill='%23929292'%20d='m57.986%2021.454%201.156-1.076c.833%201.059%201.819%201.605%202.94%201.605%201.293%200%202.04-.82%202.04-1.912%200-2.56-5.626-2.253-5.626-6.059%200-1.74%201.428-3.209%203.45-3.209%201.684%200%202.908.768%203.792%201.946l-1.19%201.041c-.697-1.007-1.547-1.553-2.584-1.553-1.105%200-1.836.751-1.836%201.74%200%202.578%205.627%202.254%205.627%206.077%200%202.031-1.581%203.363-3.655%203.363-1.768%200-3.077-.666-4.114-1.963Zm10.817-5.735H67.46l1.445-4.574h1.649l-1.751%204.574Zm4.818-3.465c-.56%200-1.02-.46-1.02-1.024a1.026%201.026%200%200%201%201.02-1.007c.56%200%201.003.46%201.003%201.007a1.01%201.01%200%200%201-1.003%201.024Zm-.73%2010.838V14.49h1.444v8.602H72.89Zm3.767-4.3c0-2.51%201.717-4.643%204.403-4.643%201.24%200%202.26.46%203.043%201.297V10.29h1.445v12.801h-1.445v-.955c-.782.836-1.802%201.297-3.043%201.297-2.686%200-4.403-2.134-4.403-4.643Zm1.53%200c0%201.825%201.224%203.276%203.043%203.276%201.19%200%202.21-.58%202.873-1.604v-3.345c-.68-1.042-1.7-1.605-2.873-1.605-1.82%200-3.043%201.45-3.043%203.277Zm18.023%202.884c-.8%201.075-2.074%201.758-3.672%201.758-2.89%200-4.675-2.134-4.675-4.643%200-2.611%201.666-4.642%204.318-4.642%202.329%200%203.842%201.587%203.842%203.738%200%20.34-.051.682-.102.921H89.36v.034c0%201.895%201.292%203.277%203.213%203.277a3.143%203.143%200%200%200%202.567-1.28l1.07.837Zm-4.012-6.281c-1.394%200-2.38.785-2.72%202.27h5.083c-.051-1.246-.952-2.27-2.363-2.27Zm6.274%207.697V14.49h1.445v.973c.697-.768%201.581-1.314%202.856-1.314%201.921%200%203.349%201.297%203.349%203.738v5.205h-1.462v-5.154c0-1.536-.85-2.424-2.176-2.424-1.241%200-2.023.717-2.567%201.622v5.956h-1.445Zm11.052-2.884V15.82h-1.615V14.49h1.615v-2.15h1.462v2.15h2.975v1.331h-2.975v4.387c0%201.348.68%201.724%201.717%201.724.561%200%20.952-.069%201.275-.205v1.297c-.408.17-.867.239-1.479.239-1.904%200-2.975-.956-2.975-3.055Zm7.377-7.954c-.561%200-1.02-.46-1.02-1.024a1.024%201.024%200%200%201%201.02-1.007c.561%200%201.003.46%201.003%201.007a1.01%201.01%200%200%201-1.003%201.024Zm-.731%2010.838V14.49h1.445v8.602h-1.445Zm3.377-8.602h1.615v-1.058c0-1.844%201.207-3.14%203.043-3.14.952%200%201.7.34%202.21.835l-.901%201.059a1.638%201.638%200%200%200-1.292-.58c-.935%200-1.598.682-1.598%201.792v1.092h2.975v1.331h-2.975v7.271h-1.462v-7.27h-1.615V14.49Zm8.543-2.236c-.561%200-1.02-.46-1.02-1.024a1.024%201.024%200%200%201%201.02-1.007c.561%200%201.003.46%201.003%201.007a1.01%201.01%200%200%201-1.003%201.024Zm-.731%2010.838V14.49h1.445v8.602h-1.445Zm12.115-1.416c-.799%201.075-2.074%201.758-3.672%201.758-2.89%200-4.675-2.134-4.675-4.643%200-2.611%201.666-4.642%204.318-4.642%202.329%200%203.842%201.587%203.842%203.738%200%20.34-.051.682-.102.921h-6.562v.034c0%201.895%201.292%203.277%203.213%203.277a3.143%203.143%200%200%200%202.567-1.28l1.071.837Zm-4.012-6.281c-1.394%200-2.38.785-2.72%202.27h5.083c-.051-1.246-.952-2.27-2.363-2.27Zm6.274%207.697V14.49h1.445v1.075c.629-.75%201.411-1.246%202.499-1.246.272%200%20.527.034.731.103v1.502a3.1%203.1%200%200%200-.85-.12c-1.122%200-1.853.58-2.38%201.451v5.837h-1.445Zm13.685.342c-1.683%200-2.822-.956-2.822-2.458%200-1.331.986-2.287%202.822-2.577l2.873-.478v-.598c0-1.195-.85-1.877-2.057-1.877-1.003%200-1.836.444-2.329%201.195l-1.088-.837c.748-1.024%201.955-1.655%203.451-1.655%202.176%200%203.468%201.28%203.468%203.174v5.77h-1.445V22c-.646.905-1.717%201.434-2.873%201.434Zm-1.377-2.51c0%20.735.629%201.298%201.615%201.298%201.139%200%202.04-.598%202.635-1.588v-1.638l-2.533.444c-1.19.188-1.717.734-1.717%201.485Zm7.252-6.434h1.564l2.737%207.083%202.737-7.083h1.564l-3.349%208.602h-1.904l-3.349-8.602Zm17.856%207.186c-.799%201.075-2.074%201.758-3.672%201.758-2.89%200-4.675-2.134-4.675-4.643%200-2.611%201.666-4.642%204.318-4.642%202.329%200%203.842%201.587%203.842%203.738%200%20.34-.051.682-.102.921h-6.562v.034c0%201.895%201.292%203.277%203.213%203.277a3.143%203.143%200%200%200%202.567-1.28l1.071.837Zm-4.012-6.281c-1.394%200-2.38.785-2.72%202.27h5.083c-.051-1.246-.952-2.27-2.363-2.27Zm10.185%206.673a2.891%202.891%200%200%200%202.431-1.28l1.156.888c-.799%201.075-2.04%201.758-3.604%201.758-2.839%200-4.658-2.134-4.658-4.643s1.819-4.642%204.658-4.642c1.547%200%202.805.7%203.604%201.758l-1.156.887a2.917%202.917%200%200%200-2.448-1.28c-1.836%200-3.145%201.45-3.145%203.277%200%201.843%201.309%203.277%203.162%203.277ZM58.854%2040.161V27.51h4.158c2.772%200%204.464%201.428%204.464%203.777%200%202.331-1.692%203.76-4.464%203.76H61.41v5.114h-2.556Zm4.266-10.464h-1.71v3.162h1.71c1.08%200%201.728-.578%201.728-1.608%200-.958-.648-1.554-1.728-1.554Zm6.129%2010.464v-9.109h2.286v.904c.594-.615%201.368-1.084%202.394-1.084.306%200%20.576.054.792.126v2.404a3.922%203.922%200%200%200-1.008-.127c-1.116%200-1.836.614-2.178%201.175v5.71h-2.286Zm11.386-9.47c2.952%200%204.968%202.186%204.968%204.915%200%202.73-2.016%204.916-4.968%204.916s-4.968-2.187-4.968-4.916c0-2.729%202.016-4.915%204.968-4.915Zm.036%207.662c1.458%200%202.556-1.174%202.556-2.747%200-1.59-1.098-2.747-2.556-2.747-1.512%200-2.628%201.157-2.628%202.747%200%201.59%201.116%202.747%202.628%202.747Zm13.172-.235c1.44%200%202.574-.704%203.294-1.735l2.016%201.555c-1.152%201.572-3.024%202.584-5.31%202.584-3.978%200-6.696-3.072-6.696-6.687%200-3.614%202.718-6.686%206.696-6.686%202.286%200%204.158%201.03%205.31%202.566l-2.016%201.572c-.72-1.03-1.854-1.735-3.294-1.735-2.376%200-4.068%201.862-4.068%204.283%200%202.422%201.692%204.283%204.068%204.283Zm11.366-7.427c2.952%200%204.968%202.186%204.968%204.915%200%202.73-2.016%204.916-4.968%204.916s-4.968-2.187-4.968-4.916c0-2.729%202.016-4.915%204.968-4.915Zm.036%207.662c1.458%200%202.556-1.174%202.556-2.747%200-1.59-1.098-2.747-2.556-2.747-1.512%200-2.628%201.157-2.628%202.747%200%201.59%201.116%202.747%202.628%202.747Zm7.018%201.808v-9.109h2.286v.723c.63-.614%201.476-1.084%202.682-1.084%201.962%200%203.528%201.355%203.528%204.048v5.422h-2.322v-5.332c0-1.21-.666-1.97-1.782-1.97-1.152%200-1.764.777-2.106%201.356v5.946h-2.286Zm11.091%200v-9.109h2.286v.723c.63-.614%201.476-1.084%202.682-1.084%201.962%200%203.528%201.355%203.528%204.048v5.422h-2.322v-5.332c0-1.21-.666-1.97-1.782-1.97-1.152%200-1.764.777-2.106%201.356v5.946h-2.286Zm19.444-1.482c-.846%201.138-2.25%201.843-3.96%201.843-3.222%200-5.04-2.259-5.04-4.916%200-2.692%201.692-4.915%204.662-4.915%202.52%200%204.176%201.698%204.176%204.084%200%20.506-.072.994-.144%201.301h-6.354c.144%201.5%201.188%202.386%202.736%202.386.99%200%201.8-.434%202.286-1.085l1.638%201.302Zm-4.338-6.073c-1.116%200-1.872.543-2.178%201.735h4.086c-.036-.903-.702-1.735-1.908-1.735Zm10.696%205.747c.882%200%201.584-.433%202.016-1.066l1.818%201.392c-.846%201.12-2.178%201.843-3.834%201.843-3.132%200-5.004-2.259-5.004-4.916%200-2.656%201.872-4.915%205.004-4.915%201.656%200%202.988.723%203.834%201.843l-1.818%201.392c-.432-.633-1.116-1.067-2.052-1.067-1.494%200-2.592%201.157-2.592%202.747%200%201.609%201.098%202.747%202.628%202.747Zm6.204-1.518V33.15h-1.692v-2.097h1.692v-2.277h2.304v2.277h2.772v2.097h-2.772v3.686c0%201.012.54%201.41%201.44%201.41.63%200%201.044-.072%201.35-.199v2.006c-.45.199-.99.29-1.746.29-2.268%200-3.348-1.284-3.348-3.507Z'/%3e%3cpath%20fill='%237C7C7C'%20d='M34.992%2014.155%2019.998%205.442%205.004%2014.237a.607.607%200%200%200-.306.527V31.78a.67.67%200%200%200%20.306.526l14.992%208.635L34.99%2032.2a.667.667%200%200%200%20.306-.526v-16.99a.608.608%200%200%200-.304-.53Z'/%3e%3cpath%20fill='%23F6F6F6'%20d='M14.641%2014.656%209.612%2023.32l-4.557-9.212%205.39-3.125%204.49%203.173-.294.502Zm20.656%2017.049V14.679a.604.604%200%200%200-.306-.526L19.998%205.442'/%3e%3cpath%20fill='%23929292'%20d='M4.7%2031.705%2020%205.442v35.504l-14.996-8.64a.667.667%200%200%201-.306-.526V14.765l.002%2016.94Zm24.67-20.819%205.457%203.168-4.489%209.187-5.387-9.273%204.418-3.083v.001Z'/%3e%3cpath%20fill='%23CECECE'%20d='M39.606%2011.348%2020.416.284a.93.93%200%200%200-.832%200L.394%2011.348a.89.89%200%200%200-.394.698v22.088a.891.891%200%200%200%20.394.703l19.189%2011.064a.929.929%200%200%200%20.832%200l19.191-11.064a.888.888%200%200%200%20.394-.703V12.046a.893.893%200%200%200-.394-.698ZM10.789%2029.176h.079c-.042%200-.079.007-.079.05%200%20.1.151%200%20.2.1a.91.91%200%200%200-.629.277c0%20.05.1.05.151.05-.075.1-.226.05-.277.153a.176.176%200%200%200%20.1.05c-.05%200-.1%200-.1.05v.153c-.126%200-.176.1-.277.15.2.153.327%200%20.528%200-.528.201-.956.482-1.484.633-.1%200%200%20.15-.1.15.151.101.227-.05.377-.05-.654.38-1.333.703-2.037%201.138a.353.353%200%200%200-.1.201h-.2c-.1.05-.05.177-.151.278.226.15.5-.2.654%200%20.05%200-.1.05-.2.05-.05%200-.05.1-.1.1H6.99c-.1.076-.2.127-.2.278a.22.22%200%200%200-.226.1%209%209%200%200%200%203.144-.58%207.687%207.687%200%200%200%202.088-1.566.177.177%200%200%201%20.05.1c-.147.439-.43.82-.806%201.084-.277.153-.478.38-.7.481a4.05%204.05%200%200%200-.428.277c-.632.198-1.281.337-1.939.414l-.305.044c-.225.033-.449.07-.671.109l-1.993-1.143a.648.648%200%200%201-.288-.413.568.568%200%200%200%20.094-.063.267.267%200%200%200-.113-.071v-.653a12.74%2012.74%200%200%200%203.038-.945%208.731%208.731%200%200%200-3.037-1.349v-1.52c.555.09%201.103.222%201.639.393.413.152.809.346%201.182.58.147.14.307.268.478.379a.908.908%200%200%200%20.8.05h.33a3.954%203.954%200%200%200%201.937-.909c0%20.05.05.05.1.05-.078.4-.223.785-.428%201.137.003.05-.048.152.053.203Zm2.817%203.584c.251-.1.4-.277.629-.378-.05.05-.05.151-.1.201a3.71%203.71%200%200%200-.528.402%2016%2016%200%200%200-1.585%201.616c-.252.302-.528.58-.8.859-.096.09-.2.172-.31.246L8.385%2034.25c.36.03.721.013%201.076-.053.294-.084.58-.193.855-.329v.1c.7-.277%201.232-.909%201.937-1.136.025%200%20.126.1.226.05a1.885%201.885%200%200%201%201.509-.702c0%20.05%200%20.1.05.1h.025c-.151.127-.327.251-.5.378-.057.053-.007.102.043.102Zm-8.908-6.188v-.187a5.795%205.795%200%200%201%201.588-.188c.158-.026.32-.026.478%200a5.84%205.84%200%200%200-2.066.375Zm30.6%205.109a.67.67%200%200%201-.306.526L24.913%2038.08a32.214%2032.214%200%200%201-3.408-1.189%202.847%202.847%200%200%201-.05-2.254c.08-.309.198-.607.352-.886.025-.025.05-.05.05-.076a.025.025%200%200%200%20.025-.025%204.33%204.33%200%200%201%20.377-.558l.015-.015.02-.02.015-.016c0-.025.025-.05.05-.076.025-.052.075-.077.1-.127a3.78%203.78%200%200%201%20.579-.502c.213-.077.431-.136.654-.178.811.06%201.617.171%202.415.33a.753.753%200%200%201%20.277.1c.301.06.612.041.905-.05a1.135%201.135%200%200%200%20.855-.709%201.22%201.22%200%200%200%20.05-1.064c-.178-.276-.013-.438.181-.592l.068-.055c.086-.06.164-.134.231-.216.126-.254-.1-.402-.151-.633-.05-.1-.226-.05-.327-.2.352-.152.855-.433.629-.861-.151-.228-.377-.633-.1-.86.352-.201.855-.152%201.006-.483a1.146%201.146%200%200%200-.292-1.088l-.075-.108a4.776%204.776%200%200%201-.211-.322%206.934%206.934%200%200%200-.528-.76%204.32%204.32%200%200%201-.528-1.014c-.151-.378.05-.708.05-1.087a6.397%206.397%200%200%200-.327-2.153c-.126-.354-.176-.734-.327-1.064a1.127%201.127%200%200%200-.226-.582.376.376%200%200%201%200-.329c.205-.145.399-.306.579-.482a.571.571%200%200%200-.2-.707c-.327-.152-.3.329-.528.43h-.151c-.05-.126.05-.177.151-.278%200-.05%200-.151-.05-.151-.2%200-.377-.052-.428-.152a3.956%203.956%200%200%200-1.861-1.291c.188.058.382.091.579.1.338.072.69.036%201.006-.1.227-.077.277-.482.377-.709a.806.806%200%200%200-.151-.634%202.192%202.192%200%200%200-.906-.759%209.094%209.094%200%200%201-.679-.354.952.952%200%200%200-.251-.127c-2.965-1.49-9.069-.2-9.534%200h-.009a8.23%208.23%200%200%200-1.249.477%203.92%203.92%200%200%200-2.365%202.475%203.84%203.84%200%200%200-1.333%201.515c-.428.804-1.056%201.515-.956%202.424.1.783.277%201.49.428%202.298.043.273.11.542.2.803.1.278%200%20.632.151.859.075.15.025.328.227.43v.2c.05.05.05.1.151.1v.202c.435.424.807.91%201.107%201.44.1.276-.478.15-.7.05a5.983%205.983%200%200%201-1.132-.96.177.177%200%200%200-.051.1c.2.354.906.783.528%201.01-.2.1-.428-.151-.629.05-.05.077%200%20.178%200%20.278-.277-.2-.578-.1-.855-.2-.2-.05-.252-.429-.478-.429a15.135%2015.135%200%200%200-1.811-.328%2015.1%2015.1%200%200%200-1.739-.161V14.766a.61.61%200%200%201%20.306-.526l14.987-8.796%2014.994%208.712a.606.606%200%200%201%20.306.526V31.68Zm-7.954-8.295a.325.325%200%200%201-.282.15c-.1.085-.194.176-.282.274.1%200%200%20.15.1.15-.205.224.077.697-.205.796-.37.1-.758.1-1.127%200a.721.721%200%200%201%20.167-.016h.085a.38.38%200%200%200%20.337-.133v-.2c0-.05-.051-.05-.1-.05a.16.16%200%200%201-.1.05.225.225%200%200%200-.154-.201.804.804%200%200%201-.718-.274.668.668%200%200%201%20.436-.05c.128%200%20.077-.225.231-.324h.154c.307-.373.871-.473.974-.846%200-.1-.282-.1-.487-.15a2.253%202.253%200%200%200-.82.05c-.36.05-.712.142-1.051.274.28-.206.592-.366.923-.472.232-.09.473-.158.718-.201l.132-.026.133-.027a.968.968%200%200%201%20.556%200c.231.1.615.1.666.248.1.275-.154.548-.435.747-.057.08.149.136.149.231Z'/%3e%3cpath%20fill='%23DDD'%20d='M52.56%200H27c-1.105%200-2%20.899-2%202.008v9.34c0%201.108.895%202.007%202%202.007h25.56c1.105%200%202-.899%202-2.008V2.008a2.004%202.004%200%200%200-2-2.008Z'/%3e%3cpath%20fill='%23929292'%20d='M27.562%2011.213V2.325h2.921c.97%200%201.732.237%202.289.711.565.474.847%201.122.847%201.943%200%20.813-.282%201.456-.847%201.93-.557.474-1.32.71-2.289.71h-1.125v3.594h-1.796Zm2.997-7.351h-1.201v2.221h1.2c.38%200%20.675-.097.886-.29.22-.197.329-.476.329-.84%200-.338-.11-.605-.329-.8-.21-.194-.506-.291-.885-.291Zm4.671%207.35V2.326h2.707c.97%200%201.736.237%202.301.711.565.474.847%201.122.847%201.943%200%20.532-.126.999-.379%201.396a2.4%202.4%200%200%201-1.037.902l2.782%203.936h-2.15L37.949%207.62h-.923v3.593H35.23Zm2.808-7.35h-1.012v2.221h1.012c.38%200%20.674-.097.885-.29.21-.197.316-.476.316-.84%200-.338-.105-.605-.316-.8-.21-.194-.506-.291-.885-.291Zm9.511-1.79c.69%200%201.323.126%201.896.38.582.254%201.08.593%201.492%201.016.414.423.734.923.962%201.498a4.81%204.81%200%200%201%20.341%201.803c0%20.635-.114%201.24-.341%201.815a4.504%204.504%200%200%201-.962%201.486%204.67%204.67%200%200%201-1.492%201.015c-.598.26-1.244.39-1.896.382a4.721%204.721%200%200%201-3.402-1.397%204.504%204.504%200%200%201-.961-1.486%204.892%204.892%200%200%201-.342-1.815c0-.635.114-1.236.342-1.803a4.473%204.473%200%200%201%20.961-1.498%204.72%204.72%200%200%201%203.402-1.397Zm0%207.706a2.79%202.79%200%200%200%201.138-.229c.354-.16.653-.371.898-.634.252-.271.45-.589.594-.953.145-.38.218-.785.215-1.193a3.193%203.193%200%200%200-.215-1.18%202.805%202.805%200%200%200-.595-.953A2.547%202.547%200%200%200%2048.687%204a2.664%202.664%200%200%200-1.138-.24c-.413%200-.797.08-1.151.24a2.678%202.678%200%200%200-.91.635c-.254.276-.451.6-.582.952a3.193%203.193%200%200%200-.215%201.181c0%20.423.071.82.215%201.193.143.364.337.682.581.953.253.262.557.474.91.634.355.153.739.23%201.152.23Z'/%3e%3c/svg%3e",S2=({disabled:t,onClick:e})=>b.jsx(X.Button,{disabled:t,className:"pro-connect-button",onClick:e,style:{backgroundImage:`url("${t?jf:Lf}")`}});u.createContext(null);u.createContext(null);u.createContext(null);u.createContext(null);u.createContext(null);const Kf=u.createContext({}),ne=typeof document<"u"?u.useLayoutEffect:()=>{};var Xi;const Vf=(Xi=u.useInsertionEffect)!==null&&Xi!==void 0?Xi:ne;function be(t){const e=u.useRef(null);return Vf(()=>{e.current=t},[t]),u.useCallback((...r)=>{const n=e.current;return n==null?void 0:n(...r)},[])}function Hf(t){let[e,r]=u.useState(t),n=u.useRef(null),i=be(()=>{if(!n.current)return;let a=n.current.next();if(a.done){n.current=null;return}e===a.value?i():r(a.value)});ne(()=>{n.current&&i()});let o=be(a=>{n.current=a(e),i()});return[e,o]}const Zn={prefix:String(Math.round(Math.random()*1e10)),current:0},F2=u.createContext(Zn),zf=u.createContext(!1);let Uf=!!(typeof window<"u"&&window.document&&window.document.createElement),Ji=new WeakMap;function Wf(t=!1){let e=u.useContext(F2),r=u.useRef(null);if(r.current===null&&!t){var n,i;let o=(i=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(n=i.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(o){let a=Ji.get(o);a==null?Ji.set(o,{id:e.current,state:o.memoizedState}):o.memoizedState!==a.state&&(e.current=a.id,Ji.delete(o))}r.current=++e.current}return r.current}function Zf(t){let e=u.useContext(F2);e===Zn&&!Uf&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=Wf(!!t),n=e===Zn&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${n}-${r}`}function Gf(t){let e=u.useId(),[r]=u.useState(sn()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Zn.prefix}`;return t||`${n}-${e}`}const qf=typeof u.useId=="function"?Gf:Zf;function Yf(){return!1}function Xf(){return!0}function Jf(t){return()=>{}}function sn(){return typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore(Jf,Yf,Xf):u.useContext(zf)}let Qf=!!(typeof window<"u"&&window.document&&window.document.createElement),sr=new Map,Br;typeof FinalizationRegistry<"u"&&(Br=new FinalizationRegistry(t=>{sr.delete(t)}));function Se(t){let[e,r]=u.useState(t),n=u.useRef(null),i=qf(e),o=u.useRef(null);if(Br&&Br.register(o,i),Qf){const a=sr.get(i);a&&!a.includes(n)?a.push(n):sr.set(i,[n])}return ne(()=>{let a=i;return()=>{Br&&Br.unregister(o),sr.delete(a)}},[i]),u.useEffect(()=>{let a=n.current;return a&&r(a),()=>{a&&(n.current=null)}}),i}function e5(t,e){if(t===e)return t;let r=sr.get(t);if(r)return r.forEach(i=>i.current=e),e;let n=sr.get(e);return n?(n.forEach(i=>i.current=t),t):e}function ht(t=[]){let e=Se(),[r,n]=Hf(e),i=u.useCallback(()=>{n(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,n]);return ne(i,[e,i,...t]),r}function gt(...t){return(...e)=>{for(let r of t)typeof r=="function"&&r(...e)}}const ae=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},Te=t=>t&&"window"in t&&t.window===t?t:ae(t).defaultView||window;function t5(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function r5(t){return t5(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let n5=!1;function pi(){return n5}function ue(t,e){if(!pi())return e&&t?t.contains(e):!1;if(!t||!e)return!1;let r=e;for(;r!==null;){if(r===t)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:r5(r)?r=r.host:r=r.parentNode}return!1}const xe=(t=document)=>{var e;if(!pi())return t.activeElement;let r=t.activeElement;for(;r&&"shadowRoot"in r&&(!((e=r.shadowRoot)===null||e===void 0)&&e.activeElement);)r=r.shadowRoot.activeElement;return r};function oe(t){return pi()&&t.target.shadowRoot&&t.composedPath?t.composedPath()[0]:t.target}class i5{get currentNode(){return this._currentNode}set currentNode(e){if(!ue(this.root,e))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const r=[];let n=e,i=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const a=n,l=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});r.push(l),l.currentNode=i,this._currentSetFor.add(l),n=i=a.host}else n=n.parentNode;const o=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});r.push(o),o.currentNode=i,this._currentSetFor.add(o),this._walkerStack=r}get doc(){return this._doc}firstChild(){let e=this.currentNode,r=this.nextNode();return ue(e,r)?(r&&(this.currentNode=r),r):(this.currentNode=e,null)}lastChild(){let r=this._walkerStack[0].lastChild();return r&&(this.currentNode=r),r}nextNode(){const e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var r;let i;if(typeof this.filter=="function"?i=this.filter(e):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(i=this.filter.acceptNode(e)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let o=this.nextNode();return o&&(this.currentNode=o),o}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){const e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const r=e.previousNode();if(r){if(r.shadowRoot){var n;let o;if(typeof this.filter=="function"?o=this.filter(r):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(o=this.filter.acceptNode(r)),o===NodeFilter.FILTER_ACCEPT)return r&&(this.currentNode=r),r;let a=this.lastChild();return a&&(this.currentNode=a),a}return r&&(this.currentNode=r),r}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,r,n,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=a=>{if(a.nodeType===Node.ELEMENT_NODE){const s=a.shadowRoot;if(s){const c=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(c),NodeFilter.FILTER_ACCEPT}else{var l;if(typeof this.filter=="function")return this.filter(a);if(!((l=this.filter)===null||l===void 0)&&l.acceptNode)return this.filter.acceptNode(a);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=r,this.filter=i??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=r,this._walkerStack.unshift(e.createTreeWalker(r,n,this._acceptNode));const o=r.shadowRoot;if(o){const a=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(a)}}}function o5(t,e,r,n){return pi()?new i5(t,e,r,n):t.createTreeWalker(e,r,n)}function $2(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=$2(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function ve(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=$2(t))&&(n&&(n+=" "),n+=e);return n}function ie(...t){let e={...t[0]};for(let r=1;r<t.length;r++){let n=t[r];for(let i in n){let o=e[i],a=n[i];typeof o=="function"&&typeof a=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?e[i]=gt(o,a):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof a=="string"?e[i]=ve(o,a):i==="id"&&o&&a?e.id=e5(o,a):e[i]=a!==void 0?a:o}}return e}function ka(...t){return t.length===1&&t[0]?t[0]:e=>{let r=!1;const n=t.map(i=>{const o=Nl(i,e);return r||(r=typeof o=="function"),o});if(r)return()=>{n.forEach((i,o)=>{typeof i=="function"?i():Nl(t[o],null)})}}}function Nl(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}const a5=new Set(["id"]),l5=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),s5=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),c5=new Set(["dir","lang","hidden","inert","translate"]),Rl=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),u5=/^(data-.*)$/;function he(t,e={}){let{labelable:r,isLink:n,global:i,events:o=i,propNames:a}=e,l={};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(a5.has(s)||r&&l5.has(s)||n&&s5.has(s)||i&&c5.has(s)||o&&Rl.has(s)||s.endsWith("Capture")&&Rl.has(s.slice(0,-7))||a!=null&&a.has(s)||u5.test(s))&&(l[s]=t[s]);return l}function He(t){if(d5())t.focus({preventScroll:!0});else{let e=f5(t);t.focus(),h5(e)}}let hn=null;function d5(){if(hn==null){hn=!1;try{document.createElement("div").focus({get preventScroll(){return hn=!0,!0}})}catch{}}return hn}function f5(t){let e=t.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==n;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&r.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function h5(t){for(let{element:e,scrollTop:r,scrollLeft:n}of t)e.scrollTop=r,e.scrollLeft=n}function gi(t){var e;if(typeof window>"u"||window.navigator==null)return!1;let r=(e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands;return Array.isArray(r)&&r.some(n=>t.test(n.brand))||t.test(window.navigator.userAgent)}function Ia(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function rt(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const vt=rt(function(){return Ia(/^Mac/i)}),p5=rt(function(){return Ia(/^iPhone/i)}),_2=rt(function(){return Ia(/^iPad/i)||vt()&&navigator.maxTouchPoints>1}),vi=rt(function(){return p5()||_2()}),g5=rt(function(){return vt()||vi()}),Oa=rt(function(){return gi(/AppleWebKit/i)&&!P2()}),P2=rt(function(){return gi(/Chrome/i)}),Ma=rt(function(){return gi(/Android/i)}),v5=rt(function(){return gi(/Firefox/i)}),b5=u.createContext({isNative:!0,open:C5,useHref:t=>t});function bi(){return u.useContext(b5)}function m5(t,e){let r=t.getAttribute("target");return(!r||r==="_self")&&t.origin===location.origin&&!t.hasAttribute("download")&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey}function Pt(t,e,r=!0){var n,i;let{metaKey:o,ctrlKey:a,altKey:l,shiftKey:s}=e;v5()&&(!((i=window.event)===null||i===void 0||(n=i.type)===null||n===void 0)&&n.startsWith("key"))&&t.target==="_blank"&&(vt()?o=!0:a=!0);let c=Oa()&&vt()&&!_2()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:a,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:o,ctrlKey:a,altKey:l,shiftKey:s,bubbles:!0,cancelable:!0});Pt.isOpening=r,He(t),t.dispatchEvent(c),Pt.isOpening=!1}Pt.isOpening=!1;function y5(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let r=document.createElement("a");r.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(r.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(r.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(r.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(r.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(r),e(r),t.removeChild(r)}}function C5(t,e){y5(t,r=>Pt(r,e))}function Na(t){let e=bi();var r;const n=e.useHref((r=t==null?void 0:t.href)!==null&&r!==void 0?r:"");return{href:t!=null&&t.href?n:void 0,target:t==null?void 0:t.target,rel:t==null?void 0:t.rel,download:t==null?void 0:t.download,ping:t==null?void 0:t.ping,referrerPolicy:t==null?void 0:t.referrerPolicy}}function E5(t,e,r,n){!e.isNative&&t.currentTarget instanceof HTMLAnchorElement&&t.currentTarget.href&&!t.isDefaultPrevented()&&m5(t.currentTarget,t)&&r&&(t.preventDefault(),e.open(t.currentTarget,t,r,n))}let ut=new Map,zo=new Set;function Bl(){if(typeof window>"u")return;function t(n){return"propertyName"in n}let e=n=>{if(!t(n)||!n.target)return;let i=ut.get(n.target);i||(i=new Set,ut.set(n.target,i),n.target.addEventListener("transitioncancel",r,{once:!0})),i.add(n.propertyName)},r=n=>{if(!t(n)||!n.target)return;let i=ut.get(n.target);if(i&&(i.delete(n.propertyName),i.size===0&&(n.target.removeEventListener("transitioncancel",r),ut.delete(n.target)),ut.size===0)){for(let o of zo)o();zo.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Bl():document.addEventListener("DOMContentLoaded",Bl));function w5(){for(const[t]of ut)"isConnected"in t&&!t.isConnected&&ut.delete(t)}function A2(t){requestAnimationFrame(()=>{w5(),ut.size===0?t():zo.add(t)})}function mi(){let t=u.useRef(new Map),e=u.useCallback((i,o,a,l)=>{let s=l!=null&&l.once?(...c)=>{t.current.delete(a),a(...c)}:a;t.current.set(a,{type:o,eventTarget:i,fn:s,options:l}),i.addEventListener(o,s,l)},[]),r=u.useCallback((i,o,a,l)=>{var s;let c=((s=t.current.get(a))===null||s===void 0?void 0:s.fn)||a;i.removeEventListener(o,c,l),t.current.delete(a)},[]),n=u.useCallback(()=>{t.current.forEach((i,o)=>{r(i.eventTarget,i.type,o,i.options)})},[r]);return u.useEffect(()=>n,[n]),{addGlobalListener:e,removeGlobalListener:r,removeAllGlobalListeners:n}}function yi(t,e){let{id:r,"aria-label":n,"aria-labelledby":i}=t;return r=Se(r),i&&n?i=[...new Set([r,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!n&&!i&&e&&(n=e),{id:r,"aria-label":n,"aria-labelledby":i}}function nt(t){const e=u.useRef(null),r=u.useRef(void 0),n=u.useCallback(i=>{if(typeof t=="function"){const o=t,a=o(i);return()=>{typeof a=="function"?a():o(null)}}else if(t)return t.current=i,()=>{t.current=null}},[t]);return u.useMemo(()=>({get current(){return e.current},set current(i){e.current=i,r.current&&(r.current(),r.current=void 0),i!=null&&(r.current=n(i))}}),[n])}function Ll(t,e){const r=u.useRef(!0),n=u.useRef(null);ne(()=>(r.current=!0,()=>{r.current=!1}),[]),ne(()=>{r.current?r.current=!1:(!n.current||e.some((i,o)=>!Object.is(i,n[o])))&&t(),n.current=e},e)}function x5(){return typeof window.ResizeObserver<"u"}function Uo(t){const{ref:e,box:r,onResize:n}=t;u.useEffect(()=>{let i=e==null?void 0:e.current;if(i)if(x5()){const o=new window.ResizeObserver(a=>{a.length&&n()});return o.observe(i,{box:r}),()=>{i&&o.unobserve(i)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,e,r])}function T2(t,e){ne(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function Zr(t,e){if(!t)return!1;let r=window.getComputedStyle(t),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&e&&(n=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),n}function k2(t,e){let r=t;for(Zr(r,e)&&(r=r.parentElement);r&&!Zr(r,e);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function D5(t,e){const r=[];for(;t&&t!==document.documentElement;)Zr(t,e)&&r.push(t),t=t.parentElement;return r}let S5=0;const Qi=new Map;function F5(t){let[e,r]=u.useState();return ne(()=>{if(!t)return;let n=Qi.get(t);if(n)r(n.element.id);else{let i=`react-aria-description-${S5++}`;r(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=t,document.body.appendChild(o),n={refCount:0,element:o},Qi.set(t,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),Qi.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function pn(t,e,r,n){let i=be(r),o=r==null;u.useEffect(()=>{if(o||!t.current)return;let a=t.current;return a.addEventListener(e,i,n),()=>{a.removeEventListener(e,i,n)}},[t,e,n,o,i])}function I2(t,e){let r=jl(t,e,"left"),n=jl(t,e,"top"),i=e.offsetWidth,o=e.offsetHeight,a=t.scrollLeft,l=t.scrollTop,{borderTopWidth:s,borderLeftWidth:c,scrollPaddingTop:d,scrollPaddingRight:f,scrollPaddingBottom:p,scrollPaddingLeft:g}=getComputedStyle(t),y=a+parseInt(c,10),h=l+parseInt(s,10),v=y+t.clientWidth,m=h+t.clientHeight,C=parseInt(d,10)||0,E=parseInt(p,10)||0,F=parseInt(f,10)||0,D=parseInt(g,10)||0;r<=a+D?a=r-parseInt(c,10)-D:r+i>v-F&&(a+=r+i-v+F),n<=h+C?l=n-parseInt(s,10)-C:n+o>m-E&&(l+=n+o-m+E),t.scrollLeft=a,t.scrollTop=l}function jl(t,e,r){const n=r==="left"?"offsetLeft":"offsetTop";let i=0;for(;e.offsetParent&&(i+=e[n],e.offsetParent!==t);){if(e.offsetParent.contains(t)){i-=t[n];break}e=e.offsetParent}return i}function Kl(t,e){if(t&&document.contains(t)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let s=D5(t);for(let c of s)I2(c,t)}else{var r;let{left:s,top:c}=t.getBoundingClientRect();t==null||(r=t.scrollIntoView)===null||r===void 0||r.call(t,{block:"nearest"});let{left:d,top:f}=t.getBoundingClientRect();if(Math.abs(s-d)>1||Math.abs(c-f)>1){var n,i,o;e==null||(i=e.containingElement)===null||i===void 0||(n=i.scrollIntoView)===null||n===void 0||n.call(i,{block:"center",inline:"center"}),(o=t.scrollIntoView)===null||o===void 0||o.call(t,{block:"nearest"})}}}}function Wo(t){return t.pointerType===""&&t.isTrusted?!0:Ma()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function $5(t){return!Ma()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function _5(t,e,r){let n=be(()=>{r&&r(e)});u.useEffect(()=>{var i;let o=t==null||(i=t.current)===null||i===void 0?void 0:i.form;return o==null||o.addEventListener("reset",n),()=>{o==null||o.removeEventListener("reset",n)}},[t,n])}function P5(t){const e=u.version.split(".");return parseInt(e[0],10)>=19?t:t?"true":void 0}const A5="react-aria-clear-focus",T5="react-aria-focus";function rr(t){return vt()?t.metaKey:t.ctrlKey}function k5(t,e=!0){let[r,n]=u.useState(!0),i=r&&e;return ne(()=>{if(i&&t.current&&"getAnimations"in t.current)for(let o of t.current.getAnimations())o instanceof CSSTransition&&o.cancel()},[t,i]),O2(t,i,u.useCallback(()=>n(!1),[])),i}function I5(t,e){let[r,n]=u.useState(e?"open":"closed");switch(r){case"open":e||n("exiting");break;case"closed":case"exiting":e&&n("open");break}let i=r==="exiting";return O2(t,i,u.useCallback(()=>{n(o=>o==="exiting"?"closed":o)},[])),i}function O2(t,e,r){ne(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){r();return}let n=t.current.getAnimations();if(n.length===0){r();return}let i=!1;return Promise.all(n.map(o=>o.finished)).then(()=>{i||Nt.flushSync(()=>{r()})}).catch(()=>{}),()=>{i=!0}}},[t,e,r])}const O5=typeof Element<"u"&&"checkVisibility"in Element.prototype;function M5(t){const e=Te(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:r,visibility:n}=t.style,i=r!=="none"&&n!=="hidden"&&n!=="collapse";if(i){const{getComputedStyle:o}=t.ownerDocument.defaultView;let{display:a,visibility:l}=o(t);i=a!=="none"&&l!=="hidden"&&l!=="collapse"}return i}function N5(t,e){return!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&(t.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function Ra(t,e){return O5?t.checkVisibility()&&!t.closest("[data-react-aria-prevent-focus]"):t.nodeName!=="#comment"&&M5(t)&&N5(t,e)&&(!t.parentElement||Ra(t.parentElement,t))}const Ba=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],R5=Ba.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Ba.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const B5=Ba.join(':not([hidden]):not([tabindex="-1"]),');function M2(t){return t.matches(R5)&&Ra(t)&&!N2(t)}function L5(t){return t.matches(B5)&&Ra(t)&&!N2(t)}function N2(t){let e=t;for(;e!=null;){if(e instanceof e.ownerDocument.defaultView.HTMLElement&&e.inert)return!0;e=e.parentElement}return!1}function Ci(t,e,r){let[n,i]=u.useState(t||e),o=u.useRef(t!==void 0),a=t!==void 0;u.useEffect(()=>{let c=o.current;c!==a&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),o.current=a},[a]);let l=a?t:n,s=u.useCallback((c,...d)=>{let f=(p,...g)=>{r&&(Object.is(l,p)||r(p,...g)),a||(l=p)};typeof c=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((g,...y)=>{let h=c(a?l:g,...y);return f(h,...d),a?g:h})):(a||i(c),f(c,...d))},[a,l,r]);return[l,s]}function Zo(t,e=-1/0,r=1/0){return Math.min(Math.max(t,e),r)}const Gr=Symbol("default");function it({values:t,children:e}){for(let[r,n]of t)e=u.createElement(r.Provider,{value:n},e);return e}function Fe(t){let{className:e,style:r,children:n,defaultClassName:i,defaultChildren:o,defaultStyle:a,values:l}=t;return u.useMemo(()=>{let s,c,d;return typeof e=="function"?s=e({...l,defaultClassName:i}):s=e,typeof r=="function"?c=r({...l,defaultStyle:a||{}}):c=r,typeof n=="function"?d=n({...l,defaultChildren:o}):n==null?d=o:d=n,{className:s??i,style:c||a?{...a,...c}:void 0,children:d??o,"data-rac":""}},[e,r,n,i,o,a,l])}function Ei(t,e){let r=u.useContext(t);if(e===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=e||Gr;if(!r.slots[n]){let i=new Intl.ListFormat().format(Object.keys(r.slots).map(a=>`"${a}"`)),o=e?`Invalid slot "${e}".`:"A slot prop is required.";throw new Error(`${o} Valid slot names are ${i}.`)}return r.slots[n]}return r}function Xe(t,e,r){let n=Ei(r,t.slot)||{},{ref:i,...o}=n,a=nt(u.useMemo(()=>ka(e,i),[e,i])),l=ie(o,t);return"style"in o&&o.style&&"style"in t&&t.style&&(typeof o.style=="function"||typeof t.style=="function"?l.style=s=>{let c=typeof o.style=="function"?o.style(s):o.style,d={...s.defaultStyle,...c},f=typeof t.style=="function"?t.style({...s,defaultStyle:d}):t.style;return{...d,...f}}:l.style={...o.style,...t.style}),[l,a]}function La(t=!0){let[e,r]=u.useState(t),n=u.useRef(!1),i=u.useCallback(o=>{n.current=!0,r(!!o)},[]);return ne(()=>{n.current||r(!1)},[]),[i,e]}function j5(t){const e=/^(data-.*)$/;let r={};for(const n in t)e.test(n)||(r[n]=t[n]);return r}class ja{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new ja(this.type,this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}constructor(e,r){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=e,this.key=r}}class Ka{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let r=this.keyMap;return{*[Symbol.iterator](){let n=r.get(e),i=(n==null?void 0:n.firstChildKey)!=null?r.get(n.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?r.get(i.nextKey):void 0}}}getKeyBefore(e){let r=this.keyMap.get(e);if(!r)return null;if(r.prevKey!=null){for(r=this.keyMap.get(r.prevKey);r&&r.type!=="item"&&r.lastChildKey!=null;)r=this.keyMap.get(r.lastChildKey);var n;return(n=r==null?void 0:r.key)!==null&&n!==void 0?n:null}return r.parentKey}getKeyAfter(e){let r=this.keyMap.get(e);if(!r)return null;if(r.type!=="item"&&r.firstChildKey!=null)return r.firstChildKey;for(;r;){if(r.nextKey!=null)return r.nextKey;if(r.parentKey!=null)r=this.keyMap.get(r.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var r;return(r=e==null?void 0:e.key)!==null&&r!==void 0?r:null}getItem(e){var r;return(r=this.keyMap.get(e))!==null&&r!==void 0?r:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,r=new e;return r.keyMap=new Map(this.keyMap),r.firstKey=this.firstKey,r.lastKey=this.lastKey,r}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(e.key,e)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(e)}commit(e,r,n=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=r,this.frozen=!n}UNSTABLE_filter(e){let r=new Ka,n=null;for(let i of this)if(i.type==="section"&&i.hasChildNodes){let o=i.clone(),a=null;for(let l of this.getChildren(i.key))if(Vl(l,e,this,r)){let s=l.clone();a==null&&(o.firstChildKey=s.key),r.firstKey==null&&(r.firstKey=o.key),a&&a.parentKey===s.parentKey?(a.nextKey=s.key,s.prevKey=a.key):s.prevKey=null,s.nextKey=null,r.addNode(s),a=s}a&&(a.type!=="header"?(o.lastChildKey=a.key,n==null?o.prevKey=null:(n.type==="section"||n.type==="separator")&&(n.nextKey=o.key,o.prevKey=n.key),o.nextKey=null,n=o,r.addNode(o)):(r.firstKey===o.key&&(r.firstKey=null),r.removeNode(a.key)))}else if(i.type==="separator"){let o=i.clone();o.nextKey=null,(n==null?void 0:n.type)==="section"&&(n.nextKey=o.key,o.prevKey=n.key,n=o,r.addNode(o))}else{let o=i.clone();Vl(o,e,this,r)&&(r.firstKey==null&&(r.firstKey=o.key),n!=null&&n.type!=="section"&&n.type!=="separator"&&n.parentKey===o.parentKey?(n.nextKey=o.key,o.prevKey=n.key):o.prevKey=null,o.nextKey=null,r.addNode(o),n=o)}if((n==null?void 0:n.type)==="separator"&&n.nextKey===null){let i;n.prevKey!=null&&(i=r.getItem(n.prevKey),i.nextKey=null),r.removeNode(n.key),n=i}return r.lastKey=(n==null?void 0:n.key)||null,r}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}function Vl(t,e,r,n){if(t.type==="subdialogtrigger"||t.type==="submenutrigger"){let i=[...r.getChildren(t.key)][0];if(i&&e(i.textValue)){let o=i.clone();return n.addNode(o),!0}else return!1}else return t.type==="header"?!0:e(t.textValue)}class R2{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e)}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.ownerDocument.queueUpdate()}insertBefore(e,r){if(r==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=r,e.previousSibling=r.previousSibling,e.index=r.index,this.firstChild===r?this.firstChild=e:r.previousSibling&&(r.previousSibling.nextSibling=e),r.previousSibling=e,e.parentNode=r.parentNode,this.invalidateChildIndices(r),this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode!==this||!this.ownerDocument.isMounted||(e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}}class cr extends R2{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof cr?this.parentNode.level+(this.node.type==="item"?1:0):0}getMutableNode(){return this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node}updateNode(){var e,r,n;let i=this.nextVisibleSibling,o=this.getMutableNode();o.index=this.index,o.level=this.level,o.parentKey=this.parentNode instanceof cr?this.parentNode.node.key:null;var a;o.prevKey=(a=(e=this.previousVisibleSibling)===null||e===void 0?void 0:e.node.key)!==null&&a!==void 0?a:null;var l;o.nextKey=(l=i==null?void 0:i.node.key)!==null&&l!==void 0?l:null,o.hasChildNodes=!!this.firstChild;var s;o.firstChildKey=(s=(r=this.firstVisibleChild)===null||r===void 0?void 0:r.node.key)!==null&&s!==void 0?s:null;var c;if(o.lastChildKey=(c=(n=this.lastVisibleChild)===null||n===void 0?void 0:n.node.key)!==null&&c!==void 0?c:null,(o.colSpan!=null||o.colIndex!=null)&&i){var d,f;let p=((d=o.colIndex)!==null&&d!==void 0?d:o.index)+((f=o.colSpan)!==null&&f!==void 0?f:1);if(p!==i.node.colIndex){let g=i.getMutableNode();g.colIndex=p}}}setProps(e,r,n,i){let o=this.getMutableNode(),{value:a,textValue:l,id:s,...c}=e;if(c.ref=r,o.props=c,o.rendered=n,o.render=i,o.value=a,o.textValue=l||(typeof c.children=="string"?c.children:"")||e["aria-label"]||"",s!=null&&s!==o.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");o.key=s}c.colSpan!=null&&(o.colSpan=c.colSpan),this.hasSetProps=!0,this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?"none":""},set display(r){let n=r==="none";if(e.isHidden!==n){var i,o;(((i=e.parentNode)===null||i===void 0?void 0:i.firstVisibleChild)===e||((o=e.parentNode)===null||o===void 0?void 0:o.lastVisibleChild)===e)&&e.ownerDocument.markDirty(e.parentNode);let a=e.previousVisibleSibling,l=e.nextVisibleSibling;a&&e.ownerDocument.markDirty(a),l&&e.ownerDocument.markDirty(l),e.isHidden=n,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,r){super(r),this.nodeType=8,this.isMutated=!0,this._index=0,this.hasSetProps=!1,this.isHidden=!1,this.node=new ja(e,`react-aria-${++r.nodeId}`)}}class K5 extends R2{get isConnected(){return this.isMounted}createElement(e){return new cr(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden)return;let r=this.getMutableCollection();if(!r.getItem(e.node.key))for(let n of e)this.addNode(n);r.addNode(e.node)}removeNode(e){for(let n of e)this.removeNode(n);this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let o of this.dirtyNodes)o instanceof cr&&(!o.isConnected||o.isHidden)?this.removeNode(o):o.updateChildIndices();for(let o of this.dirtyNodes)o instanceof cr&&(o.isConnected&&!o.isHidden&&(o.updateNode(),this.addNode(o)),o.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,r,n,i;this.nextCollection.commit((n=(e=this.firstVisibleChild)===null||e===void 0?void 0:e.node.key)!==null&&n!==void 0?n:null,(i=(r=this.lastVisibleChild)===null||r===void 0?void 0:r.node.key)!==null&&i!==void 0?i:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}}function B2(t){let{children:e,items:r,idScope:n,addIdAndValue:i,dependencies:o=[]}=t,a=u.useMemo(()=>new WeakMap,o);return u.useMemo(()=>{if(r&&typeof e=="function"){let c=[];for(let d of r){let f=a.get(d);if(!f){f=e(d);var l,s;let p=(s=(l=f.props.id)!==null&&l!==void 0?l:d.key)!==null&&s!==void 0?s:d.id;if(p==null)throw new Error("Could not determine key for item");n&&(p=n+":"+p),f=u.cloneElement(f,i?{key:p,id:p,value:d}:{key:p}),a.set(d,f)}c.push(f)}return c}else if(typeof e!="function")return e},[e,r,a,n,i])}if(typeof HTMLTemplateElement<"u"){const t=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:t.call(this)}})}const Gn=u.createContext(!1);function V5(t){if(u.useContext(Gn))return u.createElement(u.Fragment,null,t.children);let r=u.createElement(Gn.Provider,{value:!0},t.children);return u.createElement("template",{"data-react-aria-hidden":!0},r)}function Va(t){let e=(r,n)=>u.useContext(Gn)?null:t(r,n);return e.displayName=t.displayName||t.name,u.forwardRef(e)}function H5(){return u.useContext(Gn)}function Ha(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function L2(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function j2(t){let e=u.useRef({isFocused:!1,observer:null});ne(()=>{const n=e.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=be(n=>{t==null||t(n)});return u.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){e.current.isFocused=!0;let i=n.target,o=a=>{if(e.current.isFocused=!1,i.disabled){let l=Ha(a);r(l)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&i.disabled){var a;(a=e.current.observer)===null||a===void 0||a.disconnect();let l=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[r])}let qn=!1;function Hl(t){for(;t&&!M2(t);)t=t.parentElement;let e=Te(t),r=e.document.activeElement;if(!r||r===t)return;qn=!0;let n=!1,i=d=>{(d.target===r||n)&&d.stopImmediatePropagation()},o=d=>{(d.target===r||n)&&(d.stopImmediatePropagation(),!t&&!n&&(n=!0,He(r),s()))},a=d=>{(d.target===t||n)&&d.stopImmediatePropagation()},l=d=>{(d.target===t||n)&&(d.stopImmediatePropagation(),n||(n=!0,He(r),s()))};e.addEventListener("blur",i,!0),e.addEventListener("focusout",o,!0),e.addEventListener("focusin",l,!0),e.addEventListener("focus",a,!0);let s=()=>{cancelAnimationFrame(c),e.removeEventListener("blur",i,!0),e.removeEventListener("focusout",o,!0),e.removeEventListener("focusin",l,!0),e.removeEventListener("focus",a,!0),qn=!1,n=!1},c=requestAnimationFrame(s);return s}let or="default",Go="",On=new WeakMap;function zl(t){if(vi()){if(or==="default"){const e=ae(t);Go=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}or="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";On.set(t,t.style[e]),t.style[e]="none"}}function eo(t){if(vi()){if(or!=="disabled")return;or="restoring",setTimeout(()=>{A2(()=>{if(or==="restoring"){const e=ae(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=Go||""),Go="",or="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&On.has(t)){let e=On.get(t),r="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[r]==="none"&&(t.style[r]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),On.delete(t)}}const za=u.createContext({register:()=>{}});za.displayName="PressResponderContext";function z5(t,e){return e.get?e.get.call(t):e.value}function K2(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function U5(t,e){var r=K2(t,e,"get");return z5(t,r)}function W5(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Z5(t,e,r){W5(t,e),e.set(t,r)}function G5(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}function Ul(t,e,r){var n=K2(t,e,"set");return G5(t,n,r),r}function q5(t){let e=u.useContext(za);if(e){let{register:r,...n}=e;t=ie(n,t),r()}return T2(e,t.ref),t}var gn=new WeakMap;class vn{continuePropagation(){Ul(this,gn,!1)}get shouldStopPropagation(){return U5(this,gn)}constructor(e,r,n,i){Z5(this,gn,{writable:!0,value:void 0}),Ul(this,gn,!0);var o;let a=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:n.currentTarget;const l=a==null?void 0:a.getBoundingClientRect();let s,c=0,d,f=null;n.clientX!=null&&n.clientY!=null&&(d=n.clientX,f=n.clientY),l&&(d!=null&&f!=null?(s=d-l.left,c=f-l.top):(s=l.width/2,c=l.height/2)),this.type=e,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=s,this.y=c}}const Wl=Symbol("linkClicked"),Zl="react-aria-pressable-style",Gl="data-react-aria-pressable";function wi(t){let{onPress:e,onPressChange:r,onPressStart:n,onPressEnd:i,onPressUp:o,onClick:a,isDisabled:l,isPressed:s,preventFocusOnPress:c,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:p,...g}=q5(t),[y,h]=u.useState(!1),v=u.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:m,removeAllGlobalListeners:C}=mi(),E=be((x,B)=>{let U=v.current;if(l||U.didFirePressStart)return!1;let k=!0;if(U.isTriggeringEvent=!0,n){let W=new vn("pressstart",B,x);n(W),k=W.shouldStopPropagation}return r&&r(!0),U.isTriggeringEvent=!1,U.didFirePressStart=!0,h(!0),k}),F=be((x,B,U=!0)=>{let k=v.current;if(!k.didFirePressStart)return!1;k.didFirePressStart=!1,k.isTriggeringEvent=!0;let W=!0;if(i){let _=new vn("pressend",B,x);i(_),W=_.shouldStopPropagation}if(r&&r(!1),h(!1),e&&U&&!l){let _=new vn("press",B,x);e(_),W&&(W=_.shouldStopPropagation)}return k.isTriggeringEvent=!1,W}),D=be((x,B)=>{let U=v.current;if(l)return!1;if(o){U.isTriggeringEvent=!0;let k=new vn("pressup",B,x);return o(k),U.isTriggeringEvent=!1,k.shouldStopPropagation}return!0}),w=be(x=>{let B=v.current;if(B.isPressed&&B.target){B.didFirePressStart&&B.pointerType!=null&&F(mt(B.target,x),B.pointerType,!1),B.isPressed=!1,B.isOverTarget=!1,B.activePointerId=null,B.pointerType=null,C(),f||eo(B.target);for(let U of B.disposables)U();B.disposables=[]}}),S=be(x=>{d&&w(x)}),O=be(x=>{a==null||a(x)}),K=be((x,B)=>{if(a){let U=new MouseEvent("click",x);L2(U,B),a(Ha(U))}}),V=u.useMemo(()=>{let x=v.current,B={onKeyDown(k){if(to(k.nativeEvent,k.currentTarget)&&ue(k.currentTarget,oe(k.nativeEvent))){var W;Xl(oe(k.nativeEvent),k.key)&&k.preventDefault();let _=!0;if(!x.isPressed&&!k.repeat){x.target=k.currentTarget,x.isPressed=!0,x.pointerType="keyboard",_=E(k,"keyboard");let I=k.currentTarget,z=L=>{to(L,I)&&!L.repeat&&ue(I,oe(L))&&x.target&&D(mt(x.target,L),"keyboard")};m(ae(k.currentTarget),"keyup",gt(z,U),!0)}_&&k.stopPropagation(),k.metaKey&&vt()&&((W=x.metaKeyEvents)===null||W===void 0||W.set(k.key,k.nativeEvent))}else k.key==="Meta"&&(x.metaKeyEvents=new Map)},onClick(k){if(!(k&&!ue(k.currentTarget,oe(k.nativeEvent)))&&k&&k.button===0&&!x.isTriggeringEvent&&!Pt.isOpening){let W=!0;if(l&&k.preventDefault(),!x.ignoreEmulatedMouseEvents&&!x.isPressed&&(x.pointerType==="virtual"||Wo(k.nativeEvent))){let _=E(k,"virtual"),I=D(k,"virtual"),z=F(k,"virtual");O(k),W=_&&I&&z}else if(x.isPressed&&x.pointerType!=="keyboard"){let _=x.pointerType||k.nativeEvent.pointerType||"virtual",I=D(mt(k.currentTarget,k),_),z=F(mt(k.currentTarget,k),_,!0);W=I&&z,x.isOverTarget=!1,O(k),w(k)}x.ignoreEmulatedMouseEvents=!1,W&&k.stopPropagation()}}},U=k=>{var W;if(x.isPressed&&x.target&&to(k,x.target)){var _;Xl(oe(k),k.key)&&k.preventDefault();let z=oe(k),L=ue(x.target,oe(k));F(mt(x.target,k),"keyboard",L),L&&K(k,x.target),C(),k.key!=="Enter"&&Ua(x.target)&&ue(x.target,z)&&!k[Wl]&&(k[Wl]=!0,Pt(x.target,k,!1)),x.isPressed=!1,(_=x.metaKeyEvents)===null||_===void 0||_.delete(k.key)}else if(k.key==="Meta"&&(!((W=x.metaKeyEvents)===null||W===void 0)&&W.size)){var I;let z=x.metaKeyEvents;x.metaKeyEvents=void 0;for(let L of z.values())(I=x.target)===null||I===void 0||I.dispatchEvent(new KeyboardEvent("keyup",L))}};if(typeof PointerEvent<"u"){B.onPointerDown=_=>{if(_.button!==0||!ue(_.currentTarget,oe(_.nativeEvent)))return;if($5(_.nativeEvent)){x.pointerType="virtual";return}x.pointerType=_.pointerType;let I=!0;if(!x.isPressed){x.isPressed=!0,x.isOverTarget=!0,x.activePointerId=_.pointerId,x.target=_.currentTarget,f||zl(x.target),I=E(_,x.pointerType);let z=oe(_.nativeEvent);"releasePointerCapture"in z&&z.releasePointerCapture(_.pointerId),m(ae(_.currentTarget),"pointerup",k,!1),m(ae(_.currentTarget),"pointercancel",W,!1)}I&&_.stopPropagation()},B.onMouseDown=_=>{if(ue(_.currentTarget,oe(_.nativeEvent))&&_.button===0){if(c){let I=Hl(_.target);I&&x.disposables.push(I)}_.stopPropagation()}},B.onPointerUp=_=>{!ue(_.currentTarget,oe(_.nativeEvent))||x.pointerType==="virtual"||_.button===0&&!x.isPressed&&D(_,x.pointerType||_.pointerType)},B.onPointerEnter=_=>{_.pointerId===x.activePointerId&&x.target&&!x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!0,E(mt(x.target,_),x.pointerType))},B.onPointerLeave=_=>{_.pointerId===x.activePointerId&&x.target&&x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!1,F(mt(x.target,_),x.pointerType,!1),S(_))};let k=_=>{if(_.pointerId===x.activePointerId&&x.isPressed&&_.button===0&&x.target){if(ue(x.target,oe(_))&&x.pointerType!=null){let I=!1,z=setTimeout(()=>{x.isPressed&&x.target instanceof HTMLElement&&(I?w(_):(He(x.target),x.target.click()))},80);m(_.currentTarget,"click",()=>I=!0,!0),x.disposables.push(()=>clearTimeout(z))}else w(_);x.isOverTarget=!1}},W=_=>{w(_)};B.onDragStart=_=>{ue(_.currentTarget,oe(_.nativeEvent))&&w(_)}}else if(process.env.NODE_ENV==="test"){B.onMouseDown=_=>{if(_.button!==0||!ue(_.currentTarget,oe(_.nativeEvent)))return;if(x.ignoreEmulatedMouseEvents){_.stopPropagation();return}if(x.isPressed=!0,x.isOverTarget=!0,x.target=_.currentTarget,x.pointerType=Wo(_.nativeEvent)?"virtual":"mouse",Nt.flushSync(()=>E(_,x.pointerType))&&_.stopPropagation(),c){let z=Hl(_.target);z&&x.disposables.push(z)}m(ae(_.currentTarget),"mouseup",k,!1)},B.onMouseEnter=_=>{if(!ue(_.currentTarget,oe(_.nativeEvent)))return;let I=!0;x.isPressed&&!x.ignoreEmulatedMouseEvents&&x.pointerType!=null&&(x.isOverTarget=!0,I=E(_,x.pointerType)),I&&_.stopPropagation()},B.onMouseLeave=_=>{if(!ue(_.currentTarget,oe(_.nativeEvent)))return;let I=!0;x.isPressed&&!x.ignoreEmulatedMouseEvents&&x.pointerType!=null&&(x.isOverTarget=!1,I=F(_,x.pointerType,!1),S(_)),I&&_.stopPropagation()},B.onMouseUp=_=>{ue(_.currentTarget,oe(_.nativeEvent))&&!x.ignoreEmulatedMouseEvents&&_.button===0&&!x.isPressed&&D(_,x.pointerType||"mouse")};let k=_=>{if(_.button===0){if(x.ignoreEmulatedMouseEvents){x.ignoreEmulatedMouseEvents=!1;return}x.target&&x.target.contains(_.target)&&x.pointerType!=null||w(_),x.isOverTarget=!1}};B.onTouchStart=_=>{if(!ue(_.currentTarget,oe(_.nativeEvent)))return;let I=Y5(_.nativeEvent);if(!I)return;x.activePointerId=I.identifier,x.ignoreEmulatedMouseEvents=!0,x.isOverTarget=!0,x.isPressed=!0,x.target=_.currentTarget,x.pointerType="touch",f||zl(x.target),E(at(x.target,_),x.pointerType)&&_.stopPropagation(),m(Te(_.currentTarget),"scroll",W,!0)},B.onTouchMove=_=>{if(!ue(_.currentTarget,oe(_.nativeEvent)))return;if(!x.isPressed){_.stopPropagation();return}let I=ql(_.nativeEvent,x.activePointerId),z=!0;I&&Yl(I,_.currentTarget)?!x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!0,z=E(at(x.target,_),x.pointerType)):x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!1,z=F(at(x.target,_),x.pointerType,!1),S(at(x.target,_))),z&&_.stopPropagation()},B.onTouchEnd=_=>{if(!ue(_.currentTarget,oe(_.nativeEvent)))return;if(!x.isPressed){_.stopPropagation();return}let I=ql(_.nativeEvent,x.activePointerId),z=!0;I&&Yl(I,_.currentTarget)&&x.pointerType!=null?(D(at(x.target,_),x.pointerType),z=F(at(x.target,_),x.pointerType),K(_.nativeEvent,x.target)):x.isOverTarget&&x.pointerType!=null&&(z=F(at(x.target,_),x.pointerType,!1)),z&&_.stopPropagation(),x.isPressed=!1,x.activePointerId=null,x.isOverTarget=!1,x.ignoreEmulatedMouseEvents=!0,x.target&&!f&&eo(x.target),C()},B.onTouchCancel=_=>{ue(_.currentTarget,oe(_.nativeEvent))&&(_.stopPropagation(),x.isPressed&&w(at(x.target,_)))};let W=_=>{x.isPressed&&ue(oe(_),x.target)&&w({currentTarget:x.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};B.onDragStart=_=>{ue(_.currentTarget,oe(_.nativeEvent))&&w(_)}}return B},[m,l,c,C,f,w,S,F,E,D,O,K]);return u.useEffect(()=>{if(!p||process.env.NODE_ENV==="test")return;const x=ae(p.current);if(!x||!x.head||x.getElementById(Zl))return;const B=x.createElement("style");B.id=Zl,B.textContent=`
23
23
  @layer {
24
24
  [${Gl}] {
25
25
  touch-action: pan-x pan-y pinch-zoom;
26
26
  }
27
27
  }
28
- `.trim(),D.head.prepend(T)},[p]),u.useEffect(()=>{let D=b.current;return()=>{var T;f||eo((T=D.target)!==null&&T!==void 0?T:void 0);for(let Z of D.disposables)Z();D.disposables=[]}},[f]),{isPressed:s||y,pressProps:ie(g,V,{[Gl]:!0})}}function Ua(t){return t.tagName==="A"&&t.hasAttribute("href")}function to(t,e){const{key:r,code:n}=t,i=e,o=i.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(i instanceof Te(i).HTMLInputElement&&!V2(i,r)||i instanceof Te(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&Ua(i))&&r!=="Enter")}function q5(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function ql(t,e){const r=t.changedTouches;for(let n=0;n<r.length;n++){const i=r[n];if(i.identifier===e)return i}return null}function at(t,e){let r=0,n=0;return e.targetTouches&&e.targetTouches.length===1&&(r=e.targetTouches[0].clientX,n=e.targetTouches[0].clientY),{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:r,clientY:n}}function yt(t,e){let r=e.clientX,n=e.clientY;return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:r,clientY:n}}function Y5(t){let e=0,r=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?r=t.height/2:t.radiusY!==void 0&&(r=t.radiusY),{top:t.clientY-r,right:t.clientX+e,bottom:t.clientY+r,left:t.clientX-e}}function X5(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function Yl(t,e){let r=e.getBoundingClientRect(),n=Y5(t);return X5(r,n)}function J5(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!Ua(t)}function Xl(t,e){return t instanceof HTMLInputElement?!V2(t,e):J5(t)}const Q5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function V2(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":Q5.has(t.type)}let Lt=null,qo=new Set,Wr=new Map,Tt=!1,Yo=!1;const e4={Tab:!0,Escape:!0};function xi(t,e){for(let r of qo)r(t,e)}function t4(t){return!(t.metaKey||!vt()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Yn(t){Tt=!0,t4(t)&&(Lt="keyboard",xi("keyboard",t))}function Me(t){Lt="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(Tt=!0,xi("pointer",t))}function H2(t){Wo(t)&&(Tt=!0,Lt="virtual")}function z2(t){t.target===window||t.target===document||qn||!t.isTrusted||(!Tt&&!Yo&&(Lt="virtual",xi("virtual",t)),Tt=!1,Yo=!1)}function U2(){qn||(Tt=!1,Yo=!0)}function Xo(t){if(typeof window>"u"||typeof document>"u"||Wr.get(Te(t)))return;const e=Te(t),r=ae(t);let n=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Tt=!0,n.apply(this,arguments)},r.addEventListener("keydown",Yn,!0),r.addEventListener("keyup",Yn,!0),r.addEventListener("click",H2,!0),e.addEventListener("focus",z2,!0),e.addEventListener("blur",U2,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",Me,!0),r.addEventListener("pointermove",Me,!0),r.addEventListener("pointerup",Me,!0)):process.env.NODE_ENV==="test"&&(r.addEventListener("mousedown",Me,!0),r.addEventListener("mousemove",Me,!0),r.addEventListener("mouseup",Me,!0)),e.addEventListener("beforeunload",()=>{W2(t)},{once:!0}),Wr.set(e,{focus:n})}const W2=(t,e)=>{const r=Te(t),n=ae(t);e&&n.removeEventListener("DOMContentLoaded",e),Wr.has(r)&&(r.HTMLElement.prototype.focus=Wr.get(r).focus,n.removeEventListener("keydown",Yn,!0),n.removeEventListener("keyup",Yn,!0),n.removeEventListener("click",H2,!0),r.removeEventListener("focus",z2,!0),r.removeEventListener("blur",U2,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",Me,!0),n.removeEventListener("pointermove",Me,!0),n.removeEventListener("pointerup",Me,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",Me,!0),n.removeEventListener("mousemove",Me,!0),n.removeEventListener("mouseup",Me,!0)),Wr.delete(r))};function r4(t){const e=ae(t);let r;return e.readyState!=="loading"?Xo(t):(r=()=>{Xo(t)},e.addEventListener("DOMContentLoaded",r)),()=>W2(t,r)}typeof document<"u"&&r4();function mr(){return Lt!=="pointer"}function Xn(){return Lt}function Z2(t){Lt=t,xi(t,null)}const n4=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function i4(t,e,r){let n=ae(r==null?void 0:r.target);const i=typeof window<"u"?Te(r==null?void 0:r.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?Te(r==null?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?Te(r==null?void 0:r.target).HTMLElement:HTMLElement,l=typeof window<"u"?Te(r==null?void 0:r.target).KeyboardEvent:KeyboardEvent;return t=t||n.activeElement instanceof i&&!n4.has(n.activeElement.type)||n.activeElement instanceof o||n.activeElement instanceof a&&n.activeElement.isContentEditable,!(t&&e==="keyboard"&&r instanceof l&&!e4[r.key])}function o4(t,e,r){Xo(),u.useEffect(()=>{let n=(i,o)=>{i4(!!(r!=null&&r.isTextInput),i,o)&&t(mr())};return qo.add(n),()=>{qo.delete(n)}},e)}function bt(t){const e=ae(t),r=xe(e);if(Xn()==="virtual"){let n=r;A2(()=>{xe(e)===n&&t.isConnected&&He(t)})}else He(t)}function Wa(t){let{isDisabled:e,onFocus:r,onBlur:n,onFocusChange:i}=t;const o=u.useCallback(s=>{if(s.target===s.currentTarget)return n&&n(s),i&&i(!1),!0},[n,i]),a=j2(o),l=u.useCallback(s=>{const c=ae(s.target),d=c?xe(c):xe();s.target===s.currentTarget&&d===oe(s.nativeEvent)&&(r&&r(s),i&&i(!0),a(s))},[i,r,a]);return{focusProps:{onFocus:!e&&(r||i||n)?l:void 0,onBlur:!e&&(n||i)?o:void 0}}}function Jl(t){if(!t)return;let e=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){e&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):e=!0},continuePropagation(){e=!1},isPropagationStopped(){return e}};t(n),e&&r.stopPropagation()}}function G2(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:Jl(t.onKeyDown),onKeyUp:Jl(t.onKeyUp)}}}let Jo=u.createContext(null);function a4(t){let e=u.useContext(Jo)||{};T2(e,t);let{ref:r,...n}=e;return n}function q2(t,e){let{focusProps:r}=Wa(t),{keyboardProps:n}=G2(t),i=ie(r,n),o=a4(e),a=t.isDisabled?{}:o,l=u.useRef(t.autoFocus);u.useEffect(()=>{l.current&&e.current&&bt(e.current),l.current=!1},[e]);let s=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(s=void 0),{focusableProps:ie({...i,tabIndex:s},a)}}function l4({children:t}){let e=u.useMemo(()=>({register:()=>{}}),[]);return u.createElement(za.Provider,{value:e},t)}function Di(t){let{isDisabled:e,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:i}=t,o=u.useRef({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:l}=mi(),s=u.useCallback(f=>{f.currentTarget.contains(f.target)&&o.current.isFocusWithin&&!f.currentTarget.contains(f.relatedTarget)&&(o.current.isFocusWithin=!1,l(),r&&r(f),i&&i(!1))},[r,i,o,l]),c=j2(s),d=u.useCallback(f=>{if(!f.currentTarget.contains(f.target))return;const p=ae(f.target),g=xe(p);if(!o.current.isFocusWithin&&g===oe(f.nativeEvent)){n&&n(f),i&&i(!0),o.current.isFocusWithin=!0,c(f);let y=f.currentTarget;a(p,"focus",h=>{if(o.current.isFocusWithin&&!ue(y,h.target)){let b=new p.defaultView.FocusEvent("blur",{relatedTarget:h.target});L2(b,y);let m=Ha(b);s(m)}},{capture:!0})}},[n,i,c,a,s]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:s}}}let Jn=!1,bn=0;function Qo(){Jn=!0,setTimeout(()=>{Jn=!1},50)}function Ql(t){t.pointerType==="touch"&&Qo()}function s4(){if(!(typeof document>"u"))return bn===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",Ql):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",Qo)),bn++,()=>{bn--,!(bn>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Ql):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",Qo))}}function xr(t){let{onHoverStart:e,onHoverChange:r,onHoverEnd:n,isDisabled:i}=t,[o,a]=u.useState(!1),l=u.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;u.useEffect(s4,[]);let{addGlobalListener:s,removeAllGlobalListeners:c}=mi(),{hoverProps:d,triggerHoverEnd:f}=u.useMemo(()=>{let p=(h,b)=>{if(l.pointerType=b,i||b==="touch"||l.isHovered||!h.currentTarget.contains(h.target))return;l.isHovered=!0;let m=h.currentTarget;l.target=m,s(ae(h.target),"pointerover",C=>{l.isHovered&&l.target&&!ue(l.target,C.target)&&g(C,C.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:m,pointerType:b}),r&&r(!0),a(!0)},g=(h,b)=>{let m=l.target;l.pointerType="",l.target=null,!(b==="touch"||!l.isHovered||!m)&&(l.isHovered=!1,c(),n&&n({type:"hoverend",target:m,pointerType:b}),r&&r(!1),a(!1))},y={};return typeof PointerEvent<"u"?(y.onPointerEnter=h=>{Jn&&h.pointerType==="mouse"||p(h,h.pointerType)},y.onPointerLeave=h=>{!i&&h.currentTarget.contains(h.target)&&g(h,h.pointerType)}):process.env.NODE_ENV==="test"&&(y.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},y.onMouseEnter=h=>{!l.ignoreEmulatedMouseEvents&&!Jn&&p(h,"mouse"),l.ignoreEmulatedMouseEvents=!1},y.onMouseLeave=h=>{!i&&h.currentTarget.contains(h.target)&&g(h,"mouse")}),{hoverProps:y,triggerHoverEnd:g}},[e,r,n,i,l,s,c]);return u.useEffect(()=>{i&&f({currentTarget:l.target},l.pointerType)},[i]),{hoverProps:d,isHovered:o}}function c4(t){let{ref:e,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:i}=t,o=u.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=ve(s=>{r&&mn(s,e)&&(i&&i(s),o.current.isPointerDown=!0)}),l=ve(s=>{r&&r(s)});u.useEffect(()=>{let s=o.current;if(n)return;const c=e.current,d=ae(c);if(typeof PointerEvent<"u"){let f=p=>{s.isPointerDown&&mn(p,e)&&l(p),s.isPointerDown=!1};return d.addEventListener("pointerdown",a,!0),d.addEventListener("click",f,!0),()=>{d.removeEventListener("pointerdown",a,!0),d.removeEventListener("click",f,!0)}}else if(process.env.NODE_ENV==="test"){let f=g=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&mn(g,e)&&l(g),s.isPointerDown=!1},p=g=>{s.ignoreEmulatedMouseEvents=!0,s.isPointerDown&&mn(g,e)&&l(g),s.isPointerDown=!1};return d.addEventListener("mousedown",a,!0),d.addEventListener("mouseup",f,!0),d.addEventListener("touchstart",a,!0),d.addEventListener("touchend",p,!0),()=>{d.removeEventListener("mousedown",a,!0),d.removeEventListener("mouseup",f,!0),d.removeEventListener("touchstart",a,!0),d.removeEventListener("touchend",p,!0)}}},[e,n,a,l])}function mn(t,e){if(t.button>0)return!1;if(t.target){const r=t.target.ownerDocument;if(!r||!r.documentElement.contains(t.target)||t.target.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}const u4=500;function Y2(t){let{isDisabled:e,onLongPressStart:r,onLongPressEnd:n,onLongPress:i,threshold:o=u4,accessibilityDescription:a}=t;const l=u.useRef(void 0);let{addGlobalListener:s,removeGlobalListener:c}=mi(),{pressProps:d}=wi({isDisabled:e,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(r&&r({...p,type:"longpressstart"}),l.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),ae(p.target).activeElement!==p.target&&He(p.target),i&&i({...p,type:"longpress"}),l.current=void 0},o),p.pointerType==="touch")){let g=y=>{y.preventDefault()};s(p.target,"contextmenu",g,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{c(p.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(p){l.current&&clearTimeout(l.current),n&&(p.pointerType==="mouse"||p.pointerType==="touch")&&n({...p,type:"longpressend"})}}),f=S5(i&&!e?a:void 0);return{longPressProps:ie(d,f)}}var yn={exports:{}},ro={};/**
28
+ `.trim(),x.head.prepend(B)},[p]),u.useEffect(()=>{let x=v.current;return()=>{var B;f||eo((B=x.target)!==null&&B!==void 0?B:void 0);for(let U of x.disposables)U();x.disposables=[]}},[f]),{isPressed:s||y,pressProps:ie(g,V,{[Gl]:!0})}}function Ua(t){return t.tagName==="A"&&t.hasAttribute("href")}function to(t,e){const{key:r,code:n}=t,i=e,o=i.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(i instanceof Te(i).HTMLInputElement&&!V2(i,r)||i instanceof Te(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&Ua(i))&&r!=="Enter")}function Y5(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function ql(t,e){const r=t.changedTouches;for(let n=0;n<r.length;n++){const i=r[n];if(i.identifier===e)return i}return null}function at(t,e){let r=0,n=0;return e.targetTouches&&e.targetTouches.length===1&&(r=e.targetTouches[0].clientX,n=e.targetTouches[0].clientY),{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:r,clientY:n}}function mt(t,e){let r=e.clientX,n=e.clientY;return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:r,clientY:n}}function X5(t){let e=0,r=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?r=t.height/2:t.radiusY!==void 0&&(r=t.radiusY),{top:t.clientY-r,right:t.clientX+e,bottom:t.clientY+r,left:t.clientX-e}}function J5(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function Yl(t,e){let r=e.getBoundingClientRect(),n=X5(t);return J5(r,n)}function Q5(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!Ua(t)}function Xl(t,e){return t instanceof HTMLInputElement?!V2(t,e):Q5(t)}const e4=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function V2(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":e4.has(t.type)}let Rt=null,qo=new Set,Ur=new Map,At=!1,Yo=!1;const t4={Tab:!0,Escape:!0};function xi(t,e){for(let r of qo)r(t,e)}function r4(t){return!(t.metaKey||!vt()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Yn(t){At=!0,r4(t)&&(Rt="keyboard",xi("keyboard",t))}function Me(t){Rt="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(At=!0,xi("pointer",t))}function H2(t){Wo(t)&&(At=!0,Rt="virtual")}function z2(t){t.target===window||t.target===document||qn||!t.isTrusted||(!At&&!Yo&&(Rt="virtual",xi("virtual",t)),At=!1,Yo=!1)}function U2(){qn||(At=!1,Yo=!0)}function Xo(t){if(typeof window>"u"||typeof document>"u"||Ur.get(Te(t)))return;const e=Te(t),r=ae(t);let n=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){At=!0,n.apply(this,arguments)},r.addEventListener("keydown",Yn,!0),r.addEventListener("keyup",Yn,!0),r.addEventListener("click",H2,!0),e.addEventListener("focus",z2,!0),e.addEventListener("blur",U2,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",Me,!0),r.addEventListener("pointermove",Me,!0),r.addEventListener("pointerup",Me,!0)):process.env.NODE_ENV==="test"&&(r.addEventListener("mousedown",Me,!0),r.addEventListener("mousemove",Me,!0),r.addEventListener("mouseup",Me,!0)),e.addEventListener("beforeunload",()=>{W2(t)},{once:!0}),Ur.set(e,{focus:n})}const W2=(t,e)=>{const r=Te(t),n=ae(t);e&&n.removeEventListener("DOMContentLoaded",e),Ur.has(r)&&(r.HTMLElement.prototype.focus=Ur.get(r).focus,n.removeEventListener("keydown",Yn,!0),n.removeEventListener("keyup",Yn,!0),n.removeEventListener("click",H2,!0),r.removeEventListener("focus",z2,!0),r.removeEventListener("blur",U2,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",Me,!0),n.removeEventListener("pointermove",Me,!0),n.removeEventListener("pointerup",Me,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",Me,!0),n.removeEventListener("mousemove",Me,!0),n.removeEventListener("mouseup",Me,!0)),Ur.delete(r))};function n4(t){const e=ae(t);let r;return e.readyState!=="loading"?Xo(t):(r=()=>{Xo(t)},e.addEventListener("DOMContentLoaded",r)),()=>W2(t,r)}typeof document<"u"&&n4();function vr(){return Rt!=="pointer"}function Xn(){return Rt}function Z2(t){Rt=t,xi(t,null)}const i4=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function o4(t,e,r){let n=ae(r==null?void 0:r.target);const i=typeof window<"u"?Te(r==null?void 0:r.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?Te(r==null?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?Te(r==null?void 0:r.target).HTMLElement:HTMLElement,l=typeof window<"u"?Te(r==null?void 0:r.target).KeyboardEvent:KeyboardEvent;return t=t||n.activeElement instanceof i&&!i4.has(n.activeElement.type)||n.activeElement instanceof o||n.activeElement instanceof a&&n.activeElement.isContentEditable,!(t&&e==="keyboard"&&r instanceof l&&!t4[r.key])}function a4(t,e,r){Xo(),u.useEffect(()=>{let n=(i,o)=>{o4(!!(r!=null&&r.isTextInput),i,o)&&t(vr())};return qo.add(n),()=>{qo.delete(n)}},e)}function bt(t){const e=ae(t),r=xe(e);if(Xn()==="virtual"){let n=r;A2(()=>{xe(e)===n&&t.isConnected&&He(t)})}else He(t)}function Wa(t){let{isDisabled:e,onFocus:r,onBlur:n,onFocusChange:i}=t;const o=u.useCallback(s=>{if(s.target===s.currentTarget)return n&&n(s),i&&i(!1),!0},[n,i]),a=j2(o),l=u.useCallback(s=>{const c=ae(s.target),d=c?xe(c):xe();s.target===s.currentTarget&&d===oe(s.nativeEvent)&&(r&&r(s),i&&i(!0),a(s))},[i,r,a]);return{focusProps:{onFocus:!e&&(r||i||n)?l:void 0,onBlur:!e&&(n||i)?o:void 0}}}function Jl(t){if(!t)return;let e=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){e&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):e=!0},continuePropagation(){e=!1},isPropagationStopped(){return e}};t(n),e&&r.stopPropagation()}}function G2(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:Jl(t.onKeyDown),onKeyUp:Jl(t.onKeyUp)}}}let Jo=u.createContext(null);function l4(t){let e=u.useContext(Jo)||{};T2(e,t);let{ref:r,...n}=e;return n}function q2(t,e){let{focusProps:r}=Wa(t),{keyboardProps:n}=G2(t),i=ie(r,n),o=l4(e),a=t.isDisabled?{}:o,l=u.useRef(t.autoFocus);u.useEffect(()=>{l.current&&e.current&&bt(e.current),l.current=!1},[e]);let s=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(s=void 0),{focusableProps:ie({...i,tabIndex:s},a)}}function s4({children:t}){let e=u.useMemo(()=>({register:()=>{}}),[]);return u.createElement(za.Provider,{value:e},t)}function Di(t){let{isDisabled:e,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:i}=t,o=u.useRef({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:l}=mi(),s=u.useCallback(f=>{f.currentTarget.contains(f.target)&&o.current.isFocusWithin&&!f.currentTarget.contains(f.relatedTarget)&&(o.current.isFocusWithin=!1,l(),r&&r(f),i&&i(!1))},[r,i,o,l]),c=j2(s),d=u.useCallback(f=>{if(!f.currentTarget.contains(f.target))return;const p=ae(f.target),g=xe(p);if(!o.current.isFocusWithin&&g===oe(f.nativeEvent)){n&&n(f),i&&i(!0),o.current.isFocusWithin=!0,c(f);let y=f.currentTarget;a(p,"focus",h=>{if(o.current.isFocusWithin&&!ue(y,h.target)){let v=new p.defaultView.FocusEvent("blur",{relatedTarget:h.target});L2(v,y);let m=Ha(v);s(m)}},{capture:!0})}},[n,i,c,a,s]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:s}}}let Jn=!1,bn=0;function Qo(){Jn=!0,setTimeout(()=>{Jn=!1},50)}function Ql(t){t.pointerType==="touch"&&Qo()}function c4(){if(!(typeof document>"u"))return bn===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",Ql):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",Qo)),bn++,()=>{bn--,!(bn>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Ql):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",Qo))}}function wr(t){let{onHoverStart:e,onHoverChange:r,onHoverEnd:n,isDisabled:i}=t,[o,a]=u.useState(!1),l=u.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;u.useEffect(c4,[]);let{addGlobalListener:s,removeAllGlobalListeners:c}=mi(),{hoverProps:d,triggerHoverEnd:f}=u.useMemo(()=>{let p=(h,v)=>{if(l.pointerType=v,i||v==="touch"||l.isHovered||!h.currentTarget.contains(h.target))return;l.isHovered=!0;let m=h.currentTarget;l.target=m,s(ae(h.target),"pointerover",C=>{l.isHovered&&l.target&&!ue(l.target,C.target)&&g(C,C.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:m,pointerType:v}),r&&r(!0),a(!0)},g=(h,v)=>{let m=l.target;l.pointerType="",l.target=null,!(v==="touch"||!l.isHovered||!m)&&(l.isHovered=!1,c(),n&&n({type:"hoverend",target:m,pointerType:v}),r&&r(!1),a(!1))},y={};return typeof PointerEvent<"u"?(y.onPointerEnter=h=>{Jn&&h.pointerType==="mouse"||p(h,h.pointerType)},y.onPointerLeave=h=>{!i&&h.currentTarget.contains(h.target)&&g(h,h.pointerType)}):process.env.NODE_ENV==="test"&&(y.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},y.onMouseEnter=h=>{!l.ignoreEmulatedMouseEvents&&!Jn&&p(h,"mouse"),l.ignoreEmulatedMouseEvents=!1},y.onMouseLeave=h=>{!i&&h.currentTarget.contains(h.target)&&g(h,"mouse")}),{hoverProps:y,triggerHoverEnd:g}},[e,r,n,i,l,s,c]);return u.useEffect(()=>{i&&f({currentTarget:l.target},l.pointerType)},[i]),{hoverProps:d,isHovered:o}}function u4(t){let{ref:e,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:i}=t,o=u.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=be(s=>{r&&mn(s,e)&&(i&&i(s),o.current.isPointerDown=!0)}),l=be(s=>{r&&r(s)});u.useEffect(()=>{let s=o.current;if(n)return;const c=e.current,d=ae(c);if(typeof PointerEvent<"u"){let f=p=>{s.isPointerDown&&mn(p,e)&&l(p),s.isPointerDown=!1};return d.addEventListener("pointerdown",a,!0),d.addEventListener("click",f,!0),()=>{d.removeEventListener("pointerdown",a,!0),d.removeEventListener("click",f,!0)}}else if(process.env.NODE_ENV==="test"){let f=g=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&mn(g,e)&&l(g),s.isPointerDown=!1},p=g=>{s.ignoreEmulatedMouseEvents=!0,s.isPointerDown&&mn(g,e)&&l(g),s.isPointerDown=!1};return d.addEventListener("mousedown",a,!0),d.addEventListener("mouseup",f,!0),d.addEventListener("touchstart",a,!0),d.addEventListener("touchend",p,!0),()=>{d.removeEventListener("mousedown",a,!0),d.removeEventListener("mouseup",f,!0),d.removeEventListener("touchstart",a,!0),d.removeEventListener("touchend",p,!0)}}},[e,n,a,l])}function mn(t,e){if(t.button>0)return!1;if(t.target){const r=t.target.ownerDocument;if(!r||!r.documentElement.contains(t.target)||t.target.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}const d4=500;function Y2(t){let{isDisabled:e,onLongPressStart:r,onLongPressEnd:n,onLongPress:i,threshold:o=d4,accessibilityDescription:a}=t;const l=u.useRef(void 0);let{addGlobalListener:s,removeGlobalListener:c}=mi(),{pressProps:d}=wi({isDisabled:e,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(r&&r({...p,type:"longpressstart"}),l.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),ae(p.target).activeElement!==p.target&&He(p.target),i&&i({...p,type:"longpress"}),l.current=void 0},o),p.pointerType==="touch")){let g=y=>{y.preventDefault()};s(p.target,"contextmenu",g,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{c(p.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(p){l.current&&clearTimeout(l.current),n&&(p.pointerType==="mouse"||p.pointerType==="touch")&&n({...p,type:"longpressend"})}}),f=F5(i&&!e?a:void 0);return{longPressProps:ie(d,f)}}var yn={exports:{}},ro={};/**
29
29
  * @license React
30
30
  * use-sync-external-store-shim.production.js
31
31
  *
@@ -33,7 +33,7 @@ React keys must be passed directly to JSX without using spread:
33
33
  *
34
34
  * This source code is licensed under the MIT license found in the
35
35
  * LICENSE file in the root directory of this source tree.
36
- */var es;function d4(){if(es)return ro;es=1;var t=u;function e(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var r=typeof Object.is=="function"?Object.is:e,n=t.useState,i=t.useEffect,o=t.useLayoutEffect,a=t.useDebugValue;function l(f,p){var g=p(),y=n({inst:{value:g,getSnapshot:p}}),h=y[0].inst,b=y[1];return o(function(){h.value=g,h.getSnapshot=p,s(h)&&b({inst:h})},[f,g,p]),i(function(){return s(h)&&b({inst:h}),f(function(){s(h)&&b({inst:h})})},[f]),a(g),g}function s(f){var p=f.getSnapshot;f=f.value;try{var g=p();return!r(f,g)}catch{return!0}}function c(f,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:l;return ro.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,ro}var no={};/**
36
+ */var es;function f4(){if(es)return ro;es=1;var t=u;function e(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var r=typeof Object.is=="function"?Object.is:e,n=t.useState,i=t.useEffect,o=t.useLayoutEffect,a=t.useDebugValue;function l(f,p){var g=p(),y=n({inst:{value:g,getSnapshot:p}}),h=y[0].inst,v=y[1];return o(function(){h.value=g,h.getSnapshot=p,s(h)&&v({inst:h})},[f,g,p]),i(function(){return s(h)&&v({inst:h}),f(function(){s(h)&&v({inst:h})})},[f]),a(g),g}function s(f){var p=f.getSnapshot;f=f.value;try{var g=p();return!r(f,g)}catch{return!0}}function c(f,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:l;return ro.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,ro}var no={};/**
37
37
  * @license React
38
38
  * use-sync-external-store-shim.development.js
39
39
  *
@@ -41,12 +41,12 @@ React keys must be passed directly to JSX without using spread:
41
41
  *
42
42
  * This source code is licensed under the MIT license found in the
43
43
  * LICENSE file in the root directory of this source tree.
44
- */var ts;function f4(){return ts||(ts=1,process.env.NODE_ENV!=="production"&&function(){function t(g,y){return g===y&&(g!==0||1/g===1/y)||g!==g&&y!==y}function e(g,y){d||i.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var h=y();if(!f){var b=y();o(h,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}b=a({inst:{value:h,getSnapshot:y}});var m=b[0].inst,C=b[1];return s(function(){m.value=h,m.getSnapshot=y,r(m)&&C({inst:m})},[g,h,y]),l(function(){return r(m)&&C({inst:m}),g(function(){r(m)&&C({inst:m})})},[g]),c(h),h}function r(g){var y=g.getSnapshot;g=g.value;try{var h=y();return!o(g,h)}catch{return!0}}function n(g,y){return y()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=u,o=typeof Object.is=="function"?Object.is:t,a=i.useState,l=i.useEffect,s=i.useLayoutEffect,c=i.useDebugValue,d=!1,f=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:e;no.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),no}var rs;function h4(){return rs||(rs=1,process.env.NODE_ENV==="production"?yn.exports=d4():yn.exports=f4()),yn.exports}var Za=h4();const X2=u.createContext(!1),Yr=u.createContext(null);function Si(t){if(u.useContext(Yr))return t.content;let{collection:r,document:n}=b4(t.createCollection);return u.createElement(u.Fragment,null,u.createElement(K5,null,u.createElement(Yr.Provider,{value:n},t.content)),u.createElement(p4,{render:t.children,collection:r}))}function p4({collection:t,render:e}){return e(t)}function g4(t,e,r){let n=sn(),i=u.useRef(n);i.current=n;let o=u.useCallback(()=>i.current?r():e(),[e,r]);return Za.useSyncExternalStore(t,o)}const v4=typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore:g4;function b4(t){let[e]=u.useState(()=>new j5((t==null?void 0:t())||new Ka)),r=u.useCallback(a=>e.subscribe(a),[e]),n=u.useCallback(()=>{let a=e.getCollection();return e.isSSR&&e.resetAfterSSR(),a},[e]),i=u.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]),o=v4(r,n,i);return ne(()=>(e.isMounted=!0,()=>{e.isMounted=!1}),[e]),{collection:o,document:e}}const ea=u.createContext(null);function m4(t,e,r,n,i,o){let a=u.useCallback(s=>{s==null||s.setProps(e,r,n,o)},[e,r,n,o]),l=u.useContext(ea);if(l){let s=l.ownerDocument.nodesByProps.get(e);return s||(s=l.ownerDocument.createElement(t),s.setProps(e,r,n,o),l.appendChild(s),l.ownerDocument.updateCollection(),l.ownerDocument.nodesByProps.set(e,s)),i?u.createElement(ea.Provider,{value:s},i):null}return u.createElement(t,{ref:a},i)}function Fi(t,e){let r=({node:i})=>e(i.props,i.props.ref,i),n=u.forwardRef((i,o)=>{let a=u.useContext(Jo);if(!u.useContext(X2)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,o)}return m4(t,i,o,"children"in i?i.children:null,null,s=>u.createElement(Jo.Provider,{value:a},u.createElement(r,{node:s})))});return n.displayName=e.name,n}function y4(t){return B2({...t,addIdAndValue:!0})}const ns=u.createContext(null);function Ga(t){let e=u.useContext(ns),r=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies),n=t.idScope||(e==null?void 0:e.idScope),i=y4({...t,idScope:n,dependencies:r});return u.useContext(Yr)&&(i=u.createElement(C4,null,i)),e=u.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),u.createElement(ns.Provider,{value:e},i)}function C4({children:t}){let e=u.useContext(Yr),r=u.useMemo(()=>u.createElement(Yr.Provider,{value:null},u.createElement(X2.Provider,{value:!0},t)),[t]);return sn()?u.createElement(ea.Provider,{value:e},r):Bt.createPortal(r,e)}const E4=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),w4=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function x4(t){if(Intl.Locale){let r=new Intl.Locale(t).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return E4.has(r.script)}let e=t.split("-")[0];return w4.has(e)}const D4=Symbol.for("react-aria.i18n.locale");function J2(){let t=typeof window<"u"&&window[D4]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:x4(t)?"rtl":"ltr"}}let ta=J2(),jr=new Set;function is(){ta=J2();for(let t of jr)t(ta)}function S4(){let t=sn(),[e,r]=u.useState(ta);return u.useEffect(()=>(jr.size===0&&window.addEventListener("languagechange",is),jr.add(r),()=>{jr.delete(r),jr.size===0&&window.removeEventListener("languagechange",is)}),[]),t?{locale:"en-US",direction:"ltr"}:e}const F4=u.createContext(null);function jt(){let t=S4();return u.useContext(F4)||t}var Ge=function(){return Ge=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Ge.apply(this,arguments)};function Q2(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}function $4(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))}const _4=Symbol.for("react-aria.i18n.locale"),P4=Symbol.for("react-aria.i18n.strings");let Wt;class $i{getStringForLocale(e,r){let i=this.getStringsForLocale(r)[e];if(!i)throw new Error(`Could not find intl message ${e} in ${r} locale`);return i}getStringsForLocale(e){let r=this.strings[e];return r||(r=A4(e,this.strings,this.defaultLocale),this.strings[e]=r),r}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let r=window[_4];if(Wt===void 0){let i=window[P4];if(!i)return null;Wt={};for(let o in i)Wt[o]=new $i({[r]:i[o]},r)}let n=Wt==null?void 0:Wt[e];if(!n)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(e,r="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,n])=>n)),this.defaultLocale=r}}function A4(t,e,r="en-US"){if(e[t])return e[t];let n=T4(t);if(e[n])return e[n];for(let i in e)if(i.startsWith(n+"-"))return e[i];return e[r]}function T4(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const os=new Map,as=new Map;class k4{format(e,r){let n=this.strings.getStringForLocale(e,this.locale);return typeof n=="function"?n(r,this):n}plural(e,r,n="cardinal"){let i=r["="+e];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+n,a=os.get(o);a||(a=new Intl.PluralRules(this.locale,{type:n}),os.set(o,a));let l=a.select(e);return i=r[l]||r.other,typeof i=="function"?i():i}number(e){let r=as.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),as.set(this.locale,r)),r.format(e)}select(e,r){let n=e[r]||e.other;return typeof n=="function"?n():n}constructor(e,r){this.locale=e,this.strings=r}}const ls=new WeakMap;function I4(t){let e=ls.get(t);return e||(e=new $i(t),ls.set(t,e)),e}function O4(t,e){return e&&$i.getGlobalDictionaryForPackage(e)||I4(t)}function ec(t,e){let{locale:r}=jt(),n=O4(t,e);return u.useMemo(()=>new k4(r,n),[r,n])}let io=new Map;function qa(t){let{locale:e}=jt(),r=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(io.has(r))return io.get(r);let n=new Intl.Collator(e,t);return io.set(r,n),n}function M4(t,e){let{elementType:r="button",isDisabled:n,onPress:i,onPressStart:o,onPressEnd:a,onPressUp:l,onPressChange:s,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:f,href:p,target:g,rel:y,type:h="button"}=t,b;r==="button"?b={type:h,disabled:n,form:t.form,formAction:t.formAction,formEncType:t.formEncType,formMethod:t.formMethod,formNoValidate:t.formNoValidate,formTarget:t.formTarget,name:t.name,value:t.value}:b={role:"button",href:r==="a"&&!n?p:void 0,target:r==="a"?g:void 0,type:r==="input"?h:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?y:void 0};let{pressProps:m,isPressed:C}=wi({onPressStart:o,onPressEnd:a,onPressChange:s,onPress:i,onPressUp:l,onClick:f,isDisabled:n,preventFocusOnPress:c,ref:e}),{focusableProps:E}=q2(t,e);d&&(E.tabIndex=n?-1:E.tabIndex);let $=ie(E,m,he(t,{labelable:!0}));return{isPressed:C,buttonProps:ie(b,$,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],"aria-current":t["aria-current"],"aria-disabled":t["aria-disabled"]})}}const ss=u.createContext(null),ra="react-aria-focus-scope-restore";let ce=null;function Ya(t){let{children:e,contain:r,restoreFocus:n,autoFocus:i}=t,o=u.useRef(null),a=u.useRef(null),l=u.useRef([]),{parentNode:s}=u.useContext(ss)||{},c=u.useMemo(()=>new ia({scopeRef:l}),[l]);ne(()=>{let p=s||ge.root;if(ge.getTreeNode(p.scopeRef)&&ce&&!Qn(ce,p.scopeRef)){let g=ge.getTreeNode(ce);g&&(p=g)}p.addChild(c),ge.addNode(c)},[c,s]),ne(()=>{let p=ge.getTreeNode(l);p&&(p.contain=!!r)},[r]),ne(()=>{var p;let g=(p=o.current)===null||p===void 0?void 0:p.nextSibling,y=[],h=b=>b.stopPropagation();for(;g&&g!==a.current;)y.push(g),g.addEventListener(ra,h),g=g.nextSibling;return l.current=y,()=>{for(let b of y)b.removeEventListener(ra,h)}},[e]),K4(l,n,r),B4(l,r),V4(l,n,r),j4(l,i),u.useEffect(()=>{const p=xe(ae(l.current?l.current[0]:void 0));let g=null;if(Re(p,l.current)){for(let y of ge.traverse())y.scopeRef&&Re(p,y.scopeRef.current)&&(g=y);g===ge.getTreeNode(l)&&(ce=g.scopeRef)}},[l]),ne(()=>()=>{var p,g,y;let h=(y=(g=ge.getTreeNode(l))===null||g===void 0||(p=g.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&y!==void 0?y:null;(l===ce||Qn(l,ce))&&(!h||ge.getTreeNode(h))&&(ce=h),ge.removeTreeNode(l)},[l]);let d=u.useMemo(()=>N4(l),[]),f=u.useMemo(()=>({focusManager:d,parentNode:c}),[c,d]);return u.createElement(ss.Provider,{value:f},u.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),e,u.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function N4(t){return{focusNext(e={}){let r=t.current,{from:n,tabbable:i,wrap:o,accept:a}=e;var l;let s=n||xe(ae((l=r[0])!==null&&l!==void 0?l:void 0)),c=r[0].previousElementSibling,d=Dt(r),f=qe(d,{tabbable:i,accept:a},r);f.currentNode=Re(s,r)?s:c;let p=f.nextNode();return!p&&o&&(f.currentNode=c,p=f.nextNode()),p&&et(p,!0),p},focusPrevious(e={}){let r=t.current,{from:n,tabbable:i,wrap:o,accept:a}=e;var l;let s=n||xe(ae((l=r[0])!==null&&l!==void 0?l:void 0)),c=r[r.length-1].nextElementSibling,d=Dt(r),f=qe(d,{tabbable:i,accept:a},r);f.currentNode=Re(s,r)?s:c;let p=f.previousNode();return!p&&o&&(f.currentNode=c,p=f.previousNode()),p&&et(p,!0),p},focusFirst(e={}){let r=t.current,{tabbable:n,accept:i}=e,o=Dt(r),a=qe(o,{tabbable:n,accept:i},r);a.currentNode=r[0].previousElementSibling;let l=a.nextNode();return l&&et(l,!0),l},focusLast(e={}){let r=t.current,{tabbable:n,accept:i}=e,o=Dt(r),a=qe(o,{tabbable:n,accept:i},r);a.currentNode=r[r.length-1].nextElementSibling;let l=a.previousNode();return l&&et(l,!0),l}}}function Dt(t){return t[0].parentElement}function Kr(t){let e=ge.getTreeNode(ce);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function R4(t){if(t.checked)return!0;let e=[];if(!t.form)e=[...ae(t).querySelectorAll(`input[type="radio"][name="${CSS.escape(t.name)}"]`)].filter(o=>!o.form);else{var r,n;let o=(n=t.form)===null||n===void 0||(r=n.elements)===null||r===void 0?void 0:r.namedItem(t.name);e=[...o??[]]}return e?!e.some(o=>o.checked):!1}function B4(t,e){let r=u.useRef(void 0),n=u.useRef(void 0);ne(()=>{let i=t.current;if(!e){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}const o=ae(i?i[0]:void 0);let a=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!Kr(t)||c.isComposing)return;let d=xe(o),f=t.current;if(!f||!Re(d,f))return;let p=Dt(f),g=qe(p,{tabbable:!0},f);if(!d)return;g.currentNode=d;let y=c.shiftKey?g.previousNode():g.nextNode();y||(g.currentNode=c.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,y=c.shiftKey?g.previousNode():g.nextNode()),c.preventDefault(),y&&et(y,!0)},l=c=>{(!ce||Qn(ce,t))&&Re(oe(c),t.current)?(ce=t,r.current=oe(c)):Kr(t)&&!ft(oe(c),t)?r.current?r.current.focus():ce&&ce.current&&na(ce.current):Kr(t)&&(r.current=oe(c))},s=c=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let d=Xn(),f=(d==="virtual"||d===null)&&Ma()&&P2(),p=xe(o);if(!f&&p&&Kr(t)&&!ft(p,t)){ce=t;let y=oe(c);if(y&&y.isConnected){var g;r.current=y,(g=r.current)===null||g===void 0||g.focus()}else ce.current&&na(ce.current)}})};return o.addEventListener("keydown",a,!1),o.addEventListener("focusin",l,!1),i==null||i.forEach(c=>c.addEventListener("focusin",l,!1)),i==null||i.forEach(c=>c.addEventListener("focusout",s,!1)),()=>{o.removeEventListener("keydown",a,!1),o.removeEventListener("focusin",l,!1),i==null||i.forEach(c=>c.removeEventListener("focusin",l,!1)),i==null||i.forEach(c=>c.removeEventListener("focusout",s,!1))}},[t,e]),ne(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function tc(t){return ft(t)}function Re(t,e){return!t||!e?!1:e.some(r=>r.contains(t))}function ft(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of ge.traverse(ge.getTreeNode(e)))if(r&&Re(t,r.current))return!0;return!1}function L4(t){return ft(t,ce)}function Qn(t,e){var r;let n=(r=ge.getTreeNode(e))===null||r===void 0?void 0:r.parent;for(;n;){if(n.scopeRef===t)return!0;n=n.parent}return!1}function et(t,e=!1){if(t!=null&&!e)try{bt(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function rc(t,e=!0){let r=t[0].previousElementSibling,n=Dt(t),i=qe(n,{tabbable:e},t);i.currentNode=r;let o=i.nextNode();return e&&!o&&(n=Dt(t),i=qe(n,{tabbable:!1},t),i.currentNode=r,o=i.nextNode()),o}function na(t,e=!0){et(rc(t,e))}function j4(t,e){const r=u.useRef(e);u.useEffect(()=>{if(r.current){ce=t;const n=ae(t.current?t.current[0]:void 0);!Re(xe(n),ce.current)&&t.current&&na(t.current)}r.current=!1},[t])}function K4(t,e,r){ne(()=>{if(e||r)return;let n=t.current;const i=ae(n?n[0]:void 0);let o=a=>{let l=oe(a);Re(l,t.current)?ce=t:tc(l)||(ce=null)};return i.addEventListener("focusin",o,!1),n==null||n.forEach(a=>a.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),n==null||n.forEach(a=>a.removeEventListener("focusin",o,!1))}},[t,e,r])}function cs(t){let e=ge.getTreeNode(ce);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function V4(t,e,r){const n=u.useRef(typeof document<"u"?xe(ae(t.current?t.current[0]:void 0)):null);ne(()=>{let i=t.current;const o=ae(i?i[0]:void 0);if(!e||r)return;let a=()=>{(!ce||Qn(ce,t))&&Re(xe(o),t.current)&&(ce=t)};return o.addEventListener("focusin",a,!1),i==null||i.forEach(l=>l.addEventListener("focusin",a,!1)),()=>{o.removeEventListener("focusin",a,!1),i==null||i.forEach(l=>l.removeEventListener("focusin",a,!1))}},[t,r]),ne(()=>{const i=ae(t.current?t.current[0]:void 0);if(!e)return;let o=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!Kr(t)||a.isComposing)return;let l=i.activeElement;if(!ft(l,t)||!cs(t))return;let s=ge.getTreeNode(t);if(!s)return;let c=s.nodeToRestore,d=qe(i.body,{tabbable:!0});d.currentNode=l;let f=a.shiftKey?d.previousNode():d.nextNode();if((!c||!c.isConnected||c===i.body)&&(c=void 0,s.nodeToRestore=void 0),(!f||!ft(f,t))&&c){d.currentNode=c;do f=a.shiftKey?d.previousNode():d.nextNode();while(ft(f,t));a.preventDefault(),a.stopPropagation(),f?et(f,!0):tc(c)?et(c,!0):l.blur()}};return r||i.addEventListener("keydown",o,!0),()=>{r||i.removeEventListener("keydown",o,!0)}},[t,e,r]),ne(()=>{const i=ae(t.current?t.current[0]:void 0);if(!e)return;let o=ge.getTreeNode(t);if(o){var a;return o.nodeToRestore=(a=n.current)!==null&&a!==void 0?a:void 0,()=>{let l=ge.getTreeNode(t);if(!l)return;let s=l.nodeToRestore,c=xe(i);if(e&&s&&(c&&ft(c,t)||c===i.body&&cs(t))){let d=ge.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let f=d.getTreeNode(t);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){us(f.nodeToRestore);return}f=f.parent}for(f=d.getTreeNode(t);f;){if(f.scopeRef&&f.scopeRef.current&&ge.getTreeNode(f.scopeRef)){let p=rc(f.scopeRef.current,!0);us(p);return}f=f.parent}}})}}}},[t,e])}function us(t){t.dispatchEvent(new CustomEvent(ra,{bubbles:!0,cancelable:!0}))&&et(t)}function qe(t,e,r){let n=e!=null&&e.tabbable?B5:M2,i=(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null,o=ae(i),a=i5(o,t||o,NodeFilter.SHOW_ELEMENT,{acceptNode(l){var s;return!(e==null||(s=e.from)===null||s===void 0)&&s.contains(l)||e!=null&&e.tabbable&&l.tagName==="INPUT"&&l.getAttribute("type")==="radio"&&(!R4(l)||a.currentNode.tagName==="INPUT"&&a.currentNode.type==="radio"&&a.currentNode.name===l.name)?NodeFilter.FILTER_REJECT:n(l)&&(!r||Re(l,r))&&(!(e!=null&&e.accept)||e.accept(l))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(a.currentNode=e.from),a}class Xa{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,r,n){let i=this.fastMap.get(r??null);if(!i)return;let o=new ia({scopeRef:e});i.addChild(o),o.parent=i,this.fastMap.set(e,o),n&&(o.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let r=this.fastMap.get(e);if(!r)return;let n=r.parent;for(let o of this.traverse())o!==r&&r.nodeToRestore&&o.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&Re(o.nodeToRestore,r.scopeRef.current)&&(o.nodeToRestore=r.nodeToRestore);let i=r.children;n&&(n.removeChild(r),i.size>0&&i.forEach(o=>n&&n.addChild(o))),this.fastMap.delete(r.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let r of e.children)yield*this.traverse(r)}clone(){var e;let r=new Xa;var n;for(let i of this.traverse())r.addTreeNode(i.scopeRef,(n=(e=i.parent)===null||e===void 0?void 0:e.scopeRef)!==null&&n!==void 0?n:null,i.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new ia({scopeRef:null}),this.fastMap.set(null,this.root)}}class ia{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let ge=new Xa;function Dr(t={}){let{autoFocus:e=!1,isTextInput:r,within:n}=t,i=u.useRef({isFocused:!1,isFocusVisible:e||mr()}),[o,a]=u.useState(!1),[l,s]=u.useState(()=>i.current.isFocused&&i.current.isFocusVisible),c=u.useCallback(()=>s(i.current.isFocused&&i.current.isFocusVisible),[]),d=u.useCallback(g=>{i.current.isFocused=g,a(g),c()},[c]);o4(g=>{i.current.isFocusVisible=g,c()},[],{isTextInput:r});let{focusProps:f}=Wa({isDisabled:n,onFocusChange:d}),{focusWithinProps:p}=Di({isDisabled:!n,onFocusWithinChange:d});return{isFocused:o,isFocusVisible:l,focusProps:n?p:f}}function H4(t,e){let r=e==null?void 0:e.isDisabled,[n,i]=u.useState(!1);return ne(()=>{if(t!=null&&t.current&&!r){let o=()=>{if(t.current){let l=qe(t.current,{tabbable:!0});i(!!l.nextNode())}};o();let a=new MutationObserver(o);return a.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{a.disconnect()}}}),r?!1:n}function nc(t){let e=U4(ae(t));e!==t&&(e&&z4(e,t),t&&ic(t,e))}function z4(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function ic(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function U4(t){let e=xe(t),r=e==null?void 0:e.getAttribute("aria-activedescendant");return r&&t.getElementById(r)||e}const oc=7e3;let Ue=null;function ds(t,e="assertive",r=oc){Ue?Ue.announce(t,e,r):(Ue=new W4,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Ue.announce(t,e,r):setTimeout(()=>{Ue!=null&&Ue.isAttached()&&(Ue==null||Ue.announce(t,e,r))},100))}class W4{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let r=document.createElement("div");return r.setAttribute("role","log"),r.setAttribute("aria-live",e),r.setAttribute("aria-relevant","additions"),r}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,r="assertive",n=oc){var i,o;if(!this.node)return;let a=document.createElement("div");typeof e=="object"?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",e["aria-labelledby"])):a.textContent=e,r==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(a):(o=this.politeLog)===null||o===void 0||o.appendChild(a),e!==""&&setTimeout(()=>{a.remove()},n)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}const ac={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},lc={...ac,customError:!0,valid:!1},Pr={isInvalid:!1,validationDetails:ac,validationErrors:[]},Z4=u.createContext({}),fs="__formValidationState"+Date.now();function G4(t){if(t[fs]){let{realtimeValidation:e,displayValidation:r,updateValidation:n,resetValidation:i,commitValidation:o}=t[fs];return{realtimeValidation:e,displayValidation:r,updateValidation:n,resetValidation:i,commitValidation:o}}return q4(t)}function q4(t){let{isInvalid:e,validationState:r,name:n,value:i,builtinValidation:o,validate:a,validationBehavior:l="aria"}=t;r&&(e||(e=r==="invalid"));let s=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:lc}:null,c=u.useMemo(()=>{if(!a||i==null)return null;let V=Y4(a,i);return hs(V)},[a,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let d=u.useContext(Z4),f=u.useMemo(()=>n?Array.isArray(n)?n.flatMap(V=>oa(d[V])):oa(d[n]):[],[d,n]),[p,g]=u.useState(d),[y,h]=u.useState(!1);d!==p&&(g(d),h(!1));let b=u.useMemo(()=>hs(y?[]:f),[y,f]),m=u.useRef(Pr),[C,E]=u.useState(Pr),$=u.useRef(Pr),w=()=>{if(!x)return;S(!1);let V=c||o||m.current;oo(V,$.current)||($.current=V,E(V))},[x,S]=u.useState(!1);return u.useEffect(w),{realtimeValidation:s||b||c||o||Pr,displayValidation:l==="native"?s||b||C:s||b||c||o||C,updateValidation(V){l==="aria"&&!oo(C,V)?E(V):m.current=V},resetValidation(){let V=Pr;oo(V,$.current)||($.current=V,E(V)),l==="native"&&S(!1),h(!0)},commitValidation(){l==="native"&&S(!0),h(!0)}}}function oa(t){return t?Array.isArray(t)?t:[t]:[]}function Y4(t,e){if(typeof t=="function"){let r=t(e);if(r&&typeof r!="boolean")return oa(r)}return[]}function hs(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:lc}:null}function oo(t,e){return t===e?!0:!!t&&!!e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((r,n)=>r===e.validationErrors[n])&&Object.entries(t.validationDetails).every(([r,n])=>e.validationDetails[r]===n)}function X4(t,e,r){let{validationBehavior:n,focus:i}=t;ne(()=>{if(n==="native"&&(r!=null&&r.current)&&!r.current.disabled){let c=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(c),r.current.hasAttribute("title")||(r.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(Q4(r.current))}});let o=u.useRef(!1),a=ve(()=>{o.current||e.resetValidation()}),l=ve(c=>{var d;e.displayValidation.isInvalid||e.commitValidation();let f=r==null||(d=r.current)===null||d===void 0?void 0:d.form;if(!c.defaultPrevented&&r&&f&&e3(f)===r.current){var p;i?i():(p=r.current)===null||p===void 0||p.focus(),Z2("keyboard")}c.preventDefault()}),s=ve(()=>{e.commitValidation()});u.useEffect(()=>{let c=r==null?void 0:r.current;if(!c)return;let d=c.form,f=d==null?void 0:d.reset;return d&&(d.reset=()=>{o.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,f==null||f.call(d),o.current=!1}),c.addEventListener("invalid",l),c.addEventListener("change",s),d==null||d.addEventListener("reset",a),()=>{c.removeEventListener("invalid",l),c.removeEventListener("change",s),d==null||d.removeEventListener("reset",a),d&&(d.reset=f)}},[r,l,s,a,n])}function J4(t){let e=t.validity;return{badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing,valid:e.valid}}function Q4(t){return{isInvalid:!t.validity.valid,validationDetails:J4(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function e3(t){for(let e=0;e<t.elements.length;e++){let r=t.elements[e];if(!r.validity.valid)return r}return null}function sc(t){let{id:e,label:r,"aria-labelledby":n,"aria-label":i,labelElementType:o="label"}=t;e=Se(e);let a=Se(),l={};r?(n=n?`${a} ${n}`:a,l={id:a,htmlFor:o==="label"?e:void 0}):!n&&!i&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let s=yi({id:e,"aria-label":i,"aria-labelledby":n});return{labelProps:l,fieldProps:s}}function t3(t){let{description:e,errorMessage:r,isInvalid:n,validationState:i}=t,{labelProps:o,fieldProps:a}=sc(t),l=ht([!!e,!!r,n,i]),s=ht([!!e,!!r,n,i]);return a=ie(a,{"aria-describedby":[l,s,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:a,descriptionProps:{id:l},errorMessageProps:{id:s}}}const ps={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function cc(t={}){let{style:e,isFocusable:r}=t,[n,i]=u.useState(!1),{focusWithinProps:o}=Di({isDisabled:!r,onFocusWithinChange:l=>i(l)}),a=u.useMemo(()=>n?e:e?{...ps,...e}:ps,[n]);return{visuallyHiddenProps:{...o,style:a}}}function r3(t){let{children:e,elementType:r="div",isFocusable:n,style:i,...o}=t,{visuallyHiddenProps:a}=cc(t);return u.createElement(r,ie(o,a),e)}const Ye={top:"top",bottom:"top",left:"left",right:"left"},ei={top:"bottom",bottom:"top",left:"right",right:"left"},n3={top:"left",left:"top"},aa={top:"height",left:"width"},uc={width:"totalWidth",height:"totalHeight"},Cn={};let me=typeof document<"u"?window.visualViewport:null;function gs(t){let e=0,r=0,n=0,i=0,o=0,a=0,l={};var s;let c=((s=me==null?void 0:me.scale)!==null&&s!==void 0?s:1)>1;if(t.tagName==="BODY"){let y=document.documentElement;n=y.clientWidth,i=y.clientHeight;var d;e=(d=me==null?void 0:me.width)!==null&&d!==void 0?d:n;var f;r=(f=me==null?void 0:me.height)!==null&&f!==void 0?f:i,l.top=y.scrollTop||t.scrollTop,l.left=y.scrollLeft||t.scrollLeft,me&&(o=me.offsetTop,a=me.offsetLeft)}else({width:e,height:r,top:o,left:a}=fr(t,!1)),l.top=t.scrollTop,l.left=t.scrollLeft,n=e,i=r;if(Oa()&&(t.tagName==="BODY"||t.tagName==="HTML")&&c){l.top=0,l.left=0;var p;o=(p=me==null?void 0:me.pageTop)!==null&&p!==void 0?p:0;var g;a=(g=me==null?void 0:me.pageLeft)!==null&&g!==void 0?g:0}return{width:e,height:r,totalWidth:n,totalHeight:i,scroll:l,top:o,left:a}}function i3(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function vs(t,e,r,n,i,o,a){var l;let s=(l=i.scroll[t])!==null&&l!==void 0?l:0,c=n[aa[t]],d=n.scroll[Ye[t]]+o,f=c+n.scroll[Ye[t]]-o,p=e-s+a[t]-n[Ye[t]],g=e-s+r+a[t]-n[Ye[t]];return p<d?d-p:g>f?Math.max(f-g,d-p):0}function o3(t){let e=window.getComputedStyle(t);return{top:parseInt(e.marginTop,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0,right:parseInt(e.marginRight,10)||0}}function bs(t){if(Cn[t])return Cn[t];let[e,r]=t.split(" "),n=Ye[e]||"right",i=n3[n];Ye[r]||(r="center");let o=aa[n],a=aa[i];return Cn[t]={placement:e,crossPlacement:r,axis:n,crossAxis:i,size:o,crossSize:a},Cn[t]}function ao(t,e,r,n,i,o,a,l,s,c){let{placement:d,crossPlacement:f,axis:p,crossAxis:g,size:y,crossSize:h}=n,b={};var m;b[g]=(m=t[g])!==null&&m!==void 0?m:0;var C,E,$,w;f==="center"?b[g]+=(((C=t[h])!==null&&C!==void 0?C:0)-((E=r[h])!==null&&E!==void 0?E:0))/2:f!==g&&(b[g]+=(($=t[h])!==null&&$!==void 0?$:0)-((w=r[h])!==null&&w!==void 0?w:0)),b[g]+=o;const x=t[g]-r[h]+s+c,S=t[g]+t[h]-s-c;if(b[g]=Zo(b[g],x,S),d===p){const N=l?a[y]:e[uc[y]];b[ei[p]]=Math.floor(N-t[p]+i)}else b[p]=Math.floor(t[p]+t[y]+i);return b}function a3(t,e,r,n,i,o,a,l){const s=n?r.height:e[uc.height];var c;let d=t.top!=null?r.top+t.top:r.top+(s-((c=t.bottom)!==null&&c!==void 0?c:0)-a);var f,p,g,y,h,b;let m=l!=="top"?Math.max(0,e.height+e.top+((f=e.scroll.top)!==null&&f!==void 0?f:0)-d-(((p=i.top)!==null&&p!==void 0?p:0)+((g=i.bottom)!==null&&g!==void 0?g:0)+o)):Math.max(0,d+a-(e.top+((y=e.scroll.top)!==null&&y!==void 0?y:0))-(((h=i.top)!==null&&h!==void 0?h:0)+((b=i.bottom)!==null&&b!==void 0?b:0)+o));return Math.min(e.height-o*2,m)}function ms(t,e,r,n,i,o){let{placement:a,axis:l,size:s}=o;var c,d;if(a===l)return Math.max(0,r[l]-t[l]-((c=t.scroll[l])!==null&&c!==void 0?c:0)+e[l]-((d=n[l])!==null&&d!==void 0?d:0)-n[ei[l]]-i);var f;return Math.max(0,t[s]+t[l]+t.scroll[l]-e[l]-r[l]-r[s]-((f=n[l])!==null&&f!==void 0?f:0)-n[ei[l]]-i)}function l3(t,e,r,n,i,o,a,l,s,c,d,f,p,g,y,h){let b=bs(t),{size:m,crossAxis:C,crossSize:E,placement:$,crossPlacement:w}=b,x=ao(e,l,r,b,d,f,c,p,y,h),S=d,N=ms(l,c,e,i,o+d,b);if(a&&n[m]>N){let H=bs(`${ei[$]} ${w}`),W=ao(e,l,r,H,d,f,c,p,y,h);ms(l,c,e,i,o+d,H)>N&&(b=H,x=W,S=d)}let K="bottom";b.axis==="top"?b.placement==="top"?K="top":b.placement==="bottom"&&(K="bottom"):b.crossAxis==="top"&&(b.crossPlacement==="top"?K="bottom":b.crossPlacement==="bottom"&&(K="top"));let V=vs(C,x[C],r[E],l,s,o,c);x[C]+=V;let D=a3(x,l,c,p,i,o,r.height,K);g&&g<D&&(D=g),r.height=Math.min(r.height,D),x=ao(e,l,r,b,S,f,c,p,y,h),V=vs(C,x[C],r[E],l,s,o,c),x[C]+=V;let T={},Z=e[C]-x[C]-i[Ye[C]],k=Z+.5*e[E];const U=y/2+h;var P,O,z,B;const M=Ye[C]==="left"?((P=i.left)!==null&&P!==void 0?P:0)+((O=i.right)!==null&&O!==void 0?O:0):((z=i.top)!==null&&z!==void 0?z:0)+((B=i.bottom)!==null&&B!==void 0?B:0),R=r[E]-M-y/2-h,F=e[C]+y/2-(x[C]+i[Ye[C]]),_=e[C]+e[E]-y/2-(x[C]+i[Ye[C]]),I=Zo(k,F,_);T[C]=Zo(I,U,R),{placement:$,crossPlacement:w}=b,y?Z=T[C]:w==="right"?Z+=e[E]:w==="center"&&(Z+=e[E]/2);let L=$==="left"||$==="top"?r[m]:0,j={x:$==="top"||$==="bottom"?Z:L,y:$==="left"||$==="right"?Z:L};return{position:x,maxHeight:D,arrowOffsetLeft:T.left,arrowOffsetTop:T.top,placement:$,triggerAnchorPoint:j}}function s3(t){let{placement:e,targetNode:r,overlayNode:n,scrollNode:i,padding:o,shouldFlip:a,boundaryElement:l,offset:s,crossOffset:c,maxHeight:d,arrowSize:f=0,arrowBoundaryOffset:p=0}=t,g=n instanceof HTMLElement?c3(n):document.documentElement,y=g===document.documentElement;const h=window.getComputedStyle(g).position;let b=!!h&&h!=="static",m=y?fr(r,!1):ys(r,g,!1);if(!y){let{marginTop:T,marginLeft:Z}=window.getComputedStyle(r);m.top+=parseInt(T,10)||0,m.left+=parseInt(Z,10)||0}let C=fr(n,!0),E=o3(n);var $,w;C.width+=(($=E.left)!==null&&$!==void 0?$:0)+((w=E.right)!==null&&w!==void 0?w:0);var x,S;C.height+=((x=E.top)!==null&&x!==void 0?x:0)+((S=E.bottom)!==null&&S!==void 0?S:0);let N=i3(i),K=gs(l),V=gs(g),D=l.tagName==="BODY"?fr(g,!1):ys(g,l,!1);return g.tagName==="HTML"&&l.tagName==="BODY"&&(V.scroll.top=0,V.scroll.left=0),l3(e,m,C,N,E,o,a,K,V,D,s,c,b,d,f,p)}function Ja(t,e){let{top:r,left:n,width:i,height:o}=t.getBoundingClientRect();return e&&t instanceof t.ownerDocument.defaultView.HTMLElement&&(i=t.offsetWidth,o=t.offsetHeight),{top:r,left:n,width:i,height:o}}function fr(t,e){let{top:r,left:n,width:i,height:o}=Ja(t,e),{scrollTop:a,scrollLeft:l,clientTop:s,clientLeft:c}=document.documentElement;return{top:r+a-s,left:n+l-c,width:i,height:o}}function ys(t,e,r){let n=window.getComputedStyle(t),i;if(n.position==="fixed")i=Ja(t,r);else{i=fr(t,r);let o=fr(e,r),a=window.getComputedStyle(e);o.top+=(parseInt(a.borderTopWidth,10)||0)-e.scrollTop,o.left+=(parseInt(a.borderLeftWidth,10)||0)-e.scrollLeft,i.top-=o.top,i.left-=o.left}return i.top-=parseInt(n.marginTop,10)||0,i.left-=parseInt(n.marginLeft,10)||0,i}function c3(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!Cs(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!Cs(e);)e=e.parentElement;return e||document.documentElement}function Cs(t){let e=window.getComputedStyle(t);return e.transform!=="none"||/transform|perspective/.test(e.willChange)||e.filter!=="none"||e.contain==="paint"||"backdropFilter"in e&&e.backdropFilter!=="none"||"WebkitBackdropFilter"in e&&e.WebkitBackdropFilter!=="none"}const dc=new WeakMap;function u3(t){let{triggerRef:e,isOpen:r,onClose:n}=t;u.useEffect(()=>{if(!r||n===null)return;let i=o=>{let a=o.target;if(!e.current||a instanceof Node&&!a.contains(e.current)||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement)return;let l=n||dc.get(e.current);l&&l()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[r,n,e])}let fe=typeof document<"u"?window.visualViewport:null;function d3(t){let{direction:e}=jt(),{arrowSize:r,targetRef:n,overlayRef:i,arrowRef:o,scrollRef:a=i,placement:l="bottom",containerPadding:s=12,shouldFlip:c=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:f=0,crossOffset:p=0,shouldUpdatePosition:g=!0,isOpen:y=!0,onClose:h,maxHeight:b,arrowBoundaryOffset:m=0}=t,[C,E]=u.useState(null),$=[g,l,i.current,n.current,o==null?void 0:o.current,a.current,s,c,d,f,p,y,e,b,m,r],w=u.useRef(fe==null?void 0:fe.scale);u.useEffect(()=>{y&&(w.current=fe==null?void 0:fe.scale)},[y]);let x=u.useCallback(()=>{if(g===!1||!y||!i.current||!n.current||!d||(fe==null?void 0:fe.scale)!==w.current)return;let T=null;if(a.current&&a.current.contains(document.activeElement)){var Z;let M=(Z=document.activeElement)===null||Z===void 0?void 0:Z.getBoundingClientRect(),R=a.current.getBoundingClientRect();var k;if(T={type:"top",offset:((k=M==null?void 0:M.top)!==null&&k!==void 0?k:0)-R.top},T.offset>R.height/2){T.type="bottom";var U;T.offset=((U=M==null?void 0:M.bottom)!==null&&U!==void 0?U:0)-R.bottom}}let P=i.current;if(!b&&i.current){var O;P.style.top="0px",P.style.bottom="";var z;P.style.maxHeight=((z=(O=window.visualViewport)===null||O===void 0?void 0:O.height)!==null&&z!==void 0?z:window.innerHeight)+"px"}let B=s3({placement:h3(l,e),overlayNode:i.current,targetNode:n.current,scrollNode:a.current||i.current,padding:s,shouldFlip:c,boundaryElement:d,offset:f,crossOffset:p,maxHeight:b,arrowSize:r??(o!=null&&o.current?Ja(o.current,!0).width:0),arrowBoundaryOffset:m});if(B.position){if(P.style.top="",P.style.bottom="",P.style.left="",P.style.right="",Object.keys(B.position).forEach(M=>P.style[M]=B.position[M]+"px"),P.style.maxHeight=B.maxHeight!=null?B.maxHeight+"px":"",T&&document.activeElement&&a.current){let M=document.activeElement.getBoundingClientRect(),R=a.current.getBoundingClientRect(),F=M[T.type]-R[T.type];a.current.scrollTop+=F-T.offset}E(B)}},$);ne(x,$),f3(x),Uo({ref:i,onResize:x}),Uo({ref:n,onResize:x});let S=u.useRef(!1);ne(()=>{let T,Z=()=>{S.current=!0,clearTimeout(T),T=setTimeout(()=>{S.current=!1},500),x()},k=()=>{S.current&&Z()};return fe==null||fe.addEventListener("resize",Z),fe==null||fe.addEventListener("scroll",k),()=>{fe==null||fe.removeEventListener("resize",Z),fe==null||fe.removeEventListener("scroll",k)}},[x]);let N=u.useCallback(()=>{S.current||h==null||h()},[h,S]);u3({triggerRef:n,isOpen:y,onClose:h&&N});var K,V,D;return{overlayProps:{style:{position:C?"absolute":"fixed",top:C?void 0:0,left:C?void 0:0,zIndex:1e5,...C==null?void 0:C.position,maxHeight:(K=C==null?void 0:C.maxHeight)!==null&&K!==void 0?K:"100vh"}},placement:(V=C==null?void 0:C.placement)!==null&&V!==void 0?V:null,triggerAnchorPoint:(D=C==null?void 0:C.triggerAnchorPoint)!==null&&D!==void 0?D:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:C==null?void 0:C.arrowOffsetLeft,top:C==null?void 0:C.arrowOffsetTop}},updatePosition:x}}function f3(t){ne(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function h3(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}const We=[];function p3(t,e){let{onClose:r,shouldCloseOnBlur:n,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:l}=t;u.useEffect(()=>{if(i&&!We.includes(e))return We.push(e),()=>{let y=We.indexOf(e);y>=0&&We.splice(y,1)}},[i,e]);let s=()=>{We[We.length-1]===e&&r&&r()},c=y=>{(!l||l(y.target))&&We[We.length-1]===e&&(y.stopPropagation(),y.preventDefault())},d=y=>{(!l||l(y.target))&&(We[We.length-1]===e&&(y.stopPropagation(),y.preventDefault()),s())},f=y=>{y.key==="Escape"&&!a&&!y.nativeEvent.isComposing&&(y.stopPropagation(),y.preventDefault(),s())};c4({ref:e,onInteractOutside:o&&i?d:void 0,onInteractOutsideStart:c});let{focusWithinProps:p}=Di({isDisabled:!n,onBlurWithin:y=>{!y.relatedTarget||L4(y.relatedTarget)||(!l||l(y.relatedTarget))&&(r==null||r())}}),g=y=>{y.target===y.currentTarget&&y.preventDefault()};return{overlayProps:{onKeyDown:f,...p},underlayProps:{onPointerDown:g}}}function g3(t,e,r){let{type:n}=t,{isOpen:i}=e;u.useEffect(()=>{r&&r.current&&dc.set(r.current,e.close)});let o;n==="menu"?o=!0:n==="listbox"&&(o="listbox");let a=Se();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?a:void 0,onPress:e.toggle},overlayProps:{id:a}}}const lo=typeof document<"u"&&window.visualViewport,v3=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let En=0,so;function b3(t={}){let{isDisabled:e}=t;ne(()=>{if(!e)return En++,En===1&&(vi()?so=y3():so=m3()),()=>{En--,En===0&&so()}},[e])}function m3(){let t=window.innerWidth-document.documentElement.clientWidth;return gt(t>0&&("scrollbarGutter"in document.documentElement.style?St(document.documentElement,"scrollbarGutter","stable"):St(document.documentElement,"paddingRight",`${t}px`)),St(document.documentElement,"overflow","hidden"))}function y3(){let t,e,r=c=>{t=k2(c.target,!0),!(t===document.documentElement&&t===document.body)&&t instanceof HTMLElement&&window.getComputedStyle(t).overscrollBehavior==="auto"&&(e=St(t,"overscrollBehavior","contain"))},n=c=>{if(!t||t===document.documentElement||t===document.body){c.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&c.preventDefault()},i=()=>{e&&e()},o=c=>{let d=c.target;C3(d)&&(l(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",lo&&(lo.height<window.innerHeight?requestAnimationFrame(()=>{Es(d)}):lo.addEventListener("resize",()=>Es(d),{once:!0}))}))},a=null,l=()=>{if(a)return;let c=()=>{window.scrollTo(0,0)},d=window.pageXOffset,f=window.pageYOffset;a=gt(Ar(window,"scroll",c),St(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),St(document.documentElement,"overflow","hidden"),St(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(d,f)}),window.scrollTo(0,0)},s=gt(Ar(document,"touchstart",r,{passive:!1,capture:!0}),Ar(document,"touchmove",n,{passive:!1,capture:!0}),Ar(document,"touchend",i,{passive:!1,capture:!0}),Ar(document,"focus",o,!0));return()=>{e==null||e(),a==null||a(),s()}}function St(t,e,r){let n=t.style[e];return t.style[e]=r,()=>{t.style[e]=n}}function Ar(t,e,r,n){return t.addEventListener(e,r,n),()=>{t.removeEventListener(e,r,n)}}function Es(t){let e=document.scrollingElement||document.documentElement,r=t;for(;r&&r!==e;){let n=k2(r);if(n!==document.documentElement&&n!==document.body&&n!==r){let i=n.getBoundingClientRect().top,o=r.getBoundingClientRect().top;o>i+r.clientHeight&&(n.scrollTop+=o-i)}r=n.parentElement}}function C3(t){return t instanceof HTMLInputElement&&!v3.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}const E3=u.createContext({});function w3(){var t;return(t=u.useContext(E3))!==null&&t!==void 0?t:{}}var fc={};fc={dismiss:"تجاهل"};var hc={};hc={dismiss:"Отхвърляне"};var pc={};pc={dismiss:"Odstranit"};var gc={};gc={dismiss:"Luk"};var vc={};vc={dismiss:"Schließen"};var bc={};bc={dismiss:"Απόρριψη"};var mc={};mc={dismiss:"Dismiss"};var yc={};yc={dismiss:"Descartar"};var Cc={};Cc={dismiss:"Lõpeta"};var Ec={};Ec={dismiss:"Hylkää"};var wc={};wc={dismiss:"Rejeter"};var xc={};xc={dismiss:"התעלם"};var Dc={};Dc={dismiss:"Odbaci"};var Sc={};Sc={dismiss:"Elutasítás"};var Fc={};Fc={dismiss:"Ignora"};var $c={};$c={dismiss:"閉じる"};var _c={};_c={dismiss:"무시"};var Pc={};Pc={dismiss:"Atmesti"};var Ac={};Ac={dismiss:"Nerādīt"};var Tc={};Tc={dismiss:"Lukk"};var kc={};kc={dismiss:"Negeren"};var Ic={};Ic={dismiss:"Zignoruj"};var Oc={};Oc={dismiss:"Descartar"};var Mc={};Mc={dismiss:"Dispensar"};var Nc={};Nc={dismiss:"Revocare"};var Rc={};Rc={dismiss:"Пропустить"};var Bc={};Bc={dismiss:"Zrušiť"};var Lc={};Lc={dismiss:"Opusti"};var jc={};jc={dismiss:"Odbaci"};var Kc={};Kc={dismiss:"Avvisa"};var Vc={};Vc={dismiss:"Kapat"};var Hc={};Hc={dismiss:"Скасувати"};var zc={};zc={dismiss:"取消"};var Uc={};Uc={dismiss:"關閉"};var Wc={};Wc={"ar-AE":fc,"bg-BG":hc,"cs-CZ":pc,"da-DK":gc,"de-DE":vc,"el-GR":bc,"en-US":mc,"es-ES":yc,"et-EE":Cc,"fi-FI":Ec,"fr-FR":wc,"he-IL":xc,"hr-HR":Dc,"hu-HU":Sc,"it-IT":Fc,"ja-JP":$c,"ko-KR":_c,"lt-LT":Pc,"lv-LV":Ac,"nb-NO":Tc,"nl-NL":kc,"pl-PL":Ic,"pt-BR":Oc,"pt-PT":Mc,"ro-RO":Nc,"ru-RU":Rc,"sk-SK":Bc,"sl-SI":Lc,"sr-SP":jc,"sv-SE":Kc,"tr-TR":Vc,"uk-UA":Hc,"zh-CN":zc,"zh-TW":Uc};function x3(t){return t&&t.__esModule?t.default:t}function ws(t){let{onDismiss:e,...r}=t,n=ec(x3(Wc),"@react-aria/overlays"),i=yi(r,n.format("dismiss")),o=()=>{e&&e()};return u.createElement(r3,null,u.createElement("button",{...i,tabIndex:-1,onClick:o,style:{width:1,height:1}}))}const D3=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let Tr=new WeakMap,_e=[];function S3(t,e){let r=Te(t==null?void 0:t[0]),n=e instanceof r.Element?{root:e}:e;var i;let o=(i=n==null?void 0:n.root)!==null&&i!==void 0?i:document.body,a=(n==null?void 0:n.shouldUseInert)&&D3,l=new Set(t),s=new Set,c=h=>a&&h instanceof r.HTMLElement?h.inert:h.getAttribute("aria-hidden")==="true",d=(h,b)=>{a&&h instanceof r.HTMLElement?h.inert=b:b?h.setAttribute("aria-hidden","true"):(h.removeAttribute("aria-hidden"),h instanceof r.HTMLElement&&(h.inert=!1))},f=h=>{for(let E of h.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(E);let b=E=>{if(s.has(E)||l.has(E)||E.parentElement&&s.has(E.parentElement)&&E.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let $ of l)if(E.contains($))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},m=document.createTreeWalker(h,NodeFilter.SHOW_ELEMENT,{acceptNode:b}),C=b(h);if(C===NodeFilter.FILTER_ACCEPT&&p(h),C!==NodeFilter.FILTER_REJECT){let E=m.nextNode();for(;E!=null;)p(E),E=m.nextNode()}},p=h=>{var b;let m=(b=Tr.get(h))!==null&&b!==void 0?b:0;c(h)&&m===0||(m===0&&d(h,!0),s.add(h),Tr.set(h,m+1))};_e.length&&_e[_e.length-1].disconnect(),f(o);let g=new MutationObserver(h=>{for(let b of h)if(b.type==="childList"&&![...l,...s].some(m=>m.contains(b.target)))for(let m of b.addedNodes)(m instanceof HTMLElement||m instanceof SVGElement)&&(m.dataset.liveAnnouncer==="true"||m.dataset.reactAriaTopLayer==="true")?l.add(m):m instanceof Element&&f(m)});g.observe(o,{childList:!0,subtree:!0});let y={visibleNodes:l,hiddenNodes:s,observe(){g.observe(o,{childList:!0,subtree:!0})},disconnect(){g.disconnect()}};return _e.push(y),()=>{g.disconnect();for(let h of s){let b=Tr.get(h);b!=null&&(b===1?(d(h,!1),Tr.delete(h)):Tr.set(h,b-1))}y===_e[_e.length-1]?(_e.pop(),_e.length&&_e[_e.length-1].observe()):_e.splice(_e.indexOf(y),1)}}function F3(t){let e=_e[_e.length-1];if(e&&!e.visibleNodes.has(t))return e.visibleNodes.add(t),()=>{e.visibleNodes.delete(t)}}function $3(t,e){let{triggerRef:r,popoverRef:n,groupRef:i,isNonModal:o,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:l,...s}=t,c=s.trigger==="SubmenuTrigger",{overlayProps:d,underlayProps:f}=p3({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!o||c,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:l},i??n),{overlayProps:p,arrowProps:g,placement:y,triggerAnchorPoint:h}=d3({...s,targetRef:r,overlayRef:n,isOpen:e.isOpen,onClose:o&&!c?e.close:null});return b3({isDisabled:o||!e.isOpen}),u.useEffect(()=>{if(e.isOpen&&n.current){var b,m;return o?F3((b=i==null?void 0:i.current)!==null&&b!==void 0?b:n.current):S3([(m=i==null?void 0:i.current)!==null&&m!==void 0?m:n.current],{shouldUseInert:!0})}},[o,e.isOpen,n,i]),{popoverProps:ie(d,p),arrowProps:g,underlayProps:f,placement:y,triggerAnchorPoint:h}}const Zc=u.createContext(null);function xs(t){let e=sn(),{portalContainer:r=e?null:document.body,isExiting:n}=t,[i,o]=u.useState(!1),a=u.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:l}=w3();if(!t.portalContainer&&l&&(r=l()),!r)return null;let s=t.children;return t.disableFocusManagement||(s=u.createElement(Ya,{restoreFocus:!0,contain:(t.shouldContainFocus||i)&&!n},s)),s=u.createElement(Zc.Provider,{value:a},u.createElement(l4,null,s)),Bt.createPortal(s,r)}function _3(){let t=u.useContext(Zc),e=t==null?void 0:t.setContain;ne(()=>{e==null||e(!0)},[e])}const Qa=new WeakMap;function P3(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function A3(t,e){let r=Qa.get(t);if(!r)throw new Error("Unknown list");return`${r.id}-option-${P3(e)}`}function la(t){return p5()?t.altKey:t.ctrlKey}function Mn(t,e){var r,n;let i=`[data-key="${CSS.escape(String(e))}"]`,o=(r=t.current)===null||r===void 0?void 0:r.dataset.collection;return o&&(i=`[data-collection="${CSS.escape(o)}"]${i}`),(n=t.current)===null||n===void 0?void 0:n.querySelector(i)}const Gc=new WeakMap;function T3(t){let e=Se();return Gc.set(t,e),e}function k3(t){return Gc.get(t)}const I3=1e3;function qc(t){let{keyboardDelegate:e,selectionManager:r,onTypeSelect:n}=t,i=u.useRef({search:"",timeout:void 0}).current,o=a=>{let l=O3(a.key);if(!(!l||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target)||i.search.length===0&&l===" ")){if(l===" "&&i.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),i.search+=l,e.getKeyForSearch!=null){let s=e.getKeyForSearch(i.search,r.focusedKey);s==null&&(s=e.getKeyForSearch(i.search)),s!=null&&(r.setFocusedKey(s),n&&n(s))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},I3)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?o:void 0}}}function O3(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function Yc(t){let{selectionManager:e,keyboardDelegate:r,ref:n,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:a=!1,disallowSelectAll:l=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:c=e.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:p=!1,isVirtualized:g,scrollRef:y=n,linkBehavior:h="action"}=t,{direction:b}=jt(),m=bi(),C=O=>{var z;if(O.altKey&&O.key==="Tab"&&O.preventDefault(),!(!((z=n.current)===null||z===void 0)&&z.contains(O.target)))return;const B=(G,te)=>{if(G!=null){if(e.isLink(G)&&h==="selection"&&c&&!la(O)){Bt.flushSync(()=>{e.setFocusedKey(G,te)});let de=Mn(n,G),Be=e.getItemProps(G);de&&m.open(de,O,Be.href,Be.routerOptions);return}if(e.setFocusedKey(G,te),e.isLink(G)&&h==="override")return;O.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(G):c&&!la(O)&&e.replaceSelection(G)}};switch(O.key){case"ArrowDown":if(r.getKeyBelow){var M,R,F;let G=e.focusedKey!=null?(M=r.getKeyBelow)===null||M===void 0?void 0:M.call(r,e.focusedKey):(R=r.getFirstKey)===null||R===void 0?void 0:R.call(r);G==null&&o&&(G=(F=r.getFirstKey)===null||F===void 0?void 0:F.call(r,e.focusedKey)),G!=null&&(O.preventDefault(),B(G))}break;case"ArrowUp":if(r.getKeyAbove){var _,I,L;let G=e.focusedKey!=null?(_=r.getKeyAbove)===null||_===void 0?void 0:_.call(r,e.focusedKey):(I=r.getLastKey)===null||I===void 0?void 0:I.call(r);G==null&&o&&(G=(L=r.getLastKey)===null||L===void 0?void 0:L.call(r,e.focusedKey)),G!=null&&(O.preventDefault(),B(G))}break;case"ArrowLeft":if(r.getKeyLeftOf){var j,H,W;let G=e.focusedKey!=null?(j=r.getKeyLeftOf)===null||j===void 0?void 0:j.call(r,e.focusedKey):null;G==null&&o&&(G=b==="rtl"?(H=r.getFirstKey)===null||H===void 0?void 0:H.call(r,e.focusedKey):(W=r.getLastKey)===null||W===void 0?void 0:W.call(r,e.focusedKey)),G!=null&&(O.preventDefault(),B(G,b==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var q,Y,le;let G=e.focusedKey!=null?(q=r.getKeyRightOf)===null||q===void 0?void 0:q.call(r,e.focusedKey):null;G==null&&o&&(G=b==="rtl"?(Y=r.getLastKey)===null||Y===void 0?void 0:Y.call(r,e.focusedKey):(le=r.getFirstKey)===null||le===void 0?void 0:le.call(r,e.focusedKey)),G!=null&&(O.preventDefault(),B(G,b==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(e.focusedKey===null&&O.shiftKey)return;O.preventDefault();let G=r.getFirstKey(e.focusedKey,ir(O));e.setFocusedKey(G),G!=null&&(ir(O)&&O.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(G):c&&e.replaceSelection(G))}break;case"End":if(r.getLastKey){if(e.focusedKey===null&&O.shiftKey)return;O.preventDefault();let G=r.getLastKey(e.focusedKey,ir(O));e.setFocusedKey(G),G!=null&&(ir(O)&&O.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(G):c&&e.replaceSelection(G))}break;case"PageDown":if(r.getKeyPageBelow&&e.focusedKey!=null){let G=r.getKeyPageBelow(e.focusedKey);G!=null&&(O.preventDefault(),B(G))}break;case"PageUp":if(r.getKeyPageAbove&&e.focusedKey!=null){let G=r.getKeyPageAbove(e.focusedKey);G!=null&&(O.preventDefault(),B(G))}break;case"a":ir(O)&&e.selectionMode==="multiple"&&l!==!0&&(O.preventDefault(),e.selectAll());break;case"Escape":s==="clearSelection"&&!a&&e.selectedKeys.size!==0&&(O.stopPropagation(),O.preventDefault(),e.clearSelection());break;case"Tab":if(!p){if(O.shiftKey)n.current.focus();else{let G=qe(n.current,{tabbable:!0}),te,de;do de=G.lastChild(),de&&(te=de);while(de);te&&!te.contains(document.activeElement)&&He(te)}break}}},E=u.useRef({top:0,left:0});pn(y,"scroll",g?void 0:()=>{var O,z,B,M;E.current={top:(B=(O=y.current)===null||O===void 0?void 0:O.scrollTop)!==null&&B!==void 0?B:0,left:(M=(z=y.current)===null||z===void 0?void 0:z.scrollLeft)!==null&&M!==void 0?M:0}});let $=O=>{if(e.isFocused){O.currentTarget.contains(O.target)||e.setFocused(!1);return}if(O.currentTarget.contains(O.target)){if(e.setFocused(!0),e.focusedKey==null){var z,B;let F=I=>{I!=null&&(e.setFocusedKey(I),c&&!e.isSelected(I)&&e.replaceSelection(I))},_=O.relatedTarget;var M,R;_&&O.currentTarget.compareDocumentPosition(_)&Node.DOCUMENT_POSITION_FOLLOWING?F((M=e.lastSelectedKey)!==null&&M!==void 0?M:(z=r.getLastKey)===null||z===void 0?void 0:z.call(r)):F((R=e.firstSelectedKey)!==null&&R!==void 0?R:(B=r.getFirstKey)===null||B===void 0?void 0:B.call(r))}else!g&&y.current&&(y.current.scrollTop=E.current.top,y.current.scrollLeft=E.current.left);if(e.focusedKey!=null&&y.current){let F=Mn(n,e.focusedKey);F instanceof HTMLElement&&(!F.contains(document.activeElement)&&!f&&He(F),Xn()==="keyboard"&&Kl(F,{containingElement:n.current}))}}},w=O=>{O.currentTarget.contains(O.relatedTarget)||e.setFocused(!1)},x=u.useRef(!1);pn(n,A5,f?O=>{let{detail:z}=O;O.stopPropagation(),e.setFocused(!0),(z==null?void 0:z.focusStrategy)==="first"&&(x.current=!0)}:void 0);let S=ve(()=>{var O,z;let B=(z=(O=r.getFirstKey)===null||O===void 0?void 0:O.call(r))!==null&&z!==void 0?z:null;if(B==null){let M=xe();nc(n.current),ic(M,null),e.collection.size>0&&(x.current=!1)}else e.setFocusedKey(B),x.current=!1});Ll(()=>{x.current&&S()},[e.collection,S]);let N=ve(()=>{e.collection.size>0&&(x.current=!1)});Ll(()=>{N()},[e.focusedKey,N]),pn(n,P5,f?O=>{var z;O.stopPropagation(),e.setFocused(!1),!((z=O.detail)===null||z===void 0)&&z.clearFocusKey&&e.setFocusedKey(null)}:void 0);const K=u.useRef(i),V=u.useRef(!1);u.useEffect(()=>{if(K.current){var O,z;let R=null;var B;i==="first"&&(R=(B=(O=r.getFirstKey)===null||O===void 0?void 0:O.call(r))!==null&&B!==void 0?B:null);var M;i==="last"&&(R=(M=(z=r.getLastKey)===null||z===void 0?void 0:z.call(r))!==null&&M!==void 0?M:null);let F=e.selectedKeys;if(F.size){for(let _ of F)if(e.canSelectItem(_)){R=_;break}}e.setFocused(!0),e.setFocusedKey(R),R==null&&!f&&n.current&&bt(n.current),e.collection.size>0&&(K.current=!1,V.current=!0)}});let D=u.useRef(e.focusedKey),T=u.useRef(null);u.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==D.current||V.current)&&y.current&&n.current){let O=Xn(),z=Mn(n,e.focusedKey);if(!(z instanceof HTMLElement))return;(O==="keyboard"||V.current)&&(T.current&&cancelAnimationFrame(T.current),T.current=requestAnimationFrame(()=>{y.current&&(I2(y.current,z),O!=="virtual"&&Kl(z,{containingElement:n.current}))}))}!f&&e.isFocused&&e.focusedKey==null&&D.current!=null&&n.current&&bt(n.current),D.current=e.focusedKey,V.current=!1}),u.useEffect(()=>()=>{T.current&&cancelAnimationFrame(T.current)},[]),pn(n,"react-aria-focus-scope-restore",O=>{O.preventDefault(),e.setFocused(!0)});let Z={onKeyDown:C,onFocus:$,onBlur:w,onMouseDown(O){y.current===O.target&&O.preventDefault()}},{typeSelectProps:k}=qc({keyboardDelegate:r,selectionManager:e});d||(Z=ie(k,Z));let U;f||(U=e.focusedKey==null?0:-1);let P=T3(e.collection);return{collectionProps:ie(Z,{tabIndex:U,"data-collection":P})}}function el(t){let{id:e,selectionManager:r,key:n,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:a,focus:l,isDisabled:s,onAction:c,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=t,p=bi();e=Se(e);let g=B=>{if(B.pointerType==="keyboard"&&la(B))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(f==="selection"&&i.current){let M=r.getItemProps(n);p.open(i.current,B,M.href,M.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(f==="override"||f==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):B&&B.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||B&&(ir(B)||B.pointerType==="touch"||B.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};u.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(a?nc(i.current):l?l():document.activeElement!==i.current&&i.current&&bt(i.current))},[i,n,r.focusedKey,r.childFocusStrategy,r.isFocused,a]),s=s||r.isDisabled(n);let y={};!a&&!s?y={tabIndex:n===r.focusedKey?0:-1,onFocus(B){B.target===i.current&&r.setFocusedKey(n)}}:s&&(y.onMouseDown=B=>{B.preventDefault()});let h=r.isLink(n)&&f==="override",b=r.isLink(n)&&f!=="selection"&&f!=="none",m=!s&&r.canSelectItem(n)&&!h,C=(c||b)&&!s,E=C&&(r.selectionBehavior==="replace"?!m:!m||r.isEmpty),$=C&&m&&r.selectionBehavior==="replace",w=E||$,x=u.useRef(null),S=w&&m,N=u.useRef(!1),K=u.useRef(!1),V=r.getItemProps(n),D=B=>{c&&c(),b&&i.current&&p.open(i.current,B,V.href,V.routerOptions)},T={ref:i};if(o?(T.onPressStart=B=>{x.current=B.pointerType,N.current=S,B.pointerType==="keyboard"&&(!w||Ss())&&g(B)},d?(T.onPressUp=E?void 0:B=>{B.pointerType==="mouse"&&m&&g(B)},T.onPress=E?D:B=>{B.pointerType!=="keyboard"&&B.pointerType!=="mouse"&&m&&g(B)}):T.onPress=B=>{if(E||$&&B.pointerType!=="mouse"){if(B.pointerType==="keyboard"&&!Ds())return;D(B)}else B.pointerType!=="keyboard"&&m&&g(B)}):(T.onPressStart=B=>{x.current=B.pointerType,N.current=S,K.current=E,m&&(B.pointerType==="mouse"&&!E||B.pointerType==="keyboard"&&(!C||Ss()))&&g(B)},T.onPress=B=>{(B.pointerType==="touch"||B.pointerType==="pen"||B.pointerType==="virtual"||B.pointerType==="keyboard"&&w&&Ds()||B.pointerType==="mouse"&&K.current)&&(w?D(B):m&&g(B))}),y["data-collection"]=k3(r.collection),y["data-key"]=n,T.preventFocusOnPress=a,a&&(T=ie(T,{onPressStart(B){B.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(B){B.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),V)for(let B of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])V[B]&&(T[B]=gt(T[B],V[B]));let{pressProps:Z,isPressed:k}=wi(T),U=$?B=>{x.current==="mouse"&&(B.stopPropagation(),B.preventDefault(),D(B))}:void 0,{longPressProps:P}=Y2({isDisabled:!S,onLongPress(B){B.pointerType==="touch"&&(g(B),r.setSelectionBehavior("toggle"))}}),O=B=>{x.current==="touch"&&N.current&&B.preventDefault()},z=f!=="none"&&r.isLink(n)?B=>{At.isOpening||B.preventDefault()}:void 0;return{itemProps:ie(y,m||E||a&&!s?Z:{},S?P:{},{onDoubleClick:U,onDragStartCapture:O,onClick:z,id:e},a?{onMouseDown:B=>B.preventDefault()}:void 0),isPressed:k,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:s,allowsSelection:m,hasAction:w}}function Ds(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function Ss(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}class Fs{getItemRect(e){let r=this.ref.current;if(!r)return null;let n=e!=null?Mn(this.ref,e):null;if(!n)return null;let i=r.getBoundingClientRect(),o=n.getBoundingClientRect();return{x:o.left-i.left+r.scrollLeft,y:o.top-i.top+r.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;var r,n;return{width:(r=e==null?void 0:e.scrollWidth)!==null&&r!==void 0?r:0,height:(n=e==null?void 0:e.scrollHeight)!==null&&n!==void 0?n:0}}getVisibleRect(){let e=this.ref.current;var r,n,i,o;return{x:(r=e==null?void 0:e.scrollLeft)!==null&&r!==void 0?r:0,y:(n=e==null?void 0:e.scrollTop)!==null&&n!==void 0?n:0,width:(i=e==null?void 0:e.offsetWidth)!==null&&i!==void 0?i:0,height:(o=e==null?void 0:e.offsetHeight)!==null&&o!==void 0?o:0}}constructor(e){this.ref=e}}class tl{isDisabled(e){var r;return this.disabledBehavior==="all"&&(((r=e.props)===null||r===void 0?void 0:r.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,r){let n=e;for(;n!=null;){let i=this.collection.getItem(n);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return n;n=r(n)}return null}getNextKey(e){let r=e;return r=this.collection.getKeyAfter(r),this.findNextNonDisabled(r,n=>this.collection.getKeyAfter(n))}getPreviousKey(e){let r=e;return r=this.collection.getKeyBefore(r),this.findNextNonDisabled(r,n=>this.collection.getKeyBefore(n))}findKey(e,r,n){let i=e,o=this.layoutDelegate.getItemRect(i);if(!o||i==null)return null;let a=o;do{if(i=r(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&n(a,o)&&i!=null);return i}isSameRow(e,r){return e.y===r.y||e.x!==r.x}isSameColumn(e,r){return e.x===r.x||e.y!==r.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,r=>this.getNextKey(r),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,r=>this.getPreviousKey(r),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,r){return r?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let r=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[r]?(e=this.layoutDelegate[r](e),this.findNextNonDisabled(e,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let r=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[r]?(e=this.layoutDelegate[r](e),this.findNextNonDisabled(e,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,r=>this.collection.getKeyAfter(r))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,r=>this.collection.getKeyBefore(r))}getKeyPageAbove(e){let r=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(r&&!Gr(r))return this.getFirstKey();let i=e;if(this.orientation==="horizontal"){let o=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>o&&i!=null;)i=this.getKeyAbove(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>o&&i!=null;)i=this.getKeyAbove(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(e){let r=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(r&&!Gr(r))return this.getLastKey();let i=e;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<o&&i!=null;)i=this.getKeyBelow(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<o&&i!=null;)i=this.getKeyBelow(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(e,r){if(!this.collator)return null;let n=this.collection,i=r||this.getFirstKey();for(;i!=null;){let o=n.getItem(i);if(!o)return null;let a=o.textValue.slice(0,e.length);if(o.textValue&&this.collator.compare(a,e)===0)return i;i=this.getNextKey(i)}return null}constructor(...e){if(e.length===1){let r=e[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.disabledBehavior=r.disabledBehavior||"all",this.orientation=r.orientation||"vertical",this.direction=r.direction,this.layout=r.layout||"stack",this.layoutDelegate=r.layoutDelegate||new Fs(r.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new Fs(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Xc(t){let{selectionManager:e,collection:r,disabledKeys:n,ref:i,keyboardDelegate:o,layoutDelegate:a}=t,l=qa({usage:"search",sensitivity:"base"}),s=e.disabledBehavior,c=u.useMemo(()=>o||new tl({collection:r,disabledKeys:n,disabledBehavior:s,ref:i,collator:l,layoutDelegate:a}),[o,a,r,n,i,l,s]),{collectionProps:d}=Yc({...t,ref:i,selectionManager:e,keyboardDelegate:c});return{listProps:d}}function M3(t,e,r){let n=he(t,{labelable:!0}),i=t.selectionBehavior||"toggle",o=t.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&o==="action"&&(o="override");let{listProps:a}=Xc({...t,ref:r,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:o}),{focusWithinProps:l}=Di({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),s=Se(t.id);Qa.set(e,{id:s,shouldUseVirtualFocus:t.shouldUseVirtualFocus,shouldSelectOnPressUp:t.shouldSelectOnPressUp,shouldFocusOnHover:t.shouldFocusOnHover,isVirtualized:t.isVirtualized,onAction:t.onAction,linkBehavior:o});let{labelProps:c,fieldProps:d}=sc({...t,id:s,labelElementType:"span"});return{labelProps:c,listBoxProps:ie(n,l,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...ie(d,a)})}}class N3{build(e,r){return this.context=r,$s(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:r,items:n}=e;if(u.isValidElement(r)&&r.type===u.Fragment)yield*this.iterateCollection({children:r.props.children,items:n});else if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");let i=0;for(let o of n)yield*this.getFullNode({value:o,index:i},{renderer:r}),i++}else{let i=[];u.Children.forEach(r,a=>{a&&i.push(a)});let o=0;for(let a of i){let l=this.getFullNode({element:a,index:o},{});for(let s of l)o++,yield s}}}getKey(e,r,n,i){if(e.key!=null)return e.key;if(r.type==="cell"&&r.key!=null)return`${i}${r.key}`;let o=r.value;if(o!=null){var a;let l=(a=o.key)!==null&&a!==void 0?a:o.id;if(l==null)throw new Error("No key found for item");return l}return i?`${i}.${r.index}`:`$.${r.index}`}getChildState(e,r){return{renderer:r.renderer||e.renderer}}*getFullNode(e,r,n,i){if(u.isValidElement(e.element)&&e.element.type===u.Fragment){let b=[];u.Children.forEach(e.element.props.children,C=>{b.push(C)});var o;let m=(o=e.index)!==null&&o!==void 0?o:0;for(const C of b)yield*this.getFullNode({element:C,index:m++},r,n,i);return}let a=e.element;if(!a&&e.value&&r&&r.renderer){let b=this.cache.get(e.value);if(b&&(!b.shouldInvalidate||!b.shouldInvalidate(this.context))){b.index=e.index,b.parentKey=i?i.key:null,yield b;return}a=r.renderer(e.value)}if(u.isValidElement(a)){let b=a.type;if(typeof b!="function"&&typeof b.getCollectionNode!="function"){let $=a.type;throw new Error(`Unknown element <${$}> in collection.`)}let m=b.getCollectionNode(a.props,this.context);var l;let C=(l=e.index)!==null&&l!==void 0?l:0,E=m.next();for(;!E.done&&E.value;){let $=E.value;e.index=C;var s;let w=(s=$.key)!==null&&s!==void 0?s:null;w==null&&(w=$.element?null:this.getKey(a,e,r,n));let S=[...this.getFullNode({...$,key:w,index:C,wrapper:R3(e.wrapper,$.wrapper)},this.getChildState(r,$),n?`${n}${a.key}`:a.key,i)];for(let N of S){var c,d;N.value=(d=(c=$.value)!==null&&c!==void 0?c:e.value)!==null&&d!==void 0?d:null,N.value&&this.cache.set(N.value,N);var f;if(e.type&&N.type!==e.type)throw new Error(`Unsupported type <${co(N.type)}> in <${co((f=i==null?void 0:i.type)!==null&&f!==void 0?f:"unknown parent type")}>. Only <${co(e.type)}> is supported.`);C++,yield N}E=m.next(S)}return}if(e.key==null||e.type==null)return;let p=this;var g,y;let h={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:(g=e.value)!==null&&g!==void 0?g:null,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:(y=e.textValue)!==null&&y!==void 0?y:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:$s(function*(){if(!e.hasChildNodes||!e.childNodes)return;let b=0;for(let m of e.childNodes()){m.key!=null&&(m.key=`${h.key}${m.key}`);let C=p.getFullNode({...m,index:b},p.getChildState(r,m),h.key,h);for(let E of C)b++,yield E}})};yield h}constructor(){this.cache=new WeakMap}}function $s(t){let e=[],r=null;return{*[Symbol.iterator](){for(let n of e)yield n;r||(r=t());for(let n of r)e.push(n),yield n}}}function R3(t,e){if(t&&e)return r=>t(e(r));if(t)return t;if(e)return e}function co(t){return t[0].toUpperCase()+t.slice(1)}function Jc(t,e,r){let n=u.useMemo(()=>new N3,[]),{children:i,items:o,collection:a}=t;return u.useMemo(()=>{if(a)return a;let s=n.build({children:i,items:o},r);return e(s)},[n,i,o,a,r,e])}function Qc(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function B3(t){return L3(t)}function L3(t,e){for(let r of t)return r}function uo(t,e,r){if(e.parentKey===r.parentKey)return e.index-r.index;let n=[..._s(t,e),e],i=[..._s(t,r),r],o=n.slice(0,i.length).findIndex((a,l)=>a!==i[l]);return o!==-1?(e=n[o],r=i[o],e.index-r.index):n.findIndex(a=>a===r)>=0?1:(i.findIndex(a=>a===e)>=0,-1)}function _s(t,e){let r=[],n=e;for(;(n==null?void 0:n.parentKey)!=null;)n=t.getItem(n.parentKey),n&&r.unshift(n);return r}const Ps=new WeakMap;function eu(t){let e=Ps.get(t);if(e!=null)return e;let r=0,n=i=>{for(let o of i)o.type==="section"?n(Qc(o,t)):o.type==="item"&&r++};return n(t),Ps.set(t,r),r}function j3(t,e,r){var n,i;let{key:o}=t,a=Qa.get(e);var l;let s=(l=t.isDisabled)!==null&&l!==void 0?l:e.selectionManager.isDisabled(o);var c;let d=(c=t.isSelected)!==null&&c!==void 0?c:e.selectionManager.isSelected(o);var f;let p=(f=t.shouldSelectOnPressUp)!==null&&f!==void 0?f:a==null?void 0:a.shouldSelectOnPressUp;var g;let y=(g=t.shouldFocusOnHover)!==null&&g!==void 0?g:a==null?void 0:a.shouldFocusOnHover;var h;let b=(h=t.shouldUseVirtualFocus)!==null&&h!==void 0?h:a==null?void 0:a.shouldUseVirtualFocus;var m;let C=(m=t.isVirtualized)!==null&&m!==void 0?m:a==null?void 0:a.isVirtualized,E=ht(),$=ht(),w={role:"option","aria-disabled":s||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?d:void 0};vt()&&Oa()||(w["aria-label"]=t["aria-label"],w["aria-labelledby"]=E,w["aria-describedby"]=$);let x=e.collection.getItem(o);if(C){let O=Number(x==null?void 0:x.index);w["aria-posinset"]=Number.isNaN(O)?void 0:O+1,w["aria-setsize"]=eu(e.collection)}let S=a!=null&&a.onAction?()=>{var O;return a==null||(O=a.onAction)===null||O===void 0?void 0:O.call(a,o)}:void 0,N=A3(e,o),{itemProps:K,isPressed:V,isFocused:D,hasAction:T,allowsSelection:Z}=el({selectionManager:e.selectionManager,key:o,ref:r,shouldSelectOnPressUp:p,allowsDifferentPressOrigin:p&&y,isVirtualized:C,shouldUseVirtualFocus:b,isDisabled:s,onAction:S||!(x==null||(n=x.props)===null||n===void 0)&&n.onAction?gt(x==null||(i=x.props)===null||i===void 0?void 0:i.onAction,S):void 0,linkBehavior:a==null?void 0:a.linkBehavior,id:N}),{hoverProps:k}=xr({isDisabled:s||!y,onHoverStart(){mr()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(o))}}),U=he(x==null?void 0:x.props);delete U.id;let P=Na(x==null?void 0:x.props);return{optionProps:{...w,...ie(U,K,k,P),id:N},labelProps:{id:E},descriptionProps:{id:$},isFocused:D,isFocusVisible:D&&e.selectionManager.isFocused&&mr(),isSelected:d,isDisabled:s,isPressed:V,allowsSelection:Z,hasAction:T}}function K3(t){let{heading:e,"aria-label":r}=t,n=Se();return{itemProps:{role:"presentation"},headingProps:e?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":e?n:void 0}}}var tu={};tu={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var ru={};ru={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var nu={};nu={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var iu={};iu={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var ou={};ou={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var au={};au={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var lu={};lu={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var su={};su={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var cu={};cu={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var uu={};uu={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var du={};du={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var fu={};fu={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var hu={};hu={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var pu={};pu={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var gu={};gu={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var vu={};vu={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var bu={};bu={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var mu={};mu={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var yu={};yu={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Cu={};Cu={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var Eu={};Eu={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var wu={};wu={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var xu={};xu={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var Du={};Du={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var Su={};Su={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var Fu={};Fu={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var $u={};$u={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var _u={};_u={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var Pu={};Pu={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Au={};Au={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var Tu={};Tu={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var ku={};ku={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var Iu={};Iu={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Ou={};Ou={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var Mu={};Mu={"ar-AE":tu,"bg-BG":ru,"cs-CZ":nu,"da-DK":iu,"de-DE":ou,"el-GR":au,"en-US":lu,"es-ES":su,"et-EE":cu,"fi-FI":uu,"fr-FR":du,"he-IL":fu,"hr-HR":hu,"hu-HU":pu,"it-IT":gu,"ja-JP":vu,"ko-KR":bu,"lt-LT":mu,"lv-LV":yu,"nb-NO":Cu,"nl-NL":Eu,"pl-PL":wu,"pt-BR":xu,"pt-PT":Du,"ro-RO":Su,"ru-RU":Fu,"sk-SK":$u,"sl-SI":_u,"sr-SP":Pu,"sv-SE":Au,"tr-TR":Tu,"uk-UA":ku,"zh-CN":Iu,"zh-TW":Ou};function V3(t){return t&&t.__esModule?t.default:t}function H3(t,e,r){let{type:n="menu",isDisabled:i,trigger:o="press"}=t,a=Se(),{triggerProps:l,overlayProps:s}=g3({type:n},e,r),c=g=>{if(!i&&!(o==="longPress"&&!g.altKey)&&r&&r.current)switch(g.key){case"Enter":case" ":if(o==="longPress"||g.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),e.toggle("first");break;case"ArrowUp":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),e.toggle("last");break;default:"continuePropagation"in g&&g.continuePropagation()}},d=ec(V3(Mu),"@react-aria/menu"),{longPressProps:f}=Y2({isDisabled:i||o!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){e.close()},onLongPress(){e.open("first")}}),p={preventFocusOnPress:!0,onPressStart(g){g.pointerType!=="touch"&&g.pointerType!=="keyboard"&&!i&&(He(g.target),e.open(g.pointerType==="virtual"?"first":null))},onPress(g){g.pointerType==="touch"&&!i&&(He(g.target),e.toggle())}};return delete l.onPress,{menuTriggerProps:{...l,...o==="press"?p:f,id:a,onKeyDown:c},menuProps:{...s,"aria-labelledby":a,autoFocus:e.focusStrategy||!0,onClose:e.close}}}const Nu=new WeakMap;function z3(t,e,r){let{shouldFocusWrap:n=!0,onKeyDown:i,onKeyUp:o,...a}=t;!t["aria-label"]&&!t["aria-labelledby"]&&process.env.NODE_ENV!=="production"&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let l=he(t,{labelable:!0}),{listProps:s}=Xc({...a,ref:r,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:n,linkBehavior:"override"});return Nu.set(e,{onClose:t.onClose,onAction:t.onAction,shouldUseVirtualFocus:t.shouldUseVirtualFocus}),{menuProps:ie(l,{onKeyDown:i,onKeyUp:o},{role:"menu",...s,onKeyDown:c=>{var d;(c.key!=="Escape"||t.shouldUseVirtualFocus)&&((d=s.onKeyDown)===null||d===void 0||d.call(s,c))}})}}function U3(t,e,r){let{id:n,key:i,closeOnSelect:o,isVirtualized:a,"aria-haspopup":l,onPressStart:s,onPressUp:c,onPress:d,onPressChange:f,onPressEnd:p,onClick:g,onHoverStart:y,onHoverChange:h,onHoverEnd:b,onKeyDown:m,onKeyUp:C,onFocus:E,onFocusChange:$,onBlur:w,selectionManager:x=e.selectionManager}=t,S=!!l,N=S&&t["aria-expanded"]==="true";var K;let V=(K=t.isDisabled)!==null&&K!==void 0?K:x.isDisabled(i);var D;let T=(D=t.isSelected)!==null&&D!==void 0?D:x.isSelected(i),Z=Nu.get(e),k=e.collection.getItem(i),U=t.onClose||Z.onClose,P=bi(),O=()=>{var re;if(!S&&(!(k==null||(re=k.props)===null||re===void 0)&&re.onAction?k.props.onAction():t.onAction&&t.onAction(i),Z.onAction)){let pe=Z.onAction;pe(i)}},z="menuitem";S||(x.selectionMode==="single"?z="menuitemradio":x.selectionMode==="multiple"&&(z="menuitemcheckbox"));let B=ht(),M=ht(),R=ht(),F={id:n,"aria-disabled":V||void 0,role:z,"aria-label":t["aria-label"],"aria-labelledby":B,"aria-describedby":[M,R].filter(Boolean).join(" ")||void 0,"aria-controls":t["aria-controls"],"aria-haspopup":l,"aria-expanded":t["aria-expanded"]};x.selectionMode!=="none"&&!S&&(F["aria-checked"]=T),a&&(F["aria-posinset"]=k==null?void 0:k.index,F["aria-setsize"]=eu(e.collection));let _=u.useRef(!1),I=re=>{f==null||f(re),_.current=re},L=u.useRef(null),j=re=>{re.pointerType!=="keyboard"&&(L.current={pointerType:re.pointerType}),re.pointerType==="mouse"&&(_.current||re.target.click()),c==null||c(re)},H=re=>{var pe,Ut;g==null||g(re),O(),C5(re,P,k.props.href,k==null?void 0:k.props.routerOptions);let Sr=((pe=L.current)===null||pe===void 0?void 0:pe.pointerType)==="keyboard"?((Ut=L.current)===null||Ut===void 0?void 0:Ut.key)==="Enter"||x.selectionMode==="none"||x.isLink(i):x.selectionMode!=="multiple"||x.isLink(i);Sr=o??Sr,U&&!S&&Sr&&U(),L.current=null},{itemProps:W,isFocused:q}=el({id:n,selectionManager:x,key:i,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:Z.shouldUseVirtualFocus}),{pressProps:Y,isPressed:le}=wi({onPressStart:s,onPress:d,onPressUp:j,onPressChange:I,onPressEnd:p,isDisabled:V}),{hoverProps:G}=xr({isDisabled:V,onHoverStart(re){!mr()&&!(N&&l)&&(x.setFocused(!0),x.setFocusedKey(i)),y==null||y(re)},onHoverChange:h,onHoverEnd:b}),{keyboardProps:te}=G2({onKeyDown:re=>{if(re.repeat){re.continuePropagation();return}switch(re.key){case" ":L.current={pointerType:"keyboard",key:" "},re.target.click();break;case"Enter":L.current={pointerType:"keyboard",key:"Enter"},re.target.tagName!=="A"&&re.target.click();break;default:S||re.continuePropagation(),m==null||m(re);break}},onKeyUp:C}),{focusProps:de}=Wa({onBlur:w,onFocus:E,onFocusChange:$}),Be=he(k==null?void 0:k.props);delete Be.id;let zt=Na(k==null?void 0:k.props);return{menuItemProps:{...F,...ie(Be,zt,S?{onFocus:W.onFocus,"data-collection":W["data-collection"],"data-key":W["data-key"]}:W,Y,G,te,de,Z.shouldUseVirtualFocus||S?{onMouseDown:re=>re.preventDefault()}:void 0,V?void 0:{onClick:H}),tabIndex:W.tabIndex!=null&&N&&!Z.shouldUseVirtualFocus?-1:W.tabIndex},labelProps:{id:B},descriptionProps:{id:M},keyboardShortcutProps:{id:R},isFocused:q,isFocusVisible:q&&x.isFocused&&mr()&&!N,isSelected:T,isPressed:le,isDisabled:V}}function W3(t){let{heading:e,"aria-label":r}=t,n=Se();return{itemProps:{role:"presentation"},headingProps:e?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":e?n:void 0}}}function Z3(t,e){let{role:r="dialog"}=t,n=ht();n=t["aria-label"]?void 0:n;let i=u.useRef(!1);return u.useEffect(()=>{if(e.current&&!e.current.contains(document.activeElement)){bt(e.current);let o=setTimeout(()=>{(document.activeElement===e.current||document.activeElement===document.body)&&(i.current=!0,e.current&&(e.current.blur(),bt(e.current)),i.current=!1)},500);return()=>{clearTimeout(o)}}},[e]),_3(),{dialogProps:{...he(t,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":t["aria-labelledby"]||n,onBlur:o=>{i.current&&o.stopPropagation()}},titleProps:{id:n}}}const rl=new WeakMap;function G3(t,e,r){let{keyboardDelegate:n,isDisabled:i,isRequired:o,name:a,form:l,validationBehavior:s="aria"}=t,c=qa({usage:"search",sensitivity:"base"}),d=u.useMemo(()=>n||new tl(e.collection,e.disabledKeys,r,c),[n,e.collection,e.disabledKeys,c,r]),{menuTriggerProps:f,menuProps:p}=H3({isDisabled:i,type:"listbox"},e,r),g=K=>{switch(K.key){case"ArrowLeft":{var V,D;K.preventDefault();let k=e.selectedKey!=null?(V=d.getKeyAbove)===null||V===void 0?void 0:V.call(d,e.selectedKey):(D=d.getFirstKey)===null||D===void 0?void 0:D.call(d);k&&e.setSelectedKey(k);break}case"ArrowRight":{var T,Z;K.preventDefault();let k=e.selectedKey!=null?(T=d.getKeyBelow)===null||T===void 0?void 0:T.call(d,e.selectedKey):(Z=d.getFirstKey)===null||Z===void 0?void 0:Z.call(d);k&&e.setSelectedKey(k);break}}},{typeSelectProps:y}=qc({keyboardDelegate:d,selectionManager:e.selectionManager,onTypeSelect(K){e.setSelectedKey(K)}}),{isInvalid:h,validationErrors:b,validationDetails:m}=e.displayValidation,{labelProps:C,fieldProps:E,descriptionProps:$,errorMessageProps:w}=t3({...t,labelElementType:"span",isInvalid:h,errorMessage:t.errorMessage||b});y.onKeyDown=y.onKeyDownCapture,delete y.onKeyDownCapture;let x=he(t,{labelable:!0}),S=ie(y,f,E),N=Se();return rl.set(e,{isDisabled:i,isRequired:o,name:a,form:l,validationBehavior:s}),{labelProps:{...C,onClick:()=>{if(!t.isDisabled){var K;(K=r.current)===null||K===void 0||K.focus(),Z2("keyboard")}}},triggerProps:ie(x,{...S,isDisabled:i,onKeyDown:gt(S.onKeyDown,g,t.onKeyDown),onKeyUp:t.onKeyUp,"aria-labelledby":[N,S["aria-labelledby"],S["aria-label"]&&!S["aria-labelledby"]?S.id:null].filter(Boolean).join(" "),onFocus(K){e.isFocused||(t.onFocus&&t.onFocus(K),t.onFocusChange&&t.onFocusChange(!0),e.setFocused(!0))},onBlur(K){e.isOpen||(t.onBlur&&t.onBlur(K),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))}}),valueProps:{id:N},menuProps:{...p,autoFocus:e.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:K=>{K.currentTarget.contains(K.relatedTarget)||(t.onBlur&&t.onBlur(K),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))},"aria-labelledby":[E["aria-labelledby"],S["aria-label"]&&!E["aria-labelledby"]?S.id:null].filter(Boolean).join(" ")},descriptionProps:$,errorMessageProps:w,isInvalid:h,validationErrors:b,validationDetails:m,hiddenSelectProps:{isDisabled:i,name:a,label:t.label,state:e,triggerRef:r,form:l}}}function q3(t,e,r){let n=rl.get(e)||{},{autoComplete:i,name:o=n.name,form:a=n.form,isDisabled:l=n.isDisabled}=t,{validationBehavior:s,isRequired:c}=n,{visuallyHiddenProps:d}=cc({style:{position:"fixed",top:0,left:0}});$5(t.selectRef,e.defaultSelectedKey,e.setSelectedKey),X4({validationBehavior:s,focus:()=>{var g;return(g=r.current)===null||g===void 0?void 0:g.focus()}},e,t.selectRef);let f=u.useCallback(g=>e.setSelectedKey(g.currentTarget.value),[e.setSelectedKey]);var p;return{containerProps:{...d,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:i,disabled:l,required:s==="native"&&c,name:o,form:a,value:(p=e.selectedKey)!==null&&p!==void 0?p:"",onChange:f,onInput:f}}}function Y3(t){let{state:e,triggerRef:r,label:n,name:i,form:o,isDisabled:a}=t,l=u.useRef(null),s=u.useRef(null),{containerProps:c,selectProps:d}=q3({...t,selectRef:e.collection.size<=300?l:s},e,r);if(e.collection.size<=300)return u.createElement("div",{...c,"data-testid":"hidden-select-container"},u.createElement("label",null,n,u.createElement("select",{...d,ref:l},u.createElement("option",null),[...e.collection.getKeys()].map(p=>{let g=e.collection.getItem(p);if(g&&g.type==="item")return u.createElement("option",{key:g.key,value:g.key},g.textValue)}))));if(i){let p=rl.get(e)||{},{validationBehavior:g}=p;var f;let y={type:"hidden",autoComplete:d.autoComplete,name:i,form:o,disabled:a,value:(f=e.selectedKey)!==null&&f!==void 0?f:""};return g==="native"?u.createElement("input",{...y,ref:s,style:{display:"none"},type:"text",required:d.required,onChange:()=>{}}):u.createElement("input",{...y,ref:s})}return null}function X3(t){let e=he(t,{labelable:!0}),r;return t.orientation==="vertical"&&(r="vertical"),t.elementType!=="hr"?{separatorProps:{...e,role:"separator","aria-orientation":r}}:{separatorProps:e}}const Ru=new WeakMap;function ti(t,e,r){if(!t)return"";typeof e=="string"&&(e=e.replace(/\s+/g,""));let n=Ru.get(t);return process.env.NODE_ENV!=="production"&&!n&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${n}-${r}-${e}`}function J3(t,e,r){let{key:n,isDisabled:i,shouldSelectOnPressUp:o}=t,{selectionManager:a,selectedKey:l}=e,s=n===l,c=i||e.isDisabled||e.selectionManager.isDisabled(n),{itemProps:d,isPressed:f}=el({selectionManager:a,key:n,ref:r,isDisabled:c,shouldSelectOnPressUp:o,linkBehavior:"selection"}),p=ti(e,n,"tab"),g=ti(e,n,"tabpanel"),{tabIndex:y}=d,h=e.collection.getItem(n),b=he(h==null?void 0:h.props,{labelable:!0});delete b.id;let m=Na(h==null?void 0:h.props),{focusableProps:C}=q2({isDisabled:c},r);return{tabProps:ie(b,C,m,d,{id:p,"aria-selected":s,"aria-disabled":c||void 0,"aria-controls":s?g:void 0,tabIndex:c?void 0:y,role:"tab"}),isSelected:s,isDisabled:c,isPressed:f}}function Q3(t,e,r){let n=H4(r)?void 0:0;var i;const o=ti(e,(i=t.id)!==null&&i!==void 0?i:e==null?void 0:e.selectedKey,"tabpanel"),a=yi({...t,id:o,"aria-labelledby":ti(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:ie(a,{tabIndex:n,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}class eh{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var r,n;return this.disabledKeys.has(e)||!!(!((n=this.collection.getItem(e))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let r=e;do r=this.collection.getKeyAfter(r),r==null&&(r=this.collection.getFirstKey());while(r!=null&&this.isDisabled(r));return r}getPreviousKey(e){let r=e;do r=this.collection.getKeyBefore(r),r==null&&(r=this.collection.getLastKey());while(r!=null&&this.isDisabled(r));return r}constructor(e,r,n,i=new Set){this.collection=e,this.flipDirection=r==="rtl"&&n==="horizontal",this.disabledKeys=i,this.tabDirection=n==="horizontal"}}function th(t,e,r){let{orientation:n="horizontal",keyboardActivation:i="automatic"}=t,{collection:o,selectionManager:a,disabledKeys:l}=e,{direction:s}=jt(),c=u.useMemo(()=>new eh(o,s,n,l),[o,l,n,s]),{collectionProps:d}=Yc({ref:r,selectionManager:a,keyboardDelegate:c,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:r,linkBehavior:"selection"}),f=Se();Ru.set(e,f);let p=yi({...t,id:f});return{tabListProps:{...ie(d,p),role:"tablist","aria-orientation":n,tabIndex:void 0}}}const Bu=u.createContext({}),rh=Va(function(e,r){[e,r]=Xe(e,r,Bu);let{elementType:n="label",...i}=e;return u.createElement(n,{className:"react-aria-Label",...i,ref:r})}),nh=u.createContext(null),ih=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),nl=u.createContext({}),oh=Va(function(e,r){[e,r]=Xe(e,r,nl),e=ah(e);let n=e,{isPending:i}=n,{buttonProps:o,isPressed:a}=M4(e,r),{focusProps:l,isFocused:s,isFocusVisible:c}=Dr(e),{hoverProps:d,isHovered:f}=xr({...e,isDisabled:e.isDisabled||i}),p={isHovered:f,isPressed:(n.isPressed||a)&&!i,isFocused:s,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:i??!1},g=Fe({...e,values:p,defaultClassName:"react-aria-Button"}),y=Se(o.id),h=Se(),b=o["aria-labelledby"];i&&(b?b=`${b} ${h}`:o["aria-label"]&&(b=`${y} ${h}`));let m=u.useRef(i);return u.useEffect(()=>{let C={"aria-labelledby":b||y};(!m.current&&s&&i||m.current&&s&&!i)&&ds(C,"assertive"),m.current=i},[i,s,b,y]),u.createElement("button",{...he(e,{propNames:ih}),...ie(o,l,d),...g,type:o.type==="submit"&&i?"button":o.type,id:y,ref:r,"aria-labelledby":b,slot:e.slot||void 0,"aria-disabled":i?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":p.isPressed||void 0,"data-hovered":f||void 0,"data-focused":s||void 0,"data-pending":i||void 0,"data-focus-visible":c||void 0},u.createElement(nh.Provider,{value:{id:h}},g.children))});function ah(t){return t.isPending&&(t.onPress=void 0,t.onPressStart=void 0,t.onPressEnd=void 0,t.onPressChange=void 0,t.onPressUp=void 0,t.onKeyDown=void 0,t.onKeyUp=void 0,t.onClick=void 0,t.href=void 0),t}const il=u.createContext({}),lh=u.createContext(null);class As{*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let r=this.keyMap.get(e);var n;return r&&(n=r.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(e){let r=this.keyMap.get(e);var n;return r&&(n=r.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var r;return(r=this.keyMap.get(e))!==null&&r!==void 0?r:null}at(e){const r=[...this.getKeys()];return this.getItem(r[e])}getChildren(e){let r=this.keyMap.get(e);return(r==null?void 0:r.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let r=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&l.type==="section")for(let s of l.childNodes)r(s)};for(let l of e)r(l);let n=null,i=0,o=0;for(let[l,s]of this.keyMap)n?(n.nextKey=l,s.prevKey=n.key):(this.firstKey=l,s.prevKey=void 0),s.type==="item"&&(s.index=i++),(s.type==="section"||s.type==="item")&&o++,n=s,n.nextKey=void 0;this._size=o;var a;this.lastKey=(a=n==null?void 0:n.key)!==null&&a!==void 0?a:null}}class Ke extends Set{constructor(e,r,n){super(e),e instanceof Ke?(this.anchorKey=r??e.anchorKey,this.currentKey=n??e.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}}function sh(t,e){if(t.size!==e.size)return!1;for(let r of t)if(!e.has(r))return!1;return!0}function ol(t){let{selectionMode:e="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:i="toggle",disabledBehavior:o="all"}=t,a=u.useRef(!1),[,l]=u.useState(!1),s=u.useRef(null),c=u.useRef(null),[,d]=u.useState(null),f=u.useMemo(()=>Ts(t.selectedKeys),[t.selectedKeys]),p=u.useMemo(()=>Ts(t.defaultSelectedKeys,new Ke),[t.defaultSelectedKeys]),[g,y]=Ci(f,p,t.onSelectionChange),h=u.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[b,m]=u.useState(i);i==="replace"&&b==="toggle"&&typeof g=="object"&&g.size===0&&m("replace");let C=u.useRef(i);return u.useEffect(()=>{i!==C.current&&(m(i),C.current=i)},[i]),{selectionMode:e,disallowEmptySelection:r,selectionBehavior:b,setSelectionBehavior:m,get isFocused(){return a.current},setFocused(E){a.current=E,l(E)},get focusedKey(){return s.current},get childFocusStrategy(){return c.current},setFocusedKey(E,$="first"){s.current=E,c.current=$,d(E)},selectedKeys:g,setSelectedKeys(E){(n||!sh(E,g))&&y(E)},disabledKeys:h,disabledBehavior:o}}function Ts(t,e){return t?t==="all"?"all":new Ke(t):e}class cn{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,r){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let r=this.getKey(e);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=e.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let n of this.state.selectedKeys){let i=this.collection.getItem(n);(!e||i&&uo(this.collection,i,e)<0)&&(e=i)}var r;return(r=e==null?void 0:e.key)!==null&&r!==void 0?r:null}get lastSelectedKey(){let e=null;for(let n of this.state.selectedKeys){let i=this.collection.getItem(n);(!e||i&&uo(this.collection,i,e)>0)&&(e=i)}var r;return(r=e==null?void 0:e.key)!==null&&r!==void 0?r:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let r=this.getKey(e);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new Ke([r],r,r);else{let a=this.state.selectedKeys;var i;let l=(i=a.anchorKey)!==null&&i!==void 0?i:r;n=new Ke(a,l,r);var o;for(let s of this.getKeyRange(l,(o=a.currentKey)!==null&&o!==void 0?o:r))n.delete(s);for(let s of this.getKeyRange(r,l))this.canSelectItem(s)&&n.add(s)}this.state.setSelectedKeys(n)}getKeyRange(e,r){let n=this.collection.getItem(e),i=this.collection.getItem(r);return n&&i?uo(this.collection,n,i)<=0?this.getKeyRangeInternal(e,r):this.getKeyRangeInternal(r,e):[]}getKeyRangeInternal(e,r){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(e,r);let i=[],o=e;for(;o!=null;){let a=this.collection.getItem(o);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===r)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(e){let r=this.collection.getItem(e);if(!r||r.type==="cell"&&this.allowsCellSelection)return e;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let r=this.getKey(e);if(r==null)return;let n=new Ke(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode==="none")return;let r=this.getKey(e);if(r==null)return;let n=this.canSelectItem(r)?new Ke([r],r,r):new Ke;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode==="none")return;let r=new Ke;for(let n of e){let i=this.getKey(n);if(i!=null&&(r.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let e=[],r=n=>{for(;n!=null;){if(this.canSelectItem(n)){var i;let a=this.collection.getItem(n);(a==null?void 0:a.type)==="item"&&e.push(n);var o;a!=null&&a.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&r((o=(i=B3(Qc(a,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Ke)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(e.size!==r.size)return!1;for(let n of e)if(!r.has(n))return!1;for(let n of r)if(!e.has(n))return!1;return!0}canSelectItem(e){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!(!n||!(n==null||(r=n.props)===null||r===void 0)&&r.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var r,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((n=this.collection.getItem(e))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled))}isLink(e){var r,n;return!!(!((n=this.collection.getItem(e))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}getItemProps(e){var r;return(r=this.collection.getItem(e))===null||r===void 0?void 0:r.props}withCollection(e){return new cn(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,r,n){this.collection=e,this.state=r;var i;this.allowsCellSelection=(i=n==null?void 0:n.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(n==null?void 0:n.layoutDelegate)||null}}function Lu(t){let{filter:e,layoutDelegate:r}=t,n=ol(t),i=u.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),o=u.useCallback(c=>e?new As(e(c)):new As(c),[e]),a=u.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),l=Jc(t,o,a),s=u.useMemo(()=>new cn(l,n,{layoutDelegate:r}),[l,n,r]);return ju(l,s),{collection:l,disabledKeys:i,selectionManager:s}}function ch(t,e){let r=u.useMemo(()=>e?t.collection.filter(e):t.collection,[t.collection,e]),n=t.selectionManager.withCollection(r);return ju(r,n),{collection:r,selectionManager:n,disabledKeys:t.disabledKeys}}function ju(t,e){const r=u.useRef(null);u.useEffect(()=>{if(e.focusedKey!=null&&!t.getItem(e.focusedKey)&&r.current){const d=r.current.getItem(e.focusedKey),f=[...r.current.getKeys()].map(m=>{const C=r.current.getItem(m);return(C==null?void 0:C.type)==="item"?C:null}).filter(m=>m!==null),p=[...t.getKeys()].map(m=>{const C=t.getItem(m);return(C==null?void 0:C.type)==="item"?C:null}).filter(m=>m!==null);var n,i;const g=((n=f==null?void 0:f.length)!==null&&n!==void 0?n:0)-((i=p==null?void 0:p.length)!==null&&i!==void 0?i:0);var o,a,l;let y=Math.min(g>1?Math.max(((o=d==null?void 0:d.index)!==null&&o!==void 0?o:0)-g+1,0):(a=d==null?void 0:d.index)!==null&&a!==void 0?a:0,((l=p==null?void 0:p.length)!==null&&l!==void 0?l:0)-1),h=null,b=!1;for(;y>=0;){if(!e.isDisabled(p[y].key)){h=p[y];break}if(y<p.length-1&&!b)y++;else{b=!0;var s,c;y>((s=d==null?void 0:d.index)!==null&&s!==void 0?s:0)&&(y=(c=d==null?void 0:d.index)!==null&&c!==void 0?c:0),y--}}e.setFocusedKey(h?h.key:null)}r.current=t},[t,e])}function Ku(t){var e;let[r,n]=Ci(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),i=u.useMemo(()=>r!=null?[r]:[],[r]),{collection:o,disabledKeys:a,selectionManager:l}=Lu({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:c=>{if(c==="all")return;var d;let f=(d=c.values().next().value)!==null&&d!==void 0?d:null;f===r&&t.onSelectionChange&&t.onSelectionChange(f),n(f)}}),s=r!=null?o.getItem(r):null;return{collection:o,disabledKeys:a,selectionManager:l,selectedKey:r,setSelectedKey:n,selectedItem:s}}function al(t){let[e,r]=Ci(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const n=u.useCallback(()=>{r(!0)},[r]),i=u.useCallback(()=>{r(!1)},[r]),o=u.useCallback(()=>{r(!e)},[r,e]);return{isOpen:e,setOpen:r,open:n,close:i,toggle:o}}function uh(t){let{initialItems:e=[],initialSelectedKeys:r,getKey:n=h=>{var b;return(b=h.id)!==null&&b!==void 0?b:h.key},getChildren:i=h=>h.children}=t,[o,a]=u.useState(()=>f(e,new Map)),{items:l,nodeMap:s}=o,[c,d]=u.useState(new Set(r||[]));function f(h=[],b,m){return h==null&&(h=[]),{items:h.map(C=>{let E={key:n(C),parentKey:m??null,value:C,children:null};return E.children=f(i(C),b,E.key).items,b.set(E.key,E),E}),nodeMap:b}}function p(h,b,m,C){let E=b==null?null:C.get(b);if(E==null)return{items:h,nodeMap:C};let $=new Map(C),w=m(E);for(w==null?y(E,$):g(w,$);E&&E.parentKey;){let S=$.get(E.parentKey),N={key:S.key,parentKey:S.parentKey,value:S.value,children:null},K=S.children;w==null&&K&&(K=K.filter(V=>V!==E));var x;N.children=(x=K==null?void 0:K.map(V=>V===E?w:V))!==null&&x!==void 0?x:null,$.set(N.key,N),w=N,E=S}return w==null&&(h=h.filter(S=>S!==E)),{items:h.map(S=>S===E?w:S),nodeMap:$}}function g(h,b){if(b.set(h.key,h),h.children)for(let m of h.children)g(m,b)}function y(h,b){if(b.delete(h.key),h.children)for(let m of h.children)y(m,b)}return{items:l,selectedKeys:c,setSelectedKeys:d,getItem(h){return s.get(h)},insert(h,b,...m){a(({items:C,nodeMap:E})=>{let{items:$,nodeMap:w}=f(m,E,h);return h==null?{items:[...C.slice(0,b),...$,...C.slice(b)],nodeMap:w}:p(C,h,x=>({key:x.key,parentKey:x.parentKey,value:x.value,children:[...x.children.slice(0,b),...$,...x.children.slice(b)]}),w)})},insertBefore(h,...b){let m=s.get(h);if(!m)return;let C=s.get(m.parentKey),$=(C?C.children:l).indexOf(m);var w;this.insert((w=C==null?void 0:C.key)!==null&&w!==void 0?w:null,$,...b)},insertAfter(h,...b){let m=s.get(h);if(!m)return;let C=s.get(m.parentKey),$=(C?C.children:l).indexOf(m);var w;this.insert((w=C==null?void 0:C.key)!==null&&w!==void 0?w:null,$+1,...b)},prepend(h,...b){this.insert(h,0,...b)},append(h,...b){if(h==null)this.insert(null,l.length,...b);else{let m=s.get(h);if(!m)return;this.insert(h,m.children.length,...b)}},remove(...h){if(h.length===0)return;let b=l,m=s,C;for(let $ of h)C=p(b,$,()=>null,m),m=C.nodeMap,b=C.items;a(C);let E=new Set(c);for(let $ of c)C.nodeMap.has($)||E.delete($);d(E)},removeSelectedItems(){this.remove(...c)},move(h,b,m){a(({items:C,nodeMap:E})=>{let $=E.get(h);if(!$)return{items:C,nodeMap:E};let{items:w,nodeMap:x}=p(C,h,()=>null,E);const S={...$,parentKey:b};return b==null?(g(S,x),{items:[...w.slice(0,m),S,...w.slice(m)],nodeMap:x}):p(w,b,N=>({key:N.key,parentKey:N.parentKey,value:N.value,children:[...N.children.slice(0,m),S,...N.children.slice(m)]}),x)})},moveBefore(h,b){a(m=>{let{items:C,nodeMap:E}=m,$=E.get(h);if(!$)return m;var w;let x=(w=$.parentKey)!==null&&w!==void 0?w:null,S=null;var N;x!=null&&(S=(N=E.get(x))!==null&&N!==void 0?N:null);let K=S!=null&&S.children?S.children.indexOf($):C.indexOf($);return ks(m,b,S,K,p,g)})},moveAfter(h,b){a(m=>{let{items:C,nodeMap:E}=m,$=E.get(h);if(!$)return m;var w;let x=(w=$.parentKey)!==null&&w!==void 0?w:null,S=null;var N;x!=null&&(S=(N=E.get(x))!==null&&N!==void 0?N:null);let K=S!=null&&S.children?S.children.indexOf($):C.indexOf($);return K++,ks(m,b,S,K,p,g)})},update(h,b){a(({items:m,nodeMap:C})=>p(m,h,E=>{let $={key:E.key,parentKey:E.parentKey,value:b,children:null},w=f(i(b),C,$.key);return $.children=w.items,$},C))}}}function ks(t,e,r,n,i,o){let{items:a,nodeMap:l}=t,s=r,c=new Set(e);for(;(s==null?void 0:s.parentKey)!=null;){if(c.has(s.key))throw new Error("Cannot move an item to be a child of itself.");var d;s=(d=l.get(s.parentKey))!==null&&d!==void 0?d:null}let f=n,p=Array.isArray(e)?e:[...e],g=new Map,y=[],h=a,b=l,m=0;function C(x,{inorder:S,postorder:N}){S==null||S(x);var K;if(x!=null)for(let V of(K=x.children)!==null&&K!==void 0?K:[])C(V,{inorder:S,postorder:N}),N==null||N(V)}function E(x){p.includes(x.key)&&g.set(x.key,m++)}function $(x){if(p.includes(x.key)){var S;y.push({...b.get(x.key),parentKey:(S=r==null?void 0:r.key)!==null&&S!==void 0?S:null});let{items:N,nodeMap:K}=i(h,x.key,()=>null,b);h=N,b=K}(x.parentKey===r||x.parentKey===(r==null?void 0:r.key))&&p.includes(x.key)&&(r!=null&&r.children?r.children.indexOf(x):a.indexOf(x))<f&&n--}C({children:a},{inorder:E,postorder:$});let w=y.sort((x,S)=>g.get(x.key)>g.get(S.key)?1:-1);return!r||r.key==null?(w.forEach(x=>{o(x,b)}),{items:[...h.slice(0,n),...w,...h.slice(n)],nodeMap:b}):i(h,r.key,x=>({key:x.key,parentKey:x.parentKey,value:x.value,children:[...x.children.slice(0,n),...w,...x.children.slice(n)]}),b)}function dh(t){let e=al(t),[r,n]=u.useState(null),[i,o]=u.useState([]),a=()=>{o([]),e.close()};return{focusStrategy:r,...e,open(c=null){n(c),e.open()},toggle(c=null){n(c),e.toggle()},close(){a()},expandedKeysStack:i,openSubmenu:(c,d)=>{o(f=>d>f.length?f:[...f.slice(0,d),c])},closeSubmenu:(c,d)=>{o(f=>f[d]===c?f.slice(0,d):f)}}}function fh(t){let e=al(t),[r,n]=u.useState(null),i=Ku({...t,onSelectionChange:d=>{t.onSelectionChange!=null&&t.onSelectionChange(d),e.close(),o.commitValidation()}}),o=G4({...t,value:i.selectedKey}),[a,l]=u.useState(!1),[s]=u.useState(i.selectedKey);var c;return{...o,...i,...e,defaultSelectedKey:(c=t.defaultSelectedKey)!==null&&c!==void 0?c:s,focusStrategy:r,open(d=null){i.collection.size!==0&&(n(d),e.open())},toggle(d=null){i.collection.size!==0&&(n(d),e.toggle())},isFocused:a,setFocused:l}}function hh(t){var e,r;let n=Ku({...t,onSelectionChange:t.onSelectionChange?s=>{var c;s!=null&&((c=t.onSelectionChange)===null||c===void 0||c.call(t,s))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(r=(e=t.defaultSelectedKey)!==null&&e!==void 0?e:Is(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set))!==null&&r!==void 0?r:void 0}),{selectionManager:i,collection:o,selectedKey:a}=n,l=u.useRef(a);return u.useEffect(()=>{let s=a;t.selectedKey==null&&(i.isEmpty||s==null||!o.getItem(s))&&(s=Is(o,n.disabledKeys),s!=null&&i.setSelectedKeys([s])),(s!=null&&i.focusedKey==null||!i.isFocused&&s!==l.current)&&i.setFocusedKey(s),l.current=s}),{...n,isDisabled:t.isDisabled||!1}}function Is(t,e){let r=null;if(t){var n,i,o,a;for(r=t.getFirstKey();r!=null&&(e.has(r)||!((i=t.getItem(r))===null||i===void 0||(n=i.props)===null||n===void 0)&&n.isDisabled)&&r!==t.getLastKey();)r=t.getKeyAfter(r);r!=null&&(e.has(r)||!((a=t.getItem(r))===null||a===void 0||(o=a.props)===null||o===void 0)&&o.isDisabled)&&r===t.getLastKey()&&(r=t.getFirstKey())}return r}class ph{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let r=this.keyMap.get(e);var n;return r&&(n=r.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(e){let r=this.keyMap.get(e);var n;return r&&(n=r.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var r;return(r=this.keyMap.get(e))!==null&&r!==void 0?r:null}at(e){const r=[...this.getKeys()];return this.getItem(r[e])}constructor(e,{expandedKeys:r}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,r=r||new Set;let n=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&(l.type==="section"||r.has(l.key)))for(let s of l.childNodes)n(s)};for(let l of e)n(l);let i=null,o=0;for(let[l,s]of this.keyMap)i?(i.nextKey=l,s.prevKey=i.key):(this.firstKey=l,s.prevKey=void 0),s.type==="item"&&(s.index=o++),i=s,i.nextKey=void 0;var a;this.lastKey=(a=i==null?void 0:i.key)!==null&&a!==void 0?a:null}}function gh(t){let{onExpandedChange:e}=t,[r,n]=Ci(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,e),i=ol(t),o=u.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),a=Jc(t,u.useCallback(s=>new ph(s,{expandedKeys:r}),[r]),null);return u.useEffect(()=>{i.focusedKey!=null&&!a.getItem(i.focusedKey)&&i.setFocusedKey(null)},[a,i.focusedKey]),{collection:a,expandedKeys:r,disabledKeys:o,toggleKey:s=>{n(vh(r,s))},setExpandedKeys:n,selectionManager:new cn(a,i)}}function vh(t,e){let r=new Set(t);return r.has(e)?r.delete(e):r.add(e),r}const bh=u.createContext(null),sa=u.createContext(null),Vu=u.createContext(null),Hu={CollectionRoot({collection:t,renderDropIndicator:e}){return Os(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:r}){return Os(t,e,r)}};function Os(t,e,r){return B2({items:e?t.getChildren(e.key):t,dependencies:[r],children(n){var i;let o=n.render(n);if(!r||n.type!=="item")return o;let a=n.key,l=t.getKeyAfter(a);return u.createElement(u.Fragment,null,r({type:"item",key:a,dropPosition:"before"}),o,(l==null||((i=t.getItem(l))===null||i===void 0?void 0:i.type)!=="item")&&r({type:"item",key:a,dropPosition:"after"}))}})}const Kt=u.createContext(Hu);function zu(t){return u.useMemo(()=>t!=null?new Set([t]):null,[t])}const _i=u.createContext({}),Uu=u.createContext(null),mh=u.forwardRef(function(e,r){let{render:n}=u.useContext(Uu);return u.createElement(u.Fragment,null,n(e,r))});function Wu(t,e){var r;let n=t==null?void 0:t.renderDropIndicator,i=t==null||(r=t.isVirtualDragging)===null||r===void 0?void 0:r.call(t),o=u.useCallback(a=>{if(i||e!=null&&e.isDropTarget(a))return n?n(a):u.createElement(mh,{target:a})},[e==null?void 0:e.target,i,n]);return t!=null&&t.useDropIndicator?o:void 0}function yh(t,e,r){var n,i;let o=t.focusedKey,a=null;if(!(e==null||(n=e.isVirtualDragging)===null||n===void 0)&&n.call(e)&&(r==null||(i=r.target)===null||i===void 0?void 0:i.type)==="item"){a=r.target.key;var l;r.target.dropPosition==="after"&&(a=(l=r.collection.getKeyAfter(a))!==null&&l!==void 0?l:a)}return u.useMemo(()=>new Set([o,a].filter(s=>s!=null)),[o,a])}const Zu=u.createContext({}),ll=u.createContext({}),ri=Fi("separator",function(e,r){[e,r]=Xe(e,r,ll);let{elementType:n,orientation:i,style:o,className:a,slot:l,...s}=e,c=n||"hr";c==="hr"&&i==="vertical"&&(c="div");let{separatorProps:d}=X3({...s,elementType:n,orientation:i});return u.createElement(c,{...he(e),...d,style:o,className:a??"react-aria-Separator",ref:r,slot:l||void 0})}),sl=u.createContext(null),un=u.createContext(null),Ch=u.forwardRef(function(e,r){[e,r]=Xe(e,r,sl);let n=u.useContext(un);return n?u.createElement(Gu,{state:n,props:e,listBoxRef:r}):u.createElement(Si,{content:u.createElement(Ga,e)},i=>u.createElement(Eh,{props:e,listBoxRef:r,collection:i}))});function Eh({props:t,listBoxRef:e,collection:r}){t={...t,collection:r,children:null,items:null};let{layoutDelegate:n}=u.useContext(Kt),i=Lu({...t,layoutDelegate:n});return u.createElement(Gu,{state:i,props:t,listBoxRef:e})}function Gu({state:t,props:e,listBoxRef:r}){let{filter:n,collectionProps:i,collectionRef:o}=u.useContext(sa)||{};e=u.useMemo(()=>i?{...e,...i}:e,[e,i]);let{dragAndDropHooks:a,layout:l="stack",orientation:s="vertical"}=e;r=nt(u.useMemo(()=>ka(r,o!==void 0?o:null),[o,r]));let c=ch(t,n),{collection:d,selectionManager:f}=c,p=!!(a!=null&&a.useDraggableCollectionState),g=!!(a!=null&&a.useDroppableCollectionState),{direction:y}=jt(),{disabledBehavior:h,disabledKeys:b}=f,m=qa({usage:"search",sensitivity:"base"}),{isVirtualized:C,layoutDelegate:E,dropTargetDelegate:$,CollectionRoot:w}=u.useContext(Kt),x=u.useMemo(()=>e.keyboardDelegate||new tl({collection:d,collator:m,ref:r,disabledKeys:b,disabledBehavior:h,layout:l,orientation:s,direction:y,layoutDelegate:E}),[d,m,r,h,b,s,y,e.keyboardDelegate,l,E]),{listBoxProps:S}=M3({...e,shouldSelectOnPressUp:p||e.shouldSelectOnPressUp,keyboardDelegate:x,isVirtualized:C},c,r),N=u.useRef(p),K=u.useRef(g);u.useEffect(()=>{process.env.NODE_ENV!=="production"&&(N.current!==p&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),K.current!==g&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[p,g]);let V,D,T,Z=!1,k=null,U=u.useRef(null);if(p&&a){V=a.useDraggableCollectionState({collection:d,selectionManager:f,preview:a.renderDragPreview?U:void 0}),a.useDraggableCollection({},V,r);let F=a.DragPreview;k=a.renderDragPreview?u.createElement(F,{ref:U},a.renderDragPreview):null}if(g&&a){D=a.useDroppableCollectionState({collection:d,selectionManager:f});let F=a.dropTargetDelegate||$||new a.ListDropTargetDelegate(d,r,{orientation:s,layout:l,direction:y});T=a.useDroppableCollection({keyboardDelegate:x,dropTargetDelegate:F},D,r),Z=D.isDropTarget({type:"root"})}let{focusProps:P,isFocused:O,isFocusVisible:z}=Dr(),B={isDropTarget:Z,isEmpty:c.collection.size===0,isFocused:O,isFocusVisible:z,layout:e.layout||"stack",state:c},M=Fe({className:e.className,style:e.style,defaultClassName:"react-aria-ListBox",values:B}),R=null;return c.collection.size===0&&e.renderEmptyState&&(R=u.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(B))),u.createElement(Ya,null,u.createElement("div",{...he(e),...ie(S,P,T==null?void 0:T.collectionProps),...M,ref:r,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":Z||void 0,"data-empty":c.collection.size===0||void 0,"data-focused":O||void 0,"data-focus-visible":z||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},u.createElement(it,{values:[[sl,e],[un,c],[_i,{dragAndDropHooks:a,dragState:V,dropState:D}],[ll,{elementType:"div"}],[Uu,{render:Dh}],[Vu,{name:"ListBoxSection",render:wh}]]},u.createElement(w,{collection:d,scrollRef:r,persistedKeys:yh(f,a,D),renderDropIndicator:Wu(a,D)})),R,k))}function wh(t,e,r,n="react-aria-ListBoxSection"){let i=u.useContext(un),{dragAndDropHooks:o,dropState:a}=u.useContext(_i),{CollectionBranch:l}=u.useContext(Kt),[s,c]=La();var d;let{headingProps:f,groupProps:p}=K3({heading:c,"aria-label":(d=t["aria-label"])!==null&&d!==void 0?d:void 0}),g=Fe({defaultClassName:n,className:t.className,style:t.style,values:{}});return u.createElement("section",{...he(t),...p,...g,ref:e},u.createElement(Zu.Provider,{value:{...f,ref:s}},u.createElement(l,{collection:i.collection,parent:r,renderDropIndicator:Wu(o,a)})))}const xh=Fi("item",function(e,r,n){let i=nt(r),o=u.useContext(un),{dragAndDropHooks:a,dragState:l,dropState:s}=u.useContext(_i),{optionProps:c,labelProps:d,descriptionProps:f,...p}=j3({key:n.key,"aria-label":e==null?void 0:e["aria-label"]},o,i),{hoverProps:g,isHovered:y}=xr({isDisabled:!p.allowsSelection&&!p.hasAction,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),h=null;l&&a&&(h=a.useDraggableItem({key:n.key},l));let b=null;s&&a&&(b=a.useDroppableItem({target:{type:"item",key:n.key,dropPosition:"on"}},s,i));let m=l&&l.isDragging(n.key),C=Fe({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...p,isHovered:y,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior,allowsDragging:!!l,isDragging:m,isDropTarget:b==null?void 0:b.isDropTarget}});u.useEffect(()=>{!n.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[n.textValue]);let E=e.href?"a":"div";return u.createElement(E,{...ie(c,g,h==null?void 0:h.dragProps,b==null?void 0:b.dropProps),...C,ref:i,"data-allows-dragging":!!l||void 0,"data-selected":p.isSelected||void 0,"data-disabled":p.isDisabled||void 0,"data-hovered":y||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":p.isFocusVisible||void 0,"data-pressed":p.isPressed||void 0,"data-dragging":m||void 0,"data-drop-target":(b==null?void 0:b.isDropTarget)||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode},u.createElement(it,{values:[[il,{slots:{[qr]:d,label:d,description:f}}]]},C.children))});function Dh(t,e){e=nt(e);let{dragAndDropHooks:r,dropState:n}=u.useContext(_i),{dropIndicatorProps:i,isHidden:o,isDropTarget:a}=r.useDropIndicator(t,n,e);return o?null:u.createElement(Fh,{...t,dropIndicatorProps:i,isDropTarget:a,ref:e})}function Sh(t,e){let{dropIndicatorProps:r,isDropTarget:n,...i}=t,o=Fe({...i,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:n}});return u.createElement("div",{...r,...o,role:"option",ref:e,"data-drop-target":n||void 0})}const Fh=u.forwardRef(Sh),$h=u.createContext({placement:"bottom"}),qu=u.createContext(null),Ms=u.createContext(null),Pi=u.forwardRef(function(e,r){[e,r]=Xe(e,r,qu);let n=u.useContext(ul),i=al(e),o=e.isOpen!=null||e.defaultOpen!=null||!n?i:n,a=k5(r,o.isOpen)||e.isExiting||!1,l=V5(),{direction:s}=jt();if(l){let c=e.children;return typeof c=="function"&&(c=c({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),u.createElement(u.Fragment,null,c)}return o&&!o.isOpen&&!a?null:u.createElement(_h,{...e,triggerRef:e.triggerRef,state:o,popoverRef:r,isExiting:a,dir:s})});function _h({state:t,isExiting:e,UNSTABLE_portalContainer:r,...n}){let i=u.useRef(null),[o,a]=u.useState(0),l=u.useRef(null),s=u.useContext(Ms),c=s&&n.trigger==="SubmenuTrigger";ne(()=>{i.current&&t.isOpen&&a(i.current.getBoundingClientRect().width)},[t.isOpen,i]);var d;let{popoverProps:f,underlayProps:p,arrowProps:g,placement:y}=$3({...n,offset:(d=n.offset)!==null&&d!==void 0?d:8,arrowSize:o,groupRef:c?s:l},t),h=n.popoverRef,b=T5(h,!!y)||n.isEntering||!1,m=Fe({...n,defaultClassName:"react-aria-Popover",values:{trigger:n.trigger||null,placement:y,isEntering:b,isExiting:e}}),C=!n.isNonModal||n.trigger==="SubmenuTrigger",[E,$]=u.useState(!1);ne(()=>{h.current&&$(C&&!h.current.querySelector("[role=dialog]"))},[h,C]),u.useEffect(()=>{E&&h.current&&!h.current.contains(document.activeElement)&&bt(h.current)},[E,h]);let w={...f.style,...m.style},x=u.createElement("div",{...ie(he(n),f),...m,role:E?"dialog":void 0,tabIndex:E?-1:void 0,"aria-label":n["aria-label"],"aria-labelledby":n["aria-labelledby"],ref:h,slot:n.slot||void 0,style:w,dir:n.dir,"data-trigger":n.trigger,"data-placement":y,"data-entering":b||void 0,"data-exiting":e||void 0},!n.isNonModal&&u.createElement(ws,{onDismiss:t.close}),u.createElement($h.Provider,{value:{...g,placement:y,ref:i}},m.children),u.createElement(ws,{onDismiss:t.close}));if(!c)return u.createElement(xs,{...n,shouldContainFocus:E,isExiting:e,portalContainer:r},!n.isNonModal&&t.isOpen&&u.createElement("div",{"data-testid":"underlay",...p,style:{position:"fixed",inset:0}}),u.createElement("div",{ref:l,style:{display:"contents"}},u.createElement(Ms.Provider,{value:l},x)));var S;return u.createElement(xs,{...n,shouldContainFocus:E,isExiting:e,portalContainer:(S=r??(s==null?void 0:s.current))!==null&&S!==void 0?S:void 0},x)}const Ph=u.createContext({}),Ah=u.createContext(null),cl=u.createContext(null),Ns=u.createContext(null),ni=u.createContext(null),Th=u.createContext(null),Yu=u.forwardRef(function(e,r){return[e,r]=Xe(e,r,Ah),u.createElement(Si,{content:u.createElement(Ga,e)},n=>u.createElement(kh,{props:e,collection:n,menuRef:r}))});function kh({props:t,collection:e,menuRef:r}){let{filter:n,collectionProps:i,collectionRef:o}=u.useContext(sa)||{};r=nt(u.useMemo(()=>ka(r,o!==void 0?o:null),[o,r]));let a=u.useMemo(()=>n?e.UNSTABLE_filter(n):e,[e,n]),l=gh({...t,collection:a,children:void 0}),s=u.useContext(Ns),{isVirtualized:c,CollectionRoot:d}=u.useContext(Kt),{menuProps:f}=z3({...t,...i,isVirtualized:c,onClose:t.onClose||(s==null?void 0:s.close)},l,r),p=Fe({defaultClassName:"react-aria-Menu",className:t.className,style:t.style,values:{isEmpty:l.collection.size===0}}),g=null;return l.collection.size===0&&t.renderEmptyState&&(g=u.createElement("div",{role:"menuitem",style:{display:"contents"}},t.renderEmptyState())),u.createElement(Ya,null,u.createElement("div",{...he(t),...f,...p,ref:r,slot:t.slot||void 0,"data-empty":l.collection.size===0||void 0,onScroll:t.onScroll},u.createElement(it,{values:[[cl,l],[ll,{elementType:"div"}],[Vu,{name:"MenuSection",render:Oh}],[Th,{parentMenuRef:r,shouldUseVirtualFocus:i==null?void 0:i.shouldUseVirtualFocus}],[ca,null],[sa,null],[ni,l.selectionManager],[Ns,s??dh({})]]},u.createElement(d,{collection:l.collection,persistedKeys:zu(l.selectionManager.focusedKey),scrollRef:r})),g))}class Ih extends cn{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,r){return this.parent.setFocusedKey(e,r)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,r){super(e.collection,r),this.parent=e}}function Oh(t,e,r,n="react-aria-MenuSection"){var i,o;let a=u.useContext(cl),{CollectionBranch:l}=u.useContext(Kt),[s,c]=La();var d;let{headingProps:f,groupProps:p}=W3({heading:c,"aria-label":(d=r.props["aria-label"])!==null&&d!==void 0?d:void 0}),g=Fe({defaultClassName:n,className:(i=r.props)===null||i===void 0?void 0:i.className,style:(o=r.props)===null||o===void 0?void 0:o.style,values:{}}),y=u.useContext(ni),h=ol(t),b=t.selectionMode!=null?new Ih(y,h):y;return u.createElement("section",{...he(t),...p,...g,ref:e},u.createElement(it,{values:[[Zu,{...f,ref:s}],[ni,b]]},u.createElement(l,{collection:a.collection,parent:r})))}const ca=u.createContext(null),ua=Fi("item",function(e,r,n){var i;[e,r]=Xe(e,r,ca);let o=(i=Ei(ca))===null||i===void 0?void 0:i.id,a=u.useContext(cl),l=nt(r),s=u.useContext(ni),{menuItemProps:c,labelProps:d,descriptionProps:f,keyboardShortcutProps:p,...g}=U3({...e,id:o,key:n.key,selectionManager:s},a,l),{hoverProps:y,isHovered:h}=xr({isDisabled:g.isDisabled}),b=Fe({...e,id:void 0,children:n.rendered,defaultClassName:"react-aria-MenuItem",values:{...g,isHovered:h,isFocusVisible:g.isFocusVisible,selectionMode:s.selectionMode,selectionBehavior:s.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),m=e.href?"a":"div";return u.createElement(m,{...ie(c,y),...b,ref:l,"data-disabled":g.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":g.isFocused||void 0,"data-focus-visible":g.isFocusVisible||void 0,"data-pressed":g.isPressed||void 0,"data-selected":g.isSelected||void 0,"data-selection-mode":s.selectionMode==="none"?void 0:s.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},u.createElement(it,{values:[[il,{slots:{[qr]:d,label:d,description:f}}],[Ph,p]]},b.children))}),Mh=u.createContext(null),ul=u.createContext(null),Nh=u.forwardRef(function(e,r){let n=e["aria-labelledby"];[e,r]=Xe(e,r,Mh);let{dialogProps:i,titleProps:o}=Z3({...e,"aria-labelledby":n},r),a=u.useContext(ul);!i["aria-label"]&&!i["aria-labelledby"]&&(e["aria-labelledby"]?i["aria-labelledby"]=e["aria-labelledby"]:process.env.NODE_ENV!=="production"&&console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));let l=Fe({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(a==null?void 0:a.close)||(()=>{})}});return u.createElement("section",{...he(e),...i,...l,ref:r,slot:e.slot||void 0},u.createElement(it,{values:[[jf,{slots:{[qr]:{},title:{...o,level:2}}}],[nl,{slots:{[qr]:{},close:{onPress:()=>a==null?void 0:a.close()}}}]]},l.children))}),Xu=u.createContext(null),Ju=u.createContext(null),Rh=u.forwardRef(function(e,r){[e,r]=Xe(e,r,Xu);let{children:n,isDisabled:i=!1,isInvalid:o=!1,isRequired:a=!1}=e,l=u.useMemo(()=>typeof n=="function"?n({isOpen:!1,isDisabled:i,isInvalid:o,isRequired:a,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):n,[n,i,o,a]);return u.createElement(Si,{content:l},s=>u.createElement(Bh,{props:e,collection:s,selectRef:r}))});function Bh({props:t,selectRef:e,collection:r}){let{validationBehavior:n}=Ei(bh)||{};var i,o;let a=(o=(i=t.validationBehavior)!==null&&i!==void 0?i:n)!==null&&o!==void 0?o:"native",l=fh({...t,collection:r,children:void 0,validationBehavior:a}),{isFocusVisible:s,focusProps:c}=Dr({within:!0}),d=u.useRef(null),[f,p]=La(!t["aria-label"]&&!t["aria-labelledby"]),{labelProps:g,triggerProps:y,valueProps:h,menuProps:b,descriptionProps:m,errorMessageProps:C,...E}=G3({...L5(t),label:p,validationBehavior:a},l,d),[$,w]=u.useState(null),x=u.useCallback(()=>{d.current&&w(d.current.offsetWidth+"px")},[d]);Uo({ref:d,onResize:x});let S=u.useMemo(()=>({isOpen:l.isOpen,isFocused:l.isFocused,isFocusVisible:s,isDisabled:t.isDisabled||!1,isInvalid:E.isInvalid||!1,isRequired:t.isRequired||!1}),[l.isOpen,l.isFocused,s,t.isDisabled,E.isInvalid,t.isRequired]),N=Fe({...t,values:S,defaultClassName:"react-aria-Select"}),K=he(t);delete K.id;let V=u.useRef(null);return u.createElement(it,{values:[[Xu,t],[Ju,l],[Lh,h],[Bu,{...g,ref:f,elementType:"span"}],[nl,{...y,ref:d,isPressed:l.isOpen}],[ul,l],[qu,{trigger:"Select",triggerRef:d,scrollRef:V,placement:"bottom start",style:{"--trigger-width":$},"aria-labelledby":b["aria-labelledby"]}],[sl,{...b,ref:V}],[un,l],[il,{slots:{description:m,errorMessage:C}}],[lh,E]]},u.createElement("div",{...K,...N,...c,ref:e,slot:t.slot||void 0,"data-focused":l.isFocused||void 0,"data-focus-visible":s||void 0,"data-open":l.isOpen||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":E.isInvalid||void 0,"data-required":t.isRequired||void 0}),u.createElement(Y3,{autoComplete:t.autoComplete,state:l,triggerRef:d,label:p,name:t.name,isDisabled:t.isDisabled}))}const Lh=u.createContext(null),Ai=u.createContext(null),yr=u.createContext(null),jh=u.forwardRef(function(e,r){[e,r]=Xe(e,r,Ai);let{children:n,orientation:i="horizontal"}=e;return n=u.useMemo(()=>typeof n=="function"?n({orientation:i,defaultChildren:null}):n,[n,i]),u.createElement(Si,{content:n},o=>u.createElement(Kh,{props:e,collection:o,tabsRef:r}))});function Kh({props:t,tabsRef:e,collection:r}){let{orientation:n="horizontal"}=t,i=hh({...t,collection:r,children:void 0}),{focusProps:o,isFocused:a,isFocusVisible:l}=Dr({within:!0}),s=u.useMemo(()=>({orientation:n,isFocusWithin:a,isFocusVisible:l}),[n,a,l]),c=Fe({...t,defaultClassName:"react-aria-Tabs",values:s});return u.createElement("div",{...he(t),...o,...c,ref:e,slot:t.slot||void 0,"data-focused":a||void 0,"data-orientation":n,"data-focus-visible":l||void 0,"data-disabled":i.isDisabled||void 0},u.createElement(it,{values:[[Ai,t],[yr,i]]},c.children))}const Vh=u.forwardRef(function(e,r){return u.useContext(yr)?u.createElement(Hh,{props:e,forwardedRef:r}):u.createElement(Ga,e)});function Hh({props:t,forwardedRef:e}){let r=u.useContext(yr),{CollectionRoot:n}=u.useContext(Kt),{orientation:i="horizontal",keyboardActivation:o="automatic"}=Ei(Ai),a=nt(e),{tabListProps:l}=th({...t,orientation:i,keyboardActivation:o},r,a),s=Fe({...t,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:r}}),c=he(t);return delete c.id,u.createElement("div",{...c,...l,ref:a,...s,"data-orientation":i||void 0},u.createElement(n,{collection:r.collection,persistedKeys:zu(r.selectionManager.focusedKey)}))}const zh=Fi("item",(t,e,r)=>{let n=u.useContext(yr),i=nt(e),{tabProps:o,isSelected:a,isDisabled:l,isPressed:s}=J3({key:r.key,...t},n,i),{focusProps:c,isFocused:d,isFocusVisible:f}=Dr(),{hoverProps:p,isHovered:g}=xr({isDisabled:l,onHoverStart:t.onHoverStart,onHoverEnd:t.onHoverEnd,onHoverChange:t.onHoverChange}),y=Fe({...t,id:void 0,children:r.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:a,isDisabled:l,isFocused:d,isFocusVisible:f,isPressed:s,isHovered:g}}),h=r.props.href?"a":"div";return u.createElement(h,{...ie(o,c,p,y),ref:i,"data-selected":a||void 0,"data-disabled":l||void 0,"data-focused":d||void 0,"data-focus-visible":f||void 0,"data-pressed":s||void 0,"data-hovered":g||void 0},y.children)}),Uh=Va(function(e,r){const n=u.useContext(yr);let i=nt(r),{tabPanelProps:o}=Q3(e,n,i),{focusProps:a,isFocused:l,isFocusVisible:s}=Dr(),c=n.selectedKey===e.id,d=Fe({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:l,isFocusVisible:s,isInert:!c,state:n}});if(!c&&!e.shouldForceMount)return null;let f=he(e);delete f.id;let p=c?ie(f,o,a,d):d;return u.createElement("div",{...p,ref:i,"data-focused":l||void 0,"data-focus-visible":s||void 0,inert:_5(!c),"data-inert":c?void 0:"true"},u.createElement(it,{values:[[Ai,null],[yr,null]]},u.createElement(Kt.Provider,{value:Hu},d.children)))}),Wh=t=>"type"in t&&t.type==="separator",kt=({options:t,isOpen:e=!1,onOpenChange:r,children:n,selectedValues:i=[],onSelectValue:o,topMessage:a,shouldCloseOnInteractOutside:l})=>{const s=u.useId(),c=u.useRef(null),d=f=>{r==null||r(f)};return v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"c__dropdown-menu-trigger",ref:c,id:s,onClick:f=>{f.stopPropagation(),f.preventDefault()},children:n}),v.jsx(Pi,{triggerRef:c,style:{marginTop:"0px"},isOpen:e,shouldCloseOnInteractOutside:l,onOpenChange:d,children:v.jsxs(Yu,{className:"c__dropdown-menu","aria-labelledby":s,children:[a&&v.jsx(ua,{className:"c__dropdown-menu-item-top-message",children:a}),t.map((f,p)=>{if(Wh(f))return v.jsx(ri,{},`separator-${p}`);if(f.isHidden)return null;const g=f.id||f.label;return v.jsxs(u.Fragment,{children:[v.jsxs(ua,{className:`c__dropdown-menu-item${f.variant==="danger"?" c__dropdown-menu-item--danger":""}`,"aria-label":f.label,onAction:()=>{var y;f.value&&(o==null||o(f.value)),(y=f.callback)==null||y.call(f),d(!1)},isDisabled:f.isDisabled,"data-testid":f.testId,children:[f.icon,v.jsxs("div",{className:"c__dropdown-menu-item__label-container",children:[v.jsx("div",{className:"c__dropdown-menu-item__label","aria-label":f.label,children:f.label}),f.subText&&v.jsx("div",{className:"c__dropdown-menu-item__label-subtext",children:f.subText})]}),(f.isChecked||f.value&&i.includes(f.value))&&v.jsx("span",{className:"material-icons checked",children:"check"})]}),f.showSeparator&&v.jsx(ri,{})]},g)})]})})]})},mt=()=>{const[t,e]=u.useState(!1);return{isOpen:t,setIsOpen:e}},da=u.createContext(null),Qu=()=>{const t=u.useContext(da);if(!t)throw new Error("ContextMenu must be used within a ContextMenuProvider");return t},fo=t=>!("type"in t),Rs=(t,e)=>t.id||`${t.label}-${e}`,Zh=({children:t})=>{const e=u.useContext(da),[r,n]=u.useState({isOpen:!1,position:{x:0,y:0},items:[]}),i=u.useRef(null),o=u.useRef(!1),a=u.useRef(void 0),l=e!==null;u.useEffect(()=>{o.current=r.isOpen},[r.isOpen]),u.useEffect(()=>{l||i.current&&(i.current.style.left=`${r.position.x}px`,i.current.style.top=`${r.position.y}px`)},[r.position,l]),u.useEffect(()=>{if(l)return;const f=p=>{var g;o.current&&(p.preventDefault(),(g=a.current)==null||g.call(a),a.current=void 0,n(y=>({...y,isOpen:!1})))};return document.addEventListener("contextmenu",f,!0),()=>{document.removeEventListener("contextmenu",f,!0)}},[l]);const s=u.useCallback(f=>{var p;(p=a.current)==null||p.call(a),a.current=f.onBlur,n({isOpen:!0,position:f.position,items:f.items})},[]),c=u.useCallback(()=>{var f;(f=a.current)==null||f.call(a),a.current=void 0,n(p=>({...p,isOpen:!1}))},[]),d=u.useMemo(()=>({open:s,close:c}),[s,c]);return l?(process.env.NODE_ENV!=="production"&&console.error("ContextMenuProvider: Multiple instances detected. Only one ContextMenuProvider should exist in your app tree. Nested providers will be ignored."),v.jsx(v.Fragment,{children:t})):v.jsxs(da.Provider,{value:d,children:[t,v.jsx("div",{ref:i,style:{position:"fixed",left:r.position.x,top:r.position.y,width:0,height:0,pointerEvents:"none"}}),v.jsx(Pi,{triggerRef:i,isOpen:r.isOpen,onOpenChange:f=>{f||c()},placement:"bottom start",shouldFlip:!0,children:v.jsx(Yu,{className:"c__dropdown-menu","aria-label":"Context menu","data-testid":"context-menu",onAction:f=>{var g;const p=r.items.find((y,h)=>fo(y)&&Rs(y,h)===f);p&&fo(p)&&!p.isDisabled&&((g=p.callback)==null||g.call(p),c())},children:r.items.map((f,p)=>{if(!fo(f))return v.jsx(ri,{},`separator-${p}`);if(f.isHidden)return null;const g=Rs(f,p);return v.jsxs(ua,{id:g,className:`c__dropdown-menu-item${f.variant==="danger"?" c__dropdown-menu-item--danger":""}`,"aria-label":f.label,isDisabled:f.isDisabled,"data-testid":f.testId||`context-menu-item-${g}`,children:[f.icon,v.jsxs("div",{className:"c__dropdown-menu-item__label-container",children:[v.jsx("div",{className:"c__dropdown-menu-item__label",children:f.label}),f.subText&&v.jsx("div",{className:"c__dropdown-menu-item__label-subtext",children:f.subText})]})]},g)})})})]})},Gh=({children:t,options:e,context:r,disabled:n=!1,asChild:i=!1,onFocus:o,onBlur:a})=>{const{open:l}=Qu(),s=c=>{if(n)return;c.preventDefault(),c.stopPropagation();const d=typeof e=="function"?e(r):e;o==null||o(),l({position:{x:c.clientX,y:c.clientY},items:d,onBlur:a})};if(i){if(!u.isValidElement(t))return console.warn("ContextMenu with asChild requires a single React element as child"),v.jsx(v.Fragment,{children:t});const c=t,d=c.props.onContextMenu;return u.cloneElement(c,{onContextMenu:f=>{d==null||d(f),s(f)}})}return v.jsx("div",{onContextMenu:s,"data-testid":"context-menu-trigger",children:t})},Bs="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M10%206v2H5v11h11v-5h2v6a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1V7a1%201%200%200%201%201-1h6Zm11-3v8h-2V6.413l-7.793%207.794-1.414-1.414L17.585%205H13V3h8Z'%20/%3e%3c/svg%3e",qh="data:image/svg+xml,%3csvg%20width='109'%20height='60'%20viewBox='0%200%20109%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3crect%20width='33'%20height='12'%20fill='url(%23paint0_linear_5795_13250)'%20/%3e%3cg%20clip-path='url(%23clip0_5795_13250)'%3e%3cg%20clip-path='url(%23clip1_5795_13250)'%3e%3cpath%20d='M8.475%206.8999C7.8%207.3499%207.2%207.8749%206.75%208.4749V8.3999C7.05%208.0249%207.275%207.6499%207.5%207.2749C7.8%207.1249%208.025%206.8999%208.25%206.6749C8.625%206.2999%209%205.9249%209.525%205.6999C9.75%205.6249%209.9%205.6249%2010.125%205.6999C10.05%205.7749%209.975%205.7749%209.825%205.8499H9.75V5.7749C9.525%205.9999%209.225%206.1499%209%206.4499C8.925%206.5999%208.85%206.8999%208.475%206.8999C8.55%206.8999%208.475%206.9749%208.475%206.8999ZM9.675%2010.3499C9.675%2010.2749%209.6%2010.3499%209.525%2010.3499L9.45%2010.4249L9.375%2010.4999L9.225%2010.6499C9.225%2010.6499%209.3%2010.7249%209.375%2010.6499L9.45%2010.5749C9.525%2010.5749%209.6%2010.4999%209.6%2010.4249C9.675%2010.4249%209.675%2010.4249%209.675%2010.3499ZM8.475%207.1249C8.55%207.1249%208.625%207.1249%208.625%207.0499C8.625%206.9749%208.7%206.9749%208.7%206.9749V6.8999C8.55%206.9749%208.475%207.0499%208.475%207.1249ZM10.275%208.5499C10.35%208.4749%2010.425%208.4749%2010.5%208.4749C11.025%208.3999%2011.55%208.2499%2012.075%208.0249C11.475%207.6499%2010.8%207.3499%2010.125%207.2749H10.2C10.125%207.1999%209.975%207.1999%209.825%207.1249H9.9C9.75%207.0499%209.525%207.0499%209.375%206.9749C9.45%206.9749%209.525%206.8249%209.525%206.7499H9.45C9.15%206.8999%209%207.1249%208.85%207.4249C9%207.4999%209.225%207.4249%209.375%207.4999H9.15C9.075%207.4999%209%207.5749%209%207.6499H9.075C9%207.6499%209%207.7249%208.925%207.7249C9%207.7999%209.075%207.7249%209.225%207.7249C9.225%207.7999%209.3%207.7999%209.3%207.7999C9.225%207.7999%209.15%207.8749%209.075%208.0249C9%208.1749%208.925%208.1749%208.85%208.2499V8.3249C8.625%208.4749%208.4%208.6999%208.175%208.9249V8.9999C8.1%209.0749%208.025%209.0749%208.025%209.1499V9.2249C8.325%209.1499%208.475%208.9249%208.775%208.8499L9.225%208.6249C9.375%208.6249%209.45%208.5499%209.6%208.5499V8.6249H9.75C9.75%208.6999%209.6%208.6249%209.675%208.6999C9.75%208.7749%209.9%208.7749%209.975%208.6999C10.125%208.5499%2010.2%208.5499%2010.275%208.5499ZM9.3%209.7499C9%209.8999%208.625%209.8999%208.4%2010.0499C8.4%2010.0499%208.4%2010.1249%208.325%2010.1249C8.325%2010.1249%208.25%2010.1249%208.25%2010.1999C8.175%2010.1999%208.175%2010.2749%208.1%2010.3499L8.025%2010.4249C8.025%2010.4249%208.025%2010.4999%208.1%2010.4249L8.175%2010.3499C8.175%2010.3499%208.1%2010.4249%208.1%2010.4999V10.7249L8.025%2010.7999C8.025%2010.7999%208.025%2010.8749%207.95%2010.8749L7.875%2010.9499L8.025%2010.7999L8.1%2010.7249H8.25C8.25%2010.7249%208.25%2010.6499%208.325%2010.6499C8.4%2010.5749%208.475%2010.4999%208.55%2010.4999H8.625C8.7%2010.4249%208.85%2010.4249%208.925%2010.3499C9%2010.2749%209.075%2010.1999%209.15%2010.1999C9.3%2010.0499%209.525%209.9749%209.75%209.8249C9.675%209.8249%209.6%209.7499%209.525%209.7499C9.525%209.8249%209.375%209.7499%209.3%209.7499ZM22.5%206.5249C22.425%206.6749%2022.2%206.6749%2022.05%206.7499C21.9%206.8999%2022.05%207.0499%2022.125%207.1249C22.2%207.3499%2021.975%207.4999%2021.825%207.4999C21.9%207.5749%2021.975%207.5749%2021.975%207.5749C21.975%207.7249%2022.125%207.7249%2022.05%207.8749C21.975%208.0249%2021.675%208.0999%2021.825%208.2499C21.9%208.3999%2021.9%208.6249%2021.825%208.7749C21.75%208.9249%2021.6%209.0749%2021.45%209.1499C21.3%209.2249%2021.15%209.2249%2021%209.1499C20.925%209.1499%2020.925%209.0749%2020.85%209.0749C20.475%208.9999%2020.1%208.9249%2019.725%208.9249C19.65%208.9249%2019.5%208.9999%2019.425%208.9999C19.35%209.0749%2019.2%209.1499%2019.125%209.2249L19.05%209.2999C18.975%209.3749%2018.9%209.4499%2018.9%209.5249C18.825%209.6749%2018.75%209.8249%2018.75%209.9749C18.6%2010.3499%2018.6%2010.7249%2018.75%2011.0249C18.75%2011.0249%2019.5%2011.2499%2020.025%2011.4749C20.175%2011.5499%2020.4%2011.6249%2020.55%2011.7749L21.825%2012.5249H9.9L11.1%2011.7749C11.55%2011.4749%2012.075%2011.2499%2012.6%2011.0249C12.975%2010.8749%2013.425%2010.6499%2013.725%2010.3499C13.875%2010.1999%2013.95%2010.0499%2014.1%209.9749C14.325%209.6749%2014.55%209.4499%2014.85%209.2249L15.075%208.9999C15.075%208.9999%2015.075%208.9249%2015.15%208.9249C15%208.9999%2015%209.0749%2014.85%209.0749C14.85%209.0749%2014.775%209.0749%2014.85%208.9999C14.925%208.9249%2015%208.8499%2015.075%208.8499V8.7749C14.775%208.7749%2014.55%208.9249%2014.325%209.1499H14.175C13.8%209.2999%2013.575%209.5249%2013.275%209.6749V9.5999C13.125%209.6749%2012.975%209.7499%2012.9%209.7499C12.75%209.7499%2012.525%209.8249%2012.3%209.7499C12%209.7499%2011.775%209.8249%2011.475%209.8999C11.325%209.9749%2011.175%209.9749%2011.025%2010.0499V10.1249L10.875%2010.2749C10.725%2010.3499%2010.65%2010.4249%2010.5%2010.5749L10.125%2010.9499H10.05L10.125%2010.8749L10.2%2010.7999C10.2%2010.7249%2010.275%2010.7249%2010.275%2010.6499C10.425%2010.5749%2010.5%2010.4249%2010.65%2010.3499C10.65%2010.3499%2010.65%2010.2749%2010.725%2010.2749L10.65%2010.3499C10.575%2010.4249%2010.575%2010.4999%2010.5%2010.4999V10.4249V10.3499L10.65%2010.1999C10.725%2010.1249%2010.8%2010.1249%2010.875%2010.0499H10.95C10.8%2010.1249%2010.725%2010.1249%2010.575%2010.1999H10.5H10.425C10.425%2010.1249%2010.5%2010.1249%2010.575%2010.0499H10.65C11.4%209.4499%2012.375%209.5999%2013.2%209.2999C13.275%209.2249%2013.35%209.2249%2013.425%209.1499C13.5%209.0749%2013.65%208.9999%2013.8%208.9249C13.95%208.7749%2014.1%208.6249%2014.175%208.3999V8.3249C13.875%208.6249%2013.575%208.8499%2013.2%209.0749C12.75%209.2249%2012.225%209.3749%2011.7%209.3749C11.7%209.2999%2011.775%209.2999%2011.775%209.2999C11.775%209.2249%2011.85%209.2249%2011.85%209.1499H11.925C11.925%209.1499%2011.925%209.0749%2012%209.0749H12.075C12%208.9999%2011.85%209.1499%2011.775%209.0749C11.85%208.9999%2011.775%208.9249%2011.85%208.9249H11.925C11.925%208.9249%2011.925%208.8499%2012%208.8499C12.375%208.6249%2012.675%208.4749%2012.975%208.3249C12.9%208.3249%2012.9%208.3999%2012.825%208.3249C12.9%208.3249%2012.825%208.2499%2012.9%208.2499C13.125%208.1749%2013.35%208.0249%2013.575%207.9499C13.5%207.9499%2013.425%208.0249%2013.35%207.9499C13.425%207.9499%2013.425%207.8749%2013.5%207.8749V7.7999C13.5%207.7249%2013.575%207.7999%2013.65%207.7249H13.575C13.65%207.6499%2013.725%207.5749%2013.875%207.5749C13.875%207.4999%2013.8%207.5749%2013.8%207.4999H13.875H13.5C13.425%207.4999%2013.5%207.4249%2013.5%207.4249C13.575%207.2749%2013.65%207.0499%2013.725%206.8999H13.65C13.425%207.1249%2013.05%207.2749%2012.75%207.3499H12.6C12.45%207.4249%2012.3%207.4249%2012.225%207.3499C12.15%207.2749%2012.075%207.1999%2012%207.1999C11.85%207.1249%2011.625%206.9749%2011.4%206.8999C10.875%206.7499%2010.275%206.5999%209.675%206.6749C9.9%206.5999%2010.2%206.5249%2010.5%206.4499C10.875%206.2999%2011.25%206.2249%2011.625%206.2249H11.4C11.1%206.2249%2010.725%206.2999%2010.425%206.3749C10.2%206.4499%209.975%206.5249%209.75%206.5249C9.6%206.5999%209.525%206.6749%209.375%206.6749V6.5999C9.6%206.2999%209.9%206.0749%2010.2%205.9999C10.575%205.9249%2011.025%205.9999%2011.4%206.0749C11.7%206.0749%2012%206.1499%2012.225%206.2249C12.3%206.2249%2012.375%206.3749%2012.45%206.4499C12.6%206.5249%2012.75%206.4499%2012.825%206.5249V6.3749C12.9%206.2999%2013.05%206.3749%2013.125%206.3749C13.275%206.2249%2012.975%206.0749%2012.9%205.9249V5.8499C13.05%205.9999%2013.275%206.1499%2013.425%206.2999C13.5%206.3749%2013.8%206.4499%2013.8%206.2999C13.65%206.0749%2013.5%205.8499%2013.275%205.6249V5.4749C13.2%205.4749%2013.2%205.4749%2013.2%205.3999C13.125%205.3249%2013.125%205.2499%2013.125%205.1749C13.05%205.0249%2013.125%204.8749%2013.05%204.7999C12.975%204.6499%2012.975%204.5749%2012.975%204.4249C12.9%204.0499%2012.825%203.6749%2012.75%203.3749C12.675%202.9249%2012.975%202.6249%2013.2%202.2499C13.35%201.9499%2013.575%201.7249%2013.8%201.4999C13.875%201.1999%2014.025%200.974902%2014.25%200.749902C14.475%200.524902%2014.7%200.374902%2014.925%200.299902C15.15%200.224902%2015.3%200.149902%2015.525%200.0749024L17.4%20-0.225098H18.75L20.1%20-9.76473e-05C20.175%20-9.76473e-05%2020.25%20-9.76324e-05%2020.25%200.0749024C20.325%200.149902%2020.475%200.224902%2020.55%200.224902C20.7%200.299902%2020.85%200.449902%2021%200.599902C21.075%200.674902%2021.15%200.824902%2021.075%200.899902C21%200.974902%2021%201.1999%2020.925%201.1999C20.775%201.2749%2020.625%201.2749%2020.475%201.2749C20.4%201.2749%2020.325%201.2749%2020.175%201.1999C20.55%201.3499%2020.85%201.4999%2021.075%201.7999C21.075%201.8749%2021.225%201.8749%2021.3%201.8749V1.9499C21.225%202.0249%2021.225%202.0249%2021.225%202.0999H21.3C21.375%202.0249%2021.375%201.7999%2021.525%201.8749C21.675%201.9499%2021.675%202.0999%2021.6%202.1749C21.525%202.2499%2021.45%202.3249%2021.3%202.3999V2.5499C21.375%202.6249%2021.375%202.6999%2021.45%202.8499C21.525%202.9999%2021.525%203.2249%2021.6%203.3749C21.675%203.7499%2021.75%204.0499%2021.75%204.4249C21.75%204.5749%2021.675%204.7999%2021.75%204.9499L21.975%205.3999C22.05%205.5499%2022.125%205.6249%2022.2%205.7749C22.35%205.9999%2022.65%206.2249%2022.5%206.5249ZM10.8%2010.4249C10.725%2010.4249%2010.725%2010.4999%2010.725%2010.4999C10.725%2010.4999%2010.8%2010.4999%2010.8%2010.4249ZM10.125%208.9249C10.125%208.9999%2010.2%208.9249%2010.2%208.9249C10.35%208.8499%2010.575%208.9249%2010.65%208.7749C10.575%208.6999%2010.5%208.7749%2010.5%208.6999C10.425%208.6999%2010.35%208.6999%2010.35%208.7749C10.275%208.8499%2010.125%208.8499%2010.125%208.9249Z'%20fill='white'%20/%3e%3cpath%20d='M20.925%204.3501C21%204.3501%2021.15%204.3501%2021.15%204.4251C21.075%204.5751%2020.85%204.6501%2020.7%204.8001H20.625C20.55%204.8751%2020.55%204.9501%2020.55%204.9501H20.325C20.4%205.0251%2020.55%205.1001%2020.7%205.1001L20.775%205.1751H20.925V5.2501C20.85%205.3251%2020.775%205.3251%2020.625%205.3251C20.775%205.4001%2021%205.4001%2021.15%205.3251C21.3%205.2501%2021.15%205.0251%2021.225%204.9501C21.15%204.9501%2021.225%204.8751%2021.15%204.8751C21.225%204.8001%2021.225%204.7251%2021.3%204.7251C21.375%204.7251%2021.375%204.7251%2021.45%204.6501C21.45%204.5751%2021.375%204.5751%2021.375%204.5001C21.525%204.4251%2021.6%204.2751%2021.6%204.1251C21.6%204.0501%2021.375%204.0501%2021.3%203.9751H20.925C20.775%203.9751%2020.7%204.0501%2020.55%204.0501L20.1%204.2751C20.25%204.2001%2020.4%204.2001%2020.625%204.1251C20.625%204.3501%2020.775%204.3501%2020.925%204.3501Z'%20fill='%237C7C7C'%20/%3e%3c/g%3e%3c/g%3e%3cpath%20d='M5.355%2025.5762C6.1866%2025.5762%206.9048%2025.2864%207.4088%2024.8076V23.2704H5.166V21.7458H9.198V25.4502C8.379%2026.5464%207.0056%2027.252%205.355%2027.252C2.4948%2027.252%200.5418%2025.11%200.5418%2022.59C0.5418%2020.07%202.4444%2017.928%205.229%2017.928C6.8292%2017.928%208.1396%2018.6462%208.946%2019.7172L7.5348%2020.8134C7.0308%2020.0952%206.237%2019.6038%205.229%2019.6038C3.5658%2019.6038%202.3814%2020.9016%202.3814%2022.59C2.3814%2024.2784%203.6288%2025.5762%205.355%2025.5762ZM15.2175%2017.928C17.9895%2017.928%2019.8921%2020.07%2019.8921%2022.59C19.8921%2025.11%2017.9895%2027.252%2015.2175%2027.252C12.4329%2027.252%2010.5303%2025.11%2010.5303%2022.59C10.5303%2020.07%2012.4329%2017.928%2015.2175%2017.928ZM15.2175%2025.5762C16.8681%2025.5762%2018.0525%2024.2784%2018.0525%2022.59C18.0525%2020.9016%2016.8681%2019.6038%2015.2175%2019.6038C13.5543%2019.6038%2012.3699%2020.9016%2012.3699%2022.59C12.3699%2024.2784%2013.5543%2025.5762%2015.2175%2025.5762ZM26.8084%2023.6988V18.18H28.5976V23.5476C28.5976%2025.866%2027.2368%2027.252%2025.0192%2027.252C22.8142%2027.252%2021.4534%2025.866%2021.4534%2023.5476V18.18H23.2426V23.6988C23.2426%2024.8832%2023.9104%2025.5762%2025.0318%2025.5762C26.128%2025.5762%2026.8084%2024.8832%2026.8084%2023.6988ZM29.7114%2018.18H31.614L34.2222%2025.0722L36.8304%2018.18H38.733L35.394%2027H33.0504L29.7114%2018.18ZM40.095%2027V18.18H45.2358V19.6668H41.8842V21.7584H44.7318V23.2452H41.8842V25.5132H45.2358V27H40.095ZM47.3149%2027V18.18H50.0113C51.9517%2018.18%2053.1487%2019.1754%2053.1487%2020.8134C53.1487%2021.8844%2052.6321%2022.6782%2051.7249%2023.094L54.4843%2027H52.3801L50.0239%2023.4342H49.1041V27H47.3149ZM50.1121%2019.6668H49.1041V21.9474H50.1121C50.8681%2021.9474%2051.3091%2021.5064%2051.3091%2020.7882C51.3091%2020.1204%2050.8681%2019.6668%2050.1121%2019.6668ZM55.6176%2027V18.18H57.9108L61.8546%2024.5556V18.18H63.6438V27H61.3506L57.4068%2020.6244V27H55.6176ZM66.1105%2027V18.18H71.2513V19.6668H67.8997V21.7584H70.7473V23.2452H67.8997V25.5132H71.2513V27H66.1105ZM73.3304%2027V18.18H75.5606L77.7152%2021.8844L79.8698%2018.18H82.1V27H80.3108V20.6748L78.3452%2023.976H77.0852L75.1196%2020.6748V27H73.3304ZM84.5617%2027V18.18H89.7025V19.6668H86.3509V21.7584H89.1985V23.2452H86.3509V25.5132H89.7025V27H84.5617ZM91.7816%2027V18.18H94.0748L98.0186%2024.5556V18.18H99.8078V27H97.5146L93.5708%2020.6244V27H91.7816ZM101.367%2019.8054V18.18H108.6V19.8054H105.878V27H104.089V19.8054H101.367Z'%20fill='%23161616'%20/%3e%3cg%20clip-path='url(%23clip2_5795_13250)'%3e%3cg%20clip-path='url(%23clip3_5795_13250)'%3e%3cg%20clip-path='url(%23clip4_5795_13250)'%3e%3cg%20clip-path='url(%23clip5_5795_13250)'%3e%3cg%20clip-path='url(%23clip6_5795_13250)'%3e%3cpath%20d='M30.775%2056.45C31.15%2055.5%2030.7%2055.125%2030.15%2055.125C29.225%2055.125%2028.175%2056.75%2028.175%2058.05C28.175%2058.675%2028.475%2059%2028.925%2059C29.45%2059%2030%2058.5%2030.475%2057.625H30.225C29.925%2058%2029.575%2058.275%2029.25%2058.275C28.925%2058.275%2028.75%2058.075%2028.75%2057.625C28.7558%2057.4396%2028.781%2057.2552%2028.825%2057.075L30.775%2056.45ZM29.775%2055.675C30.05%2055.675%2030.275%2055.875%2030.15%2056.325L28.95%2056.65C29.15%2056.1%2029.5%2055.65%2029.8%2055.65L29.775%2055.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cpath%20d='M30.15%2054.6999L31.275%2053.6749V53.5249H30.525L29.85%2054.6999H30.175H30.15Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip7_5795_13250)'%3e%3cpath%20d='M25.975%2055.675H26.625L25.575%2058.525C25.5421%2058.576%2025.5242%2058.6352%2025.5232%2058.6959C25.5222%2058.7565%2025.5382%2058.8163%2025.5694%2058.8683C25.6007%2058.9204%2025.6458%2058.9626%2025.6998%2058.9903C25.7538%2059.018%2025.8145%2059.03%2025.875%2059.025C26.625%2059.025%2027.475%2058.375%2027.825%2057.475H27.65C27.3359%2057.9021%2026.8865%2058.2105%2026.375%2058.35L27.3%2055.675H28.3L28.425%2055.275H27.475L27.8%2054.25H27.45L26.775%2055.275L25.975%2055.375V55.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip8_5795_13250)'%3e%3cpath%20d='M25.3%2055.5249C25.375%2055.2749%2025.2%2055.1249%2025.05%2055.1249C24.5%2055.1249%2023.8%2055.6499%2023.55%2056.3749H23.725C23.9026%2056.0881%2024.1778%2055.875%2024.5%2055.7749L23.425%2058.5999C23.4034%2058.6422%2023.3932%2058.6894%2023.3952%2058.7368C23.3973%2058.7843%2023.4116%2058.8304%2023.4368%2058.8707C23.4619%2058.911%2023.4971%2058.9441%2023.5389%2058.9667C23.5806%2058.9893%2023.6275%2059.0008%2023.675%2058.9999C24.225%2058.9999%2024.85%2058.4999%2025.125%2057.7499H24.9C24.7378%2058.0509%2024.471%2058.2821%2024.15%2058.3999L25.3%2055.5249ZM25.4%2054.4499C25.4591%2054.4499%2025.5176%2054.4383%2025.5722%2054.4156C25.6268%2054.393%2025.6764%2054.3599%2025.7182%2054.3181C25.76%2054.2763%2025.7932%2054.2267%2025.8158%2054.1721C25.8384%2054.1175%2025.85%2054.059%2025.85%2053.9999C25.8534%2053.9387%2025.8443%2053.8775%2025.8232%2053.82C25.8021%2053.7625%2025.7695%2053.7099%2025.7274%2053.6654C25.6853%2053.6209%2025.6345%2053.5855%2025.5782%2053.5614C25.5219%2053.5372%2025.4613%2053.5248%2025.4%2053.5249C25.2807%2053.5249%2025.1662%2053.5723%2025.0818%2053.6567C24.9974%2053.7411%2024.95%2053.8556%2024.95%2053.9749C24.95%2054.0943%2024.9974%2054.2087%2025.0818%2054.2931C25.1662%2054.3775%2025.2807%2054.4249%2025.4%2054.4249'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip9_5795_13250)'%3e%3cpath%20d='M20.125%2055.8999C20.3%2055.8999%2020.375%2056.1499%2020.125%2056.7499L19.375%2058.4499C19.2%2058.7749%2019.375%2058.9999%2019.675%2058.9999C19.7577%2059.0148%2019.843%2058.997%2019.9129%2058.9504C19.9828%2058.9038%2020.0319%2058.8319%2020.05%2058.7499L20.8%2056.7499C21.15%2056.3249%2021.8%2055.8749%2022.05%2055.8749C22.3%2055.8749%2022.25%2056.0249%2022.125%2056.2749L20.975%2058.5249C20.9497%2058.5734%2020.9371%2058.6276%2020.9383%2058.6823C20.9395%2058.737%2020.9545%2058.7906%2020.9819%2058.838C21.0094%2058.8854%2021.0483%2058.925%2021.0952%2058.9533C21.142%2058.9816%2021.1953%2058.9976%2021.25%2058.9999C21.825%2058.9999%2022.5%2058.4999%2022.75%2057.7499H22.6C22.4209%2058.051%2022.1355%2058.274%2021.8%2058.3749L22.8%2056.3749C22.9222%2056.1611%2022.9908%2055.9209%2023%2055.6749C23.0079%2055.6007%2022.9991%2055.5257%2022.9742%2055.4554C22.9494%2055.3851%2022.9091%2055.3212%2022.8564%2055.2685C22.8036%2055.2158%2022.7398%2055.1755%2022.6695%2055.1507C22.5991%2055.1258%2022.5242%2055.117%2022.45%2055.1249C21.95%2055.1249%2021.55%2055.6749%2020.95%2056.3749V55.8249C20.95%2055.4749%2020.825%2055.1249%2020.5%2055.1249C20.1%2055.1249%2019.75%2055.7499%2019.475%2056.3499H19.65C19.825%2056.0749%2019.975%2055.8999%2020.15%2055.8999'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip10_5795_13250)'%3e%3cpath%20d='M19.375%2056C19.5%2055.525%2019.425%2055.125%2019.075%2055.125C18.625%2055.125%2018.5%2055.425%2018.075%2056.375V55.825C18.05%2055.45%2017.925%2055.125%2017.575%2055.125C17.2%2055.125%2016.85%2055.75%2016.55%2056.375H16.75C16.925%2056.05%2017.125%2055.875%2017.25%2055.875C17.425%2055.875%2017.5%2056.125%2017.25%2056.725L16.5%2058.425C16.325%2058.75%2016.5%2058.95%2016.8%2058.95C16.8827%2058.9649%2016.968%2058.9472%2017.0379%2058.9006C17.1078%2058.8539%2017.1569%2058.7821%2017.175%2058.7L17.925%2056.7C18.1317%2056.4415%2018.3486%2056.1913%2018.575%2055.95H19.375V56Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip11_5795_13250)'%3e%3cpath%20d='M16.175%2056.45C16.55%2055.5%2016.1%2055.125%2015.55%2055.125C14.625%2055.125%2013.575%2056.75%2013.575%2058.05C13.575%2058.675%2013.875%2059%2014.325%2059C14.85%2059%2015.4%2058.5%2015.875%2057.625H15.625C15.325%2058%2014.975%2058.275%2014.65%2058.275C14.325%2058.275%2014.15%2058.075%2014.15%2057.625C14.1559%2057.4396%2014.181%2057.2552%2014.225%2057.075L16.175%2056.45ZM15.175%2055.675C15.45%2055.675%2015.675%2055.875%2015.55%2056.325L14.35%2056.65C14.55%2056.1%2014.9%2055.65%2015.2%2055.65L15.175%2055.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip12_5795_13250)'%3e%3cpath%20d='M11.35%2055.675H12L10.95%2058.525C10.9171%2058.576%2010.8992%2058.6352%2010.8982%2058.6959C10.8972%2058.7565%2010.9132%2058.8163%2010.9444%2058.8683C10.9757%2058.9204%2011.0208%2058.9626%2011.0748%2058.9903C11.1288%2059.018%2011.1895%2059.03%2011.25%2059.025C12%2059.025%2012.85%2058.375%2013.2%2057.475H13.025C12.7109%2057.9021%2012.2615%2058.2105%2011.75%2058.35L12.675%2055.675H13.675L13.8%2055.275H12.85L13.175%2054.25H12.825L12.15%2055.275L11.35%2055.375V55.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip13_5795_13250)'%3e%3cpath%20d='M9.84996%2058.2252C9.69996%2058.2252%209.59996%2057.9752%209.84996%2057.3752L10.875%2054.9752L10.575%2054.9502L10.25%2055.2752H10.175C8.74996%2055.2752%207.22496%2057.1002%207.22496%2058.5002C7.22137%2058.5701%207.23249%2058.64%207.25761%2058.7053C7.28272%2058.7706%207.32126%2058.8299%207.37075%2058.8794C7.42024%2058.9289%207.47956%2058.9674%207.54488%2058.9926C7.6102%2059.0177%207.68007%2059.0288%207.74996%2059.0252C8.17496%2059.0252%208.57496%2058.4252%209.04996%2057.7752L9.02496%2058.0252C8.94996%2058.6752%209.17496%2059.0252%209.52496%2059.0252C9.89996%2059.0252%2010.275%2058.4252%2010.525%2057.8002H10.35C10.175%2058.0752%209.97496%2058.2502%209.84996%2058.2502V58.2252ZM9.19996%2057.4002C8.87496%2057.8002%208.34996%2058.2752%208.12496%2058.2752C7.99996%2058.2752%207.89996%2058.1502%207.89996%2057.8752C7.89996%2057.0002%208.89996%2055.8252%209.39996%2055.8252C9.51862%2055.822%209.63696%2055.8389%209.74996%2055.8752L9.19996%2057.4002Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip14_5795_13250)'%3e%3cpath%20d='M7.85004%2056C7.97504%2055.525%207.90004%2055.125%207.55004%2055.125C7.10004%2055.125%206.97504%2055.425%206.55004%2056.375V55.825C6.52504%2055.45%206.40004%2055.125%206.05004%2055.125C5.67504%2055.125%205.32504%2055.75%205.02504%2056.375H5.22504C5.40004%2056.05%205.60004%2055.875%205.72504%2055.875C5.90004%2055.875%205.97504%2056.125%205.72504%2056.725L4.97504%2058.425C4.80004%2058.75%204.97504%2058.95%205.27504%2058.95C5.35775%2058.9649%205.443%2058.9472%205.51292%2058.9006C5.58284%2058.8539%205.63198%2058.7821%205.65004%2058.7L6.40004%2056.7C6.60676%2056.4415%206.82359%2056.1913%207.05004%2055.95H7.85004V56Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip15_5795_13250)'%3e%3cpath%20d='M2.79998%2058.8499L2.87498%2058.6249C1.92498%2058.4499%201.79998%2058.4499%202.19998%2057.4249L2.54998%2056.4499H3.29998C3.77498%2056.4499%203.77498%2056.6749%203.69998%2057.1999H3.94998L4.59998%2055.4749H4.34998C4.09998%2055.8749%203.89998%2056.1999%203.39998%2056.1999H2.64998L3.14998%2054.7999C3.34998%2054.2999%203.42498%2054.1999%204.07498%2054.1999H4.24998C4.89998%2054.1999%204.99998%2054.3749%204.99998%2055.0749H5.24998L5.47498%2053.8999H1.82498L1.74998%2054.1249C2.49998%2054.2749%202.57498%2054.3499%202.24998%2055.3249L1.42498%2057.3999C1.04998%2058.3749%200.924976%2058.4499%200.0499756%2058.5999L-0.0250244%2058.8249L2.79998%2058.8499Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip16_5795_13250)'%3e%3cg%20clip-path='url(%23clip17_5795_13250)'%3e%3cpath%20d='M21.925%2048.2C22.3%2047.25%2021.85%2046.875%2021.3%2046.875C20.375%2046.875%2019.325%2048.5%2019.325%2049.8C19.325%2050.425%2019.625%2050.75%2020.075%2050.75C20.6%2050.75%2021.15%2050.25%2021.625%2049.375H21.375C21.075%2049.75%2020.725%2050.025%2020.4%2050.025C20.075%2050.025%2019.9%2049.825%2019.9%2049.375C19.9059%2049.1896%2019.931%2049.0052%2019.975%2048.825L21.925%2048.2ZM20.925%2047.425C21.2%2047.425%2021.425%2047.625%2021.3%2048.075L20.1%2048.4C20.3%2047.85%2020.65%2047.4%2020.95%2047.4L20.925%2047.425Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cpath%20d='M21.3%2046.4499L22.425%2045.4249V45.2749H21.675L21%2046.4499H21.325H21.3Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip18_5795_13250)'%3e%3cpath%20d='M17.125%2047.425H17.775L16.725%2050.275C16.6921%2050.326%2016.6742%2050.3852%2016.6732%2050.4459C16.6722%2050.5065%2016.6882%2050.5663%2016.7195%2050.6183C16.7507%2050.6704%2016.7959%2050.7126%2016.8499%2050.7403C16.9039%2050.768%2016.9645%2050.78%2017.025%2050.775C17.775%2050.775%2018.625%2050.125%2018.975%2049.225H18.8C18.4859%2049.6521%2018.0365%2049.9605%2017.525%2050.1L18.45%2047.425H19.45L19.575%2047.025H18.625L18.95%2046H18.6L17.925%2047.025L17.125%2047.125V47.425Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip19_5795_13250)'%3e%3cpath%20d='M16.45%2047.25C16.525%2047%2016.35%2046.85%2016.2%2046.85C15.65%2046.85%2014.95%2047.375%2014.7%2048.1H14.875C15.0526%2047.8132%2015.3278%2047.6001%2015.65%2047.5L14.575%2050.325C14.5534%2050.3673%2014.5431%2050.4145%2014.5452%2050.4619C14.5472%2050.5094%2014.5615%2050.5555%2014.5867%2050.5958C14.6119%2050.6361%2014.6471%2050.6692%2014.6888%2050.6918C14.7306%2050.7144%2014.7775%2050.7259%2014.825%2050.725C15.375%2050.725%2016%2050.225%2016.275%2049.475H16.05C15.8878%2049.776%2015.621%2050.0072%2015.3%2050.125L16.45%2047.25ZM16.55%2046.175C16.6091%2046.175%2016.6676%2046.1634%2016.7222%2046.1407C16.7768%2046.1181%2016.8264%2046.085%2016.8682%2046.0432C16.91%2046.0014%2016.9431%2045.9518%2016.9657%2045.8972C16.9884%2045.8426%2017%2045.7841%2017%2045.725C17.0034%2045.6638%2016.9943%2045.6026%2016.9732%2045.5451C16.9521%2045.4876%2016.9195%2045.435%2016.8774%2045.3905C16.8352%2045.346%2016.7845%2045.3106%2016.7282%2045.2865C16.6719%2045.2623%2016.6113%2045.2499%2016.55%2045.25C16.4306%2045.25%2016.3162%2045.2974%2016.2318%2045.3818C16.1474%2045.4662%2016.1%2045.5807%2016.1%2045.7C16.1%2045.8193%2016.1474%2045.9338%2016.2318%2046.0182C16.3162%2046.1026%2016.4306%2046.15%2016.55%2046.15'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip20_5795_13250)'%3e%3cpath%20d='M13.075%2050.1249L14.875%2045.3499L14.8%2045.2749L13.55%2045.4249V45.5749L13.8%2045.7499C14.025%2045.9249%2013.95%2046.0749%2013.75%2046.5999L12.4%2050.2499C12.3685%2050.2991%2012.3509%2050.3559%2012.349%2050.4142C12.3471%2050.4726%2012.3609%2050.5304%2012.389%2050.5815C12.4172%2050.6327%2012.4586%2050.6753%2012.5089%2050.705C12.5592%2050.7346%2012.6166%2050.7501%2012.675%2050.7499C13.25%2050.7499%2013.85%2050.2249%2014.125%2049.4999H13.95C13.7377%2049.8015%2013.4291%2050.0219%2013.075%2050.1249Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip21_5795_13250)'%3e%3cpath%20d='M11.35%2049.9752C11.2%2049.9752%2011.1%2049.7252%2011.35%2049.1252L12.375%2046.7252L12.075%2046.7002L11.75%2047.0252H11.675C10.25%2047.0252%208.72496%2048.8502%208.72496%2050.2502C8.72137%2050.3201%208.73249%2050.39%208.75761%2050.4553C8.78272%2050.5206%208.82126%2050.5799%208.87075%2050.6294C8.92024%2050.6789%208.97956%2050.7174%209.04488%2050.7426C9.1102%2050.7677%209.18007%2050.7788%209.24996%2050.7752C9.67496%2050.7752%2010.075%2050.1752%2010.55%2049.5252L10.525%2049.7752C10.45%2050.4252%2010.675%2050.7752%2011.025%2050.7752C11.4%2050.7752%2011.775%2050.1752%2012.025%2049.5502H11.85C11.675%2049.8252%2011.475%2050.0002%2011.35%2050.0002V49.9752ZM10.7%2049.1502C10.375%2049.5502%209.84996%2050.0252%209.62496%2050.0252C9.49996%2050.0252%209.39996%2049.9002%209.39996%2049.6252C9.39996%2048.7502%2010.4%2047.5752%2010.9%2047.5752C11.0186%2047.572%2011.137%2047.5889%2011.25%2047.6252L10.7%2049.1502Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip22_5795_13250)'%3e%3cpath%20d='M9.15%2047.0002H8.075C7.91845%2046.8999%207.73591%2046.8477%207.55%2046.8502C7.11669%2046.8501%206.70075%2047.0205%206.39202%2047.3246C6.0833%2047.6286%205.90657%2048.0419%205.9%2048.4752C5.88969%2048.5836%205.90095%2048.693%205.93314%2048.797C5.96532%2048.9011%206.01779%2048.9977%206.08751%2049.0814C6.15724%2049.1651%206.24284%2049.2341%206.33938%2049.2845C6.43592%2049.335%206.54149%2049.3658%206.65%2049.3752C6.175%2049.5752%205.9%2049.8252%205.9%2050.1002C5.9%2050.1772%205.92093%2050.2528%205.96057%2050.3188C6.0002%2050.3849%206.05703%2050.4389%206.125%2050.4752C5.05%2050.8002%204.625%2051.1752%204.625%2051.6502C4.625%2052.1502%205.275%2052.3502%206.025%2052.3502C7.35%2052.3502%208.425%2051.6752%208.425%2051.0752C8.425%2050.6252%208.025%2050.4502%207.35%2050.2502C6.8%2050.0752%206.55%2050.0502%206.55%2049.8502C6.56644%2049.752%206.60704%2049.6595%206.66814%2049.581C6.72924%2049.5024%206.80892%2049.4403%206.9%2049.4002C7.31131%2049.369%207.69601%2049.1848%207.97828%2048.884C8.26056%2048.5832%208.41993%2048.1876%208.425%2047.7752C8.42962%2047.6483%208.41272%2047.5215%208.375%2047.4002H9L9.15%2047.0002ZM7.1%2050.9002C7.625%2051.0752%207.85%2051.1502%207.85%2051.3002C7.85%2051.6502%207.35%2051.9252%206.45%2051.9252C5.775%2051.9252%205.45%2051.7752%205.45%2051.4252C5.45%2051.0502%205.8%2050.8002%206.325%2050.6002C6.56712%2050.7189%206.81783%2050.8191%207.075%2050.9002H7.1ZM6.9%2049.1002C6.65%2049.1002%206.575%2048.9002%206.575%2048.6752C6.575%2047.9752%206.925%2047.1252%207.45%2047.1252C7.7%2047.1252%207.775%2047.3252%207.775%2047.5252C7.775%2048.2502%207.425%2049.1002%206.9%2049.1002Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip23_5795_13250)'%3e%3cpath%20d='M3.575%2048.2252C4.05%2048.2252%204.075%2048.4252%203.975%2048.9252H4.25L4.875%2047.2252H4.625C4.375%2047.6252%204.2%2047.9502%203.675%2047.9502H2.65L3.15%2046.5502C3.325%2046.0502%203.4%2045.9502%204.075%2045.9502H4.5C5.15%2045.9502%205.25%2046.1252%205.25%2046.8252H5.5L5.725%2045.6502H1.825L1.75%2045.8752C2.5%2046.0252%202.575%2046.1002%202.25%2047.0752L1.45%2049.1752C1.075%2050.1502%200.95%2050.2252%200.05%2050.3752L0%2050.6252H4.35L5.15%2049.3752H4.85C4.35%2049.8752%203.85%2050.3252%202.85%2050.3252C1.675%2050.3252%201.775%2050.2502%202.175%2049.1752L2.525%2048.2252H3.575ZM4.15%2045.2752L5.25%2044.4752V44.3252H4.5L3.85%2045.3002H4.15V45.2752Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip24_5795_13250)'%3e%3cg%20clip-path='url(%23clip25_5795_13250)'%3e%3cpath%20d='M21.8%2039.95C22.175%2039%2021.725%2038.625%2021.175%2038.625C20.25%2038.625%2019.2%2040.25%2019.2%2041.55C19.2%2042.175%2019.5%2042.5%2019.95%2042.5C20.475%2042.5%2021.025%2042%2021.5%2041.125H21.25C20.95%2041.5%2020.6%2041.775%2020.275%2041.775C19.95%2041.775%2019.775%2041.575%2019.775%2041.125C19.7809%2040.9396%2019.806%2040.7552%2019.85%2040.575L21.8%2039.95ZM20.8%2039.175C21.075%2039.175%2021.3%2039.375%2021.175%2039.825L19.975%2040.15C20.175%2039.6%2020.525%2039.15%2020.825%2039.15L20.8%2039.175Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cpath%20d='M21.175%2038.1999L22.3%2037.1749V37.0249H21.55L20.875%2038.1999H21.2H21.175Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip26_5795_13250)'%3e%3cpath%20d='M16.975%2039.1501H17.625L16.575%2042.0001C16.5421%2042.0511%2016.5242%2042.1103%2016.5232%2042.171C16.5222%2042.2316%2016.5382%2042.2914%2016.5694%2042.3434C16.6007%2042.3955%2016.6458%2042.4377%2016.6998%2042.4654C16.7538%2042.4931%2016.8145%2042.5051%2016.875%2042.5001C17.625%2042.5001%2018.475%2041.8501%2018.825%2040.9501H18.65C18.3359%2041.3772%2017.8865%2041.6856%2017.375%2041.8251L18.3%2039.1501H19.3L19.425%2038.7501H18.475L18.8%2037.7251H18.45L17.775%2038.7501L16.975%2038.8501V39.1501Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip27_5795_13250)'%3e%3cpath%20d='M16.65%2039.5C16.775%2039.025%2016.7%2038.625%2016.35%2038.625C15.9%2038.625%2015.775%2038.925%2015.35%2039.875V39.325C15.325%2038.95%2015.2%2038.625%2014.85%2038.625C14.475%2038.625%2014.125%2039.25%2013.825%2039.875H14.025C14.2%2039.55%2014.4%2039.375%2014.525%2039.375C14.7%2039.375%2014.775%2039.625%2014.525%2040.225L13.775%2041.925C13.6%2042.25%2013.775%2042.45%2014.075%2042.45C14.1577%2042.4649%2014.243%2042.4472%2014.3129%2042.4006C14.3828%2042.3539%2014.432%2042.2821%2014.45%2042.2L15.2%2040.2C15.4067%2039.9415%2015.6236%2039.6913%2015.85%2039.45H16.65V39.5Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip28_5795_13250)'%3e%3cpath%20d='M13.45%2039.9251C13.825%2038.9751%2013.375%2038.6001%2012.825%2038.6001C11.9%2038.6001%2010.85%2040.2251%2010.85%2041.5251C10.85%2042.1501%2011.15%2042.4751%2011.6%2042.4751C12.125%2042.4751%2012.675%2041.9751%2013.15%2041.1001H12.9C12.6%2041.4751%2012.25%2041.7501%2011.925%2041.7501C11.6%2041.7501%2011.425%2041.5501%2011.425%2041.1001C11.4308%2040.9147%2011.456%2040.7303%2011.5%2040.5501L13.45%2039.9251ZM12.45%2039.1501C12.725%2039.1501%2012.95%2039.3501%2012.825%2039.8001L11.625%2040.1251C11.825%2039.5751%2012.175%2039.1251%2012.475%2039.1251L12.45%2039.1501Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip29_5795_13250)'%3e%3cpath%20d='M10.2%2038.6249C9.69998%2038.6249%209.19998%2039.1749%208.74998%2039.8249L9.74998%2037.0999L9.69998%2037.0249L8.44998%2037.1749V37.2749L8.69998%2037.4749C8.92498%2037.6499%208.84998%2037.7999%208.64998%2038.3249L7.54998%2041.2249C7.46796%2041.4023%207.40106%2041.5863%207.34998%2041.7749C7.34998%2042.1249%207.79998%2042.4499%208.22498%2042.4499C9.17498%2042.4499%2010.725%2040.7249%2010.725%2039.3999C10.725%2038.8249%2010.6%2038.5999%2010.2%2038.5999V38.6249ZM8.54998%2041.8999C8.34998%2041.8999%208.07498%2041.7249%208.07498%2041.5749C8.12768%2041.3868%208.19454%2041.2029%208.27498%2041.0249L8.59998%2040.1999C8.92498%2039.7749%209.44998%2039.3499%209.74998%2039.3499C9.92498%2039.3499%2010.05%2039.4499%2010.05%2039.7249C10.05%2040.4999%209.32498%2041.8999%208.54998%2041.8999Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip30_5795_13250)'%3e%3cpath%20d='M7.05003%2039C7.12503%2038.75%206.95003%2038.6%206.80003%2038.6C6.25003%2038.6%205.55003%2039.125%205.30003%2039.85H5.47503C5.65263%2039.5632%205.92784%2039.3501%206.25003%2039.25L5.17503%2042.075C5.15343%2042.1173%205.14316%2042.1645%205.14522%2042.2119C5.14727%2042.2594%205.16158%2042.3055%205.18676%2042.3458C5.21193%2042.3861%205.24711%2042.4192%205.28887%2042.4418C5.33063%2042.4644%205.37754%2042.4759%205.42503%2042.475C5.97503%2042.475%206.60003%2041.975%206.87503%2041.225H6.65003C6.4878%2041.526%206.22102%2041.7572%205.90003%2041.875L7.05003%2039ZM7.15003%2037.925C7.20913%2037.925%207.26764%2037.9134%207.32224%2037.8907C7.37684%2037.8681%207.42645%2037.835%207.46823%2037.7932C7.51002%2037.7514%207.54316%2037.7018%207.56578%2037.6472C7.58839%2037.5926%207.60003%2037.5341%207.60003%2037.475C7.60344%2037.4138%207.59432%2037.3526%207.57323%2037.2951C7.55214%2037.2376%207.51954%2037.185%207.47741%2037.1405C7.43528%2037.096%207.38451%2037.0606%207.32822%2037.0365C7.27193%2037.0123%207.21129%2036.9999%207.15003%2037C7.03069%2037%206.91623%2037.0474%206.83184%2037.1318C6.74744%2037.2162%206.70003%2037.3307%206.70003%2037.45C6.70003%2037.5693%206.74744%2037.6838%206.83184%2037.7682C6.91623%2037.8526%207.03069%2037.9%207.15003%2037.9'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip31_5795_13250)'%3e%3cpath%20d='M4.4%2037.3501H1.825L1.75%2037.5751C2.5%2037.7251%202.575%2037.8001%202.25%2038.7751L1.45%2040.9001C1.075%2041.8751%200.95%2041.9501%200.075%2042.1001L0%2042.3501H3.925L4.8%2040.8501H4.5C4%2041.3501%203.45%2042.0501%202.575%2042.0501C1.9%2042.0501%201.825%2041.9251%202.175%2040.9251L2.95%2038.8001C3.3%2037.8251%203.45%2037.7501%204.325%2037.6001L4.4%2037.3501Z'%20fill='%23161616'%20/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_5795_13250'%20x1='0'%20y1='6'%20x2='33'%20y2='6'%20gradientUnits='userSpaceOnUse'%20%3e%3cstop%20stop-color='%23000091'%20/%3e%3cstop%20offset='0.5'%20stop-color='%23000091'%20/%3e%3cstop%20offset='0.5'%20stop-color='%23E1000F'%20/%3e%3cstop%20offset='1'%20stop-color='%23E1000F'%20/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_5795_13250'%3e%3crect%20width='33'%20height='12'%20fill='white'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_5795_13250'%3e%3crect%20width='33'%20height='13.5'%20fill='white'%20transform='translate(0%20-0.75)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip2_5795_13250'%3e%3crect%20width='108.88'%20height='26.5'%20fill='white'%20transform='translate(0%2033)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip3_5795_13250'%3e%3crect%20width='63'%20height='45'%20fill='white'%20transform='translate(0%2037)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip4_5795_13250'%3e%3crect%20width='31.5'%20height='22.5'%20fill='white'%20transform='translate(0%2037)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip5_5795_13250'%3e%3crect%20width='3.1'%20height='5.45'%20fill='white'%20transform='translate(28.175%2053.5249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip6_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(28.175%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip7_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(25.55%2054.25)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip8_5795_13250'%3e%3crect%20width='2.45'%20height='5.475'%20fill='white'%20transform='translate(23.4%2053.5249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip9_5795_13250'%3e%3crect%20width='3.7'%20height='3.875'%20fill='white'%20transform='translate(19.3%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip10_5795_13250'%3e%3crect%20width='3'%20height='3.875'%20fill='white'%20transform='translate(16.425%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip11_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(13.575%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip12_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(10.925%2054.25)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip13_5795_13250'%3e%3crect%20width='3.675'%20height='4.05'%20fill='white'%20transform='translate(7.22498%2054.9502)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip14_5795_13250'%3e%3crect%20width='3'%20height='3.875'%20fill='white'%20transform='translate(4.90002%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip15_5795_13250'%3e%3crect%20width='5.475'%20height='4.95'%20fill='white'%20transform='translate(0%2053.8999)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip16_5795_13250'%3e%3crect%20width='3.1'%20height='5.45'%20fill='white'%20transform='translate(19.325%2045.2749)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip17_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(19.325%2046.875)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip18_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(16.7%2046)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip19_5795_13250'%3e%3crect%20width='2.45'%20height='5.475'%20fill='white'%20transform='translate(14.55%2045.25)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip20_5795_13250'%3e%3crect%20width='2.525'%20height='5.475'%20fill='white'%20transform='translate(12.35%2045.2749)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip21_5795_13250'%3e%3crect%20width='3.675'%20height='4.05'%20fill='white'%20transform='translate(8.72498%2046.7002)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip22_5795_13250'%3e%3crect%20width='4.5'%20height='5.5'%20fill='white'%20transform='translate(4.65002%2046.8501)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip23_5795_13250'%3e%3crect%20width='5.75'%20height='6.275'%20fill='white'%20transform='translate(0%2044.3252)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip24_5795_13250'%3e%3crect%20width='3.1'%20height='5.45'%20fill='white'%20transform='translate(19.2%2037.0249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip25_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(19.2%2038.625)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip26_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(16.55%2037.7251)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip27_5795_13250'%3e%3crect%20width='3'%20height='3.875'%20fill='white'%20transform='translate(13.7%2038.625)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip28_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(10.85%2038.6001)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip29_5795_13250'%3e%3crect%20width='3.4'%20height='5.45'%20fill='white'%20transform='translate(7.34998%2037.0249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip30_5795_13250'%3e%3crect%20width='2.45'%20height='5.475'%20fill='white'%20transform='translate(5.15002%2037)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip31_5795_13250'%3e%3crect%20width='4.8'%20height='4.975'%20fill='white'%20transform='translate(0%2037.3501)'%20/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Yh=({externalLinks:t,legalLinks:e,license:r,logo:n})=>{const{t:i}=X.useCunningham();return v.jsxs("footer",{className:"c__footer",children:[v.jsx("div",{className:"c__footer__stripe"}),v.jsxs("div",{className:"c__footer__content",children:[v.jsxs("div",{className:"c__footer__content__top",children:[v.jsx("div",{children:v.jsx("div",{className:"c__footer__content__top__logo",children:v.jsx("img",{className:"c__footer__logo",alt:(n==null?void 0:n.alt)||i("components.footer.logo.alt"),width:n==null?void 0:n.width,height:n==null?void 0:n.height,decoding:"async",src:(n==null?void 0:n.src)||qh})})}),v.jsx("div",{className:"c__footer__content__top__links",children:t==null?void 0:t.map(({label:o,href:a})=>v.jsxs("a",{href:a,target:"_blank",children:[v.jsx("span",{children:o}),v.jsx("img",{alt:"",width:"18",decoding:"async",src:Bs})]},o))})]}),v.jsx("div",{className:"c__footer__content__middle",children:e==null?void 0:e.map(({label:o,href:a})=>v.jsx("a",{href:a,children:v.jsx("span",{children:o})},o))}),r&&v.jsxs("p",{className:"c__footer__content__mention",children:[r==null?void 0:r.label," ",v.jsxs("a",{href:r==null?void 0:r.link.href,target:"_blank",children:[v.jsx("span",{children:r==null?void 0:r.link.label}),v.jsx("img",{alt:"",width:"18",decoding:"async",src:Bs})]})]})]})]})},Xh=t=>v.jsx(Rh,{...t,className:"c__filter",children:v.jsx(Jh,{...t})}),Jh=t=>{const e=u.useContext(Ju),r=e!=null&&e.selectedItem?t.options.find(n=>{var i;return n.value===((i=e.selectedItem)==null?void 0:i.key)}):null;return v.jsxs(v.Fragment,{children:[v.jsxs(oh,{className:be("c__filter__button",{"c__filter__button--active":!!r}),children:[v.jsx(rh,{className:"c__filter__label",children:r?v.jsxs(v.Fragment,{children:[t.label," : ",r.label]}):v.jsx(v.Fragment,{children:t.label})}),v.jsx("span",{"aria-hidden":"true",className:be("material-icons c__filter__button__icon",{opened:e==null?void 0:e.isOpen}),children:"keyboard_arrow_down"})]}),v.jsx(Pi,{className:"c__dropdown-menu",children:v.jsx(Ch,{children:t.options.map(n=>v.jsxs(u.Fragment,{children:[v.jsx(xh,{id:n.value,className:"c__dropdown-menu-item",children:v.jsxs("div",{className:"c__filter__item",children:[n.render?n.render():n.label,(t.selectedKey===n.value||n.isChecked)&&v.jsx("span",{className:"material-icons checked",children:"check"})]})},n.value),n.showSeparator&&v.jsx(ri,{})]},n.value))})})]})},Qh=({logo:t,mainButton:e,banner:r,title:n,subtitle:i})=>v.jsx("div",{className:"c__hero",children:v.jsxs("div",{className:"c__hero__display",children:[v.jsxs("div",{className:"c__hero__display__captions",children:[t,v.jsx("h2",{children:n}),v.jsx("span",{className:"c__hero__display__captions__subtitle",children:i}),e||v.jsx(S2,{})]}),v.jsx("img",{src:r,alt:""})]})}),e7=({children:t})=>v.jsx("div",{className:"c__home-gutter",children:t}),ed=(t,e,r=void 0)=>{const n=Array.isArray(e)?e:e.replace(/(\[(\d)\])/g,".$2").replace(/^\./,"").split(".");if(!n.length||n[0]===void 0)return t;const i=n[0];return typeof t!="object"||t===null||!(i in t)||t[i]===void 0?r:ed(t[i],n.slice(1),r)},t7={placeholder:"Entrez votre adresse e-mail",srLabel:"Adresse e-mail",submit:"Suivant",title:"Connexion avec {linebreak}votre adresse e-mail"},r7={homepageLinkTitle:{withoutService:"Retour à l'accueil",withService:"Retour à l'accueil - {serviceName}"},license:"Sauf mention explicite de propriété intellectuelle détenue par des tiers, les contenus de ce site sont proposés sous {license}",licenseEtalab:"licence etalab-2.0",links:{a11y:{perfect:"Accessibilité : conforme",partial:"Accessibilité : partiellement conforme",bad:"Accessibilité : non conforme"},privacy:"Données personnelles",sitemap:"Plan du site",terms:"Mentions légales"}},n7={label:"Les services de La Suite numérique"},i7={homepageLinkTitle:"Accueil - {serviceName}"},o7={newWindow:"{title} - nouvelle fenêtre"},a7={help:"Qu'est-ce que ProConnect ?",loginWith:"S’identifier avec",loginWithProconnect:"{loginWith} {proconnect}",or:"ou",title:"Connexion avec ProConnect"},td={email:t7,footer:r7,gaufre:n7,header:i7,links:o7,proconnect:a7},l7=u.createContext(td);function s7(){const t=u.useContext(l7)||td;return{t:function(e,r={}){const n=ed(t,e);if(!n)return console.warn(`Translation for key "${e}" not found`),e;if(r){const i=[];if(Object.keys(r).forEach(a=>{typeof r[a]!="string"&&i.push(a)}),!i.length)return n.replace(/{(\w+)}/g,(a,l)=>r[l]);const o=n.split(/{(.*?)}/);return v.jsx(v.Fragment,{children:o.map((a,l)=>a in r?v.jsx(u.Fragment,{children:r[a]},l):a)})}return n}}}const c7={responsive:"lasuite-gaufre-btn--responsive",small:"lasuite-gaufre-btn--small"},u7=({variant:t})=>{const{t:e}=s7(),r=t?c7[t]:"";return v.jsx("button",{type:"button",className:`lasuite-gaufre-btn ${r} lasuite-gaufre-btn--vanilla js-lasuite-gaufre-btn`,title:e("gaufre.label"),children:e("gaufre.label")})},d7=()=>v.jsxs(v.Fragment,{children:[v.jsx("script",{src:"https://integration.lasuite.numerique.gouv.fr/api/v1/gaufre.js",id:"lasuite-gaufre-script",async:!0,defer:!0}),v.jsx(u7,{variant:"small"})]}),f7="data:image/svg+xml,%3csvg%20width='64'%20height='26'%20viewBox='0%200%2064%2026'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_7771_15979)'%3e%3cpath%20d='M63.4259%2019.6175C63.4259%2020.1333%2063.4259%2020.3912%2063.3731%2020.6274C63.2756%2021.0639%2063.0469%2021.4602%2062.7177%2021.763C62.5395%2021.9269%2062.3162%2022.0559%2061.8696%2022.3139L59.9192%2023.4406C59.4723%2023.6988%2059.2488%2023.8279%2059.0177%2023.9003C58.5905%2024.0343%2058.1326%2024.0343%2057.7055%2023.9003C57.4744%2023.8279%2057.2509%2023.6988%2056.804%2023.4406L55.4779%2022.6746C54.9159%2022.3499%2054.6348%2022.1875%2054.5043%2021.9996C54.2603%2021.6483%2054.2605%2021.1823%2054.5049%2020.8313C54.6356%2020.6435%2054.9168%2020.4814%2055.4792%2020.1572L56.8083%2019.3911C57.2557%2019.1333%2057.4793%2019.0044%2057.6578%2018.8405C57.9875%2018.5376%2058.2167%2018.1411%2058.3144%2017.7041C58.3673%2017.4677%2058.3673%2017.2095%2058.3673%2016.6932V15.1651C58.3673%2014.5163%2058.3673%2014.1919%2058.4647%2013.9849C58.6468%2013.598%2059.0502%2013.365%2059.4763%2013.4008C59.7042%2013.42%2059.9852%2013.5822%2060.5471%2013.9066L61.869%2014.6698C62.3157%2014.9277%2062.5391%2015.0567%2062.7173%2015.2206C63.0467%2015.5234%2063.2755%2015.9198%2063.3731%2016.3564C63.4259%2016.5927%2063.4259%2016.8506%2063.4259%2017.3665V19.6175Z'%20fill='%23C83F49'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M52.1227%2010.0913C54.0237%2010.0913%2055.2764%2011.3056%2055.4296%2013.0311C55.4634%2013.4125%2055.483%2013.8298%2055.4161%2014.2062C55.3942%2014.3293%2055.2848%2014.4154%2055.1598%2014.4154H50.4038C50.3227%2014.4154%2050.2598%2014.4872%2050.2735%2014.5671C50.4893%2015.8206%2051.1794%2016.3447%2052.2824%2016.3447C52.6047%2016.3447%2052.9343%2016.2299%2053.1712%2016.1233C53.3024%2016.0642%2053.3687%2016.0345%2053.4122%2016.0248C53.5046%2016.0041%2053.5644%2016.0079%2053.6538%2016.0395C53.6958%2016.0543%2053.745%2016.0841%2053.8434%2016.1435L54.2508%2016.3894C54.5156%2016.549%2054.6484%2016.6286%2054.7029%2016.7099C54.8054%2016.8634%2054.8021%2017.0598%2054.6943%2017.2097C54.6371%2017.2891%2054.5058%2017.3625%2054.2429%2017.5088C54.0455%2017.6186%2053.8437%2017.7185%2053.633%2017.7938C52.9051%2018.0543%2052.1282%2018.0627%2051.3458%2017.8972C49.3995%2017.4855%2048.3644%2015.875%2048.3644%2014.038C48.3645%2011.8759%2049.7285%2010.0914%2052.1227%2010.0913ZM52.0793%2011.6003C51.1906%2011.6004%2050.5851%2012.0639%2050.3482%2012.9186C50.3253%2013.0011%2050.3898%2013.0807%2050.4754%2013.0807H53.5357C53.6121%2013.0806%2053.6738%2013.0164%2053.6642%2012.9406C53.5771%2012.2499%2053.0446%2011.6003%2052.0793%2011.6003Z'%20fill='%232845C1'/%3e%3cpath%20d='M27.0483%207.27437C28.4287%207.27441%2029.5109%207.83538%2030.3491%208.7076C30.4132%208.77435%2030.4455%208.80771%2030.4647%208.84951C30.4989%208.9242%2030.4955%209.02087%2030.4562%209.09297C30.4341%209.13343%2030.3969%209.16737%2030.3222%209.23489L29.401%2010.0674C29.3152%2010.1449%2029.272%2010.1842%2029.2303%2010.202C29.1493%2010.2366%2029.0681%2010.2321%2028.9911%2010.1891C28.9515%2010.1671%2028.9094%2010.1201%2028.8253%2010.0264C28.2997%209.4409%2027.7178%209.07156%2027.0624%209.07156C26.3381%209.07169%2025.8599%209.53539%2025.8598%2010.1439C25.8598%2010.9189%2026.6772%2011.2755%2027.6234%2011.6878C28.924%2012.2546%2030.4683%2012.9276%2030.4684%2014.9409C30.4394%2016.8538%2028.9612%2017.9987%2027.0918%2017.9988C25.5333%2017.9988%2024.444%2017.4813%2023.583%2016.5778C23.5199%2016.5115%2023.4882%2016.478%2023.4693%2016.4365C23.4356%2016.3625%2023.4388%2016.2671%2023.4772%2016.1955C23.4988%2016.1552%2023.5355%2016.1211%2023.6087%2016.0536L24.5226%2015.2112C24.6088%2015.1317%2024.652%2015.0918%2024.6927%2015.0736C24.7735%2015.0376%2024.8496%2015.0396%2024.9282%2015.0803C24.9678%2015.1009%2025.0139%2015.1485%2025.1056%2015.2437C25.6733%2015.8326%2026.3698%2016.1728%2027.0771%2016.1728C27.8886%2016.1728%2028.3812%2015.7381%2028.3813%2015.0137C28.3813%2014.22%2027.551%2013.8546%2026.5951%2013.4342C25.2993%2012.8644%2023.7734%2012.193%2023.7733%2010.2167C23.7733%208.60804%2025.1064%207.27437%2027.0483%207.27437Z'%20fill='%232845C1'/%3e%3cpath%20d='M33.0816%2010.4051C33.1877%2010.4051%2033.2407%2010.4052%2033.2834%2010.4198C33.3629%2010.447%2033.4257%2010.5091%2033.4529%2010.5886C33.4675%2010.6314%2033.4676%2010.6848%2033.4676%2010.7911V14.55C33.4677%2015.6077%2034.0181%2016.2596%2035.0323%2016.2597C36.0322%2016.2597%2036.5829%2015.6077%2036.583%2014.55V10.7911C36.583%2010.6848%2036.583%2010.6314%2036.5977%2010.5886C36.6249%2010.5091%2036.6877%2010.447%2036.7671%2010.4198C36.8099%2010.4052%2036.8629%2010.4051%2036.969%2010.4051H38.0523C38.1585%2010.4051%2038.212%2010.4051%2038.2548%2010.4198C38.3341%2010.447%2038.3964%2010.5093%2038.4236%2010.5886C38.4382%2010.6314%2038.4383%2010.6848%2038.4383%2010.7911V14.4625C38.4383%2016.6508%2037.163%2017.9987%2035.0182%2017.9988C32.8734%2017.9988%2031.6123%2016.6508%2031.6123%2014.4625V10.7911C31.6123%2010.6848%2031.6123%2010.6314%2031.627%2010.5886C31.6541%2010.5093%2031.7165%2010.447%2031.7958%2010.4198C31.8386%2010.4051%2031.892%2010.4051%2031.9983%2010.4051H33.0816Z'%20fill='%232845C1'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M18.6864%2010.109C20.8021%2010.109%2021.8892%2011.3699%2021.8892%2012.9785V17.3173C21.8892%2017.4233%2021.8891%2017.4765%2021.8746%2017.5192C21.8474%2017.5986%2021.7846%2017.6614%2021.7051%2017.6886C21.6624%2017.7032%2021.6092%2017.7033%2021.5033%2017.7033H20.4346C20.3284%2017.7033%2020.2749%2017.7033%2020.2321%2017.6886C20.1527%2017.6614%2020.0905%2017.5986%2020.0633%2017.5192C20.0487%2017.4764%2020.0486%2017.4234%2020.0486%2017.3173V17.2415C20.0486%2017.1766%2020.0485%2017.144%2020.0413%2017.1302C20.0267%2017.1027%2019.999%2017.0907%2019.9691%2017.099C19.954%2017.1033%2019.9286%2017.127%2019.8786%2017.1742C19.3908%2017.6343%2018.6201%2017.9204%2017.8606%2017.9205C16.3969%2017.9205%2015.3967%2017.08%2015.3966%2015.7324C15.3966%2014.6311%2016.2515%2013.8046%2017.8165%2013.5437L19.8627%2013.1981C19.9699%2013.18%2020.0486%2013.0873%2020.0486%2012.9785C20.0486%2012.2105%2019.4687%2011.7178%2018.6282%2011.7178C18.0616%2011.7178%2017.5966%2011.9303%2017.2329%2012.2885C17.1368%2012.3832%2017.0884%2012.4305%2017.0519%2012.4494C16.9763%2012.4885%2016.9134%2012.4922%2016.8335%2012.4628C16.7949%2012.4487%2016.7508%2012.415%2016.6628%2012.3478L15.9276%2011.7869C15.849%2011.7269%2015.8096%2011.6967%2015.7838%2011.6566C15.7392%2011.5871%2015.7297%2011.4822%2015.7612%2011.4058C15.7794%2011.3617%2015.8085%2011.3298%2015.8664%2011.2664C16.5273%2010.542%2017.5043%2010.109%2018.6864%2010.109ZM19.8241%2014.4943L18.3095%2014.747C17.5416%2014.8774%2017.2227%2015.1958%2017.2225%2015.6449C17.2225%2016.1377%2017.6142%2016.4567%2018.2374%2016.4567C18.9727%2016.4566%2019.5305%2016.1571%2019.9012%2015.6939C19.9264%2015.6624%2019.9392%2015.6465%2019.9618%2015.6082C19.9962%2015.5498%2020.0329%2015.4453%2020.0425%2015.3782C20.0487%2015.3344%2020.0486%2015.2998%2020.0486%2015.2308V14.6846C20.0486%2014.623%2020.0483%2014.5923%2020.0394%2014.5689C20.0228%2014.5254%2019.9854%2014.4932%2019.9397%2014.4839C19.9152%2014.479%2019.8848%2014.4842%2019.8241%2014.4943Z'%20fill='%232845C1'/%3e%3cpath%20d='M45.2967%208.57914C45.4029%208.57914%2045.4564%208.57917%2045.4992%208.59382C45.5785%208.62109%2045.6408%208.68332%2045.668%208.76265C45.6826%208.8054%2045.6827%208.85848%2045.6827%208.96451V10.2717C45.6827%2010.3083%2045.6825%2010.3267%2045.6876%2010.3415C45.697%2010.3689%2045.7188%2010.3902%2045.7463%2010.3996C45.7611%2010.4046%2045.7794%2010.4051%2045.816%2010.4051H47.5288C47.6349%2010.4051%2047.6879%2010.4051%2047.7307%2010.4198C47.8101%2010.447%2047.8723%2010.5092%2047.8995%2010.5886C47.9142%2010.6314%2047.9142%2010.6848%2047.9142%2010.7911V11.6713C47.9142%2011.7774%2047.9141%2011.8304%2047.8995%2011.8732C47.8723%2011.9526%2047.8101%2012.0154%2047.7307%2012.0426C47.6879%2012.0572%2047.6348%2012.0573%2047.5288%2012.0573H45.816C45.7794%2012.0573%2045.7611%2012.0572%2045.7463%2012.0622C45.7189%2012.0716%2045.697%2012.0929%2045.6876%2012.1203C45.6825%2012.1351%2045.6827%2012.1539%2045.6827%2012.1906V15.0424C45.6827%2015.8539%2046.1173%2016.1728%2046.8419%2016.1728C47.126%2016.1728%2047.3557%2016.1547%2047.5459%2016.1208C47.6769%2016.0976%2047.7423%2016.0861%2047.7766%2016.0927C47.8485%2016.1066%2047.8904%2016.1412%2047.9166%2016.2095C47.9291%2016.2421%2047.9289%2016.2989%2047.9289%2016.412V17.3706C47.9289%2017.4389%2047.9286%2017.4731%2047.9191%2017.5082C47.9029%2017.5673%2047.8551%2017.6323%2047.8035%2017.6654C47.7728%2017.685%2047.7464%2017.6935%2047.6934%2017.71C47.3789%2017.8083%2047.0056%2017.8538%2046.5232%2017.8538C44.6972%2017.8538%2043.8274%2016.8249%2043.8274%2015.0424V12.1906C43.8274%2012.1539%2043.8276%2012.1351%2043.8225%2012.1203C43.813%2012.0929%2043.7912%2012.0716%2043.7638%2012.0622C43.749%2012.0572%2043.7306%2012.0573%2043.694%2012.0573H42.8511C42.7451%2012.0573%2042.692%2012.0572%2042.6492%2012.0426C42.5698%2012.0154%2042.507%2011.9526%2042.4798%2011.8732C42.4652%2011.8304%2042.4651%2011.7773%2042.4651%2011.6713V10.7911C42.4651%2010.6848%2042.4652%2010.6314%2042.4798%2010.5886C42.507%2010.5091%2042.5698%2010.447%2042.6492%2010.4198C42.692%2010.4052%2042.745%2010.4051%2042.8511%2010.4051H43.694C43.7306%2010.4051%2043.749%2010.4046%2043.7638%2010.3996C43.7912%2010.3902%2043.8131%2010.3689%2043.8225%2010.3415C43.8276%2010.3267%2043.8274%2010.3083%2043.8274%2010.2717V8.96451C43.8274%208.85851%2043.8275%208.80539%2043.8421%208.76265C43.8693%208.6832%2043.9321%208.62102%2044.0115%208.59382C44.0543%208.57921%2044.1073%208.57914%2044.2134%208.57914H45.2967Z'%20fill='%232845C1'/%3e%3cpath%20d='M10.4969%207.60347C10.6271%207.59288%2010.7502%207.66445%2010.8058%207.7827C10.8355%207.84596%2010.8357%207.94515%2010.8357%208.14299V15.7141C10.8357%2015.767%2010.8358%2015.7936%2010.8431%2015.815C10.8567%2015.8546%2010.8878%2015.8858%2010.9275%2015.8994C10.9489%2015.9067%2010.9754%2015.9067%2011.0284%2015.9067H14.2013C14.3074%2015.9067%2014.3605%2015.9068%2014.4032%2015.9214C14.4825%2015.9486%2014.5448%2016.011%2014.572%2016.0903C14.5867%2016.133%2014.5867%2016.1865%2014.5867%2016.2927V17.3326C14.5867%2017.4387%2014.5867%2017.4917%2014.572%2017.5345C14.5448%2017.6139%2014.4827%2017.6767%2014.4032%2017.7039C14.3605%2017.7185%2014.3073%2017.7186%2014.2013%2017.7186H9.25388C9.14764%2017.7186%209.09419%2017.7186%209.0514%2017.7039C8.972%2017.6767%208.90977%2017.6139%208.88258%2017.5345C8.86796%2017.4917%208.86789%2017.4387%208.86789%2017.3326V9.01834C8.86789%208.87045%208.86801%208.79609%208.88319%208.7284C8.91128%208.6034%208.97706%208.49005%209.07159%208.40358C9.12277%208.35678%209.1868%208.31985%209.31505%208.24637L10.1696%207.75701C10.3413%207.65863%2010.4272%207.60914%2010.4969%207.60347Z'%20fill='%232845C1'/%3e%3cpath%20d='M41.3506%2010.4051C41.4567%2010.4051%2041.5097%2010.4052%2041.5525%2010.4198C41.6319%2010.447%2041.6947%2010.5091%2041.7219%2010.5886C41.7366%2010.6314%2041.7366%2010.6848%2041.7366%2010.7911V17.3235C41.7366%2017.4295%2041.7365%2017.4826%2041.7219%2017.5253C41.6947%2017.6048%2041.6319%2017.6669%2041.5525%2017.6941C41.5097%2017.7087%2041.4567%2017.7088%2041.3506%2017.7088H40.282C40.1757%2017.7088%2040.1223%2017.7088%2040.0795%2017.6941C40.0001%2017.6669%2039.9378%2017.6047%2039.9106%2017.5253C39.896%2017.4826%2039.896%2017.4295%2039.896%2017.3235V10.7911C39.896%2010.6848%2039.896%2010.6314%2039.9106%2010.5886C39.9378%2010.5092%2040.0001%2010.447%2040.0795%2010.4198C40.1223%2010.4051%2040.1757%2010.4051%2040.282%2010.4051H41.3506Z'%20fill='%232845C1'/%3e%3cpath%20d='M5.0894%201.1867C5.51644%201.05287%205.97448%201.05281%206.4015%201.1867C6.63253%201.25916%206.85582%201.38863%207.30254%201.6467L8.62872%202.41255C9.19079%202.73725%209.47203%202.89994%209.60255%203.08787C9.8464%203.43915%209.84622%203.90523%209.60194%204.25623C9.47119%204.44396%209.18971%204.60566%208.62749%204.92971L7.29826%205.69618C6.85114%205.95389%206.6276%206.0829%206.44922%206.24671C6.11946%206.54958%205.88998%206.94632%205.79225%207.38326C5.73941%207.61961%205.73964%207.87775%205.73964%208.39379V9.92244C5.73964%2010.571%205.73973%2010.8955%205.64238%2011.1024C5.46034%2011.4893%205.05667%2011.7223%204.63062%2011.6866C4.40267%2011.6675%204.12141%2011.5051%203.55953%2011.1807L2.23763%2010.4173C1.79099%2010.1594%201.56738%2010.0306%201.3892%209.86678C1.0599%209.56394%200.831048%209.16745%200.733454%208.73084C0.680657%208.49461%200.680847%208.23666%200.680847%207.72092V5.46985C0.680847%204.95415%200.680686%204.69612%200.733454%204.45992C0.83101%204.02338%201.05999%203.62683%201.3892%203.32399C1.56729%203.16021%201.79065%203.03132%202.23702%202.77346L4.18775%201.6467C4.63463%201.38855%204.8583%201.25915%205.0894%201.1867Z'%20fill='%232845C1'/%3e%3cpath%20d='M40.8233%206.72384C41.4755%206.72384%2042.0119%207.27491%2042.0119%207.92706C42.0117%208.57908%2041.4754%209.12967%2040.8233%209.12967C40.1713%209.12963%2039.6209%208.57906%2039.6207%207.92706C39.6207%207.27494%2040.1712%206.72389%2040.8233%206.72384Z'%20fill='%232845C1'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_7771_15979'%3e%3crect%20width='64'%20height='25.098'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";var ho={},kr={},Ls;function h7(){return Ls||(Ls=1,Object.defineProperty(kr,"__esModule",{value:!0}),kr.tokens=void 0,kr.tokens={themes:{default:{globals:{colors:{"logo-1-light":"#377FDB","logo-2-light":"#377FDB","logo-1-dark":"#C1D6F2","logo-2-dark":"#C1D6F2","brand-050":"#EAF1FB","brand-100":"#D5E4F7","brand-150":"#C0D6F4","brand-200":"#ABC9F0","brand-250":"#96BCEC","brand-300":"#80AEE8","brand-350":"#6CA0E4","brand-400":"#5693E0","brand-450":"#4085DC","brand-500":"#2976D8","brand-550":"#1167D4","brand-600":"#0659C5","brand-650":"#1A509F","brand-700":"#20467F","brand-750":"#203C63","brand-800":"#1D314C","brand-850":"#1A2638","brand-900":"#141C28","brand-950":"#0C1117","gray-000":"#FFFFFF","gray-025":"#F7F8F8","gray-050":"#F0F1F2","gray-100":"#E1E2E5","gray-150":"#D2D4D8","gray-200":"#C4C7CB","gray-250":"#B5B9BE","gray-300":"#A7ACB2","gray-350":"#999EA5","gray-400":"#8D9197","gray-450":"#80848A","gray-500":"#74777C","gray-550":"#686B6F","gray-600":"#5C5F63","gray-650":"#505356","gray-700":"#45474A","gray-750":"#3A3B3E","gray-800":"#2F3033","gray-850":"#252627","gray-900":"#1B1C1D","gray-950":"#101112","gray-1000":"#000000","info-050":"#EAF1FB","info-100":"#D5E4F7","info-150":"#C0D6F4","info-200":"#ABC9F0","info-250":"#96BCEC","info-300":"#80AEE8","info-350":"#6CA0E4","info-400":"#5693E0","info-450":"#4085DC","info-500":"#2976D8","info-550":"#1167D4","info-600":"#0659C5","info-650":"#1A509F","info-700":"#20467F","info-750":"#203C63","info-800":"#1D314C","info-850":"#1A2638","info-900":"#141C28","info-950":"#0C1117","success-050":"#E4F7D4","success-100":"#C8EEA8","success-150":"#AAE579","success-200":"#89DC45","success-250":"#72CF27","success-300":"#6AC024","success-350":"#61B121","success-400":"#59A21E","success-450":"#51941C","success-500":"#4B851A","success-550":"#427816","success-600":"#3A6A14","success-650":"#385C1F","success-700":"#344D24","success-750":"#2E4022","success-800":"#27341F","success-850":"#20281A","success-900":"#181D15","success-950":"#10120E","warning-050":"#FFF1BD","warning-100":"#FFE176","warning-150":"#FFCF25","warning-200":"#F4BF06","warning-250":"#E3B205","warning-300":"#D3A504","warning-350":"#C29805","warning-400":"#B28C03","warning-450":"#A27F03","warning-500":"#937303","warning-550":"#836703","warning-600":"#745B03","warning-650":"#625019","warning-700":"#524620","warning-750":"#443B20","warning-800":"#36301D","warning-850":"#2A2619","warning-900":"#1E1C13","warning-950":"#12110C","error-050":"#FCEDED","error-100":"#FADBDB","error-150":"#F7C9C9","error-200":"#F5B7B7","error-250":"#F2A4A4","error-300":"#EF9191","error-350":"#EC7D7D","error-400":"#E96868","error-450":"#E55050","error-500":"#E13131","error-550":"#D80000","error-600":"#C00101","error-650":"#9E2219","error-700":"#802820","error-750":"#662820","error-800":"#4F231E","error-850":"#3B1D19","error-900":"#2A1614","error-950":"#1A0E0C","red-050":"#FDEDED","red-100":"#FADBDB","red-150":"#F8C9C9","red-200":"#F5B7B6","red-250":"#F3A4A3","red-300":"#F09190","red-350":"#EE7C7B","red-400":"#EB6665","red-450":"#E74E4D","red-500":"#D83F3D","red-550":"#C23837","red-600":"#AC3231","red-650":"#8D3531","red-700":"#73332F","red-750":"#5B2F2B","red-800":"#472826","red-850":"#35211F","red-900":"#251817","red-950":"#160F0E","orange-050":"#FDEEE2","orange-100":"#FCDDC5","orange-150":"#FACBA8","orange-200":"#F8B98B","orange-250":"#F6A76A","orange-300":"#F4934B","orange-350":"#F27E27","orange-400":"#E76E12","orange-450":"#D26411","orange-500":"#BE5B0F","orange-550":"#AA510E","orange-600":"#97480C","orange-650":"#7E431D","orange-700":"#673C22","orange-750":"#533422","orange-800":"#412C1F","orange-850":"#31231B","orange-900":"#221A14","orange-950":"#15100C","brown-050":"#F3F0EF","brown-100":"#E7E1DF","brown-150":"#DCD2CF","brown-200":"#D0C4BF","brown-250":"#C5B6B0","brown-300":"#BAA7A1","brown-350":"#AF9992","brown-400":"#A48B83","brown-450":"#997E74","brown-500":"#8F7065","brown-550":"#846357","brown-600":"#7A5649","brown-650":"#684C42","brown-700":"#57423C","brown-750":"#463833","brown-800":"#382E2A","brown-850":"#2B2422","brown-900":"#1F1B19","brown-950":"#121010","yellow-050":"#FAF0D3","yellow-100":"#F5E2A4","yellow-150":"#F0D275","yellow-200":"#EBC242","yellow-250":"#E4B213","yellow-300":"#D4A511","yellow-350":"#C39810","yellow-400":"#B38B0F","yellow-450":"#A37F0D","yellow-500":"#93730C","yellow-550":"#84670B","yellow-600":"#755B0A","yellow-650":"#63501C","yellow-700":"#534521","yellow-750":"#443A21","yellow-800":"#36301F","yellow-850":"#29261A","yellow-900":"#1D1C14","yellow-950":"#12110C","green-050":"#E2F6E5","green-100":"#C5ECCA","green-150":"#A7E3AF","green-200":"#89D894","green-250":"#67CE75","green-300":"#4DC25D","green-350":"#48B257","green-400":"#41A44F","green-450":"#3B9548","green-500":"#368741","green-550":"#30793A","green-600":"#2B6B33","green-650":"#2F5C34","green-700":"#2E4E31","green-750":"#2A412C","green-800":"#253426","green-850":"#1E281F","green-900":"#171D17","green-950":"#0F120F","blue-1-050":"#EBF1FF","blue-1-100":"#D6E3FE","blue-1-150":"#C2D5FE","blue-1-200":"#ADC7FE","blue-1-250":"#99B8FD","blue-1-300":"#84AAFD","blue-1-350":"#6F9BFD","blue-1-400":"#5A8DFB","blue-1-450":"#437DFC","blue-1-500":"#3D71E4","blue-1-550":"#3665CC","blue-1-600":"#305AB5","blue-1-650":"#315093","blue-1-700":"#2E4675","blue-1-750":"#293B5E","blue-1-800":"#243048","blue-1-850":"#1E2635","blue-1-900":"#171C25","blue-1-950":"#0E1116","blue-2-050":"#E2F4F9","blue-2-100":"#C5E9F3","blue-2-150":"#A7DDED","blue-2-200":"#88D1E6","blue-2-250":"#68C5E0","blue-2-300":"#48B8D9","blue-2-350":"#3BAACA","blue-2-400":"#359CB9","blue-2-450":"#318EA9","blue-2-500":"#2C8199","blue-2-550":"#277389","blue-2-600":"#236679","blue-2-650":"#2A5866","blue-2-700":"#2A4B55","blue-2-750":"#283F47","blue-2-800":"#233337","blue-2-850":"#1D272A","blue-2-900":"#161C1E","blue-2-950":"#0E1112","purple-050":"#F6EEFF","purple-100":"#ECDCFF","purple-150":"#E3CBFE","purple-200":"#DAB9FE","purple-250":"#D0A7FE","purple-300":"#C795FE","purple-350":"#BD83FD","purple-400":"#B36FFD","purple-450":"#A85BFD","purple-500":"#9B4BF3","purple-550":"#8B43DA","purple-600":"#7B3CC1","purple-650":"#673C9B","purple-700":"#56387D","purple-750":"#463162","purple-800":"#382A4A","purple-850":"#2A2237","purple-900":"#1E1926","purple-950":"#121017","pink-050":"#FCEDF5","pink-100":"#F9DAEA","pink-150":"#F7C7E0","pink-200":"#F4B4D5","pink-250":"#F1A1CA","pink-300":"#EE8CBF","pink-350":"#EA77B3","pink-400":"#E760A6","pink-450":"#E24797","pink-500":"#CD4089","pink-550":"#B8397B","pink-600":"#A3336D","pink-650":"#86355E","pink-700":"#6E334F","pink-750":"#582E42","pink-800":"#442834","pink-850":"#332028","pink-900":"#24181D","pink-950":"#160F12","black-000":"#1B1C1D00","black-050":"#1B1C1D0D","black-100":"#1B1C1D1A","black-150":"#1B1C1D26","black-200":"#1B1C1D33","black-250":"#1B1C1D40","black-300":"#1B1C1D4D","black-350":"#1B1C1D59","black-400":"#1B1C1D66","black-450":"#1B1C1D73","black-500":"#1B1C1D80","black-550":"#1B1C1D8C","black-600":"#1B1C1D99","black-650":"#1B1C1DA6","black-700":"#1B1C1DB2","black-750":"#1B1C1DBF","black-800":"#1B1C1DCC","black-850":"#1B1C1DD9","black-900":"#1B1C1DE5","black-950":"#101112F2","white-000":"#F7F8F800","white-050":"#F7F8F80D","white-100":"#F7F8F81A","white-150":"#F7F8F826","white-200":"#F7F8F833","white-250":"#F7F8F840","white-300":"#F7F8F84D","white-350":"#F7F8F859","white-400":"#F7F8F866","white-450":"#F7F8F873","white-500":"#F7F8F880","white-550":"#F7F8F88C","white-600":"#F7F8F899","white-650":"#F7F8F8A6","white-700":"#F7F8F8B2","white-750":"#F7F8F8BF","white-800":"#F7F8F8CC","white-850":"#F7F8F8D9","white-900":"#F7F8F8E5","white-950":"#F7F8F8F2","white-975":"#F7F8F8F9"},transitions:{"ease-in":"cubic-bezier(0.32, 0, 0.67, 0)","ease-out":"cubic-bezier(0.33, 1, 0.68, 1)","ease-in-out":"cubic-bezier(0.65, 0, 0.35, 1)",duration:"250ms"},font:{sizes:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",ml:"0.938rem",xl:"1.25rem",t:"0.6875rem",s:"0.75rem",h1:"2rem",h2:"1.75rem",h3:"1.5rem",h4:"1.375rem",h5:"1.25rem",h6:"1.125rem","xl-alt":"5rem","lg-alt":"4.5rem","md-alt":"4rem","sm-alt":"3.5rem","xs-alt":"3rem"},weights:{thin:200,light:300,regular:400,medium:500,bold:600,extrabold:700,black:800},families:{base:'"Roboto Flex Variable", sans-serif',accent:'"Roboto Flex Variable", sans-serif'}},spacings:{l:"3rem",b:"1.625rem",m:"0.8125rem",s:"1rem",t:"0.5rem",st:"0.25rem","4xs":"0.125rem","3xs":"0.25rem","2xs":"0.375rem",xxxs:"0.25rem",xxs:"0.375rem",xs:"0.5rem",sm:"0.75rem",base:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem",xxl:"3rem",xxxl:"3.5rem","2xl":"3rem","3xl":"3.5rem","4xl":"4rem","5xl":"4.5rem","6xl":"6rem","7xl":"7.5rem"},breakpoints:{xs:"0px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1400px"}},contextuals:{background:{surface:{primary:"#FFFFFF",secondary:"#FFFFFF",tertiary:"#F7F8F8"},semantic:{overlay:{primary:"#1B1C1D0D","primary-hover":"#1B1C1D1A"},contextual:{primary:"#1B1C1D0D","primary-hover":"#1B1C1D1A"},brand:{primary:"#1167D4","primary-hover":"#1A509F",secondary:"#D5E4F7","secondary-hover":"#C0D6F4",tertiary:"#EAF1FB","tertiary-hover":"#D5E4F7"},neutral:{primary:"#686B6F","primary-hover":"#505356",secondary:"#E1E2E5","secondary-hover":"#D2D4D8",tertiary:"#F0F1F2","tertiary-hover":"#E1E2E5"},info:{primary:"#1167D4","primary-hover":"#1A509F",secondary:"#D5E4F7","secondary-hover":"#C0D6F4",tertiary:"#EAF1FB","tertiary-hover":"#D5E4F7"},success:{primary:"#427816","primary-hover":"#385C1F",secondary:"#C8EEA8","secondary-hover":"#AAE579",tertiary:"#E4F7D4","tertiary-hover":"#C8EEA8"},warning:{primary:"#836703","primary-hover":"#625019",secondary:"#FFE176","secondary-hover":"#FFCF25",tertiary:"#FFF1BD","tertiary-hover":"#FFE176"},error:{primary:"#D80000","primary-hover":"#9E2219",secondary:"#FADBDB","secondary-hover":"#F7C9C9",tertiary:"#FCEDED","tertiary-hover":"#FADBDB"},disabled:{primary:"#E1E2E5",secondary:"#F0F1F2"}},palette:{brand:{primary:"#2976D8",secondary:"#6CA0E4",tertiary:"#C0D6F4"},red:{primary:"#D83F3D",secondary:"#EE7C7B",tertiary:"#F8C9C9"},orange:{primary:"#BE5B0F",secondary:"#F27E27",tertiary:"#FACBA8"},brown:{primary:"#8F7065",secondary:"#AF9992",tertiary:"#DCD2CF"},yellow:{primary:"#93730C",secondary:"#C39810",tertiary:"#F0D275"},green:{primary:"#368741",secondary:"#48B257",tertiary:"#A7E3AF"},"blue-1":{primary:"#3D71E4",secondary:"#6F9BFD",tertiary:"#C2D5FE"},"blue-2":{primary:"#2C8199",secondary:"#3BAACA",tertiary:"#A7DDED"},purple:{primary:"#9B4BF3",secondary:"#BD83FD",tertiary:"#E3CBFE"},pink:{primary:"#CD4089",secondary:"#EA77B3",tertiary:"#F7C7E0"},gray:{primary:"#74777C",secondary:"#999EA5",tertiary:"#D2D4D8"}}},content:{logo1:"#377FDB",logo2:"#377FDB",semantic:{contextual:{primary:"#F7F8F8F2"},overlay:{primary:"#F7F8F8F2"},brand:{primary:"#20467F",secondary:"#0659C5",tertiary:"#1167D4","on-brand":"#EAF1FB"},neutral:{primary:"#252627",secondary:"#5C5F63",tertiary:"#686B6F","on-neutral":"#F0F1F2"},info:{primary:"#20467F",secondary:"#0659C5",tertiary:"#1167D4","on-info":"#EAF1FB"},success:{primary:"#344D24",secondary:"#3A6A14",tertiary:"#427816","on-success":"#E4F7D4"},warning:{primary:"#524620",secondary:"#745B03",tertiary:"#836703","on-warning":"#FFF1BD"},error:{primary:"#802820",secondary:"#C00101",tertiary:"#D80000","on-error":"#FCEDED"},disabled:{primary:"#A7ACB2",secondary:"#F7F8F880"}},palette:{brand:{primary:"#2976D8"},red:{primary:"#D83F3D"},orange:{primary:"#BE5B0F"},brown:{primary:"#8F7065"},yellow:{primary:"#93730C"},green:{primary:"#368741"},"blue-1":{primary:"#3D71E4"},"blue-2":{primary:"#2C8199"},purple:{primary:"#9B4BF3"},pink:{primary:"#CD4089"},gray:{primary:"#74777C"}}},border:{surface:{primary:"#E1E2E5"},semantic:{contextual:{primary:"#F7F8F833"},overlay:{primary:"#F7F8F833"},brand:{primary:"#1167D4",secondary:"#80AEE8",tertiary:"#C0D6F4"},neutral:{primary:"#686B6F",secondary:"#A7ACB2",tertiary:"#D2D4D8"},info:{primary:"#1167D4",secondary:"#80AEE8",tertiary:"#C0D6F4"},success:{primary:"#427816",secondary:"#6AC024",tertiary:"#AAE579"},warning:{primary:"#836703",secondary:"#D3A504",tertiary:"#FFCF25"},error:{primary:"#D80000",secondary:"#EF9191",tertiary:"#F7C9C9"},disabled:{primary:"#E1E2E5"}}}},components:{}},dark:{globals:{colors:{"logo-1-light":"#377FDB","logo-2-light":"#377FDB","logo-1-dark":"#C1D6F2","logo-2-dark":"#C1D6F2","brand-050":"#EAF1FB","brand-100":"#D5E4F7","brand-150":"#C0D6F4","brand-200":"#ABC9F0","brand-250":"#96BCEC","brand-300":"#80AEE8","brand-350":"#6CA0E4","brand-400":"#5693E0","brand-450":"#4085DC","brand-500":"#2976D8","brand-550":"#1167D4","brand-600":"#0659C5","brand-650":"#1A509F","brand-700":"#20467F","brand-750":"#203C63","brand-800":"#1D314C","brand-850":"#1A2638","brand-900":"#141C28","brand-950":"#0C1117","gray-000":"#FFFFFF","gray-025":"#F7F8F8","gray-050":"#F0F1F2","gray-100":"#E1E2E5","gray-150":"#D2D4D8","gray-200":"#C4C7CB","gray-250":"#B5B9BE","gray-300":"#A7ACB2","gray-350":"#999EA5","gray-400":"#8D9197","gray-450":"#80848A","gray-500":"#74777C","gray-550":"#686B6F","gray-600":"#5C5F63","gray-650":"#505356","gray-700":"#45474A","gray-750":"#3A3B3E","gray-800":"#2F3033","gray-850":"#252627","gray-900":"#1B1C1D","gray-950":"#101112","gray-1000":"#000000","info-050":"#EAF1FB","info-100":"#D5E4F7","info-150":"#C0D6F4","info-200":"#ABC9F0","info-250":"#96BCEC","info-300":"#80AEE8","info-350":"#6CA0E4","info-400":"#5693E0","info-450":"#4085DC","info-500":"#2976D8","info-550":"#1167D4","info-600":"#0659C5","info-650":"#1A509F","info-700":"#20467F","info-750":"#203C63","info-800":"#1D314C","info-850":"#1A2638","info-900":"#141C28","info-950":"#0C1117","success-050":"#E4F7D4","success-100":"#C8EEA8","success-150":"#AAE579","success-200":"#89DC45","success-250":"#72CF27","success-300":"#6AC024","success-350":"#61B121","success-400":"#59A21E","success-450":"#51941C","success-500":"#4B851A","success-550":"#427816","success-600":"#3A6A14","success-650":"#385C1F","success-700":"#344D24","success-750":"#2E4022","success-800":"#27341F","success-850":"#20281A","success-900":"#181D15","success-950":"#10120E","warning-050":"#FFF1BD","warning-100":"#FFE176","warning-150":"#FFCF25","warning-200":"#F4BF06","warning-250":"#E3B205","warning-300":"#D3A504","warning-350":"#C29805","warning-400":"#B28C03","warning-450":"#A27F03","warning-500":"#937303","warning-550":"#836703","warning-600":"#745B03","warning-650":"#625019","warning-700":"#524620","warning-750":"#443B20","warning-800":"#36301D","warning-850":"#2A2619","warning-900":"#1E1C13","warning-950":"#12110C","error-050":"#FCEDED","error-100":"#FADBDB","error-150":"#F7C9C9","error-200":"#F5B7B7","error-250":"#F2A4A4","error-300":"#EF9191","error-350":"#EC7D7D","error-400":"#E96868","error-450":"#E55050","error-500":"#E13131","error-550":"#D80000","error-600":"#C00101","error-650":"#9E2219","error-700":"#802820","error-750":"#662820","error-800":"#4F231E","error-850":"#3B1D19","error-900":"#2A1614","error-950":"#1A0E0C","red-050":"#FDEDED","red-100":"#FADBDB","red-150":"#F8C9C9","red-200":"#F5B7B6","red-250":"#F3A4A3","red-300":"#F09190","red-350":"#EE7C7B","red-400":"#EB6665","red-450":"#E74E4D","red-500":"#D83F3D","red-550":"#C23837","red-600":"#AC3231","red-650":"#8D3531","red-700":"#73332F","red-750":"#5B2F2B","red-800":"#472826","red-850":"#35211F","red-900":"#251817","red-950":"#160F0E","orange-050":"#FDEEE2","orange-100":"#FCDDC5","orange-150":"#FACBA8","orange-200":"#F8B98B","orange-250":"#F6A76A","orange-300":"#F4934B","orange-350":"#F27E27","orange-400":"#E76E12","orange-450":"#D26411","orange-500":"#BE5B0F","orange-550":"#AA510E","orange-600":"#97480C","orange-650":"#7E431D","orange-700":"#673C22","orange-750":"#533422","orange-800":"#412C1F","orange-850":"#31231B","orange-900":"#221A14","orange-950":"#15100C","brown-050":"#F3F0EF","brown-100":"#E7E1DF","brown-150":"#DCD2CF","brown-200":"#D0C4BF","brown-250":"#C5B6B0","brown-300":"#BAA7A1","brown-350":"#AF9992","brown-400":"#A48B83","brown-450":"#997E74","brown-500":"#8F7065","brown-550":"#846357","brown-600":"#7A5649","brown-650":"#684C42","brown-700":"#57423C","brown-750":"#463833","brown-800":"#382E2A","brown-850":"#2B2422","brown-900":"#1F1B19","brown-950":"#121010","yellow-050":"#FAF0D3","yellow-100":"#F5E2A4","yellow-150":"#F0D275","yellow-200":"#EBC242","yellow-250":"#E4B213","yellow-300":"#D4A511","yellow-350":"#C39810","yellow-400":"#B38B0F","yellow-450":"#A37F0D","yellow-500":"#93730C","yellow-550":"#84670B","yellow-600":"#755B0A","yellow-650":"#63501C","yellow-700":"#534521","yellow-750":"#443A21","yellow-800":"#36301F","yellow-850":"#29261A","yellow-900":"#1D1C14","yellow-950":"#12110C","green-050":"#E2F6E5","green-100":"#C5ECCA","green-150":"#A7E3AF","green-200":"#89D894","green-250":"#67CE75","green-300":"#4DC25D","green-350":"#48B257","green-400":"#41A44F","green-450":"#3B9548","green-500":"#368741","green-550":"#30793A","green-600":"#2B6B33","green-650":"#2F5C34","green-700":"#2E4E31","green-750":"#2A412C","green-800":"#253426","green-850":"#1E281F","green-900":"#171D17","green-950":"#0F120F","blue-1-050":"#EBF1FF","blue-1-100":"#D6E3FE","blue-1-150":"#C2D5FE","blue-1-200":"#ADC7FE","blue-1-250":"#99B8FD","blue-1-300":"#84AAFD","blue-1-350":"#6F9BFD","blue-1-400":"#5A8DFB","blue-1-450":"#437DFC","blue-1-500":"#3D71E4","blue-1-550":"#3665CC","blue-1-600":"#305AB5","blue-1-650":"#315093","blue-1-700":"#2E4675","blue-1-750":"#293B5E","blue-1-800":"#243048","blue-1-850":"#1E2635","blue-1-900":"#171C25","blue-1-950":"#0E1116","blue-2-050":"#E2F4F9","blue-2-100":"#C5E9F3","blue-2-150":"#A7DDED","blue-2-200":"#88D1E6","blue-2-250":"#68C5E0","blue-2-300":"#48B8D9","blue-2-350":"#3BAACA","blue-2-400":"#359CB9","blue-2-450":"#318EA9","blue-2-500":"#2C8199","blue-2-550":"#277389","blue-2-600":"#236679","blue-2-650":"#2A5866","blue-2-700":"#2A4B55","blue-2-750":"#283F47","blue-2-800":"#233337","blue-2-850":"#1D272A","blue-2-900":"#161C1E","blue-2-950":"#0E1112","purple-050":"#F6EEFF","purple-100":"#ECDCFF","purple-150":"#E3CBFE","purple-200":"#DAB9FE","purple-250":"#D0A7FE","purple-300":"#C795FE","purple-350":"#BD83FD","purple-400":"#B36FFD","purple-450":"#A85BFD","purple-500":"#9B4BF3","purple-550":"#8B43DA","purple-600":"#7B3CC1","purple-650":"#673C9B","purple-700":"#56387D","purple-750":"#463162","purple-800":"#382A4A","purple-850":"#2A2237","purple-900":"#1E1926","purple-950":"#121017","pink-050":"#FCEDF5","pink-100":"#F9DAEA","pink-150":"#F7C7E0","pink-200":"#F4B4D5","pink-250":"#F1A1CA","pink-300":"#EE8CBF","pink-350":"#EA77B3","pink-400":"#E760A6","pink-450":"#E24797","pink-500":"#CD4089","pink-550":"#B8397B","pink-600":"#A3336D","pink-650":"#86355E","pink-700":"#6E334F","pink-750":"#582E42","pink-800":"#442834","pink-850":"#332028","pink-900":"#24181D","pink-950":"#160F12","black-000":"#1B1C1D00","black-050":"#1B1C1D0D","black-100":"#1B1C1D1A","black-150":"#1B1C1D26","black-200":"#1B1C1D33","black-250":"#1B1C1D40","black-300":"#1B1C1D4D","black-350":"#1B1C1D59","black-400":"#1B1C1D66","black-450":"#1B1C1D73","black-500":"#1B1C1D80","black-550":"#1B1C1D8C","black-600":"#1B1C1D99","black-650":"#1B1C1DA6","black-700":"#1B1C1DB2","black-750":"#1B1C1DBF","black-800":"#1B1C1DCC","black-850":"#1B1C1DD9","black-900":"#1B1C1DE5","black-950":"#101112F2","white-000":"#F7F8F800","white-050":"#F7F8F80D","white-100":"#F7F8F81A","white-150":"#F7F8F826","white-200":"#F7F8F833","white-250":"#F7F8F840","white-300":"#F7F8F84D","white-350":"#F7F8F859","white-400":"#F7F8F866","white-450":"#F7F8F873","white-500":"#F7F8F880","white-550":"#F7F8F88C","white-600":"#F7F8F899","white-650":"#F7F8F8A6","white-700":"#F7F8F8B2","white-750":"#F7F8F8BF","white-800":"#F7F8F8CC","white-850":"#F7F8F8D9","white-900":"#F7F8F8E5","white-950":"#F7F8F8F2","white-975":"#F7F8F8F9"},transitions:{"ease-in":"cubic-bezier(0.32, 0, 0.67, 0)","ease-out":"cubic-bezier(0.33, 1, 0.68, 1)","ease-in-out":"cubic-bezier(0.65, 0, 0.35, 1)",duration:"250ms"},font:{sizes:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",ml:"0.938rem",xl:"1.25rem",t:"0.6875rem",s:"0.75rem",h1:"2rem",h2:"1.75rem",h3:"1.5rem",h4:"1.375rem",h5:"1.25rem",h6:"1.125rem","xl-alt":"5rem","lg-alt":"4.5rem","md-alt":"4rem","sm-alt":"3.5rem","xs-alt":"3rem"},weights:{thin:200,light:300,regular:400,medium:500,bold:600,extrabold:700,black:800},families:{base:'"Roboto Flex Variable", sans-serif',accent:'"Roboto Flex Variable", sans-serif'}},spacings:{l:"3rem",b:"1.625rem",m:"0.8125rem",s:"1rem",t:"0.5rem",st:"0.25rem","4xs":"0.125rem","3xs":"0.25rem","2xs":"0.375rem",xxxs:"0.25rem",xxs:"0.375rem",xs:"0.5rem",sm:"0.75rem",base:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem",xxl:"3rem",xxxl:"3.5rem","2xl":"3rem","3xl":"3.5rem","4xl":"4rem","5xl":"4.5rem","6xl":"6rem","7xl":"7.5rem"},breakpoints:{xs:"0px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1400px"}},contextuals:{background:{surface:{primary:"#2F3033",secondary:"#252627",tertiary:"#1B1C1D"},semantic:{contextual:{primary:"#F7F8F80D","primary-hover":"#F7F8F81A"},overlay:{primary:"#F7F8F80D","primary-hover":"#F7F8F81A"},brand:{primary:"#1167D4","primary-hover":"#1A509F",secondary:"#20467F","secondary-hover":"#203C63",tertiary:"#203C63","tertiary-hover":"#1D314C"},neutral:{primary:"#686B6F","primary-hover":"#505356",secondary:"#45474A","secondary-hover":"#3A3B3E",tertiary:"#3A3B3E","tertiary-hover":"#2F3033"},info:{primary:"#1167D4","primary-hover":"#1A509F",secondary:"#20467F","secondary-hover":"#203C63",tertiary:"#203C63","tertiary-hover":"#1D314C"},success:{primary:"#427816","primary-hover":"#385C1F",secondary:"#344D24","secondary-hover":"#2E4022",tertiary:"#2E4022","tertiary-hover":"#27341F"},warning:{primary:"#836703","primary-hover":"#625019",secondary:"#524620","secondary-hover":"#443B20",tertiary:"#443B20","tertiary-hover":"#36301D"},error:{primary:"#D80000","primary-hover":"#9E2219",secondary:"#802820","secondary-hover":"#662820",tertiary:"#662820","tertiary-hover":"#4F231E"},disabled:{primary:"#3A3B3E",secondary:"#2F3033"}},palette:{brand:{primary:"#6CA0E4",secondary:"#4085DC",tertiary:"#1167D4"},red:{primary:"#EE7C7B",secondary:"#E74E4D",tertiary:"#C23837"},orange:{primary:"#F27E27",secondary:"#D26411",tertiary:"#AA510E"},brown:{primary:"#AF9992",secondary:"#997E74",tertiary:"#846357"},yellow:{primary:"#C39810",secondary:"#A37F0D",tertiary:"#84670B"},green:{primary:"#48B257",secondary:"#3B9548",tertiary:"#30793A"},"blue-1":{primary:"#6F9BFD",secondary:"#437DFC",tertiary:"#3665CC"},"blue-2":{primary:"#3BAACA",secondary:"#318EA9",tertiary:"#277389"},purple:{primary:"#BD83FD",secondary:"#A85BFD",tertiary:"#8B43DA"},pink:{primary:"#EA77B3",secondary:"#E24797",tertiary:"#B8397B"},gray:{primary:"#999EA5",secondary:"#80848A",tertiary:"#686B6F"}}},content:{logo1:"#C1D6F2",logo2:"#C1D6F2",semantic:{contextual:{primary:"#1B1C1DD9"},overlay:{primary:"#1B1C1DD9"},brand:{primary:"#EAF1FB",secondary:"#D5E4F7",tertiary:"#96BCEC","on-brand":"#EAF1FB"},neutral:{primary:"#F0F1F2",secondary:"#E1E2E5",tertiary:"#B5B9BE","on-neutral":"#F0F1F2"},info:{primary:"#EAF1FB",secondary:"#D5E4F7",tertiary:"#96BCEC","on-info":"#EAF1FB"},success:{primary:"#E4F7D4",secondary:"#C8EEA8",tertiary:"#72CF27","on-success":"#E4F7D4"},warning:{primary:"#FFF1BD",secondary:"#FFE176",tertiary:"#E3B205","on-warning":"#FFF1BD"},error:{primary:"#FCEDED",secondary:"#FADBDB",tertiary:"#F2A4A4","on-error":"#FCEDED"},disabled:{primary:"#5C5F63",secondary:"#1B1C1D4D"}},palette:{brand:{primary:"#2976D8"},red:{primary:"#D83F3D"},orange:{primary:"#BE5B0F"},brown:{primary:"#8F7065"},yellow:{primary:"#93730C"},green:{primary:"#368741"},"blue-1":{primary:"#3D71E4"},"blue-2":{primary:"#2C8199"},purple:{primary:"#9B4BF3"},pink:{primary:"#CD4089"},gray:{primary:"#74777C"}}},border:{surface:{primary:"#3A3B3E"},semantic:{contextual:{primary:"#1B1C1D33"},overlay:{primary:"#1B1C1D33"},brand:{primary:"#4085DC",secondary:"#0659C5",tertiary:"#20467F"},neutral:{primary:"#80848A",secondary:"#5C5F63",tertiary:"#45474A"},info:{primary:"#4085DC",secondary:"#0659C5",tertiary:"#20467F"},success:{primary:"#51941C",secondary:"#3A6A14",tertiary:"#344D24"},warning:{primary:"#A27F03",secondary:"#745B03",tertiary:"#524620"},error:{primary:"#E55050",secondary:"#C00101",tertiary:"#802820"},disabled:{primary:"#2F3033"}}}},components:{}}}}),kr}var Ir={},js;function p7(){if(js)return Ir;js=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.buildRefs=void 0;const t=e=>{const r=(n,i)=>{if(typeof i=="object"){const o={};return Object.entries(i).forEach(([a,l])=>{o[a]=r((n?n+".":"")+a,l)}),o}return"ref("+n+")"};return r("",e)};return Ir.buildRefs=t,Ir}var Or={},po,Ks;function g7(){if(Ks)return po;Ks=1;var t=function(C){return e(C)&&!r(C)};function e(m){return!!m&&typeof m=="object"}function r(m){var C=Object.prototype.toString.call(m);return C==="[object RegExp]"||C==="[object Date]"||o(m)}var n=typeof Symbol=="function"&&Symbol.for,i=n?Symbol.for("react.element"):60103;function o(m){return m.$$typeof===i}function a(m){return Array.isArray(m)?[]:{}}function l(m,C){return C.clone!==!1&&C.isMergeableObject(m)?h(a(m),m,C):m}function s(m,C,E){return m.concat(C).map(function($){return l($,E)})}function c(m,C){if(!C.customMerge)return h;var E=C.customMerge(m);return typeof E=="function"?E:h}function d(m){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(m).filter(function(C){return Object.propertyIsEnumerable.call(m,C)}):[]}function f(m){return Object.keys(m).concat(d(m))}function p(m,C){try{return C in m}catch{return!1}}function g(m,C){return p(m,C)&&!(Object.hasOwnProperty.call(m,C)&&Object.propertyIsEnumerable.call(m,C))}function y(m,C,E){var $={};return E.isMergeableObject(m)&&f(m).forEach(function(w){$[w]=l(m[w],E)}),f(C).forEach(function(w){g(m,w)||(p(m,w)&&E.isMergeableObject(C[w])?$[w]=c(w,E)(m[w],C[w],E):$[w]=l(C[w],E))}),$}function h(m,C,E){E=E||{},E.arrayMerge=E.arrayMerge||s,E.isMergeableObject=E.isMergeableObject||t,E.cloneUnlessOtherwiseSpecified=l;var $=Array.isArray(C),w=Array.isArray(m),x=$===w;return x?$?E.arrayMerge(m,C,E):y(m,C,E):l(C,E)}h.all=function(C,E){if(!Array.isArray(C))throw new Error("first argument should be an array");return C.reduce(function($,w){return h($,w,E)},{})};var b=h;return po=b,po}var go={},Vs;function v7(){return Vs||(Vs=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.contextualDarkTokens=t.contextualDefaultTokens=t.globals=t.colors=void 0,t.colors={"logo-1-light":"#377FDB","logo-2-light":"#377FDB","logo-1-dark":"#C1D6F2","logo-2-dark":"#C1D6F2","brand-050":"#EAF1FB","brand-100":"#D5E4F7","brand-150":"#C0D6F4","brand-200":"#ABC9F0","brand-250":"#96BCEC","brand-300":"#80AEE8","brand-350":"#6CA0E4","brand-400":"#5693E0","brand-450":"#4085DC","brand-500":"#2976D8","brand-550":"#1167D4","brand-600":"#0659C5","brand-650":"#1A509F","brand-700":"#20467F","brand-750":"#203C63","brand-800":"#1D314C","brand-850":"#1A2638","brand-900":"#141C28","brand-950":"#0C1117","gray-000":"#FFFFFF","gray-025":"#F7F8F8","gray-050":"#F0F1F2","gray-100":"#E1E2E5","gray-150":"#D2D4D8","gray-200":"#C4C7CB","gray-250":"#B5B9BE","gray-300":"#A7ACB2","gray-350":"#999EA5","gray-400":"#8D9197","gray-450":"#80848A","gray-500":"#74777C","gray-550":"#686B6F","gray-600":"#5C5F63","gray-650":"#505356","gray-700":"#45474A","gray-750":"#3A3B3E","gray-800":"#2F3033","gray-850":"#252627","gray-900":"#1B1C1D","gray-950":"#101112","gray-1000":"#000000","info-050":"#EAF1FB","info-100":"#D5E4F7","info-150":"#C0D6F4","info-200":"#ABC9F0","info-250":"#96BCEC","info-300":"#80AEE8","info-350":"#6CA0E4","info-400":"#5693E0","info-450":"#4085DC","info-500":"#2976D8","info-550":"#1167D4","info-600":"#0659C5","info-650":"#1A509F","info-700":"#20467F","info-750":"#203C63","info-800":"#1D314C","info-850":"#1A2638","info-900":"#141C28","info-950":"#0C1117","success-050":"#E4F7D4","success-100":"#C8EEA8","success-150":"#AAE579","success-200":"#89DC45","success-250":"#72CF27","success-300":"#6AC024","success-350":"#61B121","success-400":"#59A21E","success-450":"#51941C","success-500":"#4B851A","success-550":"#427816","success-600":"#3A6A14","success-650":"#385C1F","success-700":"#344D24","success-750":"#2E4022","success-800":"#27341F","success-850":"#20281A","success-900":"#181D15","success-950":"#10120E","warning-050":"#FFF1BD","warning-100":"#FFE176","warning-150":"#FFCF25","warning-200":"#F4BF06","warning-250":"#E3B205","warning-300":"#D3A504","warning-350":"#C29805","warning-400":"#B28C03","warning-450":"#A27F03","warning-500":"#937303","warning-550":"#836703","warning-600":"#745B03","warning-650":"#625019","warning-700":"#524620","warning-750":"#443B20","warning-800":"#36301D","warning-850":"#2A2619","warning-900":"#1E1C13","warning-950":"#12110C","error-050":"#FCEDED","error-100":"#FADBDB","error-150":"#F7C9C9","error-200":"#F5B7B7","error-250":"#F2A4A4","error-300":"#EF9191","error-350":"#EC7D7D","error-400":"#E96868","error-450":"#E55050","error-500":"#E13131","error-550":"#D80000","error-600":"#C00101","error-650":"#9E2219","error-700":"#802820","error-750":"#662820","error-800":"#4F231E","error-850":"#3B1D19","error-900":"#2A1614","error-950":"#1A0E0C","red-050":"#FDEDED","red-100":"#FADBDB","red-150":"#F8C9C9","red-200":"#F5B7B6","red-250":"#F3A4A3","red-300":"#F09190","red-350":"#EE7C7B","red-400":"#EB6665","red-450":"#E74E4D","red-500":"#D83F3D","red-550":"#C23837","red-600":"#AC3231","red-650":"#8D3531","red-700":"#73332F","red-750":"#5B2F2B","red-800":"#472826","red-850":"#35211F","red-900":"#251817","red-950":"#160F0E","orange-050":"#FDEEE2","orange-100":"#FCDDC5","orange-150":"#FACBA8","orange-200":"#F8B98B","orange-250":"#F6A76A","orange-300":"#F4934B","orange-350":"#F27E27","orange-400":"#E76E12","orange-450":"#D26411","orange-500":"#BE5B0F","orange-550":"#AA510E","orange-600":"#97480C","orange-650":"#7E431D","orange-700":"#673C22","orange-750":"#533422","orange-800":"#412C1F","orange-850":"#31231B","orange-900":"#221A14","orange-950":"#15100C","brown-050":"#F3F0EF","brown-100":"#E7E1DF","brown-150":"#DCD2CF","brown-200":"#D0C4BF","brown-250":"#C5B6B0","brown-300":"#BAA7A1","brown-350":"#AF9992","brown-400":"#A48B83","brown-450":"#997E74","brown-500":"#8F7065","brown-550":"#846357","brown-600":"#7A5649","brown-650":"#684C42","brown-700":"#57423C","brown-750":"#463833","brown-800":"#382E2A","brown-850":"#2B2422","brown-900":"#1F1B19","brown-950":"#121010","yellow-050":"#FAF0D3","yellow-100":"#F5E2A4","yellow-150":"#F0D275","yellow-200":"#EBC242","yellow-250":"#E4B213","yellow-300":"#D4A511","yellow-350":"#C39810","yellow-400":"#B38B0F","yellow-450":"#A37F0D","yellow-500":"#93730C","yellow-550":"#84670B","yellow-600":"#755B0A","yellow-650":"#63501C","yellow-700":"#534521","yellow-750":"#443A21","yellow-800":"#36301F","yellow-850":"#29261A","yellow-900":"#1D1C14","yellow-950":"#12110C","green-050":"#E2F6E5","green-100":"#C5ECCA","green-150":"#A7E3AF","green-200":"#89D894","green-250":"#67CE75","green-300":"#4DC25D","green-350":"#48B257","green-400":"#41A44F","green-450":"#3B9548","green-500":"#368741","green-550":"#30793A","green-600":"#2B6B33","green-650":"#2F5C34","green-700":"#2E4E31","green-750":"#2A412C","green-800":"#253426","green-850":"#1E281F","green-900":"#171D17","green-950":"#0F120F","blue-1-050":"#EBF1FF","blue-1-100":"#D6E3FE","blue-1-150":"#C2D5FE","blue-1-200":"#ADC7FE","blue-1-250":"#99B8FD","blue-1-300":"#84AAFD","blue-1-350":"#6F9BFD","blue-1-400":"#5A8DFB","blue-1-450":"#437DFC","blue-1-500":"#3D71E4","blue-1-550":"#3665CC","blue-1-600":"#305AB5","blue-1-650":"#315093","blue-1-700":"#2E4675","blue-1-750":"#293B5E","blue-1-800":"#243048","blue-1-850":"#1E2635","blue-1-900":"#171C25","blue-1-950":"#0E1116","blue-2-050":"#E2F4F9","blue-2-100":"#C5E9F3","blue-2-150":"#A7DDED","blue-2-200":"#88D1E6","blue-2-250":"#68C5E0","blue-2-300":"#48B8D9","blue-2-350":"#3BAACA","blue-2-400":"#359CB9","blue-2-450":"#318EA9","blue-2-500":"#2C8199","blue-2-550":"#277389","blue-2-600":"#236679","blue-2-650":"#2A5866","blue-2-700":"#2A4B55","blue-2-750":"#283F47","blue-2-800":"#233337","blue-2-850":"#1D272A","blue-2-900":"#161C1E","blue-2-950":"#0E1112","purple-050":"#F6EEFF","purple-100":"#ECDCFF","purple-150":"#E3CBFE","purple-200":"#DAB9FE","purple-250":"#D0A7FE","purple-300":"#C795FE","purple-350":"#BD83FD","purple-400":"#B36FFD","purple-450":"#A85BFD","purple-500":"#9B4BF3","purple-550":"#8B43DA","purple-600":"#7B3CC1","purple-650":"#673C9B","purple-700":"#56387D","purple-750":"#463162","purple-800":"#382A4A","purple-850":"#2A2237","purple-900":"#1E1926","purple-950":"#121017","pink-050":"#FCEDF5","pink-100":"#F9DAEA","pink-150":"#F7C7E0","pink-200":"#F4B4D5","pink-250":"#F1A1CA","pink-300":"#EE8CBF","pink-350":"#EA77B3","pink-400":"#E760A6","pink-450":"#E24797","pink-500":"#CD4089","pink-550":"#B8397B","pink-600":"#A3336D","pink-650":"#86355E","pink-700":"#6E334F","pink-750":"#582E42","pink-800":"#442834","pink-850":"#332028","pink-900":"#24181D","pink-950":"#160F12","black-000":"#1B1C1D00","black-050":"#1B1C1D0D","black-100":"#1B1C1D1A","black-150":"#1B1C1D26","black-200":"#1B1C1D33","black-250":"#1B1C1D40","black-300":"#1B1C1D4D","black-350":"#1B1C1D59","black-400":"#1B1C1D66","black-450":"#1B1C1D73","black-500":"#1B1C1D80","black-550":"#1B1C1D8C","black-600":"#1B1C1D99","black-650":"#1B1C1DA6","black-700":"#1B1C1DB2","black-750":"#1B1C1DBF","black-800":"#1B1C1DCC","black-850":"#1B1C1DD9","black-900":"#1B1C1DE5","black-950":"#101112F2","white-000":"#F7F8F800","white-050":"#F7F8F80D","white-100":"#F7F8F81A","white-150":"#F7F8F826","white-200":"#F7F8F833","white-250":"#F7F8F840","white-300":"#F7F8F84D","white-350":"#F7F8F859","white-400":"#F7F8F866","white-450":"#F7F8F873","white-500":"#F7F8F880","white-550":"#F7F8F88C","white-600":"#F7F8F899","white-650":"#F7F8F8A6","white-700":"#F7F8F8B2","white-750":"#F7F8F8BF","white-800":"#F7F8F8CC","white-850":"#F7F8F8D9","white-900":"#F7F8F8E5","white-950":"#F7F8F8F2","white-975":"#F7F8F8F9"};const e={base:'"Roboto Flex Variable", sans-serif',accent:'"Roboto Flex Variable", sans-serif'},r={l:"3rem",b:"1.625rem",m:"0.8125rem",s:"1rem",t:"0.5rem",st:"0.25rem","4xs":"0.125rem","3xs":"0.25rem","2xs":"0.375rem",xxxs:"0.25rem",xxs:"0.375rem",xs:"0.5rem",sm:"0.75rem",base:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem",xxl:"3rem",xxxl:"3.5rem","2xl":"3rem","3xl":"3.5rem","4xl":"4rem","5xl":"4.5rem","6xl":"6rem","7xl":"7.5rem"},n={"ease-in":"cubic-bezier(0.32, 0, 0.67, 0)","ease-out":"cubic-bezier(0.33, 1, 0.68, 1)","ease-in-out":"cubic-bezier(0.65, 0, 0.35, 1)",duration:"250ms"},i={xs:"0px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1400px"},o={thin:200,light:300,regular:400,medium:500,bold:600,extrabold:700,black:800};t.globals={colors:t.colors,transitions:n,font:{sizes:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",ml:"0.938rem",xl:"1.25rem",t:"0.6875rem",s:"0.75rem",h1:"2rem",h2:"1.75rem",h3:"1.5rem",h4:"1.375rem",h5:"1.25rem",h6:"1.125rem","xl-alt":"5rem","lg-alt":"4.5rem","md-alt":"4rem","sm-alt":"3.5rem","xs-alt":"3rem"},weights:o,families:e},spacings:r,breakpoints:i},t.contextualDefaultTokens={background:{surface:{primary:"ref(globals.colors.gray-000)",secondary:"ref(globals.colors.gray-000)",tertiary:"ref(globals.colors.gray-025)"},semantic:{overlay:{primary:"ref(globals.colors.black-050)","primary-hover":"ref(globals.colors.black-100)"},contextual:{primary:"ref(globals.colors.black-050)","primary-hover":"ref(globals.colors.black-100)"},brand:{primary:"ref(globals.colors.brand-550)","primary-hover":"ref(globals.colors.brand-650)",secondary:"ref(globals.colors.brand-100)","secondary-hover":"ref(globals.colors.brand-150)",tertiary:"ref(globals.colors.brand-050)","tertiary-hover":"ref(globals.colors.brand-100)"},neutral:{primary:"ref(globals.colors.gray-550)","primary-hover":"ref(globals.colors.gray-650)",secondary:"ref(globals.colors.gray-100)","secondary-hover":"ref(globals.colors.gray-150)",tertiary:"ref(globals.colors.gray-050)","tertiary-hover":"ref(globals.colors.gray-100)"},info:{primary:"ref(globals.colors.info-550)","primary-hover":"ref(globals.colors.info-650)",secondary:"ref(globals.colors.info-100)","secondary-hover":"ref(globals.colors.info-150)",tertiary:"ref(globals.colors.info-050)","tertiary-hover":"ref(globals.colors.info-100)"},success:{primary:"ref(globals.colors.success-550)","primary-hover":"ref(globals.colors.success-650)",secondary:"ref(globals.colors.success-100)","secondary-hover":"ref(globals.colors.success-150)",tertiary:"ref(globals.colors.success-050)","tertiary-hover":"ref(globals.colors.success-100)"},warning:{primary:"ref(globals.colors.warning-550)","primary-hover":"ref(globals.colors.warning-650)",secondary:"ref(globals.colors.warning-100)","secondary-hover":"ref(globals.colors.warning-150)",tertiary:"ref(globals.colors.warning-050)","tertiary-hover":"ref(globals.colors.warning-100)"},error:{primary:"ref(globals.colors.error-550)","primary-hover":"ref(globals.colors.error-650)",secondary:"ref(globals.colors.error-100)","secondary-hover":"ref(globals.colors.error-150)",tertiary:"ref(globals.colors.error-050)","tertiary-hover":"ref(globals.colors.error-100)"},disabled:{primary:"ref(globals.colors.gray-100)",secondary:"ref(globals.colors.gray-050)"}},palette:{brand:{primary:"ref(globals.colors.brand-500)",secondary:"ref(globals.colors.brand-350)",tertiary:"ref(globals.colors.brand-150)"},red:{primary:"ref(globals.colors.red-500)",secondary:"ref(globals.colors.red-350)",tertiary:"ref(globals.colors.red-150)"},orange:{primary:"ref(globals.colors.orange-500)",secondary:"ref(globals.colors.orange-350)",tertiary:"ref(globals.colors.orange-150)"},brown:{primary:"ref(globals.colors.brown-500)",secondary:"ref(globals.colors.brown-350)",tertiary:"ref(globals.colors.brown-150)"},yellow:{primary:"ref(globals.colors.yellow-500)",secondary:"ref(globals.colors.yellow-350)",tertiary:"ref(globals.colors.yellow-150)"},green:{primary:"ref(globals.colors.green-500)",secondary:"ref(globals.colors.green-350)",tertiary:"ref(globals.colors.green-150)"},"blue-1":{primary:"ref(globals.colors.blue-1-500)",secondary:"ref(globals.colors.blue-1-350)",tertiary:"ref(globals.colors.blue-1-150)"},"blue-2":{primary:"ref(globals.colors.blue-2-500)",secondary:"ref(globals.colors.blue-2-350)",tertiary:"ref(globals.colors.blue-2-150)"},purple:{primary:"ref(globals.colors.purple-500)",secondary:"ref(globals.colors.purple-350)",tertiary:"ref(globals.colors.purple-150)"},pink:{primary:"ref(globals.colors.pink-500)",secondary:"ref(globals.colors.pink-350)",tertiary:"ref(globals.colors.pink-150)"},gray:{primary:"ref(globals.colors.gray-500)",secondary:"ref(globals.colors.gray-350)",tertiary:"ref(globals.colors.gray-150)"}}},content:{logo1:"ref(globals.colors.logo-1-light)",logo2:"ref(globals.colors.logo-2-light)",semantic:{contextual:{primary:"ref(globals.colors.white-950)"},overlay:{primary:"ref(globals.colors.white-950)"},brand:{primary:"ref(globals.colors.brand-700)",secondary:"ref(globals.colors.brand-600)",tertiary:"ref(globals.colors.brand-550)","on-brand":"ref(globals.colors.brand-050)"},neutral:{primary:"ref(globals.colors.gray-850)",secondary:"ref(globals.colors.gray-600)",tertiary:"ref(globals.colors.gray-550)","on-neutral":"ref(globals.colors.gray-050)"},info:{primary:"ref(globals.colors.info-700)",secondary:"ref(globals.colors.info-600)",tertiary:"ref(globals.colors.info-550)","on-info":"ref(globals.colors.info-050)"},success:{primary:"ref(globals.colors.success-700)",secondary:"ref(globals.colors.success-600)",tertiary:"ref(globals.colors.success-550)","on-success":"ref(globals.colors.success-050)"},warning:{primary:"ref(globals.colors.warning-700)",secondary:"ref(globals.colors.warning-600)",tertiary:"ref(globals.colors.warning-550)","on-warning":"ref(globals.colors.warning-050)"},error:{primary:"ref(globals.colors.error-700)",secondary:"ref(globals.colors.error-600)",tertiary:"ref(globals.colors.error-550)","on-error":"ref(globals.colors.error-050)"},disabled:{primary:"ref(globals.colors.gray-300)",secondary:"ref(globals.colors.white-500)"}},palette:{brand:{primary:"ref(globals.colors.brand-500)"},red:{primary:"ref(globals.colors.red-500)"},orange:{primary:"ref(globals.colors.orange-500)"},brown:{primary:"ref(globals.colors.brown-500)"},yellow:{primary:"ref(globals.colors.yellow-500)"},green:{primary:"ref(globals.colors.green-500)"},"blue-1":{primary:"ref(globals.colors.blue-1-500)"},"blue-2":{primary:"ref(globals.colors.blue-2-500)"},purple:{primary:"ref(globals.colors.purple-500)"},pink:{primary:"ref(globals.colors.pink-500)"},gray:{primary:"ref(globals.colors.gray-500)"}}},border:{surface:{primary:"ref(globals.colors.gray-100)"},semantic:{contextual:{primary:"ref(globals.colors.white-200)"},overlay:{primary:"ref(globals.colors.white-200)"},brand:{primary:"ref(globals.colors.brand-550)",secondary:"ref(globals.colors.brand-300)",tertiary:"ref(globals.colors.brand-150)"},neutral:{primary:"ref(globals.colors.gray-550)",secondary:"ref(globals.colors.gray-300)",tertiary:"ref(globals.colors.gray-150)"},info:{primary:"ref(globals.colors.info-550)",secondary:"ref(globals.colors.info-300)",tertiary:"ref(globals.colors.info-150)"},success:{primary:"ref(globals.colors.success-550)",secondary:"ref(globals.colors.success-300)",tertiary:"ref(globals.colors.success-150)"},warning:{primary:"ref(globals.colors.warning-550)",secondary:"ref(globals.colors.warning-300)",tertiary:"ref(globals.colors.warning-150)"},error:{primary:"ref(globals.colors.error-550)",secondary:"ref(globals.colors.error-300)",tertiary:"ref(globals.colors.error-150)"},disabled:{primary:"ref(globals.colors.gray-100)"}}}},t.contextualDarkTokens={background:{surface:{primary:"ref(globals.colors.gray-800)",secondary:"ref(globals.colors.gray-850)",tertiary:"ref(globals.colors.gray-900)"},semantic:{contextual:{primary:"ref(globals.colors.white-050)","primary-hover":"ref(globals.colors.white-100)"},overlay:{primary:"ref(globals.colors.white-050)","primary-hover":"ref(globals.colors.white-100)"},brand:{primary:"ref(globals.colors.brand-550)","primary-hover":"ref(globals.colors.brand-650)",secondary:"ref(globals.colors.brand-700)","secondary-hover":"ref(globals.colors.brand-750)",tertiary:"ref(globals.colors.brand-750)","tertiary-hover":"ref(globals.colors.brand-800)"},neutral:{primary:"ref(globals.colors.gray-550)","primary-hover":"ref(globals.colors.gray-650)",secondary:"ref(globals.colors.gray-700)","secondary-hover":"ref(globals.colors.gray-750)",tertiary:"ref(globals.colors.gray-750)","tertiary-hover":"ref(globals.colors.gray-800)"},info:{primary:"ref(globals.colors.info-550)","primary-hover":"ref(globals.colors.info-650)",secondary:"ref(globals.colors.info-700)","secondary-hover":"ref(globals.colors.info-750)",tertiary:"ref(globals.colors.info-750)","tertiary-hover":"ref(globals.colors.info-800)"},success:{primary:"ref(globals.colors.success-550)","primary-hover":"ref(globals.colors.success-650)",secondary:"ref(globals.colors.success-700)","secondary-hover":"ref(globals.colors.success-750)",tertiary:"ref(globals.colors.success-750)","tertiary-hover":"ref(globals.colors.success-800)"},warning:{primary:"ref(globals.colors.warning-550)","primary-hover":"ref(globals.colors.warning-650)",secondary:"ref(globals.colors.warning-700)","secondary-hover":"ref(globals.colors.warning-750)",tertiary:"ref(globals.colors.warning-750)","tertiary-hover":"ref(globals.colors.warning-800)"},error:{primary:"ref(globals.colors.error-550)","primary-hover":"ref(globals.colors.error-650)",secondary:"ref(globals.colors.error-700)","secondary-hover":"ref(globals.colors.error-750)",tertiary:"ref(globals.colors.error-750)","tertiary-hover":"ref(globals.colors.error-800)"},disabled:{primary:"ref(globals.colors.gray-750)",secondary:"ref(globals.colors.gray-800)"}},palette:{brand:{primary:"ref(globals.colors.brand-350)",secondary:"ref(globals.colors.brand-450)",tertiary:"ref(globals.colors.brand-550)"},red:{primary:"ref(globals.colors.red-350)",secondary:"ref(globals.colors.red-450)",tertiary:"ref(globals.colors.red-550)"},orange:{primary:"ref(globals.colors.orange-350)",secondary:"ref(globals.colors.orange-450)",tertiary:"ref(globals.colors.orange-550)"},brown:{primary:"ref(globals.colors.brown-350)",secondary:"ref(globals.colors.brown-450)",tertiary:"ref(globals.colors.brown-550)"},yellow:{primary:"ref(globals.colors.yellow-350)",secondary:"ref(globals.colors.yellow-450)",tertiary:"ref(globals.colors.yellow-550)"},green:{primary:"ref(globals.colors.green-350)",secondary:"ref(globals.colors.green-450)",tertiary:"ref(globals.colors.green-550)"},"blue-1":{primary:"ref(globals.colors.blue-1-350)",secondary:"ref(globals.colors.blue-1-450)",tertiary:"ref(globals.colors.blue-1-550)"},"blue-2":{primary:"ref(globals.colors.blue-2-350)",secondary:"ref(globals.colors.blue-2-450)",tertiary:"ref(globals.colors.blue-2-550)"},purple:{primary:"ref(globals.colors.purple-350)",secondary:"ref(globals.colors.purple-450)",tertiary:"ref(globals.colors.purple-550)"},pink:{primary:"ref(globals.colors.pink-350)",secondary:"ref(globals.colors.pink-450)",tertiary:"ref(globals.colors.pink-550)"},gray:{primary:"ref(globals.colors.gray-350)",secondary:"ref(globals.colors.gray-450)",tertiary:"ref(globals.colors.gray-550)"}}},content:{logo1:"ref(globals.colors.logo-1-dark)",logo2:"ref(globals.colors.logo-2-dark)",semantic:{contextual:{primary:"ref(globals.colors.black-850)"},overlay:{primary:"ref(globals.colors.black-850)"},brand:{primary:"ref(globals.colors.brand-050)",secondary:"ref(globals.colors.brand-100)",tertiary:"ref(globals.colors.brand-250)","on-brand":"ref(globals.colors.brand-050)"},neutral:{primary:"ref(globals.colors.gray-050)",secondary:"ref(globals.colors.gray-100)",tertiary:"ref(globals.colors.gray-250)","on-neutral":"ref(globals.colors.gray-050)"},info:{primary:"ref(globals.colors.info-050)",secondary:"ref(globals.colors.info-100)",tertiary:"ref(globals.colors.info-250)","on-info":"ref(globals.colors.info-050)"},success:{primary:"ref(globals.colors.success-050)",secondary:"ref(globals.colors.success-100)",tertiary:"ref(globals.colors.success-250)","on-success":"ref(globals.colors.success-050)"},warning:{primary:"ref(globals.colors.warning-050)",secondary:"ref(globals.colors.warning-100)",tertiary:"ref(globals.colors.warning-250)","on-warning":"ref(globals.colors.warning-050)"},error:{primary:"ref(globals.colors.error-050)",secondary:"ref(globals.colors.error-100)",tertiary:"ref(globals.colors.error-250)","on-error":"ref(globals.colors.error-050)"},disabled:{primary:"ref(globals.colors.gray-600)",secondary:"ref(globals.colors.black-300)"}},palette:{brand:{primary:"ref(globals.colors.brand-500)"},red:{primary:"ref(globals.colors.red-500)"},orange:{primary:"ref(globals.colors.orange-500)"},brown:{primary:"ref(globals.colors.brown-500)"},yellow:{primary:"ref(globals.colors.yellow-500)"},green:{primary:"ref(globals.colors.green-500)"},"blue-1":{primary:"ref(globals.colors.blue-1-500)"},"blue-2":{primary:"ref(globals.colors.blue-2-500)"},purple:{primary:"ref(globals.colors.purple-500)"},pink:{primary:"ref(globals.colors.pink-500)"},gray:{primary:"ref(globals.colors.gray-500)"}}},border:{surface:{primary:"ref(globals.colors.gray-750)"},semantic:{contextual:{primary:"ref(globals.colors.black-200)"},overlay:{primary:"ref(globals.colors.black-200)"},brand:{primary:"ref(globals.colors.brand-450)",secondary:"ref(globals.colors.brand-600)",tertiary:"ref(globals.colors.brand-700)"},neutral:{primary:"ref(globals.colors.gray-450)",secondary:"ref(globals.colors.gray-600)",tertiary:"ref(globals.colors.gray-700)"},info:{primary:"ref(globals.colors.info-450)",secondary:"ref(globals.colors.info-600)",tertiary:"ref(globals.colors.info-700)"},success:{primary:"ref(globals.colors.success-450)",secondary:"ref(globals.colors.success-600)",tertiary:"ref(globals.colors.success-700)"},warning:{primary:"ref(globals.colors.warning-450)",secondary:"ref(globals.colors.warning-600)",tertiary:"ref(globals.colors.warning-700)"},error:{primary:"ref(globals.colors.error-450)",secondary:"ref(globals.colors.error-600)",tertiary:"ref(globals.colors.error-700)"},disabled:{primary:"ref(globals.colors.gray-800)"}}}},t.default={themes:{default:{globals:t.globals,contextuals:t.contextualDefaultTokens,components:{}},dark:{globals:t.globals,contextuals:t.contextualDarkTokens,components:{}}}}}(go)),go}var Hs;function b7(){if(Hs)return Or;Hs=1,Object.defineProperty(Or,"__esModule",{value:!0}),Or.getThemesFromGlobals=void 0;const t=g7(),e=v7(),r=["light","dark"],n={light:e.contextualDefaultTokens,dark:e.contextualDarkTokens},i=(o={},a={})=>(a.variants||r).reduce((s,c)=>{const d=a.prefix?`${a.prefix}-${c}`:c;return s[d]=t({globals:o,contextuals:n[c]},a.overrides||{}),s},{});return Or.getThemesFromGlobals=i,Or}var zs;function m7(){return zs||(zs=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.getThemesFromGlobals=t.buildRefs=t.defaultTokenRefs=t.defaultThemes=t.defaultTokens=void 0;const e=h7(),r=p7();Object.defineProperty(t,"buildRefs",{enumerable:!0,get:function(){return r.buildRefs}});const n=b7();Object.defineProperty(t,"getThemesFromGlobals",{enumerable:!0,get:function(){return n.getThemesFromGlobals}}),t.defaultTokens=e.tokens.themes.default,t.defaultThemes=e.tokens.themes,t.defaultTokenRefs=(0,r.buildRefs)(t.defaultTokens)}(ho)),ho}var Ti=m7();const ki={components:{modal:{"width-small":"342px"},tooltip:{padding:"4px 8px"},button:{"medium-height":"40px","medium-text-height":"40px","border-radius":"4px","border-radius--active":"4px","border-radius--focus":"4px"},datagrid:{"header--color":"ref(contextuals.content.semantic.neutral.primary)","header--size":"12px","header--weight":"500","body--background-color-hover":"ref(contextuals.background.semantic.neutral.tertiary)"},"forms-checkbox":{"font-size":"ref(globals.font.sizes.sm)"},badge:{"font-size":"ref(globals.font.sizes.xs)","border-radius":"12px","padding-inline":"ref(globals.spacings.xs)","padding-block":"ref(globals.spacings.2xs)",accent:{"background-color":"ref(contextuals.background.semantic.brand.secondary)",color:"ref(contextuals.content.semantic.brand.secondary)"},neutral:{"background-color":"ref(contextuals.background.semantic.neutral.secondary)",color:"ref(contextuals.content.semantic.neutral.secondary)"},danger:{"background-color":"ref(contextuals.background.semantic.error.secondary)",color:"ref(contextuals.content.semantic.error.secondary)"},success:{"background-color":"ref(contextuals.background.semantic.success.secondary)",color:"ref(contextuals.content.semantic.success.secondary)"},warning:{"background-color":"ref(contextuals.background.semantic.warning.secondary)",color:"ref(contextuals.content.semantic.warning.secondary)"},info:{"background-color":"ref(contextuals.background.semantic.info.secondary)",color:"ref(contextuals.content.semantic.info.secondary)"}}}},Xr={font:{sizes:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",ml:"0.938rem",xl:"1.25rem",t:"0.6875rem",s:"0.75rem",h1:"2rem",h2:"1.75rem",h3:"1.5rem",h4:"1.375rem",h5:"1.25rem",h6:"1.125rem","xl-alt":"5rem","lg-alt":"4.5rem","md-alt":"4rem","sm-alt":"3.5rem","xs-alt":"3rem"},weights:{thin:100,extrabold:800,black:900},families:{accent:"Marianne, Inter, Roboto Flex Variable, sans-serif",base:"Marianne, Inter, Roboto Flex Variable, sans-serif"}},spacings:{0:"0",none:"0",auto:"auto",bx:"2.2rem",full:"100%","4xs":"0.125rem","3xs":"0.25rem","2xs":"0.375rem",xs:"0.5rem",sm:"0.75rem",base:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem",xxl:"3rem","2xl":"3rem",xxxl:"3.5rem","3xl":"3.5rem","4xl":"4rem","5xl":"4.5rem","6xl":"6rem","7xl":"7.5rem"},breakpoints:{xxs:"320px",xs:"480px",mobile:"768px",tablet:"1024px"}},rd={colors:{"logo-1-light":"#4844AD","logo-2-light":"#4844AD","logo-1-dark":"#BEC5F0","logo-2-dark":"#BEC5F0","brand-050":"#EEF1FA","brand-100":"#DDE2F5","brand-150":"#CED3F1","brand-200":"#BEC5F0","brand-250":"#AFB5F1","brand-300":"#A0A5F6","brand-350":"#8F94FD","brand-400":"#8184FC","brand-450":"#7576EE","brand-500":"#6969DF","brand-550":"#5E5CD0","brand-600":"#534FC2","brand-650":"#4844AD","brand-700":"#3E3B98","brand-750":"#36347D","brand-800":"#2D2F5F","brand-850":"#262848","brand-900":"#1C1E32","brand-950":"#11131F","gray-000":"#FFFFFF","gray-025":"#F8F8F9","gray-050":"#F0F0F3","gray-100":"#E2E2EA","gray-150":"#D3D4E0","gray-200":"#C5C6D5","gray-250":"#B7B7CB","gray-300":"#A9A9BF","gray-350":"#9C9CB2","gray-400":"#8F8FA4","gray-450":"#828297","gray-500":"#75758A","gray-550":"#69697D","gray-600":"#5D5D70","gray-650":"#515164","gray-700":"#454558","gray-750":"#3A3A4C","gray-800":"#2F303D","gray-850":"#25252F","gray-900":"#1B1B23","gray-950":"#111114","gray-1000":"#000000","info-050":"#EAF2F9","info-100":"#D5E4F3","info-150":"#BFD7F0","info-200":"#A7CAEE","info-250":"#8DBDEF","info-300":"#6EB0F2","info-350":"#50A2F5","info-400":"#3593F4","info-450":"#1185ED","info-500":"#0077DE","info-550":"#0069CF","info-600":"#005BC0","info-650":"#0D4EAA","info-700":"#124394","info-750":"#163878","info-800":"#192F5A","info-850":"#192541","info-900":"#141B2D","info-950":"#0C111C","success-050":"#E8F1EA","success-100":"#CFE4D4","success-150":"#BAD9C1","success-200":"#A2CFAD","success-250":"#86C597","success-300":"#6CBA83","success-350":"#4FB070","success-400":"#40A363","success-450":"#309556","success-500":"#1E884A","success-550":"#027B3E","success-600":"#016D31","success-650":"#006024","success-700":"#005317","success-750":"#0D4511","success-800":"#11380E","success-850":"#132A11","success-900":"#101E0F","success-950":"#091209","warning-050":"#F8F0E9","warning-100":"#F1E0D3","warning-150":"#ECD0BC","warning-200":"#E8C0A4","warning-250":"#E8AE8A","warning-300":"#EB9970","warning-350":"#E98456","warning-400":"#E57036","warning-450":"#DA5E18","warning-500":"#CB5000","warning-550":"#BC4200","warning-600":"#AD3300","warning-650":"#9E2300","warning-700":"#882011","warning-750":"#731E16","warning-800":"#58201A","warning-850":"#401D18","warning-900":"#2E1714","warning-950":"#1D0F0D","error-050":"#F9EFEC","error-100":"#F4DFD9","error-150":"#F0CEC6","error-200":"#EEBCB2","error-250":"#EEA99D","error-300":"#EF9486","error-350":"#F37C6E","error-400":"#F65F53","error-450":"#F0463D","error-500":"#E82322","error-550":"#D7010E","error-600":"#C00100","error-650":"#AA0000","error-700":"#910C06","error-750":"#731E16","error-800":"#58201A","error-850":"#401D18","error-900":"#2E1714","error-950":"#1D0F0D","red-050":"#FAEFEE","red-100":"#F4DEDD","red-150":"#F1CDCB","red-200":"#EFBBBA","red-250":"#EEA8A8","red-300":"#F09394","red-350":"#F37B7E","red-400":"#EF6569","red-450":"#E94A55","red-500":"#DA3B49","red-550":"#CA2A3C","red-600":"#BB1330","red-650":"#A90021","red-700":"#910A13","red-750":"#731E16","red-800":"#58201A","red-850":"#411D18","red-900":"#2E1714","red-950":"#1D0F0D","orange-050":"#F8F0E9","orange-100":"#F1E0D3","orange-150":"#ECD0BD","orange-200":"#EABFA6","orange-250":"#EBAC90","orange-300":"#EC9772","orange-350":"#E5845A","orange-400":"#D6774D","orange-450":"#C86A40","orange-500":"#B95D33","orange-550":"#AB5025","orange-600":"#9D4315","orange-650":"#8F3600","orange-700":"#812900","orange-750":"#6C2511","orange-800":"#572017","orange-850":"#401D18","orange-900":"#2E1714","orange-950":"#1D0F0D","brown-050":"#F6F0E8","brown-100":"#F1E0D3","brown-150":"#EBD0BA","brown-200":"#E2C0A6","brown-250":"#D4B398","brown-300":"#C6A58B","brown-350":"#B8987E","brown-400":"#AA8B71","brown-450":"#9D7E65","brown-500":"#8F7158","brown-550":"#82654C","brown-600":"#765841","brown-650":"#694C35","brown-700":"#5D412A","brown-750":"#51361E","brown-800":"#452A13","brown-850":"#392008","brown-900":"#29180A","brown-950":"#1B0F08","yellow-050":"#F3F0E7","yellow-100":"#E9E2CF","yellow-150":"#E1D4B7","yellow-200":"#D9C599","yellow-250":"#D2B677","yellow-300":"#CAA756","yellow-350":"#C2972E","yellow-400":"#B98900","yellow-450":"#AB7B00","yellow-500":"#9D6E00","yellow-550":"#916100","yellow-600":"#855400","yellow-650":"#784700","yellow-700":"#6C3A00","yellow-750":"#5F2E00","yellow-800":"#512302","yellow-850":"#3E1D10","yellow-900":"#2D1711","yellow-950":"#1D0F0D","green-050":"#E6F1E9","green-100":"#CFE4D5","green-150":"#B8D8C1","green-200":"#A0CFAE","green-250":"#84C59A","green-300":"#65BA86","green-350":"#45B173","green-400":"#23A562","green-450":"#029755","green-500":"#008948","green-550":"#017B3B","green-600":"#006E2E","green-650":"#006022","green-700":"#005314","green-750":"#0D4510","green-800":"#11380E","green-850":"#132A11","green-900":"#101E0F","green-950":"#091209","blue-1-050":"#EBF1F9","blue-1-100":"#D6E4F4","blue-1-150":"#C1D7F0","blue-1-200":"#AACAEF","blue-1-250":"#8FBCEF","blue-1-300":"#7CAFEB","blue-1-350":"#68A1E4","blue-1-400":"#5B94D6","blue-1-450":"#4E86C7","blue-1-500":"#4279B9","blue-1-550":"#356CAC","blue-1-600":"#28609E","blue-1-650":"#1B5390","blue-1-700":"#0B4783","blue-1-750":"#0F3C6E","blue-1-800":"#133059","blue-1-850":"#152641","blue-1-900":"#121C2D","blue-1-950":"#0B111C","blue-2-050":"#E7F3F4","blue-2-100":"#CEE7E9","blue-2-150":"#B2DCE0","blue-2-200":"#91D1D7","blue-2-250":"#68C7D0","blue-2-300":"#43BBC5","blue-2-350":"#00AFBA","blue-2-400":"#01A0AA","blue-2-450":"#00929D","blue-2-500":"#00848F","blue-2-550":"#007682","blue-2-600":"#016874","blue-2-650":"#005B67","blue-2-700":"#004E5A","blue-2-750":"#00424E","blue-2-800":"#003642","blue-2-850":"#002A38","blue-2-900":"#061E28","blue-2-950":"#071219","purple-050":"#F7F0F6","purple-100":"#EEE0EE","purple-150":"#E7D1E7","purple-200":"#DBBFE4","purple-250":"#D3AEE2","purple-300":"#CB99E1","purple-350":"#C188D9","purple-400":"#B47BCB","purple-450":"#A66EBD","purple-500":"#9961AF","purple-550":"#8B55A1","purple-600":"#7E4894","purple-650":"#723C87","purple-700":"#633376","purple-750":"#552A65","purple-800":"#452551","purple-850":"#35213D","purple-900":"#261A2C","purple-950":"#17111C","pink-050":"#F8EFF4","pink-100":"#F0DFEA","pink-150":"#EACEDF","pink-200":"#E9BBD1","pink-250":"#E9A7C2","pink-300":"#E095B4","pink-350":"#D685A8","pink-400":"#C7799B","pink-450":"#B86C8D","pink-500":"#AA5F80","pink-550":"#9C5374","pink-600":"#8E4767","pink-650":"#813B5B","pink-700":"#732E4F","pink-750":"#632643","pink-800":"#521F38","pink-850":"#3E1C2B","pink-900":"#2D171F","pink-950":"#1C0E12","black-000":"#1B1B2300","black-050":"#1B1B230D","black-100":"#1B1B231A","black-150":"#1B1B2326","black-200":"#1B1B2333","black-250":"#1B1B2340","black-300":"#1B1B234D","black-350":"#1B1B2359","black-400":"#1B1B2366","black-450":"#1B1B2373","black-500":"#1B1B2380","black-550":"#1B1B238C","black-600":"#1B1B2399","black-650":"#1B1B23A6","black-700":"#1B1B23B2","black-750":"#1B1B23BF","black-800":"#1B1B23CC","black-850":"#1B1B23D9","black-900":"#1B1B23E5","black-950":"#111114F2","white-000":"#F8F8F900","white-050":"#F8F8F90D","white-100":"#F8F8F91A","white-150":"#F8F8F926","white-200":"#F8F8F933","white-250":"#F8F8F940","white-300":"#F8F8F94D","white-350":"#F8F8F959","white-400":"#F8F8F966","white-450":"#F8F8F973","white-500":"#F8F8F980","white-550":"#F8F8F98C","white-600":"#F8F8F999","white-650":"#F8F8F9A6","white-700":"#F8F8F9B2","white-750":"#F8F8F9BF","white-800":"#F8F8F9CC","white-850":"#F8F8F9D9","white-900":"#F8F8F9E5","white-950":"#F8F8F9F2","white-975":"#F8F8F9F9"},...Xr,font:{...Xr.font,families:{base:"Hanken Grotesk, Inter, Roboto Flex Variable, sans-serif",accent:"Hanken Grotesk, Inter, Roboto Flex Variable, sans-serif"}}},nd={colors:{"logo-1-light":"#2845C1","logo-2-light":"#C83F49","logo-1-dark":"#95ABFF","logo-2-dark":"#E78087","brand-050":"#EDF0FF","brand-100":"#DAE2FF","brand-150":"#C8D3FF","brand-200":"#B5C4FF","brand-250":"#A2B6FF","brand-300":"#90A7FF","brand-350":"#7E98FF","brand-400":"#6C89FE","brand-450":"#5C7AF7","brand-500":"#4C6CEF","brand-550":"#3E5DE7","brand-600":"#304DDF","brand-650":"#2845C1","brand-700":"#223E9E","brand-750":"#1F367D","brand-800":"#1B2E5F","brand-850":"#172446","brand-900":"#121B30","brand-950":"#0C111A","gray-100":"#DFE2EA","gray-150":"#CFD5DE","gray-200":"#C1C7D3","gray-250":"#B2B9C7","gray-300":"#A4ABBC","gray-350":"#969EB0","gray-400":"#8891A4","gray-450":"#7B8498","gray-500":"#6D778C","gray-550":"#626A80","gray-600":"#555E74","gray-650":"#4A5267","gray-700":"#3F4759","gray-750":"#363B4C","gray-800":"#2B303D","gray-850":"#222631","gray-900":"#181B24","gray-950":"#0F1117","gray-1000":"#000000","info-050":"#E7F2FF","info-100":"#CFE5FF","info-150":"#B7D7FF","info-200":"#A0CAFE","info-250":"#8CBCF9","info-300":"#77AEF4","info-350":"#63A0EE","info-400":"#5092E7","info-450":"#4185DC","info-500":"#3677CC","info-550":"#2F6ABB","info-600":"#265EAA","info-650":"#28528F","info-700":"#274775","info-750":"#243C5E","info-800":"#20314A","info-850":"#1B2637","info-900":"#141C27","info-950":"#0D1118","success-050":"#DEF7E6","success-100":"#BAEECF","success-150":"#A5E2C0","success-200":"#95D4B3","success-250":"#85C6A7","success-300":"#74B99B","success-350":"#65AB8F","success-400":"#579E84","success-450":"#4B9079","success-500":"#40836F","success-550":"#367664","success-600":"#2B695A","success-650":"#2C5A50","success-700":"#2A4D45","success-750":"#26403C","success-800":"#213430","success-850":"#1B2826","success-900":"#151D1C","success-950":"#0D1212","warning-050":"#FFEEDF","warning-100":"#FFDCBE","warning-150":"#FFCA9C","warning-200":"#FFB778","warning-250":"#FDA54F","warning-300":"#F59425","warning-350":"#E78613","warning-400":"#D7790C","warning-450":"#C86C08","warning-500":"#B85F03","warning-550":"#A75400","warning-600":"#984800","warning-650":"#814112","warning-700":"#6C3A19","warning-750":"#58321C","warning-800":"#452A1A","warning-850":"#352117","warning-900":"#261813","warning-950":"#170F0C","error-050":"#FFEDEB","error-100":"#FFDAD7","error-150":"#FFC7C2","error-200":"#FFB3AD","error-250":"#FF9F99","error-300":"#FF8984","error-350":"#FF706E","error-400":"#FB5759","error-450":"#F63A45","error-500":"#E32C39","error-550":"#CF202D","error-600":"#BD0F23","error-650":"#9D2227","error-700":"#812727","error-750":"#672624","error-800":"#512220","error-850":"#3D1C1B","error-900":"#2A1614","error-950":"#190E0D","red-050":"#FFEDEB","red-100":"#FFDAD7","red-150":"#FFC7C2","red-200":"#FFB3AD","red-250":"#FF9F99","red-300":"#FF8984","red-350":"#FF706E","red-400":"#FB5759","red-450":"#F63A45","red-500":"#E32C39","red-550":"#CF202D","red-600":"#BD0F23","red-650":"#9D2227","red-700":"#812727","red-750":"#672624","red-800":"#512220","red-850":"#3D1C1B","red-900":"#410003","red-950":"#190E0D","orange-050":"#FCEDEB","orange-100":"#F8DCD7","orange-150":"#F1CCC5","orange-200":"#EABCB4","orange-250":"#E2ACA2","orange-300":"#DA9C92","orange-350":"#D28C81","orange-400":"#CA7C70","orange-450":"#BE6E62","orange-500":"#AE6257","orange-550":"#9E564D","orange-600":"#8F4B42","orange-650":"#79443D","orange-700":"#643C37","orange-750":"#513430","orange-800":"#412B28","orange-850":"#312220","orange-900":"#231918","orange-950":"#150F0F","brown-050":"#F9EFEA","brown-100":"#F3DFD3","brown-150":"#EACFC1","brown-200":"#E2BFAE","brown-250":"#D8B19C","brown-300":"#D0A189","brown-350":"#C3937B","brown-400":"#B5866D","brown-450":"#A77A62","brown-500":"#996D57","brown-550":"#8B614D","brown-600":"#7C5542","brown-650":"#6A4C3C","brown-700":"#594236","brown-750":"#49382F","brown-800":"#3B2E28","brown-850":"#2D2420","brown-900":"#201A18","brown-950":"#13100F","yellow-050":"#FDF1C5","yellow-100":"#FBE18E","yellow-150":"#F4D261","yellow-200":"#EAC244","yellow-250":"#DFB41B","yellow-300":"#D1A516","yellow-350":"#C49711","yellow-400":"#B78A0C","yellow-450":"#A87D07","yellow-500":"#9B6F02","yellow-550":"#8D6300","yellow-600":"#7F5600","yellow-650":"#6E4C11","yellow-700":"#5D4219","yellow-750":"#4D371B","yellow-800":"#3D2E1A","yellow-850":"#2F2417","yellow-900":"#221A12","yellow-950":"#14100C","green-050":"#E7F9B3","green-100":"#D5EC98","green-150":"#C5DE86","green-200":"#B5D174","green-250":"#A5C464","green-300":"#95B755","green-350":"#85AA45","green-400":"#769D39","green-450":"#688F30","green-500":"#5A8228","green-550":"#4D7621","green-600":"#416919","green-650":"#3A5B20","green-700":"#324E22","green-750":"#2C4122","green-800":"#24351D","green-850":"#1D2919","green-900":"#161E13","green-950":"#0E120C","blue-1-050":"#E7F2FF","blue-1-100":"#CFE5FF","blue-1-150":"#B7D7FF","blue-1-200":"#A0CAFE","blue-1-250":"#8CBCF9","blue-1-300":"#77AEF4","blue-1-350":"#63A0EE","blue-1-400":"#5092E7","blue-1-450":"#4185DC","blue-1-500":"#3677CC","blue-1-550":"#2F6ABB","blue-1-600":"#265EAA","blue-1-650":"#28528F","blue-1-700":"#274775","blue-1-750":"#243C5E","blue-1-800":"#20314A","blue-1-850":"#1B2637","blue-1-900":"#141C27","blue-1-950":"#0D1118","blue-2-050":"#E2F4FD","blue-2-100":"#C4E8F8","blue-2-150":"#AADCF2","blue-2-200":"#93CFEB","blue-2-250":"#7CC2E2","blue-2-300":"#6CB4D6","blue-2-350":"#5CA7C9","blue-2-400":"#5099BC","blue-2-450":"#458BAE","blue-2-500":"#3A7EA0","blue-2-550":"#327191","blue-2-600":"#286483","blue-2-650":"#2B5770","blue-2-700":"#294A5E","blue-2-750":"#263E4D","blue-2-800":"#22323D","blue-2-850":"#1C272E","blue-2-900":"#151D21","blue-2-950":"#0E1114","purple-050":"#F5EEFF","purple-100":"#ECDCFF","purple-150":"#E2CBFF","purple-200":"#D9B9FF","purple-250":"#D0A7FF","purple-300":"#C894FE","purple-350":"#BE83FA","purple-400":"#B570F5","purple-450":"#AB5EF0","purple-500":"#A04BE8","purple-550":"#933CDB","purple-600":"#8530C8","purple-650":"#7033A5","purple-700":"#5D3185","purple-750":"#4C2C6A","purple-800":"#3C2652","purple-850":"#2D203C","purple-900":"#21182A","purple-950":"#130F19","pink-050":"#FFEBF6","pink-100":"#FFD8ED","pink-150":"#FCC4E3","pink-200":"#F7B2D9","pink-250":"#F29FCE","pink-300":"#ED8CC3","pink-350":"#E779B8","pink-400":"#E264AD","pink-450":"#D2579E","pink-500":"#C24B8E","pink-550":"#B0417F","pink-600":"#9F3670","pink-650":"#873560","pink-700":"#6F3250","pink-750":"#5A2C43","pink-800":"#472635","pink-850":"#351F29","pink-900":"#26171D","pink-950":"#170F12","black-000":"#181B2400","black-050":"#181B240D","black-100":"#181B241A","black-150":"#181B2426","black-200":"#181B2433","black-250":"#181B2440","black-300":"#181B244D","black-350":"#181B2459","black-400":"#181B2466","black-450":"#181B2473","black-500":"#181B2480","black-550":"#181B248C","black-600":"#181B2499","black-650":"#181B24A6","black-700":"#181B24B2","black-750":"#181B24BF","black-800":"#181B24CC","black-850":"#181B24D9","black-900":"#181B24E5","black-950":"#0F1117F2","white-000":"#F6F8F900","white-050":"#F6F8F90D","white-100":"#F6F8F91A","white-150":"#F6F8F926","white-200":"#F6F8F933","white-250":"#F6F8F940","white-300":"#F6F8F94D","white-350":"#F6F8F959","white-400":"#F6F8F966","white-450":"#F6F8F973","white-500":"#F6F8F980","white-550":"#F6F8F98C","white-600":"#F6F8F999","white-650":"#F6F8F9A6","white-700":"#F6F8F9B2","white-750":"#F6F8F9BF","white-800":"#F6F8F9CC","white-850":"#F6F8F9D9","white-900":"#F6F8F9E5","white-950":"#F6F8F9F2","white-975":"#F6F8F9F9"},...Xr},id={colors:{"logo-1-light":"#2845C1","logo-2-light":"#FBC63A","logo-1-dark":"#94A3E5","logo-2-dark":"#EFD183","brand-050":"#EEF0F9","brand-100":"#DDE2F5","brand-150":"#CBD4F1","brand-200":"#B8C6F0","brand-250":"#A5B7F2","brand-300":"#91A8F7","brand-350":"#7C98FE","brand-400":"#6A89FF","brand-450":"#5A7AFB","brand-500":"#4B6BF0","brand-550":"#3E5CE7","brand-600":"#3352D5","brand-650":"#2A47C0","brand-700":"#2340A3","brand-750":"#223A7F","brand-800":"#1F325F","brand-850":"#1B2845","brand-900":"#151E30","brand-950":"#0D121D","gray-000":"#FFFFFF","gray-025":"#F6F8FA","gray-050":"#ECF1F7","gray-100":"#DDE3F3","gray-150":"#CCD4EA","gray-200":"#BCC7E0","gray-250":"#AEB9D2","gray-300":"#A1ABC4","gray-350":"#949EB6","gray-400":"#8791A9","gray-450":"#7A849B","gray-500":"#6D778E","gray-550":"#616A81","gray-600":"#555E75","gray-650":"#495268","gray-700":"#3E475C","gray-750":"#333B50","gray-800":"#283044","gray-850":"#1E2539","gray-900":"#171B28","gray-950":"#0F1118","gray-1000":"#000000","info-050":"#E9F2F8","info-100":"#D2E5F1","info-150":"#C0D7F0","info-200":"#AEC8F0","info-250":"#9EB9F2","info-300":"#8DABEE","info-350":"#7B9DE9","info-400":"#6E8FDB","info-450":"#6282CD","info-500":"#5575BF","info-550":"#4968B1","info-600":"#3E5CA3","info-650":"#344F97","info-700":"#294389","info-750":"#243972","info-800":"#1D2F5B","info-850":"#1A2744","info-900":"#151D2F","info-950":"#0E131F","success-050":"#E7F1E9","success-100":"#CFE3D3","success-150":"#B9D8C0","success-200":"#A1CEAC","success-250":"#85C496","success-300":"#63BC7F","success-350":"#45B16B","success-400":"#1CA659","success-450":"#00984C","success-500":"#008A3F","success-550":"#007C32","success-600":"#006E24","success-650":"#016016","success-700":"#005305","success-750":"#0D450A","success-800":"#11380E","success-850":"#132A11","success-900":"#101E0F","success-950":"#091209","warning-050":"#F6F0E8","warning-100":"#EDE2D1","warning-150":"#E6D3B8","warning-200":"#E3C39F","warning-250":"#E3B082","warning-300":"#E19E5C","warning-350":"#D98E3F","warning-400":"#CF7D19","warning-450":"#C17000","warning-500":"#B36300","warning-550":"#A45600","warning-600":"#964900","warning-650":"#893C00","warning-700":"#7B2F00","warning-750":"#68270D","warning-800":"#562013","warning-850":"#411D18","warning-900":"#2E1714","warning-950":"#1D0F0D","error-050":"#F9EFEC","error-100":"#F4DFD9","error-150":"#F0CEC6","error-200":"#EEBCB2","error-250":"#EEA99D","error-300":"#EF9487","error-350":"#F37C6E","error-400":"#F65F53","error-450":"#EF443C","error-500":"#E0342E","error-550":"#D0201F","error-600":"#C0000C","error-650":"#AA0000","error-700":"#910C06","error-750":"#731E16","error-800":"#58201A","error-850":"#411D18","error-900":"#2E1714","error-950":"#1D0F0D","red-050":"#F9EFEC","red-100":"#F4DEDA","red-150":"#F0CDC9","red-200":"#EEBBB6","red-250":"#EEA8A2","red-300":"#F0938D","red-350":"#EC7E78","red-400":"#E46D67","red-450":"#D95B58","red-500":"#CA4E4B","red-550":"#BB403F","red-600":"#AC3233","red-650":"#9D2227","red-700":"#882023","red-750":"#721D1B","red-800":"#58201A","red-850":"#401D18","red-900":"#2E1714","red-950":"#1D0F0D","orange-050":"#F8F0E9","orange-100":"#F1E0D3","orange-150":"#ECD0BD","orange-200":"#E9C0A5","orange-250":"#E8AE8A","orange-300":"#EB9870","orange-350":"#EB845A","orange-400":"#E66E37","orange-450":"#DD5B16","orange-500":"#CE4D00","orange-550":"#BF3E00","orange-600":"#B02F00","orange-650":"#A11E00","orange-700":"#8A1E14","orange-750":"#731E16","orange-800":"#58201A","orange-850":"#401D18","orange-900":"#2E1714","orange-950":"#1D0F0D","brown-050":"#F5F0E8","brown-100":"#ECE2D1","brown-150":"#E9D1B9","brown-200":"#E3C19D","brown-250":"#DCB187","brown-300":"#D2A26F","brown-350":"#C49562","brown-400":"#B68855","brown-450":"#A97B48","brown-500":"#9B6E3B","brown-550":"#8E612F","brown-600":"#815521","brown-650":"#744913","brown-700":"#673D00","brown-750":"#5A3100","brown-800":"#4E2600","brown-850":"#3D1F0B","brown-900":"#2C170F","brown-950":"#1C0F0B","yellow-050":"#F3F0E7","yellow-100":"#E9E2CF","yellow-150":"#E0D4B7","yellow-200":"#DAC59A","yellow-250":"#D5B67A","yellow-300":"#D0A559","yellow-350":"#CC9331","yellow-400":"#C48400","yellow-450":"#B77600","yellow-500":"#AA6800","yellow-550":"#9D5A00","yellow-600":"#914D00","yellow-650":"#843F00","yellow-700":"#773200","yellow-750":"#6A2601","yellow-800":"#56210F","yellow-850":"#401D16","yellow-900":"#2E1714","yellow-950":"#1D0F0D","green-050":"#E3F1EF","green-100":"#CAE5E1","green-150":"#B0DBD4","green-200":"#91D1C7","green-250":"#6AC8BC","green-300":"#4DBCAF","green-350":"#3CAFA2","green-400":"#2AA194","green-450":"#109487","green-500":"#00867A","green-550":"#00786D","green-600":"#016A60","green-650":"#015D53","green-700":"#005047","green-750":"#00443B","green-800":"#00382F","green-850":"#002C25","green-900":"#041F1A","green-950":"#041310","blue-1-050":"#EAF2F9","blue-1-100":"#D4E4F3","blue-1-150":"#BFD7F0","blue-1-200":"#AAC9EF","blue-1-250":"#96BBF1","blue-1-300":"#82ACF6","blue-1-350":"#709BFE","blue-1-400":"#608BFF","blue-1-450":"#537BFB","blue-1-500":"#476DEC","blue-1-550":"#3C60DD","blue-1-600":"#3252CF","blue-1-650":"#2B48B9","blue-1-700":"#28409B","blue-1-750":"#24397E","blue-1-800":"#223260","blue-1-850":"#1F2A48","blue-1-900":"#191F32","blue-1-950":"#111320","blue-2-050":"#E5F2F3","blue-2-100":"#CDE6EC","blue-2-150":"#B7D9EA","blue-2-200":"#9BCDE7","blue-2-250":"#84C1E0","blue-2-300":"#6BB4D8","blue-2-350":"#5CA6CB","blue-2-400":"#4D99BC","blue-2-450":"#3E8CAE","blue-2-500":"#2F7FA2","blue-2-550":"#1F7295","blue-2-600":"#056688","blue-2-650":"#00597B","blue-2-700":"#004C6C","blue-2-750":"#003F5E","blue-2-800":"#003353","blue-2-850":"#0C273E","blue-2-900":"#0E1C2C","blue-2-950":"#0A121C","purple-050":"#EDF1FA","purple-100":"#DCE2F5","purple-150":"#CCD4F1","purple-200":"#BCC4F0","purple-250":"#ADB6F2","purple-300":"#9EA6F6","purple-350":"#8E95FD","purple-400":"#8083FF","purple-450":"#7173FF","purple-500":"#6665F1","purple-550":"#5B57E2","purple-600":"#5049D4","purple-650":"#4641BC","purple-700":"#3D39A2","purple-750":"#363680","purple-800":"#2E3162","purple-850":"#242848","purple-900":"#1C1E32","purple-950":"#121320","pink-050":"#F8EFF4","pink-100":"#F0DEE9","pink-150":"#EBCDDF","pink-200":"#E7BDD6","pink-250":"#E5A9CC","pink-300":"#E695C0","pink-350":"#EA7CAE","pink-400":"#E4659F","pink-450":"#DD4F93","pink-500":"#CD4085","pink-550":"#BE3279","pink-600":"#AE216D","pink-650":"#9B195D","pink-700":"#86164E","pink-750":"#6E1B3D","pink-800":"#551E31","pink-850":"#3F1C24","pink-900":"#2D161A","pink-950":"#1C0E10","black-000":"#191B2200","black-050":"#191B220D","black-100":"#191B221A","black-150":"#191B2226","black-200":"#191B2233","black-250":"#191B2240","black-300":"#191B224D","black-350":"#191B2259","black-400":"#191B2266","black-450":"#191B2273","black-500":"#191B2280","black-550":"#191B228C","black-600":"#191B2299","black-650":"#191B22A6","black-700":"#191B22B2","black-750":"#191B22BF","black-800":"#191B22CC","black-850":"#191B22D9","black-900":"#191B22E5","black-950":"#0F1115F2","white-000":"#F7F8F800","white-050":"#F7F8F80D","white-100":"#F7F8F81A","white-150":"#F7F8F826","white-200":"#F7F8F833","white-250":"#F7F8F840","white-300":"#F7F8F84D","white-350":"#F7F8F859","white-400":"#F7F8F866","white-450":"#F7F8F873","white-500":"#F7F8F880","white-550":"#F7F8F88C","white-600":"#F7F8F899","white-650":"#F7F8F8A6","white-700":"#F7F8F8B2","white-750":"#F7F8F8BF","white-800":"#F7F8F8CC","white-850":"#F7F8F8D9","white-900":"#F7F8F8E5","white-950":"#F7F8F8F2","white-975":"#F7F8F8F9"},...Xr},Us=Ti.getThemesFromGlobals(rd,{overrides:ki}),y7=Ti.getThemesFromGlobals(nd,{prefix:"dsfr",overrides:ki}),C7=Ti.getThemesFromGlobals(id,{prefix:"anct",overrides:ki}),E7={themes:{default:Us.light,dark:Us.dark,...y7,...C7}},fa={...E7},Ws={mobile:parseInt(fa.themes.default.globals.breakpoints.mobile.replace("px","")),tablet:parseInt(fa.themes.default.globals.breakpoints.tablet.replace("px",""))},Zs=(t,e)=>({isMobile:t<=e.mobile,isTablet:t<=e.tablet,isDesktop:t>e.tablet}),ot=()=>{const[t,e]=u.useState(Zs(window.innerWidth,Ws));return u.useEffect(()=>{const r=()=>{const n=Zs(window.innerWidth,Ws);JSON.stringify(n)===JSON.stringify(t)||e(n)};return window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[t]),t},od=u.memo(({apiUrl:t,data:e,...r})=>{const{t:n}=X.useCunningham(),{isMobile:i}=ot(),o=u.useRef(null),a=u.useMemo(()=>r.widgetPath||"https://static.suite.anct.gouv.fr/widgets/lagaufre.js",[r.widgetPath]),l=e!=null&&e.services?void 0:t,s=r.label||n("components.laGaufre.label"),c=r.closeLabel||n("components.laGaufre.closeLabel"),d=r.loadingText||n("components.laGaufre.loadingText"),f=r.newWindowLabelSuffix||n("components.laGaufre.newWindowLabelSuffix"),p=r.background||"",g=r.headerLabel||n("components.laGaufre.headerLabel"),y=r.viewMoreLabel||n("components.laGaufre.viewMoreLabel"),h=r.viewLessLabel||n("components.laGaufre.viewLessLabel");return u.useEffect(()=>{window._lasuite_widget=window._lasuite_widget||[],document.querySelectorAll("#lasuite-widget-lagaufre-shadow").forEach(m=>{var C;return(C=m.parentNode)==null?void 0:C.removeChild(m)}),window._lasuite_widget.push(["lagaufre","init",{...r,api:l,label:s,data:e,closeLabel:c,background:p,showFooter:i,headerLabel:g,headerLogo:f7,loadingText:d,newWindowLabelSuffix:f,viewMoreLabel:y,viewLessLabel:h,buttonElement:o.current,position:()=>{var m,C,E,$;return{position:"absolute",top:(((m=o.current)==null?void 0:m.offsetTop)??0)+(((C=o.current)==null?void 0:C.offsetHeight)??0)+10,right:window.innerWidth-(((E=o.current)==null?void 0:E.offsetLeft)??0)-((($=o.current)==null?void 0:$.offsetWidth)??0)}}}])},[y,h,c,g,d,l,a]),v.jsxs(v.Fragment,{children:[v.jsx("script",{src:a,id:"lasuite-gaufre-script",async:!0}),v.jsx("div",{children:v.jsx(X.Button,{ref:o,icon:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none",viewBox:"0 0 18 18",children:[v.jsx("defs",{children:v.jsx("path",{id:"a",fill:"var(--c--contextuals--background--semantic--brand--primary)",d:"M2.796.5c.469 0 .704 0 .892.064.351.12.627.397.748.748.064.188.064.423.064.892v.592c0 .469 0 .704-.064.892-.12.351-.397.627-.748.748-.188.064-.423.064-.892.064h-.592c-.469 0-.704 0-.892-.064a1.2 1.2 0 0 1-.748-.748C.5 3.5.5 3.265.5 2.796v-.592c0-.469 0-.704.064-.892.12-.351.397-.627.748-.748C1.5.5 1.735.5 2.204.5z"})}),v.jsx("use",{href:"#a"}),v.jsx("use",{href:"#a",transform:"translate(6.5)"}),v.jsx("use",{href:"#a",transform:"translate(13)"}),v.jsx("use",{href:"#a",transform:"translate(0 6.5)"}),v.jsx("use",{href:"#a",transform:"translate(6.5 6.5)"}),v.jsx("use",{href:"#a",transform:"translate(13 6.5)"}),v.jsx("use",{href:"#a",transform:"translate(0 13)"}),v.jsx("use",{href:"#a",transform:"translate(6.5 13)"}),v.jsx("use",{href:"#a",transform:"translate(13 13)"})]}),"aria-label":s,variant:"tertiary",className:"lagaufre-button"})})]})});od.displayName="LaGaufreV2";var De=(t=>(t.X_SMALL="xsmall",t.SMALL="small",t.MEDIUM="medium",t.LARGE="large",t.X_LARGE="xlarge",t))(De||{}),ii=(t=>(t.OUTLINED="outlined",t.FILLED="filled",t))(ii||{});const Jr=({name:t,size:e,className:r,color:n,type:i=ii.FILLED,...o})=>{const a=be("material-icons",{[`icon--${e}`]:e!==void 0,[`icon--${i}`]:i!==ii.OUTLINED},r),l={color:n,fontSize:typeof e=="number"?`${e}px`:void 0};return v.jsx("span",{className:a,style:l,...o,children:t})},ad={[De.X_SMALL]:11,[De.SMALL]:16,[De.MEDIUM]:24,[De.LARGE]:32,[De.X_LARGE]:40},ld={[De.X_SMALL]:16,[De.SMALL]:24,[De.MEDIUM]:32,[De.LARGE]:40,[De.X_LARGE]:48},w7=t=>ld[t]??24,x7=t=>ad[t]??24,sd=({languages:t,onChange:e,size:r,color:n="brand",variant:i="tertiary",fullWidth:o,compact:a=!1})=>{const{isOpen:l,setIsOpen:s}=mt(),c=()=>{const h=t.find(b=>b.isChecked);return(h==null?void 0:h.value)??t[0].value},[d,f]=u.useState(c),p=h=>{f(h),e==null||e(h)},g=u.useMemo(()=>{if(r)switch(r){case"nano":return De.X_SMALL;case"small":return De.SMALL;case"medium":return De.MEDIUM}},[r]);u.useEffect(()=>{f(c)},[t]);const y=u.useMemo(()=>{const h=t.find(b=>b.value===d);return(h==null?void 0:h.shortLabel)??(h==null?void 0:h.label)},[t,d]);return v.jsx(kt,{options:t,isOpen:l,onOpenChange:s,onSelectValue:p,selectedValues:[d],children:v.jsxs(X.Button,{onClick:()=>s(!l),className:"c__language-picker",icon:v.jsx(Jr,{name:l?"arrow_drop_up":"arrow_drop_down"}),iconPosition:"right",size:r,color:a?"neutral":n,variant:i,fullWidth:o,children:[a?null:v.jsx(Jr,{name:"translate",size:g}),v.jsx("span",{className:"c__language-picker__label",children:y})]})})},cd=({leftIcon:t,rightIcon:e,languages:r,onTogglePanel:n,isPanelOpen:i})=>{const{t:o}=X.useCunningham();return v.jsxs("div",{className:"c__header",children:[v.jsx("div",{className:"c__header__toggle-menu",children:v.jsx(X.Button,{size:"medium",onClick:n,"aria-label":o(i?"Close the menu":"Open the menu"),variant:"tertiary",icon:v.jsx("span",{className:"material-icons c__header__toggle-menu__icon",children:i?"close":"menu"})})}),v.jsx("div",{className:"c__header__left",children:t}),v.jsxs("div",{className:"c__header__right",children:[r&&v.jsx("div",{className:"c__header__right__language-picker",children:v.jsx(sd,{languages:r})}),e]})]})},ud=({children:t,isOpen:e=!1,hasHeader:r=!0})=>{const{isDesktop:n}=ot();return n?v.jsx("div",{className:be("c__left-panel",{"has-header":r}),children:t}):v.jsx("div",{className:be("c__left-panel__mobile",{open:e}),children:t})},{createElement:Cr,createContext:D7,forwardRef:dd,useCallback:$e,useContext:fd,useEffect:$t,useImperativeHandle:hd,useLayoutEffect:S7,useMemo:F7,useRef:Pe,useState:hr}=A,Gs=A[`useId${Math.random()}`.slice(0,5)],$7=S7,Ii=D7(null);Ii.displayName="PanelGroupContext";const _t=$7,_7=typeof Gs=="function"?Gs:()=>null;let P7=0;function dl(t=null){const e=_7(),r=Pe(t||e||null);return r.current===null&&(r.current=""+P7++),t??r.current}function pd({children:t,className:e="",collapsedSize:r,collapsible:n,defaultSize:i,forwardedRef:o,id:a,maxSize:l,minSize:s,onCollapse:c,onExpand:d,onResize:f,order:p,style:g,tagName:y="div",...h}){const b=fd(Ii);if(b===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:m,expandPanel:C,getPanelSize:E,getPanelStyle:$,groupId:w,isPanelCollapsed:x,reevaluatePanelConstraints:S,registerPanel:N,resizePanel:K,unregisterPanel:V}=b,D=dl(a),T=Pe({callbacks:{onCollapse:c,onExpand:d,onResize:f},constraints:{collapsedSize:r,collapsible:n,defaultSize:i,maxSize:l,minSize:s},id:D,idIsFromProps:a!==void 0,order:p});Pe({didLogMissingDefaultSizeWarning:!1}),_t(()=>{const{callbacks:k,constraints:U}=T.current,P={...U};T.current.id=D,T.current.idIsFromProps=a!==void 0,T.current.order=p,k.onCollapse=c,k.onExpand=d,k.onResize=f,U.collapsedSize=r,U.collapsible=n,U.defaultSize=i,U.maxSize=l,U.minSize=s,(P.collapsedSize!==U.collapsedSize||P.collapsible!==U.collapsible||P.maxSize!==U.maxSize||P.minSize!==U.minSize)&&S(T.current,P)}),_t(()=>{const k=T.current;return N(k),()=>{V(k)}},[p,D,N,V]),hd(o,()=>({collapse:()=>{m(T.current)},expand:k=>{C(T.current,k)},getId(){return D},getSize(){return E(T.current)},isCollapsed(){return x(T.current)},isExpanded(){return!x(T.current)},resize:k=>{K(T.current,k)}}),[m,C,E,x,D,K]);const Z=$(T.current,i);return Cr(y,{...h,children:t,className:e,id:a,style:{...Z,...g},"data-panel":"","data-panel-collapsible":n||void 0,"data-panel-group-id":w,"data-panel-id":D,"data-panel-size":parseFloat(""+Z.flexGrow).toFixed(1)})}const ha=dd((t,e)=>Cr(pd,{...t,forwardedRef:e}));pd.displayName="Panel";ha.displayName="forwardRef(Panel)";let pa=null,Ft=null;function A7(t,e){if(e){const r=(e&yd)!==0,n=(e&Cd)!==0,i=(e&Ed)!==0,o=(e&wd)!==0;if(r)return i?"se-resize":o?"ne-resize":"e-resize";if(n)return i?"sw-resize":o?"nw-resize":"w-resize";if(i)return"s-resize";if(o)return"n-resize"}switch(t){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function T7(){Ft!==null&&(document.head.removeChild(Ft),pa=null,Ft=null)}function vo(t,e){const r=A7(t,e);pa!==r&&(pa=r,Ft===null&&(Ft=document.createElement("style"),document.head.appendChild(Ft)),Ft.innerHTML=`*{cursor: ${r}!important;}`)}function gd(t){return t.type==="keydown"}function vd(t){return t.type.startsWith("pointer")}function bd(t){return t.type.startsWith("mouse")}function Oi(t){if(vd(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(bd(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function k7(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function I7(t,e,r){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}function O7(t,e){if(t===e)throw new Error("Cannot compare node with itself");const r={a:Xs(t),b:Xs(e)};let n;for(;r.a.at(-1)===r.b.at(-1);)t=r.a.pop(),e=r.b.pop(),n=t;Q(n,"Stacking order can only be calculated for elements with a common ancestor");const i={a:Ys(qs(r.a)),b:Ys(qs(r.b))};if(i.a===i.b){const o=n.childNodes,a={a:r.a.at(-1),b:r.b.at(-1)};let l=o.length;for(;l--;){const s=o[l];if(s===a.a)return 1;if(s===a.b)return-1}}return Math.sign(i.a-i.b)}const M7=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function N7(t){var e;const r=getComputedStyle((e=md(t))!==null&&e!==void 0?e:t).display;return r==="flex"||r==="inline-flex"}function R7(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||N7(t))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||M7.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function qs(t){let e=t.length;for(;e--;){const r=t[e];if(Q(r,"Missing node"),R7(r))return r}return null}function Ys(t){return t&&Number(getComputedStyle(t).zIndex)||0}function Xs(t){const e=[];for(;t;)e.push(t),t=md(t);return e}function md(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const yd=1,Cd=2,Ed=4,wd=8,B7=k7()==="coarse";let Ve=[],pr=!1,dt=new Map,Mi=new Map;const Qr=new Set;function L7(t,e,r,n,i){var o;const{ownerDocument:a}=e,l={direction:r,element:e,hitAreaMargins:n,setResizeHandlerState:i},s=(o=dt.get(a))!==null&&o!==void 0?o:0;return dt.set(a,s+1),Qr.add(l),oi(),function(){var d;Mi.delete(t),Qr.delete(l);const f=(d=dt.get(a))!==null&&d!==void 0?d:1;if(dt.set(a,f-1),oi(),f===1&&dt.delete(a),Ve.includes(l)){const p=Ve.indexOf(l);p>=0&&Ve.splice(p,1),hl(),i("up",!0,null)}}}function Js(t){const{target:e}=t,{x:r,y:n}=Oi(t);pr=!0,fl({target:e,x:r,y:n}),oi(),Ve.length>0&&(ai("down",t),t.preventDefault(),t.stopPropagation())}function Mr(t){const{x:e,y:r}=Oi(t);if(pr&&t.buttons===0&&(pr=!1,ai("up",t)),!pr){const{target:n}=t;fl({target:n,x:e,y:r})}ai("move",t),hl(),Ve.length>0&&t.preventDefault()}function Zt(t){const{target:e}=t,{x:r,y:n}=Oi(t);Mi.clear(),pr=!1,Ve.length>0&&t.preventDefault(),ai("up",t),fl({target:e,x:r,y:n}),hl(),oi()}function fl({target:t,x:e,y:r}){Ve.splice(0);let n=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(n=t),Qr.forEach(i=>{const{element:o,hitAreaMargins:a}=i,l=o.getBoundingClientRect(),{bottom:s,left:c,right:d,top:f}=l,p=B7?a.coarse:a.fine;if(e>=c-p&&e<=d+p&&r>=f-p&&r<=s+p){if(n!==null&&document.contains(n)&&o!==n&&!o.contains(n)&&!n.contains(o)&&O7(n,o)>0){let y=n,h=!1;for(;y&&!y.contains(o);){if(I7(y.getBoundingClientRect(),l)){h=!0;break}y=y.parentElement}if(h)return}Ve.push(i)}})}function bo(t,e){Mi.set(t,e)}function hl(){let t=!1,e=!1;Ve.forEach(n=>{const{direction:i}=n;i==="horizontal"?t=!0:e=!0});let r=0;Mi.forEach(n=>{r|=n}),t&&e?vo("intersection",r):t?vo("horizontal",r):e?vo("vertical",r):T7()}function oi(){dt.forEach((t,e)=>{const{body:r}=e;r.removeEventListener("contextmenu",Zt),r.removeEventListener("pointerdown",Js),r.removeEventListener("pointerleave",Mr),r.removeEventListener("pointermove",Mr)}),window.removeEventListener("pointerup",Zt),window.removeEventListener("pointercancel",Zt),Qr.size>0&&(pr?(Ve.length>0&&dt.forEach((t,e)=>{const{body:r}=e;t>0&&(r.addEventListener("contextmenu",Zt),r.addEventListener("pointerleave",Mr),r.addEventListener("pointermove",Mr))}),window.addEventListener("pointerup",Zt),window.addEventListener("pointercancel",Zt)):dt.forEach((t,e)=>{const{body:r}=e;t>0&&(r.addEventListener("pointerdown",Js,{capture:!0}),r.addEventListener("pointermove",Mr))}))}function ai(t,e){Qr.forEach(r=>{const{setResizeHandlerState:n}=r,i=Ve.includes(r);n(t,i,e)})}function j7(){const[t,e]=hr(0);return $e(()=>e(r=>r+1),[])}function Q(t,e){if(!t)throw console.error(e),Error(e)}const pl=10;function It(t,e,r=pl){return t.toFixed(r)===e.toFixed(r)?0:t>e?1:-1}function Qe(t,e,r=pl){return It(t,e,r)===0}function Ae(t,e,r){return It(t,e,r)===0}function K7(t,e,r){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++){const i=t[n],o=e[n];if(!Ae(i,o,r))return!1}return!0}function sr({panelConstraints:t,panelIndex:e,size:r}){const n=t[e];Q(n!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:i=0,collapsible:o,maxSize:a=100,minSize:l=0}=n;if(It(r,l)<0)if(o){const s=(i+l)/2;It(r,s)<0?r=i:r=l}else r=l;return r=Math.min(a,r),r=parseFloat(r.toFixed(pl)),r}function Vr({delta:t,initialLayout:e,panelConstraints:r,pivotIndices:n,prevLayout:i,trigger:o}){if(Ae(t,0))return e;const a=[...e],[l,s]=n;Q(l!=null,"Invalid first pivot index"),Q(s!=null,"Invalid second pivot index");let c=0;if(o==="keyboard"){{const f=t<0?s:l,p=r[f];Q(p,`Panel constraints not found for index ${f}`);const{collapsedSize:g=0,collapsible:y,minSize:h=0}=p;if(y){const b=e[f];if(Q(b!=null,`Previous layout not found for panel index ${f}`),Ae(b,g)){const m=h-b;It(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}{const f=t<0?l:s,p=r[f];Q(p,`No panel constraints found for index ${f}`);const{collapsedSize:g=0,collapsible:y,minSize:h=0}=p;if(y){const b=e[f];if(Q(b!=null,`Previous layout not found for panel index ${f}`),Ae(b,h)){const m=b-g;It(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}}{const f=t<0?1:-1;let p=t<0?s:l,g=0;for(;;){const h=e[p];Q(h!=null,`Previous layout not found for panel index ${p}`);const m=sr({panelConstraints:r,panelIndex:p,size:100})-h;if(g+=m,p+=f,p<0||p>=r.length)break}const y=Math.min(Math.abs(t),Math.abs(g));t=t<0?0-y:y}{let p=t<0?l:s;for(;p>=0&&p<r.length;){const g=Math.abs(t)-Math.abs(c),y=e[p];Q(y!=null,`Previous layout not found for panel index ${p}`);const h=y-g,b=sr({panelConstraints:r,panelIndex:p,size:h});if(!Ae(y,b)&&(c+=y-b,a[p]=b,c.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?p--:p++}}if(K7(i,a))return i;{const f=t<0?s:l,p=e[f];Q(p!=null,`Previous layout not found for panel index ${f}`);const g=p+c,y=sr({panelConstraints:r,panelIndex:f,size:g});if(a[f]=y,!Ae(y,g)){let h=g-y,m=t<0?s:l;for(;m>=0&&m<r.length;){const C=a[m];Q(C!=null,`Previous layout not found for panel index ${m}`);const E=C+h,$=sr({panelConstraints:r,panelIndex:m,size:E});if(Ae(C,$)||(h-=$-C,a[m]=$),Ae(h,0))break;t>0?m--:m++}}}const d=a.reduce((f,p)=>p+f,0);return Ae(d,100)?a:i}function V7({layout:t,panelsArray:e,pivotIndices:r}){let n=0,i=100,o=0,a=0;const l=r[0];Q(l!=null,"No pivot index found"),e.forEach((f,p)=>{const{constraints:g}=f,{maxSize:y=100,minSize:h=0}=g;p===l?(n=h,i=y):(o+=h,a+=y)});const s=Math.min(i,100-o),c=Math.max(n,100-a),d=t[l];return{valueMax:s,valueMin:c,valueNow:d}}function en(t,e=document){return Array.from(e.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${t}"]`))}function xd(t,e,r=document){const i=en(t,r).findIndex(o=>o.getAttribute("data-panel-resize-handle-id")===e);return i??null}function Dd(t,e,r){const n=xd(t,e,r);return n!=null?[n,n+1]:[-1,-1]}function Sd(t,e=document){var r;if(e instanceof HTMLElement&&(e==null||(r=e.dataset)===null||r===void 0?void 0:r.panelGroupId)==t)return e;const n=e.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return n||null}function Ni(t,e=document){const r=e.querySelector(`[data-panel-resize-handle-id="${t}"]`);return r||null}function H7(t,e,r,n=document){var i,o,a,l;const s=Ni(e,n),c=en(t,n),d=s?c.indexOf(s):-1,f=(i=(o=r[d])===null||o===void 0?void 0:o.id)!==null&&i!==void 0?i:null,p=(a=(l=r[d+1])===null||l===void 0?void 0:l.id)!==null&&a!==void 0?a:null;return[f,p]}function z7({committedValuesRef:t,eagerValuesRef:e,groupId:r,layout:n,panelDataArray:i,panelGroupElement:o,setLayout:a}){Pe({didWarnAboutMissingResizeHandle:!1}),_t(()=>{if(!o)return;const l=en(r,o);for(let s=0;s<i.length-1;s++){const{valueMax:c,valueMin:d,valueNow:f}=V7({layout:n,panelsArray:i,pivotIndices:[s,s+1]}),p=l[s];if(p!=null){const g=i[s];Q(g,`No panel data found for index "${s}"`),p.setAttribute("aria-controls",g.id),p.setAttribute("aria-valuemax",""+Math.round(c)),p.setAttribute("aria-valuemin",""+Math.round(d)),p.setAttribute("aria-valuenow",f!=null?""+Math.round(f):"")}}return()=>{l.forEach((s,c)=>{s.removeAttribute("aria-controls"),s.removeAttribute("aria-valuemax"),s.removeAttribute("aria-valuemin"),s.removeAttribute("aria-valuenow")})}},[r,n,i,o]),$t(()=>{if(!o)return;const l=e.current;Q(l,"Eager values not found");const{panelDataArray:s}=l,c=Sd(r,o);Q(c!=null,`No group found for id "${r}"`);const d=en(r,o);Q(d,`No resize handles found for group id "${r}"`);const f=d.map(p=>{const g=p.getAttribute("data-panel-resize-handle-id");Q(g,"Resize handle element has no handle id attribute");const[y,h]=H7(r,g,s,o);if(y==null||h==null)return()=>{};const b=m=>{if(!m.defaultPrevented)switch(m.key){case"Enter":{m.preventDefault();const C=s.findIndex(E=>E.id===y);if(C>=0){const E=s[C];Q(E,`No panel data found for index ${C}`);const $=n[C],{collapsedSize:w=0,collapsible:x,minSize:S=0}=E.constraints;if($!=null&&x){const N=Vr({delta:Ae($,w)?S-w:w-$,initialLayout:n,panelConstraints:s.map(K=>K.constraints),pivotIndices:Dd(r,g,o),prevLayout:n,trigger:"keyboard"});n!==N&&a(N)}}break}}};return p.addEventListener("keydown",b),()=>{p.removeEventListener("keydown",b)}});return()=>{f.forEach(p=>p())}},[o,t,e,r,n,i,a])}function Qs(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}function Fd(t,e){const r=t==="horizontal",{x:n,y:i}=Oi(e);return r?n:i}function U7(t,e,r,n,i){const o=r==="horizontal",a=Ni(e,i);Q(a,`No resize handle element found for id "${e}"`);const l=a.getAttribute("data-panel-group-id");Q(l,"Resize handle element has no group id attribute");let{initialCursorPosition:s}=n;const c=Fd(r,t),d=Sd(l,i);Q(d,`No group element found for id "${l}"`);const f=d.getBoundingClientRect(),p=o?f.width:f.height;return(c-s)/p*100}function W7(t,e,r,n,i,o){if(gd(t)){const a=r==="horizontal";let l=0;t.shiftKey?l=100:i!=null?l=i:l=10;let s=0;switch(t.key){case"ArrowDown":s=a?0:l;break;case"ArrowLeft":s=a?-l:0;break;case"ArrowRight":s=a?l:0;break;case"ArrowUp":s=a?0:-l;break;case"End":s=100;break;case"Home":s=-100;break}return s}else return n==null?0:U7(t,e,r,n,o)}function Z7({panelDataArray:t}){const e=Array(t.length),r=t.map(o=>o.constraints);let n=0,i=100;for(let o=0;o<t.length;o++){const a=r[o];Q(a,`Panel constraints not found for index ${o}`);const{defaultSize:l}=a;l!=null&&(n++,e[o]=l,i-=l)}for(let o=0;o<t.length;o++){const a=r[o];Q(a,`Panel constraints not found for index ${o}`);const{defaultSize:l}=a;if(l!=null)continue;const s=t.length-n,c=i/s;n++,e[o]=c,i-=c}return e}function Gt(t,e,r){e.forEach((n,i)=>{const o=t[i];Q(o,`Panel data not found for index ${i}`);const{callbacks:a,constraints:l,id:s}=o,{collapsedSize:c=0,collapsible:d}=l,f=r[s];if(f==null||n!==f){r[s]=n;const{onCollapse:p,onExpand:g,onResize:y}=a;y&&y(n,f),d&&(p||g)&&(g&&(f==null||Qe(f,c))&&!Qe(n,c)&&g(),p&&(f==null||!Qe(f,c))&&Qe(n,c)&&p())}})}function wn(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!=e[r])return!1;return!0}function G7({defaultSize:t,dragState:e,layout:r,panelData:n,panelIndex:i,precision:o=3}){const a=r[i];let l;return a==null?l=t!=null?t.toPrecision(o):"1":n.length===1?l="1":l=a.toPrecision(o),{flexBasis:0,flexGrow:l,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function q7(t,e=10){let r=null;return(...i)=>{r!==null&&clearTimeout(r),r=setTimeout(()=>{t(...i)},e)}}function e0(t){try{if(typeof localStorage<"u")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,r)=>{localStorage.setItem(e,r)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function $d(t){return`react-resizable-panels:${t}`}function _d(t){return t.map(e=>{const{constraints:r,id:n,idIsFromProps:i,order:o}=e;return i?n:o?`${o}:${JSON.stringify(r)}`:JSON.stringify(r)}).sort((e,r)=>e.localeCompare(r)).join(",")}function Pd(t,e){try{const r=$d(t),n=e.getItem(r);if(n){const i=JSON.parse(n);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function Y7(t,e,r){var n,i;const o=(n=Pd(t,r))!==null&&n!==void 0?n:{},a=_d(e);return(i=o[a])!==null&&i!==void 0?i:null}function X7(t,e,r,n,i){var o;const a=$d(t),l=_d(e),s=(o=Pd(t,i))!==null&&o!==void 0?o:{};s[l]={expandToSizes:Object.fromEntries(r.entries()),layout:n};try{i.setItem(a,JSON.stringify(s))}catch(c){console.error(c)}}function t0({layout:t,panelConstraints:e}){const r=[...t],n=r.reduce((o,a)=>o+a,0);if(r.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${r.map(o=>`${o}%`).join(", ")}`);if(!Ae(n,100)&&r.length>0)for(let o=0;o<e.length;o++){const a=r[o];Q(a!=null,`No layout data found for index ${o}`);const l=100/n*a;r[o]=l}let i=0;for(let o=0;o<e.length;o++){const a=r[o];Q(a!=null,`No layout data found for index ${o}`);const l=sr({panelConstraints:e,panelIndex:o,size:a});a!=l&&(i+=a-l,r[o]=l)}if(!Ae(i,0))for(let o=0;o<e.length;o++){const a=r[o];Q(a!=null,`No layout data found for index ${o}`);const l=a+i,s=sr({panelConstraints:e,panelIndex:o,size:l});if(a!==s&&(i-=s-a,r[o]=s,Ae(i,0)))break}return r}const J7=100,Hr={getItem:t=>(e0(Hr),Hr.getItem(t)),setItem:(t,e)=>{e0(Hr),Hr.setItem(t,e)}},r0={};function Ad({autoSaveId:t=null,children:e,className:r="",direction:n,forwardedRef:i,id:o=null,onLayout:a=null,keyboardResizeBy:l=null,storage:s=Hr,style:c,tagName:d="div",...f}){const p=dl(o),g=Pe(null),[y,h]=hr(null),[b,m]=hr([]),C=j7(),E=Pe({}),$=Pe(new Map),w=Pe(0),x=Pe({autoSaveId:t,direction:n,dragState:y,id:p,keyboardResizeBy:l,onLayout:a,storage:s}),S=Pe({layout:b,panelDataArray:[],panelDataArrayChanged:!1});Pe({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),hd(i,()=>({getId:()=>x.current.id,getLayout:()=>{const{layout:_}=S.current;return _},setLayout:_=>{const{onLayout:I}=x.current,{layout:L,panelDataArray:j}=S.current,H=t0({layout:_,panelConstraints:j.map(W=>W.constraints)});Qs(L,H)||(m(H),S.current.layout=H,I&&I(H),Gt(j,H,E.current))}}),[]),_t(()=>{x.current.autoSaveId=t,x.current.direction=n,x.current.dragState=y,x.current.id=p,x.current.onLayout=a,x.current.storage=s}),z7({committedValuesRef:x,eagerValuesRef:S,groupId:p,layout:b,panelDataArray:S.current.panelDataArray,setLayout:m,panelGroupElement:g.current}),$t(()=>{const{panelDataArray:_}=S.current;if(t){if(b.length===0||b.length!==_.length)return;let I=r0[t];I==null&&(I=q7(X7,J7),r0[t]=I);const L=[..._],j=new Map($.current);I(t,L,j,b,s)}},[t,b,s]),$t(()=>{});const N=$e(_=>{const{onLayout:I}=x.current,{layout:L,panelDataArray:j}=S.current;if(_.constraints.collapsible){const H=j.map(le=>le.constraints),{collapsedSize:W=0,panelSize:q,pivotIndices:Y}=Ct(j,_,L);if(Q(q!=null,`Panel size not found for panel "${_.id}"`),!Qe(q,W)){$.current.set(_.id,q);const G=or(j,_)===j.length-1?q-W:W-q,te=Vr({delta:G,initialLayout:L,panelConstraints:H,pivotIndices:Y,prevLayout:L,trigger:"imperative-api"});wn(L,te)||(m(te),S.current.layout=te,I&&I(te),Gt(j,te,E.current))}}},[]),K=$e((_,I)=>{const{onLayout:L}=x.current,{layout:j,panelDataArray:H}=S.current;if(_.constraints.collapsible){const W=H.map(de=>de.constraints),{collapsedSize:q=0,panelSize:Y=0,minSize:le=0,pivotIndices:G}=Ct(H,_,j),te=I??le;if(Qe(Y,q)){const de=$.current.get(_.id),Be=de!=null&&de>=te?de:te,re=or(H,_)===H.length-1?Y-Be:Be-Y,pe=Vr({delta:re,initialLayout:j,panelConstraints:W,pivotIndices:G,prevLayout:j,trigger:"imperative-api"});wn(j,pe)||(m(pe),S.current.layout=pe,L&&L(pe),Gt(H,pe,E.current))}}},[]),V=$e(_=>{const{layout:I,panelDataArray:L}=S.current,{panelSize:j}=Ct(L,_,I);return Q(j!=null,`Panel size not found for panel "${_.id}"`),j},[]),D=$e((_,I)=>{const{panelDataArray:L}=S.current,j=or(L,_);return G7({defaultSize:I,dragState:y,layout:b,panelData:L,panelIndex:j})},[y,b]),T=$e(_=>{const{layout:I,panelDataArray:L}=S.current,{collapsedSize:j=0,collapsible:H,panelSize:W}=Ct(L,_,I);return Q(W!=null,`Panel size not found for panel "${_.id}"`),H===!0&&Qe(W,j)},[]),Z=$e(_=>{const{layout:I,panelDataArray:L}=S.current,{collapsedSize:j=0,collapsible:H,panelSize:W}=Ct(L,_,I);return Q(W!=null,`Panel size not found for panel "${_.id}"`),!H||It(W,j)>0},[]),k=$e(_=>{const{panelDataArray:I}=S.current;I.push(_),I.sort((L,j)=>{const H=L.order,W=j.order;return H==null&&W==null?0:H==null?-1:W==null?1:H-W}),S.current.panelDataArrayChanged=!0,C()},[C]);_t(()=>{if(S.current.panelDataArrayChanged){S.current.panelDataArrayChanged=!1;const{autoSaveId:_,onLayout:I,storage:L}=x.current,{layout:j,panelDataArray:H}=S.current;let W=null;if(_){const Y=Y7(_,H,L);Y&&($.current=new Map(Object.entries(Y.expandToSizes)),W=Y.layout)}W==null&&(W=Z7({panelDataArray:H}));const q=t0({layout:W,panelConstraints:H.map(Y=>Y.constraints)});Qs(j,q)||(m(q),S.current.layout=q,I&&I(q),Gt(H,q,E.current))}}),_t(()=>{const _=S.current;return()=>{_.layout=[]}},[]);const U=$e(_=>{let I=!1;const L=g.current;return L&&window.getComputedStyle(L,null).getPropertyValue("direction")==="rtl"&&(I=!0),function(H){H.preventDefault();const W=g.current;if(!W)return()=>null;const{direction:q,dragState:Y,id:le,keyboardResizeBy:G,onLayout:te}=x.current,{layout:de,panelDataArray:Be}=S.current,{initialLayout:zt}=Y??{},re=Dd(le,_,W);let pe=W7(H,_,q,Y,G,W);const Ut=q==="horizontal";Ut&&I&&(pe=-pe);const Sr=Be.map($f=>$f.constraints),Fr=Vr({delta:pe,initialLayout:zt??de,panelConstraints:Sr,pivotIndices:re,prevLayout:de,trigger:gd(H)?"keyboard":"mouse-or-touch"}),kl=!wn(de,Fr);(vd(H)||bd(H))&&w.current!=pe&&(w.current=pe,!kl&&pe!==0?Ut?bo(_,pe<0?yd:Cd):bo(_,pe<0?Ed:wd):bo(_,0)),kl&&(m(Fr),S.current.layout=Fr,te&&te(Fr),Gt(Be,Fr,E.current))}},[]),P=$e((_,I)=>{const{onLayout:L}=x.current,{layout:j,panelDataArray:H}=S.current,W=H.map(de=>de.constraints),{panelSize:q,pivotIndices:Y}=Ct(H,_,j);Q(q!=null,`Panel size not found for panel "${_.id}"`);const G=or(H,_)===H.length-1?q-I:I-q,te=Vr({delta:G,initialLayout:j,panelConstraints:W,pivotIndices:Y,prevLayout:j,trigger:"imperative-api"});wn(j,te)||(m(te),S.current.layout=te,L&&L(te),Gt(H,te,E.current))},[]),O=$e((_,I)=>{const{layout:L,panelDataArray:j}=S.current,{collapsedSize:H=0,collapsible:W}=I,{collapsedSize:q=0,collapsible:Y,maxSize:le=100,minSize:G=0}=_.constraints,{panelSize:te}=Ct(j,_,L);te!=null&&(W&&Y&&Qe(te,H)?Qe(H,q)||P(_,q):te<G?P(_,G):te>le&&P(_,le))},[P]),z=$e((_,I)=>{const{direction:L}=x.current,{layout:j}=S.current;if(!g.current)return;const H=Ni(_,g.current);Q(H,`Drag handle element not found for id "${_}"`);const W=Fd(L,I);h({dragHandleId:_,dragHandleRect:H.getBoundingClientRect(),initialCursorPosition:W,initialLayout:j})},[]),B=$e(()=>{h(null)},[]),M=$e(_=>{const{panelDataArray:I}=S.current,L=or(I,_);L>=0&&(I.splice(L,1),delete E.current[_.id],S.current.panelDataArrayChanged=!0,C())},[C]),R=F7(()=>({collapsePanel:N,direction:n,dragState:y,expandPanel:K,getPanelSize:V,getPanelStyle:D,groupId:p,isPanelCollapsed:T,isPanelExpanded:Z,reevaluatePanelConstraints:O,registerPanel:k,registerResizeHandle:U,resizePanel:P,startDragging:z,stopDragging:B,unregisterPanel:M,panelGroupElement:g.current}),[N,y,n,K,V,D,p,T,Z,O,k,U,P,z,B,M]),F={display:"flex",flexDirection:n==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return Cr(Ii.Provider,{value:R},Cr(d,{...f,children:e,className:r,id:o,ref:g,style:{...F,...c},"data-panel-group":"","data-panel-group-direction":n,"data-panel-group-id":p}))}const Td=dd((t,e)=>Cr(Ad,{...t,forwardedRef:e}));Ad.displayName="PanelGroup";Td.displayName="forwardRef(PanelGroup)";function or(t,e){return t.findIndex(r=>r===e||r.id===e.id)}function Ct(t,e,r){const n=or(t,e),o=n===t.length-1?[n-1,n]:[n,n+1],a=r[n];return{...e.constraints,panelSize:a,pivotIndices:o}}function Q7({disabled:t,handleId:e,resizeHandler:r,panelGroupElement:n}){$t(()=>{if(t||r==null||n==null)return;const i=Ni(e,n);if(i==null)return;const o=a=>{if(!a.defaultPrevented)switch(a.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{a.preventDefault(),r(a);break}case"F6":{a.preventDefault();const l=i.getAttribute("data-panel-group-id");Q(l,`No group element found for id "${l}"`);const s=en(l,n),c=xd(l,e,n);Q(c!==null,`No resize element found for id "${e}"`);const d=a.shiftKey?c>0?c-1:s.length-1:c+1<s.length?c+1:0;s[d].focus();break}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}},[n,t,e,r])}function kd({children:t=null,className:e="",disabled:r=!1,hitAreaMargins:n,id:i,onBlur:o,onDragging:a,onFocus:l,style:s={},tabIndex:c=0,tagName:d="div",...f}){var p,g;const y=Pe(null),h=Pe({onDragging:a});$t(()=>{h.current.onDragging=a});const b=fd(Ii);if(b===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:m,groupId:C,registerResizeHandle:E,startDragging:$,stopDragging:w,panelGroupElement:x}=b,S=dl(i),[N,K]=hr("inactive"),[V,D]=hr(!1),[T,Z]=hr(null),k=Pe({state:N});_t(()=>{k.current.state=N}),$t(()=>{if(r)Z(null);else{const z=E(S);Z(()=>z)}},[r,S,E]);const U=(p=n==null?void 0:n.coarse)!==null&&p!==void 0?p:15,P=(g=n==null?void 0:n.fine)!==null&&g!==void 0?g:5;return $t(()=>{if(r||T==null)return;const z=y.current;return Q(z,"Element ref not attached"),L7(S,z,m,{coarse:U,fine:P},(M,R,F)=>{if(R)switch(M){case"down":{K("drag"),Q(F,'Expected event to be defined for "down" action'),$(S,F);const{onDragging:_}=h.current;_&&_(!0);break}case"move":{const{state:_}=k.current;_!=="drag"&&K("hover"),Q(F,'Expected event to be defined for "move" action'),T(F);break}case"up":{K("hover"),w();const{onDragging:_}=h.current;_&&_(!1);break}}else K("inactive")})},[U,m,r,P,E,S,T,$,w]),Q7({disabled:r,handleId:S,resizeHandler:T,panelGroupElement:x}),Cr(d,{...f,children:t,className:e,id:i,onBlur:()=>{D(!1),o==null||o()},onFocus:()=>{D(!0),l==null||l()},ref:y,role:"separator",style:{...{touchAction:"none",userSelect:"none"},...s},tabIndex:c,"data-panel-group-direction":m,"data-panel-group-id":C,"data-resize-handle":"","data-resize-handle-active":N==="drag"?"pointer":V?"keyboard":void 0,"data-resize-handle-state":N,"data-panel-resize-handle-enabled":!r,"data-panel-resize-handle-id":S})}kd.displayName="PanelResizeHandle";const ep=({children:t,isOpen:e})=>{const{isDesktop:r}=ot();return r?v.jsx("div",{className:be("c__right-panel",{open:e}),children:t}):v.jsx("div",{className:be("c__right-panel__mobile",{open:e}),children:t})},tp=(t,e,r)=>{const[n,i]=u.useState(typeof e>"u"?t:e),o=a=>{r?r(a):i(a)};return u.useEffect(()=>{r&&typeof e<"u"&&e!==n&&i(e)},[e]),[n,o]},rp=({icon:t,children:e,hideLeftPanelOnDesktop:r=!1,leftPanelContent:n,rightPanelContent:i,rightHeaderContent:o,languages:a,enableResize:l=!1,rightPanelIsOpen:s=!1,...c})=>{const[d,f]=tp(!1,c.isLeftPanelOpen,c.setIsLeftPanelOpen),{isDesktop:p}=ot(),g=u.useRef(null),[y,h]=u.useState(!1),b=u.useRef(void 0);u.useEffect(()=>{const N=()=>{h(!0),b.current&&clearTimeout(b.current),b.current=window.setTimeout(()=>{h(!1)},150)};return window.addEventListener("resize",N),()=>{window.removeEventListener("resize",N),b.current&&clearTimeout(b.current)}},[]);const m=p?!r:!0,C=p?!r:d,[E,$]=u.useState(xn(300,p)),[w,x]=u.useState(xn(450,p)),S=()=>{f(!d)};return u.useEffect(()=>{const N=()=>{const K=Math.round(xn(300,p)),V=Math.round(Math.min(xn(450,p),40));$(p?K:0),x(l?V:K)};return N(),window.addEventListener("resize",N),()=>{window.removeEventListener("resize",N)}},[p,l]),v.jsxs("div",{className:be("c__main-layout",{resizing:y}),children:[v.jsx("div",{className:"c__main-layout__header",children:v.jsx(cd,{onTogglePanel:S,isPanelOpen:d,rightIcon:o,leftIcon:t,languages:a})}),v.jsx("div",{className:"c__main-layout__content",children:v.jsxs(Td,{autoSaveId:"persistance",direction:"horizontal",children:[m&&v.jsxs(v.Fragment,{children:[v.jsx(ha,{ref:g,order:0,defaultSize:E,minSize:E,maxSize:w,children:v.jsx(ud,{isOpen:C,children:n})}),p&&v.jsx(kd,{className:"border-clr-surface-primary",style:{borderRightWidth:"1px",borderRightStyle:"solid"}})]}),v.jsx(ha,{order:1,children:v.jsxs("div",{className:"c__main-layout__content__center",children:[v.jsx("div",{className:"c__main-layout__content__center__children",children:e}),v.jsx(ep,{isOpen:s,children:i})]})})]})})]})},xn=(t,e)=>{if(!e)return 0;const r=window.innerWidth;return t/r*100},np=52,li=({size:t="sm"})=>v.jsx("div",{className:["c__spinner",t].join(" ")}),Id=({children:t,text:e,...r})=>v.jsxs("div",{className:"suite__label__container",children:[v.jsx("label",{...r,children:t}),e&&v.jsx("span",{className:"suite__label__container__description",children:e})]}),ip=({label:t,text:e,labelSide:r="right",children:n})=>v.jsxs("div",{className:be("c__with-label",{[r]:!0}),children:[v.jsx(Id,{children:t,text:e}),n]});var n0=1,op=.9,ap=.8,lp=.17,mo=.1,yo=.999,sp=.9999,cp=.99,up=/[\\\/_+.#"@\[\(\{&]/,dp=/[\\\/_+.#"@\[\(\{&]/g,fp=/[\s-]/,Od=/[\s-]/g;function ga(t,e,r,n,i,o,a){if(o===e.length)return i===t.length?n0:cp;var l=`${i},${o}`;if(a[l]!==void 0)return a[l];for(var s=n.charAt(o),c=r.indexOf(s,i),d=0,f,p,g,y;c>=0;)f=ga(t,e,r,n,c+1,o+1,a),f>d&&(c===i?f*=n0:up.test(t.charAt(c-1))?(f*=ap,g=t.slice(i,c-1).match(dp),g&&i>0&&(f*=Math.pow(yo,g.length))):fp.test(t.charAt(c-1))?(f*=op,y=t.slice(i,c-1).match(Od),y&&i>0&&(f*=Math.pow(yo,y.length))):(f*=lp,i>0&&(f*=Math.pow(yo,c-i))),t.charAt(c)!==e.charAt(o)&&(f*=sp)),(f<mo&&r.charAt(c-1)===n.charAt(o+1)||n.charAt(o+1)===n.charAt(o)&&r.charAt(c-1)!==n.charAt(o))&&(p=ga(t,e,r,n,c+1,o+2,a),p*mo>f&&(f=p*mo)),f>d&&(d=f),c=r.indexOf(s,c+1);return a[l]=d,d}function i0(t){return t.toLowerCase().replace(Od," ")}function hp(t,e,r){return t=r&&r.length>0?`${t+" "+r.join(" ")}`:t,ga(t,e,i0(t),i0(e),0,0,{})}function pt(t,e,{checkForDefaultPrevented:r=!0}={}){return function(i){if(t==null||t(i),r===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}function o0(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Md(...t){return e=>{let r=!1;const n=t.map(i=>{const o=o0(i,e);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let i=0;i<n.length;i++){const o=n[i];typeof o=="function"?o():o0(t[i],null)}}}}function Vt(...t){return A.useCallback(Md(...t),t)}function pp(t,e){const r=A.createContext(e),n=o=>{const{children:a,...l}=o,s=A.useMemo(()=>l,Object.values(l));return v.jsx(r.Provider,{value:s,children:a})};n.displayName=t+"Provider";function i(o){const a=A.useContext(r);if(a)return a;if(e!==void 0)return e;throw new Error(`\`${o}\` must be used within \`${t}\``)}return[n,i]}function gp(t,e=[]){let r=[];function n(o,a){const l=A.createContext(a),s=r.length;r=[...r,a];const c=f=>{var m;const{scope:p,children:g,...y}=f,h=((m=p==null?void 0:p[t])==null?void 0:m[s])||l,b=A.useMemo(()=>y,Object.values(y));return v.jsx(h.Provider,{value:b,children:g})};c.displayName=o+"Provider";function d(f,p){var h;const g=((h=p==null?void 0:p[t])==null?void 0:h[s])||l,y=A.useContext(g);if(y)return y;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[c,d]}const i=()=>{const o=r.map(a=>A.createContext(a));return function(l){const s=(l==null?void 0:l[t])||o;return A.useMemo(()=>({[`__scope${t}`]:{...l,[t]:s}}),[l,s])}};return i.scopeName=t,[n,vp(i,...e)]}function vp(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const a=n.reduce((l,{useScope:s,scopeName:c})=>{const f=s(o)[`__scope${c}`];return{...l,...f}},{});return A.useMemo(()=>({[`__scope${e.scopeName}`]:a}),[a])}};return r.scopeName=e.scopeName,r}var tn=globalThis!=null&&globalThis.document?A.useLayoutEffect:()=>{},bp=A[" useId ".trim().toString()]||(()=>{}),mp=0;function tt(t){const[e,r]=A.useState(bp());return tn(()=>{r(n=>n??String(mp++))},[t]),e?`radix-${e}`:""}var yp=A[" useInsertionEffect ".trim().toString()]||tn;function Cp({prop:t,defaultProp:e,onChange:r=()=>{},caller:n}){const[i,o,a]=Ep({defaultProp:e,onChange:r}),l=t!==void 0,s=l?t:i;{const d=A.useRef(t!==void 0);A.useEffect(()=>{const f=d.current;f!==l&&console.warn(`${n} is changing from ${f?"controlled":"uncontrolled"} to ${l?"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=l},[l,n])}const c=A.useCallback(d=>{var f;if(l){const p=wp(d)?d(t):d;p!==t&&((f=a.current)==null||f.call(a,p))}else o(d)},[l,t,o,a]);return[s,c]}function Ep({defaultProp:t,onChange:e}){const[r,n]=A.useState(t),i=A.useRef(r),o=A.useRef(e);return yp(()=>{o.current=e},[e]),A.useEffect(()=>{var a;i.current!==r&&((a=o.current)==null||a.call(o,r),i.current=r)},[r,i]),[r,n,o]}function wp(t){return typeof t=="function"}function Nd(t){const e=xp(t),r=A.forwardRef((n,i)=>{const{children:o,...a}=n,l=A.Children.toArray(o),s=l.find(Sp);if(s){const c=s.props.children,d=l.map(f=>f===s?A.Children.count(c)>1?A.Children.only(null):A.isValidElement(c)?c.props.children:null:f);return v.jsx(e,{...a,ref:i,children:A.isValidElement(c)?A.cloneElement(c,void 0,d):null})}return v.jsx(e,{...a,ref:i,children:o})});return r.displayName=`${t}.Slot`,r}function xp(t){const e=A.forwardRef((r,n)=>{const{children:i,...o}=r;if(A.isValidElement(i)){const a=$p(i),l=Fp(o,i.props);return i.type!==A.Fragment&&(l.ref=n?Md(n,a):a),A.cloneElement(i,l)}return A.Children.count(i)>1?A.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var Dp=Symbol("radix.slottable");function Sp(t){return A.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Dp}function Fp(t,e){const r={...e};for(const n in e){const i=t[n],o=e[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...l)=>{const s=o(...l);return i(...l),s}:i&&(r[n]=i):n==="style"?r[n]={...i,...o}:n==="className"&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...t,...r}}function $p(t){var n,i;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var _p=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ce=_p.reduce((t,e)=>{const r=Nd(`Primitive.${e}`),n=A.forwardRef((i,o)=>{const{asChild:a,...l}=i,s=a?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(s,{...l,ref:o})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function Pp(t,e){t&&_f.flushSync(()=>t.dispatchEvent(e))}function rn(t){const e=A.useRef(t);return A.useEffect(()=>{e.current=t}),A.useMemo(()=>(...r)=>{var n;return(n=e.current)==null?void 0:n.call(e,...r)},[])}function Ap(t,e=globalThis==null?void 0:globalThis.document){const r=rn(t);A.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return e.addEventListener("keydown",n,{capture:!0}),()=>e.removeEventListener("keydown",n,{capture:!0})},[r,e])}var Tp="DismissableLayer",va="dismissableLayer.update",kp="dismissableLayer.pointerDownOutside",Ip="dismissableLayer.focusOutside",a0,Rd=A.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Bd=A.forwardRef((t,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:a,onDismiss:l,...s}=t,c=A.useContext(Rd),[d,f]=A.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=A.useState({}),y=Vt(e,S=>f(S)),h=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),m=h.indexOf(b),C=d?h.indexOf(d):-1,E=c.layersWithOutsidePointerEventsDisabled.size>0,$=C>=m,w=Np(S=>{const N=S.target,K=[...c.branches].some(V=>V.contains(N));!$||K||(i==null||i(S),a==null||a(S),S.defaultPrevented||l==null||l())},p),x=Rp(S=>{const N=S.target;[...c.branches].some(V=>V.contains(N))||(o==null||o(S),a==null||a(S),S.defaultPrevented||l==null||l())},p);return Ap(S=>{C===c.layers.size-1&&(n==null||n(S),!S.defaultPrevented&&l&&(S.preventDefault(),l()))},p),A.useEffect(()=>{if(d)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(a0=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),l0(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=a0)}},[d,p,r,c]),A.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),l0())},[d,c]),A.useEffect(()=>{const S=()=>g({});return document.addEventListener(va,S),()=>document.removeEventListener(va,S)},[]),v.jsx(Ce.div,{...s,ref:y,style:{pointerEvents:E?$?"auto":"none":void 0,...t.style},onFocusCapture:pt(t.onFocusCapture,x.onFocusCapture),onBlurCapture:pt(t.onBlurCapture,x.onBlurCapture),onPointerDownCapture:pt(t.onPointerDownCapture,w.onPointerDownCapture)})});Bd.displayName=Tp;var Op="DismissableLayerBranch",Mp=A.forwardRef((t,e)=>{const r=A.useContext(Rd),n=A.useRef(null),i=Vt(e,n);return A.useEffect(()=>{const o=n.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),v.jsx(Ce.div,{...t,ref:i})});Mp.displayName=Op;function Np(t,e=globalThis==null?void 0:globalThis.document){const r=rn(t),n=A.useRef(!1),i=A.useRef(()=>{});return A.useEffect(()=>{const o=l=>{if(l.target&&!n.current){let s=function(){Ld(kp,r,c,{discrete:!0})};const c={originalEvent:l};l.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=s,e.addEventListener("click",i.current,{once:!0})):s()}else e.removeEventListener("click",i.current);n.current=!1},a=window.setTimeout(()=>{e.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(a),e.removeEventListener("pointerdown",o),e.removeEventListener("click",i.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function Rp(t,e=globalThis==null?void 0:globalThis.document){const r=rn(t),n=A.useRef(!1);return A.useEffect(()=>{const i=o=>{o.target&&!n.current&&Ld(Ip,r,{originalEvent:o},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function l0(){const t=new CustomEvent(va);document.dispatchEvent(t)}function Ld(t,e,r,{discrete:n}){const i=r.originalEvent.target,o=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&i.addEventListener(t,e,{once:!0}),n?Pp(i,o):i.dispatchEvent(o)}var Co="focusScope.autoFocusOnMount",Eo="focusScope.autoFocusOnUnmount",s0={bubbles:!1,cancelable:!0},Bp="FocusScope",jd=A.forwardRef((t,e)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=t,[l,s]=A.useState(null),c=rn(i),d=rn(o),f=A.useRef(null),p=Vt(e,h=>s(h)),g=A.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;A.useEffect(()=>{if(n){let h=function(E){if(g.paused||!l)return;const $=E.target;l.contains($)?f.current=$:lt(f.current,{select:!0})},b=function(E){if(g.paused||!l)return;const $=E.relatedTarget;$!==null&&(l.contains($)||lt(f.current,{select:!0}))},m=function(E){if(document.activeElement===document.body)for(const w of E)w.removedNodes.length>0&&lt(l)};document.addEventListener("focusin",h),document.addEventListener("focusout",b);const C=new MutationObserver(m);return l&&C.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",b),C.disconnect()}}},[n,l,g.paused]),A.useEffect(()=>{if(l){u0.add(g);const h=document.activeElement;if(!l.contains(h)){const m=new CustomEvent(Co,s0);l.addEventListener(Co,c),l.dispatchEvent(m),m.defaultPrevented||(Lp(zp(Kd(l)),{select:!0}),document.activeElement===h&&lt(l))}return()=>{l.removeEventListener(Co,c),setTimeout(()=>{const m=new CustomEvent(Eo,s0);l.addEventListener(Eo,d),l.dispatchEvent(m),m.defaultPrevented||lt(h??document.body,{select:!0}),l.removeEventListener(Eo,d),u0.remove(g)},0)}}},[l,c,d,g]);const y=A.useCallback(h=>{if(!r&&!n||g.paused)return;const b=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,m=document.activeElement;if(b&&m){const C=h.currentTarget,[E,$]=jp(C);E&&$?!h.shiftKey&&m===$?(h.preventDefault(),r&&lt(E,{select:!0})):h.shiftKey&&m===E&&(h.preventDefault(),r&&lt($,{select:!0})):m===C&&h.preventDefault()}},[r,n,g.paused]);return v.jsx(Ce.div,{tabIndex:-1,...a,ref:p,onKeyDown:y})});jd.displayName=Bp;function Lp(t,{select:e=!1}={}){const r=document.activeElement;for(const n of t)if(lt(n,{select:e}),document.activeElement!==r)return}function jp(t){const e=Kd(t),r=c0(e,t),n=c0(e.reverse(),t);return[r,n]}function Kd(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function c0(t,e){for(const r of t)if(!Kp(r,{upTo:e}))return r}function Kp(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function Vp(t){return t instanceof HTMLInputElement&&"select"in t}function lt(t,{select:e=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&Vp(t)&&e&&t.select()}}var u0=Hp();function Hp(){let t=[];return{add(e){const r=t[0];e!==r&&(r==null||r.pause()),t=d0(t,e),t.unshift(e)},remove(e){var r;t=d0(t,e),(r=t[0])==null||r.resume()}}}function d0(t,e){const r=[...t],n=r.indexOf(e);return n!==-1&&r.splice(n,1),r}function zp(t){return t.filter(e=>e.tagName!=="A")}var Up="Portal",Vd=A.forwardRef((t,e)=>{var l;const{container:r,...n}=t,[i,o]=A.useState(!1);tn(()=>o(!0),[]);const a=r||i&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?Bt.createPortal(v.jsx(Ce.div,{...n,ref:e}),a):null});Vd.displayName=Up;function Wp(t,e){return A.useReducer((r,n)=>e[r][n]??r,t)}var Ri=t=>{const{present:e,children:r}=t,n=Zp(e),i=typeof r=="function"?r({present:n.isPresent}):A.Children.only(r),o=Vt(n.ref,Gp(i));return typeof r=="function"||n.isPresent?A.cloneElement(i,{ref:o}):null};Ri.displayName="Presence";function Zp(t){const[e,r]=A.useState(),n=A.useRef(null),i=A.useRef(t),o=A.useRef("none"),a=t?"mounted":"unmounted",[l,s]=Wp(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return A.useEffect(()=>{const c=Dn(n.current);o.current=l==="mounted"?c:"none"},[l]),tn(()=>{const c=n.current,d=i.current;if(d!==t){const p=o.current,g=Dn(c);t?s("MOUNT"):g==="none"||(c==null?void 0:c.display)==="none"?s("UNMOUNT"):s(d&&p!==g?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,s]),tn(()=>{if(e){let c;const d=e.ownerDocument.defaultView??window,f=g=>{const h=Dn(n.current).includes(CSS.escape(g.animationName));if(g.target===e&&h&&(s("ANIMATION_END"),!i.current)){const b=e.style.animationFillMode;e.style.animationFillMode="forwards",c=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=b)})}},p=g=>{g.target===e&&(o.current=Dn(n.current))};return e.addEventListener("animationstart",p),e.addEventListener("animationcancel",f),e.addEventListener("animationend",f),()=>{d.clearTimeout(c),e.removeEventListener("animationstart",p),e.removeEventListener("animationcancel",f),e.removeEventListener("animationend",f)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:A.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function Dn(t){return(t==null?void 0:t.animationName)||"none"}function Gp(t){var n,i;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var wo=0;function qp(){A.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??f0()),document.body.insertAdjacentElement("beforeend",t[1]??f0()),wo++,()=>{wo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),wo--}},[])}function f0(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var Nn="right-scroll-bar-position",Rn="width-before-scroll-bar",Yp="with-scroll-bars-hidden",Xp="--removed-body-scroll-bar-size";function xo(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function Jp(t,e){var r=u.useState(function(){return{value:t,callback:e,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=e,r.facade}var Qp=typeof window<"u"?A.useLayoutEffect:A.useEffect,h0=new WeakMap;function e9(t,e){var r=Jp(null,function(n){return t.forEach(function(i){return xo(i,n)})});return Qp(function(){var n=h0.get(r);if(n){var i=new Set(n),o=new Set(t),a=r.current;i.forEach(function(l){o.has(l)||xo(l,null)}),o.forEach(function(l){i.has(l)||xo(l,a)})}h0.set(r,t)},[t]),r}function t9(t){return t}function r9(t,e){e===void 0&&(e=t9);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:t},useMedium:function(o){var a=e(o,n);return r.push(a),function(){r=r.filter(function(l){return l!==a})}},assignSyncMedium:function(o){for(n=!0;r.length;){var a=r;r=[],a.forEach(o)}r={push:function(l){return o(l)},filter:function(){return r}}},assignMedium:function(o){n=!0;var a=[];if(r.length){var l=r;r=[],l.forEach(o),a=r}var s=function(){var d=a;a=[],d.forEach(o)},c=function(){return Promise.resolve().then(s)};c(),r={push:function(d){a.push(d),c()},filter:function(d){return a=a.filter(d),r}}}};return i}function n9(t){t===void 0&&(t={});var e=r9(null);return e.options=Ge({async:!0,ssr:!1},t),e}var Hd=function(t){var e=t.sideCar,r=Q2(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=e.read();if(!n)throw new Error("Sidecar medium not found");return A.createElement(n,Ge({},r))};Hd.isSideCarExport=!0;function i9(t,e){return t.useMedium(e),Hd}var zd=n9(),Do=function(){},Bi=A.forwardRef(function(t,e){var r=A.useRef(null),n=A.useState({onScrollCapture:Do,onWheelCapture:Do,onTouchMoveCapture:Do}),i=n[0],o=n[1],a=t.forwardProps,l=t.children,s=t.className,c=t.removeScrollBar,d=t.enabled,f=t.shards,p=t.sideCar,g=t.noRelative,y=t.noIsolation,h=t.inert,b=t.allowPinchZoom,m=t.as,C=m===void 0?"div":m,E=t.gapMode,$=Q2(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=p,x=e9([r,e]),S=Ge(Ge({},$),i);return A.createElement(A.Fragment,null,d&&A.createElement(w,{sideCar:zd,removeScrollBar:c,shards:f,noRelative:g,noIsolation:y,inert:h,setCallbacks:o,allowPinchZoom:!!b,lockRef:r,gapMode:E}),a?A.cloneElement(A.Children.only(l),Ge(Ge({},S),{ref:x})):A.createElement(C,Ge({},S,{className:s,ref:x}),l))});Bi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Bi.classNames={fullWidth:Rn,zeroRight:Nn};var o9=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function a9(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=o9();return e&&t.setAttribute("nonce",e),t}function l9(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function s9(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var c9=function(){var t=0,e=null;return{add:function(r){t==0&&(e=a9())&&(l9(e,r),s9(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},u9=function(){var t=c9();return function(e,r){A.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&r])}},Ud=function(){var t=u9(),e=function(r){var n=r.styles,i=r.dynamic;return t(n,i),null};return e},d9={left:0,top:0,right:0,gap:0},So=function(t){return parseInt(t||"",10)||0},f9=function(t){var e=window.getComputedStyle(document.body),r=e[t==="padding"?"paddingLeft":"marginLeft"],n=e[t==="padding"?"paddingTop":"marginTop"],i=e[t==="padding"?"paddingRight":"marginRight"];return[So(r),So(n),So(i)]},h9=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return d9;var e=f9(t),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,n-r+e[2]-e[0])}},p9=Ud(),gr="data-scroll-locked",g9=function(t,e,r,n){var i=t.left,o=t.top,a=t.right,l=t.gap;return r===void 0&&(r="margin"),`
45
- .`.concat(Yp,` {
44
+ */var ts;function h4(){return ts||(ts=1,process.env.NODE_ENV!=="production"&&function(){function t(g,y){return g===y&&(g!==0||1/g===1/y)||g!==g&&y!==y}function e(g,y){d||i.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var h=y();if(!f){var v=y();o(h,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}v=a({inst:{value:h,getSnapshot:y}});var m=v[0].inst,C=v[1];return s(function(){m.value=h,m.getSnapshot=y,r(m)&&C({inst:m})},[g,h,y]),l(function(){return r(m)&&C({inst:m}),g(function(){r(m)&&C({inst:m})})},[g]),c(h),h}function r(g){var y=g.getSnapshot;g=g.value;try{var h=y();return!o(g,h)}catch{return!0}}function n(g,y){return y()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=u,o=typeof Object.is=="function"?Object.is:t,a=i.useState,l=i.useEffect,s=i.useLayoutEffect,c=i.useDebugValue,d=!1,f=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:e;no.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),no}var rs;function p4(){return rs||(rs=1,process.env.NODE_ENV==="production"?yn.exports=f4():yn.exports=h4()),yn.exports}var Za=p4();const X2=u.createContext(!1),qr=u.createContext(null);function Si(t){if(u.useContext(qr))return t.content;let{collection:r,document:n}=m4(t.createCollection);return u.createElement(u.Fragment,null,u.createElement(V5,null,u.createElement(qr.Provider,{value:n},t.content)),u.createElement(g4,{render:t.children,collection:r}))}function g4({collection:t,render:e}){return e(t)}function v4(t,e,r){let n=sn(),i=u.useRef(n);i.current=n;let o=u.useCallback(()=>i.current?r():e(),[e,r]);return Za.useSyncExternalStore(t,o)}const b4=typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore:v4;function m4(t){let[e]=u.useState(()=>new K5((t==null?void 0:t())||new Ka)),r=u.useCallback(a=>e.subscribe(a),[e]),n=u.useCallback(()=>{let a=e.getCollection();return e.isSSR&&e.resetAfterSSR(),a},[e]),i=u.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]),o=b4(r,n,i);return ne(()=>(e.isMounted=!0,()=>{e.isMounted=!1}),[e]),{collection:o,document:e}}const ea=u.createContext(null);function y4(t,e,r,n,i,o){let a=u.useCallback(s=>{s==null||s.setProps(e,r,n,o)},[e,r,n,o]),l=u.useContext(ea);if(l){let s=l.ownerDocument.nodesByProps.get(e);return s||(s=l.ownerDocument.createElement(t),s.setProps(e,r,n,o),l.appendChild(s),l.ownerDocument.updateCollection(),l.ownerDocument.nodesByProps.set(e,s)),i?u.createElement(ea.Provider,{value:s},i):null}return u.createElement(t,{ref:a},i)}function Fi(t,e){let r=({node:i})=>e(i.props,i.props.ref,i),n=u.forwardRef((i,o)=>{let a=u.useContext(Jo);if(!u.useContext(X2)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,o)}return y4(t,i,o,"children"in i?i.children:null,null,s=>u.createElement(Jo.Provider,{value:a},u.createElement(r,{node:s})))});return n.displayName=e.name,n}function C4(t){return B2({...t,addIdAndValue:!0})}const ns=u.createContext(null);function Ga(t){let e=u.useContext(ns),r=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies),n=t.idScope||(e==null?void 0:e.idScope),i=C4({...t,idScope:n,dependencies:r});return u.useContext(qr)&&(i=u.createElement(E4,null,i)),e=u.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),u.createElement(ns.Provider,{value:e},i)}function E4({children:t}){let e=u.useContext(qr),r=u.useMemo(()=>u.createElement(qr.Provider,{value:null},u.createElement(X2.Provider,{value:!0},t)),[t]);return sn()?u.createElement(ea.Provider,{value:e},r):Nt.createPortal(r,e)}const w4=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),x4=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function D4(t){if(Intl.Locale){let r=new Intl.Locale(t).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return w4.has(r.script)}let e=t.split("-")[0];return x4.has(e)}const S4=Symbol.for("react-aria.i18n.locale");function J2(){let t=typeof window<"u"&&window[S4]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:D4(t)?"rtl":"ltr"}}let ta=J2(),Lr=new Set;function is(){ta=J2();for(let t of Lr)t(ta)}function F4(){let t=sn(),[e,r]=u.useState(ta);return u.useEffect(()=>(Lr.size===0&&window.addEventListener("languagechange",is),Lr.add(r),()=>{Lr.delete(r),Lr.size===0&&window.removeEventListener("languagechange",is)}),[]),t?{locale:"en-US",direction:"ltr"}:e}const $4=u.createContext(null);function Bt(){let t=F4();return u.useContext($4)||t}var Ge=function(){return Ge=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Ge.apply(this,arguments)};function Q2(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}function _4(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))}const P4=Symbol.for("react-aria.i18n.locale"),A4=Symbol.for("react-aria.i18n.strings");let zt;class $i{getStringForLocale(e,r){let i=this.getStringsForLocale(r)[e];if(!i)throw new Error(`Could not find intl message ${e} in ${r} locale`);return i}getStringsForLocale(e){let r=this.strings[e];return r||(r=T4(e,this.strings,this.defaultLocale),this.strings[e]=r),r}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let r=window[P4];if(zt===void 0){let i=window[A4];if(!i)return null;zt={};for(let o in i)zt[o]=new $i({[r]:i[o]},r)}let n=zt==null?void 0:zt[e];if(!n)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(e,r="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,n])=>n)),this.defaultLocale=r}}function T4(t,e,r="en-US"){if(e[t])return e[t];let n=k4(t);if(e[n])return e[n];for(let i in e)if(i.startsWith(n+"-"))return e[i];return e[r]}function k4(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const os=new Map,as=new Map;class I4{format(e,r){let n=this.strings.getStringForLocale(e,this.locale);return typeof n=="function"?n(r,this):n}plural(e,r,n="cardinal"){let i=r["="+e];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+n,a=os.get(o);a||(a=new Intl.PluralRules(this.locale,{type:n}),os.set(o,a));let l=a.select(e);return i=r[l]||r.other,typeof i=="function"?i():i}number(e){let r=as.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),as.set(this.locale,r)),r.format(e)}select(e,r){let n=e[r]||e.other;return typeof n=="function"?n():n}constructor(e,r){this.locale=e,this.strings=r}}const ls=new WeakMap;function O4(t){let e=ls.get(t);return e||(e=new $i(t),ls.set(t,e)),e}function M4(t,e){return e&&$i.getGlobalDictionaryForPackage(e)||O4(t)}function ec(t,e){let{locale:r}=Bt(),n=M4(t,e);return u.useMemo(()=>new I4(r,n),[r,n])}let io=new Map;function qa(t){let{locale:e}=Bt(),r=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(io.has(r))return io.get(r);let n=new Intl.Collator(e,t);return io.set(r,n),n}function N4(t,e){let{elementType:r="button",isDisabled:n,onPress:i,onPressStart:o,onPressEnd:a,onPressUp:l,onPressChange:s,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:f,href:p,target:g,rel:y,type:h="button"}=t,v;r==="button"?v={type:h,disabled:n,form:t.form,formAction:t.formAction,formEncType:t.formEncType,formMethod:t.formMethod,formNoValidate:t.formNoValidate,formTarget:t.formTarget,name:t.name,value:t.value}:v={role:"button",href:r==="a"&&!n?p:void 0,target:r==="a"?g:void 0,type:r==="input"?h:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?y:void 0};let{pressProps:m,isPressed:C}=wi({onPressStart:o,onPressEnd:a,onPressChange:s,onPress:i,onPressUp:l,onClick:f,isDisabled:n,preventFocusOnPress:c,ref:e}),{focusableProps:E}=q2(t,e);d&&(E.tabIndex=n?-1:E.tabIndex);let F=ie(E,m,he(t,{labelable:!0}));return{isPressed:C,buttonProps:ie(v,F,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],"aria-current":t["aria-current"],"aria-disabled":t["aria-disabled"]})}}const ss=u.createContext(null),ra="react-aria-focus-scope-restore";let ce=null;function Ya(t){let{children:e,contain:r,restoreFocus:n,autoFocus:i}=t,o=u.useRef(null),a=u.useRef(null),l=u.useRef([]),{parentNode:s}=u.useContext(ss)||{},c=u.useMemo(()=>new ia({scopeRef:l}),[l]);ne(()=>{let p=s||ge.root;if(ge.getTreeNode(p.scopeRef)&&ce&&!Qn(ce,p.scopeRef)){let g=ge.getTreeNode(ce);g&&(p=g)}p.addChild(c),ge.addNode(c)},[c,s]),ne(()=>{let p=ge.getTreeNode(l);p&&(p.contain=!!r)},[r]),ne(()=>{var p;let g=(p=o.current)===null||p===void 0?void 0:p.nextSibling,y=[],h=v=>v.stopPropagation();for(;g&&g!==a.current;)y.push(g),g.addEventListener(ra,h),g=g.nextSibling;return l.current=y,()=>{for(let v of y)v.removeEventListener(ra,h)}},[e]),V4(l,n,r),L4(l,r),H4(l,n,r),K4(l,i),u.useEffect(()=>{const p=xe(ae(l.current?l.current[0]:void 0));let g=null;if(Re(p,l.current)){for(let y of ge.traverse())y.scopeRef&&Re(p,y.scopeRef.current)&&(g=y);g===ge.getTreeNode(l)&&(ce=g.scopeRef)}},[l]),ne(()=>()=>{var p,g,y;let h=(y=(g=ge.getTreeNode(l))===null||g===void 0||(p=g.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&y!==void 0?y:null;(l===ce||Qn(l,ce))&&(!h||ge.getTreeNode(h))&&(ce=h),ge.removeTreeNode(l)},[l]);let d=u.useMemo(()=>R4(l),[]),f=u.useMemo(()=>({focusManager:d,parentNode:c}),[c,d]);return u.createElement(ss.Provider,{value:f},u.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),e,u.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function R4(t){return{focusNext(e={}){let r=t.current,{from:n,tabbable:i,wrap:o,accept:a}=e;var l;let s=n||xe(ae((l=r[0])!==null&&l!==void 0?l:void 0)),c=r[0].previousElementSibling,d=xt(r),f=qe(d,{tabbable:i,accept:a},r);f.currentNode=Re(s,r)?s:c;let p=f.nextNode();return!p&&o&&(f.currentNode=c,p=f.nextNode()),p&&et(p,!0),p},focusPrevious(e={}){let r=t.current,{from:n,tabbable:i,wrap:o,accept:a}=e;var l;let s=n||xe(ae((l=r[0])!==null&&l!==void 0?l:void 0)),c=r[r.length-1].nextElementSibling,d=xt(r),f=qe(d,{tabbable:i,accept:a},r);f.currentNode=Re(s,r)?s:c;let p=f.previousNode();return!p&&o&&(f.currentNode=c,p=f.previousNode()),p&&et(p,!0),p},focusFirst(e={}){let r=t.current,{tabbable:n,accept:i}=e,o=xt(r),a=qe(o,{tabbable:n,accept:i},r);a.currentNode=r[0].previousElementSibling;let l=a.nextNode();return l&&et(l,!0),l},focusLast(e={}){let r=t.current,{tabbable:n,accept:i}=e,o=xt(r),a=qe(o,{tabbable:n,accept:i},r);a.currentNode=r[r.length-1].nextElementSibling;let l=a.previousNode();return l&&et(l,!0),l}}}function xt(t){return t[0].parentElement}function jr(t){let e=ge.getTreeNode(ce);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function B4(t){if(t.checked)return!0;let e=[];if(!t.form)e=[...ae(t).querySelectorAll(`input[type="radio"][name="${CSS.escape(t.name)}"]`)].filter(o=>!o.form);else{var r,n;let o=(n=t.form)===null||n===void 0||(r=n.elements)===null||r===void 0?void 0:r.namedItem(t.name);e=[...o??[]]}return e?!e.some(o=>o.checked):!1}function L4(t,e){let r=u.useRef(void 0),n=u.useRef(void 0);ne(()=>{let i=t.current;if(!e){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}const o=ae(i?i[0]:void 0);let a=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!jr(t)||c.isComposing)return;let d=xe(o),f=t.current;if(!f||!Re(d,f))return;let p=xt(f),g=qe(p,{tabbable:!0},f);if(!d)return;g.currentNode=d;let y=c.shiftKey?g.previousNode():g.nextNode();y||(g.currentNode=c.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,y=c.shiftKey?g.previousNode():g.nextNode()),c.preventDefault(),y&&et(y,!0)},l=c=>{(!ce||Qn(ce,t))&&Re(oe(c),t.current)?(ce=t,r.current=oe(c)):jr(t)&&!ft(oe(c),t)?r.current?r.current.focus():ce&&ce.current&&na(ce.current):jr(t)&&(r.current=oe(c))},s=c=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let d=Xn(),f=(d==="virtual"||d===null)&&Ma()&&P2(),p=xe(o);if(!f&&p&&jr(t)&&!ft(p,t)){ce=t;let y=oe(c);if(y&&y.isConnected){var g;r.current=y,(g=r.current)===null||g===void 0||g.focus()}else ce.current&&na(ce.current)}})};return o.addEventListener("keydown",a,!1),o.addEventListener("focusin",l,!1),i==null||i.forEach(c=>c.addEventListener("focusin",l,!1)),i==null||i.forEach(c=>c.addEventListener("focusout",s,!1)),()=>{o.removeEventListener("keydown",a,!1),o.removeEventListener("focusin",l,!1),i==null||i.forEach(c=>c.removeEventListener("focusin",l,!1)),i==null||i.forEach(c=>c.removeEventListener("focusout",s,!1))}},[t,e]),ne(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function tc(t){return ft(t)}function Re(t,e){return!t||!e?!1:e.some(r=>r.contains(t))}function ft(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of ge.traverse(ge.getTreeNode(e)))if(r&&Re(t,r.current))return!0;return!1}function j4(t){return ft(t,ce)}function Qn(t,e){var r;let n=(r=ge.getTreeNode(e))===null||r===void 0?void 0:r.parent;for(;n;){if(n.scopeRef===t)return!0;n=n.parent}return!1}function et(t,e=!1){if(t!=null&&!e)try{bt(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function rc(t,e=!0){let r=t[0].previousElementSibling,n=xt(t),i=qe(n,{tabbable:e},t);i.currentNode=r;let o=i.nextNode();return e&&!o&&(n=xt(t),i=qe(n,{tabbable:!1},t),i.currentNode=r,o=i.nextNode()),o}function na(t,e=!0){et(rc(t,e))}function K4(t,e){const r=u.useRef(e);u.useEffect(()=>{if(r.current){ce=t;const n=ae(t.current?t.current[0]:void 0);!Re(xe(n),ce.current)&&t.current&&na(t.current)}r.current=!1},[t])}function V4(t,e,r){ne(()=>{if(e||r)return;let n=t.current;const i=ae(n?n[0]:void 0);let o=a=>{let l=oe(a);Re(l,t.current)?ce=t:tc(l)||(ce=null)};return i.addEventListener("focusin",o,!1),n==null||n.forEach(a=>a.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),n==null||n.forEach(a=>a.removeEventListener("focusin",o,!1))}},[t,e,r])}function cs(t){let e=ge.getTreeNode(ce);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function H4(t,e,r){const n=u.useRef(typeof document<"u"?xe(ae(t.current?t.current[0]:void 0)):null);ne(()=>{let i=t.current;const o=ae(i?i[0]:void 0);if(!e||r)return;let a=()=>{(!ce||Qn(ce,t))&&Re(xe(o),t.current)&&(ce=t)};return o.addEventListener("focusin",a,!1),i==null||i.forEach(l=>l.addEventListener("focusin",a,!1)),()=>{o.removeEventListener("focusin",a,!1),i==null||i.forEach(l=>l.removeEventListener("focusin",a,!1))}},[t,r]),ne(()=>{const i=ae(t.current?t.current[0]:void 0);if(!e)return;let o=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!jr(t)||a.isComposing)return;let l=i.activeElement;if(!ft(l,t)||!cs(t))return;let s=ge.getTreeNode(t);if(!s)return;let c=s.nodeToRestore,d=qe(i.body,{tabbable:!0});d.currentNode=l;let f=a.shiftKey?d.previousNode():d.nextNode();if((!c||!c.isConnected||c===i.body)&&(c=void 0,s.nodeToRestore=void 0),(!f||!ft(f,t))&&c){d.currentNode=c;do f=a.shiftKey?d.previousNode():d.nextNode();while(ft(f,t));a.preventDefault(),a.stopPropagation(),f?et(f,!0):tc(c)?et(c,!0):l.blur()}};return r||i.addEventListener("keydown",o,!0),()=>{r||i.removeEventListener("keydown",o,!0)}},[t,e,r]),ne(()=>{const i=ae(t.current?t.current[0]:void 0);if(!e)return;let o=ge.getTreeNode(t);if(o){var a;return o.nodeToRestore=(a=n.current)!==null&&a!==void 0?a:void 0,()=>{let l=ge.getTreeNode(t);if(!l)return;let s=l.nodeToRestore,c=xe(i);if(e&&s&&(c&&ft(c,t)||c===i.body&&cs(t))){let d=ge.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let f=d.getTreeNode(t);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){us(f.nodeToRestore);return}f=f.parent}for(f=d.getTreeNode(t);f;){if(f.scopeRef&&f.scopeRef.current&&ge.getTreeNode(f.scopeRef)){let p=rc(f.scopeRef.current,!0);us(p);return}f=f.parent}}})}}}},[t,e])}function us(t){t.dispatchEvent(new CustomEvent(ra,{bubbles:!0,cancelable:!0}))&&et(t)}function qe(t,e,r){let n=e!=null&&e.tabbable?L5:M2,i=(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null,o=ae(i),a=o5(o,t||o,NodeFilter.SHOW_ELEMENT,{acceptNode(l){var s;return!(e==null||(s=e.from)===null||s===void 0)&&s.contains(l)||e!=null&&e.tabbable&&l.tagName==="INPUT"&&l.getAttribute("type")==="radio"&&(!B4(l)||a.currentNode.tagName==="INPUT"&&a.currentNode.type==="radio"&&a.currentNode.name===l.name)?NodeFilter.FILTER_REJECT:n(l)&&(!r||Re(l,r))&&(!(e!=null&&e.accept)||e.accept(l))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(a.currentNode=e.from),a}class Xa{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,r,n){let i=this.fastMap.get(r??null);if(!i)return;let o=new ia({scopeRef:e});i.addChild(o),o.parent=i,this.fastMap.set(e,o),n&&(o.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let r=this.fastMap.get(e);if(!r)return;let n=r.parent;for(let o of this.traverse())o!==r&&r.nodeToRestore&&o.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&Re(o.nodeToRestore,r.scopeRef.current)&&(o.nodeToRestore=r.nodeToRestore);let i=r.children;n&&(n.removeChild(r),i.size>0&&i.forEach(o=>n&&n.addChild(o))),this.fastMap.delete(r.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let r of e.children)yield*this.traverse(r)}clone(){var e;let r=new Xa;var n;for(let i of this.traverse())r.addTreeNode(i.scopeRef,(n=(e=i.parent)===null||e===void 0?void 0:e.scopeRef)!==null&&n!==void 0?n:null,i.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new ia({scopeRef:null}),this.fastMap.set(null,this.root)}}class ia{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let ge=new Xa;function xr(t={}){let{autoFocus:e=!1,isTextInput:r,within:n}=t,i=u.useRef({isFocused:!1,isFocusVisible:e||vr()}),[o,a]=u.useState(!1),[l,s]=u.useState(()=>i.current.isFocused&&i.current.isFocusVisible),c=u.useCallback(()=>s(i.current.isFocused&&i.current.isFocusVisible),[]),d=u.useCallback(g=>{i.current.isFocused=g,a(g),c()},[c]);a4(g=>{i.current.isFocusVisible=g,c()},[],{isTextInput:r});let{focusProps:f}=Wa({isDisabled:n,onFocusChange:d}),{focusWithinProps:p}=Di({isDisabled:!n,onFocusWithinChange:d});return{isFocused:o,isFocusVisible:l,focusProps:n?p:f}}function z4(t,e){let r=e==null?void 0:e.isDisabled,[n,i]=u.useState(!1);return ne(()=>{if(t!=null&&t.current&&!r){let o=()=>{if(t.current){let l=qe(t.current,{tabbable:!0});i(!!l.nextNode())}};o();let a=new MutationObserver(o);return a.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{a.disconnect()}}}),r?!1:n}function nc(t){let e=W4(ae(t));e!==t&&(e&&U4(e,t),t&&ic(t,e))}function U4(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function ic(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function W4(t){let e=xe(t),r=e==null?void 0:e.getAttribute("aria-activedescendant");return r&&t.getElementById(r)||e}const oc=7e3;let Ue=null;function ds(t,e="assertive",r=oc){Ue?Ue.announce(t,e,r):(Ue=new Z4,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Ue.announce(t,e,r):setTimeout(()=>{Ue!=null&&Ue.isAttached()&&(Ue==null||Ue.announce(t,e,r))},100))}class Z4{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let r=document.createElement("div");return r.setAttribute("role","log"),r.setAttribute("aria-live",e),r.setAttribute("aria-relevant","additions"),r}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,r="assertive",n=oc){var i,o;if(!this.node)return;let a=document.createElement("div");typeof e=="object"?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",e["aria-labelledby"])):a.textContent=e,r==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(a):(o=this.politeLog)===null||o===void 0||o.appendChild(a),e!==""&&setTimeout(()=>{a.remove()},n)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}const ac={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},lc={...ac,customError:!0,valid:!1},_r={isInvalid:!1,validationDetails:ac,validationErrors:[]},G4=u.createContext({}),fs="__formValidationState"+Date.now();function q4(t){if(t[fs]){let{realtimeValidation:e,displayValidation:r,updateValidation:n,resetValidation:i,commitValidation:o}=t[fs];return{realtimeValidation:e,displayValidation:r,updateValidation:n,resetValidation:i,commitValidation:o}}return Y4(t)}function Y4(t){let{isInvalid:e,validationState:r,name:n,value:i,builtinValidation:o,validate:a,validationBehavior:l="aria"}=t;r&&(e||(e=r==="invalid"));let s=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:lc}:null,c=u.useMemo(()=>{if(!a||i==null)return null;let V=X4(a,i);return hs(V)},[a,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let d=u.useContext(G4),f=u.useMemo(()=>n?Array.isArray(n)?n.flatMap(V=>oa(d[V])):oa(d[n]):[],[d,n]),[p,g]=u.useState(d),[y,h]=u.useState(!1);d!==p&&(g(d),h(!1));let v=u.useMemo(()=>hs(y?[]:f),[y,f]),m=u.useRef(_r),[C,E]=u.useState(_r),F=u.useRef(_r),D=()=>{if(!w)return;S(!1);let V=c||o||m.current;oo(V,F.current)||(F.current=V,E(V))},[w,S]=u.useState(!1);return u.useEffect(D),{realtimeValidation:s||v||c||o||_r,displayValidation:l==="native"?s||v||C:s||v||c||o||C,updateValidation(V){l==="aria"&&!oo(C,V)?E(V):m.current=V},resetValidation(){let V=_r;oo(V,F.current)||(F.current=V,E(V)),l==="native"&&S(!1),h(!0)},commitValidation(){l==="native"&&S(!0),h(!0)}}}function oa(t){return t?Array.isArray(t)?t:[t]:[]}function X4(t,e){if(typeof t=="function"){let r=t(e);if(r&&typeof r!="boolean")return oa(r)}return[]}function hs(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:lc}:null}function oo(t,e){return t===e?!0:!!t&&!!e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((r,n)=>r===e.validationErrors[n])&&Object.entries(t.validationDetails).every(([r,n])=>e.validationDetails[r]===n)}function J4(t,e,r){let{validationBehavior:n,focus:i}=t;ne(()=>{if(n==="native"&&(r!=null&&r.current)&&!r.current.disabled){let c=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(c),r.current.hasAttribute("title")||(r.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(e3(r.current))}});let o=u.useRef(!1),a=be(()=>{o.current||e.resetValidation()}),l=be(c=>{var d;e.displayValidation.isInvalid||e.commitValidation();let f=r==null||(d=r.current)===null||d===void 0?void 0:d.form;if(!c.defaultPrevented&&r&&f&&t3(f)===r.current){var p;i?i():(p=r.current)===null||p===void 0||p.focus(),Z2("keyboard")}c.preventDefault()}),s=be(()=>{e.commitValidation()});u.useEffect(()=>{let c=r==null?void 0:r.current;if(!c)return;let d=c.form,f=d==null?void 0:d.reset;return d&&(d.reset=()=>{o.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,f==null||f.call(d),o.current=!1}),c.addEventListener("invalid",l),c.addEventListener("change",s),d==null||d.addEventListener("reset",a),()=>{c.removeEventListener("invalid",l),c.removeEventListener("change",s),d==null||d.removeEventListener("reset",a),d&&(d.reset=f)}},[r,l,s,a,n])}function Q4(t){let e=t.validity;return{badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing,valid:e.valid}}function e3(t){return{isInvalid:!t.validity.valid,validationDetails:Q4(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function t3(t){for(let e=0;e<t.elements.length;e++){let r=t.elements[e];if(!r.validity.valid)return r}return null}function sc(t){let{id:e,label:r,"aria-labelledby":n,"aria-label":i,labelElementType:o="label"}=t;e=Se(e);let a=Se(),l={};r?(n=n?`${a} ${n}`:a,l={id:a,htmlFor:o==="label"?e:void 0}):!n&&!i&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let s=yi({id:e,"aria-label":i,"aria-labelledby":n});return{labelProps:l,fieldProps:s}}function r3(t){let{description:e,errorMessage:r,isInvalid:n,validationState:i}=t,{labelProps:o,fieldProps:a}=sc(t),l=ht([!!e,!!r,n,i]),s=ht([!!e,!!r,n,i]);return a=ie(a,{"aria-describedby":[l,s,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:a,descriptionProps:{id:l},errorMessageProps:{id:s}}}const ps={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function cc(t={}){let{style:e,isFocusable:r}=t,[n,i]=u.useState(!1),{focusWithinProps:o}=Di({isDisabled:!r,onFocusWithinChange:l=>i(l)}),a=u.useMemo(()=>n?e:e?{...ps,...e}:ps,[n]);return{visuallyHiddenProps:{...o,style:a}}}function n3(t){let{children:e,elementType:r="div",isFocusable:n,style:i,...o}=t,{visuallyHiddenProps:a}=cc(t);return u.createElement(r,ie(o,a),e)}const Ye={top:"top",bottom:"top",left:"left",right:"left"},ei={top:"bottom",bottom:"top",left:"right",right:"left"},i3={top:"left",left:"top"},aa={top:"height",left:"width"},uc={width:"totalWidth",height:"totalHeight"},Cn={};let me=typeof document<"u"?window.visualViewport:null;function gs(t){let e=0,r=0,n=0,i=0,o=0,a=0,l={};var s;let c=((s=me==null?void 0:me.scale)!==null&&s!==void 0?s:1)>1;if(t.tagName==="BODY"){let y=document.documentElement;n=y.clientWidth,i=y.clientHeight;var d;e=(d=me==null?void 0:me.width)!==null&&d!==void 0?d:n;var f;r=(f=me==null?void 0:me.height)!==null&&f!==void 0?f:i,l.top=y.scrollTop||t.scrollTop,l.left=y.scrollLeft||t.scrollLeft,me&&(o=me.offsetTop,a=me.offsetLeft)}else({width:e,height:r,top:o,left:a}=ur(t,!1)),l.top=t.scrollTop,l.left=t.scrollLeft,n=e,i=r;if(Oa()&&(t.tagName==="BODY"||t.tagName==="HTML")&&c){l.top=0,l.left=0;var p;o=(p=me==null?void 0:me.pageTop)!==null&&p!==void 0?p:0;var g;a=(g=me==null?void 0:me.pageLeft)!==null&&g!==void 0?g:0}return{width:e,height:r,totalWidth:n,totalHeight:i,scroll:l,top:o,left:a}}function o3(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function vs(t,e,r,n,i,o,a){var l;let s=(l=i.scroll[t])!==null&&l!==void 0?l:0,c=n[aa[t]],d=n.scroll[Ye[t]]+o,f=c+n.scroll[Ye[t]]-o,p=e-s+a[t]-n[Ye[t]],g=e-s+r+a[t]-n[Ye[t]];return p<d?d-p:g>f?Math.max(f-g,d-p):0}function a3(t){let e=window.getComputedStyle(t);return{top:parseInt(e.marginTop,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0,right:parseInt(e.marginRight,10)||0}}function bs(t){if(Cn[t])return Cn[t];let[e,r]=t.split(" "),n=Ye[e]||"right",i=i3[n];Ye[r]||(r="center");let o=aa[n],a=aa[i];return Cn[t]={placement:e,crossPlacement:r,axis:n,crossAxis:i,size:o,crossSize:a},Cn[t]}function ao(t,e,r,n,i,o,a,l,s,c){let{placement:d,crossPlacement:f,axis:p,crossAxis:g,size:y,crossSize:h}=n,v={};var m;v[g]=(m=t[g])!==null&&m!==void 0?m:0;var C,E,F,D;f==="center"?v[g]+=(((C=t[h])!==null&&C!==void 0?C:0)-((E=r[h])!==null&&E!==void 0?E:0))/2:f!==g&&(v[g]+=((F=t[h])!==null&&F!==void 0?F:0)-((D=r[h])!==null&&D!==void 0?D:0)),v[g]+=o;const w=t[g]-r[h]+s+c,S=t[g]+t[h]-s-c;if(v[g]=Zo(v[g],w,S),d===p){const O=l?a[y]:e[uc[y]];v[ei[p]]=Math.floor(O-t[p]+i)}else v[p]=Math.floor(t[p]+t[y]+i);return v}function l3(t,e,r,n,i,o,a,l){const s=n?r.height:e[uc.height];var c;let d=t.top!=null?r.top+t.top:r.top+(s-((c=t.bottom)!==null&&c!==void 0?c:0)-a);var f,p,g,y,h,v;let m=l!=="top"?Math.max(0,e.height+e.top+((f=e.scroll.top)!==null&&f!==void 0?f:0)-d-(((p=i.top)!==null&&p!==void 0?p:0)+((g=i.bottom)!==null&&g!==void 0?g:0)+o)):Math.max(0,d+a-(e.top+((y=e.scroll.top)!==null&&y!==void 0?y:0))-(((h=i.top)!==null&&h!==void 0?h:0)+((v=i.bottom)!==null&&v!==void 0?v:0)+o));return Math.min(e.height-o*2,m)}function ms(t,e,r,n,i,o){let{placement:a,axis:l,size:s}=o;var c,d;if(a===l)return Math.max(0,r[l]-t[l]-((c=t.scroll[l])!==null&&c!==void 0?c:0)+e[l]-((d=n[l])!==null&&d!==void 0?d:0)-n[ei[l]]-i);var f;return Math.max(0,t[s]+t[l]+t.scroll[l]-e[l]-r[l]-r[s]-((f=n[l])!==null&&f!==void 0?f:0)-n[ei[l]]-i)}function s3(t,e,r,n,i,o,a,l,s,c,d,f,p,g,y,h){let v=bs(t),{size:m,crossAxis:C,crossSize:E,placement:F,crossPlacement:D}=v,w=ao(e,l,r,v,d,f,c,p,y,h),S=d,O=ms(l,c,e,i,o+d,v);if(a&&n[m]>O){let H=bs(`${ei[F]} ${D}`),Z=ao(e,l,r,H,d,f,c,p,y,h);ms(l,c,e,i,o+d,H)>O&&(v=H,w=Z,S=d)}let K="bottom";v.axis==="top"?v.placement==="top"?K="top":v.placement==="bottom"&&(K="bottom"):v.crossAxis==="top"&&(v.crossPlacement==="top"?K="bottom":v.crossPlacement==="bottom"&&(K="top"));let V=vs(C,w[C],r[E],l,s,o,c);w[C]+=V;let x=l3(w,l,c,p,i,o,r.height,K);g&&g<x&&(x=g),r.height=Math.min(r.height,x),w=ao(e,l,r,v,S,f,c,p,y,h),V=vs(C,w[C],r[E],l,s,o,c),w[C]+=V;let B={},U=e[C]-w[C]-i[Ye[C]],k=U+.5*e[E];const W=y/2+h;var _,I,z,L;const N=Ye[C]==="left"?((_=i.left)!==null&&_!==void 0?_:0)+((I=i.right)!==null&&I!==void 0?I:0):((z=i.top)!==null&&z!==void 0?z:0)+((L=i.bottom)!==null&&L!==void 0?L:0),R=r[E]-N-y/2-h,$=e[C]+y/2-(w[C]+i[Ye[C]]),P=e[C]+e[E]-y/2-(w[C]+i[Ye[C]]),T=Zo(k,$,P);B[C]=Zo(T,W,R),{placement:F,crossPlacement:D}=v,y?U=B[C]:D==="right"?U+=e[E]:D==="center"&&(U+=e[E]/2);let M=F==="left"||F==="top"?r[m]:0,j={x:F==="top"||F==="bottom"?U:M,y:F==="left"||F==="right"?U:M};return{position:w,maxHeight:x,arrowOffsetLeft:B.left,arrowOffsetTop:B.top,placement:F,triggerAnchorPoint:j}}function c3(t){let{placement:e,targetNode:r,overlayNode:n,scrollNode:i,padding:o,shouldFlip:a,boundaryElement:l,offset:s,crossOffset:c,maxHeight:d,arrowSize:f=0,arrowBoundaryOffset:p=0}=t,g=n instanceof HTMLElement?u3(n):document.documentElement,y=g===document.documentElement;const h=window.getComputedStyle(g).position;let v=!!h&&h!=="static",m=y?ur(r,!1):ys(r,g,!1);if(!y){let{marginTop:B,marginLeft:U}=window.getComputedStyle(r);m.top+=parseInt(B,10)||0,m.left+=parseInt(U,10)||0}let C=ur(n,!0),E=a3(n);var F,D;C.width+=((F=E.left)!==null&&F!==void 0?F:0)+((D=E.right)!==null&&D!==void 0?D:0);var w,S;C.height+=((w=E.top)!==null&&w!==void 0?w:0)+((S=E.bottom)!==null&&S!==void 0?S:0);let O=o3(i),K=gs(l),V=gs(g),x=l.tagName==="BODY"?ur(g,!1):ys(g,l,!1);return g.tagName==="HTML"&&l.tagName==="BODY"&&(V.scroll.top=0,V.scroll.left=0),s3(e,m,C,O,E,o,a,K,V,x,s,c,v,d,f,p)}function Ja(t,e){let{top:r,left:n,width:i,height:o}=t.getBoundingClientRect();return e&&t instanceof t.ownerDocument.defaultView.HTMLElement&&(i=t.offsetWidth,o=t.offsetHeight),{top:r,left:n,width:i,height:o}}function ur(t,e){let{top:r,left:n,width:i,height:o}=Ja(t,e),{scrollTop:a,scrollLeft:l,clientTop:s,clientLeft:c}=document.documentElement;return{top:r+a-s,left:n+l-c,width:i,height:o}}function ys(t,e,r){let n=window.getComputedStyle(t),i;if(n.position==="fixed")i=Ja(t,r);else{i=ur(t,r);let o=ur(e,r),a=window.getComputedStyle(e);o.top+=(parseInt(a.borderTopWidth,10)||0)-e.scrollTop,o.left+=(parseInt(a.borderLeftWidth,10)||0)-e.scrollLeft,i.top-=o.top,i.left-=o.left}return i.top-=parseInt(n.marginTop,10)||0,i.left-=parseInt(n.marginLeft,10)||0,i}function u3(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!Cs(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!Cs(e);)e=e.parentElement;return e||document.documentElement}function Cs(t){let e=window.getComputedStyle(t);return e.transform!=="none"||/transform|perspective/.test(e.willChange)||e.filter!=="none"||e.contain==="paint"||"backdropFilter"in e&&e.backdropFilter!=="none"||"WebkitBackdropFilter"in e&&e.WebkitBackdropFilter!=="none"}const dc=new WeakMap;function d3(t){let{triggerRef:e,isOpen:r,onClose:n}=t;u.useEffect(()=>{if(!r||n===null)return;let i=o=>{let a=o.target;if(!e.current||a instanceof Node&&!a.contains(e.current)||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement)return;let l=n||dc.get(e.current);l&&l()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[r,n,e])}let fe=typeof document<"u"?window.visualViewport:null;function f3(t){let{direction:e}=Bt(),{arrowSize:r,targetRef:n,overlayRef:i,arrowRef:o,scrollRef:a=i,placement:l="bottom",containerPadding:s=12,shouldFlip:c=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:f=0,crossOffset:p=0,shouldUpdatePosition:g=!0,isOpen:y=!0,onClose:h,maxHeight:v,arrowBoundaryOffset:m=0}=t,[C,E]=u.useState(null),F=[g,l,i.current,n.current,o==null?void 0:o.current,a.current,s,c,d,f,p,y,e,v,m,r],D=u.useRef(fe==null?void 0:fe.scale);u.useEffect(()=>{y&&(D.current=fe==null?void 0:fe.scale)},[y]);let w=u.useCallback(()=>{if(g===!1||!y||!i.current||!n.current||!d||(fe==null?void 0:fe.scale)!==D.current)return;let B=null;if(a.current&&a.current.contains(document.activeElement)){var U;let N=(U=document.activeElement)===null||U===void 0?void 0:U.getBoundingClientRect(),R=a.current.getBoundingClientRect();var k;if(B={type:"top",offset:((k=N==null?void 0:N.top)!==null&&k!==void 0?k:0)-R.top},B.offset>R.height/2){B.type="bottom";var W;B.offset=((W=N==null?void 0:N.bottom)!==null&&W!==void 0?W:0)-R.bottom}}let _=i.current;if(!v&&i.current){var I;_.style.top="0px",_.style.bottom="";var z;_.style.maxHeight=((z=(I=window.visualViewport)===null||I===void 0?void 0:I.height)!==null&&z!==void 0?z:window.innerHeight)+"px"}let L=c3({placement:p3(l,e),overlayNode:i.current,targetNode:n.current,scrollNode:a.current||i.current,padding:s,shouldFlip:c,boundaryElement:d,offset:f,crossOffset:p,maxHeight:v,arrowSize:r??(o!=null&&o.current?Ja(o.current,!0).width:0),arrowBoundaryOffset:m});if(L.position){if(_.style.top="",_.style.bottom="",_.style.left="",_.style.right="",Object.keys(L.position).forEach(N=>_.style[N]=L.position[N]+"px"),_.style.maxHeight=L.maxHeight!=null?L.maxHeight+"px":"",B&&document.activeElement&&a.current){let N=document.activeElement.getBoundingClientRect(),R=a.current.getBoundingClientRect(),$=N[B.type]-R[B.type];a.current.scrollTop+=$-B.offset}E(L)}},F);ne(w,F),h3(w),Uo({ref:i,onResize:w}),Uo({ref:n,onResize:w});let S=u.useRef(!1);ne(()=>{let B,U=()=>{S.current=!0,clearTimeout(B),B=setTimeout(()=>{S.current=!1},500),w()},k=()=>{S.current&&U()};return fe==null||fe.addEventListener("resize",U),fe==null||fe.addEventListener("scroll",k),()=>{fe==null||fe.removeEventListener("resize",U),fe==null||fe.removeEventListener("scroll",k)}},[w]);let O=u.useCallback(()=>{S.current||h==null||h()},[h,S]);d3({triggerRef:n,isOpen:y,onClose:h&&O});var K,V,x;return{overlayProps:{style:{position:C?"absolute":"fixed",top:C?void 0:0,left:C?void 0:0,zIndex:1e5,...C==null?void 0:C.position,maxHeight:(K=C==null?void 0:C.maxHeight)!==null&&K!==void 0?K:"100vh"}},placement:(V=C==null?void 0:C.placement)!==null&&V!==void 0?V:null,triggerAnchorPoint:(x=C==null?void 0:C.triggerAnchorPoint)!==null&&x!==void 0?x:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:C==null?void 0:C.arrowOffsetLeft,top:C==null?void 0:C.arrowOffsetTop}},updatePosition:w}}function h3(t){ne(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function p3(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}const We=[];function g3(t,e){let{onClose:r,shouldCloseOnBlur:n,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:l}=t;u.useEffect(()=>{if(i&&!We.includes(e))return We.push(e),()=>{let y=We.indexOf(e);y>=0&&We.splice(y,1)}},[i,e]);let s=()=>{We[We.length-1]===e&&r&&r()},c=y=>{(!l||l(y.target))&&We[We.length-1]===e&&(y.stopPropagation(),y.preventDefault())},d=y=>{(!l||l(y.target))&&(We[We.length-1]===e&&(y.stopPropagation(),y.preventDefault()),s())},f=y=>{y.key==="Escape"&&!a&&!y.nativeEvent.isComposing&&(y.stopPropagation(),y.preventDefault(),s())};u4({ref:e,onInteractOutside:o&&i?d:void 0,onInteractOutsideStart:c});let{focusWithinProps:p}=Di({isDisabled:!n,onBlurWithin:y=>{!y.relatedTarget||j4(y.relatedTarget)||(!l||l(y.relatedTarget))&&(r==null||r())}}),g=y=>{y.target===y.currentTarget&&y.preventDefault()};return{overlayProps:{onKeyDown:f,...p},underlayProps:{onPointerDown:g}}}function v3(t,e,r){let{type:n}=t,{isOpen:i}=e;u.useEffect(()=>{r&&r.current&&dc.set(r.current,e.close)});let o;n==="menu"?o=!0:n==="listbox"&&(o="listbox");let a=Se();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?a:void 0,onPress:e.toggle},overlayProps:{id:a}}}const lo=typeof document<"u"&&window.visualViewport,b3=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let En=0,so;function m3(t={}){let{isDisabled:e}=t;ne(()=>{if(!e)return En++,En===1&&(vi()?so=C3():so=y3()),()=>{En--,En===0&&so()}},[e])}function y3(){let t=window.innerWidth-document.documentElement.clientWidth;return gt(t>0&&("scrollbarGutter"in document.documentElement.style?Dt(document.documentElement,"scrollbarGutter","stable"):Dt(document.documentElement,"paddingRight",`${t}px`)),Dt(document.documentElement,"overflow","hidden"))}function C3(){let t,e,r=c=>{t=k2(c.target,!0),!(t===document.documentElement&&t===document.body)&&t instanceof HTMLElement&&window.getComputedStyle(t).overscrollBehavior==="auto"&&(e=Dt(t,"overscrollBehavior","contain"))},n=c=>{if(!t||t===document.documentElement||t===document.body){c.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&c.preventDefault()},i=()=>{e&&e()},o=c=>{let d=c.target;E3(d)&&(l(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",lo&&(lo.height<window.innerHeight?requestAnimationFrame(()=>{Es(d)}):lo.addEventListener("resize",()=>Es(d),{once:!0}))}))},a=null,l=()=>{if(a)return;let c=()=>{window.scrollTo(0,0)},d=window.pageXOffset,f=window.pageYOffset;a=gt(Pr(window,"scroll",c),Dt(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Dt(document.documentElement,"overflow","hidden"),Dt(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(d,f)}),window.scrollTo(0,0)},s=gt(Pr(document,"touchstart",r,{passive:!1,capture:!0}),Pr(document,"touchmove",n,{passive:!1,capture:!0}),Pr(document,"touchend",i,{passive:!1,capture:!0}),Pr(document,"focus",o,!0));return()=>{e==null||e(),a==null||a(),s()}}function Dt(t,e,r){let n=t.style[e];return t.style[e]=r,()=>{t.style[e]=n}}function Pr(t,e,r,n){return t.addEventListener(e,r,n),()=>{t.removeEventListener(e,r,n)}}function Es(t){let e=document.scrollingElement||document.documentElement,r=t;for(;r&&r!==e;){let n=k2(r);if(n!==document.documentElement&&n!==document.body&&n!==r){let i=n.getBoundingClientRect().top,o=r.getBoundingClientRect().top;o>i+r.clientHeight&&(n.scrollTop+=o-i)}r=n.parentElement}}function E3(t){return t instanceof HTMLInputElement&&!b3.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}const w3=u.createContext({});function x3(){var t;return(t=u.useContext(w3))!==null&&t!==void 0?t:{}}var fc={};fc={dismiss:"تجاهل"};var hc={};hc={dismiss:"Отхвърляне"};var pc={};pc={dismiss:"Odstranit"};var gc={};gc={dismiss:"Luk"};var vc={};vc={dismiss:"Schließen"};var bc={};bc={dismiss:"Απόρριψη"};var mc={};mc={dismiss:"Dismiss"};var yc={};yc={dismiss:"Descartar"};var Cc={};Cc={dismiss:"Lõpeta"};var Ec={};Ec={dismiss:"Hylkää"};var wc={};wc={dismiss:"Rejeter"};var xc={};xc={dismiss:"התעלם"};var Dc={};Dc={dismiss:"Odbaci"};var Sc={};Sc={dismiss:"Elutasítás"};var Fc={};Fc={dismiss:"Ignora"};var $c={};$c={dismiss:"閉じる"};var _c={};_c={dismiss:"무시"};var Pc={};Pc={dismiss:"Atmesti"};var Ac={};Ac={dismiss:"Nerādīt"};var Tc={};Tc={dismiss:"Lukk"};var kc={};kc={dismiss:"Negeren"};var Ic={};Ic={dismiss:"Zignoruj"};var Oc={};Oc={dismiss:"Descartar"};var Mc={};Mc={dismiss:"Dispensar"};var Nc={};Nc={dismiss:"Revocare"};var Rc={};Rc={dismiss:"Пропустить"};var Bc={};Bc={dismiss:"Zrušiť"};var Lc={};Lc={dismiss:"Opusti"};var jc={};jc={dismiss:"Odbaci"};var Kc={};Kc={dismiss:"Avvisa"};var Vc={};Vc={dismiss:"Kapat"};var Hc={};Hc={dismiss:"Скасувати"};var zc={};zc={dismiss:"取消"};var Uc={};Uc={dismiss:"關閉"};var Wc={};Wc={"ar-AE":fc,"bg-BG":hc,"cs-CZ":pc,"da-DK":gc,"de-DE":vc,"el-GR":bc,"en-US":mc,"es-ES":yc,"et-EE":Cc,"fi-FI":Ec,"fr-FR":wc,"he-IL":xc,"hr-HR":Dc,"hu-HU":Sc,"it-IT":Fc,"ja-JP":$c,"ko-KR":_c,"lt-LT":Pc,"lv-LV":Ac,"nb-NO":Tc,"nl-NL":kc,"pl-PL":Ic,"pt-BR":Oc,"pt-PT":Mc,"ro-RO":Nc,"ru-RU":Rc,"sk-SK":Bc,"sl-SI":Lc,"sr-SP":jc,"sv-SE":Kc,"tr-TR":Vc,"uk-UA":Hc,"zh-CN":zc,"zh-TW":Uc};function D3(t){return t&&t.__esModule?t.default:t}function ws(t){let{onDismiss:e,...r}=t,n=ec(D3(Wc),"@react-aria/overlays"),i=yi(r,n.format("dismiss")),o=()=>{e&&e()};return u.createElement(n3,null,u.createElement("button",{...i,tabIndex:-1,onClick:o,style:{width:1,height:1}}))}const S3=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let Ar=new WeakMap,_e=[];function F3(t,e){let r=Te(t==null?void 0:t[0]),n=e instanceof r.Element?{root:e}:e;var i;let o=(i=n==null?void 0:n.root)!==null&&i!==void 0?i:document.body,a=(n==null?void 0:n.shouldUseInert)&&S3,l=new Set(t),s=new Set,c=h=>a&&h instanceof r.HTMLElement?h.inert:h.getAttribute("aria-hidden")==="true",d=(h,v)=>{a&&h instanceof r.HTMLElement?h.inert=v:v?h.setAttribute("aria-hidden","true"):(h.removeAttribute("aria-hidden"),h instanceof r.HTMLElement&&(h.inert=!1))},f=h=>{for(let E of h.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(E);let v=E=>{if(s.has(E)||l.has(E)||E.parentElement&&s.has(E.parentElement)&&E.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let F of l)if(E.contains(F))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},m=document.createTreeWalker(h,NodeFilter.SHOW_ELEMENT,{acceptNode:v}),C=v(h);if(C===NodeFilter.FILTER_ACCEPT&&p(h),C!==NodeFilter.FILTER_REJECT){let E=m.nextNode();for(;E!=null;)p(E),E=m.nextNode()}},p=h=>{var v;let m=(v=Ar.get(h))!==null&&v!==void 0?v:0;c(h)&&m===0||(m===0&&d(h,!0),s.add(h),Ar.set(h,m+1))};_e.length&&_e[_e.length-1].disconnect(),f(o);let g=new MutationObserver(h=>{for(let v of h)if(v.type==="childList"&&![...l,...s].some(m=>m.contains(v.target)))for(let m of v.addedNodes)(m instanceof HTMLElement||m instanceof SVGElement)&&(m.dataset.liveAnnouncer==="true"||m.dataset.reactAriaTopLayer==="true")?l.add(m):m instanceof Element&&f(m)});g.observe(o,{childList:!0,subtree:!0});let y={visibleNodes:l,hiddenNodes:s,observe(){g.observe(o,{childList:!0,subtree:!0})},disconnect(){g.disconnect()}};return _e.push(y),()=>{g.disconnect();for(let h of s){let v=Ar.get(h);v!=null&&(v===1?(d(h,!1),Ar.delete(h)):Ar.set(h,v-1))}y===_e[_e.length-1]?(_e.pop(),_e.length&&_e[_e.length-1].observe()):_e.splice(_e.indexOf(y),1)}}function $3(t){let e=_e[_e.length-1];if(e&&!e.visibleNodes.has(t))return e.visibleNodes.add(t),()=>{e.visibleNodes.delete(t)}}function _3(t,e){let{triggerRef:r,popoverRef:n,groupRef:i,isNonModal:o,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:l,...s}=t,c=s.trigger==="SubmenuTrigger",{overlayProps:d,underlayProps:f}=g3({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!o||c,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:l},i??n),{overlayProps:p,arrowProps:g,placement:y,triggerAnchorPoint:h}=f3({...s,targetRef:r,overlayRef:n,isOpen:e.isOpen,onClose:o&&!c?e.close:null});return m3({isDisabled:o||!e.isOpen}),u.useEffect(()=>{if(e.isOpen&&n.current){var v,m;return o?$3((v=i==null?void 0:i.current)!==null&&v!==void 0?v:n.current):F3([(m=i==null?void 0:i.current)!==null&&m!==void 0?m:n.current],{shouldUseInert:!0})}},[o,e.isOpen,n,i]),{popoverProps:ie(d,p),arrowProps:g,underlayProps:f,placement:y,triggerAnchorPoint:h}}const Zc=u.createContext(null);function xs(t){let e=sn(),{portalContainer:r=e?null:document.body,isExiting:n}=t,[i,o]=u.useState(!1),a=u.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:l}=x3();if(!t.portalContainer&&l&&(r=l()),!r)return null;let s=t.children;return t.disableFocusManagement||(s=u.createElement(Ya,{restoreFocus:!0,contain:(t.shouldContainFocus||i)&&!n},s)),s=u.createElement(Zc.Provider,{value:a},u.createElement(s4,null,s)),Nt.createPortal(s,r)}function P3(){let t=u.useContext(Zc),e=t==null?void 0:t.setContain;ne(()=>{e==null||e(!0)},[e])}const Qa=new WeakMap;function A3(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function T3(t,e){let r=Qa.get(t);if(!r)throw new Error("Unknown list");return`${r.id}-option-${A3(e)}`}function la(t){return g5()?t.altKey:t.ctrlKey}function Mn(t,e){var r,n;let i=`[data-key="${CSS.escape(String(e))}"]`,o=(r=t.current)===null||r===void 0?void 0:r.dataset.collection;return o&&(i=`[data-collection="${CSS.escape(o)}"]${i}`),(n=t.current)===null||n===void 0?void 0:n.querySelector(i)}const Gc=new WeakMap;function k3(t){let e=Se();return Gc.set(t,e),e}function I3(t){return Gc.get(t)}const O3=1e3;function qc(t){let{keyboardDelegate:e,selectionManager:r,onTypeSelect:n}=t,i=u.useRef({search:"",timeout:void 0}).current,o=a=>{let l=M3(a.key);if(!(!l||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target)||i.search.length===0&&l===" ")){if(l===" "&&i.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),i.search+=l,e.getKeyForSearch!=null){let s=e.getKeyForSearch(i.search,r.focusedKey);s==null&&(s=e.getKeyForSearch(i.search)),s!=null&&(r.setFocusedKey(s),n&&n(s))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},O3)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?o:void 0}}}function M3(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function Yc(t){let{selectionManager:e,keyboardDelegate:r,ref:n,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:a=!1,disallowSelectAll:l=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:c=e.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:p=!1,isVirtualized:g,scrollRef:y=n,linkBehavior:h="action"}=t,{direction:v}=Bt(),m=bi(),C=I=>{var z;if(I.altKey&&I.key==="Tab"&&I.preventDefault(),!(!((z=n.current)===null||z===void 0)&&z.contains(I.target)))return;const L=(G,te)=>{if(G!=null){if(e.isLink(G)&&h==="selection"&&c&&!la(I)){Nt.flushSync(()=>{e.setFocusedKey(G,te)});let de=Mn(n,G),Be=e.getItemProps(G);de&&m.open(de,I,Be.href,Be.routerOptions);return}if(e.setFocusedKey(G,te),e.isLink(G)&&h==="override")return;I.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(G):c&&!la(I)&&e.replaceSelection(G)}};switch(I.key){case"ArrowDown":if(r.getKeyBelow){var N,R,$;let G=e.focusedKey!=null?(N=r.getKeyBelow)===null||N===void 0?void 0:N.call(r,e.focusedKey):(R=r.getFirstKey)===null||R===void 0?void 0:R.call(r);G==null&&o&&(G=($=r.getFirstKey)===null||$===void 0?void 0:$.call(r,e.focusedKey)),G!=null&&(I.preventDefault(),L(G))}break;case"ArrowUp":if(r.getKeyAbove){var P,T,M;let G=e.focusedKey!=null?(P=r.getKeyAbove)===null||P===void 0?void 0:P.call(r,e.focusedKey):(T=r.getLastKey)===null||T===void 0?void 0:T.call(r);G==null&&o&&(G=(M=r.getLastKey)===null||M===void 0?void 0:M.call(r,e.focusedKey)),G!=null&&(I.preventDefault(),L(G))}break;case"ArrowLeft":if(r.getKeyLeftOf){var j,H,Z;let G=e.focusedKey!=null?(j=r.getKeyLeftOf)===null||j===void 0?void 0:j.call(r,e.focusedKey):null;G==null&&o&&(G=v==="rtl"?(H=r.getFirstKey)===null||H===void 0?void 0:H.call(r,e.focusedKey):(Z=r.getLastKey)===null||Z===void 0?void 0:Z.call(r,e.focusedKey)),G!=null&&(I.preventDefault(),L(G,v==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var q,Y,le;let G=e.focusedKey!=null?(q=r.getKeyRightOf)===null||q===void 0?void 0:q.call(r,e.focusedKey):null;G==null&&o&&(G=v==="rtl"?(Y=r.getLastKey)===null||Y===void 0?void 0:Y.call(r,e.focusedKey):(le=r.getFirstKey)===null||le===void 0?void 0:le.call(r,e.focusedKey)),G!=null&&(I.preventDefault(),L(G,v==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(e.focusedKey===null&&I.shiftKey)return;I.preventDefault();let G=r.getFirstKey(e.focusedKey,rr(I));e.setFocusedKey(G),G!=null&&(rr(I)&&I.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(G):c&&e.replaceSelection(G))}break;case"End":if(r.getLastKey){if(e.focusedKey===null&&I.shiftKey)return;I.preventDefault();let G=r.getLastKey(e.focusedKey,rr(I));e.setFocusedKey(G),G!=null&&(rr(I)&&I.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(G):c&&e.replaceSelection(G))}break;case"PageDown":if(r.getKeyPageBelow&&e.focusedKey!=null){let G=r.getKeyPageBelow(e.focusedKey);G!=null&&(I.preventDefault(),L(G))}break;case"PageUp":if(r.getKeyPageAbove&&e.focusedKey!=null){let G=r.getKeyPageAbove(e.focusedKey);G!=null&&(I.preventDefault(),L(G))}break;case"a":rr(I)&&e.selectionMode==="multiple"&&l!==!0&&(I.preventDefault(),e.selectAll());break;case"Escape":s==="clearSelection"&&!a&&e.selectedKeys.size!==0&&(I.stopPropagation(),I.preventDefault(),e.clearSelection());break;case"Tab":if(!p){if(I.shiftKey)n.current.focus();else{let G=qe(n.current,{tabbable:!0}),te,de;do de=G.lastChild(),de&&(te=de);while(de);te&&!te.contains(document.activeElement)&&He(te)}break}}},E=u.useRef({top:0,left:0});pn(y,"scroll",g?void 0:()=>{var I,z,L,N;E.current={top:(L=(I=y.current)===null||I===void 0?void 0:I.scrollTop)!==null&&L!==void 0?L:0,left:(N=(z=y.current)===null||z===void 0?void 0:z.scrollLeft)!==null&&N!==void 0?N:0}});let F=I=>{if(e.isFocused){I.currentTarget.contains(I.target)||e.setFocused(!1);return}if(I.currentTarget.contains(I.target)){if(e.setFocused(!0),e.focusedKey==null){var z,L;let $=T=>{T!=null&&(e.setFocusedKey(T),c&&!e.isSelected(T)&&e.replaceSelection(T))},P=I.relatedTarget;var N,R;P&&I.currentTarget.compareDocumentPosition(P)&Node.DOCUMENT_POSITION_FOLLOWING?$((N=e.lastSelectedKey)!==null&&N!==void 0?N:(z=r.getLastKey)===null||z===void 0?void 0:z.call(r)):$((R=e.firstSelectedKey)!==null&&R!==void 0?R:(L=r.getFirstKey)===null||L===void 0?void 0:L.call(r))}else!g&&y.current&&(y.current.scrollTop=E.current.top,y.current.scrollLeft=E.current.left);if(e.focusedKey!=null&&y.current){let $=Mn(n,e.focusedKey);$ instanceof HTMLElement&&(!$.contains(document.activeElement)&&!f&&He($),Xn()==="keyboard"&&Kl($,{containingElement:n.current}))}}},D=I=>{I.currentTarget.contains(I.relatedTarget)||e.setFocused(!1)},w=u.useRef(!1);pn(n,T5,f?I=>{let{detail:z}=I;I.stopPropagation(),e.setFocused(!0),(z==null?void 0:z.focusStrategy)==="first"&&(w.current=!0)}:void 0);let S=be(()=>{var I,z;let L=(z=(I=r.getFirstKey)===null||I===void 0?void 0:I.call(r))!==null&&z!==void 0?z:null;if(L==null){let N=xe();nc(n.current),ic(N,null),e.collection.size>0&&(w.current=!1)}else e.setFocusedKey(L),w.current=!1});Ll(()=>{w.current&&S()},[e.collection,S]);let O=be(()=>{e.collection.size>0&&(w.current=!1)});Ll(()=>{O()},[e.focusedKey,O]),pn(n,A5,f?I=>{var z;I.stopPropagation(),e.setFocused(!1),!((z=I.detail)===null||z===void 0)&&z.clearFocusKey&&e.setFocusedKey(null)}:void 0);const K=u.useRef(i),V=u.useRef(!1);u.useEffect(()=>{if(K.current){var I,z;let R=null;var L;i==="first"&&(R=(L=(I=r.getFirstKey)===null||I===void 0?void 0:I.call(r))!==null&&L!==void 0?L:null);var N;i==="last"&&(R=(N=(z=r.getLastKey)===null||z===void 0?void 0:z.call(r))!==null&&N!==void 0?N:null);let $=e.selectedKeys;if($.size){for(let P of $)if(e.canSelectItem(P)){R=P;break}}e.setFocused(!0),e.setFocusedKey(R),R==null&&!f&&n.current&&bt(n.current),e.collection.size>0&&(K.current=!1,V.current=!0)}});let x=u.useRef(e.focusedKey),B=u.useRef(null);u.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==x.current||V.current)&&y.current&&n.current){let I=Xn(),z=Mn(n,e.focusedKey);if(!(z instanceof HTMLElement))return;(I==="keyboard"||V.current)&&(B.current&&cancelAnimationFrame(B.current),B.current=requestAnimationFrame(()=>{y.current&&(I2(y.current,z),I!=="virtual"&&Kl(z,{containingElement:n.current}))}))}!f&&e.isFocused&&e.focusedKey==null&&x.current!=null&&n.current&&bt(n.current),x.current=e.focusedKey,V.current=!1}),u.useEffect(()=>()=>{B.current&&cancelAnimationFrame(B.current)},[]),pn(n,"react-aria-focus-scope-restore",I=>{I.preventDefault(),e.setFocused(!0)});let U={onKeyDown:C,onFocus:F,onBlur:D,onMouseDown(I){y.current===I.target&&I.preventDefault()}},{typeSelectProps:k}=qc({keyboardDelegate:r,selectionManager:e});d||(U=ie(k,U));let W;f||(W=e.focusedKey==null?0:-1);let _=k3(e.collection);return{collectionProps:ie(U,{tabIndex:W,"data-collection":_})}}function el(t){let{id:e,selectionManager:r,key:n,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:a,focus:l,isDisabled:s,onAction:c,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=t,p=bi();e=Se(e);let g=L=>{if(L.pointerType==="keyboard"&&la(L))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(f==="selection"&&i.current){let N=r.getItemProps(n);p.open(i.current,L,N.href,N.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(f==="override"||f==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):L&&L.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||L&&(rr(L)||L.pointerType==="touch"||L.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};u.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(a?nc(i.current):l?l():document.activeElement!==i.current&&i.current&&bt(i.current))},[i,n,r.focusedKey,r.childFocusStrategy,r.isFocused,a]),s=s||r.isDisabled(n);let y={};!a&&!s?y={tabIndex:n===r.focusedKey?0:-1,onFocus(L){L.target===i.current&&r.setFocusedKey(n)}}:s&&(y.onMouseDown=L=>{L.preventDefault()});let h=r.isLink(n)&&f==="override",v=r.isLink(n)&&f!=="selection"&&f!=="none",m=!s&&r.canSelectItem(n)&&!h,C=(c||v)&&!s,E=C&&(r.selectionBehavior==="replace"?!m:!m||r.isEmpty),F=C&&m&&r.selectionBehavior==="replace",D=E||F,w=u.useRef(null),S=D&&m,O=u.useRef(!1),K=u.useRef(!1),V=r.getItemProps(n),x=L=>{c&&c(),v&&i.current&&p.open(i.current,L,V.href,V.routerOptions)},B={ref:i};if(o?(B.onPressStart=L=>{w.current=L.pointerType,O.current=S,L.pointerType==="keyboard"&&(!D||Ss())&&g(L)},d?(B.onPressUp=E?void 0:L=>{L.pointerType==="mouse"&&m&&g(L)},B.onPress=E?x:L=>{L.pointerType!=="keyboard"&&L.pointerType!=="mouse"&&m&&g(L)}):B.onPress=L=>{if(E||F&&L.pointerType!=="mouse"){if(L.pointerType==="keyboard"&&!Ds())return;x(L)}else L.pointerType!=="keyboard"&&m&&g(L)}):(B.onPressStart=L=>{w.current=L.pointerType,O.current=S,K.current=E,m&&(L.pointerType==="mouse"&&!E||L.pointerType==="keyboard"&&(!C||Ss()))&&g(L)},B.onPress=L=>{(L.pointerType==="touch"||L.pointerType==="pen"||L.pointerType==="virtual"||L.pointerType==="keyboard"&&D&&Ds()||L.pointerType==="mouse"&&K.current)&&(D?x(L):m&&g(L))}),y["data-collection"]=I3(r.collection),y["data-key"]=n,B.preventFocusOnPress=a,a&&(B=ie(B,{onPressStart(L){L.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(L){L.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),V)for(let L of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])V[L]&&(B[L]=gt(B[L],V[L]));let{pressProps:U,isPressed:k}=wi(B),W=F?L=>{w.current==="mouse"&&(L.stopPropagation(),L.preventDefault(),x(L))}:void 0,{longPressProps:_}=Y2({isDisabled:!S,onLongPress(L){L.pointerType==="touch"&&(g(L),r.setSelectionBehavior("toggle"))}}),I=L=>{w.current==="touch"&&O.current&&L.preventDefault()},z=f!=="none"&&r.isLink(n)?L=>{Pt.isOpening||L.preventDefault()}:void 0;return{itemProps:ie(y,m||E||a&&!s?U:{},S?_:{},{onDoubleClick:W,onDragStartCapture:I,onClick:z,id:e},a?{onMouseDown:L=>L.preventDefault()}:void 0),isPressed:k,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:s,allowsSelection:m,hasAction:D}}function Ds(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function Ss(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}class Fs{getItemRect(e){let r=this.ref.current;if(!r)return null;let n=e!=null?Mn(this.ref,e):null;if(!n)return null;let i=r.getBoundingClientRect(),o=n.getBoundingClientRect();return{x:o.left-i.left+r.scrollLeft,y:o.top-i.top+r.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;var r,n;return{width:(r=e==null?void 0:e.scrollWidth)!==null&&r!==void 0?r:0,height:(n=e==null?void 0:e.scrollHeight)!==null&&n!==void 0?n:0}}getVisibleRect(){let e=this.ref.current;var r,n,i,o;return{x:(r=e==null?void 0:e.scrollLeft)!==null&&r!==void 0?r:0,y:(n=e==null?void 0:e.scrollTop)!==null&&n!==void 0?n:0,width:(i=e==null?void 0:e.offsetWidth)!==null&&i!==void 0?i:0,height:(o=e==null?void 0:e.offsetHeight)!==null&&o!==void 0?o:0}}constructor(e){this.ref=e}}class tl{isDisabled(e){var r;return this.disabledBehavior==="all"&&(((r=e.props)===null||r===void 0?void 0:r.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,r){let n=e;for(;n!=null;){let i=this.collection.getItem(n);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return n;n=r(n)}return null}getNextKey(e){let r=e;return r=this.collection.getKeyAfter(r),this.findNextNonDisabled(r,n=>this.collection.getKeyAfter(n))}getPreviousKey(e){let r=e;return r=this.collection.getKeyBefore(r),this.findNextNonDisabled(r,n=>this.collection.getKeyBefore(n))}findKey(e,r,n){let i=e,o=this.layoutDelegate.getItemRect(i);if(!o||i==null)return null;let a=o;do{if(i=r(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&n(a,o)&&i!=null);return i}isSameRow(e,r){return e.y===r.y||e.x!==r.x}isSameColumn(e,r){return e.x===r.x||e.y!==r.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,r=>this.getNextKey(r),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,r=>this.getPreviousKey(r),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,r){return r?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let r=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[r]?(e=this.layoutDelegate[r](e),this.findNextNonDisabled(e,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let r=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[r]?(e=this.layoutDelegate[r](e),this.findNextNonDisabled(e,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,r=>this.collection.getKeyAfter(r))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,r=>this.collection.getKeyBefore(r))}getKeyPageAbove(e){let r=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(r&&!Zr(r))return this.getFirstKey();let i=e;if(this.orientation==="horizontal"){let o=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>o&&i!=null;)i=this.getKeyAbove(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>o&&i!=null;)i=this.getKeyAbove(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(e){let r=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(r&&!Zr(r))return this.getLastKey();let i=e;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<o&&i!=null;)i=this.getKeyBelow(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<o&&i!=null;)i=this.getKeyBelow(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(e,r){if(!this.collator)return null;let n=this.collection,i=r||this.getFirstKey();for(;i!=null;){let o=n.getItem(i);if(!o)return null;let a=o.textValue.slice(0,e.length);if(o.textValue&&this.collator.compare(a,e)===0)return i;i=this.getNextKey(i)}return null}constructor(...e){if(e.length===1){let r=e[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.disabledBehavior=r.disabledBehavior||"all",this.orientation=r.orientation||"vertical",this.direction=r.direction,this.layout=r.layout||"stack",this.layoutDelegate=r.layoutDelegate||new Fs(r.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new Fs(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Xc(t){let{selectionManager:e,collection:r,disabledKeys:n,ref:i,keyboardDelegate:o,layoutDelegate:a}=t,l=qa({usage:"search",sensitivity:"base"}),s=e.disabledBehavior,c=u.useMemo(()=>o||new tl({collection:r,disabledKeys:n,disabledBehavior:s,ref:i,collator:l,layoutDelegate:a}),[o,a,r,n,i,l,s]),{collectionProps:d}=Yc({...t,ref:i,selectionManager:e,keyboardDelegate:c});return{listProps:d}}function N3(t,e,r){let n=he(t,{labelable:!0}),i=t.selectionBehavior||"toggle",o=t.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&o==="action"&&(o="override");let{listProps:a}=Xc({...t,ref:r,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:o}),{focusWithinProps:l}=Di({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),s=Se(t.id);Qa.set(e,{id:s,shouldUseVirtualFocus:t.shouldUseVirtualFocus,shouldSelectOnPressUp:t.shouldSelectOnPressUp,shouldFocusOnHover:t.shouldFocusOnHover,isVirtualized:t.isVirtualized,onAction:t.onAction,linkBehavior:o});let{labelProps:c,fieldProps:d}=sc({...t,id:s,labelElementType:"span"});return{labelProps:c,listBoxProps:ie(n,l,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...ie(d,a)})}}class R3{build(e,r){return this.context=r,$s(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:r,items:n}=e;if(u.isValidElement(r)&&r.type===u.Fragment)yield*this.iterateCollection({children:r.props.children,items:n});else if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");let i=0;for(let o of n)yield*this.getFullNode({value:o,index:i},{renderer:r}),i++}else{let i=[];u.Children.forEach(r,a=>{a&&i.push(a)});let o=0;for(let a of i){let l=this.getFullNode({element:a,index:o},{});for(let s of l)o++,yield s}}}getKey(e,r,n,i){if(e.key!=null)return e.key;if(r.type==="cell"&&r.key!=null)return`${i}${r.key}`;let o=r.value;if(o!=null){var a;let l=(a=o.key)!==null&&a!==void 0?a:o.id;if(l==null)throw new Error("No key found for item");return l}return i?`${i}.${r.index}`:`$.${r.index}`}getChildState(e,r){return{renderer:r.renderer||e.renderer}}*getFullNode(e,r,n,i){if(u.isValidElement(e.element)&&e.element.type===u.Fragment){let v=[];u.Children.forEach(e.element.props.children,C=>{v.push(C)});var o;let m=(o=e.index)!==null&&o!==void 0?o:0;for(const C of v)yield*this.getFullNode({element:C,index:m++},r,n,i);return}let a=e.element;if(!a&&e.value&&r&&r.renderer){let v=this.cache.get(e.value);if(v&&(!v.shouldInvalidate||!v.shouldInvalidate(this.context))){v.index=e.index,v.parentKey=i?i.key:null,yield v;return}a=r.renderer(e.value)}if(u.isValidElement(a)){let v=a.type;if(typeof v!="function"&&typeof v.getCollectionNode!="function"){let F=a.type;throw new Error(`Unknown element <${F}> in collection.`)}let m=v.getCollectionNode(a.props,this.context);var l;let C=(l=e.index)!==null&&l!==void 0?l:0,E=m.next();for(;!E.done&&E.value;){let F=E.value;e.index=C;var s;let D=(s=F.key)!==null&&s!==void 0?s:null;D==null&&(D=F.element?null:this.getKey(a,e,r,n));let S=[...this.getFullNode({...F,key:D,index:C,wrapper:B3(e.wrapper,F.wrapper)},this.getChildState(r,F),n?`${n}${a.key}`:a.key,i)];for(let O of S){var c,d;O.value=(d=(c=F.value)!==null&&c!==void 0?c:e.value)!==null&&d!==void 0?d:null,O.value&&this.cache.set(O.value,O);var f;if(e.type&&O.type!==e.type)throw new Error(`Unsupported type <${co(O.type)}> in <${co((f=i==null?void 0:i.type)!==null&&f!==void 0?f:"unknown parent type")}>. Only <${co(e.type)}> is supported.`);C++,yield O}E=m.next(S)}return}if(e.key==null||e.type==null)return;let p=this;var g,y;let h={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:(g=e.value)!==null&&g!==void 0?g:null,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:(y=e.textValue)!==null&&y!==void 0?y:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:$s(function*(){if(!e.hasChildNodes||!e.childNodes)return;let v=0;for(let m of e.childNodes()){m.key!=null&&(m.key=`${h.key}${m.key}`);let C=p.getFullNode({...m,index:v},p.getChildState(r,m),h.key,h);for(let E of C)v++,yield E}})};yield h}constructor(){this.cache=new WeakMap}}function $s(t){let e=[],r=null;return{*[Symbol.iterator](){for(let n of e)yield n;r||(r=t());for(let n of r)e.push(n),yield n}}}function B3(t,e){if(t&&e)return r=>t(e(r));if(t)return t;if(e)return e}function co(t){return t[0].toUpperCase()+t.slice(1)}function Jc(t,e,r){let n=u.useMemo(()=>new R3,[]),{children:i,items:o,collection:a}=t;return u.useMemo(()=>{if(a)return a;let s=n.build({children:i,items:o},r);return e(s)},[n,i,o,a,r,e])}function Qc(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function L3(t){return j3(t)}function j3(t,e){for(let r of t)return r}function uo(t,e,r){if(e.parentKey===r.parentKey)return e.index-r.index;let n=[..._s(t,e),e],i=[..._s(t,r),r],o=n.slice(0,i.length).findIndex((a,l)=>a!==i[l]);return o!==-1?(e=n[o],r=i[o],e.index-r.index):n.findIndex(a=>a===r)>=0?1:(i.findIndex(a=>a===e)>=0,-1)}function _s(t,e){let r=[],n=e;for(;(n==null?void 0:n.parentKey)!=null;)n=t.getItem(n.parentKey),n&&r.unshift(n);return r}const Ps=new WeakMap;function eu(t){let e=Ps.get(t);if(e!=null)return e;let r=0,n=i=>{for(let o of i)o.type==="section"?n(Qc(o,t)):o.type==="item"&&r++};return n(t),Ps.set(t,r),r}function K3(t,e,r){var n,i;let{key:o}=t,a=Qa.get(e);var l;let s=(l=t.isDisabled)!==null&&l!==void 0?l:e.selectionManager.isDisabled(o);var c;let d=(c=t.isSelected)!==null&&c!==void 0?c:e.selectionManager.isSelected(o);var f;let p=(f=t.shouldSelectOnPressUp)!==null&&f!==void 0?f:a==null?void 0:a.shouldSelectOnPressUp;var g;let y=(g=t.shouldFocusOnHover)!==null&&g!==void 0?g:a==null?void 0:a.shouldFocusOnHover;var h;let v=(h=t.shouldUseVirtualFocus)!==null&&h!==void 0?h:a==null?void 0:a.shouldUseVirtualFocus;var m;let C=(m=t.isVirtualized)!==null&&m!==void 0?m:a==null?void 0:a.isVirtualized,E=ht(),F=ht(),D={role:"option","aria-disabled":s||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?d:void 0};vt()&&Oa()||(D["aria-label"]=t["aria-label"],D["aria-labelledby"]=E,D["aria-describedby"]=F);let w=e.collection.getItem(o);if(C){let I=Number(w==null?void 0:w.index);D["aria-posinset"]=Number.isNaN(I)?void 0:I+1,D["aria-setsize"]=eu(e.collection)}let S=a!=null&&a.onAction?()=>{var I;return a==null||(I=a.onAction)===null||I===void 0?void 0:I.call(a,o)}:void 0,O=T3(e,o),{itemProps:K,isPressed:V,isFocused:x,hasAction:B,allowsSelection:U}=el({selectionManager:e.selectionManager,key:o,ref:r,shouldSelectOnPressUp:p,allowsDifferentPressOrigin:p&&y,isVirtualized:C,shouldUseVirtualFocus:v,isDisabled:s,onAction:S||!(w==null||(n=w.props)===null||n===void 0)&&n.onAction?gt(w==null||(i=w.props)===null||i===void 0?void 0:i.onAction,S):void 0,linkBehavior:a==null?void 0:a.linkBehavior,id:O}),{hoverProps:k}=wr({isDisabled:s||!y,onHoverStart(){vr()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(o))}}),W=he(w==null?void 0:w.props);delete W.id;let _=Na(w==null?void 0:w.props);return{optionProps:{...D,...ie(W,K,k,_),id:O},labelProps:{id:E},descriptionProps:{id:F},isFocused:x,isFocusVisible:x&&e.selectionManager.isFocused&&vr(),isSelected:d,isDisabled:s,isPressed:V,allowsSelection:U,hasAction:B}}function V3(t){let{heading:e,"aria-label":r}=t,n=Se();return{itemProps:{role:"presentation"},headingProps:e?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":e?n:void 0}}}var tu={};tu={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var ru={};ru={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var nu={};nu={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var iu={};iu={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var ou={};ou={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var au={};au={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var lu={};lu={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var su={};su={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var cu={};cu={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var uu={};uu={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var du={};du={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var fu={};fu={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var hu={};hu={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var pu={};pu={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var gu={};gu={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var vu={};vu={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var bu={};bu={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var mu={};mu={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var yu={};yu={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Cu={};Cu={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var Eu={};Eu={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var wu={};wu={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var xu={};xu={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var Du={};Du={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var Su={};Su={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var Fu={};Fu={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var $u={};$u={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var _u={};_u={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var Pu={};Pu={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Au={};Au={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var Tu={};Tu={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var ku={};ku={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var Iu={};Iu={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Ou={};Ou={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var Mu={};Mu={"ar-AE":tu,"bg-BG":ru,"cs-CZ":nu,"da-DK":iu,"de-DE":ou,"el-GR":au,"en-US":lu,"es-ES":su,"et-EE":cu,"fi-FI":uu,"fr-FR":du,"he-IL":fu,"hr-HR":hu,"hu-HU":pu,"it-IT":gu,"ja-JP":vu,"ko-KR":bu,"lt-LT":mu,"lv-LV":yu,"nb-NO":Cu,"nl-NL":Eu,"pl-PL":wu,"pt-BR":xu,"pt-PT":Du,"ro-RO":Su,"ru-RU":Fu,"sk-SK":$u,"sl-SI":_u,"sr-SP":Pu,"sv-SE":Au,"tr-TR":Tu,"uk-UA":ku,"zh-CN":Iu,"zh-TW":Ou};function H3(t){return t&&t.__esModule?t.default:t}function z3(t,e,r){let{type:n="menu",isDisabled:i,trigger:o="press"}=t,a=Se(),{triggerProps:l,overlayProps:s}=v3({type:n},e,r),c=g=>{if(!i&&!(o==="longPress"&&!g.altKey)&&r&&r.current)switch(g.key){case"Enter":case" ":if(o==="longPress"||g.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),e.toggle("first");break;case"ArrowUp":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),e.toggle("last");break;default:"continuePropagation"in g&&g.continuePropagation()}},d=ec(H3(Mu),"@react-aria/menu"),{longPressProps:f}=Y2({isDisabled:i||o!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){e.close()},onLongPress(){e.open("first")}}),p={preventFocusOnPress:!0,onPressStart(g){g.pointerType!=="touch"&&g.pointerType!=="keyboard"&&!i&&(He(g.target),e.open(g.pointerType==="virtual"?"first":null))},onPress(g){g.pointerType==="touch"&&!i&&(He(g.target),e.toggle())}};return delete l.onPress,{menuTriggerProps:{...l,...o==="press"?p:f,id:a,onKeyDown:c},menuProps:{...s,"aria-labelledby":a,autoFocus:e.focusStrategy||!0,onClose:e.close}}}const Nu=new WeakMap;function U3(t,e,r){let{shouldFocusWrap:n=!0,onKeyDown:i,onKeyUp:o,...a}=t;!t["aria-label"]&&!t["aria-labelledby"]&&process.env.NODE_ENV!=="production"&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let l=he(t,{labelable:!0}),{listProps:s}=Xc({...a,ref:r,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:n,linkBehavior:"override"});return Nu.set(e,{onClose:t.onClose,onAction:t.onAction,shouldUseVirtualFocus:t.shouldUseVirtualFocus}),{menuProps:ie(l,{onKeyDown:i,onKeyUp:o},{role:"menu",...s,onKeyDown:c=>{var d;(c.key!=="Escape"||t.shouldUseVirtualFocus)&&((d=s.onKeyDown)===null||d===void 0||d.call(s,c))}})}}function W3(t,e,r){let{id:n,key:i,closeOnSelect:o,isVirtualized:a,"aria-haspopup":l,onPressStart:s,onPressUp:c,onPress:d,onPressChange:f,onPressEnd:p,onClick:g,onHoverStart:y,onHoverChange:h,onHoverEnd:v,onKeyDown:m,onKeyUp:C,onFocus:E,onFocusChange:F,onBlur:D,selectionManager:w=e.selectionManager}=t,S=!!l,O=S&&t["aria-expanded"]==="true";var K;let V=(K=t.isDisabled)!==null&&K!==void 0?K:w.isDisabled(i);var x;let B=(x=t.isSelected)!==null&&x!==void 0?x:w.isSelected(i),U=Nu.get(e),k=e.collection.getItem(i),W=t.onClose||U.onClose,_=bi(),I=()=>{var re;if(!S&&(!(k==null||(re=k.props)===null||re===void 0)&&re.onAction?k.props.onAction():t.onAction&&t.onAction(i),U.onAction)){let pe=U.onAction;pe(i)}},z="menuitem";S||(w.selectionMode==="single"?z="menuitemradio":w.selectionMode==="multiple"&&(z="menuitemcheckbox"));let L=ht(),N=ht(),R=ht(),$={id:n,"aria-disabled":V||void 0,role:z,"aria-label":t["aria-label"],"aria-labelledby":L,"aria-describedby":[N,R].filter(Boolean).join(" ")||void 0,"aria-controls":t["aria-controls"],"aria-haspopup":l,"aria-expanded":t["aria-expanded"]};w.selectionMode!=="none"&&!S&&($["aria-checked"]=B),a&&($["aria-posinset"]=k==null?void 0:k.index,$["aria-setsize"]=eu(e.collection));let P=u.useRef(!1),T=re=>{f==null||f(re),P.current=re},M=u.useRef(null),j=re=>{re.pointerType!=="keyboard"&&(M.current={pointerType:re.pointerType}),re.pointerType==="mouse"&&(P.current||re.target.click()),c==null||c(re)},H=re=>{var pe,Ht;g==null||g(re),I(),E5(re,_,k.props.href,k==null?void 0:k.props.routerOptions);let Dr=((pe=M.current)===null||pe===void 0?void 0:pe.pointerType)==="keyboard"?((Ht=M.current)===null||Ht===void 0?void 0:Ht.key)==="Enter"||w.selectionMode==="none"||w.isLink(i):w.selectionMode!=="multiple"||w.isLink(i);Dr=o??Dr,W&&!S&&Dr&&W(),M.current=null},{itemProps:Z,isFocused:q}=el({id:n,selectionManager:w,key:i,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:U.shouldUseVirtualFocus}),{pressProps:Y,isPressed:le}=wi({onPressStart:s,onPress:d,onPressUp:j,onPressChange:T,onPressEnd:p,isDisabled:V}),{hoverProps:G}=wr({isDisabled:V,onHoverStart(re){!vr()&&!(O&&l)&&(w.setFocused(!0),w.setFocusedKey(i)),y==null||y(re)},onHoverChange:h,onHoverEnd:v}),{keyboardProps:te}=G2({onKeyDown:re=>{if(re.repeat){re.continuePropagation();return}switch(re.key){case" ":M.current={pointerType:"keyboard",key:" "},re.target.click();break;case"Enter":M.current={pointerType:"keyboard",key:"Enter"},re.target.tagName!=="A"&&re.target.click();break;default:S||re.continuePropagation(),m==null||m(re);break}},onKeyUp:C}),{focusProps:de}=Wa({onBlur:D,onFocus:E,onFocusChange:F}),Be=he(k==null?void 0:k.props);delete Be.id;let Vt=Na(k==null?void 0:k.props);return{menuItemProps:{...$,...ie(Be,Vt,S?{onFocus:Z.onFocus,"data-collection":Z["data-collection"],"data-key":Z["data-key"]}:Z,Y,G,te,de,U.shouldUseVirtualFocus||S?{onMouseDown:re=>re.preventDefault()}:void 0,V?void 0:{onClick:H}),tabIndex:Z.tabIndex!=null&&O&&!U.shouldUseVirtualFocus?-1:Z.tabIndex},labelProps:{id:L},descriptionProps:{id:N},keyboardShortcutProps:{id:R},isFocused:q,isFocusVisible:q&&w.isFocused&&vr()&&!O,isSelected:B,isPressed:le,isDisabled:V}}function Z3(t){let{heading:e,"aria-label":r}=t,n=Se();return{itemProps:{role:"presentation"},headingProps:e?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":e?n:void 0}}}function G3(t,e){let{role:r="dialog"}=t,n=ht();n=t["aria-label"]?void 0:n;let i=u.useRef(!1);return u.useEffect(()=>{if(e.current&&!e.current.contains(document.activeElement)){bt(e.current);let o=setTimeout(()=>{(document.activeElement===e.current||document.activeElement===document.body)&&(i.current=!0,e.current&&(e.current.blur(),bt(e.current)),i.current=!1)},500);return()=>{clearTimeout(o)}}},[e]),P3(),{dialogProps:{...he(t,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":t["aria-labelledby"]||n,onBlur:o=>{i.current&&o.stopPropagation()}},titleProps:{id:n}}}const rl=new WeakMap;function q3(t,e,r){let{keyboardDelegate:n,isDisabled:i,isRequired:o,name:a,form:l,validationBehavior:s="aria"}=t,c=qa({usage:"search",sensitivity:"base"}),d=u.useMemo(()=>n||new tl(e.collection,e.disabledKeys,r,c),[n,e.collection,e.disabledKeys,c,r]),{menuTriggerProps:f,menuProps:p}=z3({isDisabled:i,type:"listbox"},e,r),g=K=>{switch(K.key){case"ArrowLeft":{var V,x;K.preventDefault();let k=e.selectedKey!=null?(V=d.getKeyAbove)===null||V===void 0?void 0:V.call(d,e.selectedKey):(x=d.getFirstKey)===null||x===void 0?void 0:x.call(d);k&&e.setSelectedKey(k);break}case"ArrowRight":{var B,U;K.preventDefault();let k=e.selectedKey!=null?(B=d.getKeyBelow)===null||B===void 0?void 0:B.call(d,e.selectedKey):(U=d.getFirstKey)===null||U===void 0?void 0:U.call(d);k&&e.setSelectedKey(k);break}}},{typeSelectProps:y}=qc({keyboardDelegate:d,selectionManager:e.selectionManager,onTypeSelect(K){e.setSelectedKey(K)}}),{isInvalid:h,validationErrors:v,validationDetails:m}=e.displayValidation,{labelProps:C,fieldProps:E,descriptionProps:F,errorMessageProps:D}=r3({...t,labelElementType:"span",isInvalid:h,errorMessage:t.errorMessage||v});y.onKeyDown=y.onKeyDownCapture,delete y.onKeyDownCapture;let w=he(t,{labelable:!0}),S=ie(y,f,E),O=Se();return rl.set(e,{isDisabled:i,isRequired:o,name:a,form:l,validationBehavior:s}),{labelProps:{...C,onClick:()=>{if(!t.isDisabled){var K;(K=r.current)===null||K===void 0||K.focus(),Z2("keyboard")}}},triggerProps:ie(w,{...S,isDisabled:i,onKeyDown:gt(S.onKeyDown,g,t.onKeyDown),onKeyUp:t.onKeyUp,"aria-labelledby":[O,S["aria-labelledby"],S["aria-label"]&&!S["aria-labelledby"]?S.id:null].filter(Boolean).join(" "),onFocus(K){e.isFocused||(t.onFocus&&t.onFocus(K),t.onFocusChange&&t.onFocusChange(!0),e.setFocused(!0))},onBlur(K){e.isOpen||(t.onBlur&&t.onBlur(K),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))}}),valueProps:{id:O},menuProps:{...p,autoFocus:e.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:K=>{K.currentTarget.contains(K.relatedTarget)||(t.onBlur&&t.onBlur(K),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))},"aria-labelledby":[E["aria-labelledby"],S["aria-label"]&&!E["aria-labelledby"]?S.id:null].filter(Boolean).join(" ")},descriptionProps:F,errorMessageProps:D,isInvalid:h,validationErrors:v,validationDetails:m,hiddenSelectProps:{isDisabled:i,name:a,label:t.label,state:e,triggerRef:r,form:l}}}function Y3(t,e,r){let n=rl.get(e)||{},{autoComplete:i,name:o=n.name,form:a=n.form,isDisabled:l=n.isDisabled}=t,{validationBehavior:s,isRequired:c}=n,{visuallyHiddenProps:d}=cc({style:{position:"fixed",top:0,left:0}});_5(t.selectRef,e.defaultSelectedKey,e.setSelectedKey),J4({validationBehavior:s,focus:()=>{var g;return(g=r.current)===null||g===void 0?void 0:g.focus()}},e,t.selectRef);let f=u.useCallback(g=>e.setSelectedKey(g.currentTarget.value),[e.setSelectedKey]);var p;return{containerProps:{...d,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:i,disabled:l,required:s==="native"&&c,name:o,form:a,value:(p=e.selectedKey)!==null&&p!==void 0?p:"",onChange:f,onInput:f}}}function X3(t){let{state:e,triggerRef:r,label:n,name:i,form:o,isDisabled:a}=t,l=u.useRef(null),s=u.useRef(null),{containerProps:c,selectProps:d}=Y3({...t,selectRef:e.collection.size<=300?l:s},e,r);if(e.collection.size<=300)return u.createElement("div",{...c,"data-testid":"hidden-select-container"},u.createElement("label",null,n,u.createElement("select",{...d,ref:l},u.createElement("option",null),[...e.collection.getKeys()].map(p=>{let g=e.collection.getItem(p);if(g&&g.type==="item")return u.createElement("option",{key:g.key,value:g.key},g.textValue)}))));if(i){let p=rl.get(e)||{},{validationBehavior:g}=p;var f;let y={type:"hidden",autoComplete:d.autoComplete,name:i,form:o,disabled:a,value:(f=e.selectedKey)!==null&&f!==void 0?f:""};return g==="native"?u.createElement("input",{...y,ref:s,style:{display:"none"},type:"text",required:d.required,onChange:()=>{}}):u.createElement("input",{...y,ref:s})}return null}function J3(t){let e=he(t,{labelable:!0}),r;return t.orientation==="vertical"&&(r="vertical"),t.elementType!=="hr"?{separatorProps:{...e,role:"separator","aria-orientation":r}}:{separatorProps:e}}const Ru=new WeakMap;function ti(t,e,r){if(!t)return"";typeof e=="string"&&(e=e.replace(/\s+/g,""));let n=Ru.get(t);return process.env.NODE_ENV!=="production"&&!n&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${n}-${r}-${e}`}function Q3(t,e,r){let{key:n,isDisabled:i,shouldSelectOnPressUp:o}=t,{selectionManager:a,selectedKey:l}=e,s=n===l,c=i||e.isDisabled||e.selectionManager.isDisabled(n),{itemProps:d,isPressed:f}=el({selectionManager:a,key:n,ref:r,isDisabled:c,shouldSelectOnPressUp:o,linkBehavior:"selection"}),p=ti(e,n,"tab"),g=ti(e,n,"tabpanel"),{tabIndex:y}=d,h=e.collection.getItem(n),v=he(h==null?void 0:h.props,{labelable:!0});delete v.id;let m=Na(h==null?void 0:h.props),{focusableProps:C}=q2({isDisabled:c},r);return{tabProps:ie(v,C,m,d,{id:p,"aria-selected":s,"aria-disabled":c||void 0,"aria-controls":s?g:void 0,tabIndex:c?void 0:y,role:"tab"}),isSelected:s,isDisabled:c,isPressed:f}}function eh(t,e,r){let n=z4(r)?void 0:0;var i;const o=ti(e,(i=t.id)!==null&&i!==void 0?i:e==null?void 0:e.selectedKey,"tabpanel"),a=yi({...t,id:o,"aria-labelledby":ti(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:ie(a,{tabIndex:n,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}class th{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var r,n;return this.disabledKeys.has(e)||!!(!((n=this.collection.getItem(e))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let r=e;do r=this.collection.getKeyAfter(r),r==null&&(r=this.collection.getFirstKey());while(r!=null&&this.isDisabled(r));return r}getPreviousKey(e){let r=e;do r=this.collection.getKeyBefore(r),r==null&&(r=this.collection.getLastKey());while(r!=null&&this.isDisabled(r));return r}constructor(e,r,n,i=new Set){this.collection=e,this.flipDirection=r==="rtl"&&n==="horizontal",this.disabledKeys=i,this.tabDirection=n==="horizontal"}}function rh(t,e,r){let{orientation:n="horizontal",keyboardActivation:i="automatic"}=t,{collection:o,selectionManager:a,disabledKeys:l}=e,{direction:s}=Bt(),c=u.useMemo(()=>new th(o,s,n,l),[o,l,n,s]),{collectionProps:d}=Yc({ref:r,selectionManager:a,keyboardDelegate:c,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:r,linkBehavior:"selection"}),f=Se();Ru.set(e,f);let p=yi({...t,id:f});return{tabListProps:{...ie(d,p),role:"tablist","aria-orientation":n,tabIndex:void 0}}}const Bu=u.createContext({}),nh=Va(function(e,r){[e,r]=Xe(e,r,Bu);let{elementType:n="label",...i}=e;return u.createElement(n,{className:"react-aria-Label",...i,ref:r})}),ih=u.createContext(null),oh=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),nl=u.createContext({}),ah=Va(function(e,r){[e,r]=Xe(e,r,nl),e=lh(e);let n=e,{isPending:i}=n,{buttonProps:o,isPressed:a}=N4(e,r),{focusProps:l,isFocused:s,isFocusVisible:c}=xr(e),{hoverProps:d,isHovered:f}=wr({...e,isDisabled:e.isDisabled||i}),p={isHovered:f,isPressed:(n.isPressed||a)&&!i,isFocused:s,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:i??!1},g=Fe({...e,values:p,defaultClassName:"react-aria-Button"}),y=Se(o.id),h=Se(),v=o["aria-labelledby"];i&&(v?v=`${v} ${h}`:o["aria-label"]&&(v=`${y} ${h}`));let m=u.useRef(i);return u.useEffect(()=>{let C={"aria-labelledby":v||y};(!m.current&&s&&i||m.current&&s&&!i)&&ds(C,"assertive"),m.current=i},[i,s,v,y]),u.createElement("button",{...he(e,{propNames:oh}),...ie(o,l,d),...g,type:o.type==="submit"&&i?"button":o.type,id:y,ref:r,"aria-labelledby":v,slot:e.slot||void 0,"aria-disabled":i?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":p.isPressed||void 0,"data-hovered":f||void 0,"data-focused":s||void 0,"data-pending":i||void 0,"data-focus-visible":c||void 0},u.createElement(ih.Provider,{value:{id:h}},g.children))});function lh(t){return t.isPending&&(t.onPress=void 0,t.onPressStart=void 0,t.onPressEnd=void 0,t.onPressChange=void 0,t.onPressUp=void 0,t.onKeyDown=void 0,t.onKeyUp=void 0,t.onClick=void 0,t.href=void 0),t}const il=u.createContext({}),sh=u.createContext(null);class As{*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let r=this.keyMap.get(e);var n;return r&&(n=r.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(e){let r=this.keyMap.get(e);var n;return r&&(n=r.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var r;return(r=this.keyMap.get(e))!==null&&r!==void 0?r:null}at(e){const r=[...this.getKeys()];return this.getItem(r[e])}getChildren(e){let r=this.keyMap.get(e);return(r==null?void 0:r.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let r=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&l.type==="section")for(let s of l.childNodes)r(s)};for(let l of e)r(l);let n=null,i=0,o=0;for(let[l,s]of this.keyMap)n?(n.nextKey=l,s.prevKey=n.key):(this.firstKey=l,s.prevKey=void 0),s.type==="item"&&(s.index=i++),(s.type==="section"||s.type==="item")&&o++,n=s,n.nextKey=void 0;this._size=o;var a;this.lastKey=(a=n==null?void 0:n.key)!==null&&a!==void 0?a:null}}class Ke extends Set{constructor(e,r,n){super(e),e instanceof Ke?(this.anchorKey=r??e.anchorKey,this.currentKey=n??e.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}}function ch(t,e){if(t.size!==e.size)return!1;for(let r of t)if(!e.has(r))return!1;return!0}function ol(t){let{selectionMode:e="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:i="toggle",disabledBehavior:o="all"}=t,a=u.useRef(!1),[,l]=u.useState(!1),s=u.useRef(null),c=u.useRef(null),[,d]=u.useState(null),f=u.useMemo(()=>Ts(t.selectedKeys),[t.selectedKeys]),p=u.useMemo(()=>Ts(t.defaultSelectedKeys,new Ke),[t.defaultSelectedKeys]),[g,y]=Ci(f,p,t.onSelectionChange),h=u.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[v,m]=u.useState(i);i==="replace"&&v==="toggle"&&typeof g=="object"&&g.size===0&&m("replace");let C=u.useRef(i);return u.useEffect(()=>{i!==C.current&&(m(i),C.current=i)},[i]),{selectionMode:e,disallowEmptySelection:r,selectionBehavior:v,setSelectionBehavior:m,get isFocused(){return a.current},setFocused(E){a.current=E,l(E)},get focusedKey(){return s.current},get childFocusStrategy(){return c.current},setFocusedKey(E,F="first"){s.current=E,c.current=F,d(E)},selectedKeys:g,setSelectedKeys(E){(n||!ch(E,g))&&y(E)},disabledKeys:h,disabledBehavior:o}}function Ts(t,e){return t?t==="all"?"all":new Ke(t):e}class cn{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,r){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let r=this.getKey(e);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=e.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let n of this.state.selectedKeys){let i=this.collection.getItem(n);(!e||i&&uo(this.collection,i,e)<0)&&(e=i)}var r;return(r=e==null?void 0:e.key)!==null&&r!==void 0?r:null}get lastSelectedKey(){let e=null;for(let n of this.state.selectedKeys){let i=this.collection.getItem(n);(!e||i&&uo(this.collection,i,e)>0)&&(e=i)}var r;return(r=e==null?void 0:e.key)!==null&&r!==void 0?r:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let r=this.getKey(e);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new Ke([r],r,r);else{let a=this.state.selectedKeys;var i;let l=(i=a.anchorKey)!==null&&i!==void 0?i:r;n=new Ke(a,l,r);var o;for(let s of this.getKeyRange(l,(o=a.currentKey)!==null&&o!==void 0?o:r))n.delete(s);for(let s of this.getKeyRange(r,l))this.canSelectItem(s)&&n.add(s)}this.state.setSelectedKeys(n)}getKeyRange(e,r){let n=this.collection.getItem(e),i=this.collection.getItem(r);return n&&i?uo(this.collection,n,i)<=0?this.getKeyRangeInternal(e,r):this.getKeyRangeInternal(r,e):[]}getKeyRangeInternal(e,r){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(e,r);let i=[],o=e;for(;o!=null;){let a=this.collection.getItem(o);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===r)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(e){let r=this.collection.getItem(e);if(!r||r.type==="cell"&&this.allowsCellSelection)return e;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let r=this.getKey(e);if(r==null)return;let n=new Ke(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode==="none")return;let r=this.getKey(e);if(r==null)return;let n=this.canSelectItem(r)?new Ke([r],r,r):new Ke;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode==="none")return;let r=new Ke;for(let n of e){let i=this.getKey(n);if(i!=null&&(r.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let e=[],r=n=>{for(;n!=null;){if(this.canSelectItem(n)){var i;let a=this.collection.getItem(n);(a==null?void 0:a.type)==="item"&&e.push(n);var o;a!=null&&a.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&r((o=(i=L3(Qc(a,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Ke)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(e.size!==r.size)return!1;for(let n of e)if(!r.has(n))return!1;for(let n of r)if(!e.has(n))return!1;return!0}canSelectItem(e){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!(!n||!(n==null||(r=n.props)===null||r===void 0)&&r.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var r,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((n=this.collection.getItem(e))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled))}isLink(e){var r,n;return!!(!((n=this.collection.getItem(e))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}getItemProps(e){var r;return(r=this.collection.getItem(e))===null||r===void 0?void 0:r.props}withCollection(e){return new cn(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,r,n){this.collection=e,this.state=r;var i;this.allowsCellSelection=(i=n==null?void 0:n.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(n==null?void 0:n.layoutDelegate)||null}}function Lu(t){let{filter:e,layoutDelegate:r}=t,n=ol(t),i=u.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),o=u.useCallback(c=>e?new As(e(c)):new As(c),[e]),a=u.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),l=Jc(t,o,a),s=u.useMemo(()=>new cn(l,n,{layoutDelegate:r}),[l,n,r]);return ju(l,s),{collection:l,disabledKeys:i,selectionManager:s}}function uh(t,e){let r=u.useMemo(()=>e?t.collection.filter(e):t.collection,[t.collection,e]),n=t.selectionManager.withCollection(r);return ju(r,n),{collection:r,selectionManager:n,disabledKeys:t.disabledKeys}}function ju(t,e){const r=u.useRef(null);u.useEffect(()=>{if(e.focusedKey!=null&&!t.getItem(e.focusedKey)&&r.current){const d=r.current.getItem(e.focusedKey),f=[...r.current.getKeys()].map(m=>{const C=r.current.getItem(m);return(C==null?void 0:C.type)==="item"?C:null}).filter(m=>m!==null),p=[...t.getKeys()].map(m=>{const C=t.getItem(m);return(C==null?void 0:C.type)==="item"?C:null}).filter(m=>m!==null);var n,i;const g=((n=f==null?void 0:f.length)!==null&&n!==void 0?n:0)-((i=p==null?void 0:p.length)!==null&&i!==void 0?i:0);var o,a,l;let y=Math.min(g>1?Math.max(((o=d==null?void 0:d.index)!==null&&o!==void 0?o:0)-g+1,0):(a=d==null?void 0:d.index)!==null&&a!==void 0?a:0,((l=p==null?void 0:p.length)!==null&&l!==void 0?l:0)-1),h=null,v=!1;for(;y>=0;){if(!e.isDisabled(p[y].key)){h=p[y];break}if(y<p.length-1&&!v)y++;else{v=!0;var s,c;y>((s=d==null?void 0:d.index)!==null&&s!==void 0?s:0)&&(y=(c=d==null?void 0:d.index)!==null&&c!==void 0?c:0),y--}}e.setFocusedKey(h?h.key:null)}r.current=t},[t,e])}function Ku(t){var e;let[r,n]=Ci(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),i=u.useMemo(()=>r!=null?[r]:[],[r]),{collection:o,disabledKeys:a,selectionManager:l}=Lu({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:c=>{if(c==="all")return;var d;let f=(d=c.values().next().value)!==null&&d!==void 0?d:null;f===r&&t.onSelectionChange&&t.onSelectionChange(f),n(f)}}),s=r!=null?o.getItem(r):null;return{collection:o,disabledKeys:a,selectionManager:l,selectedKey:r,setSelectedKey:n,selectedItem:s}}function al(t){let[e,r]=Ci(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const n=u.useCallback(()=>{r(!0)},[r]),i=u.useCallback(()=>{r(!1)},[r]),o=u.useCallback(()=>{r(!e)},[r,e]);return{isOpen:e,setOpen:r,open:n,close:i,toggle:o}}function dh(t){let{initialItems:e=[],initialSelectedKeys:r,getKey:n=h=>{var v;return(v=h.id)!==null&&v!==void 0?v:h.key},getChildren:i=h=>h.children}=t,[o,a]=u.useState(()=>f(e,new Map)),{items:l,nodeMap:s}=o,[c,d]=u.useState(new Set(r||[]));function f(h=[],v,m){return h==null&&(h=[]),{items:h.map(C=>{let E={key:n(C),parentKey:m??null,value:C,children:null};return E.children=f(i(C),v,E.key).items,v.set(E.key,E),E}),nodeMap:v}}function p(h,v,m,C){let E=v==null?null:C.get(v);if(E==null)return{items:h,nodeMap:C};let F=new Map(C),D=m(E);for(D==null?y(E,F):g(D,F);E&&E.parentKey;){let S=F.get(E.parentKey),O={key:S.key,parentKey:S.parentKey,value:S.value,children:null},K=S.children;D==null&&K&&(K=K.filter(V=>V!==E));var w;O.children=(w=K==null?void 0:K.map(V=>V===E?D:V))!==null&&w!==void 0?w:null,F.set(O.key,O),D=O,E=S}return D==null&&(h=h.filter(S=>S!==E)),{items:h.map(S=>S===E?D:S),nodeMap:F}}function g(h,v){if(v.set(h.key,h),h.children)for(let m of h.children)g(m,v)}function y(h,v){if(v.delete(h.key),h.children)for(let m of h.children)y(m,v)}return{items:l,selectedKeys:c,setSelectedKeys:d,getItem(h){return s.get(h)},insert(h,v,...m){a(({items:C,nodeMap:E})=>{let{items:F,nodeMap:D}=f(m,E,h);return h==null?{items:[...C.slice(0,v),...F,...C.slice(v)],nodeMap:D}:p(C,h,w=>({key:w.key,parentKey:w.parentKey,value:w.value,children:[...w.children.slice(0,v),...F,...w.children.slice(v)]}),D)})},insertBefore(h,...v){let m=s.get(h);if(!m)return;let C=s.get(m.parentKey),F=(C?C.children:l).indexOf(m);var D;this.insert((D=C==null?void 0:C.key)!==null&&D!==void 0?D:null,F,...v)},insertAfter(h,...v){let m=s.get(h);if(!m)return;let C=s.get(m.parentKey),F=(C?C.children:l).indexOf(m);var D;this.insert((D=C==null?void 0:C.key)!==null&&D!==void 0?D:null,F+1,...v)},prepend(h,...v){this.insert(h,0,...v)},append(h,...v){if(h==null)this.insert(null,l.length,...v);else{let m=s.get(h);if(!m)return;this.insert(h,m.children.length,...v)}},remove(...h){if(h.length===0)return;let v=l,m=s,C;for(let F of h)C=p(v,F,()=>null,m),m=C.nodeMap,v=C.items;a(C);let E=new Set(c);for(let F of c)C.nodeMap.has(F)||E.delete(F);d(E)},removeSelectedItems(){this.remove(...c)},move(h,v,m){a(({items:C,nodeMap:E})=>{let F=E.get(h);if(!F)return{items:C,nodeMap:E};let{items:D,nodeMap:w}=p(C,h,()=>null,E);const S={...F,parentKey:v};return v==null?(g(S,w),{items:[...D.slice(0,m),S,...D.slice(m)],nodeMap:w}):p(D,v,O=>({key:O.key,parentKey:O.parentKey,value:O.value,children:[...O.children.slice(0,m),S,...O.children.slice(m)]}),w)})},moveBefore(h,v){a(m=>{let{items:C,nodeMap:E}=m,F=E.get(h);if(!F)return m;var D;let w=(D=F.parentKey)!==null&&D!==void 0?D:null,S=null;var O;w!=null&&(S=(O=E.get(w))!==null&&O!==void 0?O:null);let K=S!=null&&S.children?S.children.indexOf(F):C.indexOf(F);return ks(m,v,S,K,p,g)})},moveAfter(h,v){a(m=>{let{items:C,nodeMap:E}=m,F=E.get(h);if(!F)return m;var D;let w=(D=F.parentKey)!==null&&D!==void 0?D:null,S=null;var O;w!=null&&(S=(O=E.get(w))!==null&&O!==void 0?O:null);let K=S!=null&&S.children?S.children.indexOf(F):C.indexOf(F);return K++,ks(m,v,S,K,p,g)})},update(h,v){a(({items:m,nodeMap:C})=>p(m,h,E=>{let F={key:E.key,parentKey:E.parentKey,value:v,children:null},D=f(i(v),C,F.key);return F.children=D.items,F},C))}}}function ks(t,e,r,n,i,o){let{items:a,nodeMap:l}=t,s=r,c=new Set(e);for(;(s==null?void 0:s.parentKey)!=null;){if(c.has(s.key))throw new Error("Cannot move an item to be a child of itself.");var d;s=(d=l.get(s.parentKey))!==null&&d!==void 0?d:null}let f=n,p=Array.isArray(e)?e:[...e],g=new Map,y=[],h=a,v=l,m=0;function C(w,{inorder:S,postorder:O}){S==null||S(w);var K;if(w!=null)for(let V of(K=w.children)!==null&&K!==void 0?K:[])C(V,{inorder:S,postorder:O}),O==null||O(V)}function E(w){p.includes(w.key)&&g.set(w.key,m++)}function F(w){if(p.includes(w.key)){var S;y.push({...v.get(w.key),parentKey:(S=r==null?void 0:r.key)!==null&&S!==void 0?S:null});let{items:O,nodeMap:K}=i(h,w.key,()=>null,v);h=O,v=K}(w.parentKey===r||w.parentKey===(r==null?void 0:r.key))&&p.includes(w.key)&&(r!=null&&r.children?r.children.indexOf(w):a.indexOf(w))<f&&n--}C({children:a},{inorder:E,postorder:F});let D=y.sort((w,S)=>g.get(w.key)>g.get(S.key)?1:-1);return!r||r.key==null?(D.forEach(w=>{o(w,v)}),{items:[...h.slice(0,n),...D,...h.slice(n)],nodeMap:v}):i(h,r.key,w=>({key:w.key,parentKey:w.parentKey,value:w.value,children:[...w.children.slice(0,n),...D,...w.children.slice(n)]}),v)}function fh(t){let e=al(t),[r,n]=u.useState(null),[i,o]=u.useState([]),a=()=>{o([]),e.close()};return{focusStrategy:r,...e,open(c=null){n(c),e.open()},toggle(c=null){n(c),e.toggle()},close(){a()},expandedKeysStack:i,openSubmenu:(c,d)=>{o(f=>d>f.length?f:[...f.slice(0,d),c])},closeSubmenu:(c,d)=>{o(f=>f[d]===c?f.slice(0,d):f)}}}function hh(t){let e=al(t),[r,n]=u.useState(null),i=Ku({...t,onSelectionChange:d=>{t.onSelectionChange!=null&&t.onSelectionChange(d),e.close(),o.commitValidation()}}),o=q4({...t,value:i.selectedKey}),[a,l]=u.useState(!1),[s]=u.useState(i.selectedKey);var c;return{...o,...i,...e,defaultSelectedKey:(c=t.defaultSelectedKey)!==null&&c!==void 0?c:s,focusStrategy:r,open(d=null){i.collection.size!==0&&(n(d),e.open())},toggle(d=null){i.collection.size!==0&&(n(d),e.toggle())},isFocused:a,setFocused:l}}function ph(t){var e,r;let n=Ku({...t,onSelectionChange:t.onSelectionChange?s=>{var c;s!=null&&((c=t.onSelectionChange)===null||c===void 0||c.call(t,s))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(r=(e=t.defaultSelectedKey)!==null&&e!==void 0?e:Is(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set))!==null&&r!==void 0?r:void 0}),{selectionManager:i,collection:o,selectedKey:a}=n,l=u.useRef(a);return u.useEffect(()=>{let s=a;t.selectedKey==null&&(i.isEmpty||s==null||!o.getItem(s))&&(s=Is(o,n.disabledKeys),s!=null&&i.setSelectedKeys([s])),(s!=null&&i.focusedKey==null||!i.isFocused&&s!==l.current)&&i.setFocusedKey(s),l.current=s}),{...n,isDisabled:t.isDisabled||!1}}function Is(t,e){let r=null;if(t){var n,i,o,a;for(r=t.getFirstKey();r!=null&&(e.has(r)||!((i=t.getItem(r))===null||i===void 0||(n=i.props)===null||n===void 0)&&n.isDisabled)&&r!==t.getLastKey();)r=t.getKeyAfter(r);r!=null&&(e.has(r)||!((a=t.getItem(r))===null||a===void 0||(o=a.props)===null||o===void 0)&&o.isDisabled)&&r===t.getLastKey()&&(r=t.getFirstKey())}return r}class gh{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let r=this.keyMap.get(e);var n;return r&&(n=r.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(e){let r=this.keyMap.get(e);var n;return r&&(n=r.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var r;return(r=this.keyMap.get(e))!==null&&r!==void 0?r:null}at(e){const r=[...this.getKeys()];return this.getItem(r[e])}constructor(e,{expandedKeys:r}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,r=r||new Set;let n=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&(l.type==="section"||r.has(l.key)))for(let s of l.childNodes)n(s)};for(let l of e)n(l);let i=null,o=0;for(let[l,s]of this.keyMap)i?(i.nextKey=l,s.prevKey=i.key):(this.firstKey=l,s.prevKey=void 0),s.type==="item"&&(s.index=o++),i=s,i.nextKey=void 0;var a;this.lastKey=(a=i==null?void 0:i.key)!==null&&a!==void 0?a:null}}function vh(t){let{onExpandedChange:e}=t,[r,n]=Ci(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,e),i=ol(t),o=u.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),a=Jc(t,u.useCallback(s=>new gh(s,{expandedKeys:r}),[r]),null);return u.useEffect(()=>{i.focusedKey!=null&&!a.getItem(i.focusedKey)&&i.setFocusedKey(null)},[a,i.focusedKey]),{collection:a,expandedKeys:r,disabledKeys:o,toggleKey:s=>{n(bh(r,s))},setExpandedKeys:n,selectionManager:new cn(a,i)}}function bh(t,e){let r=new Set(t);return r.has(e)?r.delete(e):r.add(e),r}const mh=u.createContext(null),sa=u.createContext(null),Vu=u.createContext(null),Hu={CollectionRoot({collection:t,renderDropIndicator:e}){return Os(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:r}){return Os(t,e,r)}};function Os(t,e,r){return B2({items:e?t.getChildren(e.key):t,dependencies:[r],children(n){var i;let o=n.render(n);if(!r||n.type!=="item")return o;let a=n.key,l=t.getKeyAfter(a);return u.createElement(u.Fragment,null,r({type:"item",key:a,dropPosition:"before"}),o,(l==null||((i=t.getItem(l))===null||i===void 0?void 0:i.type)!=="item")&&r({type:"item",key:a,dropPosition:"after"}))}})}const Lt=u.createContext(Hu);function zu(t){return u.useMemo(()=>t!=null?new Set([t]):null,[t])}const _i=u.createContext({}),Uu=u.createContext(null),yh=u.forwardRef(function(e,r){let{render:n}=u.useContext(Uu);return u.createElement(u.Fragment,null,n(e,r))});function Wu(t,e){var r;let n=t==null?void 0:t.renderDropIndicator,i=t==null||(r=t.isVirtualDragging)===null||r===void 0?void 0:r.call(t),o=u.useCallback(a=>{if(i||e!=null&&e.isDropTarget(a))return n?n(a):u.createElement(yh,{target:a})},[e==null?void 0:e.target,i,n]);return t!=null&&t.useDropIndicator?o:void 0}function Ch(t,e,r){var n,i;let o=t.focusedKey,a=null;if(!(e==null||(n=e.isVirtualDragging)===null||n===void 0)&&n.call(e)&&(r==null||(i=r.target)===null||i===void 0?void 0:i.type)==="item"){a=r.target.key;var l;r.target.dropPosition==="after"&&(a=(l=r.collection.getKeyAfter(a))!==null&&l!==void 0?l:a)}return u.useMemo(()=>new Set([o,a].filter(s=>s!=null)),[o,a])}const Zu=u.createContext({}),ll=u.createContext({}),ri=Fi("separator",function(e,r){[e,r]=Xe(e,r,ll);let{elementType:n,orientation:i,style:o,className:a,slot:l,...s}=e,c=n||"hr";c==="hr"&&i==="vertical"&&(c="div");let{separatorProps:d}=J3({...s,elementType:n,orientation:i});return u.createElement(c,{...he(e),...d,style:o,className:a??"react-aria-Separator",ref:r,slot:l||void 0})}),sl=u.createContext(null),un=u.createContext(null),Eh=u.forwardRef(function(e,r){[e,r]=Xe(e,r,sl);let n=u.useContext(un);return n?u.createElement(Gu,{state:n,props:e,listBoxRef:r}):u.createElement(Si,{content:u.createElement(Ga,e)},i=>u.createElement(wh,{props:e,listBoxRef:r,collection:i}))});function wh({props:t,listBoxRef:e,collection:r}){t={...t,collection:r,children:null,items:null};let{layoutDelegate:n}=u.useContext(Lt),i=Lu({...t,layoutDelegate:n});return u.createElement(Gu,{state:i,props:t,listBoxRef:e})}function Gu({state:t,props:e,listBoxRef:r}){let{filter:n,collectionProps:i,collectionRef:o}=u.useContext(sa)||{};e=u.useMemo(()=>i?{...e,...i}:e,[e,i]);let{dragAndDropHooks:a,layout:l="stack",orientation:s="vertical"}=e;r=nt(u.useMemo(()=>ka(r,o!==void 0?o:null),[o,r]));let c=uh(t,n),{collection:d,selectionManager:f}=c,p=!!(a!=null&&a.useDraggableCollectionState),g=!!(a!=null&&a.useDroppableCollectionState),{direction:y}=Bt(),{disabledBehavior:h,disabledKeys:v}=f,m=qa({usage:"search",sensitivity:"base"}),{isVirtualized:C,layoutDelegate:E,dropTargetDelegate:F,CollectionRoot:D}=u.useContext(Lt),w=u.useMemo(()=>e.keyboardDelegate||new tl({collection:d,collator:m,ref:r,disabledKeys:v,disabledBehavior:h,layout:l,orientation:s,direction:y,layoutDelegate:E}),[d,m,r,h,v,s,y,e.keyboardDelegate,l,E]),{listBoxProps:S}=N3({...e,shouldSelectOnPressUp:p||e.shouldSelectOnPressUp,keyboardDelegate:w,isVirtualized:C},c,r),O=u.useRef(p),K=u.useRef(g);u.useEffect(()=>{process.env.NODE_ENV!=="production"&&(O.current!==p&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),K.current!==g&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[p,g]);let V,x,B,U=!1,k=null,W=u.useRef(null);if(p&&a){V=a.useDraggableCollectionState({collection:d,selectionManager:f,preview:a.renderDragPreview?W:void 0}),a.useDraggableCollection({},V,r);let $=a.DragPreview;k=a.renderDragPreview?u.createElement($,{ref:W},a.renderDragPreview):null}if(g&&a){x=a.useDroppableCollectionState({collection:d,selectionManager:f});let $=a.dropTargetDelegate||F||new a.ListDropTargetDelegate(d,r,{orientation:s,layout:l,direction:y});B=a.useDroppableCollection({keyboardDelegate:w,dropTargetDelegate:$},x,r),U=x.isDropTarget({type:"root"})}let{focusProps:_,isFocused:I,isFocusVisible:z}=xr(),L={isDropTarget:U,isEmpty:c.collection.size===0,isFocused:I,isFocusVisible:z,layout:e.layout||"stack",state:c},N=Fe({className:e.className,style:e.style,defaultClassName:"react-aria-ListBox",values:L}),R=null;return c.collection.size===0&&e.renderEmptyState&&(R=u.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(L))),u.createElement(Ya,null,u.createElement("div",{...he(e),...ie(S,_,B==null?void 0:B.collectionProps),...N,ref:r,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":U||void 0,"data-empty":c.collection.size===0||void 0,"data-focused":I||void 0,"data-focus-visible":z||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},u.createElement(it,{values:[[sl,e],[un,c],[_i,{dragAndDropHooks:a,dragState:V,dropState:x}],[ll,{elementType:"div"}],[Uu,{render:Sh}],[Vu,{name:"ListBoxSection",render:xh}]]},u.createElement(D,{collection:d,scrollRef:r,persistedKeys:Ch(f,a,x),renderDropIndicator:Wu(a,x)})),R,k))}function xh(t,e,r,n="react-aria-ListBoxSection"){let i=u.useContext(un),{dragAndDropHooks:o,dropState:a}=u.useContext(_i),{CollectionBranch:l}=u.useContext(Lt),[s,c]=La();var d;let{headingProps:f,groupProps:p}=V3({heading:c,"aria-label":(d=t["aria-label"])!==null&&d!==void 0?d:void 0}),g=Fe({defaultClassName:n,className:t.className,style:t.style,values:{}});return u.createElement("section",{...he(t),...p,...g,ref:e},u.createElement(Zu.Provider,{value:{...f,ref:s}},u.createElement(l,{collection:i.collection,parent:r,renderDropIndicator:Wu(o,a)})))}const Dh=Fi("item",function(e,r,n){let i=nt(r),o=u.useContext(un),{dragAndDropHooks:a,dragState:l,dropState:s}=u.useContext(_i),{optionProps:c,labelProps:d,descriptionProps:f,...p}=K3({key:n.key,"aria-label":e==null?void 0:e["aria-label"]},o,i),{hoverProps:g,isHovered:y}=wr({isDisabled:!p.allowsSelection&&!p.hasAction,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),h=null;l&&a&&(h=a.useDraggableItem({key:n.key},l));let v=null;s&&a&&(v=a.useDroppableItem({target:{type:"item",key:n.key,dropPosition:"on"}},s,i));let m=l&&l.isDragging(n.key),C=Fe({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...p,isHovered:y,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior,allowsDragging:!!l,isDragging:m,isDropTarget:v==null?void 0:v.isDropTarget}});u.useEffect(()=>{!n.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[n.textValue]);let E=e.href?"a":"div";return u.createElement(E,{...ie(c,g,h==null?void 0:h.dragProps,v==null?void 0:v.dropProps),...C,ref:i,"data-allows-dragging":!!l||void 0,"data-selected":p.isSelected||void 0,"data-disabled":p.isDisabled||void 0,"data-hovered":y||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":p.isFocusVisible||void 0,"data-pressed":p.isPressed||void 0,"data-dragging":m||void 0,"data-drop-target":(v==null?void 0:v.isDropTarget)||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode},u.createElement(it,{values:[[il,{slots:{[Gr]:d,label:d,description:f}}]]},C.children))});function Sh(t,e){e=nt(e);let{dragAndDropHooks:r,dropState:n}=u.useContext(_i),{dropIndicatorProps:i,isHidden:o,isDropTarget:a}=r.useDropIndicator(t,n,e);return o?null:u.createElement($h,{...t,dropIndicatorProps:i,isDropTarget:a,ref:e})}function Fh(t,e){let{dropIndicatorProps:r,isDropTarget:n,...i}=t,o=Fe({...i,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:n}});return u.createElement("div",{...r,...o,role:"option",ref:e,"data-drop-target":n||void 0})}const $h=u.forwardRef(Fh),_h=u.createContext({placement:"bottom"}),qu=u.createContext(null),Ms=u.createContext(null),Pi=u.forwardRef(function(e,r){[e,r]=Xe(e,r,qu);let n=u.useContext(ul),i=al(e),o=e.isOpen!=null||e.defaultOpen!=null||!n?i:n,a=I5(r,o.isOpen)||e.isExiting||!1,l=H5(),{direction:s}=Bt();if(l){let c=e.children;return typeof c=="function"&&(c=c({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),u.createElement(u.Fragment,null,c)}return o&&!o.isOpen&&!a?null:u.createElement(Ph,{...e,triggerRef:e.triggerRef,state:o,popoverRef:r,isExiting:a,dir:s})});function Ph({state:t,isExiting:e,UNSTABLE_portalContainer:r,...n}){let i=u.useRef(null),[o,a]=u.useState(0),l=u.useRef(null),s=u.useContext(Ms),c=s&&n.trigger==="SubmenuTrigger";ne(()=>{i.current&&t.isOpen&&a(i.current.getBoundingClientRect().width)},[t.isOpen,i]);var d;let{popoverProps:f,underlayProps:p,arrowProps:g,placement:y}=_3({...n,offset:(d=n.offset)!==null&&d!==void 0?d:8,arrowSize:o,groupRef:c?s:l},t),h=n.popoverRef,v=k5(h,!!y)||n.isEntering||!1,m=Fe({...n,defaultClassName:"react-aria-Popover",values:{trigger:n.trigger||null,placement:y,isEntering:v,isExiting:e}}),C=!n.isNonModal||n.trigger==="SubmenuTrigger",[E,F]=u.useState(!1);ne(()=>{h.current&&F(C&&!h.current.querySelector("[role=dialog]"))},[h,C]),u.useEffect(()=>{E&&h.current&&!h.current.contains(document.activeElement)&&bt(h.current)},[E,h]);let D={...f.style,...m.style},w=u.createElement("div",{...ie(he(n),f),...m,role:E?"dialog":void 0,tabIndex:E?-1:void 0,"aria-label":n["aria-label"],"aria-labelledby":n["aria-labelledby"],ref:h,slot:n.slot||void 0,style:D,dir:n.dir,"data-trigger":n.trigger,"data-placement":y,"data-entering":v||void 0,"data-exiting":e||void 0},!n.isNonModal&&u.createElement(ws,{onDismiss:t.close}),u.createElement(_h.Provider,{value:{...g,placement:y,ref:i}},m.children),u.createElement(ws,{onDismiss:t.close}));if(!c)return u.createElement(xs,{...n,shouldContainFocus:E,isExiting:e,portalContainer:r},!n.isNonModal&&t.isOpen&&u.createElement("div",{"data-testid":"underlay",...p,style:{position:"fixed",inset:0}}),u.createElement("div",{ref:l,style:{display:"contents"}},u.createElement(Ms.Provider,{value:l},w)));var S;return u.createElement(xs,{...n,shouldContainFocus:E,isExiting:e,portalContainer:(S=r??(s==null?void 0:s.current))!==null&&S!==void 0?S:void 0},w)}const Ah=u.createContext({}),Th=u.createContext(null),cl=u.createContext(null),Ns=u.createContext(null),ni=u.createContext(null),kh=u.createContext(null),Yu=u.forwardRef(function(e,r){return[e,r]=Xe(e,r,Th),u.createElement(Si,{content:u.createElement(Ga,e)},n=>u.createElement(Ih,{props:e,collection:n,menuRef:r}))});function Ih({props:t,collection:e,menuRef:r}){let{filter:n,collectionProps:i,collectionRef:o}=u.useContext(sa)||{};r=nt(u.useMemo(()=>ka(r,o!==void 0?o:null),[o,r]));let a=u.useMemo(()=>n?e.UNSTABLE_filter(n):e,[e,n]),l=vh({...t,collection:a,children:void 0}),s=u.useContext(Ns),{isVirtualized:c,CollectionRoot:d}=u.useContext(Lt),{menuProps:f}=U3({...t,...i,isVirtualized:c,onClose:t.onClose||(s==null?void 0:s.close)},l,r),p=Fe({defaultClassName:"react-aria-Menu",className:t.className,style:t.style,values:{isEmpty:l.collection.size===0}}),g=null;return l.collection.size===0&&t.renderEmptyState&&(g=u.createElement("div",{role:"menuitem",style:{display:"contents"}},t.renderEmptyState())),u.createElement(Ya,null,u.createElement("div",{...he(t),...f,...p,ref:r,slot:t.slot||void 0,"data-empty":l.collection.size===0||void 0,onScroll:t.onScroll},u.createElement(it,{values:[[cl,l],[ll,{elementType:"div"}],[Vu,{name:"MenuSection",render:Mh}],[kh,{parentMenuRef:r,shouldUseVirtualFocus:i==null?void 0:i.shouldUseVirtualFocus}],[ca,null],[sa,null],[ni,l.selectionManager],[Ns,s??fh({})]]},u.createElement(d,{collection:l.collection,persistedKeys:zu(l.selectionManager.focusedKey),scrollRef:r})),g))}class Oh extends cn{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,r){return this.parent.setFocusedKey(e,r)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,r){super(e.collection,r),this.parent=e}}function Mh(t,e,r,n="react-aria-MenuSection"){var i,o;let a=u.useContext(cl),{CollectionBranch:l}=u.useContext(Lt),[s,c]=La();var d;let{headingProps:f,groupProps:p}=Z3({heading:c,"aria-label":(d=r.props["aria-label"])!==null&&d!==void 0?d:void 0}),g=Fe({defaultClassName:n,className:(i=r.props)===null||i===void 0?void 0:i.className,style:(o=r.props)===null||o===void 0?void 0:o.style,values:{}}),y=u.useContext(ni),h=ol(t),v=t.selectionMode!=null?new Oh(y,h):y;return u.createElement("section",{...he(t),...p,...g,ref:e},u.createElement(it,{values:[[Zu,{...f,ref:s}],[ni,v]]},u.createElement(l,{collection:a.collection,parent:r})))}const ca=u.createContext(null),ua=Fi("item",function(e,r,n){var i;[e,r]=Xe(e,r,ca);let o=(i=Ei(ca))===null||i===void 0?void 0:i.id,a=u.useContext(cl),l=nt(r),s=u.useContext(ni),{menuItemProps:c,labelProps:d,descriptionProps:f,keyboardShortcutProps:p,...g}=W3({...e,id:o,key:n.key,selectionManager:s},a,l),{hoverProps:y,isHovered:h}=wr({isDisabled:g.isDisabled}),v=Fe({...e,id:void 0,children:n.rendered,defaultClassName:"react-aria-MenuItem",values:{...g,isHovered:h,isFocusVisible:g.isFocusVisible,selectionMode:s.selectionMode,selectionBehavior:s.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),m=e.href?"a":"div";return u.createElement(m,{...ie(c,y),...v,ref:l,"data-disabled":g.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":g.isFocused||void 0,"data-focus-visible":g.isFocusVisible||void 0,"data-pressed":g.isPressed||void 0,"data-selected":g.isSelected||void 0,"data-selection-mode":s.selectionMode==="none"?void 0:s.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},u.createElement(it,{values:[[il,{slots:{[Gr]:d,label:d,description:f}}],[Ah,p]]},v.children))}),Nh=u.createContext(null),ul=u.createContext(null),Rh=u.forwardRef(function(e,r){let n=e["aria-labelledby"];[e,r]=Xe(e,r,Nh);let{dialogProps:i,titleProps:o}=G3({...e,"aria-labelledby":n},r),a=u.useContext(ul);!i["aria-label"]&&!i["aria-labelledby"]&&(e["aria-labelledby"]?i["aria-labelledby"]=e["aria-labelledby"]:process.env.NODE_ENV!=="production"&&console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));let l=Fe({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(a==null?void 0:a.close)||(()=>{})}});return u.createElement("section",{...he(e),...i,...l,ref:r,slot:e.slot||void 0},u.createElement(it,{values:[[Kf,{slots:{[Gr]:{},title:{...o,level:2}}}],[nl,{slots:{[Gr]:{},close:{onPress:()=>a==null?void 0:a.close()}}}]]},l.children))}),Xu=u.createContext(null),Ju=u.createContext(null),Bh=u.forwardRef(function(e,r){[e,r]=Xe(e,r,Xu);let{children:n,isDisabled:i=!1,isInvalid:o=!1,isRequired:a=!1}=e,l=u.useMemo(()=>typeof n=="function"?n({isOpen:!1,isDisabled:i,isInvalid:o,isRequired:a,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):n,[n,i,o,a]);return u.createElement(Si,{content:l},s=>u.createElement(Lh,{props:e,collection:s,selectRef:r}))});function Lh({props:t,selectRef:e,collection:r}){let{validationBehavior:n}=Ei(mh)||{};var i,o;let a=(o=(i=t.validationBehavior)!==null&&i!==void 0?i:n)!==null&&o!==void 0?o:"native",l=hh({...t,collection:r,children:void 0,validationBehavior:a}),{isFocusVisible:s,focusProps:c}=xr({within:!0}),d=u.useRef(null),[f,p]=La(!t["aria-label"]&&!t["aria-labelledby"]),{labelProps:g,triggerProps:y,valueProps:h,menuProps:v,descriptionProps:m,errorMessageProps:C,...E}=q3({...j5(t),label:p,validationBehavior:a},l,d),[F,D]=u.useState(null),w=u.useCallback(()=>{d.current&&D(d.current.offsetWidth+"px")},[d]);Uo({ref:d,onResize:w});let S=u.useMemo(()=>({isOpen:l.isOpen,isFocused:l.isFocused,isFocusVisible:s,isDisabled:t.isDisabled||!1,isInvalid:E.isInvalid||!1,isRequired:t.isRequired||!1}),[l.isOpen,l.isFocused,s,t.isDisabled,E.isInvalid,t.isRequired]),O=Fe({...t,values:S,defaultClassName:"react-aria-Select"}),K=he(t);delete K.id;let V=u.useRef(null);return u.createElement(it,{values:[[Xu,t],[Ju,l],[jh,h],[Bu,{...g,ref:f,elementType:"span"}],[nl,{...y,ref:d,isPressed:l.isOpen}],[ul,l],[qu,{trigger:"Select",triggerRef:d,scrollRef:V,placement:"bottom start",style:{"--trigger-width":F},"aria-labelledby":v["aria-labelledby"]}],[sl,{...v,ref:V}],[un,l],[il,{slots:{description:m,errorMessage:C}}],[sh,E]]},u.createElement("div",{...K,...O,...c,ref:e,slot:t.slot||void 0,"data-focused":l.isFocused||void 0,"data-focus-visible":s||void 0,"data-open":l.isOpen||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":E.isInvalid||void 0,"data-required":t.isRequired||void 0}),u.createElement(X3,{autoComplete:t.autoComplete,state:l,triggerRef:d,label:p,name:t.name,isDisabled:t.isDisabled}))}const jh=u.createContext(null),Ai=u.createContext(null),br=u.createContext(null),Kh=u.forwardRef(function(e,r){[e,r]=Xe(e,r,Ai);let{children:n,orientation:i="horizontal"}=e;return n=u.useMemo(()=>typeof n=="function"?n({orientation:i,defaultChildren:null}):n,[n,i]),u.createElement(Si,{content:n},o=>u.createElement(Vh,{props:e,collection:o,tabsRef:r}))});function Vh({props:t,tabsRef:e,collection:r}){let{orientation:n="horizontal"}=t,i=ph({...t,collection:r,children:void 0}),{focusProps:o,isFocused:a,isFocusVisible:l}=xr({within:!0}),s=u.useMemo(()=>({orientation:n,isFocusWithin:a,isFocusVisible:l}),[n,a,l]),c=Fe({...t,defaultClassName:"react-aria-Tabs",values:s});return u.createElement("div",{...he(t),...o,...c,ref:e,slot:t.slot||void 0,"data-focused":a||void 0,"data-orientation":n,"data-focus-visible":l||void 0,"data-disabled":i.isDisabled||void 0},u.createElement(it,{values:[[Ai,t],[br,i]]},c.children))}const Hh=u.forwardRef(function(e,r){return u.useContext(br)?u.createElement(zh,{props:e,forwardedRef:r}):u.createElement(Ga,e)});function zh({props:t,forwardedRef:e}){let r=u.useContext(br),{CollectionRoot:n}=u.useContext(Lt),{orientation:i="horizontal",keyboardActivation:o="automatic"}=Ei(Ai),a=nt(e),{tabListProps:l}=rh({...t,orientation:i,keyboardActivation:o},r,a),s=Fe({...t,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:r}}),c=he(t);return delete c.id,u.createElement("div",{...c,...l,ref:a,...s,"data-orientation":i||void 0},u.createElement(n,{collection:r.collection,persistedKeys:zu(r.selectionManager.focusedKey)}))}const Uh=Fi("item",(t,e,r)=>{let n=u.useContext(br),i=nt(e),{tabProps:o,isSelected:a,isDisabled:l,isPressed:s}=Q3({key:r.key,...t},n,i),{focusProps:c,isFocused:d,isFocusVisible:f}=xr(),{hoverProps:p,isHovered:g}=wr({isDisabled:l,onHoverStart:t.onHoverStart,onHoverEnd:t.onHoverEnd,onHoverChange:t.onHoverChange}),y=Fe({...t,id:void 0,children:r.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:a,isDisabled:l,isFocused:d,isFocusVisible:f,isPressed:s,isHovered:g}}),h=r.props.href?"a":"div";return u.createElement(h,{...ie(o,c,p,y),ref:i,"data-selected":a||void 0,"data-disabled":l||void 0,"data-focused":d||void 0,"data-focus-visible":f||void 0,"data-pressed":s||void 0,"data-hovered":g||void 0},y.children)}),Wh=Va(function(e,r){const n=u.useContext(br);let i=nt(r),{tabPanelProps:o}=eh(e,n,i),{focusProps:a,isFocused:l,isFocusVisible:s}=xr(),c=n.selectedKey===e.id,d=Fe({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:l,isFocusVisible:s,isInert:!c,state:n}});if(!c&&!e.shouldForceMount)return null;let f=he(e);delete f.id;let p=c?ie(f,o,a,d):d;return u.createElement("div",{...p,ref:i,"data-focused":l||void 0,"data-focus-visible":s||void 0,inert:P5(!c),"data-inert":c?void 0:"true"},u.createElement(it,{values:[[Ai,null],[br,null]]},u.createElement(Lt.Provider,{value:Hu},d.children)))}),Zh=t=>"type"in t&&t.type==="separator",Yr=({options:t,isOpen:e=!1,onOpenChange:r,children:n,selectedValues:i=[],onSelectValue:o,topMessage:a,shouldCloseOnInteractOutside:l})=>{const s=u.useId(),c=u.useRef(null),d=f=>{r==null||r(f)};return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"c__dropdown-menu-trigger",ref:c,id:s,onClick:f=>{f.stopPropagation(),f.preventDefault()},children:n}),b.jsx(Pi,{triggerRef:c,style:{marginTop:"0px"},isOpen:e,shouldCloseOnInteractOutside:l,onOpenChange:d,children:b.jsxs(Yu,{className:"c__dropdown-menu","aria-labelledby":s,children:[a&&b.jsx(ua,{className:"c__dropdown-menu-item-top-message",children:a}),t.map((f,p)=>{if(Zh(f))return b.jsx(ri,{},`separator-${p}`);if(f.isHidden)return null;const g=f.id||f.label;return b.jsxs(u.Fragment,{children:[b.jsxs(ua,{className:`c__dropdown-menu-item${f.variant==="danger"?" c__dropdown-menu-item--danger":""}`,"aria-label":f.label,onAction:()=>{var y;f.value&&(o==null||o(f.value)),(y=f.callback)==null||y.call(f),d(!1)},isDisabled:f.isDisabled,"data-testid":f.testId,children:[f.icon,b.jsxs("div",{className:"c__dropdown-menu-item__label-container",children:[b.jsx("div",{className:"c__dropdown-menu-item__label","aria-label":f.label,children:f.label}),f.subText&&b.jsx("div",{className:"c__dropdown-menu-item__label-subtext",children:f.subText})]}),(f.isChecked||f.value&&i.includes(f.value))&&b.jsx("span",{className:"material-icons checked",children:"check"})]}),f.showSeparator&&b.jsx(ri,{})]},g)})]})})]})},mr=()=>{const[t,e]=u.useState(!1);return{isOpen:t,setIsOpen:e}},da=u.createContext(null),Qu=()=>{const t=u.useContext(da);if(!t)throw new Error("ContextMenu must be used within a ContextMenuProvider");return t},fo=t=>!("type"in t),Rs=(t,e)=>t.id||`${t.label}-${e}`,Gh=({children:t})=>{const e=u.useContext(da),[r,n]=u.useState({isOpen:!1,position:{x:0,y:0},items:[]}),i=u.useRef(null),o=u.useRef(!1),a=u.useRef(void 0),l=e!==null;u.useEffect(()=>{o.current=r.isOpen},[r.isOpen]),u.useEffect(()=>{l||i.current&&(i.current.style.left=`${r.position.x}px`,i.current.style.top=`${r.position.y}px`)},[r.position,l]),u.useEffect(()=>{if(l)return;const f=p=>{var g;o.current&&(p.preventDefault(),(g=a.current)==null||g.call(a),a.current=void 0,n(y=>({...y,isOpen:!1})))};return document.addEventListener("contextmenu",f,!0),()=>{document.removeEventListener("contextmenu",f,!0)}},[l]);const s=u.useCallback(f=>{var p;(p=a.current)==null||p.call(a),a.current=f.onBlur,n({isOpen:!0,position:f.position,items:f.items})},[]),c=u.useCallback(()=>{var f;(f=a.current)==null||f.call(a),a.current=void 0,n(p=>({...p,isOpen:!1}))},[]),d=u.useMemo(()=>({open:s,close:c}),[s,c]);return l?(process.env.NODE_ENV!=="production"&&console.error("ContextMenuProvider: Multiple instances detected. Only one ContextMenuProvider should exist in your app tree. Nested providers will be ignored."),b.jsx(b.Fragment,{children:t})):b.jsxs(da.Provider,{value:d,children:[t,b.jsx("div",{ref:i,style:{position:"fixed",left:r.position.x,top:r.position.y,width:0,height:0,pointerEvents:"none"}}),b.jsx(Pi,{triggerRef:i,isOpen:r.isOpen,onOpenChange:f=>{f||c()},placement:"bottom start",shouldFlip:!0,children:b.jsx(Yu,{className:"c__dropdown-menu","aria-label":"Context menu","data-testid":"context-menu",onAction:f=>{var g;const p=r.items.find((y,h)=>fo(y)&&Rs(y,h)===f);p&&fo(p)&&!p.isDisabled&&((g=p.callback)==null||g.call(p),c())},children:r.items.map((f,p)=>{if(!fo(f))return b.jsx(ri,{},`separator-${p}`);if(f.isHidden)return null;const g=Rs(f,p);return b.jsxs(ua,{id:g,className:`c__dropdown-menu-item${f.variant==="danger"?" c__dropdown-menu-item--danger":""}`,"aria-label":f.label,isDisabled:f.isDisabled,"data-testid":f.testId||`context-menu-item-${g}`,children:[f.icon,b.jsxs("div",{className:"c__dropdown-menu-item__label-container",children:[b.jsx("div",{className:"c__dropdown-menu-item__label",children:f.label}),f.subText&&b.jsx("div",{className:"c__dropdown-menu-item__label-subtext",children:f.subText})]})]},g)})})})]})},qh=({children:t,options:e,context:r,disabled:n=!1,asChild:i=!1,onFocus:o,onBlur:a})=>{const{open:l}=Qu(),s=c=>{if(n)return;c.preventDefault(),c.stopPropagation();const d=typeof e=="function"?e(r):e;o==null||o(),l({position:{x:c.clientX,y:c.clientY},items:d,onBlur:a})};if(i){if(!u.isValidElement(t))return console.warn("ContextMenu with asChild requires a single React element as child"),b.jsx(b.Fragment,{children:t});const c=t,d=c.props.onContextMenu;return u.cloneElement(c,{onContextMenu:f=>{d==null||d(f),s(f)}})}return b.jsx("div",{onContextMenu:s,"data-testid":"context-menu-trigger",children:t})},Bs="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M10%206v2H5v11h11v-5h2v6a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1V7a1%201%200%200%201%201-1h6Zm11-3v8h-2V6.413l-7.793%207.794-1.414-1.414L17.585%205H13V3h8Z'%20/%3e%3c/svg%3e",Yh="data:image/svg+xml,%3csvg%20width='109'%20height='60'%20viewBox='0%200%20109%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3crect%20width='33'%20height='12'%20fill='url(%23paint0_linear_5795_13250)'%20/%3e%3cg%20clip-path='url(%23clip0_5795_13250)'%3e%3cg%20clip-path='url(%23clip1_5795_13250)'%3e%3cpath%20d='M8.475%206.8999C7.8%207.3499%207.2%207.8749%206.75%208.4749V8.3999C7.05%208.0249%207.275%207.6499%207.5%207.2749C7.8%207.1249%208.025%206.8999%208.25%206.6749C8.625%206.2999%209%205.9249%209.525%205.6999C9.75%205.6249%209.9%205.6249%2010.125%205.6999C10.05%205.7749%209.975%205.7749%209.825%205.8499H9.75V5.7749C9.525%205.9999%209.225%206.1499%209%206.4499C8.925%206.5999%208.85%206.8999%208.475%206.8999C8.55%206.8999%208.475%206.9749%208.475%206.8999ZM9.675%2010.3499C9.675%2010.2749%209.6%2010.3499%209.525%2010.3499L9.45%2010.4249L9.375%2010.4999L9.225%2010.6499C9.225%2010.6499%209.3%2010.7249%209.375%2010.6499L9.45%2010.5749C9.525%2010.5749%209.6%2010.4999%209.6%2010.4249C9.675%2010.4249%209.675%2010.4249%209.675%2010.3499ZM8.475%207.1249C8.55%207.1249%208.625%207.1249%208.625%207.0499C8.625%206.9749%208.7%206.9749%208.7%206.9749V6.8999C8.55%206.9749%208.475%207.0499%208.475%207.1249ZM10.275%208.5499C10.35%208.4749%2010.425%208.4749%2010.5%208.4749C11.025%208.3999%2011.55%208.2499%2012.075%208.0249C11.475%207.6499%2010.8%207.3499%2010.125%207.2749H10.2C10.125%207.1999%209.975%207.1999%209.825%207.1249H9.9C9.75%207.0499%209.525%207.0499%209.375%206.9749C9.45%206.9749%209.525%206.8249%209.525%206.7499H9.45C9.15%206.8999%209%207.1249%208.85%207.4249C9%207.4999%209.225%207.4249%209.375%207.4999H9.15C9.075%207.4999%209%207.5749%209%207.6499H9.075C9%207.6499%209%207.7249%208.925%207.7249C9%207.7999%209.075%207.7249%209.225%207.7249C9.225%207.7999%209.3%207.7999%209.3%207.7999C9.225%207.7999%209.15%207.8749%209.075%208.0249C9%208.1749%208.925%208.1749%208.85%208.2499V8.3249C8.625%208.4749%208.4%208.6999%208.175%208.9249V8.9999C8.1%209.0749%208.025%209.0749%208.025%209.1499V9.2249C8.325%209.1499%208.475%208.9249%208.775%208.8499L9.225%208.6249C9.375%208.6249%209.45%208.5499%209.6%208.5499V8.6249H9.75C9.75%208.6999%209.6%208.6249%209.675%208.6999C9.75%208.7749%209.9%208.7749%209.975%208.6999C10.125%208.5499%2010.2%208.5499%2010.275%208.5499ZM9.3%209.7499C9%209.8999%208.625%209.8999%208.4%2010.0499C8.4%2010.0499%208.4%2010.1249%208.325%2010.1249C8.325%2010.1249%208.25%2010.1249%208.25%2010.1999C8.175%2010.1999%208.175%2010.2749%208.1%2010.3499L8.025%2010.4249C8.025%2010.4249%208.025%2010.4999%208.1%2010.4249L8.175%2010.3499C8.175%2010.3499%208.1%2010.4249%208.1%2010.4999V10.7249L8.025%2010.7999C8.025%2010.7999%208.025%2010.8749%207.95%2010.8749L7.875%2010.9499L8.025%2010.7999L8.1%2010.7249H8.25C8.25%2010.7249%208.25%2010.6499%208.325%2010.6499C8.4%2010.5749%208.475%2010.4999%208.55%2010.4999H8.625C8.7%2010.4249%208.85%2010.4249%208.925%2010.3499C9%2010.2749%209.075%2010.1999%209.15%2010.1999C9.3%2010.0499%209.525%209.9749%209.75%209.8249C9.675%209.8249%209.6%209.7499%209.525%209.7499C9.525%209.8249%209.375%209.7499%209.3%209.7499ZM22.5%206.5249C22.425%206.6749%2022.2%206.6749%2022.05%206.7499C21.9%206.8999%2022.05%207.0499%2022.125%207.1249C22.2%207.3499%2021.975%207.4999%2021.825%207.4999C21.9%207.5749%2021.975%207.5749%2021.975%207.5749C21.975%207.7249%2022.125%207.7249%2022.05%207.8749C21.975%208.0249%2021.675%208.0999%2021.825%208.2499C21.9%208.3999%2021.9%208.6249%2021.825%208.7749C21.75%208.9249%2021.6%209.0749%2021.45%209.1499C21.3%209.2249%2021.15%209.2249%2021%209.1499C20.925%209.1499%2020.925%209.0749%2020.85%209.0749C20.475%208.9999%2020.1%208.9249%2019.725%208.9249C19.65%208.9249%2019.5%208.9999%2019.425%208.9999C19.35%209.0749%2019.2%209.1499%2019.125%209.2249L19.05%209.2999C18.975%209.3749%2018.9%209.4499%2018.9%209.5249C18.825%209.6749%2018.75%209.8249%2018.75%209.9749C18.6%2010.3499%2018.6%2010.7249%2018.75%2011.0249C18.75%2011.0249%2019.5%2011.2499%2020.025%2011.4749C20.175%2011.5499%2020.4%2011.6249%2020.55%2011.7749L21.825%2012.5249H9.9L11.1%2011.7749C11.55%2011.4749%2012.075%2011.2499%2012.6%2011.0249C12.975%2010.8749%2013.425%2010.6499%2013.725%2010.3499C13.875%2010.1999%2013.95%2010.0499%2014.1%209.9749C14.325%209.6749%2014.55%209.4499%2014.85%209.2249L15.075%208.9999C15.075%208.9999%2015.075%208.9249%2015.15%208.9249C15%208.9999%2015%209.0749%2014.85%209.0749C14.85%209.0749%2014.775%209.0749%2014.85%208.9999C14.925%208.9249%2015%208.8499%2015.075%208.8499V8.7749C14.775%208.7749%2014.55%208.9249%2014.325%209.1499H14.175C13.8%209.2999%2013.575%209.5249%2013.275%209.6749V9.5999C13.125%209.6749%2012.975%209.7499%2012.9%209.7499C12.75%209.7499%2012.525%209.8249%2012.3%209.7499C12%209.7499%2011.775%209.8249%2011.475%209.8999C11.325%209.9749%2011.175%209.9749%2011.025%2010.0499V10.1249L10.875%2010.2749C10.725%2010.3499%2010.65%2010.4249%2010.5%2010.5749L10.125%2010.9499H10.05L10.125%2010.8749L10.2%2010.7999C10.2%2010.7249%2010.275%2010.7249%2010.275%2010.6499C10.425%2010.5749%2010.5%2010.4249%2010.65%2010.3499C10.65%2010.3499%2010.65%2010.2749%2010.725%2010.2749L10.65%2010.3499C10.575%2010.4249%2010.575%2010.4999%2010.5%2010.4999V10.4249V10.3499L10.65%2010.1999C10.725%2010.1249%2010.8%2010.1249%2010.875%2010.0499H10.95C10.8%2010.1249%2010.725%2010.1249%2010.575%2010.1999H10.5H10.425C10.425%2010.1249%2010.5%2010.1249%2010.575%2010.0499H10.65C11.4%209.4499%2012.375%209.5999%2013.2%209.2999C13.275%209.2249%2013.35%209.2249%2013.425%209.1499C13.5%209.0749%2013.65%208.9999%2013.8%208.9249C13.95%208.7749%2014.1%208.6249%2014.175%208.3999V8.3249C13.875%208.6249%2013.575%208.8499%2013.2%209.0749C12.75%209.2249%2012.225%209.3749%2011.7%209.3749C11.7%209.2999%2011.775%209.2999%2011.775%209.2999C11.775%209.2249%2011.85%209.2249%2011.85%209.1499H11.925C11.925%209.1499%2011.925%209.0749%2012%209.0749H12.075C12%208.9999%2011.85%209.1499%2011.775%209.0749C11.85%208.9999%2011.775%208.9249%2011.85%208.9249H11.925C11.925%208.9249%2011.925%208.8499%2012%208.8499C12.375%208.6249%2012.675%208.4749%2012.975%208.3249C12.9%208.3249%2012.9%208.3999%2012.825%208.3249C12.9%208.3249%2012.825%208.2499%2012.9%208.2499C13.125%208.1749%2013.35%208.0249%2013.575%207.9499C13.5%207.9499%2013.425%208.0249%2013.35%207.9499C13.425%207.9499%2013.425%207.8749%2013.5%207.8749V7.7999C13.5%207.7249%2013.575%207.7999%2013.65%207.7249H13.575C13.65%207.6499%2013.725%207.5749%2013.875%207.5749C13.875%207.4999%2013.8%207.5749%2013.8%207.4999H13.875H13.5C13.425%207.4999%2013.5%207.4249%2013.5%207.4249C13.575%207.2749%2013.65%207.0499%2013.725%206.8999H13.65C13.425%207.1249%2013.05%207.2749%2012.75%207.3499H12.6C12.45%207.4249%2012.3%207.4249%2012.225%207.3499C12.15%207.2749%2012.075%207.1999%2012%207.1999C11.85%207.1249%2011.625%206.9749%2011.4%206.8999C10.875%206.7499%2010.275%206.5999%209.675%206.6749C9.9%206.5999%2010.2%206.5249%2010.5%206.4499C10.875%206.2999%2011.25%206.2249%2011.625%206.2249H11.4C11.1%206.2249%2010.725%206.2999%2010.425%206.3749C10.2%206.4499%209.975%206.5249%209.75%206.5249C9.6%206.5999%209.525%206.6749%209.375%206.6749V6.5999C9.6%206.2999%209.9%206.0749%2010.2%205.9999C10.575%205.9249%2011.025%205.9999%2011.4%206.0749C11.7%206.0749%2012%206.1499%2012.225%206.2249C12.3%206.2249%2012.375%206.3749%2012.45%206.4499C12.6%206.5249%2012.75%206.4499%2012.825%206.5249V6.3749C12.9%206.2999%2013.05%206.3749%2013.125%206.3749C13.275%206.2249%2012.975%206.0749%2012.9%205.9249V5.8499C13.05%205.9999%2013.275%206.1499%2013.425%206.2999C13.5%206.3749%2013.8%206.4499%2013.8%206.2999C13.65%206.0749%2013.5%205.8499%2013.275%205.6249V5.4749C13.2%205.4749%2013.2%205.4749%2013.2%205.3999C13.125%205.3249%2013.125%205.2499%2013.125%205.1749C13.05%205.0249%2013.125%204.8749%2013.05%204.7999C12.975%204.6499%2012.975%204.5749%2012.975%204.4249C12.9%204.0499%2012.825%203.6749%2012.75%203.3749C12.675%202.9249%2012.975%202.6249%2013.2%202.2499C13.35%201.9499%2013.575%201.7249%2013.8%201.4999C13.875%201.1999%2014.025%200.974902%2014.25%200.749902C14.475%200.524902%2014.7%200.374902%2014.925%200.299902C15.15%200.224902%2015.3%200.149902%2015.525%200.0749024L17.4%20-0.225098H18.75L20.1%20-9.76473e-05C20.175%20-9.76473e-05%2020.25%20-9.76324e-05%2020.25%200.0749024C20.325%200.149902%2020.475%200.224902%2020.55%200.224902C20.7%200.299902%2020.85%200.449902%2021%200.599902C21.075%200.674902%2021.15%200.824902%2021.075%200.899902C21%200.974902%2021%201.1999%2020.925%201.1999C20.775%201.2749%2020.625%201.2749%2020.475%201.2749C20.4%201.2749%2020.325%201.2749%2020.175%201.1999C20.55%201.3499%2020.85%201.4999%2021.075%201.7999C21.075%201.8749%2021.225%201.8749%2021.3%201.8749V1.9499C21.225%202.0249%2021.225%202.0249%2021.225%202.0999H21.3C21.375%202.0249%2021.375%201.7999%2021.525%201.8749C21.675%201.9499%2021.675%202.0999%2021.6%202.1749C21.525%202.2499%2021.45%202.3249%2021.3%202.3999V2.5499C21.375%202.6249%2021.375%202.6999%2021.45%202.8499C21.525%202.9999%2021.525%203.2249%2021.6%203.3749C21.675%203.7499%2021.75%204.0499%2021.75%204.4249C21.75%204.5749%2021.675%204.7999%2021.75%204.9499L21.975%205.3999C22.05%205.5499%2022.125%205.6249%2022.2%205.7749C22.35%205.9999%2022.65%206.2249%2022.5%206.5249ZM10.8%2010.4249C10.725%2010.4249%2010.725%2010.4999%2010.725%2010.4999C10.725%2010.4999%2010.8%2010.4999%2010.8%2010.4249ZM10.125%208.9249C10.125%208.9999%2010.2%208.9249%2010.2%208.9249C10.35%208.8499%2010.575%208.9249%2010.65%208.7749C10.575%208.6999%2010.5%208.7749%2010.5%208.6999C10.425%208.6999%2010.35%208.6999%2010.35%208.7749C10.275%208.8499%2010.125%208.8499%2010.125%208.9249Z'%20fill='white'%20/%3e%3cpath%20d='M20.925%204.3501C21%204.3501%2021.15%204.3501%2021.15%204.4251C21.075%204.5751%2020.85%204.6501%2020.7%204.8001H20.625C20.55%204.8751%2020.55%204.9501%2020.55%204.9501H20.325C20.4%205.0251%2020.55%205.1001%2020.7%205.1001L20.775%205.1751H20.925V5.2501C20.85%205.3251%2020.775%205.3251%2020.625%205.3251C20.775%205.4001%2021%205.4001%2021.15%205.3251C21.3%205.2501%2021.15%205.0251%2021.225%204.9501C21.15%204.9501%2021.225%204.8751%2021.15%204.8751C21.225%204.8001%2021.225%204.7251%2021.3%204.7251C21.375%204.7251%2021.375%204.7251%2021.45%204.6501C21.45%204.5751%2021.375%204.5751%2021.375%204.5001C21.525%204.4251%2021.6%204.2751%2021.6%204.1251C21.6%204.0501%2021.375%204.0501%2021.3%203.9751H20.925C20.775%203.9751%2020.7%204.0501%2020.55%204.0501L20.1%204.2751C20.25%204.2001%2020.4%204.2001%2020.625%204.1251C20.625%204.3501%2020.775%204.3501%2020.925%204.3501Z'%20fill='%237C7C7C'%20/%3e%3c/g%3e%3c/g%3e%3cpath%20d='M5.355%2025.5762C6.1866%2025.5762%206.9048%2025.2864%207.4088%2024.8076V23.2704H5.166V21.7458H9.198V25.4502C8.379%2026.5464%207.0056%2027.252%205.355%2027.252C2.4948%2027.252%200.5418%2025.11%200.5418%2022.59C0.5418%2020.07%202.4444%2017.928%205.229%2017.928C6.8292%2017.928%208.1396%2018.6462%208.946%2019.7172L7.5348%2020.8134C7.0308%2020.0952%206.237%2019.6038%205.229%2019.6038C3.5658%2019.6038%202.3814%2020.9016%202.3814%2022.59C2.3814%2024.2784%203.6288%2025.5762%205.355%2025.5762ZM15.2175%2017.928C17.9895%2017.928%2019.8921%2020.07%2019.8921%2022.59C19.8921%2025.11%2017.9895%2027.252%2015.2175%2027.252C12.4329%2027.252%2010.5303%2025.11%2010.5303%2022.59C10.5303%2020.07%2012.4329%2017.928%2015.2175%2017.928ZM15.2175%2025.5762C16.8681%2025.5762%2018.0525%2024.2784%2018.0525%2022.59C18.0525%2020.9016%2016.8681%2019.6038%2015.2175%2019.6038C13.5543%2019.6038%2012.3699%2020.9016%2012.3699%2022.59C12.3699%2024.2784%2013.5543%2025.5762%2015.2175%2025.5762ZM26.8084%2023.6988V18.18H28.5976V23.5476C28.5976%2025.866%2027.2368%2027.252%2025.0192%2027.252C22.8142%2027.252%2021.4534%2025.866%2021.4534%2023.5476V18.18H23.2426V23.6988C23.2426%2024.8832%2023.9104%2025.5762%2025.0318%2025.5762C26.128%2025.5762%2026.8084%2024.8832%2026.8084%2023.6988ZM29.7114%2018.18H31.614L34.2222%2025.0722L36.8304%2018.18H38.733L35.394%2027H33.0504L29.7114%2018.18ZM40.095%2027V18.18H45.2358V19.6668H41.8842V21.7584H44.7318V23.2452H41.8842V25.5132H45.2358V27H40.095ZM47.3149%2027V18.18H50.0113C51.9517%2018.18%2053.1487%2019.1754%2053.1487%2020.8134C53.1487%2021.8844%2052.6321%2022.6782%2051.7249%2023.094L54.4843%2027H52.3801L50.0239%2023.4342H49.1041V27H47.3149ZM50.1121%2019.6668H49.1041V21.9474H50.1121C50.8681%2021.9474%2051.3091%2021.5064%2051.3091%2020.7882C51.3091%2020.1204%2050.8681%2019.6668%2050.1121%2019.6668ZM55.6176%2027V18.18H57.9108L61.8546%2024.5556V18.18H63.6438V27H61.3506L57.4068%2020.6244V27H55.6176ZM66.1105%2027V18.18H71.2513V19.6668H67.8997V21.7584H70.7473V23.2452H67.8997V25.5132H71.2513V27H66.1105ZM73.3304%2027V18.18H75.5606L77.7152%2021.8844L79.8698%2018.18H82.1V27H80.3108V20.6748L78.3452%2023.976H77.0852L75.1196%2020.6748V27H73.3304ZM84.5617%2027V18.18H89.7025V19.6668H86.3509V21.7584H89.1985V23.2452H86.3509V25.5132H89.7025V27H84.5617ZM91.7816%2027V18.18H94.0748L98.0186%2024.5556V18.18H99.8078V27H97.5146L93.5708%2020.6244V27H91.7816ZM101.367%2019.8054V18.18H108.6V19.8054H105.878V27H104.089V19.8054H101.367Z'%20fill='%23161616'%20/%3e%3cg%20clip-path='url(%23clip2_5795_13250)'%3e%3cg%20clip-path='url(%23clip3_5795_13250)'%3e%3cg%20clip-path='url(%23clip4_5795_13250)'%3e%3cg%20clip-path='url(%23clip5_5795_13250)'%3e%3cg%20clip-path='url(%23clip6_5795_13250)'%3e%3cpath%20d='M30.775%2056.45C31.15%2055.5%2030.7%2055.125%2030.15%2055.125C29.225%2055.125%2028.175%2056.75%2028.175%2058.05C28.175%2058.675%2028.475%2059%2028.925%2059C29.45%2059%2030%2058.5%2030.475%2057.625H30.225C29.925%2058%2029.575%2058.275%2029.25%2058.275C28.925%2058.275%2028.75%2058.075%2028.75%2057.625C28.7558%2057.4396%2028.781%2057.2552%2028.825%2057.075L30.775%2056.45ZM29.775%2055.675C30.05%2055.675%2030.275%2055.875%2030.15%2056.325L28.95%2056.65C29.15%2056.1%2029.5%2055.65%2029.8%2055.65L29.775%2055.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cpath%20d='M30.15%2054.6999L31.275%2053.6749V53.5249H30.525L29.85%2054.6999H30.175H30.15Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip7_5795_13250)'%3e%3cpath%20d='M25.975%2055.675H26.625L25.575%2058.525C25.5421%2058.576%2025.5242%2058.6352%2025.5232%2058.6959C25.5222%2058.7565%2025.5382%2058.8163%2025.5694%2058.8683C25.6007%2058.9204%2025.6458%2058.9626%2025.6998%2058.9903C25.7538%2059.018%2025.8145%2059.03%2025.875%2059.025C26.625%2059.025%2027.475%2058.375%2027.825%2057.475H27.65C27.3359%2057.9021%2026.8865%2058.2105%2026.375%2058.35L27.3%2055.675H28.3L28.425%2055.275H27.475L27.8%2054.25H27.45L26.775%2055.275L25.975%2055.375V55.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip8_5795_13250)'%3e%3cpath%20d='M25.3%2055.5249C25.375%2055.2749%2025.2%2055.1249%2025.05%2055.1249C24.5%2055.1249%2023.8%2055.6499%2023.55%2056.3749H23.725C23.9026%2056.0881%2024.1778%2055.875%2024.5%2055.7749L23.425%2058.5999C23.4034%2058.6422%2023.3932%2058.6894%2023.3952%2058.7368C23.3973%2058.7843%2023.4116%2058.8304%2023.4368%2058.8707C23.4619%2058.911%2023.4971%2058.9441%2023.5389%2058.9667C23.5806%2058.9893%2023.6275%2059.0008%2023.675%2058.9999C24.225%2058.9999%2024.85%2058.4999%2025.125%2057.7499H24.9C24.7378%2058.0509%2024.471%2058.2821%2024.15%2058.3999L25.3%2055.5249ZM25.4%2054.4499C25.4591%2054.4499%2025.5176%2054.4383%2025.5722%2054.4156C25.6268%2054.393%2025.6764%2054.3599%2025.7182%2054.3181C25.76%2054.2763%2025.7932%2054.2267%2025.8158%2054.1721C25.8384%2054.1175%2025.85%2054.059%2025.85%2053.9999C25.8534%2053.9387%2025.8443%2053.8775%2025.8232%2053.82C25.8021%2053.7625%2025.7695%2053.7099%2025.7274%2053.6654C25.6853%2053.6209%2025.6345%2053.5855%2025.5782%2053.5614C25.5219%2053.5372%2025.4613%2053.5248%2025.4%2053.5249C25.2807%2053.5249%2025.1662%2053.5723%2025.0818%2053.6567C24.9974%2053.7411%2024.95%2053.8556%2024.95%2053.9749C24.95%2054.0943%2024.9974%2054.2087%2025.0818%2054.2931C25.1662%2054.3775%2025.2807%2054.4249%2025.4%2054.4249'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip9_5795_13250)'%3e%3cpath%20d='M20.125%2055.8999C20.3%2055.8999%2020.375%2056.1499%2020.125%2056.7499L19.375%2058.4499C19.2%2058.7749%2019.375%2058.9999%2019.675%2058.9999C19.7577%2059.0148%2019.843%2058.997%2019.9129%2058.9504C19.9828%2058.9038%2020.0319%2058.8319%2020.05%2058.7499L20.8%2056.7499C21.15%2056.3249%2021.8%2055.8749%2022.05%2055.8749C22.3%2055.8749%2022.25%2056.0249%2022.125%2056.2749L20.975%2058.5249C20.9497%2058.5734%2020.9371%2058.6276%2020.9383%2058.6823C20.9395%2058.737%2020.9545%2058.7906%2020.9819%2058.838C21.0094%2058.8854%2021.0483%2058.925%2021.0952%2058.9533C21.142%2058.9816%2021.1953%2058.9976%2021.25%2058.9999C21.825%2058.9999%2022.5%2058.4999%2022.75%2057.7499H22.6C22.4209%2058.051%2022.1355%2058.274%2021.8%2058.3749L22.8%2056.3749C22.9222%2056.1611%2022.9908%2055.9209%2023%2055.6749C23.0079%2055.6007%2022.9991%2055.5257%2022.9742%2055.4554C22.9494%2055.3851%2022.9091%2055.3212%2022.8564%2055.2685C22.8036%2055.2158%2022.7398%2055.1755%2022.6695%2055.1507C22.5991%2055.1258%2022.5242%2055.117%2022.45%2055.1249C21.95%2055.1249%2021.55%2055.6749%2020.95%2056.3749V55.8249C20.95%2055.4749%2020.825%2055.1249%2020.5%2055.1249C20.1%2055.1249%2019.75%2055.7499%2019.475%2056.3499H19.65C19.825%2056.0749%2019.975%2055.8999%2020.15%2055.8999'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip10_5795_13250)'%3e%3cpath%20d='M19.375%2056C19.5%2055.525%2019.425%2055.125%2019.075%2055.125C18.625%2055.125%2018.5%2055.425%2018.075%2056.375V55.825C18.05%2055.45%2017.925%2055.125%2017.575%2055.125C17.2%2055.125%2016.85%2055.75%2016.55%2056.375H16.75C16.925%2056.05%2017.125%2055.875%2017.25%2055.875C17.425%2055.875%2017.5%2056.125%2017.25%2056.725L16.5%2058.425C16.325%2058.75%2016.5%2058.95%2016.8%2058.95C16.8827%2058.9649%2016.968%2058.9472%2017.0379%2058.9006C17.1078%2058.8539%2017.1569%2058.7821%2017.175%2058.7L17.925%2056.7C18.1317%2056.4415%2018.3486%2056.1913%2018.575%2055.95H19.375V56Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip11_5795_13250)'%3e%3cpath%20d='M16.175%2056.45C16.55%2055.5%2016.1%2055.125%2015.55%2055.125C14.625%2055.125%2013.575%2056.75%2013.575%2058.05C13.575%2058.675%2013.875%2059%2014.325%2059C14.85%2059%2015.4%2058.5%2015.875%2057.625H15.625C15.325%2058%2014.975%2058.275%2014.65%2058.275C14.325%2058.275%2014.15%2058.075%2014.15%2057.625C14.1559%2057.4396%2014.181%2057.2552%2014.225%2057.075L16.175%2056.45ZM15.175%2055.675C15.45%2055.675%2015.675%2055.875%2015.55%2056.325L14.35%2056.65C14.55%2056.1%2014.9%2055.65%2015.2%2055.65L15.175%2055.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip12_5795_13250)'%3e%3cpath%20d='M11.35%2055.675H12L10.95%2058.525C10.9171%2058.576%2010.8992%2058.6352%2010.8982%2058.6959C10.8972%2058.7565%2010.9132%2058.8163%2010.9444%2058.8683C10.9757%2058.9204%2011.0208%2058.9626%2011.0748%2058.9903C11.1288%2059.018%2011.1895%2059.03%2011.25%2059.025C12%2059.025%2012.85%2058.375%2013.2%2057.475H13.025C12.7109%2057.9021%2012.2615%2058.2105%2011.75%2058.35L12.675%2055.675H13.675L13.8%2055.275H12.85L13.175%2054.25H12.825L12.15%2055.275L11.35%2055.375V55.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip13_5795_13250)'%3e%3cpath%20d='M9.84996%2058.2252C9.69996%2058.2252%209.59996%2057.9752%209.84996%2057.3752L10.875%2054.9752L10.575%2054.9502L10.25%2055.2752H10.175C8.74996%2055.2752%207.22496%2057.1002%207.22496%2058.5002C7.22137%2058.5701%207.23249%2058.64%207.25761%2058.7053C7.28272%2058.7706%207.32126%2058.8299%207.37075%2058.8794C7.42024%2058.9289%207.47956%2058.9674%207.54488%2058.9926C7.6102%2059.0177%207.68007%2059.0288%207.74996%2059.0252C8.17496%2059.0252%208.57496%2058.4252%209.04996%2057.7752L9.02496%2058.0252C8.94996%2058.6752%209.17496%2059.0252%209.52496%2059.0252C9.89996%2059.0252%2010.275%2058.4252%2010.525%2057.8002H10.35C10.175%2058.0752%209.97496%2058.2502%209.84996%2058.2502V58.2252ZM9.19996%2057.4002C8.87496%2057.8002%208.34996%2058.2752%208.12496%2058.2752C7.99996%2058.2752%207.89996%2058.1502%207.89996%2057.8752C7.89996%2057.0002%208.89996%2055.8252%209.39996%2055.8252C9.51862%2055.822%209.63696%2055.8389%209.74996%2055.8752L9.19996%2057.4002Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip14_5795_13250)'%3e%3cpath%20d='M7.85004%2056C7.97504%2055.525%207.90004%2055.125%207.55004%2055.125C7.10004%2055.125%206.97504%2055.425%206.55004%2056.375V55.825C6.52504%2055.45%206.40004%2055.125%206.05004%2055.125C5.67504%2055.125%205.32504%2055.75%205.02504%2056.375H5.22504C5.40004%2056.05%205.60004%2055.875%205.72504%2055.875C5.90004%2055.875%205.97504%2056.125%205.72504%2056.725L4.97504%2058.425C4.80004%2058.75%204.97504%2058.95%205.27504%2058.95C5.35775%2058.9649%205.443%2058.9472%205.51292%2058.9006C5.58284%2058.8539%205.63198%2058.7821%205.65004%2058.7L6.40004%2056.7C6.60676%2056.4415%206.82359%2056.1913%207.05004%2055.95H7.85004V56Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip15_5795_13250)'%3e%3cpath%20d='M2.79998%2058.8499L2.87498%2058.6249C1.92498%2058.4499%201.79998%2058.4499%202.19998%2057.4249L2.54998%2056.4499H3.29998C3.77498%2056.4499%203.77498%2056.6749%203.69998%2057.1999H3.94998L4.59998%2055.4749H4.34998C4.09998%2055.8749%203.89998%2056.1999%203.39998%2056.1999H2.64998L3.14998%2054.7999C3.34998%2054.2999%203.42498%2054.1999%204.07498%2054.1999H4.24998C4.89998%2054.1999%204.99998%2054.3749%204.99998%2055.0749H5.24998L5.47498%2053.8999H1.82498L1.74998%2054.1249C2.49998%2054.2749%202.57498%2054.3499%202.24998%2055.3249L1.42498%2057.3999C1.04998%2058.3749%200.924976%2058.4499%200.0499756%2058.5999L-0.0250244%2058.8249L2.79998%2058.8499Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip16_5795_13250)'%3e%3cg%20clip-path='url(%23clip17_5795_13250)'%3e%3cpath%20d='M21.925%2048.2C22.3%2047.25%2021.85%2046.875%2021.3%2046.875C20.375%2046.875%2019.325%2048.5%2019.325%2049.8C19.325%2050.425%2019.625%2050.75%2020.075%2050.75C20.6%2050.75%2021.15%2050.25%2021.625%2049.375H21.375C21.075%2049.75%2020.725%2050.025%2020.4%2050.025C20.075%2050.025%2019.9%2049.825%2019.9%2049.375C19.9059%2049.1896%2019.931%2049.0052%2019.975%2048.825L21.925%2048.2ZM20.925%2047.425C21.2%2047.425%2021.425%2047.625%2021.3%2048.075L20.1%2048.4C20.3%2047.85%2020.65%2047.4%2020.95%2047.4L20.925%2047.425Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cpath%20d='M21.3%2046.4499L22.425%2045.4249V45.2749H21.675L21%2046.4499H21.325H21.3Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip18_5795_13250)'%3e%3cpath%20d='M17.125%2047.425H17.775L16.725%2050.275C16.6921%2050.326%2016.6742%2050.3852%2016.6732%2050.4459C16.6722%2050.5065%2016.6882%2050.5663%2016.7195%2050.6183C16.7507%2050.6704%2016.7959%2050.7126%2016.8499%2050.7403C16.9039%2050.768%2016.9645%2050.78%2017.025%2050.775C17.775%2050.775%2018.625%2050.125%2018.975%2049.225H18.8C18.4859%2049.6521%2018.0365%2049.9605%2017.525%2050.1L18.45%2047.425H19.45L19.575%2047.025H18.625L18.95%2046H18.6L17.925%2047.025L17.125%2047.125V47.425Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip19_5795_13250)'%3e%3cpath%20d='M16.45%2047.25C16.525%2047%2016.35%2046.85%2016.2%2046.85C15.65%2046.85%2014.95%2047.375%2014.7%2048.1H14.875C15.0526%2047.8132%2015.3278%2047.6001%2015.65%2047.5L14.575%2050.325C14.5534%2050.3673%2014.5431%2050.4145%2014.5452%2050.4619C14.5472%2050.5094%2014.5615%2050.5555%2014.5867%2050.5958C14.6119%2050.6361%2014.6471%2050.6692%2014.6888%2050.6918C14.7306%2050.7144%2014.7775%2050.7259%2014.825%2050.725C15.375%2050.725%2016%2050.225%2016.275%2049.475H16.05C15.8878%2049.776%2015.621%2050.0072%2015.3%2050.125L16.45%2047.25ZM16.55%2046.175C16.6091%2046.175%2016.6676%2046.1634%2016.7222%2046.1407C16.7768%2046.1181%2016.8264%2046.085%2016.8682%2046.0432C16.91%2046.0014%2016.9431%2045.9518%2016.9657%2045.8972C16.9884%2045.8426%2017%2045.7841%2017%2045.725C17.0034%2045.6638%2016.9943%2045.6026%2016.9732%2045.5451C16.9521%2045.4876%2016.9195%2045.435%2016.8774%2045.3905C16.8352%2045.346%2016.7845%2045.3106%2016.7282%2045.2865C16.6719%2045.2623%2016.6113%2045.2499%2016.55%2045.25C16.4306%2045.25%2016.3162%2045.2974%2016.2318%2045.3818C16.1474%2045.4662%2016.1%2045.5807%2016.1%2045.7C16.1%2045.8193%2016.1474%2045.9338%2016.2318%2046.0182C16.3162%2046.1026%2016.4306%2046.15%2016.55%2046.15'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip20_5795_13250)'%3e%3cpath%20d='M13.075%2050.1249L14.875%2045.3499L14.8%2045.2749L13.55%2045.4249V45.5749L13.8%2045.7499C14.025%2045.9249%2013.95%2046.0749%2013.75%2046.5999L12.4%2050.2499C12.3685%2050.2991%2012.3509%2050.3559%2012.349%2050.4142C12.3471%2050.4726%2012.3609%2050.5304%2012.389%2050.5815C12.4172%2050.6327%2012.4586%2050.6753%2012.5089%2050.705C12.5592%2050.7346%2012.6166%2050.7501%2012.675%2050.7499C13.25%2050.7499%2013.85%2050.2249%2014.125%2049.4999H13.95C13.7377%2049.8015%2013.4291%2050.0219%2013.075%2050.1249Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip21_5795_13250)'%3e%3cpath%20d='M11.35%2049.9752C11.2%2049.9752%2011.1%2049.7252%2011.35%2049.1252L12.375%2046.7252L12.075%2046.7002L11.75%2047.0252H11.675C10.25%2047.0252%208.72496%2048.8502%208.72496%2050.2502C8.72137%2050.3201%208.73249%2050.39%208.75761%2050.4553C8.78272%2050.5206%208.82126%2050.5799%208.87075%2050.6294C8.92024%2050.6789%208.97956%2050.7174%209.04488%2050.7426C9.1102%2050.7677%209.18007%2050.7788%209.24996%2050.7752C9.67496%2050.7752%2010.075%2050.1752%2010.55%2049.5252L10.525%2049.7752C10.45%2050.4252%2010.675%2050.7752%2011.025%2050.7752C11.4%2050.7752%2011.775%2050.1752%2012.025%2049.5502H11.85C11.675%2049.8252%2011.475%2050.0002%2011.35%2050.0002V49.9752ZM10.7%2049.1502C10.375%2049.5502%209.84996%2050.0252%209.62496%2050.0252C9.49996%2050.0252%209.39996%2049.9002%209.39996%2049.6252C9.39996%2048.7502%2010.4%2047.5752%2010.9%2047.5752C11.0186%2047.572%2011.137%2047.5889%2011.25%2047.6252L10.7%2049.1502Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip22_5795_13250)'%3e%3cpath%20d='M9.15%2047.0002H8.075C7.91845%2046.8999%207.73591%2046.8477%207.55%2046.8502C7.11669%2046.8501%206.70075%2047.0205%206.39202%2047.3246C6.0833%2047.6286%205.90657%2048.0419%205.9%2048.4752C5.88969%2048.5836%205.90095%2048.693%205.93314%2048.797C5.96532%2048.9011%206.01779%2048.9977%206.08751%2049.0814C6.15724%2049.1651%206.24284%2049.2341%206.33938%2049.2845C6.43592%2049.335%206.54149%2049.3658%206.65%2049.3752C6.175%2049.5752%205.9%2049.8252%205.9%2050.1002C5.9%2050.1772%205.92093%2050.2528%205.96057%2050.3188C6.0002%2050.3849%206.05703%2050.4389%206.125%2050.4752C5.05%2050.8002%204.625%2051.1752%204.625%2051.6502C4.625%2052.1502%205.275%2052.3502%206.025%2052.3502C7.35%2052.3502%208.425%2051.6752%208.425%2051.0752C8.425%2050.6252%208.025%2050.4502%207.35%2050.2502C6.8%2050.0752%206.55%2050.0502%206.55%2049.8502C6.56644%2049.752%206.60704%2049.6595%206.66814%2049.581C6.72924%2049.5024%206.80892%2049.4403%206.9%2049.4002C7.31131%2049.369%207.69601%2049.1848%207.97828%2048.884C8.26056%2048.5832%208.41993%2048.1876%208.425%2047.7752C8.42962%2047.6483%208.41272%2047.5215%208.375%2047.4002H9L9.15%2047.0002ZM7.1%2050.9002C7.625%2051.0752%207.85%2051.1502%207.85%2051.3002C7.85%2051.6502%207.35%2051.9252%206.45%2051.9252C5.775%2051.9252%205.45%2051.7752%205.45%2051.4252C5.45%2051.0502%205.8%2050.8002%206.325%2050.6002C6.56712%2050.7189%206.81783%2050.8191%207.075%2050.9002H7.1ZM6.9%2049.1002C6.65%2049.1002%206.575%2048.9002%206.575%2048.6752C6.575%2047.9752%206.925%2047.1252%207.45%2047.1252C7.7%2047.1252%207.775%2047.3252%207.775%2047.5252C7.775%2048.2502%207.425%2049.1002%206.9%2049.1002Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip23_5795_13250)'%3e%3cpath%20d='M3.575%2048.2252C4.05%2048.2252%204.075%2048.4252%203.975%2048.9252H4.25L4.875%2047.2252H4.625C4.375%2047.6252%204.2%2047.9502%203.675%2047.9502H2.65L3.15%2046.5502C3.325%2046.0502%203.4%2045.9502%204.075%2045.9502H4.5C5.15%2045.9502%205.25%2046.1252%205.25%2046.8252H5.5L5.725%2045.6502H1.825L1.75%2045.8752C2.5%2046.0252%202.575%2046.1002%202.25%2047.0752L1.45%2049.1752C1.075%2050.1502%200.95%2050.2252%200.05%2050.3752L0%2050.6252H4.35L5.15%2049.3752H4.85C4.35%2049.8752%203.85%2050.3252%202.85%2050.3252C1.675%2050.3252%201.775%2050.2502%202.175%2049.1752L2.525%2048.2252H3.575ZM4.15%2045.2752L5.25%2044.4752V44.3252H4.5L3.85%2045.3002H4.15V45.2752Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip24_5795_13250)'%3e%3cg%20clip-path='url(%23clip25_5795_13250)'%3e%3cpath%20d='M21.8%2039.95C22.175%2039%2021.725%2038.625%2021.175%2038.625C20.25%2038.625%2019.2%2040.25%2019.2%2041.55C19.2%2042.175%2019.5%2042.5%2019.95%2042.5C20.475%2042.5%2021.025%2042%2021.5%2041.125H21.25C20.95%2041.5%2020.6%2041.775%2020.275%2041.775C19.95%2041.775%2019.775%2041.575%2019.775%2041.125C19.7809%2040.9396%2019.806%2040.7552%2019.85%2040.575L21.8%2039.95ZM20.8%2039.175C21.075%2039.175%2021.3%2039.375%2021.175%2039.825L19.975%2040.15C20.175%2039.6%2020.525%2039.15%2020.825%2039.15L20.8%2039.175Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cpath%20d='M21.175%2038.1999L22.3%2037.1749V37.0249H21.55L20.875%2038.1999H21.2H21.175Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip26_5795_13250)'%3e%3cpath%20d='M16.975%2039.1501H17.625L16.575%2042.0001C16.5421%2042.0511%2016.5242%2042.1103%2016.5232%2042.171C16.5222%2042.2316%2016.5382%2042.2914%2016.5694%2042.3434C16.6007%2042.3955%2016.6458%2042.4377%2016.6998%2042.4654C16.7538%2042.4931%2016.8145%2042.5051%2016.875%2042.5001C17.625%2042.5001%2018.475%2041.8501%2018.825%2040.9501H18.65C18.3359%2041.3772%2017.8865%2041.6856%2017.375%2041.8251L18.3%2039.1501H19.3L19.425%2038.7501H18.475L18.8%2037.7251H18.45L17.775%2038.7501L16.975%2038.8501V39.1501Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip27_5795_13250)'%3e%3cpath%20d='M16.65%2039.5C16.775%2039.025%2016.7%2038.625%2016.35%2038.625C15.9%2038.625%2015.775%2038.925%2015.35%2039.875V39.325C15.325%2038.95%2015.2%2038.625%2014.85%2038.625C14.475%2038.625%2014.125%2039.25%2013.825%2039.875H14.025C14.2%2039.55%2014.4%2039.375%2014.525%2039.375C14.7%2039.375%2014.775%2039.625%2014.525%2040.225L13.775%2041.925C13.6%2042.25%2013.775%2042.45%2014.075%2042.45C14.1577%2042.4649%2014.243%2042.4472%2014.3129%2042.4006C14.3828%2042.3539%2014.432%2042.2821%2014.45%2042.2L15.2%2040.2C15.4067%2039.9415%2015.6236%2039.6913%2015.85%2039.45H16.65V39.5Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip28_5795_13250)'%3e%3cpath%20d='M13.45%2039.9251C13.825%2038.9751%2013.375%2038.6001%2012.825%2038.6001C11.9%2038.6001%2010.85%2040.2251%2010.85%2041.5251C10.85%2042.1501%2011.15%2042.4751%2011.6%2042.4751C12.125%2042.4751%2012.675%2041.9751%2013.15%2041.1001H12.9C12.6%2041.4751%2012.25%2041.7501%2011.925%2041.7501C11.6%2041.7501%2011.425%2041.5501%2011.425%2041.1001C11.4308%2040.9147%2011.456%2040.7303%2011.5%2040.5501L13.45%2039.9251ZM12.45%2039.1501C12.725%2039.1501%2012.95%2039.3501%2012.825%2039.8001L11.625%2040.1251C11.825%2039.5751%2012.175%2039.1251%2012.475%2039.1251L12.45%2039.1501Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip29_5795_13250)'%3e%3cpath%20d='M10.2%2038.6249C9.69998%2038.6249%209.19998%2039.1749%208.74998%2039.8249L9.74998%2037.0999L9.69998%2037.0249L8.44998%2037.1749V37.2749L8.69998%2037.4749C8.92498%2037.6499%208.84998%2037.7999%208.64998%2038.3249L7.54998%2041.2249C7.46796%2041.4023%207.40106%2041.5863%207.34998%2041.7749C7.34998%2042.1249%207.79998%2042.4499%208.22498%2042.4499C9.17498%2042.4499%2010.725%2040.7249%2010.725%2039.3999C10.725%2038.8249%2010.6%2038.5999%2010.2%2038.5999V38.6249ZM8.54998%2041.8999C8.34998%2041.8999%208.07498%2041.7249%208.07498%2041.5749C8.12768%2041.3868%208.19454%2041.2029%208.27498%2041.0249L8.59998%2040.1999C8.92498%2039.7749%209.44998%2039.3499%209.74998%2039.3499C9.92498%2039.3499%2010.05%2039.4499%2010.05%2039.7249C10.05%2040.4999%209.32498%2041.8999%208.54998%2041.8999Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip30_5795_13250)'%3e%3cpath%20d='M7.05003%2039C7.12503%2038.75%206.95003%2038.6%206.80003%2038.6C6.25003%2038.6%205.55003%2039.125%205.30003%2039.85H5.47503C5.65263%2039.5632%205.92784%2039.3501%206.25003%2039.25L5.17503%2042.075C5.15343%2042.1173%205.14316%2042.1645%205.14522%2042.2119C5.14727%2042.2594%205.16158%2042.3055%205.18676%2042.3458C5.21193%2042.3861%205.24711%2042.4192%205.28887%2042.4418C5.33063%2042.4644%205.37754%2042.4759%205.42503%2042.475C5.97503%2042.475%206.60003%2041.975%206.87503%2041.225H6.65003C6.4878%2041.526%206.22102%2041.7572%205.90003%2041.875L7.05003%2039ZM7.15003%2037.925C7.20913%2037.925%207.26764%2037.9134%207.32224%2037.8907C7.37684%2037.8681%207.42645%2037.835%207.46823%2037.7932C7.51002%2037.7514%207.54316%2037.7018%207.56578%2037.6472C7.58839%2037.5926%207.60003%2037.5341%207.60003%2037.475C7.60344%2037.4138%207.59432%2037.3526%207.57323%2037.2951C7.55214%2037.2376%207.51954%2037.185%207.47741%2037.1405C7.43528%2037.096%207.38451%2037.0606%207.32822%2037.0365C7.27193%2037.0123%207.21129%2036.9999%207.15003%2037C7.03069%2037%206.91623%2037.0474%206.83184%2037.1318C6.74744%2037.2162%206.70003%2037.3307%206.70003%2037.45C6.70003%2037.5693%206.74744%2037.6838%206.83184%2037.7682C6.91623%2037.8526%207.03069%2037.9%207.15003%2037.9'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip31_5795_13250)'%3e%3cpath%20d='M4.4%2037.3501H1.825L1.75%2037.5751C2.5%2037.7251%202.575%2037.8001%202.25%2038.7751L1.45%2040.9001C1.075%2041.8751%200.95%2041.9501%200.075%2042.1001L0%2042.3501H3.925L4.8%2040.8501H4.5C4%2041.3501%203.45%2042.0501%202.575%2042.0501C1.9%2042.0501%201.825%2041.9251%202.175%2040.9251L2.95%2038.8001C3.3%2037.8251%203.45%2037.7501%204.325%2037.6001L4.4%2037.3501Z'%20fill='%23161616'%20/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_5795_13250'%20x1='0'%20y1='6'%20x2='33'%20y2='6'%20gradientUnits='userSpaceOnUse'%20%3e%3cstop%20stop-color='%23000091'%20/%3e%3cstop%20offset='0.5'%20stop-color='%23000091'%20/%3e%3cstop%20offset='0.5'%20stop-color='%23E1000F'%20/%3e%3cstop%20offset='1'%20stop-color='%23E1000F'%20/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_5795_13250'%3e%3crect%20width='33'%20height='12'%20fill='white'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_5795_13250'%3e%3crect%20width='33'%20height='13.5'%20fill='white'%20transform='translate(0%20-0.75)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip2_5795_13250'%3e%3crect%20width='108.88'%20height='26.5'%20fill='white'%20transform='translate(0%2033)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip3_5795_13250'%3e%3crect%20width='63'%20height='45'%20fill='white'%20transform='translate(0%2037)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip4_5795_13250'%3e%3crect%20width='31.5'%20height='22.5'%20fill='white'%20transform='translate(0%2037)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip5_5795_13250'%3e%3crect%20width='3.1'%20height='5.45'%20fill='white'%20transform='translate(28.175%2053.5249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip6_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(28.175%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip7_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(25.55%2054.25)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip8_5795_13250'%3e%3crect%20width='2.45'%20height='5.475'%20fill='white'%20transform='translate(23.4%2053.5249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip9_5795_13250'%3e%3crect%20width='3.7'%20height='3.875'%20fill='white'%20transform='translate(19.3%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip10_5795_13250'%3e%3crect%20width='3'%20height='3.875'%20fill='white'%20transform='translate(16.425%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip11_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(13.575%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip12_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(10.925%2054.25)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip13_5795_13250'%3e%3crect%20width='3.675'%20height='4.05'%20fill='white'%20transform='translate(7.22498%2054.9502)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip14_5795_13250'%3e%3crect%20width='3'%20height='3.875'%20fill='white'%20transform='translate(4.90002%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip15_5795_13250'%3e%3crect%20width='5.475'%20height='4.95'%20fill='white'%20transform='translate(0%2053.8999)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip16_5795_13250'%3e%3crect%20width='3.1'%20height='5.45'%20fill='white'%20transform='translate(19.325%2045.2749)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip17_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(19.325%2046.875)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip18_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(16.7%2046)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip19_5795_13250'%3e%3crect%20width='2.45'%20height='5.475'%20fill='white'%20transform='translate(14.55%2045.25)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip20_5795_13250'%3e%3crect%20width='2.525'%20height='5.475'%20fill='white'%20transform='translate(12.35%2045.2749)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip21_5795_13250'%3e%3crect%20width='3.675'%20height='4.05'%20fill='white'%20transform='translate(8.72498%2046.7002)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip22_5795_13250'%3e%3crect%20width='4.5'%20height='5.5'%20fill='white'%20transform='translate(4.65002%2046.8501)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip23_5795_13250'%3e%3crect%20width='5.75'%20height='6.275'%20fill='white'%20transform='translate(0%2044.3252)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip24_5795_13250'%3e%3crect%20width='3.1'%20height='5.45'%20fill='white'%20transform='translate(19.2%2037.0249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip25_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(19.2%2038.625)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip26_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(16.55%2037.7251)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip27_5795_13250'%3e%3crect%20width='3'%20height='3.875'%20fill='white'%20transform='translate(13.7%2038.625)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip28_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(10.85%2038.6001)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip29_5795_13250'%3e%3crect%20width='3.4'%20height='5.45'%20fill='white'%20transform='translate(7.34998%2037.0249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip30_5795_13250'%3e%3crect%20width='2.45'%20height='5.475'%20fill='white'%20transform='translate(5.15002%2037)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip31_5795_13250'%3e%3crect%20width='4.8'%20height='4.975'%20fill='white'%20transform='translate(0%2037.3501)'%20/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Xh=({externalLinks:t,legalLinks:e,license:r,logo:n})=>{const{t:i}=X.useCunningham();return b.jsxs("footer",{className:"c__footer",children:[b.jsx("div",{className:"c__footer__stripe"}),b.jsxs("div",{className:"c__footer__content",children:[b.jsxs("div",{className:"c__footer__content__top",children:[b.jsx("div",{children:b.jsx("div",{className:"c__footer__content__top__logo",children:b.jsx("img",{className:"c__footer__logo",alt:(n==null?void 0:n.alt)||i("components.footer.logo.alt"),width:n==null?void 0:n.width,height:n==null?void 0:n.height,decoding:"async",src:(n==null?void 0:n.src)||Yh})})}),b.jsx("div",{className:"c__footer__content__top__links",children:t==null?void 0:t.map(({label:o,href:a})=>b.jsxs("a",{href:a,target:"_blank",children:[b.jsx("span",{children:o}),b.jsx("img",{alt:"",width:"18",decoding:"async",src:Bs})]},o))})]}),b.jsx("div",{className:"c__footer__content__middle",children:e==null?void 0:e.map(({label:o,href:a})=>b.jsx("a",{href:a,children:b.jsx("span",{children:o})},o))}),r&&b.jsxs("p",{className:"c__footer__content__mention",children:[r==null?void 0:r.label," ",b.jsxs("a",{href:r==null?void 0:r.link.href,target:"_blank",children:[b.jsx("span",{children:r==null?void 0:r.link.label}),b.jsx("img",{alt:"",width:"18",decoding:"async",src:Bs})]})]})]})]})},Jh=t=>b.jsx(Bh,{...t,className:"c__filter",children:b.jsx(Qh,{...t})}),Qh=t=>{const e=u.useContext(Ju),r=e!=null&&e.selectedItem?t.options.find(n=>{var i;return n.value===((i=e.selectedItem)==null?void 0:i.key)}):null;return b.jsxs(b.Fragment,{children:[b.jsxs(ah,{className:ve("c__filter__button",{"c__filter__button--active":!!r}),children:[b.jsx(nh,{className:"c__filter__label",children:r?b.jsxs(b.Fragment,{children:[t.label," : ",r.label]}):b.jsx(b.Fragment,{children:t.label})}),b.jsx("span",{"aria-hidden":"true",className:ve("material-icons c__filter__button__icon",{opened:e==null?void 0:e.isOpen}),children:"keyboard_arrow_down"})]}),b.jsx(Pi,{className:"c__dropdown-menu",children:b.jsx(Eh,{children:t.options.map(n=>b.jsxs(u.Fragment,{children:[b.jsx(Dh,{id:n.value,className:"c__dropdown-menu-item",children:b.jsxs("div",{className:"c__filter__item",children:[n.render?n.render():n.label,(t.selectedKey===n.value||n.isChecked)&&b.jsx("span",{className:"material-icons checked",children:"check"})]})},n.value),n.showSeparator&&b.jsx(ri,{})]},n.value))})})]})},e7=({logo:t,mainButton:e,banner:r,title:n,subtitle:i})=>b.jsx("div",{className:"c__hero",children:b.jsxs("div",{className:"c__hero__display",children:[b.jsxs("div",{className:"c__hero__display__captions",children:[t,b.jsx("h2",{children:n}),b.jsx("span",{className:"c__hero__display__captions__subtitle",children:i}),e||b.jsx(S2,{})]}),b.jsx("img",{src:r,alt:""})]})}),t7=({children:t})=>b.jsx("div",{className:"c__home-gutter",children:t}),ed=(t,e,r=void 0)=>{const n=Array.isArray(e)?e:e.replace(/(\[(\d)\])/g,".$2").replace(/^\./,"").split(".");if(!n.length||n[0]===void 0)return t;const i=n[0];return typeof t!="object"||t===null||!(i in t)||t[i]===void 0?r:ed(t[i],n.slice(1),r)},r7={placeholder:"Entrez votre adresse e-mail",srLabel:"Adresse e-mail",submit:"Suivant",title:"Connexion avec {linebreak}votre adresse e-mail"},n7={homepageLinkTitle:{withoutService:"Retour à l'accueil",withService:"Retour à l'accueil - {serviceName}"},license:"Sauf mention explicite de propriété intellectuelle détenue par des tiers, les contenus de ce site sont proposés sous {license}",licenseEtalab:"licence etalab-2.0",links:{a11y:{perfect:"Accessibilité : conforme",partial:"Accessibilité : partiellement conforme",bad:"Accessibilité : non conforme"},privacy:"Données personnelles",sitemap:"Plan du site",terms:"Mentions légales"}},i7={label:"Les services de La Suite numérique"},o7={homepageLinkTitle:"Accueil - {serviceName}"},a7={newWindow:"{title} - nouvelle fenêtre"},l7={help:"Qu'est-ce que ProConnect ?",loginWith:"S’identifier avec",loginWithProconnect:"{loginWith} {proconnect}",or:"ou",title:"Connexion avec ProConnect"},td={email:r7,footer:n7,gaufre:i7,header:o7,links:a7,proconnect:l7},s7=u.createContext(td);function c7(){const t=u.useContext(s7)||td;return{t:function(e,r={}){const n=ed(t,e);if(!n)return console.warn(`Translation for key "${e}" not found`),e;if(r){const i=[];if(Object.keys(r).forEach(a=>{typeof r[a]!="string"&&i.push(a)}),!i.length)return n.replace(/{(\w+)}/g,(a,l)=>r[l]);const o=n.split(/{(.*?)}/);return b.jsx(b.Fragment,{children:o.map((a,l)=>a in r?b.jsx(u.Fragment,{children:r[a]},l):a)})}return n}}}const u7={responsive:"lasuite-gaufre-btn--responsive",small:"lasuite-gaufre-btn--small"},d7=({variant:t})=>{const{t:e}=c7(),r=t?u7[t]:"";return b.jsx("button",{type:"button",className:`lasuite-gaufre-btn ${r} lasuite-gaufre-btn--vanilla js-lasuite-gaufre-btn`,title:e("gaufre.label"),children:e("gaufre.label")})},f7=()=>b.jsxs(b.Fragment,{children:[b.jsx("script",{src:"https://integration.lasuite.numerique.gouv.fr/api/v1/gaufre.js",id:"lasuite-gaufre-script",async:!0,defer:!0}),b.jsx(d7,{variant:"small"})]}),h7="data:image/svg+xml,%3csvg%20width='64'%20height='26'%20viewBox='0%200%2064%2026'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_7771_15979)'%3e%3cpath%20d='M63.4259%2019.6175C63.4259%2020.1333%2063.4259%2020.3912%2063.3731%2020.6274C63.2756%2021.0639%2063.0469%2021.4602%2062.7177%2021.763C62.5395%2021.9269%2062.3162%2022.0559%2061.8696%2022.3139L59.9192%2023.4406C59.4723%2023.6988%2059.2488%2023.8279%2059.0177%2023.9003C58.5905%2024.0343%2058.1326%2024.0343%2057.7055%2023.9003C57.4744%2023.8279%2057.2509%2023.6988%2056.804%2023.4406L55.4779%2022.6746C54.9159%2022.3499%2054.6348%2022.1875%2054.5043%2021.9996C54.2603%2021.6483%2054.2605%2021.1823%2054.5049%2020.8313C54.6356%2020.6435%2054.9168%2020.4814%2055.4792%2020.1572L56.8083%2019.3911C57.2557%2019.1333%2057.4793%2019.0044%2057.6578%2018.8405C57.9875%2018.5376%2058.2167%2018.1411%2058.3144%2017.7041C58.3673%2017.4677%2058.3673%2017.2095%2058.3673%2016.6932V15.1651C58.3673%2014.5163%2058.3673%2014.1919%2058.4647%2013.9849C58.6468%2013.598%2059.0502%2013.365%2059.4763%2013.4008C59.7042%2013.42%2059.9852%2013.5822%2060.5471%2013.9066L61.869%2014.6698C62.3157%2014.9277%2062.5391%2015.0567%2062.7173%2015.2206C63.0467%2015.5234%2063.2755%2015.9198%2063.3731%2016.3564C63.4259%2016.5927%2063.4259%2016.8506%2063.4259%2017.3665V19.6175Z'%20fill='%23C83F49'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M52.1227%2010.0913C54.0237%2010.0913%2055.2764%2011.3056%2055.4296%2013.0311C55.4634%2013.4125%2055.483%2013.8298%2055.4161%2014.2062C55.3942%2014.3293%2055.2848%2014.4154%2055.1598%2014.4154H50.4038C50.3227%2014.4154%2050.2598%2014.4872%2050.2735%2014.5671C50.4893%2015.8206%2051.1794%2016.3447%2052.2824%2016.3447C52.6047%2016.3447%2052.9343%2016.2299%2053.1712%2016.1233C53.3024%2016.0642%2053.3687%2016.0345%2053.4122%2016.0248C53.5046%2016.0041%2053.5644%2016.0079%2053.6538%2016.0395C53.6958%2016.0543%2053.745%2016.0841%2053.8434%2016.1435L54.2508%2016.3894C54.5156%2016.549%2054.6484%2016.6286%2054.7029%2016.7099C54.8054%2016.8634%2054.8021%2017.0598%2054.6943%2017.2097C54.6371%2017.2891%2054.5058%2017.3625%2054.2429%2017.5088C54.0455%2017.6186%2053.8437%2017.7185%2053.633%2017.7938C52.9051%2018.0543%2052.1282%2018.0627%2051.3458%2017.8972C49.3995%2017.4855%2048.3644%2015.875%2048.3644%2014.038C48.3645%2011.8759%2049.7285%2010.0914%2052.1227%2010.0913ZM52.0793%2011.6003C51.1906%2011.6004%2050.5851%2012.0639%2050.3482%2012.9186C50.3253%2013.0011%2050.3898%2013.0807%2050.4754%2013.0807H53.5357C53.6121%2013.0806%2053.6738%2013.0164%2053.6642%2012.9406C53.5771%2012.2499%2053.0446%2011.6003%2052.0793%2011.6003Z'%20fill='%232845C1'/%3e%3cpath%20d='M27.0483%207.27437C28.4287%207.27441%2029.5109%207.83538%2030.3491%208.7076C30.4132%208.77435%2030.4455%208.80771%2030.4647%208.84951C30.4989%208.9242%2030.4955%209.02087%2030.4562%209.09297C30.4341%209.13343%2030.3969%209.16737%2030.3222%209.23489L29.401%2010.0674C29.3152%2010.1449%2029.272%2010.1842%2029.2303%2010.202C29.1493%2010.2366%2029.0681%2010.2321%2028.9911%2010.1891C28.9515%2010.1671%2028.9094%2010.1201%2028.8253%2010.0264C28.2997%209.4409%2027.7178%209.07156%2027.0624%209.07156C26.3381%209.07169%2025.8599%209.53539%2025.8598%2010.1439C25.8598%2010.9189%2026.6772%2011.2755%2027.6234%2011.6878C28.924%2012.2546%2030.4683%2012.9276%2030.4684%2014.9409C30.4394%2016.8538%2028.9612%2017.9987%2027.0918%2017.9988C25.5333%2017.9988%2024.444%2017.4813%2023.583%2016.5778C23.5199%2016.5115%2023.4882%2016.478%2023.4693%2016.4365C23.4356%2016.3625%2023.4388%2016.2671%2023.4772%2016.1955C23.4988%2016.1552%2023.5355%2016.1211%2023.6087%2016.0536L24.5226%2015.2112C24.6088%2015.1317%2024.652%2015.0918%2024.6927%2015.0736C24.7735%2015.0376%2024.8496%2015.0396%2024.9282%2015.0803C24.9678%2015.1009%2025.0139%2015.1485%2025.1056%2015.2437C25.6733%2015.8326%2026.3698%2016.1728%2027.0771%2016.1728C27.8886%2016.1728%2028.3812%2015.7381%2028.3813%2015.0137C28.3813%2014.22%2027.551%2013.8546%2026.5951%2013.4342C25.2993%2012.8644%2023.7734%2012.193%2023.7733%2010.2167C23.7733%208.60804%2025.1064%207.27437%2027.0483%207.27437Z'%20fill='%232845C1'/%3e%3cpath%20d='M33.0816%2010.4051C33.1877%2010.4051%2033.2407%2010.4052%2033.2834%2010.4198C33.3629%2010.447%2033.4257%2010.5091%2033.4529%2010.5886C33.4675%2010.6314%2033.4676%2010.6848%2033.4676%2010.7911V14.55C33.4677%2015.6077%2034.0181%2016.2596%2035.0323%2016.2597C36.0322%2016.2597%2036.5829%2015.6077%2036.583%2014.55V10.7911C36.583%2010.6848%2036.583%2010.6314%2036.5977%2010.5886C36.6249%2010.5091%2036.6877%2010.447%2036.7671%2010.4198C36.8099%2010.4052%2036.8629%2010.4051%2036.969%2010.4051H38.0523C38.1585%2010.4051%2038.212%2010.4051%2038.2548%2010.4198C38.3341%2010.447%2038.3964%2010.5093%2038.4236%2010.5886C38.4382%2010.6314%2038.4383%2010.6848%2038.4383%2010.7911V14.4625C38.4383%2016.6508%2037.163%2017.9987%2035.0182%2017.9988C32.8734%2017.9988%2031.6123%2016.6508%2031.6123%2014.4625V10.7911C31.6123%2010.6848%2031.6123%2010.6314%2031.627%2010.5886C31.6541%2010.5093%2031.7165%2010.447%2031.7958%2010.4198C31.8386%2010.4051%2031.892%2010.4051%2031.9983%2010.4051H33.0816Z'%20fill='%232845C1'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M18.6864%2010.109C20.8021%2010.109%2021.8892%2011.3699%2021.8892%2012.9785V17.3173C21.8892%2017.4233%2021.8891%2017.4765%2021.8746%2017.5192C21.8474%2017.5986%2021.7846%2017.6614%2021.7051%2017.6886C21.6624%2017.7032%2021.6092%2017.7033%2021.5033%2017.7033H20.4346C20.3284%2017.7033%2020.2749%2017.7033%2020.2321%2017.6886C20.1527%2017.6614%2020.0905%2017.5986%2020.0633%2017.5192C20.0487%2017.4764%2020.0486%2017.4234%2020.0486%2017.3173V17.2415C20.0486%2017.1766%2020.0485%2017.144%2020.0413%2017.1302C20.0267%2017.1027%2019.999%2017.0907%2019.9691%2017.099C19.954%2017.1033%2019.9286%2017.127%2019.8786%2017.1742C19.3908%2017.6343%2018.6201%2017.9204%2017.8606%2017.9205C16.3969%2017.9205%2015.3967%2017.08%2015.3966%2015.7324C15.3966%2014.6311%2016.2515%2013.8046%2017.8165%2013.5437L19.8627%2013.1981C19.9699%2013.18%2020.0486%2013.0873%2020.0486%2012.9785C20.0486%2012.2105%2019.4687%2011.7178%2018.6282%2011.7178C18.0616%2011.7178%2017.5966%2011.9303%2017.2329%2012.2885C17.1368%2012.3832%2017.0884%2012.4305%2017.0519%2012.4494C16.9763%2012.4885%2016.9134%2012.4922%2016.8335%2012.4628C16.7949%2012.4487%2016.7508%2012.415%2016.6628%2012.3478L15.9276%2011.7869C15.849%2011.7269%2015.8096%2011.6967%2015.7838%2011.6566C15.7392%2011.5871%2015.7297%2011.4822%2015.7612%2011.4058C15.7794%2011.3617%2015.8085%2011.3298%2015.8664%2011.2664C16.5273%2010.542%2017.5043%2010.109%2018.6864%2010.109ZM19.8241%2014.4943L18.3095%2014.747C17.5416%2014.8774%2017.2227%2015.1958%2017.2225%2015.6449C17.2225%2016.1377%2017.6142%2016.4567%2018.2374%2016.4567C18.9727%2016.4566%2019.5305%2016.1571%2019.9012%2015.6939C19.9264%2015.6624%2019.9392%2015.6465%2019.9618%2015.6082C19.9962%2015.5498%2020.0329%2015.4453%2020.0425%2015.3782C20.0487%2015.3344%2020.0486%2015.2998%2020.0486%2015.2308V14.6846C20.0486%2014.623%2020.0483%2014.5923%2020.0394%2014.5689C20.0228%2014.5254%2019.9854%2014.4932%2019.9397%2014.4839C19.9152%2014.479%2019.8848%2014.4842%2019.8241%2014.4943Z'%20fill='%232845C1'/%3e%3cpath%20d='M45.2967%208.57914C45.4029%208.57914%2045.4564%208.57917%2045.4992%208.59382C45.5785%208.62109%2045.6408%208.68332%2045.668%208.76265C45.6826%208.8054%2045.6827%208.85848%2045.6827%208.96451V10.2717C45.6827%2010.3083%2045.6825%2010.3267%2045.6876%2010.3415C45.697%2010.3689%2045.7188%2010.3902%2045.7463%2010.3996C45.7611%2010.4046%2045.7794%2010.4051%2045.816%2010.4051H47.5288C47.6349%2010.4051%2047.6879%2010.4051%2047.7307%2010.4198C47.8101%2010.447%2047.8723%2010.5092%2047.8995%2010.5886C47.9142%2010.6314%2047.9142%2010.6848%2047.9142%2010.7911V11.6713C47.9142%2011.7774%2047.9141%2011.8304%2047.8995%2011.8732C47.8723%2011.9526%2047.8101%2012.0154%2047.7307%2012.0426C47.6879%2012.0572%2047.6348%2012.0573%2047.5288%2012.0573H45.816C45.7794%2012.0573%2045.7611%2012.0572%2045.7463%2012.0622C45.7189%2012.0716%2045.697%2012.0929%2045.6876%2012.1203C45.6825%2012.1351%2045.6827%2012.1539%2045.6827%2012.1906V15.0424C45.6827%2015.8539%2046.1173%2016.1728%2046.8419%2016.1728C47.126%2016.1728%2047.3557%2016.1547%2047.5459%2016.1208C47.6769%2016.0976%2047.7423%2016.0861%2047.7766%2016.0927C47.8485%2016.1066%2047.8904%2016.1412%2047.9166%2016.2095C47.9291%2016.2421%2047.9289%2016.2989%2047.9289%2016.412V17.3706C47.9289%2017.4389%2047.9286%2017.4731%2047.9191%2017.5082C47.9029%2017.5673%2047.8551%2017.6323%2047.8035%2017.6654C47.7728%2017.685%2047.7464%2017.6935%2047.6934%2017.71C47.3789%2017.8083%2047.0056%2017.8538%2046.5232%2017.8538C44.6972%2017.8538%2043.8274%2016.8249%2043.8274%2015.0424V12.1906C43.8274%2012.1539%2043.8276%2012.1351%2043.8225%2012.1203C43.813%2012.0929%2043.7912%2012.0716%2043.7638%2012.0622C43.749%2012.0572%2043.7306%2012.0573%2043.694%2012.0573H42.8511C42.7451%2012.0573%2042.692%2012.0572%2042.6492%2012.0426C42.5698%2012.0154%2042.507%2011.9526%2042.4798%2011.8732C42.4652%2011.8304%2042.4651%2011.7773%2042.4651%2011.6713V10.7911C42.4651%2010.6848%2042.4652%2010.6314%2042.4798%2010.5886C42.507%2010.5091%2042.5698%2010.447%2042.6492%2010.4198C42.692%2010.4052%2042.745%2010.4051%2042.8511%2010.4051H43.694C43.7306%2010.4051%2043.749%2010.4046%2043.7638%2010.3996C43.7912%2010.3902%2043.8131%2010.3689%2043.8225%2010.3415C43.8276%2010.3267%2043.8274%2010.3083%2043.8274%2010.2717V8.96451C43.8274%208.85851%2043.8275%208.80539%2043.8421%208.76265C43.8693%208.6832%2043.9321%208.62102%2044.0115%208.59382C44.0543%208.57921%2044.1073%208.57914%2044.2134%208.57914H45.2967Z'%20fill='%232845C1'/%3e%3cpath%20d='M10.4969%207.60347C10.6271%207.59288%2010.7502%207.66445%2010.8058%207.7827C10.8355%207.84596%2010.8357%207.94515%2010.8357%208.14299V15.7141C10.8357%2015.767%2010.8358%2015.7936%2010.8431%2015.815C10.8567%2015.8546%2010.8878%2015.8858%2010.9275%2015.8994C10.9489%2015.9067%2010.9754%2015.9067%2011.0284%2015.9067H14.2013C14.3074%2015.9067%2014.3605%2015.9068%2014.4032%2015.9214C14.4825%2015.9486%2014.5448%2016.011%2014.572%2016.0903C14.5867%2016.133%2014.5867%2016.1865%2014.5867%2016.2927V17.3326C14.5867%2017.4387%2014.5867%2017.4917%2014.572%2017.5345C14.5448%2017.6139%2014.4827%2017.6767%2014.4032%2017.7039C14.3605%2017.7185%2014.3073%2017.7186%2014.2013%2017.7186H9.25388C9.14764%2017.7186%209.09419%2017.7186%209.0514%2017.7039C8.972%2017.6767%208.90977%2017.6139%208.88258%2017.5345C8.86796%2017.4917%208.86789%2017.4387%208.86789%2017.3326V9.01834C8.86789%208.87045%208.86801%208.79609%208.88319%208.7284C8.91128%208.6034%208.97706%208.49005%209.07159%208.40358C9.12277%208.35678%209.1868%208.31985%209.31505%208.24637L10.1696%207.75701C10.3413%207.65863%2010.4272%207.60914%2010.4969%207.60347Z'%20fill='%232845C1'/%3e%3cpath%20d='M41.3506%2010.4051C41.4567%2010.4051%2041.5097%2010.4052%2041.5525%2010.4198C41.6319%2010.447%2041.6947%2010.5091%2041.7219%2010.5886C41.7366%2010.6314%2041.7366%2010.6848%2041.7366%2010.7911V17.3235C41.7366%2017.4295%2041.7365%2017.4826%2041.7219%2017.5253C41.6947%2017.6048%2041.6319%2017.6669%2041.5525%2017.6941C41.5097%2017.7087%2041.4567%2017.7088%2041.3506%2017.7088H40.282C40.1757%2017.7088%2040.1223%2017.7088%2040.0795%2017.6941C40.0001%2017.6669%2039.9378%2017.6047%2039.9106%2017.5253C39.896%2017.4826%2039.896%2017.4295%2039.896%2017.3235V10.7911C39.896%2010.6848%2039.896%2010.6314%2039.9106%2010.5886C39.9378%2010.5092%2040.0001%2010.447%2040.0795%2010.4198C40.1223%2010.4051%2040.1757%2010.4051%2040.282%2010.4051H41.3506Z'%20fill='%232845C1'/%3e%3cpath%20d='M5.0894%201.1867C5.51644%201.05287%205.97448%201.05281%206.4015%201.1867C6.63253%201.25916%206.85582%201.38863%207.30254%201.6467L8.62872%202.41255C9.19079%202.73725%209.47203%202.89994%209.60255%203.08787C9.8464%203.43915%209.84622%203.90523%209.60194%204.25623C9.47119%204.44396%209.18971%204.60566%208.62749%204.92971L7.29826%205.69618C6.85114%205.95389%206.6276%206.0829%206.44922%206.24671C6.11946%206.54958%205.88998%206.94632%205.79225%207.38326C5.73941%207.61961%205.73964%207.87775%205.73964%208.39379V9.92244C5.73964%2010.571%205.73973%2010.8955%205.64238%2011.1024C5.46034%2011.4893%205.05667%2011.7223%204.63062%2011.6866C4.40267%2011.6675%204.12141%2011.5051%203.55953%2011.1807L2.23763%2010.4173C1.79099%2010.1594%201.56738%2010.0306%201.3892%209.86678C1.0599%209.56394%200.831048%209.16745%200.733454%208.73084C0.680657%208.49461%200.680847%208.23666%200.680847%207.72092V5.46985C0.680847%204.95415%200.680686%204.69612%200.733454%204.45992C0.83101%204.02338%201.05999%203.62683%201.3892%203.32399C1.56729%203.16021%201.79065%203.03132%202.23702%202.77346L4.18775%201.6467C4.63463%201.38855%204.8583%201.25915%205.0894%201.1867Z'%20fill='%232845C1'/%3e%3cpath%20d='M40.8233%206.72384C41.4755%206.72384%2042.0119%207.27491%2042.0119%207.92706C42.0117%208.57908%2041.4754%209.12967%2040.8233%209.12967C40.1713%209.12963%2039.6209%208.57906%2039.6207%207.92706C39.6207%207.27494%2040.1712%206.72389%2040.8233%206.72384Z'%20fill='%232845C1'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_7771_15979'%3e%3crect%20width='64'%20height='25.098'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";var ho={},Tr={},Ls;function p7(){return Ls||(Ls=1,Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.tokens=void 0,Tr.tokens={themes:{default:{globals:{colors:{"logo-1-light":"#377FDB","logo-2-light":"#377FDB","logo-1-dark":"#C1D6F2","logo-2-dark":"#C1D6F2","brand-050":"#EAF1FB","brand-100":"#D5E4F7","brand-150":"#C0D6F4","brand-200":"#ABC9F0","brand-250":"#96BCEC","brand-300":"#80AEE8","brand-350":"#6CA0E4","brand-400":"#5693E0","brand-450":"#4085DC","brand-500":"#2976D8","brand-550":"#1167D4","brand-600":"#0659C5","brand-650":"#1A509F","brand-700":"#20467F","brand-750":"#203C63","brand-800":"#1D314C","brand-850":"#1A2638","brand-900":"#141C28","brand-950":"#0C1117","gray-000":"#FFFFFF","gray-025":"#F7F8F8","gray-050":"#F0F1F2","gray-100":"#E1E2E5","gray-150":"#D2D4D8","gray-200":"#C4C7CB","gray-250":"#B5B9BE","gray-300":"#A7ACB2","gray-350":"#999EA5","gray-400":"#8D9197","gray-450":"#80848A","gray-500":"#74777C","gray-550":"#686B6F","gray-600":"#5C5F63","gray-650":"#505356","gray-700":"#45474A","gray-750":"#3A3B3E","gray-800":"#2F3033","gray-850":"#252627","gray-900":"#1B1C1D","gray-950":"#101112","gray-1000":"#000000","info-050":"#EAF1FB","info-100":"#D5E4F7","info-150":"#C0D6F4","info-200":"#ABC9F0","info-250":"#96BCEC","info-300":"#80AEE8","info-350":"#6CA0E4","info-400":"#5693E0","info-450":"#4085DC","info-500":"#2976D8","info-550":"#1167D4","info-600":"#0659C5","info-650":"#1A509F","info-700":"#20467F","info-750":"#203C63","info-800":"#1D314C","info-850":"#1A2638","info-900":"#141C28","info-950":"#0C1117","success-050":"#E4F7D4","success-100":"#C8EEA8","success-150":"#AAE579","success-200":"#89DC45","success-250":"#72CF27","success-300":"#6AC024","success-350":"#61B121","success-400":"#59A21E","success-450":"#51941C","success-500":"#4B851A","success-550":"#427816","success-600":"#3A6A14","success-650":"#385C1F","success-700":"#344D24","success-750":"#2E4022","success-800":"#27341F","success-850":"#20281A","success-900":"#181D15","success-950":"#10120E","warning-050":"#FFF1BD","warning-100":"#FFE176","warning-150":"#FFCF25","warning-200":"#F4BF06","warning-250":"#E3B205","warning-300":"#D3A504","warning-350":"#C29805","warning-400":"#B28C03","warning-450":"#A27F03","warning-500":"#937303","warning-550":"#836703","warning-600":"#745B03","warning-650":"#625019","warning-700":"#524620","warning-750":"#443B20","warning-800":"#36301D","warning-850":"#2A2619","warning-900":"#1E1C13","warning-950":"#12110C","error-050":"#FCEDED","error-100":"#FADBDB","error-150":"#F7C9C9","error-200":"#F5B7B7","error-250":"#F2A4A4","error-300":"#EF9191","error-350":"#EC7D7D","error-400":"#E96868","error-450":"#E55050","error-500":"#E13131","error-550":"#D80000","error-600":"#C00101","error-650":"#9E2219","error-700":"#802820","error-750":"#662820","error-800":"#4F231E","error-850":"#3B1D19","error-900":"#2A1614","error-950":"#1A0E0C","red-050":"#FDEDED","red-100":"#FADBDB","red-150":"#F8C9C9","red-200":"#F5B7B6","red-250":"#F3A4A3","red-300":"#F09190","red-350":"#EE7C7B","red-400":"#EB6665","red-450":"#E74E4D","red-500":"#D83F3D","red-550":"#C23837","red-600":"#AC3231","red-650":"#8D3531","red-700":"#73332F","red-750":"#5B2F2B","red-800":"#472826","red-850":"#35211F","red-900":"#251817","red-950":"#160F0E","orange-050":"#FDEEE2","orange-100":"#FCDDC5","orange-150":"#FACBA8","orange-200":"#F8B98B","orange-250":"#F6A76A","orange-300":"#F4934B","orange-350":"#F27E27","orange-400":"#E76E12","orange-450":"#D26411","orange-500":"#BE5B0F","orange-550":"#AA510E","orange-600":"#97480C","orange-650":"#7E431D","orange-700":"#673C22","orange-750":"#533422","orange-800":"#412C1F","orange-850":"#31231B","orange-900":"#221A14","orange-950":"#15100C","brown-050":"#F3F0EF","brown-100":"#E7E1DF","brown-150":"#DCD2CF","brown-200":"#D0C4BF","brown-250":"#C5B6B0","brown-300":"#BAA7A1","brown-350":"#AF9992","brown-400":"#A48B83","brown-450":"#997E74","brown-500":"#8F7065","brown-550":"#846357","brown-600":"#7A5649","brown-650":"#684C42","brown-700":"#57423C","brown-750":"#463833","brown-800":"#382E2A","brown-850":"#2B2422","brown-900":"#1F1B19","brown-950":"#121010","yellow-050":"#FAF0D3","yellow-100":"#F5E2A4","yellow-150":"#F0D275","yellow-200":"#EBC242","yellow-250":"#E4B213","yellow-300":"#D4A511","yellow-350":"#C39810","yellow-400":"#B38B0F","yellow-450":"#A37F0D","yellow-500":"#93730C","yellow-550":"#84670B","yellow-600":"#755B0A","yellow-650":"#63501C","yellow-700":"#534521","yellow-750":"#443A21","yellow-800":"#36301F","yellow-850":"#29261A","yellow-900":"#1D1C14","yellow-950":"#12110C","green-050":"#E2F6E5","green-100":"#C5ECCA","green-150":"#A7E3AF","green-200":"#89D894","green-250":"#67CE75","green-300":"#4DC25D","green-350":"#48B257","green-400":"#41A44F","green-450":"#3B9548","green-500":"#368741","green-550":"#30793A","green-600":"#2B6B33","green-650":"#2F5C34","green-700":"#2E4E31","green-750":"#2A412C","green-800":"#253426","green-850":"#1E281F","green-900":"#171D17","green-950":"#0F120F","blue-1-050":"#EBF1FF","blue-1-100":"#D6E3FE","blue-1-150":"#C2D5FE","blue-1-200":"#ADC7FE","blue-1-250":"#99B8FD","blue-1-300":"#84AAFD","blue-1-350":"#6F9BFD","blue-1-400":"#5A8DFB","blue-1-450":"#437DFC","blue-1-500":"#3D71E4","blue-1-550":"#3665CC","blue-1-600":"#305AB5","blue-1-650":"#315093","blue-1-700":"#2E4675","blue-1-750":"#293B5E","blue-1-800":"#243048","blue-1-850":"#1E2635","blue-1-900":"#171C25","blue-1-950":"#0E1116","blue-2-050":"#E2F4F9","blue-2-100":"#C5E9F3","blue-2-150":"#A7DDED","blue-2-200":"#88D1E6","blue-2-250":"#68C5E0","blue-2-300":"#48B8D9","blue-2-350":"#3BAACA","blue-2-400":"#359CB9","blue-2-450":"#318EA9","blue-2-500":"#2C8199","blue-2-550":"#277389","blue-2-600":"#236679","blue-2-650":"#2A5866","blue-2-700":"#2A4B55","blue-2-750":"#283F47","blue-2-800":"#233337","blue-2-850":"#1D272A","blue-2-900":"#161C1E","blue-2-950":"#0E1112","purple-050":"#F6EEFF","purple-100":"#ECDCFF","purple-150":"#E3CBFE","purple-200":"#DAB9FE","purple-250":"#D0A7FE","purple-300":"#C795FE","purple-350":"#BD83FD","purple-400":"#B36FFD","purple-450":"#A85BFD","purple-500":"#9B4BF3","purple-550":"#8B43DA","purple-600":"#7B3CC1","purple-650":"#673C9B","purple-700":"#56387D","purple-750":"#463162","purple-800":"#382A4A","purple-850":"#2A2237","purple-900":"#1E1926","purple-950":"#121017","pink-050":"#FCEDF5","pink-100":"#F9DAEA","pink-150":"#F7C7E0","pink-200":"#F4B4D5","pink-250":"#F1A1CA","pink-300":"#EE8CBF","pink-350":"#EA77B3","pink-400":"#E760A6","pink-450":"#E24797","pink-500":"#CD4089","pink-550":"#B8397B","pink-600":"#A3336D","pink-650":"#86355E","pink-700":"#6E334F","pink-750":"#582E42","pink-800":"#442834","pink-850":"#332028","pink-900":"#24181D","pink-950":"#160F12","black-000":"#1B1C1D00","black-050":"#1B1C1D0D","black-100":"#1B1C1D1A","black-150":"#1B1C1D26","black-200":"#1B1C1D33","black-250":"#1B1C1D40","black-300":"#1B1C1D4D","black-350":"#1B1C1D59","black-400":"#1B1C1D66","black-450":"#1B1C1D73","black-500":"#1B1C1D80","black-550":"#1B1C1D8C","black-600":"#1B1C1D99","black-650":"#1B1C1DA6","black-700":"#1B1C1DB2","black-750":"#1B1C1DBF","black-800":"#1B1C1DCC","black-850":"#1B1C1DD9","black-900":"#1B1C1DE5","black-950":"#101112F2","white-000":"#F7F8F800","white-050":"#F7F8F80D","white-100":"#F7F8F81A","white-150":"#F7F8F826","white-200":"#F7F8F833","white-250":"#F7F8F840","white-300":"#F7F8F84D","white-350":"#F7F8F859","white-400":"#F7F8F866","white-450":"#F7F8F873","white-500":"#F7F8F880","white-550":"#F7F8F88C","white-600":"#F7F8F899","white-650":"#F7F8F8A6","white-700":"#F7F8F8B2","white-750":"#F7F8F8BF","white-800":"#F7F8F8CC","white-850":"#F7F8F8D9","white-900":"#F7F8F8E5","white-950":"#F7F8F8F2","white-975":"#F7F8F8F9"},transitions:{"ease-in":"cubic-bezier(0.32, 0, 0.67, 0)","ease-out":"cubic-bezier(0.33, 1, 0.68, 1)","ease-in-out":"cubic-bezier(0.65, 0, 0.35, 1)",duration:"250ms"},font:{sizes:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",ml:"0.938rem",xl:"1.25rem",t:"0.6875rem",s:"0.75rem",h1:"2rem",h2:"1.75rem",h3:"1.5rem",h4:"1.375rem",h5:"1.25rem",h6:"1.125rem","xl-alt":"5rem","lg-alt":"4.5rem","md-alt":"4rem","sm-alt":"3.5rem","xs-alt":"3rem"},weights:{thin:200,light:300,regular:400,medium:500,bold:600,extrabold:700,black:800},families:{base:'"Roboto Flex Variable", sans-serif',accent:'"Roboto Flex Variable", sans-serif'}},spacings:{l:"3rem",b:"1.625rem",m:"0.8125rem",s:"1rem",t:"0.5rem",st:"0.25rem","4xs":"0.125rem","3xs":"0.25rem","2xs":"0.375rem",xxxs:"0.25rem",xxs:"0.375rem",xs:"0.5rem",sm:"0.75rem",base:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem",xxl:"3rem",xxxl:"3.5rem","2xl":"3rem","3xl":"3.5rem","4xl":"4rem","5xl":"4.5rem","6xl":"6rem","7xl":"7.5rem"},breakpoints:{xs:"0px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1400px"}},contextuals:{background:{surface:{primary:"#FFFFFF",secondary:"#FFFFFF",tertiary:"#F7F8F8"},semantic:{overlay:{primary:"#1B1C1D0D","primary-hover":"#1B1C1D1A"},contextual:{primary:"#1B1C1D0D","primary-hover":"#1B1C1D1A"},brand:{primary:"#1167D4","primary-hover":"#1A509F",secondary:"#D5E4F7","secondary-hover":"#C0D6F4",tertiary:"#EAF1FB","tertiary-hover":"#D5E4F7"},neutral:{primary:"#686B6F","primary-hover":"#505356",secondary:"#E1E2E5","secondary-hover":"#D2D4D8",tertiary:"#F0F1F2","tertiary-hover":"#E1E2E5"},info:{primary:"#1167D4","primary-hover":"#1A509F",secondary:"#D5E4F7","secondary-hover":"#C0D6F4",tertiary:"#EAF1FB","tertiary-hover":"#D5E4F7"},success:{primary:"#427816","primary-hover":"#385C1F",secondary:"#C8EEA8","secondary-hover":"#AAE579",tertiary:"#E4F7D4","tertiary-hover":"#C8EEA8"},warning:{primary:"#836703","primary-hover":"#625019",secondary:"#FFE176","secondary-hover":"#FFCF25",tertiary:"#FFF1BD","tertiary-hover":"#FFE176"},error:{primary:"#D80000","primary-hover":"#9E2219",secondary:"#FADBDB","secondary-hover":"#F7C9C9",tertiary:"#FCEDED","tertiary-hover":"#FADBDB"},disabled:{primary:"#E1E2E5",secondary:"#F0F1F2"}},palette:{brand:{primary:"#2976D8",secondary:"#6CA0E4",tertiary:"#C0D6F4"},red:{primary:"#D83F3D",secondary:"#EE7C7B",tertiary:"#F8C9C9"},orange:{primary:"#BE5B0F",secondary:"#F27E27",tertiary:"#FACBA8"},brown:{primary:"#8F7065",secondary:"#AF9992",tertiary:"#DCD2CF"},yellow:{primary:"#93730C",secondary:"#C39810",tertiary:"#F0D275"},green:{primary:"#368741",secondary:"#48B257",tertiary:"#A7E3AF"},"blue-1":{primary:"#3D71E4",secondary:"#6F9BFD",tertiary:"#C2D5FE"},"blue-2":{primary:"#2C8199",secondary:"#3BAACA",tertiary:"#A7DDED"},purple:{primary:"#9B4BF3",secondary:"#BD83FD",tertiary:"#E3CBFE"},pink:{primary:"#CD4089",secondary:"#EA77B3",tertiary:"#F7C7E0"},gray:{primary:"#74777C",secondary:"#999EA5",tertiary:"#D2D4D8"}}},content:{logo1:"#377FDB",logo2:"#377FDB",semantic:{contextual:{primary:"#F7F8F8F2"},overlay:{primary:"#F7F8F8F2"},brand:{primary:"#20467F",secondary:"#0659C5",tertiary:"#1167D4","on-brand":"#EAF1FB"},neutral:{primary:"#252627",secondary:"#5C5F63",tertiary:"#686B6F","on-neutral":"#F0F1F2"},info:{primary:"#20467F",secondary:"#0659C5",tertiary:"#1167D4","on-info":"#EAF1FB"},success:{primary:"#344D24",secondary:"#3A6A14",tertiary:"#427816","on-success":"#E4F7D4"},warning:{primary:"#524620",secondary:"#745B03",tertiary:"#836703","on-warning":"#FFF1BD"},error:{primary:"#802820",secondary:"#C00101",tertiary:"#D80000","on-error":"#FCEDED"},disabled:{primary:"#A7ACB2",secondary:"#F7F8F880"}},palette:{brand:{primary:"#2976D8"},red:{primary:"#D83F3D"},orange:{primary:"#BE5B0F"},brown:{primary:"#8F7065"},yellow:{primary:"#93730C"},green:{primary:"#368741"},"blue-1":{primary:"#3D71E4"},"blue-2":{primary:"#2C8199"},purple:{primary:"#9B4BF3"},pink:{primary:"#CD4089"},gray:{primary:"#74777C"}}},border:{surface:{primary:"#E1E2E5"},semantic:{contextual:{primary:"#F7F8F833"},overlay:{primary:"#F7F8F833"},brand:{primary:"#1167D4",secondary:"#80AEE8",tertiary:"#C0D6F4"},neutral:{primary:"#686B6F",secondary:"#A7ACB2",tertiary:"#D2D4D8"},info:{primary:"#1167D4",secondary:"#80AEE8",tertiary:"#C0D6F4"},success:{primary:"#427816",secondary:"#6AC024",tertiary:"#AAE579"},warning:{primary:"#836703",secondary:"#D3A504",tertiary:"#FFCF25"},error:{primary:"#D80000",secondary:"#EF9191",tertiary:"#F7C9C9"},disabled:{primary:"#E1E2E5"}}}},components:{}},dark:{globals:{colors:{"logo-1-light":"#377FDB","logo-2-light":"#377FDB","logo-1-dark":"#C1D6F2","logo-2-dark":"#C1D6F2","brand-050":"#EAF1FB","brand-100":"#D5E4F7","brand-150":"#C0D6F4","brand-200":"#ABC9F0","brand-250":"#96BCEC","brand-300":"#80AEE8","brand-350":"#6CA0E4","brand-400":"#5693E0","brand-450":"#4085DC","brand-500":"#2976D8","brand-550":"#1167D4","brand-600":"#0659C5","brand-650":"#1A509F","brand-700":"#20467F","brand-750":"#203C63","brand-800":"#1D314C","brand-850":"#1A2638","brand-900":"#141C28","brand-950":"#0C1117","gray-000":"#FFFFFF","gray-025":"#F7F8F8","gray-050":"#F0F1F2","gray-100":"#E1E2E5","gray-150":"#D2D4D8","gray-200":"#C4C7CB","gray-250":"#B5B9BE","gray-300":"#A7ACB2","gray-350":"#999EA5","gray-400":"#8D9197","gray-450":"#80848A","gray-500":"#74777C","gray-550":"#686B6F","gray-600":"#5C5F63","gray-650":"#505356","gray-700":"#45474A","gray-750":"#3A3B3E","gray-800":"#2F3033","gray-850":"#252627","gray-900":"#1B1C1D","gray-950":"#101112","gray-1000":"#000000","info-050":"#EAF1FB","info-100":"#D5E4F7","info-150":"#C0D6F4","info-200":"#ABC9F0","info-250":"#96BCEC","info-300":"#80AEE8","info-350":"#6CA0E4","info-400":"#5693E0","info-450":"#4085DC","info-500":"#2976D8","info-550":"#1167D4","info-600":"#0659C5","info-650":"#1A509F","info-700":"#20467F","info-750":"#203C63","info-800":"#1D314C","info-850":"#1A2638","info-900":"#141C28","info-950":"#0C1117","success-050":"#E4F7D4","success-100":"#C8EEA8","success-150":"#AAE579","success-200":"#89DC45","success-250":"#72CF27","success-300":"#6AC024","success-350":"#61B121","success-400":"#59A21E","success-450":"#51941C","success-500":"#4B851A","success-550":"#427816","success-600":"#3A6A14","success-650":"#385C1F","success-700":"#344D24","success-750":"#2E4022","success-800":"#27341F","success-850":"#20281A","success-900":"#181D15","success-950":"#10120E","warning-050":"#FFF1BD","warning-100":"#FFE176","warning-150":"#FFCF25","warning-200":"#F4BF06","warning-250":"#E3B205","warning-300":"#D3A504","warning-350":"#C29805","warning-400":"#B28C03","warning-450":"#A27F03","warning-500":"#937303","warning-550":"#836703","warning-600":"#745B03","warning-650":"#625019","warning-700":"#524620","warning-750":"#443B20","warning-800":"#36301D","warning-850":"#2A2619","warning-900":"#1E1C13","warning-950":"#12110C","error-050":"#FCEDED","error-100":"#FADBDB","error-150":"#F7C9C9","error-200":"#F5B7B7","error-250":"#F2A4A4","error-300":"#EF9191","error-350":"#EC7D7D","error-400":"#E96868","error-450":"#E55050","error-500":"#E13131","error-550":"#D80000","error-600":"#C00101","error-650":"#9E2219","error-700":"#802820","error-750":"#662820","error-800":"#4F231E","error-850":"#3B1D19","error-900":"#2A1614","error-950":"#1A0E0C","red-050":"#FDEDED","red-100":"#FADBDB","red-150":"#F8C9C9","red-200":"#F5B7B6","red-250":"#F3A4A3","red-300":"#F09190","red-350":"#EE7C7B","red-400":"#EB6665","red-450":"#E74E4D","red-500":"#D83F3D","red-550":"#C23837","red-600":"#AC3231","red-650":"#8D3531","red-700":"#73332F","red-750":"#5B2F2B","red-800":"#472826","red-850":"#35211F","red-900":"#251817","red-950":"#160F0E","orange-050":"#FDEEE2","orange-100":"#FCDDC5","orange-150":"#FACBA8","orange-200":"#F8B98B","orange-250":"#F6A76A","orange-300":"#F4934B","orange-350":"#F27E27","orange-400":"#E76E12","orange-450":"#D26411","orange-500":"#BE5B0F","orange-550":"#AA510E","orange-600":"#97480C","orange-650":"#7E431D","orange-700":"#673C22","orange-750":"#533422","orange-800":"#412C1F","orange-850":"#31231B","orange-900":"#221A14","orange-950":"#15100C","brown-050":"#F3F0EF","brown-100":"#E7E1DF","brown-150":"#DCD2CF","brown-200":"#D0C4BF","brown-250":"#C5B6B0","brown-300":"#BAA7A1","brown-350":"#AF9992","brown-400":"#A48B83","brown-450":"#997E74","brown-500":"#8F7065","brown-550":"#846357","brown-600":"#7A5649","brown-650":"#684C42","brown-700":"#57423C","brown-750":"#463833","brown-800":"#382E2A","brown-850":"#2B2422","brown-900":"#1F1B19","brown-950":"#121010","yellow-050":"#FAF0D3","yellow-100":"#F5E2A4","yellow-150":"#F0D275","yellow-200":"#EBC242","yellow-250":"#E4B213","yellow-300":"#D4A511","yellow-350":"#C39810","yellow-400":"#B38B0F","yellow-450":"#A37F0D","yellow-500":"#93730C","yellow-550":"#84670B","yellow-600":"#755B0A","yellow-650":"#63501C","yellow-700":"#534521","yellow-750":"#443A21","yellow-800":"#36301F","yellow-850":"#29261A","yellow-900":"#1D1C14","yellow-950":"#12110C","green-050":"#E2F6E5","green-100":"#C5ECCA","green-150":"#A7E3AF","green-200":"#89D894","green-250":"#67CE75","green-300":"#4DC25D","green-350":"#48B257","green-400":"#41A44F","green-450":"#3B9548","green-500":"#368741","green-550":"#30793A","green-600":"#2B6B33","green-650":"#2F5C34","green-700":"#2E4E31","green-750":"#2A412C","green-800":"#253426","green-850":"#1E281F","green-900":"#171D17","green-950":"#0F120F","blue-1-050":"#EBF1FF","blue-1-100":"#D6E3FE","blue-1-150":"#C2D5FE","blue-1-200":"#ADC7FE","blue-1-250":"#99B8FD","blue-1-300":"#84AAFD","blue-1-350":"#6F9BFD","blue-1-400":"#5A8DFB","blue-1-450":"#437DFC","blue-1-500":"#3D71E4","blue-1-550":"#3665CC","blue-1-600":"#305AB5","blue-1-650":"#315093","blue-1-700":"#2E4675","blue-1-750":"#293B5E","blue-1-800":"#243048","blue-1-850":"#1E2635","blue-1-900":"#171C25","blue-1-950":"#0E1116","blue-2-050":"#E2F4F9","blue-2-100":"#C5E9F3","blue-2-150":"#A7DDED","blue-2-200":"#88D1E6","blue-2-250":"#68C5E0","blue-2-300":"#48B8D9","blue-2-350":"#3BAACA","blue-2-400":"#359CB9","blue-2-450":"#318EA9","blue-2-500":"#2C8199","blue-2-550":"#277389","blue-2-600":"#236679","blue-2-650":"#2A5866","blue-2-700":"#2A4B55","blue-2-750":"#283F47","blue-2-800":"#233337","blue-2-850":"#1D272A","blue-2-900":"#161C1E","blue-2-950":"#0E1112","purple-050":"#F6EEFF","purple-100":"#ECDCFF","purple-150":"#E3CBFE","purple-200":"#DAB9FE","purple-250":"#D0A7FE","purple-300":"#C795FE","purple-350":"#BD83FD","purple-400":"#B36FFD","purple-450":"#A85BFD","purple-500":"#9B4BF3","purple-550":"#8B43DA","purple-600":"#7B3CC1","purple-650":"#673C9B","purple-700":"#56387D","purple-750":"#463162","purple-800":"#382A4A","purple-850":"#2A2237","purple-900":"#1E1926","purple-950":"#121017","pink-050":"#FCEDF5","pink-100":"#F9DAEA","pink-150":"#F7C7E0","pink-200":"#F4B4D5","pink-250":"#F1A1CA","pink-300":"#EE8CBF","pink-350":"#EA77B3","pink-400":"#E760A6","pink-450":"#E24797","pink-500":"#CD4089","pink-550":"#B8397B","pink-600":"#A3336D","pink-650":"#86355E","pink-700":"#6E334F","pink-750":"#582E42","pink-800":"#442834","pink-850":"#332028","pink-900":"#24181D","pink-950":"#160F12","black-000":"#1B1C1D00","black-050":"#1B1C1D0D","black-100":"#1B1C1D1A","black-150":"#1B1C1D26","black-200":"#1B1C1D33","black-250":"#1B1C1D40","black-300":"#1B1C1D4D","black-350":"#1B1C1D59","black-400":"#1B1C1D66","black-450":"#1B1C1D73","black-500":"#1B1C1D80","black-550":"#1B1C1D8C","black-600":"#1B1C1D99","black-650":"#1B1C1DA6","black-700":"#1B1C1DB2","black-750":"#1B1C1DBF","black-800":"#1B1C1DCC","black-850":"#1B1C1DD9","black-900":"#1B1C1DE5","black-950":"#101112F2","white-000":"#F7F8F800","white-050":"#F7F8F80D","white-100":"#F7F8F81A","white-150":"#F7F8F826","white-200":"#F7F8F833","white-250":"#F7F8F840","white-300":"#F7F8F84D","white-350":"#F7F8F859","white-400":"#F7F8F866","white-450":"#F7F8F873","white-500":"#F7F8F880","white-550":"#F7F8F88C","white-600":"#F7F8F899","white-650":"#F7F8F8A6","white-700":"#F7F8F8B2","white-750":"#F7F8F8BF","white-800":"#F7F8F8CC","white-850":"#F7F8F8D9","white-900":"#F7F8F8E5","white-950":"#F7F8F8F2","white-975":"#F7F8F8F9"},transitions:{"ease-in":"cubic-bezier(0.32, 0, 0.67, 0)","ease-out":"cubic-bezier(0.33, 1, 0.68, 1)","ease-in-out":"cubic-bezier(0.65, 0, 0.35, 1)",duration:"250ms"},font:{sizes:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",ml:"0.938rem",xl:"1.25rem",t:"0.6875rem",s:"0.75rem",h1:"2rem",h2:"1.75rem",h3:"1.5rem",h4:"1.375rem",h5:"1.25rem",h6:"1.125rem","xl-alt":"5rem","lg-alt":"4.5rem","md-alt":"4rem","sm-alt":"3.5rem","xs-alt":"3rem"},weights:{thin:200,light:300,regular:400,medium:500,bold:600,extrabold:700,black:800},families:{base:'"Roboto Flex Variable", sans-serif',accent:'"Roboto Flex Variable", sans-serif'}},spacings:{l:"3rem",b:"1.625rem",m:"0.8125rem",s:"1rem",t:"0.5rem",st:"0.25rem","4xs":"0.125rem","3xs":"0.25rem","2xs":"0.375rem",xxxs:"0.25rem",xxs:"0.375rem",xs:"0.5rem",sm:"0.75rem",base:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem",xxl:"3rem",xxxl:"3.5rem","2xl":"3rem","3xl":"3.5rem","4xl":"4rem","5xl":"4.5rem","6xl":"6rem","7xl":"7.5rem"},breakpoints:{xs:"0px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1400px"}},contextuals:{background:{surface:{primary:"#2F3033",secondary:"#252627",tertiary:"#1B1C1D"},semantic:{contextual:{primary:"#F7F8F80D","primary-hover":"#F7F8F81A"},overlay:{primary:"#F7F8F80D","primary-hover":"#F7F8F81A"},brand:{primary:"#1167D4","primary-hover":"#1A509F",secondary:"#20467F","secondary-hover":"#203C63",tertiary:"#203C63","tertiary-hover":"#1D314C"},neutral:{primary:"#686B6F","primary-hover":"#505356",secondary:"#45474A","secondary-hover":"#3A3B3E",tertiary:"#3A3B3E","tertiary-hover":"#2F3033"},info:{primary:"#1167D4","primary-hover":"#1A509F",secondary:"#20467F","secondary-hover":"#203C63",tertiary:"#203C63","tertiary-hover":"#1D314C"},success:{primary:"#427816","primary-hover":"#385C1F",secondary:"#344D24","secondary-hover":"#2E4022",tertiary:"#2E4022","tertiary-hover":"#27341F"},warning:{primary:"#836703","primary-hover":"#625019",secondary:"#524620","secondary-hover":"#443B20",tertiary:"#443B20","tertiary-hover":"#36301D"},error:{primary:"#D80000","primary-hover":"#9E2219",secondary:"#802820","secondary-hover":"#662820",tertiary:"#662820","tertiary-hover":"#4F231E"},disabled:{primary:"#3A3B3E",secondary:"#2F3033"}},palette:{brand:{primary:"#6CA0E4",secondary:"#4085DC",tertiary:"#1167D4"},red:{primary:"#EE7C7B",secondary:"#E74E4D",tertiary:"#C23837"},orange:{primary:"#F27E27",secondary:"#D26411",tertiary:"#AA510E"},brown:{primary:"#AF9992",secondary:"#997E74",tertiary:"#846357"},yellow:{primary:"#C39810",secondary:"#A37F0D",tertiary:"#84670B"},green:{primary:"#48B257",secondary:"#3B9548",tertiary:"#30793A"},"blue-1":{primary:"#6F9BFD",secondary:"#437DFC",tertiary:"#3665CC"},"blue-2":{primary:"#3BAACA",secondary:"#318EA9",tertiary:"#277389"},purple:{primary:"#BD83FD",secondary:"#A85BFD",tertiary:"#8B43DA"},pink:{primary:"#EA77B3",secondary:"#E24797",tertiary:"#B8397B"},gray:{primary:"#999EA5",secondary:"#80848A",tertiary:"#686B6F"}}},content:{logo1:"#C1D6F2",logo2:"#C1D6F2",semantic:{contextual:{primary:"#1B1C1DD9"},overlay:{primary:"#1B1C1DD9"},brand:{primary:"#EAF1FB",secondary:"#D5E4F7",tertiary:"#96BCEC","on-brand":"#EAF1FB"},neutral:{primary:"#F0F1F2",secondary:"#E1E2E5",tertiary:"#B5B9BE","on-neutral":"#F0F1F2"},info:{primary:"#EAF1FB",secondary:"#D5E4F7",tertiary:"#96BCEC","on-info":"#EAF1FB"},success:{primary:"#E4F7D4",secondary:"#C8EEA8",tertiary:"#72CF27","on-success":"#E4F7D4"},warning:{primary:"#FFF1BD",secondary:"#FFE176",tertiary:"#E3B205","on-warning":"#FFF1BD"},error:{primary:"#FCEDED",secondary:"#FADBDB",tertiary:"#F2A4A4","on-error":"#FCEDED"},disabled:{primary:"#5C5F63",secondary:"#1B1C1D4D"}},palette:{brand:{primary:"#2976D8"},red:{primary:"#D83F3D"},orange:{primary:"#BE5B0F"},brown:{primary:"#8F7065"},yellow:{primary:"#93730C"},green:{primary:"#368741"},"blue-1":{primary:"#3D71E4"},"blue-2":{primary:"#2C8199"},purple:{primary:"#9B4BF3"},pink:{primary:"#CD4089"},gray:{primary:"#74777C"}}},border:{surface:{primary:"#3A3B3E"},semantic:{contextual:{primary:"#1B1C1D33"},overlay:{primary:"#1B1C1D33"},brand:{primary:"#4085DC",secondary:"#0659C5",tertiary:"#20467F"},neutral:{primary:"#80848A",secondary:"#5C5F63",tertiary:"#45474A"},info:{primary:"#4085DC",secondary:"#0659C5",tertiary:"#20467F"},success:{primary:"#51941C",secondary:"#3A6A14",tertiary:"#344D24"},warning:{primary:"#A27F03",secondary:"#745B03",tertiary:"#524620"},error:{primary:"#E55050",secondary:"#C00101",tertiary:"#802820"},disabled:{primary:"#2F3033"}}}},components:{}}}}),Tr}var kr={},js;function g7(){if(js)return kr;js=1,Object.defineProperty(kr,"__esModule",{value:!0}),kr.buildRefs=void 0;const t=e=>{const r=(n,i)=>{if(typeof i=="object"){const o={};return Object.entries(i).forEach(([a,l])=>{o[a]=r((n?n+".":"")+a,l)}),o}return"ref("+n+")"};return r("",e)};return kr.buildRefs=t,kr}var Ir={},po,Ks;function v7(){if(Ks)return po;Ks=1;var t=function(C){return e(C)&&!r(C)};function e(m){return!!m&&typeof m=="object"}function r(m){var C=Object.prototype.toString.call(m);return C==="[object RegExp]"||C==="[object Date]"||o(m)}var n=typeof Symbol=="function"&&Symbol.for,i=n?Symbol.for("react.element"):60103;function o(m){return m.$$typeof===i}function a(m){return Array.isArray(m)?[]:{}}function l(m,C){return C.clone!==!1&&C.isMergeableObject(m)?h(a(m),m,C):m}function s(m,C,E){return m.concat(C).map(function(F){return l(F,E)})}function c(m,C){if(!C.customMerge)return h;var E=C.customMerge(m);return typeof E=="function"?E:h}function d(m){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(m).filter(function(C){return Object.propertyIsEnumerable.call(m,C)}):[]}function f(m){return Object.keys(m).concat(d(m))}function p(m,C){try{return C in m}catch{return!1}}function g(m,C){return p(m,C)&&!(Object.hasOwnProperty.call(m,C)&&Object.propertyIsEnumerable.call(m,C))}function y(m,C,E){var F={};return E.isMergeableObject(m)&&f(m).forEach(function(D){F[D]=l(m[D],E)}),f(C).forEach(function(D){g(m,D)||(p(m,D)&&E.isMergeableObject(C[D])?F[D]=c(D,E)(m[D],C[D],E):F[D]=l(C[D],E))}),F}function h(m,C,E){E=E||{},E.arrayMerge=E.arrayMerge||s,E.isMergeableObject=E.isMergeableObject||t,E.cloneUnlessOtherwiseSpecified=l;var F=Array.isArray(C),D=Array.isArray(m),w=F===D;return w?F?E.arrayMerge(m,C,E):y(m,C,E):l(C,E)}h.all=function(C,E){if(!Array.isArray(C))throw new Error("first argument should be an array");return C.reduce(function(F,D){return h(F,D,E)},{})};var v=h;return po=v,po}var go={},Vs;function b7(){return Vs||(Vs=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.contextualDarkTokens=t.contextualDefaultTokens=t.globals=t.colors=void 0,t.colors={"logo-1-light":"#377FDB","logo-2-light":"#377FDB","logo-1-dark":"#C1D6F2","logo-2-dark":"#C1D6F2","brand-050":"#EAF1FB","brand-100":"#D5E4F7","brand-150":"#C0D6F4","brand-200":"#ABC9F0","brand-250":"#96BCEC","brand-300":"#80AEE8","brand-350":"#6CA0E4","brand-400":"#5693E0","brand-450":"#4085DC","brand-500":"#2976D8","brand-550":"#1167D4","brand-600":"#0659C5","brand-650":"#1A509F","brand-700":"#20467F","brand-750":"#203C63","brand-800":"#1D314C","brand-850":"#1A2638","brand-900":"#141C28","brand-950":"#0C1117","gray-000":"#FFFFFF","gray-025":"#F7F8F8","gray-050":"#F0F1F2","gray-100":"#E1E2E5","gray-150":"#D2D4D8","gray-200":"#C4C7CB","gray-250":"#B5B9BE","gray-300":"#A7ACB2","gray-350":"#999EA5","gray-400":"#8D9197","gray-450":"#80848A","gray-500":"#74777C","gray-550":"#686B6F","gray-600":"#5C5F63","gray-650":"#505356","gray-700":"#45474A","gray-750":"#3A3B3E","gray-800":"#2F3033","gray-850":"#252627","gray-900":"#1B1C1D","gray-950":"#101112","gray-1000":"#000000","info-050":"#EAF1FB","info-100":"#D5E4F7","info-150":"#C0D6F4","info-200":"#ABC9F0","info-250":"#96BCEC","info-300":"#80AEE8","info-350":"#6CA0E4","info-400":"#5693E0","info-450":"#4085DC","info-500":"#2976D8","info-550":"#1167D4","info-600":"#0659C5","info-650":"#1A509F","info-700":"#20467F","info-750":"#203C63","info-800":"#1D314C","info-850":"#1A2638","info-900":"#141C28","info-950":"#0C1117","success-050":"#E4F7D4","success-100":"#C8EEA8","success-150":"#AAE579","success-200":"#89DC45","success-250":"#72CF27","success-300":"#6AC024","success-350":"#61B121","success-400":"#59A21E","success-450":"#51941C","success-500":"#4B851A","success-550":"#427816","success-600":"#3A6A14","success-650":"#385C1F","success-700":"#344D24","success-750":"#2E4022","success-800":"#27341F","success-850":"#20281A","success-900":"#181D15","success-950":"#10120E","warning-050":"#FFF1BD","warning-100":"#FFE176","warning-150":"#FFCF25","warning-200":"#F4BF06","warning-250":"#E3B205","warning-300":"#D3A504","warning-350":"#C29805","warning-400":"#B28C03","warning-450":"#A27F03","warning-500":"#937303","warning-550":"#836703","warning-600":"#745B03","warning-650":"#625019","warning-700":"#524620","warning-750":"#443B20","warning-800":"#36301D","warning-850":"#2A2619","warning-900":"#1E1C13","warning-950":"#12110C","error-050":"#FCEDED","error-100":"#FADBDB","error-150":"#F7C9C9","error-200":"#F5B7B7","error-250":"#F2A4A4","error-300":"#EF9191","error-350":"#EC7D7D","error-400":"#E96868","error-450":"#E55050","error-500":"#E13131","error-550":"#D80000","error-600":"#C00101","error-650":"#9E2219","error-700":"#802820","error-750":"#662820","error-800":"#4F231E","error-850":"#3B1D19","error-900":"#2A1614","error-950":"#1A0E0C","red-050":"#FDEDED","red-100":"#FADBDB","red-150":"#F8C9C9","red-200":"#F5B7B6","red-250":"#F3A4A3","red-300":"#F09190","red-350":"#EE7C7B","red-400":"#EB6665","red-450":"#E74E4D","red-500":"#D83F3D","red-550":"#C23837","red-600":"#AC3231","red-650":"#8D3531","red-700":"#73332F","red-750":"#5B2F2B","red-800":"#472826","red-850":"#35211F","red-900":"#251817","red-950":"#160F0E","orange-050":"#FDEEE2","orange-100":"#FCDDC5","orange-150":"#FACBA8","orange-200":"#F8B98B","orange-250":"#F6A76A","orange-300":"#F4934B","orange-350":"#F27E27","orange-400":"#E76E12","orange-450":"#D26411","orange-500":"#BE5B0F","orange-550":"#AA510E","orange-600":"#97480C","orange-650":"#7E431D","orange-700":"#673C22","orange-750":"#533422","orange-800":"#412C1F","orange-850":"#31231B","orange-900":"#221A14","orange-950":"#15100C","brown-050":"#F3F0EF","brown-100":"#E7E1DF","brown-150":"#DCD2CF","brown-200":"#D0C4BF","brown-250":"#C5B6B0","brown-300":"#BAA7A1","brown-350":"#AF9992","brown-400":"#A48B83","brown-450":"#997E74","brown-500":"#8F7065","brown-550":"#846357","brown-600":"#7A5649","brown-650":"#684C42","brown-700":"#57423C","brown-750":"#463833","brown-800":"#382E2A","brown-850":"#2B2422","brown-900":"#1F1B19","brown-950":"#121010","yellow-050":"#FAF0D3","yellow-100":"#F5E2A4","yellow-150":"#F0D275","yellow-200":"#EBC242","yellow-250":"#E4B213","yellow-300":"#D4A511","yellow-350":"#C39810","yellow-400":"#B38B0F","yellow-450":"#A37F0D","yellow-500":"#93730C","yellow-550":"#84670B","yellow-600":"#755B0A","yellow-650":"#63501C","yellow-700":"#534521","yellow-750":"#443A21","yellow-800":"#36301F","yellow-850":"#29261A","yellow-900":"#1D1C14","yellow-950":"#12110C","green-050":"#E2F6E5","green-100":"#C5ECCA","green-150":"#A7E3AF","green-200":"#89D894","green-250":"#67CE75","green-300":"#4DC25D","green-350":"#48B257","green-400":"#41A44F","green-450":"#3B9548","green-500":"#368741","green-550":"#30793A","green-600":"#2B6B33","green-650":"#2F5C34","green-700":"#2E4E31","green-750":"#2A412C","green-800":"#253426","green-850":"#1E281F","green-900":"#171D17","green-950":"#0F120F","blue-1-050":"#EBF1FF","blue-1-100":"#D6E3FE","blue-1-150":"#C2D5FE","blue-1-200":"#ADC7FE","blue-1-250":"#99B8FD","blue-1-300":"#84AAFD","blue-1-350":"#6F9BFD","blue-1-400":"#5A8DFB","blue-1-450":"#437DFC","blue-1-500":"#3D71E4","blue-1-550":"#3665CC","blue-1-600":"#305AB5","blue-1-650":"#315093","blue-1-700":"#2E4675","blue-1-750":"#293B5E","blue-1-800":"#243048","blue-1-850":"#1E2635","blue-1-900":"#171C25","blue-1-950":"#0E1116","blue-2-050":"#E2F4F9","blue-2-100":"#C5E9F3","blue-2-150":"#A7DDED","blue-2-200":"#88D1E6","blue-2-250":"#68C5E0","blue-2-300":"#48B8D9","blue-2-350":"#3BAACA","blue-2-400":"#359CB9","blue-2-450":"#318EA9","blue-2-500":"#2C8199","blue-2-550":"#277389","blue-2-600":"#236679","blue-2-650":"#2A5866","blue-2-700":"#2A4B55","blue-2-750":"#283F47","blue-2-800":"#233337","blue-2-850":"#1D272A","blue-2-900":"#161C1E","blue-2-950":"#0E1112","purple-050":"#F6EEFF","purple-100":"#ECDCFF","purple-150":"#E3CBFE","purple-200":"#DAB9FE","purple-250":"#D0A7FE","purple-300":"#C795FE","purple-350":"#BD83FD","purple-400":"#B36FFD","purple-450":"#A85BFD","purple-500":"#9B4BF3","purple-550":"#8B43DA","purple-600":"#7B3CC1","purple-650":"#673C9B","purple-700":"#56387D","purple-750":"#463162","purple-800":"#382A4A","purple-850":"#2A2237","purple-900":"#1E1926","purple-950":"#121017","pink-050":"#FCEDF5","pink-100":"#F9DAEA","pink-150":"#F7C7E0","pink-200":"#F4B4D5","pink-250":"#F1A1CA","pink-300":"#EE8CBF","pink-350":"#EA77B3","pink-400":"#E760A6","pink-450":"#E24797","pink-500":"#CD4089","pink-550":"#B8397B","pink-600":"#A3336D","pink-650":"#86355E","pink-700":"#6E334F","pink-750":"#582E42","pink-800":"#442834","pink-850":"#332028","pink-900":"#24181D","pink-950":"#160F12","black-000":"#1B1C1D00","black-050":"#1B1C1D0D","black-100":"#1B1C1D1A","black-150":"#1B1C1D26","black-200":"#1B1C1D33","black-250":"#1B1C1D40","black-300":"#1B1C1D4D","black-350":"#1B1C1D59","black-400":"#1B1C1D66","black-450":"#1B1C1D73","black-500":"#1B1C1D80","black-550":"#1B1C1D8C","black-600":"#1B1C1D99","black-650":"#1B1C1DA6","black-700":"#1B1C1DB2","black-750":"#1B1C1DBF","black-800":"#1B1C1DCC","black-850":"#1B1C1DD9","black-900":"#1B1C1DE5","black-950":"#101112F2","white-000":"#F7F8F800","white-050":"#F7F8F80D","white-100":"#F7F8F81A","white-150":"#F7F8F826","white-200":"#F7F8F833","white-250":"#F7F8F840","white-300":"#F7F8F84D","white-350":"#F7F8F859","white-400":"#F7F8F866","white-450":"#F7F8F873","white-500":"#F7F8F880","white-550":"#F7F8F88C","white-600":"#F7F8F899","white-650":"#F7F8F8A6","white-700":"#F7F8F8B2","white-750":"#F7F8F8BF","white-800":"#F7F8F8CC","white-850":"#F7F8F8D9","white-900":"#F7F8F8E5","white-950":"#F7F8F8F2","white-975":"#F7F8F8F9"};const e={base:'"Roboto Flex Variable", sans-serif',accent:'"Roboto Flex Variable", sans-serif'},r={l:"3rem",b:"1.625rem",m:"0.8125rem",s:"1rem",t:"0.5rem",st:"0.25rem","4xs":"0.125rem","3xs":"0.25rem","2xs":"0.375rem",xxxs:"0.25rem",xxs:"0.375rem",xs:"0.5rem",sm:"0.75rem",base:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem",xxl:"3rem",xxxl:"3.5rem","2xl":"3rem","3xl":"3.5rem","4xl":"4rem","5xl":"4.5rem","6xl":"6rem","7xl":"7.5rem"},n={"ease-in":"cubic-bezier(0.32, 0, 0.67, 0)","ease-out":"cubic-bezier(0.33, 1, 0.68, 1)","ease-in-out":"cubic-bezier(0.65, 0, 0.35, 1)",duration:"250ms"},i={xs:"0px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1400px"},o={thin:200,light:300,regular:400,medium:500,bold:600,extrabold:700,black:800};t.globals={colors:t.colors,transitions:n,font:{sizes:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",ml:"0.938rem",xl:"1.25rem",t:"0.6875rem",s:"0.75rem",h1:"2rem",h2:"1.75rem",h3:"1.5rem",h4:"1.375rem",h5:"1.25rem",h6:"1.125rem","xl-alt":"5rem","lg-alt":"4.5rem","md-alt":"4rem","sm-alt":"3.5rem","xs-alt":"3rem"},weights:o,families:e},spacings:r,breakpoints:i},t.contextualDefaultTokens={background:{surface:{primary:"ref(globals.colors.gray-000)",secondary:"ref(globals.colors.gray-000)",tertiary:"ref(globals.colors.gray-025)"},semantic:{overlay:{primary:"ref(globals.colors.black-050)","primary-hover":"ref(globals.colors.black-100)"},contextual:{primary:"ref(globals.colors.black-050)","primary-hover":"ref(globals.colors.black-100)"},brand:{primary:"ref(globals.colors.brand-550)","primary-hover":"ref(globals.colors.brand-650)",secondary:"ref(globals.colors.brand-100)","secondary-hover":"ref(globals.colors.brand-150)",tertiary:"ref(globals.colors.brand-050)","tertiary-hover":"ref(globals.colors.brand-100)"},neutral:{primary:"ref(globals.colors.gray-550)","primary-hover":"ref(globals.colors.gray-650)",secondary:"ref(globals.colors.gray-100)","secondary-hover":"ref(globals.colors.gray-150)",tertiary:"ref(globals.colors.gray-050)","tertiary-hover":"ref(globals.colors.gray-100)"},info:{primary:"ref(globals.colors.info-550)","primary-hover":"ref(globals.colors.info-650)",secondary:"ref(globals.colors.info-100)","secondary-hover":"ref(globals.colors.info-150)",tertiary:"ref(globals.colors.info-050)","tertiary-hover":"ref(globals.colors.info-100)"},success:{primary:"ref(globals.colors.success-550)","primary-hover":"ref(globals.colors.success-650)",secondary:"ref(globals.colors.success-100)","secondary-hover":"ref(globals.colors.success-150)",tertiary:"ref(globals.colors.success-050)","tertiary-hover":"ref(globals.colors.success-100)"},warning:{primary:"ref(globals.colors.warning-550)","primary-hover":"ref(globals.colors.warning-650)",secondary:"ref(globals.colors.warning-100)","secondary-hover":"ref(globals.colors.warning-150)",tertiary:"ref(globals.colors.warning-050)","tertiary-hover":"ref(globals.colors.warning-100)"},error:{primary:"ref(globals.colors.error-550)","primary-hover":"ref(globals.colors.error-650)",secondary:"ref(globals.colors.error-100)","secondary-hover":"ref(globals.colors.error-150)",tertiary:"ref(globals.colors.error-050)","tertiary-hover":"ref(globals.colors.error-100)"},disabled:{primary:"ref(globals.colors.gray-100)",secondary:"ref(globals.colors.gray-050)"}},palette:{brand:{primary:"ref(globals.colors.brand-500)",secondary:"ref(globals.colors.brand-350)",tertiary:"ref(globals.colors.brand-150)"},red:{primary:"ref(globals.colors.red-500)",secondary:"ref(globals.colors.red-350)",tertiary:"ref(globals.colors.red-150)"},orange:{primary:"ref(globals.colors.orange-500)",secondary:"ref(globals.colors.orange-350)",tertiary:"ref(globals.colors.orange-150)"},brown:{primary:"ref(globals.colors.brown-500)",secondary:"ref(globals.colors.brown-350)",tertiary:"ref(globals.colors.brown-150)"},yellow:{primary:"ref(globals.colors.yellow-500)",secondary:"ref(globals.colors.yellow-350)",tertiary:"ref(globals.colors.yellow-150)"},green:{primary:"ref(globals.colors.green-500)",secondary:"ref(globals.colors.green-350)",tertiary:"ref(globals.colors.green-150)"},"blue-1":{primary:"ref(globals.colors.blue-1-500)",secondary:"ref(globals.colors.blue-1-350)",tertiary:"ref(globals.colors.blue-1-150)"},"blue-2":{primary:"ref(globals.colors.blue-2-500)",secondary:"ref(globals.colors.blue-2-350)",tertiary:"ref(globals.colors.blue-2-150)"},purple:{primary:"ref(globals.colors.purple-500)",secondary:"ref(globals.colors.purple-350)",tertiary:"ref(globals.colors.purple-150)"},pink:{primary:"ref(globals.colors.pink-500)",secondary:"ref(globals.colors.pink-350)",tertiary:"ref(globals.colors.pink-150)"},gray:{primary:"ref(globals.colors.gray-500)",secondary:"ref(globals.colors.gray-350)",tertiary:"ref(globals.colors.gray-150)"}}},content:{logo1:"ref(globals.colors.logo-1-light)",logo2:"ref(globals.colors.logo-2-light)",semantic:{contextual:{primary:"ref(globals.colors.white-950)"},overlay:{primary:"ref(globals.colors.white-950)"},brand:{primary:"ref(globals.colors.brand-700)",secondary:"ref(globals.colors.brand-600)",tertiary:"ref(globals.colors.brand-550)","on-brand":"ref(globals.colors.brand-050)"},neutral:{primary:"ref(globals.colors.gray-850)",secondary:"ref(globals.colors.gray-600)",tertiary:"ref(globals.colors.gray-550)","on-neutral":"ref(globals.colors.gray-050)"},info:{primary:"ref(globals.colors.info-700)",secondary:"ref(globals.colors.info-600)",tertiary:"ref(globals.colors.info-550)","on-info":"ref(globals.colors.info-050)"},success:{primary:"ref(globals.colors.success-700)",secondary:"ref(globals.colors.success-600)",tertiary:"ref(globals.colors.success-550)","on-success":"ref(globals.colors.success-050)"},warning:{primary:"ref(globals.colors.warning-700)",secondary:"ref(globals.colors.warning-600)",tertiary:"ref(globals.colors.warning-550)","on-warning":"ref(globals.colors.warning-050)"},error:{primary:"ref(globals.colors.error-700)",secondary:"ref(globals.colors.error-600)",tertiary:"ref(globals.colors.error-550)","on-error":"ref(globals.colors.error-050)"},disabled:{primary:"ref(globals.colors.gray-300)",secondary:"ref(globals.colors.white-500)"}},palette:{brand:{primary:"ref(globals.colors.brand-500)"},red:{primary:"ref(globals.colors.red-500)"},orange:{primary:"ref(globals.colors.orange-500)"},brown:{primary:"ref(globals.colors.brown-500)"},yellow:{primary:"ref(globals.colors.yellow-500)"},green:{primary:"ref(globals.colors.green-500)"},"blue-1":{primary:"ref(globals.colors.blue-1-500)"},"blue-2":{primary:"ref(globals.colors.blue-2-500)"},purple:{primary:"ref(globals.colors.purple-500)"},pink:{primary:"ref(globals.colors.pink-500)"},gray:{primary:"ref(globals.colors.gray-500)"}}},border:{surface:{primary:"ref(globals.colors.gray-100)"},semantic:{contextual:{primary:"ref(globals.colors.white-200)"},overlay:{primary:"ref(globals.colors.white-200)"},brand:{primary:"ref(globals.colors.brand-550)",secondary:"ref(globals.colors.brand-300)",tertiary:"ref(globals.colors.brand-150)"},neutral:{primary:"ref(globals.colors.gray-550)",secondary:"ref(globals.colors.gray-300)",tertiary:"ref(globals.colors.gray-150)"},info:{primary:"ref(globals.colors.info-550)",secondary:"ref(globals.colors.info-300)",tertiary:"ref(globals.colors.info-150)"},success:{primary:"ref(globals.colors.success-550)",secondary:"ref(globals.colors.success-300)",tertiary:"ref(globals.colors.success-150)"},warning:{primary:"ref(globals.colors.warning-550)",secondary:"ref(globals.colors.warning-300)",tertiary:"ref(globals.colors.warning-150)"},error:{primary:"ref(globals.colors.error-550)",secondary:"ref(globals.colors.error-300)",tertiary:"ref(globals.colors.error-150)"},disabled:{primary:"ref(globals.colors.gray-100)"}}}},t.contextualDarkTokens={background:{surface:{primary:"ref(globals.colors.gray-800)",secondary:"ref(globals.colors.gray-850)",tertiary:"ref(globals.colors.gray-900)"},semantic:{contextual:{primary:"ref(globals.colors.white-050)","primary-hover":"ref(globals.colors.white-100)"},overlay:{primary:"ref(globals.colors.white-050)","primary-hover":"ref(globals.colors.white-100)"},brand:{primary:"ref(globals.colors.brand-550)","primary-hover":"ref(globals.colors.brand-650)",secondary:"ref(globals.colors.brand-700)","secondary-hover":"ref(globals.colors.brand-750)",tertiary:"ref(globals.colors.brand-750)","tertiary-hover":"ref(globals.colors.brand-800)"},neutral:{primary:"ref(globals.colors.gray-550)","primary-hover":"ref(globals.colors.gray-650)",secondary:"ref(globals.colors.gray-700)","secondary-hover":"ref(globals.colors.gray-750)",tertiary:"ref(globals.colors.gray-750)","tertiary-hover":"ref(globals.colors.gray-800)"},info:{primary:"ref(globals.colors.info-550)","primary-hover":"ref(globals.colors.info-650)",secondary:"ref(globals.colors.info-700)","secondary-hover":"ref(globals.colors.info-750)",tertiary:"ref(globals.colors.info-750)","tertiary-hover":"ref(globals.colors.info-800)"},success:{primary:"ref(globals.colors.success-550)","primary-hover":"ref(globals.colors.success-650)",secondary:"ref(globals.colors.success-700)","secondary-hover":"ref(globals.colors.success-750)",tertiary:"ref(globals.colors.success-750)","tertiary-hover":"ref(globals.colors.success-800)"},warning:{primary:"ref(globals.colors.warning-550)","primary-hover":"ref(globals.colors.warning-650)",secondary:"ref(globals.colors.warning-700)","secondary-hover":"ref(globals.colors.warning-750)",tertiary:"ref(globals.colors.warning-750)","tertiary-hover":"ref(globals.colors.warning-800)"},error:{primary:"ref(globals.colors.error-550)","primary-hover":"ref(globals.colors.error-650)",secondary:"ref(globals.colors.error-700)","secondary-hover":"ref(globals.colors.error-750)",tertiary:"ref(globals.colors.error-750)","tertiary-hover":"ref(globals.colors.error-800)"},disabled:{primary:"ref(globals.colors.gray-750)",secondary:"ref(globals.colors.gray-800)"}},palette:{brand:{primary:"ref(globals.colors.brand-350)",secondary:"ref(globals.colors.brand-450)",tertiary:"ref(globals.colors.brand-550)"},red:{primary:"ref(globals.colors.red-350)",secondary:"ref(globals.colors.red-450)",tertiary:"ref(globals.colors.red-550)"},orange:{primary:"ref(globals.colors.orange-350)",secondary:"ref(globals.colors.orange-450)",tertiary:"ref(globals.colors.orange-550)"},brown:{primary:"ref(globals.colors.brown-350)",secondary:"ref(globals.colors.brown-450)",tertiary:"ref(globals.colors.brown-550)"},yellow:{primary:"ref(globals.colors.yellow-350)",secondary:"ref(globals.colors.yellow-450)",tertiary:"ref(globals.colors.yellow-550)"},green:{primary:"ref(globals.colors.green-350)",secondary:"ref(globals.colors.green-450)",tertiary:"ref(globals.colors.green-550)"},"blue-1":{primary:"ref(globals.colors.blue-1-350)",secondary:"ref(globals.colors.blue-1-450)",tertiary:"ref(globals.colors.blue-1-550)"},"blue-2":{primary:"ref(globals.colors.blue-2-350)",secondary:"ref(globals.colors.blue-2-450)",tertiary:"ref(globals.colors.blue-2-550)"},purple:{primary:"ref(globals.colors.purple-350)",secondary:"ref(globals.colors.purple-450)",tertiary:"ref(globals.colors.purple-550)"},pink:{primary:"ref(globals.colors.pink-350)",secondary:"ref(globals.colors.pink-450)",tertiary:"ref(globals.colors.pink-550)"},gray:{primary:"ref(globals.colors.gray-350)",secondary:"ref(globals.colors.gray-450)",tertiary:"ref(globals.colors.gray-550)"}}},content:{logo1:"ref(globals.colors.logo-1-dark)",logo2:"ref(globals.colors.logo-2-dark)",semantic:{contextual:{primary:"ref(globals.colors.black-850)"},overlay:{primary:"ref(globals.colors.black-850)"},brand:{primary:"ref(globals.colors.brand-050)",secondary:"ref(globals.colors.brand-100)",tertiary:"ref(globals.colors.brand-250)","on-brand":"ref(globals.colors.brand-050)"},neutral:{primary:"ref(globals.colors.gray-050)",secondary:"ref(globals.colors.gray-100)",tertiary:"ref(globals.colors.gray-250)","on-neutral":"ref(globals.colors.gray-050)"},info:{primary:"ref(globals.colors.info-050)",secondary:"ref(globals.colors.info-100)",tertiary:"ref(globals.colors.info-250)","on-info":"ref(globals.colors.info-050)"},success:{primary:"ref(globals.colors.success-050)",secondary:"ref(globals.colors.success-100)",tertiary:"ref(globals.colors.success-250)","on-success":"ref(globals.colors.success-050)"},warning:{primary:"ref(globals.colors.warning-050)",secondary:"ref(globals.colors.warning-100)",tertiary:"ref(globals.colors.warning-250)","on-warning":"ref(globals.colors.warning-050)"},error:{primary:"ref(globals.colors.error-050)",secondary:"ref(globals.colors.error-100)",tertiary:"ref(globals.colors.error-250)","on-error":"ref(globals.colors.error-050)"},disabled:{primary:"ref(globals.colors.gray-600)",secondary:"ref(globals.colors.black-300)"}},palette:{brand:{primary:"ref(globals.colors.brand-500)"},red:{primary:"ref(globals.colors.red-500)"},orange:{primary:"ref(globals.colors.orange-500)"},brown:{primary:"ref(globals.colors.brown-500)"},yellow:{primary:"ref(globals.colors.yellow-500)"},green:{primary:"ref(globals.colors.green-500)"},"blue-1":{primary:"ref(globals.colors.blue-1-500)"},"blue-2":{primary:"ref(globals.colors.blue-2-500)"},purple:{primary:"ref(globals.colors.purple-500)"},pink:{primary:"ref(globals.colors.pink-500)"},gray:{primary:"ref(globals.colors.gray-500)"}}},border:{surface:{primary:"ref(globals.colors.gray-750)"},semantic:{contextual:{primary:"ref(globals.colors.black-200)"},overlay:{primary:"ref(globals.colors.black-200)"},brand:{primary:"ref(globals.colors.brand-450)",secondary:"ref(globals.colors.brand-600)",tertiary:"ref(globals.colors.brand-700)"},neutral:{primary:"ref(globals.colors.gray-450)",secondary:"ref(globals.colors.gray-600)",tertiary:"ref(globals.colors.gray-700)"},info:{primary:"ref(globals.colors.info-450)",secondary:"ref(globals.colors.info-600)",tertiary:"ref(globals.colors.info-700)"},success:{primary:"ref(globals.colors.success-450)",secondary:"ref(globals.colors.success-600)",tertiary:"ref(globals.colors.success-700)"},warning:{primary:"ref(globals.colors.warning-450)",secondary:"ref(globals.colors.warning-600)",tertiary:"ref(globals.colors.warning-700)"},error:{primary:"ref(globals.colors.error-450)",secondary:"ref(globals.colors.error-600)",tertiary:"ref(globals.colors.error-700)"},disabled:{primary:"ref(globals.colors.gray-800)"}}}},t.default={themes:{default:{globals:t.globals,contextuals:t.contextualDefaultTokens,components:{}},dark:{globals:t.globals,contextuals:t.contextualDarkTokens,components:{}}}}}(go)),go}var Hs;function m7(){if(Hs)return Ir;Hs=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.getThemesFromGlobals=void 0;const t=v7(),e=b7(),r=["light","dark"],n={light:e.contextualDefaultTokens,dark:e.contextualDarkTokens},i=(o={},a={})=>(a.variants||r).reduce((s,c)=>{const d=a.prefix?`${a.prefix}-${c}`:c;return s[d]=t({globals:o,contextuals:n[c]},a.overrides||{}),s},{});return Ir.getThemesFromGlobals=i,Ir}var zs;function y7(){return zs||(zs=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.getThemesFromGlobals=t.buildRefs=t.defaultTokenRefs=t.defaultThemes=t.defaultTokens=void 0;const e=p7(),r=g7();Object.defineProperty(t,"buildRefs",{enumerable:!0,get:function(){return r.buildRefs}});const n=m7();Object.defineProperty(t,"getThemesFromGlobals",{enumerable:!0,get:function(){return n.getThemesFromGlobals}}),t.defaultTokens=e.tokens.themes.default,t.defaultThemes=e.tokens.themes,t.defaultTokenRefs=(0,r.buildRefs)(t.defaultTokens)}(ho)),ho}var Ti=y7();const ki={components:{modal:{"width-small":"342px"},tooltip:{padding:"4px 8px"},button:{"medium-height":"40px","medium-text-height":"40px","border-radius":"4px","border-radius--active":"4px","border-radius--focus":"4px"},datagrid:{"header--color":"ref(contextuals.content.semantic.neutral.primary)","header--size":"12px","header--weight":"500","body--background-color-hover":"ref(contextuals.background.semantic.neutral.tertiary)"},"forms-checkbox":{"font-size":"ref(globals.font.sizes.sm)"},badge:{"font-size":"ref(globals.font.sizes.xs)","border-radius":"12px","padding-inline":"ref(globals.spacings.xs)","padding-block":"ref(globals.spacings.2xs)",accent:{"background-color":"ref(contextuals.background.semantic.brand.secondary)",color:"ref(contextuals.content.semantic.brand.secondary)"},neutral:{"background-color":"ref(contextuals.background.semantic.neutral.secondary)",color:"ref(contextuals.content.semantic.neutral.secondary)"},danger:{"background-color":"ref(contextuals.background.semantic.error.secondary)",color:"ref(contextuals.content.semantic.error.secondary)"},success:{"background-color":"ref(contextuals.background.semantic.success.secondary)",color:"ref(contextuals.content.semantic.success.secondary)"},warning:{"background-color":"ref(contextuals.background.semantic.warning.secondary)",color:"ref(contextuals.content.semantic.warning.secondary)"},info:{"background-color":"ref(contextuals.background.semantic.info.secondary)",color:"ref(contextuals.content.semantic.info.secondary)"}}}},Xr={font:{sizes:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",ml:"0.938rem",xl:"1.25rem",t:"0.6875rem",s:"0.75rem",h1:"2rem",h2:"1.75rem",h3:"1.5rem",h4:"1.375rem",h5:"1.25rem",h6:"1.125rem","xl-alt":"5rem","lg-alt":"4.5rem","md-alt":"4rem","sm-alt":"3.5rem","xs-alt":"3rem"},weights:{thin:100,extrabold:800,black:900},families:{accent:"Marianne, Inter, Roboto Flex Variable, sans-serif",base:"Marianne, Inter, Roboto Flex Variable, sans-serif"}},spacings:{0:"0",none:"0",auto:"auto",bx:"2.2rem",full:"100%","4xs":"0.125rem","3xs":"0.25rem","2xs":"0.375rem",xs:"0.5rem",sm:"0.75rem",base:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem",xxl:"3rem","2xl":"3rem",xxxl:"3.5rem","3xl":"3.5rem","4xl":"4rem","5xl":"4.5rem","6xl":"6rem","7xl":"7.5rem"},breakpoints:{xxs:"320px",xs:"480px",mobile:"768px",tablet:"1024px"}},rd={colors:{"logo-1-light":"#4844AD","logo-2-light":"#4844AD","logo-1-dark":"#BEC5F0","logo-2-dark":"#BEC5F0","brand-050":"#EEF1FA","brand-100":"#DDE2F5","brand-150":"#CED3F1","brand-200":"#BEC5F0","brand-250":"#AFB5F1","brand-300":"#A0A5F6","brand-350":"#8F94FD","brand-400":"#8184FC","brand-450":"#7576EE","brand-500":"#6969DF","brand-550":"#5E5CD0","brand-600":"#534FC2","brand-650":"#4844AD","brand-700":"#3E3B98","brand-750":"#36347D","brand-800":"#2D2F5F","brand-850":"#262848","brand-900":"#1C1E32","brand-950":"#11131F","gray-000":"#FFFFFF","gray-025":"#F8F8F9","gray-050":"#F0F0F3","gray-100":"#E2E2EA","gray-150":"#D3D4E0","gray-200":"#C5C6D5","gray-250":"#B7B7CB","gray-300":"#A9A9BF","gray-350":"#9C9CB2","gray-400":"#8F8FA4","gray-450":"#828297","gray-500":"#75758A","gray-550":"#69697D","gray-600":"#5D5D70","gray-650":"#515164","gray-700":"#454558","gray-750":"#3A3A4C","gray-800":"#2F303D","gray-850":"#25252F","gray-900":"#1B1B23","gray-950":"#111114","gray-1000":"#000000","info-050":"#EAF2F9","info-100":"#D5E4F3","info-150":"#BFD7F0","info-200":"#A7CAEE","info-250":"#8DBDEF","info-300":"#6EB0F2","info-350":"#50A2F5","info-400":"#3593F4","info-450":"#1185ED","info-500":"#0077DE","info-550":"#0069CF","info-600":"#005BC0","info-650":"#0D4EAA","info-700":"#124394","info-750":"#163878","info-800":"#192F5A","info-850":"#192541","info-900":"#141B2D","info-950":"#0C111C","success-050":"#E8F1EA","success-100":"#CFE4D4","success-150":"#BAD9C1","success-200":"#A2CFAD","success-250":"#86C597","success-300":"#6CBA83","success-350":"#4FB070","success-400":"#40A363","success-450":"#309556","success-500":"#1E884A","success-550":"#027B3E","success-600":"#016D31","success-650":"#006024","success-700":"#005317","success-750":"#0D4511","success-800":"#11380E","success-850":"#132A11","success-900":"#101E0F","success-950":"#091209","warning-050":"#F8F0E9","warning-100":"#F1E0D3","warning-150":"#ECD0BC","warning-200":"#E8C0A4","warning-250":"#E8AE8A","warning-300":"#EB9970","warning-350":"#E98456","warning-400":"#E57036","warning-450":"#DA5E18","warning-500":"#CB5000","warning-550":"#BC4200","warning-600":"#AD3300","warning-650":"#9E2300","warning-700":"#882011","warning-750":"#731E16","warning-800":"#58201A","warning-850":"#401D18","warning-900":"#2E1714","warning-950":"#1D0F0D","error-050":"#F9EFEC","error-100":"#F4DFD9","error-150":"#F0CEC6","error-200":"#EEBCB2","error-250":"#EEA99D","error-300":"#EF9486","error-350":"#F37C6E","error-400":"#F65F53","error-450":"#F0463D","error-500":"#E82322","error-550":"#D7010E","error-600":"#C00100","error-650":"#AA0000","error-700":"#910C06","error-750":"#731E16","error-800":"#58201A","error-850":"#401D18","error-900":"#2E1714","error-950":"#1D0F0D","red-050":"#FAEFEE","red-100":"#F4DEDD","red-150":"#F1CDCB","red-200":"#EFBBBA","red-250":"#EEA8A8","red-300":"#F09394","red-350":"#F37B7E","red-400":"#EF6569","red-450":"#E94A55","red-500":"#DA3B49","red-550":"#CA2A3C","red-600":"#BB1330","red-650":"#A90021","red-700":"#910A13","red-750":"#731E16","red-800":"#58201A","red-850":"#411D18","red-900":"#2E1714","red-950":"#1D0F0D","orange-050":"#F8F0E9","orange-100":"#F1E0D3","orange-150":"#ECD0BD","orange-200":"#EABFA6","orange-250":"#EBAC90","orange-300":"#EC9772","orange-350":"#E5845A","orange-400":"#D6774D","orange-450":"#C86A40","orange-500":"#B95D33","orange-550":"#AB5025","orange-600":"#9D4315","orange-650":"#8F3600","orange-700":"#812900","orange-750":"#6C2511","orange-800":"#572017","orange-850":"#401D18","orange-900":"#2E1714","orange-950":"#1D0F0D","brown-050":"#F6F0E8","brown-100":"#F1E0D3","brown-150":"#EBD0BA","brown-200":"#E2C0A6","brown-250":"#D4B398","brown-300":"#C6A58B","brown-350":"#B8987E","brown-400":"#AA8B71","brown-450":"#9D7E65","brown-500":"#8F7158","brown-550":"#82654C","brown-600":"#765841","brown-650":"#694C35","brown-700":"#5D412A","brown-750":"#51361E","brown-800":"#452A13","brown-850":"#392008","brown-900":"#29180A","brown-950":"#1B0F08","yellow-050":"#F3F0E7","yellow-100":"#E9E2CF","yellow-150":"#E1D4B7","yellow-200":"#D9C599","yellow-250":"#D2B677","yellow-300":"#CAA756","yellow-350":"#C2972E","yellow-400":"#B98900","yellow-450":"#AB7B00","yellow-500":"#9D6E00","yellow-550":"#916100","yellow-600":"#855400","yellow-650":"#784700","yellow-700":"#6C3A00","yellow-750":"#5F2E00","yellow-800":"#512302","yellow-850":"#3E1D10","yellow-900":"#2D1711","yellow-950":"#1D0F0D","green-050":"#E6F1E9","green-100":"#CFE4D5","green-150":"#B8D8C1","green-200":"#A0CFAE","green-250":"#84C59A","green-300":"#65BA86","green-350":"#45B173","green-400":"#23A562","green-450":"#029755","green-500":"#008948","green-550":"#017B3B","green-600":"#006E2E","green-650":"#006022","green-700":"#005314","green-750":"#0D4510","green-800":"#11380E","green-850":"#132A11","green-900":"#101E0F","green-950":"#091209","blue-1-050":"#EBF1F9","blue-1-100":"#D6E4F4","blue-1-150":"#C1D7F0","blue-1-200":"#AACAEF","blue-1-250":"#8FBCEF","blue-1-300":"#7CAFEB","blue-1-350":"#68A1E4","blue-1-400":"#5B94D6","blue-1-450":"#4E86C7","blue-1-500":"#4279B9","blue-1-550":"#356CAC","blue-1-600":"#28609E","blue-1-650":"#1B5390","blue-1-700":"#0B4783","blue-1-750":"#0F3C6E","blue-1-800":"#133059","blue-1-850":"#152641","blue-1-900":"#121C2D","blue-1-950":"#0B111C","blue-2-050":"#E7F3F4","blue-2-100":"#CEE7E9","blue-2-150":"#B2DCE0","blue-2-200":"#91D1D7","blue-2-250":"#68C7D0","blue-2-300":"#43BBC5","blue-2-350":"#00AFBA","blue-2-400":"#01A0AA","blue-2-450":"#00929D","blue-2-500":"#00848F","blue-2-550":"#007682","blue-2-600":"#016874","blue-2-650":"#005B67","blue-2-700":"#004E5A","blue-2-750":"#00424E","blue-2-800":"#003642","blue-2-850":"#002A38","blue-2-900":"#061E28","blue-2-950":"#071219","purple-050":"#F7F0F6","purple-100":"#EEE0EE","purple-150":"#E7D1E7","purple-200":"#DBBFE4","purple-250":"#D3AEE2","purple-300":"#CB99E1","purple-350":"#C188D9","purple-400":"#B47BCB","purple-450":"#A66EBD","purple-500":"#9961AF","purple-550":"#8B55A1","purple-600":"#7E4894","purple-650":"#723C87","purple-700":"#633376","purple-750":"#552A65","purple-800":"#452551","purple-850":"#35213D","purple-900":"#261A2C","purple-950":"#17111C","pink-050":"#F8EFF4","pink-100":"#F0DFEA","pink-150":"#EACEDF","pink-200":"#E9BBD1","pink-250":"#E9A7C2","pink-300":"#E095B4","pink-350":"#D685A8","pink-400":"#C7799B","pink-450":"#B86C8D","pink-500":"#AA5F80","pink-550":"#9C5374","pink-600":"#8E4767","pink-650":"#813B5B","pink-700":"#732E4F","pink-750":"#632643","pink-800":"#521F38","pink-850":"#3E1C2B","pink-900":"#2D171F","pink-950":"#1C0E12","black-000":"#1B1B2300","black-050":"#1B1B230D","black-100":"#1B1B231A","black-150":"#1B1B2326","black-200":"#1B1B2333","black-250":"#1B1B2340","black-300":"#1B1B234D","black-350":"#1B1B2359","black-400":"#1B1B2366","black-450":"#1B1B2373","black-500":"#1B1B2380","black-550":"#1B1B238C","black-600":"#1B1B2399","black-650":"#1B1B23A6","black-700":"#1B1B23B2","black-750":"#1B1B23BF","black-800":"#1B1B23CC","black-850":"#1B1B23D9","black-900":"#1B1B23E5","black-950":"#111114F2","white-000":"#F8F8F900","white-050":"#F8F8F90D","white-100":"#F8F8F91A","white-150":"#F8F8F926","white-200":"#F8F8F933","white-250":"#F8F8F940","white-300":"#F8F8F94D","white-350":"#F8F8F959","white-400":"#F8F8F966","white-450":"#F8F8F973","white-500":"#F8F8F980","white-550":"#F8F8F98C","white-600":"#F8F8F999","white-650":"#F8F8F9A6","white-700":"#F8F8F9B2","white-750":"#F8F8F9BF","white-800":"#F8F8F9CC","white-850":"#F8F8F9D9","white-900":"#F8F8F9E5","white-950":"#F8F8F9F2","white-975":"#F8F8F9F9"},...Xr,font:{...Xr.font,families:{base:"Hanken Grotesk, Inter, Roboto Flex Variable, sans-serif",accent:"Hanken Grotesk, Inter, Roboto Flex Variable, sans-serif"}}},nd={colors:{"logo-1-light":"#2845C1","logo-2-light":"#C83F49","logo-1-dark":"#95ABFF","logo-2-dark":"#E78087","brand-050":"#EDF0FF","brand-100":"#DAE2FF","brand-150":"#C8D3FF","brand-200":"#B5C4FF","brand-250":"#A2B6FF","brand-300":"#90A7FF","brand-350":"#7E98FF","brand-400":"#6C89FE","brand-450":"#5C7AF7","brand-500":"#4C6CEF","brand-550":"#3E5DE7","brand-600":"#304DDF","brand-650":"#2845C1","brand-700":"#223E9E","brand-750":"#1F367D","brand-800":"#1B2E5F","brand-850":"#172446","brand-900":"#121B30","brand-950":"#0C111A","gray-100":"#DFE2EA","gray-150":"#CFD5DE","gray-200":"#C1C7D3","gray-250":"#B2B9C7","gray-300":"#A4ABBC","gray-350":"#969EB0","gray-400":"#8891A4","gray-450":"#7B8498","gray-500":"#6D778C","gray-550":"#626A80","gray-600":"#555E74","gray-650":"#4A5267","gray-700":"#3F4759","gray-750":"#363B4C","gray-800":"#2B303D","gray-850":"#222631","gray-900":"#181B24","gray-950":"#0F1117","gray-1000":"#000000","info-050":"#E7F2FF","info-100":"#CFE5FF","info-150":"#B7D7FF","info-200":"#A0CAFE","info-250":"#8CBCF9","info-300":"#77AEF4","info-350":"#63A0EE","info-400":"#5092E7","info-450":"#4185DC","info-500":"#3677CC","info-550":"#2F6ABB","info-600":"#265EAA","info-650":"#28528F","info-700":"#274775","info-750":"#243C5E","info-800":"#20314A","info-850":"#1B2637","info-900":"#141C27","info-950":"#0D1118","success-050":"#DEF7E6","success-100":"#BAEECF","success-150":"#A5E2C0","success-200":"#95D4B3","success-250":"#85C6A7","success-300":"#74B99B","success-350":"#65AB8F","success-400":"#579E84","success-450":"#4B9079","success-500":"#40836F","success-550":"#367664","success-600":"#2B695A","success-650":"#2C5A50","success-700":"#2A4D45","success-750":"#26403C","success-800":"#213430","success-850":"#1B2826","success-900":"#151D1C","success-950":"#0D1212","warning-050":"#FFEEDF","warning-100":"#FFDCBE","warning-150":"#FFCA9C","warning-200":"#FFB778","warning-250":"#FDA54F","warning-300":"#F59425","warning-350":"#E78613","warning-400":"#D7790C","warning-450":"#C86C08","warning-500":"#B85F03","warning-550":"#A75400","warning-600":"#984800","warning-650":"#814112","warning-700":"#6C3A19","warning-750":"#58321C","warning-800":"#452A1A","warning-850":"#352117","warning-900":"#261813","warning-950":"#170F0C","error-050":"#FFEDEB","error-100":"#FFDAD7","error-150":"#FFC7C2","error-200":"#FFB3AD","error-250":"#FF9F99","error-300":"#FF8984","error-350":"#FF706E","error-400":"#FB5759","error-450":"#F63A45","error-500":"#E32C39","error-550":"#CF202D","error-600":"#BD0F23","error-650":"#9D2227","error-700":"#812727","error-750":"#672624","error-800":"#512220","error-850":"#3D1C1B","error-900":"#2A1614","error-950":"#190E0D","red-050":"#FFEDEB","red-100":"#FFDAD7","red-150":"#FFC7C2","red-200":"#FFB3AD","red-250":"#FF9F99","red-300":"#FF8984","red-350":"#FF706E","red-400":"#FB5759","red-450":"#F63A45","red-500":"#E32C39","red-550":"#CF202D","red-600":"#BD0F23","red-650":"#9D2227","red-700":"#812727","red-750":"#672624","red-800":"#512220","red-850":"#3D1C1B","red-900":"#410003","red-950":"#190E0D","orange-050":"#FCEDEB","orange-100":"#F8DCD7","orange-150":"#F1CCC5","orange-200":"#EABCB4","orange-250":"#E2ACA2","orange-300":"#DA9C92","orange-350":"#D28C81","orange-400":"#CA7C70","orange-450":"#BE6E62","orange-500":"#AE6257","orange-550":"#9E564D","orange-600":"#8F4B42","orange-650":"#79443D","orange-700":"#643C37","orange-750":"#513430","orange-800":"#412B28","orange-850":"#312220","orange-900":"#231918","orange-950":"#150F0F","brown-050":"#F9EFEA","brown-100":"#F3DFD3","brown-150":"#EACFC1","brown-200":"#E2BFAE","brown-250":"#D8B19C","brown-300":"#D0A189","brown-350":"#C3937B","brown-400":"#B5866D","brown-450":"#A77A62","brown-500":"#996D57","brown-550":"#8B614D","brown-600":"#7C5542","brown-650":"#6A4C3C","brown-700":"#594236","brown-750":"#49382F","brown-800":"#3B2E28","brown-850":"#2D2420","brown-900":"#201A18","brown-950":"#13100F","yellow-050":"#FDF1C5","yellow-100":"#FBE18E","yellow-150":"#F4D261","yellow-200":"#EAC244","yellow-250":"#DFB41B","yellow-300":"#D1A516","yellow-350":"#C49711","yellow-400":"#B78A0C","yellow-450":"#A87D07","yellow-500":"#9B6F02","yellow-550":"#8D6300","yellow-600":"#7F5600","yellow-650":"#6E4C11","yellow-700":"#5D4219","yellow-750":"#4D371B","yellow-800":"#3D2E1A","yellow-850":"#2F2417","yellow-900":"#221A12","yellow-950":"#14100C","green-050":"#E7F9B3","green-100":"#D5EC98","green-150":"#C5DE86","green-200":"#B5D174","green-250":"#A5C464","green-300":"#95B755","green-350":"#85AA45","green-400":"#769D39","green-450":"#688F30","green-500":"#5A8228","green-550":"#4D7621","green-600":"#416919","green-650":"#3A5B20","green-700":"#324E22","green-750":"#2C4122","green-800":"#24351D","green-850":"#1D2919","green-900":"#161E13","green-950":"#0E120C","blue-1-050":"#E7F2FF","blue-1-100":"#CFE5FF","blue-1-150":"#B7D7FF","blue-1-200":"#A0CAFE","blue-1-250":"#8CBCF9","blue-1-300":"#77AEF4","blue-1-350":"#63A0EE","blue-1-400":"#5092E7","blue-1-450":"#4185DC","blue-1-500":"#3677CC","blue-1-550":"#2F6ABB","blue-1-600":"#265EAA","blue-1-650":"#28528F","blue-1-700":"#274775","blue-1-750":"#243C5E","blue-1-800":"#20314A","blue-1-850":"#1B2637","blue-1-900":"#141C27","blue-1-950":"#0D1118","blue-2-050":"#E2F4FD","blue-2-100":"#C4E8F8","blue-2-150":"#AADCF2","blue-2-200":"#93CFEB","blue-2-250":"#7CC2E2","blue-2-300":"#6CB4D6","blue-2-350":"#5CA7C9","blue-2-400":"#5099BC","blue-2-450":"#458BAE","blue-2-500":"#3A7EA0","blue-2-550":"#327191","blue-2-600":"#286483","blue-2-650":"#2B5770","blue-2-700":"#294A5E","blue-2-750":"#263E4D","blue-2-800":"#22323D","blue-2-850":"#1C272E","blue-2-900":"#151D21","blue-2-950":"#0E1114","purple-050":"#F5EEFF","purple-100":"#ECDCFF","purple-150":"#E2CBFF","purple-200":"#D9B9FF","purple-250":"#D0A7FF","purple-300":"#C894FE","purple-350":"#BE83FA","purple-400":"#B570F5","purple-450":"#AB5EF0","purple-500":"#A04BE8","purple-550":"#933CDB","purple-600":"#8530C8","purple-650":"#7033A5","purple-700":"#5D3185","purple-750":"#4C2C6A","purple-800":"#3C2652","purple-850":"#2D203C","purple-900":"#21182A","purple-950":"#130F19","pink-050":"#FFEBF6","pink-100":"#FFD8ED","pink-150":"#FCC4E3","pink-200":"#F7B2D9","pink-250":"#F29FCE","pink-300":"#ED8CC3","pink-350":"#E779B8","pink-400":"#E264AD","pink-450":"#D2579E","pink-500":"#C24B8E","pink-550":"#B0417F","pink-600":"#9F3670","pink-650":"#873560","pink-700":"#6F3250","pink-750":"#5A2C43","pink-800":"#472635","pink-850":"#351F29","pink-900":"#26171D","pink-950":"#170F12","black-000":"#181B2400","black-050":"#181B240D","black-100":"#181B241A","black-150":"#181B2426","black-200":"#181B2433","black-250":"#181B2440","black-300":"#181B244D","black-350":"#181B2459","black-400":"#181B2466","black-450":"#181B2473","black-500":"#181B2480","black-550":"#181B248C","black-600":"#181B2499","black-650":"#181B24A6","black-700":"#181B24B2","black-750":"#181B24BF","black-800":"#181B24CC","black-850":"#181B24D9","black-900":"#181B24E5","black-950":"#0F1117F2","white-000":"#F6F8F900","white-050":"#F6F8F90D","white-100":"#F6F8F91A","white-150":"#F6F8F926","white-200":"#F6F8F933","white-250":"#F6F8F940","white-300":"#F6F8F94D","white-350":"#F6F8F959","white-400":"#F6F8F966","white-450":"#F6F8F973","white-500":"#F6F8F980","white-550":"#F6F8F98C","white-600":"#F6F8F999","white-650":"#F6F8F9A6","white-700":"#F6F8F9B2","white-750":"#F6F8F9BF","white-800":"#F6F8F9CC","white-850":"#F6F8F9D9","white-900":"#F6F8F9E5","white-950":"#F6F8F9F2","white-975":"#F6F8F9F9"},...Xr},id={colors:{"logo-1-light":"#2845C1","logo-2-light":"#FBC63A","logo-1-dark":"#94A3E5","logo-2-dark":"#EFD183","brand-050":"#EEF0F9","brand-100":"#DDE2F5","brand-150":"#CBD4F1","brand-200":"#B8C6F0","brand-250":"#A5B7F2","brand-300":"#91A8F7","brand-350":"#7C98FE","brand-400":"#6A89FF","brand-450":"#5A7AFB","brand-500":"#4B6BF0","brand-550":"#3E5CE7","brand-600":"#3352D5","brand-650":"#2A47C0","brand-700":"#2340A3","brand-750":"#223A7F","brand-800":"#1F325F","brand-850":"#1B2845","brand-900":"#151E30","brand-950":"#0D121D","gray-000":"#FFFFFF","gray-025":"#F6F8FA","gray-050":"#ECF1F7","gray-100":"#DDE3F3","gray-150":"#CCD4EA","gray-200":"#BCC7E0","gray-250":"#AEB9D2","gray-300":"#A1ABC4","gray-350":"#949EB6","gray-400":"#8791A9","gray-450":"#7A849B","gray-500":"#6D778E","gray-550":"#616A81","gray-600":"#555E75","gray-650":"#495268","gray-700":"#3E475C","gray-750":"#333B50","gray-800":"#283044","gray-850":"#1E2539","gray-900":"#171B28","gray-950":"#0F1118","gray-1000":"#000000","info-050":"#E9F2F8","info-100":"#D2E5F1","info-150":"#C0D7F0","info-200":"#AEC8F0","info-250":"#9EB9F2","info-300":"#8DABEE","info-350":"#7B9DE9","info-400":"#6E8FDB","info-450":"#6282CD","info-500":"#5575BF","info-550":"#4968B1","info-600":"#3E5CA3","info-650":"#344F97","info-700":"#294389","info-750":"#243972","info-800":"#1D2F5B","info-850":"#1A2744","info-900":"#151D2F","info-950":"#0E131F","success-050":"#E7F1E9","success-100":"#CFE3D3","success-150":"#B9D8C0","success-200":"#A1CEAC","success-250":"#85C496","success-300":"#63BC7F","success-350":"#45B16B","success-400":"#1CA659","success-450":"#00984C","success-500":"#008A3F","success-550":"#007C32","success-600":"#006E24","success-650":"#016016","success-700":"#005305","success-750":"#0D450A","success-800":"#11380E","success-850":"#132A11","success-900":"#101E0F","success-950":"#091209","warning-050":"#F6F0E8","warning-100":"#EDE2D1","warning-150":"#E6D3B8","warning-200":"#E3C39F","warning-250":"#E3B082","warning-300":"#E19E5C","warning-350":"#D98E3F","warning-400":"#CF7D19","warning-450":"#C17000","warning-500":"#B36300","warning-550":"#A45600","warning-600":"#964900","warning-650":"#893C00","warning-700":"#7B2F00","warning-750":"#68270D","warning-800":"#562013","warning-850":"#411D18","warning-900":"#2E1714","warning-950":"#1D0F0D","error-050":"#F9EFEC","error-100":"#F4DFD9","error-150":"#F0CEC6","error-200":"#EEBCB2","error-250":"#EEA99D","error-300":"#EF9487","error-350":"#F37C6E","error-400":"#F65F53","error-450":"#EF443C","error-500":"#E0342E","error-550":"#D0201F","error-600":"#C0000C","error-650":"#AA0000","error-700":"#910C06","error-750":"#731E16","error-800":"#58201A","error-850":"#411D18","error-900":"#2E1714","error-950":"#1D0F0D","red-050":"#F9EFEC","red-100":"#F4DEDA","red-150":"#F0CDC9","red-200":"#EEBBB6","red-250":"#EEA8A2","red-300":"#F0938D","red-350":"#EC7E78","red-400":"#E46D67","red-450":"#D95B58","red-500":"#CA4E4B","red-550":"#BB403F","red-600":"#AC3233","red-650":"#9D2227","red-700":"#882023","red-750":"#721D1B","red-800":"#58201A","red-850":"#401D18","red-900":"#2E1714","red-950":"#1D0F0D","orange-050":"#F8F0E9","orange-100":"#F1E0D3","orange-150":"#ECD0BD","orange-200":"#E9C0A5","orange-250":"#E8AE8A","orange-300":"#EB9870","orange-350":"#EB845A","orange-400":"#E66E37","orange-450":"#DD5B16","orange-500":"#CE4D00","orange-550":"#BF3E00","orange-600":"#B02F00","orange-650":"#A11E00","orange-700":"#8A1E14","orange-750":"#731E16","orange-800":"#58201A","orange-850":"#401D18","orange-900":"#2E1714","orange-950":"#1D0F0D","brown-050":"#F5F0E8","brown-100":"#ECE2D1","brown-150":"#E9D1B9","brown-200":"#E3C19D","brown-250":"#DCB187","brown-300":"#D2A26F","brown-350":"#C49562","brown-400":"#B68855","brown-450":"#A97B48","brown-500":"#9B6E3B","brown-550":"#8E612F","brown-600":"#815521","brown-650":"#744913","brown-700":"#673D00","brown-750":"#5A3100","brown-800":"#4E2600","brown-850":"#3D1F0B","brown-900":"#2C170F","brown-950":"#1C0F0B","yellow-050":"#F3F0E7","yellow-100":"#E9E2CF","yellow-150":"#E0D4B7","yellow-200":"#DAC59A","yellow-250":"#D5B67A","yellow-300":"#D0A559","yellow-350":"#CC9331","yellow-400":"#C48400","yellow-450":"#B77600","yellow-500":"#AA6800","yellow-550":"#9D5A00","yellow-600":"#914D00","yellow-650":"#843F00","yellow-700":"#773200","yellow-750":"#6A2601","yellow-800":"#56210F","yellow-850":"#401D16","yellow-900":"#2E1714","yellow-950":"#1D0F0D","green-050":"#E3F1EF","green-100":"#CAE5E1","green-150":"#B0DBD4","green-200":"#91D1C7","green-250":"#6AC8BC","green-300":"#4DBCAF","green-350":"#3CAFA2","green-400":"#2AA194","green-450":"#109487","green-500":"#00867A","green-550":"#00786D","green-600":"#016A60","green-650":"#015D53","green-700":"#005047","green-750":"#00443B","green-800":"#00382F","green-850":"#002C25","green-900":"#041F1A","green-950":"#041310","blue-1-050":"#EAF2F9","blue-1-100":"#D4E4F3","blue-1-150":"#BFD7F0","blue-1-200":"#AAC9EF","blue-1-250":"#96BBF1","blue-1-300":"#82ACF6","blue-1-350":"#709BFE","blue-1-400":"#608BFF","blue-1-450":"#537BFB","blue-1-500":"#476DEC","blue-1-550":"#3C60DD","blue-1-600":"#3252CF","blue-1-650":"#2B48B9","blue-1-700":"#28409B","blue-1-750":"#24397E","blue-1-800":"#223260","blue-1-850":"#1F2A48","blue-1-900":"#191F32","blue-1-950":"#111320","blue-2-050":"#E5F2F3","blue-2-100":"#CDE6EC","blue-2-150":"#B7D9EA","blue-2-200":"#9BCDE7","blue-2-250":"#84C1E0","blue-2-300":"#6BB4D8","blue-2-350":"#5CA6CB","blue-2-400":"#4D99BC","blue-2-450":"#3E8CAE","blue-2-500":"#2F7FA2","blue-2-550":"#1F7295","blue-2-600":"#056688","blue-2-650":"#00597B","blue-2-700":"#004C6C","blue-2-750":"#003F5E","blue-2-800":"#003353","blue-2-850":"#0C273E","blue-2-900":"#0E1C2C","blue-2-950":"#0A121C","purple-050":"#EDF1FA","purple-100":"#DCE2F5","purple-150":"#CCD4F1","purple-200":"#BCC4F0","purple-250":"#ADB6F2","purple-300":"#9EA6F6","purple-350":"#8E95FD","purple-400":"#8083FF","purple-450":"#7173FF","purple-500":"#6665F1","purple-550":"#5B57E2","purple-600":"#5049D4","purple-650":"#4641BC","purple-700":"#3D39A2","purple-750":"#363680","purple-800":"#2E3162","purple-850":"#242848","purple-900":"#1C1E32","purple-950":"#121320","pink-050":"#F8EFF4","pink-100":"#F0DEE9","pink-150":"#EBCDDF","pink-200":"#E7BDD6","pink-250":"#E5A9CC","pink-300":"#E695C0","pink-350":"#EA7CAE","pink-400":"#E4659F","pink-450":"#DD4F93","pink-500":"#CD4085","pink-550":"#BE3279","pink-600":"#AE216D","pink-650":"#9B195D","pink-700":"#86164E","pink-750":"#6E1B3D","pink-800":"#551E31","pink-850":"#3F1C24","pink-900":"#2D161A","pink-950":"#1C0E10","black-000":"#191B2200","black-050":"#191B220D","black-100":"#191B221A","black-150":"#191B2226","black-200":"#191B2233","black-250":"#191B2240","black-300":"#191B224D","black-350":"#191B2259","black-400":"#191B2266","black-450":"#191B2273","black-500":"#191B2280","black-550":"#191B228C","black-600":"#191B2299","black-650":"#191B22A6","black-700":"#191B22B2","black-750":"#191B22BF","black-800":"#191B22CC","black-850":"#191B22D9","black-900":"#191B22E5","black-950":"#0F1115F2","white-000":"#F7F8F800","white-050":"#F7F8F80D","white-100":"#F7F8F81A","white-150":"#F7F8F826","white-200":"#F7F8F833","white-250":"#F7F8F840","white-300":"#F7F8F84D","white-350":"#F7F8F859","white-400":"#F7F8F866","white-450":"#F7F8F873","white-500":"#F7F8F880","white-550":"#F7F8F88C","white-600":"#F7F8F899","white-650":"#F7F8F8A6","white-700":"#F7F8F8B2","white-750":"#F7F8F8BF","white-800":"#F7F8F8CC","white-850":"#F7F8F8D9","white-900":"#F7F8F8E5","white-950":"#F7F8F8F2","white-975":"#F7F8F8F9"},...Xr},Us=Ti.getThemesFromGlobals(rd,{overrides:ki}),C7=Ti.getThemesFromGlobals(nd,{prefix:"dsfr",overrides:ki}),E7=Ti.getThemesFromGlobals(id,{prefix:"anct",overrides:ki}),w7={themes:{default:Us.light,dark:Us.dark,...C7,...E7}},fa={...w7},Ws={mobile:parseInt(fa.themes.default.globals.breakpoints.mobile.replace("px","")),tablet:parseInt(fa.themes.default.globals.breakpoints.tablet.replace("px",""))},Zs=(t,e)=>({isMobile:t<=e.mobile,isTablet:t<=e.tablet,isDesktop:t>e.tablet}),ot=()=>{const[t,e]=u.useState(Zs(window.innerWidth,Ws));return u.useEffect(()=>{const r=()=>{const n=Zs(window.innerWidth,Ws);JSON.stringify(n)===JSON.stringify(t)||e(n)};return window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[t]),t},od=u.memo(({apiUrl:t,data:e,...r})=>{const{t:n}=X.useCunningham(),{isMobile:i}=ot(),o=u.useRef(null),a=u.useMemo(()=>(r==null?void 0:r.widgetPath)||"https://static.suite.anct.gouv.fr/widgets/lagaufre.js",[r==null?void 0:r.widgetPath]),l=e!=null&&e.services?void 0:t,s=r.label||n("components.laGaufre.label"),c=r.closeLabel||n("components.laGaufre.closeLabel"),d=r.loadingText||n("components.laGaufre.loadingText"),f=r.newWindowLabelSuffix||n("components.laGaufre.newWindowLabelSuffix"),p=r.background||"",g=r.headerLabel||n("components.laGaufre.headerLabel"),y=r.viewMoreLabel||n("components.laGaufre.viewMoreLabel"),h=r.viewLessLabel||n("components.laGaufre.viewLessLabel");return u.useEffect(()=>{window._lasuite_widget=window._lasuite_widget||[],document.querySelectorAll("#lasuite-widget-lagaufre-shadow").forEach(m=>{var C;return(C=m.parentNode)==null?void 0:C.removeChild(m)}),window._lasuite_widget.push(["lagaufre","init",{...r,api:l,label:s,data:e,closeLabel:c,background:p,showFooter:i,headerLabel:g,headerLogo:h7,loadingText:d,newWindowLabelSuffix:f,viewMoreLabel:y,viewLessLabel:h,buttonElement:o.current,position:()=>{var m,C,E,F;return{position:"absolute",top:(((m=o.current)==null?void 0:m.offsetTop)??0)+(((C=o.current)==null?void 0:C.offsetHeight)??0)+10,right:window.innerWidth-(((E=o.current)==null?void 0:E.offsetLeft)??0)-(((F=o.current)==null?void 0:F.offsetWidth)??0)}}}])},[y,h,c,g,d,l,a]),b.jsxs(b.Fragment,{children:[b.jsx("script",{src:a,id:"lasuite-gaufre-script",async:!0}),b.jsx("div",{children:b.jsx(X.Button,{ref:o,icon:b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none",viewBox:"0 0 18 18",children:[b.jsx("defs",{children:b.jsx("path",{id:"a",fill:"var(--c--contextuals--background--semantic--brand--primary)",d:"M2.796.5c.469 0 .704 0 .892.064.351.12.627.397.748.748.064.188.064.423.064.892v.592c0 .469 0 .704-.064.892-.12.351-.397.627-.748.748-.188.064-.423.064-.892.064h-.592c-.469 0-.704 0-.892-.064a1.2 1.2 0 0 1-.748-.748C.5 3.5.5 3.265.5 2.796v-.592c0-.469 0-.704.064-.892.12-.351.397-.627.748-.748C1.5.5 1.735.5 2.204.5z"})}),b.jsx("use",{href:"#a"}),b.jsx("use",{href:"#a",transform:"translate(6.5)"}),b.jsx("use",{href:"#a",transform:"translate(13)"}),b.jsx("use",{href:"#a",transform:"translate(0 6.5)"}),b.jsx("use",{href:"#a",transform:"translate(6.5 6.5)"}),b.jsx("use",{href:"#a",transform:"translate(13 6.5)"}),b.jsx("use",{href:"#a",transform:"translate(0 13)"}),b.jsx("use",{href:"#a",transform:"translate(6.5 13)"}),b.jsx("use",{href:"#a",transform:"translate(13 13)"})]}),"aria-label":s,variant:"tertiary",className:"lagaufre-button"})})]})});od.displayName="LaGaufreV2";var De=(t=>(t.X_SMALL="xsmall",t.SMALL="small",t.MEDIUM="medium",t.LARGE="large",t.X_LARGE="xlarge",t))(De||{}),ii=(t=>(t.OUTLINED="outlined",t.FILLED="filled",t))(ii||{});const Jr=({name:t,size:e,className:r,color:n,type:i=ii.FILLED,...o})=>{const a=ve("material-icons",{[`icon--${e}`]:e!==void 0,[`icon--${i}`]:i!==ii.OUTLINED},r),l={color:n,fontSize:typeof e=="number"?`${e}px`:void 0};return b.jsx("span",{className:a,style:l,...o,children:t})},ad={[De.X_SMALL]:11,[De.SMALL]:16,[De.MEDIUM]:24,[De.LARGE]:32,[De.X_LARGE]:40},ld={[De.X_SMALL]:16,[De.SMALL]:24,[De.MEDIUM]:32,[De.LARGE]:40,[De.X_LARGE]:48},x7=t=>ld[t]??24,D7=t=>ad[t]??24,sd=({languages:t,onChange:e,size:r,color:n="brand",variant:i="tertiary",fullWidth:o,compact:a=!1})=>{const{isOpen:l,setIsOpen:s}=mr(),c=()=>{const h=t.find(v=>v.isChecked);return(h==null?void 0:h.value)??t[0].value},[d,f]=u.useState(c),p=h=>{f(h),e==null||e(h)},g=u.useMemo(()=>{if(r)switch(r){case"nano":return De.X_SMALL;case"small":return De.SMALL;case"medium":return De.MEDIUM}},[r]);u.useEffect(()=>{f(c)},[t]);const y=u.useMemo(()=>{const h=t.find(v=>v.value===d);return(h==null?void 0:h.shortLabel)??(h==null?void 0:h.label)},[t,d]);return b.jsx(Yr,{options:t,isOpen:l,onOpenChange:s,onSelectValue:p,selectedValues:[d],children:b.jsxs(X.Button,{onClick:()=>s(!l),className:"c__language-picker",icon:b.jsx(Jr,{name:l?"arrow_drop_up":"arrow_drop_down"}),iconPosition:"right",size:r,color:a?"neutral":n,variant:i,fullWidth:o,children:[a?null:b.jsx(Jr,{name:"translate",size:g}),b.jsx("span",{className:"c__language-picker__label",children:y})]})})},cd=({leftIcon:t,rightIcon:e,languages:r,onTogglePanel:n,isPanelOpen:i})=>{const{t:o}=X.useCunningham();return b.jsxs("div",{className:"c__header",children:[b.jsx("div",{className:"c__header__toggle-menu",children:b.jsx(X.Button,{size:"medium",onClick:n,"aria-label":o(i?"Close the menu":"Open the menu"),variant:"tertiary",icon:b.jsx("span",{className:"material-icons c__header__toggle-menu__icon",children:i?"close":"menu"})})}),b.jsx("div",{className:"c__header__left",children:t}),b.jsxs("div",{className:"c__header__right",children:[r&&b.jsx("div",{className:"c__header__right__language-picker",children:b.jsx(sd,{languages:r})}),e]})]})},ud=({children:t,isOpen:e=!1,hasHeader:r=!0})=>{const{isDesktop:n}=ot();return n?b.jsx("div",{className:ve("c__left-panel",{"has-header":r}),children:t}):b.jsx("div",{className:ve("c__left-panel__mobile",{open:e}),children:t})},{createElement:yr,createContext:S7,forwardRef:dd,useCallback:$e,useContext:fd,useEffect:Ft,useImperativeHandle:hd,useLayoutEffect:F7,useMemo:$7,useRef:Pe,useState:dr}=A,Gs=A[`useId${Math.random()}`.slice(0,5)],_7=F7,Ii=S7(null);Ii.displayName="PanelGroupContext";const $t=_7,P7=typeof Gs=="function"?Gs:()=>null;let A7=0;function dl(t=null){const e=P7(),r=Pe(t||e||null);return r.current===null&&(r.current=""+A7++),t??r.current}function pd({children:t,className:e="",collapsedSize:r,collapsible:n,defaultSize:i,forwardedRef:o,id:a,maxSize:l,minSize:s,onCollapse:c,onExpand:d,onResize:f,order:p,style:g,tagName:y="div",...h}){const v=fd(Ii);if(v===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:m,expandPanel:C,getPanelSize:E,getPanelStyle:F,groupId:D,isPanelCollapsed:w,reevaluatePanelConstraints:S,registerPanel:O,resizePanel:K,unregisterPanel:V}=v,x=dl(a),B=Pe({callbacks:{onCollapse:c,onExpand:d,onResize:f},constraints:{collapsedSize:r,collapsible:n,defaultSize:i,maxSize:l,minSize:s},id:x,idIsFromProps:a!==void 0,order:p});Pe({didLogMissingDefaultSizeWarning:!1}),$t(()=>{const{callbacks:k,constraints:W}=B.current,_={...W};B.current.id=x,B.current.idIsFromProps=a!==void 0,B.current.order=p,k.onCollapse=c,k.onExpand=d,k.onResize=f,W.collapsedSize=r,W.collapsible=n,W.defaultSize=i,W.maxSize=l,W.minSize=s,(_.collapsedSize!==W.collapsedSize||_.collapsible!==W.collapsible||_.maxSize!==W.maxSize||_.minSize!==W.minSize)&&S(B.current,_)}),$t(()=>{const k=B.current;return O(k),()=>{V(k)}},[p,x,O,V]),hd(o,()=>({collapse:()=>{m(B.current)},expand:k=>{C(B.current,k)},getId(){return x},getSize(){return E(B.current)},isCollapsed(){return w(B.current)},isExpanded(){return!w(B.current)},resize:k=>{K(B.current,k)}}),[m,C,E,w,x,K]);const U=F(B.current,i);return yr(y,{...h,children:t,className:e,id:a,style:{...U,...g},"data-panel":"","data-panel-collapsible":n||void 0,"data-panel-group-id":D,"data-panel-id":x,"data-panel-size":parseFloat(""+U.flexGrow).toFixed(1)})}const ha=dd((t,e)=>yr(pd,{...t,forwardedRef:e}));pd.displayName="Panel";ha.displayName="forwardRef(Panel)";let pa=null,St=null;function T7(t,e){if(e){const r=(e&yd)!==0,n=(e&Cd)!==0,i=(e&Ed)!==0,o=(e&wd)!==0;if(r)return i?"se-resize":o?"ne-resize":"e-resize";if(n)return i?"sw-resize":o?"nw-resize":"w-resize";if(i)return"s-resize";if(o)return"n-resize"}switch(t){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function k7(){St!==null&&(document.head.removeChild(St),pa=null,St=null)}function vo(t,e){const r=T7(t,e);pa!==r&&(pa=r,St===null&&(St=document.createElement("style"),document.head.appendChild(St)),St.innerHTML=`*{cursor: ${r}!important;}`)}function gd(t){return t.type==="keydown"}function vd(t){return t.type.startsWith("pointer")}function bd(t){return t.type.startsWith("mouse")}function Oi(t){if(vd(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(bd(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function I7(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function O7(t,e,r){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}function M7(t,e){if(t===e)throw new Error("Cannot compare node with itself");const r={a:Xs(t),b:Xs(e)};let n;for(;r.a.at(-1)===r.b.at(-1);)t=r.a.pop(),e=r.b.pop(),n=t;Q(n,"Stacking order can only be calculated for elements with a common ancestor");const i={a:Ys(qs(r.a)),b:Ys(qs(r.b))};if(i.a===i.b){const o=n.childNodes,a={a:r.a.at(-1),b:r.b.at(-1)};let l=o.length;for(;l--;){const s=o[l];if(s===a.a)return 1;if(s===a.b)return-1}}return Math.sign(i.a-i.b)}const N7=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function R7(t){var e;const r=getComputedStyle((e=md(t))!==null&&e!==void 0?e:t).display;return r==="flex"||r==="inline-flex"}function B7(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||R7(t))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||N7.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function qs(t){let e=t.length;for(;e--;){const r=t[e];if(Q(r,"Missing node"),B7(r))return r}return null}function Ys(t){return t&&Number(getComputedStyle(t).zIndex)||0}function Xs(t){const e=[];for(;t;)e.push(t),t=md(t);return e}function md(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const yd=1,Cd=2,Ed=4,wd=8,L7=I7()==="coarse";let Ve=[],fr=!1,dt=new Map,Mi=new Map;const Qr=new Set;function j7(t,e,r,n,i){var o;const{ownerDocument:a}=e,l={direction:r,element:e,hitAreaMargins:n,setResizeHandlerState:i},s=(o=dt.get(a))!==null&&o!==void 0?o:0;return dt.set(a,s+1),Qr.add(l),oi(),function(){var d;Mi.delete(t),Qr.delete(l);const f=(d=dt.get(a))!==null&&d!==void 0?d:1;if(dt.set(a,f-1),oi(),f===1&&dt.delete(a),Ve.includes(l)){const p=Ve.indexOf(l);p>=0&&Ve.splice(p,1),hl(),i("up",!0,null)}}}function Js(t){const{target:e}=t,{x:r,y:n}=Oi(t);fr=!0,fl({target:e,x:r,y:n}),oi(),Ve.length>0&&(ai("down",t),t.preventDefault(),t.stopPropagation())}function Or(t){const{x:e,y:r}=Oi(t);if(fr&&t.buttons===0&&(fr=!1,ai("up",t)),!fr){const{target:n}=t;fl({target:n,x:e,y:r})}ai("move",t),hl(),Ve.length>0&&t.preventDefault()}function Ut(t){const{target:e}=t,{x:r,y:n}=Oi(t);Mi.clear(),fr=!1,Ve.length>0&&t.preventDefault(),ai("up",t),fl({target:e,x:r,y:n}),hl(),oi()}function fl({target:t,x:e,y:r}){Ve.splice(0);let n=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(n=t),Qr.forEach(i=>{const{element:o,hitAreaMargins:a}=i,l=o.getBoundingClientRect(),{bottom:s,left:c,right:d,top:f}=l,p=L7?a.coarse:a.fine;if(e>=c-p&&e<=d+p&&r>=f-p&&r<=s+p){if(n!==null&&document.contains(n)&&o!==n&&!o.contains(n)&&!n.contains(o)&&M7(n,o)>0){let y=n,h=!1;for(;y&&!y.contains(o);){if(O7(y.getBoundingClientRect(),l)){h=!0;break}y=y.parentElement}if(h)return}Ve.push(i)}})}function bo(t,e){Mi.set(t,e)}function hl(){let t=!1,e=!1;Ve.forEach(n=>{const{direction:i}=n;i==="horizontal"?t=!0:e=!0});let r=0;Mi.forEach(n=>{r|=n}),t&&e?vo("intersection",r):t?vo("horizontal",r):e?vo("vertical",r):k7()}function oi(){dt.forEach((t,e)=>{const{body:r}=e;r.removeEventListener("contextmenu",Ut),r.removeEventListener("pointerdown",Js),r.removeEventListener("pointerleave",Or),r.removeEventListener("pointermove",Or)}),window.removeEventListener("pointerup",Ut),window.removeEventListener("pointercancel",Ut),Qr.size>0&&(fr?(Ve.length>0&&dt.forEach((t,e)=>{const{body:r}=e;t>0&&(r.addEventListener("contextmenu",Ut),r.addEventListener("pointerleave",Or),r.addEventListener("pointermove",Or))}),window.addEventListener("pointerup",Ut),window.addEventListener("pointercancel",Ut)):dt.forEach((t,e)=>{const{body:r}=e;t>0&&(r.addEventListener("pointerdown",Js,{capture:!0}),r.addEventListener("pointermove",Or))}))}function ai(t,e){Qr.forEach(r=>{const{setResizeHandlerState:n}=r,i=Ve.includes(r);n(t,i,e)})}function K7(){const[t,e]=dr(0);return $e(()=>e(r=>r+1),[])}function Q(t,e){if(!t)throw console.error(e),Error(e)}const pl=10;function Tt(t,e,r=pl){return t.toFixed(r)===e.toFixed(r)?0:t>e?1:-1}function Qe(t,e,r=pl){return Tt(t,e,r)===0}function Ae(t,e,r){return Tt(t,e,r)===0}function V7(t,e,r){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++){const i=t[n],o=e[n];if(!Ae(i,o,r))return!1}return!0}function ar({panelConstraints:t,panelIndex:e,size:r}){const n=t[e];Q(n!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:i=0,collapsible:o,maxSize:a=100,minSize:l=0}=n;if(Tt(r,l)<0)if(o){const s=(i+l)/2;Tt(r,s)<0?r=i:r=l}else r=l;return r=Math.min(a,r),r=parseFloat(r.toFixed(pl)),r}function Kr({delta:t,initialLayout:e,panelConstraints:r,pivotIndices:n,prevLayout:i,trigger:o}){if(Ae(t,0))return e;const a=[...e],[l,s]=n;Q(l!=null,"Invalid first pivot index"),Q(s!=null,"Invalid second pivot index");let c=0;if(o==="keyboard"){{const f=t<0?s:l,p=r[f];Q(p,`Panel constraints not found for index ${f}`);const{collapsedSize:g=0,collapsible:y,minSize:h=0}=p;if(y){const v=e[f];if(Q(v!=null,`Previous layout not found for panel index ${f}`),Ae(v,g)){const m=h-v;Tt(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}{const f=t<0?l:s,p=r[f];Q(p,`No panel constraints found for index ${f}`);const{collapsedSize:g=0,collapsible:y,minSize:h=0}=p;if(y){const v=e[f];if(Q(v!=null,`Previous layout not found for panel index ${f}`),Ae(v,h)){const m=v-g;Tt(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}}{const f=t<0?1:-1;let p=t<0?s:l,g=0;for(;;){const h=e[p];Q(h!=null,`Previous layout not found for panel index ${p}`);const m=ar({panelConstraints:r,panelIndex:p,size:100})-h;if(g+=m,p+=f,p<0||p>=r.length)break}const y=Math.min(Math.abs(t),Math.abs(g));t=t<0?0-y:y}{let p=t<0?l:s;for(;p>=0&&p<r.length;){const g=Math.abs(t)-Math.abs(c),y=e[p];Q(y!=null,`Previous layout not found for panel index ${p}`);const h=y-g,v=ar({panelConstraints:r,panelIndex:p,size:h});if(!Ae(y,v)&&(c+=y-v,a[p]=v,c.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?p--:p++}}if(V7(i,a))return i;{const f=t<0?s:l,p=e[f];Q(p!=null,`Previous layout not found for panel index ${f}`);const g=p+c,y=ar({panelConstraints:r,panelIndex:f,size:g});if(a[f]=y,!Ae(y,g)){let h=g-y,m=t<0?s:l;for(;m>=0&&m<r.length;){const C=a[m];Q(C!=null,`Previous layout not found for panel index ${m}`);const E=C+h,F=ar({panelConstraints:r,panelIndex:m,size:E});if(Ae(C,F)||(h-=F-C,a[m]=F),Ae(h,0))break;t>0?m--:m++}}}const d=a.reduce((f,p)=>p+f,0);return Ae(d,100)?a:i}function H7({layout:t,panelsArray:e,pivotIndices:r}){let n=0,i=100,o=0,a=0;const l=r[0];Q(l!=null,"No pivot index found"),e.forEach((f,p)=>{const{constraints:g}=f,{maxSize:y=100,minSize:h=0}=g;p===l?(n=h,i=y):(o+=h,a+=y)});const s=Math.min(i,100-o),c=Math.max(n,100-a),d=t[l];return{valueMax:s,valueMin:c,valueNow:d}}function en(t,e=document){return Array.from(e.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${t}"]`))}function xd(t,e,r=document){const i=en(t,r).findIndex(o=>o.getAttribute("data-panel-resize-handle-id")===e);return i??null}function Dd(t,e,r){const n=xd(t,e,r);return n!=null?[n,n+1]:[-1,-1]}function Sd(t,e=document){var r;if(e instanceof HTMLElement&&(e==null||(r=e.dataset)===null||r===void 0?void 0:r.panelGroupId)==t)return e;const n=e.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return n||null}function Ni(t,e=document){const r=e.querySelector(`[data-panel-resize-handle-id="${t}"]`);return r||null}function z7(t,e,r,n=document){var i,o,a,l;const s=Ni(e,n),c=en(t,n),d=s?c.indexOf(s):-1,f=(i=(o=r[d])===null||o===void 0?void 0:o.id)!==null&&i!==void 0?i:null,p=(a=(l=r[d+1])===null||l===void 0?void 0:l.id)!==null&&a!==void 0?a:null;return[f,p]}function U7({committedValuesRef:t,eagerValuesRef:e,groupId:r,layout:n,panelDataArray:i,panelGroupElement:o,setLayout:a}){Pe({didWarnAboutMissingResizeHandle:!1}),$t(()=>{if(!o)return;const l=en(r,o);for(let s=0;s<i.length-1;s++){const{valueMax:c,valueMin:d,valueNow:f}=H7({layout:n,panelsArray:i,pivotIndices:[s,s+1]}),p=l[s];if(p!=null){const g=i[s];Q(g,`No panel data found for index "${s}"`),p.setAttribute("aria-controls",g.id),p.setAttribute("aria-valuemax",""+Math.round(c)),p.setAttribute("aria-valuemin",""+Math.round(d)),p.setAttribute("aria-valuenow",f!=null?""+Math.round(f):"")}}return()=>{l.forEach((s,c)=>{s.removeAttribute("aria-controls"),s.removeAttribute("aria-valuemax"),s.removeAttribute("aria-valuemin"),s.removeAttribute("aria-valuenow")})}},[r,n,i,o]),Ft(()=>{if(!o)return;const l=e.current;Q(l,"Eager values not found");const{panelDataArray:s}=l,c=Sd(r,o);Q(c!=null,`No group found for id "${r}"`);const d=en(r,o);Q(d,`No resize handles found for group id "${r}"`);const f=d.map(p=>{const g=p.getAttribute("data-panel-resize-handle-id");Q(g,"Resize handle element has no handle id attribute");const[y,h]=z7(r,g,s,o);if(y==null||h==null)return()=>{};const v=m=>{if(!m.defaultPrevented)switch(m.key){case"Enter":{m.preventDefault();const C=s.findIndex(E=>E.id===y);if(C>=0){const E=s[C];Q(E,`No panel data found for index ${C}`);const F=n[C],{collapsedSize:D=0,collapsible:w,minSize:S=0}=E.constraints;if(F!=null&&w){const O=Kr({delta:Ae(F,D)?S-D:D-F,initialLayout:n,panelConstraints:s.map(K=>K.constraints),pivotIndices:Dd(r,g,o),prevLayout:n,trigger:"keyboard"});n!==O&&a(O)}}break}}};return p.addEventListener("keydown",v),()=>{p.removeEventListener("keydown",v)}});return()=>{f.forEach(p=>p())}},[o,t,e,r,n,i,a])}function Qs(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}function Fd(t,e){const r=t==="horizontal",{x:n,y:i}=Oi(e);return r?n:i}function W7(t,e,r,n,i){const o=r==="horizontal",a=Ni(e,i);Q(a,`No resize handle element found for id "${e}"`);const l=a.getAttribute("data-panel-group-id");Q(l,"Resize handle element has no group id attribute");let{initialCursorPosition:s}=n;const c=Fd(r,t),d=Sd(l,i);Q(d,`No group element found for id "${l}"`);const f=d.getBoundingClientRect(),p=o?f.width:f.height;return(c-s)/p*100}function Z7(t,e,r,n,i,o){if(gd(t)){const a=r==="horizontal";let l=0;t.shiftKey?l=100:i!=null?l=i:l=10;let s=0;switch(t.key){case"ArrowDown":s=a?0:l;break;case"ArrowLeft":s=a?-l:0;break;case"ArrowRight":s=a?l:0;break;case"ArrowUp":s=a?0:-l;break;case"End":s=100;break;case"Home":s=-100;break}return s}else return n==null?0:W7(t,e,r,n,o)}function G7({panelDataArray:t}){const e=Array(t.length),r=t.map(o=>o.constraints);let n=0,i=100;for(let o=0;o<t.length;o++){const a=r[o];Q(a,`Panel constraints not found for index ${o}`);const{defaultSize:l}=a;l!=null&&(n++,e[o]=l,i-=l)}for(let o=0;o<t.length;o++){const a=r[o];Q(a,`Panel constraints not found for index ${o}`);const{defaultSize:l}=a;if(l!=null)continue;const s=t.length-n,c=i/s;n++,e[o]=c,i-=c}return e}function Wt(t,e,r){e.forEach((n,i)=>{const o=t[i];Q(o,`Panel data not found for index ${i}`);const{callbacks:a,constraints:l,id:s}=o,{collapsedSize:c=0,collapsible:d}=l,f=r[s];if(f==null||n!==f){r[s]=n;const{onCollapse:p,onExpand:g,onResize:y}=a;y&&y(n,f),d&&(p||g)&&(g&&(f==null||Qe(f,c))&&!Qe(n,c)&&g(),p&&(f==null||!Qe(f,c))&&Qe(n,c)&&p())}})}function wn(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!=e[r])return!1;return!0}function q7({defaultSize:t,dragState:e,layout:r,panelData:n,panelIndex:i,precision:o=3}){const a=r[i];let l;return a==null?l=t!=null?t.toPrecision(o):"1":n.length===1?l="1":l=a.toPrecision(o),{flexBasis:0,flexGrow:l,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function Y7(t,e=10){let r=null;return(...i)=>{r!==null&&clearTimeout(r),r=setTimeout(()=>{t(...i)},e)}}function e0(t){try{if(typeof localStorage<"u")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,r)=>{localStorage.setItem(e,r)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function $d(t){return`react-resizable-panels:${t}`}function _d(t){return t.map(e=>{const{constraints:r,id:n,idIsFromProps:i,order:o}=e;return i?n:o?`${o}:${JSON.stringify(r)}`:JSON.stringify(r)}).sort((e,r)=>e.localeCompare(r)).join(",")}function Pd(t,e){try{const r=$d(t),n=e.getItem(r);if(n){const i=JSON.parse(n);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function X7(t,e,r){var n,i;const o=(n=Pd(t,r))!==null&&n!==void 0?n:{},a=_d(e);return(i=o[a])!==null&&i!==void 0?i:null}function J7(t,e,r,n,i){var o;const a=$d(t),l=_d(e),s=(o=Pd(t,i))!==null&&o!==void 0?o:{};s[l]={expandToSizes:Object.fromEntries(r.entries()),layout:n};try{i.setItem(a,JSON.stringify(s))}catch(c){console.error(c)}}function t0({layout:t,panelConstraints:e}){const r=[...t],n=r.reduce((o,a)=>o+a,0);if(r.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${r.map(o=>`${o}%`).join(", ")}`);if(!Ae(n,100)&&r.length>0)for(let o=0;o<e.length;o++){const a=r[o];Q(a!=null,`No layout data found for index ${o}`);const l=100/n*a;r[o]=l}let i=0;for(let o=0;o<e.length;o++){const a=r[o];Q(a!=null,`No layout data found for index ${o}`);const l=ar({panelConstraints:e,panelIndex:o,size:a});a!=l&&(i+=a-l,r[o]=l)}if(!Ae(i,0))for(let o=0;o<e.length;o++){const a=r[o];Q(a!=null,`No layout data found for index ${o}`);const l=a+i,s=ar({panelConstraints:e,panelIndex:o,size:l});if(a!==s&&(i-=s-a,r[o]=s,Ae(i,0)))break}return r}const Q7=100,Vr={getItem:t=>(e0(Vr),Vr.getItem(t)),setItem:(t,e)=>{e0(Vr),Vr.setItem(t,e)}},r0={};function Ad({autoSaveId:t=null,children:e,className:r="",direction:n,forwardedRef:i,id:o=null,onLayout:a=null,keyboardResizeBy:l=null,storage:s=Vr,style:c,tagName:d="div",...f}){const p=dl(o),g=Pe(null),[y,h]=dr(null),[v,m]=dr([]),C=K7(),E=Pe({}),F=Pe(new Map),D=Pe(0),w=Pe({autoSaveId:t,direction:n,dragState:y,id:p,keyboardResizeBy:l,onLayout:a,storage:s}),S=Pe({layout:v,panelDataArray:[],panelDataArrayChanged:!1});Pe({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),hd(i,()=>({getId:()=>w.current.id,getLayout:()=>{const{layout:P}=S.current;return P},setLayout:P=>{const{onLayout:T}=w.current,{layout:M,panelDataArray:j}=S.current,H=t0({layout:P,panelConstraints:j.map(Z=>Z.constraints)});Qs(M,H)||(m(H),S.current.layout=H,T&&T(H),Wt(j,H,E.current))}}),[]),$t(()=>{w.current.autoSaveId=t,w.current.direction=n,w.current.dragState=y,w.current.id=p,w.current.onLayout=a,w.current.storage=s}),U7({committedValuesRef:w,eagerValuesRef:S,groupId:p,layout:v,panelDataArray:S.current.panelDataArray,setLayout:m,panelGroupElement:g.current}),Ft(()=>{const{panelDataArray:P}=S.current;if(t){if(v.length===0||v.length!==P.length)return;let T=r0[t];T==null&&(T=Y7(J7,Q7),r0[t]=T);const M=[...P],j=new Map(F.current);T(t,M,j,v,s)}},[t,v,s]),Ft(()=>{});const O=$e(P=>{const{onLayout:T}=w.current,{layout:M,panelDataArray:j}=S.current;if(P.constraints.collapsible){const H=j.map(le=>le.constraints),{collapsedSize:Z=0,panelSize:q,pivotIndices:Y}=yt(j,P,M);if(Q(q!=null,`Panel size not found for panel "${P.id}"`),!Qe(q,Z)){F.current.set(P.id,q);const G=nr(j,P)===j.length-1?q-Z:Z-q,te=Kr({delta:G,initialLayout:M,panelConstraints:H,pivotIndices:Y,prevLayout:M,trigger:"imperative-api"});wn(M,te)||(m(te),S.current.layout=te,T&&T(te),Wt(j,te,E.current))}}},[]),K=$e((P,T)=>{const{onLayout:M}=w.current,{layout:j,panelDataArray:H}=S.current;if(P.constraints.collapsible){const Z=H.map(de=>de.constraints),{collapsedSize:q=0,panelSize:Y=0,minSize:le=0,pivotIndices:G}=yt(H,P,j),te=T??le;if(Qe(Y,q)){const de=F.current.get(P.id),Be=de!=null&&de>=te?de:te,re=nr(H,P)===H.length-1?Y-Be:Be-Y,pe=Kr({delta:re,initialLayout:j,panelConstraints:Z,pivotIndices:G,prevLayout:j,trigger:"imperative-api"});wn(j,pe)||(m(pe),S.current.layout=pe,M&&M(pe),Wt(H,pe,E.current))}}},[]),V=$e(P=>{const{layout:T,panelDataArray:M}=S.current,{panelSize:j}=yt(M,P,T);return Q(j!=null,`Panel size not found for panel "${P.id}"`),j},[]),x=$e((P,T)=>{const{panelDataArray:M}=S.current,j=nr(M,P);return q7({defaultSize:T,dragState:y,layout:v,panelData:M,panelIndex:j})},[y,v]),B=$e(P=>{const{layout:T,panelDataArray:M}=S.current,{collapsedSize:j=0,collapsible:H,panelSize:Z}=yt(M,P,T);return Q(Z!=null,`Panel size not found for panel "${P.id}"`),H===!0&&Qe(Z,j)},[]),U=$e(P=>{const{layout:T,panelDataArray:M}=S.current,{collapsedSize:j=0,collapsible:H,panelSize:Z}=yt(M,P,T);return Q(Z!=null,`Panel size not found for panel "${P.id}"`),!H||Tt(Z,j)>0},[]),k=$e(P=>{const{panelDataArray:T}=S.current;T.push(P),T.sort((M,j)=>{const H=M.order,Z=j.order;return H==null&&Z==null?0:H==null?-1:Z==null?1:H-Z}),S.current.panelDataArrayChanged=!0,C()},[C]);$t(()=>{if(S.current.panelDataArrayChanged){S.current.panelDataArrayChanged=!1;const{autoSaveId:P,onLayout:T,storage:M}=w.current,{layout:j,panelDataArray:H}=S.current;let Z=null;if(P){const Y=X7(P,H,M);Y&&(F.current=new Map(Object.entries(Y.expandToSizes)),Z=Y.layout)}Z==null&&(Z=G7({panelDataArray:H}));const q=t0({layout:Z,panelConstraints:H.map(Y=>Y.constraints)});Qs(j,q)||(m(q),S.current.layout=q,T&&T(q),Wt(H,q,E.current))}}),$t(()=>{const P=S.current;return()=>{P.layout=[]}},[]);const W=$e(P=>{let T=!1;const M=g.current;return M&&window.getComputedStyle(M,null).getPropertyValue("direction")==="rtl"&&(T=!0),function(H){H.preventDefault();const Z=g.current;if(!Z)return()=>null;const{direction:q,dragState:Y,id:le,keyboardResizeBy:G,onLayout:te}=w.current,{layout:de,panelDataArray:Be}=S.current,{initialLayout:Vt}=Y??{},re=Dd(le,P,Z);let pe=Z7(H,P,q,Y,G,Z);const Ht=q==="horizontal";Ht&&T&&(pe=-pe);const Dr=Be.map(_f=>_f.constraints),Sr=Kr({delta:pe,initialLayout:Vt??de,panelConstraints:Dr,pivotIndices:re,prevLayout:de,trigger:gd(H)?"keyboard":"mouse-or-touch"}),kl=!wn(de,Sr);(vd(H)||bd(H))&&D.current!=pe&&(D.current=pe,!kl&&pe!==0?Ht?bo(P,pe<0?yd:Cd):bo(P,pe<0?Ed:wd):bo(P,0)),kl&&(m(Sr),S.current.layout=Sr,te&&te(Sr),Wt(Be,Sr,E.current))}},[]),_=$e((P,T)=>{const{onLayout:M}=w.current,{layout:j,panelDataArray:H}=S.current,Z=H.map(de=>de.constraints),{panelSize:q,pivotIndices:Y}=yt(H,P,j);Q(q!=null,`Panel size not found for panel "${P.id}"`);const G=nr(H,P)===H.length-1?q-T:T-q,te=Kr({delta:G,initialLayout:j,panelConstraints:Z,pivotIndices:Y,prevLayout:j,trigger:"imperative-api"});wn(j,te)||(m(te),S.current.layout=te,M&&M(te),Wt(H,te,E.current))},[]),I=$e((P,T)=>{const{layout:M,panelDataArray:j}=S.current,{collapsedSize:H=0,collapsible:Z}=T,{collapsedSize:q=0,collapsible:Y,maxSize:le=100,minSize:G=0}=P.constraints,{panelSize:te}=yt(j,P,M);te!=null&&(Z&&Y&&Qe(te,H)?Qe(H,q)||_(P,q):te<G?_(P,G):te>le&&_(P,le))},[_]),z=$e((P,T)=>{const{direction:M}=w.current,{layout:j}=S.current;if(!g.current)return;const H=Ni(P,g.current);Q(H,`Drag handle element not found for id "${P}"`);const Z=Fd(M,T);h({dragHandleId:P,dragHandleRect:H.getBoundingClientRect(),initialCursorPosition:Z,initialLayout:j})},[]),L=$e(()=>{h(null)},[]),N=$e(P=>{const{panelDataArray:T}=S.current,M=nr(T,P);M>=0&&(T.splice(M,1),delete E.current[P.id],S.current.panelDataArrayChanged=!0,C())},[C]),R=$7(()=>({collapsePanel:O,direction:n,dragState:y,expandPanel:K,getPanelSize:V,getPanelStyle:x,groupId:p,isPanelCollapsed:B,isPanelExpanded:U,reevaluatePanelConstraints:I,registerPanel:k,registerResizeHandle:W,resizePanel:_,startDragging:z,stopDragging:L,unregisterPanel:N,panelGroupElement:g.current}),[O,y,n,K,V,x,p,B,U,I,k,W,_,z,L,N]),$={display:"flex",flexDirection:n==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return yr(Ii.Provider,{value:R},yr(d,{...f,children:e,className:r,id:o,ref:g,style:{...$,...c},"data-panel-group":"","data-panel-group-direction":n,"data-panel-group-id":p}))}const Td=dd((t,e)=>yr(Ad,{...t,forwardedRef:e}));Ad.displayName="PanelGroup";Td.displayName="forwardRef(PanelGroup)";function nr(t,e){return t.findIndex(r=>r===e||r.id===e.id)}function yt(t,e,r){const n=nr(t,e),o=n===t.length-1?[n-1,n]:[n,n+1],a=r[n];return{...e.constraints,panelSize:a,pivotIndices:o}}function ep({disabled:t,handleId:e,resizeHandler:r,panelGroupElement:n}){Ft(()=>{if(t||r==null||n==null)return;const i=Ni(e,n);if(i==null)return;const o=a=>{if(!a.defaultPrevented)switch(a.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{a.preventDefault(),r(a);break}case"F6":{a.preventDefault();const l=i.getAttribute("data-panel-group-id");Q(l,`No group element found for id "${l}"`);const s=en(l,n),c=xd(l,e,n);Q(c!==null,`No resize element found for id "${e}"`);const d=a.shiftKey?c>0?c-1:s.length-1:c+1<s.length?c+1:0;s[d].focus();break}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}},[n,t,e,r])}function kd({children:t=null,className:e="",disabled:r=!1,hitAreaMargins:n,id:i,onBlur:o,onDragging:a,onFocus:l,style:s={},tabIndex:c=0,tagName:d="div",...f}){var p,g;const y=Pe(null),h=Pe({onDragging:a});Ft(()=>{h.current.onDragging=a});const v=fd(Ii);if(v===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:m,groupId:C,registerResizeHandle:E,startDragging:F,stopDragging:D,panelGroupElement:w}=v,S=dl(i),[O,K]=dr("inactive"),[V,x]=dr(!1),[B,U]=dr(null),k=Pe({state:O});$t(()=>{k.current.state=O}),Ft(()=>{if(r)U(null);else{const z=E(S);U(()=>z)}},[r,S,E]);const W=(p=n==null?void 0:n.coarse)!==null&&p!==void 0?p:15,_=(g=n==null?void 0:n.fine)!==null&&g!==void 0?g:5;return Ft(()=>{if(r||B==null)return;const z=y.current;return Q(z,"Element ref not attached"),j7(S,z,m,{coarse:W,fine:_},(N,R,$)=>{if(R)switch(N){case"down":{K("drag"),Q($,'Expected event to be defined for "down" action'),F(S,$);const{onDragging:P}=h.current;P&&P(!0);break}case"move":{const{state:P}=k.current;P!=="drag"&&K("hover"),Q($,'Expected event to be defined for "move" action'),B($);break}case"up":{K("hover"),D();const{onDragging:P}=h.current;P&&P(!1);break}}else K("inactive")})},[W,m,r,_,E,S,B,F,D]),ep({disabled:r,handleId:S,resizeHandler:B,panelGroupElement:w}),yr(d,{...f,children:t,className:e,id:i,onBlur:()=>{x(!1),o==null||o()},onFocus:()=>{x(!0),l==null||l()},ref:y,role:"separator",style:{...{touchAction:"none",userSelect:"none"},...s},tabIndex:c,"data-panel-group-direction":m,"data-panel-group-id":C,"data-resize-handle":"","data-resize-handle-active":O==="drag"?"pointer":V?"keyboard":void 0,"data-resize-handle-state":O,"data-panel-resize-handle-enabled":!r,"data-panel-resize-handle-id":S})}kd.displayName="PanelResizeHandle";const tp=({children:t,isOpen:e})=>{const{isDesktop:r}=ot();return r?b.jsx("div",{className:ve("c__right-panel",{open:e}),children:t}):b.jsx("div",{className:ve("c__right-panel__mobile",{open:e}),children:t})},rp=(t,e,r)=>{const[n,i]=u.useState(typeof e>"u"?t:e),o=a=>{r?r(a):i(a)};return u.useEffect(()=>{r&&typeof e<"u"&&e!==n&&i(e)},[e]),[n,o]},np=({icon:t,children:e,hideLeftPanelOnDesktop:r=!1,leftPanelContent:n,rightPanelContent:i,rightHeaderContent:o,languages:a,enableResize:l=!1,rightPanelIsOpen:s=!1,...c})=>{const[d,f]=rp(!1,c.isLeftPanelOpen,c.setIsLeftPanelOpen),{isDesktop:p}=ot(),g=u.useRef(null),[y,h]=u.useState(!1),v=u.useRef(void 0);u.useEffect(()=>{const O=()=>{h(!0),v.current&&clearTimeout(v.current),v.current=window.setTimeout(()=>{h(!1)},150)};return window.addEventListener("resize",O),()=>{window.removeEventListener("resize",O),v.current&&clearTimeout(v.current)}},[]);const m=p?!r:!0,C=p?!r:d,[E,F]=u.useState(xn(300,p)),[D,w]=u.useState(xn(450,p)),S=()=>{f(!d)};return u.useEffect(()=>{const O=()=>{const K=Math.round(xn(300,p)),V=Math.round(Math.min(xn(450,p),40));F(p?K:0),w(l?V:K)};return O(),window.addEventListener("resize",O),()=>{window.removeEventListener("resize",O)}},[p,l]),b.jsxs("div",{className:ve("c__main-layout",{resizing:y}),children:[b.jsx("div",{className:"c__main-layout__header",children:b.jsx(cd,{onTogglePanel:S,isPanelOpen:d,rightIcon:o,leftIcon:t,languages:a})}),b.jsx("div",{className:"c__main-layout__content",children:b.jsxs(Td,{autoSaveId:"persistance",direction:"horizontal",children:[m&&b.jsxs(b.Fragment,{children:[b.jsx(ha,{ref:g,order:0,defaultSize:E,minSize:E,maxSize:D,children:b.jsx(ud,{isOpen:C,children:n})}),p&&b.jsx(kd,{className:"border-clr-surface-primary",style:{borderRightWidth:"1px",borderRightStyle:"solid"}})]}),b.jsx(ha,{order:1,children:b.jsxs("div",{className:"c__main-layout__content__center",children:[b.jsx("div",{className:"c__main-layout__content__center__children",children:e}),b.jsx(tp,{isOpen:s,children:i})]})})]})})]})},xn=(t,e)=>{if(!e)return 0;const r=window.innerWidth;return t/r*100},ip=52,li=({size:t="sm"})=>b.jsx("div",{className:["c__spinner",t].join(" ")}),Id=({children:t,text:e,...r})=>b.jsxs("div",{className:"suite__label__container",children:[b.jsx("label",{...r,children:t}),e&&b.jsx("span",{className:"suite__label__container__description",children:e})]}),op=({label:t,text:e,labelSide:r="right",children:n})=>b.jsxs("div",{className:ve("c__with-label",{[r]:!0}),children:[b.jsx(Id,{children:t,text:e}),n]});var n0=1,ap=.9,lp=.8,sp=.17,mo=.1,yo=.999,cp=.9999,up=.99,dp=/[\\\/_+.#"@\[\(\{&]/,fp=/[\\\/_+.#"@\[\(\{&]/g,hp=/[\s-]/,Od=/[\s-]/g;function ga(t,e,r,n,i,o,a){if(o===e.length)return i===t.length?n0:up;var l=`${i},${o}`;if(a[l]!==void 0)return a[l];for(var s=n.charAt(o),c=r.indexOf(s,i),d=0,f,p,g,y;c>=0;)f=ga(t,e,r,n,c+1,o+1,a),f>d&&(c===i?f*=n0:dp.test(t.charAt(c-1))?(f*=lp,g=t.slice(i,c-1).match(fp),g&&i>0&&(f*=Math.pow(yo,g.length))):hp.test(t.charAt(c-1))?(f*=ap,y=t.slice(i,c-1).match(Od),y&&i>0&&(f*=Math.pow(yo,y.length))):(f*=sp,i>0&&(f*=Math.pow(yo,c-i))),t.charAt(c)!==e.charAt(o)&&(f*=cp)),(f<mo&&r.charAt(c-1)===n.charAt(o+1)||n.charAt(o+1)===n.charAt(o)&&r.charAt(c-1)!==n.charAt(o))&&(p=ga(t,e,r,n,c+1,o+2,a),p*mo>f&&(f=p*mo)),f>d&&(d=f),c=r.indexOf(s,c+1);return a[l]=d,d}function i0(t){return t.toLowerCase().replace(Od," ")}function pp(t,e,r){return t=r&&r.length>0?`${t+" "+r.join(" ")}`:t,ga(t,e,i0(t),i0(e),0,0,{})}function pt(t,e,{checkForDefaultPrevented:r=!0}={}){return function(i){if(t==null||t(i),r===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}function o0(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Md(...t){return e=>{let r=!1;const n=t.map(i=>{const o=o0(i,e);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let i=0;i<n.length;i++){const o=n[i];typeof o=="function"?o():o0(t[i],null)}}}}function jt(...t){return A.useCallback(Md(...t),t)}function gp(t,e){const r=A.createContext(e),n=o=>{const{children:a,...l}=o,s=A.useMemo(()=>l,Object.values(l));return b.jsx(r.Provider,{value:s,children:a})};n.displayName=t+"Provider";function i(o){const a=A.useContext(r);if(a)return a;if(e!==void 0)return e;throw new Error(`\`${o}\` must be used within \`${t}\``)}return[n,i]}function vp(t,e=[]){let r=[];function n(o,a){const l=A.createContext(a),s=r.length;r=[...r,a];const c=f=>{var m;const{scope:p,children:g,...y}=f,h=((m=p==null?void 0:p[t])==null?void 0:m[s])||l,v=A.useMemo(()=>y,Object.values(y));return b.jsx(h.Provider,{value:v,children:g})};c.displayName=o+"Provider";function d(f,p){var h;const g=((h=p==null?void 0:p[t])==null?void 0:h[s])||l,y=A.useContext(g);if(y)return y;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[c,d]}const i=()=>{const o=r.map(a=>A.createContext(a));return function(l){const s=(l==null?void 0:l[t])||o;return A.useMemo(()=>({[`__scope${t}`]:{...l,[t]:s}}),[l,s])}};return i.scopeName=t,[n,bp(i,...e)]}function bp(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const a=n.reduce((l,{useScope:s,scopeName:c})=>{const f=s(o)[`__scope${c}`];return{...l,...f}},{});return A.useMemo(()=>({[`__scope${e.scopeName}`]:a}),[a])}};return r.scopeName=e.scopeName,r}var tn=globalThis!=null&&globalThis.document?A.useLayoutEffect:()=>{},mp=A[" useId ".trim().toString()]||(()=>{}),yp=0;function tt(t){const[e,r]=A.useState(mp());return tn(()=>{r(n=>n??String(yp++))},[t]),e?`radix-${e}`:""}var Cp=A[" useInsertionEffect ".trim().toString()]||tn;function Ep({prop:t,defaultProp:e,onChange:r=()=>{},caller:n}){const[i,o,a]=wp({defaultProp:e,onChange:r}),l=t!==void 0,s=l?t:i;{const d=A.useRef(t!==void 0);A.useEffect(()=>{const f=d.current;f!==l&&console.warn(`${n} is changing from ${f?"controlled":"uncontrolled"} to ${l?"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=l},[l,n])}const c=A.useCallback(d=>{var f;if(l){const p=xp(d)?d(t):d;p!==t&&((f=a.current)==null||f.call(a,p))}else o(d)},[l,t,o,a]);return[s,c]}function wp({defaultProp:t,onChange:e}){const[r,n]=A.useState(t),i=A.useRef(r),o=A.useRef(e);return Cp(()=>{o.current=e},[e]),A.useEffect(()=>{var a;i.current!==r&&((a=o.current)==null||a.call(o,r),i.current=r)},[r,i]),[r,n,o]}function xp(t){return typeof t=="function"}function Nd(t){const e=Dp(t),r=A.forwardRef((n,i)=>{const{children:o,...a}=n,l=A.Children.toArray(o),s=l.find(Fp);if(s){const c=s.props.children,d=l.map(f=>f===s?A.Children.count(c)>1?A.Children.only(null):A.isValidElement(c)?c.props.children:null:f);return b.jsx(e,{...a,ref:i,children:A.isValidElement(c)?A.cloneElement(c,void 0,d):null})}return b.jsx(e,{...a,ref:i,children:o})});return r.displayName=`${t}.Slot`,r}function Dp(t){const e=A.forwardRef((r,n)=>{const{children:i,...o}=r;if(A.isValidElement(i)){const a=_p(i),l=$p(o,i.props);return i.type!==A.Fragment&&(l.ref=n?Md(n,a):a),A.cloneElement(i,l)}return A.Children.count(i)>1?A.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var Sp=Symbol("radix.slottable");function Fp(t){return A.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Sp}function $p(t,e){const r={...e};for(const n in e){const i=t[n],o=e[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...l)=>{const s=o(...l);return i(...l),s}:i&&(r[n]=i):n==="style"?r[n]={...i,...o}:n==="className"&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...t,...r}}function _p(t){var n,i;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var Pp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ce=Pp.reduce((t,e)=>{const r=Nd(`Primitive.${e}`),n=A.forwardRef((i,o)=>{const{asChild:a,...l}=i,s=a?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(s,{...l,ref:o})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function Ap(t,e){t&&Pf.flushSync(()=>t.dispatchEvent(e))}function rn(t){const e=A.useRef(t);return A.useEffect(()=>{e.current=t}),A.useMemo(()=>(...r)=>{var n;return(n=e.current)==null?void 0:n.call(e,...r)},[])}function Tp(t,e=globalThis==null?void 0:globalThis.document){const r=rn(t);A.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return e.addEventListener("keydown",n,{capture:!0}),()=>e.removeEventListener("keydown",n,{capture:!0})},[r,e])}var kp="DismissableLayer",va="dismissableLayer.update",Ip="dismissableLayer.pointerDownOutside",Op="dismissableLayer.focusOutside",a0,Rd=A.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Bd=A.forwardRef((t,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:a,onDismiss:l,...s}=t,c=A.useContext(Rd),[d,f]=A.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=A.useState({}),y=jt(e,S=>f(S)),h=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),m=h.indexOf(v),C=d?h.indexOf(d):-1,E=c.layersWithOutsidePointerEventsDisabled.size>0,F=C>=m,D=Rp(S=>{const O=S.target,K=[...c.branches].some(V=>V.contains(O));!F||K||(i==null||i(S),a==null||a(S),S.defaultPrevented||l==null||l())},p),w=Bp(S=>{const O=S.target;[...c.branches].some(V=>V.contains(O))||(o==null||o(S),a==null||a(S),S.defaultPrevented||l==null||l())},p);return Tp(S=>{C===c.layers.size-1&&(n==null||n(S),!S.defaultPrevented&&l&&(S.preventDefault(),l()))},p),A.useEffect(()=>{if(d)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(a0=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),l0(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=a0)}},[d,p,r,c]),A.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),l0())},[d,c]),A.useEffect(()=>{const S=()=>g({});return document.addEventListener(va,S),()=>document.removeEventListener(va,S)},[]),b.jsx(Ce.div,{...s,ref:y,style:{pointerEvents:E?F?"auto":"none":void 0,...t.style},onFocusCapture:pt(t.onFocusCapture,w.onFocusCapture),onBlurCapture:pt(t.onBlurCapture,w.onBlurCapture),onPointerDownCapture:pt(t.onPointerDownCapture,D.onPointerDownCapture)})});Bd.displayName=kp;var Mp="DismissableLayerBranch",Np=A.forwardRef((t,e)=>{const r=A.useContext(Rd),n=A.useRef(null),i=jt(e,n);return A.useEffect(()=>{const o=n.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),b.jsx(Ce.div,{...t,ref:i})});Np.displayName=Mp;function Rp(t,e=globalThis==null?void 0:globalThis.document){const r=rn(t),n=A.useRef(!1),i=A.useRef(()=>{});return A.useEffect(()=>{const o=l=>{if(l.target&&!n.current){let s=function(){Ld(Ip,r,c,{discrete:!0})};const c={originalEvent:l};l.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=s,e.addEventListener("click",i.current,{once:!0})):s()}else e.removeEventListener("click",i.current);n.current=!1},a=window.setTimeout(()=>{e.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(a),e.removeEventListener("pointerdown",o),e.removeEventListener("click",i.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function Bp(t,e=globalThis==null?void 0:globalThis.document){const r=rn(t),n=A.useRef(!1);return A.useEffect(()=>{const i=o=>{o.target&&!n.current&&Ld(Op,r,{originalEvent:o},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function l0(){const t=new CustomEvent(va);document.dispatchEvent(t)}function Ld(t,e,r,{discrete:n}){const i=r.originalEvent.target,o=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&i.addEventListener(t,e,{once:!0}),n?Ap(i,o):i.dispatchEvent(o)}var Co="focusScope.autoFocusOnMount",Eo="focusScope.autoFocusOnUnmount",s0={bubbles:!1,cancelable:!0},Lp="FocusScope",jd=A.forwardRef((t,e)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=t,[l,s]=A.useState(null),c=rn(i),d=rn(o),f=A.useRef(null),p=jt(e,h=>s(h)),g=A.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;A.useEffect(()=>{if(n){let h=function(E){if(g.paused||!l)return;const F=E.target;l.contains(F)?f.current=F:lt(f.current,{select:!0})},v=function(E){if(g.paused||!l)return;const F=E.relatedTarget;F!==null&&(l.contains(F)||lt(f.current,{select:!0}))},m=function(E){if(document.activeElement===document.body)for(const D of E)D.removedNodes.length>0&&lt(l)};document.addEventListener("focusin",h),document.addEventListener("focusout",v);const C=new MutationObserver(m);return l&&C.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",v),C.disconnect()}}},[n,l,g.paused]),A.useEffect(()=>{if(l){u0.add(g);const h=document.activeElement;if(!l.contains(h)){const m=new CustomEvent(Co,s0);l.addEventListener(Co,c),l.dispatchEvent(m),m.defaultPrevented||(jp(Up(Kd(l)),{select:!0}),document.activeElement===h&&lt(l))}return()=>{l.removeEventListener(Co,c),setTimeout(()=>{const m=new CustomEvent(Eo,s0);l.addEventListener(Eo,d),l.dispatchEvent(m),m.defaultPrevented||lt(h??document.body,{select:!0}),l.removeEventListener(Eo,d),u0.remove(g)},0)}}},[l,c,d,g]);const y=A.useCallback(h=>{if(!r&&!n||g.paused)return;const v=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,m=document.activeElement;if(v&&m){const C=h.currentTarget,[E,F]=Kp(C);E&&F?!h.shiftKey&&m===F?(h.preventDefault(),r&&lt(E,{select:!0})):h.shiftKey&&m===E&&(h.preventDefault(),r&&lt(F,{select:!0})):m===C&&h.preventDefault()}},[r,n,g.paused]);return b.jsx(Ce.div,{tabIndex:-1,...a,ref:p,onKeyDown:y})});jd.displayName=Lp;function jp(t,{select:e=!1}={}){const r=document.activeElement;for(const n of t)if(lt(n,{select:e}),document.activeElement!==r)return}function Kp(t){const e=Kd(t),r=c0(e,t),n=c0(e.reverse(),t);return[r,n]}function Kd(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function c0(t,e){for(const r of t)if(!Vp(r,{upTo:e}))return r}function Vp(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function Hp(t){return t instanceof HTMLInputElement&&"select"in t}function lt(t,{select:e=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&Hp(t)&&e&&t.select()}}var u0=zp();function zp(){let t=[];return{add(e){const r=t[0];e!==r&&(r==null||r.pause()),t=d0(t,e),t.unshift(e)},remove(e){var r;t=d0(t,e),(r=t[0])==null||r.resume()}}}function d0(t,e){const r=[...t],n=r.indexOf(e);return n!==-1&&r.splice(n,1),r}function Up(t){return t.filter(e=>e.tagName!=="A")}var Wp="Portal",Vd=A.forwardRef((t,e)=>{var l;const{container:r,...n}=t,[i,o]=A.useState(!1);tn(()=>o(!0),[]);const a=r||i&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?Nt.createPortal(b.jsx(Ce.div,{...n,ref:e}),a):null});Vd.displayName=Wp;function Zp(t,e){return A.useReducer((r,n)=>e[r][n]??r,t)}var Ri=t=>{const{present:e,children:r}=t,n=Gp(e),i=typeof r=="function"?r({present:n.isPresent}):A.Children.only(r),o=jt(n.ref,qp(i));return typeof r=="function"||n.isPresent?A.cloneElement(i,{ref:o}):null};Ri.displayName="Presence";function Gp(t){const[e,r]=A.useState(),n=A.useRef(null),i=A.useRef(t),o=A.useRef("none"),a=t?"mounted":"unmounted",[l,s]=Zp(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return A.useEffect(()=>{const c=Dn(n.current);o.current=l==="mounted"?c:"none"},[l]),tn(()=>{const c=n.current,d=i.current;if(d!==t){const p=o.current,g=Dn(c);t?s("MOUNT"):g==="none"||(c==null?void 0:c.display)==="none"?s("UNMOUNT"):s(d&&p!==g?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,s]),tn(()=>{if(e){let c;const d=e.ownerDocument.defaultView??window,f=g=>{const h=Dn(n.current).includes(CSS.escape(g.animationName));if(g.target===e&&h&&(s("ANIMATION_END"),!i.current)){const v=e.style.animationFillMode;e.style.animationFillMode="forwards",c=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=v)})}},p=g=>{g.target===e&&(o.current=Dn(n.current))};return e.addEventListener("animationstart",p),e.addEventListener("animationcancel",f),e.addEventListener("animationend",f),()=>{d.clearTimeout(c),e.removeEventListener("animationstart",p),e.removeEventListener("animationcancel",f),e.removeEventListener("animationend",f)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:A.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function Dn(t){return(t==null?void 0:t.animationName)||"none"}function qp(t){var n,i;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var wo=0;function Yp(){A.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??f0()),document.body.insertAdjacentElement("beforeend",t[1]??f0()),wo++,()=>{wo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),wo--}},[])}function f0(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var Nn="right-scroll-bar-position",Rn="width-before-scroll-bar",Xp="with-scroll-bars-hidden",Jp="--removed-body-scroll-bar-size";function xo(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function Qp(t,e){var r=u.useState(function(){return{value:t,callback:e,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=e,r.facade}var e9=typeof window<"u"?A.useLayoutEffect:A.useEffect,h0=new WeakMap;function t9(t,e){var r=Qp(null,function(n){return t.forEach(function(i){return xo(i,n)})});return e9(function(){var n=h0.get(r);if(n){var i=new Set(n),o=new Set(t),a=r.current;i.forEach(function(l){o.has(l)||xo(l,null)}),o.forEach(function(l){i.has(l)||xo(l,a)})}h0.set(r,t)},[t]),r}function r9(t){return t}function n9(t,e){e===void 0&&(e=r9);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:t},useMedium:function(o){var a=e(o,n);return r.push(a),function(){r=r.filter(function(l){return l!==a})}},assignSyncMedium:function(o){for(n=!0;r.length;){var a=r;r=[],a.forEach(o)}r={push:function(l){return o(l)},filter:function(){return r}}},assignMedium:function(o){n=!0;var a=[];if(r.length){var l=r;r=[],l.forEach(o),a=r}var s=function(){var d=a;a=[],d.forEach(o)},c=function(){return Promise.resolve().then(s)};c(),r={push:function(d){a.push(d),c()},filter:function(d){return a=a.filter(d),r}}}};return i}function i9(t){t===void 0&&(t={});var e=n9(null);return e.options=Ge({async:!0,ssr:!1},t),e}var Hd=function(t){var e=t.sideCar,r=Q2(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=e.read();if(!n)throw new Error("Sidecar medium not found");return A.createElement(n,Ge({},r))};Hd.isSideCarExport=!0;function o9(t,e){return t.useMedium(e),Hd}var zd=i9(),Do=function(){},Bi=A.forwardRef(function(t,e){var r=A.useRef(null),n=A.useState({onScrollCapture:Do,onWheelCapture:Do,onTouchMoveCapture:Do}),i=n[0],o=n[1],a=t.forwardProps,l=t.children,s=t.className,c=t.removeScrollBar,d=t.enabled,f=t.shards,p=t.sideCar,g=t.noRelative,y=t.noIsolation,h=t.inert,v=t.allowPinchZoom,m=t.as,C=m===void 0?"div":m,E=t.gapMode,F=Q2(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),D=p,w=t9([r,e]),S=Ge(Ge({},F),i);return A.createElement(A.Fragment,null,d&&A.createElement(D,{sideCar:zd,removeScrollBar:c,shards:f,noRelative:g,noIsolation:y,inert:h,setCallbacks:o,allowPinchZoom:!!v,lockRef:r,gapMode:E}),a?A.cloneElement(A.Children.only(l),Ge(Ge({},S),{ref:w})):A.createElement(C,Ge({},S,{className:s,ref:w}),l))});Bi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Bi.classNames={fullWidth:Rn,zeroRight:Nn};var a9=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function l9(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=a9();return e&&t.setAttribute("nonce",e),t}function s9(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function c9(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var u9=function(){var t=0,e=null;return{add:function(r){t==0&&(e=l9())&&(s9(e,r),c9(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},d9=function(){var t=u9();return function(e,r){A.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&r])}},Ud=function(){var t=d9(),e=function(r){var n=r.styles,i=r.dynamic;return t(n,i),null};return e},f9={left:0,top:0,right:0,gap:0},So=function(t){return parseInt(t||"",10)||0},h9=function(t){var e=window.getComputedStyle(document.body),r=e[t==="padding"?"paddingLeft":"marginLeft"],n=e[t==="padding"?"paddingTop":"marginTop"],i=e[t==="padding"?"paddingRight":"marginRight"];return[So(r),So(n),So(i)]},p9=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return f9;var e=h9(t),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,n-r+e[2]-e[0])}},g9=Ud(),hr="data-scroll-locked",v9=function(t,e,r,n){var i=t.left,o=t.top,a=t.right,l=t.gap;return r===void 0&&(r="margin"),`
45
+ .`.concat(Xp,` {
46
46
  overflow: hidden `).concat(n,`;
47
47
  padding-right: `).concat(l,"px ").concat(n,`;
48
48
  }
49
- body[`).concat(gr,`] {
49
+ body[`).concat(hr,`] {
50
50
  overflow: hidden `).concat(n,`;
51
51
  overscroll-behavior: contain;
52
52
  `).concat([e&&"position: relative ".concat(n,";"),r==="margin"&&`
@@ -75,25 +75,25 @@ React keys must be passed directly to JSX without using spread:
75
75
  margin-right: 0 `).concat(n,`;
76
76
  }
77
77
 
78
- body[`).concat(gr,`] {
79
- `).concat(Xp,": ").concat(l,`px;
78
+ body[`).concat(hr,`] {
79
+ `).concat(Jp,": ").concat(l,`px;
80
80
  }
81
- `)},p0=function(){var t=parseInt(document.body.getAttribute(gr)||"0",10);return isFinite(t)?t:0},v9=function(){A.useEffect(function(){return document.body.setAttribute(gr,(p0()+1).toString()),function(){var t=p0()-1;t<=0?document.body.removeAttribute(gr):document.body.setAttribute(gr,t.toString())}},[])},b9=function(t){var e=t.noRelative,r=t.noImportant,n=t.gapMode,i=n===void 0?"margin":n;v9();var o=A.useMemo(function(){return h9(i)},[i]);return A.createElement(p9,{styles:g9(o,!e,i,r?"":"!important")})},ba=!1;if(typeof window<"u")try{var Sn=Object.defineProperty({},"passive",{get:function(){return ba=!0,!0}});window.addEventListener("test",Sn,Sn),window.removeEventListener("test",Sn,Sn)}catch{ba=!1}var qt=ba?{passive:!1}:!1,m9=function(t){return t.tagName==="TEXTAREA"},Wd=function(t,e){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!m9(t)&&r[e]==="visible")},y9=function(t){return Wd(t,"overflowY")},C9=function(t){return Wd(t,"overflowX")},g0=function(t,e){var r=e.ownerDocument,n=e;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=Zd(t,n);if(i){var o=Gd(t,n),a=o[1],l=o[2];if(a>l)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},E9=function(t){var e=t.scrollTop,r=t.scrollHeight,n=t.clientHeight;return[e,r,n]},w9=function(t){var e=t.scrollLeft,r=t.scrollWidth,n=t.clientWidth;return[e,r,n]},Zd=function(t,e){return t==="v"?y9(e):C9(e)},Gd=function(t,e){return t==="v"?E9(e):w9(e)},x9=function(t,e){return t==="h"&&e==="rtl"?-1:1},D9=function(t,e,r,n,i){var o=x9(t,window.getComputedStyle(e).direction),a=o*n,l=r.target,s=e.contains(l),c=!1,d=a>0,f=0,p=0;do{if(!l)break;var g=Gd(t,l),y=g[0],h=g[1],b=g[2],m=h-b-o*y;(y||m)&&Zd(t,l)&&(f+=m,p+=y);var C=l.parentNode;l=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!s&&l!==document.body||s&&(e.contains(l)||e===l));return(d&&Math.abs(f)<1||!d&&Math.abs(p)<1)&&(c=!0),c},Fn=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},v0=function(t){return[t.deltaX,t.deltaY]},b0=function(t){return t&&"current"in t?t.current:t},S9=function(t,e){return t[0]===e[0]&&t[1]===e[1]},F9=function(t){return`
81
+ `)},p0=function(){var t=parseInt(document.body.getAttribute(hr)||"0",10);return isFinite(t)?t:0},b9=function(){A.useEffect(function(){return document.body.setAttribute(hr,(p0()+1).toString()),function(){var t=p0()-1;t<=0?document.body.removeAttribute(hr):document.body.setAttribute(hr,t.toString())}},[])},m9=function(t){var e=t.noRelative,r=t.noImportant,n=t.gapMode,i=n===void 0?"margin":n;b9();var o=A.useMemo(function(){return p9(i)},[i]);return A.createElement(g9,{styles:v9(o,!e,i,r?"":"!important")})},ba=!1;if(typeof window<"u")try{var Sn=Object.defineProperty({},"passive",{get:function(){return ba=!0,!0}});window.addEventListener("test",Sn,Sn),window.removeEventListener("test",Sn,Sn)}catch{ba=!1}var Zt=ba?{passive:!1}:!1,y9=function(t){return t.tagName==="TEXTAREA"},Wd=function(t,e){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!y9(t)&&r[e]==="visible")},C9=function(t){return Wd(t,"overflowY")},E9=function(t){return Wd(t,"overflowX")},g0=function(t,e){var r=e.ownerDocument,n=e;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=Zd(t,n);if(i){var o=Gd(t,n),a=o[1],l=o[2];if(a>l)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},w9=function(t){var e=t.scrollTop,r=t.scrollHeight,n=t.clientHeight;return[e,r,n]},x9=function(t){var e=t.scrollLeft,r=t.scrollWidth,n=t.clientWidth;return[e,r,n]},Zd=function(t,e){return t==="v"?C9(e):E9(e)},Gd=function(t,e){return t==="v"?w9(e):x9(e)},D9=function(t,e){return t==="h"&&e==="rtl"?-1:1},S9=function(t,e,r,n,i){var o=D9(t,window.getComputedStyle(e).direction),a=o*n,l=r.target,s=e.contains(l),c=!1,d=a>0,f=0,p=0;do{if(!l)break;var g=Gd(t,l),y=g[0],h=g[1],v=g[2],m=h-v-o*y;(y||m)&&Zd(t,l)&&(f+=m,p+=y);var C=l.parentNode;l=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!s&&l!==document.body||s&&(e.contains(l)||e===l));return(d&&Math.abs(f)<1||!d&&Math.abs(p)<1)&&(c=!0),c},Fn=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},v0=function(t){return[t.deltaX,t.deltaY]},b0=function(t){return t&&"current"in t?t.current:t},F9=function(t,e){return t[0]===e[0]&&t[1]===e[1]},$9=function(t){return`
82
82
  .block-interactivity-`.concat(t,` {pointer-events: none;}
83
83
  .allow-interactivity-`).concat(t,` {pointer-events: all;}
84
- `)},$9=0,Yt=[];function _9(t){var e=A.useRef([]),r=A.useRef([0,0]),n=A.useRef(),i=A.useState($9++)[0],o=A.useState(Ud)[0],a=A.useRef(t);A.useEffect(function(){a.current=t},[t]),A.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var h=$4([t.lockRef.current],(t.shards||[]).map(b0),!0).filter(Boolean);return h.forEach(function(b){return b.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),h.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var l=A.useCallback(function(h,b){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!a.current.allowPinchZoom;var m=Fn(h),C=r.current,E="deltaX"in h?h.deltaX:C[0]-m[0],$="deltaY"in h?h.deltaY:C[1]-m[1],w,x=h.target,S=Math.abs(E)>Math.abs($)?"h":"v";if("touches"in h&&S==="h"&&x.type==="range")return!1;var N=g0(S,x);if(!N)return!0;if(N?w=S:(w=S==="v"?"h":"v",N=g0(S,x)),!N)return!1;if(!n.current&&"changedTouches"in h&&(E||$)&&(n.current=w),!w)return!0;var K=n.current||w;return D9(K,b,h,K==="h"?E:$)},[]),s=A.useCallback(function(h){var b=h;if(!(!Yt.length||Yt[Yt.length-1]!==o)){var m="deltaY"in b?v0(b):Fn(b),C=e.current.filter(function(w){return w.name===b.type&&(w.target===b.target||b.target===w.shadowParent)&&S9(w.delta,m)})[0];if(C&&C.should){b.cancelable&&b.preventDefault();return}if(!C){var E=(a.current.shards||[]).map(b0).filter(Boolean).filter(function(w){return w.contains(b.target)}),$=E.length>0?l(b,E[0]):!a.current.noIsolation;$&&b.cancelable&&b.preventDefault()}}},[]),c=A.useCallback(function(h,b,m,C){var E={name:h,delta:b,target:m,should:C,shadowParent:P9(m)};e.current.push(E),setTimeout(function(){e.current=e.current.filter(function($){return $!==E})},1)},[]),d=A.useCallback(function(h){r.current=Fn(h),n.current=void 0},[]),f=A.useCallback(function(h){c(h.type,v0(h),h.target,l(h,t.lockRef.current))},[]),p=A.useCallback(function(h){c(h.type,Fn(h),h.target,l(h,t.lockRef.current))},[]);A.useEffect(function(){return Yt.push(o),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,qt),document.addEventListener("touchmove",s,qt),document.addEventListener("touchstart",d,qt),function(){Yt=Yt.filter(function(h){return h!==o}),document.removeEventListener("wheel",s,qt),document.removeEventListener("touchmove",s,qt),document.removeEventListener("touchstart",d,qt)}},[]);var g=t.removeScrollBar,y=t.inert;return A.createElement(A.Fragment,null,y?A.createElement(o,{styles:F9(i)}):null,g?A.createElement(b9,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function P9(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const A9=i9(zd,_9);var qd=A.forwardRef(function(t,e){return A.createElement(Bi,Ge({},t,{ref:e,sideCar:A9}))});qd.classNames=Bi.classNames;var T9=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Xt=new WeakMap,$n=new WeakMap,_n={},Fo=0,Yd=function(t){return t&&(t.host||Yd(t.parentNode))},k9=function(t,e){return e.map(function(r){if(t.contains(r))return r;var n=Yd(r);return n&&t.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},I9=function(t,e,r,n){var i=k9(e,Array.isArray(t)?t:[t]);_n[r]||(_n[r]=new WeakMap);var o=_n[r],a=[],l=new Set,s=new Set(i),c=function(f){!f||l.has(f)||(l.add(f),c(f.parentNode))};i.forEach(c);var d=function(f){!f||s.has(f)||Array.prototype.forEach.call(f.children,function(p){if(l.has(p))d(p);else try{var g=p.getAttribute(n),y=g!==null&&g!=="false",h=(Xt.get(p)||0)+1,b=(o.get(p)||0)+1;Xt.set(p,h),o.set(p,b),a.push(p),h===1&&y&&$n.set(p,!0),b===1&&p.setAttribute(r,"true"),y||p.setAttribute(n,"true")}catch(m){console.error("aria-hidden: cannot operate on ",p,m)}})};return d(e),l.clear(),Fo++,function(){a.forEach(function(f){var p=Xt.get(f)-1,g=o.get(f)-1;Xt.set(f,p),o.set(f,g),p||($n.has(f)||f.removeAttribute(n),$n.delete(f)),g||f.removeAttribute(r)}),Fo--,Fo||(Xt=new WeakMap,Xt=new WeakMap,$n=new WeakMap,_n={})}},O9=function(t,e,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),i=T9(t);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live], script"))),I9(n,i,r,"aria-hidden")):function(){return null}},Li="Dialog",[Xd]=gp(Li),[M9,ze]=Xd(Li),Jd=t=>{const{__scopeDialog:e,children:r,open:n,defaultOpen:i,onOpenChange:o,modal:a=!0}=t,l=A.useRef(null),s=A.useRef(null),[c,d]=Cp({prop:n,defaultProp:i??!1,onChange:o,caller:Li});return v.jsx(M9,{scope:e,triggerRef:l,contentRef:s,contentId:tt(),titleId:tt(),descriptionId:tt(),open:c,onOpenChange:d,onOpenToggle:A.useCallback(()=>d(f=>!f),[d]),modal:a,children:r})};Jd.displayName=Li;var Qd="DialogTrigger",N9=A.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=ze(Qd,r),o=Vt(e,i.triggerRef);return v.jsx(Ce.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":bl(i.open),...n,ref:o,onClick:pt(t.onClick,i.onOpenToggle)})});N9.displayName=Qd;var gl="DialogPortal",[R9,e1]=Xd(gl,{forceMount:void 0}),t1=t=>{const{__scopeDialog:e,forceMount:r,children:n,container:i}=t,o=ze(gl,e);return v.jsx(R9,{scope:e,forceMount:r,children:A.Children.map(n,a=>v.jsx(Ri,{present:r||o.open,children:v.jsx(Vd,{asChild:!0,container:i,children:a})}))})};t1.displayName=gl;var si="DialogOverlay",r1=A.forwardRef((t,e)=>{const r=e1(si,t.__scopeDialog),{forceMount:n=r.forceMount,...i}=t,o=ze(si,t.__scopeDialog);return o.modal?v.jsx(Ri,{present:n||o.open,children:v.jsx(L9,{...i,ref:e})}):null});r1.displayName=si;var B9=Nd("DialogOverlay.RemoveScroll"),L9=A.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=ze(si,r);return v.jsx(qd,{as:B9,allowPinchZoom:!0,shards:[i.contentRef],children:v.jsx(Ce.div,{"data-state":bl(i.open),...n,ref:e,style:{pointerEvents:"auto",...n.style}})})}),Ot="DialogContent",n1=A.forwardRef((t,e)=>{const r=e1(Ot,t.__scopeDialog),{forceMount:n=r.forceMount,...i}=t,o=ze(Ot,t.__scopeDialog);return v.jsx(Ri,{present:n||o.open,children:o.modal?v.jsx(j9,{...i,ref:e}):v.jsx(K9,{...i,ref:e})})});n1.displayName=Ot;var j9=A.forwardRef((t,e)=>{const r=ze(Ot,t.__scopeDialog),n=A.useRef(null),i=Vt(e,r.contentRef,n);return A.useEffect(()=>{const o=n.current;if(o)return O9(o)},[]),v.jsx(i1,{...t,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pt(t.onCloseAutoFocus,o=>{var a;o.preventDefault(),(a=r.triggerRef.current)==null||a.focus()}),onPointerDownOutside:pt(t.onPointerDownOutside,o=>{const a=o.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&o.preventDefault()}),onFocusOutside:pt(t.onFocusOutside,o=>o.preventDefault())})}),K9=A.forwardRef((t,e)=>{const r=ze(Ot,t.__scopeDialog),n=A.useRef(!1),i=A.useRef(!1);return v.jsx(i1,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var a,l;(a=t.onCloseAutoFocus)==null||a.call(t,o),o.defaultPrevented||(n.current||(l=r.triggerRef.current)==null||l.focus(),o.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:o=>{var s,c;(s=t.onInteractOutside)==null||s.call(t,o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const a=o.target;((c=r.triggerRef.current)==null?void 0:c.contains(a))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),i1=A.forwardRef((t,e)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:o,...a}=t,l=ze(Ot,r),s=A.useRef(null),c=Vt(e,s);return qp(),v.jsxs(v.Fragment,{children:[v.jsx(jd,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:o,children:v.jsx(Bd,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":bl(l.open),...a,ref:c,onDismiss:()=>l.onOpenChange(!1)})}),v.jsxs(v.Fragment,{children:[v.jsx(U9,{titleId:l.titleId}),v.jsx(Z9,{contentRef:s,descriptionId:l.descriptionId})]})]})}),vl="DialogTitle",V9=A.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=ze(vl,r);return v.jsx(Ce.h2,{id:i.titleId,...n,ref:e})});V9.displayName=vl;var o1="DialogDescription",H9=A.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=ze(o1,r);return v.jsx(Ce.p,{id:i.descriptionId,...n,ref:e})});H9.displayName=o1;var a1="DialogClose",z9=A.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=ze(a1,r);return v.jsx(Ce.button,{type:"button",...n,ref:e,onClick:pt(t.onClick,()=>i.onOpenChange(!1))})});z9.displayName=a1;function bl(t){return t?"open":"closed"}var l1="DialogTitleWarning",[ry,s1]=pp(l1,{contentName:Ot,titleName:vl,docsSlug:"dialog"}),U9=({titleId:t})=>{const e=s1(l1),r=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
84
+ `)},_9=0,Gt=[];function P9(t){var e=A.useRef([]),r=A.useRef([0,0]),n=A.useRef(),i=A.useState(_9++)[0],o=A.useState(Ud)[0],a=A.useRef(t);A.useEffect(function(){a.current=t},[t]),A.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var h=_4([t.lockRef.current],(t.shards||[]).map(b0),!0).filter(Boolean);return h.forEach(function(v){return v.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),h.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var l=A.useCallback(function(h,v){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!a.current.allowPinchZoom;var m=Fn(h),C=r.current,E="deltaX"in h?h.deltaX:C[0]-m[0],F="deltaY"in h?h.deltaY:C[1]-m[1],D,w=h.target,S=Math.abs(E)>Math.abs(F)?"h":"v";if("touches"in h&&S==="h"&&w.type==="range")return!1;var O=g0(S,w);if(!O)return!0;if(O?D=S:(D=S==="v"?"h":"v",O=g0(S,w)),!O)return!1;if(!n.current&&"changedTouches"in h&&(E||F)&&(n.current=D),!D)return!0;var K=n.current||D;return S9(K,v,h,K==="h"?E:F)},[]),s=A.useCallback(function(h){var v=h;if(!(!Gt.length||Gt[Gt.length-1]!==o)){var m="deltaY"in v?v0(v):Fn(v),C=e.current.filter(function(D){return D.name===v.type&&(D.target===v.target||v.target===D.shadowParent)&&F9(D.delta,m)})[0];if(C&&C.should){v.cancelable&&v.preventDefault();return}if(!C){var E=(a.current.shards||[]).map(b0).filter(Boolean).filter(function(D){return D.contains(v.target)}),F=E.length>0?l(v,E[0]):!a.current.noIsolation;F&&v.cancelable&&v.preventDefault()}}},[]),c=A.useCallback(function(h,v,m,C){var E={name:h,delta:v,target:m,should:C,shadowParent:A9(m)};e.current.push(E),setTimeout(function(){e.current=e.current.filter(function(F){return F!==E})},1)},[]),d=A.useCallback(function(h){r.current=Fn(h),n.current=void 0},[]),f=A.useCallback(function(h){c(h.type,v0(h),h.target,l(h,t.lockRef.current))},[]),p=A.useCallback(function(h){c(h.type,Fn(h),h.target,l(h,t.lockRef.current))},[]);A.useEffect(function(){return Gt.push(o),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,Zt),document.addEventListener("touchmove",s,Zt),document.addEventListener("touchstart",d,Zt),function(){Gt=Gt.filter(function(h){return h!==o}),document.removeEventListener("wheel",s,Zt),document.removeEventListener("touchmove",s,Zt),document.removeEventListener("touchstart",d,Zt)}},[]);var g=t.removeScrollBar,y=t.inert;return A.createElement(A.Fragment,null,y?A.createElement(o,{styles:$9(i)}):null,g?A.createElement(m9,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function A9(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const T9=o9(zd,P9);var qd=A.forwardRef(function(t,e){return A.createElement(Bi,Ge({},t,{ref:e,sideCar:T9}))});qd.classNames=Bi.classNames;var k9=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},qt=new WeakMap,$n=new WeakMap,_n={},Fo=0,Yd=function(t){return t&&(t.host||Yd(t.parentNode))},I9=function(t,e){return e.map(function(r){if(t.contains(r))return r;var n=Yd(r);return n&&t.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},O9=function(t,e,r,n){var i=I9(e,Array.isArray(t)?t:[t]);_n[r]||(_n[r]=new WeakMap);var o=_n[r],a=[],l=new Set,s=new Set(i),c=function(f){!f||l.has(f)||(l.add(f),c(f.parentNode))};i.forEach(c);var d=function(f){!f||s.has(f)||Array.prototype.forEach.call(f.children,function(p){if(l.has(p))d(p);else try{var g=p.getAttribute(n),y=g!==null&&g!=="false",h=(qt.get(p)||0)+1,v=(o.get(p)||0)+1;qt.set(p,h),o.set(p,v),a.push(p),h===1&&y&&$n.set(p,!0),v===1&&p.setAttribute(r,"true"),y||p.setAttribute(n,"true")}catch(m){console.error("aria-hidden: cannot operate on ",p,m)}})};return d(e),l.clear(),Fo++,function(){a.forEach(function(f){var p=qt.get(f)-1,g=o.get(f)-1;qt.set(f,p),o.set(f,g),p||($n.has(f)||f.removeAttribute(n),$n.delete(f)),g||f.removeAttribute(r)}),Fo--,Fo||(qt=new WeakMap,qt=new WeakMap,$n=new WeakMap,_n={})}},M9=function(t,e,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),i=k9(t);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live], script"))),O9(n,i,r,"aria-hidden")):function(){return null}},Li="Dialog",[Xd]=vp(Li),[N9,ze]=Xd(Li),Jd=t=>{const{__scopeDialog:e,children:r,open:n,defaultOpen:i,onOpenChange:o,modal:a=!0}=t,l=A.useRef(null),s=A.useRef(null),[c,d]=Ep({prop:n,defaultProp:i??!1,onChange:o,caller:Li});return b.jsx(N9,{scope:e,triggerRef:l,contentRef:s,contentId:tt(),titleId:tt(),descriptionId:tt(),open:c,onOpenChange:d,onOpenToggle:A.useCallback(()=>d(f=>!f),[d]),modal:a,children:r})};Jd.displayName=Li;var Qd="DialogTrigger",R9=A.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=ze(Qd,r),o=jt(e,i.triggerRef);return b.jsx(Ce.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":bl(i.open),...n,ref:o,onClick:pt(t.onClick,i.onOpenToggle)})});R9.displayName=Qd;var gl="DialogPortal",[B9,e1]=Xd(gl,{forceMount:void 0}),t1=t=>{const{__scopeDialog:e,forceMount:r,children:n,container:i}=t,o=ze(gl,e);return b.jsx(B9,{scope:e,forceMount:r,children:A.Children.map(n,a=>b.jsx(Ri,{present:r||o.open,children:b.jsx(Vd,{asChild:!0,container:i,children:a})}))})};t1.displayName=gl;var si="DialogOverlay",r1=A.forwardRef((t,e)=>{const r=e1(si,t.__scopeDialog),{forceMount:n=r.forceMount,...i}=t,o=ze(si,t.__scopeDialog);return o.modal?b.jsx(Ri,{present:n||o.open,children:b.jsx(j9,{...i,ref:e})}):null});r1.displayName=si;var L9=Nd("DialogOverlay.RemoveScroll"),j9=A.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=ze(si,r);return b.jsx(qd,{as:L9,allowPinchZoom:!0,shards:[i.contentRef],children:b.jsx(Ce.div,{"data-state":bl(i.open),...n,ref:e,style:{pointerEvents:"auto",...n.style}})})}),kt="DialogContent",n1=A.forwardRef((t,e)=>{const r=e1(kt,t.__scopeDialog),{forceMount:n=r.forceMount,...i}=t,o=ze(kt,t.__scopeDialog);return b.jsx(Ri,{present:n||o.open,children:o.modal?b.jsx(K9,{...i,ref:e}):b.jsx(V9,{...i,ref:e})})});n1.displayName=kt;var K9=A.forwardRef((t,e)=>{const r=ze(kt,t.__scopeDialog),n=A.useRef(null),i=jt(e,r.contentRef,n);return A.useEffect(()=>{const o=n.current;if(o)return M9(o)},[]),b.jsx(i1,{...t,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pt(t.onCloseAutoFocus,o=>{var a;o.preventDefault(),(a=r.triggerRef.current)==null||a.focus()}),onPointerDownOutside:pt(t.onPointerDownOutside,o=>{const a=o.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&o.preventDefault()}),onFocusOutside:pt(t.onFocusOutside,o=>o.preventDefault())})}),V9=A.forwardRef((t,e)=>{const r=ze(kt,t.__scopeDialog),n=A.useRef(!1),i=A.useRef(!1);return b.jsx(i1,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var a,l;(a=t.onCloseAutoFocus)==null||a.call(t,o),o.defaultPrevented||(n.current||(l=r.triggerRef.current)==null||l.focus(),o.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:o=>{var s,c;(s=t.onInteractOutside)==null||s.call(t,o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const a=o.target;((c=r.triggerRef.current)==null?void 0:c.contains(a))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),i1=A.forwardRef((t,e)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:o,...a}=t,l=ze(kt,r),s=A.useRef(null),c=jt(e,s);return Yp(),b.jsxs(b.Fragment,{children:[b.jsx(jd,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:o,children:b.jsx(Bd,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":bl(l.open),...a,ref:c,onDismiss:()=>l.onOpenChange(!1)})}),b.jsxs(b.Fragment,{children:[b.jsx(W9,{titleId:l.titleId}),b.jsx(G9,{contentRef:s,descriptionId:l.descriptionId})]})]})}),vl="DialogTitle",H9=A.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=ze(vl,r);return b.jsx(Ce.h2,{id:i.titleId,...n,ref:e})});H9.displayName=vl;var o1="DialogDescription",z9=A.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=ze(o1,r);return b.jsx(Ce.p,{id:i.descriptionId,...n,ref:e})});z9.displayName=o1;var a1="DialogClose",U9=A.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=ze(a1,r);return b.jsx(Ce.button,{type:"button",...n,ref:e,onClick:pt(t.onClick,()=>i.onOpenChange(!1))})});U9.displayName=a1;function bl(t){return t?"open":"closed"}var l1="DialogTitleWarning",[ny,s1]=gp(l1,{contentName:kt,titleName:vl,docsSlug:"dialog"}),W9=({titleId:t})=>{const e=s1(l1),r=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
85
85
 
86
86
  If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
87
87
 
88
- For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return A.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},W9="DialogDescriptionWarning",Z9=({contentRef:t,descriptionId:e})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${s1(W9).contentName}}.`;return A.useEffect(()=>{var o;const i=(o=t.current)==null?void 0:o.getAttribute("aria-describedby");e&&i&&(document.getElementById(e)||console.warn(n))},[n,t,e]),null},G9=Jd,q9=t1,Y9=r1,X9=n1,Nr='[cmdk-group=""]',$o='[cmdk-group-items=""]',J9='[cmdk-group-heading=""]',ml='[cmdk-item=""]',m0=`${ml}:not([aria-disabled="true"])`,ma="cmdk-item-select",Et="data-value",Q9=(t,e,r)=>hp(t,e,r),c1=A.createContext(void 0),dn=()=>A.useContext(c1),u1=A.createContext(void 0),yl=()=>A.useContext(u1),d1=A.createContext(void 0),f1=A.forwardRef((t,e)=>{let r=ar(()=>{var F,_;return{search:"",value:(_=(F=t.value)!=null?F:t.defaultValue)!=null?_:"",filtered:{count:0,items:new Map,groups:new Set}}}),n=ar(()=>new Set),i=ar(()=>new Map),o=ar(()=>new Map),a=ar(()=>new Set),l=h1(t),{label:s,children:c,value:d,onValueChange:f,filter:p,shouldFilter:g,loop:y,disablePointerSelection:h=!1,vimBindings:b=!0,...m}=t,C=tt(),E=tt(),$=tt(),w=A.useRef(null),x=ug();Mt(()=>{if(d!==void 0){let F=d.trim();r.current.value=F,S.emit()}},[d]),Mt(()=>{x(6,Z)},[]);let S=A.useMemo(()=>({subscribe:F=>(a.current.add(F),()=>a.current.delete(F)),snapshot:()=>r.current,setState:(F,_,I)=>{var L,j,H;if(!Object.is(r.current[F],_)){if(r.current[F]=_,F==="search")T(),V(),x(1,D);else if(F==="value"&&(I||x(5,Z),((L=l.current)==null?void 0:L.value)!==void 0)){let W=_??"";(H=(j=l.current).onValueChange)==null||H.call(j,W);return}S.emit()}},emit:()=>{a.current.forEach(F=>F())}}),[]),N=A.useMemo(()=>({value:(F,_,I)=>{var L;_!==((L=o.current.get(F))==null?void 0:L.value)&&(o.current.set(F,{value:_,keywords:I}),r.current.filtered.items.set(F,K(_,I)),x(2,()=>{V(),S.emit()}))},item:(F,_)=>(n.current.add(F),_&&(i.current.has(_)?i.current.get(_).add(F):i.current.set(_,new Set([F]))),x(3,()=>{T(),V(),r.current.value||D(),S.emit()}),()=>{o.current.delete(F),n.current.delete(F),r.current.filtered.items.delete(F);let I=k();x(4,()=>{T(),(I==null?void 0:I.getAttribute("id"))===F&&D(),S.emit()})}),group:F=>(i.current.has(F)||i.current.set(F,new Set),()=>{o.current.delete(F),i.current.delete(F)}),filter:()=>l.current.shouldFilter,label:s||t["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:C,inputId:$,labelId:E,listInnerRef:w}),[]);function K(F,_){var I,L;let j=(L=(I=l.current)==null?void 0:I.filter)!=null?L:Q9;return F?j(F,r.current.search,_):0}function V(){if(!r.current.search||l.current.shouldFilter===!1)return;let F=r.current.filtered.items,_=[];r.current.filtered.groups.forEach(L=>{let j=i.current.get(L),H=0;j.forEach(W=>{let q=F.get(W);H=Math.max(q,H)}),_.push([L,H])});let I=w.current;U().sort((L,j)=>{var H,W;let q=L.getAttribute("id"),Y=j.getAttribute("id");return((H=F.get(Y))!=null?H:0)-((W=F.get(q))!=null?W:0)}).forEach(L=>{let j=L.closest($o);j?j.appendChild(L.parentElement===j?L:L.closest(`${$o} > *`)):I.appendChild(L.parentElement===I?L:L.closest(`${$o} > *`))}),_.sort((L,j)=>j[1]-L[1]).forEach(L=>{var j;let H=(j=w.current)==null?void 0:j.querySelector(`${Nr}[${Et}="${encodeURIComponent(L[0])}"]`);H==null||H.parentElement.appendChild(H)})}function D(){let F=U().find(I=>I.getAttribute("aria-disabled")!=="true"),_=F==null?void 0:F.getAttribute(Et);S.setState("value",_||void 0)}function T(){var F,_,I,L;if(!r.current.search||l.current.shouldFilter===!1){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let j=0;for(let H of n.current){let W=(_=(F=o.current.get(H))==null?void 0:F.value)!=null?_:"",q=(L=(I=o.current.get(H))==null?void 0:I.keywords)!=null?L:[],Y=K(W,q);r.current.filtered.items.set(H,Y),Y>0&&j++}for(let[H,W]of i.current)for(let q of W)if(r.current.filtered.items.get(q)>0){r.current.filtered.groups.add(H);break}r.current.filtered.count=j}function Z(){var F,_,I;let L=k();L&&(((F=L.parentElement)==null?void 0:F.firstChild)===L&&((I=(_=L.closest(Nr))==null?void 0:_.querySelector(J9))==null||I.scrollIntoView({block:"nearest"})),L.scrollIntoView({block:"nearest"}))}function k(){var F;return(F=w.current)==null?void 0:F.querySelector(`${ml}[aria-selected="true"]`)}function U(){var F;return Array.from(((F=w.current)==null?void 0:F.querySelectorAll(m0))||[])}function P(F){let _=U()[F];_&&S.setState("value",_.getAttribute(Et))}function O(F){var _;let I=k(),L=U(),j=L.findIndex(W=>W===I),H=L[j+F];(_=l.current)!=null&&_.loop&&(H=j+F<0?L[L.length-1]:j+F===L.length?L[0]:L[j+F]),H&&S.setState("value",H.getAttribute(Et))}function z(F){let _=k(),I=_==null?void 0:_.closest(Nr),L;for(;I&&!L;)I=F>0?sg(I,Nr):cg(I,Nr),L=I==null?void 0:I.querySelector(m0);L?S.setState("value",L.getAttribute(Et)):O(F)}let B=()=>P(U().length-1),M=F=>{F.preventDefault(),F.metaKey?B():F.altKey?z(1):O(1)},R=F=>{F.preventDefault(),F.metaKey?P(0):F.altKey?z(-1):O(-1)};return A.createElement(Ce.div,{ref:e,tabIndex:-1,...m,"cmdk-root":"",onKeyDown:F=>{var _;if((_=m.onKeyDown)==null||_.call(m,F),!F.defaultPrevented)switch(F.key){case"n":case"j":{b&&F.ctrlKey&&M(F);break}case"ArrowDown":{M(F);break}case"p":case"k":{b&&F.ctrlKey&&R(F);break}case"ArrowUp":{R(F);break}case"Home":{F.preventDefault(),P(0);break}case"End":{F.preventDefault(),B();break}case"Enter":if(!F.nativeEvent.isComposing&&F.keyCode!==229){F.preventDefault();let I=k();if(I){let L=new Event(ma);I.dispatchEvent(L)}}}}},A.createElement("label",{"cmdk-label":"",htmlFor:N.inputId,id:N.labelId,style:fg},s),ji(t,F=>A.createElement(u1.Provider,{value:S},A.createElement(c1.Provider,{value:N},F))))}),eg=A.forwardRef((t,e)=>{var r,n;let i=tt(),o=A.useRef(null),a=A.useContext(d1),l=dn(),s=h1(t),c=(n=(r=s.current)==null?void 0:r.forceMount)!=null?n:a==null?void 0:a.forceMount;Mt(()=>{if(!c)return l.item(i,a==null?void 0:a.id)},[c]);let d=p1(i,o,[t.value,t.children,o],t.keywords),f=yl(),p=Nt(x=>x.value&&x.value===d.current),g=Nt(x=>c||l.filter()===!1?!0:x.search?x.filtered.items.get(i)>0:!0);A.useEffect(()=>{let x=o.current;if(!(!x||t.disabled))return x.addEventListener(ma,y),()=>x.removeEventListener(ma,y)},[g,t.onSelect,t.disabled]);function y(){var x,S;h(),(S=(x=s.current).onSelect)==null||S.call(x,d.current)}function h(){f.setState("value",d.current,!0)}if(!g)return null;let{disabled:b,value:m,onSelect:C,forceMount:E,keywords:$,...w}=t;return A.createElement(Ce.div,{ref:on([o,e]),...w,id:i,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!p,"data-disabled":!!b,"data-selected":!!p,onPointerMove:b||l.getDisablePointerSelection()?void 0:h,onClick:b?void 0:y},t.children)}),tg=A.forwardRef((t,e)=>{let{heading:r,children:n,forceMount:i,...o}=t,a=tt(),l=A.useRef(null),s=A.useRef(null),c=tt(),d=dn(),f=Nt(g=>i||d.filter()===!1?!0:g.search?g.filtered.groups.has(a):!0);Mt(()=>d.group(a),[]),p1(a,l,[t.value,t.heading,s]);let p=A.useMemo(()=>({id:a,forceMount:i}),[i]);return A.createElement(Ce.div,{ref:on([l,e]),...o,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},r&&A.createElement("div",{ref:s,"cmdk-group-heading":"","aria-hidden":!0,id:c},r),ji(t,g=>A.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?c:void 0},A.createElement(d1.Provider,{value:p},g))))}),rg=A.forwardRef((t,e)=>{let{alwaysRender:r,...n}=t,i=A.useRef(null),o=Nt(a=>!a.search);return!r&&!o?null:A.createElement(Ce.div,{ref:on([i,e]),...n,"cmdk-separator":"",role:"separator"})}),ng=A.forwardRef((t,e)=>{let{onValueChange:r,...n}=t,i=t.value!=null,o=yl(),a=Nt(d=>d.search),l=Nt(d=>d.value),s=dn(),c=A.useMemo(()=>{var d;let f=(d=s.listInnerRef.current)==null?void 0:d.querySelector(`${ml}[${Et}="${encodeURIComponent(l)}"]`);return f==null?void 0:f.getAttribute("id")},[]);return A.useEffect(()=>{t.value!=null&&o.setState("search",t.value)},[t.value]),A.createElement(Ce.input,{ref:e,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":s.listId,"aria-labelledby":s.labelId,"aria-activedescendant":c,id:s.inputId,type:"text",value:i?t.value:a,onChange:d=>{i||o.setState("search",d.target.value),r==null||r(d.target.value)}})}),ig=A.forwardRef((t,e)=>{let{children:r,label:n="Suggestions",...i}=t,o=A.useRef(null),a=A.useRef(null),l=dn();return A.useEffect(()=>{if(a.current&&o.current){let s=a.current,c=o.current,d,f=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{let p=s.offsetHeight;c.style.setProperty("--cmdk-list-height",p.toFixed(1)+"px")})});return f.observe(s),()=>{cancelAnimationFrame(d),f.unobserve(s)}}},[]),A.createElement(Ce.div,{ref:on([o,e]),...i,"cmdk-list":"",role:"listbox","aria-label":n,id:l.listId},ji(t,s=>A.createElement("div",{ref:on([a,l.listInnerRef]),"cmdk-list-sizer":""},s)))}),og=A.forwardRef((t,e)=>{let{open:r,onOpenChange:n,overlayClassName:i,contentClassName:o,container:a,...l}=t;return A.createElement(G9,{open:r,onOpenChange:n},A.createElement(q9,{container:a},A.createElement(Y9,{"cmdk-overlay":"",className:i}),A.createElement(X9,{"aria-label":t.label,"cmdk-dialog":"",className:o},A.createElement(f1,{ref:e,...l}))))}),ag=A.forwardRef((t,e)=>Nt(r=>r.filtered.count===0)?A.createElement(Ce.div,{ref:e,...t,"cmdk-empty":"",role:"presentation"}):null),lg=A.forwardRef((t,e)=>{let{progress:r,children:n,label:i="Loading...",...o}=t;return A.createElement(Ce.div,{ref:e,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},ji(t,a=>A.createElement("div",{"aria-hidden":!0},a)))}),nn=Object.assign(f1,{List:ig,Item:eg,Input:ng,Group:tg,Separator:rg,Dialog:og,Empty:ag,Loading:lg});function sg(t,e){let r=t.nextElementSibling;for(;r;){if(r.matches(e))return r;r=r.nextElementSibling}}function cg(t,e){let r=t.previousElementSibling;for(;r;){if(r.matches(e))return r;r=r.previousElementSibling}}function h1(t){let e=A.useRef(t);return Mt(()=>{e.current=t}),e}var Mt=typeof window>"u"?A.useEffect:A.useLayoutEffect;function ar(t){let e=A.useRef();return e.current===void 0&&(e.current=t()),e}function on(t){return e=>{t.forEach(r=>{typeof r=="function"?r(e):r!=null&&(r.current=e)})}}function Nt(t){let e=yl(),r=()=>t(e.snapshot());return Za.useSyncExternalStore(e.subscribe,r,r)}function p1(t,e,r,n=[]){let i=A.useRef(),o=dn();return Mt(()=>{var a;let l=(()=>{var c;for(let d of r){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(c=d.current.textContent)==null?void 0:c.trim():i.current}})(),s=n.map(c=>c.trim());o.value(t,l,s),(a=e.current)==null||a.setAttribute(Et,l),i.current=l}),i}var ug=()=>{let[t,e]=A.useState(),r=ar(()=>new Map);return Mt(()=>{r.current.forEach(n=>n()),r.current=new Map},[t]),(n,i)=>{r.current.set(n,i),e({})}};function dg(t){let e=t.type;return typeof e=="function"?e(t.props):"render"in e?e.render(t.props):t}function ji({asChild:t,children:e},r){return t&&A.isValidElement(e)?A.cloneElement(dg(e),{ref:e.ref},r(e.props.children)):r(e)}var fg={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const g1=({withPadding:t=!0,direction:e,width:r="thin",size:n})=>v.jsx("div",{style:{"--size":n},className:be("c__separator",`c__separator--${e}`,`c__separator--${r}`,{"with-padding":t})}),an=t=>v.jsx(g1,{direction:"horizontal",...t}),v1=({loading:t,inputValue:e,onFilter:r,placeholder:n,children:i,withSeparator:o=!0})=>{const{t:a}=X.useCunningham();return i?v.jsxs(v.Fragment,{children:[i,o&&v.jsx(an,{})]}):v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"quick-search-input-container",children:[!t&&v.jsx("span",{className:"material-icons",children:"search"}),t&&v.jsx("div",{children:v.jsx(li,{size:"md"})}),v.jsx(nn.Input,{autoFocus:!0,"aria-label":a("Quick search input"),onClick:l=>{l.stopPropagation()},role:"combobox",value:e,placeholder:n,onValueChange:r})]}),o&&v.jsx(an,{withPadding:!0})]})},hg=t=>{let e=!1;return u.Children.forEach(t,r=>{e=e||!!r}),e},b1=({onFilter:t,inputContent:e,inputValue:r,loading:n,showInput:i=!0,label:o,placeholder:a,children:l})=>{const s=u.useRef(null);return v.jsx(v.Fragment,{children:v.jsx("div",{className:"quick-search-container",children:v.jsxs(nn,{label:o,shouldFilter:!1,ref:s,children:[i&&v.jsx(v1,{loading:n,withSeparator:hg(l),inputValue:r,onFilter:t,placeholder:a,children:e}),v.jsx(nn.List,{children:v.jsx("div",{children:l})})]})})})},Bn=({children:t,onSelect:e,id:r})=>v.jsx(nn.Item,{value:r,onSelect:e,children:t}),m1=({group:t,onSelect:e,renderElement:r})=>{var n,i;return!t.showWhenEmpty&&t.elements.length===0?null:v.jsx("div",{children:v.jsxs(nn.Group,{heading:t.groupName,forceMount:!1,children:[(n=t.startActions)==null?void 0:n.map((o,a)=>v.jsx(Bn,{onSelect:o.onSelect,children:o.content},`${t.groupName}-action-${a}`)),t.elements.map((o,a)=>v.jsx(Bn,{id:`${t.groupName}-element-${a}`,onSelect:()=>{e==null||e(o)},children:r==null?void 0:r(o)},`${t.groupName}-element-${a}`)),(i=t.endActions)==null?void 0:i.map((o,a)=>v.jsx(Bn,{onSelect:o.onSelect,children:o.content},`${t.groupName}-action-${a}`)),t.emptyString&&t.elements.length===0&&v.jsx("span",{className:"quick-search-group__empty-string",children:t.emptyString})]},t.groupName)})},Ki=({alwaysShowRight:t=!1,left:e,right:r,testId:n})=>{const{isDesktop:i}=ot();return v.jsxs("div",{className:"c__quick-search-item-template","data-testid":n,children:[v.jsx("div",{className:"c__quick-search-item-template__left",children:e}),i&&r&&v.jsx("div",{className:be("c__quick-search-item-template__right",{"always-show-right":t,"show-right-on-focus":!t}),children:r})]})},pg=t=>v.jsx(g1,{direction:"vertical",...t}),gg=({tabs:t,defaultSelectedTab:e,fullWidth:r=!1})=>t.length===0?null:v.jsx("div",{className:be("c__tabs",{"c__tabs__full-width":r}),children:v.jsxs(jh,{defaultSelectedKey:e,children:[v.jsx(Vh,{"aria-label":"History of Ancient Rome",children:t.map(n=>v.jsxs(zh,{id:n.id,children:[n.icon&&v.jsx("span",{className:"material-icons",children:n.icon}),n.label]},n.id))}),t.map(n=>v.jsx(Uh,{id:n.id,children:n.content},n.id))]})}),y1=u.createContext(null);function ke(){const t=u.useContext(y1);if(t===null)throw new Error("No Tree Api Provided");return t}const C1=u.createContext(null);function vg(){const t=u.useContext(C1);if(t===null)throw new Error("Provide a NodesContext");return t}const E1=u.createContext(null);function bg(){const t=u.useContext(E1);if(t===null)throw new Error("Provide a DnDContext");return t}const w1=u.createContext(0);function x1(){u.useContext(w1)}function Ln(t,e,r){return Math.max(Math.min(t,r),e)}function D1(t){return t&&t.isLeaf}function S1(t){return t&&t.isInternal&&!t.isOpen}function F1(t){var e;return t&&t.isOpen&&!(!((e=t.children)===null||e===void 0)&&e.length)}const $1=(t,e)=>{let r=t;for(;r;){if(r.id===e.id)return!0;r=r.parent}return!1},_1=t=>{if(!t.parent)throw Error("Node does not have a parent");return t.parent.children.findIndex(e=>e.id===t.id)};function mg(){}function Cl(t,e){if(!t)return null;if(t.id===e)return t;if(t.children)for(let r of t.children){const n=Cl(r,e);if(n)return n}return null}function ci(t,e){if(e(t),t.children)for(let r of t.children)ci(r,e)}function P1(t){const e=T1(t);let r;for(let n=0;n<e.length;++n)if(e[n]===t){r=yg(e,n);break}r==null||r.focus()}function A1(t){const e=T1(t);let r;for(let n=0;n<e.length;++n)if(e[n]===t){r=Cg(e,n);break}r==null||r.focus()}function yg(t,e){return e+1<t.length?t[e+1]:t[0]}function Cg(t,e){return e-1>=0?t[e-1]:t[t.length-1]}function T1(t){return Array.from(document.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled]), details:not([disabled]), summary:not(:disabled)')).filter(e=>e===t||!t.contains(e))}function zr(t,e){return typeof e=="boolean"?e:typeof e=="string"?t[e]:e(t)}function k1(t){return t===null?null:wt(t)}function wt(t){return typeof t=="string"?t:t.id}function Eg(...t){return e=>{t.forEach(r=>{typeof r=="function"?r(e):r!=null&&(r.current=e)})}}function I1(t,...e){if(t)return t(...e)}function O1(t){return new Promise((e,r)=>{let n=0;function i(){n+=1,n===100&&r(),t()?e():setTimeout(i,10)}i()})}function M1(t){var e,r;const n=t.focusedNode;return n?n.isOpen?0:n.parent?n.childIndex+1:0:(r=(e=t.root.children)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0}function N1(t){const e=t.focusedNode;return e?e.isOpen?e.id:e.parent&&!e.parent.isRoot?e.parent.id:null:null}const wg=Object.freeze(Object.defineProperty({__proto__:null,access:zr,bound:Ln,dfs:Cl,focusNextElement:P1,focusPrevElement:A1,getInsertIndex:M1,getInsertParentId:N1,identify:wt,identifyNull:k1,indexOf:_1,isClosed:S1,isDescendant:$1,isItem:D1,isOpenWithEmptyChildren:F1,mergeRefs:Eg,noop:mg,safeRun:I1,waitFor:O1,walk:ci},Symbol.toStringTag,{value:"Module"})),xg={display:"flex",alignItems:"center",zIndex:1},Dg={flex:1,height:"2px",background:"#4B91E2",borderRadius:"1px"},Sg={width:"4px",height:"4px",boxShadow:"0 0 0 3px #4B91E2",borderRadius:"50%"},Fg=u.memo(function({top:e,left:r,indent:n}){const i={position:"absolute",pointerEvents:"none",top:e-2+"px",left:r+"px",right:n+"px"};return v.jsxs("div",{style:Object.assign(Object.assign({},xg),i),children:[v.jsx("div",{style:Object.assign({},Sg)}),v.jsx("div",{style:Object.assign({},Dg)})]})});function $g({node:t,attrs:e,innerRef:r,children:n}){return v.jsx("div",Object.assign({},e,{ref:r,onFocus:i=>i.stopPropagation(),onClick:t.handleClick,children:n}))}function _g(t){return v.jsxs("div",{ref:t.dragHandle,style:t.style,children:[v.jsx("span",{onClick:e=>{e.stopPropagation(),t.node.toggle()},children:t.node.isLeaf?"🌳":t.node.isOpen?"🗁":"🗀"})," ",t.node.isEditing?v.jsx(Ag,Object.assign({},t)):v.jsx(Pg,Object.assign({},t))]})}function Pg(t){return v.jsx(v.Fragment,{children:v.jsx("span",{children:t.node.data.name})})}function Ag({node:t}){const e=u.useRef();return u.useEffect(()=>{var r,n;(r=e.current)===null||r===void 0||r.focus(),(n=e.current)===null||n===void 0||n.select()},[]),v.jsx("input",{ref:e,defaultValue:t.data.name,onBlur:()=>t.reset(),onKeyDown:r=>{var n;r.key==="Escape"&&t.reset(),r.key==="Enter"&&t.submit(((n=e.current)===null||n===void 0?void 0:n.value)||"")}})}function _o(t){return{type:"EDIT",id:t}}function Tg(t={id:null},e){return e.type==="EDIT"?Object.assign(Object.assign({},t),{id:e.id}):t}function Jt(t){return{type:"FOCUS",id:t}}function kg(){return{type:"TREE_BLUR"}}function Ig(t={id:null,treeFocused:!1},e){return e.type==="FOCUS"?Object.assign(Object.assign({},t),{id:e.id,treeFocused:!0}):e.type==="TREE_BLUR"?Object.assign(Object.assign({},t),{treeFocused:!1}):t}class ui{constructor(e){this.handleClick=r=>{r.metaKey&&!this.tree.props.disableMultiSelection?this.isSelected?this.deselect():this.selectMulti():r.shiftKey&&!this.tree.props.disableMultiSelection?this.selectContiguous():(this.select(),this.activate())},this.tree=e.tree,this.id=e.id,this.data=e.data,this.level=e.level,this.children=e.children,this.parent=e.parent,this.isDraggable=e.isDraggable,this.rowIndex=e.rowIndex}get isRoot(){return this.id===ln}get isLeaf(){return!Array.isArray(this.children)}get isInternal(){return!this.isLeaf}get isOpen(){return this.isLeaf?!1:this.tree.isOpen(this.id)}get isClosed(){return this.isLeaf?!1:!this.tree.isOpen(this.id)}get isEditable(){return this.tree.isEditable(this.data)}get isEditing(){return this.tree.editingId===this.id}get isSelected(){return this.tree.isSelected(this.id)}get isOnlySelection(){return this.isSelected&&this.tree.hasOneSelection}get isSelectedStart(){var e;return this.isSelected&&!(!((e=this.prev)===null||e===void 0)&&e.isSelected)}get isSelectedEnd(){var e;return this.isSelected&&!(!((e=this.next)===null||e===void 0)&&e.isSelected)}get isFocused(){return this.tree.isFocused(this.id)}get isDragging(){return this.tree.isDragging(this.id)}get willReceiveDrop(){return this.tree.willReceiveDrop(this.id)}get state(){return{isClosed:this.isClosed,isDragging:this.isDragging,isEditing:this.isEditing,isFocused:this.isFocused,isInternal:this.isInternal,isLeaf:this.isLeaf,isOpen:this.isOpen,isSelected:this.isSelected,isSelectedEnd:this.isSelectedEnd,isSelectedStart:this.isSelectedStart,willReceiveDrop:this.willReceiveDrop}}get childIndex(){return this.parent&&this.parent.children?this.parent.children.findIndex(e=>e.id===this.id):-1}get next(){return this.rowIndex===null?null:this.tree.at(this.rowIndex+1)}get prev(){return this.rowIndex===null?null:this.tree.at(this.rowIndex-1)}get nextSibling(){var e,r;const n=this.childIndex;return(r=(e=this.parent)===null||e===void 0?void 0:e.children[n+1])!==null&&r!==void 0?r:null}isAncestorOf(e){if(!e)return!1;let r=e;for(;r;){if(r.id===this.id)return!0;r=r.parent}return!1}select(){this.tree.select(this)}deselect(){this.tree.deselect(this)}selectMulti(){this.tree.selectMulti(this)}selectContiguous(){this.tree.selectContiguous(this)}activate(){this.tree.activate(this)}focus(){this.tree.focus(this)}toggle(){this.tree.toggle(this)}open(){this.tree.open(this)}openParents(){this.tree.openParents(this)}close(){this.tree.close(this)}submit(e){this.tree.submit(this,e)}reset(){this.tree.reset()}clone(){return new ui(Object.assign({},this))}edit(){return this.tree.edit(this)}}const ln="__REACT_ARBORIST_INTERNAL_ROOT__";function y0(t){var e;function r(o,a,l){const s=t.accessId(o),c=new ui({tree:t,data:o,level:a,parent:l,id:s,children:null,isDraggable:t.isDraggable(o),rowIndex:null}),d=t.accessChildren(o);return d&&(c.children=d.map(f=>r(f,a+1,c))),c}const n=new ui({tree:t,id:ln,data:{id:ln},level:-1,parent:null,children:null,isDraggable:!0,rowIndex:null}),i=(e=t.props.data)!==null&&e!==void 0?e:[];return n.children=i.map(o=>r(o,0,n)),n}const ya={open(t,e){return{type:"VISIBILITY_OPEN",id:t,filtered:e}},close(t,e){return{type:"VISIBILITY_CLOSE",id:t,filtered:e}},toggle(t,e){return{type:"VISIBILITY_TOGGLE",id:t,filtered:e}},clear(t){return{type:"VISIBILITY_CLEAR",filtered:t}}};function C0(t={},e){if(e.type==="VISIBILITY_OPEN")return Object.assign(Object.assign({},t),{[e.id]:!0});if(e.type==="VISIBILITY_CLOSE")return Object.assign(Object.assign({},t),{[e.id]:!1});if(e.type==="VISIBILITY_TOGGLE"){const r=t[e.id];return Object.assign(Object.assign({},t),{[e.id]:!r})}else return e.type==="VISIBILITY_CLEAR"?{}:t}function Og(t={filtered:{},unfiltered:{}},e){return e.type.startsWith("VISIBILITY")?e.filtered?Object.assign(Object.assign({},t),{filtered:C0(t.filtered,e)}):Object.assign(Object.assign({},t),{unfiltered:C0(t.unfiltered,e)}):t}const Er=t=>{var e;return{nodes:{open:{filtered:{},unfiltered:(e=t==null?void 0:t.initialOpenState)!==null&&e!==void 0?e:{}},focus:{id:null,treeFocused:!1},edit:{id:null},drag:{id:null,selectedIds:[],destinationParentId:null,destinationIndex:null},selection:{ids:new Set,anchor:null,mostRecent:null}},dnd:{cursor:{type:"none"},dragId:null,dragIds:[],parentId:null,index:-1}}},Le={clear:()=>({type:"SELECTION_CLEAR"}),only:t=>({type:"SELECTION_ONLY",id:wt(t)}),add:t=>({type:"SELECTION_ADD",ids:(Array.isArray(t)?t:[t]).map(wt)}),remove:t=>({type:"SELECTION_REMOVE",ids:(Array.isArray(t)?t:[t]).map(wt)}),set:t=>Object.assign({type:"SELECTION_SET"},t),mostRecent:t=>({type:"SELECTION_MOST_RECENT",id:t===null?null:wt(t)}),anchor:t=>({type:"SELECTION_ANCHOR",id:t===null?null:wt(t)})};function Mg(t=Er().nodes.selection,e){const r=t.ids;switch(e.type){case"SELECTION_CLEAR":return Object.assign(Object.assign({},t),{ids:new Set});case"SELECTION_ONLY":return Object.assign(Object.assign({},t),{ids:new Set([e.id])});case"SELECTION_ADD":return e.ids.length===0?t:(e.ids.forEach(n=>r.add(n)),Object.assign(Object.assign({},t),{ids:new Set(r)}));case"SELECTION_REMOVE":return e.ids.length===0?t:(e.ids.forEach(n=>r.delete(n)),Object.assign(Object.assign({},t),{ids:new Set(r)}));case"SELECTION_SET":return Object.assign(Object.assign({},t),{ids:e.ids,mostRecent:e.mostRecent,anchor:e.anchor});case"SELECTION_MOST_RECENT":return Object.assign(Object.assign({},t),{mostRecent:e.id});case"SELECTION_ANCHOR":return Object.assign(Object.assign({},t),{anchor:e.id});default:return t}}const wr={cursor(t){return{type:"DND_CURSOR",cursor:t}},dragStart(t,e){return{type:"DND_DRAG_START",id:t,dragIds:e}},dragEnd(){return{type:"DND_DRAG_END"}},hovering(t,e){return{type:"DND_HOVERING",parentId:t,index:e}}};function Ng(t=Er().dnd,e){switch(e.type){case"DND_CURSOR":return Object.assign(Object.assign({},t),{cursor:e.cursor});case"DND_DRAG_START":return Object.assign(Object.assign({},t),{dragId:e.id,dragIds:e.dragIds});case"DND_DRAG_END":return Er().dnd;case"DND_HOVERING":return Object.assign(Object.assign({},t),{parentId:e.parentId,index:e.index});default:return t}}const Rg={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"},Bg=t=>{if(!t)return{display:"none"};const{x:e,y:r}=t;return{transform:`translate(${e}px, ${r}px)`}},Lg=t=>{if(!t)return{display:"none"};const{x:e,y:r}=t;return{transform:`translate(${e+10}px, ${r+10}px)`}};function R1({offset:t,mouse:e,id:r,dragIds:n,isDragging:i}){return v.jsxs(jg,{isDragging:i,children:[v.jsx(Kg,{offset:t,children:v.jsx(Hg,{id:r,dragIds:n})}),v.jsx(Vg,{mouse:e,count:n.length})]})}const jg=u.memo(function(e){return e.isDragging?v.jsx("div",{style:Rg,children:e.children}):null});function Kg(t){return v.jsx("div",{className:"row preview",style:Bg(t.offset),children:t.children})}function Vg(t){const{count:e,mouse:r}=t;return e>1?v.jsx("div",{className:"selected-count",style:Lg(r),children:e}):null}const Hg=u.memo(function(e){const r=ke(),n=r.get(e.id);return n?v.jsx(r.renderNode,{preview:!0,node:n,style:{paddingLeft:n.level*r.indent,opacity:.2,background:"transparent"},tree:r}):null});function Ca(){return Ca=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ca.apply(null,arguments)}function E0(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ea(t,e){return Ea=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Ea(t,e)}function zg(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Ea(t,e)}var w0=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function Ug(t,e){return!!(t===e||w0(t)&&w0(e))}function Wg(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(!Ug(t[r],e[r]))return!1;return!0}function Po(t,e){e===void 0&&(e=Wg);var r,n=[],i,o=!1;function a(){for(var l=[],s=0;s<arguments.length;s++)l[s]=arguments[s];return o&&r===this&&e(l,n)||(i=t.apply(this,l),o=!0,r=this,n=l),i}return a}var Zg=typeof performance=="object"&&typeof performance.now=="function",x0=Zg?function(){return performance.now()}:function(){return Date.now()};function D0(t){cancelAnimationFrame(t.id)}function Gg(t,e){var r=x0();function n(){x0()-r>=e?t.call(null):i.id=requestAnimationFrame(n)}var i={id:requestAnimationFrame(n)};return i}var Ao=-1;function S0(t){if(t===void 0&&(t=!1),Ao===-1||t){var e=document.createElement("div"),r=e.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(e),Ao=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Ao}var Qt=null;function F0(t){if(t===void 0&&(t=!1),Qt===null||t){var e=document.createElement("div"),r=e.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),i=n.style;return i.width="100px",i.height="100px",e.appendChild(n),document.body.appendChild(e),e.scrollLeft>0?Qt="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?Qt="negative":Qt="positive-ascending"),document.body.removeChild(e),Qt}return Qt}process.env.NODE_ENV;var qg=150,Yg=function(e,r){return e},jn=null,Kn=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(jn=new WeakSet,Kn=new WeakSet);function Xg(t){var e,r=t.getItemOffset,n=t.getEstimatedTotalSize,i=t.getItemSize,o=t.getOffsetForIndexAndAlignment,a=t.getStartIndexForOffset,l=t.getStopIndexForStartIndex,s=t.initInstanceProps,c=t.shouldResetStyleCacheOnItemSizeChange,d=t.validateProps;return e=function(f){zg(p,f);function p(y){var h;return h=f.call(this,y)||this,h._instanceProps=s(h.props,E0(h)),h._outerRef=void 0,h._resetIsScrollingTimeoutId=null,h.state={instance:E0(h),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof h.props.initialScrollOffset=="number"?h.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},h._callOnItemsRendered=void 0,h._callOnItemsRendered=Po(function(b,m,C,E){return h.props.onItemsRendered({overscanStartIndex:b,overscanStopIndex:m,visibleStartIndex:C,visibleStopIndex:E})}),h._callOnScroll=void 0,h._callOnScroll=Po(function(b,m,C){return h.props.onScroll({scrollDirection:b,scrollOffset:m,scrollUpdateWasRequested:C})}),h._getItemStyle=void 0,h._getItemStyle=function(b){var m=h.props,C=m.direction,E=m.itemSize,$=m.layout,w=h._getItemStyleCache(c&&E,c&&$,c&&C),x;if(w.hasOwnProperty(b))x=w[b];else{var S=r(h.props,b,h._instanceProps),N=i(h.props,b,h._instanceProps),K=C==="horizontal"||$==="horizontal",V=C==="rtl",D=K?S:0;w[b]=x={position:"absolute",left:V?void 0:D,right:V?D:void 0,top:K?0:S,height:K?"100%":N,width:K?N:"100%"}}return x},h._getItemStyleCache=void 0,h._getItemStyleCache=Po(function(b,m,C){return{}}),h._onScrollHorizontal=function(b){var m=b.currentTarget,C=m.clientWidth,E=m.scrollLeft,$=m.scrollWidth;h.setState(function(w){if(w.scrollOffset===E)return null;var x=h.props.direction,S=E;if(x==="rtl")switch(F0()){case"negative":S=-E;break;case"positive-descending":S=$-C-E;break}return S=Math.max(0,Math.min(S,$-C)),{isScrolling:!0,scrollDirection:w.scrollOffset<S?"forward":"backward",scrollOffset:S,scrollUpdateWasRequested:!1}},h._resetIsScrollingDebounced)},h._onScrollVertical=function(b){var m=b.currentTarget,C=m.clientHeight,E=m.scrollHeight,$=m.scrollTop;h.setState(function(w){if(w.scrollOffset===$)return null;var x=Math.max(0,Math.min($,E-C));return{isScrolling:!0,scrollDirection:w.scrollOffset<x?"forward":"backward",scrollOffset:x,scrollUpdateWasRequested:!1}},h._resetIsScrollingDebounced)},h._outerRefSetter=function(b){var m=h.props.outerRef;h._outerRef=b,typeof m=="function"?m(b):m!=null&&typeof m=="object"&&m.hasOwnProperty("current")&&(m.current=b)},h._resetIsScrollingDebounced=function(){h._resetIsScrollingTimeoutId!==null&&D0(h._resetIsScrollingTimeoutId),h._resetIsScrollingTimeoutId=Gg(h._resetIsScrolling,qg)},h._resetIsScrolling=function(){h._resetIsScrollingTimeoutId=null,h.setState({isScrolling:!1},function(){h._getItemStyleCache(-1,null)})},h}p.getDerivedStateFromProps=function(h,b){return Jg(h,b),d(h),null};var g=p.prototype;return g.scrollTo=function(h){h=Math.max(0,h),this.setState(function(b){return b.scrollOffset===h?null:{scrollDirection:b.scrollOffset<h?"forward":"backward",scrollOffset:h,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},g.scrollToItem=function(h,b){b===void 0&&(b="auto");var m=this.props,C=m.itemCount,E=m.layout,$=this.state.scrollOffset;h=Math.max(0,Math.min(h,C-1));var w=0;if(this._outerRef){var x=this._outerRef;E==="vertical"?w=x.scrollWidth>x.clientWidth?S0():0:w=x.scrollHeight>x.clientHeight?S0():0}this.scrollTo(o(this.props,h,b,$,this._instanceProps,w))},g.componentDidMount=function(){var h=this.props,b=h.direction,m=h.initialScrollOffset,C=h.layout;if(typeof m=="number"&&this._outerRef!=null){var E=this._outerRef;b==="horizontal"||C==="horizontal"?E.scrollLeft=m:E.scrollTop=m}this._callPropsCallbacks()},g.componentDidUpdate=function(){var h=this.props,b=h.direction,m=h.layout,C=this.state,E=C.scrollOffset,$=C.scrollUpdateWasRequested;if($&&this._outerRef!=null){var w=this._outerRef;if(b==="horizontal"||m==="horizontal")if(b==="rtl")switch(F0()){case"negative":w.scrollLeft=-E;break;case"positive-ascending":w.scrollLeft=E;break;default:var x=w.clientWidth,S=w.scrollWidth;w.scrollLeft=S-x-E;break}else w.scrollLeft=E;else w.scrollTop=E}this._callPropsCallbacks()},g.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&D0(this._resetIsScrollingTimeoutId)},g.render=function(){var h=this.props,b=h.children,m=h.className,C=h.direction,E=h.height,$=h.innerRef,w=h.innerElementType,x=h.innerTagName,S=h.itemCount,N=h.itemData,K=h.itemKey,V=K===void 0?Yg:K,D=h.layout,T=h.outerElementType,Z=h.outerTagName,k=h.style,U=h.useIsScrolling,P=h.width,O=this.state.isScrolling,z=C==="horizontal"||D==="horizontal",B=z?this._onScrollHorizontal:this._onScrollVertical,M=this._getRangeToRender(),R=M[0],F=M[1],_=[];if(S>0)for(var I=R;I<=F;I++)_.push(u.createElement(b,{data:N,key:V(I,N),index:I,isScrolling:U?O:void 0,style:this._getItemStyle(I)}));var L=n(this.props,this._instanceProps);return u.createElement(T||Z||"div",{className:m,onScroll:B,ref:this._outerRefSetter,style:Ca({position:"relative",height:E,width:P,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:C},k)},u.createElement(w||x||"div",{children:_,ref:$,style:{height:z?"100%":L,pointerEvents:O?"none":void 0,width:z?L:"100%"}}))},g._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var h=this.props.itemCount;if(h>0){var b=this._getRangeToRender(),m=b[0],C=b[1],E=b[2],$=b[3];this._callOnItemsRendered(m,C,E,$)}}if(typeof this.props.onScroll=="function"){var w=this.state,x=w.scrollDirection,S=w.scrollOffset,N=w.scrollUpdateWasRequested;this._callOnScroll(x,S,N)}},g._getRangeToRender=function(){var h=this.props,b=h.itemCount,m=h.overscanCount,C=this.state,E=C.isScrolling,$=C.scrollDirection,w=C.scrollOffset;if(b===0)return[0,0,0,0];var x=a(this.props,w,this._instanceProps),S=l(this.props,x,w,this._instanceProps),N=!E||$==="backward"?Math.max(1,m):1,K=!E||$==="forward"?Math.max(1,m):1;return[Math.max(0,x-N),Math.max(0,Math.min(b-1,S+K)),x,S]},p}(u.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var Jg=function(e,r){var n=e.children,i=e.direction,o=e.height,a=e.layout,l=e.innerTagName,s=e.outerTagName,c=e.width,d=r.instance;if(process.env.NODE_ENV!=="production"){(l!=null||s!=null)&&Kn&&!Kn.has(d)&&(Kn.add(d),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var f=i==="horizontal"||a==="horizontal";switch(i){case"horizontal":case"vertical":jn&&!jn.has(d)&&(jn.add(d),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+i+'" was specified.'))}switch(a){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+a+'" was specified.'))}if(n==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(n===null?"null":typeof n)+'" was specified.'));if(f&&typeof c!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(c===null?"null":typeof c)+'" was specified.'));if(!f&&typeof o!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(o===null?"null":typeof o)+'" was specified.'))}},Qg=Xg({getItemOffset:function(e,r){var n=e.itemSize;return r*n},getItemSize:function(e,r){var n=e.itemSize;return n},getEstimatedTotalSize:function(e){var r=e.itemCount,n=e.itemSize;return n*r},getOffsetForIndexAndAlignment:function(e,r,n,i,o,a){var l=e.direction,s=e.height,c=e.itemCount,d=e.itemSize,f=e.layout,p=e.width,g=l==="horizontal"||f==="horizontal",y=g?p:s,h=Math.max(0,c*d-y),b=Math.min(h,r*d),m=Math.max(0,r*d-y+d+a);switch(n==="smart"&&(i>=m-y&&i<=b+y?n="auto":n="center"),n){case"start":return b;case"end":return m;case"center":{var C=Math.round(m+(b-m)/2);return C<Math.ceil(y/2)?0:C>h+Math.floor(y/2)?h:C}case"auto":default:return i>=m&&i<=b?i:i<m?m:b}},getStartIndexForOffset:function(e,r){var n=e.itemCount,i=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(r/i)))},getStopIndexForStartIndex:function(e,r,n){var i=e.direction,o=e.height,a=e.itemCount,l=e.itemSize,s=e.layout,c=e.width,d=i==="horizontal"||s==="horizontal",f=r*l,p=d?c:o,g=Math.ceil((p+n-f)/l);return Math.max(0,Math.min(a-1,r+g-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){var r=e.itemSize;if(process.env.NODE_ENV!=="production"&&typeof r!="number")throw Error('An invalid "itemSize" prop has been specified. Value should be a number. '+('"'+(r===null?"null":typeof r)+'" was specified.'))}});function e8(){var t,e;const r=ke(),i=bg().cursor;if(!i||i.type!=="line")return null;const o=r.indent,a=r.rowHeight*i.index+((e=(t=r.props.padding)!==null&&t!==void 0?t:r.props.paddingTop)!==null&&e!==void 0?e:0),l=o*i.level,s=r.renderCursor;return v.jsx(s,{top:a,left:l,indent:o})}var t8=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r};const r8=u.forwardRef(function(e,r){const{children:n}=e,i=t8(e,["children"]),o=ke();return v.jsxs("div",Object.assign({ref:r},i,{onClick:a=>{a.currentTarget===a.target&&o.deselectAll()},children:[v.jsx(n8,{}),n]}))}),n8=()=>{const t=ke();return v.jsx("div",{style:{height:t.visibleNodes.length*t.rowHeight,width:"100%",position:"absolute",left:"0",right:"0"},children:v.jsx(e8,{})})};var i8=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r};const o8=u.forwardRef(function(e,r){var n,i,o,a,{style:l}=e,s=i8(e,["style"]);const c=ke(),d=(i=(n=c.props.padding)!==null&&n!==void 0?n:c.props.paddingTop)!==null&&i!==void 0?i:0,f=(a=(o=c.props.padding)!==null&&o!==void 0?o:c.props.paddingBottom)!==null&&a!==void 0?a:0;return v.jsx("div",Object.assign({ref:r,style:Object.assign(Object.assign({},l),{height:`${parseFloat(l.height)+d+f}px`})},s))});var B1=u.createContext({dragDropManager:void 0}),Ne;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(Ne||(Ne={}));function J(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];if(process.env.NODE_ENV!=="production"&&e===void 0)throw new Error("invariant requires an error message argument");if(!t){var o;if(e===void 0)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;o=new Error(e.replace(/%s/g,function(){return n[a++]})),o.name="Invariant Violation"}throw o.framesToPop=1,o}}var El="dnd-core/INIT_COORDS",Vi="dnd-core/BEGIN_DRAG",wl="dnd-core/PUBLISH_DRAG_SOURCE",Hi="dnd-core/HOVER",zi="dnd-core/DROP",Ui="dnd-core/END_DRAG";function $0(t,e){return{type:El,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}function Vn(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vn=function(r){return typeof r}:Vn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Vn(t)}function a8(t,e,r){return e.split(".").reduce(function(n,i){return n&&n[i]?n[i]:r||null},t)}function l8(t,e){return t.filter(function(r){return r!==e})}function L1(t){return Vn(t)==="object"}function s8(t,e){var r=new Map,n=function(a){r.set(a,r.has(a)?r.get(a)+1:1)};t.forEach(n),e.forEach(n);var i=[];return r.forEach(function(o,a){o===1&&i.push(a)}),i}function c8(t,e){return t.filter(function(r){return e.indexOf(r)>-1})}var u8={type:El,payload:{clientOffset:null,sourceClientOffset:null}};function d8(t){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{publishSource:!0},i=n.publishSource,o=i===void 0?!0:i,a=n.clientOffset,l=n.getSourceClientOffset,s=t.getMonitor(),c=t.getRegistry();t.dispatch($0(a)),f8(r,s,c);var d=g8(r,s);if(d===null){t.dispatch(u8);return}var f=null;if(a){if(!l)throw new Error("getSourceClientOffset must be defined");h8(l),f=l(d)}t.dispatch($0(a,f));var p=c.getSource(d),g=p.beginDrag(s,d);if(g!=null){p8(g),c.pinSource(d);var y=c.getSourceType(d);return{type:Vi,payload:{itemType:y,item:g,sourceId:d,clientOffset:a||null,sourceClientOffset:f||null,isSourcePublic:!!o}}}}}function f8(t,e,r){J(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(n){J(r.getSource(n),"Expected sourceIds to be registered.")})}function h8(t){J(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function p8(t){J(L1(t),"Item must be an object.")}function g8(t,e){for(var r=null,n=t.length-1;n>=0;n--)if(e.canDragSource(t[n])){r=t[n];break}return r}function v8(t){return function(){var r=t.getMonitor();if(r.isDragging())return{type:wl}}}function wa(t,e){return e===null?t===null:Array.isArray(t)?t.some(function(r){return r===e}):t===e}function b8(t){return function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.clientOffset;m8(r);var o=r.slice(0),a=t.getMonitor(),l=t.getRegistry();y8(o,a,l);var s=a.getItemType();return C8(o,l,s),E8(o,a,l),{type:Hi,payload:{targetIds:o,clientOffset:i||null}}}}function m8(t){J(Array.isArray(t),"Expected targetIds to be an array.")}function y8(t,e,r){J(e.isDragging(),"Cannot call hover while not dragging."),J(!e.didDrop(),"Cannot call hover after drop.");for(var n=0;n<t.length;n++){var i=t[n];J(t.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");var o=r.getTarget(i);J(o,"Expected targetIds to be registered.")}}function C8(t,e,r){for(var n=t.length-1;n>=0;n--){var i=t[n],o=e.getTargetType(i);wa(o,r)||t.splice(n,1)}}function E8(t,e,r){t.forEach(function(n){var i=r.getTarget(n);i.hover(e,n)})}function _0(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function P0(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?_0(Object(r),!0).forEach(function(n){w8(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_0(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function w8(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function x8(t){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.getMonitor(),i=t.getRegistry();D8(n);var o=$8(n);o.forEach(function(a,l){var s=S8(a,l,i,n),c={type:zi,payload:{dropResult:P0(P0({},r),s)}};t.dispatch(c)})}}function D8(t){J(t.isDragging(),"Cannot call drop while not dragging."),J(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function S8(t,e,r,n){var i=r.getTarget(t),o=i?i.drop(n,t):void 0;return F8(o),typeof o>"u"&&(o=e===0?{}:n.getDropResult()),o}function F8(t){J(typeof t>"u"||L1(t),"Drop result must either be an object or undefined.")}function $8(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function _8(t){return function(){var r=t.getMonitor(),n=t.getRegistry();P8(r);var i=r.getSourceId();if(i!=null){var o=n.getSource(i,!0);o.endDrag(r,i),n.unpinSource()}return{type:Ui}}}function P8(t){J(t.isDragging(),"Cannot call endDrag while not dragging.")}function A8(t){return{beginDrag:d8(t),publishDragSource:v8(t),hover:b8(t),drop:x8(t),endDrag:_8(t)}}function T8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function k8(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function I8(t,e,r){return e&&k8(t.prototype,e),t}function Rr(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var O8=function(){function t(e,r){var n=this;T8(this,t),Rr(this,"store",void 0),Rr(this,"monitor",void 0),Rr(this,"backend",void 0),Rr(this,"isSetUp",!1),Rr(this,"handleRefCountChange",function(){var i=n.store.getState().refCount>0;n.backend&&(i&&!n.isSetUp?(n.backend.setup(),n.isSetUp=!0):!i&&n.isSetUp&&(n.backend.teardown(),n.isSetUp=!1))}),this.store=e,this.monitor=r,e.subscribe(this.handleRefCountChange)}return I8(t,[{key:"receiveBackend",value:function(r){this.backend=r}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var r=this,n=this.store.dispatch;function i(a){return function(){for(var l=arguments.length,s=new Array(l),c=0;c<l;c++)s[c]=arguments[c];var d=a.apply(r,s);typeof d<"u"&&n(d)}}var o=A8(this);return Object.keys(o).reduce(function(a,l){var s=o[l];return a[l]=i(s),a},{})}},{key:"dispatch",value:function(r){this.store.dispatch(r)}}]),t}();function Ie(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var A0=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),T0=function(){return Math.random().toString(36).substring(7).split("").join(".")},k0={INIT:"@@redux/INIT"+T0(),REPLACE:"@@redux/REPLACE"+T0()};function M8(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function N8(t){if(t===void 0)return"undefined";if(t===null)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(L8(t))return"date";if(B8(t))return"error";var r=R8(t);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function R8(t){return typeof t.constructor=="function"?t.constructor.name:null}function B8(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function L8(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function er(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=N8(t)),e}function j1(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Ie(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?Ie(1):"Expected the enhancer to be a function. Instead, received: '"+er(r)+"'");return r(j1)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Ie(2):"Expected the root reducer to be a function. Instead, received: '"+er(t)+"'");var i=t,o=e,a=[],l=a,s=!1;function c(){l===a&&(l=a.slice())}function d(){if(s)throw new Error(process.env.NODE_ENV==="production"?Ie(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function f(h){if(typeof h!="function")throw new Error(process.env.NODE_ENV==="production"?Ie(4):"Expected the listener to be a function. Instead, received: '"+er(h)+"'");if(s)throw new Error(process.env.NODE_ENV==="production"?Ie(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var b=!0;return c(),l.push(h),function(){if(b){if(s)throw new Error(process.env.NODE_ENV==="production"?Ie(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");b=!1,c();var C=l.indexOf(h);l.splice(C,1),a=null}}}function p(h){if(!M8(h))throw new Error(process.env.NODE_ENV==="production"?Ie(7):"Actions must be plain objects. Instead, the actual type was: '"+er(h)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof h.type>"u")throw new Error(process.env.NODE_ENV==="production"?Ie(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(s)throw new Error(process.env.NODE_ENV==="production"?Ie(9):"Reducers may not dispatch actions.");try{s=!0,o=i(o,h)}finally{s=!1}for(var b=a=l,m=0;m<b.length;m++){var C=b[m];C()}return h}function g(h){if(typeof h!="function")throw new Error(process.env.NODE_ENV==="production"?Ie(10):"Expected the nextReducer to be a function. Instead, received: '"+er(h));i=h,p({type:k0.REPLACE})}function y(){var h,b=f;return h={subscribe:function(C){if(typeof C!="object"||C===null)throw new Error(process.env.NODE_ENV==="production"?Ie(11):"Expected the observer to be an object. Instead, received: '"+er(C)+"'");function E(){C.next&&C.next(d())}E();var $=b(E);return{unsubscribe:$}}},h[A0]=function(){return this},h}return p({type:k0.INIT}),n={dispatch:p,subscribe:f,getState:d,replaceReducer:g},n[A0]=y,n}var j8=function(e,r){return e===r};function K8(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function V8(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:j8;if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(!r(t[n],e[n]))return!1;return!0}function I0(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function O0(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?I0(Object(r),!0).forEach(function(n){H8(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):I0(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function H8(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var M0={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function z8(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:M0,e=arguments.length>1?arguments[1]:void 0,r=e.payload;switch(e.type){case El:case Vi:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case Hi:return K8(t.clientOffset,r.clientOffset)?t:O0(O0({},t),{},{clientOffset:r.clientOffset});case Ui:case zi:return M0;default:return t}}var xl="dnd-core/ADD_SOURCE",Dl="dnd-core/ADD_TARGET",Sl="dnd-core/REMOVE_SOURCE",Wi="dnd-core/REMOVE_TARGET";function U8(t){return{type:xl,payload:{sourceId:t}}}function W8(t){return{type:Dl,payload:{targetId:t}}}function Z8(t){return{type:Sl,payload:{sourceId:t}}}function G8(t){return{type:Wi,payload:{targetId:t}}}function N0(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Oe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?N0(Object(r),!0).forEach(function(n){q8(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):N0(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function q8(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Y8={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function X8(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Y8,e=arguments.length>1?arguments[1]:void 0,r=e.payload;switch(e.type){case Vi:return Oe(Oe({},t),{},{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case wl:return Oe(Oe({},t),{},{isSourcePublic:!0});case Hi:return Oe(Oe({},t),{},{targetIds:r.targetIds});case Wi:return t.targetIds.indexOf(r.targetId)===-1?t:Oe(Oe({},t),{},{targetIds:l8(t.targetIds,r.targetId)});case zi:return Oe(Oe({},t),{},{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case Ui:return Oe(Oe({},t),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function J8(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case xl:case Dl:return t+1;case Sl:case Wi:return t-1;default:return t}}var di=[],Fl=[];di.__IS_NONE__=!0;Fl.__IS_ALL__=!0;function Q8(t,e){if(t===di)return!1;if(t===Fl||typeof e>"u")return!0;var r=c8(e,t);return r.length>0}function ev(){var t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Hi:break;case xl:case Dl:case Wi:case Sl:return di;case Vi:case wl:case Ui:case zi:default:return Fl}var e=t.payload,r=e.targetIds,n=r===void 0?[]:r,i=e.prevTargetIds,o=i===void 0?[]:i,a=s8(n,o),l=a.length>0||!V8(n,o);if(!l)return di;var s=o[o.length-1],c=n[n.length-1];return s!==c&&(s&&a.push(s),c&&a.push(c)),a}function tv(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return t+1}function R0(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function B0(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?R0(Object(r),!0).forEach(function(n){rv(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):R0(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function rv(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nv(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:ev(t.dirtyHandlerIds,{type:e.type,payload:B0(B0({},e.payload),{},{prevTargetIds:a8(t,"dragOperation.targetIds",[])})}),dragOffset:z8(t.dragOffset,e),refCount:J8(t.refCount,e),dragOperation:X8(t.dragOperation,e),stateId:tv(t.stateId)}}function iv(t,e){return{x:t.x+e.x,y:t.y+e.y}}function K1(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ov(t){var e=t.clientOffset,r=t.initialClientOffset,n=t.initialSourceClientOffset;return!e||!r||!n?null:K1(iv(e,n),r)}function av(t){var e=t.clientOffset,r=t.initialClientOffset;return!e||!r?null:K1(e,r)}function lv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sv(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function cv(t,e,r){return e&&sv(t.prototype,e),t}function L0(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var uv=function(){function t(e,r){lv(this,t),L0(this,"store",void 0),L0(this,"registry",void 0),this.store=e,this.registry=r}return cv(t,[{key:"subscribeToStateChange",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{handlerIds:void 0},o=i.handlerIds;J(typeof r=="function","listener must be a function."),J(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");var a=this.store.getState().stateId,l=function(){var c=n.store.getState(),d=c.stateId;try{var f=d===a||d===a+1&&!Q8(c.dirtyHandlerIds,o);f||r()}finally{a=d}};return this.store.subscribe(l)}},{key:"subscribeToOffsetChange",value:function(r){var n=this;J(typeof r=="function","listener must be a function.");var i=this.store.getState().dragOffset,o=function(){var l=n.store.getState().dragOffset;l!==i&&(i=l,r())};return this.store.subscribe(o)}},{key:"canDragSource",value:function(r){if(!r)return!1;var n=this.registry.getSource(r);return J(n,"Expected to find a valid source. sourceId=".concat(r)),this.isDragging()?!1:n.canDrag(this,r)}},{key:"canDropOnTarget",value:function(r){if(!r)return!1;var n=this.registry.getTarget(r);if(J(n,"Expected to find a valid target. targetId=".concat(r)),!this.isDragging()||this.didDrop())return!1;var i=this.registry.getTargetType(r),o=this.getItemType();return wa(i,o)&&n.canDrop(this,r)}},{key:"isDragging",value:function(){return!!this.getItemType()}},{key:"isDraggingSource",value:function(r){if(!r)return!1;var n=this.registry.getSource(r,!0);if(J(n,"Expected to find a valid source. sourceId=".concat(r)),!this.isDragging()||!this.isSourcePublic())return!1;var i=this.registry.getSourceType(r),o=this.getItemType();return i!==o?!1:n.isDragging(this,r)}},{key:"isOverTarget",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shallow:!1};if(!r)return!1;var i=n.shallow;if(!this.isDragging())return!1;var o=this.registry.getTargetType(r),a=this.getItemType();if(a&&!wa(o,a))return!1;var l=this.getTargetIds();if(!l.length)return!1;var s=l.indexOf(r);return i?s===l.length-1:s>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return!!this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return ov(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return av(this.store.getState().dragOffset)}}]),t}(),dv=0;function fv(){return dv++}function Hn(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Hn=function(r){return typeof r}:Hn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Hn(t)}function hv(t){J(typeof t.canDrag=="function","Expected canDrag to be a function."),J(typeof t.beginDrag=="function","Expected beginDrag to be a function."),J(typeof t.endDrag=="function","Expected endDrag to be a function.")}function pv(t){J(typeof t.canDrop=="function","Expected canDrop to be a function."),J(typeof t.hover=="function","Expected hover to be a function."),J(typeof t.drop=="function","Expected beginDrag to be a function.")}function xa(t,e){if(e&&Array.isArray(t)){t.forEach(function(r){return xa(r,!1)});return}J(typeof t=="string"||Hn(t)==="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const j0=typeof global<"u"?global:self,V1=j0.MutationObserver||j0.WebKitMutationObserver;function H1(t){return function(){const r=setTimeout(i,0),n=setInterval(i,50);function i(){clearTimeout(r),clearInterval(n),t()}}}function gv(t){let e=1;const r=new V1(t),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){e=-e,n.data=e}}const vv=typeof V1=="function"?gv:H1;class bv{enqueueTask(e){const{queue:r,requestFlush:n}=this;r.length||(n(),this.flushing=!0),r[r.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const r=this.index;if(this.index++,e[r].call(),this.index>this.capacity){for(let n=0,i=e.length-this.index;n<i;n++)e[n]=e[n+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=vv(this.flush),this.requestErrorThrow=H1(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class mv{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,r){this.onError=e,this.release=r,this.task=null}}class yv{create(e){const r=this.freeTasks,n=r.length?r.pop():new mv(this.onError,i=>r[r.length]=i);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}const z1=new bv,Cv=new yv(z1.registerPendingError);function Ev(t){z1.enqueueTask(Cv.create(t))}function wv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xv(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Dv(t,e,r){return e&&xv(t.prototype,e),t}function tr(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Sv(t,e){return Pv(t)||_v(t,e)||$v(t,e)||Fv()}function Fv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
89
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $v(t,e){if(t){if(typeof t=="string")return K0(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return K0(t,e)}}function K0(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _v(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,l;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(s){o=!0,l=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw l}}return n}}function Pv(t){if(Array.isArray(t))return t}function Av(t){var e=fv().toString();switch(t){case Ne.SOURCE:return"S".concat(e);case Ne.TARGET:return"T".concat(e);default:throw new Error("Unknown Handler Role: ".concat(t))}}function V0(t){switch(t[0]){case"S":return Ne.SOURCE;case"T":return Ne.TARGET;default:J(!1,"Cannot parse handler ID: ".concat(t))}}function H0(t,e){var r=t.entries(),n=!1;do{var i=r.next(),o=i.done,a=Sv(i.value,2),l=a[1];if(l===e)return!0;n=!!o}while(!n);return!1}var Tv=function(){function t(e){wv(this,t),tr(this,"types",new Map),tr(this,"dragSources",new Map),tr(this,"dropTargets",new Map),tr(this,"pinnedSourceId",null),tr(this,"pinnedSource",null),tr(this,"store",void 0),this.store=e}return Dv(t,[{key:"addSource",value:function(r,n){xa(r),hv(n);var i=this.addHandler(Ne.SOURCE,r,n);return this.store.dispatch(U8(i)),i}},{key:"addTarget",value:function(r,n){xa(r,!0),pv(n);var i=this.addHandler(Ne.TARGET,r,n);return this.store.dispatch(W8(i)),i}},{key:"containsHandler",value:function(r){return H0(this.dragSources,r)||H0(this.dropTargets,r)}},{key:"getSource",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;J(this.isSourceId(r),"Expected a valid source ID.");var i=n&&r===this.pinnedSourceId,o=i?this.pinnedSource:this.dragSources.get(r);return o}},{key:"getTarget",value:function(r){return J(this.isTargetId(r),"Expected a valid target ID."),this.dropTargets.get(r)}},{key:"getSourceType",value:function(r){return J(this.isSourceId(r),"Expected a valid source ID."),this.types.get(r)}},{key:"getTargetType",value:function(r){return J(this.isTargetId(r),"Expected a valid target ID."),this.types.get(r)}},{key:"isSourceId",value:function(r){var n=V0(r);return n===Ne.SOURCE}},{key:"isTargetId",value:function(r){var n=V0(r);return n===Ne.TARGET}},{key:"removeSource",value:function(r){var n=this;J(this.getSource(r),"Expected an existing source."),this.store.dispatch(Z8(r)),Ev(function(){n.dragSources.delete(r),n.types.delete(r)})}},{key:"removeTarget",value:function(r){J(this.getTarget(r),"Expected an existing target."),this.store.dispatch(G8(r)),this.dropTargets.delete(r),this.types.delete(r)}},{key:"pinSource",value:function(r){var n=this.getSource(r);J(n,"Expected an existing source."),this.pinnedSourceId=r,this.pinnedSource=n}},{key:"unpinSource",value:function(){J(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(r,n,i){var o=Av(r);return this.types.set(o,n),r===Ne.SOURCE?this.dragSources.set(o,i):r===Ne.TARGET&&this.dropTargets.set(o,i),o}}]),t}();function kv(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=Iv(n),o=new uv(i,new Tv(i)),a=new O8(i,o),l=t(a,e,r);return a.receiveBackend(l),a}function Iv(t){var e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return j1(nv,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}var Ov=["children"];function Mv(t,e){return Lv(t)||Bv(t,e)||Rv(t,e)||Nv()}function Nv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
90
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rv(t,e){if(t){if(typeof t=="string")return z0(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return z0(t,e)}}function z0(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Bv(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,l;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(s){o=!0,l=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw l}}return n}}function Lv(t){if(Array.isArray(t))return t}function jv(t,e){if(t==null)return{};var r=Kv(t,e),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Kv(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,o;for(o=0;o<n.length;o++)i=n[o],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}var U0=0,zn=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),Vv=u.memo(function(e){var r=e.children,n=jv(e,Ov),i=Hv(n),o=Mv(i,2),a=o[0],l=o[1];return u.useEffect(function(){if(l){var s=U1();return++U0,function(){--U0===0&&(s[zn]=null)}}},[]),v.jsx(B1.Provider,Object.assign({value:a},{children:r}),void 0)});function Hv(t){if("manager"in t){var e={dragDropManager:t.manager};return[e,!1]}var r=zv(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[r,n]}function zv(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:U1(),r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,i=e;return i[zn]||(i[zn]={dragDropManager:kv(t,e,r,n)}),i[zn]}function U1(){return typeof global<"u"?global:window}function Uv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wv(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Zv(t,e,r){return e&&Wv(t.prototype,e),t}function W0(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var To=!1,ko=!1,Gv=function(){function t(e){Uv(this,t),W0(this,"internalMonitor",void 0),W0(this,"sourceId",null),this.internalMonitor=e.getMonitor()}return Zv(t,[{key:"receiveHandlerId",value:function(r){this.sourceId=r}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){J(!To,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return To=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{To=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;J(!ko,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return ko=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{ko=!1}}},{key:"subscribeToStateChange",value:function(r,n){return this.internalMonitor.subscribeToStateChange(r,n)}},{key:"isDraggingSource",value:function(r){return this.internalMonitor.isDraggingSource(r)}},{key:"isOverTarget",value:function(r,n){return this.internalMonitor.isOverTarget(r,n)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(r){return this.internalMonitor.subscribeToOffsetChange(r)}},{key:"canDragSource",value:function(r){return this.internalMonitor.canDragSource(r)}},{key:"canDropOnTarget",value:function(r){return this.internalMonitor.canDropOnTarget(r)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),t}();function qv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Yv(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Xv(t,e,r){return e&&Yv(t.prototype,e),t}function Z0(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Io=!1,Jv=function(){function t(e){qv(this,t),Z0(this,"internalMonitor",void 0),Z0(this,"targetId",null),this.internalMonitor=e.getMonitor()}return Xv(t,[{key:"receiveHandlerId",value:function(r){this.targetId=r}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(r,n){return this.internalMonitor.subscribeToStateChange(r,n)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;J(!Io,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Io=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Io=!1}}},{key:"isOver",value:function(r){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,r):!1}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),t}();function Qv(t){if(typeof t.type!="string"){var e=t.type.displayName||t.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(e," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function e6(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!u.isValidElement(e)){var n=e;return t(n,r),n}var i=e;Qv(i);var o=r?function(a){return t(a,r)}:t;return t6(i,o)}}function W1(t){var e={};return Object.keys(t).forEach(function(r){var n=t[r];if(r.endsWith("Ref"))e[r]=t[r];else{var i=e6(n);e[r]=function(){return i}}}),e}function G0(t,e){typeof t=="function"?t(e):t.current=e}function t6(t,e){var r=t.ref;return J(typeof r!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?u.cloneElement(t,{ref:function(i){G0(r,i),G0(e,i)}}):u.cloneElement(t,{ref:e})}function Un(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Un=function(r){return typeof r}:Un=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Un(t)}function Da(t){return t!==null&&Un(t)==="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Sa(t,e,r,n){var i=void 0;if(i!==void 0)return!!i;if(t===e)return!0;if(typeof t!="object"||!t||typeof e!="object"||!e)return!1;var o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(e),s=0;s<o.length;s++){var c=o[s];if(!l(c))return!1;var d=t[c],f=e[c];if(i=void 0,i===!1||i===void 0&&d!==f)return!1}return!0}function r6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n6(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function i6(t,e,r){return e&&n6(t.prototype,e),t}function Ee(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o6=function(){function t(e){var r=this;r6(this,t),Ee(this,"hooks",W1({dragSource:function(i,o){r.clearDragSource(),r.dragSourceOptions=o||null,Da(i)?r.dragSourceRef=i:r.dragSourceNode=i,r.reconnectDragSource()},dragPreview:function(i,o){r.clearDragPreview(),r.dragPreviewOptions=o||null,Da(i)?r.dragPreviewRef=i:r.dragPreviewNode=i,r.reconnectDragPreview()}})),Ee(this,"handlerId",null),Ee(this,"dragSourceRef",null),Ee(this,"dragSourceNode",void 0),Ee(this,"dragSourceOptionsInternal",null),Ee(this,"dragSourceUnsubscribe",void 0),Ee(this,"dragPreviewRef",null),Ee(this,"dragPreviewNode",void 0),Ee(this,"dragPreviewOptionsInternal",null),Ee(this,"dragPreviewUnsubscribe",void 0),Ee(this,"lastConnectedHandlerId",null),Ee(this,"lastConnectedDragSource",null),Ee(this,"lastConnectedDragSourceOptions",null),Ee(this,"lastConnectedDragPreview",null),Ee(this,"lastConnectedDragPreviewOptions",null),Ee(this,"backend",void 0),this.backend=e}return i6(t,[{key:"receiveHandlerId",value:function(r){this.handlerId!==r&&(this.handlerId=r,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(r){this.dragSourceOptionsInternal=r}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(r){this.dragPreviewOptionsInternal=r}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var r=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();if(n&&this.disconnectDragSource(),!!this.handlerId){if(!r){this.lastConnectedDragSource=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=r,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,r,this.dragSourceOptions))}}},{key:"reconnectDragPreview",value:function(){var r=this.dragPreview,n=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(n&&this.disconnectDragPreview(),!!this.handlerId){if(!r){this.lastConnectedDragPreview=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=r,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,r,this.dragPreviewOptions))}}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!Sa(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!Sa(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}}]),t}();function a6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l6(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s6(t,e,r){return e&&l6(t.prototype,e),t}function Ze(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var c6=function(){function t(e){var r=this;a6(this,t),Ze(this,"hooks",W1({dropTarget:function(i,o){r.clearDropTarget(),r.dropTargetOptions=o,Da(i)?r.dropTargetRef=i:r.dropTargetNode=i,r.reconnect()}})),Ze(this,"handlerId",null),Ze(this,"dropTargetRef",null),Ze(this,"dropTargetNode",void 0),Ze(this,"dropTargetOptionsInternal",null),Ze(this,"unsubscribeDropTarget",void 0),Ze(this,"lastConnectedHandlerId",null),Ze(this,"lastConnectedDropTarget",null),Ze(this,"lastConnectedDropTargetOptions",null),Ze(this,"backend",void 0),this.backend=e}return s6(t,[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var r=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();r&&this.disconnectDropTarget();var n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}},{key:"receiveHandlerId",value:function(r){r!==this.handlerId&&(this.handlerId=r,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(r){this.dropTargetOptionsInternal=r}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!Sa(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}}]),t}();function u6(t,e,r){var n=r.getRegistry(),i=n.addTarget(t,e);return[i,function(){return n.removeTarget(i)}]}function d6(t,e,r){var n=r.getRegistry(),i=n.addSource(t,e);return[i,function(){return n.removeSource(i)}]}var Rt=typeof window<"u"?u.useLayoutEffect:u.useEffect;function Wn(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Wn=function(r){return typeof r}:Wn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Wn(t)}function f6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h6(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function p6(t,e,r){return e&&h6(t.prototype,e),t}function Oo(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var g6=function(){function t(e,r,n){f6(this,t),Oo(this,"spec",void 0),Oo(this,"monitor",void 0),Oo(this,"connector",void 0),this.spec=e,this.monitor=r,this.connector=n}return p6(t,[{key:"beginDrag",value:function(){var r,n=this.spec,i=this.monitor,o=null;return Wn(n.item)==="object"?o=n.item:typeof n.item=="function"?o=n.item(i):o={},(r=o)!==null&&r!==void 0?r:null}},{key:"canDrag",value:function(){var r=this.spec,n=this.monitor;return typeof r.canDrag=="boolean"?r.canDrag:typeof r.canDrag=="function"?r.canDrag(n):!0}},{key:"isDragging",value:function(r,n){var i=this.spec,o=this.monitor,a=i.isDragging;return a?a(o):n===r.getSourceId()}},{key:"endDrag",value:function(){var r=this.spec,n=this.monitor,i=this.connector,o=r.end;o&&o(n.getItem(),n),i.reconnect()}}]),t}();function v6(t,e,r){var n=u.useMemo(function(){return new g6(t,e,r)},[e,r]);return u.useEffect(function(){n.spec=t},[t]),n}function Ht(){var t=u.useContext(B1),e=t.dragDropManager;return J(e!=null,"Expected drag drop context"),e}function b6(t){return u.useMemo(function(){var e=t.type;return J(e!=null,"spec.type must be defined"),e},[t])}function m6(t,e){return w6(t)||E6(t,e)||C6(t,e)||y6()}function y6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
91
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C6(t,e){if(t){if(typeof t=="string")return q0(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return q0(t,e)}}function q0(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function E6(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,l;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(s){o=!0,l=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw l}}return n}}function w6(t){if(Array.isArray(t))return t}function x6(t,e,r){var n=Ht(),i=v6(t,e,r),o=b6(t);Rt(function(){if(o!=null){var l=d6(o,i,n),s=m6(l,2),c=s[0],d=s[1];return e.receiveHandlerId(c),r.receiveHandlerId(c),d}},[n,e,r,i,o])}function D6(t){return _6(t)||$6(t)||F6(t)||S6()}function S6(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
92
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function F6(t,e){if(t){if(typeof t=="string")return Fa(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fa(t,e)}}function $6(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function _6(t){if(Array.isArray(t))return Fa(t)}function Fa(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Z1(t,e){var r=D6(e||[]);return e==null&&typeof t!="function"&&r.push(t),u.useMemo(function(){return typeof t=="function"?t():t},r)}function P6(){var t=Ht();return u.useMemo(function(){return new Gv(t)},[t])}function A6(t,e){var r=Ht(),n=u.useMemo(function(){return new o6(r.getBackend())},[r]);return Rt(function(){return n.dragSourceOptions=t||null,n.reconnect(),function(){return n.disconnectDragSource()}},[n,t]),Rt(function(){return n.dragPreviewOptions=e||null,n.reconnect(),function(){return n.disconnectDragPreview()}},[n,e]),n}var Mo,Y0;function T6(){return Y0||(Y0=1,Mo=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!t(e[a],r[a]))return!1}return!0}return e!==e&&r!==r}),Mo}var k6=T6();const I6=Pf(k6);function O6(t,e){return B6(t)||R6(t,e)||N6(t,e)||M6()}function M6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
93
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function N6(t,e){if(t){if(typeof t=="string")return X0(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return X0(t,e)}}function X0(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function R6(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,l;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(s){o=!0,l=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw l}}return n}}function B6(t){if(Array.isArray(t))return t}function G1(t,e,r){var n=u.useState(function(){return e(t)}),i=O6(n,2),o=i[0],a=i[1],l=u.useCallback(function(){var s=e(t);I6(o,s)||(a(s),r&&r())},[o,t,r]);return Rt(l),[o,l]}function L6(t,e){return H6(t)||V6(t,e)||K6(t,e)||j6()}function j6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
94
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K6(t,e){if(t){if(typeof t=="string")return J0(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return J0(t,e)}}function J0(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function V6(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,l;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(s){o=!0,l=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw l}}return n}}function H6(t){if(Array.isArray(t))return t}function z6(t,e,r){var n=G1(t,e,r),i=L6(n,2),o=i[0],a=i[1];return Rt(function(){var s=t.getHandlerId();if(s!=null)return t.subscribeToStateChange(a,{handlerIds:[s]})},[t,a]),o}function q1(t,e,r){return z6(e,t||function(){return{}},function(){return r.reconnect()})}function U6(t){return u.useMemo(function(){return t.hooks.dragSource()},[t])}function W6(t){return u.useMemo(function(){return t.hooks.dragPreview()},[t])}function Z6(t,e){var r=Z1(t,e);J(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");var n=P6(),i=A6(r.options,r.previewOptions);return x6(r,n,i),[q1(r.collect,n,i),U6(i),W6(i)]}function G6(t){var e=t.accept;return u.useMemo(function(){return J(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]},[e])}function q6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Y6(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function X6(t,e,r){return e&&Y6(t.prototype,e),t}function Q0(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var J6=function(){function t(e,r){q6(this,t),Q0(this,"spec",void 0),Q0(this,"monitor",void 0),this.spec=e,this.monitor=r}return X6(t,[{key:"canDrop",value:function(){var r=this.spec,n=this.monitor;return r.canDrop?r.canDrop(n.getItem(),n):!0}},{key:"hover",value:function(){var r=this.spec,n=this.monitor;r.hover&&r.hover(n.getItem(),n)}},{key:"drop",value:function(){var r=this.spec,n=this.monitor;if(r.drop)return r.drop(n.getItem(),n)}}]),t}();function Q6(t,e){var r=u.useMemo(function(){return new J6(t,e)},[e]);return u.useEffect(function(){r.spec=t},[t]),r}function eb(t,e){return ib(t)||nb(t,e)||rb(t,e)||tb()}function tb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
95
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rb(t,e){if(t){if(typeof t=="string")return e2(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e2(t,e)}}function e2(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function nb(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,l;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(s){o=!0,l=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw l}}return n}}function ib(t){if(Array.isArray(t))return t}function ob(t,e,r){var n=Ht(),i=Q6(t,e),o=G6(t);Rt(function(){var l=u6(o,i,n),s=eb(l,2),c=s[0],d=s[1];return e.receiveHandlerId(c),r.receiveHandlerId(c),d},[n,e,i,r,o.map(function(a){return a.toString()}).join("|")])}function ab(){var t=Ht();return u.useMemo(function(){return new Jv(t)},[t])}function lb(t){var e=Ht(),r=u.useMemo(function(){return new c6(e.getBackend())},[e]);return Rt(function(){return r.dropTargetOptions=t||null,r.reconnect(),function(){return r.disconnectDropTarget()}},[t]),r}function sb(t){return u.useMemo(function(){return t.hooks.dropTarget()},[t])}function Y1(t,e){var r=Z1(t,e),n=ab(),i=lb(r.options);return ob(r,n,i),[q1(r.collect,n,i),sb(i)]}function cb(t,e){return hb(t)||fb(t,e)||db(t,e)||ub()}function ub(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
96
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function db(t,e){if(t){if(typeof t=="string")return t2(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t2(t,e)}}function t2(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function fb(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,l;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(s){o=!0,l=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw l}}return n}}function hb(t){if(Array.isArray(t))return t}function pb(t){var e=Ht(),r=e.getMonitor(),n=G1(r,t),i=cb(n,2),o=i[0],a=i[1];return u.useEffect(function(){return r.subscribeToOffsetChange(a)}),u.useEffect(function(){return r.subscribeToStateChange(a)}),o}function X1(t){var e=null,r=function(){return e==null&&(e=t()),e};return r}function gb(t,e){return t.filter(function(r){return r!==e})}function vb(t,e){var r=new Set,n=function(a){return r.add(a)};t.forEach(n),e.forEach(n);var i=[];return r.forEach(function(o){return i.push(o)}),i}function bb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mb(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function yb(t,e,r){return e&&mb(t.prototype,e),t}function r2(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Cb=function(){function t(e){bb(this,t),r2(this,"entered",[]),r2(this,"isNodeInDocument",void 0),this.isNodeInDocument=e}return yb(t,[{key:"enter",value:function(r){var n=this,i=this.entered.length,o=function(l){return n.isNodeInDocument(l)&&(!l.contains||l.contains(r))};return this.entered=vb(this.entered.filter(o),[r]),i===0&&this.entered.length>0}},{key:"leave",value:function(r){var n=this.entered.length;return this.entered=gb(this.entered.filter(this.isNodeInDocument),r),n>0&&this.entered.length===0}},{key:"reset",value:function(){this.entered=[]}}]),t}(),Eb=X1(function(){return/firefox/i.test(navigator.userAgent)}),J1=X1(function(){return!!window.safari});function wb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xb(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Db(t,e,r){return e&&xb(t.prototype,e),t}function Br(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var n2=function(){function t(e,r){wb(this,t),Br(this,"xs",void 0),Br(this,"ys",void 0),Br(this,"c1s",void 0),Br(this,"c2s",void 0),Br(this,"c3s",void 0);for(var n=e.length,i=[],o=0;o<n;o++)i.push(o);i.sort(function(N,K){return e[N]<e[K]?-1:1});for(var a=[],l=[],s,c,d=0;d<n-1;d++)s=e[d+1]-e[d],c=r[d+1]-r[d],a.push(s),l.push(c/s);for(var f=[l[0]],p=0;p<a.length-1;p++){var g=l[p],y=l[p+1];if(g*y<=0)f.push(0);else{s=a[p];var h=a[p+1],b=s+h;f.push(3*b/((b+h)/g+(b+s)/y))}}f.push(l[l.length-1]);for(var m=[],C=[],E,$=0;$<f.length-1;$++){E=l[$];var w=f[$],x=1/a[$],S=w+f[$+1]-E-E;m.push((E-w-S)*x),C.push(S*x*x)}this.xs=e,this.ys=r,this.c1s=f,this.c2s=m,this.c3s=C}return Db(t,[{key:"interpolate",value:function(r){var n=this.xs,i=this.ys,o=this.c1s,a=this.c2s,l=this.c3s,s=n.length-1;if(r===n[s])return i[s];for(var c=0,d=l.length-1,f;c<=d;){f=Math.floor(.5*(c+d));var p=n[f];if(p<r)c=f+1;else if(p>r)d=f-1;else return i[f]}s=Math.max(0,d);var g=r-n[s],y=g*g;return i[s]+o[s]*g+a[s]*y+l[s]*g*y}}]),t}(),Sb=1;function Q1(t){var e=t.nodeType===Sb?t:t.parentElement;if(!e)return null;var r=e.getBoundingClientRect(),n=r.top,i=r.left;return{x:i,y:n}}function Pn(t){return{x:t.clientX,y:t.clientY}}function Fb(t){var e;return t.nodeName==="IMG"&&(Eb()||!((e=document.documentElement)!==null&&e!==void 0&&e.contains(t)))}function $b(t,e,r,n){var i=t?e.width:r,o=t?e.height:n;return J1()&&t&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function _b(t,e,r,n,i){var o=Fb(e),a=o?t:e,l=Q1(a),s={x:r.x-l.x,y:r.y-l.y},c=t.offsetWidth,d=t.offsetHeight,f=n.anchorX,p=n.anchorY,g=$b(o,e,c,d),y=g.dragPreviewWidth,h=g.dragPreviewHeight,b=function(){var S=new n2([0,.5,1],[s.y,s.y/d*h,s.y+h-d]),N=S.interpolate(p);return J1()&&o&&(N+=(window.devicePixelRatio-1)*h),N},m=function(){var S=new n2([0,.5,1],[s.x,s.x/c*y,s.x+y-c]);return S.interpolate(f)},C=i.offsetX,E=i.offsetY,$=C===0||C,w=E===0||E;return{x:$?C:m(),y:w?E:b()}}var ef="__NATIVE_FILE__",tf="__NATIVE_URL__",rf="__NATIVE_TEXT__",nf="__NATIVE_HTML__";const i2=Object.freeze(Object.defineProperty({__proto__:null,FILE:ef,HTML:nf,TEXT:rf,URL:tf},Symbol.toStringTag,{value:"Module"}));function No(t,e,r){var n=e.reduce(function(i,o){return i||t.getData(o)},"");return n??r}var rr;function An(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var $a=(rr={},An(rr,ef,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items},dataTransfer:function(e){return e}},matchesTypes:["Files"]}),An(rr,nf,{exposeProperties:{html:function(e,r){return No(e,r,"")},dataTransfer:function(e){return e}},matchesTypes:["Html","text/html"]}),An(rr,tf,{exposeProperties:{urls:function(e,r){return No(e,r,"").split(`
97
- `)},dataTransfer:function(e){return e}},matchesTypes:["Url","text/uri-list"]}),An(rr,rf,{exposeProperties:{text:function(e,r){return No(e,r,"")},dataTransfer:function(e){return e}},matchesTypes:["Text","text/plain"]}),rr);function Pb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ab(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Tb(t,e,r){return e&&Ab(t.prototype,e),t}function o2(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var kb=function(){function t(e){Pb(this,t),o2(this,"item",void 0),o2(this,"config",void 0),this.config=e,this.item={},this.initializeExposedProperties()}return Tb(t,[{key:"initializeExposedProperties",value:function(){var r=this;Object.keys(this.config.exposeProperties).forEach(function(n){Object.defineProperty(r.item,n,{configurable:!0,enumerable:!0,get:function(){return console.warn(`Browser doesn't allow reading "`.concat(n,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(r){var n=this;if(r){var i={};Object.keys(this.config.exposeProperties).forEach(function(o){i[o]={value:n.config.exposeProperties[o](r,n.config.matchesTypes),configurable:!0,enumerable:!0}}),Object.defineProperties(this.item,i)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(r,n){return n===r.getSourceId()}},{key:"endDrag",value:function(){}}]),t}();function Ib(t,e){var r=new kb($a[t]);return r.loadDataTransfer(e),r}function Ro(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys($a).filter(function(r){var n=$a[r].matchesTypes;return n.some(function(i){return e.indexOf(i)>-1})})[0]||null}function Ob(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Mb(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Nb(t,e,r){return e&&Mb(t.prototype,e),t}function Bo(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Rb=function(){function t(e,r){Ob(this,t),Bo(this,"ownerDocument",null),Bo(this,"globalContext",void 0),Bo(this,"optionsArgs",void 0),this.globalContext=e,this.optionsArgs=r}return Nb(t,[{key:"window",get:function(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}},{key:"document",get:function(){var r;return(r=this.globalContext)!==null&&r!==void 0&&r.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var r;return((r=this.optionsArgs)===null||r===void 0?void 0:r.rootElement)||this.window}}]),t}();function a2(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function l2(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?a2(Object(r),!0).forEach(function(n){ee(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a2(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Bb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Lb(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function jb(t,e,r){return e&&Lb(t.prototype,e),t}function ee(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Kb=function(){function t(e,r,n){var i=this;Bb(this,t),ee(this,"options",void 0),ee(this,"actions",void 0),ee(this,"monitor",void 0),ee(this,"registry",void 0),ee(this,"enterLeaveCounter",void 0),ee(this,"sourcePreviewNodes",new Map),ee(this,"sourcePreviewNodeOptions",new Map),ee(this,"sourceNodes",new Map),ee(this,"sourceNodeOptions",new Map),ee(this,"dragStartSourceIds",null),ee(this,"dropTargetIds",[]),ee(this,"dragEnterTargetIds",[]),ee(this,"currentNativeSource",null),ee(this,"currentNativeHandle",null),ee(this,"currentDragSourceNode",null),ee(this,"altKeyPressed",!1),ee(this,"mouseMoveTimeoutTimer",null),ee(this,"asyncEndDragFrameId",null),ee(this,"dragOverTargetIds",null),ee(this,"lastClientOffset",null),ee(this,"hoverRafId",null),ee(this,"getSourceClientOffset",function(o){var a=i.sourceNodes.get(o);return a&&Q1(a)||null}),ee(this,"endDragNativeItem",function(){i.isDraggingNativeItem()&&(i.actions.endDrag(),i.currentNativeHandle&&i.registry.removeSource(i.currentNativeHandle),i.currentNativeHandle=null,i.currentNativeSource=null)}),ee(this,"isNodeInDocument",function(o){return!!(o&&i.document&&i.document.body&&i.document.body.contains(o))}),ee(this,"endDragIfSourceWasRemovedFromDOM",function(){var o=i.currentDragSourceNode;o==null||i.isNodeInDocument(o)||i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),ee(this,"handleTopDragStartCapture",function(){i.clearCurrentDragSourceNode(),i.dragStartSourceIds=[]}),ee(this,"handleTopDragStart",function(o){if(!o.defaultPrevented){var a=i.dragStartSourceIds;i.dragStartSourceIds=null;var l=Pn(o);i.monitor.isDragging()&&i.actions.endDrag(),i.actions.beginDrag(a||[],{publishSource:!1,getSourceClientOffset:i.getSourceClientOffset,clientOffset:l});var s=o.dataTransfer,c=Ro(s);if(i.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){var d=i.monitor.getSourceId(),f=i.sourceNodes.get(d),p=i.sourcePreviewNodes.get(d)||f;if(p){var g=i.getCurrentSourcePreviewNodeOptions(),y=g.anchorX,h=g.anchorY,b=g.offsetX,m=g.offsetY,C={anchorX:y,anchorY:h},E={offsetX:b,offsetY:m},$=_b(f,p,l,C,E);s.setDragImage(p,$.x,$.y)}}try{s==null||s.setData("application/json",{})}catch{}i.setCurrentDragSourceNode(o.target);var w=i.getCurrentSourcePreviewNodeOptions(),x=w.captureDraggingState;x?i.actions.publishDragSource():setTimeout(function(){return i.actions.publishDragSource()},0)}else if(c)i.beginDragNativeItem(c);else{if(s&&!s.types&&(o.target&&!o.target.hasAttribute||!o.target.hasAttribute("draggable")))return;o.preventDefault()}}}),ee(this,"handleTopDragEndCapture",function(){i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),ee(this,"handleTopDragEnterCapture",function(o){i.dragEnterTargetIds=[];var a=i.enterLeaveCounter.enter(o.target);if(!(!a||i.monitor.isDragging())){var l=o.dataTransfer,s=Ro(l);s&&i.beginDragNativeItem(s,l)}}),ee(this,"handleTopDragEnter",function(o){var a=i.dragEnterTargetIds;if(i.dragEnterTargetIds=[],!!i.monitor.isDragging()){i.altKeyPressed=o.altKey,a.length>0&&i.actions.hover(a,{clientOffset:Pn(o)});var l=a.some(function(s){return i.monitor.canDropOnTarget(s)});l&&(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=i.getCurrentDropEffect()))}}),ee(this,"handleTopDragOverCapture",function(){i.dragOverTargetIds=[]}),ee(this,"handleTopDragOver",function(o){var a=i.dragOverTargetIds;if(i.dragOverTargetIds=[],!i.monitor.isDragging()){o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none");return}i.altKeyPressed=o.altKey,i.lastClientOffset=Pn(o),i.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(i.hoverRafId=requestAnimationFrame(function(){i.monitor.isDragging()&&i.actions.hover(a||[],{clientOffset:i.lastClientOffset}),i.hoverRafId=null}));var l=(a||[]).some(function(s){return i.monitor.canDropOnTarget(s)});l?(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=i.getCurrentDropEffect())):i.isDraggingNativeItem()?o.preventDefault():(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none"))}),ee(this,"handleTopDragLeaveCapture",function(o){i.isDraggingNativeItem()&&o.preventDefault();var a=i.enterLeaveCounter.leave(o.target);a&&i.isDraggingNativeItem()&&setTimeout(function(){return i.endDragNativeItem()},0)}),ee(this,"handleTopDropCapture",function(o){if(i.dropTargetIds=[],i.isDraggingNativeItem()){var a;o.preventDefault(),(a=i.currentNativeSource)===null||a===void 0||a.loadDataTransfer(o.dataTransfer)}else Ro(o.dataTransfer)&&o.preventDefault();i.enterLeaveCounter.reset()}),ee(this,"handleTopDrop",function(o){var a=i.dropTargetIds;i.dropTargetIds=[],i.actions.hover(a,{clientOffset:Pn(o)}),i.actions.drop({dropEffect:i.getCurrentDropEffect()}),i.isDraggingNativeItem()?i.endDragNativeItem():i.monitor.isDragging()&&i.actions.endDrag()}),ee(this,"handleSelectStart",function(o){var a=o.target;typeof a.dragDrop=="function"&&(a.tagName==="INPUT"||a.tagName==="SELECT"||a.tagName==="TEXTAREA"||a.isContentEditable||(o.preventDefault(),a.dragDrop()))}),this.options=new Rb(r,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Cb(this.isNodeInDocument)}return jb(t,[{key:"profile",value:function(){var r,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((r=this.dragStartSourceIds)===null||r===void 0?void 0:r.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var r=this.rootElement;if(r!==void 0){if(r.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");r.__isReactDndBackendSetUp=!0,this.addEventListeners(r)}}},{key:"teardown",value:function(){var r=this.rootElement;if(r!==void 0&&(r.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}},{key:"connectDragPreview",value:function(r,n,i){var o=this;return this.sourcePreviewNodeOptions.set(r,i),this.sourcePreviewNodes.set(r,n),function(){o.sourcePreviewNodes.delete(r),o.sourcePreviewNodeOptions.delete(r)}}},{key:"connectDragSource",value:function(r,n,i){var o=this;this.sourceNodes.set(r,n),this.sourceNodeOptions.set(r,i);var a=function(c){return o.handleDragStart(c,r)},l=function(c){return o.handleSelectStart(c)};return n.setAttribute("draggable","true"),n.addEventListener("dragstart",a),n.addEventListener("selectstart",l),function(){o.sourceNodes.delete(r),o.sourceNodeOptions.delete(r),n.removeEventListener("dragstart",a),n.removeEventListener("selectstart",l),n.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(r,n){var i=this,o=function(c){return i.handleDragEnter(c,r)},a=function(c){return i.handleDragOver(c,r)},l=function(c){return i.handleDrop(c,r)};return n.addEventListener("dragenter",o),n.addEventListener("dragover",a),n.addEventListener("drop",l),function(){n.removeEventListener("dragenter",o),n.removeEventListener("dragover",a),n.removeEventListener("drop",l)}}},{key:"addEventListeners",value:function(r){r.addEventListener&&(r.addEventListener("dragstart",this.handleTopDragStart),r.addEventListener("dragstart",this.handleTopDragStartCapture,!0),r.addEventListener("dragend",this.handleTopDragEndCapture,!0),r.addEventListener("dragenter",this.handleTopDragEnter),r.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),r.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),r.addEventListener("dragover",this.handleTopDragOver),r.addEventListener("dragover",this.handleTopDragOverCapture,!0),r.addEventListener("drop",this.handleTopDrop),r.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(r){r.removeEventListener&&(r.removeEventListener("dragstart",this.handleTopDragStart),r.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),r.removeEventListener("dragend",this.handleTopDragEndCapture,!0),r.removeEventListener("dragenter",this.handleTopDragEnter),r.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),r.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),r.removeEventListener("dragover",this.handleTopDragOver),r.removeEventListener("dragover",this.handleTopDragOverCapture,!0),r.removeEventListener("drop",this.handleTopDrop),r.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var r=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(r);return l2({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var r=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(r);return l2({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}},{key:"isDraggingNativeItem",value:function(){var r=this.monitor.getItemType();return Object.keys(i2).some(function(n){return i2[n]===r})}},{key:"beginDragNativeItem",value:function(r,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=Ib(r,n),this.currentNativeHandle=this.registry.addSource(r,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(r){var n=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=r;var i=1e3;this.mouseMoveTimeoutTimer=setTimeout(function(){var o;return(o=n.rootElement)===null||o===void 0?void 0:o.addEventListener("mousemove",n.endDragIfSourceWasRemovedFromDOM,!0)},i)}},{key:"clearCurrentDragSourceNode",value:function(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var r;(r=this.window)===null||r===void 0||r.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}},{key:"handleDragStart",value:function(r,n){r.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}},{key:"handleDragEnter",value:function(r,n){this.dragEnterTargetIds.unshift(n)}},{key:"handleDragOver",value:function(r,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}},{key:"handleDrop",value:function(r,n){this.dropTargetIds.unshift(n)}}]),t}(),Tn;function Vb(){return Tn||(Tn=new Image,Tn.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),Tn}var Hb=function(e,r,n){return new Kb(e,r,n)};function zb(t){const e=ke(),r=e.selectedIds,[n,i,o]=Z6(()=>({canDrag:()=>t.isDraggable,type:"NODE",item:()=>{const a=e.isSelected(t.id)?Array.from(r):[t.id];return e.dispatch(wr.dragStart(t.id,a)),{id:t.id,dragIds:a}},end:()=>{e.hideCursor(),e.dispatch(wr.dragEnd())}}),[r,t]);return u.useEffect(()=>{o(Vb())},[o]),i}function Ub(t,e){const r=t.getBoundingClientRect(),n=e.x-Math.round(r.x),i=e.y-Math.round(r.y),o=r.height,a=i<o/2,l=!a,s=o/4,c=i>s&&i<o-s;return{x:n,inTopHalf:a,inBottomHalf:l,inMiddle:c,atTop:!c&&a,atBottom:!c&&l}}function Wb(t,e,r,n){return t?t.isInternal?n.atTop?[e,t]:n.inMiddle?[t,t]:[t,r]:n.inTopHalf?[e,t]:[t,r]:[e,null]}function kn(t,e){return{parentId:t||null,index:e}}function nr(t,e){return{type:"line",index:t,level:e}}function Zb(t){return{type:"highlight",id:t}}function Lo(t,e){var r;let n=t;for(;n.parent&&n.level>e;)n=n.parent;const i=((r=n.parent)===null||r===void 0?void 0:r.id)||null,o=_1(n)+1;return{parentId:i,index:o}}function of(t){var e;const r=Ub(t.element,t.offset),n=t.indent,i=Math.round(Math.max(0,r.x-n)/n),{node:o,nextNode:a,prevNode:l}=t,[s,c]=Wb(o,l,a,r);if(o&&o.isInternal&&r.inMiddle)return{drop:kn(o.id,null),cursor:Zb(o.id)};if(!s)return{drop:kn((e=c==null?void 0:c.parent)===null||e===void 0?void 0:e.id,0),cursor:nr(0,0)};if(D1(s)){const d=Ln(i,(c==null?void 0:c.level)||0,s.level);return{drop:Lo(s,d),cursor:nr(s.rowIndex+1,d)}}if(S1(s)){const d=Ln(i,(c==null?void 0:c.level)||0,s.level);return{drop:Lo(s,d),cursor:nr(s.rowIndex+1,d)}}if(F1(s)){const d=Ln(i,0,s.level+1);return d>s.level?{drop:kn(s.id,0),cursor:nr(s.rowIndex+1,d)}:{drop:Lo(s,d),cursor:nr(s.rowIndex+1,d)}}return{drop:kn(s==null?void 0:s.id,0),cursor:nr(s.rowIndex+1,s.level+1)}}function Gb(t,e){const r=ke(),[n,i]=Y1(()=>({accept:"NODE",canDrop:()=>r.canDrop(),hover:(o,a)=>{const l=a.getClientOffset();if(!t.current||!l)return;const{cursor:s,drop:c}=of({element:t.current,offset:l,indent:r.indent,node:e,prevNode:e.prev,nextNode:e.next});c&&r.dispatch(wr.hovering(c.parentId,c.index)),a.canDrop()?s&&r.showCursor(s):r.hideCursor()},drop:(o,a)=>{if(!a.canDrop())return null;let{parentId:l,index:s,dragIds:c}=r.state.dnd;I1(r.props.onMove,{dragIds:c,parentId:l===ln?null:l,index:s===null?0:s,dragNodes:r.dragNodes,parentNode:r.get(l)}),r.open(l)}}),[e,t.current,r.props]);return i}function qb(t){const e=ke(),r=e.at(t);if(!r)throw new Error(`Could not find node for index: ${t}`);return u.useMemo(()=>{const n=r.clone();return e.visibleNodes[t]=n,n},[...Object.values(r.state),r])}const Yb=u.memo(function({index:e,style:r}){x1(),vg();const n=ke(),i=qb(e),o=u.useRef(null),a=zb(i),l=Gb(o,i),s=u.useCallback(h=>{o.current=h,l(h)},[l]),c=n.indent*i.level,d=u.useMemo(()=>({paddingLeft:c}),[c]),f=u.useMemo(()=>{var h,b;return Object.assign(Object.assign({},r),{top:parseFloat(r.top)+((b=(h=n.props.padding)!==null&&h!==void 0?h:n.props.paddingTop)!==null&&b!==void 0?b:0)})},[r,n.props.padding,n.props.paddingTop]),p={role:"treeitem","aria-level":i.level+1,"aria-selected":i.isSelected,"aria-expanded":i.isOpen,style:f,tabIndex:-1,className:n.props.rowClassName};u.useEffect(()=>{var h;!i.isEditing&&i.isFocused&&((h=o.current)===null||h===void 0||h.focus({preventScroll:!0}))},[i.isEditing,i.isFocused,o.current]);const g=n.renderNode,y=n.renderRow;return v.jsx(y,{node:i,innerRef:s,attrs:p,children:v.jsx(g,{node:i,tree:n,style:d,dragHandle:a})})});let jo="",s2=null;function af(){x1();const t=ke();return v.jsx("div",{role:"tree",style:{height:t.height,width:t.width,minHeight:0,minWidth:0},onContextMenu:t.props.onContextMenu,onClick:t.props.onClick,tabIndex:0,onFocus:e=>{e.currentTarget.contains(e.relatedTarget)||t.onFocus()},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||t.onBlur()},onKeyDown:e=>{var r;if(t.isEditing)return;if(e.key==="Backspace"){if(!t.props.onDelete)return;const i=Array.from(t.selectedIds);if(i.length>1){let o=t.mostRecentNode;for(;o&&o.isSelected;)o=o.nextSibling;o||(o=t.lastNode),t.focus(o,{scroll:!1}),t.delete(Array.from(i))}else{const o=t.focusedNode;if(o){const a=o.nextSibling,l=o.parent;t.focus(a||l,{scroll:!1}),t.delete(o)}}return}if(e.key==="Tab"&&!e.shiftKey){e.preventDefault(),P1(e.currentTarget);return}if(e.key==="Tab"&&e.shiftKey){e.preventDefault(),A1(e.currentTarget);return}if(e.key==="ArrowDown"){e.preventDefault();const i=t.nextNode;if(e.metaKey){t.select(t.focusedNode),t.activate(t.focusedNode);return}else if(!e.shiftKey||t.props.disableMultiSelection){t.focus(i);return}else{if(!i)return;const o=t.focusedNode;o?o.isSelected?t.selectContiguous(i):t.selectMulti(i):t.focus(t.firstNode);return}}if(e.key==="ArrowUp"){e.preventDefault();const i=t.prevNode;if(!e.shiftKey||t.props.disableMultiSelection){t.focus(i);return}else{if(!i)return;const o=t.focusedNode;o?o.isSelected?t.selectContiguous(i):t.selectMulti(i):t.focus(t.lastNode);return}}if(e.key==="ArrowRight"){const i=t.focusedNode;if(!i)return;i.isInternal&&i.isOpen?t.focus(t.nextNode):i.isInternal&&t.open(i.id);return}if(e.key==="ArrowLeft"){const i=t.focusedNode;if(!i||i.isRoot)return;i.isInternal&&i.isOpen?t.close(i.id):!((r=i.parent)===null||r===void 0)&&r.isRoot||t.focus(i.parent);return}if(e.key==="a"&&e.metaKey&&!t.props.disableMultiSelection){e.preventDefault(),t.selectAll();return}if(e.key==="a"&&!e.metaKey&&t.props.onCreate){t.createLeaf();return}if(e.key==="A"&&!e.metaKey){if(!t.props.onCreate)return;t.createInternal();return}if(e.key==="Home"){e.preventDefault(),t.focus(t.firstNode);return}if(e.key==="End"){e.preventDefault(),t.focus(t.lastNode);return}if(e.key==="Enter"){const i=t.focusedNode;if(!i||!i.isEditable||!t.props.onRename)return;setTimeout(()=>{i&&t.edit(i)});return}if(e.key===" "){e.preventDefault();const i=t.focusedNode;if(!i)return;i.isLeaf?(i.select(),i.activate()):i.toggle();return}if(e.key==="*"){const i=t.focusedNode;if(!i)return;t.openSiblings(i);return}if(e.key==="PageUp"){e.preventDefault(),t.pageUp();return}e.key==="PageDown"&&(e.preventDefault(),t.pageDown()),clearTimeout(s2),jo+=e.key,s2=setTimeout(()=>{jo=""},600);const n=t.visibleNodes.find(i=>{const o=i.data.name;return typeof o=="string"?o.toLowerCase().startsWith(jo):!1});n&&t.focus(n.id)},children:v.jsx(Qg,{className:t.props.className,outerRef:t.listEl,itemCount:t.visibleNodes.length,height:t.height,width:t.width,itemSize:t.rowHeight,overscanCount:t.overscanCount,itemKey:e=>{var r;return((r=t.visibleNodes[e])===null||r===void 0?void 0:r.id)||e},outerElementType:r8,innerElementType:o8,onScroll:t.props.onScroll,onItemsRendered:t.onItemsRendered.bind(t),ref:t.list,children:Yb})})}function c2(t){return t.isFiltered?Jb(t.root,t.isMatch.bind(t)):Xb(t.root)}function Xb(t){const e=[];function r(n){var i;n.level>=0&&e.push(n),n.isOpen&&((i=n.children)===null||i===void 0||i.forEach(r))}return r(t),e.forEach(lf),e}function Jb(t,e){const r={},n=[];function i(a){if(!a.isRoot&&e(a)){r[a.id]=!0;let s=a.parent;for(;s;)r[s.id]=!0,s=s.parent}if(a.children)for(let s of a.children)i(s)}function o(a){var l;a.level>=0&&r[a.id]&&n.push(a),a.isOpen&&((l=a.children)===null||l===void 0||l.forEach(o))}return i(t),o(t),n.forEach(lf),n}function lf(t,e){t.rowIndex=e}const u2=t=>t.reduce((e,r,n)=>(e[r.id]=n,e),{});var Ko=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function l(d){try{c(n.next(d))}catch(f){a(f)}}function s(d){try{c(n.throw(d))}catch(f){a(f)}}function c(d){d.done?o(d.value):i(d.value).then(l,s)}c((n=n.apply(t,e||[])).next())})};const{safeRun:ye,identify:Je,identifyNull:je}=wg;class vr{constructor(e,r,n,i){this.store=e,this.props=r,this.list=n,this.listEl=i,this.visibleStartIndex=0,this.visibleStopIndex=0,this.root=y0(this),this.visibleNodes=c2(this),this.idToIndex=u2(this.visibleNodes)}update(e){this.props=e,this.root=y0(this),this.visibleNodes=c2(this),this.idToIndex=u2(this.visibleNodes)}dispatch(e){return this.store.dispatch(e)}get state(){return this.store.getState()}get openState(){return this.state.nodes.open.unfiltered}get width(){var e;return(e=this.props.width)!==null&&e!==void 0?e:300}get height(){var e;return(e=this.props.height)!==null&&e!==void 0?e:500}get indent(){var e;return(e=this.props.indent)!==null&&e!==void 0?e:24}get rowHeight(){var e;return(e=this.props.rowHeight)!==null&&e!==void 0?e:24}get overscanCount(){var e;return(e=this.props.overscanCount)!==null&&e!==void 0?e:1}get searchTerm(){return(this.props.searchTerm||"").trim()}get matchFn(){var e;const r=(e=this.props.searchMatch)!==null&&e!==void 0?e:(n,i)=>JSON.stringify(Object.values(n.data)).toLocaleLowerCase().includes(i.toLocaleLowerCase());return n=>r(n,this.searchTerm)}accessChildren(e){var r;const n=this.props.childrenAccessor||"children";return(r=zr(e,n))!==null&&r!==void 0?r:null}accessId(e){const r=this.props.idAccessor||"id",n=zr(e,r);if(!n)throw new Error("Data must contain an 'id' property or props.idAccessor must return a string");return n}get firstNode(){var e;return(e=this.visibleNodes[0])!==null&&e!==void 0?e:null}get lastNode(){var e;return(e=this.visibleNodes[this.visibleNodes.length-1])!==null&&e!==void 0?e:null}get focusedNode(){var e;return(e=this.get(this.state.nodes.focus.id))!==null&&e!==void 0?e:null}get mostRecentNode(){var e;return(e=this.get(this.state.nodes.selection.mostRecent))!==null&&e!==void 0?e:null}get nextNode(){const e=this.indexOf(this.focusedNode);return e===null?null:this.at(e+1)}get prevNode(){const e=this.indexOf(this.focusedNode);return e===null?null:this.at(e-1)}get(e){return e&&e in this.idToIndex&&this.visibleNodes[this.idToIndex[e]]||null}at(e){return this.visibleNodes[e]||null}nodesBetween(e,r){var n;if(e===null||r===null)return[];const i=(n=this.indexOf(e))!==null&&n!==void 0?n:0,o=this.indexOf(r);if(o===null)return[];const a=Math.min(i,o),l=Math.max(i,o);return this.visibleNodes.slice(a,l+1)}indexOf(e){const r=k1(e);return r?this.idToIndex[r]:null}get editingId(){return this.state.nodes.edit.id}createInternal(){return this.create({type:"internal"})}createLeaf(){return this.create({type:"leaf"})}create(){return Ko(this,arguments,void 0,function*(e={}){var r,n;const i=e.parentId===void 0?N1(this):e.parentId,o=(r=e.index)!==null&&r!==void 0?r:M1(this),a=(n=e.type)!==null&&n!==void 0?n:"leaf",l=yield ye(this.props.onCreate,{type:a,parentId:i,index:o,parentNode:this.get(i)});l&&(this.focus(l),setTimeout(()=>{this.edit(l).then(()=>{this.select(l),this.activate(l)})}))})}delete(e){return Ko(this,void 0,void 0,function*(){if(!e)return;const n=(Array.isArray(e)?e:[e]).map(Je),i=n.map(o=>this.get(o)).filter(o=>!!o);yield ye(this.props.onDelete,{nodes:i,ids:n})})}edit(e){const r=Je(e);return this.resolveEdit({cancelled:!0}),this.scrollTo(r),this.dispatch(_o(r)),new Promise(n=>{vr.editPromise=n})}submit(e,r){return Ko(this,void 0,void 0,function*(){if(!e)return;const n=Je(e);yield ye(this.props.onRename,{id:n,name:r,node:this.get(n)}),this.dispatch(_o(null)),this.resolveEdit({cancelled:!1,value:r}),setTimeout(()=>this.onFocus())})}reset(){this.dispatch(_o(null)),this.resolveEdit({cancelled:!0}),setTimeout(()=>this.onFocus())}activate(e){const r=this.get(je(e));r&&ye(this.props.onActivate,r)}resolveEdit(e){const r=vr.editPromise;r&&r(e),vr.editPromise=null}get selectedIds(){return this.state.nodes.selection.ids}get selectedNodes(){let e=[];for(let r of Array.from(this.selectedIds)){const n=this.get(r);n&&e.push(n)}return e}focus(e,r={}){e&&(this.props.selectionFollowsFocus?this.select(e):(this.dispatch(Jt(Je(e))),r.scroll!==!1&&this.scrollTo(e),this.focusedNode&&ye(this.props.onFocus,this.focusedNode)))}pageUp(){var e,r;const n=this.visibleStartIndex,o=this.visibleStopIndex-n;let a=(r=(e=this.focusedNode)===null||e===void 0?void 0:e.rowIndex)!==null&&r!==void 0?r:0;a>n?a=n:a=Math.max(n-o,0),this.focus(this.at(a))}pageDown(){var e,r;const n=this.visibleStartIndex,i=this.visibleStopIndex,o=i-n;let a=(r=(e=this.focusedNode)===null||e===void 0?void 0:e.rowIndex)!==null&&r!==void 0?r:0;a<i?a=i:a=Math.min(a+o,this.visibleNodes.length-1),this.focus(this.at(a))}select(e,r={}){if(!e)return;const n=r.focus!==!1,i=Je(e);n&&this.dispatch(Jt(i)),this.dispatch(Le.only(i)),this.dispatch(Le.anchor(i)),this.dispatch(Le.mostRecent(i)),this.scrollTo(i,r.align),this.focusedNode&&n&&ye(this.props.onFocus,this.focusedNode),ye(this.props.onSelect,this.selectedNodes)}deselect(e){if(!e)return;const r=Je(e);this.dispatch(Le.remove(r)),ye(this.props.onSelect,this.selectedNodes)}selectMulti(e){const r=this.get(je(e));r&&(this.dispatch(Jt(r.id)),this.dispatch(Le.add(r.id)),this.dispatch(Le.anchor(r.id)),this.dispatch(Le.mostRecent(r.id)),this.scrollTo(r),this.focusedNode&&ye(this.props.onFocus,this.focusedNode),ye(this.props.onSelect,this.selectedNodes))}selectContiguous(e){if(!e)return;const r=Je(e),{anchor:n,mostRecent:i}=this.state.nodes.selection;this.dispatch(Jt(r)),this.dispatch(Le.remove(this.nodesBetween(n,i))),this.dispatch(Le.add(this.nodesBetween(n,je(r)))),this.dispatch(Le.mostRecent(r)),this.scrollTo(r),this.focusedNode&&ye(this.props.onFocus,this.focusedNode),ye(this.props.onSelect,this.selectedNodes)}deselectAll(){this.setSelection({ids:[],anchor:null,mostRecent:null}),ye(this.props.onSelect,this.selectedNodes)}selectAll(){var e;this.setSelection({ids:Object.keys(this.idToIndex),anchor:this.firstNode,mostRecent:this.lastNode}),this.dispatch(Jt((e=this.lastNode)===null||e===void 0?void 0:e.id)),this.focusedNode&&ye(this.props.onFocus,this.focusedNode),ye(this.props.onSelect,this.selectedNodes)}setSelection(e){var r;const n=new Set((r=e.ids)===null||r===void 0?void 0:r.map(Je)),i=je(e.anchor),o=je(e.mostRecent);this.dispatch(Le.set({ids:n,anchor:i,mostRecent:o})),ye(this.props.onSelect,this.selectedNodes)}get cursorParentId(){const{cursor:e}=this.state.dnd;switch(e.type){case"highlight":return e.id;default:return null}}get cursorOverFolder(){return this.state.dnd.cursor.type==="highlight"}get dragNodes(){return this.state.dnd.dragIds.map(e=>this.get(e)).filter(e=>!!e)}get dragNode(){return this.get(this.state.nodes.drag.id)}get dragDestinationParent(){return this.get(this.state.nodes.drag.destinationParentId)}get dragDestinationIndex(){return this.state.nodes.drag.destinationIndex}canDrop(){var e;if(this.isFiltered)return!1;const r=(e=this.get(this.state.dnd.parentId))!==null&&e!==void 0?e:this.root,n=this.dragNodes,i=this.props.disableDrop;for(const o of n)if(!o||!r||o.isInternal&&$1(r,o))return!1;return typeof i=="function"?!i({parentNode:r,dragNodes:this.dragNodes,index:this.state.dnd.index||0}):typeof i=="string"?!r.data[i]:typeof i=="boolean"?!i:!0}hideCursor(){this.dispatch(wr.cursor({type:"none"}))}showCursor(e){this.dispatch(wr.cursor(e))}open(e){const r=je(e);r&&(this.isOpen(r)||(this.dispatch(ya.open(r,this.isFiltered)),ye(this.props.onToggle,r)))}close(e){const r=je(e);r&&this.isOpen(r)&&(this.dispatch(ya.close(r,this.isFiltered)),ye(this.props.onToggle,r))}toggle(e){const r=je(e);if(r)return this.isOpen(r)?this.close(r):this.open(r)}openParents(e){const r=je(e);if(!r)return;const n=Cl(this.root,r);let i=n==null?void 0:n.parent;for(;i;)this.open(i.id),i=i.parent}openSiblings(e){const r=e.parent;if(!r)this.toggle(e.id);else if(r.children){const n=e.isOpen;for(let i of r.children)i.isInternal&&(n?this.close(i.id):this.open(i.id));this.scrollTo(this.focusedNode)}}openAll(){ci(this.root,e=>{e.isInternal&&e.open()})}closeAll(){ci(this.root,e=>{e.isInternal&&e.close()})}scrollTo(e,r="smart"){if(!e)return;const n=Je(e);return this.openParents(n),O1(()=>n in this.idToIndex).then(()=>{var i;const o=this.idToIndex[n];o!==void 0&&((i=this.list.current)===null||i===void 0||i.scrollToItem(o,r))}).catch(()=>{})}get isEditing(){return this.state.nodes.edit.id!==null}get isFiltered(){var e;return!!(!((e=this.props.searchTerm)===null||e===void 0)&&e.trim())}get hasFocus(){return this.state.nodes.focus.treeFocused}get hasNoSelection(){return this.state.nodes.selection.ids.size===0}get hasOneSelection(){return this.state.nodes.selection.ids.size===1}get hasMultipleSelections(){return this.state.nodes.selection.ids.size>1}isSelected(e){return e?this.state.nodes.selection.ids.has(e):!1}isOpen(e){var r,n,i;if(!e)return!1;if(e===ln)return!0;const o=(r=this.props.openByDefault)!==null&&r!==void 0?r:!0;return this.isFiltered?(n=this.state.nodes.open.filtered[e])!==null&&n!==void 0?n:!0:(i=this.state.nodes.open.unfiltered[e])!==null&&i!==void 0?i:o}isEditable(e){const r=this.props.disableEdit||(()=>!1);return!zr(e,r)}isDraggable(e){const r=this.props.disableDrag||(()=>!1);return!zr(e,r)}isDragging(e){const r=je(e);return r?this.state.nodes.drag.id===r:!1}isFocused(e){return this.hasFocus&&this.state.nodes.focus.id===e}isMatch(e){return this.matchFn(e)}willReceiveDrop(e){const r=je(e);if(!r)return!1;const{destinationParentId:n,destinationIndex:i}=this.state.nodes.drag;return r===n&&i===null}onFocus(){const e=this.focusedNode||this.firstNode;e&&this.dispatch(Jt(e.id))}onBlur(){this.dispatch(kg())}onItemsRendered(e){this.visibleStartIndex=e.visibleStartIndex,this.visibleStopIndex=e.visibleStopIndex}get renderContainer(){return this.props.renderContainer||af}get renderRow(){return this.props.renderRow||$g}get renderNode(){return this.props.children||_g}get renderDragPreview(){return this.props.renderDragPreview||R1}get renderCursor(){return this.props.renderCursor||Fg}}function we(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Qb=typeof Symbol=="function"&&Symbol.observable||"@@observable",d2=Qb,Vo=()=>Math.random().toString(36).substring(7).split("").join("."),em={INIT:`@@redux/INIT${Vo()}`,REPLACE:`@@redux/REPLACE${Vo()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Vo()}`},Pt=em;function sf(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function tm(t){if(t===void 0)return"undefined";if(t===null)return"null";const e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(im(t))return"date";if(nm(t))return"error";const r=rm(t);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(t).slice(8,-1).toLowerCase().replace(/\s/g,"")}function rm(t){return typeof t.constructor=="function"?t.constructor.name:null}function nm(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function im(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function st(t){let e=typeof t;return process.env.NODE_ENV!=="production"&&(e=tm(t)),e}function cf(t,e,r){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?we(2):`Expected the root reducer to be a function. Instead, received: '${st(t)}'`);if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?we(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?we(1):`Expected the enhancer to be a function. Instead, received: '${st(r)}'`);return r(cf)(t,e)}let n=t,i=e,o=new Map,a=o,l=0,s=!1;function c(){a===o&&(a=new Map,o.forEach((b,m)=>{a.set(m,b)}))}function d(){if(s)throw new Error(process.env.NODE_ENV==="production"?we(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function f(b){if(typeof b!="function")throw new Error(process.env.NODE_ENV==="production"?we(4):`Expected the listener to be a function. Instead, received: '${st(b)}'`);if(s)throw new Error(process.env.NODE_ENV==="production"?we(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let m=!0;c();const C=l++;return a.set(C,b),function(){if(m){if(s)throw new Error(process.env.NODE_ENV==="production"?we(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");m=!1,c(),a.delete(C),o=null}}}function p(b){if(!sf(b))throw new Error(process.env.NODE_ENV==="production"?we(7):`Actions must be plain objects. Instead, the actual type was: '${st(b)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof b.type>"u")throw new Error(process.env.NODE_ENV==="production"?we(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof b.type!="string")throw new Error(process.env.NODE_ENV==="production"?we(17):`Action "type" property must be a string. Instead, the actual type was: '${st(b.type)}'. Value was: '${b.type}' (stringified)`);if(s)throw new Error(process.env.NODE_ENV==="production"?we(9):"Reducers may not dispatch actions.");try{s=!0,i=n(i,b)}finally{s=!1}return(o=a).forEach(C=>{C()}),b}function g(b){if(typeof b!="function")throw new Error(process.env.NODE_ENV==="production"?we(10):`Expected the nextReducer to be a function. Instead, received: '${st(b)}`);n=b,p({type:Pt.REPLACE})}function y(){const b=f;return{subscribe(m){if(typeof m!="object"||m===null)throw new Error(process.env.NODE_ENV==="production"?we(11):`Expected the observer to be an object. Instead, received: '${st(m)}'`);function C(){const $=m;$.next&&$.next(d())}return C(),{unsubscribe:b(C)}},[d2](){return this}}}return p({type:Pt.INIT}),{dispatch:p,subscribe:f,getState:d,replaceReducer:g,[d2]:y}}function f2(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function om(t,e,r,n){const i=Object.keys(e),o=r&&r.type===Pt.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!sf(t))return`The ${o} has unexpected type of "${st(t)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const a=Object.keys(t).filter(l=>!e.hasOwnProperty(l)&&!n[l]);if(a.forEach(l=>{n[l]=!0}),!(r&&r.type===Pt.REPLACE)&&a.length>0)return`Unexpected ${a.length>1?"keys":"key"} "${a.join('", "')}" found in ${o}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function am(t){Object.keys(t).forEach(e=>{const r=t[e];if(typeof r(void 0,{type:Pt.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?we(12):`The slice reducer for key "${e}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:Pt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?we(13):`The slice reducer for key "${e}" returned undefined when probed with a random type. Don't try to handle '${Pt.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function h2(t){const e=Object.keys(t),r={};for(let a=0;a<e.length;a++){const l=e[a];process.env.NODE_ENV!=="production"&&typeof t[l]>"u"&&f2(`No reducer provided for key "${l}"`),typeof t[l]=="function"&&(r[l]=t[l])}const n=Object.keys(r);let i;process.env.NODE_ENV!=="production"&&(i={});let o;try{am(r)}catch(a){o=a}return function(l={},s){if(o)throw o;if(process.env.NODE_ENV!=="production"){const f=om(l,r,s,i);f&&f2(f)}let c=!1;const d={};for(let f=0;f<n.length;f++){const p=n[f],g=r[p],y=l[p],h=g(y,s);if(typeof h>"u"){const b=s&&s.type;throw new Error(process.env.NODE_ENV==="production"?we(14):`When called with an action of type ${b?`"${String(b)}"`:"(unknown type)"}, the slice reducer for key "${p}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}d[p]=h,c=c||h!==y}return c=c||n.length!==Object.keys(l).length,c?d:l}}function lm(t=Er().nodes.drag,e){switch(e.type){case"DND_DRAG_START":return Object.assign(Object.assign({},t),{id:e.id,selectedIds:e.dragIds});case"DND_DRAG_END":return Object.assign(Object.assign({},t),{id:null,destinationParentId:null,destinationIndex:null,selectedIds:[]});case"DND_HOVERING":return e.parentId!==t.destinationParentId||e.index!=t.destinationIndex?Object.assign(Object.assign({},t),{destinationParentId:e.parentId,destinationIndex:e.index}):t;default:return t}}const sm=h2({nodes:h2({focus:Ig,edit:Tg,open:Og,selection:Mg,drag:lm}),dnd:Ng}),cm=Er();function um({treeProps:t,imperativeHandle:e,children:r}){const n=u.useRef(null),i=u.useRef(null),o=u.useRef(cf(sm,Er(t))),a=Za.useSyncExternalStore(o.current.subscribe,o.current.getState,()=>cm),l=u.useMemo(()=>new vr(o.current,t,n,i),[]),s=u.useRef(0);return u.useMemo(()=>{s.current+=1,l.update(t)},[...Object.values(t),a.nodes.open]),u.useImperativeHandle(e,()=>l),u.useEffect(()=>{l.props.selection?l.select(l.props.selection,{focus:!1}):l.deselectAll()},[l.props.selection]),u.useEffect(()=>{l.props.searchTerm||o.current.dispatch(ya.clear(!0))},[l.props.searchTerm]),v.jsx(y1.Provider,{value:l,children:v.jsx(w1.Provider,{value:s.current,children:v.jsx(C1.Provider,{value:a.nodes,children:v.jsx(E1.Provider,{value:a.dnd,children:v.jsx(Vv,Object.assign({backend:Hb,options:{rootElement:l.props.dndRootElement||void 0}},t.dndManager&&{manager:t.dndManager},{children:r}))})})})})}function dm(){const t=ke(),[,e]=Y1(()=>({accept:"NODE",canDrop:(r,n)=>n.isOver({shallow:!0})?t.canDrop():!1,hover:(r,n)=>{if(!n.isOver({shallow:!0}))return;const i=n.getClientOffset();if(!t.listEl.current||!i)return;const{cursor:o,drop:a}=of({element:t.listEl.current,offset:i,indent:t.indent,node:null,prevNode:t.visibleNodes[t.visibleNodes.length-1],nextNode:null});a&&t.dispatch(wr.hovering(a.parentId,a.index)),n.canDrop()?o&&t.showCursor(o):t.hideCursor()}}),[t]);e(t.listEl)}function fm(t){return dm(),t.children}function hm(){const e=ke().props.renderContainer||af;return v.jsx(v.Fragment,{children:v.jsx(e,{})})}function pm(){const t=ke(),{offset:e,mouse:r,item:n,isDragging:i}=pb(a=>({offset:a.getSourceClientOffset(),mouse:a.getClientOffset(),item:a.getItem(),isDragging:a.isDragging()})),o=t.props.renderDragPreview||R1;return v.jsx(o,{offset:e,mouse:r,id:(n==null?void 0:n.id)||null,dragIds:(n==null?void 0:n.dragIds)||[],isDragging:i})}class gm{constructor(e){this.root=vm(e)}get data(){var e,r;return(r=(e=this.root.children)===null||e===void 0?void 0:e.map(n=>n.data))!==null&&r!==void 0?r:[]}create(e){const r=e.parentId?this.find(e.parentId):this.root;if(!r)return null;r.addChild(e.data,e.index)}move(e){const r=this.find(e.id),n=e.parentId?this.find(e.parentId):this.root;!r||!n||(n.addChild(r.data,e.index),r.drop())}update(e){const r=this.find(e.id);r&&r.update(e.changes)}drop(e){const r=this.find(e.id);r&&r.drop()}find(e,r=this.root){if(!r)return null;if(r.id===e)return r;if(r.children){for(let n of r.children){const i=this.find(e,n);if(i)return i}return null}return null}}function vm(t){const e=new uf({id:"ROOT"},null);return e.children=t.map(r=>$l(r,e)),e}function $l(t,e){const r=new uf(t,e);return t.children&&(r.children=t.children.map(n=>$l(n,r))),r}class uf{constructor(e,r){this.data=e,this.parent=r,this.id=e.id}hasParent(){return!!this.parent}get childIndex(){return this.hasParent()?this.parent.children.indexOf(this):-1}addChild(e,r){var n,i;const o=$l(e,this);this.children=(n=this.children)!==null&&n!==void 0?n:[],this.children.splice(r,0,o),this.data.children=(i=this.data.children)!==null&&i!==void 0?i:[],this.data.children.splice(r,0,e)}removeChild(e){var r,n;(r=this.children)===null||r===void 0||r.splice(e,1),(n=this.data.children)===null||n===void 0||n.splice(e,1)}update(e){if(this.hasParent()){const r=this.childIndex;this.parent.addChild(Object.assign(Object.assign({},this.data),e),r),this.drop()}}drop(){this.hasParent()&&this.parent.removeChild(this.childIndex)}}let bm=0;function mm(t){const[e,r]=u.useState(t),n=u.useMemo(()=>new gm(e),[e]);return[e,{onMove:c=>{for(const d of c.dragIds)n.move({id:d,parentId:c.parentId,index:c.index});r(n.data)},onRename:({name:c,id:d})=>{n.update({id:d,changes:{name:c}}),r(n.data)},onCreate:({parentId:c,index:d,type:f})=>{const p={id:`simple-tree-id-${bm++}`,name:""};return f==="internal"&&(p.children=[]),n.create({parentId:c,index:d,data:p}),r(n.data),p},onDelete:c=>{c.ids.forEach(d=>n.drop({id:d})),r(n.data)}}]}function ym(t){if(t.initialData&&t.data)throw new Error("React Arborist Tree => Provide either a data or initialData prop, but not both.");if(t.initialData&&(t.onCreate||t.onDelete||t.onMove||t.onRename))throw new Error(`React Arborist Tree => You passed the initialData prop along with a data handler.
98
- Use the data prop if you want to provide your own handlers.`);if(t.initialData){const[e,r]=mm(t.initialData);return Object.assign(Object.assign(Object.assign({},t),r),{data:e})}else return t}function Cm(t,e){const r=ym(t);return v.jsxs(um,{treeProps:r,imperativeHandle:e,children:[v.jsx(fm,{children:v.jsx(hm,{})}),v.jsx(pm,{})]})}const Em=u.forwardRef(Cm),df=({top:t,left:e})=>v.jsx("div",{className:"c__tree-view__cursor",style:{top:t-2,left:e+10,width:`calc(100% - ${24+e}px)`}});function wm(t,e){var r=u.useRef(null),n=u.useRef(null);n.current=e;var i=u.useRef(null);u.useEffect(function(){o()});var o=u.useCallback(function(){var a=i.current,l=n.current,s=a||(l?l instanceof Element?l:l.current:null);r.current&&r.current.element===s&&r.current.subscriber===t||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:s,subscriber:t,cleanup:s?t(s):void 0})},[t]);return u.useEffect(function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}},[]),u.useCallback(function(a){i.current=a,o()},[o])}function p2(t,e,r){return t[e]?t[e][0]?t[e][0][r]:t[e][r]:e==="contentBoxSize"?t.contentRect[r==="inlineSize"?"width":"height"]:void 0}function xm(t){t===void 0&&(t={});var e=t.onResize,r=u.useRef(void 0);r.current=e;var n=t.round||Math.round,i=u.useRef(),o=u.useState({width:void 0,height:void 0}),a=o[0],l=o[1],s=u.useRef(!1);u.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var c=u.useRef({width:void 0,height:void 0}),d=wm(u.useCallback(function(f){return(!i.current||i.current.box!==t.box||i.current.round!==n)&&(i.current={box:t.box,round:n,instance:new ResizeObserver(function(p){var g=p[0],y=t.box==="border-box"?"borderBoxSize":t.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",h=p2(g,y,"inlineSize"),b=p2(g,y,"blockSize"),m=h?n(h):void 0,C=b?n(b):void 0;if(c.current.width!==m||c.current.height!==C){var E={width:m,height:C};c.current.width=m,c.current.height=C,r.current?r.current(E):s.current||l(E)}})}),i.current.instance.observe(f,{box:t.box}),function(){i.current&&i.current.instance.unobserve(f)}},[t.box,n]),t.ref);return u.useMemo(function(){return{ref:d,width:a.width,height:a.height}},[d,a.width,a.height])}var se=(t=>(t.NODE="node",t.SEPARATOR="separator",t.TITLE="title",t.SIMPLE_NODE="simpleNode",t.VIEW_MORE="viewMore",t))(se||{}),xt=(t=>(t.FIRST_CHILD="first-child",t.LAST_CHILD="last-child",t.LEFT="left",t.RIGHT="right",t))(xt||{});const fi=t=>t?t.nodeType===se.SEPARATOR:!1,hi=t=>t?t.nodeType===se.TITLE:!1,ff=t=>t?t.nodeType===se.VIEW_MORE:!1,Ur=t=>!fi(t)&&!hi(t)&&!ff(t),hf=(t,e,r)=>{const{t:n}=X.useCunningham(),{remove:i,update:o,insert:a,insertBefore:l,insertAfter:s,append:c,prepend:d,getItem:f,move:p,items:g}=uh({initialItems:JSON.parse(JSON.stringify(t)),getKey:R=>R.id,getChildren:R=>R.children||[]}),[y,h]=u.useState(),b=(R=[])=>{const F=g.map(I=>I.key);i(...F);const _=JSON.parse(JSON.stringify(R));_.length>0&&a(null,0,..._),h(void 0)},m=R=>{const F=f(R);F&&h(F.value)},C=(R,F,_)=>{var I,L,j,H;if(R){const W=f(R);if(W){const q=(L=W.children)==null?void 0:L[((I=W.children)==null?void 0:I.length)-1];let Y=_??((j=W.children)==null?void 0:j.length)??0;_===((H=W.children)==null?void 0:H.length)&&q&&q.value.nodeType===se.VIEW_MORE&&(Y=Y-1),a(R,Y,F)}}else a(null,_??g.length,F)},E=R=>{var F;return(F=f(R))==null?void 0:F.value},$=(R,F)=>{var W,q;const _=f(R);if(!_){console.error("No item found");return}let I=((W=_.children)==null?void 0:W.map(Y=>Y.value))??null;const L=F.childrenCount??_.value.childrenCount??0;if((I==null?void 0:I.length)===0&&L>0&&(I=null),F.children){const Y=[...I??[],...F.children],le=new Map;for(const G of Y)le.set(G.id,G);I=Array.from(le.values())}I&&(I=I.sort((Y,le)=>Y.nodeType===se.VIEW_MORE&&le.nodeType!==se.VIEW_MORE?1:Y.nodeType!==se.VIEW_MORE&&le.nodeType===se.VIEW_MORE?-1:0));const j=((q=F.pagination)==null?void 0:q.hasMore)??!1;I&&(I=I.filter(Y=>Y.nodeType!==se.VIEW_MORE)),j&&I&&I.push({id:`view-more-${R}`,nodeType:se.VIEW_MORE,label:n("components.treeView.viewMore")});const H={..._.value,...F,children:I,childrenCount:(I==null?void 0:I.length)??L};o(R,H)},w=R=>{i(R)},x=R=>{i(...R)},S=async R=>{if(!e){console.error("No refresh callback provided");return}try{const F=await e(R);$(R,F)}catch(F){console.error("error while refreshing node:",F)}},N=(R,F)=>{a(null,F??g.length,R)},K=(R,F)=>{a(null,F??g.length,...R)},V=(R,F)=>{const _=f(R);if(!_){console.error("No item found");return}const I={..._.value,children:F,childrenCount:F.length,hasLoadedChildren:F.length>0};o(R,I)},D=R=>{const F=[],_=f(R);if(!_)return[];F.push(_.value);const I=L=>{const j=T(L);if(!j)return;const H=f(j);H&&(F.push(H.value),I(j))};return I(R),F.reverse()},T=R=>{var F;return((F=f(R))==null?void 0:F.parentKey)??null},Z=R=>{const F=T(R);if(!F)return null;const _=f(F);return _?_.value:null},k=(R,F)=>{l(R,F)},U=(R,F)=>{s(R,F)},P=(R,F)=>{c(R,F)},O=(R,F)=>{d(R,F)},z=(R,F,_)=>{p(R,F,_)},B=R=>{z(R.sourceId,R.newParentId,R.index)},M=async R=>{var Y;if(!r)return console.error("No load paginated children callback provided"),[];const F=f(R);if(!F){console.error("No parent found");return}const I=(((Y=F==null?void 0:F.value.pagination)==null?void 0:Y.currentPage)??0)+1,L=await r(R,I);if(!L){console.error("No result found");return}const j=L.children,H=L.pagination,W=I,q=(H==null?void 0:H.hasMore)??!1;$(R,{children:j,hasLoadedChildren:!0,pagination:{currentPage:W,hasMore:q}})};return u.useEffect(()=>{const R=F=>{F.forEach(_=>{var I;if(_.children&&_.children.length>0){const L=_.value.hasLoadedChildren||((I=_.children)==null?void 0:I.length)>0||_.value.children&&_.value.children.length>0;_.value.children=_.children.map(H=>H.value);const j=L?_.children.length:_.value.childrenCount??0;_.value.childrenCount=j,L&&!_.value.hasLoadedChildren&&(_.value.hasLoadedChildren=!0),R(_.children)}else{const j=_.value.hasLoadedChildren||_.value.children&&_.value.children.length>0?0:_.value.childrenCount;_.value.children=[],_.value.childrenCount=j}})};R(g)},[g]),{nodes:g,addChild:C,updateNode:$,deleteNode:w,deleteNodes:x,addRootNode:N,addRootNodes:K,selectedNode:y,setSelectedNode:h,refreshNode:S,setChildren:V,insertBeforeNode:k,insertAfterNode:U,handleMove:B,prependToNode:O,moveNode:z,appendToNode:P,move:p,resetTree:b,handleLoadChildren:M,selectNodeById:m,getParent:Z,getNode:E,getParentId:T,getAncestors:D}},_l=u.createContext(null),Dm=({children:t,onRefresh:e,initialNodeId:r,onLoadChildren:n,initialTreeData:i})=>{const o=u.useRef(null),[a,l]=u.useState(null),[s,c]=u.useState(r??null),d=hf(i??[],e,n);return v.jsx(_l.Provider,{value:{treeApiRef:o,treeData:d,root:a,initialTargetId:s,setInitialTargetId:c,setRoot:l},children:t})},Pl=()=>{const t=u.useContext(_l);if(!t)throw new Error("TreeContext not found");return t},Sm=({initialOpenState:t,dndRootElement:e,selectedNodeId:r,rootNodeId:n,renderNode:i,canDrop:o,canDrag:a,afterMove:l,beforeMove:s,paddingTop:c=10,paddingBottom:d=10,rowProps:f})=>{const[p,g]=u.useState(400),{ref:y,width:h}=xm(),b=Pl(),m=(b==null?void 0:b.treeData.nodes)??[];u.useEffect(()=>{const w=document.querySelector(".c__tree-view"),x=w==null?void 0:w.firstElementChild;let S=null;return w&&x&&(S=new ResizeObserver(()=>{if(x&&x instanceof HTMLElement){const N=x.style.height;g(parseInt(N,10)+20)}}),S.observe(x)),()=>S==null?void 0:S.disconnect()},[]);const C=w=>{var F,_,I,L;const x=JSON.parse(JSON.stringify(m)),S=w.dragNodes[0],N=w.parentId?((F=w.parentNode)==null?void 0:F.data.children)??[]:x,K=w.dragNodes[0].data.value.id,V=w.dragNodes[0].data,D=(_=w.parentNode)==null?void 0:_.data;if((D==null?void 0:D.value.nodeType)===se.TITLE||(D==null?void 0:D.value.nodeType)===se.SEPARATOR||(D==null?void 0:D.value.nodeType)===se.VIEW_MORE)return null;const T=V.parentKey??n,Z=w.parentId??n;let k=w.index+0,U=null,P=Z;const O=((L=(I=S.parent)==null?void 0:I.children)==null?void 0:L.findIndex(j=>j.data.value.id===K))??0;if(T===Z){if(O===k)return null;k=k<O?k:k-1}const z=w.index-1,B=N[z],M=w.index,R=N[M];return w.index===0?(P=w.parentId??n,U=xt.FIRST_CHILD):!D&&w.index===1&&!Ur(B.value)?(P=n,k=1,U=xt.FIRST_CHILD):w.index===N.length?(P=P??n,U=xt.LAST_CHILD):B&&Ur(B.value)?(P=B.value.id,U=xt.RIGHT):R&&Ur(R.value)&&(U=xt.LEFT,P=R.value.id),U&&P?{targetModeId:P,mode:U,oldParentId:T,index:k,newParentId:w.parentId,sourceId:K}:null},E=w=>{const x=C(w);x&&(s?s(x,()=>{b==null||b.treeData.handleMove(x),l==null||l(x)}):(b==null||b.treeData.handleMove(x),l==null||l(x)))},$=u.useCallback(w=>a?!a(w):!1,[a]);if(b)return v.jsx("div",{ref:y,style:{height:p},className:"c__tree-view--container",children:v.jsx(Em,{dndRootElement:e,data:m,ref:b.treeApiRef,openByDefault:!1,selectionFollowsFocus:!1,disableMultiSelection:!0,disableEdit:!0,className:"c__tree-view",idAccessor:"key",onMove:E,height:p,width:h,paddingTop:c,paddingBottom:d,rowHeight:34,disableDrag:$,disableDrop:({parentNode:w,dragNodes:x,index:S})=>{var T,Z,k;if(o&&!o({parentNode:w,dragNodes:x,index:S}))return w.id!=="__REACT_ARBORIST_INTERNAL_ROOT__"&&(w.data.value.canDrop=!1),!0;const N=x[0];if(N&&N.isDragging&&N.willReceiveDrop||((T=w.data.value)==null?void 0:T.nodeType)===se.TITLE||((Z=w.data.value)==null?void 0:Z.nodeType)===se.SEPARATOR||((k=w.data.value)==null?void 0:k.nodeType)===se.VIEW_MORE)return!0;if(w.id==="__REACT_ARBORIST_INTERNAL_ROOT__"){const U=m[S-1],P=m[S],O=m[S+1],z=fi(U==null?void 0:U.value),B=fi(P==null?void 0:P.value),M=hi(U==null?void 0:U.value),R=hi(P==null?void 0:P.value),F=Ur(O==null?void 0:O.value);return!!(S===0&&(B||R)||z&&R&&F||M&&B&&F)}const K=w==null?void 0:w.isOpen,V=(w==null?void 0:w.data.value.childrenCount)&&w.data.value.childrenCount>0||(w==null?void 0:w.data.children)&&w.data.children.length>0;if(!V)return w.data.value.canDrop=!0,!1;let D=w.data.value.childrenCount&&w.data.value.childrenCount>0&&(w==null?void 0:w.data.children)&&w.data.children.length>0;return D=D??!0,!K&&!D&&V?(w.data.value.canDrop=!0,!0):(w.data.value.canDrop=!0,!1)},initialOpenState:t,overscanCount:20,selection:r,renderCursor:df,renderRow:w=>v.jsx(Fm,{...w,customRowProps:f}),rowClassName:"c__tree-view--row",children:i})})},Fm=({children:t,customRowProps:e,...r})=>{const n=r.node.data.value.nodeType===se.TITLE,i=r.node.data.value.nodeType===se.SEPARATOR,o=r.node.data.value.nodeType===se.VIEW_MORE,{onKeyDown:a,onClick:l,...s}=e??{},{style:c}=r.attrs,d={...c},f=p=>{a==null||a(p);const g=p.target;if(g){const y=g.closest(".actions"),b=g.closest('button, a[href], input, textarea, select, [role="menuitem"], [role="button"]');if(y||b)return}if((p.key==="Enter"||p.key===" ")&&p.currentTarget.click(),p.key==="F2"){p.preventDefault();const y=p.currentTarget.querySelector("button");y&&y.focus()}};return n||i||o?u.createElement("div",{...r.attrs,key:r.node.id,style:d,ref:r.innerRef,onFocus:p=>p.stopPropagation(),onClick:p=>{l==null||l(p),r.node.handleClick(p)},onKeyDown:a,...s},t):u.createElement("div",{...r.attrs,style:d,key:r.node.id,ref:r.innerRef,onFocus:p=>p.stopPropagation(),onClick:p=>{l==null||l(p),p.preventDefault(),p.stopPropagation(),r.node.select()},onKeyDown:f,...s},v.jsx("div",{className:"c__tree-view--row-content",children:t}))},$m=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",pf=$m?u.useLayoutEffect:u.useEffect;function gf(t){const e=u.useRef(t);return pf(()=>{e.current=t}),u.useCallback(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return e.current==null?void 0:e.current(...n)},[])}function g2(t,e){e===void 0&&(e=[t]);const r=u.useRef(t);return pf(()=>{r.current!==t&&(r.current=t)},e),r}function _m(t){const e=gf(t),r=u.useRef(null),n=u.useCallback(i=>{i!==r.current&&(e==null||e(i,r.current)),r.current=i},[]);return[r,n]}let Ho={};function Pm(t,e){return u.useMemo(()=>{const r=Ho[t]==null?0:Ho[t]+1;return Ho[t]=r,t+"-"+r},[t,e])}var Zr;(function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"})(Zr||(Zr={}));function v2(){}const Am=Object.freeze({x:0,y:0});var cr;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(cr||(cr={}));var b2;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(b2||(b2={}));var ct;(function(t){t.Space="Space",t.Down="ArrowDown",t.Right="ArrowRight",t.Left="ArrowLeft",t.Up="ArrowUp",t.Esc="Escape",t.Enter="Enter",t.Tab="Tab"})(ct||(ct={}));ct.Space,ct.Enter,ct.Esc,ct.Space,ct.Enter,ct.Tab;var m2;(function(t){t[t.RightClick=2]="RightClick"})(m2||(m2={}));var y2;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(y2||(y2={}));var C2;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(C2||(C2={}));cr.Backward+"",cr.Forward+"",cr.Backward+"",cr.Forward+"";var _a;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(_a||(_a={}));var Pa;(function(t){t.Optimized="optimized"})(Pa||(Pa={}));function Tm(t){let{callback:e,disabled:r}=t;const n=gf(e),i=u.useMemo(()=>{if(r||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(n)},[r]);return u.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}_a.WhileDragging,Pa.Optimized;const km={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:v2,draggableNodes:new Map,over:null,measureDroppableContainers:v2},Im=u.createContext(km);({...Am});var E2;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(E2||(E2={}));const Om="Droppable",Mm={timeout:25};function Nm(t){let{data:e,disabled:r=!1,id:n,resizeObserverConfig:i}=t;const o=Pm(Om),{active:a,dispatch:l,over:s,measureDroppableContainers:c}=u.useContext(Im),d=u.useRef({disabled:r}),f=u.useRef(!1),p=u.useRef(null),g=u.useRef(null),{disabled:y,updateMeasurementsFor:h,timeout:b}={...Mm,...i},m=g2(h??n),C=u.useCallback(()=>{if(!f.current){f.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{c(Array.isArray(m.current)?m.current:[m.current]),g.current=null},b)},[b]),E=Tm({callback:C,disabled:y||!a}),$=u.useCallback((N,K)=>{E&&(K&&(E.unobserve(K),f.current=!1),N&&E.observe(N))},[E]),[w,x]=_m($),S=g2(e);return u.useEffect(()=>{!E||!w.current||(E.disconnect(),f.current=!1,E.observe(w.current))},[w,E]),u.useEffect(()=>(l({type:Zr.RegisterDroppable,element:{id:n,key:o,disabled:r,node:w,rect:p,data:S}}),()=>l({type:Zr.UnregisterDroppable,key:o,id:n})),[n]),u.useEffect(()=>{r!==d.current.disabled&&(l({type:Zr.SetDroppableDisabled,id:n,key:o,disabled:r}),d.current.disabled=r)},[n,o,r,l]),{active:a,rect:p,isOver:(s==null?void 0:s.id)===n,node:w,over:s,setNodeRef:x}}const Rm=t=>{const{isOver:e,setNodeRef:r}=Nm({id:t.id,data:t.data});return u.useEffect(()=>{var n;(n=t.onOver)==null||n.call(t,e,t.data)},[e,t.data,t.onOver]),v.jsx("div",{className:"c__dnd--droppable",ref:r,children:t.children})},Bm=({children:t,itemProps:e,testId:r,onClick:n,onKeyDown:i,node:o,dragHandle:a,style:l,forceLoading:s})=>{var N,K;const{t:c}=X.useCunningham(),d=Pl(),f=u.useRef(null),[p,g]=u.useState(!1),[y,h]=u.useState(!1),[b,m]=u.useState(!1),C=s??p,E=o.willReceiveDrop||b,$=o.data.value.childrenCount!==void 0&&o.data.value.childrenCount>0||(((N=o.data.children)==null?void 0:N.length)??0)>0,w=((K=o.children)==null?void 0:K.length)??!1,x=o.isLeaf||!$,S=u.useCallback(V=>{V.stopPropagation(),o.data.value.nodeType===se.VIEW_MORE&&(h(!0),d==null||d.treeData.handleLoadChildren(o.data.parentKey).then(()=>h(!1)).catch(()=>h(!1)))},[o.data.value.nodeType,o.data.parentKey,d==null?void 0:d.treeData]);return u.useEffect(()=>{x||w||o.data.value.hasLoadedChildren||o.isOpen&&(g(!0),d==null||d.treeData.handleLoadChildren(o.data.value.id).then(()=>g(!1)))},[o.isOpen,x,w,o.data.value.hasLoadedChildren,o.data.value.id,d==null?void 0:d.treeData]),u.useEffect(()=>(E&&!o.isOpen&&!o.isDragging&&(f.current=setTimeout(()=>{o.open()},500)),()=>{f.current&&clearTimeout(f.current)}),[E,o.isOpen,o.isDragging,o]),o.data.value.nodeType===se.SEPARATOR?v.jsx("div",{className:"c__tree-view--node__separator","data-testid":r}):o.data.value.nodeType===se.TITLE?v.jsx("div",{className:"c__tree-view--node__title","data-testid":r,children:o.data.value.headerTitle}):o.data.value.nodeType===se.VIEW_MORE?v.jsx("div",{className:"c__tree-view--row-content","data-testid":r,children:v.jsx("div",{className:"c__tree-view--node",style:l,children:v.jsxs("div",{role:"button",className:"c__tree-view--node__view-more-button",style:{paddingLeft:0,marginLeft:20},onClick:S,children:[y?v.jsx("div",{className:"c__tree-view--node__loading",children:v.jsx(li,{})}):v.jsx("span",{className:"material-icons c__tree-view--node__view-more-button__icon",children:"arrow_downward"}),v.jsxs("span",{className:"c__tree-view--node__view-more-text",children:[o.data.value.nodeType===se.VIEW_MORE,c("components.treeView.viewMore")]})]})})}):v.jsx(Rm,{id:o.id,data:{data:o.data,nodeApi:o},onOver:m,children:v.jsxs("div",{onClick:V=>{if(!V.target.closest(".c__tree-view--node")){V.stopPropagation();return}n==null||n()},onKeyDown:V=>{i==null||i(V),V.target.closest(".c__tree-view--node")||V.stopPropagation()},ref:a,style:l,className:be("c__tree-view--node",{...o.state,simpleNode:o.data.value.nodeType===se.SIMPLE_NODE,canDrop:o.data.value.canDrop??!0,externalDrop:b}),"data-testid":r,...e,children:[x&&v.jsx("div",{className:"c__tree-view--node__leaf"}),!x&&v.jsxs(v.Fragment,{children:[C&&v.jsx("div",{className:"c__tree-view--node__loading",children:v.jsx(li,{})}),!C&&v.jsx("span",{onClick:V=>{V.stopPropagation(),o.toggle()},className:"c__tree-view--node__arrow material-icons",children:o.isOpen?"keyboard_arrow_down":"keyboard_arrow_right"})]}),t]})})},Lm=({children:t,uppercased:e=!1,type:r="accent",className:n,...i})=>v.jsx("div",{className:be(n,"c__badge",{"c__badge--uppercased":e,[`c__badge--${r}`]:r}),...i,children:t});function jm(t){u.useEffect(()=>{if(!t)return;let e=!1;const r=()=>Array.from(t.querySelectorAll("button")).filter(a=>!a.disabled&&a.getAttribute("aria-disabled")!=="true"),n=a=>{const l=a.key==="ArrowLeft"||a.key==="ArrowRight",s=a.key===" ";if(!(a.target instanceof HTMLElement))return;if(s){const h=a.target.closest("button");h instanceof HTMLButtonElement&&t.contains(h)&&h.click();return}if(!l)return;const d=a.target.closest("button");if(!(d instanceof HTMLButtonElement&&t.contains(d)))return;const p=r(),g=p.indexOf(d);if(g<0)return;a.preventDefault(),a.stopPropagation();const y=a.key==="ArrowRight"?(g+1)%p.length:(g-1+p.length)%p.length;p[y].focus(),e=!0},i=a=>{e&&((a.key===" "||a.key==="Enter")&&(a.preventDefault(),a.stopPropagation()),e=!1)},o={capture:!0};return t.addEventListener("keydown",n,o),t.addEventListener("keyup",i,o),()=>{t.removeEventListener("keydown",n,o),t.removeEventListener("keyup",i,o)}},[t])}const Zi=({roles:t,onSelect:e,canUpdate:r=!0,selectedRole:n,isOpen:i,onOpenChange:o,roleTopMessage:a})=>{const l=t.find(s=>s.value===n);return r?v.jsx(kt,{isOpen:i,shouldCloseOnInteractOutside:s=>!s.closest(".c__access-role-dropdown"),onOpenChange:o,options:t,selectedValues:[n],onSelectValue:e,topMessage:a,children:v.jsxs("div",{role:"button",className:"c__access-role-dropdown","data-testid":"access-role-dropdown-button",onClick:()=>{o==null||o(!i)},children:[v.jsx("span",{className:"c__access-role-dropdown__role-label",children:l==null?void 0:l.label}),v.jsx("span",{className:"material-icons c__access-role-dropdown__icon",children:i?"arrow_drop_up":"arrow_drop_down"})]})}):v.jsx("span",{className:"c__access-role-dropdown__role-label-can-not-update",children:l==null?void 0:l.label})},vf=({users:t,onRemoveUser:e,rightActions:r,onShare:n,shareButtonLabel:i,roles:o,selectedRole:a,onSelectRole:l})=>{const{t:s}=X.useCunningham(),[c,d]=u.useState(!1);return v.jsxs("div",{className:"c__add-share-user-list","data-testid":"selected-users-list",children:[v.jsx("div",{className:"c__add-share-user-list__items",children:t.map(f=>v.jsx(bf,{user:f,onRemoveUser:e},f.id))}),v.jsxs("div",{className:"c__add-share-user-list__right-actions",children:[r,v.jsx(Zi,{roles:o,selectedRole:a,onSelect:l,isOpen:c,onOpenChange:d}),v.jsx(X.Button,{onClick:n,children:i??s("components.share.shareButton")})]})]})},bf=({user:t,onRemoveUser:e})=>v.jsxs("div",{className:"c__add-share-user-item","data-testid":"selected-user-item",children:[v.jsx("span",{children:t.full_name||t.email}),v.jsx(X.Button,{variant:"tertiary",color:"neutral",size:"nano",onClick:()=>e==null?void 0:e(t),icon:v.jsx("span",{className:"material-icons",children:"close"})})]}),Aa=["gray","brand","red","orange","brown","green","blue-1","blue-2","pink","yellow","purple"],mf=t=>t.split(/[\s-_]+/).slice(0,2).map(e=>e[0]).join("").toUpperCase(),Al=t=>{let e=0;for(let r=0;r<t.length;r++)e+=t.charCodeAt(r);return Aa[e%Aa.length]},Gi=({fullName:t,size:e="medium",forceColor:r,backgroundColor:n})=>{const i=mf(t),o=n||Al(t);return v.jsx("div",{style:{backgroundColor:r||void 0},className:be(`c__avatar ${e}`,{[o]:!r&&o}),children:v.jsx("div",{className:"c__avatar__initials",children:i})})},qi=({fullName:t,email:e,showEmail:r=!0})=>{const n=t&&t!==""?t:e??"";return v.jsxs("div",{className:"c__user-row",children:[v.jsx(Gi,{fullName:n,size:"small"}),v.jsxs("div",{className:"c__user-row__info",children:[v.jsx("span",{className:"c__user-row__name",children:t}),r&&e&&v.jsx("span",{className:be("c__user-row__email",{"has-only-email":e&&(t===""||!t)}),children:e})]})]})},Ta=({user:t})=>{const{t:e}=X.useCunningham();return v.jsx(Ki,{testId:"search-user-item",left:v.jsx(qi,{fullName:t.full_name,email:t.email}),alwaysShowRight:!1,right:v.jsxs("div",{className:"c__search-user-item-right",children:[v.jsx("span",{children:e("components.share.item.add")}),v.jsx("span",{className:"material-icons",children:"add"})]})})},yf=({accessData:t,accessRoleKey:e="role",roles:r,updateRole:n,deleteAccess:i,canUpdate:o=!0,roleTopMessage:a})=>{const{t:l}=X.useCunningham(),s=mt(),c=mt(),d=u.useMemo(()=>{const p=[];return i&&p.push({label:l("components.share.access.delete"),icon:v.jsx("span",{className:"material-icons",children:"back_hand"}),isDisabled:!o,callback:()=>i(t)}),p},[i,t,o,l]),f=()=>{const p=c.isOpen;c.setIsOpen(!p)};return v.jsx("div",{className:"c__share-member-item",children:v.jsx(Ki,{testId:"share-member-item",left:v.jsx(qi,{fullName:t.user.full_name,email:t.user.email,showEmail:!0}),alwaysShowRight:!0,right:v.jsxs("div",{className:"c__share-member-item__right",children:[v.jsx(Zi,{roles:r,selectedRole:t[e],onSelect:p=>n==null?void 0:n(t,p),isOpen:s.isOpen,onOpenChange:s.setIsOpen,canUpdate:o,roleTopMessage:a}),d.length>0&&o&&v.jsx(kt,{options:d,isOpen:c.isOpen,onOpenChange:c.setIsOpen,children:v.jsx(X.Button,{color:"neutral",variant:"tertiary",onClick:f,"data-testid":"share-member-item-more-actions-button",size:"small",icon:v.jsx("span",{className:"material-icons toto",children:"more_horiz"})})})]})})})},Cf=({invitation:t,roles:e,updateRole:r,deleteInvitation:n,canUpdate:i=!0,showMoreActionsButton:o=!0,roleTopMessage:a})=>{const{t:l}=X.useCunningham(),s=mt(),c=mt(),d=[{label:l("components.share.access.delete"),callback:()=>n==null?void 0:n(t),isDisabled:!i,icon:v.jsx("span",{className:"material-icons",children:"back_hand"})}],f=()=>{const p=c.isOpen;c.setIsOpen(!p)};return v.jsx("div",{className:"c__share-member-item",children:v.jsx(Ki,{testId:"share-invitation-item",left:v.jsx(qi,{fullName:"",email:t.email,showEmail:!0}),alwaysShowRight:!0,right:v.jsxs("div",{className:"c__share-member-item__right",children:[v.jsx(Zi,{roles:e,selectedRole:t.role,onSelect:p=>r==null?void 0:r(t,p),isOpen:s.isOpen,canUpdate:i,onOpenChange:s.setIsOpen,roleTopMessage:a}),o&&i&&v.jsx(kt,{options:d,isOpen:c.isOpen,onOpenChange:c.setIsOpen,children:v.jsx(X.Button,{color:"neutral",variant:"tertiary",onClick:f,size:"small",icon:v.jsx("span",{className:"material-icons toto",children:"more_horiz"})})})]})})})},Km="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%2022C10.6167%2022%209.31667%2021.7375%208.1%2021.2125C6.88333%2020.6875%205.825%2019.975%204.925%2019.075C4.025%2018.175%203.3125%2017.1167%202.7875%2015.9C2.2625%2014.6833%202%2013.3833%202%2012C2%2010.6167%202.2625%209.31667%202.7875%208.1C3.3125%206.88333%204.025%205.825%204.925%204.925C5.825%204.025%206.88333%203.3125%208.1%202.7875C9.31667%202.2625%2010.6167%202%2012%202C13.3833%202%2014.6833%202.2625%2015.9%202.7875C17.1167%203.3125%2018.175%204.025%2019.075%204.925C19.975%205.825%2020.6875%206.88333%2021.2125%208.1C21.7375%209.31667%2022%2010.6167%2022%2012C22%2013.3833%2021.7375%2014.6833%2021.2125%2015.9C20.6875%2017.1167%2019.975%2018.175%2019.075%2019.075C18.175%2019.975%2017.1167%2020.6875%2015.9%2021.2125C14.6833%2021.7375%2013.3833%2022%2012%2022ZM11%2019.95V18C10.45%2018%209.97917%2017.8042%209.5875%2017.4125C9.19583%2017.0208%209%2016.55%209%2016V15L4.2%2010.2C4.15%2010.5%204.10417%2010.8%204.0625%2011.1C4.02083%2011.4%204%2011.7%204%2012C4%2014.0167%204.6625%2015.7833%205.9875%2017.3C7.3125%2018.8167%208.98333%2019.7%2011%2019.95ZM17.9%2017.4C18.2333%2017.0333%2018.5333%2016.6375%2018.8%2016.2125C19.0667%2015.7875%2019.2875%2015.3458%2019.4625%2014.8875C19.6375%2014.4292%2019.7708%2013.9583%2019.8625%2013.475C19.9542%2012.9917%2020%2012.5%2020%2012C20%2010.3667%2019.5458%208.875%2018.6375%207.525C17.7292%206.175%2016.5167%205.2%2015%204.6V5C15%205.55%2014.8042%206.02083%2014.4125%206.4125C14.0208%206.80417%2013.55%207%2013%207H11V9C11%209.28333%2010.9042%209.52083%2010.7125%209.7125C10.5208%209.90417%2010.2833%2010%2010%2010H8V12H14C14.2833%2012%2014.5208%2012.0958%2014.7125%2012.2875C14.9042%2012.4792%2015%2012.7167%2015%2013V16H16C16.4333%2016%2016.825%2016.1292%2017.175%2016.3875C17.525%2016.6458%2017.7667%2016.9833%2017.9%2017.4Z'%20fill='%23222631'/%3e%3c/svg%3e",Vm="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18%2018C18.4167%2018%2018.7708%2017.8542%2019.0625%2017.5625C19.3542%2017.2708%2019.5%2016.9167%2019.5%2016.5C19.5%2016.0833%2019.3542%2015.7292%2019.0625%2015.4375C18.7708%2015.1458%2018.4167%2015%2018%2015C17.5833%2015%2017.2292%2015.1458%2016.9375%2015.4375C16.6458%2015.7292%2016.5%2016.0833%2016.5%2016.5C16.5%2016.9167%2016.6458%2017.2708%2016.9375%2017.5625C17.2292%2017.8542%2017.5833%2018%2018%2018ZM18%2021C18.5%2021%2018.9667%2020.8833%2019.4%2020.65C19.8333%2020.4167%2020.1917%2020.0917%2020.475%2019.675C20.0917%2019.4417%2019.6917%2019.2708%2019.275%2019.1625C18.8583%2019.0542%2018.4333%2019%2018%2019C17.5667%2019%2017.1417%2019.0542%2016.725%2019.1625C16.3083%2019.2708%2015.9083%2019.4417%2015.525%2019.675C15.8083%2020.0917%2016.1667%2020.4167%2016.6%2020.65C17.0333%2020.8833%2017.5%2021%2018%2021ZM9%208H15V6C15%205.16667%2014.7083%204.45833%2014.125%203.875C13.5417%203.29167%2012.8333%203%2012%203C11.1667%203%2010.4583%203.29167%209.875%203.875C9.29167%204.45833%209%205.16667%209%206V8ZM12.25%2022H6C5.45%2022%204.97917%2021.8042%204.5875%2021.4125C4.19583%2021.0208%204%2020.55%204%2020V10C4%209.45%204.19583%208.97917%204.5875%208.5875C4.97917%208.19583%205.45%208%206%208H7V6C7%204.61667%207.4875%203.4375%208.4625%202.4625C9.4375%201.4875%2010.6167%201%2012%201C13.3833%201%2014.5625%201.4875%2015.5375%202.4625C16.5125%203.4375%2017%204.61667%2017%206V8H18C18.55%208%2019.0208%208.19583%2019.4125%208.5875C19.8042%208.97917%2020%209.45%2020%2010V11.3C19.7%2011.2%2019.3875%2011.125%2019.0625%2011.075C18.7375%2011.025%2018.3833%2011%2018%2011V10H6V20H11.3C11.4333%2020.4%2011.5667%2020.7458%2011.7%2021.0375C11.8333%2021.3292%2012.0167%2021.65%2012.25%2022ZM18%2023C16.6167%2023%2015.4375%2022.5125%2014.4625%2021.5375C13.4875%2020.5625%2013%2019.3833%2013%2018C13%2016.6167%2013.4875%2015.4375%2014.4625%2014.4625C15.4375%2013.4875%2016.6167%2013%2018%2013C19.3833%2013%2020.5625%2013.4875%2021.5375%2014.4625C22.5125%2015.4375%2023%2016.6167%2023%2018C23%2019.3833%2022.5125%2020.5625%2021.5375%2021.5375C20.5625%2022.5125%2019.3833%2023%2018%2023Z'%20fill='%23222631'/%3e%3c/svg%3e",Hm="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%2022C10.6333%2022%209.34167%2021.7375%208.125%2021.2125C6.90833%2020.6875%205.84583%2019.9708%204.9375%2019.0625C4.02917%2018.1542%203.3125%2017.0917%202.7875%2015.875C2.2625%2014.6583%202%2013.3667%202%2012C2%2010.6167%202.2625%209.32083%202.7875%208.1125C3.3125%206.90417%204.02917%205.84583%204.9375%204.9375C5.84583%204.02917%206.90833%203.3125%208.125%202.7875C9.34167%202.2625%2010.6333%202%2012%202C12.5333%202%2013.0458%202.0375%2013.5375%202.1125C14.0292%202.1875%2014.5167%202.3%2015%202.45V5C15%205.55%2014.8042%206.02083%2014.4125%206.4125C14.0208%206.80417%2013.55%207%2013%207H11V9C11%209.28333%2010.9042%209.52083%2010.7125%209.7125C10.5208%209.90417%2010.2833%2010%2010%2010H8V12H14C14.2833%2012%2014.5208%2012.0958%2014.7125%2012.2875C14.9042%2012.4792%2015%2012.7167%2015%2013V16H16C16.45%2016%2016.8458%2016.1333%2017.1875%2016.4C17.5292%2016.6667%2017.7667%2017%2017.9%2017.4C18.55%2016.6667%2019.0625%2015.8458%2019.4375%2014.9375C19.8125%2014.0292%2020%2013.05%2020%2012C20%2011.8167%2019.9917%2011.65%2019.975%2011.5C19.9583%2011.35%2019.9333%2011.1833%2019.9%2011H21.95C21.9833%2011.1833%2022%2011.35%2022%2011.5V12C22%2013.3667%2021.7375%2014.6583%2021.2125%2015.875C20.6875%2017.0917%2019.9708%2018.1542%2019.0625%2019.0625C18.1542%2019.9708%2017.0958%2020.6875%2015.8875%2021.2125C14.6792%2021.7375%2013.3833%2022%2012%2022ZM11%2019.95V18C10.45%2018%209.97917%2017.8042%209.5875%2017.4125C9.19583%2017.0208%209%2016.55%209%2016V15L4.2%2010.2C4.15%2010.5%204.10417%2010.8%204.0625%2011.1C4.02083%2011.4%204%2011.7%204%2012C4%2014.0667%204.67083%2015.8458%206.0125%2017.3375C7.35417%2018.8292%209.01667%2019.7%2011%2019.95ZM18%209C17.7167%209%2017.4792%208.90417%2017.2875%208.7125C17.0958%208.52083%2017%208.28333%2017%208V5C17%204.71667%2017.0958%204.47917%2017.2875%204.2875C17.4792%204.09583%2017.7167%204%2018%204V3C18%202.45%2018.1958%201.97917%2018.5875%201.5875C18.9792%201.19583%2019.45%201%2020%201C20.55%201%2021.0208%201.19583%2021.4125%201.5875C21.8042%201.97917%2022%202.45%2022%203V4C22.2833%204%2022.5208%204.09583%2022.7125%204.2875C22.9042%204.47917%2023%204.71667%2023%205V8C23%208.28333%2022.9042%208.52083%2022.7125%208.7125C22.5208%208.90417%2022.2833%209%2022%209H18ZM19%204H21V3C21%202.71667%2020.9042%202.47917%2020.7125%202.2875C20.5208%202.09583%2020.2833%202%2020%202C19.7167%202%2019.4792%202.09583%2019.2875%202.2875C19.0958%202.47917%2019%202.71667%2019%203V4Z'%20fill='%23222631'/%3e%3c/svg%3e",zm="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%2022C10.6167%2022%209.31667%2021.7375%208.1%2021.2125C6.88333%2020.6875%205.825%2019.975%204.925%2019.075C4.025%2018.175%203.3125%2017.1167%202.7875%2015.9C2.2625%2014.6833%202%2013.3833%202%2012C2%2010.6167%202.2625%209.31667%202.7875%208.1C3.3125%206.88333%204.025%205.825%204.925%204.925C5.825%204.025%206.88333%203.3125%208.1%202.7875C9.31667%202.2625%2010.6167%202%2012%202C13.3833%202%2014.6833%202.2625%2015.9%202.7875C17.1167%203.3125%2018.175%204.025%2019.075%204.925C19.975%205.825%2020.6875%206.88333%2021.2125%208.1C21.7375%209.31667%2022%2010.6167%2022%2012C22%2013.3833%2021.7375%2014.6833%2021.2125%2015.9C20.6875%2017.1167%2019.975%2018.175%2019.075%2019.075C18.175%2019.975%2017.1167%2020.6875%2015.9%2021.2125C14.6833%2021.7375%2013.3833%2022%2012%2022ZM11%2019.95V18C10.45%2018%209.97917%2017.8042%209.5875%2017.4125C9.19583%2017.0208%209%2016.55%209%2016V15L4.2%2010.2C4.15%2010.5%204.10417%2010.8%204.0625%2011.1C4.02083%2011.4%204%2011.7%204%2012C4%2014.0167%204.6625%2015.7833%205.9875%2017.3C7.3125%2018.8167%208.98333%2019.7%2011%2019.95ZM17.9%2017.4C18.2333%2017.0333%2018.5333%2016.6375%2018.8%2016.2125C19.0667%2015.7875%2019.2875%2015.3458%2019.4625%2014.8875C19.6375%2014.4292%2019.7708%2013.9583%2019.8625%2013.475C19.9542%2012.9917%2020%2012.5%2020%2012C20%2010.3667%2019.5458%208.875%2018.6375%207.525C17.7292%206.175%2016.5167%205.2%2015%204.6V5C15%205.55%2014.8042%206.02083%2014.4125%206.4125C14.0208%206.80417%2013.55%207%2013%207H11V9C11%209.28333%2010.9042%209.52083%2010.7125%209.7125C10.5208%209.90417%2010.2833%2010%2010%2010H8V12H14C14.2833%2012%2014.5208%2012.0958%2014.7125%2012.2875C14.9042%2012.4792%2015%2012.7167%2015%2013V16H16C16.4333%2016%2016.825%2016.1292%2017.175%2016.3875C17.525%2016.6458%2017.7667%2016.9833%2017.9%2017.4Z'%20fill='%233E5DE7'/%3e%3c/svg%3e",Um="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18%2018C18.4167%2018%2018.7708%2017.8542%2019.0625%2017.5625C19.3542%2017.2708%2019.5%2016.9167%2019.5%2016.5C19.5%2016.0833%2019.3542%2015.7292%2019.0625%2015.4375C18.7708%2015.1458%2018.4167%2015%2018%2015C17.5833%2015%2017.2292%2015.1458%2016.9375%2015.4375C16.6458%2015.7292%2016.5%2016.0833%2016.5%2016.5C16.5%2016.9167%2016.6458%2017.2708%2016.9375%2017.5625C17.2292%2017.8542%2017.5833%2018%2018%2018ZM18%2021C18.5%2021%2018.9667%2020.8833%2019.4%2020.65C19.8333%2020.4167%2020.1917%2020.0917%2020.475%2019.675C20.0917%2019.4417%2019.6917%2019.2708%2019.275%2019.1625C18.8583%2019.0542%2018.4333%2019%2018%2019C17.5667%2019%2017.1417%2019.0542%2016.725%2019.1625C16.3083%2019.2708%2015.9083%2019.4417%2015.525%2019.675C15.8083%2020.0917%2016.1667%2020.4167%2016.6%2020.65C17.0333%2020.8833%2017.5%2021%2018%2021ZM9%208H15V6C15%205.16667%2014.7083%204.45833%2014.125%203.875C13.5417%203.29167%2012.8333%203%2012%203C11.1667%203%2010.4583%203.29167%209.875%203.875C9.29167%204.45833%209%205.16667%209%206V8ZM12.25%2022H6C5.45%2022%204.97917%2021.8042%204.5875%2021.4125C4.19583%2021.0208%204%2020.55%204%2020V10C4%209.45%204.19583%208.97917%204.5875%208.5875C4.97917%208.19583%205.45%208%206%208H7V6C7%204.61667%207.4875%203.4375%208.4625%202.4625C9.4375%201.4875%2010.6167%201%2012%201C13.3833%201%2014.5625%201.4875%2015.5375%202.4625C16.5125%203.4375%2017%204.61667%2017%206V8H18C18.55%208%2019.0208%208.19583%2019.4125%208.5875C19.8042%208.97917%2020%209.45%2020%2010V11.3C19.7%2011.2%2019.3875%2011.125%2019.0625%2011.075C18.7375%2011.025%2018.3833%2011%2018%2011V10H6V20H11.3C11.4333%2020.4%2011.5667%2020.7458%2011.7%2021.0375C11.8333%2021.3292%2012.0167%2021.65%2012.25%2022ZM18%2023C16.6167%2023%2015.4375%2022.5125%2014.4625%2021.5375C13.4875%2020.5625%2013%2019.3833%2013%2018C13%2016.6167%2013.4875%2015.4375%2014.4625%2014.4625C15.4375%2013.4875%2016.6167%2013%2018%2013C19.3833%2013%2020.5625%2013.4875%2021.5375%2014.4625C22.5125%2015.4375%2023%2016.6167%2023%2018C23%2019.3833%2022.5125%2020.5625%2021.5375%2021.5375C20.5625%2022.5125%2019.3833%2023%2018%2023Z'%20fill='%23304DDF'/%3e%3c/svg%3e",Wm="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%2022C10.6333%2022%209.34167%2021.7375%208.125%2021.2125C6.90833%2020.6875%205.84583%2019.9708%204.9375%2019.0625C4.02917%2018.1542%203.3125%2017.0917%202.7875%2015.875C2.2625%2014.6583%202%2013.3667%202%2012C2%2010.6167%202.2625%209.32083%202.7875%208.1125C3.3125%206.90417%204.02917%205.84583%204.9375%204.9375C5.84583%204.02917%206.90833%203.3125%208.125%202.7875C9.34167%202.2625%2010.6333%202%2012%202C12.5333%202%2013.0458%202.0375%2013.5375%202.1125C14.0292%202.1875%2014.5167%202.3%2015%202.45V5C15%205.55%2014.8042%206.02083%2014.4125%206.4125C14.0208%206.80417%2013.55%207%2013%207H11V9C11%209.28333%2010.9042%209.52083%2010.7125%209.7125C10.5208%209.90417%2010.2833%2010%2010%2010H8V12H14C14.2833%2012%2014.5208%2012.0958%2014.7125%2012.2875C14.9042%2012.4792%2015%2012.7167%2015%2013V16H16C16.45%2016%2016.8458%2016.1333%2017.1875%2016.4C17.5292%2016.6667%2017.7667%2017%2017.9%2017.4C18.55%2016.6667%2019.0625%2015.8458%2019.4375%2014.9375C19.8125%2014.0292%2020%2013.05%2020%2012C20%2011.8167%2019.9917%2011.65%2019.975%2011.5C19.9583%2011.35%2019.9333%2011.1833%2019.9%2011H21.95C21.9833%2011.1833%2022%2011.35%2022%2011.5V12C22%2013.3667%2021.7375%2014.6583%2021.2125%2015.875C20.6875%2017.0917%2019.9708%2018.1542%2019.0625%2019.0625C18.1542%2019.9708%2017.0958%2020.6875%2015.8875%2021.2125C14.6792%2021.7375%2013.3833%2022%2012%2022ZM11%2019.95V18C10.45%2018%209.97917%2017.8042%209.5875%2017.4125C9.19583%2017.0208%209%2016.55%209%2016V15L4.2%2010.2C4.15%2010.5%204.10417%2010.8%204.0625%2011.1C4.02083%2011.4%204%2011.7%204%2012C4%2014.0667%204.67083%2015.8458%206.0125%2017.3375C7.35417%2018.8292%209.01667%2019.7%2011%2019.95ZM18%209C17.7167%209%2017.4792%208.90417%2017.2875%208.7125C17.0958%208.52083%2017%208.28333%2017%208V5C17%204.71667%2017.0958%204.47917%2017.2875%204.2875C17.4792%204.09583%2017.7167%204%2018%204V3C18%202.45%2018.1958%201.97917%2018.5875%201.5875C18.9792%201.19583%2019.45%201%2020%201C20.55%201%2021.0208%201.19583%2021.4125%201.5875C21.8042%201.97917%2022%202.45%2022%203V4C22.2833%204%2022.5208%204.09583%2022.7125%204.2875C22.9042%204.47917%2023%204.71667%2023%205V8C23%208.28333%2022.9042%208.52083%2022.7125%208.7125C22.5208%208.90417%2022.2833%209%2022%209H18ZM19%204H21V3C21%202.71667%2020.9042%202.47917%2020.7125%202.2875C20.5208%202.09583%2020.2833%202%2020%202C19.7167%202%2019.4792%202.09583%2019.2875%202.2875C19.0958%202.47917%2019%202.71667%2019%203V4Z'%20fill='%233E5DE7'/%3e%3c/svg%3e",Ef=t=>{const{t:e}=X.useCunningham();return{t:r=>(t==null?void 0:t[r])??e(r)}},In=(t,e=!1)=>{switch(t){case"public":return v.jsx("img",{src:e?zm:Km,alt:""});case"restricted":return v.jsx("img",{src:e?Um:Vm,alt:""});case"authenticated":return v.jsx("img",{src:e?Wm:Hm,alt:""});default:return null}},Zm=({linkReachChoices:t=[],canUpdate:e,linkReach:r="public",onUpdateLinkReach:n,showLinkRole:i=!1,linkRoleChoices:o=[],linkRole:a="reader",onUpdateLinkRole:l,customTranslations:s,topLinkReachMessage:c,topLinkRoleMessage:d})=>{const f=mt(),p=mt(),[g,y]=u.useState([r]),h=g[0],[b,m]=u.useState([a]),C=b[0],{t:E}=Ef(s),$=u.useMemo(()=>t.map(D=>({icon:D.icon??In(D.value),value:D.value,label:E("components.share.linkSettings.reach.choices."+D.value+".title"),...D})),[t]),w=u.useMemo(()=>$.find(D=>D.value===h),[$,h]),x=u.useMemo(()=>o.map(D=>({value:D.value,label:E("components.share.linkSettings.role.choices."+D.value+".title"),...D})),[o]),S=u.useMemo(()=>x.find(D=>D.value===C),[x,C]),N=i&&o.length>0,K=()=>v.jsx("div",{className:"c__share-modal__link-settings__content__select",children:e?v.jsx(kt,{onSelectValue:D=>{y([D]),n==null||n(D)},options:$,isOpen:f.isOpen,topMessage:c,onOpenChange:f.setIsOpen,selectedValues:g,children:v.jsxs(X.Button,{variant:"tertiary",icon:In(h,!0),iconPosition:"left","data-testid":"share-link-reach-dropdown-button",onClick:()=>{e&&f.setIsOpen(!f.isOpen)},children:[w==null?void 0:w.label,v.jsx("span",{className:"material-icons",children:f.isOpen?"arrow_drop_up":"arrow_drop_down"})]})}):v.jsxs("span",{className:"c__share-modal__link-settings__content__select__value",children:[In(h),w==null?void 0:w.label]})}),V=()=>N?v.jsx("div",{className:"c__share-modal__link-settings__content__select-role",children:e?v.jsx(kt,{onSelectValue:D=>{m([D]),l==null||l(D)},options:x,isOpen:p.isOpen,onOpenChange:p.setIsOpen,selectedValues:b,topMessage:d,children:v.jsx(X.Button,{variant:"tertiary","data-testid":"share-link-role-dropdown-button",icon:v.jsx("span",{className:"material-icons",children:p.isOpen?"arrow_drop_up":"arrow_drop_down"}),iconPosition:"right",onClick:()=>{e&&p.setIsOpen(!p.isOpen)},size:"small",children:S==null?void 0:S.label})}):v.jsxs("span",{className:"c__share-modal__link-settings__content__select-role__value",children:[In(C,!0),S==null?void 0:S.label]})}):null;return v.jsxs("div",{className:"c__share-modal__link-settings","data-testid":"share-link-settings",children:[v.jsx("span",{className:"c__share-modal__link-settings__title",children:E("components.share.linkSettings.title")}),v.jsxs("div",{className:"c__share-modal__link-settings__content",children:[K(),v.jsx("div",{className:"c__share-modal__link-settings__content__description desktop",children:E(`components.share.linkSettings.reach.choices.${h}.description`)}),V()]}),v.jsx("div",{className:"c__share-modal__link-settings__content__description mobile",children:E(`components.share.linkSettings.reach.choices.${h}.description`)})]})},Gm=({searchUsersResult:t,children:e,outsideSearchContent:r,accesses:n=[],invitations:i=[],hasNextMembers:o=!1,canUpdate:a=!0,canView:l=!0,hasNextInvitations:s=!1,hideInvitations:c=!1,hideMembers:d=!1,cannotViewChildren:f,customTranslations:p,...g})=>{var I,L;if(!(c&&d)){if(!g.invitationRoles)throw new Error("invitationRoles is required");if(!g.onSearchUsers)throw new Error("onSearchUsers is required")}if(!c&&!g.onInviteUser)throw new Error("onInviteUser is required");if(a&&!l)throw new Error("canView cannot be false if canUpdate is true");const{t:y}=X.useCunningham(),{isMobile:h}=ot(),b=u.useRef(null),[m,C]=u.useState("400px"),E=u.useRef(null),[$,w]=u.useState(""),[x,S]=u.useState(""),[N,K]=u.useState([]),[V,D]=u.useState(((L=(I=g.invitationRoles)==null?void 0:I[0])==null?void 0:L.value)??""),T=h?"calc(100dvh - 32px)":"min(690px, calc(100dvh - 2em - 12px - 32px))",Z=j=>{if(b.current&&clearTimeout(b.current),j===""){S(""),g.onSearchUsers("");return}b.current=setTimeout(()=>{g.onSearchUsers(j),S(j)},300)},k=j=>{w(j),Z(j)},U=x!==""||N.length>0,P=u.useCallback(j=>{K(H=>[...H,j]),w(""),S(""),g.onSearchUsers("")},[g]),O=j=>{K(H=>H.filter(W=>W.id!==j.id))},z=u.useMemo(()=>{const j=t==null?void 0:t.filter(G=>!N.includes(G));let H=y(x!==""?"components.share.user.no_result":"components.share.user.placeholder");const q=(G=>!!G.match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z\-0-9]{2,}))$/))(x??"")&&!(j!=null&&j.some(G=>G.email===x)),Y={id:x,full_name:"",email:x};return q&&(H=void 0),{groupName:y("components.share.search.group_name"),elements:j??[],showWhenEmpty:!0,emptyString:H,endActions:q?[{content:v.jsx(Ta,{user:Y}),onSelect:()=>void P(Y)}]:void 0}},[t,x,y,N,P]),B=j=>{var le;const W=(j==null?void 0:j.clientHeight)??0,q=((le=E.current)==null?void 0:le.clientHeight)??0,Y=`calc(${T} - ${W}px - ${q}px - 70px - 10px)`;C(Y)},M=!c&&!U&&!g.loading&&i.length>0,R=!d&&!U&&!g.loading&&n.length>0,_=l?c&&d?"empty":"search":"cannot_view";return v.jsx(X.Modal,{title:g.modalTitle??y("components.share.modalTitle"),isOpen:g.isOpen,onClose:g.onClose,"aria-label":y("components.share.modalAriaLabel"),closeOnClickOutside:!0,size:h?X.ModalSize.FULL:X.ModalSize.LARGE,children:v.jsxs("div",{className:"c__share-modal no-padding",children:[a&&N.length>0&&v.jsx("div",{className:"c__share-modal__selected-users",ref:E,children:v.jsx(vf,{users:N,onRemoveUser:O,roles:g.invitationRoles,selectedRole:V,onSelectRole:D,onShare:()=>{g.onInviteUser(N,V),K([])}})}),_==="cannot_view"&&v.jsxs("div",{className:"c__share-modal__cannot-view",style:{height:m},children:[v.jsx("div",{className:"c__share-modal__cannot-view__content",children:v.jsx("p",{children:g.cannotViewMessage??y("components.share.cannot_view.message")})}),f]}),_==="search"&&v.jsx(b1,{onFilter:k,inputValue:$,showInput:a,loading:g.loading,placeholder:y("components.share.user.placeholder"),children:v.jsxs("div",{style:{height:m,overflowY:"auto"},children:[U&&v.jsx("div",{className:"c__share-modal__search-users","data-testid":"search-users-list",children:v.jsx(m1,{group:z,onSelect:j=>{P(j)},renderElement:j=>v.jsx(Ta,{user:j})})}),!U&&e,M&&v.jsxs("div",{className:"c__share-modal__invitations","data-testid":"invitations-list",children:[v.jsx("span",{className:"c__share-modal__invitations-title",children:y("components.share.invitations.title")}),i.map(j=>{var H;return v.jsx(Cf,{invitation:j,roles:g.invitationRoles,updateRole:g.onUpdateInvitation,deleteInvitation:g.onDeleteInvitation,canUpdate:a,roleTopMessage:(H=g.invitationRoleTopMessage)==null?void 0:H.call(g,j)},j.id)}),v.jsx(w2,{show:s,onShowMore:g.onLoadNextInvitations})]}),R&&v.jsxs("div",{className:"c__share-modal__members","data-testid":"members-list",children:[v.jsx("span",{className:"c__share-modal__members-title",children:y(n.length>1?"components.share.members.title_plural":"components.share.members.title_singular",{count:n.length})}),n.map(j=>{var H,W;return v.jsx(yf,{accessData:j,accessRoleKey:g.accessRoleKey??"role",canUpdate:a,roleTopMessage:(H=g.accessRoleTopMessage)==null?void 0:H.call(g,j),roles:((W=g.getAccessRoles)==null?void 0:W.call(g,j))??g.invitationRoles,updateRole:g.onUpdateAccess,deleteAccess:g.onDeleteAccess},j.id)}),v.jsx(w2,{show:o,onShowMore:g.onLoadNextMembers})]})]})}),v.jsx("div",{ref:B,children:!U&&v.jsxs("div",{className:"c__share-modal__footer",children:[g.linkSettings&&v.jsx(Zm,{linkReachChoices:g.linkReachChoices,canUpdate:a,onUpdateLinkReach:g.onUpdateLinkReach,linkReach:g.linkReach,linkRoleChoices:g.linkRoleChoices,linkRole:g.linkRole,onUpdateLinkRole:g.onUpdateLinkRole,showLinkRole:g.showLinkRole,customTranslations:p,topLinkReachMessage:g.topLinkReachMessage,topLinkRoleMessage:g.topLinkRoleMessage}),r]})})]})})},w2=({show:t,onShowMore:e})=>{const{t:r}=X.useCunningham();return t?v.jsx("div",{className:"c__share-modal__show-more-button",children:v.jsx(X.Button,{variant:"tertiary",size:"small",icon:v.jsx("span",{className:"material-icons",children:"arrow_downward"}),onClick:e,children:r("components.share.members.load_more")})}):null},qm=({onCopyLink:t,onOk:e})=>{const{t:r}=X.useCunningham();return v.jsxs("div",{className:"c__share-modal__copy-link-footer",children:[v.jsx(X.Button,{variant:"secondary",icon:v.jsx("span",{className:"material-icons",children:"link"}),onClick:t,children:r("components.share.copyLink")}),v.jsx(X.Button,{variant:"primary",onClick:e,children:r("components.share.ok")})]})},wf=({user:t,settingsItems:e,showSettings:r,actions:n,termOfServiceUrl:i})=>{const o=!!n||!!i,{t:a}=X.useCunningham(),l=t?t.full_name??t.email:void 0,s=l?Al(l):void 0;return t?v.jsx(v.Fragment,{children:v.jsxs("div",{className:"user-menu__content__body",children:[v.jsxs("div",{className:"user-menu__content__body__user-info",style:{"--gradient-color":`var(--c--contextuals--background--palette--${s}--primary)`},children:[v.jsx(Gi,{fullName:l}),v.jsx("div",{className:"user-menu__content__identity__name",children:t.full_name?v.jsxs(v.Fragment,{children:[v.jsx("p",{className:"user-menu__content__identity__name",children:v.jsx("strong",{children:t.full_name})}),v.jsx("p",{className:"user-menu__content__identity__email",children:t.email})]}):v.jsx("p",{className:"user-menu__content__identity__email",children:v.jsx("strong",{children:t.email})})})]}),r&&v.jsxs(v.Fragment,{children:[v.jsx(an,{withPadding:!1}),v.jsx("div",{className:"user-menu__content__body__settings",children:e.map(c=>v.jsx(xf,{label:c.label,icon:c.icon,onClick:c.onClick},c.label))})]}),o&&v.jsxs(v.Fragment,{children:[v.jsx(an,{withPadding:!1}),v.jsxs("div",{className:"user-menu__actions user-menu__actions--mobile",children:[n&&v.jsx("div",{className:"user-menu__actions__left",children:n}),i&&v.jsx("div",{className:"user-menu__actions__right",children:v.jsx(X.Button,{variant:"tertiary",target:"_blank",href:i,size:"small",color:"neutral",children:a("components.userMenu.term_of_service")})})]})]})]})}):null},Ym=({...t})=>{const{t:e}=X.useCunningham(),r=Sf();return v.jsxs(v.Fragment,{children:[v.jsx(Df,{user:t.user,...r}),v.jsx(X.Modal,{isOpen:r.openState,onClose:()=>r.setOpenState(!1),"aria-label":e("components.userMenu.dialogTitle"),size:X.ModalSize.FULL,children:v.jsxs("div",{className:"user-menu__popover user-menu__popover--mobile",children:[v.jsx(X.Button,{variant:"tertiary",className:"user-menu__close-button",onClick:r.toggleUserMenu,"aria-label":e("components.userMenu.close"),color:"neutral",icon:v.jsx(Jr,{name:"close"}),size:"small"}),v.jsx(wf,{...t}),v.jsx("div",{className:"user-menu__footer--mobile",children:v.jsx(X.Button,{variant:"primary",onClick:r.toggleUserMenu,children:e("components.share.ok")})})]})})]})},Xm=({user:t,settingsItems:e,showSettings:r,actions:n,termOfServiceUrl:i})=>{const{t:o}=X.useCunningham(),a=Sf();return v.jsxs(v.Fragment,{children:[v.jsx(Df,{user:t,...a}),v.jsx(Pi,{className:"c__dropdown-menu user-menu__popover",triggerRef:a.triggerRef,isOpen:a.openState,onOpenChange:a.setOpenState,children:v.jsx(Nh,{"aria-label":o("components.userMenu.dialogTitle"),children:v.jsx(wf,{user:t,settingsItems:e,showSettings:r,actions:n,termOfServiceUrl:i})})})]})},Jm=({user:t,settingsCTA:e,logout:r,termOfServiceUrl:n,actions:i})=>{const{t:o}=X.useCunningham(),{isTablet:a}=ot(),l=u.useMemo(()=>{const c=[];return e&&c.push({label:o("components.userMenu.manage_account"),icon:"settings",onClick:typeof e=="function"?e:typeof e=="string"?()=>window.open(e,"_blank","noopener,noreferrer"):void 0}),r&&c.push({label:o("components.userMenu.logout"),icon:"logout",onClick:r}),c},[e,r,o]),s=l.length>0;return t?v.jsx(v.Fragment,{children:a?v.jsx(Ym,{user:t,settingsItems:l,showSettings:s,actions:i,termOfServiceUrl:n}):v.jsx(Xm,{user:t,settingsItems:l,showSettings:s,actions:i,termOfServiceUrl:n})}):null},xf=({label:t,icon:e,onClick:r})=>v.jsxs("div",{className:"user-menu__item",onClick:r,children:[v.jsx(Jr,{name:e}),v.jsx("span",{className:"user-menu__item__label",children:t})]}),Df=({user:t,triggerRef:e,id:r,openState:n,toggleUserMenu:i})=>{const{t:o}=X.useCunningham();return t?v.jsx(X.Button,{variant:"tertiary",size:"small",ref:e,id:r,onClick:i,"aria-label":o(n?"components.userMenu.close":"components.userMenu.open"),title:o(n?"components.userMenu.close":"components.userMenu.open"),children:v.jsx(Gi,{fullName:t.full_name??t.email})}):null},Sf=()=>{const t=u.useId(),[e,r]=u.useState(!1),n=()=>{r(!e)},i=u.useRef(null);return{id:t,openState:e,setOpenState:r,toggleUserMenu:n,triggerRef:i}},Tl=(t,e)=>e&&t.activeIcon?t.activeIcon:t.icon,Ff=u.forwardRef(({step:t,isActive:e,onClick:r,index:n,ariaLabel:i},o)=>{const a=Tl(t,e);return v.jsxs("button",{ref:o,type:"button",className:be("c__onboarding-modal__step",{"c__onboarding-modal__step--active":e}),onClick:r,"aria-current":e?"step":void 0,"aria-label":i,tabIndex:e?0:-1,"data-testid":`onboarding-step-${n}`,children:[v.jsx("div",{className:"c__onboarding-modal__step__icon","aria-hidden":"true",children:a}),v.jsxs("div",{className:"c__onboarding-modal__step__content",children:[v.jsx("span",{className:"c__onboarding-modal__step__title",children:t.title}),e&&t.description&&v.jsx("span",{className:"c__onboarding-modal__step__description",children:t.description})]})]})});Ff.displayName="OnboardingStepItem";const Qm=200,ey=({isOpen:t,size:e=X.ModalSize.LARGE,appName:r,mainTitle:n,steps:i,initialStep:o=0,footerLink:a,onSkip:l,onComplete:s,onClose:c,labels:d})=>{const{t:f}=X.useCunningham(),{isMobile:p}=ot(),[g,y]=u.useState(o),[h,b]=u.useState(o),[m,C]=u.useState(!1),E=u.useRef([]),$=u.useRef(null),w=u.useRef(null),x=g===i.length-1,S=g===0,N=(d==null?void 0:d.skip)??f("components.onboarding.skip"),K=(d==null?void 0:d.next)??f("components.onboarding.next"),V=(d==null?void 0:d.previous)??f("components.onboarding.previous"),D=(d==null?void 0:d.complete)??f("components.onboarding.complete"),T=i[h],Z=u.useCallback((F,_)=>{const I=f("components.onboarding.stepLabel").replace("{current}",String(F+1)).replace("{total}",String(i.length)).replace("{title}",_);return F===g?I+f("components.onboarding.currentStepSuffix"):I},[f,i.length,g]),k=u.useCallback(()=>f("components.onboarding.contentRegionLabel").replace("{current}",String(h+1)).replace("{total}",String(i.length)),[f,h,i.length]);u.useEffect(()=>()=>{w.current&&clearTimeout(w.current)},[]),u.useEffect(()=>{const F=E.current[g];F&&F.scrollIntoView({behavior:"smooth",block:"nearest"})},[g]),u.useEffect(()=>{if(t){w.current&&(clearTimeout(w.current),w.current=null),y(o),b(o),C(!1);const F=setTimeout(()=>{requestAnimationFrame(()=>{const _=E.current[o];_&&!p&&_.focus()})},150);return()=>clearTimeout(F)}},[t,o,p]);const U=u.useCallback(F=>{F!==g&&(w.current&&clearTimeout(w.current),C(!0),y(F),w.current=setTimeout(()=>{b(F),C(!1),w.current=null},Qm))},[g]);u.useEffect(()=>{const F=$.current;if(!F)return;const _=I=>{if(I.key!=="ArrowUp"&&I.key!=="ArrowDown"||!I.target.closest(".c__onboarding-modal__step"))return;I.preventDefault();const j=I.key==="ArrowDown"?(g+1)%i.length:(g-1+i.length)%i.length;U(j),setTimeout(()=>{var H;(H=E.current[j])==null||H.focus()},0)};return F.addEventListener("keydown",_),()=>F.removeEventListener("keydown",_)},[g,i.length,U]);const P=u.useCallback(()=>{x?s():U(g+1)},[x,s,U,g]),O=u.useCallback(()=>{S||U(g-1)},[S,U,g]),z=u.useCallback(()=>{l==null||l()},[l]);if(i.length===0)return null;const B=Math.max(0,Math.min(o,i.length-1));B!==o&&process.env.NODE_ENV==="development"&&console.warn(`OnboardingModal: initialStep (${o}) is out of bounds. Using ${B} instead.`);const M=a?v.jsxs("a",{className:"c__onboarding-modal__footer-link",href:a.href,onClick:F=>{a.onClick&&(a.href||F.preventDefault(),a.onClick())},children:[v.jsx("span",{className:"material-icons","aria-hidden":"true",children:"info"}),a.label]}):void 0,R=v.jsxs(v.Fragment,{children:[p&&!S&&v.jsx(X.Button,{variant:"secondary",onClick:O,"data-testid":"onboarding-previous",children:V}),l&&v.jsx(X.Button,{variant:"tertiary",onClick:z,"data-testid":"onboarding-skip",children:N}),v.jsx(X.Button,{variant:"primary",onClick:P,"data-testid":"onboarding-next",children:x?D:K})]});return v.jsx(X.Modal,{isOpen:t,onClose:c,size:p?X.ModalSize.FULL:e,closeOnClickOutside:!0,title:"","aria-label":n,leftActions:M,rightActions:R,children:v.jsxs("div",{className:"c__onboarding-modal","data-testid":"onboarding-modal",children:[v.jsxs("div",{className:"c__onboarding-modal__header",children:[r&&v.jsx("div",{className:"c__onboarding-modal__app-name",children:r}),v.jsx("h2",{className:"c__onboarding-modal__main-title",children:n})]}),v.jsxs("div",{className:"c__onboarding-modal__body",children:[v.jsx("div",{ref:$,className:"c__onboarding-modal__steps",role:"tablist","aria-orientation":"vertical","aria-label":n,children:i.map((F,_)=>v.jsx(Ff,{ref:I=>{E.current[_]=I},step:F,index:_,totalSteps:i.length,isActive:_===g,ariaLabel:Z(_,F.title),onClick:()=>U(_)},_))}),v.jsx("div",{className:"c__onboarding-modal__content",role:"tabpanel","aria-live":"polite","aria-atomic":"true","aria-label":k(),children:v.jsx("div",{className:be("c__onboarding-modal__content-inner",{"c__onboarding-modal__content-inner--fading":m}),children:T==null?void 0:T.content})}),v.jsxs("div",{className:"c__onboarding-modal__mobile-step",children:[v.jsx("div",{className:"c__onboarding-modal__mobile-step__icon","aria-hidden":"true",children:T&&Tl(T,!0)}),v.jsxs("div",{className:"c__onboarding-modal__mobile-step__content",children:[v.jsx("span",{className:"c__onboarding-modal__mobile-step__title",children:T==null?void 0:T.title}),(T==null?void 0:T.description)&&v.jsx("span",{className:"c__onboarding-modal__mobile-step__description",children:T.description})]})]})]})]})})},ty=(t,e={})=>Ti.getThemesFromGlobals(br(Xr,t),{...e,overrides:br(ki,e.overrides??{})});Object.defineProperty(exports,"ModalSize",{enumerable:!0,get:()=>X.ModalSize});exports.AVATAR_COLORS=Aa;exports.AccessRoleDropdown=Zi;exports.Badge=Lm;exports.ContextMenu=Gh;exports.ContextMenuProvider=Zh;exports.CunninghamProvider=Rf;exports.CustomTabs=gg;exports.DropdownMenu=kt;exports.Filter=Xh;exports.Footer=Yh;exports.Header=cd;exports.Hero=Qh;exports.HomeGutter=e7;exports.HorizontalSeparator=an;exports.Icon=Jr;exports.IconSize=De;exports.IconType=ii;exports.InvitationUserSelectorItem=bf;exports.InvitationUserSelectorList=vf;exports.LaGaufre=d7;exports.LaGaufreV2=od;exports.Label=Id;exports.LanguagePicker=sd;exports.LeftPanel=ud;exports.MainLayout=rp;exports.OnboardingModal=ey;exports.ProConnectButton=S2;exports.QuickSearch=b1;exports.QuickSearchGroup=m1;exports.QuickSearchInput=v1;exports.QuickSearchItem=Bn;exports.QuickSearchItemTemplate=Ki;exports.SearchUserItem=Ta;exports.ShareInvitationItem=Cf;exports.ShareMemberItem=yf;exports.ShareModal=Gm;exports.ShareModalCopyLinkFooter=qm;exports.Spinner=li;exports.TreeApi=vr;exports.TreeContext=_l;exports.TreeProvider=Dm;exports.TreeView=Sm;exports.TreeViewItem=Bm;exports.TreeViewMoveModeEnum=xt;exports.TreeViewNodeTypeEnum=se;exports.TreeViewSeparator=df;exports.UserAvatar=Gi;exports.UserMenu=Jm;exports.UserMenuItem=xf;exports.UserRow=qi;exports.VerticalSeparator=pg;exports.WithLabel=ip;exports.anctGlobals=id;exports.containerSizeMap=ld;exports.cunninghamConfig=fa;exports.dsfrGlobals=nd;exports.getContainerSize=w7;exports.getIconSize=x7;exports.getStepIcon=Tl;exports.getUIKitThemesFromGlobals=ty;exports.getUserColor=Al;exports.getUserInitials=mf;exports.headerHeight=np;exports.iconSizeMap=ad;exports.isNode=Ur;exports.isSeparator=fi;exports.isTitle=hi;exports.isViewMore=ff;exports.locales=D2;exports.useArrowRoving=jm;exports.useContextMenuContext=Qu;exports.useCustomTranslations=Ef;exports.useDropdownMenu=mt;exports.useResponsive=ot;exports.useTree=hf;exports.useTreeContext=Pl;exports.whiteLabelGlobals=rd;
88
+ For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return A.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},Z9="DialogDescriptionWarning",G9=({contentRef:t,descriptionId:e})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${s1(Z9).contentName}}.`;return A.useEffect(()=>{var o;const i=(o=t.current)==null?void 0:o.getAttribute("aria-describedby");e&&i&&(document.getElementById(e)||console.warn(n))},[n,t,e]),null},q9=Jd,Y9=t1,X9=r1,J9=n1,Mr='[cmdk-group=""]',$o='[cmdk-group-items=""]',Q9='[cmdk-group-heading=""]',ml='[cmdk-item=""]',m0=`${ml}:not([aria-disabled="true"])`,ma="cmdk-item-select",Ct="data-value",eg=(t,e,r)=>pp(t,e,r),c1=A.createContext(void 0),dn=()=>A.useContext(c1),u1=A.createContext(void 0),yl=()=>A.useContext(u1),d1=A.createContext(void 0),f1=A.forwardRef((t,e)=>{let r=ir(()=>{var $,P;return{search:"",value:(P=($=t.value)!=null?$:t.defaultValue)!=null?P:"",filtered:{count:0,items:new Map,groups:new Set}}}),n=ir(()=>new Set),i=ir(()=>new Map),o=ir(()=>new Map),a=ir(()=>new Set),l=h1(t),{label:s,children:c,value:d,onValueChange:f,filter:p,shouldFilter:g,loop:y,disablePointerSelection:h=!1,vimBindings:v=!0,...m}=t,C=tt(),E=tt(),F=tt(),D=A.useRef(null),w=dg();It(()=>{if(d!==void 0){let $=d.trim();r.current.value=$,S.emit()}},[d]),It(()=>{w(6,U)},[]);let S=A.useMemo(()=>({subscribe:$=>(a.current.add($),()=>a.current.delete($)),snapshot:()=>r.current,setState:($,P,T)=>{var M,j,H;if(!Object.is(r.current[$],P)){if(r.current[$]=P,$==="search")B(),V(),w(1,x);else if($==="value"&&(T||w(5,U),((M=l.current)==null?void 0:M.value)!==void 0)){let Z=P??"";(H=(j=l.current).onValueChange)==null||H.call(j,Z);return}S.emit()}},emit:()=>{a.current.forEach($=>$())}}),[]),O=A.useMemo(()=>({value:($,P,T)=>{var M;P!==((M=o.current.get($))==null?void 0:M.value)&&(o.current.set($,{value:P,keywords:T}),r.current.filtered.items.set($,K(P,T)),w(2,()=>{V(),S.emit()}))},item:($,P)=>(n.current.add($),P&&(i.current.has(P)?i.current.get(P).add($):i.current.set(P,new Set([$]))),w(3,()=>{B(),V(),r.current.value||x(),S.emit()}),()=>{o.current.delete($),n.current.delete($),r.current.filtered.items.delete($);let T=k();w(4,()=>{B(),(T==null?void 0:T.getAttribute("id"))===$&&x(),S.emit()})}),group:$=>(i.current.has($)||i.current.set($,new Set),()=>{o.current.delete($),i.current.delete($)}),filter:()=>l.current.shouldFilter,label:s||t["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:C,inputId:F,labelId:E,listInnerRef:D}),[]);function K($,P){var T,M;let j=(M=(T=l.current)==null?void 0:T.filter)!=null?M:eg;return $?j($,r.current.search,P):0}function V(){if(!r.current.search||l.current.shouldFilter===!1)return;let $=r.current.filtered.items,P=[];r.current.filtered.groups.forEach(M=>{let j=i.current.get(M),H=0;j.forEach(Z=>{let q=$.get(Z);H=Math.max(q,H)}),P.push([M,H])});let T=D.current;W().sort((M,j)=>{var H,Z;let q=M.getAttribute("id"),Y=j.getAttribute("id");return((H=$.get(Y))!=null?H:0)-((Z=$.get(q))!=null?Z:0)}).forEach(M=>{let j=M.closest($o);j?j.appendChild(M.parentElement===j?M:M.closest(`${$o} > *`)):T.appendChild(M.parentElement===T?M:M.closest(`${$o} > *`))}),P.sort((M,j)=>j[1]-M[1]).forEach(M=>{var j;let H=(j=D.current)==null?void 0:j.querySelector(`${Mr}[${Ct}="${encodeURIComponent(M[0])}"]`);H==null||H.parentElement.appendChild(H)})}function x(){let $=W().find(T=>T.getAttribute("aria-disabled")!=="true"),P=$==null?void 0:$.getAttribute(Ct);S.setState("value",P||void 0)}function B(){var $,P,T,M;if(!r.current.search||l.current.shouldFilter===!1){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let j=0;for(let H of n.current){let Z=(P=($=o.current.get(H))==null?void 0:$.value)!=null?P:"",q=(M=(T=o.current.get(H))==null?void 0:T.keywords)!=null?M:[],Y=K(Z,q);r.current.filtered.items.set(H,Y),Y>0&&j++}for(let[H,Z]of i.current)for(let q of Z)if(r.current.filtered.items.get(q)>0){r.current.filtered.groups.add(H);break}r.current.filtered.count=j}function U(){var $,P,T;let M=k();M&&((($=M.parentElement)==null?void 0:$.firstChild)===M&&((T=(P=M.closest(Mr))==null?void 0:P.querySelector(Q9))==null||T.scrollIntoView({block:"nearest"})),M.scrollIntoView({block:"nearest"}))}function k(){var $;return($=D.current)==null?void 0:$.querySelector(`${ml}[aria-selected="true"]`)}function W(){var $;return Array.from((($=D.current)==null?void 0:$.querySelectorAll(m0))||[])}function _($){let P=W()[$];P&&S.setState("value",P.getAttribute(Ct))}function I($){var P;let T=k(),M=W(),j=M.findIndex(Z=>Z===T),H=M[j+$];(P=l.current)!=null&&P.loop&&(H=j+$<0?M[M.length-1]:j+$===M.length?M[0]:M[j+$]),H&&S.setState("value",H.getAttribute(Ct))}function z($){let P=k(),T=P==null?void 0:P.closest(Mr),M;for(;T&&!M;)T=$>0?cg(T,Mr):ug(T,Mr),M=T==null?void 0:T.querySelector(m0);M?S.setState("value",M.getAttribute(Ct)):I($)}let L=()=>_(W().length-1),N=$=>{$.preventDefault(),$.metaKey?L():$.altKey?z(1):I(1)},R=$=>{$.preventDefault(),$.metaKey?_(0):$.altKey?z(-1):I(-1)};return A.createElement(Ce.div,{ref:e,tabIndex:-1,...m,"cmdk-root":"",onKeyDown:$=>{var P;if((P=m.onKeyDown)==null||P.call(m,$),!$.defaultPrevented)switch($.key){case"n":case"j":{v&&$.ctrlKey&&N($);break}case"ArrowDown":{N($);break}case"p":case"k":{v&&$.ctrlKey&&R($);break}case"ArrowUp":{R($);break}case"Home":{$.preventDefault(),_(0);break}case"End":{$.preventDefault(),L();break}case"Enter":if(!$.nativeEvent.isComposing&&$.keyCode!==229){$.preventDefault();let T=k();if(T){let M=new Event(ma);T.dispatchEvent(M)}}}}},A.createElement("label",{"cmdk-label":"",htmlFor:O.inputId,id:O.labelId,style:hg},s),ji(t,$=>A.createElement(u1.Provider,{value:S},A.createElement(c1.Provider,{value:O},$))))}),tg=A.forwardRef((t,e)=>{var r,n;let i=tt(),o=A.useRef(null),a=A.useContext(d1),l=dn(),s=h1(t),c=(n=(r=s.current)==null?void 0:r.forceMount)!=null?n:a==null?void 0:a.forceMount;It(()=>{if(!c)return l.item(i,a==null?void 0:a.id)},[c]);let d=p1(i,o,[t.value,t.children,o],t.keywords),f=yl(),p=Ot(w=>w.value&&w.value===d.current),g=Ot(w=>c||l.filter()===!1?!0:w.search?w.filtered.items.get(i)>0:!0);A.useEffect(()=>{let w=o.current;if(!(!w||t.disabled))return w.addEventListener(ma,y),()=>w.removeEventListener(ma,y)},[g,t.onSelect,t.disabled]);function y(){var w,S;h(),(S=(w=s.current).onSelect)==null||S.call(w,d.current)}function h(){f.setState("value",d.current,!0)}if(!g)return null;let{disabled:v,value:m,onSelect:C,forceMount:E,keywords:F,...D}=t;return A.createElement(Ce.div,{ref:on([o,e]),...D,id:i,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!p,"data-disabled":!!v,"data-selected":!!p,onPointerMove:v||l.getDisablePointerSelection()?void 0:h,onClick:v?void 0:y},t.children)}),rg=A.forwardRef((t,e)=>{let{heading:r,children:n,forceMount:i,...o}=t,a=tt(),l=A.useRef(null),s=A.useRef(null),c=tt(),d=dn(),f=Ot(g=>i||d.filter()===!1?!0:g.search?g.filtered.groups.has(a):!0);It(()=>d.group(a),[]),p1(a,l,[t.value,t.heading,s]);let p=A.useMemo(()=>({id:a,forceMount:i}),[i]);return A.createElement(Ce.div,{ref:on([l,e]),...o,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},r&&A.createElement("div",{ref:s,"cmdk-group-heading":"","aria-hidden":!0,id:c},r),ji(t,g=>A.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?c:void 0},A.createElement(d1.Provider,{value:p},g))))}),ng=A.forwardRef((t,e)=>{let{alwaysRender:r,...n}=t,i=A.useRef(null),o=Ot(a=>!a.search);return!r&&!o?null:A.createElement(Ce.div,{ref:on([i,e]),...n,"cmdk-separator":"",role:"separator"})}),ig=A.forwardRef((t,e)=>{let{onValueChange:r,...n}=t,i=t.value!=null,o=yl(),a=Ot(d=>d.search),l=Ot(d=>d.value),s=dn(),c=A.useMemo(()=>{var d;let f=(d=s.listInnerRef.current)==null?void 0:d.querySelector(`${ml}[${Ct}="${encodeURIComponent(l)}"]`);return f==null?void 0:f.getAttribute("id")},[]);return A.useEffect(()=>{t.value!=null&&o.setState("search",t.value)},[t.value]),A.createElement(Ce.input,{ref:e,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":s.listId,"aria-labelledby":s.labelId,"aria-activedescendant":c,id:s.inputId,type:"text",value:i?t.value:a,onChange:d=>{i||o.setState("search",d.target.value),r==null||r(d.target.value)}})}),og=A.forwardRef((t,e)=>{let{children:r,label:n="Suggestions",...i}=t,o=A.useRef(null),a=A.useRef(null),l=dn();return A.useEffect(()=>{if(a.current&&o.current){let s=a.current,c=o.current,d,f=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{let p=s.offsetHeight;c.style.setProperty("--cmdk-list-height",p.toFixed(1)+"px")})});return f.observe(s),()=>{cancelAnimationFrame(d),f.unobserve(s)}}},[]),A.createElement(Ce.div,{ref:on([o,e]),...i,"cmdk-list":"",role:"listbox","aria-label":n,id:l.listId},ji(t,s=>A.createElement("div",{ref:on([a,l.listInnerRef]),"cmdk-list-sizer":""},s)))}),ag=A.forwardRef((t,e)=>{let{open:r,onOpenChange:n,overlayClassName:i,contentClassName:o,container:a,...l}=t;return A.createElement(q9,{open:r,onOpenChange:n},A.createElement(Y9,{container:a},A.createElement(X9,{"cmdk-overlay":"",className:i}),A.createElement(J9,{"aria-label":t.label,"cmdk-dialog":"",className:o},A.createElement(f1,{ref:e,...l}))))}),lg=A.forwardRef((t,e)=>Ot(r=>r.filtered.count===0)?A.createElement(Ce.div,{ref:e,...t,"cmdk-empty":"",role:"presentation"}):null),sg=A.forwardRef((t,e)=>{let{progress:r,children:n,label:i="Loading...",...o}=t;return A.createElement(Ce.div,{ref:e,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},ji(t,a=>A.createElement("div",{"aria-hidden":!0},a)))}),nn=Object.assign(f1,{List:og,Item:tg,Input:ig,Group:rg,Separator:ng,Dialog:ag,Empty:lg,Loading:sg});function cg(t,e){let r=t.nextElementSibling;for(;r;){if(r.matches(e))return r;r=r.nextElementSibling}}function ug(t,e){let r=t.previousElementSibling;for(;r;){if(r.matches(e))return r;r=r.previousElementSibling}}function h1(t){let e=A.useRef(t);return It(()=>{e.current=t}),e}var It=typeof window>"u"?A.useEffect:A.useLayoutEffect;function ir(t){let e=A.useRef();return e.current===void 0&&(e.current=t()),e}function on(t){return e=>{t.forEach(r=>{typeof r=="function"?r(e):r!=null&&(r.current=e)})}}function Ot(t){let e=yl(),r=()=>t(e.snapshot());return Za.useSyncExternalStore(e.subscribe,r,r)}function p1(t,e,r,n=[]){let i=A.useRef(),o=dn();return It(()=>{var a;let l=(()=>{var c;for(let d of r){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(c=d.current.textContent)==null?void 0:c.trim():i.current}})(),s=n.map(c=>c.trim());o.value(t,l,s),(a=e.current)==null||a.setAttribute(Ct,l),i.current=l}),i}var dg=()=>{let[t,e]=A.useState(),r=ir(()=>new Map);return It(()=>{r.current.forEach(n=>n()),r.current=new Map},[t]),(n,i)=>{r.current.set(n,i),e({})}};function fg(t){let e=t.type;return typeof e=="function"?e(t.props):"render"in e?e.render(t.props):t}function ji({asChild:t,children:e},r){return t&&A.isValidElement(e)?A.cloneElement(fg(e),{ref:e.ref},r(e.props.children)):r(e)}var hg={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const g1=({withPadding:t=!0,direction:e,width:r="thin",size:n})=>b.jsx("div",{style:{"--size":n},className:ve("c__separator",`c__separator--${e}`,`c__separator--${r}`,{"with-padding":t})}),an=t=>b.jsx(g1,{direction:"horizontal",...t}),v1=({loading:t,inputValue:e,onFilter:r,placeholder:n,children:i,withSeparator:o=!0})=>{const{t:a}=X.useCunningham();return i?b.jsxs(b.Fragment,{children:[i,o&&b.jsx(an,{})]}):b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"quick-search-input-container",children:[!t&&b.jsx("span",{className:"material-icons",children:"search"}),t&&b.jsx("div",{children:b.jsx(li,{size:"md"})}),b.jsx(nn.Input,{autoFocus:!0,"aria-label":a("Quick search input"),onClick:l=>{l.stopPropagation()},role:"combobox",value:e,placeholder:n,onValueChange:r})]}),o&&b.jsx(an,{withPadding:!0})]})},pg=t=>{let e=!1;return u.Children.forEach(t,r=>{e=e||!!r}),e},b1=({onFilter:t,inputContent:e,inputValue:r,loading:n,showInput:i=!0,label:o,placeholder:a,children:l})=>{const s=u.useRef(null);return b.jsx(b.Fragment,{children:b.jsx("div",{className:"quick-search-container",children:b.jsxs(nn,{label:o,shouldFilter:!1,ref:s,children:[i&&b.jsx(v1,{loading:n,withSeparator:pg(l),inputValue:r,onFilter:t,placeholder:a,children:e}),b.jsx(nn.List,{children:b.jsx("div",{children:l})})]})})})},Bn=({children:t,onSelect:e,id:r})=>b.jsx(nn.Item,{value:r,onSelect:e,children:t}),m1=({group:t,onSelect:e,renderElement:r})=>{var n,i;return!t.showWhenEmpty&&t.elements.length===0?null:b.jsx("div",{children:b.jsxs(nn.Group,{heading:t.groupName,forceMount:!1,children:[(n=t.startActions)==null?void 0:n.map((o,a)=>b.jsx(Bn,{onSelect:o.onSelect,children:o.content},`${t.groupName}-action-${a}`)),t.elements.map((o,a)=>b.jsx(Bn,{id:`${t.groupName}-element-${a}`,onSelect:()=>{e==null||e(o)},children:r==null?void 0:r(o)},`${t.groupName}-element-${a}`)),(i=t.endActions)==null?void 0:i.map((o,a)=>b.jsx(Bn,{onSelect:o.onSelect,children:o.content},`${t.groupName}-action-${a}`)),t.emptyString&&t.elements.length===0&&b.jsx("span",{className:"quick-search-group__empty-string",children:t.emptyString})]},t.groupName)})},Ki=({alwaysShowRight:t=!1,left:e,right:r,testId:n})=>{const{isDesktop:i}=ot();return b.jsxs("div",{className:"c__quick-search-item-template","data-testid":n,children:[b.jsx("div",{className:"c__quick-search-item-template__left",children:e}),i&&r&&b.jsx("div",{className:ve("c__quick-search-item-template__right",{"always-show-right":t,"show-right-on-focus":!t}),children:r})]})},gg=t=>b.jsx(g1,{direction:"vertical",...t}),vg=({tabs:t,defaultSelectedTab:e,fullWidth:r=!1})=>t.length===0?null:b.jsx("div",{className:ve("c__tabs",{"c__tabs__full-width":r}),children:b.jsxs(Kh,{defaultSelectedKey:e,children:[b.jsx(Hh,{"aria-label":"History of Ancient Rome",children:t.map(n=>b.jsxs(Uh,{id:n.id,children:[n.icon&&b.jsx("span",{className:"material-icons",children:n.icon}),n.label]},n.id))}),t.map(n=>b.jsx(Wh,{id:n.id,children:n.content},n.id))]})}),y1=u.createContext(null);function ke(){const t=u.useContext(y1);if(t===null)throw new Error("No Tree Api Provided");return t}const C1=u.createContext(null);function bg(){const t=u.useContext(C1);if(t===null)throw new Error("Provide a NodesContext");return t}const E1=u.createContext(null);function mg(){const t=u.useContext(E1);if(t===null)throw new Error("Provide a DnDContext");return t}const w1=u.createContext(0);function x1(){u.useContext(w1)}function Ln(t,e,r){return Math.max(Math.min(t,r),e)}function D1(t){return t&&t.isLeaf}function S1(t){return t&&t.isInternal&&!t.isOpen}function F1(t){var e;return t&&t.isOpen&&!(!((e=t.children)===null||e===void 0)&&e.length)}const $1=(t,e)=>{let r=t;for(;r;){if(r.id===e.id)return!0;r=r.parent}return!1},_1=t=>{if(!t.parent)throw Error("Node does not have a parent");return t.parent.children.findIndex(e=>e.id===t.id)};function yg(){}function Cl(t,e){if(!t)return null;if(t.id===e)return t;if(t.children)for(let r of t.children){const n=Cl(r,e);if(n)return n}return null}function ci(t,e){if(e(t),t.children)for(let r of t.children)ci(r,e)}function P1(t){const e=T1(t);let r;for(let n=0;n<e.length;++n)if(e[n]===t){r=Cg(e,n);break}r==null||r.focus()}function A1(t){const e=T1(t);let r;for(let n=0;n<e.length;++n)if(e[n]===t){r=Eg(e,n);break}r==null||r.focus()}function Cg(t,e){return e+1<t.length?t[e+1]:t[0]}function Eg(t,e){return e-1>=0?t[e-1]:t[t.length-1]}function T1(t){return Array.from(document.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled]), details:not([disabled]), summary:not(:disabled)')).filter(e=>e===t||!t.contains(e))}function Hr(t,e){return typeof e=="boolean"?e:typeof e=="string"?t[e]:e(t)}function k1(t){return t===null?null:Et(t)}function Et(t){return typeof t=="string"?t:t.id}function wg(...t){return e=>{t.forEach(r=>{typeof r=="function"?r(e):r!=null&&(r.current=e)})}}function I1(t,...e){if(t)return t(...e)}function O1(t){return new Promise((e,r)=>{let n=0;function i(){n+=1,n===100&&r(),t()?e():setTimeout(i,10)}i()})}function M1(t){var e,r;const n=t.focusedNode;return n?n.isOpen?0:n.parent?n.childIndex+1:0:(r=(e=t.root.children)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0}function N1(t){const e=t.focusedNode;return e?e.isOpen?e.id:e.parent&&!e.parent.isRoot?e.parent.id:null:null}const xg=Object.freeze(Object.defineProperty({__proto__:null,access:Hr,bound:Ln,dfs:Cl,focusNextElement:P1,focusPrevElement:A1,getInsertIndex:M1,getInsertParentId:N1,identify:Et,identifyNull:k1,indexOf:_1,isClosed:S1,isDescendant:$1,isItem:D1,isOpenWithEmptyChildren:F1,mergeRefs:wg,noop:yg,safeRun:I1,waitFor:O1,walk:ci},Symbol.toStringTag,{value:"Module"})),Dg={display:"flex",alignItems:"center",zIndex:1},Sg={flex:1,height:"2px",background:"#4B91E2",borderRadius:"1px"},Fg={width:"4px",height:"4px",boxShadow:"0 0 0 3px #4B91E2",borderRadius:"50%"},$g=u.memo(function({top:e,left:r,indent:n}){const i={position:"absolute",pointerEvents:"none",top:e-2+"px",left:r+"px",right:n+"px"};return b.jsxs("div",{style:Object.assign(Object.assign({},Dg),i),children:[b.jsx("div",{style:Object.assign({},Fg)}),b.jsx("div",{style:Object.assign({},Sg)})]})});function _g({node:t,attrs:e,innerRef:r,children:n}){return b.jsx("div",Object.assign({},e,{ref:r,onFocus:i=>i.stopPropagation(),onClick:t.handleClick,children:n}))}function Pg(t){return b.jsxs("div",{ref:t.dragHandle,style:t.style,children:[b.jsx("span",{onClick:e=>{e.stopPropagation(),t.node.toggle()},children:t.node.isLeaf?"🌳":t.node.isOpen?"🗁":"🗀"})," ",t.node.isEditing?b.jsx(Tg,Object.assign({},t)):b.jsx(Ag,Object.assign({},t))]})}function Ag(t){return b.jsx(b.Fragment,{children:b.jsx("span",{children:t.node.data.name})})}function Tg({node:t}){const e=u.useRef();return u.useEffect(()=>{var r,n;(r=e.current)===null||r===void 0||r.focus(),(n=e.current)===null||n===void 0||n.select()},[]),b.jsx("input",{ref:e,defaultValue:t.data.name,onBlur:()=>t.reset(),onKeyDown:r=>{var n;r.key==="Escape"&&t.reset(),r.key==="Enter"&&t.submit(((n=e.current)===null||n===void 0?void 0:n.value)||"")}})}function _o(t){return{type:"EDIT",id:t}}function kg(t={id:null},e){return e.type==="EDIT"?Object.assign(Object.assign({},t),{id:e.id}):t}function Yt(t){return{type:"FOCUS",id:t}}function Ig(){return{type:"TREE_BLUR"}}function Og(t={id:null,treeFocused:!1},e){return e.type==="FOCUS"?Object.assign(Object.assign({},t),{id:e.id,treeFocused:!0}):e.type==="TREE_BLUR"?Object.assign(Object.assign({},t),{treeFocused:!1}):t}class ui{constructor(e){this.handleClick=r=>{r.metaKey&&!this.tree.props.disableMultiSelection?this.isSelected?this.deselect():this.selectMulti():r.shiftKey&&!this.tree.props.disableMultiSelection?this.selectContiguous():(this.select(),this.activate())},this.tree=e.tree,this.id=e.id,this.data=e.data,this.level=e.level,this.children=e.children,this.parent=e.parent,this.isDraggable=e.isDraggable,this.rowIndex=e.rowIndex}get isRoot(){return this.id===ln}get isLeaf(){return!Array.isArray(this.children)}get isInternal(){return!this.isLeaf}get isOpen(){return this.isLeaf?!1:this.tree.isOpen(this.id)}get isClosed(){return this.isLeaf?!1:!this.tree.isOpen(this.id)}get isEditable(){return this.tree.isEditable(this.data)}get isEditing(){return this.tree.editingId===this.id}get isSelected(){return this.tree.isSelected(this.id)}get isOnlySelection(){return this.isSelected&&this.tree.hasOneSelection}get isSelectedStart(){var e;return this.isSelected&&!(!((e=this.prev)===null||e===void 0)&&e.isSelected)}get isSelectedEnd(){var e;return this.isSelected&&!(!((e=this.next)===null||e===void 0)&&e.isSelected)}get isFocused(){return this.tree.isFocused(this.id)}get isDragging(){return this.tree.isDragging(this.id)}get willReceiveDrop(){return this.tree.willReceiveDrop(this.id)}get state(){return{isClosed:this.isClosed,isDragging:this.isDragging,isEditing:this.isEditing,isFocused:this.isFocused,isInternal:this.isInternal,isLeaf:this.isLeaf,isOpen:this.isOpen,isSelected:this.isSelected,isSelectedEnd:this.isSelectedEnd,isSelectedStart:this.isSelectedStart,willReceiveDrop:this.willReceiveDrop}}get childIndex(){return this.parent&&this.parent.children?this.parent.children.findIndex(e=>e.id===this.id):-1}get next(){return this.rowIndex===null?null:this.tree.at(this.rowIndex+1)}get prev(){return this.rowIndex===null?null:this.tree.at(this.rowIndex-1)}get nextSibling(){var e,r;const n=this.childIndex;return(r=(e=this.parent)===null||e===void 0?void 0:e.children[n+1])!==null&&r!==void 0?r:null}isAncestorOf(e){if(!e)return!1;let r=e;for(;r;){if(r.id===this.id)return!0;r=r.parent}return!1}select(){this.tree.select(this)}deselect(){this.tree.deselect(this)}selectMulti(){this.tree.selectMulti(this)}selectContiguous(){this.tree.selectContiguous(this)}activate(){this.tree.activate(this)}focus(){this.tree.focus(this)}toggle(){this.tree.toggle(this)}open(){this.tree.open(this)}openParents(){this.tree.openParents(this)}close(){this.tree.close(this)}submit(e){this.tree.submit(this,e)}reset(){this.tree.reset()}clone(){return new ui(Object.assign({},this))}edit(){return this.tree.edit(this)}}const ln="__REACT_ARBORIST_INTERNAL_ROOT__";function y0(t){var e;function r(o,a,l){const s=t.accessId(o),c=new ui({tree:t,data:o,level:a,parent:l,id:s,children:null,isDraggable:t.isDraggable(o),rowIndex:null}),d=t.accessChildren(o);return d&&(c.children=d.map(f=>r(f,a+1,c))),c}const n=new ui({tree:t,id:ln,data:{id:ln},level:-1,parent:null,children:null,isDraggable:!0,rowIndex:null}),i=(e=t.props.data)!==null&&e!==void 0?e:[];return n.children=i.map(o=>r(o,0,n)),n}const ya={open(t,e){return{type:"VISIBILITY_OPEN",id:t,filtered:e}},close(t,e){return{type:"VISIBILITY_CLOSE",id:t,filtered:e}},toggle(t,e){return{type:"VISIBILITY_TOGGLE",id:t,filtered:e}},clear(t){return{type:"VISIBILITY_CLEAR",filtered:t}}};function C0(t={},e){if(e.type==="VISIBILITY_OPEN")return Object.assign(Object.assign({},t),{[e.id]:!0});if(e.type==="VISIBILITY_CLOSE")return Object.assign(Object.assign({},t),{[e.id]:!1});if(e.type==="VISIBILITY_TOGGLE"){const r=t[e.id];return Object.assign(Object.assign({},t),{[e.id]:!r})}else return e.type==="VISIBILITY_CLEAR"?{}:t}function Mg(t={filtered:{},unfiltered:{}},e){return e.type.startsWith("VISIBILITY")?e.filtered?Object.assign(Object.assign({},t),{filtered:C0(t.filtered,e)}):Object.assign(Object.assign({},t),{unfiltered:C0(t.unfiltered,e)}):t}const Cr=t=>{var e;return{nodes:{open:{filtered:{},unfiltered:(e=t==null?void 0:t.initialOpenState)!==null&&e!==void 0?e:{}},focus:{id:null,treeFocused:!1},edit:{id:null},drag:{id:null,selectedIds:[],destinationParentId:null,destinationIndex:null},selection:{ids:new Set,anchor:null,mostRecent:null}},dnd:{cursor:{type:"none"},dragId:null,dragIds:[],parentId:null,index:-1}}},Le={clear:()=>({type:"SELECTION_CLEAR"}),only:t=>({type:"SELECTION_ONLY",id:Et(t)}),add:t=>({type:"SELECTION_ADD",ids:(Array.isArray(t)?t:[t]).map(Et)}),remove:t=>({type:"SELECTION_REMOVE",ids:(Array.isArray(t)?t:[t]).map(Et)}),set:t=>Object.assign({type:"SELECTION_SET"},t),mostRecent:t=>({type:"SELECTION_MOST_RECENT",id:t===null?null:Et(t)}),anchor:t=>({type:"SELECTION_ANCHOR",id:t===null?null:Et(t)})};function Ng(t=Cr().nodes.selection,e){const r=t.ids;switch(e.type){case"SELECTION_CLEAR":return Object.assign(Object.assign({},t),{ids:new Set});case"SELECTION_ONLY":return Object.assign(Object.assign({},t),{ids:new Set([e.id])});case"SELECTION_ADD":return e.ids.length===0?t:(e.ids.forEach(n=>r.add(n)),Object.assign(Object.assign({},t),{ids:new Set(r)}));case"SELECTION_REMOVE":return e.ids.length===0?t:(e.ids.forEach(n=>r.delete(n)),Object.assign(Object.assign({},t),{ids:new Set(r)}));case"SELECTION_SET":return Object.assign(Object.assign({},t),{ids:e.ids,mostRecent:e.mostRecent,anchor:e.anchor});case"SELECTION_MOST_RECENT":return Object.assign(Object.assign({},t),{mostRecent:e.id});case"SELECTION_ANCHOR":return Object.assign(Object.assign({},t),{anchor:e.id});default:return t}}const Er={cursor(t){return{type:"DND_CURSOR",cursor:t}},dragStart(t,e){return{type:"DND_DRAG_START",id:t,dragIds:e}},dragEnd(){return{type:"DND_DRAG_END"}},hovering(t,e){return{type:"DND_HOVERING",parentId:t,index:e}}};function Rg(t=Cr().dnd,e){switch(e.type){case"DND_CURSOR":return Object.assign(Object.assign({},t),{cursor:e.cursor});case"DND_DRAG_START":return Object.assign(Object.assign({},t),{dragId:e.id,dragIds:e.dragIds});case"DND_DRAG_END":return Cr().dnd;case"DND_HOVERING":return Object.assign(Object.assign({},t),{parentId:e.parentId,index:e.index});default:return t}}const Bg={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"},Lg=t=>{if(!t)return{display:"none"};const{x:e,y:r}=t;return{transform:`translate(${e}px, ${r}px)`}},jg=t=>{if(!t)return{display:"none"};const{x:e,y:r}=t;return{transform:`translate(${e+10}px, ${r+10}px)`}};function R1({offset:t,mouse:e,id:r,dragIds:n,isDragging:i}){return b.jsxs(Kg,{isDragging:i,children:[b.jsx(Vg,{offset:t,children:b.jsx(zg,{id:r,dragIds:n})}),b.jsx(Hg,{mouse:e,count:n.length})]})}const Kg=u.memo(function(e){return e.isDragging?b.jsx("div",{style:Bg,children:e.children}):null});function Vg(t){return b.jsx("div",{className:"row preview",style:Lg(t.offset),children:t.children})}function Hg(t){const{count:e,mouse:r}=t;return e>1?b.jsx("div",{className:"selected-count",style:jg(r),children:e}):null}const zg=u.memo(function(e){const r=ke(),n=r.get(e.id);return n?b.jsx(r.renderNode,{preview:!0,node:n,style:{paddingLeft:n.level*r.indent,opacity:.2,background:"transparent"},tree:r}):null});function Ca(){return Ca=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ca.apply(null,arguments)}function E0(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ea(t,e){return Ea=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Ea(t,e)}function Ug(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Ea(t,e)}var w0=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function Wg(t,e){return!!(t===e||w0(t)&&w0(e))}function Zg(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(!Wg(t[r],e[r]))return!1;return!0}function Po(t,e){e===void 0&&(e=Zg);var r,n=[],i,o=!1;function a(){for(var l=[],s=0;s<arguments.length;s++)l[s]=arguments[s];return o&&r===this&&e(l,n)||(i=t.apply(this,l),o=!0,r=this,n=l),i}return a}var Gg=typeof performance=="object"&&typeof performance.now=="function",x0=Gg?function(){return performance.now()}:function(){return Date.now()};function D0(t){cancelAnimationFrame(t.id)}function qg(t,e){var r=x0();function n(){x0()-r>=e?t.call(null):i.id=requestAnimationFrame(n)}var i={id:requestAnimationFrame(n)};return i}var Ao=-1;function S0(t){if(t===void 0&&(t=!1),Ao===-1||t){var e=document.createElement("div"),r=e.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(e),Ao=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Ao}var Xt=null;function F0(t){if(t===void 0&&(t=!1),Xt===null||t){var e=document.createElement("div"),r=e.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),i=n.style;return i.width="100px",i.height="100px",e.appendChild(n),document.body.appendChild(e),e.scrollLeft>0?Xt="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?Xt="negative":Xt="positive-ascending"),document.body.removeChild(e),Xt}return Xt}process.env.NODE_ENV;var Yg=150,Xg=function(e,r){return e},jn=null,Kn=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(jn=new WeakSet,Kn=new WeakSet);function Jg(t){var e,r=t.getItemOffset,n=t.getEstimatedTotalSize,i=t.getItemSize,o=t.getOffsetForIndexAndAlignment,a=t.getStartIndexForOffset,l=t.getStopIndexForStartIndex,s=t.initInstanceProps,c=t.shouldResetStyleCacheOnItemSizeChange,d=t.validateProps;return e=function(f){Ug(p,f);function p(y){var h;return h=f.call(this,y)||this,h._instanceProps=s(h.props,E0(h)),h._outerRef=void 0,h._resetIsScrollingTimeoutId=null,h.state={instance:E0(h),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof h.props.initialScrollOffset=="number"?h.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},h._callOnItemsRendered=void 0,h._callOnItemsRendered=Po(function(v,m,C,E){return h.props.onItemsRendered({overscanStartIndex:v,overscanStopIndex:m,visibleStartIndex:C,visibleStopIndex:E})}),h._callOnScroll=void 0,h._callOnScroll=Po(function(v,m,C){return h.props.onScroll({scrollDirection:v,scrollOffset:m,scrollUpdateWasRequested:C})}),h._getItemStyle=void 0,h._getItemStyle=function(v){var m=h.props,C=m.direction,E=m.itemSize,F=m.layout,D=h._getItemStyleCache(c&&E,c&&F,c&&C),w;if(D.hasOwnProperty(v))w=D[v];else{var S=r(h.props,v,h._instanceProps),O=i(h.props,v,h._instanceProps),K=C==="horizontal"||F==="horizontal",V=C==="rtl",x=K?S:0;D[v]=w={position:"absolute",left:V?void 0:x,right:V?x:void 0,top:K?0:S,height:K?"100%":O,width:K?O:"100%"}}return w},h._getItemStyleCache=void 0,h._getItemStyleCache=Po(function(v,m,C){return{}}),h._onScrollHorizontal=function(v){var m=v.currentTarget,C=m.clientWidth,E=m.scrollLeft,F=m.scrollWidth;h.setState(function(D){if(D.scrollOffset===E)return null;var w=h.props.direction,S=E;if(w==="rtl")switch(F0()){case"negative":S=-E;break;case"positive-descending":S=F-C-E;break}return S=Math.max(0,Math.min(S,F-C)),{isScrolling:!0,scrollDirection:D.scrollOffset<S?"forward":"backward",scrollOffset:S,scrollUpdateWasRequested:!1}},h._resetIsScrollingDebounced)},h._onScrollVertical=function(v){var m=v.currentTarget,C=m.clientHeight,E=m.scrollHeight,F=m.scrollTop;h.setState(function(D){if(D.scrollOffset===F)return null;var w=Math.max(0,Math.min(F,E-C));return{isScrolling:!0,scrollDirection:D.scrollOffset<w?"forward":"backward",scrollOffset:w,scrollUpdateWasRequested:!1}},h._resetIsScrollingDebounced)},h._outerRefSetter=function(v){var m=h.props.outerRef;h._outerRef=v,typeof m=="function"?m(v):m!=null&&typeof m=="object"&&m.hasOwnProperty("current")&&(m.current=v)},h._resetIsScrollingDebounced=function(){h._resetIsScrollingTimeoutId!==null&&D0(h._resetIsScrollingTimeoutId),h._resetIsScrollingTimeoutId=qg(h._resetIsScrolling,Yg)},h._resetIsScrolling=function(){h._resetIsScrollingTimeoutId=null,h.setState({isScrolling:!1},function(){h._getItemStyleCache(-1,null)})},h}p.getDerivedStateFromProps=function(h,v){return Qg(h,v),d(h),null};var g=p.prototype;return g.scrollTo=function(h){h=Math.max(0,h),this.setState(function(v){return v.scrollOffset===h?null:{scrollDirection:v.scrollOffset<h?"forward":"backward",scrollOffset:h,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},g.scrollToItem=function(h,v){v===void 0&&(v="auto");var m=this.props,C=m.itemCount,E=m.layout,F=this.state.scrollOffset;h=Math.max(0,Math.min(h,C-1));var D=0;if(this._outerRef){var w=this._outerRef;E==="vertical"?D=w.scrollWidth>w.clientWidth?S0():0:D=w.scrollHeight>w.clientHeight?S0():0}this.scrollTo(o(this.props,h,v,F,this._instanceProps,D))},g.componentDidMount=function(){var h=this.props,v=h.direction,m=h.initialScrollOffset,C=h.layout;if(typeof m=="number"&&this._outerRef!=null){var E=this._outerRef;v==="horizontal"||C==="horizontal"?E.scrollLeft=m:E.scrollTop=m}this._callPropsCallbacks()},g.componentDidUpdate=function(){var h=this.props,v=h.direction,m=h.layout,C=this.state,E=C.scrollOffset,F=C.scrollUpdateWasRequested;if(F&&this._outerRef!=null){var D=this._outerRef;if(v==="horizontal"||m==="horizontal")if(v==="rtl")switch(F0()){case"negative":D.scrollLeft=-E;break;case"positive-ascending":D.scrollLeft=E;break;default:var w=D.clientWidth,S=D.scrollWidth;D.scrollLeft=S-w-E;break}else D.scrollLeft=E;else D.scrollTop=E}this._callPropsCallbacks()},g.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&D0(this._resetIsScrollingTimeoutId)},g.render=function(){var h=this.props,v=h.children,m=h.className,C=h.direction,E=h.height,F=h.innerRef,D=h.innerElementType,w=h.innerTagName,S=h.itemCount,O=h.itemData,K=h.itemKey,V=K===void 0?Xg:K,x=h.layout,B=h.outerElementType,U=h.outerTagName,k=h.style,W=h.useIsScrolling,_=h.width,I=this.state.isScrolling,z=C==="horizontal"||x==="horizontal",L=z?this._onScrollHorizontal:this._onScrollVertical,N=this._getRangeToRender(),R=N[0],$=N[1],P=[];if(S>0)for(var T=R;T<=$;T++)P.push(u.createElement(v,{data:O,key:V(T,O),index:T,isScrolling:W?I:void 0,style:this._getItemStyle(T)}));var M=n(this.props,this._instanceProps);return u.createElement(B||U||"div",{className:m,onScroll:L,ref:this._outerRefSetter,style:Ca({position:"relative",height:E,width:_,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:C},k)},u.createElement(D||w||"div",{children:P,ref:F,style:{height:z?"100%":M,pointerEvents:I?"none":void 0,width:z?M:"100%"}}))},g._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var h=this.props.itemCount;if(h>0){var v=this._getRangeToRender(),m=v[0],C=v[1],E=v[2],F=v[3];this._callOnItemsRendered(m,C,E,F)}}if(typeof this.props.onScroll=="function"){var D=this.state,w=D.scrollDirection,S=D.scrollOffset,O=D.scrollUpdateWasRequested;this._callOnScroll(w,S,O)}},g._getRangeToRender=function(){var h=this.props,v=h.itemCount,m=h.overscanCount,C=this.state,E=C.isScrolling,F=C.scrollDirection,D=C.scrollOffset;if(v===0)return[0,0,0,0];var w=a(this.props,D,this._instanceProps),S=l(this.props,w,D,this._instanceProps),O=!E||F==="backward"?Math.max(1,m):1,K=!E||F==="forward"?Math.max(1,m):1;return[Math.max(0,w-O),Math.max(0,Math.min(v-1,S+K)),w,S]},p}(u.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var Qg=function(e,r){var n=e.children,i=e.direction,o=e.height,a=e.layout,l=e.innerTagName,s=e.outerTagName,c=e.width,d=r.instance;if(process.env.NODE_ENV!=="production"){(l!=null||s!=null)&&Kn&&!Kn.has(d)&&(Kn.add(d),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var f=i==="horizontal"||a==="horizontal";switch(i){case"horizontal":case"vertical":jn&&!jn.has(d)&&(jn.add(d),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+i+'" was specified.'))}switch(a){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+a+'" was specified.'))}if(n==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(n===null?"null":typeof n)+'" was specified.'));if(f&&typeof c!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(c===null?"null":typeof c)+'" was specified.'));if(!f&&typeof o!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(o===null?"null":typeof o)+'" was specified.'))}},e8=Jg({getItemOffset:function(e,r){var n=e.itemSize;return r*n},getItemSize:function(e,r){var n=e.itemSize;return n},getEstimatedTotalSize:function(e){var r=e.itemCount,n=e.itemSize;return n*r},getOffsetForIndexAndAlignment:function(e,r,n,i,o,a){var l=e.direction,s=e.height,c=e.itemCount,d=e.itemSize,f=e.layout,p=e.width,g=l==="horizontal"||f==="horizontal",y=g?p:s,h=Math.max(0,c*d-y),v=Math.min(h,r*d),m=Math.max(0,r*d-y+d+a);switch(n==="smart"&&(i>=m-y&&i<=v+y?n="auto":n="center"),n){case"start":return v;case"end":return m;case"center":{var C=Math.round(m+(v-m)/2);return C<Math.ceil(y/2)?0:C>h+Math.floor(y/2)?h:C}case"auto":default:return i>=m&&i<=v?i:i<m?m:v}},getStartIndexForOffset:function(e,r){var n=e.itemCount,i=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(r/i)))},getStopIndexForStartIndex:function(e,r,n){var i=e.direction,o=e.height,a=e.itemCount,l=e.itemSize,s=e.layout,c=e.width,d=i==="horizontal"||s==="horizontal",f=r*l,p=d?c:o,g=Math.ceil((p+n-f)/l);return Math.max(0,Math.min(a-1,r+g-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){var r=e.itemSize;if(process.env.NODE_ENV!=="production"&&typeof r!="number")throw Error('An invalid "itemSize" prop has been specified. Value should be a number. '+('"'+(r===null?"null":typeof r)+'" was specified.'))}});function t8(){var t,e;const r=ke(),i=mg().cursor;if(!i||i.type!=="line")return null;const o=r.indent,a=r.rowHeight*i.index+((e=(t=r.props.padding)!==null&&t!==void 0?t:r.props.paddingTop)!==null&&e!==void 0?e:0),l=o*i.level,s=r.renderCursor;return b.jsx(s,{top:a,left:l,indent:o})}var r8=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r};const n8=u.forwardRef(function(e,r){const{children:n}=e,i=r8(e,["children"]),o=ke();return b.jsxs("div",Object.assign({ref:r},i,{onClick:a=>{a.currentTarget===a.target&&o.deselectAll()},children:[b.jsx(i8,{}),n]}))}),i8=()=>{const t=ke();return b.jsx("div",{style:{height:t.visibleNodes.length*t.rowHeight,width:"100%",position:"absolute",left:"0",right:"0"},children:b.jsx(t8,{})})};var o8=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r};const a8=u.forwardRef(function(e,r){var n,i,o,a,{style:l}=e,s=o8(e,["style"]);const c=ke(),d=(i=(n=c.props.padding)!==null&&n!==void 0?n:c.props.paddingTop)!==null&&i!==void 0?i:0,f=(a=(o=c.props.padding)!==null&&o!==void 0?o:c.props.paddingBottom)!==null&&a!==void 0?a:0;return b.jsx("div",Object.assign({ref:r,style:Object.assign(Object.assign({},l),{height:`${parseFloat(l.height)+d+f}px`})},s))});var B1=u.createContext({dragDropManager:void 0}),Ne;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(Ne||(Ne={}));function J(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];if(process.env.NODE_ENV!=="production"&&e===void 0)throw new Error("invariant requires an error message argument");if(!t){var o;if(e===void 0)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;o=new Error(e.replace(/%s/g,function(){return n[a++]})),o.name="Invariant Violation"}throw o.framesToPop=1,o}}var El="dnd-core/INIT_COORDS",Vi="dnd-core/BEGIN_DRAG",wl="dnd-core/PUBLISH_DRAG_SOURCE",Hi="dnd-core/HOVER",zi="dnd-core/DROP",Ui="dnd-core/END_DRAG";function $0(t,e){return{type:El,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}function Vn(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vn=function(r){return typeof r}:Vn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Vn(t)}function l8(t,e,r){return e.split(".").reduce(function(n,i){return n&&n[i]?n[i]:r||null},t)}function s8(t,e){return t.filter(function(r){return r!==e})}function L1(t){return Vn(t)==="object"}function c8(t,e){var r=new Map,n=function(a){r.set(a,r.has(a)?r.get(a)+1:1)};t.forEach(n),e.forEach(n);var i=[];return r.forEach(function(o,a){o===1&&i.push(a)}),i}function u8(t,e){return t.filter(function(r){return e.indexOf(r)>-1})}var d8={type:El,payload:{clientOffset:null,sourceClientOffset:null}};function f8(t){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{publishSource:!0},i=n.publishSource,o=i===void 0?!0:i,a=n.clientOffset,l=n.getSourceClientOffset,s=t.getMonitor(),c=t.getRegistry();t.dispatch($0(a)),h8(r,s,c);var d=v8(r,s);if(d===null){t.dispatch(d8);return}var f=null;if(a){if(!l)throw new Error("getSourceClientOffset must be defined");p8(l),f=l(d)}t.dispatch($0(a,f));var p=c.getSource(d),g=p.beginDrag(s,d);if(g!=null){g8(g),c.pinSource(d);var y=c.getSourceType(d);return{type:Vi,payload:{itemType:y,item:g,sourceId:d,clientOffset:a||null,sourceClientOffset:f||null,isSourcePublic:!!o}}}}}function h8(t,e,r){J(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(n){J(r.getSource(n),"Expected sourceIds to be registered.")})}function p8(t){J(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function g8(t){J(L1(t),"Item must be an object.")}function v8(t,e){for(var r=null,n=t.length-1;n>=0;n--)if(e.canDragSource(t[n])){r=t[n];break}return r}function b8(t){return function(){var r=t.getMonitor();if(r.isDragging())return{type:wl}}}function wa(t,e){return e===null?t===null:Array.isArray(t)?t.some(function(r){return r===e}):t===e}function m8(t){return function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.clientOffset;y8(r);var o=r.slice(0),a=t.getMonitor(),l=t.getRegistry();C8(o,a,l);var s=a.getItemType();return E8(o,l,s),w8(o,a,l),{type:Hi,payload:{targetIds:o,clientOffset:i||null}}}}function y8(t){J(Array.isArray(t),"Expected targetIds to be an array.")}function C8(t,e,r){J(e.isDragging(),"Cannot call hover while not dragging."),J(!e.didDrop(),"Cannot call hover after drop.");for(var n=0;n<t.length;n++){var i=t[n];J(t.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");var o=r.getTarget(i);J(o,"Expected targetIds to be registered.")}}function E8(t,e,r){for(var n=t.length-1;n>=0;n--){var i=t[n],o=e.getTargetType(i);wa(o,r)||t.splice(n,1)}}function w8(t,e,r){t.forEach(function(n){var i=r.getTarget(n);i.hover(e,n)})}function _0(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function P0(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?_0(Object(r),!0).forEach(function(n){x8(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_0(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function x8(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function D8(t){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.getMonitor(),i=t.getRegistry();S8(n);var o=_8(n);o.forEach(function(a,l){var s=F8(a,l,i,n),c={type:zi,payload:{dropResult:P0(P0({},r),s)}};t.dispatch(c)})}}function S8(t){J(t.isDragging(),"Cannot call drop while not dragging."),J(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function F8(t,e,r,n){var i=r.getTarget(t),o=i?i.drop(n,t):void 0;return $8(o),typeof o>"u"&&(o=e===0?{}:n.getDropResult()),o}function $8(t){J(typeof t>"u"||L1(t),"Drop result must either be an object or undefined.")}function _8(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function P8(t){return function(){var r=t.getMonitor(),n=t.getRegistry();A8(r);var i=r.getSourceId();if(i!=null){var o=n.getSource(i,!0);o.endDrag(r,i),n.unpinSource()}return{type:Ui}}}function A8(t){J(t.isDragging(),"Cannot call endDrag while not dragging.")}function T8(t){return{beginDrag:f8(t),publishDragSource:b8(t),hover:m8(t),drop:D8(t),endDrag:P8(t)}}function k8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function I8(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function O8(t,e,r){return e&&I8(t.prototype,e),t}function Nr(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var M8=function(){function t(e,r){var n=this;k8(this,t),Nr(this,"store",void 0),Nr(this,"monitor",void 0),Nr(this,"backend",void 0),Nr(this,"isSetUp",!1),Nr(this,"handleRefCountChange",function(){var i=n.store.getState().refCount>0;n.backend&&(i&&!n.isSetUp?(n.backend.setup(),n.isSetUp=!0):!i&&n.isSetUp&&(n.backend.teardown(),n.isSetUp=!1))}),this.store=e,this.monitor=r,e.subscribe(this.handleRefCountChange)}return O8(t,[{key:"receiveBackend",value:function(r){this.backend=r}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var r=this,n=this.store.dispatch;function i(a){return function(){for(var l=arguments.length,s=new Array(l),c=0;c<l;c++)s[c]=arguments[c];var d=a.apply(r,s);typeof d<"u"&&n(d)}}var o=T8(this);return Object.keys(o).reduce(function(a,l){var s=o[l];return a[l]=i(s),a},{})}},{key:"dispatch",value:function(r){this.store.dispatch(r)}}]),t}();function Ie(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var A0=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),T0=function(){return Math.random().toString(36).substring(7).split("").join(".")},k0={INIT:"@@redux/INIT"+T0(),REPLACE:"@@redux/REPLACE"+T0()};function N8(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function R8(t){if(t===void 0)return"undefined";if(t===null)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(j8(t))return"date";if(L8(t))return"error";var r=B8(t);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function B8(t){return typeof t.constructor=="function"?t.constructor.name:null}function L8(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function j8(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function Jt(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=R8(t)),e}function j1(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Ie(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?Ie(1):"Expected the enhancer to be a function. Instead, received: '"+Jt(r)+"'");return r(j1)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Ie(2):"Expected the root reducer to be a function. Instead, received: '"+Jt(t)+"'");var i=t,o=e,a=[],l=a,s=!1;function c(){l===a&&(l=a.slice())}function d(){if(s)throw new Error(process.env.NODE_ENV==="production"?Ie(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function f(h){if(typeof h!="function")throw new Error(process.env.NODE_ENV==="production"?Ie(4):"Expected the listener to be a function. Instead, received: '"+Jt(h)+"'");if(s)throw new Error(process.env.NODE_ENV==="production"?Ie(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var v=!0;return c(),l.push(h),function(){if(v){if(s)throw new Error(process.env.NODE_ENV==="production"?Ie(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");v=!1,c();var C=l.indexOf(h);l.splice(C,1),a=null}}}function p(h){if(!N8(h))throw new Error(process.env.NODE_ENV==="production"?Ie(7):"Actions must be plain objects. Instead, the actual type was: '"+Jt(h)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof h.type>"u")throw new Error(process.env.NODE_ENV==="production"?Ie(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(s)throw new Error(process.env.NODE_ENV==="production"?Ie(9):"Reducers may not dispatch actions.");try{s=!0,o=i(o,h)}finally{s=!1}for(var v=a=l,m=0;m<v.length;m++){var C=v[m];C()}return h}function g(h){if(typeof h!="function")throw new Error(process.env.NODE_ENV==="production"?Ie(10):"Expected the nextReducer to be a function. Instead, received: '"+Jt(h));i=h,p({type:k0.REPLACE})}function y(){var h,v=f;return h={subscribe:function(C){if(typeof C!="object"||C===null)throw new Error(process.env.NODE_ENV==="production"?Ie(11):"Expected the observer to be an object. Instead, received: '"+Jt(C)+"'");function E(){C.next&&C.next(d())}E();var F=v(E);return{unsubscribe:F}}},h[A0]=function(){return this},h}return p({type:k0.INIT}),n={dispatch:p,subscribe:f,getState:d,replaceReducer:g},n[A0]=y,n}var K8=function(e,r){return e===r};function V8(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function H8(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:K8;if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(!r(t[n],e[n]))return!1;return!0}function I0(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function O0(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?I0(Object(r),!0).forEach(function(n){z8(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):I0(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function z8(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var M0={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function U8(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:M0,e=arguments.length>1?arguments[1]:void 0,r=e.payload;switch(e.type){case El:case Vi:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case Hi:return V8(t.clientOffset,r.clientOffset)?t:O0(O0({},t),{},{clientOffset:r.clientOffset});case Ui:case zi:return M0;default:return t}}var xl="dnd-core/ADD_SOURCE",Dl="dnd-core/ADD_TARGET",Sl="dnd-core/REMOVE_SOURCE",Wi="dnd-core/REMOVE_TARGET";function W8(t){return{type:xl,payload:{sourceId:t}}}function Z8(t){return{type:Dl,payload:{targetId:t}}}function G8(t){return{type:Sl,payload:{sourceId:t}}}function q8(t){return{type:Wi,payload:{targetId:t}}}function N0(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Oe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?N0(Object(r),!0).forEach(function(n){Y8(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):N0(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Y8(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var X8={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function J8(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:X8,e=arguments.length>1?arguments[1]:void 0,r=e.payload;switch(e.type){case Vi:return Oe(Oe({},t),{},{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case wl:return Oe(Oe({},t),{},{isSourcePublic:!0});case Hi:return Oe(Oe({},t),{},{targetIds:r.targetIds});case Wi:return t.targetIds.indexOf(r.targetId)===-1?t:Oe(Oe({},t),{},{targetIds:s8(t.targetIds,r.targetId)});case zi:return Oe(Oe({},t),{},{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case Ui:return Oe(Oe({},t),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function Q8(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case xl:case Dl:return t+1;case Sl:case Wi:return t-1;default:return t}}var di=[],Fl=[];di.__IS_NONE__=!0;Fl.__IS_ALL__=!0;function ev(t,e){if(t===di)return!1;if(t===Fl||typeof e>"u")return!0;var r=u8(e,t);return r.length>0}function tv(){var t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Hi:break;case xl:case Dl:case Wi:case Sl:return di;case Vi:case wl:case Ui:case zi:default:return Fl}var e=t.payload,r=e.targetIds,n=r===void 0?[]:r,i=e.prevTargetIds,o=i===void 0?[]:i,a=c8(n,o),l=a.length>0||!H8(n,o);if(!l)return di;var s=o[o.length-1],c=n[n.length-1];return s!==c&&(s&&a.push(s),c&&a.push(c)),a}function rv(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return t+1}function R0(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function B0(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?R0(Object(r),!0).forEach(function(n){nv(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):R0(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function nv(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function iv(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:tv(t.dirtyHandlerIds,{type:e.type,payload:B0(B0({},e.payload),{},{prevTargetIds:l8(t,"dragOperation.targetIds",[])})}),dragOffset:U8(t.dragOffset,e),refCount:Q8(t.refCount,e),dragOperation:J8(t.dragOperation,e),stateId:rv(t.stateId)}}function ov(t,e){return{x:t.x+e.x,y:t.y+e.y}}function K1(t,e){return{x:t.x-e.x,y:t.y-e.y}}function av(t){var e=t.clientOffset,r=t.initialClientOffset,n=t.initialSourceClientOffset;return!e||!r||!n?null:K1(ov(e,n),r)}function lv(t){var e=t.clientOffset,r=t.initialClientOffset;return!e||!r?null:K1(e,r)}function sv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cv(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function uv(t,e,r){return e&&cv(t.prototype,e),t}function L0(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var dv=function(){function t(e,r){sv(this,t),L0(this,"store",void 0),L0(this,"registry",void 0),this.store=e,this.registry=r}return uv(t,[{key:"subscribeToStateChange",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{handlerIds:void 0},o=i.handlerIds;J(typeof r=="function","listener must be a function."),J(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");var a=this.store.getState().stateId,l=function(){var c=n.store.getState(),d=c.stateId;try{var f=d===a||d===a+1&&!ev(c.dirtyHandlerIds,o);f||r()}finally{a=d}};return this.store.subscribe(l)}},{key:"subscribeToOffsetChange",value:function(r){var n=this;J(typeof r=="function","listener must be a function.");var i=this.store.getState().dragOffset,o=function(){var l=n.store.getState().dragOffset;l!==i&&(i=l,r())};return this.store.subscribe(o)}},{key:"canDragSource",value:function(r){if(!r)return!1;var n=this.registry.getSource(r);return J(n,"Expected to find a valid source. sourceId=".concat(r)),this.isDragging()?!1:n.canDrag(this,r)}},{key:"canDropOnTarget",value:function(r){if(!r)return!1;var n=this.registry.getTarget(r);if(J(n,"Expected to find a valid target. targetId=".concat(r)),!this.isDragging()||this.didDrop())return!1;var i=this.registry.getTargetType(r),o=this.getItemType();return wa(i,o)&&n.canDrop(this,r)}},{key:"isDragging",value:function(){return!!this.getItemType()}},{key:"isDraggingSource",value:function(r){if(!r)return!1;var n=this.registry.getSource(r,!0);if(J(n,"Expected to find a valid source. sourceId=".concat(r)),!this.isDragging()||!this.isSourcePublic())return!1;var i=this.registry.getSourceType(r),o=this.getItemType();return i!==o?!1:n.isDragging(this,r)}},{key:"isOverTarget",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shallow:!1};if(!r)return!1;var i=n.shallow;if(!this.isDragging())return!1;var o=this.registry.getTargetType(r),a=this.getItemType();if(a&&!wa(o,a))return!1;var l=this.getTargetIds();if(!l.length)return!1;var s=l.indexOf(r);return i?s===l.length-1:s>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return!!this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return av(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return lv(this.store.getState().dragOffset)}}]),t}(),fv=0;function hv(){return fv++}function Hn(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Hn=function(r){return typeof r}:Hn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Hn(t)}function pv(t){J(typeof t.canDrag=="function","Expected canDrag to be a function."),J(typeof t.beginDrag=="function","Expected beginDrag to be a function."),J(typeof t.endDrag=="function","Expected endDrag to be a function.")}function gv(t){J(typeof t.canDrop=="function","Expected canDrop to be a function."),J(typeof t.hover=="function","Expected hover to be a function."),J(typeof t.drop=="function","Expected beginDrag to be a function.")}function xa(t,e){if(e&&Array.isArray(t)){t.forEach(function(r){return xa(r,!1)});return}J(typeof t=="string"||Hn(t)==="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const j0=typeof global<"u"?global:self,V1=j0.MutationObserver||j0.WebKitMutationObserver;function H1(t){return function(){const r=setTimeout(i,0),n=setInterval(i,50);function i(){clearTimeout(r),clearInterval(n),t()}}}function vv(t){let e=1;const r=new V1(t),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){e=-e,n.data=e}}const bv=typeof V1=="function"?vv:H1;class mv{enqueueTask(e){const{queue:r,requestFlush:n}=this;r.length||(n(),this.flushing=!0),r[r.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const r=this.index;if(this.index++,e[r].call(),this.index>this.capacity){for(let n=0,i=e.length-this.index;n<i;n++)e[n]=e[n+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=bv(this.flush),this.requestErrorThrow=H1(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class yv{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,r){this.onError=e,this.release=r,this.task=null}}class Cv{create(e){const r=this.freeTasks,n=r.length?r.pop():new yv(this.onError,i=>r[r.length]=i);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}const z1=new mv,Ev=new Cv(z1.registerPendingError);function wv(t){z1.enqueueTask(Ev.create(t))}function xv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Dv(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Sv(t,e,r){return e&&Dv(t.prototype,e),t}function Qt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Fv(t,e){return Av(t)||Pv(t,e)||_v(t,e)||$v()}function $v(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
89
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _v(t,e){if(t){if(typeof t=="string")return K0(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return K0(t,e)}}function K0(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Pv(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,l;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(s){o=!0,l=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw l}}return n}}function Av(t){if(Array.isArray(t))return t}function Tv(t){var e=hv().toString();switch(t){case Ne.SOURCE:return"S".concat(e);case Ne.TARGET:return"T".concat(e);default:throw new Error("Unknown Handler Role: ".concat(t))}}function V0(t){switch(t[0]){case"S":return Ne.SOURCE;case"T":return Ne.TARGET;default:J(!1,"Cannot parse handler ID: ".concat(t))}}function H0(t,e){var r=t.entries(),n=!1;do{var i=r.next(),o=i.done,a=Fv(i.value,2),l=a[1];if(l===e)return!0;n=!!o}while(!n);return!1}var kv=function(){function t(e){xv(this,t),Qt(this,"types",new Map),Qt(this,"dragSources",new Map),Qt(this,"dropTargets",new Map),Qt(this,"pinnedSourceId",null),Qt(this,"pinnedSource",null),Qt(this,"store",void 0),this.store=e}return Sv(t,[{key:"addSource",value:function(r,n){xa(r),pv(n);var i=this.addHandler(Ne.SOURCE,r,n);return this.store.dispatch(W8(i)),i}},{key:"addTarget",value:function(r,n){xa(r,!0),gv(n);var i=this.addHandler(Ne.TARGET,r,n);return this.store.dispatch(Z8(i)),i}},{key:"containsHandler",value:function(r){return H0(this.dragSources,r)||H0(this.dropTargets,r)}},{key:"getSource",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;J(this.isSourceId(r),"Expected a valid source ID.");var i=n&&r===this.pinnedSourceId,o=i?this.pinnedSource:this.dragSources.get(r);return o}},{key:"getTarget",value:function(r){return J(this.isTargetId(r),"Expected a valid target ID."),this.dropTargets.get(r)}},{key:"getSourceType",value:function(r){return J(this.isSourceId(r),"Expected a valid source ID."),this.types.get(r)}},{key:"getTargetType",value:function(r){return J(this.isTargetId(r),"Expected a valid target ID."),this.types.get(r)}},{key:"isSourceId",value:function(r){var n=V0(r);return n===Ne.SOURCE}},{key:"isTargetId",value:function(r){var n=V0(r);return n===Ne.TARGET}},{key:"removeSource",value:function(r){var n=this;J(this.getSource(r),"Expected an existing source."),this.store.dispatch(G8(r)),wv(function(){n.dragSources.delete(r),n.types.delete(r)})}},{key:"removeTarget",value:function(r){J(this.getTarget(r),"Expected an existing target."),this.store.dispatch(q8(r)),this.dropTargets.delete(r),this.types.delete(r)}},{key:"pinSource",value:function(r){var n=this.getSource(r);J(n,"Expected an existing source."),this.pinnedSourceId=r,this.pinnedSource=n}},{key:"unpinSource",value:function(){J(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(r,n,i){var o=Tv(r);return this.types.set(o,n),r===Ne.SOURCE?this.dragSources.set(o,i):r===Ne.TARGET&&this.dropTargets.set(o,i),o}}]),t}();function Iv(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=Ov(n),o=new dv(i,new kv(i)),a=new M8(i,o),l=t(a,e,r);return a.receiveBackend(l),a}function Ov(t){var e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return j1(iv,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}var Mv=["children"];function Nv(t,e){return jv(t)||Lv(t,e)||Bv(t,e)||Rv()}function Rv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
90
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bv(t,e){if(t){if(typeof t=="string")return z0(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return z0(t,e)}}function z0(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Lv(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,l;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(s){o=!0,l=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw l}}return n}}function jv(t){if(Array.isArray(t))return t}function Kv(t,e){if(t==null)return{};var r=Vv(t,e),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Vv(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,o;for(o=0;o<n.length;o++)i=n[o],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}var U0=0,zn=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),Hv=u.memo(function(e){var r=e.children,n=Kv(e,Mv),i=zv(n),o=Nv(i,2),a=o[0],l=o[1];return u.useEffect(function(){if(l){var s=U1();return++U0,function(){--U0===0&&(s[zn]=null)}}},[]),b.jsx(B1.Provider,Object.assign({value:a},{children:r}),void 0)});function zv(t){if("manager"in t){var e={dragDropManager:t.manager};return[e,!1]}var r=Uv(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[r,n]}function Uv(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:U1(),r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,i=e;return i[zn]||(i[zn]={dragDropManager:Iv(t,e,r,n)}),i[zn]}function U1(){return typeof global<"u"?global:window}function Wv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zv(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Gv(t,e,r){return e&&Zv(t.prototype,e),t}function W0(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var To=!1,ko=!1,qv=function(){function t(e){Wv(this,t),W0(this,"internalMonitor",void 0),W0(this,"sourceId",null),this.internalMonitor=e.getMonitor()}return Gv(t,[{key:"receiveHandlerId",value:function(r){this.sourceId=r}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){J(!To,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return To=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{To=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;J(!ko,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return ko=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{ko=!1}}},{key:"subscribeToStateChange",value:function(r,n){return this.internalMonitor.subscribeToStateChange(r,n)}},{key:"isDraggingSource",value:function(r){return this.internalMonitor.isDraggingSource(r)}},{key:"isOverTarget",value:function(r,n){return this.internalMonitor.isOverTarget(r,n)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(r){return this.internalMonitor.subscribeToOffsetChange(r)}},{key:"canDragSource",value:function(r){return this.internalMonitor.canDragSource(r)}},{key:"canDropOnTarget",value:function(r){return this.internalMonitor.canDropOnTarget(r)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),t}();function Yv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xv(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Jv(t,e,r){return e&&Xv(t.prototype,e),t}function Z0(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Io=!1,Qv=function(){function t(e){Yv(this,t),Z0(this,"internalMonitor",void 0),Z0(this,"targetId",null),this.internalMonitor=e.getMonitor()}return Jv(t,[{key:"receiveHandlerId",value:function(r){this.targetId=r}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(r,n){return this.internalMonitor.subscribeToStateChange(r,n)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;J(!Io,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Io=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Io=!1}}},{key:"isOver",value:function(r){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,r):!1}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),t}();function e6(t){if(typeof t.type!="string"){var e=t.type.displayName||t.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(e," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function t6(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!u.isValidElement(e)){var n=e;return t(n,r),n}var i=e;e6(i);var o=r?function(a){return t(a,r)}:t;return r6(i,o)}}function W1(t){var e={};return Object.keys(t).forEach(function(r){var n=t[r];if(r.endsWith("Ref"))e[r]=t[r];else{var i=t6(n);e[r]=function(){return i}}}),e}function G0(t,e){typeof t=="function"?t(e):t.current=e}function r6(t,e){var r=t.ref;return J(typeof r!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?u.cloneElement(t,{ref:function(i){G0(r,i),G0(e,i)}}):u.cloneElement(t,{ref:e})}function Un(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Un=function(r){return typeof r}:Un=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Un(t)}function Da(t){return t!==null&&Un(t)==="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Sa(t,e,r,n){var i=void 0;if(i!==void 0)return!!i;if(t===e)return!0;if(typeof t!="object"||!t||typeof e!="object"||!e)return!1;var o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(e),s=0;s<o.length;s++){var c=o[s];if(!l(c))return!1;var d=t[c],f=e[c];if(i=void 0,i===!1||i===void 0&&d!==f)return!1}return!0}function n6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i6(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o6(t,e,r){return e&&i6(t.prototype,e),t}function Ee(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a6=function(){function t(e){var r=this;n6(this,t),Ee(this,"hooks",W1({dragSource:function(i,o){r.clearDragSource(),r.dragSourceOptions=o||null,Da(i)?r.dragSourceRef=i:r.dragSourceNode=i,r.reconnectDragSource()},dragPreview:function(i,o){r.clearDragPreview(),r.dragPreviewOptions=o||null,Da(i)?r.dragPreviewRef=i:r.dragPreviewNode=i,r.reconnectDragPreview()}})),Ee(this,"handlerId",null),Ee(this,"dragSourceRef",null),Ee(this,"dragSourceNode",void 0),Ee(this,"dragSourceOptionsInternal",null),Ee(this,"dragSourceUnsubscribe",void 0),Ee(this,"dragPreviewRef",null),Ee(this,"dragPreviewNode",void 0),Ee(this,"dragPreviewOptionsInternal",null),Ee(this,"dragPreviewUnsubscribe",void 0),Ee(this,"lastConnectedHandlerId",null),Ee(this,"lastConnectedDragSource",null),Ee(this,"lastConnectedDragSourceOptions",null),Ee(this,"lastConnectedDragPreview",null),Ee(this,"lastConnectedDragPreviewOptions",null),Ee(this,"backend",void 0),this.backend=e}return o6(t,[{key:"receiveHandlerId",value:function(r){this.handlerId!==r&&(this.handlerId=r,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(r){this.dragSourceOptionsInternal=r}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(r){this.dragPreviewOptionsInternal=r}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var r=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();if(n&&this.disconnectDragSource(),!!this.handlerId){if(!r){this.lastConnectedDragSource=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=r,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,r,this.dragSourceOptions))}}},{key:"reconnectDragPreview",value:function(){var r=this.dragPreview,n=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(n&&this.disconnectDragPreview(),!!this.handlerId){if(!r){this.lastConnectedDragPreview=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=r,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,r,this.dragPreviewOptions))}}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!Sa(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!Sa(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}}]),t}();function l6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s6(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function c6(t,e,r){return e&&s6(t.prototype,e),t}function Ze(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var u6=function(){function t(e){var r=this;l6(this,t),Ze(this,"hooks",W1({dropTarget:function(i,o){r.clearDropTarget(),r.dropTargetOptions=o,Da(i)?r.dropTargetRef=i:r.dropTargetNode=i,r.reconnect()}})),Ze(this,"handlerId",null),Ze(this,"dropTargetRef",null),Ze(this,"dropTargetNode",void 0),Ze(this,"dropTargetOptionsInternal",null),Ze(this,"unsubscribeDropTarget",void 0),Ze(this,"lastConnectedHandlerId",null),Ze(this,"lastConnectedDropTarget",null),Ze(this,"lastConnectedDropTargetOptions",null),Ze(this,"backend",void 0),this.backend=e}return c6(t,[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var r=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();r&&this.disconnectDropTarget();var n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}},{key:"receiveHandlerId",value:function(r){r!==this.handlerId&&(this.handlerId=r,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(r){this.dropTargetOptionsInternal=r}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!Sa(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}}]),t}();function d6(t,e,r){var n=r.getRegistry(),i=n.addTarget(t,e);return[i,function(){return n.removeTarget(i)}]}function f6(t,e,r){var n=r.getRegistry(),i=n.addSource(t,e);return[i,function(){return n.removeSource(i)}]}var Mt=typeof window<"u"?u.useLayoutEffect:u.useEffect;function Wn(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Wn=function(r){return typeof r}:Wn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Wn(t)}function h6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p6(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function g6(t,e,r){return e&&p6(t.prototype,e),t}function Oo(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var v6=function(){function t(e,r,n){h6(this,t),Oo(this,"spec",void 0),Oo(this,"monitor",void 0),Oo(this,"connector",void 0),this.spec=e,this.monitor=r,this.connector=n}return g6(t,[{key:"beginDrag",value:function(){var r,n=this.spec,i=this.monitor,o=null;return Wn(n.item)==="object"?o=n.item:typeof n.item=="function"?o=n.item(i):o={},(r=o)!==null&&r!==void 0?r:null}},{key:"canDrag",value:function(){var r=this.spec,n=this.monitor;return typeof r.canDrag=="boolean"?r.canDrag:typeof r.canDrag=="function"?r.canDrag(n):!0}},{key:"isDragging",value:function(r,n){var i=this.spec,o=this.monitor,a=i.isDragging;return a?a(o):n===r.getSourceId()}},{key:"endDrag",value:function(){var r=this.spec,n=this.monitor,i=this.connector,o=r.end;o&&o(n.getItem(),n),i.reconnect()}}]),t}();function b6(t,e,r){var n=u.useMemo(function(){return new v6(t,e,r)},[e,r]);return u.useEffect(function(){n.spec=t},[t]),n}function Kt(){var t=u.useContext(B1),e=t.dragDropManager;return J(e!=null,"Expected drag drop context"),e}function m6(t){return u.useMemo(function(){var e=t.type;return J(e!=null,"spec.type must be defined"),e},[t])}function y6(t,e){return x6(t)||w6(t,e)||E6(t,e)||C6()}function C6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
91
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function E6(t,e){if(t){if(typeof t=="string")return q0(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return q0(t,e)}}function q0(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function w6(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,l;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(s){o=!0,l=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw l}}return n}}function x6(t){if(Array.isArray(t))return t}function D6(t,e,r){var n=Kt(),i=b6(t,e,r),o=m6(t);Mt(function(){if(o!=null){var l=f6(o,i,n),s=y6(l,2),c=s[0],d=s[1];return e.receiveHandlerId(c),r.receiveHandlerId(c),d}},[n,e,r,i,o])}function S6(t){return P6(t)||_6(t)||$6(t)||F6()}function F6(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
92
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $6(t,e){if(t){if(typeof t=="string")return Fa(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fa(t,e)}}function _6(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function P6(t){if(Array.isArray(t))return Fa(t)}function Fa(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Z1(t,e){var r=S6(e||[]);return e==null&&typeof t!="function"&&r.push(t),u.useMemo(function(){return typeof t=="function"?t():t},r)}function A6(){var t=Kt();return u.useMemo(function(){return new qv(t)},[t])}function T6(t,e){var r=Kt(),n=u.useMemo(function(){return new a6(r.getBackend())},[r]);return Mt(function(){return n.dragSourceOptions=t||null,n.reconnect(),function(){return n.disconnectDragSource()}},[n,t]),Mt(function(){return n.dragPreviewOptions=e||null,n.reconnect(),function(){return n.disconnectDragPreview()}},[n,e]),n}var Mo,Y0;function k6(){return Y0||(Y0=1,Mo=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!t(e[a],r[a]))return!1}return!0}return e!==e&&r!==r}),Mo}var I6=k6();const O6=Af(I6);function M6(t,e){return L6(t)||B6(t,e)||R6(t,e)||N6()}function N6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
93
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function R6(t,e){if(t){if(typeof t=="string")return X0(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return X0(t,e)}}function X0(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function B6(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,l;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(s){o=!0,l=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw l}}return n}}function L6(t){if(Array.isArray(t))return t}function G1(t,e,r){var n=u.useState(function(){return e(t)}),i=M6(n,2),o=i[0],a=i[1],l=u.useCallback(function(){var s=e(t);O6(o,s)||(a(s),r&&r())},[o,t,r]);return Mt(l),[o,l]}function j6(t,e){return z6(t)||H6(t,e)||V6(t,e)||K6()}function K6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
94
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V6(t,e){if(t){if(typeof t=="string")return J0(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return J0(t,e)}}function J0(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function H6(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,l;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(s){o=!0,l=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw l}}return n}}function z6(t){if(Array.isArray(t))return t}function U6(t,e,r){var n=G1(t,e,r),i=j6(n,2),o=i[0],a=i[1];return Mt(function(){var s=t.getHandlerId();if(s!=null)return t.subscribeToStateChange(a,{handlerIds:[s]})},[t,a]),o}function q1(t,e,r){return U6(e,t||function(){return{}},function(){return r.reconnect()})}function W6(t){return u.useMemo(function(){return t.hooks.dragSource()},[t])}function Z6(t){return u.useMemo(function(){return t.hooks.dragPreview()},[t])}function G6(t,e){var r=Z1(t,e);J(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");var n=A6(),i=T6(r.options,r.previewOptions);return D6(r,n,i),[q1(r.collect,n,i),W6(i),Z6(i)]}function q6(t){var e=t.accept;return u.useMemo(function(){return J(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]},[e])}function Y6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function X6(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function J6(t,e,r){return e&&X6(t.prototype,e),t}function Q0(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Q6=function(){function t(e,r){Y6(this,t),Q0(this,"spec",void 0),Q0(this,"monitor",void 0),this.spec=e,this.monitor=r}return J6(t,[{key:"canDrop",value:function(){var r=this.spec,n=this.monitor;return r.canDrop?r.canDrop(n.getItem(),n):!0}},{key:"hover",value:function(){var r=this.spec,n=this.monitor;r.hover&&r.hover(n.getItem(),n)}},{key:"drop",value:function(){var r=this.spec,n=this.monitor;if(r.drop)return r.drop(n.getItem(),n)}}]),t}();function eb(t,e){var r=u.useMemo(function(){return new Q6(t,e)},[e]);return u.useEffect(function(){r.spec=t},[t]),r}function tb(t,e){return ob(t)||ib(t,e)||nb(t,e)||rb()}function rb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
95
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nb(t,e){if(t){if(typeof t=="string")return e2(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e2(t,e)}}function e2(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ib(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,l;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(s){o=!0,l=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw l}}return n}}function ob(t){if(Array.isArray(t))return t}function ab(t,e,r){var n=Kt(),i=eb(t,e),o=q6(t);Mt(function(){var l=d6(o,i,n),s=tb(l,2),c=s[0],d=s[1];return e.receiveHandlerId(c),r.receiveHandlerId(c),d},[n,e,i,r,o.map(function(a){return a.toString()}).join("|")])}function lb(){var t=Kt();return u.useMemo(function(){return new Qv(t)},[t])}function sb(t){var e=Kt(),r=u.useMemo(function(){return new u6(e.getBackend())},[e]);return Mt(function(){return r.dropTargetOptions=t||null,r.reconnect(),function(){return r.disconnectDropTarget()}},[t]),r}function cb(t){return u.useMemo(function(){return t.hooks.dropTarget()},[t])}function Y1(t,e){var r=Z1(t,e),n=lb(),i=sb(r.options);return ab(r,n,i),[q1(r.collect,n,i),cb(i)]}function ub(t,e){return pb(t)||hb(t,e)||fb(t,e)||db()}function db(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
96
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fb(t,e){if(t){if(typeof t=="string")return t2(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t2(t,e)}}function t2(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function hb(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,l;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(s){o=!0,l=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw l}}return n}}function pb(t){if(Array.isArray(t))return t}function gb(t){var e=Kt(),r=e.getMonitor(),n=G1(r,t),i=ub(n,2),o=i[0],a=i[1];return u.useEffect(function(){return r.subscribeToOffsetChange(a)}),u.useEffect(function(){return r.subscribeToStateChange(a)}),o}function X1(t){var e=null,r=function(){return e==null&&(e=t()),e};return r}function vb(t,e){return t.filter(function(r){return r!==e})}function bb(t,e){var r=new Set,n=function(a){return r.add(a)};t.forEach(n),e.forEach(n);var i=[];return r.forEach(function(o){return i.push(o)}),i}function mb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yb(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Cb(t,e,r){return e&&yb(t.prototype,e),t}function r2(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Eb=function(){function t(e){mb(this,t),r2(this,"entered",[]),r2(this,"isNodeInDocument",void 0),this.isNodeInDocument=e}return Cb(t,[{key:"enter",value:function(r){var n=this,i=this.entered.length,o=function(l){return n.isNodeInDocument(l)&&(!l.contains||l.contains(r))};return this.entered=bb(this.entered.filter(o),[r]),i===0&&this.entered.length>0}},{key:"leave",value:function(r){var n=this.entered.length;return this.entered=vb(this.entered.filter(this.isNodeInDocument),r),n>0&&this.entered.length===0}},{key:"reset",value:function(){this.entered=[]}}]),t}(),wb=X1(function(){return/firefox/i.test(navigator.userAgent)}),J1=X1(function(){return!!window.safari});function xb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Db(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Sb(t,e,r){return e&&Db(t.prototype,e),t}function Rr(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var n2=function(){function t(e,r){xb(this,t),Rr(this,"xs",void 0),Rr(this,"ys",void 0),Rr(this,"c1s",void 0),Rr(this,"c2s",void 0),Rr(this,"c3s",void 0);for(var n=e.length,i=[],o=0;o<n;o++)i.push(o);i.sort(function(O,K){return e[O]<e[K]?-1:1});for(var a=[],l=[],s,c,d=0;d<n-1;d++)s=e[d+1]-e[d],c=r[d+1]-r[d],a.push(s),l.push(c/s);for(var f=[l[0]],p=0;p<a.length-1;p++){var g=l[p],y=l[p+1];if(g*y<=0)f.push(0);else{s=a[p];var h=a[p+1],v=s+h;f.push(3*v/((v+h)/g+(v+s)/y))}}f.push(l[l.length-1]);for(var m=[],C=[],E,F=0;F<f.length-1;F++){E=l[F];var D=f[F],w=1/a[F],S=D+f[F+1]-E-E;m.push((E-D-S)*w),C.push(S*w*w)}this.xs=e,this.ys=r,this.c1s=f,this.c2s=m,this.c3s=C}return Sb(t,[{key:"interpolate",value:function(r){var n=this.xs,i=this.ys,o=this.c1s,a=this.c2s,l=this.c3s,s=n.length-1;if(r===n[s])return i[s];for(var c=0,d=l.length-1,f;c<=d;){f=Math.floor(.5*(c+d));var p=n[f];if(p<r)c=f+1;else if(p>r)d=f-1;else return i[f]}s=Math.max(0,d);var g=r-n[s],y=g*g;return i[s]+o[s]*g+a[s]*y+l[s]*g*y}}]),t}(),Fb=1;function Q1(t){var e=t.nodeType===Fb?t:t.parentElement;if(!e)return null;var r=e.getBoundingClientRect(),n=r.top,i=r.left;return{x:i,y:n}}function Pn(t){return{x:t.clientX,y:t.clientY}}function $b(t){var e;return t.nodeName==="IMG"&&(wb()||!((e=document.documentElement)!==null&&e!==void 0&&e.contains(t)))}function _b(t,e,r,n){var i=t?e.width:r,o=t?e.height:n;return J1()&&t&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function Pb(t,e,r,n,i){var o=$b(e),a=o?t:e,l=Q1(a),s={x:r.x-l.x,y:r.y-l.y},c=t.offsetWidth,d=t.offsetHeight,f=n.anchorX,p=n.anchorY,g=_b(o,e,c,d),y=g.dragPreviewWidth,h=g.dragPreviewHeight,v=function(){var S=new n2([0,.5,1],[s.y,s.y/d*h,s.y+h-d]),O=S.interpolate(p);return J1()&&o&&(O+=(window.devicePixelRatio-1)*h),O},m=function(){var S=new n2([0,.5,1],[s.x,s.x/c*y,s.x+y-c]);return S.interpolate(f)},C=i.offsetX,E=i.offsetY,F=C===0||C,D=E===0||E;return{x:F?C:m(),y:D?E:v()}}var ef="__NATIVE_FILE__",tf="__NATIVE_URL__",rf="__NATIVE_TEXT__",nf="__NATIVE_HTML__";const i2=Object.freeze(Object.defineProperty({__proto__:null,FILE:ef,HTML:nf,TEXT:rf,URL:tf},Symbol.toStringTag,{value:"Module"}));function No(t,e,r){var n=e.reduce(function(i,o){return i||t.getData(o)},"");return n??r}var er;function An(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var $a=(er={},An(er,ef,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items},dataTransfer:function(e){return e}},matchesTypes:["Files"]}),An(er,nf,{exposeProperties:{html:function(e,r){return No(e,r,"")},dataTransfer:function(e){return e}},matchesTypes:["Html","text/html"]}),An(er,tf,{exposeProperties:{urls:function(e,r){return No(e,r,"").split(`
97
+ `)},dataTransfer:function(e){return e}},matchesTypes:["Url","text/uri-list"]}),An(er,rf,{exposeProperties:{text:function(e,r){return No(e,r,"")},dataTransfer:function(e){return e}},matchesTypes:["Text","text/plain"]}),er);function Ab(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Tb(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function kb(t,e,r){return e&&Tb(t.prototype,e),t}function o2(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ib=function(){function t(e){Ab(this,t),o2(this,"item",void 0),o2(this,"config",void 0),this.config=e,this.item={},this.initializeExposedProperties()}return kb(t,[{key:"initializeExposedProperties",value:function(){var r=this;Object.keys(this.config.exposeProperties).forEach(function(n){Object.defineProperty(r.item,n,{configurable:!0,enumerable:!0,get:function(){return console.warn(`Browser doesn't allow reading "`.concat(n,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(r){var n=this;if(r){var i={};Object.keys(this.config.exposeProperties).forEach(function(o){i[o]={value:n.config.exposeProperties[o](r,n.config.matchesTypes),configurable:!0,enumerable:!0}}),Object.defineProperties(this.item,i)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(r,n){return n===r.getSourceId()}},{key:"endDrag",value:function(){}}]),t}();function Ob(t,e){var r=new Ib($a[t]);return r.loadDataTransfer(e),r}function Ro(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys($a).filter(function(r){var n=$a[r].matchesTypes;return n.some(function(i){return e.indexOf(i)>-1})})[0]||null}function Mb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nb(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Rb(t,e,r){return e&&Nb(t.prototype,e),t}function Bo(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Bb=function(){function t(e,r){Mb(this,t),Bo(this,"ownerDocument",null),Bo(this,"globalContext",void 0),Bo(this,"optionsArgs",void 0),this.globalContext=e,this.optionsArgs=r}return Rb(t,[{key:"window",get:function(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}},{key:"document",get:function(){var r;return(r=this.globalContext)!==null&&r!==void 0&&r.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var r;return((r=this.optionsArgs)===null||r===void 0?void 0:r.rootElement)||this.window}}]),t}();function a2(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function l2(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?a2(Object(r),!0).forEach(function(n){ee(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a2(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Lb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jb(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Kb(t,e,r){return e&&jb(t.prototype,e),t}function ee(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Vb=function(){function t(e,r,n){var i=this;Lb(this,t),ee(this,"options",void 0),ee(this,"actions",void 0),ee(this,"monitor",void 0),ee(this,"registry",void 0),ee(this,"enterLeaveCounter",void 0),ee(this,"sourcePreviewNodes",new Map),ee(this,"sourcePreviewNodeOptions",new Map),ee(this,"sourceNodes",new Map),ee(this,"sourceNodeOptions",new Map),ee(this,"dragStartSourceIds",null),ee(this,"dropTargetIds",[]),ee(this,"dragEnterTargetIds",[]),ee(this,"currentNativeSource",null),ee(this,"currentNativeHandle",null),ee(this,"currentDragSourceNode",null),ee(this,"altKeyPressed",!1),ee(this,"mouseMoveTimeoutTimer",null),ee(this,"asyncEndDragFrameId",null),ee(this,"dragOverTargetIds",null),ee(this,"lastClientOffset",null),ee(this,"hoverRafId",null),ee(this,"getSourceClientOffset",function(o){var a=i.sourceNodes.get(o);return a&&Q1(a)||null}),ee(this,"endDragNativeItem",function(){i.isDraggingNativeItem()&&(i.actions.endDrag(),i.currentNativeHandle&&i.registry.removeSource(i.currentNativeHandle),i.currentNativeHandle=null,i.currentNativeSource=null)}),ee(this,"isNodeInDocument",function(o){return!!(o&&i.document&&i.document.body&&i.document.body.contains(o))}),ee(this,"endDragIfSourceWasRemovedFromDOM",function(){var o=i.currentDragSourceNode;o==null||i.isNodeInDocument(o)||i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),ee(this,"handleTopDragStartCapture",function(){i.clearCurrentDragSourceNode(),i.dragStartSourceIds=[]}),ee(this,"handleTopDragStart",function(o){if(!o.defaultPrevented){var a=i.dragStartSourceIds;i.dragStartSourceIds=null;var l=Pn(o);i.monitor.isDragging()&&i.actions.endDrag(),i.actions.beginDrag(a||[],{publishSource:!1,getSourceClientOffset:i.getSourceClientOffset,clientOffset:l});var s=o.dataTransfer,c=Ro(s);if(i.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){var d=i.monitor.getSourceId(),f=i.sourceNodes.get(d),p=i.sourcePreviewNodes.get(d)||f;if(p){var g=i.getCurrentSourcePreviewNodeOptions(),y=g.anchorX,h=g.anchorY,v=g.offsetX,m=g.offsetY,C={anchorX:y,anchorY:h},E={offsetX:v,offsetY:m},F=Pb(f,p,l,C,E);s.setDragImage(p,F.x,F.y)}}try{s==null||s.setData("application/json",{})}catch{}i.setCurrentDragSourceNode(o.target);var D=i.getCurrentSourcePreviewNodeOptions(),w=D.captureDraggingState;w?i.actions.publishDragSource():setTimeout(function(){return i.actions.publishDragSource()},0)}else if(c)i.beginDragNativeItem(c);else{if(s&&!s.types&&(o.target&&!o.target.hasAttribute||!o.target.hasAttribute("draggable")))return;o.preventDefault()}}}),ee(this,"handleTopDragEndCapture",function(){i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),ee(this,"handleTopDragEnterCapture",function(o){i.dragEnterTargetIds=[];var a=i.enterLeaveCounter.enter(o.target);if(!(!a||i.monitor.isDragging())){var l=o.dataTransfer,s=Ro(l);s&&i.beginDragNativeItem(s,l)}}),ee(this,"handleTopDragEnter",function(o){var a=i.dragEnterTargetIds;if(i.dragEnterTargetIds=[],!!i.monitor.isDragging()){i.altKeyPressed=o.altKey,a.length>0&&i.actions.hover(a,{clientOffset:Pn(o)});var l=a.some(function(s){return i.monitor.canDropOnTarget(s)});l&&(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=i.getCurrentDropEffect()))}}),ee(this,"handleTopDragOverCapture",function(){i.dragOverTargetIds=[]}),ee(this,"handleTopDragOver",function(o){var a=i.dragOverTargetIds;if(i.dragOverTargetIds=[],!i.monitor.isDragging()){o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none");return}i.altKeyPressed=o.altKey,i.lastClientOffset=Pn(o),i.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(i.hoverRafId=requestAnimationFrame(function(){i.monitor.isDragging()&&i.actions.hover(a||[],{clientOffset:i.lastClientOffset}),i.hoverRafId=null}));var l=(a||[]).some(function(s){return i.monitor.canDropOnTarget(s)});l?(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=i.getCurrentDropEffect())):i.isDraggingNativeItem()?o.preventDefault():(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none"))}),ee(this,"handleTopDragLeaveCapture",function(o){i.isDraggingNativeItem()&&o.preventDefault();var a=i.enterLeaveCounter.leave(o.target);a&&i.isDraggingNativeItem()&&setTimeout(function(){return i.endDragNativeItem()},0)}),ee(this,"handleTopDropCapture",function(o){if(i.dropTargetIds=[],i.isDraggingNativeItem()){var a;o.preventDefault(),(a=i.currentNativeSource)===null||a===void 0||a.loadDataTransfer(o.dataTransfer)}else Ro(o.dataTransfer)&&o.preventDefault();i.enterLeaveCounter.reset()}),ee(this,"handleTopDrop",function(o){var a=i.dropTargetIds;i.dropTargetIds=[],i.actions.hover(a,{clientOffset:Pn(o)}),i.actions.drop({dropEffect:i.getCurrentDropEffect()}),i.isDraggingNativeItem()?i.endDragNativeItem():i.monitor.isDragging()&&i.actions.endDrag()}),ee(this,"handleSelectStart",function(o){var a=o.target;typeof a.dragDrop=="function"&&(a.tagName==="INPUT"||a.tagName==="SELECT"||a.tagName==="TEXTAREA"||a.isContentEditable||(o.preventDefault(),a.dragDrop()))}),this.options=new Bb(r,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Eb(this.isNodeInDocument)}return Kb(t,[{key:"profile",value:function(){var r,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((r=this.dragStartSourceIds)===null||r===void 0?void 0:r.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var r=this.rootElement;if(r!==void 0){if(r.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");r.__isReactDndBackendSetUp=!0,this.addEventListeners(r)}}},{key:"teardown",value:function(){var r=this.rootElement;if(r!==void 0&&(r.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}},{key:"connectDragPreview",value:function(r,n,i){var o=this;return this.sourcePreviewNodeOptions.set(r,i),this.sourcePreviewNodes.set(r,n),function(){o.sourcePreviewNodes.delete(r),o.sourcePreviewNodeOptions.delete(r)}}},{key:"connectDragSource",value:function(r,n,i){var o=this;this.sourceNodes.set(r,n),this.sourceNodeOptions.set(r,i);var a=function(c){return o.handleDragStart(c,r)},l=function(c){return o.handleSelectStart(c)};return n.setAttribute("draggable","true"),n.addEventListener("dragstart",a),n.addEventListener("selectstart",l),function(){o.sourceNodes.delete(r),o.sourceNodeOptions.delete(r),n.removeEventListener("dragstart",a),n.removeEventListener("selectstart",l),n.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(r,n){var i=this,o=function(c){return i.handleDragEnter(c,r)},a=function(c){return i.handleDragOver(c,r)},l=function(c){return i.handleDrop(c,r)};return n.addEventListener("dragenter",o),n.addEventListener("dragover",a),n.addEventListener("drop",l),function(){n.removeEventListener("dragenter",o),n.removeEventListener("dragover",a),n.removeEventListener("drop",l)}}},{key:"addEventListeners",value:function(r){r.addEventListener&&(r.addEventListener("dragstart",this.handleTopDragStart),r.addEventListener("dragstart",this.handleTopDragStartCapture,!0),r.addEventListener("dragend",this.handleTopDragEndCapture,!0),r.addEventListener("dragenter",this.handleTopDragEnter),r.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),r.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),r.addEventListener("dragover",this.handleTopDragOver),r.addEventListener("dragover",this.handleTopDragOverCapture,!0),r.addEventListener("drop",this.handleTopDrop),r.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(r){r.removeEventListener&&(r.removeEventListener("dragstart",this.handleTopDragStart),r.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),r.removeEventListener("dragend",this.handleTopDragEndCapture,!0),r.removeEventListener("dragenter",this.handleTopDragEnter),r.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),r.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),r.removeEventListener("dragover",this.handleTopDragOver),r.removeEventListener("dragover",this.handleTopDragOverCapture,!0),r.removeEventListener("drop",this.handleTopDrop),r.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var r=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(r);return l2({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var r=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(r);return l2({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}},{key:"isDraggingNativeItem",value:function(){var r=this.monitor.getItemType();return Object.keys(i2).some(function(n){return i2[n]===r})}},{key:"beginDragNativeItem",value:function(r,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=Ob(r,n),this.currentNativeHandle=this.registry.addSource(r,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(r){var n=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=r;var i=1e3;this.mouseMoveTimeoutTimer=setTimeout(function(){var o;return(o=n.rootElement)===null||o===void 0?void 0:o.addEventListener("mousemove",n.endDragIfSourceWasRemovedFromDOM,!0)},i)}},{key:"clearCurrentDragSourceNode",value:function(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var r;(r=this.window)===null||r===void 0||r.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}},{key:"handleDragStart",value:function(r,n){r.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}},{key:"handleDragEnter",value:function(r,n){this.dragEnterTargetIds.unshift(n)}},{key:"handleDragOver",value:function(r,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}},{key:"handleDrop",value:function(r,n){this.dropTargetIds.unshift(n)}}]),t}(),Tn;function Hb(){return Tn||(Tn=new Image,Tn.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),Tn}var zb=function(e,r,n){return new Vb(e,r,n)};function Ub(t){const e=ke(),r=e.selectedIds,[n,i,o]=G6(()=>({canDrag:()=>t.isDraggable,type:"NODE",item:()=>{const a=e.isSelected(t.id)?Array.from(r):[t.id];return e.dispatch(Er.dragStart(t.id,a)),{id:t.id,dragIds:a}},end:()=>{e.hideCursor(),e.dispatch(Er.dragEnd())}}),[r,t]);return u.useEffect(()=>{o(Hb())},[o]),i}function Wb(t,e){const r=t.getBoundingClientRect(),n=e.x-Math.round(r.x),i=e.y-Math.round(r.y),o=r.height,a=i<o/2,l=!a,s=o/4,c=i>s&&i<o-s;return{x:n,inTopHalf:a,inBottomHalf:l,inMiddle:c,atTop:!c&&a,atBottom:!c&&l}}function Zb(t,e,r,n){return t?t.isInternal?n.atTop?[e,t]:n.inMiddle?[t,t]:[t,r]:n.inTopHalf?[e,t]:[t,r]:[e,null]}function kn(t,e){return{parentId:t||null,index:e}}function tr(t,e){return{type:"line",index:t,level:e}}function Gb(t){return{type:"highlight",id:t}}function Lo(t,e){var r;let n=t;for(;n.parent&&n.level>e;)n=n.parent;const i=((r=n.parent)===null||r===void 0?void 0:r.id)||null,o=_1(n)+1;return{parentId:i,index:o}}function of(t){var e;const r=Wb(t.element,t.offset),n=t.indent,i=Math.round(Math.max(0,r.x-n)/n),{node:o,nextNode:a,prevNode:l}=t,[s,c]=Zb(o,l,a,r);if(o&&o.isInternal&&r.inMiddle)return{drop:kn(o.id,null),cursor:Gb(o.id)};if(!s)return{drop:kn((e=c==null?void 0:c.parent)===null||e===void 0?void 0:e.id,0),cursor:tr(0,0)};if(D1(s)){const d=Ln(i,(c==null?void 0:c.level)||0,s.level);return{drop:Lo(s,d),cursor:tr(s.rowIndex+1,d)}}if(S1(s)){const d=Ln(i,(c==null?void 0:c.level)||0,s.level);return{drop:Lo(s,d),cursor:tr(s.rowIndex+1,d)}}if(F1(s)){const d=Ln(i,0,s.level+1);return d>s.level?{drop:kn(s.id,0),cursor:tr(s.rowIndex+1,d)}:{drop:Lo(s,d),cursor:tr(s.rowIndex+1,d)}}return{drop:kn(s==null?void 0:s.id,0),cursor:tr(s.rowIndex+1,s.level+1)}}function qb(t,e){const r=ke(),[n,i]=Y1(()=>({accept:"NODE",canDrop:()=>r.canDrop(),hover:(o,a)=>{const l=a.getClientOffset();if(!t.current||!l)return;const{cursor:s,drop:c}=of({element:t.current,offset:l,indent:r.indent,node:e,prevNode:e.prev,nextNode:e.next});c&&r.dispatch(Er.hovering(c.parentId,c.index)),a.canDrop()?s&&r.showCursor(s):r.hideCursor()},drop:(o,a)=>{if(!a.canDrop())return null;let{parentId:l,index:s,dragIds:c}=r.state.dnd;I1(r.props.onMove,{dragIds:c,parentId:l===ln?null:l,index:s===null?0:s,dragNodes:r.dragNodes,parentNode:r.get(l)}),r.open(l)}}),[e,t.current,r.props]);return i}function Yb(t){const e=ke(),r=e.at(t);if(!r)throw new Error(`Could not find node for index: ${t}`);return u.useMemo(()=>{const n=r.clone();return e.visibleNodes[t]=n,n},[...Object.values(r.state),r])}const Xb=u.memo(function({index:e,style:r}){x1(),bg();const n=ke(),i=Yb(e),o=u.useRef(null),a=Ub(i),l=qb(o,i),s=u.useCallback(h=>{o.current=h,l(h)},[l]),c=n.indent*i.level,d=u.useMemo(()=>({paddingLeft:c}),[c]),f=u.useMemo(()=>{var h,v;return Object.assign(Object.assign({},r),{top:parseFloat(r.top)+((v=(h=n.props.padding)!==null&&h!==void 0?h:n.props.paddingTop)!==null&&v!==void 0?v:0)})},[r,n.props.padding,n.props.paddingTop]),p={role:"treeitem","aria-level":i.level+1,"aria-selected":i.isSelected,"aria-expanded":i.isOpen,style:f,tabIndex:-1,className:n.props.rowClassName};u.useEffect(()=>{var h;!i.isEditing&&i.isFocused&&((h=o.current)===null||h===void 0||h.focus({preventScroll:!0}))},[i.isEditing,i.isFocused,o.current]);const g=n.renderNode,y=n.renderRow;return b.jsx(y,{node:i,innerRef:s,attrs:p,children:b.jsx(g,{node:i,tree:n,style:d,dragHandle:a})})});let jo="",s2=null;function af(){x1();const t=ke();return b.jsx("div",{role:"tree",style:{height:t.height,width:t.width,minHeight:0,minWidth:0},onContextMenu:t.props.onContextMenu,onClick:t.props.onClick,tabIndex:0,onFocus:e=>{e.currentTarget.contains(e.relatedTarget)||t.onFocus()},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||t.onBlur()},onKeyDown:e=>{var r;if(t.isEditing)return;if(e.key==="Backspace"){if(!t.props.onDelete)return;const i=Array.from(t.selectedIds);if(i.length>1){let o=t.mostRecentNode;for(;o&&o.isSelected;)o=o.nextSibling;o||(o=t.lastNode),t.focus(o,{scroll:!1}),t.delete(Array.from(i))}else{const o=t.focusedNode;if(o){const a=o.nextSibling,l=o.parent;t.focus(a||l,{scroll:!1}),t.delete(o)}}return}if(e.key==="Tab"&&!e.shiftKey){e.preventDefault(),P1(e.currentTarget);return}if(e.key==="Tab"&&e.shiftKey){e.preventDefault(),A1(e.currentTarget);return}if(e.key==="ArrowDown"){e.preventDefault();const i=t.nextNode;if(e.metaKey){t.select(t.focusedNode),t.activate(t.focusedNode);return}else if(!e.shiftKey||t.props.disableMultiSelection){t.focus(i);return}else{if(!i)return;const o=t.focusedNode;o?o.isSelected?t.selectContiguous(i):t.selectMulti(i):t.focus(t.firstNode);return}}if(e.key==="ArrowUp"){e.preventDefault();const i=t.prevNode;if(!e.shiftKey||t.props.disableMultiSelection){t.focus(i);return}else{if(!i)return;const o=t.focusedNode;o?o.isSelected?t.selectContiguous(i):t.selectMulti(i):t.focus(t.lastNode);return}}if(e.key==="ArrowRight"){const i=t.focusedNode;if(!i)return;i.isInternal&&i.isOpen?t.focus(t.nextNode):i.isInternal&&t.open(i.id);return}if(e.key==="ArrowLeft"){const i=t.focusedNode;if(!i||i.isRoot)return;i.isInternal&&i.isOpen?t.close(i.id):!((r=i.parent)===null||r===void 0)&&r.isRoot||t.focus(i.parent);return}if(e.key==="a"&&e.metaKey&&!t.props.disableMultiSelection){e.preventDefault(),t.selectAll();return}if(e.key==="a"&&!e.metaKey&&t.props.onCreate){t.createLeaf();return}if(e.key==="A"&&!e.metaKey){if(!t.props.onCreate)return;t.createInternal();return}if(e.key==="Home"){e.preventDefault(),t.focus(t.firstNode);return}if(e.key==="End"){e.preventDefault(),t.focus(t.lastNode);return}if(e.key==="Enter"){const i=t.focusedNode;if(!i||!i.isEditable||!t.props.onRename)return;setTimeout(()=>{i&&t.edit(i)});return}if(e.key===" "){e.preventDefault();const i=t.focusedNode;if(!i)return;i.isLeaf?(i.select(),i.activate()):i.toggle();return}if(e.key==="*"){const i=t.focusedNode;if(!i)return;t.openSiblings(i);return}if(e.key==="PageUp"){e.preventDefault(),t.pageUp();return}e.key==="PageDown"&&(e.preventDefault(),t.pageDown()),clearTimeout(s2),jo+=e.key,s2=setTimeout(()=>{jo=""},600);const n=t.visibleNodes.find(i=>{const o=i.data.name;return typeof o=="string"?o.toLowerCase().startsWith(jo):!1});n&&t.focus(n.id)},children:b.jsx(e8,{className:t.props.className,outerRef:t.listEl,itemCount:t.visibleNodes.length,height:t.height,width:t.width,itemSize:t.rowHeight,overscanCount:t.overscanCount,itemKey:e=>{var r;return((r=t.visibleNodes[e])===null||r===void 0?void 0:r.id)||e},outerElementType:n8,innerElementType:a8,onScroll:t.props.onScroll,onItemsRendered:t.onItemsRendered.bind(t),ref:t.list,children:Xb})})}function c2(t){return t.isFiltered?Qb(t.root,t.isMatch.bind(t)):Jb(t.root)}function Jb(t){const e=[];function r(n){var i;n.level>=0&&e.push(n),n.isOpen&&((i=n.children)===null||i===void 0||i.forEach(r))}return r(t),e.forEach(lf),e}function Qb(t,e){const r={},n=[];function i(a){if(!a.isRoot&&e(a)){r[a.id]=!0;let s=a.parent;for(;s;)r[s.id]=!0,s=s.parent}if(a.children)for(let s of a.children)i(s)}function o(a){var l;a.level>=0&&r[a.id]&&n.push(a),a.isOpen&&((l=a.children)===null||l===void 0||l.forEach(o))}return i(t),o(t),n.forEach(lf),n}function lf(t,e){t.rowIndex=e}const u2=t=>t.reduce((e,r,n)=>(e[r.id]=n,e),{});var Ko=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function l(d){try{c(n.next(d))}catch(f){a(f)}}function s(d){try{c(n.throw(d))}catch(f){a(f)}}function c(d){d.done?o(d.value):i(d.value).then(l,s)}c((n=n.apply(t,e||[])).next())})};const{safeRun:ye,identify:Je,identifyNull:je}=xg;class pr{constructor(e,r,n,i){this.store=e,this.props=r,this.list=n,this.listEl=i,this.visibleStartIndex=0,this.visibleStopIndex=0,this.root=y0(this),this.visibleNodes=c2(this),this.idToIndex=u2(this.visibleNodes)}update(e){this.props=e,this.root=y0(this),this.visibleNodes=c2(this),this.idToIndex=u2(this.visibleNodes)}dispatch(e){return this.store.dispatch(e)}get state(){return this.store.getState()}get openState(){return this.state.nodes.open.unfiltered}get width(){var e;return(e=this.props.width)!==null&&e!==void 0?e:300}get height(){var e;return(e=this.props.height)!==null&&e!==void 0?e:500}get indent(){var e;return(e=this.props.indent)!==null&&e!==void 0?e:24}get rowHeight(){var e;return(e=this.props.rowHeight)!==null&&e!==void 0?e:24}get overscanCount(){var e;return(e=this.props.overscanCount)!==null&&e!==void 0?e:1}get searchTerm(){return(this.props.searchTerm||"").trim()}get matchFn(){var e;const r=(e=this.props.searchMatch)!==null&&e!==void 0?e:(n,i)=>JSON.stringify(Object.values(n.data)).toLocaleLowerCase().includes(i.toLocaleLowerCase());return n=>r(n,this.searchTerm)}accessChildren(e){var r;const n=this.props.childrenAccessor||"children";return(r=Hr(e,n))!==null&&r!==void 0?r:null}accessId(e){const r=this.props.idAccessor||"id",n=Hr(e,r);if(!n)throw new Error("Data must contain an 'id' property or props.idAccessor must return a string");return n}get firstNode(){var e;return(e=this.visibleNodes[0])!==null&&e!==void 0?e:null}get lastNode(){var e;return(e=this.visibleNodes[this.visibleNodes.length-1])!==null&&e!==void 0?e:null}get focusedNode(){var e;return(e=this.get(this.state.nodes.focus.id))!==null&&e!==void 0?e:null}get mostRecentNode(){var e;return(e=this.get(this.state.nodes.selection.mostRecent))!==null&&e!==void 0?e:null}get nextNode(){const e=this.indexOf(this.focusedNode);return e===null?null:this.at(e+1)}get prevNode(){const e=this.indexOf(this.focusedNode);return e===null?null:this.at(e-1)}get(e){return e&&e in this.idToIndex&&this.visibleNodes[this.idToIndex[e]]||null}at(e){return this.visibleNodes[e]||null}nodesBetween(e,r){var n;if(e===null||r===null)return[];const i=(n=this.indexOf(e))!==null&&n!==void 0?n:0,o=this.indexOf(r);if(o===null)return[];const a=Math.min(i,o),l=Math.max(i,o);return this.visibleNodes.slice(a,l+1)}indexOf(e){const r=k1(e);return r?this.idToIndex[r]:null}get editingId(){return this.state.nodes.edit.id}createInternal(){return this.create({type:"internal"})}createLeaf(){return this.create({type:"leaf"})}create(){return Ko(this,arguments,void 0,function*(e={}){var r,n;const i=e.parentId===void 0?N1(this):e.parentId,o=(r=e.index)!==null&&r!==void 0?r:M1(this),a=(n=e.type)!==null&&n!==void 0?n:"leaf",l=yield ye(this.props.onCreate,{type:a,parentId:i,index:o,parentNode:this.get(i)});l&&(this.focus(l),setTimeout(()=>{this.edit(l).then(()=>{this.select(l),this.activate(l)})}))})}delete(e){return Ko(this,void 0,void 0,function*(){if(!e)return;const n=(Array.isArray(e)?e:[e]).map(Je),i=n.map(o=>this.get(o)).filter(o=>!!o);yield ye(this.props.onDelete,{nodes:i,ids:n})})}edit(e){const r=Je(e);return this.resolveEdit({cancelled:!0}),this.scrollTo(r),this.dispatch(_o(r)),new Promise(n=>{pr.editPromise=n})}submit(e,r){return Ko(this,void 0,void 0,function*(){if(!e)return;const n=Je(e);yield ye(this.props.onRename,{id:n,name:r,node:this.get(n)}),this.dispatch(_o(null)),this.resolveEdit({cancelled:!1,value:r}),setTimeout(()=>this.onFocus())})}reset(){this.dispatch(_o(null)),this.resolveEdit({cancelled:!0}),setTimeout(()=>this.onFocus())}activate(e){const r=this.get(je(e));r&&ye(this.props.onActivate,r)}resolveEdit(e){const r=pr.editPromise;r&&r(e),pr.editPromise=null}get selectedIds(){return this.state.nodes.selection.ids}get selectedNodes(){let e=[];for(let r of Array.from(this.selectedIds)){const n=this.get(r);n&&e.push(n)}return e}focus(e,r={}){e&&(this.props.selectionFollowsFocus?this.select(e):(this.dispatch(Yt(Je(e))),r.scroll!==!1&&this.scrollTo(e),this.focusedNode&&ye(this.props.onFocus,this.focusedNode)))}pageUp(){var e,r;const n=this.visibleStartIndex,o=this.visibleStopIndex-n;let a=(r=(e=this.focusedNode)===null||e===void 0?void 0:e.rowIndex)!==null&&r!==void 0?r:0;a>n?a=n:a=Math.max(n-o,0),this.focus(this.at(a))}pageDown(){var e,r;const n=this.visibleStartIndex,i=this.visibleStopIndex,o=i-n;let a=(r=(e=this.focusedNode)===null||e===void 0?void 0:e.rowIndex)!==null&&r!==void 0?r:0;a<i?a=i:a=Math.min(a+o,this.visibleNodes.length-1),this.focus(this.at(a))}select(e,r={}){if(!e)return;const n=r.focus!==!1,i=Je(e);n&&this.dispatch(Yt(i)),this.dispatch(Le.only(i)),this.dispatch(Le.anchor(i)),this.dispatch(Le.mostRecent(i)),this.scrollTo(i,r.align),this.focusedNode&&n&&ye(this.props.onFocus,this.focusedNode),ye(this.props.onSelect,this.selectedNodes)}deselect(e){if(!e)return;const r=Je(e);this.dispatch(Le.remove(r)),ye(this.props.onSelect,this.selectedNodes)}selectMulti(e){const r=this.get(je(e));r&&(this.dispatch(Yt(r.id)),this.dispatch(Le.add(r.id)),this.dispatch(Le.anchor(r.id)),this.dispatch(Le.mostRecent(r.id)),this.scrollTo(r),this.focusedNode&&ye(this.props.onFocus,this.focusedNode),ye(this.props.onSelect,this.selectedNodes))}selectContiguous(e){if(!e)return;const r=Je(e),{anchor:n,mostRecent:i}=this.state.nodes.selection;this.dispatch(Yt(r)),this.dispatch(Le.remove(this.nodesBetween(n,i))),this.dispatch(Le.add(this.nodesBetween(n,je(r)))),this.dispatch(Le.mostRecent(r)),this.scrollTo(r),this.focusedNode&&ye(this.props.onFocus,this.focusedNode),ye(this.props.onSelect,this.selectedNodes)}deselectAll(){this.setSelection({ids:[],anchor:null,mostRecent:null}),ye(this.props.onSelect,this.selectedNodes)}selectAll(){var e;this.setSelection({ids:Object.keys(this.idToIndex),anchor:this.firstNode,mostRecent:this.lastNode}),this.dispatch(Yt((e=this.lastNode)===null||e===void 0?void 0:e.id)),this.focusedNode&&ye(this.props.onFocus,this.focusedNode),ye(this.props.onSelect,this.selectedNodes)}setSelection(e){var r;const n=new Set((r=e.ids)===null||r===void 0?void 0:r.map(Je)),i=je(e.anchor),o=je(e.mostRecent);this.dispatch(Le.set({ids:n,anchor:i,mostRecent:o})),ye(this.props.onSelect,this.selectedNodes)}get cursorParentId(){const{cursor:e}=this.state.dnd;switch(e.type){case"highlight":return e.id;default:return null}}get cursorOverFolder(){return this.state.dnd.cursor.type==="highlight"}get dragNodes(){return this.state.dnd.dragIds.map(e=>this.get(e)).filter(e=>!!e)}get dragNode(){return this.get(this.state.nodes.drag.id)}get dragDestinationParent(){return this.get(this.state.nodes.drag.destinationParentId)}get dragDestinationIndex(){return this.state.nodes.drag.destinationIndex}canDrop(){var e;if(this.isFiltered)return!1;const r=(e=this.get(this.state.dnd.parentId))!==null&&e!==void 0?e:this.root,n=this.dragNodes,i=this.props.disableDrop;for(const o of n)if(!o||!r||o.isInternal&&$1(r,o))return!1;return typeof i=="function"?!i({parentNode:r,dragNodes:this.dragNodes,index:this.state.dnd.index||0}):typeof i=="string"?!r.data[i]:typeof i=="boolean"?!i:!0}hideCursor(){this.dispatch(Er.cursor({type:"none"}))}showCursor(e){this.dispatch(Er.cursor(e))}open(e){const r=je(e);r&&(this.isOpen(r)||(this.dispatch(ya.open(r,this.isFiltered)),ye(this.props.onToggle,r)))}close(e){const r=je(e);r&&this.isOpen(r)&&(this.dispatch(ya.close(r,this.isFiltered)),ye(this.props.onToggle,r))}toggle(e){const r=je(e);if(r)return this.isOpen(r)?this.close(r):this.open(r)}openParents(e){const r=je(e);if(!r)return;const n=Cl(this.root,r);let i=n==null?void 0:n.parent;for(;i;)this.open(i.id),i=i.parent}openSiblings(e){const r=e.parent;if(!r)this.toggle(e.id);else if(r.children){const n=e.isOpen;for(let i of r.children)i.isInternal&&(n?this.close(i.id):this.open(i.id));this.scrollTo(this.focusedNode)}}openAll(){ci(this.root,e=>{e.isInternal&&e.open()})}closeAll(){ci(this.root,e=>{e.isInternal&&e.close()})}scrollTo(e,r="smart"){if(!e)return;const n=Je(e);return this.openParents(n),O1(()=>n in this.idToIndex).then(()=>{var i;const o=this.idToIndex[n];o!==void 0&&((i=this.list.current)===null||i===void 0||i.scrollToItem(o,r))}).catch(()=>{})}get isEditing(){return this.state.nodes.edit.id!==null}get isFiltered(){var e;return!!(!((e=this.props.searchTerm)===null||e===void 0)&&e.trim())}get hasFocus(){return this.state.nodes.focus.treeFocused}get hasNoSelection(){return this.state.nodes.selection.ids.size===0}get hasOneSelection(){return this.state.nodes.selection.ids.size===1}get hasMultipleSelections(){return this.state.nodes.selection.ids.size>1}isSelected(e){return e?this.state.nodes.selection.ids.has(e):!1}isOpen(e){var r,n,i;if(!e)return!1;if(e===ln)return!0;const o=(r=this.props.openByDefault)!==null&&r!==void 0?r:!0;return this.isFiltered?(n=this.state.nodes.open.filtered[e])!==null&&n!==void 0?n:!0:(i=this.state.nodes.open.unfiltered[e])!==null&&i!==void 0?i:o}isEditable(e){const r=this.props.disableEdit||(()=>!1);return!Hr(e,r)}isDraggable(e){const r=this.props.disableDrag||(()=>!1);return!Hr(e,r)}isDragging(e){const r=je(e);return r?this.state.nodes.drag.id===r:!1}isFocused(e){return this.hasFocus&&this.state.nodes.focus.id===e}isMatch(e){return this.matchFn(e)}willReceiveDrop(e){const r=je(e);if(!r)return!1;const{destinationParentId:n,destinationIndex:i}=this.state.nodes.drag;return r===n&&i===null}onFocus(){const e=this.focusedNode||this.firstNode;e&&this.dispatch(Yt(e.id))}onBlur(){this.dispatch(Ig())}onItemsRendered(e){this.visibleStartIndex=e.visibleStartIndex,this.visibleStopIndex=e.visibleStopIndex}get renderContainer(){return this.props.renderContainer||af}get renderRow(){return this.props.renderRow||_g}get renderNode(){return this.props.children||Pg}get renderDragPreview(){return this.props.renderDragPreview||R1}get renderCursor(){return this.props.renderCursor||$g}}function we(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var em=typeof Symbol=="function"&&Symbol.observable||"@@observable",d2=em,Vo=()=>Math.random().toString(36).substring(7).split("").join("."),tm={INIT:`@@redux/INIT${Vo()}`,REPLACE:`@@redux/REPLACE${Vo()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Vo()}`},_t=tm;function sf(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function rm(t){if(t===void 0)return"undefined";if(t===null)return"null";const e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(om(t))return"date";if(im(t))return"error";const r=nm(t);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(t).slice(8,-1).toLowerCase().replace(/\s/g,"")}function nm(t){return typeof t.constructor=="function"?t.constructor.name:null}function im(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function om(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function st(t){let e=typeof t;return process.env.NODE_ENV!=="production"&&(e=rm(t)),e}function cf(t,e,r){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?we(2):`Expected the root reducer to be a function. Instead, received: '${st(t)}'`);if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?we(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?we(1):`Expected the enhancer to be a function. Instead, received: '${st(r)}'`);return r(cf)(t,e)}let n=t,i=e,o=new Map,a=o,l=0,s=!1;function c(){a===o&&(a=new Map,o.forEach((v,m)=>{a.set(m,v)}))}function d(){if(s)throw new Error(process.env.NODE_ENV==="production"?we(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function f(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?we(4):`Expected the listener to be a function. Instead, received: '${st(v)}'`);if(s)throw new Error(process.env.NODE_ENV==="production"?we(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let m=!0;c();const C=l++;return a.set(C,v),function(){if(m){if(s)throw new Error(process.env.NODE_ENV==="production"?we(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");m=!1,c(),a.delete(C),o=null}}}function p(v){if(!sf(v))throw new Error(process.env.NODE_ENV==="production"?we(7):`Actions must be plain objects. Instead, the actual type was: '${st(v)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof v.type>"u")throw new Error(process.env.NODE_ENV==="production"?we(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof v.type!="string")throw new Error(process.env.NODE_ENV==="production"?we(17):`Action "type" property must be a string. Instead, the actual type was: '${st(v.type)}'. Value was: '${v.type}' (stringified)`);if(s)throw new Error(process.env.NODE_ENV==="production"?we(9):"Reducers may not dispatch actions.");try{s=!0,i=n(i,v)}finally{s=!1}return(o=a).forEach(C=>{C()}),v}function g(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?we(10):`Expected the nextReducer to be a function. Instead, received: '${st(v)}`);n=v,p({type:_t.REPLACE})}function y(){const v=f;return{subscribe(m){if(typeof m!="object"||m===null)throw new Error(process.env.NODE_ENV==="production"?we(11):`Expected the observer to be an object. Instead, received: '${st(m)}'`);function C(){const F=m;F.next&&F.next(d())}return C(),{unsubscribe:v(C)}},[d2](){return this}}}return p({type:_t.INIT}),{dispatch:p,subscribe:f,getState:d,replaceReducer:g,[d2]:y}}function f2(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function am(t,e,r,n){const i=Object.keys(e),o=r&&r.type===_t.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!sf(t))return`The ${o} has unexpected type of "${st(t)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const a=Object.keys(t).filter(l=>!e.hasOwnProperty(l)&&!n[l]);if(a.forEach(l=>{n[l]=!0}),!(r&&r.type===_t.REPLACE)&&a.length>0)return`Unexpected ${a.length>1?"keys":"key"} "${a.join('", "')}" found in ${o}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function lm(t){Object.keys(t).forEach(e=>{const r=t[e];if(typeof r(void 0,{type:_t.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?we(12):`The slice reducer for key "${e}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:_t.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?we(13):`The slice reducer for key "${e}" returned undefined when probed with a random type. Don't try to handle '${_t.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function h2(t){const e=Object.keys(t),r={};for(let a=0;a<e.length;a++){const l=e[a];process.env.NODE_ENV!=="production"&&typeof t[l]>"u"&&f2(`No reducer provided for key "${l}"`),typeof t[l]=="function"&&(r[l]=t[l])}const n=Object.keys(r);let i;process.env.NODE_ENV!=="production"&&(i={});let o;try{lm(r)}catch(a){o=a}return function(l={},s){if(o)throw o;if(process.env.NODE_ENV!=="production"){const f=am(l,r,s,i);f&&f2(f)}let c=!1;const d={};for(let f=0;f<n.length;f++){const p=n[f],g=r[p],y=l[p],h=g(y,s);if(typeof h>"u"){const v=s&&s.type;throw new Error(process.env.NODE_ENV==="production"?we(14):`When called with an action of type ${v?`"${String(v)}"`:"(unknown type)"}, the slice reducer for key "${p}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}d[p]=h,c=c||h!==y}return c=c||n.length!==Object.keys(l).length,c?d:l}}function sm(t=Cr().nodes.drag,e){switch(e.type){case"DND_DRAG_START":return Object.assign(Object.assign({},t),{id:e.id,selectedIds:e.dragIds});case"DND_DRAG_END":return Object.assign(Object.assign({},t),{id:null,destinationParentId:null,destinationIndex:null,selectedIds:[]});case"DND_HOVERING":return e.parentId!==t.destinationParentId||e.index!=t.destinationIndex?Object.assign(Object.assign({},t),{destinationParentId:e.parentId,destinationIndex:e.index}):t;default:return t}}const cm=h2({nodes:h2({focus:Og,edit:kg,open:Mg,selection:Ng,drag:sm}),dnd:Rg}),um=Cr();function dm({treeProps:t,imperativeHandle:e,children:r}){const n=u.useRef(null),i=u.useRef(null),o=u.useRef(cf(cm,Cr(t))),a=Za.useSyncExternalStore(o.current.subscribe,o.current.getState,()=>um),l=u.useMemo(()=>new pr(o.current,t,n,i),[]),s=u.useRef(0);return u.useMemo(()=>{s.current+=1,l.update(t)},[...Object.values(t),a.nodes.open]),u.useImperativeHandle(e,()=>l),u.useEffect(()=>{l.props.selection?l.select(l.props.selection,{focus:!1}):l.deselectAll()},[l.props.selection]),u.useEffect(()=>{l.props.searchTerm||o.current.dispatch(ya.clear(!0))},[l.props.searchTerm]),b.jsx(y1.Provider,{value:l,children:b.jsx(w1.Provider,{value:s.current,children:b.jsx(C1.Provider,{value:a.nodes,children:b.jsx(E1.Provider,{value:a.dnd,children:b.jsx(Hv,Object.assign({backend:zb,options:{rootElement:l.props.dndRootElement||void 0}},t.dndManager&&{manager:t.dndManager},{children:r}))})})})})}function fm(){const t=ke(),[,e]=Y1(()=>({accept:"NODE",canDrop:(r,n)=>n.isOver({shallow:!0})?t.canDrop():!1,hover:(r,n)=>{if(!n.isOver({shallow:!0}))return;const i=n.getClientOffset();if(!t.listEl.current||!i)return;const{cursor:o,drop:a}=of({element:t.listEl.current,offset:i,indent:t.indent,node:null,prevNode:t.visibleNodes[t.visibleNodes.length-1],nextNode:null});a&&t.dispatch(Er.hovering(a.parentId,a.index)),n.canDrop()?o&&t.showCursor(o):t.hideCursor()}}),[t]);e(t.listEl)}function hm(t){return fm(),t.children}function pm(){const e=ke().props.renderContainer||af;return b.jsx(b.Fragment,{children:b.jsx(e,{})})}function gm(){const t=ke(),{offset:e,mouse:r,item:n,isDragging:i}=gb(a=>({offset:a.getSourceClientOffset(),mouse:a.getClientOffset(),item:a.getItem(),isDragging:a.isDragging()})),o=t.props.renderDragPreview||R1;return b.jsx(o,{offset:e,mouse:r,id:(n==null?void 0:n.id)||null,dragIds:(n==null?void 0:n.dragIds)||[],isDragging:i})}class vm{constructor(e){this.root=bm(e)}get data(){var e,r;return(r=(e=this.root.children)===null||e===void 0?void 0:e.map(n=>n.data))!==null&&r!==void 0?r:[]}create(e){const r=e.parentId?this.find(e.parentId):this.root;if(!r)return null;r.addChild(e.data,e.index)}move(e){const r=this.find(e.id),n=e.parentId?this.find(e.parentId):this.root;!r||!n||(n.addChild(r.data,e.index),r.drop())}update(e){const r=this.find(e.id);r&&r.update(e.changes)}drop(e){const r=this.find(e.id);r&&r.drop()}find(e,r=this.root){if(!r)return null;if(r.id===e)return r;if(r.children){for(let n of r.children){const i=this.find(e,n);if(i)return i}return null}return null}}function bm(t){const e=new uf({id:"ROOT"},null);return e.children=t.map(r=>$l(r,e)),e}function $l(t,e){const r=new uf(t,e);return t.children&&(r.children=t.children.map(n=>$l(n,r))),r}class uf{constructor(e,r){this.data=e,this.parent=r,this.id=e.id}hasParent(){return!!this.parent}get childIndex(){return this.hasParent()?this.parent.children.indexOf(this):-1}addChild(e,r){var n,i;const o=$l(e,this);this.children=(n=this.children)!==null&&n!==void 0?n:[],this.children.splice(r,0,o),this.data.children=(i=this.data.children)!==null&&i!==void 0?i:[],this.data.children.splice(r,0,e)}removeChild(e){var r,n;(r=this.children)===null||r===void 0||r.splice(e,1),(n=this.data.children)===null||n===void 0||n.splice(e,1)}update(e){if(this.hasParent()){const r=this.childIndex;this.parent.addChild(Object.assign(Object.assign({},this.data),e),r),this.drop()}}drop(){this.hasParent()&&this.parent.removeChild(this.childIndex)}}let mm=0;function ym(t){const[e,r]=u.useState(t),n=u.useMemo(()=>new vm(e),[e]);return[e,{onMove:c=>{for(const d of c.dragIds)n.move({id:d,parentId:c.parentId,index:c.index});r(n.data)},onRename:({name:c,id:d})=>{n.update({id:d,changes:{name:c}}),r(n.data)},onCreate:({parentId:c,index:d,type:f})=>{const p={id:`simple-tree-id-${mm++}`,name:""};return f==="internal"&&(p.children=[]),n.create({parentId:c,index:d,data:p}),r(n.data),p},onDelete:c=>{c.ids.forEach(d=>n.drop({id:d})),r(n.data)}}]}function Cm(t){if(t.initialData&&t.data)throw new Error("React Arborist Tree => Provide either a data or initialData prop, but not both.");if(t.initialData&&(t.onCreate||t.onDelete||t.onMove||t.onRename))throw new Error(`React Arborist Tree => You passed the initialData prop along with a data handler.
98
+ Use the data prop if you want to provide your own handlers.`);if(t.initialData){const[e,r]=ym(t.initialData);return Object.assign(Object.assign(Object.assign({},t),r),{data:e})}else return t}function Em(t,e){const r=Cm(t);return b.jsxs(dm,{treeProps:r,imperativeHandle:e,children:[b.jsx(hm,{children:b.jsx(pm,{})}),b.jsx(gm,{})]})}const wm=u.forwardRef(Em),df=({top:t,left:e})=>b.jsx("div",{className:"c__tree-view__cursor",style:{top:t-2,left:e+10,width:`calc(100% - ${24+e}px)`}});function xm(t,e){var r=u.useRef(null),n=u.useRef(null);n.current=e;var i=u.useRef(null);u.useEffect(function(){o()});var o=u.useCallback(function(){var a=i.current,l=n.current,s=a||(l?l instanceof Element?l:l.current:null);r.current&&r.current.element===s&&r.current.subscriber===t||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:s,subscriber:t,cleanup:s?t(s):void 0})},[t]);return u.useEffect(function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}},[]),u.useCallback(function(a){i.current=a,o()},[o])}function p2(t,e,r){return t[e]?t[e][0]?t[e][0][r]:t[e][r]:e==="contentBoxSize"?t.contentRect[r==="inlineSize"?"width":"height"]:void 0}function Dm(t){t===void 0&&(t={});var e=t.onResize,r=u.useRef(void 0);r.current=e;var n=t.round||Math.round,i=u.useRef(),o=u.useState({width:void 0,height:void 0}),a=o[0],l=o[1],s=u.useRef(!1);u.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var c=u.useRef({width:void 0,height:void 0}),d=xm(u.useCallback(function(f){return(!i.current||i.current.box!==t.box||i.current.round!==n)&&(i.current={box:t.box,round:n,instance:new ResizeObserver(function(p){var g=p[0],y=t.box==="border-box"?"borderBoxSize":t.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",h=p2(g,y,"inlineSize"),v=p2(g,y,"blockSize"),m=h?n(h):void 0,C=v?n(v):void 0;if(c.current.width!==m||c.current.height!==C){var E={width:m,height:C};c.current.width=m,c.current.height=C,r.current?r.current(E):s.current||l(E)}})}),i.current.instance.observe(f,{box:t.box}),function(){i.current&&i.current.instance.unobserve(f)}},[t.box,n]),t.ref);return u.useMemo(function(){return{ref:d,width:a.width,height:a.height}},[d,a.width,a.height])}var se=(t=>(t.NODE="node",t.SEPARATOR="separator",t.TITLE="title",t.SIMPLE_NODE="simpleNode",t.VIEW_MORE="viewMore",t))(se||{}),wt=(t=>(t.FIRST_CHILD="first-child",t.LAST_CHILD="last-child",t.LEFT="left",t.RIGHT="right",t))(wt||{});const fi=t=>t?t.nodeType===se.SEPARATOR:!1,hi=t=>t?t.nodeType===se.TITLE:!1,ff=t=>t?t.nodeType===se.VIEW_MORE:!1,zr=t=>!fi(t)&&!hi(t)&&!ff(t),hf=(t,e,r)=>{const{t:n}=X.useCunningham(),{remove:i,update:o,insert:a,insertBefore:l,insertAfter:s,append:c,prepend:d,getItem:f,move:p,items:g}=dh({initialItems:JSON.parse(JSON.stringify(t)),getKey:R=>R.id,getChildren:R=>R.children||[]}),[y,h]=u.useState(),v=(R=[])=>{const $=g.map(T=>T.key);i(...$);const P=JSON.parse(JSON.stringify(R));P.length>0&&a(null,0,...P),h(void 0)},m=R=>{const $=f(R);$&&h($.value)},C=(R,$,P)=>{var T,M,j,H;if(R){const Z=f(R);if(Z){const q=(M=Z.children)==null?void 0:M[((T=Z.children)==null?void 0:T.length)-1];let Y=P??((j=Z.children)==null?void 0:j.length)??0;P===((H=Z.children)==null?void 0:H.length)&&q&&q.value.nodeType===se.VIEW_MORE&&(Y=Y-1),a(R,Y,$)}}else a(null,P??g.length,$)},E=R=>{var $;return($=f(R))==null?void 0:$.value},F=(R,$)=>{var Z,q;const P=f(R);if(!P){console.error("No item found");return}let T=((Z=P.children)==null?void 0:Z.map(Y=>Y.value))??null;const M=$.childrenCount??P.value.childrenCount??0;if((T==null?void 0:T.length)===0&&M>0&&(T=null),$.children){const Y=[...T??[],...$.children],le=new Map;for(const G of Y)le.set(G.id,G);T=Array.from(le.values())}T&&(T=T.sort((Y,le)=>Y.nodeType===se.VIEW_MORE&&le.nodeType!==se.VIEW_MORE?1:Y.nodeType!==se.VIEW_MORE&&le.nodeType===se.VIEW_MORE?-1:0));const j=((q=$.pagination)==null?void 0:q.hasMore)??!1;T&&(T=T.filter(Y=>Y.nodeType!==se.VIEW_MORE)),j&&T&&T.push({id:`view-more-${R}`,nodeType:se.VIEW_MORE,label:n("components.treeView.viewMore")});const H={...P.value,...$,children:T,childrenCount:(T==null?void 0:T.length)??M};o(R,H)},D=R=>{i(R)},w=R=>{i(...R)},S=async R=>{if(!e){console.error("No refresh callback provided");return}try{const $=await e(R);F(R,$)}catch($){console.error("error while refreshing node:",$)}},O=(R,$)=>{a(null,$??g.length,R)},K=(R,$)=>{a(null,$??g.length,...R)},V=(R,$)=>{const P=f(R);if(!P){console.error("No item found");return}const T={...P.value,children:$,childrenCount:$.length,hasLoadedChildren:$.length>0};o(R,T)},x=R=>{const $=[],P=f(R);if(!P)return[];$.push(P.value);const T=M=>{const j=B(M);if(!j)return;const H=f(j);H&&($.push(H.value),T(j))};return T(R),$.reverse()},B=R=>{var $;return(($=f(R))==null?void 0:$.parentKey)??null},U=R=>{const $=B(R);if(!$)return null;const P=f($);return P?P.value:null},k=(R,$)=>{l(R,$)},W=(R,$)=>{s(R,$)},_=(R,$)=>{c(R,$)},I=(R,$)=>{d(R,$)},z=(R,$,P)=>{p(R,$,P)},L=R=>{z(R.sourceId,R.newParentId,R.index)},N=async R=>{var Y;if(!r)return console.error("No load paginated children callback provided"),[];const $=f(R);if(!$){console.error("No parent found");return}const T=(((Y=$==null?void 0:$.value.pagination)==null?void 0:Y.currentPage)??0)+1,M=await r(R,T);if(!M){console.error("No result found");return}const j=M.children,H=M.pagination,Z=T,q=(H==null?void 0:H.hasMore)??!1;F(R,{children:j,hasLoadedChildren:!0,pagination:{currentPage:Z,hasMore:q}})};return u.useEffect(()=>{const R=$=>{$.forEach(P=>{var T;if(P.children&&P.children.length>0){const M=P.value.hasLoadedChildren||((T=P.children)==null?void 0:T.length)>0||P.value.children&&P.value.children.length>0;P.value.children=P.children.map(H=>H.value);const j=M?P.children.length:P.value.childrenCount??0;P.value.childrenCount=j,M&&!P.value.hasLoadedChildren&&(P.value.hasLoadedChildren=!0),R(P.children)}else{const j=P.value.hasLoadedChildren||P.value.children&&P.value.children.length>0?0:P.value.childrenCount;P.value.children=[],P.value.childrenCount=j}})};R(g)},[g]),{nodes:g,addChild:C,updateNode:F,deleteNode:D,deleteNodes:w,addRootNode:O,addRootNodes:K,selectedNode:y,setSelectedNode:h,refreshNode:S,setChildren:V,insertBeforeNode:k,insertAfterNode:W,handleMove:L,prependToNode:I,moveNode:z,appendToNode:_,move:p,resetTree:v,handleLoadChildren:N,selectNodeById:m,getParent:U,getNode:E,getParentId:B,getAncestors:x}},_l=u.createContext(null),Sm=({children:t,onRefresh:e,initialNodeId:r,onLoadChildren:n,initialTreeData:i})=>{const o=u.useRef(null),[a,l]=u.useState(null),[s,c]=u.useState(r??null),d=hf(i??[],e,n);return b.jsx(_l.Provider,{value:{treeApiRef:o,treeData:d,root:a,initialTargetId:s,setInitialTargetId:c,setRoot:l},children:t})},Pl=()=>{const t=u.useContext(_l);if(!t)throw new Error("TreeContext not found");return t},Fm=({initialOpenState:t,dndRootElement:e,selectedNodeId:r,rootNodeId:n,renderNode:i,canDrop:o,canDrag:a,afterMove:l,beforeMove:s,paddingTop:c=10,paddingBottom:d=10,rowProps:f})=>{const[p,g]=u.useState(400),{ref:y,width:h}=Dm(),v=Pl(),m=(v==null?void 0:v.treeData.nodes)??[];u.useEffect(()=>{const D=document.querySelector(".c__tree-view"),w=D==null?void 0:D.firstElementChild;let S=null;return D&&w&&(S=new ResizeObserver(()=>{if(w&&w instanceof HTMLElement){const O=w.style.height;g(parseInt(O,10)+20)}}),S.observe(w)),()=>S==null?void 0:S.disconnect()},[]);const C=D=>{var $,P,T,M;const w=JSON.parse(JSON.stringify(m)),S=D.dragNodes[0],O=D.parentId?(($=D.parentNode)==null?void 0:$.data.children)??[]:w,K=D.dragNodes[0].data.value.id,V=D.dragNodes[0].data,x=(P=D.parentNode)==null?void 0:P.data;if((x==null?void 0:x.value.nodeType)===se.TITLE||(x==null?void 0:x.value.nodeType)===se.SEPARATOR||(x==null?void 0:x.value.nodeType)===se.VIEW_MORE)return null;const B=V.parentKey??n,U=D.parentId??n;let k=D.index+0,W=null,_=U;const I=((M=(T=S.parent)==null?void 0:T.children)==null?void 0:M.findIndex(j=>j.data.value.id===K))??0;if(B===U){if(I===k)return null;k=k<I?k:k-1}const z=D.index-1,L=O[z],N=D.index,R=O[N];return D.index===0?(_=D.parentId??n,W=wt.FIRST_CHILD):!x&&D.index===1&&!zr(L.value)?(_=n,k=1,W=wt.FIRST_CHILD):D.index===O.length?(_=_??n,W=wt.LAST_CHILD):L&&zr(L.value)?(_=L.value.id,W=wt.RIGHT):R&&zr(R.value)&&(W=wt.LEFT,_=R.value.id),W&&_?{targetModeId:_,mode:W,oldParentId:B,index:k,newParentId:D.parentId,sourceId:K}:null},E=D=>{const w=C(D);w&&(s?s(w,()=>{v==null||v.treeData.handleMove(w),l==null||l(w)}):(v==null||v.treeData.handleMove(w),l==null||l(w)))},F=u.useCallback(D=>a?!a(D):!1,[a]);if(v)return b.jsx("div",{ref:y,style:{height:p},className:"c__tree-view--container",children:b.jsx(wm,{dndRootElement:e,data:m,ref:v.treeApiRef,openByDefault:!1,selectionFollowsFocus:!1,disableMultiSelection:!0,disableEdit:!0,className:"c__tree-view",idAccessor:"key",onMove:E,height:p,width:h,paddingTop:c,paddingBottom:d,rowHeight:34,disableDrag:F,disableDrop:({parentNode:D,dragNodes:w,index:S})=>{var B,U,k;if(o&&!o({parentNode:D,dragNodes:w,index:S}))return D.id!=="__REACT_ARBORIST_INTERNAL_ROOT__"&&(D.data.value.canDrop=!1),!0;const O=w[0];if(O&&O.isDragging&&O.willReceiveDrop||((B=D.data.value)==null?void 0:B.nodeType)===se.TITLE||((U=D.data.value)==null?void 0:U.nodeType)===se.SEPARATOR||((k=D.data.value)==null?void 0:k.nodeType)===se.VIEW_MORE)return!0;if(D.id==="__REACT_ARBORIST_INTERNAL_ROOT__"){const W=m[S-1],_=m[S],I=m[S+1],z=fi(W==null?void 0:W.value),L=fi(_==null?void 0:_.value),N=hi(W==null?void 0:W.value),R=hi(_==null?void 0:_.value),$=zr(I==null?void 0:I.value);return!!(S===0&&(L||R)||z&&R&&$||N&&L&&$)}const K=D==null?void 0:D.isOpen,V=(D==null?void 0:D.data.value.childrenCount)&&D.data.value.childrenCount>0||(D==null?void 0:D.data.children)&&D.data.children.length>0;if(!V)return D.data.value.canDrop=!0,!1;let x=D.data.value.childrenCount&&D.data.value.childrenCount>0&&(D==null?void 0:D.data.children)&&D.data.children.length>0;return x=x??!0,!K&&!x&&V?(D.data.value.canDrop=!0,!0):(D.data.value.canDrop=!0,!1)},initialOpenState:t,overscanCount:20,selection:r,renderCursor:df,renderRow:D=>b.jsx($m,{...D,customRowProps:f}),rowClassName:"c__tree-view--row",children:i})})},$m=({children:t,customRowProps:e,...r})=>{const n=r.node.data.value.nodeType===se.TITLE,i=r.node.data.value.nodeType===se.SEPARATOR,o=r.node.data.value.nodeType===se.VIEW_MORE,{onKeyDown:a,onClick:l,...s}=e??{},{style:c}=r.attrs,d={...c},f=p=>{a==null||a(p);const g=p.target;if(g){const y=g.closest(".actions"),v=g.closest('button, a[href], input, textarea, select, [role="menuitem"], [role="button"]');if(y||v)return}if((p.key==="Enter"||p.key===" ")&&p.currentTarget.click(),p.key==="F2"){p.preventDefault();const y=p.currentTarget.querySelector("button");y&&y.focus()}};return n||i||o?u.createElement("div",{...r.attrs,key:r.node.id,style:d,ref:r.innerRef,onFocus:p=>p.stopPropagation(),onClick:p=>{l==null||l(p),r.node.handleClick(p)},onKeyDown:a,...s},t):u.createElement("div",{...r.attrs,style:d,key:r.node.id,ref:r.innerRef,onFocus:p=>p.stopPropagation(),onClick:p=>{l==null||l(p),p.preventDefault(),p.stopPropagation(),r.node.select()},onKeyDown:f,...s},b.jsx("div",{className:"c__tree-view--row-content",children:t}))},_m=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",pf=_m?u.useLayoutEffect:u.useEffect;function gf(t){const e=u.useRef(t);return pf(()=>{e.current=t}),u.useCallback(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return e.current==null?void 0:e.current(...n)},[])}function g2(t,e){e===void 0&&(e=[t]);const r=u.useRef(t);return pf(()=>{r.current!==t&&(r.current=t)},e),r}function Pm(t){const e=gf(t),r=u.useRef(null),n=u.useCallback(i=>{i!==r.current&&(e==null||e(i,r.current)),r.current=i},[]);return[r,n]}let Ho={};function Am(t,e){return u.useMemo(()=>{const r=Ho[t]==null?0:Ho[t]+1;return Ho[t]=r,t+"-"+r},[t,e])}var Wr;(function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"})(Wr||(Wr={}));function v2(){}const Tm=Object.freeze({x:0,y:0});var lr;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(lr||(lr={}));var b2;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(b2||(b2={}));var ct;(function(t){t.Space="Space",t.Down="ArrowDown",t.Right="ArrowRight",t.Left="ArrowLeft",t.Up="ArrowUp",t.Esc="Escape",t.Enter="Enter",t.Tab="Tab"})(ct||(ct={}));ct.Space,ct.Enter,ct.Esc,ct.Space,ct.Enter,ct.Tab;var m2;(function(t){t[t.RightClick=2]="RightClick"})(m2||(m2={}));var y2;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(y2||(y2={}));var C2;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(C2||(C2={}));lr.Backward+"",lr.Forward+"",lr.Backward+"",lr.Forward+"";var _a;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(_a||(_a={}));var Pa;(function(t){t.Optimized="optimized"})(Pa||(Pa={}));function km(t){let{callback:e,disabled:r}=t;const n=gf(e),i=u.useMemo(()=>{if(r||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(n)},[r]);return u.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}_a.WhileDragging,Pa.Optimized;const Im={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:v2,draggableNodes:new Map,over:null,measureDroppableContainers:v2},Om=u.createContext(Im);({...Tm});var E2;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(E2||(E2={}));const Mm="Droppable",Nm={timeout:25};function Rm(t){let{data:e,disabled:r=!1,id:n,resizeObserverConfig:i}=t;const o=Am(Mm),{active:a,dispatch:l,over:s,measureDroppableContainers:c}=u.useContext(Om),d=u.useRef({disabled:r}),f=u.useRef(!1),p=u.useRef(null),g=u.useRef(null),{disabled:y,updateMeasurementsFor:h,timeout:v}={...Nm,...i},m=g2(h??n),C=u.useCallback(()=>{if(!f.current){f.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{c(Array.isArray(m.current)?m.current:[m.current]),g.current=null},v)},[v]),E=km({callback:C,disabled:y||!a}),F=u.useCallback((O,K)=>{E&&(K&&(E.unobserve(K),f.current=!1),O&&E.observe(O))},[E]),[D,w]=Pm(F),S=g2(e);return u.useEffect(()=>{!E||!D.current||(E.disconnect(),f.current=!1,E.observe(D.current))},[D,E]),u.useEffect(()=>(l({type:Wr.RegisterDroppable,element:{id:n,key:o,disabled:r,node:D,rect:p,data:S}}),()=>l({type:Wr.UnregisterDroppable,key:o,id:n})),[n]),u.useEffect(()=>{r!==d.current.disabled&&(l({type:Wr.SetDroppableDisabled,id:n,key:o,disabled:r}),d.current.disabled=r)},[n,o,r,l]),{active:a,rect:p,isOver:(s==null?void 0:s.id)===n,node:D,over:s,setNodeRef:w}}const Bm=t=>{const{isOver:e,setNodeRef:r}=Rm({id:t.id,data:t.data});return u.useEffect(()=>{var n;(n=t.onOver)==null||n.call(t,e,t.data)},[e,t.data,t.onOver]),b.jsx("div",{className:"c__dnd--droppable",ref:r,children:t.children})},Lm=({children:t,itemProps:e,testId:r,onClick:n,onKeyDown:i,node:o,dragHandle:a,style:l,forceLoading:s})=>{var O,K;const{t:c}=X.useCunningham(),d=Pl(),f=u.useRef(null),[p,g]=u.useState(!1),[y,h]=u.useState(!1),[v,m]=u.useState(!1),C=s??p,E=o.willReceiveDrop||v,F=o.data.value.childrenCount!==void 0&&o.data.value.childrenCount>0||(((O=o.data.children)==null?void 0:O.length)??0)>0,D=((K=o.children)==null?void 0:K.length)??!1,w=o.isLeaf||!F,S=u.useCallback(V=>{V.stopPropagation(),o.data.value.nodeType===se.VIEW_MORE&&(h(!0),d==null||d.treeData.handleLoadChildren(o.data.parentKey).then(()=>h(!1)).catch(()=>h(!1)))},[o.data.value.nodeType,o.data.parentKey,d==null?void 0:d.treeData]);return u.useEffect(()=>{w||D||o.data.value.hasLoadedChildren||o.isOpen&&(g(!0),d==null||d.treeData.handleLoadChildren(o.data.value.id).then(()=>g(!1)))},[o.isOpen,w,D,o.data.value.hasLoadedChildren,o.data.value.id,d==null?void 0:d.treeData]),u.useEffect(()=>(E&&!o.isOpen&&!o.isDragging&&(f.current=setTimeout(()=>{o.open()},500)),()=>{f.current&&clearTimeout(f.current)}),[E,o.isOpen,o.isDragging,o]),o.data.value.nodeType===se.SEPARATOR?b.jsx("div",{className:"c__tree-view--node__separator","data-testid":r}):o.data.value.nodeType===se.TITLE?b.jsx("div",{className:"c__tree-view--node__title","data-testid":r,children:o.data.value.headerTitle}):o.data.value.nodeType===se.VIEW_MORE?b.jsx("div",{className:"c__tree-view--row-content","data-testid":r,children:b.jsx("div",{className:"c__tree-view--node",style:l,children:b.jsxs("div",{role:"button",className:"c__tree-view--node__view-more-button",style:{paddingLeft:0,marginLeft:20},onClick:S,children:[y?b.jsx("div",{className:"c__tree-view--node__loading",children:b.jsx(li,{})}):b.jsx("span",{className:"material-icons c__tree-view--node__view-more-button__icon",children:"arrow_downward"}),b.jsxs("span",{className:"c__tree-view--node__view-more-text",children:[o.data.value.nodeType===se.VIEW_MORE,c("components.treeView.viewMore")]})]})})}):b.jsx(Bm,{id:o.id,data:{data:o.data,nodeApi:o},onOver:m,children:b.jsxs("div",{onClick:V=>{if(!V.target.closest(".c__tree-view--node")){V.stopPropagation();return}n==null||n()},onKeyDown:V=>{i==null||i(V),V.target.closest(".c__tree-view--node")||V.stopPropagation()},ref:a,style:l,className:ve("c__tree-view--node",{...o.state,simpleNode:o.data.value.nodeType===se.SIMPLE_NODE,canDrop:o.data.value.canDrop??!0,externalDrop:v}),"data-testid":r,...e,children:[w&&b.jsx("div",{className:"c__tree-view--node__leaf"}),!w&&b.jsxs(b.Fragment,{children:[C&&b.jsx("div",{className:"c__tree-view--node__loading",children:b.jsx(li,{})}),!C&&b.jsx("span",{onClick:V=>{V.stopPropagation(),o.toggle()},className:"c__tree-view--node__arrow material-icons",children:o.isOpen?"keyboard_arrow_down":"keyboard_arrow_right"})]}),t]})})},jm=({children:t,uppercased:e=!1,type:r="accent",className:n,...i})=>b.jsx("div",{className:ve(n,"c__badge",{"c__badge--uppercased":e,[`c__badge--${r}`]:r}),...i,children:t});function Km(t){u.useEffect(()=>{if(!t)return;let e=!1;const r=()=>Array.from(t.querySelectorAll("button")).filter(a=>!a.disabled&&a.getAttribute("aria-disabled")!=="true"),n=a=>{const l=a.key==="ArrowLeft"||a.key==="ArrowRight",s=a.key===" ";if(!(a.target instanceof HTMLElement))return;if(s){const h=a.target.closest("button");h instanceof HTMLButtonElement&&t.contains(h)&&h.click();return}if(!l)return;const d=a.target.closest("button");if(!(d instanceof HTMLButtonElement&&t.contains(d)))return;const p=r(),g=p.indexOf(d);if(g<0)return;a.preventDefault(),a.stopPropagation();const y=a.key==="ArrowRight"?(g+1)%p.length:(g-1+p.length)%p.length;p[y].focus(),e=!0},i=a=>{e&&((a.key===" "||a.key==="Enter")&&(a.preventDefault(),a.stopPropagation()),e=!1)},o={capture:!0};return t.addEventListener("keydown",n,o),t.addEventListener("keyup",i,o),()=>{t.removeEventListener("keydown",n,o),t.removeEventListener("keyup",i,o)}},[t])}const Zi=({roles:t,onSelect:e,canUpdate:r=!0,selectedRole:n,isOpen:i,onOpenChange:o,roleTopMessage:a,onDelete:l})=>{const{t:s}=X.useCunningham(),c=t.find(f=>f.value===n),d=u.useMemo(()=>l?[...t,{type:"separator"},{label:s("components.share.access.delete"),callback:l}]:t,[t,l,s]);return r?b.jsx(Yr,{isOpen:i,shouldCloseOnInteractOutside:f=>!f.closest(".c__access-role-dropdown"),onOpenChange:o,options:d,selectedValues:[n],onSelectValue:e,topMessage:a,children:b.jsxs("div",{role:"button",className:"c__access-role-dropdown","data-testid":"access-role-dropdown-button",onClick:()=>{o==null||o(!i)},children:[b.jsx("span",{className:"c__access-role-dropdown__role-label",children:c==null?void 0:c.label}),b.jsx("span",{className:"material-icons c__access-role-dropdown__icon",children:i?"arrow_drop_up":"arrow_drop_down"})]})}):b.jsx("span",{className:"c__access-role-dropdown__role-label-can-not-update",children:c==null?void 0:c.label})},vf=({users:t,onRemoveUser:e,rightActions:r,onShare:n,shareButtonLabel:i,roles:o,selectedRole:a,onSelectRole:l})=>{const{t:s}=X.useCunningham(),[c,d]=u.useState(!1);return b.jsxs("div",{className:"c__add-share-user-list","data-testid":"selected-users-list",children:[b.jsx("div",{className:"c__add-share-user-list__items",children:t.map(f=>b.jsx(bf,{user:f,onRemoveUser:e},f.id))}),b.jsxs("div",{className:"c__add-share-user-list__right-actions",children:[r,b.jsx(Zi,{roles:o,selectedRole:a,onSelect:l,isOpen:c,onOpenChange:d}),b.jsx(X.Button,{onClick:n,children:i??s("components.share.shareButton")})]})]})},bf=({user:t,onRemoveUser:e})=>b.jsxs("div",{className:"c__add-share-user-item","data-testid":"selected-user-item",children:[b.jsx("span",{children:t.full_name||t.email}),b.jsx(X.Button,{variant:"tertiary",color:"neutral",size:"nano",onClick:()=>e==null?void 0:e(t),icon:b.jsx("span",{className:"material-icons",children:"close"})})]}),Aa=["gray","brand","red","orange","brown","green","blue-1","blue-2","pink","yellow","purple"],mf=t=>t.split(/[\s-_]+/).slice(0,2).map(e=>e[0]).join("").toUpperCase(),Al=t=>{let e=0;for(let r=0;r<t.length;r++)e+=t.charCodeAt(r);return Aa[e%Aa.length]},Gi=({fullName:t,size:e="medium",forceColor:r,backgroundColor:n})=>{const i=mf(t),o=n||Al(t);return b.jsx("div",{style:{backgroundColor:r||void 0},className:ve(`c__avatar ${e}`,{[o]:!r&&o}),children:b.jsx("div",{className:"c__avatar__initials",children:i})})},qi=({fullName:t,email:e,showEmail:r=!0})=>{const n=t&&t!==""?t:e??"";return b.jsxs("div",{className:"c__user-row",children:[b.jsx(Gi,{fullName:n,size:"small"}),b.jsxs("div",{className:"c__user-row__info",children:[b.jsx("span",{className:"c__user-row__name",children:t}),r&&e&&b.jsx("span",{className:ve("c__user-row__email",{"has-only-email":e&&(t===""||!t)}),children:e})]})]})},Ta=({user:t})=>{const{t:e}=X.useCunningham();return b.jsx(Ki,{testId:"search-user-item",left:b.jsx(qi,{fullName:t.full_name,email:t.email}),alwaysShowRight:!1,right:b.jsxs("div",{className:"c__search-user-item-right",children:[b.jsx("span",{children:e("components.share.item.add")}),b.jsx("span",{className:"material-icons",children:"add"})]})})},yf=({accessData:t,accessRoleKey:e="role",roles:r,updateRole:n,deleteAccess:i,canUpdate:o=!0,roleTopMessage:a})=>{const l=mr();return b.jsx("div",{className:"c__share-member-item",children:b.jsx(Ki,{testId:"share-member-item",left:b.jsx(qi,{fullName:t.user.full_name,email:t.user.email,showEmail:!0}),alwaysShowRight:!0,right:b.jsx("div",{className:"c__share-member-item__right",children:b.jsx(Zi,{roles:r,selectedRole:t[e],onSelect:s=>n==null?void 0:n(t,s),isOpen:l.isOpen,onOpenChange:l.setIsOpen,canUpdate:o,roleTopMessage:a,onDelete:t.is_explicit!==!1&&i?()=>i(t):void 0})})})})},Cf=({invitation:t,roles:e,updateRole:r,deleteInvitation:n,canUpdate:i=!0,roleTopMessage:o})=>{const a=mr();return b.jsx("div",{className:"c__share-member-item",children:b.jsx(Ki,{testId:"share-invitation-item",left:b.jsx(qi,{fullName:"",email:t.email,showEmail:!0}),alwaysShowRight:!0,right:b.jsx("div",{className:"c__share-member-item__right",children:b.jsx(Zi,{roles:e,selectedRole:t.role,onSelect:l=>r==null?void 0:r(t,l),isOpen:a.isOpen,canUpdate:i,onOpenChange:a.setIsOpen,roleTopMessage:o,onDelete:n?()=>n(t):void 0})})})})},Vm="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%2022C10.6167%2022%209.31667%2021.7375%208.1%2021.2125C6.88333%2020.6875%205.825%2019.975%204.925%2019.075C4.025%2018.175%203.3125%2017.1167%202.7875%2015.9C2.2625%2014.6833%202%2013.3833%202%2012C2%2010.6167%202.2625%209.31667%202.7875%208.1C3.3125%206.88333%204.025%205.825%204.925%204.925C5.825%204.025%206.88333%203.3125%208.1%202.7875C9.31667%202.2625%2010.6167%202%2012%202C13.3833%202%2014.6833%202.2625%2015.9%202.7875C17.1167%203.3125%2018.175%204.025%2019.075%204.925C19.975%205.825%2020.6875%206.88333%2021.2125%208.1C21.7375%209.31667%2022%2010.6167%2022%2012C22%2013.3833%2021.7375%2014.6833%2021.2125%2015.9C20.6875%2017.1167%2019.975%2018.175%2019.075%2019.075C18.175%2019.975%2017.1167%2020.6875%2015.9%2021.2125C14.6833%2021.7375%2013.3833%2022%2012%2022ZM11%2019.95V18C10.45%2018%209.97917%2017.8042%209.5875%2017.4125C9.19583%2017.0208%209%2016.55%209%2016V15L4.2%2010.2C4.15%2010.5%204.10417%2010.8%204.0625%2011.1C4.02083%2011.4%204%2011.7%204%2012C4%2014.0167%204.6625%2015.7833%205.9875%2017.3C7.3125%2018.8167%208.98333%2019.7%2011%2019.95ZM17.9%2017.4C18.2333%2017.0333%2018.5333%2016.6375%2018.8%2016.2125C19.0667%2015.7875%2019.2875%2015.3458%2019.4625%2014.8875C19.6375%2014.4292%2019.7708%2013.9583%2019.8625%2013.475C19.9542%2012.9917%2020%2012.5%2020%2012C20%2010.3667%2019.5458%208.875%2018.6375%207.525C17.7292%206.175%2016.5167%205.2%2015%204.6V5C15%205.55%2014.8042%206.02083%2014.4125%206.4125C14.0208%206.80417%2013.55%207%2013%207H11V9C11%209.28333%2010.9042%209.52083%2010.7125%209.7125C10.5208%209.90417%2010.2833%2010%2010%2010H8V12H14C14.2833%2012%2014.5208%2012.0958%2014.7125%2012.2875C14.9042%2012.4792%2015%2012.7167%2015%2013V16H16C16.4333%2016%2016.825%2016.1292%2017.175%2016.3875C17.525%2016.6458%2017.7667%2016.9833%2017.9%2017.4Z'%20fill='%23222631'/%3e%3c/svg%3e",Hm="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18%2018C18.4167%2018%2018.7708%2017.8542%2019.0625%2017.5625C19.3542%2017.2708%2019.5%2016.9167%2019.5%2016.5C19.5%2016.0833%2019.3542%2015.7292%2019.0625%2015.4375C18.7708%2015.1458%2018.4167%2015%2018%2015C17.5833%2015%2017.2292%2015.1458%2016.9375%2015.4375C16.6458%2015.7292%2016.5%2016.0833%2016.5%2016.5C16.5%2016.9167%2016.6458%2017.2708%2016.9375%2017.5625C17.2292%2017.8542%2017.5833%2018%2018%2018ZM18%2021C18.5%2021%2018.9667%2020.8833%2019.4%2020.65C19.8333%2020.4167%2020.1917%2020.0917%2020.475%2019.675C20.0917%2019.4417%2019.6917%2019.2708%2019.275%2019.1625C18.8583%2019.0542%2018.4333%2019%2018%2019C17.5667%2019%2017.1417%2019.0542%2016.725%2019.1625C16.3083%2019.2708%2015.9083%2019.4417%2015.525%2019.675C15.8083%2020.0917%2016.1667%2020.4167%2016.6%2020.65C17.0333%2020.8833%2017.5%2021%2018%2021ZM9%208H15V6C15%205.16667%2014.7083%204.45833%2014.125%203.875C13.5417%203.29167%2012.8333%203%2012%203C11.1667%203%2010.4583%203.29167%209.875%203.875C9.29167%204.45833%209%205.16667%209%206V8ZM12.25%2022H6C5.45%2022%204.97917%2021.8042%204.5875%2021.4125C4.19583%2021.0208%204%2020.55%204%2020V10C4%209.45%204.19583%208.97917%204.5875%208.5875C4.97917%208.19583%205.45%208%206%208H7V6C7%204.61667%207.4875%203.4375%208.4625%202.4625C9.4375%201.4875%2010.6167%201%2012%201C13.3833%201%2014.5625%201.4875%2015.5375%202.4625C16.5125%203.4375%2017%204.61667%2017%206V8H18C18.55%208%2019.0208%208.19583%2019.4125%208.5875C19.8042%208.97917%2020%209.45%2020%2010V11.3C19.7%2011.2%2019.3875%2011.125%2019.0625%2011.075C18.7375%2011.025%2018.3833%2011%2018%2011V10H6V20H11.3C11.4333%2020.4%2011.5667%2020.7458%2011.7%2021.0375C11.8333%2021.3292%2012.0167%2021.65%2012.25%2022ZM18%2023C16.6167%2023%2015.4375%2022.5125%2014.4625%2021.5375C13.4875%2020.5625%2013%2019.3833%2013%2018C13%2016.6167%2013.4875%2015.4375%2014.4625%2014.4625C15.4375%2013.4875%2016.6167%2013%2018%2013C19.3833%2013%2020.5625%2013.4875%2021.5375%2014.4625C22.5125%2015.4375%2023%2016.6167%2023%2018C23%2019.3833%2022.5125%2020.5625%2021.5375%2021.5375C20.5625%2022.5125%2019.3833%2023%2018%2023Z'%20fill='%23222631'/%3e%3c/svg%3e",zm="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%2022C10.6333%2022%209.34167%2021.7375%208.125%2021.2125C6.90833%2020.6875%205.84583%2019.9708%204.9375%2019.0625C4.02917%2018.1542%203.3125%2017.0917%202.7875%2015.875C2.2625%2014.6583%202%2013.3667%202%2012C2%2010.6167%202.2625%209.32083%202.7875%208.1125C3.3125%206.90417%204.02917%205.84583%204.9375%204.9375C5.84583%204.02917%206.90833%203.3125%208.125%202.7875C9.34167%202.2625%2010.6333%202%2012%202C12.5333%202%2013.0458%202.0375%2013.5375%202.1125C14.0292%202.1875%2014.5167%202.3%2015%202.45V5C15%205.55%2014.8042%206.02083%2014.4125%206.4125C14.0208%206.80417%2013.55%207%2013%207H11V9C11%209.28333%2010.9042%209.52083%2010.7125%209.7125C10.5208%209.90417%2010.2833%2010%2010%2010H8V12H14C14.2833%2012%2014.5208%2012.0958%2014.7125%2012.2875C14.9042%2012.4792%2015%2012.7167%2015%2013V16H16C16.45%2016%2016.8458%2016.1333%2017.1875%2016.4C17.5292%2016.6667%2017.7667%2017%2017.9%2017.4C18.55%2016.6667%2019.0625%2015.8458%2019.4375%2014.9375C19.8125%2014.0292%2020%2013.05%2020%2012C20%2011.8167%2019.9917%2011.65%2019.975%2011.5C19.9583%2011.35%2019.9333%2011.1833%2019.9%2011H21.95C21.9833%2011.1833%2022%2011.35%2022%2011.5V12C22%2013.3667%2021.7375%2014.6583%2021.2125%2015.875C20.6875%2017.0917%2019.9708%2018.1542%2019.0625%2019.0625C18.1542%2019.9708%2017.0958%2020.6875%2015.8875%2021.2125C14.6792%2021.7375%2013.3833%2022%2012%2022ZM11%2019.95V18C10.45%2018%209.97917%2017.8042%209.5875%2017.4125C9.19583%2017.0208%209%2016.55%209%2016V15L4.2%2010.2C4.15%2010.5%204.10417%2010.8%204.0625%2011.1C4.02083%2011.4%204%2011.7%204%2012C4%2014.0667%204.67083%2015.8458%206.0125%2017.3375C7.35417%2018.8292%209.01667%2019.7%2011%2019.95ZM18%209C17.7167%209%2017.4792%208.90417%2017.2875%208.7125C17.0958%208.52083%2017%208.28333%2017%208V5C17%204.71667%2017.0958%204.47917%2017.2875%204.2875C17.4792%204.09583%2017.7167%204%2018%204V3C18%202.45%2018.1958%201.97917%2018.5875%201.5875C18.9792%201.19583%2019.45%201%2020%201C20.55%201%2021.0208%201.19583%2021.4125%201.5875C21.8042%201.97917%2022%202.45%2022%203V4C22.2833%204%2022.5208%204.09583%2022.7125%204.2875C22.9042%204.47917%2023%204.71667%2023%205V8C23%208.28333%2022.9042%208.52083%2022.7125%208.7125C22.5208%208.90417%2022.2833%209%2022%209H18ZM19%204H21V3C21%202.71667%2020.9042%202.47917%2020.7125%202.2875C20.5208%202.09583%2020.2833%202%2020%202C19.7167%202%2019.4792%202.09583%2019.2875%202.2875C19.0958%202.47917%2019%202.71667%2019%203V4Z'%20fill='%23222631'/%3e%3c/svg%3e",Um="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%2022C10.6167%2022%209.31667%2021.7375%208.1%2021.2125C6.88333%2020.6875%205.825%2019.975%204.925%2019.075C4.025%2018.175%203.3125%2017.1167%202.7875%2015.9C2.2625%2014.6833%202%2013.3833%202%2012C2%2010.6167%202.2625%209.31667%202.7875%208.1C3.3125%206.88333%204.025%205.825%204.925%204.925C5.825%204.025%206.88333%203.3125%208.1%202.7875C9.31667%202.2625%2010.6167%202%2012%202C13.3833%202%2014.6833%202.2625%2015.9%202.7875C17.1167%203.3125%2018.175%204.025%2019.075%204.925C19.975%205.825%2020.6875%206.88333%2021.2125%208.1C21.7375%209.31667%2022%2010.6167%2022%2012C22%2013.3833%2021.7375%2014.6833%2021.2125%2015.9C20.6875%2017.1167%2019.975%2018.175%2019.075%2019.075C18.175%2019.975%2017.1167%2020.6875%2015.9%2021.2125C14.6833%2021.7375%2013.3833%2022%2012%2022ZM11%2019.95V18C10.45%2018%209.97917%2017.8042%209.5875%2017.4125C9.19583%2017.0208%209%2016.55%209%2016V15L4.2%2010.2C4.15%2010.5%204.10417%2010.8%204.0625%2011.1C4.02083%2011.4%204%2011.7%204%2012C4%2014.0167%204.6625%2015.7833%205.9875%2017.3C7.3125%2018.8167%208.98333%2019.7%2011%2019.95ZM17.9%2017.4C18.2333%2017.0333%2018.5333%2016.6375%2018.8%2016.2125C19.0667%2015.7875%2019.2875%2015.3458%2019.4625%2014.8875C19.6375%2014.4292%2019.7708%2013.9583%2019.8625%2013.475C19.9542%2012.9917%2020%2012.5%2020%2012C20%2010.3667%2019.5458%208.875%2018.6375%207.525C17.7292%206.175%2016.5167%205.2%2015%204.6V5C15%205.55%2014.8042%206.02083%2014.4125%206.4125C14.0208%206.80417%2013.55%207%2013%207H11V9C11%209.28333%2010.9042%209.52083%2010.7125%209.7125C10.5208%209.90417%2010.2833%2010%2010%2010H8V12H14C14.2833%2012%2014.5208%2012.0958%2014.7125%2012.2875C14.9042%2012.4792%2015%2012.7167%2015%2013V16H16C16.4333%2016%2016.825%2016.1292%2017.175%2016.3875C17.525%2016.6458%2017.7667%2016.9833%2017.9%2017.4Z'%20fill='%233E5DE7'/%3e%3c/svg%3e",Wm="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18%2018C18.4167%2018%2018.7708%2017.8542%2019.0625%2017.5625C19.3542%2017.2708%2019.5%2016.9167%2019.5%2016.5C19.5%2016.0833%2019.3542%2015.7292%2019.0625%2015.4375C18.7708%2015.1458%2018.4167%2015%2018%2015C17.5833%2015%2017.2292%2015.1458%2016.9375%2015.4375C16.6458%2015.7292%2016.5%2016.0833%2016.5%2016.5C16.5%2016.9167%2016.6458%2017.2708%2016.9375%2017.5625C17.2292%2017.8542%2017.5833%2018%2018%2018ZM18%2021C18.5%2021%2018.9667%2020.8833%2019.4%2020.65C19.8333%2020.4167%2020.1917%2020.0917%2020.475%2019.675C20.0917%2019.4417%2019.6917%2019.2708%2019.275%2019.1625C18.8583%2019.0542%2018.4333%2019%2018%2019C17.5667%2019%2017.1417%2019.0542%2016.725%2019.1625C16.3083%2019.2708%2015.9083%2019.4417%2015.525%2019.675C15.8083%2020.0917%2016.1667%2020.4167%2016.6%2020.65C17.0333%2020.8833%2017.5%2021%2018%2021ZM9%208H15V6C15%205.16667%2014.7083%204.45833%2014.125%203.875C13.5417%203.29167%2012.8333%203%2012%203C11.1667%203%2010.4583%203.29167%209.875%203.875C9.29167%204.45833%209%205.16667%209%206V8ZM12.25%2022H6C5.45%2022%204.97917%2021.8042%204.5875%2021.4125C4.19583%2021.0208%204%2020.55%204%2020V10C4%209.45%204.19583%208.97917%204.5875%208.5875C4.97917%208.19583%205.45%208%206%208H7V6C7%204.61667%207.4875%203.4375%208.4625%202.4625C9.4375%201.4875%2010.6167%201%2012%201C13.3833%201%2014.5625%201.4875%2015.5375%202.4625C16.5125%203.4375%2017%204.61667%2017%206V8H18C18.55%208%2019.0208%208.19583%2019.4125%208.5875C19.8042%208.97917%2020%209.45%2020%2010V11.3C19.7%2011.2%2019.3875%2011.125%2019.0625%2011.075C18.7375%2011.025%2018.3833%2011%2018%2011V10H6V20H11.3C11.4333%2020.4%2011.5667%2020.7458%2011.7%2021.0375C11.8333%2021.3292%2012.0167%2021.65%2012.25%2022ZM18%2023C16.6167%2023%2015.4375%2022.5125%2014.4625%2021.5375C13.4875%2020.5625%2013%2019.3833%2013%2018C13%2016.6167%2013.4875%2015.4375%2014.4625%2014.4625C15.4375%2013.4875%2016.6167%2013%2018%2013C19.3833%2013%2020.5625%2013.4875%2021.5375%2014.4625C22.5125%2015.4375%2023%2016.6167%2023%2018C23%2019.3833%2022.5125%2020.5625%2021.5375%2021.5375C20.5625%2022.5125%2019.3833%2023%2018%2023Z'%20fill='%23304DDF'/%3e%3c/svg%3e",Zm="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%2022C10.6333%2022%209.34167%2021.7375%208.125%2021.2125C6.90833%2020.6875%205.84583%2019.9708%204.9375%2019.0625C4.02917%2018.1542%203.3125%2017.0917%202.7875%2015.875C2.2625%2014.6583%202%2013.3667%202%2012C2%2010.6167%202.2625%209.32083%202.7875%208.1125C3.3125%206.90417%204.02917%205.84583%204.9375%204.9375C5.84583%204.02917%206.90833%203.3125%208.125%202.7875C9.34167%202.2625%2010.6333%202%2012%202C12.5333%202%2013.0458%202.0375%2013.5375%202.1125C14.0292%202.1875%2014.5167%202.3%2015%202.45V5C15%205.55%2014.8042%206.02083%2014.4125%206.4125C14.0208%206.80417%2013.55%207%2013%207H11V9C11%209.28333%2010.9042%209.52083%2010.7125%209.7125C10.5208%209.90417%2010.2833%2010%2010%2010H8V12H14C14.2833%2012%2014.5208%2012.0958%2014.7125%2012.2875C14.9042%2012.4792%2015%2012.7167%2015%2013V16H16C16.45%2016%2016.8458%2016.1333%2017.1875%2016.4C17.5292%2016.6667%2017.7667%2017%2017.9%2017.4C18.55%2016.6667%2019.0625%2015.8458%2019.4375%2014.9375C19.8125%2014.0292%2020%2013.05%2020%2012C20%2011.8167%2019.9917%2011.65%2019.975%2011.5C19.9583%2011.35%2019.9333%2011.1833%2019.9%2011H21.95C21.9833%2011.1833%2022%2011.35%2022%2011.5V12C22%2013.3667%2021.7375%2014.6583%2021.2125%2015.875C20.6875%2017.0917%2019.9708%2018.1542%2019.0625%2019.0625C18.1542%2019.9708%2017.0958%2020.6875%2015.8875%2021.2125C14.6792%2021.7375%2013.3833%2022%2012%2022ZM11%2019.95V18C10.45%2018%209.97917%2017.8042%209.5875%2017.4125C9.19583%2017.0208%209%2016.55%209%2016V15L4.2%2010.2C4.15%2010.5%204.10417%2010.8%204.0625%2011.1C4.02083%2011.4%204%2011.7%204%2012C4%2014.0667%204.67083%2015.8458%206.0125%2017.3375C7.35417%2018.8292%209.01667%2019.7%2011%2019.95ZM18%209C17.7167%209%2017.4792%208.90417%2017.2875%208.7125C17.0958%208.52083%2017%208.28333%2017%208V5C17%204.71667%2017.0958%204.47917%2017.2875%204.2875C17.4792%204.09583%2017.7167%204%2018%204V3C18%202.45%2018.1958%201.97917%2018.5875%201.5875C18.9792%201.19583%2019.45%201%2020%201C20.55%201%2021.0208%201.19583%2021.4125%201.5875C21.8042%201.97917%2022%202.45%2022%203V4C22.2833%204%2022.5208%204.09583%2022.7125%204.2875C22.9042%204.47917%2023%204.71667%2023%205V8C23%208.28333%2022.9042%208.52083%2022.7125%208.7125C22.5208%208.90417%2022.2833%209%2022%209H18ZM19%204H21V3C21%202.71667%2020.9042%202.47917%2020.7125%202.2875C20.5208%202.09583%2020.2833%202%2020%202C19.7167%202%2019.4792%202.09583%2019.2875%202.2875C19.0958%202.47917%2019%202.71667%2019%203V4Z'%20fill='%233E5DE7'/%3e%3c/svg%3e",Ef=t=>{const{t:e}=X.useCunningham();return{t:r=>(t==null?void 0:t[r])??e(r)}},In=(t,e=!1)=>{switch(t){case"public":return b.jsx("img",{src:e?Um:Vm,alt:""});case"restricted":return b.jsx("img",{src:e?Wm:Hm,alt:""});case"authenticated":return b.jsx("img",{src:e?Zm:zm,alt:""});default:return null}},Gm=({linkReachChoices:t=[],canUpdate:e,linkReach:r="public",onUpdateLinkReach:n,showLinkRole:i=!1,linkRoleChoices:o=[],linkRole:a="reader",onUpdateLinkRole:l,customTranslations:s,topLinkReachMessage:c,topLinkRoleMessage:d})=>{const f=mr(),p=mr(),[g,y]=u.useState([r]),h=g[0],[v,m]=u.useState([a]),C=v[0],{t:E}=Ef(s),F=u.useMemo(()=>t.map(x=>({icon:x.icon??In(x.value),value:x.value,label:E("components.share.linkSettings.reach.choices."+x.value+".title"),...x})),[t]),D=u.useMemo(()=>F.find(x=>x.value===h),[F,h]),w=u.useMemo(()=>o.map(x=>({value:x.value,label:E("components.share.linkSettings.role.choices."+x.value+".title"),...x})),[o]),S=u.useMemo(()=>w.find(x=>x.value===C),[w,C]),O=i&&o.length>0,K=()=>b.jsx("div",{className:"c__share-modal__link-settings__content__select",children:e?b.jsx(Yr,{onSelectValue:x=>{y([x]),n==null||n(x)},options:F,isOpen:f.isOpen,topMessage:c,onOpenChange:f.setIsOpen,selectedValues:g,children:b.jsxs(X.Button,{variant:"tertiary",icon:In(h,!0),iconPosition:"left","data-testid":"share-link-reach-dropdown-button",onClick:()=>{e&&f.setIsOpen(!f.isOpen)},children:[D==null?void 0:D.label,b.jsx("span",{className:"material-icons",children:f.isOpen?"arrow_drop_up":"arrow_drop_down"})]})}):b.jsxs("span",{className:"c__share-modal__link-settings__content__select__value",children:[In(h),D==null?void 0:D.label]})}),V=()=>O?b.jsx("div",{className:"c__share-modal__link-settings__content__select-role",children:e?b.jsx(Yr,{onSelectValue:x=>{m([x]),l==null||l(x)},options:w,isOpen:p.isOpen,onOpenChange:p.setIsOpen,selectedValues:v,topMessage:d,children:b.jsx(X.Button,{variant:"tertiary","data-testid":"share-link-role-dropdown-button",icon:b.jsx("span",{className:"material-icons",children:p.isOpen?"arrow_drop_up":"arrow_drop_down"}),iconPosition:"right",onClick:()=>{e&&p.setIsOpen(!p.isOpen)},size:"small",children:S==null?void 0:S.label})}):b.jsxs("span",{className:"c__share-modal__link-settings__content__select-role__value",children:[In(C,!0),S==null?void 0:S.label]})}):null;return b.jsxs("div",{className:"c__share-modal__link-settings","data-testid":"share-link-settings",children:[b.jsx("span",{className:"c__share-modal__link-settings__title",children:E("components.share.linkSettings.title")}),b.jsxs("div",{className:"c__share-modal__link-settings__content",children:[K(),b.jsx("div",{className:"c__share-modal__link-settings__content__description desktop",children:E(`components.share.linkSettings.reach.choices.${h}.description`)}),V()]}),b.jsx("div",{className:"c__share-modal__link-settings__content__description mobile",children:E(`components.share.linkSettings.reach.choices.${h}.description`)})]})},qm=({searchUsersResult:t,children:e,outsideSearchContent:r,accesses:n=[],invitations:i=[],hasNextMembers:o=!1,canUpdate:a=!0,canView:l=!0,hasNextInvitations:s=!1,hideInvitations:c=!1,hideMembers:d=!1,cannotViewChildren:f,customTranslations:p,...g})=>{var T,M;if(!(c&&d)){if(!g.invitationRoles)throw new Error("invitationRoles is required");if(!g.onSearchUsers)throw new Error("onSearchUsers is required")}if(!c&&!g.onInviteUser)throw new Error("onInviteUser is required");if(a&&!l)throw new Error("canView cannot be false if canUpdate is true");const{t:y}=X.useCunningham(),{isMobile:h}=ot(),v=u.useRef(null),[m,C]=u.useState("400px"),E=u.useRef(null),[F,D]=u.useState(""),[w,S]=u.useState(""),[O,K]=u.useState([]),[V,x]=u.useState(((M=(T=g.invitationRoles)==null?void 0:T[0])==null?void 0:M.value)??""),B=h?"calc(100dvh - 32px)":"min(690px, calc(100dvh - 2em - 12px - 32px))",U=j=>{if(v.current&&clearTimeout(v.current),j===""){S(""),g.onSearchUsers("");return}v.current=setTimeout(()=>{g.onSearchUsers(j),S(j)},300)},k=j=>{D(j),U(j)},W=w!==""||O.length>0,_=u.useCallback(j=>{K(H=>[...H,j]),D(""),S(""),g.onSearchUsers("")},[g]),I=j=>{K(H=>H.filter(Z=>Z.id!==j.id))},z=u.useMemo(()=>{const j=t==null?void 0:t.filter(G=>!O.includes(G));let H=y(w!==""?"components.share.user.no_result":"components.share.user.placeholder");const q=(G=>!!G.match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z\-0-9]{2,}))$/))(w??"")&&!(j!=null&&j.some(G=>G.email===w)),Y={id:w,full_name:"",email:w};return q&&(H=void 0),{groupName:y("components.share.search.group_name"),elements:j??[],showWhenEmpty:!0,emptyString:H,endActions:q?[{content:b.jsx(Ta,{user:Y}),onSelect:()=>void _(Y)}]:void 0}},[t,w,y,O,_]),L=j=>{var le;const Z=(j==null?void 0:j.clientHeight)??0,q=((le=E.current)==null?void 0:le.clientHeight)??0,Y=`calc(${B} - ${Z}px - ${q}px - 70px - 10px)`;C(Y)},N=!c&&!W&&!g.loading&&i.length>0,R=!d&&!W&&!g.loading&&n.length>0,P=l?c&&d?"empty":"search":"cannot_view";return b.jsx(X.Modal,{title:g.modalTitle??y("components.share.modalTitle"),isOpen:g.isOpen,onClose:g.onClose,"aria-label":y("components.share.modalAriaLabel"),closeOnClickOutside:!0,size:h?X.ModalSize.FULL:X.ModalSize.LARGE,children:b.jsxs("div",{className:"c__share-modal no-padding",children:[a&&O.length>0&&b.jsx("div",{className:"c__share-modal__selected-users",ref:E,children:b.jsx(vf,{users:O,onRemoveUser:I,roles:g.invitationRoles,selectedRole:V,onSelectRole:x,onShare:()=>{g.onInviteUser(O,V),K([])}})}),P==="cannot_view"&&b.jsxs("div",{className:"c__share-modal__cannot-view",style:{height:m},children:[b.jsx("div",{className:"c__share-modal__cannot-view__content",children:b.jsx("p",{children:g.cannotViewMessage??y("components.share.cannot_view.message")})}),f]}),P==="search"&&b.jsx(b1,{onFilter:k,inputValue:F,showInput:a,loading:g.loading,placeholder:y("components.share.user.placeholder"),children:b.jsxs("div",{style:{height:m,overflowY:"auto"},children:[W&&b.jsx("div",{className:"c__share-modal__search-users","data-testid":"search-users-list",children:b.jsx(m1,{group:z,onSelect:j=>{_(j)},renderElement:j=>b.jsx(Ta,{user:j})})}),!W&&e,N&&b.jsxs("div",{className:"c__share-modal__invitations","data-testid":"invitations-list",children:[b.jsx("span",{className:"c__share-modal__invitations-title",children:y("components.share.invitations.title")}),i.map(j=>{var H;return b.jsx(Cf,{invitation:j,roles:g.invitationRoles,updateRole:g.onUpdateInvitation,deleteInvitation:g.onDeleteInvitation,canUpdate:a,roleTopMessage:(H=g.invitationRoleTopMessage)==null?void 0:H.call(g,j)},j.id)}),b.jsx(w2,{show:s,onShowMore:g.onLoadNextInvitations})]}),R&&b.jsxs("div",{className:"c__share-modal__members","data-testid":"members-list",children:[b.jsx("span",{className:"c__share-modal__members-title",children:y(n.length>1?"components.share.members.title_plural":"components.share.members.title_singular",{count:n.length})}),n.map(j=>{var H,Z;return b.jsx(yf,{accessData:j,accessRoleKey:g.accessRoleKey??"role",canUpdate:a,roleTopMessage:(H=g.accessRoleTopMessage)==null?void 0:H.call(g,j),roles:((Z=g.getAccessRoles)==null?void 0:Z.call(g,j))??g.invitationRoles,updateRole:g.onUpdateAccess,deleteAccess:g.onDeleteAccess},j.id)}),b.jsx(w2,{show:o,onShowMore:g.onLoadNextMembers})]})]})}),b.jsx("div",{ref:L,children:!W&&b.jsxs("div",{className:"c__share-modal__footer",children:[g.linkSettings&&b.jsx(Gm,{linkReachChoices:g.linkReachChoices,canUpdate:a,onUpdateLinkReach:g.onUpdateLinkReach,linkReach:g.linkReach,linkRoleChoices:g.linkRoleChoices,linkRole:g.linkRole,onUpdateLinkRole:g.onUpdateLinkRole,showLinkRole:g.showLinkRole,customTranslations:p,topLinkReachMessage:g.topLinkReachMessage,topLinkRoleMessage:g.topLinkRoleMessage}),r]})})]})})},w2=({show:t,onShowMore:e})=>{const{t:r}=X.useCunningham();return t?b.jsx("div",{className:"c__share-modal__show-more-button",children:b.jsx(X.Button,{variant:"tertiary",size:"small",icon:b.jsx("span",{className:"material-icons",children:"arrow_downward"}),onClick:e,children:r("components.share.members.load_more")})}):null},Ym=({onCopyLink:t,onOk:e})=>{const{t:r}=X.useCunningham();return b.jsxs("div",{className:"c__share-modal__copy-link-footer",children:[b.jsx(X.Button,{variant:"secondary",icon:b.jsx("span",{className:"material-icons",children:"link"}),onClick:t,children:r("components.share.copyLink")}),b.jsx(X.Button,{variant:"primary",onClick:e,children:r("components.share.ok")})]})},wf=({user:t,settingsItems:e,showSettings:r,actions:n,termOfServiceUrl:i})=>{const o=!!n||!!i,{t:a}=X.useCunningham(),l=t?t.full_name??t.email:void 0,s=l?Al(l):void 0;return t?b.jsx(b.Fragment,{children:b.jsxs("div",{className:"user-menu__content__body",children:[b.jsxs("div",{className:"user-menu__content__body__user-info",style:{"--gradient-color":`var(--c--contextuals--background--palette--${s}--primary)`},children:[b.jsx(Gi,{fullName:l}),b.jsx("div",{className:"user-menu__content__identity__name",children:t.full_name?b.jsxs(b.Fragment,{children:[b.jsx("p",{className:"user-menu__content__identity__name",children:b.jsx("strong",{children:t.full_name})}),b.jsx("p",{className:"user-menu__content__identity__email",children:t.email})]}):b.jsx("p",{className:"user-menu__content__identity__email",children:b.jsx("strong",{children:t.email})})})]}),r&&b.jsxs(b.Fragment,{children:[b.jsx(an,{withPadding:!1}),b.jsx("div",{className:"user-menu__content__body__settings",children:e.map(c=>b.jsx(xf,{label:c.label,icon:c.icon,onClick:c.onClick},c.label))})]}),o&&b.jsxs(b.Fragment,{children:[b.jsx(an,{withPadding:!1}),b.jsxs("div",{className:"user-menu__actions user-menu__actions--mobile",children:[n&&b.jsx("div",{className:"user-menu__actions__left",children:n}),i&&b.jsx("div",{className:"user-menu__actions__right",children:b.jsx(X.Button,{variant:"tertiary",target:"_blank",href:i,size:"small",color:"neutral",children:a("components.userMenu.term_of_service")})})]})]})]})}):null},Xm=({...t})=>{const{t:e}=X.useCunningham(),r=Sf();return b.jsxs(b.Fragment,{children:[b.jsx(Df,{user:t.user,...r}),b.jsx(X.Modal,{isOpen:r.openState,onClose:()=>r.setOpenState(!1),"aria-label":e("components.userMenu.dialogTitle"),size:X.ModalSize.FULL,children:b.jsxs("div",{className:"user-menu__popover user-menu__popover--mobile",children:[b.jsx(X.Button,{variant:"tertiary",className:"user-menu__close-button",onClick:r.toggleUserMenu,"aria-label":e("components.userMenu.close"),color:"neutral",icon:b.jsx(Jr,{name:"close"}),size:"small"}),b.jsx(wf,{...t}),b.jsx("div",{className:"user-menu__footer--mobile",children:b.jsx(X.Button,{variant:"primary",onClick:r.toggleUserMenu,children:e("components.share.ok")})})]})})]})},Jm=({user:t,settingsItems:e,showSettings:r,actions:n,termOfServiceUrl:i})=>{const{t:o}=X.useCunningham(),a=Sf();return b.jsxs(b.Fragment,{children:[b.jsx(Df,{user:t,...a}),b.jsx(Pi,{className:"c__dropdown-menu user-menu__popover",triggerRef:a.triggerRef,isOpen:a.openState,onOpenChange:a.setOpenState,children:b.jsx(Rh,{"aria-label":o("components.userMenu.dialogTitle"),children:b.jsx(wf,{user:t,settingsItems:e,showSettings:r,actions:n,termOfServiceUrl:i})})})]})},Qm=({user:t,settingsCTA:e,logout:r,termOfServiceUrl:n,actions:i})=>{const{t:o}=X.useCunningham(),{isTablet:a}=ot(),l=u.useMemo(()=>{const c=[];return e&&c.push({label:o("components.userMenu.manage_account"),icon:"settings",onClick:typeof e=="function"?e:typeof e=="string"?()=>window.open(e,"_blank","noopener,noreferrer"):void 0}),r&&c.push({label:o("components.userMenu.logout"),icon:"logout",onClick:r}),c},[e,r,o]),s=l.length>0;return t?b.jsx(b.Fragment,{children:a?b.jsx(Xm,{user:t,settingsItems:l,showSettings:s,actions:i,termOfServiceUrl:n}):b.jsx(Jm,{user:t,settingsItems:l,showSettings:s,actions:i,termOfServiceUrl:n})}):null},xf=({label:t,icon:e,onClick:r})=>b.jsxs("div",{className:"user-menu__item",onClick:r,children:[b.jsx(Jr,{name:e}),b.jsx("span",{className:"user-menu__item__label",children:t})]}),Df=({user:t,triggerRef:e,id:r,openState:n,toggleUserMenu:i})=>{const{t:o}=X.useCunningham();return t?b.jsx(X.Button,{variant:"tertiary",size:"small",ref:e,id:r,onClick:i,"aria-label":o(n?"components.userMenu.close":"components.userMenu.open"),title:o(n?"components.userMenu.close":"components.userMenu.open"),children:b.jsx(Gi,{fullName:t.full_name??t.email})}):null},Sf=()=>{const t=u.useId(),[e,r]=u.useState(!1),n=()=>{r(!e)},i=u.useRef(null);return{id:t,openState:e,setOpenState:r,toggleUserMenu:n,triggerRef:i}},Tl=(t,e)=>e&&t.activeIcon?t.activeIcon:t.icon,Ff=u.forwardRef(({step:t,isActive:e,onClick:r,index:n,ariaLabel:i},o)=>{const a=Tl(t,e);return b.jsxs("button",{ref:o,type:"button",className:ve("c__onboarding-modal__step",{"c__onboarding-modal__step--active":e}),onClick:r,"aria-current":e?"step":void 0,"aria-label":i,tabIndex:e?0:-1,"data-testid":`onboarding-step-${n}`,children:[b.jsx("div",{className:"c__onboarding-modal__step__icon","aria-hidden":"true",children:a}),b.jsxs("div",{className:"c__onboarding-modal__step__content",children:[b.jsx("span",{className:"c__onboarding-modal__step__title",children:t.title}),t.description&&b.jsx("div",{className:"c__onboarding-modal__step__description-wrapper",children:b.jsx("span",{className:"c__onboarding-modal__step__description",children:t.description})})]})]})});Ff.displayName="OnboardingStepItem";const ey=200,$f=({isOpen:t,size:e=X.ModalSize.LARGE,appName:r,mainTitle:n,steps:i,initialStep:o=0,footerLink:a,hideContent:l,onSkip:s,onComplete:c,onClose:d,labels:f})=>{const{t:p}=X.useCunningham(),{isMobile:g}=ot(),[y,h]=u.useState(o),[v,m]=u.useState(o),[C,E]=u.useState(!1),F=u.useRef([]),D=u.useRef(null),w=u.useRef(null),S=y===i.length-1,O=y===0,K=(f==null?void 0:f.skip)??p("components.onboarding.skip"),V=(f==null?void 0:f.next)??p("components.onboarding.next"),x=(f==null?void 0:f.previous)??p("components.onboarding.previous"),B=(f==null?void 0:f.complete)??p("components.onboarding.complete"),U=i[v],k=!l&&!!(U!=null&&U.content),W=u.useCallback((T,M)=>{const j=p("components.onboarding.stepLabel").replace("{current}",String(T+1)).replace("{total}",String(i.length)).replace("{title}",M);return T===y?j+p("components.onboarding.currentStepSuffix"):j},[p,i.length,y]),_=u.useCallback(()=>p("components.onboarding.contentRegionLabel").replace("{current}",String(v+1)).replace("{total}",String(i.length)),[p,v,i.length]);u.useEffect(()=>()=>{w.current&&clearTimeout(w.current)},[]),u.useEffect(()=>{const T=F.current[y];T&&T.scrollIntoView({behavior:"smooth",block:"nearest"})},[y]),u.useEffect(()=>{if(t){w.current&&(clearTimeout(w.current),w.current=null),h(o),m(o),E(!1);const T=setTimeout(()=>{requestAnimationFrame(()=>{const M=F.current[o];M&&!g&&M.focus()})},150);return()=>clearTimeout(T)}},[t,o,g]);const I=u.useCallback(T=>{T!==y&&(w.current&&clearTimeout(w.current),E(!0),h(T),w.current=setTimeout(()=>{m(T),E(!1),w.current=null},ey))},[y]);u.useEffect(()=>{const T=D.current;if(!T)return;const M=j=>{if(j.key!=="ArrowUp"&&j.key!=="ArrowDown"||!j.target.closest(".c__onboarding-modal__step"))return;j.preventDefault();const Z=j.key==="ArrowDown"?(y+1)%i.length:(y-1+i.length)%i.length;I(Z),setTimeout(()=>{var q;(q=F.current[Z])==null||q.focus()},0)};return T.addEventListener("keydown",M),()=>T.removeEventListener("keydown",M)},[y,i.length,I]);const z=u.useCallback(()=>{S?c():I(y+1)},[S,c,I,y]),L=u.useCallback(()=>{O||I(y-1)},[O,I,y]),N=u.useCallback(()=>{s==null||s()},[s]);if(i.length===0)return null;const R=Math.max(0,Math.min(o,i.length-1));R!==o&&process.env.NODE_ENV==="development"&&console.warn(`OnboardingModal: initialStep (${o}) is out of bounds. Using ${R} instead.`);const $=a?b.jsxs("a",{className:"c__onboarding-modal__footer-link",href:a.href,onClick:T=>{a.onClick&&(a.href||T.preventDefault(),a.onClick())},children:[b.jsx("span",{className:"material-icons","aria-hidden":"true",children:"info"}),b.jsx("span",{className:"c__onboarding-modal__footer-link__label",children:a.label})]}):void 0,P=b.jsxs(b.Fragment,{children:[g&&!O&&b.jsx(X.Button,{variant:"secondary",onClick:L,"data-testid":"onboarding-previous",children:x}),s&&b.jsx(X.Button,{variant:"tertiary",onClick:N,"data-testid":"onboarding-skip",children:K}),b.jsx(X.Button,{variant:"primary",onClick:z,"data-testid":"onboarding-next",children:S?B:V})]});return b.jsx(X.Modal,{isOpen:t,onClose:d,size:g?X.ModalSize.FULL:e,closeOnClickOutside:!0,title:"","aria-label":n,leftActions:$,rightActions:P,children:b.jsxs("div",{className:"c__onboarding-modal","data-testid":"onboarding-modal",children:[b.jsxs("div",{className:"c__onboarding-modal__header",children:[r&&b.jsx("div",{className:"c__onboarding-modal__app-name",children:r}),b.jsx("h2",{className:"c__onboarding-modal__main-title",children:n})]}),b.jsxs("div",{className:ve("c__onboarding-modal__body",{"c__onboarding-modal__body--text-only":!k}),children:[b.jsx("div",{ref:D,className:"c__onboarding-modal__steps",role:"tablist","aria-orientation":"vertical","aria-label":n,children:i.map((T,M)=>b.jsx(Ff,{ref:j=>{F.current[M]=j},step:T,index:M,totalSteps:i.length,isActive:M===y,ariaLabel:W(M,T.title),onClick:()=>I(M)},M))}),k&&b.jsx("div",{className:"c__onboarding-modal__content",role:"tabpanel","aria-live":"polite","aria-atomic":"true","aria-label":_(),children:b.jsx("div",{className:ve("c__onboarding-modal__content-inner",{"c__onboarding-modal__content-inner--fading":C}),children:U==null?void 0:U.content})}),(k||l)&&b.jsxs("div",{className:"c__onboarding-modal__mobile-step",children:[b.jsx("div",{className:"c__onboarding-modal__mobile-step__icon","aria-hidden":"true",children:U&&Tl(U,!0)}),b.jsxs("div",{className:"c__onboarding-modal__mobile-step__content",children:[b.jsx("span",{className:"c__onboarding-modal__mobile-step__title",children:U==null?void 0:U.title}),(U==null?void 0:U.description)&&b.jsx("span",{className:"c__onboarding-modal__mobile-step__description",children:U.description})]})]})]})]})})},ty=({steps:t,...e})=>b.jsx($f,{...e,steps:t,size:X.ModalSize.MEDIUM,hideContent:!0}),ry=(t,e={})=>Ti.getThemesFromGlobals(gr(Xr,t),{...e,overrides:gr(ki,e.overrides??{})});Object.defineProperty(exports,"ModalSize",{enumerable:!0,get:()=>X.ModalSize});exports.AVATAR_COLORS=Aa;exports.AccessRoleDropdown=Zi;exports.Badge=jm;exports.ContextMenu=qh;exports.ContextMenuProvider=Gh;exports.CunninghamProvider=Bf;exports.CustomTabs=vg;exports.DropdownMenu=Yr;exports.Filter=Jh;exports.Footer=Xh;exports.Header=cd;exports.Hero=e7;exports.HomeGutter=t7;exports.HorizontalSeparator=an;exports.Icon=Jr;exports.IconSize=De;exports.IconType=ii;exports.InvitationUserSelectorItem=bf;exports.InvitationUserSelectorList=vf;exports.LaGaufre=f7;exports.LaGaufreV2=od;exports.Label=Id;exports.LanguagePicker=sd;exports.LeftPanel=ud;exports.MainLayout=np;exports.OnboardingModal=$f;exports.ProConnectButton=S2;exports.QuickSearch=b1;exports.QuickSearchGroup=m1;exports.QuickSearchInput=v1;exports.QuickSearchItem=Bn;exports.QuickSearchItemTemplate=Ki;exports.ReleaseNoteModal=ty;exports.SearchUserItem=Ta;exports.ShareInvitationItem=Cf;exports.ShareMemberItem=yf;exports.ShareModal=qm;exports.ShareModalCopyLinkFooter=Ym;exports.Spinner=li;exports.TreeApi=pr;exports.TreeContext=_l;exports.TreeProvider=Sm;exports.TreeView=Fm;exports.TreeViewItem=Lm;exports.TreeViewMoveModeEnum=wt;exports.TreeViewNodeTypeEnum=se;exports.TreeViewSeparator=df;exports.UserAvatar=Gi;exports.UserMenu=Qm;exports.UserMenuItem=xf;exports.UserRow=qi;exports.VerticalSeparator=gg;exports.WithLabel=op;exports.anctGlobals=id;exports.containerSizeMap=ld;exports.cunninghamConfig=fa;exports.dsfrGlobals=nd;exports.getContainerSize=x7;exports.getIconSize=D7;exports.getStepIcon=Tl;exports.getUIKitThemesFromGlobals=ry;exports.getUserColor=Al;exports.getUserInitials=mf;exports.headerHeight=ip;exports.iconSizeMap=ad;exports.isNode=zr;exports.isSeparator=fi;exports.isTitle=hi;exports.isViewMore=ff;exports.locales=D2;exports.useArrowRoving=Km;exports.useContextMenuContext=Qu;exports.useCustomTranslations=Ef;exports.useDropdownMenu=mr;exports.useResponsive=ot;exports.useTree=hf;exports.useTreeContext=Pl;exports.whiteLabelGlobals=rd;
99
99
  //# sourceMappingURL=index.cjs.map