@gouvfr-lasuite/ui-kit 0.16.0 → 0.16.2

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
@@ -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 ha;function Wf(){return ha||(ha=1,process.env.NODE_ENV!=="production"&&function(){function t(I){if(I==null)return null;if(typeof I=="function")return I.$$typeof===V?null:I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case h:return"Fragment";case m:return"Profiler";case g:return"StrictMode";case $:return"Suspense";case w:return"SuspenseList";case F:return"Activity"}if(typeof I=="object")switch(typeof I.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),I.$$typeof){case b:return"Portal";case S:return(I.displayName||"Context")+".Provider";case C:return(I._context.displayName||"Context")+".Consumer";case P:var L=I.render;return I=I.displayName,I||(I=L.displayName||L.name||"",I=I!==""?"ForwardRef("+I+")":"ForwardRef"),I;case E:return L=I.displayName||null,L!==null?L:t(I.type)||"Memo";case R:L=I._payload,I=I._init;try{return t(I(L))}catch{}}return null}function e(I){return""+I}function n(I){try{e(I);var L=!1}catch{L=!0}if(L){L=console;var T=L.error,O=typeof Symbol=="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object";return T.call(L,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",O),e(I)}}function r(I){if(I===h)return"<>";if(typeof I=="object"&&I!==null&&I.$$typeof===R)return"<...>";try{var L=t(I);return L?"<"+L+">":"<...>"}catch{return"<...>"}}function i(){var I=x.A;return I===null?null:I.getOwner()}function o(){return Error("react-stack-top-frame")}function l(I){if(M.call(I,"key")){var L=Object.getOwnPropertyDescriptor(I,"key").get;if(L&&L.isReactWarning)return!1}return I.key!==void 0}function a(I,L){function T(){B||(B=!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)",L))}T.isReactWarning=!0,Object.defineProperty(I,"key",{get:T,configurable:!0})}function s(){var I=t(this.type);return _[I]||(_[I]=!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.")),I=this.props.ref,I!==void 0?I:null}function c(I,L,T,O,H,K,j,z){return T=K.ref,I={$$typeof:v,type:I,key:L,props:K,_owner:H},(T!==void 0?T:null)!==null?Object.defineProperty(I,"ref",{enumerable:!1,get:s}):Object.defineProperty(I,"ref",{enumerable:!1,value:null}),I._store={},Object.defineProperty(I._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(I,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(I,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:j}),Object.defineProperty(I,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:z}),Object.freeze&&(Object.freeze(I.props),Object.freeze(I)),I}function d(I,L,T,O,H,K,j,z){var W=L.children;if(W!==void 0)if(O)if(U(W)){for(O=0;O<W.length;O++)f(W[O]);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(M.call(L,"key")){W=t(I);var q=Object.keys(L).filter(function(ce){return ce!=="key"});O=0<q.length?"{key: someKey, "+q.join(": ..., ")+": ...}":"{key: someKey}",Z[W+O]||(q=0<q.length?"{"+q.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var ha;function Wf(){return ha||(ha=1,process.env.NODE_ENV!=="production"&&function(){function t(I){if(I==null)return null;if(typeof I=="function")return I.$$typeof===V?null:I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case h:return"Fragment";case b:return"Profiler";case g:return"StrictMode";case E:return"Suspense";case x:return"SuspenseList";case F:return"Activity"}if(typeof I=="object")switch(typeof I.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),I.$$typeof){case y:return"Portal";case S:return(I.displayName||"Context")+".Provider";case C:return(I._context.displayName||"Context")+".Consumer";case P:var L=I.render;return I=I.displayName,I||(I=L.displayName||L.name||"",I=I!==""?"ForwardRef("+I+")":"ForwardRef"),I;case $:return L=I.displayName||null,L!==null?L:t(I.type)||"Memo";case N:L=I._payload,I=I._init;try{return t(I(L))}catch{}}return null}function e(I){return""+I}function n(I){try{e(I);var L=!1}catch{L=!0}if(L){L=console;var _=L.error,O=typeof Symbol=="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object";return _.call(L,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",O),e(I)}}function r(I){if(I===h)return"<>";if(typeof I=="object"&&I!==null&&I.$$typeof===N)return"<...>";try{var L=t(I);return L?"<"+L+">":"<...>"}catch{return"<...>"}}function i(){var I=w.A;return I===null?null:I.getOwner()}function o(){return Error("react-stack-top-frame")}function l(I){if(M.call(I,"key")){var L=Object.getOwnPropertyDescriptor(I,"key").get;if(L&&L.isReactWarning)return!1}return I.key!==void 0}function a(I,L){function _(){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)",L))}_.isReactWarning=!0,Object.defineProperty(I,"key",{get:_,configurable:!0})}function s(){var I=t(this.type);return T[I]||(T[I]=!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.")),I=this.props.ref,I!==void 0?I:null}function c(I,L,_,O,H,K,j,z){return _=K.ref,I={$$typeof:v,type:I,key:L,props:K,_owner:H},(_!==void 0?_:null)!==null?Object.defineProperty(I,"ref",{enumerable:!1,get:s}):Object.defineProperty(I,"ref",{enumerable:!1,value:null}),I._store={},Object.defineProperty(I._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(I,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(I,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:j}),Object.defineProperty(I,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:z}),Object.freeze&&(Object.freeze(I.props),Object.freeze(I)),I}function d(I,L,_,O,H,K,j,z){var W=L.children;if(W!==void 0)if(O)if(B(W)){for(O=0;O<W.length;O++)f(W[O]);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(M.call(L,"key")){W=t(I);var q=Object.keys(L).filter(function(ce){return ce!=="key"});O=0<q.length?"{key: someKey, "+q.join(": ..., ")+": ...}":"{key: someKey}",Z[W+O]||(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} />`,O,W,q,W),Z[W+O]=!0)}if(W=null,T!==void 0&&(n(T),W=""+T),l(L)&&(n(L.key),W=""+L.key),"key"in L){T={};for(var X in L)X!=="key"&&(T[X]=L[X])}else T=L;return W&&a(T,typeof I=="function"?I.displayName||I.name||"Unknown":I),c(I,W,K,H,i(),T,j,z)}function f(I){typeof I=="object"&&I!==null&&I.$$typeof===v&&I._store&&(I._store.validated=1)}var p=u,v=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),S=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),V=Symbol.for("react.client.reference"),x=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=Object.prototype.hasOwnProperty,U=Array.isArray,A=console.createTask?console.createTask:function(){return null};p={"react-stack-bottom-frame":function(I){return I()}};var B,_={},N=p["react-stack-bottom-frame"].bind(p,o)(),k=A(r(o)),Z={};Pn.Fragment=h,Pn.jsx=function(I,L,T,O,H){var K=1e4>x.recentlyCreatedOwnerStacks++;return d(I,L,T,!1,O,H,K?Error("react-stack-top-frame"):N,K?A(r(I)):k)},Pn.jsxs=function(I,L,T,O,H){var K=1e4>x.recentlyCreatedOwnerStacks++;return d(I,L,T,!0,O,H,K?Error("react-stack-top-frame"):N,K?A(r(I)):k)}}()),Pn}var pa;function Zf(){return pa||(pa=1,process.env.NODE_ENV==="production"?or.exports=Uf():or.exports=Wf()),or.exports}var y=Zf();const Gf={share:{copyLink:"Copy link",ok:"Ok",shareButton:"Share",modalTitle:"Share folder",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"},restricted:{title:"Private",description:"Only users of the space can access the document"}}},role:{choices:{reader:{title:"Reader"},editor:{title:"Editor"}}}}},userMenu:{open:"Open user menu",close:"Close user menu",accountSettings:"Account settings",logout:"Logout",dialogTitle:"User menu"},footer:{logo:{alt:"Logo of the French government"}}},qf={components:Gf},Yf={share:{copyLink:"Copier le lien",ok:"Ok",modalTitle:"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"}}},role:{choices:{reader:{title:"Lecture seule"},editor:{title:"Édition"}}}}},userMenu:{open:"Ouvrir le menu utilisateur",close:"Fermer le menu utilisateur",accountSettings:"Paramètres du compte",logout:"Déconnexion",dialogTitle:"Menu utilisateur"},footer:{logo:{alt:"Logo du gouvernement français"}}},Xf={components:Yf};function Ai(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Kr(t,...e){if(!e.length)return t;const n=e.shift();if(Ai(t)&&Ai(n))for(const r in n)Ai(n[r])?(t[r]||Object.assign(t,{[r]:{}}),Kr(t[r],n[r])):Object.assign(t,{[r]:n[r]});return Kr(t,...e)}const Gc={"en-US":Kr(ne.enUS,qf),"fr-FR":Kr(ne.frFR,Xf)},Jf=t=>y.jsx(ne.CunninghamProvider,{theme:"dsfr",customLocales:Gc,...t}),Qf="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",e1="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",qc=({disabled:t,onClick:e})=>y.jsx(ne.Button,{disabled:t,className:"pro-connect-button",onClick:e,style:{backgroundImage:`url("${t?e1:Qf}")`}});u.createContext(null);u.createContext(null);u.createContext(null);u.createContext(null);u.createContext(null);const t1=u.createContext({}),re=typeof document<"u"?u.useLayoutEffect:()=>{};function pe(t){const e=u.useRef(null);return re(()=>{e.current=t},[t]),u.useCallback((...n)=>{const r=e.current;return r==null?void 0:r(...n)},[])}function n1(t){let[e,n]=u.useState(t),r=u.useRef(null),i=pe(()=>{if(!r.current)return;let l=r.current.next();if(l.done){r.current=null;return}e===l.value?i():n(l.value)});re(()=>{r.current&&i()});let o=pe(l=>{r.current=l(e),i()});return[e,o]}const jr={prefix:String(Math.round(Math.random()*1e10)),current:0},Yc=u.createContext(jr),r1=u.createContext(!1);let i1=!!(typeof window<"u"&&window.document&&window.document.createElement),Fi=new WeakMap;function o1(t=!1){let e=u.useContext(Yc),n=u.useRef(null);if(n.current===null&&!t){var r,i;let o=(i=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let l=Fi.get(o);l==null?Fi.set(o,{id:e.current,state:o.memoizedState}):o.memoizedState!==l.state&&(e.current=l.id,Fi.delete(o))}n.current=++e.current}return n.current}function l1(t){let e=u.useContext(Yc);e===jr&&!i1&&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 n=o1(!!t),r=e===jr&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${r}-${n}`}function a1(t){let e=u.useId(),[n]=u.useState(tr()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${jr.prefix}`;return t||`${r}-${e}`}const s1=typeof u.useId=="function"?a1:l1;function c1(){return!1}function u1(){return!0}function d1(t){return()=>{}}function tr(){return typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore(d1,c1,u1):u.useContext(r1)}let f1=!!(typeof window<"u"&&window.document&&window.document.createElement),sn=new Map,Rn;typeof FinalizationRegistry<"u"&&(Rn=new FinalizationRegistry(t=>{sn.delete(t)}));function xe(t){let[e,n]=u.useState(t),r=u.useRef(null),i=s1(e),o=u.useRef(null);if(Rn&&Rn.register(o,i),f1){const l=sn.get(i);l&&!l.includes(r)?l.push(r):sn.set(i,[r])}return re(()=>{let l=i;return()=>{Rn&&Rn.unregister(o),sn.delete(l)}},[i]),u.useEffect(()=>{let l=r.current;return l&&n(l),()=>{l&&(r.current=null)}}),i}function h1(t,e){if(t===e)return t;let n=sn.get(t);if(n)return n.forEach(i=>i.current=e),e;let r=sn.get(e);return r?(r.forEach(i=>i.current=t),t):e}function ft(t=[]){let e=xe(),[n,r]=n1(e),i=u.useCallback(()=>{r(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,r]);return re(i,[e,i,...t]),n}function Tt(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const le=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},Me=t=>t&&"window"in t&&t.window===t?t:le(t).defaultView||window;function p1(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function v1(t){return p1(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let g1=!1;function oi(){return g1}function se(t,e){if(!oi())return e&&t?t.contains(e):!1;if(!t||!e)return!1;let n=e;for(;n!==null;){if(n===t)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:v1(n)?n=n.host:n=n.parentNode}return!1}const Se=(t=document)=>{var e;if(!oi())return t.activeElement;let n=t.activeElement;for(;n&&"shadowRoot"in n&&(!((e=n.shadowRoot)===null||e===void 0)&&e.activeElement);)n=n.shadowRoot.activeElement;return n};function oe(t){return oi()&&t.target.shadowRoot&&t.composedPath?t.composedPath()[0]:t.target}class m1{get currentNode(){return this._currentNode}set currentNode(e){if(!se(this.root,e))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=e,i=e;for(this._currentNode=e;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const l=r,a=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});n.push(a),a.currentNode=i,this._currentSetFor.add(a),r=i=l.host}else r=r.parentNode;const o=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(o),o.currentNode=i,this._currentSetFor.add(o),this._walkerStack=n}get doc(){return this._doc}firstChild(){let e=this.currentNode,n=this.nextNode();return se(e,n)?(n&&(this.currentNode=n),n):(this.currentNode=e,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(e):!((n=this.filter)===null||n===void 0)&&n.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 r=this.nextNode();return r&&(this.currentNode=r),r}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 n=e.previousNode();if(n){if(n.shadowRoot){var r;let o;if(typeof this.filter=="function"?o=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(o=this.filter.acceptNode(n)),o===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let l=this.lastChild();return l&&(this.currentNode=l),l}return n&&(this.currentNode=n),n}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,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=l=>{if(l.nodeType===Node.ELEMENT_NODE){const s=l.shadowRoot;if(s){const c=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(c),NodeFilter.FILTER_ACCEPT}else{var a;if(typeof this.filter=="function")return this.filter(l);if(!((a=this.filter)===null||a===void 0)&&a.acceptNode)return this.filter.acceptNode(l);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=n,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(e.createTreeWalker(n,r,this._acceptNode));const o=n.shadowRoot;if(o){const l=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(l)}}}function y1(t,e,n,r){return oi()?new m1(t,e,n,r):t.createTreeWalker(e,n,r)}function Xc(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=Xc(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Te(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Xc(t))&&(r&&(r+=" "),r+=e);return r}function ie(...t){let e={...t[0]};for(let n=1;n<t.length;n++){let r=t[n];for(let i in r){let o=e[i],l=r[i];typeof o=="function"&&typeof l=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?e[i]=Tt(o,l):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof l=="string"?e[i]=Te(o,l):i==="id"&&o&&l?e.id=h1(o,l):e[i]=l!==void 0?l:o}}return e}function hl(...t){return t.length===1&&t[0]?t[0]:e=>{let n=!1;const r=t.map(i=>{const o=va(i,e);return n||(n=typeof o=="function"),o});if(n)return()=>{r.forEach((i,o)=>{typeof i=="function"?i():va(t[o],null)})}}}function va(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}const b1=new Set(["id"]),C1=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),S1=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),x1=/^(data-.*)$/;function fe(t,e={}){let{labelable:n,isLink:r,propNames:i}=e,o={};for(const l in t)Object.prototype.hasOwnProperty.call(t,l)&&(b1.has(l)||n&&C1.has(l)||r&&S1.has(l)||i!=null&&i.has(l)||x1.test(l))&&(o[l]=t[l]);return o}function Ve(t){if(w1())t.focus({preventScroll:!0});else{let e=E1(t);t.focus(),$1(e)}}let lr=null;function w1(){if(lr==null){lr=!1;try{document.createElement("div").focus({get preventScroll(){return lr=!0,!0}})}catch{}}return lr}function E1(t){let e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function $1(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}function li(t){var e;return typeof window>"u"||window.navigator==null?!1:((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands.some(n=>t.test(n.brand)))||t.test(window.navigator.userAgent)}function pl(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 tt(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const pt=tt(function(){return pl(/^Mac/i)}),P1=tt(function(){return pl(/^iPhone/i)}),Jc=tt(function(){return pl(/^iPad/i)||pt()&&navigator.maxTouchPoints>1}),ai=tt(function(){return P1()||Jc()}),D1=tt(function(){return pt()||ai()}),vl=tt(function(){return li(/AppleWebKit/i)&&!Qc()}),Qc=tt(function(){return li(/Chrome/i)}),gl=tt(function(){return li(/Android/i)}),T1=tt(function(){return li(/Firefox/i)}),_1=u.createContext({isNative:!0,open:O1,useHref:t=>t});function si(){return u.useContext(_1)}function _t(t,e,n=!0){var r,i;let{metaKey:o,ctrlKey:l,altKey:a,shiftKey:s}=e;T1()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&t.target==="_blank"&&(pt()?o=!0:l=!0);let c=vl()&&pt()&&!Jc()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:l,altKey:a,shiftKey:s}):new MouseEvent("click",{metaKey:o,ctrlKey:l,altKey:a,shiftKey:s,bubbles:!0,cancelable:!0});_t.isOpening=n,Ve(t),t.dispatchEvent(c),_t.isOpening=!1}_t.isOpening=!1;function I1(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let n=document.createElement("a");n.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(n.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(n.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(n.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(n.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(n),e(n),t.removeChild(n)}}function O1(t,e){I1(t,n=>_t(n,e))}function ml(t){let e=si();var n;const r=e.useHref((n=t==null?void 0:t.href)!==null&&n!==void 0?n:"");return{href:t!=null&&t.href?r: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}}let ct=new Map,Do=new Set;function ga(){if(typeof window>"u")return;function t(r){return"propertyName"in r}let e=r=>{if(!t(r)||!r.target)return;let i=ct.get(r.target);i||(i=new Set,ct.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!t(r)||!r.target)return;let i=ct.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),ct.delete(r.target)),ct.size===0)){for(let o of Do)o();Do.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?ga():document.addEventListener("DOMContentLoaded",ga));function k1(){for(const[t]of ct)"isConnected"in t&&!t.isConnected&&ct.delete(t)}function eu(t){requestAnimationFrame(()=>{k1(),ct.size===0?t():Do.add(t)})}function ci(){let t=u.useRef(new Map),e=u.useCallback((i,o,l,a)=>{let s=a!=null&&a.once?(...c)=>{t.current.delete(l),l(...c)}:l;t.current.set(l,{type:o,eventTarget:i,fn:s,options:a}),i.addEventListener(o,s,a)},[]),n=u.useCallback((i,o,l,a)=>{var s;let c=((s=t.current.get(l))===null||s===void 0?void 0:s.fn)||l;i.removeEventListener(o,c,a),t.current.delete(l)},[]),r=u.useCallback(()=>{t.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return u.useEffect(()=>r,[r]),{addGlobalListener:e,removeGlobalListener:n,removeAllGlobalListeners:r}}function ui(t,e){let{id:n,"aria-label":r,"aria-labelledby":i}=t;return n=xe(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&e&&(r=e),{id:n,"aria-label":r,"aria-labelledby":i}}function nt(t){const e=u.useRef(null),n=u.useRef(void 0),r=u.useCallback(i=>{if(typeof t=="function"){const o=t,l=o(i);return()=>{typeof l=="function"?l():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,n.current&&(n.current(),n.current=void 0),i!=null&&(n.current=r(i))}}),[r])}function ma(t,e){const n=u.useRef(!0),r=u.useRef(null);re(()=>(n.current=!0,()=>{n.current=!1}),[]),re(()=>{n.current?n.current=!1:(!r.current||e.some((i,o)=>!Object.is(i,r[o])))&&t(),r.current=e},e)}function N1(){return typeof window.ResizeObserver<"u"}function To(t){const{ref:e,box:n,onResize:r}=t;u.useEffect(()=>{let i=e==null?void 0:e.current;if(i)if(N1()){const o=new window.ResizeObserver(l=>{l.length&&r()});return o.observe(i,{box:n}),()=>{i&&o.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,e,n])}function tu(t,e){re(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function Bn(t,e){if(!t)return!1;let n=window.getComputedStyle(t),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&e&&(r=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),r}function nu(t,e){let n=t;for(Bn(n,e)&&(n=n.parentElement);n&&!Bn(n,e);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function R1(t,e){const n=[];for(;t&&t!==document.documentElement;)Bn(t,e)&&n.push(t),t=t.parentElement;return n}let M1=0;const Ki=new Map;function L1(t){let[e,n]=u.useState();return re(()=>{if(!t)return;let r=Ki.get(t);if(r)n(r.element.id);else{let i=`react-aria-description-${M1++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=t,document.body.appendChild(o),r={refCount:0,element:o},Ki.set(t,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Ki.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function ar(t,e,n,r){let i=pe(n),o=n==null;u.useEffect(()=>{if(o||!t.current)return;let l=t.current;return l.addEventListener(e,i,r),()=>{l.removeEventListener(e,i,r)}},[t,e,r,o,i])}function ru(t,e){let n=ya(t,e,"left"),r=ya(t,e,"top"),i=e.offsetWidth,o=e.offsetHeight,l=t.scrollLeft,a=t.scrollTop,{borderTopWidth:s,borderLeftWidth:c,scrollPaddingTop:d,scrollPaddingRight:f,scrollPaddingBottom:p,scrollPaddingLeft:v}=getComputedStyle(t),b=l+parseInt(c,10),h=a+parseInt(s,10),g=b+t.clientWidth,m=h+t.clientHeight,C=parseInt(d,10)||0,S=parseInt(p,10)||0,P=parseInt(f,10)||0,$=parseInt(v,10)||0;n<=l+$?l=n-parseInt(c,10)-$:n+i>g-P&&(l+=n+i-g+P),r<=h+C?a=r-parseInt(s,10)-C:r+o>m-S&&(a+=r+o-m+S),t.scrollLeft=l,t.scrollTop=a}function ya(t,e,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;e.offsetParent&&(i+=e[r],e.offsetParent!==t);){if(e.offsetParent.contains(t)){i-=t[r];break}e=e.offsetParent}return i}function ba(t,e){if(t&&document.contains(t)){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow==="hidden"){let s=R1(t);for(let c of s)ru(c,t)}else{var n;let{left:s,top:c}=t.getBoundingClientRect();t==null||(n=t.scrollIntoView)===null||n===void 0||n.call(t,{block:"nearest"});let{left:d,top:f}=t.getBoundingClientRect();if(Math.abs(s-d)>1||Math.abs(c-f)>1){var r,i,o;e==null||(i=e.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(o=t.scrollIntoView)===null||o===void 0||o.call(t,{block:"nearest"})}}}}function _o(t){return t.mozInputSource===0&&t.isTrusted?!0:gl()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function A1(t){return!gl()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function F1(t,e,n){let r=u.useRef(e),i=pe(()=>{n&&n(r.current)});u.useEffect(()=>{var o;let l=t==null||(o=t.current)===null||o===void 0?void 0:o.form;return l==null||l.addEventListener("reset",i),()=>{l==null||l.removeEventListener("reset",i)}},[t,i])}function K1(t){const e=u.version.split(".");return parseInt(e[0],10)>=19?t:t?"true":void 0}const j1="react-aria-clear-focus",H1="react-aria-focus";function tn(t){return pt()?t.metaKey:t.ctrlKey}function V1(t,e=!0){let[n,r]=u.useState(!0),i=n&&e;return re(()=>{if(i&&t.current&&"getAnimations"in t.current)for(let o of t.current.getAnimations())o instanceof CSSTransition&&o.cancel()},[t,i]),iu(t,i,u.useCallback(()=>r(!1),[])),i}function z1(t,e){let[n,r]=u.useState(e?"open":"closed");switch(n){case"open":e||r("exiting");break;case"closed":case"exiting":e&&r("open");break}let i=n==="exiting";return iu(t,i,u.useCallback(()=>{r(o=>o==="exiting"?"closed":o)},[])),i}function iu(t,e,n){re(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){n();return}let r=t.current.getAnimations();if(r.length===0){n();return}let i=!1;return Promise.all(r.map(o=>o.finished)).then(()=>{i||At.flushSync(()=>{n()})}).catch(()=>{}),()=>{i=!0}}},[t,e,n])}const yl=["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"])'],B1=yl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";yl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const U1=yl.join(':not([hidden]):not([tabindex="-1"]),');function ou(t){return t.matches(B1)}function W1(t){return t.matches(U1)}function di(t,e,n){let[r,i]=u.useState(t||e),o=u.useRef(t!==void 0),l=t!==void 0;u.useEffect(()=>{let c=o.current;c!==l&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),o.current=l},[l]);let a=l?t:r,s=u.useCallback((c,...d)=>{let f=(p,...v)=>{n&&(Object.is(a,p)||n(p,...v)),l||(a=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((v,...b)=>{let h=c(l?a:v,...b);return f(h,...d),l?v:h})):(l||i(c),f(c,...d))},[l,a,n]);return[a,s]}function Io(t,e=-1/0,n=1/0){return Math.min(Math.max(t,e),n)}const Un=Symbol("default");function rt({values:t,children:e}){for(let[n,r]of t)e=u.createElement(n.Provider,{value:r},e);return e}function we(t){let{className:e,style:n,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:l,values:a}=t;return u.useMemo(()=>{let s,c,d;return typeof e=="function"?s=e({...a,defaultClassName:i}):s=e,typeof n=="function"?c=n({...a,defaultStyle:l||{}}):c=n,typeof r=="function"?d=r({...a,defaultChildren:o}):r==null?d=o:d=r,{className:s??i,style:c||l?{...l,...c}:void 0,children:d??o,"data-rac":""}},[e,n,r,i,o,l,a])}function fi(t,e){let n=u.useContext(t);if(e===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=e||Un;if(!n.slots[r]){let i=new Intl.ListFormat().format(Object.keys(n.slots).map(l=>`"${l}"`)),o=e?`Invalid slot "${e}".`:"A slot prop is required.";throw new Error(`${o} Valid slot names are ${i}.`)}return n.slots[r]}return n}function Ye(t,e,n){let r=fi(n,t.slot)||{},{ref:i,...o}=r,l=nt(u.useMemo(()=>hl(e,i),[e,i])),a=ie(o,t);return"style"in o&&o.style&&"style"in t&&t.style&&(typeof o.style=="function"||typeof t.style=="function"?a.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}}:a.style={...o.style,...t.style}),[a,l]}function bl(t=!0){let[e,n]=u.useState(t),r=u.useRef(!1),i=u.useCallback(o=>{r.current=!0,n(!!o)},[]);return re(()=>{r.current||n(!1)},[]),[i,e]}function Z1(t){const e=/^(data-.*)$/;let n={};for(const r in t)e.test(r)||(n[r]=t[r]);return n}class Cl{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new Cl(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,n){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=n}}class Sl{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 n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(e),i=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?n.get(i.nextKey):void 0}}}getKeyBefore(e){let n=this.keyMap.get(e);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(e){let n=this.keyMap.get(e);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.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 n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,n=new e;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n}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,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=n,this.frozen=!r}UNSTABLE_filter(e){let n=new Sl,r=null;for(let i of this)if(i.type==="section"&&i.hasChildNodes){let o=i.clone(),l=null;for(let a of this.getChildren(i.key))if(Ca(a,e,this,n)){let s=a.clone();l==null&&(o.firstChildKey=s.key),n.firstKey==null&&(n.firstKey=o.key),l&&l.parentKey===s.parentKey?(l.nextKey=s.key,s.prevKey=l.key):s.prevKey=null,s.nextKey=null,n.addNode(s),l=s}l&&(l.type!=="header"?(o.lastChildKey=l.key,r==null?o.prevKey=null:(r.type==="section"||r.type==="separator")&&(r.nextKey=o.key,o.prevKey=r.key),o.nextKey=null,r=o,n.addNode(o)):(n.firstKey===o.key&&(n.firstKey=null),n.removeNode(l.key)))}else if(i.type==="separator"){let o=i.clone();o.nextKey=null,(r==null?void 0:r.type)==="section"&&(r.nextKey=o.key,o.prevKey=r.key,r=o,n.addNode(o))}else{let o=i.clone();Ca(o,e,this,n)&&(n.firstKey==null&&(n.firstKey=o.key),r!=null&&r.type!=="section"&&r.type!=="separator"&&r.parentKey===o.parentKey?(r.nextKey=o.key,o.prevKey=r.key):o.prevKey=null,o.nextKey=null,n.addNode(o),r=o)}if((r==null?void 0:r.type)==="separator"&&r.nextKey===null){let i;r.prevKey!=null&&(i=n.getItem(r.prevKey),i.nextKey=null),n.removeNode(r.key),r=i}return n.lastKey=(r==null?void 0:r.key)||null,n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}function Ca(t,e,n,r){if(t.type==="subdialogtrigger"||t.type==="submenutrigger"){let i=[...n.getChildren(t.key)][0];if(i&&e(i.textValue)){let o=i.clone();return r.addNode(o),!0}else return!1}else return t.type==="header"?!0:e(t.textValue)}class lu{*[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,n){if(n==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=n,e.previousSibling=n.previousSibling,e.index=n.index,this.firstChild===n?this.firstChild=e:n.previousSibling&&(n.previousSibling.nextSibling=e),n.previousSibling=e,e.parentNode=n.parentNode,this.invalidateChildIndices(n),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 cn extends lu{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof cn?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,n,r;let i=this.nextVisibleSibling,o=this.getMutableNode();o.index=this.index,o.level=this.level,o.parentKey=this.parentNode instanceof cn?this.parentNode.node.key:null;var l;o.prevKey=(l=(e=this.previousVisibleSibling)===null||e===void 0?void 0:e.node.key)!==null&&l!==void 0?l:null;var a;o.nextKey=(a=i==null?void 0:i.node.key)!==null&&a!==void 0?a:null,o.hasChildNodes=!!this.firstChild;var s;o.firstChildKey=(s=(n=this.firstVisibleChild)===null||n===void 0?void 0:n.node.key)!==null&&s!==void 0?s:null;var c;if(o.lastChildKey=(c=(r=this.lastVisibleChild)===null||r===void 0?void 0:r.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 v=i.getMutableNode();v.colIndex=p}}}setProps(e,n,r,i){let o=this.getMutableNode(),{value:l,textValue:a,id:s,...c}=e;if(c.ref=n,o.props=c,o.rendered=r,o.render=i,o.value=l,o.textValue=a||(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(n){let r=n==="none";if(e.isHidden!==r){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 l=e.previousVisibleSibling,a=e.nextVisibleSibling;l&&e.ownerDocument.markDirty(l),a&&e.ownerDocument.markDirty(a),e.isHidden=r,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.hasSetProps=!1,this.isHidden=!1,this.node=new Cl(e,`react-aria-${++n.nodeId}`)}}class G1 extends lu{get isConnected(){return this.isMounted}createElement(e){return new cn(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 n=this.getMutableCollection();if(!n.getItem(e.node.key))for(let r of e)this.addNode(r);n.addNode(e.node)}removeNode(e){for(let r of e)this.removeNode(r);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 cn&&(!o.isConnected||o.isHidden)?this.removeNode(o):o.updateChildIndices();for(let o of this.dirtyNodes)o instanceof cn&&(o.isConnected&&!o.isHidden&&(o.updateNode(),this.addNode(o)),o.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,n,r,i;this.nextCollection.commit((r=(e=this.firstVisibleChild)===null||e===void 0?void 0:e.node.key)!==null&&r!==void 0?r:null,(i=(n=this.lastVisibleChild)===null||n===void 0?void 0:n.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 au(t){let{children:e,items:n,idScope:r,addIdAndValue:i,dependencies:o=[]}=t,l=u.useMemo(()=>new WeakMap,o);return u.useMemo(()=>{if(n&&typeof e=="function"){let c=[];for(let d of n){let f=l.get(d);if(!f){f=e(d);var a,s;let p=(s=(a=f.props.id)!==null&&a!==void 0?a:d.key)!==null&&s!==void 0?s:d.id;if(p==null)throw new Error("Could not determine key for item");r&&(p=r+":"+p),f=u.cloneElement(f,i?{key:p,id:p,value:d}:{key:p}),l.set(d,f)}c.push(f)}return c}else if(typeof e!="function")return e},[e,n,l,r,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 Hr=u.createContext(!1);function q1(t){if(u.useContext(Hr))return u.createElement(u.Fragment,null,t.children);let n=u.createElement(Hr.Provider,{value:!0},t.children);return u.createElement("template",{"data-react-aria-hidden":!0},n)}function xl(t){let e=(n,r)=>u.useContext(Hr)?null:t(n,r);return e.displayName=t.displayName||t.name,u.forwardRef(e)}function Y1(){return u.useContext(Hr)}function wl(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function su(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function cu(t){let e=u.useRef({isFocused:!1,observer:null});re(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=pe(r=>{t==null||t(r)});return u.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){e.current.isFocused=!0;let i=r.target,o=l=>{if(e.current.isFocused=!1,i.disabled){let a=wl(l);n(a)}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 l;(l=e.current.observer)===null||l===void 0||l.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let Vr=!1;function Sa(t){for(;t&&!ou(t);)t=t.parentElement;let e=Me(t),n=e.document.activeElement;if(!n||n===t)return;Vr=!0;let r=!1,i=d=>{(d.target===n||r)&&d.stopImmediatePropagation()},o=d=>{(d.target===n||r)&&(d.stopImmediatePropagation(),!t&&!r&&(r=!0,Ve(n),s()))},l=d=>{(d.target===t||r)&&d.stopImmediatePropagation()},a=d=>{(d.target===t||r)&&(d.stopImmediatePropagation(),r||(r=!0,Ve(n),s()))};e.addEventListener("blur",i,!0),e.addEventListener("focusout",o,!0),e.addEventListener("focusin",a,!0),e.addEventListener("focus",l,!0);let s=()=>{cancelAnimationFrame(c),e.removeEventListener("blur",i,!0),e.removeEventListener("focusout",o,!0),e.removeEventListener("focusin",a,!0),e.removeEventListener("focus",l,!0),Vr=!1,r=!1},c=requestAnimationFrame(s);return s}let on="default",Oo="",Pr=new WeakMap;function xa(t){if(ai()){if(on==="default"){const e=le(t);Oo=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}on="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";Pr.set(t,t.style[e]),t.style[e]="none"}}function ji(t){if(ai()){if(on!=="disabled")return;on="restoring",setTimeout(()=>{eu(()=>{if(on==="restoring"){const e=le(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=Oo||""),Oo="",on="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&Pr.has(t)){let e=Pr.get(t),n="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[n]==="none"&&(t.style[n]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),Pr.delete(t)}}const El=u.createContext({register:()=>{}});El.displayName="PressResponderContext";function X1(t,e){return e.get?e.get.call(t):e.value}function uu(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function J1(t,e){var n=uu(t,e,"get");return X1(t,n)}function Q1(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function eh(t,e,n){Q1(t,e),e.set(t,n)}function th(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}function wa(t,e,n){var r=uu(t,e,"set");return th(t,r,n),n}function nh(t){let e=u.useContext(El);if(e){let{register:n,...r}=e;t=ie(r,t),n()}return tu(e,t.ref),t}var sr=new WeakMap;class cr{continuePropagation(){wa(this,sr,!1)}get shouldStopPropagation(){return J1(this,sr)}constructor(e,n,r,i){eh(this,sr,{writable:!0,value:void 0}),wa(this,sr,!0);var o;let l=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const a=l==null?void 0:l.getBoundingClientRect();let s,c=0,d,f=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,f=r.clientY),a&&(d!=null&&f!=null?(s=d-a.left,c=f-a.top):(s=a.width/2,c=a.height/2)),this.type=e,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=s,this.y=c}}const Ea=Symbol("linkClicked"),$a="react-aria-pressable-style",Pa="data-react-aria-pressable";function hi(t){let{onPress:e,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,onClick:l,isDisabled:a,isPressed:s,preventFocusOnPress:c,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:p,...v}=nh(t),[b,h]=u.useState(!1),g=u.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:m,removeAllGlobalListeners:C}=ci(),S=pe((x,M)=>{let U=g.current;if(a||U.didFirePressStart)return!1;let A=!0;if(U.isTriggeringEvent=!0,r){let B=new cr("pressstart",M,x);r(B),A=B.shouldStopPropagation}return n&&n(!0),U.isTriggeringEvent=!1,U.didFirePressStart=!0,h(!0),A}),P=pe((x,M,U=!0)=>{let A=g.current;if(!A.didFirePressStart)return!1;A.didFirePressStart=!1,A.isTriggeringEvent=!0;let B=!0;if(i){let _=new cr("pressend",M,x);i(_),B=_.shouldStopPropagation}if(n&&n(!1),h(!1),e&&U&&!a){let _=new cr("press",M,x);e(_),B&&(B=_.shouldStopPropagation)}return A.isTriggeringEvent=!1,B}),$=pe((x,M)=>{let U=g.current;if(a)return!1;if(o){U.isTriggeringEvent=!0;let A=new cr("pressup",M,x);return o(A),U.isTriggeringEvent=!1,A.shouldStopPropagation}return!0}),w=pe(x=>{let M=g.current;if(M.isPressed&&M.target){M.didFirePressStart&&M.pointerType!=null&&P(mt(M.target,x),M.pointerType,!1),M.isPressed=!1,M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,C(),f||ji(M.target);for(let U of M.disposables)U();M.disposables=[]}}),E=pe(x=>{d&&w(x)}),R=pe(x=>{l==null||l(x)}),F=pe((x,M)=>{if(l){let U=new MouseEvent("click",x);su(U,M),l(wl(U))}}),V=u.useMemo(()=>{let x=g.current,M={onKeyDown(A){if(Hi(A.nativeEvent,A.currentTarget)&&se(A.currentTarget,oe(A.nativeEvent))){var B;_a(oe(A.nativeEvent),A.key)&&A.preventDefault();let _=!0;if(!x.isPressed&&!A.repeat){x.target=A.currentTarget,x.isPressed=!0,x.pointerType="keyboard",_=S(A,"keyboard");let N=A.currentTarget,k=Z=>{Hi(Z,N)&&!Z.repeat&&se(N,oe(Z))&&x.target&&$(mt(x.target,Z),"keyboard")};m(le(A.currentTarget),"keyup",Tt(k,U),!0)}_&&A.stopPropagation(),A.metaKey&&pt()&&((B=x.metaKeyEvents)===null||B===void 0||B.set(A.key,A.nativeEvent))}else A.key==="Meta"&&(x.metaKeyEvents=new Map)},onClick(A){if(!(A&&!se(A.currentTarget,oe(A.nativeEvent)))&&A&&A.button===0&&!x.isTriggeringEvent&&!_t.isOpening){let B=!0;if(a&&A.preventDefault(),!x.ignoreEmulatedMouseEvents&&!x.isPressed&&(x.pointerType==="virtual"||_o(A.nativeEvent))){let _=S(A,"virtual"),N=$(A,"virtual"),k=P(A,"virtual");R(A),B=_&&N&&k}else if(x.isPressed&&x.pointerType!=="keyboard"){let _=x.pointerType||A.nativeEvent.pointerType||"virtual",N=$(mt(A.currentTarget,A),_),k=P(mt(A.currentTarget,A),_,!0);B=N&&k,x.isOverTarget=!1,R(A),w(A)}x.ignoreEmulatedMouseEvents=!1,B&&A.stopPropagation()}}},U=A=>{var B;if(x.isPressed&&x.target&&Hi(A,x.target)){var _;_a(oe(A),A.key)&&A.preventDefault();let k=oe(A),Z=se(x.target,oe(A));P(mt(x.target,A),"keyboard",Z),Z&&F(A,x.target),C(),A.key!=="Enter"&&$l(x.target)&&se(x.target,k)&&!A[Ea]&&(A[Ea]=!0,_t(x.target,A,!1)),x.isPressed=!1,(_=x.metaKeyEvents)===null||_===void 0||_.delete(A.key)}else if(A.key==="Meta"&&(!((B=x.metaKeyEvents)===null||B===void 0)&&B.size)){var N;let k=x.metaKeyEvents;x.metaKeyEvents=void 0;for(let Z of k.values())(N=x.target)===null||N===void 0||N.dispatchEvent(new KeyboardEvent("keyup",Z))}};if(typeof PointerEvent<"u"){M.onPointerDown=_=>{if(_.button!==0||!se(_.currentTarget,oe(_.nativeEvent)))return;if(A1(_.nativeEvent)){x.pointerType="virtual";return}x.pointerType=_.pointerType;let N=!0;if(!x.isPressed){x.isPressed=!0,x.isOverTarget=!0,x.activePointerId=_.pointerId,x.target=_.currentTarget,f||xa(x.target),N=S(_,x.pointerType);let k=oe(_.nativeEvent);"releasePointerCapture"in k&&k.releasePointerCapture(_.pointerId),m(le(_.currentTarget),"pointerup",A,!1),m(le(_.currentTarget),"pointercancel",B,!1)}N&&_.stopPropagation()},M.onMouseDown=_=>{if(se(_.currentTarget,oe(_.nativeEvent))&&_.button===0){if(c){let N=Sa(_.target);N&&x.disposables.push(N)}_.stopPropagation()}},M.onPointerUp=_=>{!se(_.currentTarget,oe(_.nativeEvent))||x.pointerType==="virtual"||_.button===0&&!x.isPressed&&$(_,x.pointerType||_.pointerType)},M.onPointerEnter=_=>{_.pointerId===x.activePointerId&&x.target&&!x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!0,S(mt(x.target,_),x.pointerType))},M.onPointerLeave=_=>{_.pointerId===x.activePointerId&&x.target&&x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!1,P(mt(x.target,_),x.pointerType,!1),E(_))};let A=_=>{if(_.pointerId===x.activePointerId&&x.isPressed&&_.button===0&&x.target){if(se(x.target,oe(_))&&x.pointerType!=null){let N=!1,k=setTimeout(()=>{x.isPressed&&x.target instanceof HTMLElement&&(N?w(_):(Ve(x.target),x.target.click()))},80);m(_.currentTarget,"click",()=>N=!0,!0),x.disposables.push(()=>clearTimeout(k))}else w(_);x.isOverTarget=!1}},B=_=>{w(_)};M.onDragStart=_=>{se(_.currentTarget,oe(_.nativeEvent))&&w(_)}}else if(process.env.NODE_ENV==="test"){M.onMouseDown=_=>{if(_.button!==0||!se(_.currentTarget,oe(_.nativeEvent)))return;if(x.ignoreEmulatedMouseEvents){_.stopPropagation();return}if(x.isPressed=!0,x.isOverTarget=!0,x.target=_.currentTarget,x.pointerType=_o(_.nativeEvent)?"virtual":"mouse",At.flushSync(()=>S(_,x.pointerType))&&_.stopPropagation(),c){let k=Sa(_.target);k&&x.disposables.push(k)}m(le(_.currentTarget),"mouseup",A,!1)},M.onMouseEnter=_=>{if(!se(_.currentTarget,oe(_.nativeEvent)))return;let N=!0;x.isPressed&&!x.ignoreEmulatedMouseEvents&&x.pointerType!=null&&(x.isOverTarget=!0,N=S(_,x.pointerType)),N&&_.stopPropagation()},M.onMouseLeave=_=>{if(!se(_.currentTarget,oe(_.nativeEvent)))return;let N=!0;x.isPressed&&!x.ignoreEmulatedMouseEvents&&x.pointerType!=null&&(x.isOverTarget=!1,N=P(_,x.pointerType,!1),E(_)),N&&_.stopPropagation()},M.onMouseUp=_=>{se(_.currentTarget,oe(_.nativeEvent))&&!x.ignoreEmulatedMouseEvents&&_.button===0&&!x.isPressed&&$(_,x.pointerType||"mouse")};let A=_=>{if(_.button===0){if(x.ignoreEmulatedMouseEvents){x.ignoreEmulatedMouseEvents=!1;return}x.target&&x.target.contains(_.target)&&x.pointerType!=null||w(_),x.isOverTarget=!1}};M.onTouchStart=_=>{if(!se(_.currentTarget,oe(_.nativeEvent)))return;let N=rh(_.nativeEvent);if(!N)return;x.activePointerId=N.identifier,x.ignoreEmulatedMouseEvents=!0,x.isOverTarget=!0,x.isPressed=!0,x.target=_.currentTarget,x.pointerType="touch",f||xa(x.target),S(ot(x.target,_),x.pointerType)&&_.stopPropagation(),m(Me(_.currentTarget),"scroll",B,!0)},M.onTouchMove=_=>{if(!se(_.currentTarget,oe(_.nativeEvent)))return;if(!x.isPressed){_.stopPropagation();return}let N=Da(_.nativeEvent,x.activePointerId),k=!0;N&&Ta(N,_.currentTarget)?!x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!0,k=S(ot(x.target,_),x.pointerType)):x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!1,k=P(ot(x.target,_),x.pointerType,!1),E(ot(x.target,_))),k&&_.stopPropagation()},M.onTouchEnd=_=>{if(!se(_.currentTarget,oe(_.nativeEvent)))return;if(!x.isPressed){_.stopPropagation();return}let N=Da(_.nativeEvent,x.activePointerId),k=!0;N&&Ta(N,_.currentTarget)&&x.pointerType!=null?($(ot(x.target,_),x.pointerType),k=P(ot(x.target,_),x.pointerType),F(_.nativeEvent,x.target)):x.isOverTarget&&x.pointerType!=null&&(k=P(ot(x.target,_),x.pointerType,!1)),k&&_.stopPropagation(),x.isPressed=!1,x.activePointerId=null,x.isOverTarget=!1,x.ignoreEmulatedMouseEvents=!0,x.target&&!f&&ji(x.target),C()},M.onTouchCancel=_=>{se(_.currentTarget,oe(_.nativeEvent))&&(_.stopPropagation(),x.isPressed&&w(ot(x.target,_)))};let B=_=>{x.isPressed&&se(oe(_),x.target)&&w({currentTarget:x.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};M.onDragStart=_=>{se(_.currentTarget,oe(_.nativeEvent))&&w(_)}}return M},[m,a,c,C,f,w,E,P,S,$,R,F]);return u.useEffect(()=>{if(!p||process.env.NODE_ENV==="test")return;const x=le(p.current);if(!x||!x.head||x.getElementById($a))return;const M=x.createElement("style");M.id=$a,M.textContent=`
22
+ <%s key={someKey} {...props} />`,O,W,q,W),Z[W+O]=!0)}if(W=null,_!==void 0&&(n(_),W=""+_),l(L)&&(n(L.key),W=""+L.key),"key"in L){_={};for(var X in L)X!=="key"&&(_[X]=L[X])}else _=L;return W&&a(_,typeof I=="function"?I.displayName||I.name||"Unknown":I),c(I,W,K,H,i(),_,j,z)}function f(I){typeof I=="object"&&I!==null&&I.$$typeof===v&&I._store&&(I._store.validated=1)}var p=u,v=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),S=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),V=Symbol.for("react.client.reference"),w=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=Object.prototype.hasOwnProperty,B=Array.isArray,A=console.createTask?console.createTask:function(){return null};p={"react-stack-bottom-frame":function(I){return I()}};var U,T={},R=p["react-stack-bottom-frame"].bind(p,o)(),k=A(r(o)),Z={};Pn.Fragment=h,Pn.jsx=function(I,L,_,O,H){var K=1e4>w.recentlyCreatedOwnerStacks++;return d(I,L,_,!1,O,H,K?Error("react-stack-top-frame"):R,K?A(r(I)):k)},Pn.jsxs=function(I,L,_,O,H){var K=1e4>w.recentlyCreatedOwnerStacks++;return d(I,L,_,!0,O,H,K?Error("react-stack-top-frame"):R,K?A(r(I)):k)}}()),Pn}var pa;function Zf(){return pa||(pa=1,process.env.NODE_ENV==="production"?or.exports=Uf():or.exports=Wf()),or.exports}var m=Zf();const Gf={share:{copyLink:"Copy link",ok:"Ok",shareButton:"Share",modalTitle:"Share folder",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"},restricted:{title:"Private",description:"Only users of the space can access the document"}}},role:{choices:{reader:{title:"Reader"},editor:{title:"Editor"}}}}},userMenu:{open:"Open user menu",close:"Close user menu",accountSettings:"Account settings",logout:"Logout",dialogTitle:"User menu"},footer:{logo:{alt:"Logo of the French government"}}},qf={components:Gf},Yf={share:{copyLink:"Copier le lien",ok:"Ok",modalTitle:"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"}}},role:{choices:{reader:{title:"Lecture seule"},editor:{title:"Édition"}}}}},userMenu:{open:"Ouvrir le menu utilisateur",close:"Fermer le menu utilisateur",accountSettings:"Paramètres du compte",logout:"Déconnexion",dialogTitle:"Menu utilisateur"},footer:{logo:{alt:"Logo du gouvernement français"}}},Xf={components:Yf};function Ai(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Kr(t,...e){if(!e.length)return t;const n=e.shift();if(Ai(t)&&Ai(n))for(const r in n)Ai(n[r])?(t[r]||Object.assign(t,{[r]:{}}),Kr(t[r],n[r])):Object.assign(t,{[r]:n[r]});return Kr(t,...e)}const Gc={"en-US":Kr(ne.enUS,qf),"fr-FR":Kr(ne.frFR,Xf)},Jf=t=>m.jsx(ne.CunninghamProvider,{theme:"dsfr",customLocales:Gc,...t}),Qf="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",e1="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",qc=({disabled:t,onClick:e})=>m.jsx(ne.Button,{disabled:t,className:"pro-connect-button",onClick:e,style:{backgroundImage:`url("${t?e1:Qf}")`}});u.createContext(null);u.createContext(null);u.createContext(null);u.createContext(null);u.createContext(null);const t1=u.createContext({}),re=typeof document<"u"?u.useLayoutEffect:()=>{};function pe(t){const e=u.useRef(null);return re(()=>{e.current=t},[t]),u.useCallback((...n)=>{const r=e.current;return r==null?void 0:r(...n)},[])}function n1(t){let[e,n]=u.useState(t),r=u.useRef(null),i=pe(()=>{if(!r.current)return;let l=r.current.next();if(l.done){r.current=null;return}e===l.value?i():n(l.value)});re(()=>{r.current&&i()});let o=pe(l=>{r.current=l(e),i()});return[e,o]}const jr={prefix:String(Math.round(Math.random()*1e10)),current:0},Yc=u.createContext(jr),r1=u.createContext(!1);let i1=!!(typeof window<"u"&&window.document&&window.document.createElement),Fi=new WeakMap;function o1(t=!1){let e=u.useContext(Yc),n=u.useRef(null);if(n.current===null&&!t){var r,i;let o=(i=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let l=Fi.get(o);l==null?Fi.set(o,{id:e.current,state:o.memoizedState}):o.memoizedState!==l.state&&(e.current=l.id,Fi.delete(o))}n.current=++e.current}return n.current}function l1(t){let e=u.useContext(Yc);e===jr&&!i1&&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 n=o1(!!t),r=e===jr&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${r}-${n}`}function a1(t){let e=u.useId(),[n]=u.useState(tr()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${jr.prefix}`;return t||`${r}-${e}`}const s1=typeof u.useId=="function"?a1:l1;function c1(){return!1}function u1(){return!0}function d1(t){return()=>{}}function tr(){return typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore(d1,c1,u1):u.useContext(r1)}let f1=!!(typeof window<"u"&&window.document&&window.document.createElement),sn=new Map,Rn;typeof FinalizationRegistry<"u"&&(Rn=new FinalizationRegistry(t=>{sn.delete(t)}));function we(t){let[e,n]=u.useState(t),r=u.useRef(null),i=s1(e),o=u.useRef(null);if(Rn&&Rn.register(o,i),f1){const l=sn.get(i);l&&!l.includes(r)?l.push(r):sn.set(i,[r])}return re(()=>{let l=i;return()=>{Rn&&Rn.unregister(o),sn.delete(l)}},[i]),u.useEffect(()=>{let l=r.current;return l&&n(l),()=>{l&&(r.current=null)}}),i}function h1(t,e){if(t===e)return t;let n=sn.get(t);if(n)return n.forEach(i=>i.current=e),e;let r=sn.get(e);return r?(r.forEach(i=>i.current=t),t):e}function ft(t=[]){let e=we(),[n,r]=n1(e),i=u.useCallback(()=>{r(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,r]);return re(i,[e,i,...t]),n}function Tt(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const le=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},Me=t=>t&&"window"in t&&t.window===t?t:le(t).defaultView||window;function p1(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function v1(t){return p1(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let g1=!1;function oi(){return g1}function se(t,e){if(!oi())return e&&t?t.contains(e):!1;if(!t||!e)return!1;let n=e;for(;n!==null;){if(n===t)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:v1(n)?n=n.host:n=n.parentNode}return!1}const Se=(t=document)=>{var e;if(!oi())return t.activeElement;let n=t.activeElement;for(;n&&"shadowRoot"in n&&(!((e=n.shadowRoot)===null||e===void 0)&&e.activeElement);)n=n.shadowRoot.activeElement;return n};function oe(t){return oi()&&t.target.shadowRoot&&t.composedPath?t.composedPath()[0]:t.target}class m1{get currentNode(){return this._currentNode}set currentNode(e){if(!se(this.root,e))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=e,i=e;for(this._currentNode=e;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const l=r,a=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});n.push(a),a.currentNode=i,this._currentSetFor.add(a),r=i=l.host}else r=r.parentNode;const o=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(o),o.currentNode=i,this._currentSetFor.add(o),this._walkerStack=n}get doc(){return this._doc}firstChild(){let e=this.currentNode,n=this.nextNode();return se(e,n)?(n&&(this.currentNode=n),n):(this.currentNode=e,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(e):!((n=this.filter)===null||n===void 0)&&n.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 r=this.nextNode();return r&&(this.currentNode=r),r}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 n=e.previousNode();if(n){if(n.shadowRoot){var r;let o;if(typeof this.filter=="function"?o=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(o=this.filter.acceptNode(n)),o===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let l=this.lastChild();return l&&(this.currentNode=l),l}return n&&(this.currentNode=n),n}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,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=l=>{if(l.nodeType===Node.ELEMENT_NODE){const s=l.shadowRoot;if(s){const c=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(c),NodeFilter.FILTER_ACCEPT}else{var a;if(typeof this.filter=="function")return this.filter(l);if(!((a=this.filter)===null||a===void 0)&&a.acceptNode)return this.filter.acceptNode(l);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=n,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(e.createTreeWalker(n,r,this._acceptNode));const o=n.shadowRoot;if(o){const l=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(l)}}}function y1(t,e,n,r){return oi()?new m1(t,e,n,r):t.createTreeWalker(e,n,r)}function Xc(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=Xc(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function xe(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Xc(t))&&(r&&(r+=" "),r+=e);return r}function ie(...t){let e={...t[0]};for(let n=1;n<t.length;n++){let r=t[n];for(let i in r){let o=e[i],l=r[i];typeof o=="function"&&typeof l=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?e[i]=Tt(o,l):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof l=="string"?e[i]=xe(o,l):i==="id"&&o&&l?e.id=h1(o,l):e[i]=l!==void 0?l:o}}return e}function hl(...t){return t.length===1&&t[0]?t[0]:e=>{let n=!1;const r=t.map(i=>{const o=va(i,e);return n||(n=typeof o=="function"),o});if(n)return()=>{r.forEach((i,o)=>{typeof i=="function"?i():va(t[o],null)})}}}function va(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}const b1=new Set(["id"]),C1=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),S1=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),w1=/^(data-.*)$/;function fe(t,e={}){let{labelable:n,isLink:r,propNames:i}=e,o={};for(const l in t)Object.prototype.hasOwnProperty.call(t,l)&&(b1.has(l)||n&&C1.has(l)||r&&S1.has(l)||i!=null&&i.has(l)||w1.test(l))&&(o[l]=t[l]);return o}function Ve(t){if(x1())t.focus({preventScroll:!0});else{let e=E1(t);t.focus(),$1(e)}}let lr=null;function x1(){if(lr==null){lr=!1;try{document.createElement("div").focus({get preventScroll(){return lr=!0,!0}})}catch{}}return lr}function E1(t){let e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function $1(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}function li(t){var e;return typeof window>"u"||window.navigator==null?!1:((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands.some(n=>t.test(n.brand)))||t.test(window.navigator.userAgent)}function pl(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 tt(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const pt=tt(function(){return pl(/^Mac/i)}),P1=tt(function(){return pl(/^iPhone/i)}),Jc=tt(function(){return pl(/^iPad/i)||pt()&&navigator.maxTouchPoints>1}),ai=tt(function(){return P1()||Jc()}),D1=tt(function(){return pt()||ai()}),vl=tt(function(){return li(/AppleWebKit/i)&&!Qc()}),Qc=tt(function(){return li(/Chrome/i)}),gl=tt(function(){return li(/Android/i)}),T1=tt(function(){return li(/Firefox/i)}),_1=u.createContext({isNative:!0,open:O1,useHref:t=>t});function si(){return u.useContext(_1)}function _t(t,e,n=!0){var r,i;let{metaKey:o,ctrlKey:l,altKey:a,shiftKey:s}=e;T1()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&t.target==="_blank"&&(pt()?o=!0:l=!0);let c=vl()&&pt()&&!Jc()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:l,altKey:a,shiftKey:s}):new MouseEvent("click",{metaKey:o,ctrlKey:l,altKey:a,shiftKey:s,bubbles:!0,cancelable:!0});_t.isOpening=n,Ve(t),t.dispatchEvent(c),_t.isOpening=!1}_t.isOpening=!1;function I1(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let n=document.createElement("a");n.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(n.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(n.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(n.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(n.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(n),e(n),t.removeChild(n)}}function O1(t,e){I1(t,n=>_t(n,e))}function ml(t){let e=si();var n;const r=e.useHref((n=t==null?void 0:t.href)!==null&&n!==void 0?n:"");return{href:t!=null&&t.href?r: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}}let ct=new Map,Do=new Set;function ga(){if(typeof window>"u")return;function t(r){return"propertyName"in r}let e=r=>{if(!t(r)||!r.target)return;let i=ct.get(r.target);i||(i=new Set,ct.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!t(r)||!r.target)return;let i=ct.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),ct.delete(r.target)),ct.size===0)){for(let o of Do)o();Do.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?ga():document.addEventListener("DOMContentLoaded",ga));function k1(){for(const[t]of ct)"isConnected"in t&&!t.isConnected&&ct.delete(t)}function eu(t){requestAnimationFrame(()=>{k1(),ct.size===0?t():Do.add(t)})}function ci(){let t=u.useRef(new Map),e=u.useCallback((i,o,l,a)=>{let s=a!=null&&a.once?(...c)=>{t.current.delete(l),l(...c)}:l;t.current.set(l,{type:o,eventTarget:i,fn:s,options:a}),i.addEventListener(o,s,a)},[]),n=u.useCallback((i,o,l,a)=>{var s;let c=((s=t.current.get(l))===null||s===void 0?void 0:s.fn)||l;i.removeEventListener(o,c,a),t.current.delete(l)},[]),r=u.useCallback(()=>{t.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return u.useEffect(()=>r,[r]),{addGlobalListener:e,removeGlobalListener:n,removeAllGlobalListeners:r}}function ui(t,e){let{id:n,"aria-label":r,"aria-labelledby":i}=t;return n=we(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&e&&(r=e),{id:n,"aria-label":r,"aria-labelledby":i}}function nt(t){const e=u.useRef(null),n=u.useRef(void 0),r=u.useCallback(i=>{if(typeof t=="function"){const o=t,l=o(i);return()=>{typeof l=="function"?l():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,n.current&&(n.current(),n.current=void 0),i!=null&&(n.current=r(i))}}),[r])}function ma(t,e){const n=u.useRef(!0),r=u.useRef(null);re(()=>(n.current=!0,()=>{n.current=!1}),[]),re(()=>{n.current?n.current=!1:(!r.current||e.some((i,o)=>!Object.is(i,r[o])))&&t(),r.current=e},e)}function N1(){return typeof window.ResizeObserver<"u"}function To(t){const{ref:e,box:n,onResize:r}=t;u.useEffect(()=>{let i=e==null?void 0:e.current;if(i)if(N1()){const o=new window.ResizeObserver(l=>{l.length&&r()});return o.observe(i,{box:n}),()=>{i&&o.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,e,n])}function tu(t,e){re(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function Bn(t,e){if(!t)return!1;let n=window.getComputedStyle(t),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&e&&(r=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),r}function nu(t,e){let n=t;for(Bn(n,e)&&(n=n.parentElement);n&&!Bn(n,e);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function R1(t,e){const n=[];for(;t&&t!==document.documentElement;)Bn(t,e)&&n.push(t),t=t.parentElement;return n}let M1=0;const Ki=new Map;function L1(t){let[e,n]=u.useState();return re(()=>{if(!t)return;let r=Ki.get(t);if(r)n(r.element.id);else{let i=`react-aria-description-${M1++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=t,document.body.appendChild(o),r={refCount:0,element:o},Ki.set(t,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Ki.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function ar(t,e,n,r){let i=pe(n),o=n==null;u.useEffect(()=>{if(o||!t.current)return;let l=t.current;return l.addEventListener(e,i,r),()=>{l.removeEventListener(e,i,r)}},[t,e,r,o,i])}function ru(t,e){let n=ya(t,e,"left"),r=ya(t,e,"top"),i=e.offsetWidth,o=e.offsetHeight,l=t.scrollLeft,a=t.scrollTop,{borderTopWidth:s,borderLeftWidth:c,scrollPaddingTop:d,scrollPaddingRight:f,scrollPaddingBottom:p,scrollPaddingLeft:v}=getComputedStyle(t),y=l+parseInt(c,10),h=a+parseInt(s,10),g=y+t.clientWidth,b=h+t.clientHeight,C=parseInt(d,10)||0,S=parseInt(p,10)||0,P=parseInt(f,10)||0,E=parseInt(v,10)||0;n<=l+E?l=n-parseInt(c,10)-E:n+i>g-P&&(l+=n+i-g+P),r<=h+C?a=r-parseInt(s,10)-C:r+o>b-S&&(a+=r+o-b+S),t.scrollLeft=l,t.scrollTop=a}function ya(t,e,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;e.offsetParent&&(i+=e[r],e.offsetParent!==t);){if(e.offsetParent.contains(t)){i-=t[r];break}e=e.offsetParent}return i}function ba(t,e){if(t&&document.contains(t)){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow==="hidden"){let s=R1(t);for(let c of s)ru(c,t)}else{var n;let{left:s,top:c}=t.getBoundingClientRect();t==null||(n=t.scrollIntoView)===null||n===void 0||n.call(t,{block:"nearest"});let{left:d,top:f}=t.getBoundingClientRect();if(Math.abs(s-d)>1||Math.abs(c-f)>1){var r,i,o;e==null||(i=e.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(o=t.scrollIntoView)===null||o===void 0||o.call(t,{block:"nearest"})}}}}function _o(t){return t.mozInputSource===0&&t.isTrusted?!0:gl()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function A1(t){return!gl()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function F1(t,e,n){let r=u.useRef(e),i=pe(()=>{n&&n(r.current)});u.useEffect(()=>{var o;let l=t==null||(o=t.current)===null||o===void 0?void 0:o.form;return l==null||l.addEventListener("reset",i),()=>{l==null||l.removeEventListener("reset",i)}},[t,i])}function K1(t){const e=u.version.split(".");return parseInt(e[0],10)>=19?t:t?"true":void 0}const j1="react-aria-clear-focus",H1="react-aria-focus";function tn(t){return pt()?t.metaKey:t.ctrlKey}function V1(t,e=!0){let[n,r]=u.useState(!0),i=n&&e;return re(()=>{if(i&&t.current&&"getAnimations"in t.current)for(let o of t.current.getAnimations())o instanceof CSSTransition&&o.cancel()},[t,i]),iu(t,i,u.useCallback(()=>r(!1),[])),i}function z1(t,e){let[n,r]=u.useState(e?"open":"closed");switch(n){case"open":e||r("exiting");break;case"closed":case"exiting":e&&r("open");break}let i=n==="exiting";return iu(t,i,u.useCallback(()=>{r(o=>o==="exiting"?"closed":o)},[])),i}function iu(t,e,n){re(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){n();return}let r=t.current.getAnimations();if(r.length===0){n();return}let i=!1;return Promise.all(r.map(o=>o.finished)).then(()=>{i||At.flushSync(()=>{n()})}).catch(()=>{}),()=>{i=!0}}},[t,e,n])}const yl=["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"])'],B1=yl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";yl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const U1=yl.join(':not([hidden]):not([tabindex="-1"]),');function ou(t){return t.matches(B1)}function W1(t){return t.matches(U1)}function di(t,e,n){let[r,i]=u.useState(t||e),o=u.useRef(t!==void 0),l=t!==void 0;u.useEffect(()=>{let c=o.current;c!==l&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),o.current=l},[l]);let a=l?t:r,s=u.useCallback((c,...d)=>{let f=(p,...v)=>{n&&(Object.is(a,p)||n(p,...v)),l||(a=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((v,...y)=>{let h=c(l?a:v,...y);return f(h,...d),l?v:h})):(l||i(c),f(c,...d))},[l,a,n]);return[a,s]}function Io(t,e=-1/0,n=1/0){return Math.min(Math.max(t,e),n)}const Un=Symbol("default");function rt({values:t,children:e}){for(let[n,r]of t)e=u.createElement(n.Provider,{value:r},e);return e}function Ee(t){let{className:e,style:n,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:l,values:a}=t;return u.useMemo(()=>{let s,c,d;return typeof e=="function"?s=e({...a,defaultClassName:i}):s=e,typeof n=="function"?c=n({...a,defaultStyle:l||{}}):c=n,typeof r=="function"?d=r({...a,defaultChildren:o}):r==null?d=o:d=r,{className:s??i,style:c||l?{...l,...c}:void 0,children:d??o,"data-rac":""}},[e,n,r,i,o,l,a])}function fi(t,e){let n=u.useContext(t);if(e===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=e||Un;if(!n.slots[r]){let i=new Intl.ListFormat().format(Object.keys(n.slots).map(l=>`"${l}"`)),o=e?`Invalid slot "${e}".`:"A slot prop is required.";throw new Error(`${o} Valid slot names are ${i}.`)}return n.slots[r]}return n}function Ye(t,e,n){let r=fi(n,t.slot)||{},{ref:i,...o}=r,l=nt(u.useMemo(()=>hl(e,i),[e,i])),a=ie(o,t);return"style"in o&&o.style&&"style"in t&&t.style&&(typeof o.style=="function"||typeof t.style=="function"?a.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}}:a.style={...o.style,...t.style}),[a,l]}function bl(t=!0){let[e,n]=u.useState(t),r=u.useRef(!1),i=u.useCallback(o=>{r.current=!0,n(!!o)},[]);return re(()=>{r.current||n(!1)},[]),[i,e]}function Z1(t){const e=/^(data-.*)$/;let n={};for(const r in t)e.test(r)||(n[r]=t[r]);return n}class Cl{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new Cl(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,n){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=n}}class Sl{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 n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(e),i=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?n.get(i.nextKey):void 0}}}getKeyBefore(e){let n=this.keyMap.get(e);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(e){let n=this.keyMap.get(e);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.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 n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,n=new e;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n}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,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=n,this.frozen=!r}UNSTABLE_filter(e){let n=new Sl,r=null;for(let i of this)if(i.type==="section"&&i.hasChildNodes){let o=i.clone(),l=null;for(let a of this.getChildren(i.key))if(Ca(a,e,this,n)){let s=a.clone();l==null&&(o.firstChildKey=s.key),n.firstKey==null&&(n.firstKey=o.key),l&&l.parentKey===s.parentKey?(l.nextKey=s.key,s.prevKey=l.key):s.prevKey=null,s.nextKey=null,n.addNode(s),l=s}l&&(l.type!=="header"?(o.lastChildKey=l.key,r==null?o.prevKey=null:(r.type==="section"||r.type==="separator")&&(r.nextKey=o.key,o.prevKey=r.key),o.nextKey=null,r=o,n.addNode(o)):(n.firstKey===o.key&&(n.firstKey=null),n.removeNode(l.key)))}else if(i.type==="separator"){let o=i.clone();o.nextKey=null,(r==null?void 0:r.type)==="section"&&(r.nextKey=o.key,o.prevKey=r.key,r=o,n.addNode(o))}else{let o=i.clone();Ca(o,e,this,n)&&(n.firstKey==null&&(n.firstKey=o.key),r!=null&&r.type!=="section"&&r.type!=="separator"&&r.parentKey===o.parentKey?(r.nextKey=o.key,o.prevKey=r.key):o.prevKey=null,o.nextKey=null,n.addNode(o),r=o)}if((r==null?void 0:r.type)==="separator"&&r.nextKey===null){let i;r.prevKey!=null&&(i=n.getItem(r.prevKey),i.nextKey=null),n.removeNode(r.key),r=i}return n.lastKey=(r==null?void 0:r.key)||null,n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}function Ca(t,e,n,r){if(t.type==="subdialogtrigger"||t.type==="submenutrigger"){let i=[...n.getChildren(t.key)][0];if(i&&e(i.textValue)){let o=i.clone();return r.addNode(o),!0}else return!1}else return t.type==="header"?!0:e(t.textValue)}class lu{*[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,n){if(n==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=n,e.previousSibling=n.previousSibling,e.index=n.index,this.firstChild===n?this.firstChild=e:n.previousSibling&&(n.previousSibling.nextSibling=e),n.previousSibling=e,e.parentNode=n.parentNode,this.invalidateChildIndices(n),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 cn extends lu{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof cn?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,n,r;let i=this.nextVisibleSibling,o=this.getMutableNode();o.index=this.index,o.level=this.level,o.parentKey=this.parentNode instanceof cn?this.parentNode.node.key:null;var l;o.prevKey=(l=(e=this.previousVisibleSibling)===null||e===void 0?void 0:e.node.key)!==null&&l!==void 0?l:null;var a;o.nextKey=(a=i==null?void 0:i.node.key)!==null&&a!==void 0?a:null,o.hasChildNodes=!!this.firstChild;var s;o.firstChildKey=(s=(n=this.firstVisibleChild)===null||n===void 0?void 0:n.node.key)!==null&&s!==void 0?s:null;var c;if(o.lastChildKey=(c=(r=this.lastVisibleChild)===null||r===void 0?void 0:r.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 v=i.getMutableNode();v.colIndex=p}}}setProps(e,n,r,i){let o=this.getMutableNode(),{value:l,textValue:a,id:s,...c}=e;if(c.ref=n,o.props=c,o.rendered=r,o.render=i,o.value=l,o.textValue=a||(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(n){let r=n==="none";if(e.isHidden!==r){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 l=e.previousVisibleSibling,a=e.nextVisibleSibling;l&&e.ownerDocument.markDirty(l),a&&e.ownerDocument.markDirty(a),e.isHidden=r,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.hasSetProps=!1,this.isHidden=!1,this.node=new Cl(e,`react-aria-${++n.nodeId}`)}}class G1 extends lu{get isConnected(){return this.isMounted}createElement(e){return new cn(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 n=this.getMutableCollection();if(!n.getItem(e.node.key))for(let r of e)this.addNode(r);n.addNode(e.node)}removeNode(e){for(let r of e)this.removeNode(r);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 cn&&(!o.isConnected||o.isHidden)?this.removeNode(o):o.updateChildIndices();for(let o of this.dirtyNodes)o instanceof cn&&(o.isConnected&&!o.isHidden&&(o.updateNode(),this.addNode(o)),o.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,n,r,i;this.nextCollection.commit((r=(e=this.firstVisibleChild)===null||e===void 0?void 0:e.node.key)!==null&&r!==void 0?r:null,(i=(n=this.lastVisibleChild)===null||n===void 0?void 0:n.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 au(t){let{children:e,items:n,idScope:r,addIdAndValue:i,dependencies:o=[]}=t,l=u.useMemo(()=>new WeakMap,o);return u.useMemo(()=>{if(n&&typeof e=="function"){let c=[];for(let d of n){let f=l.get(d);if(!f){f=e(d);var a,s;let p=(s=(a=f.props.id)!==null&&a!==void 0?a:d.key)!==null&&s!==void 0?s:d.id;if(p==null)throw new Error("Could not determine key for item");r&&(p=r+":"+p),f=u.cloneElement(f,i?{key:p,id:p,value:d}:{key:p}),l.set(d,f)}c.push(f)}return c}else if(typeof e!="function")return e},[e,n,l,r,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 Hr=u.createContext(!1);function q1(t){if(u.useContext(Hr))return u.createElement(u.Fragment,null,t.children);let n=u.createElement(Hr.Provider,{value:!0},t.children);return u.createElement("template",{"data-react-aria-hidden":!0},n)}function wl(t){let e=(n,r)=>u.useContext(Hr)?null:t(n,r);return e.displayName=t.displayName||t.name,u.forwardRef(e)}function Y1(){return u.useContext(Hr)}function xl(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function su(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function cu(t){let e=u.useRef({isFocused:!1,observer:null});re(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=pe(r=>{t==null||t(r)});return u.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){e.current.isFocused=!0;let i=r.target,o=l=>{if(e.current.isFocused=!1,i.disabled){let a=xl(l);n(a)}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 l;(l=e.current.observer)===null||l===void 0||l.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let Vr=!1;function Sa(t){for(;t&&!ou(t);)t=t.parentElement;let e=Me(t),n=e.document.activeElement;if(!n||n===t)return;Vr=!0;let r=!1,i=d=>{(d.target===n||r)&&d.stopImmediatePropagation()},o=d=>{(d.target===n||r)&&(d.stopImmediatePropagation(),!t&&!r&&(r=!0,Ve(n),s()))},l=d=>{(d.target===t||r)&&d.stopImmediatePropagation()},a=d=>{(d.target===t||r)&&(d.stopImmediatePropagation(),r||(r=!0,Ve(n),s()))};e.addEventListener("blur",i,!0),e.addEventListener("focusout",o,!0),e.addEventListener("focusin",a,!0),e.addEventListener("focus",l,!0);let s=()=>{cancelAnimationFrame(c),e.removeEventListener("blur",i,!0),e.removeEventListener("focusout",o,!0),e.removeEventListener("focusin",a,!0),e.removeEventListener("focus",l,!0),Vr=!1,r=!1},c=requestAnimationFrame(s);return s}let on="default",Oo="",Pr=new WeakMap;function wa(t){if(ai()){if(on==="default"){const e=le(t);Oo=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}on="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";Pr.set(t,t.style[e]),t.style[e]="none"}}function ji(t){if(ai()){if(on!=="disabled")return;on="restoring",setTimeout(()=>{eu(()=>{if(on==="restoring"){const e=le(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=Oo||""),Oo="",on="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&Pr.has(t)){let e=Pr.get(t),n="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[n]==="none"&&(t.style[n]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),Pr.delete(t)}}const El=u.createContext({register:()=>{}});El.displayName="PressResponderContext";function X1(t,e){return e.get?e.get.call(t):e.value}function uu(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function J1(t,e){var n=uu(t,e,"get");return X1(t,n)}function Q1(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function eh(t,e,n){Q1(t,e),e.set(t,n)}function th(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}function xa(t,e,n){var r=uu(t,e,"set");return th(t,r,n),n}function nh(t){let e=u.useContext(El);if(e){let{register:n,...r}=e;t=ie(r,t),n()}return tu(e,t.ref),t}var sr=new WeakMap;class cr{continuePropagation(){xa(this,sr,!1)}get shouldStopPropagation(){return J1(this,sr)}constructor(e,n,r,i){eh(this,sr,{writable:!0,value:void 0}),xa(this,sr,!0);var o;let l=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const a=l==null?void 0:l.getBoundingClientRect();let s,c=0,d,f=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,f=r.clientY),a&&(d!=null&&f!=null?(s=d-a.left,c=f-a.top):(s=a.width/2,c=a.height/2)),this.type=e,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=s,this.y=c}}const Ea=Symbol("linkClicked"),$a="react-aria-pressable-style",Pa="data-react-aria-pressable";function hi(t){let{onPress:e,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,onClick:l,isDisabled:a,isPressed:s,preventFocusOnPress:c,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:p,...v}=nh(t),[y,h]=u.useState(!1),g=u.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:b,removeAllGlobalListeners:C}=ci(),S=pe((w,M)=>{let B=g.current;if(a||B.didFirePressStart)return!1;let A=!0;if(B.isTriggeringEvent=!0,r){let U=new cr("pressstart",M,w);r(U),A=U.shouldStopPropagation}return n&&n(!0),B.isTriggeringEvent=!1,B.didFirePressStart=!0,h(!0),A}),P=pe((w,M,B=!0)=>{let A=g.current;if(!A.didFirePressStart)return!1;A.didFirePressStart=!1,A.isTriggeringEvent=!0;let U=!0;if(i){let T=new cr("pressend",M,w);i(T),U=T.shouldStopPropagation}if(n&&n(!1),h(!1),e&&B&&!a){let T=new cr("press",M,w);e(T),U&&(U=T.shouldStopPropagation)}return A.isTriggeringEvent=!1,U}),E=pe((w,M)=>{let B=g.current;if(a)return!1;if(o){B.isTriggeringEvent=!0;let A=new cr("pressup",M,w);return o(A),B.isTriggeringEvent=!1,A.shouldStopPropagation}return!0}),x=pe(w=>{let M=g.current;if(M.isPressed&&M.target){M.didFirePressStart&&M.pointerType!=null&&P(mt(M.target,w),M.pointerType,!1),M.isPressed=!1,M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,C(),f||ji(M.target);for(let B of M.disposables)B();M.disposables=[]}}),$=pe(w=>{d&&x(w)}),N=pe(w=>{l==null||l(w)}),F=pe((w,M)=>{if(l){let B=new MouseEvent("click",w);su(B,M),l(xl(B))}}),V=u.useMemo(()=>{let w=g.current,M={onKeyDown(A){if(Hi(A.nativeEvent,A.currentTarget)&&se(A.currentTarget,oe(A.nativeEvent))){var U;_a(oe(A.nativeEvent),A.key)&&A.preventDefault();let T=!0;if(!w.isPressed&&!A.repeat){w.target=A.currentTarget,w.isPressed=!0,w.pointerType="keyboard",T=S(A,"keyboard");let R=A.currentTarget,k=Z=>{Hi(Z,R)&&!Z.repeat&&se(R,oe(Z))&&w.target&&E(mt(w.target,Z),"keyboard")};b(le(A.currentTarget),"keyup",Tt(k,B),!0)}T&&A.stopPropagation(),A.metaKey&&pt()&&((U=w.metaKeyEvents)===null||U===void 0||U.set(A.key,A.nativeEvent))}else A.key==="Meta"&&(w.metaKeyEvents=new Map)},onClick(A){if(!(A&&!se(A.currentTarget,oe(A.nativeEvent)))&&A&&A.button===0&&!w.isTriggeringEvent&&!_t.isOpening){let U=!0;if(a&&A.preventDefault(),!w.ignoreEmulatedMouseEvents&&!w.isPressed&&(w.pointerType==="virtual"||_o(A.nativeEvent))){let T=S(A,"virtual"),R=E(A,"virtual"),k=P(A,"virtual");N(A),U=T&&R&&k}else if(w.isPressed&&w.pointerType!=="keyboard"){let T=w.pointerType||A.nativeEvent.pointerType||"virtual",R=E(mt(A.currentTarget,A),T),k=P(mt(A.currentTarget,A),T,!0);U=R&&k,w.isOverTarget=!1,N(A),x(A)}w.ignoreEmulatedMouseEvents=!1,U&&A.stopPropagation()}}},B=A=>{var U;if(w.isPressed&&w.target&&Hi(A,w.target)){var T;_a(oe(A),A.key)&&A.preventDefault();let k=oe(A),Z=se(w.target,oe(A));P(mt(w.target,A),"keyboard",Z),Z&&F(A,w.target),C(),A.key!=="Enter"&&$l(w.target)&&se(w.target,k)&&!A[Ea]&&(A[Ea]=!0,_t(w.target,A,!1)),w.isPressed=!1,(T=w.metaKeyEvents)===null||T===void 0||T.delete(A.key)}else if(A.key==="Meta"&&(!((U=w.metaKeyEvents)===null||U===void 0)&&U.size)){var R;let k=w.metaKeyEvents;w.metaKeyEvents=void 0;for(let Z of k.values())(R=w.target)===null||R===void 0||R.dispatchEvent(new KeyboardEvent("keyup",Z))}};if(typeof PointerEvent<"u"){M.onPointerDown=T=>{if(T.button!==0||!se(T.currentTarget,oe(T.nativeEvent)))return;if(A1(T.nativeEvent)){w.pointerType="virtual";return}w.pointerType=T.pointerType;let R=!0;if(!w.isPressed){w.isPressed=!0,w.isOverTarget=!0,w.activePointerId=T.pointerId,w.target=T.currentTarget,f||wa(w.target),R=S(T,w.pointerType);let k=oe(T.nativeEvent);"releasePointerCapture"in k&&k.releasePointerCapture(T.pointerId),b(le(T.currentTarget),"pointerup",A,!1),b(le(T.currentTarget),"pointercancel",U,!1)}R&&T.stopPropagation()},M.onMouseDown=T=>{if(se(T.currentTarget,oe(T.nativeEvent))&&T.button===0){if(c){let R=Sa(T.target);R&&w.disposables.push(R)}T.stopPropagation()}},M.onPointerUp=T=>{!se(T.currentTarget,oe(T.nativeEvent))||w.pointerType==="virtual"||T.button===0&&!w.isPressed&&E(T,w.pointerType||T.pointerType)},M.onPointerEnter=T=>{T.pointerId===w.activePointerId&&w.target&&!w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!0,S(mt(w.target,T),w.pointerType))},M.onPointerLeave=T=>{T.pointerId===w.activePointerId&&w.target&&w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!1,P(mt(w.target,T),w.pointerType,!1),$(T))};let A=T=>{if(T.pointerId===w.activePointerId&&w.isPressed&&T.button===0&&w.target){if(se(w.target,oe(T))&&w.pointerType!=null){let R=!1,k=setTimeout(()=>{w.isPressed&&w.target instanceof HTMLElement&&(R?x(T):(Ve(w.target),w.target.click()))},80);b(T.currentTarget,"click",()=>R=!0,!0),w.disposables.push(()=>clearTimeout(k))}else x(T);w.isOverTarget=!1}},U=T=>{x(T)};M.onDragStart=T=>{se(T.currentTarget,oe(T.nativeEvent))&&x(T)}}else if(process.env.NODE_ENV==="test"){M.onMouseDown=T=>{if(T.button!==0||!se(T.currentTarget,oe(T.nativeEvent)))return;if(w.ignoreEmulatedMouseEvents){T.stopPropagation();return}if(w.isPressed=!0,w.isOverTarget=!0,w.target=T.currentTarget,w.pointerType=_o(T.nativeEvent)?"virtual":"mouse",At.flushSync(()=>S(T,w.pointerType))&&T.stopPropagation(),c){let k=Sa(T.target);k&&w.disposables.push(k)}b(le(T.currentTarget),"mouseup",A,!1)},M.onMouseEnter=T=>{if(!se(T.currentTarget,oe(T.nativeEvent)))return;let R=!0;w.isPressed&&!w.ignoreEmulatedMouseEvents&&w.pointerType!=null&&(w.isOverTarget=!0,R=S(T,w.pointerType)),R&&T.stopPropagation()},M.onMouseLeave=T=>{if(!se(T.currentTarget,oe(T.nativeEvent)))return;let R=!0;w.isPressed&&!w.ignoreEmulatedMouseEvents&&w.pointerType!=null&&(w.isOverTarget=!1,R=P(T,w.pointerType,!1),$(T)),R&&T.stopPropagation()},M.onMouseUp=T=>{se(T.currentTarget,oe(T.nativeEvent))&&!w.ignoreEmulatedMouseEvents&&T.button===0&&!w.isPressed&&E(T,w.pointerType||"mouse")};let A=T=>{if(T.button===0){if(w.ignoreEmulatedMouseEvents){w.ignoreEmulatedMouseEvents=!1;return}w.target&&w.target.contains(T.target)&&w.pointerType!=null||x(T),w.isOverTarget=!1}};M.onTouchStart=T=>{if(!se(T.currentTarget,oe(T.nativeEvent)))return;let R=rh(T.nativeEvent);if(!R)return;w.activePointerId=R.identifier,w.ignoreEmulatedMouseEvents=!0,w.isOverTarget=!0,w.isPressed=!0,w.target=T.currentTarget,w.pointerType="touch",f||wa(w.target),S(ot(w.target,T),w.pointerType)&&T.stopPropagation(),b(Me(T.currentTarget),"scroll",U,!0)},M.onTouchMove=T=>{if(!se(T.currentTarget,oe(T.nativeEvent)))return;if(!w.isPressed){T.stopPropagation();return}let R=Da(T.nativeEvent,w.activePointerId),k=!0;R&&Ta(R,T.currentTarget)?!w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!0,k=S(ot(w.target,T),w.pointerType)):w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!1,k=P(ot(w.target,T),w.pointerType,!1),$(ot(w.target,T))),k&&T.stopPropagation()},M.onTouchEnd=T=>{if(!se(T.currentTarget,oe(T.nativeEvent)))return;if(!w.isPressed){T.stopPropagation();return}let R=Da(T.nativeEvent,w.activePointerId),k=!0;R&&Ta(R,T.currentTarget)&&w.pointerType!=null?(E(ot(w.target,T),w.pointerType),k=P(ot(w.target,T),w.pointerType),F(T.nativeEvent,w.target)):w.isOverTarget&&w.pointerType!=null&&(k=P(ot(w.target,T),w.pointerType,!1)),k&&T.stopPropagation(),w.isPressed=!1,w.activePointerId=null,w.isOverTarget=!1,w.ignoreEmulatedMouseEvents=!0,w.target&&!f&&ji(w.target),C()},M.onTouchCancel=T=>{se(T.currentTarget,oe(T.nativeEvent))&&(T.stopPropagation(),w.isPressed&&x(ot(w.target,T)))};let U=T=>{w.isPressed&&se(oe(T),w.target)&&x({currentTarget:w.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};M.onDragStart=T=>{se(T.currentTarget,oe(T.nativeEvent))&&x(T)}}return M},[b,a,c,C,f,x,$,P,S,E,N,F]);return u.useEffect(()=>{if(!p||process.env.NODE_ENV==="test")return;const w=le(p.current);if(!w||!w.head||w.getElementById($a))return;const M=w.createElement("style");M.id=$a,M.textContent=`
23
23
  @layer {
24
24
  [${Pa}] {
25
25
  touch-action: pan-x pan-y pinch-zoom;
26
26
  }
27
27
  }
28
- `.trim(),x.head.prepend(M)},[p]),u.useEffect(()=>{let x=g.current;return()=>{var M;f||ji((M=x.target)!==null&&M!==void 0?M:void 0);for(let U of x.disposables)U();x.disposables=[]}},[f]),{isPressed:s||b,pressProps:ie(v,V,{[Pa]:!0})}}function $l(t){return t.tagName==="A"&&t.hasAttribute("href")}function Hi(t,e){const{key:n,code:r}=t,i=e,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Me(i).HTMLInputElement&&!du(i,n)||i instanceof Me(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&$l(i))&&n!=="Enter")}function rh(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function Da(t,e){const n=t.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===e)return i}return null}function ot(t,e){let n=0,r=0;return e.targetTouches&&e.targetTouches.length===1&&(n=e.targetTouches[0].clientX,r=e.targetTouches[0].clientY),{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r}}function mt(t,e){let n=e.clientX,r=e.clientY;return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r}}function ih(t){let e=0,n=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?n=t.height/2:t.radiusY!==void 0&&(n=t.radiusY),{top:t.clientY-n,right:t.clientX+e,bottom:t.clientY+n,left:t.clientX-e}}function oh(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function Ta(t,e){let n=e.getBoundingClientRect(),r=ih(t);return oh(n,r)}function lh(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!$l(t)}function _a(t,e){return t instanceof HTMLInputElement?!du(t,e):lh(t)}const ah=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function du(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":ah.has(t.type)}let Ft=null,ko=new Set,Hn=new Map,It=!1,No=!1;const sh={Tab:!0,Escape:!0};function pi(t,e){for(let n of ko)n(t,e)}function ch(t){return!(t.metaKey||!pt()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function zr(t){It=!0,ch(t)&&(Ft="keyboard",pi("keyboard",t))}function Ne(t){Ft="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(It=!0,pi("pointer",t))}function fu(t){_o(t)&&(It=!0,Ft="virtual")}function hu(t){t.target===window||t.target===document||Vr||!t.isTrusted||(!It&&!No&&(Ft="virtual",pi("virtual",t)),It=!1,No=!1)}function pu(){Vr||(It=!1,No=!0)}function Ro(t){if(typeof window>"u"||typeof document>"u"||Hn.get(Me(t)))return;const e=Me(t),n=le(t);let r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){It=!0,r.apply(this,arguments)},n.addEventListener("keydown",zr,!0),n.addEventListener("keyup",zr,!0),n.addEventListener("click",fu,!0),e.addEventListener("focus",hu,!0),e.addEventListener("blur",pu,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Ne,!0),n.addEventListener("pointermove",Ne,!0),n.addEventListener("pointerup",Ne,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",Ne,!0),n.addEventListener("mousemove",Ne,!0),n.addEventListener("mouseup",Ne,!0)),e.addEventListener("beforeunload",()=>{vu(t)},{once:!0}),Hn.set(e,{focus:r})}const vu=(t,e)=>{const n=Me(t),r=le(t);e&&r.removeEventListener("DOMContentLoaded",e),Hn.has(n)&&(n.HTMLElement.prototype.focus=Hn.get(n).focus,r.removeEventListener("keydown",zr,!0),r.removeEventListener("keyup",zr,!0),r.removeEventListener("click",fu,!0),n.removeEventListener("focus",hu,!0),n.removeEventListener("blur",pu,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Ne,!0),r.removeEventListener("pointermove",Ne,!0),r.removeEventListener("pointerup",Ne,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",Ne,!0),r.removeEventListener("mousemove",Ne,!0),r.removeEventListener("mouseup",Ne,!0)),Hn.delete(n))};function uh(t){const e=le(t);let n;return e.readyState!=="loading"?Ro(t):(n=()=>{Ro(t)},e.addEventListener("DOMContentLoaded",n)),()=>vu(t,n)}typeof document<"u"&&uh();function vn(){return Ft!=="pointer"}function Br(){return Ft}function gu(t){Ft=t,pi(t,null)}const dh=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function fh(t,e,n){let r=le(n==null?void 0:n.target);const i=typeof window<"u"?Me(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?Me(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,l=typeof window<"u"?Me(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?Me(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return t=t||r.activeElement instanceof i&&!dh.has(r.activeElement.type)||r.activeElement instanceof o||r.activeElement instanceof l&&r.activeElement.isContentEditable,!(t&&e==="keyboard"&&n instanceof a&&!sh[n.key])}function hh(t,e,n){Ro(),u.useEffect(()=>{let r=(i,o)=>{fh(!!(n!=null&&n.isTextInput),i,o)&&t(vn())};return ko.add(r),()=>{ko.delete(r)}},e)}function vt(t){const e=le(t),n=Se(e);if(Br()==="virtual"){let r=n;eu(()=>{Se(e)===r&&t.isConnected&&Ve(t)})}else Ve(t)}function Pl(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:i}=t;const o=u.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),i&&i(!1),!0},[r,i]),l=cu(o),a=u.useCallback(s=>{const c=le(s.target),d=c?Se(c):Se();s.target===s.currentTarget&&d===oe(s.nativeEvent)&&(n&&n(s),i&&i(!0),l(s))},[i,n,l]);return{focusProps:{onFocus:!e&&(n||i||r)?a:void 0,onBlur:!e&&(r||i)?o:void 0}}}function Ia(t){if(!t)return;let e=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.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(r),e&&n.stopPropagation()}}function mu(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:Ia(t.onKeyDown),onKeyUp:Ia(t.onKeyUp)}}}let Mo=u.createContext(null);function ph(t){let e=u.useContext(Mo)||{};tu(e,t);let{ref:n,...r}=e;return r}function yu(t,e){let{focusProps:n}=Pl(t),{keyboardProps:r}=mu(t),i=ie(n,r),o=ph(e),l=t.isDisabled?{}:o,a=u.useRef(t.autoFocus);u.useEffect(()=>{a.current&&e.current&&vt(e.current),a.current=!1},[e]);let s=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(s=void 0),{focusableProps:ie({...i,tabIndex:s},l)}}function vh({children:t}){let e=u.useMemo(()=>({register:()=>{}}),[]);return u.createElement(El.Provider,{value:e},t)}function vi(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=t,o=u.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:a}=ci(),s=u.useCallback(f=>{f.currentTarget.contains(f.target)&&o.current.isFocusWithin&&!f.currentTarget.contains(f.relatedTarget)&&(o.current.isFocusWithin=!1,a(),n&&n(f),i&&i(!1))},[n,i,o,a]),c=cu(s),d=u.useCallback(f=>{if(!f.currentTarget.contains(f.target))return;const p=le(f.target),v=Se(p);if(!o.current.isFocusWithin&&v===oe(f.nativeEvent)){r&&r(f),i&&i(!0),o.current.isFocusWithin=!0,c(f);let b=f.currentTarget;l(p,"focus",h=>{if(o.current.isFocusWithin&&!se(b,h.target)){let g=new p.defaultView.FocusEvent("blur",{relatedTarget:h.target});su(g,b);let m=wl(g);s(m)}},{capture:!0})}},[r,i,c,l,s]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:s}}}let Ur=!1,Vi=0;function Lo(){Ur=!0,setTimeout(()=>{Ur=!1},50)}function Oa(t){t.pointerType==="touch"&&Lo()}function gh(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Oa):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",Lo),Vi++,()=>{Vi--,!(Vi>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Oa):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",Lo))}}function Cn(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:i}=t,[o,l]=u.useState(!1),a=u.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;u.useEffect(gh,[]);let{addGlobalListener:s,removeAllGlobalListeners:c}=ci(),{hoverProps:d,triggerHoverEnd:f}=u.useMemo(()=>{let p=(h,g)=>{if(a.pointerType=g,i||g==="touch"||a.isHovered||!h.currentTarget.contains(h.target))return;a.isHovered=!0;let m=h.currentTarget;a.target=m,s(le(h.target),"pointerover",C=>{a.isHovered&&a.target&&!se(a.target,C.target)&&v(C,C.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:m,pointerType:g}),n&&n(!0),l(!0)},v=(h,g)=>{let m=a.target;a.pointerType="",a.target=null,!(g==="touch"||!a.isHovered||!m)&&(a.isHovered=!1,c(),r&&r({type:"hoverend",target:m,pointerType:g}),n&&n(!1),l(!1))},b={};return typeof PointerEvent<"u"?(b.onPointerEnter=h=>{Ur&&h.pointerType==="mouse"||p(h,h.pointerType)},b.onPointerLeave=h=>{!i&&h.currentTarget.contains(h.target)&&v(h,h.pointerType)}):process.env.NODE_ENV==="test"&&(b.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},b.onMouseEnter=h=>{!a.ignoreEmulatedMouseEvents&&!Ur&&p(h,"mouse"),a.ignoreEmulatedMouseEvents=!1},b.onMouseLeave=h=>{!i&&h.currentTarget.contains(h.target)&&v(h,"mouse")}),{hoverProps:b,triggerHoverEnd:v}},[e,n,r,i,a,s,c]);return u.useEffect(()=>{i&&f({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:d,isHovered:o}}function mh(t){let{ref:e,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=t,o=u.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=pe(s=>{n&&ur(s,e)&&(i&&i(s),o.current.isPointerDown=!0)}),a=pe(s=>{n&&n(s)});u.useEffect(()=>{let s=o.current;if(r)return;const c=e.current,d=le(c);if(typeof PointerEvent<"u"){let f=p=>{s.isPointerDown&&ur(p,e)&&a(p),s.isPointerDown=!1};return d.addEventListener("pointerdown",l,!0),d.addEventListener("click",f,!0),()=>{d.removeEventListener("pointerdown",l,!0),d.removeEventListener("click",f,!0)}}else if(process.env.NODE_ENV==="test"){let f=v=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&ur(v,e)&&a(v),s.isPointerDown=!1},p=v=>{s.ignoreEmulatedMouseEvents=!0,s.isPointerDown&&ur(v,e)&&a(v),s.isPointerDown=!1};return d.addEventListener("mousedown",l,!0),d.addEventListener("mouseup",f,!0),d.addEventListener("touchstart",l,!0),d.addEventListener("touchend",p,!0),()=>{d.removeEventListener("mousedown",l,!0),d.removeEventListener("mouseup",f,!0),d.removeEventListener("touchstart",l,!0),d.removeEventListener("touchend",p,!0)}}},[e,r,l,a])}function ur(t,e){if(t.button>0)return!1;if(t.target){const n=t.target.ownerDocument;if(!n||!n.documentElement.contains(t.target)||t.target.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}const yh=500;function bu(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=yh,accessibilityDescription:l}=t;const a=u.useRef(void 0);let{addGlobalListener:s,removeGlobalListener:c}=ci(),{pressProps:d}=hi({isDisabled:e,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),a.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),le(p.target).activeElement!==p.target&&Ve(p.target),i&&i({...p,type:"longpress"}),a.current=void 0},o),p.pointerType==="touch")){let v=b=>{b.preventDefault()};s(p.target,"contextmenu",v,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{c(p.target,"contextmenu",v)},30)},{once:!0})}},onPressEnd(p){a.current&&clearTimeout(a.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),f=L1(i&&!e?l:void 0);return{longPressProps:ie(d,f)}}var dr={exports:{}},zi={};/**
28
+ `.trim(),w.head.prepend(M)},[p]),u.useEffect(()=>{let w=g.current;return()=>{var M;f||ji((M=w.target)!==null&&M!==void 0?M:void 0);for(let B of w.disposables)B();w.disposables=[]}},[f]),{isPressed:s||y,pressProps:ie(v,V,{[Pa]:!0})}}function $l(t){return t.tagName==="A"&&t.hasAttribute("href")}function Hi(t,e){const{key:n,code:r}=t,i=e,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Me(i).HTMLInputElement&&!du(i,n)||i instanceof Me(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&$l(i))&&n!=="Enter")}function rh(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function Da(t,e){const n=t.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===e)return i}return null}function ot(t,e){let n=0,r=0;return e.targetTouches&&e.targetTouches.length===1&&(n=e.targetTouches[0].clientX,r=e.targetTouches[0].clientY),{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r}}function mt(t,e){let n=e.clientX,r=e.clientY;return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r}}function ih(t){let e=0,n=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?n=t.height/2:t.radiusY!==void 0&&(n=t.radiusY),{top:t.clientY-n,right:t.clientX+e,bottom:t.clientY+n,left:t.clientX-e}}function oh(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function Ta(t,e){let n=e.getBoundingClientRect(),r=ih(t);return oh(n,r)}function lh(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!$l(t)}function _a(t,e){return t instanceof HTMLInputElement?!du(t,e):lh(t)}const ah=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function du(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":ah.has(t.type)}let Ft=null,ko=new Set,Hn=new Map,It=!1,No=!1;const sh={Tab:!0,Escape:!0};function pi(t,e){for(let n of ko)n(t,e)}function ch(t){return!(t.metaKey||!pt()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function zr(t){It=!0,ch(t)&&(Ft="keyboard",pi("keyboard",t))}function Ne(t){Ft="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(It=!0,pi("pointer",t))}function fu(t){_o(t)&&(It=!0,Ft="virtual")}function hu(t){t.target===window||t.target===document||Vr||!t.isTrusted||(!It&&!No&&(Ft="virtual",pi("virtual",t)),It=!1,No=!1)}function pu(){Vr||(It=!1,No=!0)}function Ro(t){if(typeof window>"u"||typeof document>"u"||Hn.get(Me(t)))return;const e=Me(t),n=le(t);let r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){It=!0,r.apply(this,arguments)},n.addEventListener("keydown",zr,!0),n.addEventListener("keyup",zr,!0),n.addEventListener("click",fu,!0),e.addEventListener("focus",hu,!0),e.addEventListener("blur",pu,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Ne,!0),n.addEventListener("pointermove",Ne,!0),n.addEventListener("pointerup",Ne,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",Ne,!0),n.addEventListener("mousemove",Ne,!0),n.addEventListener("mouseup",Ne,!0)),e.addEventListener("beforeunload",()=>{vu(t)},{once:!0}),Hn.set(e,{focus:r})}const vu=(t,e)=>{const n=Me(t),r=le(t);e&&r.removeEventListener("DOMContentLoaded",e),Hn.has(n)&&(n.HTMLElement.prototype.focus=Hn.get(n).focus,r.removeEventListener("keydown",zr,!0),r.removeEventListener("keyup",zr,!0),r.removeEventListener("click",fu,!0),n.removeEventListener("focus",hu,!0),n.removeEventListener("blur",pu,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Ne,!0),r.removeEventListener("pointermove",Ne,!0),r.removeEventListener("pointerup",Ne,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",Ne,!0),r.removeEventListener("mousemove",Ne,!0),r.removeEventListener("mouseup",Ne,!0)),Hn.delete(n))};function uh(t){const e=le(t);let n;return e.readyState!=="loading"?Ro(t):(n=()=>{Ro(t)},e.addEventListener("DOMContentLoaded",n)),()=>vu(t,n)}typeof document<"u"&&uh();function vn(){return Ft!=="pointer"}function Br(){return Ft}function gu(t){Ft=t,pi(t,null)}const dh=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function fh(t,e,n){let r=le(n==null?void 0:n.target);const i=typeof window<"u"?Me(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?Me(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,l=typeof window<"u"?Me(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?Me(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return t=t||r.activeElement instanceof i&&!dh.has(r.activeElement.type)||r.activeElement instanceof o||r.activeElement instanceof l&&r.activeElement.isContentEditable,!(t&&e==="keyboard"&&n instanceof a&&!sh[n.key])}function hh(t,e,n){Ro(),u.useEffect(()=>{let r=(i,o)=>{fh(!!(n!=null&&n.isTextInput),i,o)&&t(vn())};return ko.add(r),()=>{ko.delete(r)}},e)}function vt(t){const e=le(t),n=Se(e);if(Br()==="virtual"){let r=n;eu(()=>{Se(e)===r&&t.isConnected&&Ve(t)})}else Ve(t)}function Pl(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:i}=t;const o=u.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),i&&i(!1),!0},[r,i]),l=cu(o),a=u.useCallback(s=>{const c=le(s.target),d=c?Se(c):Se();s.target===s.currentTarget&&d===oe(s.nativeEvent)&&(n&&n(s),i&&i(!0),l(s))},[i,n,l]);return{focusProps:{onFocus:!e&&(n||i||r)?a:void 0,onBlur:!e&&(r||i)?o:void 0}}}function Ia(t){if(!t)return;let e=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.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(r),e&&n.stopPropagation()}}function mu(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:Ia(t.onKeyDown),onKeyUp:Ia(t.onKeyUp)}}}let Mo=u.createContext(null);function ph(t){let e=u.useContext(Mo)||{};tu(e,t);let{ref:n,...r}=e;return r}function yu(t,e){let{focusProps:n}=Pl(t),{keyboardProps:r}=mu(t),i=ie(n,r),o=ph(e),l=t.isDisabled?{}:o,a=u.useRef(t.autoFocus);u.useEffect(()=>{a.current&&e.current&&vt(e.current),a.current=!1},[e]);let s=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(s=void 0),{focusableProps:ie({...i,tabIndex:s},l)}}function vh({children:t}){let e=u.useMemo(()=>({register:()=>{}}),[]);return u.createElement(El.Provider,{value:e},t)}function vi(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=t,o=u.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:a}=ci(),s=u.useCallback(f=>{f.currentTarget.contains(f.target)&&o.current.isFocusWithin&&!f.currentTarget.contains(f.relatedTarget)&&(o.current.isFocusWithin=!1,a(),n&&n(f),i&&i(!1))},[n,i,o,a]),c=cu(s),d=u.useCallback(f=>{if(!f.currentTarget.contains(f.target))return;const p=le(f.target),v=Se(p);if(!o.current.isFocusWithin&&v===oe(f.nativeEvent)){r&&r(f),i&&i(!0),o.current.isFocusWithin=!0,c(f);let y=f.currentTarget;l(p,"focus",h=>{if(o.current.isFocusWithin&&!se(y,h.target)){let g=new p.defaultView.FocusEvent("blur",{relatedTarget:h.target});su(g,y);let b=xl(g);s(b)}},{capture:!0})}},[r,i,c,l,s]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:s}}}let Ur=!1,Vi=0;function Lo(){Ur=!0,setTimeout(()=>{Ur=!1},50)}function Oa(t){t.pointerType==="touch"&&Lo()}function gh(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Oa):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",Lo),Vi++,()=>{Vi--,!(Vi>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Oa):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",Lo))}}function Cn(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:i}=t,[o,l]=u.useState(!1),a=u.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;u.useEffect(gh,[]);let{addGlobalListener:s,removeAllGlobalListeners:c}=ci(),{hoverProps:d,triggerHoverEnd:f}=u.useMemo(()=>{let p=(h,g)=>{if(a.pointerType=g,i||g==="touch"||a.isHovered||!h.currentTarget.contains(h.target))return;a.isHovered=!0;let b=h.currentTarget;a.target=b,s(le(h.target),"pointerover",C=>{a.isHovered&&a.target&&!se(a.target,C.target)&&v(C,C.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:b,pointerType:g}),n&&n(!0),l(!0)},v=(h,g)=>{let b=a.target;a.pointerType="",a.target=null,!(g==="touch"||!a.isHovered||!b)&&(a.isHovered=!1,c(),r&&r({type:"hoverend",target:b,pointerType:g}),n&&n(!1),l(!1))},y={};return typeof PointerEvent<"u"?(y.onPointerEnter=h=>{Ur&&h.pointerType==="mouse"||p(h,h.pointerType)},y.onPointerLeave=h=>{!i&&h.currentTarget.contains(h.target)&&v(h,h.pointerType)}):process.env.NODE_ENV==="test"&&(y.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},y.onMouseEnter=h=>{!a.ignoreEmulatedMouseEvents&&!Ur&&p(h,"mouse"),a.ignoreEmulatedMouseEvents=!1},y.onMouseLeave=h=>{!i&&h.currentTarget.contains(h.target)&&v(h,"mouse")}),{hoverProps:y,triggerHoverEnd:v}},[e,n,r,i,a,s,c]);return u.useEffect(()=>{i&&f({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:d,isHovered:o}}function mh(t){let{ref:e,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=t,o=u.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=pe(s=>{n&&ur(s,e)&&(i&&i(s),o.current.isPointerDown=!0)}),a=pe(s=>{n&&n(s)});u.useEffect(()=>{let s=o.current;if(r)return;const c=e.current,d=le(c);if(typeof PointerEvent<"u"){let f=p=>{s.isPointerDown&&ur(p,e)&&a(p),s.isPointerDown=!1};return d.addEventListener("pointerdown",l,!0),d.addEventListener("click",f,!0),()=>{d.removeEventListener("pointerdown",l,!0),d.removeEventListener("click",f,!0)}}else if(process.env.NODE_ENV==="test"){let f=v=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&ur(v,e)&&a(v),s.isPointerDown=!1},p=v=>{s.ignoreEmulatedMouseEvents=!0,s.isPointerDown&&ur(v,e)&&a(v),s.isPointerDown=!1};return d.addEventListener("mousedown",l,!0),d.addEventListener("mouseup",f,!0),d.addEventListener("touchstart",l,!0),d.addEventListener("touchend",p,!0),()=>{d.removeEventListener("mousedown",l,!0),d.removeEventListener("mouseup",f,!0),d.removeEventListener("touchstart",l,!0),d.removeEventListener("touchend",p,!0)}}},[e,r,l,a])}function ur(t,e){if(t.button>0)return!1;if(t.target){const n=t.target.ownerDocument;if(!n||!n.documentElement.contains(t.target)||t.target.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}const yh=500;function bu(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=yh,accessibilityDescription:l}=t;const a=u.useRef(void 0);let{addGlobalListener:s,removeGlobalListener:c}=ci(),{pressProps:d}=hi({isDisabled:e,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),a.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),le(p.target).activeElement!==p.target&&Ve(p.target),i&&i({...p,type:"longpress"}),a.current=void 0},o),p.pointerType==="touch")){let v=y=>{y.preventDefault()};s(p.target,"contextmenu",v,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{c(p.target,"contextmenu",v)},30)},{once:!0})}},onPressEnd(p){a.current&&clearTimeout(a.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),f=L1(i&&!e?l:void 0);return{longPressProps:ie(d,f)}}var dr={exports:{}},zi={};/**
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 ka;function bh(){if(ka)return zi;ka=1;var t=u;function e(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,i=t.useEffect,o=t.useLayoutEffect,l=t.useDebugValue;function a(f,p){var v=p(),b=r({inst:{value:v,getSnapshot:p}}),h=b[0].inst,g=b[1];return o(function(){h.value=v,h.getSnapshot=p,s(h)&&g({inst:h})},[f,v,p]),i(function(){return s(h)&&g({inst:h}),f(function(){s(h)&&g({inst:h})})},[f]),l(v),v}function s(f){var p=f.getSnapshot;f=f.value;try{var v=p();return!n(f,v)}catch{return!0}}function c(f,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;return zi.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,zi}var Bi={};/**
36
+ */var ka;function bh(){if(ka)return zi;ka=1;var t=u;function e(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,i=t.useEffect,o=t.useLayoutEffect,l=t.useDebugValue;function a(f,p){var v=p(),y=r({inst:{value:v,getSnapshot:p}}),h=y[0].inst,g=y[1];return o(function(){h.value=v,h.getSnapshot=p,s(h)&&g({inst:h})},[f,v,p]),i(function(){return s(h)&&g({inst:h}),f(function(){s(h)&&g({inst:h})})},[f]),l(v),v}function s(f){var p=f.getSnapshot;f=f.value;try{var v=p();return!n(f,v)}catch{return!0}}function c(f,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;return zi.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,zi}var Bi={};/**
37
37
  * @license React
38
38
  * use-sync-external-store-shim.development.js
39
39
  *
@@ -41,7 +41,7 @@ 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 Na;function Ch(){return Na||(Na=1,process.env.NODE_ENV!=="production"&&function(){function t(v,b){return v===b&&(v!==0||1/v===1/b)||v!==v&&b!==b}function e(v,b){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=b();if(!f){var g=b();o(h,g)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}g=l({inst:{value:h,getSnapshot:b}});var m=g[0].inst,C=g[1];return s(function(){m.value=h,m.getSnapshot=b,n(m)&&C({inst:m})},[v,h,b]),a(function(){return n(m)&&C({inst:m}),v(function(){n(m)&&C({inst:m})})},[v]),c(h),h}function n(v){var b=v.getSnapshot;v=v.value;try{var h=b();return!o(v,h)}catch{return!0}}function r(v,b){return b()}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,l=i.useState,a=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"?r:e;Bi.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())}()),Bi}var Ra;function Sh(){return Ra||(Ra=1,process.env.NODE_ENV==="production"?dr.exports=bh():dr.exports=Ch()),dr.exports}var Dl=Sh();const Cu=u.createContext(!1),Wn=u.createContext(null);function gi(t){if(u.useContext(Wn))return t.content;let{collection:n,document:r}=$h(t.createCollection);return u.createElement(u.Fragment,null,u.createElement(q1,null,u.createElement(Wn.Provider,{value:r},t.content)),u.createElement(xh,{render:t.children,collection:n}))}function xh({collection:t,render:e}){return e(t)}function wh(t,e,n){let r=tr(),i=u.useRef(r);i.current=r;let o=u.useCallback(()=>i.current?n():e(),[e,n]);return Dl.useSyncExternalStore(t,o)}const Eh=typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore:wh;function $h(t){let[e]=u.useState(()=>new G1((t==null?void 0:t())||new Sl)),n=u.useCallback(l=>e.subscribe(l),[e]),r=u.useCallback(()=>{let l=e.getCollection();return e.isSSR&&e.resetAfterSSR(),l},[e]),i=u.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]),o=Eh(n,r,i);return re(()=>(e.isMounted=!0,()=>{e.isMounted=!1}),[e]),{collection:o,document:e}}const Ao=u.createContext(null);function Ph(t,e,n,r,i,o){let l=u.useCallback(s=>{s==null||s.setProps(e,n,r,o)},[e,n,r,o]),a=u.useContext(Ao);if(a){let s=a.ownerDocument.nodesByProps.get(e);return s||(s=a.ownerDocument.createElement(t),s.setProps(e,n,r,o),a.appendChild(s),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(e,s)),i?u.createElement(Ao.Provider,{value:s},i):null}return u.createElement(t,{ref:l},i)}function mi(t,e){let n=({node:i})=>e(i.props,i.props.ref,i),r=u.forwardRef((i,o)=>{let l=u.useContext(Mo);if(!u.useContext(Cu)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,o)}return Ph(t,i,o,"children"in i?i.children:null,null,s=>u.createElement(Mo.Provider,{value:l},u.createElement(n,{node:s})))});return r.displayName=e.name,r}function Dh(t){return au({...t,addIdAndValue:!0})}const Ma=u.createContext(null);function Tl(t){let e=u.useContext(Ma),n=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies),r=t.idScope||(e==null?void 0:e.idScope),i=Dh({...t,idScope:r,dependencies:n});return u.useContext(Wn)&&(i=u.createElement(Th,null,i)),e=u.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),u.createElement(Ma.Provider,{value:e},i)}function Th({children:t}){let e=u.useContext(Wn),n=u.useMemo(()=>u.createElement(Wn.Provider,{value:null},u.createElement(Cu.Provider,{value:!0},t)),[t]);return tr()?u.createElement(Ao.Provider,{value:e},n):At.createPortal(n,e)}const _h=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Ih=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Oh(t){if(Intl.Locale){let n=new Intl.Locale(t).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return _h.has(n.script)}let e=t.split("-")[0];return Ih.has(e)}const kh=Symbol.for("react-aria.i18n.locale");function Su(){let t=typeof window<"u"&&window[kh]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:Oh(t)?"rtl":"ltr"}}let Fo=Su(),Mn=new Set;function La(){Fo=Su();for(let t of Mn)t(Fo)}function Nh(){let t=tr(),[e,n]=u.useState(Fo);return u.useEffect(()=>(Mn.size===0&&window.addEventListener("languagechange",La),Mn.add(n),()=>{Mn.delete(n),Mn.size===0&&window.removeEventListener("languagechange",La)}),[]),t?{locale:"en-US",direction:"ltr"}:e}const Rh=u.createContext(null);function Kt(){let t=Nh();return u.useContext(Rh)||t}var Ze=function(){return Ze=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ze.apply(this,arguments)};function xu(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function Mh(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}const Lh=Symbol.for("react-aria.i18n.locale"),Ah=Symbol.for("react-aria.i18n.strings");let zt;class yi{getStringForLocale(e,n){let i=this.getStringsForLocale(n)[e];if(!i)throw new Error(`Could not find intl message ${e} in ${n} locale`);return i}getStringsForLocale(e){let n=this.strings[e];return n||(n=Fh(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let n=window[Lh];if(zt===void 0){let i=window[Ah];if(!i)return null;zt={};for(let o in i)zt[o]=new yi({[n]:i[o]},n)}let r=zt==null?void 0:zt[e];if(!r)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(e,n="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,r])=>r)),this.defaultLocale=n}}function Fh(t,e,n="en-US"){if(e[t])return e[t];let r=Kh(t);if(e[r])return e[r];for(let i in e)if(i.startsWith(r+"-"))return e[i];return e[n]}function Kh(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const Aa=new Map,Fa=new Map;class jh{format(e,n){let r=this.strings.getStringForLocale(e,this.locale);return typeof r=="function"?r(n,this):r}plural(e,n,r="cardinal"){let i=n["="+e];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,l=Aa.get(o);l||(l=new Intl.PluralRules(this.locale,{type:r}),Aa.set(o,l));let a=l.select(e);return i=n[a]||n.other,typeof i=="function"?i():i}number(e){let n=Fa.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Fa.set(this.locale,n)),n.format(e)}select(e,n){let r=e[n]||e.other;return typeof r=="function"?r():r}constructor(e,n){this.locale=e,this.strings=n}}const Ka=new WeakMap;function Hh(t){let e=Ka.get(t);return e||(e=new yi(t),Ka.set(t,e)),e}function Vh(t,e){return e&&yi.getGlobalDictionaryForPackage(e)||Hh(t)}function wu(t,e){let{locale:n}=Kt(),r=Vh(t,e);return u.useMemo(()=>new jh(n,r),[n,r])}let Ui=new Map;function _l(t){let{locale:e}=Kt(),n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(Ui.has(n))return Ui.get(n);let r=new Intl.Collator(e,t);return Ui.set(n,r),r}function zh(t,e){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:l,onPressUp:a,onPressChange:s,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:f,href:p,target:v,rel:b,type:h="button"}=t,g;n==="button"?g={type:h,disabled:r}:g={role:"button",href:n==="a"&&!r?p:void 0,target:n==="a"?v:void 0,type:n==="input"?h:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?b:void 0};let{pressProps:m,isPressed:C}=hi({onPressStart:o,onPressEnd:l,onPressChange:s,onPress:i,onPressUp:a,onClick:f,isDisabled:r,preventFocusOnPress:c,ref:e}),{focusableProps:S}=yu(t,e);d&&(S.tabIndex=r?-1:S.tabIndex);let P=ie(S,m,fe(t,{labelable:!0}));return{isPressed:C,buttonProps:ie(g,P,{"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"]})}}function Bh(t){const e=Me(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:n,visibility:r}=t.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=t.ownerDocument.defaultView;let{display:l,visibility:a}=o(t);i=l!=="none"&&a!=="hidden"&&a!=="collapse"}return i}function Uh(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 Eu(t,e){return t.nodeName!=="#comment"&&Bh(t)&&Uh(t,e)&&(!t.parentElement||Eu(t.parentElement,t))}const ja=u.createContext(null),Ko="react-aria-focus-scope-restore";let ae=null;function Il(t){let{children:e,contain:n,restoreFocus:r,autoFocus:i}=t,o=u.useRef(null),l=u.useRef(null),a=u.useRef([]),{parentNode:s}=u.useContext(ja)||{},c=u.useMemo(()=>new Ho({scopeRef:a}),[a]);re(()=>{let p=s||he.root;if(he.getTreeNode(p.scopeRef)&&ae&&!Wr(ae,p.scopeRef)){let v=he.getTreeNode(ae);v&&(p=v)}p.addChild(c),he.addNode(c)},[c,s]),re(()=>{let p=he.getTreeNode(a);p&&(p.contain=!!n)},[n]),re(()=>{var p;let v=(p=o.current)===null||p===void 0?void 0:p.nextSibling,b=[],h=g=>g.stopPropagation();for(;v&&v!==l.current;)b.push(v),v.addEventListener(Ko,h),v=v.nextSibling;return a.current=b,()=>{for(let g of b)g.removeEventListener(Ko,h)}},[e]),Yh(a,r,n),Zh(a,n),Xh(a,r,n),qh(a,i),u.useEffect(()=>{const p=Se(le(a.current?a.current[0]:void 0));let v=null;if(Ae(p,a.current)){for(let b of he.traverse())b.scopeRef&&Ae(p,b.scopeRef.current)&&(v=b);v===he.getTreeNode(a)&&(ae=v.scopeRef)}},[a]),re(()=>()=>{var p,v,b;let h=(b=(v=he.getTreeNode(a))===null||v===void 0||(p=v.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&b!==void 0?b:null;(a===ae||Wr(a,ae))&&(!h||he.getTreeNode(h))&&(ae=h),he.removeTreeNode(a)},[a]);let d=u.useMemo(()=>Wh(a),[]),f=u.useMemo(()=>({focusManager:d,parentNode:c}),[c,d]);return u.createElement(ja.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:l}))}function Wh(t){return{focusNext(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var a;let s=r||Se(le((a=n[0])!==null&&a!==void 0?a:void 0)),c=n[0].previousElementSibling,d=xt(n),f=Ge(d,{tabbable:i,accept:l},n);f.currentNode=Ae(s,n)?s:c;let p=f.nextNode();return!p&&o&&(f.currentNode=c,p=f.nextNode()),p&&Qe(p,!0),p},focusPrevious(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var a;let s=r||Se(le((a=n[0])!==null&&a!==void 0?a:void 0)),c=n[n.length-1].nextElementSibling,d=xt(n),f=Ge(d,{tabbable:i,accept:l},n);f.currentNode=Ae(s,n)?s:c;let p=f.previousNode();return!p&&o&&(f.currentNode=c,p=f.previousNode()),p&&Qe(p,!0),p},focusFirst(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=xt(n),l=Ge(o,{tabbable:r,accept:i},n);l.currentNode=n[0].previousElementSibling;let a=l.nextNode();return a&&Qe(a,!0),a},focusLast(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=xt(n),l=Ge(o,{tabbable:r,accept:i},n);l.currentNode=n[n.length-1].nextElementSibling;let a=l.previousNode();return a&&Qe(a,!0),a}}}function xt(t){return t[0].parentElement}function Ln(t){let e=he.getTreeNode(ae);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function Zh(t,e){let n=u.useRef(void 0),r=u.useRef(void 0);re(()=>{let i=t.current;if(!e){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=le(i?i[0]:void 0);let l=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!Ln(t)||c.isComposing)return;let d=Se(o),f=t.current;if(!f||!Ae(d,f))return;let p=xt(f),v=Ge(p,{tabbable:!0},f);if(!d)return;v.currentNode=d;let b=c.shiftKey?v.previousNode():v.nextNode();b||(v.currentNode=c.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,b=c.shiftKey?v.previousNode():v.nextNode()),c.preventDefault(),b&&Qe(b,!0)},a=c=>{(!ae||Wr(ae,t))&&Ae(oe(c),t.current)?(ae=t,n.current=oe(c)):Ln(t)&&!dt(oe(c),t)?n.current?n.current.focus():ae&&ae.current&&jo(ae.current):Ln(t)&&(n.current=oe(c))},s=c=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let d=Br(),f=(d==="virtual"||d===null)&&gl()&&Qc(),p=Se(o);if(!f&&p&&Ln(t)&&!dt(p,t)){ae=t;let b=oe(c);if(b&&b.isConnected){var v;n.current=b,(v=n.current)===null||v===void 0||v.focus()}else ae.current&&jo(ae.current)}})};return o.addEventListener("keydown",l,!1),o.addEventListener("focusin",a,!1),i==null||i.forEach(c=>c.addEventListener("focusin",a,!1)),i==null||i.forEach(c=>c.addEventListener("focusout",s,!1)),()=>{o.removeEventListener("keydown",l,!1),o.removeEventListener("focusin",a,!1),i==null||i.forEach(c=>c.removeEventListener("focusin",a,!1)),i==null||i.forEach(c=>c.removeEventListener("focusout",s,!1))}},[t,e]),re(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function $u(t){return dt(t)}function Ae(t,e){return!t||!e?!1:e.some(n=>n.contains(t))}function dt(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of he.traverse(he.getTreeNode(e)))if(n&&Ae(t,n.current))return!0;return!1}function Gh(t){return dt(t,ae)}function Wr(t,e){var n;let r=(n=he.getTreeNode(e))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===t)return!0;r=r.parent}return!1}function Qe(t,e=!1){if(t!=null&&!e)try{vt(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function Pu(t,e=!0){let n=t[0].previousElementSibling,r=xt(t),i=Ge(r,{tabbable:e},t);i.currentNode=n;let o=i.nextNode();return e&&!o&&(r=xt(t),i=Ge(r,{tabbable:!1},t),i.currentNode=n,o=i.nextNode()),o}function jo(t,e=!0){Qe(Pu(t,e))}function qh(t,e){const n=u.useRef(e);u.useEffect(()=>{if(n.current){ae=t;const r=le(t.current?t.current[0]:void 0);!Ae(Se(r),ae.current)&&t.current&&jo(t.current)}n.current=!1},[t])}function Yh(t,e,n){re(()=>{if(e||n)return;let r=t.current;const i=le(r?r[0]:void 0);let o=l=>{let a=oe(l);Ae(a,t.current)?ae=t:$u(a)||(ae=null)};return i.addEventListener("focusin",o,!1),r==null||r.forEach(l=>l.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r==null||r.forEach(l=>l.removeEventListener("focusin",o,!1))}},[t,e,n])}function Ha(t){let e=he.getTreeNode(ae);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function Xh(t,e,n){const r=u.useRef(typeof document<"u"?Se(le(t.current?t.current[0]:void 0)):null);re(()=>{let i=t.current;const o=le(i?i[0]:void 0);if(!e||n)return;let l=()=>{(!ae||Wr(ae,t))&&Ae(Se(o),t.current)&&(ae=t)};return o.addEventListener("focusin",l,!1),i==null||i.forEach(a=>a.addEventListener("focusin",l,!1)),()=>{o.removeEventListener("focusin",l,!1),i==null||i.forEach(a=>a.removeEventListener("focusin",l,!1))}},[t,n]),re(()=>{const i=le(t.current?t.current[0]:void 0);if(!e)return;let o=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!Ln(t)||l.isComposing)return;let a=i.activeElement;if(!dt(a,t)||!Ha(t))return;let s=he.getTreeNode(t);if(!s)return;let c=s.nodeToRestore,d=Ge(i.body,{tabbable:!0});d.currentNode=a;let f=l.shiftKey?d.previousNode():d.nextNode();if((!c||!c.isConnected||c===i.body)&&(c=void 0,s.nodeToRestore=void 0),(!f||!dt(f,t))&&c){d.currentNode=c;do f=l.shiftKey?d.previousNode():d.nextNode();while(dt(f,t));l.preventDefault(),l.stopPropagation(),f?Qe(f,!0):$u(c)?Qe(c,!0):a.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[t,e,n]),re(()=>{const i=le(t.current?t.current[0]:void 0);if(!e)return;let o=he.getTreeNode(t);if(o){var l;return o.nodeToRestore=(l=r.current)!==null&&l!==void 0?l:void 0,()=>{let a=he.getTreeNode(t);if(!a)return;let s=a.nodeToRestore,c=Se(i);if(e&&s&&(c&&dt(c,t)||c===i.body&&Ha(t))){let d=he.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let f=d.getTreeNode(t);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){Va(f.nodeToRestore);return}f=f.parent}for(f=d.getTreeNode(t);f;){if(f.scopeRef&&f.scopeRef.current&&he.getTreeNode(f.scopeRef)){let p=Pu(f.scopeRef.current,!0);Va(p);return}f=f.parent}}})}}}},[t,e])}function Va(t){t.dispatchEvent(new CustomEvent(Ko,{bubbles:!0,cancelable:!0}))&&Qe(t)}function Ge(t,e,n){let r=e!=null&&e.tabbable?W1:ou,i=(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null,o=le(i),l=y1(o,t||o,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var s;return!(e==null||(s=e.from)===null||s===void 0)&&s.contains(a)?NodeFilter.FILTER_REJECT:r(a)&&Eu(a)&&(!n||Ae(a,n))&&(!(e!=null&&e.accept)||e.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(l.currentNode=e.from),l}class Ol{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,n,r){let i=this.fastMap.get(n??null);if(!i)return;let o=new Ho({scopeRef:e});i.addChild(o),o.parent=i,this.fastMap.set(e,o),r&&(o.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let n=this.fastMap.get(e);if(!n)return;let r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Ae(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(n.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let n of e.children)yield*this.traverse(n)}clone(){var e;let n=new Ol;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(e=i.parent)===null||e===void 0?void 0:e.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Ho({scopeRef:null}),this.fastMap.set(null,this.root)}}class Ho{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 he=new Ol;function Sn(t={}){let{autoFocus:e=!1,isTextInput:n,within:r}=t,i=u.useRef({isFocused:!1,isFocusVisible:e||vn()}),[o,l]=u.useState(!1),[a,s]=u.useState(()=>i.current.isFocused&&i.current.isFocusVisible),c=u.useCallback(()=>s(i.current.isFocused&&i.current.isFocusVisible),[]),d=u.useCallback(v=>{i.current.isFocused=v,l(v),c()},[c]);hh(v=>{i.current.isFocusVisible=v,c()},[],{isTextInput:n});let{focusProps:f}=Pl({isDisabled:r,onFocusChange:d}),{focusWithinProps:p}=vi({isDisabled:!r,onFocusWithinChange:d});return{isFocused:o,isFocusVisible:a,focusProps:r?p:f}}function Jh(t,e){let n=e==null?void 0:e.isDisabled,[r,i]=u.useState(!1);return re(()=>{if(t!=null&&t.current&&!n){let o=()=>{if(t.current){let a=Ge(t.current,{tabbable:!0});i(!!a.nextNode())}};o();let l=new MutationObserver(o);return l.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{l.disconnect()}}}),n?!1:r}function Du(t){let e=t5(le(t));e!==t&&(e&&Qh(e,t),t&&e5(t,e))}function Qh(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function e5(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function t5(t){let e=Se(t),n=e==null?void 0:e.getAttribute("aria-activedescendant");return n&&t.getElementById(n)||e}const Tu=7e3;let Be=null;function za(t,e="assertive",n=Tu){Be?Be.announce(t,e,n):(Be=new n5,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Be.announce(t,e,n):setTimeout(()=>{Be!=null&&Be.isAttached()&&(Be==null||Be.announce(t,e,n))},100))}class n5{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",e),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,n="assertive",r=Tu){var i,o;if(!this.node)return;let l=document.createElement("div");typeof e=="object"?(l.setAttribute("role","img"),l.setAttribute("aria-labelledby",e["aria-labelledby"])):l.textContent=e,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(l):(o=this.politeLog)===null||o===void 0||o.appendChild(l),e!==""&&setTimeout(()=>{l.remove()},r)}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 _u={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Iu={..._u,customError:!0,valid:!1},Dn={isInvalid:!1,validationDetails:_u,validationErrors:[]},r5=u.createContext({}),Ba="__formValidationState"+Date.now();function i5(t){if(t[Ba]){let{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=t[Ba];return{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return o5(t)}function o5(t){let{isInvalid:e,validationState:n,name:r,value:i,builtinValidation:o,validate:l,validationBehavior:a="aria"}=t;n&&(e||(e=n==="invalid"));let s=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:Iu}:null,c=u.useMemo(()=>{if(!l||i==null)return null;let V=l5(l,i);return Ua(V)},[l,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let d=u.useContext(r5),f=u.useMemo(()=>r?Array.isArray(r)?r.flatMap(V=>Vo(d[V])):Vo(d[r]):[],[d,r]),[p,v]=u.useState(d),[b,h]=u.useState(!1);d!==p&&(v(d),h(!1));let g=u.useMemo(()=>Ua(b?[]:f),[b,f]),m=u.useRef(Dn),[C,S]=u.useState(Dn),P=u.useRef(Dn),$=()=>{if(!w)return;E(!1);let V=c||o||m.current;Wi(V,P.current)||(P.current=V,S(V))},[w,E]=u.useState(!1);return u.useEffect($),{realtimeValidation:s||g||c||o||Dn,displayValidation:a==="native"?s||g||C:s||g||c||o||C,updateValidation(V){a==="aria"&&!Wi(C,V)?S(V):m.current=V},resetValidation(){let V=Dn;Wi(V,P.current)||(P.current=V,S(V)),a==="native"&&E(!1),h(!0)},commitValidation(){a==="native"&&E(!0),h(!0)}}}function Vo(t){return t?Array.isArray(t)?t:[t]:[]}function l5(t,e){if(typeof t=="function"){let n=t(e);if(n&&typeof n!="boolean")return Vo(n)}return[]}function Ua(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:Iu}:null}function Wi(t,e){return t===e?!0:!!t&&!!e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((n,r)=>n===e.validationErrors[r])&&Object.entries(t.validationDetails).every(([n,r])=>e.validationDetails[n]===r)}function a5(t,e,n){let{validationBehavior:r,focus:i}=t;re(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let s=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(s),n.current.hasAttribute("title")||(n.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(c5(n.current))}});let o=pe(()=>{e.resetValidation()}),l=pe(s=>{var c;e.displayValidation.isInvalid||e.commitValidation();let d=n==null||(c=n.current)===null||c===void 0?void 0:c.form;if(!s.defaultPrevented&&n&&d&&u5(d)===n.current){var f;i?i():(f=n.current)===null||f===void 0||f.focus(),gu("keyboard")}s.preventDefault()}),a=pe(()=>{e.commitValidation()});u.useEffect(()=>{let s=n==null?void 0:n.current;if(!s)return;let c=s.form;return s.addEventListener("invalid",l),s.addEventListener("change",a),c==null||c.addEventListener("reset",o),()=>{s.removeEventListener("invalid",l),s.removeEventListener("change",a),c==null||c.removeEventListener("reset",o)}},[n,l,a,o,r])}function s5(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 c5(t){return{isInvalid:!t.validity.valid,validationDetails:s5(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function u5(t){for(let e=0;e<t.elements.length;e++){let n=t.elements[e];if(!n.validity.valid)return n}return null}function Ou(t){let{id:e,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=t;e=xe(e);let l=xe(),a={};n?(r=r?`${l} ${r}`:l,a={id:l,htmlFor:o==="label"?e:void 0}):!r&&!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=ui({id:e,"aria-label":i,"aria-labelledby":r});return{labelProps:a,fieldProps:s}}function d5(t){let{description:e,errorMessage:n,isInvalid:r,validationState:i}=t,{labelProps:o,fieldProps:l}=Ou(t),a=ft([!!e,!!n,r,i]),s=ft([!!e,!!n,r,i]);return l=ie(l,{"aria-describedby":[a,s,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:l,descriptionProps:{id:a},errorMessageProps:{id:s}}}const Wa={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 ku(t={}){let{style:e,isFocusable:n}=t,[r,i]=u.useState(!1),{focusWithinProps:o}=vi({isDisabled:!n,onFocusWithinChange:a=>i(a)}),l=u.useMemo(()=>r?e:e?{...Wa,...e}:Wa,[r]);return{visuallyHiddenProps:{...o,style:l}}}function f5(t){let{children:e,elementType:n="div",isFocusable:r,style:i,...o}=t,{visuallyHiddenProps:l}=ku(t);return u.createElement(n,ie(o,l),e)}const qe={top:"top",bottom:"top",left:"left",right:"left"},Zr={top:"bottom",bottom:"top",left:"right",right:"left"},h5={top:"left",left:"top"},zo={top:"height",left:"width"},Nu={width:"totalWidth",height:"totalHeight"},fr={};let ve=typeof document<"u"?window.visualViewport:null;function Za(t){let e=0,n=0,r=0,i=0,o=0,l=0,a={};var s;let c=((s=ve==null?void 0:ve.scale)!==null&&s!==void 0?s:1)>1;if(t.tagName==="BODY"){let b=document.documentElement;r=b.clientWidth,i=b.clientHeight;var d;e=(d=ve==null?void 0:ve.width)!==null&&d!==void 0?d:r;var f;n=(f=ve==null?void 0:ve.height)!==null&&f!==void 0?f:i,a.top=b.scrollTop||t.scrollTop,a.left=b.scrollLeft||t.scrollLeft,ve&&(o=ve.offsetTop,l=ve.offsetLeft)}else({width:e,height:n,top:o,left:l}=un(t)),a.top=t.scrollTop,a.left=t.scrollLeft,r=e,i=n;if(vl()&&(t.tagName==="BODY"||t.tagName==="HTML")&&c){a.top=0,a.left=0;var p;o=(p=ve==null?void 0:ve.pageTop)!==null&&p!==void 0?p:0;var v;l=(v=ve==null?void 0:ve.pageLeft)!==null&&v!==void 0?v:0}return{width:e,height:n,totalWidth:r,totalHeight:i,scroll:a,top:o,left:l}}function p5(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function Ga(t,e,n,r,i,o,l){var a;let s=(a=i.scroll[t])!==null&&a!==void 0?a:0,c=r[zo[t]],d=r.scroll[qe[t]]+o,f=c+r.scroll[qe[t]]-o,p=e-s+l[t]-r[qe[t]],v=e-s+n+l[t]-r[qe[t]];return p<d?d-p:v>f?Math.max(f-v,d-p):0}function v5(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 qa(t){if(fr[t])return fr[t];let[e,n]=t.split(" "),r=qe[e]||"right",i=h5[r];qe[n]||(n="center");let o=zo[r],l=zo[i];return fr[t]={placement:e,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:l},fr[t]}function Zi(t,e,n,r,i,o,l,a,s,c){let{placement:d,crossPlacement:f,axis:p,crossAxis:v,size:b,crossSize:h}=r,g={};var m;g[v]=(m=t[v])!==null&&m!==void 0?m:0;var C,S,P,$;f==="center"?g[v]+=(((C=t[h])!==null&&C!==void 0?C:0)-((S=n[h])!==null&&S!==void 0?S:0))/2:f!==v&&(g[v]+=((P=t[h])!==null&&P!==void 0?P:0)-(($=n[h])!==null&&$!==void 0?$:0)),g[v]+=o;const w=t[v]-n[h]+s+c,E=t[v]+t[h]-s-c;if(g[v]=Io(g[v],w,E),d===p){const R=a?l[b]:e[Nu[b]];g[Zr[p]]=Math.floor(R-t[p]+i)}else g[p]=Math.floor(t[p]+t[b]+i);return g}function g5(t,e,n,r,i,o,l,a){const s=r?n.height:e[Nu.height];var c;let d=t.top!=null?n.top+t.top:n.top+(s-((c=t.bottom)!==null&&c!==void 0?c:0)-l);var f,p,v,b,h,g;let m=a!=="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)+((v=i.bottom)!==null&&v!==void 0?v:0)+o)):Math.max(0,d+l-(e.top+((b=e.scroll.top)!==null&&b!==void 0?b:0))-(((h=i.top)!==null&&h!==void 0?h:0)+((g=i.bottom)!==null&&g!==void 0?g:0)+o));return Math.min(e.height-o*2,m)}function Ya(t,e,n,r,i,o){let{placement:l,axis:a,size:s}=o;var c,d;if(l===a)return Math.max(0,n[a]-t[a]-((c=t.scroll[a])!==null&&c!==void 0?c:0)+e[a]-((d=r[a])!==null&&d!==void 0?d:0)-r[Zr[a]]-i);var f;return Math.max(0,t[s]+t[a]+t.scroll[a]-e[a]-n[a]-n[s]-((f=r[a])!==null&&f!==void 0?f:0)-r[Zr[a]]-i)}function m5(t,e,n,r,i,o,l,a,s,c,d,f,p,v,b,h){let g=qa(t),{size:m,crossAxis:C,crossSize:S,placement:P,crossPlacement:$}=g,w=Zi(e,a,n,g,d,f,c,p,b,h),E=d,R=Ya(a,c,e,i,o+d,g);if(l&&r[m]>R){let H=qa(`${Zr[P]} ${$}`),K=Zi(e,a,n,H,d,f,c,p,b,h);Ya(a,c,e,i,o+d,H)>R&&(g=H,w=K,E=d)}let F="bottom";g.axis==="top"?g.placement==="top"?F="top":g.placement==="bottom"&&(F="bottom"):g.crossAxis==="top"&&(g.crossPlacement==="top"?F="bottom":g.crossPlacement==="bottom"&&(F="top"));let V=Ga(C,w[C],n[S],a,s,o,c);w[C]+=V;let x=g5(w,a,c,p,i,o,n.height,F);v&&v<x&&(x=v),n.height=Math.min(n.height,x),w=Zi(e,a,n,g,E,f,c,p,b,h),V=Ga(C,w[C],n[S],a,s,o,c),w[C]+=V;let M={},U=e[C]+.5*e[S]-w[C]-i[qe[C]];const A=b/2+h;var B,_,N,k;const Z=qe[C]==="left"?((B=i.left)!==null&&B!==void 0?B:0)+((_=i.right)!==null&&_!==void 0?_:0):((N=i.top)!==null&&N!==void 0?N:0)+((k=i.bottom)!==null&&k!==void 0?k:0),I=n[S]-Z-b/2-h,L=e[C]+b/2-(w[C]+i[qe[C]]),T=e[C]+e[S]-b/2-(w[C]+i[qe[C]]),O=Io(U,L,T);return M[C]=Io(O,A,I),{position:w,maxHeight:x,arrowOffsetLeft:M.left,arrowOffsetTop:M.top,placement:g.placement}}function y5(t){let{placement:e,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:l,boundaryElement:a,offset:s,crossOffset:c,maxHeight:d,arrowSize:f=0,arrowBoundaryOffset:p=0}=t,v=r instanceof HTMLElement?b5(r):document.documentElement,b=v===document.documentElement;const h=window.getComputedStyle(v).position;let g=!!h&&h!=="static",m=b?un(n):Xa(n,v);if(!b){let{marginTop:M,marginLeft:U}=window.getComputedStyle(n);m.top+=parseInt(M,10)||0,m.left+=parseInt(U,10)||0}let C=un(r),S=v5(r);var P,$;C.width+=((P=S.left)!==null&&P!==void 0?P:0)+(($=S.right)!==null&&$!==void 0?$:0);var w,E;C.height+=((w=S.top)!==null&&w!==void 0?w:0)+((E=S.bottom)!==null&&E!==void 0?E:0);let R=p5(i),F=Za(a),V=Za(v),x=a.tagName==="BODY"?un(v):Xa(v,a);return v.tagName==="HTML"&&a.tagName==="BODY"&&(V.scroll.top=0,V.scroll.left=0),m5(e,m,C,R,S,o,l,F,V,x,s,c,g,d,f,p)}function un(t){let{top:e,left:n,width:r,height:i}=t.getBoundingClientRect(),{scrollTop:o,scrollLeft:l,clientTop:a,clientLeft:s}=document.documentElement;return{top:e+o-a,left:n+l-s,width:r,height:i}}function Xa(t,e){let n=window.getComputedStyle(t),r;if(n.position==="fixed"){let{top:i,left:o,width:l,height:a}=t.getBoundingClientRect();r={top:i,left:o,width:l,height:a}}else{r=un(t);let i=un(e),o=window.getComputedStyle(e);i.top+=(parseInt(o.borderTopWidth,10)||0)-e.scrollTop,i.left+=(parseInt(o.borderLeftWidth,10)||0)-e.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function b5(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!Ja(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!Ja(e);)e=e.parentElement;return e||document.documentElement}function Ja(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 Ru=new WeakMap;function C5(t){let{triggerRef:e,isOpen:n,onClose:r}=t;u.useEffect(()=>{if(!n||r===null)return;let i=o=>{let l=o.target;if(!e.current||l instanceof Node&&!l.contains(e.current)||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement)return;let a=r||Ru.get(e.current);a&&a()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,e])}let de=typeof document<"u"?window.visualViewport:null;function S5(t){let{direction:e}=Kt(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:o=i,placement:l="bottom",containerPadding:a=12,shouldFlip:s=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:v=!0,onClose:b,maxHeight:h,arrowBoundaryOffset:g=0}=t,[m,C]=u.useState(null),S=[p,l,i.current,r.current,o.current,a,s,c,d,f,v,e,h,g,n],P=u.useRef(de==null?void 0:de.scale);u.useEffect(()=>{v&&(P.current=de==null?void 0:de.scale)},[v]);let $=u.useCallback(()=>{if(p===!1||!v||!i.current||!r.current||!c||(de==null?void 0:de.scale)!==P.current)return;let V=null;if(o.current&&o.current.contains(document.activeElement)){var x;let k=(x=document.activeElement)===null||x===void 0?void 0:x.getBoundingClientRect(),Z=o.current.getBoundingClientRect();var M;if(V={type:"top",offset:((M=k==null?void 0:k.top)!==null&&M!==void 0?M:0)-Z.top},V.offset>Z.height/2){V.type="bottom";var U;V.offset=((U=k==null?void 0:k.bottom)!==null&&U!==void 0?U:0)-Z.bottom}}let A=i.current;if(!h&&i.current){var B;A.style.top="0px",A.style.bottom="";var _;A.style.maxHeight=((_=(B=window.visualViewport)===null||B===void 0?void 0:B.height)!==null&&_!==void 0?_:window.innerHeight)+"px"}let N=y5({placement:w5(l,e),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:a,shouldFlip:s,boundaryElement:c,offset:d,crossOffset:f,maxHeight:h,arrowSize:n,arrowBoundaryOffset:g});if(N.position){if(A.style.top="",A.style.bottom="",A.style.left="",A.style.right="",Object.keys(N.position).forEach(k=>A.style[k]=N.position[k]+"px"),A.style.maxHeight=N.maxHeight!=null?N.maxHeight+"px":"",V&&document.activeElement&&o.current){let k=document.activeElement.getBoundingClientRect(),Z=o.current.getBoundingClientRect(),I=k[V.type]-Z[V.type];o.current.scrollTop+=I-V.offset}C(N)}},S);re($,S),x5($),To({ref:i,onResize:$}),To({ref:r,onResize:$});let w=u.useRef(!1);re(()=>{let V,x=()=>{w.current=!0,clearTimeout(V),V=setTimeout(()=>{w.current=!1},500),$()},M=()=>{w.current&&x()};return de==null||de.addEventListener("resize",x),de==null||de.addEventListener("scroll",M),()=>{de==null||de.removeEventListener("resize",x),de==null||de.removeEventListener("scroll",M)}},[$]);let E=u.useCallback(()=>{w.current||b==null||b()},[b,w]);C5({triggerRef:r,isOpen:v,onClose:b&&E});var R,F;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...m==null?void 0:m.position,maxHeight:(R=m==null?void 0:m.maxHeight)!==null&&R!==void 0?R:"100vh"}},placement:(F=m==null?void 0:m.placement)!==null&&F!==void 0?F:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:m==null?void 0:m.arrowOffsetLeft,top:m==null?void 0:m.arrowOffsetTop}},updatePosition:$}}function x5(t){re(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function w5(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}const Ue=[];function E5(t,e){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:a}=t;u.useEffect(()=>{if(i&&!Ue.includes(e))return Ue.push(e),()=>{let b=Ue.indexOf(e);b>=0&&Ue.splice(b,1)}},[i,e]);let s=()=>{Ue[Ue.length-1]===e&&n&&n()},c=b=>{(!a||a(b.target))&&Ue[Ue.length-1]===e&&(b.stopPropagation(),b.preventDefault())},d=b=>{(!a||a(b.target))&&(Ue[Ue.length-1]===e&&(b.stopPropagation(),b.preventDefault()),s())},f=b=>{b.key==="Escape"&&!l&&!b.nativeEvent.isComposing&&(b.stopPropagation(),b.preventDefault(),s())};mh({ref:e,onInteractOutside:o&&i?d:void 0,onInteractOutsideStart:c});let{focusWithinProps:p}=vi({isDisabled:!r,onBlurWithin:b=>{!b.relatedTarget||Gh(b.relatedTarget)||(!a||a(b.relatedTarget))&&(n==null||n())}}),v=b=>{b.target===b.currentTarget&&b.preventDefault()};return{overlayProps:{onKeyDown:f,...p},underlayProps:{onPointerDown:v}}}function $5(t,e,n){let{type:r}=t,{isOpen:i}=e;u.useEffect(()=>{n&&n.current&&Ru.set(n.current,e.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let l=xe();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?l:void 0,onPress:e.toggle},overlayProps:{id:l}}}const Gi=typeof document<"u"&&window.visualViewport,P5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let hr=0,qi;function D5(t={}){let{isDisabled:e}=t;re(()=>{if(!e)return hr++,hr===1&&(ai()?qi=_5():qi=T5()),()=>{hr--,hr===0&&qi()}},[e])}function T5(){let t=window.innerWidth-document.documentElement.clientWidth;return Tt(t>0&&("scrollbarGutter"in document.documentElement.style?wt(document.documentElement,"scrollbarGutter","stable"):wt(document.documentElement,"paddingRight",`${t}px`)),wt(document.documentElement,"overflow","hidden"))}function _5(){let t,e,n=c=>{t=nu(c.target,!0),!(t===document.documentElement&&t===document.body)&&t instanceof HTMLElement&&window.getComputedStyle(t).overscrollBehavior==="auto"&&(e=wt(t,"overscrollBehavior","contain"))},r=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;I5(d)&&(a(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",Gi&&(Gi.height<window.innerHeight?requestAnimationFrame(()=>{Qa(d)}):Gi.addEventListener("resize",()=>Qa(d),{once:!0}))}))},l=null,a=()=>{if(l)return;let c=()=>{window.scrollTo(0,0)},d=window.pageXOffset,f=window.pageYOffset;l=Tt(Tn(window,"scroll",c),wt(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),wt(document.documentElement,"overflow","hidden"),wt(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(d,f)}),window.scrollTo(0,0)},s=Tt(Tn(document,"touchstart",n,{passive:!1,capture:!0}),Tn(document,"touchmove",r,{passive:!1,capture:!0}),Tn(document,"touchend",i,{passive:!1,capture:!0}),Tn(document,"focus",o,!0));return()=>{e==null||e(),l==null||l(),s()}}function wt(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function Tn(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function Qa(t){let e=document.scrollingElement||document.documentElement,n=t;for(;n&&n!==e;){let r=nu(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect().top,o=n.getBoundingClientRect().top;o>i+n.clientHeight&&(r.scrollTop+=o-i)}n=r.parentElement}}function I5(t){return t instanceof HTMLInputElement&&!P5.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}const O5=u.createContext({});function k5(){var t;return(t=u.useContext(O5))!==null&&t!==void 0?t:{}}var Mu={};Mu={dismiss:"تجاهل"};var Lu={};Lu={dismiss:"Отхвърляне"};var Au={};Au={dismiss:"Odstranit"};var Fu={};Fu={dismiss:"Luk"};var Ku={};Ku={dismiss:"Schließen"};var ju={};ju={dismiss:"Απόρριψη"};var Hu={};Hu={dismiss:"Dismiss"};var Vu={};Vu={dismiss:"Descartar"};var zu={};zu={dismiss:"Lõpeta"};var Bu={};Bu={dismiss:"Hylkää"};var Uu={};Uu={dismiss:"Rejeter"};var Wu={};Wu={dismiss:"התעלם"};var Zu={};Zu={dismiss:"Odbaci"};var Gu={};Gu={dismiss:"Elutasítás"};var qu={};qu={dismiss:"Ignora"};var Yu={};Yu={dismiss:"閉じる"};var Xu={};Xu={dismiss:"무시"};var Ju={};Ju={dismiss:"Atmesti"};var Qu={};Qu={dismiss:"Nerādīt"};var e0={};e0={dismiss:"Lukk"};var t0={};t0={dismiss:"Negeren"};var n0={};n0={dismiss:"Zignoruj"};var r0={};r0={dismiss:"Descartar"};var i0={};i0={dismiss:"Dispensar"};var o0={};o0={dismiss:"Revocare"};var l0={};l0={dismiss:"Пропустить"};var a0={};a0={dismiss:"Zrušiť"};var s0={};s0={dismiss:"Opusti"};var c0={};c0={dismiss:"Odbaci"};var u0={};u0={dismiss:"Avvisa"};var d0={};d0={dismiss:"Kapat"};var f0={};f0={dismiss:"Скасувати"};var h0={};h0={dismiss:"取消"};var p0={};p0={dismiss:"關閉"};var v0={};v0={"ar-AE":Mu,"bg-BG":Lu,"cs-CZ":Au,"da-DK":Fu,"de-DE":Ku,"el-GR":ju,"en-US":Hu,"es-ES":Vu,"et-EE":zu,"fi-FI":Bu,"fr-FR":Uu,"he-IL":Wu,"hr-HR":Zu,"hu-HU":Gu,"it-IT":qu,"ja-JP":Yu,"ko-KR":Xu,"lt-LT":Ju,"lv-LV":Qu,"nb-NO":e0,"nl-NL":t0,"pl-PL":n0,"pt-BR":r0,"pt-PT":i0,"ro-RO":o0,"ru-RU":l0,"sk-SK":a0,"sl-SI":s0,"sr-SP":c0,"sv-SE":u0,"tr-TR":d0,"uk-UA":f0,"zh-CN":h0,"zh-TW":p0};function N5(t){return t&&t.__esModule?t.default:t}function es(t){let{onDismiss:e,...n}=t,r=wu(N5(v0),"@react-aria/overlays"),i=ui(n,r.format("dismiss")),o=()=>{e&&e()};return u.createElement(f5,null,u.createElement("button",{...i,tabIndex:-1,onClick:o,style:{width:1,height:1}}))}let _n=new WeakMap,Pe=[];function R5(t,e=document.body){let n=new Set(t),r=new Set,i=s=>{for(let p of s.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(p);let c=p=>{if(n.has(p)||p.parentElement&&r.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let v of n)if(p.contains(v))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),f=c(s);if(f===NodeFilter.FILTER_ACCEPT&&o(s),f!==NodeFilter.FILTER_REJECT){let p=d.nextNode();for(;p!=null;)o(p),p=d.nextNode()}},o=s=>{var c;let d=(c=_n.get(s))!==null&&c!==void 0?c:0;s.getAttribute("aria-hidden")==="true"&&d===0||(d===0&&s.setAttribute("aria-hidden","true"),r.add(s),_n.set(s,d+1))};Pe.length&&Pe[Pe.length-1].disconnect(),i(e);let l=new MutationObserver(s=>{for(let c of s)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...n,...r].some(d=>d.contains(c.target))){for(let d of c.removedNodes)d instanceof Element&&(n.delete(d),r.delete(d));for(let d of c.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?n.add(d):d instanceof Element&&i(d)}});l.observe(e,{childList:!0,subtree:!0});let a={visibleNodes:n,hiddenNodes:r,observe(){l.observe(e,{childList:!0,subtree:!0})},disconnect(){l.disconnect()}};return Pe.push(a),()=>{l.disconnect();for(let s of r){let c=_n.get(s);c!=null&&(c===1?(s.removeAttribute("aria-hidden"),_n.delete(s)):_n.set(s,c-1))}a===Pe[Pe.length-1]?(Pe.pop(),Pe.length&&Pe[Pe.length-1].observe()):Pe.splice(Pe.indexOf(a),1)}}function M5(t){let e=Pe[Pe.length-1];if(e&&!e.visibleNodes.has(t))return e.visibleNodes.add(t),()=>{e.visibleNodes.delete(t)}}function L5(t,e){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:o,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a,...s}=t,c=s.trigger==="SubmenuTrigger",{overlayProps:d,underlayProps:f}=E5({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!o||c,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a},i??r),{overlayProps:p,arrowProps:v,placement:b}=S5({...s,targetRef:n,overlayRef:r,isOpen:e.isOpen,onClose:o&&!c?e.close:null});return D5({isDisabled:o||!e.isOpen}),re(()=>{if(e.isOpen&&r.current){var h,g;return o?M5((h=i==null?void 0:i.current)!==null&&h!==void 0?h:r.current):R5([(g=i==null?void 0:i.current)!==null&&g!==void 0?g:r.current])}},[o,e.isOpen,r,i]),{popoverProps:ie(d,p),arrowProps:v,underlayProps:f,placement:b}}const g0=u.createContext(null);function ts(t){let e=tr(),{portalContainer:n=e?null:document.body,isExiting:r}=t,[i,o]=u.useState(!1),l=u.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:a}=k5();if(!t.portalContainer&&a&&(n=a()),!n)return null;let s=t.children;return t.disableFocusManagement||(s=u.createElement(Il,{restoreFocus:!0,contain:(t.shouldContainFocus||i)&&!r},s)),s=u.createElement(g0.Provider,{value:l},u.createElement(vh,null,s)),At.createPortal(s,n)}function A5(){let t=u.useContext(g0),e=t==null?void 0:t.setContain;re(()=>{e==null||e(!0)},[e])}const kl=new WeakMap;function F5(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function K5(t,e){let n=kl.get(t);if(!n)throw new Error("Unknown list");return`${n.id}-option-${F5(e)}`}function Bo(t){return D1()?t.altKey:t.ctrlKey}function Dr(t,e){var n,r;let i=`[data-key="${CSS.escape(String(e))}"]`,o=(n=t.current)===null||n===void 0?void 0:n.dataset.collection;return o&&(i=`[data-collection="${CSS.escape(o)}"]${i}`),(r=t.current)===null||r===void 0?void 0:r.querySelector(i)}const m0=new WeakMap;function j5(t){let e=xe();return m0.set(t,e),e}function H5(t){return m0.get(t)}const V5=1e3;function y0(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:r}=t,i=u.useRef({search:"",timeout:void 0}).current,o=l=>{let a=z5(l.key);if(!(!a||l.ctrlKey||l.metaKey||!l.currentTarget.contains(l.target))){if(a===" "&&i.search.trim().length>0&&(l.preventDefault(),"continuePropagation"in l||l.stopPropagation()),i.search+=a,e.getKeyForSearch!=null){let s=e.getKeyForSearch(i.search,n.focusedKey);s==null&&(s=e.getKeyForSearch(i.search)),s!=null&&(n.setFocusedKey(s),r&&r(s))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},V5)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?o:void 0}}}function z5(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function b0(t){let{selectionManager:e,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:l=!1,disallowSelectAll:a=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:c=e.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:p=!1,isVirtualized:v,scrollRef:b=r,linkBehavior:h="action"}=t,{direction:g}=Kt(),m=si(),C=N=>{var k;if(N.altKey&&N.key==="Tab"&&N.preventDefault(),!(!((k=r.current)===null||k===void 0)&&k.contains(N.target)))return;const Z=(G,te)=>{if(G!=null){if(e.isLink(G)&&h==="selection"&&c&&!Bo(N)){At.flushSync(()=>{e.setFocusedKey(G,te)});let ue=Dr(r,G),ee=e.getItemProps(G);ue&&m.open(ue,N,ee.href,ee.routerOptions);return}if(e.setFocusedKey(G,te),e.isLink(G)&&h==="override")return;N.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(G):c&&!Bo(N)&&e.replaceSelection(G)}};switch(N.key){case"ArrowDown":if(n.getKeyBelow){var I,L,T;let G=e.focusedKey!=null?(I=n.getKeyBelow)===null||I===void 0?void 0:I.call(n,e.focusedKey):(L=n.getFirstKey)===null||L===void 0?void 0:L.call(n);G==null&&o&&(G=(T=n.getFirstKey)===null||T===void 0?void 0:T.call(n,e.focusedKey)),G!=null&&(N.preventDefault(),Z(G))}break;case"ArrowUp":if(n.getKeyAbove){var O,H,K;let G=e.focusedKey!=null?(O=n.getKeyAbove)===null||O===void 0?void 0:O.call(n,e.focusedKey):(H=n.getLastKey)===null||H===void 0?void 0:H.call(n);G==null&&o&&(G=(K=n.getLastKey)===null||K===void 0?void 0:K.call(n,e.focusedKey)),G!=null&&(N.preventDefault(),Z(G))}break;case"ArrowLeft":if(n.getKeyLeftOf){var j,z,W;let G=e.focusedKey!=null?(j=n.getKeyLeftOf)===null||j===void 0?void 0:j.call(n,e.focusedKey):null;G==null&&o&&(G=g==="rtl"?(z=n.getFirstKey)===null||z===void 0?void 0:z.call(n,e.focusedKey):(W=n.getLastKey)===null||W===void 0?void 0:W.call(n,e.focusedKey)),G!=null&&(N.preventDefault(),Z(G,g==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var q,X,ce;let G=e.focusedKey!=null?(q=n.getKeyRightOf)===null||q===void 0?void 0:q.call(n,e.focusedKey):null;G==null&&o&&(G=g==="rtl"?(X=n.getLastKey)===null||X===void 0?void 0:X.call(n,e.focusedKey):(ce=n.getFirstKey)===null||ce===void 0?void 0:ce.call(n,e.focusedKey)),G!=null&&(N.preventDefault(),Z(G,g==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(e.focusedKey===null&&N.shiftKey)return;N.preventDefault();let G=n.getFirstKey(e.focusedKey,tn(N));e.setFocusedKey(G),G!=null&&(tn(N)&&N.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(G):c&&e.replaceSelection(G))}break;case"End":if(n.getLastKey){if(e.focusedKey===null&&N.shiftKey)return;N.preventDefault();let G=n.getLastKey(e.focusedKey,tn(N));e.setFocusedKey(G),G!=null&&(tn(N)&&N.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(G):c&&e.replaceSelection(G))}break;case"PageDown":if(n.getKeyPageBelow&&e.focusedKey!=null){let G=n.getKeyPageBelow(e.focusedKey);G!=null&&(N.preventDefault(),Z(G))}break;case"PageUp":if(n.getKeyPageAbove&&e.focusedKey!=null){let G=n.getKeyPageAbove(e.focusedKey);G!=null&&(N.preventDefault(),Z(G))}break;case"a":tn(N)&&e.selectionMode==="multiple"&&a!==!0&&(N.preventDefault(),e.selectAll());break;case"Escape":s==="clearSelection"&&!l&&e.selectedKeys.size!==0&&(N.stopPropagation(),N.preventDefault(),e.clearSelection());break;case"Tab":if(!p){if(N.shiftKey)r.current.focus();else{let G=Ge(r.current,{tabbable:!0}),te,ue;do ue=G.lastChild(),ue&&(te=ue);while(ue);te&&!te.contains(document.activeElement)&&Ve(te)}break}}},S=u.useRef({top:0,left:0});ar(b,"scroll",v?void 0:()=>{var N,k,Z,I;S.current={top:(Z=(N=b.current)===null||N===void 0?void 0:N.scrollTop)!==null&&Z!==void 0?Z:0,left:(I=(k=b.current)===null||k===void 0?void 0:k.scrollLeft)!==null&&I!==void 0?I:0}});let P=N=>{if(e.isFocused){N.currentTarget.contains(N.target)||e.setFocused(!1);return}if(N.currentTarget.contains(N.target)){if(e.setFocused(!0),e.focusedKey==null){var k,Z;let T=H=>{H!=null&&(e.setFocusedKey(H),c&&!e.isSelected(H)&&e.replaceSelection(H))},O=N.relatedTarget;var I,L;O&&N.currentTarget.compareDocumentPosition(O)&Node.DOCUMENT_POSITION_FOLLOWING?T((I=e.lastSelectedKey)!==null&&I!==void 0?I:(k=n.getLastKey)===null||k===void 0?void 0:k.call(n)):T((L=e.firstSelectedKey)!==null&&L!==void 0?L:(Z=n.getFirstKey)===null||Z===void 0?void 0:Z.call(n))}else!v&&b.current&&(b.current.scrollTop=S.current.top,b.current.scrollLeft=S.current.left);if(e.focusedKey!=null&&b.current){let T=Dr(r,e.focusedKey);T instanceof HTMLElement&&(!T.contains(document.activeElement)&&!f&&Ve(T),Br()==="keyboard"&&ba(T,{containingElement:r.current}))}}},$=N=>{N.currentTarget.contains(N.relatedTarget)||e.setFocused(!1)},w=u.useRef(!1);ar(r,H1,f?N=>{let{detail:k}=N;N.stopPropagation(),e.setFocused(!0),(k==null?void 0:k.focusStrategy)==="first"&&(w.current=!0)}:void 0);let E=pe(()=>{var N,k;let Z=(k=(N=n.getFirstKey)===null||N===void 0?void 0:N.call(n))!==null&&k!==void 0?k:null;Z==null?(Du(r.current),e.collection.size>0&&(w.current=!1)):(e.setFocusedKey(Z),w.current=!1)});ma(()=>{w.current&&E()},[e.collection,E]);let R=pe(()=>{e.collection.size>0&&(w.current=!1)});ma(()=>{R()},[e.focusedKey,R]),ar(r,j1,f?N=>{var k;N.stopPropagation(),e.setFocused(!1),!((k=N.detail)===null||k===void 0)&&k.clearFocusKey&&e.setFocusedKey(null)}:void 0);const F=u.useRef(i),V=u.useRef(!1);u.useEffect(()=>{if(F.current){var N,k;let L=null;var Z;i==="first"&&(L=(Z=(N=n.getFirstKey)===null||N===void 0?void 0:N.call(n))!==null&&Z!==void 0?Z:null);var I;i==="last"&&(L=(I=(k=n.getLastKey)===null||k===void 0?void 0:k.call(n))!==null&&I!==void 0?I:null);let T=e.selectedKeys;if(T.size){for(let O of T)if(e.canSelectItem(O)){L=O;break}}e.setFocused(!0),e.setFocusedKey(L),L==null&&!f&&r.current&&vt(r.current),e.collection.size>0&&(F.current=!1,V.current=!0)}});let x=u.useRef(e.focusedKey),M=u.useRef(null);u.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==x.current||V.current)&&b.current&&r.current){let N=Br(),k=Dr(r,e.focusedKey);if(!(k instanceof HTMLElement))return;(N==="keyboard"||V.current)&&(M.current&&cancelAnimationFrame(M.current),M.current=requestAnimationFrame(()=>{b.current&&(ru(b.current,k),N!=="virtual"&&ba(k,{containingElement:r.current}))}))}!f&&e.isFocused&&e.focusedKey==null&&x.current!=null&&r.current&&vt(r.current),x.current=e.focusedKey,V.current=!1}),u.useEffect(()=>()=>{M.current&&cancelAnimationFrame(M.current)},[]),ar(r,"react-aria-focus-scope-restore",N=>{N.preventDefault(),e.setFocused(!0)});let U={onKeyDown:C,onFocus:P,onBlur:$,onMouseDown(N){b.current===N.target&&N.preventDefault()}},{typeSelectProps:A}=y0({keyboardDelegate:n,selectionManager:e});d||(U=ie(A,U));let B;f||(B=e.focusedKey==null?0:-1);let _=j5(e.collection);return{collectionProps:ie(U,{tabIndex:B,"data-collection":_})}}function Nl(t){let{id:e,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:l,focus:a,isDisabled:s,onAction:c,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=t,p=si();e=xe(e);let v=k=>{if(k.pointerType==="keyboard"&&Bo(k))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(f==="selection"&&i.current){let Z=n.getItemProps(r);p.open(i.current,k,Z.href,Z.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(f==="override"||f==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):k&&k.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||k&&(tn(k)||k.pointerType==="touch"||k.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};u.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(l?Du(i.current):a?a():document.activeElement!==i.current&&i.current&&vt(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,l]),s=s||n.isDisabled(r);let b={};!l&&!s?b={tabIndex:r===n.focusedKey?0:-1,onFocus(k){k.target===i.current&&n.setFocusedKey(r)}}:s&&(b.onMouseDown=k=>{k.preventDefault()});let h=n.isLink(r)&&f==="override",g=n.isLink(r)&&f!=="selection"&&f!=="none",m=!s&&n.canSelectItem(r)&&!h,C=(c||g)&&!s,S=C&&(n.selectionBehavior==="replace"?!m:!m||n.isEmpty),P=C&&m&&n.selectionBehavior==="replace",$=S||P,w=u.useRef(null),E=$&&m,R=u.useRef(!1),F=u.useRef(!1),V=k=>{if(c&&c(),g&&i.current){let Z=n.getItemProps(r);p.open(i.current,k,Z.href,Z.routerOptions)}},x={ref:i};o?(x.onPressStart=k=>{w.current=k.pointerType,R.current=E,k.pointerType==="keyboard"&&(!$||rs())&&v(k)},d?(x.onPressUp=S?void 0:k=>{k.pointerType==="mouse"&&m&&v(k)},x.onPress=S?V:k=>{k.pointerType!=="keyboard"&&k.pointerType!=="mouse"&&m&&v(k)}):x.onPress=k=>{if(S||P&&k.pointerType!=="mouse"){if(k.pointerType==="keyboard"&&!ns())return;V(k)}else k.pointerType!=="keyboard"&&m&&v(k)}):(x.onPressStart=k=>{w.current=k.pointerType,R.current=E,F.current=S,m&&(k.pointerType==="mouse"&&!S||k.pointerType==="keyboard"&&(!C||rs()))&&v(k)},x.onPress=k=>{(k.pointerType==="touch"||k.pointerType==="pen"||k.pointerType==="virtual"||k.pointerType==="keyboard"&&$&&ns()||k.pointerType==="mouse"&&F.current)&&($?V(k):m&&v(k))}),b["data-collection"]=H5(n.collection),b["data-key"]=r,x.preventFocusOnPress=l,l&&(x=ie(x,{onPressStart(k){k.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(k){k.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}}));let{pressProps:M,isPressed:U}=hi(x),A=P?k=>{w.current==="mouse"&&(k.stopPropagation(),k.preventDefault(),V(k))}:void 0,{longPressProps:B}=bu({isDisabled:!E,onLongPress(k){k.pointerType==="touch"&&(v(k),n.setSelectionBehavior("toggle"))}}),_=k=>{w.current==="touch"&&R.current&&k.preventDefault()},N=n.isLink(r)?k=>{_t.isOpening||k.preventDefault()}:void 0;return{itemProps:ie(b,m||S||l&&!s?M:{},E?B:{},{onDoubleClick:A,onDragStartCapture:_,onClick:N,id:e},l?{onMouseDown:k=>k.preventDefault()}:void 0),isPressed:U,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:s,allowsSelection:m,hasAction:$}}function ns(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function rs(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}class is{getItemRect(e){let n=this.ref.current;if(!n)return null;let r=e!=null?Dr(this.ref,e):null;if(!r)return null;let i=n.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-i.left+n.scrollLeft,y:o.top-i.top+n.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;var n,r;return{width:(n=e==null?void 0:e.scrollWidth)!==null&&n!==void 0?n:0,height:(r=e==null?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let e=this.ref.current;var n,r,i,o;return{x:(n=e==null?void 0:e.scrollLeft)!==null&&n!==void 0?n:0,y:(r=e==null?void 0:e.scrollTop)!==null&&r!==void 0?r: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 Rl{isDisabled(e){var n;return this.disabledBehavior==="all"&&(((n=e.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,n){let r=e;for(;r!=null;){let i=this.collection.getItem(r);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(e){let n=e;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(e){let n=e;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(e,n,r){let i=e,o=this.layoutDelegate.getItemRect(i);if(!o||i==null)return null;let l=o;do{if(i=n(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&r(l,o)&&i!=null);return i}isSameRow(e,n){return e.y===n.y||e.x!==n.x}isSameColumn(e,n){return e.x===n.x||e.y!==n.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,n){return n?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,r=>this.getNextColumn(r,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,n=>this.collection.getKeyAfter(n))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(e){let n=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(n&&!Bn(n))return this.getFirstKey();let i=e;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(e){let n=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(n&&!Bn(n))return this.getLastKey();let i=e;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(e,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let o=r.getItem(i);if(!o)return null;let l=o.textValue.slice(0,e.length);if(o.textValue&&this.collator.compare(l,e)===0)return i;i=this.getNextKey(i)}return null}constructor(...e){if(e.length===1){let n=e[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new is(n.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 is(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function C0(t){let{selectionManager:e,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:l}=t,a=_l({usage:"search",sensitivity:"base"}),s=e.disabledBehavior,c=u.useMemo(()=>o||new Rl({collection:n,disabledKeys:r,disabledBehavior:s,ref:i,collator:a,layoutDelegate:l}),[o,l,n,r,i,a,s]),{collectionProps:d}=b0({...t,ref:i,selectionManager:e,keyboardDelegate:c});return{listProps:d}}function B5(t,e,n){let r=fe(t,{labelable:!0}),i=t.selectionBehavior||"toggle",o=t.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&o==="action"&&(o="override");let{listProps:l}=C0({...t,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:o}),{focusWithinProps:a}=vi({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),s=xe(t.id);kl.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}=Ou({...t,id:s,labelElementType:"span"});return{labelProps:c,listBoxProps:ie(r,a,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...ie(d,l)})}}class U5{build(e,n){return this.context=n,os(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:n,items:r}=e;if(u.isValidElement(n)&&n.type===u.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let o of r)yield*this.getFullNode({value:o,index:i},{renderer:n}),i++}else{let i=[];u.Children.forEach(n,l=>{l&&i.push(l)});let o=0;for(let l of i){let a=this.getFullNode({element:l,index:o},{});for(let s of a)o++,yield s}}}getKey(e,n,r,i){if(e.key!=null)return e.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let o=n.value;if(o!=null){var l;let a=(l=o.key)!==null&&l!==void 0?l:o.id;if(a==null)throw new Error("No key found for item");return a}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(e,n){return{renderer:n.renderer||e.renderer}}*getFullNode(e,n,r,i){if(u.isValidElement(e.element)&&e.element.type===u.Fragment){let g=[];u.Children.forEach(e.element.props.children,C=>{g.push(C)});var o;let m=(o=e.index)!==null&&o!==void 0?o:0;for(const C of g)yield*this.getFullNode({element:C,index:m++},n,r,i);return}let l=e.element;if(!l&&e.value&&n&&n.renderer){let g=this.cache.get(e.value);if(g&&(!g.shouldInvalidate||!g.shouldInvalidate(this.context))){g.index=e.index,g.parentKey=i?i.key:null,yield g;return}l=n.renderer(e.value)}if(u.isValidElement(l)){let g=l.type;if(typeof g!="function"&&typeof g.getCollectionNode!="function"){let P=l.type;throw new Error(`Unknown element <${P}> in collection.`)}let m=g.getCollectionNode(l.props,this.context);var a;let C=(a=e.index)!==null&&a!==void 0?a:0,S=m.next();for(;!S.done&&S.value;){let P=S.value;e.index=C;var s;let $=(s=P.key)!==null&&s!==void 0?s:null;$==null&&($=P.element?null:this.getKey(l,e,n,r));let E=[...this.getFullNode({...P,key:$,index:C,wrapper:W5(e.wrapper,P.wrapper)},this.getChildState(n,P),r?`${r}${l.key}`:l.key,i)];for(let R of E){var c,d;R.value=(d=(c=P.value)!==null&&c!==void 0?c:e.value)!==null&&d!==void 0?d:null,R.value&&this.cache.set(R.value,R);var f;if(e.type&&R.type!==e.type)throw new Error(`Unsupported type <${Yi(R.type)}> in <${Yi((f=i==null?void 0:i.type)!==null&&f!==void 0?f:"unknown parent type")}>. Only <${Yi(e.type)}> is supported.`);C++,yield R}S=m.next(E)}return}if(e.key==null||e.type==null)return;let p=this;var v,b;let h={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:(v=e.value)!==null&&v!==void 0?v:null,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:(b=e.textValue)!==null&&b!==void 0?b:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:os(function*(){if(!e.hasChildNodes||!e.childNodes)return;let g=0;for(let m of e.childNodes()){m.key!=null&&(m.key=`${h.key}${m.key}`);let C=p.getFullNode({...m,index:g},p.getChildState(n,m),h.key,h);for(let S of C)g++,yield S}})};yield h}constructor(){this.cache=new WeakMap}}function os(t){let e=[],n=null;return{*[Symbol.iterator](){for(let r of e)yield r;n||(n=t());for(let r of n)e.push(r),yield r}}}function W5(t,e){if(t&&e)return n=>t(e(n));if(t)return t;if(e)return e}function Yi(t){return t[0].toUpperCase()+t.slice(1)}function S0(t,e,n){let r=u.useMemo(()=>new U5,[]),{children:i,items:o,collection:l}=t;return u.useMemo(()=>{if(l)return l;let s=r.build({children:i,items:o},n);return e(s)},[r,i,o,l,n,e])}function x0(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function Z5(t){return G5(t)}function G5(t,e){for(let n of t)return n}function Xi(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...ls(t,e),e],i=[...ls(t,n),n],o=r.slice(0,i.length).findIndex((l,a)=>l!==i[a]);return o!==-1?(e=r[o],n=i[o],e.index-n.index):r.findIndex(l=>l===n)>=0?1:(i.findIndex(l=>l===e)>=0,-1)}function ls(t,e){let n=[],r=e;for(;(r==null?void 0:r.parentKey)!=null;)r=t.getItem(r.parentKey),r&&n.unshift(r);return n}const as=new WeakMap;function w0(t){let e=as.get(t);if(e!=null)return e;let n=0,r=i=>{for(let o of i)o.type==="section"?r(x0(o,t)):o.type==="item"&&n++};return r(t),as.set(t,n),n}function q5(t,e,n){var r,i;let{key:o}=t,l=kl.get(e);var a;let s=(a=t.isDisabled)!==null&&a!==void 0?a: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:l==null?void 0:l.shouldSelectOnPressUp;var v;let b=(v=t.shouldFocusOnHover)!==null&&v!==void 0?v:l==null?void 0:l.shouldFocusOnHover;var h;let g=(h=t.shouldUseVirtualFocus)!==null&&h!==void 0?h:l==null?void 0:l.shouldUseVirtualFocus;var m;let C=(m=t.isVirtualized)!==null&&m!==void 0?m:l==null?void 0:l.isVirtualized,S=ft(),P=ft(),$={role:"option","aria-disabled":s||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?d:void 0};pt()&&vl()||($["aria-label"]=t["aria-label"],$["aria-labelledby"]=S,$["aria-describedby"]=P);let w=e.collection.getItem(o);if(C){let N=Number(w==null?void 0:w.index);$["aria-posinset"]=Number.isNaN(N)?void 0:N+1,$["aria-setsize"]=w0(e.collection)}let E=l!=null&&l.onAction?()=>{var N;return l==null||(N=l.onAction)===null||N===void 0?void 0:N.call(l,o)}:void 0,R=K5(e,o),{itemProps:F,isPressed:V,isFocused:x,hasAction:M,allowsSelection:U}=Nl({selectionManager:e.selectionManager,key:o,ref:n,shouldSelectOnPressUp:p,allowsDifferentPressOrigin:p&&b,isVirtualized:C,shouldUseVirtualFocus:g,isDisabled:s,onAction:E||!(w==null||(r=w.props)===null||r===void 0)&&r.onAction?Tt(w==null||(i=w.props)===null||i===void 0?void 0:i.onAction,E):void 0,linkBehavior:l==null?void 0:l.linkBehavior,id:R}),{hoverProps:A}=Cn({isDisabled:s||!b,onHoverStart(){vn()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(o))}}),B=fe(w==null?void 0:w.props);delete B.id;let _=ml(w==null?void 0:w.props);return{optionProps:{...$,...ie(B,F,A,_),id:R},labelProps:{id:S},descriptionProps:{id:P},isFocused:x,isFocusVisible:x&&e.selectionManager.isFocused&&vn(),isSelected:d,isDisabled:s,isPressed:V,allowsSelection:U,hasAction:M}}function Y5(t){let{heading:e,"aria-label":n}=t,r=xe();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}var E0={};E0={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var $0={};$0={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var P0={};P0={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var D0={};D0={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var T0={};T0={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var _0={};_0={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var I0={};I0={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var O0={};O0={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var k0={};k0={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var N0={};N0={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var R0={};R0={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var M0={};M0={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var L0={};L0={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var A0={};A0={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var F0={};F0={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var K0={};K0={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var j0={};j0={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var H0={};H0={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var V0={};V0={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var z0={};z0={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var B0={};B0={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var U0={};U0={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var W0={};W0={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var Z0={};Z0={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var G0={};G0={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var q0={};q0={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var Y0={};Y0={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var X0={};X0={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var J0={};J0={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Q0={};Q0={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var ed={};ed={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var td={};td={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var nd={};nd={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var rd={};rd={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var id={};id={"ar-AE":E0,"bg-BG":$0,"cs-CZ":P0,"da-DK":D0,"de-DE":T0,"el-GR":_0,"en-US":I0,"es-ES":O0,"et-EE":k0,"fi-FI":N0,"fr-FR":R0,"he-IL":M0,"hr-HR":L0,"hu-HU":A0,"it-IT":F0,"ja-JP":K0,"ko-KR":j0,"lt-LT":H0,"lv-LV":V0,"nb-NO":z0,"nl-NL":B0,"pl-PL":U0,"pt-BR":W0,"pt-PT":Z0,"ro-RO":G0,"ru-RU":q0,"sk-SK":Y0,"sl-SI":X0,"sr-SP":J0,"sv-SE":Q0,"tr-TR":ed,"uk-UA":td,"zh-CN":nd,"zh-TW":rd};function X5(t){return t&&t.__esModule?t.default:t}function J5(t,e,n){let{type:r="menu",isDisabled:i,trigger:o="press"}=t,l=xe(),{triggerProps:a,overlayProps:s}=$5({type:r},e,n),c=v=>{if(!i&&!(o==="longPress"&&!v.altKey)&&n&&n.current)switch(v.key){case"Enter":case" ":if(o==="longPress")return;case"ArrowDown":"continuePropagation"in v||v.stopPropagation(),v.preventDefault(),e.toggle("first");break;case"ArrowUp":"continuePropagation"in v||v.stopPropagation(),v.preventDefault(),e.toggle("last");break;default:"continuePropagation"in v&&v.continuePropagation()}},d=wu(X5(id),"@react-aria/menu"),{longPressProps:f}=bu({isDisabled:i||o!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){e.close()},onLongPress(){e.open("first")}}),p={preventFocusOnPress:!0,onPressStart(v){v.pointerType!=="touch"&&v.pointerType!=="keyboard"&&!i&&(Ve(v.target),e.open(v.pointerType==="virtual"?"first":null))},onPress(v){v.pointerType==="touch"&&!i&&(Ve(v.target),e.toggle())}};return delete a.onPress,{menuTriggerProps:{...a,...o==="press"?p:f,id:l,onKeyDown:c},menuProps:{...s,"aria-labelledby":l,autoFocus:e.focusStrategy||!0,onClose:e.close}}}const od=new WeakMap;function Q5(t,e,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:o,...l}=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 a=fe(t,{labelable:!0}),{listProps:s}=C0({...l,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return od.set(e,{onClose:t.onClose,onAction:t.onAction,shouldUseVirtualFocus:t.shouldUseVirtualFocus}),{menuProps:ie(a,{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 ep(t,e,n){let{id:r,key:i,closeOnSelect:o,isVirtualized:l,"aria-haspopup":a,onPressStart:s,onPressUp:c,onPress:d,onPressChange:f,onPressEnd:p,onHoverStart:v,onHoverChange:b,onHoverEnd:h,onKeyDown:g,onKeyUp:m,onFocus:C,onFocusChange:S,onBlur:P,selectionManager:$=e.selectionManager}=t,w=!!a,E=w&&t["aria-expanded"]==="true";var R;let F=(R=t.isDisabled)!==null&&R!==void 0?R:$.isDisabled(i);var V;let x=(V=t.isSelected)!==null&&V!==void 0?V:$.isSelected(i),M=od.get(e),U=e.collection.getItem(i),A=t.onClose||M.onClose,B=si(),_=ee=>{var it;if(!w){if(!(U==null||(it=U.props)===null||it===void 0)&&it.onAction?U.props.onAction():t.onAction&&t.onAction(i),M.onAction){let wn=M.onAction;wn(i)}ee.target instanceof HTMLAnchorElement&&U&&B.open(ee.target,ee,U.props.href,U.props.routerOptions)}},N="menuitem";w||($.selectionMode==="single"?N="menuitemradio":$.selectionMode==="multiple"&&(N="menuitemcheckbox"));let k=ft(),Z=ft(),I=ft(),L={id:r,"aria-disabled":F||void 0,role:N,"aria-label":t["aria-label"],"aria-labelledby":k,"aria-describedby":[Z,I].filter(Boolean).join(" ")||void 0,"aria-controls":t["aria-controls"],"aria-haspopup":a,"aria-expanded":t["aria-expanded"]};$.selectionMode!=="none"&&!w&&(L["aria-checked"]=x),l&&(L["aria-posinset"]=U==null?void 0:U.index,L["aria-setsize"]=w0(e.collection));let T=ee=>{ee.pointerType==="keyboard"&&_(ee),s==null||s(ee)},O=()=>{!w&&A&&(o??($.selectionMode!=="multiple"||$.isLink(i)))&&A()},H=ee=>{ee.pointerType==="mouse"&&(_(ee),O()),c==null||c(ee)},K=ee=>{ee.pointerType!=="keyboard"&&ee.pointerType!=="mouse"&&(_(ee),O()),d==null||d(ee)},{itemProps:j,isFocused:z}=Nl({id:r,selectionManager:$,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:M.shouldUseVirtualFocus}),{pressProps:W,isPressed:q}=hi({onPressStart:T,onPress:K,onPressUp:H,onPressChange:f,onPressEnd:p,isDisabled:F}),{hoverProps:X}=Cn({isDisabled:F,onHoverStart(ee){!vn()&&!(E&&a)&&($.setFocused(!0),$.setFocusedKey(i)),v==null||v(ee)},onHoverChange:b,onHoverEnd:h}),{keyboardProps:ce}=mu({onKeyDown:ee=>{if(ee.repeat){ee.continuePropagation();return}switch(ee.key){case" ":!F&&$.selectionMode==="none"&&!w&&o!==!1&&A&&A();break;case"Enter":!F&&o!==!1&&!w&&A&&A();break;default:w||ee.continuePropagation(),g==null||g(ee);break}},onKeyUp:m}),{focusProps:G}=Pl({onBlur:P,onFocus:C,onFocusChange:S}),te=fe(U==null?void 0:U.props);delete te.id;let ue=ml(U==null?void 0:U.props);return{menuItemProps:{...L,...ie(te,ue,w?{onFocus:j.onFocus,"data-collection":j["data-collection"],"data-key":j["data-key"]}:j,W,X,ce,G,M.shouldUseVirtualFocus||w?{onMouseDown:ee=>ee.preventDefault()}:void 0),tabIndex:j.tabIndex!=null&&E&&!M.shouldUseVirtualFocus?-1:j.tabIndex},labelProps:{id:k},descriptionProps:{id:Z},keyboardShortcutProps:{id:I},isFocused:z,isFocusVisible:z&&$.isFocused&&vn()&&!E,isSelected:x,isPressed:q,isDisabled:F}}function tp(t){let{heading:e,"aria-label":n}=t,r=xe();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}function np(t,e){let{role:n="dialog"}=t,r=ft();r=t["aria-label"]?void 0:r;let i=u.useRef(!1);return u.useEffect(()=>{if(e.current&&!e.current.contains(document.activeElement)){vt(e.current);let o=setTimeout(()=>{document.activeElement===e.current&&(i.current=!0,e.current&&(e.current.blur(),vt(e.current)),i.current=!1)},500);return()=>{clearTimeout(o)}}},[e]),A5(),{dialogProps:{...fe(t,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":t["aria-labelledby"]||r,onBlur:o=>{i.current&&o.stopPropagation()}},titleProps:{id:r}}}const ld=new WeakMap;function rp(t,e,n){let{keyboardDelegate:r,isDisabled:i,isRequired:o,name:l,validationBehavior:a="aria"}=t,s=_l({usage:"search",sensitivity:"base"}),c=u.useMemo(()=>r||new Rl(e.collection,e.disabledKeys,n,s),[r,e.collection,e.disabledKeys,s,n]),{menuTriggerProps:d,menuProps:f}=J5({isDisabled:i,type:"listbox"},e,n),p=R=>{switch(R.key){case"ArrowLeft":{var F,V;R.preventDefault();let U=e.selectedKey!=null?(F=c.getKeyAbove)===null||F===void 0?void 0:F.call(c,e.selectedKey):(V=c.getFirstKey)===null||V===void 0?void 0:V.call(c);U&&e.setSelectedKey(U);break}case"ArrowRight":{var x,M;R.preventDefault();let U=e.selectedKey!=null?(x=c.getKeyBelow)===null||x===void 0?void 0:x.call(c,e.selectedKey):(M=c.getFirstKey)===null||M===void 0?void 0:M.call(c);U&&e.setSelectedKey(U);break}}},{typeSelectProps:v}=y0({keyboardDelegate:c,selectionManager:e.selectionManager,onTypeSelect(R){e.setSelectedKey(R)}}),{isInvalid:b,validationErrors:h,validationDetails:g}=e.displayValidation,{labelProps:m,fieldProps:C,descriptionProps:S,errorMessageProps:P}=d5({...t,labelElementType:"span",isInvalid:b,errorMessage:t.errorMessage||h});v.onKeyDown=v.onKeyDownCapture,delete v.onKeyDownCapture;let $=fe(t,{labelable:!0}),w=ie(v,d,C),E=xe();return ld.set(e,{isDisabled:i,isRequired:o,name:l,validationBehavior:a}),{labelProps:{...m,onClick:()=>{if(!t.isDisabled){var R;(R=n.current)===null||R===void 0||R.focus(),gu("keyboard")}}},triggerProps:ie($,{...w,isDisabled:i,onKeyDown:Tt(w.onKeyDown,p,t.onKeyDown),onKeyUp:t.onKeyUp,"aria-labelledby":[E,w["aria-labelledby"],w["aria-label"]&&!w["aria-labelledby"]?w.id:null].filter(Boolean).join(" "),onFocus(R){e.isFocused||(t.onFocus&&t.onFocus(R),t.onFocusChange&&t.onFocusChange(!0),e.setFocused(!0))},onBlur(R){e.isOpen||(t.onBlur&&t.onBlur(R),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))}}),valueProps:{id:E},menuProps:{...f,autoFocus:e.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:R=>{R.currentTarget.contains(R.relatedTarget)||(t.onBlur&&t.onBlur(R),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))},"aria-labelledby":[C["aria-labelledby"],w["aria-label"]&&!C["aria-labelledby"]?w.id:null].filter(Boolean).join(" ")},descriptionProps:S,errorMessageProps:P,isInvalid:b,validationErrors:h,validationDetails:g}}function ip(t,e,n){let r=ld.get(e)||{},{autoComplete:i,name:o=r.name,isDisabled:l=r.isDisabled}=t,{validationBehavior:a,isRequired:s}=r,{visuallyHiddenProps:c}=ku();F1(t.selectRef,e.selectedKey,e.setSelectedKey),a5({validationBehavior:a,focus:()=>{var f;return(f=n.current)===null||f===void 0?void 0:f.focus()}},e,t.selectRef);var d;return{containerProps:{...c,"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:a==="native"&&s,name:o,value:(d=e.selectedKey)!==null&&d!==void 0?d:void 0,onChange:f=>e.setSelectedKey(f.target.value)}}}function op(t){let{state:e,triggerRef:n,label:r,name:i,isDisabled:o}=t,l=u.useRef(null),{containerProps:a,selectProps:s}=ip({...t,selectRef:l},e,n);var c;return e.collection.size<=300?u.createElement("div",{...a,"data-testid":"hidden-select-container"},u.createElement("label",null,r,u.createElement("select",{...s,ref:l},u.createElement("option",null),[...e.collection.getKeys()].map(d=>{let f=e.collection.getItem(d);if(f&&f.type==="item")return u.createElement("option",{key:f.key,value:f.key},f.textValue)})))):i?u.createElement("input",{type:"hidden",autoComplete:s.autoComplete,name:i,disabled:o,value:(c=e.selectedKey)!==null&&c!==void 0?c:""}):null}function lp(t){let e=fe(t,{labelable:!0}),n;return t.orientation==="vertical"&&(n="vertical"),t.elementType!=="hr"?{separatorProps:{...e,role:"separator","aria-orientation":n}}:{separatorProps:e}}const ad=new WeakMap;function Gr(t,e,n){return t?(typeof e=="string"&&(e=e.replace(/\s+/g,"")),`${ad.get(t)}-${n}-${e}`):""}function ap(t,e,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:o}=t,{selectionManager:l,selectedKey:a}=e,s=r===a,c=i||e.isDisabled||e.selectionManager.isDisabled(r),{itemProps:d,isPressed:f}=Nl({selectionManager:l,key:r,ref:n,isDisabled:c,shouldSelectOnPressUp:o,linkBehavior:"selection"}),p=Gr(e,r,"tab"),v=Gr(e,r,"tabpanel"),{tabIndex:b}=d,h=e.collection.getItem(r),g=fe(h==null?void 0:h.props,{labelable:!0});delete g.id;let m=ml(h==null?void 0:h.props),{focusableProps:C}=yu({isDisabled:c},n);return{tabProps:ie(g,C,m,d,{id:p,"aria-selected":s,"aria-disabled":c||void 0,"aria-controls":s?v:void 0,tabIndex:c?void 0:b,role:"tab"}),isSelected:s,isDisabled:c,isPressed:f}}function sp(t,e,n){let r=Jh(n)?void 0:0;var i;const o=Gr(e,(i=t.id)!==null&&i!==void 0?i:e==null?void 0:e.selectedKey,"tabpanel"),l=ui({...t,id:o,"aria-labelledby":Gr(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:ie(l,{tabIndex:r,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}class cp{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 n,r;return this.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.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 n=e;do n=this.collection.getKeyAfter(n),n==null&&(n=this.collection.getFirstKey());while(n!=null&&this.isDisabled(n));return n}getPreviousKey(e){let n=e;do n=this.collection.getKeyBefore(n),n==null&&(n=this.collection.getLastKey());while(n!=null&&this.isDisabled(n));return n}constructor(e,n,r,i=new Set){this.collection=e,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=i,this.tabDirection=r==="horizontal"}}function up(t,e,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=t,{collection:o,selectionManager:l,disabledKeys:a}=e,{direction:s}=Kt(),c=u.useMemo(()=>new cp(o,s,r,a),[o,a,r,s]),{collectionProps:d}=b0({ref:n,selectionManager:l,keyboardDelegate:c,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=xe();ad.set(e,f);let p=ui({...t,id:f});return{tabListProps:{...ie(d,p),role:"tablist","aria-orientation":r,tabIndex:void 0}}}const sd=u.createContext({}),dp=xl(function(e,n){[e,n]=Ye(e,n,sd);let{elementType:r="label",...i}=e;return u.createElement(r,{className:"react-aria-Label",...i,ref:n})}),fp=u.createContext(null),hp=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Ml=u.createContext({}),pp=xl(function(e,n){[e,n]=Ye(e,n,Ml),e=vp(e);let r=e,{isPending:i}=r,{buttonProps:o,isPressed:l}=zh(e,n),{focusProps:a,isFocused:s,isFocusVisible:c}=Sn(e),{hoverProps:d,isHovered:f}=Cn({...e,isDisabled:e.isDisabled||i}),p={isHovered:f,isPressed:(r.isPressed||l)&&!i,isFocused:s,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:i??!1},v=we({...e,values:p,defaultClassName:"react-aria-Button"}),b=xe(o.id),h=xe(),g=o["aria-labelledby"];i&&(g?g=`${g} ${h}`:o["aria-label"]&&(g=`${b} ${h}`));let m=u.useRef(i);return u.useEffect(()=>{let C={"aria-labelledby":g||b};(!m.current&&s&&i||m.current&&s&&!i)&&za(C,"assertive"),m.current=i},[i,s,g,b]),u.createElement("button",{...fe(e,{propNames:hp}),...ie(o,a,d),...v,type:o.type==="submit"&&i?"button":o.type,id:b,ref:n,"aria-labelledby":g,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(fp.Provider,{value:{id:h}},v.children))});function vp(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 Ll=u.createContext({}),gp=u.createContext(null);class ss{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let n=this.keyMap.get(e);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getChildren(e){let n=this.keyMap.get(e);return(n==null?void 0:n.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let n=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&l.type==="section")for(let a of l.childNodes)n(a)};for(let l of e)n(l);let r=null,i=0;for(let[l,a]of this.keyMap)r?(r.nextKey=l,a.prevKey=r.key):(this.firstKey=l,a.prevKey=void 0),a.type==="item"&&(a.index=i++),r=a,r.nextKey=void 0;var o;this.lastKey=(o=r==null?void 0:r.key)!==null&&o!==void 0?o:null}}class je extends Set{constructor(e,n,r){super(e),e instanceof je?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function mp(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function Al(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=t,l=u.useRef(!1),[,a]=u.useState(!1),s=u.useRef(null),c=u.useRef(null),[,d]=u.useState(null),f=u.useMemo(()=>cs(t.selectedKeys),[t.selectedKeys]),p=u.useMemo(()=>cs(t.defaultSelectedKeys,new je),[t.defaultSelectedKeys]),[v,b]=di(f,p,t.onSelectionChange),h=u.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[g,m]=u.useState(i);i==="replace"&&g==="toggle"&&typeof v=="object"&&v.size===0&&m("replace");let C=u.useRef(i);return u.useEffect(()=>{i!==C.current&&(m(i),C.current=i)},[i]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:g,setSelectionBehavior:m,get isFocused(){return l.current},setFocused(S){l.current=S,a(S)},get focusedKey(){return s.current},get childFocusStrategy(){return c.current},setFocusedKey(S,P="first"){s.current=S,c.current=P,d(S)},selectedKeys:v,setSelectedKeys(S){(r||!mp(S,v))&&b(S)},disabledKeys:h,disabledBehavior:o}}function cs(t,e){return t?t==="all"?"all":new je(t):e}class nr{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,n){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,n)}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 n=this.getKey(e);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}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(),n=this.state.selectedKeys;return this._isSelectAll=e.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&Xi(this.collection,i,e)<0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&Xi(this.collection,i,e)>0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n: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 n=this.getKey(e);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new je([n],n,n);else{let l=this.state.selectedKeys;var i;let a=(i=l.anchorKey)!==null&&i!==void 0?i:n;r=new je(l,a,n);var o;for(let s of this.getKeyRange(a,(o=l.currentKey)!==null&&o!==void 0?o:n))r.delete(s);for(let s of this.getKeyRange(n,a))this.canSelectItem(s)&&r.add(s)}this.state.setSelectedKeys(r)}getKeyRange(e,n){let r=this.collection.getItem(e),i=this.collection.getItem(n);return r&&i?Xi(this.collection,r,i)<=0?this.getKeyRangeInternal(e,n):this.getKeyRangeInternal(n,e):[]}getKeyRangeInternal(e,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(e,n);let i=[],o=e;for(;o!=null;){let l=this.collection.getItem(o);if(l&&(l.type==="item"||l.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(e){let n=this.collection.getItem(e);if(!n||n.type==="cell"&&this.allowsCellSelection)return e;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r=new je(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(e){if(this.selectionMode==="none")return;let n=this.getKey(e);if(n==null)return;let r=this.canSelectItem(n)?new je([n],n,n):new je;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new je;for(let r of e){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let l=this.collection.getItem(r);(l==null?void 0:l.type)==="item"&&e.push(r);var o;l!=null&&l.hasChildNodes&&(this.allowsCellSelection||l.type!=="item")&&n((o=(i=Z5(x0(l,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}r=this.collection.getKeyAfter(r)}};return n(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 je)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(e.size!==n.size)return!1;for(let r of e)if(!n.has(r))return!1;for(let r of n)if(!e.has(r))return!1;return!0}canSelectItem(e){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let r=this.collection.getItem(e);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(e){var n,r;return!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(e){var n;return(n=this.collection.getItem(e))===null||n===void 0?void 0:n.props}withCollection(e){return new nr(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,n,r){this.collection=e,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function cd(t){let{filter:e,layoutDelegate:n}=t,r=Al(t),i=u.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),o=u.useCallback(c=>e?new ss(e(c)):new ss(c),[e]),l=u.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),a=S0(t,o,l),s=u.useMemo(()=>new nr(a,r,{layoutDelegate:n}),[a,r,n]);return ud(a,s),{collection:a,disabledKeys:i,selectionManager:s}}function yp(t,e){let n=u.useMemo(()=>e?t.collection.UNSTABLE_filter(e):t.collection,[t.collection,e]),r=t.selectionManager.withCollection(n);return ud(n,r),{collection:n,selectionManager:r,disabledKeys:t.disabledKeys}}function ud(t,e){const n=u.useRef(null);u.useEffect(()=>{if(e.focusedKey!=null&&!t.getItem(e.focusedKey)&&n.current){const d=n.current.getItem(e.focusedKey),f=[...n.current.getKeys()].map(m=>{const C=n.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 r,i;const v=((r=f==null?void 0:f.length)!==null&&r!==void 0?r:0)-((i=p==null?void 0:p.length)!==null&&i!==void 0?i:0);var o,l,a;let b=Math.min(v>1?Math.max(((o=d==null?void 0:d.index)!==null&&o!==void 0?o:0)-v+1,0):(l=d==null?void 0:d.index)!==null&&l!==void 0?l:0,((a=p==null?void 0:p.length)!==null&&a!==void 0?a:0)-1),h=null,g=!1;for(;b>=0;){if(!e.isDisabled(p[b].key)){h=p[b];break}if(b<p.length-1&&!g)b++;else{g=!0;var s,c;b>((s=d==null?void 0:d.index)!==null&&s!==void 0?s:0)&&(b=(c=d==null?void 0:d.index)!==null&&c!==void 0?c:0),b--}}e.setFocusedKey(h?h.key:null)}n.current=t},[t,e])}function dd(t){var e;let[n,r]=di(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),i=u.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:l,selectionManager:a}=cd({...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===n&&t.onSelectionChange&&t.onSelectionChange(f),r(f)}}),s=n!=null?o.getItem(n):null;return{collection:o,disabledKeys:l,selectionManager:a,selectedKey:n,setSelectedKey:r,selectedItem:s}}function Fl(t){let[e,n]=di(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const r=u.useCallback(()=>{n(!0)},[n]),i=u.useCallback(()=>{n(!1)},[n]),o=u.useCallback(()=>{n(!e)},[n,e]);return{isOpen:e,setOpen:n,open:r,close:i,toggle:o}}function bp(t){let{initialItems:e=[],initialSelectedKeys:n,getKey:r=h=>{var g;return(g=h.id)!==null&&g!==void 0?g:h.key},getChildren:i=h=>h.children}=t,[o,l]=u.useState(()=>f(e,new Map)),{items:a,nodeMap:s}=o,[c,d]=u.useState(new Set(n||[]));function f(h=[],g,m){return h==null&&(h=[]),{items:h.map(C=>{let S={key:r(C),parentKey:m??null,value:C,children:null};return S.children=f(i(C),g,S.key).items,g.set(S.key,S),S}),nodeMap:g}}function p(h,g,m,C){let S=g==null?null:C.get(g);if(S==null)return{items:h,nodeMap:C};let P=new Map(C),$=m(S);for($==null?b(S,P):v($,P);S&&S.parentKey;){let E=P.get(S.parentKey),R={key:E.key,parentKey:E.parentKey,value:E.value,children:null},F=E.children;$==null&&F&&(F=F.filter(V=>V!==S));var w;R.children=(w=F==null?void 0:F.map(V=>V===S?$:V))!==null&&w!==void 0?w:null,P.set(R.key,R),$=R,S=E}return $==null&&(h=h.filter(E=>E!==S)),{items:h.map(E=>E===S?$:E),nodeMap:P}}function v(h,g){if(g.set(h.key,h),h.children)for(let m of h.children)v(m,g)}function b(h,g){if(g.delete(h.key),h.children)for(let m of h.children)b(m,g)}return{items:a,selectedKeys:c,setSelectedKeys:d,getItem(h){return s.get(h)},insert(h,g,...m){l(({items:C,nodeMap:S})=>{let{items:P,nodeMap:$}=f(m,S,h);return h==null?{items:[...C.slice(0,g),...P,...C.slice(g)],nodeMap:$}:p(C,h,w=>({key:w.key,parentKey:w.parentKey,value:w.value,children:[...w.children.slice(0,g),...P,...w.children.slice(g)]}),$)})},insertBefore(h,...g){let m=s.get(h);if(!m)return;let C=s.get(m.parentKey),P=(C?C.children:a).indexOf(m);var $;this.insert(($=C==null?void 0:C.key)!==null&&$!==void 0?$:null,P,...g)},insertAfter(h,...g){let m=s.get(h);if(!m)return;let C=s.get(m.parentKey),P=(C?C.children:a).indexOf(m);var $;this.insert(($=C==null?void 0:C.key)!==null&&$!==void 0?$:null,P+1,...g)},prepend(h,...g){this.insert(h,0,...g)},append(h,...g){if(h==null)this.insert(null,a.length,...g);else{let m=s.get(h);if(!m)return;this.insert(h,m.children.length,...g)}},remove(...h){if(h.length===0)return;let g=a,m=s,C;for(let P of h)C=p(g,P,()=>null,m),m=C.nodeMap,g=C.items;l(C);let S=new Set(c);for(let P of c)C.nodeMap.has(P)||S.delete(P);d(S)},removeSelectedItems(){this.remove(...c)},move(h,g,m){l(({items:C,nodeMap:S})=>{let P=S.get(h);if(!P)return{items:C,nodeMap:S};let{items:$,nodeMap:w}=p(C,h,()=>null,S);const E={...P,parentKey:g};return g==null?(v(E,w),{items:[...$.slice(0,m),E,...$.slice(m)],nodeMap:w}):p($,g,R=>({key:R.key,parentKey:R.parentKey,value:R.value,children:[...R.children.slice(0,m),E,...R.children.slice(m)]}),w)})},moveBefore(h,g){l(m=>{let{items:C,nodeMap:S}=m,P=S.get(h);if(!P)return m;var $;let w=($=P.parentKey)!==null&&$!==void 0?$:null,E=null;var R;w!=null&&(E=(R=S.get(w))!==null&&R!==void 0?R:null);let F=E!=null&&E.children?E.children.indexOf(P):C.indexOf(P);return us(m,g,E,F,p,v)})},moveAfter(h,g){l(m=>{let{items:C,nodeMap:S}=m,P=S.get(h);if(!P)return m;var $;let w=($=P.parentKey)!==null&&$!==void 0?$:null,E=null;var R;w!=null&&(E=(R=S.get(w))!==null&&R!==void 0?R:null);let F=E!=null&&E.children?E.children.indexOf(P):C.indexOf(P);return F++,us(m,g,E,F,p,v)})},update(h,g){l(({items:m,nodeMap:C})=>p(m,h,S=>{let P={key:S.key,parentKey:S.parentKey,value:g,children:null},$=f(i(g),C,P.key);return P.children=$.items,P},C))}}}function us(t,e,n,r,i,o){let{items:l,nodeMap:a}=t,s=n,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=a.get(s.parentKey))!==null&&d!==void 0?d:null}let f=r,p=Array.isArray(e)?e:[...e],v=new Map,b=[],h=l,g=a,m=0;function C(w,{inorder:E,postorder:R}){E==null||E(w);var F;if(w!=null)for(let V of(F=w.children)!==null&&F!==void 0?F:[])C(V,{inorder:E,postorder:R}),R==null||R(V)}function S(w){p.includes(w.key)&&v.set(w.key,m++)}function P(w){if(p.includes(w.key)){var E;b.push({...g.get(w.key),parentKey:(E=n==null?void 0:n.key)!==null&&E!==void 0?E:null});let{items:R,nodeMap:F}=i(h,w.key,()=>null,g);h=R,g=F}w.parentKey===(n==null?void 0:n.key)&&p.includes(w.key)&&(n!=null&&n.children?n.children.indexOf(w):l.indexOf(w))<f&&r--}C({children:l},{inorder:S,postorder:P});let $=b.sort((w,E)=>v.get(w.key)>v.get(E.key)?1:-1);return!n||n.key==null?($.forEach(w=>{o(w,g)}),{items:[...h.slice(0,r),...$,...h.slice(r)],nodeMap:g}):i(h,n.key,w=>({key:w.key,parentKey:w.parentKey,value:w.value,children:[...w.children.slice(0,r),...$,...w.children.slice(r)]}),g)}function Cp(t){let e=Fl(t),[n,r]=u.useState(null),[i,o]=u.useState([]),l=()=>{o([]),e.close()};return{focusStrategy:n,...e,open(c=null){r(c),e.open()},toggle(c=null){r(c),e.toggle()},close(){l()},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 Sp(t){let e=Fl(t),[n,r]=u.useState(null),i=dd({...t,onSelectionChange:c=>{t.onSelectionChange!=null&&t.onSelectionChange(c),e.close(),o.commitValidation()}}),o=i5({...t,value:i.selectedKey}),[l,a]=u.useState(!1),s=u.useMemo(()=>{var c;return i.collection.size===0||i.collection.size===1&&((c=i.collection.getItem(i.collection.getFirstKey()))===null||c===void 0?void 0:c.type)==="loader"},[i.collection]);return{...o,...i,...e,focusStrategy:n,open(c=null){s||(r(c),e.open())},toggle(c=null){s||(r(c),e.toggle())},isFocused:l,setFocused:a}}function xp(t){var e,n;let r=dd({...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:(n=(e=t.defaultSelectedKey)!==null&&e!==void 0?e:ds(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set))!==null&&n!==void 0?n:void 0}),{selectionManager:i,collection:o,selectedKey:l}=r,a=u.useRef(l);return u.useEffect(()=>{let s=l;t.selectedKey==null&&(i.isEmpty||s==null||!o.getItem(s))&&(s=ds(o,r.disabledKeys),s!=null&&i.setSelectedKeys([s])),(s!=null&&i.focusedKey==null||!i.isFocused&&s!==a.current)&&i.setFocusedKey(s),a.current=s}),{...r,isDisabled:t.isDisabled||!1}}function ds(t,e){let n=null;if(t){var r,i,o,l;for(n=t.getFirstKey();n!=null&&(e.has(n)||!((i=t.getItem(n))===null||i===void 0||(r=i.props)===null||r===void 0)&&r.isDisabled)&&n!==t.getLastKey();)n=t.getKeyAfter(n);n!=null&&(e.has(n)||!((l=t.getItem(n))===null||l===void 0||(o=l.props)===null||o===void 0)&&o.isDisabled)&&n===t.getLastKey()&&(n=t.getFirstKey())}return n}class wp{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let n=this.keyMap.get(e);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}constructor(e,{expandedKeys:n}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,n=n||new Set;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&(a.type==="section"||n.has(a.key)))for(let s of a.childNodes)r(s)};for(let a of e)r(a);let i=null,o=0;for(let[a,s]of this.keyMap)i?(i.nextKey=a,s.prevKey=i.key):(this.firstKey=a,s.prevKey=void 0),s.type==="item"&&(s.index=o++),i=s,i.nextKey=void 0;var l;this.lastKey=(l=i==null?void 0:i.key)!==null&&l!==void 0?l:null}}function Ep(t){let{onExpandedChange:e}=t,[n,r]=di(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,e),i=Al(t),o=u.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),l=S0(t,u.useCallback(s=>new wp(s,{expandedKeys:n}),[n]),null);return u.useEffect(()=>{i.focusedKey!=null&&!l.getItem(i.focusedKey)&&i.setFocusedKey(null)},[l,i.focusedKey]),{collection:l,expandedKeys:n,disabledKeys:o,toggleKey:s=>{r($p(n,s))},setExpandedKeys:r,selectionManager:new nr(l,i)}}function $p(t,e){let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}const Pp=u.createContext(null),Uo=u.createContext(null),fd=u.createContext(null),hd={CollectionRoot({collection:t,renderDropIndicator:e}){return fs(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:n}){return fs(t,e,n)}};function fs(t,e,n){return au({items:e?t.getChildren(e.key):t,dependencies:[n],children(r){var i;let o=r.render(r);if(!n||r.type!=="item")return o;let l=r.key,a=t.getKeyAfter(l);return u.createElement(u.Fragment,null,n({type:"item",key:l,dropPosition:"before"}),o,(a==null||((i=t.getItem(a))===null||i===void 0?void 0:i.type)!=="item")&&n({type:"item",key:l,dropPosition:"after"}))}})}const jt=u.createContext(hd);function pd(t){return u.useMemo(()=>t!=null?new Set([t]):null,[t])}const bi=u.createContext({}),vd=u.createContext(null),Dp=u.forwardRef(function(e,n){let{render:r}=u.useContext(vd);return u.createElement(u.Fragment,null,r(e,n))});function gd(t,e){var n;let r=t==null?void 0:t.renderDropIndicator,i=t==null||(n=t.isVirtualDragging)===null||n===void 0?void 0:n.call(t),o=u.useCallback(l=>{if(i||e!=null&&e.isDropTarget(l))return r?r(l):u.createElement(Dp,{target:l})},[e==null?void 0:e.target,i,r]);return t!=null&&t.useDropIndicator?o:void 0}function Tp(t,e,n){var r,i;let o=t.focusedKey,l=null;if(!(e==null||(r=e.isVirtualDragging)===null||r===void 0)&&r.call(e)&&(n==null||(i=n.target)===null||i===void 0?void 0:i.type)==="item"){l=n.target.key;var a;n.target.dropPosition==="after"&&(l=(a=n.collection.getKeyAfter(l))!==null&&a!==void 0?a:l)}return u.useMemo(()=>new Set([o,l].filter(s=>s!=null)),[o,l])}const md=u.createContext({}),Kl=u.createContext({}),yd=mi("separator",function(e,n){[e,n]=Ye(e,n,Kl);let{elementType:r,orientation:i,style:o,className:l,slot:a,...s}=e,c=r||"hr";c==="hr"&&i==="vertical"&&(c="div");let{separatorProps:d}=lp({...s,elementType:r,orientation:i});return u.createElement(c,{...fe(e),...d,style:o,className:l??"react-aria-Separator",ref:n,slot:a||void 0})}),jl=u.createContext(null),rr=u.createContext(null),_p=u.forwardRef(function(e,n){[e,n]=Ye(e,n,jl);let r=u.useContext(rr);return r?u.createElement(bd,{state:r,props:e,listBoxRef:n}):u.createElement(gi,{content:u.createElement(Tl,e)},i=>u.createElement(Ip,{props:e,listBoxRef:n,collection:i}))});function Ip({props:t,listBoxRef:e,collection:n}){t={...t,collection:n,children:null,items:null};let{layoutDelegate:r}=u.useContext(jt),i=cd({...t,layoutDelegate:r});return u.createElement(bd,{state:i,props:t,listBoxRef:e})}function bd({state:t,props:e,listBoxRef:n}){let{filter:r,collectionProps:i,collectionRef:o}=u.useContext(Uo)||{};e=u.useMemo(()=>i?{...e,...i}:e,[e,i]);let{dragAndDropHooks:l,layout:a="stack",orientation:s="vertical"}=e;n=nt(u.useMemo(()=>hl(n,o!==void 0?o:null),[o,n]));let c=yp(t,r),{collection:d,selectionManager:f}=c,p=!!(l!=null&&l.useDraggableCollectionState),v=!!(l!=null&&l.useDroppableCollectionState),{direction:b}=Kt(),{disabledBehavior:h,disabledKeys:g}=f,m=_l({usage:"search",sensitivity:"base"}),{isVirtualized:C,layoutDelegate:S,dropTargetDelegate:P,CollectionRoot:$}=u.useContext(jt),w=u.useMemo(()=>e.keyboardDelegate||new Rl({collection:d,collator:m,ref:n,disabledKeys:g,disabledBehavior:h,layout:a,orientation:s,direction:b,layoutDelegate:S}),[d,m,n,h,g,s,b,e.keyboardDelegate,a,S]),{listBoxProps:E}=B5({...e,shouldSelectOnPressUp:p||e.shouldSelectOnPressUp,keyboardDelegate:w,isVirtualized:C},c,n),R=u.useRef(p),F=u.useRef(v);u.useEffect(()=>{process.env.NODE_ENV!=="production"&&(R.current!==p&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),F.current!==v&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[p,v]);let V,x,M,U=!1,A=null,B=u.useRef(null);if(p&&l){V=l.useDraggableCollectionState({collection:d,selectionManager:f,preview:l.renderDragPreview?B:void 0}),l.useDraggableCollection({},V,n);let T=l.DragPreview;A=l.renderDragPreview?u.createElement(T,{ref:B},l.renderDragPreview):null}if(v&&l){x=l.useDroppableCollectionState({collection:d,selectionManager:f});let T=l.dropTargetDelegate||P||new l.ListDropTargetDelegate(d,n,{orientation:s,layout:a,direction:b});M=l.useDroppableCollection({keyboardDelegate:w,dropTargetDelegate:T},x,n),U=x.isDropTarget({type:"root"})}let{focusProps:_,isFocused:N,isFocusVisible:k}=Sn(),Z={isDropTarget:U,isEmpty:c.collection.size===0,isFocused:N,isFocusVisible:k,layout:e.layout||"stack",state:c},I=we({className:e.className,style:e.style,defaultClassName:"react-aria-ListBox",values:Z}),L=null;return c.collection.size===0&&e.renderEmptyState&&(L=u.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(Z))),u.createElement(Il,null,u.createElement("div",{...fe(e),...ie(E,_,M==null?void 0:M.collectionProps),...I,ref:n,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":U||void 0,"data-empty":c.collection.size===0||void 0,"data-focused":N||void 0,"data-focus-visible":k||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},u.createElement(rt,{values:[[jl,e],[rr,c],[bi,{dragAndDropHooks:l,dragState:V,dropState:x}],[Kl,{elementType:"div"}],[vd,{render:Np}],[fd,{name:"ListBoxSection",render:Op}]]},u.createElement($,{collection:d,scrollRef:n,persistedKeys:Tp(f,l,x),renderDropIndicator:gd(l,x)})),L,A))}function Op(t,e,n,r="react-aria-ListBoxSection"){let i=u.useContext(rr),{dragAndDropHooks:o,dropState:l}=u.useContext(bi),{CollectionBranch:a}=u.useContext(jt),[s,c]=bl();var d;let{headingProps:f,groupProps:p}=Y5({heading:c,"aria-label":(d=t["aria-label"])!==null&&d!==void 0?d:void 0}),v=we({defaultClassName:r,className:t.className,style:t.style,values:{}});return u.createElement("section",{...fe(t),...p,...v,ref:e},u.createElement(md.Provider,{value:{...f,ref:s}},u.createElement(a,{collection:i.collection,parent:n,renderDropIndicator:gd(o,l)})))}const kp=mi("item",function(e,n,r){let i=nt(n),o=u.useContext(rr),{dragAndDropHooks:l,dragState:a,dropState:s}=u.useContext(bi),{optionProps:c,labelProps:d,descriptionProps:f,...p}=q5({key:r.key,"aria-label":e==null?void 0:e["aria-label"]},o,i),{hoverProps:v,isHovered:b}=Cn({isDisabled:!p.allowsSelection&&!p.hasAction,onHoverStart:r.props.onHoverStart,onHoverChange:r.props.onHoverChange,onHoverEnd:r.props.onHoverEnd}),h=null;a&&l&&(h=l.useDraggableItem({key:r.key},a));let g=null;s&&l&&(g=l.useDroppableItem({target:{type:"item",key:r.key,dropPosition:"on"}},s,i));let m=a&&a.isDragging(r.key),C=we({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...p,isHovered:b,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior,allowsDragging:!!a,isDragging:m,isDropTarget:g==null?void 0:g.isDropTarget}});u.useEffect(()=>{!r.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.")},[r.textValue]);let S=e.href?"a":"div";return u.createElement(S,{...ie(c,v,h==null?void 0:h.dragProps,g==null?void 0:g.dropProps),...C,ref:i,"data-allows-dragging":!!a||void 0,"data-selected":p.isSelected||void 0,"data-disabled":p.isDisabled||void 0,"data-hovered":b||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":(g==null?void 0:g.isDropTarget)||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode},u.createElement(rt,{values:[[Ll,{slots:{[Un]:d,label:d,description:f}}]]},C.children))});function Np(t,e){e=nt(e);let{dragAndDropHooks:n,dropState:r}=u.useContext(bi),{dropIndicatorProps:i,isHidden:o,isDropTarget:l}=n.useDropIndicator(t,r,e);return o?null:u.createElement(Mp,{...t,dropIndicatorProps:i,isDropTarget:l,ref:e})}function Rp(t,e){let{dropIndicatorProps:n,isDropTarget:r,...i}=t,o=we({...i,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return u.createElement("div",{...n,...o,role:"option",ref:e,"data-drop-target":r||void 0})}const Mp=u.forwardRef(Rp),Lp=u.createContext({placement:"bottom"}),Cd=u.createContext(null),hs=u.createContext(null),Hl=u.forwardRef(function(e,n){[e,n]=Ye(e,n,Cd);let r=u.useContext(zl),i=Fl(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?i:r,l=z1(n,o.isOpen)||e.isExiting||!1,a=Y1(),{direction:s}=Kt();if(a){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&&!l?null:u.createElement(Ap,{...e,triggerRef:e.triggerRef,state:o,popoverRef:n,isExiting:l,dir:s})});function Ap({state:t,isExiting:e,UNSTABLE_portalContainer:n,...r}){let i=u.useRef(null),[o,l]=u.useState(0),a=u.useRef(null),s=u.useContext(hs),c=s&&r.trigger==="SubmenuTrigger";re(()=>{i.current&&t.isOpen&&l(i.current.getBoundingClientRect().width)},[t.isOpen,i]);var d;let{popoverProps:f,underlayProps:p,arrowProps:v,placement:b}=L5({...r,offset:(d=r.offset)!==null&&d!==void 0?d:8,arrowSize:o,groupRef:c?s:a},t),h=r.popoverRef,g=V1(h,!!b)||r.isEntering||!1,m=we({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:b,isEntering:g,isExiting:e}}),C=!r.isNonModal||r.trigger==="SubmenuTrigger",[S,P]=u.useState(!1);re(()=>{h.current&&P(C&&!h.current.querySelector("[role=dialog]"))},[h,C]),u.useEffect(()=>{S&&h.current&&!h.current.contains(document.activeElement)&&vt(h.current)},[S,h]);let $={...f.style,...m.style},w=u.createElement("div",{...ie(fe(r),f),...m,role:S?"dialog":void 0,tabIndex:S?-1:void 0,"aria-label":r["aria-label"],"aria-labelledby":r["aria-labelledby"],ref:h,slot:r.slot||void 0,style:$,dir:r.dir,"data-trigger":r.trigger,"data-placement":b,"data-entering":g||void 0,"data-exiting":e||void 0},!r.isNonModal&&u.createElement(es,{onDismiss:t.close}),u.createElement(Lp.Provider,{value:{...v,placement:b,ref:i}},m.children),u.createElement(es,{onDismiss:t.close}));if(!c)return u.createElement(ts,{...r,shouldContainFocus:S,isExiting:e,portalContainer:n},!r.isNonModal&&t.isOpen&&u.createElement("div",{"data-testid":"underlay",...p,style:{position:"fixed",inset:0}}),u.createElement("div",{ref:a,style:{display:"contents"}},u.createElement(hs.Provider,{value:a},w)));var E;return u.createElement(ts,{...r,shouldContainFocus:S,isExiting:e,portalContainer:(E=n??(s==null?void 0:s.current))!==null&&E!==void 0?E:void 0},w)}const Fp=u.createContext({}),Kp=u.createContext(null),Vl=u.createContext(null),ps=u.createContext(null),qr=u.createContext(null),jp=u.createContext(null),Hp=u.forwardRef(function(e,n){return[e,n]=Ye(e,n,Kp),u.createElement(gi,{content:u.createElement(Tl,e)},r=>u.createElement(Vp,{props:e,collection:r,menuRef:n}))});function Vp({props:t,collection:e,menuRef:n}){let{filter:r,collectionProps:i,collectionRef:o}=u.useContext(Uo)||{};n=nt(u.useMemo(()=>hl(n,o!==void 0?o:null),[o,n]));let l=u.useMemo(()=>r?e.UNSTABLE_filter(r):e,[e,r]),a=Ep({...t,collection:l,children:void 0}),s=u.useContext(ps),{isVirtualized:c,CollectionRoot:d}=u.useContext(jt),{menuProps:f}=Q5({...t,...i,isVirtualized:c,onClose:t.onClose||(s==null?void 0:s.close)},a,n),p=we({defaultClassName:"react-aria-Menu",className:t.className,style:t.style,values:{isEmpty:a.collection.size===0}}),v=null;return a.collection.size===0&&t.renderEmptyState&&(v=u.createElement("div",{role:"menuitem",style:{display:"contents"}},t.renderEmptyState())),u.createElement(Il,null,u.createElement("div",{...fe(t),...f,...p,ref:n,slot:t.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:t.onScroll},u.createElement(rt,{values:[[Vl,a],[Kl,{elementType:"div"}],[fd,{name:"MenuSection",render:Bp}],[jp,{parentMenuRef:n,shouldUseVirtualFocus:i==null?void 0:i.shouldUseVirtualFocus}],[Wo,null],[Uo,null],[qr,a.selectionManager],[ps,s??Cp({})]]},u.createElement(d,{collection:a.collection,persistedKeys:pd(a.selectionManager.focusedKey),scrollRef:n})),v))}class zp extends nr{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,n){return this.parent.setFocusedKey(e,n)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,n){super(e.collection,n),this.parent=e}}function Bp(t,e,n,r="react-aria-MenuSection"){var i,o;let l=u.useContext(Vl),{CollectionBranch:a}=u.useContext(jt),[s,c]=bl();var d;let{headingProps:f,groupProps:p}=tp({heading:c,"aria-label":(d=n.props["aria-label"])!==null&&d!==void 0?d:void 0}),v=we({defaultClassName:r,className:(i=n.props)===null||i===void 0?void 0:i.className,style:(o=n.props)===null||o===void 0?void 0:o.style,values:{}}),b=u.useContext(qr),h=Al(t),g=t.selectionMode!=null?new zp(b,h):b;return u.createElement("section",{...fe(t),...p,...v,ref:e},u.createElement(rt,{values:[[md,{...f,ref:s}],[qr,g]]},u.createElement(a,{collection:l.collection,parent:n})))}const Wo=u.createContext(null),vs=mi("item",function(e,n,r){var i;[e,n]=Ye(e,n,Wo);let o=(i=fi(Wo))===null||i===void 0?void 0:i.id,l=u.useContext(Vl),a=nt(n),s=u.useContext(qr),{menuItemProps:c,labelProps:d,descriptionProps:f,keyboardShortcutProps:p,...v}=ep({...e,id:o,key:r.key,selectionManager:s},l,a),{hoverProps:b,isHovered:h}=Cn({isDisabled:v.isDisabled}),g=we({...e,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...v,isHovered:h,isFocusVisible:v.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,b),...g,ref:a,"data-disabled":v.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":v.isFocused||void 0,"data-focus-visible":v.isFocusVisible||void 0,"data-pressed":v.isPressed||void 0,"data-selected":v.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(rt,{values:[[Ll,{slots:{[Un]:d,label:d,description:f}}],[Fp,p]]},g.children))}),Up=u.createContext(null),zl=u.createContext(null),Wp=u.forwardRef(function(e,n){let r=e["aria-labelledby"];[e,n]=Ye(e,n,Up);let{dialogProps:i,titleProps:o}=np({...e,"aria-labelledby":r},n),l=u.useContext(zl);!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 a=we({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(l==null?void 0:l.close)||(()=>{})}});return u.createElement("section",{...fe(e),...i,...a,ref:n,slot:e.slot||void 0},u.createElement(rt,{values:[[t1,{slots:{[Un]:{},title:{...o,level:2}}}],[Ml,{slots:{[Un]:{},close:{onPress:()=>l==null?void 0:l.close()}}}]]},a.children))}),Sd=u.createContext(null),xd=u.createContext(null),Zp=u.forwardRef(function(e,n){[e,n]=Ye(e,n,Sd);let{children:r,isDisabled:i=!1,isInvalid:o=!1,isRequired:l=!1}=e,a=u.useMemo(()=>typeof r=="function"?r({isOpen:!1,isDisabled:i,isInvalid:o,isRequired:l,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):r,[r,i,o,l]);return u.createElement(gi,{content:a},s=>u.createElement(Gp,{props:e,collection:s,selectRef:n}))});function Gp({props:t,selectRef:e,collection:n}){let{validationBehavior:r}=fi(Pp)||{};var i,o;let l=(o=(i=t.validationBehavior)!==null&&i!==void 0?i:r)!==null&&o!==void 0?o:"native",a=Sp({...t,collection:n,children:void 0,validationBehavior:l}),{isFocusVisible:s,focusProps:c}=Sn({within:!0}),d=u.useRef(null),[f,p]=bl(!t["aria-label"]&&!t["aria-labelledby"]),{labelProps:v,triggerProps:b,valueProps:h,menuProps:g,descriptionProps:m,errorMessageProps:C,...S}=rp({...Z1(t),label:p,validationBehavior:l},a,d),[P,$]=u.useState(null),w=u.useCallback(()=>{d.current&&$(d.current.offsetWidth+"px")},[d]);To({ref:d,onResize:w});let E=u.useMemo(()=>({isOpen:a.isOpen,isFocused:a.isFocused,isFocusVisible:s,isDisabled:t.isDisabled||!1,isInvalid:S.isInvalid||!1,isRequired:t.isRequired||!1}),[a.isOpen,a.isFocused,s,t.isDisabled,S.isInvalid,t.isRequired]),R=we({...t,values:E,defaultClassName:"react-aria-Select"}),F=fe(t);delete F.id;let V=u.useRef(null);return u.createElement(rt,{values:[[Sd,t],[xd,a],[qp,h],[sd,{...v,ref:f,elementType:"span"}],[Ml,{...b,ref:d,isPressed:a.isOpen}],[zl,a],[Cd,{trigger:"Select",triggerRef:d,scrollRef:V,placement:"bottom start",style:{"--trigger-width":P},"aria-labelledby":g["aria-labelledby"]}],[jl,{...g,ref:V}],[rr,a],[Ll,{slots:{description:m,errorMessage:C}}],[gp,S]]},u.createElement("div",{...F,...R,...c,ref:e,slot:t.slot||void 0,"data-focused":a.isFocused||void 0,"data-focus-visible":s||void 0,"data-open":a.isOpen||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":S.isInvalid||void 0,"data-required":t.isRequired||void 0}),u.createElement(op,{autoComplete:t.autoComplete,state:a,triggerRef:d,label:p,name:t.name,isDisabled:t.isDisabled}))}const qp=u.createContext(null),Ci=u.createContext(null),gn=u.createContext(null),Yp=u.forwardRef(function(e,n){[e,n]=Ye(e,n,Ci);let{children:r,orientation:i="horizontal"}=e;return r=u.useMemo(()=>typeof r=="function"?r({orientation:i,defaultChildren:null}):r,[r,i]),u.createElement(gi,{content:r},o=>u.createElement(Xp,{props:e,collection:o,tabsRef:n}))});function Xp({props:t,tabsRef:e,collection:n}){let{orientation:r="horizontal"}=t,i=xp({...t,collection:n,children:void 0}),{focusProps:o,isFocused:l,isFocusVisible:a}=Sn({within:!0}),s=u.useMemo(()=>({orientation:r,isFocusWithin:l,isFocusVisible:a}),[r,l,a]),c=we({...t,defaultClassName:"react-aria-Tabs",values:s});return u.createElement("div",{...fe(t),...o,...c,ref:e,slot:t.slot||void 0,"data-focused":l||void 0,"data-orientation":r,"data-focus-visible":a||void 0,"data-disabled":i.isDisabled||void 0},u.createElement(rt,{values:[[Ci,t],[gn,i]]},c.children))}const Jp=u.forwardRef(function(e,n){return u.useContext(gn)?u.createElement(Qp,{props:e,forwardedRef:n}):u.createElement(Tl,e)});function Qp({props:t,forwardedRef:e}){let n=u.useContext(gn),{CollectionRoot:r}=u.useContext(jt),{orientation:i="horizontal",keyboardActivation:o="automatic"}=fi(Ci),l=nt(e),{tabListProps:a}=up({...t,orientation:i,keyboardActivation:o},n,l),s=we({...t,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:n}}),c=fe(t);return delete c.id,u.createElement("div",{...c,...a,ref:l,...s,"data-orientation":i||void 0},u.createElement(r,{collection:n.collection,persistedKeys:pd(n.selectionManager.focusedKey)}))}const ev=mi("item",(t,e,n)=>{let r=u.useContext(gn),i=nt(e),{tabProps:o,isSelected:l,isDisabled:a,isPressed:s}=ap({key:n.key,...t},r,i),{focusProps:c,isFocused:d,isFocusVisible:f}=Sn(),{hoverProps:p,isHovered:v}=Cn({isDisabled:a,onHoverStart:t.onHoverStart,onHoverEnd:t.onHoverEnd,onHoverChange:t.onHoverChange}),b=we({...t,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:l,isDisabled:a,isFocused:d,isFocusVisible:f,isPressed:s,isHovered:v}}),h=n.props.href?"a":"div";return u.createElement(h,{...ie(o,c,p,b),ref:i,"data-selected":l||void 0,"data-disabled":a||void 0,"data-focused":d||void 0,"data-focus-visible":f||void 0,"data-pressed":s||void 0,"data-hovered":v||void 0},b.children)}),tv=xl(function(e,n){const r=u.useContext(gn);let i=nt(n),{tabPanelProps:o}=sp(e,r,i),{focusProps:l,isFocused:a,isFocusVisible:s}=Sn(),c=r.selectedKey===e.id,d=we({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:a,isFocusVisible:s,isInert:!c,state:r}});if(!c&&!e.shouldForceMount)return null;let f=fe(e);delete f.id;let p=c?ie(f,o,l,d):d;return u.createElement("div",{...p,ref:i,"data-focused":a||void 0,"data-focus-visible":s||void 0,inert:K1(!c),"data-inert":c?void 0:"true"},u.createElement(rt,{values:[[Ci,null],[gn,null]]},u.createElement(jt.Provider,{value:hd},d.children)))}),Ot=({options:t,isOpen:e=!1,onOpenChange:n,children:r,selectedValues:i=[],onSelectValue:o,topMessage:l,shouldCloseOnInteractOutside:a})=>{const s=u.useId(),c=f=>{n==null||n(f)},d=u.useRef(null);return y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"c__dropdown-menu-trigger",ref:d,id:s,onClick:f=>{f.stopPropagation(),f.preventDefault()},children:r}),y.jsx(Hl,{triggerRef:d,style:{marginTop:"0px"},isOpen:e,shouldCloseOnInteractOutside:a,onOpenChange:c,children:y.jsxs(Hp,{className:"c__dropdown-menu","aria-labelledby":s,children:[l&&y.jsx(vs,{className:"c__dropdown-menu-item-top-message",children:l}),t.map(f=>f.isHidden?null:y.jsxs(u.Fragment,{children:[y.jsxs(vs,{className:"c__dropdown-menu-item","aria-label":f.label,onAction:()=>{var p;f.value&&(o==null||o(f.value)),(p=f.callback)==null||p.call(f),c(!1)},isDisabled:f.isDisabled,children:[f.icon,y.jsx("div",{className:"c__dropdown-menu-item__label","aria-label":f.label,children:f.label}),(f.isChecked||f.value&&i.includes(f.value))&&y.jsx("span",{className:"material-icons checked",children:"check"})]},f.label),f.showSeparator&&y.jsx(yd,{})]},f.label))]})})]})},gt=()=>{const[t,e]=u.useState(!1);return{isOpen:t,setIsOpen:e}},gs="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",nv="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",rv=({externalLinks:t,legalLinks:e,license:n,logo:r})=>{const{t:i}=ne.useCunningham();return y.jsxs("footer",{className:"c__footer",children:[y.jsx("div",{className:"c__footer__stripe"}),y.jsxs("div",{className:"c__footer__content",children:[y.jsxs("div",{className:"c__footer__content__top",children:[y.jsx("div",{children:y.jsx("div",{className:"c__footer__content__top__logo",children:y.jsx("img",{className:"c__footer__logo",alt:(r==null?void 0:r.alt)||i("components.footer.logo.alt"),width:r==null?void 0:r.width,height:r==null?void 0:r.height,decoding:"async",src:(r==null?void 0:r.src)||nv})})}),y.jsx("div",{className:"c__footer__content__top__links",children:t==null?void 0:t.map(({label:o,href:l})=>y.jsxs("a",{href:l,target:"_blank",children:[y.jsx("span",{children:o}),y.jsx("img",{alt:"",width:"18",decoding:"async",src:gs})]},o))})]}),y.jsx("div",{className:"c__footer__content__middle",children:e==null?void 0:e.map(({label:o,href:l})=>y.jsx("a",{href:l,children:y.jsx("span",{children:o})},o))}),n&&y.jsxs("p",{className:"c__footer__content__mention",children:[n==null?void 0:n.label," ",y.jsxs("a",{href:n==null?void 0:n.link.href,target:"_blank",children:[y.jsx("span",{children:n==null?void 0:n.link.label}),y.jsx("img",{alt:"",width:"18",decoding:"async",src:gs})]})]})]})]})},iv=t=>y.jsx(Zp,{...t,className:"c__filter",children:y.jsx(ov,{...t})}),ov=t=>{const e=u.useContext(xd),n=e!=null&&e.selectedItem?t.options.find(r=>{var i;return r.value===((i=e.selectedItem)==null?void 0:i.key)}):null;return y.jsxs(y.Fragment,{children:[y.jsxs(pp,{className:Te("c__filter__button",{"c__filter__button--active":!!n}),children:[y.jsx(dp,{className:"c__filter__label",children:n?y.jsxs(y.Fragment,{children:[t.label," : ",n.label]}):y.jsx(y.Fragment,{children:t.label})}),y.jsx("span",{"aria-hidden":"true",className:Te("material-icons c__filter__button__icon",{opened:e==null?void 0:e.isOpen}),children:"keyboard_arrow_down"})]}),y.jsx(Hl,{className:"c__dropdown-menu",children:y.jsx(_p,{children:t.options.map(r=>y.jsxs(u.Fragment,{children:[y.jsx(kp,{id:r.value,className:"c__dropdown-menu-item",children:y.jsxs("div",{className:"c__filter__item",children:[r.render?r.render():r.label,(t.selectedKey===r.value||r.isChecked)&&y.jsx("span",{className:"material-icons checked",children:"check"})]})},r.value),r.showSeparator&&y.jsx(yd,{})]},r.value))})})]})},lv=({logo:t,mainButton:e,banner:n,title:r,subtitle:i})=>y.jsx("div",{className:"c__hero",children:y.jsxs("div",{className:"c__hero__display",children:[y.jsxs("div",{className:"c__hero__display__captions",children:[t,y.jsx("h2",{children:r}),y.jsx("span",{className:"c__hero__display__captions__subtitle",children:i}),e||y.jsx(qc,{})]}),y.jsx("img",{src:n,alt:""})]})}),av=({children:t})=>y.jsx("div",{className:"c__home-gutter",children:t}),wd=(t,e,n=void 0)=>{const r=Array.isArray(e)?e:e.replace(/(\[(\d)\])/g,".$2").replace(/^\./,"").split(".");if(!r.length||r[0]===void 0)return t;const i=r[0];return typeof t!="object"||t===null||!(i in t)||t[i]===void 0?n:wd(t[i],r.slice(1),n)},sv={placeholder:"Entrez votre adresse e-mail",srLabel:"Adresse e-mail",submit:"Suivant",title:"Connexion avec {linebreak}votre adresse e-mail"},cv={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"}},uv={label:"Les services de La Suite numérique"},dv={homepageLinkTitle:"Accueil - {serviceName}"},fv={newWindow:"{title} - nouvelle fenêtre"},hv={help:"Qu'est-ce que ProConnect ?",loginWith:"S’identifier avec",loginWithProconnect:"{loginWith} {proconnect}",or:"ou",title:"Connexion avec ProConnect"},Ed={email:sv,footer:cv,gaufre:uv,header:dv,links:fv,proconnect:hv},pv=u.createContext(Ed);function vv(){const t=u.useContext(pv)||Ed;return{t:function(e,n={}){const r=wd(t,e);if(!r)return console.warn(`Translation for key "${e}" not found`),e;if(n){const i=[];if(Object.keys(n).forEach(l=>{typeof n[l]!="string"&&i.push(l)}),!i.length)return r.replace(/{(\w+)}/g,(l,a)=>n[a]);const o=r.split(/{(.*?)}/);return y.jsx(y.Fragment,{children:o.map((l,a)=>l in n?y.jsx(u.Fragment,{children:n[l]},a):l)})}return r}}}const gv={responsive:"lasuite-gaufre-btn--responsive",small:"lasuite-gaufre-btn--small"},mv=({variant:t})=>{const{t:e}=vv(),n=t?gv[t]:"";return y.jsx("button",{type:"button",className:`lasuite-gaufre-btn ${n} lasuite-gaufre-btn--vanilla js-lasuite-gaufre-btn`,title:e("gaufre.label"),children:e("gaufre.label")})},yv=()=>y.jsxs(y.Fragment,{children:[y.jsx("script",{src:"https://integration.lasuite.numerique.gouv.fr/api/v1/gaufre.js",id:"lasuite-gaufre-script",async:!0,defer:!0}),y.jsx(mv,{variant:"small"})]});var Ce=(t=>(t.X_SMALL="xsmall",t.SMALL="small",t.MEDIUM="medium",t.LARGE="large",t.X_LARGE="xlarge",t))(Ce||{}),Vn=(t=>(t.OUTLINED="outlined",t.FILLED="filled",t))(Vn||{});const Zn=({name:t,size:e,className:n,color:r,type:i=Vn.FILLED,...o})=>{const l=Te("",{[`icon--${e}`]:e!==void 0,[`material-icons-${i}`]:i!==Vn.OUTLINED,"material-icons":i===Vn.OUTLINED},n),a={color:r,fontSize:typeof e=="number"?`${e}px`:void 0};return y.jsx("span",{className:l,style:a,...o,children:t})},$d={[Ce.X_SMALL]:11,[Ce.SMALL]:16,[Ce.MEDIUM]:24,[Ce.LARGE]:32,[Ce.X_LARGE]:40},Pd={[Ce.X_SMALL]:16,[Ce.SMALL]:24,[Ce.MEDIUM]:32,[Ce.LARGE]:40,[Ce.X_LARGE]:48},bv=t=>Pd[t]??24,Cv=t=>$d[t]??24,Dd=({languages:t,onChange:e,size:n,color:r="primary-text",fullWidth:i})=>{var p;const{isOpen:o,setIsOpen:l}=gt(),a=()=>{const v=t.find(b=>b.isChecked);return(v==null?void 0:v.value)??t[0].value},[s,c]=u.useState(a),d=v=>{c(v),e==null||e(v)},f=u.useMemo(()=>{if(n)switch(n){case"nano":return Ce.X_SMALL;case"small":return Ce.SMALL;case"medium":return Ce.MEDIUM}},[n]);return u.useEffect(()=>{c(a)},[t]),y.jsx(Ot,{options:t,isOpen:o,onOpenChange:l,onSelectValue:d,selectedValues:[s],children:y.jsxs(ne.Button,{onClick:()=>l(!o),className:"c__language-picker",icon:y.jsx(Zn,{name:o?"arrow_drop_up":"arrow_drop_down"}),iconPosition:"right",size:n,color:r,fullWidth:i,children:[y.jsx(Zn,{name:"translate",size:f}),y.jsx("span",{className:"c__language-picker__label",children:(p=t.find(v=>v.value===s))==null?void 0:p.label})]})})},Td=({leftIcon:t,rightIcon:e,languages:n,onTogglePanel:r,isPanelOpen:i})=>{const{t:o}=ne.useCunningham();return y.jsxs("div",{className:"c__header",children:[y.jsx("div",{className:"c__header__toggle-menu",children:y.jsx(ne.Button,{size:"medium",onClick:r,"aria-label":o(i?"Close the menu":"Open the menu"),color:"tertiary-text",icon:y.jsx("span",{className:"material-icons clr-primary-800",children:i?"close":"menu"})})}),y.jsx("div",{className:"c__header__left",children:t}),y.jsxs("div",{className:"c__header__right",children:[n&&y.jsx("div",{className:"c__header__right__language-picker",children:y.jsx(Dd,{languages:n})}),e]})]})},Zo={themes:{default:{theme:{colors:{"primary-text":"#000091","primary-050":"#F5F5FE","primary-100":"#ECECFE","primary-150":"#F4F4FD","primary-200":"#E3E3FD","primary-300":"#CACAFB","primary-400":"#8585F6","primary-500":"#6A6AF4","primary-600":"#313178","primary-700":"#272747","primary-800":"#000091","primary-900":"#21213F","secondary-text":"#fff","secondary-100":"#fee9ea","secondary-200":"#fedfdf","secondary-300":"#fdbfbf","secondary-400":"#e1020f","secondary-500":"#c91a1f","secondary-600":"#5e2b2b","secondary-700":"#3b2424","secondary-800":"#341f1f","secondary-900":"#2b1919","greyscale-text":"#303C4B","greyscale-000":"#fff","greyscale-050":"#F6F6F6","greyscale-100":"#eee","greyscale-200":"#E5E5E5","greyscale-250":"#ddd","greyscale-300":"#CECECE","greyscale-350":"#ddd","greyscale-400":"#929292","greyscale-500":"#7C7C7C","greyscale-600":"#666666","greyscale-700":"#3A3A3A","greyscale-750":"#353535","greyscale-800":"#2A2A2A","greyscale-900":"#242424","greyscale-950":"#1E1E1E","greyscale-1000":"#161616","success-text":"#1f8d49","success-100":"#dffee6","success-200":"#b8fec9","success-300":"#88fdaa","success-400":"#3bea7e","success-500":"#1f8d49","success-600":"#18753c","success-700":"#204129","success-800":"#1e2e22","success-900":"#19281d","info-text":"#0078f3","info-100":"#E8EDFF","info-200":"#DDE5FF","info-300":"#BCCDFF","info-400":"#518FFF","info-500":"#0078F3","info-600":"#0063CB","info-700":"#273961","info-800":"#222A3F","info-900":"#1D2437","warning-text":"#d64d00","warning-100":"#fff4f3","warning-200":"#ffe9e6","warning-300":"#ffded9","warning-400":"#ffbeb4","warning-500":"#d64d00","warning-600":"#b34000","warning-700":"#5e2c21","warning-800":"#3e241e","warning-900":"#361e19","danger-text":"#FFF","danger-050":"#FFF4F4","danger-100":"#FFE9E9","danger-200":"#FFDDDD","danger-300":"#FFBDBD","danger-400":"#FF5655","danger-500":"#F60700","danger-600":"#CE0500","danger-700":"#642626","danger-800":"#412121","danger-900":"#391C1C","blue-500":"#417DC4","brown-500":"#BD987A","cyan-500":"#009099","gold-500":"#C3992A","green-500":"#00A95F","olive-500":"#68A532","orange-500":"#E4794A","purple-500":"#A558A0","red-500":"#E1000F","yellow-500":"#B7A73F","rose-500":"#E18B76"},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",base:"Marianne"}},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",xxxl:"3.5rem","4xl":"4rem","5xl":"4.5rem","6xl":"6rem","7xl":"7.5rem"},breakpoints:{xxs:"320px",xs:"480px",mobile:"768px",tablet:"1024px"}},components:{modal:{"width-small":"342px"},tooltip:{padding:"4px 8px","background-color":"ref(theme.colors.greyscale-1000)"},button:{"medium-height":"40px","medium-text-height":"40px","border-radius":"4px","small-height":"26px",primary:{"background--color":"ref(theme.colors.primary-text)","background--color-hover":"#1212ff","background--color-active":"#2323ff","background--color-disabled":"ref(theme.colors.greyscale-100)",color:"#fff","color-hover":"#fff","color-active":"#fff","color-focus-visible":"#fff",disabled:"ref(theme.colors.greyscale-500)"},"primary-text":{"background--color":"ref(theme.colors.primary-text)","background--color-hover":"ref(theme.colors.greyscale-100)","background--color-active":"ref(theme.colors.primary-100)","background--color-focus-visible":"#fff","background--color-disabled":"ref(theme.colors.greyscale-000)",color:"ref(theme.colors.primary-800)","color-hover":"ref(theme.colors.primary-800)",disabled:"ref(theme.colors.greyscale-400)"},secondary:{"background--color-hover":"#F6F6F6","background--color-active":"#EDEDED","background--color-focus-visible":"ref(theme.colors.greyscale-000)","background--disabled":"ref(theme.colors.greyscale-000)",color:"ref(theme.colors.primary-800)","border--color":"ref(theme.colors.greyscale-300)","border--color-hover":"ref(theme.colors.greyscale-300)","border--color-disabled":"ref(theme.colors.greyscale-300)",disabled:"ref(theme.colors.greyscale-400)"},tertiary:{"background--color":"ref(theme.colors.primary-100)","background--color-focus-visible":"ref(theme.colors.primary-100)","background--color-hover":"ref(theme.colors.primary-300)","background--color-active":"ref(theme.colors.primary-300)","background--disabled":"ref(theme.colors.primary-050)",color:"ref(theme.colors.primary-800)",disabled:"ref(theme.colors.primary-300)"},"tertiary-text":{"background--color-hover":"ref(theme.colors.greyscale-100)","color-hover":"ref(theme.colors.primary-text)",color:"ref(theme.colors.primary-600)",disabled:"ref(theme.colors.primary-300)"},danger:{"color-hover":"white","background--color":"ref(theme.colors.danger-600)","background--color-hover":"#FF2725","background--color-focus-visible":"ref(theme.colors.danger-600)","background--color-disabled":"ref(theme.colors.greyscale-100)","color-disabled":"ref(theme.colors.greyscale-400)"}},datagrid:{"header--color":"ref(theme.colors.greyscale-600)","header--size":"12px","header--weight":"500","body--background-color-hover":"ref(theme.colors.greyscale-100)"},"forms-checkbox":{"border-radius":"4px","border-color":"ref(theme.colors.primary-800)","background-color--hover":"ref(theme.colors.greyscale-100)","border--color-disabled":"ref(theme.colors.greyscale-200)","border--color":"ref(theme.colors.primary-800)","background--disabled":"ref(theme.colors.greyscale-200)","background--enable":"ref(theme.colors.primary-800)","check--disabled":"ref(theme.colors.greyscale-300)","check--enable":"ref(theme.colors.greyscale-000)",color:"ref(theme.colors.primary-text)","label--color":"ref(theme.colors.greyscale-1000)","label--size":"ref(theme.font.sizes.sm)","label--weight":"500","text--color":"ref(theme.colors.greyscale-600)","text--size":"ref(theme.font.sizes.s)","text--weight":"400","text--color-disabled":"ref(theme.colors.greyscale-300)"},"forms-labelledbox":{"label-color--small":"ref(theme.colors.greyscale-950)","label-color--small--disabled":"ref(theme.colors.greyscale-300)","label-color--big":"ref(theme.colors.greyscale-950)","label-color--big--disabled":"ref(theme.colors.greyscale-300)"},"forms-radio":{"border-color":"ref(theme.colors.primary-800)","background-color":"ref(theme.colors.greyscale-000)","accent-color":"ref(theme.colors.primary-800)","accent-color-disabled":"ref(theme.colors.greyscale-300)"},"forms-switch":{"border--color-disabled":"ref(theme.colors.greyscale-300)","border--color":"ref(theme.colors.primary-800)","handle-background-color":"white","handle-background-color--disabled":"ref(theme.colors.greyscale-000)","rail-background-color--disabled":"ref(theme.colors.greyscale-000)","accent-color":"ref(theme.colors.primary-800)"},"forms-textarea":{"label-color--focus":"ref(theme.colors.greyscale-1000)","border-radius":"4px","border-color":"ref(theme.colors.greyscale-400)","box-shadow--color--hover":"ref(theme.colors.greyscale-400)","box-shadow--color--focus":"ref(theme.colors.primary-800)","value-color":"ref(theme.colors.greyscale-950)","value-color--disabled":"ref(theme.colors.greyscale-300)","font-size":"14px"},"forms-input":{"label-color--focus":"ref(theme.colors.greyscale-1000)","border-radius":"4px","border-color":"ref(theme.colors.greyscale-400)","box-shadow--color--hover":"ref(theme.colors.greyscale-400)","box-shadow--color--focus":"ref(theme.colors.primary-800)","value-color":"ref(theme.colors.greyscale-950)","value-color--disabled":"ref(theme.colors.greyscale-300)","font-size":"14px"},"forms-select":{"label-color--focus":"ref(theme.colors.greyscale-1000)","item-font-size":"14px","border-radius":"4px","border-radius-hover":"4px","border-color":"ref(theme.colors.greyscale-400)","box-shadow--color--hover":"ref(theme.colors.greyscale-400)","box-shadow--color--focus":"ref(theme.colors.primary-800)","value-color":"ref(theme.colors.greyscale-950)","font-size":"14px"},badge:{"font-size":"ref(theme.font.sizes.xs)","border-radius":"4px","padding-inline":"ref(theme.spacings.xs)","padding-block":"ref(theme.spacings.2xs)",accent:{"background-color":"ref(theme.colors.primary-100)",color:"ref(theme.colors.primary-600)"},neutral:{"background-color":"ref(theme.colors.greyscale-100)",color:"ref(theme.colors.greyscale-600)"},danger:{"background-color":"ref(theme.colors.danger-100)",color:"ref(theme.colors.danger-600)"},success:{"background-color":"ref(theme.colors.success-100)",color:"ref(theme.colors.success-600)"},warning:{"background-color":"ref(theme.colors.warning-100)",color:"ref(theme.colors.warning-600)"},info:{"background-color":"ref(theme.colors.info-100)",color:"ref(theme.colors.info-600)"}}}}}},xn=()=>{const[t,e]=u.useState(window.innerWidth),n=parseInt(Zo.themes.default.theme.breakpoints.mobile.replace("px","")),r=parseInt(Zo.themes.default.theme.breakpoints.tablet.replace("px","")),i=()=>{e(window.innerWidth)};u.useEffect(()=>(window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}),[]);const o=t<=n,l=t<=r,a=t>r;return{isMobile:o,isTablet:l,isDesktop:a}},_d=({children:t,isOpen:e=!1})=>{const{isDesktop:n}=xn();return n?y.jsx("div",{className:"c__left-panel",children:t}):y.jsx("div",{className:Te("c__left-panel__mobile",{open:e}),children:t})},{createElement:mn,createContext:Sv,forwardRef:Id,useCallback:$e,useContext:Od,useEffect:$t,useImperativeHandle:kd,useLayoutEffect:xv,useMemo:wv,useRef:De,useState:dn}=D,ms=D[`useId${Math.random()}`.slice(0,5)],Ev=xv,Si=Sv(null);Si.displayName="PanelGroupContext";const Pt=Ev,$v=typeof ms=="function"?ms:()=>null;let Pv=0;function Bl(t=null){const e=$v(),n=De(t||e||null);return n.current===null&&(n.current=""+Pv++),t??n.current}function Nd({children:t,className:e="",collapsedSize:n,collapsible:r,defaultSize:i,forwardedRef:o,id:l,maxSize:a,minSize:s,onCollapse:c,onExpand:d,onResize:f,order:p,style:v,tagName:b="div",...h}){const g=Od(Si);if(g===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:m,expandPanel:C,getPanelSize:S,getPanelStyle:P,groupId:$,isPanelCollapsed:w,reevaluatePanelConstraints:E,registerPanel:R,resizePanel:F,unregisterPanel:V}=g,x=Bl(l),M=De({callbacks:{onCollapse:c,onExpand:d,onResize:f},constraints:{collapsedSize:n,collapsible:r,defaultSize:i,maxSize:a,minSize:s},id:x,idIsFromProps:l!==void 0,order:p});De({didLogMissingDefaultSizeWarning:!1}),Pt(()=>{const{callbacks:A,constraints:B}=M.current,_={...B};M.current.id=x,M.current.idIsFromProps=l!==void 0,M.current.order=p,A.onCollapse=c,A.onExpand=d,A.onResize=f,B.collapsedSize=n,B.collapsible=r,B.defaultSize=i,B.maxSize=a,B.minSize=s,(_.collapsedSize!==B.collapsedSize||_.collapsible!==B.collapsible||_.maxSize!==B.maxSize||_.minSize!==B.minSize)&&E(M.current,_)}),Pt(()=>{const A=M.current;return R(A),()=>{V(A)}},[p,x,R,V]),kd(o,()=>({collapse:()=>{m(M.current)},expand:A=>{C(M.current,A)},getId(){return x},getSize(){return S(M.current)},isCollapsed(){return w(M.current)},isExpanded(){return!w(M.current)},resize:A=>{F(M.current,A)}}),[m,C,S,w,x,F]);const U=P(M.current,i);return mn(b,{...h,children:t,className:e,id:l,style:{...U,...v},"data-panel":"","data-panel-collapsible":r||void 0,"data-panel-group-id":$,"data-panel-id":x,"data-panel-size":parseFloat(""+U.flexGrow).toFixed(1)})}const Go=Id((t,e)=>mn(Nd,{...t,forwardedRef:e}));Nd.displayName="Panel";Go.displayName="forwardRef(Panel)";let qo=null,Et=null;function Dv(t,e){if(e){const n=(e&Fd)!==0,r=(e&Kd)!==0,i=(e&jd)!==0,o=(e&Hd)!==0;if(n)return i?"se-resize":o?"ne-resize":"e-resize";if(r)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 Tv(){Et!==null&&(document.head.removeChild(Et),qo=null,Et=null)}function Ji(t,e){const n=Dv(t,e);qo!==n&&(qo=n,Et===null&&(Et=document.createElement("style"),document.head.appendChild(Et)),Et.innerHTML=`*{cursor: ${n}!important;}`)}function Rd(t){return t.type==="keydown"}function Md(t){return t.type.startsWith("pointer")}function Ld(t){return t.type.startsWith("mouse")}function xi(t){if(Md(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(Ld(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function _v(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Iv(t,e,n){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 Ov(t,e){if(t===e)throw new Error("Cannot compare node with itself");const n={a:Cs(t),b:Cs(e)};let r;for(;n.a.at(-1)===n.b.at(-1);)t=n.a.pop(),e=n.b.pop(),r=t;J(r,"Stacking order can only be calculated for elements with a common ancestor");const i={a:bs(ys(n.a)),b:bs(ys(n.b))};if(i.a===i.b){const o=r.childNodes,l={a:n.a.at(-1),b:n.b.at(-1)};let a=o.length;for(;a--;){const s=o[a];if(s===l.a)return 1;if(s===l.b)return-1}}return Math.sign(i.a-i.b)}const kv=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Nv(t){var e;const n=getComputedStyle((e=Ad(t))!==null&&e!==void 0?e:t).display;return n==="flex"||n==="inline-flex"}function Rv(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||Nv(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"||kv.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function ys(t){let e=t.length;for(;e--;){const n=t[e];if(J(n,"Missing node"),Rv(n))return n}return null}function bs(t){return t&&Number(getComputedStyle(t).zIndex)||0}function Cs(t){const e=[];for(;t;)e.push(t),t=Ad(t);return e}function Ad(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const Fd=1,Kd=2,jd=4,Hd=8,Mv=_v()==="coarse";let He=[],fn=!1,ut=new Map,wi=new Map;const Gn=new Set;function Lv(t,e,n,r,i){var o;const{ownerDocument:l}=e,a={direction:n,element:e,hitAreaMargins:r,setResizeHandlerState:i},s=(o=ut.get(l))!==null&&o!==void 0?o:0;return ut.set(l,s+1),Gn.add(a),Yr(),function(){var d;wi.delete(t),Gn.delete(a);const f=(d=ut.get(l))!==null&&d!==void 0?d:1;if(ut.set(l,f-1),Yr(),f===1&&ut.delete(l),He.includes(a)){const p=He.indexOf(a);p>=0&&He.splice(p,1),Wl(),i("up",!0,null)}}}function Ss(t){const{target:e}=t,{x:n,y:r}=xi(t);fn=!0,Ul({target:e,x:n,y:r}),Yr(),He.length>0&&(Xr("down",t),t.preventDefault(),t.stopPropagation())}function In(t){const{x:e,y:n}=xi(t);if(fn&&t.buttons===0&&(fn=!1,Xr("up",t)),!fn){const{target:r}=t;Ul({target:r,x:e,y:n})}Xr("move",t),Wl(),He.length>0&&t.preventDefault()}function Bt(t){const{target:e}=t,{x:n,y:r}=xi(t);wi.clear(),fn=!1,He.length>0&&t.preventDefault(),Xr("up",t),Ul({target:e,x:n,y:r}),Wl(),Yr()}function Ul({target:t,x:e,y:n}){He.splice(0);let r=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(r=t),Gn.forEach(i=>{const{element:o,hitAreaMargins:l}=i,a=o.getBoundingClientRect(),{bottom:s,left:c,right:d,top:f}=a,p=Mv?l.coarse:l.fine;if(e>=c-p&&e<=d+p&&n>=f-p&&n<=s+p){if(r!==null&&document.contains(r)&&o!==r&&!o.contains(r)&&!r.contains(o)&&Ov(r,o)>0){let b=r,h=!1;for(;b&&!b.contains(o);){if(Iv(b.getBoundingClientRect(),a)){h=!0;break}b=b.parentElement}if(h)return}He.push(i)}})}function Qi(t,e){wi.set(t,e)}function Wl(){let t=!1,e=!1;He.forEach(r=>{const{direction:i}=r;i==="horizontal"?t=!0:e=!0});let n=0;wi.forEach(r=>{n|=r}),t&&e?Ji("intersection",n):t?Ji("horizontal",n):e?Ji("vertical",n):Tv()}function Yr(){ut.forEach((t,e)=>{const{body:n}=e;n.removeEventListener("contextmenu",Bt),n.removeEventListener("pointerdown",Ss),n.removeEventListener("pointerleave",In),n.removeEventListener("pointermove",In)}),window.removeEventListener("pointerup",Bt),window.removeEventListener("pointercancel",Bt),Gn.size>0&&(fn?(He.length>0&&ut.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("contextmenu",Bt),n.addEventListener("pointerleave",In),n.addEventListener("pointermove",In))}),window.addEventListener("pointerup",Bt),window.addEventListener("pointercancel",Bt)):ut.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("pointerdown",Ss,{capture:!0}),n.addEventListener("pointermove",In))}))}function Xr(t,e){Gn.forEach(n=>{const{setResizeHandlerState:r}=n,i=He.includes(n);r(t,i,e)})}function Av(){const[t,e]=dn(0);return $e(()=>e(n=>n+1),[])}function J(t,e){if(!t)throw console.error(e),Error(e)}const Zl=10;function kt(t,e,n=Zl){return t.toFixed(n)===e.toFixed(n)?0:t>e?1:-1}function Je(t,e,n=Zl){return kt(t,e,n)===0}function _e(t,e,n){return kt(t,e,n)===0}function Fv(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){const i=t[r],o=e[r];if(!_e(i,o,n))return!1}return!0}function ln({panelConstraints:t,panelIndex:e,size:n}){const r=t[e];J(r!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:i=0,collapsible:o,maxSize:l=100,minSize:a=0}=r;if(kt(n,a)<0)if(o){const s=(i+a)/2;kt(n,s)<0?n=i:n=a}else n=a;return n=Math.min(l,n),n=parseFloat(n.toFixed(Zl)),n}function An({delta:t,initialLayout:e,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:o}){if(_e(t,0))return e;const l=[...e],[a,s]=r;J(a!=null,"Invalid first pivot index"),J(s!=null,"Invalid second pivot index");let c=0;if(o==="keyboard"){{const f=t<0?s:a,p=n[f];J(p,`Panel constraints not found for index ${f}`);const{collapsedSize:v=0,collapsible:b,minSize:h=0}=p;if(b){const g=e[f];if(J(g!=null,`Previous layout not found for panel index ${f}`),_e(g,v)){const m=h-g;kt(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}{const f=t<0?a:s,p=n[f];J(p,`No panel constraints found for index ${f}`);const{collapsedSize:v=0,collapsible:b,minSize:h=0}=p;if(b){const g=e[f];if(J(g!=null,`Previous layout not found for panel index ${f}`),_e(g,h)){const m=g-v;kt(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}}{const f=t<0?1:-1;let p=t<0?s:a,v=0;for(;;){const h=e[p];J(h!=null,`Previous layout not found for panel index ${p}`);const m=ln({panelConstraints:n,panelIndex:p,size:100})-h;if(v+=m,p+=f,p<0||p>=n.length)break}const b=Math.min(Math.abs(t),Math.abs(v));t=t<0?0-b:b}{let p=t<0?a:s;for(;p>=0&&p<n.length;){const v=Math.abs(t)-Math.abs(c),b=e[p];J(b!=null,`Previous layout not found for panel index ${p}`);const h=b-v,g=ln({panelConstraints:n,panelIndex:p,size:h});if(!_e(b,g)&&(c+=b-g,l[p]=g,c.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?p--:p++}}if(Fv(i,l))return i;{const f=t<0?s:a,p=e[f];J(p!=null,`Previous layout not found for panel index ${f}`);const v=p+c,b=ln({panelConstraints:n,panelIndex:f,size:v});if(l[f]=b,!_e(b,v)){let h=v-b,m=t<0?s:a;for(;m>=0&&m<n.length;){const C=l[m];J(C!=null,`Previous layout not found for panel index ${m}`);const S=C+h,P=ln({panelConstraints:n,panelIndex:m,size:S});if(_e(C,P)||(h-=P-C,l[m]=P),_e(h,0))break;t>0?m--:m++}}}const d=l.reduce((f,p)=>p+f,0);return _e(d,100)?l:i}function Kv({layout:t,panelsArray:e,pivotIndices:n}){let r=0,i=100,o=0,l=0;const a=n[0];J(a!=null,"No pivot index found"),e.forEach((f,p)=>{const{constraints:v}=f,{maxSize:b=100,minSize:h=0}=v;p===a?(r=h,i=b):(o+=h,l+=b)});const s=Math.min(i,100-o),c=Math.max(r,100-l),d=t[a];return{valueMax:s,valueMin:c,valueNow:d}}function qn(t,e=document){return Array.from(e.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${t}"]`))}function Vd(t,e,n=document){const i=qn(t,n).findIndex(o=>o.getAttribute("data-panel-resize-handle-id")===e);return i??null}function zd(t,e,n){const r=Vd(t,e,n);return r!=null?[r,r+1]:[-1,-1]}function Bd(t,e=document){var n;if(e instanceof HTMLElement&&(e==null||(n=e.dataset)===null||n===void 0?void 0:n.panelGroupId)==t)return e;const r=e.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return r||null}function Ei(t,e=document){const n=e.querySelector(`[data-panel-resize-handle-id="${t}"]`);return n||null}function jv(t,e,n,r=document){var i,o,l,a;const s=Ei(e,r),c=qn(t,r),d=s?c.indexOf(s):-1,f=(i=(o=n[d])===null||o===void 0?void 0:o.id)!==null&&i!==void 0?i:null,p=(l=(a=n[d+1])===null||a===void 0?void 0:a.id)!==null&&l!==void 0?l:null;return[f,p]}function Hv({committedValuesRef:t,eagerValuesRef:e,groupId:n,layout:r,panelDataArray:i,panelGroupElement:o,setLayout:l}){De({didWarnAboutMissingResizeHandle:!1}),Pt(()=>{if(!o)return;const a=qn(n,o);for(let s=0;s<i.length-1;s++){const{valueMax:c,valueMin:d,valueNow:f}=Kv({layout:r,panelsArray:i,pivotIndices:[s,s+1]}),p=a[s];if(p!=null){const v=i[s];J(v,`No panel data found for index "${s}"`),p.setAttribute("aria-controls",v.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()=>{a.forEach((s,c)=>{s.removeAttribute("aria-controls"),s.removeAttribute("aria-valuemax"),s.removeAttribute("aria-valuemin"),s.removeAttribute("aria-valuenow")})}},[n,r,i,o]),$t(()=>{if(!o)return;const a=e.current;J(a,"Eager values not found");const{panelDataArray:s}=a,c=Bd(n,o);J(c!=null,`No group found for id "${n}"`);const d=qn(n,o);J(d,`No resize handles found for group id "${n}"`);const f=d.map(p=>{const v=p.getAttribute("data-panel-resize-handle-id");J(v,"Resize handle element has no handle id attribute");const[b,h]=jv(n,v,s,o);if(b==null||h==null)return()=>{};const g=m=>{if(!m.defaultPrevented)switch(m.key){case"Enter":{m.preventDefault();const C=s.findIndex(S=>S.id===b);if(C>=0){const S=s[C];J(S,`No panel data found for index ${C}`);const P=r[C],{collapsedSize:$=0,collapsible:w,minSize:E=0}=S.constraints;if(P!=null&&w){const R=An({delta:_e(P,$)?E-$:$-P,initialLayout:r,panelConstraints:s.map(F=>F.constraints),pivotIndices:zd(n,v,o),prevLayout:r,trigger:"keyboard"});r!==R&&l(R)}}break}}};return p.addEventListener("keydown",g),()=>{p.removeEventListener("keydown",g)}});return()=>{f.forEach(p=>p())}},[o,t,e,n,r,i,l])}function xs(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function Ud(t,e){const n=t==="horizontal",{x:r,y:i}=xi(e);return n?r:i}function Vv(t,e,n,r,i){const o=n==="horizontal",l=Ei(e,i);J(l,`No resize handle element found for id "${e}"`);const a=l.getAttribute("data-panel-group-id");J(a,"Resize handle element has no group id attribute");let{initialCursorPosition:s}=r;const c=Ud(n,t),d=Bd(a,i);J(d,`No group element found for id "${a}"`);const f=d.getBoundingClientRect(),p=o?f.width:f.height;return(c-s)/p*100}function zv(t,e,n,r,i,o){if(Rd(t)){const l=n==="horizontal";let a=0;t.shiftKey?a=100:i!=null?a=i:a=10;let s=0;switch(t.key){case"ArrowDown":s=l?0:a;break;case"ArrowLeft":s=l?-a:0;break;case"ArrowRight":s=l?a:0;break;case"ArrowUp":s=l?0:-a;break;case"End":s=100;break;case"Home":s=-100;break}return s}else return r==null?0:Vv(t,e,n,r,o)}function Bv({panelDataArray:t}){const e=Array(t.length),n=t.map(o=>o.constraints);let r=0,i=100;for(let o=0;o<t.length;o++){const l=n[o];J(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;a!=null&&(r++,e[o]=a,i-=a)}for(let o=0;o<t.length;o++){const l=n[o];J(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;if(a!=null)continue;const s=t.length-r,c=i/s;r++,e[o]=c,i-=c}return e}function Ut(t,e,n){e.forEach((r,i)=>{const o=t[i];J(o,`Panel data not found for index ${i}`);const{callbacks:l,constraints:a,id:s}=o,{collapsedSize:c=0,collapsible:d}=a,f=n[s];if(f==null||r!==f){n[s]=r;const{onCollapse:p,onExpand:v,onResize:b}=l;b&&b(r,f),d&&(p||v)&&(v&&(f==null||Je(f,c))&&!Je(r,c)&&v(),p&&(f==null||!Je(f,c))&&Je(r,c)&&p())}})}function pr(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0}function Uv({defaultSize:t,dragState:e,layout:n,panelData:r,panelIndex:i,precision:o=3}){const l=n[i];let a;return l==null?a=t!=null?t.toPrecision(o):"1":r.length===1?a="1":a=l.toPrecision(o),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function Wv(t,e=10){let n=null;return(...i)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...i)},e)}}function ws(t){try{if(typeof localStorage<"u")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,n)=>{localStorage.setItem(e,n)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function Wd(t){return`react-resizable-panels:${t}`}function Zd(t){return t.map(e=>{const{constraints:n,id:r,idIsFromProps:i,order:o}=e;return i?r:o?`${o}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((e,n)=>e.localeCompare(n)).join(",")}function Gd(t,e){try{const n=Wd(t),r=e.getItem(n);if(r){const i=JSON.parse(r);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function Zv(t,e,n){var r,i;const o=(r=Gd(t,n))!==null&&r!==void 0?r:{},l=Zd(e);return(i=o[l])!==null&&i!==void 0?i:null}function Gv(t,e,n,r,i){var o;const l=Wd(t),a=Zd(e),s=(o=Gd(t,i))!==null&&o!==void 0?o:{};s[a]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{i.setItem(l,JSON.stringify(s))}catch(c){console.error(c)}}function Es({layout:t,panelConstraints:e}){const n=[...t],r=n.reduce((o,l)=>o+l,0);if(n.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${n.map(o=>`${o}%`).join(", ")}`);if(!_e(r,100)&&n.length>0)for(let o=0;o<e.length;o++){const l=n[o];J(l!=null,`No layout data found for index ${o}`);const a=100/r*l;n[o]=a}let i=0;for(let o=0;o<e.length;o++){const l=n[o];J(l!=null,`No layout data found for index ${o}`);const a=ln({panelConstraints:e,panelIndex:o,size:l});l!=a&&(i+=l-a,n[o]=a)}if(!_e(i,0))for(let o=0;o<e.length;o++){const l=n[o];J(l!=null,`No layout data found for index ${o}`);const a=l+i,s=ln({panelConstraints:e,panelIndex:o,size:a});if(l!==s&&(i-=s-l,n[o]=s,_e(i,0)))break}return n}const qv=100,Fn={getItem:t=>(ws(Fn),Fn.getItem(t)),setItem:(t,e)=>{ws(Fn),Fn.setItem(t,e)}},$s={};function qd({autoSaveId:t=null,children:e,className:n="",direction:r,forwardedRef:i,id:o=null,onLayout:l=null,keyboardResizeBy:a=null,storage:s=Fn,style:c,tagName:d="div",...f}){const p=Bl(o),v=De(null),[b,h]=dn(null),[g,m]=dn([]),C=Av(),S=De({}),P=De(new Map),$=De(0),w=De({autoSaveId:t,direction:r,dragState:b,id:p,keyboardResizeBy:a,onLayout:l,storage:s}),E=De({layout:g,panelDataArray:[],panelDataArrayChanged:!1});De({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),kd(i,()=>({getId:()=>w.current.id,getLayout:()=>{const{layout:O}=E.current;return O},setLayout:O=>{const{onLayout:H}=w.current,{layout:K,panelDataArray:j}=E.current,z=Es({layout:O,panelConstraints:j.map(W=>W.constraints)});xs(K,z)||(m(z),E.current.layout=z,H&&H(z),Ut(j,z,S.current))}}),[]),Pt(()=>{w.current.autoSaveId=t,w.current.direction=r,w.current.dragState=b,w.current.id=p,w.current.onLayout=l,w.current.storage=s}),Hv({committedValuesRef:w,eagerValuesRef:E,groupId:p,layout:g,panelDataArray:E.current.panelDataArray,setLayout:m,panelGroupElement:v.current}),$t(()=>{const{panelDataArray:O}=E.current;if(t){if(g.length===0||g.length!==O.length)return;let H=$s[t];H==null&&(H=Wv(Gv,qv),$s[t]=H);const K=[...O],j=new Map(P.current);H(t,K,j,g,s)}},[t,g,s]),$t(()=>{});const R=$e(O=>{const{onLayout:H}=w.current,{layout:K,panelDataArray:j}=E.current;if(O.constraints.collapsible){const z=j.map(ce=>ce.constraints),{collapsedSize:W=0,panelSize:q,pivotIndices:X}=yt(j,O,K);if(J(q!=null,`Panel size not found for panel "${O.id}"`),!Je(q,W)){P.current.set(O.id,q);const G=nn(j,O)===j.length-1?q-W:W-q,te=An({delta:G,initialLayout:K,panelConstraints:z,pivotIndices:X,prevLayout:K,trigger:"imperative-api"});pr(K,te)||(m(te),E.current.layout=te,H&&H(te),Ut(j,te,S.current))}}},[]),F=$e((O,H)=>{const{onLayout:K}=w.current,{layout:j,panelDataArray:z}=E.current;if(O.constraints.collapsible){const W=z.map(ue=>ue.constraints),{collapsedSize:q=0,panelSize:X=0,minSize:ce=0,pivotIndices:G}=yt(z,O,j),te=H??ce;if(Je(X,q)){const ue=P.current.get(O.id),ee=ue!=null&&ue>=te?ue:te,wn=nn(z,O)===z.length-1?X-ee:ee-X,Ee=An({delta:wn,initialLayout:j,panelConstraints:W,pivotIndices:G,prevLayout:j,trigger:"imperative-api"});pr(j,Ee)||(m(Ee),E.current.layout=Ee,K&&K(Ee),Ut(z,Ee,S.current))}}},[]),V=$e(O=>{const{layout:H,panelDataArray:K}=E.current,{panelSize:j}=yt(K,O,H);return J(j!=null,`Panel size not found for panel "${O.id}"`),j},[]),x=$e((O,H)=>{const{panelDataArray:K}=E.current,j=nn(K,O);return Uv({defaultSize:H,dragState:b,layout:g,panelData:K,panelIndex:j})},[b,g]),M=$e(O=>{const{layout:H,panelDataArray:K}=E.current,{collapsedSize:j=0,collapsible:z,panelSize:W}=yt(K,O,H);return J(W!=null,`Panel size not found for panel "${O.id}"`),z===!0&&Je(W,j)},[]),U=$e(O=>{const{layout:H,panelDataArray:K}=E.current,{collapsedSize:j=0,collapsible:z,panelSize:W}=yt(K,O,H);return J(W!=null,`Panel size not found for panel "${O.id}"`),!z||kt(W,j)>0},[]),A=$e(O=>{const{panelDataArray:H}=E.current;H.push(O),H.sort((K,j)=>{const z=K.order,W=j.order;return z==null&&W==null?0:z==null?-1:W==null?1:z-W}),E.current.panelDataArrayChanged=!0,C()},[C]);Pt(()=>{if(E.current.panelDataArrayChanged){E.current.panelDataArrayChanged=!1;const{autoSaveId:O,onLayout:H,storage:K}=w.current,{layout:j,panelDataArray:z}=E.current;let W=null;if(O){const X=Zv(O,z,K);X&&(P.current=new Map(Object.entries(X.expandToSizes)),W=X.layout)}W==null&&(W=Bv({panelDataArray:z}));const q=Es({layout:W,panelConstraints:z.map(X=>X.constraints)});xs(j,q)||(m(q),E.current.layout=q,H&&H(q),Ut(z,q,S.current))}}),Pt(()=>{const O=E.current;return()=>{O.layout=[]}},[]);const B=$e(O=>{let H=!1;const K=v.current;return K&&window.getComputedStyle(K,null).getPropertyValue("direction")==="rtl"&&(H=!0),function(z){z.preventDefault();const W=v.current;if(!W)return()=>null;const{direction:q,dragState:X,id:ce,keyboardResizeBy:G,onLayout:te}=w.current,{layout:ue,panelDataArray:ee}=E.current,{initialLayout:it}=X??{},wn=zd(ce,O,W);let Ee=zv(z,O,q,X,G,W);const ua=q==="horizontal";ua&&H&&(Ee=-Ee);const Hf=ee.map(Vf=>Vf.constraints),En=An({delta:Ee,initialLayout:it??ue,panelConstraints:Hf,pivotIndices:wn,prevLayout:ue,trigger:Rd(z)?"keyboard":"mouse-or-touch"}),da=!pr(ue,En);(Md(z)||Ld(z))&&$.current!=Ee&&($.current=Ee,!da&&Ee!==0?ua?Qi(O,Ee<0?Fd:Kd):Qi(O,Ee<0?jd:Hd):Qi(O,0)),da&&(m(En),E.current.layout=En,te&&te(En),Ut(ee,En,S.current))}},[]),_=$e((O,H)=>{const{onLayout:K}=w.current,{layout:j,panelDataArray:z}=E.current,W=z.map(ue=>ue.constraints),{panelSize:q,pivotIndices:X}=yt(z,O,j);J(q!=null,`Panel size not found for panel "${O.id}"`);const G=nn(z,O)===z.length-1?q-H:H-q,te=An({delta:G,initialLayout:j,panelConstraints:W,pivotIndices:X,prevLayout:j,trigger:"imperative-api"});pr(j,te)||(m(te),E.current.layout=te,K&&K(te),Ut(z,te,S.current))},[]),N=$e((O,H)=>{const{layout:K,panelDataArray:j}=E.current,{collapsedSize:z=0,collapsible:W}=H,{collapsedSize:q=0,collapsible:X,maxSize:ce=100,minSize:G=0}=O.constraints,{panelSize:te}=yt(j,O,K);te!=null&&(W&&X&&Je(te,z)?Je(z,q)||_(O,q):te<G?_(O,G):te>ce&&_(O,ce))},[_]),k=$e((O,H)=>{const{direction:K}=w.current,{layout:j}=E.current;if(!v.current)return;const z=Ei(O,v.current);J(z,`Drag handle element not found for id "${O}"`);const W=Ud(K,H);h({dragHandleId:O,dragHandleRect:z.getBoundingClientRect(),initialCursorPosition:W,initialLayout:j})},[]),Z=$e(()=>{h(null)},[]),I=$e(O=>{const{panelDataArray:H}=E.current,K=nn(H,O);K>=0&&(H.splice(K,1),delete S.current[O.id],E.current.panelDataArrayChanged=!0,C())},[C]),L=wv(()=>({collapsePanel:R,direction:r,dragState:b,expandPanel:F,getPanelSize:V,getPanelStyle:x,groupId:p,isPanelCollapsed:M,isPanelExpanded:U,reevaluatePanelConstraints:N,registerPanel:A,registerResizeHandle:B,resizePanel:_,startDragging:k,stopDragging:Z,unregisterPanel:I,panelGroupElement:v.current}),[R,b,r,F,V,x,p,M,U,N,A,B,_,k,Z,I]),T={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return mn(Si.Provider,{value:L},mn(d,{...f,children:e,className:n,id:o,ref:v,style:{...T,...c},"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":p}))}const Yd=Id((t,e)=>mn(qd,{...t,forwardedRef:e}));qd.displayName="PanelGroup";Yd.displayName="forwardRef(PanelGroup)";function nn(t,e){return t.findIndex(n=>n===e||n.id===e.id)}function yt(t,e,n){const r=nn(t,e),o=r===t.length-1?[r-1,r]:[r,r+1],l=n[r];return{...e.constraints,panelSize:l,pivotIndices:o}}function Yv({disabled:t,handleId:e,resizeHandler:n,panelGroupElement:r}){$t(()=>{if(t||n==null||r==null)return;const i=Ei(e,r);if(i==null)return;const o=l=>{if(!l.defaultPrevented)switch(l.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{l.preventDefault(),n(l);break}case"F6":{l.preventDefault();const a=i.getAttribute("data-panel-group-id");J(a,`No group element found for id "${a}"`);const s=qn(a,r),c=Vd(a,e,r);J(c!==null,`No resize element found for id "${e}"`);const d=l.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)}},[r,t,e,n])}function Xd({children:t=null,className:e="",disabled:n=!1,hitAreaMargins:r,id:i,onBlur:o,onDragging:l,onFocus:a,style:s={},tabIndex:c=0,tagName:d="div",...f}){var p,v;const b=De(null),h=De({onDragging:l});$t(()=>{h.current.onDragging=l});const g=Od(Si);if(g===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:m,groupId:C,registerResizeHandle:S,startDragging:P,stopDragging:$,panelGroupElement:w}=g,E=Bl(i),[R,F]=dn("inactive"),[V,x]=dn(!1),[M,U]=dn(null),A=De({state:R});Pt(()=>{A.current.state=R}),$t(()=>{if(n)U(null);else{const k=S(E);U(()=>k)}},[n,E,S]);const B=(p=r==null?void 0:r.coarse)!==null&&p!==void 0?p:15,_=(v=r==null?void 0:r.fine)!==null&&v!==void 0?v:5;return $t(()=>{if(n||M==null)return;const k=b.current;return J(k,"Element ref not attached"),Lv(E,k,m,{coarse:B,fine:_},(I,L,T)=>{if(L)switch(I){case"down":{F("drag"),J(T,'Expected event to be defined for "down" action'),P(E,T);const{onDragging:O}=h.current;O&&O(!0);break}case"move":{const{state:O}=A.current;O!=="drag"&&F("hover"),J(T,'Expected event to be defined for "move" action'),M(T);break}case"up":{F("hover"),$();const{onDragging:O}=h.current;O&&O(!1);break}}else F("inactive")})},[B,m,n,_,S,E,M,P,$]),Yv({disabled:n,handleId:E,resizeHandler:M,panelGroupElement:w}),mn(d,{...f,children:t,className:e,id:i,onBlur:()=>{x(!1),o==null||o()},onFocus:()=>{x(!0),a==null||a()},ref:b,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":R==="drag"?"pointer":V?"keyboard":void 0,"data-resize-handle-state":R,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":E})}Xd.displayName="PanelResizeHandle";const Xv=({children:t,isOpen:e})=>{const{isDesktop:n}=xn();return n?y.jsx("div",{className:Te("c__right-panel",{open:e}),children:t}):y.jsx("div",{className:Te("c__right-panel__mobile",{open:e}),children:t})},Jv=(t,e,n)=>{const[r,i]=u.useState(typeof e>"u"?t:e),o=l=>{n?n(l):i(l)};return u.useEffect(()=>{n&&typeof e<"u"&&e!==r&&i(e)},[e]),[r,o]},Qv=({icon:t,children:e,hideLeftPanelOnDesktop:n=!1,leftPanelContent:r,rightPanelContent:i,rightHeaderContent:o,languages:l,enableResize:a=!1,rightPanelIsOpen:s=!1,...c})=>{const[d,f]=Jv(!1,c.isLeftPanelOpen,c.setIsLeftPanelOpen),{isDesktop:p}=xn(),v=u.useRef(null),[b,h]=u.useState(vr(300,p)),[g,m]=u.useState(vr(450,p)),C=()=>{f(!d)};u.useEffect(()=>{const $=()=>{const w=Math.round(vr(300,p)),E=Math.round(Math.min(vr(450,p),40));h(p?w:0),m(a?E:w)};return $(),window.addEventListener("resize",()=>{$()}),()=>{window.removeEventListener("resize",$)}},[p,a]);const S=p?!n:!0,P=p?!n:d;return y.jsxs("div",{className:"c__main-layout",children:[y.jsx("div",{className:"c__main-layout__header",children:y.jsx(Td,{onTogglePanel:C,isPanelOpen:d,rightIcon:o,leftIcon:t,languages:l})}),y.jsx("div",{className:"c__main-layout__content",children:y.jsxs(Yd,{autoSaveId:"persistance",direction:"horizontal",children:[S&&y.jsxs(y.Fragment,{children:[y.jsx(Go,{ref:v,order:0,defaultSize:b,minSize:b,maxSize:g,children:y.jsx(_d,{isOpen:P,children:r})}),p&&y.jsx(Xd,{className:"bg-greyscale-200",style:{width:"1px"}})]}),y.jsx(Go,{order:1,children:y.jsxs("div",{className:"c__main-layout__content__center",children:[y.jsx("div",{className:"c__main-layout__content__center__children",children:e}),y.jsx(Xv,{isOpen:s,children:i})]})})]})})]})},vr=(t,e)=>{if(!e)return 0;const n=window.innerWidth;return t/n*100},eg=52,Gl=({size:t="sm"})=>y.jsx("div",{className:["c__spinner",t].join(" ")}),Jd=({children:t,text:e,...n})=>y.jsxs("div",{className:"suite__label__container",children:[y.jsx("label",{...n,children:t}),e&&y.jsx("span",{className:"suite__label__container__description",children:e})]}),tg=({label:t,text:e,labelSide:n="right",children:r})=>y.jsxs("div",{className:Te("c__with-label",{[n]:!0}),children:[y.jsx(Jd,{children:t,text:e}),r]});var Ps=1,ng=.9,rg=.8,ig=.17,eo=.1,to=.999,og=.9999,lg=.99,ag=/[\\\/_+.#"@\[\(\{&]/,sg=/[\\\/_+.#"@\[\(\{&]/g,cg=/[\s-]/,Qd=/[\s-]/g;function Yo(t,e,n,r,i,o,l){if(o===e.length)return i===t.length?Ps:lg;var a=`${i},${o}`;if(l[a]!==void 0)return l[a];for(var s=r.charAt(o),c=n.indexOf(s,i),d=0,f,p,v,b;c>=0;)f=Yo(t,e,n,r,c+1,o+1,l),f>d&&(c===i?f*=Ps:ag.test(t.charAt(c-1))?(f*=rg,v=t.slice(i,c-1).match(sg),v&&i>0&&(f*=Math.pow(to,v.length))):cg.test(t.charAt(c-1))?(f*=ng,b=t.slice(i,c-1).match(Qd),b&&i>0&&(f*=Math.pow(to,b.length))):(f*=ig,i>0&&(f*=Math.pow(to,c-i))),t.charAt(c)!==e.charAt(o)&&(f*=og)),(f<eo&&n.charAt(c-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&n.charAt(c-1)!==r.charAt(o))&&(p=Yo(t,e,n,r,c+1,o+2,l),p*eo>f&&(f=p*eo)),f>d&&(d=f),c=n.indexOf(s,c+1);return l[a]=d,d}function Ds(t){return t.toLowerCase().replace(Qd," ")}function ug(t,e,n){return t=n&&n.length>0?`${t+" "+n.join(" ")}`:t,Yo(t,e,Ds(t),Ds(e),0,0,{})}function ht(t,e,{checkForDefaultPrevented:n=!0}={}){return function(i){if(t==null||t(i),n===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}function Ts(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function e2(...t){return e=>{let n=!1;const r=t.map(i=>{const o=Ts(i,e);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():Ts(t[i],null)}}}}function Ht(...t){return D.useCallback(e2(...t),t)}function dg(t,e){const n=D.createContext(e),r=o=>{const{children:l,...a}=o,s=D.useMemo(()=>a,Object.values(a));return y.jsx(n.Provider,{value:s,children:l})};r.displayName=t+"Provider";function i(o){const l=D.useContext(n);if(l)return l;if(e!==void 0)return e;throw new Error(`\`${o}\` must be used within \`${t}\``)}return[r,i]}function fg(t,e=[]){let n=[];function r(o,l){const a=D.createContext(l),s=n.length;n=[...n,l];const c=f=>{var m;const{scope:p,children:v,...b}=f,h=((m=p==null?void 0:p[t])==null?void 0:m[s])||a,g=D.useMemo(()=>b,Object.values(b));return y.jsx(h.Provider,{value:g,children:v})};c.displayName=o+"Provider";function d(f,p){var h;const v=((h=p==null?void 0:p[t])==null?void 0:h[s])||a,b=D.useContext(v);if(b)return b;if(l!==void 0)return l;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[c,d]}const i=()=>{const o=n.map(l=>D.createContext(l));return function(a){const s=(a==null?void 0:a[t])||o;return D.useMemo(()=>({[`__scope${t}`]:{...a,[t]:s}}),[a,s])}};return i.scopeName=t,[r,hg(i,...e)]}function hg(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const l=r.reduce((a,{useScope:s,scopeName:c})=>{const f=s(o)[`__scope${c}`];return{...a,...f}},{});return D.useMemo(()=>({[`__scope${e.scopeName}`]:l}),[l])}};return n.scopeName=e.scopeName,n}var Yn=globalThis!=null&&globalThis.document?D.useLayoutEffect:()=>{},pg=D[" useId ".trim().toString()]||(()=>{}),vg=0;function et(t){const[e,n]=D.useState(pg());return Yn(()=>{n(r=>r??String(vg++))},[t]),e?`radix-${e}`:""}var gg=D[" useInsertionEffect ".trim().toString()]||Yn;function mg({prop:t,defaultProp:e,onChange:n=()=>{},caller:r}){const[i,o,l]=yg({defaultProp:e,onChange:n}),a=t!==void 0,s=a?t:i;{const d=D.useRef(t!==void 0);D.useEffect(()=>{const f=d.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const c=D.useCallback(d=>{var f;if(a){const p=bg(d)?d(t):d;p!==t&&((f=l.current)==null||f.call(l,p))}else o(d)},[a,t,o,l]);return[s,c]}function yg({defaultProp:t,onChange:e}){const[n,r]=D.useState(t),i=D.useRef(n),o=D.useRef(e);return gg(()=>{o.current=e},[e]),D.useEffect(()=>{var l;i.current!==n&&((l=o.current)==null||l.call(o,n),i.current=n)},[n,i]),[n,r,o]}function bg(t){return typeof t=="function"}function t2(t){const e=Cg(t),n=D.forwardRef((r,i)=>{const{children:o,...l}=r,a=D.Children.toArray(o),s=a.find(xg);if(s){const c=s.props.children,d=a.map(f=>f===s?D.Children.count(c)>1?D.Children.only(null):D.isValidElement(c)?c.props.children:null:f);return y.jsx(e,{...l,ref:i,children:D.isValidElement(c)?D.cloneElement(c,void 0,d):null})}return y.jsx(e,{...l,ref:i,children:o})});return n.displayName=`${t}.Slot`,n}function Cg(t){const e=D.forwardRef((n,r)=>{const{children:i,...o}=n;if(D.isValidElement(i)){const l=Eg(i),a=wg(o,i.props);return i.type!==D.Fragment&&(a.ref=r?e2(r,l):l),D.cloneElement(i,a)}return D.Children.count(i)>1?D.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var Sg=Symbol("radix.slottable");function xg(t){return D.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Sg}function wg(t,e){const n={...e};for(const r in e){const i=t[r],o=e[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{const s=o(...a);return i(...a),s}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...t,...n}}function Eg(t){var r,i;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var $g=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],me=$g.reduce((t,e)=>{const n=t2(`Primitive.${e}`),r=D.forwardRef((i,o)=>{const{asChild:l,...a}=i,s=l?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(s,{...a,ref:o})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function Pg(t,e){t&&zf.flushSync(()=>t.dispatchEvent(e))}function Xn(t){const e=D.useRef(t);return D.useEffect(()=>{e.current=t}),D.useMemo(()=>(...n)=>{var r;return(r=e.current)==null?void 0:r.call(e,...n)},[])}function Dg(t,e=globalThis==null?void 0:globalThis.document){const n=Xn(t);D.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[n,e])}var Tg="DismissableLayer",Xo="dismissableLayer.update",_g="dismissableLayer.pointerDownOutside",Ig="dismissableLayer.focusOutside",_s,n2=D.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),r2=D.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:l,onDismiss:a,...s}=t,c=D.useContext(n2),[d,f]=D.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=D.useState({}),b=Ht(e,E=>f(E)),h=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),m=h.indexOf(g),C=d?h.indexOf(d):-1,S=c.layersWithOutsidePointerEventsDisabled.size>0,P=C>=m,$=Ng(E=>{const R=E.target,F=[...c.branches].some(V=>V.contains(R));!P||F||(i==null||i(E),l==null||l(E),E.defaultPrevented||a==null||a())},p),w=Rg(E=>{const R=E.target;[...c.branches].some(V=>V.contains(R))||(o==null||o(E),l==null||l(E),E.defaultPrevented||a==null||a())},p);return Dg(E=>{C===c.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},p),D.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(_s=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Is(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=_s)}},[d,p,n,c]),D.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Is())},[d,c]),D.useEffect(()=>{const E=()=>v({});return document.addEventListener(Xo,E),()=>document.removeEventListener(Xo,E)},[]),y.jsx(me.div,{...s,ref:b,style:{pointerEvents:S?P?"auto":"none":void 0,...t.style},onFocusCapture:ht(t.onFocusCapture,w.onFocusCapture),onBlurCapture:ht(t.onBlurCapture,w.onBlurCapture),onPointerDownCapture:ht(t.onPointerDownCapture,$.onPointerDownCapture)})});r2.displayName=Tg;var Og="DismissableLayerBranch",kg=D.forwardRef((t,e)=>{const n=D.useContext(n2),r=D.useRef(null),i=Ht(e,r);return D.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),y.jsx(me.div,{...t,ref:i})});kg.displayName=Og;function Ng(t,e=globalThis==null?void 0:globalThis.document){const n=Xn(t),r=D.useRef(!1),i=D.useRef(()=>{});return D.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let s=function(){i2(_g,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=s,e.addEventListener("click",i.current,{once:!0})):s()}else e.removeEventListener("click",i.current);r.current=!1},l=window.setTimeout(()=>{e.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(l),e.removeEventListener("pointerdown",o),e.removeEventListener("click",i.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function Rg(t,e=globalThis==null?void 0:globalThis.document){const n=Xn(t),r=D.useRef(!1);return D.useEffect(()=>{const i=o=>{o.target&&!r.current&&i2(Ig,n,{originalEvent:o},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Is(){const t=new CustomEvent(Xo);document.dispatchEvent(t)}function i2(t,e,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&i.addEventListener(t,e,{once:!0}),r?Pg(i,o):i.dispatchEvent(o)}var no="focusScope.autoFocusOnMount",ro="focusScope.autoFocusOnUnmount",Os={bubbles:!1,cancelable:!0},Mg="FocusScope",o2=D.forwardRef((t,e)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...l}=t,[a,s]=D.useState(null),c=Xn(i),d=Xn(o),f=D.useRef(null),p=Ht(e,h=>s(h)),v=D.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;D.useEffect(()=>{if(r){let h=function(S){if(v.paused||!a)return;const P=S.target;a.contains(P)?f.current=P:lt(f.current,{select:!0})},g=function(S){if(v.paused||!a)return;const P=S.relatedTarget;P!==null&&(a.contains(P)||lt(f.current,{select:!0}))},m=function(S){if(document.activeElement===document.body)for(const $ of S)$.removedNodes.length>0&&lt(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",g);const C=new MutationObserver(m);return a&&C.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",g),C.disconnect()}}},[r,a,v.paused]),D.useEffect(()=>{if(a){Ns.add(v);const h=document.activeElement;if(!a.contains(h)){const m=new CustomEvent(no,Os);a.addEventListener(no,c),a.dispatchEvent(m),m.defaultPrevented||(Lg(Hg(l2(a)),{select:!0}),document.activeElement===h&&lt(a))}return()=>{a.removeEventListener(no,c),setTimeout(()=>{const m=new CustomEvent(ro,Os);a.addEventListener(ro,d),a.dispatchEvent(m),m.defaultPrevented||lt(h??document.body,{select:!0}),a.removeEventListener(ro,d),Ns.remove(v)},0)}}},[a,c,d,v]);const b=D.useCallback(h=>{if(!n&&!r||v.paused)return;const g=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,m=document.activeElement;if(g&&m){const C=h.currentTarget,[S,P]=Ag(C);S&&P?!h.shiftKey&&m===P?(h.preventDefault(),n&&lt(S,{select:!0})):h.shiftKey&&m===S&&(h.preventDefault(),n&&lt(P,{select:!0})):m===C&&h.preventDefault()}},[n,r,v.paused]);return y.jsx(me.div,{tabIndex:-1,...l,ref:p,onKeyDown:b})});o2.displayName=Mg;function Lg(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(lt(r,{select:e}),document.activeElement!==n)return}function Ag(t){const e=l2(t),n=ks(e,t),r=ks(e.reverse(),t);return[n,r]}function l2(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function ks(t,e){for(const n of t)if(!Fg(n,{upTo:e}))return n}function Fg(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 Kg(t){return t instanceof HTMLInputElement&&"select"in t}function lt(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&Kg(t)&&e&&t.select()}}var Ns=jg();function jg(){let t=[];return{add(e){const n=t[0];e!==n&&(n==null||n.pause()),t=Rs(t,e),t.unshift(e)},remove(e){var n;t=Rs(t,e),(n=t[0])==null||n.resume()}}}function Rs(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}function Hg(t){return t.filter(e=>e.tagName!=="A")}var Vg="Portal",a2=D.forwardRef((t,e)=>{var a;const{container:n,...r}=t,[i,o]=D.useState(!1);Yn(()=>o(!0),[]);const l=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return l?At.createPortal(y.jsx(me.div,{...r,ref:e}),l):null});a2.displayName=Vg;function zg(t,e){return D.useReducer((n,r)=>e[n][r]??n,t)}var $i=t=>{const{present:e,children:n}=t,r=Bg(e),i=typeof n=="function"?n({present:r.isPresent}):D.Children.only(n),o=Ht(r.ref,Ug(i));return typeof n=="function"||r.isPresent?D.cloneElement(i,{ref:o}):null};$i.displayName="Presence";function Bg(t){const[e,n]=D.useState(),r=D.useRef(null),i=D.useRef(t),o=D.useRef("none"),l=t?"mounted":"unmounted",[a,s]=zg(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return D.useEffect(()=>{const c=gr(r.current);o.current=a==="mounted"?c:"none"},[a]),Yn(()=>{const c=r.current,d=i.current;if(d!==t){const p=o.current,v=gr(c);t?s("MOUNT"):v==="none"||(c==null?void 0:c.display)==="none"?s("UNMOUNT"):s(d&&p!==v?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,s]),Yn(()=>{if(e){let c;const d=e.ownerDocument.defaultView??window,f=v=>{const h=gr(r.current).includes(v.animationName);if(v.target===e&&h&&(s("ANIMATION_END"),!i.current)){const g=e.style.animationFillMode;e.style.animationFillMode="forwards",c=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=g)})}},p=v=>{v.target===e&&(o.current=gr(r.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(a),ref:D.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function gr(t){return(t==null?void 0:t.animationName)||"none"}function Ug(t){var r,i;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var io=0;function Wg(){D.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??Ms()),document.body.insertAdjacentElement("beforeend",t[1]??Ms()),io++,()=>{io===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),io--}},[])}function Ms(){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 Tr="right-scroll-bar-position",_r="width-before-scroll-bar",Zg="with-scroll-bars-hidden",Gg="--removed-body-scroll-bar-size";function oo(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function qg(t,e){var n=u.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=e,n.facade}var Yg=typeof window<"u"?D.useLayoutEffect:D.useEffect,Ls=new WeakMap;function Xg(t,e){var n=qg(null,function(r){return t.forEach(function(i){return oo(i,r)})});return Yg(function(){var r=Ls.get(n);if(r){var i=new Set(r),o=new Set(t),l=n.current;i.forEach(function(a){o.has(a)||oo(a,null)}),o.forEach(function(a){i.has(a)||oo(a,l)})}Ls.set(n,t)},[t]),n}function Jg(t){return t}function Qg(t,e){e===void 0&&(e=Jg);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(o){var l=e(o,r);return n.push(l),function(){n=n.filter(function(a){return a!==l})}},assignSyncMedium:function(o){for(r=!0;n.length;){var l=n;n=[],l.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var l=[];if(n.length){var a=n;n=[],a.forEach(o),l=n}var s=function(){var d=l;l=[],d.forEach(o)},c=function(){return Promise.resolve().then(s)};c(),n={push:function(d){l.push(d),c()},filter:function(d){return l=l.filter(d),n}}}};return i}function e4(t){t===void 0&&(t={});var e=Qg(null);return e.options=Ze({async:!0,ssr:!1},t),e}var s2=function(t){var e=t.sideCar,n=xu(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return D.createElement(r,Ze({},n))};s2.isSideCarExport=!0;function t4(t,e){return t.useMedium(e),s2}var c2=e4(),lo=function(){},Pi=D.forwardRef(function(t,e){var n=D.useRef(null),r=D.useState({onScrollCapture:lo,onWheelCapture:lo,onTouchMoveCapture:lo}),i=r[0],o=r[1],l=t.forwardProps,a=t.children,s=t.className,c=t.removeScrollBar,d=t.enabled,f=t.shards,p=t.sideCar,v=t.noRelative,b=t.noIsolation,h=t.inert,g=t.allowPinchZoom,m=t.as,C=m===void 0?"div":m,S=t.gapMode,P=xu(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),$=p,w=Xg([n,e]),E=Ze(Ze({},P),i);return D.createElement(D.Fragment,null,d&&D.createElement($,{sideCar:c2,removeScrollBar:c,shards:f,noRelative:v,noIsolation:b,inert:h,setCallbacks:o,allowPinchZoom:!!g,lockRef:n,gapMode:S}),l?D.cloneElement(D.Children.only(a),Ze(Ze({},E),{ref:w})):D.createElement(C,Ze({},E,{className:s,ref:w}),a))});Pi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Pi.classNames={fullWidth:_r,zeroRight:Tr};var n4=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function r4(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=n4();return e&&t.setAttribute("nonce",e),t}function i4(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function o4(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var l4=function(){var t=0,e=null;return{add:function(n){t==0&&(e=r4())&&(i4(e,n),o4(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},a4=function(){var t=l4();return function(e,n){D.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},u2=function(){var t=a4(),e=function(n){var r=n.styles,i=n.dynamic;return t(r,i),null};return e},s4={left:0,top:0,right:0,gap:0},ao=function(t){return parseInt(t||"",10)||0},c4=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],i=e[t==="padding"?"paddingRight":"marginRight"];return[ao(n),ao(r),ao(i)]},u4=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return s4;var e=c4(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},d4=u2(),hn="data-scroll-locked",f4=function(t,e,n,r){var i=t.left,o=t.top,l=t.right,a=t.gap;return n===void 0&&(n="margin"),`
44
+ */var Na;function Ch(){return Na||(Na=1,process.env.NODE_ENV!=="production"&&function(){function t(v,y){return v===y&&(v!==0||1/v===1/y)||v!==v&&y!==y}function e(v,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 g=y();o(h,g)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}g=l({inst:{value:h,getSnapshot:y}});var b=g[0].inst,C=g[1];return s(function(){b.value=h,b.getSnapshot=y,n(b)&&C({inst:b})},[v,h,y]),a(function(){return n(b)&&C({inst:b}),v(function(){n(b)&&C({inst:b})})},[v]),c(h),h}function n(v){var y=v.getSnapshot;v=v.value;try{var h=y();return!o(v,h)}catch{return!0}}function r(v,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,l=i.useState,a=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"?r:e;Bi.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())}()),Bi}var Ra;function Sh(){return Ra||(Ra=1,process.env.NODE_ENV==="production"?dr.exports=bh():dr.exports=Ch()),dr.exports}var Dl=Sh();const Cu=u.createContext(!1),Wn=u.createContext(null);function gi(t){if(u.useContext(Wn))return t.content;let{collection:n,document:r}=$h(t.createCollection);return u.createElement(u.Fragment,null,u.createElement(q1,null,u.createElement(Wn.Provider,{value:r},t.content)),u.createElement(wh,{render:t.children,collection:n}))}function wh({collection:t,render:e}){return e(t)}function xh(t,e,n){let r=tr(),i=u.useRef(r);i.current=r;let o=u.useCallback(()=>i.current?n():e(),[e,n]);return Dl.useSyncExternalStore(t,o)}const Eh=typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore:xh;function $h(t){let[e]=u.useState(()=>new G1((t==null?void 0:t())||new Sl)),n=u.useCallback(l=>e.subscribe(l),[e]),r=u.useCallback(()=>{let l=e.getCollection();return e.isSSR&&e.resetAfterSSR(),l},[e]),i=u.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]),o=Eh(n,r,i);return re(()=>(e.isMounted=!0,()=>{e.isMounted=!1}),[e]),{collection:o,document:e}}const Ao=u.createContext(null);function Ph(t,e,n,r,i,o){let l=u.useCallback(s=>{s==null||s.setProps(e,n,r,o)},[e,n,r,o]),a=u.useContext(Ao);if(a){let s=a.ownerDocument.nodesByProps.get(e);return s||(s=a.ownerDocument.createElement(t),s.setProps(e,n,r,o),a.appendChild(s),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(e,s)),i?u.createElement(Ao.Provider,{value:s},i):null}return u.createElement(t,{ref:l},i)}function mi(t,e){let n=({node:i})=>e(i.props,i.props.ref,i),r=u.forwardRef((i,o)=>{let l=u.useContext(Mo);if(!u.useContext(Cu)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,o)}return Ph(t,i,o,"children"in i?i.children:null,null,s=>u.createElement(Mo.Provider,{value:l},u.createElement(n,{node:s})))});return r.displayName=e.name,r}function Dh(t){return au({...t,addIdAndValue:!0})}const Ma=u.createContext(null);function Tl(t){let e=u.useContext(Ma),n=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies),r=t.idScope||(e==null?void 0:e.idScope),i=Dh({...t,idScope:r,dependencies:n});return u.useContext(Wn)&&(i=u.createElement(Th,null,i)),e=u.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),u.createElement(Ma.Provider,{value:e},i)}function Th({children:t}){let e=u.useContext(Wn),n=u.useMemo(()=>u.createElement(Wn.Provider,{value:null},u.createElement(Cu.Provider,{value:!0},t)),[t]);return tr()?u.createElement(Ao.Provider,{value:e},n):At.createPortal(n,e)}const _h=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Ih=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Oh(t){if(Intl.Locale){let n=new Intl.Locale(t).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return _h.has(n.script)}let e=t.split("-")[0];return Ih.has(e)}const kh=Symbol.for("react-aria.i18n.locale");function Su(){let t=typeof window<"u"&&window[kh]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:Oh(t)?"rtl":"ltr"}}let Fo=Su(),Mn=new Set;function La(){Fo=Su();for(let t of Mn)t(Fo)}function Nh(){let t=tr(),[e,n]=u.useState(Fo);return u.useEffect(()=>(Mn.size===0&&window.addEventListener("languagechange",La),Mn.add(n),()=>{Mn.delete(n),Mn.size===0&&window.removeEventListener("languagechange",La)}),[]),t?{locale:"en-US",direction:"ltr"}:e}const Rh=u.createContext(null);function Kt(){let t=Nh();return u.useContext(Rh)||t}var Ze=function(){return Ze=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ze.apply(this,arguments)};function wu(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function Mh(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}const Lh=Symbol.for("react-aria.i18n.locale"),Ah=Symbol.for("react-aria.i18n.strings");let zt;class yi{getStringForLocale(e,n){let i=this.getStringsForLocale(n)[e];if(!i)throw new Error(`Could not find intl message ${e} in ${n} locale`);return i}getStringsForLocale(e){let n=this.strings[e];return n||(n=Fh(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let n=window[Lh];if(zt===void 0){let i=window[Ah];if(!i)return null;zt={};for(let o in i)zt[o]=new yi({[n]:i[o]},n)}let r=zt==null?void 0:zt[e];if(!r)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(e,n="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,r])=>r)),this.defaultLocale=n}}function Fh(t,e,n="en-US"){if(e[t])return e[t];let r=Kh(t);if(e[r])return e[r];for(let i in e)if(i.startsWith(r+"-"))return e[i];return e[n]}function Kh(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const Aa=new Map,Fa=new Map;class jh{format(e,n){let r=this.strings.getStringForLocale(e,this.locale);return typeof r=="function"?r(n,this):r}plural(e,n,r="cardinal"){let i=n["="+e];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,l=Aa.get(o);l||(l=new Intl.PluralRules(this.locale,{type:r}),Aa.set(o,l));let a=l.select(e);return i=n[a]||n.other,typeof i=="function"?i():i}number(e){let n=Fa.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Fa.set(this.locale,n)),n.format(e)}select(e,n){let r=e[n]||e.other;return typeof r=="function"?r():r}constructor(e,n){this.locale=e,this.strings=n}}const Ka=new WeakMap;function Hh(t){let e=Ka.get(t);return e||(e=new yi(t),Ka.set(t,e)),e}function Vh(t,e){return e&&yi.getGlobalDictionaryForPackage(e)||Hh(t)}function xu(t,e){let{locale:n}=Kt(),r=Vh(t,e);return u.useMemo(()=>new jh(n,r),[n,r])}let Ui=new Map;function _l(t){let{locale:e}=Kt(),n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(Ui.has(n))return Ui.get(n);let r=new Intl.Collator(e,t);return Ui.set(n,r),r}function zh(t,e){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:l,onPressUp:a,onPressChange:s,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:f,href:p,target:v,rel:y,type:h="button"}=t,g;n==="button"?g={type:h,disabled:r}:g={role:"button",href:n==="a"&&!r?p:void 0,target:n==="a"?v:void 0,type:n==="input"?h:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?y:void 0};let{pressProps:b,isPressed:C}=hi({onPressStart:o,onPressEnd:l,onPressChange:s,onPress:i,onPressUp:a,onClick:f,isDisabled:r,preventFocusOnPress:c,ref:e}),{focusableProps:S}=yu(t,e);d&&(S.tabIndex=r?-1:S.tabIndex);let P=ie(S,b,fe(t,{labelable:!0}));return{isPressed:C,buttonProps:ie(g,P,{"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"]})}}function Bh(t){const e=Me(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:n,visibility:r}=t.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=t.ownerDocument.defaultView;let{display:l,visibility:a}=o(t);i=l!=="none"&&a!=="hidden"&&a!=="collapse"}return i}function Uh(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 Eu(t,e){return t.nodeName!=="#comment"&&Bh(t)&&Uh(t,e)&&(!t.parentElement||Eu(t.parentElement,t))}const ja=u.createContext(null),Ko="react-aria-focus-scope-restore";let ae=null;function Il(t){let{children:e,contain:n,restoreFocus:r,autoFocus:i}=t,o=u.useRef(null),l=u.useRef(null),a=u.useRef([]),{parentNode:s}=u.useContext(ja)||{},c=u.useMemo(()=>new Ho({scopeRef:a}),[a]);re(()=>{let p=s||he.root;if(he.getTreeNode(p.scopeRef)&&ae&&!Wr(ae,p.scopeRef)){let v=he.getTreeNode(ae);v&&(p=v)}p.addChild(c),he.addNode(c)},[c,s]),re(()=>{let p=he.getTreeNode(a);p&&(p.contain=!!n)},[n]),re(()=>{var p;let v=(p=o.current)===null||p===void 0?void 0:p.nextSibling,y=[],h=g=>g.stopPropagation();for(;v&&v!==l.current;)y.push(v),v.addEventListener(Ko,h),v=v.nextSibling;return a.current=y,()=>{for(let g of y)g.removeEventListener(Ko,h)}},[e]),Yh(a,r,n),Zh(a,n),Xh(a,r,n),qh(a,i),u.useEffect(()=>{const p=Se(le(a.current?a.current[0]:void 0));let v=null;if(Ae(p,a.current)){for(let y of he.traverse())y.scopeRef&&Ae(p,y.scopeRef.current)&&(v=y);v===he.getTreeNode(a)&&(ae=v.scopeRef)}},[a]),re(()=>()=>{var p,v,y;let h=(y=(v=he.getTreeNode(a))===null||v===void 0||(p=v.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&y!==void 0?y:null;(a===ae||Wr(a,ae))&&(!h||he.getTreeNode(h))&&(ae=h),he.removeTreeNode(a)},[a]);let d=u.useMemo(()=>Wh(a),[]),f=u.useMemo(()=>({focusManager:d,parentNode:c}),[c,d]);return u.createElement(ja.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:l}))}function Wh(t){return{focusNext(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var a;let s=r||Se(le((a=n[0])!==null&&a!==void 0?a:void 0)),c=n[0].previousElementSibling,d=wt(n),f=Ge(d,{tabbable:i,accept:l},n);f.currentNode=Ae(s,n)?s:c;let p=f.nextNode();return!p&&o&&(f.currentNode=c,p=f.nextNode()),p&&Qe(p,!0),p},focusPrevious(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var a;let s=r||Se(le((a=n[0])!==null&&a!==void 0?a:void 0)),c=n[n.length-1].nextElementSibling,d=wt(n),f=Ge(d,{tabbable:i,accept:l},n);f.currentNode=Ae(s,n)?s:c;let p=f.previousNode();return!p&&o&&(f.currentNode=c,p=f.previousNode()),p&&Qe(p,!0),p},focusFirst(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=wt(n),l=Ge(o,{tabbable:r,accept:i},n);l.currentNode=n[0].previousElementSibling;let a=l.nextNode();return a&&Qe(a,!0),a},focusLast(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=wt(n),l=Ge(o,{tabbable:r,accept:i},n);l.currentNode=n[n.length-1].nextElementSibling;let a=l.previousNode();return a&&Qe(a,!0),a}}}function wt(t){return t[0].parentElement}function Ln(t){let e=he.getTreeNode(ae);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function Zh(t,e){let n=u.useRef(void 0),r=u.useRef(void 0);re(()=>{let i=t.current;if(!e){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=le(i?i[0]:void 0);let l=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!Ln(t)||c.isComposing)return;let d=Se(o),f=t.current;if(!f||!Ae(d,f))return;let p=wt(f),v=Ge(p,{tabbable:!0},f);if(!d)return;v.currentNode=d;let y=c.shiftKey?v.previousNode():v.nextNode();y||(v.currentNode=c.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,y=c.shiftKey?v.previousNode():v.nextNode()),c.preventDefault(),y&&Qe(y,!0)},a=c=>{(!ae||Wr(ae,t))&&Ae(oe(c),t.current)?(ae=t,n.current=oe(c)):Ln(t)&&!dt(oe(c),t)?n.current?n.current.focus():ae&&ae.current&&jo(ae.current):Ln(t)&&(n.current=oe(c))},s=c=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let d=Br(),f=(d==="virtual"||d===null)&&gl()&&Qc(),p=Se(o);if(!f&&p&&Ln(t)&&!dt(p,t)){ae=t;let y=oe(c);if(y&&y.isConnected){var v;n.current=y,(v=n.current)===null||v===void 0||v.focus()}else ae.current&&jo(ae.current)}})};return o.addEventListener("keydown",l,!1),o.addEventListener("focusin",a,!1),i==null||i.forEach(c=>c.addEventListener("focusin",a,!1)),i==null||i.forEach(c=>c.addEventListener("focusout",s,!1)),()=>{o.removeEventListener("keydown",l,!1),o.removeEventListener("focusin",a,!1),i==null||i.forEach(c=>c.removeEventListener("focusin",a,!1)),i==null||i.forEach(c=>c.removeEventListener("focusout",s,!1))}},[t,e]),re(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function $u(t){return dt(t)}function Ae(t,e){return!t||!e?!1:e.some(n=>n.contains(t))}function dt(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of he.traverse(he.getTreeNode(e)))if(n&&Ae(t,n.current))return!0;return!1}function Gh(t){return dt(t,ae)}function Wr(t,e){var n;let r=(n=he.getTreeNode(e))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===t)return!0;r=r.parent}return!1}function Qe(t,e=!1){if(t!=null&&!e)try{vt(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function Pu(t,e=!0){let n=t[0].previousElementSibling,r=wt(t),i=Ge(r,{tabbable:e},t);i.currentNode=n;let o=i.nextNode();return e&&!o&&(r=wt(t),i=Ge(r,{tabbable:!1},t),i.currentNode=n,o=i.nextNode()),o}function jo(t,e=!0){Qe(Pu(t,e))}function qh(t,e){const n=u.useRef(e);u.useEffect(()=>{if(n.current){ae=t;const r=le(t.current?t.current[0]:void 0);!Ae(Se(r),ae.current)&&t.current&&jo(t.current)}n.current=!1},[t])}function Yh(t,e,n){re(()=>{if(e||n)return;let r=t.current;const i=le(r?r[0]:void 0);let o=l=>{let a=oe(l);Ae(a,t.current)?ae=t:$u(a)||(ae=null)};return i.addEventListener("focusin",o,!1),r==null||r.forEach(l=>l.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r==null||r.forEach(l=>l.removeEventListener("focusin",o,!1))}},[t,e,n])}function Ha(t){let e=he.getTreeNode(ae);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function Xh(t,e,n){const r=u.useRef(typeof document<"u"?Se(le(t.current?t.current[0]:void 0)):null);re(()=>{let i=t.current;const o=le(i?i[0]:void 0);if(!e||n)return;let l=()=>{(!ae||Wr(ae,t))&&Ae(Se(o),t.current)&&(ae=t)};return o.addEventListener("focusin",l,!1),i==null||i.forEach(a=>a.addEventListener("focusin",l,!1)),()=>{o.removeEventListener("focusin",l,!1),i==null||i.forEach(a=>a.removeEventListener("focusin",l,!1))}},[t,n]),re(()=>{const i=le(t.current?t.current[0]:void 0);if(!e)return;let o=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!Ln(t)||l.isComposing)return;let a=i.activeElement;if(!dt(a,t)||!Ha(t))return;let s=he.getTreeNode(t);if(!s)return;let c=s.nodeToRestore,d=Ge(i.body,{tabbable:!0});d.currentNode=a;let f=l.shiftKey?d.previousNode():d.nextNode();if((!c||!c.isConnected||c===i.body)&&(c=void 0,s.nodeToRestore=void 0),(!f||!dt(f,t))&&c){d.currentNode=c;do f=l.shiftKey?d.previousNode():d.nextNode();while(dt(f,t));l.preventDefault(),l.stopPropagation(),f?Qe(f,!0):$u(c)?Qe(c,!0):a.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[t,e,n]),re(()=>{const i=le(t.current?t.current[0]:void 0);if(!e)return;let o=he.getTreeNode(t);if(o){var l;return o.nodeToRestore=(l=r.current)!==null&&l!==void 0?l:void 0,()=>{let a=he.getTreeNode(t);if(!a)return;let s=a.nodeToRestore,c=Se(i);if(e&&s&&(c&&dt(c,t)||c===i.body&&Ha(t))){let d=he.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let f=d.getTreeNode(t);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){Va(f.nodeToRestore);return}f=f.parent}for(f=d.getTreeNode(t);f;){if(f.scopeRef&&f.scopeRef.current&&he.getTreeNode(f.scopeRef)){let p=Pu(f.scopeRef.current,!0);Va(p);return}f=f.parent}}})}}}},[t,e])}function Va(t){t.dispatchEvent(new CustomEvent(Ko,{bubbles:!0,cancelable:!0}))&&Qe(t)}function Ge(t,e,n){let r=e!=null&&e.tabbable?W1:ou,i=(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null,o=le(i),l=y1(o,t||o,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var s;return!(e==null||(s=e.from)===null||s===void 0)&&s.contains(a)?NodeFilter.FILTER_REJECT:r(a)&&Eu(a)&&(!n||Ae(a,n))&&(!(e!=null&&e.accept)||e.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(l.currentNode=e.from),l}class Ol{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,n,r){let i=this.fastMap.get(n??null);if(!i)return;let o=new Ho({scopeRef:e});i.addChild(o),o.parent=i,this.fastMap.set(e,o),r&&(o.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let n=this.fastMap.get(e);if(!n)return;let r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Ae(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(n.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let n of e.children)yield*this.traverse(n)}clone(){var e;let n=new Ol;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(e=i.parent)===null||e===void 0?void 0:e.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Ho({scopeRef:null}),this.fastMap.set(null,this.root)}}class Ho{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 he=new Ol;function Sn(t={}){let{autoFocus:e=!1,isTextInput:n,within:r}=t,i=u.useRef({isFocused:!1,isFocusVisible:e||vn()}),[o,l]=u.useState(!1),[a,s]=u.useState(()=>i.current.isFocused&&i.current.isFocusVisible),c=u.useCallback(()=>s(i.current.isFocused&&i.current.isFocusVisible),[]),d=u.useCallback(v=>{i.current.isFocused=v,l(v),c()},[c]);hh(v=>{i.current.isFocusVisible=v,c()},[],{isTextInput:n});let{focusProps:f}=Pl({isDisabled:r,onFocusChange:d}),{focusWithinProps:p}=vi({isDisabled:!r,onFocusWithinChange:d});return{isFocused:o,isFocusVisible:a,focusProps:r?p:f}}function Jh(t,e){let n=e==null?void 0:e.isDisabled,[r,i]=u.useState(!1);return re(()=>{if(t!=null&&t.current&&!n){let o=()=>{if(t.current){let a=Ge(t.current,{tabbable:!0});i(!!a.nextNode())}};o();let l=new MutationObserver(o);return l.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{l.disconnect()}}}),n?!1:r}function Du(t){let e=t5(le(t));e!==t&&(e&&Qh(e,t),t&&e5(t,e))}function Qh(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function e5(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function t5(t){let e=Se(t),n=e==null?void 0:e.getAttribute("aria-activedescendant");return n&&t.getElementById(n)||e}const Tu=7e3;let Be=null;function za(t,e="assertive",n=Tu){Be?Be.announce(t,e,n):(Be=new n5,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Be.announce(t,e,n):setTimeout(()=>{Be!=null&&Be.isAttached()&&(Be==null||Be.announce(t,e,n))},100))}class n5{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",e),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,n="assertive",r=Tu){var i,o;if(!this.node)return;let l=document.createElement("div");typeof e=="object"?(l.setAttribute("role","img"),l.setAttribute("aria-labelledby",e["aria-labelledby"])):l.textContent=e,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(l):(o=this.politeLog)===null||o===void 0||o.appendChild(l),e!==""&&setTimeout(()=>{l.remove()},r)}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 _u={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Iu={..._u,customError:!0,valid:!1},Dn={isInvalid:!1,validationDetails:_u,validationErrors:[]},r5=u.createContext({}),Ba="__formValidationState"+Date.now();function i5(t){if(t[Ba]){let{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=t[Ba];return{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return o5(t)}function o5(t){let{isInvalid:e,validationState:n,name:r,value:i,builtinValidation:o,validate:l,validationBehavior:a="aria"}=t;n&&(e||(e=n==="invalid"));let s=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:Iu}:null,c=u.useMemo(()=>{if(!l||i==null)return null;let V=l5(l,i);return Ua(V)},[l,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let d=u.useContext(r5),f=u.useMemo(()=>r?Array.isArray(r)?r.flatMap(V=>Vo(d[V])):Vo(d[r]):[],[d,r]),[p,v]=u.useState(d),[y,h]=u.useState(!1);d!==p&&(v(d),h(!1));let g=u.useMemo(()=>Ua(y?[]:f),[y,f]),b=u.useRef(Dn),[C,S]=u.useState(Dn),P=u.useRef(Dn),E=()=>{if(!x)return;$(!1);let V=c||o||b.current;Wi(V,P.current)||(P.current=V,S(V))},[x,$]=u.useState(!1);return u.useEffect(E),{realtimeValidation:s||g||c||o||Dn,displayValidation:a==="native"?s||g||C:s||g||c||o||C,updateValidation(V){a==="aria"&&!Wi(C,V)?S(V):b.current=V},resetValidation(){let V=Dn;Wi(V,P.current)||(P.current=V,S(V)),a==="native"&&$(!1),h(!0)},commitValidation(){a==="native"&&$(!0),h(!0)}}}function Vo(t){return t?Array.isArray(t)?t:[t]:[]}function l5(t,e){if(typeof t=="function"){let n=t(e);if(n&&typeof n!="boolean")return Vo(n)}return[]}function Ua(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:Iu}:null}function Wi(t,e){return t===e?!0:!!t&&!!e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((n,r)=>n===e.validationErrors[r])&&Object.entries(t.validationDetails).every(([n,r])=>e.validationDetails[n]===r)}function a5(t,e,n){let{validationBehavior:r,focus:i}=t;re(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let s=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(s),n.current.hasAttribute("title")||(n.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(c5(n.current))}});let o=pe(()=>{e.resetValidation()}),l=pe(s=>{var c;e.displayValidation.isInvalid||e.commitValidation();let d=n==null||(c=n.current)===null||c===void 0?void 0:c.form;if(!s.defaultPrevented&&n&&d&&u5(d)===n.current){var f;i?i():(f=n.current)===null||f===void 0||f.focus(),gu("keyboard")}s.preventDefault()}),a=pe(()=>{e.commitValidation()});u.useEffect(()=>{let s=n==null?void 0:n.current;if(!s)return;let c=s.form;return s.addEventListener("invalid",l),s.addEventListener("change",a),c==null||c.addEventListener("reset",o),()=>{s.removeEventListener("invalid",l),s.removeEventListener("change",a),c==null||c.removeEventListener("reset",o)}},[n,l,a,o,r])}function s5(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 c5(t){return{isInvalid:!t.validity.valid,validationDetails:s5(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function u5(t){for(let e=0;e<t.elements.length;e++){let n=t.elements[e];if(!n.validity.valid)return n}return null}function Ou(t){let{id:e,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=t;e=we(e);let l=we(),a={};n?(r=r?`${l} ${r}`:l,a={id:l,htmlFor:o==="label"?e:void 0}):!r&&!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=ui({id:e,"aria-label":i,"aria-labelledby":r});return{labelProps:a,fieldProps:s}}function d5(t){let{description:e,errorMessage:n,isInvalid:r,validationState:i}=t,{labelProps:o,fieldProps:l}=Ou(t),a=ft([!!e,!!n,r,i]),s=ft([!!e,!!n,r,i]);return l=ie(l,{"aria-describedby":[a,s,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:l,descriptionProps:{id:a},errorMessageProps:{id:s}}}const Wa={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 ku(t={}){let{style:e,isFocusable:n}=t,[r,i]=u.useState(!1),{focusWithinProps:o}=vi({isDisabled:!n,onFocusWithinChange:a=>i(a)}),l=u.useMemo(()=>r?e:e?{...Wa,...e}:Wa,[r]);return{visuallyHiddenProps:{...o,style:l}}}function f5(t){let{children:e,elementType:n="div",isFocusable:r,style:i,...o}=t,{visuallyHiddenProps:l}=ku(t);return u.createElement(n,ie(o,l),e)}const qe={top:"top",bottom:"top",left:"left",right:"left"},Zr={top:"bottom",bottom:"top",left:"right",right:"left"},h5={top:"left",left:"top"},zo={top:"height",left:"width"},Nu={width:"totalWidth",height:"totalHeight"},fr={};let ve=typeof document<"u"?window.visualViewport:null;function Za(t){let e=0,n=0,r=0,i=0,o=0,l=0,a={};var s;let c=((s=ve==null?void 0:ve.scale)!==null&&s!==void 0?s:1)>1;if(t.tagName==="BODY"){let y=document.documentElement;r=y.clientWidth,i=y.clientHeight;var d;e=(d=ve==null?void 0:ve.width)!==null&&d!==void 0?d:r;var f;n=(f=ve==null?void 0:ve.height)!==null&&f!==void 0?f:i,a.top=y.scrollTop||t.scrollTop,a.left=y.scrollLeft||t.scrollLeft,ve&&(o=ve.offsetTop,l=ve.offsetLeft)}else({width:e,height:n,top:o,left:l}=un(t)),a.top=t.scrollTop,a.left=t.scrollLeft,r=e,i=n;if(vl()&&(t.tagName==="BODY"||t.tagName==="HTML")&&c){a.top=0,a.left=0;var p;o=(p=ve==null?void 0:ve.pageTop)!==null&&p!==void 0?p:0;var v;l=(v=ve==null?void 0:ve.pageLeft)!==null&&v!==void 0?v:0}return{width:e,height:n,totalWidth:r,totalHeight:i,scroll:a,top:o,left:l}}function p5(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function Ga(t,e,n,r,i,o,l){var a;let s=(a=i.scroll[t])!==null&&a!==void 0?a:0,c=r[zo[t]],d=r.scroll[qe[t]]+o,f=c+r.scroll[qe[t]]-o,p=e-s+l[t]-r[qe[t]],v=e-s+n+l[t]-r[qe[t]];return p<d?d-p:v>f?Math.max(f-v,d-p):0}function v5(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 qa(t){if(fr[t])return fr[t];let[e,n]=t.split(" "),r=qe[e]||"right",i=h5[r];qe[n]||(n="center");let o=zo[r],l=zo[i];return fr[t]={placement:e,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:l},fr[t]}function Zi(t,e,n,r,i,o,l,a,s,c){let{placement:d,crossPlacement:f,axis:p,crossAxis:v,size:y,crossSize:h}=r,g={};var b;g[v]=(b=t[v])!==null&&b!==void 0?b:0;var C,S,P,E;f==="center"?g[v]+=(((C=t[h])!==null&&C!==void 0?C:0)-((S=n[h])!==null&&S!==void 0?S:0))/2:f!==v&&(g[v]+=((P=t[h])!==null&&P!==void 0?P:0)-((E=n[h])!==null&&E!==void 0?E:0)),g[v]+=o;const x=t[v]-n[h]+s+c,$=t[v]+t[h]-s-c;if(g[v]=Io(g[v],x,$),d===p){const N=a?l[y]:e[Nu[y]];g[Zr[p]]=Math.floor(N-t[p]+i)}else g[p]=Math.floor(t[p]+t[y]+i);return g}function g5(t,e,n,r,i,o,l,a){const s=r?n.height:e[Nu.height];var c;let d=t.top!=null?n.top+t.top:n.top+(s-((c=t.bottom)!==null&&c!==void 0?c:0)-l);var f,p,v,y,h,g;let b=a!=="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)+((v=i.bottom)!==null&&v!==void 0?v:0)+o)):Math.max(0,d+l-(e.top+((y=e.scroll.top)!==null&&y!==void 0?y:0))-(((h=i.top)!==null&&h!==void 0?h:0)+((g=i.bottom)!==null&&g!==void 0?g:0)+o));return Math.min(e.height-o*2,b)}function Ya(t,e,n,r,i,o){let{placement:l,axis:a,size:s}=o;var c,d;if(l===a)return Math.max(0,n[a]-t[a]-((c=t.scroll[a])!==null&&c!==void 0?c:0)+e[a]-((d=r[a])!==null&&d!==void 0?d:0)-r[Zr[a]]-i);var f;return Math.max(0,t[s]+t[a]+t.scroll[a]-e[a]-n[a]-n[s]-((f=r[a])!==null&&f!==void 0?f:0)-r[Zr[a]]-i)}function m5(t,e,n,r,i,o,l,a,s,c,d,f,p,v,y,h){let g=qa(t),{size:b,crossAxis:C,crossSize:S,placement:P,crossPlacement:E}=g,x=Zi(e,a,n,g,d,f,c,p,y,h),$=d,N=Ya(a,c,e,i,o+d,g);if(l&&r[b]>N){let H=qa(`${Zr[P]} ${E}`),K=Zi(e,a,n,H,d,f,c,p,y,h);Ya(a,c,e,i,o+d,H)>N&&(g=H,x=K,$=d)}let F="bottom";g.axis==="top"?g.placement==="top"?F="top":g.placement==="bottom"&&(F="bottom"):g.crossAxis==="top"&&(g.crossPlacement==="top"?F="bottom":g.crossPlacement==="bottom"&&(F="top"));let V=Ga(C,x[C],n[S],a,s,o,c);x[C]+=V;let w=g5(x,a,c,p,i,o,n.height,F);v&&v<w&&(w=v),n.height=Math.min(n.height,w),x=Zi(e,a,n,g,$,f,c,p,y,h),V=Ga(C,x[C],n[S],a,s,o,c),x[C]+=V;let M={},B=e[C]+.5*e[S]-x[C]-i[qe[C]];const A=y/2+h;var U,T,R,k;const Z=qe[C]==="left"?((U=i.left)!==null&&U!==void 0?U:0)+((T=i.right)!==null&&T!==void 0?T:0):((R=i.top)!==null&&R!==void 0?R:0)+((k=i.bottom)!==null&&k!==void 0?k:0),I=n[S]-Z-y/2-h,L=e[C]+y/2-(x[C]+i[qe[C]]),_=e[C]+e[S]-y/2-(x[C]+i[qe[C]]),O=Io(B,L,_);return M[C]=Io(O,A,I),{position:x,maxHeight:w,arrowOffsetLeft:M.left,arrowOffsetTop:M.top,placement:g.placement}}function y5(t){let{placement:e,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:l,boundaryElement:a,offset:s,crossOffset:c,maxHeight:d,arrowSize:f=0,arrowBoundaryOffset:p=0}=t,v=r instanceof HTMLElement?b5(r):document.documentElement,y=v===document.documentElement;const h=window.getComputedStyle(v).position;let g=!!h&&h!=="static",b=y?un(n):Xa(n,v);if(!y){let{marginTop:M,marginLeft:B}=window.getComputedStyle(n);b.top+=parseInt(M,10)||0,b.left+=parseInt(B,10)||0}let C=un(r),S=v5(r);var P,E;C.width+=((P=S.left)!==null&&P!==void 0?P:0)+((E=S.right)!==null&&E!==void 0?E:0);var x,$;C.height+=((x=S.top)!==null&&x!==void 0?x:0)+(($=S.bottom)!==null&&$!==void 0?$:0);let N=p5(i),F=Za(a),V=Za(v),w=a.tagName==="BODY"?un(v):Xa(v,a);return v.tagName==="HTML"&&a.tagName==="BODY"&&(V.scroll.top=0,V.scroll.left=0),m5(e,b,C,N,S,o,l,F,V,w,s,c,g,d,f,p)}function un(t){let{top:e,left:n,width:r,height:i}=t.getBoundingClientRect(),{scrollTop:o,scrollLeft:l,clientTop:a,clientLeft:s}=document.documentElement;return{top:e+o-a,left:n+l-s,width:r,height:i}}function Xa(t,e){let n=window.getComputedStyle(t),r;if(n.position==="fixed"){let{top:i,left:o,width:l,height:a}=t.getBoundingClientRect();r={top:i,left:o,width:l,height:a}}else{r=un(t);let i=un(e),o=window.getComputedStyle(e);i.top+=(parseInt(o.borderTopWidth,10)||0)-e.scrollTop,i.left+=(parseInt(o.borderLeftWidth,10)||0)-e.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function b5(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!Ja(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!Ja(e);)e=e.parentElement;return e||document.documentElement}function Ja(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 Ru=new WeakMap;function C5(t){let{triggerRef:e,isOpen:n,onClose:r}=t;u.useEffect(()=>{if(!n||r===null)return;let i=o=>{let l=o.target;if(!e.current||l instanceof Node&&!l.contains(e.current)||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement)return;let a=r||Ru.get(e.current);a&&a()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,e])}let de=typeof document<"u"?window.visualViewport:null;function S5(t){let{direction:e}=Kt(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:o=i,placement:l="bottom",containerPadding:a=12,shouldFlip:s=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:v=!0,onClose:y,maxHeight:h,arrowBoundaryOffset:g=0}=t,[b,C]=u.useState(null),S=[p,l,i.current,r.current,o.current,a,s,c,d,f,v,e,h,g,n],P=u.useRef(de==null?void 0:de.scale);u.useEffect(()=>{v&&(P.current=de==null?void 0:de.scale)},[v]);let E=u.useCallback(()=>{if(p===!1||!v||!i.current||!r.current||!c||(de==null?void 0:de.scale)!==P.current)return;let V=null;if(o.current&&o.current.contains(document.activeElement)){var w;let k=(w=document.activeElement)===null||w===void 0?void 0:w.getBoundingClientRect(),Z=o.current.getBoundingClientRect();var M;if(V={type:"top",offset:((M=k==null?void 0:k.top)!==null&&M!==void 0?M:0)-Z.top},V.offset>Z.height/2){V.type="bottom";var B;V.offset=((B=k==null?void 0:k.bottom)!==null&&B!==void 0?B:0)-Z.bottom}}let A=i.current;if(!h&&i.current){var U;A.style.top="0px",A.style.bottom="";var T;A.style.maxHeight=((T=(U=window.visualViewport)===null||U===void 0?void 0:U.height)!==null&&T!==void 0?T:window.innerHeight)+"px"}let R=y5({placement:x5(l,e),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:a,shouldFlip:s,boundaryElement:c,offset:d,crossOffset:f,maxHeight:h,arrowSize:n,arrowBoundaryOffset:g});if(R.position){if(A.style.top="",A.style.bottom="",A.style.left="",A.style.right="",Object.keys(R.position).forEach(k=>A.style[k]=R.position[k]+"px"),A.style.maxHeight=R.maxHeight!=null?R.maxHeight+"px":"",V&&document.activeElement&&o.current){let k=document.activeElement.getBoundingClientRect(),Z=o.current.getBoundingClientRect(),I=k[V.type]-Z[V.type];o.current.scrollTop+=I-V.offset}C(R)}},S);re(E,S),w5(E),To({ref:i,onResize:E}),To({ref:r,onResize:E});let x=u.useRef(!1);re(()=>{let V,w=()=>{x.current=!0,clearTimeout(V),V=setTimeout(()=>{x.current=!1},500),E()},M=()=>{x.current&&w()};return de==null||de.addEventListener("resize",w),de==null||de.addEventListener("scroll",M),()=>{de==null||de.removeEventListener("resize",w),de==null||de.removeEventListener("scroll",M)}},[E]);let $=u.useCallback(()=>{x.current||y==null||y()},[y,x]);C5({triggerRef:r,isOpen:v,onClose:y&&$});var N,F;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...b==null?void 0:b.position,maxHeight:(N=b==null?void 0:b.maxHeight)!==null&&N!==void 0?N:"100vh"}},placement:(F=b==null?void 0:b.placement)!==null&&F!==void 0?F:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:b==null?void 0:b.arrowOffsetLeft,top:b==null?void 0:b.arrowOffsetTop}},updatePosition:E}}function w5(t){re(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function x5(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}const Ue=[];function E5(t,e){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:a}=t;u.useEffect(()=>{if(i&&!Ue.includes(e))return Ue.push(e),()=>{let y=Ue.indexOf(e);y>=0&&Ue.splice(y,1)}},[i,e]);let s=()=>{Ue[Ue.length-1]===e&&n&&n()},c=y=>{(!a||a(y.target))&&Ue[Ue.length-1]===e&&(y.stopPropagation(),y.preventDefault())},d=y=>{(!a||a(y.target))&&(Ue[Ue.length-1]===e&&(y.stopPropagation(),y.preventDefault()),s())},f=y=>{y.key==="Escape"&&!l&&!y.nativeEvent.isComposing&&(y.stopPropagation(),y.preventDefault(),s())};mh({ref:e,onInteractOutside:o&&i?d:void 0,onInteractOutsideStart:c});let{focusWithinProps:p}=vi({isDisabled:!r,onBlurWithin:y=>{!y.relatedTarget||Gh(y.relatedTarget)||(!a||a(y.relatedTarget))&&(n==null||n())}}),v=y=>{y.target===y.currentTarget&&y.preventDefault()};return{overlayProps:{onKeyDown:f,...p},underlayProps:{onPointerDown:v}}}function $5(t,e,n){let{type:r}=t,{isOpen:i}=e;u.useEffect(()=>{n&&n.current&&Ru.set(n.current,e.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let l=we();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?l:void 0,onPress:e.toggle},overlayProps:{id:l}}}const Gi=typeof document<"u"&&window.visualViewport,P5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let hr=0,qi;function D5(t={}){let{isDisabled:e}=t;re(()=>{if(!e)return hr++,hr===1&&(ai()?qi=_5():qi=T5()),()=>{hr--,hr===0&&qi()}},[e])}function T5(){let t=window.innerWidth-document.documentElement.clientWidth;return Tt(t>0&&("scrollbarGutter"in document.documentElement.style?xt(document.documentElement,"scrollbarGutter","stable"):xt(document.documentElement,"paddingRight",`${t}px`)),xt(document.documentElement,"overflow","hidden"))}function _5(){let t,e,n=c=>{t=nu(c.target,!0),!(t===document.documentElement&&t===document.body)&&t instanceof HTMLElement&&window.getComputedStyle(t).overscrollBehavior==="auto"&&(e=xt(t,"overscrollBehavior","contain"))},r=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;I5(d)&&(a(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",Gi&&(Gi.height<window.innerHeight?requestAnimationFrame(()=>{Qa(d)}):Gi.addEventListener("resize",()=>Qa(d),{once:!0}))}))},l=null,a=()=>{if(l)return;let c=()=>{window.scrollTo(0,0)},d=window.pageXOffset,f=window.pageYOffset;l=Tt(Tn(window,"scroll",c),xt(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),xt(document.documentElement,"overflow","hidden"),xt(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(d,f)}),window.scrollTo(0,0)},s=Tt(Tn(document,"touchstart",n,{passive:!1,capture:!0}),Tn(document,"touchmove",r,{passive:!1,capture:!0}),Tn(document,"touchend",i,{passive:!1,capture:!0}),Tn(document,"focus",o,!0));return()=>{e==null||e(),l==null||l(),s()}}function xt(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function Tn(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function Qa(t){let e=document.scrollingElement||document.documentElement,n=t;for(;n&&n!==e;){let r=nu(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect().top,o=n.getBoundingClientRect().top;o>i+n.clientHeight&&(r.scrollTop+=o-i)}n=r.parentElement}}function I5(t){return t instanceof HTMLInputElement&&!P5.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}const O5=u.createContext({});function k5(){var t;return(t=u.useContext(O5))!==null&&t!==void 0?t:{}}var Mu={};Mu={dismiss:"تجاهل"};var Lu={};Lu={dismiss:"Отхвърляне"};var Au={};Au={dismiss:"Odstranit"};var Fu={};Fu={dismiss:"Luk"};var Ku={};Ku={dismiss:"Schließen"};var ju={};ju={dismiss:"Απόρριψη"};var Hu={};Hu={dismiss:"Dismiss"};var Vu={};Vu={dismiss:"Descartar"};var zu={};zu={dismiss:"Lõpeta"};var Bu={};Bu={dismiss:"Hylkää"};var Uu={};Uu={dismiss:"Rejeter"};var Wu={};Wu={dismiss:"התעלם"};var Zu={};Zu={dismiss:"Odbaci"};var Gu={};Gu={dismiss:"Elutasítás"};var qu={};qu={dismiss:"Ignora"};var Yu={};Yu={dismiss:"閉じる"};var Xu={};Xu={dismiss:"무시"};var Ju={};Ju={dismiss:"Atmesti"};var Qu={};Qu={dismiss:"Nerādīt"};var e0={};e0={dismiss:"Lukk"};var t0={};t0={dismiss:"Negeren"};var n0={};n0={dismiss:"Zignoruj"};var r0={};r0={dismiss:"Descartar"};var i0={};i0={dismiss:"Dispensar"};var o0={};o0={dismiss:"Revocare"};var l0={};l0={dismiss:"Пропустить"};var a0={};a0={dismiss:"Zrušiť"};var s0={};s0={dismiss:"Opusti"};var c0={};c0={dismiss:"Odbaci"};var u0={};u0={dismiss:"Avvisa"};var d0={};d0={dismiss:"Kapat"};var f0={};f0={dismiss:"Скасувати"};var h0={};h0={dismiss:"取消"};var p0={};p0={dismiss:"關閉"};var v0={};v0={"ar-AE":Mu,"bg-BG":Lu,"cs-CZ":Au,"da-DK":Fu,"de-DE":Ku,"el-GR":ju,"en-US":Hu,"es-ES":Vu,"et-EE":zu,"fi-FI":Bu,"fr-FR":Uu,"he-IL":Wu,"hr-HR":Zu,"hu-HU":Gu,"it-IT":qu,"ja-JP":Yu,"ko-KR":Xu,"lt-LT":Ju,"lv-LV":Qu,"nb-NO":e0,"nl-NL":t0,"pl-PL":n0,"pt-BR":r0,"pt-PT":i0,"ro-RO":o0,"ru-RU":l0,"sk-SK":a0,"sl-SI":s0,"sr-SP":c0,"sv-SE":u0,"tr-TR":d0,"uk-UA":f0,"zh-CN":h0,"zh-TW":p0};function N5(t){return t&&t.__esModule?t.default:t}function es(t){let{onDismiss:e,...n}=t,r=xu(N5(v0),"@react-aria/overlays"),i=ui(n,r.format("dismiss")),o=()=>{e&&e()};return u.createElement(f5,null,u.createElement("button",{...i,tabIndex:-1,onClick:o,style:{width:1,height:1}}))}let _n=new WeakMap,De=[];function R5(t,e=document.body){let n=new Set(t),r=new Set,i=s=>{for(let p of s.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(p);let c=p=>{if(n.has(p)||p.parentElement&&r.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let v of n)if(p.contains(v))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),f=c(s);if(f===NodeFilter.FILTER_ACCEPT&&o(s),f!==NodeFilter.FILTER_REJECT){let p=d.nextNode();for(;p!=null;)o(p),p=d.nextNode()}},o=s=>{var c;let d=(c=_n.get(s))!==null&&c!==void 0?c:0;s.getAttribute("aria-hidden")==="true"&&d===0||(d===0&&s.setAttribute("aria-hidden","true"),r.add(s),_n.set(s,d+1))};De.length&&De[De.length-1].disconnect(),i(e);let l=new MutationObserver(s=>{for(let c of s)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...n,...r].some(d=>d.contains(c.target))){for(let d of c.removedNodes)d instanceof Element&&(n.delete(d),r.delete(d));for(let d of c.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?n.add(d):d instanceof Element&&i(d)}});l.observe(e,{childList:!0,subtree:!0});let a={visibleNodes:n,hiddenNodes:r,observe(){l.observe(e,{childList:!0,subtree:!0})},disconnect(){l.disconnect()}};return De.push(a),()=>{l.disconnect();for(let s of r){let c=_n.get(s);c!=null&&(c===1?(s.removeAttribute("aria-hidden"),_n.delete(s)):_n.set(s,c-1))}a===De[De.length-1]?(De.pop(),De.length&&De[De.length-1].observe()):De.splice(De.indexOf(a),1)}}function M5(t){let e=De[De.length-1];if(e&&!e.visibleNodes.has(t))return e.visibleNodes.add(t),()=>{e.visibleNodes.delete(t)}}function L5(t,e){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:o,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a,...s}=t,c=s.trigger==="SubmenuTrigger",{overlayProps:d,underlayProps:f}=E5({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!o||c,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a},i??r),{overlayProps:p,arrowProps:v,placement:y}=S5({...s,targetRef:n,overlayRef:r,isOpen:e.isOpen,onClose:o&&!c?e.close:null});return D5({isDisabled:o||!e.isOpen}),re(()=>{if(e.isOpen&&r.current){var h,g;return o?M5((h=i==null?void 0:i.current)!==null&&h!==void 0?h:r.current):R5([(g=i==null?void 0:i.current)!==null&&g!==void 0?g:r.current])}},[o,e.isOpen,r,i]),{popoverProps:ie(d,p),arrowProps:v,underlayProps:f,placement:y}}const g0=u.createContext(null);function ts(t){let e=tr(),{portalContainer:n=e?null:document.body,isExiting:r}=t,[i,o]=u.useState(!1),l=u.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:a}=k5();if(!t.portalContainer&&a&&(n=a()),!n)return null;let s=t.children;return t.disableFocusManagement||(s=u.createElement(Il,{restoreFocus:!0,contain:(t.shouldContainFocus||i)&&!r},s)),s=u.createElement(g0.Provider,{value:l},u.createElement(vh,null,s)),At.createPortal(s,n)}function A5(){let t=u.useContext(g0),e=t==null?void 0:t.setContain;re(()=>{e==null||e(!0)},[e])}const kl=new WeakMap;function F5(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function K5(t,e){let n=kl.get(t);if(!n)throw new Error("Unknown list");return`${n.id}-option-${F5(e)}`}function Bo(t){return D1()?t.altKey:t.ctrlKey}function Dr(t,e){var n,r;let i=`[data-key="${CSS.escape(String(e))}"]`,o=(n=t.current)===null||n===void 0?void 0:n.dataset.collection;return o&&(i=`[data-collection="${CSS.escape(o)}"]${i}`),(r=t.current)===null||r===void 0?void 0:r.querySelector(i)}const m0=new WeakMap;function j5(t){let e=we();return m0.set(t,e),e}function H5(t){return m0.get(t)}const V5=1e3;function y0(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:r}=t,i=u.useRef({search:"",timeout:void 0}).current,o=l=>{let a=z5(l.key);if(!(!a||l.ctrlKey||l.metaKey||!l.currentTarget.contains(l.target))){if(a===" "&&i.search.trim().length>0&&(l.preventDefault(),"continuePropagation"in l||l.stopPropagation()),i.search+=a,e.getKeyForSearch!=null){let s=e.getKeyForSearch(i.search,n.focusedKey);s==null&&(s=e.getKeyForSearch(i.search)),s!=null&&(n.setFocusedKey(s),r&&r(s))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},V5)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?o:void 0}}}function z5(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function b0(t){let{selectionManager:e,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:l=!1,disallowSelectAll:a=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:c=e.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:p=!1,isVirtualized:v,scrollRef:y=r,linkBehavior:h="action"}=t,{direction:g}=Kt(),b=si(),C=R=>{var k;if(R.altKey&&R.key==="Tab"&&R.preventDefault(),!(!((k=r.current)===null||k===void 0)&&k.contains(R.target)))return;const Z=(G,te)=>{if(G!=null){if(e.isLink(G)&&h==="selection"&&c&&!Bo(R)){At.flushSync(()=>{e.setFocusedKey(G,te)});let ue=Dr(r,G),ee=e.getItemProps(G);ue&&b.open(ue,R,ee.href,ee.routerOptions);return}if(e.setFocusedKey(G,te),e.isLink(G)&&h==="override")return;R.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(G):c&&!Bo(R)&&e.replaceSelection(G)}};switch(R.key){case"ArrowDown":if(n.getKeyBelow){var I,L,_;let G=e.focusedKey!=null?(I=n.getKeyBelow)===null||I===void 0?void 0:I.call(n,e.focusedKey):(L=n.getFirstKey)===null||L===void 0?void 0:L.call(n);G==null&&o&&(G=(_=n.getFirstKey)===null||_===void 0?void 0:_.call(n,e.focusedKey)),G!=null&&(R.preventDefault(),Z(G))}break;case"ArrowUp":if(n.getKeyAbove){var O,H,K;let G=e.focusedKey!=null?(O=n.getKeyAbove)===null||O===void 0?void 0:O.call(n,e.focusedKey):(H=n.getLastKey)===null||H===void 0?void 0:H.call(n);G==null&&o&&(G=(K=n.getLastKey)===null||K===void 0?void 0:K.call(n,e.focusedKey)),G!=null&&(R.preventDefault(),Z(G))}break;case"ArrowLeft":if(n.getKeyLeftOf){var j,z,W;let G=e.focusedKey!=null?(j=n.getKeyLeftOf)===null||j===void 0?void 0:j.call(n,e.focusedKey):null;G==null&&o&&(G=g==="rtl"?(z=n.getFirstKey)===null||z===void 0?void 0:z.call(n,e.focusedKey):(W=n.getLastKey)===null||W===void 0?void 0:W.call(n,e.focusedKey)),G!=null&&(R.preventDefault(),Z(G,g==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var q,X,ce;let G=e.focusedKey!=null?(q=n.getKeyRightOf)===null||q===void 0?void 0:q.call(n,e.focusedKey):null;G==null&&o&&(G=g==="rtl"?(X=n.getLastKey)===null||X===void 0?void 0:X.call(n,e.focusedKey):(ce=n.getFirstKey)===null||ce===void 0?void 0:ce.call(n,e.focusedKey)),G!=null&&(R.preventDefault(),Z(G,g==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(e.focusedKey===null&&R.shiftKey)return;R.preventDefault();let G=n.getFirstKey(e.focusedKey,tn(R));e.setFocusedKey(G),G!=null&&(tn(R)&&R.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(G):c&&e.replaceSelection(G))}break;case"End":if(n.getLastKey){if(e.focusedKey===null&&R.shiftKey)return;R.preventDefault();let G=n.getLastKey(e.focusedKey,tn(R));e.setFocusedKey(G),G!=null&&(tn(R)&&R.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(G):c&&e.replaceSelection(G))}break;case"PageDown":if(n.getKeyPageBelow&&e.focusedKey!=null){let G=n.getKeyPageBelow(e.focusedKey);G!=null&&(R.preventDefault(),Z(G))}break;case"PageUp":if(n.getKeyPageAbove&&e.focusedKey!=null){let G=n.getKeyPageAbove(e.focusedKey);G!=null&&(R.preventDefault(),Z(G))}break;case"a":tn(R)&&e.selectionMode==="multiple"&&a!==!0&&(R.preventDefault(),e.selectAll());break;case"Escape":s==="clearSelection"&&!l&&e.selectedKeys.size!==0&&(R.stopPropagation(),R.preventDefault(),e.clearSelection());break;case"Tab":if(!p){if(R.shiftKey)r.current.focus();else{let G=Ge(r.current,{tabbable:!0}),te,ue;do ue=G.lastChild(),ue&&(te=ue);while(ue);te&&!te.contains(document.activeElement)&&Ve(te)}break}}},S=u.useRef({top:0,left:0});ar(y,"scroll",v?void 0:()=>{var R,k,Z,I;S.current={top:(Z=(R=y.current)===null||R===void 0?void 0:R.scrollTop)!==null&&Z!==void 0?Z:0,left:(I=(k=y.current)===null||k===void 0?void 0:k.scrollLeft)!==null&&I!==void 0?I:0}});let P=R=>{if(e.isFocused){R.currentTarget.contains(R.target)||e.setFocused(!1);return}if(R.currentTarget.contains(R.target)){if(e.setFocused(!0),e.focusedKey==null){var k,Z;let _=H=>{H!=null&&(e.setFocusedKey(H),c&&!e.isSelected(H)&&e.replaceSelection(H))},O=R.relatedTarget;var I,L;O&&R.currentTarget.compareDocumentPosition(O)&Node.DOCUMENT_POSITION_FOLLOWING?_((I=e.lastSelectedKey)!==null&&I!==void 0?I:(k=n.getLastKey)===null||k===void 0?void 0:k.call(n)):_((L=e.firstSelectedKey)!==null&&L!==void 0?L:(Z=n.getFirstKey)===null||Z===void 0?void 0:Z.call(n))}else!v&&y.current&&(y.current.scrollTop=S.current.top,y.current.scrollLeft=S.current.left);if(e.focusedKey!=null&&y.current){let _=Dr(r,e.focusedKey);_ instanceof HTMLElement&&(!_.contains(document.activeElement)&&!f&&Ve(_),Br()==="keyboard"&&ba(_,{containingElement:r.current}))}}},E=R=>{R.currentTarget.contains(R.relatedTarget)||e.setFocused(!1)},x=u.useRef(!1);ar(r,H1,f?R=>{let{detail:k}=R;R.stopPropagation(),e.setFocused(!0),(k==null?void 0:k.focusStrategy)==="first"&&(x.current=!0)}:void 0);let $=pe(()=>{var R,k;let Z=(k=(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n))!==null&&k!==void 0?k:null;Z==null?(Du(r.current),e.collection.size>0&&(x.current=!1)):(e.setFocusedKey(Z),x.current=!1)});ma(()=>{x.current&&$()},[e.collection,$]);let N=pe(()=>{e.collection.size>0&&(x.current=!1)});ma(()=>{N()},[e.focusedKey,N]),ar(r,j1,f?R=>{var k;R.stopPropagation(),e.setFocused(!1),!((k=R.detail)===null||k===void 0)&&k.clearFocusKey&&e.setFocusedKey(null)}:void 0);const F=u.useRef(i),V=u.useRef(!1);u.useEffect(()=>{if(F.current){var R,k;let L=null;var Z;i==="first"&&(L=(Z=(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n))!==null&&Z!==void 0?Z:null);var I;i==="last"&&(L=(I=(k=n.getLastKey)===null||k===void 0?void 0:k.call(n))!==null&&I!==void 0?I:null);let _=e.selectedKeys;if(_.size){for(let O of _)if(e.canSelectItem(O)){L=O;break}}e.setFocused(!0),e.setFocusedKey(L),L==null&&!f&&r.current&&vt(r.current),e.collection.size>0&&(F.current=!1,V.current=!0)}});let w=u.useRef(e.focusedKey),M=u.useRef(null);u.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==w.current||V.current)&&y.current&&r.current){let R=Br(),k=Dr(r,e.focusedKey);if(!(k instanceof HTMLElement))return;(R==="keyboard"||V.current)&&(M.current&&cancelAnimationFrame(M.current),M.current=requestAnimationFrame(()=>{y.current&&(ru(y.current,k),R!=="virtual"&&ba(k,{containingElement:r.current}))}))}!f&&e.isFocused&&e.focusedKey==null&&w.current!=null&&r.current&&vt(r.current),w.current=e.focusedKey,V.current=!1}),u.useEffect(()=>()=>{M.current&&cancelAnimationFrame(M.current)},[]),ar(r,"react-aria-focus-scope-restore",R=>{R.preventDefault(),e.setFocused(!0)});let B={onKeyDown:C,onFocus:P,onBlur:E,onMouseDown(R){y.current===R.target&&R.preventDefault()}},{typeSelectProps:A}=y0({keyboardDelegate:n,selectionManager:e});d||(B=ie(A,B));let U;f||(U=e.focusedKey==null?0:-1);let T=j5(e.collection);return{collectionProps:ie(B,{tabIndex:U,"data-collection":T})}}function Nl(t){let{id:e,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:l,focus:a,isDisabled:s,onAction:c,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=t,p=si();e=we(e);let v=k=>{if(k.pointerType==="keyboard"&&Bo(k))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(f==="selection"&&i.current){let Z=n.getItemProps(r);p.open(i.current,k,Z.href,Z.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(f==="override"||f==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):k&&k.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||k&&(tn(k)||k.pointerType==="touch"||k.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};u.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(l?Du(i.current):a?a():document.activeElement!==i.current&&i.current&&vt(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,l]),s=s||n.isDisabled(r);let y={};!l&&!s?y={tabIndex:r===n.focusedKey?0:-1,onFocus(k){k.target===i.current&&n.setFocusedKey(r)}}:s&&(y.onMouseDown=k=>{k.preventDefault()});let h=n.isLink(r)&&f==="override",g=n.isLink(r)&&f!=="selection"&&f!=="none",b=!s&&n.canSelectItem(r)&&!h,C=(c||g)&&!s,S=C&&(n.selectionBehavior==="replace"?!b:!b||n.isEmpty),P=C&&b&&n.selectionBehavior==="replace",E=S||P,x=u.useRef(null),$=E&&b,N=u.useRef(!1),F=u.useRef(!1),V=k=>{if(c&&c(),g&&i.current){let Z=n.getItemProps(r);p.open(i.current,k,Z.href,Z.routerOptions)}},w={ref:i};o?(w.onPressStart=k=>{x.current=k.pointerType,N.current=$,k.pointerType==="keyboard"&&(!E||rs())&&v(k)},d?(w.onPressUp=S?void 0:k=>{k.pointerType==="mouse"&&b&&v(k)},w.onPress=S?V:k=>{k.pointerType!=="keyboard"&&k.pointerType!=="mouse"&&b&&v(k)}):w.onPress=k=>{if(S||P&&k.pointerType!=="mouse"){if(k.pointerType==="keyboard"&&!ns())return;V(k)}else k.pointerType!=="keyboard"&&b&&v(k)}):(w.onPressStart=k=>{x.current=k.pointerType,N.current=$,F.current=S,b&&(k.pointerType==="mouse"&&!S||k.pointerType==="keyboard"&&(!C||rs()))&&v(k)},w.onPress=k=>{(k.pointerType==="touch"||k.pointerType==="pen"||k.pointerType==="virtual"||k.pointerType==="keyboard"&&E&&ns()||k.pointerType==="mouse"&&F.current)&&(E?V(k):b&&v(k))}),y["data-collection"]=H5(n.collection),y["data-key"]=r,w.preventFocusOnPress=l,l&&(w=ie(w,{onPressStart(k){k.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(k){k.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}}));let{pressProps:M,isPressed:B}=hi(w),A=P?k=>{x.current==="mouse"&&(k.stopPropagation(),k.preventDefault(),V(k))}:void 0,{longPressProps:U}=bu({isDisabled:!$,onLongPress(k){k.pointerType==="touch"&&(v(k),n.setSelectionBehavior("toggle"))}}),T=k=>{x.current==="touch"&&N.current&&k.preventDefault()},R=n.isLink(r)?k=>{_t.isOpening||k.preventDefault()}:void 0;return{itemProps:ie(y,b||S||l&&!s?M:{},$?U:{},{onDoubleClick:A,onDragStartCapture:T,onClick:R,id:e},l?{onMouseDown:k=>k.preventDefault()}:void 0),isPressed:B,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:s,allowsSelection:b,hasAction:E}}function ns(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function rs(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}class is{getItemRect(e){let n=this.ref.current;if(!n)return null;let r=e!=null?Dr(this.ref,e):null;if(!r)return null;let i=n.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-i.left+n.scrollLeft,y:o.top-i.top+n.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;var n,r;return{width:(n=e==null?void 0:e.scrollWidth)!==null&&n!==void 0?n:0,height:(r=e==null?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let e=this.ref.current;var n,r,i,o;return{x:(n=e==null?void 0:e.scrollLeft)!==null&&n!==void 0?n:0,y:(r=e==null?void 0:e.scrollTop)!==null&&r!==void 0?r: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 Rl{isDisabled(e){var n;return this.disabledBehavior==="all"&&(((n=e.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,n){let r=e;for(;r!=null;){let i=this.collection.getItem(r);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(e){let n=e;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(e){let n=e;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(e,n,r){let i=e,o=this.layoutDelegate.getItemRect(i);if(!o||i==null)return null;let l=o;do{if(i=n(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&r(l,o)&&i!=null);return i}isSameRow(e,n){return e.y===n.y||e.x!==n.x}isSameColumn(e,n){return e.x===n.x||e.y!==n.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,n){return n?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,r=>this.getNextColumn(r,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,n=>this.collection.getKeyAfter(n))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(e){let n=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(n&&!Bn(n))return this.getFirstKey();let i=e;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(e){let n=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(n&&!Bn(n))return this.getLastKey();let i=e;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(e,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let o=r.getItem(i);if(!o)return null;let l=o.textValue.slice(0,e.length);if(o.textValue&&this.collator.compare(l,e)===0)return i;i=this.getNextKey(i)}return null}constructor(...e){if(e.length===1){let n=e[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new is(n.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 is(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function C0(t){let{selectionManager:e,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:l}=t,a=_l({usage:"search",sensitivity:"base"}),s=e.disabledBehavior,c=u.useMemo(()=>o||new Rl({collection:n,disabledKeys:r,disabledBehavior:s,ref:i,collator:a,layoutDelegate:l}),[o,l,n,r,i,a,s]),{collectionProps:d}=b0({...t,ref:i,selectionManager:e,keyboardDelegate:c});return{listProps:d}}function B5(t,e,n){let r=fe(t,{labelable:!0}),i=t.selectionBehavior||"toggle",o=t.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&o==="action"&&(o="override");let{listProps:l}=C0({...t,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:o}),{focusWithinProps:a}=vi({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),s=we(t.id);kl.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}=Ou({...t,id:s,labelElementType:"span"});return{labelProps:c,listBoxProps:ie(r,a,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...ie(d,l)})}}class U5{build(e,n){return this.context=n,os(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:n,items:r}=e;if(u.isValidElement(n)&&n.type===u.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let o of r)yield*this.getFullNode({value:o,index:i},{renderer:n}),i++}else{let i=[];u.Children.forEach(n,l=>{l&&i.push(l)});let o=0;for(let l of i){let a=this.getFullNode({element:l,index:o},{});for(let s of a)o++,yield s}}}getKey(e,n,r,i){if(e.key!=null)return e.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let o=n.value;if(o!=null){var l;let a=(l=o.key)!==null&&l!==void 0?l:o.id;if(a==null)throw new Error("No key found for item");return a}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(e,n){return{renderer:n.renderer||e.renderer}}*getFullNode(e,n,r,i){if(u.isValidElement(e.element)&&e.element.type===u.Fragment){let g=[];u.Children.forEach(e.element.props.children,C=>{g.push(C)});var o;let b=(o=e.index)!==null&&o!==void 0?o:0;for(const C of g)yield*this.getFullNode({element:C,index:b++},n,r,i);return}let l=e.element;if(!l&&e.value&&n&&n.renderer){let g=this.cache.get(e.value);if(g&&(!g.shouldInvalidate||!g.shouldInvalidate(this.context))){g.index=e.index,g.parentKey=i?i.key:null,yield g;return}l=n.renderer(e.value)}if(u.isValidElement(l)){let g=l.type;if(typeof g!="function"&&typeof g.getCollectionNode!="function"){let P=l.type;throw new Error(`Unknown element <${P}> in collection.`)}let b=g.getCollectionNode(l.props,this.context);var a;let C=(a=e.index)!==null&&a!==void 0?a:0,S=b.next();for(;!S.done&&S.value;){let P=S.value;e.index=C;var s;let E=(s=P.key)!==null&&s!==void 0?s:null;E==null&&(E=P.element?null:this.getKey(l,e,n,r));let $=[...this.getFullNode({...P,key:E,index:C,wrapper:W5(e.wrapper,P.wrapper)},this.getChildState(n,P),r?`${r}${l.key}`:l.key,i)];for(let N of $){var c,d;N.value=(d=(c=P.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 <${Yi(N.type)}> in <${Yi((f=i==null?void 0:i.type)!==null&&f!==void 0?f:"unknown parent type")}>. Only <${Yi(e.type)}> is supported.`);C++,yield N}S=b.next($)}return}if(e.key==null||e.type==null)return;let p=this;var v,y;let h={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:(v=e.value)!==null&&v!==void 0?v: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:os(function*(){if(!e.hasChildNodes||!e.childNodes)return;let g=0;for(let b of e.childNodes()){b.key!=null&&(b.key=`${h.key}${b.key}`);let C=p.getFullNode({...b,index:g},p.getChildState(n,b),h.key,h);for(let S of C)g++,yield S}})};yield h}constructor(){this.cache=new WeakMap}}function os(t){let e=[],n=null;return{*[Symbol.iterator](){for(let r of e)yield r;n||(n=t());for(let r of n)e.push(r),yield r}}}function W5(t,e){if(t&&e)return n=>t(e(n));if(t)return t;if(e)return e}function Yi(t){return t[0].toUpperCase()+t.slice(1)}function S0(t,e,n){let r=u.useMemo(()=>new U5,[]),{children:i,items:o,collection:l}=t;return u.useMemo(()=>{if(l)return l;let s=r.build({children:i,items:o},n);return e(s)},[r,i,o,l,n,e])}function w0(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function Z5(t){return G5(t)}function G5(t,e){for(let n of t)return n}function Xi(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...ls(t,e),e],i=[...ls(t,n),n],o=r.slice(0,i.length).findIndex((l,a)=>l!==i[a]);return o!==-1?(e=r[o],n=i[o],e.index-n.index):r.findIndex(l=>l===n)>=0?1:(i.findIndex(l=>l===e)>=0,-1)}function ls(t,e){let n=[],r=e;for(;(r==null?void 0:r.parentKey)!=null;)r=t.getItem(r.parentKey),r&&n.unshift(r);return n}const as=new WeakMap;function x0(t){let e=as.get(t);if(e!=null)return e;let n=0,r=i=>{for(let o of i)o.type==="section"?r(w0(o,t)):o.type==="item"&&n++};return r(t),as.set(t,n),n}function q5(t,e,n){var r,i;let{key:o}=t,l=kl.get(e);var a;let s=(a=t.isDisabled)!==null&&a!==void 0?a: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:l==null?void 0:l.shouldSelectOnPressUp;var v;let y=(v=t.shouldFocusOnHover)!==null&&v!==void 0?v:l==null?void 0:l.shouldFocusOnHover;var h;let g=(h=t.shouldUseVirtualFocus)!==null&&h!==void 0?h:l==null?void 0:l.shouldUseVirtualFocus;var b;let C=(b=t.isVirtualized)!==null&&b!==void 0?b:l==null?void 0:l.isVirtualized,S=ft(),P=ft(),E={role:"option","aria-disabled":s||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?d:void 0};pt()&&vl()||(E["aria-label"]=t["aria-label"],E["aria-labelledby"]=S,E["aria-describedby"]=P);let x=e.collection.getItem(o);if(C){let R=Number(x==null?void 0:x.index);E["aria-posinset"]=Number.isNaN(R)?void 0:R+1,E["aria-setsize"]=x0(e.collection)}let $=l!=null&&l.onAction?()=>{var R;return l==null||(R=l.onAction)===null||R===void 0?void 0:R.call(l,o)}:void 0,N=K5(e,o),{itemProps:F,isPressed:V,isFocused:w,hasAction:M,allowsSelection:B}=Nl({selectionManager:e.selectionManager,key:o,ref:n,shouldSelectOnPressUp:p,allowsDifferentPressOrigin:p&&y,isVirtualized:C,shouldUseVirtualFocus:g,isDisabled:s,onAction:$||!(x==null||(r=x.props)===null||r===void 0)&&r.onAction?Tt(x==null||(i=x.props)===null||i===void 0?void 0:i.onAction,$):void 0,linkBehavior:l==null?void 0:l.linkBehavior,id:N}),{hoverProps:A}=Cn({isDisabled:s||!y,onHoverStart(){vn()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(o))}}),U=fe(x==null?void 0:x.props);delete U.id;let T=ml(x==null?void 0:x.props);return{optionProps:{...E,...ie(U,F,A,T),id:N},labelProps:{id:S},descriptionProps:{id:P},isFocused:w,isFocusVisible:w&&e.selectionManager.isFocused&&vn(),isSelected:d,isDisabled:s,isPressed:V,allowsSelection:B,hasAction:M}}function Y5(t){let{heading:e,"aria-label":n}=t,r=we();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}var E0={};E0={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var $0={};$0={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var P0={};P0={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var D0={};D0={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var T0={};T0={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var _0={};_0={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var I0={};I0={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var O0={};O0={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var k0={};k0={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var N0={};N0={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var R0={};R0={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var M0={};M0={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var L0={};L0={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var A0={};A0={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var F0={};F0={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var K0={};K0={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var j0={};j0={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var H0={};H0={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var V0={};V0={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var z0={};z0={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var B0={};B0={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var U0={};U0={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var W0={};W0={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var Z0={};Z0={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var G0={};G0={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var q0={};q0={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var Y0={};Y0={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var X0={};X0={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var J0={};J0={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Q0={};Q0={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var ed={};ed={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var td={};td={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var nd={};nd={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var rd={};rd={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var id={};id={"ar-AE":E0,"bg-BG":$0,"cs-CZ":P0,"da-DK":D0,"de-DE":T0,"el-GR":_0,"en-US":I0,"es-ES":O0,"et-EE":k0,"fi-FI":N0,"fr-FR":R0,"he-IL":M0,"hr-HR":L0,"hu-HU":A0,"it-IT":F0,"ja-JP":K0,"ko-KR":j0,"lt-LT":H0,"lv-LV":V0,"nb-NO":z0,"nl-NL":B0,"pl-PL":U0,"pt-BR":W0,"pt-PT":Z0,"ro-RO":G0,"ru-RU":q0,"sk-SK":Y0,"sl-SI":X0,"sr-SP":J0,"sv-SE":Q0,"tr-TR":ed,"uk-UA":td,"zh-CN":nd,"zh-TW":rd};function X5(t){return t&&t.__esModule?t.default:t}function J5(t,e,n){let{type:r="menu",isDisabled:i,trigger:o="press"}=t,l=we(),{triggerProps:a,overlayProps:s}=$5({type:r},e,n),c=v=>{if(!i&&!(o==="longPress"&&!v.altKey)&&n&&n.current)switch(v.key){case"Enter":case" ":if(o==="longPress")return;case"ArrowDown":"continuePropagation"in v||v.stopPropagation(),v.preventDefault(),e.toggle("first");break;case"ArrowUp":"continuePropagation"in v||v.stopPropagation(),v.preventDefault(),e.toggle("last");break;default:"continuePropagation"in v&&v.continuePropagation()}},d=xu(X5(id),"@react-aria/menu"),{longPressProps:f}=bu({isDisabled:i||o!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){e.close()},onLongPress(){e.open("first")}}),p={preventFocusOnPress:!0,onPressStart(v){v.pointerType!=="touch"&&v.pointerType!=="keyboard"&&!i&&(Ve(v.target),e.open(v.pointerType==="virtual"?"first":null))},onPress(v){v.pointerType==="touch"&&!i&&(Ve(v.target),e.toggle())}};return delete a.onPress,{menuTriggerProps:{...a,...o==="press"?p:f,id:l,onKeyDown:c},menuProps:{...s,"aria-labelledby":l,autoFocus:e.focusStrategy||!0,onClose:e.close}}}const od=new WeakMap;function Q5(t,e,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:o,...l}=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 a=fe(t,{labelable:!0}),{listProps:s}=C0({...l,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return od.set(e,{onClose:t.onClose,onAction:t.onAction,shouldUseVirtualFocus:t.shouldUseVirtualFocus}),{menuProps:ie(a,{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 ep(t,e,n){let{id:r,key:i,closeOnSelect:o,isVirtualized:l,"aria-haspopup":a,onPressStart:s,onPressUp:c,onPress:d,onPressChange:f,onPressEnd:p,onHoverStart:v,onHoverChange:y,onHoverEnd:h,onKeyDown:g,onKeyUp:b,onFocus:C,onFocusChange:S,onBlur:P,selectionManager:E=e.selectionManager}=t,x=!!a,$=x&&t["aria-expanded"]==="true";var N;let F=(N=t.isDisabled)!==null&&N!==void 0?N:E.isDisabled(i);var V;let w=(V=t.isSelected)!==null&&V!==void 0?V:E.isSelected(i),M=od.get(e),B=e.collection.getItem(i),A=t.onClose||M.onClose,U=si(),T=ee=>{var it;if(!x){if(!(B==null||(it=B.props)===null||it===void 0)&&it.onAction?B.props.onAction():t.onAction&&t.onAction(i),M.onAction){let xn=M.onAction;xn(i)}ee.target instanceof HTMLAnchorElement&&B&&U.open(ee.target,ee,B.props.href,B.props.routerOptions)}},R="menuitem";x||(E.selectionMode==="single"?R="menuitemradio":E.selectionMode==="multiple"&&(R="menuitemcheckbox"));let k=ft(),Z=ft(),I=ft(),L={id:r,"aria-disabled":F||void 0,role:R,"aria-label":t["aria-label"],"aria-labelledby":k,"aria-describedby":[Z,I].filter(Boolean).join(" ")||void 0,"aria-controls":t["aria-controls"],"aria-haspopup":a,"aria-expanded":t["aria-expanded"]};E.selectionMode!=="none"&&!x&&(L["aria-checked"]=w),l&&(L["aria-posinset"]=B==null?void 0:B.index,L["aria-setsize"]=x0(e.collection));let _=ee=>{ee.pointerType==="keyboard"&&T(ee),s==null||s(ee)},O=()=>{!x&&A&&(o??(E.selectionMode!=="multiple"||E.isLink(i)))&&A()},H=ee=>{ee.pointerType==="mouse"&&(T(ee),O()),c==null||c(ee)},K=ee=>{ee.pointerType!=="keyboard"&&ee.pointerType!=="mouse"&&(T(ee),O()),d==null||d(ee)},{itemProps:j,isFocused:z}=Nl({id:r,selectionManager:E,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:M.shouldUseVirtualFocus}),{pressProps:W,isPressed:q}=hi({onPressStart:_,onPress:K,onPressUp:H,onPressChange:f,onPressEnd:p,isDisabled:F}),{hoverProps:X}=Cn({isDisabled:F,onHoverStart(ee){!vn()&&!($&&a)&&(E.setFocused(!0),E.setFocusedKey(i)),v==null||v(ee)},onHoverChange:y,onHoverEnd:h}),{keyboardProps:ce}=mu({onKeyDown:ee=>{if(ee.repeat){ee.continuePropagation();return}switch(ee.key){case" ":!F&&E.selectionMode==="none"&&!x&&o!==!1&&A&&A();break;case"Enter":!F&&o!==!1&&!x&&A&&A();break;default:x||ee.continuePropagation(),g==null||g(ee);break}},onKeyUp:b}),{focusProps:G}=Pl({onBlur:P,onFocus:C,onFocusChange:S}),te=fe(B==null?void 0:B.props);delete te.id;let ue=ml(B==null?void 0:B.props);return{menuItemProps:{...L,...ie(te,ue,x?{onFocus:j.onFocus,"data-collection":j["data-collection"],"data-key":j["data-key"]}:j,W,X,ce,G,M.shouldUseVirtualFocus||x?{onMouseDown:ee=>ee.preventDefault()}:void 0),tabIndex:j.tabIndex!=null&&$&&!M.shouldUseVirtualFocus?-1:j.tabIndex},labelProps:{id:k},descriptionProps:{id:Z},keyboardShortcutProps:{id:I},isFocused:z,isFocusVisible:z&&E.isFocused&&vn()&&!$,isSelected:w,isPressed:q,isDisabled:F}}function tp(t){let{heading:e,"aria-label":n}=t,r=we();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}function np(t,e){let{role:n="dialog"}=t,r=ft();r=t["aria-label"]?void 0:r;let i=u.useRef(!1);return u.useEffect(()=>{if(e.current&&!e.current.contains(document.activeElement)){vt(e.current);let o=setTimeout(()=>{document.activeElement===e.current&&(i.current=!0,e.current&&(e.current.blur(),vt(e.current)),i.current=!1)},500);return()=>{clearTimeout(o)}}},[e]),A5(),{dialogProps:{...fe(t,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":t["aria-labelledby"]||r,onBlur:o=>{i.current&&o.stopPropagation()}},titleProps:{id:r}}}const ld=new WeakMap;function rp(t,e,n){let{keyboardDelegate:r,isDisabled:i,isRequired:o,name:l,validationBehavior:a="aria"}=t,s=_l({usage:"search",sensitivity:"base"}),c=u.useMemo(()=>r||new Rl(e.collection,e.disabledKeys,n,s),[r,e.collection,e.disabledKeys,s,n]),{menuTriggerProps:d,menuProps:f}=J5({isDisabled:i,type:"listbox"},e,n),p=N=>{switch(N.key){case"ArrowLeft":{var F,V;N.preventDefault();let B=e.selectedKey!=null?(F=c.getKeyAbove)===null||F===void 0?void 0:F.call(c,e.selectedKey):(V=c.getFirstKey)===null||V===void 0?void 0:V.call(c);B&&e.setSelectedKey(B);break}case"ArrowRight":{var w,M;N.preventDefault();let B=e.selectedKey!=null?(w=c.getKeyBelow)===null||w===void 0?void 0:w.call(c,e.selectedKey):(M=c.getFirstKey)===null||M===void 0?void 0:M.call(c);B&&e.setSelectedKey(B);break}}},{typeSelectProps:v}=y0({keyboardDelegate:c,selectionManager:e.selectionManager,onTypeSelect(N){e.setSelectedKey(N)}}),{isInvalid:y,validationErrors:h,validationDetails:g}=e.displayValidation,{labelProps:b,fieldProps:C,descriptionProps:S,errorMessageProps:P}=d5({...t,labelElementType:"span",isInvalid:y,errorMessage:t.errorMessage||h});v.onKeyDown=v.onKeyDownCapture,delete v.onKeyDownCapture;let E=fe(t,{labelable:!0}),x=ie(v,d,C),$=we();return ld.set(e,{isDisabled:i,isRequired:o,name:l,validationBehavior:a}),{labelProps:{...b,onClick:()=>{if(!t.isDisabled){var N;(N=n.current)===null||N===void 0||N.focus(),gu("keyboard")}}},triggerProps:ie(E,{...x,isDisabled:i,onKeyDown:Tt(x.onKeyDown,p,t.onKeyDown),onKeyUp:t.onKeyUp,"aria-labelledby":[$,x["aria-labelledby"],x["aria-label"]&&!x["aria-labelledby"]?x.id:null].filter(Boolean).join(" "),onFocus(N){e.isFocused||(t.onFocus&&t.onFocus(N),t.onFocusChange&&t.onFocusChange(!0),e.setFocused(!0))},onBlur(N){e.isOpen||(t.onBlur&&t.onBlur(N),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))}}),valueProps:{id:$},menuProps:{...f,autoFocus:e.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:N=>{N.currentTarget.contains(N.relatedTarget)||(t.onBlur&&t.onBlur(N),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))},"aria-labelledby":[C["aria-labelledby"],x["aria-label"]&&!C["aria-labelledby"]?x.id:null].filter(Boolean).join(" ")},descriptionProps:S,errorMessageProps:P,isInvalid:y,validationErrors:h,validationDetails:g}}function ip(t,e,n){let r=ld.get(e)||{},{autoComplete:i,name:o=r.name,isDisabled:l=r.isDisabled}=t,{validationBehavior:a,isRequired:s}=r,{visuallyHiddenProps:c}=ku();F1(t.selectRef,e.selectedKey,e.setSelectedKey),a5({validationBehavior:a,focus:()=>{var f;return(f=n.current)===null||f===void 0?void 0:f.focus()}},e,t.selectRef);var d;return{containerProps:{...c,"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:a==="native"&&s,name:o,value:(d=e.selectedKey)!==null&&d!==void 0?d:void 0,onChange:f=>e.setSelectedKey(f.target.value)}}}function op(t){let{state:e,triggerRef:n,label:r,name:i,isDisabled:o}=t,l=u.useRef(null),{containerProps:a,selectProps:s}=ip({...t,selectRef:l},e,n);var c;return e.collection.size<=300?u.createElement("div",{...a,"data-testid":"hidden-select-container"},u.createElement("label",null,r,u.createElement("select",{...s,ref:l},u.createElement("option",null),[...e.collection.getKeys()].map(d=>{let f=e.collection.getItem(d);if(f&&f.type==="item")return u.createElement("option",{key:f.key,value:f.key},f.textValue)})))):i?u.createElement("input",{type:"hidden",autoComplete:s.autoComplete,name:i,disabled:o,value:(c=e.selectedKey)!==null&&c!==void 0?c:""}):null}function lp(t){let e=fe(t,{labelable:!0}),n;return t.orientation==="vertical"&&(n="vertical"),t.elementType!=="hr"?{separatorProps:{...e,role:"separator","aria-orientation":n}}:{separatorProps:e}}const ad=new WeakMap;function Gr(t,e,n){return t?(typeof e=="string"&&(e=e.replace(/\s+/g,"")),`${ad.get(t)}-${n}-${e}`):""}function ap(t,e,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:o}=t,{selectionManager:l,selectedKey:a}=e,s=r===a,c=i||e.isDisabled||e.selectionManager.isDisabled(r),{itemProps:d,isPressed:f}=Nl({selectionManager:l,key:r,ref:n,isDisabled:c,shouldSelectOnPressUp:o,linkBehavior:"selection"}),p=Gr(e,r,"tab"),v=Gr(e,r,"tabpanel"),{tabIndex:y}=d,h=e.collection.getItem(r),g=fe(h==null?void 0:h.props,{labelable:!0});delete g.id;let b=ml(h==null?void 0:h.props),{focusableProps:C}=yu({isDisabled:c},n);return{tabProps:ie(g,C,b,d,{id:p,"aria-selected":s,"aria-disabled":c||void 0,"aria-controls":s?v:void 0,tabIndex:c?void 0:y,role:"tab"}),isSelected:s,isDisabled:c,isPressed:f}}function sp(t,e,n){let r=Jh(n)?void 0:0;var i;const o=Gr(e,(i=t.id)!==null&&i!==void 0?i:e==null?void 0:e.selectedKey,"tabpanel"),l=ui({...t,id:o,"aria-labelledby":Gr(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:ie(l,{tabIndex:r,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}class cp{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 n,r;return this.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.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 n=e;do n=this.collection.getKeyAfter(n),n==null&&(n=this.collection.getFirstKey());while(n!=null&&this.isDisabled(n));return n}getPreviousKey(e){let n=e;do n=this.collection.getKeyBefore(n),n==null&&(n=this.collection.getLastKey());while(n!=null&&this.isDisabled(n));return n}constructor(e,n,r,i=new Set){this.collection=e,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=i,this.tabDirection=r==="horizontal"}}function up(t,e,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=t,{collection:o,selectionManager:l,disabledKeys:a}=e,{direction:s}=Kt(),c=u.useMemo(()=>new cp(o,s,r,a),[o,a,r,s]),{collectionProps:d}=b0({ref:n,selectionManager:l,keyboardDelegate:c,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=we();ad.set(e,f);let p=ui({...t,id:f});return{tabListProps:{...ie(d,p),role:"tablist","aria-orientation":r,tabIndex:void 0}}}const sd=u.createContext({}),dp=wl(function(e,n){[e,n]=Ye(e,n,sd);let{elementType:r="label",...i}=e;return u.createElement(r,{className:"react-aria-Label",...i,ref:n})}),fp=u.createContext(null),hp=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Ml=u.createContext({}),pp=wl(function(e,n){[e,n]=Ye(e,n,Ml),e=vp(e);let r=e,{isPending:i}=r,{buttonProps:o,isPressed:l}=zh(e,n),{focusProps:a,isFocused:s,isFocusVisible:c}=Sn(e),{hoverProps:d,isHovered:f}=Cn({...e,isDisabled:e.isDisabled||i}),p={isHovered:f,isPressed:(r.isPressed||l)&&!i,isFocused:s,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:i??!1},v=Ee({...e,values:p,defaultClassName:"react-aria-Button"}),y=we(o.id),h=we(),g=o["aria-labelledby"];i&&(g?g=`${g} ${h}`:o["aria-label"]&&(g=`${y} ${h}`));let b=u.useRef(i);return u.useEffect(()=>{let C={"aria-labelledby":g||y};(!b.current&&s&&i||b.current&&s&&!i)&&za(C,"assertive"),b.current=i},[i,s,g,y]),u.createElement("button",{...fe(e,{propNames:hp}),...ie(o,a,d),...v,type:o.type==="submit"&&i?"button":o.type,id:y,ref:n,"aria-labelledby":g,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(fp.Provider,{value:{id:h}},v.children))});function vp(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 Ll=u.createContext({}),gp=u.createContext(null);class ss{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let n=this.keyMap.get(e);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getChildren(e){let n=this.keyMap.get(e);return(n==null?void 0:n.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let n=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&l.type==="section")for(let a of l.childNodes)n(a)};for(let l of e)n(l);let r=null,i=0;for(let[l,a]of this.keyMap)r?(r.nextKey=l,a.prevKey=r.key):(this.firstKey=l,a.prevKey=void 0),a.type==="item"&&(a.index=i++),r=a,r.nextKey=void 0;var o;this.lastKey=(o=r==null?void 0:r.key)!==null&&o!==void 0?o:null}}class je extends Set{constructor(e,n,r){super(e),e instanceof je?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function mp(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function Al(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=t,l=u.useRef(!1),[,a]=u.useState(!1),s=u.useRef(null),c=u.useRef(null),[,d]=u.useState(null),f=u.useMemo(()=>cs(t.selectedKeys),[t.selectedKeys]),p=u.useMemo(()=>cs(t.defaultSelectedKeys,new je),[t.defaultSelectedKeys]),[v,y]=di(f,p,t.onSelectionChange),h=u.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[g,b]=u.useState(i);i==="replace"&&g==="toggle"&&typeof v=="object"&&v.size===0&&b("replace");let C=u.useRef(i);return u.useEffect(()=>{i!==C.current&&(b(i),C.current=i)},[i]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:g,setSelectionBehavior:b,get isFocused(){return l.current},setFocused(S){l.current=S,a(S)},get focusedKey(){return s.current},get childFocusStrategy(){return c.current},setFocusedKey(S,P="first"){s.current=S,c.current=P,d(S)},selectedKeys:v,setSelectedKeys(S){(r||!mp(S,v))&&y(S)},disabledKeys:h,disabledBehavior:o}}function cs(t,e){return t?t==="all"?"all":new je(t):e}class nr{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,n){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,n)}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 n=this.getKey(e);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}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(),n=this.state.selectedKeys;return this._isSelectAll=e.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&Xi(this.collection,i,e)<0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&Xi(this.collection,i,e)>0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n: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 n=this.getKey(e);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new je([n],n,n);else{let l=this.state.selectedKeys;var i;let a=(i=l.anchorKey)!==null&&i!==void 0?i:n;r=new je(l,a,n);var o;for(let s of this.getKeyRange(a,(o=l.currentKey)!==null&&o!==void 0?o:n))r.delete(s);for(let s of this.getKeyRange(n,a))this.canSelectItem(s)&&r.add(s)}this.state.setSelectedKeys(r)}getKeyRange(e,n){let r=this.collection.getItem(e),i=this.collection.getItem(n);return r&&i?Xi(this.collection,r,i)<=0?this.getKeyRangeInternal(e,n):this.getKeyRangeInternal(n,e):[]}getKeyRangeInternal(e,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(e,n);let i=[],o=e;for(;o!=null;){let l=this.collection.getItem(o);if(l&&(l.type==="item"||l.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(e){let n=this.collection.getItem(e);if(!n||n.type==="cell"&&this.allowsCellSelection)return e;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r=new je(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(e){if(this.selectionMode==="none")return;let n=this.getKey(e);if(n==null)return;let r=this.canSelectItem(n)?new je([n],n,n):new je;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new je;for(let r of e){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let l=this.collection.getItem(r);(l==null?void 0:l.type)==="item"&&e.push(r);var o;l!=null&&l.hasChildNodes&&(this.allowsCellSelection||l.type!=="item")&&n((o=(i=Z5(w0(l,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}r=this.collection.getKeyAfter(r)}};return n(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 je)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(e.size!==n.size)return!1;for(let r of e)if(!n.has(r))return!1;for(let r of n)if(!e.has(r))return!1;return!0}canSelectItem(e){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let r=this.collection.getItem(e);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(e){var n,r;return!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(e){var n;return(n=this.collection.getItem(e))===null||n===void 0?void 0:n.props}withCollection(e){return new nr(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,n,r){this.collection=e,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function cd(t){let{filter:e,layoutDelegate:n}=t,r=Al(t),i=u.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),o=u.useCallback(c=>e?new ss(e(c)):new ss(c),[e]),l=u.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),a=S0(t,o,l),s=u.useMemo(()=>new nr(a,r,{layoutDelegate:n}),[a,r,n]);return ud(a,s),{collection:a,disabledKeys:i,selectionManager:s}}function yp(t,e){let n=u.useMemo(()=>e?t.collection.UNSTABLE_filter(e):t.collection,[t.collection,e]),r=t.selectionManager.withCollection(n);return ud(n,r),{collection:n,selectionManager:r,disabledKeys:t.disabledKeys}}function ud(t,e){const n=u.useRef(null);u.useEffect(()=>{if(e.focusedKey!=null&&!t.getItem(e.focusedKey)&&n.current){const d=n.current.getItem(e.focusedKey),f=[...n.current.getKeys()].map(b=>{const C=n.current.getItem(b);return(C==null?void 0:C.type)==="item"?C:null}).filter(b=>b!==null),p=[...t.getKeys()].map(b=>{const C=t.getItem(b);return(C==null?void 0:C.type)==="item"?C:null}).filter(b=>b!==null);var r,i;const v=((r=f==null?void 0:f.length)!==null&&r!==void 0?r:0)-((i=p==null?void 0:p.length)!==null&&i!==void 0?i:0);var o,l,a;let y=Math.min(v>1?Math.max(((o=d==null?void 0:d.index)!==null&&o!==void 0?o:0)-v+1,0):(l=d==null?void 0:d.index)!==null&&l!==void 0?l:0,((a=p==null?void 0:p.length)!==null&&a!==void 0?a:0)-1),h=null,g=!1;for(;y>=0;){if(!e.isDisabled(p[y].key)){h=p[y];break}if(y<p.length-1&&!g)y++;else{g=!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)}n.current=t},[t,e])}function dd(t){var e;let[n,r]=di(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),i=u.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:l,selectionManager:a}=cd({...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===n&&t.onSelectionChange&&t.onSelectionChange(f),r(f)}}),s=n!=null?o.getItem(n):null;return{collection:o,disabledKeys:l,selectionManager:a,selectedKey:n,setSelectedKey:r,selectedItem:s}}function Fl(t){let[e,n]=di(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const r=u.useCallback(()=>{n(!0)},[n]),i=u.useCallback(()=>{n(!1)},[n]),o=u.useCallback(()=>{n(!e)},[n,e]);return{isOpen:e,setOpen:n,open:r,close:i,toggle:o}}function bp(t){let{initialItems:e=[],initialSelectedKeys:n,getKey:r=h=>{var g;return(g=h.id)!==null&&g!==void 0?g:h.key},getChildren:i=h=>h.children}=t,[o,l]=u.useState(()=>f(e,new Map)),{items:a,nodeMap:s}=o,[c,d]=u.useState(new Set(n||[]));function f(h=[],g,b){return h==null&&(h=[]),{items:h.map(C=>{let S={key:r(C),parentKey:b??null,value:C,children:null};return S.children=f(i(C),g,S.key).items,g.set(S.key,S),S}),nodeMap:g}}function p(h,g,b,C){let S=g==null?null:C.get(g);if(S==null)return{items:h,nodeMap:C};let P=new Map(C),E=b(S);for(E==null?y(S,P):v(E,P);S&&S.parentKey;){let $=P.get(S.parentKey),N={key:$.key,parentKey:$.parentKey,value:$.value,children:null},F=$.children;E==null&&F&&(F=F.filter(V=>V!==S));var x;N.children=(x=F==null?void 0:F.map(V=>V===S?E:V))!==null&&x!==void 0?x:null,P.set(N.key,N),E=N,S=$}return E==null&&(h=h.filter($=>$!==S)),{items:h.map($=>$===S?E:$),nodeMap:P}}function v(h,g){if(g.set(h.key,h),h.children)for(let b of h.children)v(b,g)}function y(h,g){if(g.delete(h.key),h.children)for(let b of h.children)y(b,g)}return{items:a,selectedKeys:c,setSelectedKeys:d,getItem(h){return s.get(h)},insert(h,g,...b){l(({items:C,nodeMap:S})=>{let{items:P,nodeMap:E}=f(b,S,h);return h==null?{items:[...C.slice(0,g),...P,...C.slice(g)],nodeMap:E}:p(C,h,x=>({key:x.key,parentKey:x.parentKey,value:x.value,children:[...x.children.slice(0,g),...P,...x.children.slice(g)]}),E)})},insertBefore(h,...g){let b=s.get(h);if(!b)return;let C=s.get(b.parentKey),P=(C?C.children:a).indexOf(b);var E;this.insert((E=C==null?void 0:C.key)!==null&&E!==void 0?E:null,P,...g)},insertAfter(h,...g){let b=s.get(h);if(!b)return;let C=s.get(b.parentKey),P=(C?C.children:a).indexOf(b);var E;this.insert((E=C==null?void 0:C.key)!==null&&E!==void 0?E:null,P+1,...g)},prepend(h,...g){this.insert(h,0,...g)},append(h,...g){if(h==null)this.insert(null,a.length,...g);else{let b=s.get(h);if(!b)return;this.insert(h,b.children.length,...g)}},remove(...h){if(h.length===0)return;let g=a,b=s,C;for(let P of h)C=p(g,P,()=>null,b),b=C.nodeMap,g=C.items;l(C);let S=new Set(c);for(let P of c)C.nodeMap.has(P)||S.delete(P);d(S)},removeSelectedItems(){this.remove(...c)},move(h,g,b){l(({items:C,nodeMap:S})=>{let P=S.get(h);if(!P)return{items:C,nodeMap:S};let{items:E,nodeMap:x}=p(C,h,()=>null,S);const $={...P,parentKey:g};return g==null?(v($,x),{items:[...E.slice(0,b),$,...E.slice(b)],nodeMap:x}):p(E,g,N=>({key:N.key,parentKey:N.parentKey,value:N.value,children:[...N.children.slice(0,b),$,...N.children.slice(b)]}),x)})},moveBefore(h,g){l(b=>{let{items:C,nodeMap:S}=b,P=S.get(h);if(!P)return b;var E;let x=(E=P.parentKey)!==null&&E!==void 0?E:null,$=null;var N;x!=null&&($=(N=S.get(x))!==null&&N!==void 0?N:null);let F=$!=null&&$.children?$.children.indexOf(P):C.indexOf(P);return us(b,g,$,F,p,v)})},moveAfter(h,g){l(b=>{let{items:C,nodeMap:S}=b,P=S.get(h);if(!P)return b;var E;let x=(E=P.parentKey)!==null&&E!==void 0?E:null,$=null;var N;x!=null&&($=(N=S.get(x))!==null&&N!==void 0?N:null);let F=$!=null&&$.children?$.children.indexOf(P):C.indexOf(P);return F++,us(b,g,$,F,p,v)})},update(h,g){l(({items:b,nodeMap:C})=>p(b,h,S=>{let P={key:S.key,parentKey:S.parentKey,value:g,children:null},E=f(i(g),C,P.key);return P.children=E.items,P},C))}}}function us(t,e,n,r,i,o){let{items:l,nodeMap:a}=t,s=n,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=a.get(s.parentKey))!==null&&d!==void 0?d:null}let f=r,p=Array.isArray(e)?e:[...e],v=new Map,y=[],h=l,g=a,b=0;function C(x,{inorder:$,postorder:N}){$==null||$(x);var F;if(x!=null)for(let V of(F=x.children)!==null&&F!==void 0?F:[])C(V,{inorder:$,postorder:N}),N==null||N(V)}function S(x){p.includes(x.key)&&v.set(x.key,b++)}function P(x){if(p.includes(x.key)){var $;y.push({...g.get(x.key),parentKey:($=n==null?void 0:n.key)!==null&&$!==void 0?$:null});let{items:N,nodeMap:F}=i(h,x.key,()=>null,g);h=N,g=F}x.parentKey===(n==null?void 0:n.key)&&p.includes(x.key)&&(n!=null&&n.children?n.children.indexOf(x):l.indexOf(x))<f&&r--}C({children:l},{inorder:S,postorder:P});let E=y.sort((x,$)=>v.get(x.key)>v.get($.key)?1:-1);return!n||n.key==null?(E.forEach(x=>{o(x,g)}),{items:[...h.slice(0,r),...E,...h.slice(r)],nodeMap:g}):i(h,n.key,x=>({key:x.key,parentKey:x.parentKey,value:x.value,children:[...x.children.slice(0,r),...E,...x.children.slice(r)]}),g)}function Cp(t){let e=Fl(t),[n,r]=u.useState(null),[i,o]=u.useState([]),l=()=>{o([]),e.close()};return{focusStrategy:n,...e,open(c=null){r(c),e.open()},toggle(c=null){r(c),e.toggle()},close(){l()},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 Sp(t){let e=Fl(t),[n,r]=u.useState(null),i=dd({...t,onSelectionChange:c=>{t.onSelectionChange!=null&&t.onSelectionChange(c),e.close(),o.commitValidation()}}),o=i5({...t,value:i.selectedKey}),[l,a]=u.useState(!1),s=u.useMemo(()=>{var c;return i.collection.size===0||i.collection.size===1&&((c=i.collection.getItem(i.collection.getFirstKey()))===null||c===void 0?void 0:c.type)==="loader"},[i.collection]);return{...o,...i,...e,focusStrategy:n,open(c=null){s||(r(c),e.open())},toggle(c=null){s||(r(c),e.toggle())},isFocused:l,setFocused:a}}function wp(t){var e,n;let r=dd({...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:(n=(e=t.defaultSelectedKey)!==null&&e!==void 0?e:ds(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set))!==null&&n!==void 0?n:void 0}),{selectionManager:i,collection:o,selectedKey:l}=r,a=u.useRef(l);return u.useEffect(()=>{let s=l;t.selectedKey==null&&(i.isEmpty||s==null||!o.getItem(s))&&(s=ds(o,r.disabledKeys),s!=null&&i.setSelectedKeys([s])),(s!=null&&i.focusedKey==null||!i.isFocused&&s!==a.current)&&i.setFocusedKey(s),a.current=s}),{...r,isDisabled:t.isDisabled||!1}}function ds(t,e){let n=null;if(t){var r,i,o,l;for(n=t.getFirstKey();n!=null&&(e.has(n)||!((i=t.getItem(n))===null||i===void 0||(r=i.props)===null||r===void 0)&&r.isDisabled)&&n!==t.getLastKey();)n=t.getKeyAfter(n);n!=null&&(e.has(n)||!((l=t.getItem(n))===null||l===void 0||(o=l.props)===null||o===void 0)&&o.isDisabled)&&n===t.getLastKey()&&(n=t.getFirstKey())}return n}class xp{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let n=this.keyMap.get(e);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}constructor(e,{expandedKeys:n}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,n=n||new Set;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&(a.type==="section"||n.has(a.key)))for(let s of a.childNodes)r(s)};for(let a of e)r(a);let i=null,o=0;for(let[a,s]of this.keyMap)i?(i.nextKey=a,s.prevKey=i.key):(this.firstKey=a,s.prevKey=void 0),s.type==="item"&&(s.index=o++),i=s,i.nextKey=void 0;var l;this.lastKey=(l=i==null?void 0:i.key)!==null&&l!==void 0?l:null}}function Ep(t){let{onExpandedChange:e}=t,[n,r]=di(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,e),i=Al(t),o=u.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),l=S0(t,u.useCallback(s=>new xp(s,{expandedKeys:n}),[n]),null);return u.useEffect(()=>{i.focusedKey!=null&&!l.getItem(i.focusedKey)&&i.setFocusedKey(null)},[l,i.focusedKey]),{collection:l,expandedKeys:n,disabledKeys:o,toggleKey:s=>{r($p(n,s))},setExpandedKeys:r,selectionManager:new nr(l,i)}}function $p(t,e){let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}const Pp=u.createContext(null),Uo=u.createContext(null),fd=u.createContext(null),hd={CollectionRoot({collection:t,renderDropIndicator:e}){return fs(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:n}){return fs(t,e,n)}};function fs(t,e,n){return au({items:e?t.getChildren(e.key):t,dependencies:[n],children(r){var i;let o=r.render(r);if(!n||r.type!=="item")return o;let l=r.key,a=t.getKeyAfter(l);return u.createElement(u.Fragment,null,n({type:"item",key:l,dropPosition:"before"}),o,(a==null||((i=t.getItem(a))===null||i===void 0?void 0:i.type)!=="item")&&n({type:"item",key:l,dropPosition:"after"}))}})}const jt=u.createContext(hd);function pd(t){return u.useMemo(()=>t!=null?new Set([t]):null,[t])}const bi=u.createContext({}),vd=u.createContext(null),Dp=u.forwardRef(function(e,n){let{render:r}=u.useContext(vd);return u.createElement(u.Fragment,null,r(e,n))});function gd(t,e){var n;let r=t==null?void 0:t.renderDropIndicator,i=t==null||(n=t.isVirtualDragging)===null||n===void 0?void 0:n.call(t),o=u.useCallback(l=>{if(i||e!=null&&e.isDropTarget(l))return r?r(l):u.createElement(Dp,{target:l})},[e==null?void 0:e.target,i,r]);return t!=null&&t.useDropIndicator?o:void 0}function Tp(t,e,n){var r,i;let o=t.focusedKey,l=null;if(!(e==null||(r=e.isVirtualDragging)===null||r===void 0)&&r.call(e)&&(n==null||(i=n.target)===null||i===void 0?void 0:i.type)==="item"){l=n.target.key;var a;n.target.dropPosition==="after"&&(l=(a=n.collection.getKeyAfter(l))!==null&&a!==void 0?a:l)}return u.useMemo(()=>new Set([o,l].filter(s=>s!=null)),[o,l])}const md=u.createContext({}),Kl=u.createContext({}),yd=mi("separator",function(e,n){[e,n]=Ye(e,n,Kl);let{elementType:r,orientation:i,style:o,className:l,slot:a,...s}=e,c=r||"hr";c==="hr"&&i==="vertical"&&(c="div");let{separatorProps:d}=lp({...s,elementType:r,orientation:i});return u.createElement(c,{...fe(e),...d,style:o,className:l??"react-aria-Separator",ref:n,slot:a||void 0})}),jl=u.createContext(null),rr=u.createContext(null),_p=u.forwardRef(function(e,n){[e,n]=Ye(e,n,jl);let r=u.useContext(rr);return r?u.createElement(bd,{state:r,props:e,listBoxRef:n}):u.createElement(gi,{content:u.createElement(Tl,e)},i=>u.createElement(Ip,{props:e,listBoxRef:n,collection:i}))});function Ip({props:t,listBoxRef:e,collection:n}){t={...t,collection:n,children:null,items:null};let{layoutDelegate:r}=u.useContext(jt),i=cd({...t,layoutDelegate:r});return u.createElement(bd,{state:i,props:t,listBoxRef:e})}function bd({state:t,props:e,listBoxRef:n}){let{filter:r,collectionProps:i,collectionRef:o}=u.useContext(Uo)||{};e=u.useMemo(()=>i?{...e,...i}:e,[e,i]);let{dragAndDropHooks:l,layout:a="stack",orientation:s="vertical"}=e;n=nt(u.useMemo(()=>hl(n,o!==void 0?o:null),[o,n]));let c=yp(t,r),{collection:d,selectionManager:f}=c,p=!!(l!=null&&l.useDraggableCollectionState),v=!!(l!=null&&l.useDroppableCollectionState),{direction:y}=Kt(),{disabledBehavior:h,disabledKeys:g}=f,b=_l({usage:"search",sensitivity:"base"}),{isVirtualized:C,layoutDelegate:S,dropTargetDelegate:P,CollectionRoot:E}=u.useContext(jt),x=u.useMemo(()=>e.keyboardDelegate||new Rl({collection:d,collator:b,ref:n,disabledKeys:g,disabledBehavior:h,layout:a,orientation:s,direction:y,layoutDelegate:S}),[d,b,n,h,g,s,y,e.keyboardDelegate,a,S]),{listBoxProps:$}=B5({...e,shouldSelectOnPressUp:p||e.shouldSelectOnPressUp,keyboardDelegate:x,isVirtualized:C},c,n),N=u.useRef(p),F=u.useRef(v);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."),F.current!==v&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[p,v]);let V,w,M,B=!1,A=null,U=u.useRef(null);if(p&&l){V=l.useDraggableCollectionState({collection:d,selectionManager:f,preview:l.renderDragPreview?U:void 0}),l.useDraggableCollection({},V,n);let _=l.DragPreview;A=l.renderDragPreview?u.createElement(_,{ref:U},l.renderDragPreview):null}if(v&&l){w=l.useDroppableCollectionState({collection:d,selectionManager:f});let _=l.dropTargetDelegate||P||new l.ListDropTargetDelegate(d,n,{orientation:s,layout:a,direction:y});M=l.useDroppableCollection({keyboardDelegate:x,dropTargetDelegate:_},w,n),B=w.isDropTarget({type:"root"})}let{focusProps:T,isFocused:R,isFocusVisible:k}=Sn(),Z={isDropTarget:B,isEmpty:c.collection.size===0,isFocused:R,isFocusVisible:k,layout:e.layout||"stack",state:c},I=Ee({className:e.className,style:e.style,defaultClassName:"react-aria-ListBox",values:Z}),L=null;return c.collection.size===0&&e.renderEmptyState&&(L=u.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(Z))),u.createElement(Il,null,u.createElement("div",{...fe(e),...ie($,T,M==null?void 0:M.collectionProps),...I,ref:n,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":B||void 0,"data-empty":c.collection.size===0||void 0,"data-focused":R||void 0,"data-focus-visible":k||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},u.createElement(rt,{values:[[jl,e],[rr,c],[bi,{dragAndDropHooks:l,dragState:V,dropState:w}],[Kl,{elementType:"div"}],[vd,{render:Np}],[fd,{name:"ListBoxSection",render:Op}]]},u.createElement(E,{collection:d,scrollRef:n,persistedKeys:Tp(f,l,w),renderDropIndicator:gd(l,w)})),L,A))}function Op(t,e,n,r="react-aria-ListBoxSection"){let i=u.useContext(rr),{dragAndDropHooks:o,dropState:l}=u.useContext(bi),{CollectionBranch:a}=u.useContext(jt),[s,c]=bl();var d;let{headingProps:f,groupProps:p}=Y5({heading:c,"aria-label":(d=t["aria-label"])!==null&&d!==void 0?d:void 0}),v=Ee({defaultClassName:r,className:t.className,style:t.style,values:{}});return u.createElement("section",{...fe(t),...p,...v,ref:e},u.createElement(md.Provider,{value:{...f,ref:s}},u.createElement(a,{collection:i.collection,parent:n,renderDropIndicator:gd(o,l)})))}const kp=mi("item",function(e,n,r){let i=nt(n),o=u.useContext(rr),{dragAndDropHooks:l,dragState:a,dropState:s}=u.useContext(bi),{optionProps:c,labelProps:d,descriptionProps:f,...p}=q5({key:r.key,"aria-label":e==null?void 0:e["aria-label"]},o,i),{hoverProps:v,isHovered:y}=Cn({isDisabled:!p.allowsSelection&&!p.hasAction,onHoverStart:r.props.onHoverStart,onHoverChange:r.props.onHoverChange,onHoverEnd:r.props.onHoverEnd}),h=null;a&&l&&(h=l.useDraggableItem({key:r.key},a));let g=null;s&&l&&(g=l.useDroppableItem({target:{type:"item",key:r.key,dropPosition:"on"}},s,i));let b=a&&a.isDragging(r.key),C=Ee({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...p,isHovered:y,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior,allowsDragging:!!a,isDragging:b,isDropTarget:g==null?void 0:g.isDropTarget}});u.useEffect(()=>{!r.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.")},[r.textValue]);let S=e.href?"a":"div";return u.createElement(S,{...ie(c,v,h==null?void 0:h.dragProps,g==null?void 0:g.dropProps),...C,ref:i,"data-allows-dragging":!!a||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":b||void 0,"data-drop-target":(g==null?void 0:g.isDropTarget)||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode},u.createElement(rt,{values:[[Ll,{slots:{[Un]:d,label:d,description:f}}]]},C.children))});function Np(t,e){e=nt(e);let{dragAndDropHooks:n,dropState:r}=u.useContext(bi),{dropIndicatorProps:i,isHidden:o,isDropTarget:l}=n.useDropIndicator(t,r,e);return o?null:u.createElement(Mp,{...t,dropIndicatorProps:i,isDropTarget:l,ref:e})}function Rp(t,e){let{dropIndicatorProps:n,isDropTarget:r,...i}=t,o=Ee({...i,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return u.createElement("div",{...n,...o,role:"option",ref:e,"data-drop-target":r||void 0})}const Mp=u.forwardRef(Rp),Lp=u.createContext({placement:"bottom"}),Cd=u.createContext(null),hs=u.createContext(null),Hl=u.forwardRef(function(e,n){[e,n]=Ye(e,n,Cd);let r=u.useContext(zl),i=Fl(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?i:r,l=z1(n,o.isOpen)||e.isExiting||!1,a=Y1(),{direction:s}=Kt();if(a){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&&!l?null:u.createElement(Ap,{...e,triggerRef:e.triggerRef,state:o,popoverRef:n,isExiting:l,dir:s})});function Ap({state:t,isExiting:e,UNSTABLE_portalContainer:n,...r}){let i=u.useRef(null),[o,l]=u.useState(0),a=u.useRef(null),s=u.useContext(hs),c=s&&r.trigger==="SubmenuTrigger";re(()=>{i.current&&t.isOpen&&l(i.current.getBoundingClientRect().width)},[t.isOpen,i]);var d;let{popoverProps:f,underlayProps:p,arrowProps:v,placement:y}=L5({...r,offset:(d=r.offset)!==null&&d!==void 0?d:8,arrowSize:o,groupRef:c?s:a},t),h=r.popoverRef,g=V1(h,!!y)||r.isEntering||!1,b=Ee({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:y,isEntering:g,isExiting:e}}),C=!r.isNonModal||r.trigger==="SubmenuTrigger",[S,P]=u.useState(!1);re(()=>{h.current&&P(C&&!h.current.querySelector("[role=dialog]"))},[h,C]),u.useEffect(()=>{S&&h.current&&!h.current.contains(document.activeElement)&&vt(h.current)},[S,h]);let E={...f.style,...b.style},x=u.createElement("div",{...ie(fe(r),f),...b,role:S?"dialog":void 0,tabIndex:S?-1:void 0,"aria-label":r["aria-label"],"aria-labelledby":r["aria-labelledby"],ref:h,slot:r.slot||void 0,style:E,dir:r.dir,"data-trigger":r.trigger,"data-placement":y,"data-entering":g||void 0,"data-exiting":e||void 0},!r.isNonModal&&u.createElement(es,{onDismiss:t.close}),u.createElement(Lp.Provider,{value:{...v,placement:y,ref:i}},b.children),u.createElement(es,{onDismiss:t.close}));if(!c)return u.createElement(ts,{...r,shouldContainFocus:S,isExiting:e,portalContainer:n},!r.isNonModal&&t.isOpen&&u.createElement("div",{"data-testid":"underlay",...p,style:{position:"fixed",inset:0}}),u.createElement("div",{ref:a,style:{display:"contents"}},u.createElement(hs.Provider,{value:a},x)));var $;return u.createElement(ts,{...r,shouldContainFocus:S,isExiting:e,portalContainer:($=n??(s==null?void 0:s.current))!==null&&$!==void 0?$:void 0},x)}const Fp=u.createContext({}),Kp=u.createContext(null),Vl=u.createContext(null),ps=u.createContext(null),qr=u.createContext(null),jp=u.createContext(null),Hp=u.forwardRef(function(e,n){return[e,n]=Ye(e,n,Kp),u.createElement(gi,{content:u.createElement(Tl,e)},r=>u.createElement(Vp,{props:e,collection:r,menuRef:n}))});function Vp({props:t,collection:e,menuRef:n}){let{filter:r,collectionProps:i,collectionRef:o}=u.useContext(Uo)||{};n=nt(u.useMemo(()=>hl(n,o!==void 0?o:null),[o,n]));let l=u.useMemo(()=>r?e.UNSTABLE_filter(r):e,[e,r]),a=Ep({...t,collection:l,children:void 0}),s=u.useContext(ps),{isVirtualized:c,CollectionRoot:d}=u.useContext(jt),{menuProps:f}=Q5({...t,...i,isVirtualized:c,onClose:t.onClose||(s==null?void 0:s.close)},a,n),p=Ee({defaultClassName:"react-aria-Menu",className:t.className,style:t.style,values:{isEmpty:a.collection.size===0}}),v=null;return a.collection.size===0&&t.renderEmptyState&&(v=u.createElement("div",{role:"menuitem",style:{display:"contents"}},t.renderEmptyState())),u.createElement(Il,null,u.createElement("div",{...fe(t),...f,...p,ref:n,slot:t.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:t.onScroll},u.createElement(rt,{values:[[Vl,a],[Kl,{elementType:"div"}],[fd,{name:"MenuSection",render:Bp}],[jp,{parentMenuRef:n,shouldUseVirtualFocus:i==null?void 0:i.shouldUseVirtualFocus}],[Wo,null],[Uo,null],[qr,a.selectionManager],[ps,s??Cp({})]]},u.createElement(d,{collection:a.collection,persistedKeys:pd(a.selectionManager.focusedKey),scrollRef:n})),v))}class zp extends nr{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,n){return this.parent.setFocusedKey(e,n)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,n){super(e.collection,n),this.parent=e}}function Bp(t,e,n,r="react-aria-MenuSection"){var i,o;let l=u.useContext(Vl),{CollectionBranch:a}=u.useContext(jt),[s,c]=bl();var d;let{headingProps:f,groupProps:p}=tp({heading:c,"aria-label":(d=n.props["aria-label"])!==null&&d!==void 0?d:void 0}),v=Ee({defaultClassName:r,className:(i=n.props)===null||i===void 0?void 0:i.className,style:(o=n.props)===null||o===void 0?void 0:o.style,values:{}}),y=u.useContext(qr),h=Al(t),g=t.selectionMode!=null?new zp(y,h):y;return u.createElement("section",{...fe(t),...p,...v,ref:e},u.createElement(rt,{values:[[md,{...f,ref:s}],[qr,g]]},u.createElement(a,{collection:l.collection,parent:n})))}const Wo=u.createContext(null),vs=mi("item",function(e,n,r){var i;[e,n]=Ye(e,n,Wo);let o=(i=fi(Wo))===null||i===void 0?void 0:i.id,l=u.useContext(Vl),a=nt(n),s=u.useContext(qr),{menuItemProps:c,labelProps:d,descriptionProps:f,keyboardShortcutProps:p,...v}=ep({...e,id:o,key:r.key,selectionManager:s},l,a),{hoverProps:y,isHovered:h}=Cn({isDisabled:v.isDisabled}),g=Ee({...e,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...v,isHovered:h,isFocusVisible:v.isFocusVisible,selectionMode:s.selectionMode,selectionBehavior:s.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),b=e.href?"a":"div";return u.createElement(b,{...ie(c,y),...g,ref:a,"data-disabled":v.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":v.isFocused||void 0,"data-focus-visible":v.isFocusVisible||void 0,"data-pressed":v.isPressed||void 0,"data-selected":v.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(rt,{values:[[Ll,{slots:{[Un]:d,label:d,description:f}}],[Fp,p]]},g.children))}),Up=u.createContext(null),zl=u.createContext(null),Wp=u.forwardRef(function(e,n){let r=e["aria-labelledby"];[e,n]=Ye(e,n,Up);let{dialogProps:i,titleProps:o}=np({...e,"aria-labelledby":r},n),l=u.useContext(zl);!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 a=Ee({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(l==null?void 0:l.close)||(()=>{})}});return u.createElement("section",{...fe(e),...i,...a,ref:n,slot:e.slot||void 0},u.createElement(rt,{values:[[t1,{slots:{[Un]:{},title:{...o,level:2}}}],[Ml,{slots:{[Un]:{},close:{onPress:()=>l==null?void 0:l.close()}}}]]},a.children))}),Sd=u.createContext(null),wd=u.createContext(null),Zp=u.forwardRef(function(e,n){[e,n]=Ye(e,n,Sd);let{children:r,isDisabled:i=!1,isInvalid:o=!1,isRequired:l=!1}=e,a=u.useMemo(()=>typeof r=="function"?r({isOpen:!1,isDisabled:i,isInvalid:o,isRequired:l,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):r,[r,i,o,l]);return u.createElement(gi,{content:a},s=>u.createElement(Gp,{props:e,collection:s,selectRef:n}))});function Gp({props:t,selectRef:e,collection:n}){let{validationBehavior:r}=fi(Pp)||{};var i,o;let l=(o=(i=t.validationBehavior)!==null&&i!==void 0?i:r)!==null&&o!==void 0?o:"native",a=Sp({...t,collection:n,children:void 0,validationBehavior:l}),{isFocusVisible:s,focusProps:c}=Sn({within:!0}),d=u.useRef(null),[f,p]=bl(!t["aria-label"]&&!t["aria-labelledby"]),{labelProps:v,triggerProps:y,valueProps:h,menuProps:g,descriptionProps:b,errorMessageProps:C,...S}=rp({...Z1(t),label:p,validationBehavior:l},a,d),[P,E]=u.useState(null),x=u.useCallback(()=>{d.current&&E(d.current.offsetWidth+"px")},[d]);To({ref:d,onResize:x});let $=u.useMemo(()=>({isOpen:a.isOpen,isFocused:a.isFocused,isFocusVisible:s,isDisabled:t.isDisabled||!1,isInvalid:S.isInvalid||!1,isRequired:t.isRequired||!1}),[a.isOpen,a.isFocused,s,t.isDisabled,S.isInvalid,t.isRequired]),N=Ee({...t,values:$,defaultClassName:"react-aria-Select"}),F=fe(t);delete F.id;let V=u.useRef(null);return u.createElement(rt,{values:[[Sd,t],[wd,a],[qp,h],[sd,{...v,ref:f,elementType:"span"}],[Ml,{...y,ref:d,isPressed:a.isOpen}],[zl,a],[Cd,{trigger:"Select",triggerRef:d,scrollRef:V,placement:"bottom start",style:{"--trigger-width":P},"aria-labelledby":g["aria-labelledby"]}],[jl,{...g,ref:V}],[rr,a],[Ll,{slots:{description:b,errorMessage:C}}],[gp,S]]},u.createElement("div",{...F,...N,...c,ref:e,slot:t.slot||void 0,"data-focused":a.isFocused||void 0,"data-focus-visible":s||void 0,"data-open":a.isOpen||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":S.isInvalid||void 0,"data-required":t.isRequired||void 0}),u.createElement(op,{autoComplete:t.autoComplete,state:a,triggerRef:d,label:p,name:t.name,isDisabled:t.isDisabled}))}const qp=u.createContext(null),Ci=u.createContext(null),gn=u.createContext(null),Yp=u.forwardRef(function(e,n){[e,n]=Ye(e,n,Ci);let{children:r,orientation:i="horizontal"}=e;return r=u.useMemo(()=>typeof r=="function"?r({orientation:i,defaultChildren:null}):r,[r,i]),u.createElement(gi,{content:r},o=>u.createElement(Xp,{props:e,collection:o,tabsRef:n}))});function Xp({props:t,tabsRef:e,collection:n}){let{orientation:r="horizontal"}=t,i=wp({...t,collection:n,children:void 0}),{focusProps:o,isFocused:l,isFocusVisible:a}=Sn({within:!0}),s=u.useMemo(()=>({orientation:r,isFocusWithin:l,isFocusVisible:a}),[r,l,a]),c=Ee({...t,defaultClassName:"react-aria-Tabs",values:s});return u.createElement("div",{...fe(t),...o,...c,ref:e,slot:t.slot||void 0,"data-focused":l||void 0,"data-orientation":r,"data-focus-visible":a||void 0,"data-disabled":i.isDisabled||void 0},u.createElement(rt,{values:[[Ci,t],[gn,i]]},c.children))}const Jp=u.forwardRef(function(e,n){return u.useContext(gn)?u.createElement(Qp,{props:e,forwardedRef:n}):u.createElement(Tl,e)});function Qp({props:t,forwardedRef:e}){let n=u.useContext(gn),{CollectionRoot:r}=u.useContext(jt),{orientation:i="horizontal",keyboardActivation:o="automatic"}=fi(Ci),l=nt(e),{tabListProps:a}=up({...t,orientation:i,keyboardActivation:o},n,l),s=Ee({...t,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:n}}),c=fe(t);return delete c.id,u.createElement("div",{...c,...a,ref:l,...s,"data-orientation":i||void 0},u.createElement(r,{collection:n.collection,persistedKeys:pd(n.selectionManager.focusedKey)}))}const ev=mi("item",(t,e,n)=>{let r=u.useContext(gn),i=nt(e),{tabProps:o,isSelected:l,isDisabled:a,isPressed:s}=ap({key:n.key,...t},r,i),{focusProps:c,isFocused:d,isFocusVisible:f}=Sn(),{hoverProps:p,isHovered:v}=Cn({isDisabled:a,onHoverStart:t.onHoverStart,onHoverEnd:t.onHoverEnd,onHoverChange:t.onHoverChange}),y=Ee({...t,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:l,isDisabled:a,isFocused:d,isFocusVisible:f,isPressed:s,isHovered:v}}),h=n.props.href?"a":"div";return u.createElement(h,{...ie(o,c,p,y),ref:i,"data-selected":l||void 0,"data-disabled":a||void 0,"data-focused":d||void 0,"data-focus-visible":f||void 0,"data-pressed":s||void 0,"data-hovered":v||void 0},y.children)}),tv=wl(function(e,n){const r=u.useContext(gn);let i=nt(n),{tabPanelProps:o}=sp(e,r,i),{focusProps:l,isFocused:a,isFocusVisible:s}=Sn(),c=r.selectedKey===e.id,d=Ee({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:a,isFocusVisible:s,isInert:!c,state:r}});if(!c&&!e.shouldForceMount)return null;let f=fe(e);delete f.id;let p=c?ie(f,o,l,d):d;return u.createElement("div",{...p,ref:i,"data-focused":a||void 0,"data-focus-visible":s||void 0,inert:K1(!c),"data-inert":c?void 0:"true"},u.createElement(rt,{values:[[Ci,null],[gn,null]]},u.createElement(jt.Provider,{value:hd},d.children)))}),Ot=({options:t,isOpen:e=!1,onOpenChange:n,children:r,selectedValues:i=[],onSelectValue:o,topMessage:l,shouldCloseOnInteractOutside:a})=>{const s=u.useId(),c=f=>{n==null||n(f)},d=u.useRef(null);return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"c__dropdown-menu-trigger",ref:d,id:s,onClick:f=>{f.stopPropagation(),f.preventDefault()},children:r}),m.jsx(Hl,{triggerRef:d,style:{marginTop:"0px"},isOpen:e,shouldCloseOnInteractOutside:a,onOpenChange:c,children:m.jsxs(Hp,{className:"c__dropdown-menu","aria-labelledby":s,children:[l&&m.jsx(vs,{className:"c__dropdown-menu-item-top-message",children:l}),t.map(f=>f.isHidden?null:m.jsxs(u.Fragment,{children:[m.jsxs(vs,{className:"c__dropdown-menu-item","aria-label":f.label,onAction:()=>{var p;f.value&&(o==null||o(f.value)),(p=f.callback)==null||p.call(f),c(!1)},isDisabled:f.isDisabled,children:[f.icon,m.jsx("div",{className:"c__dropdown-menu-item__label","aria-label":f.label,children:f.label}),(f.isChecked||f.value&&i.includes(f.value))&&m.jsx("span",{className:"material-icons checked",children:"check"})]},f.label),f.showSeparator&&m.jsx(yd,{})]},f.label))]})})]})},gt=()=>{const[t,e]=u.useState(!1);return{isOpen:t,setIsOpen:e}},gs="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",nv="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",rv=({externalLinks:t,legalLinks:e,license:n,logo:r})=>{const{t:i}=ne.useCunningham();return m.jsxs("footer",{className:"c__footer",children:[m.jsx("div",{className:"c__footer__stripe"}),m.jsxs("div",{className:"c__footer__content",children:[m.jsxs("div",{className:"c__footer__content__top",children:[m.jsx("div",{children:m.jsx("div",{className:"c__footer__content__top__logo",children:m.jsx("img",{className:"c__footer__logo",alt:(r==null?void 0:r.alt)||i("components.footer.logo.alt"),width:r==null?void 0:r.width,height:r==null?void 0:r.height,decoding:"async",src:(r==null?void 0:r.src)||nv})})}),m.jsx("div",{className:"c__footer__content__top__links",children:t==null?void 0:t.map(({label:o,href:l})=>m.jsxs("a",{href:l,target:"_blank",children:[m.jsx("span",{children:o}),m.jsx("img",{alt:"",width:"18",decoding:"async",src:gs})]},o))})]}),m.jsx("div",{className:"c__footer__content__middle",children:e==null?void 0:e.map(({label:o,href:l})=>m.jsx("a",{href:l,children:m.jsx("span",{children:o})},o))}),n&&m.jsxs("p",{className:"c__footer__content__mention",children:[n==null?void 0:n.label," ",m.jsxs("a",{href:n==null?void 0:n.link.href,target:"_blank",children:[m.jsx("span",{children:n==null?void 0:n.link.label}),m.jsx("img",{alt:"",width:"18",decoding:"async",src:gs})]})]})]})]})},iv=t=>m.jsx(Zp,{...t,className:"c__filter",children:m.jsx(ov,{...t})}),ov=t=>{const e=u.useContext(wd),n=e!=null&&e.selectedItem?t.options.find(r=>{var i;return r.value===((i=e.selectedItem)==null?void 0:i.key)}):null;return m.jsxs(m.Fragment,{children:[m.jsxs(pp,{className:xe("c__filter__button",{"c__filter__button--active":!!n}),children:[m.jsx(dp,{className:"c__filter__label",children:n?m.jsxs(m.Fragment,{children:[t.label," : ",n.label]}):m.jsx(m.Fragment,{children:t.label})}),m.jsx("span",{"aria-hidden":"true",className:xe("material-icons c__filter__button__icon",{opened:e==null?void 0:e.isOpen}),children:"keyboard_arrow_down"})]}),m.jsx(Hl,{className:"c__dropdown-menu",children:m.jsx(_p,{children:t.options.map(r=>m.jsxs(u.Fragment,{children:[m.jsx(kp,{id:r.value,className:"c__dropdown-menu-item",children:m.jsxs("div",{className:"c__filter__item",children:[r.render?r.render():r.label,(t.selectedKey===r.value||r.isChecked)&&m.jsx("span",{className:"material-icons checked",children:"check"})]})},r.value),r.showSeparator&&m.jsx(yd,{})]},r.value))})})]})},lv=({logo:t,mainButton:e,banner:n,title:r,subtitle:i})=>m.jsx("div",{className:"c__hero",children:m.jsxs("div",{className:"c__hero__display",children:[m.jsxs("div",{className:"c__hero__display__captions",children:[t,m.jsx("h2",{children:r}),m.jsx("span",{className:"c__hero__display__captions__subtitle",children:i}),e||m.jsx(qc,{})]}),m.jsx("img",{src:n,alt:""})]})}),av=({children:t})=>m.jsx("div",{className:"c__home-gutter",children:t}),xd=(t,e,n=void 0)=>{const r=Array.isArray(e)?e:e.replace(/(\[(\d)\])/g,".$2").replace(/^\./,"").split(".");if(!r.length||r[0]===void 0)return t;const i=r[0];return typeof t!="object"||t===null||!(i in t)||t[i]===void 0?n:xd(t[i],r.slice(1),n)},sv={placeholder:"Entrez votre adresse e-mail",srLabel:"Adresse e-mail",submit:"Suivant",title:"Connexion avec {linebreak}votre adresse e-mail"},cv={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"}},uv={label:"Les services de La Suite numérique"},dv={homepageLinkTitle:"Accueil - {serviceName}"},fv={newWindow:"{title} - nouvelle fenêtre"},hv={help:"Qu'est-ce que ProConnect ?",loginWith:"S’identifier avec",loginWithProconnect:"{loginWith} {proconnect}",or:"ou",title:"Connexion avec ProConnect"},Ed={email:sv,footer:cv,gaufre:uv,header:dv,links:fv,proconnect:hv},pv=u.createContext(Ed);function vv(){const t=u.useContext(pv)||Ed;return{t:function(e,n={}){const r=xd(t,e);if(!r)return console.warn(`Translation for key "${e}" not found`),e;if(n){const i=[];if(Object.keys(n).forEach(l=>{typeof n[l]!="string"&&i.push(l)}),!i.length)return r.replace(/{(\w+)}/g,(l,a)=>n[a]);const o=r.split(/{(.*?)}/);return m.jsx(m.Fragment,{children:o.map((l,a)=>l in n?m.jsx(u.Fragment,{children:n[l]},a):l)})}return r}}}const gv={responsive:"lasuite-gaufre-btn--responsive",small:"lasuite-gaufre-btn--small"},mv=({variant:t})=>{const{t:e}=vv(),n=t?gv[t]:"";return m.jsx("button",{type:"button",className:`lasuite-gaufre-btn ${n} lasuite-gaufre-btn--vanilla js-lasuite-gaufre-btn`,title:e("gaufre.label"),children:e("gaufre.label")})},yv=()=>m.jsxs(m.Fragment,{children:[m.jsx("script",{src:"https://integration.lasuite.numerique.gouv.fr/api/v1/gaufre.js",id:"lasuite-gaufre-script",async:!0,defer:!0}),m.jsx(mv,{variant:"small"})]});var Ce=(t=>(t.X_SMALL="xsmall",t.SMALL="small",t.MEDIUM="medium",t.LARGE="large",t.X_LARGE="xlarge",t))(Ce||{}),Vn=(t=>(t.OUTLINED="outlined",t.FILLED="filled",t))(Vn||{});const Zn=({name:t,size:e,className:n,color:r,type:i=Vn.FILLED,...o})=>{const l=xe("",{[`icon--${e}`]:e!==void 0,[`material-icons-${i}`]:i!==Vn.OUTLINED,"material-icons":i===Vn.OUTLINED},n),a={color:r,fontSize:typeof e=="number"?`${e}px`:void 0};return m.jsx("span",{className:l,style:a,...o,children:t})},$d={[Ce.X_SMALL]:11,[Ce.SMALL]:16,[Ce.MEDIUM]:24,[Ce.LARGE]:32,[Ce.X_LARGE]:40},Pd={[Ce.X_SMALL]:16,[Ce.SMALL]:24,[Ce.MEDIUM]:32,[Ce.LARGE]:40,[Ce.X_LARGE]:48},bv=t=>Pd[t]??24,Cv=t=>$d[t]??24,Dd=({languages:t,onChange:e,size:n,color:r="primary-text",fullWidth:i})=>{var p;const{isOpen:o,setIsOpen:l}=gt(),a=()=>{const v=t.find(y=>y.isChecked);return(v==null?void 0:v.value)??t[0].value},[s,c]=u.useState(a),d=v=>{c(v),e==null||e(v)},f=u.useMemo(()=>{if(n)switch(n){case"nano":return Ce.X_SMALL;case"small":return Ce.SMALL;case"medium":return Ce.MEDIUM}},[n]);return u.useEffect(()=>{c(a)},[t]),m.jsx(Ot,{options:t,isOpen:o,onOpenChange:l,onSelectValue:d,selectedValues:[s],children:m.jsxs(ne.Button,{onClick:()=>l(!o),className:"c__language-picker",icon:m.jsx(Zn,{name:o?"arrow_drop_up":"arrow_drop_down"}),iconPosition:"right",size:n,color:r,fullWidth:i,children:[m.jsx(Zn,{name:"translate",size:f}),m.jsx("span",{className:"c__language-picker__label",children:(p=t.find(v=>v.value===s))==null?void 0:p.label})]})})},Td=({leftIcon:t,rightIcon:e,languages:n,onTogglePanel:r,isPanelOpen:i})=>{const{t:o}=ne.useCunningham();return m.jsxs("div",{className:"c__header",children:[m.jsx("div",{className:"c__header__toggle-menu",children:m.jsx(ne.Button,{size:"medium",onClick:r,"aria-label":o(i?"Close the menu":"Open the menu"),color:"tertiary-text",icon:m.jsx("span",{className:"material-icons clr-primary-800",children:i?"close":"menu"})})}),m.jsx("div",{className:"c__header__left",children:t}),m.jsxs("div",{className:"c__header__right",children:[n&&m.jsx("div",{className:"c__header__right__language-picker",children:m.jsx(Dd,{languages:n})}),e]})]})},Zo={themes:{default:{theme:{colors:{"primary-text":"#000091","primary-050":"#F5F5FE","primary-100":"#ECECFE","primary-150":"#F4F4FD","primary-200":"#E3E3FD","primary-300":"#CACAFB","primary-400":"#8585F6","primary-500":"#6A6AF4","primary-600":"#313178","primary-700":"#272747","primary-800":"#000091","primary-900":"#21213F","secondary-text":"#fff","secondary-100":"#fee9ea","secondary-200":"#fedfdf","secondary-300":"#fdbfbf","secondary-400":"#e1020f","secondary-500":"#c91a1f","secondary-600":"#5e2b2b","secondary-700":"#3b2424","secondary-800":"#341f1f","secondary-900":"#2b1919","greyscale-text":"#303C4B","greyscale-000":"#fff","greyscale-050":"#F6F6F6","greyscale-100":"#eee","greyscale-200":"#E5E5E5","greyscale-250":"#ddd","greyscale-300":"#CECECE","greyscale-350":"#ddd","greyscale-400":"#929292","greyscale-500":"#7C7C7C","greyscale-600":"#666666","greyscale-700":"#3A3A3A","greyscale-750":"#353535","greyscale-800":"#2A2A2A","greyscale-900":"#242424","greyscale-950":"#1E1E1E","greyscale-1000":"#161616","success-text":"#1f8d49","success-100":"#dffee6","success-200":"#b8fec9","success-300":"#88fdaa","success-400":"#3bea7e","success-500":"#1f8d49","success-600":"#18753c","success-700":"#204129","success-800":"#1e2e22","success-900":"#19281d","info-text":"#0078f3","info-100":"#E8EDFF","info-200":"#DDE5FF","info-300":"#BCCDFF","info-400":"#518FFF","info-500":"#0078F3","info-600":"#0063CB","info-700":"#273961","info-800":"#222A3F","info-900":"#1D2437","warning-text":"#d64d00","warning-100":"#fff4f3","warning-200":"#ffe9e6","warning-300":"#ffded9","warning-400":"#ffbeb4","warning-500":"#d64d00","warning-600":"#b34000","warning-700":"#5e2c21","warning-800":"#3e241e","warning-900":"#361e19","danger-text":"#FFF","danger-050":"#FFF4F4","danger-100":"#FFE9E9","danger-200":"#FFDDDD","danger-300":"#FFBDBD","danger-400":"#FF5655","danger-500":"#F60700","danger-600":"#CE0500","danger-700":"#642626","danger-800":"#412121","danger-900":"#391C1C","blue-500":"#417DC4","brown-500":"#BD987A","cyan-500":"#009099","gold-500":"#C3992A","green-500":"#00A95F","olive-500":"#68A532","orange-500":"#E4794A","purple-500":"#A558A0","red-500":"#E1000F","yellow-500":"#B7A73F","rose-500":"#E18B76"},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",base:"Marianne"}},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",xxxl:"3.5rem","4xl":"4rem","5xl":"4.5rem","6xl":"6rem","7xl":"7.5rem"},breakpoints:{xxs:"320px",xs:"480px",mobile:"768px",tablet:"1024px"}},components:{modal:{"width-small":"342px"},tooltip:{padding:"4px 8px","background-color":"ref(theme.colors.greyscale-1000)"},button:{"medium-height":"40px","medium-text-height":"40px","border-radius":"4px","small-height":"26px",primary:{"background--color":"ref(theme.colors.primary-text)","background--color-hover":"#1212ff","background--color-active":"#2323ff","background--color-disabled":"ref(theme.colors.greyscale-100)",color:"#fff","color-hover":"#fff","color-active":"#fff","color-focus-visible":"#fff",disabled:"ref(theme.colors.greyscale-500)"},"primary-text":{"background--color":"ref(theme.colors.primary-text)","background--color-hover":"ref(theme.colors.greyscale-100)","background--color-active":"ref(theme.colors.primary-100)","background--color-focus-visible":"#fff","background--color-disabled":"ref(theme.colors.greyscale-000)",color:"ref(theme.colors.primary-800)","color-hover":"ref(theme.colors.primary-800)",disabled:"ref(theme.colors.greyscale-400)"},secondary:{"background--color-hover":"#F6F6F6","background--color-active":"#EDEDED","background--color-focus-visible":"ref(theme.colors.greyscale-000)","background--disabled":"ref(theme.colors.greyscale-000)",color:"ref(theme.colors.primary-800)","border--color":"ref(theme.colors.greyscale-300)","border--color-hover":"ref(theme.colors.greyscale-300)","border--color-disabled":"ref(theme.colors.greyscale-300)",disabled:"ref(theme.colors.greyscale-400)"},tertiary:{"background--color":"ref(theme.colors.primary-100)","background--color-focus-visible":"ref(theme.colors.primary-100)","background--color-hover":"ref(theme.colors.primary-300)","background--color-active":"ref(theme.colors.primary-300)","background--disabled":"ref(theme.colors.primary-050)",color:"ref(theme.colors.primary-800)",disabled:"ref(theme.colors.primary-300)"},"tertiary-text":{"background--color-hover":"ref(theme.colors.greyscale-100)","color-hover":"ref(theme.colors.primary-text)",color:"ref(theme.colors.primary-600)",disabled:"ref(theme.colors.primary-300)"},danger:{"color-hover":"white","background--color":"ref(theme.colors.danger-600)","background--color-hover":"#FF2725","background--color-focus-visible":"ref(theme.colors.danger-600)","background--color-disabled":"ref(theme.colors.greyscale-100)","color-disabled":"ref(theme.colors.greyscale-400)"}},datagrid:{"header--color":"ref(theme.colors.greyscale-600)","header--size":"12px","header--weight":"500","body--background-color-hover":"ref(theme.colors.greyscale-100)"},"forms-checkbox":{"border-radius":"4px","border-color":"ref(theme.colors.primary-800)","background-color--hover":"ref(theme.colors.greyscale-100)","border--color-disabled":"ref(theme.colors.greyscale-200)","border--color":"ref(theme.colors.primary-800)","background--disabled":"ref(theme.colors.greyscale-200)","background--enable":"ref(theme.colors.primary-800)","check--disabled":"ref(theme.colors.greyscale-300)","check--enable":"ref(theme.colors.greyscale-000)",color:"ref(theme.colors.primary-text)","label--color":"ref(theme.colors.greyscale-1000)","label--size":"ref(theme.font.sizes.sm)","label--weight":"500","text--color":"ref(theme.colors.greyscale-600)","text--size":"ref(theme.font.sizes.s)","text--weight":"400","text--color-disabled":"ref(theme.colors.greyscale-300)"},"forms-labelledbox":{"label-color--small":"ref(theme.colors.greyscale-950)","label-color--small--disabled":"ref(theme.colors.greyscale-300)","label-color--big":"ref(theme.colors.greyscale-950)","label-color--big--disabled":"ref(theme.colors.greyscale-300)"},"forms-radio":{"border-color":"ref(theme.colors.primary-800)","background-color":"ref(theme.colors.greyscale-000)","accent-color":"ref(theme.colors.primary-800)","accent-color-disabled":"ref(theme.colors.greyscale-300)"},"forms-switch":{"border--color-disabled":"ref(theme.colors.greyscale-300)","border--color":"ref(theme.colors.primary-800)","handle-background-color":"white","handle-background-color--disabled":"ref(theme.colors.greyscale-000)","rail-background-color--disabled":"ref(theme.colors.greyscale-000)","accent-color":"ref(theme.colors.primary-800)"},"forms-textarea":{"label-color--focus":"ref(theme.colors.greyscale-1000)","border-radius":"4px","border-color":"ref(theme.colors.greyscale-400)","box-shadow--color--hover":"ref(theme.colors.greyscale-400)","box-shadow--color--focus":"ref(theme.colors.primary-800)","value-color":"ref(theme.colors.greyscale-950)","value-color--disabled":"ref(theme.colors.greyscale-300)","font-size":"14px"},"forms-input":{"label-color--focus":"ref(theme.colors.greyscale-1000)","border-radius":"4px","border-color":"ref(theme.colors.greyscale-400)","box-shadow--color--hover":"ref(theme.colors.greyscale-400)","box-shadow--color--focus":"ref(theme.colors.primary-800)","value-color":"ref(theme.colors.greyscale-950)","value-color--disabled":"ref(theme.colors.greyscale-300)","font-size":"14px"},"forms-select":{"label-color--focus":"ref(theme.colors.greyscale-1000)","item-font-size":"14px","border-radius":"4px","border-radius-hover":"4px","border-color":"ref(theme.colors.greyscale-400)","box-shadow--color--hover":"ref(theme.colors.greyscale-400)","box-shadow--color--focus":"ref(theme.colors.primary-800)","value-color":"ref(theme.colors.greyscale-950)","font-size":"14px"},badge:{"font-size":"ref(theme.font.sizes.xs)","border-radius":"4px","padding-inline":"ref(theme.spacings.xs)","padding-block":"ref(theme.spacings.2xs)",accent:{"background-color":"ref(theme.colors.primary-100)",color:"ref(theme.colors.primary-600)"},neutral:{"background-color":"ref(theme.colors.greyscale-100)",color:"ref(theme.colors.greyscale-600)"},danger:{"background-color":"ref(theme.colors.danger-100)",color:"ref(theme.colors.danger-600)"},success:{"background-color":"ref(theme.colors.success-100)",color:"ref(theme.colors.success-600)"},warning:{"background-color":"ref(theme.colors.warning-100)",color:"ref(theme.colors.warning-600)"},info:{"background-color":"ref(theme.colors.info-100)",color:"ref(theme.colors.info-600)"}}}}}},wn=()=>{const[t,e]=u.useState(window.innerWidth),n=parseInt(Zo.themes.default.theme.breakpoints.mobile.replace("px","")),r=parseInt(Zo.themes.default.theme.breakpoints.tablet.replace("px","")),i=()=>{e(window.innerWidth)};u.useEffect(()=>(window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}),[]);const o=t<=n,l=t<=r,a=t>r;return{isMobile:o,isTablet:l,isDesktop:a}},_d=({children:t,isOpen:e=!1})=>{const{isDesktop:n}=wn();return n?m.jsx("div",{className:"c__left-panel",children:t}):m.jsx("div",{className:xe("c__left-panel__mobile",{open:e}),children:t})},{createElement:mn,createContext:Sv,forwardRef:Id,useCallback:Pe,useContext:Od,useEffect:$t,useImperativeHandle:kd,useLayoutEffect:wv,useMemo:xv,useRef:Te,useState:dn}=D,ms=D[`useId${Math.random()}`.slice(0,5)],Ev=wv,Si=Sv(null);Si.displayName="PanelGroupContext";const Pt=Ev,$v=typeof ms=="function"?ms:()=>null;let Pv=0;function Bl(t=null){const e=$v(),n=Te(t||e||null);return n.current===null&&(n.current=""+Pv++),t??n.current}function Nd({children:t,className:e="",collapsedSize:n,collapsible:r,defaultSize:i,forwardedRef:o,id:l,maxSize:a,minSize:s,onCollapse:c,onExpand:d,onResize:f,order:p,style:v,tagName:y="div",...h}){const g=Od(Si);if(g===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:b,expandPanel:C,getPanelSize:S,getPanelStyle:P,groupId:E,isPanelCollapsed:x,reevaluatePanelConstraints:$,registerPanel:N,resizePanel:F,unregisterPanel:V}=g,w=Bl(l),M=Te({callbacks:{onCollapse:c,onExpand:d,onResize:f},constraints:{collapsedSize:n,collapsible:r,defaultSize:i,maxSize:a,minSize:s},id:w,idIsFromProps:l!==void 0,order:p});Te({didLogMissingDefaultSizeWarning:!1}),Pt(()=>{const{callbacks:A,constraints:U}=M.current,T={...U};M.current.id=w,M.current.idIsFromProps=l!==void 0,M.current.order=p,A.onCollapse=c,A.onExpand=d,A.onResize=f,U.collapsedSize=n,U.collapsible=r,U.defaultSize=i,U.maxSize=a,U.minSize=s,(T.collapsedSize!==U.collapsedSize||T.collapsible!==U.collapsible||T.maxSize!==U.maxSize||T.minSize!==U.minSize)&&$(M.current,T)}),Pt(()=>{const A=M.current;return N(A),()=>{V(A)}},[p,w,N,V]),kd(o,()=>({collapse:()=>{b(M.current)},expand:A=>{C(M.current,A)},getId(){return w},getSize(){return S(M.current)},isCollapsed(){return x(M.current)},isExpanded(){return!x(M.current)},resize:A=>{F(M.current,A)}}),[b,C,S,x,w,F]);const B=P(M.current,i);return mn(y,{...h,children:t,className:e,id:l,style:{...B,...v},"data-panel":"","data-panel-collapsible":r||void 0,"data-panel-group-id":E,"data-panel-id":w,"data-panel-size":parseFloat(""+B.flexGrow).toFixed(1)})}const Go=Id((t,e)=>mn(Nd,{...t,forwardedRef:e}));Nd.displayName="Panel";Go.displayName="forwardRef(Panel)";let qo=null,Et=null;function Dv(t,e){if(e){const n=(e&Fd)!==0,r=(e&Kd)!==0,i=(e&jd)!==0,o=(e&Hd)!==0;if(n)return i?"se-resize":o?"ne-resize":"e-resize";if(r)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 Tv(){Et!==null&&(document.head.removeChild(Et),qo=null,Et=null)}function Ji(t,e){const n=Dv(t,e);qo!==n&&(qo=n,Et===null&&(Et=document.createElement("style"),document.head.appendChild(Et)),Et.innerHTML=`*{cursor: ${n}!important;}`)}function Rd(t){return t.type==="keydown"}function Md(t){return t.type.startsWith("pointer")}function Ld(t){return t.type.startsWith("mouse")}function wi(t){if(Md(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(Ld(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function _v(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Iv(t,e,n){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 Ov(t,e){if(t===e)throw new Error("Cannot compare node with itself");const n={a:Cs(t),b:Cs(e)};let r;for(;n.a.at(-1)===n.b.at(-1);)t=n.a.pop(),e=n.b.pop(),r=t;J(r,"Stacking order can only be calculated for elements with a common ancestor");const i={a:bs(ys(n.a)),b:bs(ys(n.b))};if(i.a===i.b){const o=r.childNodes,l={a:n.a.at(-1),b:n.b.at(-1)};let a=o.length;for(;a--;){const s=o[a];if(s===l.a)return 1;if(s===l.b)return-1}}return Math.sign(i.a-i.b)}const kv=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Nv(t){var e;const n=getComputedStyle((e=Ad(t))!==null&&e!==void 0?e:t).display;return n==="flex"||n==="inline-flex"}function Rv(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||Nv(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"||kv.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function ys(t){let e=t.length;for(;e--;){const n=t[e];if(J(n,"Missing node"),Rv(n))return n}return null}function bs(t){return t&&Number(getComputedStyle(t).zIndex)||0}function Cs(t){const e=[];for(;t;)e.push(t),t=Ad(t);return e}function Ad(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const Fd=1,Kd=2,jd=4,Hd=8,Mv=_v()==="coarse";let He=[],fn=!1,ut=new Map,xi=new Map;const Gn=new Set;function Lv(t,e,n,r,i){var o;const{ownerDocument:l}=e,a={direction:n,element:e,hitAreaMargins:r,setResizeHandlerState:i},s=(o=ut.get(l))!==null&&o!==void 0?o:0;return ut.set(l,s+1),Gn.add(a),Yr(),function(){var d;xi.delete(t),Gn.delete(a);const f=(d=ut.get(l))!==null&&d!==void 0?d:1;if(ut.set(l,f-1),Yr(),f===1&&ut.delete(l),He.includes(a)){const p=He.indexOf(a);p>=0&&He.splice(p,1),Wl(),i("up",!0,null)}}}function Ss(t){const{target:e}=t,{x:n,y:r}=wi(t);fn=!0,Ul({target:e,x:n,y:r}),Yr(),He.length>0&&(Xr("down",t),t.preventDefault(),t.stopPropagation())}function In(t){const{x:e,y:n}=wi(t);if(fn&&t.buttons===0&&(fn=!1,Xr("up",t)),!fn){const{target:r}=t;Ul({target:r,x:e,y:n})}Xr("move",t),Wl(),He.length>0&&t.preventDefault()}function Bt(t){const{target:e}=t,{x:n,y:r}=wi(t);xi.clear(),fn=!1,He.length>0&&t.preventDefault(),Xr("up",t),Ul({target:e,x:n,y:r}),Wl(),Yr()}function Ul({target:t,x:e,y:n}){He.splice(0);let r=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(r=t),Gn.forEach(i=>{const{element:o,hitAreaMargins:l}=i,a=o.getBoundingClientRect(),{bottom:s,left:c,right:d,top:f}=a,p=Mv?l.coarse:l.fine;if(e>=c-p&&e<=d+p&&n>=f-p&&n<=s+p){if(r!==null&&document.contains(r)&&o!==r&&!o.contains(r)&&!r.contains(o)&&Ov(r,o)>0){let y=r,h=!1;for(;y&&!y.contains(o);){if(Iv(y.getBoundingClientRect(),a)){h=!0;break}y=y.parentElement}if(h)return}He.push(i)}})}function Qi(t,e){xi.set(t,e)}function Wl(){let t=!1,e=!1;He.forEach(r=>{const{direction:i}=r;i==="horizontal"?t=!0:e=!0});let n=0;xi.forEach(r=>{n|=r}),t&&e?Ji("intersection",n):t?Ji("horizontal",n):e?Ji("vertical",n):Tv()}function Yr(){ut.forEach((t,e)=>{const{body:n}=e;n.removeEventListener("contextmenu",Bt),n.removeEventListener("pointerdown",Ss),n.removeEventListener("pointerleave",In),n.removeEventListener("pointermove",In)}),window.removeEventListener("pointerup",Bt),window.removeEventListener("pointercancel",Bt),Gn.size>0&&(fn?(He.length>0&&ut.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("contextmenu",Bt),n.addEventListener("pointerleave",In),n.addEventListener("pointermove",In))}),window.addEventListener("pointerup",Bt),window.addEventListener("pointercancel",Bt)):ut.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("pointerdown",Ss,{capture:!0}),n.addEventListener("pointermove",In))}))}function Xr(t,e){Gn.forEach(n=>{const{setResizeHandlerState:r}=n,i=He.includes(n);r(t,i,e)})}function Av(){const[t,e]=dn(0);return Pe(()=>e(n=>n+1),[])}function J(t,e){if(!t)throw console.error(e),Error(e)}const Zl=10;function kt(t,e,n=Zl){return t.toFixed(n)===e.toFixed(n)?0:t>e?1:-1}function Je(t,e,n=Zl){return kt(t,e,n)===0}function _e(t,e,n){return kt(t,e,n)===0}function Fv(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){const i=t[r],o=e[r];if(!_e(i,o,n))return!1}return!0}function ln({panelConstraints:t,panelIndex:e,size:n}){const r=t[e];J(r!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:i=0,collapsible:o,maxSize:l=100,minSize:a=0}=r;if(kt(n,a)<0)if(o){const s=(i+a)/2;kt(n,s)<0?n=i:n=a}else n=a;return n=Math.min(l,n),n=parseFloat(n.toFixed(Zl)),n}function An({delta:t,initialLayout:e,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:o}){if(_e(t,0))return e;const l=[...e],[a,s]=r;J(a!=null,"Invalid first pivot index"),J(s!=null,"Invalid second pivot index");let c=0;if(o==="keyboard"){{const f=t<0?s:a,p=n[f];J(p,`Panel constraints not found for index ${f}`);const{collapsedSize:v=0,collapsible:y,minSize:h=0}=p;if(y){const g=e[f];if(J(g!=null,`Previous layout not found for panel index ${f}`),_e(g,v)){const b=h-g;kt(b,Math.abs(t))>0&&(t=t<0?0-b:b)}}}{const f=t<0?a:s,p=n[f];J(p,`No panel constraints found for index ${f}`);const{collapsedSize:v=0,collapsible:y,minSize:h=0}=p;if(y){const g=e[f];if(J(g!=null,`Previous layout not found for panel index ${f}`),_e(g,h)){const b=g-v;kt(b,Math.abs(t))>0&&(t=t<0?0-b:b)}}}}{const f=t<0?1:-1;let p=t<0?s:a,v=0;for(;;){const h=e[p];J(h!=null,`Previous layout not found for panel index ${p}`);const b=ln({panelConstraints:n,panelIndex:p,size:100})-h;if(v+=b,p+=f,p<0||p>=n.length)break}const y=Math.min(Math.abs(t),Math.abs(v));t=t<0?0-y:y}{let p=t<0?a:s;for(;p>=0&&p<n.length;){const v=Math.abs(t)-Math.abs(c),y=e[p];J(y!=null,`Previous layout not found for panel index ${p}`);const h=y-v,g=ln({panelConstraints:n,panelIndex:p,size:h});if(!_e(y,g)&&(c+=y-g,l[p]=g,c.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?p--:p++}}if(Fv(i,l))return i;{const f=t<0?s:a,p=e[f];J(p!=null,`Previous layout not found for panel index ${f}`);const v=p+c,y=ln({panelConstraints:n,panelIndex:f,size:v});if(l[f]=y,!_e(y,v)){let h=v-y,b=t<0?s:a;for(;b>=0&&b<n.length;){const C=l[b];J(C!=null,`Previous layout not found for panel index ${b}`);const S=C+h,P=ln({panelConstraints:n,panelIndex:b,size:S});if(_e(C,P)||(h-=P-C,l[b]=P),_e(h,0))break;t>0?b--:b++}}}const d=l.reduce((f,p)=>p+f,0);return _e(d,100)?l:i}function Kv({layout:t,panelsArray:e,pivotIndices:n}){let r=0,i=100,o=0,l=0;const a=n[0];J(a!=null,"No pivot index found"),e.forEach((f,p)=>{const{constraints:v}=f,{maxSize:y=100,minSize:h=0}=v;p===a?(r=h,i=y):(o+=h,l+=y)});const s=Math.min(i,100-o),c=Math.max(r,100-l),d=t[a];return{valueMax:s,valueMin:c,valueNow:d}}function qn(t,e=document){return Array.from(e.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${t}"]`))}function Vd(t,e,n=document){const i=qn(t,n).findIndex(o=>o.getAttribute("data-panel-resize-handle-id")===e);return i??null}function zd(t,e,n){const r=Vd(t,e,n);return r!=null?[r,r+1]:[-1,-1]}function Bd(t,e=document){var n;if(e instanceof HTMLElement&&(e==null||(n=e.dataset)===null||n===void 0?void 0:n.panelGroupId)==t)return e;const r=e.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return r||null}function Ei(t,e=document){const n=e.querySelector(`[data-panel-resize-handle-id="${t}"]`);return n||null}function jv(t,e,n,r=document){var i,o,l,a;const s=Ei(e,r),c=qn(t,r),d=s?c.indexOf(s):-1,f=(i=(o=n[d])===null||o===void 0?void 0:o.id)!==null&&i!==void 0?i:null,p=(l=(a=n[d+1])===null||a===void 0?void 0:a.id)!==null&&l!==void 0?l:null;return[f,p]}function Hv({committedValuesRef:t,eagerValuesRef:e,groupId:n,layout:r,panelDataArray:i,panelGroupElement:o,setLayout:l}){Te({didWarnAboutMissingResizeHandle:!1}),Pt(()=>{if(!o)return;const a=qn(n,o);for(let s=0;s<i.length-1;s++){const{valueMax:c,valueMin:d,valueNow:f}=Kv({layout:r,panelsArray:i,pivotIndices:[s,s+1]}),p=a[s];if(p!=null){const v=i[s];J(v,`No panel data found for index "${s}"`),p.setAttribute("aria-controls",v.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()=>{a.forEach((s,c)=>{s.removeAttribute("aria-controls"),s.removeAttribute("aria-valuemax"),s.removeAttribute("aria-valuemin"),s.removeAttribute("aria-valuenow")})}},[n,r,i,o]),$t(()=>{if(!o)return;const a=e.current;J(a,"Eager values not found");const{panelDataArray:s}=a,c=Bd(n,o);J(c!=null,`No group found for id "${n}"`);const d=qn(n,o);J(d,`No resize handles found for group id "${n}"`);const f=d.map(p=>{const v=p.getAttribute("data-panel-resize-handle-id");J(v,"Resize handle element has no handle id attribute");const[y,h]=jv(n,v,s,o);if(y==null||h==null)return()=>{};const g=b=>{if(!b.defaultPrevented)switch(b.key){case"Enter":{b.preventDefault();const C=s.findIndex(S=>S.id===y);if(C>=0){const S=s[C];J(S,`No panel data found for index ${C}`);const P=r[C],{collapsedSize:E=0,collapsible:x,minSize:$=0}=S.constraints;if(P!=null&&x){const N=An({delta:_e(P,E)?$-E:E-P,initialLayout:r,panelConstraints:s.map(F=>F.constraints),pivotIndices:zd(n,v,o),prevLayout:r,trigger:"keyboard"});r!==N&&l(N)}}break}}};return p.addEventListener("keydown",g),()=>{p.removeEventListener("keydown",g)}});return()=>{f.forEach(p=>p())}},[o,t,e,n,r,i,l])}function ws(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function Ud(t,e){const n=t==="horizontal",{x:r,y:i}=wi(e);return n?r:i}function Vv(t,e,n,r,i){const o=n==="horizontal",l=Ei(e,i);J(l,`No resize handle element found for id "${e}"`);const a=l.getAttribute("data-panel-group-id");J(a,"Resize handle element has no group id attribute");let{initialCursorPosition:s}=r;const c=Ud(n,t),d=Bd(a,i);J(d,`No group element found for id "${a}"`);const f=d.getBoundingClientRect(),p=o?f.width:f.height;return(c-s)/p*100}function zv(t,e,n,r,i,o){if(Rd(t)){const l=n==="horizontal";let a=0;t.shiftKey?a=100:i!=null?a=i:a=10;let s=0;switch(t.key){case"ArrowDown":s=l?0:a;break;case"ArrowLeft":s=l?-a:0;break;case"ArrowRight":s=l?a:0;break;case"ArrowUp":s=l?0:-a;break;case"End":s=100;break;case"Home":s=-100;break}return s}else return r==null?0:Vv(t,e,n,r,o)}function Bv({panelDataArray:t}){const e=Array(t.length),n=t.map(o=>o.constraints);let r=0,i=100;for(let o=0;o<t.length;o++){const l=n[o];J(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;a!=null&&(r++,e[o]=a,i-=a)}for(let o=0;o<t.length;o++){const l=n[o];J(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;if(a!=null)continue;const s=t.length-r,c=i/s;r++,e[o]=c,i-=c}return e}function Ut(t,e,n){e.forEach((r,i)=>{const o=t[i];J(o,`Panel data not found for index ${i}`);const{callbacks:l,constraints:a,id:s}=o,{collapsedSize:c=0,collapsible:d}=a,f=n[s];if(f==null||r!==f){n[s]=r;const{onCollapse:p,onExpand:v,onResize:y}=l;y&&y(r,f),d&&(p||v)&&(v&&(f==null||Je(f,c))&&!Je(r,c)&&v(),p&&(f==null||!Je(f,c))&&Je(r,c)&&p())}})}function pr(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0}function Uv({defaultSize:t,dragState:e,layout:n,panelData:r,panelIndex:i,precision:o=3}){const l=n[i];let a;return l==null?a=t!=null?t.toPrecision(o):"1":r.length===1?a="1":a=l.toPrecision(o),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function Wv(t,e=10){let n=null;return(...i)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...i)},e)}}function xs(t){try{if(typeof localStorage<"u")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,n)=>{localStorage.setItem(e,n)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function Wd(t){return`react-resizable-panels:${t}`}function Zd(t){return t.map(e=>{const{constraints:n,id:r,idIsFromProps:i,order:o}=e;return i?r:o?`${o}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((e,n)=>e.localeCompare(n)).join(",")}function Gd(t,e){try{const n=Wd(t),r=e.getItem(n);if(r){const i=JSON.parse(r);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function Zv(t,e,n){var r,i;const o=(r=Gd(t,n))!==null&&r!==void 0?r:{},l=Zd(e);return(i=o[l])!==null&&i!==void 0?i:null}function Gv(t,e,n,r,i){var o;const l=Wd(t),a=Zd(e),s=(o=Gd(t,i))!==null&&o!==void 0?o:{};s[a]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{i.setItem(l,JSON.stringify(s))}catch(c){console.error(c)}}function Es({layout:t,panelConstraints:e}){const n=[...t],r=n.reduce((o,l)=>o+l,0);if(n.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${n.map(o=>`${o}%`).join(", ")}`);if(!_e(r,100)&&n.length>0)for(let o=0;o<e.length;o++){const l=n[o];J(l!=null,`No layout data found for index ${o}`);const a=100/r*l;n[o]=a}let i=0;for(let o=0;o<e.length;o++){const l=n[o];J(l!=null,`No layout data found for index ${o}`);const a=ln({panelConstraints:e,panelIndex:o,size:l});l!=a&&(i+=l-a,n[o]=a)}if(!_e(i,0))for(let o=0;o<e.length;o++){const l=n[o];J(l!=null,`No layout data found for index ${o}`);const a=l+i,s=ln({panelConstraints:e,panelIndex:o,size:a});if(l!==s&&(i-=s-l,n[o]=s,_e(i,0)))break}return n}const qv=100,Fn={getItem:t=>(xs(Fn),Fn.getItem(t)),setItem:(t,e)=>{xs(Fn),Fn.setItem(t,e)}},$s={};function qd({autoSaveId:t=null,children:e,className:n="",direction:r,forwardedRef:i,id:o=null,onLayout:l=null,keyboardResizeBy:a=null,storage:s=Fn,style:c,tagName:d="div",...f}){const p=Bl(o),v=Te(null),[y,h]=dn(null),[g,b]=dn([]),C=Av(),S=Te({}),P=Te(new Map),E=Te(0),x=Te({autoSaveId:t,direction:r,dragState:y,id:p,keyboardResizeBy:a,onLayout:l,storage:s}),$=Te({layout:g,panelDataArray:[],panelDataArrayChanged:!1});Te({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),kd(i,()=>({getId:()=>x.current.id,getLayout:()=>{const{layout:O}=$.current;return O},setLayout:O=>{const{onLayout:H}=x.current,{layout:K,panelDataArray:j}=$.current,z=Es({layout:O,panelConstraints:j.map(W=>W.constraints)});ws(K,z)||(b(z),$.current.layout=z,H&&H(z),Ut(j,z,S.current))}}),[]),Pt(()=>{x.current.autoSaveId=t,x.current.direction=r,x.current.dragState=y,x.current.id=p,x.current.onLayout=l,x.current.storage=s}),Hv({committedValuesRef:x,eagerValuesRef:$,groupId:p,layout:g,panelDataArray:$.current.panelDataArray,setLayout:b,panelGroupElement:v.current}),$t(()=>{const{panelDataArray:O}=$.current;if(t){if(g.length===0||g.length!==O.length)return;let H=$s[t];H==null&&(H=Wv(Gv,qv),$s[t]=H);const K=[...O],j=new Map(P.current);H(t,K,j,g,s)}},[t,g,s]),$t(()=>{});const N=Pe(O=>{const{onLayout:H}=x.current,{layout:K,panelDataArray:j}=$.current;if(O.constraints.collapsible){const z=j.map(ce=>ce.constraints),{collapsedSize:W=0,panelSize:q,pivotIndices:X}=yt(j,O,K);if(J(q!=null,`Panel size not found for panel "${O.id}"`),!Je(q,W)){P.current.set(O.id,q);const G=nn(j,O)===j.length-1?q-W:W-q,te=An({delta:G,initialLayout:K,panelConstraints:z,pivotIndices:X,prevLayout:K,trigger:"imperative-api"});pr(K,te)||(b(te),$.current.layout=te,H&&H(te),Ut(j,te,S.current))}}},[]),F=Pe((O,H)=>{const{onLayout:K}=x.current,{layout:j,panelDataArray:z}=$.current;if(O.constraints.collapsible){const W=z.map(ue=>ue.constraints),{collapsedSize:q=0,panelSize:X=0,minSize:ce=0,pivotIndices:G}=yt(z,O,j),te=H??ce;if(Je(X,q)){const ue=P.current.get(O.id),ee=ue!=null&&ue>=te?ue:te,xn=nn(z,O)===z.length-1?X-ee:ee-X,$e=An({delta:xn,initialLayout:j,panelConstraints:W,pivotIndices:G,prevLayout:j,trigger:"imperative-api"});pr(j,$e)||(b($e),$.current.layout=$e,K&&K($e),Ut(z,$e,S.current))}}},[]),V=Pe(O=>{const{layout:H,panelDataArray:K}=$.current,{panelSize:j}=yt(K,O,H);return J(j!=null,`Panel size not found for panel "${O.id}"`),j},[]),w=Pe((O,H)=>{const{panelDataArray:K}=$.current,j=nn(K,O);return Uv({defaultSize:H,dragState:y,layout:g,panelData:K,panelIndex:j})},[y,g]),M=Pe(O=>{const{layout:H,panelDataArray:K}=$.current,{collapsedSize:j=0,collapsible:z,panelSize:W}=yt(K,O,H);return J(W!=null,`Panel size not found for panel "${O.id}"`),z===!0&&Je(W,j)},[]),B=Pe(O=>{const{layout:H,panelDataArray:K}=$.current,{collapsedSize:j=0,collapsible:z,panelSize:W}=yt(K,O,H);return J(W!=null,`Panel size not found for panel "${O.id}"`),!z||kt(W,j)>0},[]),A=Pe(O=>{const{panelDataArray:H}=$.current;H.push(O),H.sort((K,j)=>{const z=K.order,W=j.order;return z==null&&W==null?0:z==null?-1:W==null?1:z-W}),$.current.panelDataArrayChanged=!0,C()},[C]);Pt(()=>{if($.current.panelDataArrayChanged){$.current.panelDataArrayChanged=!1;const{autoSaveId:O,onLayout:H,storage:K}=x.current,{layout:j,panelDataArray:z}=$.current;let W=null;if(O){const X=Zv(O,z,K);X&&(P.current=new Map(Object.entries(X.expandToSizes)),W=X.layout)}W==null&&(W=Bv({panelDataArray:z}));const q=Es({layout:W,panelConstraints:z.map(X=>X.constraints)});ws(j,q)||(b(q),$.current.layout=q,H&&H(q),Ut(z,q,S.current))}}),Pt(()=>{const O=$.current;return()=>{O.layout=[]}},[]);const U=Pe(O=>{let H=!1;const K=v.current;return K&&window.getComputedStyle(K,null).getPropertyValue("direction")==="rtl"&&(H=!0),function(z){z.preventDefault();const W=v.current;if(!W)return()=>null;const{direction:q,dragState:X,id:ce,keyboardResizeBy:G,onLayout:te}=x.current,{layout:ue,panelDataArray:ee}=$.current,{initialLayout:it}=X??{},xn=zd(ce,O,W);let $e=zv(z,O,q,X,G,W);const ua=q==="horizontal";ua&&H&&($e=-$e);const Hf=ee.map(Vf=>Vf.constraints),En=An({delta:$e,initialLayout:it??ue,panelConstraints:Hf,pivotIndices:xn,prevLayout:ue,trigger:Rd(z)?"keyboard":"mouse-or-touch"}),da=!pr(ue,En);(Md(z)||Ld(z))&&E.current!=$e&&(E.current=$e,!da&&$e!==0?ua?Qi(O,$e<0?Fd:Kd):Qi(O,$e<0?jd:Hd):Qi(O,0)),da&&(b(En),$.current.layout=En,te&&te(En),Ut(ee,En,S.current))}},[]),T=Pe((O,H)=>{const{onLayout:K}=x.current,{layout:j,panelDataArray:z}=$.current,W=z.map(ue=>ue.constraints),{panelSize:q,pivotIndices:X}=yt(z,O,j);J(q!=null,`Panel size not found for panel "${O.id}"`);const G=nn(z,O)===z.length-1?q-H:H-q,te=An({delta:G,initialLayout:j,panelConstraints:W,pivotIndices:X,prevLayout:j,trigger:"imperative-api"});pr(j,te)||(b(te),$.current.layout=te,K&&K(te),Ut(z,te,S.current))},[]),R=Pe((O,H)=>{const{layout:K,panelDataArray:j}=$.current,{collapsedSize:z=0,collapsible:W}=H,{collapsedSize:q=0,collapsible:X,maxSize:ce=100,minSize:G=0}=O.constraints,{panelSize:te}=yt(j,O,K);te!=null&&(W&&X&&Je(te,z)?Je(z,q)||T(O,q):te<G?T(O,G):te>ce&&T(O,ce))},[T]),k=Pe((O,H)=>{const{direction:K}=x.current,{layout:j}=$.current;if(!v.current)return;const z=Ei(O,v.current);J(z,`Drag handle element not found for id "${O}"`);const W=Ud(K,H);h({dragHandleId:O,dragHandleRect:z.getBoundingClientRect(),initialCursorPosition:W,initialLayout:j})},[]),Z=Pe(()=>{h(null)},[]),I=Pe(O=>{const{panelDataArray:H}=$.current,K=nn(H,O);K>=0&&(H.splice(K,1),delete S.current[O.id],$.current.panelDataArrayChanged=!0,C())},[C]),L=xv(()=>({collapsePanel:N,direction:r,dragState:y,expandPanel:F,getPanelSize:V,getPanelStyle:w,groupId:p,isPanelCollapsed:M,isPanelExpanded:B,reevaluatePanelConstraints:R,registerPanel:A,registerResizeHandle:U,resizePanel:T,startDragging:k,stopDragging:Z,unregisterPanel:I,panelGroupElement:v.current}),[N,y,r,F,V,w,p,M,B,R,A,U,T,k,Z,I]),_={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return mn(Si.Provider,{value:L},mn(d,{...f,children:e,className:n,id:o,ref:v,style:{..._,...c},"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":p}))}const Yd=Id((t,e)=>mn(qd,{...t,forwardedRef:e}));qd.displayName="PanelGroup";Yd.displayName="forwardRef(PanelGroup)";function nn(t,e){return t.findIndex(n=>n===e||n.id===e.id)}function yt(t,e,n){const r=nn(t,e),o=r===t.length-1?[r-1,r]:[r,r+1],l=n[r];return{...e.constraints,panelSize:l,pivotIndices:o}}function Yv({disabled:t,handleId:e,resizeHandler:n,panelGroupElement:r}){$t(()=>{if(t||n==null||r==null)return;const i=Ei(e,r);if(i==null)return;const o=l=>{if(!l.defaultPrevented)switch(l.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{l.preventDefault(),n(l);break}case"F6":{l.preventDefault();const a=i.getAttribute("data-panel-group-id");J(a,`No group element found for id "${a}"`);const s=qn(a,r),c=Vd(a,e,r);J(c!==null,`No resize element found for id "${e}"`);const d=l.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)}},[r,t,e,n])}function Xd({children:t=null,className:e="",disabled:n=!1,hitAreaMargins:r,id:i,onBlur:o,onDragging:l,onFocus:a,style:s={},tabIndex:c=0,tagName:d="div",...f}){var p,v;const y=Te(null),h=Te({onDragging:l});$t(()=>{h.current.onDragging=l});const g=Od(Si);if(g===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:b,groupId:C,registerResizeHandle:S,startDragging:P,stopDragging:E,panelGroupElement:x}=g,$=Bl(i),[N,F]=dn("inactive"),[V,w]=dn(!1),[M,B]=dn(null),A=Te({state:N});Pt(()=>{A.current.state=N}),$t(()=>{if(n)B(null);else{const k=S($);B(()=>k)}},[n,$,S]);const U=(p=r==null?void 0:r.coarse)!==null&&p!==void 0?p:15,T=(v=r==null?void 0:r.fine)!==null&&v!==void 0?v:5;return $t(()=>{if(n||M==null)return;const k=y.current;return J(k,"Element ref not attached"),Lv($,k,b,{coarse:U,fine:T},(I,L,_)=>{if(L)switch(I){case"down":{F("drag"),J(_,'Expected event to be defined for "down" action'),P($,_);const{onDragging:O}=h.current;O&&O(!0);break}case"move":{const{state:O}=A.current;O!=="drag"&&F("hover"),J(_,'Expected event to be defined for "move" action'),M(_);break}case"up":{F("hover"),E();const{onDragging:O}=h.current;O&&O(!1);break}}else F("inactive")})},[U,b,n,T,S,$,M,P,E]),Yv({disabled:n,handleId:$,resizeHandler:M,panelGroupElement:x}),mn(d,{...f,children:t,className:e,id:i,onBlur:()=>{w(!1),o==null||o()},onFocus:()=>{w(!0),a==null||a()},ref:y,role:"separator",style:{...{touchAction:"none",userSelect:"none"},...s},tabIndex:c,"data-panel-group-direction":b,"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":!n,"data-panel-resize-handle-id":$})}Xd.displayName="PanelResizeHandle";const Xv=({children:t,isOpen:e})=>{const{isDesktop:n}=wn();return n?m.jsx("div",{className:xe("c__right-panel",{open:e}),children:t}):m.jsx("div",{className:xe("c__right-panel__mobile",{open:e}),children:t})},Jv=(t,e,n)=>{const[r,i]=u.useState(typeof e>"u"?t:e),o=l=>{n?n(l):i(l)};return u.useEffect(()=>{n&&typeof e<"u"&&e!==r&&i(e)},[e]),[r,o]},Qv=({icon:t,children:e,hideLeftPanelOnDesktop:n=!1,leftPanelContent:r,rightPanelContent:i,rightHeaderContent:o,languages:l,enableResize:a=!1,rightPanelIsOpen:s=!1,...c})=>{const[d,f]=Jv(!1,c.isLeftPanelOpen,c.setIsLeftPanelOpen),{isDesktop:p}=wn(),v=u.useRef(null),[y,h]=u.useState(vr(300,p)),[g,b]=u.useState(vr(450,p)),C=()=>{f(!d)};u.useEffect(()=>{const E=()=>{const x=Math.round(vr(300,p)),$=Math.round(Math.min(vr(450,p),40));h(p?x:0),b(a?$:x)};return E(),window.addEventListener("resize",()=>{E()}),()=>{window.removeEventListener("resize",E)}},[p,a]);const S=p?!n:!0,P=p?!n:d;return m.jsxs("div",{className:"c__main-layout",children:[m.jsx("div",{className:"c__main-layout__header",children:m.jsx(Td,{onTogglePanel:C,isPanelOpen:d,rightIcon:o,leftIcon:t,languages:l})}),m.jsx("div",{className:"c__main-layout__content",children:m.jsxs(Yd,{autoSaveId:"persistance",direction:"horizontal",children:[S&&m.jsxs(m.Fragment,{children:[m.jsx(Go,{ref:v,order:0,defaultSize:y,minSize:y,maxSize:g,children:m.jsx(_d,{isOpen:P,children:r})}),p&&m.jsx(Xd,{className:"bg-greyscale-200",style:{width:"1px"}})]}),m.jsx(Go,{order:1,children:m.jsxs("div",{className:"c__main-layout__content__center",children:[m.jsx("div",{className:"c__main-layout__content__center__children",children:e}),m.jsx(Xv,{isOpen:s,children:i})]})})]})})]})},vr=(t,e)=>{if(!e)return 0;const n=window.innerWidth;return t/n*100},eg=52,Gl=({size:t="sm"})=>m.jsx("div",{className:["c__spinner",t].join(" ")}),Jd=({children:t,text:e,...n})=>m.jsxs("div",{className:"suite__label__container",children:[m.jsx("label",{...n,children:t}),e&&m.jsx("span",{className:"suite__label__container__description",children:e})]}),tg=({label:t,text:e,labelSide:n="right",children:r})=>m.jsxs("div",{className:xe("c__with-label",{[n]:!0}),children:[m.jsx(Jd,{children:t,text:e}),r]});var Ps=1,ng=.9,rg=.8,ig=.17,eo=.1,to=.999,og=.9999,lg=.99,ag=/[\\\/_+.#"@\[\(\{&]/,sg=/[\\\/_+.#"@\[\(\{&]/g,cg=/[\s-]/,Qd=/[\s-]/g;function Yo(t,e,n,r,i,o,l){if(o===e.length)return i===t.length?Ps:lg;var a=`${i},${o}`;if(l[a]!==void 0)return l[a];for(var s=r.charAt(o),c=n.indexOf(s,i),d=0,f,p,v,y;c>=0;)f=Yo(t,e,n,r,c+1,o+1,l),f>d&&(c===i?f*=Ps:ag.test(t.charAt(c-1))?(f*=rg,v=t.slice(i,c-1).match(sg),v&&i>0&&(f*=Math.pow(to,v.length))):cg.test(t.charAt(c-1))?(f*=ng,y=t.slice(i,c-1).match(Qd),y&&i>0&&(f*=Math.pow(to,y.length))):(f*=ig,i>0&&(f*=Math.pow(to,c-i))),t.charAt(c)!==e.charAt(o)&&(f*=og)),(f<eo&&n.charAt(c-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&n.charAt(c-1)!==r.charAt(o))&&(p=Yo(t,e,n,r,c+1,o+2,l),p*eo>f&&(f=p*eo)),f>d&&(d=f),c=n.indexOf(s,c+1);return l[a]=d,d}function Ds(t){return t.toLowerCase().replace(Qd," ")}function ug(t,e,n){return t=n&&n.length>0?`${t+" "+n.join(" ")}`:t,Yo(t,e,Ds(t),Ds(e),0,0,{})}function ht(t,e,{checkForDefaultPrevented:n=!0}={}){return function(i){if(t==null||t(i),n===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}function Ts(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function e2(...t){return e=>{let n=!1;const r=t.map(i=>{const o=Ts(i,e);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():Ts(t[i],null)}}}}function Ht(...t){return D.useCallback(e2(...t),t)}function dg(t,e){const n=D.createContext(e),r=o=>{const{children:l,...a}=o,s=D.useMemo(()=>a,Object.values(a));return m.jsx(n.Provider,{value:s,children:l})};r.displayName=t+"Provider";function i(o){const l=D.useContext(n);if(l)return l;if(e!==void 0)return e;throw new Error(`\`${o}\` must be used within \`${t}\``)}return[r,i]}function fg(t,e=[]){let n=[];function r(o,l){const a=D.createContext(l),s=n.length;n=[...n,l];const c=f=>{var b;const{scope:p,children:v,...y}=f,h=((b=p==null?void 0:p[t])==null?void 0:b[s])||a,g=D.useMemo(()=>y,Object.values(y));return m.jsx(h.Provider,{value:g,children:v})};c.displayName=o+"Provider";function d(f,p){var h;const v=((h=p==null?void 0:p[t])==null?void 0:h[s])||a,y=D.useContext(v);if(y)return y;if(l!==void 0)return l;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[c,d]}const i=()=>{const o=n.map(l=>D.createContext(l));return function(a){const s=(a==null?void 0:a[t])||o;return D.useMemo(()=>({[`__scope${t}`]:{...a,[t]:s}}),[a,s])}};return i.scopeName=t,[r,hg(i,...e)]}function hg(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const l=r.reduce((a,{useScope:s,scopeName:c})=>{const f=s(o)[`__scope${c}`];return{...a,...f}},{});return D.useMemo(()=>({[`__scope${e.scopeName}`]:l}),[l])}};return n.scopeName=e.scopeName,n}var Yn=globalThis!=null&&globalThis.document?D.useLayoutEffect:()=>{},pg=D[" useId ".trim().toString()]||(()=>{}),vg=0;function et(t){const[e,n]=D.useState(pg());return Yn(()=>{n(r=>r??String(vg++))},[t]),e?`radix-${e}`:""}var gg=D[" useInsertionEffect ".trim().toString()]||Yn;function mg({prop:t,defaultProp:e,onChange:n=()=>{},caller:r}){const[i,o,l]=yg({defaultProp:e,onChange:n}),a=t!==void 0,s=a?t:i;{const d=D.useRef(t!==void 0);D.useEffect(()=>{const f=d.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const c=D.useCallback(d=>{var f;if(a){const p=bg(d)?d(t):d;p!==t&&((f=l.current)==null||f.call(l,p))}else o(d)},[a,t,o,l]);return[s,c]}function yg({defaultProp:t,onChange:e}){const[n,r]=D.useState(t),i=D.useRef(n),o=D.useRef(e);return gg(()=>{o.current=e},[e]),D.useEffect(()=>{var l;i.current!==n&&((l=o.current)==null||l.call(o,n),i.current=n)},[n,i]),[n,r,o]}function bg(t){return typeof t=="function"}function t2(t){const e=Cg(t),n=D.forwardRef((r,i)=>{const{children:o,...l}=r,a=D.Children.toArray(o),s=a.find(wg);if(s){const c=s.props.children,d=a.map(f=>f===s?D.Children.count(c)>1?D.Children.only(null):D.isValidElement(c)?c.props.children:null:f);return m.jsx(e,{...l,ref:i,children:D.isValidElement(c)?D.cloneElement(c,void 0,d):null})}return m.jsx(e,{...l,ref:i,children:o})});return n.displayName=`${t}.Slot`,n}function Cg(t){const e=D.forwardRef((n,r)=>{const{children:i,...o}=n;if(D.isValidElement(i)){const l=Eg(i),a=xg(o,i.props);return i.type!==D.Fragment&&(a.ref=r?e2(r,l):l),D.cloneElement(i,a)}return D.Children.count(i)>1?D.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var Sg=Symbol("radix.slottable");function wg(t){return D.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Sg}function xg(t,e){const n={...e};for(const r in e){const i=t[r],o=e[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{const s=o(...a);return i(...a),s}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...t,...n}}function Eg(t){var r,i;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var $g=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],me=$g.reduce((t,e)=>{const n=t2(`Primitive.${e}`),r=D.forwardRef((i,o)=>{const{asChild:l,...a}=i,s=l?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(s,{...a,ref:o})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function Pg(t,e){t&&zf.flushSync(()=>t.dispatchEvent(e))}function Xn(t){const e=D.useRef(t);return D.useEffect(()=>{e.current=t}),D.useMemo(()=>(...n)=>{var r;return(r=e.current)==null?void 0:r.call(e,...n)},[])}function Dg(t,e=globalThis==null?void 0:globalThis.document){const n=Xn(t);D.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[n,e])}var Tg="DismissableLayer",Xo="dismissableLayer.update",_g="dismissableLayer.pointerDownOutside",Ig="dismissableLayer.focusOutside",_s,n2=D.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),r2=D.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:l,onDismiss:a,...s}=t,c=D.useContext(n2),[d,f]=D.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=D.useState({}),y=Ht(e,$=>f($)),h=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=h.indexOf(g),C=d?h.indexOf(d):-1,S=c.layersWithOutsidePointerEventsDisabled.size>0,P=C>=b,E=Ng($=>{const N=$.target,F=[...c.branches].some(V=>V.contains(N));!P||F||(i==null||i($),l==null||l($),$.defaultPrevented||a==null||a())},p),x=Rg($=>{const N=$.target;[...c.branches].some(V=>V.contains(N))||(o==null||o($),l==null||l($),$.defaultPrevented||a==null||a())},p);return Dg($=>{C===c.layers.size-1&&(r==null||r($),!$.defaultPrevented&&a&&($.preventDefault(),a()))},p),D.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(_s=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Is(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=_s)}},[d,p,n,c]),D.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Is())},[d,c]),D.useEffect(()=>{const $=()=>v({});return document.addEventListener(Xo,$),()=>document.removeEventListener(Xo,$)},[]),m.jsx(me.div,{...s,ref:y,style:{pointerEvents:S?P?"auto":"none":void 0,...t.style},onFocusCapture:ht(t.onFocusCapture,x.onFocusCapture),onBlurCapture:ht(t.onBlurCapture,x.onBlurCapture),onPointerDownCapture:ht(t.onPointerDownCapture,E.onPointerDownCapture)})});r2.displayName=Tg;var Og="DismissableLayerBranch",kg=D.forwardRef((t,e)=>{const n=D.useContext(n2),r=D.useRef(null),i=Ht(e,r);return D.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),m.jsx(me.div,{...t,ref:i})});kg.displayName=Og;function Ng(t,e=globalThis==null?void 0:globalThis.document){const n=Xn(t),r=D.useRef(!1),i=D.useRef(()=>{});return D.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let s=function(){i2(_g,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=s,e.addEventListener("click",i.current,{once:!0})):s()}else e.removeEventListener("click",i.current);r.current=!1},l=window.setTimeout(()=>{e.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(l),e.removeEventListener("pointerdown",o),e.removeEventListener("click",i.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function Rg(t,e=globalThis==null?void 0:globalThis.document){const n=Xn(t),r=D.useRef(!1);return D.useEffect(()=>{const i=o=>{o.target&&!r.current&&i2(Ig,n,{originalEvent:o},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Is(){const t=new CustomEvent(Xo);document.dispatchEvent(t)}function i2(t,e,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&i.addEventListener(t,e,{once:!0}),r?Pg(i,o):i.dispatchEvent(o)}var no="focusScope.autoFocusOnMount",ro="focusScope.autoFocusOnUnmount",Os={bubbles:!1,cancelable:!0},Mg="FocusScope",o2=D.forwardRef((t,e)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...l}=t,[a,s]=D.useState(null),c=Xn(i),d=Xn(o),f=D.useRef(null),p=Ht(e,h=>s(h)),v=D.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;D.useEffect(()=>{if(r){let h=function(S){if(v.paused||!a)return;const P=S.target;a.contains(P)?f.current=P:lt(f.current,{select:!0})},g=function(S){if(v.paused||!a)return;const P=S.relatedTarget;P!==null&&(a.contains(P)||lt(f.current,{select:!0}))},b=function(S){if(document.activeElement===document.body)for(const E of S)E.removedNodes.length>0&&lt(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",g);const C=new MutationObserver(b);return a&&C.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",g),C.disconnect()}}},[r,a,v.paused]),D.useEffect(()=>{if(a){Ns.add(v);const h=document.activeElement;if(!a.contains(h)){const b=new CustomEvent(no,Os);a.addEventListener(no,c),a.dispatchEvent(b),b.defaultPrevented||(Lg(Hg(l2(a)),{select:!0}),document.activeElement===h&&lt(a))}return()=>{a.removeEventListener(no,c),setTimeout(()=>{const b=new CustomEvent(ro,Os);a.addEventListener(ro,d),a.dispatchEvent(b),b.defaultPrevented||lt(h??document.body,{select:!0}),a.removeEventListener(ro,d),Ns.remove(v)},0)}}},[a,c,d,v]);const y=D.useCallback(h=>{if(!n&&!r||v.paused)return;const g=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,b=document.activeElement;if(g&&b){const C=h.currentTarget,[S,P]=Ag(C);S&&P?!h.shiftKey&&b===P?(h.preventDefault(),n&&lt(S,{select:!0})):h.shiftKey&&b===S&&(h.preventDefault(),n&&lt(P,{select:!0})):b===C&&h.preventDefault()}},[n,r,v.paused]);return m.jsx(me.div,{tabIndex:-1,...l,ref:p,onKeyDown:y})});o2.displayName=Mg;function Lg(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(lt(r,{select:e}),document.activeElement!==n)return}function Ag(t){const e=l2(t),n=ks(e,t),r=ks(e.reverse(),t);return[n,r]}function l2(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function ks(t,e){for(const n of t)if(!Fg(n,{upTo:e}))return n}function Fg(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 Kg(t){return t instanceof HTMLInputElement&&"select"in t}function lt(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&Kg(t)&&e&&t.select()}}var Ns=jg();function jg(){let t=[];return{add(e){const n=t[0];e!==n&&(n==null||n.pause()),t=Rs(t,e),t.unshift(e)},remove(e){var n;t=Rs(t,e),(n=t[0])==null||n.resume()}}}function Rs(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}function Hg(t){return t.filter(e=>e.tagName!=="A")}var Vg="Portal",a2=D.forwardRef((t,e)=>{var a;const{container:n,...r}=t,[i,o]=D.useState(!1);Yn(()=>o(!0),[]);const l=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return l?At.createPortal(m.jsx(me.div,{...r,ref:e}),l):null});a2.displayName=Vg;function zg(t,e){return D.useReducer((n,r)=>e[n][r]??n,t)}var $i=t=>{const{present:e,children:n}=t,r=Bg(e),i=typeof n=="function"?n({present:r.isPresent}):D.Children.only(n),o=Ht(r.ref,Ug(i));return typeof n=="function"||r.isPresent?D.cloneElement(i,{ref:o}):null};$i.displayName="Presence";function Bg(t){const[e,n]=D.useState(),r=D.useRef(null),i=D.useRef(t),o=D.useRef("none"),l=t?"mounted":"unmounted",[a,s]=zg(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return D.useEffect(()=>{const c=gr(r.current);o.current=a==="mounted"?c:"none"},[a]),Yn(()=>{const c=r.current,d=i.current;if(d!==t){const p=o.current,v=gr(c);t?s("MOUNT"):v==="none"||(c==null?void 0:c.display)==="none"?s("UNMOUNT"):s(d&&p!==v?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,s]),Yn(()=>{if(e){let c;const d=e.ownerDocument.defaultView??window,f=v=>{const h=gr(r.current).includes(v.animationName);if(v.target===e&&h&&(s("ANIMATION_END"),!i.current)){const g=e.style.animationFillMode;e.style.animationFillMode="forwards",c=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=g)})}},p=v=>{v.target===e&&(o.current=gr(r.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(a),ref:D.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function gr(t){return(t==null?void 0:t.animationName)||"none"}function Ug(t){var r,i;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var io=0;function Wg(){D.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??Ms()),document.body.insertAdjacentElement("beforeend",t[1]??Ms()),io++,()=>{io===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),io--}},[])}function Ms(){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 Tr="right-scroll-bar-position",_r="width-before-scroll-bar",Zg="with-scroll-bars-hidden",Gg="--removed-body-scroll-bar-size";function oo(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function qg(t,e){var n=u.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=e,n.facade}var Yg=typeof window<"u"?D.useLayoutEffect:D.useEffect,Ls=new WeakMap;function Xg(t,e){var n=qg(null,function(r){return t.forEach(function(i){return oo(i,r)})});return Yg(function(){var r=Ls.get(n);if(r){var i=new Set(r),o=new Set(t),l=n.current;i.forEach(function(a){o.has(a)||oo(a,null)}),o.forEach(function(a){i.has(a)||oo(a,l)})}Ls.set(n,t)},[t]),n}function Jg(t){return t}function Qg(t,e){e===void 0&&(e=Jg);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(o){var l=e(o,r);return n.push(l),function(){n=n.filter(function(a){return a!==l})}},assignSyncMedium:function(o){for(r=!0;n.length;){var l=n;n=[],l.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var l=[];if(n.length){var a=n;n=[],a.forEach(o),l=n}var s=function(){var d=l;l=[],d.forEach(o)},c=function(){return Promise.resolve().then(s)};c(),n={push:function(d){l.push(d),c()},filter:function(d){return l=l.filter(d),n}}}};return i}function e4(t){t===void 0&&(t={});var e=Qg(null);return e.options=Ze({async:!0,ssr:!1},t),e}var s2=function(t){var e=t.sideCar,n=wu(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return D.createElement(r,Ze({},n))};s2.isSideCarExport=!0;function t4(t,e){return t.useMedium(e),s2}var c2=e4(),lo=function(){},Pi=D.forwardRef(function(t,e){var n=D.useRef(null),r=D.useState({onScrollCapture:lo,onWheelCapture:lo,onTouchMoveCapture:lo}),i=r[0],o=r[1],l=t.forwardProps,a=t.children,s=t.className,c=t.removeScrollBar,d=t.enabled,f=t.shards,p=t.sideCar,v=t.noRelative,y=t.noIsolation,h=t.inert,g=t.allowPinchZoom,b=t.as,C=b===void 0?"div":b,S=t.gapMode,P=wu(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=p,x=Xg([n,e]),$=Ze(Ze({},P),i);return D.createElement(D.Fragment,null,d&&D.createElement(E,{sideCar:c2,removeScrollBar:c,shards:f,noRelative:v,noIsolation:y,inert:h,setCallbacks:o,allowPinchZoom:!!g,lockRef:n,gapMode:S}),l?D.cloneElement(D.Children.only(a),Ze(Ze({},$),{ref:x})):D.createElement(C,Ze({},$,{className:s,ref:x}),a))});Pi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Pi.classNames={fullWidth:_r,zeroRight:Tr};var n4=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function r4(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=n4();return e&&t.setAttribute("nonce",e),t}function i4(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function o4(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var l4=function(){var t=0,e=null;return{add:function(n){t==0&&(e=r4())&&(i4(e,n),o4(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},a4=function(){var t=l4();return function(e,n){D.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},u2=function(){var t=a4(),e=function(n){var r=n.styles,i=n.dynamic;return t(r,i),null};return e},s4={left:0,top:0,right:0,gap:0},ao=function(t){return parseInt(t||"",10)||0},c4=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],i=e[t==="padding"?"paddingRight":"marginRight"];return[ao(n),ao(r),ao(i)]},u4=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return s4;var e=c4(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},d4=u2(),hn="data-scroll-locked",f4=function(t,e,n,r){var i=t.left,o=t.top,l=t.right,a=t.gap;return n===void 0&&(n="margin"),`
45
45
  .`.concat(Zg,` {
46
46
  overflow: hidden `).concat(r,`;
47
47
  padding-right: `).concat(a,"px ").concat(r,`;
@@ -78,22 +78,22 @@ React keys must be passed directly to JSX without using spread:
78
78
  body[`).concat(hn,`] {
79
79
  `).concat(Gg,": ").concat(a,`px;
80
80
  }
81
- `)},As=function(){var t=parseInt(document.body.getAttribute(hn)||"0",10);return isFinite(t)?t:0},h4=function(){D.useEffect(function(){return document.body.setAttribute(hn,(As()+1).toString()),function(){var t=As()-1;t<=0?document.body.removeAttribute(hn):document.body.setAttribute(hn,t.toString())}},[])},p4=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,i=r===void 0?"margin":r;h4();var o=D.useMemo(function(){return u4(i)},[i]);return D.createElement(d4,{styles:f4(o,!e,i,n?"":"!important")})},Jo=!1;if(typeof window<"u")try{var mr=Object.defineProperty({},"passive",{get:function(){return Jo=!0,!0}});window.addEventListener("test",mr,mr),window.removeEventListener("test",mr,mr)}catch{Jo=!1}var Wt=Jo?{passive:!1}:!1,v4=function(t){return t.tagName==="TEXTAREA"},d2=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!v4(t)&&n[e]==="visible")},g4=function(t){return d2(t,"overflowY")},m4=function(t){return d2(t,"overflowX")},Fs=function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=f2(t,r);if(i){var o=h2(t,r),l=o[1],a=o[2];if(l>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},y4=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},b4=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},f2=function(t,e){return t==="v"?g4(e):m4(e)},h2=function(t,e){return t==="v"?y4(e):b4(e)},C4=function(t,e){return t==="h"&&e==="rtl"?-1:1},S4=function(t,e,n,r,i){var o=C4(t,window.getComputedStyle(e).direction),l=o*r,a=n.target,s=e.contains(a),c=!1,d=l>0,f=0,p=0;do{if(!a)break;var v=h2(t,a),b=v[0],h=v[1],g=v[2],m=h-g-o*b;(b||m)&&f2(t,a)&&(f+=m,p+=b);var C=a.parentNode;a=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!s&&a!==document.body||s&&(e.contains(a)||e===a));return(d&&Math.abs(f)<1||!d&&Math.abs(p)<1)&&(c=!0),c},yr=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Ks=function(t){return[t.deltaX,t.deltaY]},js=function(t){return t&&"current"in t?t.current:t},x4=function(t,e){return t[0]===e[0]&&t[1]===e[1]},w4=function(t){return`
81
+ `)},As=function(){var t=parseInt(document.body.getAttribute(hn)||"0",10);return isFinite(t)?t:0},h4=function(){D.useEffect(function(){return document.body.setAttribute(hn,(As()+1).toString()),function(){var t=As()-1;t<=0?document.body.removeAttribute(hn):document.body.setAttribute(hn,t.toString())}},[])},p4=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,i=r===void 0?"margin":r;h4();var o=D.useMemo(function(){return u4(i)},[i]);return D.createElement(d4,{styles:f4(o,!e,i,n?"":"!important")})},Jo=!1;if(typeof window<"u")try{var mr=Object.defineProperty({},"passive",{get:function(){return Jo=!0,!0}});window.addEventListener("test",mr,mr),window.removeEventListener("test",mr,mr)}catch{Jo=!1}var Wt=Jo?{passive:!1}:!1,v4=function(t){return t.tagName==="TEXTAREA"},d2=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!v4(t)&&n[e]==="visible")},g4=function(t){return d2(t,"overflowY")},m4=function(t){return d2(t,"overflowX")},Fs=function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=f2(t,r);if(i){var o=h2(t,r),l=o[1],a=o[2];if(l>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},y4=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},b4=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},f2=function(t,e){return t==="v"?g4(e):m4(e)},h2=function(t,e){return t==="v"?y4(e):b4(e)},C4=function(t,e){return t==="h"&&e==="rtl"?-1:1},S4=function(t,e,n,r,i){var o=C4(t,window.getComputedStyle(e).direction),l=o*r,a=n.target,s=e.contains(a),c=!1,d=l>0,f=0,p=0;do{if(!a)break;var v=h2(t,a),y=v[0],h=v[1],g=v[2],b=h-g-o*y;(y||b)&&f2(t,a)&&(f+=b,p+=y);var C=a.parentNode;a=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!s&&a!==document.body||s&&(e.contains(a)||e===a));return(d&&Math.abs(f)<1||!d&&Math.abs(p)<1)&&(c=!0),c},yr=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Ks=function(t){return[t.deltaX,t.deltaY]},js=function(t){return t&&"current"in t?t.current:t},w4=function(t,e){return t[0]===e[0]&&t[1]===e[1]},x4=function(t){return`
82
82
  .block-interactivity-`.concat(t,` {pointer-events: none;}
83
83
  .allow-interactivity-`).concat(t,` {pointer-events: all;}
84
- `)},E4=0,Zt=[];function $4(t){var e=D.useRef([]),n=D.useRef([0,0]),r=D.useRef(),i=D.useState(E4++)[0],o=D.useState(u2)[0],l=D.useRef(t);D.useEffect(function(){l.current=t},[t]),D.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var h=Mh([t.lockRef.current],(t.shards||[]).map(js),!0).filter(Boolean);return h.forEach(function(g){return g.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),h.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var a=D.useCallback(function(h,g){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!l.current.allowPinchZoom;var m=yr(h),C=n.current,S="deltaX"in h?h.deltaX:C[0]-m[0],P="deltaY"in h?h.deltaY:C[1]-m[1],$,w=h.target,E=Math.abs(S)>Math.abs(P)?"h":"v";if("touches"in h&&E==="h"&&w.type==="range")return!1;var R=Fs(E,w);if(!R)return!0;if(R?$=E:($=E==="v"?"h":"v",R=Fs(E,w)),!R)return!1;if(!r.current&&"changedTouches"in h&&(S||P)&&(r.current=$),!$)return!0;var F=r.current||$;return S4(F,g,h,F==="h"?S:P)},[]),s=D.useCallback(function(h){var g=h;if(!(!Zt.length||Zt[Zt.length-1]!==o)){var m="deltaY"in g?Ks(g):yr(g),C=e.current.filter(function($){return $.name===g.type&&($.target===g.target||g.target===$.shadowParent)&&x4($.delta,m)})[0];if(C&&C.should){g.cancelable&&g.preventDefault();return}if(!C){var S=(l.current.shards||[]).map(js).filter(Boolean).filter(function($){return $.contains(g.target)}),P=S.length>0?a(g,S[0]):!l.current.noIsolation;P&&g.cancelable&&g.preventDefault()}}},[]),c=D.useCallback(function(h,g,m,C){var S={name:h,delta:g,target:m,should:C,shadowParent:P4(m)};e.current.push(S),setTimeout(function(){e.current=e.current.filter(function(P){return P!==S})},1)},[]),d=D.useCallback(function(h){n.current=yr(h),r.current=void 0},[]),f=D.useCallback(function(h){c(h.type,Ks(h),h.target,a(h,t.lockRef.current))},[]),p=D.useCallback(function(h){c(h.type,yr(h),h.target,a(h,t.lockRef.current))},[]);D.useEffect(function(){return Zt.push(o),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,Wt),document.addEventListener("touchmove",s,Wt),document.addEventListener("touchstart",d,Wt),function(){Zt=Zt.filter(function(h){return h!==o}),document.removeEventListener("wheel",s,Wt),document.removeEventListener("touchmove",s,Wt),document.removeEventListener("touchstart",d,Wt)}},[]);var v=t.removeScrollBar,b=t.inert;return D.createElement(D.Fragment,null,b?D.createElement(o,{styles:w4(i)}):null,v?D.createElement(p4,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function P4(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const D4=t4(c2,$4);var p2=D.forwardRef(function(t,e){return D.createElement(Pi,Ze({},t,{ref:e,sideCar:D4}))});p2.classNames=Pi.classNames;var T4=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Gt=new WeakMap,br=new WeakMap,Cr={},so=0,v2=function(t){return t&&(t.host||v2(t.parentNode))},_4=function(t,e){return e.map(function(n){if(t.contains(n))return n;var r=v2(n);return r&&t.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",t,". Doing nothing"),null)}).filter(function(n){return!!n})},I4=function(t,e,n,r){var i=_4(e,Array.isArray(t)?t:[t]);Cr[n]||(Cr[n]=new WeakMap);var o=Cr[n],l=[],a=new Set,s=new Set(i),c=function(f){!f||a.has(f)||(a.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(a.has(p))d(p);else try{var v=p.getAttribute(r),b=v!==null&&v!=="false",h=(Gt.get(p)||0)+1,g=(o.get(p)||0)+1;Gt.set(p,h),o.set(p,g),l.push(p),h===1&&b&&br.set(p,!0),g===1&&p.setAttribute(n,"true"),b||p.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",p,m)}})};return d(e),a.clear(),so++,function(){l.forEach(function(f){var p=Gt.get(f)-1,v=o.get(f)-1;Gt.set(f,p),o.set(f,v),p||(br.has(f)||f.removeAttribute(r),br.delete(f)),v||f.removeAttribute(n)}),so--,so||(Gt=new WeakMap,Gt=new WeakMap,br=new WeakMap,Cr={})}},O4=function(t,e,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),i=T4(t);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),I4(r,i,n,"aria-hidden")):function(){return null}},Di="Dialog",[g2,Vb]=fg(Di),[k4,ze]=g2(Di),m2=t=>{const{__scopeDialog:e,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:l=!0}=t,a=D.useRef(null),s=D.useRef(null),[c,d]=mg({prop:r,defaultProp:i??!1,onChange:o,caller:Di});return y.jsx(k4,{scope:e,triggerRef:a,contentRef:s,contentId:et(),titleId:et(),descriptionId:et(),open:c,onOpenChange:d,onOpenToggle:D.useCallback(()=>d(f=>!f),[d]),modal:l,children:n})};m2.displayName=Di;var y2="DialogTrigger",N4=D.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=ze(y2,n),o=Ht(e,i.triggerRef);return y.jsx(me.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Xl(i.open),...r,ref:o,onClick:ht(t.onClick,i.onOpenToggle)})});N4.displayName=y2;var ql="DialogPortal",[R4,b2]=g2(ql,{forceMount:void 0}),C2=t=>{const{__scopeDialog:e,forceMount:n,children:r,container:i}=t,o=ze(ql,e);return y.jsx(R4,{scope:e,forceMount:n,children:D.Children.map(r,l=>y.jsx($i,{present:n||o.open,children:y.jsx(a2,{asChild:!0,container:i,children:l})}))})};C2.displayName=ql;var Jr="DialogOverlay",S2=D.forwardRef((t,e)=>{const n=b2(Jr,t.__scopeDialog),{forceMount:r=n.forceMount,...i}=t,o=ze(Jr,t.__scopeDialog);return o.modal?y.jsx($i,{present:r||o.open,children:y.jsx(L4,{...i,ref:e})}):null});S2.displayName=Jr;var M4=t2("DialogOverlay.RemoveScroll"),L4=D.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=ze(Jr,n);return y.jsx(p2,{as:M4,allowPinchZoom:!0,shards:[i.contentRef],children:y.jsx(me.div,{"data-state":Xl(i.open),...r,ref:e,style:{pointerEvents:"auto",...r.style}})})}),Nt="DialogContent",x2=D.forwardRef((t,e)=>{const n=b2(Nt,t.__scopeDialog),{forceMount:r=n.forceMount,...i}=t,o=ze(Nt,t.__scopeDialog);return y.jsx($i,{present:r||o.open,children:o.modal?y.jsx(A4,{...i,ref:e}):y.jsx(F4,{...i,ref:e})})});x2.displayName=Nt;var A4=D.forwardRef((t,e)=>{const n=ze(Nt,t.__scopeDialog),r=D.useRef(null),i=Ht(e,n.contentRef,r);return D.useEffect(()=>{const o=r.current;if(o)return O4(o)},[]),y.jsx(w2,{...t,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ht(t.onCloseAutoFocus,o=>{var l;o.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:ht(t.onPointerDownOutside,o=>{const l=o.detail.originalEvent,a=l.button===0&&l.ctrlKey===!0;(l.button===2||a)&&o.preventDefault()}),onFocusOutside:ht(t.onFocusOutside,o=>o.preventDefault())})}),F4=D.forwardRef((t,e)=>{const n=ze(Nt,t.__scopeDialog),r=D.useRef(!1),i=D.useRef(!1);return y.jsx(w2,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var l,a;(l=t.onCloseAutoFocus)==null||l.call(t,o),o.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{var s,c;(s=t.onInteractOutside)==null||s.call(t,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const l=o.target;((c=n.triggerRef.current)==null?void 0:c.contains(l))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),w2=D.forwardRef((t,e)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...l}=t,a=ze(Nt,n),s=D.useRef(null),c=Ht(e,s);return Wg(),y.jsxs(y.Fragment,{children:[y.jsx(o2,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:y.jsx(r2,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Xl(a.open),...l,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),y.jsxs(y.Fragment,{children:[y.jsx(V4,{titleId:a.titleId}),y.jsx(B4,{contentRef:s,descriptionId:a.descriptionId})]})]})}),Yl="DialogTitle",K4=D.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=ze(Yl,n);return y.jsx(me.h2,{id:i.titleId,...r,ref:e})});K4.displayName=Yl;var E2="DialogDescription",j4=D.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=ze(E2,n);return y.jsx(me.p,{id:i.descriptionId,...r,ref:e})});j4.displayName=E2;var $2="DialogClose",H4=D.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=ze($2,n);return y.jsx(me.button,{type:"button",...r,ref:e,onClick:ht(t.onClick,()=>i.onOpenChange(!1))})});H4.displayName=$2;function Xl(t){return t?"open":"closed"}var P2="DialogTitleWarning",[zb,D2]=dg(P2,{contentName:Nt,titleName:Yl,docsSlug:"dialog"}),V4=({titleId:t})=>{const e=D2(P2),n=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
84
+ `)},E4=0,Zt=[];function $4(t){var e=D.useRef([]),n=D.useRef([0,0]),r=D.useRef(),i=D.useState(E4++)[0],o=D.useState(u2)[0],l=D.useRef(t);D.useEffect(function(){l.current=t},[t]),D.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var h=Mh([t.lockRef.current],(t.shards||[]).map(js),!0).filter(Boolean);return h.forEach(function(g){return g.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),h.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var a=D.useCallback(function(h,g){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!l.current.allowPinchZoom;var b=yr(h),C=n.current,S="deltaX"in h?h.deltaX:C[0]-b[0],P="deltaY"in h?h.deltaY:C[1]-b[1],E,x=h.target,$=Math.abs(S)>Math.abs(P)?"h":"v";if("touches"in h&&$==="h"&&x.type==="range")return!1;var N=Fs($,x);if(!N)return!0;if(N?E=$:(E=$==="v"?"h":"v",N=Fs($,x)),!N)return!1;if(!r.current&&"changedTouches"in h&&(S||P)&&(r.current=E),!E)return!0;var F=r.current||E;return S4(F,g,h,F==="h"?S:P)},[]),s=D.useCallback(function(h){var g=h;if(!(!Zt.length||Zt[Zt.length-1]!==o)){var b="deltaY"in g?Ks(g):yr(g),C=e.current.filter(function(E){return E.name===g.type&&(E.target===g.target||g.target===E.shadowParent)&&w4(E.delta,b)})[0];if(C&&C.should){g.cancelable&&g.preventDefault();return}if(!C){var S=(l.current.shards||[]).map(js).filter(Boolean).filter(function(E){return E.contains(g.target)}),P=S.length>0?a(g,S[0]):!l.current.noIsolation;P&&g.cancelable&&g.preventDefault()}}},[]),c=D.useCallback(function(h,g,b,C){var S={name:h,delta:g,target:b,should:C,shadowParent:P4(b)};e.current.push(S),setTimeout(function(){e.current=e.current.filter(function(P){return P!==S})},1)},[]),d=D.useCallback(function(h){n.current=yr(h),r.current=void 0},[]),f=D.useCallback(function(h){c(h.type,Ks(h),h.target,a(h,t.lockRef.current))},[]),p=D.useCallback(function(h){c(h.type,yr(h),h.target,a(h,t.lockRef.current))},[]);D.useEffect(function(){return Zt.push(o),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,Wt),document.addEventListener("touchmove",s,Wt),document.addEventListener("touchstart",d,Wt),function(){Zt=Zt.filter(function(h){return h!==o}),document.removeEventListener("wheel",s,Wt),document.removeEventListener("touchmove",s,Wt),document.removeEventListener("touchstart",d,Wt)}},[]);var v=t.removeScrollBar,y=t.inert;return D.createElement(D.Fragment,null,y?D.createElement(o,{styles:x4(i)}):null,v?D.createElement(p4,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function P4(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const D4=t4(c2,$4);var p2=D.forwardRef(function(t,e){return D.createElement(Pi,Ze({},t,{ref:e,sideCar:D4}))});p2.classNames=Pi.classNames;var T4=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Gt=new WeakMap,br=new WeakMap,Cr={},so=0,v2=function(t){return t&&(t.host||v2(t.parentNode))},_4=function(t,e){return e.map(function(n){if(t.contains(n))return n;var r=v2(n);return r&&t.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",t,". Doing nothing"),null)}).filter(function(n){return!!n})},I4=function(t,e,n,r){var i=_4(e,Array.isArray(t)?t:[t]);Cr[n]||(Cr[n]=new WeakMap);var o=Cr[n],l=[],a=new Set,s=new Set(i),c=function(f){!f||a.has(f)||(a.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(a.has(p))d(p);else try{var v=p.getAttribute(r),y=v!==null&&v!=="false",h=(Gt.get(p)||0)+1,g=(o.get(p)||0)+1;Gt.set(p,h),o.set(p,g),l.push(p),h===1&&y&&br.set(p,!0),g===1&&p.setAttribute(n,"true"),y||p.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",p,b)}})};return d(e),a.clear(),so++,function(){l.forEach(function(f){var p=Gt.get(f)-1,v=o.get(f)-1;Gt.set(f,p),o.set(f,v),p||(br.has(f)||f.removeAttribute(r),br.delete(f)),v||f.removeAttribute(n)}),so--,so||(Gt=new WeakMap,Gt=new WeakMap,br=new WeakMap,Cr={})}},O4=function(t,e,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),i=T4(t);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),I4(r,i,n,"aria-hidden")):function(){return null}},Di="Dialog",[g2,Bb]=fg(Di),[k4,ze]=g2(Di),m2=t=>{const{__scopeDialog:e,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:l=!0}=t,a=D.useRef(null),s=D.useRef(null),[c,d]=mg({prop:r,defaultProp:i??!1,onChange:o,caller:Di});return m.jsx(k4,{scope:e,triggerRef:a,contentRef:s,contentId:et(),titleId:et(),descriptionId:et(),open:c,onOpenChange:d,onOpenToggle:D.useCallback(()=>d(f=>!f),[d]),modal:l,children:n})};m2.displayName=Di;var y2="DialogTrigger",N4=D.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=ze(y2,n),o=Ht(e,i.triggerRef);return m.jsx(me.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Xl(i.open),...r,ref:o,onClick:ht(t.onClick,i.onOpenToggle)})});N4.displayName=y2;var ql="DialogPortal",[R4,b2]=g2(ql,{forceMount:void 0}),C2=t=>{const{__scopeDialog:e,forceMount:n,children:r,container:i}=t,o=ze(ql,e);return m.jsx(R4,{scope:e,forceMount:n,children:D.Children.map(r,l=>m.jsx($i,{present:n||o.open,children:m.jsx(a2,{asChild:!0,container:i,children:l})}))})};C2.displayName=ql;var Jr="DialogOverlay",S2=D.forwardRef((t,e)=>{const n=b2(Jr,t.__scopeDialog),{forceMount:r=n.forceMount,...i}=t,o=ze(Jr,t.__scopeDialog);return o.modal?m.jsx($i,{present:r||o.open,children:m.jsx(L4,{...i,ref:e})}):null});S2.displayName=Jr;var M4=t2("DialogOverlay.RemoveScroll"),L4=D.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=ze(Jr,n);return m.jsx(p2,{as:M4,allowPinchZoom:!0,shards:[i.contentRef],children:m.jsx(me.div,{"data-state":Xl(i.open),...r,ref:e,style:{pointerEvents:"auto",...r.style}})})}),Nt="DialogContent",w2=D.forwardRef((t,e)=>{const n=b2(Nt,t.__scopeDialog),{forceMount:r=n.forceMount,...i}=t,o=ze(Nt,t.__scopeDialog);return m.jsx($i,{present:r||o.open,children:o.modal?m.jsx(A4,{...i,ref:e}):m.jsx(F4,{...i,ref:e})})});w2.displayName=Nt;var A4=D.forwardRef((t,e)=>{const n=ze(Nt,t.__scopeDialog),r=D.useRef(null),i=Ht(e,n.contentRef,r);return D.useEffect(()=>{const o=r.current;if(o)return O4(o)},[]),m.jsx(x2,{...t,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ht(t.onCloseAutoFocus,o=>{var l;o.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:ht(t.onPointerDownOutside,o=>{const l=o.detail.originalEvent,a=l.button===0&&l.ctrlKey===!0;(l.button===2||a)&&o.preventDefault()}),onFocusOutside:ht(t.onFocusOutside,o=>o.preventDefault())})}),F4=D.forwardRef((t,e)=>{const n=ze(Nt,t.__scopeDialog),r=D.useRef(!1),i=D.useRef(!1);return m.jsx(x2,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var l,a;(l=t.onCloseAutoFocus)==null||l.call(t,o),o.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{var s,c;(s=t.onInteractOutside)==null||s.call(t,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const l=o.target;((c=n.triggerRef.current)==null?void 0:c.contains(l))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),x2=D.forwardRef((t,e)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...l}=t,a=ze(Nt,n),s=D.useRef(null),c=Ht(e,s);return Wg(),m.jsxs(m.Fragment,{children:[m.jsx(o2,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:m.jsx(r2,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Xl(a.open),...l,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(V4,{titleId:a.titleId}),m.jsx(B4,{contentRef:s,descriptionId:a.descriptionId})]})]})}),Yl="DialogTitle",K4=D.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=ze(Yl,n);return m.jsx(me.h2,{id:i.titleId,...r,ref:e})});K4.displayName=Yl;var E2="DialogDescription",j4=D.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=ze(E2,n);return m.jsx(me.p,{id:i.descriptionId,...r,ref:e})});j4.displayName=E2;var $2="DialogClose",H4=D.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=ze($2,n);return m.jsx(me.button,{type:"button",...r,ref:e,onClick:ht(t.onClick,()=>i.onOpenChange(!1))})});H4.displayName=$2;function Xl(t){return t?"open":"closed"}var P2="DialogTitleWarning",[Ub,D2]=dg(P2,{contentName:Nt,titleName:Yl,docsSlug:"dialog"}),V4=({titleId:t})=>{const e=D2(P2),n=`\`${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 D.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},z4="DialogDescriptionWarning",B4=({contentRef:t,descriptionId:e})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${D2(z4).contentName}}.`;return D.useEffect(()=>{var o;const i=(o=t.current)==null?void 0:o.getAttribute("aria-describedby");e&&i&&(document.getElementById(e)||console.warn(r))},[r,t,e]),null},U4=m2,W4=C2,Z4=S2,G4=x2,On='[cmdk-group=""]',co='[cmdk-group-items=""]',q4='[cmdk-group-heading=""]',Jl='[cmdk-item=""]',Hs=`${Jl}:not([aria-disabled="true"])`,Qo="cmdk-item-select",bt="data-value",Y4=(t,e,n)=>ug(t,e,n),T2=D.createContext(void 0),ir=()=>D.useContext(T2),_2=D.createContext(void 0),Ql=()=>D.useContext(_2),I2=D.createContext(void 0),O2=D.forwardRef((t,e)=>{let n=rn(()=>{var T,O;return{search:"",value:(O=(T=t.value)!=null?T:t.defaultValue)!=null?O:"",filtered:{count:0,items:new Map,groups:new Set}}}),r=rn(()=>new Set),i=rn(()=>new Map),o=rn(()=>new Map),l=rn(()=>new Set),a=k2(t),{label:s,children:c,value:d,onValueChange:f,filter:p,shouldFilter:v,loop:b,disablePointerSelection:h=!1,vimBindings:g=!0,...m}=t,C=et(),S=et(),P=et(),$=D.useRef(null),w=a9();Rt(()=>{if(d!==void 0){let T=d.trim();n.current.value=T,E.emit()}},[d]),Rt(()=>{w(6,U)},[]);let E=D.useMemo(()=>({subscribe:T=>(l.current.add(T),()=>l.current.delete(T)),snapshot:()=>n.current,setState:(T,O,H)=>{var K,j,z;if(!Object.is(n.current[T],O)){if(n.current[T]=O,T==="search")M(),V(),w(1,x);else if(T==="value"&&(H||w(5,U),((K=a.current)==null?void 0:K.value)!==void 0)){let W=O??"";(z=(j=a.current).onValueChange)==null||z.call(j,W);return}E.emit()}},emit:()=>{l.current.forEach(T=>T())}}),[]),R=D.useMemo(()=>({value:(T,O,H)=>{var K;O!==((K=o.current.get(T))==null?void 0:K.value)&&(o.current.set(T,{value:O,keywords:H}),n.current.filtered.items.set(T,F(O,H)),w(2,()=>{V(),E.emit()}))},item:(T,O)=>(r.current.add(T),O&&(i.current.has(O)?i.current.get(O).add(T):i.current.set(O,new Set([T]))),w(3,()=>{M(),V(),n.current.value||x(),E.emit()}),()=>{o.current.delete(T),r.current.delete(T),n.current.filtered.items.delete(T);let H=A();w(4,()=>{M(),(H==null?void 0:H.getAttribute("id"))===T&&x(),E.emit()})}),group:T=>(i.current.has(T)||i.current.set(T,new Set),()=>{o.current.delete(T),i.current.delete(T)}),filter:()=>a.current.shouldFilter,label:s||t["aria-label"],getDisablePointerSelection:()=>a.current.disablePointerSelection,listId:C,inputId:P,labelId:S,listInnerRef:$}),[]);function F(T,O){var H,K;let j=(K=(H=a.current)==null?void 0:H.filter)!=null?K:Y4;return T?j(T,n.current.search,O):0}function V(){if(!n.current.search||a.current.shouldFilter===!1)return;let T=n.current.filtered.items,O=[];n.current.filtered.groups.forEach(K=>{let j=i.current.get(K),z=0;j.forEach(W=>{let q=T.get(W);z=Math.max(q,z)}),O.push([K,z])});let H=$.current;B().sort((K,j)=>{var z,W;let q=K.getAttribute("id"),X=j.getAttribute("id");return((z=T.get(X))!=null?z:0)-((W=T.get(q))!=null?W:0)}).forEach(K=>{let j=K.closest(co);j?j.appendChild(K.parentElement===j?K:K.closest(`${co} > *`)):H.appendChild(K.parentElement===H?K:K.closest(`${co} > *`))}),O.sort((K,j)=>j[1]-K[1]).forEach(K=>{var j;let z=(j=$.current)==null?void 0:j.querySelector(`${On}[${bt}="${encodeURIComponent(K[0])}"]`);z==null||z.parentElement.appendChild(z)})}function x(){let T=B().find(H=>H.getAttribute("aria-disabled")!=="true"),O=T==null?void 0:T.getAttribute(bt);E.setState("value",O||void 0)}function M(){var T,O,H,K;if(!n.current.search||a.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let j=0;for(let z of r.current){let W=(O=(T=o.current.get(z))==null?void 0:T.value)!=null?O:"",q=(K=(H=o.current.get(z))==null?void 0:H.keywords)!=null?K:[],X=F(W,q);n.current.filtered.items.set(z,X),X>0&&j++}for(let[z,W]of i.current)for(let q of W)if(n.current.filtered.items.get(q)>0){n.current.filtered.groups.add(z);break}n.current.filtered.count=j}function U(){var T,O,H;let K=A();K&&(((T=K.parentElement)==null?void 0:T.firstChild)===K&&((H=(O=K.closest(On))==null?void 0:O.querySelector(q4))==null||H.scrollIntoView({block:"nearest"})),K.scrollIntoView({block:"nearest"}))}function A(){var T;return(T=$.current)==null?void 0:T.querySelector(`${Jl}[aria-selected="true"]`)}function B(){var T;return Array.from(((T=$.current)==null?void 0:T.querySelectorAll(Hs))||[])}function _(T){let O=B()[T];O&&E.setState("value",O.getAttribute(bt))}function N(T){var O;let H=A(),K=B(),j=K.findIndex(W=>W===H),z=K[j+T];(O=a.current)!=null&&O.loop&&(z=j+T<0?K[K.length-1]:j+T===K.length?K[0]:K[j+T]),z&&E.setState("value",z.getAttribute(bt))}function k(T){let O=A(),H=O==null?void 0:O.closest(On),K;for(;H&&!K;)H=T>0?o9(H,On):l9(H,On),K=H==null?void 0:H.querySelector(Hs);K?E.setState("value",K.getAttribute(bt)):N(T)}let Z=()=>_(B().length-1),I=T=>{T.preventDefault(),T.metaKey?Z():T.altKey?k(1):N(1)},L=T=>{T.preventDefault(),T.metaKey?_(0):T.altKey?k(-1):N(-1)};return D.createElement(me.div,{ref:e,tabIndex:-1,...m,"cmdk-root":"",onKeyDown:T=>{var O;if((O=m.onKeyDown)==null||O.call(m,T),!T.defaultPrevented)switch(T.key){case"n":case"j":{g&&T.ctrlKey&&I(T);break}case"ArrowDown":{I(T);break}case"p":case"k":{g&&T.ctrlKey&&L(T);break}case"ArrowUp":{L(T);break}case"Home":{T.preventDefault(),_(0);break}case"End":{T.preventDefault(),Z();break}case"Enter":if(!T.nativeEvent.isComposing&&T.keyCode!==229){T.preventDefault();let H=A();if(H){let K=new Event(Qo);H.dispatchEvent(K)}}}}},D.createElement("label",{"cmdk-label":"",htmlFor:R.inputId,id:R.labelId,style:c9},s),Ti(t,T=>D.createElement(_2.Provider,{value:E},D.createElement(T2.Provider,{value:R},T))))}),X4=D.forwardRef((t,e)=>{var n,r;let i=et(),o=D.useRef(null),l=D.useContext(I2),a=ir(),s=k2(t),c=(r=(n=s.current)==null?void 0:n.forceMount)!=null?r:l==null?void 0:l.forceMount;Rt(()=>{if(!c)return a.item(i,l==null?void 0:l.id)},[c]);let d=N2(i,o,[t.value,t.children,o],t.keywords),f=Ql(),p=Mt(w=>w.value&&w.value===d.current),v=Mt(w=>c||a.filter()===!1?!0:w.search?w.filtered.items.get(i)>0:!0);D.useEffect(()=>{let w=o.current;if(!(!w||t.disabled))return w.addEventListener(Qo,b),()=>w.removeEventListener(Qo,b)},[v,t.onSelect,t.disabled]);function b(){var w,E;h(),(E=(w=s.current).onSelect)==null||E.call(w,d.current)}function h(){f.setState("value",d.current,!0)}if(!v)return null;let{disabled:g,value:m,onSelect:C,forceMount:S,keywords:P,...$}=t;return D.createElement(me.div,{ref:Qn([o,e]),...$,id:i,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!p,"data-disabled":!!g,"data-selected":!!p,onPointerMove:g||a.getDisablePointerSelection()?void 0:h,onClick:g?void 0:b},t.children)}),J4=D.forwardRef((t,e)=>{let{heading:n,children:r,forceMount:i,...o}=t,l=et(),a=D.useRef(null),s=D.useRef(null),c=et(),d=ir(),f=Mt(v=>i||d.filter()===!1?!0:v.search?v.filtered.groups.has(l):!0);Rt(()=>d.group(l),[]),N2(l,a,[t.value,t.heading,s]);let p=D.useMemo(()=>({id:l,forceMount:i}),[i]);return D.createElement(me.div,{ref:Qn([a,e]),...o,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},n&&D.createElement("div",{ref:s,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),Ti(t,v=>D.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},D.createElement(I2.Provider,{value:p},v))))}),Q4=D.forwardRef((t,e)=>{let{alwaysRender:n,...r}=t,i=D.useRef(null),o=Mt(l=>!l.search);return!n&&!o?null:D.createElement(me.div,{ref:Qn([i,e]),...r,"cmdk-separator":"",role:"separator"})}),e9=D.forwardRef((t,e)=>{let{onValueChange:n,...r}=t,i=t.value!=null,o=Ql(),l=Mt(d=>d.search),a=Mt(d=>d.value),s=ir(),c=D.useMemo(()=>{var d;let f=(d=s.listInnerRef.current)==null?void 0:d.querySelector(`${Jl}[${bt}="${encodeURIComponent(a)}"]`);return f==null?void 0:f.getAttribute("id")},[]);return D.useEffect(()=>{t.value!=null&&o.setState("search",t.value)},[t.value]),D.createElement(me.input,{ref:e,...r,"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:l,onChange:d=>{i||o.setState("search",d.target.value),n==null||n(d.target.value)}})}),t9=D.forwardRef((t,e)=>{let{children:n,label:r="Suggestions",...i}=t,o=D.useRef(null),l=D.useRef(null),a=ir();return D.useEffect(()=>{if(l.current&&o.current){let s=l.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)}}},[]),D.createElement(me.div,{ref:Qn([o,e]),...i,"cmdk-list":"",role:"listbox","aria-label":r,id:a.listId},Ti(t,s=>D.createElement("div",{ref:Qn([l,a.listInnerRef]),"cmdk-list-sizer":""},s)))}),n9=D.forwardRef((t,e)=>{let{open:n,onOpenChange:r,overlayClassName:i,contentClassName:o,container:l,...a}=t;return D.createElement(U4,{open:n,onOpenChange:r},D.createElement(W4,{container:l},D.createElement(Z4,{"cmdk-overlay":"",className:i}),D.createElement(G4,{"aria-label":t.label,"cmdk-dialog":"",className:o},D.createElement(O2,{ref:e,...a}))))}),r9=D.forwardRef((t,e)=>Mt(n=>n.filtered.count===0)?D.createElement(me.div,{ref:e,...t,"cmdk-empty":"",role:"presentation"}):null),i9=D.forwardRef((t,e)=>{let{progress:n,children:r,label:i="Loading...",...o}=t;return D.createElement(me.div,{ref:e,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},Ti(t,l=>D.createElement("div",{"aria-hidden":!0},l)))}),Jn=Object.assign(O2,{List:t9,Item:X4,Input:e9,Group:J4,Separator:Q4,Dialog:n9,Empty:r9,Loading:i9});function o9(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return n;n=n.nextElementSibling}}function l9(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return n;n=n.previousElementSibling}}function k2(t){let e=D.useRef(t);return Rt(()=>{e.current=t}),e}var Rt=typeof window>"u"?D.useEffect:D.useLayoutEffect;function rn(t){let e=D.useRef();return e.current===void 0&&(e.current=t()),e}function Qn(t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}function Mt(t){let e=Ql(),n=()=>t(e.snapshot());return Dl.useSyncExternalStore(e.subscribe,n,n)}function N2(t,e,n,r=[]){let i=D.useRef(),o=ir();return Rt(()=>{var l;let a=(()=>{var c;for(let d of n){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=r.map(c=>c.trim());o.value(t,a,s),(l=e.current)==null||l.setAttribute(bt,a),i.current=a}),i}var a9=()=>{let[t,e]=D.useState(),n=rn(()=>new Map);return Rt(()=>{n.current.forEach(r=>r()),n.current=new Map},[t]),(r,i)=>{n.current.set(r,i),e({})}};function s9(t){let e=t.type;return typeof e=="function"?e(t.props):"render"in e?e.render(t.props):t}function Ti({asChild:t,children:e},n){return t&&D.isValidElement(e)?D.cloneElement(s9(e),{ref:e.ref},n(e.props.children)):n(e)}var c9={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const R2=({withPadding:t=!0,direction:e,width:n="thin",size:r})=>y.jsx("div",{style:{"--size":r},className:Te("c__separator",`c__separator--${e}`,`c__separator--${n}`,{"with-padding":t})}),el=t=>y.jsx(R2,{direction:"horizontal",...t}),M2=({loading:t,inputValue:e,onFilter:n,placeholder:r,children:i,withSeparator:o=!0})=>{const{t:l}=ne.useCunningham();return i?y.jsxs(y.Fragment,{children:[i,o&&y.jsx(el,{})]}):y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"quick-search-input-container",children:[!t&&y.jsx("span",{className:"material-icons",children:"search"}),t&&y.jsx("div",{children:y.jsx(Gl,{size:"md"})}),y.jsx(Jn.Input,{autoFocus:!0,"aria-label":l("Quick search input"),onClick:a=>{a.stopPropagation()},role:"combobox",value:e,placeholder:r,onValueChange:n})]}),o&&y.jsx(el,{withPadding:!0})]})},u9=t=>{let e=!1;return u.Children.forEach(t,n=>{e=e||!!n}),e},L2=({onFilter:t,inputContent:e,inputValue:n,loading:r,showInput:i=!0,label:o,placeholder:l,children:a})=>{const s=u.useRef(null);return y.jsx(y.Fragment,{children:y.jsx("div",{className:"quick-search-container",children:y.jsxs(Jn,{label:o,shouldFilter:!1,ref:s,children:[i&&y.jsx(M2,{loading:r,withSeparator:u9(a),inputValue:n,onFilter:t,placeholder:l,children:e}),y.jsx(Jn.List,{children:y.jsx("div",{children:a})})]})})})},Ir=({children:t,onSelect:e,id:n})=>y.jsx(Jn.Item,{value:n,onSelect:e,children:t}),A2=({group:t,onSelect:e,renderElement:n})=>{var r,i;return!t.showWhenEmpty&&t.elements.length===0?null:y.jsx("div",{className:"pt-base",children:y.jsxs(Jn.Group,{heading:t.groupName,forceMount:!1,children:[(r=t.startActions)==null?void 0:r.map((o,l)=>y.jsx(Ir,{onSelect:o.onSelect,children:o.content},`${t.groupName}-action-${l}`)),t.elements.map((o,l)=>y.jsx(Ir,{id:`${t.groupName}-element-${l}`,onSelect:()=>{e==null||e(o)},children:n==null?void 0:n(o)},`${t.groupName}-element-${l}`)),(i=t.endActions)==null?void 0:i.map((o,l)=>y.jsx(Ir,{onSelect:o.onSelect,children:o.content},`${t.groupName}-action-${l}`)),t.emptyString&&t.elements.length===0&&y.jsx("span",{className:"ml-b clr-greyscale-500",children:t.emptyString})]},t.groupName)})},_i=({alwaysShowRight:t=!1,left:e,right:n})=>{const{isDesktop:r}=xn();return y.jsxs("div",{className:"c__quick-search-item-template",children:[y.jsx("div",{className:"c__quick-search-item-template__left",children:e}),r&&n&&y.jsx("div",{className:Te("c__quick-search-item-template__right",{"always-show-right":t,"show-right-on-focus":!t}),children:n})]})},d9=t=>y.jsx(R2,{direction:"vertical",...t}),f9=({tabs:t,defaultSelectedTab:e,fullWidth:n=!1})=>t.length===0?null:y.jsx("div",{className:Te("c__tabs",{"c__tabs__full-width":n}),children:y.jsxs(Yp,{defaultSelectedKey:e,children:[y.jsx(Jp,{"aria-label":"History of Ancient Rome",children:t.map(r=>y.jsxs(ev,{id:r.id,children:[r.icon&&y.jsx("span",{className:"material-icons",children:r.icon}),r.label]},r.id))}),t.map(r=>y.jsx(tv,{id:r.id,children:r.content},r.id))]})}),F2=u.createContext(null);function Ie(){const t=u.useContext(F2);if(t===null)throw new Error("No Tree Api Provided");return t}const K2=u.createContext(null);function h9(){const t=u.useContext(K2);if(t===null)throw new Error("Provide a NodesContext");return t}const j2=u.createContext(null);function p9(){const t=u.useContext(j2);if(t===null)throw new Error("Provide a DnDContext");return t}const H2=u.createContext(0);function V2(){u.useContext(H2)}function Or(t,e,n){return Math.max(Math.min(t,n),e)}function z2(t){return t&&t.isLeaf}function B2(t){return t&&t.isInternal&&!t.isOpen}function U2(t){var e;return t&&t.isOpen&&!(!((e=t.children)===null||e===void 0)&&e.length)}const W2=(t,e)=>{let n=t;for(;n;){if(n.id===e.id)return!0;n=n.parent}return!1},Z2=t=>{if(!t.parent)throw Error("Node does not have a parent");return t.parent.children.findIndex(e=>e.id===t.id)};function v9(){}function ea(t,e){if(!t)return null;if(t.id===e)return t;if(t.children)for(let n of t.children){const r=ea(n,e);if(r)return r}return null}function Qr(t,e){if(e(t),t.children)for(let n of t.children)Qr(n,e)}function G2(t){const e=Y2(t);let n;for(let r=0;r<e.length;++r)if(e[r]===t){n=g9(e,r);break}n==null||n.focus()}function q2(t){const e=Y2(t);let n;for(let r=0;r<e.length;++r)if(e[r]===t){n=m9(e,r);break}n==null||n.focus()}function g9(t,e){return e+1<t.length?t[e+1]:t[0]}function m9(t,e){return e-1>=0?t[e-1]:t[t.length-1]}function Y2(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 Kn(t,e){return typeof e=="boolean"?e:typeof e=="string"?t[e]:e(t)}function X2(t){return t===null?null:Ct(t)}function Ct(t){return typeof t=="string"?t:t.id}function y9(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}function J2(t,...e){if(t)return t(...e)}function Q2(t){return new Promise((e,n)=>{let r=0;function i(){r+=1,r===100&&n(),t()?e():setTimeout(i,10)}i()})}function ef(t){var e,n;const r=t.focusedNode;return r?r.isOpen?0:r.parent?r.childIndex+1:0:(n=(e=t.root.children)===null||e===void 0?void 0:e.length)!==null&&n!==void 0?n:0}function tf(t){const e=t.focusedNode;return e?e.isOpen?e.id:e.parent&&!e.parent.isRoot?e.parent.id:null:null}const b9=Object.freeze(Object.defineProperty({__proto__:null,access:Kn,bound:Or,dfs:ea,focusNextElement:G2,focusPrevElement:q2,getInsertIndex:ef,getInsertParentId:tf,identify:Ct,identifyNull:X2,indexOf:Z2,isClosed:B2,isDescendant:W2,isItem:z2,isOpenWithEmptyChildren:U2,mergeRefs:y9,noop:v9,safeRun:J2,waitFor:Q2,walk:Qr},Symbol.toStringTag,{value:"Module"})),C9={display:"flex",alignItems:"center",zIndex:1},S9={flex:1,height:"2px",background:"#4B91E2",borderRadius:"1px"},x9={width:"4px",height:"4px",boxShadow:"0 0 0 3px #4B91E2",borderRadius:"50%"},w9=u.memo(function({top:e,left:n,indent:r}){const i={position:"absolute",pointerEvents:"none",top:e-2+"px",left:n+"px",right:r+"px"};return y.jsxs("div",{style:Object.assign(Object.assign({},C9),i),children:[y.jsx("div",{style:Object.assign({},x9)}),y.jsx("div",{style:Object.assign({},S9)})]})});function E9({node:t,attrs:e,innerRef:n,children:r}){return y.jsx("div",Object.assign({},e,{ref:n,onFocus:i=>i.stopPropagation(),onClick:t.handleClick,children:r}))}function $9(t){return y.jsxs("div",{ref:t.dragHandle,style:t.style,children:[y.jsx("span",{onClick:e=>{e.stopPropagation(),t.node.toggle()},children:t.node.isLeaf?"🌳":t.node.isOpen?"🗁":"🗀"})," ",t.node.isEditing?y.jsx(D9,Object.assign({},t)):y.jsx(P9,Object.assign({},t))]})}function P9(t){return y.jsx(y.Fragment,{children:y.jsx("span",{children:t.node.data.name})})}function D9({node:t}){const e=u.useRef();return u.useEffect(()=>{var n,r;(n=e.current)===null||n===void 0||n.focus(),(r=e.current)===null||r===void 0||r.select()},[]),y.jsx("input",{ref:e,defaultValue:t.data.name,onBlur:()=>t.reset(),onKeyDown:n=>{var r;n.key==="Escape"&&t.reset(),n.key==="Enter"&&t.submit(((r=e.current)===null||r===void 0?void 0:r.value)||"")}})}function uo(t){return{type:"EDIT",id:t}}function T9(t={id:null},e){return e.type==="EDIT"?Object.assign(Object.assign({},t),{id:e.id}):t}function qt(t){return{type:"FOCUS",id:t}}function _9(){return{type:"TREE_BLUR"}}function I9(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 ei{constructor(e){this.handleClick=n=>{n.metaKey&&!this.tree.props.disableMultiSelection?this.isSelected?this.deselect():this.selectMulti():n.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===er}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,n;const r=this.childIndex;return(n=(e=this.parent)===null||e===void 0?void 0:e.children[r+1])!==null&&n!==void 0?n:null}isAncestorOf(e){if(!e)return!1;let n=e;for(;n;){if(n.id===this.id)return!0;n=n.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 ei(Object.assign({},this))}edit(){return this.tree.edit(this)}}const er="__REACT_ARBORIST_INTERNAL_ROOT__";function Vs(t){var e;function n(o,l,a){const s=t.accessId(o),c=new ei({tree:t,data:o,level:l,parent:a,id:s,children:null,isDraggable:t.isDraggable(o),rowIndex:null}),d=t.accessChildren(o);return d&&(c.children=d.map(f=>n(f,l+1,c))),c}const r=new ei({tree:t,id:er,data:{id:er},level:-1,parent:null,children:null,isDraggable:!0,rowIndex:null}),i=(e=t.props.data)!==null&&e!==void 0?e:[];return r.children=i.map(o=>n(o,0,r)),r}const tl={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 zs(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 n=t[e.id];return Object.assign(Object.assign({},t),{[e.id]:!n})}else return e.type==="VISIBILITY_CLEAR"?{}:t}function O9(t={filtered:{},unfiltered:{}},e){return e.type.startsWith("VISIBILITY")?e.filtered?Object.assign(Object.assign({},t),{filtered:zs(t.filtered,e)}):Object.assign(Object.assign({},t),{unfiltered:zs(t.unfiltered,e)}):t}const yn=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}}},Fe={clear:()=>({type:"SELECTION_CLEAR"}),only:t=>({type:"SELECTION_ONLY",id:Ct(t)}),add:t=>({type:"SELECTION_ADD",ids:(Array.isArray(t)?t:[t]).map(Ct)}),remove:t=>({type:"SELECTION_REMOVE",ids:(Array.isArray(t)?t:[t]).map(Ct)}),set:t=>Object.assign({type:"SELECTION_SET"},t),mostRecent:t=>({type:"SELECTION_MOST_RECENT",id:t===null?null:Ct(t)}),anchor:t=>({type:"SELECTION_ANCHOR",id:t===null?null:Ct(t)})};function k9(t=yn().nodes.selection,e){const n=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(r=>n.add(r)),Object.assign(Object.assign({},t),{ids:new Set(n)}));case"SELECTION_REMOVE":return e.ids.length===0?t:(e.ids.forEach(r=>n.delete(r)),Object.assign(Object.assign({},t),{ids:new Set(n)}));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 bn={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 N9(t=yn().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 yn().dnd;case"DND_HOVERING":return Object.assign(Object.assign({},t),{parentId:e.parentId,index:e.index});default:return t}}const R9={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"},M9=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:`translate(${e}px, ${n}px)`}},L9=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:`translate(${e+10}px, ${n+10}px)`}};function nf({offset:t,mouse:e,id:n,dragIds:r,isDragging:i}){return y.jsxs(A9,{isDragging:i,children:[y.jsx(F9,{offset:t,children:y.jsx(j9,{id:n,dragIds:r})}),y.jsx(K9,{mouse:e,count:r.length})]})}const A9=u.memo(function(e){return e.isDragging?y.jsx("div",{style:R9,children:e.children}):null});function F9(t){return y.jsx("div",{className:"row preview",style:M9(t.offset),children:t.children})}function K9(t){const{count:e,mouse:n}=t;return e>1?y.jsx("div",{className:"selected-count",style:L9(n),children:e}):null}const j9=u.memo(function(e){const n=Ie(),r=n.get(e.id);return r?y.jsx(n.renderNode,{preview:!0,node:r,style:{paddingLeft:r.level*n.indent,opacity:.2,background:"transparent"},tree:n}):null});function nl(){return nl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},nl.apply(null,arguments)}function Bs(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rl(t,e){return rl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},rl(t,e)}function H9(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,rl(t,e)}var Us=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function V9(t,e){return!!(t===e||Us(t)&&Us(e))}function z9(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!V9(t[n],e[n]))return!1;return!0}function fo(t,e){e===void 0&&(e=z9);var n,r=[],i,o=!1;function l(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return o&&n===this&&e(a,r)||(i=t.apply(this,a),o=!0,n=this,r=a),i}return l}var B9=typeof performance=="object"&&typeof performance.now=="function",Ws=B9?function(){return performance.now()}:function(){return Date.now()};function Zs(t){cancelAnimationFrame(t.id)}function U9(t,e){var n=Ws();function r(){Ws()-n>=e?t.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var ho=-1;function Gs(t){if(t===void 0&&(t=!1),ho===-1||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(e),ho=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return ho}var Yt=null;function qs(t){if(t===void 0&&(t=!1),Yt===null||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?Yt="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?Yt="negative":Yt="positive-ascending"),document.body.removeChild(e),Yt}return Yt}process.env.NODE_ENV;var W9=150,Z9=function(e,n){return e},kr=null,Nr=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(kr=new WeakSet,Nr=new WeakSet);function G9(t){var e,n=t.getItemOffset,r=t.getEstimatedTotalSize,i=t.getItemSize,o=t.getOffsetForIndexAndAlignment,l=t.getStartIndexForOffset,a=t.getStopIndexForStartIndex,s=t.initInstanceProps,c=t.shouldResetStyleCacheOnItemSizeChange,d=t.validateProps;return e=function(f){H9(p,f);function p(b){var h;return h=f.call(this,b)||this,h._instanceProps=s(h.props,Bs(h)),h._outerRef=void 0,h._resetIsScrollingTimeoutId=null,h.state={instance:Bs(h),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof h.props.initialScrollOffset=="number"?h.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},h._callOnItemsRendered=void 0,h._callOnItemsRendered=fo(function(g,m,C,S){return h.props.onItemsRendered({overscanStartIndex:g,overscanStopIndex:m,visibleStartIndex:C,visibleStopIndex:S})}),h._callOnScroll=void 0,h._callOnScroll=fo(function(g,m,C){return h.props.onScroll({scrollDirection:g,scrollOffset:m,scrollUpdateWasRequested:C})}),h._getItemStyle=void 0,h._getItemStyle=function(g){var m=h.props,C=m.direction,S=m.itemSize,P=m.layout,$=h._getItemStyleCache(c&&S,c&&P,c&&C),w;if($.hasOwnProperty(g))w=$[g];else{var E=n(h.props,g,h._instanceProps),R=i(h.props,g,h._instanceProps),F=C==="horizontal"||P==="horizontal",V=C==="rtl",x=F?E:0;$[g]=w={position:"absolute",left:V?void 0:x,right:V?x:void 0,top:F?0:E,height:F?"100%":R,width:F?R:"100%"}}return w},h._getItemStyleCache=void 0,h._getItemStyleCache=fo(function(g,m,C){return{}}),h._onScrollHorizontal=function(g){var m=g.currentTarget,C=m.clientWidth,S=m.scrollLeft,P=m.scrollWidth;h.setState(function($){if($.scrollOffset===S)return null;var w=h.props.direction,E=S;if(w==="rtl")switch(qs()){case"negative":E=-S;break;case"positive-descending":E=P-C-S;break}return E=Math.max(0,Math.min(E,P-C)),{isScrolling:!0,scrollDirection:$.scrollOffset<E?"forward":"backward",scrollOffset:E,scrollUpdateWasRequested:!1}},h._resetIsScrollingDebounced)},h._onScrollVertical=function(g){var m=g.currentTarget,C=m.clientHeight,S=m.scrollHeight,P=m.scrollTop;h.setState(function($){if($.scrollOffset===P)return null;var w=Math.max(0,Math.min(P,S-C));return{isScrolling:!0,scrollDirection:$.scrollOffset<w?"forward":"backward",scrollOffset:w,scrollUpdateWasRequested:!1}},h._resetIsScrollingDebounced)},h._outerRefSetter=function(g){var m=h.props.outerRef;h._outerRef=g,typeof m=="function"?m(g):m!=null&&typeof m=="object"&&m.hasOwnProperty("current")&&(m.current=g)},h._resetIsScrollingDebounced=function(){h._resetIsScrollingTimeoutId!==null&&Zs(h._resetIsScrollingTimeoutId),h._resetIsScrollingTimeoutId=U9(h._resetIsScrolling,W9)},h._resetIsScrolling=function(){h._resetIsScrollingTimeoutId=null,h.setState({isScrolling:!1},function(){h._getItemStyleCache(-1,null)})},h}p.getDerivedStateFromProps=function(h,g){return q9(h,g),d(h),null};var v=p.prototype;return v.scrollTo=function(h){h=Math.max(0,h),this.setState(function(g){return g.scrollOffset===h?null:{scrollDirection:g.scrollOffset<h?"forward":"backward",scrollOffset:h,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},v.scrollToItem=function(h,g){g===void 0&&(g="auto");var m=this.props,C=m.itemCount,S=m.layout,P=this.state.scrollOffset;h=Math.max(0,Math.min(h,C-1));var $=0;if(this._outerRef){var w=this._outerRef;S==="vertical"?$=w.scrollWidth>w.clientWidth?Gs():0:$=w.scrollHeight>w.clientHeight?Gs():0}this.scrollTo(o(this.props,h,g,P,this._instanceProps,$))},v.componentDidMount=function(){var h=this.props,g=h.direction,m=h.initialScrollOffset,C=h.layout;if(typeof m=="number"&&this._outerRef!=null){var S=this._outerRef;g==="horizontal"||C==="horizontal"?S.scrollLeft=m:S.scrollTop=m}this._callPropsCallbacks()},v.componentDidUpdate=function(){var h=this.props,g=h.direction,m=h.layout,C=this.state,S=C.scrollOffset,P=C.scrollUpdateWasRequested;if(P&&this._outerRef!=null){var $=this._outerRef;if(g==="horizontal"||m==="horizontal")if(g==="rtl")switch(qs()){case"negative":$.scrollLeft=-S;break;case"positive-ascending":$.scrollLeft=S;break;default:var w=$.clientWidth,E=$.scrollWidth;$.scrollLeft=E-w-S;break}else $.scrollLeft=S;else $.scrollTop=S}this._callPropsCallbacks()},v.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Zs(this._resetIsScrollingTimeoutId)},v.render=function(){var h=this.props,g=h.children,m=h.className,C=h.direction,S=h.height,P=h.innerRef,$=h.innerElementType,w=h.innerTagName,E=h.itemCount,R=h.itemData,F=h.itemKey,V=F===void 0?Z9:F,x=h.layout,M=h.outerElementType,U=h.outerTagName,A=h.style,B=h.useIsScrolling,_=h.width,N=this.state.isScrolling,k=C==="horizontal"||x==="horizontal",Z=k?this._onScrollHorizontal:this._onScrollVertical,I=this._getRangeToRender(),L=I[0],T=I[1],O=[];if(E>0)for(var H=L;H<=T;H++)O.push(u.createElement(g,{data:R,key:V(H,R),index:H,isScrolling:B?N:void 0,style:this._getItemStyle(H)}));var K=r(this.props,this._instanceProps);return u.createElement(M||U||"div",{className:m,onScroll:Z,ref:this._outerRefSetter,style:nl({position:"relative",height:S,width:_,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:C},A)},u.createElement($||w||"div",{children:O,ref:P,style:{height:k?"100%":K,pointerEvents:N?"none":void 0,width:k?K:"100%"}}))},v._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var h=this.props.itemCount;if(h>0){var g=this._getRangeToRender(),m=g[0],C=g[1],S=g[2],P=g[3];this._callOnItemsRendered(m,C,S,P)}}if(typeof this.props.onScroll=="function"){var $=this.state,w=$.scrollDirection,E=$.scrollOffset,R=$.scrollUpdateWasRequested;this._callOnScroll(w,E,R)}},v._getRangeToRender=function(){var h=this.props,g=h.itemCount,m=h.overscanCount,C=this.state,S=C.isScrolling,P=C.scrollDirection,$=C.scrollOffset;if(g===0)return[0,0,0,0];var w=l(this.props,$,this._instanceProps),E=a(this.props,w,$,this._instanceProps),R=!S||P==="backward"?Math.max(1,m):1,F=!S||P==="forward"?Math.max(1,m):1;return[Math.max(0,w-R),Math.max(0,Math.min(g-1,E+F)),w,E]},p}(u.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var q9=function(e,n){var r=e.children,i=e.direction,o=e.height,l=e.layout,a=e.innerTagName,s=e.outerTagName,c=e.width,d=n.instance;if(process.env.NODE_ENV!=="production"){(a!=null||s!=null)&&Nr&&!Nr.has(d)&&(Nr.add(d),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var f=i==="horizontal"||l==="horizontal";switch(i){case"horizontal":case"vertical":kr&&!kr.has(d)&&(kr.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(l){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+l+'" was specified.'))}if(r==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(r===null?"null":typeof r)+'" 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.'))}},Y9=G9({getItemOffset:function(e,n){var r=e.itemSize;return n*r},getItemSize:function(e,n){var r=e.itemSize;return r},getEstimatedTotalSize:function(e){var n=e.itemCount,r=e.itemSize;return r*n},getOffsetForIndexAndAlignment:function(e,n,r,i,o,l){var a=e.direction,s=e.height,c=e.itemCount,d=e.itemSize,f=e.layout,p=e.width,v=a==="horizontal"||f==="horizontal",b=v?p:s,h=Math.max(0,c*d-b),g=Math.min(h,n*d),m=Math.max(0,n*d-b+d+l);switch(r==="smart"&&(i>=m-b&&i<=g+b?r="auto":r="center"),r){case"start":return g;case"end":return m;case"center":{var C=Math.round(m+(g-m)/2);return C<Math.ceil(b/2)?0:C>h+Math.floor(b/2)?h:C}case"auto":default:return i>=m&&i<=g?i:i<m?m:g}},getStartIndexForOffset:function(e,n){var r=e.itemCount,i=e.itemSize;return Math.max(0,Math.min(r-1,Math.floor(n/i)))},getStopIndexForStartIndex:function(e,n,r){var i=e.direction,o=e.height,l=e.itemCount,a=e.itemSize,s=e.layout,c=e.width,d=i==="horizontal"||s==="horizontal",f=n*a,p=d?c:o,v=Math.ceil((p+r-f)/a);return Math.max(0,Math.min(l-1,n+v-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){var n=e.itemSize;if(process.env.NODE_ENV!=="production"&&typeof n!="number")throw Error('An invalid "itemSize" prop has been specified. Value should be a number. '+('"'+(n===null?"null":typeof n)+'" was specified.'))}});function X9(){var t,e;const n=Ie(),i=p9().cursor;if(!i||i.type!=="line")return null;const o=n.indent,l=n.rowHeight*i.index+((e=(t=n.props.padding)!==null&&t!==void 0?t:n.props.paddingTop)!==null&&e!==void 0?e:0),a=o*i.level,s=n.renderCursor;return y.jsx(s,{top:l,left:a,indent:o})}var J9=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const Q9=u.forwardRef(function(e,n){const{children:r}=e,i=J9(e,["children"]),o=Ie();return y.jsxs("div",Object.assign({ref:n},i,{onClick:l=>{l.currentTarget===l.target&&o.deselectAll()},children:[y.jsx(e3,{}),r]}))}),e3=()=>{const t=Ie();return y.jsx("div",{style:{height:t.visibleNodes.length*t.rowHeight,width:"100%",position:"absolute",left:"0",right:"0"},children:y.jsx(X9,{})})};var t3=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const n3=u.forwardRef(function(e,n){var r,i,o,l,{style:a}=e,s=t3(e,["style"]);const c=Ie(),d=(i=(r=c.props.padding)!==null&&r!==void 0?r:c.props.paddingTop)!==null&&i!==void 0?i:0,f=(l=(o=c.props.padding)!==null&&o!==void 0?o:c.props.paddingBottom)!==null&&l!==void 0?l:0;return y.jsx("div",Object.assign({ref:n,style:Object.assign(Object.assign({},a),{height:`${parseFloat(a.height)+d+f}px`})},s))});var rf=u.createContext({dragDropManager:void 0}),Re;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(Re||(Re={}));function Y(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[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 l=0;o=new Error(e.replace(/%s/g,function(){return r[l++]})),o.name="Invariant Violation"}throw o.framesToPop=1,o}}var ta="dnd-core/INIT_COORDS",Ii="dnd-core/BEGIN_DRAG",na="dnd-core/PUBLISH_DRAG_SOURCE",Oi="dnd-core/HOVER",ki="dnd-core/DROP",Ni="dnd-core/END_DRAG";function Ys(t,e){return{type:ta,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}function Rr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Rr=function(n){return typeof n}:Rr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Rr(t)}function r3(t,e,n){return e.split(".").reduce(function(r,i){return r&&r[i]?r[i]:n||null},t)}function i3(t,e){return t.filter(function(n){return n!==e})}function of(t){return Rr(t)==="object"}function o3(t,e){var n=new Map,r=function(l){n.set(l,n.has(l)?n.get(l)+1:1)};t.forEach(r),e.forEach(r);var i=[];return n.forEach(function(o,l){o===1&&i.push(l)}),i}function l3(t,e){return t.filter(function(n){return e.indexOf(n)>-1})}var a3={type:ta,payload:{clientOffset:null,sourceClientOffset:null}};function s3(t){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{publishSource:!0},i=r.publishSource,o=i===void 0?!0:i,l=r.clientOffset,a=r.getSourceClientOffset,s=t.getMonitor(),c=t.getRegistry();t.dispatch(Ys(l)),c3(n,s,c);var d=f3(n,s);if(d===null){t.dispatch(a3);return}var f=null;if(l){if(!a)throw new Error("getSourceClientOffset must be defined");u3(a),f=a(d)}t.dispatch(Ys(l,f));var p=c.getSource(d),v=p.beginDrag(s,d);if(v!=null){d3(v),c.pinSource(d);var b=c.getSourceType(d);return{type:Ii,payload:{itemType:b,item:v,sourceId:d,clientOffset:l||null,sourceClientOffset:f||null,isSourcePublic:!!o}}}}}function c3(t,e,n){Y(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(r){Y(n.getSource(r),"Expected sourceIds to be registered.")})}function u3(t){Y(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function d3(t){Y(of(t),"Item must be an object.")}function f3(t,e){for(var n=null,r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}function h3(t){return function(){var n=t.getMonitor();if(n.isDragging())return{type:na}}}function il(t,e){return e===null?t===null:Array.isArray(t)?t.some(function(n){return n===e}):t===e}function p3(t){return function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.clientOffset;v3(n);var o=n.slice(0),l=t.getMonitor(),a=t.getRegistry();g3(o,l,a);var s=l.getItemType();return m3(o,a,s),y3(o,l,a),{type:Oi,payload:{targetIds:o,clientOffset:i||null}}}}function v3(t){Y(Array.isArray(t),"Expected targetIds to be an array.")}function g3(t,e,n){Y(e.isDragging(),"Cannot call hover while not dragging."),Y(!e.didDrop(),"Cannot call hover after drop.");for(var r=0;r<t.length;r++){var i=t[r];Y(t.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");var o=n.getTarget(i);Y(o,"Expected targetIds to be registered.")}}function m3(t,e,n){for(var r=t.length-1;r>=0;r--){var i=t[r],o=e.getTargetType(i);il(o,n)||t.splice(r,1)}}function y3(t,e,n){t.forEach(function(r){var i=n.getTarget(r);i.hover(e,r)})}function Xs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Js(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Xs(Object(n),!0).forEach(function(r){b3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xs(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function b3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function C3(t){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.getMonitor(),i=t.getRegistry();S3(r);var o=E3(r);o.forEach(function(l,a){var s=x3(l,a,i,r),c={type:ki,payload:{dropResult:Js(Js({},n),s)}};t.dispatch(c)})}}function S3(t){Y(t.isDragging(),"Cannot call drop while not dragging."),Y(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function x3(t,e,n,r){var i=n.getTarget(t),o=i?i.drop(r,t):void 0;return w3(o),typeof o>"u"&&(o=e===0?{}:r.getDropResult()),o}function w3(t){Y(typeof t>"u"||of(t),"Drop result must either be an object or undefined.")}function E3(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function $3(t){return function(){var n=t.getMonitor(),r=t.getRegistry();P3(n);var i=n.getSourceId();if(i!=null){var o=r.getSource(i,!0);o.endDrag(n,i),r.unpinSource()}return{type:Ni}}}function P3(t){Y(t.isDragging(),"Cannot call endDrag while not dragging.")}function D3(t){return{beginDrag:s3(t),publishDragSource:h3(t),hover:p3(t),drop:C3(t),endDrag:$3(t)}}function T3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _3(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function I3(t,e,n){return e&&_3(t.prototype,e),t}function kn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var O3=function(){function t(e,n){var r=this;T3(this,t),kn(this,"store",void 0),kn(this,"monitor",void 0),kn(this,"backend",void 0),kn(this,"isSetUp",!1),kn(this,"handleRefCountChange",function(){var i=r.store.getState().refCount>0;r.backend&&(i&&!r.isSetUp?(r.backend.setup(),r.isSetUp=!0):!i&&r.isSetUp&&(r.backend.teardown(),r.isSetUp=!1))}),this.store=e,this.monitor=n,e.subscribe(this.handleRefCountChange)}return I3(t,[{key:"receiveBackend",value:function(n){this.backend=n}},{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 n=this,r=this.store.dispatch;function i(l){return function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var d=l.apply(n,s);typeof d<"u"&&r(d)}}var o=D3(this);return Object.keys(o).reduce(function(l,a){var s=o[a];return l[a]=i(s),l},{})}},{key:"dispatch",value:function(n){this.store.dispatch(n)}}]),t}();function Oe(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 Qs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ec=function(){return Math.random().toString(36).substring(7).split("").join(".")},tc={INIT:"@@redux/INIT"+ec(),REPLACE:"@@redux/REPLACE"+ec()};function k3(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 N3(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(L3(t))return"date";if(M3(t))return"error";var n=R3(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function R3(t){return typeof t.constructor=="function"?t.constructor.name:null}function M3(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function L3(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function Xt(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=N3(t)),e}function lf(t,e,n){var r;if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Oe(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 n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Oe(1):"Expected the enhancer to be a function. Instead, received: '"+Xt(n)+"'");return n(lf)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Oe(2):"Expected the root reducer to be a function. Instead, received: '"+Xt(t)+"'");var i=t,o=e,l=[],a=l,s=!1;function c(){a===l&&(a=l.slice())}function d(){if(s)throw new Error(process.env.NODE_ENV==="production"?Oe(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"?Oe(4):"Expected the listener to be a function. Instead, received: '"+Xt(h)+"'");if(s)throw new Error(process.env.NODE_ENV==="production"?Oe(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 g=!0;return c(),a.push(h),function(){if(g){if(s)throw new Error(process.env.NODE_ENV==="production"?Oe(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.");g=!1,c();var C=a.indexOf(h);a.splice(C,1),l=null}}}function p(h){if(!k3(h))throw new Error(process.env.NODE_ENV==="production"?Oe(7):"Actions must be plain objects. Instead, the actual type was: '"+Xt(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"?Oe(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"?Oe(9):"Reducers may not dispatch actions.");try{s=!0,o=i(o,h)}finally{s=!1}for(var g=l=a,m=0;m<g.length;m++){var C=g[m];C()}return h}function v(h){if(typeof h!="function")throw new Error(process.env.NODE_ENV==="production"?Oe(10):"Expected the nextReducer to be a function. Instead, received: '"+Xt(h));i=h,p({type:tc.REPLACE})}function b(){var h,g=f;return h={subscribe:function(C){if(typeof C!="object"||C===null)throw new Error(process.env.NODE_ENV==="production"?Oe(11):"Expected the observer to be an object. Instead, received: '"+Xt(C)+"'");function S(){C.next&&C.next(d())}S();var P=g(S);return{unsubscribe:P}}},h[Qs]=function(){return this},h}return p({type:tc.INIT}),r={dispatch:p,subscribe:f,getState:d,replaceReducer:v},r[Qs]=b,r}var A3=function(e,n){return e===n};function F3(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function K3(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:A3;if(t.length!==e.length)return!1;for(var r=0;r<t.length;++r)if(!n(t[r],e[r]))return!1;return!0}function nc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function rc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?nc(Object(n),!0).forEach(function(r){j3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nc(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function j3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ic={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function H3(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ic,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case ta:case Ii:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Oi:return F3(t.clientOffset,n.clientOffset)?t:rc(rc({},t),{},{clientOffset:n.clientOffset});case Ni:case ki:return ic;default:return t}}var ra="dnd-core/ADD_SOURCE",ia="dnd-core/ADD_TARGET",oa="dnd-core/REMOVE_SOURCE",Ri="dnd-core/REMOVE_TARGET";function V3(t){return{type:ra,payload:{sourceId:t}}}function z3(t){return{type:ia,payload:{targetId:t}}}function B3(t){return{type:oa,payload:{sourceId:t}}}function U3(t){return{type:Ri,payload:{targetId:t}}}function oc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ke(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?oc(Object(n),!0).forEach(function(r){W3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oc(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function W3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Z3={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function G3(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Z3,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case Ii:return ke(ke({},t),{},{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case na:return ke(ke({},t),{},{isSourcePublic:!0});case Oi:return ke(ke({},t),{},{targetIds:n.targetIds});case Ri:return t.targetIds.indexOf(n.targetId)===-1?t:ke(ke({},t),{},{targetIds:i3(t.targetIds,n.targetId)});case ki:return ke(ke({},t),{},{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Ni:return ke(ke({},t),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function q3(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case ra:case ia:return t+1;case oa:case Ri:return t-1;default:return t}}var ti=[],la=[];ti.__IS_NONE__=!0;la.__IS_ALL__=!0;function Y3(t,e){if(t===ti)return!1;if(t===la||typeof e>"u")return!0;var n=l3(e,t);return n.length>0}function X3(){var t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Oi:break;case ra:case ia:case Ri:case oa:return ti;case Ii:case na:case Ni:case ki:default:return la}var e=t.payload,n=e.targetIds,r=n===void 0?[]:n,i=e.prevTargetIds,o=i===void 0?[]:i,l=o3(r,o),a=l.length>0||!K3(r,o);if(!a)return ti;var s=o[o.length-1],c=r[r.length-1];return s!==c&&(s&&l.push(s),c&&l.push(c)),l}function J3(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return t+1}function lc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ac(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?lc(Object(n),!0).forEach(function(r){Q3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lc(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Q3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function em(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:X3(t.dirtyHandlerIds,{type:e.type,payload:ac(ac({},e.payload),{},{prevTargetIds:r3(t,"dragOperation.targetIds",[])})}),dragOffset:H3(t.dragOffset,e),refCount:q3(t.refCount,e),dragOperation:G3(t.dragOperation,e),stateId:J3(t.stateId)}}function tm(t,e){return{x:t.x+e.x,y:t.y+e.y}}function af(t,e){return{x:t.x-e.x,y:t.y-e.y}}function nm(t){var e=t.clientOffset,n=t.initialClientOffset,r=t.initialSourceClientOffset;return!e||!n||!r?null:af(tm(e,r),n)}function rm(t){var e=t.clientOffset,n=t.initialClientOffset;return!e||!n?null:af(e,n)}function im(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function om(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function lm(t,e,n){return e&&om(t.prototype,e),t}function sc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var am=function(){function t(e,n){im(this,t),sc(this,"store",void 0),sc(this,"registry",void 0),this.store=e,this.registry=n}return lm(t,[{key:"subscribeToStateChange",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{handlerIds:void 0},o=i.handlerIds;Y(typeof n=="function","listener must be a function."),Y(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");var l=this.store.getState().stateId,a=function(){var c=r.store.getState(),d=c.stateId;try{var f=d===l||d===l+1&&!Y3(c.dirtyHandlerIds,o);f||n()}finally{l=d}};return this.store.subscribe(a)}},{key:"subscribeToOffsetChange",value:function(n){var r=this;Y(typeof n=="function","listener must be a function.");var i=this.store.getState().dragOffset,o=function(){var a=r.store.getState().dragOffset;a!==i&&(i=a,n())};return this.store.subscribe(o)}},{key:"canDragSource",value:function(n){if(!n)return!1;var r=this.registry.getSource(n);return Y(r,"Expected to find a valid source. sourceId=".concat(n)),this.isDragging()?!1:r.canDrag(this,n)}},{key:"canDropOnTarget",value:function(n){if(!n)return!1;var r=this.registry.getTarget(n);if(Y(r,"Expected to find a valid target. targetId=".concat(n)),!this.isDragging()||this.didDrop())return!1;var i=this.registry.getTargetType(n),o=this.getItemType();return il(i,o)&&r.canDrop(this,n)}},{key:"isDragging",value:function(){return!!this.getItemType()}},{key:"isDraggingSource",value:function(n){if(!n)return!1;var r=this.registry.getSource(n,!0);if(Y(r,"Expected to find a valid source. sourceId=".concat(n)),!this.isDragging()||!this.isSourcePublic())return!1;var i=this.registry.getSourceType(n),o=this.getItemType();return i!==o?!1:r.isDragging(this,n)}},{key:"isOverTarget",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shallow:!1};if(!n)return!1;var i=r.shallow;if(!this.isDragging())return!1;var o=this.registry.getTargetType(n),l=this.getItemType();if(l&&!il(o,l))return!1;var a=this.getTargetIds();if(!a.length)return!1;var s=a.indexOf(n);return i?s===a.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 nm(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return rm(this.store.getState().dragOffset)}}]),t}(),sm=0;function cm(){return sm++}function Mr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mr=function(n){return typeof n}:Mr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Mr(t)}function um(t){Y(typeof t.canDrag=="function","Expected canDrag to be a function."),Y(typeof t.beginDrag=="function","Expected beginDrag to be a function."),Y(typeof t.endDrag=="function","Expected endDrag to be a function.")}function dm(t){Y(typeof t.canDrop=="function","Expected canDrop to be a function."),Y(typeof t.hover=="function","Expected hover to be a function."),Y(typeof t.drop=="function","Expected beginDrag to be a function.")}function ol(t,e){if(e&&Array.isArray(t)){t.forEach(function(n){return ol(n,!1)});return}Y(typeof t=="string"||Mr(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 cc=typeof global<"u"?global:self,sf=cc.MutationObserver||cc.WebKitMutationObserver;function cf(t){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),t()}}}function fm(t){let e=1;const n=new sf(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const hm=typeof sf=="function"?fm:cf;class pm{enqueueTask(e){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.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 n=this.index;if(this.index++,e[n].call(),this.index>this.capacity){for(let r=0,i=e.length-this.index;r<i;r++)e[r]=e[r+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=hm(this.flush),this.requestErrorThrow=cf(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class vm{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,n){this.onError=e,this.release=n,this.task=null}}class gm{create(e){const n=this.freeTasks,r=n.length?n.pop():new vm(this.onError,i=>n[n.length]=i);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const uf=new pm,mm=new gm(uf.registerPendingError);function ym(t){uf.enqueueTask(mm.create(t))}function bm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Cm(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Sm(t,e,n){return e&&Cm(t.prototype,e),t}function Jt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xm(t,e){return Pm(t)||$m(t,e)||Em(t,e)||wm()}function wm(){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 Em(t,e){if(t){if(typeof t=="string")return uc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uc(t,e)}}function uc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function $m(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function Pm(t){if(Array.isArray(t))return t}function Dm(t){var e=cm().toString();switch(t){case Re.SOURCE:return"S".concat(e);case Re.TARGET:return"T".concat(e);default:throw new Error("Unknown Handler Role: ".concat(t))}}function dc(t){switch(t[0]){case"S":return Re.SOURCE;case"T":return Re.TARGET;default:Y(!1,"Cannot parse handler ID: ".concat(t))}}function fc(t,e){var n=t.entries(),r=!1;do{var i=n.next(),o=i.done,l=xm(i.value,2),a=l[1];if(a===e)return!0;r=!!o}while(!r);return!1}var Tm=function(){function t(e){bm(this,t),Jt(this,"types",new Map),Jt(this,"dragSources",new Map),Jt(this,"dropTargets",new Map),Jt(this,"pinnedSourceId",null),Jt(this,"pinnedSource",null),Jt(this,"store",void 0),this.store=e}return Sm(t,[{key:"addSource",value:function(n,r){ol(n),um(r);var i=this.addHandler(Re.SOURCE,n,r);return this.store.dispatch(V3(i)),i}},{key:"addTarget",value:function(n,r){ol(n,!0),dm(r);var i=this.addHandler(Re.TARGET,n,r);return this.store.dispatch(z3(i)),i}},{key:"containsHandler",value:function(n){return fc(this.dragSources,n)||fc(this.dropTargets,n)}},{key:"getSource",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Y(this.isSourceId(n),"Expected a valid source ID.");var i=r&&n===this.pinnedSourceId,o=i?this.pinnedSource:this.dragSources.get(n);return o}},{key:"getTarget",value:function(n){return Y(this.isTargetId(n),"Expected a valid target ID."),this.dropTargets.get(n)}},{key:"getSourceType",value:function(n){return Y(this.isSourceId(n),"Expected a valid source ID."),this.types.get(n)}},{key:"getTargetType",value:function(n){return Y(this.isTargetId(n),"Expected a valid target ID."),this.types.get(n)}},{key:"isSourceId",value:function(n){var r=dc(n);return r===Re.SOURCE}},{key:"isTargetId",value:function(n){var r=dc(n);return r===Re.TARGET}},{key:"removeSource",value:function(n){var r=this;Y(this.getSource(n),"Expected an existing source."),this.store.dispatch(B3(n)),ym(function(){r.dragSources.delete(n),r.types.delete(n)})}},{key:"removeTarget",value:function(n){Y(this.getTarget(n),"Expected an existing target."),this.store.dispatch(U3(n)),this.dropTargets.delete(n),this.types.delete(n)}},{key:"pinSource",value:function(n){var r=this.getSource(n);Y(r,"Expected an existing source."),this.pinnedSourceId=n,this.pinnedSource=r}},{key:"unpinSource",value:function(){Y(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(n,r,i){var o=Dm(n);return this.types.set(o,r),n===Re.SOURCE?this.dragSources.set(o,i):n===Re.TARGET&&this.dropTargets.set(o,i),o}}]),t}();function _m(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=Im(r),o=new am(i,new Tm(i)),l=new O3(i,o),a=t(l,e,n);return l.receiveBackend(a),l}function Im(t){var e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return lf(em,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}var Om=["children"];function km(t,e){return Lm(t)||Mm(t,e)||Rm(t,e)||Nm()}function Nm(){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 Rm(t,e){if(t){if(typeof t=="string")return hc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hc(t,e)}}function hc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Mm(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function Lm(t){if(Array.isArray(t))return t}function Am(t,e){if(t==null)return{};var n=Fm(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Fm(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var pc=0,Lr=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),Km=u.memo(function(e){var n=e.children,r=Am(e,Om),i=jm(r),o=km(i,2),l=o[0],a=o[1];return u.useEffect(function(){if(a){var s=df();return++pc,function(){--pc===0&&(s[Lr]=null)}}},[]),y.jsx(rf.Provider,Object.assign({value:l},{children:n}),void 0)});function jm(t){if("manager"in t){var e={dragDropManager:t.manager};return[e,!1]}var n=Hm(t.backend,t.context,t.options,t.debugMode),r=!t.context;return[n,r]}function Hm(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:df(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=e;return i[Lr]||(i[Lr]={dragDropManager:_m(t,e,n,r)}),i[Lr]}function df(){return typeof global<"u"?global:window}function Vm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zm(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Bm(t,e,n){return e&&zm(t.prototype,e),t}function vc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var po=!1,vo=!1,Um=function(){function t(e){Vm(this,t),vc(this,"internalMonitor",void 0),vc(this,"sourceId",null),this.internalMonitor=e.getMonitor()}return Bm(t,[{key:"receiveHandlerId",value:function(n){this.sourceId=n}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){Y(!po,"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 po=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{po=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;Y(!vo,"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 vo=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{vo=!1}}},{key:"subscribeToStateChange",value:function(n,r){return this.internalMonitor.subscribeToStateChange(n,r)}},{key:"isDraggingSource",value:function(n){return this.internalMonitor.isDraggingSource(n)}},{key:"isOverTarget",value:function(n,r){return this.internalMonitor.isOverTarget(n,r)}},{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(n){return this.internalMonitor.subscribeToOffsetChange(n)}},{key:"canDragSource",value:function(n){return this.internalMonitor.canDragSource(n)}},{key:"canDropOnTarget",value:function(n){return this.internalMonitor.canDropOnTarget(n)}},{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 Wm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zm(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Gm(t,e,n){return e&&Zm(t.prototype,e),t}function gc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var go=!1,qm=function(){function t(e){Wm(this,t),gc(this,"internalMonitor",void 0),gc(this,"targetId",null),this.internalMonitor=e.getMonitor()}return Gm(t,[{key:"receiveHandlerId",value:function(n){this.targetId=n}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(n,r){return this.internalMonitor.subscribeToStateChange(n,r)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;Y(!go,"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 go=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{go=!1}}},{key:"isOver",value:function(n){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,n):!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 Ym(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 Xm(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!u.isValidElement(e)){var r=e;return t(r,n),r}var i=e;Ym(i);var o=n?function(l){return t(l,n)}:t;return Jm(i,o)}}function ff(t){var e={};return Object.keys(t).forEach(function(n){var r=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{var i=Xm(r);e[n]=function(){return i}}}),e}function mc(t,e){typeof t=="function"?t(e):t.current=e}function Jm(t,e){var n=t.ref;return Y(typeof n!="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"),n?u.cloneElement(t,{ref:function(i){mc(n,i),mc(e,i)}}):u.cloneElement(t,{ref:e})}function Ar(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ar=function(n){return typeof n}:Ar=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ar(t)}function ll(t){return t!==null&&Ar(t)==="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function al(t,e,n,r){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),l=Object.keys(e);if(o.length!==l.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(e),s=0;s<o.length;s++){var c=o[s];if(!a(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 Qm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e7(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function t7(t,e,n){return e&&e7(t.prototype,e),t}function ye(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var n7=function(){function t(e){var n=this;Qm(this,t),ye(this,"hooks",ff({dragSource:function(i,o){n.clearDragSource(),n.dragSourceOptions=o||null,ll(i)?n.dragSourceRef=i:n.dragSourceNode=i,n.reconnectDragSource()},dragPreview:function(i,o){n.clearDragPreview(),n.dragPreviewOptions=o||null,ll(i)?n.dragPreviewRef=i:n.dragPreviewNode=i,n.reconnectDragPreview()}})),ye(this,"handlerId",null),ye(this,"dragSourceRef",null),ye(this,"dragSourceNode",void 0),ye(this,"dragSourceOptionsInternal",null),ye(this,"dragSourceUnsubscribe",void 0),ye(this,"dragPreviewRef",null),ye(this,"dragPreviewNode",void 0),ye(this,"dragPreviewOptionsInternal",null),ye(this,"dragPreviewUnsubscribe",void 0),ye(this,"lastConnectedHandlerId",null),ye(this,"lastConnectedDragSource",null),ye(this,"lastConnectedDragSourceOptions",null),ye(this,"lastConnectedDragPreview",null),ye(this,"lastConnectedDragPreviewOptions",null),ye(this,"backend",void 0),this.backend=e}return t7(t,[{key:"receiveHandlerId",value:function(n){this.handlerId!==n&&(this.handlerId=n,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(n){this.dragSourceOptionsInternal=n}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(n){this.dragPreviewOptionsInternal=n}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var n=this.dragSource,r=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();if(r&&this.disconnectDragSource(),!!this.handlerId){if(!n){this.lastConnectedDragSource=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=n,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,n,this.dragSourceOptions))}}},{key:"reconnectDragPreview",value:function(){var n=this.dragPreview,r=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,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!al(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!al(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 r7(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i7(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o7(t,e,n){return e&&i7(t.prototype,e),t}function We(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l7=function(){function t(e){var n=this;r7(this,t),We(this,"hooks",ff({dropTarget:function(i,o){n.clearDropTarget(),n.dropTargetOptions=o,ll(i)?n.dropTargetRef=i:n.dropTargetNode=i,n.reconnect()}})),We(this,"handlerId",null),We(this,"dropTargetRef",null),We(this,"dropTargetNode",void 0),We(this,"dropTargetOptionsInternal",null),We(this,"unsubscribeDropTarget",void 0),We(this,"lastConnectedHandlerId",null),We(this,"lastConnectedDropTarget",null),We(this,"lastConnectedDropTargetOptions",null),We(this,"backend",void 0),this.backend=e}return o7(t,[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var n=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();n&&this.disconnectDropTarget();var r=this.dropTarget;if(this.handlerId){if(!r){this.lastConnectedDropTarget=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=r,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,r,this.dropTargetOptions))}}},{key:"receiveHandlerId",value:function(n){n!==this.handlerId&&(this.handlerId=n,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(n){this.dropTargetOptionsInternal=n}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!al(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 a7(t,e,n){var r=n.getRegistry(),i=r.addTarget(t,e);return[i,function(){return r.removeTarget(i)}]}function s7(t,e,n){var r=n.getRegistry(),i=r.addSource(t,e);return[i,function(){return r.removeSource(i)}]}var Lt=typeof window<"u"?u.useLayoutEffect:u.useEffect;function Fr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fr=function(n){return typeof n}:Fr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Fr(t)}function c7(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u7(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d7(t,e,n){return e&&u7(t.prototype,e),t}function mo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var f7=function(){function t(e,n,r){c7(this,t),mo(this,"spec",void 0),mo(this,"monitor",void 0),mo(this,"connector",void 0),this.spec=e,this.monitor=n,this.connector=r}return d7(t,[{key:"beginDrag",value:function(){var n,r=this.spec,i=this.monitor,o=null;return Fr(r.item)==="object"?o=r.item:typeof r.item=="function"?o=r.item(i):o={},(n=o)!==null&&n!==void 0?n:null}},{key:"canDrag",value:function(){var n=this.spec,r=this.monitor;return typeof n.canDrag=="boolean"?n.canDrag:typeof n.canDrag=="function"?n.canDrag(r):!0}},{key:"isDragging",value:function(n,r){var i=this.spec,o=this.monitor,l=i.isDragging;return l?l(o):r===n.getSourceId()}},{key:"endDrag",value:function(){var n=this.spec,r=this.monitor,i=this.connector,o=n.end;o&&o(r.getItem(),r),i.reconnect()}}]),t}();function h7(t,e,n){var r=u.useMemo(function(){return new f7(t,e,n)},[e,n]);return u.useEffect(function(){r.spec=t},[t]),r}function Vt(){var t=u.useContext(rf),e=t.dragDropManager;return Y(e!=null,"Expected drag drop context"),e}function p7(t){return u.useMemo(function(){var e=t.type;return Y(e!=null,"spec.type must be defined"),e},[t])}function v7(t,e){return b7(t)||y7(t,e)||m7(t,e)||g7()}function g7(){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 m7(t,e){if(t){if(typeof t=="string")return yc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yc(t,e)}}function yc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function y7(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function b7(t){if(Array.isArray(t))return t}function C7(t,e,n){var r=Vt(),i=h7(t,e,n),o=p7(t);Lt(function(){if(o!=null){var a=s7(o,i,r),s=v7(a,2),c=s[0],d=s[1];return e.receiveHandlerId(c),n.receiveHandlerId(c),d}},[r,e,n,i,o])}function S7(t){return $7(t)||E7(t)||w7(t)||x7()}function x7(){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 w7(t,e){if(t){if(typeof t=="string")return sl(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sl(t,e)}}function E7(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function $7(t){if(Array.isArray(t))return sl(t)}function sl(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function hf(t,e){var n=S7(e||[]);return e==null&&typeof t!="function"&&n.push(t),u.useMemo(function(){return typeof t=="function"?t():t},n)}function P7(){var t=Vt();return u.useMemo(function(){return new Um(t)},[t])}function D7(t,e){var n=Vt(),r=u.useMemo(function(){return new n7(n.getBackend())},[n]);return Lt(function(){return r.dragSourceOptions=t||null,r.reconnect(),function(){return r.disconnectDragSource()}},[r,t]),Lt(function(){return r.dragPreviewOptions=e||null,r.reconnect(),function(){return r.disconnectDragPreview()}},[r,e]),r}var yo,bc;function T7(){return bc||(bc=1,yo=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!t(e[i],n[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){var l=o[i];if(!t(e[l],n[l]))return!1}return!0}return e!==e&&n!==n}),yo}var _7=T7();const I7=Bf(_7);function O7(t,e){return M7(t)||R7(t,e)||N7(t,e)||k7()}function k7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
88
+ For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return D.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},z4="DialogDescriptionWarning",B4=({contentRef:t,descriptionId:e})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${D2(z4).contentName}}.`;return D.useEffect(()=>{var o;const i=(o=t.current)==null?void 0:o.getAttribute("aria-describedby");e&&i&&(document.getElementById(e)||console.warn(r))},[r,t,e]),null},U4=m2,W4=C2,Z4=S2,G4=w2,On='[cmdk-group=""]',co='[cmdk-group-items=""]',q4='[cmdk-group-heading=""]',Jl='[cmdk-item=""]',Hs=`${Jl}:not([aria-disabled="true"])`,Qo="cmdk-item-select",bt="data-value",Y4=(t,e,n)=>ug(t,e,n),T2=D.createContext(void 0),ir=()=>D.useContext(T2),_2=D.createContext(void 0),Ql=()=>D.useContext(_2),I2=D.createContext(void 0),O2=D.forwardRef((t,e)=>{let n=rn(()=>{var _,O;return{search:"",value:(O=(_=t.value)!=null?_:t.defaultValue)!=null?O:"",filtered:{count:0,items:new Map,groups:new Set}}}),r=rn(()=>new Set),i=rn(()=>new Map),o=rn(()=>new Map),l=rn(()=>new Set),a=k2(t),{label:s,children:c,value:d,onValueChange:f,filter:p,shouldFilter:v,loop:y,disablePointerSelection:h=!1,vimBindings:g=!0,...b}=t,C=et(),S=et(),P=et(),E=D.useRef(null),x=a9();Rt(()=>{if(d!==void 0){let _=d.trim();n.current.value=_,$.emit()}},[d]),Rt(()=>{x(6,B)},[]);let $=D.useMemo(()=>({subscribe:_=>(l.current.add(_),()=>l.current.delete(_)),snapshot:()=>n.current,setState:(_,O,H)=>{var K,j,z;if(!Object.is(n.current[_],O)){if(n.current[_]=O,_==="search")M(),V(),x(1,w);else if(_==="value"&&(H||x(5,B),((K=a.current)==null?void 0:K.value)!==void 0)){let W=O??"";(z=(j=a.current).onValueChange)==null||z.call(j,W);return}$.emit()}},emit:()=>{l.current.forEach(_=>_())}}),[]),N=D.useMemo(()=>({value:(_,O,H)=>{var K;O!==((K=o.current.get(_))==null?void 0:K.value)&&(o.current.set(_,{value:O,keywords:H}),n.current.filtered.items.set(_,F(O,H)),x(2,()=>{V(),$.emit()}))},item:(_,O)=>(r.current.add(_),O&&(i.current.has(O)?i.current.get(O).add(_):i.current.set(O,new Set([_]))),x(3,()=>{M(),V(),n.current.value||w(),$.emit()}),()=>{o.current.delete(_),r.current.delete(_),n.current.filtered.items.delete(_);let H=A();x(4,()=>{M(),(H==null?void 0:H.getAttribute("id"))===_&&w(),$.emit()})}),group:_=>(i.current.has(_)||i.current.set(_,new Set),()=>{o.current.delete(_),i.current.delete(_)}),filter:()=>a.current.shouldFilter,label:s||t["aria-label"],getDisablePointerSelection:()=>a.current.disablePointerSelection,listId:C,inputId:P,labelId:S,listInnerRef:E}),[]);function F(_,O){var H,K;let j=(K=(H=a.current)==null?void 0:H.filter)!=null?K:Y4;return _?j(_,n.current.search,O):0}function V(){if(!n.current.search||a.current.shouldFilter===!1)return;let _=n.current.filtered.items,O=[];n.current.filtered.groups.forEach(K=>{let j=i.current.get(K),z=0;j.forEach(W=>{let q=_.get(W);z=Math.max(q,z)}),O.push([K,z])});let H=E.current;U().sort((K,j)=>{var z,W;let q=K.getAttribute("id"),X=j.getAttribute("id");return((z=_.get(X))!=null?z:0)-((W=_.get(q))!=null?W:0)}).forEach(K=>{let j=K.closest(co);j?j.appendChild(K.parentElement===j?K:K.closest(`${co} > *`)):H.appendChild(K.parentElement===H?K:K.closest(`${co} > *`))}),O.sort((K,j)=>j[1]-K[1]).forEach(K=>{var j;let z=(j=E.current)==null?void 0:j.querySelector(`${On}[${bt}="${encodeURIComponent(K[0])}"]`);z==null||z.parentElement.appendChild(z)})}function w(){let _=U().find(H=>H.getAttribute("aria-disabled")!=="true"),O=_==null?void 0:_.getAttribute(bt);$.setState("value",O||void 0)}function M(){var _,O,H,K;if(!n.current.search||a.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let j=0;for(let z of r.current){let W=(O=(_=o.current.get(z))==null?void 0:_.value)!=null?O:"",q=(K=(H=o.current.get(z))==null?void 0:H.keywords)!=null?K:[],X=F(W,q);n.current.filtered.items.set(z,X),X>0&&j++}for(let[z,W]of i.current)for(let q of W)if(n.current.filtered.items.get(q)>0){n.current.filtered.groups.add(z);break}n.current.filtered.count=j}function B(){var _,O,H;let K=A();K&&(((_=K.parentElement)==null?void 0:_.firstChild)===K&&((H=(O=K.closest(On))==null?void 0:O.querySelector(q4))==null||H.scrollIntoView({block:"nearest"})),K.scrollIntoView({block:"nearest"}))}function A(){var _;return(_=E.current)==null?void 0:_.querySelector(`${Jl}[aria-selected="true"]`)}function U(){var _;return Array.from(((_=E.current)==null?void 0:_.querySelectorAll(Hs))||[])}function T(_){let O=U()[_];O&&$.setState("value",O.getAttribute(bt))}function R(_){var O;let H=A(),K=U(),j=K.findIndex(W=>W===H),z=K[j+_];(O=a.current)!=null&&O.loop&&(z=j+_<0?K[K.length-1]:j+_===K.length?K[0]:K[j+_]),z&&$.setState("value",z.getAttribute(bt))}function k(_){let O=A(),H=O==null?void 0:O.closest(On),K;for(;H&&!K;)H=_>0?o9(H,On):l9(H,On),K=H==null?void 0:H.querySelector(Hs);K?$.setState("value",K.getAttribute(bt)):R(_)}let Z=()=>T(U().length-1),I=_=>{_.preventDefault(),_.metaKey?Z():_.altKey?k(1):R(1)},L=_=>{_.preventDefault(),_.metaKey?T(0):_.altKey?k(-1):R(-1)};return D.createElement(me.div,{ref:e,tabIndex:-1,...b,"cmdk-root":"",onKeyDown:_=>{var O;if((O=b.onKeyDown)==null||O.call(b,_),!_.defaultPrevented)switch(_.key){case"n":case"j":{g&&_.ctrlKey&&I(_);break}case"ArrowDown":{I(_);break}case"p":case"k":{g&&_.ctrlKey&&L(_);break}case"ArrowUp":{L(_);break}case"Home":{_.preventDefault(),T(0);break}case"End":{_.preventDefault(),Z();break}case"Enter":if(!_.nativeEvent.isComposing&&_.keyCode!==229){_.preventDefault();let H=A();if(H){let K=new Event(Qo);H.dispatchEvent(K)}}}}},D.createElement("label",{"cmdk-label":"",htmlFor:N.inputId,id:N.labelId,style:c9},s),Ti(t,_=>D.createElement(_2.Provider,{value:$},D.createElement(T2.Provider,{value:N},_))))}),X4=D.forwardRef((t,e)=>{var n,r;let i=et(),o=D.useRef(null),l=D.useContext(I2),a=ir(),s=k2(t),c=(r=(n=s.current)==null?void 0:n.forceMount)!=null?r:l==null?void 0:l.forceMount;Rt(()=>{if(!c)return a.item(i,l==null?void 0:l.id)},[c]);let d=N2(i,o,[t.value,t.children,o],t.keywords),f=Ql(),p=Mt(x=>x.value&&x.value===d.current),v=Mt(x=>c||a.filter()===!1?!0:x.search?x.filtered.items.get(i)>0:!0);D.useEffect(()=>{let x=o.current;if(!(!x||t.disabled))return x.addEventListener(Qo,y),()=>x.removeEventListener(Qo,y)},[v,t.onSelect,t.disabled]);function y(){var x,$;h(),($=(x=s.current).onSelect)==null||$.call(x,d.current)}function h(){f.setState("value",d.current,!0)}if(!v)return null;let{disabled:g,value:b,onSelect:C,forceMount:S,keywords:P,...E}=t;return D.createElement(me.div,{ref:Qn([o,e]),...E,id:i,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!p,"data-disabled":!!g,"data-selected":!!p,onPointerMove:g||a.getDisablePointerSelection()?void 0:h,onClick:g?void 0:y},t.children)}),J4=D.forwardRef((t,e)=>{let{heading:n,children:r,forceMount:i,...o}=t,l=et(),a=D.useRef(null),s=D.useRef(null),c=et(),d=ir(),f=Mt(v=>i||d.filter()===!1?!0:v.search?v.filtered.groups.has(l):!0);Rt(()=>d.group(l),[]),N2(l,a,[t.value,t.heading,s]);let p=D.useMemo(()=>({id:l,forceMount:i}),[i]);return D.createElement(me.div,{ref:Qn([a,e]),...o,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},n&&D.createElement("div",{ref:s,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),Ti(t,v=>D.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},D.createElement(I2.Provider,{value:p},v))))}),Q4=D.forwardRef((t,e)=>{let{alwaysRender:n,...r}=t,i=D.useRef(null),o=Mt(l=>!l.search);return!n&&!o?null:D.createElement(me.div,{ref:Qn([i,e]),...r,"cmdk-separator":"",role:"separator"})}),e9=D.forwardRef((t,e)=>{let{onValueChange:n,...r}=t,i=t.value!=null,o=Ql(),l=Mt(d=>d.search),a=Mt(d=>d.value),s=ir(),c=D.useMemo(()=>{var d;let f=(d=s.listInnerRef.current)==null?void 0:d.querySelector(`${Jl}[${bt}="${encodeURIComponent(a)}"]`);return f==null?void 0:f.getAttribute("id")},[]);return D.useEffect(()=>{t.value!=null&&o.setState("search",t.value)},[t.value]),D.createElement(me.input,{ref:e,...r,"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:l,onChange:d=>{i||o.setState("search",d.target.value),n==null||n(d.target.value)}})}),t9=D.forwardRef((t,e)=>{let{children:n,label:r="Suggestions",...i}=t,o=D.useRef(null),l=D.useRef(null),a=ir();return D.useEffect(()=>{if(l.current&&o.current){let s=l.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)}}},[]),D.createElement(me.div,{ref:Qn([o,e]),...i,"cmdk-list":"",role:"listbox","aria-label":r,id:a.listId},Ti(t,s=>D.createElement("div",{ref:Qn([l,a.listInnerRef]),"cmdk-list-sizer":""},s)))}),n9=D.forwardRef((t,e)=>{let{open:n,onOpenChange:r,overlayClassName:i,contentClassName:o,container:l,...a}=t;return D.createElement(U4,{open:n,onOpenChange:r},D.createElement(W4,{container:l},D.createElement(Z4,{"cmdk-overlay":"",className:i}),D.createElement(G4,{"aria-label":t.label,"cmdk-dialog":"",className:o},D.createElement(O2,{ref:e,...a}))))}),r9=D.forwardRef((t,e)=>Mt(n=>n.filtered.count===0)?D.createElement(me.div,{ref:e,...t,"cmdk-empty":"",role:"presentation"}):null),i9=D.forwardRef((t,e)=>{let{progress:n,children:r,label:i="Loading...",...o}=t;return D.createElement(me.div,{ref:e,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},Ti(t,l=>D.createElement("div",{"aria-hidden":!0},l)))}),Jn=Object.assign(O2,{List:t9,Item:X4,Input:e9,Group:J4,Separator:Q4,Dialog:n9,Empty:r9,Loading:i9});function o9(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return n;n=n.nextElementSibling}}function l9(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return n;n=n.previousElementSibling}}function k2(t){let e=D.useRef(t);return Rt(()=>{e.current=t}),e}var Rt=typeof window>"u"?D.useEffect:D.useLayoutEffect;function rn(t){let e=D.useRef();return e.current===void 0&&(e.current=t()),e}function Qn(t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}function Mt(t){let e=Ql(),n=()=>t(e.snapshot());return Dl.useSyncExternalStore(e.subscribe,n,n)}function N2(t,e,n,r=[]){let i=D.useRef(),o=ir();return Rt(()=>{var l;let a=(()=>{var c;for(let d of n){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=r.map(c=>c.trim());o.value(t,a,s),(l=e.current)==null||l.setAttribute(bt,a),i.current=a}),i}var a9=()=>{let[t,e]=D.useState(),n=rn(()=>new Map);return Rt(()=>{n.current.forEach(r=>r()),n.current=new Map},[t]),(r,i)=>{n.current.set(r,i),e({})}};function s9(t){let e=t.type;return typeof e=="function"?e(t.props):"render"in e?e.render(t.props):t}function Ti({asChild:t,children:e},n){return t&&D.isValidElement(e)?D.cloneElement(s9(e),{ref:e.ref},n(e.props.children)):n(e)}var c9={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const R2=({withPadding:t=!0,direction:e,width:n="thin",size:r})=>m.jsx("div",{style:{"--size":r},className:xe("c__separator",`c__separator--${e}`,`c__separator--${n}`,{"with-padding":t})}),el=t=>m.jsx(R2,{direction:"horizontal",...t}),M2=({loading:t,inputValue:e,onFilter:n,placeholder:r,children:i,withSeparator:o=!0})=>{const{t:l}=ne.useCunningham();return i?m.jsxs(m.Fragment,{children:[i,o&&m.jsx(el,{})]}):m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"quick-search-input-container",children:[!t&&m.jsx("span",{className:"material-icons",children:"search"}),t&&m.jsx("div",{children:m.jsx(Gl,{size:"md"})}),m.jsx(Jn.Input,{autoFocus:!0,"aria-label":l("Quick search input"),onClick:a=>{a.stopPropagation()},role:"combobox",value:e,placeholder:r,onValueChange:n})]}),o&&m.jsx(el,{withPadding:!0})]})},u9=t=>{let e=!1;return u.Children.forEach(t,n=>{e=e||!!n}),e},L2=({onFilter:t,inputContent:e,inputValue:n,loading:r,showInput:i=!0,label:o,placeholder:l,children:a})=>{const s=u.useRef(null);return m.jsx(m.Fragment,{children:m.jsx("div",{className:"quick-search-container",children:m.jsxs(Jn,{label:o,shouldFilter:!1,ref:s,children:[i&&m.jsx(M2,{loading:r,withSeparator:u9(a),inputValue:n,onFilter:t,placeholder:l,children:e}),m.jsx(Jn.List,{children:m.jsx("div",{children:a})})]})})})},Ir=({children:t,onSelect:e,id:n})=>m.jsx(Jn.Item,{value:n,onSelect:e,children:t}),A2=({group:t,onSelect:e,renderElement:n})=>{var r,i;return!t.showWhenEmpty&&t.elements.length===0?null:m.jsx("div",{className:"pt-base",children:m.jsxs(Jn.Group,{heading:t.groupName,forceMount:!1,children:[(r=t.startActions)==null?void 0:r.map((o,l)=>m.jsx(Ir,{onSelect:o.onSelect,children:o.content},`${t.groupName}-action-${l}`)),t.elements.map((o,l)=>m.jsx(Ir,{id:`${t.groupName}-element-${l}`,onSelect:()=>{e==null||e(o)},children:n==null?void 0:n(o)},`${t.groupName}-element-${l}`)),(i=t.endActions)==null?void 0:i.map((o,l)=>m.jsx(Ir,{onSelect:o.onSelect,children:o.content},`${t.groupName}-action-${l}`)),t.emptyString&&t.elements.length===0&&m.jsx("span",{className:"ml-b clr-greyscale-500",children:t.emptyString})]},t.groupName)})},_i=({alwaysShowRight:t=!1,left:e,right:n})=>{const{isDesktop:r}=wn();return m.jsxs("div",{className:"c__quick-search-item-template",children:[m.jsx("div",{className:"c__quick-search-item-template__left",children:e}),r&&n&&m.jsx("div",{className:xe("c__quick-search-item-template__right",{"always-show-right":t,"show-right-on-focus":!t}),children:n})]})},d9=t=>m.jsx(R2,{direction:"vertical",...t}),f9=({tabs:t,defaultSelectedTab:e,fullWidth:n=!1})=>t.length===0?null:m.jsx("div",{className:xe("c__tabs",{"c__tabs__full-width":n}),children:m.jsxs(Yp,{defaultSelectedKey:e,children:[m.jsx(Jp,{"aria-label":"History of Ancient Rome",children:t.map(r=>m.jsxs(ev,{id:r.id,children:[r.icon&&m.jsx("span",{className:"material-icons",children:r.icon}),r.label]},r.id))}),t.map(r=>m.jsx(tv,{id:r.id,children:r.content},r.id))]})}),F2=u.createContext(null);function Ie(){const t=u.useContext(F2);if(t===null)throw new Error("No Tree Api Provided");return t}const K2=u.createContext(null);function h9(){const t=u.useContext(K2);if(t===null)throw new Error("Provide a NodesContext");return t}const j2=u.createContext(null);function p9(){const t=u.useContext(j2);if(t===null)throw new Error("Provide a DnDContext");return t}const H2=u.createContext(0);function V2(){u.useContext(H2)}function Or(t,e,n){return Math.max(Math.min(t,n),e)}function z2(t){return t&&t.isLeaf}function B2(t){return t&&t.isInternal&&!t.isOpen}function U2(t){var e;return t&&t.isOpen&&!(!((e=t.children)===null||e===void 0)&&e.length)}const W2=(t,e)=>{let n=t;for(;n;){if(n.id===e.id)return!0;n=n.parent}return!1},Z2=t=>{if(!t.parent)throw Error("Node does not have a parent");return t.parent.children.findIndex(e=>e.id===t.id)};function v9(){}function ea(t,e){if(!t)return null;if(t.id===e)return t;if(t.children)for(let n of t.children){const r=ea(n,e);if(r)return r}return null}function Qr(t,e){if(e(t),t.children)for(let n of t.children)Qr(n,e)}function G2(t){const e=Y2(t);let n;for(let r=0;r<e.length;++r)if(e[r]===t){n=g9(e,r);break}n==null||n.focus()}function q2(t){const e=Y2(t);let n;for(let r=0;r<e.length;++r)if(e[r]===t){n=m9(e,r);break}n==null||n.focus()}function g9(t,e){return e+1<t.length?t[e+1]:t[0]}function m9(t,e){return e-1>=0?t[e-1]:t[t.length-1]}function Y2(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 Kn(t,e){return typeof e=="boolean"?e:typeof e=="string"?t[e]:e(t)}function X2(t){return t===null?null:Ct(t)}function Ct(t){return typeof t=="string"?t:t.id}function y9(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}function J2(t,...e){if(t)return t(...e)}function Q2(t){return new Promise((e,n)=>{let r=0;function i(){r+=1,r===100&&n(),t()?e():setTimeout(i,10)}i()})}function ef(t){var e,n;const r=t.focusedNode;return r?r.isOpen?0:r.parent?r.childIndex+1:0:(n=(e=t.root.children)===null||e===void 0?void 0:e.length)!==null&&n!==void 0?n:0}function tf(t){const e=t.focusedNode;return e?e.isOpen?e.id:e.parent&&!e.parent.isRoot?e.parent.id:null:null}const b9=Object.freeze(Object.defineProperty({__proto__:null,access:Kn,bound:Or,dfs:ea,focusNextElement:G2,focusPrevElement:q2,getInsertIndex:ef,getInsertParentId:tf,identify:Ct,identifyNull:X2,indexOf:Z2,isClosed:B2,isDescendant:W2,isItem:z2,isOpenWithEmptyChildren:U2,mergeRefs:y9,noop:v9,safeRun:J2,waitFor:Q2,walk:Qr},Symbol.toStringTag,{value:"Module"})),C9={display:"flex",alignItems:"center",zIndex:1},S9={flex:1,height:"2px",background:"#4B91E2",borderRadius:"1px"},w9={width:"4px",height:"4px",boxShadow:"0 0 0 3px #4B91E2",borderRadius:"50%"},x9=u.memo(function({top:e,left:n,indent:r}){const i={position:"absolute",pointerEvents:"none",top:e-2+"px",left:n+"px",right:r+"px"};return m.jsxs("div",{style:Object.assign(Object.assign({},C9),i),children:[m.jsx("div",{style:Object.assign({},w9)}),m.jsx("div",{style:Object.assign({},S9)})]})});function E9({node:t,attrs:e,innerRef:n,children:r}){return m.jsx("div",Object.assign({},e,{ref:n,onFocus:i=>i.stopPropagation(),onClick:t.handleClick,children:r}))}function $9(t){return m.jsxs("div",{ref:t.dragHandle,style:t.style,children:[m.jsx("span",{onClick:e=>{e.stopPropagation(),t.node.toggle()},children:t.node.isLeaf?"🌳":t.node.isOpen?"🗁":"🗀"})," ",t.node.isEditing?m.jsx(D9,Object.assign({},t)):m.jsx(P9,Object.assign({},t))]})}function P9(t){return m.jsx(m.Fragment,{children:m.jsx("span",{children:t.node.data.name})})}function D9({node:t}){const e=u.useRef();return u.useEffect(()=>{var n,r;(n=e.current)===null||n===void 0||n.focus(),(r=e.current)===null||r===void 0||r.select()},[]),m.jsx("input",{ref:e,defaultValue:t.data.name,onBlur:()=>t.reset(),onKeyDown:n=>{var r;n.key==="Escape"&&t.reset(),n.key==="Enter"&&t.submit(((r=e.current)===null||r===void 0?void 0:r.value)||"")}})}function uo(t){return{type:"EDIT",id:t}}function T9(t={id:null},e){return e.type==="EDIT"?Object.assign(Object.assign({},t),{id:e.id}):t}function qt(t){return{type:"FOCUS",id:t}}function _9(){return{type:"TREE_BLUR"}}function I9(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 ei{constructor(e){this.handleClick=n=>{n.metaKey&&!this.tree.props.disableMultiSelection?this.isSelected?this.deselect():this.selectMulti():n.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===er}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,n;const r=this.childIndex;return(n=(e=this.parent)===null||e===void 0?void 0:e.children[r+1])!==null&&n!==void 0?n:null}isAncestorOf(e){if(!e)return!1;let n=e;for(;n;){if(n.id===this.id)return!0;n=n.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 ei(Object.assign({},this))}edit(){return this.tree.edit(this)}}const er="__REACT_ARBORIST_INTERNAL_ROOT__";function Vs(t){var e;function n(o,l,a){const s=t.accessId(o),c=new ei({tree:t,data:o,level:l,parent:a,id:s,children:null,isDraggable:t.isDraggable(o),rowIndex:null}),d=t.accessChildren(o);return d&&(c.children=d.map(f=>n(f,l+1,c))),c}const r=new ei({tree:t,id:er,data:{id:er},level:-1,parent:null,children:null,isDraggable:!0,rowIndex:null}),i=(e=t.props.data)!==null&&e!==void 0?e:[];return r.children=i.map(o=>n(o,0,r)),r}const tl={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 zs(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 n=t[e.id];return Object.assign(Object.assign({},t),{[e.id]:!n})}else return e.type==="VISIBILITY_CLEAR"?{}:t}function O9(t={filtered:{},unfiltered:{}},e){return e.type.startsWith("VISIBILITY")?e.filtered?Object.assign(Object.assign({},t),{filtered:zs(t.filtered,e)}):Object.assign(Object.assign({},t),{unfiltered:zs(t.unfiltered,e)}):t}const yn=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}}},Fe={clear:()=>({type:"SELECTION_CLEAR"}),only:t=>({type:"SELECTION_ONLY",id:Ct(t)}),add:t=>({type:"SELECTION_ADD",ids:(Array.isArray(t)?t:[t]).map(Ct)}),remove:t=>({type:"SELECTION_REMOVE",ids:(Array.isArray(t)?t:[t]).map(Ct)}),set:t=>Object.assign({type:"SELECTION_SET"},t),mostRecent:t=>({type:"SELECTION_MOST_RECENT",id:t===null?null:Ct(t)}),anchor:t=>({type:"SELECTION_ANCHOR",id:t===null?null:Ct(t)})};function k9(t=yn().nodes.selection,e){const n=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(r=>n.add(r)),Object.assign(Object.assign({},t),{ids:new Set(n)}));case"SELECTION_REMOVE":return e.ids.length===0?t:(e.ids.forEach(r=>n.delete(r)),Object.assign(Object.assign({},t),{ids:new Set(n)}));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 bn={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 N9(t=yn().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 yn().dnd;case"DND_HOVERING":return Object.assign(Object.assign({},t),{parentId:e.parentId,index:e.index});default:return t}}const R9={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"},M9=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:`translate(${e}px, ${n}px)`}},L9=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:`translate(${e+10}px, ${n+10}px)`}};function nf({offset:t,mouse:e,id:n,dragIds:r,isDragging:i}){return m.jsxs(A9,{isDragging:i,children:[m.jsx(F9,{offset:t,children:m.jsx(j9,{id:n,dragIds:r})}),m.jsx(K9,{mouse:e,count:r.length})]})}const A9=u.memo(function(e){return e.isDragging?m.jsx("div",{style:R9,children:e.children}):null});function F9(t){return m.jsx("div",{className:"row preview",style:M9(t.offset),children:t.children})}function K9(t){const{count:e,mouse:n}=t;return e>1?m.jsx("div",{className:"selected-count",style:L9(n),children:e}):null}const j9=u.memo(function(e){const n=Ie(),r=n.get(e.id);return r?m.jsx(n.renderNode,{preview:!0,node:r,style:{paddingLeft:r.level*n.indent,opacity:.2,background:"transparent"},tree:n}):null});function nl(){return nl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},nl.apply(null,arguments)}function Bs(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rl(t,e){return rl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},rl(t,e)}function H9(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,rl(t,e)}var Us=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function V9(t,e){return!!(t===e||Us(t)&&Us(e))}function z9(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!V9(t[n],e[n]))return!1;return!0}function fo(t,e){e===void 0&&(e=z9);var n,r=[],i,o=!1;function l(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return o&&n===this&&e(a,r)||(i=t.apply(this,a),o=!0,n=this,r=a),i}return l}var B9=typeof performance=="object"&&typeof performance.now=="function",Ws=B9?function(){return performance.now()}:function(){return Date.now()};function Zs(t){cancelAnimationFrame(t.id)}function U9(t,e){var n=Ws();function r(){Ws()-n>=e?t.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var ho=-1;function Gs(t){if(t===void 0&&(t=!1),ho===-1||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(e),ho=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return ho}var Yt=null;function qs(t){if(t===void 0&&(t=!1),Yt===null||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?Yt="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?Yt="negative":Yt="positive-ascending"),document.body.removeChild(e),Yt}return Yt}process.env.NODE_ENV;var W9=150,Z9=function(e,n){return e},kr=null,Nr=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(kr=new WeakSet,Nr=new WeakSet);function G9(t){var e,n=t.getItemOffset,r=t.getEstimatedTotalSize,i=t.getItemSize,o=t.getOffsetForIndexAndAlignment,l=t.getStartIndexForOffset,a=t.getStopIndexForStartIndex,s=t.initInstanceProps,c=t.shouldResetStyleCacheOnItemSizeChange,d=t.validateProps;return e=function(f){H9(p,f);function p(y){var h;return h=f.call(this,y)||this,h._instanceProps=s(h.props,Bs(h)),h._outerRef=void 0,h._resetIsScrollingTimeoutId=null,h.state={instance:Bs(h),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof h.props.initialScrollOffset=="number"?h.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},h._callOnItemsRendered=void 0,h._callOnItemsRendered=fo(function(g,b,C,S){return h.props.onItemsRendered({overscanStartIndex:g,overscanStopIndex:b,visibleStartIndex:C,visibleStopIndex:S})}),h._callOnScroll=void 0,h._callOnScroll=fo(function(g,b,C){return h.props.onScroll({scrollDirection:g,scrollOffset:b,scrollUpdateWasRequested:C})}),h._getItemStyle=void 0,h._getItemStyle=function(g){var b=h.props,C=b.direction,S=b.itemSize,P=b.layout,E=h._getItemStyleCache(c&&S,c&&P,c&&C),x;if(E.hasOwnProperty(g))x=E[g];else{var $=n(h.props,g,h._instanceProps),N=i(h.props,g,h._instanceProps),F=C==="horizontal"||P==="horizontal",V=C==="rtl",w=F?$:0;E[g]=x={position:"absolute",left:V?void 0:w,right:V?w:void 0,top:F?0:$,height:F?"100%":N,width:F?N:"100%"}}return x},h._getItemStyleCache=void 0,h._getItemStyleCache=fo(function(g,b,C){return{}}),h._onScrollHorizontal=function(g){var b=g.currentTarget,C=b.clientWidth,S=b.scrollLeft,P=b.scrollWidth;h.setState(function(E){if(E.scrollOffset===S)return null;var x=h.props.direction,$=S;if(x==="rtl")switch(qs()){case"negative":$=-S;break;case"positive-descending":$=P-C-S;break}return $=Math.max(0,Math.min($,P-C)),{isScrolling:!0,scrollDirection:E.scrollOffset<$?"forward":"backward",scrollOffset:$,scrollUpdateWasRequested:!1}},h._resetIsScrollingDebounced)},h._onScrollVertical=function(g){var b=g.currentTarget,C=b.clientHeight,S=b.scrollHeight,P=b.scrollTop;h.setState(function(E){if(E.scrollOffset===P)return null;var x=Math.max(0,Math.min(P,S-C));return{isScrolling:!0,scrollDirection:E.scrollOffset<x?"forward":"backward",scrollOffset:x,scrollUpdateWasRequested:!1}},h._resetIsScrollingDebounced)},h._outerRefSetter=function(g){var b=h.props.outerRef;h._outerRef=g,typeof b=="function"?b(g):b!=null&&typeof b=="object"&&b.hasOwnProperty("current")&&(b.current=g)},h._resetIsScrollingDebounced=function(){h._resetIsScrollingTimeoutId!==null&&Zs(h._resetIsScrollingTimeoutId),h._resetIsScrollingTimeoutId=U9(h._resetIsScrolling,W9)},h._resetIsScrolling=function(){h._resetIsScrollingTimeoutId=null,h.setState({isScrolling:!1},function(){h._getItemStyleCache(-1,null)})},h}p.getDerivedStateFromProps=function(h,g){return q9(h,g),d(h),null};var v=p.prototype;return v.scrollTo=function(h){h=Math.max(0,h),this.setState(function(g){return g.scrollOffset===h?null:{scrollDirection:g.scrollOffset<h?"forward":"backward",scrollOffset:h,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},v.scrollToItem=function(h,g){g===void 0&&(g="auto");var b=this.props,C=b.itemCount,S=b.layout,P=this.state.scrollOffset;h=Math.max(0,Math.min(h,C-1));var E=0;if(this._outerRef){var x=this._outerRef;S==="vertical"?E=x.scrollWidth>x.clientWidth?Gs():0:E=x.scrollHeight>x.clientHeight?Gs():0}this.scrollTo(o(this.props,h,g,P,this._instanceProps,E))},v.componentDidMount=function(){var h=this.props,g=h.direction,b=h.initialScrollOffset,C=h.layout;if(typeof b=="number"&&this._outerRef!=null){var S=this._outerRef;g==="horizontal"||C==="horizontal"?S.scrollLeft=b:S.scrollTop=b}this._callPropsCallbacks()},v.componentDidUpdate=function(){var h=this.props,g=h.direction,b=h.layout,C=this.state,S=C.scrollOffset,P=C.scrollUpdateWasRequested;if(P&&this._outerRef!=null){var E=this._outerRef;if(g==="horizontal"||b==="horizontal")if(g==="rtl")switch(qs()){case"negative":E.scrollLeft=-S;break;case"positive-ascending":E.scrollLeft=S;break;default:var x=E.clientWidth,$=E.scrollWidth;E.scrollLeft=$-x-S;break}else E.scrollLeft=S;else E.scrollTop=S}this._callPropsCallbacks()},v.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Zs(this._resetIsScrollingTimeoutId)},v.render=function(){var h=this.props,g=h.children,b=h.className,C=h.direction,S=h.height,P=h.innerRef,E=h.innerElementType,x=h.innerTagName,$=h.itemCount,N=h.itemData,F=h.itemKey,V=F===void 0?Z9:F,w=h.layout,M=h.outerElementType,B=h.outerTagName,A=h.style,U=h.useIsScrolling,T=h.width,R=this.state.isScrolling,k=C==="horizontal"||w==="horizontal",Z=k?this._onScrollHorizontal:this._onScrollVertical,I=this._getRangeToRender(),L=I[0],_=I[1],O=[];if($>0)for(var H=L;H<=_;H++)O.push(u.createElement(g,{data:N,key:V(H,N),index:H,isScrolling:U?R:void 0,style:this._getItemStyle(H)}));var K=r(this.props,this._instanceProps);return u.createElement(M||B||"div",{className:b,onScroll:Z,ref:this._outerRefSetter,style:nl({position:"relative",height:S,width:T,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:C},A)},u.createElement(E||x||"div",{children:O,ref:P,style:{height:k?"100%":K,pointerEvents:R?"none":void 0,width:k?K:"100%"}}))},v._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var h=this.props.itemCount;if(h>0){var g=this._getRangeToRender(),b=g[0],C=g[1],S=g[2],P=g[3];this._callOnItemsRendered(b,C,S,P)}}if(typeof this.props.onScroll=="function"){var E=this.state,x=E.scrollDirection,$=E.scrollOffset,N=E.scrollUpdateWasRequested;this._callOnScroll(x,$,N)}},v._getRangeToRender=function(){var h=this.props,g=h.itemCount,b=h.overscanCount,C=this.state,S=C.isScrolling,P=C.scrollDirection,E=C.scrollOffset;if(g===0)return[0,0,0,0];var x=l(this.props,E,this._instanceProps),$=a(this.props,x,E,this._instanceProps),N=!S||P==="backward"?Math.max(1,b):1,F=!S||P==="forward"?Math.max(1,b):1;return[Math.max(0,x-N),Math.max(0,Math.min(g-1,$+F)),x,$]},p}(u.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var q9=function(e,n){var r=e.children,i=e.direction,o=e.height,l=e.layout,a=e.innerTagName,s=e.outerTagName,c=e.width,d=n.instance;if(process.env.NODE_ENV!=="production"){(a!=null||s!=null)&&Nr&&!Nr.has(d)&&(Nr.add(d),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var f=i==="horizontal"||l==="horizontal";switch(i){case"horizontal":case"vertical":kr&&!kr.has(d)&&(kr.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(l){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+l+'" was specified.'))}if(r==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(r===null?"null":typeof r)+'" 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.'))}},Y9=G9({getItemOffset:function(e,n){var r=e.itemSize;return n*r},getItemSize:function(e,n){var r=e.itemSize;return r},getEstimatedTotalSize:function(e){var n=e.itemCount,r=e.itemSize;return r*n},getOffsetForIndexAndAlignment:function(e,n,r,i,o,l){var a=e.direction,s=e.height,c=e.itemCount,d=e.itemSize,f=e.layout,p=e.width,v=a==="horizontal"||f==="horizontal",y=v?p:s,h=Math.max(0,c*d-y),g=Math.min(h,n*d),b=Math.max(0,n*d-y+d+l);switch(r==="smart"&&(i>=b-y&&i<=g+y?r="auto":r="center"),r){case"start":return g;case"end":return b;case"center":{var C=Math.round(b+(g-b)/2);return C<Math.ceil(y/2)?0:C>h+Math.floor(y/2)?h:C}case"auto":default:return i>=b&&i<=g?i:i<b?b:g}},getStartIndexForOffset:function(e,n){var r=e.itemCount,i=e.itemSize;return Math.max(0,Math.min(r-1,Math.floor(n/i)))},getStopIndexForStartIndex:function(e,n,r){var i=e.direction,o=e.height,l=e.itemCount,a=e.itemSize,s=e.layout,c=e.width,d=i==="horizontal"||s==="horizontal",f=n*a,p=d?c:o,v=Math.ceil((p+r-f)/a);return Math.max(0,Math.min(l-1,n+v-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){var n=e.itemSize;if(process.env.NODE_ENV!=="production"&&typeof n!="number")throw Error('An invalid "itemSize" prop has been specified. Value should be a number. '+('"'+(n===null?"null":typeof n)+'" was specified.'))}});function X9(){var t,e;const n=Ie(),i=p9().cursor;if(!i||i.type!=="line")return null;const o=n.indent,l=n.rowHeight*i.index+((e=(t=n.props.padding)!==null&&t!==void 0?t:n.props.paddingTop)!==null&&e!==void 0?e:0),a=o*i.level,s=n.renderCursor;return m.jsx(s,{top:l,left:a,indent:o})}var J9=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const Q9=u.forwardRef(function(e,n){const{children:r}=e,i=J9(e,["children"]),o=Ie();return m.jsxs("div",Object.assign({ref:n},i,{onClick:l=>{l.currentTarget===l.target&&o.deselectAll()},children:[m.jsx(e3,{}),r]}))}),e3=()=>{const t=Ie();return m.jsx("div",{style:{height:t.visibleNodes.length*t.rowHeight,width:"100%",position:"absolute",left:"0",right:"0"},children:m.jsx(X9,{})})};var t3=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const n3=u.forwardRef(function(e,n){var r,i,o,l,{style:a}=e,s=t3(e,["style"]);const c=Ie(),d=(i=(r=c.props.padding)!==null&&r!==void 0?r:c.props.paddingTop)!==null&&i!==void 0?i:0,f=(l=(o=c.props.padding)!==null&&o!==void 0?o:c.props.paddingBottom)!==null&&l!==void 0?l:0;return m.jsx("div",Object.assign({ref:n,style:Object.assign(Object.assign({},a),{height:`${parseFloat(a.height)+d+f}px`})},s))});var rf=u.createContext({dragDropManager:void 0}),Re;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(Re||(Re={}));function Y(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[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 l=0;o=new Error(e.replace(/%s/g,function(){return r[l++]})),o.name="Invariant Violation"}throw o.framesToPop=1,o}}var ta="dnd-core/INIT_COORDS",Ii="dnd-core/BEGIN_DRAG",na="dnd-core/PUBLISH_DRAG_SOURCE",Oi="dnd-core/HOVER",ki="dnd-core/DROP",Ni="dnd-core/END_DRAG";function Ys(t,e){return{type:ta,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}function Rr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Rr=function(n){return typeof n}:Rr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Rr(t)}function r3(t,e,n){return e.split(".").reduce(function(r,i){return r&&r[i]?r[i]:n||null},t)}function i3(t,e){return t.filter(function(n){return n!==e})}function of(t){return Rr(t)==="object"}function o3(t,e){var n=new Map,r=function(l){n.set(l,n.has(l)?n.get(l)+1:1)};t.forEach(r),e.forEach(r);var i=[];return n.forEach(function(o,l){o===1&&i.push(l)}),i}function l3(t,e){return t.filter(function(n){return e.indexOf(n)>-1})}var a3={type:ta,payload:{clientOffset:null,sourceClientOffset:null}};function s3(t){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{publishSource:!0},i=r.publishSource,o=i===void 0?!0:i,l=r.clientOffset,a=r.getSourceClientOffset,s=t.getMonitor(),c=t.getRegistry();t.dispatch(Ys(l)),c3(n,s,c);var d=f3(n,s);if(d===null){t.dispatch(a3);return}var f=null;if(l){if(!a)throw new Error("getSourceClientOffset must be defined");u3(a),f=a(d)}t.dispatch(Ys(l,f));var p=c.getSource(d),v=p.beginDrag(s,d);if(v!=null){d3(v),c.pinSource(d);var y=c.getSourceType(d);return{type:Ii,payload:{itemType:y,item:v,sourceId:d,clientOffset:l||null,sourceClientOffset:f||null,isSourcePublic:!!o}}}}}function c3(t,e,n){Y(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(r){Y(n.getSource(r),"Expected sourceIds to be registered.")})}function u3(t){Y(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function d3(t){Y(of(t),"Item must be an object.")}function f3(t,e){for(var n=null,r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}function h3(t){return function(){var n=t.getMonitor();if(n.isDragging())return{type:na}}}function il(t,e){return e===null?t===null:Array.isArray(t)?t.some(function(n){return n===e}):t===e}function p3(t){return function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.clientOffset;v3(n);var o=n.slice(0),l=t.getMonitor(),a=t.getRegistry();g3(o,l,a);var s=l.getItemType();return m3(o,a,s),y3(o,l,a),{type:Oi,payload:{targetIds:o,clientOffset:i||null}}}}function v3(t){Y(Array.isArray(t),"Expected targetIds to be an array.")}function g3(t,e,n){Y(e.isDragging(),"Cannot call hover while not dragging."),Y(!e.didDrop(),"Cannot call hover after drop.");for(var r=0;r<t.length;r++){var i=t[r];Y(t.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");var o=n.getTarget(i);Y(o,"Expected targetIds to be registered.")}}function m3(t,e,n){for(var r=t.length-1;r>=0;r--){var i=t[r],o=e.getTargetType(i);il(o,n)||t.splice(r,1)}}function y3(t,e,n){t.forEach(function(r){var i=n.getTarget(r);i.hover(e,r)})}function Xs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Js(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Xs(Object(n),!0).forEach(function(r){b3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xs(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function b3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function C3(t){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.getMonitor(),i=t.getRegistry();S3(r);var o=E3(r);o.forEach(function(l,a){var s=w3(l,a,i,r),c={type:ki,payload:{dropResult:Js(Js({},n),s)}};t.dispatch(c)})}}function S3(t){Y(t.isDragging(),"Cannot call drop while not dragging."),Y(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function w3(t,e,n,r){var i=n.getTarget(t),o=i?i.drop(r,t):void 0;return x3(o),typeof o>"u"&&(o=e===0?{}:r.getDropResult()),o}function x3(t){Y(typeof t>"u"||of(t),"Drop result must either be an object or undefined.")}function E3(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function $3(t){return function(){var n=t.getMonitor(),r=t.getRegistry();P3(n);var i=n.getSourceId();if(i!=null){var o=r.getSource(i,!0);o.endDrag(n,i),r.unpinSource()}return{type:Ni}}}function P3(t){Y(t.isDragging(),"Cannot call endDrag while not dragging.")}function D3(t){return{beginDrag:s3(t),publishDragSource:h3(t),hover:p3(t),drop:C3(t),endDrag:$3(t)}}function T3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _3(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function I3(t,e,n){return e&&_3(t.prototype,e),t}function kn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var O3=function(){function t(e,n){var r=this;T3(this,t),kn(this,"store",void 0),kn(this,"monitor",void 0),kn(this,"backend",void 0),kn(this,"isSetUp",!1),kn(this,"handleRefCountChange",function(){var i=r.store.getState().refCount>0;r.backend&&(i&&!r.isSetUp?(r.backend.setup(),r.isSetUp=!0):!i&&r.isSetUp&&(r.backend.teardown(),r.isSetUp=!1))}),this.store=e,this.monitor=n,e.subscribe(this.handleRefCountChange)}return I3(t,[{key:"receiveBackend",value:function(n){this.backend=n}},{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 n=this,r=this.store.dispatch;function i(l){return function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var d=l.apply(n,s);typeof d<"u"&&r(d)}}var o=D3(this);return Object.keys(o).reduce(function(l,a){var s=o[a];return l[a]=i(s),l},{})}},{key:"dispatch",value:function(n){this.store.dispatch(n)}}]),t}();function Oe(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 Qs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ec=function(){return Math.random().toString(36).substring(7).split("").join(".")},tc={INIT:"@@redux/INIT"+ec(),REPLACE:"@@redux/REPLACE"+ec()};function k3(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 N3(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(L3(t))return"date";if(M3(t))return"error";var n=R3(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function R3(t){return typeof t.constructor=="function"?t.constructor.name:null}function M3(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function L3(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function Xt(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=N3(t)),e}function lf(t,e,n){var r;if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Oe(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 n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Oe(1):"Expected the enhancer to be a function. Instead, received: '"+Xt(n)+"'");return n(lf)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Oe(2):"Expected the root reducer to be a function. Instead, received: '"+Xt(t)+"'");var i=t,o=e,l=[],a=l,s=!1;function c(){a===l&&(a=l.slice())}function d(){if(s)throw new Error(process.env.NODE_ENV==="production"?Oe(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"?Oe(4):"Expected the listener to be a function. Instead, received: '"+Xt(h)+"'");if(s)throw new Error(process.env.NODE_ENV==="production"?Oe(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 g=!0;return c(),a.push(h),function(){if(g){if(s)throw new Error(process.env.NODE_ENV==="production"?Oe(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.");g=!1,c();var C=a.indexOf(h);a.splice(C,1),l=null}}}function p(h){if(!k3(h))throw new Error(process.env.NODE_ENV==="production"?Oe(7):"Actions must be plain objects. Instead, the actual type was: '"+Xt(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"?Oe(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"?Oe(9):"Reducers may not dispatch actions.");try{s=!0,o=i(o,h)}finally{s=!1}for(var g=l=a,b=0;b<g.length;b++){var C=g[b];C()}return h}function v(h){if(typeof h!="function")throw new Error(process.env.NODE_ENV==="production"?Oe(10):"Expected the nextReducer to be a function. Instead, received: '"+Xt(h));i=h,p({type:tc.REPLACE})}function y(){var h,g=f;return h={subscribe:function(C){if(typeof C!="object"||C===null)throw new Error(process.env.NODE_ENV==="production"?Oe(11):"Expected the observer to be an object. Instead, received: '"+Xt(C)+"'");function S(){C.next&&C.next(d())}S();var P=g(S);return{unsubscribe:P}}},h[Qs]=function(){return this},h}return p({type:tc.INIT}),r={dispatch:p,subscribe:f,getState:d,replaceReducer:v},r[Qs]=y,r}var A3=function(e,n){return e===n};function F3(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function K3(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:A3;if(t.length!==e.length)return!1;for(var r=0;r<t.length;++r)if(!n(t[r],e[r]))return!1;return!0}function nc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function rc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?nc(Object(n),!0).forEach(function(r){j3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nc(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function j3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ic={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function H3(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ic,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case ta:case Ii:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Oi:return F3(t.clientOffset,n.clientOffset)?t:rc(rc({},t),{},{clientOffset:n.clientOffset});case Ni:case ki:return ic;default:return t}}var ra="dnd-core/ADD_SOURCE",ia="dnd-core/ADD_TARGET",oa="dnd-core/REMOVE_SOURCE",Ri="dnd-core/REMOVE_TARGET";function V3(t){return{type:ra,payload:{sourceId:t}}}function z3(t){return{type:ia,payload:{targetId:t}}}function B3(t){return{type:oa,payload:{sourceId:t}}}function U3(t){return{type:Ri,payload:{targetId:t}}}function oc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ke(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?oc(Object(n),!0).forEach(function(r){W3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oc(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function W3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Z3={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function G3(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Z3,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case Ii:return ke(ke({},t),{},{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case na:return ke(ke({},t),{},{isSourcePublic:!0});case Oi:return ke(ke({},t),{},{targetIds:n.targetIds});case Ri:return t.targetIds.indexOf(n.targetId)===-1?t:ke(ke({},t),{},{targetIds:i3(t.targetIds,n.targetId)});case ki:return ke(ke({},t),{},{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Ni:return ke(ke({},t),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function q3(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case ra:case ia:return t+1;case oa:case Ri:return t-1;default:return t}}var ti=[],la=[];ti.__IS_NONE__=!0;la.__IS_ALL__=!0;function Y3(t,e){if(t===ti)return!1;if(t===la||typeof e>"u")return!0;var n=l3(e,t);return n.length>0}function X3(){var t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Oi:break;case ra:case ia:case Ri:case oa:return ti;case Ii:case na:case Ni:case ki:default:return la}var e=t.payload,n=e.targetIds,r=n===void 0?[]:n,i=e.prevTargetIds,o=i===void 0?[]:i,l=o3(r,o),a=l.length>0||!K3(r,o);if(!a)return ti;var s=o[o.length-1],c=r[r.length-1];return s!==c&&(s&&l.push(s),c&&l.push(c)),l}function J3(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return t+1}function lc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ac(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?lc(Object(n),!0).forEach(function(r){Q3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lc(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Q3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function em(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:X3(t.dirtyHandlerIds,{type:e.type,payload:ac(ac({},e.payload),{},{prevTargetIds:r3(t,"dragOperation.targetIds",[])})}),dragOffset:H3(t.dragOffset,e),refCount:q3(t.refCount,e),dragOperation:G3(t.dragOperation,e),stateId:J3(t.stateId)}}function tm(t,e){return{x:t.x+e.x,y:t.y+e.y}}function af(t,e){return{x:t.x-e.x,y:t.y-e.y}}function nm(t){var e=t.clientOffset,n=t.initialClientOffset,r=t.initialSourceClientOffset;return!e||!n||!r?null:af(tm(e,r),n)}function rm(t){var e=t.clientOffset,n=t.initialClientOffset;return!e||!n?null:af(e,n)}function im(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function om(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function lm(t,e,n){return e&&om(t.prototype,e),t}function sc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var am=function(){function t(e,n){im(this,t),sc(this,"store",void 0),sc(this,"registry",void 0),this.store=e,this.registry=n}return lm(t,[{key:"subscribeToStateChange",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{handlerIds:void 0},o=i.handlerIds;Y(typeof n=="function","listener must be a function."),Y(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");var l=this.store.getState().stateId,a=function(){var c=r.store.getState(),d=c.stateId;try{var f=d===l||d===l+1&&!Y3(c.dirtyHandlerIds,o);f||n()}finally{l=d}};return this.store.subscribe(a)}},{key:"subscribeToOffsetChange",value:function(n){var r=this;Y(typeof n=="function","listener must be a function.");var i=this.store.getState().dragOffset,o=function(){var a=r.store.getState().dragOffset;a!==i&&(i=a,n())};return this.store.subscribe(o)}},{key:"canDragSource",value:function(n){if(!n)return!1;var r=this.registry.getSource(n);return Y(r,"Expected to find a valid source. sourceId=".concat(n)),this.isDragging()?!1:r.canDrag(this,n)}},{key:"canDropOnTarget",value:function(n){if(!n)return!1;var r=this.registry.getTarget(n);if(Y(r,"Expected to find a valid target. targetId=".concat(n)),!this.isDragging()||this.didDrop())return!1;var i=this.registry.getTargetType(n),o=this.getItemType();return il(i,o)&&r.canDrop(this,n)}},{key:"isDragging",value:function(){return!!this.getItemType()}},{key:"isDraggingSource",value:function(n){if(!n)return!1;var r=this.registry.getSource(n,!0);if(Y(r,"Expected to find a valid source. sourceId=".concat(n)),!this.isDragging()||!this.isSourcePublic())return!1;var i=this.registry.getSourceType(n),o=this.getItemType();return i!==o?!1:r.isDragging(this,n)}},{key:"isOverTarget",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shallow:!1};if(!n)return!1;var i=r.shallow;if(!this.isDragging())return!1;var o=this.registry.getTargetType(n),l=this.getItemType();if(l&&!il(o,l))return!1;var a=this.getTargetIds();if(!a.length)return!1;var s=a.indexOf(n);return i?s===a.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 nm(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return rm(this.store.getState().dragOffset)}}]),t}(),sm=0;function cm(){return sm++}function Mr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mr=function(n){return typeof n}:Mr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Mr(t)}function um(t){Y(typeof t.canDrag=="function","Expected canDrag to be a function."),Y(typeof t.beginDrag=="function","Expected beginDrag to be a function."),Y(typeof t.endDrag=="function","Expected endDrag to be a function.")}function dm(t){Y(typeof t.canDrop=="function","Expected canDrop to be a function."),Y(typeof t.hover=="function","Expected hover to be a function."),Y(typeof t.drop=="function","Expected beginDrag to be a function.")}function ol(t,e){if(e&&Array.isArray(t)){t.forEach(function(n){return ol(n,!1)});return}Y(typeof t=="string"||Mr(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 cc=typeof global<"u"?global:self,sf=cc.MutationObserver||cc.WebKitMutationObserver;function cf(t){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),t()}}}function fm(t){let e=1;const n=new sf(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const hm=typeof sf=="function"?fm:cf;class pm{enqueueTask(e){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.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 n=this.index;if(this.index++,e[n].call(),this.index>this.capacity){for(let r=0,i=e.length-this.index;r<i;r++)e[r]=e[r+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=hm(this.flush),this.requestErrorThrow=cf(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class vm{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,n){this.onError=e,this.release=n,this.task=null}}class gm{create(e){const n=this.freeTasks,r=n.length?n.pop():new vm(this.onError,i=>n[n.length]=i);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const uf=new pm,mm=new gm(uf.registerPendingError);function ym(t){uf.enqueueTask(mm.create(t))}function bm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Cm(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Sm(t,e,n){return e&&Cm(t.prototype,e),t}function Jt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wm(t,e){return Pm(t)||$m(t,e)||Em(t,e)||xm()}function xm(){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 Em(t,e){if(t){if(typeof t=="string")return uc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uc(t,e)}}function uc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function $m(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function Pm(t){if(Array.isArray(t))return t}function Dm(t){var e=cm().toString();switch(t){case Re.SOURCE:return"S".concat(e);case Re.TARGET:return"T".concat(e);default:throw new Error("Unknown Handler Role: ".concat(t))}}function dc(t){switch(t[0]){case"S":return Re.SOURCE;case"T":return Re.TARGET;default:Y(!1,"Cannot parse handler ID: ".concat(t))}}function fc(t,e){var n=t.entries(),r=!1;do{var i=n.next(),o=i.done,l=wm(i.value,2),a=l[1];if(a===e)return!0;r=!!o}while(!r);return!1}var Tm=function(){function t(e){bm(this,t),Jt(this,"types",new Map),Jt(this,"dragSources",new Map),Jt(this,"dropTargets",new Map),Jt(this,"pinnedSourceId",null),Jt(this,"pinnedSource",null),Jt(this,"store",void 0),this.store=e}return Sm(t,[{key:"addSource",value:function(n,r){ol(n),um(r);var i=this.addHandler(Re.SOURCE,n,r);return this.store.dispatch(V3(i)),i}},{key:"addTarget",value:function(n,r){ol(n,!0),dm(r);var i=this.addHandler(Re.TARGET,n,r);return this.store.dispatch(z3(i)),i}},{key:"containsHandler",value:function(n){return fc(this.dragSources,n)||fc(this.dropTargets,n)}},{key:"getSource",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Y(this.isSourceId(n),"Expected a valid source ID.");var i=r&&n===this.pinnedSourceId,o=i?this.pinnedSource:this.dragSources.get(n);return o}},{key:"getTarget",value:function(n){return Y(this.isTargetId(n),"Expected a valid target ID."),this.dropTargets.get(n)}},{key:"getSourceType",value:function(n){return Y(this.isSourceId(n),"Expected a valid source ID."),this.types.get(n)}},{key:"getTargetType",value:function(n){return Y(this.isTargetId(n),"Expected a valid target ID."),this.types.get(n)}},{key:"isSourceId",value:function(n){var r=dc(n);return r===Re.SOURCE}},{key:"isTargetId",value:function(n){var r=dc(n);return r===Re.TARGET}},{key:"removeSource",value:function(n){var r=this;Y(this.getSource(n),"Expected an existing source."),this.store.dispatch(B3(n)),ym(function(){r.dragSources.delete(n),r.types.delete(n)})}},{key:"removeTarget",value:function(n){Y(this.getTarget(n),"Expected an existing target."),this.store.dispatch(U3(n)),this.dropTargets.delete(n),this.types.delete(n)}},{key:"pinSource",value:function(n){var r=this.getSource(n);Y(r,"Expected an existing source."),this.pinnedSourceId=n,this.pinnedSource=r}},{key:"unpinSource",value:function(){Y(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(n,r,i){var o=Dm(n);return this.types.set(o,r),n===Re.SOURCE?this.dragSources.set(o,i):n===Re.TARGET&&this.dropTargets.set(o,i),o}}]),t}();function _m(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=Im(r),o=new am(i,new Tm(i)),l=new O3(i,o),a=t(l,e,n);return l.receiveBackend(a),l}function Im(t){var e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return lf(em,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}var Om=["children"];function km(t,e){return Lm(t)||Mm(t,e)||Rm(t,e)||Nm()}function Nm(){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 Rm(t,e){if(t){if(typeof t=="string")return hc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hc(t,e)}}function hc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Mm(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function Lm(t){if(Array.isArray(t))return t}function Am(t,e){if(t==null)return{};var n=Fm(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Fm(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var pc=0,Lr=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),Km=u.memo(function(e){var n=e.children,r=Am(e,Om),i=jm(r),o=km(i,2),l=o[0],a=o[1];return u.useEffect(function(){if(a){var s=df();return++pc,function(){--pc===0&&(s[Lr]=null)}}},[]),m.jsx(rf.Provider,Object.assign({value:l},{children:n}),void 0)});function jm(t){if("manager"in t){var e={dragDropManager:t.manager};return[e,!1]}var n=Hm(t.backend,t.context,t.options,t.debugMode),r=!t.context;return[n,r]}function Hm(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:df(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=e;return i[Lr]||(i[Lr]={dragDropManager:_m(t,e,n,r)}),i[Lr]}function df(){return typeof global<"u"?global:window}function Vm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zm(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Bm(t,e,n){return e&&zm(t.prototype,e),t}function vc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var po=!1,vo=!1,Um=function(){function t(e){Vm(this,t),vc(this,"internalMonitor",void 0),vc(this,"sourceId",null),this.internalMonitor=e.getMonitor()}return Bm(t,[{key:"receiveHandlerId",value:function(n){this.sourceId=n}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){Y(!po,"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 po=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{po=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;Y(!vo,"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 vo=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{vo=!1}}},{key:"subscribeToStateChange",value:function(n,r){return this.internalMonitor.subscribeToStateChange(n,r)}},{key:"isDraggingSource",value:function(n){return this.internalMonitor.isDraggingSource(n)}},{key:"isOverTarget",value:function(n,r){return this.internalMonitor.isOverTarget(n,r)}},{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(n){return this.internalMonitor.subscribeToOffsetChange(n)}},{key:"canDragSource",value:function(n){return this.internalMonitor.canDragSource(n)}},{key:"canDropOnTarget",value:function(n){return this.internalMonitor.canDropOnTarget(n)}},{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 Wm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zm(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Gm(t,e,n){return e&&Zm(t.prototype,e),t}function gc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var go=!1,qm=function(){function t(e){Wm(this,t),gc(this,"internalMonitor",void 0),gc(this,"targetId",null),this.internalMonitor=e.getMonitor()}return Gm(t,[{key:"receiveHandlerId",value:function(n){this.targetId=n}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(n,r){return this.internalMonitor.subscribeToStateChange(n,r)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;Y(!go,"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 go=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{go=!1}}},{key:"isOver",value:function(n){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,n):!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 Ym(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 Xm(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!u.isValidElement(e)){var r=e;return t(r,n),r}var i=e;Ym(i);var o=n?function(l){return t(l,n)}:t;return Jm(i,o)}}function ff(t){var e={};return Object.keys(t).forEach(function(n){var r=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{var i=Xm(r);e[n]=function(){return i}}}),e}function mc(t,e){typeof t=="function"?t(e):t.current=e}function Jm(t,e){var n=t.ref;return Y(typeof n!="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"),n?u.cloneElement(t,{ref:function(i){mc(n,i),mc(e,i)}}):u.cloneElement(t,{ref:e})}function Ar(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ar=function(n){return typeof n}:Ar=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ar(t)}function ll(t){return t!==null&&Ar(t)==="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function al(t,e,n,r){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),l=Object.keys(e);if(o.length!==l.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(e),s=0;s<o.length;s++){var c=o[s];if(!a(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 Qm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e7(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function t7(t,e,n){return e&&e7(t.prototype,e),t}function ye(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var n7=function(){function t(e){var n=this;Qm(this,t),ye(this,"hooks",ff({dragSource:function(i,o){n.clearDragSource(),n.dragSourceOptions=o||null,ll(i)?n.dragSourceRef=i:n.dragSourceNode=i,n.reconnectDragSource()},dragPreview:function(i,o){n.clearDragPreview(),n.dragPreviewOptions=o||null,ll(i)?n.dragPreviewRef=i:n.dragPreviewNode=i,n.reconnectDragPreview()}})),ye(this,"handlerId",null),ye(this,"dragSourceRef",null),ye(this,"dragSourceNode",void 0),ye(this,"dragSourceOptionsInternal",null),ye(this,"dragSourceUnsubscribe",void 0),ye(this,"dragPreviewRef",null),ye(this,"dragPreviewNode",void 0),ye(this,"dragPreviewOptionsInternal",null),ye(this,"dragPreviewUnsubscribe",void 0),ye(this,"lastConnectedHandlerId",null),ye(this,"lastConnectedDragSource",null),ye(this,"lastConnectedDragSourceOptions",null),ye(this,"lastConnectedDragPreview",null),ye(this,"lastConnectedDragPreviewOptions",null),ye(this,"backend",void 0),this.backend=e}return t7(t,[{key:"receiveHandlerId",value:function(n){this.handlerId!==n&&(this.handlerId=n,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(n){this.dragSourceOptionsInternal=n}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(n){this.dragPreviewOptionsInternal=n}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var n=this.dragSource,r=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();if(r&&this.disconnectDragSource(),!!this.handlerId){if(!n){this.lastConnectedDragSource=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=n,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,n,this.dragSourceOptions))}}},{key:"reconnectDragPreview",value:function(){var n=this.dragPreview,r=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,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!al(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!al(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 r7(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i7(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o7(t,e,n){return e&&i7(t.prototype,e),t}function We(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l7=function(){function t(e){var n=this;r7(this,t),We(this,"hooks",ff({dropTarget:function(i,o){n.clearDropTarget(),n.dropTargetOptions=o,ll(i)?n.dropTargetRef=i:n.dropTargetNode=i,n.reconnect()}})),We(this,"handlerId",null),We(this,"dropTargetRef",null),We(this,"dropTargetNode",void 0),We(this,"dropTargetOptionsInternal",null),We(this,"unsubscribeDropTarget",void 0),We(this,"lastConnectedHandlerId",null),We(this,"lastConnectedDropTarget",null),We(this,"lastConnectedDropTargetOptions",null),We(this,"backend",void 0),this.backend=e}return o7(t,[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var n=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();n&&this.disconnectDropTarget();var r=this.dropTarget;if(this.handlerId){if(!r){this.lastConnectedDropTarget=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=r,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,r,this.dropTargetOptions))}}},{key:"receiveHandlerId",value:function(n){n!==this.handlerId&&(this.handlerId=n,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(n){this.dropTargetOptionsInternal=n}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!al(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 a7(t,e,n){var r=n.getRegistry(),i=r.addTarget(t,e);return[i,function(){return r.removeTarget(i)}]}function s7(t,e,n){var r=n.getRegistry(),i=r.addSource(t,e);return[i,function(){return r.removeSource(i)}]}var Lt=typeof window<"u"?u.useLayoutEffect:u.useEffect;function Fr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fr=function(n){return typeof n}:Fr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Fr(t)}function c7(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u7(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d7(t,e,n){return e&&u7(t.prototype,e),t}function mo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var f7=function(){function t(e,n,r){c7(this,t),mo(this,"spec",void 0),mo(this,"monitor",void 0),mo(this,"connector",void 0),this.spec=e,this.monitor=n,this.connector=r}return d7(t,[{key:"beginDrag",value:function(){var n,r=this.spec,i=this.monitor,o=null;return Fr(r.item)==="object"?o=r.item:typeof r.item=="function"?o=r.item(i):o={},(n=o)!==null&&n!==void 0?n:null}},{key:"canDrag",value:function(){var n=this.spec,r=this.monitor;return typeof n.canDrag=="boolean"?n.canDrag:typeof n.canDrag=="function"?n.canDrag(r):!0}},{key:"isDragging",value:function(n,r){var i=this.spec,o=this.monitor,l=i.isDragging;return l?l(o):r===n.getSourceId()}},{key:"endDrag",value:function(){var n=this.spec,r=this.monitor,i=this.connector,o=n.end;o&&o(r.getItem(),r),i.reconnect()}}]),t}();function h7(t,e,n){var r=u.useMemo(function(){return new f7(t,e,n)},[e,n]);return u.useEffect(function(){r.spec=t},[t]),r}function Vt(){var t=u.useContext(rf),e=t.dragDropManager;return Y(e!=null,"Expected drag drop context"),e}function p7(t){return u.useMemo(function(){var e=t.type;return Y(e!=null,"spec.type must be defined"),e},[t])}function v7(t,e){return b7(t)||y7(t,e)||m7(t,e)||g7()}function g7(){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 m7(t,e){if(t){if(typeof t=="string")return yc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yc(t,e)}}function yc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function y7(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function b7(t){if(Array.isArray(t))return t}function C7(t,e,n){var r=Vt(),i=h7(t,e,n),o=p7(t);Lt(function(){if(o!=null){var a=s7(o,i,r),s=v7(a,2),c=s[0],d=s[1];return e.receiveHandlerId(c),n.receiveHandlerId(c),d}},[r,e,n,i,o])}function S7(t){return $7(t)||E7(t)||x7(t)||w7()}function w7(){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 x7(t,e){if(t){if(typeof t=="string")return sl(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sl(t,e)}}function E7(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function $7(t){if(Array.isArray(t))return sl(t)}function sl(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function hf(t,e){var n=S7(e||[]);return e==null&&typeof t!="function"&&n.push(t),u.useMemo(function(){return typeof t=="function"?t():t},n)}function P7(){var t=Vt();return u.useMemo(function(){return new Um(t)},[t])}function D7(t,e){var n=Vt(),r=u.useMemo(function(){return new n7(n.getBackend())},[n]);return Lt(function(){return r.dragSourceOptions=t||null,r.reconnect(),function(){return r.disconnectDragSource()}},[r,t]),Lt(function(){return r.dragPreviewOptions=e||null,r.reconnect(),function(){return r.disconnectDragPreview()}},[r,e]),r}var yo,bc;function T7(){return bc||(bc=1,yo=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!t(e[i],n[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){var l=o[i];if(!t(e[l],n[l]))return!1}return!0}return e!==e&&n!==n}),yo}var _7=T7();const I7=Bf(_7);function O7(t,e){return M7(t)||R7(t,e)||N7(t,e)||k7()}function k7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
93
93
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function N7(t,e){if(t){if(typeof t=="string")return Cc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cc(t,e)}}function Cc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function R7(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function M7(t){if(Array.isArray(t))return t}function pf(t,e,n){var r=u.useState(function(){return e(t)}),i=O7(r,2),o=i[0],l=i[1],a=u.useCallback(function(){var s=e(t);I7(o,s)||(l(s),n&&n())},[o,t,n]);return Lt(a),[o,a]}function L7(t,e){return j7(t)||K7(t,e)||F7(t,e)||A7()}function A7(){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 F7(t,e){if(t){if(typeof t=="string")return Sc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Sc(t,e)}}function Sc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function K7(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function j7(t){if(Array.isArray(t))return t}function H7(t,e,n){var r=pf(t,e,n),i=L7(r,2),o=i[0],l=i[1];return Lt(function(){var s=t.getHandlerId();if(s!=null)return t.subscribeToStateChange(l,{handlerIds:[s]})},[t,l]),o}function vf(t,e,n){return H7(e,t||function(){return{}},function(){return n.reconnect()})}function V7(t){return u.useMemo(function(){return t.hooks.dragSource()},[t])}function z7(t){return u.useMemo(function(){return t.hooks.dragPreview()},[t])}function B7(t,e){var n=hf(t,e);Y(!n.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 r=P7(),i=D7(n.options,n.previewOptions);return C7(n,r,i),[vf(n.collect,r,i),V7(i),z7(i)]}function U7(t){var e=t.accept;return u.useMemo(function(){return Y(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]},[e])}function W7(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Z7(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function G7(t,e,n){return e&&Z7(t.prototype,e),t}function xc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var q7=function(){function t(e,n){W7(this,t),xc(this,"spec",void 0),xc(this,"monitor",void 0),this.spec=e,this.monitor=n}return G7(t,[{key:"canDrop",value:function(){var n=this.spec,r=this.monitor;return n.canDrop?n.canDrop(r.getItem(),r):!0}},{key:"hover",value:function(){var n=this.spec,r=this.monitor;n.hover&&n.hover(r.getItem(),r)}},{key:"drop",value:function(){var n=this.spec,r=this.monitor;if(n.drop)return n.drop(r.getItem(),r)}}]),t}();function Y7(t,e){var n=u.useMemo(function(){return new q7(t,e)},[e]);return u.useEffect(function(){n.spec=t},[t]),n}function X7(t,e){return ty(t)||ey(t,e)||Q7(t,e)||J7()}function J7(){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 Q7(t,e){if(t){if(typeof t=="string")return wc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wc(t,e)}}function wc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ey(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function ty(t){if(Array.isArray(t))return t}function ny(t,e,n){var r=Vt(),i=Y7(t,e),o=U7(t);Lt(function(){var a=a7(o,i,r),s=X7(a,2),c=s[0],d=s[1];return e.receiveHandlerId(c),n.receiveHandlerId(c),d},[r,e,i,n,o.map(function(l){return l.toString()}).join("|")])}function ry(){var t=Vt();return u.useMemo(function(){return new qm(t)},[t])}function iy(t){var e=Vt(),n=u.useMemo(function(){return new l7(e.getBackend())},[e]);return Lt(function(){return n.dropTargetOptions=t||null,n.reconnect(),function(){return n.disconnectDropTarget()}},[t]),n}function oy(t){return u.useMemo(function(){return t.hooks.dropTarget()},[t])}function gf(t,e){var n=hf(t,e),r=ry(),i=iy(n.options);return ny(n,r,i),[vf(n.collect,r,i),oy(i)]}function ly(t,e){return uy(t)||cy(t,e)||sy(t,e)||ay()}function ay(){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 sy(t,e){if(t){if(typeof t=="string")return Ec(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ec(t,e)}}function Ec(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function cy(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function uy(t){if(Array.isArray(t))return t}function dy(t){var e=Vt(),n=e.getMonitor(),r=pf(n,t),i=ly(r,2),o=i[0],l=i[1];return u.useEffect(function(){return n.subscribeToOffsetChange(l)}),u.useEffect(function(){return n.subscribeToStateChange(l)}),o}function mf(t){var e=null,n=function(){return e==null&&(e=t()),e};return n}function fy(t,e){return t.filter(function(n){return n!==e})}function hy(t,e){var n=new Set,r=function(l){return n.add(l)};t.forEach(r),e.forEach(r);var i=[];return n.forEach(function(o){return i.push(o)}),i}function py(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function gy(t,e,n){return e&&vy(t.prototype,e),t}function $c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var my=function(){function t(e){py(this,t),$c(this,"entered",[]),$c(this,"isNodeInDocument",void 0),this.isNodeInDocument=e}return gy(t,[{key:"enter",value:function(n){var r=this,i=this.entered.length,o=function(a){return r.isNodeInDocument(a)&&(!a.contains||a.contains(n))};return this.entered=hy(this.entered.filter(o),[n]),i===0&&this.entered.length>0}},{key:"leave",value:function(n){var r=this.entered.length;return this.entered=fy(this.entered.filter(this.isNodeInDocument),n),r>0&&this.entered.length===0}},{key:"reset",value:function(){this.entered=[]}}]),t}(),yy=mf(function(){return/firefox/i.test(navigator.userAgent)}),yf=mf(function(){return!!window.safari});function by(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Cy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Sy(t,e,n){return e&&Cy(t.prototype,e),t}function Nn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Pc=function(){function t(e,n){by(this,t),Nn(this,"xs",void 0),Nn(this,"ys",void 0),Nn(this,"c1s",void 0),Nn(this,"c2s",void 0),Nn(this,"c3s",void 0);for(var r=e.length,i=[],o=0;o<r;o++)i.push(o);i.sort(function(R,F){return e[R]<e[F]?-1:1});for(var l=[],a=[],s,c,d=0;d<r-1;d++)s=e[d+1]-e[d],c=n[d+1]-n[d],l.push(s),a.push(c/s);for(var f=[a[0]],p=0;p<l.length-1;p++){var v=a[p],b=a[p+1];if(v*b<=0)f.push(0);else{s=l[p];var h=l[p+1],g=s+h;f.push(3*g/((g+h)/v+(g+s)/b))}}f.push(a[a.length-1]);for(var m=[],C=[],S,P=0;P<f.length-1;P++){S=a[P];var $=f[P],w=1/l[P],E=$+f[P+1]-S-S;m.push((S-$-E)*w),C.push(E*w*w)}this.xs=e,this.ys=n,this.c1s=f,this.c2s=m,this.c3s=C}return Sy(t,[{key:"interpolate",value:function(n){var r=this.xs,i=this.ys,o=this.c1s,l=this.c2s,a=this.c3s,s=r.length-1;if(n===r[s])return i[s];for(var c=0,d=a.length-1,f;c<=d;){f=Math.floor(.5*(c+d));var p=r[f];if(p<n)c=f+1;else if(p>n)d=f-1;else return i[f]}s=Math.max(0,d);var v=n-r[s],b=v*v;return i[s]+o[s]*v+l[s]*b+a[s]*v*b}}]),t}(),xy=1;function bf(t){var e=t.nodeType===xy?t:t.parentElement;if(!e)return null;var n=e.getBoundingClientRect(),r=n.top,i=n.left;return{x:i,y:r}}function Sr(t){return{x:t.clientX,y:t.clientY}}function wy(t){var e;return t.nodeName==="IMG"&&(yy()||!((e=document.documentElement)!==null&&e!==void 0&&e.contains(t)))}function Ey(t,e,n,r){var i=t?e.width:n,o=t?e.height:r;return yf()&&t&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function $y(t,e,n,r,i){var o=wy(e),l=o?t:e,a=bf(l),s={x:n.x-a.x,y:n.y-a.y},c=t.offsetWidth,d=t.offsetHeight,f=r.anchorX,p=r.anchorY,v=Ey(o,e,c,d),b=v.dragPreviewWidth,h=v.dragPreviewHeight,g=function(){var E=new Pc([0,.5,1],[s.y,s.y/d*h,s.y+h-d]),R=E.interpolate(p);return yf()&&o&&(R+=(window.devicePixelRatio-1)*h),R},m=function(){var E=new Pc([0,.5,1],[s.x,s.x/c*b,s.x+b-c]);return E.interpolate(f)},C=i.offsetX,S=i.offsetY,P=C===0||C,$=S===0||S;return{x:P?C:m(),y:$?S:g()}}var Cf="__NATIVE_FILE__",Sf="__NATIVE_URL__",xf="__NATIVE_TEXT__",wf="__NATIVE_HTML__";const Dc=Object.freeze(Object.defineProperty({__proto__:null,FILE:Cf,HTML:wf,TEXT:xf,URL:Sf},Symbol.toStringTag,{value:"Module"}));function bo(t,e,n){var r=e.reduce(function(i,o){return i||t.getData(o)},"");return r??n}var Qt;function xr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var cl=(Qt={},xr(Qt,Cf,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items},dataTransfer:function(e){return e}},matchesTypes:["Files"]}),xr(Qt,wf,{exposeProperties:{html:function(e,n){return bo(e,n,"")},dataTransfer:function(e){return e}},matchesTypes:["Html","text/html"]}),xr(Qt,Sf,{exposeProperties:{urls:function(e,n){return bo(e,n,"").split(`
97
- `)},dataTransfer:function(e){return e}},matchesTypes:["Url","text/uri-list"]}),xr(Qt,xf,{exposeProperties:{text:function(e,n){return bo(e,n,"")},dataTransfer:function(e){return e}},matchesTypes:["Text","text/plain"]}),Qt);function Py(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Dy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ty(t,e,n){return e&&Dy(t.prototype,e),t}function Tc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _y=function(){function t(e){Py(this,t),Tc(this,"item",void 0),Tc(this,"config",void 0),this.config=e,this.item={},this.initializeExposedProperties()}return Ty(t,[{key:"initializeExposedProperties",value:function(){var n=this;Object.keys(this.config.exposeProperties).forEach(function(r){Object.defineProperty(n.item,r,{configurable:!0,enumerable:!0,get:function(){return console.warn(`Browser doesn't allow reading "`.concat(r,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(n){var r=this;if(n){var i={};Object.keys(this.config.exposeProperties).forEach(function(o){i[o]={value:r.config.exposeProperties[o](n,r.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(n,r){return r===n.getSourceId()}},{key:"endDrag",value:function(){}}]),t}();function Iy(t,e){var n=new _y(cl[t]);return n.loadDataTransfer(e),n}function Co(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(cl).filter(function(n){var r=cl[n].matchesTypes;return r.some(function(i){return e.indexOf(i)>-1})})[0]||null}function Oy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ky(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ny(t,e,n){return e&&ky(t.prototype,e),t}function So(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ry=function(){function t(e,n){Oy(this,t),So(this,"ownerDocument",null),So(this,"globalContext",void 0),So(this,"optionsArgs",void 0),this.globalContext=e,this.optionsArgs=n}return Ny(t,[{key:"window",get:function(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}},{key:"document",get:function(){var n;return(n=this.globalContext)!==null&&n!==void 0&&n.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var n;return((n=this.optionsArgs)===null||n===void 0?void 0:n.rootElement)||this.window}}]),t}();function _c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ic(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?_c(Object(n),!0).forEach(function(r){Q(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_c(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function My(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ly(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ay(t,e,n){return e&&Ly(t.prototype,e),t}function Q(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Fy=function(){function t(e,n,r){var i=this;My(this,t),Q(this,"options",void 0),Q(this,"actions",void 0),Q(this,"monitor",void 0),Q(this,"registry",void 0),Q(this,"enterLeaveCounter",void 0),Q(this,"sourcePreviewNodes",new Map),Q(this,"sourcePreviewNodeOptions",new Map),Q(this,"sourceNodes",new Map),Q(this,"sourceNodeOptions",new Map),Q(this,"dragStartSourceIds",null),Q(this,"dropTargetIds",[]),Q(this,"dragEnterTargetIds",[]),Q(this,"currentNativeSource",null),Q(this,"currentNativeHandle",null),Q(this,"currentDragSourceNode",null),Q(this,"altKeyPressed",!1),Q(this,"mouseMoveTimeoutTimer",null),Q(this,"asyncEndDragFrameId",null),Q(this,"dragOverTargetIds",null),Q(this,"lastClientOffset",null),Q(this,"hoverRafId",null),Q(this,"getSourceClientOffset",function(o){var l=i.sourceNodes.get(o);return l&&bf(l)||null}),Q(this,"endDragNativeItem",function(){i.isDraggingNativeItem()&&(i.actions.endDrag(),i.currentNativeHandle&&i.registry.removeSource(i.currentNativeHandle),i.currentNativeHandle=null,i.currentNativeSource=null)}),Q(this,"isNodeInDocument",function(o){return!!(o&&i.document&&i.document.body&&i.document.body.contains(o))}),Q(this,"endDragIfSourceWasRemovedFromDOM",function(){var o=i.currentDragSourceNode;o==null||i.isNodeInDocument(o)||i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),Q(this,"handleTopDragStartCapture",function(){i.clearCurrentDragSourceNode(),i.dragStartSourceIds=[]}),Q(this,"handleTopDragStart",function(o){if(!o.defaultPrevented){var l=i.dragStartSourceIds;i.dragStartSourceIds=null;var a=Sr(o);i.monitor.isDragging()&&i.actions.endDrag(),i.actions.beginDrag(l||[],{publishSource:!1,getSourceClientOffset:i.getSourceClientOffset,clientOffset:a});var s=o.dataTransfer,c=Co(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 v=i.getCurrentSourcePreviewNodeOptions(),b=v.anchorX,h=v.anchorY,g=v.offsetX,m=v.offsetY,C={anchorX:b,anchorY:h},S={offsetX:g,offsetY:m},P=$y(f,p,a,C,S);s.setDragImage(p,P.x,P.y)}}try{s==null||s.setData("application/json",{})}catch{}i.setCurrentDragSourceNode(o.target);var $=i.getCurrentSourcePreviewNodeOptions(),w=$.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()}}}),Q(this,"handleTopDragEndCapture",function(){i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),Q(this,"handleTopDragEnterCapture",function(o){i.dragEnterTargetIds=[];var l=i.enterLeaveCounter.enter(o.target);if(!(!l||i.monitor.isDragging())){var a=o.dataTransfer,s=Co(a);s&&i.beginDragNativeItem(s,a)}}),Q(this,"handleTopDragEnter",function(o){var l=i.dragEnterTargetIds;if(i.dragEnterTargetIds=[],!!i.monitor.isDragging()){i.altKeyPressed=o.altKey,l.length>0&&i.actions.hover(l,{clientOffset:Sr(o)});var a=l.some(function(s){return i.monitor.canDropOnTarget(s)});a&&(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=i.getCurrentDropEffect()))}}),Q(this,"handleTopDragOverCapture",function(){i.dragOverTargetIds=[]}),Q(this,"handleTopDragOver",function(o){var l=i.dragOverTargetIds;if(i.dragOverTargetIds=[],!i.monitor.isDragging()){o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none");return}i.altKeyPressed=o.altKey,i.lastClientOffset=Sr(o),i.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(i.hoverRafId=requestAnimationFrame(function(){i.monitor.isDragging()&&i.actions.hover(l||[],{clientOffset:i.lastClientOffset}),i.hoverRafId=null}));var a=(l||[]).some(function(s){return i.monitor.canDropOnTarget(s)});a?(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=i.getCurrentDropEffect())):i.isDraggingNativeItem()?o.preventDefault():(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none"))}),Q(this,"handleTopDragLeaveCapture",function(o){i.isDraggingNativeItem()&&o.preventDefault();var l=i.enterLeaveCounter.leave(o.target);l&&i.isDraggingNativeItem()&&setTimeout(function(){return i.endDragNativeItem()},0)}),Q(this,"handleTopDropCapture",function(o){if(i.dropTargetIds=[],i.isDraggingNativeItem()){var l;o.preventDefault(),(l=i.currentNativeSource)===null||l===void 0||l.loadDataTransfer(o.dataTransfer)}else Co(o.dataTransfer)&&o.preventDefault();i.enterLeaveCounter.reset()}),Q(this,"handleTopDrop",function(o){var l=i.dropTargetIds;i.dropTargetIds=[],i.actions.hover(l,{clientOffset:Sr(o)}),i.actions.drop({dropEffect:i.getCurrentDropEffect()}),i.isDraggingNativeItem()?i.endDragNativeItem():i.monitor.isDragging()&&i.actions.endDrag()}),Q(this,"handleSelectStart",function(o){var l=o.target;typeof l.dragDrop=="function"&&(l.tagName==="INPUT"||l.tagName==="SELECT"||l.tagName==="TEXTAREA"||l.isContentEditable||(o.preventDefault(),l.dragDrop()))}),this.options=new Ry(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new my(this.isNodeInDocument)}return Ay(t,[{key:"profile",value:function(){var n,r;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((n=this.dragStartSourceIds)===null||n===void 0?void 0:n.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((r=this.dragOverTargetIds)===null||r===void 0?void 0:r.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 n=this.rootElement;if(n!==void 0){if(n.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");n.__isReactDndBackendSetUp=!0,this.addEventListeners(n)}}},{key:"teardown",value:function(){var n=this.rootElement;if(n!==void 0&&(n.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var r;(r=this.window)===null||r===void 0||r.cancelAnimationFrame(this.asyncEndDragFrameId)}}},{key:"connectDragPreview",value:function(n,r,i){var o=this;return this.sourcePreviewNodeOptions.set(n,i),this.sourcePreviewNodes.set(n,r),function(){o.sourcePreviewNodes.delete(n),o.sourcePreviewNodeOptions.delete(n)}}},{key:"connectDragSource",value:function(n,r,i){var o=this;this.sourceNodes.set(n,r),this.sourceNodeOptions.set(n,i);var l=function(c){return o.handleDragStart(c,n)},a=function(c){return o.handleSelectStart(c)};return r.setAttribute("draggable","true"),r.addEventListener("dragstart",l),r.addEventListener("selectstart",a),function(){o.sourceNodes.delete(n),o.sourceNodeOptions.delete(n),r.removeEventListener("dragstart",l),r.removeEventListener("selectstart",a),r.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(n,r){var i=this,o=function(c){return i.handleDragEnter(c,n)},l=function(c){return i.handleDragOver(c,n)},a=function(c){return i.handleDrop(c,n)};return r.addEventListener("dragenter",o),r.addEventListener("dragover",l),r.addEventListener("drop",a),function(){r.removeEventListener("dragenter",o),r.removeEventListener("dragover",l),r.removeEventListener("drop",a)}}},{key:"addEventListeners",value:function(n){n.addEventListener&&(n.addEventListener("dragstart",this.handleTopDragStart),n.addEventListener("dragstart",this.handleTopDragStartCapture,!0),n.addEventListener("dragend",this.handleTopDragEndCapture,!0),n.addEventListener("dragenter",this.handleTopDragEnter),n.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),n.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),n.addEventListener("dragover",this.handleTopDragOver),n.addEventListener("dragover",this.handleTopDragOverCapture,!0),n.addEventListener("drop",this.handleTopDrop),n.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(n){n.removeEventListener&&(n.removeEventListener("dragstart",this.handleTopDragStart),n.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),n.removeEventListener("dragend",this.handleTopDragEndCapture,!0),n.removeEventListener("dragenter",this.handleTopDragEnter),n.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),n.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),n.removeEventListener("dragover",this.handleTopDragOver),n.removeEventListener("dragover",this.handleTopDragOverCapture,!0),n.removeEventListener("drop",this.handleTopDrop),n.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var n=this.monitor.getSourceId(),r=this.sourceNodeOptions.get(n);return Ic({dropEffect:this.altKeyPressed?"copy":"move"},r||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var n=this.monitor.getSourceId(),r=this.sourcePreviewNodeOptions.get(n);return Ic({anchorX:.5,anchorY:.5,captureDraggingState:!1},r||{})}},{key:"isDraggingNativeItem",value:function(){var n=this.monitor.getItemType();return Object.keys(Dc).some(function(r){return Dc[r]===n})}},{key:"beginDragNativeItem",value:function(n,r){this.clearCurrentDragSourceNode(),this.currentNativeSource=Iy(n,r),this.currentNativeHandle=this.registry.addSource(n,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(n){var r=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=n;var i=1e3;this.mouseMoveTimeoutTimer=setTimeout(function(){var o;return(o=r.rootElement)===null||o===void 0?void 0:o.addEventListener("mousemove",r.endDragIfSourceWasRemovedFromDOM,!0)},i)}},{key:"clearCurrentDragSourceNode",value:function(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var n;(n=this.window)===null||n===void 0||n.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}},{key:"handleDragStart",value:function(n,r){n.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(r))}},{key:"handleDragEnter",value:function(n,r){this.dragEnterTargetIds.unshift(r)}},{key:"handleDragOver",value:function(n,r){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(r)}},{key:"handleDrop",value:function(n,r){this.dropTargetIds.unshift(r)}}]),t}(),wr;function Ky(){return wr||(wr=new Image,wr.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),wr}var jy=function(e,n,r){return new Fy(e,n,r)};function Hy(t){const e=Ie(),n=e.selectedIds,[r,i,o]=B7(()=>({canDrag:()=>t.isDraggable,type:"NODE",item:()=>{const l=e.isSelected(t.id)?Array.from(n):[t.id];return e.dispatch(bn.dragStart(t.id,l)),{id:t.id,dragIds:l}},end:()=>{e.hideCursor(),e.dispatch(bn.dragEnd())}}),[n,t]);return u.useEffect(()=>{o(Ky())},[o]),i}function Vy(t,e){const n=t.getBoundingClientRect(),r=e.x-Math.round(n.x),i=e.y-Math.round(n.y),o=n.height,l=i<o/2,a=!l,s=o/4,c=i>s&&i<o-s;return{x:r,inTopHalf:l,inBottomHalf:a,inMiddle:c,atTop:!c&&l,atBottom:!c&&a}}function zy(t,e,n,r){return t?t.isInternal?r.atTop?[e,t]:r.inMiddle?[t,t]:[t,n]:r.inTopHalf?[e,t]:[t,n]:[e,null]}function Er(t,e){return{parentId:t||null,index:e}}function en(t,e){return{type:"line",index:t,level:e}}function By(t){return{type:"highlight",id:t}}function xo(t,e){var n;let r=t;for(;r.parent&&r.level>e;)r=r.parent;const i=((n=r.parent)===null||n===void 0?void 0:n.id)||null,o=Z2(r)+1;return{parentId:i,index:o}}function Ef(t){var e;const n=Vy(t.element,t.offset),r=t.indent,i=Math.round(Math.max(0,n.x-r)/r),{node:o,nextNode:l,prevNode:a}=t,[s,c]=zy(o,a,l,n);if(o&&o.isInternal&&n.inMiddle)return{drop:Er(o.id,null),cursor:By(o.id)};if(!s)return{drop:Er((e=c==null?void 0:c.parent)===null||e===void 0?void 0:e.id,0),cursor:en(0,0)};if(z2(s)){const d=Or(i,(c==null?void 0:c.level)||0,s.level);return{drop:xo(s,d),cursor:en(s.rowIndex+1,d)}}if(B2(s)){const d=Or(i,(c==null?void 0:c.level)||0,s.level);return{drop:xo(s,d),cursor:en(s.rowIndex+1,d)}}if(U2(s)){const d=Or(i,0,s.level+1);return d>s.level?{drop:Er(s.id,0),cursor:en(s.rowIndex+1,d)}:{drop:xo(s,d),cursor:en(s.rowIndex+1,d)}}return{drop:Er(s==null?void 0:s.id,0),cursor:en(s.rowIndex+1,s.level+1)}}function Uy(t,e){const n=Ie(),[r,i]=gf(()=>({accept:"NODE",canDrop:()=>n.canDrop(),hover:(o,l)=>{const a=l.getClientOffset();if(!t.current||!a)return;const{cursor:s,drop:c}=Ef({element:t.current,offset:a,indent:n.indent,node:e,prevNode:e.prev,nextNode:e.next});c&&n.dispatch(bn.hovering(c.parentId,c.index)),l.canDrop()?s&&n.showCursor(s):n.hideCursor()},drop:(o,l)=>{if(!l.canDrop())return null;let{parentId:a,index:s,dragIds:c}=n.state.dnd;J2(n.props.onMove,{dragIds:c,parentId:a===er?null:a,index:s===null?0:s,dragNodes:n.dragNodes,parentNode:n.get(a)}),n.open(a)}}),[e,t.current,n.props]);return i}function Wy(t){const e=Ie(),n=e.at(t);if(!n)throw new Error(`Could not find node for index: ${t}`);return u.useMemo(()=>{const r=n.clone();return e.visibleNodes[t]=r,r},[...Object.values(n.state),n])}const Zy=u.memo(function({index:e,style:n}){V2(),h9();const r=Ie(),i=Wy(e),o=u.useRef(null),l=Hy(i),a=Uy(o,i),s=u.useCallback(h=>{o.current=h,a(h)},[a]),c=r.indent*i.level,d=u.useMemo(()=>({paddingLeft:c}),[c]),f=u.useMemo(()=>{var h,g;return Object.assign(Object.assign({},n),{top:parseFloat(n.top)+((g=(h=r.props.padding)!==null&&h!==void 0?h:r.props.paddingTop)!==null&&g!==void 0?g:0)})},[n,r.props.padding,r.props.paddingTop]),p={role:"treeitem","aria-level":i.level+1,"aria-selected":i.isSelected,"aria-expanded":i.isOpen,style:f,tabIndex:-1,className:r.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 v=r.renderNode,b=r.renderRow;return y.jsx(b,{node:i,innerRef:s,attrs:p,children:y.jsx(v,{node:i,tree:r,style:d,dragHandle:l})})});let wo="",Oc=null;function $f(){V2();const t=Ie();return y.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 n;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 l=o.nextSibling,a=o.parent;t.focus(l||a,{scroll:!1}),t.delete(o)}}return}if(e.key==="Tab"&&!e.shiftKey){e.preventDefault(),G2(e.currentTarget);return}if(e.key==="Tab"&&e.shiftKey){e.preventDefault(),q2(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):!((n=i.parent)===null||n===void 0)&&n.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(Oc),wo+=e.key,Oc=setTimeout(()=>{wo=""},600);const r=t.visibleNodes.find(i=>{const o=i.data.name;return typeof o=="string"?o.toLowerCase().startsWith(wo):!1});r&&t.focus(r.id)},children:y.jsx(Y9,{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 n;return((n=t.visibleNodes[e])===null||n===void 0?void 0:n.id)||e},outerElementType:Q9,innerElementType:n3,onScroll:t.props.onScroll,onItemsRendered:t.onItemsRendered.bind(t),ref:t.list,children:Zy})})}function kc(t){return t.isFiltered?qy(t.root,t.isMatch.bind(t)):Gy(t.root)}function Gy(t){const e=[];function n(r){var i;r.level>=0&&e.push(r),r.isOpen&&((i=r.children)===null||i===void 0||i.forEach(n))}return n(t),e.forEach(Pf),e}function qy(t,e){const n={},r=[];function i(l){if(!l.isRoot&&e(l)){n[l.id]=!0;let s=l.parent;for(;s;)n[s.id]=!0,s=s.parent}if(l.children)for(let s of l.children)i(s)}function o(l){var a;l.level>=0&&n[l.id]&&r.push(l),l.isOpen&&((a=l.children)===null||a===void 0||a.forEach(o))}return i(t),o(t),r.forEach(Pf),r}function Pf(t,e){t.rowIndex=e}const Nc=t=>t.reduce((e,n,r)=>(e[n.id]=r,e),{});var Eo=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(l){l(o)})}return new(n||(n=Promise))(function(o,l){function a(d){try{c(r.next(d))}catch(f){l(f)}}function s(d){try{c(r.throw(d))}catch(f){l(f)}}function c(d){d.done?o(d.value):i(d.value).then(a,s)}c((r=r.apply(t,e||[])).next())})};const{safeRun:ge,identify:Xe,identifyNull:Ke}=b9;class pn{constructor(e,n,r,i){this.store=e,this.props=n,this.list=r,this.listEl=i,this.visibleStartIndex=0,this.visibleStopIndex=0,this.root=Vs(this),this.visibleNodes=kc(this),this.idToIndex=Nc(this.visibleNodes)}update(e){this.props=e,this.root=Vs(this),this.visibleNodes=kc(this),this.idToIndex=Nc(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 n=(e=this.props.searchMatch)!==null&&e!==void 0?e:(r,i)=>JSON.stringify(Object.values(r.data)).toLocaleLowerCase().includes(i.toLocaleLowerCase());return r=>n(r,this.searchTerm)}accessChildren(e){var n;const r=this.props.childrenAccessor||"children";return(n=Kn(e,r))!==null&&n!==void 0?n:null}accessId(e){const n=this.props.idAccessor||"id",r=Kn(e,n);if(!r)throw new Error("Data must contain an 'id' property or props.idAccessor must return a string");return r}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,n){var r;if(e===null||n===null)return[];const i=(r=this.indexOf(e))!==null&&r!==void 0?r:0,o=this.indexOf(n);if(o===null)return[];const l=Math.min(i,o),a=Math.max(i,o);return this.visibleNodes.slice(l,a+1)}indexOf(e){const n=X2(e);return n?this.idToIndex[n]:null}get editingId(){return this.state.nodes.edit.id}createInternal(){return this.create({type:"internal"})}createLeaf(){return this.create({type:"leaf"})}create(){return Eo(this,arguments,void 0,function*(e={}){var n,r;const i=e.parentId===void 0?tf(this):e.parentId,o=(n=e.index)!==null&&n!==void 0?n:ef(this),l=(r=e.type)!==null&&r!==void 0?r:"leaf",a=yield ge(this.props.onCreate,{type:l,parentId:i,index:o,parentNode:this.get(i)});a&&(this.focus(a),setTimeout(()=>{this.edit(a).then(()=>{this.select(a),this.activate(a)})}))})}delete(e){return Eo(this,void 0,void 0,function*(){if(!e)return;const r=(Array.isArray(e)?e:[e]).map(Xe),i=r.map(o=>this.get(o)).filter(o=>!!o);yield ge(this.props.onDelete,{nodes:i,ids:r})})}edit(e){const n=Xe(e);return this.resolveEdit({cancelled:!0}),this.scrollTo(n),this.dispatch(uo(n)),new Promise(r=>{pn.editPromise=r})}submit(e,n){return Eo(this,void 0,void 0,function*(){if(!e)return;const r=Xe(e);yield ge(this.props.onRename,{id:r,name:n,node:this.get(r)}),this.dispatch(uo(null)),this.resolveEdit({cancelled:!1,value:n}),setTimeout(()=>this.onFocus())})}reset(){this.dispatch(uo(null)),this.resolveEdit({cancelled:!0}),setTimeout(()=>this.onFocus())}activate(e){const n=this.get(Ke(e));n&&ge(this.props.onActivate,n)}resolveEdit(e){const n=pn.editPromise;n&&n(e),pn.editPromise=null}get selectedIds(){return this.state.nodes.selection.ids}get selectedNodes(){let e=[];for(let n of Array.from(this.selectedIds)){const r=this.get(n);r&&e.push(r)}return e}focus(e,n={}){e&&(this.props.selectionFollowsFocus?this.select(e):(this.dispatch(qt(Xe(e))),n.scroll!==!1&&this.scrollTo(e),this.focusedNode&&ge(this.props.onFocus,this.focusedNode)))}pageUp(){var e,n;const r=this.visibleStartIndex,o=this.visibleStopIndex-r;let l=(n=(e=this.focusedNode)===null||e===void 0?void 0:e.rowIndex)!==null&&n!==void 0?n:0;l>r?l=r:l=Math.max(r-o,0),this.focus(this.at(l))}pageDown(){var e,n;const r=this.visibleStartIndex,i=this.visibleStopIndex,o=i-r;let l=(n=(e=this.focusedNode)===null||e===void 0?void 0:e.rowIndex)!==null&&n!==void 0?n:0;l<i?l=i:l=Math.min(l+o,this.visibleNodes.length-1),this.focus(this.at(l))}select(e,n={}){if(!e)return;const r=n.focus!==!1,i=Xe(e);r&&this.dispatch(qt(i)),this.dispatch(Fe.only(i)),this.dispatch(Fe.anchor(i)),this.dispatch(Fe.mostRecent(i)),this.scrollTo(i,n.align),this.focusedNode&&r&&ge(this.props.onFocus,this.focusedNode),ge(this.props.onSelect,this.selectedNodes)}deselect(e){if(!e)return;const n=Xe(e);this.dispatch(Fe.remove(n)),ge(this.props.onSelect,this.selectedNodes)}selectMulti(e){const n=this.get(Ke(e));n&&(this.dispatch(qt(n.id)),this.dispatch(Fe.add(n.id)),this.dispatch(Fe.anchor(n.id)),this.dispatch(Fe.mostRecent(n.id)),this.scrollTo(n),this.focusedNode&&ge(this.props.onFocus,this.focusedNode),ge(this.props.onSelect,this.selectedNodes))}selectContiguous(e){if(!e)return;const n=Xe(e),{anchor:r,mostRecent:i}=this.state.nodes.selection;this.dispatch(qt(n)),this.dispatch(Fe.remove(this.nodesBetween(r,i))),this.dispatch(Fe.add(this.nodesBetween(r,Ke(n)))),this.dispatch(Fe.mostRecent(n)),this.scrollTo(n),this.focusedNode&&ge(this.props.onFocus,this.focusedNode),ge(this.props.onSelect,this.selectedNodes)}deselectAll(){this.setSelection({ids:[],anchor:null,mostRecent:null}),ge(this.props.onSelect,this.selectedNodes)}selectAll(){var e;this.setSelection({ids:Object.keys(this.idToIndex),anchor:this.firstNode,mostRecent:this.lastNode}),this.dispatch(qt((e=this.lastNode)===null||e===void 0?void 0:e.id)),this.focusedNode&&ge(this.props.onFocus,this.focusedNode),ge(this.props.onSelect,this.selectedNodes)}setSelection(e){var n;const r=new Set((n=e.ids)===null||n===void 0?void 0:n.map(Xe)),i=Ke(e.anchor),o=Ke(e.mostRecent);this.dispatch(Fe.set({ids:r,anchor:i,mostRecent:o})),ge(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 n=(e=this.get(this.state.dnd.parentId))!==null&&e!==void 0?e:this.root,r=this.dragNodes,i=this.props.disableDrop;for(const o of r)if(!o||!n||o.isInternal&&W2(n,o))return!1;return typeof i=="function"?!i({parentNode:n,dragNodes:this.dragNodes,index:this.state.dnd.index||0}):typeof i=="string"?!n.data[i]:typeof i=="boolean"?!i:!0}hideCursor(){this.dispatch(bn.cursor({type:"none"}))}showCursor(e){this.dispatch(bn.cursor(e))}open(e){const n=Ke(e);n&&(this.isOpen(n)||(this.dispatch(tl.open(n,this.isFiltered)),ge(this.props.onToggle,n)))}close(e){const n=Ke(e);n&&this.isOpen(n)&&(this.dispatch(tl.close(n,this.isFiltered)),ge(this.props.onToggle,n))}toggle(e){const n=Ke(e);if(n)return this.isOpen(n)?this.close(n):this.open(n)}openParents(e){const n=Ke(e);if(!n)return;const r=ea(this.root,n);let i=r==null?void 0:r.parent;for(;i;)this.open(i.id),i=i.parent}openSiblings(e){const n=e.parent;if(!n)this.toggle(e.id);else if(n.children){const r=e.isOpen;for(let i of n.children)i.isInternal&&(r?this.close(i.id):this.open(i.id));this.scrollTo(this.focusedNode)}}openAll(){Qr(this.root,e=>{e.isInternal&&e.open()})}closeAll(){Qr(this.root,e=>{e.isInternal&&e.close()})}scrollTo(e,n="smart"){if(!e)return;const r=Xe(e);return this.openParents(r),Q2(()=>r in this.idToIndex).then(()=>{var i;const o=this.idToIndex[r];o!==void 0&&((i=this.list.current)===null||i===void 0||i.scrollToItem(o,n))}).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 n,r,i;if(!e)return!1;if(e===er)return!0;const o=(n=this.props.openByDefault)!==null&&n!==void 0?n:!0;return this.isFiltered?(r=this.state.nodes.open.filtered[e])!==null&&r!==void 0?r:!0:(i=this.state.nodes.open.unfiltered[e])!==null&&i!==void 0?i:o}isEditable(e){const n=this.props.disableEdit||(()=>!1);return!Kn(e,n)}isDraggable(e){const n=this.props.disableDrag||(()=>!1);return!Kn(e,n)}isDragging(e){const n=Ke(e);return n?this.state.nodes.drag.id===n:!1}isFocused(e){return this.hasFocus&&this.state.nodes.focus.id===e}isMatch(e){return this.matchFn(e)}willReceiveDrop(e){const n=Ke(e);if(!n)return!1;const{destinationParentId:r,destinationIndex:i}=this.state.nodes.drag;return n===r&&i===null}onFocus(){const e=this.focusedNode||this.firstNode;e&&this.dispatch(qt(e.id))}onBlur(){this.dispatch(_9())}onItemsRendered(e){this.visibleStartIndex=e.visibleStartIndex,this.visibleStopIndex=e.visibleStopIndex}get renderContainer(){return this.props.renderContainer||$f}get renderRow(){return this.props.renderRow||E9}get renderNode(){return this.props.children||$9}get renderDragPreview(){return this.props.renderDragPreview||nf}get renderCursor(){return this.props.renderCursor||w9}}function be(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 Yy=typeof Symbol=="function"&&Symbol.observable||"@@observable",Rc=Yy,$o=()=>Math.random().toString(36).substring(7).split("").join("."),Xy={INIT:`@@redux/INIT${$o()}`,REPLACE:`@@redux/REPLACE${$o()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${$o()}`},Dt=Xy;function Df(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 Jy(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(tb(t))return"date";if(eb(t))return"error";const n=Qy(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return Object.prototype.toString.call(t).slice(8,-1).toLowerCase().replace(/\s/g,"")}function Qy(t){return typeof t.constructor=="function"?t.constructor.name:null}function eb(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function tb(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function at(t){let e=typeof t;return process.env.NODE_ENV!=="production"&&(e=Jy(t)),e}function Tf(t,e,n){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?be(2):`Expected the root reducer to be a function. Instead, received: '${at(t)}'`);if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?be(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 n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?be(1):`Expected the enhancer to be a function. Instead, received: '${at(n)}'`);return n(Tf)(t,e)}let r=t,i=e,o=new Map,l=o,a=0,s=!1;function c(){l===o&&(l=new Map,o.forEach((g,m)=>{l.set(m,g)}))}function d(){if(s)throw new Error(process.env.NODE_ENV==="production"?be(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(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?be(4):`Expected the listener to be a function. Instead, received: '${at(g)}'`);if(s)throw new Error(process.env.NODE_ENV==="production"?be(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=a++;return l.set(C,g),function(){if(m){if(s)throw new Error(process.env.NODE_ENV==="production"?be(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(),l.delete(C),o=null}}}function p(g){if(!Df(g))throw new Error(process.env.NODE_ENV==="production"?be(7):`Actions must be plain objects. Instead, the actual type was: '${at(g)}'. 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 g.type>"u")throw new Error(process.env.NODE_ENV==="production"?be(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof g.type!="string")throw new Error(process.env.NODE_ENV==="production"?be(17):`Action "type" property must be a string. Instead, the actual type was: '${at(g.type)}'. Value was: '${g.type}' (stringified)`);if(s)throw new Error(process.env.NODE_ENV==="production"?be(9):"Reducers may not dispatch actions.");try{s=!0,i=r(i,g)}finally{s=!1}return(o=l).forEach(C=>{C()}),g}function v(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?be(10):`Expected the nextReducer to be a function. Instead, received: '${at(g)}`);r=g,p({type:Dt.REPLACE})}function b(){const g=f;return{subscribe(m){if(typeof m!="object"||m===null)throw new Error(process.env.NODE_ENV==="production"?be(11):`Expected the observer to be an object. Instead, received: '${at(m)}'`);function C(){const P=m;P.next&&P.next(d())}return C(),{unsubscribe:g(C)}},[Rc](){return this}}}return p({type:Dt.INIT}),{dispatch:p,subscribe:f,getState:d,replaceReducer:v,[Rc]:b}}function Mc(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function nb(t,e,n,r){const i=Object.keys(e),o=n&&n.type===Dt.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(!Df(t))return`The ${o} has unexpected type of "${at(t)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const l=Object.keys(t).filter(a=>!e.hasOwnProperty(a)&&!r[a]);if(l.forEach(a=>{r[a]=!0}),!(n&&n.type===Dt.REPLACE)&&l.length>0)return`Unexpected ${l.length>1?"keys":"key"} "${l.join('", "')}" found in ${o}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function rb(t){Object.keys(t).forEach(e=>{const n=t[e];if(typeof n(void 0,{type:Dt.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?be(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 n(void 0,{type:Dt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?be(13):`The slice reducer for key "${e}" returned undefined when probed with a random type. Don't try to handle '${Dt.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 Lc(t){const e=Object.keys(t),n={};for(let l=0;l<e.length;l++){const a=e[l];process.env.NODE_ENV!=="production"&&typeof t[a]>"u"&&Mc(`No reducer provided for key "${a}"`),typeof t[a]=="function"&&(n[a]=t[a])}const r=Object.keys(n);let i;process.env.NODE_ENV!=="production"&&(i={});let o;try{rb(n)}catch(l){o=l}return function(a={},s){if(o)throw o;if(process.env.NODE_ENV!=="production"){const f=nb(a,n,s,i);f&&Mc(f)}let c=!1;const d={};for(let f=0;f<r.length;f++){const p=r[f],v=n[p],b=a[p],h=v(b,s);if(typeof h>"u"){const g=s&&s.type;throw new Error(process.env.NODE_ENV==="production"?be(14):`When called with an action of type ${g?`"${String(g)}"`:"(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!==b}return c=c||r.length!==Object.keys(a).length,c?d:a}}function ib(t=yn().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 ob=Lc({nodes:Lc({focus:I9,edit:T9,open:O9,selection:k9,drag:ib}),dnd:N9}),lb=yn();function ab({treeProps:t,imperativeHandle:e,children:n}){const r=u.useRef(null),i=u.useRef(null),o=u.useRef(Tf(ob,yn(t))),l=Dl.useSyncExternalStore(o.current.subscribe,o.current.getState,()=>lb),a=u.useMemo(()=>new pn(o.current,t,r,i),[]),s=u.useRef(0);return u.useMemo(()=>{s.current+=1,a.update(t)},[...Object.values(t),l.nodes.open]),u.useImperativeHandle(e,()=>a),u.useEffect(()=>{a.props.selection?a.select(a.props.selection,{focus:!1}):a.deselectAll()},[a.props.selection]),u.useEffect(()=>{a.props.searchTerm||o.current.dispatch(tl.clear(!0))},[a.props.searchTerm]),y.jsx(F2.Provider,{value:a,children:y.jsx(H2.Provider,{value:s.current,children:y.jsx(K2.Provider,{value:l.nodes,children:y.jsx(j2.Provider,{value:l.dnd,children:y.jsx(Km,Object.assign({backend:jy,options:{rootElement:a.props.dndRootElement||void 0}},t.dndManager&&{manager:t.dndManager},{children:n}))})})})})}function sb(){const t=Ie(),[,e]=gf(()=>({accept:"NODE",canDrop:(n,r)=>r.isOver({shallow:!0})?t.canDrop():!1,hover:(n,r)=>{if(!r.isOver({shallow:!0}))return;const i=r.getClientOffset();if(!t.listEl.current||!i)return;const{cursor:o,drop:l}=Ef({element:t.listEl.current,offset:i,indent:t.indent,node:null,prevNode:t.visibleNodes[t.visibleNodes.length-1],nextNode:null});l&&t.dispatch(bn.hovering(l.parentId,l.index)),r.canDrop()?o&&t.showCursor(o):t.hideCursor()}}),[t]);e(t.listEl)}function cb(t){return sb(),t.children}function ub(){const e=Ie().props.renderContainer||$f;return y.jsx(y.Fragment,{children:y.jsx(e,{})})}function db(){const t=Ie(),{offset:e,mouse:n,item:r,isDragging:i}=dy(l=>({offset:l.getSourceClientOffset(),mouse:l.getClientOffset(),item:l.getItem(),isDragging:l.isDragging()})),o=t.props.renderDragPreview||nf;return y.jsx(o,{offset:e,mouse:n,id:(r==null?void 0:r.id)||null,dragIds:(r==null?void 0:r.dragIds)||[],isDragging:i})}class fb{constructor(e){this.root=hb(e)}get data(){var e,n;return(n=(e=this.root.children)===null||e===void 0?void 0:e.map(r=>r.data))!==null&&n!==void 0?n:[]}create(e){const n=e.parentId?this.find(e.parentId):this.root;if(!n)return null;n.addChild(e.data,e.index)}move(e){const n=this.find(e.id),r=e.parentId?this.find(e.parentId):this.root;!n||!r||(r.addChild(n.data,e.index),n.drop())}update(e){const n=this.find(e.id);n&&n.update(e.changes)}drop(e){const n=this.find(e.id);n&&n.drop()}find(e,n=this.root){if(!n)return null;if(n.id===e)return n;if(n.children){for(let r of n.children){const i=this.find(e,r);if(i)return i}return null}return null}}function hb(t){const e=new _f({id:"ROOT"},null);return e.children=t.map(n=>aa(n,e)),e}function aa(t,e){const n=new _f(t,e);return t.children&&(n.children=t.children.map(r=>aa(r,n))),n}class _f{constructor(e,n){this.data=e,this.parent=n,this.id=e.id}hasParent(){return!!this.parent}get childIndex(){return this.hasParent()?this.parent.children.indexOf(this):-1}addChild(e,n){var r,i;const o=aa(e,this);this.children=(r=this.children)!==null&&r!==void 0?r:[],this.children.splice(n,0,o),this.data.children=(i=this.data.children)!==null&&i!==void 0?i:[],this.data.children.splice(n,0,e)}removeChild(e){var n,r;(n=this.children)===null||n===void 0||n.splice(e,1),(r=this.data.children)===null||r===void 0||r.splice(e,1)}update(e){if(this.hasParent()){const n=this.childIndex;this.parent.addChild(Object.assign(Object.assign({},this.data),e),n),this.drop()}}drop(){this.hasParent()&&this.parent.removeChild(this.childIndex)}}let pb=0;function vb(t){const[e,n]=u.useState(t),r=u.useMemo(()=>new fb(e),[e]);return[e,{onMove:c=>{for(const d of c.dragIds)r.move({id:d,parentId:c.parentId,index:c.index});n(r.data)},onRename:({name:c,id:d})=>{r.update({id:d,changes:{name:c}}),n(r.data)},onCreate:({parentId:c,index:d,type:f})=>{const p={id:`simple-tree-id-${pb++}`,name:""};return f==="internal"&&(p.children=[]),r.create({parentId:c,index:d,data:p}),n(r.data),p},onDelete:c=>{c.ids.forEach(d=>r.drop({id:d})),n(r.data)}}]}function gb(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,n]=vb(t.initialData);return Object.assign(Object.assign(Object.assign({},t),n),{data:e})}else return t}function mb(t,e){const n=gb(t);return y.jsxs(ab,{treeProps:n,imperativeHandle:e,children:[y.jsx(cb,{children:y.jsx(ub,{})}),y.jsx(db,{})]})}const yb=u.forwardRef(mb),If=({top:t,left:e})=>y.jsx("div",{className:"c__tree-view__cursor",style:{top:t-2,left:e+10,width:`calc(100% - ${24+e}px)`}});function bb(t,e){var n=u.useRef(null),r=u.useRef(null);r.current=e;var i=u.useRef(null);u.useEffect(function(){o()});var o=u.useCallback(function(){var l=i.current,a=r.current,s=l||(a?a instanceof Element?a:a.current:null);n.current&&n.current.element===s&&n.current.subscriber===t||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:s,subscriber:t,cleanup:s?t(s):void 0})},[t]);return u.useEffect(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),u.useCallback(function(l){i.current=l,o()},[o])}function Ac(t,e,n){return t[e]?t[e][0]?t[e][0][n]:t[e][n]:e==="contentBoxSize"?t.contentRect[n==="inlineSize"?"width":"height"]:void 0}function Cb(t){t===void 0&&(t={});var e=t.onResize,n=u.useRef(void 0);n.current=e;var r=t.round||Math.round,i=u.useRef(),o=u.useState({width:void 0,height:void 0}),l=o[0],a=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=bb(u.useCallback(function(f){return(!i.current||i.current.box!==t.box||i.current.round!==r)&&(i.current={box:t.box,round:r,instance:new ResizeObserver(function(p){var v=p[0],b=t.box==="border-box"?"borderBoxSize":t.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",h=Ac(v,b,"inlineSize"),g=Ac(v,b,"blockSize"),m=h?r(h):void 0,C=g?r(g):void 0;if(c.current.width!==m||c.current.height!==C){var S={width:m,height:C};c.current.width=m,c.current.height=C,n.current?n.current(S):s.current||a(S)}})}),i.current.instance.observe(f,{box:t.box}),function(){i.current&&i.current.instance.unobserve(f)}},[t.box,r]),t.ref);return u.useMemo(function(){return{ref:d,width:l.width,height:l.height}},[d,l.width,l.height])}var Le=(t=>(t.NODE="node",t.SEPARATOR="separator",t.TITLE="title",t))(Le||{}),St=(t=>(t.FIRST_CHILD="first-child",t.LAST_CHILD="last-child",t.LEFT="left",t.RIGHT="right",t))(St||{});const ni=t=>t?t.nodeType===Le.SEPARATOR:!1,ri=t=>t?t.nodeType===Le.TITLE:!1,jn=t=>!ni(t)&&!ri(t),Of=(t,e,n)=>{const{remove:r,update:i,insert:o,insertBefore:l,insertAfter:a,append:s,prepend:c,getItem:d,move:f,items:p}=bp({initialItems:JSON.parse(JSON.stringify(t)),getKey:I=>I.id,getChildren:I=>I.children||[]}),[v,b]=u.useState(),h=(I=[])=>{const L=p.map(O=>O.key);r(...L);const T=JSON.parse(JSON.stringify(I));T.length>0&&o(null,0,...T),b(void 0)},g=I=>{const L=d(I);L&&b(L.value)},m=(I,L,T)=>{var O;if(I){const H=d(I);H&&o(I,T??((O=H.children)==null?void 0:O.length)??0,L)}else o(null,T??p.length,L)},C=I=>{var L;return(L=d(I))==null?void 0:L.value},S=(I,L)=>{var j;const T=d(I);if(!T){console.error("No item found");return}let O=((j=T.children)==null?void 0:j.map(z=>z.value))??null;const H=L.childrenCount??T.value.childrenCount??0;if((O==null?void 0:O.length)===0&&H>0&&(O=null),L.children&&(O=[...O??[],...L.children]),L.children){const z=new Set(L.children.map(W=>W.id));O=L.children.filter(W=>!z.has(W.id)),O=[...O??[],...L.children]}const K={...T.value,...L,children:O,childrenCount:(O==null?void 0:O.length)??H};return console.log("updatedItem",K),i(I,K),K},P=I=>{r(I)},$=I=>{r(...I)},w=async I=>{if(!e){console.error("No refresh callback provided");return}try{const L=await e(I);S(I,L)}catch(L){console.error("error while refreshing node:",L)}},E=(I,L)=>{o(null,L??p.length,I)},R=(I,L)=>{o(null,L??p.length,...I)},F=(I,L)=>{const T=d(I);if(console.log("item FROM UI KIT",T),!T){console.error("No item found");return}const O={...T.value,children:L,childrenCount:L.length,hasLoadedChildren:L.length>0};return i(I,O),O},V=I=>{const L=[],T=d(I);if(!T)return[];L.push(T.value);const O=H=>{const K=x(H);if(!K)return;const j=d(K);j&&(L.push(j.value),O(K))};return O(I),L.reverse()},x=I=>{var L;return((L=d(I))==null?void 0:L.parentKey)??null},M=I=>{const L=x(I);if(!L)return null;const T=d(L);return T?T.value:null},U=(I,L)=>{l(I,L)},A=(I,L)=>{a(I,L)},B=(I,L)=>{s(I,L)},_=(I,L)=>{c(I,L)},N=(I,L,T)=>{f(I,L,T)},k=I=>{N(I.sourceId,I.newParentId,I.index)},Z=async I=>{if(!n)return[];const L=await n(I);return S(I,{children:L,hasLoadedChildren:!0,childrenCount:L.length}),L};return u.useEffect(()=>{const I=L=>{L.forEach(T=>{var O;if(T.children&&T.children.length>0){const H=T.value.hasLoadedChildren||((O=T.children)==null?void 0:O.length)>0||T.value.children&&T.value.children.length>0;T.value.children=T.children.map(j=>j.value);const K=H?T.children.length:T.value.childrenCount??0;T.value.childrenCount=K,H&&!T.value.hasLoadedChildren&&(T.value.hasLoadedChildren=!0),I(T.children)}else{const K=T.value.hasLoadedChildren||T.value.children&&T.value.children.length>0?0:T.value.childrenCount;T.value.children=[],T.value.childrenCount=K}})};I(p)},[p]),{nodes:p,addChild:m,updateNode:S,deleteNode:P,deleteNodes:$,addRootNode:E,addRootNodes:R,selectedNode:v,setSelectedNode:b,refreshNode:w,setChildren:F,insertBeforeNode:U,insertAfterNode:A,handleMove:k,prependToNode:_,moveNode:N,appendToNode:B,move:f,resetTree:h,getItem:d,handleLoadChildren:Z,selectNodeById:g,getParent:M,getNode:C,getParentId:x,getAncestors:V}},sa=u.createContext(null),Sb=({children:t,onRefresh:e,initialNodeId:n,onLoadChildren:r,initialTreeData:i})=>{const o=u.useRef(null),[l,a]=u.useState(null),[s,c]=u.useState(n??null),d=Of(i??[],e,r);return y.jsx(sa.Provider,{value:{treeApiRef:o,treeData:d,root:l,initialTargetId:s,setInitialTargetId:c,setRoot:a},children:t})},ca=()=>{const t=u.useContext(sa);if(!t)throw new Error("TreeContext not found");return t},xb=({initialOpenState:t,selectedNodeId:e,rootNodeId:n,renderNode:r,canDrop:i,canDrag:o,afterMove:l,beforeMove:a})=>{const[s,c]=u.useState(400),{ref:d,width:f}=Cb(),p=ca(),v=(p==null?void 0:p.treeData.nodes)??[];u.useEffect(()=>{const m=document.querySelector(".c__tree-view"),C=m==null?void 0:m.firstElementChild;let S=null;return m&&C&&(S=new ResizeObserver(()=>{if(C&&C instanceof HTMLElement){const P=C.style.height;c(parseInt(P,10)+20)}}),S.observe(C)),()=>S==null?void 0:S.disconnect()},[]);const b=m=>{var k,Z,I,L;const C=JSON.parse(JSON.stringify(v)),S=m.dragNodes[0],P=m.parentId?((k=m.parentNode)==null?void 0:k.data.children)??[]:C,$=m.dragNodes[0].data.value.id,w=m.dragNodes[0].data,E=(Z=m.parentNode)==null?void 0:Z.data;if((E==null?void 0:E.value.nodeType)===Le.TITLE||(E==null?void 0:E.value.nodeType)===Le.SEPARATOR)return null;const R=w.parentKey??n,F=m.parentId??n;let V=m.index+0,x=null,M=F;const U=((L=(I=S.parent)==null?void 0:I.children)==null?void 0:L.findIndex(T=>T.data.value.id===$))??0;if(R===F){if(U===V)return null;V=V<U?V:V-1}const A=m.index-1,B=P[A],_=m.index,N=P[_];return m.index===0?(M=m.parentId??n,x=St.FIRST_CHILD):!E&&m.index===1&&!jn(B.value)?(M=n,V=1,x=St.FIRST_CHILD):m.index===P.length?(M=M??n,x=St.LAST_CHILD):B&&jn(B.value)?(M=B.value.id,x=St.RIGHT):N&&jn(N.value)&&(x=St.LEFT,M=N.value.id),x&&M?{targetModeId:M,mode:x,oldParentId:R,index:V,newParentId:m.parentId,sourceId:$}:null},h=m=>{const C=b(m);C&&(a?a(C,()=>{p==null||p.treeData.handleMove(C),l==null||l(C)}):(p==null||p.treeData.handleMove(C),l==null||l(C)))},g=u.useCallback(m=>o?!o(m):!1,[o]);if(p)return y.jsx("div",{ref:d,style:{height:s},className:"c__tree-view--container",children:y.jsx(yb,{data:v,ref:p.treeApiRef,openByDefault:!1,selectionFollowsFocus:!1,disableMultiSelection:!0,disableEdit:!0,className:"c__tree-view",idAccessor:"key",onMove:h,height:s,width:f,paddingTop:10,paddingBottom:10,rowHeight:35,disableDrag:g,disableDrop:({parentNode:m,dragNodes:C,index:S})=>{var R,F;if(i&&!i({parentNode:m,dragNodes:C,index:S}))return m.id!=="__REACT_ARBORIST_INTERNAL_ROOT__"&&(m.data.value.canDrop=!1),!0;const P=C[0];if(P&&P.isDragging&&P.willReceiveDrop||((R=m.data.value)==null?void 0:R.nodeType)===Le.TITLE||((F=m.data.value)==null?void 0:F.nodeType)===Le.SEPARATOR)return!0;if(m.id==="__REACT_ARBORIST_INTERNAL_ROOT__"){const V=v[S-1],x=v[S],M=v[S+1],U=ni(V==null?void 0:V.value),A=ni(x==null?void 0:x.value),B=ri(V==null?void 0:V.value),_=ri(x==null?void 0:x.value),N=jn(M==null?void 0:M.value);return!!(S===0&&(A||_)||U&&_&&N||B&&A&&N)}const $=m==null?void 0:m.isOpen,w=(m==null?void 0:m.data.value.childrenCount)&&m.data.value.childrenCount>0||(m==null?void 0:m.data.children)&&m.data.children.length>0;if(!w)return m.data.value.canDrop=!0,!1;let E=m.data.value.childrenCount&&m.data.value.childrenCount>0&&(m==null?void 0:m.data.children)&&m.data.children.length>0;return E=E??!0,!$&&!E&&w?(m.data.value.canDrop=!0,!0):(m.data.value.canDrop=!0,!1)},initialOpenState:t,overscanCount:20,selection:e,renderCursor:If,renderRow:wb,rowClassName:"c__tree-view--row",children:r})})},wb=({children:t,...e})=>{const n=e.node.data.value.nodeType===Le.TITLE,r=e.node.data.value.nodeType===Le.SEPARATOR,{style:i}=e.attrs,o={...i};return n||r?u.createElement("div",{...e.attrs,key:e.node.id,style:o,ref:e.innerRef,onFocus:l=>l.stopPropagation(),onClick:e.node.handleClick},t):u.createElement("div",{...e.attrs,style:o,key:e.node.id,ref:e.innerRef,onFocus:l=>l.stopPropagation(),onClick:e.node.handleClick},y.jsx("div",{className:"c__tree-view--row-content",children:t}))},Eb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",kf=Eb?u.useLayoutEffect:u.useEffect;function Nf(t){const e=u.useRef(t);return kf(()=>{e.current=t}),u.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.current==null?void 0:e.current(...r)},[])}function Fc(t,e){e===void 0&&(e=[t]);const n=u.useRef(t);return kf(()=>{n.current!==t&&(n.current=t)},e),n}function $b(t){const e=Nf(t),n=u.useRef(null),r=u.useCallback(i=>{i!==n.current&&(e==null||e(i,n.current)),n.current=i},[]);return[n,r]}let Po={};function Pb(t,e){return u.useMemo(()=>{const n=Po[t]==null?0:Po[t]+1;return Po[t]=n,t+"-"+n},[t,e])}var zn;(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"})(zn||(zn={}));function Kc(){}const Db=Object.freeze({x:0,y:0});var an;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(an||(an={}));var jc;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(jc||(jc={}));var st;(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"})(st||(st={}));st.Space,st.Enter,st.Esc,st.Space,st.Enter,st.Tab;var Hc;(function(t){t[t.RightClick=2]="RightClick"})(Hc||(Hc={}));var Vc;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(Vc||(Vc={}));var zc;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(zc||(zc={}));an.Backward+"",an.Forward+"",an.Backward+"",an.Forward+"";var ul;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(ul||(ul={}));var dl;(function(t){t.Optimized="optimized"})(dl||(dl={}));function Tb(t){let{callback:e,disabled:n}=t;const r=Nf(e),i=u.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return u.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}ul.WhileDragging,dl.Optimized;const _b={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Kc,draggableNodes:new Map,over:null,measureDroppableContainers:Kc},Ib=u.createContext(_b);({...Db});var Bc;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(Bc||(Bc={}));const Ob="Droppable",kb={timeout:25};function Nb(t){let{data:e,disabled:n=!1,id:r,resizeObserverConfig:i}=t;const o=Pb(Ob),{active:l,dispatch:a,over:s,measureDroppableContainers:c}=u.useContext(Ib),d=u.useRef({disabled:n}),f=u.useRef(!1),p=u.useRef(null),v=u.useRef(null),{disabled:b,updateMeasurementsFor:h,timeout:g}={...kb,...i},m=Fc(h??r),C=u.useCallback(()=>{if(!f.current){f.current=!0;return}v.current!=null&&clearTimeout(v.current),v.current=setTimeout(()=>{c(Array.isArray(m.current)?m.current:[m.current]),v.current=null},g)},[g]),S=Tb({callback:C,disabled:b||!l}),P=u.useCallback((R,F)=>{S&&(F&&(S.unobserve(F),f.current=!1),R&&S.observe(R))},[S]),[$,w]=$b(P),E=Fc(e);return u.useEffect(()=>{!S||!$.current||(S.disconnect(),f.current=!1,S.observe($.current))},[$,S]),u.useEffect(()=>(a({type:zn.RegisterDroppable,element:{id:r,key:o,disabled:n,node:$,rect:p,data:E}}),()=>a({type:zn.UnregisterDroppable,key:o,id:r})),[r]),u.useEffect(()=>{n!==d.current.disabled&&(a({type:zn.SetDroppableDisabled,id:r,key:o,disabled:n}),d.current.disabled=n)},[r,o,n,a]),{active:l,rect:p,isOver:(s==null?void 0:s.id)===r,node:$,over:s,setNodeRef:w}}const Rb=t=>{const{isOver:e,setNodeRef:n}=Nb({id:t.id,data:t.data});return u.useEffect(()=>{var r;(r=t.onOver)==null||r.call(t,e,t.data)},[e,t.data,t.onOver]),y.jsx("div",{className:"c__dnd--droppable",ref:n,children:t.children})},Mb=({children:t,onClick:e,node:n,dragHandle:r,style:i,forceLoading:o})=>{var S,P;const l=ca(),a=u.useRef(null),[s,c]=u.useState(!1),[d,f]=u.useState(!1),p=o??s,v=n.willReceiveDrop||d,b=n.data.value.childrenCount!==void 0&&n.data.value.childrenCount>0||(((S=n.data.children)==null?void 0:S.length)??0)>0,h=((P=n.children)==null?void 0:P.length)??!1,g=n.isLeaf||!b,m=u.useCallback(async()=>{if(g){console.log("is leaf");return}if(h||n.data.value.hasLoadedChildren){console.log("A"),n.toggle();return}console.log("B"),c(!0),console.log("C"),await(l==null?void 0:l.treeData.handleLoadChildren(n.data.value.id)),c(!1),console.log("D"),n.open(),console.log("E")},[g,h,n,l==null?void 0:l.treeData]),C=u.useCallback($=>{$&&!n.isOpen&&!n.isDragging&&(a.current=setTimeout(()=>{m()},500)),a.current&&!$&&clearTimeout(a.current)},[m,n.isOpen,n.isDragging]);return u.useEffect(()=>{C(v)},[v,C]),n.data.value.nodeType===Le.SEPARATOR?y.jsx("div",{className:"c__tree-view--node__separator"}):n.data.value.nodeType===Le.TITLE?y.jsx("div",{className:"c__tree-view--node__title",children:n.data.value.headerTitle}):y.jsx(Rb,{id:n.id,data:{data:n.data,nodeApi:n},onOver:f,children:y.jsxs("div",{onClick:$=>{if(!$.target.closest(".c__tree-view--node")){$.stopPropagation();return}e==null||e()},onKeyDown:$=>{$.target.closest(".c__tree-view--node")||$.stopPropagation()},ref:r,style:i,className:Te("c__tree-view--node",{...n.state,canDrop:n.data.value.canDrop??!0,externalDrop:d}),children:[g&&y.jsx("div",{className:"c__tree-view--node__leaf"}),!g&&y.jsxs(y.Fragment,{children:[p&&y.jsx("div",{className:"c__tree-view--node__loading",children:y.jsx(Gl,{})}),!p&&y.jsx("span",{onClick:$=>{$.stopPropagation(),m()},className:"c__tree-view--node__arrow material-icons",children:n.isOpen?"keyboard_arrow_down":"keyboard_arrow_right"})]}),t]})})},Mi=({roles:t,onSelect:e,canUpdate:n=!0,selectedRole:r,isOpen:i,onOpenChange:o,roleTopMessage:l})=>{const a=t.find(s=>s.value===r);return n?y.jsx(Ot,{isOpen:i,shouldCloseOnInteractOutside:s=>!s.closest(".c__access-role-dropdown"),onOpenChange:o,options:t,selectedValues:[r],onSelectValue:e,topMessage:l,children:y.jsxs("div",{role:"button",className:"c__access-role-dropdown",onClick:()=>{o==null||o(!i)},children:[y.jsx("span",{className:"fs-s clr-greyscale-600",children:a==null?void 0:a.label}),y.jsx("span",{className:"material-icons",children:i?"arrow_drop_up":"arrow_drop_down"})]})}):y.jsx("span",{className:"fs-s clr-greyscale-600",children:a==null?void 0:a.label})},Rf=({users:t,onRemoveUser:e,rightActions:n,onShare:r,shareButtonLabel:i,roles:o,selectedRole:l,onSelectRole:a})=>{const{t:s}=ne.useCunningham(),[c,d]=u.useState(!1);return y.jsxs("div",{className:"c__add-share-user-list",children:[y.jsx("div",{className:"c__add-share-user-list__items",children:t.map(f=>y.jsx(Mf,{user:f,onRemoveUser:e},f.id))}),y.jsxs("div",{className:"c__add-share-user-list__right-actions",children:[n,y.jsx(Mi,{roles:o,selectedRole:l,onSelect:a,isOpen:c,onOpenChange:d}),y.jsx(ne.Button,{onClick:r,children:i??s("components.share.shareButton")})]})]})},Mf=({user:t,onRemoveUser:e})=>y.jsxs("div",{className:"c__add-share-user-item",children:[y.jsx("span",{children:t.full_name||t.email}),y.jsx(ne.Button,{color:"tertiary-text",size:"nano",onClick:()=>e==null?void 0:e(t),icon:y.jsx("span",{className:"material-icons",children:"close"})})]}),Uc=["purple","blue","green","yellow","orange","red","brown","cyan","gold","olive","rose"],Lf=t=>t.split(/[\s-_]+/).slice(0,2).map(e=>e[0]).join("").toUpperCase(),Af=t=>{let e=0;for(let n=0;n<t.length;n++)e+=t.charCodeAt(n);return Uc[e%Uc.length]},ii=({fullName:t,size:e="medium",forceColor:n})=>{const r=Lf(t),i=Af(t);return y.jsx("div",{style:{backgroundColor:n||void 0},className:Te(`c__avatar ${e}`,{[i]:!n&&i}),children:y.jsx("div",{className:"c__avatar__initials",children:r})})},Li=({fullName:t,email:e,showEmail:n=!0})=>{const r=t&&t!==""?t:e??"";return y.jsxs("div",{className:"c__user-row",children:[y.jsx(ii,{fullName:r,size:"small"}),y.jsxs("div",{className:"c__user-row__info",children:[y.jsx("span",{className:"c__user-row__name",children:t}),n&&e&&y.jsx("span",{className:Te("c__user-row__email",{"has-only-email":e&&(t===""||!t)}),children:e})]})]})},fl=({user:t})=>{const{t:e}=ne.useCunningham();return y.jsx(_i,{left:y.jsx(Li,{fullName:t.full_name,email:t.email}),alwaysShowRight:!1,right:y.jsxs("div",{className:"c__search-user-item-right",children:[y.jsx("span",{children:e("components.share.item.add")}),y.jsx("span",{className:"material-icons",children:"add"})]})})},Ff=({accessData:t,roles:e,updateRole:n,deleteAccess:r,canUpdate:i=!0,roleTopMessage:o})=>{const{t:l}=ne.useCunningham(),a=gt(),s=gt(),c=u.useMemo(()=>{const f=[];return r&&f.push({label:l("components.share.access.delete"),icon:y.jsx("span",{className:"material-icons",children:"back_hand"}),isDisabled:!i,callback:()=>r(t)}),f},[r,t,i,l]),d=()=>{const f=s.isOpen;s.setIsOpen(!f)};return y.jsx("div",{className:"c__share-member-item",children:y.jsx(_i,{left:y.jsx(Li,{fullName:t.user.full_name,email:t.user.email,showEmail:!0}),alwaysShowRight:!0,right:y.jsxs("div",{className:"c__share-member-item__right",children:[y.jsx(Mi,{roles:e,selectedRole:t.role,onSelect:f=>n==null?void 0:n(t,f),isOpen:a.isOpen,onOpenChange:a.setIsOpen,canUpdate:i,roleTopMessage:o}),c.length>0&&i&&y.jsx(Ot,{options:c,isOpen:s.isOpen,onOpenChange:s.setIsOpen,children:y.jsx(ne.Button,{color:"primary-text",onClick:d,size:"small",icon:y.jsx("span",{className:"material-icons toto",children:"more_horiz"})})})]})})})},Kf=({invitation:t,roles:e,updateRole:n,deleteInvitation:r,canUpdate:i=!0,roleTopMessage:o})=>{const{t:l}=ne.useCunningham(),a=gt(),s=gt(),c=[{label:l("components.share.access.delete"),callback:()=>r==null?void 0:r(t),isDisabled:!i,icon:y.jsx("span",{className:"material-icons",children:"back_hand"})}],d=()=>{const f=s.isOpen;s.setIsOpen(!f)};return y.jsx("div",{className:"c__share-member-item",children:y.jsx(_i,{left:y.jsx(Li,{fullName:"",email:t.email,showEmail:!0}),alwaysShowRight:!0,right:y.jsxs("div",{className:"c__share-member-item__right",children:[y.jsx(Mi,{roles:e,selectedRole:t.role,onSelect:f=>n==null?void 0:n(t,f),isOpen:a.isOpen,canUpdate:i,onOpenChange:a.setIsOpen,roleTopMessage:o}),i&&y.jsx(Ot,{options:c,isOpen:s.isOpen,onOpenChange:s.setIsOpen,children:y.jsx(ne.Button,{color:"primary-text",onClick:d,size:"small",icon:y.jsx("span",{className:"material-icons toto",children:"more_horiz"})})})]})})})},Lb="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='%233D3D8C'/%3e%3c/svg%3e",Ab="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='%233D3D8C'/%3e%3c/svg%3e",jf=t=>{const{t:e}=ne.useCunningham();return{t:n=>(t==null?void 0:t[n])??e(n)}},$r=t=>{switch(t){case"public":return y.jsx("img",{src:Lb,alt:""});case"restricted":return y.jsx("img",{src:Ab,alt:""});default:return null}},Fb=({linkReachChoices:t=[],canUpdate:e,linkReach:n="public",onUpdateLinkReach:r,showLinkRole:i=!1,linkRoleChoices:o=[],linkRole:l="reader",onUpdateLinkRole:a,customTranslations:s})=>{const c=gt(),d=gt(),[f,p]=u.useState([n]),v=f[0],[b,h]=u.useState([l]),g=b[0],{t:m}=jf(s),C=u.useMemo(()=>t.map(F=>({icon:F.icon??$r(F.value),value:F.value,label:m("components.share.linkSettings.reach.choices."+F.value+".title"),...F})),[t]),S=u.useMemo(()=>C.find(F=>F.value===v),[C,v]),P=u.useMemo(()=>o.map(F=>({value:F.value,label:m("components.share.linkSettings.role.choices."+F.value+".title"),...F})),[o]),$=u.useMemo(()=>P.find(F=>F.value===g),[P,g]),w=i&&o.length>0,E=()=>y.jsx("div",{className:"c__share-modal__link-settings__content__select",children:e?y.jsx(Ot,{onSelectValue:F=>{p([F]),r==null||r(F)},options:C,isOpen:c.isOpen,onOpenChange:c.setIsOpen,selectedValues:f,children:y.jsxs(ne.Button,{color:"primary-text",icon:$r(v),iconPosition:"left",onClick:()=>{e&&c.setIsOpen(!c.isOpen)},children:[S==null?void 0:S.label,y.jsx("span",{className:"material-icons",children:c.isOpen?"arrow_drop_up":"arrow_drop_down"})]})}):y.jsxs("span",{className:"c__share-modal__link-settings__content__select__value",children:[$r(v),S==null?void 0:S.label]})}),R=()=>w?y.jsx("div",{className:"c__share-modal__link-settings__content__select-role",children:e?y.jsx(Ot,{onSelectValue:F=>{h([F]),a==null||a(F)},options:P,isOpen:d.isOpen,onOpenChange:d.setIsOpen,selectedValues:b,children:y.jsx(ne.Button,{color:"primary-text",icon:y.jsx("span",{className:"material-icons",children:d.isOpen?"arrow_drop_up":"arrow_drop_down"}),iconPosition:"right",onClick:()=>{e&&d.setIsOpen(!d.isOpen)},size:"small",children:$==null?void 0:$.label})}):y.jsxs("span",{className:"c__share-modal__link-settings__content__select-role__value",children:[$r(g),$==null?void 0:$.label]})}):null;return y.jsxs("div",{className:"c__share-modal__link-settings",children:[y.jsx("span",{className:"c__share-modal__link-settings__title",children:m("components.share.linkSettings.title")}),y.jsxs("div",{className:"c__share-modal__link-settings__content",children:[E(),y.jsx("div",{className:"c__share-modal__link-settings__content__description desktop",children:m(`components.share.linkSettings.reach.choices.${v}.description`)}),R()]}),y.jsx("div",{className:"c__share-modal__link-settings__content__description mobile",children:m(`components.share.linkSettings.reach.choices.${v}.description`)})]})},Kb=({searchUsersResult:t,children:e,outsideSearchContent:n,accesses:r=[],invitations:i=[],hasNextMembers:o=!1,canUpdate:l=!0,canView:a=!0,hasNextInvitations:s=!1,hideInvitations:c=!1,hideMembers:d=!1,cannotViewChildren:f,customTranslations:p,...v})=>{var H,K;if(!(c&&d)){if(!v.invitationRoles)throw new Error("invitationRoles is required");if(!v.onSearchUsers)throw new Error("onSearchUsers is required")}if(!c&&!v.onInviteUser)throw new Error("onInviteUser is required");if(l&&!a)throw new Error("canView cannot be false if canUpdate is true");const{t:b}=ne.useCunningham(),{isMobile:h}=xn(),g=u.useRef(null),[m,C]=u.useState("400px"),S=u.useRef(null),[P,$]=u.useState(""),[w,E]=u.useState(""),[R,F]=u.useState([]),[V,x]=u.useState(((K=(H=v.invitationRoles)==null?void 0:H[0])==null?void 0:K.value)??""),M=h?"calc(100dvh - 32px)":"min(690px, calc(100dvh - 2em - 12px - 32px))",U=j=>{if(g.current&&clearTimeout(g.current),j===""){E(""),v.onSearchUsers("");return}g.current=setTimeout(()=>{v.onSearchUsers(j),E(j)},300)},A=j=>{$(j),U(j)},B=w!==""||R.length>0,_=u.useCallback(j=>{F(z=>[...z,j]),$(""),E(""),v.onSearchUsers("")},[v]),N=j=>{F(z=>z.filter(W=>W.id!==j.id))},k=u.useMemo(()=>{const j=t==null?void 0:t.filter(G=>!R.includes(G));let z=b(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)),X={id:w,full_name:"",email:w};return q&&(z=void 0),{groupName:b("components.share.search.group_name"),elements:j??[],showWhenEmpty:!0,emptyString:z,endActions:q?[{content:y.jsx(fl,{user:X}),onSelect:()=>void _(X)}]:void 0}},[t,w,b,R,_]),Z=j=>{var ce;const W=(j==null?void 0:j.clientHeight)??0,q=((ce=S.current)==null?void 0:ce.clientHeight)??0,X=`calc(${M} - ${W}px - ${q}px - 70px - 10px)`;C(X)},I=!c&&!B&&!v.loading&&i.length>0,L=!d&&!B&&!v.loading&&r.length>0,O=a?c&&d?"empty":"search":"cannot_view";return y.jsx(ne.Modal,{title:v.modalTitle??b("components.share.modalTitle"),isOpen:v.isOpen,onClose:v.onClose,closeOnClickOutside:!0,size:h?ne.ModalSize.FULL:ne.ModalSize.LARGE,children:y.jsxs("div",{className:"c__share-modal no-padding",children:[l&&R.length>0&&y.jsx("div",{className:"c__share-modal__selected-users",ref:S,children:y.jsx(Rf,{users:R,onRemoveUser:N,roles:v.invitationRoles,selectedRole:V,onSelectRole:x,onShare:()=>{v.onInviteUser(R,V),F([])}})}),O==="cannot_view"&&y.jsxs("div",{className:"c__share-modal__cannot-view",style:{height:m},children:[y.jsx("div",{className:"c__share-modal__cannot-view__content",children:y.jsx("p",{children:v.cannotViewMessage??b("components.share.cannot_view.message")})}),f]}),O==="search"&&y.jsx(L2,{onFilter:A,inputValue:P,showInput:l,loading:v.loading,placeholder:b("components.share.user.placeholder"),children:y.jsxs("div",{style:{height:m,overflowY:"auto"},children:[B&&y.jsx("div",{className:"c__share-modal__search-users",children:y.jsx(A2,{group:k,onSelect:j=>{_(j)},renderElement:j=>y.jsx(fl,{user:j})})}),!B&&e,I&&y.jsxs("div",{className:"c__share-modal__invitations",children:[y.jsx("span",{className:"c__share-modal__invitations-title",children:b("components.share.invitations.title")}),i.map(j=>{var z;return y.jsx(Kf,{invitation:j,roles:v.invitationRoles,updateRole:v.onUpdateInvitation,deleteInvitation:v.onDeleteInvitation,canUpdate:l,roleTopMessage:(z=v.invitationRoleTopMessage)==null?void 0:z.call(v,j)},j.id)}),y.jsx(Wc,{show:s,onShowMore:v.onLoadNextInvitations})]}),L&&y.jsxs("div",{className:"c__share-modal__members",children:[y.jsx("span",{className:"c__share-modal__members-title",children:b(r.length>1?"components.share.members.title_plural":"components.share.members.title_singular",{count:r.length})}),r.map(j=>{var z,W;return y.jsx(Ff,{accessData:j,canUpdate:l,roleTopMessage:(z=v.accessRoleTopMessage)==null?void 0:z.call(v,j),roles:((W=v.getAccessRoles)==null?void 0:W.call(v,j))??v.invitationRoles,updateRole:v.onUpdateAccess,deleteAccess:v.onDeleteAccess},j.id)}),y.jsx(Wc,{show:o,onShowMore:v.onLoadNextMembers})]})]})}),y.jsx("div",{ref:Z,children:!B&&y.jsxs("div",{className:"c__share-modal__footer",children:[v.linkSettings&&y.jsx(Fb,{linkReachChoices:v.linkReachChoices,canUpdate:l,onUpdateLinkReach:v.onUpdateLinkReach,linkReach:v.linkReach,linkRoleChoices:v.linkRoleChoices,linkRole:v.linkRole,onUpdateLinkRole:v.onUpdateLinkRole,showLinkRole:v.showLinkRole,customTranslations:p}),n]})})]})})},Wc=({show:t,onShowMore:e})=>{const{t:n}=ne.useCunningham();return t?y.jsx("div",{className:"c__share-modal__show-more-button",children:y.jsx(ne.Button,{color:"primary-text",size:"small",icon:y.jsx("span",{className:"material-icons",children:"arrow_downward"}),onClick:e,children:n("components.share.members.load_more")})}):null},jb=({onCopyLink:t,onOk:e})=>{const{t:n}=ne.useCunningham();return y.jsxs("div",{className:"c__share-modal__copy-link-footer",children:[y.jsx(ne.Button,{color:"tertiary",icon:y.jsx("span",{className:"material-icons",children:"link"}),onClick:t,children:n("components.share.copyLink")}),y.jsx(ne.Button,{color:"primary",onClick:e,children:n("components.share.ok")})]})},Hb=({user:t,settingsCTA:e,logout:n,isInitialOpen:r=!1,shouldCloseOnInteractOutside:i,footerAction:o})=>{const{t:l}=ne.useCunningham(),a=u.useId(),[s,c]=u.useState(r),d=()=>c(!s),f=!!n||!!o,p=!!e,v=u.useRef(null);return t?y.jsxs(y.Fragment,{children:[y.jsx(ne.Button,{color:"tertiary-text",ref:v,id:a,onClick:d,className:"user-menu__trigger","aria-label":l(s?"components.userMenu.close":"components.userMenu.open"),title:l(s?"components.userMenu.close":"components.userMenu.open"),children:y.jsx(ii,{fullName:t.full_name??t.email})}),y.jsx(Hl,{className:"c__dropdown-menu user-menu__popover",triggerRef:v,isOpen:s,shouldCloseOnInteractOutside:i,onOpenChange:c,children:y.jsxs(Wp,{"aria-label":l("components.userMenu.dialogTitle"),children:[y.jsxs("div",{className:"user-menu__content__body",children:[y.jsx(ii,{fullName:t.full_name??t.email,size:"large"}),y.jsx("div",{className:"user-menu__content__identity",children:t.full_name?y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"user-menu__content__identity__name",children:y.jsx("strong",{children:t.full_name})}),y.jsx("p",{className:"user-menu__content__identity__email",children:t.email})]}):y.jsx("p",{className:"user-menu__content__identity__email",children:y.jsx("strong",{children:t.email})})}),p&&y.jsx(ne.Button,{onClick:typeof e=="function"?e:void 0,href:typeof e=="string"?e:void 0,color:"tertiary",size:"small",icon:y.jsx(Zn,{name:"account_box"}),children:l("components.userMenu.accountSettings")})]}),f&&y.jsxs("footer",{className:"user-menu__footer",children:[o&&y.jsx("div",{className:"user-menu__footer__left",children:o}),n&&y.jsx("div",{className:"user-menu__footer__right",children:y.jsx(ne.Button,{color:"secondary",size:"small",icon:y.jsx(Zn,{name:"logout"}),onClick:n,fullWidth:!0,children:l("components.userMenu.logout")})})]})]})})]}):null};exports.AccessRoleDropdown=Mi;exports.CunninghamProvider=Jf;exports.CustomTabs=f9;exports.DropdownMenu=Ot;exports.Filter=iv;exports.Footer=rv;exports.Header=Td;exports.Hero=lv;exports.HomeGutter=av;exports.HorizontalSeparator=el;exports.Icon=Zn;exports.IconSize=Ce;exports.IconType=Vn;exports.InvitationUserSelectorItem=Mf;exports.InvitationUserSelectorList=Rf;exports.LaGaufre=yv;exports.Label=Jd;exports.LanguagePicker=Dd;exports.LeftPanel=_d;exports.MainLayout=Qv;exports.ProConnectButton=qc;exports.QuickSearch=L2;exports.QuickSearchGroup=A2;exports.QuickSearchInput=M2;exports.QuickSearchItem=Ir;exports.QuickSearchItemTemplate=_i;exports.SearchUserItem=fl;exports.ShareInvitationItem=Kf;exports.ShareMemberItem=Ff;exports.ShareModal=Kb;exports.ShareModalCopyLinkFooter=jb;exports.Spinner=Gl;exports.TreeApi=pn;exports.TreeContext=sa;exports.TreeProvider=Sb;exports.TreeView=xb;exports.TreeViewItem=Mb;exports.TreeViewMoveModeEnum=St;exports.TreeViewNodeTypeEnum=Le;exports.TreeViewSeparator=If;exports.UserAvatar=ii;exports.UserMenu=Hb;exports.UserRow=Li;exports.VerticalSeparator=d9;exports.WithLabel=tg;exports.containerSizeMap=Pd;exports.cunninghamConfig=Zo;exports.getContainerSize=bv;exports.getIconSize=Cv;exports.getUserColor=Af;exports.getUserInitials=Lf;exports.headerHeight=eg;exports.iconSizeMap=$d;exports.isNode=jn;exports.isSeparator=ni;exports.isTitle=ri;exports.locales=Gc;exports.useCustomTranslations=jf;exports.useDropdownMenu=gt;exports.useResponsive=xn;exports.useTree=Of;exports.useTreeContext=ca;
94
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function F7(t,e){if(t){if(typeof t=="string")return Sc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Sc(t,e)}}function Sc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function K7(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function j7(t){if(Array.isArray(t))return t}function H7(t,e,n){var r=pf(t,e,n),i=L7(r,2),o=i[0],l=i[1];return Lt(function(){var s=t.getHandlerId();if(s!=null)return t.subscribeToStateChange(l,{handlerIds:[s]})},[t,l]),o}function vf(t,e,n){return H7(e,t||function(){return{}},function(){return n.reconnect()})}function V7(t){return u.useMemo(function(){return t.hooks.dragSource()},[t])}function z7(t){return u.useMemo(function(){return t.hooks.dragPreview()},[t])}function B7(t,e){var n=hf(t,e);Y(!n.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 r=P7(),i=D7(n.options,n.previewOptions);return C7(n,r,i),[vf(n.collect,r,i),V7(i),z7(i)]}function U7(t){var e=t.accept;return u.useMemo(function(){return Y(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]},[e])}function W7(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Z7(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function G7(t,e,n){return e&&Z7(t.prototype,e),t}function wc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var q7=function(){function t(e,n){W7(this,t),wc(this,"spec",void 0),wc(this,"monitor",void 0),this.spec=e,this.monitor=n}return G7(t,[{key:"canDrop",value:function(){var n=this.spec,r=this.monitor;return n.canDrop?n.canDrop(r.getItem(),r):!0}},{key:"hover",value:function(){var n=this.spec,r=this.monitor;n.hover&&n.hover(r.getItem(),r)}},{key:"drop",value:function(){var n=this.spec,r=this.monitor;if(n.drop)return n.drop(r.getItem(),r)}}]),t}();function Y7(t,e){var n=u.useMemo(function(){return new q7(t,e)},[e]);return u.useEffect(function(){n.spec=t},[t]),n}function X7(t,e){return ty(t)||ey(t,e)||Q7(t,e)||J7()}function J7(){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 Q7(t,e){if(t){if(typeof t=="string")return xc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xc(t,e)}}function xc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ey(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function ty(t){if(Array.isArray(t))return t}function ny(t,e,n){var r=Vt(),i=Y7(t,e),o=U7(t);Lt(function(){var a=a7(o,i,r),s=X7(a,2),c=s[0],d=s[1];return e.receiveHandlerId(c),n.receiveHandlerId(c),d},[r,e,i,n,o.map(function(l){return l.toString()}).join("|")])}function ry(){var t=Vt();return u.useMemo(function(){return new qm(t)},[t])}function iy(t){var e=Vt(),n=u.useMemo(function(){return new l7(e.getBackend())},[e]);return Lt(function(){return n.dropTargetOptions=t||null,n.reconnect(),function(){return n.disconnectDropTarget()}},[t]),n}function oy(t){return u.useMemo(function(){return t.hooks.dropTarget()},[t])}function gf(t,e){var n=hf(t,e),r=ry(),i=iy(n.options);return ny(n,r,i),[vf(n.collect,r,i),oy(i)]}function ly(t,e){return uy(t)||cy(t,e)||sy(t,e)||ay()}function ay(){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 sy(t,e){if(t){if(typeof t=="string")return Ec(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ec(t,e)}}function Ec(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function cy(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function uy(t){if(Array.isArray(t))return t}function dy(t){var e=Vt(),n=e.getMonitor(),r=pf(n,t),i=ly(r,2),o=i[0],l=i[1];return u.useEffect(function(){return n.subscribeToOffsetChange(l)}),u.useEffect(function(){return n.subscribeToStateChange(l)}),o}function mf(t){var e=null,n=function(){return e==null&&(e=t()),e};return n}function fy(t,e){return t.filter(function(n){return n!==e})}function hy(t,e){var n=new Set,r=function(l){return n.add(l)};t.forEach(r),e.forEach(r);var i=[];return n.forEach(function(o){return i.push(o)}),i}function py(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function gy(t,e,n){return e&&vy(t.prototype,e),t}function $c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var my=function(){function t(e){py(this,t),$c(this,"entered",[]),$c(this,"isNodeInDocument",void 0),this.isNodeInDocument=e}return gy(t,[{key:"enter",value:function(n){var r=this,i=this.entered.length,o=function(a){return r.isNodeInDocument(a)&&(!a.contains||a.contains(n))};return this.entered=hy(this.entered.filter(o),[n]),i===0&&this.entered.length>0}},{key:"leave",value:function(n){var r=this.entered.length;return this.entered=fy(this.entered.filter(this.isNodeInDocument),n),r>0&&this.entered.length===0}},{key:"reset",value:function(){this.entered=[]}}]),t}(),yy=mf(function(){return/firefox/i.test(navigator.userAgent)}),yf=mf(function(){return!!window.safari});function by(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Cy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Sy(t,e,n){return e&&Cy(t.prototype,e),t}function Nn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Pc=function(){function t(e,n){by(this,t),Nn(this,"xs",void 0),Nn(this,"ys",void 0),Nn(this,"c1s",void 0),Nn(this,"c2s",void 0),Nn(this,"c3s",void 0);for(var r=e.length,i=[],o=0;o<r;o++)i.push(o);i.sort(function(N,F){return e[N]<e[F]?-1:1});for(var l=[],a=[],s,c,d=0;d<r-1;d++)s=e[d+1]-e[d],c=n[d+1]-n[d],l.push(s),a.push(c/s);for(var f=[a[0]],p=0;p<l.length-1;p++){var v=a[p],y=a[p+1];if(v*y<=0)f.push(0);else{s=l[p];var h=l[p+1],g=s+h;f.push(3*g/((g+h)/v+(g+s)/y))}}f.push(a[a.length-1]);for(var b=[],C=[],S,P=0;P<f.length-1;P++){S=a[P];var E=f[P],x=1/l[P],$=E+f[P+1]-S-S;b.push((S-E-$)*x),C.push($*x*x)}this.xs=e,this.ys=n,this.c1s=f,this.c2s=b,this.c3s=C}return Sy(t,[{key:"interpolate",value:function(n){var r=this.xs,i=this.ys,o=this.c1s,l=this.c2s,a=this.c3s,s=r.length-1;if(n===r[s])return i[s];for(var c=0,d=a.length-1,f;c<=d;){f=Math.floor(.5*(c+d));var p=r[f];if(p<n)c=f+1;else if(p>n)d=f-1;else return i[f]}s=Math.max(0,d);var v=n-r[s],y=v*v;return i[s]+o[s]*v+l[s]*y+a[s]*v*y}}]),t}(),wy=1;function bf(t){var e=t.nodeType===wy?t:t.parentElement;if(!e)return null;var n=e.getBoundingClientRect(),r=n.top,i=n.left;return{x:i,y:r}}function Sr(t){return{x:t.clientX,y:t.clientY}}function xy(t){var e;return t.nodeName==="IMG"&&(yy()||!((e=document.documentElement)!==null&&e!==void 0&&e.contains(t)))}function Ey(t,e,n,r){var i=t?e.width:n,o=t?e.height:r;return yf()&&t&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function $y(t,e,n,r,i){var o=xy(e),l=o?t:e,a=bf(l),s={x:n.x-a.x,y:n.y-a.y},c=t.offsetWidth,d=t.offsetHeight,f=r.anchorX,p=r.anchorY,v=Ey(o,e,c,d),y=v.dragPreviewWidth,h=v.dragPreviewHeight,g=function(){var $=new Pc([0,.5,1],[s.y,s.y/d*h,s.y+h-d]),N=$.interpolate(p);return yf()&&o&&(N+=(window.devicePixelRatio-1)*h),N},b=function(){var $=new Pc([0,.5,1],[s.x,s.x/c*y,s.x+y-c]);return $.interpolate(f)},C=i.offsetX,S=i.offsetY,P=C===0||C,E=S===0||S;return{x:P?C:b(),y:E?S:g()}}var Cf="__NATIVE_FILE__",Sf="__NATIVE_URL__",wf="__NATIVE_TEXT__",xf="__NATIVE_HTML__";const Dc=Object.freeze(Object.defineProperty({__proto__:null,FILE:Cf,HTML:xf,TEXT:wf,URL:Sf},Symbol.toStringTag,{value:"Module"}));function bo(t,e,n){var r=e.reduce(function(i,o){return i||t.getData(o)},"");return r??n}var Qt;function wr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var cl=(Qt={},wr(Qt,Cf,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items},dataTransfer:function(e){return e}},matchesTypes:["Files"]}),wr(Qt,xf,{exposeProperties:{html:function(e,n){return bo(e,n,"")},dataTransfer:function(e){return e}},matchesTypes:["Html","text/html"]}),wr(Qt,Sf,{exposeProperties:{urls:function(e,n){return bo(e,n,"").split(`
97
+ `)},dataTransfer:function(e){return e}},matchesTypes:["Url","text/uri-list"]}),wr(Qt,wf,{exposeProperties:{text:function(e,n){return bo(e,n,"")},dataTransfer:function(e){return e}},matchesTypes:["Text","text/plain"]}),Qt);function Py(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Dy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ty(t,e,n){return e&&Dy(t.prototype,e),t}function Tc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _y=function(){function t(e){Py(this,t),Tc(this,"item",void 0),Tc(this,"config",void 0),this.config=e,this.item={},this.initializeExposedProperties()}return Ty(t,[{key:"initializeExposedProperties",value:function(){var n=this;Object.keys(this.config.exposeProperties).forEach(function(r){Object.defineProperty(n.item,r,{configurable:!0,enumerable:!0,get:function(){return console.warn(`Browser doesn't allow reading "`.concat(r,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(n){var r=this;if(n){var i={};Object.keys(this.config.exposeProperties).forEach(function(o){i[o]={value:r.config.exposeProperties[o](n,r.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(n,r){return r===n.getSourceId()}},{key:"endDrag",value:function(){}}]),t}();function Iy(t,e){var n=new _y(cl[t]);return n.loadDataTransfer(e),n}function Co(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(cl).filter(function(n){var r=cl[n].matchesTypes;return r.some(function(i){return e.indexOf(i)>-1})})[0]||null}function Oy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ky(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ny(t,e,n){return e&&ky(t.prototype,e),t}function So(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ry=function(){function t(e,n){Oy(this,t),So(this,"ownerDocument",null),So(this,"globalContext",void 0),So(this,"optionsArgs",void 0),this.globalContext=e,this.optionsArgs=n}return Ny(t,[{key:"window",get:function(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}},{key:"document",get:function(){var n;return(n=this.globalContext)!==null&&n!==void 0&&n.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var n;return((n=this.optionsArgs)===null||n===void 0?void 0:n.rootElement)||this.window}}]),t}();function _c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ic(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?_c(Object(n),!0).forEach(function(r){Q(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_c(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function My(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ly(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ay(t,e,n){return e&&Ly(t.prototype,e),t}function Q(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Fy=function(){function t(e,n,r){var i=this;My(this,t),Q(this,"options",void 0),Q(this,"actions",void 0),Q(this,"monitor",void 0),Q(this,"registry",void 0),Q(this,"enterLeaveCounter",void 0),Q(this,"sourcePreviewNodes",new Map),Q(this,"sourcePreviewNodeOptions",new Map),Q(this,"sourceNodes",new Map),Q(this,"sourceNodeOptions",new Map),Q(this,"dragStartSourceIds",null),Q(this,"dropTargetIds",[]),Q(this,"dragEnterTargetIds",[]),Q(this,"currentNativeSource",null),Q(this,"currentNativeHandle",null),Q(this,"currentDragSourceNode",null),Q(this,"altKeyPressed",!1),Q(this,"mouseMoveTimeoutTimer",null),Q(this,"asyncEndDragFrameId",null),Q(this,"dragOverTargetIds",null),Q(this,"lastClientOffset",null),Q(this,"hoverRafId",null),Q(this,"getSourceClientOffset",function(o){var l=i.sourceNodes.get(o);return l&&bf(l)||null}),Q(this,"endDragNativeItem",function(){i.isDraggingNativeItem()&&(i.actions.endDrag(),i.currentNativeHandle&&i.registry.removeSource(i.currentNativeHandle),i.currentNativeHandle=null,i.currentNativeSource=null)}),Q(this,"isNodeInDocument",function(o){return!!(o&&i.document&&i.document.body&&i.document.body.contains(o))}),Q(this,"endDragIfSourceWasRemovedFromDOM",function(){var o=i.currentDragSourceNode;o==null||i.isNodeInDocument(o)||i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),Q(this,"handleTopDragStartCapture",function(){i.clearCurrentDragSourceNode(),i.dragStartSourceIds=[]}),Q(this,"handleTopDragStart",function(o){if(!o.defaultPrevented){var l=i.dragStartSourceIds;i.dragStartSourceIds=null;var a=Sr(o);i.monitor.isDragging()&&i.actions.endDrag(),i.actions.beginDrag(l||[],{publishSource:!1,getSourceClientOffset:i.getSourceClientOffset,clientOffset:a});var s=o.dataTransfer,c=Co(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 v=i.getCurrentSourcePreviewNodeOptions(),y=v.anchorX,h=v.anchorY,g=v.offsetX,b=v.offsetY,C={anchorX:y,anchorY:h},S={offsetX:g,offsetY:b},P=$y(f,p,a,C,S);s.setDragImage(p,P.x,P.y)}}try{s==null||s.setData("application/json",{})}catch{}i.setCurrentDragSourceNode(o.target);var E=i.getCurrentSourcePreviewNodeOptions(),x=E.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()}}}),Q(this,"handleTopDragEndCapture",function(){i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),Q(this,"handleTopDragEnterCapture",function(o){i.dragEnterTargetIds=[];var l=i.enterLeaveCounter.enter(o.target);if(!(!l||i.monitor.isDragging())){var a=o.dataTransfer,s=Co(a);s&&i.beginDragNativeItem(s,a)}}),Q(this,"handleTopDragEnter",function(o){var l=i.dragEnterTargetIds;if(i.dragEnterTargetIds=[],!!i.monitor.isDragging()){i.altKeyPressed=o.altKey,l.length>0&&i.actions.hover(l,{clientOffset:Sr(o)});var a=l.some(function(s){return i.monitor.canDropOnTarget(s)});a&&(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=i.getCurrentDropEffect()))}}),Q(this,"handleTopDragOverCapture",function(){i.dragOverTargetIds=[]}),Q(this,"handleTopDragOver",function(o){var l=i.dragOverTargetIds;if(i.dragOverTargetIds=[],!i.monitor.isDragging()){o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none");return}i.altKeyPressed=o.altKey,i.lastClientOffset=Sr(o),i.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(i.hoverRafId=requestAnimationFrame(function(){i.monitor.isDragging()&&i.actions.hover(l||[],{clientOffset:i.lastClientOffset}),i.hoverRafId=null}));var a=(l||[]).some(function(s){return i.monitor.canDropOnTarget(s)});a?(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=i.getCurrentDropEffect())):i.isDraggingNativeItem()?o.preventDefault():(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none"))}),Q(this,"handleTopDragLeaveCapture",function(o){i.isDraggingNativeItem()&&o.preventDefault();var l=i.enterLeaveCounter.leave(o.target);l&&i.isDraggingNativeItem()&&setTimeout(function(){return i.endDragNativeItem()},0)}),Q(this,"handleTopDropCapture",function(o){if(i.dropTargetIds=[],i.isDraggingNativeItem()){var l;o.preventDefault(),(l=i.currentNativeSource)===null||l===void 0||l.loadDataTransfer(o.dataTransfer)}else Co(o.dataTransfer)&&o.preventDefault();i.enterLeaveCounter.reset()}),Q(this,"handleTopDrop",function(o){var l=i.dropTargetIds;i.dropTargetIds=[],i.actions.hover(l,{clientOffset:Sr(o)}),i.actions.drop({dropEffect:i.getCurrentDropEffect()}),i.isDraggingNativeItem()?i.endDragNativeItem():i.monitor.isDragging()&&i.actions.endDrag()}),Q(this,"handleSelectStart",function(o){var l=o.target;typeof l.dragDrop=="function"&&(l.tagName==="INPUT"||l.tagName==="SELECT"||l.tagName==="TEXTAREA"||l.isContentEditable||(o.preventDefault(),l.dragDrop()))}),this.options=new Ry(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new my(this.isNodeInDocument)}return Ay(t,[{key:"profile",value:function(){var n,r;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((n=this.dragStartSourceIds)===null||n===void 0?void 0:n.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((r=this.dragOverTargetIds)===null||r===void 0?void 0:r.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 n=this.rootElement;if(n!==void 0){if(n.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");n.__isReactDndBackendSetUp=!0,this.addEventListeners(n)}}},{key:"teardown",value:function(){var n=this.rootElement;if(n!==void 0&&(n.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var r;(r=this.window)===null||r===void 0||r.cancelAnimationFrame(this.asyncEndDragFrameId)}}},{key:"connectDragPreview",value:function(n,r,i){var o=this;return this.sourcePreviewNodeOptions.set(n,i),this.sourcePreviewNodes.set(n,r),function(){o.sourcePreviewNodes.delete(n),o.sourcePreviewNodeOptions.delete(n)}}},{key:"connectDragSource",value:function(n,r,i){var o=this;this.sourceNodes.set(n,r),this.sourceNodeOptions.set(n,i);var l=function(c){return o.handleDragStart(c,n)},a=function(c){return o.handleSelectStart(c)};return r.setAttribute("draggable","true"),r.addEventListener("dragstart",l),r.addEventListener("selectstart",a),function(){o.sourceNodes.delete(n),o.sourceNodeOptions.delete(n),r.removeEventListener("dragstart",l),r.removeEventListener("selectstart",a),r.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(n,r){var i=this,o=function(c){return i.handleDragEnter(c,n)},l=function(c){return i.handleDragOver(c,n)},a=function(c){return i.handleDrop(c,n)};return r.addEventListener("dragenter",o),r.addEventListener("dragover",l),r.addEventListener("drop",a),function(){r.removeEventListener("dragenter",o),r.removeEventListener("dragover",l),r.removeEventListener("drop",a)}}},{key:"addEventListeners",value:function(n){n.addEventListener&&(n.addEventListener("dragstart",this.handleTopDragStart),n.addEventListener("dragstart",this.handleTopDragStartCapture,!0),n.addEventListener("dragend",this.handleTopDragEndCapture,!0),n.addEventListener("dragenter",this.handleTopDragEnter),n.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),n.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),n.addEventListener("dragover",this.handleTopDragOver),n.addEventListener("dragover",this.handleTopDragOverCapture,!0),n.addEventListener("drop",this.handleTopDrop),n.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(n){n.removeEventListener&&(n.removeEventListener("dragstart",this.handleTopDragStart),n.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),n.removeEventListener("dragend",this.handleTopDragEndCapture,!0),n.removeEventListener("dragenter",this.handleTopDragEnter),n.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),n.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),n.removeEventListener("dragover",this.handleTopDragOver),n.removeEventListener("dragover",this.handleTopDragOverCapture,!0),n.removeEventListener("drop",this.handleTopDrop),n.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var n=this.monitor.getSourceId(),r=this.sourceNodeOptions.get(n);return Ic({dropEffect:this.altKeyPressed?"copy":"move"},r||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var n=this.monitor.getSourceId(),r=this.sourcePreviewNodeOptions.get(n);return Ic({anchorX:.5,anchorY:.5,captureDraggingState:!1},r||{})}},{key:"isDraggingNativeItem",value:function(){var n=this.monitor.getItemType();return Object.keys(Dc).some(function(r){return Dc[r]===n})}},{key:"beginDragNativeItem",value:function(n,r){this.clearCurrentDragSourceNode(),this.currentNativeSource=Iy(n,r),this.currentNativeHandle=this.registry.addSource(n,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(n){var r=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=n;var i=1e3;this.mouseMoveTimeoutTimer=setTimeout(function(){var o;return(o=r.rootElement)===null||o===void 0?void 0:o.addEventListener("mousemove",r.endDragIfSourceWasRemovedFromDOM,!0)},i)}},{key:"clearCurrentDragSourceNode",value:function(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var n;(n=this.window)===null||n===void 0||n.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}},{key:"handleDragStart",value:function(n,r){n.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(r))}},{key:"handleDragEnter",value:function(n,r){this.dragEnterTargetIds.unshift(r)}},{key:"handleDragOver",value:function(n,r){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(r)}},{key:"handleDrop",value:function(n,r){this.dropTargetIds.unshift(r)}}]),t}(),xr;function Ky(){return xr||(xr=new Image,xr.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),xr}var jy=function(e,n,r){return new Fy(e,n,r)};function Hy(t){const e=Ie(),n=e.selectedIds,[r,i,o]=B7(()=>({canDrag:()=>t.isDraggable,type:"NODE",item:()=>{const l=e.isSelected(t.id)?Array.from(n):[t.id];return e.dispatch(bn.dragStart(t.id,l)),{id:t.id,dragIds:l}},end:()=>{e.hideCursor(),e.dispatch(bn.dragEnd())}}),[n,t]);return u.useEffect(()=>{o(Ky())},[o]),i}function Vy(t,e){const n=t.getBoundingClientRect(),r=e.x-Math.round(n.x),i=e.y-Math.round(n.y),o=n.height,l=i<o/2,a=!l,s=o/4,c=i>s&&i<o-s;return{x:r,inTopHalf:l,inBottomHalf:a,inMiddle:c,atTop:!c&&l,atBottom:!c&&a}}function zy(t,e,n,r){return t?t.isInternal?r.atTop?[e,t]:r.inMiddle?[t,t]:[t,n]:r.inTopHalf?[e,t]:[t,n]:[e,null]}function Er(t,e){return{parentId:t||null,index:e}}function en(t,e){return{type:"line",index:t,level:e}}function By(t){return{type:"highlight",id:t}}function wo(t,e){var n;let r=t;for(;r.parent&&r.level>e;)r=r.parent;const i=((n=r.parent)===null||n===void 0?void 0:n.id)||null,o=Z2(r)+1;return{parentId:i,index:o}}function Ef(t){var e;const n=Vy(t.element,t.offset),r=t.indent,i=Math.round(Math.max(0,n.x-r)/r),{node:o,nextNode:l,prevNode:a}=t,[s,c]=zy(o,a,l,n);if(o&&o.isInternal&&n.inMiddle)return{drop:Er(o.id,null),cursor:By(o.id)};if(!s)return{drop:Er((e=c==null?void 0:c.parent)===null||e===void 0?void 0:e.id,0),cursor:en(0,0)};if(z2(s)){const d=Or(i,(c==null?void 0:c.level)||0,s.level);return{drop:wo(s,d),cursor:en(s.rowIndex+1,d)}}if(B2(s)){const d=Or(i,(c==null?void 0:c.level)||0,s.level);return{drop:wo(s,d),cursor:en(s.rowIndex+1,d)}}if(U2(s)){const d=Or(i,0,s.level+1);return d>s.level?{drop:Er(s.id,0),cursor:en(s.rowIndex+1,d)}:{drop:wo(s,d),cursor:en(s.rowIndex+1,d)}}return{drop:Er(s==null?void 0:s.id,0),cursor:en(s.rowIndex+1,s.level+1)}}function Uy(t,e){const n=Ie(),[r,i]=gf(()=>({accept:"NODE",canDrop:()=>n.canDrop(),hover:(o,l)=>{const a=l.getClientOffset();if(!t.current||!a)return;const{cursor:s,drop:c}=Ef({element:t.current,offset:a,indent:n.indent,node:e,prevNode:e.prev,nextNode:e.next});c&&n.dispatch(bn.hovering(c.parentId,c.index)),l.canDrop()?s&&n.showCursor(s):n.hideCursor()},drop:(o,l)=>{if(!l.canDrop())return null;let{parentId:a,index:s,dragIds:c}=n.state.dnd;J2(n.props.onMove,{dragIds:c,parentId:a===er?null:a,index:s===null?0:s,dragNodes:n.dragNodes,parentNode:n.get(a)}),n.open(a)}}),[e,t.current,n.props]);return i}function Wy(t){const e=Ie(),n=e.at(t);if(!n)throw new Error(`Could not find node for index: ${t}`);return u.useMemo(()=>{const r=n.clone();return e.visibleNodes[t]=r,r},[...Object.values(n.state),n])}const Zy=u.memo(function({index:e,style:n}){V2(),h9();const r=Ie(),i=Wy(e),o=u.useRef(null),l=Hy(i),a=Uy(o,i),s=u.useCallback(h=>{o.current=h,a(h)},[a]),c=r.indent*i.level,d=u.useMemo(()=>({paddingLeft:c}),[c]),f=u.useMemo(()=>{var h,g;return Object.assign(Object.assign({},n),{top:parseFloat(n.top)+((g=(h=r.props.padding)!==null&&h!==void 0?h:r.props.paddingTop)!==null&&g!==void 0?g:0)})},[n,r.props.padding,r.props.paddingTop]),p={role:"treeitem","aria-level":i.level+1,"aria-selected":i.isSelected,"aria-expanded":i.isOpen,style:f,tabIndex:-1,className:r.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 v=r.renderNode,y=r.renderRow;return m.jsx(y,{node:i,innerRef:s,attrs:p,children:m.jsx(v,{node:i,tree:r,style:d,dragHandle:l})})});let xo="",Oc=null;function $f(){V2();const t=Ie();return m.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 n;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 l=o.nextSibling,a=o.parent;t.focus(l||a,{scroll:!1}),t.delete(o)}}return}if(e.key==="Tab"&&!e.shiftKey){e.preventDefault(),G2(e.currentTarget);return}if(e.key==="Tab"&&e.shiftKey){e.preventDefault(),q2(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):!((n=i.parent)===null||n===void 0)&&n.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(Oc),xo+=e.key,Oc=setTimeout(()=>{xo=""},600);const r=t.visibleNodes.find(i=>{const o=i.data.name;return typeof o=="string"?o.toLowerCase().startsWith(xo):!1});r&&t.focus(r.id)},children:m.jsx(Y9,{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 n;return((n=t.visibleNodes[e])===null||n===void 0?void 0:n.id)||e},outerElementType:Q9,innerElementType:n3,onScroll:t.props.onScroll,onItemsRendered:t.onItemsRendered.bind(t),ref:t.list,children:Zy})})}function kc(t){return t.isFiltered?qy(t.root,t.isMatch.bind(t)):Gy(t.root)}function Gy(t){const e=[];function n(r){var i;r.level>=0&&e.push(r),r.isOpen&&((i=r.children)===null||i===void 0||i.forEach(n))}return n(t),e.forEach(Pf),e}function qy(t,e){const n={},r=[];function i(l){if(!l.isRoot&&e(l)){n[l.id]=!0;let s=l.parent;for(;s;)n[s.id]=!0,s=s.parent}if(l.children)for(let s of l.children)i(s)}function o(l){var a;l.level>=0&&n[l.id]&&r.push(l),l.isOpen&&((a=l.children)===null||a===void 0||a.forEach(o))}return i(t),o(t),r.forEach(Pf),r}function Pf(t,e){t.rowIndex=e}const Nc=t=>t.reduce((e,n,r)=>(e[n.id]=r,e),{});var Eo=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(l){l(o)})}return new(n||(n=Promise))(function(o,l){function a(d){try{c(r.next(d))}catch(f){l(f)}}function s(d){try{c(r.throw(d))}catch(f){l(f)}}function c(d){d.done?o(d.value):i(d.value).then(a,s)}c((r=r.apply(t,e||[])).next())})};const{safeRun:ge,identify:Xe,identifyNull:Ke}=b9;class pn{constructor(e,n,r,i){this.store=e,this.props=n,this.list=r,this.listEl=i,this.visibleStartIndex=0,this.visibleStopIndex=0,this.root=Vs(this),this.visibleNodes=kc(this),this.idToIndex=Nc(this.visibleNodes)}update(e){this.props=e,this.root=Vs(this),this.visibleNodes=kc(this),this.idToIndex=Nc(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 n=(e=this.props.searchMatch)!==null&&e!==void 0?e:(r,i)=>JSON.stringify(Object.values(r.data)).toLocaleLowerCase().includes(i.toLocaleLowerCase());return r=>n(r,this.searchTerm)}accessChildren(e){var n;const r=this.props.childrenAccessor||"children";return(n=Kn(e,r))!==null&&n!==void 0?n:null}accessId(e){const n=this.props.idAccessor||"id",r=Kn(e,n);if(!r)throw new Error("Data must contain an 'id' property or props.idAccessor must return a string");return r}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,n){var r;if(e===null||n===null)return[];const i=(r=this.indexOf(e))!==null&&r!==void 0?r:0,o=this.indexOf(n);if(o===null)return[];const l=Math.min(i,o),a=Math.max(i,o);return this.visibleNodes.slice(l,a+1)}indexOf(e){const n=X2(e);return n?this.idToIndex[n]:null}get editingId(){return this.state.nodes.edit.id}createInternal(){return this.create({type:"internal"})}createLeaf(){return this.create({type:"leaf"})}create(){return Eo(this,arguments,void 0,function*(e={}){var n,r;const i=e.parentId===void 0?tf(this):e.parentId,o=(n=e.index)!==null&&n!==void 0?n:ef(this),l=(r=e.type)!==null&&r!==void 0?r:"leaf",a=yield ge(this.props.onCreate,{type:l,parentId:i,index:o,parentNode:this.get(i)});a&&(this.focus(a),setTimeout(()=>{this.edit(a).then(()=>{this.select(a),this.activate(a)})}))})}delete(e){return Eo(this,void 0,void 0,function*(){if(!e)return;const r=(Array.isArray(e)?e:[e]).map(Xe),i=r.map(o=>this.get(o)).filter(o=>!!o);yield ge(this.props.onDelete,{nodes:i,ids:r})})}edit(e){const n=Xe(e);return this.resolveEdit({cancelled:!0}),this.scrollTo(n),this.dispatch(uo(n)),new Promise(r=>{pn.editPromise=r})}submit(e,n){return Eo(this,void 0,void 0,function*(){if(!e)return;const r=Xe(e);yield ge(this.props.onRename,{id:r,name:n,node:this.get(r)}),this.dispatch(uo(null)),this.resolveEdit({cancelled:!1,value:n}),setTimeout(()=>this.onFocus())})}reset(){this.dispatch(uo(null)),this.resolveEdit({cancelled:!0}),setTimeout(()=>this.onFocus())}activate(e){const n=this.get(Ke(e));n&&ge(this.props.onActivate,n)}resolveEdit(e){const n=pn.editPromise;n&&n(e),pn.editPromise=null}get selectedIds(){return this.state.nodes.selection.ids}get selectedNodes(){let e=[];for(let n of Array.from(this.selectedIds)){const r=this.get(n);r&&e.push(r)}return e}focus(e,n={}){e&&(this.props.selectionFollowsFocus?this.select(e):(this.dispatch(qt(Xe(e))),n.scroll!==!1&&this.scrollTo(e),this.focusedNode&&ge(this.props.onFocus,this.focusedNode)))}pageUp(){var e,n;const r=this.visibleStartIndex,o=this.visibleStopIndex-r;let l=(n=(e=this.focusedNode)===null||e===void 0?void 0:e.rowIndex)!==null&&n!==void 0?n:0;l>r?l=r:l=Math.max(r-o,0),this.focus(this.at(l))}pageDown(){var e,n;const r=this.visibleStartIndex,i=this.visibleStopIndex,o=i-r;let l=(n=(e=this.focusedNode)===null||e===void 0?void 0:e.rowIndex)!==null&&n!==void 0?n:0;l<i?l=i:l=Math.min(l+o,this.visibleNodes.length-1),this.focus(this.at(l))}select(e,n={}){if(!e)return;const r=n.focus!==!1,i=Xe(e);r&&this.dispatch(qt(i)),this.dispatch(Fe.only(i)),this.dispatch(Fe.anchor(i)),this.dispatch(Fe.mostRecent(i)),this.scrollTo(i,n.align),this.focusedNode&&r&&ge(this.props.onFocus,this.focusedNode),ge(this.props.onSelect,this.selectedNodes)}deselect(e){if(!e)return;const n=Xe(e);this.dispatch(Fe.remove(n)),ge(this.props.onSelect,this.selectedNodes)}selectMulti(e){const n=this.get(Ke(e));n&&(this.dispatch(qt(n.id)),this.dispatch(Fe.add(n.id)),this.dispatch(Fe.anchor(n.id)),this.dispatch(Fe.mostRecent(n.id)),this.scrollTo(n),this.focusedNode&&ge(this.props.onFocus,this.focusedNode),ge(this.props.onSelect,this.selectedNodes))}selectContiguous(e){if(!e)return;const n=Xe(e),{anchor:r,mostRecent:i}=this.state.nodes.selection;this.dispatch(qt(n)),this.dispatch(Fe.remove(this.nodesBetween(r,i))),this.dispatch(Fe.add(this.nodesBetween(r,Ke(n)))),this.dispatch(Fe.mostRecent(n)),this.scrollTo(n),this.focusedNode&&ge(this.props.onFocus,this.focusedNode),ge(this.props.onSelect,this.selectedNodes)}deselectAll(){this.setSelection({ids:[],anchor:null,mostRecent:null}),ge(this.props.onSelect,this.selectedNodes)}selectAll(){var e;this.setSelection({ids:Object.keys(this.idToIndex),anchor:this.firstNode,mostRecent:this.lastNode}),this.dispatch(qt((e=this.lastNode)===null||e===void 0?void 0:e.id)),this.focusedNode&&ge(this.props.onFocus,this.focusedNode),ge(this.props.onSelect,this.selectedNodes)}setSelection(e){var n;const r=new Set((n=e.ids)===null||n===void 0?void 0:n.map(Xe)),i=Ke(e.anchor),o=Ke(e.mostRecent);this.dispatch(Fe.set({ids:r,anchor:i,mostRecent:o})),ge(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 n=(e=this.get(this.state.dnd.parentId))!==null&&e!==void 0?e:this.root,r=this.dragNodes,i=this.props.disableDrop;for(const o of r)if(!o||!n||o.isInternal&&W2(n,o))return!1;return typeof i=="function"?!i({parentNode:n,dragNodes:this.dragNodes,index:this.state.dnd.index||0}):typeof i=="string"?!n.data[i]:typeof i=="boolean"?!i:!0}hideCursor(){this.dispatch(bn.cursor({type:"none"}))}showCursor(e){this.dispatch(bn.cursor(e))}open(e){const n=Ke(e);n&&(this.isOpen(n)||(this.dispatch(tl.open(n,this.isFiltered)),ge(this.props.onToggle,n)))}close(e){const n=Ke(e);n&&this.isOpen(n)&&(this.dispatch(tl.close(n,this.isFiltered)),ge(this.props.onToggle,n))}toggle(e){const n=Ke(e);if(n)return this.isOpen(n)?this.close(n):this.open(n)}openParents(e){const n=Ke(e);if(!n)return;const r=ea(this.root,n);let i=r==null?void 0:r.parent;for(;i;)this.open(i.id),i=i.parent}openSiblings(e){const n=e.parent;if(!n)this.toggle(e.id);else if(n.children){const r=e.isOpen;for(let i of n.children)i.isInternal&&(r?this.close(i.id):this.open(i.id));this.scrollTo(this.focusedNode)}}openAll(){Qr(this.root,e=>{e.isInternal&&e.open()})}closeAll(){Qr(this.root,e=>{e.isInternal&&e.close()})}scrollTo(e,n="smart"){if(!e)return;const r=Xe(e);return this.openParents(r),Q2(()=>r in this.idToIndex).then(()=>{var i;const o=this.idToIndex[r];o!==void 0&&((i=this.list.current)===null||i===void 0||i.scrollToItem(o,n))}).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 n,r,i;if(!e)return!1;if(e===er)return!0;const o=(n=this.props.openByDefault)!==null&&n!==void 0?n:!0;return this.isFiltered?(r=this.state.nodes.open.filtered[e])!==null&&r!==void 0?r:!0:(i=this.state.nodes.open.unfiltered[e])!==null&&i!==void 0?i:o}isEditable(e){const n=this.props.disableEdit||(()=>!1);return!Kn(e,n)}isDraggable(e){const n=this.props.disableDrag||(()=>!1);return!Kn(e,n)}isDragging(e){const n=Ke(e);return n?this.state.nodes.drag.id===n:!1}isFocused(e){return this.hasFocus&&this.state.nodes.focus.id===e}isMatch(e){return this.matchFn(e)}willReceiveDrop(e){const n=Ke(e);if(!n)return!1;const{destinationParentId:r,destinationIndex:i}=this.state.nodes.drag;return n===r&&i===null}onFocus(){const e=this.focusedNode||this.firstNode;e&&this.dispatch(qt(e.id))}onBlur(){this.dispatch(_9())}onItemsRendered(e){this.visibleStartIndex=e.visibleStartIndex,this.visibleStopIndex=e.visibleStopIndex}get renderContainer(){return this.props.renderContainer||$f}get renderRow(){return this.props.renderRow||E9}get renderNode(){return this.props.children||$9}get renderDragPreview(){return this.props.renderDragPreview||nf}get renderCursor(){return this.props.renderCursor||x9}}function be(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 Yy=typeof Symbol=="function"&&Symbol.observable||"@@observable",Rc=Yy,$o=()=>Math.random().toString(36).substring(7).split("").join("."),Xy={INIT:`@@redux/INIT${$o()}`,REPLACE:`@@redux/REPLACE${$o()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${$o()}`},Dt=Xy;function Df(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 Jy(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(tb(t))return"date";if(eb(t))return"error";const n=Qy(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return Object.prototype.toString.call(t).slice(8,-1).toLowerCase().replace(/\s/g,"")}function Qy(t){return typeof t.constructor=="function"?t.constructor.name:null}function eb(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function tb(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function at(t){let e=typeof t;return process.env.NODE_ENV!=="production"&&(e=Jy(t)),e}function Tf(t,e,n){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?be(2):`Expected the root reducer to be a function. Instead, received: '${at(t)}'`);if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?be(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 n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?be(1):`Expected the enhancer to be a function. Instead, received: '${at(n)}'`);return n(Tf)(t,e)}let r=t,i=e,o=new Map,l=o,a=0,s=!1;function c(){l===o&&(l=new Map,o.forEach((g,b)=>{l.set(b,g)}))}function d(){if(s)throw new Error(process.env.NODE_ENV==="production"?be(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(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?be(4):`Expected the listener to be a function. Instead, received: '${at(g)}'`);if(s)throw new Error(process.env.NODE_ENV==="production"?be(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 b=!0;c();const C=a++;return l.set(C,g),function(){if(b){if(s)throw new Error(process.env.NODE_ENV==="production"?be(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(),l.delete(C),o=null}}}function p(g){if(!Df(g))throw new Error(process.env.NODE_ENV==="production"?be(7):`Actions must be plain objects. Instead, the actual type was: '${at(g)}'. 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 g.type>"u")throw new Error(process.env.NODE_ENV==="production"?be(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof g.type!="string")throw new Error(process.env.NODE_ENV==="production"?be(17):`Action "type" property must be a string. Instead, the actual type was: '${at(g.type)}'. Value was: '${g.type}' (stringified)`);if(s)throw new Error(process.env.NODE_ENV==="production"?be(9):"Reducers may not dispatch actions.");try{s=!0,i=r(i,g)}finally{s=!1}return(o=l).forEach(C=>{C()}),g}function v(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?be(10):`Expected the nextReducer to be a function. Instead, received: '${at(g)}`);r=g,p({type:Dt.REPLACE})}function y(){const g=f;return{subscribe(b){if(typeof b!="object"||b===null)throw new Error(process.env.NODE_ENV==="production"?be(11):`Expected the observer to be an object. Instead, received: '${at(b)}'`);function C(){const P=b;P.next&&P.next(d())}return C(),{unsubscribe:g(C)}},[Rc](){return this}}}return p({type:Dt.INIT}),{dispatch:p,subscribe:f,getState:d,replaceReducer:v,[Rc]:y}}function Mc(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function nb(t,e,n,r){const i=Object.keys(e),o=n&&n.type===Dt.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(!Df(t))return`The ${o} has unexpected type of "${at(t)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const l=Object.keys(t).filter(a=>!e.hasOwnProperty(a)&&!r[a]);if(l.forEach(a=>{r[a]=!0}),!(n&&n.type===Dt.REPLACE)&&l.length>0)return`Unexpected ${l.length>1?"keys":"key"} "${l.join('", "')}" found in ${o}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function rb(t){Object.keys(t).forEach(e=>{const n=t[e];if(typeof n(void 0,{type:Dt.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?be(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 n(void 0,{type:Dt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?be(13):`The slice reducer for key "${e}" returned undefined when probed with a random type. Don't try to handle '${Dt.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 Lc(t){const e=Object.keys(t),n={};for(let l=0;l<e.length;l++){const a=e[l];process.env.NODE_ENV!=="production"&&typeof t[a]>"u"&&Mc(`No reducer provided for key "${a}"`),typeof t[a]=="function"&&(n[a]=t[a])}const r=Object.keys(n);let i;process.env.NODE_ENV!=="production"&&(i={});let o;try{rb(n)}catch(l){o=l}return function(a={},s){if(o)throw o;if(process.env.NODE_ENV!=="production"){const f=nb(a,n,s,i);f&&Mc(f)}let c=!1;const d={};for(let f=0;f<r.length;f++){const p=r[f],v=n[p],y=a[p],h=v(y,s);if(typeof h>"u"){const g=s&&s.type;throw new Error(process.env.NODE_ENV==="production"?be(14):`When called with an action of type ${g?`"${String(g)}"`:"(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||r.length!==Object.keys(a).length,c?d:a}}function ib(t=yn().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 ob=Lc({nodes:Lc({focus:I9,edit:T9,open:O9,selection:k9,drag:ib}),dnd:N9}),lb=yn();function ab({treeProps:t,imperativeHandle:e,children:n}){const r=u.useRef(null),i=u.useRef(null),o=u.useRef(Tf(ob,yn(t))),l=Dl.useSyncExternalStore(o.current.subscribe,o.current.getState,()=>lb),a=u.useMemo(()=>new pn(o.current,t,r,i),[]),s=u.useRef(0);return u.useMemo(()=>{s.current+=1,a.update(t)},[...Object.values(t),l.nodes.open]),u.useImperativeHandle(e,()=>a),u.useEffect(()=>{a.props.selection?a.select(a.props.selection,{focus:!1}):a.deselectAll()},[a.props.selection]),u.useEffect(()=>{a.props.searchTerm||o.current.dispatch(tl.clear(!0))},[a.props.searchTerm]),m.jsx(F2.Provider,{value:a,children:m.jsx(H2.Provider,{value:s.current,children:m.jsx(K2.Provider,{value:l.nodes,children:m.jsx(j2.Provider,{value:l.dnd,children:m.jsx(Km,Object.assign({backend:jy,options:{rootElement:a.props.dndRootElement||void 0}},t.dndManager&&{manager:t.dndManager},{children:n}))})})})})}function sb(){const t=Ie(),[,e]=gf(()=>({accept:"NODE",canDrop:(n,r)=>r.isOver({shallow:!0})?t.canDrop():!1,hover:(n,r)=>{if(!r.isOver({shallow:!0}))return;const i=r.getClientOffset();if(!t.listEl.current||!i)return;const{cursor:o,drop:l}=Ef({element:t.listEl.current,offset:i,indent:t.indent,node:null,prevNode:t.visibleNodes[t.visibleNodes.length-1],nextNode:null});l&&t.dispatch(bn.hovering(l.parentId,l.index)),r.canDrop()?o&&t.showCursor(o):t.hideCursor()}}),[t]);e(t.listEl)}function cb(t){return sb(),t.children}function ub(){const e=Ie().props.renderContainer||$f;return m.jsx(m.Fragment,{children:m.jsx(e,{})})}function db(){const t=Ie(),{offset:e,mouse:n,item:r,isDragging:i}=dy(l=>({offset:l.getSourceClientOffset(),mouse:l.getClientOffset(),item:l.getItem(),isDragging:l.isDragging()})),o=t.props.renderDragPreview||nf;return m.jsx(o,{offset:e,mouse:n,id:(r==null?void 0:r.id)||null,dragIds:(r==null?void 0:r.dragIds)||[],isDragging:i})}class fb{constructor(e){this.root=hb(e)}get data(){var e,n;return(n=(e=this.root.children)===null||e===void 0?void 0:e.map(r=>r.data))!==null&&n!==void 0?n:[]}create(e){const n=e.parentId?this.find(e.parentId):this.root;if(!n)return null;n.addChild(e.data,e.index)}move(e){const n=this.find(e.id),r=e.parentId?this.find(e.parentId):this.root;!n||!r||(r.addChild(n.data,e.index),n.drop())}update(e){const n=this.find(e.id);n&&n.update(e.changes)}drop(e){const n=this.find(e.id);n&&n.drop()}find(e,n=this.root){if(!n)return null;if(n.id===e)return n;if(n.children){for(let r of n.children){const i=this.find(e,r);if(i)return i}return null}return null}}function hb(t){const e=new _f({id:"ROOT"},null);return e.children=t.map(n=>aa(n,e)),e}function aa(t,e){const n=new _f(t,e);return t.children&&(n.children=t.children.map(r=>aa(r,n))),n}class _f{constructor(e,n){this.data=e,this.parent=n,this.id=e.id}hasParent(){return!!this.parent}get childIndex(){return this.hasParent()?this.parent.children.indexOf(this):-1}addChild(e,n){var r,i;const o=aa(e,this);this.children=(r=this.children)!==null&&r!==void 0?r:[],this.children.splice(n,0,o),this.data.children=(i=this.data.children)!==null&&i!==void 0?i:[],this.data.children.splice(n,0,e)}removeChild(e){var n,r;(n=this.children)===null||n===void 0||n.splice(e,1),(r=this.data.children)===null||r===void 0||r.splice(e,1)}update(e){if(this.hasParent()){const n=this.childIndex;this.parent.addChild(Object.assign(Object.assign({},this.data),e),n),this.drop()}}drop(){this.hasParent()&&this.parent.removeChild(this.childIndex)}}let pb=0;function vb(t){const[e,n]=u.useState(t),r=u.useMemo(()=>new fb(e),[e]);return[e,{onMove:c=>{for(const d of c.dragIds)r.move({id:d,parentId:c.parentId,index:c.index});n(r.data)},onRename:({name:c,id:d})=>{r.update({id:d,changes:{name:c}}),n(r.data)},onCreate:({parentId:c,index:d,type:f})=>{const p={id:`simple-tree-id-${pb++}`,name:""};return f==="internal"&&(p.children=[]),r.create({parentId:c,index:d,data:p}),n(r.data),p},onDelete:c=>{c.ids.forEach(d=>r.drop({id:d})),n(r.data)}}]}function gb(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,n]=vb(t.initialData);return Object.assign(Object.assign(Object.assign({},t),n),{data:e})}else return t}function mb(t,e){const n=gb(t);return m.jsxs(ab,{treeProps:n,imperativeHandle:e,children:[m.jsx(cb,{children:m.jsx(ub,{})}),m.jsx(db,{})]})}const yb=u.forwardRef(mb),If=({top:t,left:e})=>m.jsx("div",{className:"c__tree-view__cursor",style:{top:t-2,left:e+10,width:`calc(100% - ${24+e}px)`}});function bb(t,e){var n=u.useRef(null),r=u.useRef(null);r.current=e;var i=u.useRef(null);u.useEffect(function(){o()});var o=u.useCallback(function(){var l=i.current,a=r.current,s=l||(a?a instanceof Element?a:a.current:null);n.current&&n.current.element===s&&n.current.subscriber===t||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:s,subscriber:t,cleanup:s?t(s):void 0})},[t]);return u.useEffect(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),u.useCallback(function(l){i.current=l,o()},[o])}function Ac(t,e,n){return t[e]?t[e][0]?t[e][0][n]:t[e][n]:e==="contentBoxSize"?t.contentRect[n==="inlineSize"?"width":"height"]:void 0}function Cb(t){t===void 0&&(t={});var e=t.onResize,n=u.useRef(void 0);n.current=e;var r=t.round||Math.round,i=u.useRef(),o=u.useState({width:void 0,height:void 0}),l=o[0],a=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=bb(u.useCallback(function(f){return(!i.current||i.current.box!==t.box||i.current.round!==r)&&(i.current={box:t.box,round:r,instance:new ResizeObserver(function(p){var v=p[0],y=t.box==="border-box"?"borderBoxSize":t.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",h=Ac(v,y,"inlineSize"),g=Ac(v,y,"blockSize"),b=h?r(h):void 0,C=g?r(g):void 0;if(c.current.width!==b||c.current.height!==C){var S={width:b,height:C};c.current.width=b,c.current.height=C,n.current?n.current(S):s.current||a(S)}})}),i.current.instance.observe(f,{box:t.box}),function(){i.current&&i.current.instance.unobserve(f)}},[t.box,r]),t.ref);return u.useMemo(function(){return{ref:d,width:l.width,height:l.height}},[d,l.width,l.height])}var Le=(t=>(t.NODE="node",t.SEPARATOR="separator",t.TITLE="title",t))(Le||{}),St=(t=>(t.FIRST_CHILD="first-child",t.LAST_CHILD="last-child",t.LEFT="left",t.RIGHT="right",t))(St||{});const ni=t=>t?t.nodeType===Le.SEPARATOR:!1,ri=t=>t?t.nodeType===Le.TITLE:!1,jn=t=>!ni(t)&&!ri(t),Of=(t,e,n)=>{const{remove:r,update:i,insert:o,insertBefore:l,insertAfter:a,append:s,prepend:c,getItem:d,move:f,items:p}=bp({initialItems:JSON.parse(JSON.stringify(t)),getKey:I=>I.id,getChildren:I=>I.children||[]}),[v,y]=u.useState(),h=(I=[])=>{const L=p.map(O=>O.key);r(...L);const _=JSON.parse(JSON.stringify(I));_.length>0&&o(null,0,..._),y(void 0)},g=I=>{const L=d(I);L&&y(L.value)},b=(I,L,_)=>{var O;if(I){const H=d(I);H&&o(I,_??((O=H.children)==null?void 0:O.length)??0,L)}else o(null,_??p.length,L)},C=I=>{var L;return(L=d(I))==null?void 0:L.value},S=(I,L)=>{var j;const _=d(I);if(!_){console.error("No item found");return}let O=((j=_.children)==null?void 0:j.map(z=>z.value))??null;const H=L.childrenCount??_.value.childrenCount??0;if((O==null?void 0:O.length)===0&&H>0&&(O=null),L.children&&(O=[...O??[],...L.children]),L.children){const z=new Set(L.children.map(W=>W.id));O=L.children.filter(W=>!z.has(W.id)),O=[...O??[],...L.children]}const K={..._.value,...L,children:O,childrenCount:(O==null?void 0:O.length)??H};i(I,K)},P=I=>{r(I)},E=I=>{r(...I)},x=async I=>{if(!e){console.error("No refresh callback provided");return}try{const L=await e(I);S(I,L)}catch(L){console.error("error while refreshing node:",L)}},$=(I,L)=>{o(null,L??p.length,I)},N=(I,L)=>{o(null,L??p.length,...I)},F=(I,L)=>{const _=d(I);if(!_){console.error("No item found");return}const O={..._.value,children:L,childrenCount:L.length,hasLoadedChildren:L.length>0};i(I,O)},V=I=>{const L=[],_=d(I);if(!_)return[];L.push(_.value);const O=H=>{const K=w(H);if(!K)return;const j=d(K);j&&(L.push(j.value),O(K))};return O(I),L.reverse()},w=I=>{var L;return((L=d(I))==null?void 0:L.parentKey)??null},M=I=>{const L=w(I);if(!L)return null;const _=d(L);return _?_.value:null},B=(I,L)=>{l(I,L)},A=(I,L)=>{a(I,L)},U=(I,L)=>{s(I,L)},T=(I,L)=>{c(I,L)},R=(I,L,_)=>{f(I,L,_)},k=I=>{R(I.sourceId,I.newParentId,I.index)},Z=async I=>{if(!n)return[];const L=await n(I);return S(I,{children:L,hasLoadedChildren:!0,childrenCount:L.length}),L};return u.useEffect(()=>{const I=L=>{L.forEach(_=>{var O;if(_.children&&_.children.length>0){const H=_.value.hasLoadedChildren||((O=_.children)==null?void 0:O.length)>0||_.value.children&&_.value.children.length>0;_.value.children=_.children.map(j=>j.value);const K=H?_.children.length:_.value.childrenCount??0;_.value.childrenCount=K,H&&!_.value.hasLoadedChildren&&(_.value.hasLoadedChildren=!0),I(_.children)}else{const K=_.value.hasLoadedChildren||_.value.children&&_.value.children.length>0?0:_.value.childrenCount;_.value.children=[],_.value.childrenCount=K}})};I(p)},[p]),{nodes:p,addChild:b,updateNode:S,deleteNode:P,deleteNodes:E,addRootNode:$,addRootNodes:N,selectedNode:v,setSelectedNode:y,refreshNode:x,setChildren:F,insertBeforeNode:B,insertAfterNode:A,handleMove:k,prependToNode:T,moveNode:R,appendToNode:U,move:f,resetTree:h,handleLoadChildren:Z,selectNodeById:g,getParent:M,getNode:C,getParentId:w,getAncestors:V}},sa=u.createContext(null),Sb=({children:t,onRefresh:e,initialNodeId:n,onLoadChildren:r,initialTreeData:i})=>{const o=u.useRef(null),[l,a]=u.useState(null),[s,c]=u.useState(n??null),d=Of(i??[],e,r);return m.jsx(sa.Provider,{value:{treeApiRef:o,treeData:d,root:l,initialTargetId:s,setInitialTargetId:c,setRoot:a},children:t})},ca=()=>{const t=u.useContext(sa);if(!t)throw new Error("TreeContext not found");return t},wb=({initialOpenState:t,dndRootElement:e,selectedNodeId:n,rootNodeId:r,renderNode:i,canDrop:o,canDrag:l,afterMove:a,beforeMove:s})=>{const[c,d]=u.useState(400),{ref:f,width:p}=Cb(),v=ca(),y=(v==null?void 0:v.treeData.nodes)??[];u.useEffect(()=>{const C=document.querySelector(".c__tree-view"),S=C==null?void 0:C.firstElementChild;let P=null;return C&&S&&(P=new ResizeObserver(()=>{if(S&&S instanceof HTMLElement){const E=S.style.height;d(parseInt(E,10)+20)}}),P.observe(S)),()=>P==null?void 0:P.disconnect()},[]);const h=C=>{var Z,I,L,_;const S=JSON.parse(JSON.stringify(y)),P=C.dragNodes[0],E=C.parentId?((Z=C.parentNode)==null?void 0:Z.data.children)??[]:S,x=C.dragNodes[0].data.value.id,$=C.dragNodes[0].data,N=(I=C.parentNode)==null?void 0:I.data;if((N==null?void 0:N.value.nodeType)===Le.TITLE||(N==null?void 0:N.value.nodeType)===Le.SEPARATOR)return null;const F=$.parentKey??r,V=C.parentId??r;let w=C.index+0,M=null,B=V;const A=((_=(L=P.parent)==null?void 0:L.children)==null?void 0:_.findIndex(O=>O.data.value.id===x))??0;if(F===V){if(A===w)return null;w=w<A?w:w-1}const U=C.index-1,T=E[U],R=C.index,k=E[R];return C.index===0?(B=C.parentId??r,M=St.FIRST_CHILD):!N&&C.index===1&&!jn(T.value)?(B=r,w=1,M=St.FIRST_CHILD):C.index===E.length?(B=B??r,M=St.LAST_CHILD):T&&jn(T.value)?(B=T.value.id,M=St.RIGHT):k&&jn(k.value)&&(M=St.LEFT,B=k.value.id),M&&B?{targetModeId:B,mode:M,oldParentId:F,index:w,newParentId:C.parentId,sourceId:x}:null},g=C=>{const S=h(C);S&&(s?s(S,()=>{v==null||v.treeData.handleMove(S),a==null||a(S)}):(v==null||v.treeData.handleMove(S),a==null||a(S)))},b=u.useCallback(C=>l?!l(C):!1,[l]);if(v)return m.jsx("div",{ref:f,style:{height:c},className:"c__tree-view--container",children:m.jsx(yb,{dndRootElement:e,data:y,ref:v.treeApiRef,openByDefault:!1,selectionFollowsFocus:!1,disableMultiSelection:!0,disableEdit:!0,className:"c__tree-view",idAccessor:"key",onMove:g,height:c,width:p,paddingTop:10,paddingBottom:10,rowHeight:35,disableDrag:b,disableDrop:({parentNode:C,dragNodes:S,index:P})=>{var F,V;if(o&&!o({parentNode:C,dragNodes:S,index:P}))return C.id!=="__REACT_ARBORIST_INTERNAL_ROOT__"&&(C.data.value.canDrop=!1),!0;const E=S[0];if(E&&E.isDragging&&E.willReceiveDrop||((F=C.data.value)==null?void 0:F.nodeType)===Le.TITLE||((V=C.data.value)==null?void 0:V.nodeType)===Le.SEPARATOR)return!0;if(C.id==="__REACT_ARBORIST_INTERNAL_ROOT__"){const w=y[P-1],M=y[P],B=y[P+1],A=ni(w==null?void 0:w.value),U=ni(M==null?void 0:M.value),T=ri(w==null?void 0:w.value),R=ri(M==null?void 0:M.value),k=jn(B==null?void 0:B.value);return!!(P===0&&(U||R)||A&&R&&k||T&&U&&k)}const x=C==null?void 0:C.isOpen,$=(C==null?void 0:C.data.value.childrenCount)&&C.data.value.childrenCount>0||(C==null?void 0:C.data.children)&&C.data.children.length>0;if(!$)return C.data.value.canDrop=!0,!1;let N=C.data.value.childrenCount&&C.data.value.childrenCount>0&&(C==null?void 0:C.data.children)&&C.data.children.length>0;return N=N??!0,!x&&!N&&$?(C.data.value.canDrop=!0,!0):(C.data.value.canDrop=!0,!1)},initialOpenState:t,overscanCount:20,selection:n,renderCursor:If,renderRow:xb,rowClassName:"c__tree-view--row",children:i})})},xb=({children:t,...e})=>{const n=e.node.data.value.nodeType===Le.TITLE,r=e.node.data.value.nodeType===Le.SEPARATOR,{style:i}=e.attrs,o={...i},l=a=>{const s=a.target;if(s){const c=s.closest(".actions"),f=s.closest('button, a[href], input, textarea, select, [role="menuitem"], [role="button"]');if(c||f)return}if((a.key==="Enter"||a.key===" ")&&a.currentTarget.click(),a.key==="F2"){a.preventDefault();const c=a.currentTarget.querySelector("button");c&&c.focus()}};return n||r?u.createElement("div",{...e.attrs,key:e.node.id,style:o,ref:e.innerRef,onFocus:a=>a.stopPropagation(),onClick:e.node.handleClick},t):u.createElement("div",{...e.attrs,style:o,key:e.node.id,ref:e.innerRef,onFocus:a=>a.stopPropagation(),onClick:e.node.handleClick,onKeyDown:l},m.jsx("div",{className:"c__tree-view--row-content",children:t}))},Eb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",kf=Eb?u.useLayoutEffect:u.useEffect;function Nf(t){const e=u.useRef(t);return kf(()=>{e.current=t}),u.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.current==null?void 0:e.current(...r)},[])}function Fc(t,e){e===void 0&&(e=[t]);const n=u.useRef(t);return kf(()=>{n.current!==t&&(n.current=t)},e),n}function $b(t){const e=Nf(t),n=u.useRef(null),r=u.useCallback(i=>{i!==n.current&&(e==null||e(i,n.current)),n.current=i},[]);return[n,r]}let Po={};function Pb(t,e){return u.useMemo(()=>{const n=Po[t]==null?0:Po[t]+1;return Po[t]=n,t+"-"+n},[t,e])}var zn;(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"})(zn||(zn={}));function Kc(){}const Db=Object.freeze({x:0,y:0});var an;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(an||(an={}));var jc;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(jc||(jc={}));var st;(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"})(st||(st={}));st.Space,st.Enter,st.Esc,st.Space,st.Enter,st.Tab;var Hc;(function(t){t[t.RightClick=2]="RightClick"})(Hc||(Hc={}));var Vc;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(Vc||(Vc={}));var zc;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(zc||(zc={}));an.Backward+"",an.Forward+"",an.Backward+"",an.Forward+"";var ul;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(ul||(ul={}));var dl;(function(t){t.Optimized="optimized"})(dl||(dl={}));function Tb(t){let{callback:e,disabled:n}=t;const r=Nf(e),i=u.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return u.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}ul.WhileDragging,dl.Optimized;const _b={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Kc,draggableNodes:new Map,over:null,measureDroppableContainers:Kc},Ib=u.createContext(_b);({...Db});var Bc;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(Bc||(Bc={}));const Ob="Droppable",kb={timeout:25};function Nb(t){let{data:e,disabled:n=!1,id:r,resizeObserverConfig:i}=t;const o=Pb(Ob),{active:l,dispatch:a,over:s,measureDroppableContainers:c}=u.useContext(Ib),d=u.useRef({disabled:n}),f=u.useRef(!1),p=u.useRef(null),v=u.useRef(null),{disabled:y,updateMeasurementsFor:h,timeout:g}={...kb,...i},b=Fc(h??r),C=u.useCallback(()=>{if(!f.current){f.current=!0;return}v.current!=null&&clearTimeout(v.current),v.current=setTimeout(()=>{c(Array.isArray(b.current)?b.current:[b.current]),v.current=null},g)},[g]),S=Tb({callback:C,disabled:y||!l}),P=u.useCallback((N,F)=>{S&&(F&&(S.unobserve(F),f.current=!1),N&&S.observe(N))},[S]),[E,x]=$b(P),$=Fc(e);return u.useEffect(()=>{!S||!E.current||(S.disconnect(),f.current=!1,S.observe(E.current))},[E,S]),u.useEffect(()=>(a({type:zn.RegisterDroppable,element:{id:r,key:o,disabled:n,node:E,rect:p,data:$}}),()=>a({type:zn.UnregisterDroppable,key:o,id:r})),[r]),u.useEffect(()=>{n!==d.current.disabled&&(a({type:zn.SetDroppableDisabled,id:r,key:o,disabled:n}),d.current.disabled=n)},[r,o,n,a]),{active:l,rect:p,isOver:(s==null?void 0:s.id)===r,node:E,over:s,setNodeRef:x}}const Rb=t=>{const{isOver:e,setNodeRef:n}=Nb({id:t.id,data:t.data});return u.useEffect(()=>{var r;(r=t.onOver)==null||r.call(t,e,t.data)},[e,t.data,t.onOver]),m.jsx("div",{className:"c__dnd--droppable",ref:n,children:t.children})},Mb=({children:t,onClick:e,node:n,dragHandle:r,style:i,forceLoading:o})=>{var b,C;const l=ca(),a=u.useRef(null),[s,c]=u.useState(!1),[d,f]=u.useState(!1),p=o??s,v=n.willReceiveDrop||d,y=n.data.value.childrenCount!==void 0&&n.data.value.childrenCount>0||(((b=n.data.children)==null?void 0:b.length)??0)>0,h=((C=n.children)==null?void 0:C.length)??!1,g=n.isLeaf||!y;return u.useEffect(()=>{g||h||n.data.value.hasLoadedChildren||n.isOpen&&(c(!0),l==null||l.treeData.handleLoadChildren(n.data.value.id).then(()=>c(!1)))},[n.isOpen,g,h,n.data.value.hasLoadedChildren,n.data.value.id,l==null?void 0:l.treeData]),u.useEffect(()=>(v&&!n.isOpen&&!n.isDragging&&(a.current=setTimeout(()=>{n.open()},500)),()=>{a.current&&clearTimeout(a.current)}),[v,n.isOpen,n.isDragging,n]),n.data.value.nodeType===Le.SEPARATOR?m.jsx("div",{className:"c__tree-view--node__separator"}):n.data.value.nodeType===Le.TITLE?m.jsx("div",{className:"c__tree-view--node__title",children:n.data.value.headerTitle}):m.jsx(Rb,{id:n.id,data:{data:n.data,nodeApi:n},onOver:f,children:m.jsxs("div",{onClick:S=>{if(!S.target.closest(".c__tree-view--node")){S.stopPropagation();return}e==null||e()},onKeyDown:S=>{S.target.closest(".c__tree-view--node")||S.stopPropagation()},ref:r,style:i,className:xe("c__tree-view--node",{...n.state,canDrop:n.data.value.canDrop??!0,externalDrop:d}),children:[g&&m.jsx("div",{className:"c__tree-view--node__leaf"}),!g&&m.jsxs(m.Fragment,{children:[p&&m.jsx("div",{className:"c__tree-view--node__loading",children:m.jsx(Gl,{})}),!p&&m.jsx("span",{onClick:S=>{S.stopPropagation(),n.toggle()},className:"c__tree-view--node__arrow material-icons",children:n.isOpen?"keyboard_arrow_down":"keyboard_arrow_right"})]}),t]})})},Lb=({children:t,uppercased:e=!1,type:n="accent",className:r,...i})=>m.jsx("div",{className:xe(r,"c__badge",{"c__badge--uppercased":e,[`c__badge--${n}`]:n}),...i,children:t});function Ab(t){u.useEffect(()=>{if(!t)return;let e=!1;const n=()=>Array.from(t.querySelectorAll("button")).filter(l=>!l.disabled&&l.getAttribute("aria-disabled")!=="true"),r=l=>{const a=l.key==="ArrowLeft"||l.key==="ArrowRight",s=l.key===" ";if(!(l.target instanceof HTMLElement))return;if(s){const h=l.target.closest("button");h instanceof HTMLButtonElement&&t.contains(h)&&h.click();return}if(!a)return;const d=l.target.closest("button");if(!(d instanceof HTMLButtonElement&&t.contains(d)))return;const p=n(),v=p.indexOf(d);if(v<0)return;l.preventDefault(),l.stopPropagation();const y=l.key==="ArrowRight"?(v+1)%p.length:(v-1+p.length)%p.length;p[y].focus(),e=!0},i=l=>{e&&((l.key===" "||l.key==="Enter")&&(l.preventDefault(),l.stopPropagation()),e=!1)},o={capture:!0};return t.addEventListener("keydown",r,o),t.addEventListener("keyup",i,o),()=>{t.removeEventListener("keydown",r,o),t.removeEventListener("keyup",i,o)}},[t])}const Mi=({roles:t,onSelect:e,canUpdate:n=!0,selectedRole:r,isOpen:i,onOpenChange:o,roleTopMessage:l})=>{const a=t.find(s=>s.value===r);return n?m.jsx(Ot,{isOpen:i,shouldCloseOnInteractOutside:s=>!s.closest(".c__access-role-dropdown"),onOpenChange:o,options:t,selectedValues:[r],onSelectValue:e,topMessage:l,children:m.jsxs("div",{role:"button",className:"c__access-role-dropdown",onClick:()=>{o==null||o(!i)},children:[m.jsx("span",{className:"fs-s clr-greyscale-600",children:a==null?void 0:a.label}),m.jsx("span",{className:"material-icons",children:i?"arrow_drop_up":"arrow_drop_down"})]})}):m.jsx("span",{className:"fs-s clr-greyscale-600",children:a==null?void 0:a.label})},Rf=({users:t,onRemoveUser:e,rightActions:n,onShare:r,shareButtonLabel:i,roles:o,selectedRole:l,onSelectRole:a})=>{const{t:s}=ne.useCunningham(),[c,d]=u.useState(!1);return m.jsxs("div",{className:"c__add-share-user-list",children:[m.jsx("div",{className:"c__add-share-user-list__items",children:t.map(f=>m.jsx(Mf,{user:f,onRemoveUser:e},f.id))}),m.jsxs("div",{className:"c__add-share-user-list__right-actions",children:[n,m.jsx(Mi,{roles:o,selectedRole:l,onSelect:a,isOpen:c,onOpenChange:d}),m.jsx(ne.Button,{onClick:r,children:i??s("components.share.shareButton")})]})]})},Mf=({user:t,onRemoveUser:e})=>m.jsxs("div",{className:"c__add-share-user-item",children:[m.jsx("span",{children:t.full_name||t.email}),m.jsx(ne.Button,{color:"tertiary-text",size:"nano",onClick:()=>e==null?void 0:e(t),icon:m.jsx("span",{className:"material-icons",children:"close"})})]}),Uc=["purple","blue","green","yellow","orange","red","brown","cyan","gold","olive","rose"],Lf=t=>t.split(/[\s-_]+/).slice(0,2).map(e=>e[0]).join("").toUpperCase(),Af=t=>{let e=0;for(let n=0;n<t.length;n++)e+=t.charCodeAt(n);return Uc[e%Uc.length]},ii=({fullName:t,size:e="medium",forceColor:n})=>{const r=Lf(t),i=Af(t);return m.jsx("div",{style:{backgroundColor:n||void 0},className:xe(`c__avatar ${e}`,{[i]:!n&&i}),children:m.jsx("div",{className:"c__avatar__initials",children:r})})},Li=({fullName:t,email:e,showEmail:n=!0})=>{const r=t&&t!==""?t:e??"";return m.jsxs("div",{className:"c__user-row",children:[m.jsx(ii,{fullName:r,size:"small"}),m.jsxs("div",{className:"c__user-row__info",children:[m.jsx("span",{className:"c__user-row__name",children:t}),n&&e&&m.jsx("span",{className:xe("c__user-row__email",{"has-only-email":e&&(t===""||!t)}),children:e})]})]})},fl=({user:t})=>{const{t:e}=ne.useCunningham();return m.jsx(_i,{left:m.jsx(Li,{fullName:t.full_name,email:t.email}),alwaysShowRight:!1,right:m.jsxs("div",{className:"c__search-user-item-right",children:[m.jsx("span",{children:e("components.share.item.add")}),m.jsx("span",{className:"material-icons",children:"add"})]})})},Ff=({accessData:t,roles:e,updateRole:n,deleteAccess:r,canUpdate:i=!0,roleTopMessage:o})=>{const{t:l}=ne.useCunningham(),a=gt(),s=gt(),c=u.useMemo(()=>{const f=[];return r&&f.push({label:l("components.share.access.delete"),icon:m.jsx("span",{className:"material-icons",children:"back_hand"}),isDisabled:!i,callback:()=>r(t)}),f},[r,t,i,l]),d=()=>{const f=s.isOpen;s.setIsOpen(!f)};return m.jsx("div",{className:"c__share-member-item",children:m.jsx(_i,{left:m.jsx(Li,{fullName:t.user.full_name,email:t.user.email,showEmail:!0}),alwaysShowRight:!0,right:m.jsxs("div",{className:"c__share-member-item__right",children:[m.jsx(Mi,{roles:e,selectedRole:t.role,onSelect:f=>n==null?void 0:n(t,f),isOpen:a.isOpen,onOpenChange:a.setIsOpen,canUpdate:i,roleTopMessage:o}),c.length>0&&i&&m.jsx(Ot,{options:c,isOpen:s.isOpen,onOpenChange:s.setIsOpen,children:m.jsx(ne.Button,{color:"primary-text",onClick:d,size:"small",icon:m.jsx("span",{className:"material-icons toto",children:"more_horiz"})})})]})})})},Kf=({invitation:t,roles:e,updateRole:n,deleteInvitation:r,canUpdate:i=!0,roleTopMessage:o})=>{const{t:l}=ne.useCunningham(),a=gt(),s=gt(),c=[{label:l("components.share.access.delete"),callback:()=>r==null?void 0:r(t),isDisabled:!i,icon:m.jsx("span",{className:"material-icons",children:"back_hand"})}],d=()=>{const f=s.isOpen;s.setIsOpen(!f)};return m.jsx("div",{className:"c__share-member-item",children:m.jsx(_i,{left:m.jsx(Li,{fullName:"",email:t.email,showEmail:!0}),alwaysShowRight:!0,right:m.jsxs("div",{className:"c__share-member-item__right",children:[m.jsx(Mi,{roles:e,selectedRole:t.role,onSelect:f=>n==null?void 0:n(t,f),isOpen:a.isOpen,canUpdate:i,onOpenChange:a.setIsOpen,roleTopMessage:o}),i&&m.jsx(Ot,{options:c,isOpen:s.isOpen,onOpenChange:s.setIsOpen,children:m.jsx(ne.Button,{color:"primary-text",onClick:d,size:"small",icon:m.jsx("span",{className:"material-icons toto",children:"more_horiz"})})})]})})})},Fb="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='%233D3D8C'/%3e%3c/svg%3e",Kb="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='%233D3D8C'/%3e%3c/svg%3e",jf=t=>{const{t:e}=ne.useCunningham();return{t:n=>(t==null?void 0:t[n])??e(n)}},$r=t=>{switch(t){case"public":return m.jsx("img",{src:Fb,alt:""});case"restricted":return m.jsx("img",{src:Kb,alt:""});default:return null}},jb=({linkReachChoices:t=[],canUpdate:e,linkReach:n="public",onUpdateLinkReach:r,showLinkRole:i=!1,linkRoleChoices:o=[],linkRole:l="reader",onUpdateLinkRole:a,customTranslations:s})=>{const c=gt(),d=gt(),[f,p]=u.useState([n]),v=f[0],[y,h]=u.useState([l]),g=y[0],{t:b}=jf(s),C=u.useMemo(()=>t.map(F=>({icon:F.icon??$r(F.value),value:F.value,label:b("components.share.linkSettings.reach.choices."+F.value+".title"),...F})),[t]),S=u.useMemo(()=>C.find(F=>F.value===v),[C,v]),P=u.useMemo(()=>o.map(F=>({value:F.value,label:b("components.share.linkSettings.role.choices."+F.value+".title"),...F})),[o]),E=u.useMemo(()=>P.find(F=>F.value===g),[P,g]),x=i&&o.length>0,$=()=>m.jsx("div",{className:"c__share-modal__link-settings__content__select",children:e?m.jsx(Ot,{onSelectValue:F=>{p([F]),r==null||r(F)},options:C,isOpen:c.isOpen,onOpenChange:c.setIsOpen,selectedValues:f,children:m.jsxs(ne.Button,{color:"primary-text",icon:$r(v),iconPosition:"left",onClick:()=>{e&&c.setIsOpen(!c.isOpen)},children:[S==null?void 0:S.label,m.jsx("span",{className:"material-icons",children:c.isOpen?"arrow_drop_up":"arrow_drop_down"})]})}):m.jsxs("span",{className:"c__share-modal__link-settings__content__select__value",children:[$r(v),S==null?void 0:S.label]})}),N=()=>x?m.jsx("div",{className:"c__share-modal__link-settings__content__select-role",children:e?m.jsx(Ot,{onSelectValue:F=>{h([F]),a==null||a(F)},options:P,isOpen:d.isOpen,onOpenChange:d.setIsOpen,selectedValues:y,children:m.jsx(ne.Button,{color:"primary-text",icon:m.jsx("span",{className:"material-icons",children:d.isOpen?"arrow_drop_up":"arrow_drop_down"}),iconPosition:"right",onClick:()=>{e&&d.setIsOpen(!d.isOpen)},size:"small",children:E==null?void 0:E.label})}):m.jsxs("span",{className:"c__share-modal__link-settings__content__select-role__value",children:[$r(g),E==null?void 0:E.label]})}):null;return m.jsxs("div",{className:"c__share-modal__link-settings",children:[m.jsx("span",{className:"c__share-modal__link-settings__title",children:b("components.share.linkSettings.title")}),m.jsxs("div",{className:"c__share-modal__link-settings__content",children:[$(),m.jsx("div",{className:"c__share-modal__link-settings__content__description desktop",children:b(`components.share.linkSettings.reach.choices.${v}.description`)}),N()]}),m.jsx("div",{className:"c__share-modal__link-settings__content__description mobile",children:b(`components.share.linkSettings.reach.choices.${v}.description`)})]})},Hb=({searchUsersResult:t,children:e,outsideSearchContent:n,accesses:r=[],invitations:i=[],hasNextMembers:o=!1,canUpdate:l=!0,canView:a=!0,hasNextInvitations:s=!1,hideInvitations:c=!1,hideMembers:d=!1,cannotViewChildren:f,customTranslations:p,...v})=>{var H,K;if(!(c&&d)){if(!v.invitationRoles)throw new Error("invitationRoles is required");if(!v.onSearchUsers)throw new Error("onSearchUsers is required")}if(!c&&!v.onInviteUser)throw new Error("onInviteUser is required");if(l&&!a)throw new Error("canView cannot be false if canUpdate is true");const{t:y}=ne.useCunningham(),{isMobile:h}=wn(),g=u.useRef(null),[b,C]=u.useState("400px"),S=u.useRef(null),[P,E]=u.useState(""),[x,$]=u.useState(""),[N,F]=u.useState([]),[V,w]=u.useState(((K=(H=v.invitationRoles)==null?void 0:H[0])==null?void 0:K.value)??""),M=h?"calc(100dvh - 32px)":"min(690px, calc(100dvh - 2em - 12px - 32px))",B=j=>{if(g.current&&clearTimeout(g.current),j===""){$(""),v.onSearchUsers("");return}g.current=setTimeout(()=>{v.onSearchUsers(j),$(j)},300)},A=j=>{E(j),B(j)},U=x!==""||N.length>0,T=u.useCallback(j=>{F(z=>[...z,j]),E(""),$(""),v.onSearchUsers("")},[v]),R=j=>{F(z=>z.filter(W=>W.id!==j.id))},k=u.useMemo(()=>{const j=t==null?void 0:t.filter(G=>!N.includes(G));let z=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)),X={id:x,full_name:"",email:x};return q&&(z=void 0),{groupName:y("components.share.search.group_name"),elements:j??[],showWhenEmpty:!0,emptyString:z,endActions:q?[{content:m.jsx(fl,{user:X}),onSelect:()=>void T(X)}]:void 0}},[t,x,y,N,T]),Z=j=>{var ce;const W=(j==null?void 0:j.clientHeight)??0,q=((ce=S.current)==null?void 0:ce.clientHeight)??0,X=`calc(${M} - ${W}px - ${q}px - 70px - 10px)`;C(X)},I=!c&&!U&&!v.loading&&i.length>0,L=!d&&!U&&!v.loading&&r.length>0,O=a?c&&d?"empty":"search":"cannot_view";return m.jsx(ne.Modal,{title:v.modalTitle??y("components.share.modalTitle"),isOpen:v.isOpen,onClose:v.onClose,closeOnClickOutside:!0,size:h?ne.ModalSize.FULL:ne.ModalSize.LARGE,children:m.jsxs("div",{className:"c__share-modal no-padding",children:[l&&N.length>0&&m.jsx("div",{className:"c__share-modal__selected-users",ref:S,children:m.jsx(Rf,{users:N,onRemoveUser:R,roles:v.invitationRoles,selectedRole:V,onSelectRole:w,onShare:()=>{v.onInviteUser(N,V),F([])}})}),O==="cannot_view"&&m.jsxs("div",{className:"c__share-modal__cannot-view",style:{height:b},children:[m.jsx("div",{className:"c__share-modal__cannot-view__content",children:m.jsx("p",{children:v.cannotViewMessage??y("components.share.cannot_view.message")})}),f]}),O==="search"&&m.jsx(L2,{onFilter:A,inputValue:P,showInput:l,loading:v.loading,placeholder:y("components.share.user.placeholder"),children:m.jsxs("div",{style:{height:b,overflowY:"auto"},children:[U&&m.jsx("div",{className:"c__share-modal__search-users",children:m.jsx(A2,{group:k,onSelect:j=>{T(j)},renderElement:j=>m.jsx(fl,{user:j})})}),!U&&e,I&&m.jsxs("div",{className:"c__share-modal__invitations",children:[m.jsx("span",{className:"c__share-modal__invitations-title",children:y("components.share.invitations.title")}),i.map(j=>{var z;return m.jsx(Kf,{invitation:j,roles:v.invitationRoles,updateRole:v.onUpdateInvitation,deleteInvitation:v.onDeleteInvitation,canUpdate:l,roleTopMessage:(z=v.invitationRoleTopMessage)==null?void 0:z.call(v,j)},j.id)}),m.jsx(Wc,{show:s,onShowMore:v.onLoadNextInvitations})]}),L&&m.jsxs("div",{className:"c__share-modal__members",children:[m.jsx("span",{className:"c__share-modal__members-title",children:y(r.length>1?"components.share.members.title_plural":"components.share.members.title_singular",{count:r.length})}),r.map(j=>{var z,W;return m.jsx(Ff,{accessData:j,canUpdate:l,roleTopMessage:(z=v.accessRoleTopMessage)==null?void 0:z.call(v,j),roles:((W=v.getAccessRoles)==null?void 0:W.call(v,j))??v.invitationRoles,updateRole:v.onUpdateAccess,deleteAccess:v.onDeleteAccess},j.id)}),m.jsx(Wc,{show:o,onShowMore:v.onLoadNextMembers})]})]})}),m.jsx("div",{ref:Z,children:!U&&m.jsxs("div",{className:"c__share-modal__footer",children:[v.linkSettings&&m.jsx(jb,{linkReachChoices:v.linkReachChoices,canUpdate:l,onUpdateLinkReach:v.onUpdateLinkReach,linkReach:v.linkReach,linkRoleChoices:v.linkRoleChoices,linkRole:v.linkRole,onUpdateLinkRole:v.onUpdateLinkRole,showLinkRole:v.showLinkRole,customTranslations:p}),n]})})]})})},Wc=({show:t,onShowMore:e})=>{const{t:n}=ne.useCunningham();return t?m.jsx("div",{className:"c__share-modal__show-more-button",children:m.jsx(ne.Button,{color:"primary-text",size:"small",icon:m.jsx("span",{className:"material-icons",children:"arrow_downward"}),onClick:e,children:n("components.share.members.load_more")})}):null},Vb=({onCopyLink:t,onOk:e})=>{const{t:n}=ne.useCunningham();return m.jsxs("div",{className:"c__share-modal__copy-link-footer",children:[m.jsx(ne.Button,{color:"tertiary",icon:m.jsx("span",{className:"material-icons",children:"link"}),onClick:t,children:n("components.share.copyLink")}),m.jsx(ne.Button,{color:"primary",onClick:e,children:n("components.share.ok")})]})},zb=({user:t,settingsCTA:e,logout:n,isInitialOpen:r=!1,shouldCloseOnInteractOutside:i,footerAction:o})=>{const{t:l}=ne.useCunningham(),a=u.useId(),[s,c]=u.useState(r),d=()=>c(!s),f=!!n||!!o,p=!!e,v=u.useRef(null);return t?m.jsxs(m.Fragment,{children:[m.jsx(ne.Button,{color:"tertiary-text",ref:v,id:a,onClick:d,className:"user-menu__trigger","aria-label":l(s?"components.userMenu.close":"components.userMenu.open"),title:l(s?"components.userMenu.close":"components.userMenu.open"),children:m.jsx(ii,{fullName:t.full_name??t.email})}),m.jsx(Hl,{className:"c__dropdown-menu user-menu__popover",triggerRef:v,isOpen:s,shouldCloseOnInteractOutside:i,onOpenChange:c,children:m.jsxs(Wp,{"aria-label":l("components.userMenu.dialogTitle"),children:[m.jsxs("div",{className:"user-menu__content__body",children:[m.jsx(ii,{fullName:t.full_name??t.email,size:"large"}),m.jsx("div",{className:"user-menu__content__identity",children:t.full_name?m.jsxs(m.Fragment,{children:[m.jsx("p",{className:"user-menu__content__identity__name",children:m.jsx("strong",{children:t.full_name})}),m.jsx("p",{className:"user-menu__content__identity__email",children:t.email})]}):m.jsx("p",{className:"user-menu__content__identity__email",children:m.jsx("strong",{children:t.email})})}),p&&m.jsx(ne.Button,{onClick:typeof e=="function"?e:void 0,href:typeof e=="string"?e:void 0,color:"tertiary",size:"small",icon:m.jsx(Zn,{name:"account_box"}),children:l("components.userMenu.accountSettings")})]}),f&&m.jsxs("footer",{className:"user-menu__footer",children:[o&&m.jsx("div",{className:"user-menu__footer__left",children:o}),n&&m.jsx("div",{className:"user-menu__footer__right",children:m.jsx(ne.Button,{color:"secondary",size:"small",icon:m.jsx(Zn,{name:"logout"}),onClick:n,fullWidth:!0,children:l("components.userMenu.logout")})})]})]})})]}):null};exports.AccessRoleDropdown=Mi;exports.Badge=Lb;exports.CunninghamProvider=Jf;exports.CustomTabs=f9;exports.DropdownMenu=Ot;exports.Filter=iv;exports.Footer=rv;exports.Header=Td;exports.Hero=lv;exports.HomeGutter=av;exports.HorizontalSeparator=el;exports.Icon=Zn;exports.IconSize=Ce;exports.IconType=Vn;exports.InvitationUserSelectorItem=Mf;exports.InvitationUserSelectorList=Rf;exports.LaGaufre=yv;exports.Label=Jd;exports.LanguagePicker=Dd;exports.LeftPanel=_d;exports.MainLayout=Qv;exports.ProConnectButton=qc;exports.QuickSearch=L2;exports.QuickSearchGroup=A2;exports.QuickSearchInput=M2;exports.QuickSearchItem=Ir;exports.QuickSearchItemTemplate=_i;exports.SearchUserItem=fl;exports.ShareInvitationItem=Kf;exports.ShareMemberItem=Ff;exports.ShareModal=Hb;exports.ShareModalCopyLinkFooter=Vb;exports.Spinner=Gl;exports.TreeApi=pn;exports.TreeContext=sa;exports.TreeProvider=Sb;exports.TreeView=wb;exports.TreeViewItem=Mb;exports.TreeViewMoveModeEnum=St;exports.TreeViewNodeTypeEnum=Le;exports.TreeViewSeparator=If;exports.UserAvatar=ii;exports.UserMenu=zb;exports.UserRow=Li;exports.VerticalSeparator=d9;exports.WithLabel=tg;exports.containerSizeMap=Pd;exports.cunninghamConfig=Zo;exports.getContainerSize=bv;exports.getIconSize=Cv;exports.getUserColor=Af;exports.getUserInitials=Lf;exports.headerHeight=eg;exports.iconSizeMap=$d;exports.isNode=jn;exports.isSeparator=ni;exports.isTitle=ri;exports.locales=Gc;exports.useArrowRoving=Ab;exports.useCustomTranslations=jf;exports.useDropdownMenu=gt;exports.useResponsive=wn;exports.useTree=Of;exports.useTreeContext=ca;
99
99
  //# sourceMappingURL=index.cjs.map